vueless 0.0.201 → 0.0.202

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.
Files changed (60) hide show
  1. package/composable.ui/index.js +3 -2
  2. package/package.json +2 -2
  3. package/ui.button-link/composables/attrs.composable.js +64 -130
  4. package/ui.button-link/index.stories.js +2 -4
  5. package/ui.button-link/index.vue +29 -4
  6. package/ui.button-toggle/composables/attrs.composable.js +21 -33
  7. package/ui.button-toggle/configs/default.config.js +2 -2
  8. package/ui.button-toggle/index.vue +8 -2
  9. package/ui.button-toggle-item/composables/attrs.composable.js +50 -40
  10. package/ui.button-toggle-item/configs/default.config.js +1 -1
  11. package/ui.button-toggle-item/index.stories.js +2 -4
  12. package/ui.button-toggle-item/index.vue +11 -3
  13. package/ui.dropdown-badge/composables/attrs.composable.js +45 -45
  14. package/ui.dropdown-badge/configs/default.config.js +3 -3
  15. package/ui.dropdown-badge/index.stories.js +2 -4
  16. package/ui.dropdown-badge/index.vue +8 -2
  17. package/ui.dropdown-button/composables/attrs.composable.js +45 -45
  18. package/ui.dropdown-button/configs/default.config.js +3 -3
  19. package/ui.dropdown-button/index.stories.js +2 -4
  20. package/ui.dropdown-button/index.vue +8 -2
  21. package/ui.dropdown-item/index.vue +7 -1
  22. package/ui.dropdown-link/composables/attrs.composable.js +43 -45
  23. package/ui.dropdown-link/configs/default.config.js +3 -3
  24. package/ui.dropdown-link/index.stories.js +2 -4
  25. package/ui.dropdown-link/index.vue +8 -2
  26. package/ui.dropdown-list/composables/attrs.composable.js +43 -67
  27. package/ui.dropdown-list/configs/default.config.js +2 -2
  28. package/ui.dropdown-list/index.vue +19 -3
  29. package/ui.form-calendar/components/DayView.vue +4 -4
  30. package/ui.form-calendar/composables/attrs.composable.js +5 -4
  31. package/ui.navigation-progress/components/StepperProgress.vue +87 -0
  32. package/ui.navigation-progress/composables/attrs.composable.js +33 -56
  33. package/ui.navigation-progress/configs/default.config.js +34 -1
  34. package/ui.navigation-progress/constants/index.js +5 -0
  35. package/ui.navigation-progress/index.stories.js +3 -0
  36. package/ui.navigation-progress/index.vue +55 -9
  37. package/ui.text-alert/composables/attrs.composable.js +23 -39
  38. package/ui.text-alert/configs/default.config.js +3 -3
  39. package/ui.text-alert/index.vue +19 -8
  40. package/ui.text-badge/composables/attrs.composable.js +25 -36
  41. package/ui.text-badge/index.stories.js +2 -4
  42. package/ui.text-badge/index.vue +22 -2
  43. package/ui.text-block/composables/attrs.composable.js +24 -20
  44. package/ui.text-block/index.vue +1 -1
  45. package/ui.text-empty/composables/attrs.composable.js +17 -27
  46. package/ui.text-empty/configs/default.config.js +1 -1
  47. package/ui.text-empty/index.stories.js +2 -4
  48. package/ui.text-empty/index.vue +1 -1
  49. package/ui.text-header/composables/attrs.composable.js +28 -22
  50. package/ui.text-header/index.stories.js +1 -1
  51. package/ui.text-header/index.vue +1 -1
  52. package/ui.text-money/composables/attrs.composable.js +21 -48
  53. package/ui.text-money/index.stories.js +2 -4
  54. package/web-types.json +181 -97
  55. package/ui.navigation-stepper/Docs.mdx +0 -16
  56. package/ui.navigation-stepper/composables/attrs.composable.js +0 -25
  57. package/ui.navigation-stepper/configs/default.config.js +0 -13
  58. package/ui.navigation-stepper/constants/index.js +0 -5
  59. package/ui.navigation-stepper/index.stories.js +0 -33
  60. package/ui.navigation-stepper/index.vue +0 -126
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.201",
4
+ "version": "0.0.202",
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": "update:modelValue"
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 before option.",
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
  ]
