@moda/om 18.3.1 → 18.4.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.
Files changed (55) hide show
  1. package/dist/index.cjs.js +14 -9
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +14 -9
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/src/__mocks__/Icon.d.ts +2 -2
  6. package/dist/src/components/AspectRatioBox/AspectRatioBox.stories.d.ts +2 -2
  7. package/dist/src/components/Badge/Badge.stories.d.ts +3 -3
  8. package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
  9. package/dist/src/components/Breakpoint/Breakpoint.stories.d.ts +4 -4
  10. package/dist/src/components/Button/Button.stories.d.ts +13 -13
  11. package/dist/src/components/Checkbox/Checkbox.stories.d.ts +7 -7
  12. package/dist/src/components/Clickable/Clickable.stories.d.ts +4 -4
  13. package/dist/src/components/ColorSwatch/ColorSwatch.stories.d.ts +6 -6
  14. package/dist/src/components/Constrain/Constrain.stories.d.ts +5 -5
  15. package/dist/src/components/Constrain/ExceedConstrain.stories.d.ts +4 -4
  16. package/dist/src/components/ControlLink/ControlLink.stories.d.ts +3 -3
  17. package/dist/src/components/CreditCardNumberInput/CreditCardNumberInput.stories.d.ts +2 -2
  18. package/dist/src/components/DefinitionList/DefinitionList.stories.d.ts +2 -2
  19. package/dist/src/components/Divider/Divider.stories.d.ts +5 -5
  20. package/dist/src/components/Expandable/Expandable.stories.d.ts +6 -6
  21. package/dist/src/components/Field/Field.stories.d.ts +4 -4
  22. package/dist/src/components/Label/Label.stories.d.ts +2 -2
  23. package/dist/src/components/Loading/Loading.stories.d.ts +2 -2
  24. package/dist/src/components/LoadingBalls/LoadingBalls.stories.d.ts +2 -2
  25. package/dist/src/components/LoadingShapes/LoadingShapes.d.ts +2 -2
  26. package/dist/src/components/LoadingShapes/LoadingShapes.stories.d.ts +2 -2
  27. package/dist/src/components/Modal/Modal.stories.d.ts +3 -3
  28. package/dist/src/components/ModalOverlay/ModalOverlay.stories.d.ts +2 -2
  29. package/dist/src/components/Overlay/Overlay.stories.d.ts +2 -2
  30. package/dist/src/components/Paginator/Paginator.stories.d.ts +2 -2
  31. package/dist/src/components/PasswordInput/PasswordInput.stories.d.ts +2 -2
  32. package/dist/src/components/Popover/Popover.stories.d.ts +2 -2
  33. package/dist/src/components/PromoBanner/PromoBanner.stories.d.ts +3 -3
  34. package/dist/src/components/RadioButton/RadioButton.stories.d.ts +3 -3
  35. package/dist/src/components/SearchInput/SearchInput.stories.d.ts +3 -3
  36. package/dist/src/components/Select/Select.stories.d.ts +10 -10
  37. package/dist/src/components/SelectableButton/SelectableButton.stories.d.ts +4 -4
  38. package/dist/src/components/Shape/Shape.stories.d.ts +2 -2
  39. package/dist/src/components/SlidingPane/SlidingPane.stories.d.ts +2 -2
  40. package/dist/src/components/Stack/Stack.stories.d.ts +5 -5
  41. package/dist/src/components/Tabs/Tabs.stories.d.ts +3 -3
  42. package/dist/src/components/Tag/Tag.stories.d.ts +2 -2
  43. package/dist/src/components/Text/Text.stories.d.ts +5 -5
  44. package/dist/src/components/TextInput/TextInput.stories.d.ts +2 -2
  45. package/dist/src/components/Textarea/Textarea.stories.d.ts +2 -2
  46. package/dist/src/components/Toast/Toast.stories.d.ts +2 -2
  47. package/dist/src/components/VerticalDivider/VerticalDivider.stories.d.ts +3 -3
  48. package/dist/src/index.d.ts +4 -0
  49. package/dist/src/mixins/font-smoothing/font-smoothing.stories.d.ts +2 -2
  50. package/dist/src/mixins/overflow-scroll/overflow-scroll.stories.d.ts +3 -3
  51. package/dist/src/mixins/stack/stack.stories.d.ts +3 -3
  52. package/dist/src/mixins/thin-underline/thin-underline.stories.d.ts +2 -2
  53. package/dist/src/mixins/visually-hidden/visually-hidden.stories.d.ts +2 -2
  54. package/package.json +8 -6
  55. package/src/components/Expandable/Expandable.stories.tsx +1 -1
