@televet/kibble-ui 4.0.0-beta.94 → 4.0.0-beta.96

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 (48) hide show
  1. package/dist/chunks/{popover.component-CDvn34mM.js → popover.component-BnIYkGYM.js} +2 -2
  2. package/dist/chunks/{popover.component-CDvn34mM.js.map → popover.component-BnIYkGYM.js.map} +1 -1
  3. package/dist/chunks/{popover.component-DBDBFljk.js → popover.component-UkDDe5Dh.js} +1 -2
  4. package/dist/chunks/{popover.component-DBDBFljk.js.map → popover.component-UkDDe5Dh.js.map} +1 -1
  5. package/dist/chunks/theme-BFbOz0Jj.js +2 -0
  6. package/dist/chunks/theme-BFbOz0Jj.js.map +1 -0
  7. package/dist/chunks/theme-BOK659O0.js +5 -0
  8. package/dist/chunks/theme-BOK659O0.js.map +1 -0
  9. package/dist/chunks/{theme.provider-Dj8NjgPW.js → theme.provider-Bt7Zc9PF.js} +4 -4
  10. package/dist/chunks/{theme.provider-Dj8NjgPW.js.map → theme.provider-Bt7Zc9PF.js.map} +1 -1
  11. package/dist/chunks/{theme.provider-VIWx5x9g.js → theme.provider-DHvMwBwG.js} +517 -516
  12. package/dist/chunks/{theme.provider-VIWx5x9g.js.map → theme.provider-DHvMwBwG.js.map} +1 -1
  13. package/dist/chunks/{timePicker.component-Bk6YAjmJ.js → timePicker.component-DXkOhFKy.js} +2 -2
  14. package/dist/chunks/{timePicker.component-Bk6YAjmJ.js.map → timePicker.component-DXkOhFKy.js.map} +1 -1
  15. package/dist/chunks/{timePicker.component-CoQ_s8Vc.js → timePicker.component-D_0jwXVM.js} +2 -2
  16. package/dist/chunks/{timePicker.component-CoQ_s8Vc.js.map → timePicker.component-D_0jwXVM.js.map} +1 -1
  17. package/dist/chunks/{timeRange.component-BJRcb-HV.js → timeRange.component-BTmY7o_y.js} +2 -2
  18. package/dist/chunks/{timeRange.component-BJRcb-HV.js.map → timeRange.component-BTmY7o_y.js.map} +1 -1
  19. package/dist/chunks/{timeRange.component-BwJfza8q.js → timeRange.component-bC1TS9T0.js} +2 -2
  20. package/dist/chunks/{timeRange.component-BwJfza8q.js.map → timeRange.component-bC1TS9T0.js.map} +1 -1
  21. package/dist/cjs/components/Popover/index.cjs +1 -1
  22. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  23. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  24. package/dist/cjs/components/index.cjs +1 -1
  25. package/dist/cjs/hooks/useColorMode/index.cjs +1 -1
  26. package/dist/cjs/hooks/useColorMode/index.cjs.map +1 -1
  27. package/dist/cjs/index.cjs +1 -1
  28. package/dist/cjs/shared/index.cjs +1 -1
  29. package/dist/cjs/shared/types/index.cjs +1 -1
  30. package/dist/cjs/shared/types/index.cjs.map +1 -1
  31. package/dist/cjs/theme/index.cjs +1 -1
  32. package/dist/esm/components/Popover/index.js +1 -1
  33. package/dist/esm/components/TimePicker/index.js +1 -1
  34. package/dist/esm/components/TimeRange/index.js +1 -1
  35. package/dist/esm/components/index.js +3 -3
  36. package/dist/esm/hooks/useColorMode/index.js +8 -6
  37. package/dist/esm/hooks/useColorMode/index.js.map +1 -1
  38. package/dist/esm/index.js +40 -38
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/esm/shared/index.js +8 -6
  41. package/dist/esm/shared/index.js.map +1 -1
  42. package/dist/esm/shared/types/index.js +5 -3
  43. package/dist/esm/shared/types/index.js.map +1 -1
  44. package/dist/esm/theme/index.js +1 -1
  45. package/dist/types/hooks/useColorMode/index.d.ts +3 -2
  46. package/dist/types/shared/types/theme.d.ts +1 -0
  47. package/dist/types/theme/providers/theme.provider.d.ts +1 -1
  48. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -2,17 +2,17 @@ import { A as a, a as e } from "../chunks/alert.types-DeHWvQla.js";
