@konstructio/ui 0.1.2-alpha.75 → 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/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/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/Datepicker/DatePicker.d.ts +2 -2
- package/dist/components/Datepicker/DatePicker.types.d.ts +3 -1
- package/dist/components/Filter/Filter.types.d.ts +5 -3
- package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- 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.types.d.ts +4 -2
- package/dist/components/Loading/Loading.d.ts +2 -2
- package/dist/components/Loading/Loading.types.d.ts +3 -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/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 +3 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +1 -1
- package/dist/components/Select/components/List/List.types.d.ts +1 -1
- 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 +3 -4
- package/dist/components/Toast/Toast.types.d.ts +3 -1
- 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.types.d.ts +1 -1
- 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/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/package.json +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-CESXsoMn.js +0 -14
- package/dist/index-URQGEGX7.js +0 -136
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { TypographyProps } from '../Typography/Typography.types';
|
|
3
|
+
import { Props as TypographyProps } from '../Typography/Typography.types';
|
|
4
4
|
import { Theme } from '../../domain/theme';
|
|
5
5
|
import { spinnerVariants } from './Spinner.variants';
|
|
6
|
-
export type
|
|
6
|
+
export type Props = HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
|
|
7
7
|
spinnerClassName?: string;
|
|
8
8
|
textClassName?: string;
|
|
9
9
|
textVariant?: TypographyProps['variant'];
|
|
@@ -11,3 +11,5 @@ export type SpinnerProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof
|
|
|
11
11
|
srLabel?: string;
|
|
12
12
|
theme?: Theme;
|
|
13
13
|
};
|
|
14
|
+
/** @deprecated Use Props instead */
|
|
15
|
+
export type SpinnerProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Stepper.types';
|
|
3
3
|
/**
|
|
4
4
|
* A stepper component for displaying multi-step processes.
|
|
5
5
|
* Supports vertical and horizontal orientations with various step states.
|
|
@@ -48,4 +48,4 @@ import { StepperProps } from './Stepper.types';
|
|
|
48
48
|
*
|
|
49
49
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-stepper--docs Storybook}
|
|
50
50
|
*/
|
|
51
|
-
export declare const Stepper: FC<
|
|
51
|
+
export declare const Stepper: FC<Props>;
|
|
@@ -47,7 +47,7 @@ export type StepperIcons = {
|
|
|
47
47
|
/** Custom icon for error status */
|
|
48
48
|
error?: ReactNode;
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
50
|
+
export type Props = VariantProps<typeof stepperVariants> & {
|
|
51
51
|
/** Additional CSS classes for the wrapper */
|
|
52
52
|
className?: string;
|
|
53
53
|
/** Custom class names for each element */
|
|
@@ -71,3 +71,5 @@ export type StepperProps = VariantProps<typeof stepperVariants> & {
|
|
|
71
71
|
/** Callback when a step is clicked */
|
|
72
72
|
onStepClick?: (step: Step, index: number) => void;
|
|
73
73
|
};
|
|
74
|
+
/** @deprecated Use Props instead */
|
|
75
|
+
export type StepperProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Switch.types';
|
|
3
3
|
/**
|
|
4
4
|
* A toggle switch component built on Radix UI primitives.
|
|
5
5
|
* Supports horizontal and vertical layouts with label and helper text.
|
|
@@ -26,4 +26,4 @@ import { SwitchProps } from './Switch.types';
|
|
|
26
26
|
*
|
|
27
27
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-switch--docs Storybook}
|
|
28
28
|
*/
|
|
29
|
-
export declare const Switch: FC<
|
|
29
|
+
export declare const Switch: FC<Props>;
|
|
@@ -11,7 +11,7 @@ import { switchVariants } from './Switch.variants';
|
|
|
11
11
|
* <Switch label="Feature" helperText="Enable experimental features" alignment="vertical" />
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface Props extends VariantProps<typeof switchVariants> {
|
|
15
15
|
/** Layout direction: horizontal (default) or vertical */
|
|
16
16
|
alignment?: 'horizontal' | 'vertical';
|
|
17
17
|
/** Additional CSS classes */
|
|
@@ -41,3 +41,5 @@ export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
|
41
41
|
/** Callback when checked state changes */
|
|
42
42
|
onChange?: (e: boolean) => void;
|
|
43
43
|
}
|
|
44
|
+
/** @deprecated Use Props instead */
|
|
45
|
+
export type SwitchProps = Props;
|
|
@@ -23,10 +23,12 @@ import { bodyVariants, headVariants, rowVariants, tableVariants } from './Table.
|
|
|
23
23
|
* </Table>
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
export interface
|
|
26
|
+
export interface Props extends React.HTMLAttributes<HTMLTableElement>, PropsWithChildren, VariantProps<typeof tableVariants> {
|
|
27
27
|
/** Theme override for this component */
|
|
28
28
|
theme?: Theme;
|
|
29
29
|
}
|
|
30
|
+
/** @deprecated Use Props instead */
|
|
31
|
+
export type TableProps = Props;
|
|
30
32
|
/**
|
|
31
33
|
* Props for Table.Row component.
|
|
32
34
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ListProps, TabsProps, TriggerProps } from './Tabs.types';
|
|
2
|
+
import { ListProps, Props as TabsProps, TriggerProps } from './Tabs.types';
|
|
3
3
|
import { Content, List, Trigger } from './components';
|
|
4
4
|
import * as ReactTabs from '@radix-ui/react-tabs';
|
|
5
5
|
/**
|
|
@@ -18,10 +18,12 @@ import * as ReactTabs from '@radix-ui/react-tabs';
|
|
|
18
18
|
* </Tabs>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface Props extends ReactTabs.TabsProps, PropsWithChildren {
|
|
22
22
|
/** Theme override for this component */
|
|
23
23
|
theme?: Theme;
|
|
24
24
|
}
|
|
25
|
+
/** @deprecated Use Props instead */
|
|
26
|
+
export type TabsProps = Props;
|
|
25
27
|
/**
|
|
26
28
|
* Props for Tabs.Trigger component.
|
|
27
29
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Tag.types';
|
|
3
3
|
/**
|
|
4
4
|
* A small label component for categorization, status display, or filtering.
|
|
5
5
|
* Supports multiple color variants and optional icons.
|
|
@@ -13,4 +13,4 @@ import { TagProps } from './Tag.types';
|
|
|
13
13
|
*
|
|
14
14
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tag--docs Storybook}
|
|
15
15
|
*/
|
|
16
|
-
export declare const Tag: FC<
|
|
16
|
+
export declare const Tag: FC<Props>;
|
|
@@ -13,7 +13,7 @@ import { ReactNode } from 'react';
|
|
|
13
13
|
* />
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export type
|
|
16
|
+
export type Props = {
|
|
17
17
|
/** Color variant for the tag */
|
|
18
18
|
color?: 'gray' | 'gray-800' | 'cyan' | 'gold' | 'green' | 'light blue' | 'lime' | 'pink' | 'purple' | 'emerald' | 'fuscia' | 'indigo' | 'light-orange' | 'dark-sky-blue' | 'mistery';
|
|
19
19
|
/** Unique identifier for the tag */
|
|
@@ -31,3 +31,5 @@ export type TagProps = {
|
|
|
31
31
|
/** Whether the tag is in a selected state */
|
|
32
32
|
isSelected?: boolean;
|
|
33
33
|
};
|
|
34
|
+
/** @deprecated Use Props instead */
|
|
35
|
+
export type TagProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './TagSelect.types';
|
|
3
3
|
/**
|
|
4
4
|
* An input component for selecting from a list of tag options.
|
|
5
5
|
* Supports single and multi-selection modes.
|
|
@@ -20,4 +20,4 @@ import { TagSelectProps } from './TagSelect.types';
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tagselect--docs Storybook}
|
|
22
22
|
*/
|
|
23
|
-
export declare const TagSelect: FC<
|
|
23
|
+
export declare const TagSelect: FC<Props>;
|
|
@@ -2,7 +2,9 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
3
|
import { TagSelectProvider as f } from "./contexts/TagSelect.provider.js";
|
|
4
4
|
import { Wrapper as i } from "./components/Wrapper/Wrapper.js";
|
|
5
|
-
const n = p(
|
|
5
|
+
const n = p(
|
|
6
|
+
({ options: o, multiselect: e, ...t }, m) => /* @__PURE__ */ r(f, { defaultOptions: o, multiselect: e, children: /* @__PURE__ */ r(i, { ref: m, ...t }) })
|
|
7
|
+
);
|
|
6
8
|
export {
|
|
7
9
|
n as TagSelect
|
|
8
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { TagProps } from '../Tag/Tag.types';
|
|
2
|
+
import { Props as TagProps } from '../Tag/Tag.types';
|
|
3
3
|
import { tagSelectVariants } from './TagSelect.variants';
|
|
4
4
|
/**
|
|
5
5
|
* Props for the TagSelect component.
|
|
@@ -19,7 +19,7 @@ import { tagSelectVariants } from './TagSelect.variants';
|
|
|
19
19
|
* />
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface Props extends VariantProps<typeof tagSelectVariants> {
|
|
23
23
|
/** Label displayed above the input */
|
|
24
24
|
label?: string;
|
|
25
25
|
/** Available tag options to select from */
|
|
@@ -37,3 +37,5 @@ export interface TagSelectProps extends VariantProps<typeof tagSelectVariants> {
|
|
|
37
37
|
/** Whether multiple tags can be selected */
|
|
38
38
|
multiselect?: boolean;
|
|
39
39
|
}
|
|
40
|
+
/** @deprecated Use Props instead */
|
|
41
|
+
export type TagSelectProps = Props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ForwardedRef } from 'react';
|
|
2
2
|
import { Theme } from '../../../../domain/theme';
|
|
3
|
-
import { TagSelectProps } from '../../TagSelect.types';
|
|
3
|
+
import { Props as TagSelectProps } from '../../TagSelect.types';
|
|
4
4
|
export type WrapperProps = Omit<TagSelectProps, 'options' | 'multiselect'> & {
|
|
5
5
|
ref?: ForwardedRef<HTMLInputElement>;
|
|
6
6
|
theme?: Theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './TextArea.types';
|
|
3
3
|
/**
|
|
4
4
|
* A multiline text input component with optional label.
|
|
5
5
|
*
|
|
@@ -21,4 +21,4 @@ import { TextAreaProps } from './TextArea.types';
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-textarea--docs Storybook}
|
|
23
23
|
*/
|
|
24
|
-
export declare const TextArea: FC<
|
|
24
|
+
export declare const TextArea: FC<Props>;
|
|
@@ -12,7 +12,7 @@ import { textAreaVariants } from './TextArea.variants';
|
|
|
12
12
|
* <TextArea name="bio" initialValue="Default text" />
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface Props extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
16
16
|
/** Number of visible text rows (default: 3) */
|
|
17
17
|
rows?: number;
|
|
18
18
|
/** Label displayed above the textarea */
|
|
@@ -26,3 +26,5 @@ export interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>,
|
|
|
26
26
|
/** Theme override for this component */
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
}
|
|
29
|
+
/** @deprecated Use Props instead */
|
|
30
|
+
export type TextAreaProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './TimePicker.types';
|
|
3
3
|
/**
|
|
4
4
|
* A scrollable time picker component with 12 or 24 hour format support.
|
|
5
5
|
* Features smooth scroll navigation through hours, minutes, and AM/PM options.
|
|
@@ -17,5 +17,5 @@ import { TimePickerProps } from './TimePicker.types';
|
|
|
17
17
|
*
|
|
18
18
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-timepicker--docs Storybook}
|
|
19
19
|
*/
|
|
20
|
-
declare const TimePicker: FC<
|
|
20
|
+
declare const TimePicker: FC<Props>;
|
|
21
21
|
export { TimePicker };
|
|
@@ -15,7 +15,7 @@ import { timePickerVariants } from './TimePicker.variants';
|
|
|
15
15
|
* />
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export type
|
|
18
|
+
export type Props = VariantProps<typeof timePickerVariants> & {
|
|
19
19
|
/** Time format: '12' for AM/PM or '24' for military time */
|
|
20
20
|
format?: '12' | '24';
|
|
21
21
|
/** Input mode: 'select' for dropdown only, 'input' for typing */
|
|
@@ -51,3 +51,5 @@ export type TimePickerProps = VariantProps<typeof timePickerVariants> & {
|
|
|
51
51
|
/** Direction to open the dropdown list (default: 'bottom') */
|
|
52
52
|
listPosition?: 'top' | 'bottom';
|
|
53
53
|
};
|
|
54
|
+
/** @deprecated Use Props instead */
|
|
55
|
+
export type TimePickerProps = Props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimePickerProps } from '../../TimePicker.types';
|
|
1
|
+
import { Props as TimePickerProps } from '../../TimePicker.types';
|
|
2
2
|
export type MeridianListProps = {
|
|
3
3
|
listClassName?: TimePickerProps['listClassName'];
|
|
4
4
|
listItemClassName?: TimePickerProps['listItemClassName'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Toast.types';
|
|
3
3
|
/**
|
|
4
4
|
* A toast notification component built on Radix UI primitives.
|
|
5
5
|
* Wraps a trigger element and shows a toast when clicked.
|
|
@@ -22,4 +22,4 @@ import { ToastProps } from './Toast.types';
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-toast--docs Storybook}
|
|
24
24
|
*/
|
|
25
|
-
export declare const Toast: FC<
|
|
25
|
+
export declare const Toast: FC<Props>;
|
|
@@ -6,8 +6,7 @@ import * as Ne from "react-dom";
|
|
|
6
6
|
import { P as D, a as Ie, c as b, b as Ae, d as De, u as _e } from "../../index--l0zux8V.js";
|
|
7
7
|
import { u as ce } from "../../index-DLcqcWxM.js";
|
|
8
8
|
import { c as Fe } from "../../index-CJnS4BVW.js";
|
|
9
|
-
import { B as Le, R as Me } from "../../index-
|
|
10
|
-
import { P as ke } from "../../index-CESXsoMn.js";
|
|
9
|
+
import { B as Le, R as Me, P as ke } from "../../index-BvEpLnOv.js";
|
|
11
10
|
import { P as Oe } from "../../index-3fEdeexs.js";
|
|
12
11
|
import { u as Y } from "../../index-0ioNhtNM.js";
|
|
13
12
|
import { R as Ve } from "../../index-BKjcReYh.js";
|
|
@@ -451,7 +450,7 @@ function q(e) {
|
|
|
451
450
|
return e.some((r) => r === o ? !0 : (r.focus(), document.activeElement !== o));
|
|
452
451
|
}
|
|
453
452
|
var dt = le, ft = fe, pt = me, mt = we, ae = Te, wt = Ee;
|
|
454
|
-
const
|
|
453
|
+
const _t = ({
|
|
455
454
|
title: e,
|
|
456
455
|
duration: o = 5e3,
|
|
457
456
|
titleClassName: r,
|
|
@@ -510,5 +509,5 @@ const Ft = ({
|
|
|
510
509
|
] });
|
|
511
510
|
};
|
|
512
511
|
export {
|
|
513
|
-
|
|
512
|
+
_t as Toast
|
|
514
513
|
};
|
|
@@ -20,7 +20,7 @@ import { toastVariants } from './Toast.variants';
|
|
|
20
20
|
* </Toast>
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export interface
|
|
23
|
+
export interface Props extends PropsWithChildren, VariantProps<typeof toastVariants> {
|
|
24
24
|
/** Additional CSS classes for the toast */
|
|
25
25
|
className?: string;
|
|
26
26
|
/** CSS classes for the close button */
|
|
@@ -44,3 +44,5 @@ export interface ToastProps extends PropsWithChildren, VariantProps<typeof toast
|
|
|
44
44
|
/** Callback to update open state */
|
|
45
45
|
setOpen: (open: boolean) => void;
|
|
46
46
|
}
|
|
47
|
+
/** @deprecated Use Props instead */
|
|
48
|
+
export type ToastProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Tooltip.types';
|
|
3
3
|
/**
|
|
4
4
|
* A tooltip component that shows on hover.
|
|
5
5
|
* Built on Radix UI for accessible, well-positioned tooltips.
|
|
@@ -19,4 +19,4 @@ import { TooltipProps } from './Tooltip.types';
|
|
|
19
19
|
* </Tooltip>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare const Tooltip: FC<
|
|
22
|
+
export declare const Tooltip: FC<Props>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { P as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { P as c, R as p, T as h, a as x, C as f, A as g } from "../../index-mPinF0Ho.js";
|
|
3
|
+
import { cn as w } from "../../utils/index.js";
|
|
4
4
|
const j = ({
|
|
5
|
-
content:
|
|
6
|
-
children:
|
|
7
|
-
side:
|
|
8
|
-
sideOffset:
|
|
5
|
+
content: e,
|
|
6
|
+
children: s,
|
|
7
|
+
side: t = "top",
|
|
8
|
+
sideOffset: o = 4,
|
|
9
9
|
bgClassName: i = "bg-slate-700",
|
|
10
|
-
arrowClassName:
|
|
11
|
-
textClassName:
|
|
10
|
+
arrowClassName: l = "fill-slate-700",
|
|
11
|
+
textClassName: n = "text-white",
|
|
12
12
|
className: d,
|
|
13
13
|
delayDuration: m = 0
|
|
14
|
-
}) => /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ r(
|
|
17
|
-
|
|
14
|
+
}) => /* @__PURE__ */ r(c, { delayDuration: m, children: /* @__PURE__ */ a(p, { children: [
|
|
15
|
+
/* @__PURE__ */ r(h, { asChild: !0, children: /* @__PURE__ */ r("span", { children: s }) }),
|
|
16
|
+
/* @__PURE__ */ r(x, { children: /* @__PURE__ */ a(
|
|
17
|
+
f,
|
|
18
18
|
{
|
|
19
|
-
side:
|
|
20
|
-
sideOffset:
|
|
21
|
-
className:
|
|
19
|
+
side: t,
|
|
20
|
+
sideOffset: o,
|
|
21
|
+
className: w(
|
|
22
22
|
"rounded px-2 py-1 text-xs shadow-md",
|
|
23
23
|
"animate-in fade-in-0",
|
|
24
24
|
i,
|
|
25
|
-
|
|
25
|
+
n,
|
|
26
26
|
d
|
|
27
27
|
),
|
|
28
28
|
children: [
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
e,
|
|
30
|
+
/* @__PURE__ */ r(g, { className: l })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
|
-
)
|
|
33
|
+
) })
|
|
34
34
|
] }) });
|
|
35
35
|
export {
|
|
36
36
|
j as Tooltip
|
|
@@ -17,7 +17,7 @@ import { ReactNode } from 'react';
|
|
|
17
17
|
* </Tooltip>
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface Props {
|
|
21
21
|
/** Tooltip text or content */
|
|
22
22
|
content: ReactNode | string;
|
|
23
23
|
/** The trigger element */
|
|
@@ -37,3 +37,5 @@ export interface TooltipProps {
|
|
|
37
37
|
/** Delay before showing tooltip in ms */
|
|
38
38
|
delayDuration?: number;
|
|
39
39
|
}
|
|
40
|
+
/** @deprecated Use Props instead */
|
|
41
|
+
export type TooltipProps = Props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Props } from './Typography.types';
|
|
3
3
|
/**
|
|
4
4
|
* A flexible typography component for consistent text styling.
|
|
5
5
|
* Automatically selects semantic HTML elements based on variant.
|
|
@@ -14,5 +14,5 @@ import { TypographyProps } from './Typography.types';
|
|
|
14
14
|
*
|
|
15
15
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-typography--docs Storybook}
|
|
16
16
|
*/
|
|
17
|
-
declare const Typography: ForwardRefExoticComponent<Omit<
|
|
17
|
+
declare const Typography: ForwardRefExoticComponent<Omit<Props, 'ref'> & RefAttributes<HTMLParagraphElement & HTMLHeadingElement & HTMLLabelElement>>;
|
|
18
18
|
export { Typography };
|
|
@@ -15,7 +15,7 @@ export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
|
15
15
|
* <Typography variant="h2" component="p">Styled as h2 but renders as p</Typography>
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface Props extends HTMLAttributes<ComponentRef<HeadingTag | 'p' | 'span'>>, VariantProps<typeof typographyVariants> {
|
|
19
19
|
/** Ref to the underlying DOM element */
|
|
20
20
|
ref?: Ref<HTMLHeadingElement | HTMLParagraphElement | HTMLSpanElement>;
|
|
21
21
|
/** Text content to display */
|
|
@@ -27,3 +27,5 @@ export interface TypographyProps extends HTMLAttributes<ComponentRef<HeadingTag
|
|
|
27
27
|
/** For use with label component to associate with form input */
|
|
28
28
|
htmlFor?: string;
|
|
29
29
|
}
|
|
30
|
+
/** @deprecated Use Props instead */
|
|
31
|
+
export type TypographyProps = Props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnDef as ColumnDefPrimitive, ExpandedState, OnChangeFn, RowData as RowDataPrimitive } from '@tanstack/react-table';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { ButtonProps } from '../Button/Button.types';
|
|
4
|
+
import { Props as ButtonProps } from '../Button/Button.types';
|
|
5
5
|
import { DateRange, DateRangeWithTime } from '../DateRangePicker/DateRangePicker.types';
|
|
6
6
|
import { TimePreset } from '../Filter/components/TimeFilterDropdown/TimeFilterDropdown.types';
|
|
7
7
|
import { virtualizeTableVariants } from './VirtualizedTable.variants';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Props } from './TruncateText.types';
|
|
2
|
-
export declare const TruncateText: <TData>({ getValue, value }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TruncateText: <TData>({ getValue, value, textClassName, side, sideOffset, bgClassName, arrowClassName, className, delayDuration, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +1,63 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { d as R } from "../../../../debounce-DJveWHr_.js";
|
|
3
|
+
import { useRef as g, useState as z, useCallback as L, useEffect as l } from "react";
|
|
4
|
+
import { Tooltip as y } from "../../../Tooltip/Tooltip.js";
|
|
5
|
+
import { Typography as i } from "../../../Typography/Typography.js";
|
|
6
|
+
import { cn as a } from "../../../../utils/index.js";
|
|
7
|
+
const A = ({
|
|
8
|
+
getValue: u,
|
|
9
|
+
value: f,
|
|
10
|
+
textClassName: c,
|
|
11
|
+
side: m = "bottom",
|
|
12
|
+
sideOffset: p,
|
|
13
|
+
bgClassName: d,
|
|
14
|
+
arrowClassName: h,
|
|
15
|
+
className: b,
|
|
16
|
+
delayDuration: w = 0
|
|
17
|
+
}) => {
|
|
18
|
+
const o = g(null), [T, x] = z(!1), r = f ?? u().toLocaleLowerCase(), t = L(() => {
|
|
19
|
+
const e = o.current;
|
|
20
|
+
e && x(e.scrollWidth > e.clientWidth);
|
|
9
21
|
}, []);
|
|
10
|
-
return
|
|
11
|
-
const e = new AbortController(),
|
|
12
|
-
return window.addEventListener("resize",
|
|
22
|
+
return l(() => {
|
|
23
|
+
const e = new AbortController(), s = R(t, 300);
|
|
24
|
+
return window.addEventListener("resize", s, {
|
|
13
25
|
signal: e.signal
|
|
14
26
|
}), () => {
|
|
15
|
-
e.abort(),
|
|
27
|
+
e.abort(), s.cancel();
|
|
16
28
|
};
|
|
17
|
-
}, [t]),
|
|
29
|
+
}, [t]), l(() => {
|
|
18
30
|
t();
|
|
19
|
-
}, [t]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
}, [t]), T ? /* @__PURE__ */ n(
|
|
32
|
+
y,
|
|
33
|
+
{
|
|
34
|
+
content: r,
|
|
35
|
+
side: m,
|
|
36
|
+
sideOffset: p,
|
|
37
|
+
bgClassName: d,
|
|
38
|
+
arrowClassName: h,
|
|
39
|
+
className: b,
|
|
40
|
+
delayDuration: w,
|
|
41
|
+
children: /* @__PURE__ */ n(
|
|
42
|
+
i,
|
|
43
|
+
{
|
|
44
|
+
ref: o,
|
|
45
|
+
component: "p",
|
|
46
|
+
className: a("w-full truncate cursor-pointer", c),
|
|
47
|
+
children: r
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
) : /* @__PURE__ */ n(
|
|
52
|
+
i,
|
|
53
|
+
{
|
|
54
|
+
ref: o,
|
|
55
|
+
component: "p",
|
|
56
|
+
className: a("w-full truncate", c),
|
|
57
|
+
children: r
|
|
58
|
+
}
|
|
59
|
+
);
|
|
31
60
|
};
|
|
32
61
|
export {
|
|
33
|
-
|
|
62
|
+
A as TruncateText
|
|
34
63
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CellContext } from '@tanstack/react-table';
|
|
2
|
+
import { Props as TooltipProps } from '../../../Tooltip/Tooltip.types';
|
|
2
3
|
import { RowData } from '../../VirtualizedTable.types';
|
|
3
|
-
export type Props<TData extends RowData> = CellContext<TData, string> & {
|
|
4
|
+
export type Props<TData extends RowData> = CellContext<TData, string> & Partial<Omit<TooltipProps, 'content' | 'children' | 'textClassName'>> & {
|
|
4
5
|
value?: string;
|
|
6
|
+
/** Additional className for the text element */
|
|
7
|
+
textClassName?: string;
|
|
5
8
|
};
|
|
@@ -50,5 +50,7 @@ export type { VirtualizedTableEventDetail } from './VirtualizedTable/events';
|
|
|
50
50
|
export type { ColumnDef, RowData, FilterConfig, ActionFilterConfig, BadgeMultiSelectFilterConfig, TextMultiSelectFilterConfig, DateFilterConfig, DateRangeFilterConfig, TimeFilterConfig, } from './VirtualizedTable/VirtualizedTable.types';
|
|
51
51
|
export type { Step, StepperClassNames, StepperIcons, StepperProps, StepSize, StepStatus, StepVariant, } from './Stepper/Stepper.types';
|
|
52
52
|
export { horizontalConnectorWrapperVariants, stepConnectorVariants, stepContentVariants, stepDescriptionVariants, stepIndicatorVariants, stepItemVariants, stepLabelVariants, stepListVariants, stepperVariants, stepVariants, } from './Stepper/Stepper.variants';
|
|
53
|
+
/** @deprecated Use Counter instead */
|
|
53
54
|
export { Counter as NumberInput } from './Counter/Counter';
|
|
55
|
+
/** @deprecated Use Select instead */
|
|
54
56
|
export { Select as Dropdown } from './Select/Select';
|