@clickhouse/click-ui 0.0.236 → 0.0.237-sc-deprecation.1

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 (130) hide show
  1. package/README.md +161 -20
  2. package/bin/README.md +178 -0
  3. package/bin/click-ui.config.example.ts +70 -0
  4. package/bin/click-ui.js +97 -0
  5. package/bin/commands/build-default-theme.ts +48 -0
  6. package/bin/commands/generate.js +117 -0
  7. package/bin/commands/init.js +110 -0
  8. package/bin/utils/config-loader.ts +61 -0
  9. package/bin/utils/css-generator.js +32 -0
  10. package/dist/click-ui.bundled.es.js +40911 -48911
  11. package/dist/click-ui.bundled.umd.js +79 -53054
  12. package/dist/click-ui.es.js +40771 -47603
  13. package/dist/click-ui.umd.js +79 -51885
  14. package/dist/components/Accordion/Accordion.d.ts +3 -3
  15. package/dist/components/AutoComplete/AutoComplete.d.ts +0 -1
  16. package/dist/components/Avatar/Avatar.d.ts +1 -1
  17. package/dist/components/Badge/Badge.d.ts +1 -1
  18. package/dist/components/BigStat/BigStat.d.ts +1 -1
  19. package/dist/components/Button/Button.d.ts +1 -1
  20. package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  21. package/dist/components/CardHorizontal/CardHorizontal.d.ts +1 -1
  22. package/dist/components/CardPrimary/CardPrimaryTopBadge.d.ts +14 -3
  23. package/dist/components/CardPromotion/CardPromotion.d.ts +1 -1
  24. package/dist/components/CardSecondary/CardSecondary.d.ts +1 -1
  25. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  26. package/dist/components/CodeBlock/CodeBlock.d.ts +1 -1
  27. package/dist/components/CodeBlock/useColorStyle.d.ts +1 -1
  28. package/dist/components/Collapsible/Collapsible.d.ts +3 -3
  29. package/dist/components/Container/Container.d.ts +5 -6
  30. package/dist/components/DatePicker/Common.d.ts +8 -3
  31. package/dist/components/Dialog/Dialog.d.ts +2 -2
  32. package/dist/components/EllipsisContent/EllipsisContent.d.ts +4 -6
  33. package/dist/components/FileTabs/FileTabs.d.ts +2 -2
  34. package/dist/components/Flyout/Flyout.d.ts +1 -1
  35. package/dist/components/GenericMenu.d.ts +22 -10
  36. package/dist/components/Grid/Cell.d.ts +2 -1
  37. package/dist/components/Grid/StyledCell.d.ts +5 -2
  38. package/dist/components/Grid/types.d.ts +1 -1
  39. package/dist/components/GridContainer/GridContainer.d.ts +4 -5
  40. package/dist/components/Icon/IconCommon.d.ts +4 -3
  41. package/dist/components/Icon/types.d.ts +3 -1
  42. package/dist/components/IconWrapper/IconWrapper.d.ts +2 -2
  43. package/dist/components/Input/InputWrapper.d.ts +25 -18
  44. package/dist/components/Link/Link.d.ts +4 -6
  45. package/dist/components/Link/linkStyles.d.ts +134 -0
  46. package/dist/components/Logos/Logo.d.ts +1 -1
  47. package/dist/components/MultiAccordion/MultiAccordion.d.ts +1 -1
  48. package/dist/components/Panel/Panel.d.ts +1 -1
  49. package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
  50. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  51. package/dist/components/Select/common/SelectStyled.d.ts +24 -26
  52. package/dist/components/Separator/Separator.d.ts +4 -3
  53. package/dist/components/SidebarNavigationItem/SidebarNavigationItem.d.ts +5 -9
  54. package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.d.ts +5 -7
  55. package/dist/components/Spacer/Spacer.d.ts +2 -1
  56. package/dist/components/SplitButton/SplitButton.d.ts +1 -1
  57. package/dist/components/Tabs/Tabs.d.ts +26 -24
  58. package/dist/components/ThemeToggle/ThemeToggle.d.ts +4 -0
  59. package/dist/components/Typography/Text/Text.d.ts +4 -5
  60. package/dist/components/VerticalStepper/VerticalStepper.d.ts +2 -2
  61. package/dist/components/commonElement.d.ts +21 -17
  62. package/dist/components/commonTypes.d.ts +1 -1
  63. package/dist/components/icons/DataLakes.d.ts +4 -0
  64. package/dist/components/icons/HorizontalLoading.d.ts +3 -1
  65. package/dist/components/icons/Loading.d.ts +1 -1
  66. package/dist/components/icons/LoadingAnimated.d.ts +3 -1
  67. package/dist/components/index.d.ts +6 -3
  68. package/dist/components/types.d.ts +51 -83
  69. package/dist/config/tokens/types.d.ts +15296 -0
  70. package/dist/config/tokens/types.d.ts.map +1 -0
  71. package/dist/config/tokens/types.js +2 -0
  72. package/dist/config/tokens/types.js.map +1 -0
  73. package/dist/config/types.d.ts +55 -0
  74. package/dist/config/types.d.ts.map +1 -0
  75. package/dist/config/types.js +2 -0
  76. package/dist/config/types.js.map +1 -0
  77. package/dist/config/utils/css-builder.d.ts +38 -0
  78. package/dist/config/utils/css-builder.d.ts.map +1 -0
  79. package/dist/config/utils/css-builder.js +56 -0
  80. package/dist/config/utils/css-builder.js.map +1 -0
  81. package/dist/config/utils/css-generator.d.ts +25 -0
  82. package/dist/config/utils/css-generator.d.ts.map +1 -0
  83. package/dist/config/utils/css-generator.js +151 -0
  84. package/dist/config/utils/css-generator.js.map +1 -0
  85. package/dist/config/utils/find-config.d.ts +17 -0
  86. package/dist/config/utils/find-config.d.ts.map +1 -0
  87. package/dist/config/utils/find-config.js +28 -0
  88. package/dist/config/utils/find-config.js.map +1 -0
  89. package/dist/cui-components.css +1 -0
  90. package/dist/cui-default-theme.css +1809 -0
  91. package/dist/cui.css +3 -0
  92. package/dist/index.d.ts +77 -1
  93. package/dist/stories/ChartColorComponent.d.ts +1 -0
  94. package/dist/stories/chart-examples/ChartTooltip.d.ts +12 -0
  95. package/dist/stories/chart-examples/ColorSwatchesChart.d.ts +1 -0
  96. package/dist/stories/chart-examples/GroupedBarChart.d.ts +1 -0
  97. package/dist/stories/chart-examples/MultiLineChart.d.ts +1 -0
  98. package/dist/stories/chart-examples/StackedAreaChart.d.ts +1 -0
  99. package/dist/stories/chart-examples/StackedBarChartDemo.d.ts +1 -0
  100. package/dist/theme/ClickUIProvider/ClickUIProvider.d.ts +5 -0
  101. package/dist/theme/ClickUIProvider/ServerClickUIProvider.d.ts +23 -0
  102. package/dist/theme/ClickUIProvider/context.d.ts +24 -0
  103. package/dist/theme/ClickUIProvider/hooks.d.ts +4 -0
  104. package/dist/theme/ClickUIProvider/index.d.ts +6 -0
  105. package/dist/theme/ClickUIProvider/types.d.ts +39 -0
  106. package/dist/theme/config.d.ts +22 -0
  107. package/dist/theme/hooks/useSystemColorSchemePreference.d.ts +7 -0
  108. package/dist/theme/index.d.ts +6 -12
  109. package/dist/{styles → theme/tokens}/types.d.ts +3 -3
  110. package/dist/{styles → theme/tokens}/variables.dark.json.d.ts +118 -117
  111. package/dist/{styles → theme/tokens}/variables.json.d.ts +10 -10
  112. package/dist/{styles → theme/tokens}/variables.light.json.d.ts +146 -145
  113. package/dist/theme/types.d.ts +54 -0
  114. package/dist/theme/utils/css-builder.d.ts +37 -0
  115. package/dist/theme/utils/css-generator.d.ts +25 -0
  116. package/dist/theme/utils/find-config.d.ts +16 -0
  117. package/dist/theme/utils/theme-attribute.d.ts +13 -0
  118. package/dist/theme/utils.d.ts +29 -0
  119. package/dist/utils/capitalize.d.ts +12 -0
  120. package/dist/utils/polymorphic/index.d.ts +48 -0
  121. package/dist/utils/test-utils.d.ts +1 -3
  122. package/package.json +49 -24
  123. package/dist/click-ui.bundled.es.js.map +0 -1
  124. package/dist/click-ui.bundled.umd.js.map +0 -1
  125. package/dist/click-ui.es.js.map +0 -1
  126. package/dist/click-ui.umd.js.map +0 -1
  127. package/dist/components/ClickUIProvider/ClickUIProvider.d.ts +0 -15
  128. package/dist/components/Link/common.d.ts +0 -7
  129. package/dist/styles/variables.classic.json.d.ts +0 -993
  130. package/dist/theme/theme.d.ts +0 -7