2
2
  import { A as s } from "../chunks/avatar.component-CV_95YCj.js";
3
3
  import { a as i, b as m } from "../chunks/avatar.types-C6dZZjdi.js";
4
4
  import { A as f } from "../chunks/avatarGroup.component-CPTXS5Mp.js";
5
- import { B as l } from "../chunks/button.component-DOAhnxbj.js";
6
- import { b as u, d, c as T, e as S, a as v } from "../chunks/button.types-CujqF5RD.js";
5
+ import { B as c } from "../chunks/button.component-DOAhnxbj.js";
6
+ import { b as d, d as u, c as T, e as S, a as v } from "../chunks/button.types-CujqF5RD.js";
7
7
  import { B as g } from "../chunks/buttonGroup.component-BJl5t4CV.js";
8
- import { C as P } from "../chunks/card.component-DNX41NGG.js";
8
+ import { C as h } from "../chunks/card.component-DNX41NGG.js";
9
9
  import { c as y } from "../chunks/card.types-Cixp7ouC.js";
10
- import { C as D } from "../chunks/characterCounter.component-C4sKYWJ2.js";
10
+ import { C as z } from "../chunks/characterCounter.component-C4sKYWJ2.js";
11
11
  import { W } from "../chunks/checkbox.component-BpSGOInE.js";
12
12
  import { W as V } from "../chunks/checkboxGroup.component-B154cVx5.js";
13
13
  import { C as A } from "../chunks/conversationCard.component-DCpGDLwc.js";
14
14
  import { a as I, D as L } from "../chunks/datePicker.component-DSEMVYWG.js";
15
- import { D as R, d as K, a as N, b as F } from "../chunks/divider.types-0j5qRXed.js";
15
+ import { D as K, d as R, a as N, b as F } from "../chunks/divider.types-0j5qRXed.js";
16
16
  import { W as O } from "../chunks/heading.component-BHha3j1I.js";
17
17
  import { I as q } from "../chunks/icon.component-DszmCnE4.js";
18
18
  import { i as J } from "../chunks/icon.types-DLbVfMjG.js";
@@ -22,17 +22,17 @@ import { M as oo } from "../chunks/menu.component-D38vU6MX.js";
22
22
  import { M as ao, c as eo, a as to, b as so, m as po } from "../chunks/modal.types-mGxpGfVt.js";
23
23
  import { N as mo } from "../chunks/notificationCounter.component-BzhAKrKR.js";
24
24
  import { n as fo, a as no } from "../chunks/notificationCounter.types-Dm4PSN2Y.js";
25
- import { P as co } from "../chunks/picture.component-DECGd77u.js";
25
+ import { P as lo } from "../chunks/picture.component-DECGd77u.js";
26
26
  import { W as To, p as So } from "../chunks/pinInput.types-CD_tKvQm.js";
27
- import { P as bo } from "../chunks/popover.component-DBDBFljk.js";
28
- import { p as Co, b as Po, a as ho } from "../chunks/popover.types-D1O-Ehsz.js";
29
- import { W as zo } from "../chunks/radioGroup.component-DJsYK4YT.js";
30
- import { W as Mo } from "../chunks/ratingDots.component-BdUvoShh.js";
27
+ import { P as bo } from "../chunks/popover.component-UkDDe5Dh.js";
28
+ import { p as Co, b as ho, a as Po } from "../chunks/popover.types-D1O-Ehsz.js";
29
+ import { W as Mo } from "../chunks/radioGroup.component-DJsYK4YT.js";
30
+ import { W as Do } from "../chunks/ratingDots.component-BdUvoShh.js";
31
31
  import { W as Bo } from "../chunks/select.component-BNMyz5Nm.js";
32
32
  import { S as ko } from "../chunks/sortableList.component-BKthQS8R.js";
33
33
  import { S as wo } from "../chunks/spinner.component-CzTRzWbL.js";
34
34
  import { s as Lo } from "../chunks/spinner.types-g7cTFJkb.js";
35
- import { S as Ro, s as Ko } from "../chunks/styledAvatar.types-DXwe2DPH.js";
35
+ import { S as Ko, s as Ro } from "../chunks/styledAvatar.types-DXwe2DPH.js";
36
36
  import { S as Fo, s as Ho } from "../chunks/swatch.types-DbgA3RWc.js";
37
37
  import { W as jo } from "../chunks/switch.component-DVHjLc9H.js";
38
38
  import { T as Eo } from "../chunks/tabs.component-b8VxTs-T.js";
