vueless 0.0.623 → 0.0.625
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/package.json
CHANGED
package/ui.button/config.ts
CHANGED
|
@@ -64,8 +64,8 @@ export default /*tw*/ {
|
|
|
64
64
|
{
|
|
65
65
|
color: ["grayscale", "white"],
|
|
66
66
|
class: `
|
|
67
|
-
focus:ring-gray-
|
|
68
|
-
focus-within:ring-gray-
|
|
67
|
+
focus:ring-gray-700/15 dark:focus:ring-gray-500/15
|
|
68
|
+
focus-within:ring-gray-700/15 dark:focus-within:ring-gray-500/15
|
|
69
69
|
`,
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -93,9 +93,9 @@ export default /*tw*/ {
|
|
|
93
93
|
variant: "thirdary",
|
|
94
94
|
class: `
|
|
95
95
|
text-gray-900 dark:text-gray-100
|
|
96
|
-
hover:text-gray-800 hover:bg-gray-800/
|
|
97
|
-
focus:text-gray-800 focus:bg-gray-800/
|
|
98
|
-
active:text-gray-700 active:bg-gray-700/
|
|
96
|
+
hover:text-gray-800 hover:bg-gray-800/5 dark:hover:text-gray-200 dark:hover:bg-gray-200/5
|
|
97
|
+
focus:text-gray-800 focus:bg-gray-800/5 dark:focus:text-gray-200 dark:focus:bg-gray-200/5
|
|
98
|
+
active:text-gray-700 active:bg-gray-700/10 dark:active:text-gray-300 dark:active:bg-gray-300/10
|
|
99
99
|
`,
|
|
100
100
|
},
|
|
101
101
|
{
|
|
@@ -127,8 +127,8 @@ export default /*tw*/ {
|
|
|
127
127
|
variant: "thirdary",
|
|
128
128
|
class: "hover:bg-white/10 focus:bg-white/10 active:bg-white/15",
|
|
129
129
|
},
|
|
130
|
-
{ filled: true, variant: "thirdary", class: "bg-{color}-
|
|
131
|
-
{ filled: true, variant: "thirdary", color: ["grayscale", "white"], class: "bg-gray-
|
|
130
|
+
{ filled: true, variant: "thirdary", class: "bg-{color}-700/10 dark:bg-{color}-500/10" },
|
|
131
|
+
{ filled: true, variant: "thirdary", color: ["grayscale", "white"], class: "bg-gray-800/5 dark:bg-gray-200/5" },
|
|
132
132
|
{ rightIcon: true, size: "2xs", class: "pr-1" },
|
|
133
133
|
{ rightIcon: true, size: "xs", class: "pr-2" },
|
|
134
134
|
{ rightIcon: true, size: "sm", class: "pr-3" },
|
|
@@ -101,7 +101,7 @@ const { toggleButtonAttrs, toggleButtonActiveAttrs, toggleInputAttrs } = useUI<C
|
|
|
101
101
|
<UButton
|
|
102
102
|
:label="label"
|
|
103
103
|
tabindex="0"
|
|
104
|
-
|
|
104
|
+
color="brand"
|
|
105
105
|
:for="elementId"
|
|
106
106
|
:filled="getToggleSplit()"
|
|
107
107
|
:size="getToggleSize()"
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
toggleButton: {
|
|
3
|
-
base: "{UButton} font-normal",
|
|
3
|
+
base: "{UButton} font-normal text-gray-900",
|
|
4
4
|
defaults: {
|
|
5
5
|
variant: "thirdary",
|
|
6
6
|
},
|
|
7
7
|
},
|
|
8
8
|
toggleButtonActive: {
|
|
9
|
-
base: "{UButton}
|
|
9
|
+
base: "{UButton} font-normal !bg-{color}-600/15",
|
|
10
10
|
defaults: {
|
|
11
|
+
variant: "thirdary",
|
|
11
12
|
filled: true,
|
|
12
13
|
},
|
|
13
14
|
},
|
|
@@ -493,9 +493,9 @@ const {
|
|
|
493
493
|
>
|
|
494
494
|
<!--
|
|
495
495
|
@slot Use it to add something after caret.
|
|
496
|
-
@binding {object}
|
|
496
|
+
@binding {object} option
|
|
497
497
|
-->
|
|
498
|
-
<slot :
|
|
498
|
+
<slot :option="localValue" name="after-caret" />
|
|
499
499
|
</div>
|
|
500
500
|
|
|
501
501
|
<div
|
|
@@ -547,9 +547,9 @@ const {
|
|
|
547
547
|
>
|
|
548
548
|
<!--
|
|
549
549
|
@slot Use it to add something before caret.
|
|
550
|
-
@binding {object}
|
|
550
|
+
@binding {object} option
|
|
551
551
|
-->
|
|
552
|
-
<slot :
|
|
552
|
+
<slot :option="localValue" name="before-caret" />
|
|
553
553
|
</div>
|
|
554
554
|
|
|
555
555
|
<div ref="innerWrapperRef" v-bind="innerWrapperAttrs">
|
|
@@ -573,7 +573,7 @@ const {
|
|
|
573
573
|
</span>
|
|
574
574
|
|
|
575
575
|
<div v-if="multiple && localValue?.length" v-bind="selectedLabelsAttrs">
|
|
576
|
-
<
|
|
576
|
+
<div
|
|
577
577
|
v-for="item in localValue as Option[]"
|
|
578
578
|
:key="String(item[valueKey])"
|
|
579
579
|
v-bind="selectedLabelAttrs"
|
|
@@ -581,21 +581,22 @@ const {
|
|
|
581
581
|
<!--
|
|
582
582
|
@slot Use it to customise selected value label.
|
|
583
583
|
@binding {string} selected-label
|
|
584
|
+
@binding {object} option
|
|
584
585
|
-->
|
|
585
586
|
<slot
|
|
586
587
|
name="selected-label"
|
|
587
588
|
:selected-label="getOptionLabel(item)"
|
|
588
589
|
:value="item[valueKey]"
|
|
589
|
-
:
|
|
590
|
+
:option="item"
|
|
590
591
|
>
|
|
591
592
|
{{ getOptionLabel(item) }}
|
|
592
593
|
</slot>
|
|
593
594
|
|
|
594
595
|
<!--
|
|
595
596
|
@slot Use it to add something after selected value label.
|
|
596
|
-
@binding {object}
|
|
597
|
+
@binding {object} option
|
|
597
598
|
-->
|
|
598
|
-
<slot :
|
|
599
|
+
<slot :option="item" name="selected-label-after" />
|
|
599
600
|
|
|
600
601
|
<div
|
|
601
602
|
v-if="!disabled"
|
|
@@ -618,7 +619,7 @@ const {
|
|
|
618
619
|
/>
|
|
619
620
|
</slot>
|
|
620
621
|
</div>
|
|
621
|
-
</
|
|
622
|
+
</div>
|
|
622
623
|
</div>
|
|
623
624
|
|
|
624
625
|
<div v-bind="searchAttrs">
|
|
@@ -652,20 +653,22 @@ const {
|
|
|
652
653
|
@slot Use it to add selected value label.
|
|
653
654
|
@binding {string} selected-label
|
|
654
655
|
@binding {string} value
|
|
656
|
+
@binding {object} option
|
|
655
657
|
-->
|
|
656
658
|
<slot
|
|
657
659
|
name="selected-label"
|
|
658
660
|
:selected-label="selectedLabel"
|
|
659
661
|
:value="(localValue as Option)[valueKey]"
|
|
662
|
+
:option="localValue"
|
|
660
663
|
>
|
|
661
664
|
{{ selectedLabel }}
|
|
662
665
|
</slot>
|
|
663
666
|
|
|
664
667
|
<!--
|
|
665
668
|
@slot Use it to add something after selected value label.
|
|
666
|
-
@binding {object}
|
|
669
|
+
@binding {object} option
|
|
667
670
|
-->
|
|
668
|
-
<slot :
|
|
671
|
+
<slot :option="localValue" name="selected-label-after" />
|
|
669
672
|
</span>
|
|
670
673
|
|
|
671
674
|
<div
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.625",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -10119,7 +10119,7 @@
|
|
|
10119
10119
|
"bindings": [
|
|
10120
10120
|
{
|
|
10121
10121
|
"type": "object",
|
|
10122
|
-
"name": "
|
|
10122
|
+
"name": "option"
|
|
10123
10123
|
}
|
|
10124
10124
|
]
|
|
10125
10125
|
},
|
|
@@ -10156,7 +10156,7 @@
|
|
|
10156
10156
|
"bindings": [
|
|
10157
10157
|
{
|
|
10158
10158
|
"type": "object",
|
|
10159
|
-
"name": "
|
|
10159
|
+
"name": "option"
|
|
10160
10160
|
}
|
|
10161
10161
|
]
|
|
10162
10162
|
},
|
|
@@ -10187,6 +10187,10 @@
|
|
|
10187
10187
|
{
|
|
10188
10188
|
"type": "string",
|
|
10189
10189
|
"name": "value"
|
|
10190
|
+
},
|
|
10191
|
+
{
|
|
10192
|
+
"type": "object",
|
|
10193
|
+
"name": "option"
|
|
10190
10194
|
}
|
|
10191
10195
|
]
|
|
10192
10196
|
},
|
|
@@ -10197,7 +10201,7 @@
|
|
|
10197
10201
|
"bindings": [
|
|
10198
10202
|
{
|
|
10199
10203
|
"type": "object",
|
|
10200
|
-
"name": "
|
|
10204
|
+
"name": "option"
|
|
10201
10205
|
}
|
|
10202
10206
|
]
|
|
10203
10207
|
},
|