@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.
Files changed (67) hide show
  1. package/dist/components/alert/alert.js +25 -25
  2. package/dist/components/combobox/combobox-button.d.ts.map +1 -1
  3. package/dist/components/combobox/combobox-button.js +57 -57
  4. package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
  5. package/dist/components/combobox/combobox-menu.js +58 -56
  6. package/dist/components/combobox/combobox.d.ts.map +1 -1
  7. package/dist/components/combobox/combobox.js +34 -34
  8. package/dist/components/combobox/types.d.ts +2 -2
  9. package/dist/components/combobox/types.d.ts.map +1 -1
  10. package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
  11. package/dist/components/date-picker/base-date-picker.js +129 -129
  12. package/dist/components/date-picker/types.d.ts +3 -2
  13. package/dist/components/date-picker/types.d.ts.map +1 -1
  14. package/dist/components/drawer/use-drawer-key-down.js +8 -6
  15. package/dist/components/icon/icon.d.ts.map +1 -1
  16. package/dist/components/icon/icon.js +13 -12
  17. package/dist/components/image-upload/image-cropper.d.ts.map +1 -1
  18. package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
  19. package/dist/components/image-upload/image-upload-dropzone.js +24 -24
  20. package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
  21. package/dist/components/image-upload/image-upload-modal.js +61 -58
  22. package/dist/components/menu/menu-item.d.ts +2 -1
  23. package/dist/components/menu/menu-item.d.ts.map +1 -1
  24. package/dist/components/menu/menu.composition.d.ts.map +1 -1
  25. package/dist/components/modal/modal-footer.d.ts.map +1 -1
  26. package/dist/components/modal/modal-footer.js +16 -13
  27. package/dist/components/table/index.d.ts +1 -0
  28. package/dist/components/table/index.d.ts.map +1 -1
  29. package/dist/components/table/table-cell.js +18 -18
  30. package/dist/components/table/table-content.d.ts.map +1 -1
  31. package/dist/components/table/table-content.js +21 -19
  32. package/dist/components/table/table-context-provider.d.ts +8 -4
  33. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  34. package/dist/components/table/table-context-provider.js +96 -94
  35. package/dist/components/table/table-filter.d.ts +27 -0
  36. package/dist/components/table/table-filter.d.ts.map +1 -0
  37. package/dist/components/table/table-filter.js +140 -0
  38. package/dist/components/table/table-filter.spec.d.ts +2 -0
  39. package/dist/components/table/table-filter.spec.d.ts.map +1 -0
  40. package/dist/components/table/table-header-dropdown.d.ts +1 -1
  41. package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
  42. package/dist/components/table/table-header-dropdown.js +71 -59
  43. package/dist/components/table/table-row.js +40 -40
  44. package/dist/components/table/table-toolbar.d.ts.map +1 -1
  45. package/dist/components/table/table-toolbar.js +111 -81
  46. package/dist/components/table/table.composition.d.ts +1 -1
  47. package/dist/components/table/table.composition.d.ts.map +1 -1
  48. package/dist/components/table/table.d.ts +1 -1
  49. package/dist/components/table/table.d.ts.map +1 -1
  50. package/dist/components/table/table.js +22 -24
  51. package/dist/components/table/translations.d.ts +10 -0
  52. package/dist/components/table/translations.d.ts.map +1 -1
  53. package/dist/components/table/translations.js +17 -9
  54. package/dist/components/table/types.d.ts +1 -5
  55. package/dist/components/table/types.d.ts.map +1 -1
  56. package/dist/components/tabs/tabs.composition.d.ts +1 -1
  57. package/dist/index.js +168 -165
  58. package/dist/theme/index.d.ts +2 -1
  59. package/dist/theme/index.d.ts.map +1 -1
  60. package/dist/theme/theme-context.d.ts +10 -0
  61. package/dist/theme/theme-context.d.ts.map +1 -0
  62. package/dist/theme/theme-context.js +11 -0
  63. package/dist/theme/theme-provider-context.composition.d.ts.map +1 -1
  64. package/dist/theme/theme-provider.d.ts +0 -8
  65. package/dist/theme/theme-provider.d.ts.map +1 -1
  66. package/dist/theme/theme-provider.js +21 -27
  67. 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, ThemeProviderContext as n } from "./theme/theme-provider.js";