@@ -16,6 +16,8 @@ export declare const tokens: {
16
16
  "money-good": string;
17
17
  fuchsia: string;
18
18
  "dark-fuchsia": string;
19
+ teal: string;
20
+ ivory: string;
19
21
  "klein-blue": string;
20
22
  brick: string;
21
23
  goldenrod: string;
@@ -37,6 +39,8 @@ export declare const tokens: {
37
39
  "money-good": string;
38
40
  fuchsia: string;
39
41
  "dark-fuchsia": string;
42
+ teal: string;
43
+ ivory: string;
40
44
  };
41
45
  global: {
42
46
  "klein-blue": string;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import './font-smoothing.stories.scss';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  export default _default;
7
- export declare const Default: () => JSX.Element;
7
+ export declare const Default: () => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import './overflow-scroll.stories.scss';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  export default _default;
7
- export declare const Default: () => JSX.Element;
8
- export declare const OverflowX: () => JSX.Element;
7
+ export declare const Default: () => React.JSX.Element;
8
+ export declare const OverflowX: () => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import './stack.stories.scss';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  export default _default;
7
- export declare const Default: () => JSX.Element;
8
- export declare const Horizontal: () => JSX.Element;
7
+ export declare const Default: () => React.JSX.Element;
8
+ export declare const Horizontal: () => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import './thin-underline.stories.scss';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  export default _default;
7
- export declare const Default: () => JSX.Element;
7
+ export declare const Default: () => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import './visually-hidden.stories.scss';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  };
6
6
  export default _default;
7
- export declare const Default: () => JSX.Element;
7
+ export declare const Default: () => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda/om",
3
- "version": "18.3.1",
3
+ "version": "18.4.0",
4
4
  "description": "Moda Operandi design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build:documentation": "NODE_ENV=production cd documentation && yarn build",
23
- "build:storybook": "NODE_ENV=storybook build-storybook",
23
+ "build:storybook": "NODE_ENV=storybook storybook build",
24
24
  "build": "NODE_ENV=production yarn compile && yarn types",
25
25
  "clean": "rm -rf ./dist",
26
26
  "commit": "yarn git-cz",
@@ -34,7 +34,7 @@
34
34
  "scaffold:function": "node scripts/scaffold/sass Functions",
35
35
  "semantic-release": "semantic-release",
36
36
  "start": "cd documentation && yarn start",
37
- "storybook": "start-storybook -p 6006",
37
+ "storybook": "storybook dev -p 6006",
38
38
  "test": "jest -w 1",
39
39
  "types": "tsc -p tsconfig.json --emitDeclarationOnly",
40
40
  "unlink-all": "yalc remove --all && yarn --check-files",
@@ -48,7 +48,8 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@moda/icons": "^5.18.0",
51
- "@moda/tokens": "^5.7.0",
51
+ "@moda/tokens": "^5.8.0",
52
+ "@storybook/addon-styling": "^1.0.1",
52
53
  "@types/classnames": "^2.2.9",
53
54
  "classnames": "^2.2.6",
54
55
  "credit-card-type": "^9.0.0",
@@ -57,6 +58,7 @@
57
58
  "react-focus-on": "^3.3.0",
58
59
  "react-input-mask": "^2.0.4",
59
60
  "scroll-into-view-if-needed": "^3.0.3",
61
+ "storybook": "^7.0.5",
60
62
  "use-cursor": "^1.0.0"
61
63
  },
62
64
  "devDependencies": {
@@ -74,12 +76,12 @@
74
76
  "@storybook/addon-actions": "^7.0.2",
75
77
  "@storybook/addon-essentials": "^7.0.2",
76
78
  "@storybook/addon-links": "^7.0.2",
79
+ "@storybook/addon-mdx-gfm": "^7.0.5",
77
80
  "@storybook/addon-postcss": "^2.0.0",
78
81
  "@storybook/addon-viewport": "^7.0.2",
79
82
  "@storybook/addons": "^7.0.2",
80
- "@storybook/builder-webpack5": "^7.0.2",
81
- "@storybook/manager-webpack5": "^6.5.6",
82
83
  "@storybook/react": "^7.0.2",
84
+ "@storybook/react-webpack5": "^7.0.5",
83
85
  "@testing-library/jest-dom": "^5.16.4",
84
86
  "@testing-library/react": "^14.0.0",
85
87
  "@testing-library/user-event": "^14.1.1",
@@ -93,7 +93,7 @@ export const Stacked = () => (
93
93
  consequat. Morbi et volutpat nulla, a vehicula nisl. Nullam tincidunt ac neque ornare
94
94
  mattis. Donec eget dapibus enim. Aliquam ut tortor pretium dui pretium tincidunt. Donec quis
95
95
  lacus maximus, dignissim arcu nec, lacinia arcu. Sed placerat leo velit. Ut vehicula sodales
96
- egestas. Nunc sed dapibus tortor.
96
+ egestas. Nunc sed dapibus tortor!
97
97
  </Expandable>
98
98
  </Stack>
99
99
  </States>