vueless 0.0.153 → 0.0.155

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 (76) hide show
  1. package/composable.adjustElementPosition/index.js +98 -0
  2. package/package.json +1 -1
  3. package/ui.button/Docs.mdx +1 -1
  4. package/ui.button-link/Docs.mdx +1 -1
  5. package/ui.button-toggle/Docs.mdx +1 -1
  6. package/ui.button-toggle-item/Docs.mdx +1 -1
  7. package/ui.container-accordion/Docs.mdx +1 -1
  8. package/ui.container-card/Docs.mdx +1 -1
  9. package/ui.container-divider/Docs.mdx +1 -1
  10. package/ui.container-group/Docs.mdx +1 -1
  11. package/ui.container-groups/Docs.mdx +1 -1
  12. package/ui.container-modal/Docs.mdx +1 -1
  13. package/ui.container-modal-confirm/Docs.mdx +1 -1
  14. package/ui.container-page/Docs.mdx +1 -1
  15. package/ui.container-row/Docs.mdx +1 -1
  16. package/ui.data-list/Docs.mdx +25 -1
  17. package/ui.data-list/composables/attrs.composable.js +7 -7
  18. package/ui.data-list/configs/default.config.js +5 -4
  19. package/ui.data-list/index.stories.js +38 -17
  20. package/ui.data-list/index.vue +27 -26
  21. package/ui.data-table/Docs.mdx +1 -1
  22. package/ui.dropdown-badge/Docs.mdx +1 -1
  23. package/ui.dropdown-button/Docs.mdx +1 -1
  24. package/ui.dropdown-item/Docs.mdx +1 -1
  25. package/ui.dropdown-link/Docs.mdx +1 -1
  26. package/ui.dropdown-list/Docs.mdx +1 -1
  27. package/ui.form-calendar/Docs.mdx +1 -1
  28. package/ui.form-checkbox/Docs.mdx +1 -1
  29. package/ui.form-checkbox-group/Docs.mdx +1 -1
  30. package/ui.form-checkbox-multi-state/Docs.mdx +1 -1
  31. package/ui.form-color-picker/Docs.mdx +1 -1
  32. package/ui.form-date-picker/Docs.mdx +1 -1
  33. package/ui.form-date-picker/composables/attrs.composable.js +10 -3
  34. package/ui.form-date-picker/configs/default.config.js +7 -3
  35. package/ui.form-date-picker/index.stories.js +21 -3
  36. package/ui.form-date-picker/index.vue +42 -7
  37. package/ui.form-date-picker-range/Docs.mdx +1 -1
  38. package/ui.form-date-picker-range/composables/attrs.composable.js +8 -2
  39. package/ui.form-date-picker-range/configs/default.config.js +7 -3
  40. package/ui.form-date-picker-range/index.stories.js +21 -3
  41. package/ui.form-date-picker-range/index.vue +43 -15
  42. package/ui.form-input/Docs.mdx +1 -1
  43. package/ui.form-input-file/Docs.mdx +1 -1
  44. package/ui.form-input-money/Docs.mdx +1 -1
  45. package/ui.form-input-number/Docs.mdx +1 -1
  46. package/ui.form-input-rating/Docs.mdx +1 -1
  47. package/ui.form-input-search/Docs.mdx +1 -1
  48. package/ui.form-label/Docs.mdx +1 -1
  49. package/ui.form-radio/Docs.mdx +1 -1
  50. package/ui.form-radio-card/Docs.mdx +1 -1
  51. package/ui.form-radio-group/Docs.mdx +1 -1
  52. package/ui.form-select/Docs.mdx +1 -1
  53. package/ui.form-switch/Docs.mdx +1 -1
  54. package/ui.form-textarea/Docs.mdx +1 -1
  55. package/ui.image-avatar/Docs.mdx +1 -1
  56. package/ui.image-icon/Docs.mdx +1 -1
  57. package/ui.image-logo/Docs.mdx +1 -1
  58. package/ui.loader/Docs.mdx +1 -1
  59. package/ui.loader-rendering/Docs.mdx +3 -0
  60. package/ui.loader-top/Docs.mdx +5 -5
  61. package/ui.navigation-pagination/Docs.mdx +1 -1
  62. package/ui.navigation-progress/Docs.mdx +1 -1
  63. package/ui.navigation-stepper/Docs.mdx +1 -1
  64. package/ui.navigation-tab/Docs.mdx +1 -1
  65. package/ui.navigation-tabs/Docs.mdx +1 -1
  66. package/ui.other-dot/Docs.mdx +1 -1
  67. package/ui.text-alert/Docs.mdx +1 -1
  68. package/ui.text-badge/Docs.mdx +1 -1
  69. package/ui.text-block/Docs.mdx +1 -1
  70. package/ui.text-empty/Docs.mdx +1 -1
  71. package/ui.text-file/Docs.mdx +1 -1
  72. package/ui.text-files/Docs.mdx +1 -1
  73. package/ui.text-header/Docs.mdx +1 -1
  74. package/ui.text-money/Docs.mdx +1 -1
  75. package/ui.text-notify/Docs.mdx +1 -1
  76. package/web-types.json +44 -22
