@nordcode/ui 1.1.5 → 1.1.7

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 (73) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/out/bundle.css +150 -79
  3. package/out/bundle_configless.css +150 -79
  4. package/out/colors.css +53 -66
  5. package/out/complete.css +156 -85
  6. package/out/complete_configless.css +156 -85
  7. package/out/src/assets/fonts/DMMono-Regular.woff +0 -0
  8. package/out/src/assets/fonts/DMMono-Regular.woff2 +0 -0
  9. package/out/src/assets/fonts/fonts.css +7 -0
  10. package/out/src/assets/icons/ArrowRightSolid.svelte +1 -0
  11. package/out/src/assets/icons/arrow-right-solid.svg +1 -0
  12. package/out/src/assets/icons/favicon.png +0 -0
  13. package/out/src/assets/icons/favicon.svg +8 -0
  14. package/out/src/assets/logos/nordcode-logo-icon.svg +3 -0
  15. package/out/src/assets/logos/nordcode-logo.svg +17 -0
  16. package/out/src/modules/copyButtons/ts/copyButtons.ts +9 -0
  17. package/out/src/modules/dialogs/svelte/dialog.svelte +27 -0
  18. package/out/src/modules/dialogs/ts/LICENCE +171 -0
  19. package/out/src/modules/dialogs/ts/dialogs.ts +111 -0
  20. package/out/src/modules/notifications/js/notifications.js +294 -0
  21. package/out/src/modules/notifications/svelte/NotificationCenter.svelte +18 -0
  22. package/out/src/modules/notifications/svelte/NotificationTemplate.svelte +16 -0
  23. package/out/src/modules/sectionObserver/ts/sectionOberserver.ts +34 -0
  24. package/out/src/styles/bundle.css +7 -0
  25. package/out/src/styles/bundle_configless.css +5 -0
  26. package/out/src/styles/complete.css +5 -0
  27. package/out/src/styles/complete_configless.css +5 -0
  28. package/out/src/styles/components/alerts.css +20 -0
  29. package/out/src/styles/components/badges.css +14 -0
  30. package/out/src/styles/components/breadcrumbs.css +37 -0
  31. package/out/src/styles/components/bundle.css +13 -0
  32. package/out/src/styles/components/buttons.css +260 -0
  33. package/out/src/styles/components/card.css +55 -0
  34. package/out/src/styles/components/dialogs.css +138 -0
  35. package/out/src/styles/components/forms.css +41 -0
  36. package/out/src/styles/components/gallery.css +66 -0
  37. package/out/src/styles/components/icons.css +60 -0
  38. package/out/src/styles/components/inputs/base.css +249 -0
  39. package/out/src/styles/components/inputs/bundle.css +5 -0
  40. package/out/src/styles/components/inputs/fields.css +76 -0
  41. package/out/src/styles/components/inputs/segmented.css +114 -0
  42. package/out/src/styles/components/inputs/switch.css +42 -0
  43. package/out/src/styles/components/inputs/tag-select.css +41 -0
  44. package/out/src/styles/components/lists.css +40 -0
  45. package/out/src/styles/components/notifications.css +135 -0
  46. package/out/src/styles/components/tables.css +7 -0
  47. package/out/src/styles/config/bundle.css +2 -0
  48. package/out/src/styles/config/config.css +700 -0
  49. package/out/src/styles/config/extras.css +12 -0
  50. package/out/src/styles/exceptions/bundle.css +3 -0
  51. package/out/src/styles/exceptions/misc.css +21 -0
  52. package/out/src/styles/exceptions/spacings.css +15 -0
  53. package/out/src/styles/exceptions/typography.css +57 -0
  54. package/out/src/styles/theme/colors.css +165 -0
  55. package/out/src/styles/theme/colors_processed.css +87 -0
  56. package/out/src/styles/utils/base.css +415 -0
  57. package/out/src/styles/utils/bundle.css +6 -0
  58. package/out/src/styles/utils/easings.css +364 -0
  59. package/out/src/styles/utils/layouts.css +281 -0
  60. package/out/src/styles/utils/media.css +55 -0
  61. package/out/src/styles/utils/reset.css +145 -0
  62. package/out/src/styles/utils/theme.css +125 -0
  63. package/package.json +1 -1
  64. package/src/styles/components/icons.css +2 -2
  65. package/src/styles/components/inputs/base.css +1 -1
  66. package/src/styles/components/inputs/fields.css +2 -2
  67. package/src/styles/components/inputs/segmented.css +1 -1
  68. package/src/styles/components/inputs/tag-select.css +1 -1
  69. package/src/styles/exceptions/typography.css +15 -0
  70. package/src/styles/utils/base.css +104 -9
  71. package/src/styles/utils/layouts.css +3 -3
  72. package/src/styles/utils/reset.css +4 -6
  73. package/transform.js +11 -23
