@databricks/design-system 1.7.0 → 1.9.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 (92) hide show
  1. package/dist/design-system/Alert/Alert.d.ts +1 -1
  2. package/dist/design-system/Alert/Alert.d.ts.map +1 -1
  3. package/dist/design-system/Button/Button.d.ts +1 -1
  4. package/dist/design-system/Button/Button.d.ts.map +1 -1
  5. package/dist/design-system/DatePicker/DatePicker.d.ts +7 -7
  6. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  7. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +1 -0
  8. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  9. package/dist/design-system/Drawer/Drawer.d.ts +38 -0
  10. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -0
  11. package/dist/design-system/Drawer/index.d.ts +2 -0
  12. package/dist/design-system/Drawer/index.d.ts.map +1 -0
  13. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  14. package/dist/design-system/Empty/Empty.d.ts.map +1 -1
  15. package/dist/design-system/Form/Form.d.ts +1 -1
  16. package/dist/design-system/Form/Form.d.ts.map +1 -1
  17. package/dist/design-system/FormV2/RHFAdapters.d.ts +12 -2
  18. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  19. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +1 -1
  20. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
  21. package/dist/design-system/Icon/Icon.d.ts +2 -2
  22. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  23. package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts +4 -0
  24. package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts.map +1 -0
  25. package/dist/design-system/Icon/__generated/icons/index.d.ts +1 -0
  26. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  27. package/dist/design-system/Input/Input.d.ts +1 -1
  28. package/dist/design-system/Input/Input.d.ts.map +1 -1
  29. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  30. package/dist/design-system/Notification/Notification.d.ts +2 -2
  31. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  32. package/dist/design-system/PopoverV2/PopoverV2.d.ts +10 -0
  33. package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +1 -0
  34. package/dist/design-system/PopoverV2/PopoverV2.test.d.ts +2 -0
  35. package/dist/design-system/PopoverV2/PopoverV2.test.d.ts.map +1 -0
  36. package/dist/design-system/PopoverV2/index.d.ts +2 -0
  37. package/dist/design-system/PopoverV2/index.d.ts.map +1 -0
  38. package/dist/design-system/Radio/Radio.d.ts +10 -8
  39. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  40. package/dist/design-system/Select/Select.d.ts +3 -3
  41. package/dist/design-system/Select/Select.d.ts.map +1 -1
  42. package/dist/design-system/Spacer/Spacer.d.ts +1 -1
  43. package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
  44. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts +4 -4
  45. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  46. package/dist/design-system/SplitButton/SplitButton.d.ts +1 -1
  47. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  48. package/dist/design-system/Tag/index.d.ts +5 -3
  49. package/dist/design-system/Tag/index.d.ts.map +1 -1
  50. package/dist/design-system/Tree/Tree.d.ts +1 -1
  51. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  52. package/dist/design-system/Typography/Link.d.ts +1 -1
  53. package/dist/design-system/Typography/Link.d.ts.map +1 -1
  54. package/dist/design-system/Typography/Paragraph.d.ts +2 -2
  55. package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
  56. package/dist/design-system/Typography/Text.d.ts +2 -2
  57. package/dist/design-system/Typography/Text.d.ts.map +1 -1
  58. package/dist/design-system/Typography/Title.d.ts +2 -2
  59. package/dist/design-system/Typography/Title.d.ts.map +1 -1
  60. package/dist/design-system/index.d.ts +2 -0
  61. package/dist/design-system/index.d.ts.map +1 -1
  62. package/dist/design-system/types.d.ts +2 -2
  63. package/dist/design-system/types.d.ts.map +1 -1
  64. package/dist/flags.d.ts +4 -3
  65. package/dist/flags.d.ts.map +1 -1
  66. package/dist/index-mfe-dark.css +17524 -0
  67. package/dist/index-mfe.css +17183 -0
  68. package/dist/index.js +1387 -909
  69. package/dist/index.js.map +1 -1
  70. package/dist/test-utils/enzyme.d.ts +8 -0
  71. package/dist/test-utils/enzyme.d.ts.map +1 -0
  72. package/dist/test-utils/enzyme.js +16 -0
  73. package/dist/test-utils/enzyme.js.map +1 -0
  74. package/dist/test-utils/rtl.d.ts +7 -0
  75. package/dist/test-utils/rtl.d.ts.map +1 -0
  76. package/dist/test-utils/rtl.js +13 -0
  77. package/dist/test-utils/rtl.js.map +1 -0
  78. package/dist/test-utils/types.d.ts +15 -0
  79. package/dist/test-utils/types.d.ts.map +1 -0
  80. package/dist/theme/colorList.d.ts +7 -7
  81. package/dist/theme/colorList.d.ts.map +1 -1
  82. package/dist/theme/colors.d.ts +1 -1
  83. package/dist/theme/colors.d.ts.map +1 -1
  84. package/dist/theme/index.d.ts +2 -2
  85. package/dist/theme/index.d.ts.map +1 -1
  86. package/package.json +20 -14
  87. package/dist/design-system/Collapse/Collapse.d.ts +0 -44
  88. package/dist/design-system/Collapse/Collapse.d.ts.map +0 -1
  89. package/dist/design-system/Collapse/index.d.ts +0 -2
  90. package/dist/design-system/Collapse/index.d.ts.map +0 -1
  91. package/dist/design-system/FormV2/FormV2.d.ts +0 -21
  92. package/dist/design-system/FormV2/FormV2.d.ts.map +0 -1
