@ngrok/mantle 0.90.3 → 0.91.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/accordion.d.ts +3 -5
- package/dist/agent.json +7 -7
- package/dist/{alert-CTAmHdLa.d.ts → alert-BV0VWU2o.d.ts} +5 -7
- package/dist/{alert-xJELJxL4.js → alert-BVQcPzmf.js} +1 -1
- package/dist/alert-center.d.ts +2 -4
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +5 -7
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor.d.ts +2 -6
- package/dist/app-layout.d.ts +3 -7
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +2 -4
- package/dist/area-chart.js +1 -1
- package/dist/{as-child-D23mGo4f.d.ts → as-child-DFxX3U2i.d.ts} +0 -2
- package/dist/avatar.d.ts +2 -4
- package/dist/badge.d.ts +3 -5
- package/dist/bar-chart.d.ts +2 -4
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +2 -6
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only.d.ts +0 -2
- package/dist/{button-BZT5f79d.d.ts → button-BFAvonp1.d.ts} +3 -7
- package/dist/{button-mzUR1U0Y.d.ts → button-BOCRKR5v.d.ts} +3 -7
- package/dist/button-CZ-q7fYv.js +1 -0
- package/dist/button-Cwrv2Mwv.js +1 -0
- package/dist/{button-BRjAW1ec.d.ts → button-Dt9LZMT5.d.ts} +5 -7
- package/dist/{button-BCoI4bhP.d.ts → button-L4exxu_L.d.ts} +0 -2
- package/dist/button.d.ts +4 -4
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +1 -3
- package/dist/card.d.ts +3 -5
- package/dist/centered-layout.d.ts +9 -32
- package/dist/chart-D2LtDZtV.js +2 -0
- package/dist/{chart-23KQ1ZNO.d.ts → chart-ynMysD16.d.ts} +40 -15
- package/dist/checkbox.d.ts +2 -4
- package/dist/{choice-BCiyqLgO.d.ts → choice-BLR0_MeB.d.ts} +3 -5
- package/dist/choice.d.ts +1 -1
- package/dist/{code-block-D5eDP379.d.ts → code-block-Bqw9VyK_.d.ts} +0 -22
- package/dist/code-block.d.ts +4 -12
- package/dist/code-block.js +6 -6
- package/dist/code-block_highlight-utils.d.ts +1 -1
- package/dist/code.d.ts +2 -4
- package/dist/color.d.ts +1 -1
- package/dist/combobox.d.ts +4 -6
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +3 -13
- package/dist/command.js +1 -1
- package/dist/cx.d.ts +0 -6
- package/dist/{data-slot-CChfb_cv.d.ts → data-slot-B-LqAcBB.d.ts} +0 -2
- package/dist/data-table.d.ts +111 -21
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +3 -5
- package/dist/{dialog-C9QGvVNG.js → dialog-D333NTyf.js} +1 -1
- package/dist/{dialog-CgwSNHs1.d.ts → dialog-DedsCsnk.d.ts} +3 -5
- package/dist/{dialog-CZYD3xL-.d.ts → dialog-Dp0QGWwo.d.ts} +0 -2
- package/dist/dialog.d.ts +2 -2
- package/dist/dialog.js +1 -1
- package/dist/{direction-BjU0bPST.d.ts → direction-CpRzTtZh.d.ts} +0 -2
- package/dist/{dropdown-menu-Cef0Cz2B.d.ts → dropdown-menu-ByQQIsQE.d.ts} +2 -4
- package/dist/dropdown-menu.d.ts +1 -2
- package/dist/empty.d.ts +3 -5
- package/dist/{field-7QeiTFwl.d.ts → field-V_gnkcmN.d.ts} +0 -2
- package/dist/field.d.ts +7 -15
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +1 -5
- package/dist/hooks.d.ts +1 -37
- package/dist/hover-card.d.ts +1 -3
- package/dist/{icon-ucVgZeXn.d.ts → icon-ByLVhdYq.d.ts} +2 -4
- package/dist/{icon-D1RY5Tcj.d.ts → icon-CgNqu-fl.d.ts} +0 -2
- package/dist/{icon-r2NvfTWW.d.ts → icon-DXDyhy2N.d.ts} +2 -4
- package/dist/icon.d.ts +3 -3
- package/dist/icons-DykpsXNX.js +1 -0
- package/dist/icons.d.ts +3 -17
- package/dist/icons.js +1 -1
- package/dist/{in-view-Ch5vJtWo.d.ts → in-view-B3nMAzfE.d.ts} +0 -6
- package/dist/{index-DorCusfG.d.ts → index-BZhHLrBi.d.ts} +0 -2
- package/dist/{index-DA4ig3gj.d.ts → index-C6s5cGCr.d.ts} +2 -10
- package/dist/{input-eEKzP3cE.js → input-CpQ6jlpI.js} +1 -1
- package/dist/{input-bbB1tC0h.d.ts → input-Dx5owTCc.d.ts} +2 -6
- package/dist/input.d.ts +3 -7
- package/dist/input.js +1 -1
- package/dist/kbd.d.ts +1 -3
- package/dist/{label-C-KbNls8.d.ts → label-Dn5CPJUj.d.ts} +1 -3
- package/dist/label.d.ts +1 -1
- package/dist/layer-container.d.ts +0 -2
- package/dist/line-chart.d.ts +2 -4
- package/dist/line-chart.js +1 -1
- package/dist/list.d.ts +2 -8
- package/dist/live-region.d.ts +2 -4
- package/dist/llms.txt +4 -4
- package/dist/main.d.ts +1 -3
- package/dist/mantle-dark.css +2 -12
- package/dist/mantle.css +75 -13
- package/dist/media-object.d.ts +2 -4
- package/dist/migrations/0011-eliminate-high-contrast.yml +869 -0
- package/dist/multi-select.d.ts +4 -6
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +3 -5
- package/dist/pagination.d.ts +3 -7
- package/dist/pagination.js +1 -1
- package/dist/{popover-Dvls7-j4.d.ts → popover-BfB2I9G0.d.ts} +1 -3
- package/dist/popover.d.ts +1 -1
- package/dist/progress.d.ts +1 -7
- package/dist/qr-code.d.ts +2 -4
- package/dist/radio-group.d.ts +2 -4
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +5 -8
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click.d.ts +1 -3
- package/dist/scatter-plot.d.ts +2 -4
- package/dist/scatter-plot.js +1 -1
- package/dist/{select-DlohFa54.d.ts → select-CRp_ndSJ.d.ts} +3 -5
- package/dist/select-iMsy6TFv.js +1 -0
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +3 -5
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-BWGjCIl7.d.ts → separator-DNovVsrx.d.ts} +3 -5
- package/dist/separator.d.ts +1 -1
- package/dist/{sheet-CAFS09pT.js → sheet-gMTepUM_.js} +1 -1
- package/dist/sheet.d.ts +3 -5
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +5 -9
- package/dist/sidebar.js +1 -1
- package/dist/{skeleton-zfqoDAxT.js → skeleton-DBpI-ko5.js} +1 -1
- package/dist/skeleton.d.ts +2 -4
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +1 -3
- package/dist/slider.d.ts +1 -3
- package/dist/{slot-Q996Hqk9.d.ts → slot-C0OCJjdJ.d.ts} +2 -4
- package/dist/slot.d.ts +1 -1
- package/dist/split-button.d.ts +5 -7
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +2 -4
- package/dist/switch.d.ts +2 -4
- package/dist/{table-BhzITa19.d.ts → table-vT6Okwfa.d.ts} +1 -3
- package/dist/table.d.ts +1 -1
- package/dist/tabs.d.ts +3 -5
- package/dist/text-area.d.ts +2 -4
- package/dist/text-area.js +1 -1
- package/dist/theme-BD0ly6jo.js +1 -0
- package/dist/theme-switcher.d.ts +67 -213
- package/dist/theme-switcher.js +1 -1
- package/dist/{theme-6OxNhf6l.d.ts → theme-w1CrMM-x.d.ts} +3 -5
- package/dist/theme.d.ts +78 -177
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +4 -6
- package/dist/toast.js +1 -1
- package/dist/{tooltip-CngH7Kl6.d.ts → tooltip-NcLIeBy5.d.ts} +1 -3
- package/dist/tooltip.d.ts +1 -1
- package/dist/truncated-text.d.ts +2 -4
- package/dist/types.d.ts +3 -3
- package/dist/utils.d.ts +2 -4
- package/dist/visually-hidden.d.ts +2 -4
- package/dist/well.d.ts +3 -5
- package/dist/{with-style-props-Dq5Vntqy.d.ts → with-style-props-CuT30s0W.d.ts} +0 -2
- package/package.json +2 -10
- package/dist/button-Bkl_QYpp.js +0 -1
- package/dist/button-b2HKEIE2.js +0 -1
- package/dist/chart-BfJ835dr.js +0 -2
- package/dist/dropdown-menu-DMA8dGxZ.d.ts +0 -1
- package/dist/icons-CW9lV9E1.js +0 -1
- package/dist/mantle-dark-high-contrast.css +0 -354
- package/dist/mantle-light-high-contrast.css +0 -353
- package/dist/select-Os5GVejP.js +0 -1
- package/dist/theme-Dzem-qRB.js +0 -1
package/dist/hooks.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as MarginType, o as useComposedRefs, s as copyToClipboard } from "./in-view-
|
|
1
|
+
import { n as MarginType, o as useComposedRefs, s as copyToClipboard } from "./in-view-B3nMAzfE.js";
|
|
2
2
|
import { RefObject, useLayoutEffect } from "react";
|
|
3
|
-
//#region src/hooks/use-breakpoint.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Tailwind CSS breakpoints in descending order (largest → smallest).
|
|
6
5
|
*
|
|
@@ -102,8 +101,6 @@ declare function useBreakpoint(): Breakpoint;
|
|
|
102
101
|
* const isBelowMd = useIsBelowBreakpoint("md");
|
|
103
102
|
*/
|
|
104
103
|
declare function useIsBelowBreakpoint(breakpoint: TailwindBreakpoint): boolean;
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/hooks/use-callback-ref.d.ts
|
|
107
104
|
/**
|
|
108
105
|
* Returns a memoized callback that always invokes the latest version of
|
|
109
106
|
* `callback`, while preserving a stable function identity across renders.
|
|
@@ -133,8 +130,6 @@ declare function useIsBelowBreakpoint(breakpoint: TailwindBreakpoint): boolean;
|
|
|
133
130
|
* return <MemoizedList onSelect={onSelect} />;
|
|
134
131
|
*/
|
|
135
132
|
declare function useCallbackRef<T extends (...args: never[]) => unknown>(callback: T | undefined): T;
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/hooks/use-copy-to-clipboard.d.ts
|
|
138
133
|
/**
|
|
139
134
|
* React hook that returns a stable async function for copying a string to
|
|
140
135
|
* the system clipboard.
|
|
@@ -166,8 +161,6 @@ declare function useCallbackRef<T extends (...args: never[]) => unknown>(callbac
|
|
|
166
161
|
* return <button onClick={handleCopy}>Copy token</button>;
|
|
167
162
|
*/
|
|
168
163
|
declare function useCopyToClipboard(): typeof copyToClipboard;
|
|
169
|
-
//#endregion
|
|
170
|
-
//#region src/hooks/use-debounce.d.ts
|
|
171
164
|
/**
|
|
172
165
|
* Options for {@link useDebounce}.
|
|
173
166
|
*/
|
|
@@ -203,8 +196,6 @@ type Options$1 = {
|
|
|
203
196
|
* ```
|
|
204
197
|
*/
|
|
205
198
|
declare function useDebounce<T>(value: T, options: Options$1): T;
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region src/hooks/use-debounced-callback.d.ts
|
|
208
199
|
/**
|
|
209
200
|
* Options for {@link useDebouncedCallback}.
|
|
210
201
|
*/
|
|
@@ -255,8 +246,6 @@ type Options = {
|
|
|
255
246
|
* );
|
|
256
247
|
*/
|
|
257
248
|
declare function useDebouncedCallback<T extends (...args: unknown[]) => unknown>(callbackFn: T, options: Options): (...args: Parameters<T>) => void;
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region src/hooks/use-focus-trap.d.ts
|
|
260
249
|
/**
|
|
261
250
|
* The options for {@link useFocusTrap}.
|
|
262
251
|
*
|
|
@@ -315,8 +304,6 @@ type UseFocusTrapOptions = {
|
|
|
315
304
|
* ```
|
|
316
305
|
*/
|
|
317
306
|
declare function useFocusTrap(ref: RefObject<HTMLElement | null>, { active }?: UseFocusTrapOptions): void;
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region src/hooks/use-inert-siblings.d.ts
|
|
320
307
|
/**
|
|
321
308
|
* The options for {@link useInertSiblings}.
|
|
322
309
|
*
|
|
@@ -370,8 +357,6 @@ type UseInertSiblingsOptions = {
|
|
|
370
357
|
* ```
|
|
371
358
|
*/
|
|
372
359
|
declare function useInertSiblings(ref: RefObject<HTMLElement | null>, { active }?: UseInertSiblingsOptions): void;
|
|
373
|
-
//#endregion
|
|
374
|
-
//#region src/hooks/use-is-hydrated.d.ts
|
|
375
360
|
/**
|
|
376
361
|
* Returns `false` during server rendering and the initial hydration render,
|
|
377
362
|
* then `true` on the client — without hydration mismatches, because React
|
|
@@ -397,8 +382,6 @@ declare function useInertSiblings(ref: RefObject<HTMLElement | null>, { active }
|
|
|
397
382
|
* ```
|
|
398
383
|
*/
|
|
399
384
|
declare function useIsHydrated(): boolean;
|
|
400
|
-
//#endregion
|
|
401
|
-
//#region src/hooks/use-is-hydrated-after-paint.d.ts
|
|
402
385
|
/**
|
|
403
386
|
* Returns `false` on the server, in the hydration render, and in the mount
|
|
404
387
|
* commit, then `true` from the next animation frame.
|
|
@@ -428,8 +411,6 @@ declare function useIsHydrated(): boolean;
|
|
|
428
411
|
* ```
|
|
429
412
|
*/
|
|
430
413
|
declare function useIsHydratedAfterPaint(): boolean;
|
|
431
|
-
//#endregion
|
|
432
|
-
//#region src/hooks/use-isomorphic-layout-effect.d.ts
|
|
433
414
|
/**
|
|
434
415
|
* A drop-in replacement for `useLayoutEffect` that does not warn during
|
|
435
416
|
* server-side rendering.
|
|
@@ -463,8 +444,6 @@ declare function useIsHydratedAfterPaint(): boolean;
|
|
|
463
444
|
* return <div ref={ref}>Width: {width}</div>;
|
|
464
445
|
*/
|
|
465
446
|
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
466
|
-
//#endregion
|
|
467
|
-
//#region src/hooks/use-local-storage.d.ts
|
|
468
447
|
/**
|
|
469
448
|
* SSR-safe `useSyncExternalStore`-backed localStorage string state.
|
|
470
449
|
*
|
|
@@ -503,8 +482,6 @@ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
|
503
482
|
* ```
|
|
504
483
|
*/
|
|
505
484
|
declare function useLocalStorage(key: string, defaultValue: string): readonly [value: string, setValue: (next: string) => void];
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region src/hooks/use-matches-media-query.d.ts
|
|
508
485
|
/**
|
|
509
486
|
* React hook that subscribes to a CSS media query and returns whether it
|
|
510
487
|
* currently matches, re-rendering whenever the result changes.
|
|
@@ -534,8 +511,6 @@ declare function useLocalStorage(key: string, defaultValue: string): readonly [v
|
|
|
534
511
|
* return isPortrait ? <PortraitLayout /> : <LandscapeLayout />;
|
|
535
512
|
*/
|
|
536
513
|
export declare function useMatchesMediaQuery(query: string): boolean;
|
|
537
|
-
//#endregion
|
|
538
|
-
//#region src/hooks/use-session-storage.d.ts
|
|
539
514
|
/**
|
|
540
515
|
* SSR-safe `useSyncExternalStore`-backed sessionStorage string state. The
|
|
541
516
|
* per-tab sibling of {@link useLocalStorage}, with the same contract:
|
|
@@ -570,8 +545,6 @@ export declare function useMatchesMediaQuery(query: string): boolean;
|
|
|
570
545
|
* ```
|
|
571
546
|
*/
|
|
572
547
|
declare function useSessionStorage(key: string, defaultValue: string): readonly [value: string, setValue: (next: string) => void];
|
|
573
|
-
//#endregion
|
|
574
|
-
//#region src/hooks/use-prefers-reduced-motion.d.ts
|
|
575
548
|
/**
|
|
576
549
|
* Imperatively reads the current `prefers-reduced-motion` preference once at
|
|
577
550
|
* the time of the call.
|
|
@@ -628,8 +601,6 @@ export declare function getPrefersReducedMotion(): boolean;
|
|
|
628
601
|
* return <Carousel autoplay={!prefersReducedMotion} />;
|
|
629
602
|
*/
|
|
630
603
|
export declare function usePrefersReducedMotion(): boolean;
|
|
631
|
-
//#endregion
|
|
632
|
-
//#region src/hooks/use-scroll-behavior.d.ts
|
|
633
604
|
/**
|
|
634
605
|
* `scroll-behavior` values:
|
|
635
606
|
*
|
|
@@ -677,8 +648,6 @@ type ScrollBehavior = "auto" | "smooth";
|
|
|
677
648
|
* @see CSS `scroll-behavior` property (values: `"auto"`, `"smooth"`).
|
|
678
649
|
*/
|
|
679
650
|
export declare function useScrollBehavior(): ScrollBehavior;
|
|
680
|
-
//#endregion
|
|
681
|
-
//#region src/hooks/use-swipe-to-dismiss.d.ts
|
|
682
651
|
/**
|
|
683
652
|
* The direction a swipe travels to dismiss the target: the edge it slides
|
|
684
653
|
* off. A panel on the right edge of the page dismisses to the `"right"`.
|
|
@@ -812,8 +781,6 @@ type UseSwipeToDismissOptions = {
|
|
|
812
781
|
* ```
|
|
813
782
|
*/
|
|
814
783
|
declare function useSwipeToDismiss(handle: RefObject<HTMLElement | null>, options: UseSwipeToDismissOptions): void;
|
|
815
|
-
//#endregion
|
|
816
|
-
//#region src/hooks/use-in-view.d.ts
|
|
817
784
|
/**
|
|
818
785
|
* Options for the `useInView` hook.
|
|
819
786
|
*/
|
|
@@ -881,8 +848,6 @@ type UseInViewOptions = {
|
|
|
881
848
|
* const isInView = useInView(ref, { amount: 0.5 });
|
|
882
849
|
*/
|
|
883
850
|
declare function useInView(ref: RefObject<Element | null>, { root, margin, amount, once, initial }?: UseInViewOptions): boolean;
|
|
884
|
-
//#endregion
|
|
885
|
-
//#region src/hooks/use-undo-redo.d.ts
|
|
886
851
|
type UseUndoRedoReturn<T> = {
|
|
887
852
|
/** Whether there are actions to undo. */
|
|
888
853
|
canUndo: boolean;
|
|
@@ -964,5 +929,4 @@ type UseUndoRedoReturn<T> = {
|
|
|
964
929
|
* );
|
|
965
930
|
*/
|
|
966
931
|
declare function useUndoRedo<T extends NonNullable<unknown>>(): UseUndoRedoReturn<T>;
|
|
967
|
-
//#endregion
|
|
968
932
|
export { type Breakpoint, type SwipeDirection, type SwipeProperty, type TailwindBreakpoint, type UseFocusTrapOptions, type UseInViewOptions, type UseInertSiblingsOptions, type UseSwipeToDismissOptions, type UseUndoRedoReturn, breakpoints, useBreakpoint, useCallbackRef, useComposedRefs, useCopyToClipboard, useDebounce, useDebouncedCallback, useFocusTrap, useInView, useInertSiblings, useIsBelowBreakpoint, useIsHydrated, useIsHydratedAfterPaint, useLocalStorage, useSessionStorage, useSwipeToDismiss, useUndoRedo };
|
package/dist/hover-card.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { Arrow, Content, Portal, Root, Trigger } from "@radix-ui/react-hover-card";
|
|
4
|
-
//#region src/components/hover-card/hover-card.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* A floating card that appears when a user hovers over a trigger element.
|
|
7
6
|
* This is the root, stateful component that manages the open/closed state of the hover card.
|
|
@@ -316,5 +315,4 @@ declare const HoverCard: {
|
|
|
316
315
|
*/
|
|
317
316
|
readonly Trigger: typeof Trigger$1;
|
|
318
317
|
};
|
|
319
|
-
//#endregion
|
|
320
318
|
export { HoverCard };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
2
|
-
import { t as SvgAttributes } from "./icon-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
+
import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
//#region src/components/icon/icon.d.ts
|
|
5
4
|
type IconProps = Omit<SvgAttributes, "children"> & {
|
|
6
5
|
/**
|
|
7
6
|
* A single SVG icon element.
|
|
@@ -31,5 +30,4 @@ type IconProps = Omit<SvgAttributes, "children"> & {
|
|
|
31
30
|
* ```
|
|
32
31
|
*/
|
|
33
32
|
declare const Icon: ({ "data-slot": dataSlot, className, style, svg, ref, ...props }: IconProps) => import("react").JSX.Element;
|
|
34
|
-
//#endregion
|
|
35
33
|
export { IconProps as n, Icon as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
//#region src/components/icon/types.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Props accepted by SVG-rendering primitives in mantle (`Icon`, `SvgOnly`, and
|
|
5
4
|
* icon-bearing parts of other components). Extends the standard React `<svg>`
|
|
@@ -24,5 +23,4 @@ type SvgAttributes = ComponentProps<"svg"> & {
|
|
|
24
23
|
*/
|
|
25
24
|
"data-slot"?: string;
|
|
26
25
|
};
|
|
27
|
-
//#endregion
|
|
28
26
|
export { SvgAttributes as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
2
|
-
import { t as SvgAttributes } from "./icon-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
+
import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
//#region src/components/icon/svg-only.d.ts
|
|
5
4
|
type SvgOnlyProps = Omit<SvgAttributes, "children"> & {
|
|
6
5
|
/**
|
|
7
6
|
* A single SVG icon element.
|
|
@@ -39,5 +38,4 @@ type NamedSvgProps = SvgAttributes & {
|
|
|
39
38
|
* ```
|
|
40
39
|
*/
|
|
41
40
|
declare const SvgOnly: ({ "data-slot": dataSlot, className, style, svg, ref, ...props }: SvgOnlyProps) => import("react").ReactElement<NamedSvgProps, string | import("react").JSXElementConstructor<any>>;
|
|
42
|
-
//#endregion
|
|
43
41
|
export { SvgOnlyProps as n, SvgOnly as t };
|
package/dist/icon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SvgAttributes } from "./icon-
|
|
2
|
-
import { n as IconProps, t as Icon } from "./icon-
|
|
3
|
-
import { n as SvgOnlyProps, t as SvgOnly } from "./icon-
|
|
1
|
+
import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
|
|
2
|
+
import { n as IconProps, t as Icon } from "./icon-ByLVhdYq.js";
|
|
3
|
+
import { n as SvgOnlyProps, t as SvgOnly } from "./icon-DXDyhy2N.js";
|
|
4
4
|
export { Icon, type IconProps, type SvgAttributes, SvgOnly, type SvgOnlyProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./theme-BD0ly6jo.js";import{c as t}from"react/compiler-runtime";import{jsx as n}from"react/jsx-runtime";import{DesktopIcon as r}from"@phosphor-icons/react/Desktop";import{MoonIcon as i}from"@phosphor-icons/react/Moon";import{SunIcon as a}from"@phosphor-icons/react/Sun";function o(r){let i=t(3),a=e(),o;return i[0]!==a||i[1]!==r?(o=/* @__PURE__ */ n(s,{theme:a,...r}),i[0]=a,i[1]=r,i[2]=o):o=i[2],o}function s(e){let o=t(9),s,c;switch(o[0]===e?(s=o[1],c=o[2]):({theme:c,...s}=e,o[0]=e,o[1]=s,o[2]=c),c){case`system`:{let e;return o[3]===s?e=o[4]:(e=/* @__PURE__ */ n(r,{...s}),o[3]=s,o[4]=e),e}case`light`:{let e;return o[5]===s?e=o[6]:(e=/* @__PURE__ */ n(a,{...s}),o[5]=s,o[6]=e),e}case`dark`:{let e;return o[7]===s?e=o[8]:(e=/* @__PURE__ */ n(i,{...s}),o[7]=s,o[8]=e),e}}}export{s as n,o as t};
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as SvgAttributes } from "./icon-
|
|
2
|
-
import { a as AlphanumericSortingDirection, c as TimeSortingDirection, o as SortingDirection, s as SortingMode } from "./direction-
|
|
3
|
-
import { i as Theme } from "./theme-
|
|
1
|
+
import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
|
|
2
|
+
import { a as AlphanumericSortingDirection, c as TimeSortingDirection, o as SortingDirection, s as SortingMode } from "./direction-CpRzTtZh.js";
|
|
3
|
+
import { i as Theme } from "./theme-w1CrMM-x.js";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
|
-
//#region src/components/icons/sort.d.ts
|
|
6
5
|
type Props = SvgAttributes & ({
|
|
7
6
|
mode: Extract<SortingMode, "alphanumeric">;
|
|
8
7
|
/**
|
|
@@ -33,8 +32,6 @@ type Props = SvgAttributes & ({
|
|
|
33
32
|
* ```
|
|
34
33
|
*/
|
|
35
34
|
declare const SortIcon: ({ mode, direction, ...props }: Props) => import("react").JSX.Element;
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/components/icons/traffic-policy-file.d.ts
|
|
38
35
|
/**
|
|
39
36
|
* An icon representing a traffic policy file.
|
|
40
37
|
*
|
|
@@ -46,14 +43,10 @@ declare const SortIcon: ({ mode, direction, ...props }: Props) => import("react"
|
|
|
46
43
|
* ```
|
|
47
44
|
*/
|
|
48
45
|
declare function TrafficPolicyFileIcon(props: SvgAttributes): import("react").JSX.Element;
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/components/icons/theme.d.ts
|
|
51
46
|
/**
|
|
52
47
|
* An icon that automatically adapts to the current applied theme.
|
|
53
48
|
* - `light`: SunIcon
|
|
54
49
|
* - `dark`: MoonIcon
|
|
55
|
-
* - `light-high-contrast`: SunIcon (fill)
|
|
56
|
-
* - `dark-high-contrast`: MoonIcon (fill)
|
|
57
50
|
*
|
|
58
51
|
* @see https://mantle.ngrok.com/components/data-display/icons
|
|
59
52
|
*
|
|
@@ -72,8 +65,6 @@ type ThemeIconProps = SvgAttributes & {
|
|
|
72
65
|
* - `system`: DesktopIcon
|
|
73
66
|
* - `light`: SunIcon
|
|
74
67
|
* - `dark`: MoonIcon
|
|
75
|
-
* - `light-high-contrast`: SunIcon (fill)
|
|
76
|
-
* - `dark-high-contrast`: MoonIcon (fill)
|
|
77
68
|
*
|
|
78
69
|
* @see https://mantle.ngrok.com/components/data-display/icons
|
|
79
70
|
*
|
|
@@ -83,8 +74,6 @@ type ThemeIconProps = SvgAttributes & {
|
|
|
83
74
|
* ```
|
|
84
75
|
*/
|
|
85
76
|
declare function ThemeIcon({ theme, ...props }: ThemeIconProps): import("react").JSX.Element;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/components/icons/types.d.ts
|
|
88
77
|
/**
|
|
89
78
|
* Props for an inline svg icon. The icon owns its `viewBox`, `fill`, and
|
|
90
79
|
* paths, and fills with `currentColor`, so the `color` CSS property sets the
|
|
@@ -100,8 +89,6 @@ declare function ThemeIcon({ theme, ...props }: ThemeIconProps): import("react")
|
|
|
100
89
|
* ```
|
|
101
90
|
*/
|
|
102
91
|
type InlineIconProps = Omit<ComponentProps<"svg">, "xmlns" | "fill" | "viewBox" | "color" | "children">;
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/components/icons/ngrok.d.ts
|
|
105
92
|
/**
|
|
106
93
|
* An inline svg icon that renders the ngrok wordmark logo. The `color` CSS property sets the fill.
|
|
107
94
|
*
|
|
@@ -124,5 +111,4 @@ declare function NgrokWordmarkIcon(props: InlineIconProps): import("react").JSX.
|
|
|
124
111
|
* ```
|
|
125
112
|
*/
|
|
126
113
|
declare function NgrokLettermarkIcon(props: InlineIconProps): import("react").JSX.Element;
|
|
127
|
-
//#endregion
|
|
128
114
|
export { AutoThemeIcon, type InlineIconProps, NgrokLettermarkIcon, NgrokWordmarkIcon, SortIcon, ThemeIcon, TrafficPolicyFileIcon };
|
package/dist/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./icons-CSwTVV2m.js";import{t}from"./icons-CDLz5lpI.js";import{n,t as r}from"./icons-
|
|
1
|
+
import{t as e}from"./icons-CSwTVV2m.js";import{t}from"./icons-CDLz5lpI.js";import{n,t as r}from"./icons-DykpsXNX.js";import{c as i}from"react/compiler-runtime";import{jsx as a}from"react/jsx-runtime";function o(e){let t=i(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=/* @__PURE__ */ a(`path`,{d:`M32.272 12.011c-1.298-1.466-2.904-2.205-4.812-2.205-1.176 0-2.26.233-3.255.7a7.995 7.995 0 0 0-2.581 1.906 9.205 9.205 0 0 0-1.715 2.853 9.773 9.773 0 0 0-.628 3.546c0 1.25.194 2.39.58 3.419.362.98.918 1.877 1.635 2.636A7.543 7.543 0 0 0 24 26.584c.965.41 2.025.617 3.176.617.522 0 1.005-.041 1.445-.116.439-.075.858-.2 1.26-.37.4-.175.79-.398 1.18-.664.385-.27.792-.612 1.21-1.018v4.353h-.005v.421h-5.33l-4.005 4.64v.798h15.037v-24.98h-5.697v1.746Zm-.014 7.979a4.25 4.25 0 0 1-.786 1.215 3.555 3.555 0 0 1-2.592 1.1 3.627 3.627 0 0 1-1.464-.292 3.508 3.508 0 0 1-1.166-.808 3.93 3.93 0 0 1-1.054-2.72c0-.519.097-1.006.298-1.457a3.77 3.77 0 0 1 .804-1.181 4.114 4.114 0 0 1 1.162-.808 3.484 3.484 0 0 1 2.817-.016c.448.19.844.463 1.181.81.336.347.6.743.804 1.194.202.452.298.95.298 1.493 0 .505-.104 1.005-.302 1.47m-16.261-7.708a6.173 6.173 0 0 0-2.06-1.602 4.875 4.875 0 0 0-.57-.22 6.383 6.383 0 0 0-.923-.216H8.383L5.697 13.39v-3.082H.002v16.61h5.695V15.712h5.35l.444-.01v11.214h5.697V16.528c0-.885-.084-1.674-.25-2.366a4.655 4.655 0 0 0-.941-1.877zm38.367-2.018h-6.213l-2.47 2.863v-2.864h-5.7v16.61h5.71l.004-11.117h4.144l4.526-5.26zm31.051 7.672 7.79-7.392v-.281H85.7l-5.975 5.991V0h-5.696v26.87h5.696v-6.766l6.262 6.763h7.663v-.316l-8.233-8.617zm-16.11-5.78a9.436 9.436 0 0 0-3.085-1.842 10.953 10.953 0 0 0-3.855-.664c-1.407 0-2.705.226-3.884.678a9.611 9.611 0 0 0-3.072 1.858 8.488 8.488 0 0 0-2.016 2.788 8.281 8.281 0 0 0-.722 3.449c0 1.362.24 2.596.722 3.707a8.52 8.52 0 0 0 2.002 2.862c.85.798 1.86 1.415 3.036 1.847 1.177.432 2.455.647 3.842.647 1.406 0 2.707-.215 3.919-.647 1.204-.431 2.24-1.04 3.098-1.833a8.583 8.583 0 0 0 2.031-2.816c.493-1.09.742-2.29.742-3.611 0-1.316-.244-2.52-.722-3.612a8.424 8.424 0 0 0-2.035-2.81Zm-3.558 7.864c-.2.461-.463.869-.786 1.215a3.573 3.573 0 0 1-2.592 1.1c-.502 0-.981-.096-1.434-.291a3.44 3.44 0 0 1-1.16-.809 4.155 4.155 0 0 1-.788-1.215 3.825 3.825 0 0 1-.297-1.537c0-.517.098-1.004.297-1.456.201-.451.46-.849.787-1.194a3.579 3.579 0 0 1 2.597-1.1c.502 0 .98.096 1.43.29.448.19.839.461 1.16.81.328.345.586.752.786 1.214.2.461.297.954.297 1.471 0 .538-.096 1.04-.297 1.502`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=/* @__PURE__ */ a(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 94 36`,width:`2.61em`,...e,children:n}),t[1]=e,t[2]=r),r}function s(e){let t=i(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=/* @__PURE__ */ a(`path`,{d:`M27.2 6.18a9.47 9.47 0 0 0-3.12-2.5A9.42 9.42 0 0 0 21.82 3h-6.14l-4.06 4.9V3.1H3V29h8.62V11.53h8.09l.67-.02v17.48H29V12.8c0-1.37-.13-2.6-.38-3.68a7.35 7.35 0 0 0-1.42-2.93Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=/* @__PURE__ */ a(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 32 32`,width:`1em`,...e,children:n}),t[1]=e,t[2]=r),r}export{r as AutoThemeIcon,s as NgrokLettermarkIcon,o as NgrokWordmarkIcon,t as SortIcon,n as ThemeIcon,e as TrafficPolicyFileIcon};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref, RefCallback } from "react";
|
|
2
|
-
//#region src/utils/copy-to-clipboard.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Copy the given string to the clipboard. Uses the Clipboard API when
|
|
5
4
|
* available and falls back to an `execCommand("copy")` polyfill for older
|
|
@@ -9,8 +8,6 @@ import { Ref, RefCallback } from "react";
|
|
|
9
8
|
* API and the polyfill fail — `await` the call to observe success.
|
|
10
9
|
*/
|
|
11
10
|
declare function copyToClipboard(value: string): Promise<void>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/utils/compose-refs/compose-refs.d.ts
|
|
14
11
|
type PossibleRef<T> = Ref<T> | undefined;
|
|
15
12
|
/**
|
|
16
13
|
* A utility that composes multiple refs into a single callback ref. Accepts
|
|
@@ -51,8 +48,6 @@ declare function composeRefs<T>(...refs: PossibleRef<T>[]): RefCallback<T>;
|
|
|
51
48
|
* }
|
|
52
49
|
*/
|
|
53
50
|
declare function useComposedRefs<T>(firstRef: PossibleRef<T>, secondRef: PossibleRef<T>, thirdRef?: PossibleRef<T>): RefCallback<T>;
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/utils/in-view.d.ts
|
|
56
51
|
type MarginValue = `${number}${"px" | "%"}`;
|
|
57
52
|
/**
|
|
58
53
|
* Margin string used to expand or contract the intersection root's bounding box.
|
|
@@ -115,5 +110,4 @@ type ViewChangeHandler = (entry: IntersectionObserverEntry) => void;
|
|
|
115
110
|
* stop();
|
|
116
111
|
*/
|
|
117
112
|
declare function inView(element: Element, onStart: (element: Element, entry: IntersectionObserverEntry) => void | ViewChangeHandler, { root, margin: rootMargin, amount }?: InViewOptions): VoidFunction;
|
|
118
|
-
//#endregion
|
|
119
113
|
export { composeRefs as a, inView as i, MarginType as n, useComposedRefs as o, ViewChangeHandler as r, copyToClipboard as s, InViewOptions as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/color/colors.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Color palette named colors
|
|
4
3
|
*/
|
|
@@ -35,5 +34,4 @@ type Color = (typeof colors)[number];
|
|
|
35
34
|
* Check if a value is a named mantle color
|
|
36
35
|
*/
|
|
37
36
|
declare const isColor: (value: unknown) => value is Color;
|
|
38
|
-
//#endregion
|
|
39
37
|
export { functionalColors as a, isNamedColor as c, colors as i, namedColors as l, FunctionalColor as n, isColor as o, NamedColor as r, isFunctionalColor as s, Color as t };
|
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
import "./as-child-
|
|
2
|
-
import "./with-style-props-
|
|
1
|
+
import "./as-child-DFxX3U2i.js";
|
|
2
|
+
import "./with-style-props-CuT30s0W.js";
|
|
3
3
|
import { CSSProperties } from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
//#region src/types/booleanish.d.ts
|
|
6
5
|
type Booleanish = boolean | "true" | "false";
|
|
7
6
|
/**
|
|
8
7
|
* Parse/coerce a booleanish value (boolean | "true" | "false") into a boolean.
|
|
9
8
|
* @default false if the value is not a boolean or "true"
|
|
10
9
|
*/
|
|
11
10
|
declare function parseBooleanish(value: Booleanish | (string & {}) | undefined | null): boolean;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/types/deep-non-nullable.d.ts
|
|
14
11
|
/**
|
|
15
12
|
* Makes all properties in an object non-nullable, recursively.
|
|
16
13
|
*/
|
|
17
14
|
type DeepNonNullable<Type> = { [Property in keyof Type]-?: Type[Property] & {}; };
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/types/variant-props.d.ts
|
|
20
15
|
/**
|
|
21
16
|
* Variant props that are optional and cannot be `null`.
|
|
22
17
|
*
|
|
23
18
|
* Using VariantProps directly from CVA produces that can be `null`, which is not what we want.
|
|
24
19
|
*/
|
|
25
20
|
type VariantProps$1<Variants extends (props: Record<PropertyKey, unknown> | undefined) => string> = Partial<DeepNonNullable<VariantProps<Variants>>>;
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/types/css-properties.d.ts
|
|
28
21
|
/**
|
|
29
22
|
* A CSS custom property (CSS variable) name.
|
|
30
23
|
*
|
|
@@ -58,5 +51,4 @@ type CssProperties = CSSProperties & Record<CssVariableName, string | number>;
|
|
|
58
51
|
* style={$cssProperties({ display: "block", "--gap": 8 })}
|
|
59
52
|
*/
|
|
60
53
|
declare const $cssProperties: <T extends CssProperties = CssProperties>(input: T) => CSSProperties;
|
|
61
|
-
//#endregion
|
|
62
54
|
export { Booleanish as a, DeepNonNullable as i, CssProperties as n, parseBooleanish as o, VariantProps$1 as r, $cssProperties as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./compose-refs-sFdxsL7k.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{t as r}from"./icon-kK0c-POG.js";import{t as i}from"./booleanish-BfvnW6vy.js";import{t as a}from"./clsx-DUGZgXfJ.js";import{a as o,r as s}from"./field-CPvjazWN.js";import{c}from"react/compiler-runtime";import{createContext as l,useContext as u,useRef as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{CheckCircleIcon as m}from"@phosphor-icons/react/CheckCircle";import{WarningIcon as h}from"@phosphor-icons/react/Warning";import{WarningDiamondIcon as g}from"@phosphor-icons/react/WarningDiamond";const _=e=>{let t=c(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({children:n,className:r,ref:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=!!n,s=d(null);if(o){let e;return t[5]!==n||t[6]!==r||t[7]!==i||t[8]!==a?(e=/* @__PURE__ */ f(b,{className:r,forwardedRef:a,innerRef:s,...i,children:n}),t[5]=n,t[6]=r,t[7]=i,t[8]=a,t[9]=e):e=t[9],e}let l;t[10]===i?l=t[11]:(l=/* @__PURE__ */ f(v,{...i}),t[10]=i,t[11]=l);let u;return t[12]!==r||t[13]!==i||t[14]!==a||t[15]!==l?(u=/* @__PURE__ */ f(b,{...i,className:r,forwardedRef:a,innerRef:s,children:l}),t[12]=r,t[13]=i,t[14]=a,t[15]=l,t[16]=u):u=t[16],u},v=r=>{let i=c(31),a,l,d,p,m,h;i[0]===r?(a=i[1],l=i[2],d=i[3],p=i[4],m=i[5],h=i[6]):({"aria-invalid":a,"data-slot":p,className:d,ref:m,validation:l,...h}=r,i[0]=r,i[1]=a,i[2]=l,i[3]=d,i[4]=p,i[5]=m,i[6]=h);let g=u(y),_,v,b,x,S;i[7]===g?(_=i[8],v=i[9],b=i[10],x=i[11],S=i[12]):({"aria-invalid":v,forwardedRef:b,innerRef:x,validation:S,..._}=g,i[7]=g,i[8]=_,i[9]=v,i[10]=b,i[11]=x,i[12]=S);let C=o(),w=v??a,T=S??l??C,E;i[13]!==w||i[14]!==T?(E=s({"aria-invalid":w,validation:T}),i[13]=w,i[14]=T,i[15]=E):E=i[15];let{ariaInvalid:D,validation:O}=E,k=h.type??_.type??`text`,A;i[16]!==_||i[17]!==h||i[18]!==k?(A={..._,...h,type:k},i[16]=_,i[17]=h,i[18]=k,i[19]=A):A=i[19];let j=A,M=e(m,b,x),N;i[20]===p?N=i[21]:(N=n(p,`input-capture`),i[20]=p,i[21]=N);let P;i[22]===d?P=i[23]:(P=t(`placeholder:text-placeholder min-w-0 flex-1 bg-transparent text-left autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] focus:outline-hidden`,d),i[22]=d,i[23]=P);let F;return i[24]!==D||i[25]!==M||i[26]!==j||i[27]!==N||i[28]!==P||i[29]!==O?(F=/* @__PURE__ */ f(`input`,{"aria-invalid":D,"data-slot":N,"data-validation":O,className:P,ref:M,...j}),i[24]=D,i[25]=M,i[26]=j,i[27]=N,i[28]=P,i[29]=O,i[30]=F):F=i[30],F},y=l({validation:void 0,innerRef:{current:null}}),b=e=>{let r=c(51),a,l,u,d,m,h,g,_,v,b,S,C;r[0]===e?(a=r[1],l=r[2],u=r[3],d=r[4],m=r[5],h=r[6],g=r[7],_=r[8],v=r[9],b=r[10],S=r[11],C=r[12]):({"aria-invalid":l,"aria-disabled":a,"data-slot":h,children:d,className:m,disabled:g,forwardedRef:_,innerRef:v,style:S,type:C,validation:u,...b}=e,r[0]=e,r[1]=a,r[2]=l,r[3]=u,r[4]=d,r[5]=m,r[6]=h,r[7]=g,r[8]=_,r[9]=v,r[10]=b,r[11]=S,r[12]=C);let w=o(),T=u??w,E;r[13]!==l||r[14]!==T?(E=s({"aria-invalid":l,validation:T}),r[13]=l,r[14]=T,r[15]=E):E=r[15];let{validation:D}=E,O;r[16]!==a||r[17]!==l||r[18]!==u||r[19]!==g||r[20]!==_||r[21]!==v||r[22]!==b||r[23]!==C?(O={"aria-invalid":l,"aria-disabled":a,disabled:g,type:C,validation:u,...b,forwardedRef:_,innerRef:v},r[16]=a,r[17]=l,r[18]=u,r[19]=g,r[20]=_,r[21]=v,r[22]=b,r[23]=C,r[24]=O):O=r[24];let k=O,A;r[25]===h?A=r[26]:(A=n(h,`input`),r[25]=h,r[26]=A);let j;r[27]!==a||r[28]!==g?(j=i(g??a)||void 0,r[27]=a,r[28]=g,r[29]=j):j=r[29];let M=D||void 0,N;r[30]===m?N=r[31]:(N=t(`pointer-coarse:text-base h-9 text-sm`,`bg-form relative flex w-full items-center gap-1.5 rounded-md border px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-hidden focus-within:ring-4`,`data-disabled:opacity-50`,`has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-5`,`border-form text-strong focus-within:border-accent-600 focus-within:ring-focus-accent`,`data-validation-success:border-success-600 focus-within:data-validation-success:border-success-600 focus-within:data-validation-success:ring-focus-success`,`data-validation-warning:border-warning-600 focus-within:data-validation-warning:border-warning-600 focus-within:data-validation-warning:ring-focus-warning`,`data-validation-error:border-danger-600 focus-within:data-validation-error:border-danger-600 focus-within:data-validation-error:ring-focus-danger`,`autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] has-autofill:bg-blue-50 has-autofill:[-webkit-text-fill-color:var(--text-color-strong)]`,m),r[30]=m,r[31]=N);let P,F;r[32]===v?(P=r[33],F=r[34]):(P=e=>{e.target!==v?.current&&e.preventDefault()},F=e=>{let t=v.current;t!=null&&e.detail!==0&&t.focus()},r[32]=v,r[33]=P,r[34]=F);let I;r[35]!==b.name||r[36]!==D?(I=/* @__PURE__ */ f(x,{name:b.name,validation:D}),r[35]=b.name,r[36]=D,r[37]=I):I=r[37];let L;r[38]!==d||r[39]!==S||r[40]!==I||r[41]!==A||r[42]!==j||r[43]!==M||r[44]!==N||r[45]!==P||r[46]!==F?(L=/* @__PURE__ */ p(`div`,{role:`none`,"data-slot":A,"data-disabled":j,"data-validation":M,className:N,onMouseDown:P,onClick:F,style:S,children:[d,I]}),r[38]=d,r[39]=S,r[40]=I,r[41]=A,r[42]=j,r[43]=M,r[44]=N,r[45]=P,r[46]=F,r[47]=L):L=r[47];let R;return r[48]!==k||r[49]!==L?(R=/* @__PURE__ */ f(y.Provider,{value:k,children:L}),r[48]=k,r[49]=L,r[50]=R):R=r[50],R},x=e=>{let t=c(9),{name:n,validation:i}=e;switch(i){case`error`:{let e;t[0]===n?e=t[1]:(e=a(`The value entered for the`,n,`input has failed validation.`),t[0]=n,t[1]=e);let i;t[2]===e?i=t[3]:(i=/* @__PURE__ */ f(`span`,{className:`sr-only`,children:e}),t[2]=e,t[3]=i);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(h,{"aria-hidden":!0,weight:`fill`})}),t[4]=o):o=t[4];let s;return t[5]===i?s=t[6]:(s=/* @__PURE__ */ p(`div`,{className:`text-danger-600 order-last select-none`,children:[i,o]}),t[5]=i,t[6]=s),s}case`success`:{let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ f(`div`,{className:`text-success-600 order-last select-none`,children:/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(m,{weight:`fill`})})}),t[7]=e):e=t[7],e}case`warning`:{let e;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ f(`div`,{className:`text-warning-600 order-last select-none`,children:/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(g,{weight:`fill`})})}),t[8]=e):e=t[8],e}default:return null}};export{v as n,_ as t};
|
|
1
|
+
import{n as e}from"./compose-refs-sFdxsL7k.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{t as r}from"./icon-kK0c-POG.js";import{t as i}from"./booleanish-BfvnW6vy.js";import{t as a}from"./clsx-DUGZgXfJ.js";import{a as o,r as s}from"./field-CPvjazWN.js";import{c}from"react/compiler-runtime";import{createContext as l,useContext as u,useRef as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{CheckCircleIcon as m}from"@phosphor-icons/react/CheckCircle";import{WarningIcon as h}from"@phosphor-icons/react/Warning";import{WarningDiamondIcon as g}from"@phosphor-icons/react/WarningDiamond";const _=e=>{let t=c(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({children:n,className:r,ref:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=!!n,s=d(null);if(o){let e;return t[5]!==n||t[6]!==r||t[7]!==i||t[8]!==a?(e=/* @__PURE__ */ f(b,{className:r,forwardedRef:a,innerRef:s,...i,children:n}),t[5]=n,t[6]=r,t[7]=i,t[8]=a,t[9]=e):e=t[9],e}let l;t[10]===i?l=t[11]:(l=/* @__PURE__ */ f(v,{...i}),t[10]=i,t[11]=l);let u;return t[12]!==r||t[13]!==i||t[14]!==a||t[15]!==l?(u=/* @__PURE__ */ f(b,{...i,className:r,forwardedRef:a,innerRef:s,children:l}),t[12]=r,t[13]=i,t[14]=a,t[15]=l,t[16]=u):u=t[16],u},v=r=>{let i=c(31),a,l,d,p,m,h;i[0]===r?(a=i[1],l=i[2],d=i[3],p=i[4],m=i[5],h=i[6]):({"aria-invalid":a,"data-slot":p,className:d,ref:m,validation:l,...h}=r,i[0]=r,i[1]=a,i[2]=l,i[3]=d,i[4]=p,i[5]=m,i[6]=h);let g=u(y),_,v,b,x,S;i[7]===g?(_=i[8],v=i[9],b=i[10],x=i[11],S=i[12]):({"aria-invalid":v,forwardedRef:b,innerRef:x,validation:S,..._}=g,i[7]=g,i[8]=_,i[9]=v,i[10]=b,i[11]=x,i[12]=S);let C=o(),w=v??a,T=S??l??C,E;i[13]!==w||i[14]!==T?(E=s({"aria-invalid":w,validation:T}),i[13]=w,i[14]=T,i[15]=E):E=i[15];let{ariaInvalid:D,validation:O}=E,k=h.type??_.type??`text`,A;i[16]!==_||i[17]!==h||i[18]!==k?(A={..._,...h,type:k},i[16]=_,i[17]=h,i[18]=k,i[19]=A):A=i[19];let j=A,M=e(m,b,x),N;i[20]===p?N=i[21]:(N=n(p,`input-capture`),i[20]=p,i[21]=N);let P;i[22]===d?P=i[23]:(P=t(`placeholder:text-placeholder min-w-0 flex-1 bg-transparent text-left autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] focus:outline-hidden`,d),i[22]=d,i[23]=P);let F;return i[24]!==D||i[25]!==M||i[26]!==j||i[27]!==N||i[28]!==P||i[29]!==O?(F=/* @__PURE__ */ f(`input`,{"aria-invalid":D,"data-slot":N,"data-validation":O,className:P,ref:M,...j}),i[24]=D,i[25]=M,i[26]=j,i[27]=N,i[28]=P,i[29]=O,i[30]=F):F=i[30],F},y=l({validation:void 0,innerRef:{current:null}}),b=e=>{let r=c(51),a,l,u,d,m,h,g,_,v,b,S,C;r[0]===e?(a=r[1],l=r[2],u=r[3],d=r[4],m=r[5],h=r[6],g=r[7],_=r[8],v=r[9],b=r[10],S=r[11],C=r[12]):({"aria-invalid":l,"aria-disabled":a,"data-slot":h,children:d,className:m,disabled:g,forwardedRef:_,innerRef:v,style:S,type:C,validation:u,...b}=e,r[0]=e,r[1]=a,r[2]=l,r[3]=u,r[4]=d,r[5]=m,r[6]=h,r[7]=g,r[8]=_,r[9]=v,r[10]=b,r[11]=S,r[12]=C);let w=o(),T=u??w,E;r[13]!==l||r[14]!==T?(E=s({"aria-invalid":l,validation:T}),r[13]=l,r[14]=T,r[15]=E):E=r[15];let{validation:D}=E,O;r[16]!==a||r[17]!==l||r[18]!==u||r[19]!==g||r[20]!==_||r[21]!==v||r[22]!==b||r[23]!==C?(O={"aria-invalid":l,"aria-disabled":a,disabled:g,type:C,validation:u,...b,forwardedRef:_,innerRef:v},r[16]=a,r[17]=l,r[18]=u,r[19]=g,r[20]=_,r[21]=v,r[22]=b,r[23]=C,r[24]=O):O=r[24];let k=O,A;r[25]===h?A=r[26]:(A=n(h,`input`),r[25]=h,r[26]=A);let j;r[27]!==a||r[28]!==g?(j=i(g??a)||void 0,r[27]=a,r[28]=g,r[29]=j):j=r[29];let M=D||void 0,N;r[30]===m?N=r[31]:(N=t(`pointer-coarse:text-base h-9 text-sm`,`bg-form relative flex w-full items-center gap-1.5 rounded-md border px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-hidden focus-within:ring-4`,`data-disabled:opacity-50`,`has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-5`,`border-form text-strong focus-within:border-accent-600 focus-within:ring-focus-accent`,`data-validation-success:border-success-600 focus-within:data-validation-success:border-success-600 focus-within:data-validation-success:ring-focus-success`,`data-validation-warning:border-warning-600 focus-within:data-validation-warning:border-warning-600 focus-within:data-validation-warning:ring-focus-warning`,`data-validation-error:border-danger-600 focus-within:data-validation-error:border-danger-600 focus-within:data-validation-error:ring-focus-danger motion-safe:data-validation-error:animate-shake`,`has-[>[data-validation=error]]:border-danger-600 focus-within:has-[>[data-validation=error]]:border-danger-600 focus-within:has-[>[data-validation=error]]:ring-focus-danger motion-safe:has-[>[data-validation=error]]:animate-shake`,`autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] has-autofill:bg-blue-50 has-autofill:[-webkit-text-fill-color:var(--text-color-strong)]`,m),r[30]=m,r[31]=N);let P,F;r[32]===v?(P=r[33],F=r[34]):(P=e=>{e.target!==v?.current&&e.preventDefault()},F=e=>{let t=v.current;t!=null&&e.detail!==0&&t.focus()},r[32]=v,r[33]=P,r[34]=F);let I;r[35]!==b.name||r[36]!==D?(I=/* @__PURE__ */ f(x,{name:b.name,validation:D}),r[35]=b.name,r[36]=D,r[37]=I):I=r[37];let L;r[38]!==d||r[39]!==S||r[40]!==I||r[41]!==A||r[42]!==j||r[43]!==M||r[44]!==N||r[45]!==P||r[46]!==F?(L=/* @__PURE__ */ p(`div`,{role:`none`,"data-slot":A,"data-disabled":j,"data-validation":M,className:N,onMouseDown:P,onClick:F,style:S,children:[d,I]}),r[38]=d,r[39]=S,r[40]=I,r[41]=A,r[42]=j,r[43]=M,r[44]=N,r[45]=P,r[46]=F,r[47]=L):L=r[47];let R;return r[48]!==k||r[49]!==L?(R=/* @__PURE__ */ f(y.Provider,{value:k,children:L}),r[48]=k,r[49]=L,r[50]=R):R=r[50],R},x=e=>{let t=c(9),{name:n,validation:i}=e;switch(i){case`error`:{let e;t[0]===n?e=t[1]:(e=a(`The value entered for the`,n,`input has failed validation.`),t[0]=n,t[1]=e);let i;t[2]===e?i=t[3]:(i=/* @__PURE__ */ f(`span`,{className:`sr-only`,children:e}),t[2]=e,t[3]=i);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(h,{"aria-hidden":!0,weight:`fill`})}),t[4]=o):o=t[4];let s;return t[5]===i?s=t[6]:(s=/* @__PURE__ */ p(`div`,{className:`text-danger-600 order-last select-none`,children:[i,o]}),t[5]=i,t[6]=s),s}case`success`:{let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ f(`div`,{className:`text-success-600 order-last select-none`,children:/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(m,{weight:`fill`})})}),t[7]=e):e=t[7],e}case`warning`:{let e;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ f(`div`,{className:`text-warning-600 order-last select-none`,children:/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(g,{weight:`fill`})})}),t[8]=e):e=t[8],e}default:return null}};export{v as n,_ as t};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
2
|
-
import { o as WithValidation } from "./field-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
+
import { o as WithValidation } from "./field-V_gnkcmN.js";
|
|
3
3
|
import { ComponentProps, PropsWithChildren } from "react";
|
|
4
|
-
//#region src/components/input/types.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* (Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what,
|
|
7
6
|
* if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete recalls
|
|
@@ -46,8 +45,6 @@ type WithInputType = {
|
|
|
46
45
|
*/
|
|
47
46
|
type?: InputType;
|
|
48
47
|
};
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/components/input/input.d.ts
|
|
51
48
|
type BaseProps = WithAutoComplete & WithInputType & WithValidation;
|
|
52
49
|
/**
|
|
53
50
|
* The props for the `Input` component.
|
|
@@ -85,5 +82,4 @@ type InputCaptureProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
|
|
|
85
82
|
* ```
|
|
86
83
|
*/
|
|
87
84
|
declare const InputCapture: ({ "aria-invalid": _ariaInvalid, "data-slot": dataSlot, className, ref, validation: _validation, ...restProps }: InputCaptureProps) => import("react").JSX.Element;
|
|
88
|
-
//#endregion
|
|
89
85
|
export { AutoComplete as a, WithInputType as c, InputProps as i, InputCapture as n, InputType as o, InputCaptureProps as r, WithAutoComplete as s, Input as t };
|
package/dist/input.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
2
|
-
import { o as WithValidation, r as Validation } from "./field-
|
|
3
|
-
import { a as AutoComplete, c as WithInputType, i as InputProps, n as InputCapture, o as InputType, r as InputCaptureProps, s as WithAutoComplete, t as Input } from "./input-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
|
+
import { o as WithValidation, r as Validation } from "./field-V_gnkcmN.js";
|
|
3
|
+
import { a as AutoComplete, c as WithInputType, i as InputProps, n as InputCapture, o as InputType, r as InputCaptureProps, s as WithAutoComplete, t as Input } from "./input-Dx5owTCc.js";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
|
-
//#region src/components/input/password-input.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* The props for the `PasswordInput` component.
|
|
8
7
|
*/
|
|
@@ -92,8 +91,6 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
|
|
|
92
91
|
* ```
|
|
93
92
|
*/
|
|
94
93
|
declare const PasswordInput: ({ "data-slot": dataSlot, disabled, id: idProp, onValueVisibilityChange, ref, showValue, ...props }: PasswordInputProps) => import("react").JSX.Element;
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/components/input/is-input.d.ts
|
|
97
94
|
/**
|
|
98
95
|
* Type guard for an `HTMLInputElement`. On the server, where `HTMLInputElement`
|
|
99
96
|
* is not defined, it returns `false`.
|
|
@@ -110,5 +107,4 @@ declare const PasswordInput: ({ "data-slot": dataSlot, disabled, id: idProp, onV
|
|
|
110
107
|
* ```
|
|
111
108
|
*/
|
|
112
109
|
export declare function isInput(value: unknown): value is HTMLInputElement;
|
|
113
|
-
//#endregion
|
|
114
110
|
export { type AutoComplete, Input, InputCapture, type InputCaptureProps, type InputProps, type InputType, PasswordInput, type PasswordInputProps, type Validation, type WithAutoComplete, type WithInputType, type WithValidation };
|
package/dist/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-kK0c-POG.js";import{t as r}from"./use-prefers-reduced-motion-DimzRx-M.js";import{n as i,t as a}from"./input-
|
|
1
|
+
import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-kK0c-POG.js";import{t as r}from"./use-prefers-reduced-motion-DimzRx-M.js";import{n as i,t as a}from"./input-CpQ6jlpI.js";import{t as o}from"./input-DQyN6gN0.js";import{c as s}from"react/compiler-runtime";import{useId as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{EyeIcon as p}from"@phosphor-icons/react/Eye";import{EyeClosedIcon as m}from"@phosphor-icons/react/EyeClosed";const h=o=>{let h=s(34),g,_,v,y,b,x,S;h[0]===o?(g=h[1],_=h[2],v=h[3],y=h[4],b=h[5],x=h[6],S=h[7]):({"data-slot":g,disabled:_,id:v,onValueVisibilityChange:y,ref:x,showValue:S,...b}=o,h[0]=o,h[1]=g,h[2]=_,h[3]=v,h[4]=y,h[5]=b,h[6]=x,h[7]=S);let C=c(),w=v??C,T=S!=null,[E,D]=u(!1),O=T?S:E,k=O?`text`:`password`,A=O?p:m,j=l(null),M=l(O),N,P;h[8]===O?(N=h[9],P=h[10]):(N=()=>{if(M.current===O)return;M.current=O;let e=j.current;e==null||r()||e.animate([{transform:`scaleY(0)`},{transform:`scaleY(1)`}],{duration:200,easing:`ease-out`})},P=[O],h[8]=O,h[9]=N,h[10]=P),e(N,P);let F;h[11]===g?F=h[12]:(F=t(g,`password-input`),h[11]=g,h[12]=F);let I;h[13]===Symbol.for(`react.memo_cache_sentinel`)?(I=/* @__PURE__ */ d(i,{}),h[13]=I):I=h[13];let L;h[14]!==T||h[15]!==y||h[16]!==O?(L=()=>{let e=!O;T||D(e),y?.(e)},h[14]=T,h[15]=y,h[16]=O,h[17]=L):L=h[17];let R;h[18]===A?R=h[19]:(R=/* @__PURE__ */ d(n,{ref:j,svg:/* @__PURE__ */ d(A,{"aria-hidden":!0})}),h[18]=A,h[19]=R);let z;h[20]!==_||h[21]!==w||h[22]!==O||h[23]!==L||h[24]!==R?(z=/* @__PURE__ */ d(`button`,{type:`button`,disabled:_,"data-slot":`password-input-toggle`,"aria-label":`Show value`,"aria-pressed":O,"aria-controls":w,className:`text-body hover:text-strong focus-visible:ring-focus-accent ml-1 cursor-pointer rounded-xs bg-inherit p-0 focus-visible:ring-2 focus-visible:outline-hidden`,onClick:L,children:R}),h[20]=_,h[21]=w,h[22]=O,h[23]=L,h[24]=R,h[25]=z):z=h[25];let B;return h[26]!==_||h[27]!==w||h[28]!==b||h[29]!==x||h[30]!==F||h[31]!==z||h[32]!==k?(B=/* @__PURE__ */ f(a,{"data-slot":F,disabled:_,id:w,type:k,ref:x,...b,children:[I,z]}),h[26]=_,h[27]=w,h[28]=b,h[29]=x,h[30]=F,h[31]=z,h[32]=k,h[33]=B):B=h[33],B};export{a as Input,i as InputCapture,h as PasswordInput,o as isInput};
|
package/dist/kbd.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
//#region src/components/kbd/kbd.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* A square, centered keyboard "key" chip for rendering shortcut hints —
|
|
6
5
|
* "K", "⌘", "⌃", "Enter". Renders a native `<kbd>` element so screen
|
|
@@ -56,5 +55,4 @@ import { ComponentProps } from "react";
|
|
|
56
55
|
* ```
|
|
57
56
|
*/
|
|
58
57
|
declare function Kbd({ "data-slot": dataSlot, children, className, ...props }: Omit<ComponentProps<"kbd">, "translate"> & WithDataSlot): import("react").JSX.Element;
|
|
59
|
-
//#endregion
|
|
60
58
|
export { Kbd };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
//#region src/components/label/label.d.ts
|
|
4
3
|
type LabelProps = ComponentProps<"label"> & {
|
|
5
4
|
/**
|
|
6
5
|
* If set, the label will appear disabled.
|
|
@@ -70,5 +69,4 @@ type LabelProps = ComponentProps<"label"> & {
|
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
declare const Label: ({ "data-slot": dataSlot, "aria-disabled": _ariaDisabled, children, className, disabled, onMouseDown, ref, ...props }: LabelProps) => import("react").JSX.Element;
|
|
73
|
-
//#endregion
|
|
74
72
|
export { Label as t };
|
package/dist/label.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Label } from "./label-
|
|
1
|
+
import { t as Label } from "./label-Dn5CPJUj.js";
|
|
2
2
|
export { Label };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
//#region src/utils/layer-container/layer-container.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The portal target for floating layers composed inside an overlay.
|
|
5
4
|
*
|
|
@@ -53,5 +52,4 @@ declare function useLayerContainer(): Element | DocumentFragment | null;
|
|
|
53
52
|
* ```
|
|
54
53
|
*/
|
|
55
54
|
declare function LayerContainer({ children, ref, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
56
|
-
//#endregion
|
|
57
55
|
export { LayerContainer, LayerContainerContext, useLayerContainer };
|
package/dist/line-chart.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { _ as CurveKind, a as GridPrimitiveProps, c as TooltipPrimitiveProps, g as ContinuousXScale, h as ChartSeriesSlot, i as CopyButtonPrimitiveProps, l as XAxisPrimitiveProps, m as ChartDatumEvent, n as ChartMode, o as LegendPrimitiveProps, p as ChartDatum, r as ChartRootBaseProps, s as ReferenceLinePrimitiveProps, t as ChartAccessibilityProps, u as YAxisPrimitiveProps, v as PointShape, y as SeriesColor } from "./chart-
|
|
2
|
-
//#region src/components/line-chart/line-chart.d.ts
|
|
1
|
+
import { _ as CurveKind, a as GridPrimitiveProps, c as TooltipPrimitiveProps, g as ContinuousXScale, h as ChartSeriesSlot, i as CopyButtonPrimitiveProps, l as XAxisPrimitiveProps, m as ChartDatumEvent, n as ChartMode, o as LegendPrimitiveProps, p as ChartDatum, r as ChartRootBaseProps, s as ReferenceLinePrimitiveProps, t as ChartAccessibilityProps, u as YAxisPrimitiveProps, v as PointShape, y as SeriesColor } from "./chart-ynMysD16.js";
|
|
3
2
|
/**
|
|
4
3
|
* Props for {@link LineChart.Root}. Lines encode value by vertical position,
|
|
5
4
|
* not length from a baseline, so the full y domain stays overridable via
|
|
@@ -42,7 +41,7 @@ type LineChartLineProps = {
|
|
|
42
41
|
* not change the series slot or its paired point shape. When omitted, the
|
|
43
42
|
* series paints the color from its slot.
|
|
44
43
|
*
|
|
45
|
-
* A static color (raw hex) cannot follow the
|
|
44
|
+
* A static color (raw hex) cannot follow the two themes, so prefer a
|
|
46
45
|
* `var(--your-token)` declared per theme. A series that carries good/bad
|
|
47
46
|
* meaning should wear the semantic status colors, never a categorical slot.
|
|
48
47
|
*/
|
|
@@ -580,5 +579,4 @@ declare const LineChart: {
|
|
|
580
579
|
*/
|
|
581
580
|
readonly CopyButton: typeof CopyButton;
|
|
582
581
|
};
|
|
583
|
-
//#endregion
|
|
584
582
|
export { type ChartDatumEvent, type ChartMode, LineChart, type LineChartCopyButtonProps, type LineChartGridProps, type LineChartLegendProps, type LineChartLineProps, type LineChartReferenceLineProps, type LineChartRootProps, type LineChartTooltipProps, type LineChartXAxisProps, type LineChartYAxisProps };
|
package/dist/line-chart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-D2LtDZtV.js";import{c as l}from"react/compiler-runtime";import{jsx as u}from"react/jsx-runtime";const d={Root:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(o,{kind:`line`,componentName:`LineChart`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n},Line:e=>a(`LineChart.Line`,`line`,e),Grid:e=>n(`LineChart.Grid`,e),XAxis:e=>t(`LineChart.XAxis`,e),YAxis:e=>r(`LineChart.YAxis`,e),ReferenceLine:t=>e(`LineChart.ReferenceLine`,t),Tooltip:e=>s(`LineChart.Tooltip`,e),Legend:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(i,{partName:`LineChart.Legend`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n},CopyButton:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(c,{partName:`LineChart.CopyButton`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n}};export{d as LineChart};
|
package/dist/list.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as WithAsChild } from "./as-child-
|
|
2
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
1
|
+
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
3
|
import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
|
|
4
|
-
//#region src/components/list/primitive.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* ARIA semantics for a {@link Root} / `VirtualRoot` collection and its
|
|
7
6
|
* {@link Item}s. The element is always a `<div>` — per WAI-ARIA the *role*
|
|
@@ -71,8 +70,6 @@ type ListRootProps$1 = ComponentProps<"div"> & {
|
|
|
71
70
|
*/
|
|
72
71
|
isItemDisabled?: (index: number) => boolean;
|
|
73
72
|
};
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/components/list/virtual.d.ts
|
|
76
73
|
/**
|
|
77
74
|
* Props for {@link VirtualRoot}. The same surface as the plain `Root` plus the
|
|
78
75
|
* virtualizer knobs.
|
|
@@ -94,8 +91,6 @@ type VirtualRootProps = ListRootProps$1 & {
|
|
|
94
91
|
/** Rows rendered beyond the visible window on each side. The buffer keeps the active row mounted for `aria-activedescendant`. */
|
|
95
92
|
overscan?: number;
|
|
96
93
|
};
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/components/list/list.d.ts
|
|
99
94
|
/**
|
|
100
95
|
* Props for `List.Root` — the internal list primitive's `Root` props, minus
|
|
101
96
|
* `semantics` (a `List` is always a `role="list"`) and the grid-only
|
|
@@ -444,5 +439,4 @@ declare const List: {
|
|
|
444
439
|
*/
|
|
445
440
|
readonly ItemDescription: typeof ItemDescription;
|
|
446
441
|
};
|
|
447
|
-
//#endregion
|
|
448
442
|
export { List, type ListItemProps, type ListRootProps, type ListVirtualRootProps };
|
package/dist/live-region.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as WithAsChild } from "./as-child-
|
|
2
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
1
|
+
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
|
+
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
|
-
//#region src/components/live-region/live-region.d.ts
|
|
5
4
|
type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
|
|
6
5
|
/**
|
|
7
6
|
* How urgently a screen reader announces a changed message: `"polite"`
|
|
@@ -65,5 +64,4 @@ type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
|
|
|
65
64
|
* ```
|
|
66
65
|
*/
|
|
67
66
|
declare const LiveRegion: ({ "data-slot": dataSlot, asChild, className, politeness, ref, ...props }: LiveRegionProps) => import("react").JSX.Element;
|
|
68
|
-
//#endregion
|
|
69
67
|
export { LiveRegion };
|