pixelize-design-library 2.3.25 → 2.3.26

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 (189) hide show
  1. package/dist/Components/OrganizationDetails/OrganizationDetails.d.ts.map +1 -1
  2. package/dist/Components/OrganizationDetails/OrganizationDetails.js +4 -3
  3. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts +5 -0
  4. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/Assets/defaultLogo.tsx +0 -30
  7. package/dist/Components/Accordion/accordionColors.d.ts +0 -6
  8. package/dist/Components/Accordion/accordionColors.d.ts.map +0 -1
  9. package/dist/Components/Accordion/accordionColors.js +0 -20
  10. package/dist/Components/Editor/joditThemeVars.d.ts +0 -21
  11. package/dist/Components/Editor/joditThemeVars.d.ts.map +0 -1
  12. package/dist/Components/Editor/joditThemeVars.js +0 -70
  13. package/dist/Components/FilterSidebar/filterHoverStyle.d.ts +0 -12
  14. package/dist/Components/FilterSidebar/filterHoverStyle.d.ts.map +0 -1
  15. package/dist/Components/FilterSidebar/filterHoverStyle.js +0 -14
  16. package/dist/Components/SelectV2/SelectV2.d.ts +0 -3
  17. package/dist/Components/SelectV2/SelectV2.d.ts.map +0 -1
  18. package/dist/Components/SelectV2/SelectV2.js +0 -185
  19. package/dist/Components/SelectV2/SelectV2Props.d.ts +0 -67
  20. package/dist/Components/SelectV2/SelectV2Props.d.ts.map +0 -1
  21. package/dist/Components/SelectV2/SelectV2Props.js +0 -2
  22. package/dist/Components/SideBar/sidebarAccentColors.d.ts +0 -21
  23. package/dist/Components/SideBar/sidebarAccentColors.d.ts.map +0 -1
  24. package/dist/Components/SideBar/sidebarAccentColors.js +0 -36
  25. package/dist/Components/Table/components/tableRowHoverStyle.d.ts +0 -13
  26. package/dist/Components/Table/components/tableRowHoverStyle.d.ts.map +0 -1
  27. package/dist/Components/Table/components/tableRowHoverStyle.js +0 -26
  28. package/dist/Theme/chakra/Avatar.styles.d.ts +0 -33
  29. package/dist/Theme/chakra/Avatar.styles.d.ts.map +0 -1
  30. package/dist/Theme/chakra/Avatar.styles.js +0 -28
  31. package/dist/Theme/chakra/Drawer.styles.d.ts +0 -32
  32. package/dist/Theme/chakra/Drawer.styles.d.ts.map +0 -1
  33. package/dist/Theme/chakra/Drawer.styles.js +0 -26
  34. package/dist/Theme/chakra/Menu.styles.d.ts +0 -70
  35. package/dist/Theme/chakra/Menu.styles.d.ts.map +0 -1
  36. package/dist/Theme/chakra/Menu.styles.js +0 -50
  37. package/dist/Theme/chakra/Modal.styles.d.ts +0 -32
  38. package/dist/Theme/chakra/Modal.styles.d.ts.map +0 -1
  39. package/dist/Theme/chakra/Modal.styles.js +0 -26
  40. package/dist/Theme/chakra/Popover.styles.d.ts +0 -37
  41. package/dist/Theme/chakra/Popover.styles.d.ts.map +0 -1
  42. package/dist/Theme/chakra/Popover.styles.js +0 -30
  43. package/dist/Theme/chakra/Slider.styles.d.ts +0 -31
  44. package/dist/Theme/chakra/Slider.styles.d.ts.map +0 -1
  45. package/dist/Theme/chakra/Slider.styles.js +0 -25
  46. package/dist/Theme/chakra/Switch.styles.d.ts +0 -31
  47. package/dist/Theme/chakra/Switch.styles.d.ts.map +0 -1
  48. package/dist/Theme/chakra/Switch.styles.js +0 -24
  49. package/dist/Theme/chakra/Tabs.styles.d.ts +0 -43
  50. package/dist/Theme/chakra/Tabs.styles.d.ts.map +0 -1
  51. package/dist/Theme/chakra/Tabs.styles.js +0 -41
  52. package/dist/Theme/chakra/common.web.d.ts +0 -171
  53. package/dist/Theme/chakra/common.web.d.ts.map +0 -1
  54. package/dist/Theme/chakra/common.web.js +0 -21
  55. package/dist/Theme/chakra/componentStyles.d.ts +0 -240
  56. package/dist/Theme/chakra/componentStyles.d.ts.map +0 -1
  57. package/dist/Theme/chakra/componentStyles.js +0 -150
  58. package/dist/Theme/chakra/createBrandTheme.d.ts +0 -18
  59. package/dist/Theme/chakra/createBrandTheme.d.ts.map +0 -1
  60. package/dist/Theme/chakra/createBrandTheme.js +0 -78
  61. package/dist/Theme/chakra/fonts.web.d.ts +0 -42
  62. package/dist/Theme/chakra/fonts.web.d.ts.map +0 -1
  63. package/dist/Theme/chakra/fonts.web.js +0 -15
  64. package/dist/Theme/provider/PixelizeThemeProvider.d.ts +0 -46
  65. package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +0 -1
  66. package/dist/Theme/provider/PixelizeThemeProvider.js +0 -124
  67. package/dist/Theme/provider/ThemeSwitcher.d.ts +0 -8
  68. package/dist/Theme/provider/ThemeSwitcher.d.ts.map +0 -1
  69. package/dist/Theme/provider/ThemeSwitcher.js +0 -111
  70. package/dist/Theme/provider/colorModeStorage.d.ts +0 -10
  71. package/dist/Theme/provider/colorModeStorage.d.ts.map +0 -1
  72. package/dist/Theme/provider/colorModeStorage.js +0 -106
  73. package/dist/Theme/provider/index.d.ts +0 -6
  74. package/dist/Theme/provider/index.d.ts.map +0 -1
  75. package/dist/Theme/provider/index.js +0 -9
  76. package/dist/Theme/provider/useThemeMode.d.ts +0 -3
  77. package/dist/Theme/provider/useThemeMode.d.ts.map +0 -1
  78. package/dist/Theme/provider/useThemeMode.js +0 -13
  79. package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts +0 -7
  80. package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts.map +0 -1
  81. package/dist/Theme/tokens/brands/emerald/palette.dark.js +0 -13
  82. package/dist/Theme/tokens/brands/emerald/palette.light.d.ts +0 -375
  83. package/dist/Theme/tokens/brands/emerald/palette.light.d.ts.map +0 -1
  84. package/dist/Theme/tokens/brands/emerald/palette.light.js +0 -135
  85. package/dist/Theme/tokens/brands/index.d.ts +0 -28
  86. package/dist/Theme/tokens/brands/index.d.ts.map +0 -1
  87. package/dist/Theme/tokens/brands/index.js +0 -93
  88. package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts +0 -7
  89. package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts.map +0 -1
  90. package/dist/Theme/tokens/brands/lavender/palette.dark.js +0 -13
  91. package/dist/Theme/tokens/brands/lavender/palette.light.d.ts +0 -375
  92. package/dist/Theme/tokens/brands/lavender/palette.light.d.ts.map +0 -1
  93. package/dist/Theme/tokens/brands/lavender/palette.light.js +0 -316
  94. package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts +0 -7
  95. package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts.map +0 -1
  96. package/dist/Theme/tokens/brands/meadow/palette.dark.js +0 -13
  97. package/dist/Theme/tokens/brands/meadow/palette.light.d.ts +0 -375
  98. package/dist/Theme/tokens/brands/meadow/palette.light.d.ts.map +0 -1
  99. package/dist/Theme/tokens/brands/meadow/palette.light.js +0 -133
  100. package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts +0 -7
  101. package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts.map +0 -1
  102. package/dist/Theme/tokens/brands/radiant/palette.dark.js +0 -13
  103. package/dist/Theme/tokens/brands/radiant/palette.light.d.ts +0 -375
  104. package/dist/Theme/tokens/brands/radiant/palette.light.d.ts.map +0 -1
  105. package/dist/Theme/tokens/brands/radiant/palette.light.js +0 -135
  106. package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts +0 -7
  107. package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts.map +0 -1
  108. package/dist/Theme/tokens/brands/rosewood/palette.dark.js +0 -13
  109. package/dist/Theme/tokens/brands/rosewood/palette.light.d.ts +0 -375
  110. package/dist/Theme/tokens/brands/rosewood/palette.light.d.ts.map +0 -1
  111. package/dist/Theme/tokens/brands/rosewood/palette.light.js +0 -139
  112. package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts +0 -7
  113. package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts.map +0 -1
  114. package/dist/Theme/tokens/brands/skyline/palette.dark.js +0 -13
  115. package/dist/Theme/tokens/brands/skyline/palette.light.d.ts +0 -375
  116. package/dist/Theme/tokens/brands/skyline/palette.light.d.ts.map +0 -1
  117. package/dist/Theme/tokens/brands/skyline/palette.light.js +0 -133
  118. package/dist/Theme/tokens/brands/slate/palette.dark.d.ts +0 -7
  119. package/dist/Theme/tokens/brands/slate/palette.dark.d.ts.map +0 -1
  120. package/dist/Theme/tokens/brands/slate/palette.dark.js +0 -13
  121. package/dist/Theme/tokens/brands/slate/palette.light.d.ts +0 -375
  122. package/dist/Theme/tokens/brands/slate/palette.light.d.ts.map +0 -1
  123. package/dist/Theme/tokens/brands/slate/palette.light.js +0 -137
  124. package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts +0 -7
  125. package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts.map +0 -1
  126. package/dist/Theme/tokens/brands/storefront/palette.dark.js +0 -13
  127. package/dist/Theme/tokens/brands/storefront/palette.light.d.ts +0 -375
  128. package/dist/Theme/tokens/brands/storefront/palette.light.d.ts.map +0 -1
  129. package/dist/Theme/tokens/brands/storefront/palette.light.js +0 -127
  130. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts +0 -204
  131. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts.map +0 -1
  132. package/dist/Theme/tokens/brands/zinc/palette.dark.js +0 -204
  133. package/dist/Theme/tokens/brands/zinc/palette.light.d.ts +0 -375
  134. package/dist/Theme/tokens/brands/zinc/palette.light.d.ts.map +0 -1
  135. package/dist/Theme/tokens/brands/zinc/palette.light.js +0 -383
  136. package/dist/Theme/tokens/builders/accentText.d.ts +0 -56
  137. package/dist/Theme/tokens/builders/accentText.d.ts.map +0 -1
  138. package/dist/Theme/tokens/builders/accentText.js +0 -92
  139. package/dist/Theme/tokens/builders/buildBrandTokens.d.ts +0 -16
  140. package/dist/Theme/tokens/builders/buildBrandTokens.d.ts.map +0 -1
  141. package/dist/Theme/tokens/builders/buildBrandTokens.js +0 -33
  142. package/dist/Theme/tokens/builders/buildDarkPalette.d.ts +0 -23
  143. package/dist/Theme/tokens/builders/buildDarkPalette.d.ts.map +0 -1
  144. package/dist/Theme/tokens/builders/buildDarkPalette.js +0 -282
  145. package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts +0 -17
  146. package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts.map +0 -1
  147. package/dist/Theme/tokens/builders/chartColorsFromTheme.js +0 -26
  148. package/dist/Theme/tokens/builders/color.d.ts +0 -50
  149. package/dist/Theme/tokens/builders/color.d.ts.map +0 -1
  150. package/dist/Theme/tokens/builders/color.js +0 -156
  151. package/dist/Theme/tokens/builders/index.d.ts +0 -6
  152. package/dist/Theme/tokens/builders/index.d.ts.map +0 -1
  153. package/dist/Theme/tokens/builders/index.js +0 -21
  154. package/dist/Theme/tokens/index.d.ts +0 -15
  155. package/dist/Theme/tokens/index.d.ts.map +0 -1
  156. package/dist/Theme/tokens/index.js +0 -30
  157. package/dist/Theme/tokens/primitives/breakpoints.d.ts +0 -9
  158. package/dist/Theme/tokens/primitives/breakpoints.d.ts.map +0 -1
  159. package/dist/Theme/tokens/primitives/breakpoints.js +0 -10
  160. package/dist/Theme/tokens/primitives/index.d.ts +0 -10
  161. package/dist/Theme/tokens/primitives/index.d.ts.map +0 -1
  162. package/dist/Theme/tokens/primitives/index.js +0 -27
  163. package/dist/Theme/tokens/primitives/letterSpacings.d.ts +0 -10
  164. package/dist/Theme/tokens/primitives/letterSpacings.d.ts.map +0 -1
  165. package/dist/Theme/tokens/primitives/letterSpacings.js +0 -11
  166. package/dist/Theme/tokens/primitives/lineHeights.d.ts +0 -19
  167. package/dist/Theme/tokens/primitives/lineHeights.d.ts.map +0 -1
  168. package/dist/Theme/tokens/primitives/lineHeights.js +0 -20
  169. package/dist/Theme/tokens/primitives/radii.d.ts +0 -13
  170. package/dist/Theme/tokens/primitives/radii.d.ts.map +0 -1
  171. package/dist/Theme/tokens/primitives/radii.js +0 -14
  172. package/dist/Theme/tokens/primitives/shadows.d.ts +0 -16
  173. package/dist/Theme/tokens/primitives/shadows.d.ts.map +0 -1
  174. package/dist/Theme/tokens/primitives/shadows.js +0 -17
  175. package/dist/Theme/tokens/primitives/sizes.d.ts +0 -63
  176. package/dist/Theme/tokens/primitives/sizes.d.ts.map +0 -1
  177. package/dist/Theme/tokens/primitives/sizes.js +0 -39
  178. package/dist/Theme/tokens/primitives/space.d.ts +0 -34
  179. package/dist/Theme/tokens/primitives/space.d.ts.map +0 -1
  180. package/dist/Theme/tokens/primitives/space.js +0 -35
  181. package/dist/Theme/tokens/primitives/typography.d.ts +0 -73
  182. package/dist/Theme/tokens/primitives/typography.d.ts.map +0 -1
  183. package/dist/Theme/tokens/primitives/typography.js +0 -43
  184. package/dist/Theme/tokens/primitives/zIndices.d.ts +0 -17
  185. package/dist/Theme/tokens/primitives/zIndices.d.ts.map +0 -1
  186. package/dist/Theme/tokens/primitives/zIndices.js +0 -18
  187. package/dist/Theme/tokens/types.d.ts +0 -116
  188. package/dist/Theme/tokens/types.d.ts.map +0 -1
  189. package/dist/Theme/tokens/types.js +0 -8
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useSidebarActiveAccent = exports.getSidebarActiveAccent = void 0;
4
- const react_1 = require("react");
5
- const brands_1 = require("../../Theme/tokens/brands");
6
- const PixelizeThemeProvider_1 = require("../../Theme/provider/PixelizeThemeProvider");
7
- const getSidebarActiveAccent = (colors, brand, isDark) => {
8
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
9
- const fallbackIcon = (_d = (_b = (_a = colors.primary) === null || _a === void 0 ? void 0 : _a[300]) !== null && _b !== void 0 ? _b : (_c = colors.gray) === null || _c === void 0 ? void 0 : _c[300]) !== null && _d !== void 0 ? _d : "#ffffff";
10
- const fallbackLabel = (_h = (_f = (_e = colors.primary) === null || _e === void 0 ? void 0 : _e[100]) !== null && _f !== void 0 ? _f : (_g = colors.gray) === null || _g === void 0 ? void 0 : _g[100]) !== null && _h !== void 0 ? _h : "#ffffff";
11
- if (!isDark)
12
- return { icon: fallbackIcon, label: fallbackLabel };
13
- const lightPrimary = brand ? (_j = brands_1.lightPalettes[brand]) === null || _j === void 0 ? void 0 : _j.primary : undefined;
14
- return {
15
- icon: (_k = lightPrimary === null || lightPrimary === void 0 ? void 0 : lightPrimary[300]) !== null && _k !== void 0 ? _k : fallbackIcon,
16
- label: (_l = lightPrimary === null || lightPrimary === void 0 ? void 0 : lightPrimary[100]) !== null && _l !== void 0 ? _l : fallbackLabel,
17
- };
18
- };
19
- exports.getSidebarActiveAccent = getSidebarActiveAccent;
20
- /**
21
- * `sidebar.background` never inverts across modes (`buildDarkPalette.ts`), but `primary`
22
- * does — so `primary[300]`/`primary[100]` correctly read as a light accent/label against a
23
- * dark canvas in light mode, then invert to near-black in dark mode against that SAME
24
- * permanently-dark canvas. Reusing each rung's own light-mode value in dark mode is the
25
- * exact pairing already proven legible today.
26
- *
27
- * `brand` comes from `PixelizeThemeProvider`'s context, read directly (not via the throwing
28
- * `useThemeMode()`) so a consumer on a plain `ChakraProvider` — dark mode is opt-in per
29
- * CLAUDE.md — degrades to the current-mode value instead of crashing.
30
- */
31
- const useSidebarActiveAccent = (colors, isDark) => {
32
- const themeMode = (0, react_1.useContext)(PixelizeThemeProvider_1.ThemeModeContext);
33
- const brand = themeMode === null || themeMode === void 0 ? void 0 : themeMode.brand;
34
- return (0, react_1.useMemo)(() => (0, exports.getSidebarActiveAccent)(colors, brand, isDark), [colors, brand, isDark]);
35
- };
36
- exports.useSidebarActiveAccent = useSidebarActiveAccent;
@@ -1,13 +0,0 @@
1
- import type { PaletteProps } from "../../../Theme/tokens/types";
2
- /**
3
- * Per-cell hover fill for a table row. `table.hover[300]` (the token built for this) still works
4
- * in light mode — a pale tint against a white canvas — but in dark mode that rung sits within
5
- * ~10 lightness points of the near-black canvas (both compressed near L7-15), so it computes to
6
- * ~1.2:1 contrast: invisible, which is exactly what QA reported. `background[900]` is this
7
- * palette's dark-mode "bright highlight" rung (~9.7-10.7:1 against the canvas, verified
8
- * numerically across brands) — but the row's resting ink (`text[500]`) is tuned for a near-black
9
- * backdrop and goes illegible against a bright one, so hover must also flip `color`, mirroring how
10
- * Jodit's own dark-mode hover rule flips text to its canvas color alongside the brighter fill.
11
- */
12
- export declare const getTableRowHoverStyle: (colors: PaletteProps, isDark: boolean) => Record<string, string>;
13
- //# sourceMappingURL=tableRowHoverStyle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tableRowHoverStyle.d.ts","sourceRoot":"","sources":["../../../../src/Components/Table/components/tableRowHoverStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,YAAY,EAAE,QAAQ,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAUlG,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTableRowHoverStyle = void 0;
4
- /**
5
- * Per-cell hover fill for a table row. `table.hover[300]` (the token built for this) still works
6
- * in light mode — a pale tint against a white canvas — but in dark mode that rung sits within
7
- * ~10 lightness points of the near-black canvas (both compressed near L7-15), so it computes to
8
- * ~1.2:1 contrast: invisible, which is exactly what QA reported. `background[900]` is this
9
- * palette's dark-mode "bright highlight" rung (~9.7-10.7:1 against the canvas, verified
10
- * numerically across brands) — but the row's resting ink (`text[500]`) is tuned for a near-black
11
- * backdrop and goes illegible against a bright one, so hover must also flip `color`, mirroring how
12
- * Jodit's own dark-mode hover rule flips text to its canvas color alongside the brighter fill.
13
- */
14
- const getTableRowHoverStyle = (colors, isDark) => {
15
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
16
- if (isDark) {
17
- return {
18
- backgroundColor: (_b = (_a = colors.background) === null || _a === void 0 ? void 0 : _a[900]) !== null && _b !== void 0 ? _b : (_d = (_c = colors.table) === null || _c === void 0 ? void 0 : _c.hover) === null || _d === void 0 ? void 0 : _d[300],
19
- color: (_e = colors.backgroundColor) === null || _e === void 0 ? void 0 : _e.main,
20
- };
21
- }
22
- return {
23
- backgroundColor: (_h = (_g = (_f = colors.table) === null || _f === void 0 ? void 0 : _f.hover) === null || _g === void 0 ? void 0 : _g[300]) !== null && _h !== void 0 ? _h : (_k = (_j = colors.secondary) === null || _j === void 0 ? void 0 : _j.opacity) === null || _k === void 0 ? void 0 : _k[4],
24
- };
25
- };
26
- exports.getTableRowHoverStyle = getTableRowHoverStyle;
@@ -1,33 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $badgeBorder: {
3
- variable: string;
4
- reference: string;
5
- };
6
- export declare const Avatar: {
7
- baseStyle?: (({ theme }: StyleFunctionProps) => {
8
- badge: {
9
- [$badgeBorder.variable]: any;
10
- };
11
- container: {
12
- [$badgeBorder.variable]: any;
13
- };
14
- }) | undefined;
15
- sizes?: {
16
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
17
- keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
18
- }>;
19
- } | undefined;
20
- variants?: {
21
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
22
- keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
23
- }>;
24
- } | undefined;
25
- defaultProps?: {
26
- size?: string | number | undefined;
27
- variant?: string | number | undefined;
28
- colorScheme?: string | undefined;
29
- } | undefined;
30
- parts: ("container" | "label" | "group" | "badge" | "excessLabel")[];
31
- };
32
- export {};
33
- //# sourceMappingURL=Avatar.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Avatar.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Avatar.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,YAAY;;;CAAgC,CAAC;AAoBnD,eAAO,MAAM,MAAM;6BAZ4B,kBAAkB;;YAI3D,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAQ;;;YAG/B,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAQ;;;;;;;;;;;;;;;;;;;CAOnC,CAAC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Avatar = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.avatarAnatomy.keys);
7
- const $badgeBorder = (0, react_1.cssVar)("avatar-border-color");
8
- /**
9
- * Same bug class as Menu/Modal/Popover: Chakra's own Avatar baseStyle hardcodes the badge/
10
- * container border color to `colors.white` outside `_dark` (it's a cutout ring meant to match
11
- * the surface the avatar sits on), gated behind `_dark`, which this theme-swap app never
12
- * triggers. Every bare `<Avatar>`/`<AvatarBadge>` renders a white ring on the dark canvas.
13
- */
14
- const baseStyle = definePartsStyle(({ theme }) => {
15
- var _a, _b, _c, _d, _e, _f;
16
- const border = (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff";
17
- return {
18
- badge: {
19
- [$badgeBorder.variable]: border,
20
- },
21
- container: {
22
- [$badgeBorder.variable]: border,
23
- },
24
- };
25
- });
26
- exports.Avatar = defineMultiStyleConfig({
27
- baseStyle,
28
- });
@@ -1,32 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $bg: {
3
- variable: string;
4
- reference: string;
5
- };
6
- export declare const Drawer: {
7
- baseStyle?: (({ theme }: StyleFunctionProps) => {
8
- dialog: {
9
- [$bg.variable]: any;
10
- bg: string;
11
- color: any;
12
- };
13
- }) | undefined;
14
- sizes?: {
15
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
16
- keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
17
- }>;
18
- } | undefined;
19
- variants?: {
20
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
21
- keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
22
- }>;
23
- } | undefined;
24
- defaultProps?: {
25
- size?: string | number | undefined;
26
- variant?: string | number | undefined;
27
- colorScheme?: string | undefined;
28
- } | undefined;
29
- parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
30
- };
31
- export {};
32
- //# sourceMappingURL=Drawer.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Drawer.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAsB,CAAC;AAgBhC,eAAO,MAAM,MAAM;6BAR4B,kBAAkB;;YAE7D,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;;CAQlG,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Drawer = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.drawerAnatomy.keys);
7
- const $bg = (0, react_1.cssVar)("drawer-bg");
8
- /**
9
- * Chakra's own Drawer baseStyle hardcodes `--drawer-bg` to "colors.white" (gated behind `_dark`,
10
- * which this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
11
- * `<DrawerContent>` in every consuming app renders a white panel on the dark canvas — the same
12
- * bug class `Menu.styles.ts`/`Modal.styles.ts` already fix.
13
- */
14
- const baseStyle = definePartsStyle(({ theme }) => {
15
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
16
- return ({
17
- dialog: {
18
- [$bg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
19
- bg: $bg.reference,
20
- color: (_j = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.text) === null || _h === void 0 ? void 0 : _h[900]) !== null && _j !== void 0 ? _j : "inherit",
21
- },
22
- });
23
- });
24
- exports.Drawer = defineMultiStyleConfig({
25
- baseStyle,
26
- });
@@ -1,70 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $bg: {
3
- variable: string;
4
- reference: string;
5
- };
6
- /**
7
- * Chakra's own MenuList baseStyle hardcodes `--menu-bg` to "#fff" (gated behind `_dark`, which
8
- * this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
9
- * bare `<MenuList>` in every consuming app renders a white dropdown on the dark canvas. A `bg`
10
- * prop set by a call site only recolors the list's own box, not this var — which `MenuItem`'s
11
- * `_focus`/`_active`/`_expanded` states read — so both must come from the theme, not per call
12
- * site (already duplicated at every fix-it-locally call site: NavigationBar, ButtonGroupIcon,
13
- * ThemeSwitcher's BrandMenu/MenuVariant).
14
- *
15
- * Chakra's own MenuItem baseStyle then RE-hardcodes the same `--menu-bg` var on `_focus`/
16
- * `_active`/`_expanded` (to `colors.gray.100`/`.200`, also `_dark`-gated) — so even with `list`
17
- * fixed above, hovering/focusing an item snaps the var back to a near-white literal. Override
18
- * `item` here too, to a theme-driven hover tint, or every hover state stays white regardless of
19
- * the list fix.
20
- */
21
- declare const $itemBg: {
22
- variable: string;
23
- reference: string;
24
- };
25
- export declare const Menu: {
26
- baseStyle?: (({ theme }: StyleFunctionProps) => {
27
- list: {
28
- [$bg.variable]: any;
29
- bg: string;
30
- color: any;
31
- };
32
- item: {
33
- bg: string;
34
- _focus: {
35
- [$itemBg.variable]: any;
36
- bg: string;
37
- };
38
- _hover: {
39
- [$itemBg.variable]: any;
40
- bg: string;
41
- };
42
- _active: {
43
- [$itemBg.variable]: any;
44
- bg: string;
45
- };
46
- _expanded: {
47
- [$itemBg.variable]: any;
48
- bg: string;
49
- };
50
- };
51
- }) | undefined;
52
- sizes?: {
53
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
54
- keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
55
- }>;
56
- } | undefined;
57
- variants?: {
58
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
59
- keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
60
- }>;
61
- } | undefined;
62
- defaultProps?: {
63
- size?: string | number | undefined;
64
- variant?: string | number | undefined;
65
- colorScheme?: string | undefined;
66
- } | undefined;
67
- parts: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
68
- };
69
- export {};
70
- //# sourceMappingURL=Menu.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Menu.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAoB,CAAC;AAE9B;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,OAAO;;;CAAyB,CAAC;AA4BvC,eAAO,MAAM,IAAI;6BA1B8B,kBAAkB;;YAO3D,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;gBAWtF,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAS;;;;gBAC3B,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAS;;;;gBAC1B,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAU;;;;gBAC1B,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAS;;;;;;;;;;;;;;;;;;;;;CAO5C,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Menu = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.menuAnatomy.keys);
7
- const $bg = (0, react_1.cssVar)("menu-bg");
8
- /**
9
- * Chakra's own MenuList baseStyle hardcodes `--menu-bg` to "#fff" (gated behind `_dark`, which
10
- * this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
11
- * bare `<MenuList>` in every consuming app renders a white dropdown on the dark canvas. A `bg`
12
- * prop set by a call site only recolors the list's own box, not this var — which `MenuItem`'s
13
- * `_focus`/`_active`/`_expanded` states read — so both must come from the theme, not per call
14
- * site (already duplicated at every fix-it-locally call site: NavigationBar, ButtonGroupIcon,
15
- * ThemeSwitcher's BrandMenu/MenuVariant).
16
- *
17
- * Chakra's own MenuItem baseStyle then RE-hardcodes the same `--menu-bg` var on `_focus`/
18
- * `_active`/`_expanded` (to `colors.gray.100`/`.200`, also `_dark`-gated) — so even with `list`
19
- * fixed above, hovering/focusing an item snaps the var back to a near-white literal. Override
20
- * `item` here too, to a theme-driven hover tint, or every hover state stays white regardless of
21
- * the list fix.
22
- */
23
- const $itemBg = (0, react_1.cssVar)("menu-item-bg");
24
- const baseStyle = definePartsStyle(({ theme }) => {
25
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
26
- const hoverBg = (_g = (_d = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.opacity) === null || _c === void 0 ? void 0 : _c[8]) !== null && _d !== void 0 ? _d : (_f = (_e = theme.colors) === null || _e === void 0 ? void 0 : _e.gray) === null || _f === void 0 ? void 0 : _f[100]) !== null && _g !== void 0 ? _g : "#f7fafc";
27
- const activeBg = (_p = (_l = (_k = (_j = (_h = theme.colors) === null || _h === void 0 ? void 0 : _h.primary) === null || _j === void 0 ? void 0 : _j.opacity) === null || _k === void 0 ? void 0 : _k[16]) !== null && _l !== void 0 ? _l : (_o = (_m = theme.colors) === null || _m === void 0 ? void 0 : _m.gray) === null || _o === void 0 ? void 0 : _o[200]) !== null && _p !== void 0 ? _p : "#edf2f7";
28
- return {
29
- list: {
30
- [$bg.variable]: (_v = (_s = (_r = (_q = theme.colors) === null || _q === void 0 ? void 0 : _q.backgroundColor) === null || _r === void 0 ? void 0 : _r.light) !== null && _s !== void 0 ? _s : (_u = (_t = theme.colors) === null || _t === void 0 ? void 0 : _t.background) === null || _u === void 0 ? void 0 : _u[50]) !== null && _v !== void 0 ? _v : "#fff",
31
- bg: $bg.reference,
32
- color: (_y = (_x = (_w = theme.colors) === null || _w === void 0 ? void 0 : _w.text) === null || _x === void 0 ? void 0 : _x[900]) !== null && _y !== void 0 ? _y : "inherit",
33
- },
34
- // Own CSS var (`--menu-item-bg`), NOT the list's `--menu-bg` — Chakra's stock item
35
- // baseStyle rewrites `--menu-bg` itself on hover/focus, so reusing that same var name
36
- // here for the item's resting bg risked the two colliding under the same custom
37
- // property. A dedicated var keeps the item's hover/focus tint fully independent of the
38
- // list's background var.
39
- item: {
40
- bg: "transparent",
41
- _focus: { [$itemBg.variable]: hoverBg, bg: $itemBg.reference },
42
- _hover: { [$itemBg.variable]: hoverBg, bg: $itemBg.reference },
43
- _active: { [$itemBg.variable]: activeBg, bg: $itemBg.reference },
44
- _expanded: { [$itemBg.variable]: hoverBg, bg: $itemBg.reference },
45
- },
46
- };
47
- });
48
- exports.Menu = defineMultiStyleConfig({
49
- baseStyle,
50
- });
@@ -1,32 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $bg: {
3
- variable: string;
4
- reference: string;
5
- };
6
- export declare const Modal: {
7
- baseStyle?: (({ theme }: StyleFunctionProps) => {
8
- dialog: {
9
- [$bg.variable]: any;
10
- bg: string;
11
- color: any;
12
- };
13
- }) | undefined;
14
- sizes?: {
15
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
16
- keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
17
- }>;
18
- } | undefined;
19
- variants?: {
20
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
21
- keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
22
- }>;
23
- } | undefined;
24
- defaultProps?: {
25
- size?: string | number | undefined;
26
- variant?: string | number | undefined;
27
- colorScheme?: string | undefined;
28
- } | undefined;
29
- parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
30
- };
31
- export {};
32
- //# sourceMappingURL=Modal.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Modal.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAqB,CAAC;AAgB/B,eAAO,MAAM,KAAK;6BAR6B,kBAAkB;;YAE7D,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;;CAQlG,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Modal = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.modalAnatomy.keys);
7
- const $bg = (0, react_1.cssVar)("modal-bg");
8
- /**
9
- * Chakra's own Modal baseStyle hardcodes `--modal-bg` to "colors.white" (gated behind `_dark`,
10
- * which this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
11
- * `<ModalContent>` in every consuming app renders a white dialog on the dark canvas — the same
12
- * bug class `Menu.styles.ts` already fixes for dropdowns.
13
- */
14
- const baseStyle = definePartsStyle(({ theme }) => {
15
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
16
- return ({
17
- dialog: {
18
- [$bg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
19
- bg: $bg.reference,
20
- color: (_j = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.text) === null || _h === void 0 ? void 0 : _h[900]) !== null && _j !== void 0 ? _j : "inherit",
21
- },
22
- });
23
- });
24
- exports.Modal = defineMultiStyleConfig({
25
- baseStyle,
26
- });
@@ -1,37 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $popperBg: {
3
- variable: string;
4
- reference: string;
5
- };
6
- declare const $arrowShadowColor: {
7
- variable: string;
8
- reference: string;
9
- };
10
- export declare const Popover: {
11
- baseStyle?: (({ theme }: StyleFunctionProps) => {
12
- content: {
13
- [$popperBg.variable]: any;
14
- [$arrowShadowColor.variable]: any;
15
- bg: string;
16
- color: any;
17
- };
18
- }) | undefined;
19
- sizes?: {
20
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
21
- keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
22
- }>;
23
- } | undefined;
24
- variants?: {
25
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
26
- keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
27
- }>;
28
- } | undefined;
29
- defaultProps?: {
30
- size?: string | number | undefined;
31
- variant?: string | number | undefined;
32
- colorScheme?: string | undefined;
33
- } | undefined;
34
- parts: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
35
- };
36
- export {};
37
- //# sourceMappingURL=Popover.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Popover.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,SAAS;;;CAAsB,CAAC;AACtC,QAAA,MAAM,iBAAiB;;;CAAsC,CAAC;AAmB9D,eAAO,MAAM,OAAO;6BAT2B,kBAAkB;;YAE7D,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAkF;YAEtG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAuE;;;;;;;;;;;;;;;;;;;;;CAOrG,CAAC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Popover = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.popoverAnatomy.keys);
7
- const $popperBg = (0, react_1.cssVar)("popper-bg");
8
- const $arrowShadowColor = (0, react_1.cssVar)("popper-arrow-shadow-color");
9
- /**
10
- * Same bug class as Menu (Wave G): Chakra's own Popover baseStyle hardcodes `--popper-bg` to
11
- * "#fff" and `--popper-arrow-shadow-color` to `colors.gray.200`, both gated behind `_dark`, which
12
- * this theme-swap app never triggers (see Menu.styles.ts / createBrandTheme's colorMode comment).
13
- * Every bare `<PopoverContent>` renders a white card with a light arrow shadow on the dark canvas.
14
- * `--popper-arrow-bg` is left alone — Chakra's own baseStyle already points it at `$popperBg`, so
15
- * fixing `$popperBg` here fixes the arrow fill too.
16
- */
17
- const baseStyle = definePartsStyle(({ theme }) => {
18
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
- return ({
20
- content: {
21
- [$popperBg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
22
- bg: $popperBg.reference,
23
- [$arrowShadowColor.variable]: (_m = (_j = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.border) === null || _h === void 0 ? void 0 : _h[200]) !== null && _j !== void 0 ? _j : (_l = (_k = theme.colors) === null || _k === void 0 ? void 0 : _k.gray) === null || _l === void 0 ? void 0 : _l[200]) !== null && _m !== void 0 ? _m : "#e2e8f0",
24
- color: (_q = (_p = (_o = theme.colors) === null || _o === void 0 ? void 0 : _o.text) === null || _p === void 0 ? void 0 : _p[900]) !== null && _q !== void 0 ? _q : "inherit",
25
- },
26
- });
27
- });
28
- exports.Popover = defineMultiStyleConfig({
29
- baseStyle,
30
- });
@@ -1,31 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $thumbBg: {
3
- variable: string;
4
- reference: string;
5
- };
6
- export declare const Slider: {
7
- baseStyle?: (({ theme }: StyleFunctionProps) => {
8
- thumb: {
9
- [$thumbBg.variable]: any;
10
- bg: string;
11
- };
12
- }) | undefined;
13
- sizes?: {
14
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
15
- keys: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
16
- }>;
17
- } | undefined;
18
- variants?: {
19
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
20
- keys: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
21
- }>;
22
- } | undefined;
23
- defaultProps?: {
24
- size?: string | number | undefined;
25
- variant?: string | number | undefined;
26
- colorScheme?: string | undefined;
27
- } | undefined;
28
- parts: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
29
- };
30
- export {};
31
- //# sourceMappingURL=Slider.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Slider.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,QAAQ;;;CAA4B,CAAC;AAe3C,eAAO,MAAM,MAAM;6BAP4B,kBAAkB;;YAE7D,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;CAOvG,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Slider = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.sliderAnatomy.keys);
7
- const $thumbBg = (0, react_1.cssVar)("slider-thumb-bg");
8
- /**
9
- * Chakra's own Slider thumb baseStyle hardcodes `bg: "white"` with no `_dark` gate at all (unlike
10
- * track/filledTrack, which at least have one Chakra's own colorMode never triggers here) — so
11
- * every bare `<SliderThumb>` renders a literal white circle on the dark canvas regardless of mode,
12
- * same bug class as Menu/Modal but without even the dead `_dark` branch.
13
- */
14
- const baseStyle = definePartsStyle(({ theme }) => {
15
- var _a, _b, _c, _d, _e, _f;
16
- return ({
17
- thumb: {
18
- [$thumbBg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
19
- bg: $thumbBg.reference,
20
- },
21
- });
22
- });
23
- exports.Slider = defineMultiStyleConfig({
24
- baseStyle,
25
- });
@@ -1,31 +0,0 @@
1
- import type { StyleFunctionProps } from "@chakra-ui/react";
2
- declare const $thumbBg: {
3
- variable: string;
4
- reference: string;
5
- };
6
- export declare const Switch: {
7
- baseStyle?: (({ theme }: StyleFunctionProps) => {
8
- thumb: {
9
- [$thumbBg.variable]: any;
10
- bg: string;
11
- };
12
- }) | undefined;
13
- sizes?: {
14
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
15
- keys: ("container" | "label" | "track" | "thumb")[];
16
- }>;
17
- } | undefined;
18
- variants?: {
19
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
20
- keys: ("container" | "label" | "track" | "thumb")[];
21
- }>;
22
- } | undefined;
23
- defaultProps?: {
24
- size?: string | number | undefined;
25
- variant?: string | number | undefined;
26
- colorScheme?: string | undefined;
27
- } | undefined;
28
- parts: ("container" | "label" | "track" | "thumb")[];
29
- };
30
- export {};
31
- //# sourceMappingURL=Switch.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Switch.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,QAAQ;;;CAA4B,CAAC;AAc3C,eAAO,MAAM,MAAM;6BAP4B,kBAAkB;;YAE7D,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;CAOvG,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Switch = void 0;
4
- const react_1 = require("@chakra-ui/react");
5
- const anatomy_1 = require("@chakra-ui/anatomy");
6
- const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.switchAnatomy.keys);
7
- const $thumbBg = (0, react_1.cssVar)("switch-thumb-bg");
8
- /**
9
- * Same bug as Slider's thumb: Chakra's own Switch thumb baseStyle hardcodes `bg: "white"` with no
10
- * `_dark` gate at all, so every bare `<Switch>` renders a literal white knob on the dark canvas
11
- * regardless of mode.
12
- */
13
- const baseStyle = definePartsStyle(({ theme }) => {
14
- var _a, _b, _c, _d, _e, _f;
15
- return ({
16
- thumb: {
17
- [$thumbBg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
18
- bg: $thumbBg.reference,
19
- },
20
- });
21
- });
22
- exports.Switch = defineMultiStyleConfig({
23
- baseStyle,
24
- });