@konstructio/ui 0.1.2-alpha.44 → 0.1.2-alpha.46

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 (59) hide show
  1. package/dist/components/AlertDialog/AlertDialog.js +39 -37
  2. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  3. package/dist/components/AlertDialog/components/index.js +1 -1
  4. package/dist/components/Badge/Badge.js +23 -26
  5. package/dist/components/Badge/Badge.variants.js +1 -1
  6. package/dist/components/Button/Button.variants.js +108 -98
  7. package/dist/components/Checkbox/Checkbox.js +104 -100
  8. package/dist/components/Checkbox/Checkbox.variants.js +30 -7
  9. package/dist/components/Filter/Filter.js +1 -1
  10. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +9 -10
  11. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
  12. package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -32
  13. package/dist/components/Filter/events/index.js +3 -3
  14. package/dist/components/ImageUpload/ImageUpload.js +221 -0
  15. package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
  16. package/dist/components/Input/Input.variants.js +10 -2
  17. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +4 -4
  18. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +16 -7
  19. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +92 -74
  20. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +53 -29
  21. package/dist/components/PhoneNumberInput/components/Wrapper.js +139 -120
  22. package/dist/components/Select/Select.js +48 -0
  23. package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +3 -3
  24. package/dist/components/{Dropdown → Select}/components/List/List.js +48 -43
  25. package/dist/components/{Dropdown → Select}/components/List/List.variants.js +8 -5
  26. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.js +20 -20
  27. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +3 -2
  28. package/dist/components/{Dropdown → Select}/components/Wrapper.js +70 -70
  29. package/dist/components/Select/contexts/index.js +6 -0
  30. package/dist/components/{Dropdown/contexts/dropdown.context.js → Select/contexts/select.context.js} +2 -2
  31. package/dist/components/Select/contexts/select.hook.js +11 -0
  32. package/dist/components/Select/contexts/select.provider.js +58 -0
  33. package/dist/components/{Dropdown → Select}/hooks/useNavigationList.js +3 -3
  34. package/dist/components/{Dropdown/hooks/useDropdown.js → Select/hooks/useSelect.js} +33 -33
  35. package/dist/components/Switch/Switch.js +153 -125
  36. package/dist/components/Switch/Switch.variants.js +15 -6
  37. package/dist/components/Typography/Typography.js +25 -27
  38. package/dist/components/Typography/Typography.variants.js +2 -2
  39. package/dist/components/VirtualizedTable/components/Actions/Actions.js +14 -14
  40. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +10 -10
  41. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  42. package/dist/components/index.js +77 -74
  43. package/dist/{index-CPU02rhe.js → index-D6KzX_ef.js} +13 -12
  44. package/dist/index.d.ts +106 -60
  45. package/dist/index.js +109 -106
  46. package/dist/package.json +4 -4
  47. package/dist/styles.css +1 -1
  48. package/dist/ui/civo-theme.css +6 -5
  49. package/dist/ui/theme.css +27 -0
  50. package/dist/x-BXShoIAM.js +8 -0
  51. package/package.json +4 -4
  52. package/dist/components/Dropdown/Dropdown.js +0 -48
  53. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  54. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -58
  55. package/dist/components/Dropdown/contexts/index.js +0 -6
  56. /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
  57. /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
  58. /package/dist/components/{Dropdown → Select}/constants/index.js +0 -0
  59. /package/dist/components/{Dropdown → Select}/constants/pagination.js +0 -0
@@ -1,20 +1,20 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { Button as t } from "../../../Button/Button.js";
2
+ import { Button as a } from "../../../Button/Button.js";
3
3
  import { cn as e } from "../../../../utils/index.js";
4
4
  import { E as m } from "../../../../ellipsis-vertical-BVPtjl5f.js";
