@byyuurin/ui 0.0.3 → 0.0.5
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 +15 -24
- package/dist/index.d.ts +25 -2
- package/dist/index.mjs +25 -2
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.mjs +14 -10
- package/dist/nuxt.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Alert.vue +120 -0
- package/dist/runtime/components/App.vue +5 -1
- package/dist/runtime/components/Badge.vue +71 -0
- package/dist/runtime/components/Button.vue +3 -3
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Checkbox.vue +3 -6
- package/dist/runtime/components/Chip.vue +59 -0
- package/dist/runtime/components/Drawer.vue +2 -2
- package/dist/runtime/components/Input.vue +7 -2
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +2 -2
- package/dist/runtime/components/ModalProvider.vue +1 -1
- package/dist/runtime/components/PinInput.vue +86 -0
- package/dist/runtime/components/Popover.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +2 -8
- package/dist/runtime/components/ScrollArea.vue +72 -0
- package/dist/runtime/components/Select.vue +2 -1
- package/dist/runtime/components/Slider.vue +97 -0
- package/dist/runtime/components/Switch.vue +1 -2
- package/dist/runtime/components/Tabs.vue +6 -6
- package/dist/runtime/components/Textarea.vue +172 -0
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toaster.vue +2 -1
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/composables/defineInjection.d.ts +11 -0
- package/dist/runtime/composables/defineInjection.mjs +9 -0
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/useModal.mjs +3 -2
- package/dist/runtime/composables/useTheme.d.ts +3 -1
- package/dist/runtime/composables/useTheme.mjs +14 -6
- package/dist/runtime/theme/accordion.mjs +24 -21
- package/dist/runtime/theme/alert.d.ts +85 -0
- package/dist/runtime/theme/alert.mjs +47 -0
- package/dist/runtime/theme/app.mjs +1 -0
- package/dist/runtime/theme/badge.d.ts +79 -0
- package/dist/runtime/theme/badge.mjs +89 -0
- package/dist/runtime/theme/button.d.ts +4 -9
- package/dist/runtime/theme/button.mjs +130 -127
- package/dist/runtime/theme/card.d.ts +2 -2
- package/dist/runtime/theme/card.mjs +12 -9
- package/dist/runtime/theme/checkbox.d.ts +0 -12
- package/dist/runtime/theme/checkbox.mjs +45 -47
- package/dist/runtime/theme/chip.d.ts +56 -0
- package/dist/runtime/theme/chip.mjs +63 -0
- package/dist/runtime/theme/drawer.mjs +69 -66
- package/dist/runtime/theme/index.d.ts +7 -0
- package/dist/runtime/theme/index.mjs +7 -0
- package/dist/runtime/theme/input.d.ts +13 -5
- package/dist/runtime/theme/input.mjs +135 -122
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.mjs +23 -20
- package/dist/runtime/theme/modal.mjs +51 -48
- package/dist/runtime/theme/pinInput.d.ts +97 -0
- package/dist/runtime/theme/pinInput.mjs +108 -0
- package/dist/runtime/theme/popover.mjs +11 -8
- package/dist/runtime/theme/radioGroup.d.ts +0 -24
- package/dist/runtime/theme/radioGroup.mjs +50 -59
- package/dist/runtime/theme/scrollArea.d.ts +51 -0
- package/dist/runtime/theme/scrollArea.mjs +33 -0
- package/dist/runtime/theme/select.d.ts +5 -2
- package/dist/runtime/theme/select.mjs +156 -143
- package/dist/runtime/theme/slider.d.ts +73 -0
- package/dist/runtime/theme/slider.mjs +49 -0
- package/dist/runtime/theme/switch.d.ts +0 -12
- package/dist/runtime/theme/switch.mjs +66 -69
- package/dist/runtime/theme/tabs.d.ts +44 -13
- package/dist/runtime/theme/tabs.mjs +132 -106
- package/dist/runtime/theme/textarea.d.ts +93 -0
- package/dist/runtime/theme/textarea.mjs +113 -0
- package/dist/runtime/theme/toast.mjs +26 -23
- package/dist/runtime/theme/toaster.d.ts +2 -2
- package/dist/runtime/theme/toaster.mjs +84 -81
- package/dist/runtime/theme/tooltip.mjs +9 -6
- package/dist/runtime/types/components.d.ts +7 -0
- package/dist/runtime/types/index.d.ts +1 -3
- package/dist/runtime/utils/extend-theme.mjs +1 -1
- package/dist/runtime/utils/index.d.ts +0 -11
- package/dist/runtime/utils/index.mjs +0 -11
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/shared/ui.CzDyI29e.mjs +8 -0
- package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
- package/dist/unocss-preset.d.mts +15 -7
- package/dist/unocss-preset.d.ts +15 -7
- package/dist/unocss-preset.mjs +97 -384
- package/dist/unocss-preset.mjs.map +1 -0
- package/dist/unplugin.d.mts +25 -0
- package/dist/unplugin.d.ts +25 -0
- package/dist/unplugin.mjs +64 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.d.ts +9 -0
- package/dist/vite.mjs +14 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +22 -14
- package/dist/index.cjs +0 -38
- package/dist/resolver.d.mts +0 -13
- package/dist/resolver.d.ts +0 -13
- package/dist/resolver.mjs +0 -21
- package/dist/runtime/components/index.cjs +0 -132
- package/dist/runtime/components/index.d.ts +0 -18
- package/dist/runtime/components/index.mjs +0 -18
- package/dist/runtime/composables/index.cjs +0 -33
- package/dist/runtime/composables/index.d.ts +0 -4
- package/dist/runtime/composables/index.mjs +0 -4
- package/dist/runtime/composables/useComponentIcons.cjs +0 -30
- package/dist/runtime/composables/useModal.cjs +0 -55
- package/dist/runtime/composables/useTheme.cjs +0 -30
- package/dist/runtime/composables/useToast.cjs +0 -51
- package/dist/runtime/theme/accordion.cjs +0 -27
- package/dist/runtime/theme/app.cjs +0 -15
- package/dist/runtime/theme/button.cjs +0 -127
- package/dist/runtime/theme/card.cjs +0 -17
- package/dist/runtime/theme/checkbox.cjs +0 -56
- package/dist/runtime/theme/drawer.cjs +0 -73
- package/dist/runtime/theme/index.cjs +0 -125
- package/dist/runtime/theme/input.cjs +0 -115
- package/dist/runtime/theme/link.cjs +0 -23
- package/dist/runtime/theme/modal.cjs +0 -55
- package/dist/runtime/theme/popover.cjs +0 -13
- package/dist/runtime/theme/radioGroup.cjs +0 -73
- package/dist/runtime/theme/select.cjs +0 -128
- package/dist/runtime/theme/switch.cjs +0 -73
- package/dist/runtime/theme/tabs.cjs +0 -105
- package/dist/runtime/theme/toast.cjs +0 -33
- package/dist/runtime/theme/toaster.cjs +0 -72
- package/dist/runtime/theme/tooltip.cjs +0 -14
- package/dist/runtime/types/components.cjs +0 -1
- package/dist/runtime/types/index.cjs +0 -27
- package/dist/runtime/types/utils.cjs +0 -1
- package/dist/runtime/utils/extend-theme.cjs +0 -24
- package/dist/runtime/utils/index.cjs +0 -119
- package/dist/runtime/utils/link.cjs +0 -10
- package/dist/runtime/utils/styler.cjs +0 -18
- package/dist/shared/ui.CPXA9QoM.mjs +0 -23
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useToast = void 0;
|
|
7
|
-
var _core = require("@vueuse/core");
|
|
8
|
-
var _vue = require("vue");
|
|
9
|
-
const useToast = exports.useToast = (0, _core.createSharedComposable)(() => {
|
|
10
|
-
const toasts = (0, _vue.ref)([]);
|
|
11
|
-
function add(toast) {
|
|
12
|
-
const body = {
|
|
13
|
-
id: Date.now().toString(),
|
|
14
|
-
open: true,
|
|
15
|
-
...toast
|
|
16
|
-
};
|
|
17
|
-
const index = toasts.value.findIndex(t => t.id === body.id);
|
|
18
|
-
if (index === -1) toasts.value.push(body);
|
|
19
|
-
toasts.value = toasts.value.slice(-5);
|
|
20
|
-
return body;
|
|
21
|
-
}
|
|
22
|
-
function update(id, toast) {
|
|
23
|
-
const index = toasts.value.findIndex(t => t.id === id);
|
|
24
|
-
if (index === -1) return;
|
|
25
|
-
toasts.value[index] = {
|
|
26
|
-
...toasts.value[index],
|
|
27
|
-
...toast
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function remove(id) {
|
|
31
|
-
const index = toasts.value.findIndex(t => t.id === id);
|
|
32
|
-
if (index === -1) return;
|
|
33
|
-
toasts.value[index] = {
|
|
34
|
-
...toasts.value[index],
|
|
35
|
-
open: false
|
|
36
|
-
};
|
|
37
|
-
setTimeout(() => {
|
|
38
|
-
toasts.value = toasts.value.filter(t => t.id !== id);
|
|
39
|
-
}, 200);
|
|
40
|
-
}
|
|
41
|
-
function clear() {
|
|
42
|
-
toasts.value = [];
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
toasts,
|
|
46
|
-
add,
|
|
47
|
-
update,
|
|
48
|
-
remove,
|
|
49
|
-
clear
|
|
50
|
-
};
|
|
51
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
root: "w-full color-ui-cb",
|
|
11
|
-
item: "border-b last:border-b-0",
|
|
12
|
-
header: "flex",
|
|
13
|
-
trigger: "group flex-1 flex items-center gap-2 font-medium text-sm py-4 focus-visible:outline-ui-fill min-w-0",
|
|
14
|
-
content: ["overflow-hidden focus:outline-none", "data-[state=open]:animate-[accordion-down_200ms_ease-out]", "data-[state=closed]:animate-[accordion-up_200ms_ease-out]"],
|
|
15
|
-
body: "text-sm pb-4 color-ui-cb/80",
|
|
16
|
-
icon: "shrink-0 size-5",
|
|
17
|
-
trailingIcon: "shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
18
|
-
label: "text-start break-words"
|
|
19
|
-
},
|
|
20
|
-
variants: {
|
|
21
|
-
disabled: {
|
|
22
|
-
true: {
|
|
23
|
-
trigger: "cursor-not-allowed opacity-50"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
icons: {
|
|
9
|
-
close: "i-mdi-close-thick",
|
|
10
|
-
loading: "i-mdi-loading",
|
|
11
|
-
check: "i-mdi-check-bold",
|
|
12
|
-
indeterminate: "i-mdi-minus-thick",
|
|
13
|
-
down: "i-mdi-chevron-down"
|
|
14
|
-
}
|
|
15
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
base: ["inline-flex items-center leading-normal transition-colors", "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"],
|
|
11
|
-
label: "color-inherit",
|
|
12
|
-
prefixIcon: "shrink-0 size-1.5em",
|
|
13
|
-
suffixIcon: "shrink-0 size-1.5em"
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
solid: {
|
|
18
|
-
base: ["color-ui-c1 bg-ui-fill/90", "hover:bg-ui-fill/80 active:bg-ui-fill", "disabled:bg-ui-fill/90 aria-disabled:bg-ui-fill/90"]
|
|
19
|
-
},
|
|
20
|
-
outline: {
|
|
21
|
-
base: ["color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill", "hover:bg-ui-fill/10 active:bg-ui-fill/25", "disabled:bg-ui-c1 aria-disabled:bg-ui-c1"]
|
|
22
|
-
},
|
|
23
|
-
soft: {
|
|
24
|
-
base: ["color-ui-content/80 bg-ui-fill/10", "hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90", "disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"]
|
|
25
|
-
},
|
|
26
|
-
ghost: {
|
|
27
|
-
base: ["color-ui-fill/80 bg-transparent", "hover:bg-ui-fill/10 hover:color-ui-fill/80 active:bg-ui-fill/20 active:color-ui-fill/90", "disabled:bg-transparent aria-disabled:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80"]
|
|
28
|
-
},
|
|
29
|
-
link: {
|
|
30
|
-
base: ["color-ui-fill bg-transparent", "hover:color-ui-fill/80 active:color-ui-fill/90", "disabled:color-ui-fill aria-disabled:color-ui-fill"]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
size: {
|
|
34
|
-
xs: {
|
|
35
|
-
base: "text-xs"
|
|
36
|
-
},
|
|
37
|
-
sm: {
|
|
38
|
-
base: "text-sm"
|
|
39
|
-
},
|
|
40
|
-
md: {
|
|
41
|
-
base: "text-base"
|
|
42
|
-
},
|
|
43
|
-
lg: {
|
|
44
|
-
base: "text-lg"
|
|
45
|
-
},
|
|
46
|
-
xl: {
|
|
47
|
-
base: "text-xl"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
round: {
|
|
51
|
-
true: {
|
|
52
|
-
base: "rounded-full"
|
|
53
|
-
},
|
|
54
|
-
false: {
|
|
55
|
-
base: "rounded-ui-button"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
active: {
|
|
59
|
-
true: ""
|
|
60
|
-
},
|
|
61
|
-
prefix: {
|
|
62
|
-
true: ""
|
|
63
|
-
},
|
|
64
|
-
suffix: {
|
|
65
|
-
true: ""
|
|
66
|
-
},
|
|
67
|
-
loading: {
|
|
68
|
-
true: ""
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
compoundVariants: [{
|
|
72
|
-
size: ["xs", "sm", "md"],
|
|
73
|
-
class: {
|
|
74
|
-
base: "p-1.5",
|
|
75
|
-
label: "px-1"
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
78
|
-
size: ["lg", "xl"],
|
|
79
|
-
class: {
|
|
80
|
-
base: "p-2.5",
|
|
81
|
-
label: "px-2"
|
|
82
|
-
}
|
|
83
|
-
}, {
|
|
84
|
-
active: true,
|
|
85
|
-
variant: "solid",
|
|
86
|
-
class: {
|
|
87
|
-
base: "bg-ui-fill hover:bg-ui-fill"
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
active: true,
|
|
91
|
-
variant: "outline",
|
|
92
|
-
class: {
|
|
93
|
-
base: "bg-ui-fill/25 hover:bg-ui-fill/25"
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
active: true,
|
|
97
|
-
variant: "soft",
|
|
98
|
-
class: {
|
|
99
|
-
base: "color-ui-content/90 bg-ui-fill/20 hover:color-ui-content/90 hover:bg-ui-fill/20"
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
active: true,
|
|
103
|
-
variant: "ghost",
|
|
104
|
-
class: {
|
|
105
|
-
base: "color-ui-fill/90 bg-ui-fill/20 hover:color-ui-fill/90 hover:bg-ui-fill/20"
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
active: true,
|
|
109
|
-
variant: "link",
|
|
110
|
-
class: {
|
|
111
|
-
base: "color-ui-fill/90 hover:color-ui-fill/90"
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
loading: true,
|
|
115
|
-
prefix: true,
|
|
116
|
-
class: {
|
|
117
|
-
prefixIcon: "animate-spin"
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
loading: true,
|
|
121
|
-
prefix: false,
|
|
122
|
-
suffix: true,
|
|
123
|
-
class: {
|
|
124
|
-
suffixIcon: "animate-spin"
|
|
125
|
-
}
|
|
126
|
-
}]
|
|
127
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
root: "color-ui-cb bg-ui-c1 ring ring-ui-cb/10 divide-y divide-ui-cb/10 rounded-ui-box shadow-sm shadow-ui-cb/10",
|
|
11
|
-
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
12
|
-
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
13
|
-
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
14
|
-
title: "flex-grow color-ui-cb text-xl font-semibold",
|
|
15
|
-
description: "w-full color-ui-cb/80"
|
|
16
|
-
}
|
|
17
|
-
});
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
root: "relative flex items-start",
|
|
11
|
-
base: ["size-1.25em shrink-0 flex items-center justify-center rounded-ui-base color-ui-c1 ring ring-inset ring-ui-cb", "focus-visible:outline-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2"],
|
|
12
|
-
container: "flex items-center h-1.25em",
|
|
13
|
-
wrapper: "text-inherit ms-2",
|
|
14
|
-
icon: "shrink-0 size-1em data-[state=checked]:animate-[scale-in_200ms_ease-out]",
|
|
15
|
-
label: "flex color-ui-cb after:content-empty",
|
|
16
|
-
description: "color-ui-cb/60"
|
|
17
|
-
},
|
|
18
|
-
variants: {
|
|
19
|
-
size: {
|
|
20
|
-
xs: {
|
|
21
|
-
root: "text-xs"
|
|
22
|
-
},
|
|
23
|
-
sm: {
|
|
24
|
-
root: "text-sm"
|
|
25
|
-
},
|
|
26
|
-
md: {
|
|
27
|
-
root: "text-base"
|
|
28
|
-
},
|
|
29
|
-
lg: {
|
|
30
|
-
root: "text-lg"
|
|
31
|
-
},
|
|
32
|
-
xl: {
|
|
33
|
-
root: "text-xl"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
required: {
|
|
37
|
-
true: {
|
|
38
|
-
label: `after:content-['*'] after:ms-0.5`
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
disabled: {
|
|
42
|
-
true: {
|
|
43
|
-
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
44
|
-
},
|
|
45
|
-
false: {
|
|
46
|
-
label: "cursor-pointer"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
checked: {
|
|
50
|
-
true: {
|
|
51
|
-
base: "ring-2 ring-ui-content bg-ui-content",
|
|
52
|
-
icon: "color-ui-c1"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
});
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
overlay: "fixed inset-0 bg-ui-c3/75",
|
|
11
|
-
content: "fixed bg-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
|
|
12
|
-
handle: "shrink-0 rounded-full bg-ui-cb/17.5",
|
|
13
|
-
container: "w-full flex flex-col overflow-hidden overflow-y-auto",
|
|
14
|
-
header: "p-4 sm:px-6 sibling:pt-0",
|
|
15
|
-
title: "color-ui-cb text-xl font-semibold",
|
|
16
|
-
description: "mt-1 color-ui-cb/80",
|
|
17
|
-
body: "p-4 sm:px-6 flex-1 sibling:pt-0",
|
|
18
|
-
footer: "p-4 sm:px-6 flex flex-col gap-1.5"
|
|
19
|
-
},
|
|
20
|
-
variants: {
|
|
21
|
-
direction: {
|
|
22
|
-
top: {
|
|
23
|
-
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
|
|
24
|
-
handle: "mb-4"
|
|
25
|
-
},
|
|
26
|
-
right: {
|
|
27
|
-
content: "right-4 flex-row rounded-l-ui-box",
|
|
28
|
-
handle: "ml-4"
|
|
29
|
-
},
|
|
30
|
-
bottom: {
|
|
31
|
-
content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
|
|
32
|
-
handle: "mt-4"
|
|
33
|
-
},
|
|
34
|
-
left: {
|
|
35
|
-
content: "left-4 flex-row-reverse rounded-r-ui-box",
|
|
36
|
-
handle: "mr-4"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
blur: {
|
|
40
|
-
true: {
|
|
41
|
-
overlay: "backdrop-blur-sm"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
full: {
|
|
45
|
-
true: ""
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
compoundVariants: [{
|
|
49
|
-
direction: ["top", "bottom"],
|
|
50
|
-
class: {
|
|
51
|
-
content: "inset-x-0 h-auto max-h-[96%]",
|
|
52
|
-
handle: "w-12 h-1.5 mx-auto"
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
direction: ["top", "bottom"],
|
|
56
|
-
full: false,
|
|
57
|
-
class: {
|
|
58
|
-
content: "inset-x-4 my-4 rounded-ui-box after:hidden"
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
direction: ["right", "left"],
|
|
62
|
-
class: {
|
|
63
|
-
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
|
|
64
|
-
handle: "h-12 w-1.5 my-auto"
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
direction: ["right", "left"],
|
|
68
|
-
full: false,
|
|
69
|
-
class: {
|
|
70
|
-
content: "inset-y-4 rounded-ui-box after:hidden"
|
|
71
|
-
}
|
|
72
|
-
}]
|
|
73
|
-
});
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "accordion", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _accordion.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "app", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _app.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "button", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _button.default;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "card", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _card.default;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "checkbox", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _checkbox.default;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "drawer", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _drawer.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "input", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _input.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "link", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _link.default;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "modal", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _modal.default;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "popover", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _popover.default;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "radioGroup", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _radioGroup.default;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "select", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _select.default;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "switch", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return _switch.default;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "tabs", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () {
|
|
87
|
-
return _tabs.default;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "toast", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return _toast.default;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "toaster", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () {
|
|
99
|
-
return _toaster.default;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "tooltip", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return _tooltip.default;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
var _accordion = _interopRequireDefault(require("./accordion.cjs"));
|
|
109
|
-
var _app = _interopRequireDefault(require("./app.cjs"));
|
|
110
|
-
var _button = _interopRequireDefault(require("./button.cjs"));
|
|
111
|
-
var _card = _interopRequireDefault(require("./card.cjs"));
|
|
112
|
-
var _checkbox = _interopRequireDefault(require("./checkbox.cjs"));
|
|
113
|
-
var _drawer = _interopRequireDefault(require("./drawer.cjs"));
|
|
114
|
-
var _input = _interopRequireDefault(require("./input.cjs"));
|
|
115
|
-
var _link = _interopRequireDefault(require("./link.cjs"));
|
|
116
|
-
var _modal = _interopRequireDefault(require("./modal.cjs"));
|
|
117
|
-
var _popover = _interopRequireDefault(require("./popover.cjs"));
|
|
118
|
-
var _radioGroup = _interopRequireDefault(require("./radioGroup.cjs"));
|
|
119
|
-
var _select = _interopRequireDefault(require("./select.cjs"));
|
|
120
|
-
var _switch = _interopRequireDefault(require("./switch.cjs"));
|
|
121
|
-
var _tabs = _interopRequireDefault(require("./tabs.cjs"));
|
|
122
|
-
var _toast = _interopRequireDefault(require("./toast.cjs"));
|
|
123
|
-
var _toaster = _interopRequireDefault(require("./toaster.cjs"));
|
|
124
|
-
var _tooltip = _interopRequireDefault(require("./tooltip.cjs"));
|
|
125
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
root: "inline-flex items-center gap-x-2 rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
11
|
-
base: ["w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50", "focus:outline-none", "disabled:cursor-not-allowed"],
|
|
12
|
-
prefix: "flex items-center",
|
|
13
|
-
prefixIcon: "shrink-0 size-1.25em",
|
|
14
|
-
suffix: "flex items-center",
|
|
15
|
-
suffixIcon: "shrink-0 size-1.25em"
|
|
16
|
-
},
|
|
17
|
-
variants: {
|
|
18
|
-
size: {
|
|
19
|
-
xs: {
|
|
20
|
-
root: "text-xs"
|
|
21
|
-
},
|
|
22
|
-
sm: {
|
|
23
|
-
root: "text-sm"
|
|
24
|
-
},
|
|
25
|
-
md: {
|
|
26
|
-
root: "text-base"
|
|
27
|
-
},
|
|
28
|
-
lg: {
|
|
29
|
-
root: "text-lg"
|
|
30
|
-
},
|
|
31
|
-
xl: {
|
|
32
|
-
root: "text-xl"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
variant: {
|
|
36
|
-
outline: {
|
|
37
|
-
root: ["color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50", "focus-within:ring-2 focus-within:ring-ui-cb/50", "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"]
|
|
38
|
-
},
|
|
39
|
-
soft: {
|
|
40
|
-
root: ["color-ui-cb/80 bg-ui-cb/4", "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85", "aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"]
|
|
41
|
-
},
|
|
42
|
-
ghost: {
|
|
43
|
-
root: ["color-ui-cb/80 bg-transparent", "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85", "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"]
|
|
44
|
-
},
|
|
45
|
-
none: {
|
|
46
|
-
root: "color-ui-cb bg-transparent"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
prefix: {
|
|
50
|
-
true: ""
|
|
51
|
-
},
|
|
52
|
-
suffix: {
|
|
53
|
-
true: ""
|
|
54
|
-
},
|
|
55
|
-
loading: {
|
|
56
|
-
true: ""
|
|
57
|
-
},
|
|
58
|
-
underline: {
|
|
59
|
-
true: ""
|
|
60
|
-
},
|
|
61
|
-
highlight: {
|
|
62
|
-
true: {
|
|
63
|
-
base: ""
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
type: {
|
|
67
|
-
file: {
|
|
68
|
-
base: "prefix-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-c1 file:bg-ui-cb/80"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
compoundVariants: [{
|
|
73
|
-
variant: ["soft", "ghost", "none"],
|
|
74
|
-
highlight: false,
|
|
75
|
-
underline: true,
|
|
76
|
-
class: {
|
|
77
|
-
root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
size: ["xs", "sm", "md"],
|
|
81
|
-
class: {
|
|
82
|
-
root: "p-1.5 px-2.5"
|
|
83
|
-
}
|
|
84
|
-
}, {
|
|
85
|
-
size: ["lg", "xl"],
|
|
86
|
-
class: {
|
|
87
|
-
root: "p-2.5 px-3.5"
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
variant: ["soft", "ghost", "none"],
|
|
91
|
-
highlight: true,
|
|
92
|
-
class: {
|
|
93
|
-
root: "ring ring-inset ring-ui-fill/80"
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
variant: ["outline"],
|
|
97
|
-
highlight: true,
|
|
98
|
-
class: {
|
|
99
|
-
root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
loading: true,
|
|
103
|
-
prefix: true,
|
|
104
|
-
class: {
|
|
105
|
-
prefixIcon: "animate-spin"
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
loading: true,
|
|
109
|
-
prefix: false,
|
|
110
|
-
suffix: true,
|
|
111
|
-
class: {
|
|
112
|
-
suffixIcon: "animate-spin"
|
|
113
|
-
}
|
|
114
|
-
}]
|
|
115
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
base: "border-y border-t-transparent focus-visible:outline-ui-cb",
|
|
10
|
-
variants: {
|
|
11
|
-
underline: {
|
|
12
|
-
true: "border-current",
|
|
13
|
-
false: "border-transparent"
|
|
14
|
-
},
|
|
15
|
-
active: {
|
|
16
|
-
true: ["color-ui-fill", "disabled:color-ui-fill aria-disabled:color-ui-fill"],
|
|
17
|
-
false: ["color-ui-cb hover:color-ui-cb/80 transition-colors", "disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"]
|
|
18
|
-
},
|
|
19
|
-
disabled: {
|
|
20
|
-
true: "cursor-not-allowed opacity-50"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _uiKit = require("@byyuurin/ui-kit");
|
|
8
|
-
module.exports = (0, _uiKit.ct)({
|
|
9
|
-
slots: {
|
|
10
|
-
overlay: "fixed inset-0 bg-ui-c3/75",
|
|
11
|
-
content: "fixed bg-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
|
|
12
|
-
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
13
|
-
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
14
|
-
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
15
|
-
title: "flex-grow color-ui-cb text-xl font-semibold",
|
|
16
|
-
description: "w-full color-ui-cb/80",
|
|
17
|
-
close: "ms-auto"
|
|
18
|
-
},
|
|
19
|
-
variants: {
|
|
20
|
-
transition: {
|
|
21
|
-
true: {
|
|
22
|
-
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
23
|
-
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
blur: {
|
|
27
|
-
true: {
|
|
28
|
-
overlay: "backdrop-blur-sm"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
fullscreen: {
|
|
33
|
-
content: "inset-0"
|
|
34
|
-
},
|
|
35
|
-
sm: {
|
|
36
|
-
content: "w-screen-sm"
|
|
37
|
-
},
|
|
38
|
-
md: {
|
|
39
|
-
content: "w-screen-md"
|
|
40
|
-
},
|
|
41
|
-
lg: {
|
|
42
|
-
content: "w-screen-lg"
|
|
43
|
-
},
|
|
44
|
-
xl: {
|
|
45
|
-
content: "w-screen-xl"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
compoundVariants: [{
|
|
50
|
-
size: ["sm", "md", "lg", "xl"],
|
|
51
|
-
class: {
|
|
52
|
-
content: ["bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2", "sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"]
|
|
53
|
-
}
|
|
54
|
-
}]
|
|
55
|
-
});
|