@nxgt/material 2.7.1 → 2.9.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 +201 -0
- package/README.md +9 -6
- package/dist/{_Uint8Array-JRUmWcRr.js → _Uint8Array-azThpjEP.js} +1 -1
- package/dist/{_overRest-DvC5rm5s.js → _overRest-DMn4Dt71.js} +1 -1
- package/dist/{abnfDiagram-O67JEVCF-Cl4ukf6a.js → abnfDiagram-O67JEVCF-D-rmT4BY.js} +4 -4
- package/dist/{architectureDiagram-NJMV4G6O-WmFlBQF5.js → architectureDiagram-NJMV4G6O-DOc_c_T9.js} +7 -7
- package/dist/{async-slice-OftEOtMA.js → async-slice-DhZDjEtw.js} +2 -2
- package/dist/{blockDiagram-BEXU5L5S-BM-gkWAO.js → blockDiagram-BEXU5L5S-BOsyK4E_.js} +11 -11
- package/dist/{c4Diagram-YGBWAQC7-D9xSt2QO.js → c4Diagram-YGBWAQC7-El4SkIzX.js} +8 -8
- package/dist/{channel-Dg92Hoym.js → channel-CnLB6790.js} +1 -1
- package/dist/{chunk-3FUC2YCW-Cf18L00V.js → chunk-3FUC2YCW-BCsKm3ZT.js} +8 -8
- package/dist/{chunk-5DYCD2WN-Cja1INgd.js → chunk-5DYCD2WN-Cd1zazNp.js} +3 -3
- package/dist/{chunk-6AEJRKK7-3YWRP4aV.js → chunk-6AEJRKK7-BLBlw8ui.js} +2 -2
- package/dist/{chunk-742MDFTN-Cs1qGiTK.js → chunk-742MDFTN-CsUjFyzK.js} +2 -2
- package/dist/{chunk-7INBJB4K-BY5n77ka.js → chunk-7INBJB4K-k-I67NSP.js} +6 -6
- package/dist/{chunk-7M6MHVWA-C3x6E3yT.js → chunk-7M6MHVWA-C3qpW8zM.js} +9 -9
- package/dist/{chunk-7PRAP22T-_Av9vcXz.js → chunk-7PRAP22T-0C6_H8Li.js} +1 -1
- package/dist/{chunk-GNY47TPC-D1E6DHDV.js → chunk-GNY47TPC-CzPNLW5k.js} +11 -11
- package/dist/{chunk-GTNCS2PH-BZ9WMD1v.js → chunk-GTNCS2PH-AJi9PVT7.js} +3 -3
- package/dist/{chunk-GWA4HPMP-Co-A6dtV.js → chunk-GWA4HPMP-B8jXI0Tl.js} +3 -3
- package/dist/{chunk-MBY4JIJT-C3RQP_Nk.js → chunk-MBY4JIJT-BFIqOe-8.js} +4 -4
- package/dist/{chunk-NETBCI7D-DJUuN4EY.js → chunk-NETBCI7D-tNinefdn.js} +1 -1
- package/dist/{chunk-O7XYJQB3-A66QSOPA.js → chunk-O7XYJQB3-BChweQ_V.js} +1 -1
- package/dist/{chunk-UA2S7LBM-BNeHeMx9.js → chunk-UA2S7LBM-ChuksCDg.js} +6 -6
- package/dist/{chunk-WEXAMYUT-CucJfehv.js → chunk-WEXAMYUT-CbFOhEve.js} +2 -2
- package/dist/{chunk-XXDRQBXY-FgXU14Bh.js → chunk-XXDRQBXY-dKXxu_aj.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-DMTBxZxM.js → chunk-Z7XXMR3K-C9P-XjM2.js} +8 -8
- package/dist/{chunk-ZIGJFQKS-C3xUAXJq.js → chunk-ZIGJFQKS-9VXArDKF.js} +3 -3
- package/dist/{classDiagram-v2-NBCMYWYE-BDaxYvDy.js → classDiagram-v2-NBCMYWYE-D00ZobEC.js} +14 -14
- package/dist/clsx-CbxlCXZ3.js +16 -0
- package/dist/components/base-content.css +139 -0
- package/dist/components/base.css +150 -0
- package/dist/components/components.css +2 -0
- package/dist/components/reduced-motion.css +56 -0
- package/dist/components/theme-tokens.css +116 -0
- package/dist/components/ui/actions/button-group/button-group.css +1 -1
- package/dist/components/ui/feedback/toast/toast.css +21 -0
- package/dist/components/ui/primitives/label/label.css +33 -0
- package/dist/{components-DrStgM4J.js → components-km60bAdr.js} +34658 -34218
- package/dist/components.js +6 -6
- package/dist/{cose-bilkent-JH36ORCC-DRUT3qBb.js → cose-bilkent-JH36ORCC-P94vkHv_.js} +2 -2
- package/dist/{cynefinDiagram-VND7K2PF-B9HrdQW8.js → cynefinDiagram-VND7K2PF-EIpXbLXm.js} +4 -4
- package/dist/{dagre-6A5THRUB-DZF0nICj.js → dagre-6A5THRUB-D_F3_LlW.js} +20 -20
- package/dist/{diagram-22UHCM2B-CVZYpeev.js → diagram-22UHCM2B-CsxOExpW.js} +15 -15
- package/dist/{diagram-3UASUU5V-D7MmBJbM.js → diagram-3UASUU5V-Dl7AETV1.js} +7 -7
- package/dist/{diagram-ATOU4E4O-CNY-8kl0.js → diagram-ATOU4E4O-isL7nwg2.js} +3 -3
- package/dist/{diagram-CDSNMT55-C8Mk1smi.js → diagram-CDSNMT55-Bnhlo5at.js} +5 -5
- package/dist/{diagram-MLGK6HIB-CpfeILwW.js → diagram-MLGK6HIB-DvBcyz8v.js} +4 -4
- package/dist/{diagram-MPIPVDR6-Do7bUnTd.js → diagram-MPIPVDR6-iTevwmNE.js} +4 -4
- package/dist/{dist-C3YK_ean.js → dist-B6_-RPZ3.js} +1 -1
- package/dist/{dist-CRbPtqwD.js → dist-BvUQHUs_.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{ebnfDiagram-ZINNZB2B-1GewX9Zq.js → ebnfDiagram-ZINNZB2B-RVuQIpm0.js} +4 -4
- package/dist/{elk-276RUBZZ-DI4eicFj.js → elk-276RUBZZ-BK-NMLiI.js} +26 -26
- package/dist/{erDiagram-OPXOYQCR-CUbpVns3.js → erDiagram-OPXOYQCR-DC1GgS4l.js} +14 -14
- package/dist/field-blur--x_n3oMy.js +3637 -0
- package/dist/flowDiagram-KWPJA3E3-BUSlDNQP.js +17 -0
- package/dist/{ganttDiagram-FUAMR5RP-D3vmspam.js → ganttDiagram-FUAMR5RP-DOp1p_x0.js} +6 -6
- package/dist/{gitGraphDiagram-X574FWY7-80yOq8dE.js → gitGraphDiagram-X574FWY7-DerJL1Q-.js} +3 -3
- package/dist/{graphlib-DLJn7qS3.js → graphlib-DLjE3QPd.js} +6 -6
- package/dist/hooks.js +3 -3
- package/dist/{i18n-provider-DBFRz5uH.js → i18n-provider-CQL7fqLy.js} +1 -1
- package/dist/i18n.js +6 -6
- package/dist/icon-button-G9zdQ3Ix.js +2753 -0
- package/dist/{infoDiagram-VRGFBTTK-Cboh-B9n.js → infoDiagram-VRGFBTTK-CtVsLyCQ.js} +3 -3
- package/dist/{isArrayLikeObject-CO5xeuaJ.js → isArrayLikeObject-CO-5KAzG.js} +3 -3
- package/dist/{isEmpty-DOC38Ces.js → isEmpty-Bl1drJE7.js} +3 -3
- package/dist/{ishikawaDiagram-OU5B5YK6-DwTd1YxL.js → ishikawaDiagram-OU5B5YK6-D1n8vp8C.js} +4 -4
- package/dist/{journeyDiagram-ZHPQQLJL-Dxvl3oeN.js → journeyDiagram-ZHPQQLJL-DuQ9Th0y.js} +4 -4
- package/dist/{kanban-definition-PNTS6WVX-S8plI4wn.js → kanban-definition-PNTS6WVX-D1-Owjil.js} +10 -10
- package/dist/lib/components/ui/actions/button/busy-click-capture.d.ts +11 -0
- package/dist/lib/components/ui/actions/button/button-tones.d.ts +36 -0
- package/dist/lib/components/ui/actions/button/button.d.ts +19 -0
- package/dist/lib/components/ui/actions/button/button.wrap.d.ts +8 -0
- package/dist/lib/components/ui/actions/button/label-text.d.ts +10 -0
- package/dist/lib/components/ui/actions/button/use-click-lock.d.ts +18 -0
- package/dist/lib/components/ui/actions/copy-button/copy-button.d.ts +5 -1
- package/dist/lib/components/ui/actions/icon-button/icon-button.compound-variants.d.ts +114 -0
- package/dist/lib/components/ui/collections/data-table/hooks.d.ts +13 -13
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +5 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.d.ts +16 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-toolbar.d.ts +24 -0
- package/dist/lib/components/ui/collections/data-table/select-checkbox.d.ts +10 -0
- package/dist/lib/components/ui/collections/data-table/types.d.ts +9 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +12 -1
- package/dist/lib/components/ui/collections/data-table/use-scroll-edges.d.ts +22 -0
- package/dist/lib/components/ui/dates/calendar/calendar-day.d.ts +8 -0
- package/dist/lib/components/ui/dates/calendar/calendar.d.ts +3 -3
- package/dist/lib/components/ui/dates/calendar/calendar.utils.d.ts +8 -0
- package/dist/lib/components/ui/dates/calendar/use-calendar-labels.d.ts +22 -0
- package/dist/lib/components/ui/display/description/description.d.ts +2 -1
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +9 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-body.d.ts +11 -0
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-classes.d.ts +10 -0
- package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/lib/components/ui/feedback/toast/partials/toast-actions.d.ts +3 -0
- package/dist/lib/components/ui/feedback/toast/toast.d.ts +27 -3
- package/dist/lib/components/ui/feedback/toast/toaster.d.ts +19 -0
- package/dist/lib/components/ui/feedback/toast/toasts.d.ts +3 -0
- package/dist/lib/components/ui/forms/field-blur.d.ts +7 -2
- package/dist/lib/components/ui/forms/use-field-blur.d.ts +8 -1
- package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +10 -1
- package/dist/lib/components/ui/layout/app-shell/activity-layout.d.ts +26 -2
- package/dist/lib/components/ui/layout/app-shell/app-header.d.ts +8 -2
- package/dist/lib/components/ui/layout/app-shell/app-sidebar.d.ts +8 -2
- package/dist/lib/components/ui/layout/app-shell/types.d.ts +3 -0
- package/dist/lib/components/ui/layout/app-shell/use-content-scroll.d.ts +10 -0
- package/dist/lib/components/ui/layout/app-shell/use-navigation-sheet.d.ts +19 -0
- package/dist/lib/components/ui/layout/sidebar/index.d.ts +5 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-content.d.ts +2 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-context.d.ts +7 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-footer.d.ts +2 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-header.d.ts +2 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-tooltip.d.ts +7 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +31 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-label.d.ts +4 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar.d.ts +1 -12
- package/dist/lib/components/ui/overlays/context-menu/context-menu-items.d.ts +10 -0
- package/dist/lib/components/ui/overlays/context-menu/context-menu-sub.d.ts +8 -0
- package/dist/lib/components/ui/overlays/context-menu/context-menu.d.ts +4 -14
- package/dist/lib/components/ui/overlays/dialog/dialog-outside.d.ts +6 -0
- package/dist/lib/components/ui/overlays/dialog/dialog-scroll-content.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dialog/dialog.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dialog/use-return-focus.d.ts +3 -2
- package/dist/lib/components/ui/overlays/drawer/drawer.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu-items.d.ts +11 -0
- package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu-sub.d.ts +8 -0
- package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu.d.ts +6 -21
- package/dist/lib/components/ui/overlays/popover/popover.d.ts +1 -1
- package/dist/lib/components/ui/overlays/sheet/sheet.d.ts +1 -1
- package/dist/lib/components/ui/primitives/card/card.d.ts +10 -1
- package/dist/lib/components/ui/primitives/link/link-component.d.ts +14 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-content.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-indicator.d.ts +13 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-trigger.d.ts +6 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +27 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +5 -0
- package/dist/lib/components/ui/primitives/tabs/tabs.d.ts +11 -7
- package/dist/lib/components/ui/selection/select/select.d.ts +1 -1
- package/dist/lib/components/ui/selection/select-chip-field/select-chip-field.d.ts +1 -1
- package/dist/lib/components/ui/widgets/emoji/types.d.ts +1 -6
- package/dist/lib/i18n/resources/en/en.d.ts +23 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +28 -5
- package/dist/lib/i18n/resources/fr/fr.d.ts +23 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +28 -5
- package/dist/lib/i18n/resources/resources.d.ts +46 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/redux/status-slice.d.ts +1 -1
- package/dist/lib.js +39 -55
- package/dist/main.js +13 -13
- package/dist/map.js +35 -35
- package/dist/material.css +1 -1
- package/dist/{merge-CuDTNgpm.js → merge-CwwtONfp.js} +4 -4
- package/dist/{mermaid.core-O7mtb1-p.js → mermaid.core-Dfr4zfuP.js} +49 -49
- package/dist/{mindmap-definition-NLK3R4M7-CO0E97EZ.js → mindmap-definition-NLK3R4M7-_qKWGSrk.js} +13 -13
- package/dist/{pegDiagram-GJSIUBJH-CAO6aYvj.js → pegDiagram-GJSIUBJH-CWKobqLl.js} +4 -4
- package/dist/{pieDiagram-5QR66LMP-BXxVfv5K.js → pieDiagram-5QR66LMP-B6at48Bd.js} +5 -5
- package/dist/print.js +2 -2
- package/dist/{quadrantDiagram-O4NWA36T-BbidZDM8.js → quadrantDiagram-O4NWA36T-Cr9bA0xJ.js} +3 -3
- package/dist/{railroadDiagram-XR7U4H2S-DmKDXg8V.js → railroadDiagram-XR7U4H2S-fsZ7oqPG.js} +4 -4
- package/dist/{requirementDiagram-PLB6GJNP-wFvgSWJP.js → requirementDiagram-PLB6GJNP-BBs-lByV.js} +13 -13
- package/dist/rolldown-runtime-BFFgcFxR.js +30 -0
- package/dist/{sankeyDiagram-IPEJSGJF-Cka5t09q.js → sankeyDiagram-IPEJSGJF-BzX37jGY.js} +3 -3
- package/dist/{sequenceDiagram-PO4LG4MO-B2qb55A5.js → sequenceDiagram-PO4LG4MO-Bgx1kuGA.js} +5 -5
- package/dist/{sortable-provider-C5VYhY8u.js → sortable-provider-WZT5I34N.js} +24 -24
- package/dist/{src-C9kQSo6K.js → src-CsLQInsN.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-EMa7q3ju.js → stateDiagram-v2-GCMORJYK-Chc9Z6Mr.js} +14 -14
- package/dist/{stored-language-B0o4cBh8.js → stored-language-BW32owje.js} +56 -10
- package/dist/styles.css +10 -368
- package/dist/{swimlanes-2SLR337P-BtZ7Di5u.js → swimlanes-2SLR337P-D0yLvfot.js} +12 -12
- package/dist/swimlanesDiagram-TC7HE7FX-BOd0Czfs.js +28 -0
- package/dist/{timeline-definition-EJHVYXUP-2Z6UABw8.js → timeline-definition-EJHVYXUP-nDNR-Dt-.js} +5 -5
- package/dist/{translate-material-BCwQrt2G.js → translate-material-ZEzF-LKH.js} +2 -2
- package/dist/{translator-CwpmpI24.js → translator-BfqVlNGW.js} +1 -1
- package/dist/{use-heading-spy-BtBJiU63.js → use-heading-spy-DvZVu15k.js} +37 -37
- package/dist/{use-material-translation-DG_7z3Q7.js → use-material-translation-B2GUtxUY.js} +2 -2
- package/dist/{usecaseDiagram-POWQR4AR-DT56cp_B.js → usecaseDiagram-POWQR4AR-Bwen99ay.js} +13 -13
- package/dist/{utils-UBn-46YY.js → utils-DC8bw9A_.js} +346 -360
- package/dist/{vennDiagram-UO4OBE2U-CO0yFCI8.js → vennDiagram-UO4OBE2U-BpgP__1T.js} +4 -4
- package/dist/{wardleyDiagram-VNRHLVJA-QkwghAYo.js → wardleyDiagram-VNRHLVJA-CYqKMb2f.js} +4 -4
- package/dist/{xychartDiagram-PMCCYNJV-B2aZlrno.js → xychartDiagram-PMCCYNJV-b-Quuxoi.js} +7 -7
- package/docs/components/buttons-and-actions.md +60 -10
- package/docs/components/data-display.md +24 -2
- package/docs/components/data-table-filter-and-lists.md +88 -10
- package/docs/components/date-and-time.md +24 -0
- package/docs/components/feedback-and-status.md +85 -8
- package/docs/components/form-fields.md +14 -5
- package/docs/components/media-and-files.md +7 -0
- package/docs/components/navigation-and-layout.md +21 -3
- package/docs/components/overlays-and-menus.md +21 -6
- package/docs/components/primitives.md +96 -7
- package/docs/components/rich-widgets.md +10 -0
- package/docs/components/selection-and-choice.md +13 -2
- package/docs/getting-started.md +4 -2
- package/docs/guides/app-shell.md +97 -4
- package/docs/guides/forms.md +54 -5
- package/docs/guides/helpers.md +2 -2
- package/docs/guides/i18n.md +24 -4
- package/docs/guides/ssr.md +1 -1
- package/docs/guides/theming.md +147 -5
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-description.webp +0 -0
- package/docs/previews/feedback-status-toast.webp +0 -0
- package/docs/previews/primitives-tabs.webp +0 -0
- package/docs/previews/rich-widgets-emojipicker.webp +0 -0
- package/docs/roadmap.md +29 -1
- package/docs/troubleshooting.md +937 -11
- package/lib/components/base-content.css +139 -0
- package/lib/components/base.css +150 -0
- package/lib/components/components.css +2 -0
- package/lib/components/reduced-motion.css +56 -0
- package/lib/components/theme-tokens.css +116 -0
- package/lib/components/ui/actions/button-group/button-group.css +1 -1
- package/lib/components/ui/feedback/toast/toast.css +21 -0
- package/lib/components/ui/primitives/label/label.css +33 -0
- package/lib/styles.css +10 -368
- package/package.json +2 -2
- package/dist/field-blur-DWQtxiAe.js +0 -3483
- package/dist/flowDiagram-KWPJA3E3-DZxumFfu.js +0 -17
- package/dist/icon-button-BxySFfrr.js +0 -2718
- package/dist/lib/components/ui/widgets/emoji/emoji.groups.d.ts +0 -6
- package/dist/swimlanesDiagram-TC7HE7FX-CROh8GTF.js +0 -28
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* The theme's colour tokens: light under :root, dark under .dark and
|
|
2
|
+
* [data-theme="dark"]. Imported by lib/styles.css; an app overrides a token
|
|
3
|
+
* after importing the stylesheet, under the same selectors. */
|
|
4
|
+
:root {
|
|
5
|
+
--radius: 0.625rem;
|
|
6
|
+
--background: oklch(1 0 0);
|
|
7
|
+
--foreground: oklch(0.14 0.036 258.53);
|
|
8
|
+
--card: oklch(1 0 0);
|
|
9
|
+
--card-foreground: oklch(0.129 0.042 264.695);
|
|
10
|
+
--strix: oklch(45.91% 0.1864 310.75);
|
|
11
|
+
--popover: oklch(1 0 0);
|
|
12
|
+
--popover-foreground: oklch(0.129 0.042 264.695);
|
|
13
|
+
--primary: oklch(46% 0.1135 276.35);
|
|
14
|
+
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
15
|
+
--secondary: oklch(50% 0.1135 245.65);
|
|
16
|
+
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
17
|
+
--muted: oklch(0.968 0.007 247.896);
|
|
18
|
+
--muted-foreground: oklch(0.52 0.046 257.417);
|
|
19
|
+
/* Non-text (WCAG 1.4.11): the empty part of a slider, a meter, a drawer
|
|
20
|
+
handle. Light keeps the pale track; the value reads from the thumb. */
|
|
21
|
+
--track: oklch(0.968 0.007 247.896);
|
|
22
|
+
--track-fill: var(--primary);
|
|
23
|
+
--tooltip: oklch(0.446 0.043 257.281);
|
|
24
|
+
--tooltip-foreground: oklch(1 0 0);
|
|
25
|
+
--accent: oklch(0.9182 0.0077 228.86);
|
|
26
|
+
--accent-foreground: oklch(0.216 0.006 56.043);
|
|
27
|
+
/* Darker than the dark theme's: near-white text on a filled error surface
|
|
28
|
+
reaches 4.8:1 (4.6 at 0.577), and the colour as text 5.0:1 on white. */
|
|
29
|
+
--error: oklch(0.56 0.245 27.325);
|
|
30
|
+
--error-foreground: oklch(0.984 0.003 247.858);
|
|
31
|
+
/* Error drawn as text (a field's message, HelperText, a focused error menu
|
|
32
|
+
item): 5.7:1 on white and 4.8:1 on the menu's bg-error/10 tint, where
|
|
33
|
+
--error itself gives 5.0 and 4.2:1. */
|
|
34
|
+
--error-text: color-mix(in oklab, var(--error) 94%, black);
|
|
35
|
+
/* The foregrounds are near-white: these three are dark enough for WCAG AA
|
|
36
|
+
text (4.5:1) on them, and for the same colours used as text on white. */
|
|
37
|
+
--success: oklch(0.48 0.118 184.704);
|
|
38
|
+
--success-foreground: oklch(0.984 0.003 247.858);
|
|
39
|
+
--info: oklch(0.5 0.165 254.624);
|
|
40
|
+
--info-foreground: oklch(0.984 0.003 247.858);
|
|
41
|
+
--warning: oklch(0.54 0.222 41.116);
|
|
42
|
+
--warning-foreground: oklch(0.984 0.003 247.858);
|
|
43
|
+
--destructive: var(--error);
|
|
44
|
+
--border: oklch(0.929 0.013 255.508);
|
|
45
|
+
--input: oklch(0.929 0.013 255.508);
|
|
46
|
+
--ring: oklch(0.704 0.04 256.788);
|
|
47
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
48
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
49
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
50
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
51
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
52
|
+
--sidebar: oklch(0.984 0.003 247.858);
|
|
53
|
+
--sidebar-foreground: oklch(0.129 0.042 264.695);
|
|
54
|
+
--sidebar-primary: oklch(0.208 0.042 265.755);
|
|
55
|
+
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
56
|
+
--sidebar-accent: oklch(0.968 0.007 247.896);
|
|
57
|
+
--sidebar-accent-foreground: oklch(0.208 0.042 265.755);
|
|
58
|
+
--sidebar-border: oklch(0.929 0.013 255.508);
|
|
59
|
+
--sidebar-ring: oklch(0.704 0.04 256.788);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dark,
|
|
63
|
+
[data-theme="dark"] {
|
|
64
|
+
--background: oklch(0.14 0.036 258.53);
|
|
65
|
+
--foreground: oklch(0.984 0.003 247.858);
|
|
66
|
+
--card: oklch(0.208 0.042 265.755);
|
|
67
|
+
--card-foreground: oklch(0.984 0.003 247.858);
|
|
68
|
+
--popover: oklch(0.208 0.042 265.755);
|
|
69
|
+
--popover-foreground: oklch(0.984 0.003 247.858);
|
|
70
|
+
--primary: oklch(46% 0.1135 276.35);
|
|
71
|
+
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
72
|
+
/* Brighter than the light one: it is read as text on the dark surfaces (6.5:1
|
|
73
|
+
on --background, 5.8:1 on --card); a filled secondary surface tints it
|
|
74
|
+
(dark:bg-secondary/70) to keep 5.2:1 under its near-white text. */
|
|
75
|
+
--secondary: oklch(0.66 0.1135 245.65);
|
|
76
|
+
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
77
|
+
--muted: oklch(0.279 0.041 260.031);
|
|
78
|
+
--muted-foreground: oklch(0.66 0.046 257.417);
|
|
79
|
+
/* 3.6:1 on --background, 3.2:1 on --card; the fill 3.4:1 on the track. */
|
|
80
|
+
--track: oklch(0.52 0.03 257.417);
|
|
81
|
+
--track-fill: oklch(0.85 0.09 276.35);
|
|
82
|
+
--tooltip: oklch(0.929 0.013 255.508);
|
|
83
|
+
--tooltip-foreground: oklch(0.446 0.043 257.281);
|
|
84
|
+
--accent: oklch(0.268 0.007 34.298);
|
|
85
|
+
--accent-foreground: oklch(0.985 0.001 106.423);
|
|
86
|
+
--error: oklch(0.577 0.245 27.325);
|
|
87
|
+
--error-foreground: oklch(0.984 0.003 247.858);
|
|
88
|
+
/* --error stays the fill under near-white text; as text it would give only
|
|
89
|
+
4.2:1 on --background and 3.8:1 on --card. Lightened, 5.9 and 5.3:1. */
|
|
90
|
+
--error-text: color-mix(in oklab, var(--error) 80%, white);
|
|
91
|
+
/* The light brights: on the dark surfaces they read as text and as the
|
|
92
|
+
badge's 60% tint, which keeps its contrast (7.3, 5.7 and 7.5:1). */
|
|
93
|
+
--success: oklch(0.6 0.118 184.704);
|
|
94
|
+
--success-foreground: oklch(0.984 0.003 247.858);
|
|
95
|
+
--info: oklch(0.707 0.165 254.624);
|
|
96
|
+
--info-foreground: oklch(0.984 0.003 247.858);
|
|
97
|
+
--warning: oklch(0.646 0.222 41.116);
|
|
98
|
+
--warning-foreground: oklch(0.984 0.003 247.858);
|
|
99
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
100
|
+
--border: oklch(1 0 0 / 10%);
|
|
101
|
+
--input: oklch(1 0 0 / 15%);
|
|
102
|
+
--ring: oklch(0.551 0.027 264.364);
|
|
103
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
104
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
105
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
106
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
107
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
108
|
+
--sidebar: oklch(0.208 0.042 265.755);
|
|
109
|
+
--sidebar-foreground: oklch(0.984 0.003 247.858);
|
|
110
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
111
|
+
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
112
|
+
--sidebar-accent: oklch(0.279 0.041 260.031);
|
|
113
|
+
--sidebar-accent-foreground: oklch(0.984 0.003 247.858);
|
|
114
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
115
|
+
--sidebar-ring: oklch(0.551 0.027 264.364);
|
|
116
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@apply stroke-foreground/80 size-5;
|
|
7
7
|
}
|
|
8
8
|
&[data-state="active"] {
|
|
9
|
-
@apply bg-primary text-primary-foreground hover:bg-primary
|
|
9
|
+
@apply bg-primary text-primary-foreground hover:bg-[color-mix(in_oklab,var(--color-primary)_90%,black)] [&_svg]:stroke-primary-foreground;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* sonner (vue-sonner) fades a toast's wrapper in from opacity 0, and a text
|
|
2
|
+
* that is half transparent fails WCAG 1.4.3 for as long as the fade lasts
|
|
3
|
+
* (axe reports it). Our toasts are custom ones (`data-styled="false"`): keep
|
|
4
|
+
* the wrapper opaque while mounting, so the toast only slides and scales in.
|
|
5
|
+
* A toast that is hidden (behind the limit) or leaving still fades. */
|
|
6
|
+
[data-sonner-toast][data-styled="false"]:not(
|
|
7
|
+
[data-visible="false"],
|
|
8
|
+
[data-removed="true"]
|
|
9
|
+
) {
|
|
10
|
+
opacity: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* A modal dialog sets `pointer-events: none` on `<body>` (Radix and reka's
|
|
14
|
+
* `disableOutsidePointerEvents`): the toaster inherits it from `<body>` while
|
|
15
|
+
* a modal is open (sonner itself sets none), so a toast's action over a
|
|
16
|
+
* dialog could not be clicked nor tapped. A hidden toast
|
|
17
|
+
* (`[data-visible="false"]`) keeps sonner's own `pointer-events: none`, set
|
|
18
|
+
* on the toast itself, which wins over this inherited value. */
|
|
19
|
+
[data-sonner-toaster] {
|
|
20
|
+
pointer-events: auto;
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* The required mark of `Label withAsterisk`. Drawn, not typed: a "*" in the
|
|
2
|
+
* label's text joined its name ("Email *") for `getByLabel(…, { exact })`,
|
|
3
|
+
* `getByLabelText` and screen readers, and generated text (`content: "*"`)
|
|
4
|
+
* joins the accessible name too. An empty `content` painted by a mask adds
|
|
5
|
+
* nothing to the name or the text. The field's own `required` /
|
|
6
|
+
* `aria-required` is what is announced. Restyle it from your own CSS:
|
|
7
|
+
* `background-color` for the colour, `width` / `height` for the size. */
|
|
8
|
+
[data-slot="label-text"][data-required]::after {
|
|
9
|
+
content: "";
|
|
10
|
+
display: inline-block;
|
|
11
|
+
flex: none;
|
|
12
|
+
align-self: flex-start;
|
|
13
|
+
width: 0.5em;
|
|
14
|
+
height: 0.5em;
|
|
15
|
+
margin-block-start: 0.05em;
|
|
16
|
+
background-color: var(--color-error);
|
|
17
|
+
--label-required-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1.5 3l7 4M8.5 3l-7 4' stroke='black' stroke-width='1.75' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
|
|
18
|
+
mask-image: var(--label-required-mark);
|
|
19
|
+
mask-size: contain;
|
|
20
|
+
mask-repeat: no-repeat;
|
|
21
|
+
mask-position: center;
|
|
22
|
+
/* A browser's print stylesheet drops backgrounds; this one is the mark. */
|
|
23
|
+
print-color-adjust: exact;
|
|
24
|
+
-webkit-print-color-adjust: exact;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Forced colours replace background-color with the system palette's own;
|
|
28
|
+
* CanvasText keeps the mark visible on any theme. */
|
|
29
|
+
@media (forced-colors: active) {
|
|
30
|
+
[data-slot="label-text"][data-required]::after {
|
|
31
|
+
background-color: CanvasText;
|
|
32
|
+
}
|
|
33
|
+
}
|