4
- import { ThemeBorderVariable as d, ThemeBreakPointVariable as u, ThemeColorVariable as T, ThemeFontSizeVariable as c, ThemeFontVariable as s, ThemeIconSizeVariable as b, ThemeRadiusVariable as h, ThemeShadowVariable as g, ThemeSpaceVariable as M } from "./theme/theme-types.js";
5
- import { Accordion as C } from "./components/accordion/accordion.js";
6
- import { AccordionItem as I } from "./components/accordion/accordion-item.js";
7
- import { AccordionPanel as L } from "./components/accordion/accordion-panel.js";
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 R } from "./components/box/box.js";
11
- import { Breadcrumbs as G } from "./components/breadcrumbs/breadcrumbs.js";
12
- import { Button as w } from "./components/button/button.js";
13
- import { Checkbox as y } from "./components/checkbox/checkbox.js";
14
- import { CheckboxGroup as U } from "./components/checkbox-group/checkbox-group.js";
15
- import { Combobox as Q } from "./components/combobox/combobox.js";
16
- import { DatePicker as j } from "./components/date-picker/date-picker.js";
17
- import { DateRangePicker as J } from "./components/date-picker/date-range-picker.js";
18
- import { DateWeekPicker as O } from "./components/date-picker/date-week-picker.js";
19
- import { Divider as Y } from "./components/divider/divider.js";
20
- import { Drawer as _ } from "./components/drawer/drawer.js";
21
- import { Flex as oo } from "./components/flex/flex.js";
22
- import { FormControl as eo } from "./components/form-control/form-control.js";
23
- import { FormErrorMessage as mo } from "./components/form-control/form-error-message.js";
24
- import { FormHelperText as xo } from "./components/form-control/form-helper-text.js";
25
- import { FormLabel as ao } from "./components/form-control/form-label.js";
26
- import { Grid as no } from "./components/grid/grid.js";
27
- import { GridItem as uo } from "./components/grid/grid-item.js";
28
- import { Heading as co } from "./components/heading/heading.js";
29
- import { Highlight as bo } from "./components/highlight/highlight.js";
30
- import { Icon as go } from "./components/icon/icon.js";
31
- import { Icons as Bo } from "./components/icon/types.js";
32
- import { IconButton as So } from "./components/icon-button/icon-button.js";
33
- import { Image as ko } from "./components/image/image.js";
34
- import { ImageUpload as Po } from "./components/image-upload/image-upload.js";
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 Fo } from "./components/input/input.js";
37
- import { Link as Ao } from "./components/link/link.js";
38
- import { List as Ho } from "./components/list/list.js";
39
- import { ListItem as No } from "./components/list/list-item.js";
40
- import { Menu as zo } from "./components/menu/menu.js";
41
- import { MenuBoxButton as Eo } from "./components/menu/menu-box-button.js";
42
- import { MenuButton as Wo } from "./components/menu/menu-button.js";
43
- import { MenuDivider as qo } from "./components/menu/menu-divider.js";
44
- import { MenuGroup as Ko } from "./components/menu/menu-group.js";
45
- import { MenuIconButton as Xo } from "./components/menu/menu-icon-button.js";
46
- import { MenuItem as Zo } from "./components/menu/menu-item.js";
47
- import { MenuList as $o } from "./components/menu/menu-list.js";
48
- import { Message as rr } from "./components/message/message.js";
49
- import { Modal as tr } from "./components/modal/modal.js";
50
- import { ModalBody as pr } from "./components/modal/modal-body.js";
51
- import { ModalCloseButton as fr } from "./components/modal/modal-close-button.js";
52
- import { ModalFooter as ir } from "./components/modal/modal-footer.js";
53
- import { ModalHeader as lr } from "./components/modal/modal-header.js";
54
- import { NavigationList as ur } from "./components/navigation-list/navigation-list.js";
55
- import { NavigationListButton as cr, NavigationListLink as sr } from "./components/navigation-list/navigation-list-item.js";
56
- import { Paginator as hr } from "./components/paginator/paginator.js";
57
- import { QuantityButton as Mr } from "./components/quantity-button/quantity-button.js";
58
- import { Radio as Cr } from "./components/radio/radio.js";
59
- import { RadioAddon as Ir } from "./components/radio/radio-addon.js";
60
- import { RadioCard as Lr } from "./components/radio/radio-card.js";
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 Rr } from "./components/select/select.js";
64
- import { Skeleton as Gr } from "./components/skeleton/skeleton.js";
65
- import { SkeletonText as wr } from "./components/skeleton/skeleton-text.js";
66
- import { Stack as yr } from "./components/stack/stack.js";
67
- import { StepContext as Ur } from "./components/stepper/step-context.js";
68
- import { Stepper as Qr } from "./components/stepper/stepper.js";
69
- import { Switch as jr } from "./components/switch/switch.js";
70
- import { createColumnHelper as Jr } from "./node_modules/@tanstack/table-core/build/lib/index.js";
71
- import { Table as Or } from "./components/table/table.js";
72
- import { TableContent as Yr } from "./components/table/table-content.js";
73
- import { useTableContext as _r } from "./components/table/table-context.js";
74
- import { TableToolbar as oe } from "./components/table/table-toolbar.js";
75
- import { Tab as ee } from "./components/tabs/tab.js";
76
- import { TabList as me } from "./components/tabs/tab-list.js";
77
- import { TabPanel as xe } from "./components/tabs/tab-panel.js";
78
- import { TabPanels as ae } from "./components/tabs/tab-panels.js";
79
- import { Tabs as ne } from "./components/tabs/tabs.js";
80
- import { Tag as de } from "./components/tag/tag.js";
81
- import { Text as Te } from "./components/text/text.js";
82
- import { Textarea as se } from "./components/textarea/textarea.js";
83
- import { useToast as he } from "./components/toast/toast.js";
84
- import { ToggleButton as Me } from "./components/toggle-button/toggle-button.js";
85
- import { Tooltip as Ce } from "./components/tooltip/tooltip.js";
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
- C as Accordion,
88
- I as AccordionItem,
89
- L as AccordionPanel,
89
+ S as Accordion,
90
+ k as AccordionItem,
91
+ P as AccordionPanel,
90
92
  V as Alert,
