@onereach/ui-components 2.67.10 → 2.67.11

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 (67) hide show
  1. package/dist/bundled/v2/{OrButton-a4952445.js → OrButton-6d67c16c.js} +1 -1
  2. package/dist/bundled/v2/{OrConfirm-196a014f.js → OrConfirm-6a6daa14.js} +1 -1
  3. package/dist/bundled/v2/{OrLoader-76f2615f.js → OrLoader-6a1f937b.js} +26 -3
  4. package/dist/bundled/v2/{OrSwitch-c606709c.js → OrSwitch-75d3a260.js} +1 -1
  5. package/dist/bundled/v2/components/index.js +5 -5
  6. package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
  7. package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
  8. package/dist/bundled/v2/components/or-loader-v3/OrLoader.stories3.d.ts +11 -1
  9. package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +28 -0
  10. package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
  11. package/dist/bundled/v2/components/or-loader-v3/styles.d.ts +3 -0
  12. package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
  13. package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
  14. package/dist/bundled/v2/index.js +6 -6
  15. package/dist/bundled/v2/{types-88dd7a52.js → types-a648d591.js} +1 -1
  16. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5af7999c.js → OrButton.vue_vue_type_script_lang-7d914104.js} +2 -2
  17. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-53614609.js → OrConfirm.vue_vue_type_script_lang-ee029628.js} +1 -1
  18. package/dist/bundled/v3/{OrLoader-65868e73.js → OrLoader-c4bbef2f.js} +12 -4
  19. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-edd1b404.js → OrLoader.vue_vue_type_script_lang-5405040c.js} +18 -1
  20. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-b40bf75f.js → OrSwitch.vue_vue_type_script_lang-c72499ac.js} +2 -2
  21. package/dist/bundled/v3/{OrToastContainer-9f3ab98b.js → OrToastContainer-03571359.js} +1 -1
  22. package/dist/bundled/v3/components/index.js +6 -6
  23. package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
  24. package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -4
  25. package/dist/bundled/v3/components/or-loader-v3/OrLoader.stories3.d.ts +11 -1
  26. package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +28 -0
  27. package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
  28. package/dist/bundled/v3/components/or-loader-v3/styles.d.ts +3 -0
  29. package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
  30. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  31. package/dist/bundled/v3/index.js +10 -10
  32. package/dist/bundled/v3/{types-0d8f9581.js → types-e8242d1d.js} +2 -2
  33. package/dist/esm/v2/{OrButton-b458e82b.js → OrButton-04390a52.js} +1 -1
  34. package/dist/esm/v2/{OrConfirm-64ecb10d.js → OrConfirm-6bff1a45.js} +1 -1
  35. package/dist/esm/v2/{OrLoader-bd088836.js → OrLoader-f857d55b.js} +26 -3
  36. package/dist/esm/v2/{OrSwitch-2e0a53ed.js → OrSwitch-846de5ce.js} +1 -1
  37. package/dist/esm/v2/components/index.js +5 -5
  38. package/dist/esm/v2/components/or-button-v3/index.js +2 -2
  39. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  40. package/dist/esm/v2/components/or-loader-v3/OrLoader.stories3.d.ts +11 -1
  41. package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +28 -0
  42. package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
  43. package/dist/esm/v2/components/or-loader-v3/styles.d.ts +3 -0
  44. package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
  45. package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
  46. package/dist/esm/v2/index.js +5 -5
  47. package/dist/esm/v2/{types-ed7aa2bb.js → types-d6a767b3.js} +1 -1
  48. package/dist/esm/v3/{OrButton-4d0c2edd.js → OrButton-3670279e.js} +1 -1
  49. package/dist/esm/v3/{OrConfirm-a77d9812.js → OrConfirm-748ed50b.js} +1 -1
  50. package/dist/esm/v3/{OrLoader-60943812.js → OrLoader-b3cf4231.js} +29 -4
  51. package/dist/esm/v3/{OrSwitch-ec454b76.js → OrSwitch-94399738.js} +1 -1
  52. package/dist/esm/v3/components/index.js +5 -5
  53. package/dist/esm/v3/components/or-button-v3/index.js +2 -2
  54. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  55. package/dist/esm/v3/components/or-loader-v3/OrLoader.stories3.d.ts +11 -1
  56. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +28 -0
  57. package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
  58. package/dist/esm/v3/components/or-loader-v3/styles.d.ts +3 -0
  59. package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
  60. package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
  61. package/dist/esm/v3/index.js +5 -5
  62. package/dist/esm/v3/{types-652ae29f.js → types-8ef262da.js} +1 -1
  63. package/package.json +2 -2
  64. package/src/components/or-loader-v3/OrLoader.docs.mdx +3 -1
  65. package/src/components/or-loader-v3/OrLoader.stories3.ts +21 -1
  66. package/src/components/or-loader-v3/OrLoader.vue +95 -61
  67. package/src/components/or-loader-v3/styles.ts +22 -0
