@onereach/ui-components 2.74.0-beta.2287.0 → 2.74.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 (103) hide show
  1. package/dist/bundled/v2/{OrCardCollection-4ac89ea5.js → OrCardCollection-9bc44ec5.js} +1 -1
  2. package/dist/bundled/v2/{OrCode-c0af38e3.js → OrCode-fc6876ec.js} +15 -179
  3. package/dist/bundled/v2/{OrConfirm-8c0e957d.js → OrConfirm-ea6ea2f7.js} +1 -1
  4. package/dist/bundled/v2/{OrInput-00070eee.js → OrInput-57a47093.js} +28 -11
  5. package/dist/bundled/v2/{OrInputBox-2f559e98.js → OrInputBox-e54dcef9.js} +3 -3
  6. package/dist/bundled/v2/{OrNotification-2e2a1941.js → OrNotification-3909aaf2.js} +3 -3
  7. package/dist/bundled/v2/{OrSearch-09fd004c.js → OrSearch-4072a079.js} +2 -2
  8. package/dist/bundled/v2/{OrSelect-2ececfc1.js → OrSelect-359e891b.js} +2 -2
  9. package/dist/bundled/v2/{OrSkeletonText-2f1a3cc7.js → OrSkeletonText-242d22f3.js} +3 -3
  10. package/dist/bundled/v2/{OrTextarea-5c57c02b.js → OrTextarea-1201353b.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/index.js +1 -1
  14. package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
  15. package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  17. package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
  18. package/dist/bundled/v2/components/or-notification/index.js +1 -1
  19. package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
  20. package/dist/bundled/v2/components/or-select-v3/index.js +4 -3
  21. package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
  22. package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
  23. package/dist/bundled/v2/index.js +11 -11
  24. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f76c3264.js → OrCardCollection.vue_vue_type_script_lang-62eb2543.js} +1 -1
  25. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-79a42008.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +11 -176
  26. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-eb2bfce2.js → OrConfirm.vue_vue_type_script_lang-9aff9db3.js} +2 -2
  27. package/dist/bundled/v3/{OrInput-dcf2606e.js → OrInput-44a32124.js} +15 -6
  28. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-27220623.js → OrInput.vue_vue_type_script_lang-4d9e2f4a.js} +15 -3
  29. package/dist/bundled/v3/{OrInputBox-4c7900c2.js → OrInputBox-358d4856.js} +1 -1
  30. package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-47d98e81.js → OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +3 -3
  31. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-c054c8db.js → OrSearch.vue_vue_type_script_lang-0ddeada5.js} +3 -3
  32. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-7fd5e2f0.js → OrSelect.vue_vue_type_script_lang-c7a9bec2.js} +4 -4
  33. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-296da567.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +2 -2
  34. package/dist/bundled/v3/components/index.js +11 -11
  35. package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -6
  36. package/dist/bundled/v3/components/or-code/index.js +1 -1
  37. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
  38. package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
  39. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  40. package/dist/bundled/v3/components/or-input-v3/index.js +5 -3
  41. package/dist/bundled/v3/components/or-search-v3/index.js +7 -5
  42. package/dist/bundled/v3/components/or-select-v3/index.js +7 -5
  43. package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
  44. package/dist/bundled/v3/index.js +21 -21
  45. package/dist/esm/v2/{OrCardCollection-5a9eda35.js → OrCardCollection-4c909f4b.js} +2 -2
  46. package/dist/esm/v2/{OrCode-47331c24.js → OrCode-d4400b42.js} +17 -183
  47. package/dist/esm/v2/{OrConfirm-9dbdedd7.js → OrConfirm-7dc26526.js} +1 -1
  48. package/dist/esm/v2/{OrInput-59a15d80.js → OrInput-3d8c8925.js} +28 -11
  49. package/dist/esm/v2/{OrInputBox-9ceb9fc4.js → OrInputBox-53d1f66d.js} +3 -3
  50. package/dist/esm/v2/{OrNotification-a49e76d3.js → OrNotification-a9231a83.js} +3 -3
  51. package/dist/esm/v2/{OrSearch-7411388b.js → OrSearch-d6f1ba11.js} +2 -2
  52. package/dist/esm/v2/{OrSelect-e31d1c8b.js → OrSelect-bdb9a78a.js} +2 -2
  53. package/dist/esm/v2/{OrSkeletonText-24509efe.js → OrSkeletonText-cc94bdc9.js} +3 -3
  54. package/dist/esm/v2/{OrTextarea-a5a3572b.js → OrTextarea-373d0554.js} +1 -1
  55. package/dist/esm/v2/components/index.js +11 -13
  56. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
  57. package/dist/esm/v2/components/or-code/index.js +2 -4
  58. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
  59. package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
  60. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  61. package/dist/esm/v2/components/or-input-v3/index.js +4 -3
  62. package/dist/esm/v2/components/or-notification/index.js +1 -1
  63. package/dist/esm/v2/components/or-search-v3/index.js +5 -4
  64. package/dist/esm/v2/components/or-select-v3/index.js +5 -4
  65. package/dist/esm/v2/components/or-skeleton/index.js +1 -1
  66. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
  67. package/dist/esm/v2/index.js +10 -12
  68. package/dist/esm/v3/{OrCardCollection-e4fde5b4.js → OrCardCollection-803f67f7.js} +2 -2
  69. package/dist/esm/v3/{OrCode-effa9edb.js → OrCode-5ed69c23.js} +14 -180
  70. package/dist/esm/v3/{OrConfirm-37454a63.js → OrConfirm-403896ca.js} +1 -1
  71. package/dist/esm/v3/{OrInput-bd054213.js → OrInput-71075f51.js} +27 -7
  72. package/dist/esm/v3/{OrInputBox-e16ade90.js → OrInputBox-2467d7e4.js} +3 -3
  73. package/dist/esm/v3/{OrNotification-eb08de33.js → OrNotification-e85a4956.js} +1 -1
  74. package/dist/esm/v3/{OrSearch-5406bf03.js → OrSearch-4e180e34.js} +2 -2
  75. package/dist/esm/v3/{OrSelect-466e50ca.js → OrSelect-c64eda46.js} +2 -2
  76. package/dist/esm/v3/{OrSkeletonText-0546754d.js → OrSkeletonText-2b1610ce.js} +3 -3
  77. package/dist/esm/v3/{OrTextarea-37566985.js → OrTextarea-42d21f77.js} +1 -1
  78. package/dist/esm/v3/components/index.js +11 -13
  79. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  80. package/dist/esm/v3/components/or-code/index.js +2 -4
  81. package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
  82. package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
  83. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  84. package/dist/esm/v3/components/or-input-v3/index.js +4 -3
  85. package/dist/esm/v3/components/or-notification/index.js +1 -1
  86. package/dist/esm/v3/components/or-search-v3/index.js +5 -4
  87. package/dist/esm/v3/components/or-select-v3/index.js +5 -4
  88. package/dist/esm/v3/components/or-skeleton/index.js +1 -1
  89. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  90. package/dist/esm/v3/index.js +10 -12
  91. package/package.json +4 -3
  92. package/src/components/or-code/OrCode.vue +6 -8
  93. package/src/components/or-input-box-v3/styles.ts +3 -6
  94. package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
  95. package/src/components/or-input-v3/OrInput.vue +39 -19
  96. package/src/components/or-notification/OrNotification.vue +1 -26
  97. package/src/components/or-skeleton/styles.scss +3 -18
  98. package/src/components/or-stepper/OrStepper.stories.ts +1 -1
  99. package/dist/bundled/v2/components/or-code/theme.d.ts +0 -24
  100. package/dist/bundled/v3/components/or-code/theme.d.ts +0 -24
  101. package/dist/esm/v2/components/or-code/theme.d.ts +0 -24
  102. package/dist/esm/v3/components/or-code/theme.d.ts +0 -24
  103. package/src/components/or-code/theme.ts +0 -213
