@nordcode/ui 2.2.0 → 2.2.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 (74) hide show
  1. package/CHANGELOG.md +65 -53
  2. package/package.json +79 -79
  3. package/src/assets/icons/ArrowRightSolid.svelte +0 -0
  4. package/src/assets/icons/arrow-right-solid.svg +0 -0
  5. package/src/styles/components/inputs/base.css +4 -0
  6. package/src/styles/utils/theme.css +1 -1
  7. package/.idea/copilot.data.migration.agent.xml +0 -6
  8. package/.idea/copilot.data.migration.ask.xml +0 -6
  9. package/.idea/copilot.data.migration.ask2agent.xml +0 -6
  10. package/.idea/copilot.data.migration.edit.xml +0 -6
  11. package/.idea/modules.xml +0 -8
  12. package/.idea/ui.iml +0 -9
  13. package/.idea/vcs.xml +0 -6
  14. package/out/bundle.css +0 -1469
  15. package/out/bundle_configless.css +0 -1253
  16. package/out/colors.css +0 -82
  17. package/out/complete.css +0 -2867
  18. package/out/complete_configless.css +0 -2651
  19. package/out/src/assets/fonts/DMMono-Regular.woff +0 -0
  20. package/out/src/assets/fonts/DMMono-Regular.woff2 +0 -0
  21. package/out/src/assets/fonts/fonts.css +0 -7
  22. package/out/src/assets/icons/ArrowRightSolid.svelte +0 -1
  23. package/out/src/assets/icons/arrow-right-solid.svg +0 -1
  24. package/out/src/assets/icons/favicon.png +0 -0
  25. package/out/src/assets/icons/favicon.svg +0 -8
  26. package/out/src/assets/logos/nordcode-logo-icon.svg +0 -3
  27. package/out/src/assets/logos/nordcode-logo.svg +0 -17
  28. package/out/src/modules/copyButtons/ts/copyButtons.ts +0 -9
  29. package/out/src/modules/dialogs/svelte/dialog.svelte +0 -27
  30. package/out/src/modules/dialogs/ts/LICENCE +0 -171
  31. package/out/src/modules/dialogs/ts/dialogs.ts +0 -111
  32. package/out/src/modules/notifications/js/notifications.js +0 -294
  33. package/out/src/modules/notifications/svelte/NotificationCenter.svelte +0 -18
  34. package/out/src/modules/notifications/svelte/NotificationTemplate.svelte +0 -16
  35. package/out/src/modules/sectionObserver/ts/sectionOberserver.ts +0 -34
  36. package/out/src/styles/bundle.css +0 -7
  37. package/out/src/styles/bundle_configless.css +0 -5
  38. package/out/src/styles/complete.css +0 -5
  39. package/out/src/styles/complete_configless.css +0 -5
  40. package/out/src/styles/components/alerts.css +0 -20
  41. package/out/src/styles/components/badges.css +0 -14
  42. package/out/src/styles/components/breadcrumbs.css +0 -37
  43. package/out/src/styles/components/bundle.css +0 -13
  44. package/out/src/styles/components/buttons.css +0 -260
  45. package/out/src/styles/components/card.css +0 -55
  46. package/out/src/styles/components/dialogs.css +0 -138
  47. package/out/src/styles/components/forms.css +0 -41
  48. package/out/src/styles/components/gallery.css +0 -66
  49. package/out/src/styles/components/icons.css +0 -60
  50. package/out/src/styles/components/inputs/base.css +0 -249
  51. package/out/src/styles/components/inputs/bundle.css +0 -5
  52. package/out/src/styles/components/inputs/fields.css +0 -76
  53. package/out/src/styles/components/inputs/segmented.css +0 -114
  54. package/out/src/styles/components/inputs/switch.css +0 -42
  55. package/out/src/styles/components/inputs/tag-select.css +0 -41
  56. package/out/src/styles/components/lists.css +0 -40
  57. package/out/src/styles/components/notifications.css +0 -135
  58. package/out/src/styles/components/tables.css +0 -7
  59. package/out/src/styles/config/bundle.css +0 -2
  60. package/out/src/styles/config/config.css +0 -700
  61. package/out/src/styles/config/extras.css +0 -12
  62. package/out/src/styles/exceptions/bundle.css +0 -3
  63. package/out/src/styles/exceptions/misc.css +0 -21
  64. package/out/src/styles/exceptions/spacings.css +0 -15
  65. package/out/src/styles/exceptions/typography.css +0 -57
  66. package/out/src/styles/theme/colors.css +0 -165
  67. package/out/src/styles/theme/colors_processed.css +0 -87
  68. package/out/src/styles/utils/base.css +0 -415
  69. package/out/src/styles/utils/bundle.css +0 -6
  70. package/out/src/styles/utils/easings.css +0 -364
  71. package/out/src/styles/utils/layouts.css +0 -281
  72. package/out/src/styles/utils/media.css +0 -55
  73. package/out/src/styles/utils/reset.css +0 -145
  74. package/out/src/styles/utils/theme.css +0 -125
