vueless 0.0.238 → 0.0.240

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 (41) hide show
  1. package/{composable.adjustElementPosition → composable.autoPosition}/index.js +7 -10
  2. package/package.json +2 -2
  3. package/ui.button/index.stories.js +4 -4
  4. package/ui.container-col/Docs.mdx +16 -0
  5. package/ui.container-col/composables/attrs.composable.js +33 -0
  6. package/ui.container-col/configs/default.config.js +46 -0
  7. package/ui.container-col/constants/index.js +5 -0
  8. package/ui.container-col/index.stories.js +64 -0
  9. package/ui.container-col/index.vue +80 -0
  10. package/ui.container-divider/configs/default.config.js +1 -1
  11. package/ui.container-group/configs/default.config.js +0 -42
  12. package/ui.container-group/index.stories.js +7 -4
  13. package/ui.container-group/index.vue +3 -49
  14. package/ui.container-groups/index.stories.js +6 -3
  15. package/ui.container-row/index.stories.js +7 -7
  16. package/ui.container-row/index.vue +1 -1
  17. package/ui.dropdown-button/index.stories.js +4 -4
  18. package/ui.form-checkbox/index.stories.js +7 -7
  19. package/ui.form-color-picker/index.stories.js +4 -4
  20. package/ui.form-date-picker/composables/attrs.composable.js +1 -1
  21. package/ui.form-date-picker/configs/default.config.js +1 -0
  22. package/ui.form-date-picker/index.vue +13 -3
  23. package/ui.form-date-picker-range/composables/attrs.composable.js +1 -1
  24. package/ui.form-date-picker-range/index.stories.js +1 -1
  25. package/ui.form-date-picker-range/index.vue +4 -10
  26. package/ui.form-input/index.stories.js +6 -8
  27. package/ui.form-input-money/index.stories.js +4 -4
  28. package/ui.form-input-number/index.stories.js +4 -4
  29. package/ui.form-label/index.stories.js +4 -4
  30. package/ui.form-radio-group/index.stories.js +4 -4
  31. package/ui.form-textarea/index.stories.js +4 -4
  32. package/ui.image-avatar/index.stories.js +10 -10
  33. package/ui.loader-rendering/index.stories.js +4 -4
  34. package/ui.loader-top/index.stories.js +4 -4
  35. package/ui.navigation-progress/index.stories.js +9 -9
  36. package/ui.other-dot/index.stories.js +7 -7
  37. package/ui.text-alert/index.stories.js +4 -4
  38. package/ui.text-badge/index.stories.js +4 -4
  39. package/ui.text-header/index.stories.js +4 -4
  40. package/ui.text-notify/index.stories.js +4 -4
  41. package/web-types.json +89 -46
@@ -1,6 +1,6 @@
1
1
  import { getArgTypes } from "../service.storybook";
2
2
  import UColorPicker from "../ui.form-color-picker";
3
- import UGroup from "../ui.container-group";
3
+ import UCol from "../ui.container-col";
4
4
 
