@televet/kibble-ui 5.0.26 → 5.0.27-frank.2
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/chunks/calendar.component-CNkQkkZ5.js +2 -0
- package/dist/chunks/calendar.component-CNkQkkZ5.js.map +1 -0
- package/dist/chunks/calendar.component-KkAjNHof.js +65 -0
- package/dist/chunks/calendar.component-KkAjNHof.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-Dvc84auK.js +2 -0
- package/dist/chunks/dateTimePicker.component-Dvc84auK.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-YnanZ6z4.js +303 -0
- package/dist/chunks/dateTimePicker.component-YnanZ6z4.js.map +1 -0
- package/dist/chunks/endOfMonth-Cdo637cm.js +23 -0
- package/dist/chunks/endOfMonth-Cdo637cm.js.map +1 -0
- package/dist/chunks/endOfMonth-M8F1WVLW.js +2 -0
- package/dist/chunks/endOfMonth-M8F1WVLW.js.map +1 -0
- package/dist/chunks/{semanticTokens.records-CwC7zhMS.js → semanticTokens.records-Di2_gv9n.js} +6 -6
- package/dist/chunks/{semanticTokens.records-CwC7zhMS.js.map → semanticTokens.records-Di2_gv9n.js.map} +1 -1
- package/dist/chunks/theme-BFbOz0Jj.js.map +1 -1
- package/dist/chunks/theme-BOK659O0.js.map +1 -1
- package/dist/chunks/{theme.provider-CtbJ04tc.js → theme.provider-CVSsJMOG.js} +2 -2
- package/dist/chunks/{theme.provider-CtbJ04tc.js.map → theme.provider-CVSsJMOG.js.map} +1 -1
- package/dist/cjs/components/Calendar/index.cjs +1 -1
- package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
- package/dist/esm/components/Calendar/index.js +1 -1
- package/dist/esm/components/DateTimePicker/index.js +5 -4
- package/dist/esm/components/DateTimePicker/index.js.map +1 -1
- package/dist/esm/components/index.js +106 -105
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +127 -126
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/semanticTokens/index.js +39 -15
- package/dist/esm/theme/semanticTokens/index.js.map +1 -1
- package/dist/types/components/Calendar/calendarFooterButton.component.d.ts +5 -3
- package/dist/types/components/Heading/heading.recipe.d.ts +1 -1
- package/dist/types/components/Link/link.recipe.d.ts +1 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/Text/text.recipe.d.ts +1 -1
- package/dist/types/shared/types/theme.d.ts +1 -1
- package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +37 -37
- package/dist/types/theme/tokens/colors/colors.config.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/calendar.component-6Z5lc-eR.js +0 -2
- package/dist/chunks/calendar.component-6Z5lc-eR.js.map +0 -1
- package/dist/chunks/calendar.component-Dx7c4EIy.js +0 -62
- package/dist/chunks/calendar.component-Dx7c4EIy.js.map +0 -1
- package/dist/chunks/dateTimePicker.component-BwKD6TeU.js +0 -306
- package/dist/chunks/dateTimePicker.component-BwKD6TeU.js.map +0 -1
- package/dist/chunks/dateTimePicker.component-C7SFD9Py.js +0 -2
- package/dist/chunks/dateTimePicker.component-C7SFD9Py.js.map +0 -1
- package/dist/chunks/endOfMonth-ClO3w4vF.js +0 -2
- package/dist/chunks/endOfMonth-ClO3w4vF.js.map +0 -1
- package/dist/chunks/endOfMonth-D0kCU08_.js +0 -19
- package/dist/chunks/endOfMonth-D0kCU08_.js.map +0 -1
- package/dist/types/components/Calendar/calendarTodayButton.component.d.ts +0 -10
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { A as x } from "../chunks/avatarGroup.component-BPhQpVYM.js";
|
|
|
6
6
|
import { B as l } from "../chunks/button.component-BO6oee_V.js";
|
|
7
7
|
import { b as u, d as T, c as S, e as b, a as C } from "../chunks/button.types-BjfcUcMn.js";
|
|
8
8
|
import { B as v } from "../chunks/buttonGroup.component-CO5lC36l.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as P, a as h, i as y } from "../chunks/calendar.component-KkAjNHof.js";
|
|
10
10
|
import { C as k } from "../chunks/card.component-B1AznjWF.js";
|
|
11
11
|
import { c as z } from "../chunks/card.types-Cixp7ouC.js";
|
|
12
12
|
import { C as V } from "../chunks/characterCounter.component-DI_FQNUR.js";
|
|
@@ -15,63 +15,64 @@ import { W as R } from "../chunks/checkboxGroup.component-DW9qUlSm.js";
|
|
|
15
15
|
import { C as G } from "../chunks/conversationCard.component-xIYvp6K5.js";
|
|
16
16
|
import { D as N } from "../chunks/datePicker.component-DeK6pPeC.js";
|
|
17
17
|
import { D as O } from "../chunks/datePicker.provider-C1vLiJEb.js";
|
|
18
|
-
import { D as H
|
|
19
|
-
import { D as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { L as
|
|
26
|
-
import {
|
|
27
|
-
import { M as
|
|
28
|
-
import { M as
|
|
18
|
+
import { D as H } from "../chunks/dateTimePicker.component-YnanZ6z4.js";
|
|
19
|
+
import { D as q, c as J } from "../chunks/endOfMonth-Cdo637cm.js";
|
|
20
|
+
import { D as U } from "../chunks/divider.component-CFOh4Nw3.js";
|
|
21
|
+
import { d as Y, a as Z, b as _ } from "../chunks/divider.types-6MEkMNbx.js";
|
|
22
|
+
import { W as oo } from "../chunks/heading.component-CpSAN3cv.js";
|
|
23
|
+
import { I as ao } from "../chunks/icon.component-PV_nHBId.js";
|
|
24
|
+
import { i as to } from "../chunks/icon.types-DLbVfMjG.js";
|
|
25
|
+
import { L as po } from "../chunks/link.component--URNKuK2.js";
|
|
26
|
+
import { L as mo, l as no } from "../chunks/logo.types-C5GwpHjM.js";
|
|
27
|
+
import { M as xo, m as co } from "../chunks/maintenanceBanner.types-DerZF_8G.js";
|
|
28
|
+
import { M as uo } from "../chunks/menu.component-WHzMw5ZI.js";
|
|
29
|
+
import { M as So, c as bo, a as Co, b as go, m as vo } from "../chunks/modal.types-rx31rD9D.js";
|
|
29
30
|
import { N as Po } from "../chunks/notificationCounter.component-6Q3q8jWj.js";
|
|
30
|
-
import { n as
|
|
31
|
-
import { P as
|
|
32
|
-
import { W as
|
|
33
|
-
import { P as
|
|
34
|
-
import { p as
|
|
35
|
-
import { W as
|
|
36
|
-
import { R as
|
|
37
|
-
import { W as
|
|
38
|
-
import { W as
|
|
39
|
-
import { W as
|
|
40
|
-
import { S as
|
|
41
|
-
import { S as
|
|
42
|
-
import { s as
|
|
43
|
-
import { S as
|
|
44
|
-
import { S as
|
|
45
|
-
import { W as
|
|
46
|
-
import { T as
|
|
47
|
-
import { T as
|
|
48
|
-
import { c as
|
|
49
|
-
import { T as
|
|
31
|
+
import { n as yo, a as Mo } from "../chunks/notificationCounter.types-Dm4PSN2Y.js";
|
|
32
|
+
import { P as Wo } from "../chunks/picture.component-DzdHIFN_.js";
|
|
33
|
+
import { W as Bo, p as Vo } from "../chunks/pinInput.types-bIGh7aUS.js";
|
|
34
|
+
import { P as wo } from "../chunks/popover.component-DIYT1Lc0.js";
|
|
35
|
+
import { p as Ro, b as Lo, a as Go } from "../chunks/popover.types-CQJj3uOX.js";
|
|
36
|
+
import { W as No, a as Fo, r as Oo } from "../chunks/radioGroup.types-DzSpA07h.js";
|
|
37
|
+
import { R as Ho } from "../chunks/radiomark.component-D_7wT5VA.js";
|
|
38
|
+
import { W as qo } from "../chunks/rating.component-BWBPSEEk.js";
|
|
39
|
+
import { W as Qo } from "../chunks/ratingDots.component-BhWM7kTg.js";
|
|
40
|
+
import { W as Xo } from "../chunks/select.component-DckP-f8y.js";
|
|
41
|
+
import { S as Zo } from "../chunks/sortableList.component-CbxbBLVQ.js";
|
|
42
|
+
import { S as $o } from "../chunks/spinner.component-CNHQ8UDz.js";
|
|
43
|
+
import { s as rr } from "../chunks/spinner.types-g7cTFJkb.js";
|
|
44
|
+
import { S as er, s as tr } from "../chunks/styledAvatar.types-BaOkOA8K.js";
|
|
45
|
+
import { S as pr, s as ir } from "../chunks/swatch.types-CkrkMi11.js";
|
|
46
|
+
import { W as nr } from "../chunks/switch.component-DjN67nap.js";
|
|
47
|
+
import { T as xr, a as cr, t as lr } from "../chunks/tab.types-JAJ5Xxff.js";
|
|
48
|
+
import { T as ur } from "../chunks/tag.component-CMsZIhN-.js";
|
|
49
|
+
import { c as Sr, t as br } from "../chunks/tag.types-B-pzEt1I.js";
|
|
50
|
+
import { T as gr, a as vr } from "../chunks/tagBlock.component-CT7_RyJ-.js";
|
|
50
51
|
import { W as Pr } from "../chunks/text.component-DhuUgP3j.js";
|
|
51
|
-
import { W as
|
|
52
|
-
import { W as
|
|
53
|
-
import { M as
|
|
54
|
-
import { T as
|
|
55
|
-
import { T as
|
|
56
|
-
import { useToast as
|
|
57
|
-
import { T as
|
|
58
|
-
import { W as
|
|
59
|
-
import { w as
|
|
60
|
-
import { w as
|
|
61
|
-
import { useBreakpoint as
|
|
62
|
-
import { useColorMode as
|
|
63
|
-
import { useColorModeValue as
|
|
64
|
-
import { useDeviceType as
|
|
65
|
-
import { alignments as
|
|
66
|
-
import { c as
|
|
67
|
-
import { K as
|
|
52
|
+
import { W as yr } from "../chunks/textInput.component-BeiTxTkS.js";
|
|
53
|
+
import { W as kr } from "../chunks/textarea.component-C6Wt1Pk8.js";
|
|
54
|
+
import { M as zr, T as Br } from "../chunks/timePicker.component-CsvyXSRc.js";
|
|
55
|
+
import { T as Ar } from "../chunks/timeRange.component-9Bs6kd18.js";
|
|
56
|
+
import { T as Ir } from "../chunks/timestamp.component-DiZwy6CA.js";
|
|
57
|
+
import { useToast as Lr } from "./components/Toast/index.js";
|
|
58
|
+
import { T as Kr } from "../chunks/tooltip.component-CHohp2qn.js";
|
|
59
|
+
import { W as Fr } from "../chunks/numberInput.component-CRDRjrTH.js";
|
|
60
|
+
import { w as Er } from "../chunks/withDarkMode-C3yba5oU.js";
|
|
61
|
+
import { w as jr } from "../chunks/withLightMode-DUdXB3Uy.js";
|
|
62
|
+
import { useBreakpoint as Jr } from "./hooks/useBreakpoint/index.js";
|
|
63
|
+
import { useColorMode as Ur } from "./hooks/useColorMode/index.js";
|
|
64
|
+
import { useColorModeValue as Yr } from "./hooks/useColorModeValue/index.js";
|
|
65
|
+
import { useDeviceType as _r } from "./hooks/useDeviceType/index.js";
|
|
66
|
+
import { alignments as oa, flexDirections as ra, placements as aa, statuses as ea, typographyVariants as ta } from "./shared/types/index.js";
|
|
67
|
+
import { c as pa } from "../chunks/theme-BOK659O0.js";
|
|
68
|
+
import { K as ma, k as na, s as fa } from "../chunks/theme.provider-CVSsJMOG.js";
|
|
68
69
|
export {
|
|
69
70
|
a as Alert,
|
|
70
71
|
p as Avatar,
|
|
71
72
|
x as AvatarGroup,
|
|
72
73
|
l as Button,
|
|
73
74
|
v as ButtonGroup,
|
|
74
|
-
|
|
75
|
+
P as Calendar,
|
|
75
76
|
h as CalendarFooterButton,
|
|
76
77
|
k as Card,
|
|
77
78
|
V as CharacterCounter,
|
|
@@ -81,45 +82,45 @@ export {
|
|
|
81
82
|
O as DateFormats,
|
|
82
83
|
N as DatePicker,
|
|
83
84
|
H as DateTimePicker,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
85
|
+
q as DateTimePickerDefaultOptionValue,
|
|
86
|
+
U as Divider,
|
|
87
|
+
oo as Heading,
|
|
88
|
+
ao as Icon,
|
|
89
|
+
ma as KibbleThemeProvider,
|
|
90
|
+
po as Link,
|
|
91
|
+
mo as Logo,
|
|
92
|
+
xo as MaintenanceBanner,
|
|
93
|
+
uo as Menu,
|
|
94
|
+
zr as Meridiem,
|
|
95
|
+
So as Modal,
|
|
95
96
|
Po as NotificationCounter,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
Fr as NumberInput,
|
|
98
|
+
Wo as Picture,
|
|
99
|
+
Bo as PinInput,
|
|
100
|
+
wo as Popover,
|
|
101
|
+
No as RadioGroup,
|
|
102
|
+
Ho as Radiomark,
|
|
103
|
+
qo as Rating,
|
|
104
|
+
Qo as RatingDots,
|
|
105
|
+
Xo as Select,
|
|
106
|
+
Zo as SortableList,
|
|
107
|
+
$o as Spinner,
|
|
108
|
+
er as StyledAvatar,
|
|
109
|
+
pr as Swatch,
|
|
110
|
+
nr as Switch,
|
|
111
|
+
xr as Tabs,
|
|
112
|
+
ur as Tag,
|
|
113
|
+
gr as TagBlock,
|
|
114
|
+
vr as TagDisabledState,
|
|
114
115
|
Pr as Text,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
yr as TextInput,
|
|
117
|
+
kr as Textarea,
|
|
118
|
+
Br as TimePicker,
|
|
119
|
+
Ar as TimeRange,
|
|
120
|
+
Ir as Timestamp,
|
|
121
|
+
Kr as Tooltip,
|
|
121
122
|
t as alertButtonPositions,
|
|
122
|
-
|
|
123
|
+
oa as alignments,
|
|
123
124
|
m as avatarSizes,
|
|
124
125
|
n as avatarVariants,
|
|
125
126
|
u as buttonConfigVariants,
|
|
@@ -127,47 +128,47 @@ export {
|
|
|
127
128
|
S as buttonSizes,
|
|
128
129
|
b as buttonSpinnerPlacements,
|
|
129
130
|
C as buttonVariants,
|
|
130
|
-
|
|
131
|
+
J as calendarViews,
|
|
131
132
|
z as cardSizes,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
Sr as closeButtonDisplays,
|
|
134
|
+
pa as colorModeThemeKey,
|
|
135
|
+
Y as dividerOrientations,
|
|
136
|
+
Z as dividerSizes,
|
|
137
|
+
_ as dividerVariants,
|
|
138
|
+
ra as flexDirections,
|
|
139
|
+
to as iconSizes,
|
|
139
140
|
y as isRangePreset,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
141
|
+
na as kibbleThemeConfig,
|
|
142
|
+
no as logoTypes,
|
|
143
|
+
co as maintenanceBannerEnvKeys,
|
|
144
|
+
bo as modalMotionPresets,
|
|
145
|
+
Co as modalPlacements,
|
|
146
|
+
go as modalScrollBehaviors,
|
|
147
|
+
vo as modalSizes,
|
|
148
|
+
yo as notificationCounterSizes,
|
|
149
|
+
Mo as notificationCounterVariants,
|
|
150
|
+
Vo as pinInputTypes,
|
|
151
|
+
aa as placements,
|
|
152
|
+
Ro as popoverSizes,
|
|
153
|
+
Lo as popoverTriggerTypes,
|
|
154
|
+
Go as popoverVariants,
|
|
155
|
+
Fo as radioAlignments,
|
|
156
|
+
Oo as radioTypes,
|
|
157
|
+
rr as spinnerSizes,
|
|
158
|
+
ea as statuses,
|
|
159
|
+
tr as styledAvatarTypes,
|
|
160
|
+
ir as swatchSizes,
|
|
161
|
+
fa as system,
|
|
162
|
+
cr as tabIconPositions,
|
|
163
|
+
lr as tabSizes,
|
|
164
|
+
br as tagSizes,
|
|
165
|
+
ta as typographyVariants,
|
|
166
|
+
Jr as useBreakpoint,
|
|
167
|
+
Ur as useColorMode,
|
|
168
|
+
Yr as useColorModeValue,
|
|
169
|
+
_r as useDeviceType,
|
|
170
|
+
Lr as useToast,
|
|
171
|
+
Er as withDarkMode,
|
|
172
|
+
jr as withLightMode
|
|
172
173
|
};
|
|
173
174
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/theme/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { s, a as d, b as u, c as b } from "../../../chunks/semanticTokens.records-Di2_gv9n.js";
|
|
2
|
+
import { d as x, i as m, e as f } from "../../../chunks/semanticTokens.records-Di2_gv9n.js";
|
|
3
|
+
const k = [
|
|
3
4
|
"text",
|
|
4
5
|
"text.accent",
|
|
5
6
|
"text.accentSubtle",
|
|
@@ -22,7 +23,7 @@ const r = [
|
|
|
22
23
|
"text.subtle.contrast",
|
|
23
24
|
"text.success",
|
|
24
25
|
"text.warning"
|
|
25
|
-
],
|
|
26
|
+
], i = [
|
|
26
27
|
"background.accent",
|
|
27
28
|
"background.accentSubtle",
|
|
28
29
|
"background.ai",
|
|
@@ -89,7 +90,7 @@ const r = [
|
|
|
89
90
|
"background.success.contrast",
|
|
90
91
|
"background.warning",
|
|
91
92
|
"background.warning.contrast"
|
|
92
|
-
],
|
|
93
|
+
], l = ["divider", "divider.default"], p = [
|
|
93
94
|
"border",
|
|
94
95
|
"border.accent",
|
|
95
96
|
"border.accentSubtle",
|
|
@@ -108,17 +109,40 @@ const r = [
|
|
|
108
109
|
"border.success",
|
|
109
110
|
"border.warning"
|
|
110
111
|
];
|
|
112
|
+
function o(r, t) {
|
|
113
|
+
if (r !== null && typeof r == "object" && "value" in r && typeof r.value == "object" && r.value !== null && t in r.value)
|
|
114
|
+
return r.value[t];
|
|
115
|
+
if (r !== null && typeof r == "object") {
|
|
116
|
+
const e = {};
|
|
117
|
+
for (const [a, n] of Object.entries(r))
|
|
118
|
+
e[a === "DEFAULT" ? "default" : a] = o(n, t);
|
|
119
|
+
return e;
|
|
120
|
+
}
|
|
121
|
+
return r;
|
|
122
|
+
}
|
|
123
|
+
const c = /* @__PURE__ */ new Map(), h = (r) => {
|
|
124
|
+
const t = c.get(r);
|
|
125
|
+
if (t) return t;
|
|
126
|
+
const e = r === "light" ? "_light" : "_dark", a = {
|
|
127
|
+
background: o(b, e),
|
|
128
|
+
text: o(u, e),
|
|
129
|
+
border: o(d, e),
|
|
130
|
+
divider: o(s, e)
|
|
131
|
+
};
|
|
132
|
+
return c.set(r, a), a;
|
|
133
|
+
};
|
|
111
134
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
x as colorSchemeToCoreColorMap,
|
|
136
|
+
m as invertToken,
|
|
137
|
+
h as resolveTokens,
|
|
138
|
+
b as semanticBackgroundColorTokens,
|
|
139
|
+
i as semanticBackgroundTokens,
|
|
140
|
+
d as semanticBorderColorTokens,
|
|
141
|
+
p as semanticBorderTokens,
|
|
142
|
+
f as semanticColorTokenRecord,
|
|
143
|
+
s as semanticDividerColorTokens,
|
|
144
|
+
l as semanticDividerTokens,
|
|
145
|
+
u as semanticTextColorTokens,
|
|
146
|
+
k as semanticTypographyTokens
|
|
123
147
|
};
|
|
124
148
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/kibble-primitives/src/semantic/semanticTokens.types.ts"],"sourcesContent":["export type SemanticProperty = 'text' | 'background' | 'border' | 'divider';\n\nexport type SemanticColorScheme =\n | 'primary'\n | 'secondary'\n | 'danger'\n | 'warning'\n | 'success'\n | 'neutral'\n | 'primaryAlpha'\n | 'secondaryAlpha'\n | 'dangerAlpha'\n | 'neutralAlpha'\n | 'gradientFull'\n | 'gradientPink'\n | 'gradientGreen';\n\nexport type SemanticTokenDefinition = {\n value: {\n _light: string | number;\n _dark: string | number;\n };\n};\n\nexport const semanticTypographyTokens = [\n 'text',\n 'text.accent',\n 'text.accentSubtle',\n 'text.brand',\n 'text.brand.contrast',\n 'text.brand.contrast.hover',\n 'text.brand.hover',\n 'text.contrast',\n 'text.danger',\n 'text.danger.contrast',\n 'text.default',\n 'text.info',\n 'text.interactive',\n 'text.interactive.contrast',\n 'text.interactive.contrast.hover',\n 'text.interactive.hover',\n 'text.placeholder',\n 'text.placeholder.contrast',\n 'text.subtle',\n 'text.subtle.contrast',\n 'text.success',\n 'text.warning',\n] as const;\nexport type SemanticTypographyToken = (typeof semanticTypographyTokens)[number];\n\nexport const semanticBackgroundTokens = [\n 'background.accent',\n 'background.accentSubtle',\n 'background.ai',\n 'background.ai.hover',\n 'background.ai.pressed',\n 'background.alpha',\n 'background.alpha.contrast',\n 'background.alpha.contrast.hover',\n 'background.alpha.contrast.pressed',\n 'background.alpha.hover',\n 'background.alpha.pressed',\n 'background.backdrop',\n 'background.brand',\n 'background.contrast',\n 'background.danger',\n 'background.danger.contrast',\n 'background.default',\n 'background.destructive',\n 'background.destructive.hover',\n 'background.destructive.pressed',\n 'background.destructive.contrast',\n 'background.destructive.contrast.hover',\n 'background.destructive.contrast.pressed',\n 'background.destructiveAlpha',\n 'background.destructiveAlpha.contrast',\n 'background.destructiveAlpha.contrast.hover',\n 'background.destructiveAlpha.contrast.pressed',\n 'background.destructiveAlpha.hover',\n 'background.destructiveAlpha.pressed',\n 'background.info',\n 'background.note',\n 'background.note.hover',\n 'background.overlay',\n 'background.primary',\n 'background.primary.contrast',\n 'background.primary.contrast.hover',\n 'background.primary.contrast.pressed',\n 'background.primary.hover',\n 'background.primary.pressed',\n 'background.primaryAlpha',\n 'background.primaryAlpha.contrast',\n 'background.primaryAlpha.contrast.hover',\n 'background.primaryAlpha.contrast.pressed',\n 'background.primaryAlpha.hover',\n 'background.primaryAlpha.pressed',\n 'background.secondary',\n 'background.secondary.contrast',\n 'background.secondary.contrast.hover',\n 'background.secondary.contrast.pressed',\n 'background.secondary.hover',\n 'background.secondary.pressed',\n 'background.secondaryAlpha',\n 'background.secondaryAlpha.contrast',\n 'background.secondaryAlpha.contrast.hover',\n 'background.secondaryAlpha.contrast.pressed',\n 'background.secondaryAlpha.hover',\n 'background.secondaryAlpha.pressed',\n 'background.subtle',\n 'background.contrast.subtle',\n 'background.subtle.less',\n 'background.contrast.moreSubtle',\n 'background.contrast.mostSubtle',\n 'background.success',\n 'background.success.contrast',\n 'background.warning',\n 'background.warning.contrast',\n] as const;\nexport type SemanticBackgroundColorToken = (typeof semanticBackgroundTokens)[number];\n\nexport const semanticDividerTokens = ['divider', 'divider.default'] as const;\nexport type SemanticDividerColorToken = (typeof semanticDividerTokens)[number];\n\nexport const semanticBorderTokens = [\n 'border',\n 'border.accent',\n 'border.accentSubtle',\n 'border.brand',\n 'border.contrast',\n 'border.danger',\n 'border.danger.contrast',\n 'border.default',\n 'border.focus',\n 'border.focus.contrast',\n 'border.info',\n 'border.strong',\n 'border.strong.contrast',\n 'border.subtle',\n 'border.contrast.subtle',\n 'border.success',\n 'border.warning',\n] as const;\nexport type SemanticBorderColorToken = (typeof semanticBorderTokens)[number];\n\nexport type KibbleSemanticColorToken =\n | SemanticBackgroundColorToken\n | SemanticBorderColorToken\n | SemanticDividerColorToken\n | SemanticTypographyToken;\n"],"names":["semanticTypographyTokens","semanticBackgroundTokens","semanticDividerTokens","semanticBorderTokens"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../packages/kibble-primitives/src/semantic/semanticTokens.types.ts","../../../../packages/kibble-primitives/src/semantic/resolveTokens.ts"],"sourcesContent":["export type SemanticProperty = 'text' | 'background' | 'border' | 'divider';\n\nexport type SemanticColorScheme =\n | 'primary'\n | 'secondary'\n | 'danger'\n | 'warning'\n | 'success'\n | 'neutral'\n | 'primaryAlpha'\n | 'secondaryAlpha'\n | 'dangerAlpha'\n | 'neutralAlpha'\n | 'gradientFull'\n | 'gradientPink'\n | 'gradientGreen';\n\nexport type SemanticTokenDefinition = {\n value: {\n _light: string | number;\n _dark: string | number;\n };\n};\n\nexport const semanticTypographyTokens = [\n 'text',\n 'text.accent',\n 'text.accentSubtle',\n 'text.brand',\n 'text.brand.contrast',\n 'text.brand.contrast.hover',\n 'text.brand.hover',\n 'text.contrast',\n 'text.danger',\n 'text.danger.contrast',\n 'text.default',\n 'text.info',\n 'text.interactive',\n 'text.interactive.contrast',\n 'text.interactive.contrast.hover',\n 'text.interactive.hover',\n 'text.placeholder',\n 'text.placeholder.contrast',\n 'text.subtle',\n 'text.subtle.contrast',\n 'text.success',\n 'text.warning',\n] as const;\nexport type SemanticTypographyToken = (typeof semanticTypographyTokens)[number];\n\nexport const semanticBackgroundTokens = [\n 'background.accent',\n 'background.accentSubtle',\n 'background.ai',\n 'background.ai.hover',\n 'background.ai.pressed',\n 'background.alpha',\n 'background.alpha.contrast',\n 'background.alpha.contrast.hover',\n 'background.alpha.contrast.pressed',\n 'background.alpha.hover',\n 'background.alpha.pressed',\n 'background.backdrop',\n 'background.brand',\n 'background.contrast',\n 'background.danger',\n 'background.danger.contrast',\n 'background.default',\n 'background.destructive',\n 'background.destructive.hover',\n 'background.destructive.pressed',\n 'background.destructive.contrast',\n 'background.destructive.contrast.hover',\n 'background.destructive.contrast.pressed',\n 'background.destructiveAlpha',\n 'background.destructiveAlpha.contrast',\n 'background.destructiveAlpha.contrast.hover',\n 'background.destructiveAlpha.contrast.pressed',\n 'background.destructiveAlpha.hover',\n 'background.destructiveAlpha.pressed',\n 'background.info',\n 'background.note',\n 'background.note.hover',\n 'background.overlay',\n 'background.primary',\n 'background.primary.contrast',\n 'background.primary.contrast.hover',\n 'background.primary.contrast.pressed',\n 'background.primary.hover',\n 'background.primary.pressed',\n 'background.primaryAlpha',\n 'background.primaryAlpha.contrast',\n 'background.primaryAlpha.contrast.hover',\n 'background.primaryAlpha.contrast.pressed',\n 'background.primaryAlpha.hover',\n 'background.primaryAlpha.pressed',\n 'background.secondary',\n 'background.secondary.contrast',\n 'background.secondary.contrast.hover',\n 'background.secondary.contrast.pressed',\n 'background.secondary.hover',\n 'background.secondary.pressed',\n 'background.secondaryAlpha',\n 'background.secondaryAlpha.contrast',\n 'background.secondaryAlpha.contrast.hover',\n 'background.secondaryAlpha.contrast.pressed',\n 'background.secondaryAlpha.hover',\n 'background.secondaryAlpha.pressed',\n 'background.subtle',\n 'background.contrast.subtle',\n 'background.subtle.less',\n 'background.contrast.moreSubtle',\n 'background.contrast.mostSubtle',\n 'background.success',\n 'background.success.contrast',\n 'background.warning',\n 'background.warning.contrast',\n] as const;\nexport type SemanticBackgroundColorToken = (typeof semanticBackgroundTokens)[number];\n\nexport const semanticDividerTokens = ['divider', 'divider.default'] as const;\nexport type SemanticDividerColorToken = (typeof semanticDividerTokens)[number];\n\nexport const semanticBorderTokens = [\n 'border',\n 'border.accent',\n 'border.accentSubtle',\n 'border.brand',\n 'border.contrast',\n 'border.danger',\n 'border.danger.contrast',\n 'border.default',\n 'border.focus',\n 'border.focus.contrast',\n 'border.info',\n 'border.strong',\n 'border.strong.contrast',\n 'border.subtle',\n 'border.contrast.subtle',\n 'border.success',\n 'border.warning',\n] as const;\nexport type SemanticBorderColorToken = (typeof semanticBorderTokens)[number];\n\nexport type KibbleSemanticColorToken =\n | SemanticBackgroundColorToken\n | SemanticBorderColorToken\n | SemanticDividerColorToken\n | SemanticTypographyToken;\n","import {\n semanticBackgroundColorTokens,\n semanticBorderColorTokens,\n semanticDividerColorTokens,\n semanticTextColorTokens,\n} from './semanticTokens.records';\n\nexport type ColorMode = 'light' | 'dark';\n\ntype ModeKey = '_light' | '_dark';\n\ntype ResolvedTokenTree<T> = T extends { value: { _light: string; _dark: string } }\n ? string\n : T extends object\n ? { [K in keyof T as K extends 'DEFAULT' ? 'default' : K]: ResolvedTokenTree<T[K]> }\n : never;\n\nfunction resolveNode<T>(node: T, modeKey: ModeKey): ResolvedTokenTree<T> {\n if (\n node !== null &&\n typeof node === 'object' &&\n 'value' in node &&\n typeof (node as Record<string, unknown>).value === 'object' &&\n (node as Record<string, unknown>).value !== null &&\n modeKey in (node as { value: Record<string, unknown> }).value\n ) {\n return (node as { value: Record<string, string> }).value[modeKey] as ResolvedTokenTree<T>;\n }\n\n if (node !== null && typeof node === 'object') {\n const result: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(node)) {\n result[key === 'DEFAULT' ? 'default' : key] = resolveNode(value, modeKey);\n }\n return result as ResolvedTokenTree<T>;\n }\n\n return node as ResolvedTokenTree<T>;\n}\n\ntype ResolvedTokens = {\n background: ResolvedTokenTree<typeof semanticBackgroundColorTokens>;\n text: ResolvedTokenTree<typeof semanticTextColorTokens>;\n border: ResolvedTokenTree<typeof semanticBorderColorTokens>;\n divider: ResolvedTokenTree<typeof semanticDividerColorTokens>;\n};\n\nconst cache = new Map<ColorMode, ResolvedTokens>();\n\nexport const resolveTokens = (mode: ColorMode): ResolvedTokens => {\n const cached = cache.get(mode);\n if (cached) return cached;\n\n const modeKey: ModeKey = mode === 'light' ? '_light' : '_dark';\n const resolved: ResolvedTokens = {\n background: resolveNode(semanticBackgroundColorTokens, modeKey),\n text: resolveNode(semanticTextColorTokens, modeKey),\n border: resolveNode(semanticBorderColorTokens, modeKey),\n divider: resolveNode(semanticDividerColorTokens, modeKey),\n };\n cache.set(mode, resolved);\n return resolved;\n};\n"],"names":["semanticTypographyTokens","semanticBackgroundTokens","semanticDividerTokens","semanticBorderTokens","resolveNode","node","modeKey","result","key","value","cache","resolveTokens","mode","cached","resolved","semanticBackgroundColorTokens","semanticTextColorTokens","semanticBorderColorTokens","semanticDividerColorTokens"],"mappings":";;AAwBO,MAAMA,IAA2B;AAAA,EACtC;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;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAGaC,IAA2B;AAAA,EACtC;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;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;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;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;AAAA,EACA;AACF,GAGaC,IAAwB,CAAC,WAAW,iBAAiB,GAGrDC,IAAuB;AAAA,EAClC;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;AC5HA,SAASC,EAAeC,GAASC,GAAwC;AACvE,MACED,MAAS,QACT,OAAOA,KAAS,YAChB,WAAWA,KACX,OAAQA,EAAiC,SAAU,YAClDA,EAAiC,UAAU,QAC5CC,KAAYD,EAA4C;AAEhD,WAAAA,EAA2C,MAAMC,CAAO;AAGlE,MAAID,MAAS,QAAQ,OAAOA,KAAS,UAAU;AAC7C,UAAME,IAAkC,CAAC;AACzC,eAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQJ,CAAI;AAC5C,MAAAE,EAAOC,MAAQ,YAAY,YAAYA,CAAG,IAAIJ,EAAYK,GAAOH,CAAO;AAEnE,WAAAC;AAAA,EAAA;AAGF,SAAAF;AACT;AASA,MAAMK,wBAAY,IAA+B,GAEpCC,IAAgB,CAACC,MAAoC;AAC1D,QAAAC,IAASH,EAAM,IAAIE,CAAI;AAC7B,MAAIC,EAAe,QAAAA;AAEb,QAAAP,IAAmBM,MAAS,UAAU,WAAW,SACjDE,IAA2B;AAAA,IAC/B,YAAYV,EAAYW,GAA+BT,CAAO;AAAA,IAC9D,MAAMF,EAAYY,GAAyBV,CAAO;AAAA,IAClD,QAAQF,EAAYa,GAA2BX,CAAO;AAAA,IACtD,SAASF,EAAYc,GAA4BZ,CAAO;AAAA,EAC1D;AACM,SAAAI,EAAA,IAAIE,GAAME,CAAQ,GACjBA;AACT;"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { DateTimePickerDefaultOptionValue } from '../DateTimePicker/dateTimePicker.types';
|
|
3
|
+
/** Subset of DateTimePickerDefaultOptionValue presets currently supported by CalendarFooterButton. */
|
|
4
|
+
export type CalendarPreset = DateTimePickerDefaultOptionValue.Today | DateTimePickerDefaultOptionValue.ThisWeek | DateTimePickerDefaultOptionValue.ThisMonth;
|
|
3
5
|
export interface CalendarFooterPresetConfig {
|
|
4
6
|
type: 'preset';
|
|
5
7
|
/** The built-in preset to apply when the button is clicked. */
|
|
6
8
|
value: CalendarPreset;
|
|
7
9
|
/**
|
|
8
10
|
* Override the button label.
|
|
9
|
-
* Defaults:
|
|
11
|
+
* Defaults: Today → 'Today', ThisWeek → 'This Week', ThisMonth → 'This Month'.
|
|
10
12
|
*/
|
|
11
13
|
label?: string;
|
|
12
14
|
/** Optional callback fired after the preset date is selected. */
|
|
13
15
|
onClick?: () => void;
|
|
14
16
|
}
|
|
15
17
|
export interface CalendarFooterCustomConfig {
|
|
16
|
-
type:
|
|
18
|
+
type: DateTimePickerDefaultOptionValue.Custom;
|
|
17
19
|
/** Button label — required for custom type. */
|
|
18
20
|
label: string;
|
|
19
21
|
/** Handler called when the button is clicked. Full control — no date selection is performed. */
|
|
@@ -3,5 +3,5 @@ import { HeadingSize } from './heading.types';
|
|
|
3
3
|
export declare const headingRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
4
4
|
variant: Record<"accent" | "accentSubtle" | "brand" | "brandOnContrast" | "danger" | "dangerOnContrast" | "default" | "info" | "interactive" | "interactiveOnContrast" | "onContrast" | "placeholder" | "placeholderOnContrast" | "subtle" | "subtleOnContrast" | "success" | "warning", SystemStyleObject>;
|
|
5
5
|
size: Record<HeadingSize, SystemStyleObject>;
|
|
6
|
-
fontWeight: Record<import('../../../packages/kibble-primitives/src/
|
|
6
|
+
fontWeight: Record<import('../../../packages/kibble-primitives/src/index.ts').FontWeight, SystemStyleObject>;
|
|
7
7
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const linkRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
2
2
|
variant: Record<"accent" | "accentSubtle" | "brand" | "brandOnContrast" | "danger" | "dangerOnContrast" | "default" | "info" | "interactive" | "interactiveOnContrast" | "onContrast" | "placeholder" | "placeholderOnContrast" | "subtle" | "subtleOnContrast" | "success" | "warning", import('@chakra-ui/react').SystemStyleObject>;
|
|
3
3
|
size: Record<import('..').TextSize, import('@chakra-ui/react').SystemStyleObject>;
|
|
4
|
-
fontWeight: Record<import('../../../packages/kibble-primitives/src/
|
|
4
|
+
fontWeight: Record<import('../../../packages/kibble-primitives/src/index.ts').FontWeight, import('@chakra-ui/react').SystemStyleObject>;
|
|
5
5
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const modalRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "content" | "trigger" | "positioner" | "description" | "footer" | "header" | "title" | "
|
|
1
|
+
export declare const modalRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "content" | "trigger" | "positioner" | "description" | "footer" | "header" | "title" | "backdrop" | "closeTrigger", {
|
|
2
2
|
expanded: {
|
|
3
3
|
true: {
|
|
4
4
|
backdrop: {
|
|
@@ -4,5 +4,5 @@ export declare const textSizeStyles: Record<TextSize, SystemStyleObject>;
|
|
|
4
4
|
export declare const textRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
5
5
|
variant: Record<"accent" | "accentSubtle" | "brand" | "brandOnContrast" | "danger" | "dangerOnContrast" | "default" | "info" | "interactive" | "interactiveOnContrast" | "onContrast" | "placeholder" | "placeholderOnContrast" | "subtle" | "subtleOnContrast" | "success" | "warning", SystemStyleObject>;
|
|
6
6
|
size: Record<TextSize, SystemStyleObject>;
|
|
7
|
-
fontWeight: Record<import('../../../packages/kibble-primitives/src/
|
|
7
|
+
fontWeight: Record<import('../../../packages/kibble-primitives/src/index.ts').FontWeight, SystemStyleObject>;
|
|
8
8
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ColorMode
|
|
1
|
+
export type { ColorMode } from '../../../packages/kibble-primitives/src/index.ts';
|
|
2
2
|
export declare const colorModeThemeKey = "kibble-theme";
|