reshaped 2.7.4 → 2.7.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/bin/cli.js +2 -4
- package/bundle.css +1 -1
- package/bundle.js +8 -8
- package/cli/theming/index.d.ts +3 -3
- package/cli/theming/index.js +4 -8
- package/components/Actionable/Actionable.module.css +1 -1
- package/components/Alert/Alert.types.d.ts +1 -1
- package/components/Alert/tests/Alert.stories.js +10 -0
- package/components/Avatar/Avatar.module.css +1 -1
- package/components/Avatar/Avatar.types.d.ts +1 -1
- package/components/Avatar/tests/Avatar.stories.js +6 -0
- package/components/Badge/Badge.module.css +1 -1
- package/components/Badge/Badge.types.d.ts +1 -1
- package/components/Badge/tests/Badge.stories.js +12 -0
- package/components/Button/Button.module.css +1 -1
- package/components/Calendar/useCalendarKeyboardNavigation.js +0 -1
- package/components/Carousel/Carousel.module.css +1 -1
- package/components/Checkbox/Checkbox.module.css +1 -1
- package/components/Divider/Divider.module.css +1 -1
- package/components/Hidden/Hidden.module.css +1 -1
- package/components/Icon/Icon.module.css +1 -1
- package/components/Icon/Icon.types.d.ts +1 -1
- package/components/Image/Image.module.css +1 -1
- package/components/Loader/Loader.module.css +1 -1
- package/components/MenuItem/MenuItem.module.css +1 -1
- package/components/Modal/Modal.module.css +1 -1
- package/components/Popover/Popover.module.css +1 -1
- package/components/Progress/Progress.module.css +1 -1
- package/components/Progress/Progress.types.d.ts +1 -1
- package/components/Progress/tests/Progress.stories.js +3 -0
- package/components/Radio/Radio.module.css +1 -1
- package/components/Reshaped/Reshaped.css +1 -1
- package/components/Select/Select.module.css +1 -1
- package/components/Slider/Slider.module.css +1 -1
- package/components/Slider/SliderThumb.js +2 -2
- package/components/Table/Table.module.css +1 -1
- package/components/Tabs/Tabs.module.css +1 -1
- package/components/Text/Text.module.css +1 -1
- package/components/Text/Text.types.d.ts +1 -1
- package/components/Text/tests/Text.stories.js +3 -0
- package/components/TextArea/TextArea.module.css +1 -1
- package/components/TextField/TextField.module.css +1 -1
- package/components/Theme/Theme.module.css +1 -1
- package/components/Toast/Toast.module.css +1 -1
- package/components/View/View.module.css +1 -1
- package/components/View/View.types.d.ts +2 -2
- package/components/View/tests/View.stories.js +22 -0
- package/config/postcss.d.ts +18 -3
- package/config/postcss.js +18 -4
- package/config/tailwind.d.ts +2 -2
- package/config/tailwind.js +1 -2
- package/package.json +5 -5
- package/styles/aspectRatio/aspectRatio.module.css +1 -1
- package/styles/bleed/bleed.module.css +1 -1
- package/styles/height/height.module.css +1 -1
- package/styles/inset/inset.module.css +1 -1
- package/styles/maxHeight/maxHeight.module.css +1 -1
- package/styles/maxWidth/maxWidth.module.css +1 -1
- package/styles/minWidth/minWidth.module.css +1 -1
- package/styles/padding/padding.module.css +1 -1
- package/styles/position/position.module.css +1 -1
- package/styles/radius/radius.module.css +1 -1
- package/styles/width/width.module.css +1 -1
- package/themes/_generator/constants.js +2 -0
- package/themes/_generator/definitions/figma.d.ts +2 -2
- package/themes/_generator/definitions/figma.js +6 -0
- package/themes/_generator/definitions/reshaped.d.ts +2 -2
- package/themes/_generator/definitions/reshaped.js +5 -0
- package/themes/_generator/definitions/slate.d.ts +2 -2
- package/themes/_generator/tests/themes.stories.js +25 -1
- package/themes/_generator/tokens/color/color.types.d.ts +3 -3
- package/themes/_generator/tokens/transforms.d.ts +1 -1
- package/themes/_generator/tokens/types.d.ts +13 -14
- package/themes/_generator/tokens/viewport/viewport.transforms.d.ts +1 -1
- package/themes/_generator/tokens/viewport/viewport.types.d.ts +6 -2
- package/themes/_generator/transform.js +7 -2
- package/themes/_generator/types.d.ts +0 -1
- package/themes/_generator/utilities/color.d.ts +5 -1
- package/themes/_generator/utilities/color.js +18 -13
- package/themes/_generator/utilities/generateColors.d.ts +2 -0
- package/themes/_generator/utilities/generateColors.js +15 -10
- package/themes/figma/media.css +1 -0
- package/themes/figma/theme.css +1 -1
- package/themes/index.d.ts +1 -1
- package/themes/index.js +2 -4
- package/themes/reshaped/media.css +1 -0
- package/themes/reshaped/theme.css +1 -1
- package/themes/slate/media.css +1 -0
- package/themes/slate/theme.css +1 -1
- package/types/config.d.ts +3 -3
- package/utilities/storybook/Example.js +1 -2
- package/themes/_generator/definitions/base.d.ts +0 -3
- package/themes/_generator/definitions/base.js +0 -11
- package/themes/media.css +0 -5
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
2.8.0
|
2
2
|
|
3
|
+
- Theming: Warning colors
|
4
|
+
- Theming: Brand color
|
5
|
+
- Postcss: Added getConfig() + with custom-media option
|
6
|
+
|
3
7
|
- Overlay: Fixed tailwind default cursor
|
4
8
|
- Icon: Fixed svg rendering defined in components with prop types
|
9
|
+
- Icon: Added linear logo to the Figma icons
|
10
|
+
|
11
|
+
- Badge, Figma: Exposed icon properties
|
12
|
+
- Button, Figma: Split into Button and .button-content to improve the library
|
13
|
+
- Button: Added slot support
|
14
|
+
|
15
|
+
- Timeline: Fixed slot auto layout in Figma
|
16
|
+
- Slot: Fixed slot overriding styles of the swapped components
|
package/bin/cli.js
CHANGED
@@ -20,9 +20,8 @@ program
|
|
20
20
|
.command("theming")
|
21
21
|
.requiredOption("-o, --output <path>", "Path to output generated themes")
|
22
22
|
.option("-c, --config <path>", "Path to the config file")
|
23
|
-
.option("--private", "Package private theme generation that also builds mixins and media queries")
|
24
23
|
.action(async (opts) => {
|
25
|
-
const { output: outputPath, config: passedConfigPath
|
24
|
+
const { output: outputPath, config: passedConfigPath } = opts;
|
26
25
|
const originPath = process.cwd();
|
27
26
|
let configPath;
|
28
27
|
|
@@ -50,7 +49,7 @@ program
|
|
50
49
|
|
51
50
|
if (themes) {
|
52
51
|
Object.keys(themes).forEach((themeName) => {
|
53
|
-
addTheme(themeName, themes[themeName], { outputPath,
|
52
|
+
addTheme(themeName, themes[themeName], { outputPath, themeOptions });
|
54
53
|
});
|
55
54
|
}
|
56
55
|
|
@@ -58,7 +57,6 @@ program
|
|
58
57
|
Object.keys(themeFragments).forEach((fragmentName) => {
|
59
58
|
addThemeFragment(fragmentName, themeFragments[fragmentName], {
|
60
59
|
outputPath,
|
61
|
-
isPrivate: private,
|
62
60
|
themeOptions,
|
63
61
|
});
|
64
62
|
});
|