@storepass/components 0.4.0 → 0.6.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 +43 -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/Drawer/Drawer.d.ts +65 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Drawer/index.js +1 -0
- 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 +46 -15
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +2 -2
- 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 +6 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index-2nc1awt9.js +2 -0
- package/dist/index-9scn04dv.js +2 -0
- package/dist/{index-rypjyrpn.js → index-aq782dhn.js} +1 -1
- package/dist/index-dsdw1626.js +2 -0
- package/dist/index-env8xaka.js +2 -0
- package/dist/index-mmas6ncx.js +2 -0
- package/dist/{index-btjxn90p.js → index-mq6f0tgx.js} +2 -2
- package/dist/{index-8mzg78nw.js → index-nr793zrn.js} +2 -2
- 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 +25 -22
- package/dist/index-1cb5sns5.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
2
1
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import {
|
|
4
|
-
import { type
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
+
import { type PageHeadingBackLinkProps } from "../PageHeading/PageHeading";
|
|
4
|
+
import { type SidebarItemProps } from "../Sidebar/Sidebar";
|
|
5
5
|
declare const settingsContainerVariants: (props?: ({
|
|
6
|
-
width?: "
|
|
6
|
+
width?: "wide" | "settings" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface SettingsContainerProps extends Omit<ComponentPropsWithoutRef<"div">, "className">, VariantProps<typeof settingsContainerVariants> {
|
|
9
9
|
/**
|
|
@@ -22,21 +22,17 @@ export interface SettingsContainerProps extends Omit<ComponentPropsWithoutRef<"d
|
|
|
22
22
|
* and content rhythm. Full-bleed surfaces (product tables, dashboards) should
|
|
23
23
|
* not use it.
|
|
24
24
|
*/
|
|
25
|
-
export declare function SettingsContainer({ width, back, className, children, ...props }: SettingsContainerProps): import("react
|
|
26
|
-
export interface SettingsBackButtonProps extends
|
|
27
|
-
/** Renders the button as a plain anchor; pass `render` for router links. */
|
|
28
|
-
href?: string;
|
|
25
|
+
export declare function SettingsContainer({ width, back, className, children, ...props }: SettingsContainerProps): import("react").JSX.Element;
|
|
26
|
+
export interface SettingsBackButtonProps extends PageHeadingBackLinkProps {
|
|
29
27
|
}
|
|
30
28
|
/**
|
|
31
29
|
* Quiet up-navigation for drill-in settings pages. SettingsContainer renders
|
|
32
30
|
* it at the top-left of the content pane, in the gutter above the centered
|
|
33
|
-
* column — not in the header corner. The
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* pane's gutter edge despite the button's padding. Label the destination
|
|
37
|
-
* (e.g. "Marketplaces"), not "Back".
|
|
31
|
+
* column — not in the header corner. The settings-kit name for the shared
|
|
32
|
+
* PageHeadingBackLink, so both surfaces keep one back-link treatment. Label
|
|
33
|
+
* the destination (e.g. "Marketplaces"), not "Back".
|
|
38
34
|
*/
|
|
39
|
-
export declare function SettingsBackButton(
|
|
35
|
+
export declare function SettingsBackButton(props: SettingsBackButtonProps): import("react").JSX.Element;
|
|
40
36
|
export interface SettingsHeaderProps {
|
|
41
37
|
title: string;
|
|
42
38
|
/** Chip rendered beside the title (e.g. a Beta badge). */
|
|
@@ -46,11 +42,11 @@ export interface SettingsHeaderProps {
|
|
|
46
42
|
description?: ReactNode;
|
|
47
43
|
}
|
|
48
44
|
/**
|
|
49
|
-
* Page headline for configuration surfaces:
|
|
50
|
-
*
|
|
51
|
-
*
|
|
45
|
+
* Page headline for configuration surfaces: the display-size PageHeading
|
|
46
|
+
* (36px semibold title, quiet text-md subtext). Drill-in views (an order
|
|
47
|
+
* detail) step down to the default-size PageHeading rather than reusing this.
|
|
52
48
|
*/
|
|
53
|
-
export declare function SettingsHeader({ title, badge, actions, description, }: SettingsHeaderProps): import("react
|
|
49
|
+
export declare function SettingsHeader({ title, badge, actions, description, }: SettingsHeaderProps): import("react").JSX.Element;
|
|
54
50
|
export interface SettingsSectionProps {
|
|
55
51
|
title: ReactNode;
|
|
56
52
|
/** Sub-copy under the title, in the header per Card semantics. */
|
|
@@ -68,7 +64,7 @@ export interface SettingsSectionProps {
|
|
|
68
64
|
* Free-form fields go in a Form (FormRow for side-by-side pairs); use
|
|
69
65
|
* sibling sections rather than FormSection to group a long form.
|
|
70
66
|
*/
|
|
71
|
-
export declare function SettingsSection({ title, description, action, className, children, }: SettingsSectionProps): import("react
|
|
67
|
+
export declare function SettingsSection({ title, description, action, className, children, }: SettingsSectionProps): import("react").JSX.Element;
|
|
72
68
|
export interface SettingsRowProps extends Omit<ComponentPropsWithoutRef<"div">, "className" | "title"> {
|
|
73
69
|
/** Setting name, text-sm medium. */
|
|
74
70
|
label: ReactNode;
|
|
@@ -87,7 +83,7 @@ export interface SettingsRowProps extends Omit<ComponentPropsWithoutRef<"div">,
|
|
|
87
83
|
* that need the full measure (text inputs, textareas) belong in a Field
|
|
88
84
|
* below the row instead of crammed into the control slot.
|
|
89
85
|
*/
|
|
90
|
-
export declare function SettingsRow({ label, description, htmlFor, className, children, ...props }: SettingsRowProps): import("react
|
|
86
|
+
export declare function SettingsRow({ label, description, htmlFor, className, children, ...props }: SettingsRowProps): import("react").JSX.Element;
|
|
91
87
|
export interface SettingsSeparatorProps extends ComponentPropsWithoutRef<"hr"> {
|
|
92
88
|
}
|
|
93
89
|
/**
|
|
@@ -95,7 +91,7 @@ export interface SettingsSeparatorProps extends ComponentPropsWithoutRef<"hr"> {
|
|
|
95
91
|
* negative margins cancel CardContent's md padding so the line runs edge to
|
|
96
92
|
* edge like a card divider, not an underline.
|
|
97
93
|
*/
|
|
98
|
-
export declare function SettingsSeparator({ className, ...props }: SettingsSeparatorProps): import("react
|
|
94
|
+
export declare function SettingsSeparator({ className, ...props }: SettingsSeparatorProps): import("react").JSX.Element;
|
|
99
95
|
export interface SettingsNavProps extends ComponentPropsWithoutRef<"nav"> {
|
|
100
96
|
}
|
|
101
97
|
/**
|
|
@@ -104,27 +100,21 @@ export interface SettingsNavProps extends ComponentPropsWithoutRef<"nav"> {
|
|
|
104
100
|
* the SettingsHeader is the lighter alternative; once pages group into
|
|
105
101
|
* categories, this is the rule.
|
|
106
102
|
*/
|
|
107
|
-
export declare function SettingsNav({ className, ...props }: SettingsNavProps): import("react
|
|
103
|
+
export declare function SettingsNav({ className, ...props }: SettingsNavProps): import("react").JSX.Element;
|
|
108
104
|
export interface SettingsNavGroupProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
|
|
109
105
|
/** Group heading (e.g. "Integrations"); omit for the top-level group. */
|
|
110
106
|
title?: ReactNode;
|
|
111
107
|
}
|
|
112
|
-
export declare function SettingsNavGroup({ title, className, children, ...props }: SettingsNavGroupProps): import("react
|
|
113
|
-
|
|
114
|
-
current?: boolean | null | undefined;
|
|
115
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
116
|
-
export type SettingsNavItemOwnProps = useRender.ComponentProps<"button"> & VariantProps<typeof settingsNavItemVariants> & {
|
|
117
|
-
current?: boolean;
|
|
118
|
-
children: ReactNode;
|
|
119
|
-
};
|
|
120
|
-
export type SettingsNavItemProps<C extends React.ElementType = "button"> = SettingsNavItemOwnProps & {
|
|
121
|
-
as?: C;
|
|
122
|
-
} & Omit<React.ComponentPropsWithoutRef<C>, keyof SettingsNavItemOwnProps | "as">;
|
|
108
|
+
export declare function SettingsNavGroup({ title, className, children, ...props }: SettingsNavGroupProps): import("react").JSX.Element;
|
|
109
|
+
export type SettingsNavItemProps<C extends React.ElementType = "button"> = Omit<SidebarItemProps<C>, "nested">;
|
|
123
110
|
/**
|
|
124
111
|
* One page link in a SettingsNav. Renders a button by default; pass
|
|
125
112
|
* `as="a"`/`href` or `render={<Link .../>}` for real navigation. `current`
|
|
126
|
-
* marks the active page (filled pill, aria-current).
|
|
113
|
+
* marks the active page (filled pill, aria-current). Inherits the nested
|
|
114
|
+
* SidebarItem — geometry, icon handling, the current pill, canvas
|
|
115
|
+
* surface treatment, and polymorphism — while resting rows read
|
|
116
|
+
* text-secondary.
|
|
127
117
|
*/
|
|
128
|
-
export declare function SettingsNavItem<C extends React.ElementType = "button">({ current, className,
|
|
129
|
-
export { settingsContainerVariants
|
|
118
|
+
export declare function SettingsNavItem<C extends React.ElementType = "button">({ current, className, ...props }: SettingsNavItemProps<C>): import("react").JSX.Element;
|
|
119
|
+
export { settingsContainerVariants };
|
|
130
120
|
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"AAoDA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,EAGN,KAAK,wBAAwB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGN,KAAK,gBAAgB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,QAAA,MAAM,yBAAyB;;8EAY7B,CAAC;AAEH,MAAM,WAAW,sBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAC/C;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EACjC,KAAK,EACL,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAexB;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;CAAG;AAE5E;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC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,IAAI,CAAC;CAAG;AAE1C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAQxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAE5E;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQpE;AAED,MAAM,WAAW,qBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtD,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,qBAAqB,+BAWvB;AAED,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,IAAI,CAC9E,gBAAgB,CAAC,CAAC,CAAC,EACnB,QAAQ,CACR,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,EACvE,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,CAAC,CAAC,+BAYzB;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { SettingsBackButtonProps, SettingsContainerProps, SettingsHeaderProps, SettingsNavGroupProps, SettingsNavItemProps, SettingsNavProps, SettingsRowProps, SettingsSectionProps, SettingsSeparatorProps, } from "./Settings";
|
|
2
|
-
export { SettingsBackButton, SettingsContainer, SettingsHeader, SettingsNav, SettingsNavGroup, SettingsNavItem, SettingsRow, SettingsSection, SettingsSeparator, settingsContainerVariants,
|
|
2
|
+
export { SettingsBackButton, SettingsContainer, SettingsHeader, SettingsNav, SettingsNavGroup, SettingsNavItem, SettingsRow, SettingsSection, SettingsSeparator, settingsContainerVariants, } from "./Settings";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{sa as K,ua as M}from"../../index-env8xaka.js";import{za as D}from"../../index-mq6f0tgx.js";import{Za as E,_a as J}from"../../index-mmas6ncx.js";import"../../index-dsdw1626.js";import{Oc as z,Wc as A}from"../../index-nr793zrn.js";import"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import"../../index-aq782dhn.js";import{ye as g}from"../../lib/utils.js";import{cva as U}from"class-variance-authority";import{jsx as P,jsxs as q}from"react/jsx-runtime";var Q=U("mx-auto flex w-full flex-col gap-5",{variants:{width:{settings:"max-w-3xl",wide:"max-w-7xl"}},defaultVariants:{width:"settings"}});function W({width:S,back:B,className:G,children:R,...v}){return q("div",{"data-slot":"settings-container",className:"flex flex-col gap-8",children:[P("div",{className:"h-8",children:B}),P("div",{className:g(Q({width:S}),G),...v,children:R})]})}function X(S){return P(J,{...S})}function Y({title:S,badge:B,actions:G,description:R}){return P(E,{"data-slot":"settings-header",size:"display",title:S,badge:B,description:R,actions:G})}function Z({title:S,description:B,action:G,className:R,children:v}){return q("section",{"data-slot":"settings-section",className:g("flex flex-col gap-3 [[data-slot=settings-section]+&]:mt-3",R),children:[q("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[P("h2",{className:"text-base leading-tight font-semibold text-foreground",children:S}),B&&P("p",{className:"text-sm text-tertiary",children:B})]}),G&&P("div",{className:"shrink-0",children:G})]}),P(z,{padding:"md",children:P(A,{padding:"none",className:"flex flex-col gap-4 text-sm text-secondary",children:v})})]})}function _({label:S,description:B,htmlFor:G,className:R,children:v,...T}){return q("div",{"data-slot":"settings-row",className:g("flex flex-wrap items-center justify-between gap-x-8 gap-y-2",R),...T,children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[G?P(D,{htmlFor:G,children:S}):P("span",{className:"text-sm leading-none font-medium text-foreground",children:S}),B&&P("p",{className:"max-w-md text-[13px] leading-normal text-tertiary",children:B})]}),v&&P("div",{className:"flex shrink-0 items-center gap-2",children:v})]})}function $({className:S,...B}){return P("hr",{"data-slot":"settings-separator",className:g("-mx-5 my-1 border-t border-border",S),...B})}function I({className:S,...B}){return P("nav",{"data-slot":"settings-nav",className:g("flex w-56 shrink-0 flex-col gap-6",S),...B})}function O({title:S,className:B,children:G,...R}){return q("div",{"data-slot":"settings-nav-group",className:g("flex flex-col",B),...R,children:[S&&P(K,{children:S}),P("div",{className:"flex flex-col gap-0.5",children:G})]})}function V({current:S,className:B,...G}){return P(M,{nested:!0,current:S,surface:"canvas",className:g(S?"font-medium":"text-secondary",B),...G})}export{Q as settingsContainerVariants,$ as SettingsSeparator,Z as SettingsSection,_ as SettingsRow,V as SettingsNavItem,O as SettingsNavGroup,I as SettingsNav,Y as SettingsHeader,W as SettingsContainer,X as SettingsBackButton};export{Q as aa,W as ba,X as ca,Y as da,Z as ea,_ as fa,$ as ga,I as ha,O as ia,V as ja};
|
|
@@ -1,57 +1,88 @@
|
|
|
1
|
+
import { Collapsible as BaseCollapsible } from "@base-ui/react/collapsible";
|
|
1
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
3
|
import { type VariantProps } from "class-variance-authority";
|
|
3
4
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
4
5
|
declare const sidebarVariants: (props?: ({
|
|
5
6
|
variant?: "default" | "bordered" | null | undefined;
|
|
7
|
+
surface?: "canvas" | "default" | null | undefined;
|
|
6
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export type SidebarSurface = "default" | "canvas";
|
|
7
10
|
export interface SidebarProps extends ComponentPropsWithoutRef<"nav">, VariantProps<typeof sidebarVariants> {
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
10
13
|
* A vertical navigation sidebar component with support for headers,
|
|
11
|
-
* sections, items, and footers.
|
|
14
|
+
* sections, collapsible groups, items, and footers. The current-item pill
|
|
15
|
+
* slides between items as `current` moves.
|
|
12
16
|
*/
|
|
13
|
-
export declare function Sidebar({ className, variant, ...props }: SidebarProps): import("react
|
|
17
|
+
export declare function Sidebar({ className, variant, surface, ...props }: SidebarProps): import("react").JSX.Element;
|
|
14
18
|
export interface SidebarHeaderProps extends ComponentPropsWithoutRef<"div"> {
|
|
15
19
|
}
|
|
16
|
-
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): import("react
|
|
20
|
+
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): import("react").JSX.Element;
|
|
17
21
|
export interface SidebarBodyProps extends ComponentPropsWithoutRef<"div"> {
|
|
18
22
|
}
|
|
19
|
-
export declare function SidebarBody({ className, ...props }: SidebarBodyProps): import("react
|
|
23
|
+
export declare function SidebarBody({ className, ...props }: SidebarBodyProps): import("react").JSX.Element;
|
|
20
24
|
export interface SidebarFooterProps extends ComponentPropsWithoutRef<"div"> {
|
|
21
25
|
}
|
|
22
|
-
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): import("react
|
|
26
|
+
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): import("react").JSX.Element;
|
|
23
27
|
export interface SidebarSectionProps extends ComponentPropsWithoutRef<"div"> {
|
|
24
28
|
}
|
|
25
|
-
export declare function SidebarSection({ className, ...props }: SidebarSectionProps): import("react
|
|
29
|
+
export declare function SidebarSection({ className, ...props }: SidebarSectionProps): import("react").JSX.Element;
|
|
26
30
|
export interface SidebarDividerProps extends ComponentPropsWithoutRef<"hr"> {
|
|
27
31
|
}
|
|
28
|
-
export declare function SidebarDivider({ className, ...props }: SidebarDividerProps): import("react
|
|
32
|
+
export declare function SidebarDivider({ className, ...props }: SidebarDividerProps): import("react").JSX.Element;
|
|
29
33
|
export interface SidebarSpacerProps extends ComponentPropsWithoutRef<"div"> {
|
|
30
34
|
}
|
|
31
|
-
export declare function SidebarSpacer({ className, ...props }: SidebarSpacerProps): import("react
|
|
35
|
+
export declare function SidebarSpacer({ className, ...props }: SidebarSpacerProps): import("react").JSX.Element;
|
|
32
36
|
export interface SidebarHeadingProps extends ComponentPropsWithoutRef<"h3"> {
|
|
33
37
|
}
|
|
34
|
-
export declare function SidebarHeading({ className, ...props }: SidebarHeadingProps): import("react
|
|
38
|
+
export declare function SidebarHeading({ className, ...props }: SidebarHeadingProps): import("react").JSX.Element;
|
|
35
39
|
declare const sidebarItemVariants: (props?: ({
|
|
36
|
-
current?: boolean | null | undefined;
|
|
37
40
|
nested?: boolean | null | undefined;
|
|
41
|
+
grouped?: boolean | null | undefined;
|
|
42
|
+
surface?: "canvas" | "default" | null | undefined;
|
|
43
|
+
current?: boolean | null | undefined;
|
|
38
44
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
39
45
|
export type SidebarItemOwnProps = useRender.ComponentProps<"button"> & VariantProps<typeof sidebarItemVariants> & {
|
|
40
46
|
current?: boolean;
|
|
47
|
+
/** Compact, muted row (settings-style sub-navigation). Children of a
|
|
48
|
+
* SidebarGroup don't need this. */
|
|
41
49
|
nested?: boolean;
|
|
50
|
+
/** A separate trailing control, rendered as a sibling of the item. */
|
|
51
|
+
action?: ReactNode;
|
|
42
52
|
children: ReactNode;
|
|
43
53
|
};
|
|
44
54
|
export type SidebarItemProps<C extends React.ElementType = "button"> = SidebarItemOwnProps & {
|
|
45
55
|
as?: C;
|
|
46
56
|
} & Omit<React.ComponentPropsWithoutRef<C>, keyof SidebarItemOwnProps | "as">;
|
|
47
57
|
/**
|
|
48
|
-
* A single navigation entry within a SidebarSection
|
|
49
|
-
* `as`) to render as a custom element such as a router
|
|
50
|
-
* className, data-current, ref, and children.
|
|
58
|
+
* A single navigation entry within a SidebarSection or SidebarGroupPanel.
|
|
59
|
+
* Pass `render` (or `as`) to render as a custom element such as a router
|
|
60
|
+
* Link; it receives className, data-current, ref, and children.
|
|
51
61
|
*/
|
|
52
|
-
export declare function SidebarItem<C extends React.ElementType = "button">({ current, nested, className, children, render, as, ...props }: SidebarItemProps<C>): import("react
|
|
62
|
+
export declare function SidebarItem<C extends React.ElementType = "button">({ current, nested, grouped, surface, action, className, children, render, as, ...props }: SidebarItemProps<C>): import("react").JSX.Element;
|
|
63
|
+
type SidebarGroupRootProps = ComponentPropsWithoutRef<typeof BaseCollapsible.Root>;
|
|
64
|
+
export interface SidebarGroupProps extends Omit<SidebarGroupRootProps, "className"> {
|
|
65
|
+
className?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A collapsible parent entry. Its SidebarGroupPanel hangs the children off a
|
|
69
|
+
* rail that lines up with the trigger's icon, so children share the parent's
|
|
70
|
+
* label column instead of indenting past it.
|
|
71
|
+
*/
|
|
72
|
+
export declare function SidebarGroup({ className, onOpenChange, ...props }: SidebarGroupProps): import("react").JSX.Element;
|
|
73
|
+
export interface SidebarGroupTriggerProps extends Omit<ComponentPropsWithoutRef<typeof BaseCollapsible.Trigger>, "className"> {
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
/** The parent row of a SidebarGroup: styled as a SidebarItem, with a trailing
|
|
77
|
+
* chevron that turns down while open. */
|
|
78
|
+
export declare function SidebarGroupTrigger({ className, children, ...props }: SidebarGroupTriggerProps): import("react").JSX.Element;
|
|
79
|
+
export interface SidebarGroupPanelProps extends Omit<ComponentPropsWithoutRef<typeof BaseCollapsible.Panel>, "className"> {
|
|
80
|
+
className?: string;
|
|
81
|
+
}
|
|
82
|
+
/** The children of a SidebarGroup, on a rail aligned to the trigger's icon. */
|
|
83
|
+
export declare function SidebarGroupPanel({ className, children, onTransitionEnd, ...props }: SidebarGroupPanelProps): import("react").JSX.Element;
|
|
53
84
|
export interface SidebarLabelProps extends ComponentPropsWithoutRef<"span"> {
|
|
54
85
|
}
|
|
55
|
-
export declare function SidebarLabel({ className, ...props }: SidebarLabelProps): import("react
|
|
86
|
+
export declare function SidebarLabel({ className, ...props }: SidebarLabelProps): import("react").JSX.Element;
|
|
56
87
|
export { sidebarItemVariants, sidebarVariants };
|
|
57
88
|
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,SAA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,WAAW,iBAChB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC5B,SAAS,EACT,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,iBAAiB,+BAgBnB;AAED,MAAM,WAAW,wBAChB,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EACxD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;yCACyC;AACzC,wBAAgB,mBAAmB,CAAC,EACnC,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,wBAAwB,+BAoB1B;AAED,MAAM,WAAW,sBAChB,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,EACtD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,EACjC,SAAS,EACT,QAAQ,EACR,eAAe,EACf,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAwCxB;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;CAAG;AAE9E,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAQtE;AAED,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SidebarBodyProps, SidebarDividerProps, SidebarFooterProps, SidebarHeaderProps, SidebarHeadingProps, SidebarItemProps, SidebarLabelProps, SidebarProps, SidebarSectionProps, SidebarSpacerProps, } from "./Sidebar";
|
|
2
|
-
export { Sidebar, SidebarBody, SidebarDivider, SidebarFooter, SidebarHeader, SidebarHeading, SidebarItem, SidebarLabel, SidebarSection, SidebarSpacer, sidebarItemVariants, sidebarVariants, } from "./Sidebar";
|
|
1
|
+
export type { SidebarBodyProps, SidebarDividerProps, SidebarFooterProps, SidebarGroupPanelProps, SidebarGroupProps, SidebarGroupTriggerProps, SidebarHeaderProps, SidebarHeadingProps, SidebarItemProps, SidebarLabelProps, SidebarProps, SidebarSectionProps, SidebarSpacerProps, SidebarSurface, } from "./Sidebar";
|
|
2
|
+
export { Sidebar, SidebarBody, SidebarDivider, SidebarFooter, SidebarGroup, SidebarGroupPanel, SidebarGroupTrigger, 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,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,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,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,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{ka as r,la as e,ma as a,na as i,oa as d,pa as S,qa as b,ra as o,sa as p,ta as s,ua as P,va as t,wa as n,xa as u,ya as g}from"../../index-env8xaka.js";import"../Icon/index.js";import"../../index-aq782dhn.js";import"../../lib/utils.js";export{r as sidebarVariants,s as sidebarItemVariants,o as SidebarSpacer,S as SidebarSection,g as SidebarLabel,P as SidebarItem,p as SidebarHeading,a as SidebarHeader,n as SidebarGroupTrigger,u as SidebarGroupPanel,t as SidebarGroup,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{ye 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 f,W as g};
|
|
@@ -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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AAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC;CAAG;AAE7E,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAQtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ye 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 h,F as i,H as j,R as k,g as l,k as m,q as n,v as o};
|
|
@@ -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{bb as s,cb as r,db as a,eb as t,fb as T,gb as b}from"../../index-dsdw1626.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{pe as B}from"../Badge/index.js";import"../Icon/index.js";import{xe as D}from"../../index-aq782dhn.js";import{ye 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 p};
|
|
@@ -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{ye 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 q,x as r,s,f as t,i as u,m as v,p as w,u as x};
|
|
@@ -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"}
|