@dolanske/vui 1.4.1 → 1.4.2

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 (140) hide show
  1. package/package.json +1 -2
  2. package/src/App.vue +0 -103
  3. package/src/components/Accordion/Accordion.vue +0 -98
  4. package/src/components/Accordion/AccordionGroup.vue +0 -49
  5. package/src/components/Accordion/accordion.scss +0 -97
  6. package/src/components/Alert/Alert.vue +0 -59
  7. package/src/components/Alert/alert.scss +0 -162
  8. package/src/components/Avatar/Avatar.vue +0 -53
  9. package/src/components/Avatar/avatar.scss +0 -52
  10. package/src/components/Badge/Badge.vue +0 -21
  11. package/src/components/Badge/badge.scss +0 -210
  12. package/src/components/Breadcrumbs/BreadcrumbItem.vue +0 -26
  13. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -29
  14. package/src/components/Breadcrumbs/breadcrumbs.scss +0 -31
  15. package/src/components/Button/Button.vue +0 -86
  16. package/src/components/Button/button.scss +0 -292
  17. package/src/components/ButtonGroup/ButtonGroup.vue +0 -28
  18. package/src/components/ButtonGroup/button-group.scss +0 -51
  19. package/src/components/Calendar/Calendar.vue +0 -66
  20. package/src/components/Calendar/calendar.scss +0 -88
  21. package/src/components/Card/Card.vue +0 -48
  22. package/src/components/Card/card.scss +0 -55
  23. package/src/components/Checkbox/Checkbox.vue +0 -54
  24. package/src/components/Checkbox/checkbox.scss +0 -80
  25. package/src/components/CopyClipboard/CopyClipboard.vue +0 -98
  26. package/src/components/CopyClipboard/copy-clipboard.scss +0 -25
  27. package/src/components/Divider/Divider.vue +0 -38
  28. package/src/components/Divider/divider.scss +0 -37
  29. package/src/components/Drawer/Drawer.vue +0 -102
  30. package/src/components/Drawer/drawer.scss +0 -37
  31. package/src/components/Dropdown/Dropdown.vue +0 -120
  32. package/src/components/Dropdown/DropdownItem.vue +0 -33
  33. package/src/components/Dropdown/DropdownTitle.vue +0 -14
  34. package/src/components/Dropdown/dropdown-item.scss +0 -84
  35. package/src/components/Dropdown/dropdown.scss +0 -53
  36. package/src/components/Flex/Flex.vue +0 -113
  37. package/src/components/Grid/Grid.vue +0 -87
  38. package/src/components/Input/Color.vue +0 -26
  39. package/src/components/Input/Counter.vue +0 -66
  40. package/src/components/Input/Dropzone.vue +0 -65
  41. package/src/components/Input/File.vue +0 -15
  42. package/src/components/Input/Input.vue +0 -123
  43. package/src/components/Input/Password.vue +0 -35
  44. package/src/components/Input/Textarea.vue +0 -78
  45. package/src/components/Input/input.scss +0 -302
  46. package/src/components/Kbd/Kbd.vue +0 -48
  47. package/src/components/Kbd/KbdGroup.vue +0 -28
  48. package/src/components/Kbd/kbd.scss +0 -19
  49. package/src/components/Modal/Confirm.vue +0 -56
  50. package/src/components/Modal/Modal.vue +0 -103
  51. package/src/components/Modal/modal.scss +0 -54
  52. package/src/components/OTP/OTP.vue +0 -133
  53. package/src/components/OTP/OTPItem.vue +0 -37
  54. package/src/components/OTP/otp.scss +0 -84
  55. package/src/components/Pagination/Pagination.vue +0 -92
  56. package/src/components/Pagination/pagination.ts +0 -78
  57. package/src/components/Popout/Popout.vue +0 -73
  58. package/src/components/Popout/popout.scss +0 -16
  59. package/src/components/Progress/Progress.vue +0 -103
  60. package/src/components/Progress/progress.scss +0 -47
  61. package/src/components/Radio/Radio.vue +0 -38
  62. package/src/components/Radio/RadioGroup.vue +0 -34
  63. package/src/components/Radio/radio.scss +0 -78
  64. package/src/components/Select/Select.vue +0 -212
  65. package/src/components/Select/select.scss +0 -82
  66. package/src/components/Sheet/Sheet.vue +0 -106
  67. package/src/components/Sheet/sheet.scss +0 -71
  68. package/src/components/Sidebar/Sidebar.vue +0 -116
  69. package/src/components/Sidebar/sidebar.scss +0 -124
  70. package/src/components/Skeleton/Skeleton.vue +0 -43
  71. package/src/components/Skeleton/skeleton.scss +0 -14
  72. package/src/components/Spinner/Spinner.vue +0 -42
  73. package/src/components/Spinner/spinner.scss +0 -47
  74. package/src/components/Switch/Switch.vue +0 -31
  75. package/src/components/Switch/switch.scss +0 -93
  76. package/src/components/Table/Cell.vue +0 -23
  77. package/src/components/Table/Head.vue +0 -66
  78. package/src/components/Table/Root.vue +0 -66
  79. package/src/components/Table/SelectAll.vue +0 -23
  80. package/src/components/Table/SelectRow.vue +0 -30
  81. package/src/components/Table/index.ts +0 -7
  82. package/src/components/Table/table.scss +0 -155
  83. package/src/components/Table/table.ts +0 -248
  84. package/src/components/Tabs/Tab.vue +0 -25
  85. package/src/components/Tabs/Tabs.vue +0 -90
  86. package/src/components/Tabs/tabs.scss +0 -87
  87. package/src/components/Toast/Toasts.vue +0 -52
  88. package/src/components/Toast/toast.scss +0 -45
  89. package/src/components/Toast/toast.ts +0 -75
  90. package/src/components/Tooltip/Tooltip.vue +0 -78
  91. package/src/components/Tooltip/tooltip.scss +0 -5
  92. package/src/examples/ExampleAccordions.vue +0 -69
  93. package/src/examples/ExampleAlerts.vue +0 -78
  94. package/src/examples/ExampleAvatars.vue +0 -44
  95. package/src/examples/ExampleBadges.vue +0 -48
  96. package/src/examples/ExampleBreadcrumbs.vue +0 -46
  97. package/src/examples/ExampleButtons.vue +0 -148
  98. package/src/examples/ExampleCalendars.vue +0 -40
  99. package/src/examples/ExampleCards.vue +0 -94
  100. package/src/examples/ExampleCheckboxes.vue +0 -123
  101. package/src/examples/ExampleCopyClipboard.vue +0 -47
  102. package/src/examples/ExampleDividers.vue +0 -39
  103. package/src/examples/ExampleDrawers.vue +0 -67
  104. package/src/examples/ExampleDropdowns.vue +0 -114
  105. package/src/examples/ExampleFlexGrid.vue +0 -124
  106. package/src/examples/ExampleInputs.vue +0 -236
  107. package/src/examples/ExampleKBD.vue +0 -65
  108. package/src/examples/ExampleModals.vue +0 -143
  109. package/src/examples/ExamplePalette.vue +0 -165
  110. package/src/examples/ExamplePopouts.vue +0 -41
  111. package/src/examples/ExampleSheets.vue +0 -77
  112. package/src/examples/ExampleSidebars.vue +0 -276
  113. package/src/examples/ExampleSkeletons.vue +0 -26
  114. package/src/examples/ExampleSpinners.vue +0 -80
  115. package/src/examples/ExampleTables.vue +0 -359
  116. package/src/examples/ExampleTabs.vue +0 -142
  117. package/src/examples/ExampleToasts.vue +0 -96
  118. package/src/examples/ExampleTooltips.vue +0 -70
  119. package/src/examples/shared/ExampleColor.vue +0 -28
  120. package/src/index.ts +0 -116
  121. package/src/internal/Backdrop/Backdrop.vue +0 -22
  122. package/src/internal/Backdrop/backdrop.scss +0 -34
  123. package/src/main.ts +0 -5
  124. package/src/shared/helpers.ts +0 -124
  125. package/src/shared/slots.ts +0 -61
  126. package/src/shared/theme.ts +0 -22
  127. package/src/shared/types.ts +0 -29
  128. package/src/style/animation.scss +0 -50
  129. package/src/style/core.scss +0 -133
  130. package/src/style/fonts.scss +0 -73
  131. package/src/style/layout.scss +0 -179
  132. package/src/style/media-query.scss +0 -29
  133. package/src/style/reset.scss +0 -135
  134. package/src/style/text.scss +0 -137
  135. package/src/style/theme.scss +0 -195
  136. package/src/style/tooltip.scss +0 -146
  137. package/src/style/typography.scss +0 -435
  138. package/src/style/utils.scss +0 -36
  139. package/src/style.scss +0 -1
  140. package/src/vite-env.d.ts +0 -1
