@bitrix24/b24ui-nuxt 0.1.1
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/.nuxt/b24ui/advice.ts +52 -0
- package/.nuxt/b24ui/alert.ts +118 -0
- package/.nuxt/b24ui/avatar-group.ts +52 -0
- package/.nuxt/b24ui/avatar.ts +63 -0
- package/.nuxt/b24ui/badge.ts +256 -0
- package/.nuxt/b24ui/button-group.ts +27 -0
- package/.nuxt/b24ui/button.ts +342 -0
- package/.nuxt/b24ui/checkbox.ts +128 -0
- package/.nuxt/b24ui/chip.ts +205 -0
- package/.nuxt/b24ui/container.ts +3 -0
- package/.nuxt/b24ui/content/description-list.ts +62 -0
- package/.nuxt/b24ui/countdown.ts +94 -0
- package/.nuxt/b24ui/form-field.ts +57 -0
- package/.nuxt/b24ui/form.ts +3 -0
- package/.nuxt/b24ui/index.ts +28 -0
- package/.nuxt/b24ui/input.ts +472 -0
- package/.nuxt/b24ui/kbd.ts +31 -0
- package/.nuxt/b24ui/link.ts +20 -0
- package/.nuxt/b24ui/progress.ts +303 -0
- package/.nuxt/b24ui/radio-group.ts +135 -0
- package/.nuxt/b24ui/range.ts +172 -0
- package/.nuxt/b24ui/select.ts +550 -0
- package/.nuxt/b24ui/separator.ts +176 -0
- package/.nuxt/b24ui/skeleton.ts +3 -0
- package/.nuxt/b24ui/switch.ts +134 -0
- package/.nuxt/b24ui/tabs.ts +341 -0
- package/.nuxt/b24ui/textarea.ts +332 -0
- package/.nuxt/b24ui/toast.ts +89 -0
- package/.nuxt/b24ui/toaster.ts +91 -0
- package/.nuxt/b24ui/tooltip.ts +16 -0
- package/LICENSE +21 -0
- package/README.md +101 -0
- package/cli/commands/make/component.mjs +95 -0
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +15 -0
- package/cli/package.json +13 -0
- package/cli/templates.mjs +240 -0
- package/cli/utils.mjs +31 -0
- package/dist/meta.cjs +23610 -0
- package/dist/meta.d.cts +23608 -0
- package/dist/meta.d.mts +23608 -0
- package/dist/meta.d.ts +23608 -0
- package/dist/meta.mjs +23608 -0
- package/dist/module.cjs +54 -0
- package/dist/module.d.cts +14 -0
- package/dist/module.d.mts +14 -0
- package/dist/module.d.ts +14 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +51 -0
- package/dist/runtime/components/Advice.vue +115 -0
- package/dist/runtime/components/Alert.vue +136 -0
- package/dist/runtime/components/App.vue +52 -0
- package/dist/runtime/components/Avatar.vue +118 -0
- package/dist/runtime/components/AvatarGroup.vue +99 -0
- package/dist/runtime/components/Badge.vue +114 -0
- package/dist/runtime/components/Button.vue +177 -0
- package/dist/runtime/components/ButtonGroup.vue +58 -0
- package/dist/runtime/components/Checkbox.vue +110 -0
- package/dist/runtime/components/Chip.vue +81 -0
- package/dist/runtime/components/Container.vue +36 -0
- package/dist/runtime/components/Countdown.vue +498 -0
- package/dist/runtime/components/Form.vue +271 -0
- package/dist/runtime/components/FormField.vue +128 -0
- package/dist/runtime/components/Input.vue +224 -0
- package/dist/runtime/components/Kbd.vue +50 -0
- package/dist/runtime/components/Link.vue +219 -0
- package/dist/runtime/components/LinkBase.vue +63 -0
- package/dist/runtime/components/Progress.vue +182 -0
- package/dist/runtime/components/RadioGroup.vue +178 -0
- package/dist/runtime/components/Range.vue +114 -0
- package/dist/runtime/components/Select.vue +328 -0
- package/dist/runtime/components/Separator.vue +82 -0
- package/dist/runtime/components/Skeleton.vue +31 -0
- package/dist/runtime/components/Switch.vue +133 -0
- package/dist/runtime/components/Tabs.vue +127 -0
- package/dist/runtime/components/Textarea.vue +216 -0
- package/dist/runtime/components/Toast.vue +168 -0
- package/dist/runtime/components/Toaster.vue +143 -0
- package/dist/runtime/components/Tooltip.vue +94 -0
- package/dist/runtime/components/content/DescriptionList.vue +220 -0
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +15 -0
- package/dist/runtime/composables/defineShortcuts.js +135 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +10 -0
- package/dist/runtime/composables/useAvatarGroup.js +10 -0
- package/dist/runtime/composables/useButtonGroup.d.ts +17 -0
- package/dist/runtime/composables/useButtonGroup.js +10 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +20 -0
- package/dist/runtime/composables/useComponentIcons.js +25 -0
- package/dist/runtime/composables/useFormField.d.ts +42 -0
- package/dist/runtime/composables/useFormField.js +65 -0
- package/dist/runtime/composables/useKbd.d.ts +35 -0
- package/dist/runtime/composables/useKbd.js +52 -0
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/composables/useToast.d.ts +12 -0
- package/dist/runtime/composables/useToast.js +62 -0
- package/dist/runtime/dictionary/icons.d.ts +20 -0
- package/dist/runtime/dictionary/icons.js +35 -0
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +48 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +48 -0
- package/dist/runtime/locale/index.d.ts +3 -0
- package/dist/runtime/locale/index.js +3 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +48 -0
- package/dist/runtime/plugins/colors.d.ts +2 -0
- package/dist/runtime/plugins/colors.js +40 -0
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/form.d.ts +84 -0
- package/dist/runtime/types/form.js +12 -0
- package/dist/runtime/types/icons.d.ts +3 -0
- package/dist/runtime/types/icons.js +0 -0
- package/dist/runtime/types/index.d.ts +33 -0
- package/dist/runtime/types/index.js +33 -0
- package/dist/runtime/types/locale.d.ts +50 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +22 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/form.d.ts +17 -0
- package/dist/runtime/utils/form.js +153 -0
- package/dist/runtime/utils/fuse.d.ts +4 -0
- package/dist/runtime/utils/fuse.js +63 -0
- package/dist/runtime/utils/index.d.ts +6 -0
- package/dist/runtime/utils/index.js +63 -0
- package/dist/runtime/utils/link.d.ts +29 -0
- package/dist/runtime/utils/link.js +4 -0
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Link.vue +203 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +6 -0
- package/dist/runtime/vue/stubs.d.ts +15 -0
- package/dist/runtime/vue/stubs.js +27 -0
- package/dist/shared/b24ui-nuxt.CNGvMe2S.mjs +4074 -0
- package/dist/shared/b24ui-nuxt.D22QQtm8.cjs +4079 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/unplugin.cjs +213 -0
- package/dist/unplugin.d.cts +22 -0
- package/dist/unplugin.d.mts +22 -0
- package/dist/unplugin.d.ts +22 -0
- package/dist/unplugin.mjs +202 -0
- package/dist/vite.cjs +21 -0
- package/dist/vite.d.cts +12 -0
- package/dist/vite.d.mts +12 -0
- package/dist/vite.d.ts +12 -0
- package/dist/vite.mjs +19 -0
- package/package.json +166 -0
- package/vue-plugin.d.ts +5 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"sm",
|
|
3
|
+
"md"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
"slots": {
|
|
8
|
+
"root": "w-full shrink-0",
|
|
9
|
+
"legend": "font-semibold text-black dark:text-base-150",
|
|
10
|
+
"text": "text-base-500 dark:text-base-400",
|
|
11
|
+
"container": "grid grid-cols-1 sm:grid-cols-[min(50%,theme(spacing.80))_auto]",
|
|
12
|
+
"labelWrapper": "col-start-1 border-t border-base-950/5 text-base-500 first:border-none sm:border-t sm:border-base-950/5 dark:border-white/5 dark:text-base-400 sm:dark:border-white/5 flex flex-nowrap flex-row items-center justify-start gap-1.5",
|
|
13
|
+
"icon": "shrink-0 size-6 text-base-500 dark:text-base-400",
|
|
14
|
+
"avatar": "shrink-0",
|
|
15
|
+
"avatarSize": "",
|
|
16
|
+
"label": "",
|
|
17
|
+
"descriptionWrapper": "text-base-950 sm:border-t sm:border-base-950/5 dark:text-white dark:sm:border-white/5 sm:[&:nth-child(2)]:border-none",
|
|
18
|
+
"description": "text-base-900 dark:text-base-150",
|
|
19
|
+
"actions": "flex flex-wrap gap-1.5 shrink-0",
|
|
20
|
+
"footer": "border-t border-base-950/5 dark:border-white/5"
|
|
21
|
+
},
|
|
22
|
+
"variants": {
|
|
23
|
+
"size": {
|
|
24
|
+
"sm": {
|
|
25
|
+
"legend": "text-md",
|
|
26
|
+
"text": "mt-1 max-w-2/3 text-sm",
|
|
27
|
+
"container": "mt-2.5 text-md",
|
|
28
|
+
"labelWrapper": "pt-3 sm:py-3",
|
|
29
|
+
"avatarSize": "xs",
|
|
30
|
+
"label": "",
|
|
31
|
+
"descriptionWrapper": "pb-3 pt-1 sm:py-3",
|
|
32
|
+
"description": "",
|
|
33
|
+
"footer": "mt-2 p-2"
|
|
34
|
+
},
|
|
35
|
+
"md": {
|
|
36
|
+
"legend": "text-xl",
|
|
37
|
+
"text": "mt-2 max-w-2/3 text-lg leading-5",
|
|
38
|
+
"container": "mt-3 text-lg",
|
|
39
|
+
"labelWrapper": "pt-3 sm:py-3",
|
|
40
|
+
"avatarSize": "xs",
|
|
41
|
+
"label": "",
|
|
42
|
+
"descriptionWrapper": "pb-3 pt-1 sm:py-3",
|
|
43
|
+
"description": "",
|
|
44
|
+
"footer": "mt-4 p-4"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"multiline": {
|
|
48
|
+
"true": {
|
|
49
|
+
"descriptionWrapper": "",
|
|
50
|
+
"actions": "items-start mt-2.5"
|
|
51
|
+
},
|
|
52
|
+
"false": {
|
|
53
|
+
"descriptionWrapper": "w-full flex flex-row items-center justify-between gap-4",
|
|
54
|
+
"actions": "items-center"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"compoundVariants": [],
|
|
59
|
+
"defaultVariants": {
|
|
60
|
+
"size": "md" as typeof size[number]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
"slots": {
|
|
11
|
+
"base": [
|
|
12
|
+
"relative flex flex-row flex-nowrap items-center justify-between",
|
|
13
|
+
"text-base-500 dark:text-base-600"
|
|
14
|
+
],
|
|
15
|
+
"label": "",
|
|
16
|
+
"leadingIcon": "shrink-0",
|
|
17
|
+
"leadingAvatar": "shrink-0",
|
|
18
|
+
"leadingAvatarSize": "",
|
|
19
|
+
"circleBase": "-scale-x-100 absolute inset-x-0 inset-y-0",
|
|
20
|
+
"circleGroup": "fill-none stroke-none",
|
|
21
|
+
"circleElement": "stroke-transparent stroke-1",
|
|
22
|
+
"circlePath": [
|
|
23
|
+
"stroke-[7px] rotate-90 origin-center stroke-current transition-all duration-1000 ease-linear"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"variants": {
|
|
27
|
+
"size": {
|
|
28
|
+
"xs": {
|
|
29
|
+
"base": "gap-0.5 text-5xs leading-none",
|
|
30
|
+
"leadingIcon": "size-sm",
|
|
31
|
+
"leadingAvatarSize": "3xs"
|
|
32
|
+
},
|
|
33
|
+
"sm": {
|
|
34
|
+
"base": "gap-1 text-4xs leading-none",
|
|
35
|
+
"leadingIcon": "size-sm2",
|
|
36
|
+
"leadingAvatarSize": "3xs"
|
|
37
|
+
},
|
|
38
|
+
"md": {
|
|
39
|
+
"base": "gap-1 text-md leading-none",
|
|
40
|
+
"leadingIcon": "size-[16px]",
|
|
41
|
+
"leadingAvatarSize": "3xs"
|
|
42
|
+
},
|
|
43
|
+
"lg": {
|
|
44
|
+
"base": "gap-1 text-lg leading-none",
|
|
45
|
+
"leadingIcon": "size-[22px]",
|
|
46
|
+
"leadingAvatarSize": "2xs"
|
|
47
|
+
},
|
|
48
|
+
"xl": {
|
|
49
|
+
"base": "gap-1 text-xl leading-none",
|
|
50
|
+
"leadingIcon": "size-[26px]",
|
|
51
|
+
"leadingAvatarSize": "xs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"leading": {
|
|
55
|
+
"true": ""
|
|
56
|
+
},
|
|
57
|
+
"useCircle": {
|
|
58
|
+
"true": {
|
|
59
|
+
"base": "justify-center",
|
|
60
|
+
"circleBase": "size-full"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"compoundVariants": [
|
|
65
|
+
{
|
|
66
|
+
"size": "xs" as typeof size[number],
|
|
67
|
+
"useCircle": true,
|
|
68
|
+
"class": "text-7xs leading-normal p-0.5"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"size": "sm" as typeof size[number],
|
|
72
|
+
"useCircle": true,
|
|
73
|
+
"class": "text-6xs leading-normal p-1.5"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"size": "md" as typeof size[number],
|
|
77
|
+
"useCircle": true,
|
|
78
|
+
"class": "text-3xs leading-normal p-1.5"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"size": "lg" as typeof size[number],
|
|
82
|
+
"useCircle": true,
|
|
83
|
+
"class": "text-xs leading-normal p-1.5 pb-2"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"size": "xl" as typeof size[number],
|
|
87
|
+
"useCircle": true,
|
|
88
|
+
"class": "text-sm leading-normal p-2 pb-2.5"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"defaultVariants": {
|
|
92
|
+
"size": "md" as typeof size[number]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
"slots": {
|
|
10
|
+
"root": "font-b24-system font-regular",
|
|
11
|
+
"wrapper": "leading-none",
|
|
12
|
+
"labelWrapper": "flex content-center items-center justify-between",
|
|
13
|
+
"label": "block text-base-900 dark:text-base-400",
|
|
14
|
+
"hint": "text-base-500 dark:text-base-600",
|
|
15
|
+
"container": "relative",
|
|
16
|
+
"description": "mt-0.5 leading-tight text-base-500 dark:text-base-600",
|
|
17
|
+
"error": "mt-1 text-red-500 dark:text-red-600",
|
|
18
|
+
"errorIcon": "size-lg",
|
|
19
|
+
"help": "mt-1.5 leading-tight italic text-base-500 dark:text-base-600"
|
|
20
|
+
},
|
|
21
|
+
"variants": {
|
|
22
|
+
"useDescription": {
|
|
23
|
+
"true": {
|
|
24
|
+
"wrapper": "mb-1.5"
|
|
25
|
+
},
|
|
26
|
+
"false": {
|
|
27
|
+
"wrapper": "mb-2.5"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"size": {
|
|
31
|
+
"xs": {
|
|
32
|
+
"root": "text-xs",
|
|
33
|
+
"errorIcon": "size-md"
|
|
34
|
+
},
|
|
35
|
+
"sm": {
|
|
36
|
+
"root": "text-xs",
|
|
37
|
+
"errorIcon": "size-md"
|
|
38
|
+
},
|
|
39
|
+
"md": {
|
|
40
|
+
"root": "text-sm",
|
|
41
|
+
"errorIcon": "size-md2"
|
|
42
|
+
},
|
|
43
|
+
"lg": {
|
|
44
|
+
"root": "text-md"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": {
|
|
48
|
+
"true": {
|
|
49
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-red-500 after:dark:text-red-600"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"compoundVariants": [],
|
|
54
|
+
"defaultVariants": {
|
|
55
|
+
"size": "md" as typeof size[number]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { default as advice } from './advice'
|
|
2
|
+
export { default as alert } from './alert'
|
|
3
|
+
export { default as avatar } from './avatar'
|
|
4
|
+
export { default as avatarGroup } from './avatar-group'
|
|
5
|
+
export { default as badge } from './badge'
|
|
6
|
+
export { default as button } from './button'
|
|
7
|
+
export { default as buttonGroup } from './button-group'
|
|
8
|
+
export { default as checkbox } from './checkbox'
|
|
9
|
+
export { default as chip } from './chip'
|
|
10
|
+
export { default as container } from './container'
|
|
11
|
+
export { default as countdown } from './countdown'
|
|
12
|
+
export { default as form } from './form'
|
|
13
|
+
export { default as formField } from './form-field'
|
|
14
|
+
export { default as input } from './input'
|
|
15
|
+
export { default as kbd } from './kbd'
|
|
16
|
+
export { default as link } from './link'
|
|
17
|
+
export { default as progress } from './progress'
|
|
18
|
+
export { default as radioGroup } from './radio-group'
|
|
19
|
+
export { default as range } from './range'
|
|
20
|
+
export { default as select } from './select'
|
|
21
|
+
export { default as separator } from './separator'
|
|
22
|
+
export { default as skeleton } from './skeleton'
|
|
23
|
+
export { default as switch } from './switch'
|
|
24
|
+
export { default as tabs } from './tabs'
|
|
25
|
+
export { default as textarea } from './textarea'
|
|
26
|
+
export { default as toast } from './toast'
|
|
27
|
+
export { default as toaster } from './toaster'
|
|
28
|
+
export { default as tooltip } from './tooltip'
|