@caspeco/casper-ui-library 6.1.0 → 7.0.0
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/alert/alert.js +25 -25
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +57 -57
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +58 -56
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +34 -34
- package/dist/components/combobox/types.d.ts +2 -2
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +129 -129
- package/dist/components/date-picker/types.d.ts +3 -2
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/drawer/use-drawer-key-down.js +8 -6
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +13 -12
- package/dist/components/image-upload/image-cropper.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +24 -24
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +61 -58
- package/dist/components/menu/menu-item.d.ts +2 -1
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu.composition.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.js +16 -13
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +18 -18
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +21 -19
- package/dist/components/table/table-context-provider.d.ts +8 -4
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +96 -94
- package/dist/components/table/table-filter.d.ts +27 -0
- package/dist/components/table/table-filter.d.ts.map +1 -0
- package/dist/components/table/table-filter.js +140 -0
- package/dist/components/table/table-filter.spec.d.ts +2 -0
- package/dist/components/table/table-filter.spec.d.ts.map +1 -0
- package/dist/components/table/table-header-dropdown.d.ts +1 -1
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +71 -59
- package/dist/components/table/table-row.js +40 -40
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +111 -81
- package/dist/components/table/table.composition.d.ts +1 -1
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +22 -24
- package/dist/components/table/translations.d.ts +10 -0
- package/dist/components/table/translations.d.ts.map +1 -1
- package/dist/components/table/translations.js +17 -9
- package/dist/components/table/types.d.ts +1 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tabs.composition.d.ts +1 -1
- package/dist/index.js +168 -165
- package/dist/theme/index.d.ts +2 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/theme-context.d.ts +10 -0
- package/dist/theme/theme-context.d.ts.map +1 -0
- package/dist/theme/theme-context.js +11 -0
- package/dist/theme/theme-provider-context.composition.d.ts.map +1 -1
- package/dist/theme/theme-provider.d.ts +0 -8
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +21 -27
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,185 +1,188 @@
|
|
|
1
1
|
import { useColorMode as e, useDisclosure as t, useRadioGroup as m } from "@chakra-ui/react";
|
|
2
2
|
import { isTouchScreenDevice as x } from "./theme/theme-helper.js";
|
|
3
|
-
import { ThemeColorModeScript as a, ThemeProvider as i
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { ThemeColorModeScript as a, ThemeProvider as i } from "./theme/theme-provider.js";
|
|
4
|
+
import { ThemeProviderContext as l } from "./theme/theme-context.js";
|
|
5
|
+
import { ThemeBorderVariable as u, ThemeBreakPointVariable as T, ThemeColorVariable as c, ThemeFontSizeVariable as s, ThemeFontVariable as b, ThemeIconSizeVariable as h, ThemeRadiusVariable as g, ThemeShadowVariable as M, ThemeSpaceVariable as B } from "./theme/theme-types.js";
|
|
6
|
+
import { Accordion as S } from "./components/accordion/accordion.js";
|
|
7
|
+
import { AccordionItem as k } from "./components/accordion/accordion-item.js";
|
|
8
|
+
import { AccordionPanel as P } from "./components/accordion/accordion-panel.js";
|
|
8
9
|
import { Alert as V } from "./components/alert/alert.js";
|
|
9
10
|
import { Badge as D } from "./components/badge/badge.js";
|
|
10
|
-
import { Box as
|
|
11
|
-
import { Breadcrumbs as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { Checkbox as
|
|
14
|
-
import { CheckboxGroup as
|
|
15
|
-
import { Combobox as
|
|
16
|
-
import { DatePicker as
|
|
17
|
-
import { DateRangePicker as
|
|
18
|
-
import { DateWeekPicker as
|
|
19
|
-
import { Divider as
|
|
20
|
-
import { Drawer as
|
|
21
|
-
import { Flex as
|
|
22
|
-
import { FormControl as
|
|
23
|
-
import { FormErrorMessage as
|
|
24
|
-
import { FormHelperText as
|
|
25
|
-
import { FormLabel as
|
|
26
|
-
import { Grid as
|
|
27
|
-
import { GridItem as
|
|
28
|
-
import { Heading as
|
|
29
|
-
import { Highlight as
|
|
30
|
-
import { Icon as
|
|
31
|
-
import { Icons as
|
|
32
|
-
import { IconButton as
|
|
33
|
-
import { Image as
|
|
34
|
-
import { ImageUpload as
|
|
11
|
+
import { Box as A } from "./components/box/box.js";
|
|
12
|
+
import { Breadcrumbs as H } from "./components/breadcrumbs/breadcrumbs.js";
|
|
13
|
+
import { Button as N } from "./components/button/button.js";
|
|
14
|
+
import { Checkbox as z } from "./components/checkbox/checkbox.js";
|
|
15
|
+
import { CheckboxGroup as E } from "./components/checkbox-group/checkbox-group.js";
|
|
16
|
+
import { Combobox as W } from "./components/combobox/combobox.js";
|
|
17
|
+
import { DatePicker as q } from "./components/date-picker/date-picker.js";
|
|
18
|
+
import { DateRangePicker as K } from "./components/date-picker/date-range-picker.js";
|
|
19
|
+
import { DateWeekPicker as X } from "./components/date-picker/date-week-picker.js";
|
|
20
|
+
import { Divider as Z } from "./components/divider/divider.js";
|
|
21
|
+
import { Drawer as $ } from "./components/drawer/drawer.js";
|
|
22
|
+
import { Flex as ro } from "./components/flex/flex.js";
|
|
23
|
+
import { FormControl as to } from "./components/form-control/form-control.js";
|
|
24
|
+
import { FormErrorMessage as po } from "./components/form-control/form-error-message.js";
|
|
25
|
+
import { FormHelperText as fo } from "./components/form-control/form-helper-text.js";
|
|
26
|
+
import { FormLabel as io } from "./components/form-control/form-label.js";
|
|
27
|
+
import { Grid as lo } from "./components/grid/grid.js";
|
|
28
|
+
import { GridItem as To } from "./components/grid/grid-item.js";
|
|
29
|
+
import { Heading as so } from "./components/heading/heading.js";
|
|
30
|
+
import { Highlight as ho } from "./components/highlight/highlight.js";
|
|
31
|
+
import { Icon as Mo } from "./components/icon/icon.js";
|
|
32
|
+
import { Icons as Co } from "./components/icon/types.js";
|
|
33
|
+
import { IconButton as Io } from "./components/icon-button/icon-button.js";
|
|
34
|
+
import { Image as Lo } from "./components/image/image.js";
|
|
35
|
+
import { ImageUpload as Fo } from "./components/image-upload/image-upload.js";
|
|
35
36
|
import { ImageUploadAspectRatio as vo } from "./components/image-upload/types.js";
|
|
36
|
-
import { Input as
|
|
37
|
-
import { Link as
|
|
38
|
-
import { List as
|
|
39
|
-
import { ListItem as
|
|
40
|
-
import { Menu as
|
|
41
|
-
import { MenuBoxButton as
|
|
42
|
-
import { MenuButton as
|
|
43
|
-
import { MenuDivider as
|
|
44
|
-
import { MenuGroup as
|
|
45
|
-
import { MenuIconButton as
|
|
46
|
-
import { MenuItem as
|
|
47
|
-
import { MenuList as
|
|
48
|
-
import { Message as
|
|
49
|
-
import { Modal as
|
|
50
|
-
import { ModalBody as
|
|
51
|
-
import { ModalCloseButton as
|
|
52
|
-
import { ModalFooter as
|
|
53
|
-
import { ModalHeader as
|
|
54
|
-
import { NavigationList as
|
|
55
|
-
import { NavigationListButton as
|
|
56
|
-
import { Paginator as
|
|
57
|
-
import { QuantityButton as
|
|
58
|
-
import { Radio as
|
|
59
|
-
import { RadioAddon as
|
|
60
|
-
import { RadioCard as
|
|
37
|
+
import { Input as Ro } from "./components/input/input.js";
|
|
38
|
+
import { Link as Go } from "./components/link/link.js";
|
|
39
|
+
import { List as wo } from "./components/list/list.js";
|
|
40
|
+
import { ListItem as yo } from "./components/list/list-item.js";
|
|
41
|
+
import { Menu as Uo } from "./components/menu/menu.js";
|
|
42
|
+
import { MenuBoxButton as Qo } from "./components/menu/menu-box-button.js";
|
|
43
|
+
import { MenuButton as jo } from "./components/menu/menu-button.js";
|
|
44
|
+
import { MenuDivider as Jo } from "./components/menu/menu-divider.js";
|
|
45
|
+
import { MenuGroup as Oo } from "./components/menu/menu-group.js";
|
|
46
|
+
import { MenuIconButton as Yo } from "./components/menu/menu-icon-button.js";
|
|
47
|
+
import { MenuItem as _o } from "./components/menu/menu-item.js";
|
|
48
|
+
import { MenuList as or } from "./components/menu/menu-list.js";
|
|
49
|
+
import { Message as er } from "./components/message/message.js";
|
|
50
|
+
import { Modal as mr } from "./components/modal/modal.js";
|
|
51
|
+
import { ModalBody as xr } from "./components/modal/modal-body.js";
|
|
52
|
+
import { ModalCloseButton as ar } from "./components/modal/modal-close-button.js";
|
|
53
|
+
import { ModalFooter as nr } from "./components/modal/modal-footer.js";
|
|
54
|
+
import { ModalHeader as dr } from "./components/modal/modal-header.js";
|
|
55
|
+
import { NavigationList as Tr } from "./components/navigation-list/navigation-list.js";
|
|
56
|
+
import { NavigationListButton as sr, NavigationListLink as br } from "./components/navigation-list/navigation-list-item.js";
|
|
57
|
+
import { Paginator as gr } from "./components/paginator/paginator.js";
|
|
58
|
+
import { QuantityButton as Br } from "./components/quantity-button/quantity-button.js";
|
|
59
|
+
import { Radio as Sr } from "./components/radio/radio.js";
|
|
60
|
+
import { RadioAddon as kr } from "./components/radio/radio-addon.js";
|
|
61
|
+
import { RadioCard as Pr } from "./components/radio/radio-card.js";
|
|
61
62
|
import { RadioGroup as Vr } from "./components/radio-group/radio-group.js";
|
|
62
63
|
import { SegmentedControl as Dr } from "./components/segmented-control/segmented-control.js";
|
|
63
|
-
import { Select as
|
|
64
|
-
import { Skeleton as
|
|
65
|
-
import { SkeletonText as
|
|
66
|
-
import { Stack as
|
|
67
|
-
import { StepContext as
|
|
68
|
-
import { Stepper as
|
|
69
|
-
import { Switch as
|
|
70
|
-
import { createColumnHelper as
|
|
71
|
-
import { Table as
|
|
72
|
-
import { TableContent as
|
|
73
|
-
import { useTableContext as
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
64
|
+
import { Select as Ar } from "./components/select/select.js";
|
|
65
|
+
import { Skeleton as Hr } from "./components/skeleton/skeleton.js";
|
|
66
|
+
import { SkeletonText as Nr } from "./components/skeleton/skeleton-text.js";
|
|
67
|
+
import { Stack as zr } from "./components/stack/stack.js";
|
|
68
|
+
import { StepContext as Er } from "./components/stepper/step-context.js";
|
|
69
|
+
import { Stepper as Wr } from "./components/stepper/stepper.js";
|
|
70
|
+
import { Switch as qr } from "./components/switch/switch.js";
|
|
71
|
+
import { createColumnHelper as Kr } from "./node_modules/@tanstack/table-core/build/lib/index.js";
|
|
72
|
+
import { Table as Xr } from "./components/table/table.js";
|
|
73
|
+
import { TableContent as Zr } from "./components/table/table-content.js";
|
|
74
|
+
import { useTableContext as $r } from "./components/table/table-context.js";
|
|
75
|
+
import { TableFilter as re } from "./components/table/table-filter.js";
|
|
76
|
+
import { TableToolbar as te } from "./components/table/table-toolbar.js";
|
|
77
|
+
import { Tab as pe } from "./components/tabs/tab.js";
|
|
78
|
+
import { TabList as fe } from "./components/tabs/tab-list.js";
|
|
79
|
+
import { TabPanel as ie } from "./components/tabs/tab-panel.js";
|
|
80
|
+
import { TabPanels as le } from "./components/tabs/tab-panels.js";
|
|
81
|
+
import { Tabs as ue } from "./components/tabs/tabs.js";
|
|
82
|
+
import { Tag as ce } from "./components/tag/tag.js";
|
|
83
|
+
import { Text as be } from "./components/text/text.js";
|
|
84
|
+
import { Textarea as ge } from "./components/textarea/textarea.js";
|
|
85
|
+
import { useToast as Be } from "./components/toast/toast.js";
|
|
86
|
+
import { ToggleButton as Se } from "./components/toggle-button/toggle-button.js";
|
|
87
|
+
import { Tooltip as ke } from "./components/tooltip/tooltip.js";
|
|
86
88
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
S as Accordion,
|
|
90
|
+
k as AccordionItem,
|
|
91
|
+
P as AccordionPanel,
|
|
90
92
|
V as Alert,
|
|
91
93
|
D as Badge,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
A as Box,
|
|
95
|
+
H as Breadcrumbs,
|
|
96
|
+
N as Button,
|
|
97
|
+
z as Checkbox,
|
|
98
|
+
E as CheckboxGroup,
|
|
97
99
|
a as ColorModeScript,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
100
|
+
W as Combobox,
|
|
101
|
+
q as DatePicker,
|
|
102
|
+
K as DateRangePicker,
|
|
103
|
+
X as DateWeekPicker,
|
|
104
|
+
Z as Divider,
|
|
105
|
+
$ as Drawer,
|
|
106
|
+
ro as Flex,
|
|
107
|
+
to as FormControl,
|
|
108
|
+
po as FormErrorMessage,
|
|
109
|
+
fo as FormHelperText,
|
|
110
|
+
io as FormLabel,
|
|
111
|
+
lo as Grid,
|
|
112
|
+
To as GridItem,
|
|
113
|
+
so as Heading,
|
|
114
|
+
ho as Highlight,
|
|
115
|
+
Mo as Icon,
|
|
116
|
+
Io as IconButton,
|
|
117
|
+
Co as Icons,
|
|
118
|
+
Lo as Image,
|
|
119
|
+
Fo as ImageUpload,
|
|
118
120
|
vo as ImageUploadAspectRatio,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
121
|
+
Ro as Input,
|
|
122
|
+
Go as Link,
|
|
123
|
+
wo as List,
|
|
124
|
+
yo as ListItem,
|
|
125
|
+
Uo as Menu,
|
|
126
|
+
Qo as MenuBoxButton,
|
|
127
|
+
jo as MenuButton,
|
|
128
|
+
Jo as MenuDivider,
|
|
129
|
+
Oo as MenuGroup,
|
|
130
|
+
Yo as MenuIconButton,
|
|
131
|
+
_o as MenuItem,
|
|
132
|
+
or as MenuList,
|
|
133
|
+
er as Message,
|
|
134
|
+
mr as Modal,
|
|
135
|
+
xr as ModalBody,
|
|
136
|
+
ar as ModalCloseButton,
|
|
137
|
+
nr as ModalFooter,
|
|
138
|
+
dr as ModalHeader,
|
|
139
|
+
Tr as NavigationList,
|
|
140
|
+
sr as NavigationListButton,
|
|
141
|
+
br as NavigationListLink,
|
|
142
|
+
gr as Paginator,
|
|
143
|
+
Br as QuantityButton,
|
|
144
|
+
Sr as Radio,
|
|
145
|
+
kr as RadioAddon,
|
|
146
|
+
Pr as RadioCard,
|
|
145
147
|
Vr as RadioGroup,
|
|
146
148
|
Dr as SegmentedControl,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
u as
|
|
167
|
-
T as
|
|
168
|
-
c as
|
|
169
|
-
s as
|
|
170
|
-
b as
|
|
149
|
+
Ar as Select,
|
|
150
|
+
Hr as Skeleton,
|
|
151
|
+
Nr as SkeletonText,
|
|
152
|
+
zr as Stack,
|
|
153
|
+
Er as StepContext,
|
|
154
|
+
Wr as Stepper,
|
|
155
|
+
qr as Switch,
|
|
156
|
+
pe as Tab,
|
|
157
|
+
fe as TabList,
|
|
158
|
+
ie as TabPanel,
|
|
159
|
+
le as TabPanels,
|
|
160
|
+
Xr as Table,
|
|
161
|
+
Zr as TableContent,
|
|
162
|
+
re as TableFilter,
|
|
163
|
+
te as TableToolbar,
|
|
164
|
+
ue as Tabs,
|
|
165
|
+
ce as Tag,
|
|
166
|
+
be as Text,
|
|
167
|
+
ge as Textarea,
|
|
168
|
+
u as ThemeBorderVariable,
|
|
169
|
+
T as ThemeBreakPointVariable,
|
|
170
|
+
c as ThemeColorVariable,
|
|
171
|
+
s as ThemeFontSizeVariable,
|
|
172
|
+
b as ThemeFontVariable,
|
|
173
|
+
h as ThemeIconSizeVariable,
|
|
171
174
|
i as ThemeProvider,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
l as ThemeProviderContext,
|
|
176
|
+
g as ThemeRadiusVariable,
|
|
177
|
+
M as ThemeShadowVariable,
|
|
178
|
+
B as ThemeSpaceVariable,
|
|
179
|
+
Se as ToggleButton,
|
|
180
|
+
ke as Tooltip,
|
|
181
|
+
Kr as createColumnHelper,
|
|
179
182
|
x as isTouchScreenDevice,
|
|
180
183
|
e as useColorMode,
|
|
181
184
|
t as useDisclosure,
|
|
182
185
|
m as useRadioGroup,
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
$r as useTableContext,
|
|
187
|
+
Be as useToast
|
|
185
188
|
};
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { useColorMode } from '@chakra-ui/react';
|
|
2
2
|
export { isTouchScreenDevice } from './theme-helper.js';
|
|
3
|
-
export { ThemeColorModeScript as ColorModeScript, ThemeProvider
|
|
3
|
+
export { ThemeColorModeScript as ColorModeScript, ThemeProvider } from './theme-provider.js';
|
|
4
|
+
export { ThemeProviderContext } from './theme-context.js';
|
|
4
5
|
export type { ThemeProviderProps } from './theme-provider.js';
|
|
5
6
|
export type { BorderProps, ColorProps, CustomChakraBoxProps, LayoutProps, MarginProps, PaddingProps, ShadowProps, ThemeStyleProps, TypographyProps, } from './theme-style-props.js';
|
|
6
7
|
export * from './theme-types.js';
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EAAE,oBAAoB,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ThemeColorValues, ThemeFontValues, GlobalStyles } from './theme-types.js';
|
|
2
|
+
type ThemeProviderContextType = {
|
|
3
|
+
colors: ThemeColorValues;
|
|
4
|
+
fonts: ThemeFontValues;
|
|
5
|
+
fontStyleSheet: string;
|
|
6
|
+
globalStyles: GlobalStyles;
|
|
7
|
+
};
|
|
8
|
+
export declare const ThemeProviderContext: import('react').Context<ThemeProviderContextType>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=theme-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-context.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAErF,KAAK,wBAAwB,GAAG;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,mDAK/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext as o } from "react";
|
|
2
|
+
import { casperUITheme as e } from "./theme-config/theme-casper-ui.js";
|
|
3
|
+
const l = o({
|
|
4
|
+
colors: e.colors,
|
|
5
|
+
fonts: e.fonts,
|
|
6
|
+
fontStyleSheet: e.fontStyleSheet,
|
|
7
|
+
globalStyles: e.globalStyles
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
l as ThemeProviderContext
|
|
11
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider-context.composition.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider-context.composition.tsx"],"names":[],"mappings":"AAaA,wBAAgB,MAAM,4CA8BrB;AAED,wBAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"theme-provider-context.composition.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider-context.composition.tsx"],"names":[],"mappings":"AAaA,wBAAgB,MAAM,4CA8BrB;AAED,wBAAgB,KAAK,4CAmBpB;AAED,wBAAgB,SAAS,4CAkBxB;AAED,wBAAgB,KAAK,4CAyBpB;AAED,wBAAgB,WAAW,4CA2B1B;AAED,wBAAgB,YAAY,4CA2B3B;AAED,wBAAgB,OAAO,4CA6BtB;AAED,wBAAgB,WAAW,4CAa1B;AAED,wBAAgB,SAAS,4CAgCxB"}
|
|
@@ -14,13 +14,6 @@ export type ThemeProviderProps = {
|
|
|
14
14
|
fontStyleSheet?: string;
|
|
15
15
|
globalStyles?: GlobalStyles;
|
|
16
16
|
};
|
|
17
|
-
type ThemeProviderContextType = {
|
|
18
|
-
colors: ThemeColorValues;
|
|
19
|
-
fonts: ThemeFontValues;
|
|
20
|
-
fontStyleSheet: string;
|
|
21
|
-
globalStyles: GlobalStyles;
|
|
22
|
-
};
|
|
23
|
-
export declare const ThemeProviderContext: import('react').Context<ThemeProviderContextType>;
|
|
24
17
|
/**
|
|
25
18
|
* Provides theme appearance to all children rendered within the provider.
|
|
26
19
|
* Default theme values are set to a Casper UI-theme. To override them,
|
|
@@ -34,5 +27,4 @@ export declare function ThemeProvider({ colors, fonts, fontStyleSheet, globalSty
|
|
|
34
27
|
* @see Docs https://caspeco.github.io/casper-ui-library/getting-started/theme/
|
|
35
28
|
*/
|
|
36
29
|
export declare function ThemeColorModeScript(): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
export {};
|
|
38
30
|
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAG/F,MAAM,MAAM,kBAAkB,GAAG;IAChC,iDAAiD;IACjD,QAAQ,EAAE,SAAS,CAAC;IACpB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;8EAC0E;IAC1E,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;iDAE6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC7B,MAA6B,EAC7B,KAA2B,EAC3B,cAA6C,EAC7C,YAAyC,EACzC,QAAQ,GACR,EAAE,kBAAkB,2CAsBpB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,4CAKnC"}
|
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ColorModeScript as
|
|
3
|
-
import
|
|
2
|
+
import { ColorModeScript as p, extendTheme as a, ChakraProvider as f } from "@chakra-ui/react";
|
|
3
|
+
import "react";
|
|
4
4
|
import { createSemanticTokens as d } from "./theme-config/theme.js";
|
|
5
5
|
import { casperUITheme as o } from "./theme-config/theme-casper-ui.js";
|
|
6
|
-
import { componentsConfig as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
colors: t = o.colors,
|
|
15
|
-
fonts: r = o.fonts,
|
|
16
|
-
fontStyleSheet: n = o.fontStyleSheet,
|
|
17
|
-
globalStyles: i = o.globalStyles,
|
|
18
|
-
children: l
|
|
6
|
+
import { componentsConfig as h } from "./theme-config/theme-components.js";
|
|
7
|
+
import { ThemeProviderContext as C } from "./theme-context.js";
|
|
8
|
+
function S({
|
|
9
|
+
colors: r = o.colors,
|
|
10
|
+
fonts: t = o.fonts,
|
|
11
|
+
fontStyleSheet: i = o.fontStyleSheet,
|
|
12
|
+
globalStyles: m = o.globalStyles,
|
|
13
|
+
children: n
|
|
19
14
|
}) {
|
|
20
|
-
const
|
|
15
|
+
const s = {
|
|
21
16
|
cssVarPrefix: "theme",
|
|
22
17
|
initialColorMode: "light",
|
|
23
18
|
useSystemColorMode: !1
|
|
24
|
-
},
|
|
25
|
-
semanticTokens: d(
|
|
26
|
-
components:
|
|
27
|
-
config:
|
|
28
|
-
styles:
|
|
19
|
+
}, c = { global: { ...m, fontStyleSheet: i } }, l = a({
|
|
20
|
+
semanticTokens: d(r, t),
|
|
21
|
+
components: h,
|
|
22
|
+
config: s,
|
|
23
|
+
styles: c
|
|
29
24
|
});
|
|
30
|
-
return /* @__PURE__ */ e(C.Provider, { value: { colors:
|
|
25
|
+
return /* @__PURE__ */ e(C.Provider, { value: { colors: r, fonts: t, fontStyleSheet: i, globalStyles: m }, children: /* @__PURE__ */ e(f, { theme: l, children: n }) });
|
|
31
26
|
}
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */ e(
|
|
27
|
+
function k() {
|
|
28
|
+
return /* @__PURE__ */ e(p, { initialColorMode: "light" });
|
|
34
29
|
}
|
|
35
30
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
C as ThemeProviderContext
|
|
31
|
+
k as ThemeColorModeScript,
|
|
32
|
+
S as ThemeProvider
|
|
39
33
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -30,24 +30,24 @@
|
|
|
30
30
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
31
31
|
"@caspeco/eslint-config": "^4.0.5",
|
|
32
32
|
"@caspeco/prettier-config": "^1.0.6",
|
|
33
|
-
"@eslint/js": "^9.
|
|
34
|
-
"@testing-library/jest-dom": "^6.
|
|
33
|
+
"@eslint/js": "^9.37.0",
|
|
34
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
35
35
|
"@testing-library/react": "^16.3.0",
|
|
36
36
|
"@testing-library/user-event": "^14.6.1",
|
|
37
37
|
"@types/jest": "^30.0.0",
|
|
38
|
-
"@types/node": "^24.
|
|
38
|
+
"@types/node": "^24.7.0",
|
|
39
39
|
"@types/react": "^18.3.12",
|
|
40
40
|
"@types/react-dom": "^18.3.1",
|
|
41
41
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
42
|
-
"eslint": "^9.
|
|
43
|
-
"eslint-plugin-react-hooks": "^
|
|
44
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
42
|
+
"eslint": "^9.37.0",
|
|
43
|
+
"eslint-plugin-react-hooks": "^6.1.1",
|
|
44
|
+
"eslint-plugin-react-refresh": "^0.4.23",
|
|
45
45
|
"globals": "^16.4.0",
|
|
46
46
|
"jsdom": "^27.0.0",
|
|
47
47
|
"tsc-alias": "^1.8.16",
|
|
48
|
-
"typescript": "~5.9.
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vite": "^7.1.
|
|
48
|
+
"typescript": "~5.9.3",
|
|
49
|
+
"typescript-eslint": "^8.45.0",
|
|
50
|
+
"vite": "^7.1.9",
|
|
51
51
|
"vite-plugin-dts": "^4.5.4",
|
|
52
52
|
"vite-tsconfig-paths": "^5.1.4",
|
|
53
53
|
"vitest": "^3.2.4"
|