5
5
  const b = ({
6
- actions: a,
6
+ actions: t,
7
7
  wrapperClassName: l,
8
- triggerButtonClassName: s,
9
- iconTriggerButtonClassName: n,
8
+ triggerButtonClassName: n,
9
+ iconTriggerButtonClassName: s,
10
10
  wrapperActionsClassName: d,
11
11
  wrapperContentActionsClassName: c,
12
12
  ...h
13
- }) => a ? /* @__PURE__ */ i("div", { className: e("relative group", l), children: [
13
+ }) => t ? /* @__PURE__ */ i("div", { className: e("relative group", l), children: [
14
14
  /* @__PURE__ */ i(
15
- t,
15
+ a,
16
16
  {
17
- variant: "text",
17
+ variant: "link",
18
18
  shape: "circle",
19
19
  size: "large",
20
20
  className: e(
@@ -24,7 +24,7 @@ const b = ({
24
24
  "dark:text-metal-400",
25
25
  "dark:group-hover:text-aurora-500",
26
26
  "dark:group-hover:bg-aurora-900",
27
- s
27
+ n
28
28
  ),
29
29
  role: "presentation",
30
30
  children: [
@@ -32,7 +32,7 @@ const b = ({
32
32
  m,
33
33
  {
34
34
  "aria-hidden": "true",
35
- className: e("w-7 h-7", n)
35
+ className: e("w-7 h-7", s)
36
36
  }
37
37
  ),
38
38
  /* @__PURE__ */ r("span", { className: "sr-only", children: "Show Actions" })
@@ -46,7 +46,7 @@ const b = ({
46
46
  "absolute",
47
47
  "top-full",
48
48
  "right-0",
49
- "w-[215px]",
49
+ "w-53.75",
50
50
  "hidden",
51
51
  "group-hover:block",
52
52
  "z-10",
@@ -67,8 +67,8 @@ const b = ({
67
67
  "fade-in-0",
68
68
  c
69
69
  ),
70
- children: a.map(({ label: o, className: p, onClick: u }) => /* @__PURE__ */ r(
71
- t,
70
+ children: t.map(({ label: o, className: p, onClick: u }) => /* @__PURE__ */ r(
71
+ a,
72
72
  {
73
73
  className: e(
74
74
  "w-full",
@@ -87,10 +87,10 @@ const b = ({
87
87
  "px-6",
88
88
  p
89
89
  ),
90
- variant: "text",
90
+ variant: "link",
91
91
  asChild: !0,
92
92
  role: "presentation",
93
- children: /* @__PURE__ */ r(t, { onClick: () => u(h.row.original), children: o })
93
+ children: /* @__PURE__ */ r(a, { onClick: () => u(h.row.original), children: o })
94
94
  },
95
95
  o
96
96
  ))
@@ -1,15 +1,15 @@
1
1
  import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
2
  import { useMemo as l, useCallback as p } from "react";
3
- import { Dropdown as g } from "../../../Dropdown/Dropdown.js";
4
- import { DEFAULT_PAGE_SIZES as c } from "../../constants/pagination.js";
5
- import { useTableContext as d } from "../../contexts/table.hook.js";
3
+ import { Select as c } from "../../../Select/Select.js";
4
+ import { DEFAULT_PAGE_SIZES as g } from "../../constants/pagination.js";
5
+ import { useTableContext as x } from "../../contexts/table.hook.js";
6
6
  const u = ({
7
- pageSizes: r = c
7
+ pageSizes: r = g
8
8
  }) => {
9
- const { pageSize: n, onPageSize: t, handlePage: a } = d(), s = l(
9
+ const { pageSize: s, onPageSize: t, handlePage: a } = x(), m = l(
10
10
  () => r.map(String).map((e) => ({ label: e, value: e })),
11
11
  []
12
- ), m = p(
12
+ ), n = p(
13
13
  (e) => {
14
14
  t(Number(e)), a(0);
15
15
  },
@@ -18,13 +18,13 @@ const u = ({
18
18
  return /* @__PURE__ */ i("div", { className: "flex items-center gap-2 dark:text-metal-300", children: [
19
19
  /* @__PURE__ */ o("span", { children: "Show" }),
20
20
  /* @__PURE__ */ o(
21
- g,
21
+ c,
22
22
  {
23
23
  className: "w-22 [&>div>p]:text-xs bg-white",
24
24
  listItemClassName: "[&>p]:text-xs dark:bg-metal-800",
25
- options: s,
26
- value: n.toString(),
27
- onChange: ({ target: e }) => m(e.value)
25
+ options: m,
26
+ value: s.toString(),
27
+ onChange: ({ target: e }) => n(e.value)
28
28
  }
29
29
  )
30
30
  ] });
@@ -72,7 +72,7 @@ const N = ({ numberOfRows: i, table: o }) => {
72
72
  children: /* @__PURE__ */ r(
73
73
  m,
74
74
  {
75
- variant: "text",
75
+ variant: "link",
76
76
  shape: "circle",
77
77
  size: "large",
78
78
  disabled: !0,
@@ -3,102 +3,105 @@ import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
3
3
  import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
4
4
  import { Badge as a } from "./Badge/Badge.js";
5
5
  import { Breadcrumb as d } from "./Breadcrumb/Breadcrumb.js";
6
- import { Button as l } from "./Button/Button.js";
6
+ import { Button as n } from "./Button/Button.js";
7
7
  import { Card as u } from "./Card/Card.js";
8
8
  import { Checkbox as c } from "./Checkbox/Checkbox.js";
9
- import { DatePicker as D } from "./Datepicker/DatePicker.js";
9
+ import { DatePicker as b } from "./Datepicker/DatePicker.js";
10
10
  import { Divider as s } from "./Divider/Divider.js";
11
- import { Dropdown as C } from "./Dropdown/Dropdown.js";
12
- import { DropdownButton as h } from "./DropdownButton/DropdownButton.js";
13
- import { Filter as w } from "./Filter/Filter.js";
11
+ import { DropdownButton as C } from "./DropdownButton/DropdownButton.js";
12
+ import { Filter as h } from "./Filter/Filter.js";
13
+ import { ImageUpload as w } from "./ImageUpload/ImageUpload.js";
14
14
  import { Input as R } from "./Input/Input.js";
15
- import { Loading as M } from "./Loading/Loading.js";
16
- import { M as F } from "../Modal-CjC-CIJ8.js";
17
- import { MultiSelectDropdown as I } from "./MultiSelectDropdown/MultiSelectDropdown.js";
15
+ import { Loading as I } from "./Loading/Loading.js";
16
+ import { M as k } from "../Modal-CjC-CIJ8.js";
17
+ import { MultiSelectDropdown as G } from "./MultiSelectDropdown/MultiSelectDropdown.js";
18
18
  import { NumberInput as y } from "./NumberInput/NumberInput.js";
19
19
  import { PhoneNumberInput as O } from "./PhoneNumberInput/PhoneNumberInput.js";
20
- import { PieChart as j } from "./PieChart/PieChart.js";
21
- import { ProgressBar as E } from "./ProgressBar/ProgressBar.js";
22
- import { Radio as J } from "./Radio/Radio.js";
23
- import { RadioCard as Q } from "./RadioCard/RadioCard.js";
20
+ import { PieChart as V } from "./PieChart/PieChart.js";
21
+ import { ProgressBar as q } from "./ProgressBar/ProgressBar.js";
22
+ import { Radio as H } from "./Radio/Radio.js";
23
+ import { RadioCard as K } from "./RadioCard/RadioCard.js";
24
24
  import { RadioCardGroup as W } from "./RadioCardGroup/RadioCardGroup.js";
25
25
  import { RadioGroup as Y } from "./RadioGroup/RadioGroup.js";
26
26
  import { Range as _ } from "./Range/Range.js";
27
- import { Sidebar as oo } from "./Sidebar/Sidebar.js";
28
- import { Slider as eo } from "./Slider/Slider.js";
29
- import { Switch as po } from "./Switch/Switch.js";
30
- import { Table as xo } from "./Table/Table.js";
31
- import { Tabs as ao } from "./Tabs/Tabs.js";
32
- import { Tag as no } from "./Tag/Tag.js";
33
- import { TagSelect as go } from "./TagSelect/TagSelect.js";
34
- import { TextArea as To } from "./TextArea/TextArea.js";
35
- import { TimePicker as bo } from "./TimePicker/TimePicker.js";
36
- import { Toast as So } from "./Toast/Toast.js";
37
- import { Tooltip as Bo } from "./Tooltip/Tooltip.js";
38
- import { Typography as No } from "./Typography/Typography.js";
39
- import { VirtualizedTable as vo } from "./VirtualizedTable/VirtualizedTable.js";
40
- import { BadgeMultiSelect as Po } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
41
- import { DateFilterDropdown as Ao } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
42
- import { Footer as ko } from "./Sidebar/components/Footer/Footer.js";
43
- import { Logo as Go } from "./Sidebar/components/Logo/Logo.js";
44
- import { Navigation as Lo } from "./Sidebar/components/Navigation/Navigation.js";
45
- import { NavigationGroup as zo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
46
- import { NavigationOption as Vo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
47
- import { NavigationSeparator as qo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
48
- import { Content as Ho } from "./Tabs/components/Content.js";
49
- import { List as Ko } from "./Tabs/components/List.js";
50
- import { Trigger as Uo } from "./Tabs/components/Trigger.js";
51
- import { TruncateText as Xo } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
27
+ import { Select as oo, Select as ro } from "./Select/Select.js";
28
+ import { Sidebar as to } from "./Sidebar/Sidebar.js";
29
+ import { Slider as mo } from "./Slider/Slider.js";
30
+ import { Switch as fo } from "./Switch/Switch.js";
31
+ import { Table as io } from "./Table/Table.js";
32
+ import { Tabs as no } from "./Tabs/Tabs.js";
33
+ import { Tag as uo } from "./Tag/Tag.js";
34
+ import { TagSelect as co } from "./TagSelect/TagSelect.js";
35
+ import { TextArea as bo } from "./TextArea/TextArea.js";
36
+ import { TimePicker as so } from "./TimePicker/TimePicker.js";
37
+ import { Toast as Co } from "./Toast/Toast.js";
38
+ import { Tooltip as ho } from "./Tooltip/Tooltip.js";
39
+ import { Typography as wo } from "./Typography/Typography.js";
40
+ import { VirtualizedTable as Ro } from "./VirtualizedTable/VirtualizedTable.js";
41
+ import { BadgeMultiSelect as Io } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
42
+ import { DateFilterDropdown as ko } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
43
+ import { Footer as Go } from "./Sidebar/components/Footer/Footer.js";
44
+ import { Logo as yo } from "./Sidebar/components/Logo/Logo.js";
45
+ import { Navigation as Oo } from "./Sidebar/components/Navigation/Navigation.js";
46
+ import { NavigationGroup as Vo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
47
+ import { NavigationOption as qo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
48
+ import { NavigationSeparator as Ho } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
49
+ import { Content as Ko } from "./Tabs/components/Content.js";
50
+ import { List as Wo } from "./Tabs/components/List.js";
51
+ import { Trigger as Yo } from "./Tabs/components/Trigger.js";
52
+ import { TruncateText as _o } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
52
53
  export {
53
54
  e as Alert,
54
55
  p as AlertDialog,
55
56
  x as Autocomplete,
56
57
  a as Badge,
57
- Po as BadgeMultiSelect,
58
+ Io as BadgeMultiSelect,
58
59
  d as Breadcrumb,
59
- l as Button,
60
+ n as Button,
60
61
  u as Card,
61
62
  c as Checkbox,
62
- Ho as Content,
63
- Ao as DateFilterDropdown,
64
- D as DatePicker,
63
+ Ko as Content,
64
+ ko as DateFilterDropdown,
65
+ b as DatePicker,
65
66
  s as Divider,
66
- C as Dropdown,
67
- h as DropdownButton,
68
- w as Filter,
69
- ko as Footer,
67
+ oo as Dropdown,
68
+ C as DropdownButton,
69
+ h as Filter,
70
+ Go as Footer,
71
+ w as ImageUpload,
70
72
  R as Input,
71
- Ko as List,
72
- M as Loading,
73
- Go as Logo,
74
- F as Modal,
75
- I as MultiSelectDropdown,
76
- Lo as Navigation,
77
- zo as NavigationGroup,
78
- Vo as NavigationOption,
79
- qo as NavigationSeparator,
73
+ Wo as List,
74
+ I as Loading,
75
+ yo as Logo,
76
+ k as Modal,
77
+ G as MultiSelectDropdown,
78
+ Oo as Navigation,
79
+ Vo as NavigationGroup,
80
+ qo as NavigationOption,
81
+ Ho as NavigationSeparator,
80
82
  y as NumberInput,
81
83
  O as PhoneNumberInput,
82
- j as PieChart,
83
- E as ProgressBar,
84
- J as Radio,
85
- Q as RadioCard,
84
+ V as PieChart,
85
+ q as ProgressBar,
86
+ H as Radio,
87
+ K as RadioCard,
86
88
  W as RadioCardGroup,
87
89
  Y as RadioGroup,
88
90
  _ as Range,
89
- oo as Sidebar,
90
- eo as Slider,
91
- po as Switch,
92
- xo as Table,
93
- ao as Tabs,
94
- no as Tag,
95
- go as TagSelect,
96
- To as TextArea,
97
- bo as TimePicker,
98
- So as Toast,
99
- Bo as Tooltip,
100
- Uo as Trigger,
101
- Xo as TruncateText,
102
- No as Typography,
103
- vo as VirtualizedTable
91
+ ro as Select,
92
+ to as Sidebar,
93
+ mo as Slider,
94
+ fo as Switch,
95
+ io as Table,
96
+ no as Tabs,
97
+ uo as Tag,
98
+ co as TagSelect,
99
+ bo as TextArea,
100
+ so as TimePicker,
101
+ Co as Toast,
102
+ ho as Tooltip,
103
+ Yo as Trigger,
104
+ _o as TruncateText,
105
+ wo as Typography,
106
+ Ro as VirtualizedTable
104
107
  };
@@ -40,7 +40,7 @@ var Q = "AlertDialogOverlay", y = l.forwardRef(
40
40
  y.displayName = Q;
41
41
  var n = "AlertDialogContent", [U, X] = z(n), Z = /* @__PURE__ */ V("AlertDialogContent"), N = l.forwardRef(
42
42
  (r, e) => {
43
- const { __scopeAlertDialog: o, children: t, ...a } = r, d = s(o), p = l.useRef(null), P = u(e, p), g = l.useRef(null);
43
+ const { __scopeAlertDialog: o, children: t, ...a } = r, c = s(o), d = l.useRef(null), P = u(e, d), g = l.useRef(null);
44
44
  return /* @__PURE__ */ i(
45
45
  G,
46
46
  {
@@ -51,17 +51,17 @@ var n = "AlertDialogContent", [U, X] = z(n), Z = /* @__PURE__ */ V("AlertDialogC
51
51
  W,
52
52
  {
53
53
  role: "alertdialog",
54
- ...d,
54
+ ...c,
55
55
  ...a,
56
56
  ref: P,
57
- onOpenAutoFocus: M(a.onOpenAutoFocus, (c) => {
58
- c.preventDefault(), g.current?.focus({ preventScroll: !0 });
57
+ onOpenAutoFocus: M(a.onOpenAutoFocus, (p) => {
58
+ p.preventDefault(), g.current?.focus({ preventScroll: !0 });
59
59
  }),
60
- onPointerDownOutside: (c) => c.preventDefault(),
61
- onInteractOutside: (c) => c.preventDefault(),
60
+ onPointerDownOutside: (p) => p.preventDefault(),
61
+ onInteractOutside: (p) => p.preventDefault(),
62
62
  children: [
63
63
  /* @__PURE__ */ i(Z, { children: t }),
64
- /* @__PURE__ */ i(re, { contentRef: p })
64
+ /* @__PURE__ */ i(re, { contentRef: d })
65
65
  ]
66
66
  }
67
67
  ) })
@@ -91,8 +91,8 @@ var ee = "AlertDialogAction", E = l.forwardRef(
91
91
  E.displayName = ee;
92
92
  var T = "AlertDialogCancel", b = l.forwardRef(
93
93
  (r, e) => {
94
- const { __scopeAlertDialog: o, ...t } = r, { cancelRef: a } = X(T, o), d = s(o), p = u(e, a);
95
- return /* @__PURE__ */ i(f, { ...d, ...t, ref: p });
94
+ const { __scopeAlertDialog: o, ...t } = r, { cancelRef: a } = X(T, o), c = s(o), d = u(e, a);
95
+ return /* @__PURE__ */ i(f, { ...c, ...t, ref: d });
96
96
  }
97
97
  );
98
98
  b.displayName = T;
@@ -110,14 +110,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
110
110
  ) || console.warn(e);
111
111
  }, [e, r]), null;
112
112
  }, de = m, oe = D, ge = _, ue = y, Ae = N, fe = E, ve = b, me = h, De = S;
113
- const _e = I(({ "data-theme": r, className: e, text: o, onOpen: t }, a) => /* @__PURE__ */ i(oe, { asChild: !0, children: /* @__PURE__ */ i(
113
+ const _e = I(({ "data-theme": r, className: e, text: o, variant: t, onOpen: a }, c) => /* @__PURE__ */ i(oe, { asChild: !0, children: /* @__PURE__ */ i(
114
114
  k,
115
115
  {
116
- ref: a,
116
+ ref: c,
117
117
  type: "button",
118
+ variant: t,
118
119
  "data-theme": r,
119
120
  className: q(e),
120
- onClick: t,
121
+ onClick: a,
121
122
  children: o
122
123
  }
123
124
  ) }));
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { AlertDialogProps as AlertDialogProps_2 } from '@radix-ui/react-alert-dialog';
2
2
  import { ButtonHTMLAttributes } from 'react';
3
3
  import { CellContext } from '@tanstack/react-table';
4
+ import { ChangeEvent } from 'react';
4
5
  import { CheckboxProps as CheckboxProps_2 } from '@radix-ui/react-checkbox';
5
6
  import { ClassProp } from 'class-variance-authority/types';
6
7
  import { ClassValue } from 'clsx';
@@ -43,6 +44,7 @@ declare interface AlertDialogProps extends PropsWithChildren, AlertDialogProps_2
43
44
  buttonConfirm?: ButtonConfirmProps;
44
45
  buttonTriggerText?: string;
45
46
  buttonTriggerClassName?: string;
47
+ buttonTriggerVariant?: ButtonProps['variant'];
46
48
  className?: string;
47
49
  description?: string | ReactNode;
48
50
  showCancelButton?: boolean;
@@ -73,7 +75,7 @@ declare interface AutocompleteProps extends VariantProps<typeof autocompleteVari
73
75
  label?: string;
74
76
  labelClassName?: string;
75
77
  name?: string;
76
- options: Option_2[];
78
+ options: Option_3[];
77
79
  placeholder?: string;
78
80
  placeHolderEmptyValues?: string | ReactNode;
79
81
  placeHolderEmptyValuesClassName?: string;
@@ -144,7 +146,7 @@ declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
144
146
  }
145
147
 
146
148
  declare const buttonVariants: (props?: ({
147
- variant?: "danger" | "text" | "primary" | "secondary" | null | undefined;
149
+ variant?: "danger" | "link" | "primary" | "secondary" | "tertiary" | null | undefined;
148
150
  shape?: "circle" | null | undefined;
149
151
  version?: "default" | "alternate" | null | undefined;
150
152
  disabled?: boolean | null | undefined;
@@ -216,59 +218,8 @@ declare const datePickerVariants: (props?: ClassProp | undefined) => string;
216
218
 
217
219
  export declare const Divider: FC<HTMLAttributes<HTMLDivElement>>;
218
220
 
219
- export declare const Dropdown: FC<DropdownProps>;
220
-
221
221
  export declare const DropdownButton: FC<Props>;
222
222
 
223
- declare type DropdownProps = VariantProps<typeof dropdownVariants> & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> & {
224
- additionalOptions?: ReactNode[] | string[];
225
- className?: string;
226
- disabled?: boolean;
227
- error?: string;
228
- helperText?: string;
229
- highlightSearch?: boolean;
230
- iconClassName?: string;
231
- inputClassName?: string;
232
- isLoading?: boolean;
233
- isRequired?: boolean;
234
- label?: string;
235
- labelClassName?: string;
236
- listClassName?: string;
237
- listItemClassName?: string;
238
- listItemSecondRowClassName?: string;
239
- mainWrapperClassName?: string;
240
- options: Option_3[];
241
- searchable?: boolean;
242
- showSearchIcon?: boolean;
243
- theme?: Theme;
244
- value?: string;
245
- wrapperClassName?: string;
246
- errorClassName?: string;
247
- helperTextClassName?: string;
248
- onBlur?: VoidFunction;
249
- onChange?: OnChangeFn;
250
- onSearchChange?: (searchTerm: string) => void;
251
- noOptionsText?: string;
252
- } & ({
253
- isInfiniteScrollEnabled: true;
254
- onFetchMoreOptions: (params: {
255
- page: number;
256
- pageSize: number;
257
- termOfSearch?: string;
258
- }) => Promise<{
259
- data: Option_3[];
260
- hasMore: boolean;
261
- }>;
262
- } | {
263
- isInfiniteScrollEnabled?: false | undefined;
264
- onFetchMoreOptions?: never;
265
- });
266
-
267
- declare const dropdownVariants: (props?: ({
268
- hasError?: boolean | null | undefined;
269
- disabled?: boolean | null | undefined;
270
- } & ClassProp) | undefined) => string;
271
-
272
223
  export declare const Filter: FilterComponentProps;
273
224
 
274
225
  declare type FilterAction = {
@@ -311,6 +262,44 @@ declare const headVariants: (props?: ClassProp | undefined) => string;
311
262
 
312
263
  declare type HexColor = `#${string}`;
313
264
 
265
+ export declare const ImageUpload: {
266
+ ({ className, error, fileName, fileSize, fileUrl, helperText, isRequired, label, labelClassName, name, onChange, onRemove, status, theme, uploadButtonText, accept, maxSize, }: ImageUploadProps): JSX.Element;
267
+ displayName: string;
268
+ };
269
+
270
+ declare interface ImageUploadProps extends Omit<VariantProps<typeof imageUploadVariants>, 'status'> {
271
+ className?: string;
272
+ error?: string;
273
+ fileName?: string;
274
+ fileSize?: string;
275
+ fileUrl?: string;
276
+ helperText?: string;
277
+ isRequired?: boolean;
278
+ label?: string | ReactNode;
279
+ labelClassName?: string;
280
+ name?: string;
281
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
282
+ onRemove?: () => void;
283
+ status?: ImageUploadStatusType;
284
+ theme?: Theme;
285
+ uploadButtonText?: string;
286
+ accept?: string;
287
+ maxSize?: number;
288
+ }
289
+
290
+ declare enum ImageUploadStatus {
291
+ Default = "default",
292
+ Uploading = "uploading",
293
+ Complete = "complete",
294
+ Error = "error"
295
+ }
296
+
297
+ declare type ImageUploadStatusType = ImageUploadStatus;
298
+
299
+ declare const imageUploadVariants: (props?: ({
300
+ status?: "error" | "default" | "uploading" | "complete" | null | undefined;
301
+ } & ClassProp) | undefined) => string;
302
+
314
303
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
315
304
 
316
305
  declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
@@ -509,10 +498,6 @@ declare type OnChangeFn_2 = (params: {
509
498
  }) => void;
510
499
 
511
500
  declare type Option_2 = {
512
- value: string;
513
- };
514
-
515
- declare type Option_3 = {
516
501
  label: string;
517
502
  subLabel?: string | ReactNode;
518
503
  leftIcon?: ReactNode | string;
@@ -524,6 +509,10 @@ declare type Option_3 = {
524
509
  value: string;
525
510
  };
526
511
 
512
+ declare type Option_3 = {
513
+ value: string;
514
+ };
515
+
527
516
  declare type Option_4 = {
528
517
  label: string | ReactNode;
529
518
  onClick?: VoidFunction;
@@ -815,6 +804,59 @@ declare const rowVariants: (props?: ({
815
804
  isSelected?: boolean | null | undefined;
816
805
  } & ClassProp) | undefined) => string;
817
806
 
807
+ declare const Select: FC<SelectProps>;
808
+ export { Select as Dropdown }
809
+ export { Select }
810
+
811
+ declare type SelectProps = VariantProps<typeof selectVariants> & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> & {
812
+ additionalOptions?: ReactNode[] | string[];
813
+ className?: string;
814
+ disabled?: boolean;
815
+ error?: string;
816
+ errorClassName?: string;
817
+ helperText?: string;
818
+ helperTextClassName?: string;
819
+ highlightSearch?: boolean;
820
+ iconClassName?: string;
821
+ inputClassName?: string;
822
+ isLoading?: boolean;
823
+ isRequired?: boolean;
824
+ label?: string;
825
+ labelClassName?: string;
826
+ listClassName?: string;
827
+ listItemClassName?: string;
828
+ listItemSecondRowClassName?: string;
829
+ mainWrapperClassName?: string;
830
+ noOptionsText?: string;
831
+ options: Option_2[];
832
+ searchable?: boolean;
833
+ showSearchIcon?: boolean;
834
+ theme?: Theme;
835
+ value?: string;
836
+ wrapperClassName?: string;
837
+ onBlur?: VoidFunction;
838
+ onChange?: OnChangeFn;
839
+ onSearchChange?: (searchTerm: string) => void;
840
+ } & ({
841
+ isInfiniteScrollEnabled: true;
842
+ onFetchMoreOptions: (params: {
843
+ page: number;
844
+ pageSize: number;
845
+ termOfSearch?: string;
846
+ }) => Promise<{
847
+ data: Option_2[];
848
+ hasMore: boolean;
849
+ }>;
850
+ } | {
851
+ isInfiniteScrollEnabled?: false | undefined;
852
+ onFetchMoreOptions?: never;
853
+ });
854
+
855
+ declare const selectVariants: (props?: ({
856
+ hasError?: boolean | null | undefined;
857
+ disabled?: boolean | null | undefined;
858
+ } & ClassProp) | undefined) => string;
859
+
818
860
  export declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
819
861
 
820
862
  declare type SidebarChildrenProps = {
@@ -865,8 +907,11 @@ declare interface SwitchProps extends VariantProps<typeof switchVariants> {
865
907
  alignment?: 'horizontal' | 'vertical';
866
908
  className?: string;
867
909
  defaultChecked?: boolean;
868
- label?: string;
910
+ disabled?: boolean;
869
911
  helperText?: string;
912
+ helperTextClassName?: string;
913
+ label?: string;
914
+ labelClassName?: string;
870
915
  name?: string;
871
916
  theme?: Theme;
872
917
  thumbClassName?: string;
@@ -1024,13 +1069,14 @@ declare const triggerVariants: (props?: ({
1024
1069
 
1025
1070
  export declare const TruncateText: <TData>({ getValue, value }: Props_4<TData>) => JSX.Element;
1026
1071
 
1027
- export declare const Typography: ForwardRefExoticComponent<Omit<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement | HTMLHeadingElement>>;
1072
+ export declare const Typography: ForwardRefExoticComponent<Omit<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement & HTMLHeadingElement & HTMLLabelElement>>;
1028
1073
 
1029
1074
  declare interface TypographyProps extends HTMLAttributes<ComponentRef<HeadingTag | 'p' | 'span'>>, VariantProps<typeof typographyVariants> {
1030
1075
  ref?: Ref<HTMLHeadingElement | HTMLParagraphElement | HTMLSpanElement>;
1031
1076
  children: ReactNode;
1032
- component?: HeadingTag | 'p' | 'span';
1077
+ component?: HeadingTag | 'p' | 'span' | 'label';
1033
1078
  theme?: Theme;
1079
+ htmlFor?: string;
1034
1080
  }
1035
1081
 
1036
1082
  declare const typographyVariants: (props?: ({