91
93
  D as Badge,
92
- R as Box,
93
- G as Breadcrumbs,
94
- w as Button,
95
- y as Checkbox,
96
- U as CheckboxGroup,
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
- Q as Combobox,
99
- j as DatePicker,
100
- J as DateRangePicker,
101
- O as DateWeekPicker,
102
- Y as Divider,
103
- _ as Drawer,
104
- oo as Flex,
105
- eo as FormControl,
106
- mo as FormErrorMessage,
107
- xo as FormHelperText,
108
- ao as FormLabel,
109
- no as Grid,
110
- uo as GridItem,
111
- co as Heading,
112
- bo as Highlight,
113
- go as Icon,
114
- So as IconButton,
115
- Bo as Icons,
116
- ko as Image,
117
- Po as ImageUpload,
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
- Fo as Input,
120
- Ao as Link,
121
- Ho as List,
122
- No as ListItem,
123
- zo as Menu,
124
- Eo as MenuBoxButton,
125
- Wo as MenuButton,
126
- qo as MenuDivider,
127
- Ko as MenuGroup,
128
- Xo as MenuIconButton,
129
- Zo as MenuItem,
130
- $o as MenuList,
131
- rr as Message,
132
- tr as Modal,
133
- pr as ModalBody,
134
- fr as ModalCloseButton,
135
- ir as ModalFooter,
136
- lr as ModalHeader,
137
- ur as NavigationList,
138
- cr as NavigationListButton,
139
- sr as NavigationListLink,
140
- hr as Paginator,
141
- Mr as QuantityButton,
142
- Cr as Radio,
143
- Ir as RadioAddon,
144
- Lr as RadioCard,
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
- Rr as Select,
148
- Gr as Skeleton,
149
- wr as SkeletonText,
150
- yr as Stack,
151
- Ur as StepContext,
152
- Qr as Stepper,
153
- jr as Switch,
154
- ee as Tab,
155
- me as TabList,
156
- xe as TabPanel,
157
- ae as TabPanels,
158
- Or as Table,
159
- Yr as TableContent,
160
- oe as TableToolbar,
161
- ne as Tabs,
162
- de as Tag,
163
- Te as Text,
164
- se as Textarea,
165
- d as ThemeBorderVariable,
166
- u as ThemeBreakPointVariable,
167
- T as ThemeColorVariable,
168
- c as ThemeFontSizeVariable,
169
- s as ThemeFontVariable,
170
- b as ThemeIconSizeVariable,
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
- n as ThemeProviderContext,
173
- h as ThemeRadiusVariable,
174
- g as ThemeShadowVariable,
175
- M as ThemeSpaceVariable,
176
- Me as ToggleButton,
177
- Ce as Tooltip,
178
- Jr as createColumnHelper,
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
- _r as useTableContext,
184
- he as useToast
186
+ $r as useTableContext,
187
+ Be as useToast
185
188
  };
