@yuno-payments/dashboard-design-system 0.0.167 → 0.0.170

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 (161) hide show
  1. package/dist/components/atoms/access-denied-alert/access-denied-alert.d.ts +0 -16
  2. package/dist/components/atoms/accordion/accordion.d.ts +0 -66
  3. package/dist/components/atoms/alert/alert.d.ts +1 -26
  4. package/dist/components/atoms/alert/alert.js +8 -9
  5. package/dist/components/atoms/avatar/avatar-group.d.ts +0 -28
  6. package/dist/components/atoms/avatar/avatar.d.ts +0 -25
  7. package/dist/components/atoms/avatar/avatar.js +9 -9
  8. package/dist/components/atoms/badge/badge.d.ts +2 -30
  9. package/dist/components/atoms/badge/badge.js +11 -27
  10. package/dist/components/atoms/button/button.d.ts +0 -44
  11. package/dist/components/atoms/card/card.d.ts +3 -137
  12. package/dist/components/atoms/card/card.js +28 -56
  13. package/dist/components/atoms/checkbox/checkbox.d.ts +2 -38
  14. package/dist/components/atoms/checkbox/checkbox.js +27 -61
  15. package/dist/components/atoms/combobox/combobox.d.ts +0 -18
  16. package/dist/components/atoms/combobox/combobox.js +41 -41
  17. package/dist/components/atoms/combobox/types.d.ts +1 -90
  18. package/dist/components/atoms/currency-field/currency-field.d.ts +0 -38
  19. package/dist/components/atoms/currency-field/currency-field.js +19 -22
  20. package/dist/components/atoms/date-picker/date-picker.d.ts +0 -15
  21. package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +0 -15
  22. package/dist/components/atoms/dots-menu/dots-menu.d.ts +0 -16
  23. package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
  24. package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +0 -52
  25. package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +0 -50
  26. package/dist/components/atoms/field/field.d.ts +0 -55
  27. package/dist/components/atoms/field/field.js +46 -53
  28. package/dist/components/atoms/filter/filter-date-range.d.ts +2 -12
  29. package/dist/components/atoms/filter/filter-date-range.js +168 -203
  30. package/dist/components/atoms/filter/filter.d.ts +0 -6
  31. package/dist/components/atoms/filter/filter.js +76 -91
  32. package/dist/components/atoms/filter/index.d.ts +1 -1
  33. package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +2 -208
  34. package/dist/components/atoms/filter-dropdown/filter-dropdown.js +160 -214
  35. package/dist/components/atoms/icon/icon-list.d.ts +0 -5
  36. package/dist/components/atoms/icon/icon-list.js +384 -394
  37. package/dist/components/atoms/icon/icon.d.ts +0 -29
  38. package/dist/components/atoms/index.d.ts +2 -3
  39. package/dist/components/atoms/label/index.d.ts +1 -1
  40. package/dist/components/atoms/link/link.d.ts +0 -20
  41. package/dist/components/atoms/multi-select/multi-select.d.ts +1 -1
  42. package/dist/components/atoms/multi-select/multi-select.js +6 -6
  43. package/dist/components/atoms/multi-values-field/multi-values-field.d.ts +0 -16
  44. package/dist/components/atoms/multi-values-field/multi-values-field.js +87 -109
  45. package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +0 -81
  46. package/dist/components/atoms/otp-field/otp-field.d.ts +0 -32
  47. package/dist/components/atoms/password-field/password-field.d.ts +0 -23
  48. package/dist/components/atoms/password-field/password-field.js +1 -1
  49. package/dist/components/atoms/progress/progress.d.ts +0 -15
  50. package/dist/components/atoms/protected-field/protected-field.d.ts +0 -10
  51. package/dist/components/atoms/protected-field/protected-field.types.d.ts +0 -14
  52. package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
  53. package/dist/components/atoms/radio-group/radio-group.d.ts +1 -50
  54. package/dist/components/atoms/radio-group/radio-group.js +12 -13
  55. package/dist/components/atoms/search-field/search-field.d.ts +0 -14
  56. package/dist/components/atoms/search-field/search-field.js +17 -17
  57. package/dist/components/atoms/search-field/search-field.types.d.ts +0 -57
  58. package/dist/components/atoms/select/index.d.ts +0 -2
  59. package/dist/components/atoms/select/select.d.ts +1 -83
  60. package/dist/components/atoms/select/select.js +21 -21
  61. package/dist/components/atoms/separator/separator.d.ts +0 -17
  62. package/dist/components/atoms/skeleton/index.d.ts +0 -9
  63. package/dist/components/atoms/switch/switch.d.ts +2 -56
  64. package/dist/components/atoms/switch/switch.js +32 -64
  65. package/dist/components/atoms/tabs/index.d.ts +0 -16
  66. package/dist/components/atoms/textarea/textarea.d.ts +0 -32
  67. package/dist/components/atoms/textarea/textarea.js +1 -1
  68. package/dist/components/atoms/time-picker/time-picker.d.ts +2 -73
  69. package/dist/components/atoms/time-picker/time-picker.js +3 -218
  70. package/dist/components/atoms/toaster/index.d.ts +0 -15
  71. package/dist/components/atoms/toggle-group/toggle-group.d.ts +1 -26
  72. package/dist/components/atoms/toggle-group/toggle-group.js +14 -15
  73. package/dist/components/atoms/tooltip/tooltip.d.ts +2 -53
  74. package/dist/components/atoms/typography/typography.d.ts +0 -18
  75. package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +0 -50
  76. package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
  77. package/dist/components/molecules/dialog-content/dialog-content.d.ts +0 -16
  78. package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +0 -20
  79. package/dist/components/molecules/dialog-header/dialog-header.d.ts +0 -31
  80. package/dist/components/molecules/empty/empty-icon.js +6 -6
  81. package/dist/components/molecules/empty/empty.d.ts +1 -16
  82. package/dist/components/molecules/empty/empty.js +34 -37
  83. package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +0 -17
  84. package/dist/components/molecules/pagination/pagination.d.ts +0 -49
  85. package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +0 -41
  86. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
  87. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
  88. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.d.ts +0 -18
  89. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
  90. package/dist/components/organisms/data-table/components/data-table-body.d.ts +0 -18
  91. package/dist/components/organisms/data-table/components/data-table-header.d.ts +0 -12
  92. package/dist/components/organisms/data-table/components/data-table-header.js +7 -7
  93. package/dist/components/organisms/data-table/components/states/data-table-loading.d.ts +0 -24
  94. package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
  95. package/dist/components/organisms/data-table/data-table.d.ts +4 -133
  96. package/dist/components/organisms/data-table/data-table.js +100 -132
  97. package/dist/components/organisms/data-table/data-table.types.d.ts +26 -35
  98. package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +41 -57
  99. package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +2 -8
  100. package/dist/components/organisms/data-table/hooks/use-data-table-state.js +47 -82
  101. package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +2 -8
  102. package/dist/components/organisms/data-table/utils/data-table-constants.js +10 -16
  103. package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +0 -1652
  104. package/dist/components/organisms/data-table/utils/data-table-styles.js +14 -29
  105. package/dist/components/organisms/dialog/dialog.d.ts +1 -67
  106. package/dist/components/organisms/dialog/dialog.js +61 -78
  107. package/dist/components/organisms/index.d.ts +0 -2
  108. package/dist/components/organisms/sheet/sheet.d.ts +0 -69
  109. package/dist/components/organisms/sheet/sheet.js +33 -34
  110. package/dist/index.css +1 -1
  111. package/dist/index.d.ts +0 -2
  112. package/dist/index.js +162 -173
  113. package/dist/vendor/shadcn/avatar.js +19 -19
  114. package/dist/vendor/shadcn/badge.js +15 -15
  115. package/dist/vendor/shadcn/card.js +7 -7
  116. package/dist/vendor/shadcn/date-picker.d.ts +2 -2
  117. package/dist/vendor/shadcn/date-picker.js +1 -1
  118. package/dist/vendor/shadcn/date-range-picker.d.ts +2 -2
  119. package/dist/vendor/shadcn/date-range-picker.js +1 -1
  120. package/dist/vendor/shadcn/dialog.js +2 -2
  121. package/dist/vendor/shadcn/input-group.js +17 -17
  122. package/dist/vendor/shadcn/input.js +7 -7
  123. package/dist/vendor/shadcn/popover.js +1 -1
  124. package/dist/vendor/shadcn/select.js +2 -2
  125. package/dist/vendor/shadcn/sonner.d.ts +1 -26
  126. package/dist/vendor/shadcn/sonner.js +8 -12
  127. package/dist/vendor/shadcn/table.js +30 -30
  128. package/dist/vendor/shadcn/textarea.js +9 -9
  129. package/dist/vendor/shadcn/time-picker.d.ts +2 -1
  130. package/dist/vendor/shadcn/time-picker.js +23 -17
  131. package/dist/vendor/shadcn/toggle.js +13 -13
  132. package/dist/vendor/shadcn/tooltip.js +15 -25
  133. package/package.json +1 -1
  134. package/dist/components/atoms/icon/aida-logo.d.ts +0 -3
  135. package/dist/components/atoms/icon/aida-logo.js +0 -64
  136. package/dist/components/atoms/label/label.d.ts +0 -11
  137. package/dist/components/atoms/label/label.js +0 -28
  138. package/dist/components/atoms/loading/index.d.ts +0 -1
  139. package/dist/components/atoms/loading/loading.d.ts +0 -39
  140. package/dist/components/atoms/loading/loading.js +0 -37
  141. package/dist/components/atoms/select/search-select.d.ts +0 -22
  142. package/dist/components/atoms/select/search-select.js +0 -201
  143. package/dist/components/organisms/tutorial/index.d.ts +0 -2
  144. package/dist/components/organisms/tutorial/tutorial.d.ts +0 -16
  145. package/dist/components/organisms/tutorial/tutorial.js +0 -114
  146. package/dist/components/organisms/tutorial/tutorial.types.d.ts +0 -15
  147. package/dist/hooks/index.d.ts +0 -3
  148. package/dist/hooks/use-body-scroll-lock.d.ts +0 -13
  149. package/dist/hooks/use-escape-key.d.ts +0 -14
  150. package/dist/hooks/use-media-query.d.ts +0 -20
  151. package/dist/hooks/use-media-query.js +0 -21
  152. package/dist/lib/notification-alert.d.ts +0 -42
  153. package/dist/lib/notification-alert.js +0 -75
  154. package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +0 -8
  155. package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +0 -8
  156. package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +0 -8
  157. package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +0 -8
  158. package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +0 -30
  159. package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +0 -36
  160. package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +0 -36
  161. package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +0 -30