5
5
  /**
6
6
  * The `UColorPicker` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-color-picker)
@@ -29,7 +29,7 @@ const DefaultTemplate = (args) => ({
29
29
  });
30
30
 
31
31
  const SizesTemplate = (args, { argTypes } = {}) => ({
32
- components: { UGroup, UColorPicker },
32
+ components: { UCol, UColorPicker },
33
33
  setup() {
34
34
  return {
35
35
  args,
@@ -37,7 +37,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
37
37
  };
38
38
  },
39
39
  template: `
40
- <UGroup>
40
+ <UCol>
41
41
  <UColorPicker
42
42
  v-for="(size, index) in sizes"
43
43
  v-bind="args"
@@ -46,7 +46,7 @@ const SizesTemplate = (args, { argTypes } = {}) => ({
46
46
  :name="size"
47
47
  v-model="args.value"
48
48
  />
49
- </UGroup>
49
+ </UCol>
50
50
  `,
51
51
  });
52
52
 
@@ -3,7 +3,7 @@ import { cva } from "../../service.ui";
3
3
  import { computed, watchEffect } from "vue";
4
4
 
5
5
  import defaultConfig from "../configs/default.config";
6
- import { POSITION } from "../../composable.adjustElementPosition";
6
+ import { POSITION } from "../../composable.autoPosition";
7
7
 
8
8
  export default function useAttrs(props, { isShownCalendar, isTop, isRight }) {
9
9
  const { config, getAttrs, isSystemKey } = useUI(defaultConfig, () => props.config);
@@ -111,6 +111,7 @@ export default /*tw*/ {
111
111
  size: "md",
112
112
  openDirectionX: "auto",
113
113
  openDirectionY: "auto",
114
+ labelAlign: "topInside",
114
115
  timepicker: false,
115
116
  disabled: false,
116
117
  dateFormat: undefined,
@@ -4,6 +4,7 @@
4
4
  :id="id"
5
5
  :key="isShownCalendar"
6
6
  v-model="userFormatDate"
7
+ :label-align="labelAlign"
7
8
  :label="label"
8
9
  :placeholder="placeholder"
9
10
  :error="error"
@@ -68,7 +69,7 @@ import { addDays, isSameDay } from "../ui.form-calendar/services/date.service";
68
69
 
69
70
  import useAttrs from "./composables/attrs.composable";
70
71
  import { useLocale } from "../composable.locale";
71
- import { useAdjustElementPosition } from "../composable.adjustElementPosition";
72
+ import { useAutoPosition } from "../composable.autoPosition";
72
73
 
73
74
  import defaultConfig from "./configs/default.config";
74
75
  import { UDatePicker } from "./constants";
@@ -85,6 +86,15 @@ const props = defineProps({
85
86
  default: "",
86
87
  },
87
88
 
89
+ /**
90
+ * Set label placement related from the default slot.
91
+ * @values top, topInside, topWithDesc, left, right
92
+ */
93
+ labelAlign: {
94
+ type: String,
95
+ default: UIService.get(defaultConfig, UDatePicker).default.labelAlign,
96
+ },
97
+
88
98
  /**
89
99
  * Datepicker placeholder.
90
100
  */
@@ -248,10 +258,10 @@ const calendarRef = ref(null);
248
258
 
249
259
  const calendarWrapperRef = computed(() => calendarRef?.value?.wrapperRef);
250
260
 
251
- const { isTop, isRight, adjustPositionY, adjustPositionX } = useAdjustElementPosition(
261
+ const { isTop, isRight, adjustPositionY, adjustPositionX } = useAutoPosition(
252
262
  wrapperRef,
253
263
  calendarWrapperRef,
254
- { x: props.openDirectionX, y: props.openDirectionY },
264
+ computed(() => ({ x: props.openDirectionX, y: props.openDirectionY })),
255
265
  { x: "left", y: "bottom" },
256
266
  );
257
267
 
@@ -4,7 +4,7 @@ import { cx, cva } from "../../service.ui";
4
4
  import { computed, watchEffect } from "vue";
5
5
 
6
6
  import defaultConfig from "../configs/default.config";
7
- import { POSITION } from "../../composable.adjustElementPosition";
7
+ import { POSITION } from "../../composable.autoPosition";
8
8
 
9
9
  export default function useAttrs(props, { isShownMenu, isTop, isRight }) {
10
10
  const { config, getAttrs, isSystemKey } = useUI(defaultConfig, () => props.config);
@@ -151,7 +151,7 @@ export const MinMax = DefaultTemplate.bind({});
151
151
  MinMax.args = {
152
152
  minDate: new Date(2022, 2, 22),
153
153
  maxDate: new Date(2022, 2, 26),
154
- value: { from: new Date(2022, 2, 24), to: null },
154
+ value: { from: new Date(2022, 2, 24), to: new Date(2022, 2, 25) },
155
155
  };
156
156
 
157
157
  export const DateFormat = DefaultTemplate.bind({});
@@ -259,7 +259,7 @@ import {
259
259
  import useAttrs from "./composables/attrs.composable";
260
260
  import { useLocale } from "../composable.locale";
261
261
  import useBreakpoint from "../composable.breakpoint";
262
- import { useAdjustElementPosition } from "../composable.adjustElementPosition";
262
+ import { useAutoPosition } from "../composable.autoPosition";
263
263
 
264
264
  import defaultConfig from "./configs/default.config";
265
265
  import {
@@ -443,17 +443,11 @@ const buttonPrevRef = ref(null);
443
443
  const buttonNextRef = ref(null);
444
444
  const inputRef = ref(null);
445
445
 
446
- const { isTop, isRight, adjustPositionY, adjustPositionX } = useAdjustElementPosition(
446
+ const { isTop, isRight, adjustPositionY, adjustPositionX } = useAutoPosition(
447
447
  wrapperRef,
448
448
  menuRef,
449
- {
450
- x: props.openDirectionX,
451
- y: props.openDirectionY,
452
- },
453
- {
454
- x: "left",
455
- y: "bottom",
456
- },
449
+ computed(() => ({ x: props.openDirectionX, y: props.openDirectionY })),
450
+ { x: "left", y: "bottom" },
457
451
  );
458
452
 
459
453
  const {
@@ -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,26 +90,24 @@ 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
- label="top"
104
- :label-outside="true"
103
+ label-align="top"
105
104
  />
106
105
 
107
106
  <UInput
108
107
  v-bind="args"
109
- label="topInside"
110
- :label-outside="false"
108
+ label-align="topInside"
111
109
  />
112
- </UGroup>
110
+ </UCol>
113
111
  `,
114
112
  });
115
113
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -2,7 +2,7 @@ import { getArgTypes, getSlotNames, getSlotsFragment } from "../service.storyboo
2
2
 
3
3
  import UAlert from "../ui.text-alert";
4
4
  import URow from "../ui.container-row";
5
- import UGroup from "../ui.container-group";
5
+ import UCol from "../ui.container-col";
6
6
  import UIcon from "../ui.image-icon";
7
7
 
8
8
  /**
@@ -36,7 +36,7 @@ const DefaultTemplate = (args) => ({
36
36
  });
37
37
 
38
38
  const EnumVariantTemplate = (args, { argTypes } = {}) => ({
39
- components: { UAlert, UGroup },
39
+ components: { UAlert, UCol },
40
40
  setup() {
41
41
  const options = argTypes[args.enum].options;
42
42
  let prefixedOptions = options;
@@ -52,7 +52,7 @@ const EnumVariantTemplate = (args, { argTypes } = {}) => ({
52
52
  return { args, options: argTypes[args.enum].options, prefixedOptions };
53
53
  },
54
54
  template: `
55
- <UGroup align="stretch">
55
+ <UCol align="stretch">
56
56
  <UAlert
57
57
  v-for="(option, index) in options"
58
58
  :key="index"
@@ -60,7 +60,7 @@ const EnumVariantTemplate = (args, { argTypes } = {}) => ({
60
60
  :[args.enum]="option"
61
61
  :title="prefixedOptions[index]"
62
62
  />
63
- </UGroup>
63
+ </UCol>
64
64
  `,
65
65
  });
66
66