iryx-ui 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1235
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/Accordion.js +5 -0
- package/dist/components/Accordion.vue.d.ts +80 -0
- package/dist/components/Accordion.vue_vue_type_script_setup_true_lang.js +87 -0
- package/dist/components/Alert.vue.d.ts +1 -1
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +43 -43
- package/dist/components/App.vue.d.ts +1 -1
- package/dist/components/AppShell.js +5 -0
- package/dist/components/AppShell.vue.d.ts +46 -0
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/AspectRatio.js +5 -0
- package/dist/components/AspectRatio.vue.d.ts +26 -0
- package/dist/components/AspectRatio.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/Avatar.js +5 -0
- package/dist/components/Avatar.vue.d.ts +52 -0
- package/dist/components/Avatar.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/AvatarGroup.js +5 -0
- package/dist/components/AvatarGroup.vue.d.ts +39 -0
- package/dist/components/AvatarGroup.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Banner.vue.d.ts +2 -2
- package/dist/components/Banner.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BarChart.vue.d.ts +1 -1
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/Button.vue.d.ts +2 -2
- package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
- package/dist/components/Collapsible.js +5 -0
- package/dist/components/Collapsible.vue.d.ts +58 -0
- package/dist/components/Collapsible.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/ColorPicker.js +5 -0
- package/dist/components/ColorPicker.vue.d.ts +49 -0
- package/dist/components/ColorPicker.vue_vue_type_script_setup_true_lang.js +172 -0
- package/dist/components/Combobox.vue.d.ts +6 -6
- package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
- package/dist/components/CommandPalette.js +5 -0
- package/dist/components/CommandPalette.vue.d.ts +63 -0
- package/dist/components/CommandPalette.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/components/Container.js +5 -0
- package/dist/components/Container.vue.d.ts +33 -0
- package/dist/components/Container.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/ContextMenu.js +5 -0
- package/dist/components/ContextMenu.vue.d.ts +42 -0
- package/dist/components/ContextMenu.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/components/DateRangePicker.vue.d.ts +1 -1
- package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
- package/dist/components/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/components/Drawer.js +5 -0
- package/dist/components/Drawer.vue.d.ts +94 -0
- package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/components/EmptyState.vue.d.ts +1 -1
- package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
- package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/Input.vue.d.ts +1 -1
- package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/Kbd.js +5 -0
- package/dist/components/Kbd.vue.d.ts +46 -0
- package/dist/components/Kbd.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +19 -19
- package/dist/components/Menubar.js +5 -0
- package/dist/components/Menubar.vue.d.ts +62 -0
- package/dist/components/Menubar.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/NavigationMenu.js +5 -0
- package/dist/components/NavigationMenu.vue.d.ts +75 -0
- package/dist/components/NavigationMenu.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +68 -66
- package/dist/components/PageHeader.js +5 -0
- package/dist/components/PageHeader.vue.d.ts +52 -0
- package/dist/components/PageHeader.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/PinInput.js +5 -0
- package/dist/components/PinInput.vue.d.ts +65 -0
- package/dist/components/PinInput.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/Popover.js +5 -0
- package/dist/components/Popover.vue.d.ts +75 -0
- package/dist/components/Popover.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/components/Progress.vue.d.ts +20 -1
- package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +85 -42
- package/dist/components/RadioGroup.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/ScrollArea.js +5 -0
- package/dist/components/ScrollArea.vue.d.ts +41 -0
- package/dist/components/ScrollArea.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/components/ScrollFade.js +5 -0
- package/dist/components/ScrollFade.vue.d.ts +36 -0
- package/dist/components/ScrollFade.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +47 -45
- package/dist/components/Sidebar.js +5 -0
- package/dist/components/Sidebar.vue.d.ts +72 -0
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +183 -0
- package/dist/components/SignaturePad.js +5 -0
- package/dist/components/SignaturePad.vue.d.ts +60 -0
- package/dist/components/SignaturePad.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/components/Skeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Slider.js +5 -0
- package/dist/components/Slider.vue.d.ts +80 -0
- package/dist/components/Slider.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/components/Splitter.js +5 -0
- package/dist/components/Splitter.vue.d.ts +59 -0
- package/dist/components/Splitter.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/Stat.vue.d.ts +1 -1
- package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
- package/dist/components/Switch.vue.d.ts +1 -0
- package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +16 -5
- package/dist/components/Table.vue.d.ts +7 -1
- package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +120 -105
- package/dist/components/TagsInput.js +5 -0
- package/dist/components/TagsInput.vue.d.ts +71 -0
- package/dist/components/TagsInput.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/Textarea.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/TimeField.js +5 -0
- package/dist/components/TimeField.vue.d.ts +50 -0
- package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/components/Timeline.js +5 -0
- package/dist/components/Timeline.vue.d.ts +61 -0
- package/dist/components/Timeline.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/Toaster.vue.d.ts +1 -1
- package/dist/components/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
- package/dist/components/Toggle.js +5 -0
- package/dist/components/Toggle.vue.d.ts +42 -0
- package/dist/components/Toggle.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/ToggleGroup.js +5 -0
- package/dist/components/ToggleGroup.vue.d.ts +64 -0
- package/dist/components/ToggleGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/Toolbar.js +5 -0
- package/dist/components/Toolbar.vue.d.ts +52 -0
- package/dist/components/Toolbar.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/Tree.js +5 -0
- package/dist/components/Tree.vue.d.ts +70 -0
- package/dist/components/Tree.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/index.d.ts +30 -0
- package/dist/components/index.js +144 -84
- package/dist/composables/appearance.js +5 -1
- package/dist/composables/cartesian.d.ts +11 -0
- package/dist/composables/cartesian.js +18 -19
- package/dist/composables/command-palette.d.ts +42 -0
- package/dist/composables/command-palette.js +32 -0
- package/dist/composables/date.d.ts +18 -2
- package/dist/composables/date.js +23 -15
- package/dist/composables/kbd.d.ts +26 -0
- package/dist/composables/kbd.js +161 -0
- package/dist/composables/navigation-menu.d.ts +29 -0
- package/dist/composables/navigation-menu.js +6 -0
- package/dist/composables/scroll-fade.d.ts +35 -0
- package/dist/composables/scroll-fade.js +36 -0
- package/dist/composables/sidebar.d.ts +35 -0
- package/dist/composables/sidebar.js +23 -0
- package/dist/composables/signature.d.ts +22 -0
- package/dist/composables/signature.js +13 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +153 -92
- package/dist/theme/accordion.d.ts +68 -0
- package/dist/theme/accordion.js +24 -0
- package/dist/theme/alert.d.ts +0 -3
- package/dist/theme/app-shell.d.ts +77 -0
- package/dist/theme/app-shell.js +35 -0
- package/dist/theme/avatar.d.ts +253 -0
- package/dist/theme/avatar.js +84 -0
- package/dist/theme/banner.d.ts +0 -9
- package/dist/theme/bar-chart.d.ts +0 -16
- package/dist/theme/breadcrumb.d.ts +3 -3
- package/dist/theme/button-group.d.ts +0 -3
- package/dist/theme/button.d.ts +0 -3
- package/dist/theme/card.js +2 -2
- package/dist/theme/chart-legend.d.ts +3 -11
- package/dist/theme/collapsible.d.ts +44 -0
- package/dist/theme/collapsible.js +17 -0
- package/dist/theme/color-picker.d.ts +98 -0
- package/dist/theme/color-picker.js +19 -0
- package/dist/theme/command-palette.d.ts +122 -0
- package/dist/theme/command-palette.js +22 -0
- package/dist/theme/container.d.ts +101 -0
- package/dist/theme/container.js +26 -0
- package/dist/theme/date-picker.d.ts +12 -0
- package/dist/theme/date-picker.js +1 -1
- package/dist/theme/drawer.d.ts +110 -0
- package/dist/theme/drawer.js +100 -0
- package/dist/theme/dropdown-menu.d.ts +0 -9
- package/dist/theme/file-upload.d.ts +0 -3
- package/dist/theme/form.d.ts +12 -12
- package/dist/theme/index.d.ts +26 -0
- package/dist/theme/kbd.d.ts +71 -0
- package/dist/theme/kbd.js +29 -0
- package/dist/theme/line-chart.d.ts +0 -9
- package/dist/theme/menubar.d.ts +29 -0
- package/dist/theme/menubar.js +11 -0
- package/dist/theme/navigation-menu.d.ts +161 -0
- package/dist/theme/navigation-menu.js +43 -0
- package/dist/theme/number-input.d.ts +0 -3
- package/dist/theme/page-header.d.ts +47 -0
- package/dist/theme/page-header.js +17 -0
- package/dist/theme/pagination.d.ts +0 -3
- package/dist/theme/pin-input.d.ts +86 -0
- package/dist/theme/pin-input.js +32 -0
- package/dist/theme/popover.d.ts +119 -0
- package/dist/theme/popover.js +31 -0
- package/dist/theme/presets.d.ts +0 -2
- package/dist/theme/progress.d.ts +93 -0
- package/dist/theme/progress.js +37 -7
- package/dist/theme/radio-group.d.ts +24 -0
- package/dist/theme/radio-group.js +23 -14
- package/dist/theme/scroll-area.d.ts +65 -0
- package/dist/theme/scroll-area.js +57 -0
- package/dist/theme/scroll-fade.d.ts +35 -0
- package/dist/theme/scroll-fade.js +12 -0
- package/dist/theme/sidebar.d.ts +167 -0
- package/dist/theme/sidebar.js +43 -0
- package/dist/theme/signature-pad.d.ts +50 -0
- package/dist/theme/signature-pad.js +17 -0
- package/dist/theme/slider.d.ts +128 -0
- package/dist/theme/slider.js +49 -0
- package/dist/theme/sparkline.d.ts +0 -6
- package/dist/theme/splitter.d.ts +59 -0
- package/dist/theme/splitter.js +25 -0
- package/dist/theme/stat.d.ts +0 -3
- package/dist/theme/stepper.js +2 -2
- package/dist/theme/switch.d.ts +53 -29
- package/dist/theme/switch.js +33 -8
- package/dist/theme/table.d.ts +51 -3
- package/dist/theme/table.js +8 -3
- package/dist/theme/tabs.d.ts +0 -3
- package/dist/theme/tags-input.d.ts +110 -0
- package/dist/theme/tags-input.js +42 -0
- package/dist/theme/time-field.d.ts +68 -0
- package/dist/theme/time-field.js +21 -0
- package/dist/theme/timeline.d.ts +182 -0
- package/dist/theme/timeline.js +83 -0
- package/dist/theme/toggle.d.ts +145 -0
- package/dist/theme/toggle.js +84 -0
- package/dist/theme/toolbar.d.ts +56 -0
- package/dist/theme/toolbar.js +21 -0
- package/dist/theme/tree.d.ts +68 -0
- package/dist/theme/tree.js +28 -0
- package/package.json +4 -3
- package/theme.css +335 -0
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/_virtual/_plugin-vue_export-helper.js +0 -8
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue.js +0 -25
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue2.js +0 -63
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { useFormField as n } from "../composables/form.js";
|
|
4
|
+
import { addDecimals as r, clampDecimal as i, compareDecimals as a, formatForLocale as o, isDecimal as s, parseFromLocale as c, roundDecimal as l, toEditable as u } from "../composables/decimal.js";
|
|
5
|
+
import { numberInputTheme as d } from "../theme/number-input.js";
|
|
6
|
+
import { computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeModels as v, mergeProps as y, normalizeClass as b, openBlock as x, ref as S, unref as C, useModel as w, vModelText as T, watch as E, withDirectives as D, withKeys as O, withModifiers as k } from "vue";
|
|
7
|
+
import { ArrowDown01Icon as A, ArrowUp01Icon as j } from "@hugeicons/core-free-icons";
|
|
8
8
|
//#region src/components/NumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var M = [
|
|
10
10
|
"id",
|
|
11
11
|
"aria-valuenow",
|
|
12
12
|
"aria-valuemin",
|
|
@@ -16,9 +16,10 @@ var j = [
|
|
|
16
16
|
"required",
|
|
17
17
|
"aria-invalid",
|
|
18
18
|
"aria-describedby"
|
|
19
|
-
],
|
|
19
|
+
], N = ["aria-label", "disabled"], P = ["aria-label", "disabled"], F = /*@__PURE__*/ _({
|
|
20
|
+
inheritAttrs: !1,
|
|
20
21
|
__name: "NumberInput",
|
|
21
|
-
props: /*@__PURE__*/
|
|
22
|
+
props: /*@__PURE__*/ v({
|
|
22
23
|
min: {},
|
|
23
24
|
max: {},
|
|
24
25
|
step: { default: "1" },
|
|
@@ -50,87 +51,88 @@ var j = [
|
|
|
50
51
|
modelModifiers: {}
|
|
51
52
|
}),
|
|
52
53
|
emits: ["update:modelValue"],
|
|
53
|
-
setup(
|
|
54
|
-
let
|
|
55
|
-
function
|
|
56
|
-
return e ?
|
|
54
|
+
setup(_) {
|
|
55
|
+
let v = _, F = w(_, "modelValue"), I = n(), L = f(() => v.id ?? I?.id.value), R = f(() => v.invalid ?? I?.invalid.value ?? !1), z = e(), B = f(() => v.unstyled ?? z.unstyled), V = S(""), H = S(!1);
|
|
56
|
+
function U(e) {
|
|
57
|
+
return e ? v.locale ? o(e, v.locale, v.precision) : v.precision == null ? e : l(e, v.precision) ?? e : "";
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
E(() => F.value, (e) => {
|
|
60
|
+
H.value || (V.value = U(e));
|
|
60
61
|
}, { immediate: !0 });
|
|
61
|
-
function
|
|
62
|
+
function W(e) {
|
|
62
63
|
let t = e.trim();
|
|
63
64
|
if (!t) {
|
|
64
|
-
|
|
65
|
+
F.value = "", V.value = "";
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
let n =
|
|
68
|
+
let n = v.locale ? c(t, v.locale) : s(t) ? t : void 0;
|
|
68
69
|
if (n == null) {
|
|
69
|
-
|
|
70
|
+
V.value = U(F.value);
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
|
-
let r =
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
function W() {
|
|
76
|
-
V.value = !0, B.value = f(P.value, b.locale);
|
|
73
|
+
let r = i(n, v.min, v.max), a = v.precision == null ? r : l(r, v.precision) ?? r;
|
|
74
|
+
F.value = a, V.value = U(a);
|
|
77
75
|
}
|
|
78
76
|
function G() {
|
|
79
|
-
|
|
77
|
+
H.value = !0, V.value = u(F.value, v.locale);
|
|
78
|
+
}
|
|
79
|
+
function K() {
|
|
80
|
+
H.value = !1, W(V.value);
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
let t =
|
|
82
|
+
function q(e) {
|
|
83
|
+
let t = r(F.value || "0", e === 1 ? v.step : `-${v.step}`);
|
|
83
84
|
if (t == null) return;
|
|
84
|
-
let n =
|
|
85
|
-
|
|
85
|
+
let n = i(t, v.min, v.max), a = v.precision == null ? n : l(n, v.precision) ?? n;
|
|
86
|
+
F.value = a, V.value = H.value ? u(a, v.locale) : U(a);
|
|
86
87
|
}
|
|
87
|
-
let
|
|
88
|
-
size:
|
|
89
|
-
invalid:
|
|
90
|
-
withStepper:
|
|
88
|
+
let J = f(() => v.min != null && F.value !== "" && a(F.value, v.min) <= 0), Y = f(() => v.max != null && F.value !== "" && a(F.value, v.max) >= 0), X = f(() => d({
|
|
89
|
+
size: v.size,
|
|
90
|
+
invalid: R.value,
|
|
91
|
+
withStepper: v.stepper
|
|
91
92
|
}));
|
|
92
|
-
function
|
|
93
|
-
let n =
|
|
94
|
-
return
|
|
93
|
+
function Z(e, t) {
|
|
94
|
+
let n = v.ui?.[e];
|
|
95
|
+
return B.value ? [n, t] : X.value[e]({ class: [n, t] });
|
|
95
96
|
}
|
|
96
|
-
return (
|
|
97
|
-
id:
|
|
98
|
-
"onUpdate:modelValue":
|
|
97
|
+
return (e, n) => (x(), m("div", { class: b(B.value ? [v.ui?.root, v.class] : X.value.root({ class: [v.ui?.root, v.class] })) }, [D(h("input", y({
|
|
98
|
+
id: L.value,
|
|
99
|
+
"onUpdate:modelValue": n[0] ||= (e) => V.value = e
|
|
100
|
+
}, e.$attrs, {
|
|
99
101
|
type: "text",
|
|
100
102
|
inputmode: "decimal",
|
|
101
103
|
autocomplete: "off",
|
|
102
104
|
role: "spinbutton",
|
|
103
|
-
"aria-valuenow":
|
|
104
|
-
"aria-valuemin":
|
|
105
|
-
"aria-valuemax":
|
|
106
|
-
placeholder:
|
|
107
|
-
disabled:
|
|
108
|
-
required:
|
|
109
|
-
"aria-invalid":
|
|
110
|
-
"aria-describedby":
|
|
111
|
-
class:
|
|
112
|
-
onFocus:
|
|
113
|
-
onBlur:
|
|
114
|
-
onKeydown: [
|
|
115
|
-
}, null,
|
|
105
|
+
"aria-valuenow": F.value || void 0,
|
|
106
|
+
"aria-valuemin": v.min,
|
|
107
|
+
"aria-valuemax": v.max,
|
|
108
|
+
placeholder: v.placeholder,
|
|
109
|
+
disabled: v.disabled,
|
|
110
|
+
required: v.required,
|
|
111
|
+
"aria-invalid": R.value || void 0,
|
|
112
|
+
"aria-describedby": C(I)?.describedBy.value,
|
|
113
|
+
class: Z("input"),
|
|
114
|
+
onFocus: G,
|
|
115
|
+
onBlur: K,
|
|
116
|
+
onKeydown: [n[1] ||= O(k((e) => q(1), ["prevent"]), ["up"]), n[2] ||= O(k((e) => q(-1), ["prevent"]), ["down"])]
|
|
117
|
+
}), null, 16, M), [[T, V.value]]), v.stepper ? (x(), m("div", {
|
|
116
118
|
key: 0,
|
|
117
|
-
class:
|
|
118
|
-
}, [
|
|
119
|
+
class: b(Z("stepper"))
|
|
120
|
+
}, [h("button", {
|
|
119
121
|
type: "button",
|
|
120
122
|
tabindex: "-1",
|
|
121
|
-
"aria-label":
|
|
122
|
-
disabled:
|
|
123
|
-
class:
|
|
124
|
-
onClick:
|
|
125
|
-
}, [
|
|
123
|
+
"aria-label": v.incrementLabel,
|
|
124
|
+
disabled: v.disabled || Y.value,
|
|
125
|
+
class: b(Z("step")),
|
|
126
|
+
onClick: n[3] ||= (e) => q(1)
|
|
127
|
+
}, [g(t, { icon: C(j) }, null, 8, ["icon"])], 10, N), h("button", {
|
|
126
128
|
type: "button",
|
|
127
129
|
tabindex: "-1",
|
|
128
|
-
"aria-label":
|
|
129
|
-
disabled:
|
|
130
|
-
class:
|
|
131
|
-
onClick:
|
|
132
|
-
}, [
|
|
130
|
+
"aria-label": v.decrementLabel,
|
|
131
|
+
disabled: v.disabled || J.value,
|
|
132
|
+
class: b(Z("step")),
|
|
133
|
+
onClick: n[4] ||= (e) => q(-1)
|
|
134
|
+
}, [g(t, { icon: C(A) }, null, 8, ["icon"])], 10, P)], 2)) : p("", !0)], 2));
|
|
133
135
|
}
|
|
134
136
|
});
|
|
135
137
|
//#endregion
|
|
136
|
-
export {
|
|
138
|
+
export { F as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface PageHeaderProps {
|
|
2
|
+
/** Render as a different element or component. */
|
|
3
|
+
as?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Heading level for the title. A page header is usually the `h1`, but a
|
|
8
|
+
* panel or a nested view may need to sit lower in the outline.
|
|
9
|
+
*/
|
|
10
|
+
level?: 1 | 2 | 3;
|
|
11
|
+
/** Draw a rule underneath, for pages that run straight into content. */
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
/** Skip built-in classes; you take over styling entirely. */
|
|
14
|
+
unstyled?: boolean;
|
|
15
|
+
class?: string;
|
|
16
|
+
/** Override classes per slot, e.g. `{ title: 'text-3xl' }`. */
|
|
17
|
+
ui?: {
|
|
18
|
+
root?: string;
|
|
19
|
+
top?: string;
|
|
20
|
+
row?: string;
|
|
21
|
+
heading?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
actions?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
declare var __VLS_8: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {}, __VLS_22: {};
|
|
28
|
+
type __VLS_Slots = {} & {
|
|
29
|
+
breadcrumb?: (props: typeof __VLS_8) => any;
|
|
30
|
+
} & {
|
|
31
|
+
title?: (props: typeof __VLS_16) => any;
|
|
32
|
+
} & {
|
|
33
|
+
description?: (props: typeof __VLS_18) => any;
|
|
34
|
+
} & {
|
|
35
|
+
actions?: (props: typeof __VLS_20) => any;
|
|
36
|
+
} & {
|
|
37
|
+
default?: (props: typeof __VLS_22) => any;
|
|
38
|
+
};
|
|
39
|
+
declare const __VLS_base: import("vue").DefineComponent<PageHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {
|
|
40
|
+
unstyled: boolean;
|
|
41
|
+
as: string;
|
|
42
|
+
bordered: boolean;
|
|
43
|
+
level: 1 | 2 | 3;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import { pageHeaderTheme as t } from "../theme/page-header.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, resolveDynamicComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
4
|
+
import { Primitive as g } from "reka-ui";
|
|
5
|
+
//#region src/components/PageHeader.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _ = /*@__PURE__*/ c({
|
|
7
|
+
__name: "PageHeader",
|
|
8
|
+
props: {
|
|
9
|
+
as: { default: "header" },
|
|
10
|
+
title: {},
|
|
11
|
+
description: {},
|
|
12
|
+
level: { default: 1 },
|
|
13
|
+
bordered: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
unstyled: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
class: {},
|
|
22
|
+
ui: {}
|
|
23
|
+
},
|
|
24
|
+
setup(c) {
|
|
25
|
+
let _ = c, v = e(), y = n(() => _.unstyled ?? v.unstyled), b = n(() => `h${_.level}`), x = n(() => t({ bordered: _.bordered }));
|
|
26
|
+
function S(e) {
|
|
27
|
+
let t = _.ui?.[e];
|
|
28
|
+
return y.value ? t : x.value[e]({ class: t });
|
|
29
|
+
}
|
|
30
|
+
return (e, t) => (u(), r(m(g), {
|
|
31
|
+
as: _.as,
|
|
32
|
+
class: l(y.value ? [_.ui?.root, _.class] : x.value.root({ class: [_.ui?.root, _.class] }))
|
|
33
|
+
}, {
|
|
34
|
+
default: h(() => [
|
|
35
|
+
e.$slots.breadcrumb ? (u(), a("div", {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: l(S("top"))
|
|
38
|
+
}, [d(e.$slots, "breadcrumb")], 2)) : i("", !0),
|
|
39
|
+
o("div", { class: l(S("row")) }, [o("div", { class: l(S("heading")) }, [_.title || e.$slots.title ? (u(), r(f(b.value), {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: l(S("title"))
|
|
42
|
+
}, {
|
|
43
|
+
default: h(() => [d(e.$slots, "title", {}, () => [s(p(_.title), 1)])]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 8, ["class"])) : i("", !0), _.description || e.$slots.description ? (u(), a("p", {
|
|
46
|
+
key: 1,
|
|
47
|
+
class: l(S("description"))
|
|
48
|
+
}, [d(e.$slots, "description", {}, () => [s(p(_.description), 1)])], 2)) : i("", !0)], 2), e.$slots.actions ? (u(), a("div", {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: l(S("actions"))
|
|
51
|
+
}, [d(e.$slots, "actions")], 2)) : i("", !0)], 2),
|
|
52
|
+
d(e.$slots, "default")
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["as", "class"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { _ as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { paginationTheme as n } from "../theme/pagination.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, withCtx as v } from "vue";
|
|
5
|
+
import { ArrowLeft01Icon as y, ArrowRight01Icon as b } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { PaginationEllipsis as x, PaginationList as S, PaginationListItem as C, PaginationNext as w, PaginationPrev as T, PaginationRoot as E } from "reka-ui";
|
|
7
7
|
//#region src/components/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var D = /*@__PURE__*/
|
|
8
|
+
var D = /*@__PURE__*/ l({
|
|
9
9
|
__name: "Pagination",
|
|
10
|
-
props: /*@__PURE__*/
|
|
10
|
+
props: /*@__PURE__*/ u({
|
|
11
11
|
total: { default: 0 },
|
|
12
12
|
itemsPerPage: { default: 10 },
|
|
13
13
|
siblingCount: { default: 1 },
|
|
@@ -31,52 +31,52 @@ var D = /*@__PURE__*/ d({
|
|
|
31
31
|
pageModifiers: {}
|
|
32
32
|
}),
|
|
33
33
|
emits: ["update:page"],
|
|
34
|
-
setup(
|
|
35
|
-
let
|
|
36
|
-
size:
|
|
37
|
-
align:
|
|
38
|
-
})), j =
|
|
34
|
+
setup(l) {
|
|
35
|
+
let u = l, D = _(l, "page"), O = e(), k = i(() => u.unstyled ?? O.unstyled), A = i(() => n({
|
|
36
|
+
size: u.size,
|
|
37
|
+
align: u.align
|
|
38
|
+
})), j = i(() => k.value ? [u.ui?.root, u.class] : A.value.root({ class: [u.ui?.root, u.class] })), M = i(() => k.value ? u.ui?.list : A.value.list({ class: u.ui?.list })), N = i(() => k.value ? u.ui?.ellipsis : A.value.ellipsis({ class: u.ui?.ellipsis }));
|
|
39
39
|
function P(e) {
|
|
40
|
-
return k.value ?
|
|
40
|
+
return k.value ? u.ui?.item : [A.value.item({ class: u.ui?.item }), e ? A.value.active() : A.value.inactive()];
|
|
41
41
|
}
|
|
42
|
-
return (
|
|
42
|
+
return (e, n) => (f(), a(g(E), {
|
|
43
43
|
page: D.value,
|
|
44
|
-
"onUpdate:page":
|
|
45
|
-
total:
|
|
46
|
-
"items-per-page":
|
|
47
|
-
"sibling-count":
|
|
48
|
-
"show-edges":
|
|
49
|
-
"aria-label":
|
|
50
|
-
class:
|
|
44
|
+
"onUpdate:page": n[0] ||= (e) => D.value = e,
|
|
45
|
+
total: u.total,
|
|
46
|
+
"items-per-page": u.itemsPerPage,
|
|
47
|
+
"sibling-count": u.siblingCount,
|
|
48
|
+
"show-edges": u.showEdges,
|
|
49
|
+
"aria-label": u.label,
|
|
50
|
+
class: d(j.value)
|
|
51
51
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
"aria-label":
|
|
56
|
-
class:
|
|
52
|
+
default: v(() => [c(g(S), { class: d(M.value) }, {
|
|
53
|
+
default: v(({ items: i }) => [
|
|
54
|
+
c(g(T), {
|
|
55
|
+
"aria-label": u.prevLabel,
|
|
56
|
+
class: d(P(!1))
|
|
57
57
|
}, {
|
|
58
|
-
default:
|
|
58
|
+
default: v(() => [m(e.$slots, "prev", {}, () => [c(t, { icon: g(y) }, null, 8, ["icon"])])]),
|
|
59
59
|
_: 3
|
|
60
60
|
}, 8, ["aria-label", "class"]),
|
|
61
|
-
(
|
|
61
|
+
(f(!0), o(r, null, p(i, (e, t) => (f(), o(r, { key: t }, [e.type === "page" ? (f(), a(g(C), {
|
|
62
62
|
key: 0,
|
|
63
63
|
value: e.value,
|
|
64
|
-
class:
|
|
64
|
+
class: d(P(e.value === D.value))
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
66
|
+
default: v(() => [s(h(e.value), 1)]),
|
|
67
67
|
_: 2
|
|
68
|
-
}, 1032, ["value", "class"])) : (
|
|
68
|
+
}, 1032, ["value", "class"])) : (f(), a(g(x), {
|
|
69
69
|
key: 1,
|
|
70
|
-
class:
|
|
70
|
+
class: d(N.value)
|
|
71
71
|
}, {
|
|
72
|
-
default:
|
|
72
|
+
default: v(() => [...n[1] ||= [s(" … ", -1)]]),
|
|
73
73
|
_: 1
|
|
74
74
|
}, 8, ["class"]))], 64))), 128)),
|
|
75
|
-
|
|
76
|
-
"aria-label":
|
|
77
|
-
class:
|
|
75
|
+
c(g(w), {
|
|
76
|
+
"aria-label": u.nextLabel,
|
|
77
|
+
class: d(P(!1))
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
79
|
+
default: v(() => [m(e.$slots, "next", {}, () => [c(t, { icon: g(b) }, null, 8, ["icon"])])]),
|
|
80
80
|
_: 3
|
|
81
81
|
}, 8, ["aria-label", "class"])
|
|
82
82
|
]),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import n from "./Input.js";
|
|
4
|
+
import { passwordInputTheme as r } from "../theme/password-input.js";
|
|
5
|
+
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, useModel as b, withCtx as x } from "vue";
|
|
6
|
+
import { ViewIcon as S, ViewOffIcon as C } from "@hugeicons/core-free-icons";
|
|
7
7
|
//#region src/components/PasswordInput.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var w = [
|
|
9
9
|
"aria-label",
|
|
10
10
|
"aria-pressed",
|
|
11
11
|
"disabled"
|
|
12
|
-
], T = ["data-filled"], E = /*@__PURE__*/
|
|
12
|
+
], T = ["data-filled"], E = /*@__PURE__*/ d({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "PasswordInput",
|
|
15
|
-
props: /*@__PURE__*/
|
|
15
|
+
props: /*@__PURE__*/ f({
|
|
16
16
|
size: {},
|
|
17
17
|
placeholder: {},
|
|
18
18
|
disabled: { type: Boolean },
|
|
@@ -46,41 +46,41 @@ var w = [
|
|
|
46
46
|
modelModifiers: {}
|
|
47
47
|
}),
|
|
48
48
|
emits: ["update:modelValue"],
|
|
49
|
-
setup(
|
|
50
|
-
let
|
|
49
|
+
setup(d) {
|
|
50
|
+
let f = d, E = b(d, "modelValue"), D = e(), O = a(() => f.unstyled ?? D.unstyled), k = g(!1), A = a(() => {
|
|
51
51
|
let e = E.value;
|
|
52
52
|
if (!e) return 0;
|
|
53
53
|
let t = 0;
|
|
54
54
|
return e.length >= 8 && t++, e.length >= 12 && t++, /[a-z]/.test(e) && /[A-Z]/.test(e) && t++, /\d/.test(e) && t++, /[^\w\s]/.test(e) && t++, Math.max(1, Math.min(t, 4));
|
|
55
|
-
}), j =
|
|
55
|
+
}), j = a(() => f.strength && E.value.length > 0), M = a(() => r({ score: A.value })), N = a(() => O.value ? f.ui?.input : M.value.input({ class: f.ui?.input }));
|
|
56
56
|
function P(e, t) {
|
|
57
|
-
let n =
|
|
57
|
+
let n = f.ui?.[e];
|
|
58
58
|
return O.value ? [n, t] : M.value[e]({ class: [n, t] });
|
|
59
59
|
}
|
|
60
|
-
return (
|
|
61
|
-
id:
|
|
60
|
+
return (e, r) => (h(), s("div", { class: m(P("root", f.class)) }, [u(n, p({
|
|
61
|
+
id: f.id,
|
|
62
62
|
modelValue: E.value,
|
|
63
|
-
"onUpdate:modelValue":
|
|
63
|
+
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
64
64
|
type: k.value ? "text" : "password",
|
|
65
|
-
size:
|
|
66
|
-
placeholder:
|
|
67
|
-
disabled:
|
|
68
|
-
required:
|
|
69
|
-
invalid:
|
|
70
|
-
unstyled:
|
|
65
|
+
size: f.size,
|
|
66
|
+
placeholder: f.placeholder,
|
|
67
|
+
disabled: f.disabled,
|
|
68
|
+
required: f.required,
|
|
69
|
+
invalid: f.invalid,
|
|
70
|
+
unstyled: f.unstyled,
|
|
71
71
|
ui: { input: N.value },
|
|
72
72
|
autocomplete: "current-password"
|
|
73
|
-
},
|
|
73
|
+
}, e.$attrs), l({ _: 2 }, [f.toggle ? {
|
|
74
74
|
name: "trailing",
|
|
75
|
-
fn:
|
|
75
|
+
fn: x(() => [c("button", {
|
|
76
76
|
type: "button",
|
|
77
77
|
tabindex: "-1",
|
|
78
|
-
"aria-label": k.value ?
|
|
78
|
+
"aria-label": k.value ? f.hideLabel : f.showLabel,
|
|
79
79
|
"aria-pressed": k.value,
|
|
80
|
-
disabled:
|
|
81
|
-
class:
|
|
82
|
-
onClick:
|
|
83
|
-
}, [
|
|
80
|
+
disabled: f.disabled,
|
|
81
|
+
class: m(P("toggle")),
|
|
82
|
+
onClick: r[0] ||= (e) => k.value = !k.value
|
|
83
|
+
}, [u(t, { icon: k.value ? y(C) : y(S) }, null, 8, ["icon"])], 10, w)]),
|
|
84
84
|
key: "0"
|
|
85
85
|
} : void 0]), 1040, [
|
|
86
86
|
"id",
|
|
@@ -93,20 +93,20 @@ var w = [
|
|
|
93
93
|
"invalid",
|
|
94
94
|
"unstyled",
|
|
95
95
|
"ui"
|
|
96
|
-
]), j.value ? (
|
|
96
|
+
]), j.value ? (h(), s("div", {
|
|
97
97
|
key: 0,
|
|
98
|
-
class:
|
|
99
|
-
}, [
|
|
100
|
-
class:
|
|
98
|
+
class: m(P("meter"))
|
|
99
|
+
}, [c("div", {
|
|
100
|
+
class: m(P("track")),
|
|
101
101
|
"aria-hidden": "true"
|
|
102
|
-
}, [(
|
|
102
|
+
}, [(h(), s(i, null, _(4, (e) => c("span", {
|
|
103
103
|
key: e,
|
|
104
104
|
"data-filled": e <= A.value ? "" : void 0,
|
|
105
|
-
class:
|
|
106
|
-
}, null, 10, T)), 64))], 2),
|
|
107
|
-
class:
|
|
105
|
+
class: m(P("segment"))
|
|
106
|
+
}, null, 10, T)), 64))], 2), c("span", {
|
|
107
|
+
class: m(P("label")),
|
|
108
108
|
role: "status"
|
|
109
|
-
},
|
|
109
|
+
}, v(f.strengthLabels[A.value - 1]), 3)], 2)) : o("", !0)], 2));
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
//#endregion
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface PinInputProps {
|
|
2
|
+
/**
|
|
3
|
+
* The code, as a plain string. Reka works in arrays of single characters;
|
|
4
|
+
* a PIN is a string everywhere else in an app — in the request body, in the
|
|
5
|
+
* validator, in the email it arrived in — so the array stays an internal
|
|
6
|
+
* detail and never reaches your model.
|
|
7
|
+
*/
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
/** How many cells to render. */
|
|
10
|
+
length?: number;
|
|
11
|
+
/** `number` gets the numeric keypad on mobile and rejects non-digits. */
|
|
12
|
+
type?: 'text' | 'number';
|
|
13
|
+
/** Render the entered characters as dots, like a password field. */
|
|
14
|
+
mask?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Let phones offer the code from an SMS. Sets the one-time-code autofill
|
|
17
|
+
* hint, which is the whole reason a reader does not have to retype it.
|
|
18
|
+
*/
|
|
19
|
+
otp?: boolean;
|
|
20
|
+
/** Character shown in an empty cell. */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Insert a separator after every N cells — `3` gives 123–456. Long codes
|
|
24
|
+
* are read in chunks, and an unbroken row of eight is hard to check.
|
|
25
|
+
*/
|
|
26
|
+
groupSize?: number;
|
|
27
|
+
/** What that separator shows. */
|
|
28
|
+
separator?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
invalid?: boolean;
|
|
31
|
+
size?: 'sm' | 'md' | 'lg';
|
|
32
|
+
id?: string;
|
|
33
|
+
/** Skip built-in classes; you take over styling entirely. */
|
|
34
|
+
unstyled?: boolean;
|
|
35
|
+
class?: string;
|
|
36
|
+
/** Override classes per slot, e.g. `{ input: 'size-14' }`. */
|
|
37
|
+
ui?: {
|
|
38
|
+
root?: string;
|
|
39
|
+
input?: string;
|
|
40
|
+
separator?: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
declare var __VLS_15: {};
|
|
44
|
+
type __VLS_Slots = {} & {
|
|
45
|
+
separator?: (props: typeof __VLS_15) => any;
|
|
46
|
+
};
|
|
47
|
+
declare const __VLS_base: import("vue").DefineComponent<PinInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (value: string) => any;
|
|
49
|
+
complete: (value: string) => any;
|
|
50
|
+
}, string, import("vue").PublicProps, Readonly<PinInputProps> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
+
onComplete?: ((value: string) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
length: number;
|
|
55
|
+
unstyled: boolean;
|
|
56
|
+
separator: string;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|