@42-central/ui-react 0.24.0 → 0.26.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/dist/{chunk-YWTOW7PZ.js → chunk-276RL7FX.js} +10 -10
- package/dist/{chunk-YWTOW7PZ.js.map → chunk-276RL7FX.js.map} +1 -1
- package/dist/{chunk-FUNTJZX7.js → chunk-2CL3FKEY.js} +3 -3
- package/dist/{chunk-FUNTJZX7.js.map → chunk-2CL3FKEY.js.map} +1 -1
- package/dist/{chunk-YPFSRZ3T.js → chunk-2NTCQIRP.js} +5 -5
- package/dist/{chunk-YPFSRZ3T.js.map → chunk-2NTCQIRP.js.map} +1 -1
- package/dist/{chunk-D3JYDAUZ.js → chunk-2TZU4LSX.js} +4 -4
- package/dist/{chunk-D3JYDAUZ.js.map → chunk-2TZU4LSX.js.map} +1 -1
- package/dist/{chunk-DJLNGWMM.js → chunk-6IRMKF5T.js} +3 -3
- package/dist/{chunk-DJLNGWMM.js.map → chunk-6IRMKF5T.js.map} +1 -1
- package/dist/{chunk-DT6LKNZF.js → chunk-7247WBTV.js} +5 -4
- package/dist/chunk-7247WBTV.js.map +1 -0
- package/dist/{chunk-F2FSHVO5.js → chunk-7B44J3CF.js} +7 -7
- package/dist/{chunk-F2FSHVO5.js.map → chunk-7B44J3CF.js.map} +1 -1
- package/dist/{chunk-6VYGK3Q3.js → chunk-7E7JNWOC.js} +16 -21
- package/dist/chunk-7E7JNWOC.js.map +1 -0
- package/dist/{chunk-7AQ4MN4M.js → chunk-7OGZT7U2.js} +14 -6
- package/dist/chunk-7OGZT7U2.js.map +1 -0
- package/dist/{chunk-UAYENYS2.js → chunk-AKXALCUN.js} +3 -3
- package/dist/{chunk-UAYENYS2.js.map → chunk-AKXALCUN.js.map} +1 -1
- package/dist/{chunk-BE2LWUHY.js → chunk-BMEJBY6H.js} +5 -3
- package/dist/chunk-BMEJBY6H.js.map +1 -0
- package/dist/{chunk-DHJB4UJD.js → chunk-DMI4KS32.js} +5 -5
- package/dist/{chunk-DHJB4UJD.js.map → chunk-DMI4KS32.js.map} +1 -1
- package/dist/{chunk-FB2G4LNH.js → chunk-DSZF2TW6.js} +7 -7
- package/dist/{chunk-FB2G4LNH.js.map → chunk-DSZF2TW6.js.map} +1 -1
- package/dist/{chunk-N66NC6QK.js → chunk-E3XLWMEB.js} +3 -3
- package/dist/{chunk-N66NC6QK.js.map → chunk-E3XLWMEB.js.map} +1 -1
- package/dist/{chunk-MXAACRWE.js → chunk-E52Z2FKU.js} +5 -5
- package/dist/{chunk-MXAACRWE.js.map → chunk-E52Z2FKU.js.map} +1 -1
- package/dist/chunk-F374BNL4.js +129 -0
- package/dist/chunk-F374BNL4.js.map +1 -0
- package/dist/{chunk-3L5GLI67.js → chunk-I4B3N3UX.js} +3 -3
- package/dist/{chunk-3L5GLI67.js.map → chunk-I4B3N3UX.js.map} +1 -1
- package/dist/{chunk-IPYHTCFL.js → chunk-IUK7OJXZ.js} +3 -3
- package/dist/{chunk-IPYHTCFL.js.map → chunk-IUK7OJXZ.js.map} +1 -1
- package/dist/{chunk-HRNWWL3Y.js → chunk-J2NW7JID.js} +61 -29
- package/dist/chunk-J2NW7JID.js.map +1 -0
- package/dist/{chunk-MRAJ45IM.js → chunk-JDPVD2YE.js} +5 -5
- package/dist/{chunk-MRAJ45IM.js.map → chunk-JDPVD2YE.js.map} +1 -1
- package/dist/{chunk-SZEOTXRZ.js → chunk-JFB6O7IY.js} +5 -5
- package/dist/{chunk-SZEOTXRZ.js.map → chunk-JFB6O7IY.js.map} +1 -1
- package/dist/{chunk-2MXWEIMD.js → chunk-KKLCHLCZ.js} +12 -11
- package/dist/chunk-KKLCHLCZ.js.map +1 -0
- package/dist/{chunk-6N6J2DOE.js → chunk-LIZWCWED.js} +3 -3
- package/dist/{chunk-6N6J2DOE.js.map → chunk-LIZWCWED.js.map} +1 -1
- package/dist/chunk-LJVIZNPE.js +9 -0
- package/dist/chunk-LJVIZNPE.js.map +1 -0
- package/dist/{chunk-HQPU73WV.js → chunk-LYGOFMXJ.js} +3 -3
- package/dist/{chunk-HQPU73WV.js.map → chunk-LYGOFMXJ.js.map} +1 -1
- package/dist/{chunk-JVG5ISPT.js → chunk-N42EFOML.js} +4 -4
- package/dist/{chunk-JVG5ISPT.js.map → chunk-N42EFOML.js.map} +1 -1
- package/dist/{chunk-C4NFRSOR.js → chunk-NF2PBGD3.js} +38 -25
- package/dist/chunk-NF2PBGD3.js.map +1 -0
- package/dist/{chunk-DA4QII2N.js → chunk-NLSJ6T7V.js} +4 -4
- package/dist/{chunk-DA4QII2N.js.map → chunk-NLSJ6T7V.js.map} +1 -1
- package/dist/{chunk-UT3TOV2Q.js → chunk-OVT2KZHY.js} +3 -3
- package/dist/{chunk-UT3TOV2Q.js.map → chunk-OVT2KZHY.js.map} +1 -1
- package/dist/{chunk-MW42XVPD.js → chunk-PBSVX5DB.js} +15 -5
- package/dist/chunk-PBSVX5DB.js.map +1 -0
- package/dist/{chunk-SVKN5ZHX.js → chunk-PEHFWGTT.js} +16 -13
- package/dist/chunk-PEHFWGTT.js.map +1 -0
- package/dist/{chunk-J44FJ7PH.js → chunk-PFZMB3US.js} +4 -4
- package/dist/{chunk-J44FJ7PH.js.map → chunk-PFZMB3US.js.map} +1 -1
- package/dist/{chunk-IRNF274I.js → chunk-PT22KEVD.js} +5 -5
- package/dist/{chunk-IRNF274I.js.map → chunk-PT22KEVD.js.map} +1 -1
- package/dist/{chunk-OZMSXYBX.js → chunk-QEAF57ZQ.js} +4 -4
- package/dist/{chunk-OZMSXYBX.js.map → chunk-QEAF57ZQ.js.map} +1 -1
- package/dist/{chunk-SWVUXEBT.js → chunk-SCXXJDKQ.js} +3 -3
- package/dist/{chunk-SWVUXEBT.js.map → chunk-SCXXJDKQ.js.map} +1 -1
- package/dist/{chunk-E5H3YWZV.js → chunk-SOUDKESO.js} +15 -8
- package/dist/chunk-SOUDKESO.js.map +1 -0
- package/dist/{chunk-4FEOMQYR.js → chunk-THGJLR5S.js} +6 -6
- package/dist/{chunk-4FEOMQYR.js.map → chunk-THGJLR5S.js.map} +1 -1
- package/dist/{chunk-TCFB23JT.js → chunk-WERJ44ZN.js} +3 -3
- package/dist/{chunk-TCFB23JT.js.map → chunk-WERJ44ZN.js.map} +1 -1
- package/dist/{chunk-QNKD2SQM.js → chunk-X3YIHN2U.js} +5 -5
- package/dist/{chunk-QNKD2SQM.js.map → chunk-X3YIHN2U.js.map} +1 -1
- package/dist/{chunk-VD6PB3VA.js → chunk-X6DESK37.js} +12 -3
- package/dist/chunk-X6DESK37.js.map +1 -0
- package/dist/{chunk-47LEAR6G.js → chunk-Y2G47ARQ.js} +6 -6
- package/dist/{chunk-47LEAR6G.js.map → chunk-Y2G47ARQ.js.map} +1 -1
- package/dist/{chunk-O7LS6OZR.js → chunk-YMVUQ2L7.js} +4 -4
- package/dist/{chunk-O7LS6OZR.js.map → chunk-YMVUQ2L7.js.map} +1 -1
- package/dist/{chunk-F342ZT7O.js → chunk-ZVECQBGG.js} +13 -7
- package/dist/chunk-ZVECQBGG.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -1
- package/dist/components/action-icon/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/ambient-background/index.js +14 -26
- package/dist/components/ambient-background/index.js.map +1 -1
- package/dist/components/ambient-background/starfield.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.d.ts +55 -10
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/index.d.ts +1 -1
- package/dist/components/app-shell/index.d.ts.map +1 -1
- package/dist/components/app-shell/index.js +300 -39
- package/dist/components/app-shell/index.js.map +1 -1
- package/dist/components/autocomplete/index.js +5 -5
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/index.js +12 -3
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts +10 -2
- package/dist/components/button-group/button-group.d.ts.map +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/button-multi-select/index.js +4 -4
- package/dist/components/button-select/button-select-control.d.ts +4 -1
- package/dist/components/button-select/button-select-control.d.ts.map +1 -1
- package/dist/components/button-select/button-select.d.ts +4 -1
- package/dist/components/button-select/button-select.d.ts.map +1 -1
- package/dist/components/button-select/index.js +4 -4
- package/dist/components/calendar/index.js +4 -4
- package/dist/components/calendar-heatmap/index.js +2 -2
- package/dist/components/camera/index.js +12 -12
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/checkbox.d.ts +3 -2
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/choice-card-group/index.js +2 -2
- package/dist/components/choice-card-group/index.js.map +1 -1
- package/dist/components/clipboard/index.js +3 -3
- package/dist/components/code-block/chrome.js +3 -3
- package/dist/components/code-block/code-block.d.ts +6 -3
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/highlighter.d.ts +16 -15
- package/dist/components/code-block/highlighter.d.ts.map +1 -1
- package/dist/components/code-block/index.d.ts +2 -1
- package/dist/components/code-block/index.d.ts.map +1 -1
- package/dist/components/code-block/index.js +85 -14
- package/dist/components/code-block/index.js.map +1 -1
- package/dist/components/code-block/languages.d.ts +61 -0
- package/dist/components/code-block/languages.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +2 -1
- package/dist/components/code-block/static.d.ts.map +1 -1
- package/dist/components/code-block/static.js +99 -10
- package/dist/components/code-block/static.js.map +1 -1
- package/dist/components/combobox/index.js +5 -5
- package/dist/components/combobox-list/index.js +7 -7
- package/dist/components/compare/index.js +2 -2
- package/dist/components/data-table/index.js +32 -32
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/date-picker/index.js +14 -14
- package/dist/components/download-button/index.js +2 -2
- package/dist/components/drawer/index.js +5 -5
- package/dist/components/field/field.d.ts +3 -0
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/file-item/index.js +5 -5
- package/dist/components/file-preview/index.js +5 -5
- package/dist/components/file-trigger/index.js +2 -2
- package/dist/components/file-upload/index.js +6 -6
- package/dist/components/gallery/index.js +2 -2
- package/dist/components/geodesic/badge-frame.d.ts +13 -1
- package/dist/components/geodesic/badge-frame.d.ts.map +1 -1
- package/dist/components/geodesic/exam-badge.d.ts +4 -1
- package/dist/components/geodesic/exam-badge.d.ts.map +1 -1
- package/dist/components/geodesic/geometry.d.ts +14 -9
- package/dist/components/geodesic/geometry.d.ts.map +1 -1
- package/dist/components/geodesic/index.js +62 -23
- package/dist/components/geodesic/index.js.map +1 -1
- package/dist/components/geodesic/status.d.ts +8 -6
- package/dist/components/geodesic/status.d.ts.map +1 -1
- package/dist/components/geodesic/styles.css +15 -2
- package/dist/components/hover-card/index.js +2 -2
- package/dist/components/image-cropper/index.js +7 -7
- package/dist/components/indicator/index.js +24 -9
- package/dist/components/indicator/index.js.map +1 -1
- package/dist/components/indicator/indicator.d.ts +15 -6
- package/dist/components/indicator/indicator.d.ts.map +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/kbd/index.js +3 -3
- package/dist/components/kbd/kbd.d.ts.map +1 -1
- package/dist/components/lightbox/index.js +8 -8
- package/dist/components/menu/index.js +4 -4
- package/dist/components/modal/index.js +5 -5
- package/dist/components/multi-combobox-list/index.js +7 -7
- package/dist/components/multi-select/index.js +8 -8
- package/dist/components/nav-link/index.js +5 -1
- package/dist/components/nav-link/nav-link.d.ts.map +1 -1
- package/dist/components/nav-link/tanstack.js +5 -1
- package/dist/components/nav-link/tanstack.js.map +1 -1
- package/dist/components/number-input/index.js +5 -5
- package/dist/components/overlays/index.js +7 -7
- package/dist/components/password-input/index.js +3 -3
- package/dist/components/photo-capture/index.js +16 -16
- package/dist/components/pills-input/index.js +5 -5
- package/dist/components/pin-input/index.js +2 -2
- package/dist/components/popover/index.js +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rating/index.js +1 -1
- package/dist/components/schedule/index.js +7 -7
- package/dist/components/segment-group/index.js +4 -4
- package/dist/components/segment-group/segment-group.d.ts +6 -1
- package/dist/components/segment-group/segment-group.d.ts.map +1 -1
- package/dist/components/select/index.js +6 -6
- package/dist/components/slider/index.js +2 -2
- package/dist/components/spotlight/index.js +11 -11
- package/dist/components/switch/index.js +14 -19
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/switch.d.ts +1 -0
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tabs/tabs-data.d.ts +4 -1
- package/dist/components/tabs/tabs-data.d.ts.map +1 -1
- package/dist/components/tabs/tabs.d.ts +4 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tags-input/index.js +7 -7
- package/dist/components/text-input/index.js +2 -2
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/theme-icon/index.js +1 -1
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -1
- package/dist/components/time-input/index.js +9 -9
- package/dist/components/tree-multi-select/index.js +8 -8
- package/dist/components/tree-select/index.js +5 -5
- package/dist/index.js +4 -4
- package/dist/lib/sidebar-rail.d.ts +21 -0
- package/dist/lib/sidebar-rail.d.ts.map +1 -0
- package/dist/theme.css +35 -35
- package/package.json +1 -1
- package/src/as-child.contract.test.tsx +6 -0
- package/src/components/action-icon/action-icon.tsx +3 -1
- package/src/components/ambient-background/starfield.tsx +18 -43
- package/src/components/app-shell/app-shell.test.tsx +430 -5
- package/src/components/app-shell/app-shell.tsx +484 -24
- package/src/components/app-shell/index.ts +2 -0
- package/src/components/avatar/avatar.test.tsx +12 -0
- package/src/components/avatar/avatar.tsx +9 -0
- package/src/components/badge/badge.tsx +11 -6
- package/src/components/button/button.tsx +1 -1
- package/src/components/button-group/button-group.test.tsx +24 -0
- package/src/components/button-group/button-group.tsx +21 -4
- package/src/components/button-multi-select/button-multi-select.test.tsx +15 -0
- package/src/components/button-select/button-select-control.tsx +5 -0
- package/src/components/button-select/button-select.test.tsx +25 -0
- package/src/components/button-select/button-select.tsx +13 -2
- package/src/components/card/card.tsx +10 -9
- package/src/components/checkbox/checkbox.test.tsx +17 -9
- package/src/components/checkbox/checkbox.tsx +26 -27
- package/src/components/choice-card-group/choice-card-group.tsx +3 -3
- package/src/components/code-block/code-block.tsx +7 -4
- package/src/components/code-block/highlighter.test.ts +79 -1
- package/src/components/code-block/highlighter.ts +76 -30
- package/src/components/code-block/index.ts +2 -0
- package/src/components/code-block/languages.ts +63 -0
- package/src/components/code-block/static.tsx +2 -1
- package/src/components/data-table/data-table-pagination.tsx +5 -5
- package/src/components/data-table/data-table-stack.tsx +2 -2
- package/src/components/field/field.tsx +14 -0
- package/src/components/geodesic/badge-frame.tsx +67 -13
- package/src/components/geodesic/exam-badge.tsx +8 -4
- package/src/components/geodesic/geometry.ts +8 -6
- package/src/components/geodesic/status.test.ts +11 -2
- package/src/components/geodesic/status.ts +11 -7
- package/src/components/geodesic/styles.css +15 -2
- package/src/components/indicator/indicator.test.tsx +45 -0
- package/src/components/indicator/indicator.tsx +40 -13
- package/src/components/kbd/kbd.tsx +2 -1
- package/src/components/nav-link/nav-link.test.tsx +121 -1
- package/src/components/nav-link/nav-link.tsx +78 -29
- package/src/components/segment-group/segment-group.test.tsx +22 -0
- package/src/components/segment-group/segment-group.tsx +35 -19
- package/src/components/switch/switch.test.tsx +15 -0
- package/src/components/switch/switch.tsx +27 -27
- package/src/components/table/table.test.tsx +1 -1
- package/src/components/table/table.tsx +14 -11
- package/src/components/tabs/tabs-data.tsx +5 -1
- package/src/components/tabs/tabs.test.tsx +28 -0
- package/src/components/tabs/tabs.tsx +14 -4
- package/src/components/theme-icon/theme-icon.tsx +46 -12
- package/src/lib/sidebar-rail.ts +24 -0
- package/src/theme.css +35 -35
- package/src/theme.test.ts +0 -1
- package/dist/chunk-2MXWEIMD.js.map +0 -1
- package/dist/chunk-6VYGK3Q3.js.map +0 -1
- package/dist/chunk-7AQ4MN4M.js.map +0 -1
- package/dist/chunk-7CNDZZZ6.js +0 -95
- package/dist/chunk-7CNDZZZ6.js.map +0 -1
- package/dist/chunk-BE2LWUHY.js.map +0 -1
- package/dist/chunk-C4NFRSOR.js.map +0 -1
- package/dist/chunk-DT6LKNZF.js.map +0 -1
- package/dist/chunk-E5H3YWZV.js.map +0 -1
- package/dist/chunk-F342ZT7O.js.map +0 -1
- package/dist/chunk-HRNWWL3Y.js.map +0 -1
- package/dist/chunk-MW42XVPD.js.map +0 -1
- package/dist/chunk-SVKN5ZHX.js.map +0 -1
- package/dist/chunk-VD6PB3VA.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/components/geodesic/status.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/components/geodesic/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEpF;;;GAGG;AACH,MAAM,MAAM,GAAG,GACX,SAAS,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,MAAM,GACN,QAAQ,CAAA;AAEZ;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAEjD;AAyBD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,UAG3C;AAED,qDAAqD;AACrD,wBAAgB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAE3D;AASD,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,GAAG,GAAG,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,SAAM,UAItF;AAED,4DAA4D;AAC5D,MAAM,MAAM,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAQhC;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,UAKjE;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,KAAK,CAAA;AAEjC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,UAG/C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,UAE3C;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,IAAI,SAAwB,UAM7B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,UAEjD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAExE"}
|
|
@@ -134,13 +134,26 @@
|
|
|
134
134
|
transition: fill 300ms ease;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/*
|
|
138
|
+
* The corner fill's level: the cap, scaled from its front corner (set
|
|
139
|
+
* inline, in viewBox units, hence the view-box transform box).
|
|
140
|
+
*/
|
|
141
|
+
.geodesic-cap {
|
|
142
|
+
transform-box: view-box;
|
|
143
|
+
transition:
|
|
144
|
+
transform 900ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
145
|
+
fill 300ms ease;
|
|
146
|
+
}
|
|
147
|
+
|
|
137
148
|
:where(:root[data-motion="reduced"]) {
|
|
138
|
-
.geodesic-solid-smooth
|
|
149
|
+
.geodesic-solid-smooth,
|
|
150
|
+
.geodesic-cap {
|
|
139
151
|
transition: none;
|
|
140
152
|
}
|
|
141
153
|
}
|
|
142
154
|
@media (prefers-reduced-motion: reduce) {
|
|
143
|
-
.geodesic-solid-smooth
|
|
155
|
+
.geodesic-solid-smooth,
|
|
156
|
+
.geodesic-cap {
|
|
144
157
|
transition: none;
|
|
145
158
|
}
|
|
146
159
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { slideStyle, popoverChrome, splitGroupChildren, useSlideAfterPlaced, activeGroupContent } from '../../chunk-
|
|
2
|
+
import { slideStyle, popoverChrome, splitGroupChildren, useSlideAfterPlaced, activeGroupContent } from '../../chunk-E3XLWMEB.js';
|
|
3
|
+
import '../../chunk-H7WOMZXO.js';
|
|
3
4
|
import { toPositioning } from '../../chunk-V6PY7C6S.js';
|
|
4
5
|
import { useOverlayContainer } from '../../chunk-7P32XCEU.js';
|
|
5
|
-
import '../../chunk-H7WOMZXO.js';
|
|
6
6
|
import '../../chunk-PMUCGFY5.js';
|
|
7
7
|
import '../../chunk-BUIHQJGE.js';
|
|
8
8
|
import { props } from '../../chunk-WYCMIIRR.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ImageCropper, useImageCropperContext } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
2
|
+
export { ImageCropper, useImageCropperContext } from '../../chunk-Y2G47ARQ.js';
|
|
3
|
+
import '../../chunk-AKXALCUN.js';
|
|
4
4
|
import '../../chunk-K6YASO4L.js';
|
|
5
5
|
import '../../chunk-J43LSYQO.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-X6DESK37.js';
|
|
7
|
+
import '../../chunk-WERJ44ZN.js';
|
|
8
8
|
import '../../chunk-EIBDLRAR.js';
|
|
9
9
|
import '../../chunk-HBWV5EPU.js';
|
|
10
10
|
import '../../chunk-AHM6SGEU.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-IUK7OJXZ.js';
|
|
12
|
+
import '../../chunk-BMEJBY6H.js';
|
|
13
|
+
import '../../chunk-LIZWCWED.js';
|
|
14
14
|
import '../../chunk-XXOR34T4.js';
|
|
15
15
|
import '../../chunk-D2QIPQ74.js';
|
|
16
16
|
import '../../chunk-R5LYFTHA.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { warnRenamedProp } from '../../chunk-
|
|
1
|
+
import { warnRenamedProp } from '../../chunk-LIZWCWED.js';
|
|
2
2
|
import { props } from '../../chunk-WYCMIIRR.js';
|
|
3
3
|
import { cn } from '../../chunk-4ASNIDV7.js';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
@@ -33,12 +33,16 @@ var indicatorVariants = cva(
|
|
|
33
33
|
// the "positioned, stack-level 0" step, which paints after `children`'s
|
|
34
34
|
// step — now the dot (and, tucked behind just its own box, the pulse) is
|
|
35
35
|
// the thing establishing the context, so it's it that ends up on top.
|
|
36
|
-
"
|
|
36
|
+
"z-0 inline-flex items-center justify-center",
|
|
37
37
|
"font-sans font-medium leading-none whitespace-nowrap select-none",
|
|
38
38
|
"bg-(--c-solid) text-(--c-on-solid)"
|
|
39
39
|
],
|
|
40
40
|
{
|
|
41
41
|
variants: {
|
|
42
|
+
// Overlaid on `children`, or standing in the flow when there are none.
|
|
43
|
+
// `relative` keeps the dot a positioned box either way, so `z-0` still
|
|
44
|
+
// makes it the stacking context the `processing` pulse relies on.
|
|
45
|
+
placement: { overlay: "absolute", standalone: "relative shrink-0" },
|
|
42
46
|
shape: { dot: "rounded-full", label: "" },
|
|
43
47
|
size: { xs: "", sm: "", md: "", lg: "", xl: "" },
|
|
44
48
|
radius: { xs: "", sm: "", md: "", lg: "", xl: "" }
|
|
@@ -60,7 +64,7 @@ var indicatorVariants = cva(
|
|
|
60
64
|
{ shape: "label", radius: "lg", class: "rounded-lg" },
|
|
61
65
|
{ shape: "label", radius: "xl", class: "rounded-xl" }
|
|
62
66
|
],
|
|
63
|
-
defaultVariants: { shape: "dot", size: "md", radius: "xl" }
|
|
67
|
+
defaultVariants: { placement: "overlay", shape: "dot", size: "md", radius: "xl" }
|
|
64
68
|
}
|
|
65
69
|
);
|
|
66
70
|
var resolveOffset = (offset) => typeof offset === "number" ? { x: offset, y: offset } : { x: offset?.x ?? 0, y: offset?.y ?? 0 };
|
|
@@ -106,11 +110,17 @@ var Indicator = ({
|
|
|
106
110
|
const visible = !disabled && !(isZero && hideZero);
|
|
107
111
|
const format = new Intl.NumberFormat(locale).format;
|
|
108
112
|
const displayLabel = typeof label === "number" ? maxValue !== void 0 && label > maxValue ? `${format(maxValue)}+` : format(label) : label;
|
|
109
|
-
const
|
|
113
|
+
const standalone = children == null;
|
|
114
|
+
const Root = inline || standalone ? "span" : "div";
|
|
115
|
+
if (standalone && !visible) return null;
|
|
110
116
|
return /* @__PURE__ */ jsxs(
|
|
111
117
|
Root,
|
|
112
118
|
{
|
|
113
|
-
className: cn(
|
|
119
|
+
className: cn(
|
|
120
|
+
"relative",
|
|
121
|
+
standalone ? "inline-flex shrink-0 align-middle" : inline ? "inline-block" : "block w-fit",
|
|
122
|
+
className
|
|
123
|
+
),
|
|
114
124
|
style,
|
|
115
125
|
...props({ "data-testid": testId }),
|
|
116
126
|
...rest,
|
|
@@ -122,15 +132,20 @@ var Indicator = ({
|
|
|
122
132
|
{
|
|
123
133
|
"aria-hidden": "true",
|
|
124
134
|
"data-part": "indicator",
|
|
125
|
-
"data-position": position,
|
|
135
|
+
"data-position": standalone ? void 0 : position,
|
|
126
136
|
"data-color": color,
|
|
127
137
|
className: cn(
|
|
128
|
-
indicatorVariants({
|
|
129
|
-
|
|
138
|
+
indicatorVariants({
|
|
139
|
+
placement: standalone ? "standalone" : "overlay",
|
|
140
|
+
shape: hasLabel ? "label" : "dot",
|
|
141
|
+
size,
|
|
142
|
+
radius
|
|
143
|
+
}),
|
|
144
|
+
!standalone && POSITION_CLASS[position],
|
|
130
145
|
withBorder && "border-2 border-(--indicator-border-color)"
|
|
131
146
|
),
|
|
132
147
|
style: {
|
|
133
|
-
...buildOffsetStyle(position, offset),
|
|
148
|
+
...standalone ? null : buildOffsetStyle(position, offset),
|
|
134
149
|
...zIndex !== void 0 ? { zIndex } : null
|
|
135
150
|
},
|
|
136
151
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/indicator/indicator.tsx"],"names":[],"mappings":";;;;;;AA0CA,IAAM,cAAA,GAAoD;AAAA,EACxD,WAAA,EAAa,uEAAA;AAAA,EACb,YAAA,EAAc,yEAAA;AAAA,EACd,SAAA,EAAW,uEAAA;AAAA,EACX,cAAA,EAAgB,yEAAA;AAAA,EAChB,eAAA,EAAiB,2EAAA;AAAA,EACjB,YAAA,EAAc,yEAAA;AAAA,EACd,cAAA,EAAgB,yEAAA;AAAA,EAChB,eAAA,EAAiB,2EAAA;AAAA,EACjB,YAAA,EAAc;AAChB,CAAA;AAeA,IAAM,iBAAA,GAAoB,GAAA;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiBE,sDAAA;AAAA,IACA,kEAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,KAAA,EAAO,EAAE,GAAA,EAAK,cAAA,EAAg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AA,GAEJ;AAEJ","file":"index.js","sourcesContent":["import { cva } from \"class-variance-authority\"\nimport type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { warnRenamedProp } from \"../../lib/dev-warn\"\nimport { props as dataProps } from \"../../lib/props\"\nimport type { Size } from \"../../lib/sizes\"\nimport type { WithTestId } from \"../../lib/test-id\"\n\n/**\n * The full 9-cell grid `position` can anchor to. Already logical/RTL-aware —\n * `start`/`end` are inline-axis (flip under `dir=\"rtl\"`), `top`/`middle`/\n * `bottom` are block-axis (unaffected by direction).\n */\nexport type IndicatorPosition =\n | \"top-start\"\n | \"top-center\"\n | \"top-end\"\n | \"middle-start\"\n | \"middle-center\"\n | \"middle-end\"\n | \"bottom-start\"\n | \"bottom-center\"\n | \"bottom-end\"\n\n/** A single px value applied to both axes, or independent x/y nudges. */\nexport type IndicatorOffset = number | { x: number; y: number }\n\n/**\n * Per-`position` placement classes. Each cell pins the dot's corner-side\n * edges flush with the child's own box (`top`/`bottom` for the block axis;\n * the logical `inset-s`/`inset-e` for the inline axis — RTL-correct, unlike\n * physical `left`/`right`), then a `translate` recenters the dot *on* that\n * point instead of flush inside it, so it visually straddles the corner —\n * half over the child, half hanging off. `top`/`bottom` (top ⇒ up, bottom ⇒\n * down) and `start`/`center` vs `end` (the two column groups) each need a\n * different translate sign to recenter correctly; `translate` itself is\n * always physical, so the inline-axis sign additionally flips under\n * `rtl:` — `start`/`center` are anchored from the inline-start edge (negative\n * shift recenters in LTR, positive in RTL), `end` is anchored from the\n * inline-end edge (the opposite).\n */\nconst POSITION_CLASS: Record<IndicatorPosition, string> = {\n \"top-start\": \"top-0 inset-s-0 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"top-center\": \"top-0 inset-s-1/2 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"top-end\": \"top-0 inset-e-0 -translate-y-1/2 translate-x-1/2 rtl:-translate-x-1/2\",\n \"middle-start\": \"top-1/2 inset-s-0 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"middle-center\": \"top-1/2 inset-s-1/2 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"middle-end\": \"top-1/2 inset-e-0 -translate-y-1/2 translate-x-1/2 rtl:-translate-x-1/2\",\n \"bottom-start\": \"bottom-0 inset-s-0 translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"bottom-center\": \"bottom-0 inset-s-1/2 translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"bottom-end\": \"bottom-0 inset-e-0 translate-y-1/2 translate-x-1/2 rtl:-translate-x-1/2\",\n}\n\n/**\n * Sizing/shape for the positioned dot. `shape` is derived internally (`dot`\n * when there's no `label`, `label` once one is set) — it isn't a public prop.\n * `size` and `radius` are each matched via `compoundVariants` only (no own\n * classes on the bare variant, same empty-own-classes pattern `Divider`'s\n * `orientation`/`size` axes use) so they only ever apply to the shape they're\n * meant for: a bare dot is always a circle regardless of `radius`, and a\n * label's corner rounding never collides with that circle class through\n * `cva`'s plain string concatenation (no `cn()`/tailwind-merge pass happens\n * here, so two same-property utility classes both landing in the string\n * would leave the winner up to generated-CSS source order, not source\n * position — `Divider`'s own comment on this axis flags the same hazard).\n */\nconst indicatorVariants = cva(\n [\n // `z-0` (not the `z-index:auto` a bare `absolute` gets) makes the dot its\n // own stacking context. That's load-bearing for `processing` below: its\n // pulse layer's `-z-10` only stays scoped to \"behind this dot's own box\"\n // when SOME ancestor is a real stacking context — `position: absolute` +\n // a non-auto `z-index` is what triggers one, `isolate` on a plain\n // `position: relative` ancestor (e.g. the root below) does not (it\n // matters where the context lands, not just that one exists somewhere):\n // `children` is a plain, non-positioned sibling of this dot, so even with\n // an isolating root, the pulse's negative z-index still paints in the\n // \"negative z-index\" paint step, which runs *before* `children`'s own\n // \"in-flow, non-positioned\" step regardless — verified empirically, an\n // isolating root alone does NOT fix the overlap. Giving the dot itself a\n // non-auto z-index instead lifts the *whole dot* (pulse included) into\n // the \"positioned, stack-level 0\" step, which paints after `children`'s\n // step — now the dot (and, tucked behind just its own box, the pulse) is\n // the thing establishing the context, so it's it that ends up on top.\n \"absolute z-0 inline-flex items-center justify-center\",\n \"font-sans font-medium leading-none whitespace-nowrap select-none\",\n \"bg-(--c-solid) text-(--c-on-solid)\",\n ],\n {\n variants: {\n shape: { dot: \"rounded-full\", label: \"\" },\n size: { xs: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n radius: { xs: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n },\n compoundVariants: [\n { shape: \"dot\", size: \"xs\", class: \"size-1.5\" },\n { shape: \"dot\", size: \"sm\", class: \"size-2\" },\n { shape: \"dot\", size: \"md\", class: \"size-2.5\" },\n { shape: \"dot\", size: \"lg\", class: \"size-3\" },\n { shape: \"dot\", size: \"xl\", class: \"size-3.5\" },\n { shape: \"label\", size: \"xs\", class: \"min-h-3 min-w-3 px-0.5 text-[8px]\" },\n { shape: \"label\", size: \"sm\", class: \"min-h-3.5 min-w-3.5 px-1 text-[9px]\" },\n { shape: \"label\", size: \"md\", class: \"min-h-4 min-w-4 px-1 text-[10px]\" },\n { shape: \"label\", size: \"lg\", class: \"min-h-4.5 min-w-4.5 px-1.5 text-[11px]\" },\n { shape: \"label\", size: \"xl\", class: \"min-h-5 min-w-5 px-1.5 text-xs\" },\n { shape: \"label\", radius: \"xs\", class: \"rounded-xs\" },\n { shape: \"label\", radius: \"sm\", class: \"rounded-sm\" },\n { shape: \"label\", radius: \"md\", class: \"rounded-md\" },\n { shape: \"label\", radius: \"lg\", class: \"rounded-lg\" },\n { shape: \"label\", radius: \"xl\", class: \"rounded-xl\" },\n ],\n defaultVariants: { shape: \"dot\", size: \"md\", radius: \"xl\" },\n },\n)\n\nexport type IndicatorProps = Omit<ComponentPropsWithoutRef<\"div\">, \"children\"> &\n WithTestId & {\n /** Which corner (or edge midpoint) of `children` the dot anchors to, straddling it. Default `\"top-end\"`. */\n position?: IndicatorPosition\n /** Extra px nudge away from the anchor point — a single number for both axes, or `{ x, y }` independently. Ignored on whichever axis a position has no directional edge for (the `center`/`middle` axis of that position). */\n offset?: IndicatorOffset\n /** Dot diameter (no `label`) or badge height, off the kit's shared `xs`–`xl` scale. Default `\"md\"`. */\n size?: Size\n /** Accent palette. Re-exported as `Color` from `@42/ui-react`. Unset cascades the neutral/brand default from `--c-solid` at `:root`, same as `Badge`'s `filled` variant. */\n color?: Color\n /** Numeric or text content. Omitted renders a plain dot. A number of `0` is still \"set\" — see `hideZero`. */\n label?: ReactNode\n /** Caps a numeric `label` display at `` `${maxValue}+` `` once it's exceeded. No-ops when `label` isn't a number. A numeric `label` and the cap are formatted for `locale`. */\n maxValue?: number\n /** BCP 47 locale for the numeric `label` and its `maxValue` cap (`\"ar-EG\"` → `٩٩+`, `\"fr-FR\"` → `1 234`). Unset uses the runtime's default locale: on the server, the server's, so pass it from your i18n layer. */\n locale?: string\n /** When `label` is the number `0`, hides the indicator entirely (children still render). Default `false`. */\n hideZero?: boolean\n /** @deprecated Use `hideZero` (inverted: `showZero={false}` is `hideZero`). Removed in the next minor. `hideZero` wins when both are set. */\n showZero?: boolean\n /** Renders a second layer behind the dot doing a CSS `animate-ping` pulse — no JS, no observer. Respects `prefers-reduced-motion` (the pulse layer is dropped, matching `Skeleton`'s own `motion-reduce:animate-none` treatment of its pulse). */\n processing?: boolean\n /** Text alternative for the dot or badge, read by assistive tech in its place: say what it\n * means (\"3 unread messages\", \"Online\"). The visual dot stays `aria-hidden`, so without\n * `alt` the indicator is decorative. Hidden along with the dot (`disabled`, a hidden zero). */\n alt?: string\n /** Hides the dot/badge entirely — `children` still render. Default `false`. */\n disabled?: boolean\n /** Rings the dot in a page-surface color so it reads as cut into whatever it overlays. Color comes from the `--indicator-border-color` custom property (default light=white/dark=brand-950 — this kit has no dedicated \"page background\" token). Unlike `Avatar.Group`'s mask-based notch, `Indicator` has no same-size neighbor to cut a real hole for, so it still falls back to this color guess. Override the property — e.g. `style={{ \"--indicator-border-color\": \"var(--color-brand-50)\" }}` — when `Indicator` sits on a non-default surface (a colored `Card`, a tinted panel) so the ring actually matches instead of just the page-background guess. */\n withBorder?: boolean\n /** Corner rounding of the label badge shape once `label` is set — irrelevant to the bare dot, which is always a circle. Default `\"xl\"`. */\n radius?: Size\n /** Root renders as a `<span>` with `display: inline-block` instead of the default `<div>`/`block` — for wrapping a run of inline content (a word, an icon) that shouldn't force its own line. The tag itself has to change, not just the display: a `<div>` is flow content and is never valid inside phrasing content (e.g. a `<p>`), regardless of its CSS display. Both modes shrink-wrap to `children`'s own intrinsic size either way (the default adds `width: fit-content` — a plain `display: block` box would otherwise stretch to its container's full width, dragging the corner dot away from a small child like an `Avatar` whenever the parent isn't already a flex/grid context). */\n inline?: boolean\n /** Stacking order of the dot/badge overlay. */\n zIndex?: number\n /** The element being decorated. Required — `Indicator` has no meaningful standalone render. */\n children: ReactNode\n }\n\n/** `offset`'s x/y split, defaulting each axis to 0. */\nconst resolveOffset = (offset: IndicatorOffset | undefined): { x: number; y: number } =>\n typeof offset === \"number\" ? { x: offset, y: offset } : { x: offset?.x ?? 0, y: offset?.y ?? 0 }\n\n/**\n * Inline overrides for the two axes `offset` can nudge. Only ever set on an\n * axis `position` actually anchors to a directional edge — the `middle` row\n * (block axis) and `center` column (inline axis) sit on a 50% midpoint with\n * no edge to push away from, so an offset there is a no-op, same as Mantine's\n * own precedent. Written as real logical CSS properties\n * (`insetInlineStart`/`insetInlineEnd`) rather than more `rtl:` classes, so\n * they resolve correctly with no extra direction-flip bookkeeping — inline\n * `style` already wins over the `POSITION_CLASS` utility classes for the same\n * property (see code-style.md on inline-style vs. class specificity).\n */\nconst buildOffsetStyle = (\n position: IndicatorPosition,\n offset: IndicatorOffset | undefined,\n): CSSProperties => {\n const { x, y } = resolveOffset(offset)\n const style: CSSProperties = {}\n if (y) {\n if (position.startsWith(\"top\")) style.top = `calc(0px - ${y}px)`\n else if (position.startsWith(\"bottom\")) style.bottom = `calc(0px - ${y}px)`\n }\n if (x) {\n if (position.endsWith(\"start\")) style.insetInlineStart = `calc(0px - ${x}px)`\n else if (position.endsWith(\"end\")) style.insetInlineEnd = `calc(0px - ${x}px)`\n }\n return style\n}\n\n/**\n * Indicator — a small dot or numeric/text badge overlaid on a corner (or edge\n * midpoint) of another element, e.g. an unread-count bubble on an `Avatar` or\n * a status dot on an `ActionIcon`. Fully static: `position`, `offset`,\n * `color`, `label`, and the `processing` pulse are all render-time props +\n * CSS — no JS measurement, no observer. It is a Server Component (no hooks, no\n * context), so it can't read `IntlProvider`: a numeric `label` is formatted for\n * the explicit `locale` prop instead, or the runtime's default locale without it.\n *\n * The dot is `aria-hidden`: a bare \"3\" or a coloured circle carries no meaning\n * on its own, so `alt` supplies the words (\"3 unread messages\") as visually\n * hidden text instead.\n *\n * No `asChild` — same reasoning as `Skeleton`: the root must stay a real\n * wrapping element around *two* things at once (`children` **and** the\n * absolutely-positioned dot sibling), which is structurally incompatible\n * with `asChild`'s single-element merge. Don't add it later assuming every\n * component needs it.\n *\n * <Indicator label={3} alt=\"3 unread messages\" color=\"red\">\n * <Avatar name=\"Ada Lovelace\" />\n * </Indicator>\n *\n * <Indicator processing color=\"green\" position=\"bottom-end\">\n * <ActionIcon><Wifi /></ActionIcon>\n * </Indicator>\n */\nexport const Indicator = ({\n className,\n position = \"top-end\",\n offset,\n size,\n color,\n label,\n alt,\n maxValue,\n locale,\n showZero,\n hideZero = showZero === false,\n processing,\n disabled,\n withBorder,\n radius,\n inline,\n zIndex,\n style,\n children,\n testId,\n ...rest\n}: IndicatorProps) => {\n const hasLabel = label != null\n const isZero = typeof label === \"number\" && label === 0\n if (showZero !== undefined) warnRenamedProp(\"Indicator\", \"showZero\", \"hideZero\")\n const visible = !disabled && !(isZero && hideZero)\n\n const format = new Intl.NumberFormat(locale).format\n const displayLabel =\n typeof label === \"number\"\n ? maxValue !== undefined && label > maxValue\n ? `${format(maxValue)}+`\n : format(label)\n : label\n\n // `inline` isn't just a display swap: a <div> is flow content, never valid\n // inside phrasing content (a <p>'s \"a word, an icon\" use case from the\n // prop's own doc below), so the root tag switches to <span> too — the only\n // way `inline` actually delivers on wrapping a run of inline text without\n // the browser closing the paragraph around it.\n const Root = inline ? \"span\" : \"div\"\n\n return (\n <Root\n className={cn(\"relative\", inline ? \"inline-block\" : \"block w-fit\", className)}\n style={style}\n {...dataProps({ \"data-testid\": testId })}\n {...rest}\n >\n {children}\n {/* The dot is a picture of a count, not the words for it, so it stays aria-hidden and the\n consumer's own wording rides beside it. `sr-only` is absolute; the `relative` root\n contains it. The leading space keeps it a separate word when the name is computed from\n a parent's content (\"Inbox 3 unread messages\", not \"Inbox3 unread messages\"). */}\n {visible && alt && <span className=\"sr-only\">{` ${alt}`}</span>}\n {visible && (\n <span\n aria-hidden=\"true\"\n data-part=\"indicator\"\n data-position={position}\n data-color={color}\n className={cn(\n indicatorVariants({ shape: hasLabel ? \"label\" : \"dot\", size, radius }),\n POSITION_CLASS[position],\n withBorder && \"border-2 border-(--indicator-border-color)\",\n )}\n style={{\n ...buildOffsetStyle(position, offset),\n ...(zIndex !== undefined ? { zIndex } : null),\n }}\n >\n {processing && (\n <span\n aria-hidden=\"true\"\n data-part=\"processing\"\n className={cn(\n \"absolute inset-0 -z-10 rounded-[inherit] bg-(--c-solid) opacity-75\",\n \"animate-ping motion-reduce:animate-none\",\n )}\n />\n )}\n {hasLabel && displayLabel}\n </span>\n )}\n </Root>\n )\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/indicator/indicator.tsx"],"names":[],"mappings":";;;;;;AA0CA,IAAM,cAAA,GAAoD;AAAA,EACxD,WAAA,EAAa,uEAAA;AAAA,EACb,YAAA,EAAc,yEAAA;AAAA,EACd,SAAA,EAAW,uEAAA;AAAA,EACX,cAAA,EAAgB,yEAAA;AAAA,EAChB,eAAA,EAAiB,2EAAA;AAAA,EACjB,YAAA,EAAc,yEA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A;AAAA,YACV,eAAA,EAAe,aAAa,MAAA,GAAY,QAAA;AAAA,YACxC,YAAA,EAAY,KAAA;AAAA,YACZ,SAAA,EAAW,EAAA;AAAA,cACT,iBAAA,CAAkB;AAAA,gBAChB,SAAA,EAAW,aAAa,YAAA,GAAe,SAAA;AAAA,gBACvC,KAAA,EAAO,WAAW,OAAA,GAAU,KAAA;AAAA,gBAC5B,IAAA;AAAA,gBACA;AAAA,eACD,CAAA;AAAA,cACD,CAAC,UAAA,IAAc,cAAA,CAAe,QAAQ,CAAA;AAAA,cACtC,UAAA,IAAc;AAAA,aAChB;AAAA,YACA,KAAA,EAAO;AAAA,cACL,GAAI,UAAA,GAAa,IAAA,GAAO,gBAAA,CAAiB,UAAU,MAAM,CAAA;AAAA,cACzD,GAAI,MAAA,KAAW,MAAA,GAAY,EAAE,QAAO,GAAI;AAAA,aAC1C;AAAA,YAEC,QAAA,EAAA;AAAA,cAAA,UAAA,oBACC,GAAA;AAAA,gBAAC,MAAA;AAAA,gBAAA;AAAA,kBACC,aAAA,EAAY,MAAA;AAAA,kBACZ,WAAA,EAAU,YAAA;AAAA,kBACV,SAAA,EAAW,EAAA;AAAA,oBACT,oEAAA;AAAA,oBACA;AAAA;AACF;AAAA,eACF;AAAA,cAED,QAAA,IAAY;AAAA;AAAA;AAAA;AACf;AAAA;AAAA,GAEJ;AAEJ","file":"index.js","sourcesContent":["import { cva } from \"class-variance-authority\"\nimport type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { warnRenamedProp } from \"../../lib/dev-warn\"\nimport { props as dataProps } from \"../../lib/props\"\nimport type { Size } from \"../../lib/sizes\"\nimport type { WithTestId } from \"../../lib/test-id\"\n\n/**\n * The full 9-cell grid `position` can anchor to. Already logical/RTL-aware —\n * `start`/`end` are inline-axis (flip under `dir=\"rtl\"`), `top`/`middle`/\n * `bottom` are block-axis (unaffected by direction).\n */\nexport type IndicatorPosition =\n | \"top-start\"\n | \"top-center\"\n | \"top-end\"\n | \"middle-start\"\n | \"middle-center\"\n | \"middle-end\"\n | \"bottom-start\"\n | \"bottom-center\"\n | \"bottom-end\"\n\n/** A single px value applied to both axes, or independent x/y nudges. */\nexport type IndicatorOffset = number | { x: number; y: number }\n\n/**\n * Per-`position` placement classes. Each cell pins the dot's corner-side\n * edges flush with the child's own box (`top`/`bottom` for the block axis;\n * the logical `inset-s`/`inset-e` for the inline axis — RTL-correct, unlike\n * physical `left`/`right`), then a `translate` recenters the dot *on* that\n * point instead of flush inside it, so it visually straddles the corner —\n * half over the child, half hanging off. `top`/`bottom` (top ⇒ up, bottom ⇒\n * down) and `start`/`center` vs `end` (the two column groups) each need a\n * different translate sign to recenter correctly; `translate` itself is\n * always physical, so the inline-axis sign additionally flips under\n * `rtl:` — `start`/`center` are anchored from the inline-start edge (negative\n * shift recenters in LTR, positive in RTL), `end` is anchored from the\n * inline-end edge (the opposite).\n */\nconst POSITION_CLASS: Record<IndicatorPosition, string> = {\n \"top-start\": \"top-0 inset-s-0 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"top-center\": \"top-0 inset-s-1/2 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"top-end\": \"top-0 inset-e-0 -translate-y-1/2 translate-x-1/2 rtl:-translate-x-1/2\",\n \"middle-start\": \"top-1/2 inset-s-0 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"middle-center\": \"top-1/2 inset-s-1/2 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"middle-end\": \"top-1/2 inset-e-0 -translate-y-1/2 translate-x-1/2 rtl:-translate-x-1/2\",\n \"bottom-start\": \"bottom-0 inset-s-0 translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"bottom-center\": \"bottom-0 inset-s-1/2 translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2\",\n \"bottom-end\": \"bottom-0 inset-e-0 translate-y-1/2 translate-x-1/2 rtl:-translate-x-1/2\",\n}\n\n/**\n * Sizing/shape for the positioned dot. `shape` is derived internally (`dot`\n * when there's no `label`, `label` once one is set) — it isn't a public prop.\n * `size` and `radius` are each matched via `compoundVariants` only (no own\n * classes on the bare variant, same empty-own-classes pattern `Divider`'s\n * `orientation`/`size` axes use) so they only ever apply to the shape they're\n * meant for: a bare dot is always a circle regardless of `radius`, and a\n * label's corner rounding never collides with that circle class through\n * `cva`'s plain string concatenation (no `cn()`/tailwind-merge pass happens\n * here, so two same-property utility classes both landing in the string\n * would leave the winner up to generated-CSS source order, not source\n * position — `Divider`'s own comment on this axis flags the same hazard).\n */\nconst indicatorVariants = cva(\n [\n // `z-0` (not the `z-index:auto` a bare `absolute` gets) makes the dot its\n // own stacking context. That's load-bearing for `processing` below: its\n // pulse layer's `-z-10` only stays scoped to \"behind this dot's own box\"\n // when SOME ancestor is a real stacking context — `position: absolute` +\n // a non-auto `z-index` is what triggers one, `isolate` on a plain\n // `position: relative` ancestor (e.g. the root below) does not (it\n // matters where the context lands, not just that one exists somewhere):\n // `children` is a plain, non-positioned sibling of this dot, so even with\n // an isolating root, the pulse's negative z-index still paints in the\n // \"negative z-index\" paint step, which runs *before* `children`'s own\n // \"in-flow, non-positioned\" step regardless — verified empirically, an\n // isolating root alone does NOT fix the overlap. Giving the dot itself a\n // non-auto z-index instead lifts the *whole dot* (pulse included) into\n // the \"positioned, stack-level 0\" step, which paints after `children`'s\n // step — now the dot (and, tucked behind just its own box, the pulse) is\n // the thing establishing the context, so it's it that ends up on top.\n \"z-0 inline-flex items-center justify-center\",\n \"font-sans font-medium leading-none whitespace-nowrap select-none\",\n \"bg-(--c-solid) text-(--c-on-solid)\",\n ],\n {\n variants: {\n // Overlaid on `children`, or standing in the flow when there are none.\n // `relative` keeps the dot a positioned box either way, so `z-0` still\n // makes it the stacking context the `processing` pulse relies on.\n placement: { overlay: \"absolute\", standalone: \"relative shrink-0\" },\n shape: { dot: \"rounded-full\", label: \"\" },\n size: { xs: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n radius: { xs: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n },\n compoundVariants: [\n { shape: \"dot\", size: \"xs\", class: \"size-1.5\" },\n { shape: \"dot\", size: \"sm\", class: \"size-2\" },\n { shape: \"dot\", size: \"md\", class: \"size-2.5\" },\n { shape: \"dot\", size: \"lg\", class: \"size-3\" },\n { shape: \"dot\", size: \"xl\", class: \"size-3.5\" },\n { shape: \"label\", size: \"xs\", class: \"min-h-3 min-w-3 px-0.5 text-[8px]\" },\n { shape: \"label\", size: \"sm\", class: \"min-h-3.5 min-w-3.5 px-1 text-[9px]\" },\n { shape: \"label\", size: \"md\", class: \"min-h-4 min-w-4 px-1 text-[10px]\" },\n { shape: \"label\", size: \"lg\", class: \"min-h-4.5 min-w-4.5 px-1.5 text-[11px]\" },\n { shape: \"label\", size: \"xl\", class: \"min-h-5 min-w-5 px-1.5 text-xs\" },\n { shape: \"label\", radius: \"xs\", class: \"rounded-xs\" },\n { shape: \"label\", radius: \"sm\", class: \"rounded-sm\" },\n { shape: \"label\", radius: \"md\", class: \"rounded-md\" },\n { shape: \"label\", radius: \"lg\", class: \"rounded-lg\" },\n { shape: \"label\", radius: \"xl\", class: \"rounded-xl\" },\n ],\n defaultVariants: { placement: \"overlay\", shape: \"dot\", size: \"md\", radius: \"xl\" },\n },\n)\n\nexport type IndicatorProps = Omit<ComponentPropsWithoutRef<\"div\">, \"children\"> &\n WithTestId & {\n /** Which corner (or edge midpoint) of `children` the dot anchors to, straddling it. Default `\"top-end\"`. Ignored without `children`. */\n position?: IndicatorPosition\n /** Extra px nudge away from the anchor point — a single number for both axes, or `{ x, y }` independently. Ignored on whichever axis a position has no directional edge for (the `center`/`middle` axis of that position), and without `children`. */\n offset?: IndicatorOffset\n /** Dot diameter (no `label`) or badge height, off the kit's shared `xs`–`xl` scale. Default `\"md\"`. */\n size?: Size\n /** Accent palette. Re-exported as `Color` from `@42/ui-react`. Unset cascades the neutral/brand default from `--c-solid` at `:root`, same as `Badge`'s `filled` variant. */\n color?: Color\n /** Numeric or text content. Omitted renders a plain dot. A number of `0` is still \"set\" — see `hideZero`. */\n label?: ReactNode\n /** Caps a numeric `label` display at `` `${maxValue}+` `` once it's exceeded. No-ops when `label` isn't a number. A numeric `label` and the cap are formatted for `locale`. */\n maxValue?: number\n /** BCP 47 locale for the numeric `label` and its `maxValue` cap (`\"ar-EG\"` → `٩٩+`, `\"fr-FR\"` → `1 234`). Unset uses the runtime's default locale: on the server, the server's, so pass it from your i18n layer. */\n locale?: string\n /** When `label` is the number `0`, hides the indicator entirely (children still render). Default `false`. */\n hideZero?: boolean\n /** @deprecated Use `hideZero` (inverted: `showZero={false}` is `hideZero`). Removed in the next minor. `hideZero` wins when both are set. */\n showZero?: boolean\n /** Renders a second layer behind the dot doing a CSS `animate-ping` pulse — no JS, no observer. Respects `prefers-reduced-motion` (the pulse layer is dropped, matching `Skeleton`'s own `motion-reduce:animate-none` treatment of its pulse). */\n processing?: boolean\n /** Text alternative for the dot or badge, read by assistive tech in its place: say what it\n * means (\"3 unread messages\", \"Online\"). The visual dot stays `aria-hidden`, so without\n * `alt` the indicator is decorative. Hidden along with the dot (`disabled`, a hidden zero). */\n alt?: string\n /** Hides the dot/badge entirely — `children` still render. Default `false`. */\n disabled?: boolean\n /** Rings the dot in a page-surface color so it reads as cut into whatever it overlays. Color comes from the `--indicator-border-color` custom property (default light=white/dark=brand-950 — this kit has no dedicated \"page background\" token). Unlike `Avatar.Group`'s mask-based notch, `Indicator` has no same-size neighbor to cut a real hole for, so it still falls back to this color guess. Override the property — e.g. `style={{ \"--indicator-border-color\": \"var(--color-brand-50)\" }}` — when `Indicator` sits on a non-default surface (a colored `Card`, a tinted panel) so the ring actually matches instead of just the page-background guess. */\n withBorder?: boolean\n /** Corner rounding of the label badge shape once `label` is set — irrelevant to the bare dot, which is always a circle. Default `\"xl\"`. */\n radius?: Size\n /** Root renders as a `<span>` with `display: inline-block` instead of the default `<div>`/`block` — for wrapping a run of inline content (a word, an icon) that shouldn't force its own line. Without `children` the root is always an inline `<span>`. The tag itself has to change, not just the display: a `<div>` is flow content and is never valid inside phrasing content (e.g. a `<p>`), regardless of its CSS display. Both modes shrink-wrap to `children`'s own intrinsic size either way (the default adds `width: fit-content` — a plain `display: block` box would otherwise stretch to its container's full width, dragging the corner dot away from a small child like an `Avatar` whenever the parent isn't already a flex/grid context). */\n inline?: boolean\n /** Stacking order of the dot/badge overlay. */\n zIndex?: number\n /** The element being decorated. Omit it for a standalone dot (or badge) that sits in the flow — a status dot before a word, a count beside a label — with `position`/`offset` ignored. */\n children?: ReactNode\n }\n\n/** `offset`'s x/y split, defaulting each axis to 0. */\nconst resolveOffset = (offset: IndicatorOffset | undefined): { x: number; y: number } =>\n typeof offset === \"number\" ? { x: offset, y: offset } : { x: offset?.x ?? 0, y: offset?.y ?? 0 }\n\n/**\n * Inline overrides for the two axes `offset` can nudge. Only ever set on an\n * axis `position` actually anchors to a directional edge — the `middle` row\n * (block axis) and `center` column (inline axis) sit on a 50% midpoint with\n * no edge to push away from, so an offset there is a no-op, same as Mantine's\n * own precedent. Written as real logical CSS properties\n * (`insetInlineStart`/`insetInlineEnd`) rather than more `rtl:` classes, so\n * they resolve correctly with no extra direction-flip bookkeeping — inline\n * `style` already wins over the `POSITION_CLASS` utility classes for the same\n * property (see code-style.md on inline-style vs. class specificity).\n */\nconst buildOffsetStyle = (\n position: IndicatorPosition,\n offset: IndicatorOffset | undefined,\n): CSSProperties => {\n const { x, y } = resolveOffset(offset)\n const style: CSSProperties = {}\n if (y) {\n if (position.startsWith(\"top\")) style.top = `calc(0px - ${y}px)`\n else if (position.startsWith(\"bottom\")) style.bottom = `calc(0px - ${y}px)`\n }\n if (x) {\n if (position.endsWith(\"start\")) style.insetInlineStart = `calc(0px - ${x}px)`\n else if (position.endsWith(\"end\")) style.insetInlineEnd = `calc(0px - ${x}px)`\n }\n return style\n}\n\n/**\n * Indicator — a small dot or numeric/text badge overlaid on a corner (or edge\n * midpoint) of another element, e.g. an unread-count bubble on an `Avatar` or\n * a status dot on an `ActionIcon`. Fully static: `position`, `offset`,\n * `color`, `label`, and the `processing` pulse are all render-time props +\n * CSS — no JS measurement, no observer. It is a Server Component (no hooks, no\n * context), so it can't read `IntlProvider`: a numeric `label` is formatted for\n * the explicit `locale` prop instead, or the runtime's default locale without it.\n *\n * The dot is `aria-hidden`: a bare \"3\" or a coloured circle carries no meaning\n * on its own, so `alt` supplies the words (\"3 unread messages\") as visually\n * hidden text instead.\n *\n * Without `children` it's a standalone dot in the flow, for a status before a\n * word. The dot still says nothing on its own: pair it with visible text, or\n * give it an `alt`.\n *\n * No `asChild` — same reasoning as `Skeleton`: the root must stay a real\n * wrapping element around *two* things at once (`children` **and** the\n * absolutely-positioned dot sibling), which is structurally incompatible\n * with `asChild`'s single-element merge. Don't add it later assuming every\n * component needs it.\n *\n * <Indicator label={3} alt=\"3 unread messages\" color=\"red\">\n * <Avatar name=\"Ada Lovelace\" />\n * </Indicator>\n *\n * <Indicator processing color=\"green\" position=\"bottom-end\">\n * <ActionIcon><Wifi /></ActionIcon>\n * </Indicator>\n *\n * <span className=\"inline-flex items-center gap-1.5\">\n * <Indicator size=\"sm\" color=\"pink\" />\n * Registered\n * </span>\n */\nexport const Indicator = ({\n className,\n position = \"top-end\",\n offset,\n size,\n color,\n label,\n alt,\n maxValue,\n locale,\n showZero,\n hideZero = showZero === false,\n processing,\n disabled,\n withBorder,\n radius,\n inline,\n zIndex,\n style,\n children,\n testId,\n ...rest\n}: IndicatorProps) => {\n const hasLabel = label != null\n const isZero = typeof label === \"number\" && label === 0\n if (showZero !== undefined) warnRenamedProp(\"Indicator\", \"showZero\", \"hideZero\")\n const visible = !disabled && !(isZero && hideZero)\n\n const format = new Intl.NumberFormat(locale).format\n const displayLabel =\n typeof label === \"number\"\n ? maxValue !== undefined && label > maxValue\n ? `${format(maxValue)}+`\n : format(label)\n : label\n\n // `inline` isn't just a display swap: a <div> is flow content, never valid\n // inside phrasing content (a <p>'s \"a word, an icon\" use case from the\n // prop's own doc below), so the root tag switches to <span> too — the only\n // way `inline` actually delivers on wrapping a run of inline text without\n // the browser closing the paragraph around it.\n const standalone = children == null\n const Root = inline || standalone ? \"span\" : \"div\"\n\n // Nothing to decorate and nothing to show: render nothing rather than an\n // empty box that still takes a gap in its parent's flex row.\n if (standalone && !visible) return null\n\n return (\n <Root\n className={cn(\n \"relative\",\n standalone ? \"inline-flex shrink-0 align-middle\" : inline ? \"inline-block\" : \"block w-fit\",\n className,\n )}\n style={style}\n {...dataProps({ \"data-testid\": testId })}\n {...rest}\n >\n {children}\n {/* The dot is a picture of a count, not the words for it, so it stays aria-hidden and the\n consumer's own wording rides beside it. `sr-only` is absolute; the `relative` root\n contains it. The leading space keeps it a separate word when the name is computed from\n a parent's content (\"Inbox 3 unread messages\", not \"Inbox3 unread messages\"). */}\n {visible && alt && <span className=\"sr-only\">{` ${alt}`}</span>}\n {visible && (\n <span\n aria-hidden=\"true\"\n data-part=\"indicator\"\n data-position={standalone ? undefined : position}\n data-color={color}\n className={cn(\n indicatorVariants({\n placement: standalone ? \"standalone\" : \"overlay\",\n shape: hasLabel ? \"label\" : \"dot\",\n size,\n radius,\n }),\n !standalone && POSITION_CLASS[position],\n withBorder && \"border-2 border-(--indicator-border-color)\",\n )}\n style={{\n ...(standalone ? null : buildOffsetStyle(position, offset)),\n ...(zIndex !== undefined ? { zIndex } : null),\n }}\n >\n {processing && (\n <span\n aria-hidden=\"true\"\n data-part=\"processing\"\n className={cn(\n \"absolute inset-0 -z-10 rounded-[inherit] bg-(--c-solid) opacity-75\",\n \"animate-ping motion-reduce:animate-none\",\n )}\n />\n )}\n {hasLabel && displayLabel}\n </span>\n )}\n </Root>\n )\n}\n"]}
|
|
@@ -14,9 +14,9 @@ export type IndicatorOffset = number | {
|
|
|
14
14
|
y: number;
|
|
15
15
|
};
|
|
16
16
|
export type IndicatorProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & WithTestId & {
|
|
17
|
-
/** Which corner (or edge midpoint) of `children` the dot anchors to, straddling it. Default `"top-end"`. */
|
|
17
|
+
/** Which corner (or edge midpoint) of `children` the dot anchors to, straddling it. Default `"top-end"`. Ignored without `children`. */
|
|
18
18
|
position?: IndicatorPosition;
|
|
19
|
-
/** Extra px nudge away from the anchor point — a single number for both axes, or `{ x, y }` independently. Ignored on whichever axis a position has no directional edge for (the `center`/`middle` axis of that position)
|
|
19
|
+
/** Extra px nudge away from the anchor point — a single number for both axes, or `{ x, y }` independently. Ignored on whichever axis a position has no directional edge for (the `center`/`middle` axis of that position), and without `children`. */
|
|
20
20
|
offset?: IndicatorOffset;
|
|
21
21
|
/** Dot diameter (no `label`) or badge height, off the kit's shared `xs`–`xl` scale. Default `"md"`. */
|
|
22
22
|
size?: Size;
|
|
@@ -44,12 +44,12 @@ export type IndicatorProps = Omit<ComponentPropsWithoutRef<"div">, "children"> &
|
|
|
44
44
|
withBorder?: boolean;
|
|
45
45
|
/** Corner rounding of the label badge shape once `label` is set — irrelevant to the bare dot, which is always a circle. Default `"xl"`. */
|
|
46
46
|
radius?: Size;
|
|
47
|
-
/** Root renders as a `<span>` with `display: inline-block` instead of the default `<div>`/`block` — for wrapping a run of inline content (a word, an icon) that shouldn't force its own line. The tag itself has to change, not just the display: a `<div>` is flow content and is never valid inside phrasing content (e.g. a `<p>`), regardless of its CSS display. Both modes shrink-wrap to `children`'s own intrinsic size either way (the default adds `width: fit-content` — a plain `display: block` box would otherwise stretch to its container's full width, dragging the corner dot away from a small child like an `Avatar` whenever the parent isn't already a flex/grid context). */
|
|
47
|
+
/** Root renders as a `<span>` with `display: inline-block` instead of the default `<div>`/`block` — for wrapping a run of inline content (a word, an icon) that shouldn't force its own line. Without `children` the root is always an inline `<span>`. The tag itself has to change, not just the display: a `<div>` is flow content and is never valid inside phrasing content (e.g. a `<p>`), regardless of its CSS display. Both modes shrink-wrap to `children`'s own intrinsic size either way (the default adds `width: fit-content` — a plain `display: block` box would otherwise stretch to its container's full width, dragging the corner dot away from a small child like an `Avatar` whenever the parent isn't already a flex/grid context). */
|
|
48
48
|
inline?: boolean;
|
|
49
49
|
/** Stacking order of the dot/badge overlay. */
|
|
50
50
|
zIndex?: number;
|
|
51
|
-
/** The element being decorated.
|
|
52
|
-
children
|
|
51
|
+
/** The element being decorated. Omit it for a standalone dot (or badge) that sits in the flow — a status dot before a word, a count beside a label — with `position`/`offset` ignored. */
|
|
52
|
+
children?: ReactNode;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* Indicator — a small dot or numeric/text badge overlaid on a corner (or edge
|
|
@@ -64,6 +64,10 @@ export type IndicatorProps = Omit<ComponentPropsWithoutRef<"div">, "children"> &
|
|
|
64
64
|
* on its own, so `alt` supplies the words ("3 unread messages") as visually
|
|
65
65
|
* hidden text instead.
|
|
66
66
|
*
|
|
67
|
+
* Without `children` it's a standalone dot in the flow, for a status before a
|
|
68
|
+
* word. The dot still says nothing on its own: pair it with visible text, or
|
|
69
|
+
* give it an `alt`.
|
|
70
|
+
*
|
|
67
71
|
* No `asChild` — same reasoning as `Skeleton`: the root must stay a real
|
|
68
72
|
* wrapping element around *two* things at once (`children` **and** the
|
|
69
73
|
* absolutely-positioned dot sibling), which is structurally incompatible
|
|
@@ -77,6 +81,11 @@ export type IndicatorProps = Omit<ComponentPropsWithoutRef<"div">, "children"> &
|
|
|
77
81
|
* <Indicator processing color="green" position="bottom-end">
|
|
78
82
|
* <ActionIcon><Wifi /></ActionIcon>
|
|
79
83
|
* </Indicator>
|
|
84
|
+
*
|
|
85
|
+
* <span className="inline-flex items-center gap-1.5">
|
|
86
|
+
* <Indicator size="sm" color="pink" />
|
|
87
|
+
* Registered
|
|
88
|
+
* </span>
|
|
80
89
|
*/
|
|
81
|
-
export declare const Indicator: ({ className, position, offset, size, color, label, alt, maxValue, locale, showZero, hideZero, processing, disabled, withBorder, radius, inline, zIndex, style, children, testId, ...rest }: IndicatorProps) => import("react").JSX.Element;
|
|
90
|
+
export declare const Indicator: ({ className, position, offset, size, color, label, alt, maxValue, locale, showZero, hideZero, processing, disabled, withBorder, radius, inline, zIndex, style, children, testId, ...rest }: IndicatorProps) => import("react").JSX.Element | null;
|
|
82
91
|
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../src/components/indicator/indicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,YAAY,GACZ,SAAS,GACT,cAAc,GACd,eAAe,GACf,YAAY,GACZ,cAAc,GACd,eAAe,GACf,YAAY,CAAA;AAEhB,yEAAyE;AACzE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../src/components/indicator/indicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,YAAY,GACZ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;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,SAAS,+LAsBnB,cAAc,uCA+EhB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Input, InputBase, inputControlClasses, inputSlot } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
2
|
+
export { Input, InputBase, inputControlClasses, inputSlot } from '../../chunk-I4B3N3UX.js';
|
|
3
|
+
import '../../chunk-X6DESK37.js';
|
|
4
4
|
import '../../chunk-WYCMIIRR.js';
|
|
5
5
|
import '../../chunk-GIPQUKCN.js';
|
|
6
6
|
import '../../chunk-4ASNIDV7.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Kbd } from '../../chunk-
|
|
3
|
-
export { KBD_DEFAULT_TRANSLATIONS } from '../../chunk-
|
|
2
|
+
export { Kbd } from '../../chunk-7247WBTV.js';
|
|
3
|
+
export { KBD_DEFAULT_TRANSLATIONS } from '../../chunk-2CL3FKEY.js';
|
|
4
4
|
import '../../chunk-H7WOMZXO.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-LIZWCWED.js';
|
|
6
6
|
import '../../chunk-BUIHQJGE.js';
|
|
7
7
|
import '../../chunk-R5LYFTHA.js';
|
|
8
8
|
import '../../chunk-WYCMIIRR.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAA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AC,EAAE,KAAK,CAAA;CACjB,CAAC,GACF,CAAC,qBAAqB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAA;IACd;oDACgD;IAChD,OAAO,EAAE,IAAI,CAAA;IACb,QAAQ,EAAE,YAAY,CAAA;CACvB,CAAC,CAAA;AAEN,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,GACxC,YAAY,CAAC,OAAO,WAAW,CAAC,GAChC,UAAU,GAAG;IACX,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,GAAG,cAAc,CAAA;AAsDpB,eAAO,MAAM,GAAG,aAAc,QAAQ,gCAoBrC,CAAA"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Modal } from '../../chunk-
|
|
3
|
-
import { DownloadButton } from '../../chunk-
|
|
2
|
+
import { Modal } from '../../chunk-N42EFOML.js';
|
|
3
|
+
import { DownloadButton } from '../../chunk-6IRMKF5T.js';
|
|
4
4
|
import { durationOf, sampleEasing, frames, SPRINGS, animate, parseEasing, easingOf, EASINGS, spring, sampleSpring } from '../../chunk-HX3LNK26.js';
|
|
5
5
|
import '../../chunk-AZ2VUAGX.js';
|
|
6
6
|
import { Image, resolveSources } from '../../chunk-Y57NW6G7.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-NLSJ6T7V.js';
|
|
8
8
|
import '../../chunk-J43LSYQO.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-SCXXJDKQ.js';
|
|
10
10
|
import '../../chunk-EIBDLRAR.js';
|
|
11
11
|
import { useOpenIndexTrigger, OpenIndexProvider } from '../../chunk-RNRD6ER5.js';
|
|
12
12
|
import { useReducedMotion } from '../../chunk-CQ4M4BSF.js';
|
|
13
13
|
import '../../chunk-HDYORQZN.js';
|
|
14
14
|
import { useMergedRefs } from '../../chunk-HBWV5EPU.js';
|
|
15
15
|
import '../../chunk-AHM6SGEU.js';
|
|
16
|
-
import { useDirectionCheck, useLocale } from '../../chunk-
|
|
17
|
-
import { OverlayContainerProvider } from '../../chunk-7P32XCEU.js';
|
|
16
|
+
import { useDirectionCheck, useLocale } from '../../chunk-IUK7OJXZ.js';
|
|
18
17
|
import '../../chunk-H7WOMZXO.js';
|
|
19
|
-
import '../../chunk-
|
|
20
|
-
import '../../chunk-
|
|
18
|
+
import { OverlayContainerProvider } from '../../chunk-7P32XCEU.js';
|
|
19
|
+
import '../../chunk-BMEJBY6H.js';
|
|
20
|
+
import '../../chunk-LIZWCWED.js';
|
|
21
21
|
import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
|
|
22
22
|
import { useIsomorphicLayoutEffect } from '../../chunk-BUIHQJGE.js';
|
|
23
23
|
import { iconStroke, mergeIcons } from '../../chunk-XXOR34T4.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Context, SubContent, SubTrigger, Sub, RadioItem, RadioGroup, CheckboxItem, Separator, Divider, ItemGroupLabel, ItemGroup, Label, Item, Content, ContextTrigger, Trigger, Root } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
2
|
+
import { Context, SubContent, SubTrigger, Sub, RadioItem, RadioGroup, CheckboxItem, Separator, Divider, ItemGroupLabel, ItemGroup, Label, Item, Content, ContextTrigger, Trigger, Root } from '../../chunk-PT22KEVD.js';
|
|
3
|
+
import '../../chunk-E3XLWMEB.js';
|
|
4
|
+
import '../../chunk-H7WOMZXO.js';
|
|
4
5
|
import '../../chunk-V6PY7C6S.js';
|
|
5
6
|
import '../../chunk-7P32XCEU.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-6N6J2DOE.js';
|
|
7
|
+
import '../../chunk-LIZWCWED.js';
|
|
8
8
|
import '../../chunk-PMUCGFY5.js';
|
|
9
9
|
import '../../chunk-BUIHQJGE.js';
|
|
10
10
|
import '../../chunk-6YNLRQ25.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Modal } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-7P32XCEU.js';
|
|
2
|
+
export { Modal } from '../../chunk-N42EFOML.js';
|
|
3
|
+
import '../../chunk-NLSJ6T7V.js';
|
|
5
4
|
import '../../chunk-H7WOMZXO.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-7P32XCEU.js';
|
|
6
|
+
import '../../chunk-BMEJBY6H.js';
|
|
7
|
+
import '../../chunk-LIZWCWED.js';
|
|
8
8
|
import '../../chunk-BUIHQJGE.js';
|
|
9
9
|
import '../../chunk-XXOR34T4.js';
|
|
10
10
|
import '../../chunk-D2QIPQ74.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { MultiComboboxList } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
2
|
+
export { MultiComboboxList } from '../../chunk-JFB6O7IY.js';
|
|
3
|
+
import '../../chunk-QEAF57ZQ.js';
|
|
4
4
|
import '../../chunk-NLOBBJAA.js';
|
|
5
5
|
import '../../chunk-7TDHT3QD.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-2NTCQIRP.js';
|
|
7
|
+
import '../../chunk-I4B3N3UX.js';
|
|
8
|
+
import '../../chunk-X6DESK37.js';
|
|
9
|
+
import '../../chunk-E3XLWMEB.js';
|
|
10
|
+
import '../../chunk-H7WOMZXO.js';
|
|
10
11
|
import '../../chunk-V6PY7C6S.js';
|
|
11
12
|
import '../../chunk-7P32XCEU.js';
|
|
12
|
-
import '../../chunk-H7WOMZXO.js';
|
|
13
13
|
import '../../chunk-PMUCGFY5.js';
|
|
14
14
|
import '../../chunk-BUIHQJGE.js';
|
|
15
15
|
import '../../chunk-6YNLRQ25.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { usePillOverflow, PillOverflowCounter, pillsContent, pillsShell } from '../../chunk-
|
|
2
|
+
import { usePillOverflow, PillOverflowCounter, pillsContent, pillsShell } from '../../chunk-PFZMB3US.js';
|
|
3
3
|
import { Pill } from '../../chunk-6M6YZ3PQ.js';
|
|
4
4
|
import { normalizeSelectData, useLabelSearch, filterSelectData } from '../../chunk-7TDHT3QD.js';
|
|
5
|
-
import { COMBOBOX_DEFAULT_TRANSLATIONS, Combobox } from '../../chunk-
|
|
5
|
+
import { COMBOBOX_DEFAULT_TRANSLATIONS, Combobox } from '../../chunk-2NTCQIRP.js';
|
|
6
6
|
import { controlOpenProps } from '../../chunk-5FDOOG4J.js';
|
|
7
|
-
import { inputSlot, inputControlClasses, placeholderColor, inputShell } from '../../chunk-
|
|
8
|
-
import { FieldShell } from '../../chunk-
|
|
7
|
+
import { inputSlot, inputControlClasses, placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
|
|
8
|
+
import { FieldShell } from '../../chunk-X6DESK37.js';
|
|
9
9
|
import '../../chunk-2LI3VPDP.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-IUK7OJXZ.js';
|
|
11
|
+
import '../../chunk-E3XLWMEB.js';
|
|
12
|
+
import '../../chunk-H7WOMZXO.js';
|
|
12
13
|
import '../../chunk-V6PY7C6S.js';
|
|
13
14
|
import '../../chunk-7P32XCEU.js';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-6N6J2DOE.js';
|
|
15
|
+
import '../../chunk-LIZWCWED.js';
|
|
16
16
|
import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
|
|
17
17
|
import '../../chunk-BUIHQJGE.js';
|
|
18
18
|
import '../../chunk-6YNLRQ25.js';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { NavLink, Navigation } from '../../chunk-
|
|
2
|
+
export { NavLink, Navigation } from '../../chunk-J2NW7JID.js';
|
|
3
|
+
import '../../chunk-LJVIZNPE.js';
|
|
3
4
|
import '../../chunk-GTKKRV5N.js';
|
|
5
|
+
import '../../chunk-YZJUPYPO.js';
|
|
6
|
+
import '../../chunk-V6PY7C6S.js';
|
|
7
|
+
import '../../chunk-7P32XCEU.js';
|
|
4
8
|
import '../../chunk-PMUCGFY5.js';
|
|
5
9
|
import '../../chunk-BUIHQJGE.js';
|
|
6
10
|
import '../../chunk-6YNLRQ25.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-link.d.ts","sourceRoot":"","sources":["../../../src/components/nav-link/nav-link.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"nav-link.d.ts","sourceRoot":"","sources":["../../../src/components/nav-link/nav-link.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAA;AAMzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAmFnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kCAAkC;IAClC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;mCAEmC;AACnC,MAAM,MAAM,mBAAmB,GAAG;IAChC,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,QAAQ,GAAG,OAAO,IAAI,UAAU,GAAG;IAC1D,KAAK,EAAE,SAAS,CAAA;IAChB,wCAAwC;IACxC,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,oDAAoD;IACpD,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;gFAC4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uEAAuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;uDAEmD;IACnD,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,iEAAiE;IACjE,aAAa,CAAC,EAAE,WAAW,CAAA;IAC3B,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;yBACqB;IACrB,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AA+ID;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,QAAQ,GAAG,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAA"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { NavLink, Navigation } from '../../chunk-
|
|
2
|
+
import { NavLink, Navigation } from '../../chunk-J2NW7JID.js';
|
|
3
|
+
import '../../chunk-LJVIZNPE.js';
|
|
3
4
|
import '../../chunk-GTKKRV5N.js';
|
|
5
|
+
import '../../chunk-YZJUPYPO.js';
|
|
6
|
+
import '../../chunk-V6PY7C6S.js';
|
|
7
|
+
import '../../chunk-7P32XCEU.js';
|
|
4
8
|
import '../../chunk-PMUCGFY5.js';
|
|
5
9
|
import '../../chunk-BUIHQJGE.js';
|
|
6
10
|
import '../../chunk-6YNLRQ25.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/nav-link/tanstack.tsx"],"names":["NavLink","Navigation"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/nav-link/tanstack.tsx"],"names":["NavLink","Navigation"],"mappings":";;;;;;;;;;;;;;;;;;AA0CO,SAASA,SAAQ,KAAA,EAAgC;AACtD,EAAA,uBAAO,GAAA,CAAC,OAAA,EAAA,EAAa,GAAG,KAAA,EAAO,CAAA;AACjC;AAoBO,SAASC,YAAW,KAAA,EAAmC;AAC5D,EAAA,uBAAO,GAAA,CAAC,UAAA,EAAA,EAAgB,GAAG,KAAA,EAAO,CAAA;AACpC","file":"tanstack.js","sourcesContent":["\"use client\"\n\nimport type { RegisteredRouter, ValidateLinkOptions } from \"@tanstack/react-router\"\nimport type { ReactNode } from \"react\"\nimport { NavLink as CoreNavLink, type NavLinkProps } from \"./nav-link\"\nimport {\n Navigation as CoreNavigation,\n type NavigationItem,\n type NavigationProps,\n} from \"./navigation\"\n\n/**\n * TanStack Router–typed `NavLink`/`Navigation` — opt-in only, never imported\n * by `nav-link.tsx`/`navigation.tsx` themselves, so the core components stay\n * dependency-free for everyone else. Import from here instead of `./nav-link`\n * / `./navigation` when the app is on TanStack Router, to get every\n * `linkOptions` validated/autocompleted against the app's real route tree.\n *\n * Built on TanStack Router's own documented pattern for exactly this case\n * (`RegisteredRouter` + `ValidateLinkOptions`, see its \"Type Utilities for\n * Generic Components\" guide) — a generic public overload preserves full\n * per-call-site inference for callers, while the implementation delegates to\n * the untyped core component.\n *\n * import { NavLink } from \"@42/ui-react/nav-link/tanstack\"\n * import { Link } from \"@tanstack/react-router\"\n *\n * <NavLink label=\"Post\" linkComponent={Link}\n * linkOptions={{ to: \"/posts/$postId\", params: { postId: \"1\" } }} />\n */\n\ntype TanStackNavLinkProps<\n TRouter extends RegisteredRouter = RegisteredRouter,\n TOptions = unknown,\n> = Omit<NavLinkProps, \"linkOptions\" | \"children\"> & {\n linkOptions?: ValidateLinkOptions<TRouter, TOptions>\n children?: ReactNode\n}\n\nexport function NavLink<TRouter extends RegisteredRouter = RegisteredRouter, TOptions = unknown>(\n props: TanStackNavLinkProps<TRouter, TOptions>,\n): ReactNode\nexport function NavLink(props: NavLinkProps): ReactNode {\n return <CoreNavLink {...props} />\n}\n\ntype TanStackNavigationItem<\n TRouter extends RegisteredRouter = RegisteredRouter,\n TOptions = unknown,\n> = Omit<NavigationItem, \"linkOptions\" | \"items\"> & {\n linkOptions?: ValidateLinkOptions<TRouter, TOptions>\n items?: readonly TanStackNavigationItem<TRouter, TOptions>[]\n}\n\ntype TanStackNavigationProps<\n TRouter extends RegisteredRouter = RegisteredRouter,\n TOptions = unknown,\n> = Omit<NavigationProps, \"data\"> & {\n data: readonly TanStackNavigationItem<TRouter, TOptions>[]\n}\n\nexport function Navigation<TRouter extends RegisteredRouter = RegisteredRouter, TOptions = unknown>(\n props: TanStackNavigationProps<TRouter, TOptions>,\n): ReactNode\nexport function Navigation(props: NavigationProps): ReactNode {\n return <CoreNavigation {...props} />\n}\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../chunk-R5GMMWAY.js';
|
|
3
|
-
export { NumberInput } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
3
|
+
export { NumberInput } from '../../chunk-DMI4KS32.js';
|
|
4
|
+
import '../../chunk-I4B3N3UX.js';
|
|
5
|
+
import '../../chunk-X6DESK37.js';
|
|
6
6
|
import '../../chunk-HBWV5EPU.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-E3XLWMEB.js';
|
|
8
|
+
import '../../chunk-H7WOMZXO.js';
|
|
8
9
|
import '../../chunk-V6PY7C6S.js';
|
|
9
10
|
import '../../chunk-7P32XCEU.js';
|
|
10
|
-
import '../../chunk-H7WOMZXO.js';
|
|
11
11
|
import '../../chunk-PMUCGFY5.js';
|
|
12
12
|
import '../../chunk-BUIHQJGE.js';
|
|
13
13
|
import '../../chunk-6YNLRQ25.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Modal } from '../../chunk-
|
|
3
|
-
import { Drawer } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import { Button } from '../../chunk-
|
|
6
|
-
import '../../chunk-7P32XCEU.js';
|
|
2
|
+
import { Modal } from '../../chunk-N42EFOML.js';
|
|
3
|
+
import { Drawer } from '../../chunk-YMVUQ2L7.js';
|
|
4
|
+
import '../../chunk-NLSJ6T7V.js';
|
|
5
|
+
import { Button } from '../../chunk-SCXXJDKQ.js';
|
|
7
6
|
import '../../chunk-H7WOMZXO.js';
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import
|
|
7
|
+
import '../../chunk-7P32XCEU.js';
|
|
8
|
+
import '../../chunk-BMEJBY6H.js';
|
|
9
|
+
import { devWarn } from '../../chunk-LIZWCWED.js';
|
|
10
10
|
import '../../chunk-BUIHQJGE.js';
|
|
11
11
|
import '../../chunk-XXOR34T4.js';
|
|
12
12
|
import '../../chunk-D2QIPQ74.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { InputBase, inputControlClasses, inputSlot } from '../../chunk-
|
|
3
|
-
import { FieldShell, fieldA11yProps } from '../../chunk-
|
|
4
|
-
import { devWarn } from '../../chunk-
|
|
2
|
+
import { InputBase, inputControlClasses, inputSlot } from '../../chunk-I4B3N3UX.js';
|
|
3
|
+
import { FieldShell, fieldA11yProps } from '../../chunk-X6DESK37.js';
|
|
4
|
+
import { devWarn } from '../../chunk-LIZWCWED.js';
|
|
5
5
|
import { mergeIcons, iconStroke } from '../../chunk-XXOR34T4.js';
|
|
6
6
|
import { props } from '../../chunk-WYCMIIRR.js';
|
|
7
7
|
import { focusStyles } from '../../chunk-C6NVU4F7.js';
|