@konstructio/ui 0.1.2-alpha.27 → 0.1.2-alpha.29
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/DatePicker.css +1 -1
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Card/Card.variants.js +5 -9
- package/dist/components/Datepicker/DatePicker.js +1250 -1190
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/components/List/List.js +45 -39
- package/dist/components/Dropdown/components/Wrapper.js +81 -80
- package/dist/components/Dropdown/hooks/useDropdown.js +21 -21
- package/dist/components/Filter/Filter.variants.js +2 -2
- package/dist/components/Input/Input.variants.js +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +27 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +621 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6137 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Typography/Typography.variants.js +18 -23
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +5 -5
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1886
- package/dist/components/index.js +72 -70
- package/dist/index-2hB40Iuc.js +1873 -0
- package/dist/index-C3tHPg8y.js +662 -0
- package/dist/index.d.ts +32 -13
- package/dist/index.js +82 -80
- package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
- package/dist/package.json +13 -7
- package/dist/styles.css +1 -1
- package/package.json +13 -7
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { ReactNode } from 'react';
|
|
|
21
21
|
import * as ReactTabs from '@radix-ui/react-tabs';
|
|
22
22
|
import { Ref } from 'react';
|
|
23
23
|
import { RefAttributes } from 'react';
|
|
24
|
+
import { RegionCode } from 'google-libphonenumber';
|
|
24
25
|
import { RowData as RowData_2 } from '@tanstack/react-table';
|
|
25
26
|
import { SliderProps } from '@radix-ui/react-slider';
|
|
26
27
|
import { TabsContentProps } from '@radix-ui/react-tabs';
|
|
@@ -312,13 +313,13 @@ export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes
|
|
|
312
313
|
|
|
313
314
|
declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
314
315
|
error?: string;
|
|
316
|
+
helperText?: string;
|
|
317
|
+
helperTextClassName?: string;
|
|
318
|
+
isRequired?: boolean;
|
|
319
|
+
isSearch?: boolean;
|
|
315
320
|
label?: string | ReactNode;
|
|
316
321
|
labelClassName?: string;
|
|
317
322
|
theme?: Theme;
|
|
318
|
-
isRequired?: boolean;
|
|
319
|
-
isSearch?: boolean;
|
|
320
|
-
helperText?: string;
|
|
321
|
-
helperTextClassName?: string;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
declare const inputVariants: (props?: ({
|
|
@@ -487,7 +488,9 @@ declare type Option_5 = {
|
|
|
487
488
|
variant?: BadgeProps['variant'];
|
|
488
489
|
};
|
|
489
490
|
|
|
490
|
-
export declare const
|
|
491
|
+
export declare const PhoneNumberInput: FC<Props_2>;
|
|
492
|
+
|
|
493
|
+
export declare const PieChart: FC<Props_3>;
|
|
491
494
|
|
|
492
495
|
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
493
496
|
|
|
@@ -515,10 +518,26 @@ declare type Props = {
|
|
|
515
518
|
options: Option_4[];
|
|
516
519
|
};
|
|
517
520
|
|
|
521
|
+
declare type Props_2 = InputHTMLAttributes<HTMLInputElement> & {
|
|
522
|
+
name?: string;
|
|
523
|
+
label?: string;
|
|
524
|
+
isRequired?: boolean;
|
|
525
|
+
wrapperClassName?: string;
|
|
526
|
+
defaultCountryCode?: RegionCode;
|
|
527
|
+
showNameOnSearch?: boolean;
|
|
528
|
+
showFlagOnSearch?: boolean;
|
|
529
|
+
showInputFilter?: boolean;
|
|
530
|
+
disabled?: boolean;
|
|
531
|
+
labelClassName?: string;
|
|
532
|
+
helperText?: string;
|
|
533
|
+
helperTextClassName?: string;
|
|
534
|
+
error?: string;
|
|
535
|
+
};
|
|
536
|
+
|
|
518
537
|
/**
|
|
519
538
|
* Props for the PieChart component
|
|
520
539
|
*/
|
|
521
|
-
declare type
|
|
540
|
+
declare type Props_3 = {
|
|
522
541
|
/**
|
|
523
542
|
* Array of hexadecimal colors for the borders of the pie chart segments
|
|
524
543
|
* @default ['#FFFFFF', '#FFFFFF']
|
|
@@ -593,11 +612,11 @@ declare type Props_2 = {
|
|
|
593
612
|
subtitle?: string;
|
|
594
613
|
});
|
|
595
614
|
|
|
596
|
-
declare type
|
|
615
|
+
declare type Props_4<TData extends RowData> = CellContext<TData, string> & {
|
|
597
616
|
value?: string;
|
|
598
617
|
};
|
|
599
618
|
|
|
600
|
-
declare type
|
|
619
|
+
declare type Props_5<TData extends RowData_2> = VariantProps<typeof virtualizeTableVariants> & {
|
|
601
620
|
id: string | string[];
|
|
602
621
|
ariaLabel?: string;
|
|
603
622
|
columns: ColumnDef_2<TData, string>[];
|
|
@@ -646,7 +665,7 @@ declare type Props_4<TData extends RowData_2> = VariantProps<typeof virtualizeTa
|
|
|
646
665
|
showResetButton?: never;
|
|
647
666
|
});
|
|
648
667
|
|
|
649
|
-
declare type
|
|
668
|
+
declare type Props_6<TData extends RowData> = CellContext<TData, unknown> & {
|
|
650
669
|
actions: Action<TData>[];
|
|
651
670
|
iconTriggerButtonClassName?: string;
|
|
652
671
|
triggerButtonClassName?: string;
|
|
@@ -937,7 +956,7 @@ declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof to
|
|
|
937
956
|
}
|
|
938
957
|
|
|
939
958
|
declare const tooltipVariants: (props?: ({
|
|
940
|
-
position?: "left" | "right" | "
|
|
959
|
+
position?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
941
960
|
} & ClassProp) | undefined) => string;
|
|
942
961
|
|
|
943
962
|
export declare const Trigger: FC<TriggerProps>;
|
|
@@ -952,7 +971,7 @@ declare const triggerVariants: (props?: ({
|
|
|
952
971
|
variant?: "default" | "active" | "inactive" | null | undefined;
|
|
953
972
|
} & ClassProp) | undefined) => string;
|
|
954
973
|
|
|
955
|
-
export declare const TruncateText: <TData>({ getValue, value }:
|
|
974
|
+
export declare const TruncateText: <TData>({ getValue, value }: Props_4<TData>) => JSX.Element;
|
|
956
975
|
|
|
957
976
|
export declare const Typography: ForwardRefExoticComponent<Omit<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement | HTMLHeadingElement>>;
|
|
958
977
|
|
|
@@ -973,9 +992,9 @@ export declare const useToggle: (initialState?: boolean) => [boolean, (value?: b
|
|
|
973
992
|
|
|
974
993
|
export declare const VirtualizedTable: VirtualizedTableCompound;
|
|
975
994
|
|
|
976
|
-
declare type VirtualizedTableCompound = (<TData extends RowData>(props:
|
|
995
|
+
declare type VirtualizedTableCompound = (<TData extends RowData>(props: Props_5<TData>) => JSX_2.Element) & {
|
|
977
996
|
TruncateText: typeof TruncateText;
|
|
978
|
-
Actions: <TData extends RowData>(props:
|
|
997
|
+
Actions: <TData extends RowData>(props: Props_6<TData>) => JSX_2.Element | null;
|
|
979
998
|
displayName?: string;
|
|
980
999
|
};
|
|
981
1000
|
|
package/dist/index.js
CHANGED
|
@@ -2,109 +2,111 @@ import { cn as e } from "./utils/index.js";
|
|
|
2
2
|
import { Alert as p } from "./components/Alert/Alert.js";
|
|
3
3
|
import { AlertDialog as x } from "./components/AlertDialog/AlertDialog.js";
|
|
4
4
|
import { Autocomplete as a } from "./components/Autocomplete/Autocomplete.js";
|
|
5
|
-
import { Badge as
|
|
5
|
+
import { Badge as n } from "./components/Badge/Badge.js";
|
|
6
6
|
import { Breadcrumb as g } from "./components/Breadcrumb/Breadcrumb.js";
|
|
7
|
-
import { Button as
|
|
7
|
+
import { Button as T } from "./components/Button/Button.js";
|
|
8
8
|
import { Card as c } from "./components/Card/Card.js";
|
|
9
|
-
import { Checkbox as
|
|
9
|
+
import { Checkbox as h } from "./components/Checkbox/Checkbox.js";
|
|
10
10
|
import { DatePicker as C } from "./components/Datepicker/DatePicker.js";
|
|
11
11
|
import { Divider as v } from "./components/Divider/Divider.js";
|
|
12
|
-
import { Dropdown as
|
|
13
|
-
import { DropdownButton as
|
|
12
|
+
import { Dropdown as N } from "./components/Dropdown/Dropdown.js";
|
|
13
|
+
import { DropdownButton as S } from "./components/DropdownButton/DropdownButton.js";
|
|
14
14
|
import { Filter as w } from "./components/Filter/Filter.js";
|
|
15
15
|
import { BadgeMultiSelect as k } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
16
16
|
import { DateFilterDropdown as G } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
17
|
-
import { Input as
|
|
18
|
-
import { Loading as
|
|
17
|
+
import { Input as L } from "./components/Input/Input.js";
|
|
18
|
+
import { Loading as y } from "./components/Loading/Loading.js";
|
|
19
19
|
import { M as O } from "./Modal-Dpk-1N9W.js";
|
|
20
20
|
import { NumberInput as j } from "./components/NumberInput/NumberInput.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
21
|
+
import { PhoneNumberInput as E } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
22
|
+
import { PieChart as J } from "./components/PieChart/PieChart.js";
|
|
23
|
+
import { ProgressBar as Q } from "./components/ProgressBar/ProgressBar.js";
|
|
24
|
+
import { Radio as W } from "./components/Radio/Radio.js";
|
|
25
|
+
import { RadioCard as Y } from "./components/RadioCard/RadioCard.js";
|
|
26
|
+
import { RadioCardGroup as _ } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
27
|
+
import { RadioGroup as oo } from "./components/RadioGroup/RadioGroup.js";
|
|
28
|
+
import { Range as eo } from "./components/Range/Range.js";
|
|
29
|
+
import { Footer as po } from "./components/Sidebar/components/Footer/Footer.js";
|
|
30
|
+
import { Logo as xo } from "./components/Sidebar/components/Logo/Logo.js";
|
|
31
|
+
import { Navigation as ao } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
32
|
+
import { NavigationGroup as no } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
33
|
+
import { NavigationOption as uo } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
34
|
+
import { NavigationSeparator as lo } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
35
|
+
import { Sidebar as bo } from "./components/Sidebar/Sidebar.js";
|
|
35
36
|
import { Slider as so } from "./components/Slider/Slider.js";
|
|
36
|
-
import { Switch as
|
|
37
|
-
import { Table as
|
|
38
|
-
import { Content as
|
|
39
|
-
import { List as
|
|
40
|
-
import { Tabs as
|
|
41
|
-
import { Trigger as
|
|
42
|
-
import { Tag as
|
|
43
|
-
import { TagSelect as
|
|
44
|
-
import { TextArea as
|
|
45
|
-
import { TimePicker as
|
|
46
|
-
import { Toast as
|
|
47
|
-
import { Tooltip as
|
|
48
|
-
import { Typography as
|
|
49
|
-
import { TruncateText as
|
|
50
|
-
import { VirtualizedTable as
|
|
51
|
-
import { ThemeContext as
|
|
52
|
-
import { useTheme as
|
|
53
|
-
import { ThemeProvider as
|
|
54
|
-
import { useToggle as
|
|
37
|
+
import { Switch as Do } from "./components/Switch/Switch.js";
|
|
38
|
+
import { Table as Bo } from "./components/Table/Table.js";
|
|
39
|
+
import { Content as Po } from "./components/Tabs/components/Content.js";
|
|
40
|
+
import { List as Ro } from "./components/Tabs/components/List.js";
|
|
41
|
+
import { Tabs as Ao } from "./components/Tabs/Tabs.js";
|
|
42
|
+
import { Trigger as Fo } from "./components/Tabs/components/Trigger.js";
|
|
43
|
+
import { Tag as Io } from "./components/Tag/Tag.js";
|
|
44
|
+
import { TagSelect as Mo } from "./components/TagSelect/TagSelect.js";
|
|
45
|
+
import { TextArea as zo } from "./components/TextArea/TextArea.js";
|
|
46
|
+
import { TimePicker as Vo } from "./components/TimePicker/TimePicker.js";
|
|
47
|
+
import { Toast as qo } from "./components/Toast/Toast.js";
|
|
48
|
+
import { Tooltip as Ho } from "./components/Tooltip/Tooltip.js";
|
|
49
|
+
import { Typography as Ko } from "./components/Typography/Typography.js";
|
|
50
|
+
import { TruncateText as Uo } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
51
|
+
import { VirtualizedTable as Xo } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
52
|
+
import { ThemeContext as Zo } from "./contexts/theme.context.js";
|
|
53
|
+
import { useTheme as $o } from "./contexts/theme.hook.js";
|
|
54
|
+
import { ThemeProvider as rr } from "./contexts/theme.provider.js";
|
|
55
|
+
import { useToggle as tr } from "./hooks/useToggle.js";
|
|
55
56
|
export {
|
|
56
57
|
p as Alert,
|
|
57
58
|
x as AlertDialog,
|
|
58
59
|
a as Autocomplete,
|
|
59
|
-
|
|
60
|
+
n as Badge,
|
|
60
61
|
k as BadgeMultiSelect,
|
|
61
62
|
g as Breadcrumb,
|
|
62
|
-
|
|
63
|
+
T as Button,
|
|
63
64
|
c as Card,
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
h as Checkbox,
|
|
66
|
+
Po as Content,
|
|
66
67
|
G as DateFilterDropdown,
|
|
67
68
|
C as DatePicker,
|
|
68
69
|
v as Divider,
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
N as Dropdown,
|
|
71
|
+
S as DropdownButton,
|
|
71
72
|
w as Filter,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
po as Footer,
|
|
74
|
+
L as Input,
|
|
75
|
+
Ro as List,
|
|
76
|
+
y as Loading,
|
|
77
|
+
xo as Logo,
|
|
77
78
|
O as Modal,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
ao as Navigation,
|
|
80
|
+
no as NavigationGroup,
|
|
81
|
+
uo as NavigationOption,
|
|
82
|
+
lo as NavigationSeparator,
|
|
82
83
|
j as NumberInput,
|
|
83
|
-
E as
|
|
84
|
-
J as
|
|
85
|
-
Q as
|
|
86
|
-
W as
|
|
87
|
-
Y as
|
|
88
|
-
_ as
|
|
89
|
-
oo as
|
|
90
|
-
|
|
84
|
+
E as PhoneNumberInput,
|
|
85
|
+
J as PieChart,
|
|
86
|
+
Q as ProgressBar,
|
|
87
|
+
W as Radio,
|
|
88
|
+
Y as RadioCard,
|
|
89
|
+
_ as RadioCardGroup,
|
|
90
|
+
oo as RadioGroup,
|
|
91
|
+
eo as Range,
|
|
92
|
+
bo as Sidebar,
|
|
91
93
|
so as Slider,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
Do as Switch,
|
|
95
|
+
Bo as Table,
|
|
96
|
+
Ao as Tabs,
|
|
97
|
+
Io as Tag,
|
|
98
|
+
Mo as TagSelect,
|
|
99
|
+
zo as TextArea,
|
|
100
|
+
Zo as ThemeContext,
|
|
101
|
+
rr as ThemeProvider,
|
|
102
|
+
Vo as TimePicker,
|
|
103
|
+
qo as Toast,
|
|
104
|
+
Ho as Tooltip,
|
|
105
|
+
Fo as Trigger,
|
|
106
|
+
Uo as TruncateText,
|
|
107
|
+
Ko as Typography,
|
|
108
|
+
Xo as VirtualizedTable,
|
|
107
109
|
e as cn,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
$o as useTheme,
|
|
111
|
+
tr as useToggle
|
|
110
112
|
};
|