@vkzstudio/muza-ui 1.0.43 → 1.0.45

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 (116) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +42 -6
  2. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  3. package/dist/components/Button/Button.d.ts +71 -17
  4. package/dist/components/Button/Button.d.ts.map +1 -1
  5. package/dist/components/DataTable/DataTable.d.ts +66 -20
  6. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTable.js +39 -39
  8. package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
  9. package/dist/components/DatePicker/DatePicker.d.ts +69 -36
  10. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  11. package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
  12. package/dist/components/DropdownMenu/DropdownMenu.d.ts +38 -7
  13. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  14. package/dist/components/DropdownMenu/DropdownMenu.js +165 -163
  15. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +3 -17
  16. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  17. package/dist/components/EdgeButton/EdgeButton.d.ts +10 -11
  18. package/dist/components/EdgeButton/EdgeButton.d.ts.map +1 -1
  19. package/dist/components/ExpandableTable/ExpandableTable.d.ts +103 -19
  20. package/dist/components/ExpandableTable/ExpandableTable.d.ts.map +1 -1
  21. package/dist/components/ExpandableTable/ExpandableTable.js +100 -111
  22. package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts +6 -1
  23. package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts.map +1 -1
  24. package/dist/components/ExpandableTable/index.d.ts +1 -1
  25. package/dist/components/ExpandableTable/index.d.ts.map +1 -1
  26. package/dist/components/FileUpload/FileItem.d.ts +22 -0
  27. package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
  28. package/dist/components/FileUpload/FileItem.js +38 -41
  29. package/dist/components/FileUpload/FileUpload.d.ts +137 -42
  30. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  31. package/dist/components/FileUpload/FileUpload.js +87 -83
  32. package/dist/components/FileUpload/FileUpload.stories.d.ts +1 -0
  33. package/dist/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
  34. package/dist/components/FileUpload/index.d.ts +1 -1
  35. package/dist/components/FileUpload/index.d.ts.map +1 -1
  36. package/dist/components/Flex/Flex.d.ts +1 -1
  37. package/dist/components/Icons/CustomBadges.d.ts +14 -0
  38. package/dist/components/Icons/CustomBadges.d.ts.map +1 -0
  39. package/dist/components/Icons/CustomBadges.js +334 -0
  40. package/dist/components/Icons/CustomIcons.d.ts +24 -0
  41. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  42. package/dist/components/Icons/CustomIcons.js +88 -42
  43. package/dist/components/Icons/CustomLogos.d.ts +29 -0
  44. package/dist/components/Icons/CustomLogos.d.ts.map +1 -0
  45. package/dist/components/Icons/CustomLogos.js +593 -0
  46. package/dist/components/Icons/LogosAndBadges.stories.d.ts +7 -0
  47. package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -0
  48. package/dist/components/Icons/index.d.ts +2 -0
  49. package/dist/components/Icons/index.d.ts.map +1 -1
  50. package/dist/components/Input/Input.d.ts +33 -34
  51. package/dist/components/Input/Input.d.ts.map +1 -1
  52. package/dist/components/Input/Input.stories.d.ts.map +1 -1
  53. package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +24 -1
  54. package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
  55. package/dist/components/LanguageSwitcher/LanguageSwitcher.js +71 -52
  56. package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +2 -0
  57. package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
  58. package/dist/components/MultiSelect/MultiSelect.d.ts +50 -23
  59. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  60. package/dist/components/MultiSelect/MultiSelect.js +18 -17
  61. package/dist/components/Reorderable/Reorderable.d.ts +48 -1
  62. package/dist/components/Reorderable/Reorderable.d.ts.map +1 -1
  63. package/dist/components/ReorderableTable/ReorderableTable.d.ts +34 -17
  64. package/dist/components/ReorderableTable/ReorderableTable.d.ts.map +1 -1
  65. package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -1
  66. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.d.ts +266 -0
  67. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.d.ts.map +1 -0
  68. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.examples.d.ts +39 -0
  69. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.examples.d.ts.map +1 -0
  70. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.js +134 -0
  71. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.stories.d.ts +14 -0
  72. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.stories.d.ts.map +1 -0
  73. package/dist/components/ResponsiveLayoutTable/index.d.ts +2 -0
  74. package/dist/components/ResponsiveLayoutTable/index.d.ts.map +1 -0
  75. package/dist/components/Select/Select.d.ts +58 -28
  76. package/dist/components/Select/Select.d.ts.map +1 -1
  77. package/dist/components/Select/Select.js +123 -92
  78. package/dist/components/Select/Select.stories.d.ts +1 -0
  79. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  80. package/dist/components/Select/index.d.ts +1 -1
  81. package/dist/components/Select/index.d.ts.map +1 -1
  82. package/dist/components/Select/utils.d.ts +1 -0
  83. package/dist/components/Select/utils.d.ts.map +1 -1
  84. package/dist/components/Select/utils.js +5 -2
  85. package/dist/components/TextEditor/TextEditor.d.ts +82 -46
  86. package/dist/components/TextEditor/TextEditor.d.ts.map +1 -1
  87. package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
  88. package/dist/components/TextEditor/index.d.ts +1 -1
  89. package/dist/components/TextEditor/index.d.ts.map +1 -1
  90. package/dist/components/Textarea/Textarea.d.ts +41 -10
  91. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  92. package/dist/components/Textarea/Textarea.stories.d.ts.map +1 -1
  93. package/dist/components/Toggle/Toggle.js +1 -1
  94. package/dist/components/ToggleCheckButton/ToggleCheckButton.d.ts +69 -0
  95. package/dist/components/ToggleCheckButton/ToggleCheckButton.d.ts.map +1 -0
  96. package/dist/components/ToggleCheckButton/ToggleCheckButton.js +64 -0
  97. package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts +8 -0
  98. package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts.map +1 -0
  99. package/dist/components/ToggleCheckButton/index.d.ts +2 -0
  100. package/dist/components/ToggleCheckButton/index.d.ts.map +1 -0
  101. package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts +19 -0
  102. package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts.map +1 -0
  103. package/dist/components/WebCheckoutNav/WebCheckoutNav.stories.d.ts +8 -0
  104. package/dist/components/WebCheckoutNav/WebCheckoutNav.stories.d.ts.map +1 -0
  105. package/dist/components/index.d.ts +2 -0
  106. package/dist/components/index.d.ts.map +1 -1
  107. package/dist/hooks/use-is-breakpoint.d.ts +11 -0
  108. package/dist/hooks/use-is-breakpoint.d.ts.map +1 -1
  109. package/dist/hooks/use-is-breakpoint.js +24 -13
  110. package/dist/index.js +236 -215
  111. package/dist/muza-ui.css +1 -1
  112. package/dist/styles/token-colors.css +64 -3
  113. package/dist/styles/token-sizes.css +86 -54
  114. package/dist/utils/cn.d.ts.map +1 -1
  115. package/dist/utils/cn.js +16 -5
  116. package/package.json +1 -1