@@ -3,6 +3,9 @@ import { LoaderColor, LoaderSize, LoaderVariant } from './props';
3
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
5
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
6
+ containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
7
+ titleStyles: import("@vue/composition-api").ComputedRef<string[]>;
8
+ descriptionStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
9
  computedSize: import("@vue/composition-api").ComputedRef<20 | 16 | undefined>;
7
10
  }> & import("@vue/composition-api").Data, {}, {}, {
8
11
  variant: {
@@ -17,6 +20,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
17
20
  type: PropType<LoaderSize>;
18
21
  default: LoaderSize;
19
22
  };
23
+ title: {
24
+ type: StringConstructor;
25
+ default: undefined;
26
+ };
27
+ description: {
28
+ type: StringConstructor;
29
+ default: undefined;
30
+ };
20
31
  }, import("@vue/composition-api").ExtractPropTypes<{
21
32
  variant: {
22
33
  type: PropType<LoaderVariant>;
@@ -30,21 +41,38 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
30
41
  type: PropType<LoaderSize>;
31
42
  default: LoaderSize;
32
43
  };
44
+ title: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ description: {
49
+ type: StringConstructor;
50
+ default: undefined;
51
+ };
33
52
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
34
53
  variant: LoaderVariant;
35
54
  color: LoaderColor;
36
55
  size: LoaderSize;
56
+ title: string;
57
+ description: string;
37
58
  } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
38
59
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
39
60
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
61
+ containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
62
+ titleStyles: import("@vue/composition-api").ComputedRef<string[]>;
63
+ descriptionStyles: import("@vue/composition-api").ComputedRef<string[]>;
40
64
  computedSize: import("@vue/composition-api").ComputedRef<20 | 16 | undefined>;
41
65
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
42
66
  variant: LoaderVariant;
43
67
  color: LoaderColor;
44
68
  size: LoaderSize;
69
+ title: string;
70
+ description: string;
45
71
  } & {}, {
46
72
  variant: LoaderVariant;
47
73
  color: LoaderColor;
48
74
  size: LoaderSize;
75
+ title: string;
76
+ description: string;
49
77
  }, true>);
50
78
  export default _default;
@@ -1,4 +1,4 @@
1
- export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from '../../OrLoader-60943812.js';
1
+ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from '../../OrLoader-b3cf4231.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -1,3 +1,6 @@
1
1
  import { LoaderColor } from './props';
2
2
  export declare const LoaderRoot: string[];
3
3
  export declare const LoaderRootColors: Record<LoaderColor, string[]>;
4
+ export declare const LoaderContainer: string[];
5
+ export declare const LoaderTitle: string[];
6
+ export declare const LoaderDescription: string[];
@@ -1,8 +1,8 @@
1
- export { s as OrSwitchV3 } from '../../OrSwitch-ec454b76.js';
1
+ export { s as OrSwitchV3 } from '../../OrSwitch-94399738.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
5
  import '../../OrLabel-7d4fe80b.js';
6
6
  import 'vue';