@@ -0,0 +1,54 @@
1
+ import { Theme } from './tokens/types';
2
+ export type NestedJSONObject = {
3
+ [key: string]: string | number | NestedJSONObject | (string | number)[];
4
+ };
5
+ export type { Theme } from './tokens/types';
6
+ export type ThemeName = "light" | "dark" | "system";
7
+ export type ResolvedThemeName = Exclude<ThemeName, "system">;
8
+ export type BaseThemeName = ResolvedThemeName;
9
+ export type ConfigThemeValues = Theme & NestedJSONObject;
10
+ export type DeepPartial<T> = {
11
+ [P in keyof T]?: T[P] extends object ? T[P] extends (infer U)[] ? DeepPartial<U>[] : DeepPartial<T[P]> : T[P];
12
+ };
13
+ type FlexibleTheme = NestedJSONObject;
14
+ export type TypedTheme = DeepPartial<Theme>;
15
+ /**
16
+ * Build-time theme tokens - processed by bundler plugin
17
+ * These are transformed into CSS variables at build time
18
+ */
19
+ export interface BuildTimeThemeConfig {
20
+ theme?: FlexibleTheme;
21
+ dark?: FlexibleTheme;
22
+ }
23
+ /**
24
+ * Runtime provider configuration
25
+ * These settings control provider behavior at runtime
26
+ */
27
+ export interface RuntimeConfig {
28
+ storageKey?: string;
29
+ tooltipConfig?: {
30
+ delayDuration?: number;
31
+ skipDelayDuration?: number;
32
+ disableHoverableContent?: boolean;
33
+ };
34
+ toastConfig?: {
35
+ duration?: number;
36
+ swipeDirection?: "right" | "left" | "up" | "down";
37
+ swipeThreshold?: number;
38
+ };
39
+ }
40
+ /**
41
+ * Complete configuration for click-ui.config.ts
42
+ * Combines both build-time theme tokens and runtime provider settings
43
+ */
44
+ export interface ThemeConfig extends BuildTimeThemeConfig, RuntimeConfig {
45
+ }
46
+ export interface ThemeContextValue {
47
+ themeName: ThemeName;
48
+ updateTheme: (theme: ThemeName) => void;
49
+ isSystemTheme?: boolean;
50
+ resolvedTheme: BaseThemeName;
51
+ theme: Theme;
52
+ breakpoints: Record<string, string>;
53
+ sizes: Record<string, string>;
54
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Shared CSS Builder Utility
3
+ * Consolidates CSS output generation logic used across build and CLI commands
4
+ */
5
+ export interface CSSBuildOptions {
6
+ /**
7
+ * Header comment to include at the top of the CSS file
8
+ */
9
+ headerComment?: string;
10
+ /**
11
+ * Include color-scheme property in :root
12
+ * @default true
13
+ */
14
+ includeColorScheme?: boolean;
15
+ }
16
+ /**
17
+ * Build CSS output from light-dark variables and theme overrides
18
+ * Single source of truth for CSS generation across all build pipelines
19
+ *
20
+ * @param lightDarkVars - CSS variables with light-dark() values for colors
21
+ * @param themeOverrides - Non-color variables that differ between themes
22
+ * @param options - Configuration options for CSS generation
23
+ * @returns Complete CSS string ready to be written to file
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const lightDarkVars = generateLightDarkVariables(lightTheme, darkTheme);
28
+ * const themeOverrides = generateThemeOverrides(lightTheme, darkTheme);
29
+ * const css = buildCSSOutput(lightDarkVars, themeOverrides, {
30
+ * headerComment: '/* My Custom Theme *\/'
31
+ * });
32
+ * ```
33
+ */
34
+ export declare const buildCSSOutput: (lightDarkVars: Record<string, string>, themeOverrides: {
35
+ light: Record<string, string>;
36
+ dark: Record<string, string>;
37
+ }, options?: CSSBuildOptions) => string;
@@ -0,0 +1,25 @@
1
+ import { NestedJSONObject, Theme } from '../types';
2
+
3
+ /**
4
+ * Core traverse function to convert nested theme object to flat variable map
5
+ * Used by generateCSSVariables, themeToFlatVariables, and build plugins to avoid duplication
6
+ *
7
+ * @param obj - Theme or nested JSON object to traverse
8
+ * @param prefix - Prefix for CSS variable names (default: "--")
9
+ * @param skipFields - Fields to skip during traversal (default: ["name", "isSystem", "resolvedTheme"])
10
+ * @returns Record of CSS variable names to their values
11
+ */
12
+ export declare const traverseThemeObject: (obj: Theme | NestedJSONObject, prefix?: string, skipFields?: string[]) => Record<string, string>;
13
+ /**
14
+ * Generate CSS variables with light-dark() for colors and fallback handling for non-colors
15
+ * Returns an object with base variables and any theme-specific overrides needed
16
+ */
17
+ export declare const generateLightDarkVariables: (lightTheme: Theme, darkTheme: Theme) => Record<string, string>;
18
+ /**
19
+ * Generate separate theme-specific overrides for non-color variables that differ
20
+ * This is needed when non-color values differ between themes and light-dark() can't be used
21
+ */
22
+ export declare const generateThemeOverrides: (lightTheme: Theme, darkTheme: Theme) => {
23
+ light: Record<string, string>;
24
+ dark: Record<string, string>;
25
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Find Click UI config file in a directory
3
+ * Searches for click-ui.config with various extensions
4
+ *
5
+ * @param root - Directory to search in (usually process.cwd())
6
+ * @returns Full path to config file, or null if not found
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const configPath = findConfigFile(process.cwd());
11
+ * if (configPath) {
12
+ * console.log('Found config at:', configPath);
13
+ * }
14
+ * ```
15
+ */
16
+ export declare const findConfigFile: (root: string) => string | null;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Minimal runtime theme switching utility
3
+ * Used when theme CSS is already loaded via build-time plugin
4
+ */
5
+ export type ThemeMode = "light" | "dark";
6
+ /**
7
+ * Set theme attribute on document root
8
+ * This triggers CSS theme switching without regenerating CSS variables
9
+ *
10
+ * @param theme - The resolved theme ("light" or "dark")
11
+ * @param isSystem - Whether system preference mode is active
12
+ */
13
+ export declare const setThemeAttribute: (theme: ThemeMode, isSystem?: boolean) => void;
@@ -0,0 +1,29 @@
1
+ import { Theme, BaseThemeName, ThemeConfig } from './types';
2
+
3
+ /**
4
+ * Deep merge utility for merging theme objects
5
+ * Recursively merges nested objects, with source properties taking precedence
6
+ *
7
+ * @param target - The target object to merge into
8
+ * @param source - The source object to merge from
9
+ * @returns A new merged object
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const result = deepMerge({ a: 1, b: { c: 2 } }, { b: { d: 3 } });
14
+ * // Result: { a: 1, b: { c: 2, d: 3 } }
15
+ * ```
16
+ */
17
+ export declare const deepMerge: (target: any, source: any) => any;
18
+ /**
19
+ * Get base theme by name (synchronous with fallback)
20
+ */
21
+ export declare const getBaseTheme: (themeName: BaseThemeName) => Theme;
22
+ /**
23
+ * Helper to get a specific value from a theme by path
24
+ * @example
25
+ * getThemeValue(lightTheme, "click.button.primary.background.default")
26
+ * // Returns: "#007bff"
27
+ */
28
+ export declare const getThemeValue: (theme: Theme | Record<string, any>, path: string) => unknown;
29
+ export declare const loadCustomConfig: () => Promise<ThemeConfig | null>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Capitalizes the first letter of a string and converts kebab-case to PascalCase
3
+ * @param str - The string to capitalize
4
+ * @returns The string with the first letter capitalized and kebab-case converted to PascalCase
5
+ * @example
6
+ * capitalize('hello') // 'Hello'
7
+ * capitalize('WORLD') // 'WORLD'
8
+ * capitalize('') // ''
9
+ * capitalize('space-between') // 'SpaceBetween'
10
+ * capitalize('space-around') // 'SpaceAround'
11
+ */
12
+ export declare const capitalize: (str: string) => string;
@@ -0,0 +1,48 @@
1
+ import { ComponentProps, ComponentPropsWithRef, ElementType, ReactNode } from 'react';
2
+
3
+ /**
4
+ * Utility types for creating type-safe polymorphic components with SCSS modules
5
+ *
6
+ * Usage example:
7
+ * ```tsx
8
+ * interface MyComponentProps<T extends ElementType = "div"> extends PolymorphicComponentProps<T> {
9
+ * customProp?: string;
10
+ * }
11
+ *
12
+ * type MyComponentType = PolymorphicComponent<MyComponentProps>;
13
+ *
14
+ * const _MyComponent = <T extends ElementType = "div">(
15
+ * props: PolymorphicProps<T, MyComponentProps<T>>,
16
+ * ref: PolymorphicRef<T>
17
+ * ) => {
18
+ * const Component = props.component ?? "div";
19
+ * return <Component ref={ref} {...props} />;
20
+ * };
21
+ *
22
+ * export const MyComponent: MyComponentType = forwardRef(_MyComponent);
23
+ * ```
24
+ */
25
+ /**
26
+ * Base props for polymorphic components
27
+ */
28
+ export interface PolymorphicComponentProps<T extends ElementType> {
29
+ component?: T;
30
+ }
31
+ /**
32
+ * Merges the component's custom props with native HTML element props
33
+ * Excludes conflicting keys from ComponentProps to ensure custom props take precedence
34
+ */
35
+ export type PolymorphicProps<T extends ElementType, TProps extends PolymorphicComponentProps<T>> = Omit<ComponentProps<T>, keyof TProps> & TProps;
36
+ /**
37
+ * Extracts the correct ref type for the polymorphic component
38
+ */
39
+ export type PolymorphicRef<T extends ElementType> = ComponentPropsWithRef<T>["ref"];
40
+ /**
41
+ * Type for the final exported polymorphic component
42
+ * This uses a mapped type to properly infer the element type
43
+ */
44
+ export type PolymorphicComponent<TProps extends PolymorphicComponentProps<ElementType>, TDefaultElement extends ElementType = "div"> = <T extends ElementType = TDefaultElement>(props: PolymorphicProps<T, Omit<TProps, "component"> & {
45
+ component?: T;
46
+ }> & {
47
+ ref?: PolymorphicRef<T>;
48
+ }) => ReactNode;
@@ -1,6 +1,4 @@
1
- import { ThemeName } from '../theme';
2
-
3
- declare const renderCUI: (children: React.ReactNode, theme?: ThemeName) => {
1
+ declare const renderCUI: (children: React.ReactNode) => {
4
2
  rerender: (rerenderChildren: React.ReactNode) => void;
5
3
  container: HTMLElement;
6
4
  baseElement: HTMLElement;
package/package.json CHANGED
@@ -1,12 +1,24 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.236",
3
+ "version": "0.0.237-sc-deprecation.1",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
+ "sideEffects": [
8
+ "**/*.css",
9
+ "**/*.scss",
10
+ "./dist/cui.css",
11
+ "./dist/cui-components.css",
12
+ "./dist/cui-default-theme.css",
13
+ "./src/theme/global.scss"
14
+ ],
7
15
  "files": [
8
- "dist"
16
+ "dist",
17
+ "bin"
9
18
  ],
19
+ "bin": {
20
+ "click-ui": "./bin/click-ui.js"
21
+ },
10
22
  "exports": {
11
23
  ".": {
12
24
  "types": "./dist/index.d.ts",
@@ -17,7 +29,14 @@
17
29
  "types": "./dist/index.d.ts",
18
30
  "import": "./dist/click-ui.bundled.es.js",
19
31
  "require": "./dist/click-ui.bundled.umd.js"
20
- }
32
+ },
33
+ "./theme": {
34
+ "types": "./dist/theme/index.d.ts"
35
+ },
36
+ "./cui.css": "./dist/cui.css",
37
+ "./cui-components.css": "./dist/cui-components.css",
38
+ "./cui-default-theme.css": "./dist/cui-default-theme.css",
39
+ "./style.css": "./dist/cui-components.css"
21
40
  },
22
41
  "main": "./dist/click-ui.umd.js",
23
42
  "module": "./dist/click-ui.es.js",
@@ -33,12 +52,16 @@
33
52
  },
34
53
  "homepage": "https://clickhouse.com",
35
54
  "scripts": {
36
- "build": "tsc && vite build && yarn build:bundled",
55
+ "build": "npm run generate-theme-css && tsc && vite build && npm run build:bundled && npm run copy-css-files",
37
56
  "build:bundled": "vite build -- bundled",
57
+ "copy-css-files": "npm run rename-css && cp src/styles/cui-default-theme.css dist/ && npm run build-combined-css",
58
+ "rename-css": "mv dist/style.css dist/cui-components.css",
59
+ "build-combined-css": "echo '/* Click UI - Combined CSS */\n@import \"./cui-default-theme.css\";\n@import \"./cui-components.css\";' > dist/cui.css",
38
60
  "build-storybook": "storybook build",
39
61
  "build:watch": "watch 'npm run build' ./src",
40
62
  "chromatic": "npx chromatic",
41
63
  "dev": "vite",
64
+ "generate-theme-css": "npx tsx bin/commands/build-default-theme.ts",
42
65
  "generate-tokens": "node build-tokens.js",
43
66
  "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
44
67
  "prettify": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\" --config .prettierrc",
@@ -63,12 +86,11 @@
63
86
  "@radix-ui/react-popover": "^1.0.7",
64
87
  "@radix-ui/react-popper": "^1.1.3",
65
88
  "@radix-ui/react-radio-group": "^1.1.3",
66
- "@radix-ui/react-scroll-area": "^1.0.5",
67
- "@radix-ui/react-separator": "^1.0.3",
89
+ "@radix-ui/react-switch": "^1.0.2",
68
90
  "@radix-ui/react-tabs": "^1.0.4",
69
91
  "@radix-ui/react-toast": "^1.1.5",
70
92
  "@radix-ui/react-tooltip": "^1.0.7",
71
- "lodash": "^4.17.21",
93
+ "clsx": "^2.1.1",
72
94
  "react-sortablejs": "^6.1.4",
73
95
  "react-syntax-highlighter": "^15.5.0",
74
96
  "react-virtualized-auto-sizer": "^1.0.20",
@@ -76,38 +98,37 @@
76
98
  "sortablejs": "^1.15.0"
77
99
  },
78
100
  "devDependencies": {
79
- "@radix-ui/react-switch": "^1.0.2",
80
- "@storybook/addon-a11y": "^9.0.18",
81
- "@storybook/addon-docs": "^9.0.18",
82
- "@storybook/addon-links": "^9.0.18",
83
- "@storybook/react-vite": "^9.0.18",
101
+ "@storybook/addon-a11y": "^10.0.7",
102
+ "@storybook/addon-docs": "^10.0.7",
103
+ "@storybook/addon-links": "^10.0.7",
104
+ "@storybook/react-vite": "^10.0.7",
84
105
  "@testing-library/dom": "^10.1.0",
85
106
  "@testing-library/jest-dom": "^6.4.5",
86
107
  "@testing-library/react": "^15.0.7",
87
108
  "@testing-library/user-event": "^14.5.2",
88
109
  "@tokens-studio/sd-transforms": "^0.10.3",
89
- "@types/lodash-es": "^4.17.7",
110
+ "@types/node": "^20.0.0",
90
111
  "@types/react": "^18.3.2",
91
112
  "@types/react-dom": "^18.3.0",
92
113
  "@types/react-syntax-highlighter": "^15.5.13",
93
114
  "@types/react-window": "^1.8.8",
94
115
  "@types/sortablejs": "^1.15.2",
95
- "@types/styled-components": "^5.1.34",
96
116
  "@typescript-eslint/eslint-plugin": "^7.16.1",
97
117
  "@typescript-eslint/parser": "^7.16.1",
98
118
  "@vitejs/plugin-react": "^4.2.1",
99
- "babel-plugin-styled-components": "^2.1.4",
100
- "chromatic": "^6.18.2",
119
+ "chromatic": "^13.3.3",
101
120
  "eslint": "^8.57.0",
102
121
  "eslint-plugin-prefer-arrow-functions": "^3.3.2",
103
122
  "eslint-plugin-react-hooks": "^4.6.0",
104
123
  "eslint-plugin-react-refresh": "^0.4.7",
105
- "eslint-plugin-storybook": "^9.0.18",
124
+ "eslint-plugin-storybook": "^10.0.7",
106
125
  "jsdom": "^24.0.0",
107
126
  "prettier": "^3.6.2",
108
- "prop-types": "^15.8.1",
109
- "storybook": "^9.0.18",
110
- "storybook-addon-pseudo-states": "^9.0.18",
127
+ "recharts": "^3.4.1",
128
+ "rollup": "^4.52.4",
129
+ "sass-embedded": "^1.93.0",
130
+ "storybook": "^10.0.7",
131
+ "storybook-addon-pseudo-states": "^10.0.7",
111
132
  "styled-components": "^6.1.11",
112
133
  "stylis": "^4.3.0",
113
134
  "ts-node": "^10.9.1",
@@ -118,9 +139,13 @@
118
139
  "watch": "^1.0.2"
119
140
  },
120
141
  "peerDependencies": {
121
- "dayjs": "^1.11.13",
122
- "react": "^18.2.0",
123
- "react-dom": "^18.2.0",
124
- "styled-components": ">= 5"
142
+ "dayjs": "^1.11.18",
143
+ "react": "^18.2.0 || ^19.0.0",
144
+ "react-dom": "^18.2.0 || ^19.0.0"
145
+ },
146
+ "peerDependenciesMeta": {
147
+ "dayjs": {
148
+ "optional": true
149
+ }
125
150
  }
126
151
  }