@@ -42,51 +42,52 @@ import { T as _o, a as $o } from "../chunks/tagBlock.component-CfxiQgjI.js";
42
42
  import { W as rr } from "../chunks/text.component-DJW--Vty.js";
43
43
  import { W as er } from "../chunks/textInput.component-evu71Hys.js";
44
44
  import { W as sr } from "../chunks/textarea.component-CZQMAMYT.js";
45
- import { M as ir, T as mr } from "../chunks/timePicker.component-Bk6YAjmJ.js";
46
- import { T as fr } from "../chunks/timeRange.component-BJRcb-HV.js";
47
- import { T as lr } from "../chunks/timestamp.component-DLqT7x-O.js";
48
- import { useToast as ur } from "./components/Toast/index.js";
45
+ import { M as ir, T as mr } from "../chunks/timePicker.component-DXkOhFKy.js";
46
+ import { T as fr } from "../chunks/timeRange.component-BTmY7o_y.js";
47
+ import { T as cr } from "../chunks/timestamp.component-DLqT7x-O.js";
48
+ import { useToast as dr } from "./components/Toast/index.js";
49
49
  import { T as Tr } from "../chunks/tooltip.component-Cr_en1NQ.js";
50
50
  import { w as vr } from "../chunks/withDarkMode-BE00aGRV.js";
51
51
  import { w as gr } from "../chunks/withLightMode-UfFl5ry6.js";
52
- import { useBreakpoint as Pr } from "./hooks/useBreakpoint/index.js";
52
+ import { useBreakpoint as hr } from "./hooks/useBreakpoint/index.js";
53
53
  import { useColorMode as yr } from "./hooks/useColorMode/index.js";
54
- import { useColorModeValue as Dr } from "./hooks/useColorModeValue/index.js";
54
+ import { useColorModeValue as zr } from "./hooks/useColorModeValue/index.js";
55
55
  import { useDeviceType as Wr } from "./hooks/useDeviceType/index.js";
56
56
  import { alignments as Vr, flexDirections as kr, placements as Ar, statuses as wr, typographyVariants as Ir } from "./shared/types/index.js";