7
- import '../../OrLoader-60943812.js';
7
+ import '../../OrLoader-b3cf4231.js';
8
8
  import '../../style-inject.es-4c6f2515.js';
@@ -1,4 +1,4 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-652ae29f.js';
1
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-8ef262da.js';
2
2
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../useToast-0665462d.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
@@ -14,5 +14,5 @@ import '../../useElevation-31bfe1f6.js';
14
14
  import '../../useResponsive-a02e95b7.js';
15
15
  import '../../OrBottomSheet-0eb33b18.js';
16
16
  import '../../OrOverlay-738a44d5.js';
17
- import '../../OrLoader-60943812.js';
17
+ import '../../OrLoader-b3cf4231.js';
18
18
  import '../../style-inject.es-4c6f2515.js';
@@ -3,7 +3,7 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-e
3
3
  export { s as OrBottomSheetV3 } from './OrBottomSheet-0eb33b18.js';
4
4
  export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
5
5
  export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
6
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-4d0c2edd.js';
6
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-3670279e.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
9
9
  export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-34aa611e.js';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-ee19a5e6.js';
16
16
  export { s as OrCollapse } from './OrCollapse-445141ab.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
18
18
  export { s as OrConfirm } from './OrConfirm-f39bd784.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-a77d9812.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-748ed50b.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from './OrErrorTag-bbfd3ca6.js';
@@ -42,7 +42,7 @@ export { L as LinkColor, s as OrLinkV3 } from './OrLink-338db3ca.js';
42
42
  export { s as OrList } from './OrList-b740d13e.js';
43
43
  export { s as OrListOfInputs } from './OrListOfInputs-7a67440f.js';
44
44
  export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
45
- export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-60943812.js';
45
+ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-b3cf4231.js';
46
46
  export { s as OrMenuItemV3 } from './OrMenuItem-d001f0f6.js';
47
47
  export { s as OrMenuV3 } from './OrMenu-d9e12030.js';
48
48
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-94a8f21d.js';
@@ -70,7 +70,7 @@ export { s as OrSlider } from './OrSlider-87e2da8c.js';
70
70
  export { s as OrSortHeaderV3 } from './OrSortHeader-9d645226.js';
71
71
  export { s as OrStepper } from './OrStepper-f19b4eac.js';
72
72
  export { s as OrSwitch } from './OrSwitch-c333ee32.js';
73
- export { s as OrSwitchV3 } from './OrSwitch-ec454b76.js';
73
+ export { s as OrSwitchV3 } from './OrSwitch-94399738.js';
74
74
  export { s as OrTab } from './OrTab-bc98be02.js';
75
75
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
76
76
  export { s as OrTabV3 } from './OrTab-97044946.js';
@@ -85,7 +85,7 @@ export { s as OrTextareaV3 } from './OrTextarea-98895b2a.js';
85
85
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
86
86
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
87
87
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
88
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-652ae29f.js';
88
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8ef262da.js';
89
89
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
90
90
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
91
91
  export { s as OrTooltipV3 } from './OrTooltip-6412166a.js';
@@ -3,7 +3,7 @@ import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTic
3
3
  import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
4
4
  import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
5
5
  import { s as script$2 } from './OrIconButton-1d78453b.js';
6
- import { s as script$3 } from './OrLoader-60943812.js';
6
+ import { s as script$3 } from './OrLoader-b3cf4231.js';
7
7
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, createElementVNode, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
8
8
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.67.10",
3
+ "version": "2.67.11",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -124,5 +124,5 @@
124
124
  },
125
125
  "./package.json": "./package.json"
126
126
  },
127
- "gitHead": "da76e43453bbde55f414aca25f01e1cf653b1a70"
127
+ "gitHead": "a1d45cc0f65aaff7fce19084edb98a4cf3dcb152"
128
128
  }
@@ -9,4 +9,6 @@ import { OrLoaderV3 as OrLoader } from '@onereach/ui-components';
9
9
  ## Migration Guide from V1
10
10
  - added properties `color` and `size`
11
11
  - property `type` renamed to `variant`
