@onereach/ui-components 2.63.0-beta.1907.0 → 2.63.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 (113) hide show
  1. package/dist/v2/{OrConfirm-8d149ece.js → OrConfirm-24e2a1a2.js} +1 -1
  2. package/dist/v2/{OrIconButton-5883eba0.js → OrIconButton-2088a37f.js} +1 -1
  3. package/dist/v2/{OrInlineInput-16a343c1.js → OrInlineInput-f00cba5e.js} +6 -5
  4. package/dist/v2/{OrInlineTextarea-f154bdf5.js → OrInlineTextarea-75de33d0.js} +6 -5
  5. package/dist/v2/{OrInput-4a50fe57.js → OrInput-24028f23.js} +7 -5
  6. package/dist/v2/{OrModal-64c5ae2e.js → OrModal-a1452b11.js} +1 -1
  7. package/dist/v2/{OrNotification-9c164908.js → OrNotification-ac420f39.js} +1 -1
  8. package/dist/v2/{OrSearch-a247f072.js → OrSearch-978a3a6e.js} +1 -1
  9. package/dist/v2/OrSegmentedControl-17df63b8.js +236 -0
  10. package/dist/v2/{OrSelect-f416b7aa.js → OrSelect-c6d0a69e.js} +2 -2
  11. package/dist/v2/{OrTabs-b4a9740b.js → OrTabs-f2a60b41.js} +1 -1
  12. package/dist/v2/{OrTag-ab03c4f7.js → OrTag-1ced4e58.js} +1 -1
  13. package/dist/v2/{OrTooltip-caeac590.js → OrTooltip-afe7030b.js} +33 -3
  14. package/dist/v2/components/index.d.ts +1 -0
  15. package/dist/v2/components/{or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
  16. package/dist/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
  17. package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
  18. package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
  19. package/dist/v2/components/or-segmented-control-v3/index.d.ts +3 -0
  20. package/dist/v2/components/or-segmented-control-v3/props.d.ts +4 -0
  21. package/dist/v2/components/or-segmented-control-v3/styles.d.ts +3 -0
  22. package/dist/v2/components/or-segmented-control-v3/types.d.ts +4 -0
  23. package/dist/v2/components/or-tooltip-v3/styles.d.ts +2 -0
  24. package/dist/v2/index.js +14 -13
  25. package/dist/v2/index2.js +14 -13
  26. package/dist/v2/index20.js +4 -4
  27. package/dist/v2/index31.js +2 -2
  28. package/dist/v2/index34.js +3 -3
  29. package/dist/v2/index36.js +3 -3
  30. package/dist/v2/index38.js +3 -3
  31. package/dist/v2/index50.js +3 -3
  32. package/dist/v2/index52.js +3 -3
  33. package/dist/v2/index62.js +12 -325
  34. package/dist/v2/index63.js +2 -19
  35. package/dist/v2/index65.js +5 -5
  36. package/dist/v2/index78.js +1 -1
  37. package/dist/v2/index80.js +3 -3
  38. package/dist/v2/index88.js +3 -3
  39. package/dist/v2/index91.js +1 -1
  40. package/dist/v2/{types-fb93ea4e.js → types-89aad7fb.js} +1 -1
  41. package/dist/v3/{OrConfirm-456ddee1.js → OrConfirm-371630a4.js} +1 -1
  42. package/dist/v3/{OrIconButton-b8066b5d.js → OrIconButton-5fb3a9aa.js} +1 -1
  43. package/dist/v3/{OrInlineInput-280768ba.js → OrInlineInput-bac4abdd.js} +4 -3
  44. package/dist/v3/{OrInlineTextarea-0f63f344.js → OrInlineTextarea-d1ec1bba.js} +4 -3
  45. package/dist/v3/{OrInput-3eef7945.js → OrInput-256d2530.js} +6 -3
  46. package/dist/v3/{OrModal-f67d37d3.js → OrModal-3a43b7e7.js} +1 -1
  47. package/dist/v3/{OrNotification-fefa1cb4.js → OrNotification-433d16f7.js} +1 -1
  48. package/dist/v3/{OrSearch-15a70678.js → OrSearch-375eab55.js} +1 -1
  49. package/dist/v3/OrSegmentedControl-2bbc0f22.js +184 -0
  50. package/dist/v3/{OrSelect-9d300f55.js → OrSelect-52cfb10d.js} +2 -2
  51. package/dist/v3/{OrTabs-194ca950.js → OrTabs-ac0be933.js} +1 -1
  52. package/dist/v3/{OrTag-144b4ab8.js → OrTag-deaff080.js} +1 -1
  53. package/dist/v3/{OrTooltip-30e05f9e.js → OrTooltip-36c6728c.js} +33 -3
  54. package/dist/v3/components/index.d.ts +1 -0
  55. package/dist/v3/components/{or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
  56. package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
  57. package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
  58. package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
  59. package/dist/v3/components/or-segmented-control-v3/index.d.ts +3 -0
  60. package/dist/v3/components/or-segmented-control-v3/props.d.ts +4 -0
  61. package/dist/v3/components/or-segmented-control-v3/styles.d.ts +3 -0
  62. package/dist/v3/components/or-segmented-control-v3/types.d.ts +4 -0
  63. package/dist/v3/components/or-tooltip-v3/styles.d.ts +2 -0
  64. package/dist/v3/index.js +14 -13
  65. package/dist/v3/index2.js +14 -13
  66. package/dist/v3/index20.js +4 -4
  67. package/dist/v3/index31.js +2 -2
  68. package/dist/v3/index34.js +3 -3
  69. package/dist/v3/index36.js +3 -3
  70. package/dist/v3/index38.js +3 -3
  71. package/dist/v3/index50.js +3 -3
  72. package/dist/v3/index52.js +3 -3
  73. package/dist/v3/index62.js +12 -299
  74. package/dist/v3/index63.js +2 -18
  75. package/dist/v3/index65.js +5 -5
  76. package/dist/v3/index78.js +1 -1
  77. package/dist/v3/index80.js +3 -3
  78. package/dist/v3/index88.js +3 -3
  79. package/dist/v3/index91.js +1 -1
  80. package/dist/v3/{types-a2a8f948.js → types-d5d4ab32.js} +1 -1
  81. package/package.json +4 -9
  82. package/src/components/index.ts +1 -0
  83. package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
  84. package/src/components/or-inline-input-v3/OrInlineInput.vue +2 -2
  85. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +2 -2
  86. package/src/components/or-input-v3/OrInput.vue +21 -19
  87. package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
  88. package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +7 -0
  89. package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +106 -0
  90. package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +107 -0
  91. package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +64 -0
  92. package/src/components/or-segmented-control-v3/components/or-segmented-control-item/styles.ts +50 -0
  93. package/src/components/or-segmented-control-v3/index.ts +3 -0
  94. package/src/components/or-segmented-control-v3/props.ts +4 -0
  95. package/src/components/or-segmented-control-v3/styles.ts +24 -0
  96. package/src/components/or-segmented-control-v3/types.ts +4 -0
  97. package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
  98. package/src/components/or-tabs-v3/OrTabs.stories3.ts +9 -4
  99. package/src/components/or-tabs-v3/OrTabs.vue +1 -1
  100. package/src/components/or-tooltip-v3/OrTooltip.vue +3 -2
  101. package/src/components/or-tooltip-v3/styles.ts +55 -0
  102. package/src/hooks/useClassAttribute.ts +1 -1
  103. package/dist/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -111
  104. package/dist/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  105. package/dist/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -7
  106. package/dist/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -111
  107. package/dist/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  108. package/dist/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -7
  109. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
  110. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -57
  111. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -322
  112. package/src/components/or-rich-text-editor-v3/index.ts +0 -1
  113. package/src/components/or-rich-text-editor-v3/styles.ts +0 -71
@@ -1,19 +1,15 @@
1
- import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue-demi';
2
- import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
1
+ export { s as OrSearchV3 } from './OrSearch-375eab55.js';
2
+ export { a as SearchSize } from './OrInputBox-634230b1.js';
3
+ import 'vue-demi';
3
4
  import '@vueuse/core';
4
- import { Editor } from '@tiptap/core';
5
- import StarterKit from '@tiptap/starter-kit';
6
- import Underline from '@tiptap/extension-underline';
7
- import Link from '@tiptap/extension-link';
8
- import Highlight from '@tiptap/extension-highlight';
9
- import Placeholder from '@tiptap/extension-placeholder';
10
- import { s as script$1 } from './OrIconButton-b8066b5d.js';
11
- import { s as script$2 } from './OrLabel-7d4fe80b.js';
12
- import { flatMap } from 'lodash';
13
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, normalizeClass, Fragment, renderList } from 'vue';
14
- import { s as styleInject } from './style-inject.es-4c6f2515.js';
5
+ import './useClassAttribute-47fdb016.js';
6
+ import './OrInput-256d2530.js';
7
+ import './OrError-19a62a18.js';
8
+ import 'vue';
9
+ import './OrHint-73835593.js';
10
+ import './OrIconButton-5fb3a9aa.js';
15
11
  import './OrIcon-b3906e35.js';
16
- import './OrTooltip-30e05f9e.js';
12
+ import './OrTooltip-36c6728c.js';
17
13
  import './OrPopover-3525c670.js';
18
14
  import '@floating-ui/dom';
19
15
  import './useElevation-0e973238.js';
@@ -21,288 +17,5 @@ import './useResponsive-a02e95b7.js';
21
17
  import './OrBottomSheet-9de57dd0.js';
22
18
  import './OrOverlay-27050c19.js';
23
19
  import './OrTeleport.vue3-8099178c.js';
24
-
25
- const EditorContainer = [
26
- // Colors
27
- 'border-disabled', 'dark:border-outline-dark', 'focus-within:theme-border-1-primary', 'dark:focus-within:theme-border-1-primary-dark', 'focus-within:bg-primary-opacity-0-08', 'dark:focus-within:bg-primary-opacity-0-08-dark', 'focus-within:theme-outline-primary', 'dark:focus-within:theme-outline-primary-dark',
28
- // Sizing
29
- 'border-1', 'rounded-md'];
30
- const EditorContainerFilled = [
31
- //Colors
32
- 'bg-primary-opacity-0-08', 'dark:bg-primary-opacity-0-08-dark'];
33
- const ToolbarContainer = [
34
- // Layout
35
- 'flex',
36
- //Spacing
37
- 'py-sm',
38
- //Sizing
39
- 'border-b-1',
40
- //Colors
41
- 'border-b-disabled', 'dark:border-b-outline-dark'];
42
- const Toolbar = [
43
- // Layout
44
- 'flex',
45
- // Spacing
46
- 'px-sm', 'gap-md',
47
- // Sizing
48
- 'border-r-1',
49
- //Colors
50
- 'border-r-disabled', 'dark:border-r-outline-dark',
51
- // Last child
52
- 'last-of-type:border-none'];
53
- const ToolbarButton = [
54
- // Typography
55
- 'text-on-disabled', 'dark:text-outline-dark'];
56
- const ToolbarButtonActive = [
57
- // Typography
58
- 'text-on-background', 'dark:text-on-background-dark'];
59
- const EditorInput = [
60
- // Spacing
61
- 'p-sm',
62
- // Typography
63
- 'typography-body-2-regular', 'text-on-background', 'dark:text-on-background-dark',
64
- // Sizing
65
- 'min-h-[88px]'];
66
-
67
- var script = defineComponent({
68
- name: 'OrRichTextEditor',
69
- components: {
70
- OrIconButton: script$1,
71
- OrLabel: script$2
72
- },
73
- inheritAttrs: false,
74
- props: {
75
- modelValue: {
76
- type: String,
77
- default: '',
78
- required: false
79
- },
80
- toolbar: {
81
- type: Array,
82
- default: () => [['bold', 'italic', 'strike'], ['underline', 'highlight'], ['link'], ['bulletList', 'orderedList'], ['undo', 'redo']]
83
- },
84
- description: {
85
- type: String,
86
- default: ''
87
- },
88
- placeholder: {
89
- type: String,
90
- default: 'Write something...'
91
- },
92
- autofocus: {
93
- type: Boolean,
94
- default: false
95
- }
96
- },
97
- emits: ['update:modelValue'],
98
- setup(props, {
99
- emit
100
- }) {
101
- // Refs
102
- let editor = null;
103
- const editorRef = ref();
104
- const containerRef = ref();
105
- const isActive = ref({});
106
- const isFilled = ref(false);
107
- const iconsEnum = ref({
108
- bold: 'format_bold',
109
- italic: 'format_italic',
110
- underline: 'format_underlined',
111
- strike: 'format_strikethrough',
112
- bulletList: 'format_list_bulleted',
113
- orderedList: 'format_list_numbered',
114
- link: 'link',
115
- highlight: 'highlight',
116
- redo: 'redo',
117
- undo: 'undo'
118
- });
119
- const iconTooltipsEnum = ref({
120
- bold: 'Bold',
121
- italic: 'Italic',
122
- underline: 'Underline',
123
- strike: 'Strike',
124
- bulletList: 'Bulleted List',
125
- orderedList: 'Numbered List',
126
- link: 'Link',
127
- highlight: 'Highlight',
128
- redo: 'Redo',
129
- undo: 'Undo'
130
- });
131
- onMounted(() => {
132
- editor = new Editor({
133
- onUpdate: ({
134
- editor
135
- }) => {
136
- setActiveFormats();
137
- const html = editor.getHTML();
138
- const text = editor.getText();
139
- emit('update:modelValue', text === '' ? text : html);
140
- isFilled.value = text !== '';
141
- },
142
- element: editorRef.value,
143
- content: props.modelValue,
144
- autofocus: props.autofocus,
145
- extensions: [StarterKit, Underline, Link.configure({
146
- openOnClick: true,
147
- linkOnPaste: true,
148
- autolink: false,
149
- protocols: ['ftp', 'mailto', 'http', 'https'],
150
- validate: href => /^https?:\/\//.test(href),
151
- HTMLAttributes: {
152
- class: 'text-primary cursor-pointer'
153
- }
154
- }), Highlight, Placeholder.configure({
155
- placeholder: props.placeholder,
156
- emptyEditorClass: 'is-editor-empty text-outline'
157
- })],
158
- editorProps: {
159
- attributes: {
160
- class: 'focus:outline-none'
161
- }
162
- }
163
- });
164
- setActiveFormats();
165
- isFilled.value = props.modelValue !== '';
166
- });
167
- onBeforeUnmount(() => {
168
- editor === null || editor === void 0 ? void 0 : editor.destroy();
169
- });
170
- // Methods
171
- const handleEditorClick = () => {
172
- setActiveFormats();
173
- editor === null || editor === void 0 ? void 0 : editor.commands.focus();
174
- };
175
- const handleToolbarClick = item => {
176
- if (item === 'bulletList' || item === 'orderedList') {
177
- item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
178
- } else if (item === 'link') {
179
- setLink();
180
- } else if (item === 'undo' || item === 'redo') {
181
- item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
182
- } else {
183
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
184
- }
185
- };
186
- const setLink = () => {
187
- const previousUrl = editor === null || editor === void 0 ? void 0 : editor.getAttributes('link').href;
188
- const url = window.prompt('URL', previousUrl);
189
- // cancelled
190
- if (url === null) {
191
- return;
192
- }
193
- // empty
194
- if (url === '') {
195
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
196
- return;
197
- }
198
- // update link
199
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').setLink({
200
- href: url
201
- }).run();
202
- };
203
- const setActiveFormats = () => {
204
- const toolbarList = flatMap(props.toolbar);
205
- toolbarList.forEach(item => {
206
- isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
207
- });
208
- };
209
- // Styles
210
- const classAttribute = useClassAttribute();
211
- const rootStyles = computed(() => {
212
- return ['or-rich-text-editor', classAttribute.value];
213
- });
214
- const containerStyles = computed(() => {
215
- return [...EditorContainer, ...(isFilled.value ? EditorContainerFilled : [])];
216
- });
217
- const toolbarContainerStyles = computed(() => {
218
- return [...ToolbarContainer];
219
- });
220
- const toolbarStyles = computed(() => {
221
- return [...Toolbar];
222
- });
223
- const editorInputStyles = computed(() => {
224
- return ['tiptap-editor', ...EditorInput];
225
- });
226
- const toolbarButtonStyles = item => {
227
- return [
228
- // Layout
229
- 'flex',
230
- // Spacing
231
- 'gap-md', ...(isActive.value[item] ? ToolbarButtonActive : ToolbarButton)];
232
- };
233
- //Effects
234
- watch(() => props.modelValue, value => {
235
- if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML())) {
236
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
237
- }
238
- });
239
- return {
240
- editor,
241
- editorRef,
242
- containerRef,
243
- iconsEnum,
244
- handleToolbarClick,
245
- handleEditorClick,
246
- isActive,
247
- iconTooltipsEnum,
248
- containerStyles,
249
- toolbarContainerStyles,
250
- toolbarStyles,
251
- rootStyles,
252
- toolbarButtonStyles,
253
- editorInputStyles
254
- };
255
- }
256
- });
257
-
258
- function render(_ctx, _cache, $props, $setup, $data, $options) {
259
- const _component_or_label = resolveComponent("or-label");
260
- const _component_or_icon_button = resolveComponent("or-icon-button");
261
- return openBlock(), createElementBlock("div", mergeProps({
262
- ref: "root"
263
- }, _ctx.$attrs, {
264
- class: _ctx.rootStyles
265
- }), [createVNode(_component_or_label, null, {
266
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.description), 1 /* TEXT */)]),
267
-
268
- _: 1 /* STABLE */
269
- }), createElementVNode("div", {
270
- ref: "containerRef",
271
- class: normalizeClass(_ctx.containerStyles),
272
- onClick: _cache[0] || (_cache[0] = $event => _ctx.handleEditorClick())
273
- }, [createElementVNode("div", {
274
- class: normalizeClass(_ctx.toolbarContainerStyles)
275
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.toolbar, tool => {
276
- return openBlock(), createElementBlock("div", {
277
- key: tool,
278
- class: normalizeClass(_ctx.toolbarStyles)
279
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(tool, item => {
280
- return openBlock(), createElementBlock("div", {
281
- key: item,
282
- class: normalizeClass(_ctx.toolbarButtonStyles(item))
283
- }, [createVNode(_component_or_icon_button, {
284
- tooltip: {
285
- text: _ctx.iconTooltipsEnum[item],
286
- placement: 'top'
287
- },
288
- icon: {
289
- icon: _ctx.iconsEnum[item],
290
- variant: 'inherit',
291
- size: 's'
292
- },
293
- onClick: $event => _ctx.handleToolbarClick(item)
294
- }, null, 8 /* PROPS */, ["tooltip", "icon", "onClick"])], 2 /* CLASS */);
295
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
296
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createElementVNode("div", {
297
- ref: "editorRef",
298
- class: normalizeClass(_ctx.editorInputStyles)
299
- }, null, 2 /* CLASS */)], 2 /* CLASS */)], 16 /* FULL_PROPS */);
300
- }
301
-
302
- var css_248z = ".tiptap-editor ol {\n margin: 0 24px;\n list-style: decimal;\n}\n.tiptap-editor ul {\n margin: 0 24px;\n list-style: initial;\n}\n.tiptap-editor .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}";
303
- styleInject(css_248z);
304
-
305
- script.render = render;
306
- script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
307
-
308
- export { script as OrRichTextEditor };
20
+ import './OrLabel-7d4fe80b.js';
21
+ import './style-inject.es-4c6f2515.js';
@@ -1,21 +1,5 @@
1
- export { s as OrSearchV3 } from './OrSearch-15a70678.js';
2
- export { a as SearchSize } from './OrInputBox-634230b1.js';
1
+ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-2bbc0f22.js';
3
2
  import 'vue-demi';
4
- import '@vueuse/core';
5
3
  import './useClassAttribute-47fdb016.js';
6
- import './OrInput-3eef7945.js';
7
- import './OrError-19a62a18.js';
4
+ import '@vueuse/core';
8
5
  import 'vue';
9
- import './OrHint-73835593.js';
10
- import './OrIconButton-b8066b5d.js';
11
- import './OrIcon-b3906e35.js';
12
- import './OrTooltip-30e05f9e.js';
13
- import './OrPopover-3525c670.js';
14
- import '@floating-ui/dom';
15
- import './useElevation-0e973238.js';
16
- import './useResponsive-a02e95b7.js';
17
- import './OrBottomSheet-9de57dd0.js';
18
- import './OrOverlay-27050c19.js';
19
- import './OrTeleport.vue3-8099178c.js';
20
- import './OrLabel-7d4fe80b.js';
21
- import './style-inject.es-4c6f2515.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from './OrSelect-9d300f55.js';
1
+ export { s as OrSelectV3 } from './OrSelect-52cfb10d.js';
2
2
  export { a as SelectSize } from './OrInputBox-634230b1.js';
3
3
  import 'vue-demi';
4
4
  import './dropdown-open-0d314aa4.js';
@@ -13,9 +13,9 @@ import './OrError-19a62a18.js';
13
13
  import './OrExpansionPanel-1e2a6375.js';
14
14
  import './OrIcon-b3906e35.js';
15
15
  import './OrHint-73835593.js';
16
- import './OrInput-3eef7945.js';
17
- import './OrIconButton-b8066b5d.js';
18
- import './OrTooltip-30e05f9e.js';
16
+ import './OrInput-256d2530.js';
17
+ import './OrIconButton-5fb3a9aa.js';
18
+ import './OrTooltip-36c6728c.js';
19
19
  import './OrPopover-3525c670.js';
20
20
  import '@floating-ui/dom';
21
21
  import './useElevation-0e973238.js';
@@ -24,4 +24,4 @@ import './OrBottomSheet-9de57dd0.js';
24
24
  import './OrOverlay-27050c19.js';
25
25
  import './OrTeleport.vue3-8099178c.js';
26
26
  import './OrMenuItem-8773d073.js';
27
- import './OrTag-144b4ab8.js';
27
+ import './OrTag-deaff080.js';
@@ -1,4 +1,4 @@
1
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-ac0be933.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -1,11 +1,11 @@
1
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-144b4ab8.js';
1
+ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-deaff080.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import './OrIconButton-b8066b5d.js';
5
+ import './OrIconButton-5fb3a9aa.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-30e05f9e.js';
8
+ import './OrTooltip-36c6728c.js';
9
9
  import './OrPopover-3525c670.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
@@ -1,13 +1,13 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2a8f948.js';
1
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-d5d4ab32.js';
2
2
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import './OrTeleport.vue3-8099178c.js';
6
6
  import 'vue';
7
- import './OrIconButton-b8066b5d.js';
7
+ import './OrIconButton-5fb3a9aa.js';
8
8
  import './useClassAttribute-47fdb016.js';
9
9
  import './OrIcon-b3906e35.js';
10
- import './OrTooltip-30e05f9e.js';
10
+ import './OrTooltip-36c6728c.js';
11
11
  import './OrPopover-3525c670.js';
12
12
  import '@floating-ui/dom';
13
13
  import './useElevation-0e973238.js';
@@ -1,4 +1,4 @@
1
- export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
1
+ export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
2
2
  export { P as TooltipPlacement } from './OrPopover-3525c670.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
@@ -2,7 +2,7 @@ import { useToggle } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
3
3
  import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
4
4
  import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
5
- import { s as script$2 } from './OrIconButton-b8066b5d.js';
5
+ import { s as script$2 } from './OrIconButton-5fb3a9aa.js';
6
6
  import { s as script$3 } from './OrLoader-60943812.js';
7
7
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, createElementVNode, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
8
8
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.63.0-beta.1907.0",
3
+ "version": "2.63.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -29,14 +29,8 @@
29
29
  "@codemirror/lang-json": "6.0.0",
30
30
  "@codemirror/lang-markdown": "6.0.1",
31
31
  "@floating-ui/dom": "0.3.1",
32
- "@onereach/styles": "^2.30.0",
32
+ "@onereach/styles": "^2.31.0",
33
33
  "@splidejs/splide": "4.0.6",
34
- "@tiptap/core": "2.0.0-beta.209",
35
- "@tiptap/extension-highlight": "2.0.0-beta.209",
36
- "@tiptap/extension-link": "2.0.0-beta.209",
37
- "@tiptap/extension-placeholder": "2.0.0-beta.209",
38
- "@tiptap/extension-underline": "2.0.0-beta.209",
39
- "@tiptap/starter-kit": "2.0.0-beta.209",
40
34
  "@types/lodash": "4.14.173",
41
35
  "@types/sortablejs": "1.10.7",
42
36
  "@types/uuid": "8.3.1",
@@ -84,5 +78,6 @@
84
78
  },
85
79
  "publishConfig": {
86
80
  "access": "public"
87
- }
81
+ },
82
+ "gitHead": "1d365d54677891124b332a6725dc7fecc7d5c10e"
88
83
  }
@@ -58,6 +58,7 @@ export * from './or-radio';
58
58
  export * from './or-radio-group';
59
59
  export * from './or-radio-v3';
60
60
  export * from './or-search-v3';
61
+ export * from './or-segmented-control-v3';
61
62
  export * from './or-select';
62
63
  export * from './or-select-v3';
63
64
  export * from './or-sidebar';
@@ -27,7 +27,7 @@ export default {
27
27
  },
28
28
 
29
29
  value: { // TODO: Remove Vue 2 fallback
30
- control: { type: 'object' },
30
+ table: { disable: true },
31
31
  },
32
32
 
33
33
  inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
@@ -217,7 +217,7 @@ export default defineComponent({
217
217
 
218
218
  function reset(): void {
219
219
  if (draftModelValue.value !== proxyModelValue.value) {
220
- draftModelValue.value = proxyModelValue.value;
220
+ draftModelValue.value = proxyModelValue.value ?? '';
221
221
  }
222
222
 
223
223
  activated.value = false;
@@ -225,7 +225,7 @@ export default defineComponent({
225
225
 
226
226
  // Effects
227
227
  watch(proxyModelValue, (value) => {
228
- draftModelValue.value = value;
228
+ draftModelValue.value = value ?? '';
229
229
  }, { immediate: true });
230
230
 
231
231
  return {
@@ -205,7 +205,7 @@ export default defineComponent({
205
205
 
206
206
  function reset(): void {
207
207
  if (draftModelValue.value !== proxyModelValue.value) {
208
- draftModelValue.value = proxyModelValue.value;
208
+ draftModelValue.value = proxyModelValue.value ?? '';
209
209
  }
210
210
 
211
211
  activated.value = false;
@@ -213,7 +213,7 @@ export default defineComponent({
213
213
 
214
214
  // Effects
215
215
  watch(proxyModelValue, (value) => {
216
- draftModelValue.value = value;
216
+ draftModelValue.value = value ?? '';
217
217
  }, { immediate: true });
218
218
 
219
219
  return {
@@ -41,32 +41,34 @@
41
41
  @blur="$emit('blur', $event)"
42
42
  >
43
43
 
44
- <template v-if="type === 'password'">
45
- <OrIconButton
46
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
47
- :color="'inherit'"
48
- :disabled="disabled"
49
- @click.stop="disclosed = !disclosed"
50
- />
51
- </template>
52
-
53
- <template v-if="type === 'search'">
54
- <template v-if="modelValue">
44
+ <div :class="['-m-xs', 'ml-none']">
45
+ <template v-if="type === 'password'">
55
46
  <OrIconButton
56
- :icon="'close'"
47
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
57
48
  :color="'inherit'"
58
49
  :disabled="disabled"
59
- @click.stop="$emit('update:modelValue', '')"
50
+ @click.stop="disclosed = !disclosed"
60
51
  />
61
52
  </template>
62
53
 
63
- <template v-else>
64
- <OrIcon
65
- :icon="'search'"
66
- :variant="'outlined'"
67
- />
54
+ <template v-if="type === 'search'">
55
+ <template v-if="modelValue">
56
+ <OrIconButton
57
+ :icon="'close'"
58
+ :color="'inherit'"
59
+ :disabled="disabled"
60
+ @click.stop="$emit('update:modelValue', '')"
61
+ />
62
+ </template>
63
+
64
+ <template v-else>
65
+ <OrIcon
66
+ :icon="'search'"
67
+ :variant="'outlined'"
68
+ />
69
+ </template>
68
70
  </template>
69
- </template>
71
+ </div>
70
72
  </OrInputBox>
71
73
 
72
74
  <template v-if="!invalid">
@@ -27,7 +27,7 @@ export default {
27
27
  },
28
28
 
29
29
  value: { // TODO: Remove Vue 2 fallback
30
- control: { type: 'object' },
30
+ table: { disable: true },
31
31
  },
32
32
 
33
33
  inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
@@ -0,0 +1,7 @@
1
+ import { DocsPage } from '@storybook/addon-docs';
2
+
3
+ ```ts
4
+ import { OrSegmentedControlV3 as OrSegmentedControl } from '@onereach/ui-components';
5
+ ```
6
+
7
+ <DocsPage />