@vkzstudio/muza-ui 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +57 -4
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +1 -4
- package/dist/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.d.ts +13 -2
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +4 -4
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +12 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +23 -8
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +3 -12
- package/dist/components/Button/Button.d.ts +30 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.d.ts +39 -3
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/utils/formatDate.d.ts +4 -0
- package/dist/components/Calendar/utils/formatDate.d.ts.map +1 -1
- package/dist/components/Calendar/utils/formatDateRange.d.ts +5 -0
- package/dist/components/Calendar/utils/formatDateRange.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +25 -3
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/Chip/Chip.d.ts +3 -6
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.js +6 -6
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +40 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DataTable/index.d.ts +1 -1
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +59 -4
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +7 -7
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/utils/getDateRange.d.ts +9 -0
- package/dist/components/DatePicker/utils/getDateRange.d.ts.map +1 -1
- package/dist/components/DatePicker/utils/getDateRange.js +28 -15
- package/dist/components/Dialog/Dialog.d.ts +39 -2
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +176 -60
- package/dist/components/Dialog/Dialog.stories.d.ts +2 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +73 -11
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +2 -8
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +10 -26
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/EdgeButton/EdgeButton.d.ts +18 -0
- package/dist/components/EdgeButton/EdgeButton.d.ts.map +1 -1
- package/dist/components/EdgeButton/EdgeButton.js +4 -4
- package/dist/components/EdgeButton/EdgeButton.stories.d.ts.map +1 -1
- package/dist/components/EdgeButton/index.d.ts +1 -1
- package/dist/components/EdgeButton/index.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +10 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.js +6 -6
- package/dist/components/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.d.ts +54 -0
- package/dist/components/ExpandableTable/ExpandableTable.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.js +2 -2
- package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts +0 -3
- package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts.map +1 -1
- package/dist/components/ExpandableTable/Table.js +1 -1
- package/dist/components/ExpandableTable/index.d.ts +1 -1
- package/dist/components/ExpandableTable/index.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.js +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +51 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/Flex/Flex.d.ts +49 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.stories.d.ts.map +1 -1
- package/dist/components/Flex/index.d.ts +1 -1
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.d.ts +166 -1
- package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +110 -97
- package/dist/components/InfoCard/InfoCard.d.ts +17 -0
- package/dist/components/InfoCard/InfoCard.d.ts.map +1 -0
- package/dist/components/InfoCard/index.d.ts +2 -0
- package/dist/components/InfoCard/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +26 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +16 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.d.ts +15 -2
- package/dist/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.js +22 -20
- package/dist/components/Loader/Loader.d.ts +3 -0
- package/dist/components/Loader/Loader.d.ts.map +1 -1
- package/dist/components/Loader/Loader.stories.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen.d.ts +18 -0
- package/dist/components/LoginScreen/LoginScreen.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen.stories.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreenItem.d.ts +5 -0
- package/dist/components/LoginScreen/LoginScreenItem.d.ts.map +1 -1
- package/dist/components/LoginScreen/index.d.ts +2 -2
- package/dist/components/LoginScreen/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +25 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +8 -8
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/dist/components/MuzaUIProvider/MuzaUIProvider.d.ts +26 -1
- package/dist/components/MuzaUIProvider/MuzaUIProvider.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts.map +1 -1
- package/dist/components/PinIndicator/PinIndicator.d.ts +15 -0
- package/dist/components/PinIndicator/PinIndicator.d.ts.map +1 -1
- package/dist/components/PinIndicator/PinIndicator.stories.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +36 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +28 -3
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +2 -5
- package/dist/components/Radio/Radio.stories.d.ts.map +1 -1
- package/dist/components/Reorderable/Reorderable.d.ts +79 -30
- package/dist/components/Reorderable/Reorderable.d.ts.map +1 -1
- package/dist/components/Reorderable/Reorderable.js +162 -143
- package/dist/components/Reorderable/Reorderable.stories.d.ts +1 -0
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
- package/dist/components/Reorderable/index.d.ts +1 -1
- package/dist/components/Reorderable/index.d.ts.map +1 -1
- package/dist/components/ReorderableTable/ReorderableTable.d.ts +47 -13
- package/dist/components/ReorderableTable/ReorderableTable.d.ts.map +1 -1
- package/dist/components/ReorderableTable/ReorderableTable.js +44 -43
- package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts +1 -0
- package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -1
- package/dist/components/ReorderableTable/index.d.ts +1 -1
- package/dist/components/ReorderableTable/index.d.ts.map +1 -1
- package/dist/components/Searchbar/Searchbar.d.ts +11 -0
- package/dist/components/Searchbar/Searchbar.d.ts.map +1 -1
- package/dist/components/Searchbar/Searchbar.stories.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +35 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedIconControl/SegmentedIconControl.d.ts +38 -1
- package/dist/components/SegmentedIconControl/SegmentedIconControl.d.ts.map +1 -1
- package/dist/components/SegmentedIconControl/SegmentedIconControl.stories.d.ts.map +1 -1
- package/dist/components/SegmentedIconControl/index.d.ts +1 -1
- package/dist/components/SegmentedIconControl/index.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +25 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +9 -6
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts.map +1 -1
- package/dist/components/SliderIndicators/SliderIndicators.d.ts +9 -0
- package/dist/components/SliderIndicators/SliderIndicators.d.ts.map +1 -1
- package/dist/components/SliderIndicators/SliderIndicators.stories.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts +38 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +5 -5
- package/dist/components/Stepper/Stepper.stories.d.ts.map +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/SwipeButton/SwipeButton.d.ts +39 -0
- package/dist/components/SwipeButton/SwipeButton.d.ts.map +1 -1
- package/dist/components/SwipeButton/SwipeButton.js +1 -1
- package/dist/components/SwipeButton/SwipeButton.stories.d.ts +0 -43
- package/dist/components/SwipeButton/SwipeButton.stories.d.ts.map +1 -1
- package/dist/components/SwipeButton/index.d.ts +1 -1
- package/dist/components/SwipeButton/index.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts +19 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +17 -1
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/Tag.js +4 -4
- package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
- package/dist/components/TextEditor/EditorToolbar.js +1 -1
- package/dist/components/TextEditor/LinkBubbleMenu.d.ts +4 -1
- package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -1
- package/dist/components/TextEditor/LinkBubbleMenu.js +116 -92
- package/dist/components/TextEditor/TextEditor.d.ts +5 -2
- package/dist/components/TextEditor/TextEditor.d.ts.map +1 -1
- package/dist/components/TextEditor/TextEditor.js +129 -121
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +9 -2
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.d.ts +23 -1
- package/dist/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.js +1 -4
- package/dist/components/TimePicker/TimePicker.stories.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +21 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +7 -7
- package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/components/Toast/ToastContainer.d.ts +12 -1
- package/dist/components/Toast/ToastContainer.d.ts.map +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts +17 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.js +6 -6
- package/dist/components/Toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/components/Toggle/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +52 -4
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +38 -3
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +5 -7
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/Typography/Typography.d.ts +18 -1
- package/dist/components/Typography/Typography.d.ts.map +1 -1
- package/dist/components/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/index.js +191 -184
- package/dist/muza-ui.css +1 -1
- package/dist/styles/token-sizes.css +4 -0
- package/llms-full.md +581 -0
- package/llms.txt +36 -0
- package/package.json +4 -3
- package/CLAUDE_CONSUMER.md +0 -238
|
@@ -1,8 +1,61 @@
|
|
|
1
|
+
import { AccordionMultipleProps as RadixAccordionMultipleProps, AccordionSingleProps as RadixAccordionSingleProps } from '@radix-ui/react-accordion';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/** Props for single mode — only one item can be open at a time. */
|
|
5
|
+
export interface AccordionSingleProps extends RadixAccordionSingleProps {
|
|
6
|
+
/** Single mode — only one item can be open at a time. */
|
|
7
|
+
type: 'single';
|
|
8
|
+
/** Allows closing the open item by clicking its trigger again. @default false */
|
|
9
|
+
collapsible?: boolean;
|
|
10
|
+
/** Controlled value of the expanded item (string in single mode). */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Default expanded item for uncontrolled usage. */
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
/** Fires when the expanded item changes. Receives the new value string. */
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
/** Prevents interaction with all items. @default false */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Props for multiple mode — any number of items can be open simultaneously. */
|
|
20
|
+
export interface AccordionMultipleProps extends RadixAccordionMultipleProps {
|
|
21
|
+
/** Multiple mode — any number of items can be open simultaneously. */
|
|
22
|
+
type: 'multiple';
|
|
23
|
+
/** Controlled value of the expanded items (string array in multiple mode). */
|
|
24
|
+
value?: string[];
|
|
25
|
+
/** Default expanded items for uncontrolled usage. */
|
|
26
|
+
defaultValue?: string[];
|
|
27
|
+
/** Fires when the expanded items change. Receives the new value array. */
|
|
28
|
+
onValueChange?: (value: string[]) => void;
|
|
29
|
+
/** Prevents interaction with all items. @default false */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Props for the Accordion root component.
|
|
34
|
+
* Built on [Radix Accordion](https://www.radix-ui.com/primitives/docs/components/accordion).
|
|
35
|
+
*
|
|
36
|
+
* Discriminated union on `type`:
|
|
37
|
+
* - `'single'` — one item open at a time; `value`/`defaultValue` is `string`
|
|
38
|
+
* - `'multiple'` — multiple items open; `value`/`defaultValue` is `string[]`
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* <Accordion type="single" collapsible defaultValue="item-1">
|
|
42
|
+
* <Accordion type="multiple" defaultValue={["item-1", "item-2"]}>
|
|
43
|
+
*/
|
|
44
|
+
export type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
|
|
45
|
+
/** Props for AccordionItem. Requires a unique `value` string to identify the section. */
|
|
46
|
+
export interface AccordionItemProps extends React.ComponentProps<typeof AccordionPrimitive.Item> {
|
|
47
|
+
/** Unique string identifying this item within the accordion. */
|
|
48
|
+
value: string;
|
|
49
|
+
/** Prevents interaction with this specific item. @default false */
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/** Props for AccordionHeader. Clickable area that toggles content visibility. */
|
|
53
|
+
export type AccordionHeaderProps = React.ComponentProps<typeof AccordionPrimitive.Header>;
|
|
54
|
+
/** Props for AccordionContent. Collapsible content area with slide animation. */
|
|
55
|
+
export type AccordionContentProps = React.ComponentProps<typeof AccordionPrimitive.Content>;
|
|
56
|
+
declare const Accordion: ({ className, ...props }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
declare const AccordionItem: ({ className, children, ...props }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare const AccordionHeader: ({ className, children, ...props }: AccordionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare const AccordionContent: ({ className, children, ...props }: AccordionContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
60
|
export { Accordion, AccordionContent, AccordionHeader, AccordionItem };
|
|
8
61
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EACL,KAAK,sBAAsB,IAAI,2BAA2B,EAC1D,KAAK,oBAAoB,IAAI,yBAAyB,EACvD,MAAM,2BAA2B,CAAA;AAKlC,mEAAmE;AACnE,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;IACrE,yDAAyD;IACzD,IAAI,EAAE,QAAQ,CAAA;IACd,iFAAiF;IACjF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,gFAAgF;AAChF,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACzE,sEAAsE;IACtE,IAAI,EAAE,UAAU,CAAA;IAChB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CAAA;AAE1E,yFAAyF;AACzF,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC;IAC5D,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,cAAc,CACrD,OAAO,kBAAkB,CAAC,MAAM,CACjC,CAAA;AAED,iFAAiF;AACjF,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CACtD,OAAO,kBAAkB,CAAC,OAAO,CAClC,CAAA;AAUD,QAAA,MAAM,SAAS,GAAI,yBAAyB,cAAc,4CAUzD,CAAA;AAED,QAAA,MAAM,aAAa,GAAI,mCAIpB,kBAAkB,4CA2BpB,CAAA;AAED,QAAA,MAAM,eAAe,GAAI,mCAItB,oBAAoB,4CA6BtB,CAAA;AAED,QAAA,MAAM,gBAAgB,GAAI,mCAIvB,qBAAqB,4CAoBvB,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -6,10 +6,7 @@ import { cn as c } from "../../utils/cn.js";
|
|
|
6
6
|
import { AltArrowDownOutline as p } from "@solar-icons/react-perf";
|
|
7
7
|
const d = s.createContext(
|
|
8
8
|
"single"
|
|
9
|
-
), i = () => s.useContext(d), g = ({
|
|
10
|
-
className: o,
|
|
11
|
-
...e
|
|
12
|
-
}) => /* @__PURE__ */ t(d.Provider, { value: e.type, children: /* @__PURE__ */ t(
|
|
9
|
+
), i = () => s.useContext(d), g = ({ className: o, ...e }) => /* @__PURE__ */ t(d.Provider, { value: e.type, children: /* @__PURE__ */ t(
|
|
13
10
|
n.Root,
|
|
14
11
|
{
|
|
15
12
|
"data-slot": "accordion",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,OAAO,EACL,SAAS,EAIV,MAAM,aAAa,CAAA;AAEpB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,
|
|
1
|
+
{"version":3,"file":"Accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,OAAO,EACL,SAAS,EAIV,MAAM,aAAa,CAAA;AAEpB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAiEhC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAE,KA+BtB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KA8CpB,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,eAAe,CAsCxD,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,eAAe,CAqDtD,CAAA"}
|
|
@@ -4,11 +4,22 @@ declare const alertVariants: (props?: ({
|
|
|
4
4
|
type?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
5
5
|
size?: "small" | "large" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Props for the Alert component.
|
|
9
|
+
*
|
|
10
|
+
* A contextual feedback banner with semantic types, optional close button, and fade-out animation.
|
|
11
|
+
*/
|
|
12
|
+
export interface AlertProps extends React.ComponentProps<'div'>, Omit<VariantProps<typeof alertVariants>, 'type' | 'size'> {
|
|
13
|
+
/** Semantic type determining color scheme and message importance. @default 'info' */
|
|
14
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
15
|
+
/** Controls padding and text size. @default 'large' */
|
|
16
|
+
size?: 'small' | 'large';
|
|
17
|
+
/** Shows a close button that dismisses the alert with a fade-out animation. @default false */
|
|
8
18
|
isClosable?: boolean;
|
|
19
|
+
/** Font weight of the alert message text. @default 'regular' */
|
|
9
20
|
textWeight?: 'regular' | 'medium';
|
|
21
|
+
/** Fires after the alert is dismissed and fade-out animation completes. */
|
|
10
22
|
onClose?: () => void;
|
|
11
|
-
className?: string;
|
|
12
23
|
}
|
|
13
24
|
declare const Alert: ({ className, type, size, textWeight, isClosable, children, onClose, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
25
|
export { Alert };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,aAAa;;;8EAiBjB,CAAA;AAEF,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EACjC,YAAY,CAAC,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,aAAa;;;8EAiBjB,CAAA;AAEF;;;;GAIG;AACH,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EACjC,IAAI,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3D,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IAC/C,uDAAuD;IACvD,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IACxB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gEAAgE;IAChE,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IACjC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,QAAA,MAAM,KAAK,GAAI,gFASZ,UAAU,mDAqDZ,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -2,8 +2,8 @@ import { jsxs as x, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { cva as b } from "class-variance-authority";
|
|
4
4
|
import { XClose as y } from "../Icons/CustomIcons.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { cn as h } from "../../utils/cn.js";
|
|
6
|
+
import { Typography as v } from "../Typography/Typography.js";
|
|
7
7
|
const w = b(["rounded-2xl"], {
|
|
8
8
|
variants: {
|
|
9
9
|
type: {
|
|
@@ -41,7 +41,7 @@ const w = b(["rounded-2xl"], {
|
|
|
41
41
|
{
|
|
42
42
|
"data-slot": "alert",
|
|
43
43
|
role: "alert",
|
|
44
|
-
className:
|
|
44
|
+
className: h(
|
|
45
45
|
w({ type: i, size: t }),
|
|
46
46
|
s,
|
|
47
47
|
"flex w-fit items-center gap-sm",
|
|
@@ -51,7 +51,7 @@ const w = b(["rounded-2xl"], {
|
|
|
51
51
|
...p,
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ r(
|
|
54
|
-
|
|
54
|
+
v,
|
|
55
55
|
{
|
|
56
56
|
component: "span",
|
|
57
57
|
variant: "body",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Alert.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA8C5B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAA;AAEnC,eAAO,MAAM,IAAI,EAAE,KAiBlB,CAAA;AACD,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAiBnB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAyHzB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAyHjC,CAAA"}
|
|
@@ -5,12 +5,23 @@ declare const avatarVariants: (props?: ({
|
|
|
5
5
|
interactive?: boolean | null | undefined;
|
|
6
6
|
pressed?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Props for the Avatar component.
|
|
10
|
+
* Renders as a `<span>` by default; becomes a `<button>` when `onClick` is provided.
|
|
11
|
+
*/
|
|
12
|
+
export interface AvatarProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof avatarVariants>, 'interactive'> {
|
|
13
|
+
/** URL of the avatar image. Shows fallback user icon when absent or on load failure. */
|
|
9
14
|
src?: string;
|
|
15
|
+
/** Alternative text for the avatar image. */
|
|
10
16
|
alt?: string;
|
|
17
|
+
/** Prevents interaction and applies disabled styling. Only effective on interactive avatars. @default false */
|
|
11
18
|
disabled?: boolean;
|
|
19
|
+
/** Fires when clicked. Presence renders the avatar as an interactive button. */
|
|
12
20
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
+
/** Additional CSS class names. */
|
|
13
22
|
className?: string;
|
|
23
|
+
/** Applies visual pressed state for toggle-like behavior. @default false */
|
|
24
|
+
pressed?: boolean;
|
|
14
25
|
}
|
|
15
26
|
declare const Avatar: ({ className, onClick, src, alt, pressed, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
27
|
declare const AvatarImage: ({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EAmCnB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EAmCnB,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,IAAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,aAAa,CAAC;IAC1D,wFAAwF;IACxF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6CAA6C;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC9D,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,GAAI,qDAOb,WAAW,4CAiCb,CAAA;AAED,QAAA,MAAM,WAAW,GAAI,yBAGlB,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,4CAQpD,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,yBAGrB,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,4CAWvD,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA+
|
|
1
|
+
{"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA+C7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAevB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAavB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KA4DzB,CAAA"}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
/** Props for the Breadcrumb root component. */
|
|
3
|
+
export type BreadcrumbProps = React.ComponentProps<'nav'>;
|
|
4
|
+
/** Props for the BreadcrumbList component. */
|
|
5
|
+
export type BreadcrumbListProps = React.ComponentProps<'ol'>;
|
|
6
|
+
/** Props for the BreadcrumbItem component. */
|
|
7
|
+
export type BreadcrumbItemProps = React.ComponentProps<'li'>;
|
|
8
|
+
/** Props for the BreadcrumbLink component. */
|
|
9
|
+
export interface BreadcrumbLinkProps extends React.ComponentProps<'a'> {
|
|
10
|
+
/** Renders as a Radix Slot, merging props onto a custom child element for client-side routing. */
|
|
6
11
|
asChild?: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
}
|
|
13
|
+
/** Props for the BreadcrumbPage component. */
|
|
14
|
+
export type BreadcrumbPageProps = React.ComponentProps<'span'>;
|
|
15
|
+
/** Props for the BreadcrumbSeparator component. */
|
|
16
|
+
export type BreadcrumbSeparatorProps = React.ComponentProps<'li'>;
|
|
17
|
+
/** Props for the BreadcrumbEllipsis component. */
|
|
18
|
+
export type BreadcrumbEllipsisProps = React.ComponentProps<'span'>;
|
|
19
|
+
declare const Breadcrumb: ({ ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const BreadcrumbList: ({ className, ...props }: BreadcrumbListProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const BreadcrumbItem: ({ className, ...props }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const BreadcrumbLink: ({ asChild, className, ...props }: BreadcrumbLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const BreadcrumbPage: ({ className, ...props }: BreadcrumbPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const BreadcrumbSeparator: ({ children, className, ...props }: BreadcrumbSeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare const BreadcrumbEllipsis: ({ className, ...props }: BreadcrumbEllipsisProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
26
|
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
12
27
|
//# sourceMappingURL=Breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,+CAA+C;AAC/C,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;AAEzD,8CAA8C;AAC9C,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;AAE5D,8CAA8C;AAC9C,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;AAE5D,8CAA8C;AAC9C,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC;IACpE,kGAAkG;IAClG,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,8CAA8C;AAC9C,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;AAE9D,mDAAmD;AACnD,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;AAEjE,kDAAkD;AAClD,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;AAElE,QAAA,MAAM,UAAU,GAAI,cAAc,eAAe,4CAEhD,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CAWnE,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CAQnE,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,kCAIrB,mBAAmB,4CAqBrB,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CAoBnE,CAAA;AAED,QAAA,MAAM,mBAAmB,GAAI,mCAI1B,wBAAwB,4CAe1B,CAAA;AAED,QAAA,MAAM,kBAAkB,GAAI,yBAGzB,uBAAuB,4CAuBzB,CAAA;AAED,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,CAAA"}
|
|
@@ -4,10 +4,7 @@ import { Slot as i } from "@radix-ui/react-slot";
|
|
|
4
4
|
import { typographyVariants as o, Typography as n } from "../Typography/Typography.js";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import { AltArrowRightOutline as m } from "@solar-icons/react-perf";
|
|
7
|
-
const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r }), g = ({
|
|
8
|
-
className: r,
|
|
9
|
-
...e
|
|
10
|
-
}) => /* @__PURE__ */ t(
|
|
7
|
+
const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r }), g = ({ className: r, ...e }) => /* @__PURE__ */ t(
|
|
11
8
|
"ol",
|
|
12
9
|
{
|
|
13
10
|
"data-slot": "breadcrumb-list",
|
|
@@ -17,10 +14,7 @@ const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "
|
|
|
17
14
|
),
|
|
18
15
|
...e
|
|
19
16
|
}
|
|
20
|
-
), h = ({
|
|
21
|
-
className: r,
|
|
22
|
-
...e
|
|
23
|
-
}) => /* @__PURE__ */ t(
|
|
17
|
+
), h = ({ className: r, ...e }) => /* @__PURE__ */ t(
|
|
24
18
|
"li",
|
|
25
19
|
{
|
|
26
20
|
"data-slot": "breadcrumb-item",
|
|
@@ -49,10 +43,7 @@ const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "
|
|
|
49
43
|
),
|
|
50
44
|
...s
|
|
51
45
|
}
|
|
52
|
-
), k = ({
|
|
53
|
-
className: r,
|
|
54
|
-
...e
|
|
55
|
-
}) => /* @__PURE__ */ t(
|
|
46
|
+
), k = ({ className: r, ...e }) => /* @__PURE__ */ t(
|
|
56
47
|
"span",
|
|
57
48
|
{
|
|
58
49
|
"data-slot": "breadcrumb-page",
|
|
@@ -1,12 +1,42 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { buttonVariants } from './buttonVariants';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Button component.
|
|
6
|
+
* Extends standard button HTML attributes. The `iconOnly` and `size` CVA variants
|
|
7
|
+
* are excluded from VariantProps and re-declared with custom types.
|
|
8
|
+
*/
|
|
4
9
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof buttonVariants>, 'iconOnly' | 'size'> {
|
|
10
|
+
/**
|
|
11
|
+
* Visual style variant: primary (brand), secondary (outlined), tertiary (subtle),
|
|
12
|
+
* invert (dark backgrounds), dashed (bordered), link/linkInvert (text only).
|
|
13
|
+
* @default 'primary'
|
|
14
|
+
*/
|
|
15
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'invert' | 'dashed' | 'link' | 'linkInvert';
|
|
16
|
+
/**
|
|
17
|
+
* Controls height and padding. The `icon` size renders a compact icon-only
|
|
18
|
+
* button with ghost styling (no background, border, or border radius).
|
|
19
|
+
* @default 'md'
|
|
20
|
+
*/
|
|
5
21
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'icon';
|
|
22
|
+
/** Stretches button to fill its container width. @default false */
|
|
23
|
+
fullWidth?: boolean;
|
|
24
|
+
/** Renders children as the child element instead of a `<button>`. */
|
|
6
25
|
asChild?: boolean;
|
|
26
|
+
/** React node displayed as an icon. Position controlled by `iconPosition`. */
|
|
7
27
|
icon?: React.ReactNode;
|
|
28
|
+
/** Places icon before (`start`) or after (`end`) the button text. @default 'start' */
|
|
8
29
|
iconPosition?: 'start' | 'end';
|
|
30
|
+
/** Removes background, showing only text and icon with hover effects. @default false */
|
|
9
31
|
ghost?: boolean;
|
|
32
|
+
/** Applies destructive/error styling for delete or dangerous actions. @default false */
|
|
33
|
+
danger?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Shows a spinner overlay and disables interaction.
|
|
36
|
+
* Text becomes invisible but maintains button width.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
loading?: boolean;
|
|
10
40
|
}
|
|
11
41
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
42
|
export { Button, buttonVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,IAAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAChE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,IAAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAChE;;;;OAIG;IACH,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,YAAY,CAAA;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IACzC,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,sFAAsF;IACtF,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAC9B,wFAAwF;IACxF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,uFAgEX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -3,8 +3,8 @@ import * as b from "react";
|
|
|
3
3
|
import "class-variance-authority";
|
|
4
4
|
import { ButtonLoader as N } from "./ButtonLoader.js";
|
|
5
5
|
import { buttonVariants as B } from "./buttonVariants.js";
|
|
6
|
-
import { Typography as g } from "../Typography/Typography.js";
|
|
7
6
|
import { cn as e } from "../../utils/cn.js";
|
|
7
|
+
import { Typography as g } from "../Typography/Typography.js";
|
|
8
8
|
const j = b.forwardRef(
|
|
9
9
|
({
|
|
10
10
|
className: c,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAA;AAoBnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAA;AAoBnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA6E7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAe7B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAoCtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAyCzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAkDtB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAmF/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KA8D1B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAA"}
|
|
@@ -1,31 +1,67 @@
|
|
|
1
1
|
import { DateRange, DayButton, DayPicker, Matcher } from 'react-day-picker';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Calendar component.
|
|
5
|
+
* Discriminated union on `mode`: `'single'` for picking one date, `'range'` for a start-end range.
|
|
6
|
+
*/
|
|
7
|
+
export type CalendarProps = CalendarBaseProps & (CalendarSingleProps | CalendarRangeProps);
|
|
8
|
+
/** Shared props for the Calendar component, common to both single and range modes. */
|
|
4
9
|
export type CalendarBaseProps = {
|
|
10
|
+
/** Number of months displayed side by side. */
|
|
5
11
|
numberOfMonths: 1 | 2;
|
|
12
|
+
/** Content rendered in a left-side panel (e.g. preset date shortcuts). */
|
|
6
13
|
leftPanelChildren?: React.ReactNode;
|
|
14
|
+
/** Initial month displayed when the calendar mounts. */
|
|
7
15
|
defaultMonth?: Date | undefined;
|
|
16
|
+
/** Fires when the confirm button is clicked. */
|
|
8
17
|
onConfirm: () => void;
|
|
18
|
+
/** Fires when the reset button is clicked. */
|
|
9
19
|
onReset: () => void;
|
|
20
|
+
/** Label for the reset button. @default translations.calendar.resetButton */
|
|
10
21
|
resetButtonText?: string;
|
|
22
|
+
/** Replaces the default reset button with a custom render. */
|
|
11
23
|
renderResetButton?: () => React.ReactNode;
|
|
24
|
+
/** Label for the confirm button. @default translations.calendar.confirmButton */
|
|
12
25
|
confirmButtonText?: string;
|
|
26
|
+
/** Replaces the default confirm button with a custom render. */
|
|
13
27
|
renderConfirmButton?: () => React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Formats a single date for display in the bottom bar.
|
|
30
|
+
* @default formatDate
|
|
31
|
+
* @see formatDate
|
|
32
|
+
*/
|
|
14
33
|
dateFormatter?: (date: Date) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Formats a date range for display in the bottom bar.
|
|
36
|
+
* @default formatDateRange
|
|
37
|
+
* @see formatDateRange
|
|
38
|
+
*/
|
|
15
39
|
dateRangeFormatter?: (range: DateRange) => string;
|
|
40
|
+
/** Placeholder text shown in the bottom bar when no date is selected. @default translations.calendar.bottomTextDefault */
|
|
16
41
|
bottomTextDefault?: string;
|
|
42
|
+
/** Matcher or array of matchers to disable specific dates. Accepts dates, date ranges, or functions. */
|
|
17
43
|
disabledDates?: Matcher | Matcher[] | undefined;
|
|
44
|
+
/** Controls which day the week starts on (0 = Sunday, 1 = Monday, etc.). @default 1 */
|
|
18
45
|
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
46
|
+
/** Excludes disabled dates from range selections. */
|
|
19
47
|
excludeDisabled?: boolean;
|
|
20
48
|
};
|
|
21
|
-
|
|
49
|
+
/** Props for date range selection mode. */
|
|
50
|
+
export type CalendarRangeProps = {
|
|
51
|
+
/** Enables date range selection. */
|
|
22
52
|
mode: 'range';
|
|
53
|
+
/** Currently selected date range. */
|
|
23
54
|
selected?: DateRange | undefined;
|
|
55
|
+
/** Fires when the selected range changes. */
|
|
24
56
|
onSelect?: (range: DateRange) => void;
|
|
25
57
|
};
|
|
26
|
-
|
|
58
|
+
/** Props for single date selection mode. */
|
|
59
|
+
export type CalendarSingleProps = {
|
|
60
|
+
/** Enables single date selection. */
|
|
27
61
|
mode: 'single';
|
|
62
|
+
/** Currently selected date. */
|
|
28
63
|
selected?: Date | undefined;
|
|
64
|
+
/** Fires when a single date is selected. */
|
|
29
65
|
onSelect?: (date: Date) => void;
|
|
30
66
|
};
|
|
31
67
|
declare const Calendar: ({ leftPanelChildren, defaultMonth, numberOfMonths, mode, selected, onSelect, onReset, onConfirm, resetButtonText: resetButtonTextProp, confirmButtonText: confirmButtonTextProp, renderResetButton, renderConfirmButton, bottomTextDefault: bottomTextDefaultProp, dateFormatter, dateRangeFormatter, disabledDates, weekStartsOn, excludeDisabled, }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,SAAS,EACT,KAAK,OAAO,EAEb,MAAM,kBAAkB,CAAA;AAazB,MAAM,MAAM,aAAa,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,SAAS,EACT,KAAK,OAAO,EAEb,MAAM,kBAAkB,CAAA;AAazB;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,CAAC,mBAAmB,GAAG,kBAAkB,CAAC,CAAA;AAE5C,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+CAA+C;IAC/C,cAAc,EAAE,CAAC,GAAG,CAAC,CAAA;IACrB,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACnC,wDAAwD;IACxD,YAAY,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAC/B,gDAAgD;IAChD,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;IACzC,iFAAiF;IACjF,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gEAAgE;IAChE,mBAAmB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;IAC3C;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAA;IACtC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,CAAA;IACjD,0HAA0H;IAC1H,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,wGAAwG;IACxG,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IAC/C,uFAAuF;IACvF,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACxC,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,2CAA2C;AAC3C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,oCAAoC;IACpC,IAAI,EAAE,OAAO,CAAA;IACb,qCAAqC;IACrC,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;CACtC,CAAA;AAED,4CAA4C;AAC5C,MAAM,MAAM,mBAAmB,GAAG;IAChC,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAA;IACd,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAC3B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;CAChC,CAAA;AAED,QAAA,MAAM,QAAQ,GAAI,uVAmBf,aAAa,4CAmFf,CAAA;AAED,QAAA,MAAM,YAAY,GAAI,qGASnB,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,4CAqNxC,CAAA;AAED,QAAA,MAAM,iBAAiB,GAAI,6DAOxB,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,4CAqDxC,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -3,11 +3,11 @@ import * as _ from "react";
|
|
|
3
3
|
import { formatDate as L } from "./utils/formatDate.js";
|
|
4
4
|
import { formatDateRange as R } from "./utils/formatDateRange.js";
|
|
5
5
|
import { useMuzaTranslationContext as S } from "../../translations/TranslationContext.js";
|
|
6
|
-
import { Typography as p, typographyVariants as y } from "../Typography/Typography.js";
|
|
7
6
|
import { Button as k } from "../Button/Button.js";
|
|
8
7
|
import { getDefaultClassNames as N } from "../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js";
|
|
9
8
|
import { DayPicker as q } from "../../node_modules/react-day-picker/dist/esm/DayPicker.js";
|
|
10
9
|
import { cn as e } from "../../utils/cn.js";
|
|
10
|
+
import { Typography as p, typographyVariants as y } from "../Typography/Typography.js";
|
|
11
11
|
import { AltArrowLeftOutline as W, AltArrowRightOutline as Y, AltArrowDownOutline as E } from "@solar-icons/react-perf";
|
|
12
12
|
const U = ({
|
|
13
13
|
leftPanelChildren: u,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/formatDate.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,WAEpC,CAAA"}
|
|
1
|
+
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/formatDate.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,WAEpC,CAAA"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { DateRange } from 'react-day-picker';
|
|
2
|
+
/**
|
|
3
|
+
* Formats a date range as `"d. M. - d. M. yyyy"`, omitting the year on the start date
|
|
4
|
+
* when both dates share the same year (e.g. `"9. 9. - 26. 9. 2025"`).
|
|
5
|
+
* Used as the default `dateRangeFormatter` in Calendar and DatePicker.
|
|
6
|
+
*/
|
|
2
7
|
export declare const formatDateRange: (range: DateRange) => string;
|
|
3
8
|
//# sourceMappingURL=formatDateRange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDateRange.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/formatDateRange.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,WAE/C,CAAA"}
|
|
1
|
+
{"version":3,"file":"formatDateRange.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/formatDateRange.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,WAE/C,CAAA"}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Checkbox component.
|
|
5
|
+
* Extends Radix Checkbox root props with label, indeterminate state, and error styling.
|
|
6
|
+
*/
|
|
7
|
+
export interface CheckboxProps extends ComponentProps<typeof CheckboxPrimitive.Root> {
|
|
8
|
+
/** Controlled checked state. Use with `onCheckedChange` for fully controlled behavior. */
|
|
9
|
+
checked?: boolean | 'indeterminate';
|
|
10
|
+
/** Initial checked state for uncontrolled usage. @default false */
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
/** Fires when checked state changes. Receives `boolean` or `'indeterminate'`. */
|
|
13
|
+
onCheckedChange?: (checked: boolean | 'indeterminate') => void;
|
|
14
|
+
/** Prevents interaction and applies disabled styling to checkbox and label. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Name attribute for form submission. */
|
|
17
|
+
name?: string;
|
|
18
|
+
/** Value attribute for form submission. */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Shows minus icon instead of checkmark for partial selection. @default false */
|
|
4
21
|
isIndeterminate?: boolean;
|
|
22
|
+
/** Primary label displayed next to the checkbox. */
|
|
5
23
|
label?: ReactNode;
|
|
24
|
+
/** Secondary description below the primary label. Makes primary label bold when present. */
|
|
6
25
|
secondaryLabel?: string;
|
|
26
|
+
/** Custom ID for the checkbox input. Auto-generated if omitted. */
|
|
7
27
|
id?: string;
|
|
28
|
+
/** Applies error border styling for validation failure. */
|
|
8
29
|
error?: boolean;
|
|
9
|
-
}
|
|
30
|
+
}
|
|
31
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
32
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAK7D;;;GAGG;AACH,MAAM,WAAW,aACf,SAAQ,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC;IACrD,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,GAAG,eAAe,CAAA;IACnC,mEAAmE;IACnE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,KAAK,IAAI,CAAA;IAC9D,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oDAAoD;IACpD,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,QAAQ,0HAuFpB,CAAA"}
|
|
@@ -2,8 +2,8 @@ import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as k, useId as p } from "react";
|
|
3
3
|
import * as a from "@radix-ui/react-checkbox";
|
|
4
4
|
import { CheckMinus as u, Checked as g } from "../Icons/CustomIcons.js";
|
|
5
|
-
import { Typography as d } from "../Typography/Typography.js";
|
|
6
5
|
import { cn as o } from "../../utils/cn.js";
|
|
6
|
+
import { Typography as d } from "../Typography/Typography.js";
|
|
7
7
|
const v = k(
|
|
8
8
|
({
|
|
9
9
|
isIndeterminate: n = !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAsE/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAahC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAa9B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAc3B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAcpC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KActB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAc/B,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAanB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAc5B,CAAA"}
|
|
@@ -9,18 +9,15 @@ declare const chipVariants: (props?: ({
|
|
|
9
9
|
*/
|
|
10
10
|
export interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'> {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* When true, the chip displays a filled check icon and active styling.
|
|
12
|
+
* Controls the checked/selected state of the chip.
|
|
14
13
|
*/
|
|
15
14
|
checked: boolean;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @param checked - The new checked state
|
|
16
|
+
* Fires when the checked state changes.
|
|
19
17
|
*/
|
|
20
18
|
onCheckedChange: (checked: boolean) => void;
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
23
|
-
* When true, prevents interaction and applies disabled styling.
|
|
20
|
+
* Prevents interaction and applies disabled styling.
|
|
24
21
|
* @default false
|
|
25
22
|
*/
|
|
26
23
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,QAAA,MAAM,YAAY;;;8EA0CjB,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,SACf,SAAQ,IAAI,CACV,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,UAAU,GAAG,UAAU,CACxB;IACD
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,QAAA,MAAM,YAAY;;;8EA0CjB,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,SACf,SAAQ,IAAI,CACV,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,UAAU,GAAG,UAAU,CACxB;IACD;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,IAAI,qFA6CT,CAAA;AAGD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAA"}
|