@@ -4915,25 +5019,30 @@
4915
5019
  ],
4916
5020
  "events": [
4917
5021
  {
4918
- "name": "click"
5022
+ "name": "click",
5023
+ "description": "Triggers when link is clicked."
4919
5024
  },
4920
5025
  {
4921
- "name": "mouseover"
5026
+ "name": "mouseover",
5027
+ "description": "Triggers when cursor is on the link."
4922
5028
  },
4923
5029
  {
4924
- "name": "focus"
5030
+ "name": "focus",
5031
+ "description": "Triggers when link is focused."
4925
5032
  },
4926
5033
  {
4927
- "name": "blur"
5034
+ "name": "blur",
5035
+ "description": "Triggers when link loses focus."
4928
5036
  },
4929
5037
  {
4930
- "name": "keydown"
5038
+ "name": "keydown",
5039
+ "description": "Triggers when link is clicked."
4931
5040
  }
4932
5041
  ],
4933
5042
  "slots": [
4934
5043
  {
4935
5044
  "name": "left",
4936
- "description": "Use it to add something before text."
5045
+ "description": "Use it to add something before the text."
4937
5046
  },
4938
5047
  {
4939
5048
  "name": "default",
@@ -4941,7 +5050,7 @@
4941
5050
  },
4942
5051
  {
4943
5052
  "name": "right",
4944
- "description": "Use it to add something after text."
5053
+ "description": "Use it to add something after the text."
4945
5054
  }
4946
5055
  ],
4947
5056
  "source": {
@@ -5901,6 +6010,15 @@
5901
6010
  },
5902
6011
  "default": "brand"
5903
6012
  },
6013
+ {
6014
+ "name": "variant",
6015
+ "description": "Progress variant.",
6016
+ "value": {
6017
+ "kind": "expression",
6018
+ "type": "'stepper' | 'progress'"
6019
+ },
6020
+ "default": "progress"
6021
+ },
5904
6022
  {
5905
6023
  "name": "indicator",
5906
6024
  "description": "Progress indicator visibility.",
@@ -5909,6 +6027,15 @@
5909
6027
  "type": "boolean"
5910
6028
  },
5911
6029
  "default": "false"
6030
+ },
6031
+ {
6032
+ "name": "dataCy",
6033
+ "description": "Sets data-cy attribute for automated testing.",
6034
+ "value": {
6035
+ "kind": "expression",
6036
+ "type": "string"
6037
+ },
6038
+ "default": "\"\""
5912
6039
  }
5913
6040
  ],
5914
6041
  "slots": [
@@ -6699,70 +6826,6 @@
6699
6826
  "symbol": "default"
6700
6827
  }
6701
6828
  },
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
6829
  {
6767
6830
  "name": "USwitch",
6768
6831
  "description": "",
@@ -7610,7 +7673,16 @@
7610
7673
  ],
7611
7674
  "events": [
7612
7675
  {
7613
- "name": "update:modelValue"
7676
+ "name": "update:modelValue",
7677
+ "description": "Triggers when toggle item is selected.",
7678
+ "properties": [
7679
+ {
7680
+ "type": [
7681
+ "string"
7682
+ ],
7683
+ "name": "modelValue"
7684
+ }
7685
+ ]
7614
7686
  }
7615
7687
  ],
7616
7688
  "slots": [
@@ -7694,18 +7766,30 @@
7694
7766
  ],
7695
7767
  "events": [
7696
7768
  {
7697
- "name": "update:modelValue"
7769
+ "name": "update:modelValue",
7770
+ "description": "Triggers when new value is set.",
7771
+ "properties": [
7772
+ {
7773
+ "type": [
7774
+ "string"
7775
+ ],
7776
+ "name": "modelValue"
7777
+ }
7778
+ ]
7698
7779
  }
7699
7780
  ],
7700
7781
  "slots": [
7701
7782
  {
7702
- "name": "left"
7783
+ "name": "left",
7784
+ "description": "Use it to add something before the text."
7703
7785
  },
7704
7786
  {
7705
- "name": "default"
7787
+ "name": "default",
7788
+ "description": "Use it to add something instead of the text."
7706
7789
  },
7707
7790
  {
7708
- "name": "right"
7791
+ "name": "right",
7792
+ "description": "Use it to add something after the text."
7709
7793
  }
7710
7794
  ],