@@ -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, ThemeProviderContext, } from './theme-provider.js';
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,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
+ {"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,4CAkBpB;AAED,wBAAgB,SAAS,4CAcxB;AAED,wBAAgB,KAAK,4CAyBpB;AAED,wBAAgB,WAAW,4CA2B1B;AAED,wBAAgB,YAAY,4CA2B3B;AAED,wBAAgB,OAAO,4CA6BtB;AAED,wBAAgB,WAAW,4CAa1B;AAED,wBAAgB,SAAS,4CAgCxB"}
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,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAE/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,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;AAEH;;;;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
+ {"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 f, extendTheme as a, ChakraProvider as h } from "@chakra-ui/react";
3
- import { createContext as p } from "react";
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 S } from "./theme-config/theme-components.js";
7
- const C = p({
8
- colors: o.colors,
9
- fonts: o.fonts,
10
- fontStyleSheet: o.fontStyleSheet,
11
- globalStyles: o.globalStyles
12
- });
13
- function M({
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 m = {
15
+ const s = {
21
16
  cssVarPrefix: "theme",
22
17
  initialColorMode: "light",
23
18
  useSystemColorMode: !1
24
- }, s = { global: { ...i, fontStyleSheet: n } }, c = a({
25
- semanticTokens: d(t, r),
26
- components: S,
27
- config: m,
28
- styles: s
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: t, fonts: r, fontStyleSheet: n, globalStyles: i }, children: /* @__PURE__ */ e(h, { theme: c, children: l }) });
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 P() {
33
- return /* @__PURE__ */ e(f, { initialColorMode: "light" });
27
+ function k() {
28
+ return /* @__PURE__ */ e(p, { initialColorMode: "light" });
34
29
  }
35
30
  export {
36
- P as ThemeColorModeScript,
37
- M as ThemeProvider,
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": "6.1.0",
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.36.0",
34
- "@testing-library/jest-dom": "^6.8.0",
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.5.2",
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.36.0",
43
- "eslint-plugin-react-hooks": "^5.2.0",
44
- "eslint-plugin-react-refresh": "^0.4.20",
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.2",
49
- "typescript-eslint": "^8.44.0",
50
- "vite": "^7.1.6",
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"