@onereach/ui-components 2.72.2-beta.2257.0 → 2.73.0-beta.2258.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 (102) hide show
  1. package/dist/bundled/v2/{OrCardCollection-134b0ffe.js → OrCardCollection-06ecb8e1.js} +1 -1
  2. package/dist/bundled/v2/{OrCode-fc6876ec.js → OrCode-0cf7596d.js} +184 -12
  3. package/dist/bundled/v2/{OrConfirm-3eceda8f.js → OrConfirm-8c0e957d.js} +1 -1
  4. package/dist/bundled/v2/{OrInput-eebed0aa.js → OrInput-00070eee.js} +11 -28
  5. package/dist/bundled/v2/{OrInputBox-10aecdc4.js → OrInputBox-2f559e98.js} +1 -1
  6. package/dist/bundled/v2/{OrNotification-3909aaf2.js → OrNotification-2e2a1941.js} +3 -3
  7. package/dist/bundled/v2/{OrSearch-5093c721.js → OrSearch-bb87b34c.js} +2 -2
  8. package/dist/bundled/v2/{OrSelect-974a83f8.js → OrSelect-2ececfc1.js} +2 -2
  9. package/dist/bundled/v2/{OrSkeletonText-242d22f3.js → OrSkeletonText-2f1a3cc7.js} +3 -3
  10. package/dist/bundled/v2/{OrTextarea-dba56362.js → OrTextarea-5c57c02b.js} +1 -1
  11. package/dist/bundled/v2/components/index.js +11 -11
  12. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -4
  13. package/dist/bundled/v2/components/or-code/OrCode.vue.d.ts +10 -0
  14. package/dist/bundled/v2/components/or-code/index.js +1 -1
  15. package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
  16. package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
  17. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
  18. package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
  19. package/dist/bundled/v2/components/or-notification/index.js +1 -1
  20. package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
  21. package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
  22. package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
  23. package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
  24. package/dist/bundled/v2/index.js +11 -11
  25. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-bd6bc732.js → OrCardCollection.vue_vue_type_script_lang-e2980d04.js} +1 -1
  26. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c55de81d.js → OrCode.vue_vue_type_script_lang-df150e3b.js} +180 -8
  27. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-b7e3ac90.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
  28. package/dist/bundled/v3/{OrInput-889fbd90.js → OrInput-dcf2606e.js} +6 -15
  29. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-8d2b69ae.js → OrInput.vue_vue_type_script_lang-27220623.js} +3 -15
  30. package/dist/bundled/v3/{OrInputBox-c8beb6c2.js → OrInputBox-4c7900c2.js} +1 -1
  31. package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-0174af07.js → OrInputBox.vue_vue_type_script_lang-47d98e81.js} +1 -1
  32. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-97d023eb.js → OrSearch.vue_vue_type_script_lang-321907ec.js} +3 -3
  33. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-b20d66fa.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +4 -4
  34. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-7c88ef85.js → OrTextarea.vue_vue_type_script_lang-296da567.js} +2 -2
  35. package/dist/bundled/v3/components/index.js +11 -11
  36. package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -6
  37. package/dist/bundled/v3/components/or-code/OrCode.vue.d.ts +10 -0
  38. package/dist/bundled/v3/components/or-code/index.js +1 -1
  39. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
  40. package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
  41. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
  42. package/dist/bundled/v3/components/or-input-v3/index.js +3 -5
  43. package/dist/bundled/v3/components/or-search-v3/index.js +5 -7
  44. package/dist/bundled/v3/components/or-select-v3/index.js +5 -7
  45. package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
  46. package/dist/bundled/v3/index.js +21 -21
  47. package/dist/esm/v2/{OrCardCollection-4f8957aa.js → OrCardCollection-251ab033.js} +2 -2
  48. package/dist/esm/v2/{OrCode-d4400b42.js → OrCode-e2ce05ea.js} +30 -12
  49. package/dist/esm/v2/{OrConfirm-d87f2ae9.js → OrConfirm-9dbdedd7.js} +1 -1
  50. package/dist/esm/v2/{OrInput-cf2900cd.js → OrInput-59a15d80.js} +11 -28
  51. package/dist/esm/v2/{OrInputBox-1a8887df.js → OrInputBox-9ceb9fc4.js} +1 -1
  52. package/dist/esm/v2/{OrNotification-a9231a83.js → OrNotification-a49e76d3.js} +3 -3
  53. package/dist/esm/v2/{OrSearch-3e058ad4.js → OrSearch-f42d588d.js} +2 -2
  54. package/dist/esm/v2/{OrSelect-bf21fff7.js → OrSelect-e31d1c8b.js} +2 -2
  55. package/dist/esm/v2/{OrSkeletonText-cc94bdc9.js → OrSkeletonText-24509efe.js} +3 -3
  56. package/dist/esm/v2/{OrTextarea-2ec6facd.js → OrTextarea-a5a3572b.js} +1 -1
  57. package/dist/esm/v2/components/index.js +12 -11
  58. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
  59. package/dist/esm/v2/components/or-code/OrCode.vue.d.ts +10 -0
  60. package/dist/esm/v2/components/or-code/index.js +3 -2
  61. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
  62. package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
  63. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
  64. package/dist/esm/v2/components/or-input-v3/index.js +3 -4
  65. package/dist/esm/v2/components/or-notification/index.js +1 -1
  66. package/dist/esm/v2/components/or-search-v3/index.js +4 -5
  67. package/dist/esm/v2/components/or-select-v3/index.js +4 -5
  68. package/dist/esm/v2/components/or-skeleton/index.js +1 -1
  69. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
  70. package/dist/esm/v2/index.js +11 -10
  71. package/dist/esm/v3/{OrCardCollection-ab9b6d70.js → OrCardCollection-8b8e3745.js} +2 -2
  72. package/dist/esm/v3/{OrCode-5ed69c23.js → OrCode-72688173.js} +27 -9
  73. package/dist/esm/v3/{OrConfirm-223b1303.js → OrConfirm-37454a63.js} +1 -1
  74. package/dist/esm/v3/{OrInput-5afc20da.js → OrInput-bd054213.js} +7 -27
  75. package/dist/esm/v3/{OrInputBox-74646840.js → OrInputBox-e16ade90.js} +1 -1
  76. package/dist/esm/v3/{OrNotification-e85a4956.js → OrNotification-eb08de33.js} +1 -1
  77. package/dist/esm/v3/{OrSearch-100ed7c8.js → OrSearch-4c5c44f2.js} +2 -2
  78. package/dist/esm/v3/{OrSelect-f1a2a55d.js → OrSelect-466e50ca.js} +2 -2
  79. package/dist/esm/v3/{OrSkeletonText-2b1610ce.js → OrSkeletonText-0546754d.js} +3 -3
  80. package/dist/esm/v3/{OrTextarea-3e28946b.js → OrTextarea-37566985.js} +1 -1
  81. package/dist/esm/v3/components/index.js +12 -11
  82. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  83. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +10 -0
  84. package/dist/esm/v3/components/or-code/index.js +3 -2
  85. package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
  86. package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
  87. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
  88. package/dist/esm/v3/components/or-input-v3/index.js +3 -4
  89. package/dist/esm/v3/components/or-notification/index.js +1 -1
  90. package/dist/esm/v3/components/or-search-v3/index.js +4 -5
  91. package/dist/esm/v3/components/or-select-v3/index.js +4 -5
  92. package/dist/esm/v3/components/or-skeleton/index.js +1 -1
  93. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  94. package/dist/esm/v3/index.js +11 -10
  95. package/package.json +3 -2
  96. package/src/components/or-code/OrCode.vue +23 -6
  97. package/src/components/or-input-box-v3/styles.ts +2 -2
  98. package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
  99. package/src/components/or-input-v3/OrInput.vue +19 -39
  100. package/src/components/or-notification/OrNotification.vue +26 -1
  101. package/src/components/or-skeleton/styles.scss +18 -3
  102. package/src/components/or-stepper/OrStepper.stories.ts +1 -1