12
- - removed properties `linearTitle`, `linearDescription`, and `textTypeLabel`
12
+ - property `linearTitle` renamed to `title`
13
+ - property `linearDescription` renamed to `description`
14
+ - removed properties: `textTypeLabel`
@@ -23,6 +23,14 @@ export default {
23
23
  control: { type: 'select' },
24
24
  options: Object.values(LoaderSize),
25
25
  },
26
+
27
+ title: {
28
+ control: { type: 'string' },
29
+ },
30
+
31
+ description: {
32
+ control: { type: 'string' },
33
+ },
26
34
  },
27
35
 
28
36
  parameters: {
@@ -51,4 +59,16 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
51
59
  template: '<OrLoader v-bind="args" />',
52
60
  });
53
61
 
54
- export const Loader = Template.bind({});
62
+ export const Default = Template.bind({});
63
+
64
+ export const Linear = Template.bind({});
65
+ Linear.args = {
66
+ variant: 'linear',
67
+ };
68
+
69
+ export const LinearWithText = Template.bind({});
70
+ LinearWithText.args = {
71
+ title: 'Loading',
72
+ variant: 'linear',
73
+ description: 'Promptly retrieving your data from the cloud',
74
+ };
@@ -4,68 +4,77 @@
4
4
  v-bind="$attrs"
5
5
  :class="rootStyles"
6
6
  >
7
- <template v-if="variant === 'circular'">
8
- <svg
9
- viewBox="0 0 16 16"
10
- :width="computedSize"
11
- :height="computedSize"
12
- >
13
- <g
14
- fill="none"
15
- stroke-width="2"
16
- stroke-linecap="round"
17
- >
18
- <circle
19
- :class="[
20
- 'animate-circular-loader',
21
- 'origin-center',
22
- ]"
23
-
24
- cx="50%"
25
- cy="50%"
26
- r="7"
27
- :stroke="color === 'inherit' ? 'currentColor' : 'inherit'"
28
- />
29
- </g>
30
- </svg>
7
+ <template v-if="title">
8
+ <div :class="titleStyles">
9
+ {{ title }}
10
+ </div>
31
11
  </template>
32
-
33
- <template v-if="variant === 'linear'">
34
- <svg
35
- width="100%"
36
- height="4"
37
- >
38
- <g
39
- fill="none"
40
- stroke-width="4"
41
- stroke-linecap="round"
12
+ <div :class="containerStyles">
13
+ <template v-if="variant === 'circular'">
14
+ <svg
15
+ viewBox="0 0 16 16"
16
+ :width="computedSize"
17
+ :height="computedSize"
42
18
  >
43
- <line
44
- :class="[
45
- 'stroke-surface-variant',
46
- 'dark:stroke-surface-variant-dark',
47
- ]"
48
-
49
- x1="2"
50
- y1="50%"
51
- x2="calc(100% - 2px)"
52
- y2="50%"
53
- />
54
-
55
- <line
56
- :class="[
57
- 'animate-linear-loader',
58
- 'origin-center',
59
- ]"
60
-
61
- x1="2"
62
- y1="50%"
63
- x2="calc(100% - 2px)"
64
- y2="50%"
65
- :stroke="color === 'inherit' ? 'currentColor' : 'inherit'"
66
- />
67
- </g>
68
- </svg>
19
+ <g
20
+ fill="none"
21
+ stroke-width="2"
22
+ stroke-linecap="round"
23
+ >
24
+ <circle
25
+ :class="[
26
+ 'animate-circular-loader',
27
+ 'origin-center',
28
+ ]"
29
+ cx="50%"
30
+ cy="50%"
31
+ r="7"
32
+ :stroke="color === 'inherit' ? 'currentColor' : 'inherit'"
33
+ />
34
+ </g>
35
+ </svg>
36
+ </template>
37
+
38
+ <template v-if="variant === 'linear'">
39
+ <svg
40
+ width="100%"
41
+ height="4"
42
+ >
43
+ <g
44
+ fill="none"
45
+ stroke-width="4"
46
+ stroke-linecap="round"
47
+ >
48
+ <line
49
+ :class="[
50
+ 'stroke-surface-variant',
51
+ 'dark:stroke-surface-variant-dark',
52
+ ]"
53
+ x1="2"
54
+ y1="50%"
55
+ x2="calc(100% - 2px)"
56
+ y2="50%"
57
+ />
58
+
59
+ <line
60
+ :class="[
61
+ 'animate-linear-loader',
62
+ 'origin-center',
63
+ ]"
64
+ x1="2"
65
+ y1="50%"
66
+ x2="calc(100% - 2px)"
67
+ y2="50%"
68
+ :stroke="color === 'inherit' ? 'currentColor' : 'inherit'"
69
+ />
70
+ </g>
71
+ </svg>
72
+ </template>
73
+ </div>
74
+ <template v-if="description">
75
+ <div :class="descriptionStyles">
76
+ {{ description }}
77
+ </div>
69
78
  </template>
