@nxgt/material 3.74.0 → 3.75.0
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 +48 -0
- package/README.md +7 -6
- package/dist/{background-D1gC4m2R.js → background-Q4Ek3rNy.js} +3 -1
- package/dist/backgrounds/css-react/celestial-day.css +85 -0
- package/dist/backgrounds/css-react/celestial.css +11 -11
- package/dist/backgrounds.js +1 -1
- package/dist/components/ui/collections/data-table/data-table-items-actions.css +37 -0
- package/dist/components/ui/collections/data-table/data-table-items-chevron.css +28 -0
- package/dist/components/ui/collections/data-table/data-table-items-tiles.css +7 -0
- package/dist/components/ui/collections/data-table/index.css +5 -1
- package/dist/components/ui/display/secret-card/secret-card.css +5 -1
- package/dist/components/ui/feedback/celebration/celebration.css +49 -0
- package/dist/components/ui/feedback/feedback.css +2 -0
- package/dist/{components-y18qSFzl.js → components-zJdfH4im.js} +17017 -16856
- package/dist/components.js +25 -25
- package/dist/editor.js +1 -1
- package/dist/lib/backgrounds/background/available.d.ts +4 -4
- package/dist/lib/backgrounds/background/background.d.ts +1 -1
- package/dist/lib/backgrounds/background/types.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/layout-types.d.ts +13 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-item-actions.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-item-title.d.ts +2 -1
- package/dist/lib/components/ui/collections/data-table/select-checkbox.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-band-classes.d.ts +3 -2
- package/dist/lib/components/ui/collections/server-table/server-table-classes.d.ts +8 -2
- package/dist/lib/components/ui/collections/server-table/types.d.ts +4 -0
- package/dist/lib/components/ui/display/change-history/partials/changes-collapse.d.ts +2 -1
- package/dist/lib/components/ui/display/secret-card/types.d.ts +6 -0
- package/dist/lib/components/ui/feedback/celebration/celebration.d.ts +24 -0
- package/dist/lib/components/ui/feedback/celebration/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/countdown-timer/countdown-ring.d.ts +1 -1
- package/dist/lib/components/ui/feedback/countdown-timer/countdown-timer.d.ts +2 -1
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/number-field/number-stepper.d.ts +11 -0
- package/dist/lib/components/ui/fields/quantity-field/quantity-row.d.ts +8 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +1 -1
- package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.d.ts +2 -2
- package/dist/lib/components/ui/selection/chip-group-field/partials/chip-group-option.d.ts +5 -3
- package/dist/lib/components/ui/selection/choice-group/choice-group-root.d.ts +3 -1
- package/dist/lib/components/ui/widgets/chat/chat-thread-header-parts.d.ts +17 -0
- package/dist/lib/components/ui/widgets/chat/chat-thread-header.d.ts +9 -3
- package/dist/lib/components/ui/widgets/chat/proposal/chat-tool-activity.d.ts +3 -1
- package/dist/lib/illustrations-game/index.d.ts +6 -5
- package/dist/main.js +39 -39
- package/dist/material.css +1 -1
- package/dist/{use-chat-composer-Cn6yaeO0.js → use-chat-composer-BvWQogJe.js} +2030 -2021
- package/docs/components/data-display.md +2 -1
- package/docs/components/data-table-filter-and-lists.md +14 -3
- package/docs/components/feedback-and-status.md +30 -2
- package/docs/components/form-fields.md +13 -1
- package/docs/components/navigation-and-layout.md +1 -1
- package/docs/components/primitives.md +2 -2
- package/docs/components/rich-widgets.md +3 -2
- package/docs/components/selection-and-choice.md +3 -3
- package/docs/getting-started.md +1 -1
- package/docs/guides/app-shell.md +1 -1
- package/docs/guides/backgrounds.md +23 -11
- package/docs/guides/cards-and-tiles.md +42 -3
- package/docs/guides/icon-motifs.md +7 -7
- package/docs/guides/illustrations.md +6 -5
- package/docs/guides/theming.md +1 -1
- package/docs/previews/backgrounds-day-and-dawn-sky.webp +0 -0
- package/docs/previews/feedback-status-illustration-game.webp +0 -0
- package/docs/troubleshooting.md +40 -2
- package/lib/backgrounds/css-react/celestial-day.css +85 -0
- package/lib/backgrounds/css-react/celestial.css +11 -11
- package/lib/components/ui/collections/data-table/data-table-items-actions.css +37 -0
- package/lib/components/ui/collections/data-table/data-table-items-chevron.css +28 -0
- package/lib/components/ui/collections/data-table/data-table-items-tiles.css +7 -0
- package/lib/components/ui/collections/data-table/index.css +5 -1
- package/lib/components/ui/display/secret-card/secret-card.css +5 -1
- package/lib/components/ui/feedback/celebration/celebration.css +49 -0
- package/lib/components/ui/feedback/feedback.css +2 -0
- package/lib/theme-picker/theme-picker.css +1 -0
- package/lib/theme-picker/theme-tile-textures-day.css +43 -0
- package/lib/themes/teal.css +20 -18
- package/package.json +6 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* The daytime skies, `day-sky` and `dawn-sky`: the dawn's wash, the sun's rays,
|
|
2
|
+
* the horizon glow and the clouds. Imported by celestial.css, which holds the
|
|
3
|
+
* rest of the celestial presets and the shared scene; see its header.
|
|
4
|
+
*
|
|
5
|
+
* Motion (opt-in, `animated`): rays turn, the glow swells, clouds drift;
|
|
6
|
+
* never under `prefers-reduced-motion`. React only. */
|
|
7
|
+
@layer components {
|
|
8
|
+
/* The dawn's wash: a pool low on the left where the sun rises, a lighter one above. */
|
|
9
|
+
[data-background="dawn-sky"] > [data-layer="wash"] {
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
background:
|
|
13
|
+
radial-gradient(
|
|
14
|
+
ellipse 80% 45% at 22% 74%,
|
|
15
|
+
color-mix(in oklab, var(--nxgt-bg-c2) var(--nxgt-bg-a2), transparent),
|
|
16
|
+
transparent 72%
|
|
17
|
+
),
|
|
18
|
+
radial-gradient(
|
|
19
|
+
ellipse 70% 40% at 80% 4%,
|
|
20
|
+
color-mix(in oklab, var(--nxgt-bg-c3) var(--nxgt-bg-a1), transparent),
|
|
21
|
+
transparent 70%
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* The sun's rays turn about the sun, the dawn's glow swells from the horizon. */
|
|
26
|
+
[data-background] > [data-scene][data-celestial] .sn > path,
|
|
27
|
+
[data-background] > [data-scene][data-celestial] .hz {
|
|
28
|
+
transform-box: fill-box;
|
|
29
|
+
transform-origin: 50% 100%;
|
|
30
|
+
}
|
|
31
|
+
[data-background] > [data-scene][data-celestial] .sn > path {
|
|
32
|
+
transform-origin: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* The clouds drift sideways from their own box. */
|
|
36
|
+
[data-background]
|
|
37
|
+
> [data-scene][data-celestial]
|
|
38
|
+
:is(.cl-day-sky, .cl-dawn-sky)
|
|
39
|
+
.cd
|
|
40
|
+
> .mo {
|
|
41
|
+
transform-box: fill-box;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
46
|
+
@keyframes nxgt-bg-sky-turn {
|
|
47
|
+
to {
|
|
48
|
+
transform: rotate(30deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@keyframes nxgt-bg-sky-glow {
|
|
52
|
+
to {
|
|
53
|
+
transform: scaleY(1.12);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@keyframes nxgt-bg-sky-cloud {
|
|
57
|
+
to {
|
|
58
|
+
transform: translateX(14px);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@layer components {
|
|
63
|
+
[data-background][data-animated]
|
|
64
|
+
> [data-scene][data-celestial]
|
|
65
|
+
.cl-day-sky
|
|
66
|
+
.cd
|
|
67
|
+
> .mo,
|
|
68
|
+
[data-background][data-animated]
|
|
69
|
+
> [data-scene][data-celestial]
|
|
70
|
+
.cl-dawn-sky
|
|
71
|
+
.cd
|
|
72
|
+
> .mo {
|
|
73
|
+
animation: nxgt-bg-sky-cloud 18s ease-in-out var(--nxgt-sky-delay, 0s)
|
|
74
|
+
infinite alternate var(--nxgt-bg-play, running);
|
|
75
|
+
}
|
|
76
|
+
[data-background][data-animated] > [data-scene][data-celestial] .sn > path {
|
|
77
|
+
animation: nxgt-bg-sky-turn 60s linear infinite alternate
|
|
78
|
+
var(--nxgt-bg-play, running);
|
|
79
|
+
}
|
|
80
|
+
[data-background][data-animated] > [data-scene][data-celestial] .hz {
|
|
81
|
+
animation: nxgt-bg-sky-glow 14s ease-in-out infinite alternate
|
|
82
|
+
var(--nxgt-bg-play, running);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* The celestial presets (`eclipse`, `meteor-shower`, `ringed-planet`,
|
|
2
|
-
* `northern-lights`
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* a
|
|
7
|
-
*
|
|
8
|
-
* watermark in light
|
|
9
|
-
*
|
|
10
|
-
* Motion (opt-in, `animated`): stars twinkle, meteors glide, ribbons drift;
|
|
11
|
-
* never under `prefers-reduced-motion`. React only. */
|
|
2
|
+
* `northern-lights`; `day-sky` and `dawn-sky` are in celestial-day.css) and
|
|
3
|
+
* the `sky` overlay, which draws the moon or one of them over any preset.
|
|
4
|
+
* Core's `/backgrounds/celestial` builds the scenes: the root is
|
|
5
|
+
* `mn cl-<preset>`, the colours are the `k1..k3` and `s1..s3` classes of
|
|
6
|
+
* scene.css, and a scene holds no inline style. Both kinds sit in a
|
|
7
|
+
* `[data-scene][data-celestial]` div, which this file styles. Discreet like
|
|
8
|
+
* `moon.css`: a faint watermark in light, silver light in dark. Motion
|
|
9
|
+
* (opt-in, `animated`): never under `prefers-reduced-motion`. React only. */
|
|
12
10
|
@import "../css/scene.css";
|
|
11
|
+
@import "./celestial-day.css";
|
|
13
12
|
|
|
14
13
|
@layer components {
|
|
15
14
|
/* The wash behind a celestial preset, as the moon's: two faint pools of
|
|
@@ -17,7 +16,8 @@
|
|
|
17
16
|
:is(
|
|
18
17
|
[data-background="eclipse"],
|
|
19
18
|
[data-background="meteor-shower"],
|
|
20
|
-
[data-background="ringed-planet"]
|
|
19
|
+
[data-background="ringed-planet"],
|
|
20
|
+
[data-background="day-sky"]
|
|
21
21
|
) > [data-layer="wash"] {
|
|
22
22
|
position: absolute;
|
|
23
23
|
inset: 0;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* DataTable cards and tiles: the trailing action slot (`item.Actions`,
|
|
2
|
+
* partials/layouts/data-table-item-actions.tsx). A sibling of the title, never
|
|
3
|
+
* inside its link, raised above the link's stretched `::after` (z-index 1, as
|
|
4
|
+
* the corner checkbox is) so a click on it never follows the card. At least a
|
|
5
|
+
* 44px target, at the item's end; the item keeps room for it. */
|
|
6
|
+
@layer components {
|
|
7
|
+
[data-slot="data-table-item-actions"] {
|
|
8
|
+
position: absolute;
|
|
9
|
+
z-index: 1;
|
|
10
|
+
inset-inline-end: 0.25rem;
|
|
11
|
+
inset-block-start: 0.625rem;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
gap: 0.25rem;
|
|
16
|
+
min-width: 2.75rem;
|
|
17
|
+
min-height: 2.75rem;
|
|
18
|
+
}
|
|
19
|
+
/* A tile: the slot is centred on the tile, as its checkbox is. */
|
|
20
|
+
[data-slot="data-table-tiles"] [data-slot="data-table-item-actions"] {
|
|
21
|
+
inset-block-start: 50%;
|
|
22
|
+
translate: 0 -50%;
|
|
23
|
+
}
|
|
24
|
+
[data-slot="data-table-cards"][data-density="compact"]
|
|
25
|
+
> [data-slot="data-table-item"]
|
|
26
|
+
> [data-slot="data-table-item-actions"],
|
|
27
|
+
[data-slot="data-table-cards"][data-card-density="compact"]
|
|
28
|
+
> [data-slot="data-table-item"]
|
|
29
|
+
> [data-slot="data-table-item-actions"] {
|
|
30
|
+
inset-block-start: 0.375rem;
|
|
31
|
+
}
|
|
32
|
+
/* Specific enough to win over the density and tile paddings above it. */
|
|
33
|
+
[data-slot="data-table-items"]
|
|
34
|
+
[data-slot="data-table-item"]:has(> [data-slot="data-table-item-actions"]) {
|
|
35
|
+
padding-inline-end: 3.25rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* DataTable cards and tiles: the trailing chevron of a linked `item.Title`
|
|
2
|
+
* (partials/layouts/data-table-item-title.tsx), the affordance `item.Row`
|
|
3
|
+
* draws in its own row. Decorative: centred on the item at its end, under the
|
|
4
|
+
* pointer (the link's `::after` takes the click), and the item keeps room for
|
|
5
|
+
* it. An item with an `item.Actions` slot leaves it out: that slot owns the
|
|
6
|
+
* item's end. */
|
|
7
|
+
@layer components {
|
|
8
|
+
[data-slot="item-chevron"][data-placement="item"] {
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset-inline-end: 0.75rem;
|
|
11
|
+
inset-block-start: 50%;
|
|
12
|
+
translate: 0 -50%;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
[data-slot="data-table-items"]
|
|
16
|
+
[data-slot="data-table-item"]:has([data-placement="item"]) {
|
|
17
|
+
padding-inline-end: 2.25rem;
|
|
18
|
+
}
|
|
19
|
+
[data-slot="data-table-items"]
|
|
20
|
+
[data-slot="data-table-item"]:has(> [data-slot="data-table-item-actions"])
|
|
21
|
+
[data-placement="item"] {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
[data-slot="data-table-items"]
|
|
25
|
+
[data-slot="data-table-item"]:has(> [data-slot="data-table-item-actions"]) {
|
|
26
|
+
padding-inline-end: 3.25rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
border: 1px solid var(--item-border);
|
|
14
14
|
border-radius: var(--item-radius);
|
|
15
15
|
}
|
|
16
|
+
/* A ServerTable on a phone has no panel of its own: the tile list sits at
|
|
17
|
+
* the page gutter, in line with the heading (#2292). */
|
|
18
|
+
@media (max-width: 767.98px) {
|
|
19
|
+
[data-slot="server-table"] [data-slot="data-table-tiles"] {
|
|
20
|
+
margin-inline: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
16
23
|
[data-slot="data-table-tiles"] > [data-slot="data-table-item"] {
|
|
17
24
|
padding: 0.75rem 1rem;
|
|
18
25
|
min-height: 4.5rem;
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
* data-table-items-bar.css the list bar
|
|
6
6
|
* data-table-items-forced.css forced colours
|
|
7
7
|
* data-table-items-tiles.css tiles: one column, one surface
|
|
8
|
-
* data-table-items-record.css the compact record row of a tile (item.Row)
|
|
8
|
+
* data-table-items-record.css the compact record row of a tile (item.Row)
|
|
9
|
+
* data-table-items-actions.css the trailing action slot (item.Actions)
|
|
10
|
+
* data-table-items-chevron.css the chevron of a linked item.Title */
|
|
9
11
|
@import "./data-table-items.css";
|
|
10
12
|
@import "./data-table-items-compact.css";
|
|
11
13
|
@import "./data-table-items-bar.css";
|
|
12
14
|
@import "./data-table-items-forced.css";
|
|
13
15
|
@import "./data-table-items-tiles.css";
|
|
14
16
|
@import "./data-table-items-record.css";
|
|
17
|
+
@import "./data-table-items-actions.css";
|
|
18
|
+
@import "./data-table-items-chevron.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SecretCard: a card whose secret face is not rendered until it is revealed.
|
|
1
|
+
/* SecretCard (`data-size="sm"` is the compact card): a card whose secret face is not rendered until it is revealed.
|
|
2
2
|
* It carries `data-tone`, so the tone's tokens resolve on it. The hidden face
|
|
3
3
|
* is a quiet diagonal pattern in the tone's ring colour. The card's border is
|
|
4
4
|
* that colour too (set by a utility class on the Card, which wins over the
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
font-weight: 600;
|
|
41
41
|
user-select: text;
|
|
42
42
|
}
|
|
43
|
+
.nxgt-secret-card[data-size="sm"] [data-slot="secret-card-pattern"],
|
|
44
|
+
.nxgt-secret-card[data-size="sm"] [data-slot="secret-card-back"] {
|
|
45
|
+
min-height: 0;
|
|
46
|
+
}
|
|
43
47
|
.nxgt-secret-card [data-slot="secret-card-actions"] {
|
|
44
48
|
flex-wrap: wrap;
|
|
45
49
|
gap: 0.5rem;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* Celebration: a one-shot burst of confetti. Each piece is a span that flies
|
|
2
|
+
* out, falls and fades once (`animation-iteration-count: 1`, `forwards`: it
|
|
3
|
+
* never loops). Colours are theme tokens; the layer ignores the pointer.
|
|
4
|
+
* Under prefers-reduced-motion the component renders nothing, and
|
|
5
|
+
* reduced-motion.css ends any animation of a `data-slot` element anyway. */
|
|
6
|
+
@layer components {
|
|
7
|
+
.nxgt-celebration {
|
|
8
|
+
position: fixed;
|
|
9
|
+
inset: 0;
|
|
10
|
+
z-index: 60;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
.nxgt-celebration-piece {
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 50%;
|
|
17
|
+
top: 45%;
|
|
18
|
+
width: 0.5rem;
|
|
19
|
+
height: 0.9rem;
|
|
20
|
+
border-radius: 1px;
|
|
21
|
+
background-color: var(--nxgt-celebration-color);
|
|
22
|
+
animation: nxgt-celebration-burst var(--nxgt-celebration-duration, 2400ms)
|
|
23
|
+
var(--nxgt-ease-effects, ease-out) var(--nxgt-celebration-delay, 0ms) 1
|
|
24
|
+
both;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes nxgt-celebration-burst {
|
|
29
|
+
0% {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
transform: translate(0, 0) rotate(0deg);
|
|
32
|
+
}
|
|
33
|
+
35% {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transform: translate(
|
|
36
|
+
calc(var(--nxgt-celebration-x) * 0.7),
|
|
37
|
+
var(--nxgt-celebration-up)
|
|
38
|
+
)
|
|
39
|
+
rotate(calc(var(--nxgt-celebration-spin) * 0.4));
|
|
40
|
+
}
|
|
41
|
+
100% {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: translate(
|
|
44
|
+
var(--nxgt-celebration-x),
|
|
45
|
+
var(--nxgt-celebration-down)
|
|
46
|
+
)
|
|
47
|
+
rotate(var(--nxgt-celebration-spin));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@import "./spinner/spinner.css";
|
|
2
2
|
/* Moment: the full-screen announcement. */
|
|
3
3
|
@import "./moment/moment.css";
|
|
4
|
+
/* Celebration: the one-shot confetti burst. */
|
|
5
|
+
@import "./celebration/celebration.css";
|
|
4
6
|
/* Illustration: the classes of the state scenes (EmptyState, ErrorState, @nxgt/material/illustrations). */
|
|
5
7
|
@import "./state-frame/illustration.css";
|
|
6
8
|
@import "./progress/progress.css";
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
@import "./theme-tile-background.css";
|
|
15
15
|
@import "./theme-tile-textures.css";
|
|
16
16
|
@import "./theme-tile-textures-night.css";
|
|
17
|
+
@import "./theme-tile-textures-day.css";
|
|
17
18
|
@import "./theme-tile-icons.css";
|
|
18
19
|
@import "./theme-picker-list.css";
|
|
19
20
|
@layer components {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* ThemePicker's mini background, the two daytime skies: a sun and the clouds
|
|
2
|
+
* of `day-sky`, a low sun over its glow for `dawn-sky` (see theme-tile-textures.css). */
|
|
3
|
+
@layer components {
|
|
4
|
+
[data-slot="theme-tile-background"][data-preset="day-sky"] {
|
|
5
|
+
--mini-pattern:
|
|
6
|
+
radial-gradient(
|
|
7
|
+
circle at 80% 30%,
|
|
8
|
+
color-mix(in oklab, var(--mini-c) 60%, transparent) 0.4rem,
|
|
9
|
+
transparent 0.42rem
|
|
10
|
+
),
|
|
11
|
+
radial-gradient(
|
|
12
|
+
ellipse 1.1rem 0.3rem at 26% 24%,
|
|
13
|
+
color-mix(in oklab, var(--mini-a) 40%, transparent) 90%,
|
|
14
|
+
transparent
|
|
15
|
+
),
|
|
16
|
+
radial-gradient(
|
|
17
|
+
ellipse 0.8rem 0.25rem at 52% 62%,
|
|
18
|
+
color-mix(in oklab, var(--mini-a) 30%, transparent) 90%,
|
|
19
|
+
transparent
|
|
20
|
+
);
|
|
21
|
+
--mini-size: 100% 100%;
|
|
22
|
+
}
|
|
23
|
+
[data-slot="theme-tile-background"][data-preset="dawn-sky"] {
|
|
24
|
+
--mini-pattern:
|
|
25
|
+
radial-gradient(
|
|
26
|
+
circle at 24% 72%,
|
|
27
|
+
color-mix(in oklab, var(--mini-c) 60%, transparent) 0.4rem,
|
|
28
|
+
transparent 0.42rem
|
|
29
|
+
),
|
|
30
|
+
linear-gradient(
|
|
31
|
+
180deg,
|
|
32
|
+
transparent 40%,
|
|
33
|
+
color-mix(in oklab, var(--mini-b) 40%, transparent) 72%,
|
|
34
|
+
transparent 100%
|
|
35
|
+
),
|
|
36
|
+
radial-gradient(
|
|
37
|
+
ellipse 1.3rem 0.18rem at 70% 22%,
|
|
38
|
+
color-mix(in oklab, var(--mini-a) 36%, transparent) 90%,
|
|
39
|
+
transparent
|
|
40
|
+
);
|
|
41
|
+
--mini-size: 100% 100%;
|
|
42
|
+
}
|
|
43
|
+
}
|
package/lib/themes/teal.css
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* Seeds: primary oklch(0.5 0.105 185), secondary oklch(0.52 0.09 215), tertiary oklch(0.52 0.12 60), neutral hue 190, tint 0.8.
|
|
3
3
|
* Contrast: 65 pairs, 0 failing.
|
|
4
4
|
* chroma-lowered: primary: chroma 0.105 to 0.088 (lowered to fit sRGB or AA).
|
|
5
|
-
* lightness-moved: secondary: lightness 0.520 to 0.
|
|
6
|
-
* chroma-lowered: secondary: chroma 0.090 to 0.
|
|
5
|
+
* lightness-moved: secondary: lightness 0.520 to 0.490 for AA.
|
|
6
|
+
* chroma-lowered: secondary: chroma 0.090 to 0.087 (lowered to fit sRGB or AA).
|
|
7
|
+
* lightness-moved: ring (dark): lightness moved 0.015 for AA under this tint.
|
|
8
|
+
* lightness-moved: track (dark): lightness moved 0.005 for AA under this tint.
|
|
7
9
|
*/
|
|
8
10
|
[data-nxgt-theme="teal"] {
|
|
9
11
|
--radius: 0.5rem;
|
|
10
|
-
--background: oklch(
|
|
12
|
+
--background: oklch(0.973 0.0064 190);
|
|
11
13
|
--foreground: oklch(0.227 0.0136 190);
|
|
12
14
|
--ground: color-mix(in oklab, var(--primary) 7%, var(--background));
|
|
13
15
|
--card: oklch(1 0 0);
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
--primary-foreground: oklch(0.984 0.003 190);
|
|
20
22
|
--primary-text: color-mix(in oklab, var(--primary) 96%, black);
|
|
21
23
|
--primary-indicator: var(--primary);
|
|
22
|
-
--secondary: oklch(0.
|
|
24
|
+
--secondary: oklch(0.49 0.0866 215);
|
|
23
25
|
--secondary-foreground: oklch(0.984 0.003 190);
|
|
24
26
|
--tertiary: var(--strix);
|
|
25
27
|
--tertiary-foreground: oklch(0.984 0.003 190);
|
|
@@ -76,13 +78,13 @@
|
|
|
76
78
|
[data-nxgt-theme="teal"]:is(.dark, [data-theme="dark"]),
|
|
77
79
|
:is(.dark, [data-theme="dark"]) [data-nxgt-theme="teal"],
|
|
78
80
|
[data-nxgt-theme="teal"] :is(.dark, [data-theme="dark"]):not([data-nxgt-theme="teal"] [data-nxgt-theme]:not([data-nxgt-theme="teal"]), [data-nxgt-theme="teal"] [data-nxgt-theme]:not([data-nxgt-theme="teal"]) *) {
|
|
79
|
-
--background: oklch(0.
|
|
81
|
+
--background: oklch(0.192 0.0128 190);
|
|
80
82
|
--foreground: oklch(0.943 0.0096 190);
|
|
81
83
|
--ground: color-mix(in oklab, var(--primary) 6%, color-mix(in oklab, var(--background) 55%, black));
|
|
82
|
-
--card: oklch(0.
|
|
84
|
+
--card: oklch(0.262 0.0152 190);
|
|
83
85
|
--card-edge: color-mix(in oklab, white 8%, var(--card));
|
|
84
86
|
--card-foreground: oklch(0.943 0.0096 190);
|
|
85
|
-
--popover: oklch(0.
|
|
87
|
+
--popover: oklch(0.262 0.0152 190);
|
|
86
88
|
--popover-foreground: oklch(0.943 0.0096 190);
|
|
87
89
|
--primary: oklch(0.5 0.0881 185);
|
|
88
90
|
--primary-foreground: oklch(0.995 0.002 190);
|
|
@@ -91,15 +93,15 @@
|
|
|
91
93
|
--secondary: oklch(0.675 0.09 215);
|
|
92
94
|
--secondary-foreground: oklch(0.995 0.002 190);
|
|
93
95
|
--tertiary: oklch(0.7 0.12 60);
|
|
94
|
-
--tertiary-foreground: oklch(0.
|
|
96
|
+
--tertiary-foreground: oklch(0.192 0.0128 190);
|
|
95
97
|
--strix: oklch(0.52 0.12 60);
|
|
96
|
-
--muted: oklch(0.
|
|
98
|
+
--muted: oklch(0.3 0.0176 190);
|
|
97
99
|
--muted-foreground: oklch(0.725 0.024 190);
|
|
98
|
-
--track: oklch(0.
|
|
100
|
+
--track: oklch(0.535 0.024 190);
|
|
99
101
|
--track-fill: oklch(0.85 0.09 185);
|
|
100
102
|
--tooltip: oklch(0.925 0.0096 190);
|
|
101
103
|
--tooltip-foreground: oklch(0.446 0.0344 190);
|
|
102
|
-
--accent: oklch(0.
|
|
104
|
+
--accent: oklch(0.3 0.0176 190);
|
|
103
105
|
--accent-foreground: oklch(0.943 0.0096 190);
|
|
104
106
|
--error: oklch(0.577 0.245 27.33);
|
|
105
107
|
--error-foreground: oklch(0.995 0.002 190);
|
|
@@ -111,17 +113,17 @@
|
|
|
111
113
|
--warning: oklch(0.7 0.15 70);
|
|
112
114
|
--warning-foreground: oklch(0.995 0.002 190);
|
|
113
115
|
--destructive: oklch(0.704 0.191 22.216);
|
|
114
|
-
--border: oklch(0.
|
|
115
|
-
--input: oklch(0.
|
|
116
|
-
--ring: oklch(0.
|
|
117
|
-
--sidebar: oklch(0.
|
|
116
|
+
--border: oklch(0.331 0.02 190);
|
|
117
|
+
--input: oklch(0.37 0.0216 190);
|
|
118
|
+
--ring: oklch(0.566 0.024 190);
|
|
119
|
+
--sidebar: oklch(0.232 0.0152 190);
|
|
118
120
|
--sidebar-foreground: oklch(0.943 0.0096 190);
|
|
119
121
|
--sidebar-primary: var(--primary);
|
|
120
122
|
--sidebar-primary-foreground: oklch(0.995 0.002 190);
|
|
121
|
-
--sidebar-accent: oklch(0.
|
|
123
|
+
--sidebar-accent: oklch(0.27 0.0176 190);
|
|
122
124
|
--sidebar-accent-foreground: oklch(0.943 0.0096 190);
|
|
123
|
-
--sidebar-border: oklch(0.
|
|
124
|
-
--sidebar-ring: oklch(0.
|
|
125
|
+
--sidebar-border: oklch(0.301 0.02 190);
|
|
126
|
+
--sidebar-ring: oklch(0.566 0.024 190);
|
|
125
127
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
126
128
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
127
129
|
--chart-3: oklch(0.769 0.188 70.08);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.75.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -323,6 +323,10 @@
|
|
|
323
323
|
"style": "./lib/backgrounds/css-react/celestial.css",
|
|
324
324
|
"default": "./lib/backgrounds/css-react/celestial.css"
|
|
325
325
|
},
|
|
326
|
+
"./backgrounds/celestial-day.css": {
|
|
327
|
+
"style": "./lib/backgrounds/css-react/celestial-day.css",
|
|
328
|
+
"default": "./lib/backgrounds/css-react/celestial-day.css"
|
|
329
|
+
},
|
|
326
330
|
"./backgrounds/moon.css": {
|
|
327
331
|
"style": "./lib/backgrounds/css-react/moon.css",
|
|
328
332
|
"default": "./lib/backgrounds/css-react/moon.css"
|
|
@@ -372,7 +376,7 @@
|
|
|
372
376
|
"docs:previews": "rm -rf node_modules/.cache/nxgt-preview-free/missing && NXGT_PREVIEW_FREE=1 vitest run --project previews && bun .storybook/preview-free-report.ts"
|
|
373
377
|
},
|
|
374
378
|
"dependencies": {
|
|
375
|
-
"@nxgt/material-core": "^0.
|
|
379
|
+
"@nxgt/material-core": "^0.48.0",
|
|
376
380
|
"@base-ui/react": "^1.6.0",
|
|
377
381
|
"@dnd-kit/core": "^6.3.1",
|
|
378
382
|
"@dnd-kit/sortable": "^10.0.0",
|