iryx-ui 0.2.0 → 0.3.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 +180 -20
- package/dist/component-names.d.ts +1 -1
- package/dist/components/Alert.vue.d.ts +3 -3
- package/dist/components/Breadcrumb.vue.d.ts +45 -0
- package/dist/components/Button.vue.d.ts +8 -0
- package/dist/components/ButtonGroup.vue.d.ts +32 -0
- package/dist/components/ConfirmDialog.vue.d.ts +18 -0
- package/dist/components/Dialog.vue.d.ts +65 -0
- package/dist/components/DropdownMenu.vue.d.ts +49 -0
- package/dist/components/DropdownMenuItems.vue.d.ts +24 -0
- package/dist/components/EmptyState.vue.d.ts +46 -0
- package/dist/components/FormField.vue.d.ts +9 -0
- package/dist/components/Icon.vue.d.ts +8 -0
- package/dist/components/Label.vue.d.ts +6 -0
- package/dist/components/Pagination.vue.d.ts +57 -0
- package/dist/components/Progress.vue.d.ts +52 -0
- package/dist/components/Separator.vue.d.ts +36 -0
- package/dist/components/Skeleton.vue.d.ts +20 -0
- package/dist/components/Stat.vue.d.ts +57 -0
- package/dist/components/Stepper.vue.d.ts +61 -0
- package/dist/components/Tabs.vue.d.ts +63 -0
- package/dist/components/Toaster.vue.d.ts +28 -0
- package/dist/components/Tooltip.vue.d.ts +49 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/composables/button-group.d.ts +12 -0
- package/dist/composables/confirm.d.ts +36 -0
- package/dist/composables/dropdown-menu.d.ts +22 -0
- package/dist/composables/icon.d.ts +10 -0
- package/dist/composables/toast.d.ts +42 -0
- package/dist/config.d.ts +9 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +64 -31
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +201 -0
- 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 +8 -0
- 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 +25 -0
- 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 +63 -0
- package/dist/nuxt.js +1 -1
- package/dist/packages/iryx-ui/src/component-names.js +4 -0
- package/dist/packages/iryx-ui/src/components/Alert.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/packages/iryx-ui/src/components/Breadcrumb.js +5 -0
- package/dist/packages/iryx-ui/src/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/packages/iryx-ui/src/components/Button.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/packages/iryx-ui/src/components/ButtonGroup.js +5 -0
- package/dist/packages/iryx-ui/src/components/ButtonGroup.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/packages/iryx-ui/src/components/Checkbox.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/packages/iryx-ui/src/components/ConfirmDialog.js +5 -0
- package/dist/packages/iryx-ui/src/components/ConfirmDialog.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/packages/iryx-ui/src/components/Dialog.js +5 -0
- package/dist/packages/iryx-ui/src/components/Dialog.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenu.js +5 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenu.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenuItems.js +5 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/packages/iryx-ui/src/components/EmptyState.js +5 -0
- package/dist/packages/iryx-ui/src/components/EmptyState.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/{components → packages/iryx-ui/src/components}/FormField.vue_vue_type_script_setup_true_lang.js +5 -3
- package/dist/packages/iryx-ui/src/components/Icon.js +5 -0
- package/dist/packages/iryx-ui/src/components/Icon.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/{components → packages/iryx-ui/src/components}/Label.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/packages/iryx-ui/src/components/Pagination.js +5 -0
- package/dist/packages/iryx-ui/src/components/Pagination.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/packages/iryx-ui/src/components/Progress.js +5 -0
- package/dist/packages/iryx-ui/src/components/Progress.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/packages/iryx-ui/src/components/Select.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/packages/iryx-ui/src/components/Separator.js +5 -0
- package/dist/packages/iryx-ui/src/components/Separator.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/packages/iryx-ui/src/components/Skeleton.js +5 -0
- package/dist/packages/iryx-ui/src/components/Skeleton.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/packages/iryx-ui/src/components/Stat.js +5 -0
- package/dist/packages/iryx-ui/src/components/Stat.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/packages/iryx-ui/src/components/Stepper.js +5 -0
- package/dist/packages/iryx-ui/src/components/Stepper.vue_vue_type_script_setup_true_lang.js +89 -0
- package/dist/packages/iryx-ui/src/components/Tabs.js +5 -0
- package/dist/packages/iryx-ui/src/components/Tabs.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/packages/iryx-ui/src/components/Toaster.js +5 -0
- package/dist/packages/iryx-ui/src/components/Toaster.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/packages/iryx-ui/src/components/Tooltip.js +5 -0
- package/dist/packages/iryx-ui/src/components/Tooltip.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/packages/iryx-ui/src/components/index.js +64 -0
- package/dist/{composables → packages/iryx-ui/src/composables}/appearance.js +11 -7
- package/dist/packages/iryx-ui/src/composables/button-group.js +8 -0
- package/dist/packages/iryx-ui/src/composables/confirm.js +25 -0
- package/dist/packages/iryx-ui/src/composables/dropdown-menu.js +9 -0
- package/dist/packages/iryx-ui/src/composables/icon.js +6 -0
- package/dist/packages/iryx-ui/src/composables/toast.js +38 -0
- package/dist/{theme → packages/iryx-ui/src/theme}/badge.js +3 -3
- package/dist/packages/iryx-ui/src/theme/breadcrumb.js +12 -0
- package/dist/packages/iryx-ui/src/theme/button-group.js +15 -0
- package/dist/packages/iryx-ui/src/theme/button.js +59 -0
- package/dist/packages/iryx-ui/src/theme/dialog.js +23 -0
- package/dist/packages/iryx-ui/src/theme/dropdown-menu.js +16 -0
- package/dist/packages/iryx-ui/src/theme/empty-state.js +34 -0
- package/dist/packages/iryx-ui/src/theme/form.js +38 -0
- package/dist/{theme → packages/iryx-ui/src/theme}/label.js +10 -1
- package/dist/packages/iryx-ui/src/theme/pagination.js +29 -0
- package/dist/packages/iryx-ui/src/theme/progress.js +33 -0
- package/dist/packages/iryx-ui/src/theme/separator.js +22 -0
- package/dist/packages/iryx-ui/src/theme/skeleton.js +13 -0
- package/dist/packages/iryx-ui/src/theme/stat.js +30 -0
- package/dist/packages/iryx-ui/src/theme/stepper.js +25 -0
- package/dist/packages/iryx-ui/src/theme/tabs.js +52 -0
- package/dist/packages/iryx-ui/src/theme/toast.js +53 -0
- package/dist/packages/iryx-ui/src/theme/tooltip.js +8 -0
- package/dist/theme/breadcrumb.d.ts +59 -0
- package/dist/theme/button-group.d.ts +29 -0
- package/dist/theme/button.d.ts +17 -2
- package/dist/theme/dialog.d.ts +74 -0
- package/dist/theme/dropdown-menu.d.ts +53 -0
- package/dist/theme/empty-state.d.ts +86 -0
- package/dist/theme/form.d.ts +62 -35
- package/dist/theme/index.d.ts +14 -0
- package/dist/theme/label.d.ts +18 -0
- package/dist/theme/pagination.d.ts +71 -0
- package/dist/theme/progress.d.ts +143 -0
- package/dist/theme/separator.d.ts +50 -0
- package/dist/theme/skeleton.d.ts +23 -0
- package/dist/theme/stat.d.ts +110 -0
- package/dist/theme/stepper.d.ts +56 -0
- package/dist/theme/tabs.d.ts +104 -0
- package/dist/theme/toast.d.ts +176 -0
- package/dist/theme/tooltip.d.ts +32 -0
- package/package.json +4 -3
- package/theme.css +55 -0
- package/dist/component-names.js +0 -19
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +0 -74
- package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +0 -54
- package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +0 -79
- package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +0 -84
- package/dist/components/index.js +0 -34
- package/dist/theme/button.js +0 -27
- package/dist/theme/form.js +0 -14
- /package/dist/{components → packages/iryx-ui/src/components}/Alert.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/App.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/App.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Badge.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Badge.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Button.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Card.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Card.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Checkbox.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Form.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Form.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/FormField.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Input.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Input.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Label.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/RadioGroup.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/RadioGroup.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Select.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Switch.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Switch.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Textarea.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Textarea.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{composables → packages/iryx-ui/src/composables}/form.js +0 -0
- /package/dist/{config.js → packages/iryx-ui/src/config.js} +0 -0
- /package/dist/{plugin.js → packages/iryx-ui/src/plugin.js} +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/alert.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/card.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/checkbox.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/input.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/presets.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/radio-group.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/select.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/switch.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,31 +1,64 @@
|
|
|
1
|
-
import { componentNames as e } from "./component-names.js";
|
|
2
|
-
import { defaultConfig as t, iryxUiConfigKey as n, useIryxUiConfig as r } from "./config.js";
|
|
3
|
-
import { alertTheme as i } from "./theme/alert.js";
|
|
4
|
-
import a from "./components/Alert.js";
|
|
5
|
-
import { initAppearance as o, useAppearance as s } from "./composables/appearance.js";
|
|
6
|
-
import { applyTheme as c, clearTheme as l, themes as u } from "./theme/presets.js";
|
|
7
|
-
import d from "./components/App.js";
|
|
8
|
-
import { badgeTheme as f } from "./theme/badge.js";
|
|
9
|
-
import p from "./components/Badge.js";
|
|
10
|
-
import {
|
|
11
|
-
import h from "./components/
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
|
|
1
|
+
import { componentNames as e } from "./packages/iryx-ui/src/component-names.js";
|
|
2
|
+
import { defaultConfig as t, iryxUiConfigKey as n, useIryxUiConfig as r } from "./packages/iryx-ui/src/config.js";
|
|
3
|
+
import { alertTheme as i } from "./packages/iryx-ui/src/theme/alert.js";
|
|
4
|
+
import a from "./packages/iryx-ui/src/components/Alert.js";
|
|
5
|
+
import { initAppearance as o, useAppearance as s } from "./packages/iryx-ui/src/composables/appearance.js";
|
|
6
|
+
import { applyTheme as c, clearTheme as l, themes as u } from "./packages/iryx-ui/src/theme/presets.js";
|
|
7
|
+
import d from "./packages/iryx-ui/src/components/App.js";
|
|
8
|
+
import { badgeTheme as f } from "./packages/iryx-ui/src/theme/badge.js";
|
|
9
|
+
import p from "./packages/iryx-ui/src/components/Badge.js";
|
|
10
|
+
import { breadcrumbTheme as m } from "./packages/iryx-ui/src/theme/breadcrumb.js";
|
|
11
|
+
import h from "./packages/iryx-ui/src/components/Breadcrumb.js";
|
|
12
|
+
import { buttonGroupContextKey as g, useButtonGroup as _ } from "./packages/iryx-ui/src/composables/button-group.js";
|
|
13
|
+
import { buttonTheme as v } from "./packages/iryx-ui/src/theme/button.js";
|
|
14
|
+
import y from "./packages/iryx-ui/src/components/Button.js";
|
|
15
|
+
import { buttonGroupTheme as b } from "./packages/iryx-ui/src/theme/button-group.js";
|
|
16
|
+
import x from "./packages/iryx-ui/src/components/ButtonGroup.js";
|
|
17
|
+
import { cardTheme as S } from "./packages/iryx-ui/src/theme/card.js";
|
|
18
|
+
import C from "./packages/iryx-ui/src/components/Card.js";
|
|
19
|
+
import { checkboxTheme as w } from "./packages/iryx-ui/src/theme/checkbox.js";
|
|
20
|
+
import T from "./packages/iryx-ui/src/components/Checkbox.js";
|
|
21
|
+
import { resolveConfirm as E, useConfirm as D, useConfirmState as O } from "./packages/iryx-ui/src/composables/confirm.js";
|
|
22
|
+
import { dialogTheme as k } from "./packages/iryx-ui/src/theme/dialog.js";
|
|
23
|
+
import A from "./packages/iryx-ui/src/components/Dialog.js";
|
|
24
|
+
import j from "./packages/iryx-ui/src/components/ConfirmDialog.js";
|
|
25
|
+
import { dropdownMenuTheme as M } from "./packages/iryx-ui/src/theme/dropdown-menu.js";
|
|
26
|
+
import { isSeparator as N, isSubmenu as P } from "./packages/iryx-ui/src/composables/dropdown-menu.js";
|
|
27
|
+
import F from "./packages/iryx-ui/src/components/DropdownMenu.js";
|
|
28
|
+
import { emptyStateTheme as I } from "./packages/iryx-ui/src/theme/empty-state.js";
|
|
29
|
+
import L from "./packages/iryx-ui/src/components/EmptyState.js";
|
|
30
|
+
import { formContextKey as R, formFieldContextKey as z, getByPath as B, isStandardSchema as V, issuePath as H, useForm as U, useFormField as W } from "./packages/iryx-ui/src/composables/form.js";
|
|
31
|
+
import G from "./packages/iryx-ui/src/components/Form.js";
|
|
32
|
+
import { labelTheme as K } from "./packages/iryx-ui/src/theme/label.js";
|
|
33
|
+
import q from "./packages/iryx-ui/src/components/Label.js";
|
|
34
|
+
import J from "./packages/iryx-ui/src/components/FormField.js";
|
|
35
|
+
import { fieldBase as Y, inputTheme as X, textareaTheme as Z } from "./packages/iryx-ui/src/theme/input.js";
|
|
36
|
+
import Q from "./packages/iryx-ui/src/components/Input.js";
|
|
37
|
+
import { paginationTheme as $ } from "./packages/iryx-ui/src/theme/pagination.js";
|
|
38
|
+
import ee from "./packages/iryx-ui/src/components/Pagination.js";
|
|
39
|
+
import { progressTheme as te } from "./packages/iryx-ui/src/theme/progress.js";
|
|
40
|
+
import ne from "./packages/iryx-ui/src/components/Progress.js";
|
|
41
|
+
import { radioGroupTheme as re } from "./packages/iryx-ui/src/theme/radio-group.js";
|
|
42
|
+
import ie from "./packages/iryx-ui/src/components/RadioGroup.js";
|
|
43
|
+
import { selectTheme as ae } from "./packages/iryx-ui/src/theme/select.js";
|
|
44
|
+
import oe from "./packages/iryx-ui/src/components/Select.js";
|
|
45
|
+
import { separatorTheme as se } from "./packages/iryx-ui/src/theme/separator.js";
|
|
46
|
+
import ce from "./packages/iryx-ui/src/components/Separator.js";
|
|
47
|
+
import { skeletonTheme as le } from "./packages/iryx-ui/src/theme/skeleton.js";
|
|
48
|
+
import ue from "./packages/iryx-ui/src/components/Skeleton.js";
|
|
49
|
+
import { statTheme as de } from "./packages/iryx-ui/src/theme/stat.js";
|
|
50
|
+
import fe from "./packages/iryx-ui/src/components/Stat.js";
|
|
51
|
+
import { stepperTheme as pe } from "./packages/iryx-ui/src/theme/stepper.js";
|
|
52
|
+
import me from "./packages/iryx-ui/src/components/Stepper.js";
|
|
53
|
+
import { switchTheme as he } from "./packages/iryx-ui/src/theme/switch.js";
|
|
54
|
+
import ge from "./packages/iryx-ui/src/components/Switch.js";
|
|
55
|
+
import { tabsTheme as _e } from "./packages/iryx-ui/src/theme/tabs.js";
|
|
56
|
+
import ve from "./packages/iryx-ui/src/components/Tabs.js";
|
|
57
|
+
import ye from "./packages/iryx-ui/src/components/Textarea.js";
|
|
58
|
+
import { useToast as be, useToastState as xe } from "./packages/iryx-ui/src/composables/toast.js";
|
|
59
|
+
import { toastTheme as Se } from "./packages/iryx-ui/src/theme/toast.js";
|
|
60
|
+
import Ce from "./packages/iryx-ui/src/components/Toaster.js";
|
|
61
|
+
import { tooltipTheme as we } from "./packages/iryx-ui/src/theme/tooltip.js";
|
|
62
|
+
import Te from "./packages/iryx-ui/src/components/Tooltip.js";
|
|
63
|
+
import { IryxUi as Ee, createIryxUi as De } from "./packages/iryx-ui/src/plugin.js";
|
|
64
|
+
export { a as Alert, d as App, p as Badge, h as Breadcrumb, y as Button, x as ButtonGroup, C as Card, T as Checkbox, j as ConfirmDialog, A as Dialog, F as DropdownMenu, L as EmptyState, G as Form, J as FormField, Q as Input, Ee as IryxUi, q as Label, ee as Pagination, ne as Progress, ie as RadioGroup, oe as Select, ce as Separator, ue as Skeleton, fe as Stat, me as Stepper, ge as Switch, ve as Tabs, ye as Textarea, Ce as Toaster, Te as Tooltip, i as alertTheme, c as applyTheme, f as badgeTheme, m as breadcrumbTheme, g as buttonGroupContextKey, b as buttonGroupTheme, v as buttonTheme, S as cardTheme, w as checkboxTheme, l as clearTheme, e as componentNames, De as createIryxUi, t as defaultConfig, k as dialogTheme, M as dropdownMenuTheme, I as emptyStateTheme, Y as fieldBase, R as formContextKey, z as formFieldContextKey, B as getByPath, o as initAppearance, X as inputTheme, n as iryxUiConfigKey, N as isSeparator, V as isStandardSchema, P as isSubmenu, H as issuePath, K as labelTheme, $ as paginationTheme, te as progressTheme, re as radioGroupTheme, E as resolveConfirm, ae as selectTheme, se as separatorTheme, le as skeletonTheme, de as statTheme, pe as stepperTheme, he as switchTheme, _e as tabsTheme, Z as textareaTheme, u as themes, Se as toastTheme, we as tooltipTheme, s as useAppearance, _ as useButtonGroup, D as useConfirm, O as useConfirmState, U as useForm, W as useFormField, r as useIryxUiConfig, be as useToast, xe as useToastState };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@hugeicons+core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js
|
|
2
|
+
var e = [
|
|
3
|
+
["path", {
|
|
4
|
+
d: "M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
strokeLinecap: "round",
|
|
7
|
+
strokeLinejoin: "round",
|
|
8
|
+
strokeWidth: "1.5",
|
|
9
|
+
key: "0"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "M12 9V13",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeLinecap: "round",
|
|
15
|
+
strokeLinejoin: "round",
|
|
16
|
+
strokeWidth: "1.5",
|
|
17
|
+
key: "1"
|
|
18
|
+
}],
|
|
19
|
+
["path", {
|
|
20
|
+
d: "M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeLinecap: "round",
|
|
23
|
+
strokeLinejoin: "round",
|
|
24
|
+
strokeWidth: "1.5",
|
|
25
|
+
key: "2"
|
|
26
|
+
}]
|
|
27
|
+
], t = [
|
|
28
|
+
["circle", {
|
|
29
|
+
cx: "12",
|
|
30
|
+
cy: "12",
|
|
31
|
+
r: "10",
|
|
32
|
+
stroke: "currentColor",
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round",
|
|
35
|
+
strokeWidth: "1.5",
|
|
36
|
+
key: "0"
|
|
37
|
+
}],
|
|
38
|
+
["path", {
|
|
39
|
+
d: "M12 8V12",
|
|
40
|
+
stroke: "currentColor",
|
|
41
|
+
strokeLinecap: "round",
|
|
42
|
+
strokeLinejoin: "round",
|
|
43
|
+
strokeWidth: "1.5",
|
|
44
|
+
key: "1"
|
|
45
|
+
}],
|
|
46
|
+
["path", {
|
|
47
|
+
d: "M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",
|
|
48
|
+
stroke: "currentColor",
|
|
49
|
+
strokeLinecap: "round",
|
|
50
|
+
strokeLinejoin: "round",
|
|
51
|
+
strokeWidth: "1.5",
|
|
52
|
+
key: "2"
|
|
53
|
+
}]
|
|
54
|
+
], n = [["path", {
|
|
55
|
+
d: "M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",
|
|
56
|
+
stroke: "currentColor",
|
|
57
|
+
strokeLinecap: "round",
|
|
58
|
+
strokeLinejoin: "round",
|
|
59
|
+
strokeWidth: "1.5",
|
|
60
|
+
key: "0"
|
|
61
|
+
}]], r = [["path", {
|
|
62
|
+
d: "M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",
|
|
63
|
+
stroke: "currentColor",
|
|
64
|
+
strokeLinecap: "round",
|
|
65
|
+
strokeLinejoin: "round",
|
|
66
|
+
strokeWidth: "1.5",
|
|
67
|
+
key: "0"
|
|
68
|
+
}]], i = [["path", {
|
|
69
|
+
d: "M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",
|
|
70
|
+
stroke: "currentColor",
|
|
71
|
+
strokeLinecap: "round",
|
|
72
|
+
strokeLinejoin: "round",
|
|
73
|
+
strokeWidth: "1.5",
|
|
74
|
+
key: "0"
|
|
75
|
+
}]], a = [["path", {
|
|
76
|
+
d: "M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",
|
|
77
|
+
stroke: "currentColor",
|
|
78
|
+
strokeLinecap: "round",
|
|
79
|
+
strokeLinejoin: "round",
|
|
80
|
+
strokeWidth: "1.5",
|
|
81
|
+
key: "0"
|
|
82
|
+
}]], o = [["path", {
|
|
83
|
+
d: "M18 6L6.00081 17.9992M17.9992 18L6 6.00085",
|
|
84
|
+
stroke: "currentColor",
|
|
85
|
+
strokeLinecap: "round",
|
|
86
|
+
strokeLinejoin: "round",
|
|
87
|
+
strokeWidth: "1.5",
|
|
88
|
+
key: "0"
|
|
89
|
+
}]], s = [["path", {
|
|
90
|
+
d: "M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",
|
|
91
|
+
stroke: "currentColor",
|
|
92
|
+
strokeWidth: "1.5",
|
|
93
|
+
key: "0"
|
|
94
|
+
}], ["path", {
|
|
95
|
+
d: "M8 12.5L10.5 15L16 9",
|
|
96
|
+
stroke: "currentColor",
|
|
97
|
+
strokeLinecap: "round",
|
|
98
|
+
strokeLinejoin: "round",
|
|
99
|
+
strokeWidth: "1.5",
|
|
100
|
+
key: "1"
|
|
101
|
+
}]], c = [
|
|
102
|
+
["circle", {
|
|
103
|
+
cx: "12",
|
|
104
|
+
cy: "12",
|
|
105
|
+
r: "10",
|
|
106
|
+
stroke: "currentColor",
|
|
107
|
+
strokeLinecap: "round",
|
|
108
|
+
strokeLinejoin: "round",
|
|
109
|
+
strokeWidth: "1.5",
|
|
110
|
+
key: "0"
|
|
111
|
+
}],
|
|
112
|
+
["path", {
|
|
113
|
+
d: "M12 16V12",
|
|
114
|
+
stroke: "currentColor",
|
|
115
|
+
strokeLinecap: "round",
|
|
116
|
+
strokeLinejoin: "round",
|
|
117
|
+
strokeWidth: "1.5",
|
|
118
|
+
key: "1"
|
|
119
|
+
}],
|
|
120
|
+
["path", {
|
|
121
|
+
d: "M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",
|
|
122
|
+
stroke: "currentColor",
|
|
123
|
+
strokeLinecap: "round",
|
|
124
|
+
strokeLinejoin: "round",
|
|
125
|
+
strokeWidth: "1.5",
|
|
126
|
+
key: "2"
|
|
127
|
+
}]
|
|
128
|
+
], l = [
|
|
129
|
+
["path", {
|
|
130
|
+
d: "M12 3V6",
|
|
131
|
+
stroke: "currentColor",
|
|
132
|
+
strokeLinecap: "round",
|
|
133
|
+
strokeWidth: "1.5",
|
|
134
|
+
key: "0"
|
|
135
|
+
}],
|
|
136
|
+
["path", {
|
|
137
|
+
d: "M12 18V21",
|
|
138
|
+
stroke: "currentColor",
|
|
139
|
+
strokeLinecap: "round",
|
|
140
|
+
strokeWidth: "1.5",
|
|
141
|
+
key: "1"
|
|
142
|
+
}],
|
|
143
|
+
["path", {
|
|
144
|
+
d: "M21 12L18 12",
|
|
145
|
+
stroke: "currentColor",
|
|
146
|
+
strokeLinecap: "round",
|
|
147
|
+
strokeWidth: "1.5",
|
|
148
|
+
key: "2"
|
|
149
|
+
}],
|
|
150
|
+
["path", {
|
|
151
|
+
d: "M6 12L3 12",
|
|
152
|
+
stroke: "currentColor",
|
|
153
|
+
strokeLinecap: "round",
|
|
154
|
+
strokeWidth: "1.5",
|
|
155
|
+
key: "3"
|
|
156
|
+
}],
|
|
157
|
+
["path", {
|
|
158
|
+
d: "M18.3635 5.63672L16.2422 7.75804",
|
|
159
|
+
stroke: "currentColor",
|
|
160
|
+
strokeLinecap: "round",
|
|
161
|
+
strokeWidth: "1.5",
|
|
162
|
+
key: "4"
|
|
163
|
+
}],
|
|
164
|
+
["path", {
|
|
165
|
+
d: "M7.75804 16.2422L5.63672 18.3635",
|
|
166
|
+
stroke: "currentColor",
|
|
167
|
+
strokeLinecap: "round",
|
|
168
|
+
strokeWidth: "1.5",
|
|
169
|
+
key: "5"
|
|
170
|
+
}],
|
|
171
|
+
["path", {
|
|
172
|
+
d: "M18.3635 18.3635L16.2422 16.2422",
|
|
173
|
+
stroke: "currentColor",
|
|
174
|
+
strokeLinecap: "round",
|
|
175
|
+
strokeWidth: "1.5",
|
|
176
|
+
key: "6"
|
|
177
|
+
}],
|
|
178
|
+
["path", {
|
|
179
|
+
d: "M7.75804 7.75804L5.63672 5.63672",
|
|
180
|
+
stroke: "currentColor",
|
|
181
|
+
strokeLinecap: "round",
|
|
182
|
+
strokeWidth: "1.5",
|
|
183
|
+
key: "7"
|
|
184
|
+
}]
|
|
185
|
+
], u = [["path", {
|
|
186
|
+
d: "M20 12L4 12",
|
|
187
|
+
stroke: "currentColor",
|
|
188
|
+
strokeLinecap: "round",
|
|
189
|
+
strokeLinejoin: "round",
|
|
190
|
+
strokeWidth: "1.5",
|
|
191
|
+
key: "0"
|
|
192
|
+
}]], d = [["path", {
|
|
193
|
+
d: "M5 14L8.5 17.5L19 6.5",
|
|
194
|
+
stroke: "currentColor",
|
|
195
|
+
strokeLinecap: "round",
|
|
196
|
+
strokeLinejoin: "round",
|
|
197
|
+
strokeWidth: "1.5",
|
|
198
|
+
key: "0"
|
|
199
|
+
}]];
|
|
200
|
+
//#endregion
|
|
201
|
+
export { e as Alert02Icon, t as AlertCircleIcon, n as ArrowDown01Icon, r as ArrowLeft01Icon, i as ArrowRight01Icon, a as ArrowUp01Icon, o as Cancel01Icon, s as CheckmarkCircle02Icon, c as InformationCircleIcon, l as Loading03Icon, u as MinusSignIcon, d as Tick02Icon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../../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
|
|
2
|
+
var e = (e, t) => {
|
|
3
|
+
let n = e.__vccOpts || e;
|
|
4
|
+
for (let [e, r] of t) n[e] = r;
|
|
5
|
+
return n;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as _export_sfc };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _sfc_main as e } from "./HugeiconsIcon.vue2.js";
|
|
2
|
+
import { _export_sfc as t } from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
import { Fragment as n, createBlock as r, createElementBlock as i, mergeProps as a, openBlock as o, renderList as s, resolveDynamicComponent as c } from "vue";
|
|
4
|
+
//#region ../../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
|
|
5
|
+
var l = [
|
|
6
|
+
"width",
|
|
7
|
+
"height",
|
|
8
|
+
"color"
|
|
9
|
+
];
|
|
10
|
+
function u(e, t, u, d, f, p) {
|
|
11
|
+
return o(), i("svg", a({
|
|
12
|
+
width: e.computedSize,
|
|
13
|
+
height: e.computedSize,
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
fill: "none",
|
|
17
|
+
color: e.color
|
|
18
|
+
}, e.$attrs), [(o(!0), i(n, null, s(e.currentIcon, (t, n) => (o(), r(c(t[0]), a({
|
|
19
|
+
key: n,
|
|
20
|
+
ref_for: !0
|
|
21
|
+
}, e.transformAttrs(t[1], e.calculatedStrokeWidth)), null, 16))), 128))], 16, l);
|
|
22
|
+
}
|
|
23
|
+
var d = /* @__PURE__ */ t(e, [["render", u], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { d as HugeiconsIcon };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { computed as e, defineComponent as t } from "vue";
|
|
2
|
+
//#region ../../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
|
|
3
|
+
var n = t({
|
|
4
|
+
name: "HugeiconsIcon",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
icon: {
|
|
8
|
+
type: Array,
|
|
9
|
+
required: !0
|
|
10
|
+
},
|
|
11
|
+
size: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
default: 24,
|
|
14
|
+
validator(e) {
|
|
15
|
+
let t = typeof e == "string" ? parseInt(e, 10) : e;
|
|
16
|
+
return !isNaN(t) && t > 0;
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
strokeWidth: {
|
|
20
|
+
type: Number,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
absoluteStrokeWidth: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
altIcon: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
showAlt: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
},
|
|
35
|
+
color: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "currentColor"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(t) {
|
|
41
|
+
let n = e(() => {
|
|
42
|
+
let e = typeof t.size == "string" ? parseInt(t.size, 10) : t.size;
|
|
43
|
+
return !isNaN(e) && e > 0 ? e : 24;
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
computedSize: n,
|
|
47
|
+
calculatedStrokeWidth: e(() => {
|
|
48
|
+
if (t.strokeWidth !== void 0) return t.absoluteStrokeWidth ? t.strokeWidth * 24 / n.value : t.strokeWidth;
|
|
49
|
+
}),
|
|
50
|
+
transformAttrs: (e, t) => {
|
|
51
|
+
let n = {};
|
|
52
|
+
for (let [t, r] of Object.entries(e)) {
|
|
53
|
+
let e = t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
54
|
+
n[e] = r;
|
|
55
|
+
}
|
|
56
|
+
return t !== void 0 && (n["stroke-width"] = t, n.stroke = "currentColor"), n;
|
|
57
|
+
},
|
|
58
|
+
currentIcon: e(() => t.altIcon && t.showAlt ? t.altIcon : t.icon)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { n as _sfc_main };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentNames as e } from "./component-names.js";
|
|
1
|
+
import { componentNames as e } from "./packages/iryx-ui/src/component-names.js";
|
|
2
2
|
import { addComponent as t, addPluginTemplate as n, defineNuxtModule as r } from "@nuxt/kit";
|
|
3
3
|
//#region src/nuxt.ts
|
|
4
4
|
var i = r({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/component-names.ts
|
|
2
|
+
var e = /* @__PURE__ */ "Alert.App.Badge.Breadcrumb.Button.ButtonGroup.Card.Checkbox.ConfirmDialog.Dialog.DropdownMenu.EmptyState.Form.FormField.Input.Label.Pagination.Progress.RadioGroup.Select.Separator.Skeleton.Stat.Stepper.Switch.Tabs.Textarea.Toaster.Tooltip".split(".");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as componentNames };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Alert02Icon as e, AlertCircleIcon as t, Cancel01Icon as n, CheckmarkCircle02Icon as r, InformationCircleIcon as i } from "../../../../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
|
|
2
|
+
import { useIryxUiConfig as a } from "../config.js";
|
|
3
|
+
import { alertTheme as o } from "../theme/alert.js";
|
|
4
|
+
import s from "./Icon.js";
|
|
5
|
+
import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
6
|
+
import { Primitive as S } from "reka-ui";
|
|
7
|
+
//#region src/components/Alert.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var C = ["aria-label"], w = /*@__PURE__*/ h({
|
|
9
|
+
__name: "Alert",
|
|
10
|
+
props: {
|
|
11
|
+
as: { default: "div" },
|
|
12
|
+
variant: {},
|
|
13
|
+
title: {},
|
|
14
|
+
description: {},
|
|
15
|
+
icon: {
|
|
16
|
+
type: [Array, Boolean],
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
closable: { type: Boolean },
|
|
20
|
+
closeLabel: { default: "Close" },
|
|
21
|
+
unstyled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
class: {},
|
|
26
|
+
ui: {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["close"],
|
|
29
|
+
setup(h) {
|
|
30
|
+
let w = h, T = {
|
|
31
|
+
info: i,
|
|
32
|
+
success: r,
|
|
33
|
+
warning: e,
|
|
34
|
+
danger: t
|
|
35
|
+
}, E = c(() => {
|
|
36
|
+
if (w.icon !== !1) return w.icon ?? T[w.variant ?? "info"];
|
|
37
|
+
}), D = c(() => w.variant === "danger" || w.variant === "warning" ? "alert" : "status"), O = a(), k = c(() => w.unstyled ?? O.unstyled), A = c(() => o({
|
|
38
|
+
variant: w.variant,
|
|
39
|
+
withTitle: !!w.title
|
|
40
|
+
})), j = c(() => k.value ? [w.ui?.root, w.class] : A.value.root({ class: [w.ui?.root, w.class] })), M = c(() => k.value ? w.ui?.icon : A.value.icon({ class: w.ui?.icon })), N = c(() => k.value ? w.ui?.content : A.value.content({ class: w.ui?.content })), P = c(() => k.value ? w.ui?.title : A.value.title({ class: w.ui?.title })), F = c(() => k.value ? w.ui?.description : A.value.description({ class: w.ui?.description })), I = c(() => k.value ? w.ui?.close : A.value.close({ class: w.ui?.close }));
|
|
41
|
+
return (e, t) => (_(), l(b(S), {
|
|
42
|
+
as: w.as,
|
|
43
|
+
role: D.value,
|
|
44
|
+
class: g(j.value)
|
|
45
|
+
}, {
|
|
46
|
+
default: x(() => [
|
|
47
|
+
E.value || e.$slots.icon ? (_(), d("div", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: g(M.value)
|
|
50
|
+
}, [v(e.$slots, "icon", {}, () => [m(s, { icon: E.value }, null, 8, ["icon"])])], 2)) : u("", !0),
|
|
51
|
+
f("div", { class: g(N.value) }, [w.title || e.$slots.title ? (_(), d("p", {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: g(P.value)
|
|
54
|
+
}, [v(e.$slots, "title", {}, () => [p(y(w.title), 1)])], 2)) : u("", !0), w.description || e.$slots.default ? (_(), d("div", {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: g(F.value)
|
|
57
|
+
}, [v(e.$slots, "default", {}, () => [p(y(w.description), 1)])], 2)) : u("", !0)], 2),
|
|
58
|
+
w.closable ? (_(), d("button", {
|
|
59
|
+
key: 1,
|
|
60
|
+
type: "button",
|
|
61
|
+
"aria-label": w.closeLabel,
|
|
62
|
+
class: g(I.value),
|
|
63
|
+
onClick: t[0] ||= (t) => e.$emit("close")
|
|
64
|
+
}, [v(e.$slots, "close", {}, () => [m(s, { icon: b(n) }, null, 8, ["icon"])])], 10, C)) : u("", !0)
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 8, [
|
|
68
|
+
"as",
|
|
69
|
+
"role",
|
|
70
|
+
"class"
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { w as default };
|
package/dist/packages/iryx-ui/src/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ArrowRight01Icon as e } from "../../../../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
|
|
2
|
+
import { useIryxUiConfig as t } from "../config.js";
|
|
3
|
+
import n from "./Icon.js";
|
|
4
|
+
import { breadcrumbTheme as r } from "../theme/breadcrumb.js";
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
6
|
+
import { Primitive as x } from "reka-ui";
|
|
7
|
+
//#region src/components/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var S = /*@__PURE__*/ f({
|
|
9
|
+
__name: "Breadcrumb",
|
|
10
|
+
props: {
|
|
11
|
+
items: {},
|
|
12
|
+
label: { default: "Breadcrumb" },
|
|
13
|
+
unstyled: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
class: {},
|
|
18
|
+
ui: {}
|
|
19
|
+
},
|
|
20
|
+
setup(f) {
|
|
21
|
+
let S = f, C = t(), w = a(() => S.unstyled ?? C.unstyled), T = a(() => S.items ?? []), E = a(() => T.value.length - 1), D = a(() => r());
|
|
22
|
+
function O(e) {
|
|
23
|
+
let t = S.ui?.[e];
|
|
24
|
+
return w.value ? t : D.value[e]({ class: t });
|
|
25
|
+
}
|
|
26
|
+
return (t, r) => (m(), o(y(x), {
|
|
27
|
+
as: "nav",
|
|
28
|
+
"aria-label": S.label,
|
|
29
|
+
class: p(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
|
|
30
|
+
}, {
|
|
31
|
+
default: b(() => [l("ol", { class: p(O("list")) }, [(m(!0), c(i, null, h(T.value, (r, i) => (m(), c("li", {
|
|
32
|
+
key: i,
|
|
33
|
+
class: p(O("item"))
|
|
34
|
+
}, [i === E.value ? (m(), c("span", {
|
|
35
|
+
key: 0,
|
|
36
|
+
"aria-current": "page",
|
|
37
|
+
class: p(O("current"))
|
|
38
|
+
}, [r.icon ? (m(), o(n, {
|
|
39
|
+
key: 0,
|
|
40
|
+
icon: r.icon
|
|
41
|
+
}, null, 8, ["icon"])) : s("", !0), u(" " + v(r.label), 1)], 2)) : (m(), o(_(r.href ? "a" : "button"), {
|
|
42
|
+
key: 1,
|
|
43
|
+
href: r.href,
|
|
44
|
+
type: r.href ? void 0 : "button",
|
|
45
|
+
class: p(O("link")),
|
|
46
|
+
onClick: (e) => r.onSelect?.()
|
|
47
|
+
}, {
|
|
48
|
+
default: b(() => [r.icon ? (m(), o(n, {
|
|
49
|
+
key: 0,
|
|
50
|
+
icon: r.icon
|
|
51
|
+
}, null, 8, ["icon"])) : s("", !0), u(" " + v(r.label), 1)]),
|
|
52
|
+
_: 2
|
|
53
|
+
}, 1032, [
|
|
54
|
+
"href",
|
|
55
|
+
"type",
|
|
56
|
+
"class",
|
|
57
|
+
"onClick"
|
|
58
|
+
])), i === E.value ? s("", !0) : (m(), c("span", {
|
|
59
|
+
key: 2,
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
class: p(O("separator"))
|
|
62
|
+
}, [g(t.$slots, "separator", {}, () => [d(n, { icon: y(e) }, null, 8, ["icon"])])], 2))], 2))), 128))], 2)]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 8, ["aria-label", "class"]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { S as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Loading03Icon as e } from "../../../../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
|
|
2
|
+
import { useIryxUiConfig as t } from "../config.js";
|
|
3
|
+
import n from "./Icon.js";
|
|
4
|
+
import { useButtonGroup as r } from "../composables/button-group.js";
|
|
5
|
+
import { buttonTheme as i } from "../theme/button.js";
|
|
6
|
+
import { computed as a, createBlock as o, createCommentVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
|
|
7
|
+
import { Primitive as m } from "reka-ui";
|
|
8
|
+
//#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var h = /*@__PURE__*/ c({
|
|
10
|
+
__name: "Button",
|
|
11
|
+
props: {
|
|
12
|
+
as: { default: "button" },
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
variant: {},
|
|
15
|
+
size: {},
|
|
16
|
+
block: { type: Boolean },
|
|
17
|
+
square: { type: Boolean },
|
|
18
|
+
loading: { type: Boolean },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
unstyled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
type: { default: "button" },
|
|
25
|
+
class: {}
|
|
26
|
+
},
|
|
27
|
+
setup(c) {
|
|
28
|
+
let h = c, g = t(), _ = a(() => h.unstyled ?? g.unstyled), v = r(), y = a(() => h.size ?? v?.size.value), b = a(() => _.value ? h.class : i({
|
|
29
|
+
variant: h.variant,
|
|
30
|
+
size: y.value,
|
|
31
|
+
block: h.block,
|
|
32
|
+
square: h.square,
|
|
33
|
+
class: h.class
|
|
34
|
+
}));
|
|
35
|
+
return (t, r) => (u(), o(f(m), {
|
|
36
|
+
as: h.as,
|
|
37
|
+
"as-child": h.asChild,
|
|
38
|
+
type: h.as === "button" ? h.type : void 0,
|
|
39
|
+
disabled: h.disabled || h.loading || void 0,
|
|
40
|
+
class: l(b.value)
|
|
41
|
+
}, {
|
|
42
|
+
default: p(() => [h.loading ? (u(), o(n, {
|
|
43
|
+
key: 0,
|
|
44
|
+
icon: f(e),
|
|
45
|
+
"data-icon": "inline-start",
|
|
46
|
+
class: "animate-spin"
|
|
47
|
+
}, null, 8, ["icon"])) : s("", !0), d(t.$slots, "default")]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, [
|
|
50
|
+
"as",
|
|
51
|
+
"as-child",
|
|
52
|
+
"type",
|
|
53
|
+
"disabled",
|
|
54
|
+
"class"
|
|
55
|
+
]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { h as default };
|