@@ -1,13 +1,17 @@
1
1
  import useUI from "../../composable.ui";
2
2
  import { cva } from "../../service.ui";
3
+ import { computed, watchEffect } from "vue";
3
4
 
4
5
  import defaultConfig from "../configs/default.config";
5
- import { computed, watchEffect } from "vue";
6
+ import { POSITION } from "../../composable.adjustElementPosition";
6
7
 
7
- export default function useAttrs(props, { isShownCalendar }) {
8
+ export default function useAttrs(props, { isShownCalendar, isTop, isRight }) {
8
9
  const { config, getAttrs } = useUI(defaultConfig, () => props.config);
9
10
  const { calendar } = config.value;
10
11
 
12
+ const openDirectionY = computed(() => (isTop.value ? POSITION.top : POSITION.bottom));
13
+ const openDirectionX = computed(() => (isRight.value ? POSITION.right : POSITION.left));
14
+
11
15
  const cvaCalendarWrapper = cva({
12
16
  base: calendar.wrapper.base,
13
17
  variants: calendar.wrapper.variants,
@@ -15,7 +19,10 @@ export default function useAttrs(props, { isShownCalendar }) {
15
19
  });
16
20
 
17
21
  const calendarWrapperClasses = computed(() =>
18
- cvaCalendarWrapper({ openDirection: props.openDirection }),
22
+ cvaCalendarWrapper({
23
+ openDirectionY: openDirectionY.value,
24
+ openDirectionX: openDirectionX.value,
25
+ }),
19
26
  );
20
27
 
21
28
  const calendarAttrs = getAttrs("calendar", {
@@ -8,12 +8,15 @@ export default /*tw*/ {
8
8
  },
9
9
  calendar: {
10
10
  wrapper: {
11
- base: "absolute z-40 mt-2",
11
+ base: "absolute z-40 my-2",
12
12
  variants: {
13
- openDirection: {
13
+ openDirectionX: {
14
14
  left: "left-0",
15
15
  right: "right-0",
16
16
  },
17
+ openDirectionY: {
18
+ top: "bottom-full mt-0",
19
+ },
17
20
  },
18
21
  },
19
22
  },
@@ -109,7 +112,8 @@ export default /*tw*/ {
109
112
  dateFormat: "Y-m-d",
110
113
  userFormat: "F j, Y",
111
114
  size: "md",
112
- openDirection: "left",
115
+ openDirectionX: "auto",
116
+ openDirectionY: "auto",
113
117
  timepicker: false,
114
118
  disabled: false,
115
119
  maxDate: undefined,
@@ -76,11 +76,29 @@ const OpenDirectionTemplate = (args, { argTypes } = {}) => ({
76
76
  <URow class="!flex-col">
77
77
  <UDatePicker
78
78
  class="w-full"
79
- v-for="(direction, index) in directions"
80
- :open-direction="direction"
79
+ open-direction-y="top"
80
+ v-bind="args"
81
+ v-model="args.value"
82
+ />
83
+ <UDatePicker
84
+ class="w-full"
85
+ open-direction-y="bottom"
86
+ open-direction-x="right"
87
+ v-bind="args"
88
+ v-model="args.value"
89
+ />
90
+ <UDatePicker
91
+ class="w-full"
92
+ open-direction-y="bottom"
93
+ v-bind="args"
94
+ v-model="args.value"
95
+ />
96
+ <UDatePicker
97
+ class="w-full"
98
+ open-direction-y="bottom"
99
+ open-direction-x="left"
81
100
  v-bind="args"
82
101
  v-model="args.value"
83
- :key="index"
84
102
  />
85
103
  </URow>
86
104
  `,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-bind="wrapperAttrs">
2
+ <div v-bind="wrapperAttrs" ref="wrapperRef">
3
3
  <UInput
4
4
  :id="id"
5
5
  :key="isShownCalendar"
@@ -69,6 +69,7 @@ import {
69
69
 
70
70
  import useAttrs from "./composables/attrs.composable";
71
71
  import { useLocale } from "../composable.locale";
72
+ import { useAdjustElementPosition } from "../composable.adjustElementPosition";
72
73
 
73
74
  import defaultConfig from "./configs/default.config";
74
75
  import { UDatePicker } from "./constants";
@@ -102,12 +103,21 @@ const props = defineProps({
102
103
  },
103
104
 
104
105
  /**
105
- * Datepicker open direction.
106
- * @values left, right
106
+ * Datepicker open direction on x-axis.
107
+ * @values auto, left, right
107
108
  */
108
- openDirection: {
109
+ openDirectionX: {
109
110
  type: String,
110
- default: UIService.get(defaultConfig, UDatePicker).default.openDirection,
111
+ default: UIService.get(defaultConfig, UDatePicker).default.openDirectionX,
112
+ },
113
+
114
+ /**
115
+ * Datepicker open direction on y-axis.
116
+ * @values auto, top, bottom
117
+ */
118
+ openDirectionY: {
119
+ type: String,
120
+ default: UIService.get(defaultConfig, UDatePicker).default.openDirectionY,
111
121
  },
112
122
 
113
123
  /**
@@ -220,8 +230,24 @@ const userFormatDate = ref("");
220
230
  const formattedDate = ref("");
221
231
  const customView = ref(VIEW.day);
222
232
 
233
+ const wrapperRef = ref(null);
223
234
  const calendarRef = ref(null);
224
235
 
236
+ const calendarWrapperRef = computed(() => calendarRef?.value?.wrapperRef);
237
+
238
+ const { isTop, isRight, adjustPositionY, adjustPositionX } = useAdjustElementPosition(
239
+ wrapperRef,
240
+ calendarWrapperRef,
241
+ {
242
+ x: props.openDirectionX,
243
+ y: props.openDirectionY,
244
+ },
245
+ {
246
+ x: "left",
247
+ y: "bottom",
248
+ },
249
+ );
250
+
225
251
  defineExpose({
226
252
  calendarRef,
227
253
  userFormatDate,
@@ -233,12 +259,21 @@ const localValue = computed({
233
259
  set: (value) => emit("update:modelValue", value),
234
260
  });
235
261
 
236
- const { config, inputAttrs, calendarAttrs, wrapperAttrs } = useAttrs(props, { isShownCalendar });
262
+ const { config, inputAttrs, calendarAttrs, wrapperAttrs } = useAttrs(props, {
263
+ isShownCalendar,
264
+ isTop,
265
+ isRight,
266
+ });
237
267
 
238
268
  function activate() {
239
269
  isShownCalendar.value = true;
240
270
 
241
- nextTick(() => calendarRef.value?.wrapperRef?.focus());
271
+ nextTick(() => {
272
+ adjustPositionY();
273
+ adjustPositionX();
274
+
275
+ calendarRef.value.wrapperRef.focus();
276
+ });
242
277
  }
243
278
 
244
279
  function deactivate() {
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -4,18 +4,24 @@ 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
8
 
8
- export default function useAttrs(props, { isShownMenu }) {
9
+ export default function useAttrs(props, { isShownMenu, isTop, isRight }) {
9
10
  const { config, getAttrs } = useUI(defaultConfig, () => props.config);
10
11
  const { menu } = config.value;
11
12
 
13
+ const openDirectionY = computed(() => (isTop.value ? POSITION.top : POSITION.bottom));
14
+ const openDirectionX = computed(() => (isRight.value ? POSITION.right : POSITION.left));
15
+
12
16
  const cvaMenu = cva({
13
17
  base: menu.base,
14
18
  variants: menu.variants,
15
19
  compoundVariants: menu.compoundVariants,
16
20
  });
17
21
 
18
- const menuClasses = computed(() => cvaMenu({ openDirection: props.openDirection }));
22
+ const menuClasses = computed(() =>
23
+ cvaMenu({ openDirectionY: openDirectionY.value, openDirectionX: openDirectionX.value }),
24
+ );
19
25
 
20
26
  const wrapperAttrs = getAttrs("wrapper");
21
27
  const buttonWrapperAttrsRaw = getAttrs("buttonWrapper");
@@ -20,12 +20,15 @@ export default /*tw*/ {
20
20
  disabled:cursor-not-allowed last:rounded-l-none last:rounded-r-lg first:rounded-l-lg first:rounded-r-none
21
21
  `,
22
22
  menu: {
23
- base: "absolute z-40 mt-2 w-80 overflow-hidden rounded-lg border border-brand-300 bg-white p-2 shadow focus:outline-none",
23
+ base: "absolute z-40 my-2 w-80 overflow-hidden rounded-lg border border-brand-300 bg-white p-2 shadow focus:outline-none",
24
24
  variants: {
25
- openDirection: {
25
+ openDirectionX: {
26
26
  left: "left-0",
27
27
  right: "right-0",
28
28
  },
29
+ openDirectionY: {
30
+ top: "bottom-full mt-0",
31
+ },
29
32
  },
30
33
  },
31
34
  menuTransition: {
@@ -193,7 +196,8 @@ export default /*tw*/ {
193
196
  defaultVariants: {
194
197
  size: "md",
195
198
  variant: "button",
196
- openDirection: "left",
199
+ openDirectionX: "auto",
200
+ openDirectionY: "auto",
197
201
  timepicker: false,
198
202
  disabled: false,
199
203
  dateFormat: "d.m.Y",
@@ -91,11 +91,29 @@ const OpenDirectionTemplate = (args, { argTypes } = {}) => ({
91
91
  <URow class="!flex-col">
92
92
  <UDatePickerRange
93
93
  class="w-full"
94
- v-for="(direction, index) in directions"
95
- :open-direction="direction"
94
+ open-direction-y="top"
95
+ v-bind="args"
96
+ v-model="args.value"
97
+ />
98
+ <UDatePickerRange
99
+ class="w-full"
100
+ open-direction-y="bottom"
101
+ open-direction-x="right"
102
+ v-bind="args"
103
+ v-model="args.value"
104
+ />
105
+ <UDatePickerRange
106
+ class="w-full"
107
+ open-direction-y="bottom"
108
+ v-bind="args"
109
+ v-model="args.value"
110
+ />
111
+ <UDatePickerRange
112
+ class="w-full"
113
+ open-direction-y="bottom"
114
+ open-direction-x="left"
96
115
  v-bind="args"
97
116
  v-model="args.value"
98
- :key="index"
99
117
  />
100
118
  </URow>
101
119
  `,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-bind="wrapperAttrs">
2
+ <div v-bind="wrapperAttrs" ref="wrapperRef">
3
3
  <UInput
4
4
  v-if="isVariant.input"
5
5
  :id="id"
@@ -235,6 +235,7 @@ import { wrongDateFormat, wrongMonthNumber, wrongDayNumber } from "./services/va
235
235
  import useAttrs from "./composables/attrs.composable";
236
236
  import { useLocale } from "../composable.locale";
237
237
  import useBreakpoint from "../composable.breakpoint";
238
+ import { useAdjustElementPosition } from "../composable.adjustElementPosition";
238
239
 
239
240
  import defaultConfig from "./configs/default.config";
240
241
  import {
@@ -273,12 +274,21 @@ const props = defineProps({
273
274
  },
274
275
 
275
276
  /**
276
- * Datepicker open direction.
277
- * @values left, right
277
+ * Datepicker open direction on x-axis.
278
+ * @values auto, left, right
278
279
  */
279
- openDirection: {
280
+ openDirectionX: {
280
281
  type: String,
281
- default: UIService.get(defaultConfig, UDatePickerRange).default.openDirection,
282
+ default: UIService.get(defaultConfig, UDatePickerRange).default.openDirectionX,
283
+ },
284
+
285
+ /**
286
+ * Datepicker open direction on y-axis.
287
+ * @values auto, top, bottom
288
+ */
289
+ openDirectionY: {
290
+ type: String,
291
+ default: UIService.get(defaultConfig, UDatePickerRange).default.openDirectionY,
282
292
  },
283
293
 
284
294
  /**
@@ -392,6 +402,23 @@ const props = defineProps({
392
402
  const emit = defineEmits(["update:modelValue"]);
393
403
 
394
404
  const isShownMenu = ref(false);
405
+ const wrapperRef = ref(null);
406
+ const menuRef = ref(null);
407
+ const rangeInputStartRef = ref(null);
408
+ const rangeInputEndRef = ref(null);
409
+
410
+ const { isTop, isRight, adjustPositionY, adjustPositionX } = useAdjustElementPosition(
411
+ wrapperRef,
412
+ menuRef,
413
+ {
414
+ x: props.openDirectionX,
415
+ y: props.openDirectionY,
416
+ },
417
+ {
418
+ x: "left",
419
+ y: "bottom",
420
+ },
421
+ );
395
422
 
396
423
  const {
397
424
  config,
@@ -414,7 +441,7 @@ const {
414
441
  rangeInputAttrs,
415
442
  rangeInputWrapperAttrs,
416
443
  inputRangeErrorAttrs,
417
- } = useAttrs(props, { isShownMenu });
444
+ } = useAttrs(props, { isShownMenu, isTop, isRight });
418
445
  const { tm } = useLocale();
419
446
 
420
447
  const calendarValue = ref(props.modelValue);
@@ -422,16 +449,15 @@ const activeDate = ref(
422
449
  props.modelValue.from !== null ? getDateFromUnixTimestamp(props.modelValue.from) : new Date(),
423
450
  );
424
451
  const period = ref(PERIOD.ownRange);
425
- const periodDateList = ref(null);
426
452
  const rangeStart = ref("");
427
453
  const rangeEnd = ref("");
428
454
  const inputRangeStartError = ref("");
429
455
  const inputRangeEndError = ref("");
430
456
  const isHoverEvent = ref(false);
457
+ const periodDateList = ref(null);
431
458
 
432
- const menuRef = ref(null);
433
- const rangeInputStartRef = ref(null);
434
- const rangeInputEndRef = ref(null);
459
+ const { isMobileBreakpoint } = useBreakpoint();
460
+ const i18nGlobal = tm(UDatePickerRange);
435
461
 
436
462
  const localValue = computed({
437
463
  get: () => props.modelValue,
@@ -444,9 +470,6 @@ const localValue = computed({
444
470
  },
445
471
  });
446
472
 
447
- const { isMobileBreakpoint } = useBreakpoint();
448
- const i18nGlobal = tm(UDatePickerRange);
449
-
450
473
  const rangeInputName = computed(() => `rangeInput-${props.id}`);
451
474
  const currentLocale = computed(() => merge(defaultConfig.i18n, i18nGlobal, props.config.i18n));
452
475
 
@@ -602,7 +625,7 @@ const userFormatDate = computed(() => {
602
625
  const endMonth = String(to?.getMonth())?.padStart(2, "0");
603
626
 
604
627
  const fromTitle = `${startDay}.${startMonth}`;
605
- const toTitle = to ? `${endDay}.${endMonth} / ${to.getFullYear}` : "";
628
+ const toTitle = to ? `${endDay}.${endMonth} / ${to.getFullYear()}` : "";
606
629
 
607
630
  title = `${fromTitle} – ${toTitle}`;
608
631
  }
@@ -791,7 +814,12 @@ function getPeriodDateListClasses() {
791
814
  function activate() {
792
815
  isShownMenu.value = true;
793
816
 
794
- nextTick(() => menuRef.value.focus());
817
+ nextTick(() => {
818
+ adjustPositionY();
819
+ adjustPositionX();
820
+
821
+ menuRef.value.focus();
822
+ });
795
823
  }
796
824
 
797
825
  function deactivate() {
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -41,3 +41,6 @@ loaderRenderingOn();
41
41
  // hide loader
42
42
  loaderRenderingOff();
43
43
  `} language="jsx" dark />
44
+
45
+ ## Default config
46
+ <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,9 +12,6 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
16
- <Source code={getSource(defaultConfig)} language="jsx" dark />
17
-
18
15
  ## Control loader
19
16
  You can control loader state using *useLoaderRendering* composable.
20
17
 
@@ -29,9 +26,12 @@ const {
29
26
  } = useLoaderTop();
30
27
  `} language="jsx" dark />
31
28
 
32
- ## Control outside of component
33
- You can control loader state outside of vue components using following methods.
29
+ ## Control outside a component
30
+ You can control loader state outside vue components using the following methods.
34
31
 
35
32
  <Source code={`
36
33
  import { loaderTopOn, loaderTopOff } from "vueless";
37
34
  `} language="jsx" dark />
35
+
36
+ ## Default config
37
+ <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />
@@ -12,5 +12,5 @@ import defaultConfig from "./configs/default.config?raw"
12
12
  <Controls of={stories.Default} />
13
13
  <Stories of={stories} />
14
14
 
15
- ## **Default config**
15
+ ## Default config
16
16
  <Source code={getSource(defaultConfig)} language="jsx" dark />