@szum-tech/design-system 3.21.0 → 3.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-23A6WFUV.js +1 -0
- package/dist/chunk-2AH7SOV6.js +1 -0
- package/dist/chunk-2C332B6Y.js +1 -0
- package/dist/chunk-2JMM4NLZ.js +1 -0
- package/dist/chunk-2N7WPWTQ.cjs +1 -0
- package/dist/chunk-4HJVF7MU.js +1 -0
- package/dist/chunk-4P7FA4TE.js +1 -0
- package/dist/chunk-4UKYFAUY.js +1 -0
- package/dist/chunk-5NM76GZC.js +1 -0
- package/dist/chunk-5VGX66EU.cjs +1 -0
- package/dist/chunk-67GWWN7I.js +1 -0
- package/dist/chunk-6WS6H4C4.js +1 -0
- package/dist/chunk-7BQ6EL6M.js +1 -0
- package/dist/chunk-7R2T3GNS.cjs +1 -0
- package/dist/chunk-7Y7RKESQ.cjs +1 -0
- package/dist/chunk-A6LUHJMH.cjs +1 -0
- package/dist/chunk-AICUVCRQ.cjs +1 -0
- package/dist/chunk-AKN26JEV.js +1 -0
- package/dist/chunk-AVJKAASP.js +1 -0
- package/dist/chunk-B2ZOXJNN.js +1 -0
- package/dist/chunk-BKY5LQPI.cjs +1 -0
- package/dist/chunk-BRJDOXUG.cjs +1 -0
- package/dist/chunk-BW4UM36V.cjs +1 -0
- package/dist/chunk-DGPWM6UM.cjs +1 -0
- package/dist/chunk-DPQJSMYF.js +1 -0
- package/dist/chunk-ERFTRXVE.cjs +1 -0
- package/dist/chunk-ES2TETW4.js +1 -0
- package/dist/chunk-EU6HYEPG.cjs +1 -0
- package/dist/chunk-F3K5ZFQ6.cjs +1 -0
- package/dist/chunk-FC6LMBMW.cjs +1 -0
- package/dist/chunk-FQARF7UI.cjs +1 -0
- package/dist/chunk-FS2PQIQR.cjs +1 -0
- package/dist/chunk-G3YTZWUP.cjs +1 -0
- package/dist/chunk-G7AVPKVK.js +1 -0
- package/dist/chunk-GY6X4JNZ.cjs +1 -0
- package/dist/chunk-HCZZVUIL.js +1 -0
- package/dist/chunk-HQ5NRJNW.js +1 -0
- package/dist/chunk-I34YETHP.js +1 -0
- package/dist/chunk-ICTWPCCZ.js +1 -0
- package/dist/chunk-IL2G4IA6.cjs +1 -0
- package/dist/chunk-IPNUUONG.cjs +1 -0
- package/dist/chunk-ISJX4DHQ.cjs +1 -0
- package/dist/chunk-J56ALTTI.cjs +1 -0
- package/dist/chunk-JDTFVC5U.cjs +1 -0
- package/dist/chunk-JJSNMSDN.js +1 -0
- package/dist/chunk-JQ6RITJD.js +1 -0
- package/dist/chunk-JSNRCKEQ.cjs +1 -0
- package/dist/chunk-KJ2NS3A4.cjs +1 -0
- package/dist/chunk-KK77ZUTM.js +3 -0
- package/dist/chunk-KKNWNP5K.cjs +1 -0
- package/dist/chunk-KSOL4P3N.cjs +1 -0
- package/dist/chunk-KXDY6F4D.cjs +1 -0
- package/dist/chunk-L3KN3OD6.cjs +1 -0
- package/dist/chunk-LFLKBQME.js +1 -0
- package/dist/chunk-LINRYPF6.js +1 -0
- package/dist/chunk-MGZN4ZZO.js +1 -0
- package/dist/chunk-MYAWR6XV.js +1 -0
- package/dist/chunk-MYUGJK5W.cjs +1 -0
- package/dist/chunk-NCYJMBQ4.js +1 -0
- package/dist/chunk-NDNN5OPT.cjs +1 -0
- package/dist/chunk-NIEMIU4R.js +1 -0
- package/dist/chunk-NLG2SYHK.js +1 -0
- package/dist/chunk-OGXLOWOW.cjs +1 -0
- package/dist/chunk-ORBKSP3P.cjs +1 -0
- package/dist/chunk-OSZ23462.cjs +1 -0
- package/dist/chunk-P6UGMTHQ.cjs +1 -0
- package/dist/chunk-PM47QWBS.cjs +1 -0
- package/dist/chunk-PRZYYO6K.cjs +1 -0
- package/dist/chunk-PWLEYC64.cjs +1 -0
- package/dist/chunk-PX2ODQJ5.js +1 -0
- package/dist/chunk-QEOKSP3L.js +1 -0
- package/dist/chunk-QG3K5AP4.cjs +1 -0
- package/dist/chunk-R34KUOGG.cjs +1 -0
- package/dist/chunk-RGM4EGHK.js +1 -0
- package/dist/chunk-RHSJDTHB.js +1 -0
- package/dist/chunk-RLIRZKVF.js +1 -0
- package/dist/chunk-RLQVCUZA.js +1 -0
- package/dist/chunk-RX2UDFWI.js +1 -0
- package/dist/chunk-RX7KJRET.cjs +1 -0
- package/dist/chunk-T5OEYINH.cjs +1 -0
- package/dist/chunk-TGXACNQG.js +1 -0
- package/dist/chunk-TKQZPNBC.js +1 -0
- package/dist/chunk-UDPDQIUS.js +1 -0
- package/dist/chunk-UR3YFSC4.js +1 -0
- package/dist/chunk-W5V46XEQ.js +1 -0
- package/dist/chunk-WIJQKN43.js +1 -0
- package/dist/chunk-WOP2SCMO.cjs +1 -0
- package/dist/chunk-WOZD6EGQ.cjs +1 -0
- package/dist/chunk-X3G5BCY6.js +1 -0
- package/dist/chunk-X3NAZA44.js +1 -0
- package/dist/chunk-XA5JQP6T.cjs +1 -0
- package/dist/chunk-XFXHNSWP.cjs +1 -0
- package/dist/chunk-XKHU627O.js +1 -0
- package/dist/chunk-YN55O3IX.cjs +1 -0
- package/dist/chunk-Z3EMAPPK.js +1 -0
- package/dist/chunk-ZGDGO7ES.cjs +3 -0
- package/dist/chunk-ZGZS5I45.js +1 -0
- package/dist/chunk-ZJFDF26G.cjs +1 -0
- package/dist/color-picker.types-GI7dq2Ig.d.cts +42 -0
- package/dist/color-picker.types-GI7dq2Ig.d.ts +42 -0
- package/dist/components/accordion/index.cjs +3 -0
- package/dist/components/accordion/index.d.cts +17 -0
- package/dist/components/accordion/index.d.ts +17 -0
- package/dist/components/accordion/index.js +3 -0
- package/dist/components/alert/index.cjs +3 -0
- package/dist/components/alert/index.d.cts +24 -0
- package/dist/components/alert/index.d.ts +24 -0
- package/dist/components/alert/index.js +3 -0
- package/dist/components/alert-dialog/index.cjs +3 -0
- package/dist/components/alert-dialog/index.d.cts +48 -0
- package/dist/components/alert-dialog/index.d.ts +48 -0
- package/dist/components/alert-dialog/index.js +3 -0
- package/dist/components/avatar/index.cjs +3 -0
- package/dist/components/avatar/index.d.cts +14 -0
- package/dist/components/avatar/index.d.ts +14 -0
- package/dist/components/avatar/index.js +3 -0
- package/dist/components/badge/index.cjs +3 -0
- package/dist/components/badge/index.d.cts +28 -0
- package/dist/components/badge/index.d.ts +28 -0
- package/dist/components/badge/index.js +3 -0
- package/dist/components/badge-overflow/index.cjs +3 -0
- package/dist/components/badge-overflow/index.d.cts +21 -0
- package/dist/components/badge-overflow/index.d.ts +21 -0
- package/dist/components/badge-overflow/index.js +3 -0
- package/dist/components/breadcrump/index.cjs +3 -0
- package/dist/components/breadcrump/index.d.cts +21 -0
- package/dist/components/breadcrump/index.d.ts +21 -0
- package/dist/components/breadcrump/index.js +3 -0
- package/dist/components/button/index.cjs +3 -0
- package/dist/components/button/index.d.cts +54 -0
- package/dist/components/button/index.d.ts +54 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button-group/index.cjs +3 -0
- package/dist/components/button-group/index.d.cts +28 -0
- package/dist/components/button-group/index.d.ts +28 -0
- package/dist/components/button-group/index.js +3 -0
- package/dist/components/card/index.cjs +3 -0
- package/dist/components/card/index.d.cts +25 -0
- package/dist/components/card/index.d.ts +25 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/carousel/index.cjs +3 -0
- package/dist/components/carousel/index.d.cts +48 -0
- package/dist/components/carousel/index.d.ts +48 -0
- package/dist/components/carousel/index.js +3 -0
- package/dist/components/checkbox/index.cjs +3 -0
- package/dist/components/checkbox/index.d.cts +8 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/index.js +3 -0
- package/dist/components/collapsible/index.cjs +3 -0
- package/dist/components/collapsible/index.d.cts +12 -0
- package/dist/components/collapsible/index.d.ts +12 -0
- package/dist/components/collapsible/index.js +3 -0
- package/dist/components/color-picker/index.cjs +3 -0
- package/dist/components/color-picker/index.d.cts +71 -0
- package/dist/components/color-picker/index.d.ts +71 -0
- package/dist/components/color-picker/index.js +3 -0
- package/dist/components/color-swatch/index.cjs +3 -0
- package/dist/components/color-swatch/index.d.cts +22 -0
- package/dist/components/color-swatch/index.d.ts +22 -0
- package/dist/components/color-swatch/index.js +3 -0
- package/dist/components/combobox/index.cjs +3 -0
- package/dist/components/combobox/index.d.cts +59 -0
- package/dist/components/combobox/index.d.ts +59 -0
- package/dist/components/combobox/index.js +3 -0
- package/dist/components/counting-number/index.cjs +3 -0
- package/dist/components/counting-number/index.d.cts +57 -0
- package/dist/components/counting-number/index.d.ts +57 -0
- package/dist/components/counting-number/index.js +3 -0
- package/dist/components/dialog/index.cjs +3 -0
- package/dist/components/dialog/index.d.cts +42 -0
- package/dist/components/dialog/index.d.ts +42 -0
- package/dist/components/dialog/index.js +3 -0
- package/dist/components/dropdown-menu/index.cjs +3 -0
- package/dist/components/dropdown-menu/index.d.cts +67 -0
- package/dist/components/dropdown-menu/index.d.ts +67 -0
- package/dist/components/dropdown-menu/index.js +3 -0
- package/dist/components/empty/index.cjs +3 -0
- package/dist/components/empty/index.d.cts +29 -0
- package/dist/components/empty/index.d.ts +29 -0
- package/dist/components/empty/index.js +3 -0
- package/dist/components/field/index.cjs +3 -0
- package/dist/components/field/index.d.cts +50 -0
- package/dist/components/field/index.d.ts +50 -0
- package/dist/components/field/index.js +3 -0
- package/dist/components/file-upload/index.cjs +3 -0
- package/dist/components/file-upload/index.d.cts +131 -0
- package/dist/components/file-upload/index.d.ts +131 -0
- package/dist/components/file-upload/index.js +3 -0
- package/dist/components/header/index.cjs +3 -0
- package/dist/components/header/index.d.cts +18 -0
- package/dist/components/header/index.d.ts +18 -0
- package/dist/components/header/index.js +3 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +67 -1785
- package/dist/components/index.d.ts +67 -1785
- package/dist/components/index.js +1 -1
- package/dist/components/input/index.cjs +3 -0
- package/dist/components/input/index.d.cts +9 -0
- package/dist/components/input/index.d.ts +9 -0
- package/dist/components/input/index.js +3 -0
- package/dist/components/input-group/index.cjs +3 -0
- package/dist/components/input-group/index.d.cts +47 -0
- package/dist/components/input-group/index.d.ts +47 -0
- package/dist/components/input-group/index.js +3 -0
- package/dist/components/item/index.cjs +3 -0
- package/dist/components/item/index.d.cts +61 -0
- package/dist/components/item/index.d.ts +61 -0
- package/dist/components/item/index.js +3 -0
- package/dist/components/kbd/index.cjs +3 -0
- package/dist/components/kbd/index.d.cts +10 -0
- package/dist/components/kbd/index.d.ts +10 -0
- package/dist/components/kbd/index.js +3 -0
- package/dist/components/label/index.cjs +3 -0
- package/dist/components/label/index.d.cts +8 -0
- package/dist/components/label/index.d.ts +8 -0
- package/dist/components/label/index.js +3 -0
- package/dist/components/marquee/index.cjs +3 -0
- package/dist/components/marquee/index.d.cts +48 -0
- package/dist/components/marquee/index.d.ts +48 -0
- package/dist/components/marquee/index.js +3 -0
- package/dist/components/masonry/index.cjs +3 -0
- package/dist/components/masonry/index.d.cts +181 -0
- package/dist/components/masonry/index.d.ts +181 -0
- package/dist/components/masonry/index.js +3 -0
- package/dist/components/pagination/index.cjs +3 -0
- package/dist/components/pagination/index.d.cts +36 -0
- package/dist/components/pagination/index.d.ts +36 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/popover/index.cjs +3 -0
- package/dist/components/popover/index.d.cts +18 -0
- package/dist/components/popover/index.d.ts +18 -0
- package/dist/components/popover/index.js +3 -0
- package/dist/components/progress/index.cjs +3 -0
- package/dist/components/progress/index.d.cts +8 -0
- package/dist/components/progress/index.d.ts +8 -0
- package/dist/components/progress/index.js +3 -0
- package/dist/components/radio-group/index.cjs +3 -0
- package/dist/components/radio-group/index.d.cts +22 -0
- package/dist/components/radio-group/index.d.ts +22 -0
- package/dist/components/radio-group/index.js +3 -0
- package/dist/components/scroll-area/index.cjs +3 -0
- package/dist/components/scroll-area/index.d.cts +11 -0
- package/dist/components/scroll-area/index.d.ts +11 -0
- package/dist/components/scroll-area/index.js +3 -0
- package/dist/components/select/index.cjs +3 -0
- package/dist/components/select/index.d.cts +22 -0
- package/dist/components/select/index.d.ts +22 -0
- package/dist/components/select/index.js +3 -0
- package/dist/components/separator/index.cjs +3 -0
- package/dist/components/separator/index.d.cts +8 -0
- package/dist/components/separator/index.d.ts +8 -0
- package/dist/components/separator/index.js +3 -0
- package/dist/components/sheet/index.cjs +3 -0
- package/dist/components/sheet/index.d.cts +42 -0
- package/dist/components/sheet/index.d.ts +42 -0
- package/dist/components/sheet/index.js +3 -0
- package/dist/components/sidebar/index.cjs +3 -0
- package/dist/components/sidebar/index.d.cts +135 -0
- package/dist/components/sidebar/index.d.ts +135 -0
- package/dist/components/sidebar/index.js +3 -0
- package/dist/components/skeleton/index.cjs +3 -0
- package/dist/components/skeleton/index.d.cts +7 -0
- package/dist/components/skeleton/index.d.ts +7 -0
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/sortable/index.cjs +3 -0
- package/dist/components/sortable/index.d.cts +50 -0
- package/dist/components/sortable/index.d.ts +50 -0
- package/dist/components/sortable/index.js +3 -0
- package/dist/components/spinner/index.cjs +3 -0
- package/dist/components/spinner/index.d.cts +7 -0
- package/dist/components/spinner/index.d.ts +7 -0
- package/dist/components/spinner/index.js +3 -0
- package/dist/components/status/index.cjs +3 -0
- package/dist/components/status/index.d.cts +25 -0
- package/dist/components/status/index.d.ts +25 -0
- package/dist/components/status/index.js +3 -0
- package/dist/components/stepper/index.cjs +3 -0
- package/dist/components/stepper/index.d.cts +164 -0
- package/dist/components/stepper/index.d.ts +164 -0
- package/dist/components/stepper/index.js +3 -0
- package/dist/components/switch/index.cjs +3 -0
- package/dist/components/switch/index.d.cts +19 -0
- package/dist/components/switch/index.d.ts +19 -0
- package/dist/components/switch/index.js +3 -0
- package/dist/components/table/index.cjs +3 -0
- package/dist/components/table/index.d.cts +28 -0
- package/dist/components/table/index.d.ts +28 -0
- package/dist/components/table/index.js +3 -0
- package/dist/components/tabs/index.cjs +3 -0
- package/dist/components/tabs/index.d.cts +28 -0
- package/dist/components/tabs/index.d.ts +28 -0
- package/dist/components/tabs/index.js +3 -0
- package/dist/components/textarea/index.cjs +3 -0
- package/dist/components/textarea/index.d.cts +9 -0
- package/dist/components/textarea/index.d.ts +9 -0
- package/dist/components/textarea/index.js +3 -0
- package/dist/components/timeline/index.cjs +3 -0
- package/dist/components/timeline/index.d.cts +63 -0
- package/dist/components/timeline/index.d.ts +63 -0
- package/dist/components/timeline/index.js +3 -0
- package/dist/components/toaster/index.cjs +3 -0
- package/dist/components/toaster/index.d.cts +8 -0
- package/dist/components/toaster/index.d.ts +8 -0
- package/dist/components/toaster/index.js +3 -0
- package/dist/components/toggle/index.cjs +3 -0
- package/dist/components/toggle/index.d.cts +14 -0
- package/dist/components/toggle/index.d.ts +14 -0
- package/dist/components/toggle/index.js +3 -0
- package/dist/components/toggle-group/index.cjs +3 -0
- package/dist/components/toggle-group/index.d.cts +27 -0
- package/dist/components/toggle-group/index.d.ts +27 -0
- package/dist/components/toggle-group/index.js +3 -0
- package/dist/components/tooltip/index.cjs +3 -0
- package/dist/components/tooltip/index.d.cts +12 -0
- package/dist/components/tooltip/index.d.ts +12 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/typing-text/index.cjs +3 -0
- package/dist/components/typing-text/index.d.cts +41 -0
- package/dist/components/typing-text/index.d.ts +41 -0
- package/dist/components/typing-text/index.js +3 -0
- package/dist/components/word-rotate/index.cjs +3 -0
- package/dist/components/word-rotate/index.d.cts +30 -0
- package/dist/components/word-rotate/index.d.ts +30 -0
- package/dist/components/word-rotate/index.js +3 -0
- package/dist/direction-CUOPDLCj.d.cts +7 -0
- package/dist/direction-CUOPDLCj.d.ts +7 -0
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/popover-trigger-Cf4PPj0z.d.cts +14 -0
- package/dist/popover-trigger-Cf4PPj0z.d.ts +14 -0
- package/dist/select-Bf6XQtt-.d.cts +12 -0
- package/dist/select-Bf6XQtt-.d.ts +12 -0
- package/dist/toggle.types-D3M8ZN2a.d.cts +13 -0
- package/dist/toggle.types-D3M8ZN2a.d.ts +13 -0
- package/dist/tooltip-content-DqtogPBq.d.cts +8 -0
- package/dist/tooltip-content-DqtogPBq.d.ts +8 -0
- package/package.json +31 -20
- package/dist/chunk-P7BFOJLM.cjs +0 -3
- package/dist/chunk-ZYG2KYKK.js +0 -3
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { Button } from '../button/index.js';
|
|
6
|
+
import '../../color-picker.types-GI7dq2Ig.js';
|
|
7
|
+
import { Input } from '../input/index.js';
|
|
8
|
+
import { Textarea } from '../textarea/index.js';
|
|
9
|
+
|
|
10
|
+
type InputGroupProps = React.ComponentProps<"div"> & {
|
|
11
|
+
invalid?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function InputGroup({ className, invalid, ...props }: InputGroupProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
declare const inputGroupAddonVariants: (props?: {
|
|
16
|
+
align?: "inline-start" | "inline-end" | "block-end" | "block-start";
|
|
17
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
18
|
+
|
|
19
|
+
declare const inputGroupButtonVariants: (props?: {
|
|
20
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm";
|
|
21
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
22
|
+
|
|
23
|
+
type InputGroupAddonVariantsProps = VariantProps<typeof inputGroupAddonVariants>;
|
|
24
|
+
type InputGroupAddonAlignType = NonNullable<InputGroupAddonVariantsProps["align"]>;
|
|
25
|
+
type InputGroupButtonVariantsProps = VariantProps<typeof inputGroupButtonVariants>;
|
|
26
|
+
type InputGroupButtonSizeType = NonNullable<InputGroupButtonVariantsProps["size"]>;
|
|
27
|
+
|
|
28
|
+
type InputGroupAddonProps = React.ComponentProps<"div"> & {
|
|
29
|
+
align?: InputGroupAddonAlignType;
|
|
30
|
+
};
|
|
31
|
+
declare function InputGroupAddon({ className, align, ...props }: InputGroupAddonProps): react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
type InputGroupButtonProps = Omit<React.ComponentProps<typeof Button>, "size"> & {
|
|
34
|
+
size?: InputGroupButtonSizeType;
|
|
35
|
+
};
|
|
36
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): react_jsx_runtime.JSX.Element;
|
|
37
|
+
|
|
38
|
+
type InputGroupInputProps = React.ComponentProps<typeof Input>;
|
|
39
|
+
declare function InputGroupInput({ className, ...props }: InputGroupInputProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
type InputGroupTextProps = React.ComponentProps<"span">;
|
|
42
|
+
declare function InputGroupText({ className, ...props }: InputGroupTextProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
type InputGroupTextareaProps = React.ComponentProps<typeof Textarea>;
|
|
45
|
+
declare function InputGroupTextarea({ className, ...props }: InputGroupTextareaProps): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
export { InputGroup, InputGroupAddon, type InputGroupAddonAlignType, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSizeType, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
export{w as InputGroup,x as InputGroupAddon,y as InputGroupButton,z as InputGroupInput,A as InputGroupText,B as InputGroupTextarea}from'../../chunk-5NM76GZC.js';import'../../chunk-JJSNMSDN.js';import'../../chunk-67GWWN7I.js';import'../../chunk-MGZN4ZZO.js';import'../../chunk-UDPDQIUS.js';import'../../chunk-TKQZPNBC.js';import'../../chunk-NLG2SYHK.js';import'../../chunk-X3NAZA44.js';import'../../chunk-2JMM4NLZ.js';import'../../chunk-AVJKAASP.js';import'../../chunk-ES2TETW4.js';import'../../chunk-NIEMIU4R.js';import'../../chunk-TGXACNQG.js';import'../../chunk-PX2ODQJ5.js';import'../../chunk-NCYJMBQ4.js';import'../../chunk-RLQVCUZA.js';import'../../chunk-G7AVPKVK.js';import'../../chunk-UR3YFSC4.js';import'../../chunk-2C332B6Y.js';import'../../chunk-Z3EMAPPK.js';import'../../chunk-HQ5NRJNW.js';import'../../chunk-LFLKBQME.js';import'../../chunk-ICTWPCCZ.js';import'../../chunk-MYAWR6XV.js';import'../../chunk-RGM4EGHK.js';import'../../chunk-JQ6RITJD.js';import'../../chunk-HCZZVUIL.js';import'../../chunk-WIJQKN43.js';import'../../chunk-X3G5BCY6.js';import'../../chunk-7BQ6EL6M.js';import'../../chunk-QEOKSP3L.js';import'../../chunk-XKHU627O.js';import'../../chunk-B2ZOXJNN.js';import'../../chunk-RHSJDTHB.js';import'../../chunk-6WS6H4C4.js';import'../../chunk-I34YETHP.js';import'../../chunk-23A6WFUV.js';import'../../chunk-DPQJSMYF.js';import'../../chunk-RLIRZKVF.js';import'../../chunk-RX2UDFWI.js';import'../../chunk-4UKYFAUY.js';import'../../chunk-ZGZS5I45.js';import'../../chunk-LINRYPF6.js';import'../../chunk-2AH7SOV6.js';import'../../chunk-KK77ZUTM.js';import'../../chunk-4HJVF7MU.js';import'../../chunk-4P7FA4TE.js';import'../../chunk-W5V46XEQ.js';import'../../chunk-AKN26JEV.js';import'../../chunk-JUNHRB4B.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
'use strict';var chunkBW4UM36V_cjs=require('../../chunk-BW4UM36V.cjs');require('../../chunk-DGPWM6UM.cjs'),require('../../chunk-D5PAWOAZ.cjs');Object.defineProperty(exports,"Item",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.a}});Object.defineProperty(exports,"ItemActions",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.d}});Object.defineProperty(exports,"ItemContent",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.e}});Object.defineProperty(exports,"ItemDescription",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.f}});Object.defineProperty(exports,"ItemFooter",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.g}});Object.defineProperty(exports,"ItemGroup",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.c}});Object.defineProperty(exports,"ItemHeader",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.h}});Object.defineProperty(exports,"ItemMedia",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.b}});Object.defineProperty(exports,"ItemSeparator",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.j}});Object.defineProperty(exports,"ItemTitle",{enumerable:true,get:function(){return chunkBW4UM36V_cjs.i}});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import '../../color-picker.types-GI7dq2Ig.js';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { Separator } from '../separator/index.js';
|
|
7
|
+
import 'radix-ui';
|
|
8
|
+
|
|
9
|
+
type ItemProps = React.ComponentProps<"div"> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
variant?: ItemVariantType;
|
|
12
|
+
size?: ItemSizeType;
|
|
13
|
+
};
|
|
14
|
+
declare function Item({ className, variant, size, asChild, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare const itemVariants: (props?: {
|
|
17
|
+
variant?: "default" | "outline" | "muted";
|
|
18
|
+
size?: "default" | "sm";
|
|
19
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
20
|
+
|
|
21
|
+
type ItemVariantsProps = VariantProps<typeof itemVariants>;
|
|
22
|
+
type ItemVariantType = NonNullable<ItemVariantsProps["variant"]>;
|
|
23
|
+
type ItemSizeType = NonNullable<ItemVariantsProps["size"]>;
|
|
24
|
+
|
|
25
|
+
declare const itemMediaVariants: (props?: {
|
|
26
|
+
variant?: "image" | "default" | "icon";
|
|
27
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
28
|
+
|
|
29
|
+
type ItemMediaVariantsProps = VariantProps<typeof itemMediaVariants>;
|
|
30
|
+
type ItemMediaVariantType = NonNullable<ItemMediaVariantsProps["variant"]>;
|
|
31
|
+
|
|
32
|
+
type ItemMediaProps = React.ComponentProps<"div"> & {
|
|
33
|
+
variant?: ItemMediaVariantType;
|
|
34
|
+
};
|
|
35
|
+
declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
type ItemGroupProps = React.ComponentProps<"div">;
|
|
38
|
+
declare function ItemGroup({ className, ...props }: ItemGroupProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type ItemActionsProps = React.ComponentProps<"div">;
|
|
41
|
+
declare function ItemActions({ className, ...props }: ItemActionsProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
type ItemContentProps = React.ComponentProps<"div">;
|
|
44
|
+
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
45
|
+
|
|
46
|
+
type ItemDescriptionProps = React.ComponentProps<"p">;
|
|
47
|
+
declare function ItemDescription({ className, ...props }: ItemDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
type ItemFooterProps = React.ComponentProps<"div">;
|
|
50
|
+
declare function ItemFooter({ className, ...props }: ItemFooterProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
type ItemHeaderProps = React.ComponentProps<"div">;
|
|
53
|
+
declare function ItemHeader({ className, ...props }: ItemHeaderProps): react_jsx_runtime.JSX.Element;
|
|
54
|
+
|
|
55
|
+
type ItemTitleProps = React.ComponentProps<"div">;
|
|
56
|
+
declare function ItemTitle({ className, ...props }: ItemTitleProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
|
|
59
|
+
declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
60
|
+
|
|
61
|
+
export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemMediaVariantType, type ItemProps, ItemSeparator, type ItemSeparatorProps, type ItemSizeType, ItemTitle, type ItemTitleProps, type ItemVariantType };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import '../../color-picker.types-GI7dq2Ig.js';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { Separator } from '../separator/index.js';
|
|
7
|
+
import 'radix-ui';
|
|
8
|
+
|
|
9
|
+
type ItemProps = React.ComponentProps<"div"> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
variant?: ItemVariantType;
|
|
12
|
+
size?: ItemSizeType;
|
|
13
|
+
};
|
|
14
|
+
declare function Item({ className, variant, size, asChild, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare const itemVariants: (props?: {
|
|
17
|
+
variant?: "default" | "outline" | "muted";
|
|
18
|
+
size?: "default" | "sm";
|
|
19
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
20
|
+
|
|
21
|
+
type ItemVariantsProps = VariantProps<typeof itemVariants>;
|
|
22
|
+
type ItemVariantType = NonNullable<ItemVariantsProps["variant"]>;
|
|
23
|
+
type ItemSizeType = NonNullable<ItemVariantsProps["size"]>;
|
|
24
|
+
|
|
25
|
+
declare const itemMediaVariants: (props?: {
|
|
26
|
+
variant?: "image" | "default" | "icon";
|
|
27
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
28
|
+
|
|
29
|
+
type ItemMediaVariantsProps = VariantProps<typeof itemMediaVariants>;
|
|
30
|
+
type ItemMediaVariantType = NonNullable<ItemMediaVariantsProps["variant"]>;
|
|
31
|
+
|
|
32
|
+
type ItemMediaProps = React.ComponentProps<"div"> & {
|
|
33
|
+
variant?: ItemMediaVariantType;
|
|
34
|
+
};
|
|
35
|
+
declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
type ItemGroupProps = React.ComponentProps<"div">;
|
|
38
|
+
declare function ItemGroup({ className, ...props }: ItemGroupProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type ItemActionsProps = React.ComponentProps<"div">;
|
|
41
|
+
declare function ItemActions({ className, ...props }: ItemActionsProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
type ItemContentProps = React.ComponentProps<"div">;
|
|
44
|
+
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
45
|
+
|
|
46
|
+
type ItemDescriptionProps = React.ComponentProps<"p">;
|
|
47
|
+
declare function ItemDescription({ className, ...props }: ItemDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
type ItemFooterProps = React.ComponentProps<"div">;
|
|
50
|
+
declare function ItemFooter({ className, ...props }: ItemFooterProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
type ItemHeaderProps = React.ComponentProps<"div">;
|
|
53
|
+
declare function ItemHeader({ className, ...props }: ItemHeaderProps): react_jsx_runtime.JSX.Element;
|
|
54
|
+
|
|
55
|
+
type ItemTitleProps = React.ComponentProps<"div">;
|
|
56
|
+
declare function ItemTitle({ className, ...props }: ItemTitleProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
|
|
59
|
+
declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
60
|
+
|
|
61
|
+
export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemMediaVariantType, type ItemProps, ItemSeparator, type ItemSeparatorProps, type ItemSizeType, ItemTitle, type ItemTitleProps, type ItemVariantType };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
export{a as Item,d as ItemActions,e as ItemContent,f as ItemDescription,g as ItemFooter,c as ItemGroup,h as ItemHeader,b as ItemMedia,j as ItemSeparator,i as ItemTitle}from'../../chunk-7BQ6EL6M.js';import'../../chunk-ZGZS5I45.js';import'../../chunk-JUNHRB4B.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
'use strict';var chunkOGXLOWOW_cjs=require('../../chunk-OGXLOWOW.cjs');require('../../chunk-D5PAWOAZ.cjs');Object.defineProperty(exports,"Kbd",{enumerable:true,get:function(){return chunkOGXLOWOW_cjs.a}});Object.defineProperty(exports,"KbdGroup",{enumerable:true,get:function(){return chunkOGXLOWOW_cjs.b}});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type KbdProps = React.ComponentProps<"kbd">;
|
|
5
|
+
declare function Kbd({ className, ...props }: KbdProps): react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
type KbdGroup = React.ComponentProps<"div">;
|
|
8
|
+
declare function KbdGroup({ className, ...props }: KbdGroup): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Kbd, KbdGroup, type KbdProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type KbdProps = React.ComponentProps<"kbd">;
|
|
5
|
+
declare function Kbd({ className, ...props }: KbdProps): react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
type KbdGroup = React.ComponentProps<"div">;
|
|
8
|
+
declare function KbdGroup({ className, ...props }: KbdGroup): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Kbd, KbdGroup, type KbdProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Label as Label$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type LabelProps = React.ComponentProps<typeof Label$1.Root>;
|
|
6
|
+
declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Label as Label$1 } from 'radix-ui';
|
|
4
|
+
|
|
5
|
+
type LabelProps = React.ComponentProps<typeof Label$1.Root>;
|
|
6
|
+
declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type MarqueeProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
5
|
+
/**
|
|
6
|
+
* Optional CSS class name to apply custom styles
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to reverse the animation direction
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
reverse?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to pause the animation on hover
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
pauseOnHover?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Content to be displayed in the marquee
|
|
21
|
+
*/
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to animate vertically instead of horizontally
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
vertical?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Number of times to repeat the content
|
|
30
|
+
* @default 4
|
|
31
|
+
*/
|
|
32
|
+
repeat?: number;
|
|
33
|
+
/**
|
|
34
|
+
* ARIA label for accessibility
|
|
35
|
+
*/
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* ARIA live region politeness
|
|
39
|
+
*/
|
|
40
|
+
ariaLive?: "off" | "polite" | "assertive";
|
|
41
|
+
/**
|
|
42
|
+
* ARIA role
|
|
43
|
+
*/
|
|
44
|
+
ariaRole?: string;
|
|
45
|
+
};
|
|
46
|
+
declare function Marquee({ className, reverse, pauseOnHover, children, vertical, repeat, ariaLabel, ariaLive, ariaRole, ...props }: MarqueeProps): react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
export { Marquee, type MarqueeProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type MarqueeProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
5
|
+
/**
|
|
6
|
+
* Optional CSS class name to apply custom styles
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to reverse the animation direction
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
reverse?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to pause the animation on hover
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
pauseOnHover?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Content to be displayed in the marquee
|
|
21
|
+
*/
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to animate vertically instead of horizontally
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
vertical?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Number of times to repeat the content
|
|
30
|
+
* @default 4
|
|
31
|
+
*/
|
|
32
|
+
repeat?: number;
|
|
33
|
+
/**
|
|
34
|
+
* ARIA label for accessibility
|
|
35
|
+
*/
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* ARIA live region politeness
|
|
39
|
+
*/
|
|
40
|
+
ariaLive?: "off" | "polite" | "assertive";
|
|
41
|
+
/**
|
|
42
|
+
* ARIA role
|
|
43
|
+
*/
|
|
44
|
+
ariaRole?: string;
|
|
45
|
+
};
|
|
46
|
+
declare function Marquee({ className, reverse, pauseOnHover, children, vertical, repeat, ariaLabel, ariaLive, ariaRole, ...props }: MarqueeProps): react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
export { Marquee, type MarqueeProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
'use strict';var chunkORBKSP3P_cjs=require('../../chunk-ORBKSP3P.cjs');require('../../chunk-ZGDGO7ES.cjs'),require('../../chunk-ERFTRXVE.cjs');Object.defineProperty(exports,"Masonry",{enumerable:true,get:function(){return chunkORBKSP3P_cjs.b}});Object.defineProperty(exports,"MasonryItem",{enumerable:true,get:function(){return chunkORBKSP3P_cjs.a}});
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Masonry component
|
|
7
|
+
*/
|
|
8
|
+
type MasonryProps = React.ComponentProps<"div"> & {
|
|
9
|
+
/**
|
|
10
|
+
* The width of each column in pixels.
|
|
11
|
+
* @default 200
|
|
12
|
+
*/
|
|
13
|
+
columnWidth?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Fixed number of columns. Takes precedence over `columnWidth` if provided.
|
|
16
|
+
*/
|
|
17
|
+
columnCount?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of columns allowed. Useful for responsive layouts.
|
|
20
|
+
*/
|
|
21
|
+
maxColumnCount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Gap between items. Can be a single number for uniform spacing or an object
|
|
24
|
+
* with separate `column` and `row` gaps.
|
|
25
|
+
* @default 16
|
|
26
|
+
* @example
|
|
27
|
+
* gap={20}
|
|
28
|
+
* gap={{ column: 16, row: 24 }}
|
|
29
|
+
*/
|
|
30
|
+
gap?: number | {
|
|
31
|
+
column: number;
|
|
32
|
+
row: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Default height for items before they are measured. Used for initial layout calculations.
|
|
36
|
+
* @default 300
|
|
37
|
+
*/
|
|
38
|
+
itemHeight?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Default container width used during SSR or before first measurement.
|
|
41
|
+
*/
|
|
42
|
+
defaultWidth?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Default container height used during SSR or before first measurement.
|
|
45
|
+
*/
|
|
46
|
+
defaultHeight?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Number of pixels to render outside the visible viewport for smoother scrolling.
|
|
49
|
+
* @default 200
|
|
50
|
+
*/
|
|
51
|
+
overscan?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Scroll event sampling rate in frames per second. Higher values provide smoother
|
|
54
|
+
* updates but may impact performance.
|
|
55
|
+
* @default 12
|
|
56
|
+
*/
|
|
57
|
+
scrollFps?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Content to display while items are being measured or loaded.
|
|
60
|
+
*/
|
|
61
|
+
fallback?: React.ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* When `true`, items are positioned linearly (left-to-right, top-to-bottom)
|
|
64
|
+
* instead of using the default masonry algorithm that fills shortest columns first.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
linear?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* When `true`, renders the component as its child element using Radix UI's Slot.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
asChild?: boolean;
|
|
73
|
+
};
|
|
74
|
+
type MasonryElement = React.ComponentRef<"div">;
|
|
75
|
+
/**
|
|
76
|
+
* A performant masonry layout component that efficiently arranges items of varying heights
|
|
77
|
+
* into columns. Features virtualization, resize observation, and smooth scrolling performance.
|
|
78
|
+
*
|
|
79
|
+
* @component
|
|
80
|
+
* @example
|
|
81
|
+
* // Basic usage
|
|
82
|
+
* <Masonry>
|
|
83
|
+
* {items.map((item, index) => (
|
|
84
|
+
* <Masonry.Item key={index}>
|
|
85
|
+
* <img src={item.url} alt={item.title} />
|
|
86
|
+
* </Masonry.Item>
|
|
87
|
+
* ))}
|
|
88
|
+
* </Masonry>
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* // Custom column width and gap
|
|
92
|
+
* <Masonry columnWidth={250} gap={{ column: 20, row: 30 }}>
|
|
93
|
+
* {items.map((item, index) => (
|
|
94
|
+
* <Masonry.Item key={index}>
|
|
95
|
+
* <Card>{item.content}</Card>
|
|
96
|
+
* </Masonry.Item>
|
|
97
|
+
* ))}
|
|
98
|
+
* </Masonry>
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* // Fixed number of columns with linear positioning
|
|
102
|
+
* <Masonry columnCount={3} linear>
|
|
103
|
+
* {items.map((item, index) => (
|
|
104
|
+
* <Masonry.Item key={index}>
|
|
105
|
+
* {item.content}
|
|
106
|
+
* </Masonry.Item>
|
|
107
|
+
* ))}
|
|
108
|
+
* </Masonry>
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* // With fallback content
|
|
112
|
+
* <Masonry fallback={<Spinner />}>
|
|
113
|
+
* {items.map((item, index) => (
|
|
114
|
+
* <Masonry.Item key={index}>
|
|
115
|
+
* <LazyImage src={item.url} />
|
|
116
|
+
* </Masonry.Item>
|
|
117
|
+
* ))}
|
|
118
|
+
* </Masonry>
|
|
119
|
+
*/
|
|
120
|
+
declare function Masonry(props: MasonryProps): react_jsx_runtime.JSX.Element;
|
|
121
|
+
|
|
122
|
+
type MasonryItemProps = React__default.ComponentProps<"div"> & {
|
|
123
|
+
asChild?: boolean;
|
|
124
|
+
};
|
|
125
|
+
type MasonryItemElement = HTMLDivElement;
|
|
126
|
+
declare function MasonryItem({ asChild, ref, ...props }: MasonryItemProps): react_jsx_runtime.JSX.Element;
|
|
127
|
+
|
|
128
|
+
type NodeColor = 0 | 1 | 2;
|
|
129
|
+
type NodeOperation = 0 | 1;
|
|
130
|
+
type ItemElement = HTMLDivElement;
|
|
131
|
+
type MasonryListNode = {
|
|
132
|
+
index: number;
|
|
133
|
+
high: number;
|
|
134
|
+
next: MasonryListNode | null;
|
|
135
|
+
};
|
|
136
|
+
type MasonryTreeNode = {
|
|
137
|
+
max: number;
|
|
138
|
+
low: number;
|
|
139
|
+
high: number;
|
|
140
|
+
color: NodeColor;
|
|
141
|
+
parent: MasonryTreeNode;
|
|
142
|
+
right: MasonryTreeNode;
|
|
143
|
+
left: MasonryTreeNode;
|
|
144
|
+
list: MasonryListNode;
|
|
145
|
+
};
|
|
146
|
+
type MasonryTree = {
|
|
147
|
+
root: MasonryTreeNode;
|
|
148
|
+
size: number;
|
|
149
|
+
};
|
|
150
|
+
type MasonryIntervalTree = {
|
|
151
|
+
insert(low: number, high: number, index: number): void;
|
|
152
|
+
remove(index: number): void;
|
|
153
|
+
search(low: number, high: number, onCallback: (index: number, low: number) => void): void;
|
|
154
|
+
size: number;
|
|
155
|
+
};
|
|
156
|
+
type MasonryCacheKey = string | number | symbol;
|
|
157
|
+
type MasonryCacheConstructor = (new () => MasonryCache) | Record<MasonryCacheKey, unknown>;
|
|
158
|
+
type MasonryCache<K = MasonryCacheKey, V = unknown> = {
|
|
159
|
+
set: (k: K, v: V) => V;
|
|
160
|
+
get: (k: K) => V | undefined;
|
|
161
|
+
};
|
|
162
|
+
type MasonryPositioner = {
|
|
163
|
+
columnCount: number;
|
|
164
|
+
columnWidth: number;
|
|
165
|
+
set: (index: number, height: number) => void;
|
|
166
|
+
get: (index: number) => MasonryPositionerItem | undefined;
|
|
167
|
+
update: (updates: number[]) => void;
|
|
168
|
+
range: (low: number, high: number, onItemRender: (index: number, left: number, top: number) => void) => void;
|
|
169
|
+
size: () => number;
|
|
170
|
+
estimateHeight: (itemCount: number, defaultItemHeight: number) => number;
|
|
171
|
+
shortestColumn: () => number;
|
|
172
|
+
all: () => Array<MasonryPositionerItem>;
|
|
173
|
+
};
|
|
174
|
+
type MasonryPositionerItem = {
|
|
175
|
+
top: number;
|
|
176
|
+
left: number;
|
|
177
|
+
height: number;
|
|
178
|
+
columnIndex: number;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export { type ItemElement, Masonry, type MasonryCache, type MasonryCacheConstructor, type MasonryCacheKey, type MasonryElement, type MasonryIntervalTree, MasonryItem, type MasonryItemElement, type MasonryItemProps, type MasonryListNode, type MasonryPositioner, type MasonryPositionerItem, type MasonryProps, type MasonryTree, type MasonryTreeNode, type NodeColor, type NodeOperation };
|