@@ -1,146 +0,0 @@
1
- /*
2
- This is a trick in which you can add simply tooltips to an element without any additional html.
3
- Simple add data-title-_position_="Hello world" and hover the element.
4
-
5
- Available tooltip positions:
6
- */
7
-
8
- [data-title-left],
9
- [data-title-right],
10
- [data-title-bottom],
11
- [data-title-bottom-left],
12
- [data-title-bottom-right],
13
- [data-title-top],
14
- [data-title-top-left],
15
- [data-title-top-right] {
16
- position: relative;
17
-
18
- &:before {
19
- font-family: var(--global-font);
20
- font-weight: var(--font-weight-regular);
21
- background-color: var(--color-button-gray);
22
- color: var(--color-text) !important;
23
- box-shadow: var(--box-shadow-strong);
24
-
25
- font-size: var(--font-size-m);
26
- position: absolute;
27
- padding: 4px 8px;
28
- line-height: 1.3em;
29
- border-radius: var(--border-radius-m);
30
- transition: var(--transition);
31
-
32
- max-width: 512px;
33
- opacity: 0;
34
- cursor: default;
35
- z-index: var(--z-behind);
36
- visibility: hidden;
37
- pointer-events: none;
38
- max-width: 256px;
39
- width: max-content;
40
- }
41
-
42
- &:hover {
43
- &:before {
44
- visibility: visible;
45
- opacity: 1;
46
- z-index: var(--z-popout);
47
- }
48
- }
49
- }
50
-
51
- :root.light {
52
- [data-title-left],
53
- [data-title-right],
54
- [data-title-bottom],
55
- [data-title-bottom-left],
56
- [data-title-bottom-right],
57
- [data-title-top],
58
- [data-title-top-left],
59
- [data-title-top-right] {
60
- &:before {
61
- background-color: var(--color-bg-lowered);
62
- }
63
- }
64
- }
65
-
66
- [data-title-left]:before {
67
- content: attr(data-title-left);
68
- top: 50%;
69
- transform: translateY(-50%);
70
- z-index: var(--z-popout);
71
- right: calc(100% + 4px);
72
- }
73
-
74
- [data-title-right]:before {
75
- content: attr(data-title-right);
76
- top: 50%;
77
- transform: translateY(-50%);
78
- z-index: var(--z-popout);
79
- left: calc(100% + 4px);
80
- }
81
-
82
- [data-title-bottom]:before,
83
- [data-title-bottom-left]:before,
84
- [data-title-bottom-right]:before {
85
- content: attr(data-title-bottom);
86
- top: calc(100% + 4px);
87
- transform: translateX(-50%);
88
- left: 50%;
89
- }
90
-
91
- [data-title-bottom-left]:before {
92
- content: attr(data-title-bottom-left);
93
- transform: unset;
94
- left: 0;
95
- }
96
-
97
- [data-title-bottom-right]:before {
98
- content: attr(data-title-bottom-right);
99
- transform: unset;
100
- left: unset;
101
- right: 0;
102
- }
103
-
104
- [data-title-top]:before,
105
- [data-title-top-left]:before,
106
- [data-title-top-right]:before {
107
- content: attr(data-title-top);
108
- bottom: calc(100% + 4px);
109
- transform: translateX(-50%);
110
- left: 50%;
111
- }
112
-
113
- [data-title-top-left]:before {
114
- content: attr(data-title-top-left);
115
- transform: unset;
116
- left: 0;
117
- }
118
-
119
- [data-title-top-right]:before {
120
- content: attr(data-title-top-right);
121
- transform: unset;
122
- left: unset;
123
- right: 0;
124
- }
125
-
126
- // Hover
127
-
128
- [data-title-left]:hover:before {
129
- right: calc(100% + 10px);
130
- }
131
-
132
- [data-title-right]:hover:before {
133
- left: calc(100% + 10px);
134
- }
135
-
136
- [data-title-top]:hover:before,
137
- [data-title-top-left]:hover:before,
138
- [data-title-top-right]:hover:before {
139
- bottom: calc(100% + 10px);
140
- }
141
-
142
- [data-title-bottom]:hover:before,
143
- [data-title-bottom-left]:hover:before,
144
- [data-title-bottom-right]:hover:before {
145
- top: calc(100% + 10px);
146
- }
@@ -1,435 +0,0 @@
1
- // Base style definitions
2
-
3
- // Definitions should be self contained. No element should ever expect there
4
- // will be more. Anything like margins and actual article spacings should be
5
- // defined within the <article> element
6
-
7
- h1,
8
- h2,
9
- h3,
10
- h4,
11
- h5,
12
- h6 {
13
- display: block;
14
- font-weight: var(--font-weight-extrabold);
15
- line-height: var(--line-height-title);
16
- }
17
-
18
- h1 {
19
- font-size: var(--font-size-xxxxl);
20
- }
21
-
22
- h2 {
23
- font-size: var(--font-size-xxxl);
24
- }
25
-
26
- h3 {
27
- font-size: var(--font-size-xxl);
28
- }
29
-
30
- h4 {
31
- font-size: var(--font-size-xl);
32
- }
33
-
34
- h5 {
35
- font-size: var(--font-size-l);
36
- }
37
-
38
- h6 {
39
- font-size: var(--font-size-m);
40
- }
41
-
42
- figcaption,
43
- table th,
44
- table td,
45
- blockquote,
46
- p {
47
- font-size: var(--font-size-m);
48
- line-height: var(--line-height-base);
49
- font-weight: var(--font-weight);
50
-
51
- & > * {
52
- line-height: inherit;
53
- font-size: inherit;
54
- }
55
-
56
- a {
57
- color: var(--color-text);
58
- text-decoration: underline;
59
- text-underline-offset: 3px;
60
-
61
- &:hover {
62
- text-decoration: none;
63
- }
64
- }
65
-
66
- strong,
67
- b {
68
- font-weight: var(--font-weight-bold);
69
- }
70
-
71
- i {
72
- font-style: italic;
73
- }
74
-
75
- u {
76
- text-decoration: line-through;
77
- }
78
- }
79
-
80
- code {
81
- display: inline-block;
82
- font-family: var(--global-font-mono);
83
- border-radius: var(--border-radius-s);
84
- background-color: var(--color-bg-raised);
85
- color: var(--color-text);
86
- border: 1px solid var(--color-border);
87
- padding: 0px 4px;
88
- font-weight: var(--font-weight);
89
- font-size: var(--font-size-s);
90
- min-height: 22px;
91
- line-height: var(--line-height-base);
92
- }
93
-
94
- hr {
95
- border-bottom: 1px solid var(--color-border);
96
- }
97
-
98
- span,
99
- strong,
100
- p {
101
- font-size: var(--font-size-m);
102
- }
103
-
104
- blockquote {
105
- display: block;
106
- padding-block: var(--space-s);
107
- padding-left: var(--space-l);
108
- border-left: 3px solid var(--color-border);
109
- line-height: var(--line-height-base);
110
- }
111
-
112
- pre {
113
- font-family: var(--global-font-mono);
114
- font-size: var(--font-size-s);
115
- font-weight: var(--font-weight);
116
- line-height: var(--line-height-base);
117
- padding: var(--space-m);
118
- border: 1px solid var(--color-border);
119
- border-radius: var(--border-radius-m);
120
- white-space: pre-wrap;
121
- background-color: var(--color-bg-raised);
122
- z-index: var(--z-default);
123
- position: relative;
124
-
125
- code {
126
- min-height: unset;
127
- padding: unset;
128
- border-radius: unset;
129
- border: unset;
130
- color: inherit;
131
- font-weight: inherit;
132
- font-size: inherit;
133
- background-color: inherit;
134
- font-family: inherit;
135
- line-height: inherit;
136
- }
137
-
138
- &[data-lang]::after {
139
- content: attr(data-lang);
140
- font-family: var(--global-font);
141
- display: block;
142
- position: absolute;
143
- font-weight: var(--font-weight-medium);
144
- top: 6px;
145
- right: 6px;
146
- padding: 5px;
147
- text-align: center;
148
- text-transform: uppercase;
149
- border-radius: var(--border-radius-s);
150
- font-size: var(--font-size-xs);
151
- color: var(--color-text-light);
152
- border: 1px solid var(--color-border);
153
- background-color: var(--color-bg-lowered);
154
- }
155
- }
156
-
157
- table {
158
- text-indent: 0;
159
- border-collapse: separate;
160
- overflow-x: auto;
161
- max-width: 100%;
162
-
163
- // TODO: add alternating row colors
164
-
165
- // TODO add only separating header and body with a border, not between rows
166
-
167
- // &.bg-dark {
168
- // background-color: var(--color-bg-lowered);
169
- // }
170
-
171
- // &.bg-light {
172
- // background-color: var(--color-bg-lighter);
173
- // }
174
-
175
- // &.no-borders {
176
- // th,
177
- // td {
178
- // border: 0 !important;
179
- // }
180
- // }
181
-
182
- thead {
183
- th {
184
- border-bottom: 1px solid var(--color-border);
185
- border-top: 1px solid var(--color-border);
186
- white-space: nowrap;
187
-
188
- &:first-child {
189
- border-top-left-radius: var(--border-radius-s);
190
- border-bottom-left-radius: 0 !important;
191
- }
192
-
193
- &:last-child {
194
- border-top-right-radius: var(--border-radius-s);
195
- border-bottom-right-radius: 0 !important;
196
- }
197
- }
198
- }
199
-
200
- tbody {
201
- th {
202
- border-radius: 0;
203
- border-bottom: 1px solid var(--color-border);
204
- }
205
-
206
- &:first-child tr:first-child {
207
- td {
208
- border-top: 1px solid var(--color-border);
209
-
210
- &:first-child {
211
- border-top-left-radius: var(--border-radius-s);
212
- }
213
-
214
- &:last-child {
215
- border-top-right-radius: var(--border-radius-s);
216
- }
217
- }
218
- }
219
- }
220
-
221
- th,
222
- td {
223
- text-align: left;
224
- padding-inline: var(--space-m);
225
- padding-block: var(--space-s);
226
- min-width: 80px;
227
- font-size: var(--font-size-m);
228
- line-height: var(--line-height-base);
229
- font-variant-numeric: tabular-nums;
230
- vertical-align: top;
231
-
232
- &:first-child {
233
- border-left: 1px solid var(--color-border);
234
- }
235
-
236
- border-right: 1px solid var(--color-border);
237
- }
238
-
239
- th {
240
- font-weight: var(--font-weight-semibold);
241
- font-size: var(--font-size-xs);
242
- text-transform: uppercase;
243
- }
244
-
245
- tr {
246
- td {
247
- border-bottom: 1px solid var(--color-border);
248
- font-weight: var(--font-weight);
249
- }
250
-
251
- &:first-child {
252
- th {
253
- border-top: 1px solid var(--color-border);
254
-
255
- &:first-child {
256
- border-top-left-radius: var(--border-radius-s);
257
- }
258
-
259
- &:last-child {
260
- border-top-right-radius: var(--border-radius-s);
261
- }
262
- }
263
- }
264
-
265
- &:last-child {
266
- th {
267
- &:first-child {
268
- border-bottom-left-radius: var(--border-radius-s);
269
- }
270
-
271
- &:last-child {
272
- border-bottom-right-radius: var(--border-radius-s);
273
- }
274
- }
275
-
276
- td {
277
- &:first-child {
278
- border-bottom-left-radius: var(--border-radius-s);
279
- }
280
-
281
- &:last-child {
282
- border-bottom-right-radius: var(--border-radius-s);
283
- }
284
- }
285
- }
286
- }
287
- }
288
-
289
- dl {
290
- display: grid;
291
- grid-template-columns: repeat(auto-fit, minmax(9ch, max-content));
292
- column-gap: var(--space-l);
293
-
294
- dt,
295
- dd {
296
- padding-inline: var(--space-m);
297
- margin-bottom: var(--space-l);
298
-
299
- &:last-of-type {
300
- margin-bottom: 0;
301
- }
302
- }
303
-
304
- dt {
305
- padding-left: 0;
306
- color: var(--color-text-lighter);
307
- font-weight: var(--font-weight-medium);
308
- font-size: var(--font-size-m);
309
- grid-column-start: 1;
310
- }
311
-
312
- dd {
313
- color: var(--color-text);
314
- font-size: var(--font-size-m);
315
- }
316
- }
317
-
318
- article {
319
- width: 100%;
320
- }
321
-
322
- article,
323
- .typeset {
324
- ol,
325
- ul {
326
- ol,
327
- ul {
328
- margin-block: var(--space-l) !important;
329
- }
330
-
331
- li {
332
- margin-bottom: var(--space-m);
333
- font-size: var(--font-size-m);
334
- position: relative;
335
- padding-left: 28px;
336
-
337
- & > ul {
338
- margin-top: 0;
339
- }
340
-
341
- &:before {
342
- content: '';
343
- position: absolute;
344
- top: 5px;
345
- left: 12px;
346
- }
347
-
348
- &:last-of-type {
349
- margin: 0;
350
- }
351
- }
352
- }
353
-
354
- ul {
355
- li {
356
- &:before {
357
- width: 6px;
358
- height: 6px;
359
- border-radius: 100%;
360
- background-color: var(--color-text-lighter);
361
- }
362
- }
363
- }
364
-
365
- ol {
366
- counter-reset: ol;
367
- li {
368
- counter-increment: ol;
369
-
370
- &:before {
371
- content: counter(ol) '.';
372
- top: 0;
373
- left: 8px;
374
- text-align: left;
375
- color: var(--color-text-light);
376
- }
377
- }
378
- }
379
-
380
- h1,
381
- h2,
382
- h3,
383
- h4,
384
- h5,
385
- h6 {
386
- &:not(:first-child) {
387
- margin-top: var(--space-xxl);
388
- }
389
-
390
- margin-bottom: var(--space-xs);
391
- }
392
-
393
- span,
394
- strong,
395
- p {
396
- font-size: var(--font-size-m);
397
- }
398
-
399
- dl,
400
- pre,
401
- img,
402
- table,
403
- ol,
404
- ul,
405
- blockquote,
406
- p {
407
- margin-top: var(--space-l);
408
-
409
- // &:first-child {
410
- // margin-top: 0;
411
- // }
412
- }
413
-
414
- hr {
415
- margin-block: var(--space-l);
416
- }
417
-
418
- img {
419
- border-radius: var(--border-radius-m);
420
- overflow: hidden;
421
- max-width: 100%;
422
- }
423
-
424
- figure {
425
- img {
426
- margin-bottom: var(--space-xs);
427
- }
428
-
429
- figcaption {
430
- text-align: center;
431
- font-size: var(--font-size-s);
432
- color: var(--color-text-lighter);
433
- }
434
- }
435
- }
@@ -1,36 +0,0 @@
1
- .visually-hidden {
2
- position: absolute;
3
- width: 1px;
4
- height: 1px;
5
- margin: -1px;
6
- border: 0;
7
- padding: 0;
8
-
9
- white-space: nowrap;
10
- clip-path: inset(100%);
11
- clip: rect(0 0 0 0);
12
- overflow: hidden;
13
- outline: transparent;
14
- outline-offset: 0;
15
- }
16
-
17
- mark {
18
- background-color: var(--color-text-yellow);
19
- color: var(--color-text-invert);
20
- padding: 1px;
21
- border-radius: 2px;
22
- }
23
-
24
- .counter {
25
- display: inline-flex;
26
- align-items: center;
27
- justify-content: center;
28
- min-width: 20px;
29
- height: 20px;
30
- border-radius: 10px;
31
- font-size: var(--font-size-xs);
32
- color: var(--color-text);
33
- background-color: var(--color-button-gray-hover);
34
- font-weight: 400;
35
- padding-inline: 4px;
36
- }
package/src/style.scss DELETED
@@ -1 +0,0 @@
1
- @import url(./style/core.scss);
package/src/vite-env.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />