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
package/dist/components/index.js
CHANGED
|
@@ -1,88 +1,148 @@
|
|
|
1
1
|
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "./
|
|
9
|
-
import c from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
import u from "./
|
|
12
|
-
import d from "./
|
|
13
|
-
import f from "./
|
|
14
|
-
import p from "./
|
|
15
|
-
import m from "./
|
|
16
|
-
import h from "./
|
|
17
|
-
import g from "./
|
|
18
|
-
import _ from "./
|
|
19
|
-
import v from "./
|
|
20
|
-
import y from "./
|
|
21
|
-
import b from "./
|
|
22
|
-
import x from "./
|
|
23
|
-
import S from "./
|
|
24
|
-
import C from "./
|
|
25
|
-
import w from "./
|
|
26
|
-
import T from "./
|
|
27
|
-
import E from "./
|
|
28
|
-
import D from "./
|
|
29
|
-
import O from "./
|
|
30
|
-
import k from "./
|
|
31
|
-
import A from "./
|
|
32
|
-
import j from "./
|
|
33
|
-
import M from "./
|
|
34
|
-
import N from "./
|
|
35
|
-
import P from "./
|
|
36
|
-
import F from "./
|
|
37
|
-
import I from "./
|
|
38
|
-
import L from "./
|
|
39
|
-
import R from "./
|
|
40
|
-
import z from "./
|
|
41
|
-
import B from "./
|
|
42
|
-
import V from "./
|
|
2
|
+
import t from "./Accordion.js";
|
|
3
|
+
import n from "./Alert.js";
|
|
4
|
+
import r from "./App.js";
|
|
5
|
+
import i from "./AppShell.js";
|
|
6
|
+
import a from "./AspectRatio.js";
|
|
7
|
+
import o from "./Avatar.js";
|
|
8
|
+
import s from "./AvatarGroup.js";
|
|
9
|
+
import c from "./Badge.js";
|
|
10
|
+
import l from "./Banner.js";
|
|
11
|
+
import u from "./ChartLegend.js";
|
|
12
|
+
import d from "./BarChart.js";
|
|
13
|
+
import f from "./Breadcrumb.js";
|
|
14
|
+
import p from "./Button.js";
|
|
15
|
+
import m from "./ButtonGroup.js";
|
|
16
|
+
import h from "./Card.js";
|
|
17
|
+
import g from "./Checkbox.js";
|
|
18
|
+
import _ from "./Collapsible.js";
|
|
19
|
+
import v from "./ColorPicker.js";
|
|
20
|
+
import y from "./Combobox.js";
|
|
21
|
+
import b from "./Kbd.js";
|
|
22
|
+
import x from "./CommandPalette.js";
|
|
23
|
+
import S from "./Dialog.js";
|
|
24
|
+
import C from "./ConfirmDialog.js";
|
|
25
|
+
import w from "./Container.js";
|
|
26
|
+
import T from "./ContextMenu.js";
|
|
27
|
+
import E from "./DatePicker.js";
|
|
28
|
+
import D from "./DateRangePicker.js";
|
|
29
|
+
import O from "./Drawer.js";
|
|
30
|
+
import k from "./DropdownMenu.js";
|
|
31
|
+
import A from "./EmptyState.js";
|
|
32
|
+
import j from "./FileUpload.js";
|
|
33
|
+
import M from "./Form.js";
|
|
34
|
+
import N from "./Label.js";
|
|
35
|
+
import P from "./FormField.js";
|
|
36
|
+
import F from "./Input.js";
|
|
37
|
+
import I from "./LineChart.js";
|
|
38
|
+
import L from "./Menubar.js";
|
|
39
|
+
import R from "./NavigationMenu.js";
|
|
40
|
+
import z from "./NumberInput.js";
|
|
41
|
+
import B from "./PageHeader.js";
|
|
42
|
+
import V from "./Pagination.js";
|
|
43
|
+
import H from "./PasswordInput.js";
|
|
44
|
+
import U from "./PinInput.js";
|
|
45
|
+
import W from "./Popover.js";
|
|
46
|
+
import G from "./Progress.js";
|
|
47
|
+
import K from "./RadioGroup.js";
|
|
48
|
+
import q from "./ScrollArea.js";
|
|
49
|
+
import J from "./ScrollFade.js";
|
|
50
|
+
import Y from "./Select.js";
|
|
51
|
+
import X from "./Separator.js";
|
|
52
|
+
import Z from "./Sidebar.js";
|
|
53
|
+
import Q from "./SignaturePad.js";
|
|
54
|
+
import $ from "./Skeleton.js";
|
|
55
|
+
import ee from "./Slider.js";
|
|
56
|
+
import te from "./Sparkline.js";
|
|
57
|
+
import ne from "./Splitter.js";
|
|
58
|
+
import re from "./Stat.js";
|
|
59
|
+
import ie from "./Stepper.js";
|
|
60
|
+
import ae from "./Switch.js";
|
|
61
|
+
import oe from "./Table.js";
|
|
62
|
+
import se from "./Tabs.js";
|
|
63
|
+
import ce from "./TagsInput.js";
|
|
64
|
+
import le from "./Textarea.js";
|
|
65
|
+
import ue from "./TimeField.js";
|
|
66
|
+
import de from "./Timeline.js";
|
|
67
|
+
import fe from "./Toaster.js";
|
|
68
|
+
import pe from "./Toggle.js";
|
|
69
|
+
import me from "./ToggleGroup.js";
|
|
70
|
+
import he from "./Toolbar.js";
|
|
71
|
+
import ge from "./Tooltip.js";
|
|
72
|
+
import _e from "./Tree.js";
|
|
43
73
|
//#region src/components/index.ts
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
var ve = /* @__PURE__ */ e({
|
|
75
|
+
Accordion: () => t,
|
|
76
|
+
Alert: () => n,
|
|
77
|
+
App: () => r,
|
|
78
|
+
AppShell: () => i,
|
|
79
|
+
AspectRatio: () => a,
|
|
80
|
+
Avatar: () => o,
|
|
81
|
+
AvatarGroup: () => s,
|
|
82
|
+
Badge: () => c,
|
|
83
|
+
Banner: () => l,
|
|
84
|
+
BarChart: () => d,
|
|
85
|
+
Breadcrumb: () => f,
|
|
86
|
+
Button: () => p,
|
|
87
|
+
ButtonGroup: () => m,
|
|
88
|
+
Card: () => h,
|
|
89
|
+
ChartLegend: () => u,
|
|
90
|
+
Checkbox: () => g,
|
|
91
|
+
Collapsible: () => _,
|
|
92
|
+
ColorPicker: () => v,
|
|
93
|
+
Combobox: () => y,
|
|
94
|
+
CommandPalette: () => x,
|
|
95
|
+
ConfirmDialog: () => C,
|
|
96
|
+
Container: () => w,
|
|
97
|
+
ContextMenu: () => T,
|
|
98
|
+
DatePicker: () => E,
|
|
99
|
+
DateRangePicker: () => D,
|
|
100
|
+
Dialog: () => S,
|
|
101
|
+
Drawer: () => O,
|
|
102
|
+
DropdownMenu: () => k,
|
|
103
|
+
EmptyState: () => A,
|
|
104
|
+
FileUpload: () => j,
|
|
105
|
+
Form: () => M,
|
|
106
|
+
FormField: () => P,
|
|
107
|
+
Input: () => F,
|
|
108
|
+
Kbd: () => b,
|
|
109
|
+
Label: () => N,
|
|
110
|
+
LineChart: () => I,
|
|
111
|
+
Menubar: () => L,
|
|
112
|
+
NavigationMenu: () => R,
|
|
113
|
+
NumberInput: () => z,
|
|
114
|
+
PageHeader: () => B,
|
|
115
|
+
Pagination: () => V,
|
|
116
|
+
PasswordInput: () => H,
|
|
117
|
+
PinInput: () => U,
|
|
118
|
+
Popover: () => W,
|
|
119
|
+
Progress: () => G,
|
|
120
|
+
RadioGroup: () => K,
|
|
121
|
+
ScrollArea: () => q,
|
|
122
|
+
ScrollFade: () => J,
|
|
123
|
+
Select: () => Y,
|
|
124
|
+
Separator: () => X,
|
|
125
|
+
Sidebar: () => Z,
|
|
126
|
+
SignaturePad: () => Q,
|
|
127
|
+
Skeleton: () => $,
|
|
128
|
+
Slider: () => ee,
|
|
129
|
+
Sparkline: () => te,
|
|
130
|
+
Splitter: () => ne,
|
|
131
|
+
Stat: () => re,
|
|
132
|
+
Stepper: () => ie,
|
|
133
|
+
Switch: () => ae,
|
|
134
|
+
Table: () => oe,
|
|
135
|
+
Tabs: () => se,
|
|
136
|
+
TagsInput: () => ce,
|
|
137
|
+
Textarea: () => le,
|
|
138
|
+
TimeField: () => ue,
|
|
139
|
+
Timeline: () => de,
|
|
140
|
+
Toaster: () => fe,
|
|
141
|
+
Toggle: () => pe,
|
|
142
|
+
ToggleGroup: () => me,
|
|
143
|
+
Toolbar: () => he,
|
|
144
|
+
Tooltip: () => ge,
|
|
145
|
+
Tree: () => _e
|
|
86
146
|
});
|
|
87
147
|
//#endregion
|
|
88
|
-
export {
|
|
148
|
+
export { ve as components_exports };
|
|
@@ -6,7 +6,11 @@ function s() {
|
|
|
6
6
|
}
|
|
7
7
|
function c(e) {
|
|
8
8
|
let t = document.createElement("style");
|
|
9
|
-
t.textContent = "*,*::before,*::after{transition:
|
|
9
|
+
t.textContent = "*,*::before,*::after{transition-duration:0s !important;animation-duration:0.01ms !important}", document.head.appendChild(t), document.documentElement.classList.toggle("dark", e), document.body?.offsetHeight;
|
|
10
|
+
let n = !1, r = () => {
|
|
11
|
+
n || (n = !0, t.remove());
|
|
12
|
+
};
|
|
13
|
+
requestAnimationFrame(r), setTimeout(r, 100);
|
|
10
14
|
}
|
|
11
15
|
function l() {
|
|
12
16
|
if (o || typeof window > "u") return;
|
|
@@ -95,6 +95,17 @@ export declare const SERIES_SLOTS = 8;
|
|
|
95
95
|
export declare function seriesColor(index: number): string;
|
|
96
96
|
/** A series' palette slot: pinned if it has one, otherwise its position. */
|
|
97
97
|
export declare function slotOf(entry: ChartSeries, index: number): number;
|
|
98
|
+
/**
|
|
99
|
+
* Dev-only warning.
|
|
100
|
+
*
|
|
101
|
+
* `process.env.NODE_ENV` is read as a bare global rather than through an
|
|
102
|
+
* `import process from 'node:process'`, which is what this used to do. That
|
|
103
|
+
* import shipped a Node builtin in a browser library: bundlers externalise it,
|
|
104
|
+
* `process` is undefined in a browser, and this line threw the moment a chart
|
|
105
|
+
* had more than eight series. Every bundler statically replaces the bare form
|
|
106
|
+
* instead, which also lets the whole branch be dropped from a production
|
|
107
|
+
* build — the same thing Vue and Reka do.
|
|
108
|
+
*/
|
|
98
109
|
export declare function warnOnSlotOverflow(count: number): void;
|
|
99
110
|
/**
|
|
100
111
|
* Keep a tooltip inside the chart's own box. Estimated from the text rather
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { extent as e, linearScale as t, niceTicks as n } from "./scale.js";
|
|
2
|
-
import r from "node:process";
|
|
3
2
|
//#region src/composables/cartesian.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
let a =
|
|
3
|
+
var r = 6.5, i = 8, a = 20, o = 8;
|
|
4
|
+
function s(i) {
|
|
5
|
+
let a = i.orientation ?? "vertical", o = a === "horizontal", s = e(i.values), c = s ? n(i.includeZero ? Math.min(0, s[0]) : s[0], i.includeZero ? Math.max(0, s[1]) : s[1], i.tickCount) : n(0, 1, i.tickCount), l = Math.ceil(Math.max(...c.ticks.map((e) => i.formatTick(e).length), 1) * r) + 8, u = o ? Math.ceil(i.longestLabel * r) + 8 : i.showAxis ? l : 0, d = o && !i.showAxis ? 0 : 20, f = o && i.showAxis ? Math.ceil(l / 2) : 0, p = {
|
|
7
6
|
left: u,
|
|
8
7
|
top: 8,
|
|
9
|
-
width: Math.max(
|
|
10
|
-
height: Math.max(
|
|
11
|
-
}, m = o ? t([c.min, c.max], [p.left, p.left + p.width]) : t([c.min, c.max], [p.top + p.height, p.top]), h = o ? p.height : p.width, g =
|
|
8
|
+
width: Math.max(i.width - u - f, 0),
|
|
9
|
+
height: Math.max(i.height - 8 - d, 0)
|
|
10
|
+
}, m = o ? t([c.min, c.max], [p.left, p.left + p.width]) : t([c.min, c.max], [p.top + p.height, p.top]), h = o ? p.height : p.width, g = i.categories ? h / i.categories : 0, _ = o ? p.top : p.left, v = o ? 16 : i.longestLabel * r + 8, y = g ? Math.max(1, Math.ceil(v / g)) : 1;
|
|
12
11
|
return {
|
|
13
12
|
orientation: a,
|
|
14
13
|
ticks: c.ticks,
|
|
@@ -20,24 +19,24 @@ function c(r) {
|
|
|
20
19
|
bandCentre: (e) => _ + g * (e + .5)
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
|
-
var
|
|
24
|
-
function
|
|
22
|
+
var c = 8;
|
|
23
|
+
function l(e) {
|
|
25
24
|
return `var(--iryx-chart-${Math.min(Math.max(e, 0), 7) + 1})`;
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function u(e, t) {
|
|
28
27
|
return e.slot ?? t;
|
|
29
28
|
}
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
e <= 8 ||
|
|
29
|
+
var d = !1;
|
|
30
|
+
function f(e) {
|
|
31
|
+
e <= 8 || d || process.env.NODE_ENV === "production" || (d = !0, console.warn(`[iryx-ui] ${e} chart series exceeds the 8 categorical slots. Colours past the eighth repeat and stop identifying anything — fold the tail into "Other", or use small multiples.`));
|
|
33
32
|
}
|
|
34
|
-
function
|
|
35
|
-
let r =
|
|
33
|
+
function p(e, t, n) {
|
|
34
|
+
let r = h(t);
|
|
36
35
|
return n <= r * 2 ? n / 2 : Math.min(Math.max(e, r), Math.max(n - r, r));
|
|
37
36
|
}
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return (e.length *
|
|
37
|
+
var m = 5.6;
|
|
38
|
+
function h(e) {
|
|
39
|
+
return (e.length * m + 28) / 2;
|
|
41
40
|
}
|
|
42
41
|
//#endregion
|
|
43
|
-
export {
|
|
42
|
+
export { i as AXIS_GAP, a as CATEGORY_HEIGHT, r as CHAR_WIDTH, c as SERIES_SLOTS, o as TOP_PAD, s as cartesianLayout, p as clampTooltip, l as seriesColor, u as slotOf, h as tooltipHalfWidth, f as warnOnSlotOverflow };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { IconLike } from './icon';
|
|
2
|
+
export interface CommandItem {
|
|
3
|
+
/** What the reader searches for and reads. */
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: IconLike;
|
|
6
|
+
/**
|
|
7
|
+
* Displayed at the trailing edge, split on spaces into separate keys.
|
|
8
|
+
* Display only — the palette never binds it, because the shortcut belongs
|
|
9
|
+
* to the command itself and works whether or not the palette is open.
|
|
10
|
+
*/
|
|
11
|
+
shortcut?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Extra search terms that never appear on screen: synonyms, the old name of
|
|
14
|
+
* a renamed page, the word a reader would guess.
|
|
15
|
+
*/
|
|
16
|
+
keywords?: string[];
|
|
17
|
+
/** Renders the row as a link, so middle-click and open-in-new-tab work. */
|
|
18
|
+
href?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onSelect?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export interface CommandGroup {
|
|
23
|
+
label: string;
|
|
24
|
+
items: CommandItem[];
|
|
25
|
+
}
|
|
26
|
+
export type CommandEntry = CommandItem | CommandGroup;
|
|
27
|
+
export declare function isCommandGroup(entry: CommandEntry): entry is CommandGroup;
|
|
28
|
+
/** Normalise to groups, so the template has a single path to render. */
|
|
29
|
+
export declare function toCommandGroups(entries: CommandEntry[] | undefined): CommandGroup[];
|
|
30
|
+
/**
|
|
31
|
+
* Everything a query should match against: the label, the group it sits in,
|
|
32
|
+
* and any keywords. Joined rather than tested separately so a query spanning
|
|
33
|
+
* two of them ("settings members") still matches.
|
|
34
|
+
*/
|
|
35
|
+
export declare function commandHaystack(item: CommandItem, group: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Parse a hotkey like `mod+k` into a matcher.
|
|
38
|
+
*
|
|
39
|
+
* `mod` is Command on Apple platforms and Control everywhere else — the same
|
|
40
|
+
* key in muscle memory, a different key on the wire.
|
|
41
|
+
*/
|
|
42
|
+
export declare function matchesHotkey(event: KeyboardEvent, hotkey: string): boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { isApplePlatform as e } from "./kbd.js";
|
|
2
|
+
//#region src/composables/command-palette.ts
|
|
3
|
+
function t(e) {
|
|
4
|
+
return Array.isArray(e.items);
|
|
5
|
+
}
|
|
6
|
+
function n(e) {
|
|
7
|
+
let n = [], r;
|
|
8
|
+
for (let i of e ?? []) {
|
|
9
|
+
if (t(i)) {
|
|
10
|
+
n.push(i), r = void 0;
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
r || (r = [], n.push({
|
|
14
|
+
label: "",
|
|
15
|
+
items: r
|
|
16
|
+
})), r.push(i);
|
|
17
|
+
}
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
function r(e, t) {
|
|
21
|
+
return [
|
|
22
|
+
e.label,
|
|
23
|
+
t,
|
|
24
|
+
...e.keywords ?? []
|
|
25
|
+
].join(" ");
|
|
26
|
+
}
|
|
27
|
+
function i(t, n) {
|
|
28
|
+
let r = n.toLowerCase().split("+").map((e) => e.trim()), i = r.at(-1) ?? "", a = r.includes("mod"), o = r.includes("ctrl") || r.includes("control"), s = r.includes("meta") || r.includes("cmd"), c = r.includes("shift"), l = r.includes("alt") || r.includes("option"), u = e() ? t.metaKey : t.ctrlKey;
|
|
29
|
+
return a && !u || o && !t.ctrlKey || s && !t.metaKey || c !== t.shiftKey || l !== t.altKey ? !1 : t.key.toLowerCase() === i;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { r as commandHaystack, t as isCommandGroup, i as matchesHotkey, n as toCommandGroups };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DateValue } from '@internationalized/date';
|
|
2
|
-
import { CalendarDate } from '@internationalized/date';
|
|
2
|
+
import { CalendarDate, Time } from '@internationalized/date';
|
|
3
3
|
/**
|
|
4
4
|
* Parse an ISO date, or `undefined` if it is absent or malformed.
|
|
5
5
|
*
|
|
@@ -17,5 +17,21 @@ export declare function isoToday(): string;
|
|
|
17
17
|
* so a caller can fall back to a placeholder.
|
|
18
18
|
*/
|
|
19
19
|
export declare function formatIsoDate(iso: string | null | undefined, locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Parse a `HH:mm` (or `HH:mm:ss`) string, or `undefined` if it is absent or
|
|
22
|
+
* malformed. Same bargain as {@link toCalendarDate}: bad input means "no
|
|
23
|
+
* selection" rather than a thrown render.
|
|
24
|
+
*/
|
|
25
|
+
export declare function toTime(value: string | null | undefined): Time | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Back to `HH:mm`, or `HH:mm:ss` when there are seconds to keep. Padded, so
|
|
28
|
+
* the result sorts and compares as a string — which is most of the reason to
|
|
29
|
+
* hold a time as one.
|
|
30
|
+
*/
|
|
31
|
+
export declare function toIsoTime(time: {
|
|
32
|
+
hour: number;
|
|
33
|
+
minute: number;
|
|
34
|
+
second?: number;
|
|
35
|
+
} | null | undefined): string | null;
|
|
36
|
+
export { CalendarDate, Time };
|
|
21
37
|
export type { DateValue };
|
package/dist/composables/date.js
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $58246871e4652552$export$6b862160d295c8e as n } from "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js";
|
|
3
|
-
import "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js";
|
|
4
|
-
import { $12a3c853105e5a70$export$ad991b66133851cf as r } from "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js";
|
|
1
|
+
import { CalendarDate as e, DateFormatter as t, Time as n, getLocalTimeZone as r, parseDate as i, today as a } from "@internationalized/date";
|
|
5
2
|
//#region src/composables/date.ts
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (!(!e || !
|
|
9
|
-
return
|
|
3
|
+
var o = /^\d{4}-\d{2}-\d{2}$/;
|
|
4
|
+
function s(e) {
|
|
5
|
+
if (!(!e || !o.test(e))) try {
|
|
6
|
+
return i(e);
|
|
10
7
|
} catch {
|
|
11
8
|
return;
|
|
12
9
|
}
|
|
13
10
|
}
|
|
14
|
-
function
|
|
11
|
+
function c(e) {
|
|
15
12
|
return e ? `${e.year.toString().padStart(4, "0")}-${e.month.toString().padStart(2, "0")}-${e.day.toString().padStart(2, "0")}` : null;
|
|
16
13
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
14
|
+
function l() {
|
|
15
|
+
return c(a(r()));
|
|
19
16
|
}
|
|
20
|
-
function
|
|
21
|
-
let
|
|
22
|
-
return
|
|
17
|
+
function u(e, n, i = { dateStyle: "medium" }) {
|
|
18
|
+
let a = s(e);
|
|
19
|
+
return a ? new t(n ?? "en-US", i).format(a.toDate(r())) : "";
|
|
20
|
+
}
|
|
21
|
+
var d = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/;
|
|
22
|
+
function f(e) {
|
|
23
|
+
if (!e || !d.test(e)) return;
|
|
24
|
+
let [t, r, i] = e.split(":").map(Number);
|
|
25
|
+
return new n(t, r, i ?? 0);
|
|
26
|
+
}
|
|
27
|
+
function p(e) {
|
|
28
|
+
if (!e) return null;
|
|
29
|
+
let t = (e) => String(e).padStart(2, "0"), n = `${t(e.hour)}:${t(e.minute)}`;
|
|
30
|
+
return e.second ? `${n}:${t(e.second)}` : n;
|
|
23
31
|
}
|
|
24
32
|
//#endregion
|
|
25
|
-
export {
|
|
33
|
+
export { e as CalendarDate, n as Time, u as formatIsoDate, l as isoToday, s as toCalendarDate, c as toIsoDate, p as toIsoTime, f as toTime };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the reader is on an Apple platform, resolved **after mount**.
|
|
3
|
+
*
|
|
4
|
+
* It cannot be resolved during render: there is no `navigator` on the server,
|
|
5
|
+
* so server markup would say "Ctrl" and the client would say "⌘" — a
|
|
6
|
+
* hydration mismatch on every page carrying a shortcut. Starting `false` and
|
|
7
|
+
* correcting on mount means the worst case is one frame of the wrong glyph
|
|
8
|
+
* rather than a mismatched tree.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useApplePlatform(): import("vue").Ref<boolean, boolean>;
|
|
11
|
+
/** The same check, for code that already runs in the browser. */
|
|
12
|
+
export declare function isApplePlatform(): boolean;
|
|
13
|
+
export interface KbdKey {
|
|
14
|
+
/** What is drawn in the chip. */
|
|
15
|
+
symbol: string;
|
|
16
|
+
/** What a screen reader says instead. */
|
|
17
|
+
spoken: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Turn a hotkey into the keys to draw — `mod+k` becomes `⌘` and `K` on a Mac,
|
|
21
|
+
* `Ctrl` and `K` elsewhere.
|
|
22
|
+
*
|
|
23
|
+
* Accepts the same vocabulary as `matchesHotkey`, so the shortcut you bind and
|
|
24
|
+
* the shortcut you show are written the same way.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseHotkey(hotkey: string | string[], apple: boolean): KbdKey[];
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { onMounted as e, ref as t } from "vue";
|
|
2
|
+
//#region src/composables/kbd.ts
|
|
3
|
+
function n() {
|
|
4
|
+
let n = t(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
n.value = r();
|
|
7
|
+
}), n;
|
|
8
|
+
}
|
|
9
|
+
function r() {
|
|
10
|
+
return typeof navigator > "u" ? !1 : /mac|iphone|ipad|ipod/i.test(navigator.platform || navigator.userAgent);
|
|
11
|
+
}
|
|
12
|
+
var i = {
|
|
13
|
+
mod: {
|
|
14
|
+
apple: "⌘",
|
|
15
|
+
other: "Ctrl",
|
|
16
|
+
spoken: "Command",
|
|
17
|
+
spokenOther: "Control"
|
|
18
|
+
},
|
|
19
|
+
meta: {
|
|
20
|
+
apple: "⌘",
|
|
21
|
+
other: "Win",
|
|
22
|
+
spoken: "Command",
|
|
23
|
+
spokenOther: "Windows"
|
|
24
|
+
},
|
|
25
|
+
cmd: {
|
|
26
|
+
apple: "⌘",
|
|
27
|
+
other: "Ctrl",
|
|
28
|
+
spoken: "Command",
|
|
29
|
+
spokenOther: "Control"
|
|
30
|
+
},
|
|
31
|
+
ctrl: {
|
|
32
|
+
apple: "⌃",
|
|
33
|
+
other: "Ctrl",
|
|
34
|
+
spoken: "Control"
|
|
35
|
+
},
|
|
36
|
+
control: {
|
|
37
|
+
apple: "⌃",
|
|
38
|
+
other: "Ctrl",
|
|
39
|
+
spoken: "Control"
|
|
40
|
+
},
|
|
41
|
+
shift: {
|
|
42
|
+
apple: "⇧",
|
|
43
|
+
other: "Shift",
|
|
44
|
+
spoken: "Shift"
|
|
45
|
+
},
|
|
46
|
+
alt: {
|
|
47
|
+
apple: "⌥",
|
|
48
|
+
other: "Alt",
|
|
49
|
+
spoken: "Option",
|
|
50
|
+
spokenOther: "Alt"
|
|
51
|
+
},
|
|
52
|
+
option: {
|
|
53
|
+
apple: "⌥",
|
|
54
|
+
other: "Alt",
|
|
55
|
+
spoken: "Option",
|
|
56
|
+
spokenOther: "Alt"
|
|
57
|
+
}
|
|
58
|
+
}, a = {
|
|
59
|
+
enter: {
|
|
60
|
+
symbol: "↵",
|
|
61
|
+
spoken: "Enter"
|
|
62
|
+
},
|
|
63
|
+
return: {
|
|
64
|
+
symbol: "↵",
|
|
65
|
+
spoken: "Return"
|
|
66
|
+
},
|
|
67
|
+
escape: {
|
|
68
|
+
symbol: "Esc",
|
|
69
|
+
spoken: "Escape"
|
|
70
|
+
},
|
|
71
|
+
esc: {
|
|
72
|
+
symbol: "Esc",
|
|
73
|
+
spoken: "Escape"
|
|
74
|
+
},
|
|
75
|
+
backspace: {
|
|
76
|
+
symbol: "⌫",
|
|
77
|
+
spoken: "Backspace"
|
|
78
|
+
},
|
|
79
|
+
delete: {
|
|
80
|
+
symbol: "⌦",
|
|
81
|
+
spoken: "Delete"
|
|
82
|
+
},
|
|
83
|
+
tab: {
|
|
84
|
+
symbol: "⇥",
|
|
85
|
+
spoken: "Tab"
|
|
86
|
+
},
|
|
87
|
+
space: {
|
|
88
|
+
symbol: "␣",
|
|
89
|
+
spoken: "Space"
|
|
90
|
+
},
|
|
91
|
+
capslock: {
|
|
92
|
+
symbol: "⇪",
|
|
93
|
+
spoken: "Caps lock"
|
|
94
|
+
},
|
|
95
|
+
win: {
|
|
96
|
+
symbol: "⊞",
|
|
97
|
+
spoken: "Windows"
|
|
98
|
+
},
|
|
99
|
+
pageup: {
|
|
100
|
+
symbol: "⇞",
|
|
101
|
+
spoken: "Page up"
|
|
102
|
+
},
|
|
103
|
+
pagedown: {
|
|
104
|
+
symbol: "⇟",
|
|
105
|
+
spoken: "Page down"
|
|
106
|
+
},
|
|
107
|
+
home: {
|
|
108
|
+
symbol: "↖",
|
|
109
|
+
spoken: "Home"
|
|
110
|
+
},
|
|
111
|
+
end: {
|
|
112
|
+
symbol: "↘",
|
|
113
|
+
spoken: "End"
|
|
114
|
+
},
|
|
115
|
+
up: {
|
|
116
|
+
symbol: "↑",
|
|
117
|
+
spoken: "Up arrow"
|
|
118
|
+
},
|
|
119
|
+
down: {
|
|
120
|
+
symbol: "↓",
|
|
121
|
+
spoken: "Down arrow"
|
|
122
|
+
},
|
|
123
|
+
left: {
|
|
124
|
+
symbol: "←",
|
|
125
|
+
spoken: "Left arrow"
|
|
126
|
+
},
|
|
127
|
+
right: {
|
|
128
|
+
symbol: "→",
|
|
129
|
+
spoken: "Right arrow"
|
|
130
|
+
},
|
|
131
|
+
arrowup: {
|
|
132
|
+
symbol: "↑",
|
|
133
|
+
spoken: "Up arrow"
|
|
134
|
+
},
|
|
135
|
+
arrowdown: {
|
|
136
|
+
symbol: "↓",
|
|
137
|
+
spoken: "Down arrow"
|
|
138
|
+
},
|
|
139
|
+
arrowleft: {
|
|
140
|
+
symbol: "←",
|
|
141
|
+
spoken: "Left arrow"
|
|
142
|
+
},
|
|
143
|
+
arrowright: {
|
|
144
|
+
symbol: "→",
|
|
145
|
+
spoken: "Right arrow"
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
function o(e, t) {
|
|
149
|
+
return (Array.isArray(e) ? e : e.split("+").map((e) => e.trim()).filter(Boolean)).map((e) => {
|
|
150
|
+
let n = e.toLowerCase(), r = i[n];
|
|
151
|
+
return r ? {
|
|
152
|
+
symbol: t ? r.apple : r.other,
|
|
153
|
+
spoken: t ? r.spoken : r.spokenOther ?? r.spoken
|
|
154
|
+
} : a[n] || {
|
|
155
|
+
symbol: e.length === 1 ? e.toUpperCase() : e,
|
|
156
|
+
spoken: e.toUpperCase()
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
export { r as isApplePlatform, o as parseHotkey, n as useApplePlatform };
|