@onereach/ui-components 2.67.9-beta.2030.0 → 2.67.9-beta.2031.0

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 (62) hide show
  1. package/dist/bundled/v2/{OrButton-6c5fb9df.js → OrButton-6d67c16c.js} +1 -1
  2. package/dist/bundled/v2/{OrConfirm-1b5ee24c.js → OrConfirm-6a6daa14.js} +1 -1
  3. package/dist/bundled/v2/{OrLoader-6808ea86.js → OrLoader-6a1f937b.js} +15 -4
  4. package/dist/bundled/v2/{OrSwitch-80d6472f.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.vue.d.ts +6 -0
  9. package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
  10. package/dist/bundled/v2/components/or-loader-v3/styles.d.ts +3 -0
  11. package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
  12. package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
  13. package/dist/bundled/v2/index.js +5 -5
  14. package/dist/bundled/v2/{types-4b5a7133.js → types-a648d591.js} +1 -1
  15. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-8399c399.js → OrButton.vue_vue_type_script_lang-7d914104.js} +2 -2
  16. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-30c62bb4.js → OrConfirm.vue_vue_type_script_lang-ee029628.js} +1 -1
  17. package/dist/bundled/v3/OrLoader-c4bbef2f.js +64 -0
  18. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-e2f5bb7d.js → OrLoader.vue_vue_type_script_lang-5405040c.js} +9 -0
  19. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-e8ece219.js → OrSwitch.vue_vue_type_script_lang-c72499ac.js} +2 -2
  20. package/dist/bundled/v3/{OrToastContainer-b4bd1d2f.js → OrToastContainer-03571359.js} +1 -1
  21. package/dist/bundled/v3/components/index.js +6 -6
  22. package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
  23. package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -4
  24. package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +6 -0
  25. package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
  26. package/dist/bundled/v3/components/or-loader-v3/styles.d.ts +3 -0
  27. package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
  28. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  29. package/dist/bundled/v3/index.js +9 -9
  30. package/dist/bundled/v3/{types-3e263ea6.js → types-e8242d1d.js} +2 -2
  31. package/dist/esm/v2/{OrButton-fe4a5114.js → OrButton-04390a52.js} +1 -1
  32. package/dist/esm/v2/{OrConfirm-bee63371.js → OrConfirm-6bff1a45.js} +1 -1
  33. package/dist/esm/v2/{OrLoader-0dcf4c01.js → OrLoader-f857d55b.js} +15 -4
  34. package/dist/esm/v2/{OrSwitch-f077e9d5.js → OrSwitch-846de5ce.js} +1 -1
  35. package/dist/esm/v2/components/index.js +5 -5
  36. package/dist/esm/v2/components/or-button-v3/index.js +2 -2
  37. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  38. package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +6 -0
  39. package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
  40. package/dist/esm/v2/components/or-loader-v3/styles.d.ts +3 -0
  41. package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
  42. package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
  43. package/dist/esm/v2/index.js +5 -5
  44. package/dist/esm/v2/{types-87ded1fd.js → types-d6a767b3.js} +1 -1
  45. package/dist/esm/v3/{OrButton-9021f9c8.js → OrButton-3670279e.js} +1 -1
  46. package/dist/esm/v3/{OrConfirm-b090a158.js → OrConfirm-748ed50b.js} +1 -1
  47. package/dist/esm/v3/{OrLoader-35e5dfaf.js → OrLoader-b3cf4231.js} +31 -22
  48. package/dist/esm/v3/{OrSwitch-5415978d.js → OrSwitch-94399738.js} +1 -1
  49. package/dist/esm/v3/components/index.js +5 -5
  50. package/dist/esm/v3/components/or-button-v3/index.js +2 -2
  51. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  52. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +6 -0
  53. package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
  54. package/dist/esm/v3/components/or-loader-v3/styles.d.ts +3 -0
  55. package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
  56. package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
  57. package/dist/esm/v3/index.js +5 -5
  58. package/dist/esm/v3/{types-977d9680.js → types-8ef262da.js} +1 -1
  59. package/package.json +1 -1
  60. package/src/components/or-loader-v3/OrLoader.vue +78 -64
  61. package/src/components/or-loader-v3/styles.ts +19 -0
  62. package/dist/bundled/v3/OrLoader-c51c2f43.js +0 -64
@@ -1,4 +1,4 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-977d9680.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-35e5dfaf.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-9021f9c8.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-b090a158.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-35e5dfaf.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-5415978d.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-977d9680.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-35e5dfaf.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.9-beta.2030.0",
3
+ "version": "2.67.9-beta.2031.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -5,75 +5,74 @@
5
5
  :class="rootStyles"
6
6
  >
7
7
  <template v-if="title">
8
- <div class="typography-headline-2 text-center text-on-background dark:text-on-background-dark">
8
+ <div :class="titleStyles">
9
9
  {{ title }}
10
10
  </div>
11
11
  </template>
12
- <template v-if="variant === 'circular'">
13
- <svg
14
- viewBox="0 0 16 16"
15
- :width="computedSize"
16
- :height="computedSize"
17
- >
18
- <g
19
- fill="none"
20
- stroke-width="2"
21
- 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"
22
18
  >
23
- <circle
24
- :class="[
25
- 'animate-circular-loader',
26
- 'origin-center',
27
- ]"
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"
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"
47
42
  >
