@onereach/ui-components 2.71.1-beta.2227.0 → 2.72.0-beta.2234.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 (84) hide show
  1. package/dist/bundled/v2/{OrCardCollection-f6c1318a.js → OrCardCollection-0141a358.js} +1 -1
  2. package/dist/bundled/v2/{OrCode-fc6876ec.js → OrCode-ad3edffd.js} +183 -11
  3. package/dist/bundled/v2/{OrConfirm-371a99bf.js → OrConfirm-057e997e.js} +1 -1
  4. package/dist/bundled/v2/{OrInput-b0cdd2ae.js → OrInput-82ccfe00.js} +6 -23
  5. package/dist/bundled/v2/{OrNotification-3909aaf2.js → OrNotification-2e2a1941.js} +3 -3
  6. package/dist/bundled/v2/{OrSearch-fe562cfd.js → OrSearch-53470b0e.js} +1 -1
  7. package/dist/bundled/v2/{OrSelect-0c169a4f.js → OrSelect-02fb39f0.js} +1 -1
  8. package/dist/bundled/v2/{OrSkeletonText-242d22f3.js → OrSkeletonText-2f1a3cc7.js} +3 -3
  9. package/dist/bundled/v2/components/index.js +9 -9
  10. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
  11. package/dist/bundled/v2/components/or-code/OrCode.vue.d.ts +10 -0
  12. package/dist/bundled/v2/components/or-code/index.js +1 -1
  13. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  14. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
  15. package/dist/bundled/v2/components/or-input-v3/index.js +1 -2
  16. package/dist/bundled/v2/components/or-notification/index.js +1 -1
  17. package/dist/bundled/v2/components/or-search-v3/index.js +2 -3
  18. package/dist/bundled/v2/components/or-select-v3/index.js +2 -3
  19. package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
  20. package/dist/bundled/v2/index.js +9 -9
  21. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-1fa9e6ce.js → OrCardCollection.vue_vue_type_script_lang-2d78a51a.js} +1 -1
  22. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c55de81d.js → OrCode.vue_vue_type_script_lang-fcfdbb5b.js} +179 -7
  23. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-5eef57a2.js → OrConfirm.vue_vue_type_script_lang-9d9a3917.js} +2 -2
  24. package/dist/bundled/v3/{OrInput-04b89444.js → OrInput-a4f220ed.js} +4 -13
  25. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-caab1e89.js → OrInput.vue_vue_type_script_lang-607d79d4.js} +1 -13
  26. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-10ff525e.js → OrSearch.vue_vue_type_script_lang-06f318ca.js} +2 -2
  27. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-4fad2bfb.js → OrSelect.vue_vue_type_script_lang-83f15704.js} +2 -2
  28. package/dist/bundled/v3/components/index.js +8 -8
  29. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
  30. package/dist/bundled/v3/components/or-code/OrCode.vue.d.ts +10 -0
  31. package/dist/bundled/v3/components/or-code/index.js +1 -1
  32. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  33. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
  34. package/dist/bundled/v3/components/or-input-v3/index.js +1 -3
  35. package/dist/bundled/v3/components/or-search-v3/index.js +3 -5
  36. package/dist/bundled/v3/components/or-select-v3/index.js +3 -5
  37. package/dist/bundled/v3/index.js +17 -17
  38. package/dist/esm/v2/{OrCardCollection-e08a4637.js → OrCardCollection-3c38fc85.js} +1 -1
  39. package/dist/esm/v2/{OrCode-d4400b42.js → OrCode-cae7f360.js} +29 -11
  40. package/dist/esm/v2/{OrConfirm-43f97635.js → OrConfirm-047d4086.js} +1 -1
  41. package/dist/esm/v2/{OrInput-5e46af9a.js → OrInput-ada3a970.js} +6 -23
  42. package/dist/esm/v2/{OrNotification-a9231a83.js → OrNotification-a49e76d3.js} +3 -3
  43. package/dist/esm/v2/{OrSearch-84143c15.js → OrSearch-0f08f2f5.js} +1 -1
  44. package/dist/esm/v2/{OrSelect-5a2ff296.js → OrSelect-f8837f5d.js} +1 -1
  45. package/dist/esm/v2/{OrSkeletonText-cc94bdc9.js → OrSkeletonText-24509efe.js} +3 -3
  46. package/dist/esm/v2/components/index.js +10 -9
  47. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  48. package/dist/esm/v2/components/or-code/OrCode.vue.d.ts +10 -0
  49. package/dist/esm/v2/components/or-code/index.js +3 -2
  50. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  51. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
  52. package/dist/esm/v2/components/or-input-v3/index.js +2 -3
  53. package/dist/esm/v2/components/or-notification/index.js +1 -1
  54. package/dist/esm/v2/components/or-search-v3/index.js +3 -4
  55. package/dist/esm/v2/components/or-select-v3/index.js +3 -4
  56. package/dist/esm/v2/components/or-skeleton/index.js +1 -1
  57. package/dist/esm/v2/index.js +9 -8
  58. package/dist/esm/v3/{OrCardCollection-6912f897.js → OrCardCollection-dbb3e839.js} +1 -1
  59. package/dist/esm/v3/{OrCode-5ed69c23.js → OrCode-cd9a8fb2.js} +26 -8
  60. package/dist/esm/v3/{OrConfirm-d1c05034.js → OrConfirm-fee3c859.js} +1 -1
  61. package/dist/esm/v3/{OrInput-a2c4cfb5.js → OrInput-9c0426b9.js} +4 -24
  62. package/dist/esm/v3/{OrNotification-e85a4956.js → OrNotification-eb08de33.js} +1 -1
  63. package/dist/esm/v3/{OrSearch-dbb07738.js → OrSearch-9885d178.js} +1 -1
  64. package/dist/esm/v3/{OrSelect-511acc24.js → OrSelect-8fbd88bc.js} +1 -1
  65. package/dist/esm/v3/{OrSkeletonText-2b1610ce.js → OrSkeletonText-0546754d.js} +3 -3
  66. package/dist/esm/v3/components/index.js +10 -9
  67. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  68. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +10 -0
  69. package/dist/esm/v3/components/or-code/index.js +3 -2
  70. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  71. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
  72. package/dist/esm/v3/components/or-input-v3/index.js +2 -3
  73. package/dist/esm/v3/components/or-notification/index.js +1 -1
  74. package/dist/esm/v3/components/or-search-v3/index.js +3 -4
  75. package/dist/esm/v3/components/or-select-v3/index.js +3 -4
  76. package/dist/esm/v3/components/or-skeleton/index.js +1 -1
  77. package/dist/esm/v3/index.js +9 -8
  78. package/package.json +3 -2
  79. package/src/components/or-code/OrCode.vue +22 -5
  80. package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
  81. package/src/components/or-input-v3/OrInput.vue +16 -36
  82. package/src/components/or-notification/OrNotification.vue +26 -1
  83. package/src/components/or-skeleton/styles.scss +18 -3
  84. package/src/components/or-stepper/OrStepper.stories.ts +1 -1
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-511acc24.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-8fbd88bc.js';
2
2
  export { a as SelectSize } from '../../OrInputBox-6d1b6059.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