@@ -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-e4fde5b4.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-803f67f7.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-effa9edb.js';
15
+ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.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-37454a63.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-403896ca.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-e16ade90.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-bd054213.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-2467d7e4.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-71075f51.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-eb08de33.js';
52
+ export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.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,14 +63,14 @@ 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-5406bf03.js';
66
+ export { s as OrSearchV3 } from './OrSearch-4e180e34.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-466e50ca.js';
69
+ export { s as OrSelectV3 } from './OrSelect-c64eda46.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
71
71
  export { s as OrSidebarV3 } from './OrSidebar-61d84c3e.js';
72
72
  export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-1b9c83ef.js';
73
- export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-0546754d.js';
73
+ export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
74
74
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
75
75
  export { s as OrSlider } from './OrSlider-87e2da8c.js';
76
76
  export { s as OrSortHeaderV3 } from './OrSortHeader-a39f77f9.js';
@@ -88,7 +88,7 @@ export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
88
88
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
89
89
  export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
90
90
  export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
91
- export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
91
+ export { s as OrTextareaV3 } from './OrTextarea-42d21f77.js';
92
92
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
93
93
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
94
94
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
@@ -119,8 +119,6 @@ import '@codemirror/lang-css';
119
119
  import '@codemirror/lang-json';
120
120
  import '@codemirror/lang-javascript';