7711
7795
  "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,5 +0,0 @@
1
- /*
2
- This const is needed to prevent the issue in script setup:
3
- `defineProps` is referencing locally declared variables. (vue/valid-define-props)
4
- */
5
- export const UStepper = "UStepper";
@@ -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 = {};
@@ -1,126 +0,0 @@
1
- <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs">
3
- <UHeader :label="title" size="xs" v-bind="titleAttrs" />
4
-
5
- <div v-bind="stepperAttrs">
6
- <svg width="100%" height="100%" viewBox="0 0 40 40" v-bind="svgAttrs">
7
- <defs>
8
- <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="0%" v-bind="gradientAttrs">
9
- <stop offset="0%" :stop-color="setStepperColor" />
10
- <stop offset="100%" :stop-color="setStepperColor" />
11
- </linearGradient>
12
- </defs>
13
-
14
- <circle
15
- cx="20"
16
- cy="20"
17
- r="15.91549430918954"
18
- fill="transparent"
19
- stroke-width="4"
20
- v-bind="ringAttrs"
21
- ></circle>
22
-
23
- <circle
24
- cx="20"
25
- cy="20"
26
- r="15.91549430918954"
27
- fill="transparent"
28
- stroke="url(#gradient)"
29
- stroke-width="4"
30
- :stroke-dasharray="fillPercentage"
31
- stroke-dashoffset="0"
32
- ></circle>
33
- <g v-bind="countAttrs">
34
- <text y="45%" transform="translate(0, 2)">
35
- <tspan x="50%" text-anchor="middle">{{ step }}</tspan>
36
- </text>
37
- </g>
38
- </svg>
39
- </div>
40
- </div>
41
- </template>
42
-
43
- <script setup>
44
- import { computed } from "vue";
45
- import colors from "tailwindcss/colors";
46
-
47
- import UHeader from "../ui.text-header";
48
- import UIService from "../service.ui";
49
- import { GRAY_COLORS } from "../preset.tailwind/constants";
50
-
51
- import { UStepper } from "./constants/index";
52
- import defaultConfig from "./configs/default.config";
53
- import { useAttrs } from "./composables/attrs.composable";
54
-
55
- /* Should be a string for correct web-types gen */
56
- defineOptions({ name: "UStepper", inheritAttrs: false });
57
-
58
- const props = defineProps({
59
- /**
60
- * Set component title.
61
- */
62
- title: {
63
- type: String,
64
- default: "",
65
- },
66
-
67
- /**
68
- * Set step number.
69
- */
70
- step: {
71
- type: Number,
72
- default: UIService.get(defaultConfig, UStepper).default.step,
73
- },
74
-
75
- /**
76
- * Icon color.
77
- * @values brand, grayscale, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, white
78
- */
79
- color: {
80
- type: String,
81
- default: UIService.get(defaultConfig, UStepper).default.color,
82
- },
83
-
84
- /**
85
- * Set total number of steps.
86
- */
87
- totalSteps: {
88
- type: Number,
89
- default: null,
90
- },
91
-
92
- /**
93
- * Component ui config object.
94
- */
95
- config: {
96
- type: Object,
97
- default: () => ({}),
98
- },
99
-
100
- /**
101
- * Sets data-cy attribute for automated testing.
102
- */
103
- dataCy: {
104
- type: String,
105
- default: "",
106
- },
107
- });
108
-
109
- const { wrapperAttrs, titleAttrs, stepperAttrs, ringAttrs, countAttrs, gradientAttrs, svgAttrs } =
110
- useAttrs(props);
111
-
112
- const setStepperColor = computed(() => {
113
- return colors[props.color]
114
- ? colors[props.color][500]
115
- : GRAY_COLORS.includes(props.color)
116
- ? colors[props.color][900]
117
- : colors.zinc[900];
118
- });
119
-
120
- const fillPercentage = computed(() => {
121
- const maxCountPercent = 100;
122
- const activePercent = (props.step / props.totalSteps) * maxCountPercent;
123
-
124
- return `${activePercent} ${maxCountPercent}`;
125
- });
126
- </script>