pixelize-design-library 2.4.1-beta.1 → 2.4.1-beta.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/.cursor/modules/account-management/MODULE.md +8 -1
- package/.cursor/modules/feedback/MODULE.md +6 -0
- package/.cursor/modules/inputs-date-file/MODULE.md +12 -1
- package/.cursor/modules/inputs-select/MODULE.md +64 -2
- package/.cursor/modules/inputs-toggle/MODULE.md +6 -0
- package/.cursor/modules/layout-navigation/MODULE.md +55 -5
- package/.cursor/modules/overlays/MODULE.md +29 -16
- package/.cursor/modules/table/MODULE.md +6 -0
- package/.cursor/modules/theme/MODULE.md +117 -0
- package/dist/Assets/defaultLogo.d.ts.map +1 -1
- package/dist/Assets/defaultLogo.js +1 -3
- package/dist/Assets/defaultLogo.tsx +4 -8
- package/dist/Components/DatePicker/CalendarPanel.d.ts.map +1 -1
- package/dist/Components/DatePicker/CalendarPanel.js +12 -3
- package/dist/Components/DatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Components/DatePicker/SingleDatePicker.js +11 -9
- package/dist/Components/DatePicker/TimeOnlyPicker.js +2 -2
- package/dist/Components/DatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Components/DatePicker/TimePicker.js +14 -2
- package/dist/Components/DatePicker/TimePickerInput.d.ts.map +1 -1
- package/dist/Components/DatePicker/TimePickerInput.js +9 -1
- package/dist/Components/SelectV2/SelectV2.d.ts +3 -0
- package/dist/Components/SelectV2/SelectV2.d.ts.map +1 -0
- package/dist/Components/SelectV2/SelectV2.js +185 -0
- package/dist/Components/SelectV2/SelectV2Props.d.ts +67 -0
- package/dist/Components/SelectV2/SelectV2Props.d.ts.map +1 -0
- package/dist/Components/SelectV2/SelectV2Props.js +2 -0
- package/dist/Components/SideBar/SideBar.js +1 -1
- package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -1
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +2 -2
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts.map +1 -1
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +25 -4
- package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts +18 -0
- package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts.map +1 -1
- package/dist/Theme/chakra/Avatar.styles.d.ts +33 -0
- package/dist/Theme/chakra/Avatar.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Avatar.styles.js +28 -0
- package/dist/Theme/chakra/Drawer.styles.d.ts +32 -0
- package/dist/Theme/chakra/Drawer.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Drawer.styles.js +26 -0
- package/dist/Theme/chakra/Menu.styles.d.ts +70 -0
- package/dist/Theme/chakra/Menu.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Menu.styles.js +50 -0
- package/dist/Theme/chakra/Modal.styles.d.ts +32 -0
- package/dist/Theme/chakra/Modal.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Modal.styles.js +26 -0
- package/dist/Theme/chakra/Popover.styles.d.ts +37 -0
- package/dist/Theme/chakra/Popover.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Popover.styles.js +30 -0
- package/dist/Theme/chakra/Slider.styles.d.ts +31 -0
- package/dist/Theme/chakra/Slider.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Slider.styles.js +25 -0
- package/dist/Theme/chakra/Switch.styles.d.ts +31 -0
- package/dist/Theme/chakra/Switch.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Switch.styles.js +24 -0
- package/dist/Theme/chakra/Tabs.styles.d.ts +43 -0
- package/dist/Theme/chakra/Tabs.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Tabs.styles.js +41 -0
- package/dist/Theme/chakra/componentStyles.d.ts +228 -1
- package/dist/Theme/chakra/componentStyles.d.ts.map +1 -1
- package/dist/Theme/chakra/componentStyles.js +62 -0
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts +11 -1
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +1 -1
- package/dist/Theme/provider/PixelizeThemeProvider.js +35 -2
- package/dist/Theme/provider/ThemeSwitcher.d.ts.map +1 -1
- package/dist/Theme/provider/ThemeSwitcher.js +23 -11
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentStyleConfig } from "@chakra-ui/react";
|
|
1
|
+
import { ComponentStyleConfig, StyleFunctionProps } from "@chakra-ui/react";
|
|
2
2
|
export declare const componentStyles: {
|
|
3
3
|
Checkbox: ComponentStyleConfig;
|
|
4
4
|
Input: ComponentStyleConfig;
|
|
@@ -9,5 +9,232 @@ export declare const componentStyles: {
|
|
|
9
9
|
NumberInput: ComponentStyleConfig;
|
|
10
10
|
Badge: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
11
11
|
FormError: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
12
|
+
Drawer: {
|
|
13
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
14
|
+
dialog: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
bg: string;
|
|
17
|
+
color: any;
|
|
18
|
+
};
|
|
19
|
+
}) | undefined;
|
|
20
|
+
sizes?: {
|
|
21
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
22
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
23
|
+
}>;
|
|
24
|
+
} | undefined;
|
|
25
|
+
variants?: {
|
|
26
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
27
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
28
|
+
}>;
|
|
29
|
+
} | undefined;
|
|
30
|
+
defaultProps?: {
|
|
31
|
+
size?: string | number | undefined;
|
|
32
|
+
variant?: string | number | undefined;
|
|
33
|
+
colorScheme?: string | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
36
|
+
};
|
|
37
|
+
Menu: {
|
|
38
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
39
|
+
list: {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
bg: string;
|
|
42
|
+
color: any;
|
|
43
|
+
};
|
|
44
|
+
item: {
|
|
45
|
+
bg: string;
|
|
46
|
+
_focus: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
bg: string;
|
|
49
|
+
};
|
|
50
|
+
_hover: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
bg: string;
|
|
53
|
+
};
|
|
54
|
+
_active: {
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
bg: string;
|
|
57
|
+
};
|
|
58
|
+
_expanded: {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
bg: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}) | undefined;
|
|
64
|
+
sizes?: {
|
|
65
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
66
|
+
keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
67
|
+
}>;
|
|
68
|
+
} | undefined;
|
|
69
|
+
variants?: {
|
|
70
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
71
|
+
keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
72
|
+
}>;
|
|
73
|
+
} | undefined;
|
|
74
|
+
defaultProps?: {
|
|
75
|
+
size?: string | number | undefined;
|
|
76
|
+
variant?: string | number | undefined;
|
|
77
|
+
colorScheme?: string | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
parts: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
80
|
+
};
|
|
81
|
+
Modal: {
|
|
82
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
83
|
+
dialog: {
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
bg: string;
|
|
86
|
+
color: any;
|
|
87
|
+
};
|
|
88
|
+
}) | undefined;
|
|
89
|
+
sizes?: {
|
|
90
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
91
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
92
|
+
}>;
|
|
93
|
+
} | undefined;
|
|
94
|
+
variants?: {
|
|
95
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
96
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
97
|
+
}>;
|
|
98
|
+
} | undefined;
|
|
99
|
+
defaultProps?: {
|
|
100
|
+
size?: string | number | undefined;
|
|
101
|
+
variant?: string | number | undefined;
|
|
102
|
+
colorScheme?: string | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
105
|
+
};
|
|
106
|
+
Popover: {
|
|
107
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
108
|
+
content: {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
bg: string;
|
|
111
|
+
color: any;
|
|
112
|
+
};
|
|
113
|
+
}) | undefined;
|
|
114
|
+
sizes?: {
|
|
115
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
116
|
+
keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
117
|
+
}>;
|
|
118
|
+
} | undefined;
|
|
119
|
+
variants?: {
|
|
120
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
121
|
+
keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
122
|
+
}>;
|
|
123
|
+
} | undefined;
|
|
124
|
+
defaultProps?: {
|
|
125
|
+
size?: string | number | undefined;
|
|
126
|
+
variant?: string | number | undefined;
|
|
127
|
+
colorScheme?: string | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
parts: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
130
|
+
};
|
|
131
|
+
Slider: {
|
|
132
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
133
|
+
thumb: {
|
|
134
|
+
[x: string]: any;
|
|
135
|
+
bg: string;
|
|
136
|
+
};
|
|
137
|
+
}) | undefined;
|
|
138
|
+
sizes?: {
|
|
139
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
140
|
+
keys: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
141
|
+
}>;
|
|
142
|
+
} | undefined;
|
|
143
|
+
variants?: {
|
|
144
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
145
|
+
keys: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
146
|
+
}>;
|
|
147
|
+
} | undefined;
|
|
148
|
+
defaultProps?: {
|
|
149
|
+
size?: string | number | undefined;
|
|
150
|
+
variant?: string | number | undefined;
|
|
151
|
+
colorScheme?: string | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
parts: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
154
|
+
};
|
|
155
|
+
Switch: {
|
|
156
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
157
|
+
thumb: {
|
|
158
|
+
[x: string]: any;
|
|
159
|
+
bg: string;
|
|
160
|
+
};
|
|
161
|
+
}) | undefined;
|
|
162
|
+
sizes?: {
|
|
163
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
164
|
+
keys: ("container" | "label" | "track" | "thumb")[];
|
|
165
|
+
}>;
|
|
166
|
+
} | undefined;
|
|
167
|
+
variants?: {
|
|
168
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
169
|
+
keys: ("container" | "label" | "track" | "thumb")[];
|
|
170
|
+
}>;
|
|
171
|
+
} | undefined;
|
|
172
|
+
defaultProps?: {
|
|
173
|
+
size?: string | number | undefined;
|
|
174
|
+
variant?: string | number | undefined;
|
|
175
|
+
colorScheme?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
parts: ("container" | "label" | "track" | "thumb")[];
|
|
178
|
+
};
|
|
179
|
+
Tabs: {
|
|
180
|
+
baseStyle?: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
181
|
+
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
182
|
+
}> | undefined;
|
|
183
|
+
sizes?: {
|
|
184
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
185
|
+
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
186
|
+
}>;
|
|
187
|
+
} | undefined;
|
|
188
|
+
variants?: {
|
|
189
|
+
enclosed: ({ theme }: StyleFunctionProps) => {
|
|
190
|
+
tab: {
|
|
191
|
+
_selected: {
|
|
192
|
+
[x: string]: any;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
"enclosed-colored": ({ theme }: StyleFunctionProps) => {
|
|
197
|
+
tab: {
|
|
198
|
+
_selected: {
|
|
199
|
+
[x: string]: any;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
} | undefined;
|
|
204
|
+
defaultProps?: {
|
|
205
|
+
size?: string | number | undefined;
|
|
206
|
+
variant?: "enclosed" | "enclosed-colored" | undefined;
|
|
207
|
+
colorScheme?: string | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
parts: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
210
|
+
};
|
|
211
|
+
Avatar: {
|
|
212
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
213
|
+
badge: {
|
|
214
|
+
[x: string]: any;
|
|
215
|
+
};
|
|
216
|
+
container: {
|
|
217
|
+
[x: string]: any;
|
|
218
|
+
};
|
|
219
|
+
}) | undefined;
|
|
220
|
+
sizes?: {
|
|
221
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
222
|
+
keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
223
|
+
}>;
|
|
224
|
+
} | undefined;
|
|
225
|
+
variants?: {
|
|
226
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
227
|
+
keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
228
|
+
}>;
|
|
229
|
+
} | undefined;
|
|
230
|
+
defaultProps?: {
|
|
231
|
+
size?: string | number | undefined;
|
|
232
|
+
variant?: string | number | undefined;
|
|
233
|
+
colorScheme?: string | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
parts: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
236
|
+
};
|
|
237
|
+
Skeleton: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
238
|
+
Tooltip: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
12
239
|
};
|
|
13
240
|
//# sourceMappingURL=componentStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentStyles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/componentStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"componentStyles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/componentStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAU,MAAM,kBAAkB,CAAC;AA4HpF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.componentStyles = void 0;
|
|
4
|
+
const react_1 = require("@chakra-ui/react");
|
|
4
5
|
const Button_styles_1 = require("../../Components/Button/Button.styles");
|
|
5
6
|
const Checkbox_styles_1 = require("../../Components/Checkbox/Checkbox.styles");
|
|
6
7
|
const TextInput_styles_1 = require("../../Components/Input/TextInput.styles");
|
|
@@ -10,6 +11,14 @@ const InputTextArea_style_1 = require("../../Components/InputTextArea/InputTextA
|
|
|
10
11
|
const NumberInput_styles_1 = require("../../Components/NumberInput/NumberInput.styles");
|
|
11
12
|
const accentText_1 = require("../tokens/builders/accentText");
|
|
12
13
|
const color_1 = require("../tokens/builders/color");
|
|
14
|
+
const Drawer_styles_1 = require("./Drawer.styles");
|
|
15
|
+
const Menu_styles_1 = require("./Menu.styles");
|
|
16
|
+
const Modal_styles_1 = require("./Modal.styles");
|
|
17
|
+
const Popover_styles_1 = require("./Popover.styles");
|
|
18
|
+
const Slider_styles_1 = require("./Slider.styles");
|
|
19
|
+
const Switch_styles_1 = require("./Switch.styles");
|
|
20
|
+
const Tabs_styles_1 = require("./Tabs.styles");
|
|
21
|
+
const Avatar_styles_1 = require("./Avatar.styles");
|
|
13
22
|
// `colorScheme` accepts any Chakra scale, including built-ins we never themed (blackAlpha,
|
|
14
23
|
// whiteAlpha) whose rungs are translucent `rgba(...)` strings, not opaque hex — our contrast
|
|
15
24
|
// math (hexToRgb) throws on those on purpose (see color.ts). Guard so those scales fall back to
|
|
@@ -75,6 +84,49 @@ const FormError = {
|
|
|
75
84
|
};
|
|
76
85
|
},
|
|
77
86
|
};
|
|
87
|
+
const $tooltipBg = (0, react_1.cssVar)("tooltip-bg");
|
|
88
|
+
const $tooltipFg = (0, react_1.cssVar)("tooltip-fg");
|
|
89
|
+
/**
|
|
90
|
+
* Chakra's own Tooltip baseStyle hardcodes `--tooltip-bg`/`--tooltip-fg` to `colors.gray.700`/
|
|
91
|
+
* `colors.whiteAlpha.900` (gated behind `_dark`, which this theme-swap app never triggers — see
|
|
92
|
+
* Menu.styles.ts / createBrandTheme's colorMode comment). Our reversed dark gray ramp makes
|
|
93
|
+
* `gray.700` LIGHT (~L79), so every bare `<Tooltip>` renders a near-white bubble with near-white
|
|
94
|
+
* text on the dark canvas — invisible. A tooltip floats over arbitrary content in either mode, so
|
|
95
|
+
* unlike Menu/Modal/Drawer (which follow the canvas) it needs a FIXED high-contrast chip that
|
|
96
|
+
* doesn't invert with the palette — `black`/`white` are exactly the two tokens `buildDarkPalette`
|
|
97
|
+
* deliberately never remaps, so they stay a stable dark-bg/white-text pair in both modes.
|
|
98
|
+
*/
|
|
99
|
+
const Tooltip = {
|
|
100
|
+
baseStyle: ({ theme }) => {
|
|
101
|
+
var _a, _b, _c, _d;
|
|
102
|
+
return ({
|
|
103
|
+
[$tooltipBg.variable]: (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.black) !== null && _b !== void 0 ? _b : "colors.gray.700",
|
|
104
|
+
[$tooltipFg.variable]: (_d = (_c = theme.colors) === null || _c === void 0 ? void 0 : _c.white) !== null && _d !== void 0 ? _d : "colors.whiteAlpha.900",
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
const $skeletonStart = (0, react_1.cssVar)("skeleton-start-color");
|
|
109
|
+
const $skeletonEnd = (0, react_1.cssVar)("skeleton-end-color");
|
|
110
|
+
/**
|
|
111
|
+
* Chakra's own Skeleton baseStyle hardcodes `--skeleton-start-color`/`--skeleton-end-color` to
|
|
112
|
+
* `colors.gray.100`/`colors.gray.400` the same `_dark`-gated way Menu/Popover did (Wave G/H), so
|
|
113
|
+
* every bare `<Skeleton>` shimmers between two near-white tones on the dark canvas. Fixed at the
|
|
114
|
+
* theme level rather than in `Skeletons.tsx`: Chakra's `Skeleton` only writes these vars from its
|
|
115
|
+
* `startColor`/`endColor` PROPS when a caller actually passes them (`useToken` on an empty string
|
|
116
|
+
* resolves to `undefined`, so the prop-driven `cssVarStyles` object stays empty) — an explicit
|
|
117
|
+
* prop still wins via that mechanism, this only supplies the default the base style already owns.
|
|
118
|
+
*/
|
|
119
|
+
const Skeleton = {
|
|
120
|
+
baseStyle: ({ theme }) => {
|
|
121
|
+
var _a, _b, _c, _d, _e, _f;
|
|
122
|
+
return ({
|
|
123
|
+
[$skeletonStart.variable]: (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.gray) === null || _b === void 0 ? void 0 : _b[100]) !== null && _c !== void 0 ? _c : "colors.gray.100",
|
|
124
|
+
[$skeletonEnd.variable]: (_f = (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.gray) === null || _e === void 0 ? void 0 : _e[300]) !== null && _f !== void 0 ? _f : "colors.gray.400",
|
|
125
|
+
background: $skeletonStart.reference,
|
|
126
|
+
borderColor: $skeletonEnd.reference,
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
};
|
|
78
130
|
exports.componentStyles = {
|
|
79
131
|
Checkbox: Checkbox_styles_1.Checkbox,
|
|
80
132
|
Input: TextInput_styles_1.Input,
|
|
@@ -85,4 +137,14 @@ exports.componentStyles = {
|
|
|
85
137
|
NumberInput: NumberInput_styles_1.NumberInput,
|
|
86
138
|
Badge,
|
|
87
139
|
FormError,
|
|
140
|
+
Drawer: Drawer_styles_1.Drawer,
|
|
141
|
+
Menu: Menu_styles_1.Menu,
|
|
142
|
+
Modal: Modal_styles_1.Modal,
|
|
143
|
+
Popover: Popover_styles_1.Popover,
|
|
144
|
+
Slider: Slider_styles_1.Slider,
|
|
145
|
+
Switch: Switch_styles_1.Switch,
|
|
146
|
+
Tabs: Tabs_styles_1.Tabs,
|
|
147
|
+
Avatar: Avatar_styles_1.Avatar,
|
|
148
|
+
Skeleton,
|
|
149
|
+
Tooltip,
|
|
88
150
|
};
|
|
@@ -16,6 +16,16 @@ export type PixelizeThemeProviderProps = {
|
|
|
16
16
|
defaultMode?: ColorMode;
|
|
17
17
|
storageKey?: string;
|
|
18
18
|
disablePersistence?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* App-specific theme overrides (fonts, sizes, component defaultProps, zIndices, ...) merged
|
|
21
|
+
* onto the resolved `brandThemes[brand][resolvedMode]` via `extendTheme`. Re-evaluated whenever
|
|
22
|
+
* `brand`/`resolvedMode` change, so overrides always layer onto the CURRENT palette rather than
|
|
23
|
+
* a stale one. Safe to merge post-resolution: `createBrandTheme` already fixes
|
|
24
|
+
* `config.initialColorMode` to `"light"` on every palette, and `extendTheme` is a pure additive
|
|
25
|
+
* merge — it does not re-derive `_dark:` blocks or re-run color-mode resolution, so this cannot
|
|
26
|
+
* reintroduce the double-adaptation bug `forcedLightColorModeManager` avoids (see above).
|
|
27
|
+
*/
|
|
28
|
+
themeOverrides?: Record<string, unknown>;
|
|
19
29
|
};
|
|
20
30
|
export declare const ThemeModeContext: React.Context<ThemeModeContextValue | undefined>;
|
|
21
31
|
/**
|
|
@@ -32,5 +42,5 @@ export declare const ThemeModeContext: React.Context<ThemeModeContextValue | und
|
|
|
32
42
|
* whatever the active palette says. Read the mode from `useThemeMode()` instead. Existing apps are
|
|
33
43
|
* unaffected: they are light-only, where that argument was always the one returned anyway.
|
|
34
44
|
*/
|
|
35
|
-
export declare const PixelizeThemeProvider: ({ children, brand: brandProp, defaultMode, storageKey, disablePersistence, }: PixelizeThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const PixelizeThemeProvider: ({ children, brand: brandProp, defaultMode, storageKey, disablePersistence, themeOverrides, }: PixelizeThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
46
|
//# sourceMappingURL=PixelizeThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PixelizeThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/Theme/provider/PixelizeThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU/E,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,uDAAuD;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PixelizeThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/Theme/provider/PixelizeThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU/E,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,uDAAuD;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C,CAAC;AA2BF,eAAO,MAAM,gBAAgB,kDAE5B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,GAAI,8FAOnC,0BAA0B,4CA8F5B,CAAC"}
|
|
@@ -48,7 +48,7 @@ exports.ThemeModeContext = (0, react_1.createContext)(undefined);
|
|
|
48
48
|
* whatever the active palette says. Read the mode from `useThemeMode()` instead. Existing apps are
|
|
49
49
|
* unaffected: they are light-only, where that argument was always the one returned anyway.
|
|
50
50
|
*/
|
|
51
|
-
const PixelizeThemeProvider = ({ children, brand: brandProp = DEFAULT_BRAND, defaultMode = DEFAULT_MODE, storageKey = DEFAULT_STORAGE_KEY, disablePersistence = false, }) => {
|
|
51
|
+
const PixelizeThemeProvider = ({ children, brand: brandProp = DEFAULT_BRAND, defaultMode = DEFAULT_MODE, storageKey = DEFAULT_STORAGE_KEY, disablePersistence = false, themeOverrides, }) => {
|
|
52
52
|
const [mode, setModeState] = (0, react_1.useState)(defaultMode);
|
|
53
53
|
const [brand, setBrandState] = (0, react_1.useState)(brandProp);
|
|
54
54
|
// Deterministic on the server and on the first client render — the real OS value lands in
|
|
@@ -67,6 +67,22 @@ const PixelizeThemeProvider = ({ children, brand: brandProp = DEFAULT_BRAND, def
|
|
|
67
67
|
if (stored.brand)
|
|
68
68
|
setBrandState(stored.brand);
|
|
69
69
|
}, [disablePersistence, storageKey]);
|
|
70
|
+
// `brandProp` only seeds initial state above, so a consumer that re-renders with a new
|
|
71
|
+
// `brand` prop after mount (e.g. persisting the pick through its own store, like tickets'
|
|
72
|
+
// Settings page dispatching Redux instead of calling `setBrand`) would otherwise never see
|
|
73
|
+
// it applied — the same gap `colorMode` has, which callers work around with an effect
|
|
74
|
+
// mirroring `mode`. Sync it here instead so every consumer gets it for free.
|
|
75
|
+
const isFirstBrandPropRun = (0, react_1.useRef)(true);
|
|
76
|
+
(0, react_1.useEffect)(() => {
|
|
77
|
+
if (isFirstBrandPropRun.current) {
|
|
78
|
+
isFirstBrandPropRun.current = false;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
setBrandState(brandProp);
|
|
82
|
+
// Only re-sync when the prop itself changes — not on every local `setBrand` call (that
|
|
83
|
+
// would fight the user's own in-session brand picking, e.g. via ThemeSwitcher).
|
|
84
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
|
+
}, [brandProp]);
|
|
70
86
|
// Skipping the mount run keeps the defaults from being written over a stored value before
|
|
71
87
|
// the rehydrate effect above has applied it.
|
|
72
88
|
const isFirstPersistRun = (0, react_1.useRef)(true);
|
|
@@ -80,12 +96,29 @@ const PixelizeThemeProvider = ({ children, brand: brandProp = DEFAULT_BRAND, def
|
|
|
80
96
|
(0, colorModeStorage_1.writeStoredTheme)(storageKey, { mode, brand });
|
|
81
97
|
}, [mode, brand, disablePersistence, storageKey]);
|
|
82
98
|
const resolvedMode = mode === "system" ? systemMode : mode;
|
|
99
|
+
/**
|
|
100
|
+
* Native browser UI (the `<select>` dropdown popup chrome, the `<input type="date">` calendar
|
|
101
|
+
* picker) is painted by the browser's own UA stylesheet keyed off the CSS `color-scheme`
|
|
102
|
+
* property, entirely separate from Chakra/React theming — no component style or palette swap
|
|
103
|
+
* above can reach it. Without this, that chrome always renders light, even on an otherwise dark
|
|
104
|
+
* page. Scoped to this provider (not a global stylesheet) so `withTheme` consumers — deliberately
|
|
105
|
+
* light-only, see the module doc's "Key rules" — are untouched.
|
|
106
|
+
*/
|
|
107
|
+
(0, react_1.useEffect)(() => {
|
|
108
|
+
document.documentElement.style.colorScheme = resolvedMode;
|
|
109
|
+
}, [resolvedMode]);
|
|
83
110
|
const setMode = (0, react_1.useCallback)((next) => setModeState(next), []);
|
|
84
111
|
const setBrand = (0, react_1.useCallback)((next) => setBrandState(next), []);
|
|
85
112
|
// From "system", flip to the opposite of what the OS currently gives, so a click always
|
|
86
113
|
// visibly changes the UI.
|
|
87
114
|
const toggle = (0, react_1.useCallback)(() => setModeState(resolvedMode === "dark" ? "light" : "dark"), [resolvedMode]);
|
|
88
115
|
const value = (0, react_1.useMemo)(() => ({ mode, resolvedMode, setMode, toggle, brand, setBrand }), [mode, resolvedMode, setMode, toggle, brand, setBrand]);
|
|
89
|
-
|
|
116
|
+
const resolvedTheme = (0, react_1.useMemo)(() => {
|
|
117
|
+
const base = index_1.brandThemes[brand][resolvedMode];
|
|
118
|
+
return themeOverrides
|
|
119
|
+
? (0, react_2.extendTheme)(base, themeOverrides)
|
|
120
|
+
: base;
|
|
121
|
+
}, [brand, resolvedMode, themeOverrides]);
|
|
122
|
+
return ((0, jsx_runtime_1.jsx)(exports.ThemeModeContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(react_2.ChakraProvider, { theme: resolvedTheme, colorModeManager: forcedLightColorModeManager, children: (0, jsx_runtime_1.jsx)(Toaster_1.default, { children: children }) }) }));
|
|
90
123
|
};
|
|
91
124
|
exports.PixelizeThemeProvider = PixelizeThemeProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeSwitcher.d.ts","sourceRoot":"","sources":["../../../src/Theme/provider/ThemeSwitcher.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeSwitcher.d.ts","sourceRoot":"","sources":["../../../src/Theme/provider/ThemeSwitcher.tsx"],"names":[],"mappings":"AAqBA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAkSF,eAAO,MAAM,aAAa,GAAI,8DAK3B,kBAAkB,4CAuBpB,CAAC"}
|
|
@@ -19,13 +19,24 @@ const SIZES = {
|
|
|
19
19
|
lg: { control: "lg", icon: 18 },
|
|
20
20
|
};
|
|
21
21
|
const toBrandLabel = (brand) => brand.charAt(0).toUpperCase() + brand.slice(1);
|
|
22
|
+
/**
|
|
23
|
+
* Same swatch each brand's own theme carries at `colors.primary[500]` (the
|
|
24
|
+
* anchor a filled button reads) — resolved per brand from its OWN palette so
|
|
25
|
+
* the dot always matches what selecting that brand actually looks like,
|
|
26
|
+
* regardless of which brand/mode is currently active.
|
|
27
|
+
*/
|
|
28
|
+
const brandSwatchColor = (brand) => {
|
|
29
|
+
var _a, _b, _c, _d, _e;
|
|
30
|
+
return (_e = (_d = (_c = (_b = (_a = index_1.brandThemes[brand]) === null || _a === void 0 ? void 0 : _a.light) === null || _b === void 0 ? void 0 : _b.colors) === null || _c === void 0 ? void 0 : _c.primary) === null || _d === void 0 ? void 0 : _d[500]) !== null && _e !== void 0 ? _e : "gray.400";
|
|
31
|
+
};
|
|
32
|
+
const BrandSwatch = ({ brand }) => ((0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", display: "inline-block", w: "0.625rem", h: "0.625rem", borderRadius: "full", bg: brandSwatchColor(brand), border: "1px solid", borderColor: "whiteAlpha.300", flexShrink: 0 }));
|
|
22
33
|
/**
|
|
23
34
|
* Palette values already differ per color mode (`brandThemes[brand].light|dark`), so tokens
|
|
24
35
|
* are read straight from the active theme — no `useColorModeValue` pairing needed here.
|
|
25
36
|
* Fallbacks are Chakra token names, never literal colors, for themes without a brand palette.
|
|
26
37
|
*/
|
|
27
38
|
const useSwitcherColors = () => {
|
|
28
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0
|
|
39
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
29
40
|
const colors = (0, useCustomTheme_1.useCustomTheme)().colors;
|
|
30
41
|
return {
|
|
31
42
|
trackBg: (_d = (_b = (_a = colors === null || colors === void 0 ? void 0 : colors.backgroundColor) === null || _a === void 0 ? void 0 : _a.secondary) !== null && _b !== void 0 ? _b : (_c = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _c === void 0 ? void 0 : _c[100]) !== null && _d !== void 0 ? _d : "gray.100",
|
|
@@ -34,19 +45,20 @@ const useSwitcherColors = () => {
|
|
|
34
45
|
mutedColor: (_q = (_o = (_m = colors === null || colors === void 0 ? void 0 : colors.text) === null || _m === void 0 ? void 0 : _m[600]) !== null && _o !== void 0 ? _o : (_p = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _p === void 0 ? void 0 : _p[600]) !== null && _q !== void 0 ? _q : "gray.600",
|
|
35
46
|
hoverBg: (_s = (_r = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _r === void 0 ? void 0 : _r[100]) !== null && _s !== void 0 ? _s : "gray.100",
|
|
36
47
|
borderColor: (_w = (_u = (_t = colors === null || colors === void 0 ? void 0 : colors.border) === null || _t === void 0 ? void 0 : _t[200]) !== null && _u !== void 0 ? _u : (_v = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _v === void 0 ? void 0 : _v[200]) !== null && _w !== void 0 ? _w : "gray.200",
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
// `--menu-bg` (and its hover/focus/active states) is now fixed centrally in the theme's
|
|
49
|
+
// Menu component style (Theme/chakra/Menu.styles.ts) — every MenuList gets it from there.
|
|
50
|
+
// Re-deriving it here too and pushing it back via `sx` on every render caused a redundant
|
|
51
|
+
// Emotion style recompute per render, which showed up as flicker while hovering/scrolling
|
|
52
|
+
// this list. Keep menuColor (Menu.styles.ts doesn't set list `color` per this component's
|
|
53
|
+
// needs) but stop duplicating menuBg.
|
|
54
|
+
menuColor: (_0 = (_y = (_x = colors === null || colors === void 0 ? void 0 : colors.text) === null || _x === void 0 ? void 0 : _x[900]) !== null && _y !== void 0 ? _y : (_z = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _z === void 0 ? void 0 : _z[900]) !== null && _0 !== void 0 ? _0 : "gray.900",
|
|
43
55
|
};
|
|
44
56
|
};
|
|
45
57
|
const BrandMenu = ({ size }) => {
|
|
46
58
|
const { brand, setBrand } = (0, useThemeMode_1.useThemeMode)();
|
|
47
|
-
const { mutedColor,
|
|
59
|
+
const { mutedColor, menuColor } = useSwitcherColors();
|
|
48
60
|
const brands = Object.keys(index_1.brandThemes);
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)(react_2.Menu, { children: [(0, jsx_runtime_1.jsx)(react_2.MenuButton, { as: react_2.Button, size: SIZES[size].control, variant: "ghost", color: mutedColor, borderRadius: "full", fontWeight: 500, "aria-label": `Brand theme, current ${toBrandLabel(brand)}`, _focusVisible: { boxShadow: "outline" }, children:
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Menu, { children: [(0, jsx_runtime_1.jsx)(react_2.MenuButton, { as: react_2.Button, size: SIZES[size].control, variant: "ghost", color: mutedColor, borderRadius: "full", fontWeight: 500, "aria-label": `Brand theme, current ${toBrandLabel(brand)}`, _focusVisible: { boxShadow: "outline" }, children: (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(BrandSwatch, { brand: brand }), (0, jsx_runtime_1.jsx)(react_2.Text, { as: "span", children: toBrandLabel(brand) })] }) }), (0, jsx_runtime_1.jsx)(react_2.MenuList, { minW: "9rem", color: menuColor, children: (0, jsx_runtime_1.jsx)(react_2.MenuOptionGroup, { title: "Brand", type: "radio", value: brand, onChange: (value) => setBrand(value), children: brands.map((option) => ((0, jsx_runtime_1.jsx)(react_2.MenuItemOption, { value: option, children: (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(BrandSwatch, { brand: option }), (0, jsx_runtime_1.jsx)(react_2.Text, { as: "span", children: toBrandLabel(option) })] }) }, option))) }) })] }));
|
|
50
62
|
};
|
|
51
63
|
const IconVariant = ({ size, label, }) => {
|
|
52
64
|
const { resolvedMode, toggle } = (0, useThemeMode_1.useThemeMode)();
|
|
@@ -82,10 +94,10 @@ const SegmentedVariant = ({ size, label, showBrandPicker, }) => {
|
|
|
82
94
|
const MenuVariant = ({ size, label, showBrandPicker, }) => {
|
|
83
95
|
var _a;
|
|
84
96
|
const { mode, brand, setMode, setBrand } = (0, useThemeMode_1.useThemeMode)();
|
|
85
|
-
const { mutedColor, hoverBg,
|
|
97
|
+
const { mutedColor, hoverBg, menuColor } = useSwitcherColors();
|
|
86
98
|
const active = (_a = MODE_OPTIONS.find((option) => option.value === mode)) !== null && _a !== void 0 ? _a : MODE_OPTIONS[0];
|
|
87
99
|
const brands = Object.keys(index_1.brandThemes);
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)(react_2.Menu, { children: [(0, jsx_runtime_1.jsx)(react_2.MenuButton, { as: react_2.IconButton, "aria-label": label !== null && label !== void 0 ? label : `Color mode, current ${active.label}`, icon: (0, jsx_runtime_1.jsx)(active.Icon, { size: SIZES[size].icon, "aria-hidden": true }), size: SIZES[size].control, variant: "ghost", color: mutedColor, borderRadius: "full", _hover: { bg: hoverBg }, _focusVisible: { boxShadow: "outline" } }), (0, jsx_runtime_1.jsxs)(react_2.MenuList, { minW: "10rem",
|
|
100
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Menu, { children: [(0, jsx_runtime_1.jsx)(react_2.MenuButton, { as: react_2.IconButton, "aria-label": label !== null && label !== void 0 ? label : `Color mode, current ${active.label}`, icon: (0, jsx_runtime_1.jsx)(active.Icon, { size: SIZES[size].icon, "aria-hidden": true }), size: SIZES[size].control, variant: "ghost", color: mutedColor, borderRadius: "full", _hover: { bg: hoverBg }, _focusVisible: { boxShadow: "outline" } }), (0, jsx_runtime_1.jsxs)(react_2.MenuList, { minW: "10rem", color: menuColor, children: [(0, jsx_runtime_1.jsx)(react_2.MenuOptionGroup, { title: "Appearance", type: "radio", value: mode, onChange: (value) => setMode(value), children: MODE_OPTIONS.map(({ value, label: optionLabel, Icon }) => ((0, jsx_runtime_1.jsx)(react_2.MenuItemOption, { value: value, children: (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(Icon, { size: SIZES[size].icon, "aria-hidden": true }), (0, jsx_runtime_1.jsx)(react_2.Text, { as: "span", children: optionLabel })] }) }, value))) }), showBrandPicker && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_2.MenuDivider, {}), (0, jsx_runtime_1.jsx)(react_2.MenuOptionGroup, { title: "Brand", type: "radio", value: brand, onChange: (value) => setBrand(value), children: brands.map((option) => ((0, jsx_runtime_1.jsx)(react_2.MenuItemOption, { value: option, children: (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(BrandSwatch, { brand: option }), (0, jsx_runtime_1.jsx)(react_2.Text, { as: "span", children: toBrandLabel(option) })] }) }, option))) })] }))] })] }));
|
|
89
101
|
};
|
|
90
102
|
const ThemeSwitcher = ({ variant = "icon", showBrandPicker = false, size = "md", "aria-label": ariaLabel, }) => {
|
|
91
103
|
if (variant === "segmented") {
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { RadioButton, RadioButtonGroup } from "./Components/RadioButton/RadioBut
|
|
|
33
33
|
import Reorder from "./Components/Reorder/Reorder";
|
|
34
34
|
import Search from "./Components/Search/Search";
|
|
35
35
|
import Select from "./Components/Select/Select";
|
|
36
|
+
import SelectV2 from "./Components/SelectV2/SelectV2";
|
|
36
37
|
import SearchSelect from "./Components/SearchSelect/SearchSelect";
|
|
37
38
|
import SelectSearch from "./Components/SelectSearch/SelectSearch";
|
|
38
39
|
import SideBar from "./Components/SideBar/SideBar";
|
|
@@ -82,7 +83,7 @@ import RolesPermission from "./Components/RolesPermission/RolesPermission";
|
|
|
82
83
|
import CustomModulesTable from "./Components/CustomModulesTable/CustomModulesTable";
|
|
83
84
|
import SignInActivityTable from "./Components/SignInActivityTable/SignInActivityTable";
|
|
84
85
|
import OrganizationDetails from "./Components/OrganizationDetails/OrganizationDetails";
|
|
85
|
-
export { Accordian, AlertDialog, ApexBarChart, ApexPieChart, ApexPolarChart, ApexLineChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, ContactForm, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, EmptyState, WorkspaceWindow, WorkspaceTray, WorkspaceTrayPreview, FieldSelectModal, FilePreview, FilePreviewTrigger, FileUpload, FileUploader, FilterSidebar, FormWrapper, LazyWrapper, MoreItems, PdfViewer, ScrollToTop, CopyButton, StageProgress, StageItem, OrgSwitcher, UpgradeButton, UserDetails, RolesPermission, CustomModulesTable, SignInActivityTable, OrganizationDetails, Header, HeaderActions, InputTextArea, InputSwitch, KanbanBoard, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, Notification, NoteTextArea, MultiSelect, NumberInput, PaymentCard, PhoneNumberInput, PinInput, ProductCard, ProductDetails, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Reorder, Search, Select, SearchSelect, SelectSearch, SideBar, Slider, Skeletons, Switch, Table, TableToggle, Tag, TextInput, Timeline, Toaster, ToolTip, OverflowToolTip, useToaster, VerifyEmailOtp, useSidebarPrefs, useIsTruncated, useCustomTheme, ThemesList, debounce, };
|
|
86
|
+
export { Accordian, AlertDialog, ApexBarChart, ApexPieChart, ApexPolarChart, ApexLineChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, ContactForm, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, EmptyState, WorkspaceWindow, WorkspaceTray, WorkspaceTrayPreview, FieldSelectModal, FilePreview, FilePreviewTrigger, FileUpload, FileUploader, FilterSidebar, FormWrapper, LazyWrapper, MoreItems, PdfViewer, ScrollToTop, CopyButton, StageProgress, StageItem, OrgSwitcher, UpgradeButton, UserDetails, RolesPermission, CustomModulesTable, SignInActivityTable, OrganizationDetails, Header, HeaderActions, InputTextArea, InputSwitch, KanbanBoard, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, Notification, NoteTextArea, MultiSelect, NumberInput, PaymentCard, PhoneNumberInput, PinInput, ProductCard, ProductDetails, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Reorder, Search, Select, SelectV2, SearchSelect, SelectSearch, SideBar, Slider, Skeletons, Switch, Table, TableToggle, Tag, TextInput, Timeline, Toaster, ToolTip, OverflowToolTip, useToaster, VerifyEmailOtp, useSidebarPrefs, useIsTruncated, useCustomTheme, ThemesList, debounce, };
|
|
86
87
|
export default withTheme;
|
|
87
88
|
export type { UserDetailsProps, UserDetailsLabels, UserListItem, SelectedUserDetail, UserDetailRow, RoleOption, AddUserFormValues, ChangeRoleSubmitPayload, } from "./Components/UserDetails/UserDetailsProps";
|
|
88
89
|
export type { WorkspaceWindowProps, WorkspaceWindowState, WorkspaceTrayProps, WorkspaceTrayItem, WorkspaceTrayPreviewProps, } from "./Components/WorkspaceWindow/WorkspaceWindowProps";
|
|
@@ -101,4 +102,5 @@ export type { ColorMode, ResolvedColorMode, ThemeName, PaletteProps, ColorScale,
|
|
|
101
102
|
export { isDarkCanvas, onFilled, onGradient, accentTextOnCanvas, pickAccentText, AA_NORMAL_TEXT, DARK_CANVAS_LUMINANCE, } from "./Theme/tokens/builders/accentText";
|
|
102
103
|
export { hexToRgb, hexToRgba, compositeOver, rgbToHex, rgbToHsl, hslToRgb, hexToHsl, hslToHex, withLightness, mix, relativeLuminance, contrastRatio, } from "./Theme/tokens/builders/color";
|
|
103
104
|
export type { Rgb, Hsl } from "./Theme/tokens/builders/color";
|
|
105
|
+
export type { SelectV2Props, SelectV2Size, OptionProp as SelectV2Option } from "./Components/SelectV2/SelectV2Props";
|
|
104
106
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAC7E,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAC7E,OAAO,cAAc,MAAM,yDAAyD,CAAC;AACrF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,OAAO,MAAM,EAAE,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,UAAU,MAAM,oCAAoC,CA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__importDefault) || function (mod) {
|
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
exports.Loading = exports.KanbanBoard = exports.InputSwitch = exports.InputTextArea = exports.HeaderActions = exports.Header = exports.OrganizationDetails = exports.SignInActivityTable = exports.CustomModulesTable = exports.RolesPermission = exports.UserDetails = exports.UpgradeButton = exports.OrgSwitcher = exports.StageItem = exports.StageProgress = exports.CopyButton = exports.ScrollToTop = exports.PdfViewer = exports.MoreItems = exports.LazyWrapper = exports.FormWrapper = exports.FilterSidebar = exports.FileUploader = exports.FileUpload = exports.FilePreviewTrigger = exports.FilePreview = exports.FieldSelectModal = exports.WorkspaceTrayPreview = exports.WorkspaceTray = exports.WorkspaceWindow = exports.EmptyState = exports.Editor = exports.Dropdown = exports.DrawerFooter = exports.DrawerBody = exports.DrawerHeader = exports.Drawer = exports.DatePicker = exports.ContactForm = exports.Checkbox = exports.Card = exports.ButtonGroupIcon = exports.Button = exports.Breadcrumbs = exports.ApexLineChart = exports.ApexPolarChart = exports.ApexPieChart = exports.ApexBarChart = exports.AlertDialog = exports.Accordian = void 0;
|
|
41
|
-
exports.
|
|
42
|
-
exports.contrastRatio = exports.relativeLuminance = exports.mix = exports.withLightness = exports.hslToHex = exports.hexToHsl = exports.hslToRgb = exports.rgbToHsl = exports.rgbToHex = exports.compositeOver = exports.hexToRgba = exports.hexToRgb = exports.DARK_CANVAS_LUMINANCE = exports.AA_NORMAL_TEXT = exports.pickAccentText = exports.accentTextOnCanvas = exports.onGradient = exports.onFilled = exports.isDarkCanvas = exports.buildDarkPalette = exports.themeNames = exports.palettes = exports.darkPalettes = exports.lightPalettes = void 0;
|
|
41
|
+
exports.ThemeSwitcher = exports.useThemeMode = exports.PixelizeThemeProvider = exports.debounce = exports.ThemesList = exports.useCustomTheme = exports.useIsTruncated = exports.useSidebarPrefs = exports.VerifyEmailOtp = exports.useToaster = exports.OverflowToolTip = exports.ToolTip = exports.Toaster = exports.Timeline = exports.TextInput = exports.Tag = exports.TableToggle = exports.Table = exports.Switch = exports.Skeletons = exports.Slider = exports.SideBar = exports.SelectSearch = exports.SearchSelect = exports.SelectV2 = exports.Select = exports.Search = exports.Reorder = exports.RadioButtonGroup = exports.RadioButton = exports.ProgressBar = exports.ProfilePhotoViewer = exports.ProfileCardFooter = exports.ProfileCardBody = exports.ProfileCardHeader = exports.ProfileCard = exports.ProductDetails = exports.ProductCard = exports.PinInput = exports.PhoneNumberInput = exports.PaymentCard = exports.NumberInput = exports.MultiSelect = exports.NoteTextArea = exports.Notification = exports.NavigationBar = exports.ModalFooter = exports.ModalBody = exports.ModalHeader = exports.Modal = void 0;
|
|
42
|
+
exports.contrastRatio = exports.relativeLuminance = exports.mix = exports.withLightness = exports.hslToHex = exports.hexToHsl = exports.hslToRgb = exports.rgbToHsl = exports.rgbToHex = exports.compositeOver = exports.hexToRgba = exports.hexToRgb = exports.DARK_CANVAS_LUMINANCE = exports.AA_NORMAL_TEXT = exports.pickAccentText = exports.accentTextOnCanvas = exports.onGradient = exports.onFilled = exports.isDarkCanvas = exports.buildDarkPalette = exports.themeNames = exports.palettes = exports.darkPalettes = exports.lightPalettes = exports.brandThemes = void 0;
|
|
43
43
|
const Accordion_1 = __importDefault(require("./Components/Accordion/Accordion"));
|
|
44
44
|
exports.Accordian = Accordion_1.default;
|
|
45
45
|
const AlertDialog_1 = __importDefault(require("./Components/AlertDialog/AlertDialog"));
|
|
@@ -121,6 +121,8 @@ const Search_1 = __importDefault(require("./Components/Search/Search"));
|
|
|
121
121
|
exports.Search = Search_1.default;
|
|
122
122
|
const Select_1 = __importDefault(require("./Components/Select/Select"));
|
|
123
123
|
exports.Select = Select_1.default;
|
|
124
|
+
const SelectV2_1 = __importDefault(require("./Components/SelectV2/SelectV2"));
|
|
125
|
+
exports.SelectV2 = SelectV2_1.default;
|
|
124
126
|
const SearchSelect_1 = __importDefault(require("./Components/SearchSelect/SearchSelect"));
|
|
125
127
|
exports.SearchSelect = SearchSelect_1.default;
|
|
126
128
|
const SelectSearch_1 = __importDefault(require("./Components/SelectSearch/SelectSearch"));
|