@indielayer/ui 0.0.0-dev-20240129122517 → 0.0.0-dev-20240205224808
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/docs/App.vue +25 -0
- package/docs/assets/css/hljs.css +302 -0
- package/docs/assets/css/tailwind.css +46 -0
- package/docs/assets/images/error.svg +1 -0
- package/docs/assets/images/logo.png +0 -0
- package/docs/assets/images/logo_mini.svg +10 -0
- package/docs/assets/images/logo_white.png +0 -0
- package/docs/assets/images/logo_word.svg +12 -0
- package/docs/assets/images/logo_word_dark.svg +12 -0
- package/docs/assets/images/photo1.jpeg +0 -0
- package/docs/assets/images/photo2.jpeg +0 -0
- package/docs/components/Cookies.vue +42 -0
- package/docs/components/common/CodePreview.vue +80 -0
- package/docs/components/common/CodeSnippet.vue +47 -0
- package/docs/components/common/CopyButton.vue +50 -0
- package/docs/components/common/DocumentPage.vue +285 -0
- package/docs/components/common/Indielayer-theme.json +702 -0
- package/docs/components/common/MultiSnippet.vue +26 -0
- package/docs/components/menu/DocsMenu.vue +96 -0
- package/docs/components/toolbar/PreToolbar.vue +16 -0
- package/docs/components/toolbar/Toolbar.vue +76 -0
- package/docs/components/toolbar/ToolbarColorToggle.vue +49 -0
- package/docs/icons.ts +61 -0
- package/docs/layouts/default.vue +33 -0
- package/docs/layouts/simple.vue +3 -0
- package/docs/main.ts +33 -0
- package/docs/pages/colors.vue +120 -0
- package/docs/pages/component/accordion/index.vue +29 -0
- package/docs/pages/component/accordion/usage.vue +30 -0
- package/docs/pages/component/alert/index.vue +29 -0
- package/docs/pages/component/alert/usage.vue +18 -0
- package/docs/pages/component/avatar/index.vue +43 -0
- package/docs/pages/component/avatar/size.vue +9 -0
- package/docs/pages/component/avatar/usage.vue +9 -0
- package/docs/pages/component/avatar/variants.vue +8 -0
- package/docs/pages/component/badge/index.vue +29 -0
- package/docs/pages/component/badge/usage.vue +50 -0
- package/docs/pages/component/breadcrumbs/index.vue +29 -0
- package/docs/pages/component/breadcrumbs/usage.vue +19 -0
- package/docs/pages/component/button/button-group.vue +22 -0
- package/docs/pages/component/button/icons.vue +9 -0
- package/docs/pages/component/button/index.vue +64 -0
- package/docs/pages/component/button/size.vue +9 -0
- package/docs/pages/component/button/states.vue +6 -0
- package/docs/pages/component/button/usage.vue +12 -0
- package/docs/pages/component/button/variants.vue +7 -0
- package/docs/pages/component/card/index.vue +29 -0
- package/docs/pages/component/card/usage.vue +6 -0
- package/docs/pages/component/carousel/index.vue +29 -0
- package/docs/pages/component/carousel/usage.vue +10 -0
- package/docs/pages/component/checkbox/index.vue +50 -0
- package/docs/pages/component/checkbox/size.vue +9 -0
- package/docs/pages/component/checkbox/states.vue +9 -0
- package/docs/pages/component/checkbox/usage.vue +15 -0
- package/docs/pages/component/checkbox/variants.vue +8 -0
- package/docs/pages/component/container/index.vue +29 -0
- package/docs/pages/component/container/usage.vue +3 -0
- package/docs/pages/component/divider/index.vue +43 -0
- package/docs/pages/component/divider/label.vue +12 -0
- package/docs/pages/component/divider/usage.vue +7 -0
- package/docs/pages/component/divider/vertical.vue +7 -0
- package/docs/pages/component/drawer/index.vue +29 -0
- package/docs/pages/component/drawer/usage.vue +56 -0
- package/docs/pages/component/form/index.vue +29 -0
- package/docs/pages/component/form/usage.vue +96 -0
- package/docs/pages/component/formGroup/index.vue +29 -0
- package/docs/pages/component/formGroup/usage.vue +47 -0
- package/docs/pages/component/icon/index.vue +36 -0
- package/docs/pages/component/icon/usage.vue +6 -0
- package/docs/pages/component/icon/variants.vue +14 -0
- package/docs/pages/component/image/index.vue +29 -0
- package/docs/pages/component/image/usage.vue +8 -0
- package/docs/pages/component/input/index.vue +50 -0
- package/docs/pages/component/input/size.vue +13 -0
- package/docs/pages/component/input/states.vue +12 -0
- package/docs/pages/component/input/usage.vue +14 -0
- package/docs/pages/component/input/variants.vue +18 -0
- package/docs/pages/component/link/index.vue +29 -0
- package/docs/pages/component/link/usage.vue +12 -0
- package/docs/pages/component/loader/index.vue +29 -0
- package/docs/pages/component/loader/usage.vue +7 -0
- package/docs/pages/component/menu/index.vue +29 -0
- package/docs/pages/component/menu/usage.vue +69 -0
- package/docs/pages/component/modal/composed.vue +78 -0
- package/docs/pages/component/modal/index.vue +36 -0
- package/docs/pages/component/modal/usage.vue +66 -0
- package/docs/pages/component/notifications/index.vue +29 -0
- package/docs/pages/component/notifications/usage.vue +56 -0
- package/docs/pages/component/pagination/index.vue +29 -0
- package/docs/pages/component/pagination/usage.vue +17 -0
- package/docs/pages/component/popover/index.vue +29 -0
- package/docs/pages/component/popover/usage.vue +21 -0
- package/docs/pages/component/progress/index.vue +36 -0
- package/docs/pages/component/progress/usage.vue +7 -0
- package/docs/pages/component/progress/variants.vue +18 -0
- package/docs/pages/component/radio/index.vue +50 -0
- package/docs/pages/component/radio/size.vue +15 -0
- package/docs/pages/component/radio/states.vue +13 -0
- package/docs/pages/component/radio/usage.vue +14 -0
- package/docs/pages/component/radio/variants.vue +39 -0
- package/docs/pages/component/scroll/horizontal.vue +14 -0
- package/docs/pages/component/scroll/index.vue +36 -0
- package/docs/pages/component/scroll/usage.vue +5 -0
- package/docs/pages/component/select/index.vue +43 -0
- package/docs/pages/component/select/states.vue +22 -0
- package/docs/pages/component/select/usage.vue +46 -0
- package/docs/pages/component/select/variants.vue +23 -0
- package/docs/pages/component/skeleton/index.vue +29 -0
- package/docs/pages/component/skeleton/usage.vue +10 -0
- package/docs/pages/component/slider/index.vue +29 -0
- package/docs/pages/component/slider/usage.vue +15 -0
- package/docs/pages/component/spacer/index.vue +29 -0
- package/docs/pages/component/spacer/usage.vue +8 -0
- package/docs/pages/component/spinner/index.vue +36 -0
- package/docs/pages/component/spinner/usage.vue +3 -0
- package/docs/pages/component/spinner/variants.vue +9 -0
- package/docs/pages/component/stepper/index.vue +29 -0
- package/docs/pages/component/stepper/usage.vue +21 -0
- package/docs/pages/component/table/index.vue +36 -0
- package/docs/pages/component/table/states.vue +28 -0
- package/docs/pages/component/table/usage.vue +107 -0
- package/docs/pages/component/tabs/index.vue +29 -0
- package/docs/pages/component/tabs/usage.vue +142 -0
- package/docs/pages/component/tag/index.vue +29 -0
- package/docs/pages/component/tag/usage.vue +27 -0
- package/docs/pages/component/textarea/index.vue +43 -0
- package/docs/pages/component/textarea/states.vue +13 -0
- package/docs/pages/component/textarea/usage.vue +19 -0
- package/docs/pages/component/textarea/variants.vue +15 -0
- package/docs/pages/component/toggle/index.vue +43 -0
- package/docs/pages/component/toggle/states.vue +13 -0
- package/docs/pages/component/toggle/usage.vue +12 -0
- package/docs/pages/component/toggle/variants.vue +15 -0
- package/docs/pages/component/tooltip/index.vue +29 -0
- package/docs/pages/component/tooltip/usage.vue +12 -0
- package/docs/pages/error.vue +6 -0
- package/docs/pages/icons.vue +101 -0
- package/docs/pages/index.vue +153 -0
- package/docs/pages/play.vue +7 -0
- package/docs/pages/typography.vue +91 -0
- package/docs/router/index.ts +77 -0
- package/exports/tailwind.preset.js +0 -1
- package/lib/components/accordion/Accordion.vue.d.ts +3 -0
- package/lib/components/accordion/Accordion.vue.js +7 -7
- package/lib/components/accordion/AccordionItem.vue.d.ts +1 -0
- package/lib/components/accordion/AccordionItem.vue.js +49 -47
- package/lib/components/accordion/index.d.ts +1 -1
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +3 -6
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +9 -9
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +3 -14
- package/lib/components/badge/Badge.vue.js +7 -7
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +1 -1
- package/lib/components/button/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +26 -26
- package/lib/components/button/theme/Button.base.theme.js +7 -7
- package/lib/components/card/theme/Card.base.theme.js +1 -1
- package/lib/components/carousel/CarouselSlide.vue.d.ts +19 -8
- package/lib/components/carousel/CarouselSlide.vue.js +2 -2
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -18
- package/lib/components/checkbox/Checkbox.vue.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.vue2.js +23 -23
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +10 -10
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +2 -2
- package/lib/components/container/Container.vue.d.ts +13 -0
- package/lib/components/container/Container.vue.js +15 -11
- package/lib/components/container/theme/Container.base.theme.js +7 -4
- package/lib/components/divider/Divider.vue.js +14 -14
- package/lib/components/divider/theme/Divider.base.theme.js +2 -2
- package/lib/components/drawer/Drawer.vue.js +2 -2
- package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
- package/lib/components/form/Form.vue.js +1 -1
- package/lib/components/form/theme/Form.base.theme.js +5 -5
- package/lib/components/form/theme/Form.carbon.theme.js +4 -4
- package/lib/components/formGroup/FormGroup.vue.d.ts +3 -0
- package/lib/components/formGroup/FormGroup.vue.js +16 -15
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +1 -1
- package/lib/components/icon/theme/Icon.base.theme.js +1 -1
- package/lib/components/index.js +108 -107
- package/lib/components/input/Input.vue.d.ts +3 -0
- package/lib/components/input/Input.vue.js +4 -3
- package/lib/components/input/theme/Input.base.theme.js +10 -10
- package/lib/components/input/theme/Input.carbon.theme.js +10 -10
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +3 -3
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +2 -2
- package/lib/components/label/Label.vue.d.ts +3 -0
- package/lib/components/label/Label.vue.js +26 -20
- package/lib/components/label/theme/Label.base.theme.js +2 -2
- package/lib/components/label/theme/Label.carbon.theme.js +3 -3
- package/lib/components/link/Link.vue.js +2 -2
- package/lib/components/link/Link.vue2.js +4 -4
- package/lib/components/loader/theme/Loader.base.theme.js +1 -1
- package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
- package/lib/components/menu/Menu.vue.js +22 -22
- package/lib/components/menu/theme/MenuItem.base.theme.js +22 -32
- package/lib/components/modal/Modal.vue.d.ts +5 -1
- package/lib/components/modal/Modal.vue.js +80 -74
- package/lib/components/modal/theme/Modal.base.theme.js +10 -10
- package/lib/components/modal/theme/Modal.carbon.theme.js +3 -3
- package/lib/components/notifications/Notifications.vue.js +1 -1
- package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +3 -3
- package/lib/components/pagination/Pagination.vue.js +27 -27
- package/lib/components/popover/Popover.vue.d.ts +13 -0
- package/lib/components/popover/Popover.vue.js +13 -8
- package/lib/components/popover/Popover.vue2.js +3 -2
- package/lib/components/popover/Popover.vue3.js +2 -3
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -4
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -4
- package/lib/components/progress/Progress.vue.js +11 -11
- package/lib/components/progress/theme/Progress.base.theme.js +10 -10
- package/lib/components/radio/Radio.vue.d.ts +3 -0
- package/lib/components/radio/theme/Radio.base.theme.js +31 -31
- package/lib/components/radio/theme/Radio.carbon.theme.js +8 -8
- package/lib/components/select/Select.vue.d.ts +16 -0
- package/lib/components/select/Select.vue.js +93 -93
- package/lib/components/select/theme/Select.base.theme.js +11 -11
- package/lib/components/select/theme/Select.carbon.theme.js +10 -10
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +1 -1
- package/lib/components/slider/Slider.vue.d.ts +3 -0
- package/lib/components/slider/Slider.vue.js +1 -1
- package/lib/components/slider/theme/Slider.carbon.theme.js +8 -8
- package/lib/components/stepper/Stepper.vue.js +14 -14
- package/lib/components/tab/Tab.vue.js +55 -54
- package/lib/components/tab/theme/TabGroup.base.theme.js +15 -15
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +8 -8
- package/lib/components/table/Table.vue.js +192 -194
- package/lib/components/table/theme/Table.base.theme.js +3 -3
- package/lib/components/table/theme/Table.carbon.theme.js +7 -7
- package/lib/components/table/theme/TableHead.base.theme.js +1 -1
- package/lib/components/table/theme/TableHead.carbon.theme.js +1 -1
- package/lib/components/table/theme/TableHeader.base.theme.js +1 -1
- package/lib/components/table/theme/TableHeader.carbon.theme.js +2 -2
- package/lib/components/table/theme/TableRow.base.theme.js +3 -3
- package/lib/components/table/theme/TableRow.carbon.theme.js +3 -3
- package/lib/components/tag/Tag.vue.js +4 -4
- package/lib/components/textarea/Textarea.vue.d.ts +7 -0
- package/lib/components/textarea/Textarea.vue.js +23 -21
- package/lib/components/textarea/theme/Textarea.base.theme.js +6 -6
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +6 -6
- package/lib/components/toggle/Toggle.vue.d.ts +3 -0
- package/lib/components/toggle/Toggle.vue.js +26 -26
- package/lib/components/toggle/theme/Toggle.base.theme.js +1 -1
- package/lib/components/tooltip/ToggleTip.vue.d.ts +14 -0
- package/lib/components/tooltip/ToggleTip.vue.js +29 -0
- package/lib/components/tooltip/ToggleTip.vue2.js +4 -0
- package/lib/components/tooltip/Tooltip.vue.d.ts +22 -3
- package/lib/components/tooltip/Tooltip.vue.js +26 -17
- package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/composables/keys.d.ts +2 -2
- package/lib/composables/useColors.js +9 -9
- package/lib/composables/useInputtable.d.ts +1 -0
- package/lib/composables/useInputtable.js +20 -19
- package/lib/index.js +37 -35
- package/lib/index.umd.js +7 -3
- package/lib/tailwind.preset.js +0 -1
- package/lib/themes/base/index.js +3 -6
- package/lib/themes/base/styles.css.js +4 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -2
- package/src/components/accordion/Accordion.vue +5 -1
- package/src/components/accordion/AccordionItem.vue +5 -2
- package/src/components/accordion/index.ts +1 -1
- package/src/components/accordion/theme/Accordion.carbon.theme.ts +3 -5
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +11 -8
- package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +2 -30
- package/src/components/badge/Badge.vue +1 -1
- package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +1 -1
- package/src/components/button/Button.vue +1 -1
- package/src/components/button/theme/Button.base.theme.ts +2 -2
- package/src/components/card/theme/Card.base.theme.ts +1 -1
- package/src/components/carousel/CarouselSlide.vue +9 -4
- package/src/components/checkbox/Checkbox.vue +1 -1
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +9 -9
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +2 -2
- package/src/components/container/Container.vue +4 -0
- package/src/components/container/theme/Container.base.theme.ts +7 -1
- package/src/components/divider/Divider.vue +1 -1
- package/src/components/divider/theme/Divider.base.theme.ts +2 -2
- package/src/components/drawer/Drawer.vue +2 -2
- package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
- package/src/components/form/Form.vue +1 -1
- package/src/components/form/theme/Form.base.theme.ts +2 -2
- package/src/components/form/theme/Form.carbon.theme.ts +1 -1
- package/src/components/formGroup/FormGroup.vue +1 -0
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +1 -1
- package/src/components/icon/theme/Icon.base.theme.ts +2 -2
- package/src/components/input/Input.vue +2 -1
- package/src/components/input/theme/Input.base.theme.ts +5 -5
- package/src/components/input/theme/Input.carbon.theme.ts +6 -6
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +3 -3
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +2 -2
- package/src/components/label/Label.vue +4 -1
- package/src/components/label/theme/Label.base.theme.ts +2 -2
- package/src/components/label/theme/Label.carbon.theme.ts +1 -3
- package/src/components/link/Link.vue +1 -1
- package/src/components/loader/theme/Loader.base.theme.ts +1 -1
- package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
- package/src/components/menu/Menu.vue +4 -4
- package/src/components/menu/theme/MenuItem.base.theme.ts +30 -34
- package/src/components/modal/Modal.vue +11 -4
- package/src/components/modal/theme/Modal.base.theme.ts +9 -6
- package/src/components/modal/theme/Modal.carbon.theme.ts +3 -3
- package/src/components/notifications/Notifications.vue +1 -1
- package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +1 -1
- package/src/components/pagination/Pagination.vue +3 -3
- package/src/components/popover/Popover.vue +77 -2
- package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
- package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +1 -1
- package/src/components/progress/Progress.vue +1 -1
- package/src/components/progress/theme/Progress.base.theme.ts +2 -2
- package/src/components/radio/theme/Radio.base.theme.ts +9 -9
- package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
- package/src/components/select/Select.vue +7 -7
- package/src/components/select/theme/Select.base.theme.ts +8 -8
- package/src/components/select/theme/Select.carbon.theme.ts +8 -8
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +1 -1
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
- package/src/components/stepper/Stepper.vue +3 -3
- package/src/components/tab/Tab.vue +3 -3
- package/src/components/tab/theme/TabGroup.base.theme.ts +4 -4
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +3 -3
- package/src/components/table/Table.vue +2 -0
- package/src/components/table/theme/Table.base.theme.ts +1 -1
- package/src/components/table/theme/Table.carbon.theme.ts +2 -2
- package/src/components/table/theme/TableHead.base.theme.ts +1 -1
- package/src/components/table/theme/TableHead.carbon.theme.ts +1 -1
- package/src/components/table/theme/TableHeader.base.theme.ts +1 -1
- package/src/components/table/theme/TableHeader.carbon.theme.ts +2 -2
- package/src/components/table/theme/TableRow.base.theme.ts +3 -3
- package/src/components/table/theme/TableRow.carbon.theme.ts +3 -3
- package/src/components/tag/Tag.vue +1 -1
- package/src/components/textarea/Textarea.vue +3 -1
- package/src/components/textarea/theme/Textarea.base.theme.ts +5 -4
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -5
- package/src/components/toggle/Toggle.vue +3 -3
- package/src/components/toggle/theme/Toggle.base.theme.ts +1 -1
- package/src/components/tooltip/ToggleTip.vue +31 -0
- package/src/components/tooltip/Tooltip.vue +14 -4
- package/src/components/tooltip/__tests__/ToggleTip.spec.ts +11 -0
- package/src/components/tooltip/index.ts +3 -0
- package/src/composables/keys.ts +2 -2
- package/src/composables/useColors.ts +1 -1
- package/src/composables/useInputtable.ts +1 -0
- package/src/themes/base/index.ts +0 -3
- package/src/themes/base/styles.css +4 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +1 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as v, useSlots as z, computed as l, openBlock as o, createBlock as S, resolveDynamicComponent as B, normalizeStyle as n, unref as s, normalizeClass as i, withCtx as w, createElementVNode as r, renderSlot as a, createElementBlock as p, createCommentVNode as f } from "vue";
|
|
2
2
|
import { useTheme as C } from "../../composables/useTheme.js";
|
|
3
|
-
import { useCommon as
|
|
3
|
+
import { useCommon as d } from "../../composables/useCommon.js";
|
|
4
4
|
import { useColors as k } from "../../composables/useColors.js";
|
|
5
5
|
const N = { class: "relative inline-block" }, X = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "animate-ping opacity-75 absolute top-0 left-0 rounded-full h-full w-full z-10 bg-[color:var(--x-badge-bg)]"
|
|
8
8
|
}, x = ["left", "right"], Y = ["top", "bottom"], $ = {
|
|
9
|
-
...
|
|
9
|
+
...d.props(),
|
|
10
10
|
...k.props("primary"),
|
|
11
11
|
tag: {
|
|
12
12
|
type: String,
|
|
@@ -32,17 +32,17 @@ const N = { class: "relative inline-block" }, X = {
|
|
|
32
32
|
}, E = {
|
|
33
33
|
name: "XBadge",
|
|
34
34
|
validators: {
|
|
35
|
-
...
|
|
35
|
+
...d.validators(),
|
|
36
36
|
position: Y,
|
|
37
37
|
align: x
|
|
38
38
|
}
|
|
39
39
|
}, D = /* @__PURE__ */ v({
|
|
40
40
|
...E,
|
|
41
41
|
props: $,
|
|
42
|
-
setup(
|
|
43
|
-
const t =
|
|
42
|
+
setup(m) {
|
|
43
|
+
const t = m, u = z(), g = l(() => {
|
|
44
44
|
const e = [];
|
|
45
|
-
return t.position === "top" && e.push("top-0"), t.position === "bottom" && e.push("bottom-0"), t.align === "left" && e.push("left-0"), t.align === "right" && e.push("right-0"),
|
|
45
|
+
return t.position === "top" && e.push("top-0"), t.position === "bottom" && e.push("bottom-0"), t.align === "left" && e.push("left-0"), t.align === "right" && e.push("right-0"), u.content ? e.push("-m-[7.5%]") : t.outlined ? e.push("-m-[5%]") : e.push("-m-[3.5%]"), e;
|
|
46
46
|
}), c = l(() => {
|
|
47
47
|
const e = {};
|
|
48
48
|
return t.offsetX && (e[t.align === "left" ? "marginLeft" : "marginRight"] = t.offsetX + "px"), t.offsetY && (e[t.position === "top" ? "marginTop" : "marginBottom"] = t.offsetY + "px"), e;
|
|
@@ -62,7 +62,7 @@ const N = { class: "relative inline-block" }, X = {
|
|
|
62
62
|
class: i(["absolute rounded-full z-10 bg-[color:var(--x-badge-bg)]", [
|
|
63
63
|
g.value,
|
|
64
64
|
{
|
|
65
|
-
"border-2 border-
|
|
65
|
+
"border-2 border-secondary-50 dark:border-secondary-900": e.outlined
|
|
66
66
|
}
|
|
67
67
|
]]),
|
|
68
68
|
style: n(c.value)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "./Button.vue2.js";
|
|
2
2
|
import s from "./Button.vue3.js";
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = {
|
|
5
5
|
$style: s
|
|
6
|
-
}, m = /* @__PURE__ */ t(o, [["__cssModules",
|
|
6
|
+
}, m = /* @__PURE__ */ t(o, [["__cssModules", e], ["__scopeId", "data-v-b25d6b6e"]]);
|
|
7
7
|
export {
|
|
8
8
|
m as default
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as I, inject as T, computed as l, useAttrs as V, unref as
|
|
1
|
+
import { defineComponent as D, ref as I, inject as T, computed as l, useAttrs as V, unref as t, openBlock as a, createBlock as r, resolveDynamicComponent as A, normalizeClass as u, normalizeStyle as E, withCtx as F, createCommentVNode as d, createElementVNode as m, renderSlot as K } from "vue";
|
|
2
2
|
import { useTheme as O } from "../../composables/useTheme.js";
|
|
3
3
|
import { useColors as X } from "../../composables/useColors.js";
|
|
4
4
|
import { useCommon as b } from "../../composables/useCommon.js";
|
|
@@ -34,42 +34,42 @@ const J = {
|
|
|
34
34
|
validators: {
|
|
35
35
|
...b.validators()
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, to = /* @__PURE__ */ D({
|
|
38
38
|
...M,
|
|
39
39
|
props: J,
|
|
40
40
|
setup(y, { expose: v }) {
|
|
41
|
-
const
|
|
41
|
+
const e = y, g = I(null), s = T(q, {
|
|
42
42
|
isButtonGroup: !1,
|
|
43
43
|
groupProps: {}
|
|
44
|
-
}), { isButtonGroup: B } = s, n = l(() => s.groupProps.size ||
|
|
45
|
-
size:
|
|
46
|
-
flat:
|
|
47
|
-
color:
|
|
48
|
-
ghost:
|
|
49
|
-
light:
|
|
50
|
-
outlined:
|
|
51
|
-
disabled:
|
|
52
|
-
loading:
|
|
53
|
-
block:
|
|
54
|
-
glow:
|
|
55
|
-
iconLeft:
|
|
56
|
-
iconRight:
|
|
57
|
-
rounded:
|
|
44
|
+
}), { isButtonGroup: B } = s, n = l(() => s.groupProps.size || e.size), z = l(() => s.groupProps.flat || e.flat), k = l(() => e.color || s.groupProps.color), P = l(() => e.ghost || s.groupProps.ghost), S = l(() => e.light || s.groupProps.light), w = l(() => e.outlined || s.groupProps.outlined), i = l(() => e.disabled || s.groupProps.disabled), p = l(() => e.icon || e.iconLeft), C = V(), R = l(() => C.href ? "a" : e.to ? "router-link" : e.tag), L = l(() => ({
|
|
45
|
+
size: t(n),
|
|
46
|
+
flat: t(z),
|
|
47
|
+
color: t(k),
|
|
48
|
+
ghost: t(P),
|
|
49
|
+
light: t(S),
|
|
50
|
+
outlined: t(w),
|
|
51
|
+
disabled: t(i),
|
|
52
|
+
loading: e.loading,
|
|
53
|
+
block: e.block,
|
|
54
|
+
glow: e.glow,
|
|
55
|
+
iconLeft: t(p),
|
|
56
|
+
iconRight: e.iconRight,
|
|
57
|
+
rounded: e.rounded
|
|
58
58
|
})), { className: G, classes: c, styles: $ } = O("Button", {}, L, {
|
|
59
59
|
isButtonGroup: B
|
|
60
|
-
}), { focus:
|
|
61
|
-
return v({ focus:
|
|
60
|
+
}), { focus: j, blur: N } = h(g);
|
|
61
|
+
return v({ focus: j, blur: N }), (o, Q) => (a(), r(A(R.value), {
|
|
62
62
|
ref_key: "elRef",
|
|
63
63
|
ref: g,
|
|
64
64
|
to: o.to,
|
|
65
65
|
class: u([
|
|
66
|
-
|
|
66
|
+
t(G),
|
|
67
67
|
o.$style.button,
|
|
68
68
|
o.glow && !i.value && !o.loading ? o.$style["button--glow"] : "",
|
|
69
|
-
|
|
69
|
+
t(c).wrapper,
|
|
70
70
|
{ "w-full": o.block }
|
|
71
71
|
]),
|
|
72
|
-
style: E(
|
|
72
|
+
style: E(t($)),
|
|
73
73
|
"aria-busy": o.loading ? "true" : null,
|
|
74
74
|
"aria-disabled": o.tag !== "button" && i.value ? "true" : null,
|
|
75
75
|
disabled: i.value || o.loading,
|
|
@@ -84,14 +84,14 @@ const J = {
|
|
|
84
84
|
status: o.loadingStatus
|
|
85
85
|
}, null, 8, ["size", "label", "status"])) : d("", !0),
|
|
86
86
|
m("div", {
|
|
87
|
-
class: u({ invisible: o.loading })
|
|
87
|
+
class: u(["inline-flex items-center justify-center", { invisible: o.loading }])
|
|
88
88
|
}, [
|
|
89
89
|
p.value ? (a(), r(f, {
|
|
90
90
|
key: 0,
|
|
91
91
|
size: n.value,
|
|
92
92
|
icon: p.value,
|
|
93
93
|
class: u([
|
|
94
|
-
|
|
94
|
+
t(c).iconLeft
|
|
95
95
|
])
|
|
96
96
|
}, null, 8, ["size", "icon", "class"])) : d("", !0),
|
|
97
97
|
m("span", null, [
|
|
@@ -103,7 +103,7 @@ const J = {
|
|
|
103
103
|
size: n.value,
|
|
104
104
|
icon: o.iconRight,
|
|
105
105
|
class: u([
|
|
106
|
-
|
|
106
|
+
t(c).iconRight,
|
|
107
107
|
{ invisible: o.loading }
|
|
108
108
|
])
|
|
109
109
|
}, null, 8, ["size", "icon", "class"])) : d("", !0)
|
|
@@ -113,5 +113,5 @@ const J = {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
export {
|
|
116
|
-
|
|
116
|
+
to as default
|
|
117
117
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const r = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper({ props: e, slots: n, data: i }) {
|
|
4
4
|
const d = ["relative transition duration-150 focus:outline-none inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden align-middle active:!shadow-none border appearance-none"];
|
|
@@ -8,8 +8,8 @@ const g = {
|
|
|
8
8
|
iconRight: ({ slots: e }) => e.default ? "ml-2" : "m-0.5"
|
|
9
9
|
},
|
|
10
10
|
styles({ props: e, colors: n, css: i, data: d }) {
|
|
11
|
-
const a = n.getPalette("gray"), t = e.color ? n.getPalette(e.color) : a, l = [],
|
|
12
|
-
return e.glow && l.push(i.get("glow", n.getColorOpacity(e.color ? t[500] : a[500], 0.5))),
|
|
11
|
+
const a = n.getPalette("gray"), t = e.color ? n.getPalette(e.color) : a, l = [], b = e.color && e.light, g = !e.color && !e.ghost;
|
|
12
|
+
return e.glow && l.push(i.get("glow", n.getColorOpacity(e.color ? t[500] : a[500], 0.5))), g ? e.disabled ? l.push(i.variables({
|
|
13
13
|
bg: a[50],
|
|
14
14
|
text: a[300],
|
|
15
15
|
border: a[200],
|
|
@@ -31,7 +31,7 @@ const g = {
|
|
|
31
31
|
hover: { bg: e.loading ? "" : a[700], border: a[600] },
|
|
32
32
|
active: { bg: e.loading ? "" : a[600], border: a[500] }
|
|
33
33
|
}
|
|
34
|
-
})) :
|
|
34
|
+
})) : b ? ((!e.outlined || e.disabled) && l.push(i.get("border", "transparent")), e.disabled ? l.push(i.variables({
|
|
35
35
|
bg: t[50],
|
|
36
36
|
text: t[200],
|
|
37
37
|
border: "transparent",
|
|
@@ -110,10 +110,10 @@ const g = {
|
|
|
110
110
|
}
|
|
111
111
|
}))) : (l.push(i.variables({
|
|
112
112
|
text: "#fff",
|
|
113
|
-
border:
|
|
113
|
+
border: t[600],
|
|
114
114
|
dark: {
|
|
115
115
|
text: "#fff",
|
|
116
|
-
border:
|
|
116
|
+
border: t[500]
|
|
117
117
|
}
|
|
118
118
|
})), e.disabled ? l.push(i.variables({
|
|
119
119
|
bg: t[100],
|
|
@@ -132,7 +132,7 @@ const g = {
|
|
|
132
132
|
}
|
|
133
133
|
}))), l;
|
|
134
134
|
}
|
|
135
|
-
}, u =
|
|
135
|
+
}, u = r;
|
|
136
136
|
export {
|
|
137
137
|
u as default
|
|
138
138
|
};
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { type ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
import { type ThemeComponent } from '../../composables/useTheme';
|
|
3
|
-
declare const carouselSlideProps: {
|
|
3
|
+
declare const carouselSlideProps: {
|
|
4
|
+
tag: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
export type CarouselSlideProps = ExtractPublicPropTypes<typeof carouselSlideProps>;
|
|
5
10
|
type InternalClasses = 'wrapper';
|
|
6
11
|
export interface CarouselSlideTheme extends ThemeComponent<CarouselSlideProps, InternalClasses> {
|
|
7
12
|
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
14
|
+
tag: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
tag: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
tag: string;
|
|
25
|
+
}, {}>, {
|
|
15
26
|
default?(_: {}): any;
|
|
16
27
|
}>;
|
|
17
28
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import o from "./CarouselSlide.vue3.js";
|
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const e = {
|
|
5
5
|
$style: o
|
|
6
|
-
},
|
|
6
|
+
}, d = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-402870d3"]]);
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
d as default
|
|
9
9
|
};
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as c,
|
|
2
|
-
import { useTheme as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent as n, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as u, unref as s, normalizeClass as m, withCtx as d, renderSlot as f } from "vue";
|
|
2
|
+
import { useTheme as y } from "../../composables/useTheme.js";
|
|
3
|
+
const C = {
|
|
4
|
+
tag: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "div"
|
|
7
|
+
}
|
|
8
|
+
}, S = {
|
|
9
|
+
name: "XCarouselSlide"
|
|
10
|
+
}, k = /* @__PURE__ */ n({
|
|
11
|
+
...S,
|
|
12
|
+
props: C,
|
|
9
13
|
setup(l) {
|
|
10
|
-
const
|
|
11
|
-
return (
|
|
12
|
-
style:
|
|
14
|
+
const t = l, { styles: o, classes: a, className: r } = y("CarouselSlide", {}, t);
|
|
15
|
+
return (e, _) => (c(), p(i(e.tag), {
|
|
16
|
+
style: u(s(o)),
|
|
13
17
|
class: m([
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
s(r),
|
|
19
|
+
e.$style["carousel-slide"],
|
|
20
|
+
s(a).wrapper
|
|
17
21
|
])
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
}, {
|
|
23
|
+
default: d(() => [
|
|
24
|
+
f(e.$slots, "default")
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 8, ["style", "class"]));
|
|
21
28
|
}
|
|
22
29
|
});
|
|
23
30
|
export {
|
|
24
|
-
|
|
31
|
+
k as default
|
|
25
32
|
};
|
|
@@ -21,6 +21,7 @@ declare const checkboxProps: {
|
|
|
21
21
|
readonly type: ArrayConstructor;
|
|
22
22
|
readonly default: () => never[];
|
|
23
23
|
};
|
|
24
|
+
tooltip: StringConstructor;
|
|
24
25
|
disabled: BooleanConstructor;
|
|
25
26
|
loading: BooleanConstructor;
|
|
26
27
|
loadingLabel: StringConstructor;
|
|
@@ -68,6 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
68
69
|
readonly type: ArrayConstructor;
|
|
69
70
|
readonly default: () => never[];
|
|
70
71
|
};
|
|
72
|
+
tooltip: StringConstructor;
|
|
71
73
|
disabled: BooleanConstructor;
|
|
72
74
|
loading: BooleanConstructor;
|
|
73
75
|
loadingLabel: StringConstructor;
|
|
@@ -112,6 +114,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
112
114
|
readonly type: ArrayConstructor;
|
|
113
115
|
readonly default: () => never[];
|
|
114
116
|
};
|
|
117
|
+
tooltip: StringConstructor;
|
|
115
118
|
disabled: BooleanConstructor;
|
|
116
119
|
loading: BooleanConstructor;
|
|
117
120
|
loadingLabel: StringConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as w, watch as m, unref as
|
|
1
|
+
import { defineComponent as P, ref as w, watch as m, unref as a, openBlock as i, createElementBlock as p, normalizeStyle as R, normalizeClass as u, createElementVNode as d, withKeys as T, withModifiers as H, withDirectives as O, mergeProps as U, toHandlers as X, vModelCheckbox as j, createBlock as V, renderSlot as C, toDisplayString as J, createCommentVNode as Q } from "vue";
|
|
2
2
|
import { useTheme as W } from "../../composables/useTheme.js";
|
|
3
3
|
import { useCommon as I } from "../../composables/useCommon.js";
|
|
4
4
|
import { useColors as Y } from "../../composables/useColors.js";
|
|
@@ -9,9 +9,9 @@ import x from "../inputFooter/InputFooter.vue.js";
|
|
|
9
9
|
const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled", "disabled", "required"], le = {
|
|
10
10
|
key: 1,
|
|
11
11
|
name: "check-icon",
|
|
12
|
-
class: "w-2/3 h-[2px] bg-white dark:bg-
|
|
13
|
-
},
|
|
14
|
-
|
|
12
|
+
class: "w-2/3 h-[2px] bg-white dark:bg-secondary-900"
|
|
13
|
+
}, oe = /* @__PURE__ */ d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1), ae = [
|
|
14
|
+
oe
|
|
15
15
|
], re = ["textContent"], ie = {
|
|
16
16
|
...I.props(),
|
|
17
17
|
...Y.props("primary"),
|
|
@@ -46,22 +46,22 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
|
|
|
46
46
|
setError: E
|
|
47
47
|
} = f(s, { focus: y, emit: v, withListeners: !1 });
|
|
48
48
|
c ? (m(() => r.value, () => {
|
|
49
|
-
const e =
|
|
49
|
+
const e = a(r.value);
|
|
50
50
|
e && Array.isArray(e) && e.includes(s.value) ? l.value = !0 : l.value = !1;
|
|
51
51
|
}, { immediate: !0, deep: !0 }), m(() => l.value, (e) => {
|
|
52
52
|
if (!s.value)
|
|
53
53
|
return;
|
|
54
|
-
const
|
|
54
|
+
const o = a(r.value);
|
|
55
55
|
if (e)
|
|
56
|
-
if (
|
|
57
|
-
if (!
|
|
58
|
-
const n = [...
|
|
56
|
+
if (o && Array.isArray(o)) {
|
|
57
|
+
if (!o.includes(s.value)) {
|
|
58
|
+
const n = [...o, s.value];
|
|
59
59
|
r.setValue(n);
|
|
60
60
|
}
|
|
61
61
|
} else
|
|
62
62
|
r.setValue([s.value]);
|
|
63
|
-
else if (
|
|
64
|
-
const n =
|
|
63
|
+
else if (o && Array.isArray(o) && o.includes(s.value)) {
|
|
64
|
+
const n = o.findIndex((D) => D === s.value), g = [...o];
|
|
65
65
|
g.splice(n, 1), r.setValue(g);
|
|
66
66
|
}
|
|
67
67
|
})) : (m(() => s.modelValue, (e) => {
|
|
@@ -76,23 +76,23 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
|
|
|
76
76
|
}, 0);
|
|
77
77
|
}
|
|
78
78
|
}, { styles: L, classes: t, className: M } = W("Checkbox", {}, s, { checked: l, isInsideForm: S, isInsideFormGroup: c });
|
|
79
|
-
return B({ focus: y, blur: F, toggle: b, reset: q, validate: k, setError: E }), (e,
|
|
80
|
-
style: R(
|
|
79
|
+
return B({ focus: y, blur: F, toggle: b, reset: q, validate: k, setError: E }), (e, o) => (i(), p("label", {
|
|
80
|
+
style: R(a(L)),
|
|
81
81
|
class: u([
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
a(M),
|
|
83
|
+
a(t).wrapper
|
|
84
84
|
])
|
|
85
85
|
}, [
|
|
86
86
|
d("div", {
|
|
87
87
|
ref_key: "elRef",
|
|
88
88
|
ref: h,
|
|
89
|
-
class: u(
|
|
89
|
+
class: u(a(t).content),
|
|
90
90
|
tabindex: "0",
|
|
91
91
|
onKeypress: T(H(b, ["prevent", "stop"]), ["space"])
|
|
92
92
|
}, [
|
|
93
93
|
O(d("input", U({
|
|
94
94
|
id: e.id,
|
|
95
|
-
"onUpdate:modelValue":
|
|
95
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
|
|
96
96
|
name: e.name,
|
|
97
97
|
"aria-checked": e.indeterminate ? "mixed" : l.value ? "true" : "false",
|
|
98
98
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
@@ -105,7 +105,7 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
|
|
|
105
105
|
]),
|
|
106
106
|
d("div", {
|
|
107
107
|
class: u([
|
|
108
|
-
|
|
108
|
+
a(t).box,
|
|
109
109
|
[e.glow && !e.disabled && !e.loading ? e.$style["checkbox--glow"] : ""]
|
|
110
110
|
])
|
|
111
111
|
}, [
|
|
@@ -116,12 +116,12 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
|
|
|
116
116
|
}, null, 8, ["size"])) : e.indeterminate ? (i(), p("span", le)) : C(e.$slots, "icon", { key: 2 }, () => [
|
|
117
117
|
(i(), p("svg", {
|
|
118
118
|
viewBox: "0 0 20 20",
|
|
119
|
-
class: u([
|
|
120
|
-
},
|
|
119
|
+
class: u([a(t).icon, { "opacity-0": !l.value }])
|
|
120
|
+
}, ae, 2))
|
|
121
121
|
])
|
|
122
122
|
], 2),
|
|
123
123
|
d("div", {
|
|
124
|
-
class: u(
|
|
124
|
+
class: u(a(t).label)
|
|
125
125
|
}, [
|
|
126
126
|
e.label ? (i(), p("span", {
|
|
127
127
|
key: 0,
|
|
@@ -129,9 +129,9 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
|
|
|
129
129
|
}, null, 8, re)) : C(e.$slots, "default", { key: 1 })
|
|
130
130
|
], 2)
|
|
131
131
|
], 42, ee),
|
|
132
|
-
|
|
132
|
+
a(N) ? Q("", !0) : (i(), V(x, {
|
|
133
133
|
key: 0,
|
|
134
|
-
error:
|
|
134
|
+
error: a(G),
|
|
135
135
|
helper: e.helper
|
|
136
136
|
}, null, 8, ["error", "helper"]))
|
|
137
137
|
], 6));
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: ({ data: r }) => {
|
|
4
4
|
const e = ["inline-block relative cursor-pointer align-middle"];
|
|
5
|
-
return r.isInsideForm && e.push("mb-
|
|
5
|
+
return r.isInsideForm && !r.isInsideFormGroup && e.push("mb-4"), e;
|
|
6
6
|
},
|
|
7
7
|
box: ({ props: r }) => {
|
|
8
|
-
const e = ["rounded flex justify-center items-center shrink-0 border
|
|
9
|
-
return r.size === "
|
|
8
|
+
const e = ["rounded flex justify-center items-center shrink-0 border border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)]"];
|
|
9
|
+
return r.size === "lg" ? e.push("h-5 w-5") : r.size === "xl" ? e.push("h-6 w-6") : e.push("h-4 w-4"), e;
|
|
10
10
|
},
|
|
11
11
|
content: ({ props: r }) => {
|
|
12
|
-
const e = ["flex items-
|
|
12
|
+
const e = ["flex items-baseline"];
|
|
13
13
|
return r.disabled && e.push("cursor-not-allowed"), e;
|
|
14
14
|
},
|
|
15
15
|
icon: ({ props: r }) => {
|
|
16
|
-
const e = ["fill-current text-white
|
|
17
|
-
return r.size === "
|
|
16
|
+
const e = ["fill-current text-white"];
|
|
17
|
+
return r.size === "lg" ? e.push("h-3 w-3") : r.size === "xl" ? e.push("h-4 w-4") : e.push("h-2.5 w-2.5"), e;
|
|
18
18
|
},
|
|
19
19
|
label: ({ props: r }) => {
|
|
20
|
-
const e = ["inline-block font-medium text-
|
|
20
|
+
const e = ["inline-block font-medium text-secondary-800 dark:text-secondary-200 pl-2"];
|
|
21
21
|
return r.size === "xs" ? e.push("text-xs") : r.size === "sm" ? e.push("text-sm") : r.size === "lg" ? e.push("text-lg") : r.size === "xl" && e.push("text-xl"), e;
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -53,7 +53,7 @@ const n = {
|
|
|
53
53
|
}
|
|
54
54
|
})), r.glow && a.push(l.get("glow", e.getColorOpacity(t[500], 0.5)))), a);
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, n = o;
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
n as default
|
|
59
59
|
};
|
|
@@ -13,11 +13,11 @@ const o = {
|
|
|
13
13
|
return r.disabled && e.push("cursor-not-allowed"), e;
|
|
14
14
|
},
|
|
15
15
|
icon: ({ props: r }) => {
|
|
16
|
-
const e = ["fill-current text-white dark:text-
|
|
16
|
+
const e = ["fill-current text-white dark:text-secondary-900"];
|
|
17
17
|
return r.size === "xs" || r.size === "sm" ? e.push("h-2 w-2") : r.size === "xl" ? e.push("h-3.5 w-3.5") : e.push("h-2.5 w-2.5"), e;
|
|
18
18
|
},
|
|
19
19
|
label: ({ props: r }) => {
|
|
20
|
-
const e = ["text-
|
|
20
|
+
const e = ["text-secondary-800 dark:text-secondary-200 pl-2 text-sm"];
|
|
21
21
|
return r.size === "xs" ? e.push("text-xs") : r.size === "sm" ? e.push("text-sm") : r.size === "lg" ? e.push("text-lg") : r.size === "xl" && e.push("text-xl"), e;
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -5,6 +5,10 @@ declare const containerProps: {
|
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
+
fluid: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
8
12
|
};
|
|
9
13
|
export type ContainerProps = ExtractPublicPropTypes<typeof containerProps>;
|
|
10
14
|
type InternalClasses = 'wrapper';
|
|
@@ -15,13 +19,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
19
|
type: StringConstructor;
|
|
16
20
|
default: string;
|
|
17
21
|
};
|
|
22
|
+
fluid: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
27
|
tag: {
|
|
20
28
|
type: StringConstructor;
|
|
21
29
|
default: string;
|
|
22
30
|
};
|
|
31
|
+
fluid: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
23
35
|
}>>, {
|
|
24
36
|
tag: string;
|
|
37
|
+
fluid: boolean;
|
|
25
38
|
}, {}>, {
|
|
26
39
|
default?(_: {}): any;
|
|
27
40
|
}>;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as f, unref as e, normalizeClass as m, withCtx as u, renderSlot as d } from "vue";
|
|
2
|
+
import { useTheme as y } from "../../composables/useTheme.js";
|
|
3
|
+
const _ = {
|
|
4
4
|
tag: {
|
|
5
5
|
type: String,
|
|
6
6
|
default: "div"
|
|
7
|
+
},
|
|
8
|
+
fluid: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
7
11
|
}
|
|
8
|
-
}, C = { name: "XContainer" },
|
|
12
|
+
}, C = { name: "XContainer" }, S = /* @__PURE__ */ r({
|
|
9
13
|
...C,
|
|
10
|
-
props:
|
|
14
|
+
props: _,
|
|
11
15
|
setup(s) {
|
|
12
|
-
const o = s, { styles:
|
|
16
|
+
const o = s, { styles: a, classes: n, className: l } = y("Container", {}, o);
|
|
13
17
|
return (t, g) => (c(), p(i(t.tag), {
|
|
14
|
-
style:
|
|
15
|
-
class:
|
|
16
|
-
e(
|
|
17
|
-
e(
|
|
18
|
+
style: f(e(a)),
|
|
19
|
+
class: m([
|
|
20
|
+
e(l),
|
|
21
|
+
e(n).wrapper
|
|
18
22
|
])
|
|
19
23
|
}, {
|
|
20
24
|
default: u(() => [
|
|
@@ -25,5 +29,5 @@ const y = {
|
|
|
25
29
|
}
|
|
26
30
|
});
|
|
27
31
|
export {
|
|
28
|
-
|
|
32
|
+
S as default
|
|
29
33
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = {
|
|
2
2
|
classes: {
|
|
3
|
-
wrapper:
|
|
3
|
+
wrapper: ({ props: s }) => {
|
|
4
|
+
const e = ["px-4 md:px-6"];
|
|
5
|
+
return s.fluid || e.push("max-w-screen-lg mx-auto"), e;
|
|
6
|
+
}
|
|
4
7
|
}
|
|
5
|
-
},
|
|
8
|
+
}, t = a;
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
t as default
|
|
8
11
|
};
|