@marktiderman/genesis-ui 1.3.0 → 2.1.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/LICENSE +21 -0
- package/dist/AppShell-sQT0UbXg.d.ts +198 -0
- package/dist/{chunk-NJMO3VPA.js → chunk-22XB3Q6H.js} +8 -8
- package/dist/chunk-22XB3Q6H.js.map +1 -0
- package/dist/{chunk-2MXMWBDV.js → chunk-27ELYTGE.js} +6 -6
- package/dist/chunk-27ELYTGE.js.map +1 -0
- package/dist/chunk-46TZGMFW.js +159 -0
- package/dist/chunk-46TZGMFW.js.map +1 -0
- package/dist/chunk-4CQHPWJD.js +117 -0
- package/dist/chunk-4CQHPWJD.js.map +1 -0
- package/dist/{chunk-ZDAT5JDH.js → chunk-65SPT7EA.js} +24 -6
- package/dist/chunk-65SPT7EA.js.map +1 -0
- package/dist/chunk-6KHY647C.js +67 -0
- package/dist/chunk-6KHY647C.js.map +1 -0
- package/dist/chunk-6M4NHHKG.js +51 -0
- package/dist/chunk-6M4NHHKG.js.map +1 -0
- package/dist/chunk-6Q6CLLJ4.js +9 -0
- package/dist/chunk-6Q6CLLJ4.js.map +1 -0
- package/dist/{chunk-UGHQFQOE.js → chunk-6TVMQH6M.js} +28 -28
- package/dist/chunk-6TVMQH6M.js.map +1 -0
- package/dist/{chunk-6VVVGYKS.js → chunk-6XPMU65K.js} +5 -5
- package/dist/{chunk-6VVVGYKS.js.map → chunk-6XPMU65K.js.map} +1 -1
- package/dist/{chunk-YZEA5TGK.js → chunk-7XMZVISM.js} +16 -16
- package/dist/chunk-7XMZVISM.js.map +1 -0
- package/dist/chunk-A7AHVDG7.js +52 -0
- package/dist/chunk-A7AHVDG7.js.map +1 -0
- package/dist/chunk-AFZ76Q26.js +84 -0
- package/dist/chunk-AFZ76Q26.js.map +1 -0
- package/dist/{chunk-4V4H2ZM7.js → chunk-AL5TMEZQ.js} +31 -31
- package/dist/chunk-AL5TMEZQ.js.map +1 -0
- package/dist/{chunk-AUECDWP2.js → chunk-AOZGQM6W.js} +3 -3
- package/dist/chunk-AOZGQM6W.js.map +1 -0
- package/dist/chunk-ARJI2JUV.js +122 -0
- package/dist/chunk-ARJI2JUV.js.map +1 -0
- package/dist/chunk-AVFZ4P4B.js +25 -0
- package/dist/chunk-AVFZ4P4B.js.map +1 -0
- package/dist/chunk-B2GIBUQD.js +11 -0
- package/dist/chunk-B2GIBUQD.js.map +1 -0
- package/dist/{chunk-JXI2MYL3.js → chunk-C46ITXE4.js} +5 -5
- package/dist/chunk-C46ITXE4.js.map +1 -0
- package/dist/{chunk-A2OXCNNY.js → chunk-CNTWQSUT.js} +3 -3
- package/dist/{chunk-A2OXCNNY.js.map → chunk-CNTWQSUT.js.map} +1 -1
- package/dist/chunk-D2LIXA2Y.js +65 -0
- package/dist/chunk-D2LIXA2Y.js.map +1 -0
- package/dist/{chunk-T5VX5DYO.js → chunk-F47U5KNW.js} +5 -5
- package/dist/chunk-F47U5KNW.js.map +1 -0
- package/dist/chunk-FEJAZFP3.js +1100 -0
- package/dist/chunk-FEJAZFP3.js.map +1 -0
- package/dist/{chunk-2B3MFHBQ.js → chunk-FK42ZGGV.js} +21 -21
- package/dist/chunk-FK42ZGGV.js.map +1 -0
- package/dist/{chunk-XISSLIMH.js → chunk-FTTNGGLA.js} +2 -2
- package/dist/{chunk-XISSLIMH.js.map → chunk-FTTNGGLA.js.map} +1 -1
- package/dist/chunk-G5YKBPBF.js +74 -0
- package/dist/chunk-G5YKBPBF.js.map +1 -0
- package/dist/{chunk-QLCDAFS7.js → chunk-GDFNAHI4.js} +10 -6
- package/dist/chunk-GDFNAHI4.js.map +1 -0
- package/dist/{chunk-KB5T5LWM.js → chunk-IJCT5IJD.js} +3 -3
- package/dist/{chunk-KB5T5LWM.js.map → chunk-IJCT5IJD.js.map} +1 -1
- package/dist/{chunk-44TULYGG.js → chunk-J6FBA7PH.js} +3 -3
- package/dist/{chunk-44TULYGG.js.map → chunk-J6FBA7PH.js.map} +1 -1
- package/dist/chunk-JAMLFMDS.js +12 -0
- package/dist/chunk-JAMLFMDS.js.map +1 -0
- package/dist/{chunk-C6H7AMO4.js → chunk-LNFF2RBD.js} +9 -9
- package/dist/chunk-LNFF2RBD.js.map +1 -0
- package/dist/{chunk-QBZMY2AF.js → chunk-M62CHO3N.js} +18 -18
- package/dist/chunk-M62CHO3N.js.map +1 -0
- package/dist/{chunk-5Q4FABZQ.js → chunk-NUXW6NPP.js} +8 -8
- package/dist/chunk-NUXW6NPP.js.map +1 -0
- package/dist/{chunk-ZJFSZFPI.js → chunk-NWSCYLPT.js} +77 -18
- package/dist/chunk-NWSCYLPT.js.map +1 -0
- package/dist/{chunk-63FW5ZUA.js → chunk-P3ZL6FGR.js} +7 -7
- package/dist/chunk-P3ZL6FGR.js.map +1 -0
- package/dist/chunk-P64MFQXZ.js +191 -0
- package/dist/chunk-P64MFQXZ.js.map +1 -0
- package/dist/chunk-PLIYF6KI.js +52 -0
- package/dist/chunk-PLIYF6KI.js.map +1 -0
- package/dist/chunk-PSR47JRA.js +26 -0
- package/dist/chunk-PSR47JRA.js.map +1 -0
- package/dist/{chunk-SBJV3K4G.js → chunk-QJ6P2DW6.js} +28 -28
- package/dist/chunk-QJ6P2DW6.js.map +1 -0
- package/dist/{chunk-IP6TMT3D.js → chunk-R7QFP6EL.js} +3 -3
- package/dist/chunk-R7QFP6EL.js.map +1 -0
- package/dist/{chunk-WZWR2ELB.js → chunk-SEBU6JCK.js} +6 -6
- package/dist/chunk-SEBU6JCK.js.map +1 -0
- package/dist/{chunk-7OBL3H5P.js → chunk-SEFK4NZV.js} +3 -3
- package/dist/chunk-SEFK4NZV.js.map +1 -0
- package/dist/chunk-SRIT4NFQ.js +67 -0
- package/dist/chunk-SRIT4NFQ.js.map +1 -0
- package/dist/chunk-SY62XJFA.js +19 -0
- package/dist/chunk-SY62XJFA.js.map +1 -0
- package/dist/{chunk-SVXDWPLO.js → chunk-THD3YOOZ.js} +17 -17
- package/dist/chunk-THD3YOOZ.js.map +1 -0
- package/dist/chunk-VXFYETRK.js +58 -0
- package/dist/chunk-VXFYETRK.js.map +1 -0
- package/dist/chunk-XBX6QMR5.js +58 -0
- package/dist/chunk-XBX6QMR5.js.map +1 -0
- package/dist/{chunk-SCUT2ZCD.js → chunk-XCGZPFT7.js} +17 -17
- package/dist/chunk-XCGZPFT7.js.map +1 -0
- package/dist/chunk-XMK3T4TA.js +73 -0
- package/dist/chunk-XMK3T4TA.js.map +1 -0
- package/dist/chunk-YJ6MPS6U.js +226 -0
- package/dist/chunk-YJ6MPS6U.js.map +1 -0
- package/dist/chunk-YRYQXU3G.js +38 -0
- package/dist/chunk-YRYQXU3G.js.map +1 -0
- package/dist/{chunk-5J7BP5DI.js → chunk-YWFPMND7.js} +10 -10
- package/dist/chunk-YWFPMND7.js.map +1 -0
- package/dist/chunk-YYEGAFUE.js +94 -0
- package/dist/chunk-YYEGAFUE.js.map +1 -0
- package/dist/{chunk-TKA4LOMT.js → chunk-ZZ7H7VVX.js} +8 -8
- package/dist/chunk-ZZ7H7VVX.js.map +1 -0
- package/dist/components/data/index.d.ts +318 -228
- package/dist/components/data/index.js +591 -1394
- package/dist/components/data/index.js.map +1 -1
- package/dist/components/layout/dashboard-page.d.ts +4 -0
- package/dist/components/layout/dashboard-page.js +5 -0
- package/dist/components/layout/dashboard-page.js.map +1 -0
- package/dist/components/layout/detail-page.d.ts +91 -0
- package/dist/components/layout/detail-page.js +6 -0
- package/dist/components/layout/detail-page.js.map +1 -0
- package/dist/components/layout/form-page.d.ts +82 -0
- package/dist/components/layout/form-page.js +5 -0
- package/dist/components/layout/form-page.js.map +1 -0
- package/dist/components/layout/index.d.ts +14 -0
- package/dist/components/layout/index.js +21 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/settings-page.d.ts +114 -0
- package/dist/components/layout/settings-page.js +6 -0
- package/dist/components/layout/settings-page.js.map +1 -0
- package/dist/components/patterns/empty-state.d.ts +73 -0
- package/dist/components/{ui → patterns}/empty-state.js +2 -1
- package/dist/components/{ui → patterns}/form-field.d.ts +5 -6
- package/dist/components/{ui → patterns}/form-field.js +2 -2
- package/dist/components/patterns/index.d.ts +17 -0
- package/dist/components/patterns/index.js +18 -0
- package/dist/components/patterns/index.js.map +1 -0
- package/dist/components/patterns/page-loading.d.ts +25 -0
- package/dist/components/patterns/page-loading.js +5 -0
- package/dist/components/patterns/page-loading.js.map +1 -0
- package/dist/components/patterns/settings-row.d.ts +41 -0
- package/dist/components/patterns/settings-row.js +6 -0
- package/dist/components/patterns/settings-row.js.map +1 -0
- package/dist/components/patterns/status-badge.d.ts +37 -0
- package/dist/components/patterns/status-badge.js +4 -0
- package/dist/components/patterns/status-badge.js.map +1 -0
- package/dist/components/patterns/toggle-row.d.ts +35 -0
- package/dist/components/patterns/toggle-row.js +8 -0
- package/dist/components/patterns/toggle-row.js.map +1 -0
- package/dist/components/patterns/user-avatar.d.ts +34 -0
- package/dist/components/patterns/user-avatar.js +5 -0
- package/dist/components/patterns/user-avatar.js.map +1 -0
- package/dist/components/ui/accessible-icon.d.ts +47 -0
- package/dist/components/ui/accessible-icon.js +3 -0
- package/dist/components/ui/accessible-icon.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +5 -5
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.d.ts +12 -13
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/aspect-ratio.js +1 -1
- package/dist/components/ui/avatar.d.ts +4 -4
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.d.ts +1 -2
- package/dist/components/ui/breadcrumb.d.ts +2 -3
- package/dist/components/ui/button-group.d.ts +1 -2
- package/dist/components/ui/button.d.ts +73 -8
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.d.ts +2 -3
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/card.d.ts +6 -7
- package/dist/components/ui/carousel.d.ts +4 -4
- package/dist/components/ui/carousel.js +2 -2
- package/dist/components/ui/chart.d.ts +4 -5
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/collapsible.d.ts +4 -4
- package/dist/components/ui/collapsible.js +1 -1
- package/dist/components/ui/command-palette.d.ts +1 -2
- package/dist/components/ui/command-palette.js +3 -3
- package/dist/components/ui/command.d.ts +11 -12
- package/dist/components/ui/command.js +2 -2
- package/dist/components/ui/context-menu.d.ts +16 -17
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/date-picker.d.ts +2 -2
- package/dist/components/ui/date-picker.js +4 -4
- package/dist/components/ui/dialog.d.ts +11 -12
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/drawer.d.ts +10 -11
- package/dist/components/ui/dropdown-menu.d.ts +16 -17
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/hover-card.d.ts +4 -4
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input-otp.d.ts +2 -2
- package/dist/components/ui/kbd.d.ts +1 -2
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/menubar.d.ts +17 -18
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/navigation-menu.d.ts +9 -9
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/pagination.d.ts +5 -6
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/password-toggle-field.d.ts +120 -0
- package/dist/components/ui/password-toggle-field.js +4 -0
- package/dist/components/ui/password-toggle-field.js.map +1 -0
- package/dist/components/ui/popover.d.ts +4 -4
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.d.ts +1 -2
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/resizable.d.ts +3 -4
- package/dist/components/ui/scroll-area.d.ts +60 -3
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.d.ts +9 -9
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.d.ts +1 -2
- package/dist/components/ui/sheet.d.ts +13 -12
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -2
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/sonner.d.ts +1 -2
- package/dist/components/ui/spinner.d.ts +1 -2
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/tabs.d.ts +29 -14
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/toolbar.d.ts +104 -0
- package/dist/components/ui/toolbar.js +6 -0
- package/dist/components/ui/toolbar.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +46 -5
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/typography.d.ts +9 -10
- package/dist/components/ui/visually-hidden.d.ts +48 -0
- package/dist/components/ui/visually-hidden.js +4 -0
- package/dist/components/ui/visually-hidden.js.map +1 -0
- package/dist/dashboard-page-C0TihRl5.d.ts +107 -0
- package/dist/hooks/index.d.ts +2 -3
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/use-keyboard-navigation.d.ts +58 -2
- package/dist/hooks/use-keyboard-navigation.js +1 -1
- package/dist/hooks/use-resource-page.d.ts +2 -3
- package/dist/hooks/use-resource-page.js +2 -2
- package/dist/hooks/use-view-preference.d.ts +2 -2
- package/dist/hooks/use-view-preference.js +1 -1
- package/dist/index.d.ts +22 -25
- package/dist/index.js +54 -38
- package/dist/spacing-BS6qECD4.d.ts +191 -0
- package/dist/split-Dk9f4Mi0.d.ts +57 -0
- package/dist/{use-resource-page-BXBv_Xah.d.ts → use-resource-page-DTQS011Q.d.ts} +18 -6
- package/dist/view-settings-kHKCHMjj.d.ts +12 -0
- package/dist/{ViewToggle-DDe_Luj2.d.ts → view-toggle-CahQ87PW.d.ts} +2 -2
- package/package.json +80 -39
- package/dist/chunk-2B3MFHBQ.js.map +0 -1
- package/dist/chunk-2MXMWBDV.js.map +0 -1
- package/dist/chunk-4V4H2ZM7.js.map +0 -1
- package/dist/chunk-5J7BP5DI.js.map +0 -1
- package/dist/chunk-5Q4FABZQ.js.map +0 -1
- package/dist/chunk-63FW5ZUA.js.map +0 -1
- package/dist/chunk-7OBL3H5P.js.map +0 -1
- package/dist/chunk-AUECDWP2.js.map +0 -1
- package/dist/chunk-C6H7AMO4.js.map +0 -1
- package/dist/chunk-EI5EGKHL.js +0 -32
- package/dist/chunk-EI5EGKHL.js.map +0 -1
- package/dist/chunk-IP6TMT3D.js.map +0 -1
- package/dist/chunk-JJ4NOMMI.js +0 -73
- package/dist/chunk-JJ4NOMMI.js.map +0 -1
- package/dist/chunk-JXI2MYL3.js.map +0 -1
- package/dist/chunk-KBS4BHME.js +0 -11
- package/dist/chunk-KBS4BHME.js.map +0 -1
- package/dist/chunk-LRXDZBV2.js +0 -26
- package/dist/chunk-LRXDZBV2.js.map +0 -1
- package/dist/chunk-NJMO3VPA.js.map +0 -1
- package/dist/chunk-OCTV3S4I.js +0 -29
- package/dist/chunk-OCTV3S4I.js.map +0 -1
- package/dist/chunk-QBZMY2AF.js.map +0 -1
- package/dist/chunk-QLCDAFS7.js.map +0 -1
- package/dist/chunk-SBJV3K4G.js.map +0 -1
- package/dist/chunk-SCUT2ZCD.js.map +0 -1
- package/dist/chunk-SVXDWPLO.js.map +0 -1
- package/dist/chunk-T465NJRL.js +0 -134
- package/dist/chunk-T465NJRL.js.map +0 -1
- package/dist/chunk-T5VX5DYO.js.map +0 -1
- package/dist/chunk-TKA4LOMT.js.map +0 -1
- package/dist/chunk-UGHQFQOE.js.map +0 -1
- package/dist/chunk-WALXVR6V.js +0 -9
- package/dist/chunk-WALXVR6V.js.map +0 -1
- package/dist/chunk-WZWR2ELB.js.map +0 -1
- package/dist/chunk-YZEA5TGK.js.map +0 -1
- package/dist/chunk-ZDAT5JDH.js.map +0 -1
- package/dist/chunk-ZJFSZFPI.js.map +0 -1
- package/dist/components/ui/empty-state.d.ts +0 -22
- /package/dist/components/{ui → patterns}/empty-state.js.map +0 -0
- /package/dist/components/{ui → patterns}/form-field.js.map +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { unstable_PasswordToggleField } from 'radix-ui';
|
|
3
|
+
|
|
4
|
+
interface PasswordToggleFieldProps extends React.ComponentPropsWithoutRef<typeof unstable_PasswordToggleField.Root> {
|
|
5
|
+
/** Class names for the field wrapper (the positioned box, see below). */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Stable test/automation selector for the wrapper (emitted as `data-testid`). */
|
|
8
|
+
testID?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* PasswordToggleField — a password input with a show/hide control that keeps
|
|
12
|
+
* focus and caret position across the toggle.
|
|
13
|
+
*
|
|
14
|
+
* Composition:
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <PasswordToggleField>
|
|
18
|
+
* <PasswordToggleFieldInput placeholder="Password" />
|
|
19
|
+
* <PasswordToggleFieldToggle>
|
|
20
|
+
* <PasswordToggleFieldSlot visible={<EyeOff />} hidden={<Eye />} />
|
|
21
|
+
* </PasswordToggleFieldToggle>
|
|
22
|
+
* </PasswordToggleField>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Why Radix and not five lines of `useState` plus `type={shown ? "text" :
|
|
26
|
+
* "password"}`: the naive version loses the caret on every toggle, leaves the
|
|
27
|
+
* button unlabelled (or labelled with a state that never updates), and — the
|
|
28
|
+
* part nobody writes — leaves the password visible in the DOM after the form is
|
|
29
|
+
* submitted or reset. Radix resets visibility on both `submit` and `reset`,
|
|
30
|
+
* restores `selectionStart`/`selectionEnd` after the type swap, and derives the
|
|
31
|
+
* toggle's `aria-label` ("Show password" / "Hide password") from the current
|
|
32
|
+
* state unless the caller supplies text or a label of their own.
|
|
33
|
+
*
|
|
34
|
+
* Radix's own root is a **context provider with no DOM node of its own**, so
|
|
35
|
+
* this wrapper renders a `relative` box around the children. That box is
|
|
36
|
+
* load-bearing, not decoration: `PasswordToggleFieldToggle` is positioned
|
|
37
|
+
* `absolute`, and absolute positioning resolves against the nearest positioned
|
|
38
|
+
* ancestor. Without a wrapper the toggle would escape the field and land
|
|
39
|
+
* against whatever positioned ancestor the consumer's page happened to have —
|
|
40
|
+
* or the initial containing block, i.e. the page corner. The composition
|
|
41
|
+
* documented above would put the show/hide button nowhere near the input.
|
|
42
|
+
*
|
|
43
|
+
* ---
|
|
44
|
+
*
|
|
45
|
+
* **Stability.** Radix ships this primitive as `unstable_PasswordToggleField`
|
|
46
|
+
* and documents its API as subject to change; the underlying
|
|
47
|
+
* `@radix-ui/react-password-toggle-field` package is still on `0.1.x`. It is
|
|
48
|
+
* exported here under its stable-looking name for ergonomics, but it is the one
|
|
49
|
+
* component in this package whose props may change in a minor release. Pin the
|
|
50
|
+
* package if that is unacceptable, or compose `Input` + `Button` yourself.
|
|
51
|
+
*
|
|
52
|
+
* @stability Experimental
|
|
53
|
+
*/
|
|
54
|
+
declare function PasswordToggleField({ className, testID, children, ...props }: PasswordToggleFieldProps): React.JSX.Element;
|
|
55
|
+
declare namespace PasswordToggleField {
|
|
56
|
+
var displayName: string;
|
|
57
|
+
}
|
|
58
|
+
interface PasswordToggleFieldInputProps extends React.ComponentPropsWithoutRef<typeof unstable_PasswordToggleField.Input> {
|
|
59
|
+
/** Stable test/automation selector (emitted as `data-testid`). */
|
|
60
|
+
testID?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* PasswordToggleFieldInput — the field itself.
|
|
64
|
+
*
|
|
65
|
+
* Styling matches `Input`, with right padding reserved for the toggle so the
|
|
66
|
+
* button never sits on top of the text. Radix owns `type`, which is why it is
|
|
67
|
+
* absent from the props: it is derived from the field's visibility state and
|
|
68
|
+
* a caller-supplied value would fight it.
|
|
69
|
+
*
|
|
70
|
+
* @stability Experimental
|
|
71
|
+
*/
|
|
72
|
+
declare const PasswordToggleFieldInput: React.ForwardRefExoticComponent<PasswordToggleFieldInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
73
|
+
interface PasswordToggleFieldToggleProps extends React.ComponentPropsWithoutRef<typeof unstable_PasswordToggleField.Toggle> {
|
|
74
|
+
/** Stable test/automation selector (emitted as `data-testid`). */
|
|
75
|
+
testID?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* PasswordToggleFieldToggle — the show/hide button.
|
|
79
|
+
*
|
|
80
|
+
* Positioned `absolute` against the `relative` box that `PasswordToggleField`
|
|
81
|
+
* renders — which is why that box exists; see the root's docs. Keep this
|
|
82
|
+
* component inside a `PasswordToggleField`: positioning it against an
|
|
83
|
+
* arbitrary ancestor is not a supported arrangement.
|
|
84
|
+
*
|
|
85
|
+
* Its accessible name comes from Radix ("Show password" / "Hide password",
|
|
86
|
+
* following the current state) unless you provide inner text or an
|
|
87
|
+
* `aria-label`.
|
|
88
|
+
*
|
|
89
|
+
* @stability Experimental
|
|
90
|
+
*/
|
|
91
|
+
declare const PasswordToggleFieldToggle: React.ForwardRefExoticComponent<PasswordToggleFieldToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
92
|
+
type PasswordToggleFieldSlotProps = React.ComponentPropsWithoutRef<typeof unstable_PasswordToggleField.Slot>;
|
|
93
|
+
/**
|
|
94
|
+
* PasswordToggleFieldSlot — renders one of two nodes depending on visibility.
|
|
95
|
+
*
|
|
96
|
+
* Takes either the declarative pair (`visible` / `hidden`) or a `render`
|
|
97
|
+
* callback receiving `{ visible }`. Unstyled by design: it is a switch, not a
|
|
98
|
+
* box, and wrapping it in an element would break the toggle's `[&_svg]` icon
|
|
99
|
+
* sizing.
|
|
100
|
+
*
|
|
101
|
+
* @stability Experimental
|
|
102
|
+
*/
|
|
103
|
+
declare function PasswordToggleFieldSlot(props: PasswordToggleFieldSlotProps): React.JSX.Element;
|
|
104
|
+
declare namespace PasswordToggleFieldSlot {
|
|
105
|
+
var displayName: string;
|
|
106
|
+
}
|
|
107
|
+
interface PasswordToggleFieldIconProps extends React.ComponentPropsWithoutRef<typeof unstable_PasswordToggleField.Icon> {
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* PasswordToggleFieldIcon — the SVG-level variant of `PasswordToggleFieldSlot`.
|
|
111
|
+
*
|
|
112
|
+
* Swaps the icon's inner content while keeping ONE `<svg>` element mounted, so
|
|
113
|
+
* a CSS transition on the glyph survives the toggle instead of being restarted
|
|
114
|
+
* by a remount.
|
|
115
|
+
*
|
|
116
|
+
* @stability Experimental
|
|
117
|
+
*/
|
|
118
|
+
declare const PasswordToggleFieldIcon: React.ForwardRefExoticComponent<PasswordToggleFieldIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
119
|
+
|
|
120
|
+
export { PasswordToggleField, PasswordToggleFieldIcon, type PasswordToggleFieldIconProps, PasswordToggleFieldInput, type PasswordToggleFieldInputProps, type PasswordToggleFieldProps, PasswordToggleFieldSlot, type PasswordToggleFieldSlotProps, PasswordToggleFieldToggle, type PasswordToggleFieldToggleProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { PasswordToggleField, PasswordToggleFieldIcon, PasswordToggleFieldInput, PasswordToggleFieldSlot, PasswordToggleFieldToggle } from '../../chunk-SRIT4NFQ.js';
|
|
2
|
+
import '../../chunk-NZ5WBA4R.js';
|
|
3
|
+
//# sourceMappingURL=password-toggle-field.js.map
|
|
4
|
+
//# sourceMappingURL=password-toggle-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"password-toggle-field.js"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Popover as Popover$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
declare const Popover: React.FC<
|
|
5
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<
|
|
6
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<
|
|
4
|
+
declare const Popover: React.FC<Popover$1.PopoverProps>;
|
|
5
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<Popover$1.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<Popover$1.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
|
|
8
8
|
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Popover, PopoverContent, PopoverTrigger } from '../../chunk-
|
|
1
|
+
export { Popover, PopoverContent, PopoverTrigger } from '../../chunk-22XB3Q6H.js';
|
|
2
2
|
import '../../chunk-NZ5WBA4R.js';
|
|
3
3
|
//# sourceMappingURL=popover.js.map
|
|
4
4
|
//# sourceMappingURL=popover.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
|
|
4
3
|
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
value?: number;
|
|
6
5
|
}
|
|
7
|
-
declare function Progress({ className, value, ...props }: ProgressProps):
|
|
6
|
+
declare function Progress({ className, value, ...props }: ProgressProps): React.JSX.Element;
|
|
8
7
|
|
|
9
8
|
export { Progress };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { RadioGroup as RadioGroup$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<
|
|
5
|
-
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<
|
|
4
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroup$1.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroup$1.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
|
|
7
7
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
4
3
|
|
|
5
|
-
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) =>
|
|
6
|
-
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLSpanElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement |
|
|
4
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
5
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLSpanElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLFormElement | HTMLMapElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
7
6
|
className?: string | undefined;
|
|
8
7
|
collapsedSize?: number | undefined;
|
|
9
8
|
collapsible?: boolean | undefined;
|
|
@@ -22,6 +21,6 @@ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAtt
|
|
|
22
21
|
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
23
22
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
24
23
|
withHandle?: boolean;
|
|
25
|
-
}) =>
|
|
24
|
+
}) => React.JSX.Element;
|
|
26
25
|
|
|
27
26
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -1,9 +1,66 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import { ScrollArea as ScrollArea$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
interface ScrollAreaProps extends React.
|
|
4
|
+
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Root> {
|
|
5
|
+
/**
|
|
6
|
+
* Which axes get a scrollbar. `"vertical"` (the default) also clips
|
|
7
|
+
* horizontal overflow, `"horizontal"` clips vertical overflow, `"both"`
|
|
8
|
+
* scrolls either way — the same meaning the `overflow-*` utilities this
|
|
9
|
+
* replaced had, because Radix's viewport derives `overflow-x`/`overflow-y`
|
|
10
|
+
* from which scrollbars are mounted.
|
|
11
|
+
*/
|
|
5
12
|
orientation?: "vertical" | "horizontal" | "both";
|
|
13
|
+
/**
|
|
14
|
+
* Props for the inner viewport — the element that actually scrolls.
|
|
15
|
+
*
|
|
16
|
+
* The root that this component's `ref`, `className` and remaining props land
|
|
17
|
+
* on is `overflow: hidden`; scrolling happens one level in. `onScroll`,
|
|
18
|
+
* `onScrollCapture` and `nonce` are routed to the viewport automatically
|
|
19
|
+
* because they have no other correct destination. Anything else that must
|
|
20
|
+
* address the scroller specifically — a `ref` for programmatic `scrollTop`, a
|
|
21
|
+
* `tabIndex`, an `id`, `aria-*` — goes here. Values passed here win over the
|
|
22
|
+
* automatically routed ones.
|
|
23
|
+
*/
|
|
24
|
+
viewportProps?: React.ComponentPropsWithRef<typeof ScrollArea$1.Viewport>;
|
|
6
25
|
}
|
|
7
|
-
|
|
26
|
+
/**
|
|
27
|
+
* ScrollArea — a scroll container with a consistent, styled scrollbar.
|
|
28
|
+
*
|
|
29
|
+
* Backed by Radix `ScrollArea`. The hand-rolled version was a single
|
|
30
|
+
* `overflow-auto` div plus a stack of `::-webkit-scrollbar` pseudo-element
|
|
31
|
+
* rules, which is a WebKit-only vocabulary: Firefox ignored every one of them
|
|
32
|
+
* and rendered the OS scrollbar instead, so the "design system scrollbar" was
|
|
33
|
+
* a Chrome/Safari-only promise. Radix hides the native scrollbar and renders a
|
|
34
|
+
* real element in its place, so the same thumb appears in every browser, can
|
|
35
|
+
* be dragged, and participates in the same hover/transition styling as the
|
|
36
|
+
* rest of the system.
|
|
37
|
+
*
|
|
38
|
+
* `type` defaults to `"auto"` — scrollbar present exactly while the content
|
|
39
|
+
* overflows — because that is what `overflow-auto` did. Radix's own default is
|
|
40
|
+
* `"hover"`; pass `type` explicitly for `"hover"`, `"always"` or `"scroll"`.
|
|
41
|
+
*
|
|
42
|
+
* NOTE ON PROP DESTINATIONS. This used to be one element; it is now a root plus
|
|
43
|
+
* an inner viewport, and the root does not scroll. Three props therefore have to
|
|
44
|
+
* be routed inward rather than spread onto the root with the rest, because for
|
|
45
|
+
* them the root is not merely a different element — it is an element on which
|
|
46
|
+
* they do nothing at all, silently:
|
|
47
|
+
*
|
|
48
|
+
* - `onScroll` / `onScrollCapture` — `scroll` events do not bubble, so a
|
|
49
|
+
* handler on the root would never fire once. Infinite-loading and
|
|
50
|
+
* scroll-position UI would break with no error.
|
|
51
|
+
* - `nonce` — Radix injects its scrollbar-hiding `<style>` from the viewport
|
|
52
|
+
* and only reads a nonce given to that component. Under a strict
|
|
53
|
+
* `style-src 'nonce-…'` policy the rule is blocked and the native scrollbar
|
|
54
|
+
* shows up alongside the custom one.
|
|
55
|
+
*
|
|
56
|
+
* Everything else keeps landing on the root, which is the component's box and
|
|
57
|
+
* the right owner for `className`, `style`, `id`, `role`, `aria-*`, `data-*`
|
|
58
|
+
* and bubbling handlers. `viewportProps` is the escape hatch for the remainder
|
|
59
|
+
* — most importantly a `ref`, since `ref` on this component addresses the root
|
|
60
|
+
* and setting `scrollTop` there does nothing.
|
|
61
|
+
*
|
|
62
|
+
* @stability Stable
|
|
63
|
+
*/
|
|
64
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
65
|
|
|
9
66
|
export { ScrollArea };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Select as Select$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
declare const Select: React.FC<
|
|
5
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<
|
|
6
|
-
declare const SelectValue: React.ForwardRefExoticComponent<
|
|
7
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<
|
|
8
|
-
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<
|
|
9
|
-
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<
|
|
10
|
-
declare const SelectContent: React.ForwardRefExoticComponent<Omit<
|
|
11
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<
|
|
4
|
+
declare const Select: React.FC<Select$1.SelectProps>;
|
|
5
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<Select$1.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const SelectValue: React.ForwardRefExoticComponent<Select$1.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<Select$1.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<Select$1.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<Select$1.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<Select$1.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<Select$1.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
|
|
13
13
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue } from '../../chunk-
|
|
1
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue } from '../../chunk-FK42ZGGV.js';
|
|
2
2
|
import '../../chunk-NZ5WBA4R.js';
|
|
3
3
|
//# sourceMappingURL=select.js.map
|
|
4
4
|
//# sourceMappingURL=select.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
|
|
4
3
|
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
orientation?: "horizontal" | "vertical";
|
|
6
5
|
decorative?: boolean;
|
|
7
6
|
}
|
|
8
|
-
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps):
|
|
7
|
+
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): React.JSX.Element;
|
|
9
8
|
|
|
10
9
|
export { Separator };
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
import
|
|
3
|
+
import { Dialog } from 'radix-ui';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
|
|
7
|
-
declare const Sheet: React.FC<
|
|
8
|
-
declare const SheetTrigger: React.ForwardRefExoticComponent<
|
|
9
|
-
declare const SheetClose: React.ForwardRefExoticComponent<
|
|
10
|
-
declare const SheetPortal: React.FC<
|
|
11
|
-
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<
|
|
6
|
+
declare const Sheet: React.FC<Dialog.DialogProps>;
|
|
7
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const SheetClose: React.ForwardRefExoticComponent<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const SheetPortal: React.FC<Dialog.DialogPortalProps>;
|
|
10
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<Dialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
11
|
declare const sheetVariants: (props?: ({
|
|
13
12
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
14
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof
|
|
14
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof Dialog.Content>, VariantProps<typeof sheetVariants> {
|
|
15
|
+
/** Show the built-in top-right close affordance. Default true. Mirrors `DialogContent`'s `showCloseButton` — set false when a composing consumer (e.g. `DetailPanel`) renders its own close control. */
|
|
16
|
+
showCloseButton?: boolean;
|
|
16
17
|
}
|
|
17
18
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
declare const SheetHeader: {
|
|
19
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
20
21
|
displayName: string;
|
|
21
22
|
};
|
|
22
23
|
declare const SheetFooter: {
|
|
23
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
24
25
|
displayName: string;
|
|
25
26
|
};
|
|
26
|
-
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<
|
|
27
|
-
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<
|
|
27
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<Dialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
28
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<Dialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
28
29
|
|
|
29
30
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from '../../chunk-
|
|
1
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from '../../chunk-XCGZPFT7.js';
|
|
2
2
|
import '../../chunk-NZ5WBA4R.js';
|
|
3
3
|
//# sourceMappingURL=sheet.js.map
|
|
4
4
|
//# sourceMappingURL=sheet.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
|
|
4
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
3
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
5
4
|
|
|
6
5
|
export { Skeleton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Slider as Slider$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
declare const Slider: React.ForwardRefExoticComponent<Omit<
|
|
4
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<Slider$1.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
|
|
6
6
|
export { Slider };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
4
3
|
export { toast } from 'sonner';
|
|
5
4
|
|
|
6
5
|
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
7
|
-
declare const Toaster: ({ className, ...props }: ToasterProps) =>
|
|
6
|
+
declare const Toaster: ({ className, ...props }: ToasterProps) => React.JSX.Element;
|
|
8
7
|
|
|
9
8
|
export { Toaster };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
|
|
4
3
|
interface SpinnerProps extends React.HTMLAttributes<SVGSVGElement> {
|
|
5
4
|
size?: "sm" | "default" | "lg";
|
|
6
5
|
}
|
|
7
|
-
declare function Spinner({ className, size, ...props }: SpinnerProps):
|
|
6
|
+
declare function Spinner({ className, size, ...props }: SpinnerProps): React.JSX.Element;
|
|
8
7
|
|
|
9
8
|
export { Spinner, type SpinnerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { Switch as Switch$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<
|
|
4
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<Switch$1.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
|
|
6
6
|
export { Switch };
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import { Tabs as Tabs$1 } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
interface TabsProps extends React.
|
|
4
|
+
interface TabsProps extends React.ComponentPropsWithoutRef<typeof Tabs$1.Root> {
|
|
5
|
+
/**
|
|
6
|
+
* Required here even though Radix's own `defaultValue` is optional — that is
|
|
7
|
+
* the existing contract, and loosening it is a separate decision.
|
|
8
|
+
*/
|
|
5
9
|
defaultValue: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
onValueChange?: (value: string) => void;
|
|
8
10
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Tabs — a tablist and its panels.
|
|
13
|
+
*
|
|
14
|
+
* Backed by Radix `Tabs`. The hand-rolled version was a React context plus a
|
|
15
|
+
* row of plain `<button>`s: it tracked the selected value correctly and
|
|
16
|
+
* nothing else. Every keyboard and screen-reader affordance the WAI-ARIA tabs
|
|
17
|
+
* pattern asks for was missing — `role="tablist"`/`"tab"`/`"tabpanel"`, the
|
|
18
|
+
* `aria-selected` state, the `aria-controls`/`aria-labelledby` link between a
|
|
19
|
+
* tab and its panel, the roving `tabindex` that makes the whole tablist ONE
|
|
20
|
+
* tab stop instead of N, and Arrow/Home/End navigation between tabs. Radix
|
|
21
|
+
* supplies all of it, plus the selection state the old version already
|
|
22
|
+
* handled.
|
|
23
|
+
*
|
|
24
|
+
* One behavioural note worth knowing: Radix selects on `mousedown` rather than
|
|
25
|
+
* `click`. Pointer users see no difference, but a synthetic `fireEvent.click`
|
|
26
|
+
* on a trigger no longer changes tabs.
|
|
27
|
+
*
|
|
28
|
+
* @stability Stable
|
|
29
|
+
*/
|
|
30
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<Tabs$1.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Tabs$1.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<Tabs$1.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
34
|
|
|
20
35
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from '../../chunk-
|
|
1
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from '../../chunk-VXFYETRK.js';
|
|
2
2
|
import '../../chunk-NZ5WBA4R.js';
|
|
3
3
|
//# sourceMappingURL=tabs.js.map
|
|
4
4
|
//# sourceMappingURL=tabs.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<
|
|
6
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroup$1.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroup$1.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<
|
|
10
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroup$1.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
11
|
variant?: "default" | "outline" | null | undefined;
|
|
12
12
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ToggleGroup, ToggleGroupItem } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { ToggleGroup, ToggleGroupItem } from '../../chunk-NUXW6NPP.js';
|
|
2
|
+
import '../../chunk-C46ITXE4.js';
|
|
3
3
|
import '../../chunk-NZ5WBA4R.js';
|
|
4
4
|
//# sourceMappingURL=toggle-group.js.map
|
|
5
5
|
//# sourceMappingURL=toggle-group.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { Toggle as Toggle$1 } from 'radix-ui';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare const Toggle: React.ForwardRefExoticComponent<Omit<
|
|
10
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<Toggle$1.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
11
|
variant?: "default" | "outline" | null | undefined;
|
|
12
12
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|