-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vrt-combobox
- Loading branch information
Showing
88 changed files
with
1,575 additions
and
690 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+73.1 KB
...tions-npm-6.3.1-347673ef8b-f40c450cd5.zip → ...tions-npm-6.3.6-814213e61a-cdac1d6f0f.zip
Binary file not shown.
Binary file renamed
BIN
+50 KB
...ounds-npm-6.3.1-81c0c4f4de-b9ec907417.zip → ...ounds-npm-6.3.6-f6b7b0a1ba-cb8968d064.zip
Binary file not shown.
Binary file renamed
BIN
+21.4 KB
...trols-npm-6.3.1-6bc23868ed-40278c29b7.zip → ...trols-npm-6.3.6-52948202f0-72c005a9e2.zip
Binary file not shown.
Binary file renamed
BIN
+432 KB
...-docs-npm-6.3.1-294c4f5a50-d6a7760ff1.zip → ...-docs-npm-6.3.6-6774bf5d0e-4d026de5ee.zip
Binary file not shown.
Binary file renamed
BIN
+9.78 KB
...tials-npm-6.3.1-cdd7a280f6-c923cc353b.zip → ...tials-npm-6.3.6-3acea87b33-8b3e0b954f.zip
Binary file not shown.
Binary file renamed
BIN
+35.7 KB
...links-npm-6.3.1-b91dab21cf-f16791a958.zip → ...links-npm-6.3.6-71bc10177c-e9f9bbb80b.zip
Binary file not shown.
Binary file renamed
BIN
+29.8 KB
...asure-npm-1.3.1-159721e7b5-aeb7ed1592.zip → ...asure-npm-2.0.0-e9fae59781-c397a80c3c.zip
Binary file not shown.
Binary file renamed
BIN
+18.7 KB
...ource-npm-6.3.1-b966060331-fdebb58d2a.zip → ...ource-npm-6.3.6-db4fe026a2-ef4fd9ad34.zip
Binary file not shown.
Binary file renamed
BIN
+44.6 KB
...lbars-npm-6.3.1-d089cabbbc-35b7599100.zip → ...lbars-npm-6.3.6-3c6dd5d820-5e48d24cef.zip
Binary file not shown.
Binary file renamed
BIN
+31.6 KB
...wport-npm-6.3.1-b3d083e6e3-c60752c963.zip → ...wport-npm-6.3.6-754a6f92fe-569abeb465.zip
Binary file not shown.
Binary file renamed
BIN
+36.7 KB
...ddons-npm-6.3.1-9f43b9b416-f2adaa234f.zip → ...ddons-npm-6.3.6-8068ebe13e-3d646c33f0.zip
Binary file not shown.
Binary file renamed
BIN
+148 KB
...k-api-npm-6.3.1-9bbba9ad32-3f67453ac2.zip → ...k-api-npm-6.3.6-c3f84f5a7d-45c9976053.zip
Binary file not shown.
Binary file renamed
BIN
+51.6 KB
...pack4-npm-6.3.1-904c07bd51-120d7c1ee7.zip → ...pack4-npm-6.3.6-c1cc5b1523-257a959453.zip
Binary file not shown.
Binary file renamed
BIN
+15.6 KB
...ssage-npm-6.3.1-57d99750db-7dd93eb021.zip → ...ssage-npm-6.3.6-cf84f051b2-c5745c124c.zip
Binary file not shown.
Binary file renamed
BIN
+9.26 KB
...nnels-npm-6.3.1-a0337832f9-f1eda399c5.zip → ...nnels-npm-6.3.6-3c5f4611df-daca817242.zip
Binary file not shown.
Binary file renamed
BIN
+101 KB
...t-api-npm-6.3.1-5facfdb5c0-dc019d63f8.zip → ...t-api-npm-6.3.6-fa63df397c-95ff66725b.zip
Binary file not shown.
Binary file renamed
BIN
+8.52 KB
...ogger-npm-6.3.1-d76451e82f-b8f0f056ff.zip → ...ogger-npm-6.3.6-a13ee3beee-945e5a32e5.zip
Binary file not shown.
Binary file renamed
BIN
+895 KB
...nents-npm-6.3.1-e173491f7e-fa6f306aa4.zip → ...nents-npm-6.3.6-8b023a6abc-edffd79913.zip
Binary file not shown.
Binary file renamed
BIN
+76.1 KB
...lient-npm-6.3.1-89d10ffa36-64eec041dd.zip → ...lient-npm-6.3.6-37daedecb5-8c85d7ddda.zip
Binary file not shown.
Binary file renamed
BIN
+104 KB
...ommon-npm-6.3.1-f8d6a05582-1d2c348e45.zip → ...ommon-npm-6.3.6-1353592307-87019427f9.zip
Binary file not shown.
Binary file renamed
BIN
+7.55 KB
...vents-npm-6.3.1-3a551f56b0-528aabe7dc.zip → ...vents-npm-6.3.6-a2e162070c-bbf9d8a12f.zip
Binary file not shown.
Binary file renamed
BIN
+6.86 KB
...-core-npm-6.3.1-b52a829bed-8e44976e59.zip → ...-core-npm-6.3.6-7cdfd20d13-5ed951f9a8.zip
Binary file not shown.
Binary file renamed
BIN
+121 KB
...erver-npm-6.3.1-8d03c06266-a543a281a2.zip → ...erver-npm-6.3.6-71f2a2f358-b1157cfb5a.zip
Binary file not shown.
Binary file renamed
BIN
+38.1 KB
...tools-npm-6.3.1-59885badbd-67e25b23eb.zip → ...tools-npm-6.3.6-9dd3ee2c37-2f32e96c2f.zip
Binary file not shown.
Binary file removed
BIN
-610 KB
.yarn/cache/@storybook-manager-webpack4-npm-6.3.1-31c1c2e89e-94d52fb358.zip
Binary file not shown.
Binary file added
BIN
+609 KB
.yarn/cache/@storybook-manager-webpack4-npm-6.3.6-76851107da-34cec46019.zip
Binary file not shown.
Binary file renamed
BIN
+5.96 KB
...ogger-npm-6.3.1-7096ffd71c-b9af24bde6.zip → ...ogger-npm-6.3.6-07b808048e-bed467a245.zip
Binary file not shown.
Binary file renamed
BIN
+13.6 KB
...stall-npm-6.3.1-5f186c5c0b-3b098cd5fc.zip → ...stall-npm-6.3.6-d0e6c2e080-a5dd3ea91c.zip
Binary file not shown.
Binary file renamed
BIN
+23.9 KB
...anary.3c70e01.0-f146abf9f6-da85d09cf8.zip → ...anary.253f8c1.0-7504ff2ea3-7d2d1309e9.zip
Binary file not shown.
Binary file renamed
BIN
+59.3 KB
...react-npm-6.3.1-2e82ccc605-0f00d295a2.zip → ...react-npm-6.3.6-65d9833288-19e2e33c84.zip
Binary file not shown.
Binary file renamed
BIN
+23.5 KB
...outer-npm-6.3.1-ce92784507-557ac6af46.zip → ...outer-npm-6.3.6-88a9bc7986-f8136309c4.zip
Binary file not shown.
Binary file renamed
BIN
+48.2 KB
...oader-npm-6.3.1-95db34545b-9faf622e9e.zip → ...oader-npm-6.3.6-c6ba0a2707-465713dd28.zip
Binary file not shown.
Binary file renamed
BIN
+53.9 KB
...eming-npm-6.3.1-81c4a19dfe-9be5affadd.zip → ...eming-npm-6.3.6-3a1b4092b7-c861b51e57.zip
Binary file not shown.
Binary file renamed
BIN
+622 KB
...ok-ui-npm-6.3.1-f444906f9b-8bb0fb280c.zip → ...ok-ui-npm-6.3.6-bb8e319fae-9dffd15811.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
packages/carbon-react/src/components/Skeleton/Skeleton.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React from 'react'; | ||
import { SkeletonPlaceholder, SkeletonText } from 'carbon-components-react'; | ||
import { withKnobs, select, boolean, number } from '@storybook/addon-knobs'; | ||
|
||
const classNames = { | ||
'my--skeleton__placeholder--small': 'my--skeleton__placeholder--small', | ||
'my--skeleton__placeholder--medium': 'my--skeleton__placeholder--medium', | ||
'my--skeleton__placeholder--large': 'my--skeleton__placeholder--large', | ||
}; | ||
|
||
const placeholderProps = () => ({ | ||
className: select('Classes with different sizes', classNames), | ||
}); | ||
|
||
const widths = { | ||
'100%': '100%', | ||
'250px': '250px', | ||
}; | ||
|
||
const textProps = () => ({ | ||
heading: boolean('Skeleton text at a larger size (heading)'), | ||
paragraph: boolean('Use multiple lines of text (paragraph)'), | ||
lineCount: number('The number of lines in a paragraph (lineCount)', 3), | ||
width: select( | ||
'Width (in px or %) of single line of text or max-width of paragraph lines (width)', | ||
widths, | ||
'100%' | ||
), | ||
}); | ||
|
||
export default { | ||
title: 'Components/Skeleton', | ||
decorators: [withKnobs], | ||
}; | ||
|
||
export const _SkeletonPlaceholder = () => { | ||
return ( | ||
<div style={{ height: '250px', width: '250px' }}> | ||
<style | ||
dangerouslySetInnerHTML={{ | ||
__html: ` | ||
.my--skeleton__placeholder--small { | ||
height: 100px; | ||
width: 100px; | ||
} | ||
.my--skeleton__placeholder--medium { | ||
height: 150px; | ||
width: 150px; | ||
} | ||
.my--skeleton__placeholder--large { | ||
height: 250px; | ||
width: 250px; | ||
} | ||
`, | ||
}} | ||
/> | ||
<SkeletonPlaceholder {...placeholderProps()} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export const _SkeletonText = () => { | ||
return ( | ||
<div style={{ width: '300px' }}> | ||
<SkeletonText {...textProps()} /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
export { SkeletonPlaceholder, SkeletonText } from 'carbon-components-react'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.