vueless 0.0.201 → 0.0.203
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/composable.ui/index.js +3 -2
- package/package.json +2 -2
- package/ui.button-link/composables/attrs.composable.js +64 -130
- package/ui.button-link/index.stories.js +2 -4
- package/ui.button-link/index.vue +29 -4
- package/ui.button-toggle/composables/attrs.composable.js +21 -33
- package/ui.button-toggle/configs/default.config.js +2 -2
- package/ui.button-toggle/index.vue +8 -2
- package/ui.button-toggle-item/composables/attrs.composable.js +50 -40
- package/ui.button-toggle-item/configs/default.config.js +1 -1
- package/ui.button-toggle-item/index.stories.js +2 -4
- package/ui.button-toggle-item/index.vue +11 -3
- package/ui.dropdown-badge/composables/attrs.composable.js +45 -45
- package/ui.dropdown-badge/configs/default.config.js +3 -3
- package/ui.dropdown-badge/index.stories.js +2 -4
- package/ui.dropdown-badge/index.vue +8 -2
- package/ui.dropdown-button/composables/attrs.composable.js +45 -45
- package/ui.dropdown-button/configs/default.config.js +3 -3
- package/ui.dropdown-button/index.stories.js +2 -4
- package/ui.dropdown-button/index.vue +8 -2
- package/ui.dropdown-item/index.vue +7 -1
- package/ui.dropdown-link/composables/attrs.composable.js +43 -45
- package/ui.dropdown-link/configs/default.config.js +3 -3
- package/ui.dropdown-link/index.stories.js +2 -4
- package/ui.dropdown-link/index.vue +8 -2
- package/ui.dropdown-list/composables/attrs.composable.js +43 -67
- package/ui.dropdown-list/configs/default.config.js +2 -2
- package/ui.dropdown-list/index.vue +19 -3
- package/ui.form-calendar/components/DayView.vue +4 -4
- package/ui.form-calendar/composables/attrs.composable.js +5 -4
- package/ui.navigation-progress/components/StepperProgress.vue +87 -0
- package/ui.navigation-progress/composables/attrs.composable.js +33 -56
- package/ui.navigation-progress/configs/default.config.js +34 -1
- package/ui.navigation-progress/constants/index.js +5 -0
- package/ui.navigation-progress/index.stories.js +3 -0
- package/ui.navigation-progress/index.vue +55 -9
- package/ui.text-alert/composables/attrs.composable.js +23 -39
- package/ui.text-alert/configs/default.config.js +3 -3
- package/ui.text-alert/index.vue +19 -8
- package/ui.text-badge/composables/attrs.composable.js +25 -36
- package/ui.text-badge/index.stories.js +2 -4
- package/ui.text-badge/index.vue +22 -2
- package/ui.text-block/composables/attrs.composable.js +24 -20
- package/ui.text-block/index.vue +1 -1
- package/ui.text-empty/composables/attrs.composable.js +17 -27
- package/ui.text-empty/configs/default.config.js +1 -1
- package/ui.text-empty/index.stories.js +2 -4
- package/ui.text-empty/index.vue +1 -1
- package/ui.text-file/composables/attrs.composable.js +23 -27
- package/ui.text-file/configs/default.config.js +2 -2
- package/ui.text-file/index.vue +1 -1
- package/ui.text-files/composables/attrs.composable.js +21 -15
- package/ui.text-files/configs/default.config.js +1 -1
- package/ui.text-files/index.vue +7 -3
- package/ui.text-header/composables/attrs.composable.js +28 -22
- package/ui.text-header/index.stories.js +1 -1
- package/ui.text-header/index.vue +1 -1
- package/ui.text-money/composables/attrs.composable.js +21 -48
- package/ui.text-money/index.stories.js +2 -4
- package/ui.text-notify/composables/attrs.composable.js +23 -21
- package/ui.text-notify/index.vue +1 -1
- package/web-types.json +183 -97
- package/ui.navigation-stepper/Docs.mdx +0 -16
- package/ui.navigation-stepper/composables/attrs.composable.js +0 -25
- package/ui.navigation-stepper/configs/default.config.js +0 -13
- package/ui.navigation-stepper/constants/index.js +0 -5
- package/ui.navigation-stepper/index.stories.js +0 -33
- package/ui.navigation-stepper/index.vue +0 -126
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import useUI from "../../composable.ui";
|
|
2
|
-
|
|
2
|
+
import { computed } from "vue";
|
|
3
3
|
import defaultConfig from "../configs/default.config";
|
|
4
|
+
import { cva } from "../../service.ui";
|
|
5
|
+
|
|
6
|
+
export default function useAttrs(props) {
|
|
7
|
+
const { config, getAttrs, isSystemKey } = useUI(defaultConfig, () => props.config);
|
|
8
|
+
const attrs = {};
|
|
9
|
+
|
|
10
|
+
for (const key in defaultConfig) {
|
|
11
|
+
if (isSystemKey(key)) continue;
|
|
12
|
+
|
|
13
|
+
const classes = computed(() => {
|
|
14
|
+
const value = config.value[key];
|
|
15
|
+
|
|
16
|
+
if (value.variants || value.compoundVariants) {
|
|
17
|
+
return cva(value)({
|
|
18
|
+
...props,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
4
21
|
|
|
5
|
-
|
|
6
|
-
|
|
22
|
+
return "";
|
|
23
|
+
});
|
|
7
24
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const contentAttrs = getAttrs("content");
|
|
11
|
-
const labelAttrs = getAttrs("label");
|
|
12
|
-
const descriptionAttrs = getAttrs("description");
|
|
13
|
-
const successIconAttrs = getAttrs("successIcon");
|
|
14
|
-
const warningIconAttrs = getAttrs("warningIcon");
|
|
15
|
-
const errorIconAttrs = getAttrs("errorIcon");
|
|
16
|
-
const closeIconAttrs = getAttrs("closeIcon");
|
|
25
|
+
attrs[`${key}Attrs`] = getAttrs(key, { classes });
|
|
26
|
+
}
|
|
17
27
|
|
|
18
28
|
return {
|
|
29
|
+
...attrs,
|
|
19
30
|
config,
|
|
20
|
-
wrapperAttrs,
|
|
21
|
-
bodyAttrs,
|
|
22
|
-
contentAttrs,
|
|
23
|
-
labelAttrs,
|
|
24
|
-
descriptionAttrs,
|
|
25
|
-
successIconAttrs,
|
|
26
|
-
warningIconAttrs,
|
|
27
|
-
errorIconAttrs,
|
|
28
|
-
closeIconAttrs,
|
|
29
31
|
};
|
|
30
32
|
}
|
package/ui.text-notify/index.vue
CHANGED
|
@@ -83,7 +83,7 @@ import { merge } from "lodash-es";
|
|
|
83
83
|
import UIService, { globalComponentConfig, cx } from "../service.ui";
|
|
84
84
|
|
|
85
85
|
import { useLocale } from "../composable.locale";
|
|
86
|
-
import
|
|
86
|
+
import useAttrs from "./composables/attrs.composable";
|
|
87
87
|
|
|
88
88
|
import defaultConfig from "./configs/default.config";
|
|
89
89
|
import { UNotify, NOTIFY_TYPE, POSITION } from "./constants";
|
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.203",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -181,6 +181,64 @@
|
|
|
181
181
|
"symbol": "default"
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
+
{
|
|
185
|
+
"name": "StepperProgress",
|
|
186
|
+
"description": "",
|
|
187
|
+
"attributes": [
|
|
188
|
+
{
|
|
189
|
+
"name": "progressPercent",
|
|
190
|
+
"required": true,
|
|
191
|
+
"value": {
|
|
192
|
+
"kind": "expression",
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "value",
|
|
198
|
+
"required": true,
|
|
199
|
+
"value": {
|
|
200
|
+
"kind": "expression",
|
|
201
|
+
"type": "number"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "color",
|
|
206
|
+
"required": true,
|
|
207
|
+
"value": {
|
|
208
|
+
"kind": "expression",
|
|
209
|
+
"type": "string"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "max",
|
|
214
|
+
"value": {
|
|
215
|
+
"kind": "expression",
|
|
216
|
+
"type": "number"
|
|
217
|
+
},
|
|
218
|
+
"default": "null"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "config",
|
|
222
|
+
"value": {
|
|
223
|
+
"kind": "expression",
|
|
224
|
+
"type": "object"
|
|
225
|
+
},
|
|
226
|
+
"default": "{}"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "dataCy",
|
|
230
|
+
"value": {
|
|
231
|
+
"kind": "expression",
|
|
232
|
+
"type": "string"
|
|
233
|
+
},
|
|
234
|
+
"default": "\"\""
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"source": {
|
|
238
|
+
"module": "./src/ui.navigation-progress/components/StepperProgress.vue",
|
|
239
|
+
"symbol": "default"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
184
242
|
{
|
|
185
243
|
"name": "TableRow",
|
|
186
244
|
"description": "",
|
|
@@ -454,19 +512,22 @@
|
|
|
454
512
|
],
|
|
455
513
|
"events": [
|
|
456
514
|
{
|
|
457
|
-
"name": "hidden"
|
|
515
|
+
"name": "hidden",
|
|
516
|
+
"description": "Triggers when the alert is hidden."
|
|
458
517
|
}
|
|
459
518
|
],
|
|
460
519
|
"slots": [
|
|
461
520
|
{
|
|
462
521
|
"name": "top",
|
|
463
|
-
"description": "Use it to add something above text."
|
|
522
|
+
"description": "Use it to add something above the text."
|
|
464
523
|
},
|
|
465
524
|
{
|
|
466
525
|
"name": "title",
|
|
467
526
|
"scoped": true,
|
|
527
|
+
"description": "Use it to add something instead of the title.",
|
|
468
528
|
"bindings": [
|
|
469
529
|
{
|
|
530
|
+
"type": "string",
|
|
470
531
|
"name": "title"
|
|
471
532
|
}
|
|
472
533
|
]
|
|
@@ -477,13 +538,14 @@
|
|
|
477
538
|
"description": "Use it to add something instead of the description.",
|
|
478
539
|
"bindings": [
|
|
479
540
|
{
|
|
541
|
+
"type": "string",
|
|
480
542
|
"name": "description"
|
|
481
543
|
}
|
|
482
544
|
]
|
|
483
545
|
},
|
|
484
546
|
{
|
|
485
547
|
"name": "left",
|
|
486
|
-
"description": "Use it to add something before text."
|
|
548
|
+
"description": "Use it to add something before the text."
|
|
487
549
|
},
|
|
488
550
|
{
|
|
489
551
|
"name": "default",
|
|
@@ -491,11 +553,11 @@
|
|
|
491
553
|
},
|
|
492
554
|
{
|
|
493
555
|
"name": "right",
|
|
494
|
-
"description": "Use it to add something after text."
|
|
556
|
+
"description": "Use it to add something after the text."
|
|
495
557
|
},
|
|
496
558
|
{
|
|
497
559
|
"name": "bottom",
|
|
498
|
-
"description": "Use it to add something under text."
|
|
560
|
+
"description": "Use it to add something under the text."
|
|
499
561
|
}
|
|
500
562
|
],
|
|
501
563
|
"source": {
|
|
@@ -670,16 +732,20 @@
|
|
|
670
732
|
],
|
|
671
733
|
"events": [
|
|
672
734
|
{
|
|
673
|
-
"name": "focus"
|
|
735
|
+
"name": "focus",
|
|
736
|
+
"description": "Triggers when the badge is focused."
|
|
674
737
|
},
|
|
675
738
|
{
|
|
676
|
-
"name": "keydown"
|
|
739
|
+
"name": "keydown",
|
|
740
|
+
"description": "Triggers when the badge is pressed."
|
|
677
741
|
},
|
|
678
742
|
{
|
|
679
|
-
"name": "blur"
|
|
743
|
+
"name": "blur",
|
|
744
|
+
"description": "Triggers when the badge loses focus."
|
|
680
745
|
},
|
|
681
746
|
{
|
|
682
|
-
"name": "click"
|
|
747
|
+
"name": "click",
|
|
748
|
+
"description": "Triggers when the badge is clicked."
|
|
683
749
|
}
|
|
684
750
|
],
|
|
685
751
|
"slots": [
|
|
@@ -2437,7 +2503,16 @@
|
|
|
2437
2503
|
],
|
|
2438
2504
|
"events": [
|
|
2439
2505
|
{
|
|
2440
|
-
"name": "select"
|
|
2506
|
+
"name": "select",
|
|
2507
|
+
"description": "Triggers when dropdown option is selected.",
|
|
2508
|
+
"properties": [
|
|
2509
|
+
{
|
|
2510
|
+
"type": [
|
|
2511
|
+
"string"
|
|
2512
|
+
],
|
|
2513
|
+
"name": "value"
|
|
2514
|
+
}
|
|
2515
|
+
]
|
|
2441
2516
|
}
|
|
2442
2517
|
],
|
|
2443
2518
|
"slots": [
|
|
@@ -2620,7 +2695,16 @@
|
|
|
2620
2695
|
],
|
|
2621
2696
|
"events": [
|
|
2622
2697
|
{
|
|
2623
|
-
"name": "select"
|
|
2698
|
+
"name": "select",
|
|
2699
|
+
"description": "Triggers when dropdown option is selected.",
|
|
2700
|
+
"properties": [
|
|
2701
|
+
{
|
|
2702
|
+
"type": [
|
|
2703
|
+
"string"
|
|
2704
|
+
],
|
|
2705
|
+
"name": "value"
|
|
2706
|
+
}
|
|
2707
|
+
]
|
|
2624
2708
|
}
|
|
2625
2709
|
],
|
|
2626
2710
|
"slots": [
|
|
@@ -2668,7 +2752,16 @@
|
|
|
2668
2752
|
],
|
|
2669
2753
|
"events": [
|
|
2670
2754
|
{
|
|
2671
|
-
"name": "click"
|
|
2755
|
+
"name": "click",
|
|
2756
|
+
"description": "Triggers when dropdown item is clicked.",
|
|
2757
|
+
"properties": [
|
|
2758
|
+
{
|
|
2759
|
+
"type": [
|
|
2760
|
+
"string"
|
|
2761
|
+
],
|
|
2762
|
+
"name": "value"
|
|
2763
|
+
}
|
|
2764
|
+
]
|
|
2672
2765
|
}
|
|
2673
2766
|
],
|
|
2674
2767
|
"slots": [
|
|
@@ -2831,7 +2924,16 @@
|
|
|
2831
2924
|
],
|
|
2832
2925
|
"events": [
|
|
2833
2926
|
{
|
|
2834
|
-
"name": "select"
|
|
2927
|
+
"name": "select",
|
|
2928
|
+
"description": "Triggers when dropdown option is selected.",
|
|
2929
|
+
"properties": [
|
|
2930
|
+
{
|
|
2931
|
+
"type": [
|
|
2932
|
+
"string"
|
|
2933
|
+
],
|
|
2934
|
+
"name": "value"
|
|
2935
|
+
}
|
|
2936
|
+
]
|
|
2835
2937
|
}
|
|
2836
2938
|
],
|
|
2837
2939
|
"slots": [
|
|
@@ -2950,19 +3052,18 @@
|
|
|
2950
3052
|
],
|
|
2951
3053
|
"events": [
|
|
2952
3054
|
{
|
|
2953
|
-
"name": "
|
|
2954
|
-
|
|
2955
|
-
{
|
|
2956
|
-
"name": "addOption"
|
|
3055
|
+
"name": "addOption",
|
|
3056
|
+
"description": "Triggers when option is added."
|
|
2957
3057
|
}
|
|
2958
3058
|
],
|
|
2959
3059
|
"slots": [
|
|
2960
3060
|
{
|
|
2961
3061
|
"name": "before-option",
|
|
2962
3062
|
"scoped": true,
|
|
2963
|
-
"description": "Use it to add something before option.",
|
|
3063
|
+
"description": "Use it to add something before the option.",
|
|
2964
3064
|
"bindings": [
|
|
2965
3065
|
{
|
|
3066
|
+
"type": "other",
|
|
2966
3067
|
"name": "option"
|
|
2967
3068
|
}
|
|
2968
3069
|
]
|
|
@@ -2970,12 +3071,14 @@
|
|
|
2970
3071
|
{
|
|
2971
3072
|
"name": "option",
|
|
2972
3073
|
"scoped": true,
|
|
2973
|
-
"description": "Use it to add something
|
|
3074
|
+
"description": "Use it to add something instead of the option.",
|
|
2974
3075
|
"bindings": [
|
|
2975
3076
|
{
|
|
3077
|
+
"type": "other",
|
|
2976
3078
|
"name": "option"
|
|
2977
3079
|
},
|
|
2978
3080
|
{
|
|
3081
|
+
"type": "number",
|
|
2979
3082
|
"name": "index"
|
|
2980
3083
|
}
|
|
2981
3084
|
]
|
|
@@ -2983,9 +3086,10 @@
|
|
|
2983
3086
|
{
|
|
2984
3087
|
"name": "after-option",
|
|
2985
3088
|
"scoped": true,
|
|
2986
|
-
"description": "Use it to add something after option.",
|
|
3089
|
+
"description": "Use it to add something after the option.",
|
|
2987
3090
|
"bindings": [
|
|
2988
3091
|
{
|
|
3092
|
+
"type": "other",
|
|
2989
3093
|
"name": "option"
|
|
2990
3094
|
}
|
|
2991
3095
|
]
|
|
@@ -3227,6 +3331,7 @@
|
|
|
3227
3331
|
"description": "Use it to add something left.",
|
|
3228
3332
|
"bindings": [
|
|
3229
3333
|
{
|
|
3334
|
+
"type": "object",
|
|
3230
3335
|
"name": "file"
|
|
3231
3336
|
}
|
|
3232
3337
|
]
|
|
@@ -3237,6 +3342,7 @@
|
|
|
3237
3342
|
"description": "Use it to add something right.",
|
|
3238
3343
|
"bindings": [
|
|
3239
3344
|
{
|
|
3345
|
+
"type": "object",
|
|
3240
3346
|
"name": "file"
|
|
3241
3347
|
}
|
|
3242
3348
|
]
|
|
@@ -4915,25 +5021,30 @@
|
|
|
4915
5021
|
],
|
|
4916
5022
|
"events": [
|
|
4917
5023
|
{
|
|
4918
|
-
"name": "click"
|
|
5024
|
+
"name": "click",
|
|
5025
|
+
"description": "Triggers when link is clicked."
|
|
4919
5026
|
},
|
|
4920
5027
|
{
|
|
4921
|
-
"name": "mouseover"
|
|
5028
|
+
"name": "mouseover",
|
|
5029
|
+
"description": "Triggers when cursor is on the link."
|
|
4922
5030
|
},
|
|
4923
5031
|
{
|
|
4924
|
-
"name": "focus"
|
|
5032
|
+
"name": "focus",
|
|
5033
|
+
"description": "Triggers when link is focused."
|
|
4925
5034
|
},
|
|
4926
5035
|
{
|
|
4927
|
-
"name": "blur"
|
|
5036
|
+
"name": "blur",
|
|
5037
|
+
"description": "Triggers when link loses focus."
|
|
4928
5038
|
},
|
|
4929
5039
|
{
|
|
4930
|
-
"name": "keydown"
|
|
5040
|
+
"name": "keydown",
|
|
5041
|
+
"description": "Triggers when link is clicked."
|
|
4931
5042
|
}
|
|
4932
5043
|
],
|
|
4933
5044
|
"slots": [
|
|
4934
5045
|
{
|
|
4935
5046
|
"name": "left",
|
|
4936
|
-
"description": "Use it to add something before text."
|
|
5047
|
+
"description": "Use it to add something before the text."
|
|
4937
5048
|
},
|
|
4938
5049
|
{
|
|
4939
5050
|
"name": "default",
|
|
@@ -4941,7 +5052,7 @@
|
|
|
4941
5052
|
},
|
|
4942
5053
|
{
|
|
4943
5054
|
"name": "right",
|
|
4944
|
-
"description": "Use it to add something after text."
|
|
5055
|
+
"description": "Use it to add something after the text."
|
|
4945
5056
|
}
|
|
4946
5057
|
],
|
|
4947
5058
|
"source": {
|
|
@@ -5901,6 +6012,15 @@
|
|
|
5901
6012
|
},
|
|
5902
6013
|
"default": "brand"
|
|
5903
6014
|
},
|
|
6015
|
+
{
|
|
6016
|
+
"name": "variant",
|
|
6017
|
+
"description": "Progress variant.",
|
|
6018
|
+
"value": {
|
|
6019
|
+
"kind": "expression",
|
|
6020
|
+
"type": "'stepper' | 'progress'"
|
|
6021
|
+
},
|
|
6022
|
+
"default": "progress"
|
|
6023
|
+
},
|
|
5904
6024
|
{
|
|
5905
6025
|
"name": "indicator",
|
|
5906
6026
|
"description": "Progress indicator visibility.",
|
|
@@ -5909,6 +6029,15 @@
|
|
|
5909
6029
|
"type": "boolean"
|
|
5910
6030
|
},
|
|
5911
6031
|
"default": "false"
|
|
6032
|
+
},
|
|
6033
|
+
{
|
|
6034
|
+
"name": "dataCy",
|
|
6035
|
+
"description": "Sets data-cy attribute for automated testing.",
|
|
6036
|
+
"value": {
|
|
6037
|
+
"kind": "expression",
|
|
6038
|
+
"type": "string"
|
|
6039
|
+
},
|
|
6040
|
+
"default": "\"\""
|
|
5912
6041
|
}
|
|
5913
6042
|
],
|
|
5914
6043
|
"slots": [
|
|
@@ -6699,70 +6828,6 @@
|
|
|
6699
6828
|
"symbol": "default"
|
|
6700
6829
|
}
|
|
6701
6830
|
},
|
|
6702
|
-
{
|
|
6703
|
-
"name": "UStepper",
|
|
6704
|
-
"description": "",
|
|
6705
|
-
"attributes": [
|
|
6706
|
-
{
|
|
6707
|
-
"name": "title",
|
|
6708
|
-
"description": "Set component title.",
|
|
6709
|
-
"value": {
|
|
6710
|
-
"kind": "expression",
|
|
6711
|
-
"type": "string"
|
|
6712
|
-
},
|
|
6713
|
-
"default": "\"\""
|
|
6714
|
-
},
|
|
6715
|
-
{
|
|
6716
|
-
"name": "step",
|
|
6717
|
-
"description": "Set step number.",
|
|
6718
|
-
"value": {
|
|
6719
|
-
"kind": "expression",
|
|
6720
|
-
"type": "number"
|
|
6721
|
-
},
|
|
6722
|
-
"default": "1"
|
|
6723
|
-
},
|
|
6724
|
-
{
|
|
6725
|
-
"name": "color",
|
|
6726
|
-
"description": "Icon color.",
|
|
6727
|
-
"value": {
|
|
6728
|
-
"kind": "expression",
|
|
6729
|
-
"type": "'brand' | 'grayscale' | 'gray' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'white'"
|
|
6730
|
-
},
|
|
6731
|
-
"default": "brand"
|
|
6732
|
-
},
|
|
6733
|
-
{
|
|
6734
|
-
"name": "totalSteps",
|
|
6735
|
-
"description": "Set total number of steps.",
|
|
6736
|
-
"value": {
|
|
6737
|
-
"kind": "expression",
|
|
6738
|
-
"type": "number"
|
|
6739
|
-
},
|
|
6740
|
-
"default": "null"
|
|
6741
|
-
},
|
|
6742
|
-
{
|
|
6743
|
-
"name": "config",
|
|
6744
|
-
"description": "Component ui config object.",
|
|
6745
|
-
"value": {
|
|
6746
|
-
"kind": "expression",
|
|
6747
|
-
"type": "object"
|
|
6748
|
-
},
|
|
6749
|
-
"default": "{}"
|
|
6750
|
-
},
|
|
6751
|
-
{
|
|
6752
|
-
"name": "dataCy",
|
|
6753
|
-
"description": "Sets data-cy attribute for automated testing.",
|
|
6754
|
-
"value": {
|
|
6755
|
-
"kind": "expression",
|
|
6756
|
-
"type": "string"
|
|
6757
|
-
},
|
|
6758
|
-
"default": "\"\""
|
|
6759
|
-
}
|
|
6760
|
-
],
|
|
6761
|
-
"source": {
|
|
6762
|
-
"module": "./src/ui.navigation-stepper/index.vue",
|
|
6763
|
-
"symbol": "default"
|
|
6764
|
-
}
|
|
6765
|
-
},
|
|
6766
6831
|
{
|
|
6767
6832
|
"name": "USwitch",
|
|
6768
6833
|
"description": "",
|
|
@@ -7610,7 +7675,16 @@
|
|
|
7610
7675
|
],
|
|
7611
7676
|
"events": [
|
|
7612
7677
|
{
|
|
7613
|
-
"name": "update:modelValue"
|
|
7678
|
+
"name": "update:modelValue",
|
|
7679
|
+
"description": "Triggers when toggle item is selected.",
|
|
7680
|
+
"properties": [
|
|
7681
|
+
{
|
|
7682
|
+
"type": [
|
|
7683
|
+
"string"
|
|
7684
|
+
],
|
|
7685
|
+
"name": "modelValue"
|
|
7686
|
+
}
|
|
7687
|
+
]
|
|
7614
7688
|
}
|
|
7615
7689
|
],
|
|
7616
7690
|
"slots": [
|
|
@@ -7694,18 +7768,30 @@
|
|
|
7694
7768
|
],
|
|
7695
7769
|
"events": [
|
|
7696
7770
|
{
|
|
7697
|
-
"name": "update:modelValue"
|
|
7771
|
+
"name": "update:modelValue",
|
|
7772
|
+
"description": "Triggers when new value is set.",
|
|
7773
|
+
"properties": [
|
|
7774
|
+
{
|
|
7775
|
+
"type": [
|
|
7776
|
+
"string"
|
|
7777
|
+
],
|
|
7778
|
+
"name": "modelValue"
|
|
7779
|
+
}
|
|
7780
|
+
]
|
|
7698
7781
|
}
|
|
7699
7782
|
],
|
|
7700
7783
|
"slots": [
|
|
7701
7784
|
{
|
|
7702
|
-
"name": "left"
|
|
7785
|
+
"name": "left",
|
|
7786
|
+
"description": "Use it to add something before the text."
|
|
7703
7787
|
},
|
|
7704
7788
|
{
|
|
7705
|
-
"name": "default"
|
|
7789
|
+
"name": "default",
|
|
7790
|
+
"description": "Use it to add something instead of the text."
|
|
7706
7791
|
},
|
|
7707
7792
|
{
|
|
7708
|
-
"name": "right"
|
|
7793
|
+
"name": "right",
|
|
7794
|
+
"description": "Use it to add something after the text."
|
|
7709
7795
|
}
|
|
7710
7796
|
],
|
|
7711
7797
|
"source": {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "../service.storybook";
|
|
3
|
-
|
|
4
|
-
import * as stories from "./index.stories";
|
|
5
|
-
import defaultConfig from "./configs/default.config?raw"
|
|
6
|
-
|
|
7
|
-
<Meta of={stories} />
|
|
8
|
-
<Title of={stories} />
|
|
9
|
-
<Subtitle of={stories} />
|
|
10
|
-
<Description of={stories} />
|
|
11
|
-
<Primary of={stories} />
|
|
12
|
-
<Controls of={stories.Default} />
|
|
13
|
-
<Stories of={stories} />
|
|
14
|
-
|
|
15
|
-
## Default config
|
|
16
|
-
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import useUI from "../../composable.ui";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "../configs/default.config";
|
|
4
|
-
|
|
5
|
-
export function useAttrs(props) {
|
|
6
|
-
const { getAttrs } = useUI(defaultConfig, () => props.config);
|
|
7
|
-
|
|
8
|
-
const wrapperAttrs = getAttrs("wrapper");
|
|
9
|
-
const stepperAttrs = getAttrs("stepper");
|
|
10
|
-
const titleAttrs = getAttrs("title", { isComponent: true });
|
|
11
|
-
const ringAttrs = getAttrs("ring");
|
|
12
|
-
const countAttrs = getAttrs("count");
|
|
13
|
-
const gradientAttrs = getAttrs("gradient");
|
|
14
|
-
const svgAttrs = getAttrs("svg");
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
wrapperAttrs,
|
|
18
|
-
titleAttrs,
|
|
19
|
-
stepperAttrs,
|
|
20
|
-
ringAttrs,
|
|
21
|
-
countAttrs,
|
|
22
|
-
gradientAttrs,
|
|
23
|
-
svgAttrs,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default /*tw*/ {
|
|
2
|
-
wrapper: "flex items-center justify-between",
|
|
3
|
-
stepper: "h-12 w-12",
|
|
4
|
-
ring: "stroke-current text-gray-100",
|
|
5
|
-
count: "text-xl font-bold text-gray-900 translate-y-2 transform",
|
|
6
|
-
title: "",
|
|
7
|
-
gradient: "",
|
|
8
|
-
svg: "",
|
|
9
|
-
defaultVariants: {
|
|
10
|
-
step: 1,
|
|
11
|
-
color: "brand",
|
|
12
|
-
},
|
|
13
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { getArgTypes } from "../service.storybook";
|
|
2
|
-
|
|
3
|
-
import UStepper from "../ui.navigation-stepper";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The `UStepper` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.navigation-stepper)
|
|
7
|
-
*/
|
|
8
|
-
export default {
|
|
9
|
-
id: "8030",
|
|
10
|
-
title: "Navigation / Stepper",
|
|
11
|
-
component: UStepper,
|
|
12
|
-
args: {
|
|
13
|
-
title: "Title",
|
|
14
|
-
step: 1,
|
|
15
|
-
totalSteps: 10,
|
|
16
|
-
},
|
|
17
|
-
argTypes: {
|
|
18
|
-
...getArgTypes(UStepper.name),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const DefaultTemplate = (args) => ({
|
|
23
|
-
components: { UStepper },
|
|
24
|
-
setup() {
|
|
25
|
-
return { args };
|
|
26
|
-
},
|
|
27
|
-
template: `
|
|
28
|
-
<UStepper v-bind="args" />
|
|
29
|
-
`,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export const Default = DefaultTemplate.bind({});
|
|
33
|
-
Default.args = {};
|