@@ -1,415 +0,0 @@
1
- @layer base {
2
- :where(:root) {
3
- accent-color: var(--color-brand-primary-base);
4
- caret-color: var(--color-brand-primary-base);
5
- scrollbar-color: var(--color-text-subtle) transparent;
6
- }
7
-
8
- :where(dt) {
9
- font-weight: var(--font-weight-active);
10
- color: var(--color-text-base);
11
- }
12
-
13
- :where(dd) {
14
- font-weight: var(--font-weight-default);
15
- color: var(--color-text-base);
16
-
17
- &:not(:last-of-type) {
18
- padding-block-end: 0.5lh;
19
- border-bottom: var(--border-width-thin) solid var(--color-border-muted);
20
- }
21
- }
22
-
23
- :where(dl:not([class]), .nc-description-list) {
24
- display: grid;
25
- grid-template-columns: 0.25fr 0.75fr;
26
- inline-size: 100%;
27
- max-inline-size: 100%;
28
- align-items: flex-start;
29
- word-break: break-word;
30
- container: description-list / inline-size;
31
- row-gap: 0.5lh;
32
- }
33
-
34
- :where(dd, dt) {
35
- grid-column: 1 / span 2;
36
- max-inline-size: var(--measure-base);
37
- }
38
-
39
- @container description-list (min-width: 30rem) {
40
- :where(dt) {
41
- grid-column: 1 / 1;
42
- padding-inline-end: 2ch;
43
- padding-block-end: 0;
44
- min-block-size: 100%;
45
-
46
- &:not(:last-of-type) {
47
- padding-block-end: 0.5lh;
48
- border-bottom: var(--border-width-thin) solid var(--color-border-muted);
49
- }
50
- }
51
-
52
- :where(dd) {
53
- grid-column: 2 / 2;
54
- min-block-size: 100%;
55
- }
56
- }
57
-
58
- :where(small) {
59
- font-size: var(--font-size-small);
60
- }
61
-
62
- :where(figure) {
63
- border-radius: var(--border-radius-medium);
64
-
65
- & :where(img, picture) {
66
- border-start-start-radius: inherit;
67
- border-start-end-radius: inherit;
68
- }
69
-
70
- & :where(figcaption) {
71
- border-end-start-radius: inherit;
72
- border-end-end-radius: inherit;
73
- text-align: center;
74
- }
75
- }
76
-
77
- :where(figcaption) {
78
- display: block;
79
- color: var(--color-surface-subtle);
80
- background-color: var(--color-text-base);
81
- padding: 0.25lh 1ch;
82
- }
83
-
84
- :where(details) {
85
- --p-x-details: 2ch;
86
- --p-y-details: 0.75lh;
87
- --b-r-details: var(--border-radius-medium);
88
-
89
- background-color: var(--color-surface-muted);
90
- border-radius: var(--b-r-details);
91
- border: var(--border-width-thin) solid var(--color-border-base);
92
- padding: var(--p-y-details) var(--p-x-details);
93
- inline-size: 100%;
94
-
95
- &>summary {
96
- color: var(--color-text-base);
97
- background: var(--color-surface-subtle);
98
- font-weight: var(--font-weight-heading);
99
- border-radius: var(--b-r-details);
100
- padding: var(--p-y-details) var(--p-x-details);
101
- margin: calc(-1 * var(--p-y-details)) calc(-1 * var(--p-x-details) + var(--border-width-thin));
102
- }
103
-
104
- &[open]>summary {
105
- border-end-start-radius: 0;
106
- border-end-end-radius: 0;
107
- margin-block-end: var(--p-y-details);
108
- }
109
- }
110
-
111
- .note,
112
- blockquote {
113
- padding: 0;
114
- padding-inline-start: 2ch;
115
- inline-size: 100%;
116
- color: var(--color-text-base);
117
- position: relative;
118
- margin-inline: 0;
119
- font-family: var(--font-family-serif);
120
- quotes: auto;
121
- font-size: var(--font-size-large);
122
-
123
- & p {
124
- max-inline-size: var(--measure-base);
125
-
126
- &:first-of-type:before {
127
- content: open-quote;
128
- }
129
-
130
- &:last-of-type:after {
131
- content: close-quote;
132
- }
133
- }
134
-
135
- & cite {
136
- display: block;
137
- font-family: var(--font-family-default);
138
- margin-block-start: var(--spacing-near);
139
- font-size: var(--font-size-base);
140
- max-inline-size: max-content;
141
- color: color-mix(in oklch,
142
- currentColor calc(var(--transparency-weaker) * 100%),
143
- transparent);
144
- }
145
-
146
- & cite:before {
147
- content: "—";
148
- margin-inline-end: 0.5ch;
149
- }
150
- }
151
-
152
- cite {
153
- font-family: var(--font-family-serif);
154
- font-style: normal;
155
- }
156
-
157
- :where(hr) {
158
- inline-size: 100%;
159
- block-size: var(--border-width-medium);
160
- background: var(--color-border-base);
161
- border-block-start: 0;
162
- }
163
-
164
- :where(h1, h2, h3, h4, h5, h6) {
165
- line-height: var(--line-height-small);
166
- color: inherit;
167
- max-inline-size: 100%;
168
- font-weight: var(--font-weight-heading);
169
- }
170
-
171
- :where(h1) {
172
- font-size: var(--font-size-display);
173
- }
174
-
175
- :where(h2) {
176
- font-size: var(--font-size-largest);
177
- }
178
-
179
- :where(h3) {
180
- font-size: var(--font-size-large);
181
- }
182
-
183
- :where(h4) {
184
- font-size: var(--font-size-base);
185
- }
186
-
187
- :where(h5) {
188
- font-size: var(--font-size-small);
189
- }
190
-
191
- :where(h6) {
192
- font-size: var(--font-size-smallest);
193
- }
194
-
195
- ::marker {
196
- color: var(--color-brand-primary-base);
197
- }
198
-
199
- ::selection,
200
- ::target-text {
201
- background-color: var(--color-brand-primary-base);
202
- color: var(--color-surface-base);
203
- }
204
-
205
- :where(a, .nc-link) {
206
- color: inherit;
207
- font-family: var(--font-family-link);
208
- text-decoration: underline;
209
- text-underline-offset: 0.25lh;
210
- text-decoration-thickness: from-font;
211
- font-weight: var(--font-weight-default);
212
- text-decoration-color: currentColor;
213
- cursor: pointer;
214
- letter-spacing: var(--tracking-tight);
215
-
216
- &:visited {
217
- opacity: 0.72;
218
- }
219
-
220
- &:hover {
221
- text-decoration-color: var(--color-brand-primary-base);
222
- }
223
- }
224
-
225
- :where(em, i) {
226
- font-family: var(--font-family-serif);
227
- }
228
-
229
- :where(strong, b) {
230
- font-weight: var(--font-weight-strong);
231
- }
232
-
233
- :where(dfn, var) {
234
- font-family: var(--font-family-mono);
235
- letter-spacing: var(--tracking-tight);
236
- font-weight: var(--font-weight-default);
237
- }
238
-
239
- :where(abbr) {
240
- text-decoration-color: var(--color-brand-primary-base);
241
- }
242
-
243
- :where([aria-disabled="true"], .disabled, :disabled) {
244
- color: inherit;
245
- opacity: 1;
246
- cursor: not-allowed;
247
- filter: contrast(0.64) opacity(0.64);
248
- }
249
-
250
- :where(del, ins, mark, code, kbd, var) {
251
- padding-inline: 0.5ch;
252
- border-radius: var(--border-radius-small);
253
- line-height: inherit;
254
- box-decoration-break: clone;
255
- -webkit-box-decoration-break: clone;
256
- }
257
-
258
- :where(code, kbd, var) {
259
- font-family: var(--font-family-mono);
260
- letter-spacing: 0;
261
- font-weight: var(--font-weight-default);
262
- padding-block: 0.125lh;
263
- max-inline-size: fit-content;
264
- hyphens: none;
265
- tab-size: 4;
266
- text-align: left;
267
- word-spacing: normal;
268
- word-break: normal;
269
- word-wrap: normal;
270
- font-style: normal;
271
- }
272
-
273
- :where(code) {
274
- background: var(--color-surface-subtle);
275
- }
276
-
277
- :where(var) {
278
- background: var(--color-brand-primary-surface);
279
- color: var(--color-brand-primary-emphasis);
280
- }
281
-
282
- :where(kbd) {
283
- background: var(--color-surface-subtle);
284
- border: var(--border-width-thin) solid var(--color-border-base);
285
- box-shadow: var(--shadow-nearest);
286
- font-weight: var(--font-weight-active);
287
- }
288
-
289
- :where(pre) {
290
- padding: 0.5lh 2ch;
291
- inline-size: 100%;
292
- overflow-x: auto;
293
- color: var(--color-text-base);
294
- border: var(--border-width-medium) solid var(--color-border-base);
295
- border-radius: var(--border-radius-medium);
296
- background: var(--color-surface-subtle);
297
- -webkit-overflow-scrolling: touch;
298
-
299
- & code {
300
- white-space: pre;
301
- border-radius: 0;
302
- padding: 0;
303
- background: none;
304
- }
305
- }
306
-
307
- :where(table) {
308
- --_nc-table-border-radius: var(--nc-table-border-radius, var(--border-radius-medium));
309
- inline-size: 100%;
310
- border-collapse: separate;
311
- border-spacing: 0;
312
- text-align: left;
313
- border: var(--border-width-medium) solid var(--color-border-base);
314
- border-radius: var(--_nc-table-border-radius);
315
- }
316
-
317
- :where(table > thead th:first-child) {
318
- border-start-start-radius: var(--_nc-table-border-radius);
319
- }
320
-
321
- :where(table > thead th:last-child) {
322
- border-start-end-radius: var(--_nc-table-border-radius);
323
- }
324
-
325
- :where(table > tfoot th:first-child) {
326
- border-end-start-radius: var(--_nc-table-border-radius);
327
- }
328
-
329
- :where(table > tfoot th:last-child) {
330
- border-end-end-radius: var(--_nc-table-border-radius);
331
- }
332
-
333
- :where(td, th) {
334
- padding: 0.4lh 1ch;
335
- line-height: var(--line-height-small);
336
- white-space: nowrap;
337
- font-variant-numeric: tabular-nums;
338
- }
339
-
340
- :where(td) {
341
- border-block-end: var(--border-width-thin) solid var(--color-border-muted);
342
- }
343
-
344
- :where(thead th) {
345
- border-block-end: var(--border-width-thin) solid var(--color-border-muted);
346
- }
347
-
348
- :where(tfoot th) {
349
- border-block-start: var(--border-width-thin) solid var(--color-border-muted);
350
- }
351
-
352
- :where(th) {
353
- font-weight: var(--font-weight-active);
354
- color: var(--color-text-muted);
355
- background-color: var(--color-surface-subtle);
356
- }
357
-
358
- :where(tbody tr:hover) {
359
- background: var(--color-brand-primary-hover);
360
- }
361
-
362
- :where(caption) {
363
- color: var(--color-text-base);
364
- }
365
-
366
- :where(tr:has(td) th) {
367
- border-block-end: var(--border-width-thin) solid var(--color-border-muted);
368
- border-inline-end: var(--border-width-thin) solid var(--color-border-muted);
369
- }
370
-
371
- :where(tr:last-child:has(td) th) {
372
- border-block-end: none;
373
- }
374
-
375
- :where(tr:last-child > td) {
376
- border: none;
377
- }
378
-
379
- :where(tbody tr:nth-child(even) > td) {
380
- background-color: var(--color-surface-muted);
381
- }
382
-
383
- :target {
384
- scroll-margin-block-start: 2ex;
385
- }
386
-
387
- :where(del) {
388
- color: var(--color-status-danger-emphasis);
389
- text-decoration-color: var(--color-status-danger-emphasis);
390
- background: var(--color-status-danger-surface);
391
- }
392
-
393
- :where(ins) {
394
- color: var(--color-status-success-emphasis);
395
- text-decoration-color: var(--color-status-success-emphasis);
396
- background: var(--color-status-success-surface);
397
- }
398
-
399
- :where(mark) {
400
- color: var(--color-brand-primary-emphasis);
401
- background: var(--color-brand-primary-surface);
402
- }
403
-
404
- :where(ul, ol) {
405
- padding-inline-start: 2ch;
406
- }
407
-
408
- :where(li + li) {
409
- margin-block-start: 0.5lh;
410
- }
411
-
412
- :where(li > :is(ul, ol)) {
413
- margin-block-start: 0.25lh;
414
- }
415
- }
@@ -1,6 +0,0 @@
1
- @import "./reset.css";
2
- @import "./media.css";
3
- @import "./base.css";
4
- @import "./easings.css";
5
- @import "./layouts.css";
6
- @import "./theme.css";