@@ -0,0 +1,8 @@
1
+ import type { ReactWrapper } from 'enzyme';
2
+ /**
3
+ * Open a dropdown menu by simulating a pointerDown event on the dropdown button.
4
+ *
5
+ * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.
6
+ */
7
+ export declare const openDropdownMenu: (dropdownButton: ReactWrapper) => void;
8
+ //# sourceMappingURL=enzyme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enzyme.d.ts","sourceRoot":"","sources":["../../src/test-utils/enzyme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,mBAAoB,YAAY,SAE5D,CAAC"}
@@ -0,0 +1,16 @@
1
+ // eslint-disable-next-line @databricks/no-restricted-imports-regexp
2
+
3
+ /**
4
+ * Open a dropdown menu by simulating a pointerDown event on the dropdown button.
5
+ *
6
+ * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.
7
+ */
8
+ const openDropdownMenu = dropdownButton => {
9
+ dropdownButton.hostNodes().simulate('pointerDown', {
10
+ button: 0,
11
+ ctrlKey: false
12
+ });
13
+ };
14
+
15
+ export { openDropdownMenu };
16
+ //# sourceMappingURL=enzyme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enzyme.js","sources":["../../src/test-utils/enzyme.ts"],"sourcesContent":["// eslint-disable-next-line @databricks/no-restricted-imports-regexp\nimport type { ReactWrapper } from 'enzyme';\n\n/**\n * Open a dropdown menu by simulating a pointerDown event on the dropdown button.\n *\n * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.\n */\nexport const openDropdownMenu = (dropdownButton: ReactWrapper) => {\n dropdownButton.hostNodes().simulate('pointerDown', { button: 0, ctrlKey: false });\n};\n"],"names":["openDropdownMenu","dropdownButton","hostNodes","simulate","button","ctrlKey"],"mappings":"AAAA;;AAGA;AACA;AACA;AACA;AACA;MACaA,gBAAgB,GAAIC,cAA4B,IAAK;EAChEA,cAAc,CAACC,SAAS,EAAE,CAACC,QAAQ,CAAC,aAAa,EAAE;IAAEC,MAAM,EAAE,CAAC;IAAEC,OAAO,EAAE;GAAO,CAAC;AACnF;;;;"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Opens the dropdown menu by clicking on the dropdown button.
3
+ *
4
+ * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.
5
+ */
6
+ export declare const openDropdownMenu: (dropdownButton: HTMLElement) => Promise<void>;
7
+ //# sourceMappingURL=rtl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtl.d.ts","sourceRoot":"","sources":["../../src/test-utils/rtl.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,mBAA0B,WAAW,kBAEjE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import userEvent from '@testing-library/user-event';
2
+
3
+ /**
4
+ * Opens the dropdown menu by clicking on the dropdown button.
5
+ *
6
+ * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.
7
+ */
8
+ const openDropdownMenu = async dropdownButton => {
9
+ await userEvent.click(dropdownButton);
10
+ };
11
+
12
+ export { openDropdownMenu };
13
+ //# sourceMappingURL=rtl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtl.js","sources":["../../src/test-utils/rtl.ts"],"sourcesContent":["import userEvent from '@testing-library/user-event';\n\n/**\n * Opens the dropdown menu by clicking on the dropdown button.\n *\n * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.\n */\nexport const openDropdownMenu = async (dropdownButton: HTMLElement) => {\n await userEvent.click(dropdownButton);\n};\n"],"names":["openDropdownMenu","dropdownButton","userEvent","click"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;MACaA,gBAAgB,GAAG,MAAOC,cAA2B,IAAK;EACrE,MAAMC,SAAS,CAACC,KAAK,CAACF,cAAc,CAAC;AACvC;;;;"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is used to check that the test utilities exposed are the same for
3
+ * both Enzyme and RTL. Specifically, we simply compare that the export identifiers
4
+ * are the same between `enzyme.ts` and `rtl.ts`. Note that this does not compare
5
+ * the input/output types for each export because Enzyme and RTL have very different
6
+ * types and it would be hard to enforce consistency of the exact API types. `testUtilsEqual`
7
+ * is required to be `true` through the type system. so if the Enzyme and RTL APIs
8
+ * diverge, this file will produce a type error.
9
+ */
10
+ type EnzymeTestUtils = keyof typeof import('./enzyme');
11
+ type RTLTestUtils = keyof typeof import('./rtl');
12
+ type Equal<U1, U2> = [U1] extends [U2] ? ([U2] extends [U1] ? true : false) : false;
13
+ type TestUtilsEqual = Equal<EnzymeTestUtils, RTLTestUtils>;
14
+ declare const testUtilsEqual: TestUtilsEqual;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/test-utils/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,KAAK,eAAe,GAAG,MAAM,cAAc,UAAU,CAAC,CAAC;AAGvD,KAAK,YAAY,GAAG,MAAM,cAAc,OAAO,CAAC,CAAC;AAEjD,KAAK,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;AACpF,KAAK,cAAc,GAAG,KAAK,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;AAI3D,QAAA,MAAM,cAAc,EAAE,cAAqB,CAAC"}
@@ -1,10 +1,10 @@
1
- export declare type ColorName = 'blue' | 'green' | 'grey' | 'red' | 'yellow';
2
- export declare type ColorWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
3
- export declare type PrimaryColorToken = `${ColorName}${ColorWeight}` | 'primary' | 'white';
4
- export declare type SecondaryColorToken = 'brown' | 'coral' | 'charcoal' | 'indigo' | 'lemon' | 'lime' | 'pink' | 'purple' | 'teal' | 'turquoise';
5
- export declare type TagColorToken = `tag${Capitalize<SecondaryColorToken>}` | 'tagDefault';
6
- declare type ColorPalettePrimary = Record<PrimaryColorToken, string>;
7
- declare type ColorPaletteSecondary = Record<SecondaryColorToken, string>;
1
+ export type ColorName = 'blue' | 'green' | 'grey' | 'red' | 'yellow';
2
+ export type ColorWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
3
+ export type PrimaryColorToken = `${ColorName}${ColorWeight}` | 'primary' | 'white';
4
+ export type SecondaryColorToken = 'brown' | 'coral' | 'charcoal' | 'indigo' | 'lemon' | 'lime' | 'pink' | 'purple' | 'teal' | 'turquoise';
5
+ export type TagColorToken = `tag${Capitalize<SecondaryColorToken>}` | 'tagDefault';
6
+ type ColorPalettePrimary = Record<PrimaryColorToken, string>;
7
+ type ColorPaletteSecondary = Record<SecondaryColorToken, string>;
8
8
  export declare const colorPalettePrimary: ColorPalettePrimary;
