@bricks-toolkit/toolkit 0.1.11 → 0.1.12

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 (79) hide show
  1. package/package.json +1 -1
  2. package/dist/Button.types-BsQYqZml.d.ts +0 -27
  3. package/dist/Button.types-D-srlWFf.d.mts +0 -27
  4. package/dist/TextInput.types-DRI8HQza.d.mts +0 -32
  5. package/dist/TextInput.types-DRI8HQza.d.ts +0 -32
  6. package/dist/Tooltip.types-PbUasE3C.d.mts +0 -36
  7. package/dist/Tooltip.types-PbUasE3C.d.ts +0 -36
  8. package/dist/avatar/index.d.mts +0 -29
  9. package/dist/avatar/index.d.ts +0 -29
  10. package/dist/badge/index.d.mts +0 -57
  11. package/dist/badge/index.d.ts +0 -57
  12. package/dist/breadcrumbs/index.d.mts +0 -32
  13. package/dist/breadcrumbs/index.d.ts +0 -32
  14. package/dist/button/index.d.mts +0 -8
  15. package/dist/button/index.d.ts +0 -8
  16. package/dist/card/index.d.mts +0 -42
  17. package/dist/card/index.d.ts +0 -42
  18. package/dist/checkbox/index.d.mts +0 -36
  19. package/dist/checkbox/index.d.ts +0 -36
  20. package/dist/combo-box/index.d.mts +0 -62
  21. package/dist/combo-box/index.d.ts +0 -62
  22. package/dist/date-picker/index.d.mts +0 -32
  23. package/dist/date-picker/index.d.ts +0 -32
  24. package/dist/dialog/index.d.mts +0 -61
  25. package/dist/dialog/index.d.ts +0 -61
  26. package/dist/dropdown-menu/index.d.mts +0 -34
  27. package/dist/dropdown-menu/index.d.ts +0 -34
  28. package/dist/email/index.d.mts +0 -38
  29. package/dist/email/index.d.ts +0 -38
  30. package/dist/file-upload/index.d.mts +0 -27
  31. package/dist/file-upload/index.d.ts +0 -27
  32. package/dist/header/index.d.mts +0 -28
  33. package/dist/header/index.d.ts +0 -28
  34. package/dist/icon-button/index.d.mts +0 -16
  35. package/dist/icon-button/index.d.ts +0 -16
  36. package/dist/image/index.d.mts +0 -48
  37. package/dist/image/index.d.ts +0 -48
  38. package/dist/index.d.mts +0 -141
  39. package/dist/index.d.ts +0 -141
  40. package/dist/link/index.d.mts +0 -25
  41. package/dist/link/index.d.ts +0 -25
  42. package/dist/loader/index.d.mts +0 -21
  43. package/dist/loader/index.d.ts +0 -21
  44. package/dist/modal/index.d.mts +0 -116
  45. package/dist/modal/index.d.ts +0 -116
  46. package/dist/multi-select/index.d.mts +0 -59
  47. package/dist/multi-select/index.d.ts +0 -59
  48. package/dist/otp-input/index.d.mts +0 -57
  49. package/dist/otp-input/index.d.ts +0 -57
  50. package/dist/password-input/index.d.mts +0 -32
  51. package/dist/password-input/index.d.ts +0 -32
  52. package/dist/phone/index.d.mts +0 -41
  53. package/dist/phone/index.d.ts +0 -41
  54. package/dist/radio-button/index.d.mts +0 -56
  55. package/dist/radio-button/index.d.ts +0 -56
  56. package/dist/search-input/index.d.mts +0 -22
  57. package/dist/search-input/index.d.ts +0 -22
  58. package/dist/select/index.d.mts +0 -36
  59. package/dist/select/index.d.ts +0 -36
  60. package/dist/sidebar/index.d.mts +0 -96
  61. package/dist/sidebar/index.d.ts +0 -96
  62. package/dist/skeleton/index.d.mts +0 -76
  63. package/dist/skeleton/index.d.ts +0 -76
  64. package/dist/styles.d.mts +0 -2
  65. package/dist/styles.d.ts +0 -2
  66. package/dist/table/index.d.mts +0 -92
  67. package/dist/table/index.d.ts +0 -92
  68. package/dist/tabs/index.d.mts +0 -26
  69. package/dist/tabs/index.d.ts +0 -26
  70. package/dist/text-input/index.d.mts +0 -7
  71. package/dist/text-input/index.d.ts +0 -7
  72. package/dist/theme-provider/index.d.mts +0 -122
  73. package/dist/theme-provider/index.d.ts +0 -122
  74. package/dist/time-picker/index.d.mts +0 -32
  75. package/dist/time-picker/index.d.ts +0 -32
  76. package/dist/toaster/index.d.mts +0 -28
  77. package/dist/toaster/index.d.ts +0 -28
  78. package/dist/tooltip/index.d.mts +0 -7
  79. package/dist/tooltip/index.d.ts +0 -7
