@nordcode/ui 1.0.3 → 1.0.5
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/CHANGELOG.md +24 -0
- package/out/bundle.css +25 -40
- package/out/bundle_configless.css +5 -5
- package/out/colors.css +0 -5
- package/out/complete.css +190 -183
- package/out/complete_configless.css +170 -148
- package/package.json +2 -1
- package/src/styles/components/alerts.css +20 -0
- package/src/styles/components/bundle.css +4 -3
- package/src/styles/components/buttons.css +4 -0
- package/src/styles/components/forms.css +5 -9
- package/src/styles/components/inputs/fields.css +7 -10
- package/src/styles/components/inputs/segmented.css +24 -33
- package/src/styles/components/inputs/tag-select.css +5 -8
- package/src/styles/config/config.css +253 -696
- package/src/styles/theme/colors.css +0 -13
- package/src/styles/utils/base.css +5 -0
|
@@ -78,11 +78,6 @@
|
|
|
78
78
|
--color-status-danger-contrast-lightness: var(--lightningcss-light, var(--color-status-danger-contrast-lightness-light)) var(--lightningcss-dark, var(--color-status-danger-contrast-lightness-dark));
|
|
79
79
|
--color-status-danger-contrast: var(--lightningcss-light, var(--color-status-danger-contrast-light)) var(--lightningcss-dark, var(--color-status-danger-contrast-dark));
|
|
80
80
|
--shadow-color: var(--lightningcss-light, var(--shadow-color-light)) var(--lightningcss-dark, var(--shadow-color-dark));
|
|
81
|
-
--shadow-inset: var(--lightningcss-light, var(--shadow-inset-light)) var(--lightningcss-dark, var(--shadow-inset-dark));
|
|
82
|
-
--shadow-nearest: var(--lightningcss-light, var(--shadow-nearest-light)) var(--lightningcss-dark, var(--shadow-nearest-dark));
|
|
83
|
-
--shadow-near: var(--lightningcss-light, var(--shadow-near-light)) var(--lightningcss-dark, var(--shadow-near-dark));
|
|
84
|
-
--shadow-medium: var(--lightningcss-light, var(--shadow-medium-light)) var(--lightningcss-dark, var(--shadow-medium-dark));
|
|
85
|
-
--shadow-far: var(--lightningcss-light, var(--shadow-far-light)) var(--lightningcss-dark, var(--shadow-far-dark));
|
|
86
81
|
--triangle-down-url: var(--lightningcss-light, var(--triangle-down-url-light)) var(--lightningcss-dark, var(--triangle-down-url-dark));
|
|
87
82
|
--triangle-up-url: var(--lightningcss-light, var(--triangle-up-url-light)) var(--lightningcss-dark, var(--triangle-up-url-dark));
|
|
88
83
|
}
|
|
@@ -304,6 +299,10 @@
|
|
|
304
299
|
padding-block-end: var(--p-y-details);
|
|
305
300
|
}
|
|
306
301
|
|
|
302
|
+
:where(details) > summary::-webkit-details-marker {
|
|
303
|
+
display: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
307
306
|
:where(details) > summary {
|
|
308
307
|
cursor: pointer;
|
|
309
308
|
color: var(--color-text-base);
|
|
@@ -311,6 +310,7 @@
|
|
|
311
310
|
font-weight: var(--font-weight-strong);
|
|
312
311
|
padding-inline: var(--p-x-details);
|
|
313
312
|
padding-block: var(--p-y-details);
|
|
313
|
+
list-style: none;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
.note, blockquote {
|
|
@@ -1126,6 +1126,27 @@
|
|
|
1126
1126
|
margin-inline-end: auto;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
+
@layer components.alerts {
|
|
1130
|
+
:where(.nc-alert) {
|
|
1131
|
+
background: var(--surface);
|
|
1132
|
+
color: var(--text);
|
|
1133
|
+
gap: 1ch;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
:where(.nc-alert) > .nc-icon {
|
|
1137
|
+
margin-block: calc((var(--line-height-base) - var(--icon-size)) / 2);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
:where(.nc-alert-title) {
|
|
1141
|
+
font-weight: var(--font-weight-heading);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
:where(.nc-alert.-filled) {
|
|
1145
|
+
background: var(--surface-hover);
|
|
1146
|
+
color: var(--text-hover);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1129
1150
|
@layer components.badge {
|
|
1130
1151
|
:where(.badge) {
|
|
1131
1152
|
font-family: var(--font-family-mono);
|
|
@@ -1141,6 +1162,44 @@
|
|
|
1141
1162
|
}
|
|
1142
1163
|
}
|
|
1143
1164
|
|
|
1165
|
+
@layer components.breadcrumbs {
|
|
1166
|
+
:where(.nc-breadcrumbs) {
|
|
1167
|
+
background-color: var(--nc-breadcrumbs-surface, transparent);
|
|
1168
|
+
inline-size: max-content;
|
|
1169
|
+
max-inline-size: 100%;
|
|
1170
|
+
color: var(--nc-breadcrumbs-text, --color-text-muted);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
:where(.nc-breadcrumb-item) {
|
|
1174
|
+
color: inherit;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
:where(.nc-breadcrumb-item):last-child {
|
|
1178
|
+
color: var(--color-brand-primary-base);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
:where(.nc-breadcrumb-item):not(:last-child):after {
|
|
1182
|
+
color: inherit;
|
|
1183
|
+
content: "›";
|
|
1184
|
+
font-size: inherit;
|
|
1185
|
+
padding-inline: 1ch;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
:where(.nc-breadcrumb-link) {
|
|
1189
|
+
color: inherit;
|
|
1190
|
+
text-decoration: none;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
:where(.nc-breadcrumb-link):hover {
|
|
1194
|
+
text-decoration: underline;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
:where(.nc-breadcrumb-link)[aria-current="page"] {
|
|
1198
|
+
pointer-events: none;
|
|
1199
|
+
color: var(--nc-breadcrumbs-text-active, --color-text-base);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1144
1203
|
@layer components.buttons {
|
|
1145
1204
|
.buttonReset {
|
|
1146
1205
|
background: none;
|
|
@@ -1312,6 +1371,10 @@
|
|
|
1312
1371
|
padding: 0;
|
|
1313
1372
|
}
|
|
1314
1373
|
|
|
1374
|
+
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-aligned {
|
|
1375
|
+
margin-inline: calc(-1 * var(--_button-padding-inline));
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1315
1378
|
:where(input[type="file"]:not([class])) {
|
|
1316
1379
|
color: var(--_input-color);
|
|
1317
1380
|
background-color: var(--_input-background);
|
|
@@ -1536,6 +1599,48 @@
|
|
|
1536
1599
|
}
|
|
1537
1600
|
}
|
|
1538
1601
|
|
|
1602
|
+
@layer components.forms {
|
|
1603
|
+
:where(.nc-form) {
|
|
1604
|
+
inline-size: min(100%, var(--nc-form-max-inline-size, var(--measure-base)));
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
:where(.nc-form-title) {
|
|
1608
|
+
font-size: var(--font-size-largest);
|
|
1609
|
+
font-weight: var(--font-weight-heading);
|
|
1610
|
+
line-height: var(--line-height-small);
|
|
1611
|
+
color: var(--color-text-base);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
:where(.nc-form-hint) {
|
|
1615
|
+
font-size: var(--font-size-large);
|
|
1616
|
+
color: var(--color-text-muted);
|
|
1617
|
+
margin-block: .5lh;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
:where(fieldset:not([class]), .nc-fieldset) {
|
|
1621
|
+
border: none;
|
|
1622
|
+
min-inline-size: 0;
|
|
1623
|
+
margin: 0;
|
|
1624
|
+
padding: 0;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
:where(legend:not([class]), .nc-legend) {
|
|
1628
|
+
border: none;
|
|
1629
|
+
border-radius: 0;
|
|
1630
|
+
inline-size: 100%;
|
|
1631
|
+
padding: 0;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
:where(legend:not([class]), .nc-legend) + * {
|
|
1635
|
+
margin-block-start: var(--nc-legend-spacing, .75lh);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
:where(:is(fieldset:not([class]), .nc-fieldset):has(:is(.nc-legend + .nc-hint, legend:not([class]) + .nc-hint)) > :is(legend:not([class]), .nc-legend)) + .nc-hint {
|
|
1639
|
+
--nc-legend-spacing: 0;
|
|
1640
|
+
margin-block-end: .6lh;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1539
1644
|
@layer components.gallery {
|
|
1540
1645
|
:where(.nc-gallery) {
|
|
1541
1646
|
gap: var(--gallery-gap, var(--spacing-base));
|
|
@@ -1849,6 +1954,7 @@
|
|
|
1849
1954
|
--_tag-select-checked-text-color: var(--tag-select-checked-text-color, var(--color-brand-primary-contrast));
|
|
1850
1955
|
--_tag-select-checked-surface-color: var(--tag-select-checked-surface-color, var(--color-brand-primary-base));
|
|
1851
1956
|
--_tag-select-border-radius: var(--tag-select-border-radius, var(--_input-border-radius));
|
|
1957
|
+
--nc-legend-spacing: .25lh;
|
|
1852
1958
|
}
|
|
1853
1959
|
|
|
1854
1960
|
:where(.nc-tag-select-field):focus-within:has(:focus-visible) {
|
|
@@ -1949,43 +2055,45 @@
|
|
|
1949
2055
|
background: var(--_input-hover-background);
|
|
1950
2056
|
}
|
|
1951
2057
|
|
|
1952
|
-
:where(.nc-radio-field, .nc-checkbox-field)
|
|
2058
|
+
:where(.nc-radio-field, .nc-checkbox-field) {
|
|
2059
|
+
gap: 0;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
:where(.nc-radio-field, .nc-checkbox-field) > :not(:first-child) {
|
|
1953
2063
|
margin-block-start: .6lh;
|
|
1954
2064
|
}
|
|
1955
2065
|
}
|
|
1956
2066
|
|
|
1957
2067
|
@layer components.inputs-segmented {
|
|
1958
2068
|
:where(.nc-segmented-control-group) {
|
|
2069
|
+
--_segmented-control-border-radius: var(--segmented-control-border-radius, var(--_input-border-radius));
|
|
2070
|
+
--_segmented-control-checked-text-color: var(--segmented-control-checked-text-color, var(--color-brand-primary-contrast));
|
|
2071
|
+
--_segmented-control-checked-surface-color: var(--segmented-control-checked-surface-color, var(--color-brand-primary-base));
|
|
2072
|
+
--nc-legend-spacing: .25lh;
|
|
1959
2073
|
container: segmented-control / inline-size;
|
|
1960
2074
|
}
|
|
1961
2075
|
|
|
1962
2076
|
:where(.nc-segmented-control) {
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
2077
|
+
background: var(--_input-background);
|
|
2078
|
+
block-size: auto;
|
|
2079
|
+
inline-size: 100%;
|
|
1966
2080
|
box-shadow: var(--_input-box-shadow);
|
|
1967
2081
|
border-radius: var(--_segmented-control-border-radius);
|
|
1968
|
-
background: var(--_input-background);
|
|
1969
|
-
border: none;
|
|
1970
2082
|
grid-auto-rows: 1fr;
|
|
1971
2083
|
grid-auto-flow: row;
|
|
1972
|
-
block-size: auto;
|
|
1973
|
-
inline-size: 100%;
|
|
1974
|
-
margin: 0;
|
|
1975
|
-
padding: 0;
|
|
1976
2084
|
display: grid;
|
|
1977
2085
|
}
|
|
1978
2086
|
|
|
1979
|
-
:where(.nc-segmented-control) input {
|
|
1980
|
-
opacity: 0;
|
|
1981
|
-
position: absolute;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
2087
|
:where(.nc-segmented-control):focus-within {
|
|
1985
2088
|
outline: var(--_input-outline);
|
|
1986
2089
|
outline-offset: 0;
|
|
1987
2090
|
}
|
|
1988
2091
|
|
|
2092
|
+
:where(.nc-segmented-control) input {
|
|
2093
|
+
opacity: 0;
|
|
2094
|
+
position: absolute;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
1989
2097
|
:where(.nc-segmented-control) label {
|
|
1990
2098
|
padding-inline: var(--_input-padding-inline);
|
|
1991
2099
|
padding-block: var(--_input-padding-block);
|
|
@@ -2103,6 +2211,48 @@
|
|
|
2103
2211
|
}
|
|
2104
2212
|
}
|
|
2105
2213
|
|
|
2214
|
+
@layer components.lists {
|
|
2215
|
+
:where(.nc-meta-list) {
|
|
2216
|
+
inline-size: 100%;
|
|
2217
|
+
container: metalist / inline-size;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
:where(.nc-meta-list-item) {
|
|
2221
|
+
overflow-wrap: break-word;
|
|
2222
|
+
-webkit-hyphens: auto;
|
|
2223
|
+
hyphens: auto;
|
|
2224
|
+
inline-size: 100%;
|
|
2225
|
+
max-inline-size: 100%;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
:where(.nc-meta-list-item):not(:last-child) {
|
|
2229
|
+
margin-block-end: 1ch;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
@container metalist (width >= 20rem) {
|
|
2233
|
+
:where(.nc-meta-list-item) {
|
|
2234
|
+
inline-size: auto;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
:where(.nc-meta-list-item):not(:last-child):after {
|
|
2238
|
+
content: "";
|
|
2239
|
+
border-right: var(--border-width-medium) solid var(--color-border-muted);
|
|
2240
|
+
transform: calc(var(--border-width-medium) / 2);
|
|
2241
|
+
margin: 0 1ch;
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
:where(.nc-list-reset) {
|
|
2246
|
+
margin: 0;
|
|
2247
|
+
padding: 0;
|
|
2248
|
+
list-style: none;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
:where(.nc-list-reset) li {
|
|
2252
|
+
margin: 0;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2106
2256
|
@layer components.notifications {
|
|
2107
2257
|
:root {
|
|
2108
2258
|
--_notification-max-width: var(--notifications-max-width, 20rem);
|
|
@@ -2244,131 +2394,3 @@
|
|
|
2244
2394
|
overflow-x: auto;
|
|
2245
2395
|
}
|
|
2246
2396
|
}
|
|
2247
|
-
|
|
2248
|
-
@layer components.lists {
|
|
2249
|
-
:where(.nc-meta-list) {
|
|
2250
|
-
inline-size: 100%;
|
|
2251
|
-
container: metalist / inline-size;
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
:where(.nc-meta-list-item) {
|
|
2255
|
-
overflow-wrap: break-word;
|
|
2256
|
-
-webkit-hyphens: auto;
|
|
2257
|
-
hyphens: auto;
|
|
2258
|
-
inline-size: 100%;
|
|
2259
|
-
max-inline-size: 100%;
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
:where(.nc-meta-list-item):not(:last-child) {
|
|
2263
|
-
margin-block-end: 1ch;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
@container metalist (width >= 20rem) {
|
|
2267
|
-
:where(.nc-meta-list-item) {
|
|
2268
|
-
inline-size: auto;
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
:where(.nc-meta-list-item):not(:last-child):after {
|
|
2272
|
-
content: "";
|
|
2273
|
-
border-right: var(--border-width-medium) solid var(--color-border-muted);
|
|
2274
|
-
transform: calc(var(--border-width-medium) / 2);
|
|
2275
|
-
margin: 0 1ch;
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
:where(.nc-list-reset) {
|
|
2280
|
-
margin: 0;
|
|
2281
|
-
padding: 0;
|
|
2282
|
-
list-style: none;
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
:where(.nc-list-reset) li {
|
|
2286
|
-
margin: 0;
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
@layer components.breadcrumbs {
|
|
2291
|
-
:where(.nc-breadcrumbs) {
|
|
2292
|
-
background-color: var(--nc-breadcrumbs-surface, transparent);
|
|
2293
|
-
inline-size: max-content;
|
|
2294
|
-
max-inline-size: 100%;
|
|
2295
|
-
color: var(--nc-breadcrumbs-text, --color-text-muted);
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
:where(.nc-breadcrumb-item) {
|
|
2299
|
-
color: inherit;
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
:where(.nc-breadcrumb-item):last-child {
|
|
2303
|
-
color: var(--color-brand-primary-base);
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
:where(.nc-breadcrumb-item):not(:last-child):after {
|
|
2307
|
-
color: inherit;
|
|
2308
|
-
content: "›";
|
|
2309
|
-
font-size: inherit;
|
|
2310
|
-
padding-inline: 1ch;
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
:where(.nc-breadcrumb-link) {
|
|
2314
|
-
color: inherit;
|
|
2315
|
-
text-decoration: none;
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
:where(.nc-breadcrumb-link):hover {
|
|
2319
|
-
text-decoration: underline;
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
:where(.nc-breadcrumb-link)[aria-current="page"] {
|
|
2323
|
-
pointer-events: none;
|
|
2324
|
-
color: var(--nc-breadcrumbs-text-active, --color-text-base);
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
@layer components.forms {
|
|
2329
|
-
:where(.nc-form) {
|
|
2330
|
-
inline-size: min(100%, var(--nc-form-max-inline-size, var(--measure-base)));
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
:where(.nc-form-title) {
|
|
2334
|
-
font-size: var(--font-size-largest);
|
|
2335
|
-
font-weight: var(--font-weight-heading);
|
|
2336
|
-
line-height: var(--line-height-small);
|
|
2337
|
-
color: var(--color-text-base);
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
:where(.nc-form-hint) {
|
|
2341
|
-
font-size: var(--font-size-large);
|
|
2342
|
-
color: var(--color-text-muted);
|
|
2343
|
-
margin-block: .5lh;
|
|
2344
|
-
}
|
|
2345
|
-
|
|
2346
|
-
:where(fieldset:not([class]), .nc-fieldset) {
|
|
2347
|
-
border: none;
|
|
2348
|
-
min-inline-size: 0;
|
|
2349
|
-
margin: 0;
|
|
2350
|
-
padding: 0;
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
:where(legend:not([class]), .nc-legend) {
|
|
2354
|
-
font-family: var(--font-family-default);
|
|
2355
|
-
letter-spacing: var(--tracking-tight);
|
|
2356
|
-
font-weight: var(--font-weight-active);
|
|
2357
|
-
color: var(--text, var(--color-text-base));
|
|
2358
|
-
font-size: var(--font-size-base);
|
|
2359
|
-
border: none;
|
|
2360
|
-
border-radius: 0;
|
|
2361
|
-
inline-size: 100%;
|
|
2362
|
-
margin-block-end: .75lh;
|
|
2363
|
-
padding: 0;
|
|
2364
|
-
display: block;
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
|
-
:where(:is(fieldset:not([class]), .nc-fieldset):has(:is(.nc-legend + .nc-hint, legend:not([class]) + .nc-hint)) > :is(legend:not([class]), .nc-legend)) {
|
|
2368
|
-
margin-block-end: 0;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
:where(:is(fieldset:not([class]), .nc-fieldset):has(:is(.nc-legend + .nc-hint, legend:not([class]) + .nc-hint)) > :is(legend:not([class]), .nc-legend)) + .nc-hint {
|
|
2372
|
-
margin-block-end: .6lh;
|
|
2373
|
-
}
|
|
2374
|
-
}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/nordcode-agency/nordcode/tree/main/packages/ui"
|
|
14
14
|
},
|
|
15
|
-
"version": "1.0.
|
|
15
|
+
"version": "1.0.5",
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"./utils/layouts": "./src/styles/utils/layouts.css",
|
|
36
36
|
"./utils/theme": "./src/styles/utils/theme.css",
|
|
37
37
|
"./components": "./src/styles/components/bundle.css",
|
|
38
|
+
"./components/alerts": "./src/styles/components/alerts.css",
|
|
38
39
|
"./components/badges": "./src/styles/components/badges.css",
|
|
39
40
|
"./components/breadcrumbs": "./src/styles/components/breadcrumbs.css",
|
|
40
41
|
"./components/buttons": "./src/styles/components/buttons.css",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@layer components.alerts {
|
|
2
|
+
:where(.nc-alert) {
|
|
3
|
+
background: var(--surface);
|
|
4
|
+
color: var(--text);
|
|
5
|
+
gap: 1ch;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where(.nc-alert)>.nc-icon {
|
|
9
|
+
margin-block: calc((var(--line-height-base) - var(--icon-size)) / 2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.nc-alert-title) {
|
|
13
|
+
font-weight: var(--font-weight-heading);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.nc-alert.-filled) {
|
|
17
|
+
background: var(--surface-hover);
|
|
18
|
+
color: var(--text-hover);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
@import "./alerts.css";
|
|
1
2
|
@import "./badges.css";
|
|
3
|
+
@import "./breadcrumbs.css";
|
|
2
4
|
@import "./buttons.css";
|
|
3
5
|
@import "./card.css";
|
|
4
6
|
@import "./dialogs.css";
|
|
7
|
+
@import "./forms.css";
|
|
5
8
|
@import "./gallery.css";
|
|
6
9
|
@import "./icons.css";
|
|
7
10
|
@import "./inputs/bundle.css";
|
|
11
|
+
@import "./lists.css";
|
|
8
12
|
@import "./notifications.css";
|
|
9
13
|
@import "./tables.css";
|
|
10
|
-
@import "./lists.css";
|
|
11
|
-
@import "./breadcrumbs.css";
|
|
12
|
-
@import "./forms.css";
|
|
@@ -24,23 +24,19 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
:where(legend:not([class]), .nc-legend) {
|
|
27
|
-
font-family: var(--font-family-default);
|
|
28
|
-
letter-spacing: var(--tracking-tight);
|
|
29
|
-
font-weight: var(--font-weight-active);
|
|
30
|
-
color: var(--text, var(--color-text-base));
|
|
31
|
-
display: block;
|
|
32
|
-
font-size: var(--font-size-base);
|
|
33
27
|
padding: 0;
|
|
34
28
|
border: none;
|
|
35
29
|
border-radius: 0;
|
|
36
30
|
inline-size: 100%;
|
|
37
|
-
|
|
31
|
+
|
|
32
|
+
&+* {
|
|
33
|
+
margin-block-start: var(--nc-legend-spacing, 0.75lh);
|
|
34
|
+
}
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
:where( :is(fieldset:not([class]), .nc-fieldset):has( :is(.nc-legend + .nc-hint, legend:not([class]) + .nc-hint)) > :is(legend:not([class]), .nc-legend)) {
|
|
41
|
-
margin-block-end: 0;
|
|
42
|
-
|
|
43
38
|
&+.nc-hint {
|
|
39
|
+
--nc-legend-spacing: 0;
|
|
44
40
|
margin-block-end: 0.6lh;
|
|
45
41
|
}
|
|
46
42
|
}
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
max-inline-size: var(--input-field-max-inline-size);
|
|
9
9
|
place-items: start;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
&>label,
|
|
12
|
+
&>.nc-stack {
|
|
13
13
|
gap: 0.125lh;
|
|
14
14
|
line-height: var(--line-height-small);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
&>.nc-cluster {
|
|
18
18
|
gap: 1ch;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
place-items: start;
|
|
50
50
|
gap: 0;
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
&>[data-label] {
|
|
53
53
|
grid-area: label;
|
|
54
54
|
padding-inline-start: 1ch;
|
|
55
55
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
min-block-size: var(--line-height-base);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
&>[data-input] {
|
|
62
62
|
grid-area: checkbox;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -68,12 +68,9 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
:where(.nc-radio-field, .nc-checkbox-field) {
|
|
71
|
-
|
|
72
|
-
margin-block-start: 0.6lh;
|
|
73
|
-
}
|
|
71
|
+
gap: 0;
|
|
74
72
|
|
|
75
|
-
|
|
73
|
+
>*:not(:first-child) {
|
|
76
74
|
margin-block-start: 0.6lh;
|
|
77
75
|
}
|
|
78
76
|
}
|
|
79
|
-
}
|
|
@@ -1,43 +1,38 @@
|
|
|
1
1
|
@layer components.inputs-segmented {
|
|
2
2
|
:where(.nc-segmented-control-group) {
|
|
3
|
+
--_segmented-control-border-radius: var(--segmented-control-border-radius,
|
|
4
|
+
var(--_input-border-radius));
|
|
5
|
+
--_segmented-control-checked-text-color: var(--segmented-control-checked-text-color,
|
|
6
|
+
var(--color-brand-primary-contrast));
|
|
7
|
+
--_segmented-control-checked-surface-color: var(--segmented-control-checked-surface-color,
|
|
8
|
+
var(--color-brand-primary-base));
|
|
9
|
+
|
|
3
10
|
container: segmented-control / inline-size;
|
|
11
|
+
|
|
12
|
+
--nc-legend-spacing: 0.25lh;
|
|
4
13
|
}
|
|
5
14
|
|
|
6
15
|
:where(.nc-segmented-control) {
|
|
7
|
-
--_segmented-control-border-radius: var(
|
|
8
|
-
--segmented-control-border-radius,
|
|
9
|
-
var(--_input-border-radius)
|
|
10
|
-
);
|
|
11
|
-
--_segmented-control-checked-text-color: var(
|
|
12
|
-
--segmented-control-checked-text-color,
|
|
13
|
-
var(--color-brand-primary-contrast)
|
|
14
|
-
);
|
|
15
|
-
--_segmented-control-checked-surface-color: var(
|
|
16
|
-
--segmented-control-checked-surface-color,
|
|
17
|
-
var(--color-brand-primary-base)
|
|
18
|
-
);
|
|
19
16
|
display: grid;
|
|
20
17
|
grid-auto-rows: 1fr;
|
|
21
18
|
grid-auto-flow: row;
|
|
22
|
-
|
|
23
|
-
margin: 0;
|
|
24
|
-
border: none;
|
|
25
|
-
box-shadow: var(--_input-box-shadow);
|
|
26
|
-
border-radius: var(--_segmented-control-border-radius);
|
|
27
|
-
background: var(--_input-background);
|
|
19
|
+
|
|
28
20
|
block-size: auto;
|
|
29
21
|
inline-size: 100%;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
position: absolute;
|
|
34
|
-
}
|
|
22
|
+
background: var(--_input-background);
|
|
23
|
+
box-shadow: var(--_input-box-shadow);
|
|
24
|
+
border-radius: var(--_segmented-control-border-radius);
|
|
35
25
|
|
|
36
26
|
&:focus-within {
|
|
37
27
|
outline: var(--_input-outline);
|
|
38
28
|
outline-offset: 0;
|
|
39
29
|
}
|
|
40
30
|
|
|
31
|
+
& input {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
}
|
|
35
|
+
|
|
41
36
|
& label {
|
|
42
37
|
display: flex;
|
|
43
38
|
padding-inline: var(--_input-padding-inline);
|
|
@@ -48,7 +43,7 @@
|
|
|
48
43
|
align-items: center;
|
|
49
44
|
justify-content: center;
|
|
50
45
|
|
|
51
|
-
|
|
46
|
+
>.nc-input-label {
|
|
52
47
|
color: inherit;
|
|
53
48
|
}
|
|
54
49
|
|
|
@@ -58,13 +53,11 @@
|
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
&:first-child {
|
|
61
|
-
border-radius: var(--_segmented-control-border-radius)
|
|
62
|
-
var(--_segmented-control-border-radius) 0 0;
|
|
56
|
+
border-radius: var(--_segmented-control-border-radius) var(--_segmented-control-border-radius) 0 0;
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
&:last-child {
|
|
66
|
-
border-radius: 0 0 var(--_segmented-control-border-radius)
|
|
67
|
-
var(--_segmented-control-border-radius);
|
|
60
|
+
border-radius: 0 0 var(--_segmented-control-border-radius) var(--_segmented-control-border-radius);
|
|
68
61
|
}
|
|
69
62
|
|
|
70
63
|
&:not(:last-child) {
|
|
@@ -97,15 +90,13 @@
|
|
|
97
90
|
grid-auto-columns: 1fr;
|
|
98
91
|
grid-auto-flow: column;
|
|
99
92
|
|
|
100
|
-
>
|
|
93
|
+
>label {
|
|
101
94
|
&:first-child {
|
|
102
|
-
border-radius: var(--_segmented-control-border-radius) 0 0
|
|
103
|
-
var(--_segmented-control-border-radius);
|
|
95
|
+
border-radius: var(--_segmented-control-border-radius) 0 0 var(--_segmented-control-border-radius);
|
|
104
96
|
}
|
|
105
97
|
|
|
106
98
|
&:last-child {
|
|
107
|
-
border-radius: 0 var(--_segmented-control-border-radius)
|
|
108
|
-
var(--_segmented-control-border-radius) 0;
|
|
99
|
+
border-radius: 0 var(--_segmented-control-border-radius) var(--_segmented-control-border-radius) 0;
|
|
109
100
|
}
|
|
110
101
|
|
|
111
102
|
&:not(:last-child) {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
@layer components.inputs {
|
|
2
2
|
:where(.nc-tag-select-field) {
|
|
3
|
-
--_tag-select-checked-text-color: var(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--_tag-select-checked-surface-color: var(
|
|
8
|
-
--tag-select-checked-surface-color,
|
|
9
|
-
var(--color-brand-primary-base)
|
|
10
|
-
);
|
|
3
|
+
--_tag-select-checked-text-color: var(--tag-select-checked-text-color,
|
|
4
|
+
var(--color-brand-primary-contrast));
|
|
5
|
+
--_tag-select-checked-surface-color: var(--tag-select-checked-surface-color,
|
|
6
|
+
var(--color-brand-primary-base));
|
|
11
7
|
--_tag-select-border-radius: var(--tag-select-border-radius, var(--_input-border-radius));
|
|
8
|
+
--nc-legend-spacing: 0.25lh;
|
|
12
9
|
|
|
13
10
|
&:focus-within:has(:focus-visible) {
|
|
14
11
|
outline-offset: 1ch;
|