@onereach/ui-components 2.69.0-beta.2073.0 → 2.69.0-beta.2078.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 (60) hide show
  1. package/dist/bundled/v2/{OrCardCollection-dac9fd1e.js → OrCardCollection-a9a779ea.js} +1 -1
  2. package/dist/bundled/v2/{OrConfirm-ff57274f.js → OrConfirm-18c534df.js} +1 -1
  3. package/dist/bundled/v2/{OrInput-4b82eb59.js → OrInput-8b90e08f.js} +4 -4
  4. package/dist/bundled/v2/{OrSearch-e34afaee.js → OrSearch-9d402f56.js} +1 -1
  5. package/dist/bundled/v2/{OrSelect-a2dbc872.js → OrSelect-759b4410.js} +2 -2
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
  8. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  9. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
  10. package/dist/bundled/v2/components/or-empty-state-v3/index.js +23 -24
  11. package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
  12. package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
  13. package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
  14. package/dist/bundled/v2/index.js +6 -6
  15. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-7a07be47.js → OrCardCollection.vue_vue_type_script_lang-3993a015.js} +1 -1
  16. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-2e7fa659.js → OrConfirm.vue_vue_type_script_lang-289b5600.js} +1 -1
  17. package/dist/bundled/v3/{OrInput-e97211bb.js → OrInput-fa782fc1.js} +1 -1
  18. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-1d2a20e0.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +1 -1
  19. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-619d6eb7.js → OrSelect.vue_vue_type_script_lang-dfadd12f.js} +1 -1
  20. package/dist/bundled/v3/components/index.js +5 -5
  21. package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
  22. package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -2
  23. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
  24. package/dist/bundled/v3/components/or-empty-state-v3/index.js +23 -23
  25. package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
  26. package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
  27. package/dist/bundled/v3/index.js +11 -11
  28. package/dist/esm/v2/{OrCardCollection-e46b220e.js → OrCardCollection-4f001551.js} +1 -1
  29. package/dist/esm/v2/{OrConfirm-74e21c56.js → OrConfirm-b0b2e43c.js} +1 -1
  30. package/dist/esm/v2/{OrInput-b8a1627f.js → OrInput-2f16a7ac.js} +4 -4
  31. package/dist/esm/v2/{OrSearch-0c0d1773.js → OrSearch-ddb7c1fe.js} +1 -1
  32. package/dist/esm/v2/{OrSelect-acc13b49.js → OrSelect-ac382aa6.js} +2 -2
  33. package/dist/esm/v2/components/index.js +5 -5
  34. package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
  35. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  36. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
  37. package/dist/esm/v2/components/or-empty-state-v3/index.js +23 -24
  38. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  39. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  40. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  41. package/dist/esm/v2/index.js +5 -5
  42. package/dist/esm/v3/{OrCardCollection-5924d035.js → OrCardCollection-5a0febaf.js} +1 -1
  43. package/dist/esm/v3/{OrConfirm-a3f312a6.js → OrConfirm-906427ef.js} +1 -1
  44. package/dist/esm/v3/{OrInput-e2ac1182.js → OrInput-41691fb3.js} +1 -1
  45. package/dist/esm/v3/{OrSearch-01225d82.js → OrSearch-cdde55ce.js} +1 -1
  46. package/dist/esm/v3/{OrSelect-fbf4a140.js → OrSelect-fee9c099.js} +2 -2
  47. package/dist/esm/v3/components/index.js +5 -5
  48. package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
  49. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  50. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
  51. package/dist/esm/v3/components/or-empty-state-v3/index.js +23 -23
  52. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  53. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  54. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  55. package/dist/esm/v3/index.js +5 -5
  56. package/package.json +1 -1
  57. package/src/components/or-empty-state-v3/OrEmptyState.vue +36 -41
  58. package/src/components/or-empty-state-v3/styles.ts +8 -12
  59. package/src/components/or-input-v3/OrInput.vue +1 -1
  60. package/src/components/or-select-v3/OrSelect.vue +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent } from 'vue-demi';
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString, renderSlot } from 'vue';
3
3
 
4
4
  var EmptyStateSize;
@@ -27,14 +27,14 @@ const EmptyStateImageSizes = {
27
27
  };
28
28
  const EmptyStateHeading = [
29
29
  // Theme
30
- 'text-on-background', 'dark:text-on-background-dark'];
30
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
31
31
  const EmptyStateHeadingSizes = {
32
32
  [EmptyStateSize.L]: [
33
33
  // Typography
34
- 'text-headline-2', 'font-headline-2'],
34
+ 'typography-headline-2'],
35
35
  [EmptyStateSize.M]: [
36
36
  // Typography
37
- 'text-headline-4', 'font-headline-4']
37
+ 'typography-headline-4']
38
38
  };