@@ -9,6 +9,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
9
9
  fullscreenTarget: Ref<HTMLDivElement | undefined>;
10
10
  editor: EditorView;
11
11
  isHovered: Ref<boolean>;
12
+ isDark: Ref<boolean>;
13
+ themeObserver: {
14
+ isSupported: Ref<boolean>;
15
+ stop: () => void;
16
+ };
12
17
  }> & {
13
18
  isFullscreen: boolean;
14
19
  }, {
@@ -168,6 +173,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
168
173
  fullscreenTarget: Ref<HTMLDivElement | undefined>;
169
174
  editor: EditorView;
170
175
  isHovered: Ref<boolean>;
176
+ isDark: Ref<boolean>;
177
+ themeObserver: {
178
+ isSupported: Ref<boolean>;
179
+ stop: () => void;
180
+ };
171
181
  }>, {
172
182
  isFullscreen: boolean;
173
183
  }, {
@@ -1,9 +1,10 @@
1
- export { s as OrCode, O as OrCodeLanguages } from '../../OrCode-5ed69c23.js';
1
+ export { s as OrCode, O as OrCodeLanguages } from '../../OrCode-72688173.js';
2
2
  import '@codemirror/state';
3
3
  import '@codemirror/view';
4
4
  import '@codemirror/commands';
5
- import '@vueuse/core';
6
5
  import 'codemirror';
6
+ import '@vueuse/core';
7
+ import '@codemirror/theme-one-dark';
7
8
  import 'lodash';
8
9
  import 'vue-demi';
9
10
  import '../../OrIconButton-8be9c89f.js';
@@ -1,13 +1,12 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-223b1303.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-37454a63.js';
2
2
  import '@vueuse/core';
3
3
  import '@vueuse/math';
4
4
  import 'vue-demi';
5
5
  import '../../OrButton-c56998e7.js';
6
6
  import '../../OrLoader-a53d2edf.js';
7
7
  import 'vue';
8
- import '../../OrInput-5afc20da.js';
8
+ import '../../OrInput-bd054213.js';
9
9
  import '../../useIdAttribute-859439f0.js';
10
- import '../../useResponsive-a02e95b7.js';
11
10
  import '../../useValidationAttributes-d1abbe34.js';
12
11
  import '../../OrError-19198748.js';
13
12
  import '../../OrHint-6863124f.js';
@@ -17,9 +16,10 @@ import '../../OrTooltip-b07616f4.js';
17
16
  import '../../OrPopover-40217b49.js';
18
17
  import '@floating-ui/dom';
19
18
  import '../../useElevation-31bfe1f6.js';
19
+ import '../../useResponsive-a02e95b7.js';
20
20
  import '../../OrBottomSheet-13a416ef.js';
21
21
  import '../../OrOverlay-afad3aa4.js';
22
22
  import '../../OrTeleport.vue3-8099178c.js';
23
- import '../../OrInputBox-74646840.js';
23
+ import '../../OrInputBox-e16ade90.js';
24
24
  import '../../OrLabel-f700f9fb.js';
25
25
  import '../../style-inject.es-4c6f2515.js';
@@ -1,3 +1,3 @@
1
- export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-74646840.js';
1
+ export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-e16ade90.js';
2
2
  import 'vue-demi';
3
3
  import 'vue';
@@ -23,7 +23,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
23
23
  maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
24
24
  invalid: import("@vue/composition-api").ComputedRef<boolean>;
25
25
  disclosed: import("@vue/composition-api").Ref<boolean>;
26
- isMobile: import("@vue/composition-api").Ref<boolean>;
27
26
  focus: () => void;
28
27
  blur: () => void;
29
28
  }> & import("@vue/composition-api").Data, {}, {}, {
@@ -55,10 +54,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
55
54
  type: StringConstructor;
56
55
  default: undefined;
57
56
  };