9
9
  export declare const colorPaletteSecondary: ColorPaletteSecondary;
10
10
  export declare const lightColorList: {
@@ -1 +1 @@
1
- {"version":3,"file":"colorList.d.ts","sourceRoot":"","sources":["../../src/theme/colorList.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAErE,oBAAY,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAExE,oBAAY,iBAAiB,GAAG,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnF,oBAAY,mBAAmB,GAC3B,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAEhB,oBAAY,aAAa,GAAG,MAAM,UAAU,CAAC,mBAAmB,CAAC,EAAE,GAAG,YAAY,CAAC;AAEnF,aAAK,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAE7D,aAAK,qBAAqB,GAAG,MAAM,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,cA8FlC,CAAC"}
@@ -127,7 +127,7 @@ declare const lightColors: {
127
127
  typographyCodeBg: string;
128
128
  tooltipBackgroundTooltip: string;
129
129
  };
130
- declare type DesignSystemColors = typeof lightColors;
130
+ type DesignSystemColors = typeof lightColors;
131
131
  export interface AntdColors {
132
132
  bodyBackground: string;
133
133
  textColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0E,CAAC;AAC5F,aAAK,kBAAkB,GAAG,OAAO,WAAW,CAAC;AAW7C,MAAM,WAAW,UAAU;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IAExB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAE9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oB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AAqB,EAAE,MAAM,CAAC;IAE9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAE7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAE9B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,cAAc,EAAE,MAAM,CAAC;CACxB;AAGD,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CAwC1D;AAMD,QAAA,MAAM,gBAAgB;;;;;;;;;CAUrB,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,gBAAgB,GAAG,kBAAkB,CAKxF"}
@@ -3,8 +3,8 @@ import { getColors } from './colors';
3
3
  import generalVariables from './generalVariables';
4
4
  import spacing from './spacing';
5
5
  import typography from './typography';
6
- export declare type ThemeName = 'default' | 'dark';
7
- export declare type ComponentTheme = ReturnType<typeof getTheme>;
6
+ export type ThemeName = 'default' | 'dark';
7
+ export type ComponentTheme = ReturnType<typeof getTheme>;
8
8
  export interface ThemeOptions {
9
9
  enableAnimation: boolean;
10
10
  zIndexBase: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AAItC,oBAAY,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAC3C,oBAAY,cAAc,GAA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S,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,YAAY,CAAC;CACvB;AASD,wBAAgB,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,GAAE,YAA6B,GAAG,KAAK,CAU5F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/design-system",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "DuBois Design System",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -31,7 +31,8 @@
31
31
  "build:deps": "yarn workspaces foreach -piR --topological-dev --from @databricks/design-system --exclude @databricks/design-system run build",
32
32
  "build:js:base": "databricks-pkgr build --no-clean",
33
33
  "build:js": "yarn build:js:base",
34
- "build:styles": "npm-run-all --parallel build:styles-default-theme build:styles-dark-theme",
34
+ "build:styles": "npm-run-all --parallel build:styles-default-theme build:styles-dark-theme build:styles:mfe",
35
+ "build:styles:mfe": "BUILD_FOR_MFE=true npm-run-all --parallel build:styles-default-theme build:styles-dark-theme",
35
36
  "build:styles-default-theme": "rollup --configPlugin typescript -c ./src/rollup.styles.config.ts",
36
37
  "build:styles-dark-theme": "BUILD_DARK_MODE=true rollup --configPlugin typescript -c ./src/rollup.styles.config.ts",
37
38
  "watch": "yarn build:js:base -w",
@@ -71,7 +72,6 @@
71
72
  "@jest/types": "^28.1.0",
72
73
  "@percy/cli": "1.0.0-beta.70",
73
74
  "@percy/storybook": "4.1.0",
74
- "@radix-ui/react-popover": "^1.0.0",
75
75
  "@radix-ui/react-switch": "^1.0.0",
76
76
  "@storybook/addon-actions": "^6.5.5",
77
77
  "@storybook/addon-docs": "^6.5.5",
@@ -86,7 +86,8 @@
86
86
  "@svgr/cli": "^5.5.0",
87
87
  "@testing-library/jest-dom": "^5.14.1",
88
88
  "@testing-library/react": "^12.1.2",
89
- "@testing-library/user-event": "^14.0.0",
89
+ "@types/chroma-js": "^2.1.3",
90
+ "@types/enzyme": "^3.10.8",
90
91
  "@types/glob": "^7.2.0",
91
92
  "@types/jest": "^28.1.6",
92
93
  "@types/jscodeshift": "^0.11.2",
@@ -94,23 +95,24 @@
94
95
  "@types/node": "^16.0.0",
95
96
  "@types/react": "^17.0.50",
96
97
  "@types/react-dom": "^17.0.17",
98
+ "@types/react-resizable": "^3.0.3",
97
99
  "babel-loader": "^8.2.2",
98
100
  "babel-plugin-react-require": "^3.1.3",
99
101
  "cross-env": "^7.0.3",
100
- "css-loader": "^5.0.1",
102
+ "css-loader": "^6.7.2",
101
103
  "dir-compare-cli": "^1.0.1",
102
104
  "glob": "^8.0.1",
103
105
  "identity-obj-proxy": "^3.0.0",
104
106
  "jscodeshift": "^0.13.0",
105
- "less": "^3.0.0",
106
- "less-loader": "^7.2.1",
107
+ "less": "^3.9.0",
108
+ "less-loader": "^4.1.0",
107
109
  "magic-string": "^0.25.7",
108
110
  "npm-run-all": "^4.1.5",
109
111
  "postcss": "^8.3.5",
110
112
  "postcss-filter-rules": "^0.6.1",
111
113
  "postcss-loader": "^4",
112
114
  "postcss-prefix-selector": "^1.9.0",
113
- "prettier": "^2.6.2",
115
+ "prettier": "^2.8.0",
114
116
  "raw-loader": "^4.0.2",
115
117
  "rc-menu": "^9.0.14",
116
118
  "react": "^17.0.1",
@@ -121,10 +123,10 @@
121
123
  "rollup": "^2.61.1",
122
124
  "rollup-plugin-postcss": "^4.0.0",
123
125
  "storybook-dark-mode": "^1.0.8",
124
- "style-loader": "^2.0.0",
126
+ "style-loader": "^3.3.1",
125
127
  "ts-node": "^10.9.1",
126
128
  "tsconfig-paths": "^3.9.0",
127
- "typescript": "^4.8.4",
129
+ "typescript": "^4.9.3",
128
130
  "webpack": "^5.64.1",
129
131
  "webpack-merge": "^5.8.0"
130
132
  },
@@ -138,19 +140,23 @@
138
140
  "@ant-design/icons": "^4.7.0",
139
141
  "@babel/runtime": "^7.20.1",
140
142
  "@emotion/unitless": "^0.7.5",
143
+ "@radix-ui/react-dialog": "^1.0.0",
141
144
  "@radix-ui/react-dropdown-menu": "^1.0.0",
145
+ "@radix-ui/react-popover": "^1.0.0",
142
146
  "@rollup/plugin-node-resolve": "^13.1.1",
143
- "@types/chroma-js": "^2.1.3",
144
- "@types/react-resizable": "^3.0.3",
147
+ "@testing-library/user-event": "^14.0.0",
145
148
  "antd": "4.16.8",
146
149
  "chroma-js": "^2.4.2",
147
150
  "classnames": "^2.3.1",
151
+ "enzyme": "^3.11.0",
148
152
  "lodash": "^4.17.21",
153
+ "postcss-prefixwrap": "^1.37.0",
149
154
  "react-hook-form": "^7.36.0",
150
155
  "react-resizable": "^3.0.4",
151
- "tslib": "^2.4.0"
156
+ "tslib": "^2.4.1"
152
157
  },
153
158
  "notes": [
154
159
  "rollup patch: Limit concurrent writes to work around jenkins open file handle limit affecting classic builds (ES-198426)."
155
- ]
160
+ ],
161
+ "stableVersion": "1.7.0"
156
162
  }