@@ -13,16 +13,15 @@ import '../../OrError-ec8c709d.js';
13
13
  import '../../OrExpansionPanel-f8d7ff8d.js';
14
14
  import '../../OrIcon-b195169c.js';
15
15
  import '../../OrHint-74bb732d.js';
16
- import '../../OrInput-a2c4cfb5.js';
17
- import '../../useResponsive-a02e95b7.js';
16
+ import '../../OrInput-9c0426b9.js';
18
17
  import '../../OrIconButton-1a89fbf9.js';
19
18
  import '../../OrTooltip-50d27b4f.js';
20
19
  import '../../OrPopover-1075dd38.js';
21
20
  import '@floating-ui/dom';
22
21
  import '../../useElevation-31bfe1f6.js';
22
+ import '../../useResponsive-a02e95b7.js';
23
23
  import '../../OrBottomSheet-62817aec.js';
24
24
  import '../../OrOverlay-738a44d5.js';
25
25
  import '../../OrTeleport.vue3-8099178c.js';
26
- import '../../OrLoader-b3cf4231.js';
27
26
  import '../../OrMenuItem-9da279f6.js';
28
27
  import '../../OrTag-5d54f37d.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';
@@ -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-0fa67a0d.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 { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-6912f897.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-dbb3e839.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';
13
13
  export { s as OrCheckboxV3 } from './OrCheckbox-3e139eac.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-cd9a8fb2.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-d1c05034.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-fee3c859.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';
@@ -35,7 +35,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-507f
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
36
36
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-53a9e027.js';
37
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-6d1b6059.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-a2c4cfb5.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-9c0426b9.js';
39
39
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
40
40
  export { s as OrLabel } from './OrLabel-876f8729.js';
41
41
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-bdaec602.js';
@@ -49,7 +49,7 @@ export { s as OrMenuV3 } from './OrMenu-840038cd.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-1075dd38.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-7878cc39.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-e1383681.js';
54
54
  export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
55
55
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
@@ -60,13 +60,13 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
60
60
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
61
61
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
62
62
  export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
63
- export { s as OrSearchV3 } from './OrSearch-dbb07738.js';
63
+ export { s as OrSearchV3 } from './OrSearch-9885d178.js';
64
64
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
65
65
  export { s as OrSelect } from './OrSelect-0821b907.js';
66
- export { s as OrSelectV3 } from './OrSelect-511acc24.js';
66
+ export { s as OrSelectV3 } from './OrSelect-8fbd88bc.js';
67
67
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
68
68
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
69
- export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
69
+ export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-0546754d.js';
70
70
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-3965ff71.js';
71
71
  export { s as OrSlider } from './OrSlider-87e2da8c.js';
72
72
  export { s as OrSortHeaderV3 } from './OrSortHeader-fe1a9cf8.js';
@@ -108,6 +108,7 @@ import '@codemirror/state';
108
108
  import '@codemirror/view';
109
109
  import '@codemirror/commands';
110
110
  import 'codemirror';
111
+ import '@codemirror/theme-one-dark';
111
112
  import '@codemirror/lang-html';
112
113
  import '@codemirror/lang-css';
113
114
  import '@codemirror/lang-json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.71.1-beta.2227.0",
3
+ "version": "2.72.0-beta.2234.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.33.0",
42
+ "@onereach/styles": "^2.34.0-beta.2234.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,10 +276,9 @@ 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
282
  return ext;
267
283
  },
