@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,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { buildMaps, filterTree, flattenTree, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, isLeaf, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-
|
|
3
|
-
import { usePillOverflow, PillOverflowCounter, pillsContent, pillsShell } from '../../chunk-
|
|
2
|
+
import { buildMaps, filterTree, flattenTree, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, isLeaf, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-JDPVD2YE.js';
|
|
3
|
+
import { usePillOverflow, PillOverflowCounter, pillsContent, pillsShell } from '../../chunk-PFZMB3US.js';
|
|
4
4
|
import { Pill } from '../../chunk-6M6YZ3PQ.js';
|
|
5
5
|
import { controlIndicator } from '../../chunk-NLOBBJAA.js';
|
|
6
6
|
import { useLabelSearch } from '../../chunk-7TDHT3QD.js';
|
|
7
|
-
import { placeholderColor, inputShell } from '../../chunk-
|
|
8
|
-
import { FieldShell } from '../../chunk-
|
|
7
|
+
import { placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
|
|
8
|
+
import { FieldShell } from '../../chunk-X6DESK37.js';
|
|
9
9
|
import '../../chunk-2LI3VPDP.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import { Popover } from '../../chunk-
|
|
10
|
+
import '../../chunk-IUK7OJXZ.js';
|
|
11
|
+
import { Popover } from '../../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 { CloseIcon, ChevronIcon, MinusIcon, CheckIcon } from '../../chunk-6YNLRQ25.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { buildMaps, filterTree, flattenTree, isLeaf, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-
|
|
2
|
+
import { buildMaps, filterTree, flattenTree, isLeaf, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-JDPVD2YE.js';
|
|
3
3
|
import { useLabelSearch } from '../../chunk-7TDHT3QD.js';
|
|
4
|
-
import { placeholderColor, inputShell } from '../../chunk-
|
|
5
|
-
import { FieldShell } from '../../chunk-
|
|
6
|
-
import { Popover, popoverIndicator } from '../../chunk-
|
|
4
|
+
import { placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
|
|
5
|
+
import { FieldShell } from '../../chunk-X6DESK37.js';
|
|
6
|
+
import { Popover, popoverIndicator } from '../../chunk-E3XLWMEB.js';
|
|
7
|
+
import '../../chunk-H7WOMZXO.js';
|
|
7
8
|
import '../../chunk-V6PY7C6S.js';
|
|
8
9
|
import '../../chunk-7P32XCEU.js';
|
|
9
|
-
import '../../chunk-H7WOMZXO.js';
|
|
10
10
|
import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
|
|
11
11
|
import '../../chunk-BUIHQJGE.js';
|
|
12
12
|
import { CloseIcon, ChevronIcon, CheckIcon } from '../../chunk-6YNLRQ25.js';
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { DEFAULT_THEME_STORAGE_KEY, resolveTheme, applyThemeAttribute, getSystem
|
|
|
2
2
|
export { DEFAULT_THEME_STORAGE_KEY, THEME_MODES, buildThemeInitScript, getSystemTheme, isThemeMode, resolveTheme } from './chunk-EEMRRRYS.js';
|
|
3
3
|
import { useLocalStorage } from './chunk-HC4XVBP2.js';
|
|
4
4
|
export { useInView, useLocalStorage } from './chunk-HC4XVBP2.js';
|
|
5
|
-
export { KBD_DEFAULT_TRANSLATIONS, formatHotkey, hotkeyKeys, isApplePlatform, matchHotkey, useApplePlatform, useHotkey } from './chunk-
|
|
6
|
-
export { FILE_KINDS, OPEN_FILE_MAX_AGE, OPEN_FILE_POLL, SVG_DATA_URL_LIMIT, extensionOf, fileKind, formatFileSize, openFile, useObjectUrl, viewableType } from './chunk-
|
|
5
|
+
export { KBD_DEFAULT_TRANSLATIONS, formatHotkey, hotkeyKeys, isApplePlatform, matchHotkey, useApplePlatform, useHotkey } from './chunk-2CL3FKEY.js';
|
|
6
|
+
export { FILE_KINDS, OPEN_FILE_MAX_AGE, OPEN_FILE_POLL, SVG_DATA_URL_LIMIT, extensionOf, fileKind, formatFileSize, openFile, useObjectUrl, viewableType } from './chunk-WERJ44ZN.js';
|
|
7
7
|
import { createFileQueue, errorMessage } from './chunk-JYKP4RSG.js';
|
|
8
8
|
export { DEFAULT_CONCURRENCY } from './chunk-JYKP4RSG.js';
|
|
9
9
|
export { useDebouncedCallback, useDebouncedValue } from './chunk-ZYX564HO.js';
|
|
@@ -18,10 +18,10 @@ export { useContainerQuery } from './chunk-4G3N7UMJ.js';
|
|
|
18
18
|
export { useElementSize } from './chunk-2LI3VPDP.js';
|
|
19
19
|
export { mergeRefs, useMergedRefs } from './chunk-HBWV5EPU.js';
|
|
20
20
|
export { ratioStyle, ratioToNumber } from './chunk-AHM6SGEU.js';
|
|
21
|
-
export { DEFAULT_LOCALE, DEFAULT_TIME_ZONE, IntlProvider, useLocale, useTimeZone } from './chunk-
|
|
21
|
+
export { DEFAULT_LOCALE, DEFAULT_TIME_ZONE, IntlProvider, useLocale, useTimeZone } from './chunk-IUK7OJXZ.js';
|
|
22
22
|
export { LinkComponentProvider, useLinkComponent } from './chunk-GTKKRV5N.js';
|
|
23
23
|
import './chunk-H7WOMZXO.js';
|
|
24
|
-
import './chunk-
|
|
24
|
+
import './chunk-LIZWCWED.js';
|
|
25
25
|
export { useUncontrolled } from './chunk-PMUCGFY5.js';
|
|
26
26
|
import { useIsomorphicLayoutEffect } from './chunk-BUIHQJGE.js';
|
|
27
27
|
export { useIsomorphicLayoutEffect } from './chunk-BUIHQJGE.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the content is sitting in a sidebar collapsed to an icon rail —
|
|
3
|
+
* provided by `AppShell.Sidebar collapse="icons"`, read by anything that has to
|
|
4
|
+
* change *behaviour* there (not just appearance): `NavLink` turns its label
|
|
5
|
+
* into a tooltip on the icon.
|
|
6
|
+
*
|
|
7
|
+
* Kept in `lib` rather than exported from AppShell so a nav component can
|
|
8
|
+
* react to a rail without depending on the shell that draws it. Appearance
|
|
9
|
+
* alone needs no JS: the rail carries `data-sidebar-rail`, and the
|
|
10
|
+
* `sidebar-rail:` variant (theme.css) styles anything inside it.
|
|
11
|
+
*
|
|
12
|
+
* `null` outside a rail-capable sidebar; `{ active: false }` inside one that is
|
|
13
|
+
* expanded (or peeking, labels visible); `{ active: true }` while it shows
|
|
14
|
+
* icons only.
|
|
15
|
+
*/
|
|
16
|
+
export type SidebarRailState = {
|
|
17
|
+
active: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const SidebarRailContext: import("react").Context<SidebarRailState | null>;
|
|
20
|
+
export declare const useSidebarRail: () => SidebarRailState | null;
|
|
21
|
+
//# sourceMappingURL=sidebar-rail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-rail.d.ts","sourceRoot":"","sources":["../../src/lib/sidebar-rail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAElD,eAAO,MAAM,kBAAkB,kDAA+C,CAAA;AAE9E,eAAO,MAAM,cAAc,QAAO,gBAAgB,GAAG,IAAsC,CAAA"}
|
package/dist/theme.css
CHANGED
|
@@ -132,19 +132,19 @@
|
|
|
132
132
|
--color-lime-900: #2b5314;
|
|
133
133
|
--color-lime-950: #15290a;
|
|
134
134
|
|
|
135
|
-
/* Green */
|
|
135
|
+
/* Green — Figma « _Primitives / Success » (42 UI Kit V3). */
|
|
136
136
|
--color-green-25: #f6fef9;
|
|
137
|
-
--color-green-50: #
|
|
138
|
-
--color-green-100: #
|
|
139
|
-
--color-green-200: #
|
|
140
|
-
--color-green-300: #
|
|
141
|
-
--color-green-400: #
|
|
137
|
+
--color-green-50: #ecfdf3;
|
|
138
|
+
--color-green-100: #dcfae6;
|
|
139
|
+
--color-green-200: #abefc6;
|
|
140
|
+
--color-green-300: #75e0a7;
|
|
141
|
+
--color-green-400: #47cd89;
|
|
142
142
|
--color-green-500: #17b26a;
|
|
143
143
|
--color-green-600: #079455;
|
|
144
144
|
--color-green-700: #067647;
|
|
145
|
-
--color-green-800: #
|
|
146
|
-
--color-green-900: #
|
|
147
|
-
--color-green-950: #
|
|
145
|
+
--color-green-800: #085d3a;
|
|
146
|
+
--color-green-900: #074d31;
|
|
147
|
+
--color-green-950: #053321;
|
|
148
148
|
|
|
149
149
|
/* Teal */
|
|
150
150
|
--color-teal-25: #f6fefc;
|
|
@@ -202,19 +202,20 @@
|
|
|
202
202
|
--color-purple-900: #3e1c96;
|
|
203
203
|
--color-purple-950: #27115f;
|
|
204
204
|
|
|
205
|
-
/* Pink
|
|
206
|
-
|
|
207
|
-
--color-pink-
|
|
208
|
-
--color-pink-
|
|
209
|
-
--color-pink-
|
|
210
|
-
--color-pink-
|
|
211
|
-
--color-pink-
|
|
212
|
-
--color-pink-
|
|
213
|
-
--color-pink-
|
|
214
|
-
--color-pink-
|
|
215
|
-
--color-pink-
|
|
216
|
-
--color-pink-
|
|
217
|
-
--color-pink-
|
|
205
|
+
/* Pink — Figma « _Primitives / Pink » (42 UI Kit V3): a mauve, not the
|
|
206
|
+
Untitled UI fuchsia this ramp started from. */
|
|
207
|
+
--color-pink-25: #fcf8fb;
|
|
208
|
+
--color-pink-50: #fbf4f9;
|
|
209
|
+
--color-pink-100: #f7ecf5;
|
|
210
|
+
--color-pink-200: #f2d8ed;
|
|
211
|
+
--color-pink-300: #e7bade;
|
|
212
|
+
--color-pink-400: #d88ec9;
|
|
213
|
+
--color-pink-500: #c86cb6;
|
|
214
|
+
--color-pink-600: #b44e9f;
|
|
215
|
+
--color-pink-700: #9a3c87;
|
|
216
|
+
--color-pink-800: #7f3570;
|
|
217
|
+
--color-pink-900: #6c2f60;
|
|
218
|
+
--color-pink-950: #3f1c38;
|
|
218
219
|
|
|
219
220
|
/* Rose */
|
|
220
221
|
--color-rose-25: #fff5f6;
|
|
@@ -1417,7 +1418,11 @@ body {
|
|
|
1417
1418
|
color-mix(in oklch, var(--color-brand-700) 13%, transparent),
|
|
1418
1419
|
transparent 70%
|
|
1419
1420
|
);
|
|
1420
|
-
|
|
1421
|
+
/* The dark grain, tuned against Figma's « Background / Cosmos » (2026-10-29): fine
|
|
1422
|
+
(frequency 1, a pixel-sized grain like Figma's tiled noise) and lightly coloured — each
|
|
1423
|
+
channel swings with its own turbulence around the same light-blue tint (×2, ×2, ×1.6),
|
|
1424
|
+
where Figma's grain is speckled blue and violet. Same weight: one inline SVG, no image. */
|
|
1425
|
+
--ambient-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='2 0 0 0 -0.427 0 2 0 0 -0.31 0 0 1.6 0 0.18 0 0 0 1 0' result='c'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='gamma' amplitude='0.1' exponent='2' offset='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
1421
1426
|
}
|
|
1422
1427
|
|
|
1423
1428
|
/* The starfield's motion (`withStarfield`, see ambient-background/starfield.tsx).
|
|
@@ -1429,10 +1434,6 @@ body {
|
|
|
1429
1434
|
--animate-ambient-star-twinkle: ambient-star-twinkle 8s ease-in-out infinite;
|
|
1430
1435
|
/* The dust dims the same way, deeper and slower, one group per layer. */
|
|
1431
1436
|
--animate-ambient-star-dim: ambient-star-dim 17s ease-in-out infinite;
|
|
1432
|
-
/* The nebula's clouds swing slowly away and back, each by its own drift
|
|
1433
|
-
(`--drift-*`, set per cloud): moved, swollen a little and thinned out at
|
|
1434
|
-
the far end, eased at both. */
|
|
1435
|
-
--animate-ambient-nebula-drift: ambient-nebula-drift 90s ease-in-out infinite alternate;
|
|
1436
1437
|
/* A meteor's whole cycle is mostly waiting: it streaks across in the first
|
|
1437
1438
|
2% (about a second of its long cycle), its tail growing behind the head
|
|
1438
1439
|
as it fades in and burning out before it stops, then nothing until the
|
|
@@ -1460,13 +1461,6 @@ body {
|
|
|
1460
1461
|
}
|
|
1461
1462
|
}
|
|
1462
1463
|
|
|
1463
|
-
@keyframes ambient-nebula-drift {
|
|
1464
|
-
to {
|
|
1465
|
-
transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(var(--drift-scale));
|
|
1466
|
-
opacity: var(--drift-fade);
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
1464
|
@keyframes ambient-meteor {
|
|
1471
1465
|
0% {
|
|
1472
1466
|
opacity: 0;
|
|
@@ -1484,7 +1478,7 @@ body {
|
|
|
1484
1478
|
|
|
1485
1479
|
/* `motion-safe:` reads only the OS setting; apps that let people choose
|
|
1486
1480
|
in-app set `data-motion="reduced"` on `<html>`, and the sky stills for that
|
|
1487
|
-
too: no
|
|
1481
|
+
too: no dimming, no twinkle, no meteors. */
|
|
1488
1482
|
:where(:root[data-motion="reduced"]) {
|
|
1489
1483
|
.ambient-starfield,
|
|
1490
1484
|
.ambient-starfield * {
|
|
@@ -1509,5 +1503,11 @@ body {
|
|
|
1509
1503
|
> &
|
|
1510
1504
|
);
|
|
1511
1505
|
|
|
1506
|
+
/* Inside an `AppShell.Sidebar collapse="icons"` while it shows icons only:
|
|
1507
|
+
hide what doesn't fit a 68px rail (`sidebar-rail:hidden` on a logo's
|
|
1508
|
+
wordmark, a footer's user name). Matches the rail itself too. NavLink uses it
|
|
1509
|
+
for its label, endSlot, chevron. */
|
|
1510
|
+
@custom-variant sidebar-rail (&:where([data-sidebar-rail], [data-sidebar-rail] *));
|
|
1511
|
+
|
|
1512
1512
|
/* Variants to use with slider's values */
|
|
1513
1513
|
@custom-variant state-under-or-at (&:is([data-state="under-value"], [data-state="at-value"]));
|
package/package.json
CHANGED
|
@@ -442,6 +442,12 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
442
442
|
</AppShell>
|
|
443
443
|
),
|
|
444
444
|
"AppShell.Main": bare,
|
|
445
|
+
// jsdom measures the shell 0px wide, so `breakpoint={0}` keeps it desktop.
|
|
446
|
+
"AppShell.SidebarCollapseTrigger": (c) => (
|
|
447
|
+
<AppShell breakpoint={0}>
|
|
448
|
+
<AppShell.SidebarCollapseTrigger asChild>{c}</AppShell.SidebarCollapseTrigger>
|
|
449
|
+
</AppShell>
|
|
450
|
+
),
|
|
445
451
|
"AppShell.SidebarTrigger": (c) => (
|
|
446
452
|
<AppShell>
|
|
447
453
|
<AppShell.SidebarTrigger asChild>{c}</AppShell.SidebarTrigger>
|
|
@@ -63,8 +63,10 @@ const actionIconVariants = cva(
|
|
|
63
63
|
"bg-(--c-soft) text-(--c-text) border-(--c-soft-hover)",
|
|
64
64
|
"not-data-loading:hover:bg-(--c-soft-hover) not-data-loading:hover:border-(--c-solid)",
|
|
65
65
|
],
|
|
66
|
+
// Button's outline edge (the colour at 35%), so the two read as one
|
|
67
|
+
// stroke weight side by side in a toolbar.
|
|
66
68
|
outline: [
|
|
67
|
-
"bg-transparent text-(--c-text) border-(--c-solid)",
|
|
69
|
+
"bg-transparent text-(--c-text) border-(--c-solid)/35",
|
|
68
70
|
"not-data-loading:hover:bg-(--c-soft)",
|
|
69
71
|
],
|
|
70
72
|
subtle: ["bg-transparent text-(--c-text)", "not-data-loading:hover:bg-(--c-soft)"],
|
|
@@ -10,10 +10,12 @@ import { props } from "../../lib/props"
|
|
|
10
10
|
//
|
|
11
11
|
// Everything is computed once at module load from a seeded PRNG, so the sky
|
|
12
12
|
// is identical on every render, on the server and the client, and on every
|
|
13
|
-
// visit.
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
13
|
+
// visit. The clouds hold still: a drifting full-screen gradient is redrawn
|
|
14
|
+
// whole on every frame in Firefox, which kept its GPU busy for as long as a
|
|
15
|
+
// page was open. The rest moves, slowly: the dust dims and comes back, the
|
|
16
|
+
// brighter stars breathe, and now and then a meteor crosses. All of it is CSS
|
|
17
|
+
// animation of opacity and transform (keyframes in theme.css), so the
|
|
18
|
+
// compositor runs it and no script does per frame; and all of it sits
|
|
17
19
|
// behind `motion-safe:` and the `data-motion="reduced"` rule in theme.css, so
|
|
18
20
|
// with reduced motion the sky is a still picture, without the meteors.
|
|
19
21
|
|
|
@@ -98,15 +100,6 @@ const BRIGHT_STARS = [
|
|
|
98
100
|
// A four-point sparkle with concave sides: reads as a lens glint, not a shape.
|
|
99
101
|
const SPARKLE = "M0 -6Q0 0 6 0Q0 0 0 6Q0 0 -6 0Q0 0 0 -6Z"
|
|
100
102
|
|
|
101
|
-
// Each cloud's layer overhangs the viewport by this much on every side, so a
|
|
102
|
-
// cloud cut by the screen's edge (several are) can drift without the cut
|
|
103
|
-
// ever coming into view.
|
|
104
|
-
const BLEED = 15
|
|
105
|
-
const SPAN = 100 + 2 * BLEED
|
|
106
|
-
|
|
107
|
-
// A length or a position given in viewport %, as % of the overhanging layer.
|
|
108
|
-
const inLayer = (viewport: number, offset = 0) => `${round(((viewport + offset) / SPAN) * 100)}%`
|
|
109
|
-
|
|
110
103
|
type Ellipse = { rx: number; ry: number; x: number; y: number }
|
|
111
104
|
type Hue = { color: string; strength: number }
|
|
112
105
|
|
|
@@ -114,64 +107,46 @@ type Hue = { color: string; strength: number }
|
|
|
114
107
|
// ellipses that fade out over their whole radius so no edge ever shows. The
|
|
115
108
|
// design's blue core is already the kit's ambient glow; this adds the purple.
|
|
116
109
|
const cloud = ({ rx, ry, x, y }: Ellipse, { color, strength }: Hue) =>
|
|
117
|
-
`radial-gradient(ellipse ${
|
|
110
|
+
`radial-gradient(ellipse ${rx}% ${ry}% at ${x}% ${y}%, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`
|
|
118
111
|
|
|
119
|
-
//
|
|
120
|
-
//
|
|
121
|
-
|
|
122
|
-
// same clouds are pale tints, so the light theme keeps the violet without
|
|
123
|
-
// muddying the page.
|
|
124
|
-
const CLOUDS: {
|
|
125
|
-
at: Ellipse
|
|
126
|
-
dark: Hue
|
|
127
|
-
light: Hue
|
|
128
|
-
drift: { x: string; y: string; scale: number; fade: number; duration: string; delay: string }
|
|
129
|
-
}[] = [
|
|
112
|
+
// On a light sky the same clouds are pale tints, so the light theme keeps
|
|
113
|
+
// the violet without muddying the page.
|
|
114
|
+
const CLOUDS: { at: Ellipse; dark: Hue; light: Hue }[] = [
|
|
130
115
|
{
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
// Moved down-left, narrowed and brightened (9 → 17) against Figma's « Background / Cosmos »,
|
|
117
|
+
// whose lower-left glows violet behind the first column (2026-10-29).
|
|
118
|
+
at: { rx: 35, ry: 34, x: 23, y: 72 },
|
|
119
|
+
dark: { color: "--color-purple-400", strength: 17 },
|
|
133
120
|
light: { color: "--color-purple-200", strength: 14 },
|
|
134
|
-
drift: { x: "6vw", y: "-4vh", scale: 1.12, fade: 0.7, duration: "70s", delay: "-20s" },
|
|
135
121
|
},
|
|
136
122
|
{
|
|
137
123
|
at: { rx: 60, ry: 38, x: 42, y: 104 },
|
|
138
124
|
dark: { color: "--color-purple-800", strength: 20 },
|
|
139
125
|
light: { color: "--color-purple-200", strength: 26 },
|
|
140
|
-
drift: { x: "-8vw", y: "-3vh", scale: 1.08, fade: 0.85, duration: "95s", delay: "-50s" },
|
|
141
126
|
},
|
|
142
127
|
{
|
|
143
128
|
at: { rx: 40, ry: 34, x: 92, y: 4 },
|
|
144
129
|
dark: { color: "--color-purple-800", strength: 22 },
|
|
145
130
|
light: { color: "--color-purple-200", strength: 28 },
|
|
146
|
-
drift: { x: "-5vw", y: "5vh", scale: 1.15, fade: 0.8, duration: "85s", delay: "-10s" },
|
|
147
131
|
},
|
|
148
132
|
{
|
|
149
133
|
at: { rx: 46, ry: 40, x: 24, y: 20 },
|
|
150
134
|
dark: { color: "--color-brand-700", strength: 18 },
|
|
151
135
|
light: { color: "--color-brand-200", strength: 24 },
|
|
152
|
-
drift: { x: "7vw", y: "4vh", scale: 1.1, fade: 0.85, duration: "110s", delay: "-70s" },
|
|
153
136
|
},
|
|
154
137
|
{
|
|
155
138
|
at: { rx: 36, ry: 30, x: 4, y: 92 },
|
|
156
139
|
dark: { color: "--color-pink-800", strength: 10 },
|
|
157
140
|
light: { color: "--color-pink-200", strength: 16 },
|
|
158
|
-
drift: { x: "5vw", y: "-6vh", scale: 1.2, fade: 0.6, duration: "75s", delay: "-35s" },
|
|
159
141
|
},
|
|
160
142
|
]
|
|
161
143
|
|
|
162
|
-
// The cloud's picture per theme
|
|
163
|
-
|
|
164
|
-
const cloudStyle = ({ at, dark, light, drift }: (typeof CLOUDS)[number]) =>
|
|
144
|
+
// The cloud's picture per theme, as variables the classes read.
|
|
145
|
+
const cloudStyle = ({ at, dark, light }: (typeof CLOUDS)[number]) =>
|
|
165
146
|
({
|
|
166
147
|
"--nebula-light": cloud(at, light),
|
|
167
148
|
"--nebula-dark": cloud(at, dark),
|
|
168
|
-
|
|
169
|
-
"--drift-y": drift.y,
|
|
170
|
-
"--drift-scale": drift.scale,
|
|
171
|
-
"--drift-fade": drift.fade,
|
|
172
|
-
inset: `-${BLEED}%`,
|
|
173
|
-
animationDuration: drift.duration,
|
|
174
|
-
animationDelay: drift.delay,
|
|
149
|
+
inset: 0,
|
|
175
150
|
}) as CSSProperties
|
|
176
151
|
|
|
177
152
|
// The meteors: three, each on its own long cycle and visible for about a
|
|
@@ -216,7 +191,7 @@ export const Starfield = ({
|
|
|
216
191
|
aria-hidden="true"
|
|
217
192
|
className={cn(
|
|
218
193
|
LAYER,
|
|
219
|
-
"[background-image:var(--nebula-light)]
|
|
194
|
+
"[background-image:var(--nebula-light)] dark:[background-image:var(--nebula-dark)]",
|
|
220
195
|
classNames?.nebula,
|
|
221
196
|
)}
|
|
222
197
|
style={cloudStyle(c)}
|