vueless 0.0.237 → 0.0.239

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 (39) hide show
  1. package/package.json +2 -2
  2. package/ui.button/index.stories.js +4 -4
  3. package/ui.container-col/Docs.mdx +16 -0
  4. package/ui.container-col/composables/attrs.composable.js +33 -0
  5. package/ui.container-col/configs/default.config.js +46 -0
  6. package/ui.container-col/constants/index.js +5 -0
  7. package/ui.container-col/index.stories.js +64 -0
  8. package/ui.container-col/index.vue +80 -0
  9. package/ui.container-divider/configs/default.config.js +1 -1
  10. package/ui.container-group/configs/default.config.js +0 -42
  11. package/ui.container-group/index.stories.js +7 -4
  12. package/ui.container-group/index.vue +3 -49
  13. package/ui.container-groups/index.stories.js +6 -3
  14. package/ui.container-row/index.stories.js +7 -7
  15. package/ui.container-row/index.vue +1 -1
  16. package/ui.dropdown-button/index.stories.js +4 -4
  17. package/ui.form-checkbox/index.stories.js +7 -7
  18. package/ui.form-color-picker/index.stories.js +4 -4
  19. package/ui.form-input/index.stories.js +4 -4
  20. package/ui.form-input/index.vue +12 -12
  21. package/ui.form-input-money/index.stories.js +4 -4
  22. package/ui.form-input-number/index.stories.js +4 -4
  23. package/ui.form-label/index.stories.js +4 -4
  24. package/ui.form-radio-group/index.stories.js +4 -4
  25. package/ui.form-select/configs/default.config.js +1 -1
  26. package/ui.form-switch/configs/default.config.js +3 -4
  27. package/ui.form-textarea/configs/default.config.js +1 -2
  28. package/ui.form-textarea/index.stories.js +4 -4
  29. package/ui.form-textarea/index.vue +13 -13
  30. package/ui.image-avatar/index.stories.js +10 -10
  31. package/ui.loader-rendering/index.stories.js +4 -4
  32. package/ui.loader-top/index.stories.js +4 -4
  33. package/ui.navigation-progress/index.stories.js +9 -9
  34. package/ui.other-dot/index.stories.js +7 -7
  35. package/ui.text-alert/index.stories.js +4 -4
  36. package/ui.text-badge/index.stories.js +4 -4
  37. package/ui.text-header/index.stories.js +4 -4
  38. package/ui.text-notify/index.stories.js +4 -4
  39. package/web-types.json +81 -47
@@ -3,7 +3,7 @@ import { getArgTypes, getSlotNames, allSlotsFragment } from "../service.storyboo
3
3
  import UInput from "../ui.form-input";
4
4
  import UIcon from "../ui.image-icon";
5
5
  import UButton from "../ui.button";
6
- import UGroup from "../ui.container-group";
6
+ import UCol from "../ui.container-col";
7
7
  import URow from "../ui.container-row";
8
8
 
