@cascivo/react 0.12.0 → 0.13.1
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/accordion/accordion.js +46 -44
- package/dist/action-sheet/action-sheet.js +16 -16
- package/dist/alert-dialog/alert-dialog.js +34 -34
- package/dist/app-shell/app-shell.css +1 -1
- package/dist/app-shell/app-shell.js +36 -33
- package/dist/app-shell/app-shell.module.js +8 -8
- package/dist/avatar-group/avatar-group.js +6 -6
- package/dist/badge/badge.js +17 -10
- package/dist/bottom-sheet/bottom-sheet.js +18 -18
- package/dist/button/button.css +1 -1
- package/dist/button/button.js +15 -12
- package/dist/button/button.module.js +1 -1
- package/dist/button-group/button-group.js +8 -8
- package/dist/card/card.css +1 -1
- package/dist/card/card.module.js +8 -8
- package/dist/carousel/carousel.js +20 -20
- package/dist/checkbox/checkbox.js +21 -21
- package/dist/checkbox-card/checkbox-card.js +15 -13
- package/dist/collapsible/collapsible.js +7 -7
- package/dist/color-picker/color-picker.js +26 -26
- package/dist/combobox/combobox.css +1 -1
- package/dist/combobox/combobox.js +86 -86
- package/dist/combobox/combobox.module.js +15 -15
- package/dist/command-menu/command-menu.js +111 -111
- package/dist/comparison/comparison.js +10 -10
- package/dist/context-menu/context-menu.js +9 -9
- package/dist/copy-button/copy-button.js +18 -16
- package/dist/data-table/data-table.css +1 -1
- package/dist/data-table/data-table.js +8 -2
- package/dist/data-table/data-table.module.js +29 -29
- package/dist/date-picker/date-picker.css +1 -1
- package/dist/date-picker/date-picker.js +25 -25
- package/dist/date-picker/date-picker.module.js +19 -19
- package/dist/date-range-picker/date-range-picker.js +26 -26
- package/dist/drawer/drawer.css +1 -1
- package/dist/drawer/drawer.js +18 -17
- package/dist/drawer/drawer.module.js +9 -9
- package/dist/dropdown/dropdown.js +48 -48
- package/dist/editable/editable.js +11 -11
- package/dist/fab/fab.js +53 -53
- package/dist/field/field.js +8 -8
- package/dist/file-uploader/file-uploader.css +1 -1
- package/dist/file-uploader/file-uploader.js +19 -19
- package/dist/file-uploader/file-uploader.module.js +14 -14
- package/dist/filter/filter.js +10 -9
- package/dist/header-panel/header-panel.js +31 -31
- package/dist/hover-card/hover-card.js +21 -21
- package/dist/icon-button/icon-button.css +1 -1
- package/dist/icon-button/icon-button.js +5 -5
- package/dist/icon-button/icon-button.module.js +1 -1
- package/dist/index.d.ts +1475 -251
- package/dist/input/input.css +1 -1
- package/dist/input/input.js +22 -21
- package/dist/input/input.module.js +5 -5
- package/dist/item/item.css +1 -1
- package/dist/item/item.module.js +6 -6
- package/dist/layouts/src/page-header/page-header.css +1 -0
- package/dist/layouts/src/page-header/page-header.js +33 -0
- package/dist/layouts/src/page-header/page-header.module.js +13 -0
- package/dist/link/link.js +14 -12
- package/dist/log-viewer/log-viewer.js +26 -26
- package/dist/menu/menu.js +20 -20
- package/dist/menu-button/menu-button.js +48 -48
- package/dist/menubar/menubar.js +42 -42
- package/dist/modal/modal.css +1 -1
- package/dist/modal/modal.js +41 -35
- package/dist/modal/modal.module.js +8 -7
- package/dist/multi-select/multi-select.css +1 -1
- package/dist/multi-select/multi-select.js +57 -57
- package/dist/multi-select/multi-select.module.js +11 -11
- package/dist/native-select/native-select.js +13 -11
- package/dist/navigation-menu/navigation-menu.js +46 -46
- package/dist/node/accordion/accordion.js +46 -44
- package/dist/node/action-sheet/action-sheet.js +16 -16
- package/dist/node/alert-dialog/alert-dialog.js +34 -34
- package/dist/node/app-shell/app-shell.js +36 -33
- package/dist/node/app-shell/app-shell.module.js +8 -8
- package/dist/node/avatar-group/avatar-group.js +6 -6
- package/dist/node/badge/badge.js +17 -10
- package/dist/node/bottom-sheet/bottom-sheet.js +18 -18
- package/dist/node/button/button.js +15 -12
- package/dist/node/button/button.module.js +1 -1
- package/dist/node/button-group/button-group.js +8 -8
- package/dist/node/card/card.module.js +8 -8
- package/dist/node/carousel/carousel.js +20 -20
- package/dist/node/checkbox/checkbox.js +21 -21
- package/dist/node/checkbox-card/checkbox-card.js +15 -13
- package/dist/node/collapsible/collapsible.js +7 -7
- package/dist/node/color-picker/color-picker.js +26 -26
- package/dist/node/combobox/combobox.js +86 -86
- package/dist/node/combobox/combobox.module.js +15 -15
- package/dist/node/command-menu/command-menu.js +111 -111
- package/dist/node/comparison/comparison.js +10 -10
- package/dist/node/context-menu/context-menu.js +9 -9
- package/dist/node/copy-button/copy-button.js +18 -16
- package/dist/node/data-table/data-table.js +8 -2
- package/dist/node/data-table/data-table.module.js +29 -29
- package/dist/node/date-picker/date-picker.js +25 -25
- package/dist/node/date-picker/date-picker.module.js +19 -19
- package/dist/node/date-range-picker/date-range-picker.js +26 -26
- package/dist/node/drawer/drawer.js +18 -17
- package/dist/node/drawer/drawer.module.js +9 -9
- package/dist/node/dropdown/dropdown.js +48 -48
- package/dist/node/editable/editable.js +11 -11
- package/dist/node/fab/fab.js +53 -53
- package/dist/node/field/field.js +8 -8
- package/dist/node/file-uploader/file-uploader.js +19 -19
- package/dist/node/file-uploader/file-uploader.module.js +14 -14
- package/dist/node/filter/filter.js +10 -9
- package/dist/node/header-panel/header-panel.js +31 -31
- package/dist/node/hover-card/hover-card.js +21 -21
- package/dist/node/icon-button/icon-button.js +5 -5
- package/dist/node/icon-button/icon-button.module.js +1 -1
- package/dist/node/input/input.js +22 -21
- package/dist/node/input/input.module.js +5 -5
- package/dist/node/item/item.module.js +6 -6
- package/dist/node/layouts/src/page-header/page-header.js +33 -0
- package/dist/node/layouts/src/page-header/page-header.module.js +12 -0
- package/dist/node/link/link.js +14 -12
- package/dist/node/log-viewer/log-viewer.js +26 -26
- package/dist/node/menu/menu.js +20 -20
- package/dist/node/menu-button/menu-button.js +48 -48
- package/dist/node/menubar/menubar.js +42 -42
- package/dist/node/modal/modal.js +41 -35
- package/dist/node/modal/modal.module.js +8 -7
- package/dist/node/multi-select/multi-select.js +57 -57
- package/dist/node/multi-select/multi-select.module.js +11 -11
- package/dist/node/native-select/native-select.js +13 -11
- package/dist/node/navigation-menu/navigation-menu.js +46 -46
- package/dist/node/notification/notification.js +50 -44
- package/dist/node/notification/notification.module.js +7 -7
- package/dist/node/number-input/number-input.js +52 -50
- package/dist/node/number-input/number-input.module.js +8 -8
- package/dist/node/otp-input/otp-input.js +8 -8
- package/dist/node/otp-input/otp-input.module.js +2 -2
- package/dist/node/overflow-menu/overflow-menu.js +18 -13
- package/dist/node/password-input/password-input.js +28 -27
- package/dist/node/password-input/password-input.module.js +7 -7
- package/dist/node/popover/popover.js +26 -24
- package/dist/node/progress/progress.js +3 -2
- package/dist/node/pull-to-refresh/pull-to-refresh.js +13 -13
- package/dist/node/radial-progress/radial-progress.js +5 -5
- package/dist/node/radio/radio.js +23 -22
- package/dist/node/radio-card/radio-card.js +27 -26
- package/dist/node/react/src/index.js +4 -3
- package/dist/node/react/src/theme.js +30 -19
- package/dist/node/resizable/resizable.js +11 -11
- package/dist/node/scroll-area/scroll-area.js +4 -4
- package/dist/node/search/search.js +49 -49
- package/dist/node/search/search.module.js +5 -5
- package/dist/node/select/select.js +27 -26
- package/dist/node/sheet/sheet.js +11 -10
- package/dist/node/sheet/sheet.module.js +5 -5
- package/dist/node/side-nav/side-nav.js +91 -91
- package/dist/node/skip-nav/skip-nav.js +12 -12
- package/dist/node/slider/slider.js +13 -11
- package/dist/node/stat/stat.js +6 -5
- package/dist/node/stat/stat.module.js +7 -7
- package/dist/node/status/status.js +18 -11
- package/dist/node/steps/steps.js +23 -23
- package/dist/node/structured-list/structured-list.js +33 -32
- package/dist/node/tabs/tabs.js +49 -47
- package/dist/node/tag/tag.js +22 -15
- package/dist/node/tags-input/tags-input.js +35 -35
- package/dist/node/tags-input/tags-input.module.js +4 -4
- package/dist/node/textarea/textarea.js +22 -21
- package/dist/node/tile/tile.module.js +3 -3
- package/dist/node/time-picker/time-picker.js +22 -21
- package/dist/node/time-picker/time-picker.module.js +5 -5
- package/dist/node/timeline/timeline.js +22 -16
- package/dist/node/toast/toast.js +15 -15
- package/dist/node/toc/toc.js +8 -8
- package/dist/node/toggle/toggle.js +15 -13
- package/dist/node/toggle-group/toggle-group.js +10 -10
- package/dist/node/toggletip/toggletip.js +9 -9
- package/dist/node/tooltip/tooltip.js +5 -5
- package/dist/node/tree-view/tree-view.js +32 -32
- package/dist/notification/notification.css +1 -1
- package/dist/notification/notification.js +50 -44
- package/dist/notification/notification.module.js +7 -7
- package/dist/number-input/number-input.css +1 -1
- package/dist/number-input/number-input.js +52 -50
- package/dist/number-input/number-input.module.js +8 -8
- package/dist/otp-input/otp-input.css +1 -1
- package/dist/otp-input/otp-input.js +8 -8
- package/dist/otp-input/otp-input.module.js +2 -2
- package/dist/overflow-menu/overflow-menu.js +18 -13
- package/dist/password-input/password-input.css +1 -1
- package/dist/password-input/password-input.js +28 -27
- package/dist/password-input/password-input.module.js +7 -7
- package/dist/popover/popover.js +26 -24
- package/dist/progress/progress.js +3 -2
- package/dist/pull-to-refresh/pull-to-refresh.js +13 -13
- package/dist/radial-progress/radial-progress.js +5 -5
- package/dist/radio/radio.js +23 -22
- package/dist/radio-card/radio-card.js +27 -26
- package/dist/react/src/index.js +4 -3
- package/dist/react/src/theme.js +30 -19
- package/dist/resizable/resizable.js +11 -11
- package/dist/scroll-area/scroll-area.js +4 -4
- package/dist/search/search.css +1 -1
- package/dist/search/search.js +49 -49
- package/dist/search/search.module.js +5 -5
- package/dist/select/select.js +27 -26
- package/dist/sheet/sheet.css +1 -1
- package/dist/sheet/sheet.js +11 -10
- package/dist/sheet/sheet.module.js +5 -5
- package/dist/side-nav/side-nav.js +91 -91
- package/dist/skip-nav/skip-nav.js +12 -12
- package/dist/slider/slider.js +13 -11
- package/dist/stat/stat.css +1 -1
- package/dist/stat/stat.js +6 -5
- package/dist/stat/stat.module.js +7 -7
- package/dist/status/status.js +18 -11
- package/dist/steps/steps.js +23 -23
- package/dist/structured-list/structured-list.js +33 -32
- package/dist/styles.css +87 -23
- package/dist/tabs/tabs.js +49 -47
- package/dist/tag/tag.js +22 -15
- package/dist/tags-input/tags-input.css +1 -1
- package/dist/tags-input/tags-input.js +35 -35
- package/dist/tags-input/tags-input.module.js +4 -4
- package/dist/textarea/textarea.js +22 -21
- package/dist/tile/tile.css +1 -1
- package/dist/tile/tile.module.js +3 -3
- package/dist/time-picker/time-picker.css +1 -1
- package/dist/time-picker/time-picker.js +22 -21
- package/dist/time-picker/time-picker.module.js +5 -5
- package/dist/timeline/timeline.js +22 -16
- package/dist/toast/toast.js +15 -15
- package/dist/toc/toc.js +8 -8
- package/dist/toggle/toggle.js +15 -13
- package/dist/toggle-group/toggle-group.js +10 -10
- package/dist/toggletip/toggletip.js +9 -9
- package/dist/tooltip/tooltip.js +5 -5
- package/dist/tree-view/tree-view.js +32 -32
- package/package.json +10 -4
|
@@ -1,80 +1,86 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./notification.module.js";
|
|
4
|
-
import { Presence as t, cn as n,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { Presence as t, cn as n, normalizeTone as r, useSignal as i, useSignals as a } from "@cascivo/core";
|
|
5
|
+
import { useRef as o } from "react";
|
|
6
|
+
import { builtin as s, t as c } from "@cascivo/i18n";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/notification/notification.tsx
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var d = {
|
|
10
|
+
neutral: "neutral",
|
|
11
|
+
info: "info",
|
|
12
|
+
success: "success",
|
|
13
|
+
warning: "warning",
|
|
14
|
+
danger: "error"
|
|
15
|
+
}, f = new Set(["warning", "error"]), p = 160;
|
|
16
|
+
function m({ variant: e }) {
|
|
17
|
+
return e === "success" ? /* @__PURE__ */ u("svg", {
|
|
12
18
|
viewBox: "0 0 20 20",
|
|
13
19
|
width: "20",
|
|
14
20
|
height: "20",
|
|
15
21
|
fill: "none",
|
|
16
22
|
"aria-hidden": "true",
|
|
17
|
-
children: [/* @__PURE__ */
|
|
23
|
+
children: [/* @__PURE__ */ l("circle", {
|
|
18
24
|
cx: "10",
|
|
19
25
|
cy: "10",
|
|
20
26
|
r: "8",
|
|
21
27
|
stroke: "currentColor",
|
|
22
28
|
strokeWidth: "1.5"
|
|
23
|
-
}), /* @__PURE__ */
|
|
29
|
+
}), /* @__PURE__ */ l("path", {
|
|
24
30
|
d: "M6.5 10.5l2.5 2.5 4.5-5",
|
|
25
31
|
stroke: "currentColor",
|
|
26
32
|
strokeWidth: "1.5",
|
|
27
33
|
strokeLinecap: "round",
|
|
28
34
|
strokeLinejoin: "round"
|
|
29
35
|
})]
|
|
30
|
-
}) : e === "warning" ? /* @__PURE__ */
|
|
36
|
+
}) : e === "warning" ? /* @__PURE__ */ u("svg", {
|
|
31
37
|
viewBox: "0 0 20 20",
|
|
32
38
|
width: "20",
|
|
33
39
|
height: "20",
|
|
34
40
|
fill: "none",
|
|
35
41
|
"aria-hidden": "true",
|
|
36
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ l("path", {
|
|
37
43
|
d: "M10 2.5L18.5 17H1.5L10 2.5z",
|
|
38
44
|
stroke: "currentColor",
|
|
39
45
|
strokeWidth: "1.5",
|
|
40
46
|
strokeLinejoin: "round"
|
|
41
|
-
}), /* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ l("path", {
|
|
42
48
|
d: "M10 8v3.5M10 14h.01",
|
|
43
49
|
stroke: "currentColor",
|
|
44
50
|
strokeWidth: "1.5",
|
|
45
51
|
strokeLinecap: "round"
|
|
46
52
|
})]
|
|
47
|
-
}) : e === "error" ? /* @__PURE__ */
|
|
53
|
+
}) : e === "error" ? /* @__PURE__ */ u("svg", {
|
|
48
54
|
viewBox: "0 0 20 20",
|
|
49
55
|
width: "20",
|
|
50
56
|
height: "20",
|
|
51
57
|
fill: "none",
|
|
52
58
|
"aria-hidden": "true",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ l("circle", {
|
|
54
60
|
cx: "10",
|
|
55
61
|
cy: "10",
|
|
56
62
|
r: "8",
|
|
57
63
|
stroke: "currentColor",
|
|
58
64
|
strokeWidth: "1.5"
|
|
59
|
-
}), /* @__PURE__ */
|
|
65
|
+
}), /* @__PURE__ */ l("path", {
|
|
60
66
|
d: "M10 6v4.5M10 13.5h.01",
|
|
61
67
|
stroke: "currentColor",
|
|
62
68
|
strokeWidth: "1.5",
|
|
63
69
|
strokeLinecap: "round"
|
|
64
70
|
})]
|
|
65
|
-
}) : /* @__PURE__ */
|
|
71
|
+
}) : /* @__PURE__ */ u("svg", {
|
|
66
72
|
viewBox: "0 0 20 20",
|
|
67
73
|
width: "20",
|
|
68
74
|
height: "20",
|
|
69
75
|
fill: "none",
|
|
70
76
|
"aria-hidden": "true",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
77
|
+
children: [/* @__PURE__ */ l("circle", {
|
|
72
78
|
cx: "10",
|
|
73
79
|
cy: "10",
|
|
74
80
|
r: "8",
|
|
75
81
|
stroke: "currentColor",
|
|
76
82
|
strokeWidth: "1.5"
|
|
77
|
-
}), /* @__PURE__ */
|
|
83
|
+
}), /* @__PURE__ */ l("path", {
|
|
78
84
|
d: "M10 9v5M10 6.5h.01",
|
|
79
85
|
stroke: "currentColor",
|
|
80
86
|
strokeWidth: "1.5",
|
|
@@ -82,48 +88,48 @@ function f({ variant: e }) {
|
|
|
82
88
|
})]
|
|
83
89
|
});
|
|
84
90
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
let
|
|
90
|
-
|
|
91
|
+
function h({ title: h, description: g, variant: _ = "info", dismissible: v = !1, onDismiss: y, actions: b, icon: x, labels: S, className: C, ...w }) {
|
|
92
|
+
a();
|
|
93
|
+
let T = d[r(_)] ?? _, E = i(!0), D = o(y);
|
|
94
|
+
D.current = y;
|
|
95
|
+
let O = v || y !== void 0, k = () => {
|
|
96
|
+
E.value = !1, setTimeout(() => D.current?.(), p);
|
|
91
97
|
};
|
|
92
|
-
return /* @__PURE__ */
|
|
93
|
-
present:
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
-
role:
|
|
96
|
-
"data-variant":
|
|
97
|
-
className: n(e.notification,
|
|
98
|
-
...
|
|
98
|
+
return /* @__PURE__ */ l(t, {
|
|
99
|
+
present: E,
|
|
100
|
+
children: /* @__PURE__ */ u("div", {
|
|
101
|
+
role: f.has(T) ? "alert" : "status",
|
|
102
|
+
"data-variant": T,
|
|
103
|
+
className: n(e.notification, C),
|
|
104
|
+
...w,
|
|
99
105
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ l("span", {
|
|
101
107
|
className: e.icon,
|
|
102
108
|
"aria-hidden": "true",
|
|
103
|
-
children:
|
|
109
|
+
children: x ?? /* @__PURE__ */ l(m, { variant: T })
|
|
104
110
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ u("div", {
|
|
106
112
|
className: e.body,
|
|
107
113
|
children: [
|
|
108
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ l("div", {
|
|
109
115
|
className: e.title,
|
|
110
|
-
children:
|
|
116
|
+
children: h
|
|
111
117
|
}),
|
|
112
|
-
|
|
118
|
+
g && /* @__PURE__ */ l("div", {
|
|
113
119
|
className: e.description,
|
|
114
|
-
children:
|
|
120
|
+
children: g
|
|
115
121
|
}),
|
|
116
|
-
|
|
122
|
+
b && /* @__PURE__ */ l("div", {
|
|
117
123
|
className: e.actions,
|
|
118
|
-
children:
|
|
124
|
+
children: b
|
|
119
125
|
})
|
|
120
126
|
]
|
|
121
127
|
}),
|
|
122
|
-
|
|
128
|
+
O && /* @__PURE__ */ l("button", {
|
|
123
129
|
type: "button",
|
|
124
130
|
className: e.dismiss,
|
|
125
|
-
"aria-label":
|
|
126
|
-
onClick:
|
|
131
|
+
"aria-label": S?.dismiss ?? c(s.notification.dismiss),
|
|
132
|
+
onClick: k,
|
|
127
133
|
children: "✕"
|
|
128
134
|
})
|
|
129
135
|
]
|
|
@@ -131,4 +137,4 @@ function p({ title: p, description: m, variant: h = "info", dismissible: g = !1,
|
|
|
131
137
|
});
|
|
132
138
|
}
|
|
133
139
|
//#endregion
|
|
134
|
-
export {
|
|
140
|
+
export { h as Notification };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import './notification.css';
|
|
4
4
|
var e = {
|
|
5
|
-
notification: "
|
|
6
|
-
icon: "
|
|
7
|
-
body: "
|
|
8
|
-
title: "
|
|
9
|
-
description: "
|
|
10
|
-
actions: "
|
|
11
|
-
dismiss: "
|
|
5
|
+
notification: "_notification_imxvx_2",
|
|
6
|
+
icon: "_icon_imxvx_65",
|
|
7
|
+
body: "_body_imxvx_86",
|
|
8
|
+
title: "_title_imxvx_94",
|
|
9
|
+
description: "_description_imxvx_100",
|
|
10
|
+
actions: "_actions_imxvx_106",
|
|
11
|
+
dismiss: "_dismiss_imxvx_113"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._wrapper_aavdw_2{gap:var(--cascivo-space-1);--_stepper-width:1.5rem;flex-direction:column;min-inline-size:0;display:flex}._wrapper_aavdw_2[data-size=sm]{--_input-height:2rem;--_input-font:var(--cascivo-text-sm);--_input-px:var(--cascivo-space-3)}._wrapper_aavdw_2[data-size=md]{--_input-height:2.5rem;--_input-font:var(--cascivo-text-sm);--_input-px:var(--cascivo-space-4)}._wrapper_aavdw_2[data-size=lg]{--_input-height:3rem;--_input-font:var(--cascivo-text-base);--_input-px:var(--cascivo-space-4)}._label_aavdw_31{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);font-weight:var(--cascivo-font-medium);color:var(--cascivo-color-text);line-height:var(--cascivo-leading-snug)}._field_aavdw_39{position:relative}._input_aavdw_43{width:100%;height:var(--_input-height,2.5rem);font-family:var(--cascivo-font-sans);font-size:var(--_input-font,var(--cascivo-text-sm));font-variant-numeric:tabular-nums;color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);transition:border-color var(--cascivo-duration-150) var(--cascivo-ease-out), box-shadow var(--cascivo-duration-150) var(--cascivo-ease-out);outline:none;padding-inline-start:var(--_input-px,var(--cascivo-space-4));padding-inline-end:calc(var(--_stepper-width) + var(--cascivo-space-2))}._input_aavdw_43::placeholder{color:var(--cascivo-color-text-muted)}._input_aavdw_43:hover:not(:disabled):not(:focus){border-color:var(--cascivo-color-border-strong)}._input_aavdw_43:focus{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._input_aavdw_43:disabled{opacity:.5;cursor:not-allowed;background-color:var(--cascivo-color-bg-subtle)}._wrapper_aavdw_2[data-state=error] ._input_aavdw_43{border-color:var(--cascivo-color-destructive)}._wrapper_aavdw_2[data-state=error] ._input_aavdw_43:focus{box-shadow:0 0 0 3px rgb(from var(--cascivo-color-destructive) r g b / .3)}._steppers_aavdw_88{inline-size:var(--_stepper-width);border-start-end-radius:calc(var(--cascivo-radius-field) - 1px);border-end-end-radius:calc(var(--cascivo-radius-field) - 1px);flex-direction:column;display:flex;position:absolute;inset-block:1px;inset-inline-end:1px;overflow:hidden}._stepper_aavdw_88{border:none;border-inline-start:1px solid var(--cascivo-color-border);color:var(--cascivo-color-text-subtle);cursor:pointer;transition:background-color var(--cascivo-duration-150) var(--cascivo-ease-out), color var(--cascivo-duration-150) var(--cascivo-ease-out);background-color:#0000;flex:1;justify-content:center;align-items:center;padding:0;display:flex}._stepper_aavdw_88+._stepper_aavdw_88{border-block-start:1px solid var(--cascivo-color-border)}._stepper_aavdw_88:hover:not(:disabled){background-color:var(--cascivo-color-bg-subtle);color:var(--cascivo-color-text)}._stepper_aavdw_88:disabled{opacity:.5;cursor:not-allowed}._stepper_aavdw_88 svg{block-size:.625rem;inline-size:.625rem}._error_aavdw_135{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-destructive);line-height:var(--cascivo-leading-snug)}._hint_aavdw_142{font-family:var(--cascivo-font-sans);font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-subtle);line-height:var(--cascivo-leading-snug)}}
|
|
@@ -2,99 +2,101 @@
|
|
|
2
2
|
|
|
3
3
|
import e from "./number-input.module.js";
|
|
4
4
|
import { cn as t, createMachine as n, useMachine as r, useSignal as i, useSignals as a } from "@cascivo/core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { forwardRef as o } from "react";
|
|
6
|
+
import { builtin as s, t as c } from "@cascivo/i18n";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
8
|
//#region ../components/src/number-input/number-input.tsx
|
|
8
|
-
var
|
|
9
|
+
var d = n({
|
|
9
10
|
initial: "idle",
|
|
10
11
|
states: {
|
|
11
12
|
idle: { on: { FOCUS: "focused" } },
|
|
12
13
|
focused: { on: { BLUR: "idle" } }
|
|
13
14
|
}
|
|
14
15
|
});
|
|
15
|
-
function
|
|
16
|
+
function f(e, t, n) {
|
|
16
17
|
let r = e;
|
|
17
18
|
return t !== void 0 && (r = Math.max(r, t)), n !== void 0 && (r = Math.min(r, n)), r;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function p(e) {
|
|
20
21
|
let t = String(e), n = t.indexOf(".");
|
|
21
22
|
return n === -1 ? 0 : t.length - n - 1;
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function m(e, t) {
|
|
24
25
|
let n = 10 ** t;
|
|
25
26
|
return Math.round(e * n) / n;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function h(e) {
|
|
28
29
|
let t = e.trim();
|
|
29
30
|
if (t === "") return null;
|
|
30
31
|
let n = Number(t);
|
|
31
32
|
return Number.isFinite(n) ? n : null;
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
+
var g = o(function({ value: n, defaultValue: o, onValueChange: g, onChange: _, min: v, max: y, step: b = 1, precision: x, formatOptions: S, label: C, hint: w, error: T, size: E = "md", disabled: D, incrementLabel: O, decrementLabel: k, className: A, id: j, onFocus: M, onBlur: N, onKeyDown: P, ...F }, I) {
|
|
34
35
|
a();
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
let e =
|
|
39
|
-
e != null && (e =
|
|
40
|
-
},
|
|
41
|
-
let t = (
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
return /* @__PURE__ */
|
|
36
|
+
let L = O ?? c(s.numberInput.increment), R = k ?? c(s.numberInput.decrement), [z, B] = r(d), V = n !== void 0, H = i(o ?? null), U = i(""), W = V ? n : H.value, G = j ?? (C ? `cascade-number-input-${C.toLowerCase().replace(/\s+/g, "-")}` : void 0), K = (e) => {
|
|
37
|
+
V || (H.value = e), U.value = e == null ? "" : String(e), e !== W && (g ?? _)?.(e);
|
|
38
|
+
}, q = () => {
|
|
39
|
+
let e = h(U.value);
|
|
40
|
+
e != null && (e = f(e, v, y), x !== void 0 && (e = m(e, x))), K(e);
|
|
41
|
+
}, J = (e) => {
|
|
42
|
+
let t = (z.value === "focused" ? h(U.value) : W) ?? 0, n = x ?? Math.max(p(b), p(t));
|
|
43
|
+
K(f(m(t + e * b, n), v, y));
|
|
44
|
+
}, Y = z.value === "focused" ? U.value : ((e) => e == null ? "" : S ? new Intl.NumberFormat(void 0, S).format(e) : String(e))(W), X = W != null && y !== void 0 && W >= y, Z = W != null && v !== void 0 && W <= v;
|
|
45
|
+
return /* @__PURE__ */ u("div", {
|
|
45
46
|
className: t(e.wrapper, A),
|
|
46
|
-
"data-state": T ? "error" :
|
|
47
|
+
"data-state": T ? "error" : z.value,
|
|
47
48
|
"data-size": E,
|
|
48
49
|
children: [
|
|
49
|
-
C && /* @__PURE__ */
|
|
50
|
+
C && /* @__PURE__ */ l("label", {
|
|
50
51
|
className: e.label,
|
|
51
|
-
htmlFor:
|
|
52
|
+
htmlFor: G,
|
|
52
53
|
children: C
|
|
53
54
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ u("div", {
|
|
55
56
|
className: e.field,
|
|
56
|
-
children: [/* @__PURE__ */
|
|
57
|
-
id:
|
|
57
|
+
children: [/* @__PURE__ */ l("input", {
|
|
58
|
+
id: G,
|
|
58
59
|
type: "text",
|
|
59
60
|
inputMode: "decimal",
|
|
60
61
|
autoComplete: "off",
|
|
61
62
|
role: "spinbutton",
|
|
62
63
|
className: e.input,
|
|
63
|
-
value:
|
|
64
|
+
value: Y,
|
|
64
65
|
disabled: D,
|
|
65
|
-
"aria-valuenow":
|
|
66
|
+
"aria-valuenow": W ?? void 0,
|
|
66
67
|
"aria-valuemin": v,
|
|
67
68
|
"aria-valuemax": y,
|
|
68
69
|
"aria-invalid": T ? !0 : void 0,
|
|
69
|
-
"aria-describedby": T ? `${
|
|
70
|
+
"aria-describedby": T ? `${G}-error` : w ? `${G}-hint` : void 0,
|
|
70
71
|
onChange: (e) => {
|
|
71
|
-
|
|
72
|
+
U.value = e.target.value;
|
|
72
73
|
},
|
|
73
74
|
onFocus: (e) => {
|
|
74
|
-
|
|
75
|
+
U.value = W == null ? "" : String(W), B("FOCUS"), M?.(e);
|
|
75
76
|
},
|
|
76
77
|
onBlur: (e) => {
|
|
77
|
-
|
|
78
|
+
q(), B("BLUR"), N?.(e);
|
|
78
79
|
},
|
|
79
80
|
onKeyDown: (e) => {
|
|
80
|
-
e.key === "ArrowUp" ? (e.preventDefault(),
|
|
81
|
+
e.key === "ArrowUp" ? (e.preventDefault(), J(1)) : e.key === "ArrowDown" ? (e.preventDefault(), J(-1)) : e.key === "Enter" && q(), P?.(e);
|
|
81
82
|
},
|
|
83
|
+
ref: I,
|
|
82
84
|
...F
|
|
83
|
-
}), /* @__PURE__ */
|
|
85
|
+
}), /* @__PURE__ */ u("div", {
|
|
84
86
|
className: e.steppers,
|
|
85
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ l("button", {
|
|
86
88
|
type: "button",
|
|
87
89
|
className: e.stepper,
|
|
88
|
-
"aria-label":
|
|
90
|
+
"aria-label": L,
|
|
89
91
|
tabIndex: -1,
|
|
90
|
-
disabled: D ||
|
|
92
|
+
disabled: D || X,
|
|
91
93
|
onMouseDown: (e) => e.preventDefault(),
|
|
92
|
-
onClick: () =>
|
|
93
|
-
children: /* @__PURE__ */
|
|
94
|
+
onClick: () => J(1),
|
|
95
|
+
children: /* @__PURE__ */ l("svg", {
|
|
94
96
|
viewBox: "0 0 10 10",
|
|
95
97
|
"aria-hidden": "true",
|
|
96
98
|
focusable: "false",
|
|
97
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ l("path", {
|
|
98
100
|
d: "M2 6.5 5 3.5 8 6.5",
|
|
99
101
|
fill: "none",
|
|
100
102
|
stroke: "currentColor",
|
|
@@ -103,19 +105,19 @@ function h({ value: n, defaultValue: h, onValueChange: g, onChange: _, min: v, m
|
|
|
103
105
|
strokeLinejoin: "round"
|
|
104
106
|
})
|
|
105
107
|
})
|
|
106
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ l("button", {
|
|
107
109
|
type: "button",
|
|
108
110
|
className: e.stepper,
|
|
109
|
-
"aria-label":
|
|
111
|
+
"aria-label": R,
|
|
110
112
|
tabIndex: -1,
|
|
111
|
-
disabled: D ||
|
|
113
|
+
disabled: D || Z,
|
|
112
114
|
onMouseDown: (e) => e.preventDefault(),
|
|
113
|
-
onClick: () =>
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
+
onClick: () => J(-1),
|
|
116
|
+
children: /* @__PURE__ */ l("svg", {
|
|
115
117
|
viewBox: "0 0 10 10",
|
|
116
118
|
"aria-hidden": "true",
|
|
117
119
|
focusable: "false",
|
|
118
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ l("path", {
|
|
119
121
|
d: "M2 3.5 5 6.5 8 3.5",
|
|
120
122
|
fill: "none",
|
|
121
123
|
stroke: "currentColor",
|
|
@@ -127,19 +129,19 @@ function h({ value: n, defaultValue: h, onValueChange: g, onChange: _, min: v, m
|
|
|
127
129
|
})]
|
|
128
130
|
})]
|
|
129
131
|
}),
|
|
130
|
-
T && /* @__PURE__ */
|
|
131
|
-
id: `${
|
|
132
|
+
T && /* @__PURE__ */ l("span", {
|
|
133
|
+
id: `${G}-error`,
|
|
132
134
|
className: e.error,
|
|
133
135
|
role: "alert",
|
|
134
136
|
children: T
|
|
135
137
|
}),
|
|
136
|
-
!T && w && /* @__PURE__ */
|
|
137
|
-
id: `${
|
|
138
|
+
!T && w && /* @__PURE__ */ l("span", {
|
|
139
|
+
id: `${G}-hint`,
|
|
138
140
|
className: e.hint,
|
|
139
141
|
children: w
|
|
140
142
|
})
|
|
141
143
|
]
|
|
142
144
|
});
|
|
143
|
-
}
|
|
145
|
+
});
|
|
144
146
|
//#endregion
|
|
145
|
-
export {
|
|
147
|
+
export { g as NumberInput };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import './number-input.css';
|
|
4
4
|
var e = {
|
|
5
|
-
wrapper: "
|
|
6
|
-
label: "
|
|
7
|
-
field: "
|
|
8
|
-
input: "
|
|
9
|
-
steppers: "
|
|
10
|
-
stepper: "
|
|
11
|
-
error: "
|
|
12
|
-
hint: "
|
|
5
|
+
wrapper: "_wrapper_aavdw_2",
|
|
6
|
+
label: "_label_aavdw_31",
|
|
7
|
+
field: "_field_aavdw_39",
|
|
8
|
+
input: "_input_aavdw_43",
|
|
9
|
+
steppers: "_steppers_aavdw_88",
|
|
10
|
+
stepper: "_stepper_aavdw_88",
|
|
11
|
+
error: "_error_aavdw_135",
|
|
12
|
+
hint: "_hint_aavdw_142"
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._wrapper_k67bx_2{gap:var(--cascivo-space-2);align-items:center;min-inline-size:0;display:flex}._slot_k67bx_12{width:2.75rem;height:3rem;font-family:var(--cascivo-font-mono,var(--cascivo-font-sans));font-size:var(--cascivo-text-xl);font-weight:var(--cascivo-font-semibold);text-align:center;color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);border:1.5px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);transition:border-color var(--cascivo-duration-150) var(--cascivo-ease-out), box-shadow var(--cascivo-duration-150) var(--cascivo-ease-out);caret-color:#0000;outline:none}._slot_k67bx_12:hover:not(:disabled){border-color:var(--cascivo-color-border-strong)}._slot_k67bx_12:focus{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._slot_k67bx_12[data-filled]{border-color:var(--cascivo-color-border-strong);background-color:var(--cascivo-color-bg-subtle)}._slot_k67bx_12:disabled{opacity:.5;cursor:not-allowed}}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import e from "./otp-input.module.js";
|
|
4
4
|
import { cn as t, useSignal as n, useSignals as r } from "@cascivo/core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { useRef as i } from "react";
|
|
6
|
+
import { builtin as a, t as o } from "@cascivo/i18n";
|
|
7
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/otp-input/otp-input.tsx
|
|
9
9
|
function c({ length: c = 6, value: l, onValueChange: u, disabled: d = !1, type: f = "numeric", className: p, ...m }) {
|
|
10
10
|
r();
|
|
11
|
-
let h = n(Array.from({ length: c }, (e, t) => l[t] ?? "")), g =
|
|
11
|
+
let h = n(Array.from({ length: c }, (e, t) => l[t] ?? "")), g = i([]), _ = Array.from({ length: c }, (e, t) => l[t] ?? "");
|
|
12
12
|
JSON.stringify(h.value) !== JSON.stringify(_) && (h.value = _);
|
|
13
13
|
function v(e) {
|
|
14
14
|
u(e.join("")), h.value = e;
|
|
@@ -37,13 +37,13 @@ function c({ length: c = 6, value: l, onValueChange: u, disabled: d = !1, type:
|
|
|
37
37
|
for (let t = 0; t < n.length; t++) e + t < c && (r[e + t] = n[t] ?? "");
|
|
38
38
|
v(r), y(Math.min(e + n.length, c - 1));
|
|
39
39
|
}
|
|
40
|
-
let C = a
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
let C = o(a.otpInput.label);
|
|
41
|
+
return /* @__PURE__ */ s("div", {
|
|
42
42
|
className: t(e.wrapper, p),
|
|
43
43
|
role: "group",
|
|
44
44
|
"aria-label": C,
|
|
45
45
|
...m,
|
|
46
|
-
children: h.value.map((t, n) => /* @__PURE__ */
|
|
46
|
+
children: h.value.map((t, n) => /* @__PURE__ */ s("input", {
|
|
47
47
|
ref: (e) => {
|
|
48
48
|
g.current[n] = e;
|
|
49
49
|
},
|
|
@@ -52,7 +52,7 @@ function c({ length: c = 6, value: l, onValueChange: u, disabled: d = !1, type:
|
|
|
52
52
|
className: e.slot,
|
|
53
53
|
value: t,
|
|
54
54
|
maxLength: 1,
|
|
55
|
-
"aria-label": a
|
|
55
|
+
"aria-label": o(a.otpInput.digit, { n: String(n + 1) }),
|
|
56
56
|
autoComplete: n === 0 ? "one-time-code" : "off",
|
|
57
57
|
disabled: d,
|
|
58
58
|
"data-filled": t ? "" : void 0,
|
|
@@ -6,7 +6,12 @@ import { cn as n, useSignals as r } from "@cascivo/core";
|
|
|
6
6
|
import { builtin as i, t as a } from "@cascivo/i18n";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/overflow-menu/overflow-menu.tsx
|
|
9
|
-
function l() {
|
|
9
|
+
function l(e) {
|
|
10
|
+
let t = e.value ?? e.id;
|
|
11
|
+
if (t === void 0) throw Error(`OverflowMenu: item "${e.label}" has neither \`value\` nor \`id\`. One of them is required — it is what \`onSelect\` receives.`);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function u() {
|
|
10
15
|
return /* @__PURE__ */ c("svg", {
|
|
11
16
|
viewBox: "0 0 16 16",
|
|
12
17
|
width: "16",
|
|
@@ -32,12 +37,12 @@ function l() {
|
|
|
32
37
|
]
|
|
33
38
|
});
|
|
34
39
|
}
|
|
35
|
-
function
|
|
40
|
+
function d({ items: d, onSelect: f, placement: p = "bottom-end", ariaLabel: m, size: h = "md", disabled: g = !1, className: _ }) {
|
|
36
41
|
r();
|
|
37
|
-
let
|
|
42
|
+
let v = m ?? a(i.overflowMenu.trigger), y = d.map((e) => {
|
|
38
43
|
let n = {
|
|
39
44
|
label: e.label,
|
|
40
|
-
value: e
|
|
45
|
+
value: l(e)
|
|
41
46
|
};
|
|
42
47
|
return e.disabled !== void 0 && (n.disabled = e.disabled), e.destructive ? n.icon = /* @__PURE__ */ c(o, { children: [e.icon, /* @__PURE__ */ s("span", {
|
|
43
48
|
className: t["destructive-flag"],
|
|
@@ -45,21 +50,21 @@ function u({ items: u, onSelect: d, placement: f = "bottom-end", ariaLabel: p, s
|
|
|
45
50
|
})] }) : e.icon !== void 0 && (n.icon = e.icon), n;
|
|
46
51
|
});
|
|
47
52
|
return /* @__PURE__ */ s("div", {
|
|
48
|
-
className: n(t.root,
|
|
53
|
+
className: n(t.root, _),
|
|
49
54
|
children: /* @__PURE__ */ s(e, {
|
|
50
|
-
items:
|
|
51
|
-
onSelect: (e) =>
|
|
52
|
-
placement:
|
|
55
|
+
items: y,
|
|
56
|
+
onSelect: (e) => f?.(e),
|
|
57
|
+
placement: p,
|
|
53
58
|
trigger: /* @__PURE__ */ s("button", {
|
|
54
59
|
type: "button",
|
|
55
60
|
className: t.trigger,
|
|
56
|
-
"data-size":
|
|
57
|
-
disabled:
|
|
58
|
-
"aria-label":
|
|
59
|
-
children: /* @__PURE__ */ s(
|
|
61
|
+
"data-size": h,
|
|
62
|
+
disabled: g,
|
|
63
|
+
"aria-label": v,
|
|
64
|
+
children: /* @__PURE__ */ s(u, {})
|
|
60
65
|
})
|
|
61
66
|
})
|
|
62
67
|
});
|
|
63
68
|
}
|
|
64
69
|
//#endregion
|
|
65
|
-
export {
|
|
70
|
+
export { d as OverflowMenu };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._wrapper_19052_2{gap:var(--cascivo-space-1);flex-direction:column;min-inline-size:0;display:flex}._wrapper_19052_2[data-size=sm]{--_height:2rem;--_font:var(--cascivo-text-sm);--_px:var(--cascivo-space-3)}._wrapper_19052_2[data-size=md]{--_height:2.5rem;--_font:var(--cascivo-text-sm);--_px:var(--cascivo-space-4)}._wrapper_19052_2[data-size=lg]{--_height:3rem;--_font:var(--cascivo-text-base);--_px:var(--cascivo-space-4)}._input-row_19052_30{align-items:center;display:flex;position:relative}._input_19052_30{width:100%;height:var(--_height,2.5rem);padding-inline:var(--_px,var(--cascivo-space-4));font-family:var(--cascivo-font-sans);font-size:var(--_font,var(--cascivo-text-sm));color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);transition:border-color var(--cascivo-duration-150) var(--cascivo-ease-out), box-shadow var(--cascivo-duration-150) var(--cascivo-ease-out);outline:none;padding-inline-end:calc(var(--_px,var(--cascivo-space-4)) + 2.5rem)}._input_19052_30::placeholder{color:var(--cascivo-color-text-muted)}._input_19052_30:hover:not(:disabled):not(:focus){border-color:var(--cascivo-color-border-strong)}._input_19052_30:focus{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._input_19052_30:disabled{opacity:.5;cursor:not-allowed;background-color:var(--cascivo-color-bg-subtle)}._reveal-btn_19052_72{border-radius:var(--cascivo-radius-control);width:2rem;height:2rem;color:var(--cascivo-color-text-subtle);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;inset-inline-end:var(--cascivo-space-2)}._reveal-btn_19052_72:hover{color:var(--cascivo-color-text);background-color:var(--cascivo-color-bg-subtle)}._reveal-btn_19052_72:focus-visible{outline:2px solid var(--cascivo-color-accent);outline-offset:1px}._reveal-icon_19052_98{background-color:currentColor;width:1.25rem;height:1.25rem;display:block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}._wrapper_19052_2[data-revealed] ._reveal-icon_19052_98{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E")}._strength-meter_19052_118{gap:var(--cascivo-space-1);display:flex}._strength-meter_19052_118[data-strength=weak]{--_seg-color:var(--cascivo-color-destructive)}._strength-meter_19052_118[data-strength=fair]{--_seg-color:var(--cascivo-color-warning)}._strength-meter_19052_118[data-strength=good],._strength-meter_19052_118[data-strength=strong]{--_seg-color:var(--cascivo-color-success)}._strength-segment_19052_139{border-radius:var(--cascivo-radius-full);background-color:var(--cascivo-color-border);height:.25rem;transition:background-color var(--cascivo-duration-150) var(--cascivo-ease-out);flex:1}._strength-segment_19052_139[data-filled]{background-color:var(--_seg-color,var(--cascivo-color-accent))}}
|