@storepass/components 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +104 -68
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +9 -9
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog/index.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +3 -3
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +7 -7
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/Button.d.ts +5 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/Card.d.ts +8 -8
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/Carousel.d.ts +6 -6
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +5 -4
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/Combobox/Combobox.d.ts +22 -20
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Command/Command.d.ts +39 -2
- package/dist/components/Command/Command.d.ts.map +1 -1
- package/dist/components/Command/index.d.ts +1 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +6 -2
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +9 -9
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +12 -12
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/index.js +1 -1
- package/dist/components/FeaturedIcon/FeaturedIcon.d.ts +3 -3
- package/dist/components/FeaturedIcon/FeaturedIcon.d.ts.map +1 -1
- package/dist/components/FeaturedIcon/index.js +1 -1
- package/dist/components/Field/Field.d.ts +11 -11
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/Footer/Footer.d.ts +5 -5
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/FormField.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts.map +1 -1
- package/dist/components/Form/FormLayout.d.ts +3 -3
- package/dist/components/Form/FormLayout.d.ts.map +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/ImperativeDialog/ImperativeDialog.d.ts +1 -1
- package/dist/components/ImperativeDialog/ImperativeDialog.d.ts.map +1 -1
- package/dist/components/ImperativeDialog/index.js +1 -1
- package/dist/components/InlineAlert/InlineAlert.d.ts +1 -1
- package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -1
- package/dist/components/InlineAlert/index.js +1 -1
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +10 -5
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/components/InputGroup/index.js +1 -1
- package/dist/components/Item/Item.d.ts +9 -9
- package/dist/components/Item/Item.d.ts.map +1 -1
- package/dist/components/Item/index.js +1 -1
- package/dist/components/Kbd/Kbd.d.ts +2 -2
- package/dist/components/Kbd/Kbd.d.ts.map +1 -1
- package/dist/components/Kbd/index.js +1 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/LoadingIndicator/index.js +1 -1
- package/dist/components/MoneyAmount/MoneyAmount.d.ts +34 -0
- package/dist/components/MoneyAmount/MoneyAmount.d.ts.map +1 -0
- package/dist/components/MoneyAmount/formatMoney.d.ts +43 -0
- package/dist/components/MoneyAmount/formatMoney.d.ts.map +1 -0
- package/dist/components/MoneyAmount/index.d.ts +5 -0
- package/dist/components/MoneyAmount/index.d.ts.map +1 -0
- package/dist/components/MoneyAmount/index.js +1 -0
- package/dist/components/Navbar/Navbar.d.ts +10 -10
- package/dist/components/Navbar/Navbar.d.ts.map +1 -1
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/NumberField/NumberField.d.ts +7 -4
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/PageHeading/PageHeading.d.ts +83 -0
- package/dist/components/PageHeading/PageHeading.d.ts.map +1 -0
- package/dist/components/PageHeading/index.d.ts +3 -0
- package/dist/components/PageHeading/index.d.ts.map +1 -0
- package/dist/components/PageHeading/index.js +1 -0
- package/dist/components/PageLayout/PageLayout.d.ts +29 -0
- package/dist/components/PageLayout/PageLayout.d.ts.map +1 -0
- package/dist/components/PageLayout/index.d.ts +2 -0
- package/dist/components/PageLayout/index.d.ts.map +1 -0
- package/dist/components/PageLayout/index.js +1 -0
- package/dist/components/Pagination/Pagination.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Panel/Panel.d.ts +5 -5
- package/dist/components/Panel/Panel.d.ts.map +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/PinInput/PinInput.d.ts +3 -3
- package/dist/components/PinInput/PinInput.d.ts.map +1 -1
- package/dist/components/PinInput/index.js +1 -1
- package/dist/components/Progress/Progress.d.ts +1 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Rating/Rating.d.ts +1 -1
- package/dist/components/Rating/Rating.d.ts.map +1 -1
- package/dist/components/Rating/index.js +1 -1
- package/dist/components/Select/Select.d.ts +5 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Settings/Settings.d.ts +26 -36
- package/dist/components/Settings/Settings.d.ts.map +1 -1
- package/dist/components/Settings/index.d.ts +1 -1
- package/dist/components/Settings/index.d.ts.map +1 -1
- package/dist/components/Settings/index.js +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +15 -10
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Table/Table.d.ts +8 -8
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +11 -9
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tags/Tags.d.ts +1 -1
- package/dist/components/Tags/Tags.d.ts.map +1 -1
- package/dist/components/Tags/index.js +1 -1
- package/dist/components/Text/Text.d.ts +4 -4
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +5 -5
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VideoDialog/VideoDialog.d.ts +9 -9
- package/dist/components/VideoDialog/VideoDialog.d.ts.map +1 -1
- package/dist/components/VideoDialog/index.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index-27w72p7z.js +2 -0
- package/dist/{index-rypjyrpn.js → index-7abyvs9n.js} +1 -1
- package/dist/index-8b3c6nnb.js +2 -0
- package/dist/{index-8mzg78nw.js → index-9v1g4s39.js} +2 -2
- package/dist/index-f862wbmh.js +2 -0
- package/dist/index-qfdc271j.js +2 -0
- package/dist/{index-btjxn90p.js → index-s2mc6jzt.js} +2 -2
- package/dist/index-st80n69g.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/controlSize.d.ts +59 -0
- package/dist/lib/controlSize.d.ts.map +1 -0
- package/dist/lib/utils.js +1 -1
- package/dist/theme.css +211 -147
- package/package.json +24 -22
- package/dist/index-1cb5sns5.js +0 -2
|
@@ -3,42 +3,47 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
4
4
|
declare const sidebarVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "bordered" | null | undefined;
|
|
6
|
+
surface?: "canvas" | "default" | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type SidebarSurface = "default" | "canvas";
|
|
7
9
|
export interface SidebarProps extends ComponentPropsWithoutRef<"nav">, VariantProps<typeof sidebarVariants> {
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* A vertical navigation sidebar component with support for headers,
|
|
11
13
|
* sections, items, and footers.
|
|
12
14
|
*/
|
|
13
|
-
export declare function Sidebar({ className, variant, ...props }: SidebarProps): import("react
|
|
15
|
+
export declare function Sidebar({ className, variant, surface, ...props }: SidebarProps): import("react").JSX.Element;
|
|
14
16
|
export interface SidebarHeaderProps extends ComponentPropsWithoutRef<"div"> {
|
|
15
17
|
}
|
|
16
|
-
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): import("react
|
|
18
|
+
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): import("react").JSX.Element;
|
|
17
19
|
export interface SidebarBodyProps extends ComponentPropsWithoutRef<"div"> {
|
|
18
20
|
}
|
|
19
|
-
export declare function SidebarBody({ className, ...props }: SidebarBodyProps): import("react
|
|
21
|
+
export declare function SidebarBody({ className, ...props }: SidebarBodyProps): import("react").JSX.Element;
|
|
20
22
|
export interface SidebarFooterProps extends ComponentPropsWithoutRef<"div"> {
|
|
21
23
|
}
|
|
22
|
-
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): import("react
|
|
24
|
+
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): import("react").JSX.Element;
|
|
23
25
|
export interface SidebarSectionProps extends ComponentPropsWithoutRef<"div"> {
|
|
24
26
|
}
|
|
25
|
-
export declare function SidebarSection({ className, ...props }: SidebarSectionProps): import("react
|
|
27
|
+
export declare function SidebarSection({ className, ...props }: SidebarSectionProps): import("react").JSX.Element;
|
|
26
28
|
export interface SidebarDividerProps extends ComponentPropsWithoutRef<"hr"> {
|
|
27
29
|
}
|
|
28
|
-
export declare function SidebarDivider({ className, ...props }: SidebarDividerProps): import("react
|
|
30
|
+
export declare function SidebarDivider({ className, ...props }: SidebarDividerProps): import("react").JSX.Element;
|
|
29
31
|
export interface SidebarSpacerProps extends ComponentPropsWithoutRef<"div"> {
|
|
30
32
|
}
|
|
31
|
-
export declare function SidebarSpacer({ className, ...props }: SidebarSpacerProps): import("react
|
|
33
|
+
export declare function SidebarSpacer({ className, ...props }: SidebarSpacerProps): import("react").JSX.Element;
|
|
32
34
|
export interface SidebarHeadingProps extends ComponentPropsWithoutRef<"h3"> {
|
|
33
35
|
}
|
|
34
|
-
export declare function SidebarHeading({ className, ...props }: SidebarHeadingProps): import("react
|
|
36
|
+
export declare function SidebarHeading({ className, ...props }: SidebarHeadingProps): import("react").JSX.Element;
|
|
35
37
|
declare const sidebarItemVariants: (props?: ({
|
|
36
38
|
current?: boolean | null | undefined;
|
|
39
|
+
surface?: "canvas" | "default" | null | undefined;
|
|
37
40
|
nested?: boolean | null | undefined;
|
|
38
41
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
39
42
|
export type SidebarItemOwnProps = useRender.ComponentProps<"button"> & VariantProps<typeof sidebarItemVariants> & {
|
|
40
43
|
current?: boolean;
|
|
41
44
|
nested?: boolean;
|
|
45
|
+
/** A separate trailing control, rendered as a sibling of the item. */
|
|
46
|
+
action?: ReactNode;
|
|
42
47
|
children: ReactNode;
|
|
43
48
|
};
|
|
44
49
|
export type SidebarItemProps<C extends React.ElementType = "button"> = SidebarItemOwnProps & {
|
|
@@ -49,9 +54,9 @@ export type SidebarItemProps<C extends React.ElementType = "button"> = SidebarIt
|
|
|
49
54
|
* `as`) to render as a custom element such as a router Link; it receives
|
|
50
55
|
* className, data-current, ref, and children.
|
|
51
56
|
*/
|
|
52
|
-
export declare function SidebarItem<C extends React.ElementType = "button">({ current, nested, className, children, render, as, ...props }: SidebarItemProps<C>): import("react
|
|
57
|
+
export declare function SidebarItem<C extends React.ElementType = "button">({ current, nested, surface, action, className, children, render, as, ...props }: SidebarItemProps<C>): import("react").JSX.Element;
|
|
53
58
|
export interface SidebarLabelProps extends ComponentPropsWithoutRef<"span"> {
|
|
54
59
|
}
|
|
55
|
-
export declare function SidebarLabel({ className, ...props }: SidebarLabelProps): import("react
|
|
60
|
+
export declare function SidebarLabel({ className, ...props }: SidebarLabelProps): import("react").JSX.Element;
|
|
56
61
|
export { sidebarItemVariants, sidebarVariants };
|
|
57
62
|
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACN,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,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,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SidebarBodyProps, SidebarDividerProps, SidebarFooterProps, SidebarHeaderProps, SidebarHeadingProps, SidebarItemProps, SidebarLabelProps, SidebarProps, SidebarSectionProps, SidebarSpacerProps, } from "./Sidebar";
|
|
1
|
+
export type { SidebarBodyProps, SidebarDividerProps, SidebarFooterProps, SidebarHeaderProps, SidebarHeadingProps, SidebarItemProps, SidebarLabelProps, SidebarProps, SidebarSectionProps, SidebarSpacerProps, SidebarSurface, } from "./Sidebar";
|
|
2
2
|
export { Sidebar, SidebarBody, SidebarDivider, SidebarFooter, SidebarHeader, SidebarHeading, SidebarItem, SidebarLabel, SidebarSection, SidebarSpacer, sidebarItemVariants, sidebarVariants, } from "./Sidebar";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,OAAO,EACP,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,eAAe,GACf,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aa as r,ba as e,ca as a,da as i,ea as d,fa as S,ga as b,ha as o,ia as p,ja as s,ka as t,la as P}from"../../index-qfdc271j.js";import"../../lib/utils.js";export{r as sidebarVariants,s as sidebarItemVariants,o as SidebarSpacer,S as SidebarSection,P as SidebarLabel,t as SidebarItem,p as SidebarHeading,a as SidebarHeader,d as SidebarFooter,b as SidebarDivider,i as SidebarBody,e as Sidebar};
|
|
@@ -11,6 +11,6 @@ export interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
11
11
|
/**
|
|
12
12
|
* A range slider built on Base UI with single and multi-thumb support, brand indicator, and full keyboard accessibility.
|
|
13
13
|
*/
|
|
14
|
-
export declare function Slider({ className, orientation, thumbCount, value, defaultValue, ...props }: SliderProps):
|
|
14
|
+
export declare function Slider({ className, orientation, thumbCount, value, defaultValue, ...props }: SliderProps): React.JSX.Element;
|
|
15
15
|
export { sliderVariants };
|
|
16
16
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,cAAc;;8EAanB,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EACtD,WAAW,GAAG,aAAa,CAC3B,EACD,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACtB,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,cAAc;;8EAanB,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EACtD,WAAW,GAAG,aAAa,CAC3B,EACD,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACtB,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,WAAW,qBAgDb;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as E}from"../../lib/utils.js";import{Slider as P}from"@base-ui/react/slider";import{cva as Q}from"class-variance-authority";import{jsx as q,jsxs as X}from"react/jsx-runtime";var H=Q("relative flex w-full touch-none select-none items-center data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col h-full"}},defaultVariants:{orientation:"horizontal"}});function W({className:J,orientation:F,thumbCount:K,value:z,defaultValue:D,...L}){let M=Array.isArray(z)?z.length>1:Array.isArray(D)?D.length>1:!1,O=K??(M?2:1);return q(P.Root,{"data-slot":"slider",orientation:F??"horizontal",value:z,defaultValue:D,className:E(H({orientation:F}),J),...L,children:q(P.Control,{"data-slot":"slider-control",className:"flex w-full items-center py-3",children:X(P.Track,{"data-slot":"slider-track",className:"relative h-2 w-full grow overflow-hidden rounded-full bg-ink-well",children:[q(P.Indicator,{"data-slot":"slider-indicator",className:"absolute h-full rounded-full bg-primary"}),Array.from({length:O}).map((Y,G)=>q(P.Thumb,{index:G,"data-slot":"slider-thumb",className:E("block size-5 shrink-0 rounded-full border border-input bg-background shadow-sm outline-none","transition-[color,box-shadow]","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[dragging]:ring-[3px] data-[dragging]:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50")},G))]})})})}export{H as sliderVariants,W as Slider};export{H as ma,W as na};
|
|
@@ -5,26 +5,26 @@ export interface TableProps extends React.ComponentProps<"table"> {
|
|
|
5
5
|
/**
|
|
6
6
|
* A headless data table part set built on semantic HTML elements. Compose Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, and TableCaption to build any layout.
|
|
7
7
|
*/
|
|
8
|
-
export declare function Table({ className, containerClassName, ...props }: TableProps):
|
|
8
|
+
export declare function Table({ className, containerClassName, ...props }: TableProps): React.JSX.Element;
|
|
9
9
|
export interface TableHeaderProps extends React.ComponentProps<"thead"> {
|
|
10
10
|
}
|
|
11
|
-
export declare function TableHeader({ className, ...props }: TableHeaderProps):
|
|
11
|
+
export declare function TableHeader({ className, ...props }: TableHeaderProps): React.JSX.Element;
|
|
12
12
|
export interface TableBodyProps extends React.ComponentProps<"tbody"> {
|
|
13
13
|
}
|
|
14
|
-
export declare function TableBody({ className, ...props }: TableBodyProps):
|
|
14
|
+
export declare function TableBody({ className, ...props }: TableBodyProps): React.JSX.Element;
|
|
15
15
|
export interface TableFooterProps extends React.ComponentProps<"tfoot"> {
|
|
16
16
|
}
|
|
17
|
-
export declare function TableFooter({ className, ...props }: TableFooterProps):
|
|
17
|
+
export declare function TableFooter({ className, ...props }: TableFooterProps): React.JSX.Element;
|
|
18
18
|
export interface TableRowProps extends React.ComponentProps<"tr"> {
|
|
19
19
|
}
|
|
20
|
-
export declare function TableRow({ className, ...props }: TableRowProps):
|
|
20
|
+
export declare function TableRow({ className, ...props }: TableRowProps): React.JSX.Element;
|
|
21
21
|
export interface TableHeadProps extends React.ComponentProps<"th"> {
|
|
22
22
|
}
|
|
23
|
-
export declare function TableHead({ className, ...props }: TableHeadProps):
|
|
23
|
+
export declare function TableHead({ className, ...props }: TableHeadProps): React.JSX.Element;
|
|
24
24
|
export interface TableCellProps extends React.ComponentProps<"td"> {
|
|
25
25
|
}
|
|
26
|
-
export declare function TableCell({ className, ...props }: TableCellProps):
|
|
26
|
+
export declare function TableCell({ className, ...props }: TableCellProps): React.JSX.Element;
|
|
27
27
|
export interface TableCaptionProps extends React.ComponentProps<"caption"> {
|
|
28
28
|
}
|
|
29
|
-
export declare function TableCaption({ className, ...props }: TableCaptionProps):
|
|
29
|
+
export declare function TableCaption({ className, ...props }: TableCaptionProps): React.JSX.Element;
|
|
30
30
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IAChE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAA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AE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAQtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as b}from"../../lib/utils.js";import{jsx as f}from"react/jsx-runtime";function B({className:P,containerClassName:T,...w}){return f("div",{"data-slot":"table-container",className:b("relative w-full overflow-x-auto rounded-xl border border-input",T),children:f("table",{"data-slot":"table",className:b("w-full caption-bottom text-sm",P),...w})})}function F({className:P,...T}){return f("thead",{"data-slot":"table-header",className:b("[&_tr]:border-b [&_tr]:border-input bg-muted/50",P),...T})}function H({className:P,...T}){return f("tbody",{"data-slot":"table-body",className:b("[&_tr:last-child]:border-0",P),...T})}function R({className:P,...T}){return f("tfoot",{"data-slot":"table-footer",className:b("border-t border-input bg-muted/50 font-medium [&>tr]:last:border-b-0",P),...T})}function g({className:P,...T}){return f("tr",{"data-slot":"table-row",className:b("border-b border-input transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",P),...T})}function k({className:P,...T}){return f("th",{"data-slot":"table-head",className:b("h-11 px-4 text-left align-middle font-medium text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0",P),...T})}function q({className:P,...T}){return f("td",{"data-slot":"table-cell",className:b("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",P),...T})}function v({className:P,...T}){return f("caption",{"data-slot":"table-caption",className:b("mt-4 text-sm text-muted-foreground",P),...T})}export{g as TableRow,F as TableHeader,k as TableHead,R as TableFooter,q as TableCell,v as TableCaption,H as TableBody,B as Table};export{B as b,F as c,H as d,R as e,g as f,k as g,q as h,v as i};
|
|
@@ -2,11 +2,11 @@ import { Tabs as BaseTabs } from "@base-ui/react/tabs";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const tabsListVariants: (props?: ({
|
|
5
|
-
variant?: "underline" | "pill" | null | undefined;
|
|
5
|
+
variant?: "underline" | "pill" | "soft" | null | undefined;
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const tabsTriggerVariants: (props?: ({
|
|
9
|
-
variant?: "underline" | "pill" | null | undefined;
|
|
9
|
+
variant?: "underline" | "pill" | "soft" | null | undefined;
|
|
10
10
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
12
|
export interface TabsProps extends Omit<React.ComponentPropsWithoutRef<typeof BaseTabs.Root>, "className"> {
|
|
@@ -23,15 +23,17 @@ export interface TabsContentProps extends Omit<React.ComponentPropsWithoutRef<ty
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Accessible tab navigation built on Base UI Tabs. Supports a pill variant
|
|
26
|
-
* (default)
|
|
27
|
-
*
|
|
26
|
+
* (default) on a muted track, an underline variant, and a trackless soft
|
|
27
|
+
* variant for white surfaces. All triggers have full keyboard navigation and
|
|
28
|
+
* focus rings.
|
|
28
29
|
*
|
|
29
30
|
* TabsList's sm/md/lg sizes match Input/Select heights (h-8/h-9/h-10) so
|
|
30
|
-
* tabs align with form controls in toolbars.
|
|
31
|
+
* tabs align with form controls in toolbars. PageHeadingNav shares these
|
|
32
|
+
* variants (soft), so heading navigation and tabs can't drift apart.
|
|
31
33
|
*/
|
|
32
|
-
export declare function Tabs({ className, ...props }: TabsProps):
|
|
33
|
-
export declare function TabsList({ variant, size, className, ...props }: TabsListProps):
|
|
34
|
-
export declare function TabsTrigger({ className, ...props }: TabsTriggerProps):
|
|
35
|
-
export declare function TabsContent({ className, ...props }: TabsContentProps):
|
|
34
|
+
export declare function Tabs({ className, ...props }: TabsProps): React.JSX.Element;
|
|
35
|
+
export declare function TabsList({ variant, size, className, ...props }: TabsListProps): React.JSX.Element;
|
|
36
|
+
export declare function TabsTrigger({ className, ...props }: TabsTriggerProps): React.JSX.Element;
|
|
37
|
+
export declare function TabsContent({ className, ...props }: TabsContentProps): React.JSX.Element;
|
|
36
38
|
export { tabsListVariants, tabsTriggerVariants };
|
|
37
39
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,gBAAgB;;;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,gBAAgB;;;8EA0BpB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;;8EAoDxB,CAAC;AAiBF,MAAM,WAAW,SAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,EACpD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,EACpD,WAAW,CACX,EACD,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,GAAG,CAAC,EACnD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,EACrD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,qBAItD;AAED,wBAAgB,QAAQ,CAAC,EACxB,OAAgB,EAChB,IAAW,EACX,SAAS,EACT,GAAG,KAAK,EACR,EAAE,aAAa,qBAYf;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBASpE;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBAWpE;AAED,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ra as s,Sa as r,Ta as a,Ua as t,Va as T,Wa as b}from"../../index-f862wbmh.js";import"../../lib/utils.js";export{r as tabsTriggerVariants,s as tabsListVariants,T as TabsTrigger,t as TabsList,b as TabsContent,a as Tabs};
|
|
@@ -11,5 +11,5 @@ export interface TagsProps extends Omit<React.ComponentProps<"div">, "defaultVal
|
|
|
11
11
|
/**
|
|
12
12
|
* A tag/token input field. Renders existing tags as removable chips alongside an inline text input. Supports controlled and uncontrolled value, keyboard entry (Enter or comma to add, Backspace to remove last), deduplication, and an optional max tag count. Adding beyond the max is a no-op.
|
|
13
13
|
*/
|
|
14
|
-
export declare function Tags({ value, defaultValue, onValueChange, inputValue: controlledInputValue, onInputValueChange, placeholder, disabled, max, className, ...props }: TagsProps): import("react
|
|
14
|
+
export declare function Tags({ value, defaultValue, onValueChange, inputValue: controlledInputValue, onInputValueChange, placeholder, disabled, max, className, ...props }: TagsProps): import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=Tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../src/components/Tags/Tags.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,EACpB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EAAE,oBAAoB,EAChC,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACR,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../src/components/Tags/Tags.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,EACpB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EAAE,oBAAoB,EAChC,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACR,EAAE,SAAS,+BA6HX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ke as B}from"../Badge/index.js";import"../Icon/index.js";import{se as D}from"../../index-7abyvs9n.js";import{te as X}from"../../lib/utils.js";import{faXmark as T}from"@fortawesome/pro-solid-svg-icons";import{useCallback as z,useRef as m,useState as K}from"react";import{jsx as U,jsxs as M}from"react/jsx-runtime";function C({value:W,defaultValue:N,onValueChange:Y,inputValue:A,onInputValueChange:Z,placeholder:S,disabled:H,max:J,className:R,...f}){let L=W!==void 0,[w,j]=K(N??[]),[k,v]=K(""),_=m(null),q=L?W:w,E=A!==void 0?A:k,F=z((P)=>{if(!L)j(P);Y?.(P)},[L,Y]),G=z((P)=>{if(A===void 0)v(P);Z?.(P)},[A,Z]),$=z((P)=>{let y=P.trim();if(!y)return;if(q.includes(y)){G("");return}if(J!==void 0&&q.length>=J)return;F([...q,y]),G("")},[q,J,F,G]),O=z((P)=>{F(q.filter((y,Q)=>Q!==P))},[q,F]),h=z((P)=>{if(P.key==="Enter"||P.key===",")P.preventDefault(),$(E);else if(P.key==="Backspace"&&E==="")O(q.length-1)},[E,q.length,$,O]),b=z((P)=>{if(P.target===P.currentTarget)P.preventDefault(),_.current?.focus()},[]);return M("div",{"data-slot":"tags","data-disabled":H?"":void 0,className:X("flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-lg border border-input bg-background px-2 py-1.5 text-sm shadow-xs transition-[color,box-shadow]","focus-within:ring-[3px] focus-within:ring-ring/50 focus-within:border-ring","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",R),onMouseDown:b,...f,children:[q.map((P,y)=>M(B,{"data-slot":"tag",variant:"secondary",size:"md",className:"gap-0.5 pr-0.5",children:[P,!H&&U("button",{type:"button","aria-label":`Remove ${P}`,className:"inline-flex size-4 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground [&_svg]:size-3",onMouseDown:(Q)=>Q.stopPropagation(),onClick:()=>O(y),children:U(D,{icon:T})})]},P)),U("input",{ref:_,"data-slot":"tags-input",type:"text",value:E,placeholder:q.length===0?S:void 0,disabled:H,className:"flex-1 bg-transparent outline-none placeholder:text-muted-foreground min-w-24 disabled:cursor-not-allowed",onChange:(P)=>G(P.target.value),onKeyDown:h})]})}export{C as Tags};export{C as j};
|
|
@@ -4,18 +4,18 @@ declare const textVariants: (props?: ({
|
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
export interface TextProps extends React.ComponentPropsWithoutRef<"p">, VariantProps<typeof textVariants> {
|
|
6
6
|
}
|
|
7
|
-
export declare function Text({ variant, className, ...props }: TextProps): import("react
|
|
7
|
+
export declare function Text({ variant, className, ...props }: TextProps): import("react").JSX.Element;
|
|
8
8
|
declare const textLinkVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
9
|
export interface TextLinkProps extends React.ComponentPropsWithoutRef<"a">, VariantProps<typeof textLinkVariants> {
|
|
10
10
|
}
|
|
11
|
-
export declare function TextLink({ className, ...props }: TextLinkProps): import("react
|
|
11
|
+
export declare function TextLink({ className, ...props }: TextLinkProps): import("react").JSX.Element;
|
|
12
12
|
declare const strongVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
13
|
export interface StrongProps extends React.ComponentPropsWithoutRef<"strong">, VariantProps<typeof strongVariants> {
|
|
14
14
|
}
|
|
15
|
-
export declare function Strong({ className, ...props }: StrongProps): import("react
|
|
15
|
+
export declare function Strong({ className, ...props }: StrongProps): import("react").JSX.Element;
|
|
16
16
|
declare const codeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
17
17
|
export interface CodeProps extends React.ComponentPropsWithoutRef<"code">, VariantProps<typeof codeVariants> {
|
|
18
18
|
}
|
|
19
|
-
export declare function Code({ className, ...props }: CodeProps): import("react
|
|
19
|
+
export declare function Code({ className, ...props }: CodeProps): import("react").JSX.Element;
|
|
20
20
|
export { codeVariants, strongVariants, textLinkVariants, textVariants };
|
|
21
21
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,YAAY;;8EAajB,CAAC;AAEF,MAAM,WAAW,SAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAC1C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAEtC,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,YAAY;;8EAajB,CAAC;AAEF,MAAM,WAAW,SAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAC1C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAEtC,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAQ/D;AAED,QAAA,MAAM,gBAAgB,oFAAyD,CAAC;AAEhF,MAAM,WAAW,aAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAC1C,YAAY,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE1C,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAQ9D;AAED,QAAA,MAAM,cAAc,oFAAqC,CAAC;AAE1D,MAAM,WAAW,WAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAC/C,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAExC,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAQ1D;AAED,QAAA,MAAM,YAAY,oFAEjB,CAAC;AAEF,MAAM,WAAW,SAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAC7C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAEtC,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAQtD;AAED,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as o}from"../../lib/utils.js";import{cva as r}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var a=r("text-base/6 sm:text-sm/6 [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",{variants:{variant:{default:"text-foreground",muted:"text-muted-foreground"}},defaultVariants:{variant:"default"}});function x({variant:t,className:e,...d}){return n("p",{"data-slot":"text",className:o(a({variant:t}),e),...d})}var s=r("underline underline-offset-4 hover:text-primary");function f({className:t,...e}){return n("a",{"data-slot":"text-link",className:o(s(),t),...e})}var i=r("font-medium text-foreground");function m({className:t,...e}){return n("strong",{"data-slot":"strong",className:o(i(),t),...e})}var p=r("rounded-md border border-border bg-muted px-1 py-px text-sm font-medium text-foreground sm:text-[0.8125rem]");function u({className:t,...e}){return n("code",{"data-slot":"code",className:o(p(),t),...e})}export{a as textVariants,s as textLinkVariants,i as strongVariants,p as codeVariants,f as TextLink,x as Text,m as Strong,u as Code};export{a as k,x as l,s as m,f as n,i as o,m as p,p as q,u as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,gBAAgB;;;8EA+BrB,CAAC;AAEF,MAAM,WAAW,aAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,EAC/D,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,+GAwDpB,CAAC;AAIF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tc as K}from"../Field/index.js";import{Cd as J}from"../../index-st80n69g.js";import{te as H}from"../../lib/utils.js";import{Field as q}from"@base-ui/react/field";import{cva as S}from"class-variance-authority";import{forwardRef as U}from"react";import{jsx as y,jsxs as X}from"react/jsx-runtime";var M=S(["placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground","w-full min-w-0 rounded-lg border border-input bg-background shadow-xs",`${J} outline-none`,"transition-[color,box-shadow]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[invalid]:ring-destructive/20 data-[invalid]:border-destructive","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","aria-invalid:ring-destructive/20 aria-invalid:border-destructive","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"],{variants:{size:{sm:"px-3 py-1.5 min-h-[60px]",md:"px-3 py-2 min-h-[80px]",lg:"px-3.5 py-2.5 min-h-[120px]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}}),Q=U(({label:k,error:A,className:W,id:Y,value:B,defaultValue:Z,size:$,resize:g,...m},E)=>{let L=K(),D=Y||k?.toLowerCase().replace(/\s+/g,"-"),P=B!==void 0?{value:B}:{defaultValue:Z??""},G=y("textarea",{ref:E,id:D,"data-slot":"textarea",className:H(M({size:$,resize:g}),W),...P,...m});if(L)return G;return X(q.Root,{invalid:A?!0:void 0,className:"flex flex-col gap-1",children:[k&&y(q.Label,{htmlFor:D,className:"text-sm font-medium text-foreground",children:k}),G,y(q.Error,{className:"text-sm text-destructive",children:A})]})});Q.displayName="Textarea";export{M as textareaVariants,Q as Textarea};export{M as s,Q as t};
|
|
@@ -9,13 +9,13 @@ export interface ToastProviderProps extends BaseToast.Provider.Props {
|
|
|
9
9
|
export interface ToasterProps extends Omit<BaseToast.Viewport.Props, "className"> {
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
declare function ToastProvider(props: ToastProviderProps): import("react
|
|
12
|
+
declare function ToastProvider(props: ToastProviderProps): import("react").JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* Notification toast (Base UI toast) with an imperative useToast() manager.
|
|
15
15
|
* Mount ToastProvider and Toaster once near your app root, then call
|
|
16
16
|
* toast.add() to enqueue notifications.
|
|
17
17
|
*/
|
|
18
|
-
declare function Toaster({ className, ...props }: ToasterProps): import("react
|
|
18
|
+
declare function Toaster({ className, ...props }: ToasterProps): import("react").JSX.Element;
|
|
19
19
|
declare function useToast(): import("@base-ui/react").UseToastManagerReturnValue<any>;
|
|
20
20
|
export { Toaster, ToastProvider, toastVariants, useToast };
|
|
21
21
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;8EA6BlB,CAAC;AA0BF,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,QAAQ,CAAC,KAAK;CAAG;AAEvE,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;8EA6BlB,CAAC;AA0BF,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,QAAQ,CAAC,KAAK;CAAG;AAEvE,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAE/C;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAiErD;AAED,iBAAS,QAAQ,6DAEhB;AAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ic as L}from"../FeaturedIcon/index.js";import{se as K}from"../../index-7abyvs9n.js";import{te as H}from"../../lib/utils.js";import{Toast as P}from"@base-ui/react/toast";import{faCircleCheck as R,faCircleExclamation as S,faCircleInfo as U,faTriangleExclamation as W,faXmark as Y}from"@fortawesome/pro-solid-svg-icons";import{cva as Z}from"class-variance-authority";import{jsx as q,jsxs as J}from"react/jsx-runtime";var M=Z(["relative flex items-start gap-3 rounded-xl border border-input bg-background p-4 text-foreground shadow-lg","transition-all","data-[starting-style]:translate-x-full data-[starting-style]:opacity-0","data-[ending-style]:translate-x-full data-[ending-style]:opacity-0","data-[swiping]:transition-none","data-[swipe-direction=right]:data-[ending-style]:translate-x-full","data-[swipe-direction=left]:data-[ending-style]:-translate-x-full","data-[swipe-direction=up]:data-[ending-style]:-translate-y-full","data-[swipe-direction=down]:data-[ending-style]:translate-y-full","focus-visible:outline-none"],{variants:{variant:{default:"",success:"",error:"",warning:"",info:""}},defaultVariants:{variant:"default"}}),_={success:{icon:R,color:"success"},error:{icon:S,color:"error"},warning:{icon:W,color:"warning"},info:{icon:U,color:"info"}};function $(z){switch(z){case"success":case"error":case"warning":case"info":return z;default:return"default"}}function b(z){return q(P.Provider,{...z})}function w({className:z,...O}){let{toasts:Q}=P.useToastManager();return q(P.Portal,{children:q(P.Viewport,{"data-slot":"toast-viewport",className:H("fixed right-4 bottom-4 z-50 flex w-full max-w-sm flex-col gap-2 outline-none",z),...O,children:Q.map((A)=>{let D=$(A.type),G=D==="default"?null:_[D];return J(P.Root,{toast:A,"data-slot":"toast",className:H(M({variant:D})),children:[G?q(L,{"data-slot":"toast-icon",icon:G.icon,color:G.color,variant:"light",size:"sm"}):null,J("div",{"data-slot":"toast-body",className:"flex min-w-0 flex-1 flex-col gap-1 pr-6",children:[q(P.Title,{"data-slot":"toast-title",className:"text-sm font-semibold text-foreground"}),q(P.Description,{"data-slot":"toast-description",className:"text-sm text-muted-foreground"}),A.actionProps?q(P.Action,{"data-slot":"toast-action",className:"mt-2 inline-flex h-8 w-fit items-center justify-center rounded-lg px-3 text-sm font-semibold text-primary transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"}):null]}),q(P.Close,{"data-slot":"toast-close","aria-label":"Dismiss",className:"absolute top-3 right-3 inline-flex size-6 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 [&_[data-slot=icon]]:size-4",children:q(K,{icon:Y})})]},A.id)})})})}function V(){return P.useToastManager()}export{V as useToast,M as toastVariants,w as Toaster,b as ToastProvider};export{M as u,b as v,w,V as x};
|
|
@@ -14,6 +14,6 @@ export interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
14
14
|
* An on/off switch control built on the Base UI Switch primitive. Provides accessible
|
|
15
15
|
* keyboard and pointer interaction with a sliding thumb that tracks the checked state.
|
|
16
16
|
*/
|
|
17
|
-
export declare function Toggle({ size, className, ...props }: ToggleProps):
|
|
17
|
+
export declare function Toggle({ size, className, ...props }: ToggleProps): React.JSX.Element;
|
|
18
18
|
export { toggleThumbVariants, toggleVariants };
|
|
19
19
|
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,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
import{te as T}from"../../lib/utils.js";import{Switch as f}from"@base-ui/react/switch";import{cva as C}from"class-variance-authority";import{jsx as q}from"react/jsx-runtime";var D=C("inline-flex shrink-0 cursor-pointer items-center rounded-full bg-ink-well p-0.5 transition-colors focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[checked]:bg-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11"}},defaultVariants:{size:"md"}}),E=C("pointer-events-none block rounded-full bg-background shadow-xs ring-0 transition-transform data-[unchecked]:translate-x-0",{variants:{size:{sm:"size-4 data-[checked]:translate-x-4",md:"size-5 data-[checked]:translate-x-5"}},defaultVariants:{size:"md"}});function H({size:g,className:F,...G}){return q(f.Root,{"data-slot":"toggle",className:T(D({size:g}),F),...G,children:q(f.Thumb,{"data-slot":"toggle-thumb",className:T(E({size:g}))})})}export{D as toggleVariants,E as toggleThumbVariants,H as Toggle};export{D as y,E as z,H as A};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Tooltip as BaseTooltip } from "@base-ui/react/tooltip";
|
|
2
|
-
declare function TooltipProvider({ delay, closeDelay, ...props }: React.ComponentProps<typeof BaseTooltip.Provider>): import("react
|
|
2
|
+
declare function TooltipProvider({ delay, closeDelay, ...props }: React.ComponentProps<typeof BaseTooltip.Provider>): import("react").JSX.Element;
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
4
|
+
* A quiet contextual hint shown on hover or keyboard focus. Wrap related tooltips in TooltipProvider to share hover timing.
|
|
5
5
|
*/
|
|
6
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof BaseTooltip.Root>): import("react
|
|
6
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof BaseTooltip.Root>): import("react").JSX.Element;
|
|
7
7
|
declare function TooltipTrigger({ className, children, asChild, ...props }: React.ComponentProps<typeof BaseTooltip.Trigger> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
10
|
export interface TooltipContentProps extends Omit<React.ComponentProps<typeof BaseTooltip.Popup>, "className"> {
|
|
11
11
|
className?: string;
|
|
12
12
|
sideOffset?: number;
|
|
13
13
|
side?: "top" | "bottom" | "left" | "right";
|
|
14
14
|
}
|
|
15
|
-
declare function TooltipContent({ className, sideOffset, side, children, ...props }: TooltipContentProps): import("react
|
|
15
|
+
declare function TooltipContent({ className, sideOffset, side, children, ...props }: TooltipContentProps): import("react").JSX.Element;
|
|
16
16
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
17
17
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGhE,iBAAS,eAAe,CAAC,EACxB,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGhE,iBAAS,eAAe,CAAC,EACxB,KAAW,EACX,UAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,QAAQ,CAAC,+BAInD;AAED;;GAEG;AACH,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,+BAE3E;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+BAU1E;AAED,MAAM,WAAW,mBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CAC3C;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,UAAc,EACd,IAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,mBAAmB,+BA+BrB;AAoBD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as I}from"../../lib/utils.js";import{Tooltip as F}from"@base-ui/react/tooltip";import{jsx as E,jsxs as U}from"react/jsx-runtime";function L({delay:z=600,closeDelay:G=0,...H}){return E(F.Provider,{delay:z,closeDelay:G,...H})}function M({...z}){return E(F.Root,{...z})}function P({className:z,children:G,asChild:H,...J}){return E(F.Trigger,{className:I(z),render:H?G:void 0,...J,children:H?void 0:G})}function Q({className:z,sideOffset:G=8,side:H="top",children:J,...K}){return E(F.Portal,{children:E(F.Positioner,{sideOffset:G,side:H,className:"z-[9999]",children:U(F.Popup,{"data-slot":"tooltip-content",className:I("w-fit max-w-xs origin-[var(--transform-origin)] rounded-lg bg-tooltip px-2.5 py-1.5 text-xs font-medium text-tooltip-foreground text-balance shadow-md","transition-[scale,opacity] duration-150 ease-out data-[starting-style]:scale-[0.98] data-[starting-style]:opacity-0 data-[ending-style]:scale-[0.98] data-[ending-style]:opacity-0 data-[ending-style]:duration-100 data-[instant]:transition-none motion-reduce:transition-none motion-reduce:scale-100",z),...K,children:[J,E(F.Arrow,{className:I("data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=right]:left-[-13px] data-[side=top]:bottom-[-8px]","data-[side=top]:rotate-180 data-[side=left]:rotate-90 data-[side=right]:-rotate-90","[&_path]:fill-tooltip"),children:E(R,{})})]})})})}function R(z){return E("svg",{"aria-hidden":"true",width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...z,children:E("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",fill:"currentColor"})})}export{P as TooltipTrigger,L as TooltipProvider,Q as TooltipContent,M as Tooltip};export{L as B,M as C,P as D,Q as E};
|
|
@@ -50,24 +50,24 @@ export interface VideoDialogCloseProps extends Omit<React.ComponentPropsWithoutR
|
|
|
50
50
|
* The popup unmounts on close by default (Base UI behavior), which stops
|
|
51
51
|
* playback of both native videos and embeds — no manual pause needed.
|
|
52
52
|
*/
|
|
53
|
-
declare function VideoDialogRoot({ children, ...props }: VideoDialogRootProps): import("react
|
|
54
|
-
declare function VideoDialogTrigger({ className, children, asChild, ...props }: VideoDialogTriggerProps): import("react
|
|
55
|
-
declare function VideoDialogPortal({ children, ...props }: VideoDialogPortalProps): import("react
|
|
56
|
-
declare function VideoDialogBackdrop({ className, ...props }: VideoDialogBackdropProps): import("react
|
|
53
|
+
declare function VideoDialogRoot({ children, ...props }: VideoDialogRootProps): import("react").JSX.Element;
|
|
54
|
+
declare function VideoDialogTrigger({ className, children, asChild, ...props }: VideoDialogTriggerProps): import("react").JSX.Element;
|
|
55
|
+
declare function VideoDialogPortal({ children, ...props }: VideoDialogPortalProps): import("react").JSX.Element;
|
|
56
|
+
declare function VideoDialogBackdrop({ className, ...props }: VideoDialogBackdropProps): import("react").JSX.Element;
|
|
57
57
|
/**
|
|
58
58
|
* Transparent positioning shell — the media element carries the rounded
|
|
59
59
|
* corners so the close button can float above it. Pass an `aria-label`
|
|
60
60
|
* to give the dialog an accessible name (there is no visible title).
|
|
61
61
|
*/
|
|
62
|
-
declare function VideoDialogPopup({ size, className, children, ...props }: VideoDialogPopupProps): import("react
|
|
63
|
-
declare function VideoDialogVideo({ aspect, className, controls, ...props }: VideoDialogVideoProps): import("react
|
|
62
|
+
declare function VideoDialogPopup({ size, className, children, ...props }: VideoDialogPopupProps): import("react").JSX.Element;
|
|
63
|
+
declare function VideoDialogVideo({ aspect, className, controls, ...props }: VideoDialogVideoProps): import("react").JSX.Element;
|
|
64
64
|
/**
|
|
65
65
|
* Iframe embed for hosted players (YouTube, Vimeo, …). Append
|
|
66
66
|
* `?autoplay=1` to the embed URL to start playback on open.
|
|
67
67
|
*/
|
|
68
|
-
declare function VideoDialogEmbed({ aspect, className, allow, allowFullScreen, referrerPolicy, ...props }: VideoDialogEmbedProps): import("react
|
|
69
|
-
declare function VideoDialogCaption({ className, children, ...props }: VideoDialogCaptionProps): import("react
|
|
70
|
-
declare function VideoDialogClose({ className, children, ...props }: VideoDialogCloseProps): import("react
|
|
68
|
+
declare function VideoDialogEmbed({ aspect, className, allow, allowFullScreen, referrerPolicy, ...props }: VideoDialogEmbedProps): import("react").JSX.Element;
|
|
69
|
+
declare function VideoDialogCaption({ className, children, ...props }: VideoDialogCaptionProps): import("react").JSX.Element;
|
|
70
|
+
declare function VideoDialogClose({ className, children, ...props }: VideoDialogCloseProps): import("react").JSX.Element;
|
|
71
71
|
export declare const VideoDialog: {
|
|
72
72
|
Root: typeof VideoDialogRoot;
|
|
73
73
|
Trigger: typeof VideoDialogTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoDialog.d.ts","sourceRoot":"","sources":["../../../src/components/VideoDialog/VideoDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,M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,CAAC,EAC3B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,uBAAuB,+BAUzB;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,qBAAqB,+BAWvB;AAED,eAAO,MAAM,WAAW;;;;;;;;;;CAUvB,CAAC;AAEF,OAAO,EACN,gBAAgB,IAAI,2BAA2B,EAC/C,eAAe,IAAI,0BAA0B,EAC7C,aAAa,IAAI,wBAAwB,EACzC,aAAa,IAAI,wBAAwB,EACzC,aAAa,IAAI,wBAAwB,GACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{se as J}from"../../index-7abyvs9n.js";import{te as q}from"../../lib/utils.js";import{Dialog as E}from"@base-ui/react/dialog";import{faXmark as U}from"@fortawesome/pro-solid-svg-icons";import{cva as G}from"class-variance-authority";import{jsx as g}from"react/jsx-runtime";var K=G(["fixed inset-0 z-50 bg-black/80 backdrop-blur-sm","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0","transition-opacity duration-150"]),L=G(["fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[calc(100vw-2rem)]","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0","transition-all duration-150","focus:outline-none"],{variants:{size:{sm:"max-w-xl",md:"max-w-3xl",lg:"max-w-5xl",xl:"max-w-7xl",full:"max-w-[calc(100vw-3rem)]"}},defaultVariants:{size:"md"}}),H=G("max-h-[calc(100vh-8rem)] w-full rounded-xl bg-black shadow-xl",{variants:{aspect:{video:"aspect-video",square:"aspect-square",wide:"aspect-[21/9]",vertical:"aspect-[9/16]"}},defaultVariants:{aspect:"video"}}),O=G("mt-3 text-center text-sm text-white/80"),Q=G(["absolute -top-11 right-0","flex size-9 cursor-pointer items-center justify-center rounded-full","text-white/80 transition-colors hover:bg-white/10 hover:text-white","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-white/40"]);function V({children:D,...P}){return g(E.Root,{...P,children:D})}function W({className:D,children:P,asChild:M,...A}){return g(E.Trigger,{className:q(D),render:M?P:void 0,...A,children:M?void 0:P})}function Y({children:D,...P}){return g(E.Portal,{...P,children:D})}function Z({className:D,...P}){return g(E.Backdrop,{className:q(K(),D),...P})}function _({size:D,className:P,children:M,...A}){return g(E.Popup,{"data-slot":"video-dialog-popup",className:q(L({size:D}),P),...A,children:M})}function $({aspect:D,className:P,controls:M=!0,...A}){return g("video",{"data-slot":"video-dialog-video",className:q(H({aspect:D}),P),controls:M,...A})}function X({aspect:D,className:P,allow:M="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:A=!0,referrerPolicy:R="strict-origin-when-cross-origin",...T}){return g("iframe",{"data-slot":"video-dialog-embed",className:q(H({aspect:D}),P),allow:M,allowFullScreen:A,referrerPolicy:R,...T})}function f({className:D,children:P,...M}){return g(E.Description,{"data-slot":"video-dialog-caption",className:q(O(),D),...M,children:P})}function k({className:D,children:P,...M}){return g(E.Close,{"data-slot":"video-dialog-close","aria-label":"Close video",className:q(Q(),D),...M,children:P??g(J,{icon:U})})}var v={Root:V,Trigger:W,Portal:Y,Backdrop:Z,Popup:_,Video:$,Embed:X,Caption:f,Close:k};export{L as videoDialogPopupVariants,H as videoDialogMediaVariants,Q as videoDialogCloseVariants,O as videoDialogCaptionVariants,K as videoDialogBackdropVariants,v as VideoDialog};export{v as a};
|