@caspeco/casper-ui-library 0.0.5 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/combobox/combobox-button.js +72 -73
- package/dist/components/combobox/combobox-menu.js +68 -69
- package/dist/components/combobox/combobox.js +104 -109
- package/dist/components/date-picker/base-date-picker.js +175 -176
- package/dist/components/date-picker/date-picker-header.js +10 -10
- package/dist/components/date-picker/helper.js +9 -9
- package/dist/components/image-upload/image-cropper.js +112 -113
- package/dist/components/image-upload/image-upload-dropzone.js +35 -36
- package/dist/components/menu/menu-group.js +44 -45
- package/dist/components/segmented-control/segmented-control.js +29 -29
- package/dist/components/table/table-cell.js +25 -26
- package/dist/components/table/table-header-dropdown.js +60 -60
- package/dist/components/table/table-header-row.js +19 -20
- package/dist/components/table/table-toolbar.js +63 -64
- package/dist/components/table/use-controllable-state.js +7 -7
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +41 -41
- package/dist/node_modules/date-fns/addDays.js +7 -7
- package/dist/node_modules/date-fns/addMonths.js +13 -13
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -11
- package/dist/node_modules/date-fns/endOfDay.js +6 -6
- package/dist/node_modules/date-fns/endOfMonth.js +6 -6
- package/dist/node_modules/date-fns/format.js +46 -47
- package/dist/node_modules/date-fns/getDayOfYear.js +8 -8
- package/dist/node_modules/date-fns/getISOWeek.js +9 -9
- package/dist/node_modules/date-fns/getISOWeekYear.js +10 -10
- package/dist/node_modules/date-fns/getWeek.js +9 -9
- package/dist/node_modules/date-fns/getWeekYear.js +13 -14
- package/dist/node_modules/date-fns/isSameDay.js +9 -9
- package/dist/node_modules/date-fns/isSameMonth.js +9 -9
- package/dist/node_modules/date-fns/isSameWeek.js +8 -8
- package/dist/node_modules/date-fns/isSameYear.js +9 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +12 -12
- package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +4 -4
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +3 -3
- package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +4 -4
- package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +6 -6
- package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +17 -17
- package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +47 -47
- package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +11 -11
- package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +3 -3
- package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +4 -4
- package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +5 -5
- package/dist/node_modules/date-fns/startOfDay.js +6 -6
- package/dist/node_modules/date-fns/startOfMonth.js +6 -6
- package/dist/node_modules/date-fns/startOfWeek.js +7 -8
- package/dist/node_modules/date-fns/startOfWeekYear.js +9 -10
- package/dist/node_modules/date-fns/startOfYear.js +5 -5
- package/dist/{node_modules/@chakra-ui/anatomy/dist/chunk-7OOI6RFH.js → packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js} +85 -21
- package/dist/theme/theme-config/components/accordion-theme.d.ts +3 -3
- package/dist/theme/theme-config/components/accordion-theme.js +5 -5
- package/dist/theme/theme-config/components/checkbox-theme.js +7 -7
- package/dist/theme/theme-config/components/drawer-theme.js +3 -3
- package/dist/theme/theme-config/components/form-error-theme.js +8 -8
- package/dist/theme/theme-config/components/form-theme.js +6 -6
- package/dist/theme/theme-config/components/input-theme.js +7 -7
- package/dist/theme/theme-config/components/menu-theme.js +6 -6
- package/dist/theme/theme-config/components/modal-theme.js +13 -15
- package/dist/theme/theme-config/components/radio-theme.js +7 -7
- package/dist/theme/theme-config/components/select-theme.js +15 -19
- package/dist/theme/theme-config/components/switch-theme.js +3 -3
- package/dist/theme/theme-config/components/table-theme.js +5 -5
- package/dist/theme/theme-config/components/tabs-theme.js +5 -5
- package/dist/theme/theme-config/components/tag-theme.js +6 -6
- package/package.json +12 -12
- /package/dist/{node_modules/@chakra-ui/anatomy/dist/chunk-OA3DH5LS.js → packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/create-anatomy.js} +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { getDefaultOptions as
|
|
2
|
-
import { constructFrom as
|
|
3
|
-
import { getWeekYear as
|
|
4
|
-
import { startOfWeek as
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return t.setFullYear(m, 0, l), t.setHours(0, 0, 0, 0), D(t, e);
|
|
1
|
+
import { getDefaultOptions as n } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as i } from "./constructFrom.js";
|
|
3
|
+
import { getWeekYear as f } from "./getWeekYear.js";
|
|
4
|
+
import { startOfWeek as c } from "./startOfWeek.js";
|
|
5
|
+
function D(r, t) {
|
|
6
|
+
const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
|
|
7
|
+
return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
|
|
9
8
|
}
|
|
10
9
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
D as default,
|
|
11
|
+
D as startOfWeekYear
|
|
13
12
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toDate as a } from "./toDate.js";
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
return
|
|
2
|
+
function s(e, r) {
|
|
3
|
+
const t = a(e, r?.in);
|
|
4
|
+
return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
s as default,
|
|
8
|
+
s as startOfYear
|
|
9
9
|
};
|
|
@@ -1,29 +1,85 @@
|
|
|
1
|
-
import { anatomy as t } from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { anatomy as t } from "./create-anatomy.js";
|
|
2
|
+
const a = t("accordion").parts(
|
|
3
|
+
"root",
|
|
4
|
+
"container",
|
|
5
|
+
"button",
|
|
6
|
+
"panel",
|
|
7
|
+
"icon"
|
|
8
|
+
);
|
|
9
|
+
t("alert").parts(
|
|
10
|
+
"title",
|
|
11
|
+
"description",
|
|
12
|
+
"container",
|
|
13
|
+
"icon",
|
|
14
|
+
"spinner"
|
|
15
|
+
);
|
|
16
|
+
t("avatar").parts(
|
|
17
|
+
"label",
|
|
18
|
+
"badge",
|
|
19
|
+
"container",
|
|
20
|
+
"excessLabel",
|
|
21
|
+
"group"
|
|
22
|
+
);
|
|
23
|
+
t("breadcrumb").parts(
|
|
24
|
+
"link",
|
|
25
|
+
"item",
|
|
26
|
+
"container",
|
|
27
|
+
"separator"
|
|
28
|
+
);
|
|
6
29
|
t("button").parts();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
30
|
+
const r = t("checkbox").parts(
|
|
31
|
+
"control",
|
|
32
|
+
"icon",
|
|
33
|
+
"container",
|
|
34
|
+
"label"
|
|
35
|
+
);
|
|
36
|
+
t("progress").parts(
|
|
37
|
+
"track",
|
|
38
|
+
"filledTrack",
|
|
39
|
+
"label"
|
|
40
|
+
);
|
|
41
|
+
const e = t("drawer").parts(
|
|
42
|
+
"overlay",
|
|
43
|
+
"dialogContainer",
|
|
44
|
+
"dialog",
|
|
45
|
+
"header",
|
|
46
|
+
"closeButton",
|
|
47
|
+
"body",
|
|
48
|
+
"footer"
|
|
49
|
+
);
|
|
10
50
|
t("editable").parts(
|
|
11
51
|
"preview",
|
|
12
52
|
"input",
|
|
13
53
|
"textarea"
|
|
14
54
|
);
|
|
15
|
-
|
|
55
|
+
const n = t("form").parts(
|
|
16
56
|
"container",
|
|
17
57
|
"requiredIndicator",
|
|
18
58
|
"helperText"
|
|
19
|
-
), i = t("formError").parts("text", "icon"),
|
|
59
|
+
), i = t("formError").parts("text", "icon"), s = t("input").parts(
|
|
20
60
|
"addon",
|
|
21
61
|
"field",
|
|
22
62
|
"element",
|
|
23
63
|
"group"
|
|
24
64
|
);
|
|
25
65
|
t("list").parts("container", "item", "icon");
|
|
26
|
-
|
|
66
|
+
const c = t("menu").parts(
|
|
67
|
+
"button",
|
|
68
|
+
"list",
|
|
69
|
+
"item",
|
|
70
|
+
"groupTitle",
|
|
71
|
+
"icon",
|
|
72
|
+
"command",
|
|
73
|
+
"divider"
|
|
74
|
+
), p = t("modal").parts(
|
|
75
|
+
"overlay",
|
|
76
|
+
"dialogContainer",
|
|
77
|
+
"dialog",
|
|
78
|
+
"header",
|
|
79
|
+
"closeButton",
|
|
80
|
+
"body",
|
|
81
|
+
"footer"
|
|
82
|
+
);
|
|
27
83
|
t("numberinput").parts(
|
|
28
84
|
"root",
|
|
29
85
|
"field",
|
|
@@ -31,13 +87,21 @@ t("numberinput").parts(
|
|
|
31
87
|
"stepper"
|
|
32
88
|
);
|
|
33
89
|
t("pininput").parts("field");
|
|
34
|
-
t("popover").parts(
|
|
90
|
+
t("popover").parts(
|
|
91
|
+
"content",
|
|
92
|
+
"header",
|
|
93
|
+
"body",
|
|
94
|
+
"footer",
|
|
95
|
+
"popper",
|
|
96
|
+
"arrow",
|
|
97
|
+
"closeButton"
|
|
98
|
+
);
|
|
35
99
|
t("progress").parts(
|
|
36
100
|
"label",
|
|
37
101
|
"filledTrack",
|
|
38
102
|
"track"
|
|
39
103
|
);
|
|
40
|
-
|
|
104
|
+
const l = t("radio").parts(
|
|
41
105
|
"container",
|
|
42
106
|
"control",
|
|
43
107
|
"label"
|
|
@@ -56,7 +120,7 @@ t("stat").parts(
|
|
|
56
120
|
"number",
|
|
57
121
|
"icon"
|
|
58
122
|
);
|
|
59
|
-
|
|
123
|
+
const m = t("switch").parts(
|
|
60
124
|
"container",
|
|
61
125
|
"track",
|
|
62
126
|
"thumb",
|
|
@@ -99,15 +163,15 @@ t("stepper").parts(
|
|
|
99
163
|
"number"
|
|
100
164
|
);
|
|
101
165
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
166
|
+
a as accordionAnatomy,
|
|
167
|
+
r as checkboxAnatomy,
|
|
168
|
+
e as drawerAnatomy,
|
|
105
169
|
n as formAnatomy,
|
|
106
170
|
i as formErrorAnatomy,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
171
|
+
s as inputAnatomy,
|
|
172
|
+
c as menuAnatomy,
|
|
173
|
+
p as modalAnatomy,
|
|
174
|
+
l as radioAnatomy,
|
|
111
175
|
d as selectAnatomy,
|
|
112
176
|
m as switchAnatomy,
|
|
113
177
|
b as tableAnatomy,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ThemeBorderVariable, ThemeColorVariable, ThemeFontSizeVariable, ThemeRadiusVariable, ThemeSpaceVariable } from '../../theme-types.js';
|
|
2
2
|
export declare const accordionConfig: {
|
|
3
3
|
baseStyle?: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
|
|
4
|
-
keys: ("button" | "
|
|
4
|
+
keys: ("button" | "container" | "root" | "panel" | "icon")[];
|
|
5
5
|
}> | undefined;
|
|
6
6
|
sizes?: {
|
|
7
7
|
[key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
|
|
8
|
-
keys: ("button" | "
|
|
8
|
+
keys: ("button" | "container" | "root" | "panel" | "icon")[];
|
|
9
9
|
}>;
|
|
10
10
|
} | undefined;
|
|
11
11
|
variants?: {
|
|
@@ -141,6 +141,6 @@ export declare const accordionConfig: {
|
|
|
141
141
|
variant?: "border" | "noBorder" | "list" | undefined;
|
|
142
142
|
colorScheme?: string | undefined;
|
|
143
143
|
} | undefined;
|
|
144
|
-
parts: ("button" | "
|
|
144
|
+
parts: ("button" | "container" | "root" | "panel" | "icon")[];
|
|
145
145
|
};
|
|
146
146
|
//# sourceMappingURL=accordion-theme.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const { definePartsStyle: t, defineMultiStyleConfig: s } =
|
|
1
|
+
import { createMultiStyleConfigHelpers as u, defineStyle as n } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorVariable as e, ThemeBorderVariable as a, ThemeSpaceVariable as r, ThemeRadiusVariable as o, ThemeFontSizeVariable as c } from "../../theme-types.js";
|
|
3
|
+
import { accordionAnatomy as b } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { definePartsStyle: t, defineMultiStyleConfig: s } = u(b.keys), d = n({
|
|
5
5
|
width: "100%"
|
|
6
6
|
}), i = n({
|
|
7
7
|
display: "flex",
|
|
8
8
|
width: "100%",
|
|
9
|
-
fontSize:
|
|
9
|
+
fontSize: c.Large,
|
|
10
10
|
fontWeight: "500",
|
|
11
11
|
py: r.Small,
|
|
12
12
|
px: r.Medium,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createMultiStyleConfigHelpers as i, defineStyle as r } from "@chakra-ui/react";
|
|
1
|
+
import { createMultiStyleConfigHelpers as l, defineStyle as r } from "@chakra-ui/react";
|
|
3
2
|
import { ThemeColorVariable as o } from "../../theme-types.js";
|
|
4
|
-
import { ThemeColorToken as e, ThemeFontSizeToken as
|
|
5
|
-
|
|
3
|
+
import { ThemeColorToken as e, ThemeFontSizeToken as i, ThemeFontToken as b, ThemeBorderToken as A } from "../theme-tokens.js";
|
|
4
|
+
import { checkboxAnatomy as v } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
5
|
+
const { definePartsStyle: c, defineMultiStyleConfig: s } = l(v.keys), h = r({
|
|
6
6
|
m: 0,
|
|
7
|
-
fontFamily:
|
|
8
|
-
fontSize:
|
|
7
|
+
fontFamily: b.Body,
|
|
8
|
+
fontSize: i.Medium,
|
|
9
9
|
color: e.OnSurface,
|
|
10
10
|
width: "100%",
|
|
11
11
|
_disabled: {
|
|
@@ -54,7 +54,7 @@ const { definePartsStyle: c, defineMultiStyleConfig: s } = i(l.keys), h = r({
|
|
|
54
54
|
borderColor: e.OnBackground,
|
|
55
55
|
background: "transparent",
|
|
56
56
|
borderRadius: "4px",
|
|
57
|
-
border:
|
|
57
|
+
border: A.Small,
|
|
58
58
|
_disabled: {
|
|
59
59
|
opacity: 0.48,
|
|
60
60
|
borderColor: e.OnBackground,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createMultiStyleConfigHelpers as t } from "@chakra-ui/react";
|
|
1
|
+
import { createMultiStyleConfigHelpers as i } from "@chakra-ui/react";
|
|
3
2
|
import { ThemeColorToken as e } from "../theme-tokens.js";
|
|
4
|
-
|
|
3
|
+
import { drawerAnatomy as t } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { definePartsStyle: o, defineMultiStyleConfig: a } = i(t.keys), r = {
|
|
5
5
|
xs: o({ dialog: { maxWidth: "320px" } }),
|
|
6
6
|
// Chakra default
|
|
7
7
|
sm: o({ dialog: { maxWidth: "448px" } }),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const { definePartsStyle: i, defineMultiStyleConfig: l } =
|
|
1
|
+
import { createMultiStyleConfigHelpers as o } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeSpaceToken as e, ThemeFontSizeToken as r, ThemeFontToken as t, ThemeColorToken as n } from "../theme-tokens.js";
|
|
3
|
+
import { formErrorAnatomy as m } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { definePartsStyle: i, defineMultiStyleConfig: l } = o(m.keys), f = i({
|
|
5
5
|
text: {
|
|
6
|
-
color:
|
|
7
|
-
fontFamily:
|
|
8
|
-
fontSize:
|
|
9
|
-
marginTop:
|
|
6
|
+
color: n.Error,
|
|
7
|
+
fontFamily: t.Body,
|
|
8
|
+
fontSize: r.Small,
|
|
9
|
+
marginTop: e.XSmall
|
|
10
10
|
}
|
|
11
11
|
}), y = l({
|
|
12
12
|
baseStyle: f
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const { definePartsStyle: a, defineMultiStyleConfig: c } =
|
|
1
|
+
import { createMultiStyleConfigHelpers as r, defineStyle as o } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorToken as e, ThemeFontSizeToken as n, ThemeFontToken as t, ThemeSpaceToken as i } from "../theme-tokens.js";
|
|
3
|
+
import { formAnatomy as l } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { definePartsStyle: a, defineMultiStyleConfig: c } = r(l.keys), d = o({
|
|
5
5
|
color: e.Error
|
|
6
6
|
}), m = o({
|
|
7
7
|
color: e.OnBackgroundSubdued,
|
|
8
8
|
fontSize: n.Small,
|
|
9
|
-
marginTop:
|
|
9
|
+
marginTop: i.XSmall
|
|
10
10
|
}), S = a({
|
|
11
11
|
container: {
|
|
12
12
|
_disabled: {
|
|
13
13
|
opacity: 1,
|
|
14
14
|
color: e.OnBackgroundSubdued
|
|
15
15
|
},
|
|
16
|
-
fontFamily:
|
|
16
|
+
fontFamily: t.Body,
|
|
17
17
|
fontSize: n.Medium,
|
|
18
18
|
color: e.OnBackground
|
|
19
19
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { isTouchScreenDevice as s } from "../../theme-helper.js";
|
|
1
|
+
import { createMultiStyleConfigHelpers as f, defineStyle as l } from "@chakra-ui/react";
|
|
2
|
+
import { isTouchScreenDevice as m } from "../../theme-helper.js";
|
|
4
3
|
import { ThemeColorVariable as n } from "../../theme-types.js";
|
|
5
|
-
import { ThemeColorToken as o, ThemeSpaceToken as r, ThemeRadiusToken as t, ThemeBorderToken as d, ThemeFontToken as
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { ThemeColorToken as o, ThemeSpaceToken as r, ThemeRadiusToken as t, ThemeBorderToken as d, ThemeFontToken as s, ThemeFontSizeToken as i } from "../theme-tokens.js";
|
|
5
|
+
import { inputAnatomy as b } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
6
|
+
const { definePartsStyle: a, defineMultiStyleConfig: p } = f(b.keys), c = {
|
|
7
|
+
fontFamily: s.Body,
|
|
8
8
|
color: o.OnSurface,
|
|
9
9
|
border: d.XSmall,
|
|
10
10
|
borderColor: o.OnSurfaceBorder,
|
|
@@ -40,7 +40,7 @@ const { definePartsStyle: a, defineMultiStyleConfig: p } = m(f.keys), c = {
|
|
|
40
40
|
boxShadow: `0 0 0 4px ${n.InfoContainer}`
|
|
41
41
|
},
|
|
42
42
|
_hover: {
|
|
43
|
-
borderColor:
|
|
43
|
+
borderColor: m() ? o.OnSurfaceBorder : o.OnSurface,
|
|
44
44
|
_disabled: void 0,
|
|
45
45
|
_readOnly: void 0
|
|
46
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const { definePartsStyle: i, defineMultiStyleConfig: c } =
|
|
1
|
+
import { createMultiStyleConfigHelpers as n, defineStyle as a } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeSpaceVariable as e, ThemeFontSizeVariable as r, ThemeColorVariable as o, ThemeShadowVariable as t } from "../../theme-types.js";
|
|
3
|
+
import { menuAnatomy as l } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { definePartsStyle: i, defineMultiStyleConfig: c } = n(l.keys), d = a({
|
|
5
5
|
minW: "280px",
|
|
6
6
|
alignItems: "center",
|
|
7
7
|
paddingLeft: e.Medium,
|
|
@@ -32,14 +32,14 @@ const { definePartsStyle: i, defineMultiStyleConfig: c } = r(n.keys), d = a({
|
|
|
32
32
|
mr: e.XSmall
|
|
33
33
|
}
|
|
34
34
|
}), m = a({
|
|
35
|
-
boxShadow:
|
|
35
|
+
boxShadow: t.Medium,
|
|
36
36
|
bg: o.Surface,
|
|
37
37
|
border: "none",
|
|
38
38
|
borderRadius: e.Small
|
|
39
39
|
}), u = a({
|
|
40
40
|
opacity: 1,
|
|
41
41
|
color: o.OnSurfaceSubdued,
|
|
42
|
-
fontSize:
|
|
42
|
+
fontSize: r.Small,
|
|
43
43
|
mx: e.XSmall
|
|
44
44
|
}), S = i({
|
|
45
45
|
item: d,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ThemeColorToken as o, ThemeRadiusToken as a, ThemeFontToken as r, ThemeFontSizeToken as m } from "../theme-tokens.js";
|
|
1
|
+
import { createMultiStyleConfigHelpers as i } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorToken as o, ThemeRadiusToken as a, ThemeFontToken as r, ThemeFontSizeToken as d } from "../theme-tokens.js";
|
|
4
3
|
import { buttonConfig as t } from "./button-theme.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const x = e({
|
|
4
|
+
import { modalAnatomy as n } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
5
|
+
const { definePartsStyle: e, defineMultiStyleConfig: m } = i(n.keys), l = e({
|
|
8
6
|
overlay: {
|
|
9
7
|
// Non white label-overridable color based on black, always
|
|
10
8
|
bg: "rgba(0, 0, 0, 0.32)"
|
|
@@ -12,7 +10,7 @@ const x = e({
|
|
|
12
10
|
header: {
|
|
13
11
|
bg: o.Surface,
|
|
14
12
|
position: "relative",
|
|
15
|
-
fontSize:
|
|
13
|
+
fontSize: d.XLarge,
|
|
16
14
|
fontFamily: r.SubHeader,
|
|
17
15
|
color: o.OnSurfaceHeader,
|
|
18
16
|
fontWeight: "medium",
|
|
@@ -56,9 +54,9 @@ const x = e({
|
|
|
56
54
|
top: "unset",
|
|
57
55
|
alignSelf: "flex-start",
|
|
58
56
|
...t.baseStyle,
|
|
59
|
-
...
|
|
57
|
+
...t.variants?.secondary
|
|
60
58
|
}
|
|
61
|
-
}),
|
|
59
|
+
}), x = {
|
|
62
60
|
sm: e({
|
|
63
61
|
dialog: {
|
|
64
62
|
maxW: "384px"
|
|
@@ -96,7 +94,7 @@ const x = e({
|
|
|
96
94
|
borderRadius: 0
|
|
97
95
|
}
|
|
98
96
|
})
|
|
99
|
-
},
|
|
97
|
+
}, s = {
|
|
100
98
|
/** Custom variant appearing as a mobile app "bottom sheet",
|
|
101
99
|
* filling 100% of view width and max 100% - 88px view height. */
|
|
102
100
|
bottomSheet: e({
|
|
@@ -113,11 +111,11 @@ const x = e({
|
|
|
113
111
|
alignItems: "flex-end"
|
|
114
112
|
}
|
|
115
113
|
})
|
|
116
|
-
},
|
|
117
|
-
baseStyle:
|
|
118
|
-
variants:
|
|
119
|
-
sizes:
|
|
114
|
+
}, b = m({
|
|
115
|
+
baseStyle: l,
|
|
116
|
+
variants: s,
|
|
117
|
+
sizes: x
|
|
120
118
|
});
|
|
121
119
|
export {
|
|
122
|
-
|
|
120
|
+
b as modalConfig
|
|
123
121
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const { defineMultiStyleConfig: l } =
|
|
1
|
+
import { createMultiStyleConfigHelpers as r } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorToken as o, ThemeBorderToken as n, ThemeFontSizeToken as t, ThemeFontToken as c } from "../theme-tokens.js";
|
|
3
|
+
import { radioAnatomy as i } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { defineMultiStyleConfig: l } = r(i.keys), e = {
|
|
5
5
|
content: '""',
|
|
6
6
|
display: "inline-block",
|
|
7
7
|
pos: "relative",
|
|
@@ -12,14 +12,14 @@ const { defineMultiStyleConfig: l } = n(r.keys), e = {
|
|
|
12
12
|
}, d = {
|
|
13
13
|
label: {
|
|
14
14
|
color: o.OnSurface,
|
|
15
|
-
fontFamily:
|
|
16
|
-
fontSize:
|
|
15
|
+
fontFamily: c.Body,
|
|
16
|
+
fontSize: t.Medium,
|
|
17
17
|
_disabled: {
|
|
18
18
|
opacity: 1
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
control: {
|
|
22
|
-
border:
|
|
22
|
+
border: n.Small,
|
|
23
23
|
borderColor: o.OnBackground,
|
|
24
24
|
color: o.OnAccent,
|
|
25
25
|
bg: "transparent",
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ThemeColorToken as o, ThemeFontSizeToken as s } from "../theme-tokens.js";
|
|
1
|
+
import { createMultiStyleConfigHelpers as i } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorToken as o, ThemeFontSizeToken as r } from "../theme-tokens.js";
|
|
4
3
|
import { inputConfig as e } from "./input-theme.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const l = a({
|
|
4
|
+
import { selectAnatomy as a } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
5
|
+
const { defineMultiStyleConfig: l, definePartsStyle: t } = i(a.keys), n = t({
|
|
8
6
|
// Apply input theme, as Select and Input share most of their appearances
|
|
9
|
-
...
|
|
7
|
+
...e.variants?.outline,
|
|
10
8
|
field: {
|
|
11
9
|
// Apply input theme, as Select and Input share most of their appearances
|
|
12
|
-
...
|
|
10
|
+
...e.variants?.outline.field,
|
|
13
11
|
// Give nested option elements color styles to match the select element.
|
|
14
12
|
// Only applicable to Microsoft desktop browsers, will be ignored by browsers that use their own native styles.
|
|
15
13
|
"> option, > optgroup": {
|
|
@@ -18,21 +16,19 @@ const l = a({
|
|
|
18
16
|
}
|
|
19
17
|
},
|
|
20
18
|
icon: {
|
|
21
|
-
fontSize:
|
|
19
|
+
fontSize: r.Small,
|
|
22
20
|
color: o.OnSurface,
|
|
23
21
|
_disabled: {
|
|
24
22
|
opacity: 1,
|
|
25
23
|
color: o.OnSurfaceSubdued
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
|
-
})
|
|
29
|
-
var i, r;
|
|
30
|
-
const p = a({
|
|
26
|
+
}), c = t({
|
|
31
27
|
// Apply input theme, as Select and Input share most of their appearances
|
|
32
|
-
...
|
|
28
|
+
...e.variants?.ghost,
|
|
33
29
|
field: {
|
|
34
30
|
// Apply input theme, as Select and Input share most of their appearances
|
|
35
|
-
...
|
|
31
|
+
...e.variants?.ghost.field,
|
|
36
32
|
// Give nested option elements color styles to match the select element.
|
|
37
33
|
// Only applicable to Microsoft desktop browsers, will be ignored by browsers that use their own native styles.
|
|
38
34
|
"> option, > optgroup": {
|
|
@@ -41,17 +37,17 @@ const p = a({
|
|
|
41
37
|
}
|
|
42
38
|
},
|
|
43
39
|
icon: {
|
|
44
|
-
...
|
|
40
|
+
...n.icon
|
|
45
41
|
}
|
|
46
|
-
}),
|
|
42
|
+
}), S = l({
|
|
47
43
|
defaultProps: {
|
|
48
44
|
variant: "outline"
|
|
49
45
|
},
|
|
50
46
|
variants: {
|
|
51
|
-
outline:
|
|
52
|
-
ghost:
|
|
47
|
+
outline: n,
|
|
48
|
+
ghost: c
|
|
53
49
|
}
|
|
54
50
|
});
|
|
55
51
|
export {
|
|
56
|
-
|
|
52
|
+
S as selectConfig
|
|
57
53
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createMultiStyleConfigHelpers as c, defineStyle as o } from "@chakra-ui/react";
|
|
1
|
+
import { createMultiStyleConfigHelpers as r, defineStyle as o } from "@chakra-ui/react";
|
|
3
2
|
import { ThemeColorToken as e } from "../theme-tokens.js";
|
|
4
|
-
|
|
3
|
+
import { switchAnatomy as c } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const { definePartsStyle: t, defineMultiStyleConfig: i } = r(c.keys), h = o({
|
|
5
5
|
backgroundColor: e.Surface,
|
|
6
6
|
borderColor: e.OnSurfaceSubdued,
|
|
7
7
|
borderStyle: "solid",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ThemeColorVariable as o, ThemeSpaceVariable as r, ThemeFontVariable as l } from "../../theme-types.js";
|
|
1
|
+
import { createMultiStyleConfigHelpers as n, defineStyle as e } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorVariable as o, ThemeSpaceVariable as r, ThemeFontVariable as a } from "../../theme-types.js";
|
|
4
3
|
import { ThemeFontSizeToken as t } from "../theme-tokens.js";
|
|
5
|
-
|
|
4
|
+
import { tableAnatomy as l } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
5
|
+
const { definePartsStyle: d, defineMultiStyleConfig: i } = n(l.keys), b = e({
|
|
6
6
|
position: "relative",
|
|
7
|
-
fontFamily:
|
|
7
|
+
fontFamily: a.Body,
|
|
8
8
|
fontSize: t.Small,
|
|
9
9
|
th: {
|
|
10
10
|
padding: "0px",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createMultiStyleConfigHelpers as l } from "@chakra-ui/react";
|
|
1
|
+
import { createMultiStyleConfigHelpers as d } from "@chakra-ui/react";
|
|
3
2
|
import { ThemeSpaceVariable as t } from "../../theme-types.js";
|
|
4
|
-
import { ThemeBorderToken as a, ThemeRadiusToken as i, ThemeFontToken as
|
|
5
|
-
|
|
3
|
+
import { ThemeBorderToken as a, ThemeRadiusToken as i, ThemeFontToken as l, ThemeColorToken as e, ThemeFontSizeToken as r } from "../theme-tokens.js";
|
|
4
|
+
import { tabsAnatomy as c } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
5
|
+
const { definePartsStyle: o, defineMultiStyleConfig: g } = d(c.keys), s = o({
|
|
6
6
|
tab: {
|
|
7
7
|
color: e.OnBackground,
|
|
8
|
-
fontFamily:
|
|
8
|
+
fontFamily: l.SubHeader,
|
|
9
9
|
fontWeight: "medium",
|
|
10
10
|
borderRadius: i.XLarge,
|
|
11
11
|
bg: "none",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warning"], a = ".tag-dot", u = ".tag-icon", { definePartsStyle: n, defineMultiStyleConfig: p } =
|
|
1
|
+
import { createMultiStyleConfigHelpers as h } from "@chakra-ui/react";
|
|
2
|
+
import { ThemeColorVariable as o, ThemeIconSizeVariable as t, ThemeFontSizeVariable as d, ThemeFontVariable as b, ThemeSpaceVariable as m, ThemeRadiusVariable as f } from "../../theme-types.js";
|
|
3
|
+
import { tagAnatomy as C } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
|
+
const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warning"], a = ".tag-dot", u = ".tag-icon", { definePartsStyle: n, defineMultiStyleConfig: p } = h(C.keys), x = g.reduce(
|
|
5
5
|
(l, e) => {
|
|
6
6
|
const i = l, c = `${e.toLowerCase()}Solid`, s = e, r = `On${e}`;
|
|
7
7
|
return i[c] = n({
|
|
@@ -39,7 +39,7 @@ const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
39
39
|
px: m.Small,
|
|
40
40
|
bg: o.NeutralContainer,
|
|
41
41
|
color: o.OnNeutralContainer,
|
|
42
|
-
borderRadius:
|
|
42
|
+
borderRadius: f.Small
|
|
43
43
|
},
|
|
44
44
|
label: {
|
|
45
45
|
alignItems: "center",
|
|
@@ -47,7 +47,7 @@ const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
47
47
|
lineHeight: "150%",
|
|
48
48
|
mx: m.XSmall,
|
|
49
49
|
letterSpacing: "0.0125em",
|
|
50
|
-
font:
|
|
50
|
+
font: b.Body
|
|
51
51
|
},
|
|
52
52
|
closeButton: {
|
|
53
53
|
opacity: "0.48",
|