@bitrix24/b24ui-nuxt 0.1.5 → 0.1.6
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/badge.ts +20 -1
- package/.nuxt/b24ui/button-group.ts +1 -1
- package/.nuxt/b24ui/button.ts +2 -2
- package/.nuxt/b24ui/input.ts +3 -3
- package/.nuxt/b24ui/select.ts +5 -5
- package/.nuxt/b24ui/textarea.ts +3 -3
- package/dist/meta.cjs +35 -35
- package/dist/meta.d.cts +35 -35
- package/dist/meta.d.mts +35 -35
- package/dist/meta.d.ts +35 -35
- package/dist/meta.mjs +35 -35
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Badge.vue +4 -1
- package/dist/runtime/components/ButtonGroup.vue +1 -1
- package/dist/runtime/vue/components/Link.vue +1 -0
- package/dist/shared/{b24ui-nuxt.D8eTlsIC.cjs → b24ui-nuxt.BAQG__ma.cjs} +79 -71
- package/dist/shared/{b24ui-nuxt.CGBDJv97.mjs → b24ui-nuxt.n3bAiAAD.mjs} +79 -71
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +8 -9
package/dist/meta.d.ts
CHANGED
|
@@ -5500,6 +5500,22 @@ var B24UIMeta = {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
|
+
{
|
|
5504
|
+
"name": "name",
|
|
5505
|
+
"global": false,
|
|
5506
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5507
|
+
"tags": [],
|
|
5508
|
+
"required": false,
|
|
5509
|
+
"type": "string | undefined",
|
|
5510
|
+
"schema": {
|
|
5511
|
+
"kind": "enum",
|
|
5512
|
+
"type": "string | undefined",
|
|
5513
|
+
"schema": {
|
|
5514
|
+
"0": "undefined",
|
|
5515
|
+
"1": "string"
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
},
|
|
5503
5519
|
{
|
|
5504
5520
|
"name": "value",
|
|
5505
5521
|
"global": false,
|
|
@@ -5524,22 +5540,6 @@ var B24UIMeta = {
|
|
|
5524
5540
|
}
|
|
5525
5541
|
}
|
|
5526
5542
|
},
|
|
5527
|
-
{
|
|
5528
|
-
"name": "name",
|
|
5529
|
-
"global": false,
|
|
5530
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5531
|
-
"tags": [],
|
|
5532
|
-
"required": false,
|
|
5533
|
-
"type": "string | undefined",
|
|
5534
|
-
"schema": {
|
|
5535
|
-
"kind": "enum",
|
|
5536
|
-
"type": "string | undefined",
|
|
5537
|
-
"schema": {
|
|
5538
|
-
"0": "undefined",
|
|
5539
|
-
"1": "string"
|
|
5540
|
-
}
|
|
5541
|
-
}
|
|
5542
|
-
},
|
|
5543
5543
|
{
|
|
5544
5544
|
"name": "required",
|
|
5545
5545
|
"global": false,
|
|
@@ -7103,8 +7103,8 @@ var B24UIMeta = {
|
|
|
7103
7103
|
"2": "\"reset\"",
|
|
7104
7104
|
"3": "\"submit\"",
|
|
7105
7105
|
"4": "\"image\"",
|
|
7106
|
-
"5": "\"
|
|
7107
|
-
"6": "\"
|
|
7106
|
+
"5": "\"color\"",
|
|
7107
|
+
"6": "\"text\"",
|
|
7108
7108
|
"7": "\"button\"",
|
|
7109
7109
|
"8": "\"date\"",
|
|
7110
7110
|
"9": "\"time\"",
|
|
@@ -9920,37 +9920,37 @@ var B24UIMeta = {
|
|
|
9920
9920
|
"default": "1"
|
|
9921
9921
|
},
|
|
9922
9922
|
{
|
|
9923
|
-
"name": "
|
|
9923
|
+
"name": "name",
|
|
9924
9924
|
"global": false,
|
|
9925
|
-
"description": "The
|
|
9925
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9926
9926
|
"tags": [],
|
|
9927
9927
|
"required": false,
|
|
9928
|
-
"type": "
|
|
9928
|
+
"type": "string | undefined",
|
|
9929
9929
|
"schema": {
|
|
9930
9930
|
"kind": "enum",
|
|
9931
|
-
"type": "
|
|
9931
|
+
"type": "string | undefined",
|
|
9932
9932
|
"schema": {
|
|
9933
9933
|
"0": "undefined",
|
|
9934
|
-
"1": "
|
|
9934
|
+
"1": "string"
|
|
9935
9935
|
}
|
|
9936
|
-
}
|
|
9937
|
-
"default": "100"
|
|
9936
|
+
}
|
|
9938
9937
|
},
|
|
9939
9938
|
{
|
|
9940
|
-
"name": "
|
|
9939
|
+
"name": "max",
|
|
9941
9940
|
"global": false,
|
|
9942
|
-
"description": "The
|
|
9941
|
+
"description": "The maximum value for the range.",
|
|
9943
9942
|
"tags": [],
|
|
9944
9943
|
"required": false,
|
|
9945
|
-
"type": "
|
|
9944
|
+
"type": "number | undefined",
|
|
9946
9945
|
"schema": {
|
|
9947
9946
|
"kind": "enum",
|
|
9948
|
-
"type": "
|
|
9947
|
+
"type": "number | undefined",
|
|
9949
9948
|
"schema": {
|
|
9950
9949
|
"0": "undefined",
|
|
9951
|
-
"1": "
|
|
9950
|
+
"1": "number"
|
|
9952
9951
|
}
|
|
9953
|
-
}
|
|
9952
|
+
},
|
|
9953
|
+
"default": "100"
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "inverted",
|
|
@@ -13652,9 +13652,9 @@ var B24UIMeta = {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
},
|
|
13654
13654
|
{
|
|
13655
|
-
"name": "
|
|
13655
|
+
"name": "name",
|
|
13656
13656
|
"global": false,
|
|
13657
|
-
"description": "The
|
|
13657
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13658
13658
|
"tags": [],
|
|
13659
13659
|
"required": false,
|
|
13660
13660
|
"type": "string | undefined",
|
|
@@ -13668,9 +13668,9 @@ var B24UIMeta = {
|
|
|
13668
13668
|
}
|
|
13669
13669
|
},
|
|
13670
13670
|
{
|
|
13671
|
-
"name": "
|
|
13671
|
+
"name": "value",
|
|
13672
13672
|
"global": false,
|
|
13673
|
-
"description": "The
|
|
13673
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13674
13674
|
"tags": [],
|
|
13675
13675
|
"required": false,
|
|
13676
13676
|
"type": "string | undefined",
|
package/dist/meta.mjs
CHANGED
|
@@ -5500,6 +5500,22 @@ const B24UIMeta = {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
|
+
{
|
|
5504
|
+
"name": "name",
|
|
5505
|
+
"global": false,
|
|
5506
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5507
|
+
"tags": [],
|
|
5508
|
+
"required": false,
|
|
5509
|
+
"type": "string | undefined",
|
|
5510
|
+
"schema": {
|
|
5511
|
+
"kind": "enum",
|
|
5512
|
+
"type": "string | undefined",
|
|
5513
|
+
"schema": {
|
|
5514
|
+
"0": "undefined",
|
|
5515
|
+
"1": "string"
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
},
|
|
5503
5519
|
{
|
|
5504
5520
|
"name": "value",
|
|
5505
5521
|
"global": false,
|
|
@@ -5524,22 +5540,6 @@ const B24UIMeta = {
|
|
|
5524
5540
|
}
|
|
5525
5541
|
}
|
|
5526
5542
|
},
|
|
5527
|
-
{
|
|
5528
|
-
"name": "name",
|
|
5529
|
-
"global": false,
|
|
5530
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5531
|
-
"tags": [],
|
|
5532
|
-
"required": false,
|
|
5533
|
-
"type": "string | undefined",
|
|
5534
|
-
"schema": {
|
|
5535
|
-
"kind": "enum",
|
|
5536
|
-
"type": "string | undefined",
|
|
5537
|
-
"schema": {
|
|
5538
|
-
"0": "undefined",
|
|
5539
|
-
"1": "string"
|
|
5540
|
-
}
|
|
5541
|
-
}
|
|
5542
|
-
},
|
|
5543
5543
|
{
|
|
5544
5544
|
"name": "required",
|
|
5545
5545
|
"global": false,
|
|
@@ -7103,8 +7103,8 @@ const B24UIMeta = {
|
|
|
7103
7103
|
"2": "\"reset\"",
|
|
7104
7104
|
"3": "\"submit\"",
|
|
7105
7105
|
"4": "\"image\"",
|
|
7106
|
-
"5": "\"
|
|
7107
|
-
"6": "\"
|
|
7106
|
+
"5": "\"color\"",
|
|
7107
|
+
"6": "\"text\"",
|
|
7108
7108
|
"7": "\"button\"",
|
|
7109
7109
|
"8": "\"date\"",
|
|
7110
7110
|
"9": "\"time\"",
|
|
@@ -9920,37 +9920,37 @@ const B24UIMeta = {
|
|
|
9920
9920
|
"default": "1"
|
|
9921
9921
|
},
|
|
9922
9922
|
{
|
|
9923
|
-
"name": "
|
|
9923
|
+
"name": "name",
|
|
9924
9924
|
"global": false,
|
|
9925
|
-
"description": "The
|
|
9925
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9926
9926
|
"tags": [],
|
|
9927
9927
|
"required": false,
|
|
9928
|
-
"type": "
|
|
9928
|
+
"type": "string | undefined",
|
|
9929
9929
|
"schema": {
|
|
9930
9930
|
"kind": "enum",
|
|
9931
|
-
"type": "
|
|
9931
|
+
"type": "string | undefined",
|
|
9932
9932
|
"schema": {
|
|
9933
9933
|
"0": "undefined",
|
|
9934
|
-
"1": "
|
|
9934
|
+
"1": "string"
|
|
9935
9935
|
}
|
|
9936
|
-
}
|
|
9937
|
-
"default": "100"
|
|
9936
|
+
}
|
|
9938
9937
|
},
|
|
9939
9938
|
{
|
|
9940
|
-
"name": "
|
|
9939
|
+
"name": "max",
|
|
9941
9940
|
"global": false,
|
|
9942
|
-
"description": "The
|
|
9941
|
+
"description": "The maximum value for the range.",
|
|
9943
9942
|
"tags": [],
|
|
9944
9943
|
"required": false,
|
|
9945
|
-
"type": "
|
|
9944
|
+
"type": "number | undefined",
|
|
9946
9945
|
"schema": {
|
|
9947
9946
|
"kind": "enum",
|
|
9948
|
-
"type": "
|
|
9947
|
+
"type": "number | undefined",
|
|
9949
9948
|
"schema": {
|
|
9950
9949
|
"0": "undefined",
|
|
9951
|
-
"1": "
|
|
9950
|
+
"1": "number"
|
|
9952
9951
|
}
|
|
9953
|
-
}
|
|
9952
|
+
},
|
|
9953
|
+
"default": "100"
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "inverted",
|
|
@@ -13652,9 +13652,9 @@ const B24UIMeta = {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
},
|
|
13654
13654
|
{
|
|
13655
|
-
"name": "
|
|
13655
|
+
"name": "name",
|
|
13656
13656
|
"global": false,
|
|
13657
|
-
"description": "The
|
|
13657
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13658
13658
|
"tags": [],
|
|
13659
13659
|
"required": false,
|
|
13660
13660
|
"type": "string | undefined",
|
|
@@ -13668,9 +13668,9 @@ const B24UIMeta = {
|
|
|
13668
13668
|
}
|
|
13669
13669
|
},
|
|
13670
13670
|
{
|
|
13671
|
-
"name": "
|
|
13671
|
+
"name": "value",
|
|
13672
13672
|
"global": false,
|
|
13673
|
-
"description": "The
|
|
13673
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13674
13674
|
"tags": [],
|
|
13675
13675
|
"required": false,
|
|
13676
13676
|
"type": "string | undefined",
|
package/dist/module.cjs
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.n3bAiAAD.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
|
|
@@ -44,6 +44,7 @@ export interface BadgeSlots {
|
|
|
44
44
|
<script setup lang="ts">
|
|
45
45
|
import { computed } from 'vue'
|
|
46
46
|
import { Primitive } from 'reka-ui'
|
|
47
|
+
import { useButtonGroup } from '../composables/useButtonGroup'
|
|
47
48
|
import { useComponentIcons } from '../composables/useComponentIcons'
|
|
48
49
|
import Cross20Icon from '@bitrix24/b24icons-vue/actions/Cross20Icon'
|
|
49
50
|
import B24Avatar from './Avatar.vue'
|
|
@@ -61,12 +62,14 @@ async function onCloseClickWrapper(event: MouseEvent) {
|
|
|
61
62
|
} finally { /* empty */ }
|
|
62
63
|
}
|
|
63
64
|
|
|
65
|
+
const { orientation, size: buttonGroupSize } = useButtonGroup<BadgeProps>(props)
|
|
64
66
|
const { isLeading, leadingIconName } = useComponentIcons(props)
|
|
65
67
|
|
|
66
68
|
const b24ui = computed(() => badge({
|
|
67
69
|
color: props.color,
|
|
68
70
|
depth: props.depth,
|
|
69
|
-
size: props.size,
|
|
71
|
+
size: buttonGroupSize.value || props.size,
|
|
72
|
+
buttonGroup: orientation.value,
|
|
70
73
|
useLink: Boolean(props.useLink),
|
|
71
74
|
useClose: Boolean(props.useClose),
|
|
72
75
|
useFill: Boolean(props.useFill),
|
|
@@ -52,7 +52,7 @@ provide(buttonGroupInjectionKey, computed(() => ({
|
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
54
|
<template>
|
|
55
|
-
<Primitive :as="as" :class="buttonGroup({ orientation, class: props.class })">
|
|
55
|
+
<Primitive :as="as" class="group/items is-button-group" :class="buttonGroup({ orientation, class: props.class })">
|
|
56
56
|
<slot />
|
|
57
57
|
</Primitive>
|
|
58
58
|
</template>
|
|
@@ -99,6 +99,7 @@ import { reactiveOmit } from '@vueuse/core'
|
|
|
99
99
|
import { hasProtocol } from 'ufo'
|
|
100
100
|
import { useRoute } from '#imports'
|
|
101
101
|
import { RouterLink } from 'vue-router'
|
|
102
|
+
import B24LinkBase from './../../components/LinkBase.vue'
|
|
102
103
|
|
|
103
104
|
defineOptions({ inheritAttrs: false })
|
|
104
105
|
|
|
@@ -262,6 +262,73 @@ const avatarGroup = {
|
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
+
const buttonGroupVariant = {
|
|
266
|
+
buttonGroup: {
|
|
267
|
+
horizontal: [
|
|
268
|
+
"focus-visible:outline-none",
|
|
269
|
+
"ring ring-inset ring-0 focus-visible:ring-2",
|
|
270
|
+
"group-[.is-button-group]/items:not-only:first:rounded-e-none group-[.is-button-group]/items:not-only:last:rounded-s-none group-[.is-button-group]/items:not-last:not-first:rounded-none",
|
|
271
|
+
"group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0"
|
|
272
|
+
].join(" "),
|
|
273
|
+
vertical: [
|
|
274
|
+
"focus-visible:outline-none",
|
|
275
|
+
"ring ring-inset ring-0 focus-visible:ring-2",
|
|
276
|
+
"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
|
|
277
|
+
].join(" ")
|
|
278
|
+
},
|
|
279
|
+
noSplit: {
|
|
280
|
+
false: [
|
|
281
|
+
"group-[.is-button-group]/items:not-only:not-first:after:content-[''] group-[.is-button-group]/items:not-only:not-first:after:absolute",
|
|
282
|
+
"group-[.is-button-group]/items:not-only:not-first:after:top-[7px] group-[.is-button-group]/items:not-only:not-first:after:bottom-[6px] group-[.is-button-group]/items:not-only:not-first:after:left-0 group-[.is-button-group]/items:not-only:not-first:after:w-px",
|
|
283
|
+
"group-[.is-button-group]/items:not-only:not-first:after:bg-current/30"
|
|
284
|
+
].join(" ")
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
const buttonGroupVariantWithRoot = {
|
|
288
|
+
buttonGroup: {
|
|
289
|
+
horizontal: {
|
|
290
|
+
root: "group leading-none",
|
|
291
|
+
base: [
|
|
292
|
+
"focus-visible:outline-none",
|
|
293
|
+
"ring ring-inset ring-1 focus-visible:ring-2",
|
|
294
|
+
"group-not-only:group-first:rounded-e-3xl group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none",
|
|
295
|
+
"group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none",
|
|
296
|
+
"group-not-only:group-first:border-e-0 group-not-only:group-not-first:border-s-0"
|
|
297
|
+
].join(" ")
|
|
298
|
+
},
|
|
299
|
+
vertical: {
|
|
300
|
+
root: "group",
|
|
301
|
+
base: [
|
|
302
|
+
"focus-visible:outline-none",
|
|
303
|
+
"ring ring-inset ring-1 focus-visible:ring-2",
|
|
304
|
+
"group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
305
|
+
].join(" ")
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
noSplit: {
|
|
309
|
+
false: [
|
|
310
|
+
"group-not-only:not-first:after:content-[''] group-not-only:not-first:after:absolute",
|
|
311
|
+
"group-not-only:not-first:after:top-[7px] group-not-only:not-first:after:bottom-[6px] group-not-only:not-first:after:left-0 group-not-only:not-first:after:w-px",
|
|
312
|
+
"group-not-only:not-first:after:bg-current/30"
|
|
313
|
+
].join(" ")
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
const buttonGroup = {
|
|
317
|
+
base: "relative",
|
|
318
|
+
variants: {
|
|
319
|
+
size: {
|
|
320
|
+
xs: "",
|
|
321
|
+
sm: "",
|
|
322
|
+
md: "",
|
|
323
|
+
lg: ""
|
|
324
|
+
},
|
|
325
|
+
orientation: {
|
|
326
|
+
horizontal: "flex flex-row -space-x-px",
|
|
327
|
+
vertical: "flex flex-col -space-y-px"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
|
|
265
332
|
const badge = {
|
|
266
333
|
slots: {
|
|
267
334
|
base: [
|
|
@@ -279,6 +346,7 @@ const badge = {
|
|
|
279
346
|
trailingIcon: "shrink-0 cursor-pointer hover:rounded-full hover:bg-current/20 dark:hover:bg-current/35"
|
|
280
347
|
},
|
|
281
348
|
variants: {
|
|
349
|
+
...buttonGroupVariant,
|
|
282
350
|
useLink: {
|
|
283
351
|
true: {
|
|
284
352
|
base: "cursor-pointer",
|
|
@@ -370,8 +438,8 @@ const badge = {
|
|
|
370
438
|
depth: "normal",
|
|
371
439
|
class: [
|
|
372
440
|
"ring ring-inset",
|
|
373
|
-
"text-base-800 bg-base-150 ring-base-
|
|
374
|
-
"dark:text-base-950 dark:bg-base-200 dark:ring-base-
|
|
441
|
+
"text-base-800 bg-base-150 ring-base-300",
|
|
442
|
+
"dark:text-base-950 dark:bg-base-200 dark:ring-base-800"
|
|
375
443
|
].join(" ")
|
|
376
444
|
},
|
|
377
445
|
// LIGHT ////
|
|
@@ -626,6 +694,12 @@ const badge = {
|
|
|
626
694
|
{
|
|
627
695
|
useClose: true,
|
|
628
696
|
class: ""
|
|
697
|
+
},
|
|
698
|
+
// endregion ////
|
|
699
|
+
// region buttonGroup ////
|
|
700
|
+
{
|
|
701
|
+
buttonGroup: ["horizontal", "vertical"],
|
|
702
|
+
class: "rounded-2xs"
|
|
629
703
|
}
|
|
630
704
|
// endregion ////
|
|
631
705
|
],
|
|
@@ -637,72 +711,6 @@ const badge = {
|
|
|
637
711
|
}
|
|
638
712
|
};
|
|
639
713
|
|
|
640
|
-
const buttonGroupVariant = {
|
|
641
|
-
buttonGroup: {
|
|
642
|
-
horizontal: [
|
|
643
|
-
"focus-visible:outline-none",
|
|
644
|
-
"ring ring-inset ring-0 focus-visible:ring-2",
|
|
645
|
-
"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
|
|
646
|
-
"not-only:first:border-e-0 not-only:not-first:border-s-0"
|
|
647
|
-
].join(" "),
|
|
648
|
-
vertical: [
|
|
649
|
-
"focus-visible:outline-none",
|
|
650
|
-
"ring ring-inset ring-0 focus-visible:ring-2",
|
|
651
|
-
"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
|
|
652
|
-
].join(" ")
|
|
653
|
-
},
|
|
654
|
-
noSplit: {
|
|
655
|
-
false: [
|
|
656
|
-
"not-only:not-first:after:content-[''] not-only:not-first:after:absolute",
|
|
657
|
-
"not-only:not-first:after:top-[7px] not-only:not-first:after:bottom-[6px] not-only:not-first:after:left-0 not-only:not-first:after:w-px",
|
|
658
|
-
"not-only:not-first:after:bg-current/30"
|
|
659
|
-
].join(" ")
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
const buttonGroupVariantWithRoot = {
|
|
663
|
-
buttonGroup: {
|
|
664
|
-
horizontal: {
|
|
665
|
-
root: "group",
|
|
666
|
-
base: [
|
|
667
|
-
"focus-visible:outline-none",
|
|
668
|
-
"ring ring-inset ring-1 focus-visible:ring-2",
|
|
669
|
-
"group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none",
|
|
670
|
-
"group-not-only:group-first:border-e-0 group-not-only:group-not-first:border-s-0"
|
|
671
|
-
].join(" ")
|
|
672
|
-
},
|
|
673
|
-
vertical: {
|
|
674
|
-
root: "group",
|
|
675
|
-
base: [
|
|
676
|
-
"focus-visible:outline-none",
|
|
677
|
-
"ring ring-inset ring-1 focus-visible:ring-2",
|
|
678
|
-
"group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
679
|
-
].join(" ")
|
|
680
|
-
}
|
|
681
|
-
},
|
|
682
|
-
noSplit: {
|
|
683
|
-
false: [
|
|
684
|
-
"not-only:not-first:after:content-[''] not-only:not-first:after:absolute",
|
|
685
|
-
"not-only:not-first:after:top-[7px] not-only:not-first:after:bottom-[6px] not-only:not-first:after:left-0 not-only:not-first:after:w-px",
|
|
686
|
-
"not-only:not-first:after:bg-current/30"
|
|
687
|
-
].join(" ")
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
const buttonGroup = {
|
|
691
|
-
base: "relative",
|
|
692
|
-
variants: {
|
|
693
|
-
size: {
|
|
694
|
-
xs: "",
|
|
695
|
-
sm: "",
|
|
696
|
-
md: "",
|
|
697
|
-
lg: ""
|
|
698
|
-
},
|
|
699
|
-
orientation: {
|
|
700
|
-
horizontal: "inline-flex -space-x-px",
|
|
701
|
-
vertical: "flex flex-col -space-y-px"
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
|
|
706
714
|
const button = {
|
|
707
715
|
slots: {
|
|
708
716
|
base: [
|
|
@@ -2699,10 +2707,10 @@ const select = () => {
|
|
|
2699
2707
|
return defu.defuFn(
|
|
2700
2708
|
{
|
|
2701
2709
|
slots: {
|
|
2702
|
-
root: () => "relative inline-flex items-center
|
|
2710
|
+
root: () => "relative inline-flex items-center w-full",
|
|
2703
2711
|
base: () => [
|
|
2704
2712
|
"relative inline-flex items-center group",
|
|
2705
|
-
"
|
|
2713
|
+
"py-0 border-0 focus:outline-none",
|
|
2706
2714
|
"cursor-pointer disabled:cursor-not-allowed",
|
|
2707
2715
|
"disabled:bg-base-30/37 disabled:text-base-500",
|
|
2708
2716
|
"dark:disabled:bg-base-900/37 dark:disabled:text-base-800",
|
|
@@ -2712,7 +2720,7 @@ const select = () => {
|
|
|
2712
2720
|
"dark:ring-base-800",
|
|
2713
2721
|
"text-base-master bg-white hover:text-base-900 focus:text-base-900 active:text-base-900",
|
|
2714
2722
|
"dark:text-base-150 dark:bg-transparent dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350",
|
|
2715
|
-
"font-b24-primary font-regular text-sm",
|
|
2723
|
+
"font-b24-primary font-regular text-sm leading-none",
|
|
2716
2724
|
"align-middle",
|
|
2717
2725
|
"text-ellipsis whitespace-nowrap"
|
|
2718
2726
|
].join(" "),
|