@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
@@ -1,213 +0,0 @@
1
- import { EditorView } from '@codemirror/view';
2
- import { Extension } from '@codemirror/state';
3
- import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
4
- import { tags as t } from '@lezer/highlight';
5
-
6
- // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
7
-
8
- const chalky = 'var(--c-warning-darken-20)',
9
- coral = 'var(--c-error)',
10
- cyan = '#56b6c2',
11
- invalid = 'var(--c-white)',
12
- ivory = 'var(--c-neutral-6)',
13
- stone = 'var(--c-neutral-5)', // Brightened compared to original to increase contrast
14
- malibu = '#61afef',
15
- sage = 'var(--c-success)',
16
- whiskey = 'var(--c-warning-darken-5)',
17
- violet = '#c678dd',
18
- darkBackground = 'var(--c-neutral-1)',
19
- highlightBackground = 'var(--c-neutral-2)',
20
- background = 'var(--c-neutral-1)',
21
- tooltipBackground = 'var(--c-neutral-2)',
22
- selection = 'var(--c-neutral-3)',
23
- cursor = 'var(--c-primary)';
24
-
25
- /// The colors used in the theme, as CSS color strings.
26
- export const color = {
27
- chalky,
28
- coral,
29
- cyan,
30
- invalid,
31
- ivory,
32
- stone,
33
- malibu,
34
- sage,
35
- whiskey,
36
- violet,
37
- darkBackground,
38
- highlightBackground,
39
- background,
40
- tooltipBackground,
41
- selection,
42
- cursor,
43
- };
44
-
45
- /// The editor theme styles for One Dark.
46
- export const orCodeTheme = EditorView.theme({
47
- '&': {
48
- color: ivory,
49
- backgroundColor: background,
50
- },
51
-
52
- '.cm-content': {
53
- caretColor: cursor,
54
- },
55
-
56
- '.cm-button': {
57
- background: highlightBackground,
58
- color: 'var(--c-neutral-6)',
59
- border: 0,
60
- borderRadius: 'var(--s-2)',
61
- },
62
-
63
- '.cm-panel.cm-search input[type=checkbox]': {
64
- display: 'inline-block',
65
- verticalAlign: 'middle',
66
- },
67
-
68
- '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
69
- '&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
70
- backgroundColor: selection,
71
- },
72
-
73
- '.cm-panels': {
74
- backgroundColor: darkBackground,
75
- color: ivory,
76
- },
77
- '.cm-panels.cm-panels-top': { borderBottom: '2px solid var(--c-neutral-2)' },
78
- '.cm-panels.cm-panels-bottom': { borderTop: '2px solid var(--c-neutral-2)' },
79
-
80
- '.cm-searchMatch': {
81
- backgroundColor: 'var(--c-neutral-1)',
82
- outline: '1px solid var(--c-neutral-2)',
83
- },
84
- '.cm-searchMatch.cm-searchMatch-selected': {
85
- backgroundColor: '#6199ff2f',
86
- },
87
-
88
- '.cm-activeLine': { backgroundColor: '#6699ff0b' },
89
- '.cm-selectionMatch': { backgroundColor: '#aafe661a' },
90
-
91
- '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
92
- backgroundColor: '#bad0f847',
93
- },
94
-
95
- '.cm-gutters': {
96
- backgroundColor: background,
97
- color: stone,
98
- border: 'none',
99
- },
100
-
101
- '.cm-activeLineGutter': {
102
- backgroundColor: highlightBackground,
103
- },
104
-
105
- '.cm-foldPlaceholder': {
106
- backgroundColor: 'transparent',
107
- border: 'none',
108
- color: '#ddd',
109
- },
110
-
111
- '.cm-tooltip': {
112
- border: 'none',
113
- backgroundColor: tooltipBackground,
114
- },
115
- '.cm-tooltip .cm-tooltip-arrow:before': {
116
- borderTopColor: 'transparent',
117
- borderBottomColor: 'transparent',
118
- },
119
- '.cm-tooltip .cm-tooltip-arrow:after': {
120
- borderTopColor: tooltipBackground,
121
- borderBottomColor: tooltipBackground,
122
- },
123
- '.cm-tooltip-autocomplete': {
124
- '& > ul > li[aria-selected]': {
125
- backgroundColor: highlightBackground,
126
- color: ivory,
127
- },
128
- },
129
- '.cm-textfield': {
130
- outline: 'none',
131
- background: background,
132
- color: 'var(--c-neutral-6)',
133
- backgroundColor: 'var(--c-neutral-1)',
134
- border: '1px solid var(--c-neutral-2)',
135
- borderRadius: 'var(--s-2)',
136
- },
137
- }, { dark: true });
138
-
139
- /// The highlighting style for code in the One Dark theme.
140
- export const orCodeHighlightStyle = HighlightStyle.define([
141
- {
142
- tag: t.keyword,
143
- color: violet,
144
- },
145
- {
146
- tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],
147
- color: coral,
148
- },
149
- {
150
- tag: [t.function(t.variableName), t.labelName],
151
- color: malibu,
152
- },
153
- {
154
- tag: [t.color, t.constant(t.name), t.standard(t.name)],
155
- color: whiskey,
156
- },
157
- {
158
- tag: [t.definition(t.name), t.separator],
159
- color: ivory,
160
- },
161
- {
162
- tag: [t.typeName, t.className, t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
163
- color: chalky,
164
- },
165
- {
166
- tag: [t.operator, t.operatorKeyword, t.url, t.escape, t.regexp, t.link, t.special(t.string)],
167
- color: cyan,
168
- },
169
- {
170
- tag: [t.meta, t.comment],
171
- color: stone,
172
- },
173
- {
174
- tag: t.strong,
175
- fontWeight: 'bold',
176
- },
177
- {
178
- tag: t.emphasis,
179
- fontStyle: 'italic',
180
- },
181
- {
182
- tag: t.strikethrough,
183
- textDecoration: 'line-through',
184
- },
185
- {
186
- tag: t.link,
187
- color: stone,
188
- textDecoration: 'underline',
189
- },
190
- {
191
- tag: t.heading,
192
- fontWeight: 'bold',
193
- color: coral,
194
- },
195
- {
196
- tag: [t.atom, t.bool, t.special(t.variableName)],
197
- color: whiskey,
198
- },
199
- {
200
- tag: [t.processingInstruction, t.string, t.inserted],
201
- color: sage,
202
- },
203
- {
204
- tag: t.invalid,
205
- color: invalid,
206
- },
207
- ]);
208
-
209
- /// Extension to enable the One Dark theme (both the editor theme and
210
- /// the highlight style).
211
- const theme: Extension = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
212
-
213
- export default theme;