9
9
  /**
@@ -90,14 +90,14 @@ const ValidationRuleTemplate = (args, { argTypes } = {}) => ({
90
90
  });
91
91
 
92
92
  const LabelPlacementTemplate = (args) => ({
93
- components: { UInput, UGroup },
93
+ components: { UInput, UCol },
94
94
  setup() {
95
95
  return {
96
96
  args,
97
97
  };
98
98
  },
99
99
  template: `
100
- <UGroup gap="xl">
100
+ <UCol gap="xl">
101
101
  <UInput
102
102
  v-bind="args"
103
103
  label="top"
@@ -109,7 +109,7 @@ const LabelPlacementTemplate = (args) => ({
109
109
  label="topInside"
110
110
  :label-outside="false"
111
111
  />
112
- </UGroup>
112
+ </UCol>
113
113
  `,
114
114
  });
115
115
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <ULabel
3
- ref="labelComponent"
3
+ ref="labelComponentRef"
4
4
  :for="id"
5
5
  :label="label"
6
6
  :description="description"
@@ -12,14 +12,14 @@
12
12
  v-bind="labelAttrs"
13
13
  >
14
14
  <label :for="id" v-bind="blockAttrs">
15
- <span v-if="hasSlotContent($slots['left'])" ref="leftSlotWrapper">
15
+ <span v-if="hasSlotContent($slots['left'])" ref="leftSlotWrapperRef">
16
16
  <!-- @slot Use it to add something before the text. -->
17
17
  <slot name="left" />
18
18
  </span>
19
19
 
20
20
  <span
21
21
  v-if="hasSlotContent($slots['icon-left']) || iconLeft"
22
- ref="leftSlotWrapper"
22
+ ref="leftSlotWrapperRef"
23
23
  v-bind="leftIconSlotAttrs"
24
24
  >
25
25
  <!--
@@ -35,7 +35,7 @@
35
35
  <span v-bind="inputWrapperAttrs">
36
36
  <input
37
37
  :id="id"
38
- ref="input"
38
+ ref="inputRef"
39
39
  v-model="inputValue"
40
40
  :placeholder="placeholder"
41
41
  :type="inputType"
@@ -315,11 +315,11 @@ const props = defineProps({
315
315
  const slots = useSlots();
316
316
 
317
317
  const isShownPassword = ref(false);
318
- const input = ref(null);
319
- const labelComponent = ref(null);
320
- const leftSlotWrapper = ref(null);
318
+ const inputRef = ref(null);
319
+ const labelComponentRef = ref(null);
320
+ const leftSlotWrapperRef = ref(null);
321
321
 
322
- defineExpose({ input });
322
+ defineExpose({ inputRef });
323
323
 
324
324
  const isTypePassword = computed(() => props.type === "password");
325
325
 
@@ -440,12 +440,12 @@ function setLabelPosition() {
440
440
  return;
441
441
  }
442
442
 
443
- let leftSlotOrIconWidth = leftSlotWrapper.value.getBoundingClientRect().width;
443
+ let leftSlotOrIconWidth = leftSlotWrapperRef.value.getBoundingClientRect().width;
444
444
 
445
- const leftPaddingValue = parseFloat(getComputedStyle(input.value).paddingLeft);
445
+ const leftPaddingValue = parseFloat(getComputedStyle(inputRef.value).paddingLeft);
446
446
 
447
- if (labelComponent.value.labelElement) {
448
- labelComponent.value.labelElement.style.left = `${leftSlotOrIconWidth + leftPaddingValue}px`;
447
+ if (labelComponentRef.value.labelElement) {
448
+ labelComponentRef.value.labelElement.style.left = `${leftSlotOrIconWidth + leftPaddingValue}px`;
449
449
  }
450
450
  }
451
451
  </script>
@@ -2,7 +2,7 @@ import { getArgTypes, getSlotNames, allSlotsFragment } from "../service.storyboo
2
2
 
3
3
  import UInputMoney from "../ui.form-input-money";
4
4
  import URow from "../ui.container-row";
5
- // import UGroup from "../ui.container-group";
5
+ // import UCol from "../ui.container-col";
6
6
 
7
7
  /**
8
8
  * The `UInputMoney` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-input-money)
@@ -59,14 +59,14 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
59
59
 
60
60
  // TODO: Rewrite to labelAlign
61
61
  // const LabelPlacementTemplate = (args) => ({
62
- // components: { UInputMoney, UGroup },
62
+ // components: { UInputMoney, UCol },
63
63
  // setup() {
64
64
  // return {
65
65
  // args,
66
66
  // };
67
67
  // },
68
68
  // template: `
69
- // <UGroup gap="xl">
69
+ // <UCol gap="xl">
70
70
  // <UInputMoney
71
71
  // v-bind="args"
72
72
  // :label-outside="true"
@@ -78,7 +78,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
78
78
  // :label-outside="false"
79
79
  // label="topInside"
80
80
  // />
81
- // </UGroup>
81
+ // </UCol>
82
82
  // `,
83
83
  // });
84
84
 
@@ -1,7 +1,7 @@
1
1
  import { getArgTypes } from "../service.storybook";
2
2
 
3
3
  import UInputNumber from "../ui.form-input-number";
4
- import UGroup from "../ui.container-group";
4
+ import UCol from "../ui.container-col";
5
5
 
6
6
  /**
7
7
  * The `UInputNumber` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-input-number)
@@ -32,7 +32,7 @@ const DefaultTemplate = (args) => ({
32
32
  });
33
33
 
34
34
  const SizesTemplate = (args, { argTypes } = {}) => ({
35
- components: { UInputNumber, UGroup },
35
+ components: { UInputNumber, UCol },
36
36
  setup() {
37
37
  return {
38
38
  args,
@@ -49,7 +49,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
49
49
  };
50
50
  },
51
51
  template: `
52
- <UGroup gap="xl">
52
+ <UCol gap="xl">
53
53
  <UInputNumber
54
54
  v-for="(size, index) in sizes"
55
55
  v-bind="args"
@@ -58,7 +58,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
58
58
  :label="sizeValues[index].label"
59
59
  v-model="sizeValues[index].count"
60
60
  />
61
- </UGroup>
61
+ </UCol>
62
62
  `,
63
63
  });
64
64
 
@@ -1,6 +1,6 @@
1
1
  import ULabel from "../ui.form-label";
2
2
  import URow from "../ui.container-row";
3
- import UGroup from "../ui.container-group";
3
+ import UCol from "../ui.container-col";
4
4
  import UText from "../ui.text-block";
5
5
  import UIcon from "../ui.image-icon";
6
6
 
@@ -72,7 +72,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
72
72
  });
73
73
 
74
74
  const LabelPlacementTemplate = (args, { argTypes } = {}) => ({
75
- components: { ULabel, UGroup, UText },
75
+ components: { ULabel, UCol, UText },
76
76
  setup() {
77
77
  return {
78
78
  args,
@@ -80,7 +80,7 @@ const LabelPlacementTemplate = (args, { argTypes } = {}) => ({
80
80
  };
81
81
  },
82
82
  template: `
83
- <UGroup>
83
+ <UCol>
84
84
  <ULabel
85
85
  v-for="(align, index) in placements"
86
86
  v-bind="args"
@@ -90,7 +90,7 @@ const LabelPlacementTemplate = (args, { argTypes } = {}) => ({
90
90
  >
91
91
  <UText>This is <b>"{{ align }}"</b> label placement.</UText>
92
92
  </ULabel>
93
- </UGroup>
93
+ </UCol>
94
94
  `,
95
95
  });
96
96
 
@@ -4,7 +4,7 @@ import URadioGroup from "../ui.form-radio-group";
4
4
  import URadio from "../ui.form-radio";
5
5
  import UAlert from "../ui.text-alert";
6
6
  import URow from "../ui.container-row";
7
- import UGroup from "../ui.container-group";
7
+ import UCol from "../ui.container-col";
8
8
 
9
9
  /**
10
10
  * The `URadioGroup` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-radio-group)
@@ -28,7 +28,7 @@ export default {
28
28
  };
29
29
 
30
30
  const DefaultTemplate = (args) => ({
31
- components: { URadioGroup, URadio, UAlert, URow, UGroup },
31
+ components: { URadioGroup, URadio, UAlert, URow, UCol },
32
32
  setup() {
33
33
  return { args };
34
34
  },
@@ -38,14 +38,14 @@ const DefaultTemplate = (args) => ({
38
38
  };
39
39
  },
40
40
  template: `
41
- <UGroup gap="2xl">
41
+ <UCol gap="2xl">
42
42
  <URadioGroup v-bind="args" v-model="value">
43
43
  <URadio v-for="(radio, index) in args.radios" :key="index" v-bind="radio" />
44
44
  </URadioGroup>
45
45
  <UAlert color="gray" size="xs">
46
46
  <code>Selected value: <b>{{ value }}</b></code>
47
47
  </UAlert>
48
- </UGroup>
48
+ </UCol>
49
49
  `,
50
50
  });
51
51
 
@@ -13,7 +13,7 @@ export default /*tw*/ {
13
13
  variants: {
14
14
  error: {
15
15
  true: `
16
- border-red-300 hover:border-red-300
16
+ bg-red-50 border-red-300 hover:border-red-300
17
17
  focus-within:border-red-500 focus-within:ring-red-100
18
18
  `,
19
19
  },
@@ -2,8 +2,7 @@ export default /*tw*/ {
2
2
  label: "{ULabel}",
3
3
  wrapper: {
4
4
  base: `
5
- transition duration-300
6
- flex items-center p-0.5 relative rounded-3xl cursor-pointer
5
+ flex items-center p-0.5 relative rounded-3xl cursor-pointer transition
7
6
  ring-opacity-10 focus-within:ring-dynamic focus-within:ring-offset-dynamic
8
7
  `,
9
8
  variants: {
@@ -28,7 +27,7 @@ export default /*tw*/ {
28
27
  },
29
28
  input: "absolute size-0 opacity-0",
30
29
  circle: {
31
- base: "transition duration-300 rounded-full bg-white flex items-center justify-center",
30
+ base: "transition-all duration-300 rounded-full bg-white flex items-center justify-center",
32
31
  variants: {
33
32
  size: {
34
33
  sm: "size-3",
@@ -46,7 +45,7 @@ export default /*tw*/ {
46
45
  selectedIconName: "check",
47
46
  unselectedIconName: "close",
48
47
  toggleLabel: {
49
- base: "absolute text-center text-2xs font-medium uppercase text-white transition duration-300",
48
+ base: "absolute text-center text-2xs font-medium uppercase text-white",
50
49
  compoundVariants: [
51
50
  { toggleLabel: true, checked: true, class: "w-1/2 left-1" },
52
51
  { toggleLabel: true, checked: false, class: "w-1/2 right-1" },
@@ -12,7 +12,7 @@ export default /*tw*/ {
12
12
  variants: {
13
13
  error: {
14
14
  true: `
15
- border-red-300
15
+ bg-red-50 border-red-300
16
16
  hover:border-red-400 hover:focus-within:border-red-500
17
17
  focus-within:border-red-500 focus-within:ring-red-100
18
18
  `,
@@ -51,7 +51,6 @@ export default /*tw*/ {
51
51
  type: "text",
52
52
  inputmode: "text",
53
53
  labelAlign: "topInside",
54
- error: false,
55
54
  disabled: false,
56
55
  readonly: false,
57
56
  noAutocomplete: false,
@@ -3,7 +3,7 @@ import { getArgTypes, getSlotNames, allSlotsFragment } from "../service.storyboo
3
3
  import UTextarea from "../ui.form-textarea";
4
4
  import UIcon from "../ui.image-icon";
5
5
  import URow from "../ui.container-row";
6
- import UGroup from "../ui.container-group";
6
+ import UCol from "../ui.container-col";
7
7
 
8
8
  /**
9
9
  * The `UTextarea` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-textarea)
@@ -72,14 +72,14 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
72
72
  });
73
73
 
74
74
  const LabelPlacementTemplate = (args) => ({
75
- components: { UTextarea, UGroup },
75
+ components: { UTextarea, UCol },
76
76
  setup() {
77
77
  return {
78
78
  args,
79
79
  };
80
80
  },
81
81
  template: `
82
- <UGroup gap="xl">
82
+ <UCol gap="xl">
83
83
  <UTextarea
84
84
  v-bind="args"
85
85
  label-align="top"
@@ -91,7 +91,7 @@ const LabelPlacementTemplate = (args) => ({
91
91
  label-align="topInside"
92
92
  label="topInside"
93
93
  />
94
- </UGroup>
94
+ </UCol>
95
95
  `,
96
96
  });
97
97
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <ULabel
3
- ref="labelComponent"
3
+ ref="labelComponentRef"
4
4
  :for="id"
5
5
  :label="label"
6
6
  :error="error"
@@ -13,17 +13,17 @@
13
13
  >
14
14
  <label
15
15
  v-if="hasSlotContent($slots['left'])"
16
- ref="leftSlotWrapper"
16
+ ref="leftSlotWrapperRef"
17
17
  :for="id"
18
18
  v-bind="leftSlotAttrs"
19
19
  >
20
20
  <!-- @slot Use it to add something before the text. -->
21
21
  <slot name="left" />
22
22
  </label>
23
- <label ref="textareaWrapper" :for="id" v-bind="textareaWrapperAttrs">
23
+ <label ref="textareaWrapperRef" :for="id" v-bind="textareaWrapperAttrs">
24
24
  <textarea
25
25
  :id="id"
26
- ref="textarea"
26
+ ref="textareaRef"
27
27
  v-model="localValue"
28
28
  :value="modelValue"
29
29
  :placeholder="placeholder"
@@ -231,10 +231,10 @@ const {
231
231
  hasSlotContent,
232
232
  } = useAttrs(props);
233
233
 
234
- const textarea = ref(null);
235
- const labelComponent = ref(null);
236
- const leftSlotWrapper = ref(null);
237
- const textareaWrapper = ref(null);
234
+ const textareaRef = ref(null);
235
+ const labelComponentRef = ref(null);
236
+ const leftSlotWrapperRef = ref(null);
237
+ const textareaWrapperRef = ref(null);
238
238
 
239
239
  const localValue = computed({
240
240
  get() {
@@ -245,7 +245,7 @@ const localValue = computed({
245
245
  },
246
246
  });
247
247
 
248
- defineExpose({ textarea });
248
+ defineExpose({ textareaRef });
249
249
 
250
250
  onMounted(() => toggleReadonly(true));
251
251
 
@@ -292,13 +292,13 @@ function toggleReadonly(hasReadonly) {
292
292
  function setLabelPosition() {
293
293
  if (props.labelAlign === "top" || !hasSlotContent(slots["left"])) return;
294
294
 
295
- const leftSlotWidth = leftSlotWrapper.value.getBoundingClientRect().width;
295
+ const leftSlotWidth = leftSlotWrapperRef.value.getBoundingClientRect().width;
296
296
 
297
- if (labelComponent.value.labelElement) {
298
- labelComponent.value.labelElement.style.left = `${leftSlotWidth}px`;
297
+ if (labelComponentRef.value.labelElement) {
298
+ labelComponentRef.value.labelElement.style.left = `${leftSlotWidth}px`;
299
299
  }
300
300
 
301
- textareaWrapper.value.style.paddingLeft = `${leftSlotWidth}px`;
301
+ textareaWrapperRef.value.style.paddingLeft = `${leftSlotWidth}px`;
302
302
  }
303
303
 
304
304
  onMounted(() => setLabelPosition());
@@ -2,7 +2,7 @@ import { getArgTypes } from "../service.storybook";
2
2
 
3
3
  import UAvatar from "../ui.image-avatar";
4
4
  import URow from "../ui.container-row";
5
- import UGroup from "../ui.container-group";
5
+ import UCol from "../ui.container-col";
6
6
 
7
7
  /**
8
8
  * The `UAvatar` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.image-avatar)
@@ -27,7 +27,7 @@ const DefaultTemplate = (args) => ({
27
27
  });
28
28
 
29
29
  const SizesTemplate = (args, { argTypes } = {}) => ({
30
- components: { UGroup, URow, UAvatar },
30
+ components: { UCol, URow, UAvatar },
31
31
  setup() {
32
32
  return {
33
33
  args,
@@ -35,7 +35,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
35
35
  };
36
36
  },
37
37
  template: `
38
- <UGroup gap="xl">
38
+ <UCol gap="xl">
39
39
  <URow>
40
40
  <UAvatar
41
41
  v-for="(size, index) in sizes"
@@ -54,12 +54,12 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
54
54
  :label="''"
55
55
  />
56
56
  </URow>
57
- </UGroup>
57
+ </UCol>
58
58
  `,
59
59
  });
60
60
 
61
61
  const ColorsTemplate = (args, { argTypes } = {}) => ({
62
- components: { UGroup, URow, UAvatar },
62
+ components: { UCol, URow, UAvatar },
63
63
  setup() {
64
64
  return {
65
65
  args,
@@ -67,7 +67,7 @@ const ColorsTemplate = (args, { argTypes } = {}) => ({
67
67
  };
68
68
  },
69
69
  template: `
70
- <UGroup gap="xl">
70
+ <UCol gap="xl">
71
71
  <URow>
72
72
  <UAvatar
73
73
  v-for="(color, index) in colors"
@@ -86,12 +86,12 @@ const ColorsTemplate = (args, { argTypes } = {}) => ({
86
86
  :label="''"
87
87
  />
88
88
  </URow>
89
- </UGroup>
89
+ </UCol>
90
90
  `,
91
91
  });
92
92
 
93
93
  const RoundedTemplate = (args, { argTypes } = {}) => ({
94
- components: { UGroup, UAvatar, URow },
94
+ components: { UCol, UAvatar, URow },
95
95
  setup() {
96
96
  return {
97
97
  args,
@@ -99,7 +99,7 @@ const RoundedTemplate = (args, { argTypes } = {}) => ({
99
99
  };
100
100
  },
101
101
  template: `
102
- <UGroup>
102
+ <UCol>
103
103
  <URow>
104
104
  <UAvatar
105
105
  v-for="(rounded, index) in roundedValues"
@@ -109,7 +109,7 @@ const RoundedTemplate = (args, { argTypes } = {}) => ({
109
109
  :label="rounded"
110
110
  />
111
111
  </URow>
112
- </UGroup>
112
+ </UCol>
113
113
  `,
114
114
  });
115
115
 
@@ -1,6 +1,6 @@
1
1
  import ULoaderRendering from "../ui.loader-rendering";
2
2
  import UButton from "../ui.button";
3
- import UGroup from "../ui.container-group";
3
+ import UCol from "../ui.container-col";
4
4
 
5
5
  import { useLoaderRendering } from "./composables/useLoaderRendering";
6
6
 
@@ -36,7 +36,7 @@ const DefaultTemplate = (args) => ({
36
36
  });
37
37
 
38
38
  const LoadingTemplate = (args) => ({
39
- components: { ULoaderRendering, UButton, UGroup },
39
+ components: { ULoaderRendering, UButton, UCol },
40
40
  setup() {
41
41
  const { loaderRenderingOn, loaderRenderingOff, isLoading } = useLoaderRendering();
42
42
 
@@ -48,9 +48,9 @@ const LoadingTemplate = (args) => ({
48
48
  },
49
49
  },
50
50
  template: `
51
- <UGroup align="center" class="pb-4">
51
+ <UCol align="center" class="pb-4">
52
52
  <UButton label="Toggle loading" size="sm" @click="toggleLoading"/>
53
- </UGroup>
53
+ </UCol>
54
54
 
55
55
  <ULoaderRendering v-bind="args" class="!static w-full h-96" />
56
56
  `,
@@ -1,7 +1,7 @@
1
1
  import ULoaderTop from "../ui.loader-top";
2
2
  import UButton from "../ui.button";
3
3
  import URow from "../ui.container-row";
4
- import UGroup from "../ui.container-group";
4
+ import UCol from "../ui.container-col";
5
5
  import UBadge from "../ui.text-badge";
6
6
 
7
7
  import { useLoaderTop } from "./composables/useLoaderTop";
@@ -39,7 +39,7 @@ const DefaultTemplate = (args) => ({
39
39
  });
40
40
 
41
41
  const ColorsTemplate = (args, { argTypes } = {}) => ({
42
- components: { ULoaderTop, UButton, UGroup, URow, UBadge },
42
+ components: { ULoaderTop, UButton, UCol, URow, UBadge },
43
43
  setup() {
44
44
  return {
45
45
  args,
@@ -49,7 +49,7 @@ const ColorsTemplate = (args, { argTypes } = {}) => ({
49
49
  };
50
50
  },
51
51
  template: `
52
- <UGroup>
52
+ <UCol>
53
53
  <URow gap="sm" class="pb-4">
54
54
  <UButton label="On" size="sm" @click="loaderTopOn('https://api.publicapis.org/images')" />
55
55
  <UButton label="Off" size="sm" @click="loaderTopOff('https://api.publicapis.org/images')" />
@@ -65,7 +65,7 @@ const ColorsTemplate = (args, { argTypes } = {}) => ({
65
65
  />
66
66
  </URow>
67
67
 
68
- </UGroup>
68
+ </UCol>
69
69
  `,
70
70
  });
71
71
 
@@ -1,7 +1,7 @@
1
1
  import { getArgTypes, allSlotsFragment, getSlotNames } from "../service.storybook";
2
2
 
3
3
  import UProgress from "./index.vue";
4
- import UGroup from "../ui.container-group";
4
+ import UCol from "../ui.container-col";
5
5
  import UButton from "../ui.button";
6
6
  import UIcon from "../ui.image-icon";
7
7
 
@@ -18,7 +18,7 @@ export default {
18
18
  };
19
19
 
20
20
  const DefaultTemplate = (args) => ({
21
- components: { UGroup, UProgress, UButton, UIcon },
21
+ components: { UCol, UProgress, UButton, UIcon },
22
22
  setup() {
23
23
  const slots = getSlotNames(UProgress.name);
24
24
 
@@ -32,15 +32,15 @@ const DefaultTemplate = (args) => ({
32
32
  return { slots, args, updateProgress };
33
33
  },
34
34
  template: `
35
- <UGroup align="start">
35
+ <UCol align="start">
36
36
  <UProgress v-bind="args">${args.slotTemplate || allSlotsFragment}</UProgress>
37
37
  <UButton label="Next →" size="sm" variant="thirdary" filled @click="updateProgress" />
38
- </UGroup>
38
+ </UCol>
39
39
  `,
40
40
  });
41
41
 
42
42
  const EnumVariantTemplate = (args, { argTypes } = {}) => ({
43
- components: { UGroup, UButton, UProgress },
43
+ components: { UCol, UButton, UProgress },
44
44
  setup() {
45
45
  args.progress = 10;
46
46
 
@@ -51,8 +51,8 @@ const EnumVariantTemplate = (args, { argTypes } = {}) => ({
51
51
  return { args, updateProgress, options: argTypes[args.enum].options };
52
52
  },
53
53
  template: `
54
- <UGroup align="start">
55
- <UGroup>
54
+ <UCol align="start">
55
+ <UCol>
56
56
  <UProgress
57
57
  v-for="(option, index) in options"
58
58
  :key="index"
@@ -60,10 +60,10 @@ const EnumVariantTemplate = (args, { argTypes } = {}) => ({
60
60
  v-bind="args"
61
61
  :value="args.progress"
62
62
  />
63
- </UGroup>
63
+ </UCol>
64
64
 
65
65
  <UButton label="Next →" size="sm" variant="thirdary" filled @click="updateProgress" />
66
- </UGroup>
66
+ </UCol>
67
67
  `,
68
68
  });
69
69
 
@@ -1,6 +1,6 @@
1
1
  import UDot from "../ui.other-dot";
2
2
  import URow from "../ui.container-row";
3
- import UGroup from "../ui.container-group";
3
+ import UCol from "../ui.container-col";
4
4
  import UBadge from "../ui.text-badge";
5
5
 
6
6
  import { getArgTypes } from "../service.storybook";
@@ -28,7 +28,7 @@ const DefaultTemplate = (args) => ({
28
28
  });
29
29
 
30
30
  const ColorsTemplate = (args, { argTypes } = {}) => ({
31
- components: { UGroup, URow, UDot, UBadge },
31
+ components: { UCol, URow, UDot, UBadge },
32
32
  setup() {
33
33
  return {
34
34
  args,
@@ -36,17 +36,17 @@ const ColorsTemplate = (args, { argTypes } = {}) => ({
36
36
  };
37
37
  },
38
38
  template: `
39
- <UGroup>
39
+ <UCol>
40
40
  <URow v-for="(color, index) in colors" :key="index" gap="none" align="center">
41
41
  <UDot v-bind="args" :color="color"/>
42
42
  <UBadge :label="color" :color="color" variant="thirdary" />
43
43
  </URow>
44
- </UGroup>
44
+ </UCol>
45
45
  `,
46
46
  });
47
47
 
48
48
  const SizesTemplate = (args, { argTypes } = {}) => ({
49
- components: { UGroup, URow, UDot, UBadge },
49
+ components: { UCol, URow, UDot, UBadge },
50
50
  setup() {
51
51
  return {
52
52
  args,
@@ -54,12 +54,12 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
54
54
  };
55
55
  },
56
56
  template: `
57
- <UGroup>
57
+ <UCol>
58
58
  <URow v-for="(size, index) in sizes" :key="index" gap="none" align="center">
59
59
  <UDot v-bind="args" :size="size"/>
60
60
  <UBadge :label="size" variant="thirdary" />
61
61
  </URow>
62
- </UGroup>
62
+ </UCol>
63
63
  `,
64
64
  });
65
65