268
284
  isShowingError(): boolean {
@@ -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
 
@@ -70,10 +70,6 @@ export default {
70
70
  control: { type: 'text' },
71
71
  },
72
72
 
73
- loading: {
74
- control: { type: 'boolean' },
75
- },
76
-
77
73
  required: {
78
74
  control: { type: 'boolean' },
79
75
  },
@@ -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
59
  :disabled="disabled"
59
- @click.stop="disclosed = !disclosed"
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="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, getCurrentInstance, PropType, ref } from 'vue-demi';
116
- import { useClassAttribute, useResponsive } from '../../hooks';
106
+ import { useClassAttribute } 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
  inheritAttrs: false,
@@ -180,11 +168,6 @@ export default defineComponent({
180
168
  default: undefined,
181
169
  },
182
170
 
183
- loading: {
184
- type: Boolean,
185
- default: false,
186
- },
187
-
188
171
  required: {
189
172
  type: Boolean,
190
173
  default: false,
@@ -258,8 +241,6 @@ export default defineComponent({
258
241
 
259
242
  const disclosed = ref(false);
260
243
 
261
- const { isMobile } = useResponsive();
262
-
263
244
  // Methods
264
245
  function focus(): void {
265
246
  input.value?.focus();
@@ -277,7 +258,6 @@ export default defineComponent({
277
258
  currentLength,
278
259
  maxLength,
279
260
  disclosed,
280
- isMobile,
281
261
  focus,
282
262
  };
283
263
  },
@@ -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