@nxgt/material 3.10.1 → 3.11.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 +76 -0
- package/README.md +4 -4
- package/dist/{async-slice-DDjaJY_F.js → async-slice-4qbER86I.js} +1 -1
- package/dist/button-BNjw-pnE.js +327 -0
- package/dist/button-group-context-CaP0X5p_.js +5 -0
- package/dist/{button-tones-BgZJ1tkD.js → button-tones-BwuVvAmd.js} +9 -1
- package/dist/{callout-view-DdJPdFrP.js → callout-view-C6voDS00.js} +1 -1
- package/dist/charts.js +5 -5
- package/dist/{chip-DpySRqCy.js → chip-DLgQTJBZ.js} +4 -4
- package/dist/{code-editor-BiA14xua.js → code-editor-BZbaYLvo.js} +8 -8
- package/dist/code-editor.js +7 -7
- package/dist/{code-language-items-C_dJ6GVs.js → code-language-items-BT5BO5w6.js} +2 -2
- package/dist/components/base.css +21 -6
- package/dist/components/components.css +5 -2
- package/dist/components/type-scale.css +194 -0
- package/dist/components/ui/actions/button/button.css +156 -0
- package/dist/components/ui/actions/button-group/button-group-standard.css +131 -0
- package/dist/components/ui/actions/button-group/button-group.css +4 -1
- package/dist/components/ui/actions/icon-button/icon-button.css +115 -0
- package/dist/components/ui/actions/morph-fill.css +62 -0
- package/dist/{components-fqz7csN3.js → components-1GK7YIhY.js} +14685 -14688
- package/dist/components.js +23 -23
- package/dist/{dialog-CkIYpJXk.js → dialog-BQp5IdFl.js} +147 -147
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-BC5Tbhb9.js → dropdown-menu-BsH9W_3C.js} +3 -3
- package/dist/editor-viewer.js +1 -1
- package/dist/editor.js +13 -13
- package/dist/empty-state-WaU4-T2c.js +117 -0
- package/dist/escape-owner-C4W_sOAU.js +116 -0
- package/dist/{field-blur-DPLsMufs.js → field-blur-CJHzVSh9.js} +1 -1
- package/dist/{field-blur-context-1ZwJgsHE.js → field-blur-context-Cft9s7Hg.js} +2 -2
- package/dist/{hover-card-Cox-tPDz.js → hover-card-C0fw2kLK.js} +72 -71
- package/dist/i18n.js +12 -12
- package/dist/{icon-badge-q3Ve8gra.js → icon-badge-DUAq9f7H.js} +4 -4
- package/dist/icon-button-ifTpXt0A.js +355 -0
- package/dist/{illustration-Hj-Q9se9.js → illustration-BmQmvW_4.js} +36 -30
- package/dist/illustrations.js +2 -2
- package/dist/lib/components/ui/actions/button/button-tones.d.ts +16 -0
- package/dist/lib/components/ui/actions/button/button.d.ts +13 -0
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +4 -3
- package/dist/lib/components/ui/actions/button-group/button-group-context.d.ts +16 -0
- package/dist/lib/components/ui/actions/button-group/button-group-reset.d.ts +13 -0
- package/dist/lib/components/ui/actions/button-group/button-group.d.ts +19 -2
- package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +3 -2
- package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +18 -4
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +34 -4
- package/dist/lib/components/ui/feedback/state-frame/state-scene-illustration.d.ts +4 -2
- package/dist/lib/components/ui/feedback/typing-indicator/typing-indicator.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dialog/dialog-variants.d.ts +1 -1
- package/dist/lib/components/ui/primitives/toggle/toggle.d.ts +1 -1
- package/dist/lib/components/ui/primitives/typography/typography.d.ts +17 -7
- package/dist/lib/components/ui/primitives/typography/typography.variants.d.ts +55 -0
- package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +2 -2
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/illustrations/lazy-chunk.d.ts +9 -0
- package/dist/lib.js +2 -2
- package/dist/{line-path-BQeLQZ-P.js → line-path-C5pZGC49.js} +1 -1
- package/dist/main.js +29 -29
- package/dist/map.js +9 -9
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{plated-illustration-B7fcgOED.js → plated-illustration-iNO6KYTL.js} +9 -2
- package/dist/print.js +1 -1
- package/dist/{public-Cl4dLDHQ.js → public-B0Nq_yYV.js} +524 -524
- package/dist/{render-json-DyFYFIkZ.js → render-json-BOhvPnSv.js} +1 -1
- package/dist/{rich-code-block-C2Fp_FDU.js → rich-code-block-v7WmeZp9.js} +5 -5
- package/dist/{rich-text-viewer-LO1IZCWs.js → rich-text-viewer-W15XIwah.js} +2 -2
- package/dist/{skeleton-Bmp4gWAH.js → skeleton-DSdtr2qc.js} +1 -1
- package/dist/{sortable-provider-pVaEZzty.js → sortable-provider-CgDTolQR.js} +3 -3
- package/dist/{spinner-CsHcmcpF.js → spinner-BtSIYVrC.js} +3 -3
- package/dist/{state-scenes-Be9w_3an.js → state-scenes-BX03WmSu.js} +54 -41
- package/dist/styles.css +2 -0
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-oU-fh6WE.js → theme-toggle-B2Pehdhn.js} +2 -2
- package/dist/{toggle-group-j8zaxEg1.js → toggle-group-BMJNcFAC.js} +1 -1
- package/dist/{toolbar-items-CqHvlTU8.js → toolbar-items-rUHdVqAq.js} +399 -398
- package/dist/{tooltip-rhbqNmr3.js → tooltip-CkttDIab.js} +1 -1
- package/dist/{translate-material-CGZljjp1.js → translate-material-Bd_KgfB8.js} +1 -1
- package/dist/{translator-DCYO4Ij3.js → translator-Dje8HrNz.js} +5 -5
- package/dist/{use-chat-composer-UHlGFSm0.js → use-chat-composer-Bt2ULsv6.js} +4172 -4172
- package/dist/{use-material-translation-DkxcLbLM.js → use-material-translation-B3V_bz-5.js} +1 -1
- package/dist/{utils-Bcd2Z3ea.js → utils-BLfntITJ.js} +14 -1
- package/docs/components/buttons-and-actions.md +64 -15
- package/docs/components/navigation-and-layout.md +1 -1
- package/docs/components/primitives.md +52 -10
- package/docs/guides/illustrations.md +12 -0
- package/docs/guides/theming.md +51 -0
- package/docs/previews/buttons-actions-button.webp +0 -0
- package/docs/previews/buttons-actions-iconbutton.webp +0 -0
- package/docs/previews/feedback-status-circularprogress.webp +0 -0
- package/docs/previews/feedback-status-hydrateloading.webp +0 -0
- package/docs/previews/feedback-status-notifications.webp +0 -0
- package/docs/previews/feedback-status-progress.webp +0 -0
- package/docs/previews/feedback-status-skeleton.webp +0 -0
- package/docs/previews/feedback-status-spinner.webp +0 -0
- package/docs/previews/feedback-status-typingindicator.webp +0 -0
- package/docs/previews/primitives-typography.webp +0 -0
- package/docs/roadmap.md +35 -4
- package/docs/troubleshooting.md +71 -2
- package/lib/components/base.css +21 -6
- package/lib/components/components.css +5 -2
- package/lib/components/type-scale.css +194 -0
- package/lib/components/ui/actions/button/button.css +156 -0
- package/lib/components/ui/actions/button-group/button-group-standard.css +131 -0
- package/lib/components/ui/actions/button-group/button-group.css +4 -1
- package/lib/components/ui/actions/icon-button/icon-button.css +115 -0
- package/lib/components/ui/actions/morph-fill.css +62 -0
- package/lib/styles.css +2 -0
- package/package.json +1 -1
- package/dist/button-DbfdITBB.js +0 -322
- package/dist/components/ui/actions/icon-button/icon-button-morph-media.css +0 -65
- package/dist/components/ui/actions/icon-button/icon-button-morph.css +0 -152
- package/dist/empty-state-BOZWBC5q.js +0 -98
- package/dist/escape-owner-CripBce_.js +0 -57
- package/dist/icon-button-DJcWpIhu.js +0 -319
- package/lib/components/ui/actions/icon-button/icon-button-morph-media.css +0 -65
- package/lib/components/ui/actions/icon-button/icon-button-morph.css +0 -152
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* The fill of a selected morph control, shared (#1106: it was copied into
|
|
2
|
+
* Toolbar, IconButton and RichChatComposer). A host with the class
|
|
3
|
+
* `nxgt-morph-fill` and `data-selected` is filled with `--morph-on` and reads
|
|
4
|
+
* `--morph-on-fg` on it; its colour sets both (`toneVars`, button-tones.ts).
|
|
5
|
+
* Button and IconButton use it; the toggle's shape change is the host's own
|
|
6
|
+
* (button.css, icon-button.css); Toolbar items keep the Toolbar's own fill.
|
|
7
|
+
* A ghost control without a `color` (no `data-color`) is neutral when selected
|
|
8
|
+
* too, for Button and IconButton alike: a 12 % tint of the text colour, label
|
|
9
|
+
* and icon in full text colour (primary only with a `color`).
|
|
10
|
+
* Doubled class: it must beat the colour
|
|
11
|
+
* utilities of the variant (`bg-primary`, `hover:bg-…`). */
|
|
12
|
+
@layer utilities {
|
|
13
|
+
.nxgt-morph-fill[data-variant="ghost"]:not([data-color]) {
|
|
14
|
+
--morph-on: color-mix(in oklab, var(--color-foreground) 12%, transparent);
|
|
15
|
+
--morph-on-fg: var(--color-foreground);
|
|
16
|
+
}
|
|
17
|
+
.nxgt-morph-fill.nxgt-morph-fill[data-selected]:not(
|
|
18
|
+
.nxgt-toolbar-item,
|
|
19
|
+
[data-toolbar-item]
|
|
20
|
+
) {
|
|
21
|
+
background-color: var(--morph-on, var(--color-primary));
|
|
22
|
+
color: var(--morph-on-fg, var(--color-primary-foreground));
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
}
|
|
25
|
+
.nxgt-morph-fill.nxgt-morph-fill[data-selected]:not(
|
|
26
|
+
.nxgt-toolbar-item,
|
|
27
|
+
[data-toolbar-item]
|
|
28
|
+
)
|
|
29
|
+
svg {
|
|
30
|
+
color: var(--morph-on-fg, var(--color-primary-foreground));
|
|
31
|
+
}
|
|
32
|
+
.nxgt-morph-fill.nxgt-morph-fill[data-selected]:not(
|
|
33
|
+
.nxgt-toolbar-item,
|
|
34
|
+
[data-toolbar-item]
|
|
35
|
+
):hover:not(:disabled) {
|
|
36
|
+
background-color: color-mix(
|
|
37
|
+
in oklab,
|
|
38
|
+
var(--morph-on-fg, var(--color-primary-foreground)) 10%,
|
|
39
|
+
var(--morph-on, var(--color-primary))
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Forced colours: the selected control is the system's selected item. */
|
|
44
|
+
@media (forced-colors: active) {
|
|
45
|
+
.nxgt-morph-fill.nxgt-morph-fill[data-selected]:not(
|
|
46
|
+
.nxgt-toolbar-item,
|
|
47
|
+
[data-toolbar-item]
|
|
48
|
+
) {
|
|
49
|
+
background-color: SelectedItem;
|
|
50
|
+
color: SelectedItemText;
|
|
51
|
+
forced-color-adjust: none;
|
|
52
|
+
}
|
|
53
|
+
.nxgt-morph-fill.nxgt-morph-fill[data-selected]:not(
|
|
54
|
+
.nxgt-toolbar-item,
|
|
55
|
+
[data-toolbar-item]
|
|
56
|
+
)
|
|
57
|
+
svg {
|
|
58
|
+
color: SelectedItemText;
|
|
59
|
+
stroke: SelectedItemText;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|