@dbcdk/react-components 0.0.3 → 0.0.5
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/assets/logo.cjs +10 -10
- package/dist/assets/logo.js +10 -10
- package/dist/components/__stories__/story-components/Colors.cjs +159 -0
- package/dist/components/__stories__/story-components/Colors.d.ts +10 -0
- package/dist/components/__stories__/story-components/Colors.js +151 -0
- package/dist/components/__stories__/story-components/Colors.module.css +27 -0
- package/dist/components/__stories__/story-components/Spacing.cjs +190 -0
- package/dist/components/__stories__/story-components/Spacing.d.ts +1 -0
- package/dist/components/__stories__/story-components/Spacing.js +184 -0
- package/dist/components/__stories__/story-components/Spacing.module.css +154 -0
- package/dist/components/app-header/AppHeader.module.css +10 -15
- package/dist/components/attribute-chip/AttributeChip.cjs +22 -0
- package/dist/components/attribute-chip/AttributeChip.d.ts +8 -0
- package/dist/components/attribute-chip/AttributeChip.js +16 -0
- package/dist/components/attribute-chip/AttributeChip.module.css +65 -0
- package/dist/components/avatar/Avatar.cjs +38 -4
- package/dist/components/avatar/Avatar.d.ts +4 -2
- package/dist/components/avatar/Avatar.js +39 -5
- package/dist/components/avatar/Avatar.module.css +27 -0
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +19 -22
- package/dist/components/button/Button.cjs +20 -12
- package/dist/components/button/Button.d.ts +4 -1
- package/dist/components/button/Button.js +20 -12
- package/dist/components/button/Button.module.css +118 -55
- package/dist/components/card/Card.cjs +53 -13
- package/dist/components/card/Card.d.ts +21 -6
- package/dist/components/card/Card.js +54 -14
- package/dist/components/card/Card.module.css +148 -44
- package/dist/components/card-container/CardContainer.cjs +6 -5
- package/dist/components/card-container/CardContainer.d.ts +5 -2
- package/dist/components/card-container/CardContainer.js +6 -5
- package/dist/components/card-container/CardContainer.module.css +40 -0
- package/dist/components/checkbox/Checkbox.cjs +3 -4
- package/dist/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.js +3 -4
- package/dist/components/checkbox/Checkbox.module.css +10 -10
- package/dist/components/chip/Chip.cjs +2 -1
- package/dist/components/chip/Chip.d.ts +2 -1
- package/dist/components/chip/Chip.js +2 -1
- package/dist/components/chip/Chip.module.css +42 -27
- package/dist/components/circle/Circle.module.css +11 -11
- package/dist/components/clear-button/ClearButton.cjs +3 -3
- package/dist/components/clear-button/ClearButton.js +3 -3
- package/dist/components/clear-button/ClearButton.module.css +8 -7
- package/dist/components/code-block/CodeBlock.cjs +18 -0
- package/dist/components/code-block/CodeBlock.d.ts +6 -0
- package/dist/components/code-block/CodeBlock.js +12 -0
- package/dist/components/code-block/CodeBlock.module.css +60 -0
- package/dist/components/copy-button/CopyButton.cjs +35 -0
- package/dist/components/copy-button/CopyButton.d.ts +9 -0
- package/dist/components/copy-button/CopyButton.js +29 -0
- package/dist/components/copy-button/CopyButton.module.css +6 -0
- package/dist/components/datetime-picker/DateTimePicker.cjs +504 -0
- package/dist/components/datetime-picker/DateTimePicker.d.ts +39 -0
- package/dist/components/datetime-picker/DateTimePicker.js +498 -0
- package/dist/components/datetime-picker/DateTimePicker.module.css +144 -0
- package/dist/components/filter-field/FilterField.cjs +34 -19
- package/dist/components/filter-field/FilterField.d.ts +2 -2
- package/dist/components/filter-field/FilterField.js +35 -20
- package/dist/components/filter-field/FilterField.module.css +14 -20
- package/dist/components/headline/Headline.cjs +10 -4
- package/dist/components/headline/Headline.d.ts +9 -1
- package/dist/components/headline/Headline.js +10 -4
- package/dist/components/headline/Headline.module.css +32 -7
- package/dist/components/icon/Icon.module.css +10 -9
- package/dist/components/input/Input.cjs +60 -19
- package/dist/components/input/Input.d.ts +7 -2
- package/dist/components/input/Input.js +60 -19
- package/dist/components/input/Input.module.css +90 -43
- package/dist/components/link/Link.cjs +46 -0
- package/dist/components/link/Link.d.ts +9 -0
- package/dist/components/link/Link.js +21 -0
- package/dist/components/link/Link.module.css +32 -0
- package/dist/components/menu/Menu.module.css +10 -32
- package/dist/components/meta-bar/MetaBar.cjs +29 -0
- package/dist/components/meta-bar/MetaBar.d.ts +11 -0
- package/dist/components/meta-bar/MetaBar.js +22 -0
- package/dist/components/meta-bar/MetaBar.module.css +12 -0
- package/dist/components/modal/Modal.cjs +134 -0
- package/dist/components/modal/Modal.d.ts +21 -0
- package/dist/components/modal/Modal.js +128 -0
- package/dist/components/modal/Modal.module.css +66 -0
- package/dist/components/modal/provider/ModalProvider.cjs +80 -0
- package/dist/components/modal/provider/ModalProvider.d.ts +21 -0
- package/dist/components/modal/provider/ModalProvider.js +77 -0
- package/dist/components/multi-select/MultiSelect.cjs +12 -1
- package/dist/components/multi-select/MultiSelect.js +12 -1
- package/dist/components/nav-bar/NavBar.module.css +11 -16
- package/dist/components/page/Page.module.css +2 -2
- package/dist/components/page-layout/PageLayout.cjs +5 -22
- package/dist/components/page-layout/PageLayout.d.ts +1 -8
- package/dist/components/page-layout/PageLayout.js +5 -22
- package/dist/components/page-layout/PageLayout.module.css +4 -80
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.cjs +32 -0
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.d.ts +11 -0
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.js +25 -0
- package/dist/components/page-layout/components/page-layout-hero/PageLayoutHero.module.css +84 -0
- package/dist/components/pagination/Pagination.cjs +83 -67
- package/dist/components/pagination/Pagination.d.ts +3 -1
- package/dist/components/pagination/Pagination.js +84 -68
- package/dist/components/pagination/Pagination.module.css +11 -3
- package/dist/components/panel/Panel.module.css +5 -7
- package/dist/components/popover/Popover.cjs +25 -8
- package/dist/components/popover/Popover.d.ts +2 -1
- package/dist/components/popover/Popover.js +25 -8
- package/dist/components/popover/Popover.module.css +4 -6
- package/dist/components/search-box/SearchBox.cjs +50 -37
- package/dist/components/search-box/SearchBox.d.ts +10 -7
- package/dist/components/search-box/SearchBox.js +50 -37
- package/dist/components/search-box/SearchBox.module.css +0 -1
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +12 -6
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +12 -6
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +5 -1
- package/dist/components/select/Select.cjs +82 -13
- package/dist/components/select/Select.d.ts +2 -1
- package/dist/components/select/Select.js +83 -14
- package/dist/components/sidebar/Sidebar.cjs +3 -30
- package/dist/components/sidebar/Sidebar.d.ts +2 -1
- package/dist/components/sidebar/Sidebar.js +4 -26
- package/dist/components/sidebar/components/SidebarItem.cjs +3 -1
- package/dist/components/sidebar/components/SidebarItem.js +3 -1
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +40 -14
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts +3 -1
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +40 -14
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +9 -38
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +50 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.d.ts +8 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +43 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +155 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +16 -9
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.d.ts +2 -1
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +16 -9
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +25 -12
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +2 -1
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.d.ts +1 -1
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +2 -1
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +29 -2
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +25 -2
- package/dist/components/sidebar/providers/SidebarProvider.cjs +108 -10
- package/dist/components/sidebar/providers/SidebarProvider.d.ts +7 -3
- package/dist/components/sidebar/providers/SidebarProvider.js +109 -11
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +1 -1
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +1 -1
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +0 -12
- package/dist/components/split-pane/SplitPane.cjs +123 -0
- package/dist/components/split-pane/SplitPane.d.ts +34 -0
- package/dist/components/split-pane/SplitPane.js +114 -0
- package/dist/components/split-pane/SplitPane.module.css +106 -0
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +87 -0
- package/dist/components/split-pane/provider/SplitPaneContext.d.ts +23 -0
- package/dist/components/split-pane/provider/SplitPaneContext.js +79 -0
- package/dist/components/table/Table.cjs +180 -112
- package/dist/components/table/Table.d.ts +22 -6
- package/dist/components/table/Table.js +181 -113
- package/dist/components/table/Table.module.css +74 -47
- package/dist/components/table/components/empty-state/EmptyState.cjs +52 -0
- package/dist/components/table/components/empty-state/EmptyState.d.ts +40 -0
- package/dist/components/table/components/empty-state/EmptyState.js +46 -0
- package/dist/components/table/components/empty-state/EmptyState.module.css +16 -0
- package/dist/components/table/components/table-settings/TableSettings.cjs +32 -0
- package/dist/components/table/components/table-settings/TableSettings.d.ts +7 -0
- package/dist/components/table/components/table-settings/TableSettings.js +30 -0
- package/dist/{tanstack.cjs → components/table/tanstack.cjs} +61 -99
- package/dist/components/table/tanstack.d.ts +14 -0
- package/dist/{tanstack.js → components/table/tanstack.js} +61 -99
- package/dist/components/tabs/Tabs.cjs +33 -17
- package/dist/components/tabs/Tabs.d.ts +6 -3
- package/dist/components/tabs/Tabs.js +33 -17
- package/dist/components/tabs/Tabs.module.css +9 -9
- package/dist/components/toast/Toast.cjs +47 -0
- package/dist/components/toast/Toast.d.ts +14 -0
- package/dist/components/toast/Toast.js +41 -0
- package/dist/components/toast/Toast.module.css +101 -0
- package/dist/components/toast/provider/ToastProvider.cjs +98 -0
- package/dist/components/toast/provider/ToastProvider.d.ts +23 -0
- package/dist/components/toast/provider/ToastProvider.js +91 -0
- package/dist/components/tooltip/Tooltip.cjs +134 -29
- package/dist/components/tooltip/Tooltip.js +135 -30
- package/dist/components/tooltip/Tooltip.module.css +25 -43
- package/dist/components/user-display/UserDisplay.module.css +2 -2
- package/dist/constants/severity.cjs +12 -12
- package/dist/constants/severity.js +12 -12
- package/dist/constants/sizes.cjs +1 -0
- package/dist/constants/sizes.d.ts +1 -1
- package/dist/constants/sizes.js +1 -0
- package/dist/hooks/usePagination.cjs +88 -0
- package/dist/hooks/usePagination.d.ts +33 -0
- package/dist/hooks/usePagination.js +86 -0
- package/dist/hooks/useSorting.cjs +118 -0
- package/dist/hooks/useSorting.d.ts +49 -0
- package/dist/hooks/useSorting.js +116 -0
- package/dist/hooks/useTableData.cjs +52 -0
- package/dist/hooks/useTableData.d.ts +40 -0
- package/dist/hooks/useTableData.js +50 -0
- package/dist/hooks/useTableSelection.cjs +130 -0
- package/dist/hooks/useTableSelection.d.ts +25 -0
- package/dist/hooks/useTableSelection.js +128 -0
- package/dist/hooks/useTableSettings.cjs +28 -0
- package/dist/hooks/useTableSettings.d.ts +7 -0
- package/dist/hooks/useTableSettings.js +26 -0
- package/dist/hooks/useTimeDuration.cjs +39 -0
- package/dist/hooks/useTimeDuration.d.ts +22 -0
- package/dist/hooks/useTimeDuration.js +37 -0
- package/dist/hooks/useViewportFill.js +1 -1
- package/dist/index.cjs +119 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +17 -0
- package/dist/src/styles/styles.css +101 -8
- package/dist/styles/css-helper-classes/flex.css +97 -0
- package/dist/styles/css-helper-classes/typography.css +7 -0
- package/dist/styles/styles.css +101 -8
- package/dist/styles/themes/dbc/dark.css +206 -99
- package/dist/styles/themes/dbc/light.css +183 -89
- package/dist/types/sizes.types.d.ts +2 -2
- package/package.json +17 -11
- package/dist/components/data-summary/DataSummary.cjs +0 -49
- package/dist/components/data-summary/DataSummary.d.ts +0 -19
- package/dist/components/data-summary/DataSummary.js +0 -43
- package/dist/components/data-summary/DataSummary.module.css +0 -51
- package/dist/components/sidebar/Sidebar.module.css +0 -66
- package/dist/tanstack.d.ts +0 -25
package/dist/assets/logo.cjs
CHANGED
|
@@ -14,70 +14,70 @@ const Logo = () => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
14
14
|
"path",
|
|
15
15
|
{
|
|
16
16
|
d: "M73.13,1.4a16,16,0,0,0-9.31.67,14.12,14.12,0,0,0-4.63,3,13.42,13.42,0,0,0-3,4.55,15.21,15.21,0,0,0-1.07,5.75,16,16,0,0,0,1.17,6.33,12.73,12.73,0,0,0,3.22,4.56A14,14,0,0,0,64.13,29a16.32,16.32,0,0,0,5.52.93A14.79,14.79,0,0,0,72,29.76a16.17,16.17,0,0,0,2.24-.53,14,14,0,0,0,2.17-.87A2.11,2.11,0,0,0,77.6,26.8,2.42,2.42,0,0,0,77,24.72a2.12,2.12,0,0,0-1.4-.85,2.89,2.89,0,0,0-1.68.28,7.28,7.28,0,0,1-2.1.73,11.59,11.59,0,0,1-2.19.2A11.22,11.22,0,0,1,66,24.5a7.87,7.87,0,0,1-3-1.8,8.49,8.49,0,0,1-2-3,11.83,11.83,0,0,1-.71-4.29A11.27,11.27,0,0,1,61,11.52a8.48,8.48,0,0,1,1.84-3,8.12,8.12,0,0,1,2.93-2A11.14,11.14,0,0,1,71.9,6.1a10.21,10.21,0,0,1,2,.69,3.1,3.1,0,0,0,1.68.32A1.83,1.83,0,0,0,77,6.3a2.47,2.47,0,0,0,.58-2.06,2.14,2.14,0,0,0-1.23-1.66,14.22,14.22,0,0,0-3.2-1.18",
|
|
17
|
-
fill: "var(--color-
|
|
17
|
+
fill: "var(--color-brand)"
|
|
18
18
|
}
|
|
19
19
|
),
|
|
20
20
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21
21
|
"path",
|
|
22
22
|
{
|
|
23
23
|
d: "M51.82,20.92A9.6,9.6,0,0,1,51,25.29a6.71,6.71,0,0,1-2.29,2.63,8.77,8.77,0,0,1-3,1.27,15,15,0,0,1-3.12.35H32.43A2.43,2.43,0,0,1,30,27.07V3.67A2.43,2.43,0,0,1,32.43,1.2h10.2q3.88,0,5.79,1.82a7.12,7.12,0,0,1,1.9,5.39,6,6,0,0,1-.93,3.34,5.93,5.93,0,0,1-2.45,2.08,11,11,0,0,1,1.38.67,7.19,7.19,0,0,1,2.51,2.43A7.33,7.33,0,0,1,51.82,20.92Zm-6-2.64a3.17,3.17,0,0,0-1.74-1,10,10,0,0,0-1.86-.2h-7v7.81h7.29a4.25,4.25,0,0,0,3-1,3.84,3.84,0,0,0,1.09-3A3.88,3.88,0,0,0,45.83,18.28ZM44.19,6.77A3.25,3.25,0,0,0,41.9,6H35.22v6.31H42a3.18,3.18,0,0,0,2.11-.77,2.71,2.71,0,0,0,.93-2.22A3.26,3.26,0,0,0,44.19,6.77Z",
|
|
24
|
-
fill: "var(--color-
|
|
24
|
+
fill: "var(--color-brand)"
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28
28
|
"path",
|
|
29
29
|
{
|
|
30
30
|
d: "M3.47,1.2A2.43,2.43,0,0,0,1,3.67v23.4a2.43,2.43,0,0,0,2.47,2.47h9.67a11.16,11.16,0,0,0,6.62-1.91,11.93,11.93,0,0,0,4.11-5.12,17.57,17.57,0,0,0,1.42-7.14,18.88,18.88,0,0,0-.79-5.49,13.75,13.75,0,0,0-2.35-4.53,10.65,10.65,0,0,0-3.83-3,11.74,11.74,0,0,0-5.18-1.1ZM20,15.37a14.37,14.37,0,0,1-.75,4.72,7.58,7.58,0,0,1-2.37,3.48,6.44,6.44,0,0,1-4.17,1.31H6.06v-19h6.68a6.34,6.34,0,0,1,5.54,2.85,9.2,9.2,0,0,1,1.32,3A15.15,15.15,0,0,1,20,15.37Z",
|
|
31
|
-
fill: "var(--color-
|
|
31
|
+
fill: "var(--color-brand)"
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
34
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
35
|
"path",
|
|
36
36
|
{
|
|
37
37
|
d: "M151.61,64.53a2.45,2.45,0,0,0-1.76-.67H139.29V42.73a2.32,2.32,0,0,0-.75-1.76,2.44,2.44,0,0,0-1.72-.71A2.55,2.55,0,0,0,135,41a2.34,2.34,0,0,0-.73,1.76v23.4a2.43,2.43,0,0,0,2.47,2.47h13.15a2.49,2.49,0,0,0,1.76-.67,2.2,2.2,0,0,0,.71-1.68A2.23,2.23,0,0,0,151.61,64.53Z",
|
|
38
|
-
fill: "var(--color-
|
|
38
|
+
fill: "var(--color-brand)"
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
41
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42
42
|
"path",
|
|
43
43
|
{
|
|
44
44
|
d: "M129.85,65.44,119.9,41.72a2.51,2.51,0,0,0-.91-1.2,2.42,2.42,0,0,0-1.36-.42,2.14,2.14,0,0,0-1.44.36,2.72,2.72,0,0,0-1,1.26l-10.08,24.2a2.73,2.73,0,0,0-.12.77,2.2,2.2,0,0,0,.53,1.5,2,2,0,0,0,1.62.61,2.09,2.09,0,0,0,1.27-.43,2.49,2.49,0,0,0,.87-1.19l2.1-4.94h12.07l2.1,4.9a2.9,2.9,0,0,0,.91,1.21,2.11,2.11,0,0,0,1.32.45,2.32,2.32,0,0,0,2.27-2.39A2.62,2.62,0,0,0,129.85,65.44Zm-16.48-7.85,4-9.48,4.06,9.48Z",
|
|
45
|
-
fill: "var(--color-
|
|
45
|
+
fill: "var(--color-brand)"
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
48
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
49
49
|
"path",
|
|
50
50
|
{
|
|
51
51
|
d: "M107,40.91a2.52,2.52,0,0,0-1.76-.65h-18a2.55,2.55,0,0,0-1.76.63,2.15,2.15,0,0,0-.71,1.68,2.2,2.2,0,0,0,.71,1.7,2.52,2.52,0,0,0,1.76.65h6.35V66.13a2.39,2.39,0,0,0,.73,1.76,2.58,2.58,0,0,0,1.86.71,2.7,2.7,0,0,0,1.93-.71,2.34,2.34,0,0,0,.75-1.76V44.92h6.35a2.55,2.55,0,0,0,1.76-.63,2.15,2.15,0,0,0,.71-1.68A2.2,2.2,0,0,0,107,40.91Z",
|
|
52
|
-
fill: "var(--color-
|
|
52
|
+
fill: "var(--color-brand)"
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
55
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56
56
|
"path",
|
|
57
57
|
{
|
|
58
58
|
d: "M80.84,41a2.26,2.26,0,0,0-1.72-.71,3.74,3.74,0,0,0-1.74.36l-6.11,3.65A2.29,2.29,0,0,0,70,46.37a2.48,2.48,0,0,0,.68,1.68,2.2,2.2,0,0,0,1.74.79,2.52,2.52,0,0,0,1.3-.36L76.25,47V66.13A2.35,2.35,0,0,0,77,67.89a2.55,2.55,0,0,0,1.86.71,2.69,2.69,0,0,0,1.92-.71,2.34,2.34,0,0,0,.75-1.76V42.73A2.45,2.45,0,0,0,80.84,41Z",
|
|
59
|
-
fill: "var(--color-
|
|
59
|
+
fill: "var(--color-brand)"
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
63
63
|
"path",
|
|
64
64
|
{
|
|
65
65
|
d: "M67.3,54a2.34,2.34,0,0,0-1.74-.71H58.92a2.44,2.44,0,0,0-1.76.69,2.51,2.51,0,0,0,0,3.48,2.44,2.44,0,0,0,1.76.69h3.81V63.4a11.67,11.67,0,0,1-2,.5,16.72,16.72,0,0,1-2.68.24,9.1,9.1,0,0,1-4.79-1.31,9.81,9.81,0,0,1-4.72-8.4,9.59,9.59,0,0,1,1.28-4.88A9.75,9.75,0,0,1,53.24,46,9,9,0,0,1,58,44.71a10.82,10.82,0,0,1,2.39.25,11.47,11.47,0,0,1,2.15.68,3.18,3.18,0,0,0,.67.25,3.05,3.05,0,0,0,.66.08,2.07,2.07,0,0,0,1.66-.77,2.63,2.63,0,0,0,.65-1.74,2.27,2.27,0,0,0-1.21-2,13.36,13.36,0,0,0-3.28-1.21,16.63,16.63,0,0,0-3.69-.4A14.45,14.45,0,0,0,52.29,41a14.63,14.63,0,0,0-4.7,3.14,14.82,14.82,0,0,0-3.18,4.63,14.53,14.53,0,0,0,0,11.33,14.89,14.89,0,0,0,7.88,7.78A14.62,14.62,0,0,0,58,69a15.78,15.78,0,0,0,4.64-.67,17.19,17.19,0,0,0,4.07-1.8,3.49,3.49,0,0,0,.87-.85A2.23,2.23,0,0,0,68,64.35V55.76A2.44,2.44,0,0,0,67.3,54Z",
|
|
66
|
-
fill: "var(--color-
|
|
66
|
+
fill: "var(--color-brand)"
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
70
70
|
"path",
|
|
71
71
|
{
|
|
72
72
|
d: "M37.94,41a2.28,2.28,0,0,0-1.72-.71,3.69,3.69,0,0,0-1.74.36l-6.12,3.65a2.31,2.31,0,0,0-1.25,2.1,2.49,2.49,0,0,0,.69,1.68,2.2,2.2,0,0,0,1.74.79,2.46,2.46,0,0,0,1.29-.36L33.34,47V66.13a2.35,2.35,0,0,0,.73,1.76,2.58,2.58,0,0,0,1.86.71,2.7,2.7,0,0,0,1.93-.71,2.36,2.36,0,0,0,.74-1.76V42.73A2.48,2.48,0,0,0,37.94,41Z",
|
|
73
|
-
fill: "var(--color-
|
|
73
|
+
fill: "var(--color-brand)"
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
77
77
|
"path",
|
|
78
78
|
{
|
|
79
79
|
d: "M3.47,40.26A2.43,2.43,0,0,0,1,42.73v23.4A2.43,2.43,0,0,0,3.47,68.6h9.67a11.16,11.16,0,0,0,6.62-1.91,12,12,0,0,0,4.11-5.12,17.57,17.57,0,0,0,1.42-7.14,18.83,18.83,0,0,0-.79-5.49,13.75,13.75,0,0,0-2.35-4.53,10.78,10.78,0,0,0-3.83-3.06,11.74,11.74,0,0,0-5.18-1.09ZM20,54.43a14.27,14.27,0,0,1-.75,4.71,7.48,7.48,0,0,1-2.37,3.48,6.39,6.39,0,0,1-4.17,1.32H6.06v-19h6.68a6.65,6.65,0,0,1,3.28.76,6.65,6.65,0,0,1,2.26,2.09,9.24,9.24,0,0,1,1.32,3A15.29,15.29,0,0,1,20,54.43Z",
|
|
80
|
-
fill: "var(--color-
|
|
80
|
+
fill: "var(--color-brand)"
|
|
81
81
|
}
|
|
82
82
|
)
|
|
83
83
|
]
|
package/dist/assets/logo.js
CHANGED
|
@@ -12,70 +12,70 @@ const Logo = () => /* @__PURE__ */ jsxs(
|
|
|
12
12
|
"path",
|
|
13
13
|
{
|
|
14
14
|
d: "M73.13,1.4a16,16,0,0,0-9.31.67,14.12,14.12,0,0,0-4.63,3,13.42,13.42,0,0,0-3,4.55,15.21,15.21,0,0,0-1.07,5.75,16,16,0,0,0,1.17,6.33,12.73,12.73,0,0,0,3.22,4.56A14,14,0,0,0,64.13,29a16.32,16.32,0,0,0,5.52.93A14.79,14.79,0,0,0,72,29.76a16.17,16.17,0,0,0,2.24-.53,14,14,0,0,0,2.17-.87A2.11,2.11,0,0,0,77.6,26.8,2.42,2.42,0,0,0,77,24.72a2.12,2.12,0,0,0-1.4-.85,2.89,2.89,0,0,0-1.68.28,7.28,7.28,0,0,1-2.1.73,11.59,11.59,0,0,1-2.19.2A11.22,11.22,0,0,1,66,24.5a7.87,7.87,0,0,1-3-1.8,8.49,8.49,0,0,1-2-3,11.83,11.83,0,0,1-.71-4.29A11.27,11.27,0,0,1,61,11.52a8.48,8.48,0,0,1,1.84-3,8.12,8.12,0,0,1,2.93-2A11.14,11.14,0,0,1,71.9,6.1a10.21,10.21,0,0,1,2,.69,3.1,3.1,0,0,0,1.68.32A1.83,1.83,0,0,0,77,6.3a2.47,2.47,0,0,0,.58-2.06,2.14,2.14,0,0,0-1.23-1.66,14.22,14.22,0,0,0-3.2-1.18",
|
|
15
|
-
fill: "var(--color-
|
|
15
|
+
fill: "var(--color-brand)"
|
|
16
16
|
}
|
|
17
17
|
),
|
|
18
18
|
/* @__PURE__ */ jsx(
|
|
19
19
|
"path",
|
|
20
20
|
{
|
|
21
21
|
d: "M51.82,20.92A9.6,9.6,0,0,1,51,25.29a6.71,6.71,0,0,1-2.29,2.63,8.77,8.77,0,0,1-3,1.27,15,15,0,0,1-3.12.35H32.43A2.43,2.43,0,0,1,30,27.07V3.67A2.43,2.43,0,0,1,32.43,1.2h10.2q3.88,0,5.79,1.82a7.12,7.12,0,0,1,1.9,5.39,6,6,0,0,1-.93,3.34,5.93,5.93,0,0,1-2.45,2.08,11,11,0,0,1,1.38.67,7.19,7.19,0,0,1,2.51,2.43A7.33,7.33,0,0,1,51.82,20.92Zm-6-2.64a3.17,3.17,0,0,0-1.74-1,10,10,0,0,0-1.86-.2h-7v7.81h7.29a4.25,4.25,0,0,0,3-1,3.84,3.84,0,0,0,1.09-3A3.88,3.88,0,0,0,45.83,18.28ZM44.19,6.77A3.25,3.25,0,0,0,41.9,6H35.22v6.31H42a3.18,3.18,0,0,0,2.11-.77,2.71,2.71,0,0,0,.93-2.22A3.26,3.26,0,0,0,44.19,6.77Z",
|
|
22
|
-
fill: "var(--color-
|
|
22
|
+
fill: "var(--color-brand)"
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
25
|
/* @__PURE__ */ jsx(
|
|
26
26
|
"path",
|
|
27
27
|
{
|
|
28
28
|
d: "M3.47,1.2A2.43,2.43,0,0,0,1,3.67v23.4a2.43,2.43,0,0,0,2.47,2.47h9.67a11.16,11.16,0,0,0,6.62-1.91,11.93,11.93,0,0,0,4.11-5.12,17.57,17.57,0,0,0,1.42-7.14,18.88,18.88,0,0,0-.79-5.49,13.75,13.75,0,0,0-2.35-4.53,10.65,10.65,0,0,0-3.83-3,11.74,11.74,0,0,0-5.18-1.1ZM20,15.37a14.37,14.37,0,0,1-.75,4.72,7.58,7.58,0,0,1-2.37,3.48,6.44,6.44,0,0,1-4.17,1.31H6.06v-19h6.68a6.34,6.34,0,0,1,5.54,2.85,9.2,9.2,0,0,1,1.32,3A15.15,15.15,0,0,1,20,15.37Z",
|
|
29
|
-
fill: "var(--color-
|
|
29
|
+
fill: "var(--color-brand)"
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
32
|
/* @__PURE__ */ jsx(
|
|
33
33
|
"path",
|
|
34
34
|
{
|
|
35
35
|
d: "M151.61,64.53a2.45,2.45,0,0,0-1.76-.67H139.29V42.73a2.32,2.32,0,0,0-.75-1.76,2.44,2.44,0,0,0-1.72-.71A2.55,2.55,0,0,0,135,41a2.34,2.34,0,0,0-.73,1.76v23.4a2.43,2.43,0,0,0,2.47,2.47h13.15a2.49,2.49,0,0,0,1.76-.67,2.2,2.2,0,0,0,.71-1.68A2.23,2.23,0,0,0,151.61,64.53Z",
|
|
36
|
-
fill: "var(--color-
|
|
36
|
+
fill: "var(--color-brand)"
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
39
|
/* @__PURE__ */ jsx(
|
|
40
40
|
"path",
|
|
41
41
|
{
|
|
42
42
|
d: "M129.85,65.44,119.9,41.72a2.51,2.51,0,0,0-.91-1.2,2.42,2.42,0,0,0-1.36-.42,2.14,2.14,0,0,0-1.44.36,2.72,2.72,0,0,0-1,1.26l-10.08,24.2a2.73,2.73,0,0,0-.12.77,2.2,2.2,0,0,0,.53,1.5,2,2,0,0,0,1.62.61,2.09,2.09,0,0,0,1.27-.43,2.49,2.49,0,0,0,.87-1.19l2.1-4.94h12.07l2.1,4.9a2.9,2.9,0,0,0,.91,1.21,2.11,2.11,0,0,0,1.32.45,2.32,2.32,0,0,0,2.27-2.39A2.62,2.62,0,0,0,129.85,65.44Zm-16.48-7.85,4-9.48,4.06,9.48Z",
|
|
43
|
-
fill: "var(--color-
|
|
43
|
+
fill: "var(--color-brand)"
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
/* @__PURE__ */ jsx(
|
|
47
47
|
"path",
|
|
48
48
|
{
|
|
49
49
|
d: "M107,40.91a2.52,2.52,0,0,0-1.76-.65h-18a2.55,2.55,0,0,0-1.76.63,2.15,2.15,0,0,0-.71,1.68,2.2,2.2,0,0,0,.71,1.7,2.52,2.52,0,0,0,1.76.65h6.35V66.13a2.39,2.39,0,0,0,.73,1.76,2.58,2.58,0,0,0,1.86.71,2.7,2.7,0,0,0,1.93-.71,2.34,2.34,0,0,0,.75-1.76V44.92h6.35a2.55,2.55,0,0,0,1.76-.63,2.15,2.15,0,0,0,.71-1.68A2.2,2.2,0,0,0,107,40.91Z",
|
|
50
|
-
fill: "var(--color-
|
|
50
|
+
fill: "var(--color-brand)"
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
53
|
/* @__PURE__ */ jsx(
|
|
54
54
|
"path",
|
|
55
55
|
{
|
|
56
56
|
d: "M80.84,41a2.26,2.26,0,0,0-1.72-.71,3.74,3.74,0,0,0-1.74.36l-6.11,3.65A2.29,2.29,0,0,0,70,46.37a2.48,2.48,0,0,0,.68,1.68,2.2,2.2,0,0,0,1.74.79,2.52,2.52,0,0,0,1.3-.36L76.25,47V66.13A2.35,2.35,0,0,0,77,67.89a2.55,2.55,0,0,0,1.86.71,2.69,2.69,0,0,0,1.92-.71,2.34,2.34,0,0,0,.75-1.76V42.73A2.45,2.45,0,0,0,80.84,41Z",
|
|
57
|
-
fill: "var(--color-
|
|
57
|
+
fill: "var(--color-brand)"
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
60
|
/* @__PURE__ */ jsx(
|
|
61
61
|
"path",
|
|
62
62
|
{
|
|
63
63
|
d: "M67.3,54a2.34,2.34,0,0,0-1.74-.71H58.92a2.44,2.44,0,0,0-1.76.69,2.51,2.51,0,0,0,0,3.48,2.44,2.44,0,0,0,1.76.69h3.81V63.4a11.67,11.67,0,0,1-2,.5,16.72,16.72,0,0,1-2.68.24,9.1,9.1,0,0,1-4.79-1.31,9.81,9.81,0,0,1-4.72-8.4,9.59,9.59,0,0,1,1.28-4.88A9.75,9.75,0,0,1,53.24,46,9,9,0,0,1,58,44.71a10.82,10.82,0,0,1,2.39.25,11.47,11.47,0,0,1,2.15.68,3.18,3.18,0,0,0,.67.25,3.05,3.05,0,0,0,.66.08,2.07,2.07,0,0,0,1.66-.77,2.63,2.63,0,0,0,.65-1.74,2.27,2.27,0,0,0-1.21-2,13.36,13.36,0,0,0-3.28-1.21,16.63,16.63,0,0,0-3.69-.4A14.45,14.45,0,0,0,52.29,41a14.63,14.63,0,0,0-4.7,3.14,14.82,14.82,0,0,0-3.18,4.63,14.53,14.53,0,0,0,0,11.33,14.89,14.89,0,0,0,7.88,7.78A14.62,14.62,0,0,0,58,69a15.78,15.78,0,0,0,4.64-.67,17.19,17.19,0,0,0,4.07-1.8,3.49,3.49,0,0,0,.87-.85A2.23,2.23,0,0,0,68,64.35V55.76A2.44,2.44,0,0,0,67.3,54Z",
|
|
64
|
-
fill: "var(--color-
|
|
64
|
+
fill: "var(--color-brand)"
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
/* @__PURE__ */ jsx(
|
|
68
68
|
"path",
|
|
69
69
|
{
|
|
70
70
|
d: "M37.94,41a2.28,2.28,0,0,0-1.72-.71,3.69,3.69,0,0,0-1.74.36l-6.12,3.65a2.31,2.31,0,0,0-1.25,2.1,2.49,2.49,0,0,0,.69,1.68,2.2,2.2,0,0,0,1.74.79,2.46,2.46,0,0,0,1.29-.36L33.34,47V66.13a2.35,2.35,0,0,0,.73,1.76,2.58,2.58,0,0,0,1.86.71,2.7,2.7,0,0,0,1.93-.71,2.36,2.36,0,0,0,.74-1.76V42.73A2.48,2.48,0,0,0,37.94,41Z",
|
|
71
|
-
fill: "var(--color-
|
|
71
|
+
fill: "var(--color-brand)"
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ jsx(
|
|
75
75
|
"path",
|
|
76
76
|
{
|
|
77
77
|
d: "M3.47,40.26A2.43,2.43,0,0,0,1,42.73v23.4A2.43,2.43,0,0,0,3.47,68.6h9.67a11.16,11.16,0,0,0,6.62-1.91,12,12,0,0,0,4.11-5.12,17.57,17.57,0,0,0,1.42-7.14,18.83,18.83,0,0,0-.79-5.49,13.75,13.75,0,0,0-2.35-4.53,10.78,10.78,0,0,0-3.83-3.06,11.74,11.74,0,0,0-5.18-1.09ZM20,54.43a14.27,14.27,0,0,1-.75,4.71,7.48,7.48,0,0,1-2.37,3.48,6.39,6.39,0,0,1-4.17,1.32H6.06v-19h6.68a6.65,6.65,0,0,1,3.28.76,6.65,6.65,0,0,1,2.26,2.09,9.24,9.24,0,0,1,1.32,3A15.29,15.29,0,0,1,20,54.43Z",
|
|
78
|
-
fill: "var(--color-
|
|
78
|
+
fill: "var(--color-brand)"
|
|
79
79
|
}
|
|
80
80
|
)
|
|
81
81
|
]
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var Select = require('@/components/select/Select');
|
|
5
|
+
var Headline = require('@/components/headline/Headline');
|
|
6
|
+
var styles = require('./Colors.module.css');
|
|
7
|
+
var react = require('react');
|
|
8
|
+
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
12
|
+
|
|
13
|
+
const colors = [
|
|
14
|
+
{
|
|
15
|
+
name: "Brand",
|
|
16
|
+
value: "--color-brand",
|
|
17
|
+
textColor: "var(--color-fg-on-brand)",
|
|
18
|
+
hoverColor: "var(--color-brand-hover)"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "Success",
|
|
22
|
+
value: "--color-status-success",
|
|
23
|
+
textColor: "var(--color-fg-on-strong)",
|
|
24
|
+
// no dedicated hover token for status colors in the new theme
|
|
25
|
+
hoverColor: "var(--color-status-success)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "Info",
|
|
29
|
+
value: "--color-status-info",
|
|
30
|
+
textColor: "var(--color-fg-on-strong)",
|
|
31
|
+
hoverColor: "var(--color-status-info)"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Warning",
|
|
35
|
+
value: "--color-status-warning",
|
|
36
|
+
textColor: "var(--color-fg-on-strong)",
|
|
37
|
+
hoverColor: "var(--color-status-warning)"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "Error",
|
|
41
|
+
value: "--color-status-error",
|
|
42
|
+
textColor: "var(--color-fg-on-strong)",
|
|
43
|
+
hoverColor: "var(--color-status-error)"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "Success background",
|
|
47
|
+
value: "--color-status-success-bg",
|
|
48
|
+
textColor: "var(--color-status-success-fg)",
|
|
49
|
+
hoverColor: "var(--color-status-success-bg)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "Info background",
|
|
53
|
+
value: "--color-status-info-bg",
|
|
54
|
+
textColor: "var(--color-status-info-fg)",
|
|
55
|
+
hoverColor: "var(--color-status-info-bg)"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "Warning background",
|
|
59
|
+
value: "--color-status-warning-bg",
|
|
60
|
+
textColor: "var(--color-status-warning-fg)",
|
|
61
|
+
hoverColor: "var(--color-status-warning-bg)"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "Error background",
|
|
65
|
+
value: "--color-status-error-bg",
|
|
66
|
+
textColor: "var(--color-status-error-fg)",
|
|
67
|
+
hoverColor: "var(--color-status-error-bg)"
|
|
68
|
+
}
|
|
69
|
+
];
|
|
70
|
+
const textSizes = [
|
|
71
|
+
{ name: "Extra small", value: "--font-size-xs" },
|
|
72
|
+
{ name: "Small", value: "--font-size-sm" },
|
|
73
|
+
{ name: "Medium", value: "--font-size-md" },
|
|
74
|
+
{ name: "Large", value: "--font-size-lg" }
|
|
75
|
+
];
|
|
76
|
+
const textColors = [
|
|
77
|
+
{ name: "Text Default", value: "--color-fg-default", backgroundColor: void 0 },
|
|
78
|
+
{ name: "Text Secondary", value: "--color-fg-muted", backgroundColor: void 0 },
|
|
79
|
+
{ name: "Text Muted", value: "--color-fg-subtle", backgroundColor: void 0 },
|
|
80
|
+
{
|
|
81
|
+
name: "Text Inverse",
|
|
82
|
+
value: "--color-fg-on-strong",
|
|
83
|
+
backgroundColor: "var(--color-fg-default)"
|
|
84
|
+
}
|
|
85
|
+
];
|
|
86
|
+
const fontWeights = [
|
|
87
|
+
{ label: "Default", value: "var(--font-weight-default)" },
|
|
88
|
+
// <- fixed missing ')'
|
|
89
|
+
{ label: "Medium", value: "var(--font-weight-medium)" },
|
|
90
|
+
{ label: "Bold", value: "var(--font-weight-bold)" }
|
|
91
|
+
];
|
|
92
|
+
const headerSizes = [1, 2, 3, 4, 5, 6];
|
|
93
|
+
function Colors() {
|
|
94
|
+
const [fontWeight, setFontWeight] = react.useState(fontWeights[0].value);
|
|
95
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "dbc-flex dbc-flex-column dbc-gap-md", children: [
|
|
96
|
+
/* @__PURE__ */ jsxRuntime.jsx(Headline.Headline, { children: "Colors" }),
|
|
97
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: `dbc-flex dbc-gap-sm dbc-flex-wrap ${styles__default.default.container}`,
|
|
101
|
+
style: { width: "100%" },
|
|
102
|
+
children: colors.map((color) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
className: styles__default.default.colorItem,
|
|
106
|
+
style: {
|
|
107
|
+
"--bgColor": `var(${color.value})`,
|
|
108
|
+
"--textColor": color.textColor
|
|
109
|
+
},
|
|
110
|
+
children: color.name
|
|
111
|
+
},
|
|
112
|
+
color.name
|
|
113
|
+
))
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
117
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
118
|
+
Headline.Headline,
|
|
119
|
+
{
|
|
120
|
+
addition: /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
|
+
Select.Select,
|
|
122
|
+
{
|
|
123
|
+
selectedValue: fontWeight,
|
|
124
|
+
onChange: (e) => setFontWeight(e),
|
|
125
|
+
options: fontWeights
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
children: "Typography"
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
textColors.map((color) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dbc-flex dbc-gap-sm", children: textSizes.map((size) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
className: styles__default.default.textColorItem,
|
|
135
|
+
style: {
|
|
136
|
+
"--textColor": `var(${color.value})`,
|
|
137
|
+
"--bgColor": color.backgroundColor ? color.backgroundColor : "transparent",
|
|
138
|
+
"--fontSize": `var(${size.value})`,
|
|
139
|
+
"--fontWeight": fontWeight
|
|
140
|
+
},
|
|
141
|
+
children: [
|
|
142
|
+
color.name,
|
|
143
|
+
" - ",
|
|
144
|
+
size.name
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
color.name
|
|
148
|
+
)) })),
|
|
149
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "dbc-flex dbc-gap-sm", children: headerSizes.map((size) => /* @__PURE__ */ jsxRuntime.jsxs(Headline.Headline, { size, children: [
|
|
150
|
+
"Header ",
|
|
151
|
+
size
|
|
152
|
+
] }, `header-size-${size}`)) })
|
|
153
|
+
] })
|
|
154
|
+
] });
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
exports.Colors = Colors;
|
|
158
|
+
exports.textColors = textColors;
|
|
159
|
+
exports.textSizes = textSizes;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Select } from '@/components/select/Select';
|
|
3
|
+
import { Headline } from '@/components/headline/Headline';
|
|
4
|
+
import styles from './Colors.module.css';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
|
|
7
|
+
const colors = [
|
|
8
|
+
{
|
|
9
|
+
name: "Brand",
|
|
10
|
+
value: "--color-brand",
|
|
11
|
+
textColor: "var(--color-fg-on-brand)",
|
|
12
|
+
hoverColor: "var(--color-brand-hover)"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "Success",
|
|
16
|
+
value: "--color-status-success",
|
|
17
|
+
textColor: "var(--color-fg-on-strong)",
|
|
18
|
+
// no dedicated hover token for status colors in the new theme
|
|
19
|
+
hoverColor: "var(--color-status-success)"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "Info",
|
|
23
|
+
value: "--color-status-info",
|
|
24
|
+
textColor: "var(--color-fg-on-strong)",
|
|
25
|
+
hoverColor: "var(--color-status-info)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "Warning",
|
|
29
|
+
value: "--color-status-warning",
|
|
30
|
+
textColor: "var(--color-fg-on-strong)",
|
|
31
|
+
hoverColor: "var(--color-status-warning)"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Error",
|
|
35
|
+
value: "--color-status-error",
|
|
36
|
+
textColor: "var(--color-fg-on-strong)",
|
|
37
|
+
hoverColor: "var(--color-status-error)"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "Success background",
|
|
41
|
+
value: "--color-status-success-bg",
|
|
42
|
+
textColor: "var(--color-status-success-fg)",
|
|
43
|
+
hoverColor: "var(--color-status-success-bg)"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "Info background",
|
|
47
|
+
value: "--color-status-info-bg",
|
|
48
|
+
textColor: "var(--color-status-info-fg)",
|
|
49
|
+
hoverColor: "var(--color-status-info-bg)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "Warning background",
|
|
53
|
+
value: "--color-status-warning-bg",
|
|
54
|
+
textColor: "var(--color-status-warning-fg)",
|
|
55
|
+
hoverColor: "var(--color-status-warning-bg)"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "Error background",
|
|
59
|
+
value: "--color-status-error-bg",
|
|
60
|
+
textColor: "var(--color-status-error-fg)",
|
|
61
|
+
hoverColor: "var(--color-status-error-bg)"
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
const textSizes = [
|
|
65
|
+
{ name: "Extra small", value: "--font-size-xs" },
|
|
66
|
+
{ name: "Small", value: "--font-size-sm" },
|
|
67
|
+
{ name: "Medium", value: "--font-size-md" },
|
|
68
|
+
{ name: "Large", value: "--font-size-lg" }
|
|
69
|
+
];
|
|
70
|
+
const textColors = [
|
|
71
|
+
{ name: "Text Default", value: "--color-fg-default", backgroundColor: void 0 },
|
|
72
|
+
{ name: "Text Secondary", value: "--color-fg-muted", backgroundColor: void 0 },
|
|
73
|
+
{ name: "Text Muted", value: "--color-fg-subtle", backgroundColor: void 0 },
|
|
74
|
+
{
|
|
75
|
+
name: "Text Inverse",
|
|
76
|
+
value: "--color-fg-on-strong",
|
|
77
|
+
backgroundColor: "var(--color-fg-default)"
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
const fontWeights = [
|
|
81
|
+
{ label: "Default", value: "var(--font-weight-default)" },
|
|
82
|
+
// <- fixed missing ')'
|
|
83
|
+
{ label: "Medium", value: "var(--font-weight-medium)" },
|
|
84
|
+
{ label: "Bold", value: "var(--font-weight-bold)" }
|
|
85
|
+
];
|
|
86
|
+
const headerSizes = [1, 2, 3, 4, 5, 6];
|
|
87
|
+
function Colors() {
|
|
88
|
+
const [fontWeight, setFontWeight] = useState(fontWeights[0].value);
|
|
89
|
+
return /* @__PURE__ */ jsxs("div", { className: "dbc-flex dbc-flex-column dbc-gap-md", children: [
|
|
90
|
+
/* @__PURE__ */ jsx(Headline, { children: "Colors" }),
|
|
91
|
+
/* @__PURE__ */ jsx(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: `dbc-flex dbc-gap-sm dbc-flex-wrap ${styles.container}`,
|
|
95
|
+
style: { width: "100%" },
|
|
96
|
+
children: colors.map((color) => /* @__PURE__ */ jsx(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: styles.colorItem,
|
|
100
|
+
style: {
|
|
101
|
+
"--bgColor": `var(${color.value})`,
|
|
102
|
+
"--textColor": color.textColor
|
|
103
|
+
},
|
|
104
|
+
children: color.name
|
|
105
|
+
},
|
|
106
|
+
color.name
|
|
107
|
+
))
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
111
|
+
/* @__PURE__ */ jsx(
|
|
112
|
+
Headline,
|
|
113
|
+
{
|
|
114
|
+
addition: /* @__PURE__ */ jsx(
|
|
115
|
+
Select,
|
|
116
|
+
{
|
|
117
|
+
selectedValue: fontWeight,
|
|
118
|
+
onChange: (e) => setFontWeight(e),
|
|
119
|
+
options: fontWeights
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
children: "Typography"
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
textColors.map((color) => /* @__PURE__ */ jsx("div", { className: "dbc-flex dbc-gap-sm", children: textSizes.map((size) => /* @__PURE__ */ jsxs(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
className: styles.textColorItem,
|
|
129
|
+
style: {
|
|
130
|
+
"--textColor": `var(${color.value})`,
|
|
131
|
+
"--bgColor": color.backgroundColor ? color.backgroundColor : "transparent",
|
|
132
|
+
"--fontSize": `var(${size.value})`,
|
|
133
|
+
"--fontWeight": fontWeight
|
|
134
|
+
},
|
|
135
|
+
children: [
|
|
136
|
+
color.name,
|
|
137
|
+
" - ",
|
|
138
|
+
size.name
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
color.name
|
|
142
|
+
)) })),
|
|
143
|
+
/* @__PURE__ */ jsx("div", { className: "dbc-flex dbc-gap-sm", children: headerSizes.map((size) => /* @__PURE__ */ jsxs(Headline, { size, children: [
|
|
144
|
+
"Header ",
|
|
145
|
+
size
|
|
146
|
+
] }, `header-size-${size}`)) })
|
|
147
|
+
] })
|
|
148
|
+
] });
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { Colors, textColors, textSizes };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.colorItem {
|
|
2
|
+
width: calc(100% / 3);
|
|
3
|
+
background-color: var(--bgColor);
|
|
4
|
+
padding: var(--spacing-md);
|
|
5
|
+
color: var(--textColor);
|
|
6
|
+
border-radius: var(--border-radius-default);
|
|
7
|
+
&:hover {
|
|
8
|
+
opacity: 0.8;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: all 0.1s ease-in-out;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.textColorItem {
|
|
15
|
+
width: calc(100% / 3);
|
|
16
|
+
font-size: var(--fontSize);
|
|
17
|
+
background-color: var(--bgColor);
|
|
18
|
+
font-weight: var(--fontWeight);
|
|
19
|
+
padding: var(--spacing-md);
|
|
20
|
+
color: var(--textColor);
|
|
21
|
+
border-radius: var(--border-radius-default);
|
|
22
|
+
&:hover {
|
|
23
|
+
opacity: 0.8;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: all 0.1s ease-in-out;
|
|
26
|
+
}
|
|
27
|
+
}
|