@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.
Files changed (140) hide show
  1. package/dist/components/Alert/Alert.d.ts +2 -2
  2. package/dist/components/Alert/Alert.types.d.ts +3 -1
  3. package/dist/components/AlertDialog/AlertDialog.d.ts +2 -2
  4. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  5. package/dist/components/AlertDialog/AlertDialog.types.d.ts +5 -3
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -2
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  8. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +4 -2
  9. package/dist/components/AlertDialog/components/index.js +1 -1
  10. package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
  11. package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -1
  12. package/dist/components/Badge/Badge.d.ts +2 -2
  13. package/dist/components/Badge/Badge.types.d.ts +3 -1
  14. package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
  15. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +3 -1
  16. package/dist/components/Breadcrumb/components/Item/Item.d.ts +2 -2
  17. package/dist/components/Breadcrumb/components/Item/Item.types.d.ts +3 -1
  18. package/dist/components/Button/Button.d.ts +2 -2
  19. package/dist/components/Button/Button.types.d.ts +3 -1
  20. package/dist/components/Card/Card.d.ts +2 -2
  21. package/dist/components/Card/Card.types.d.ts +3 -1
  22. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  23. package/dist/components/Checkbox/Checkbox.types.d.ts +3 -1
  24. package/dist/components/Command/Command.d.ts +2 -2
  25. package/dist/components/Command/Command.js +2 -2
  26. package/dist/components/Command/Command.types.d.ts +3 -1
  27. package/dist/components/Command/components/Command.js +1 -1
  28. package/dist/components/Command/components/CommandEmpty.js +1 -1
  29. package/dist/components/Command/components/CommandGroup.js +1 -1
  30. package/dist/components/Command/components/CommandInput.js +1 -1
  31. package/dist/components/Command/components/CommandItem.js +1 -1
  32. package/dist/components/Command/components/CommandList.js +1 -1
  33. package/dist/components/Command/components/CommandSeparator.js +1 -1
  34. package/dist/components/Command/components/DialogContent.js +1 -1
  35. package/dist/components/Command/components/DialogOverlay.js +1 -1
  36. package/dist/components/Counter/Counter.d.ts +2 -2
  37. package/dist/components/Counter/Counter.types.d.ts +3 -1
  38. package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  39. package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +3 -1
  40. package/dist/components/Datepicker/DatePicker.d.ts +2 -2
  41. package/dist/components/Datepicker/DatePicker.types.d.ts +3 -1
  42. package/dist/components/Filter/Filter.types.d.ts +5 -3
  43. package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
  44. package/dist/components/ImageUpload/ImageUpload.d.ts +2 -2
  45. package/dist/components/ImageUpload/ImageUpload.types.d.ts +3 -1
  46. package/dist/components/Input/Input.d.ts +2 -2
  47. package/dist/components/Input/Input.types.d.ts +3 -1
  48. package/dist/components/LineChart/LineChart.d.ts +2 -2
  49. package/dist/components/LineChart/LineChart.types.d.ts +4 -2
  50. package/dist/components/Loading/Loading.d.ts +2 -2
  51. package/dist/components/Loading/Loading.types.d.ts +3 -1
  52. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +2 -2
  53. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +3 -1
  54. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
  55. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  56. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
  57. package/dist/components/ProgressBar/ProgressBar.types.d.ts +3 -1
  58. package/dist/components/Radio/Radio.d.ts +2 -2
  59. package/dist/components/Radio/Radio.types.d.ts +3 -1
  60. package/dist/components/RadioCard/RadioCard.d.ts +2 -2
  61. package/dist/components/RadioCard/RadioCard.types.d.ts +5 -3
  62. package/dist/components/RadioCardGroup/RadioCardGroup.d.ts +2 -2
  63. package/dist/components/RadioCardGroup/RadioCardGroup.types.d.ts +4 -2
  64. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  65. package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -2
  66. package/dist/components/Range/Range.d.ts +2 -2
  67. package/dist/components/Range/Range.types.d.ts +3 -1
  68. package/dist/components/Select/Select.d.ts +2 -2
  69. package/dist/components/Select/Select.types.d.ts +3 -1
  70. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +1 -1
  71. package/dist/components/Select/components/List/List.types.d.ts +1 -1
  72. package/dist/components/Sidebar/Sidebar.d.ts +1 -1
  73. package/dist/components/Sidebar/Sidebar.types.d.ts +3 -1
  74. package/dist/components/Sidebar/components/Footer/Footer.d.ts +2 -2
  75. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +3 -1
  76. package/dist/components/Sidebar/components/Logo/Logo.d.ts +2 -2
  77. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +3 -1
  78. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +2 -2
  79. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +7 -5
  80. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +2 -2
  81. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +3 -1
  82. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +2 -2
  83. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +3 -1
  84. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +2 -2
  85. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +3 -1
  86. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +2 -2
  87. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -5
  88. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +3 -1
  89. package/dist/components/Sidebar/components/index.d.ts +7 -7
  90. package/dist/components/Slider/Slider.d.ts +2 -2
  91. package/dist/components/Slider/Slider.types.d.ts +3 -1
  92. package/dist/components/Spinner/Spinner.d.ts +2 -2
  93. package/dist/components/Spinner/Spinner.types.d.ts +4 -2
  94. package/dist/components/Stepper/Stepper.d.ts +2 -2
  95. package/dist/components/Stepper/Stepper.types.d.ts +3 -1
  96. package/dist/components/Switch/Switch.d.ts +2 -2
  97. package/dist/components/Switch/Switch.types.d.ts +3 -1
  98. package/dist/components/Table/Table.types.d.ts +3 -1
  99. package/dist/components/Tabs/Tabs.d.ts +1 -1
  100. package/dist/components/Tabs/Tabs.types.d.ts +3 -1
  101. package/dist/components/Tag/Tag.d.ts +2 -2
  102. package/dist/components/Tag/Tag.types.d.ts +3 -1
  103. package/dist/components/TagSelect/TagSelect.d.ts +2 -2
  104. package/dist/components/TagSelect/TagSelect.js +3 -1
  105. package/dist/components/TagSelect/TagSelect.types.d.ts +4 -2
  106. package/dist/components/TagSelect/components/Item/Item.types.d.ts +1 -1
  107. package/dist/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
  108. package/dist/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
  109. package/dist/components/TextArea/TextArea.d.ts +2 -2
  110. package/dist/components/TextArea/TextArea.types.d.ts +3 -1
  111. package/dist/components/TimePicker/TimePicker.d.ts +2 -2
  112. package/dist/components/TimePicker/TimePicker.types.d.ts +3 -1
  113. package/dist/components/TimePicker/components/HoursList/HoursList.types.d.ts +1 -1
  114. package/dist/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +1 -1
  115. package/dist/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +1 -1
  116. package/dist/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +1 -1
  117. package/dist/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -1
  118. package/dist/components/Toast/Toast.d.ts +2 -2
  119. package/dist/components/Toast/Toast.js +3 -4
  120. package/dist/components/Toast/Toast.types.d.ts +3 -1
  121. package/dist/components/Tooltip/Tooltip.d.ts +2 -2
  122. package/dist/components/Tooltip/Tooltip.js +20 -20
  123. package/dist/components/Tooltip/Tooltip.types.d.ts +3 -1
  124. package/dist/components/Typography/Typography.d.ts +2 -2
  125. package/dist/components/Typography/Typography.types.d.ts +3 -1
  126. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
  127. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
  128. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +55 -26
  129. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +4 -1
  130. package/dist/components/index.d.ts +2 -0
  131. package/dist/index-BvEpLnOv.js +144 -0
  132. package/dist/{index-Dd_ZmIqU.js → index-C7zAY3xv.js} +1 -1
  133. package/dist/{index-Dfq4O3b4.js → index-CrCTywU1.js} +1 -1
  134. package/dist/{index-9a-FL_6D.js → index-DWyM654o.js} +41 -42
  135. package/dist/{index-B7-5g1Sm.js → index-mPinF0Ho.js} +407 -401
  136. package/dist/package.json +1 -1
  137. package/dist/styles.css +1 -1
  138. package/package.json +1 -1
  139. package/dist/index-CESXsoMn.js +0 -14
  140. 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 SpinnerProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
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 { StepperProps } from './Stepper.types';
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<StepperProps>;
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 StepperProps = VariantProps<typeof stepperVariants> & {
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 { SwitchProps } from './Switch.types';
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<SwitchProps>;
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 SwitchProps extends VariantProps<typeof switchVariants> {
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 TableProps extends React.HTMLAttributes<HTMLTableElement>, PropsWithChildren, VariantProps<typeof tableVariants> {
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 TabsProps extends ReactTabs.TabsProps, PropsWithChildren {
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 { TagProps } from './Tag.types';
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<TagProps>;
16
+ export declare const Tag: FC<Props>;
@@ -13,7 +13,7 @@ import { ReactNode } from 'react';
13
13
  * />
14
14
  * ```
15
15
  */
16
- export type TagProps = {
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 { TagSelectProps } from './TagSelect.types';
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<TagSelectProps>;
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(({ options: o, multiselect: e, ...t }, m) => /* @__PURE__ */ r(f, { defaultOptions: o, multiselect: e, children: /* @__PURE__ */ r(i, { ref: m, ...t }) }));
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 TagSelectProps extends VariantProps<typeof tagSelectVariants> {
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,4 +1,4 @@
1
- import { TagProps } from '../../../Tag/Tag.types';
1
+ import { Props as TagProps } from '../../../Tag/Tag.types';
2
2
  import { Theme } from '../../../../domain/theme';
3
3
  export type ItemProps = {
4
4
  option: TagProps;
@@ -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 { PropsWithChildren, RefObject } from 'react';
2
- import { TagProps } from '../../Tag/Tag.types';
2
+ import { Props as TagProps } from '../../Tag/Tag.types';
3
3
  export type State = {
4
4
  tags: TagProps[];
5
5
  selectedTags: TagProps[];
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TextAreaProps } from './TextArea.types';
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<TextAreaProps>;
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 TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
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 { TimePickerProps } from './TimePicker.types';
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<TimePickerProps>;
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 TimePickerProps = VariantProps<typeof timePickerVariants> & {
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 HourListProps = {
3
3
  hours: number;
4
4
  scrollBehavior?: TimePickerProps['scrollBehavior'];
@@ -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,4 +1,4 @@
1
- import { TimePickerProps } from '../../TimePicker.types';
1
+ import { Props as TimePickerProps } from '../../TimePicker.types';
2
2
  export type MinutesLitProps = {
3
3
  minutes: number;
4
4
  scrollBehavior?: TimePickerProps['scrollBehavior'];
@@ -1,4 +1,4 @@
1
- import { TimePickerProps } from '../../TimePicker.types';
1
+ import { Props as TimePickerProps } from '../../TimePicker.types';
2
2
  export type WrapperProps = Omit<TimePickerProps, 'format' | 'time' | 'onChange'> & {
3
3
  mode?: 'select' | 'input';
4
4
  showList?: boolean;
@@ -1,4 +1,4 @@
1
- import { TimePickerProps } from '../../TimePicker.types';
1
+ import { Props as TimePickerProps } from '../../TimePicker.types';
2
2
  export type WrapperListProps = {
3
3
  isOpen: boolean;
4
4
  scrollBehavior?: TimePickerProps['scrollBehavior'];
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { ToastProps } from './Toast.types';
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<ToastProps>;
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-URQGEGX7.js";
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 Ft = ({
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
- Ft as Toast
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 ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
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 { TooltipProps } from './Tooltip.types';
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<TooltipProps>;
22
+ export declare const Tooltip: FC<Props>;
@@ -1,36 +1,36 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { P as p, R as c, T as h, C as x, A as f } from "../../index-B7-5g1Sm.js";
3
- import { cn as g } from "../../utils/index.js";
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: s,
6
- children: t,
7
- side: o = "top",
8
- sideOffset: a = 4,
5
+ content: e,
6
+ children: s,
7
+ side: t = "top",
8
+ sideOffset: o = 4,
9
9
  bgClassName: i = "bg-slate-700",
10
- arrowClassName: n = "fill-slate-700",
11
- textClassName: l = "text-white",
10
+ arrowClassName: l = "fill-slate-700",
11
+ textClassName: n = "text-white",
12
12
  className: d,
13
13
  delayDuration: m = 0
14
- }) => /* @__PURE__ */ e(p, { delayDuration: m, children: /* @__PURE__ */ r(c, { children: [
15
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e("span", { children: t }) }),
16
- /* @__PURE__ */ r(
17
- x,
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: o,
20
- sideOffset: a,
21
- className: g(
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
- l,
25
+ n,
26
26
  d
27
27
  ),
28
28
  children: [
29
- s,
30
- /* @__PURE__ */ e(f, { className: n })
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 TooltipProps {
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 { TypographyProps } from './Typography.types';
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<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement & HTMLHeadingElement & HTMLLabelElement>>;
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 TypographyProps extends HTMLAttributes<ComponentRef<HeadingTag | 'p' | 'span'>>, VariantProps<typeof typographyVariants> {
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 r, jsxs as d } from "react/jsx-runtime";
2
- import { P as u, R as b, T as m, C as p } from "../../../../index-B7-5g1Sm.js";
3
- import { d as h } from "../../../../debounce-DJveWHr_.js";
4
- import { useRef as x, useState as w, useCallback as g, useEffect as s } from "react";
5
- const v = ({ getValue: l, value: i }) => {
6
- const a = x(null), [c, f] = w(!1), n = i ?? l().toLocaleLowerCase(), t = g(() => {
7
- const e = a.current;
8
- e && f(e.scrollWidth > e.clientWidth);
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 s(() => {
11
- const e = new AbortController(), o = h(t, 300);
12
- return window.addEventListener("resize", o, {
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(), o.cancel();
27
+ e.abort(), s.cancel();
16
28
  };
17
- }, [t]), s(() => {
29
+ }, [t]), l(() => {
18
30
  t();
19
- }, [t]), c ? /* @__PURE__ */ r(u, { delayDuration: 0, children: /* @__PURE__ */ d(b, { children: [
20
- /* @__PURE__ */ r(m, { asChild: !0, children: /* @__PURE__ */ r("p", { ref: a, className: "w-full truncate cursor-pointer", children: n }) }),
21
- /* @__PURE__ */ r(
22
- p,
23
- {
24
- side: "bottom",
25
- align: "center",
26
- className: "animate-in fade-in-0 relative mt-1.5 overflow-visible bg-kubefirst-dark-blue-900 text-white px-3 py-2 after:content-[''] after:absolute after:left-1/2 after:-translate-x-1/2 after:top-0 after:-translate-y-full after:border-l-8 after:border-l-transparent after:border-r-8 after:border-r-transparent after:border-b-8 after:border-kubefirst-dark-blue-900",
27
- children: n
28
- }
29
- )
30
- ] }) }) : /* @__PURE__ */ r("p", { ref: a, className: "w-full truncate", children: n });
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
- v as TruncateText
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';