39
39
  const EmptyStateText = ['text-center',
40
40
  // Theme
@@ -43,10 +43,10 @@ const EmptyStateContent = EmptyStateText;
43
43
  const EmptyStateTextSizes = {
44
44
  [EmptyStateSize.L]: [
45
45
  // Typography
46
- 'text-body-2-regular', 'font-body-2-regular'],
46
+ 'typography-body-2-regular'],
47
47
  [EmptyStateSize.M]: [
48
48
  // Typography
49
- 'text-caption-regular', 'font-caption-regular']
49
+ 'typography-caption-regular']
50
50
  };
51
51
  const EmptyStateContentSizes = EmptyStateTextSizes;
52
52
 
@@ -91,29 +91,29 @@ var script = defineComponent({
91
91
  default: undefined
92
92
  }
93
93
  },
94
- computed: {
95
- rootClasses() {
96
- return ['or-empty-state', ...EmptyStateRoot];
97
- },
98
- imageClasses() {
99
- return ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[this.size]];
100
- },
101
- headingClasses() {
102
- return ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[this.size]];
103
- },
104
- textClasses() {
105
- return ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[this.size]];
106
- },
107
- slotClasses() {
108
- return ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[this.size]];
109
- }
94
+ setup(props) {
95
+ const root = ref();
96
+ const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
97
+ const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
98
+ const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
99
+ const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
100
+ const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
101
+ return {
102
+ root,
103
+ rootClasses,
104
+ imageClasses,
105
+ headingClasses,
106
+ textClasses,
107
+ slotClasses
108
+ };
110
109
  }
111
110
  });
112
111
 
113
112
  const _hoisted_1 = ["src"];
