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.
- package/dist/Components/OrganizationDetails/OrganizationDetails.d.ts.map +1 -1
- package/dist/Components/OrganizationDetails/OrganizationDetails.js +4 -3
- package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts +5 -0
- package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/Assets/defaultLogo.tsx +0 -30
- package/dist/Components/Accordion/accordionColors.d.ts +0 -6
- package/dist/Components/Accordion/accordionColors.d.ts.map +0 -1
- package/dist/Components/Accordion/accordionColors.js +0 -20
- package/dist/Components/Editor/joditThemeVars.d.ts +0 -21
- package/dist/Components/Editor/joditThemeVars.d.ts.map +0 -1
- package/dist/Components/Editor/joditThemeVars.js +0 -70
- package/dist/Components/FilterSidebar/filterHoverStyle.d.ts +0 -12
- package/dist/Components/FilterSidebar/filterHoverStyle.d.ts.map +0 -1
- package/dist/Components/FilterSidebar/filterHoverStyle.js +0 -14
- package/dist/Components/SelectV2/SelectV2.d.ts +0 -3
- package/dist/Components/SelectV2/SelectV2.d.ts.map +0 -1
- package/dist/Components/SelectV2/SelectV2.js +0 -185
- package/dist/Components/SelectV2/SelectV2Props.d.ts +0 -67
- package/dist/Components/SelectV2/SelectV2Props.d.ts.map +0 -1
- package/dist/Components/SelectV2/SelectV2Props.js +0 -2
- package/dist/Components/SideBar/sidebarAccentColors.d.ts +0 -21
- package/dist/Components/SideBar/sidebarAccentColors.d.ts.map +0 -1
- package/dist/Components/SideBar/sidebarAccentColors.js +0 -36
- package/dist/Components/Table/components/tableRowHoverStyle.d.ts +0 -13
- package/dist/Components/Table/components/tableRowHoverStyle.d.ts.map +0 -1
- package/dist/Components/Table/components/tableRowHoverStyle.js +0 -26
- package/dist/Theme/chakra/Avatar.styles.d.ts +0 -33
- package/dist/Theme/chakra/Avatar.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Avatar.styles.js +0 -28
- package/dist/Theme/chakra/Drawer.styles.d.ts +0 -32
- package/dist/Theme/chakra/Drawer.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Drawer.styles.js +0 -26
- package/dist/Theme/chakra/Menu.styles.d.ts +0 -70
- package/dist/Theme/chakra/Menu.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Menu.styles.js +0 -50
- package/dist/Theme/chakra/Modal.styles.d.ts +0 -32
- package/dist/Theme/chakra/Modal.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Modal.styles.js +0 -26
- package/dist/Theme/chakra/Popover.styles.d.ts +0 -37
- package/dist/Theme/chakra/Popover.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Popover.styles.js +0 -30
- package/dist/Theme/chakra/Slider.styles.d.ts +0 -31
- package/dist/Theme/chakra/Slider.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Slider.styles.js +0 -25
- package/dist/Theme/chakra/Switch.styles.d.ts +0 -31
- package/dist/Theme/chakra/Switch.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Switch.styles.js +0 -24
- package/dist/Theme/chakra/Tabs.styles.d.ts +0 -43
- package/dist/Theme/chakra/Tabs.styles.d.ts.map +0 -1
- package/dist/Theme/chakra/Tabs.styles.js +0 -41
- package/dist/Theme/chakra/common.web.d.ts +0 -171
- package/dist/Theme/chakra/common.web.d.ts.map +0 -1
- package/dist/Theme/chakra/common.web.js +0 -21
- package/dist/Theme/chakra/componentStyles.d.ts +0 -240
- package/dist/Theme/chakra/componentStyles.d.ts.map +0 -1
- package/dist/Theme/chakra/componentStyles.js +0 -150
- package/dist/Theme/chakra/createBrandTheme.d.ts +0 -18
- package/dist/Theme/chakra/createBrandTheme.d.ts.map +0 -1
- package/dist/Theme/chakra/createBrandTheme.js +0 -78
- package/dist/Theme/chakra/fonts.web.d.ts +0 -42
- package/dist/Theme/chakra/fonts.web.d.ts.map +0 -1
- package/dist/Theme/chakra/fonts.web.js +0 -15
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts +0 -46
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +0 -1
- package/dist/Theme/provider/PixelizeThemeProvider.js +0 -124
- package/dist/Theme/provider/ThemeSwitcher.d.ts +0 -8
- package/dist/Theme/provider/ThemeSwitcher.d.ts.map +0 -1
- package/dist/Theme/provider/ThemeSwitcher.js +0 -111
- package/dist/Theme/provider/colorModeStorage.d.ts +0 -10
- package/dist/Theme/provider/colorModeStorage.d.ts.map +0 -1
- package/dist/Theme/provider/colorModeStorage.js +0 -106
- package/dist/Theme/provider/index.d.ts +0 -6
- package/dist/Theme/provider/index.d.ts.map +0 -1
- package/dist/Theme/provider/index.js +0 -9
- package/dist/Theme/provider/useThemeMode.d.ts +0 -3
- package/dist/Theme/provider/useThemeMode.d.ts.map +0 -1
- package/dist/Theme/provider/useThemeMode.js +0 -13
- package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/emerald/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/emerald/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/emerald/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/emerald/palette.light.js +0 -135
- package/dist/Theme/tokens/brands/index.d.ts +0 -28
- package/dist/Theme/tokens/brands/index.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/index.js +0 -93
- package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/lavender/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/lavender/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/lavender/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/lavender/palette.light.js +0 -316
- package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/meadow/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/meadow/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/meadow/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/meadow/palette.light.js +0 -133
- package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/radiant/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/radiant/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/radiant/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/radiant/palette.light.js +0 -135
- package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/rosewood/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/rosewood/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/rosewood/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/rosewood/palette.light.js +0 -139
- package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/skyline/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/skyline/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/skyline/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/skyline/palette.light.js +0 -133
- package/dist/Theme/tokens/brands/slate/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/slate/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/slate/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/slate/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/slate/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/slate/palette.light.js +0 -137
- package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts +0 -7
- package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/storefront/palette.dark.js +0 -13
- package/dist/Theme/tokens/brands/storefront/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/storefront/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/storefront/palette.light.js +0 -127
- package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts +0 -204
- package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/zinc/palette.dark.js +0 -204
- package/dist/Theme/tokens/brands/zinc/palette.light.d.ts +0 -375
- package/dist/Theme/tokens/brands/zinc/palette.light.d.ts.map +0 -1
- package/dist/Theme/tokens/brands/zinc/palette.light.js +0 -383
- package/dist/Theme/tokens/builders/accentText.d.ts +0 -56
- package/dist/Theme/tokens/builders/accentText.d.ts.map +0 -1
- package/dist/Theme/tokens/builders/accentText.js +0 -92
- package/dist/Theme/tokens/builders/buildBrandTokens.d.ts +0 -16
- package/dist/Theme/tokens/builders/buildBrandTokens.d.ts.map +0 -1
- package/dist/Theme/tokens/builders/buildBrandTokens.js +0 -33
- package/dist/Theme/tokens/builders/buildDarkPalette.d.ts +0 -23
- package/dist/Theme/tokens/builders/buildDarkPalette.d.ts.map +0 -1
- package/dist/Theme/tokens/builders/buildDarkPalette.js +0 -282
- package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts +0 -17
- package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts.map +0 -1
- package/dist/Theme/tokens/builders/chartColorsFromTheme.js +0 -26
- package/dist/Theme/tokens/builders/color.d.ts +0 -50
- package/dist/Theme/tokens/builders/color.d.ts.map +0 -1
- package/dist/Theme/tokens/builders/color.js +0 -156
- package/dist/Theme/tokens/builders/index.d.ts +0 -6
- package/dist/Theme/tokens/builders/index.d.ts.map +0 -1
- package/dist/Theme/tokens/builders/index.js +0 -21
- package/dist/Theme/tokens/index.d.ts +0 -15
- package/dist/Theme/tokens/index.d.ts.map +0 -1
- package/dist/Theme/tokens/index.js +0 -30
- package/dist/Theme/tokens/primitives/breakpoints.d.ts +0 -9
- package/dist/Theme/tokens/primitives/breakpoints.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/breakpoints.js +0 -10
- package/dist/Theme/tokens/primitives/index.d.ts +0 -10
- package/dist/Theme/tokens/primitives/index.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/index.js +0 -27
- package/dist/Theme/tokens/primitives/letterSpacings.d.ts +0 -10
- package/dist/Theme/tokens/primitives/letterSpacings.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/letterSpacings.js +0 -11
- package/dist/Theme/tokens/primitives/lineHeights.d.ts +0 -19
- package/dist/Theme/tokens/primitives/lineHeights.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/lineHeights.js +0 -20
- package/dist/Theme/tokens/primitives/radii.d.ts +0 -13
- package/dist/Theme/tokens/primitives/radii.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/radii.js +0 -14
- package/dist/Theme/tokens/primitives/shadows.d.ts +0 -16
- package/dist/Theme/tokens/primitives/shadows.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/shadows.js +0 -17
- package/dist/Theme/tokens/primitives/sizes.d.ts +0 -63
- package/dist/Theme/tokens/primitives/sizes.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/sizes.js +0 -39
- package/dist/Theme/tokens/primitives/space.d.ts +0 -34
- package/dist/Theme/tokens/primitives/space.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/space.js +0 -35
- package/dist/Theme/tokens/primitives/typography.d.ts +0 -73
- package/dist/Theme/tokens/primitives/typography.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/typography.js +0 -43
- package/dist/Theme/tokens/primitives/zIndices.d.ts +0 -17
- package/dist/Theme/tokens/primitives/zIndices.d.ts.map +0 -1
- package/dist/Theme/tokens/primitives/zIndices.js +0 -18
- package/dist/Theme/tokens/types.d.ts +0 -116
- package/dist/Theme/tokens/types.d.ts.map +0 -1
- package/dist/Theme/tokens/types.js +0 -8
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
-
declare const $bg: {
|
|
3
|
-
variable: string;
|
|
4
|
-
reference: string;
|
|
5
|
-
};
|
|
6
|
-
declare const $border: {
|
|
7
|
-
variable: string;
|
|
8
|
-
reference: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const Tabs: {
|
|
11
|
-
baseStyle?: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
12
|
-
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
13
|
-
}> | undefined;
|
|
14
|
-
sizes?: {
|
|
15
|
-
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
16
|
-
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
17
|
-
}>;
|
|
18
|
-
} | undefined;
|
|
19
|
-
variants?: {
|
|
20
|
-
enclosed: ({ theme }: StyleFunctionProps) => {
|
|
21
|
-
tab: {
|
|
22
|
-
_selected: {
|
|
23
|
-
[$border.variable]: any;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
"enclosed-colored": ({ theme }: StyleFunctionProps) => {
|
|
28
|
-
tab: {
|
|
29
|
-
_selected: {
|
|
30
|
-
[$bg.variable]: any;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
} | undefined;
|
|
35
|
-
defaultProps?: {
|
|
36
|
-
size?: string | number | undefined;
|
|
37
|
-
variant?: "enclosed" | "enclosed-colored" | undefined;
|
|
38
|
-
colorScheme?: string | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
parts: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=Tabs.styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Tabs.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAoB,CAAC;AAC9B,QAAA,MAAM,OAAO;;;CAA8B,CAAC;AAyB5C,eAAO,MAAM,IAAI;;;;;;;;;;8BAhBoC,kBAAkB;;;oBAGjE,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAkF;;;;wCAK9C,kBAAkB;;;oBAGxE,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;CAUpG,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tabs = 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.tabsAnatomy.keys);
|
|
7
|
-
const $bg = (0, react_1.cssVar)("tabs-bg");
|
|
8
|
-
const $border = (0, react_1.cssVar)("tabs-border-color");
|
|
9
|
-
/**
|
|
10
|
-
* Same bug class as Menu/Modal/Popover: Chakra's own Tabs baseStyle hardcodes the selected tab's
|
|
11
|
-
* "cutout" color to `colors.white` outside `_dark` for two variants — `enclosed`'s selected border
|
|
12
|
-
* (meant to match the panel it sits against) and `enclosed-colored`'s selected background — both
|
|
13
|
-
* gated behind `_dark`, which this theme-swap app never triggers. Every selected `enclosed`/
|
|
14
|
-
* `enclosed-colored` tab renders a white seam/fill on the dark canvas.
|
|
15
|
-
*/
|
|
16
|
-
const variantEnclosed = definePartsStyle(({ theme }) => {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f;
|
|
18
|
-
return ({
|
|
19
|
-
tab: {
|
|
20
|
-
_selected: {
|
|
21
|
-
[$border.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
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
const variantEnclosedColored = definePartsStyle(({ theme }) => {
|
|
27
|
-
var _a, _b, _c, _d, _e, _f;
|
|
28
|
-
return ({
|
|
29
|
-
tab: {
|
|
30
|
-
_selected: {
|
|
31
|
-
[$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",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
exports.Tabs = defineMultiStyleConfig({
|
|
37
|
-
variants: {
|
|
38
|
-
enclosed: variantEnclosed,
|
|
39
|
-
"enclosed-colored": variantEnclosedColored,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web (Chakra) assembly of the pure primitives. `config.cssVarPrefix` is a Chakra
|
|
3
|
-
* concern, which is why this assembly lives here and not in `tokens/`.
|
|
4
|
-
*/
|
|
5
|
-
declare const common: {
|
|
6
|
-
lineHeights: {
|
|
7
|
-
normal: string;
|
|
8
|
-
none: number;
|
|
9
|
-
shorter: number;
|
|
10
|
-
short: number;
|
|
11
|
-
base: number;
|
|
12
|
-
tall: number;
|
|
13
|
-
taller: string;
|
|
14
|
-
"3": string;
|
|
15
|
-
"4": string;
|
|
16
|
-
"5": string;
|
|
17
|
-
"6": string;
|
|
18
|
-
"7": string;
|
|
19
|
-
"8": string;
|
|
20
|
-
"9": string;
|
|
21
|
-
"10": string;
|
|
22
|
-
};
|
|
23
|
-
letterSpacings: {
|
|
24
|
-
tighter: string;
|
|
25
|
-
tight: string;
|
|
26
|
-
normal: string;
|
|
27
|
-
wide: string;
|
|
28
|
-
wider: string;
|
|
29
|
-
widest: string;
|
|
30
|
-
};
|
|
31
|
-
space: {
|
|
32
|
-
px: string;
|
|
33
|
-
0: string;
|
|
34
|
-
1: string;
|
|
35
|
-
2: string;
|
|
36
|
-
3: string;
|
|
37
|
-
4: string;
|
|
38
|
-
5: string;
|
|
39
|
-
6: string;
|
|
40
|
-
7: string;
|
|
41
|
-
8: string;
|
|
42
|
-
9: string;
|
|
43
|
-
10: string;
|
|
44
|
-
12: string;
|
|
45
|
-
14: string;
|
|
46
|
-
16: string;
|
|
47
|
-
20: string;
|
|
48
|
-
24: string;
|
|
49
|
-
28: string;
|
|
50
|
-
32: string;
|
|
51
|
-
36: string;
|
|
52
|
-
40: string;
|
|
53
|
-
44: string;
|
|
54
|
-
48: string;
|
|
55
|
-
52: string;
|
|
56
|
-
56: string;
|
|
57
|
-
60: string;
|
|
58
|
-
64: string;
|
|
59
|
-
72: string;
|
|
60
|
-
80: string;
|
|
61
|
-
96: string;
|
|
62
|
-
};
|
|
63
|
-
sizes: {
|
|
64
|
-
full: string;
|
|
65
|
-
screenW: string;
|
|
66
|
-
screenH: string;
|
|
67
|
-
max: string;
|
|
68
|
-
min: string;
|
|
69
|
-
"3xs": string;
|
|
70
|
-
"2xs": string;
|
|
71
|
-
xs: string;
|
|
72
|
-
sm: string;
|
|
73
|
-
md: string;
|
|
74
|
-
lg: string;
|
|
75
|
-
xl: string;
|
|
76
|
-
"2xl": string;
|
|
77
|
-
"3xl": string;
|
|
78
|
-
"4xl": string;
|
|
79
|
-
"5xl": string;
|
|
80
|
-
"6xl": string;
|
|
81
|
-
"7xl": string;
|
|
82
|
-
"8xl": string;
|
|
83
|
-
container: {
|
|
84
|
-
sm: string;
|
|
85
|
-
md: string;
|
|
86
|
-
lg: string;
|
|
87
|
-
xl: string;
|
|
88
|
-
};
|
|
89
|
-
px: string;
|
|
90
|
-
0: string;
|
|
91
|
-
1: string;
|
|
92
|
-
2: string;
|
|
93
|
-
3: string;
|
|
94
|
-
4: string;
|
|
95
|
-
5: string;
|
|
96
|
-
6: string;
|
|
97
|
-
7: string;
|
|
98
|
-
8: string;
|
|
99
|
-
9: string;
|
|
100
|
-
10: string;
|
|
101
|
-
12: string;
|
|
102
|
-
14: string;
|
|
103
|
-
16: string;
|
|
104
|
-
20: string;
|
|
105
|
-
24: string;
|
|
106
|
-
28: string;
|
|
107
|
-
32: string;
|
|
108
|
-
36: string;
|
|
109
|
-
40: string;
|
|
110
|
-
44: string;
|
|
111
|
-
48: string;
|
|
112
|
-
52: string;
|
|
113
|
-
56: string;
|
|
114
|
-
60: string;
|
|
115
|
-
64: string;
|
|
116
|
-
72: string;
|
|
117
|
-
80: string;
|
|
118
|
-
96: string;
|
|
119
|
-
};
|
|
120
|
-
breakpoints: {
|
|
121
|
-
sm: string;
|
|
122
|
-
md: string;
|
|
123
|
-
lg: string;
|
|
124
|
-
xl: string;
|
|
125
|
-
"2xl": string;
|
|
126
|
-
};
|
|
127
|
-
shadows: {
|
|
128
|
-
xs: string;
|
|
129
|
-
sm: string;
|
|
130
|
-
base: string;
|
|
131
|
-
md: string;
|
|
132
|
-
lg: string;
|
|
133
|
-
xl: string;
|
|
134
|
-
"2xl": string;
|
|
135
|
-
outline: string;
|
|
136
|
-
inner: string;
|
|
137
|
-
none: string;
|
|
138
|
-
darkLg: string;
|
|
139
|
-
};
|
|
140
|
-
radii: {
|
|
141
|
-
none: string;
|
|
142
|
-
sm: string;
|
|
143
|
-
base: string;
|
|
144
|
-
md: string;
|
|
145
|
-
lg: string;
|
|
146
|
-
xl: string;
|
|
147
|
-
"2xl": string;
|
|
148
|
-
"3xl": string;
|
|
149
|
-
full: string;
|
|
150
|
-
};
|
|
151
|
-
zIndices: {
|
|
152
|
-
hide: number;
|
|
153
|
-
auto: string;
|
|
154
|
-
base: number;
|
|
155
|
-
docked: number;
|
|
156
|
-
dropdown: number;
|
|
157
|
-
sticky: number;
|
|
158
|
-
banner: number;
|
|
159
|
-
overlay: number;
|
|
160
|
-
modal: number;
|
|
161
|
-
popover: number;
|
|
162
|
-
skipLink: number;
|
|
163
|
-
toast: number;
|
|
164
|
-
tooltip: number;
|
|
165
|
-
};
|
|
166
|
-
config: {
|
|
167
|
-
cssVarPrefix: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
export default common;
|
|
171
|
-
//# sourceMappingURL=common.web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.web.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/common.web.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const primitives_1 = require("../tokens/primitives");
|
|
4
|
-
/**
|
|
5
|
-
* Web (Chakra) assembly of the pure primitives. `config.cssVarPrefix` is a Chakra
|
|
6
|
-
* concern, which is why this assembly lives here and not in `tokens/`.
|
|
7
|
-
*/
|
|
8
|
-
const common = {
|
|
9
|
-
lineHeights: primitives_1.lineHeights,
|
|
10
|
-
letterSpacings: primitives_1.letterSpacings,
|
|
11
|
-
space: primitives_1.space,
|
|
12
|
-
sizes: primitives_1.sizes,
|
|
13
|
-
breakpoints: primitives_1.breakpoints,
|
|
14
|
-
shadows: primitives_1.shadows,
|
|
15
|
-
radii: primitives_1.radii,
|
|
16
|
-
zIndices: primitives_1.zIndices,
|
|
17
|
-
config: {
|
|
18
|
-
cssVarPrefix: "ck",
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
exports.default = common;
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { ComponentStyleConfig, StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
-
export declare const componentStyles: {
|
|
3
|
-
Checkbox: ComponentStyleConfig;
|
|
4
|
-
Input: ComponentStyleConfig;
|
|
5
|
-
Button: ComponentStyleConfig;
|
|
6
|
-
Select: ComponentStyleConfig;
|
|
7
|
-
Tag: import("@chakra-ui/react").ComponentMultiStyleConfig;
|
|
8
|
-
Textarea: ComponentStyleConfig;
|
|
9
|
-
NumberInput: ComponentStyleConfig;
|
|
10
|
-
Badge: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
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;
|
|
239
|
-
};
|
|
240
|
-
//# sourceMappingURL=componentStyles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.componentStyles = void 0;
|
|
4
|
-
const react_1 = require("@chakra-ui/react");
|
|
5
|
-
const Button_styles_1 = require("../../Components/Button/Button.styles");
|
|
6
|
-
const Checkbox_styles_1 = require("../../Components/Checkbox/Checkbox.styles");
|
|
7
|
-
const TextInput_styles_1 = require("../../Components/Input/TextInput.styles");
|
|
8
|
-
const Select_styles_1 = require("../../Components/Select/Select.styles");
|
|
9
|
-
const Tag_styles_1 = require("../../Components/Tag/Tag.styles");
|
|
10
|
-
const InputTextArea_style_1 = require("../../Components/InputTextArea/InputTextArea.style");
|
|
11
|
-
const NumberInput_styles_1 = require("../../Components/NumberInput/NumberInput.styles");
|
|
12
|
-
const accentText_1 = require("../tokens/builders/accentText");
|
|
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");
|
|
22
|
-
// `colorScheme` accepts any Chakra scale, including built-ins we never themed (blackAlpha,
|
|
23
|
-
// whiteAlpha) whose rungs are translucent `rgba(...)` strings, not opaque hex — our contrast
|
|
24
|
-
// math (hexToRgb) throws on those on purpose (see color.ts). Guard so those scales fall back to
|
|
25
|
-
// Chakra's own original fixed rung instead of computing contrast on a color it can't parse.
|
|
26
|
-
const isHexColor = (color) => typeof color === "string" && /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(color);
|
|
27
|
-
// Badge isn't its own component family (no Components/Badge/), so its style config lives here —
|
|
28
|
-
// Chakra's stock `solid` variant hardcodes a white label on a variable fill, same AA gap Tag had.
|
|
29
|
-
const Badge = {
|
|
30
|
-
variants: {
|
|
31
|
-
solid: ({ theme, colorScheme = "gray" }) => {
|
|
32
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
33
|
-
const swatch = (_d = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a[colorScheme]) !== null && _b !== void 0 ? _b : (_c = theme.colors) === null || _c === void 0 ? void 0 : _c.gray) !== null && _d !== void 0 ? _d : {};
|
|
34
|
-
const bg = swatch === null || swatch === void 0 ? void 0 : swatch[500];
|
|
35
|
-
const white = (_f = (_e = theme.colors) === null || _e === void 0 ? void 0 : _e.white) !== null && _f !== void 0 ? _f : "#fff";
|
|
36
|
-
const black = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.black) !== null && _h !== void 0 ? _h : "#000";
|
|
37
|
-
return {
|
|
38
|
-
bg,
|
|
39
|
-
color: isHexColor(bg) ? (0, accentText_1.onFilled)(bg, white, black) : swatch === null || swatch === void 0 ? void 0 : swatch[800],
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
// Chakra's stock `subtle` picks its bg/color pair via `mode()`, keyed to Chakra's own
|
|
43
|
-
// colorMode — which this app never toggles (dark mode swaps the palette object instead), so
|
|
44
|
-
// it always takes the light-mode branch. Applied to our mode-reversed dark scales, that
|
|
45
|
-
// branch's fixed rung pair (100/800) measures 4.06 in dark mode, just under AA.
|
|
46
|
-
subtle: ({ theme, colorScheme = "gray" }) => {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
48
|
-
const swatch = (_d = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a[colorScheme]) !== null && _b !== void 0 ? _b : (_c = theme.colors) === null || _c === void 0 ? void 0 : _c.gray) !== null && _d !== void 0 ? _d : {};
|
|
49
|
-
const bg = (_e = swatch === null || swatch === void 0 ? void 0 : swatch[100]) !== null && _e !== void 0 ? _e : swatch === null || swatch === void 0 ? void 0 : swatch[50];
|
|
50
|
-
if (!isHexColor(bg))
|
|
51
|
-
return { bg, color: swatch === null || swatch === void 0 ? void 0 : swatch[800] };
|
|
52
|
-
// accentTextOnCanvas keeps brand hue by trying this scale's own rungs first, but some
|
|
53
|
-
// narrow-gamut hues (e.g. yellow) don't reach far enough at either end to clear AA against
|
|
54
|
-
// every bg they can land on in dark mode (measured 4.42 for a reversed-yellow badge) — its
|
|
55
|
-
// own doc admits it falls back to "the most extreme rung" rather than guaranteeing AA. Verify
|
|
56
|
-
// the candidate actually clears AA; if not, drop brand hue for the guaranteed white/black ink
|
|
57
|
-
// (onFilled is provably >=4.5 against any bg) rather than ship a near-miss.
|
|
58
|
-
const accent = (0, accentText_1.accentTextOnCanvas)(swatch, bg);
|
|
59
|
-
if ((0, color_1.contrastRatio)(accent, bg) >= 4.5)
|
|
60
|
-
return { bg, color: accent };
|
|
61
|
-
const white = (_g = (_f = theme.colors) === null || _f === void 0 ? void 0 : _f.white) !== null && _g !== void 0 ? _g : "#fff";
|
|
62
|
-
const black = (_j = (_h = theme.colors) === null || _h === void 0 ? void 0 : _h.black) !== null && _j !== void 0 ? _j : "#000";
|
|
63
|
-
return { bg, color: (0, accentText_1.onFilled)(bg, white, black) };
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
defaultProps: {
|
|
67
|
-
variant: "subtle",
|
|
68
|
-
colorScheme: "gray",
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
// Chakra's stock FormErrorMessage hardcodes `colors.red.500` (our own `red[500]`, since
|
|
72
|
-
// `createBrandTheme` sets `theme.colors = palette`) — same AA gap as our own ErrorMessage/
|
|
73
|
-
// ErrorComponent, fixed the same way rather than leaving Chakra's raw usage (e.g. FeedbackForm)
|
|
74
|
-
// unfixed.
|
|
75
|
-
const FormError = {
|
|
76
|
-
baseStyle: ({ theme }) => {
|
|
77
|
-
var _a, _b, _c, _d;
|
|
78
|
-
// `icon` (FormErrorIcon) shares the same AA gap as `text` — both must be fixed together or
|
|
79
|
-
// the icon stays on Chakra's raw `red.500`.
|
|
80
|
-
const color = (0, accentText_1.accentTextOnCanvas)((_a = theme.colors) === null || _a === void 0 ? void 0 : _a.red, (_d = (_c = (_b = theme.colors) === null || _b === void 0 ? void 0 : _b.backgroundColor) === null || _c === void 0 ? void 0 : _c.main) !== null && _d !== void 0 ? _d : "#ffffff");
|
|
81
|
-
return {
|
|
82
|
-
text: { color },
|
|
83
|
-
icon: { color },
|
|
84
|
-
};
|
|
85
|
-
},
|
|
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
|
-
};
|
|
130
|
-
exports.componentStyles = {
|
|
131
|
-
Checkbox: Checkbox_styles_1.Checkbox,
|
|
132
|
-
Input: TextInput_styles_1.Input,
|
|
133
|
-
Button: Button_styles_1.Button,
|
|
134
|
-
Select: Select_styles_1.Select,
|
|
135
|
-
Tag: Tag_styles_1.Tag,
|
|
136
|
-
Textarea: InputTextArea_style_1.Textarea,
|
|
137
|
-
NumberInput: NumberInput_styles_1.NumberInput,
|
|
138
|
-
Badge,
|
|
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,
|
|
150
|
-
};
|