121
121
  import '@codemirror/lang-markdown';
122
- import '@codemirror/language';
123
- import '@lezer/highlight';
124
122
  import './px-to-rem-0b26b83e.js';
125
123
  import './dom-3a15d036.js';
126
124
  import '@vueuse/math';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.74.0-beta.2287.0",
3
+ "version": "2.74.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -38,7 +38,7 @@
38
38
  "@codemirror/lang-json": "6.0.0",
39
39
  "@codemirror/lang-markdown": "6.0.1",
40
40
  "@floating-ui/dom": "0.3.1",
41
- "@onereach/styles": "^2.35.0-beta.2287.0",
41
+ "@onereach/styles": "^2.34.0",
42
42
  "@splidejs/splide": "4.0.6",
43
43
  "@types/lodash": "4.14.173",
44
44
  "@types/sortablejs": "1.10.7",
@@ -124,5 +124,6 @@
124
124
  "default": "./dist/bundled/v3/components/*/index.js"
125
125
  },
126
126
  "./package.json": "./package.json"
127
- }
127
+ },
128
+ "gitHead": "e3e8b95ea4b4757753f527778e680640d75f0b10"
128
129
  }
@@ -24,7 +24,7 @@
24
24
  <or-icon-button
25
25
  v-if="isShowingFullscreen"
26
26
  icon="fullscreen"
27
- icon-color="neutral-4"
27
+ icon-color="neutral-3"
28
28
  class="fullscreen-button"
29
29
  @click="toggleFullscreen(true)"
30
30
  />
@@ -85,8 +85,8 @@ 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 { basicSetup, EditorView } from 'codemirror';
89
88
  import { useElementHover } from '@vueuse/core';
89
+ import { basicSetup, EditorView } from 'codemirror';
90
90
  import _ from 'lodash';
91
91
  import { defineComponent, PropType, ref, Ref } from 'vue-demi';
92
92
  import { OrIconButton } from '../or-button-v2';
@@ -97,7 +97,6 @@ import { OrModal } from '../or-modal';
97
97
  import { OrTeleport } from '../or-teleport';
98
98
  import { OrCodeLanguages } from './constants';
99
99
  import languages from './lang';
100
- import orCodeTheme from './theme';
101
100
 
102
101
  //partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
103
102
 
