@konstructio/ui 0.1.2-alpha.74 → 0.1.2-alpha.76
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/{Modal-CXRo8f-h.js → Modal-BTOXCb0Y.js} +1 -1
- package/dist/assets/icons/components/Home2.d.ts +3 -0
- package/dist/assets/icons/components/Home2.js +28 -0
- package/dist/assets/icons/components/Upload.d.ts +3 -0
- package/dist/assets/icons/components/Upload.js +28 -0
- package/dist/assets/icons/components/index.d.ts +2 -0
- package/dist/assets/icons/components/index.js +70 -66
- package/dist/assets/icons/index.js +70 -66
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.types.d.ts +3 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +5 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +4 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.types.d.ts +3 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +3 -1
- package/dist/components/Breadcrumb/components/Item/Item.d.ts +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.types.d.ts +3 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.types.d.ts +3 -1
- package/dist/components/Button/Button.variants.js +4 -5
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Card/Card.types.d.ts +3 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +3 -1
- package/dist/components/Command/Command.d.ts +2 -2
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.types.d.ts +3 -1
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Counter/Counter.d.ts +2 -2
- package/dist/components/Counter/Counter.types.d.ts +3 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +3 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/components/Datepicker/DatePicker.types.d.ts +3 -1
- package/dist/components/Filter/Filter.js +24 -22
- package/dist/components/Filter/Filter.types.d.ts +13 -3
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +3 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +57 -41
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +75 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +2 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +38 -37
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +31 -30
- package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +64 -47
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +2 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -34
- package/dist/components/Filter/contexts/filter.context.d.ts +4 -0
- package/dist/components/Filter/contexts/filter.context.js +7 -0
- package/dist/components/Filter/contexts/filter.hook.d.ts +2 -0
- package/dist/components/Filter/contexts/filter.hook.js +11 -0
- package/dist/components/Filter/contexts/filter.provider.d.ts +5 -0
- package/dist/components/Filter/contexts/filter.provider.js +6 -0
- package/dist/components/Filter/contexts/index.d.ts +3 -0
- package/dist/components/Filter/contexts/index.js +8 -0
- package/dist/components/ImageUpload/ImageUpload.d.ts +2 -2
- package/dist/components/ImageUpload/ImageUpload.types.d.ts +3 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.types.d.ts +3 -1
- package/dist/components/LineChart/LineChart.d.ts +2 -2
- package/dist/components/LineChart/LineChart.js +55 -52
- package/dist/components/LineChart/LineChart.types.d.ts +6 -2
- package/dist/components/Loading/Loading.d.ts +2 -2
- package/dist/components/Loading/Loading.types.d.ts +3 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +2 -2
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +3 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +394 -353
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/Radio/Radio.types.d.ts +3 -1
- package/dist/components/RadioCard/RadioCard.d.ts +2 -2
- package/dist/components/RadioCard/RadioCard.types.d.ts +5 -3
- package/dist/components/RadioCardGroup/RadioCardGroup.d.ts +2 -2
- package/dist/components/RadioCardGroup/RadioCardGroup.types.d.ts +4 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -2
- package/dist/components/Range/Range.d.ts +2 -2
- package/dist/components/Range/Range.types.d.ts +3 -1
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.types.d.ts +4 -1
- package/dist/components/Select/Select.variants.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +1 -1
- package/dist/components/Select/components/List/List.js +64 -61
- package/dist/components/Select/components/List/List.types.d.ts +2 -1
- package/dist/components/Select/components/Wrapper.js +46 -44
- package/dist/components/Select/constants/index.d.ts +1 -0
- package/dist/components/Select/constants/index.js +3 -1
- package/dist/components/Select/constants/list.d.ts +1 -0
- package/dist/components/Select/constants/list.js +4 -0
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +2 -2
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +2 -2
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +2 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +7 -5
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -5
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +3 -1
- package/dist/components/Sidebar/components/index.d.ts +7 -7
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Slider/Slider.types.d.ts +3 -1
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.types.d.ts +4 -2
- package/dist/components/Stepper/Stepper.d.ts +2 -2
- package/dist/components/Stepper/Stepper.types.d.ts +3 -1
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.types.d.ts +3 -1
- package/dist/components/Table/Table.types.d.ts +3 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +3 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.types.d.ts +3 -1
- package/dist/components/TagSelect/TagSelect.d.ts +2 -2
- package/dist/components/TagSelect/TagSelect.js +3 -1
- package/dist/components/TagSelect/TagSelect.types.d.ts +4 -2
- package/dist/components/TagSelect/components/Item/Item.types.d.ts +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/TextArea/TextArea.types.d.ts +3 -1
- package/dist/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/TimePicker/TimePicker.types.d.ts +3 -1
- package/dist/components/TimePicker/components/HoursList/HoursList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/Toast/Toast.js +191 -184
- package/dist/components/Toast/Toast.types.d.ts +3 -1
- package/dist/components/Toast/Toast.variants.js +6 -12
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.js +20 -20
- package/dist/components/Tooltip/Tooltip.types.d.ts +3 -1
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/Typography/Typography.types.d.ts +3 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +57 -55
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +3 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -54
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +55 -26
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +4 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +70 -66
- package/dist/index-BvEpLnOv.js +144 -0
- package/dist/{index-Dd_ZmIqU.js → index-C7zAY3xv.js} +1 -1
- package/dist/{index-Dfq4O3b4.js → index-CrCTywU1.js} +1 -1
- package/dist/{index-9a-FL_6D.js → index-DWyM654o.js} +41 -42
- package/dist/{index-B7-5g1Sm.js → index-mPinF0Ho.js} +407 -401
- package/dist/index.js +1 -1
- package/dist/package.json +10 -10
- package/dist/proxy-BvdTb_6B.js +4974 -0
- package/dist/styles.css +1 -1
- package/package.json +10 -10
- package/dist/index-CESXsoMn.js +0 -14
- package/dist/index-URQGEGX7.js +0 -136
- package/dist/proxy-0sbyKj-k.js +0 -4946
|
@@ -31,7 +31,7 @@ export type Step = {
|
|
|
31
31
|
* />
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
export interface
|
|
34
|
+
export interface Props extends VariantProps<typeof breadcrumbVariants>, HTMLAttributes<HTMLOListElement> {
|
|
35
35
|
/** Array of breadcrumb steps */
|
|
36
36
|
steps: Step[];
|
|
37
37
|
/** CSS classes for the nav wrapper */
|
|
@@ -39,3 +39,5 @@ export interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants>
|
|
|
39
39
|
/** Theme override for this component */
|
|
40
40
|
theme?: Theme;
|
|
41
41
|
}
|
|
42
|
+
/** @deprecated Use Props instead */
|
|
43
|
+
export type BreadcrumbProps = Props;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const Item: FC<
|
|
2
|
+
import { Props } from './Item.types';
|
|
3
|
+
export declare const Item: FC<Props>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Theme } from '../../../../domain/theme';
|
|
2
2
|
import { Step } from '../../Breadcrumb.types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface Props extends Step {
|
|
4
4
|
isLast: boolean;
|
|
5
5
|
theme?: Theme;
|
|
6
6
|
}
|
|
7
|
+
/** @deprecated Use Props instead */
|
|
8
|
+
export type ItemProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Button.types';
|
|
3
3
|
/**
|
|
4
4
|
* A customizable button component with multiple variants and styles.
|
|
5
5
|
*
|
|
@@ -29,5 +29,5 @@ import { ButtonProps } from './Button.types';
|
|
|
29
29
|
*
|
|
30
30
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-button--docs Storybook}
|
|
31
31
|
*/
|
|
32
|
-
declare const Button: FC<
|
|
32
|
+
declare const Button: FC<Props>;
|
|
33
33
|
export { Button };
|
|
@@ -12,7 +12,7 @@ import { buttonVariants } from './Button.variants';
|
|
|
12
12
|
* <Button variant="danger" shape="circle"><TrashIcon /></Button>
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface Props extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
|
|
16
16
|
/** Ref to the underlying button element */
|
|
17
17
|
ref?: Ref<HTMLButtonElement>;
|
|
18
18
|
/** Merge props onto child element instead of rendering a button */
|
|
@@ -22,3 +22,5 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
22
22
|
/** Theme override for this component */
|
|
23
23
|
theme?: Theme;
|
|
24
24
|
}
|
|
25
|
+
/** @deprecated Use Props instead */
|
|
26
|
+
export type ButtonProps = Props;
|
|
@@ -154,12 +154,11 @@ const a = r(
|
|
|
154
154
|
"hover:border-transparent",
|
|
155
155
|
"dark:bg-transparent",
|
|
156
156
|
"dark:text-metal-100",
|
|
157
|
-
"dark:border-
|
|
157
|
+
"dark:border-metal-100",
|
|
158
158
|
"dark:focus-visible:bg-green-400/15",
|
|
159
159
|
"dark:hover:bg-green-400/15",
|
|
160
|
-
"dark:hover:border-
|
|
161
|
-
"dark:hover:text-metal-100"
|
|
162
|
-
"dark:focus-visible:hover:bg-green-400/15"
|
|
160
|
+
"dark:hover:border-metal-100",
|
|
161
|
+
"dark:hover:text-metal-100"
|
|
163
162
|
]
|
|
164
163
|
},
|
|
165
164
|
{
|
|
@@ -171,7 +170,7 @@ const a = r(
|
|
|
171
170
|
"text-slate-700",
|
|
172
171
|
"opacity-45",
|
|
173
172
|
"dark:bg-transparent",
|
|
174
|
-
"dark:border-
|
|
173
|
+
"dark:border-metal-100",
|
|
175
174
|
"dark:text-metal-100"
|
|
176
175
|
]
|
|
177
176
|
},
|
|
@@ -4,7 +4,7 @@ import { cn as n } from "../../utils/index.js";
|
|
|
4
4
|
import { buttonGroupPillVariants as z, buttonGroupVariants as A, buttonGroupWrapperVariants as E } from "./ButtonGroup.variants.js";
|
|
5
5
|
import { useButtonGroup as H } from "./hooks/useButtonGroup.js";
|
|
6
6
|
import { ButtonGroupLabel as J } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
|
|
7
|
-
import { m as Q } from "../../proxy-
|
|
7
|
+
import { m as Q } from "../../proxy-BvdTb_6B.js";
|
|
8
8
|
import { ButtonGroupItem as T } from "./components/ButtonGroupItem/ButtonGroupItem.js";
|
|
9
9
|
import { ButtonGroupMessage as U } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
|
|
10
10
|
const X = ({
|
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as L } from "react";
|
|
3
3
|
import { cn as t } from "../../../../utils/index.js";
|
|
4
4
|
import { buttonGroupLabelVariants as u, buttonGroupDescriptionVariants as V, buttonGroupItemContentVariants as g, buttonGroupItemVariants as w } from "./ButtonGroupItem.variants.js";
|
|
5
|
-
import { m as j } from "../../../../proxy-
|
|
5
|
+
import { m as j } from "../../../../proxy-BvdTb_6B.js";
|
|
6
6
|
const k = (r, n) => n === "none" ? r ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : r ? "inset(0 0 0 0)" : n === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", B = L(
|
|
7
7
|
({
|
|
8
8
|
animationDirection: r,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Card.types';
|
|
3
3
|
/**
|
|
4
4
|
* A container card component with optional hover and active states.
|
|
5
5
|
*
|
|
@@ -24,5 +24,5 @@ import { CardProps } from './Card.types';
|
|
|
24
24
|
*
|
|
25
25
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-card--docs Storybook}
|
|
26
26
|
*/
|
|
27
|
-
declare const Card: FC<
|
|
27
|
+
declare const Card: FC<Props>;
|
|
28
28
|
export { Card };
|
|
@@ -12,7 +12,7 @@ import { cardVariants } from './Card.variants';
|
|
|
12
12
|
* <Card isActive>Active/selected card</Card>
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface Props extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants>, PropsWithChildren {
|
|
16
16
|
/** Enable hover effect */
|
|
17
17
|
canHover?: boolean;
|
|
18
18
|
/** Show active/selected state */
|
|
@@ -22,3 +22,5 @@ export interface CardProps extends HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
22
22
|
/** CSS classes for the outer wrapper */
|
|
23
23
|
wrapperClassName?: string;
|
|
24
24
|
}
|
|
25
|
+
/** @deprecated Use Props instead */
|
|
26
|
+
export type CardProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Checkbox.types';
|
|
3
3
|
/**
|
|
4
4
|
* A checkbox component built on Radix UI primitives.
|
|
5
5
|
* Supports controlled and uncontrolled modes with label support.
|
|
@@ -22,5 +22,5 @@ import { CheckboxProps } from './Checkbox.types';
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-checkbox--docs Storybook}
|
|
24
24
|
*/
|
|
25
|
-
declare const Checkbox: FC<
|
|
25
|
+
declare const Checkbox: FC<Props>;
|
|
26
26
|
export { Checkbox };
|
|
@@ -12,7 +12,7 @@ import { checkboxVariants } from './Checkbox.variants';
|
|
|
12
12
|
* <Checkbox label="Disabled option" disabled />
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface Props extends Omit<CheckboxPropsPrimitive, 'onChange'>, Omit<VariantProps<typeof checkboxVariants>, 'checked'> {
|
|
16
16
|
/** ID of element that labels the checkbox for accessibility */
|
|
17
17
|
ariaLabelledBy?: string;
|
|
18
18
|
/** Additional CSS classes */
|
|
@@ -36,3 +36,5 @@ export interface CheckboxProps extends Omit<CheckboxPropsPrimitive, 'onChange'>,
|
|
|
36
36
|
/** Callback when checked state changes */
|
|
37
37
|
onChange?: (checked: boolean) => void;
|
|
38
38
|
}
|
|
39
|
+
/** @deprecated Use Props instead */
|
|
40
|
+
export type CheckboxProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Command.types';
|
|
3
3
|
import { CommandGroup, CommandItem, CommandSeparator } from './components';
|
|
4
4
|
/**
|
|
5
5
|
* A command palette dialog for keyboard-driven navigation and actions.
|
|
@@ -23,5 +23,5 @@ import { CommandGroup, CommandItem, CommandSeparator } from './components';
|
|
|
23
23
|
*
|
|
24
24
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-command--docs Storybook}
|
|
25
25
|
*/
|
|
26
|
-
declare const Command: FC<
|
|
26
|
+
declare const Command: FC<Props>;
|
|
27
27
|
export { Command, CommandGroup, CommandItem, CommandSeparator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { R as s, D as p } from "../../index-
|
|
2
|
+
import { R as s, D as p } from "../../index-DWyM654o.js";
|
|
3
3
|
import { V as l } from "../../index-BKjcReYh.js";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { wrapperVariants as f } from "./Command.variants.js";
|
|
@@ -18,7 +18,7 @@ const j = ({
|
|
|
18
18
|
}) => /* @__PURE__ */ o(s, { ...d, children: /* @__PURE__ */ i(
|
|
19
19
|
c,
|
|
20
20
|
{
|
|
21
|
-
className: "overflow-hidden p-0 border-0
|
|
21
|
+
className: "overflow-hidden p-0 border-0 rounded-none!",
|
|
22
22
|
"data-theme": t,
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ o(p, { className: m("hidden", e), children: /* @__PURE__ */ o(l, { children: a }) }),
|
|
@@ -15,7 +15,7 @@ import { PropsWithChildren } from 'react';
|
|
|
15
15
|
* </Command>
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface Props extends PropsWithChildren<DialogProps> {
|
|
19
19
|
/** Text shown when no results match the search */
|
|
20
20
|
emptyResults?: string;
|
|
21
21
|
/** Placeholder text for the search input */
|
|
@@ -29,3 +29,5 @@ export interface CommandProps extends PropsWithChildren<DialogProps> {
|
|
|
29
29
|
/** Theme override for this component */
|
|
30
30
|
theme?: Theme;
|
|
31
31
|
}
|
|
32
|
+
/** @deprecated Use Props instead */
|
|
33
|
+
export type CommandProps = Props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-CrCTywU1.js";
|
|
4
4
|
const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
|
|
5
5
|
s.displayName = o.displayName;
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-CrCTywU1.js";
|
|
4
4
|
import { cn as a } from "../../../utils/index.js";
|
|
5
5
|
const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
|
|
6
6
|
o.Group,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { _ as m } from "../../../index-
|
|
2
|
+
import { _ as m } from "../../../index-CrCTywU1.js";
|
|
3
3
|
import s, { forwardRef as u } from "react";
|
|
4
4
|
import { cn as f } from "../../../utils/index.js";
|
|
5
5
|
import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i, useContext as c, useCallback as l } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-CrCTywU1.js";
|
|
4
4
|
import { cn as p } from "../../../utils/index.js";
|
|
5
5
|
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
6
|
const f = i(({ className: n, onSelect: e, ...r }, a) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-CrCTywU1.js";
|
|
4
4
|
import { cn as t } from "../../../utils/index.js";
|
|
5
5
|
const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
|
|
6
6
|
o.List,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as r } from "../../../index-
|
|
3
|
+
import { _ as r } from "../../../index-CrCTywU1.js";
|
|
4
4
|
import { cn as t } from "../../../utils/index.js";
|
|
5
5
|
const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
|
|
6
6
|
r.Separator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i } from "react";
|
|
3
|
-
import { a as r, C as o, b as l } from "../../../index-
|
|
3
|
+
import { a as r, C as o, b as l } from "../../../index-DWyM654o.js";
|
|
4
4
|
import { cn as m } from "../../../utils/index.js";
|
|
5
5
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
6
6
|
import { X as c } from "../../../x-Eoa9FJjA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import { O as a } from "../../../index-
|
|
3
|
+
import { O as a } from "../../../index-DWyM654o.js";
|
|
4
4
|
import { cn as i } from "../../../utils/index.js";
|
|
5
5
|
const m = d(({ className: t, ...e }, o) => /* @__PURE__ */ s(
|
|
6
6
|
a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Counter.types';
|
|
3
3
|
/**
|
|
4
4
|
* A numeric input component with increment/decrement buttons.
|
|
5
5
|
* Also exported as `NumberInput` for convenience.
|
|
@@ -33,4 +33,4 @@ import { CounterProps } from './Counter.types';
|
|
|
33
33
|
*
|
|
34
34
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-counter--docs Storybook}
|
|
35
35
|
*/
|
|
36
|
-
export declare const Counter: FC<
|
|
36
|
+
export declare const Counter: FC<Props>;
|
|
@@ -15,7 +15,7 @@ import { counterVariants } from './Counter.variants';
|
|
|
15
15
|
* />
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface Props extends VariantProps<typeof counterVariants> {
|
|
19
19
|
/** Allow decrement button to be clicked */
|
|
20
20
|
canDecrement?: boolean;
|
|
21
21
|
/** Allow increment button to be clicked */
|
|
@@ -51,3 +51,5 @@ export interface CounterProps extends VariantProps<typeof counterVariants> {
|
|
|
51
51
|
};
|
|
52
52
|
}) => void;
|
|
53
53
|
}
|
|
54
|
+
/** @deprecated Use Props instead */
|
|
55
|
+
export type CounterProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './DateRangePicker.types';
|
|
3
3
|
/**
|
|
4
4
|
* A date range picker component that allows selecting a range of dates
|
|
5
5
|
* with optional time inputs and preset options.
|
|
@@ -27,5 +27,5 @@ import { DateRangePickerProps } from './DateRangePicker.types';
|
|
|
27
27
|
*
|
|
28
28
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-daterangepicker--docs Storybook}
|
|
29
29
|
*/
|
|
30
|
-
declare const DateRangePicker: FC<
|
|
30
|
+
declare const DateRangePicker: FC<Props>;
|
|
31
31
|
export { DateRangePicker };
|
|
@@ -18,7 +18,7 @@ export type { CalendarPanelClassNames, DateTimeInputsClassNames, DayPickerClassN
|
|
|
18
18
|
* />
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type Props = VariantProps<typeof dateRangePickerVariants> & {
|
|
22
22
|
/** Initial date range */
|
|
23
23
|
defaultRange?: DateRange;
|
|
24
24
|
/** Initial time range */
|
|
@@ -110,6 +110,8 @@ export type DateRangePickerProps = VariantProps<typeof dateRangePickerVariants>
|
|
|
110
110
|
/** Custom class names for different parts of the component */
|
|
111
111
|
classNames?: DateRangePickerClassNames;
|
|
112
112
|
};
|
|
113
|
+
/** @deprecated Use Props instead */
|
|
114
|
+
export type DateRangePickerProps = Props;
|
|
113
115
|
/** Custom class names for different parts of the DateRangePicker component */
|
|
114
116
|
export type DateRangePickerClassNames = {
|
|
115
117
|
/** Class name for the main container */
|
|
@@ -7,7 +7,7 @@ import { CalendarDivider as tt } from "../CalendarDivider/CalendarDivider.js";
|
|
|
7
7
|
import { CalendarMonth as d } from "../CalendarMonth/CalendarMonth.js";
|
|
8
8
|
import { NavigationButton as g } from "../NavigationButton/NavigationButton.js";
|
|
9
9
|
import { useIndependentCarousel as nt } from "../../hooks/useIndependentCarousel.js";
|
|
10
|
-
import { m as et } from "../../../../../../proxy-
|
|
10
|
+
import { m as et } from "../../../../../../proxy-BvdTb_6B.js";
|
|
11
11
|
const at = ({
|
|
12
12
|
className: b,
|
|
13
13
|
calendarWidth: x = 550,
|
|
@@ -6,7 +6,7 @@ import { CalendarDivider as F } from "../CalendarDivider/CalendarDivider.js";
|
|
|
6
6
|
import { CalendarMonth as G } from "../CalendarMonth/CalendarMonth.js";
|
|
7
7
|
import { NavigationButton as m } from "../NavigationButton/NavigationButton.js";
|
|
8
8
|
import { useTogetherCarousel as H } from "../../hooks/useTogetherCarousel.js";
|
|
9
|
-
import { m as R } from "../../../../../../proxy-
|
|
9
|
+
import { m as R } from "../../../../../../proxy-BvdTb_6B.js";
|
|
10
10
|
const S = ({
|
|
11
11
|
className: s,
|
|
12
12
|
calendarWidth: h = 550,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './DatePicker.types';
|
|
3
3
|
/**
|
|
4
4
|
* A date picker component built on react-day-picker.
|
|
5
5
|
* Allows single date selection with calendar navigation.
|
|
@@ -22,5 +22,5 @@ import { DatePickerProps } from './DatePicker.types';
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-datepicker--docs Storybook}
|
|
24
24
|
*/
|
|
25
|
-
declare const DatePicker: FC<
|
|
25
|
+
declare const DatePicker: FC<Props>;
|
|
26
26
|
export { DatePicker };
|
|
@@ -14,7 +14,7 @@ type TimeZone = keyof ReturnType<typeof getAllTimezones>;
|
|
|
14
14
|
* />
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type Props = Omit<DayPickerPrimitiveProps, 'mode'> & VariantProps<typeof datePickerVariants> & {
|
|
18
18
|
/** CSS classes for the navigation arrows */
|
|
19
19
|
arrowClassName?: string;
|
|
20
20
|
/** CSS classes for the months container */
|
|
@@ -26,4 +26,6 @@ export type DatePickerProps = Omit<DayPickerPrimitiveProps, 'mode'> & VariantPro
|
|
|
26
26
|
/** Callback when a date is selected */
|
|
27
27
|
onSelect?: (date: Date) => void;
|
|
28
28
|
};
|
|
29
|
+
/** @deprecated Use Props instead */
|
|
30
|
+
export type DatePickerProps = Props;
|
|
29
31
|
export {};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { filterVariants as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../utils/index.js";
|
|
3
|
+
import { filterVariants as p } from "./Filter.variants.js";
|
|
4
|
+
import { FilterProvider as a } from "./contexts/filter.provider.js";
|
|
5
|
+
import { BadgeMultiSelect as n } from "./components/BadgeDropdown/BadgeMultiSelect.js";
|
|
6
|
+
import { TextMultiSelect as d } from "./components/TextMultiSelect/TextMultiSelect.js";
|
|
7
|
+
import { DateFilterDropdown as f } from "./components/DateFilterDropdown/DateFilterDropdown.js";
|
|
8
|
+
import { DateRangeFilterDropdown as c } from "./components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
9
|
+
import { TimeFilterDropdown as D } from "./components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
10
|
+
import { ResetButton as s } from "./components/ResetButton/ResetButton.js";
|
|
10
11
|
const t = ({
|
|
11
12
|
className: e,
|
|
12
13
|
theme: o = "civo",
|
|
13
|
-
children:
|
|
14
|
-
|
|
14
|
+
children: i,
|
|
15
|
+
closeOnApply: m = !0
|
|
16
|
+
}) => /* @__PURE__ */ r(a, { closeOnApply: m, children: /* @__PURE__ */ r("div", { className: l(p({ className: e })), "data-theme": o, children: i }) });
|
|
15
17
|
t.displayName = "KonstructFilter";
|
|
16
|
-
t.BadgeMultiSelect =
|
|
17
|
-
t.TextMultiSelect =
|
|
18
|
-
t.DateFilterDropdown =
|
|
19
|
-
t.DateRangeFilterDropdown =
|
|
20
|
-
t.TimeFilterDropdown =
|
|
21
|
-
t.ResetButton =
|
|
18
|
+
t.BadgeMultiSelect = n;
|
|
19
|
+
t.TextMultiSelect = d;
|
|
20
|
+
t.DateFilterDropdown = f;
|
|
21
|
+
t.DateRangeFilterDropdown = c;
|
|
22
|
+
t.TimeFilterDropdown = D;
|
|
23
|
+
t.ResetButton = s;
|
|
22
24
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
n as BadgeMultiSelect,
|
|
26
|
+
f as DateFilterDropdown,
|
|
27
|
+
c as DateRangeFilterDropdown,
|
|
26
28
|
t as Filter,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
d as TextMultiSelect,
|
|
30
|
+
D as TimeFilterDropdown
|
|
29
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
import { Theme } from '../../domain/theme';
|
|
4
|
-
import { BadgeProps } from '../Badge/Badge.types';
|
|
4
|
+
import { Props as BadgeProps } from '../Badge/Badge.types';
|
|
5
5
|
import { filterVariants } from './Filter.variants';
|
|
6
6
|
import { BadgeMultiSelectProps, DateFilterDropdownProps, DateRangeFilterDropdownProps, ResetButtonProps, TextMultiSelectProps, TimeFilterDropdownProps } from './components';
|
|
7
7
|
/**
|
|
@@ -14,6 +14,12 @@ export type Option = {
|
|
|
14
14
|
label: string;
|
|
15
15
|
/** Visual variant for the badge */
|
|
16
16
|
variant?: BadgeProps['variant'];
|
|
17
|
+
/** Icon displayed on the left of the badge */
|
|
18
|
+
leftIcon?: BadgeProps['leftIcon'];
|
|
19
|
+
/** Icon displayed on the right of the badge */
|
|
20
|
+
rightIcon?: BadgeProps['rightIcon'];
|
|
21
|
+
/** Show loading spinner in the badge */
|
|
22
|
+
loading?: BadgeProps['loading'];
|
|
17
23
|
};
|
|
18
24
|
/**
|
|
19
25
|
* Props for the Filter component.
|
|
@@ -36,16 +42,20 @@ export type Option = {
|
|
|
36
42
|
* </Filter>
|
|
37
43
|
* ```
|
|
38
44
|
*/
|
|
39
|
-
export type
|
|
45
|
+
export type Props = VariantProps<typeof filterVariants> & PropsWithChildren & {
|
|
40
46
|
/** Additional CSS classes for the filter wrapper */
|
|
41
47
|
className?: string;
|
|
42
48
|
/** Theme override for this component */
|
|
43
49
|
theme?: Theme;
|
|
50
|
+
/** Whether to close the filter dropdown automatically when Apply is clicked. Defaults to true. */
|
|
51
|
+
closeOnApply?: boolean;
|
|
44
52
|
};
|
|
53
|
+
/** @deprecated Use Props instead */
|
|
54
|
+
export type FilterProps = Props;
|
|
45
55
|
/**
|
|
46
56
|
* Filter compound component type with sub-components.
|
|
47
57
|
*/
|
|
48
|
-
export type FilterComponentProps = FC<
|
|
58
|
+
export type FilterComponentProps = FC<Props> & {
|
|
49
59
|
BadgeMultiSelect: FC<BadgeMultiSelectProps>;
|
|
50
60
|
TextMultiSelect: FC<TextMultiSelectProps>;
|
|
51
61
|
DateFilterDropdown: FC<DateFilterDropdownProps>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Option } from '../../Filter.types';
|
|
2
2
|
import { BadgeMultiSelectProps, SelectedOptions } from './BadgeMultiSelect.types';
|
|
3
|
-
export declare const useBadgeMultiSelect: ({ onApply, }: Pick<BadgeMultiSelectProps, "onApply">) => {
|
|
3
|
+
export declare const useBadgeMultiSelect: ({ onApply, options, }: Pick<BadgeMultiSelectProps, "onApply" | "options">) => {
|
|
4
4
|
isOpen: boolean;
|
|
5
|
+
isAllSelected: boolean;
|
|
5
6
|
selectedCount: SelectedOptions[];
|
|
6
7
|
selectedOptions: SelectedOptions[];
|
|
7
8
|
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
8
9
|
handleApplyOptions: () => void;
|
|
9
10
|
handleOpen: () => void;
|
|
10
11
|
handleResetOptions: () => void;
|
|
12
|
+
handleSelectAll: (allOptions: Option[], checked: boolean) => void;
|
|
11
13
|
handleSelectOption: (option: Option, checked: boolean) => void;
|
|
12
14
|
};
|