@sprawlify/react 0.0.8 → 0.0.9
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/{collapsible-Nbt3Sequ.mjs → collapsible-vqmKK3px.mjs} +7 -7
- package/dist/{collection-DQWWySNV.mjs → collection-BYYMj_V8.mjs} +2 -2
- package/dist/components/accordion/index.d.cts +11 -11
- package/dist/components/accordion/index.d.mts +11 -11
- package/dist/components/accordion/index.mjs +10 -10
- package/dist/components/angle-slider/index.d.cts +13 -13
- package/dist/components/angle-slider/index.d.mts +13 -13
- package/dist/components/angle-slider/index.mjs +8 -8
- package/dist/components/avatar/index.d.cts +8 -8
- package/dist/components/avatar/index.d.mts +8 -8
- package/dist/components/avatar/index.mjs +8 -8
- package/dist/components/bottom-sheet/index.d.cts +15 -15
- package/dist/components/bottom-sheet/index.d.mts +16 -16
- package/dist/components/bottom-sheet/index.mjs +12 -12
- package/dist/components/carousel/index.d.cts +18 -18
- package/dist/components/carousel/index.d.mts +18 -18
- package/dist/components/carousel/index.mjs +8 -8
- package/dist/components/checkbox/index.d.cts +14 -14
- package/dist/components/checkbox/index.d.mts +14 -14
- package/dist/components/checkbox/index.mjs +13 -13
- package/dist/components/clipboard/index.d.cts +12 -12
- package/dist/components/clipboard/index.d.mts +12 -12
- package/dist/components/clipboard/index.mjs +6 -6
- package/dist/components/collapsible/index.d.cts +10 -10
- package/dist/components/collapsible/index.d.mts +10 -10
- package/dist/components/collapsible/index.mjs +7 -7
- package/dist/components/collection/index.d.cts +1 -1
- package/dist/components/collection/index.d.mts +1 -1
- package/dist/components/collection/index.mjs +3 -3
- package/dist/components/color-picker/index.d.cts +35 -35
- package/dist/components/color-picker/index.d.mts +36 -36
- package/dist/components/color-picker/index.mjs +14 -14
- package/dist/components/combobox/index.d.cts +22 -22
- package/dist/components/combobox/index.d.mts +22 -22
- package/dist/components/combobox/index.mjs +15 -15
- package/dist/components/date-picker/index.d.cts +32 -32
- package/dist/components/date-picker/index.d.mts +33 -33
- package/dist/components/date-picker/index.mjs +11 -11
- package/dist/components/dialog/index.d.cts +15 -15
- package/dist/components/dialog/index.d.mts +13 -13
- package/dist/components/dialog/index.mjs +11 -11
- package/dist/components/download-trigger/index.d.cts +4 -4
- package/dist/components/download-trigger/index.d.mts +4 -4
- package/dist/components/download-trigger/index.mjs +5 -5
- package/dist/components/editable/index.d.cts +13 -13
- package/dist/components/editable/index.d.mts +13 -13
- package/dist/components/editable/index.mjs +11 -11
- package/dist/components/field/index.d.cts +14 -14
- package/dist/components/field/index.d.mts +12 -12
- package/dist/components/field/index.mjs +9 -9
- package/dist/components/fieldset/index.d.cts +10 -10
- package/dist/components/fieldset/index.d.mts +8 -8
- package/dist/components/fieldset/index.mjs +9 -9
- package/dist/components/file-upload/index.d.cts +3 -3
- package/dist/components/file-upload/index.d.mts +18 -18
- package/dist/components/file-upload/index.mjs +11 -11
- package/dist/components/floating-panel/index.d.cts +19 -19
- package/dist/components/floating-panel/index.d.mts +20 -20
- package/dist/components/floating-panel/index.mjs +11 -11
- package/dist/components/focus-trap/index.d.cts +4 -4
- package/dist/components/focus-trap/index.d.mts +4 -4
- package/dist/components/focus-trap/index.mjs +4 -4
- package/dist/components/format/index.d.cts +4 -4
- package/dist/components/format/index.d.mts +4 -4
- package/dist/components/format/index.mjs +3 -3
- package/dist/components/frame/index.d.cts +3 -3
- package/dist/components/frame/index.d.mts +3 -3
- package/dist/components/frame/index.mjs +6 -6
- package/dist/components/highlight/index.d.cts +3 -3
- package/dist/components/highlight/index.d.mts +3 -3
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.cjs +165 -0
- package/dist/components/hover-card/index.d.cts +70 -0
- package/dist/components/hover-card/index.d.mts +71 -0
- package/dist/components/hover-card/index.mjs +143 -0
- package/dist/components/image-cropper/index.cjs +197 -0
- package/dist/components/image-cropper/index.d.cts +64 -0
- package/dist/components/image-cropper/index.d.mts +64 -0
- package/dist/components/image-cropper/index.mjs +175 -0
- package/dist/components/json-tree-view/index.cjs +246 -0
- package/dist/components/json-tree-view/index.d.cts +43 -0
- package/dist/components/json-tree-view/index.d.mts +48 -0
- package/dist/components/json-tree-view/index.mjs +237 -0
- package/dist/components/listbox/index.cjs +314 -0
- package/dist/components/listbox/index.d.cts +110 -0
- package/dist/components/listbox/index.d.mts +110 -0
- package/dist/components/listbox/index.mjs +289 -0
- package/dist/components/marquee/index.cjs +176 -0
- package/dist/components/marquee/index.d.cts +61 -0
- package/dist/components/marquee/index.d.mts +61 -0
- package/dist/components/marquee/index.mjs +155 -0
- package/dist/components/menu/index.cjs +548 -0
- package/dist/components/menu/index.d.cts +159 -0
- package/dist/components/menu/index.d.mts +162 -0
- package/dist/components/menu/index.mjs +512 -0
- package/dist/components/navigation-menu/index.cjs +339 -0
- package/dist/components/navigation-menu/index.d.cts +90 -0
- package/dist/components/navigation-menu/index.d.mts +90 -0
- package/dist/components/navigation-menu/index.mjs +312 -0
- package/dist/components/number-input/index.cjs +237 -0
- package/dist/components/number-input/index.d.cts +74 -0
- package/dist/components/number-input/index.d.mts +74 -0
- package/dist/components/number-input/index.mjs +213 -0
- package/dist/components/pagination/index.cjs +197 -0
- package/dist/components/pagination/index.d.cts +69 -0
- package/dist/components/pagination/index.d.mts +69 -0
- package/dist/components/pagination/index.mjs +174 -0
- package/dist/components/password-input/index.cjs +193 -0
- package/dist/components/password-input/index.d.cts +66 -0
- package/dist/components/password-input/index.d.mts +66 -0
- package/dist/components/password-input/index.mjs +171 -0
- package/dist/components/pin-input/index.cjs +192 -0
- package/dist/components/pin-input/index.d.cts +59 -0
- package/dist/components/pin-input/index.d.mts +59 -0
- package/dist/components/pin-input/index.mjs +171 -0
- package/dist/components/popover/index.cjs +237 -0
- package/dist/components/popover/index.d.cts +95 -0
- package/dist/components/popover/index.d.mts +96 -0
- package/dist/components/popover/index.mjs +210 -0
- package/dist/components/portal/index.cjs +3 -29
- package/dist/components/portal/index.d.cts +2 -2
- package/dist/components/portal/index.d.mts +2 -2
- package/dist/components/portal/index.mjs +5 -30
- package/dist/components/presence/index.d.cts +1 -1
- package/dist/components/presence/index.d.mts +3 -3
- package/dist/components/presence/index.mjs +5 -5
- package/dist/components/select/index.d.cts +21 -21
- package/dist/components/select/index.d.mts +22 -22
- package/dist/components/select/index.mjs +15 -15
- package/dist/components/tree-view/index.cjs +51 -0
- package/dist/components/tree-view/index.d.cts +3 -0
- package/dist/components/tree-view/index.d.mts +6 -0
- package/dist/components/tree-view/index.mjs +13 -0
- package/dist/{environment-Ded7DkGr.mjs → environment-Cc02I6aF.mjs} +1 -1
- package/dist/{factory-Bi8oEg8i.mjs → factory-7ydMApfi.mjs} +1 -1
- package/dist/{field-B-6qoKdn.mjs → field-BXY6su53.mjs} +9 -9
- package/dist/{fieldset-gaVneDYh.mjs → fieldset-BeHm9oxe.mjs} +8 -8
- package/dist/index-BcXWsxRa.d.mts +40 -0
- package/dist/{index-BhGgEHWc.d.cts → index-Bkxp7VrU.d.mts} +7 -7
- package/dist/index-Cquz7y70.d.cts +52 -0
- package/dist/index-DTzLUoop.d.cts +150 -0
- package/dist/{index-Cp1i1zbg.d.mts → index-aYGfRRLA.d.cts} +7 -7
- package/dist/index-wlpTZGhs.d.mts +150 -0
- package/dist/index.d.cts +6 -56
- package/dist/index.d.mts +6 -44
- package/dist/index.mjs +7 -7
- package/dist/{locale-Coin-d7R.mjs → locale-D4LX0eEq.mjs} +1 -1
- package/dist/portal-BOhFScBS.mjs +29 -0
- package/dist/portal-DRyJqgA1.cjs +35 -0
- package/dist/{presence-Bc6Bxe5i.mjs → presence-C9BcvdTf.mjs} +6 -6
- package/dist/{render-strategy-FiPgAp1U.mjs → render-strategy-BgIBKraZ.mjs} +2 -2
- package/dist/tree-view-CzJvwlYQ.mjs +365 -0
- package/dist/tree-view-DsOPEocd.cjs +509 -0
- package/dist/{use-fieldset-context-LwveT1OS.mjs → use-fieldset-context-6GRSrrlt.mjs} +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +132 -2
- /package/dist/{chunk-BXPHTOwk.mjs → chunk-BU8PiJgx.mjs} +0 -0
- /package/dist/{compose-refs-BEptPEkE.mjs → compose-refs-Cl5LpASY.mjs} +0 -0
- /package/dist/{core-Ba4IEjhK.mjs → core-79NSyZp-.mjs} +0 -0
- /package/dist/{create-context-CCXzjEv8.mjs → create-context-DbhrVE2B.mjs} +0 -0
- /package/dist/{create-split-props-CBL0m-GX.mjs → create-split-props-BJdRM9I_.mjs} +0 -0
- /package/dist/{factory-C-EBNsCW.d.mts → factory-DaVlp4Ba.d.mts} +0 -0
- /package/dist/{factory-C4cfTHs7.d.cts → factory-fcFI3pbG.d.cts} +0 -0
- /package/dist/{index-BJvW7OpY.d.mts → index-BLd57Y0z.d.mts} +0 -0
- /package/dist/{index-CureNJdc.d.mts → index-BoLg0FWF.d.mts} +0 -0
- /package/dist/{index-CumJbg8V.d.cts → index-CReeoTjv.d.cts} +0 -0
- /package/dist/{index-ByIsf4E7.d.mts → index-DPoOdvOg.d.mts} +0 -0
- /package/dist/{index-dbTyAXLy.d.cts → index-r8rv70-L.d.cts} +0 -0
- /package/dist/{normalize-props-skGwa8Dk.d.cts → normalize-props-Dw0EepzR.d.cts} +0 -0
- /package/dist/{providers-Dm2P3F2_.mjs → providers-CoJceYkV.mjs} +0 -0
- /package/dist/{render-strategy-C8IyLw0O.d.mts → render-strategy-CRwPcG33.d.mts} +0 -0
- /package/dist/{render-strategy-rA4C5NUX.d.cts → render-strategy-M8NkD01w.d.cts} +0 -0
- /package/dist/{types-B4tvWlDb.d.cts → types-CrwpJrFp.d.mts} +0 -0
- /package/dist/{types-BmBABPZb.d.mts → types-DcUAwTQC.d.cts} +0 -0
- /package/dist/{use-event-4J5QFFqK.mjs → use-event-B4e6iJDK.mjs} +0 -0
- /package/dist/{use-safe-layout-effect-CLjnuJFb.mjs → use-safe-layout-effect-DPn_9-dD.mjs} +0 -0
- /package/dist/{utils-C-m3mZWI.mjs → utils-BQJFlkDE.mjs} +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { r as PropTypes } from "../../index-BLd57Y0z.mjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-CrwpJrFp.mjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-DaVlp4Ba.mjs";
|
|
4
|
+
import * as react241 from "react";
|
|
5
|
+
import { ReactNode } from "react";
|
|
6
|
+
import * as numberInput from "@sprawlify/primitives/machines/number-input";
|
|
7
|
+
import { FocusChangeDetails, FocusChangeDetails as NumberInputFocusChangeDetails, ValueChangeDetails, ValueChangeDetails as NumberInputValueChangeDetails, ValueInvalidDetails, ValueInvalidDetails as NumberInputValueInvalidDetails, anatomy as numberInputAnatomy } from "@sprawlify/primitives/machines/number-input";
|
|
8
|
+
|
|
9
|
+
//#region src/components/number-input/use-number-input.d.ts
|
|
10
|
+
interface UseNumberInputProps extends Optional<Omit<numberInput.Props, "dir" | "getRootNode">, "id"> {}
|
|
11
|
+
interface UseNumberInputReturn extends numberInput.Api<PropTypes> {}
|
|
12
|
+
declare const useNumberInput: (props?: UseNumberInputProps) => UseNumberInputReturn;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/number-input/use-number-input-context.d.ts
|
|
15
|
+
interface UseNumberInputContext extends UseNumberInputReturn {}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/number-input/number-input-context.d.ts
|
|
18
|
+
interface NumberInputContextProps {
|
|
19
|
+
children: (context: UseNumberInputContext) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const NumberInputContext: (props: NumberInputContextProps) => ReactNode;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/number-input/number-input-control.d.ts
|
|
24
|
+
interface NumberInputControlBaseProps extends PolymorphicProps {}
|
|
25
|
+
interface NumberInputControlProps extends HTMLProps<"div">, NumberInputControlBaseProps {}
|
|
26
|
+
declare const NumberInputControl: react241.ForwardRefExoticComponent<NumberInputControlProps & react241.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/number-input/number-input-decrement-trigger.d.ts
|
|
29
|
+
interface NumberInputDecrementTriggerBaseProps extends PolymorphicProps {}
|
|
30
|
+
interface NumberInputDecrementTriggerProps extends HTMLProps<"button">, NumberInputDecrementTriggerBaseProps {}
|
|
31
|
+
declare const NumberInputDecrementTrigger: react241.ForwardRefExoticComponent<NumberInputDecrementTriggerProps & react241.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/number-input/number-input-increment-trigger.d.ts
|
|
34
|
+
interface NumberInputIncrementTriggerBaseProps extends PolymorphicProps {}
|
|
35
|
+
interface NumberInputIncrementTriggerProps extends HTMLProps<"button">, NumberInputIncrementTriggerBaseProps {}
|
|
36
|
+
declare const NumberInputIncrementTrigger: react241.ForwardRefExoticComponent<NumberInputIncrementTriggerProps & react241.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/number-input/number-input-input.d.ts
|
|
39
|
+
interface NumberInputInputBaseProps extends PolymorphicProps {}
|
|
40
|
+
interface NumberInputInputProps extends HTMLProps<"input">, NumberInputInputBaseProps {}
|
|
41
|
+
declare const NumberInputInput: react241.ForwardRefExoticComponent<NumberInputInputProps & react241.RefAttributes<HTMLInputElement>>;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/number-input/number-input-label.d.ts
|
|
44
|
+
interface NumberInputLabelBaseProps extends PolymorphicProps {}
|
|
45
|
+
interface NumberInputLabelProps extends HTMLProps<"label">, NumberInputLabelBaseProps {}
|
|
46
|
+
declare const NumberInputLabel: react241.ForwardRefExoticComponent<NumberInputLabelProps & react241.RefAttributes<HTMLLabelElement>>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/number-input/number-input-root.d.ts
|
|
49
|
+
interface NumberInputRootBaseProps extends UseNumberInputProps, PolymorphicProps {}
|
|
50
|
+
interface NumberInputRootProps extends Assign<HTMLProps<"div">, NumberInputRootBaseProps> {}
|
|
51
|
+
declare const NumberInputRoot: react241.ForwardRefExoticComponent<NumberInputRootProps & react241.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/number-input/number-input-root-provider.d.ts
|
|
54
|
+
interface RootProviderProps {
|
|
55
|
+
value: UseNumberInputReturn;
|
|
56
|
+
}
|
|
57
|
+
interface NumberInputRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
58
|
+
interface NumberInputRootProviderProps extends HTMLProps<"div">, NumberInputRootProviderBaseProps {}
|
|
59
|
+
declare const NumberInputRootProvider: react241.ForwardRefExoticComponent<NumberInputRootProviderProps & react241.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/number-input/number-input-scrubber.d.ts
|
|
62
|
+
interface NumberInputScrubberBaseProps extends PolymorphicProps {}
|
|
63
|
+
interface NumberInputScrubberProps extends HTMLProps<"div">, NumberInputScrubberBaseProps {}
|
|
64
|
+
declare const NumberInputScrubber: react241.ForwardRefExoticComponent<NumberInputScrubberProps & react241.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/number-input/number-input-value-text.d.ts
|
|
67
|
+
interface NumberInputValueTextBaseProps extends PolymorphicProps {}
|
|
68
|
+
interface NumberInputValueTextProps extends HTMLProps<"span">, NumberInputValueTextBaseProps {}
|
|
69
|
+
declare const NumberInputValueText: react241.ForwardRefExoticComponent<NumberInputValueTextProps & react241.RefAttributes<HTMLSpanElement>>;
|
|
70
|
+
declare namespace number_input_d_exports {
|
|
71
|
+
export { NumberInputContext as Context, NumberInputContextProps as ContextProps, NumberInputControl as Control, NumberInputControlBaseProps as ControlBaseProps, NumberInputControlProps as ControlProps, NumberInputDecrementTrigger as DecrementTrigger, NumberInputDecrementTriggerBaseProps as DecrementTriggerBaseProps, NumberInputDecrementTriggerProps as DecrementTriggerProps, FocusChangeDetails, NumberInputIncrementTrigger as IncrementTrigger, NumberInputIncrementTriggerBaseProps as IncrementTriggerBaseProps, NumberInputIncrementTriggerProps as IncrementTriggerProps, NumberInputInput as Input, NumberInputInputBaseProps as InputBaseProps, NumberInputInputProps as InputProps, NumberInputLabel as Label, NumberInputLabelBaseProps as LabelBaseProps, NumberInputLabelProps as LabelProps, NumberInputRoot as Root, NumberInputRootBaseProps as RootBaseProps, NumberInputRootProps as RootProps, NumberInputRootProvider as RootProvider, NumberInputRootProviderBaseProps as RootProviderBaseProps, NumberInputRootProviderProps as RootProviderProps, NumberInputScrubber as Scrubber, NumberInputScrubberBaseProps as ScrubberBaseProps, NumberInputScrubberProps as ScrubberProps, ValueChangeDetails, ValueInvalidDetails, NumberInputValueText as ValueText, NumberInputValueTextBaseProps as ValueTextBaseProps, NumberInputValueTextProps as ValueTextProps };
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { number_input_d_exports as NumberInput, NumberInputContext, type NumberInputContextProps, NumberInputControl, type NumberInputControlBaseProps, type NumberInputControlProps, NumberInputDecrementTrigger, type NumberInputDecrementTriggerBaseProps, type NumberInputDecrementTriggerProps, type NumberInputFocusChangeDetails, NumberInputIncrementTrigger, type NumberInputIncrementTriggerBaseProps, type NumberInputIncrementTriggerProps, NumberInputInput, type NumberInputInputBaseProps, type NumberInputInputProps, NumberInputLabel, type NumberInputLabelBaseProps, type NumberInputLabelProps, NumberInputRoot, type NumberInputRootBaseProps, type NumberInputRootProps, NumberInputRootProvider, type NumberInputRootProviderBaseProps, type NumberInputRootProviderProps, NumberInputScrubber, type NumberInputScrubberBaseProps, type NumberInputScrubberProps, type NumberInputValueChangeDetails, type NumberInputValueInvalidDetails, NumberInputValueText, type NumberInputValueTextBaseProps, type NumberInputValueTextProps, type UseNumberInputContext, type UseNumberInputProps, type UseNumberInputReturn, numberInputAnatomy, useNumberInput, useNumberInputContext };
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { t as __export } from "../../chunk-BU8PiJgx.mjs";
|
|
2
|
+
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-79NSyZp-.mjs";
|
|
3
|
+
import { t as createContext$1 } from "../../create-context-DbhrVE2B.mjs";
|
|
4
|
+
import { n as useEnvironmentContext } from "../../environment-Cc02I6aF.mjs";
|
|
5
|
+
import { i as useLocaleContext } from "../../locale-D4LX0eEq.mjs";
|
|
6
|
+
import "../../providers-CoJceYkV.mjs";
|
|
7
|
+
import { n as sprawlify } from "../../factory-7ydMApfi.mjs";
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-BJdRM9I_.mjs";
|
|
9
|
+
import "../../use-fieldset-context-6GRSrrlt.mjs";
|
|
10
|
+
import "../../use-safe-layout-effect-DPn_9-dD.mjs";
|
|
11
|
+
import { m as useFieldContext } from "../../field-BXY6su53.mjs";
|
|
12
|
+
import { forwardRef, useId } from "react";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
import * as numberInput from "@sprawlify/primitives/machines/number-input";
|
|
15
|
+
import { anatomy as numberInputAnatomy } from "@sprawlify/primitives/machines/number-input";
|
|
16
|
+
|
|
17
|
+
//#region src/components/number-input/use-number-input-context.ts
|
|
18
|
+
const [NumberInputProvider, useNumberInputContext] = createContext$1({
|
|
19
|
+
name: "NumberInputContext",
|
|
20
|
+
hookName: "useNumberInputContext",
|
|
21
|
+
providerName: "<NumberInputProvider />"
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/number-input/number-input-context.tsx
|
|
26
|
+
const NumberInputContext = (props) => props.children(useNumberInputContext());
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/number-input/number-input-control.tsx
|
|
30
|
+
const NumberInputControl = forwardRef((props, ref) => {
|
|
31
|
+
const mergedProps = mergeProps(useNumberInputContext().getControlProps(), props);
|
|
32
|
+
return /* @__PURE__ */ jsx(sprawlify.div, {
|
|
33
|
+
...mergedProps,
|
|
34
|
+
ref
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
NumberInputControl.displayName = "NumberInputControl";
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/number-input/number-input-decrement-trigger.tsx
|
|
41
|
+
const NumberInputDecrementTrigger = forwardRef((props, ref) => {
|
|
42
|
+
const mergedProps = mergeProps(useNumberInputContext().getDecrementTriggerProps(), props);
|
|
43
|
+
return /* @__PURE__ */ jsx(sprawlify.button, {
|
|
44
|
+
...mergedProps,
|
|
45
|
+
ref
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
NumberInputDecrementTrigger.displayName = "NumberInputDecrementTrigger";
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/number-input/number-input-increment-trigger.tsx
|
|
52
|
+
const NumberInputIncrementTrigger = forwardRef((props, ref) => {
|
|
53
|
+
const mergedProps = mergeProps(useNumberInputContext().getIncrementTriggerProps(), props);
|
|
54
|
+
return /* @__PURE__ */ jsx(sprawlify.button, {
|
|
55
|
+
...mergedProps,
|
|
56
|
+
ref
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
NumberInputIncrementTrigger.displayName = "NumberInputIncrementTrigger";
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/number-input/number-input-input.tsx
|
|
63
|
+
const NumberInputInput = forwardRef((props, ref) => {
|
|
64
|
+
const mergedProps = mergeProps(useNumberInputContext().getInputProps(), props);
|
|
65
|
+
const field = useFieldContext();
|
|
66
|
+
return /* @__PURE__ */ jsx(sprawlify.input, {
|
|
67
|
+
"aria-describedby": field?.ariaDescribedby,
|
|
68
|
+
...mergedProps,
|
|
69
|
+
ref
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
NumberInputInput.displayName = "NumberInputInput";
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/number-input/number-input-label.tsx
|
|
76
|
+
const NumberInputLabel = forwardRef((props, ref) => {
|
|
77
|
+
const mergedProps = mergeProps(useNumberInputContext().getLabelProps(), props);
|
|
78
|
+
return /* @__PURE__ */ jsx(sprawlify.label, {
|
|
79
|
+
...mergedProps,
|
|
80
|
+
ref
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
NumberInputLabel.displayName = "NumberInputLabel";
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/number-input/use-number-input.ts
|
|
87
|
+
const useNumberInput = (props) => {
|
|
88
|
+
const id = useId();
|
|
89
|
+
const { getRootNode } = useEnvironmentContext();
|
|
90
|
+
const { dir, locale } = useLocaleContext();
|
|
91
|
+
const field = useFieldContext();
|
|
92
|
+
const machineProps = {
|
|
93
|
+
id,
|
|
94
|
+
ids: {
|
|
95
|
+
label: field?.ids.label,
|
|
96
|
+
input: field?.ids.control
|
|
97
|
+
},
|
|
98
|
+
disabled: field?.disabled,
|
|
99
|
+
readOnly: field?.readOnly,
|
|
100
|
+
required: field?.required,
|
|
101
|
+
invalid: field?.invalid,
|
|
102
|
+
dir,
|
|
103
|
+
locale,
|
|
104
|
+
getRootNode,
|
|
105
|
+
...props
|
|
106
|
+
};
|
|
107
|
+
const service = useMachine(numberInput.machine, machineProps);
|
|
108
|
+
return numberInput.connect(service, normalizeProps);
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/number-input/number-input-root.tsx
|
|
113
|
+
const splitRootProps = createSplitProps();
|
|
114
|
+
const NumberInputRoot = forwardRef((props, ref) => {
|
|
115
|
+
const [useNumberInputProps, localProps] = splitRootProps(props, [
|
|
116
|
+
"allowMouseWheel",
|
|
117
|
+
"allowOverflow",
|
|
118
|
+
"clampValueOnBlur",
|
|
119
|
+
"defaultValue",
|
|
120
|
+
"disabled",
|
|
121
|
+
"focusInputOnChange",
|
|
122
|
+
"form",
|
|
123
|
+
"formatOptions",
|
|
124
|
+
"id",
|
|
125
|
+
"ids",
|
|
126
|
+
"inputMode",
|
|
127
|
+
"invalid",
|
|
128
|
+
"locale",
|
|
129
|
+
"max",
|
|
130
|
+
"min",
|
|
131
|
+
"name",
|
|
132
|
+
"onFocusChange",
|
|
133
|
+
"onValueChange",
|
|
134
|
+
"onValueCommit",
|
|
135
|
+
"onValueInvalid",
|
|
136
|
+
"pattern",
|
|
137
|
+
"readOnly",
|
|
138
|
+
"required",
|
|
139
|
+
"spinOnPress",
|
|
140
|
+
"step",
|
|
141
|
+
"translations",
|
|
142
|
+
"value"
|
|
143
|
+
]);
|
|
144
|
+
const numberInput$1 = useNumberInput(useNumberInputProps);
|
|
145
|
+
const mergedProps = mergeProps(numberInput$1.getRootProps(), localProps);
|
|
146
|
+
return /* @__PURE__ */ jsx(NumberInputProvider, {
|
|
147
|
+
value: numberInput$1,
|
|
148
|
+
children: /* @__PURE__ */ jsx(sprawlify.div, {
|
|
149
|
+
...mergedProps,
|
|
150
|
+
ref
|
|
151
|
+
})
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
NumberInputRoot.displayName = "NumberInputRoot";
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/components/number-input/number-input-root-provider.tsx
|
|
158
|
+
const splitRootProviderProps = createSplitProps();
|
|
159
|
+
const NumberInputRootProvider = forwardRef((props, ref) => {
|
|
160
|
+
const [{ value: numberInput$1 }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
161
|
+
const mergedProps = mergeProps(numberInput$1.getRootProps(), localProps);
|
|
162
|
+
return /* @__PURE__ */ jsx(NumberInputProvider, {
|
|
163
|
+
value: numberInput$1,
|
|
164
|
+
children: /* @__PURE__ */ jsx(sprawlify.div, {
|
|
165
|
+
...mergedProps,
|
|
166
|
+
ref
|
|
167
|
+
})
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
NumberInputRootProvider.displayName = "NumberInputRootProvider";
|
|
171
|
+
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/components/number-input/number-input-scrubber.tsx
|
|
174
|
+
const NumberInputScrubber = forwardRef((props, ref) => {
|
|
175
|
+
const mergedProps = mergeProps(useNumberInputContext().getScrubberProps(), props);
|
|
176
|
+
return /* @__PURE__ */ jsx(sprawlify.div, {
|
|
177
|
+
...mergedProps,
|
|
178
|
+
ref
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
NumberInputScrubber.displayName = "NumberInputScrubber";
|
|
182
|
+
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/components/number-input/number-input-value-text.tsx
|
|
185
|
+
const NumberInputValueText = forwardRef((props, ref) => {
|
|
186
|
+
const { children, ...localProps } = props;
|
|
187
|
+
const numberInput$1 = useNumberInputContext();
|
|
188
|
+
const mergedProps = mergeProps(numberInput$1.getValueTextProps(), localProps);
|
|
189
|
+
return /* @__PURE__ */ jsx(sprawlify.span, {
|
|
190
|
+
...mergedProps,
|
|
191
|
+
ref,
|
|
192
|
+
children: children || numberInput$1.value
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
NumberInputValueText.displayName = "NumberInputValueText";
|
|
196
|
+
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/number-input/number-input.ts
|
|
199
|
+
var number_input_exports = /* @__PURE__ */ __export({
|
|
200
|
+
Context: () => NumberInputContext,
|
|
201
|
+
Control: () => NumberInputControl,
|
|
202
|
+
DecrementTrigger: () => NumberInputDecrementTrigger,
|
|
203
|
+
IncrementTrigger: () => NumberInputIncrementTrigger,
|
|
204
|
+
Input: () => NumberInputInput,
|
|
205
|
+
Label: () => NumberInputLabel,
|
|
206
|
+
Root: () => NumberInputRoot,
|
|
207
|
+
RootProvider: () => NumberInputRootProvider,
|
|
208
|
+
Scrubber: () => NumberInputScrubber,
|
|
209
|
+
ValueText: () => NumberInputValueText
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
//#endregion
|
|
213
|
+
export { number_input_exports as NumberInput, NumberInputContext, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputRoot, NumberInputRootProvider, NumberInputScrubber, NumberInputValueText, numberInputAnatomy, useNumberInput, useNumberInputContext };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
const require_chunk = require('../../chunk-BYnRvbsk.cjs');
|
|
2
|
+
const require_core = require('../../core-DCWyxy9D.cjs');
|
|
3
|
+
const require_create_context = require('../../create-context-CQ4U0lLj.cjs');
|
|
4
|
+
const require_environment = require('../../environment-CvilmfQt.cjs');
|
|
5
|
+
const require_locale = require('../../locale-BcnWD1Hf.cjs');
|
|
6
|
+
require('../../providers-BNAArubQ.cjs');
|
|
7
|
+
const require_factory = require('../../factory-C166evrS.cjs');
|
|
8
|
+
const require_create_split_props = require('../../create-split-props-Dp4TWOyM.cjs');
|
|
9
|
+
let react = require("react");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let __sprawlify_primitives_machines_pagination = require("@sprawlify/primitives/machines/pagination");
|
|
12
|
+
__sprawlify_primitives_machines_pagination = require_chunk.__toESM(__sprawlify_primitives_machines_pagination);
|
|
13
|
+
let __sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
14
|
+
|
|
15
|
+
//#region src/components/pagination/use-pagination-context.ts
|
|
16
|
+
const [PaginationProvider, usePaginationContext] = require_create_context.createContext({
|
|
17
|
+
name: "PaginationContext",
|
|
18
|
+
hookName: "usePaginationContext",
|
|
19
|
+
providerName: "<PaginationProvider />"
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/pagination/pagination-context.tsx
|
|
24
|
+
const PaginationContext = (props) => props.children(usePaginationContext());
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/pagination/pagination-ellipsis.tsx
|
|
28
|
+
const splitEllipsisProps = require_create_split_props.createSplitProps();
|
|
29
|
+
const PaginationEllipsis = (0, react.forwardRef)((props, ref) => {
|
|
30
|
+
const [ellipsisProps, localProps] = splitEllipsisProps(props, ["index"]);
|
|
31
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(usePaginationContext().getEllipsisProps(ellipsisProps), localProps);
|
|
32
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
33
|
+
...mergedProps,
|
|
34
|
+
ref
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/pagination/pagination-first-trigger.tsx
|
|
41
|
+
const PaginationFirstTrigger = (0, react.forwardRef)((props, ref) => {
|
|
42
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(usePaginationContext().getFirstTriggerProps(), props);
|
|
43
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
44
|
+
...mergedProps,
|
|
45
|
+
ref
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
PaginationFirstTrigger.displayName = "PaginationFirstTrigger";
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/pagination/pagination-item.tsx
|
|
52
|
+
const splitItemProps = require_create_split_props.createSplitProps();
|
|
53
|
+
const PaginationItem = (0, react.forwardRef)((props, ref) => {
|
|
54
|
+
const [itemProps, localProps] = splitItemProps(props, ["value", "type"]);
|
|
55
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(usePaginationContext().getItemProps(itemProps), localProps);
|
|
56
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
57
|
+
...mergedProps,
|
|
58
|
+
ref
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
PaginationItem.displayName = "PaginationItem";
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/pagination/pagination-last-trigger.tsx
|
|
65
|
+
const PaginationLastTrigger = (0, react.forwardRef)((props, ref) => {
|
|
66
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(usePaginationContext().getLastTriggerProps(), props);
|
|
67
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
68
|
+
...mergedProps,
|
|
69
|
+
ref
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
PaginationLastTrigger.displayName = "PaginationLastTrigger";
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/pagination/pagination-next-trigger.tsx
|
|
76
|
+
const PaginationNextTrigger = (0, react.forwardRef)((props, ref) => {
|
|
77
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(usePaginationContext().getNextTriggerProps(), props);
|
|
78
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
79
|
+
...mergedProps,
|
|
80
|
+
ref
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
PaginationNextTrigger.displayName = "PaginationNextTrigger";
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/pagination/pagination-prev-trigger.tsx
|
|
87
|
+
const PaginationPrevTrigger = (0, react.forwardRef)((props, ref) => {
|
|
88
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(usePaginationContext().getPrevTriggerProps(), props);
|
|
89
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.button, {
|
|
90
|
+
...mergedProps,
|
|
91
|
+
ref
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
PaginationPrevTrigger.displayName = "PaginationPrevTrigger";
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/pagination/use-pagination.ts
|
|
98
|
+
const usePagination = (props) => {
|
|
99
|
+
const id = (0, react.useId)();
|
|
100
|
+
const { getRootNode } = require_environment.useEnvironmentContext();
|
|
101
|
+
const { dir } = require_locale.useLocaleContext();
|
|
102
|
+
const machineProps = {
|
|
103
|
+
id,
|
|
104
|
+
dir,
|
|
105
|
+
getRootNode,
|
|
106
|
+
...props
|
|
107
|
+
};
|
|
108
|
+
const service = require_core.useMachine(__sprawlify_primitives_machines_pagination.machine, machineProps);
|
|
109
|
+
return __sprawlify_primitives_machines_pagination.connect(service, require_core.normalizeProps);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/pagination/pagination-root.tsx
|
|
114
|
+
const splitRootProps = require_create_split_props.createSplitProps();
|
|
115
|
+
const PaginationRoot = (0, react.forwardRef)((props, ref) => {
|
|
116
|
+
const [paginationProps, localProps] = splitRootProps(props, [
|
|
117
|
+
"boundaryCount",
|
|
118
|
+
"count",
|
|
119
|
+
"defaultPage",
|
|
120
|
+
"defaultPageSize",
|
|
121
|
+
"getPageUrl",
|
|
122
|
+
"id",
|
|
123
|
+
"ids",
|
|
124
|
+
"onPageChange",
|
|
125
|
+
"onPageSizeChange",
|
|
126
|
+
"page",
|
|
127
|
+
"pageSize",
|
|
128
|
+
"siblingCount",
|
|
129
|
+
"translations",
|
|
130
|
+
"type"
|
|
131
|
+
]);
|
|
132
|
+
const pagination = usePagination(paginationProps);
|
|
133
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(pagination.getRootProps(), localProps);
|
|
134
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PaginationProvider, {
|
|
135
|
+
value: pagination,
|
|
136
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.nav, {
|
|
137
|
+
...mergedProps,
|
|
138
|
+
ref
|
|
139
|
+
})
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
PaginationRoot.displayName = "PaginationRoot";
|
|
143
|
+
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/components/pagination/pagination-root-provider.tsx
|
|
146
|
+
const splitRootProviderProps = require_create_split_props.createSplitProps();
|
|
147
|
+
const PaginationRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
148
|
+
const [{ value: pagination }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
149
|
+
const mergedProps = (0, __sprawlify_primitives_core.mergeProps)(pagination.getRootProps(), localProps);
|
|
150
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PaginationProvider, {
|
|
151
|
+
value: pagination,
|
|
152
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.nav, {
|
|
153
|
+
...mergedProps,
|
|
154
|
+
ref
|
|
155
|
+
})
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
PaginationRootProvider.displayName = "PaginationRootProvider";
|
|
159
|
+
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/components/pagination/pagination.ts
|
|
162
|
+
var pagination_exports = /* @__PURE__ */ require_chunk.__export({
|
|
163
|
+
Context: () => PaginationContext,
|
|
164
|
+
Ellipsis: () => PaginationEllipsis,
|
|
165
|
+
FirstTrigger: () => PaginationFirstTrigger,
|
|
166
|
+
Item: () => PaginationItem,
|
|
167
|
+
LastTrigger: () => PaginationLastTrigger,
|
|
168
|
+
NextTrigger: () => PaginationNextTrigger,
|
|
169
|
+
PrevTrigger: () => PaginationPrevTrigger,
|
|
170
|
+
Root: () => PaginationRoot,
|
|
171
|
+
RootProvider: () => PaginationRootProvider
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
//#endregion
|
|
175
|
+
Object.defineProperty(exports, 'Pagination', {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () {
|
|
178
|
+
return pagination_exports;
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
exports.PaginationContext = PaginationContext;
|
|
182
|
+
exports.PaginationEllipsis = PaginationEllipsis;
|
|
183
|
+
exports.PaginationFirstTrigger = PaginationFirstTrigger;
|
|
184
|
+
exports.PaginationItem = PaginationItem;
|
|
185
|
+
exports.PaginationLastTrigger = PaginationLastTrigger;
|
|
186
|
+
exports.PaginationNextTrigger = PaginationNextTrigger;
|
|
187
|
+
exports.PaginationPrevTrigger = PaginationPrevTrigger;
|
|
188
|
+
exports.PaginationRoot = PaginationRoot;
|
|
189
|
+
exports.PaginationRootProvider = PaginationRootProvider;
|
|
190
|
+
Object.defineProperty(exports, 'paginationAnatomy', {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () {
|
|
193
|
+
return __sprawlify_primitives_machines_pagination.anatomy;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
exports.usePagination = usePagination;
|
|
197
|
+
exports.usePaginationContext = usePaginationContext;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as PropTypes } from "../../normalize-props-Dw0EepzR.cjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-DcUAwTQC.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-fcFI3pbG.cjs";
|
|
4
|
+
import * as react286 from "react";
|
|
5
|
+
import { ReactNode } from "react";
|
|
6
|
+
import * as pagination from "@sprawlify/primitives/machines/pagination";
|
|
7
|
+
import { EllipsisProps, ItemLabelDetails, ItemLabelDetails as PaginationItemLabelDetails, ItemProps, PageChangeDetails, PageChangeDetails as PaginationPageChangeDetails, PageSizeChangeDetails, PageSizeChangeDetails as PaginationPageSizeChangeDetails, PageUrlDetails, PageUrlDetails as PaginationPageUrlDetails, anatomy as paginationAnatomy } from "@sprawlify/primitives/machines/pagination";
|
|
8
|
+
|
|
9
|
+
//#region src/components/pagination/use-pagination.d.ts
|
|
10
|
+
interface UsePaginationProps extends Optional<Omit<pagination.Props, "dir" | "getRootNode">, "id"> {}
|
|
11
|
+
interface UsePaginationReturn extends pagination.Api<PropTypes> {}
|
|
12
|
+
declare const usePagination: (props?: UsePaginationProps) => UsePaginationReturn;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/pagination/use-pagination-context.d.ts
|
|
15
|
+
interface UsePaginationContext extends UsePaginationReturn {}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/pagination/pagination-context.d.ts
|
|
18
|
+
interface PaginationContextProps {
|
|
19
|
+
children: (context: UsePaginationContext) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const PaginationContext: (props: PaginationContextProps) => ReactNode;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/pagination/pagination-ellipsis.d.ts
|
|
24
|
+
interface PaginationEllipsisBaseProps extends EllipsisProps, PolymorphicProps {}
|
|
25
|
+
interface PaginationEllipsisProps extends HTMLProps<"div">, PaginationEllipsisBaseProps {}
|
|
26
|
+
declare const PaginationEllipsis: react286.ForwardRefExoticComponent<PaginationEllipsisProps & react286.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/pagination/pagination-first-trigger.d.ts
|
|
29
|
+
interface PaginationFirstTriggerBaseProps extends PolymorphicProps {}
|
|
30
|
+
interface PaginationFirstTriggerProps extends HTMLProps<"button">, PaginationFirstTriggerBaseProps {}
|
|
31
|
+
declare const PaginationFirstTrigger: react286.ForwardRefExoticComponent<PaginationFirstTriggerProps & react286.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/pagination/pagination-item.d.ts
|
|
34
|
+
interface PaginationItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
35
|
+
interface PaginationItemProps extends Assign<HTMLProps<"button">, PaginationItemBaseProps> {}
|
|
36
|
+
declare const PaginationItem: react286.ForwardRefExoticComponent<PaginationItemProps & react286.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/pagination/pagination-last-trigger.d.ts
|
|
39
|
+
interface PaginationLastTriggerBaseProps extends PolymorphicProps {}
|
|
40
|
+
interface PaginationLastTriggerProps extends HTMLProps<"button">, PaginationLastTriggerBaseProps {}
|
|
41
|
+
declare const PaginationLastTrigger: react286.ForwardRefExoticComponent<PaginationLastTriggerProps & react286.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/pagination/pagination-next-trigger.d.ts
|
|
44
|
+
interface PaginationNextTriggerBaseProps extends PolymorphicProps {}
|
|
45
|
+
interface PaginationNextTriggerProps extends HTMLProps<"button">, PaginationNextTriggerBaseProps {}
|
|
46
|
+
declare const PaginationNextTrigger: react286.ForwardRefExoticComponent<PaginationNextTriggerProps & react286.RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/pagination/pagination-prev-trigger.d.ts
|
|
49
|
+
interface PaginationPrevTriggerBaseProps extends PolymorphicProps {}
|
|
50
|
+
interface PaginationPrevTriggerProps extends HTMLProps<"button">, PaginationPrevTriggerBaseProps {}
|
|
51
|
+
declare const PaginationPrevTrigger: react286.ForwardRefExoticComponent<PaginationPrevTriggerProps & react286.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/pagination/pagination-root.d.ts
|
|
54
|
+
interface PaginationRootBaseProps extends UsePaginationProps, PolymorphicProps {}
|
|
55
|
+
interface PaginationRootProps extends HTMLProps<"nav">, PaginationRootBaseProps {}
|
|
56
|
+
declare const PaginationRoot: react286.ForwardRefExoticComponent<PaginationRootProps & react286.RefAttributes<HTMLElement>>;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/pagination/pagination-root-provider.d.ts
|
|
59
|
+
interface RootProviderProps {
|
|
60
|
+
value: UsePaginationReturn;
|
|
61
|
+
}
|
|
62
|
+
interface PaginationRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
63
|
+
interface PaginationRootProviderProps extends HTMLProps<"nav">, PaginationRootProviderBaseProps {}
|
|
64
|
+
declare const PaginationRootProvider: react286.ForwardRefExoticComponent<PaginationRootProviderProps & react286.RefAttributes<HTMLElement>>;
|
|
65
|
+
declare namespace pagination_d_exports {
|
|
66
|
+
export { PaginationContext as Context, PaginationContextProps as ContextProps, PaginationEllipsis as Ellipsis, PaginationEllipsisBaseProps as EllipsisBaseProps, PaginationEllipsisProps as EllipsisProps, PaginationFirstTrigger as FirstTrigger, PaginationFirstTriggerBaseProps as FirstTriggerBaseProps, PaginationFirstTriggerProps as FirstTriggerProps, PaginationItem as Item, PaginationItemBaseProps as ItemBaseProps, ItemLabelDetails, PaginationItemProps as ItemProps, PaginationLastTrigger as LastTrigger, PaginationLastTriggerBaseProps as LastTriggerBaseProps, PaginationLastTriggerProps as LastTriggerProps, PaginationNextTrigger as NextTrigger, PaginationNextTriggerBaseProps as NextTriggerBaseProps, PaginationNextTriggerProps as NextTriggerProps, PageChangeDetails, PageSizeChangeDetails, PageUrlDetails, PaginationPrevTrigger as PrevTrigger, PaginationPrevTriggerBaseProps as PrevTriggerBaseProps, PaginationPrevTriggerProps as PrevTriggerProps, PaginationRoot as Root, PaginationRootBaseProps as RootBaseProps, PaginationRootProps as RootProps, PaginationRootProvider as RootProvider, PaginationRootProviderBaseProps as RootProviderBaseProps, PaginationRootProviderProps as RootProviderProps };
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { pagination_d_exports as Pagination, PaginationContext, type PaginationContextProps, PaginationEllipsis, type PaginationEllipsisBaseProps, type PaginationEllipsisProps, PaginationFirstTrigger, type PaginationFirstTriggerBaseProps, type PaginationFirstTriggerProps, PaginationItem, type PaginationItemBaseProps, type PaginationItemLabelDetails, type PaginationItemProps, PaginationLastTrigger, type PaginationLastTriggerBaseProps, type PaginationLastTriggerProps, PaginationNextTrigger, type PaginationNextTriggerBaseProps, type PaginationNextTriggerProps, type PaginationPageChangeDetails, type PaginationPageSizeChangeDetails, type PaginationPageUrlDetails, PaginationPrevTrigger, type PaginationPrevTriggerBaseProps, type PaginationPrevTriggerProps, PaginationRoot, type PaginationRootBaseProps, type PaginationRootProps, PaginationRootProvider, type PaginationRootProviderBaseProps, type PaginationRootProviderProps, type UsePaginationContext, type UsePaginationProps, type UsePaginationReturn, paginationAnatomy, usePagination, usePaginationContext };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { r as PropTypes } from "../../index-BLd57Y0z.mjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-CrwpJrFp.mjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-DaVlp4Ba.mjs";
|
|
4
|
+
import * as react465 from "react";
|
|
5
|
+
import { ReactNode } from "react";
|
|
6
|
+
import * as pagination from "@sprawlify/primitives/machines/pagination";
|
|
7
|
+
import { EllipsisProps, ItemLabelDetails, ItemLabelDetails as PaginationItemLabelDetails, ItemProps, PageChangeDetails, PageChangeDetails as PaginationPageChangeDetails, PageSizeChangeDetails, PageSizeChangeDetails as PaginationPageSizeChangeDetails, PageUrlDetails, PageUrlDetails as PaginationPageUrlDetails, anatomy as paginationAnatomy } from "@sprawlify/primitives/machines/pagination";
|
|
8
|
+
|
|
9
|
+
//#region src/components/pagination/use-pagination.d.ts
|
|
10
|
+
interface UsePaginationProps extends Optional<Omit<pagination.Props, "dir" | "getRootNode">, "id"> {}
|
|
11
|
+
interface UsePaginationReturn extends pagination.Api<PropTypes> {}
|
|
12
|
+
declare const usePagination: (props?: UsePaginationProps) => UsePaginationReturn;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/pagination/use-pagination-context.d.ts
|
|
15
|
+
interface UsePaginationContext extends UsePaginationReturn {}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/pagination/pagination-context.d.ts
|
|
18
|
+
interface PaginationContextProps {
|
|
19
|
+
children: (context: UsePaginationContext) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const PaginationContext: (props: PaginationContextProps) => ReactNode;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/pagination/pagination-ellipsis.d.ts
|
|
24
|
+
interface PaginationEllipsisBaseProps extends EllipsisProps, PolymorphicProps {}
|
|
25
|
+
interface PaginationEllipsisProps extends HTMLProps<"div">, PaginationEllipsisBaseProps {}
|
|
26
|
+
declare const PaginationEllipsis: react465.ForwardRefExoticComponent<PaginationEllipsisProps & react465.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/pagination/pagination-first-trigger.d.ts
|
|
29
|
+
interface PaginationFirstTriggerBaseProps extends PolymorphicProps {}
|
|
30
|
+
interface PaginationFirstTriggerProps extends HTMLProps<"button">, PaginationFirstTriggerBaseProps {}
|
|
31
|
+
declare const PaginationFirstTrigger: react465.ForwardRefExoticComponent<PaginationFirstTriggerProps & react465.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/pagination/pagination-item.d.ts
|
|
34
|
+
interface PaginationItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
35
|
+
interface PaginationItemProps extends Assign<HTMLProps<"button">, PaginationItemBaseProps> {}
|
|
36
|
+
declare const PaginationItem: react465.ForwardRefExoticComponent<PaginationItemProps & react465.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/pagination/pagination-last-trigger.d.ts
|
|
39
|
+
interface PaginationLastTriggerBaseProps extends PolymorphicProps {}
|
|
40
|
+
interface PaginationLastTriggerProps extends HTMLProps<"button">, PaginationLastTriggerBaseProps {}
|
|
41
|
+
declare const PaginationLastTrigger: react465.ForwardRefExoticComponent<PaginationLastTriggerProps & react465.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/pagination/pagination-next-trigger.d.ts
|
|
44
|
+
interface PaginationNextTriggerBaseProps extends PolymorphicProps {}
|
|
45
|
+
interface PaginationNextTriggerProps extends HTMLProps<"button">, PaginationNextTriggerBaseProps {}
|
|
46
|
+
declare const PaginationNextTrigger: react465.ForwardRefExoticComponent<PaginationNextTriggerProps & react465.RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/pagination/pagination-prev-trigger.d.ts
|
|
49
|
+
interface PaginationPrevTriggerBaseProps extends PolymorphicProps {}
|
|
50
|
+
interface PaginationPrevTriggerProps extends HTMLProps<"button">, PaginationPrevTriggerBaseProps {}
|
|
51
|
+
declare const PaginationPrevTrigger: react465.ForwardRefExoticComponent<PaginationPrevTriggerProps & react465.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/pagination/pagination-root.d.ts
|
|
54
|
+
interface PaginationRootBaseProps extends UsePaginationProps, PolymorphicProps {}
|
|
55
|
+
interface PaginationRootProps extends HTMLProps<"nav">, PaginationRootBaseProps {}
|
|
56
|
+
declare const PaginationRoot: react465.ForwardRefExoticComponent<PaginationRootProps & react465.RefAttributes<HTMLElement>>;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/pagination/pagination-root-provider.d.ts
|
|
59
|
+
interface RootProviderProps {
|
|
60
|
+
value: UsePaginationReturn;
|
|
61
|
+
}
|
|
62
|
+
interface PaginationRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
63
|
+
interface PaginationRootProviderProps extends HTMLProps<"nav">, PaginationRootProviderBaseProps {}
|
|
64
|
+
declare const PaginationRootProvider: react465.ForwardRefExoticComponent<PaginationRootProviderProps & react465.RefAttributes<HTMLElement>>;
|
|
65
|
+
declare namespace pagination_d_exports {
|
|
66
|
+
export { PaginationContext as Context, PaginationContextProps as ContextProps, PaginationEllipsis as Ellipsis, PaginationEllipsisBaseProps as EllipsisBaseProps, PaginationEllipsisProps as EllipsisProps, PaginationFirstTrigger as FirstTrigger, PaginationFirstTriggerBaseProps as FirstTriggerBaseProps, PaginationFirstTriggerProps as FirstTriggerProps, PaginationItem as Item, PaginationItemBaseProps as ItemBaseProps, ItemLabelDetails, PaginationItemProps as ItemProps, PaginationLastTrigger as LastTrigger, PaginationLastTriggerBaseProps as LastTriggerBaseProps, PaginationLastTriggerProps as LastTriggerProps, PaginationNextTrigger as NextTrigger, PaginationNextTriggerBaseProps as NextTriggerBaseProps, PaginationNextTriggerProps as NextTriggerProps, PageChangeDetails, PageSizeChangeDetails, PageUrlDetails, PaginationPrevTrigger as PrevTrigger, PaginationPrevTriggerBaseProps as PrevTriggerBaseProps, PaginationPrevTriggerProps as PrevTriggerProps, PaginationRoot as Root, PaginationRootBaseProps as RootBaseProps, PaginationRootProps as RootProps, PaginationRootProvider as RootProvider, PaginationRootProviderBaseProps as RootProviderBaseProps, PaginationRootProviderProps as RootProviderProps };
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { pagination_d_exports as Pagination, PaginationContext, type PaginationContextProps, PaginationEllipsis, type PaginationEllipsisBaseProps, type PaginationEllipsisProps, PaginationFirstTrigger, type PaginationFirstTriggerBaseProps, type PaginationFirstTriggerProps, PaginationItem, type PaginationItemBaseProps, type PaginationItemLabelDetails, type PaginationItemProps, PaginationLastTrigger, type PaginationLastTriggerBaseProps, type PaginationLastTriggerProps, PaginationNextTrigger, type PaginationNextTriggerBaseProps, type PaginationNextTriggerProps, type PaginationPageChangeDetails, type PaginationPageSizeChangeDetails, type PaginationPageUrlDetails, PaginationPrevTrigger, type PaginationPrevTriggerBaseProps, type PaginationPrevTriggerProps, PaginationRoot, type PaginationRootBaseProps, type PaginationRootProps, PaginationRootProvider, type PaginationRootProviderBaseProps, type PaginationRootProviderProps, type UsePaginationContext, type UsePaginationProps, type UsePaginationReturn, paginationAnatomy, usePagination, usePaginationContext };
|