70
79
  </div>
71
80
  </template>
@@ -74,7 +83,7 @@
74
83
  import { computed, defineComponent, PropType, ref } from 'vue-demi';
75
84
  import { useClassAttribute } from '../../hooks';
76
85
  import { LoaderColor, LoaderSize, LoaderVariant } from './props';
77
- import { LoaderRoot, LoaderRootColors } from './styles';
86
+ import { LoaderRoot, LoaderRootColors, LoaderTitle, LoaderDescription, LoaderContainer } from './styles';
78
87
 
79
88
  export default defineComponent({
80
89
  name: 'OrLoader',
@@ -96,6 +105,16 @@ export default defineComponent({
96
105
  type: String as PropType<LoaderSize>,
97
106
  default: LoaderSize.M,
98
107
  },
108
+
109
+ title: {
110
+ type: String,
111
+ default: undefined,
112
+ },
113
+
114
+ description: {
115
+ type: String,
116
+ default: undefined,
117
+ },
99
118
  },
100
119
 
101
120
  expose: [
@@ -116,6 +135,18 @@ export default defineComponent({
116
135
  classAttribute.value,
117
136
  ]);
118
137
 
138
+ const titleStyles = computed(() => [
139
+ ...LoaderTitle,
140
+ ]);
141
+
142
+ const descriptionStyles = computed(() => [
143
+ ...LoaderDescription,
144
+ ]);
145
+
146
+ const containerStyles = computed(() => [
147
+ ...LoaderContainer,
148
+ ]);
149
+
119
150
  // State
120
151
  const computedSize = computed(() => {
121
152
  switch (props.size) {
@@ -130,6 +161,9 @@ export default defineComponent({
130
161
  return {
131
162
  root,
132
163
  rootStyles,
164
+ containerStyles,
165
+ titleStyles,
166
+ descriptionStyles,
133
167
  computedSize,
134
168
  };
135
169
  },
@@ -3,6 +3,9 @@ import { LoaderColor } from './props';
3
3
  export const LoaderRoot: string[] = [
4
4
  // Layout
5
5
  'contents',
6
+ 'flex',
7
+ 'flex-col',
8
+ 'space-y-md',
6
9
  ];
7
10
 
8
11
  export const LoaderRootColors: Record<LoaderColor, string[]> = {
@@ -20,3 +23,22 @@ export const LoaderRootColors: Record<LoaderColor, string[]> = {
20
23
 
21
24
  'inherit': [],
22
25
  };
26
+
27
+ export const LoaderContainer: string[] = [
28
+ 'flex',
29
+ 'justify-center',
30
+ ];
31
+
32
+ export const LoaderTitle: string[] = [
33
+ 'typography-headline-2',
34
+ 'text-center',
35
+ 'text-on-background',
36
+ 'dark:text-on-background-dark',
37
+ ];
38
+
39
+ export const LoaderDescription: string[] = [
40
+ 'typography-body-2-regular',
41
+ 'text-center',
42
+ 'text-outline',
43
+ 'dark:text-outline-dark',
44
+ ];