@@ -1,122 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- /** Theme modes supported by the library. */
4
- type ThemeMode = 'light' | 'dark' | 'system';
5
- /** A record of semantic design tokens for a single theme (light or dark). */
6
- interface SemanticColors {
7
- /** Main primary color used for actions and highlights. */
8
- primary?: string;
9
- /** Hover state for primary actions. */
10
- primaryHover?: string;
11
- /** Active/pressed state for primary actions. */
12
- primaryActive?: string;
13
- /** Secondary actions or secondary emphasis. */
14
- secondary?: string;
15
- /** Hover state for secondary actions. */
16
- secondaryHover?: string;
17
- /** A vibrant accent color for specific focus or brand elements. */
18
- accent?: string;
19
- /** Main application background. */
20
- background?: string;
21
- /** Primary surface color for cards, modals, and navigation. */
22
- surface?: string;
23
- /** A darker/lighter alternate surface for contrast. */
24
- surfaceSecondary?: string;
25
- /** Default border color for elements like inputs or cards. */
26
- border?: string;
27
- /** A more subtle border for secondary grouping. */
28
- borderLight?: string;
29
- /** Explicit divider color between content blocks. */
30
- divider?: string;
31
- /** Standard high-contrast text for body and headings. */
32
- text?: string;
33
- /** Slightly lower contrast text for secondary descriptions. */
34
- textSecondary?: string;
35
- /** Muted text for captions, metadata, or disabled labels. */
36
- textMuted?: string;
37
- /** High-contrast text to be used on dark背景 (e.g. on primary buttons). */
38
- textInverse?: string;
39
- /** Color representing success (often green). */
40
- success?: string;
41
- /** Color representing warnings (often amber). */
42
- warning?: string;
43
- /** Color representing errors or destructive actions (often red). */
44
- error?: string;
45
- /** Color representing informational messages (often blue). */
46
- info?: string;
47
- /** Background color for item hover states (e.g. list items). */
48
- hover?: string;
49
- /** Background color for item active/selected states. */
50
- active?: string;
51
- /** Ring or outline color for focus states. */
52
- focus?: string;
53
- /** Color for disabled backgrounds or indicators. */
54
- disabled?: string;
55
- /** A subtle, tight shadow for small components. */
56
- shadowSm?: string;
57
- /** The standard shadow for cards and modals. */
58
- shadowMd?: string;
59
- /** A large, diffuse shadow for overlays. */
60
- shadowLg?: string;
61
- /** For quick interactions like hover entry. */
62
- transitionFast?: string;
63
- /** The default transition for most entry/exit animations. */
64
- transitionNormal?: string;
65
- /** For large surface changes or fade-ins. */
66
- transitionSlow?: string;
67
- /** Layer for dropdowns and popovers. */
68
- zIndexDropdown?: string | number;
69
- /** Layer for sticky headers or nav. */
70
- zIndexSticky?: string | number;
71
- /** Layer for modals and drawers. */
72
- zIndexModal?: string | number;
73
- /** Highest layer for tooltips and alerts. */
74
- zIndexTooltip?: string | number;
75
- primaryForeground?: string;
76
- secondaryForeground?: string;
77
- muted?: string;
78
- mutedForeground?: string;
79
- accentForeground?: string;
80
- destructive?: string;
81
- destructiveForeground?: string;
82
- card?: string;
83
- cardForeground?: string;
84
- input?: string;
85
- ring?: string;
86
- }
87
- /** Theme configuration that allows overriding light and dark properties. */
88
- interface ThemeConfig {
89
- /** Light theme overrides. */
90
- light?: SemanticColors;
91
- /** Dark theme overrides. */
92
- dark?: SemanticColors;
93
- }
94
- /** Props for the ThemeProvider component. */
95
- interface ThemeProviderProps {
96
- /** The children to render within the provider. */
97
- children: ReactNode;
98
- /** The default theme mode ('light', 'dark', or 'system'). Default is 'system'. */
99
- defaultTheme?: ThemeMode;
100
- /** The key used to store the theme mode in localStorage. Default is 'ui-theme'. */
101
- storageKey?: string;
102
- /** Optional custom theme configuration to override default tokens. */
103
- themeConfig?: ThemeConfig;
104
- }
105
- /** Context state provided by the ThemeProvider. */
106
- interface ThemeProviderState {
107
- /** The currently active theme mode. */
108
- theme: ThemeMode;
109
- /** Function to update the theme mode. */
110
- setTheme: (theme: ThemeMode) => void;
111
- /** The currently active theme configuration (including overrides). */
112
- themeConfig?: ThemeConfig;
113
- }
114
-
115
- interface ThemeProviderComponent {
116
- (props: ThemeProviderProps): React.JSX.Element;
117
- displayName?: string;
118
- }
119
- declare const ThemeProvider: ThemeProviderComponent;
120
- declare const useTheme: () => ThemeProviderState;
121
-
122
- export { type SemanticColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, type ThemeProviderState, useTheme };
@@ -1,122 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- /** Theme modes supported by the library. */
4
- type ThemeMode = 'light' | 'dark' | 'system';
5
- /** A record of semantic design tokens for a single theme (light or dark). */
6
- interface SemanticColors {
7
- /** Main primary color used for actions and highlights. */
8
- primary?: string;
9
- /** Hover state for primary actions. */
10
- primaryHover?: string;
11
- /** Active/pressed state for primary actions. */
12
- primaryActive?: string;
13
- /** Secondary actions or secondary emphasis. */
14
- secondary?: string;
15
- /** Hover state for secondary actions. */
16
- secondaryHover?: string;
17
- /** A vibrant accent color for specific focus or brand elements. */
18
- accent?: string;
19
- /** Main application background. */
20
- background?: string;
21
- /** Primary surface color for cards, modals, and navigation. */
22
- surface?: string;
23
- /** A darker/lighter alternate surface for contrast. */
24
- surfaceSecondary?: string;
25
- /** Default border color for elements like inputs or cards. */
26
- border?: string;
27
- /** A more subtle border for secondary grouping. */
28
- borderLight?: string;
29
- /** Explicit divider color between content blocks. */
30
- divider?: string;
31
- /** Standard high-contrast text for body and headings. */
32
- text?: string;
33
- /** Slightly lower contrast text for secondary descriptions. */
34
- textSecondary?: string;
35
- /** Muted text for captions, metadata, or disabled labels. */
36
- textMuted?: string;
37
- /** High-contrast text to be used on dark背景 (e.g. on primary buttons). */
38
- textInverse?: string;
39
- /** Color representing success (often green). */
40
- success?: string;
41
- /** Color representing warnings (often amber). */
42
- warning?: string;
43
- /** Color representing errors or destructive actions (often red). */
44
- error?: string;
45
- /** Color representing informational messages (often blue). */
46
- info?: string;
47
- /** Background color for item hover states (e.g. list items). */
48
- hover?: string;
49
- /** Background color for item active/selected states. */
50
- active?: string;
51
- /** Ring or outline color for focus states. */
52
- focus?: string;
53
- /** Color for disabled backgrounds or indicators. */
54
- disabled?: string;
55
- /** A subtle, tight shadow for small components. */
56
- shadowSm?: string;
57
- /** The standard shadow for cards and modals. */
58
- shadowMd?: string;
59
- /** A large, diffuse shadow for overlays. */
60
- shadowLg?: string;
61
- /** For quick interactions like hover entry. */
62
- transitionFast?: string;
63
- /** The default transition for most entry/exit animations. */
64
- transitionNormal?: string;
65
- /** For large surface changes or fade-ins. */
66
- transitionSlow?: string;
67
- /** Layer for dropdowns and popovers. */
68
- zIndexDropdown?: string | number;
69
- /** Layer for sticky headers or nav. */
70
- zIndexSticky?: string | number;
71
- /** Layer for modals and drawers. */
72
- zIndexModal?: string | number;
73
- /** Highest layer for tooltips and alerts. */
74
- zIndexTooltip?: string | number;
75
- primaryForeground?: string;
76
- secondaryForeground?: string;
77
- muted?: string;
78
- mutedForeground?: string;
79
- accentForeground?: string;
80
- destructive?: string;
81
- destructiveForeground?: string;
82
- card?: string;
83
- cardForeground?: string;
84
- input?: string;
85
- ring?: string;
86
- }
87
- /** Theme configuration that allows overriding light and dark properties. */
88
- interface ThemeConfig {
89
- /** Light theme overrides. */
90
- light?: SemanticColors;
91
- /** Dark theme overrides. */
92
- dark?: SemanticColors;
93
- }
94
- /** Props for the ThemeProvider component. */
95
- interface ThemeProviderProps {
96
- /** The children to render within the provider. */
97
- children: ReactNode;
98
- /** The default theme mode ('light', 'dark', or 'system'). Default is 'system'. */
99
- defaultTheme?: ThemeMode;
100
- /** The key used to store the theme mode in localStorage. Default is 'ui-theme'. */
101
- storageKey?: string;
102
- /** Optional custom theme configuration to override default tokens. */
103
- themeConfig?: ThemeConfig;
104
- }
105
- /** Context state provided by the ThemeProvider. */
106
- interface ThemeProviderState {
107
- /** The currently active theme mode. */
108
- theme: ThemeMode;
109
- /** Function to update the theme mode. */
110
- setTheme: (theme: ThemeMode) => void;
111
- /** The currently active theme configuration (including overrides). */
112
- themeConfig?: ThemeConfig;
113
- }
114
-
115
- interface ThemeProviderComponent {
116
- (props: ThemeProviderProps): React.JSX.Element;
117
- displayName?: string;
118
- }
119
- declare const ThemeProvider: ThemeProviderComponent;
120
- declare const useTheme: () => ThemeProviderState;
121
-
122
- export { type SemanticColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, type ThemeProviderState, useTheme };
@@ -1,32 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type TimePickerVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type TimePickerState = 'default' | 'error' | 'success' | 'warning';
6
- interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
7
- label?: string;
8
- required?: boolean;
9
- helperText?: string;
10
- errorMessage?: string;
11
- successMessage?: string;
12
- warningMessage?: string;
13
- variant?: TimePickerVariant;
14
- size?: TimePickerSize;
15
- state?: TimePickerState;
16
- fullWidth?: boolean;
17
- leftElement?: ReactNode;
18
- rightElement?: ReactNode;
19
- prefix?: ReactNode;
20
- suffix?: ReactNode;
21
- wrapperClassName?: string;
22
- inputGroupClassName?: string;
23
- inputClassName?: string;
24
- labelClassName?: string;
25
- helperClassName?: string;
26
- clearable?: boolean;
27
- isLoading?: boolean;
28
- }
29
-
30
- declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
31
-
32
- export { TimePicker, type TimePickerProps, type TimePickerSize, type TimePickerState, type TimePickerVariant };
@@ -1,32 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type TimePickerVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type TimePickerState = 'default' | 'error' | 'success' | 'warning';
6
- interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
7
- label?: string;
8
- required?: boolean;
9
- helperText?: string;
10
- errorMessage?: string;
11
- successMessage?: string;
12
- warningMessage?: string;
13
- variant?: TimePickerVariant;
14
- size?: TimePickerSize;
15
- state?: TimePickerState;
16
- fullWidth?: boolean;
17
- leftElement?: ReactNode;
18
- rightElement?: ReactNode;
19
- prefix?: ReactNode;
20
- suffix?: ReactNode;
21
- wrapperClassName?: string;
22
- inputGroupClassName?: string;
23
- inputClassName?: string;
24
- labelClassName?: string;
25
- helperClassName?: string;
26
- clearable?: boolean;
27
- isLoading?: boolean;
28
- }
29
-
30
- declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
31
-
32
- export { TimePicker, type TimePickerProps, type TimePickerSize, type TimePickerState, type TimePickerVariant };
@@ -1,28 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- type ToasterStatus = 'success' | 'error' | 'warning' | 'info';
4
- type ToasterVariant = 'solid' | 'subtle' | 'left-accent';
5
- interface ToasterProps {
6
- /** The unique identifier of the toaster */
7
- id?: string;
8
- /** The title of the toaster */
9
- title?: string;
10
- /** The description text of the toaster */
11
- description?: ReactNode;
12
- /** The status of the toaster, affects color and icon */
13
- status?: ToasterStatus;
14
- /** The visual variant of the toaster */
15
- variant?: ToasterVariant;
16
- /** Whether the toaster is closable */
17
- isClosable?: boolean;
18
- /** Callback function called when the toaster is closed */
19
- onClose?: () => void;
20
- /** Custom class name for the toaster container */
21
- className?: string;
22
- /** Custom duration in ms before toaster closes automatically (if managed by a provider) */
23
- duration?: number;
24
- }
25
-
26
- declare const Toaster: React.ForwardRefExoticComponent<ToasterProps & React.RefAttributes<HTMLDivElement>>;
27
-
28
- export { Toaster, type ToasterProps, type ToasterStatus, type ToasterVariant };
@@ -1,28 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- type ToasterStatus = 'success' | 'error' | 'warning' | 'info';
4
- type ToasterVariant = 'solid' | 'subtle' | 'left-accent';
5
- interface ToasterProps {
6
- /** The unique identifier of the toaster */
7
- id?: string;
8
- /** The title of the toaster */
9
- title?: string;
10
- /** The description text of the toaster */
11
- description?: ReactNode;
12
- /** The status of the toaster, affects color and icon */
13
- status?: ToasterStatus;
14
- /** The visual variant of the toaster */
15
- variant?: ToasterVariant;
16
- /** Whether the toaster is closable */
17
- isClosable?: boolean;
18
- /** Callback function called when the toaster is closed */
19
- onClose?: () => void;
20
- /** Custom class name for the toaster container */
21
- className?: string;
22
- /** Custom duration in ms before toaster closes automatically (if managed by a provider) */
23
- duration?: number;
24
- }
25
-
26
- declare const Toaster: React.ForwardRefExoticComponent<ToasterProps & React.RefAttributes<HTMLDivElement>>;
27
-
28
- export { Toaster, type ToasterProps, type ToasterStatus, type ToasterVariant };
@@ -1,7 +0,0 @@
1
- import { a as TooltipProps } from '../Tooltip.types-PbUasE3C.mjs';
2
- export { T as TooltipPlacement, b as TooltipSize, c as TooltipTrigger, d as TooltipVariant } from '../Tooltip.types-PbUasE3C.mjs';
3
- import 'react';
4
-
5
- declare function Tooltip({ content, children, placement, trigger, showDelay, hideDelay, size, variant, open: controlledOpen, disabled, maxWidth, className, wrapperClassName, }: TooltipProps): React.JSX.Element;
6
-
7
- export { Tooltip, TooltipProps };
@@ -1,7 +0,0 @@
1
- import { a as TooltipProps } from '../Tooltip.types-PbUasE3C.js';
2
- export { T as TooltipPlacement, b as TooltipSize, c as TooltipTrigger, d as TooltipVariant } from '../Tooltip.types-PbUasE3C.js';
3
- import 'react';
4
-
5
- declare function Tooltip({ content, children, placement, trigger, showDelay, hideDelay, size, variant, open: controlledOpen, disabled, maxWidth, className, wrapperClassName, }: TooltipProps): React.JSX.Element;
6
-
7
- export { Tooltip, TooltipProps };