@@ -1,44 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Interpolation, Theme as EmotionTheme } from '@emotion/react';
3
- import type { CollapseProps as AntDCollapseProps, CollapsePanelProps as AntDCollapsePanelProps } from 'antd';
4
- import type { CollapsibleType } from 'antd/lib/collapse/CollapsePanel';
5
- import type { HTMLDataAttributes } from '../types';
6
- export interface CollapseProps extends HTMLDataAttributes {
7
- /** If true, Collapse renders as Accordion */
8
- accordion?: boolean;
9
- /** Key of the active panel */
10
- activeKey?: Array<string | number> | string | number;
11
- /** Specify whether the panels of children be collapsible or the trigger area of collapsible */
12
- collapsible?: CollapsibleType;
13
- /** Key of the initial active panel */
14
- defaultActiveKey?: Array<string | number> | string | number;
15
- /** Destroy Inactive Panel */
16
- destroyInactivePanel?: boolean;
17
- /** Callback function executed when active panel is changed */
18
- onChange?: (key: string | string[]) => void;
19
- /** Escape hatch to allow passing props directly to the underlying Ant `TabPane` component. */
20
- dangerouslySetAntdProps?: Partial<AntDCollapseProps>;
21
- /** Applies emotion styles to the top-level element in the component. Ask in #dubois before using. */
22
- dangerouslyAppendEmotionCSS?: Interpolation<EmotionTheme>;
23
- }
24
- export interface CollapsePanelProps extends HTMLDataAttributes {
25
- /** Unique key identifying the panel from among its siblings */
26
- key: string | number;
27
- /** Title of the panel */
28
- header: React.ReactNode;
29
- /** Specify whether the panel be collapsible or the trigger area of collapsible */
30
- collapsible?: CollapsibleType;
31
- /** Forced render of content on panel, instead of lazy rending after clicking on header */
32
- forceRender?: boolean;
33
- /** Escape hatch to allow passing props directly to the underlying Ant `TabPane` component. */
34
- dangerouslySetAntdProps?: Partial<AntDCollapsePanelProps>;
35
- /** Applies emotion styles to the top-level element in the component. Ask in #dubois before using. */
36
- dangerouslyAppendEmotionCSS?: Interpolation<EmotionTheme>;
37
- }
38
- interface CollapseInterface extends React.FC<CollapseProps> {
39
- Panel: React.FC<CollapsePanelProps>;
40
- }
41
- export declare const CollapsePanel: React.FC<CollapsePanelProps>;
42
- export declare const Collapse: CollapseInterface;
43
- export {};
44
- //# sourceMappingURL=Collapse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Collapse.d.ts","sourceRoot":"","sources":["../../../src/design-system/Collapse/Collapse.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAa,aAAa,EAAoB,KAAK,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAExG,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,kBAAkB,IAAI,sBAAsB,EAAE,MAAM,MAAM,CAAC;AAE7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,CAAC;IACrD,+FAA+F;IAC/F,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5D,6BAA6B;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,8FAA8F;IAC9F,uBAAuB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACrD,qGAAqG;IACrG,2BAA2B,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,+DAA+D;IAC/D,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kFAAkF;IAClF,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,0FAA0F;IAC1F,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8FAA8F;IAC9F,uBAAuB,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC1D,qGAAqG;IACrG,2BAA2B,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CAC3D;AAED,UAAU,iBAAkB,SAAQ,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC;IACzD,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC;CACrC;AAgFD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAUtD,CAAC;AAEF,eAAO,MAAM,QAAQ,mBAoBjB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Collapse';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/Collapse/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,21 +0,0 @@
1
- import { Checkbox } from '../Checkbox';
2
- import { FormMessage } from '../FormMessage/FormMessage';
3
- import { Hint } from '../Hint/Hint';
4
- import { Input } from '../Input';
5
- import { Label } from '../Label/Label';
6
- import { Radio } from '../Radio';
7
- import { Select } from '../Select';
8
- import { Switch } from '../Switch';
9
- interface FormV2Interface {
10
- Input: typeof Input;
11
- Message: typeof FormMessage;
12
- Label: typeof Label;
13
- Hint: typeof Hint;
14
- Select: typeof Select;
15
- Checkbox: typeof Checkbox;
16
- Radio: typeof Radio;
17
- Switch: typeof Switch;
18
- }
19
- export declare const FormV2: FormV2Interface;
20
- export {};
21
- //# sourceMappingURL=FormV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormV2.d.ts","sourceRoot":"","sources":["../../../src/design-system/FormV2/FormV2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,UAAU,eAAe;IACvB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,MAAM,EAAE,OAAO,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,MAAM,EAAE,eASpB,CAAC"}