@caspeco/casper-ui-library 0.0.2 → 0.0.3
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 +34 -22
- package/dist/components/accordion/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/accordion-panel.d.ts +1 -1
- package/dist/components/accordion/accordion-panel.d.ts.map +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +6 -6
- package/dist/components/alert/helper.d.ts +1 -1
- package/dist/components/alert/helper.d.ts.map +1 -1
- package/dist/components/alert/types.d.ts +1 -1
- package/dist/components/alert/types.d.ts.map +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +5 -5
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/badge/types.d.ts.map +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/types.d.ts +2 -2
- package/dist/components/button/types.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox-icon.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox-icon.js +4 -4
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts.map +1 -1
- package/dist/components/checkbox-group/types.d.ts +1 -1
- package/dist/components/checkbox-group/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +5 -5
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +11 -11
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/helper.d.ts.map +1 -1
- package/dist/components/date-picker/helper.js +1 -3
- package/dist/components/date-picker/index.d.ts +1 -3
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.d.ts.map +1 -1
- package/dist/components/drawer/inline-drawer.js +7 -7
- package/dist/components/drawer/use-drawer-key-down.d.ts +1 -1
- package/dist/components/drawer/use-drawer-key-down.d.ts.map +1 -1
- package/dist/components/drawer/use-drawer-key-down.js +1 -5
- package/dist/components/form-control/form-control.d.ts +1 -1
- package/dist/components/form-control/form-control.d.ts.map +1 -1
- package/dist/components/form-control/form-label.d.ts +1 -1
- package/dist/components/form-control/form-label.d.ts.map +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/icon-button/types.d.ts +2 -2
- package/dist/components/icon-button/types.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +4 -4
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +4 -4
- package/dist/components/image-upload/index.d.ts +1 -2
- package/dist/components/image-upload/index.d.ts.map +1 -1
- package/dist/components/input/types.d.ts.map +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/list/index.d.ts +1 -1
- package/dist/components/list/index.d.ts.map +1 -1
- package/dist/components/list/list-item.d.ts +1 -1
- package/dist/components/list/list-item.d.ts.map +1 -1
- package/dist/components/menu/index.d.ts +5 -5
- package/dist/components/menu/index.d.ts.map +1 -1
- package/dist/components/menu/menu-box-button.d.ts.map +1 -1
- package/dist/components/menu/menu-button.d.ts.map +1 -1
- package/dist/components/menu/menu-group.d.ts.map +1 -1
- package/dist/components/menu/menu-group.js +7 -7
- package/dist/components/menu/menu-item.d.ts +1 -1
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-list.d.ts +1 -1
- package/dist/components/menu/menu-list.d.ts.map +1 -1
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/menu/types.d.ts.map +1 -1
- package/dist/components/message/message.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/modal/modal-body.d.ts +1 -1
- package/dist/components/modal/modal-body.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.d.ts +1 -1
- package/dist/components/modal/modal-footer.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.js +5 -5
- package/dist/components/modal/modal-header.d.ts +1 -1
- package/dist/components/modal/modal-header.d.ts.map +1 -1
- package/dist/components/navigation-list/index.d.ts +2 -2
- package/dist/components/navigation-list/index.d.ts.map +1 -1
- package/dist/components/navigation-list/navigation-list-item.js +3 -3
- package/dist/components/navigation-list/types.d.ts +2 -2
- package/dist/components/navigation-list/types.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
- package/dist/components/quantity-button/types.d.ts +1 -1
- package/dist/components/quantity-button/types.d.ts.map +1 -1
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/radio/radio-addon.d.ts.map +1 -1
- package/dist/components/radio/radio-card.d.ts +1 -1
- package/dist/components/radio/radio-card.d.ts.map +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.d.ts.map +1 -1
- package/dist/components/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/index.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control-item.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control-item.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/stepper/index.d.ts +1 -1
- package/dist/components/stepper/index.d.ts.map +1 -1
- package/dist/components/stepper/step.js +11 -11
- package/dist/components/stepper/stepper.d.ts.map +1 -1
- package/dist/components/stepper/stepper.js +3 -3
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +5 -5
- package/dist/components/table/index.d.ts +2 -3
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.d.ts +1 -1
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +9 -9
- package/dist/components/table/table-content.d.ts +1 -1
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +11 -11
- package/dist/components/table/table-context.d.ts +2 -2
- package/dist/components/table/table-context.d.ts.map +1 -1
- package/dist/components/table/table-context.js +5 -5
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +9 -9
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +12 -12
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +4 -4
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +8 -8
- package/dist/components/table/table-toolbar.d.ts +1 -1
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +9 -9
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/types.d.ts +2 -2
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/tab-with-image.d.ts.map +1 -1
- package/dist/components/tabs/tab-with-image.js +10 -10
- package/dist/components/tabs/tab.d.ts.map +1 -1
- package/dist/components/tabs/types.d.ts +1 -1
- package/dist/components/tabs/types.d.ts.map +1 -1
- package/dist/components/tag/types.d.ts +2 -2
- package/dist/components/tag/types.d.ts.map +1 -1
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/toast/toast.d.ts +1 -1
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toggle-button/types.d.ts +1 -1
- package/dist/components/toggle-button/types.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/index.js +46 -46
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/theme-config/components/accordion-theme.d.ts +4 -4
- package/dist/theme/theme-config/components/button-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/button-theme.js +1 -1
- package/dist/theme/theme-config/components/checkbox-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/checkbox-theme.js +3 -3
- package/dist/theme/theme-config/components/combobox-theme.d.ts +1 -1
- package/dist/theme/theme-config/components/drawer-theme.d.ts +1 -1
- package/dist/theme/theme-config/components/form-error-theme.d.ts +3 -3
- package/dist/theme/theme-config/components/input-theme.d.ts +8 -4
- package/dist/theme/theme-config/components/input-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/input-theme.js +42 -39
- package/dist/theme/theme-config/components/select-theme.d.ts +7 -3
- package/dist/theme/theme-config/components/select-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/select-theme.js +0 -1
- package/dist/theme/theme-config/components/switch-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/switch-theme.js +3 -3
- package/dist/theme/theme-config/components/tabs-theme.js +1 -1
- package/dist/theme/theme-config/theme-components.js +50 -50
- package/dist/theme/theme-provider.js +5 -5
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACN,oBAAoB,IAAI,eAAe,EACvC,aAAa,EACb,oBAAoB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EACX,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,GACf,MAAM,qBAAqB,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -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" | "root" | "container" | "panel" | "icon")[];
|
|
5
5
|
}> | undefined;
|
|
6
6
|
sizes?: {
|
|
7
7
|
[key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
|
|
8
|
-
keys: ("button" | "
|
|
8
|
+
keys: ("button" | "root" | "container" | "panel" | "icon")[];
|
|
9
9
|
}>;
|
|
10
10
|
} | undefined;
|
|
11
11
|
variants?: {
|
|
@@ -138,9 +138,9 @@ export declare const accordionConfig: {
|
|
|
138
138
|
} | undefined;
|
|
139
139
|
defaultProps?: {
|
|
140
140
|
size?: string | number | undefined;
|
|
141
|
-
variant?: "border" | "
|
|
141
|
+
variant?: "border" | "noBorder" | "list" | undefined;
|
|
142
142
|
colorScheme?: string | undefined;
|
|
143
143
|
} | undefined;
|
|
144
|
-
parts: ("button" | "
|
|
144
|
+
parts: ("button" | "root" | "container" | "panel" | "icon")[];
|
|
145
145
|
};
|
|
146
146
|
//# sourceMappingURL=accordion-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/button-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,0BAA0B,EAA6C,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"button-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/button-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,0BAA0B,EAA6C,MAAM,kBAAkB,CAAC;AAuN9G,eAAO,MAAM,YAAY,EAAE,0BA+BzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStyleConfig as i } from "@chakra-ui/react";
|
|
2
|
-
import { ThemeColorToken as o, ThemeBorderToken as a, ThemeRadiusToken as d, ThemeFontToken as t, ThemeFontSizeToken as c } from "../theme-tokens.js";
|
|
3
2
|
import { isTouchScreenDevice as e } from "../../theme-helper.js";
|
|
3
|
+
import { ThemeColorToken as o, ThemeBorderToken as a, ThemeRadiusToken as d, ThemeFontToken as t, ThemeFontSizeToken as c } from "../theme-tokens.js";
|
|
4
4
|
const l = {
|
|
5
5
|
fontFamily: t.SubHeader,
|
|
6
6
|
borderRadius: d.XLarge,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/checkbox-theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/checkbox-theme.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAsN9G,eAAO,MAAM,cAAc,EAAE,yBAI3B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { checkboxAnatomy as l } from "../../../node_modules/@chakra-ui/anatomy/dist/chunk-7OOI6RFH.js";
|
|
2
|
+
import { createMultiStyleConfigHelpers as i, defineStyle as r } from "@chakra-ui/react";
|
|
3
3
|
import { ThemeColorVariable as o } from "../../theme-types.js";
|
|
4
4
|
import { ThemeColorToken as e, ThemeFontSizeToken as b, ThemeFontToken as A, ThemeBorderToken as v } from "../theme-tokens.js";
|
|
5
|
-
const { definePartsStyle: c, defineMultiStyleConfig: s } = l
|
|
5
|
+
const { definePartsStyle: c, defineMultiStyleConfig: s } = i(l.keys), h = r({
|
|
6
6
|
m: 0,
|
|
7
7
|
fontFamily: A.Body,
|
|
8
8
|
fontSize: b.Medium,
|
|
@@ -51,7 +51,7 @@ export declare const comboboxConfig: {
|
|
|
51
51
|
};
|
|
52
52
|
} | undefined;
|
|
53
53
|
defaultProps?: {
|
|
54
|
-
size?: "
|
|
54
|
+
size?: "md" | "sm" | "lg" | "xs" | "xl" | undefined;
|
|
55
55
|
variant?: "outline" | "ghost" | undefined;
|
|
56
56
|
colorScheme?: string | undefined;
|
|
57
57
|
} | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const drawerConfig: {
|
|
|
39
39
|
}>;
|
|
40
40
|
} | undefined;
|
|
41
41
|
defaultProps?: {
|
|
42
|
-
size?: "
|
|
42
|
+
size?: "md" | "sm" | "lg" | "xs" | "xl" | undefined;
|
|
43
43
|
variant?: string | number | undefined;
|
|
44
44
|
colorScheme?: string | undefined;
|
|
45
45
|
} | undefined;
|
|
@@ -10,12 +10,12 @@ export declare const formErrorConfig: {
|
|
|
10
10
|
} | undefined;
|
|
11
11
|
sizes?: {
|
|
12
12
|
[key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
|
|
13
|
-
keys: ("
|
|
13
|
+
keys: ("icon" | "text")[];
|
|
14
14
|
}>;
|
|
15
15
|
} | undefined;
|
|
16
16
|
variants?: {
|
|
17
17
|
[key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
|
|
18
|
-
keys: ("
|
|
18
|
+
keys: ("icon" | "text")[];
|
|
19
19
|
}>;
|
|
20
20
|
} | undefined;
|
|
21
21
|
defaultProps?: {
|
|
@@ -23,6 +23,6 @@ export declare const formErrorConfig: {
|
|
|
23
23
|
variant?: string | number | undefined;
|
|
24
24
|
colorScheme?: string | undefined;
|
|
25
25
|
} | undefined;
|
|
26
|
-
parts: ("
|
|
26
|
+
parts: ("icon" | "text")[];
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=form-error-theme.d.ts.map
|
|
@@ -56,6 +56,8 @@ export declare const inputConfig: {
|
|
|
56
56
|
borderColor: ThemeColorToken;
|
|
57
57
|
background: ThemeColorToken;
|
|
58
58
|
borderRadius: ThemeRadiusToken;
|
|
59
|
+
paddingInlineStart: ThemeSpaceToken;
|
|
60
|
+
paddingInlineEnd: ThemeSpaceToken;
|
|
59
61
|
width: string;
|
|
60
62
|
_disabled: {
|
|
61
63
|
cursor: string;
|
|
@@ -115,7 +117,8 @@ export declare const inputConfig: {
|
|
|
115
117
|
};
|
|
116
118
|
ghost: {
|
|
117
119
|
field: {
|
|
118
|
-
border:
|
|
120
|
+
border: ThemeBorderToken;
|
|
121
|
+
borderColor: string;
|
|
119
122
|
background: string;
|
|
120
123
|
color: ThemeColorToken;
|
|
121
124
|
_focus: {
|
|
@@ -130,7 +133,7 @@ export declare const inputConfig: {
|
|
|
130
133
|
};
|
|
131
134
|
"&:hover:not(:focus)": {
|
|
132
135
|
backgroundColor: ThemeColorToken;
|
|
133
|
-
borderColor:
|
|
136
|
+
borderColor: string;
|
|
134
137
|
};
|
|
135
138
|
};
|
|
136
139
|
_invalid: {
|
|
@@ -139,8 +142,9 @@ export declare const inputConfig: {
|
|
|
139
142
|
boxShadow: string;
|
|
140
143
|
};
|
|
141
144
|
fontFamily: ThemeFontToken;
|
|
142
|
-
borderColor: ThemeColorToken;
|
|
143
145
|
borderRadius: ThemeRadiusToken;
|
|
146
|
+
paddingInlineStart: ThemeSpaceToken;
|
|
147
|
+
paddingInlineEnd: ThemeSpaceToken;
|
|
144
148
|
width: string;
|
|
145
149
|
_disabled: {
|
|
146
150
|
cursor: string;
|
|
@@ -192,7 +196,7 @@ export declare const inputConfig: {
|
|
|
192
196
|
};
|
|
193
197
|
} | undefined;
|
|
194
198
|
defaultProps?: {
|
|
195
|
-
size?: "
|
|
199
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
196
200
|
variant?: "outline" | "ghost" | undefined;
|
|
197
201
|
colorScheme?: string | undefined;
|
|
198
202
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/input-theme.ts"],"names":[],"mappings":"AAIA,OAAO,EACN,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"input-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/input-theme.ts"],"names":[],"mappings":"AAIA,OAAO,EACN,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,MAAM,iBAAiB,CAAC;AAkJzB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtB,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { inputAnatomy as
|
|
2
|
-
import { createMultiStyleConfigHelpers as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ThemeColorToken as o, ThemeSpaceToken as r, ThemeRadiusToken as
|
|
6
|
-
const { definePartsStyle:
|
|
7
|
-
fontFamily:
|
|
1
|
+
import { inputAnatomy as f } from "../../../node_modules/@chakra-ui/anatomy/dist/chunk-7OOI6RFH.js";
|
|
2
|
+
import { createMultiStyleConfigHelpers as m, defineStyle as l } from "@chakra-ui/react";
|
|
3
|
+
import { isTouchScreenDevice as s } from "../../theme-helper.js";
|
|
4
|
+
import { ThemeColorVariable as n } from "../../theme-types.js";
|
|
5
|
+
import { ThemeColorToken as o, ThemeSpaceToken as r, ThemeRadiusToken as t, ThemeBorderToken as d, ThemeFontToken as b, ThemeFontSizeToken as i } from "../theme-tokens.js";
|
|
6
|
+
const { definePartsStyle: a, defineMultiStyleConfig: p } = m(f.keys), c = {
|
|
7
|
+
fontFamily: b.Body,
|
|
8
8
|
color: o.OnSurface,
|
|
9
|
-
border:
|
|
9
|
+
border: d.XSmall,
|
|
10
10
|
borderColor: o.OnSurfaceBorder,
|
|
11
11
|
background: o.Surface,
|
|
12
|
-
borderRadius:
|
|
12
|
+
borderRadius: t.Small,
|
|
13
|
+
paddingInlineStart: r.Small,
|
|
14
|
+
paddingInlineEnd: r.Small,
|
|
13
15
|
width: "100%",
|
|
14
16
|
_disabled: {
|
|
15
17
|
cursor: "not-allowed",
|
|
@@ -31,14 +33,14 @@ const { definePartsStyle: d, defineMultiStyleConfig: p } = S(m.keys), t = {
|
|
|
31
33
|
},
|
|
32
34
|
_invalid: {
|
|
33
35
|
borderColor: o.Error,
|
|
34
|
-
boxShadow: `0 0 0 4px ${
|
|
36
|
+
boxShadow: `0 0 0 4px ${n.ErrorContainer}`
|
|
35
37
|
},
|
|
36
38
|
_focus: {
|
|
37
39
|
borderColor: o.Info,
|
|
38
|
-
boxShadow: `0 0 0 4px ${
|
|
40
|
+
boxShadow: `0 0 0 4px ${n.InfoContainer}`
|
|
39
41
|
},
|
|
40
42
|
_hover: {
|
|
41
|
-
borderColor:
|
|
43
|
+
borderColor: s() ? o.OnSurfaceBorder : o.OnSurface,
|
|
42
44
|
_disabled: void 0,
|
|
43
45
|
_readOnly: void 0
|
|
44
46
|
}
|
|
@@ -46,7 +48,7 @@ const { definePartsStyle: d, defineMultiStyleConfig: p } = S(m.keys), t = {
|
|
|
46
48
|
color: o.OnSurface,
|
|
47
49
|
background: o.SurfaceDisabled,
|
|
48
50
|
borderColor: o.OnSurfaceBorder,
|
|
49
|
-
borderRadius:
|
|
51
|
+
borderRadius: t.Small,
|
|
50
52
|
px: r.Medium,
|
|
51
53
|
_disabled: {
|
|
52
54
|
opacity: 1,
|
|
@@ -57,51 +59,52 @@ const { definePartsStyle: d, defineMultiStyleConfig: p } = S(m.keys), t = {
|
|
|
57
59
|
opacity: 1,
|
|
58
60
|
background: o.SurfaceDisabled
|
|
59
61
|
}
|
|
60
|
-
},
|
|
62
|
+
}, S = {
|
|
61
63
|
color: o.OnSurface,
|
|
62
64
|
_disabled: {
|
|
63
65
|
opacity: 1,
|
|
64
66
|
color: o.OnSurfaceSubdued
|
|
65
67
|
}
|
|
66
68
|
}, e = {
|
|
67
|
-
lg:
|
|
68
|
-
fontSize:
|
|
69
|
+
lg: l({
|
|
70
|
+
fontSize: i.Medium,
|
|
69
71
|
px: r.Medium
|
|
70
72
|
}),
|
|
71
|
-
md:
|
|
72
|
-
fontSize:
|
|
73
|
+
md: l({
|
|
74
|
+
fontSize: i.Medium,
|
|
73
75
|
px: r.Small
|
|
74
76
|
}),
|
|
75
|
-
sm:
|
|
76
|
-
fontSize:
|
|
77
|
+
sm: l({
|
|
78
|
+
fontSize: i.Small,
|
|
77
79
|
px: r.Small
|
|
78
80
|
})
|
|
79
|
-
},
|
|
80
|
-
lg:
|
|
81
|
+
}, g = {
|
|
82
|
+
lg: a({
|
|
81
83
|
field: e.lg,
|
|
82
84
|
addon: e.lg,
|
|
83
85
|
element: e.lg
|
|
84
86
|
}),
|
|
85
|
-
md:
|
|
87
|
+
md: a({
|
|
86
88
|
field: e.md,
|
|
87
89
|
addon: e.md,
|
|
88
90
|
element: e.md
|
|
89
91
|
}),
|
|
90
|
-
sm:
|
|
92
|
+
sm: a({
|
|
91
93
|
field: e.sm,
|
|
92
94
|
addon: e.sm,
|
|
93
95
|
element: e.sm
|
|
94
96
|
})
|
|
95
|
-
},
|
|
97
|
+
}, h = a({
|
|
96
98
|
field: {
|
|
97
|
-
...
|
|
98
|
-
border:
|
|
99
|
+
...c,
|
|
100
|
+
border: d.XSmall,
|
|
101
|
+
borderColor: "transparent",
|
|
99
102
|
background: "none",
|
|
100
103
|
color: o.OnSurface,
|
|
101
104
|
_focus: {
|
|
102
|
-
border:
|
|
105
|
+
border: d.XSmall,
|
|
103
106
|
borderColor: o.Info,
|
|
104
|
-
boxShadow: `0 0 0 4px ${
|
|
107
|
+
boxShadow: `0 0 0 4px ${n.InfoContainer}`,
|
|
105
108
|
backgroundColor: o.Surface
|
|
106
109
|
},
|
|
107
110
|
"@media(hover: hover)": {
|
|
@@ -110,27 +113,27 @@ const { definePartsStyle: d, defineMultiStyleConfig: p } = S(m.keys), t = {
|
|
|
110
113
|
},
|
|
111
114
|
"&:hover:not(:focus)": {
|
|
112
115
|
backgroundColor: o.SurfaceDisabled,
|
|
113
|
-
borderColor:
|
|
116
|
+
borderColor: "transparent"
|
|
114
117
|
}
|
|
115
118
|
},
|
|
116
119
|
_invalid: {
|
|
117
|
-
border:
|
|
120
|
+
border: d.XSmall,
|
|
118
121
|
borderColor: o.Error,
|
|
119
|
-
boxShadow: `0 0 0 4px ${
|
|
122
|
+
boxShadow: `0 0 0 4px ${n.ErrorContainer}`
|
|
120
123
|
}
|
|
121
124
|
},
|
|
122
125
|
addon: u,
|
|
123
|
-
element:
|
|
124
|
-
}),
|
|
126
|
+
element: S
|
|
127
|
+
}), C = {
|
|
125
128
|
outline: {
|
|
126
|
-
field:
|
|
129
|
+
field: c,
|
|
127
130
|
addon: u,
|
|
128
|
-
element:
|
|
131
|
+
element: S
|
|
129
132
|
},
|
|
130
|
-
ghost:
|
|
133
|
+
ghost: h
|
|
131
134
|
}, _ = p({
|
|
132
|
-
sizes:
|
|
133
|
-
variants:
|
|
135
|
+
sizes: g,
|
|
136
|
+
variants: C,
|
|
134
137
|
defaultProps: {
|
|
135
138
|
variant: "outline"
|
|
136
139
|
}
|
|
@@ -21,6 +21,8 @@ export declare const selectConfig: {
|
|
|
21
21
|
borderColor?: ThemeColorToken | undefined;
|
|
22
22
|
background?: ThemeColorToken | undefined;
|
|
23
23
|
borderRadius?: import('../theme-tokens.js').ThemeRadiusToken | undefined;
|
|
24
|
+
paddingInlineStart?: import('../theme-tokens.js').ThemeSpaceToken | undefined;
|
|
25
|
+
paddingInlineEnd?: import('../theme-tokens.js').ThemeSpaceToken | undefined;
|
|
24
26
|
width?: string | undefined;
|
|
25
27
|
_disabled?: {
|
|
26
28
|
cursor: string;
|
|
@@ -88,11 +90,12 @@ export declare const selectConfig: {
|
|
|
88
90
|
};
|
|
89
91
|
ghost: {
|
|
90
92
|
field: {
|
|
91
|
-
border: string;
|
|
92
93
|
"> option, > optgroup": {
|
|
93
94
|
color: ThemeColorToken;
|
|
94
95
|
background: ThemeColorToken;
|
|
95
96
|
};
|
|
97
|
+
border?: import('../theme-tokens.js').ThemeBorderToken | undefined;
|
|
98
|
+
borderColor?: string | undefined;
|
|
96
99
|
background?: string | undefined;
|
|
97
100
|
color?: ThemeColorToken | undefined;
|
|
98
101
|
_focus?: {
|
|
@@ -107,7 +110,7 @@ export declare const selectConfig: {
|
|
|
107
110
|
};
|
|
108
111
|
"&:hover:not(:focus)": {
|
|
109
112
|
backgroundColor: ThemeColorToken;
|
|
110
|
-
borderColor:
|
|
113
|
+
borderColor: string;
|
|
111
114
|
};
|
|
112
115
|
} | undefined;
|
|
113
116
|
_invalid?: {
|
|
@@ -116,8 +119,9 @@ export declare const selectConfig: {
|
|
|
116
119
|
boxShadow: string;
|
|
117
120
|
} | undefined;
|
|
118
121
|
fontFamily?: import('../theme-tokens.js').ThemeFontToken | undefined;
|
|
119
|
-
borderColor?: ThemeColorToken | undefined;
|
|
120
122
|
borderRadius?: import('../theme-tokens.js').ThemeRadiusToken | undefined;
|
|
123
|
+
paddingInlineStart?: import('../theme-tokens.js').ThemeSpaceToken | undefined;
|
|
124
|
+
paddingInlineEnd?: import('../theme-tokens.js').ThemeSpaceToken | undefined;
|
|
121
125
|
width?: string | undefined;
|
|
122
126
|
_disabled?: {
|
|
123
127
|
cursor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/select-theme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"select-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/select-theme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AA8CtE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvB,CAAC"}
|
|
@@ -33,7 +33,6 @@ const p = a({
|
|
|
33
33
|
field: {
|
|
34
34
|
// Apply input theme, as Select and Input share most of their appearances
|
|
35
35
|
...(r = e.variants) == null ? void 0 : r.ghost.field,
|
|
36
|
-
border: "none",
|
|
37
36
|
// Give nested option elements color styles to match the select element.
|
|
38
37
|
// Only applicable to Microsoft desktop browsers, will be ignored by browsers that use their own native styles.
|
|
39
38
|
"> option, > optgroup": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/switch-theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switch-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/switch-theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,yBAAyB,EAA8C,MAAM,kBAAkB,CAAC;AA2E9G,eAAO,MAAM,YAAY,EAAE,yBAGzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { switchAnatomy as r } from "../../../node_modules/@chakra-ui/anatomy/dist/chunk-7OOI6RFH.js";
|
|
2
|
+
import { createMultiStyleConfigHelpers as c, defineStyle as o } from "@chakra-ui/react";
|
|
3
3
|
import { ThemeColorToken as e } from "../theme-tokens.js";
|
|
4
|
-
const { definePartsStyle: t, defineMultiStyleConfig: i } = r
|
|
4
|
+
const { definePartsStyle: t, defineMultiStyleConfig: i } = c(r.keys), h = o({
|
|
5
5
|
backgroundColor: e.Surface,
|
|
6
6
|
borderColor: e.OnSurfaceSubdued,
|
|
7
7
|
borderStyle: "solid",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tabsAnatomy as d } from "../../../node_modules/@chakra-ui/anatomy/dist/chunk-7OOI6RFH.js";
|
|
2
2
|
import { createMultiStyleConfigHelpers as l } from "@chakra-ui/react";
|
|
3
|
-
import { ThemeBorderToken as a, ThemeRadiusToken as i, ThemeFontToken as c, ThemeColorToken as e, ThemeFontSizeToken as r } from "../theme-tokens.js";
|
|
4
3
|
import { ThemeSpaceVariable as t } from "../../theme-types.js";
|
|
4
|
+
import { ThemeBorderToken as a, ThemeRadiusToken as i, ThemeFontToken as c, ThemeColorToken as e, ThemeFontSizeToken as r } from "../theme-tokens.js";
|
|
5
5
|
const { definePartsStyle: o, defineMultiStyleConfig: g } = l(d.keys), s = o({
|
|
6
6
|
tab: {
|
|
7
7
|
color: e.OnBackground,
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
1
|
+
import { accordionConfig as o } from "./components/accordion-theme.js";
|
|
2
|
+
import { badgeConfig as r } from "./components/badge-theme.js";
|
|
3
|
+
import { buttonConfig as i } from "./components/button-theme.js";
|
|
4
|
+
import { checkboxConfig as m } from "./components/checkbox-theme.js";
|
|
5
|
+
import { comboboxConfig as f } from "./components/combobox-theme.js";
|
|
6
|
+
import { dateCellConfig as t } from "./components/date-cell-theme.js";
|
|
7
|
+
import { dateCellWeekConfig as n } from "./components/datepicker-week-theme.js";
|
|
8
|
+
import { dividerConfig as e } from "./components/divider-theme.js";
|
|
9
|
+
import { drawerConfig as g } from "./components/drawer-theme.js";
|
|
10
|
+
import { formErrorConfig as C } from "./components/form-error-theme.js";
|
|
11
|
+
import { formLabelConfig as p } from "./components/form-label-theme.js";
|
|
12
|
+
import { formConfig as a } from "./components/form-theme.js";
|
|
13
|
+
import { inputConfig as l } from "./components/input-theme.js";
|
|
14
|
+
import { linkConfig as b } from "./components/link-theme.js";
|
|
15
|
+
import { menuConfig as c } from "./components/menu-theme.js";
|
|
16
|
+
import { modalConfig as d } from "./components/modal-theme.js";
|
|
17
|
+
import { paginatorConfig as x } from "./components/paginator-theme.js";
|
|
18
|
+
import { radioConfig as k } from "./components/radio-theme.js";
|
|
19
|
+
import { selectConfig as s } from "./components/select-theme.js";
|
|
20
|
+
import { switchConfig as u } from "./components/switch-theme.js";
|
|
21
|
+
import { tableConfig as T } from "./components/table-theme.js";
|
|
22
|
+
import { tabsConfig as h } from "./components/tabs-theme.js";
|
|
23
|
+
import { tagConfig as w } from "./components/tag-theme.js";
|
|
24
|
+
import { textConfig as D } from "./components/text-theme.js";
|
|
25
|
+
import { textareaConfig as F } from "./components/textarea-theme.js";
|
|
26
26
|
const Y = {
|
|
27
|
-
Accordion:
|
|
28
|
-
Button:
|
|
29
|
-
Badge:
|
|
30
|
-
Divider:
|
|
31
|
-
Radio:
|
|
32
|
-
Input:
|
|
33
|
-
Modal:
|
|
34
|
-
Checkbox:
|
|
35
|
-
Tabs:
|
|
36
|
-
Select:
|
|
37
|
-
Form:
|
|
38
|
-
FormLabel:
|
|
39
|
-
FormError:
|
|
40
|
-
Link:
|
|
41
|
-
DateCell:
|
|
42
|
-
DateCellWeek:
|
|
43
|
-
Switch:
|
|
44
|
-
Text:
|
|
45
|
-
Textarea:
|
|
46
|
-
Menu:
|
|
47
|
-
Table:
|
|
48
|
-
Paginator:
|
|
49
|
-
Tag:
|
|
50
|
-
Combobox:
|
|
51
|
-
Drawer:
|
|
27
|
+
Accordion: o,
|
|
28
|
+
Button: i,
|
|
29
|
+
Badge: r,
|
|
30
|
+
Divider: e,
|
|
31
|
+
Radio: k,
|
|
32
|
+
Input: l,
|
|
33
|
+
Modal: d,
|
|
34
|
+
Checkbox: m,
|
|
35
|
+
Tabs: h,
|
|
36
|
+
Select: s,
|
|
37
|
+
Form: a,
|
|
38
|
+
FormLabel: p,
|
|
39
|
+
FormError: C,
|
|
40
|
+
Link: b,
|
|
41
|
+
DateCell: t,
|
|
42
|
+
DateCellWeek: n,
|
|
43
|
+
Switch: u,
|
|
44
|
+
Text: D,
|
|
45
|
+
Textarea: F,
|
|
46
|
+
Menu: c,
|
|
47
|
+
Table: T,
|
|
48
|
+
Paginator: x,
|
|
49
|
+
Tag: w,
|
|
50
|
+
Combobox: f,
|
|
51
|
+
Drawer: g
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
54
54
|
Y as componentsConfig
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { ColorModeScript as f, extendTheme as a, ChakraProvider as h } from "@chakra-ui/react";
|
|
3
3
|
import { createContext as p } from "react";
|
|
4
4
|
import { createSemanticTokens as d } from "./theme-config/theme.js";
|
|
5
|
-
import { componentsConfig as S } from "./theme-config/theme-components.js";
|
|
6
5
|
import { casperUITheme as o } from "./theme-config/theme-casper-ui.js";
|
|
6
|
+
import { componentsConfig as S } from "./theme-config/theme-components.js";
|
|
7
7
|
const C = p({
|
|
8
8
|
colors: o.colors,
|
|
9
9
|
fonts: o.fonts,
|
|
@@ -21,16 +21,16 @@ function M({
|
|
|
21
21
|
cssVarPrefix: "theme",
|
|
22
22
|
initialColorMode: "light",
|
|
23
23
|
useSystemColorMode: !1
|
|
24
|
-
}, s = { global: { ...i, fontStyleSheet: n } }, c =
|
|
24
|
+
}, s = { global: { ...i, fontStyleSheet: n } }, c = a({
|
|
25
25
|
semanticTokens: d(t, r),
|
|
26
26
|
components: S,
|
|
27
27
|
config: m,
|
|
28
28
|
styles: s
|
|
29
29
|
});
|
|
30
|
-
return /* @__PURE__ */ e(C.Provider, { value: { colors: t, fonts: r, fontStyleSheet: n, globalStyles: i }, children: /* @__PURE__ */ e(
|
|
30
|
+
return /* @__PURE__ */ e(C.Provider, { value: { colors: t, fonts: r, fontStyleSheet: n, globalStyles: i }, children: /* @__PURE__ */ e(h, { theme: c, children: l }) });
|
|
31
31
|
}
|
|
32
32
|
function P() {
|
|
33
|
-
return /* @__PURE__ */ e(
|
|
33
|
+
return /* @__PURE__ */ e(f, { initialColorMode: "light" });
|
|
34
34
|
}
|
|
35
35
|
export {
|
|
36
36
|
P as ThemeColorModeScript,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"module": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"dev": "vite build --watch",
|
|
15
|
-
"build": "vite build",
|
|
14
|
+
"dev": "vite build --watch --mode dev",
|
|
15
|
+
"build": "vite build --mode prod",
|
|
16
16
|
"tsc": "tsc --project tsconfig.app.json",
|
|
17
17
|
"test": "vitest run",
|
|
18
18
|
"prettier": "prettier --check .",
|