@@ -62,20 +62,56 @@ export interface AccordionMultipleProps extends RadixAccordionMultipleProps {
62
62
  * <Accordion type="single" variant="default" collapsible>
63
63
  */
64
64
  export type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
65
- /** Props for AccordionItem. Requires a unique `value` string to identify the section. */
65
+ /**
66
+ * Props for the AccordionItem component.
67
+ * Represents a single expandable section within an Accordion.
68
+ */
66
69
  export interface AccordionItemProps extends React.ComponentProps<typeof AccordionPrimitive.Item> {
67
- /** Unique string identifying this item within the accordion. */
70
+ /** Unique string identifying this item within the accordion. Must be unique across sibling items. */
68
71
  value: string;
69
72
  /** Prevents interaction with this specific item. @default false */
70
73
  disabled?: boolean;
71
- /** When true, clicking the content area also toggles the item. Set to false for items with interactive content (forms, inputs). @default true */
74
+ /**
75
+ * When true, clicking anywhere on the item (not just the header) toggles the open state.
76
+ * Set to false for items whose content contains interactive elements (forms, inputs, switches)
77
+ * so inner clicks don't collapse the section.
78
+ *
79
+ * @default true
80
+ * @example
81
+ * <AccordionItem value="settings" clickableContent={false}>
82
+ * <AccordionHeader>Settings</AccordionHeader>
83
+ * <AccordionContent>
84
+ * <Input />
85
+ * <Switch />
86
+ * </AccordionContent>
87
+ * </AccordionItem>
88
+ */
72
89
  clickableContent?: boolean;
73
- /** When true, the item is always expanded, non-interactive, and the chevron is hidden. The header renders as a plain element instead of a button for proper accessibility. @default false */
90
+ /**
91
+ * When true, the item is always expanded, non-interactive, and the chevron is hidden.
92
+ * The header renders as a plain element instead of a button so it stays accessible
93
+ * when no toggle action is available.
94
+ *
95
+ * @default false
96
+ * @example
97
+ * <AccordionItem value="always-visible" static>
98
+ * <AccordionHeader>Always visible</AccordionHeader>
99
+ * <AccordionContent>This content is always shown.</AccordionContent>
100
+ * </AccordionItem>
101
+ */
74
102
  static?: boolean;
75
103
  }
76
- /** Props for AccordionHeader. Clickable area that toggles content visibility. */
104
+ /**
105
+ * Props for the AccordionHeader component.
106
+ * Renders the clickable header area that toggles content visibility.
107
+ * Wraps and behaves as Radix's `Accordion.Header` + `Accordion.Trigger`.
108
+ */
77
109
  export type AccordionHeaderProps = React.ComponentProps<typeof AccordionPrimitive.Header>;
78
- /** Props for AccordionContent. Collapsible content area with slide animation. */
110
+ /**
111
+ * Props for the AccordionContent component.
112
+ * Collapsible content area with built-in slide-up/slide-down animation.
113
+ * Wraps Radix's `Accordion.Content`.
114
+ */
79
115
  export type AccordionContentProps = React.ComponentProps<typeof AccordionPrimitive.Content>;
80
116
  declare const accordionItemVariants: (props?: ({
81
117
  variant?: "default" | "branded" | "settings" | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EACL,KAAK,sBAAsB,IAAI,2BAA2B,EAC1D,KAAK,oBAAoB,IAAI,yBAAyB,EACvD,MAAM,2BAA2B,CAAA;AAKlC;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA;AAEjE,mEAAmE;AACnE,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;IACrE,yDAAyD;IACzD,IAAI,EAAE,QAAQ,CAAA;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,iFAAiF;IACjF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,gFAAgF;AAChF,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACzE,sEAAsE;IACtE,IAAI,EAAE,UAAU,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,8EAA8E;IAC9E,KAAK,CAAC,EA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'./buttonVariants';
3
3
  import * as React from 'react';
4
4
  /**
5
5
  * Props for the Button component.
6
- * Extends standard button HTML attributes. The `iconOnly` and `size` CVA variants
7
- * are excluded from VariantProps and re-declared with custom types.
6
+ *
7
+ * Extends standard button HTML attributes. CVA's inferred `iconOnly` and `size`
8
+ * variants are omitted from `VariantProps` and re-declared below with explicit
9
+ * union types so consumers see the allowed values in `.d.ts` output.
8
10
  */
9
11
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof buttonVariants>, 'iconOnly' | 'size'> {
10
12
  /**
11
- * Visual style variant: primary (brand), secondary (outlined), tertiary (subtle),
12
- * invert (dark backgrounds), dashed (bordered), link/linkInvert (text only).
13
+ * Visual style variant.
14
+ *
15
+ * - `primary` — brand-colored solid button for the main call-to-action.
16
+ * - `secondary` — outlined button for secondary actions.
17
+ * - `tertiary` — subtle button for low-emphasis actions.
18
+ * - `invert` — inverted colors for dark backgrounds.
19
+ * - `dashed` — dashed-border button, typically for add/create actions.
20
+ * - `link` / `linkInvert` — text-only link-styled button.
21
+ *
13
22
  * @default 'primary'
14
23
  */
15
24
  variant?: 'primary' | 'secondary' | 'tertiary' | 'invert' | 'dashed' | 'link' | 'linkInvert';
16
25
  /**
17
26
  * Controls height and padding. The `icon` size renders a compact icon-only
18
27
  * button with ghost styling (no background, border, or border radius).
28
+ *
19
29
  * @default 'md'
20
30
  */
21
31
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'icon';
22
- /** Stretches button to fill its container width. @default false */
32
+ /** Stretches the button to fill its container width. @default false */
23
33
  fullWidth?: boolean;
24
34
  /**
25
- * When true, merges Button props/styles onto the single child element via
26
- * Radix `Slot` (e.g. `<Button asChild><Link href="/">Home</Link></Button>`
27
- * renders an `<a>` with all button styling and click target). Icons and the
28
- * `loading` spinner are injected as siblings of the child's original content.
29
- * Note: `disabled` has no effect on non-`<button>` children — use
30
- * `aria-disabled` on the child instead.
35
+ * Renders the single child as the root element via Radix `Slot`, merging
36
+ * Button's props, styles, ref, and event handlers onto it. Use for
37
+ * polymorphic rendering e.g. a router `Link`, a plain `<a>`, a `<label>`,
38
+ * or a `<button type="submit">` while keeping full Button styling.
39
+ *
40
+ * Icons and the `loading` spinner are injected as siblings of the child's
41
+ * original content.
42
+ *
43
+ * Note: the `disabled` attribute is inert on non-`<button>` children
44
+ * (e.g. `<a>`). Use `aria-disabled` on the child instead.
45
+ *
31
46
  * @default false
47
+ * @example
48
+ * <Button asChild variant="primary">
49
+ * <Link href="/dashboard">Go to dashboard</Link>
50
+ * </Button>
51
+ *
52
+ * @example
53
+ * <Button asChild variant="primary">
54
+ * <button type="submit">Submit form</button>
55
+ * </Button>
32
56
  */
33
57
  asChild?: boolean;
34
- /** React node displayed as an icon. Position controlled by `iconPosition`. */
58
+ /**
59
+ * Icon node rendered alongside the label. Position is controlled by
60
+ * `iconPosition`. Omit `children` to render an icon-only button (provide
61
+ * `aria-label` for accessibility).
62
+ *
63
+ * @example
64
+ * <Button icon={<DownloadIcon />}>Download</Button>
65
+ *
66
+ * @example
67
+ * <Button icon={<PlusIcon />} aria-label="Add" />
68
+ */
35
69
  icon?: React.ReactNode;
36
- /** Places icon before (`start`) or after (`end`) the button text. Ignored when `secondIcon` is provided. @default 'start' */
70
+ /**
71
+ * Places `icon` before (`'start'`) or after (`'end'`) the button text.
72
+ * Ignored when `secondIcon` is provided.
73
+ *
74
+ * @default 'start'
75
+ */
37
76
  iconPosition?: 'start' | 'end';
38
- /** Optional trailing icon. When set, `icon` is always rendered at the start and `secondIcon` at the end, ignoring `iconPosition`. */
77
+ /**
78
+ * Optional trailing icon. When set, `icon` is always rendered at the start
79
+ * and `secondIcon` at the end, overriding `iconPosition`.
80
+ *
81
+ * @example
82
+ * <Button icon={<PlusIcon />} secondIcon={<ArrowRightIcon />}>Add and continue</Button>
83
+ */
39
84
  secondIcon?: React.ReactNode;
40
- /** Removes background, showing only text and icon with hover effects. @default false */
85
+ /**
86
+ * Removes background and border, showing only text and icon with hover
87
+ * effects. The `icon` size always renders as ghost regardless of this prop.
88
+ *
89
+ * @default false
90
+ */
41
91
  ghost?: boolean;
42
92
  /** Applies destructive/error styling for delete or dangerous actions. @default false */
43
93
  danger?: boolean;
44
94
  /**
45
- * Shows a spinner overlay and disables interaction.
46
- * Text becomes invisible but maintains button width.
95
+ * Shows a spinner overlay and disables interaction. The label fades out but
96
+ * the button keeps its width, preventing layout shift during async actions.
97
+ *
47
98
  * @default false
99
+ * @example
100
+ * const [saving, setSaving] = useState(false)
101
+ * <Button loading={saving} onClick={handleSave}>Save</Button>
48
102
  */
49
103
  loading?: boolean;
50
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,IAAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAChE;;;;OAIG;IACH,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,YAAY,CAAA;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IACzC,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,6HAA6H;IAC7H,YAAY,CAAC,EAAE,OAA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,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,uFAqFX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
@@ -1,11 +1,19 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
+ /**
4
+ * CVA variants for the DataTable body cells. Controls background color
5
+ * (`variant`) and rounded-corner/border treatment based on the cell's
6
+ * position in the row (`position`).
7
+ */
3
8
  declare const dataTableCellVariants: (props?: ({
4
9
  variant?: "default" | "white" | null | undefined;
5
- position?: "first" | "last" | "middle" | null | undefined;
10
+ position?: "middle" | "first" | "last" | null | undefined;
6
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
12
  /**
8
- * Column definition for the DataTable component.
13
+ * Column definition for the DataTable component. Describes how a single column
14
+ * pulls its value from each row object, how its header renders, and optionally
15
+ * how each cell renders.
16
+ *
9
17
  * @typeParam T - The type of data objects in each row
10
18
  *
11
19
  * @example
@@ -15,21 +23,27 @@ declare const dataTableCellVariants: (props?: ({
15
23
  * { dataKey: 'name', title: '', render: (value, row, i) => <Button onClick={() => edit(i)} /> },
16
24
  * ]
17
25
  */
18
- export interface DataTableColumn<T> {
19
- /** Property key from the data object to display in this column. */
26
+ export interface DataTableColumn<T extends {
27
+ id: string | number;
28
+ }> {
29
+ /** Property key on each row object whose value is displayed in this column. */
20
30
  dataKey: keyof T;
21
- /** Header label for the column. */
31
+ /** Header label for the column. Pass an empty string to render a blank header (e.g. an actions column). */
22
32
  title: ReactNode;
23
- /** Additional CSS class applied to both the header and body cells. */
33
+ /** Extra CSS class applied to both the header cell (`<th>`) and body cells (`<td>`) of this column. */
24
34
  className?: string;
25
35
  /**
26
- * Truncates cell text to the specified number of lines.
27
- * `true` or `1` clamps to one line, `2` clamps to two lines.
36
+ * Truncates default cell text to the specified number of lines. Has no
37
+ * effect when a custom `render` is provided.
38
+ * - `true` or `1` clamps to one line
39
+ * - `2` clamps to two lines
28
40
  */
29
41
  lineClamp?: boolean | 1 | 2;
30
42
  /**
31
43
  * Custom render function for cell content. When omitted, the raw value
32
- * is displayed inside a Typography component.
44
+ * at `dataKey` is displayed inside a Typography component. The function
45
+ * receives the raw value, the full row object, the row index, and the
46
+ * table's `disabled` state so custom cells can mirror the disabled styling.
33
47
  *
34
48
  * @example
35
49
  * render: (value, rowData, rowIndex, disabled) => (
@@ -40,29 +54,61 @@ export interface DataTableColumn<T> {
40
54
  }
41
55
  /**
42
56
  * Props for the DataTable component.
43
- * Extends standard table attributes except `children` (content is driven by `data` and `columns`).
44
- * @typeParam T - The type of data objects in each row
57
+ * Extends standard table attributes except `children` (content is driven by
58
+ * `data` and `columns` rather than JSX children).
59
+ *
60
+ * @typeParam T - The type of data objects in each row. Must include an
61
+ * `id: string | number` field so each row has a stable React key —
62
+ * keying by index corrupts focus / uncontrolled inputs / animation state
63
+ * whenever rows reorder, filter, or paginate.
45
64
  */
46
- export interface DataTableProps<T> extends Omit<React.HTMLAttributes<HTMLTableElement>, 'children'>, Omit<VariantProps<typeof dataTableCellVariants>, 'variant' | 'position'> {
47
- /** Array of data objects to display as table rows. */
65
+ export interface DataTableProps<T extends {
66
+ id: string | number;
67
+ }> extends Omit<React.HTMLAttributes<HTMLTableElement>, 'children'>, Omit<VariantProps<typeof dataTableCellVariants>, 'variant' | 'position'> {
68
+ /** Array of data objects to display. Each item renders as one table row. */
48
69
  data: T[];
49
- /** Column definitions describing headers and cell rendering. @see DataTableColumn */
70
+ /**
71
+ * Column definitions describing headers, cell rendering, and per-column styling.
72
+ * @see DataTableColumn
73
+ */
50
74
  columns: DataTableColumn<T>[];
51
75
  /** Controls visibility of the table header row. @default true */
52
76
  showHeader?: boolean;
53
- /** Additional CSS class applied to the table element. */
77
+ /** Extra CSS class applied to the `<table>` element. */
54
78
  className?: string;
55
- /** Visual style variant for row background. @default 'default' */
79
+ /**
80
+ * Visual style variant for row background.
81
+ * - `'default'` uses the primary surface color
82
+ * - `'white'` uses the secondary surface color (for nested/alt backgrounds)
83
+ *
84
+ * @default 'default'
85
+ */
56
86
  variant?: 'default' | 'white';
57
- /** Prevents interaction and applies muted text colors. @default false */
87
+ /**
88
+ * Prevents row-click interaction and applies muted text colors. The value
89
+ * is also forwarded to every column's `render` callback so custom cells
90
+ * can reflect the disabled state.
91
+ *
92
+ * @default false
93
+ */
58
94
  disabled?: boolean;
59
95
  /**
60
96
  * Fires when a row is clicked (pointer only — rows are not keyboard-activatable).
61
- * When provided and not `disabled`, rows get a pointer cursor and a
62
- * hover/focus-within border on cells.
97
+ * When provided and the table is not `disabled`, rows get a pointer cursor
98
+ * and a hover/focus-within border on cells. Inner interactive elements
99
+ * should call `event.stopPropagation()` to prevent the row handler from firing.
100
+ *
101
+ * @example
102
+ * <DataTable
103
+ * data={users}
104
+ * columns={columns}
105
+ * onRowClick={(rowData, rowIndex) => openDetail(rowData.id)}
106
+ * />
63
107
  */
64
108
  onRowClick?: (rowData: T, rowIndex: number) => void;
65
109
  }
66
- declare const DataTable: <T>({ data, columns, showHeader, className, variant, disabled, onRowClick, ...props }: DataTableProps<T>) => import("react/jsx-runtime").JSX.Element;
110
+ declare const DataTable: <T extends {
111
+ id: string | number;
112
+ }>({ data, columns, showHeader, className, variant, disabled, onRowClick, ...props }: DataTableProps<T>) => import("react/jsx-runtime").JSX.Element;
67
113
  export { DataTable, dataTableCellVariants };
68
114
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE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CAAA;IACT;;;OAGG;IACH,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAA;IAC7B,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CACpD;AAED,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,mFASnD,cAAc,CAAC,CAAC,CAAC,4CAwGnB,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,9 +1,9 @@
1
- import { jsx as r, jsxs as h } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { cva as u } from "class-variance-authority";
4
- import { cn as i } from "../../utils/cn.js";
5
- import { typographyVariants as y, Typography as g } from "../Typography/Typography.js";
6
- const v = u(
4
+ import { cn as a } from "../../utils/cn.js";
5
+ import { typographyVariants as y, Typography as x } from "../Typography/Typography.js";
6
+ const g = u(
7
7
  "h-comp-table-h-def border-y border-stroke-base-secondary px-2xl transition-colors",
8
8
  {
9
9
  variants: {
@@ -24,28 +24,28 @@ const v = u(
24
24
  }
25
25
  ), K = ({
26
26
  data: p,
27
- columns: l,
27
+ columns: n,
28
28
  showHeader: m = !0,
29
29
  className: c,
30
30
  variant: f = "default",
31
- disabled: s = !1,
32
- onRowClick: d,
31
+ disabled: i = !1,
32
+ onRowClick: s,
33
33
  ...b
34
34
  }) => {
35
- const n = !!d && !s;
36
- return /* @__PURE__ */ r("div", { className: "w-full overflow-x-auto overflow-y-hidden", children: /* @__PURE__ */ h(
35
+ const l = !!s && !i;
36
+ return /* @__PURE__ */ t("div", { className: "w-full overflow-x-auto overflow-y-hidden", children: /* @__PURE__ */ h(
37
37
  "table",
38
38
  {
39
- className: i(
39
+ className: a(
40
40
  "-my-md w-full border-separate border-spacing-y-md",
41
41
  c
42
42
  ),
43
43
  ...b,
44
44
  children: [
45
- m && /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children: l.map((t, a) => /* @__PURE__ */ r(
45
+ m && /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: n.map((e, d) => /* @__PURE__ */ t(
46
46
  "th",
47
47
  {
48
- className: i(
48
+ className: a(
49
49
  y({
50
50
  size: "sm",
51
51
  uppercase: !0,
@@ -54,56 +54,56 @@ const v = u(
54
54
  }),
55
55
  "px-comp-table-p text-left text-text-dark-secondary",
56
56
  {
57
- "text-text-dark-disabled": s
57
+ "text-text-dark-disabled": i
58
58
  },
59
- t.className
59
+ e.className
60
60
  ),
61
- children: t.title
61
+ children: e.title
62
62
  },
63
- a
63
+ d
64
64
  )) }) }),
65
- /* @__PURE__ */ r("tbody", { children: p.map((t, a) => /* @__PURE__ */ r(
65
+ /* @__PURE__ */ t("tbody", { children: p.map((e, d) => /* @__PURE__ */ t(
66
66
  "tr",
67
67
  {
68
- className: i("group", n && "cursor-pointer"),
69
- onClick: n ? () => d == null ? void 0 : d(t, a) : void 0,
70
- children: l.map((e, o) => /* @__PURE__ */ r(
68
+ className: a("group", l && "cursor-pointer"),
69
+ onClick: l ? () => s == null ? void 0 : s(e, d) : void 0,
70
+ children: n.map((r, o) => /* @__PURE__ */ t(
71
71
  "td",
72
72
  {
73
- className: i(
74
- v({
73
+ className: a(
74
+ g({
75
75
  variant: f,
76
- position: o === 0 ? "first" : o === l.length - 1 ? "last" : "middle"
76
+ position: o === 0 ? "first" : o === n.length - 1 ? "last" : "middle"
77
77
  }),
78
- n && "group-focus-within:border-icon-brand-focus group-hover:border-icon-brand-hover",
79
- e.className
78
+ l && "group-focus-within:border-icon-brand-focus group-hover:border-icon-brand-hover",
79
+ r.className
80
80
  ),
81
- children: e.render ? e.render(
82
- t[e.dataKey],
83
- t,
84
- a,
85
- s
86
- ) : /* @__PURE__ */ r(
87
- g,
81
+ children: r.render ? r.render(
82
+ e[r.dataKey],
83
+ e,
84
+ d,
85
+ i
86
+ ) : /* @__PURE__ */ t(
87
+ x,
88
88
  {
89
89
  variant: "body",
90
90
  size: "base",
91
91
  weight: "medium",
92
92
  component: "span",
93
93
  fixY: !0,
94
- className: i({
95
- "line-clamp-1": e.lineClamp === !0 || e.lineClamp === 1,
96
- "line-clamp-2": e.lineClamp === 2,
97
- "text-text-dark-disabled": s
94
+ className: a({
95
+ "line-clamp-1": r.lineClamp === !0 || r.lineClamp === 1,
96
+ "line-clamp-2": r.lineClamp === 2,
97
+ "text-text-dark-disabled": i
98
98
  }),
99
- children: t[e.dataKey]
99
+ children: e[r.dataKey]
100
100
  }
101
101
  )
102
102
  },
103
103
  o
104
104
  ))
105
105
  },
106
- a
106
+ e.id
107
107
  )) })
108
108
  ]
109
109
  }
@@ -111,5 +111,5 @@ const v = u(
111
111
  };
112
112
  export {
113
113
  K as DataTable,
114
- v as dataTableCellVariants
114
+ g as dataTableCellVariants
115
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,QAAA,MAAM,IAAI,EAAE,IAkDX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA0FrB,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA;AAaD,eAAO,MAAM,WAAW,EAAE,KAazB,CAAA;AA0CD,eAAO,MAAM,iBAAiB,EAAE,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