114
113
  function render(_ctx, _cache, $props, $setup, $data, $options) {
115
114
  return openBlock(), createElementBlock("div", {
116
- class: normalizeClass(["static", _ctx.rootClasses])
115
+ ref: "root",
116
+ class: normalizeClass(_ctx.rootClasses)
117
117
  }, [_ctx.imageSrc ? (openBlock(), createElementBlock("img", {
118
118
  key: 0,
119
119
  src: _ctx.imageSrc,
@@ -1,4 +1,4 @@
1
- export { I as InputType, s as OrInputV3 } from '../../OrInput-e2ac1182.js';
1
+ export { I as InputType, s as OrInputV3 } from '../../OrInput-41691fb3.js';
2
2
  export { a as InputSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -1,9 +1,9 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-01225d82.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-cdde55ce.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import '../../useClassAttribute-47fdb016.js';
6
- import '../../OrInput-e2ac1182.js';
6
+ import '../../OrInput-41691fb3.js';
7
7
  import '../../OrError-ec8c709d.js';
8
8
  import 'vue';
9
9
  import '../../OrHint-74bb732d.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-fbf4a140.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-fee9c099.js';
2
2
  export { a as SelectSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
@@ -13,7 +13,7 @@ import '../../OrError-ec8c709d.js';
13
13
  import '../../OrExpansionPanel-311e64cf.js';
14
14
  import '../../OrIcon-b195169c.js';
15
15
  import '../../OrHint-74bb732d.js';
16
- import '../../OrInput-e2ac1182.js';
16
+ import '../../OrInput-41691fb3.js';
17
17
  import '../../OrIconButton-1eebcafc.js';
18
18
  import '../../OrTooltip-50d27b4f.js';
19
19
  import '../../OrPopover-1075dd38.js';
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
6
6
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-f4b9ee51.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
- export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-5924d035.js';
9
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-5a0febaf.js';
10
10
  export { s as OrCardV3 } from './OrCard-fd92f7c8.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.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-a3f312a6.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-906427ef.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-98252eef.js';
@@ -34,7 +34,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-3102
34
34
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
35
35
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.js';
36
36
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-5247ab25.js';
37
- export { I as InputType, s as OrInputV3 } from './OrInput-e2ac1182.js';
37
+ export { I as InputType, s as OrInputV3 } from './OrInput-41691fb3.js';
38
38
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
39
39
  export { s as OrLabel } from './OrLabel-876f8729.js';
40
40
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-bdaec602.js';
@@ -58,10 +58,10 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
58
58
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
59
59
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
60
60
  export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
61
- export { s as OrSearchV3 } from './OrSearch-01225d82.js';
61
+ export { s as OrSearchV3 } from './OrSearch-cdde55ce.js';
62
62
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
63
63
  export { s as OrSelect } from './OrSelect-0821b907.js';
64
- export { s as OrSelectV3 } from './OrSelect-fbf4a140.js';
64
+ export { s as OrSelectV3 } from './OrSelect-fee9c099.js';
65
65
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
66
66
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
67
67
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.69.0-beta.2073.0",
3
+ "version": "2.69.0-beta.2078.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="static"
3
+ ref="root"
4
4
  :class="rootClasses">
5
5
  <img v-if="imageSrc"
6
6
  :src="imageSrc"
@@ -20,7 +20,7 @@
20
20
  </template>
21
21
 
22
22
  <script lang="ts">
23
- import { defineComponent, PropType } from 'vue-demi';
23
+ import { computed, defineComponent, PropType, ref } from 'vue-demi';
24
24
  import { EmptyStateSize } from '.';
25
25
  import {
26
26
  EmptyStateContent,
@@ -75,47 +75,42 @@ export default defineComponent({
75
75
  default: undefined,
76
76
  },
77
77
  },
78
- computed: {
79
- rootClasses(): string[] {
80
- return [
81
- 'or-empty-state',
82
- ...EmptyStateRoot,
83
- ];
84
- },
85
- imageClasses(): string[] {
86
- return [
87
- 'or-empty-state_image',
88
- ...EmptyStateImage,
89
- ...EmptyStateImageSizes[this.size],
90
-
91
- ];
92
- },
93
- headingClasses(): string[] {
94
- return [
95
- 'or-empty-state_heading',
96
- ...EmptyStateHeading,
97
- ...EmptyStateHeadingSizes[this.size],
78
+ setup(props) {
79
+ const root = ref<HTMLElement>();
98
80
 
99
- ];
100
- },
101
- textClasses(): string[] {
102
- return [
103
- 'or-empty-state_text',
104
- ...EmptyStateText,
105
- ...EmptyStateTextSizes[this.size],
81
+ const rootClasses = computed(() => [
82
+ 'or-empty-state',
83
+ ...EmptyStateRoot,
84
+ ]);
85
+ const imageClasses = computed(() => [
86
+ 'or-empty-state_image',
87
+ ...EmptyStateImage,
88
+ ...EmptyStateImageSizes[props.size],
89
+ ]);
90
+ const headingClasses = computed(() => [
91
+ 'or-empty-state_heading',
92
+ ...EmptyStateHeading,
93
+ ...EmptyStateHeadingSizes[props.size],
94
+ ]);
95
+ const textClasses = computed(() => [
96
+ 'or-empty-state_text',
97
+ ...EmptyStateText,
98
+ ...EmptyStateTextSizes[props.size],
99
+ ]);
100
+ const slotClasses = computed(() => [
101
+ 'or-empty-state_content',
102
+ ...EmptyStateContent,
103
+ ...EmptyStateContentSizes[props.size],
104
+ ]);
106
105
 
107
- ];
108
- },
109
- slotClasses(): string[] {
110
- return [
111
- 'or-empty-state_content',
112
- ...EmptyStateContent,
113
- ...EmptyStateContentSizes[this.size],
114
- ];
115
- },
106
+ return {
107
+ root,
108
+ rootClasses,
109
+ imageClasses,
110
+ headingClasses,
111
+ textClasses,
112
+ slotClasses,
113
+ }
116
114
  },
117
115
  });
118
116
  </script>
119
-
120
- <style scoped>
121
- </style>
@@ -29,26 +29,24 @@ export const EmptyStateImageSizes: Record<EmptyStateSize, string[]> = {
29
29
  // Box
30
30
  'h-2xl',
31
31
  ],
32
- }
32
+ };
33
33
 
34
34
  export const EmptyStateHeading: string[] = [
35
35
  // Theme
36
- 'text-on-background',
37
- 'dark:text-on-background-dark'
36
+ 'theme-foreground-default',
37
+ 'dark:theme-foreground-default-dark',
38
38
  ];
39
39
 
40
40
  export const EmptyStateHeadingSizes: Record<EmptyStateSize, string[]> = {
41
41
  [EmptyStateSize.L]: [
42
42
  // Typography
43
- 'text-headline-2',
44
- 'font-headline-2',
43
+ 'typography-headline-2',
45
44
  ],
46
45
  [EmptyStateSize.M]: [
47
46
  // Typography
48
- 'text-headline-4',
49
- 'font-headline-4',
47
+ 'typography-headline-4',
50
48
  ],
51
- }
49
+ };
52
50
 
53
51
  export const EmptyStateText: string[] = [
54
52
  'text-center',
@@ -63,13 +61,11 @@ export const EmptyStateContent = EmptyStateText;
63
61
  export const EmptyStateTextSizes: Record<EmptyStateSize, string[]> = {
64
62
  [EmptyStateSize.L]: [
65
63
  // Typography
66
- 'text-body-2-regular',
67
- 'font-body-2-regular',
64
+ 'typography-body-2-regular',
68
65
  ],
69
66
  [EmptyStateSize.M]: [
70
67
  // Typography
71
- 'text-caption-regular',
72
- 'font-caption-regular',
68
+ 'typography-caption-regular',
73
69
  ],
74
70
  };
75
71
 
@@ -41,7 +41,7 @@
41
41
  @blur="$emit('blur', $event)"
42
42
  >
43
43
 
44
- <div :class="['layout-row', 'm-[-4px] md:m-[-2px]']">
44
+ <div :class="['layout-row']">
45
45
  <template v-if="type === 'password'">
46
46
  <OrIconButton
47
47
  :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
@@ -74,7 +74,7 @@
74
74
  +{{ outerItems.length }}
75
75
  </template>
76
76
 
77
- <div :class="['layout-row', 'm-[-4px] md:m-[-2px]']">
77
+ <div :class="['layout-row']">
78
78
  <OrIcon
79
79
  :icon="popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'"
80
80
  :variant="'outlined'"