@@ -186,7 +185,6 @@ export default defineComponent({
186
185
  emits: ['update:modelValue', 'focus', 'blur'],
187
186
 
188
187
  setup(props, { emit }) {
189
- // editor config
190
188
  const root = ref<HTMLDivElement>();
191
189
  const target = ref<HTMLDivElement>();
192
190
  const fullscreenTarget = ref<HTMLDivElement>();
@@ -227,9 +225,8 @@ export default defineComponent({
227
225
  },
228
226
  localExtensions(): Extension[] {
229
227
  const { allowDrop, allowPaste, lineWrapping } = this;
230
-
231
228
  const ext = _.compact([
232
- orCodeTheme,
229
+ // Toggle light/dark mode
233
230
  EditorView.baseTheme({}),
234
231
  // locale settings
235
232
  this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
@@ -262,10 +259,11 @@ export default defineComponent({
262
259
  // line wrapping
263
260
  lineWrapping ? EditorView.lineWrapping : undefined,
264
261
  keymap.of([indentWithTab]),
265
- ...this.extensions,
266
262
  ]) as Extension[];
267
263
 
268
- return [...ext];
264
+ // Append Extensions (such as basic-setup)
265
+ if (this.extensions.length !== 0) _.merge(ext, this.extensions);
266
+ return ext;
269
267
  },
270
268
  isShowingError(): boolean {
271
269
  return !!this.error && this.isInvalid;
@@ -90,13 +90,11 @@ export const InputBoxRootVariants: Record<InputBoxVariant, string[]> = {
90
90
  export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
91
91
  'm': [
92
92
  // Box
93
- 'children:min-h-[34px]',
93
+ 'children:min-h-[46px] children:md:min-h-[34px]',
94
94
 
95
95
  // Spacing
96
96
  'first-child:pl-md first-child:md:pl-sm+',
97
97
  'last-child:pr-md last-child:md:pr-sm+',
98
- 'children:pt-[11px] children:md:pt-[7px]',
99
- 'children:pb-[11px] children:md:pb-[6px]',
100
98
 
101
99
  'gap-sm+ md:gap-sm',
102
100
 
@@ -109,9 +107,8 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
109
107
  'children:min-h-[30px]',
110
108
 
111
109
  // Spacing
112
- 'first-child:pl-sm',
113
- 'last-child:pr-sm',
114
- 'children:py-[6px]',
110
+ 'first-child:pl-md first-child:md:pl-sm+',
111
+ 'last-child:pr-md last-child:md:pr-sm+',
115
112
 
116
113
  'gap-[6px]',
117
114
 
@@ -62,6 +62,10 @@ export default {
62
62
  control: { type: 'text' },
63
63
  },
64
64
 
65
+ loading: {
66
+ control: { type: 'boolean' },
67
+ },
68
+
65
69
  required: {
66
70
  control: { type: 'boolean' },
67
71
  },
@@ -22,7 +22,7 @@
22
22
  :variant="disableDefaultStyles ? 'unstyled' : 'styled'"
23
23
  :size="size"
24
24
  :invalid="invalid"
25
- :readonly="readonly"
25
+ :readonly="readonly || loading"
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"
36
+ :readonly="readonly || loading"
37
37
  :disabled="disabled"
38
38
  @keydown="$emit('keydown', $event)"
39
39
  @keyup="$emit('keyup', $event)"
@@ -42,30 +42,40 @@
42
42
  >
43
43
 
44
44
  <div :class="['layout-row']">
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"
45
+ <template v-if="loading">
46
+ <OrLoader
47
+ :variant="'circular'"
48
+ :color="'primary'"
49
+ :size="isMobile ? 'm' : 's'"
51
50
  />
52
51
  </template>
53
52
 
54
- <template v-if="type === 'search'">
55
- <template v-if="modelValue">
53
+ <template v-else>
54
+ <template v-if="type === 'password'">
56
55
  <OrIconButton
57
- :icon="'close'"
56
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
58
57
  :color="'inherit'"
59
- :disabled="readonly || disabled"
60
- @click.stop="$emit('update:modelValue', '')"
58
+ :disabled="disabled"
59
+ @click.stop="disclosed = !disclosed"
61
60
  />
62
61
  </template>
63
62
 
64
- <template v-else>
65
- <OrIcon
66
- :icon="'search'"
67
- :variant="'outlined'"
68
- />
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>
69
79
  </template>
70
80
  </template>
71
81
  </div>
@@ -103,13 +113,14 @@
103
113
 
104
114
  <script lang="ts">
105
115
  import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
106
- import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
116
+ import { useControlAttributes, useIdAttribute, useResponsive, useValidationAttributes } from '../../hooks';
107
117
  import { OrErrorV3 as OrError } from '../or-error-v3';
108
118
  import { OrHintV3 as OrHint } from '../or-hint-v3';
109
119
  import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
110
120
  import { OrIconV3 as OrIcon } from '../or-icon-v3';
111
121
  import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
112
122
  import { OrLabelV3 as OrLabel } from '../or-label-v3';
123
+ import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
113
124
  import { InputSize, InputType } from './props';
114
125
  import { InputControl, InputRoot } from './styles';
115
126
 
@@ -123,6 +134,7 @@ export default defineComponent({
123
134
  OrIconButton,
124
135
  OrInputBox,
125
136
  OrLabel,
137
+ OrLoader,
126
138
  },
127
139
 
128
140
  model: {
@@ -166,6 +178,11 @@ export default defineComponent({
166
178
  default: undefined,
167
179
  },
168
180
 
181
+ loading: {
182
+ type: Boolean,
183
+ default: false,
184
+ },
185
+
169
186
  required: {
170
187
  type: Boolean,
171
188
  default: false,
@@ -240,6 +257,8 @@ export default defineComponent({
240
257
 
241
258
  const disclosed = ref(false);
242
259
 
260
+ const { isMobile } = useResponsive();
261
+
243
262
  // Methods
244
263
  function focus(): void {
245
264
  control.value?.focus();
@@ -260,6 +279,7 @@ export default defineComponent({
260
279
  maxLength,
261
280
  invalid,
262
281
  disclosed,
282
+ isMobile,
263
283
  focus,
264
284
  blur,
265
285
  };
@@ -115,6 +115,7 @@ export default defineComponent({
115
115
  warning: ($c-warning, $c-warning-lighten-45),
116
116
  success: ($c-success, $c-success-lighten-45),
117
117
  );
118
+
118
119
  /** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */
119
120
  --alignment-height: #{$lh-1};
120
121
 
@@ -177,30 +178,4 @@ export default defineComponent({
177
178
  }
178
179
  }
179
180
  }
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
- }
206
181
  </style>
@@ -9,10 +9,10 @@
9
9
  }
10
10
  }
11
11
 
12
- $c-skeleton-bg: #f6f8fd;
13
- $c-skeleton-center: #fff;
14
-
15
12
  .or-skeleton {
13
+ $c-skeleton-bg: #f6f8fd;
14
+ $c-skeleton-center: #fff;
15
+
16
16
  overflow: hidden;
17
17
  position: relative;
18
18
  padding: 0;
@@ -33,18 +33,3 @@ $c-skeleton-center: #fff;
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 text-on-surface rounded-sm p-md"> 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 rounded-sm p-2"> your slot named like content-{index} === {{slot}} ; slot props {{slotProps}}</p></template></or-stepper></div>',
34
34
 
35
35
  });
36
36
 
@@ -1,24 +0,0 @@
1
- import { Extension } from '@codemirror/state';
2
- import { HighlightStyle } from '@codemirror/language';
3
- export declare const color: {
4
- chalky: string;
5
- coral: string;
6
- cyan: string;
7
- invalid: string;
8
- ivory: string;
9
- stone: string;
10
- malibu: string;
11
- sage: string;
12
- whiskey: string;
13
- violet: string;
14
- darkBackground: string;
15
- highlightBackground: string;
16
- background: string;
17
- tooltipBackground: string;
18
- selection: string;
19
- cursor: string;
20
- };
21
- export declare const orCodeTheme: Extension;
22
- export declare const orCodeHighlightStyle: HighlightStyle;
23
- declare const theme: Extension;
24
- export default theme;
@@ -1,24 +0,0 @@
1
- import { Extension } from '@codemirror/state';
2
- import { HighlightStyle } from '@codemirror/language';
3
- export declare const color: {
4
- chalky: string;
5
- coral: string;
6
- cyan: string;
7
- invalid: string;
8
- ivory: string;
9
- stone: string;
10
- malibu: string;
11
- sage: string;
12
- whiskey: string;
13
- violet: string;
14
- darkBackground: string;
15
- highlightBackground: string;
16
- background: string;
17
- tooltipBackground: string;
18
- selection: string;
19
- cursor: string;
20
- };
21
- export declare const orCodeTheme: Extension;
22
- export declare const orCodeHighlightStyle: HighlightStyle;
23
- declare const theme: Extension;
24
- export default theme;
@@ -1,24 +0,0 @@
1
- import { Extension } from '@codemirror/state';
2
- import { HighlightStyle } from '@codemirror/language';
3
- export declare const color: {
4
- chalky: string;
5
- coral: string;
6
- cyan: string;
7
- invalid: string;
8
- ivory: string;
9
- stone: string;
10
- malibu: string;
11
- sage: string;
12
- whiskey: string;
13
- violet: string;
14
- darkBackground: string;
15
- highlightBackground: string;
16
- background: string;
17
- tooltipBackground: string;
18
- selection: string;
19
- cursor: string;
20
- };
21
- export declare const orCodeTheme: Extension;
22
- export declare const orCodeHighlightStyle: HighlightStyle;
23
- declare const theme: Extension;
24
- export default theme;
@@ -1,24 +0,0 @@
1
- import { Extension } from '@codemirror/state';
2
- import { HighlightStyle } from '@codemirror/language';
3
- export declare const color: {
4
- chalky: string;
5
- coral: string;
6
- cyan: string;
7
- invalid: string;
8
- ivory: string;
9
- stone: string;
10
- malibu: string;
11
- sage: string;
12
- whiskey: string;
13
- violet: string;
14
- darkBackground: string;
15
- highlightBackground: string;
16
- background: string;
17
- tooltipBackground: string;
18
- selection: string;
19
- cursor: string;
20
- };
21
- export declare const orCodeTheme: Extension;
22
- export declare const orCodeHighlightStyle: HighlightStyle;
23
- declare const theme: Extension;
24
- export default theme;