@42-central/ui-react 0.25.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-LHUWOA2U.js → chunk-276RL7FX.js} +5 -5
- package/dist/{chunk-LHUWOA2U.js.map → chunk-276RL7FX.js.map} +1 -1
- package/dist/{chunk-6UIQJJNJ.js → chunk-2NTCQIRP.js} +4 -4
- package/dist/{chunk-6UIQJJNJ.js.map → chunk-2NTCQIRP.js.map} +1 -1
- package/dist/{chunk-T44RW5DW.js → chunk-2TZU4LSX.js} +4 -4
- package/dist/{chunk-T44RW5DW.js.map → chunk-2TZU4LSX.js.map} +1 -1
- package/dist/{chunk-QZ4N5LYG.js → chunk-7B44J3CF.js} +3 -3
- package/dist/{chunk-QZ4N5LYG.js.map → chunk-7B44J3CF.js.map} +1 -1
- package/dist/{chunk-XUFCI262.js → chunk-7OGZT7U2.js} +12 -4
- package/dist/chunk-7OGZT7U2.js.map +1 -0
- package/dist/{chunk-N5M4PDBK.js → chunk-DMI4KS32.js} +3 -3
- package/dist/{chunk-N5M4PDBK.js.map → chunk-DMI4KS32.js.map} +1 -1
- package/dist/{chunk-UDCCOUWR.js → chunk-DSZF2TW6.js} +5 -5
- package/dist/{chunk-UDCCOUWR.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-HRNWWL3Y.js → chunk-J2NW7JID.js} +61 -29
- package/dist/chunk-J2NW7JID.js.map +1 -0
- package/dist/{chunk-FZSLSUSX.js → chunk-JDPVD2YE.js} +3 -3
- package/dist/{chunk-FZSLSUSX.js.map → chunk-JDPVD2YE.js.map} +1 -1
- package/dist/{chunk-6II2DVYR.js → chunk-JFB6O7IY.js} +4 -4
- package/dist/{chunk-6II2DVYR.js.map → chunk-JFB6O7IY.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-AHKMN3YQ.js → chunk-N42EFOML.js} +3 -3
- package/dist/{chunk-AHKMN3YQ.js.map → chunk-N42EFOML.js.map} +1 -1
- package/dist/{chunk-7HZBD4YZ.js → chunk-NF2PBGD3.js} +36 -23
- package/dist/chunk-NF2PBGD3.js.map +1 -0
- package/dist/{chunk-MW42XVPD.js → chunk-PBSVX5DB.js} +15 -5
- package/dist/chunk-PBSVX5DB.js.map +1 -0
- package/dist/{chunk-PI7X5YFJ.js → chunk-PT22KEVD.js} +4 -4
- package/dist/{chunk-PI7X5YFJ.js.map → chunk-PT22KEVD.js.map} +1 -1
- package/dist/{chunk-36NWC4GV.js → chunk-QEAF57ZQ.js} +3 -3
- package/dist/{chunk-36NWC4GV.js.map → chunk-QEAF57ZQ.js.map} +1 -1
- package/dist/{chunk-SAXWCGWR.js → chunk-SOUDKESO.js} +14 -7
- package/dist/chunk-SOUDKESO.js.map +1 -0
- package/dist/{chunk-54W6VAI3.js → chunk-THGJLR5S.js} +5 -5
- package/dist/{chunk-54W6VAI3.js.map → chunk-THGJLR5S.js.map} +1 -1
- package/dist/{chunk-LMCUGYHT.js → chunk-YMVUQ2L7.js} +3 -3
- package/dist/{chunk-LMCUGYHT.js.map → chunk-YMVUQ2L7.js.map} +1 -1
- package/dist/components/ambient-background/index.js +9 -23
- 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 +297 -36
- package/dist/components/app-shell/index.js.map +1 -1
- package/dist/components/autocomplete/index.js +3 -3
- 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 +10 -1
- package/dist/components/avatar/index.js.map +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 +2 -2
- 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 +2 -2
- package/dist/components/camera/index.js +5 -5
- package/dist/components/code-block/chrome.js +3 -3
- package/dist/components/code-block/index.js +4 -4
- package/dist/components/combobox/index.js +3 -3
- package/dist/components/combobox-list/index.js +5 -5
- package/dist/components/data-table/index.js +13 -13
- package/dist/components/date-picker/index.js +7 -7
- package/dist/components/drawer/index.js +2 -2
- package/dist/components/geodesic/a11y.d.ts +3 -3
- package/dist/components/geodesic/a11y.d.ts.map +1 -1
- 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/indicator/index.js +23 -8
- 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/lightbox/index.js +2 -2
- package/dist/components/menu/index.js +3 -3
- package/dist/components/modal/index.js +2 -2
- package/dist/components/multi-combobox-list/index.js +5 -5
- package/dist/components/multi-select/index.js +3 -3
- 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 +3 -3
- package/dist/components/overlays/index.js +3 -3
- package/dist/components/photo-capture/index.js +5 -5
- package/dist/components/popover/index.js +2 -2
- package/dist/components/schedule/index.js +3 -3
- package/dist/components/segment-group/index.js +1 -1
- 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 +4 -4
- package/dist/components/spotlight/index.js +4 -4
- package/dist/components/tabs/index.js +1 -1
- 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 +2 -2
- package/dist/components/time-input/index.js +5 -5
- package/dist/components/tree-multi-select/index.js +3 -3
- package/dist/components/tree-select/index.js +3 -3
- package/dist/lib/sidebar-rail.d.ts +21 -0
- package/dist/lib/sidebar-rail.d.ts.map +1 -0
- package/dist/theme.css +7 -12
- package/package.json +1 -1
- package/src/as-child.contract.test.tsx +6 -0
- package/src/components/ambient-background/starfield.tsx +14 -41
- 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/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/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/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/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/lib/sidebar-rail.ts +24 -0
- package/src/theme.css +7 -12
- package/src/theme.test.ts +0 -1
- package/dist/chunk-7HZBD4YZ.js.map +0 -1
- package/dist/chunk-HRNWWL3Y.js.map +0 -1
- package/dist/chunk-MW42XVPD.js.map +0 -1
- package/dist/chunk-SAXWCGWR.js.map +0 -1
- package/dist/chunk-XUFCI262.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Select } from '../../chunk-
|
|
2
|
+
export { Select } from '../../chunk-DSZF2TW6.js';
|
|
3
3
|
import '../../chunk-7TDHT3QD.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-2NTCQIRP.js';
|
|
5
5
|
import '../../chunk-5FDOOG4J.js';
|
|
6
6
|
import '../../chunk-I4B3N3UX.js';
|
|
7
7
|
import '../../chunk-X6DESK37.js';
|
|
8
8
|
import '../../chunk-HBWV5EPU.js';
|
|
9
|
-
import '../../chunk-
|
|
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,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Kbd } from '../../chunk-7247WBTV.js';
|
|
3
|
-
import { Modal } from '../../chunk-
|
|
3
|
+
import { Modal } from '../../chunk-N42EFOML.js';
|
|
4
4
|
import { Pill } from '../../chunk-6M6YZ3PQ.js';
|
|
5
5
|
import { Mark } from '../../chunk-NS6RGPWR.js';
|
|
6
6
|
import { Skeleton } from '../../chunk-TWNIAF7K.js';
|
|
7
7
|
import '../../chunk-NLSJ6T7V.js';
|
|
8
|
-
import { Combobox } from '../../chunk-
|
|
8
|
+
import { Combobox } from '../../chunk-2NTCQIRP.js';
|
|
9
9
|
import '../../chunk-I4B3N3UX.js';
|
|
10
10
|
import '../../chunk-X6DESK37.js';
|
|
11
11
|
import { useLocalStorage, useInView } from '../../chunk-HC4XVBP2.js';
|
|
12
12
|
import { useHotkey, KBD_DEFAULT_TRANSLATIONS } from '../../chunk-2CL3FKEY.js';
|
|
13
13
|
import { observeResize } from '../../chunk-2LI3VPDP.js';
|
|
14
14
|
import { useLinkComponent } from '../../chunk-GTKKRV5N.js';
|
|
15
|
-
import { popoverOption, popoverGroupLabel, popoverEmpty } from '../../chunk-
|
|
15
|
+
import { popoverOption, popoverGroupLabel, popoverEmpty } from '../../chunk-E3XLWMEB.js';
|
|
16
|
+
import '../../chunk-H7WOMZXO.js';
|
|
16
17
|
import '../../chunk-V6PY7C6S.js';
|
|
17
18
|
import '../../chunk-7P32XCEU.js';
|
|
18
|
-
import '../../chunk-H7WOMZXO.js';
|
|
19
19
|
import '../../chunk-BMEJBY6H.js';
|
|
20
20
|
import { devWarn } from '../../chunk-LIZWCWED.js';
|
|
21
21
|
import '../../chunk-PMUCGFY5.js';
|
|
@@ -51,10 +51,13 @@ export type TabsProps<Data extends TabsData = TabsData> = Omit<TabsRootProps, "c
|
|
|
51
51
|
/** Palette for the underline bar + active-trigger text. Scoped to the
|
|
52
52
|
* strip (it lands on the `List`), so it never tints the panel content. */
|
|
53
53
|
color?: Color;
|
|
54
|
+
/** Give every tab an even share of the strip, like a tab bar. Lands on the
|
|
55
|
+
* `List`. */
|
|
56
|
+
grow?: boolean;
|
|
54
57
|
/** Fires with the selected value (narrowed to the data value union). */
|
|
55
58
|
onChange?: (value: TabsValue<Data>) => void;
|
|
56
59
|
};
|
|
57
|
-
declare const TabsComponent: <const Data extends TabsData>({ data, variant, size, color, value, defaultValue, onChange, asChild: _asChild, ...root }: TabsProps<Data>) => import("react").JSX.Element;
|
|
60
|
+
declare const TabsComponent: <const Data extends TabsData>({ data, variant, size, color, grow, value, defaultValue, onChange, asChild: _asChild, ...root }: TabsProps<Data>) => import("react").JSX.Element;
|
|
58
61
|
/**
|
|
59
62
|
* The public `Tabs` export — callable for the data-driven form, with the
|
|
60
63
|
* composable parts attached (like `Menu`). `<Tabs data={…}>` and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-data.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs-data.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EACL,OAAO,EAEP,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,OAAO,EACR,MAAM,QAAQ,CAAA;AAEf;;;;;;;;;;;;;;;;;GAiBG;AAEH,sDAAsD;AACtD,M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EH,QAAA,MAAM,aAAa,GAAI,KAAK,CAAC,IAAI,SAAS,QAAQ,mGAW/C,SAAS,CAAC,IAAI,CAAC,gCA+BjB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;;;CAOf,CAAA"}
|
|
@@ -79,8 +79,11 @@ export type TabsListProps = Omit<Ark.ListProps, "color"> & WithTestId & {
|
|
|
79
79
|
* on the list, so the `--c-*` slots reach the triggers and the indicator
|
|
80
80
|
* without reaching the `Content` panels. */
|
|
81
81
|
color?: Color;
|
|
82
|
+
/** Give every trigger an even share of the list's width (its height when
|
|
83
|
+
* vertical), like a tab bar. Without it the triggers hug their labels. */
|
|
84
|
+
grow?: boolean;
|
|
82
85
|
};
|
|
83
|
-
declare const List: ({ variant, size, color, className, testId, ...rest }: TabsListProps) => import("react").JSX.Element;
|
|
86
|
+
declare const List: ({ variant, size, grow, color, className, testId, ...rest }: TabsListProps) => import("react").JSX.Element;
|
|
84
87
|
/** `color` is omitted from Ark's props for the same reason as on `Root`
|
|
85
88
|
* (React's legacy HTML `color?: string`) and re-added as the kit's palette. */
|
|
86
89
|
export type TabsTriggerProps = Omit<Ark.TriggerProps, "color"> & WithTestId & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,GAAG,EAAkB,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAI7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH;;;;;;;;;;oBAU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CAAC,YAAY,EAAE,OAAO,CAAC,GAC5D,UAAU,GAAG;IACX;;4DAEwD;IACxD,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,QAAA,MAAM,OAAO,0CAA2C,gBAAgB,gCAkBvE,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,YAAY,GAAG,UAAU,CAAA;AAE5D,QAAA,MAAM,OAAO,mCAAoC,gBAAgB,gCAMhE,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,cAAc,GAAG,UAAU,CAAA;AAEhE;;;;;;;;;;;;;;;;;;;2EAmB2E;AAC3E,QAAA,MAAM,SAAS,0CAA2C,kBAAkB,gCAyB3E,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AAClD,eAAO,MAAM,OAAO,wDAAc,CAAA"}
|
|
@@ -5,10 +5,10 @@ import { inputSlot, inputControlClasses, inputShell } from '../../chunk-I4B3N3UX
|
|
|
5
5
|
import { FieldShell, fieldA11yProps } from '../../chunk-X6DESK37.js';
|
|
6
6
|
import '../../chunk-2LI3VPDP.js';
|
|
7
7
|
import '../../chunk-IUK7OJXZ.js';
|
|
8
|
-
import { popoverClearTrigger } from '../../chunk-
|
|
8
|
+
import { popoverClearTrigger } from '../../chunk-E3XLWMEB.js';
|
|
9
|
+
import '../../chunk-H7WOMZXO.js';
|
|
9
10
|
import '../../chunk-V6PY7C6S.js';
|
|
10
11
|
import '../../chunk-7P32XCEU.js';
|
|
11
|
-
import '../../chunk-H7WOMZXO.js';
|
|
12
12
|
import '../../chunk-LIZWCWED.js';
|
|
13
13
|
import '../../chunk-PMUCGFY5.js';
|
|
14
14
|
import '../../chunk-BUIHQJGE.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { resolveHourCycle, toDisplayHour, TimeRow, fromDisplayHour } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
2
|
+
import { resolveHourCycle, toDisplayHour, TimeRow, fromDisplayHour } from '../../chunk-2TZU4LSX.js';
|
|
3
|
+
import '../../chunk-NF2PBGD3.js';
|
|
4
|
+
import '../../chunk-DMI4KS32.js';
|
|
5
5
|
import '../../chunk-I4B3N3UX.js';
|
|
6
6
|
import { FieldShell, fieldA11yProps } from '../../chunk-X6DESK37.js';
|
|
7
7
|
import '../../chunk-HBWV5EPU.js';
|
|
8
8
|
import '../../chunk-IUK7OJXZ.js';
|
|
9
|
-
import '../../chunk-
|
|
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-LIZWCWED.js';
|
|
14
14
|
import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
|
|
15
15
|
import '../../chunk-BUIHQJGE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { buildMaps, filterTree, flattenTree, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, isLeaf, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-
|
|
2
|
+
import { buildMaps, filterTree, flattenTree, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, isLeaf, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-JDPVD2YE.js';
|
|
3
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';
|
|
@@ -8,10 +8,10 @@ import { placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
|
|
|
8
8
|
import { FieldShell } from '../../chunk-X6DESK37.js';
|
|
9
9
|
import '../../chunk-2LI3VPDP.js';
|
|
10
10
|
import '../../chunk-IUK7OJXZ.js';
|
|
11
|
-
import { Popover } from '../../chunk-
|
|
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-H7WOMZXO.js';
|
|
15
15
|
import '../../chunk-LIZWCWED.js';
|
|
16
16
|
import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
|
|
17
17
|
import '../../chunk-BUIHQJGE.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
4
|
import { placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
|
|
5
5
|
import { FieldShell } from '../../chunk-X6DESK37.js';
|
|
6
|
-
import { Popover, popoverIndicator } from '../../chunk-
|
|
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';
|
|
@@ -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
|
@@ -1434,10 +1434,6 @@ body {
|
|
|
1434
1434
|
--animate-ambient-star-twinkle: ambient-star-twinkle 8s ease-in-out infinite;
|
|
1435
1435
|
/* The dust dims the same way, deeper and slower, one group per layer. */
|
|
1436
1436
|
--animate-ambient-star-dim: ambient-star-dim 17s ease-in-out infinite;
|
|
1437
|
-
/* The nebula's clouds swing slowly away and back, each by its own drift
|
|
1438
|
-
(`--drift-*`, set per cloud): moved, swollen a little and thinned out at
|
|
1439
|
-
the far end, eased at both. */
|
|
1440
|
-
--animate-ambient-nebula-drift: ambient-nebula-drift 90s ease-in-out infinite alternate;
|
|
1441
1437
|
/* A meteor's whole cycle is mostly waiting: it streaks across in the first
|
|
1442
1438
|
2% (about a second of its long cycle), its tail growing behind the head
|
|
1443
1439
|
as it fades in and burning out before it stops, then nothing until the
|
|
@@ -1465,13 +1461,6 @@ body {
|
|
|
1465
1461
|
}
|
|
1466
1462
|
}
|
|
1467
1463
|
|
|
1468
|
-
@keyframes ambient-nebula-drift {
|
|
1469
|
-
to {
|
|
1470
|
-
transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(var(--drift-scale));
|
|
1471
|
-
opacity: var(--drift-fade);
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
1464
|
@keyframes ambient-meteor {
|
|
1476
1465
|
0% {
|
|
1477
1466
|
opacity: 0;
|
|
@@ -1489,7 +1478,7 @@ body {
|
|
|
1489
1478
|
|
|
1490
1479
|
/* `motion-safe:` reads only the OS setting; apps that let people choose
|
|
1491
1480
|
in-app set `data-motion="reduced"` on `<html>`, and the sky stills for that
|
|
1492
|
-
too: no
|
|
1481
|
+
too: no dimming, no twinkle, no meteors. */
|
|
1493
1482
|
:where(:root[data-motion="reduced"]) {
|
|
1494
1483
|
.ambient-starfield,
|
|
1495
1484
|
.ambient-starfield * {
|
|
@@ -1514,5 +1503,11 @@ body {
|
|
|
1514
1503
|
> &
|
|
1515
1504
|
);
|
|
1516
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
|
+
|
|
1517
1512
|
/* Variants to use with slider's values */
|
|
1518
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>
|
|
@@ -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,66 +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
116
|
// Moved down-left, narrowed and brightened (9 → 17) against Figma's « Background / Cosmos »,
|
|
132
117
|
// whose lower-left glows violet behind the first column (2026-10-29).
|
|
133
118
|
at: { rx: 35, ry: 34, x: 23, y: 72 },
|
|
134
119
|
dark: { color: "--color-purple-400", strength: 17 },
|
|
135
120
|
light: { color: "--color-purple-200", strength: 14 },
|
|
136
|
-
drift: { x: "6vw", y: "-4vh", scale: 1.12, fade: 0.7, duration: "70s", delay: "-20s" },
|
|
137
121
|
},
|
|
138
122
|
{
|
|
139
123
|
at: { rx: 60, ry: 38, x: 42, y: 104 },
|
|
140
124
|
dark: { color: "--color-purple-800", strength: 20 },
|
|
141
125
|
light: { color: "--color-purple-200", strength: 26 },
|
|
142
|
-
drift: { x: "-8vw", y: "-3vh", scale: 1.08, fade: 0.85, duration: "95s", delay: "-50s" },
|
|
143
126
|
},
|
|
144
127
|
{
|
|
145
128
|
at: { rx: 40, ry: 34, x: 92, y: 4 },
|
|
146
129
|
dark: { color: "--color-purple-800", strength: 22 },
|
|
147
130
|
light: { color: "--color-purple-200", strength: 28 },
|
|
148
|
-
drift: { x: "-5vw", y: "5vh", scale: 1.15, fade: 0.8, duration: "85s", delay: "-10s" },
|
|
149
131
|
},
|
|
150
132
|
{
|
|
151
133
|
at: { rx: 46, ry: 40, x: 24, y: 20 },
|
|
152
134
|
dark: { color: "--color-brand-700", strength: 18 },
|
|
153
135
|
light: { color: "--color-brand-200", strength: 24 },
|
|
154
|
-
drift: { x: "7vw", y: "4vh", scale: 1.1, fade: 0.85, duration: "110s", delay: "-70s" },
|
|
155
136
|
},
|
|
156
137
|
{
|
|
157
138
|
at: { rx: 36, ry: 30, x: 4, y: 92 },
|
|
158
139
|
dark: { color: "--color-pink-800", strength: 10 },
|
|
159
140
|
light: { color: "--color-pink-200", strength: 16 },
|
|
160
|
-
drift: { x: "5vw", y: "-6vh", scale: 1.2, fade: 0.6, duration: "75s", delay: "-35s" },
|
|
161
141
|
},
|
|
162
142
|
]
|
|
163
143
|
|
|
164
|
-
// The cloud's picture per theme
|
|
165
|
-
|
|
166
|
-
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]) =>
|
|
167
146
|
({
|
|
168
147
|
"--nebula-light": cloud(at, light),
|
|
169
148
|
"--nebula-dark": cloud(at, dark),
|
|
170
|
-
|
|
171
|
-
"--drift-y": drift.y,
|
|
172
|
-
"--drift-scale": drift.scale,
|
|
173
|
-
"--drift-fade": drift.fade,
|
|
174
|
-
inset: `-${BLEED}%`,
|
|
175
|
-
animationDuration: drift.duration,
|
|
176
|
-
animationDelay: drift.delay,
|
|
149
|
+
inset: 0,
|
|
177
150
|
}) as CSSProperties
|
|
178
151
|
|
|
179
152
|
// The meteors: three, each on its own long cycle and visible for about a
|
|
@@ -218,7 +191,7 @@ export const Starfield = ({
|
|
|
218
191
|
aria-hidden="true"
|
|
219
192
|
className={cn(
|
|
220
193
|
LAYER,
|
|
221
|
-
"[background-image:var(--nebula-light)]
|
|
194
|
+
"[background-image:var(--nebula-light)] dark:[background-image:var(--nebula-dark)]",
|
|
222
195
|
classNames?.nebula,
|
|
223
196
|
)}
|
|
224
197
|
style={cloudStyle(c)}
|