@@ -1,8 +1,8 @@
1
1
  import { j as r } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as u } from "react";
3
- import { cn as s } from "../../../lib/utils.js";
2
+ import { forwardRef as f } from "react";
3
+ import { cn as n } from "../../../lib/utils.js";
4
4
  import { cva as l } from "../../../node_modules/class-variance-authority/dist/index.js";
5
- const p = l("", {
5
+ const u = l("", {
6
6
  variants: {
7
7
  size: {
8
8
  xs: "text-xs",
@@ -39,35 +39,32 @@ const p = l("", {
39
39
  defaultVariants: {
40
40
  size: "sm"
41
41
  }
42
- }), g = u(
42
+ }), p = f(
43
43
  ({
44
44
  value: t,
45
45
  currency: e = "USD",
46
- locales: a = "en",
47
- size: n,
48
- fontWeight: i = "bold",
46
+ locales: o = "en",
47
+ size: s = "sm",
48
+ fontWeight: a = "bold",
49
49
  className: m,
50
- showCurrencyCode: o = !0,
51
- valueClassName: x,
52
- codeClassName: c
53
- }, d) => {
50
+ showCurrencyCode: i = !0
51
+ }, x) => {
54
52
  if (!t && t !== 0) return null;
55
- const f = new Intl.NumberFormat(a, {
53
+ const c = new Intl.NumberFormat(o, {
56
54
  style: "currency",
57
55
  currency: e.length === 3 ? e : "USD",
58
56
  currencyDisplay: "narrowSymbol",
59
57
  minimumFractionDigits: 0,
60
58
  maximumFractionDigits: 20
61
- }).format(t);
62
- return /* @__PURE__ */ r.jsxs("div", { ref: d, className: s("flex items-center gap-1", m), children: [
63
- /* @__PURE__ */ r.jsx("span", { className: s(p({ size: n, fontWeight: i }), x), children: f }),
64
- o && /* @__PURE__ */ r.jsx(
59
+ }).format(t), d = s === "3xl" ? "lg" : s === "2xl" ? "base" : "sm";
60
+ return /* @__PURE__ */ r.jsxs("div", { ref: x, className: n("flex items-center gap-1", m), children: [
61
+ /* @__PURE__ */ r.jsx("span", { className: n(u({ size: s, fontWeight: a })), children: c }),
62
+ i && /* @__PURE__ */ r.jsx(
65
63
  "span",
66
64
  {
67
- className: s(
68
- b({ size: n }),
69
- "text-muted-foreground",
70
- c
65
+ className: n(
66
+ b({ size: d }),
67
+ "text-muted-foreground font-bold"
71
68
  ),
72
69
  children: e?.toUpperCase()
73
70
  }
@@ -75,7 +72,7 @@ const p = l("", {
75
72
  ] });
76
73
  }
77
74
  );
78
- g.displayName = "CurrencyField";
75
+ p.displayName = "CurrencyField";
79
76
  export {
80
- g as CurrencyField
77
+ p as CurrencyField
81
78
  };
@@ -1,19 +1,4 @@
1
1
  import { DatePicker as DatePickerPrimitive, DatePickerProps as DatePickerPrimitiveProps } from '../../../vendor/shadcn/date-picker';
2
- /**
3
- * Props for the DatePicker component
4
- */
5
2
  export type DatePickerProps = DatePickerPrimitiveProps;
6
- /**
7
- * Calendar-based date picker for selecting a single date.
8
- *
9
- * @example
10
- * ```tsx
11
- * <DatePicker
12
- * value={selectedDate}
13
- * onChange={(date) => setSelectedDate(date)}
14
- * placeholder="Pick a date"
15
- * />
16
- * ```
17
- */
18
3
  declare const DatePicker: typeof DatePickerPrimitive;
19
4
  export { DatePicker };
@@ -1,19 +1,4 @@
1
1
  import { DateRangePicker as DateRangePickerPrimitive, DateRangePickerProps as DateRangePickerPrimitiveProps } from '../../../vendor/shadcn/date-range-picker';
2
- /**
3
- * Props for the DateRangePicker component
4
- */
5
2
  export type DateRangePickerProps = DateRangePickerPrimitiveProps;
6
- /**
7
- * Calendar-based picker for selecting a date range (start and end dates).
8
- *
9
- * @example
10
- * ```tsx
11
- * <DateRangePicker
12
- * value={{ from: startDate, to: endDate }}
13
- * onChange={(range) => setDateRange(range)}
14
- * placeholder="Select date range"
15
- * />
16
- * ```
17
- */
18
3
  declare const DateRangePicker: typeof DateRangePickerPrimitive;
19
4
  export { DateRangePicker };
@@ -1,20 +1,4 @@
1
1
  import { DotsMenuProps } from './dots-menu.types';
2
- /**
3
- * Dropdown menu triggered by a three-dot icon button.
4
- * Supports action items with icons, permissions, and disabled states.
5
- *
6
- * @example
7
- * ```tsx
8
- * <DotsMenu
9
- * options={{
10
- * actions: [
11
- * { key: 'edit', name: 'Edit', icon: 'PencilSimple', handleClick: handleEdit },
12
- * { key: 'delete', name: 'Delete', icon: 'Trash', allowed: canDelete, handleClick: handleDelete }
13
- * ]
14
- * }}
15
- * />
16
- * ```
17
- */
18
2
  export declare const DotsMenu: {
19
3
  ({ options, icon, className, disabled, marginBottom, }: DotsMenuProps): import("react/jsx-runtime").JSX.Element | null;
20
4
  displayName: string;
@@ -1,9 +1,9 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
2
  import * as h from "react";
3
- import { Button as x } from "../button/button.js";
4
- import { Icon as c } from "../icon/icon.js";
5
3
  import { cn as l } from "../../../lib/utils.js";
6
- import { DropdownMenu as f, DropdownMenuTrigger as j, DropdownMenuContent as w, DropdownMenuItem as g } from "../dropdown-menu/dropdown-menu.js";
4
+ import { DropdownMenu as x, DropdownMenuTrigger as f, DropdownMenuContent as j, DropdownMenuItem as w } from "../dropdown-menu/dropdown-menu.js";
5
+ import { Button as g } from "../button/button.js";
6
+ import { Icon as c } from "../icon/icon.js";
7
7
  import { Tooltip as C } from "../tooltip/tooltip.js";
8
8
  const k = ({
9
9
  allowed: r,
@@ -24,9 +24,9 @@ const k = ({
24
24
  if (!r.actions || r.actions.length === 0)
25
25
  return null;
26
26
  const p = {};
27
- return i !== void 0 && (p.marginBottom = `${i}px`), /* @__PURE__ */ e.jsx("div", { className: l("inline-flex relative", a), style: p, children: /* @__PURE__ */ e.jsxs(f, { open: o, onOpenChange: d, children: [
28
- /* @__PURE__ */ e.jsx(j, { asChild: !0, disabled: t, children: /* @__PURE__ */ e.jsx(
29
- x,
27
+ return i !== void 0 && (p.marginBottom = `${i}px`), /* @__PURE__ */ e.jsx("div", { className: l("inline-flex relative", a), style: p, children: /* @__PURE__ */ e.jsxs(x, { open: o, onOpenChange: d, children: [
28
+ /* @__PURE__ */ e.jsx(f, { asChild: !0, disabled: t, children: /* @__PURE__ */ e.jsx(
29
+ g,
30
30
  {
31
31
  disabled: t,
32
32
  variant: "ghost",
@@ -50,7 +50,7 @@ const k = ({
50
50
  }
51
51
  ) }),
52
52
  /* @__PURE__ */ e.jsx(
53
- w,
53
+ j,
54
54
  {
55
55
  id: "dots-menu",
56
56
  align: "end",
@@ -60,7 +60,7 @@ const k = ({
60
60
  {
61
61
  allowed: s.allowed ?? !0,
62
62
  children: /* @__PURE__ */ e.jsxs(
63
- g,
63
+ w,
64
64
  {
65
65
  onClick: () => u(s),
66
66
  disabled: !s.allowed,
@@ -1,72 +1,20 @@
1
1
  import { IconName } from '../icon';
2
- /**
3
- * Represents a single action in the dots menu
4
- */
5
2
  export interface DotsMenuAction {
6
- /**
7
- * Display name for the action
8
- */
9
3
  name?: string;
10
- /**
11
- * Unique identifier for the action
12
- */
13
4
  key: number | string;
14
- /**
15
- * Icon to display for the action
16
- */
17
5
  icon: IconName;
18
- /**
19
- * Whether the action is allowed (shows tooltip if false)
20
- * @default true
21
- */
22
6
  allowed?: boolean;
23
- /**
24
- * Callback fired when the action is clicked
25
- */
26
7
  handleClick?: (options?: unknown) => void;
27
8
  }
28
- /**
29
- * Options configuration for the dots menu
30
- */
31
9
  export interface DotsMenuOptions {
32
- /**
33
- * Array of actions to display in the menu
34
- */
35
10
  actions?: DotsMenuAction[];
36
- /**
37
- * Additional data that can be passed to action handlers
38
- */
39
11
  [key: string]: unknown;
40
12
  }
41
- /**
42
- * Props for the DotsMenu component
43
- */
44
13
  export interface DotsMenuProps {
45
- /**
46
- * Configuration object containing actions and data
47
- */
48
14
  options: DotsMenuOptions;
49
- /**
50
- * Whether the menu trigger is disabled
51
- * @default false
52
- */
53
15
  disabled?: boolean;
54
- /**
55
- * Custom icon for the menu trigger (null uses default dots)
56
- * @default null
57
- */
58
16
  icon?: IconName | null;
59
- /**
60
- * Additional CSS classes
61
- */
62
17
  className?: string;
63
- /**
64
- * Whether to remove absolute positioning
65
- * @default false
66
- */
67
18
  withoutAbsolute?: boolean;
68
- /**
69
- * Bottom margin in pixels
70
- */
71
19
  marginBottom?: number;
72
20
  }
@@ -1,51 +1,20 @@
1
1
  import { DropdownMenu as ShadcnDropdownMenu, DropdownMenuPortal as ShadcnDropdownMenuPortal, DropdownMenuTrigger as ShadcnDropdownMenuTrigger, DropdownMenuContent as ShadcnDropdownMenuContent, DropdownMenuGroup as ShadcnDropdownMenuGroup, DropdownMenuLabel as ShadcnDropdownMenuLabel, DropdownMenuItem as ShadcnDropdownMenuItem, DropdownMenuCheckboxItem as ShadcnDropdownMenuCheckboxItem, DropdownMenuRadioGroup as ShadcnDropdownMenuRadioGroup, DropdownMenuRadioItem as ShadcnDropdownMenuRadioItem, DropdownMenuSeparator as ShadcnDropdownMenuSeparator, DropdownMenuSub as ShadcnDropdownMenuSub, DropdownMenuSubTrigger as ShadcnDropdownMenuSubTrigger, DropdownMenuSubContent as ShadcnDropdownMenuSubContent } from '../../../vendor/shadcn/dropdown-menu';
2
2
  import * as React from "react";
3
- /**
4
- * Props for the DropdownMenu root component
5
- */
6
3
  export interface DropdownMenuProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenu> {
7
4
  }
8
- /**
9
- * Props for the DropdownMenuPortal component
10
- */
11
5
  export interface DropdownMenuPortalProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuPortal> {
12
6
  }
13
- /**
14
- * Props for the DropdownMenuTrigger component
15
- */
16
7
  export interface DropdownMenuTriggerProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuTrigger> {
17
8
  }
18
- /**
19
- * Props for the DropdownMenuContent component
20
- */
21
9
  export interface DropdownMenuContentProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuContent> {
22
10
  }
23
- /**
24
- * Props for the DropdownMenuGroup component
25
- */
26
11
  export interface DropdownMenuGroupProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuGroup> {
27
12
  }
28
- /**
29
- * Props for the DropdownMenuLabel component
30
- */
31
13
  export interface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuLabel> {
32
- /**
33
- * Whether to apply inset padding
34
- */
35
14
  inset?: boolean;
36
15
  }
37
- /**
38
- * Props for the DropdownMenuItem component
39
- */
40
16
  export interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuItem> {
41
- /**
42
- * Whether to apply inset padding
43
- */
44
17
  inset?: boolean;
45
- /**
46
- * Visual variant of the menu item
47
- * @default "default"
48
- */
49
18
  variant?: "default" | "destructive";
50
19
  }
51
20
  export interface DropdownMenuCheckboxItemProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuCheckboxItem> {
@@ -65,25 +34,6 @@ export interface DropdownMenuSubTriggerProps extends React.ComponentPropsWithout
65
34
  }
66
35
  export interface DropdownMenuSubContentProps extends React.ComponentPropsWithoutRef<typeof ShadcnDropdownMenuSubContent> {
67
36
  }
68
- /**
69
- * Dropdown menu component for displaying a list of actions or options.
70
- * Composed of multiple sub-components for flexible menu structures.
71
- *
72
- * @example
73
- * ```tsx
74
- * <DropdownMenu>
75
- * <DropdownMenuTrigger asChild>
76
- * <Button>Open Menu</Button>
77
- * </DropdownMenuTrigger>
78
- * <DropdownMenuContent>
79
- * <DropdownMenuItem>Profile</DropdownMenuItem>
80
- * <DropdownMenuItem>Settings</DropdownMenuItem>
81
- * <DropdownMenuSeparator />
82
- * <DropdownMenuItem variant="destructive">Logout</DropdownMenuItem>
83
- * </DropdownMenuContent>
84
- * </DropdownMenu>
85
- * ```
86
- */
87
37
  declare const DropdownMenu: {
88
38
  ({ children, ...props }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
89
39
  displayName: string;
@@ -1,73 +1,18 @@
1
1
  import { ComponentProps, InputHTMLAttributes } from 'react';
2
2
  import { ButtonProps } from '../button';
3
3
  import { Icon, IconName } from '../icon';
4
- /**
5
- * Props for the Field component
6
- */
7
4
  export interface FieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "className"> {
8
- /**
9
- * Label text displayed above the input
10
- */
11
5
  label?: string;
12
- /**
13
- * Helper text displayed below the input
14
- */
15
6
  description?: string;
16
- /**
17
- * Error message displayed below the input (overrides description)
18
- */
19
7
  error?: string;
20
- /**
21
- * Optional button to display next to the input
22
- */
23
8
  button?: ButtonProps;
24
- /**
25
- * Icon to display at the start (left side) of the input
26
- */
27
9
  startIcon?: IconName;
28
- /**
29
- * Additional props to pass to the start icon
30
- */
31
10
  startIconProps?: ComponentProps<typeof Icon>;
32
- /**
33
- * Icon to display at the end (right side) of the input
34
- */
35
11
  endIcon?: IconName;
36
- /**
37
- * Additional props to pass to the end icon
38
- */
39
12
  endIconProps?: Partial<ComponentProps<typeof Icon>>;
40
- /**
41
- * Layout orientation of the label and input
42
- * @default "vertical"
43
- */
44
13
  orientation?: "vertical" | "horizontal" | "responsive";
45
- /**
46
- * Additional CSS classes for the field container
47
- */
48
14
  className?: string;
49
- /**
50
- * Additional props to pass to the input element
51
- */
52
15
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
53
16
  }
54
- /**
55
- * Form field component with label, description, error handling, and icon support.
56
- *
57
- * @example
58
- * ```tsx
59
- * <Field
60
- * label="Email"
61
- * placeholder="Enter your email"
62
- * startIcon="Envelope"
63
- * description="We'll never share your email"
64
- * />
65
- * <Field
66
- * label="Search"
67
- * endIcon="MagnifyingGlass"
68
- * error="Invalid search query"
69
- * />
70
- * ```
71
- */
72
17
  declare const Field: import('react').ForwardRefExoticComponent<FieldProps & import('react').RefAttributes<HTMLInputElement>>;
73
18
  export { Field };
@@ -1,91 +1,84 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as $, useId as E } from "react";
3
- import { InputGroup as G, InputGroupAddon as f, InputGroupInput as b } from "../../../vendor/shadcn/input-group.js";
4
- import { cn as a } from "../../../lib/utils.js";
5
- import { Button as w } from "../button/button.js";
2
+ import { forwardRef as $, useId as b } from "react";
3
+ import { InputGroup as E, InputGroupAddon as f, InputGroupInput as G } from "../../../vendor/shadcn/input-group.js";
4
+ import { cn as l } from "../../../lib/utils.js";
5
+ import { Field as w, FieldLabel as y, FieldDescription as z, FieldError as B } from "../../../vendor/shadcn/field.js";
6
6
  import { Icon as j } from "../icon/icon.js";
7
- import { Field as y, FieldLabel as z, FieldDescription as B, FieldError as I } from "../../../vendor/shadcn/field.js";
7
+ import { Button as I } from "../button/button.js";
8
8
  const R = $(
9
9
  ({
10
10
  className: p,
11
- orientation: N = "vertical",
12
- label: c,
13
- description: l,
11
+ orientation: h = "vertical",
12
+ label: n,
13
+ description: a,
14
14
  error: i,
15
- id: h,
16
- button: o,
17
- disabled: d,
18
- startIcon: u,
19
- startIconProps: r,
20
- endIcon: x,
21
- endIconProps: m,
22
- inputProps: t,
15
+ id: N,
16
+ button: c,
17
+ disabled: o,
18
+ startIcon: x,
19
+ startIconProps: d,
20
+ endIcon: u,
21
+ endIconProps: r,
22
+ inputProps: m,
23
23
  ...v
24
- }, g) => {
25
- const F = E(), s = h || t?.id || F, n = !!i;
24
+ }, F) => {
25
+ const g = b(), s = N || m?.id || g, t = !!i;
26
26
  return /* @__PURE__ */ e.jsxs(
27
- y,
27
+ w,
28
28
  {
29
- orientation: N,
30
- "data-invalid": n,
31
- className: a("w-full", p),
29
+ orientation: h,
30
+ "data-invalid": t,
31
+ className: l("w-full", p),
32
32
  children: [
33
- c && /* @__PURE__ */ e.jsx(
34
- z,
35
- {
36
- htmlFor: s,
37
- className: a(d && "text-muted-foreground"),
38
- children: c
39
- }
40
- ),
33
+ n && /* @__PURE__ */ e.jsx(y, { htmlFor: s, children: n }),
41
34
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
42
35
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center", children: [
43
- /* @__PURE__ */ e.jsxs(G, { className: "flex-1", children: [
44
- u && /* @__PURE__ */ e.jsx(f, { align: "inline-start", children: /* @__PURE__ */ e.jsx(
36
+ /* @__PURE__ */ e.jsxs(E, { className: "flex-1", children: [
37
+ x && /* @__PURE__ */ e.jsx(f, { align: "inline-start", children: /* @__PURE__ */ e.jsx(
45
38
  j,
46
39
  {
47
- name: r?.name || u,
40
+ name: d?.name || x,
48
41
  size: "sm",
49
- ...r,
50
- className: a(
42
+ ...d,
43
+ className: l(
51
44
  "cursor-default text-muted-foreground",
52
- r?.className
45
+ d?.className
53
46
  )
54
47
  }
55
48
  ) }),
56
49
  /* @__PURE__ */ e.jsx(
57
- b,
50
+ G,
58
51
  {
59
- ref: g,
60
- disabled: d,
61
- className: a(
62
- n && "border-destructive focus-visible:border-destructive",
63
- t?.className
52
+ ref: F,
53
+ disabled: o,
54
+ className: l(
55
+ t && "border-destructive focus-visible:border-destructive",
56
+ m?.className
64
57
  ),
65
- "aria-invalid": n ? !0 : void 0,
66
- "aria-describedby": l || i ? `${s}-description` : void 0,
58
+ "aria-invalid": t ? !0 : void 0,
59
+ "aria-describedby": a || i ? `${s}-description` : void 0,
67
60
  ...v,
68
- ...t,
61
+ ...m,
69
62
  id: s
70
63
  }
71
64
  ),
72
- x && /* @__PURE__ */ e.jsx(f, { align: "inline-end", children: /* @__PURE__ */ e.jsx(
65
+ u && /* @__PURE__ */ e.jsx(f, { align: "inline-end", children: /* @__PURE__ */ e.jsx(
73
66
  j,
74
67
  {
75
- name: m?.name || x,
68
+ name: r?.name || u,
76
69
  size: "sm",
77
- ...m,
78
- className: a(
70
+ ...r,
71
+ className: l(
79
72
  "cursor-default text-muted-foreground",
80
- m?.className
73
+ r?.className
81
74
  )
82
75
  }
83
76
  ) })
84
77
  ] }),
85
- o && /* @__PURE__ */ e.jsx(w, { disabled: d, ...o })
78
+ c && /* @__PURE__ */ e.jsx(I, { disabled: o, ...c })
86
79
  ] }),
87
- l && !i && /* @__PURE__ */ e.jsx(B, { id: `${s}-description`, children: l }),
88
- i && /* @__PURE__ */ e.jsx(I, { id: `${s}-description`, children: i })
80
+ a && !i && /* @__PURE__ */ e.jsx(z, { id: `${s}-description`, children: a }),
81
+ i && /* @__PURE__ */ e.jsx(B, { id: `${s}-description`, children: i })
89
82
  ] })
90
83
  ]
91
84
  }
@@ -1,21 +1,11 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RadioGroup } from '../../../vendor/shadcn/radio-group';
3
- export declare const FilterDateRangeValue: {
4
- readonly CUSTOM: "CUSTOM";
5
- readonly TODAY: "TODAY";
6
- readonly LAST_3_DAYS: "LAST_3_DAYS";
7
- readonly LAST_7_DAYS: "LAST_7_DAYS";
8
- readonly LAST_30_DAYS: "LAST_30_DAYS";
9
- readonly THIS_MONTH: "THIS_MONTH";
10
- readonly ALL_TIME: "ALL_TIME";
11
- };
12
- export type FilterDateRangeValueType = typeof FilterDateRangeValue[keyof typeof FilterDateRangeValue];
13
- interface FilterDateRangeOptionProps extends ComponentProps<"label"> {
3
+ interface FilterDateRangeOptionProps extends ComponentProps<"button"> {
14
4
  label: string;
15
5
  description?: string;
16
6
  value: string;
17
7
  }
18
- declare const FilterDateRangeOption: import('react').ForwardRefExoticComponent<Omit<FilterDateRangeOptionProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
8
+ declare const FilterDateRangeOption: import('react').ForwardRefExoticComponent<Omit<FilterDateRangeOptionProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
19
9
  interface FilterDateRangeProps extends ComponentProps<typeof RadioGroup> {
20
10
  showCustomFields?: boolean;
21
11
  onCustomFieldsChange?: (show: boolean) => void;