@@ -0,0 +1,135 @@
1
+ @layer components.notifications {
2
+ :root {
3
+ --_notification-max-width: var(--notifications-max-width, 20rem);
4
+ --_notification-gap: var(--notification-gap, var(--spacing-base));
5
+ --_notification-border-color: var(--notification-border-color, var(--color-border-base));
6
+ --_notification-center-background: var(--notification-center-background,
7
+ color-mix(in oklch, var(---color-surface-subtle), transparent 95%);
8
+ );
9
+ }
10
+
11
+ :where(.nc-notification-center, .nc-notification-output) {
12
+ position: fixed;
13
+ inset-block-start: 0;
14
+ inset-block-end: 0;
15
+ inset-inline-end: 0;
16
+ inline-size: 100%;
17
+ block-size: 100%;
18
+ max-inline-size: var(--_notification-max-width);
19
+ padding-block: var(--_notification-gap);
20
+ pointer-events: none;
21
+ }
22
+
23
+ :where(.nc-notification-center) {
24
+ block-size: 100%;
25
+ backdrop-filter: blur(3px);
26
+ background-color: var(--_notification-center-background);
27
+ transform: translate(100%, 0);
28
+ transition: transform var(--transition-duration-base) ease-in-out;
29
+ }
30
+
31
+ :where(.nc-notification-output, .nc-notification-center-container) {
32
+ display: flex;
33
+ flex-direction: column;
34
+ align-items: flex-end;
35
+ gap: var(--_notification-gap);
36
+ inline-size: 100%;
37
+ overflow-y: scroll;
38
+ max-block-size: 100%;
39
+ padding-inline: var(--_notification-gap);
40
+ min-inline-size: 0;
41
+ min-block-size: 100%;
42
+ flex-grow: 1;
43
+ }
44
+
45
+ :where(.nc-notification-center.-open) {
46
+ pointer-events: all;
47
+ transform: translate(0, 0);
48
+ }
49
+
50
+ :where(.nc-notification-center.-open:has(+ .nc-notification-output > .nc-notification)) {
51
+ opacity: 0.5;
52
+ filter: contrast(0.5);
53
+ }
54
+
55
+ :where(.nc-notification-center-header) {
56
+ display: flex;
57
+ align-items: center;
58
+ gap: var(--_notification-gap);
59
+ padding-inline: var(--_notification-gap);
60
+ margin-block-end: var(--_notification-gap);
61
+ }
62
+
63
+ :where(.nc-notification) {
64
+ padding: 0.5lh 2ch;
65
+ background: var(--color-surface-base);
66
+ border: var(--border-width-thin) solid var(--_notification-border-color);
67
+ display: flex;
68
+ flex-direction: column;
69
+ inline-size: 100%;
70
+ border-radius: var(--border-radius-small);
71
+ box-shadow: var(--shadow-far);
72
+ animation: pop-in var(--transition-duration-base) cubic-bezier(0, 0.6, 0.58, 1);
73
+ color: var(--color-text-base);
74
+ pointer-events: all;
75
+ }
76
+
77
+ :where(.nc-notification) p {
78
+ margin: 0;
79
+ padding: 0;
80
+ }
81
+
82
+ :where(.nc-notification-title) {
83
+ font-size: var(--font-size-base);
84
+ font-weight: var(--font-weight-heading);
85
+ }
86
+
87
+ :where(.nc-notification-description) {
88
+ font-size: var(--font-size-small);
89
+ }
90
+
91
+ :where(.nc-notification-time) {
92
+ font-size: var(--font-size-small);
93
+ color: var(--color-text-subtle);
94
+ }
95
+
96
+ :where(.nc-notification-footer) {
97
+ display: flex;
98
+ justify-content: space-between;
99
+ align-items: flex-end;
100
+ inline-size: 100%;
101
+ margin-block-start: 0.5ch;
102
+ }
103
+
104
+ :where(.nc-notification .nc-button, .nc-notification-center .nc-button) {
105
+ --button-height-base: 1em;
106
+ font-size: var(--font-size-small);
107
+ }
108
+
109
+ :where(.nc-notification.-closing) {
110
+ animation: remove-notification var(--transition-duration-base) cubic-bezier(0.7, 0, 1, 1) forwards;
111
+ }
112
+
113
+ @keyframes pop-in {
114
+ 0% {
115
+ transform: translate(3vmin, -2vmin) scale(0.98);
116
+ opacity: 0;
117
+ }
118
+
119
+ 50% {
120
+ transform: translate(0, -1vmin) scale(0.98);
121
+ }
122
+
123
+ 100% {
124
+ transform: translate(0, 0) scale(1);
125
+ opacity: 1;
126
+ }
127
+ }
128
+
129
+ @keyframes remove-notification {
130
+ to {
131
+ transform: translate(0, 4vmin) scale(0.98);
132
+ opacity: 0;
133
+ }
134
+ }
135
+ }
@@ -0,0 +1,7 @@
1
+ @layer components.table {
2
+ :where(.nc-table) {
3
+ inline-size: 100%;
4
+ max-inline-size: 100%;
5
+ overflow-x: auto;
6
+ }
7
+ }
@@ -0,0 +1,2 @@
1
+ @import "./config.css";
2
+ @import "./extras.css";