58
- loading: {
59
- type: BooleanConstructor;
60
- default: boolean;
61
- };
62
57
  required: {
63
58
  type: BooleanConstructor;
64
59
  default: boolean;
@@ -104,10 +99,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
104
99
  type: StringConstructor;
105
100
  default: undefined;
106
101
  };
107
- loading: {
108
- type: BooleanConstructor;
109
- default: boolean;
110
- };
111
102
  required: {
112
103
  type: BooleanConstructor;
113
104
  default: boolean;
@@ -132,7 +123,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
132
123
  placeholder: string;
133
124
  hint: string;
134
125
  error: string;
135
- loading: boolean;
136
126
  required: boolean;
137
127
  readonly: boolean;
138
128
  disabled: boolean;
@@ -162,7 +152,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
162
152
  maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
163
153
  invalid: import("@vue/composition-api").ComputedRef<boolean>;
164
154
  disclosed: import("@vue/composition-api").Ref<boolean>;
165
- isMobile: import("@vue/composition-api").Ref<boolean>;
166
155
  focus: () => void;
167
156
  blur: () => void;
168
157
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
@@ -173,7 +162,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
173
162
  placeholder: string;
174
163
  hint: string;
175
164
  error: string;
176
- loading: boolean;
177
165
  required: boolean;
178
166
  readonly: boolean;
179
167
  disabled: boolean;
@@ -188,7 +176,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
188
176
  placeholder: string;
189
177
  hint: string;
190
178
  error: string;
191
- loading: boolean;
192
179
  required: boolean;
193
180
  readonly: boolean;
194
181
  disabled: boolean;
@@ -1,9 +1,8 @@
1
- export { I as InputType, s as OrInputV3 } from '../../OrInput-5afc20da.js';
2
- export { a as InputSize } from '../../OrInputBox-74646840.js';
1
+ export { I as InputType, s as OrInputV3 } from '../../OrInput-bd054213.js';
2
+ export { a as InputSize } from '../../OrInputBox-e16ade90.js';
3
3
  import 'vue-demi';
4
4
  import '../../useIdAttribute-859439f0.js';
5
5
  import '@vueuse/core';
6
- import '../../useResponsive-a02e95b7.js';
7
6
  import '../../useValidationAttributes-d1abbe34.js';
8
7
  import '../../OrError-19198748.js';
9
8
  import 'vue';
@@ -14,9 +13,9 @@ import '../../OrTooltip-b07616f4.js';
14
13
  import '../../OrPopover-40217b49.js';
15
14
  import '@floating-ui/dom';
16
15
  import '../../useElevation-31bfe1f6.js';
16
+ import '../../useResponsive-a02e95b7.js';
17
17
  import '../../OrBottomSheet-13a416ef.js';
18
18
  import '../../OrOverlay-afad3aa4.js';
19
19
  import '../../OrTeleport.vue3-8099178c.js';
20
20
  import '../../OrLabel-f700f9fb.js';
21
- import '../../OrLoader-a53d2edf.js';
22
21
  import '../../style-inject.es-4c6f2515.js';
@@ -1,4 +1,4 @@
1
- export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../../OrNotification-e85a4956.js';
1
+ export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../../OrNotification-eb08de33.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIcon-669503c3.js';
4
4
  import 'lodash';
@@ -1,10 +1,9 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-100ed7c8.js';
2
- export { a as SearchSize } from '../../OrInputBox-74646840.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-4c5c44f2.js';
2
+ export { a as SearchSize } from '../../OrInputBox-e16ade90.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
- import '../../OrInput-5afc20da.js';
5
+ import '../../OrInput-bd054213.js';
6
6
  import '../../useIdAttribute-859439f0.js';
7
- import '../../useResponsive-a02e95b7.js';
8
7
  import '../../useValidationAttributes-d1abbe34.js';
9
8
  import '../../OrError-19198748.js';
10
9
  import 'vue';
@@ -15,9 +14,9 @@ import '../../OrTooltip-b07616f4.js';
15
14
  import '../../OrPopover-40217b49.js';
16
15
  import '@floating-ui/dom';
17
16
  import '../../useElevation-31bfe1f6.js';
17
+ import '../../useResponsive-a02e95b7.js';
18
18
  import '../../OrBottomSheet-13a416ef.js';
19
19
  import '../../OrOverlay-afad3aa4.js';
20
20
  import '../../OrTeleport.vue3-8099178c.js';
21
21
  import '../../OrLabel-f700f9fb.js';
22
- import '../../OrLoader-a53d2edf.js';
23
22
  import '../../style-inject.es-4c6f2515.js';
@@ -1,5 +1,5 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-f1a2a55d.js';
2
- export { a as SelectSize } from '../../OrInputBox-74646840.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-466e50ca.js';
2
+ export { a as SelectSize } from '../../OrInputBox-e16ade90.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
5
5
  import '../../useOverflow-af6161c8.js';
@@ -13,17 +13,16 @@ import '../../OrError-19198748.js';
13
13
  import '../../OrExpansionPanel-3a4282da.js';
14
14
  import '../../OrIcon-34f59f73.js';
15
15
  import '../../OrHint-6863124f.js';
16
- import '../../OrInput-5afc20da.js';
17
- import '../../useResponsive-a02e95b7.js';
16
+ import '../../OrInput-bd054213.js';
18
17
  import '../../useValidationAttributes-d1abbe34.js';
19
18
  import '../../OrIconButton-2dcfb83e.js';
20
19
  import '../../OrTooltip-b07616f4.js';
21
20
  import '../../OrPopover-40217b49.js';
22
21
  import '@floating-ui/dom';
23
22
  import '../../useElevation-31bfe1f6.js';
23
+ import '../../useResponsive-a02e95b7.js';
24
24
  import '../../OrBottomSheet-13a416ef.js';
25
25
  import '../../OrOverlay-afad3aa4.js';
26
26
  import '../../OrTeleport.vue3-8099178c.js';
27
- import '../../OrLoader-a53d2edf.js';
28
27
  import '../../OrMenuItem-58707d47.js';
29
28
  import '../../OrTag-148ff9ae.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-2b1610ce.js';
1
+ export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-0546754d.js';
2
2
  import 'vue-demi';
3
3
  import '../../px-to-rem-0b26b83e.js';
4
4
  import 'lodash';
@@ -1,5 +1,5 @@
1
- export { s as OrTextareaV3 } from '../../OrTextarea-3e28946b.js';
2
- export { a as TextareaSize } from '../../OrInputBox-74646840.js';
1
+ export { s as OrTextareaV3 } from '../../OrTextarea-37566985.js';
2
+ export { a as TextareaSize } from '../../OrInputBox-e16ade90.js';
3
3
  import 'vue-demi';
4
4
  import '../../useIdAttribute-859439f0.js';
5
5
  import '@vueuse/core';
@@ -6,17 +6,17 @@ 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-c56998e7.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-ab9b6d70.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-8b8e3745.js';
10
10
  export { s as OrCardV3 } from './OrCard-cd6af82e.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
13
13
  export { s as OrCheckboxV3 } from './OrCheckbox-16c1e2f4.js';
14
14
  export { s as OrChip, a as OrChips } from './OrChips-9afba42f.js';
15
- export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
15
+ export { s as OrCode, O as OrCodeLanguages } from './OrCode-72688173.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-c11ee2ec.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-223b1303.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-37454a63.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-308119de.js';
@@ -34,8 +34,8 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
34
34
  export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-fbc35f85.js';
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
36
36
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-79da8697.js';
37
- export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-74646840.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-5afc20da.js';
37
+ export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-e16ade90.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-bd054213.js';
39
39
  export { s as OrInput } from './OrInput-81125804.js';
40
40
  export { s as OrLabel } from './OrLabel-876f8729.js';
41
41
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
@@ -49,7 +49,7 @@ export { s as OrMenuV3 } from './OrMenu-7f3ea117.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-40217b49.js';
50
50
  export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
51
51
  export { M as ModalSize, s as OrModalV3 } from './OrModal-4219a6dc.js';
52
- export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
52
+ export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-eb08de33.js';
53
53
  export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-0e682c7f.js';
54
54
  export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
55
55
  export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
@@ -63,13 +63,13 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
63
63
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
64
64
  export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
65
65
  export { s as OrSearch } from './OrSearch-11fdf667.js';
66
- export { s as OrSearchV3 } from './OrSearch-100ed7c8.js';
66
+ export { s as OrSearchV3 } from './OrSearch-4c5c44f2.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
68
68
  export { s as OrSelect } from './OrSelect-0821b907.js';
69
- export { s as OrSelectV3 } from './OrSelect-f1a2a55d.js';
69
+ export { s as OrSelectV3 } from './OrSelect-466e50ca.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
71
71
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
72
- export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
72
+ export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-0546754d.js';
73
73
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
74
74
  export { s as OrSlider } from './OrSlider-87e2da8c.js';
75
75
  export { s as OrSortHeaderV3 } from './OrSortHeader-a39f77f9.js';
@@ -87,7 +87,7 @@ export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
87
87
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
88
88
  export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
89
89
  export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
90
- export { s as OrTextareaV3 } from './OrTextarea-3e28946b.js';
90
+ export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
91
91
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
92
92
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
93
93
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
@@ -113,6 +113,7 @@ import '@codemirror/state';
113
113
  import '@codemirror/view';
114
114
  import '@codemirror/commands';
115
115
  import 'codemirror';
116
+ import '@codemirror/theme-one-dark';
116
117
  import '@codemirror/lang-html';
117
118
  import '@codemirror/lang-css';
118
119
  import '@codemirror/lang-json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.72.2-beta.2257.0",
3
+ "version": "2.73.0-beta.2258.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -37,8 +37,9 @@
37
37
  "@codemirror/lang-javascript": "6.0.2",
38
38
  "@codemirror/lang-json": "6.0.0",
39
39
  "@codemirror/lang-markdown": "6.0.1",
40
+ "@codemirror/theme-one-dark": "^6.1.1",
40
41
  "@floating-ui/dom": "0.3.1",
41
- "@onereach/styles": "^2.34.0",
42
+ "@onereach/styles": "^2.35.0-beta.2258.0",
42
43
  "@splidejs/splide": "4.0.6",
43
44
  "@types/lodash": "4.14.173",
44
45
  "@types/sortablejs": "1.10.7",
@@ -24,7 +24,7 @@
24
24
  <or-icon-button
25
25
  v-if="isShowingFullscreen"
26
26
  icon="fullscreen"
27
- icon-color="neutral-3"
27
+ icon-color="neutral-4"
28
28
  class="fullscreen-button"
29
29
  @click="toggleFullscreen(true)"
30
30
  />
@@ -85,8 +85,9 @@ import { Language, LanguageSupport } from '@codemirror/language';
85
85
  import { EditorState, Extension, Transaction } from '@codemirror/state';
86
86
  import { ViewUpdate, keymap } from '@codemirror/view';
87
87
  import { indentWithTab } from '@codemirror/commands';
88
- import { useElementHover } from '@vueuse/core';
89
88
  import { basicSetup, EditorView } from 'codemirror';
89
+ import { useElementHover, useMutationObserver, type MaybeElementRef } from '@vueuse/core';
90
+ import { oneDark } from '@codemirror/theme-one-dark';
90
91
  import _ from 'lodash';
91
92
  import { defineComponent, PropType, ref, Ref } from 'vue-demi';
92
93
  import { OrIconButton } from '../or-button-v2';
@@ -185,6 +186,19 @@ export default defineComponent({
185
186
  emits: ['update:modelValue', 'focus', 'blur'],
186
187
 
187
188
  setup(props, { emit }) {
189
+ // theming refs
190
+ const parent: Element | null = document.querySelector('[data-theme]') || document.querySelector('html');
191
+ const themeEl = ref<HTMLElement | null>(parent as HTMLElement);
192
+ const isDark = ref<boolean>(parent?.getAttribute?.('data-theme') === 'dark');
193
+
194
+ const themeObserver = useMutationObserver(themeEl, (mutations) => {
195
+ const mutation = mutations.find((m) => m.attributeName === 'data-theme');
196
+ if (!mutation) return;
197
+ isDark.value = (mutation.target as HTMLElement)?.getAttribute?.('data-theme') === 'dark';
198
+ }, {
199
+ attributes: true,
200
+ });
201
+ // editor config
188
202
  const root = ref<HTMLDivElement>();
189
203
  const target = ref<HTMLDivElement>();
190
204
  const fullscreenTarget = ref<HTMLDivElement>();
@@ -206,6 +220,8 @@ export default defineComponent({
206
220
  fullscreenTarget,
207
221
  editor,
208
222
  isHovered,
223
+ isDark,
224
+ themeObserver,
209
225
  };
210
226
  },
211
227
 
@@ -226,8 +242,9 @@ export default defineComponent({
226
242
  localExtensions(): Extension[] {
227
243
  const { allowDrop, allowPaste, lineWrapping } = this;
228
244
  const ext = _.compact([
245
+ ...(this.isDark ? [oneDark] : []),
229
246
  // Toggle light/dark mode
230
- EditorView.baseTheme({}),
247
+ this.isDark ? EditorView.theme({}, { dark: true }) : EditorView.baseTheme({}),
231
248
  // locale settings
232
249
  this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
233
250
  // Parser language setting
@@ -259,11 +276,10 @@ export default defineComponent({
259
276
  // line wrapping
260
277
  lineWrapping ? EditorView.lineWrapping : undefined,
261
278
  keymap.of([indentWithTab]),
279
+ ...this.extensions,
262
280
  ]) as Extension[];
263
281
 
264
- // Append Extensions (such as basic-setup)
265
- if (this.extensions.length !== 0) _.merge(ext, this.extensions);
266
- return ext;
282
+ return [...ext];
267
283
  },
268
284
  isShowingError(): boolean {
269
285
  return !!this.error && this.isInvalid;
@@ -313,6 +329,7 @@ export default defineComponent({
313
329
  },
314
330
 
315
331
  beforeUnmount() {
332
+ this.themeObserver.stop();
316
333
  this.editor?.destroy();
317
334
  },
318
335
 
@@ -109,8 +109,8 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
109
109
  'children:min-h-[30px]',
110
110
 
111
111
  // Spacing
112
- 'first-child:pl-md first-child:md:pl-sm+',
113
- 'last-child:pr-md last-child:md:pr-sm+',
112
+ 'first-child:pl-sm',
113
+ 'last-child:pr-sm',
114
114
  'children:py-[6px]',
115
115
 
116
116
  'gap-[6px]',
@@ -62,10 +62,6 @@ export default {
62
62
  control: { type: 'text' },
63
63
  },
64
64
 
65
- loading: {
66
- control: { type: 'boolean' },
67
- },
68
-
69
65
  required: {
70
66
  control: { type: 'boolean' },
71
67
  },
@@ -22,7 +22,7 @@
22
22
  :variant="disableDefaultStyles ? 'unstyled' : 'styled'"
23
23
  :size="size"
24
24
  :invalid="invalid"
25
- :readonly="readonly || loading"
25
+ :readonly="readonly"
26
26
  :disabled="disabled"
27
27
  >
28
28
  <input
@@ -33,7 +33,7 @@
33
33
  :type="type === 'password' && disclosed ? 'text' : type"
34
34
  :placeholder="placeholder"
35
35
  :required="required"
36
- :readonly="readonly || loading"
36
+ :readonly="readonly"
37
37
  :disabled="disabled"
38
38
  @keydown="$emit('keydown', $event)"
39
39
  @keyup="$emit('keyup', $event)"
@@ -42,40 +42,30 @@
42
42
  >
43
43
 
44
44
  <div :class="['layout-row']">
45
- <template v-if="loading">
46
- <OrLoader
47
- :variant="'circular'"
48
- :color="'primary'"
49
- :size="isMobile ? 'm' : 's'"
45
+ <template v-if="type === 'password'">
46
+ <OrIconButton
47
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
48
+ :color="'inherit'"
49
+ :disabled="disabled"
50
+ @click.stop="disclosed = !disclosed"
50
51
  />
51
52
  </template>
52
53
 
53
- <template v-else>
54
- <template v-if="type === 'password'">
54
+ <template v-if="type === 'search'">
55
+ <template v-if="modelValue">
55
56
  <OrIconButton
56
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
57
+ :icon="'close'"
57
58
  :color="'inherit'"
58
- :disabled="disabled"
59
- @click.stop="disclosed = !disclosed"
59
+ :disabled="readonly || disabled"
60
+ @click.stop="$emit('update:modelValue', '')"
60
61
  />
61
62
  </template>
62
63
 
63
- <template v-if="type === 'search'">
64
- <template v-if="modelValue">
65
- <OrIconButton
66
- :icon="'close'"
67
- :color="'inherit'"
68
- :disabled="readonly || disabled"
69
- @click.stop="$emit('update:modelValue', '')"
70
- />
71
- </template>
72
-
73
- <template v-else>
74
- <OrIcon
75
- :icon="'search'"
76
- :variant="'outlined'"
77
- />
78
- </template>
64
+ <template v-else>
65
+ <OrIcon
66
+ :icon="'search'"
67
+ :variant="'outlined'"
68
+ />
79
69
  </template>
80
70
  </template>
81
71
  </div>
@@ -113,14 +103,13 @@
113
103
 
114
104
  <script lang="ts">
115
105
  import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
116
- import { useControlAttributes, useIdAttribute, useResponsive, useValidationAttributes } from '../../hooks';
106
+ import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
117
107
  import { OrErrorV3 as OrError } from '../or-error-v3';
118
108
  import { OrHintV3 as OrHint } from '../or-hint-v3';
119
109
  import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
120
110
  import { OrIconV3 as OrIcon } from '../or-icon-v3';
121
111
  import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
122
112
  import { OrLabelV3 as OrLabel } from '../or-label-v3';
123
- import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
124
113
  import { InputSize, InputType } from './props';
125
114
  import { InputControl, InputRoot } from './styles';
126
115
 
@@ -134,7 +123,6 @@ export default defineComponent({
134
123
  OrIconButton,
135
124
  OrInputBox,
136
125
  OrLabel,
137
- OrLoader,
138
126
  },
139
127
 
140
128
  model: {
@@ -178,11 +166,6 @@ export default defineComponent({
178
166
  default: undefined,
179
167
  },
180
168
 
181
- loading: {
182
- type: Boolean,
183
- default: false,
184
- },
185
-
186
169
  required: {
187
170
  type: Boolean,
188
171
  default: false,
@@ -257,8 +240,6 @@ export default defineComponent({
257
240
 
258
241
  const disclosed = ref(false);
259
242
 
260
- const { isMobile } = useResponsive();
261
-
262
243
  // Methods
263
244
  function focus(): void {
264
245
  control.value?.focus();
@@ -279,7 +260,6 @@ export default defineComponent({
279
260
  maxLength,
280
261
  invalid,
281
262
  disclosed,
282
- isMobile,
283
263
  focus,
284
264
  blur,
285
265
  };
@@ -115,7 +115,6 @@ export default defineComponent({
115
115
  warning: ($c-warning, $c-warning-lighten-45),
116
116
  success: ($c-success, $c-success-lighten-45),
117
117
  );
118
-
119
118
  /** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */
120
119
  --alignment-height: #{$lh-1};
121
120
 
@@ -178,4 +177,30 @@ export default defineComponent({
178
177
  }
179
178
  }
180
179
  }
180
+
181
+ [data-theme="dark"] {
182
+ .or-notification {
183
+ $notification-types: (
184
+ info: ($c-neutral-6, $c-primary-darken-45),
185
+ error: ($c-neutral-6, $c-error-darken-45),
186
+ warning: ($c-neutral-6, $c-warning-darken-45),
187
+ success: ($c-neutral-6, $c-success-darken-45),
188
+ );
189
+
190
+ .or-icon {
191
+ color: $c-neutral-1;
192
+ }
193
+
194
+ @each $type, $colors in $notification-types {
195
+ &.is-type-#{$type} {
196
+ background-color: list.nth($colors, 2);
197
+ color: list.nth($colors, 1);
198
+
199
+ a {
200
+ color: list.nth($colors, 1);
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
181
206
  </style>
@@ -9,10 +9,10 @@
9
9
  }
10
10
  }
11
11
 
12
- .or-skeleton {
13
- $c-skeleton-bg: #f6f8fd;
14
- $c-skeleton-center: #fff;
12
+ $c-skeleton-bg: #f6f8fd;
13
+ $c-skeleton-center: #fff;
15
14
 
15
+ .or-skeleton {
16
16
  overflow: hidden;
17
17
  position: relative;
18
18
  padding: 0;
@@ -33,3 +33,18 @@
33
33
  }
34
34
  }
35
35
  }
36
+
37
+
38
+ [data-theme="dark"] {
39
+ $c-skeleton-dark-bg: $c-neutral-3;
40
+ $c-skeleton-dark-center: $c-neutral-2;
41
+
42
+ .or-skeleton {
43
+ background: $c-skeleton-dark-bg;
44
+ &.is-animated {
45
+ &::before {
46
+ background: linear-gradient(90.14deg, $c-skeleton-dark-bg 0.1%, $c-skeleton-dark-center 49.98%, $c-skeleton-dark-bg 99.06%);
47
+ }
48
+ }
49
+ }
50
+ }
@@ -30,7 +30,7 @@ const Template: Story = (_args, { argTypes }) => ({
30
30
  },
31
31
  //<component :key="slot.Id" :someProp="slotProps"></component>
32
32
  //<template #buttons="{onConfirm}"> here your button slot props <or-button content="slot-confirm" @click="onConfirm"/></template>
33
- template: '<div><or-stepper v-bind="$props"> <template v-for="slot in slots" v-slot:[slot]="slotProps"><p class="bg-surface-5 rounded-sm p-2"> your slot named like content-{index} === {{slot}} ; slot props {{slotProps}}</p></template></or-stepper></div>',
33
+ template: '<div><or-stepper v-bind="$props"> <template v-for="slot in slots" v-slot:[slot]="slotProps"><p class="bg-surface-5 text-on-surface rounded-sm p-md"> your slot named like content-{index} === {{slot}} ; slot props {{slotProps}}</p></template></or-stepper></div>',
34
34
 
35
35
  });
36
36