@databricks/design-system 1.9.0 → 1.9.2
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/dist/Typography-04e40f87.js +1465 -0
- package/dist/Typography-04e40f87.js.map +1 -0
- package/dist/Typography-52abe0b7.js +1142 -0
- package/dist/Typography-52abe0b7.js.map +1 -0
- package/dist/Typography-74e19785.js +1472 -0
- package/dist/Typography-74e19785.js.map +1 -0
- package/dist/Typography-84a00e02.js +1465 -0
- package/dist/Typography-84a00e02.js.map +1 -0
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts +6 -2
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +3 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts +7 -1
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/index.d.ts +71 -37
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/NotificationV2/NotificationV2.d.ts +23 -0
- package/dist/design-system/NotificationV2/NotificationV2.d.ts.map +1 -0
- package/dist/design-system/NotificationV2/index.d.ts +2 -0
- package/dist/design-system/NotificationV2/index.d.ts.map +1 -0
- package/dist/design-system/Popover/Popover.d.ts +2 -1
- package/dist/design-system/Popover/Popover.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts +4 -2
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/Tag/index.d.ts.map +1 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts +4 -0
- package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -0
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +1 -0
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/development/Slider/Slider.d.ts +11 -0
- package/dist/development/Slider/Slider.d.ts.map +1 -0
- package/dist/development/Slider/index.d.ts +2 -0
- package/dist/development/Slider/index.d.ts.map +1 -0
- package/dist/development/TableUI/TableUI.test.d.ts +2 -0
- package/dist/development/TableUI/TableUI.test.d.ts.map +1 -0
- package/dist/development/TableUI/index.d.ts +56 -0
- package/dist/development/TableUI/index.d.ts.map +1 -0
- package/dist/development/index.d.ts +3 -0
- package/dist/development/index.d.ts.map +1 -0
- package/dist/development.js +414 -0
- package/dist/development.js.map +1 -0
- package/dist/flags.d.ts +2 -1
- package/dist/flags.d.ts.map +1 -1
- package/dist/index-dark.css +1 -0
- package/dist/index-mfe-dark.css +1 -0
- package/dist/index-mfe.css +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +1274 -2587
- package/dist/index.js.map +1 -1
- package/dist/rollup-less-tilde-importer.d.ts.map +1 -1
- package/dist/test-utils/enzyme/index.d.ts +8 -0
- package/dist/test-utils/enzyme/index.d.ts.map +1 -0
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/index.d.ts +7 -0
- package/dist/test-utils/rtl/index.d.ts.map +1 -0
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/theme/colorList.d.ts +2 -0
- package/dist/theme/colorList.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +4 -3
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/convertToLessVars.d.ts +3 -4
- package/dist/theme/convertToLessVars.d.ts.map +1 -1
- package/dist/theme/generalVariables.d.ts +4 -0
- package/dist/theme/generalVariables.d.ts.map +1 -1
- package/dist/theme/index.d.ts +7 -3
- package/dist/theme/index.d.ts.map +1 -1
- package/package.json +9 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-less-tilde-importer.d.ts","sourceRoot":"","sources":["../src/rollup-less-tilde-importer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rollup-less-tilde-importer.d.ts","sourceRoot":"","sources":["../src/rollup-less-tilde-importer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AA2BrC,eAAO,MAAM,iBAAiB,QAAO,MA0BpC,CAAC"}
|
|
@@ -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=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/enzyme/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,mBAAoB,YAAY,SAE5D,CAAC"}
|
|
@@ -1 +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;;;;"}
|
|
1
|
+
{"version":3,"file":"enzyme.js","sources":["../../src/test-utils/enzyme/index.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=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/rtl/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,mBAA0B,WAAW,kBAEjE,CAAC"}
|
|
@@ -1 +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;;;;"}
|
|
1
|
+
{"version":3,"file":"rtl.js","sources":["../../src/test-utils/rtl/index.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;;;;"}
|
|
@@ -81,6 +81,8 @@ export declare const lightColorList: {
|
|
|
81
81
|
tagIconHover: string;
|
|
82
82
|
tagIconPress: string;
|
|
83
83
|
typographyCodeBg: string;
|
|
84
|
+
tableSeparatorColor: string;
|
|
85
|
+
tableRowHover: string;
|
|
84
86
|
tooltipBackgroundTooltip: string;
|
|
85
87
|
};
|
|
86
88
|
export declare const darkColorList: typeof lightColorList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorList.d.ts","sourceRoot":"","sources":["../../src/theme/colorList.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnF,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,mBAAmB,CAAC,EAAE,GAAG,YAAY,CAAC;AAEnF,KAAK,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAE7D,KAAK,qBAAqB,GAAG,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAGjE,eAAO,MAAM,mBAAmB,EAAE,mBA2CjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,qBAWnC,CAAC;AAaF,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"colorList.d.ts","sourceRoot":"","sources":["../../src/theme/colorList.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnF,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,mBAAmB,CAAC,EAAE,GAAG,YAAY,CAAC;AAEnF,KAAK,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAE7D,KAAK,qBAAqB,GAAG,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAGjE,eAAO,MAAM,mBAAmB,EAAE,mBA2CjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,qBAWnC,CAAC;AAaF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,cAkGlC,CAAC"}
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ThemeName } from './index';
|
|
2
1
|
declare const lightColors: {
|
|
3
2
|
brown: string;
|
|
4
3
|
coral: string;
|
|
@@ -125,6 +124,8 @@ declare const lightColors: {
|
|
|
125
124
|
tagIconHover: string;
|
|
126
125
|
tagIconPress: string;
|
|
127
126
|
typographyCodeBg: string;
|
|
127
|
+
tableSeparatorColor: string;
|
|
128
|
+
tableRowHover: string;
|
|
128
129
|
tooltipBackgroundTooltip: string;
|
|
129
130
|
};
|
|
130
131
|
type DesignSystemColors = typeof lightColors;
|
|
@@ -154,7 +155,7 @@ export interface AntdColors {
|
|
|
154
155
|
alertMessageColor: string;
|
|
155
156
|
spinDotDefault: string;
|
|
156
157
|
}
|
|
157
|
-
export declare function getAntdColors(
|
|
158
|
+
export declare function getAntdColors(isDarkMode: boolean): AntdColors;
|
|
158
159
|
declare const deprecatedColors: {
|
|
159
160
|
radioInteractiveAvailable: string;
|
|
160
161
|
radioInteractiveHover: string;
|
|
@@ -165,6 +166,6 @@ declare const deprecatedColors: {
|
|
|
165
166
|
radioInteractiveHoverSecondary: string;
|
|
166
167
|
radioInteractivePressSecondary: string;
|
|
167
168
|
};
|
|
168
|
-
export declare function getColors(
|
|
169
|
+
export declare function getColors(isDarkMode: boolean): typeof deprecatedColors & DesignSystemColors;
|
|
169
170
|
export {};
|
|
170
171
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0E,CAAC;AAC5F,KAAK,kBAAkB,GAAG,OAAO,WAAW,CAAC;AAM7C,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,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,UAAU,EAAE,OAAO,GAAG,UAAU,CAwC7D;AAMD,QAAA,MAAM,gBAAgB;;;;;;;;;CAUrB,CAAC;AAEF,wBAAgB,SAAS,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,gBAAgB,GAAG,kBAAkB,CAK3F"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import type { ThemeName } from '.';
|
|
2
1
|
/**
|
|
3
2
|
* Condense our variables into a single object that will be used
|
|
4
3
|
* to build exported `less` configurations.
|
|
5
4
|
*/
|
|
6
|
-
export declare function getLessVariables(
|
|
5
|
+
export declare function getLessVariables(isDarkMode: boolean): Record<string, any>;
|
|
7
6
|
/**
|
|
8
7
|
* This is used if you want to pass the theme to `modifyVars`.
|
|
9
8
|
* We use that in `rollup`, but not in `storybook` since we want theme changes
|
|
10
9
|
* to rebuild and refresh in the latter.
|
|
11
10
|
*/
|
|
12
|
-
export declare function getLessVariablesObject(
|
|
11
|
+
export declare function getLessVariablesObject(isDarkMode: boolean): Record<string, string | any>;
|
|
13
12
|
/**
|
|
14
13
|
* This exports a synthetic `less` file containing our `less` variables.
|
|
15
14
|
* We use this in storybook so that we can force that environment to refresh
|
|
16
15
|
* as we work on the theme during active development.
|
|
17
16
|
*/
|
|
18
|
-
export declare function getLessVariablesText(
|
|
17
|
+
export declare function getLessVariablesText(isDarkMode: boolean): string;
|
|
19
18
|
//# sourceMappingURL=convertToLessVars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToLessVars.d.ts","sourceRoot":"","sources":["../../src/theme/convertToLessVars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convertToLessVars.d.ts","sourceRoot":"","sources":["../../src/theme/convertToLessVars.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAUzE;AAgBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,CASxF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAQhE"}
|
|
@@ -11,5 +11,9 @@ declare const antdGeneralVariables: {
|
|
|
11
11
|
buttonHeight: number;
|
|
12
12
|
buttonInnerHeight: number;
|
|
13
13
|
};
|
|
14
|
+
export declare const getShadowVariables: (isDarkMode: boolean) => {
|
|
15
|
+
shadowLow: string;
|
|
16
|
+
shadowHigh: string;
|
|
17
|
+
};
|
|
14
18
|
export default antdGeneralVariables;
|
|
15
19
|
//# sourceMappingURL=generalVariables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generalVariables.d.ts","sourceRoot":"","sources":["../../src/theme/generalVariables.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;CAczB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"generalVariables.d.ts","sourceRoot":"","sources":["../../src/theme/generalVariables.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;CAczB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB,OAAO;;;CAYrD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import borders from './borders';
|
|
2
2
|
import { getColors } from './colors';
|
|
3
|
-
import generalVariables from './generalVariables';
|
|
3
|
+
import generalVariables, { getShadowVariables } from './generalVariables';
|
|
4
4
|
import spacing from './spacing';
|
|
5
5
|
import typography from './typography';
|
|
6
6
|
export type ThemeName = 'default' | 'dark';
|
|
@@ -12,11 +12,15 @@ export interface ThemeOptions {
|
|
|
12
12
|
export interface Theme {
|
|
13
13
|
colors: ReturnType<typeof getColors>;
|
|
14
14
|
spacing: typeof spacing;
|
|
15
|
-
general: typeof generalVariables
|
|
15
|
+
general: typeof generalVariables & ReturnType<typeof getShadowVariables>;
|
|
16
16
|
typography: typeof typography;
|
|
17
17
|
borders: typeof borders;
|
|
18
|
+
/**
|
|
19
|
+
* Deprecated. Use `isDarkMode` instead.
|
|
20
|
+
*/
|
|
18
21
|
themeName: ThemeName;
|
|
22
|
+
isDarkMode: boolean;
|
|
19
23
|
options: ThemeOptions;
|
|
20
24
|
}
|
|
21
|
-
export declare function getTheme(
|
|
25
|
+
export declare function getTheme(isDarkMode: boolean, options?: ThemeOptions): Theme;
|
|
22
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;
|
|
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,EAAE,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEzD,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;IACrC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,gBAAgB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACzE,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC;CACvB;AASD,wBAAgB,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,GAAE,YAA6B,GAAG,KAAK,CAc3F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/design-system",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "DuBois Design System",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"prep-deps": ": # magic task to allow yarn ensure-deps plugin prepare dependencies of this package"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.20.
|
|
59
|
+
"@babel/core": "^7.20.12",
|
|
60
60
|
"@babel/preset-env": "^7.20.2",
|
|
61
61
|
"@babel/preset-react": "^7.18.6",
|
|
62
62
|
"@babel/preset-typescript": "^7.18.6",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@emotion/cache": "^11.4.0",
|
|
70
70
|
"@emotion/react": "^11.4.0",
|
|
71
71
|
"@faker-js/faker": "^6.0.0-alpha.6",
|
|
72
|
-
"@jest/types": "^
|
|
72
|
+
"@jest/types": "^29.3.1",
|
|
73
73
|
"@percy/cli": "1.0.0-beta.70",
|
|
74
74
|
"@percy/storybook": "4.1.0",
|
|
75
75
|
"@radix-ui/react-switch": "^1.0.0",
|
|
@@ -84,12 +84,13 @@
|
|
|
84
84
|
"@storybook/react": "^6.5.5",
|
|
85
85
|
"@storybook/theming": "^6.5.5",
|
|
86
86
|
"@svgr/cli": "^5.5.0",
|
|
87
|
+
"@tanstack/react-table": "^8.7.3",
|
|
87
88
|
"@testing-library/jest-dom": "^5.14.1",
|
|
88
89
|
"@testing-library/react": "^12.1.2",
|
|
89
90
|
"@types/chroma-js": "^2.1.3",
|
|
90
91
|
"@types/enzyme": "^3.10.8",
|
|
91
92
|
"@types/glob": "^7.2.0",
|
|
92
|
-
"@types/jest": "^
|
|
93
|
+
"@types/jest": "^29.2.4",
|
|
93
94
|
"@types/jscodeshift": "^0.11.2",
|
|
94
95
|
"@types/lodash": "^4.14.157",
|
|
95
96
|
"@types/node": "^16.0.0",
|
|
@@ -138,11 +139,14 @@
|
|
|
138
139
|
},
|
|
139
140
|
"dependencies": {
|
|
140
141
|
"@ant-design/icons": "^4.7.0",
|
|
141
|
-
"@babel/runtime": "^7.20.
|
|
142
|
+
"@babel/runtime": "^7.20.7",
|
|
142
143
|
"@emotion/unitless": "^0.7.5",
|
|
143
144
|
"@radix-ui/react-dialog": "^1.0.0",
|
|
144
145
|
"@radix-ui/react-dropdown-menu": "^1.0.0",
|
|
145
146
|
"@radix-ui/react-popover": "^1.0.0",
|
|
147
|
+
"@radix-ui/react-slider": "^1.1.0",
|
|
148
|
+
"@radix-ui/react-toast": "^1.1.1",
|
|
149
|
+
"@radix-ui/react-toggle": "^1.0.1",
|
|
146
150
|
"@rollup/plugin-node-resolve": "^13.1.1",
|
|
147
151
|
"@testing-library/user-event": "^14.0.0",
|
|
148
152
|
"antd": "4.16.8",
|