48
- <line
49
- :class="[
50
- 'stroke-surface-variant',
51
- 'dark:stroke-surface-variant-dark',
52
- ]"
53
-
54
- x1="2"
55
- y1="50%"
56
- x2="calc(100% - 2px)"
57
- y2="50%"
58
- />
59
-
60
- <line
61
- :class="[
62
- 'animate-linear-loader',
63
- 'origin-center',
64
- ]"
65
-
66
- x1="2"
67
- y1="50%"
68
- x2="calc(100% - 2px)"
69
- y2="50%"
70
- :stroke="color === 'inherit' ? 'currentColor' : 'inherit'"
71
- />
72
- </g>
73
- </svg>
74
- </template>
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>
75
74
  <template v-if="description">
76
- <div class="typography-body-2-regular text-center text-outline dark:text-outline-dark">
75
+ <div :class="descriptionStyles">
77
76
  {{ description }}
78
77
  </div>
79
78
  </template>
@@ -84,7 +83,7 @@
84
83
  import { computed, defineComponent, PropType, ref } from 'vue-demi';
85
84
  import { useClassAttribute } from '../../hooks';
86
85
  import { LoaderColor, LoaderSize, LoaderVariant } from './props';
87
- import { LoaderRoot, LoaderRootColors } from './styles';
86
+ import { LoaderRoot, LoaderRootColors, LoaderTitle, LoaderDescription, LoaderContainer } from './styles';
88
87
 
89
88
  export default defineComponent({
90
89
  name: 'OrLoader',
@@ -136,6 +135,18 @@ export default defineComponent({
136
135
  classAttribute.value,
137
136
  ]);
138
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
+
139
150
  // State
140
151
  const computedSize = computed(() => {
141
152
  switch (props.size) {
@@ -150,6 +161,9 @@ export default defineComponent({
150
161
  return {
151
162
  root,
152
163
  rootStyles,
164
+ containerStyles,
165
+ titleStyles,
166
+ descriptionStyles,
153
167
  computedSize,
154
168
  };
155
169
  },
@@ -23,3 +23,22 @@ export const LoaderRootColors: Record<LoaderColor, string[]> = {
23
23
 
24
24
  'inherit': [],
25
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
+ ];
@@ -1,64 +0,0 @@
1
- import { s as script } from './OrLoader.vue_vue_type_script_lang-e2f5bb7d.js';
2
- import { openBlock, createElementBlock, mergeProps, toDisplayString, createCommentVNode, createElementVNode, normalizeClass } from 'vue';
3
-
4
- const _hoisted_1 = {
5
- key: 0,
6
- class: "typography-headline-2 text-center text-on-background dark:text-on-background-dark"
7
- };
8
- const _hoisted_2 = ["width", "height"];
9
- const _hoisted_3 = {
10
- fill: "none",
11
- "stroke-width": "2",
12
- "stroke-linecap": "round"
13
- };
14
- const _hoisted_4 = ["stroke"];
15
- const _hoisted_5 = {
16
- key: 2,
17
- width: "100%",
18
- height: "4"
19
- };
20
- const _hoisted_6 = {
21
- fill: "none",
22
- "stroke-width": "4",
23
- "stroke-linecap": "round"
24
- };
25
- const _hoisted_7 = /*#__PURE__*/createElementVNode("line", {
26
- class: /*#__PURE__*/normalizeClass(['stroke-surface-variant', 'dark:stroke-surface-variant-dark']),
27
- x1: "2",
28
- y1: "50%",
29
- x2: "calc(100% - 2px)",
30
- y2: "50%"
31
- }, null, -1 /* HOISTED */);
32
- const _hoisted_8 = ["stroke"];
33
- const _hoisted_9 = {
34
- key: 3,
35
- class: "typography-body-2-regular text-center text-outline dark:text-outline-dark"
36
- };
37
- function render(_ctx, _cache, $props, $setup, $data, $options) {
38
- return openBlock(), createElementBlock("div", mergeProps({
39
- ref: "root"
40
- }, _ctx.$attrs, {
41
- class: _ctx.rootStyles
42
- }), [_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.title), 1 /* TEXT */)) : createCommentVNode("v-if", true), _ctx.variant === 'circular' ? (openBlock(), createElementBlock("svg", {
43
- key: 1,
44
- viewBox: "0 0 16 16",
45
- width: _ctx.computedSize,
46
- height: _ctx.computedSize
47
- }, [createElementVNode("g", _hoisted_3, [createElementVNode("circle", {
48
- class: normalizeClass(['animate-circular-loader', 'origin-center']),
49
- cx: "50%",
50
- cy: "50%",
51
- r: "7",
52
- stroke: _ctx.color === 'inherit' ? 'currentColor' : 'inherit'
53
- }, null, 8 /* PROPS */, _hoisted_4)])], 8 /* PROPS */, _hoisted_2)) : createCommentVNode("v-if", true), _ctx.variant === 'linear' ? (openBlock(), createElementBlock("svg", _hoisted_5, [createElementVNode("g", _hoisted_6, [_hoisted_7, createElementVNode("line", {
54
- class: normalizeClass(['animate-linear-loader', 'origin-center']),
55
- x1: "2",
56
- y1: "50%",
57
- x2: "calc(100% - 2px)",
58
- y2: "50%",
59
- stroke: _ctx.color === 'inherit' ? 'currentColor' : 'inherit'
60
- }, null, 8 /* PROPS */, _hoisted_8)])])) : createCommentVNode("v-if", true), _ctx.description ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(_ctx.description), 1 /* TEXT */)) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */);
61
- }
62
-
63
- script.render = render;
64
- script.__file = "src/components/or-loader-v3/OrLoader.vue";