@nordcode/ui 1.0.0 → 1.0.1
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.
- package/README.md +8 -8
- package/out/complete.css +2 -2
- package/out/complete_configless.css +2 -2
- package/package.json +1 -1
- package/src/styles/components/notifications.css +5 -7
- package/CHANGELOG.md +0 -157
package/README.md
CHANGED
|
@@ -10,14 +10,14 @@ You can use this browserlist config to target the Baseline Widely Adapted standa
|
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
[
|
|
13
|
-
"Chrome > 0 and last 2.5 years"
|
|
14
|
-
"ChromeAndroid > 0 and last 2.5 years"
|
|
15
|
-
"Edge > 0 and last 2.5 years"
|
|
16
|
-
"Firefox > 0 and last 2.5 years"
|
|
17
|
-
"FirefoxAndroid > 0 and last 2.5 years"
|
|
18
|
-
"Safari > 0 and last 2.5 years"
|
|
19
|
-
"iOS > 0 and last 2.5 years"
|
|
20
|
-
"not dead"
|
|
13
|
+
"Chrome > 0 and last 2.5 years",
|
|
14
|
+
"ChromeAndroid > 0 and last 2.5 years",
|
|
15
|
+
"Edge > 0 and last 2.5 years",
|
|
16
|
+
"Firefox > 0 and last 2.5 years",
|
|
17
|
+
"FirefoxAndroid > 0 and last 2.5 years",
|
|
18
|
+
"Safari > 0 and last 2.5 years",
|
|
19
|
+
"iOS > 0 and last 2.5 years",
|
|
20
|
+
"not dead"
|
|
21
21
|
]
|
|
22
22
|
```
|
|
23
23
|
|
package/out/complete.css
CHANGED
|
@@ -2381,7 +2381,7 @@
|
|
|
2381
2381
|
--_notification-max-width: var(--notifications-max-width, 20rem);
|
|
2382
2382
|
--_notification-gap: var(--notification-gap, var(--spacing-base));
|
|
2383
2383
|
--_notification-border-color: var(--notification-border-color, var(--color-border-base));
|
|
2384
|
-
--_notification-center-background: var(--notification-center-background, oklch
|
|
2384
|
+
--_notification-center-background: var(--notification-center-background, color-mix(in oklch, var(---color-surface-subtle), transparent 95%) ;);
|
|
2385
2385
|
}
|
|
2386
2386
|
|
|
2387
2387
|
:where(.nc-notification-center, .nc-notification-output) {
|
|
@@ -2395,7 +2395,7 @@
|
|
|
2395
2395
|
inset-inline-end: 0;
|
|
2396
2396
|
}
|
|
2397
2397
|
|
|
2398
|
-
.nc-notification-center {
|
|
2398
|
+
:where(.nc-notification-center) {
|
|
2399
2399
|
-webkit-backdrop-filter: blur(3px);
|
|
2400
2400
|
backdrop-filter: blur(3px);
|
|
2401
2401
|
background-color: var(--_notification-center-background);
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
--_notification-max-width: var(--notifications-max-width, 20rem);
|
|
2117
2117
|
--_notification-gap: var(--notification-gap, var(--spacing-base));
|
|
2118
2118
|
--_notification-border-color: var(--notification-border-color, var(--color-border-base));
|
|
2119
|
-
--_notification-center-background: var(--notification-center-background, oklch
|
|
2119
|
+
--_notification-center-background: var(--notification-center-background, color-mix(in oklch, var(---color-surface-subtle), transparent 95%) ;);
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
2122
|
:where(.nc-notification-center, .nc-notification-output) {
|
|
@@ -2130,7 +2130,7 @@
|
|
|
2130
2130
|
inset-inline-end: 0;
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
-
.nc-notification-center {
|
|
2133
|
+
:where(.nc-notification-center) {
|
|
2134
2134
|
-webkit-backdrop-filter: blur(3px);
|
|
2135
2135
|
backdrop-filter: blur(3px);
|
|
2136
2136
|
background-color: var(--_notification-center-background);
|
package/package.json
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
--_notification-max-width: var(--notifications-max-width, 20rem);
|
|
4
4
|
--_notification-gap: var(--notification-gap, var(--spacing-base));
|
|
5
5
|
--_notification-border-color: var(--notification-border-color, var(--color-border-base));
|
|
6
|
-
--_notification-center-background: var(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
);
|
|
6
|
+
--_notification-center-background: var(--notification-center-background,
|
|
7
|
+
color-mix(in oklch, var(---color-surface-subtle), transparent 95%);
|
|
8
|
+
);
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
:where(.nc-notification-center, .nc-notification-output) {
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
pointer-events: none;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
.nc-notification-center {
|
|
23
|
+
:where(.nc-notification-center) {
|
|
25
24
|
block-size: 100%;
|
|
26
25
|
backdrop-filter: blur(3px);
|
|
27
26
|
background-color: var(--_notification-center-background);
|
|
@@ -108,8 +107,7 @@
|
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
:where(.nc-notification.-closing) {
|
|
111
|
-
animation: remove-notification var(--transition-duration-base) cubic-bezier(0.7, 0, 1, 1)
|
|
112
|
-
forwards;
|
|
110
|
+
animation: remove-notification var(--transition-duration-base) cubic-bezier(0.7, 0, 1, 1) forwards;
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
@keyframes pop-in {
|
package/CHANGELOG.md
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
# @nordcode/ui
|
|
2
|
-
|
|
3
|
-
## 2.3.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- ## Add default shadows to UI elements & tweaks
|
|
8
|
-
|
|
9
|
-
- apply heading font weight to headings
|
|
10
|
-
- tweak button design
|
|
11
|
-
- add slight shadow to default buttons
|
|
12
|
-
- make offset button a variant
|
|
13
|
-
- add inset shadow to inputs by default
|
|
14
|
-
- style input range thumb
|
|
15
|
-
- add shadow to switch thumb
|
|
16
|
-
|
|
17
|
-
## 2.2.0
|
|
18
|
-
|
|
19
|
-
### Minor Changes
|
|
20
|
-
|
|
21
|
-
- ## Small tweaks and additions
|
|
22
|
-
|
|
23
|
-
- add all font sizes as utility classes
|
|
24
|
-
- add sr-only as screen-reader class too
|
|
25
|
-
- make details more clickable by adding the padding to the summary instead
|
|
26
|
-
- add badges variants for primary & secondary
|
|
27
|
-
- make breadcrumbs and buttons more consistent
|
|
28
|
-
|
|
29
|
-
## 2.1.0
|
|
30
|
-
|
|
31
|
-
### Minor Changes
|
|
32
|
-
|
|
33
|
-
- ## Tweaks to base styles
|
|
34
|
-
|
|
35
|
-
- Add missing style: `var`
|
|
36
|
-
- Add text-rendering: optimizeSpeed;
|
|
37
|
-
- Fix Metalist styles
|
|
38
|
-
- Increase details default padding
|
|
39
|
-
- Simplify and improve blockquote styles
|
|
40
|
-
- Make em and i serif for improved italics
|
|
41
|
-
- Add font-smoothing to base
|
|
42
|
-
- Use `ex` in nc-flow for improved vertical rhythm
|
|
43
|
-
- Update line-height calculations after switching to `ex`-based line-heights in the generator
|
|
44
|
-
|
|
45
|
-
## 2.0.0
|
|
46
|
-
|
|
47
|
-
### Major Changes
|
|
48
|
-
|
|
49
|
-
- Change most spacings to use lh,ch and ex
|
|
50
|
-
|
|
51
|
-
## What changed
|
|
52
|
-
|
|
53
|
-
- Most components now have their spacings based on lh, ch and ex instead of the spacings
|
|
54
|
-
|
|
55
|
-
## Why we did it
|
|
56
|
-
|
|
57
|
-
- We keep a consistent and flexible UI like this
|
|
58
|
-
- AND we can be more flexible in the spacing scale without creating UI issues in the components
|
|
59
|
-
|
|
60
|
-
## How to migrate
|
|
61
|
-
|
|
62
|
-
Probably just use it and make sure, your styles are not broken
|
|
63
|
-
|
|
64
|
-
## 1.2.0
|
|
65
|
-
|
|
66
|
-
### Minor Changes
|
|
67
|
-
|
|
68
|
-
- Lots of small tweaks and new layouts
|
|
69
|
-
- feat(ui): extend styles for kbd and code and at scroll-margin to :target
|
|
70
|
-
- feat(ui): remove padding on small icon buttons
|
|
71
|
-
- feat(ui): simplify .text-assistive style
|
|
72
|
-
- feat(ui): add more layout utilities
|
|
73
|
-
- .nc-region for page sections
|
|
74
|
-
- .nc-grid for common grid layouts (50:50 / thirds)
|
|
75
|
-
- .nc-switcher for items that go beneath each other automatically
|
|
76
|
-
- add -between to cluster to provide for spacing-between
|
|
77
|
-
- feat(ui): add style for <del>
|
|
78
|
-
|
|
79
|
-
## 1.1.2
|
|
80
|
-
|
|
81
|
-
### Patch Changes
|
|
82
|
-
|
|
83
|
-
- Feat: use primary contrast color in checkboxes
|
|
84
|
-
|
|
85
|
-
## 1.1.1
|
|
86
|
-
|
|
87
|
-
### Patch Changes
|
|
88
|
-
|
|
89
|
-
- Fix generated dark theme
|
|
90
|
-
|
|
91
|
-
## 1.1.0
|
|
92
|
-
|
|
93
|
-
### Minor Changes
|
|
94
|
-
|
|
95
|
-
- Fix dark theme, tweak styles, add easings
|
|
96
|
-
- ab524dd: Fix Icon Button and remove rlh support checks
|
|
97
|
-
|
|
98
|
-
## 1.0.0
|
|
99
|
-
|
|
100
|
-
### Major Changes
|
|
101
|
-
|
|
102
|
-
- First proper release
|
|
103
|
-
|
|
104
|
-
## 2023-12-17: Chroma-js & color renames
|
|
105
|
-
|
|
106
|
-
**Includes Breaking Changes**
|
|
107
|
-
|
|
108
|
-
- switched to chroma-js to generate all colors based on a scale
|
|
109
|
-
- renamed `color-brand-primary-subtle` to `color-brand-primary-surface` to better reflect its
|
|
110
|
-
purpose
|
|
111
|
-
- renamed `color-brand-surface-subtle` to `color-brand-surface-surface` to better reflect its
|
|
112
|
-
purpose
|
|
113
|
-
- renamed `color-info-subtle` to `color-info-surface` to better reflect its purpose
|
|
114
|
-
- renamed `color-warning-subtle` to `color-warning-surface` to better reflect its purpose
|
|
115
|
-
- renamed `color-success-subtle` to `color-success-surface` to better reflect its purpose
|
|
116
|
-
- renamed `color-danger-subtle` to `color-danger-surface` to better reflect its purpose
|
|
117
|
-
|
|
118
|
-
_Notes: Needs tweaking for some of the values_
|
|
119
|
-
|
|
120
|
-
## 2023-12-18: Tweak presets
|
|
121
|
-
|
|
122
|
-
Tweak preset and color generations a little bit.
|
|
123
|
-
|
|
124
|
-
## 2023-12-19: Tweak presets, design improvements
|
|
125
|
-
|
|
126
|
-
- Tweak preset values for `brutalist`
|
|
127
|
-
- Change default text-underline-offset to `0.25lh`
|
|
128
|
-
- Fix description-list style
|
|
129
|
-
|
|
130
|
-
## 2023-12-22: Fix shadow generation
|
|
131
|
-
|
|
132
|
-
## 2023-12-25: Extend color possibilities
|
|
133
|
-
|
|
134
|
-
- Split Neutral Chroma into 3 for FG, BG and Borders
|
|
135
|
-
- Allow secondary brand color to be used in generating FG and BG neutral colors
|
|
136
|
-
|
|
137
|
-
## 2023-12-27: More color tweaks
|
|
138
|
-
|
|
139
|
-
- tweak button colors and fix base button hover
|
|
140
|
-
- use base chroma and hue in generation of scales when generating colors
|
|
141
|
-
|
|
142
|
-
### Minor Changes
|
|
143
|
-
|
|
144
|
-
- d829e99: added --gallery-scroll-snap-stop css prop to gallery
|
|
145
|
-
- 6025a83: add first batch of css component styles
|
|
146
|
-
- c42d1f3: add new export /media for css @custom-media
|
|
147
|
-
|
|
148
|
-
### Patch Changes
|
|
149
|
-
|
|
150
|
-
- a59822e: fixed border-radius-round typo (1e5px)
|
|
151
|
-
- bcae962: add icons and assets exports
|
|
152
|
-
|
|
153
|
-
## 0.0.1
|
|
154
|
-
|
|
155
|
-
### Patch Changes
|
|
156
|
-
|
|
157
|
-
- 65eca97: first try of changesets
|