57
- import { K as Gr, s as Rr } from "../chunks/theme.provider-VIWx5x9g.js";
57
+ import { c as Gr } from "../chunks/theme-BOK659O0.js";
58
+ import { K as Rr, s as Nr } from "../chunks/theme.provider-DHvMwBwG.js";
58
59
  export {
59
60
  a as Alert,
60
61
  s as Avatar,
61
62
  f as AvatarGroup,
62
- l as Button,
63
+ c as Button,
63
64
  g as ButtonGroup,
64
- P as Card,
65
- D as CharacterCounter,
65
+ h as Card,
66
+ z as CharacterCounter,
66
67
  W as Checkbox,
67
68
  V as CheckboxGroup,
68
69
  A as ConversationCard,
69
70
  I as DateFormats,
70
71
  L as DatePicker,
71
- R as Divider,
72
+ K as Divider,
72
73
  O as Heading,
73
74
  q as Icon,
74
- Gr as KibbleThemeProvider,
75
+ Rr as KibbleThemeProvider,
75
76
  U as Link,
76
77
  Y as Logo,
77
78
  oo as Menu,
78
79
  ir as Meridiem,
79
80
  ao as Modal,
80
81
  mo as NotificationCounter,
81
- co as Picture,
82
+ lo as Picture,
82
83
  To as PinInput,
83
84
  bo as Popover,
84
- zo as RadioGroup,
85
- Mo as RatingDots,
85
+ Mo as RadioGroup,
86
+ Do as RatingDots,
86
87
  Bo as Select,
87
88
  ko as SortableList,
88
89
  wo as Spinner,
89
- Ro as StyledAvatar,
90
+ Ko as StyledAvatar,
90
91
  Fo as Swatch,
91
92
  jo as Switch,
92
93
  Eo as Tabs,
@@ -98,20 +99,21 @@ export {
98
99
  sr as Textarea,
99
100
  mr as TimePicker,
100
101
  fr as TimeRange,
101
- lr as Timestamp,
102
+ cr as Timestamp,
102
103
  Tr as Tooltip,
103
104
  e as alertButtonPositions,
104
105
  Vr as alignments,
105
106
  i as avatarSizes,
106
107
  m as avatarVariants,
107
- u as buttonConfigVariants,
108
- d as buttonIconPositions,
108
+ d as buttonConfigVariants,
109
+ u as buttonIconPositions,
109
110
  T as buttonSizes,
110
111
  S as buttonSpinnerPlacements,
111
112
  v as buttonVariants,
112
113
  y as cardSizes,
113
114
  Xo as closeButtonDisplays,
114
- K as dividerOrientations,
115
+ Gr as colorModeThemeKey,
116
+ R as dividerOrientations,
115
117
  N as dividerSizes,
116
118
  F as dividerVariants,
117
119
  kr as flexDirections,
@@ -127,20 +129,20 @@ export {
127
129
  So as pinInputTypes,
128
130
  Ar as placements,
129
131
  Co as popoverSizes,
130
- Po as popoverTriggerTypes,
131
- ho as popoverVariants,
132
+ ho as popoverTriggerTypes,
133
+ Po as popoverVariants,
132
134
  Lo as spinnerSizes,
133
135
  wr as statuses,
134
- Ko as styledAvatarTypes,
136
+ Ro as styledAvatarTypes,
135
137
  Ho as swatchSizes,
136
- Rr as system,
138
+ Nr as system,
137
139
  Yo as tagSizes,
138
140
  Ir as typographyVariants,
139
- Pr as useBreakpoint,
141
+ hr as useBreakpoint,
140
142
  yr as useColorMode,
141
- Dr as useColorModeValue,
143
+ zr as useColorModeValue,
142
144
  Wr as useDeviceType,
143
- ur as useToast,
145
+ dr as useToast,
144
146
  vr as withDarkMode,
145
147
  gr as withLightMode
146
148
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,11 @@
1
- import { alignments as s, flexDirections as a, placements as n, statuses as r, typographyVariants as i } from "./types/index.js";
1
+ import { alignments as t, flexDirections as r, placements as s, statuses as a, typographyVariants as m } from "./types/index.js";
2
+ import { c as p } from "../../chunks/theme-BOK659O0.js";
2
3
  export {
3
- s as alignments,
4
- a as flexDirections,
5
- n as placements,
6
- r as statuses,
7
- i as typographyVariants
4
+ t as alignments,
5
+ p as colorModeThemeKey,
6
+ r as flexDirections,
7
+ s as placements,
8
+ a as statuses,
9
+ m as typographyVariants
8
10
  };
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,4 +1,5 @@
1
- const t = ["start", "end", "center"], n = ["row", "column", "row-reverse", "column-reverse"], e = [
1
+ import { c } from "../../../chunks/theme-BOK659O0.js";
2
+ const t = ["start", "end", "center"], e = ["row", "column", "row-reverse", "column-reverse"], n = [
2
3
  "top",
3
4
  "right",
4
5
  "bottom",
@@ -32,8 +33,9 @@ const t = ["start", "end", "center"], n = ["row", "column", "row-reverse", "colu
32
33
  ];
33
34
  export {
34
35
  t as alignments,
35
- n as flexDirections,
36
- e as placements,
36
+ c as colorModeThemeKey,
37
+ e as flexDirections,
38
+ n as placements,
37
39
  r as statuses,
38
40
  o as typographyVariants
39
41
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/shared/types/alignment.ts","../../../../src/shared/types/placement.ts","../../../../src/shared/types/status.ts","../../../../src/shared/types/typography.ts"],"sourcesContent":["export const alignments = ['start', 'end', 'center'] as const;\nexport type Alignment = (typeof alignments)[number];\n\nexport const flexDirections = ['row', 'column', 'row-reverse', 'column-reverse'] as const;\nexport type FlexDirection = (typeof flexDirections)[number];\n","export const placements = [\n 'top',\n 'right',\n 'bottom',\n 'left',\n 'top-start',\n 'top-end',\n 'right-start',\n 'right-end',\n 'bottom-start',\n 'bottom-end',\n 'left-start',\n 'left-end',\n] as const;\n\nexport type Placement = (typeof placements)[number];\n","export const statuses = ['info', 'success', 'warning', 'error', 'default'] as const;\n\nexport type Status = (typeof statuses)[number];\n","export const typographyVariants = [\n 'accent',\n 'accentSubtle',\n 'brand',\n 'brandOnContrast',\n 'danger',\n 'dangerOnContrast',\n 'default',\n 'info',\n 'interactive',\n 'interactiveOnContrast',\n 'onContrast',\n 'placeholder',\n 'placeholderOnContrast',\n 'subtle',\n 'subtleOnContrast',\n 'success',\n 'warning',\n] as const;\nexport type TypographyVariant = (typeof typographyVariants)[number];\n"],"names":["alignments","flexDirections","placements","statuses","typographyVariants"],"mappings":"AAAO,MAAMA,IAAa,CAAC,SAAS,OAAO,QAAQ,GAGtCC,IAAiB,CAAC,OAAO,UAAU,eAAe,gBAAgB,GCHlEC,IAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GCbaC,IAAW,CAAC,QAAQ,WAAW,WAAW,SAAS,SAAS,GCA5DC,IAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/shared/types/alignment.ts","../../../../src/shared/types/placement.ts","../../../../src/shared/types/status.ts","../../../../src/shared/types/typography.ts"],"sourcesContent":["export const alignments = ['start', 'end', 'center'] as const;\nexport type Alignment = (typeof alignments)[number];\n\nexport const flexDirections = ['row', 'column', 'row-reverse', 'column-reverse'] as const;\nexport type FlexDirection = (typeof flexDirections)[number];\n","export const placements = [\n 'top',\n 'right',\n 'bottom',\n 'left',\n 'top-start',\n 'top-end',\n 'right-start',\n 'right-end',\n 'bottom-start',\n 'bottom-end',\n 'left-start',\n 'left-end',\n] as const;\n\nexport type Placement = (typeof placements)[number];\n","export const statuses = ['info', 'success', 'warning', 'error', 'default'] as const;\n\nexport type Status = (typeof statuses)[number];\n","export const typographyVariants = [\n 'accent',\n 'accentSubtle',\n 'brand',\n 'brandOnContrast',\n 'danger',\n 'dangerOnContrast',\n 'default',\n 'info',\n 'interactive',\n 'interactiveOnContrast',\n 'onContrast',\n 'placeholder',\n 'placeholderOnContrast',\n 'subtle',\n 'subtleOnContrast',\n 'success',\n 'warning',\n] as const;\nexport type TypographyVariant = (typeof typographyVariants)[number];\n"],"names":["alignments","flexDirections","placements","statuses","typographyVariants"],"mappings":";AAAO,MAAMA,IAAa,CAAC,SAAS,OAAO,QAAQ,GAGtCC,IAAiB,CAAC,OAAO,UAAU,eAAe,gBAAgB,GCHlEC,IAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GCbaC,IAAW,CAAC,QAAQ,WAAW,WAAW,SAAS,SAAS,GCA5DC,IAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
@@ -1,4 +1,4 @@
1
- import { K as r, s as m } from "../../chunks/theme.provider-VIWx5x9g.js";
1
+ import { K as r, s as m } from "../../chunks/theme.provider-DHvMwBwG.js";
2
2
  export {
3
3
  r as KibbleThemeProvider,
4
4
  m as system
@@ -1,9 +1,10 @@
1
1
  import { ColorMode } from '../../shared/types/theme';
2
2
  export interface UseColorModeReturn {
3
3
  colorMode: ColorMode;
4
+ colorModeThemeKey: string;
5
+ forcedColorMode?: ColorMode;
6
+ setColorMode: (colorMode: ColorMode | 'system') => void;
4
7
  systemColorMode: ColorMode;
5
- setColorMode: (colorMode: ColorMode) => void;
6
8
  toggleColorMode: () => void;
7
- forcedTheme?: ColorMode;
8
9
  }
9
10
  export declare const useColorMode: () => UseColorModeReturn;
@@ -1 +1,2 @@
1
1
  export type ColorMode = 'light' | 'dark';
2
+ export declare const colorModeThemeKey = "kibble-theme";
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { ChakraProviderProps } from '@chakra-ui/react';
3
3
  import { SystemContext } from '@chakra-ui/react/styled-system';
4
4
  import { ColorModeProviderProps } from './colorMode.provider';
5
- interface KibbleThemeProviderProps extends Omit<ChakraProviderProps, 'value'>, Omit<ColorModeProviderProps, 'children'> {
5
+ interface KibbleThemeProviderProps extends Omit<ChakraProviderProps, 'value'>, Omit<ColorModeProviderProps, 'children' | 'storageKey'> {
6
6
  customTheme?: SystemContext;
7
7
  }
8
8
  export declare const KibbleThemeProvider: ({ customTheme, children, enableSystem, ...rest }: KibbleThemeProviderProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
3
  "description": "Kibble Design System by Otto",
4
- "version": "4.0.0-beta.94",
4
+ "version": "4.0.0-beta.96",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
7
7
  "module": "dist/esm/index.js",