@ansh-ui/react 0.3.0 → 0.4.0

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 (57) hide show
  1. package/dist/{chunk-YACOHFYJ.cjs → chunk-2U7BHYIQ.cjs} +121 -121
  2. package/dist/chunk-2U7BHYIQ.cjs.map +1 -0
  3. package/dist/{chunk-WNWGYXJY.js → chunk-7QGB2X7R.js} +34 -26
  4. package/dist/chunk-7QGB2X7R.js.map +1 -0
  5. package/dist/{chunk-OLTS6G5M.js → chunk-GNA33V2J.js} +11 -6
  6. package/dist/chunk-GNA33V2J.js.map +1 -0
  7. package/dist/{chunk-IZ6T7LO3.cjs → chunk-MPX7QT4R.cjs} +2 -2
  8. package/dist/chunk-MPX7QT4R.cjs.map +1 -0
  9. package/dist/{chunk-PVDQPVYF.js → chunk-NJUVVMJV.js} +2 -2
  10. package/dist/chunk-NJUVVMJV.js.map +1 -0
  11. package/dist/{chunk-CWYBOVCZ.js → chunk-RGGNLAAA.js} +121 -121
  12. package/dist/chunk-RGGNLAAA.js.map +1 -0
  13. package/dist/{chunk-OJN5JBNP.cjs → chunk-VJI6V27F.cjs} +99 -99
  14. package/dist/chunk-VJI6V27F.cjs.map +1 -0
  15. package/dist/{chunk-HPGCILO4.js → chunk-XRKZPLUT.js} +99 -99
  16. package/dist/chunk-XRKZPLUT.js.map +1 -0
  17. package/dist/{chunk-DATBU46V.cjs → chunk-XYT6OXKP.cjs} +10 -4
  18. package/dist/chunk-XYT6OXKP.cjs.map +1 -0
  19. package/dist/{chunk-3SWO2M33.cjs → chunk-YVJB7AAZ.cjs} +34 -26
  20. package/dist/chunk-YVJB7AAZ.cjs.map +1 -0
  21. package/dist/data.cjs +16 -16
  22. package/dist/data.d.cts +23 -22
  23. package/dist/data.d.ts +23 -22
  24. package/dist/data.js +1 -1
  25. package/dist/form.cjs +36 -36
  26. package/dist/form.d.cts +2 -0
  27. package/dist/form.d.ts +2 -0
  28. package/dist/form.js +1 -1
  29. package/dist/index.cjs +99 -99
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +10 -9
  34. package/dist/index.js.map +1 -1
  35. package/dist/{motion-DsQPOsTT.d.cts → motion-C6WfBFES.d.cts} +20 -17
  36. package/dist/{motion-DoT_sTl1.d.ts → motion-ugXmf505.d.ts} +20 -17
  37. package/dist/motion.cjs +17 -17
  38. package/dist/motion.d.cts +1 -1
  39. package/dist/motion.d.ts +1 -1
  40. package/dist/motion.js +1 -1
  41. package/dist/navigation.cjs +8 -8
  42. package/dist/navigation.js +1 -1
  43. package/dist/overlay.cjs +15 -15
  44. package/dist/overlay.d.cts +14 -12
  45. package/dist/overlay.d.ts +14 -12
  46. package/dist/overlay.js +1 -1
  47. package/package.json +3 -3
  48. package/dist/chunk-3SWO2M33.cjs.map +0 -1
  49. package/dist/chunk-CWYBOVCZ.js.map +0 -1
  50. package/dist/chunk-DATBU46V.cjs.map +0 -1
  51. package/dist/chunk-HPGCILO4.js.map +0 -1
  52. package/dist/chunk-IZ6T7LO3.cjs.map +0 -1
  53. package/dist/chunk-OJN5JBNP.cjs.map +0 -1
  54. package/dist/chunk-OLTS6G5M.js.map +0 -1
  55. package/dist/chunk-PVDQPVYF.js.map +0 -1
  56. package/dist/chunk-WNWGYXJY.js.map +0 -1
  57. package/dist/chunk-YACOHFYJ.cjs.map +0 -1
package/dist/data.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkOJN5JBNP_cjs = require('./chunk-OJN5JBNP.cjs');
4
+ var chunkVJI6V27F_cjs = require('./chunk-VJI6V27F.cjs');
5
5
  require('./chunk-PO5DU3FU.cjs');
6
6
  require('./chunk-SFU5EPSN.cjs');
7
7
 
@@ -9,63 +9,63 @@ require('./chunk-SFU5EPSN.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "Avatar", {
11
11
  enumerable: true,
12
- get: function () { return chunkOJN5JBNP_cjs.Avatar; }
12
+ get: function () { return chunkVJI6V27F_cjs.Avatar; }
13
13
  });
14
14
  Object.defineProperty(exports, "AvatarGroup", {
15
15
  enumerable: true,
16
- get: function () { return chunkOJN5JBNP_cjs.AvatarGroup; }
16
+ get: function () { return chunkVJI6V27F_cjs.AvatarGroup; }
17
17
  });
18
18
  Object.defineProperty(exports, "Badge", {
19
19
  enumerable: true,
20
- get: function () { return chunkOJN5JBNP_cjs.Badge; }
20
+ get: function () { return chunkVJI6V27F_cjs.Badge; }
21
21
  });
22
22
  Object.defineProperty(exports, "CircularProgress", {
23
23
  enumerable: true,
24
- get: function () { return chunkOJN5JBNP_cjs.CircularProgress; }
24
+ get: function () { return chunkVJI6V27F_cjs.CircularProgress; }
25
25
  });
26
26
  Object.defineProperty(exports, "CodeBlock", {
27
27
  enumerable: true,
28
- get: function () { return chunkOJN5JBNP_cjs.CodeBlock; }
28
+ get: function () { return chunkVJI6V27F_cjs.CodeBlock; }
29
29
  });
30
30
  Object.defineProperty(exports, "DataTable", {
31
31
  enumerable: true,
32
- get: function () { return chunkOJN5JBNP_cjs.DataTable; }
32
+ get: function () { return chunkVJI6V27F_cjs.DataTable; }
33
33
  });
34
34
  Object.defineProperty(exports, "DescriptionList", {
35
35
  enumerable: true,
36
- get: function () { return chunkOJN5JBNP_cjs.DescriptionList; }
36
+ get: function () { return chunkVJI6V27F_cjs.DescriptionList; }
37
37
  });
38
38
  Object.defineProperty(exports, "EmptyState", {
39
39
  enumerable: true,
40
- get: function () { return chunkOJN5JBNP_cjs.EmptyState; }
40
+ get: function () { return chunkVJI6V27F_cjs.EmptyState; }
41
41
  });
42
42
  Object.defineProperty(exports, "Kbd", {
43
43
  enumerable: true,
44
- get: function () { return chunkOJN5JBNP_cjs.Kbd; }
44
+ get: function () { return chunkVJI6V27F_cjs.Kbd; }
45
45
  });
46
46
  Object.defineProperty(exports, "Meter", {
47
47
  enumerable: true,
48
- get: function () { return chunkOJN5JBNP_cjs.Meter; }
48
+ get: function () { return chunkVJI6V27F_cjs.Meter; }
49
49
  });
50
50
  Object.defineProperty(exports, "Pagination", {
51
51
  enumerable: true,
52
- get: function () { return chunkOJN5JBNP_cjs.Pagination; }
52
+ get: function () { return chunkVJI6V27F_cjs.Pagination; }
53
53
  });
54
54
  Object.defineProperty(exports, "Progress", {
55
55
  enumerable: true,
56
- get: function () { return chunkOJN5JBNP_cjs.Progress; }
56
+ get: function () { return chunkVJI6V27F_cjs.Progress; }
57
57
  });
58
58
  Object.defineProperty(exports, "Stat", {
59
59
  enumerable: true,
60
- get: function () { return chunkOJN5JBNP_cjs.Stat; }
60
+ get: function () { return chunkVJI6V27F_cjs.Stat; }
61
61
  });
62
62
  Object.defineProperty(exports, "Table", {
63
63
  enumerable: true,
64
- get: function () { return chunkOJN5JBNP_cjs.Table; }
64
+ get: function () { return chunkVJI6V27F_cjs.Table; }
65
65
  });
66
66
  Object.defineProperty(exports, "Timeline", {
67
67
  enumerable: true,
68
- get: function () { return chunkOJN5JBNP_cjs.Timeline; }
68
+ get: function () { return chunkVJI6V27F_cjs.Timeline; }
69
69
  });
70
70
  //# sourceMappingURL=data.cjs.map
71
71
  //# sourceMappingURL=data.cjs.map
package/dist/data.d.cts CHANGED
@@ -1,19 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes } from 'react';
3
3
 
4
- /**
5
- * Tables.
6
- *
7
- * A real `<table>` with `<th scope>`, not a grid of divs. The semantics are the entire point: a
8
- * screen reader announces "Column 3 of 7, Status, row 12" only if the markup says so. Every
9
- * div-based table reimplements navigation badly or not at all, and the CSS argument for divs
10
- * disappeared when `display: contents` and `position: sticky` landed.
11
- *
12
- * `DataTable` adds sorting, selection and pagination on top. It stays deliberately short of a full
13
- * data grid — no virtualisation, no column resizing, no pinned regions. Those need a different
14
- * architecture (windowing, measured columns), and half-implementing them produces a component that
15
- * breaks at exactly the scale it was added for.
16
- */
17
4
  type SortDirection = 'asc' | 'desc';
18
5
  interface SortState {
19
6
  columnId: string;
@@ -71,7 +58,22 @@ interface DataTableProps<T> {
71
58
  /** Per-row extra class, for status highlighting. */
72
59
  rowClassName?: (row: T) => string | undefined;
73
60
  }
61
+
62
+ /**
63
+ * Tables.
64
+ *
65
+ * A real `<table>` with `<th scope>`, not a grid of divs. The semantics are the entire point: a
66
+ * screen reader announces "Column 3 of 7, Status, row 12" only if the markup says so. Every
67
+ * div-based table reimplements navigation badly or not at all, and the CSS argument for divs
68
+ * disappeared when `display: contents` and `position: sticky` landed.
69
+ *
70
+ * `DataTable` adds sorting, selection and pagination on top. It stays deliberately short of a full
71
+ * data grid — no virtualisation, no column resizing, no pinned regions. Those need a different
72
+ * architecture (windowing, measured columns), and half-implementing them produces a component that
73
+ * breaks at exactly the scale it was added for.
74
+ */
74
75
  declare function DataTable<T>({ data, columns, getRowId, caption, selectable, selected, onSelectedChange, sort, defaultSort, onSortChange, pageSize, page, onPageChange, loading, emptyState, onRowClick, stickyHeader, density, striped, className, rowClassName, }: DataTableProps<T>): react.JSX.Element;
76
+
75
77
  interface PaginationProps {
76
78
  /** Zero-based. */
77
79
  page: number;
@@ -95,7 +97,7 @@ interface PaginationProps {
95
97
  * that the numbers don't already.
96
98
  */
97
99
  declare function Pagination({ page, pageCount, onPageChange, total, pageSize, siblings, className, }: PaginationProps): react.JSX.Element;
98
- /** A plain styled table, for content that isn't driven by data props. */
100
+
99
101
  declare function Table({ caption, density, striped, className, children, }: {
100
102
  caption?: string;
101
103
  density?: 'comfortable' | 'compact';
@@ -104,14 +106,6 @@ declare function Table({ caption, density, striped, className, children, }: {
104
106
  children: ReactNode;
105
107
  }): react.JSX.Element;
106
108
 
107
- /**
108
- * Small display components.
109
- *
110
- * Individually trivial, collectively most of what an application screen is made of. The care here
111
- * goes into the details that get skipped: a badge whose meaning isn't carried by colour alone, an
112
- * avatar whose fallback initials are readable against a generated background, an empty state that
113
- * says what to do next rather than just "no data".
114
- */
115
109
  type BadgeTone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
116
110
  interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
117
111
  tone?: BadgeTone;
@@ -130,6 +124,7 @@ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
130
124
  * population with a colour vision deficiency. The `dot` is decorative reinforcement.
131
125
  */
132
126
  declare function Badge({ tone, variant, size, dot, icon, className, children, ...rest }: BadgeProps): react.JSX.Element;
127
+
133
128
  interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
134
129
  src?: string;
135
130
  /** The person's name. Used for the alt text and to derive the fallback initials. */
@@ -149,6 +144,7 @@ interface AvatarGroupProps {
149
144
  }
150
145
  /** Overlapping avatars with an overflow count. */
151
146
  declare function AvatarGroup({ max, size, className, children }: AvatarGroupProps): react.JSX.Element;
147
+
152
148
  /**
153
149
  * A keyboard key.
154
150
  *
@@ -159,6 +155,7 @@ declare function Kbd({ children, className }: {
159
155
  children: string;
160
156
  className?: string;
161
157
  }): react.JSX.Element;
158
+
162
159
  interface StatProps {
163
160
  label: ReactNode;
164
161
  value: ReactNode;
@@ -179,6 +176,7 @@ interface StatProps {
179
176
  * because this is the number people scan fastest and misreading it has consequences.
180
177
  */
181
178
  declare function Stat({ label, value, delta, deltaLabel, invertDelta, hint, icon, className, }: StatProps): react.JSX.Element;
179
+
182
180
  interface EmptyStateProps {
183
181
  title: ReactNode;
184
182
  description?: ReactNode;
@@ -196,6 +194,7 @@ interface EmptyStateProps {
196
194
  * that ambiguity is where people abandon a screen.
197
195
  */
198
196
  declare function EmptyState({ title, description, icon, action, size, className, }: EmptyStateProps): react.JSX.Element;
197
+
199
198
  interface DescriptionListProps {
200
199
  items: ReadonlyArray<{
201
200
  term: ReactNode;
@@ -212,6 +211,7 @@ interface DescriptionListProps {
212
211
  * instead of reading twenty unconnected strings.
213
212
  */
214
213
  declare function DescriptionList({ items, orientation, className, }: DescriptionListProps): react.JSX.Element;
214
+
215
215
  interface TimelineItem {
216
216
  id: string;
217
217
  title: ReactNode;
@@ -232,6 +232,7 @@ declare function Timeline({ items, className, }: {
232
232
  items: readonly TimelineItem[];
233
233
  className?: string;
234
234
  }): react.JSX.Element;
235
+
235
236
  interface CodeBlockProps {
236
237
  code: string;
237
238
  language?: string;
package/dist/data.d.ts CHANGED
@@ -1,19 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes } from 'react';
3
3
 
4
- /**
5
- * Tables.
6
- *
7
- * A real `<table>` with `<th scope>`, not a grid of divs. The semantics are the entire point: a
8
- * screen reader announces "Column 3 of 7, Status, row 12" only if the markup says so. Every
9
- * div-based table reimplements navigation badly or not at all, and the CSS argument for divs
10
- * disappeared when `display: contents` and `position: sticky` landed.
11
- *
12
- * `DataTable` adds sorting, selection and pagination on top. It stays deliberately short of a full
13
- * data grid — no virtualisation, no column resizing, no pinned regions. Those need a different
14
- * architecture (windowing, measured columns), and half-implementing them produces a component that
15
- * breaks at exactly the scale it was added for.
16
- */
17
4
  type SortDirection = 'asc' | 'desc';
18
5
  interface SortState {
19
6
  columnId: string;
@@ -71,7 +58,22 @@ interface DataTableProps<T> {
71
58
  /** Per-row extra class, for status highlighting. */
72
59
  rowClassName?: (row: T) => string | undefined;
73
60
  }
61
+
62
+ /**
63
+ * Tables.
64
+ *
65
+ * A real `<table>` with `<th scope>`, not a grid of divs. The semantics are the entire point: a
66
+ * screen reader announces "Column 3 of 7, Status, row 12" only if the markup says so. Every
67
+ * div-based table reimplements navigation badly or not at all, and the CSS argument for divs
68
+ * disappeared when `display: contents` and `position: sticky` landed.
69
+ *
70
+ * `DataTable` adds sorting, selection and pagination on top. It stays deliberately short of a full
71
+ * data grid — no virtualisation, no column resizing, no pinned regions. Those need a different
72
+ * architecture (windowing, measured columns), and half-implementing them produces a component that
73
+ * breaks at exactly the scale it was added for.
74
+ */
74
75
  declare function DataTable<T>({ data, columns, getRowId, caption, selectable, selected, onSelectedChange, sort, defaultSort, onSortChange, pageSize, page, onPageChange, loading, emptyState, onRowClick, stickyHeader, density, striped, className, rowClassName, }: DataTableProps<T>): react.JSX.Element;
76
+
75
77
  interface PaginationProps {
76
78
  /** Zero-based. */
77
79
  page: number;
@@ -95,7 +97,7 @@ interface PaginationProps {
95
97
  * that the numbers don't already.
96
98
  */
97
99
  declare function Pagination({ page, pageCount, onPageChange, total, pageSize, siblings, className, }: PaginationProps): react.JSX.Element;
98
- /** A plain styled table, for content that isn't driven by data props. */
100
+
99
101
  declare function Table({ caption, density, striped, className, children, }: {
100
102
  caption?: string;
101
103
  density?: 'comfortable' | 'compact';
@@ -104,14 +106,6 @@ declare function Table({ caption, density, striped, className, children, }: {
104
106
  children: ReactNode;
105
107
  }): react.JSX.Element;
106
108
 
107
- /**
108
- * Small display components.
109
- *
110
- * Individually trivial, collectively most of what an application screen is made of. The care here
111
- * goes into the details that get skipped: a badge whose meaning isn't carried by colour alone, an
112
- * avatar whose fallback initials are readable against a generated background, an empty state that
113
- * says what to do next rather than just "no data".
114
- */
115
109
  type BadgeTone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
116
110
  interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
117
111
  tone?: BadgeTone;
@@ -130,6 +124,7 @@ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
130
124
  * population with a colour vision deficiency. The `dot` is decorative reinforcement.
131
125
  */
132
126
  declare function Badge({ tone, variant, size, dot, icon, className, children, ...rest }: BadgeProps): react.JSX.Element;
127
+
133
128
  interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
134
129
  src?: string;
135
130
  /** The person's name. Used for the alt text and to derive the fallback initials. */
@@ -149,6 +144,7 @@ interface AvatarGroupProps {
149
144
  }
150
145
  /** Overlapping avatars with an overflow count. */
151
146
  declare function AvatarGroup({ max, size, className, children }: AvatarGroupProps): react.JSX.Element;
147
+
152
148
  /**
153
149
  * A keyboard key.
154
150
  *
@@ -159,6 +155,7 @@ declare function Kbd({ children, className }: {
159
155
  children: string;
160
156
  className?: string;
161
157
  }): react.JSX.Element;
158
+
162
159
  interface StatProps {
163
160
  label: ReactNode;
164
161
  value: ReactNode;
@@ -179,6 +176,7 @@ interface StatProps {
179
176
  * because this is the number people scan fastest and misreading it has consequences.
180
177
  */
181
178
  declare function Stat({ label, value, delta, deltaLabel, invertDelta, hint, icon, className, }: StatProps): react.JSX.Element;
179
+
182
180
  interface EmptyStateProps {
183
181
  title: ReactNode;
184
182
  description?: ReactNode;
@@ -196,6 +194,7 @@ interface EmptyStateProps {
196
194
  * that ambiguity is where people abandon a screen.
197
195
  */
198
196
  declare function EmptyState({ title, description, icon, action, size, className, }: EmptyStateProps): react.JSX.Element;
197
+
199
198
  interface DescriptionListProps {
200
199
  items: ReadonlyArray<{
201
200
  term: ReactNode;
@@ -212,6 +211,7 @@ interface DescriptionListProps {
212
211
  * instead of reading twenty unconnected strings.
213
212
  */
214
213
  declare function DescriptionList({ items, orientation, className, }: DescriptionListProps): react.JSX.Element;
214
+
215
215
  interface TimelineItem {
216
216
  id: string;
217
217
  title: ReactNode;
@@ -232,6 +232,7 @@ declare function Timeline({ items, className, }: {
232
232
  items: readonly TimelineItem[];
233
233
  className?: string;
234
234
  }): react.JSX.Element;
235
+
235
236
  interface CodeBlockProps {
236
237
  code: string;
237
238
  language?: string;
package/dist/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { Avatar, AvatarGroup, Badge, CircularProgress, CodeBlock, DataTable, DescriptionList, EmptyState, Kbd, Meter, Pagination, Progress, Stat, Table, Timeline } from './chunk-HPGCILO4.js';
2
+ export { Avatar, AvatarGroup, Badge, CircularProgress, CodeBlock, DataTable, DescriptionList, EmptyState, Kbd, Meter, Pagination, Progress, Stat, Table, Timeline } from './chunk-XRKZPLUT.js';
3
3
  import './chunk-LXCIXR5T.js';
4
4
  import './chunk-H34OXXJU.js';
5
5
  //# sourceMappingURL=data.js.map
package/dist/form.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunk3SWO2M33_cjs = require('./chunk-3SWO2M33.cjs');
4
+ var chunkYVJB7AAZ_cjs = require('./chunk-YVJB7AAZ.cjs');
5
5
  require('./chunk-XMXECSQO.cjs');
6
6
  require('./chunk-PO5DU3FU.cjs');
7
7
  require('./chunk-TEPQGFR4.cjs');
@@ -11,143 +11,143 @@ require('./chunk-SFU5EPSN.cjs');
11
11
 
12
12
  Object.defineProperty(exports, "Calendar", {
13
13
  enumerable: true,
14
- get: function () { return chunk3SWO2M33_cjs.Calendar; }
14
+ get: function () { return chunkYVJB7AAZ_cjs.Calendar; }
15
15
  });
16
16
  Object.defineProperty(exports, "Checkbox", {
17
17
  enumerable: true,
18
- get: function () { return chunk3SWO2M33_cjs.Checkbox; }
18
+ get: function () { return chunkYVJB7AAZ_cjs.Checkbox; }
19
19
  });
20
20
  Object.defineProperty(exports, "ChoiceCard", {
21
21
  enumerable: true,
22
- get: function () { return chunk3SWO2M33_cjs.ChoiceCard; }
22
+ get: function () { return chunkYVJB7AAZ_cjs.ChoiceCard; }
23
23
  });
24
24
  Object.defineProperty(exports, "ColorPicker", {
25
25
  enumerable: true,
26
- get: function () { return chunk3SWO2M33_cjs.ColorPicker; }
26
+ get: function () { return chunkYVJB7AAZ_cjs.ColorPicker; }
27
27
  });
28
28
  Object.defineProperty(exports, "Combobox", {
29
29
  enumerable: true,
30
- get: function () { return chunk3SWO2M33_cjs.Combobox; }
30
+ get: function () { return chunkYVJB7AAZ_cjs.Combobox; }
31
31
  });
32
32
  Object.defineProperty(exports, "DatePicker", {
33
33
  enumerable: true,
34
- get: function () { return chunk3SWO2M33_cjs.DatePicker; }
34
+ get: function () { return chunkYVJB7AAZ_cjs.DatePicker; }
35
35
  });
36
36
  Object.defineProperty(exports, "DateRangePicker", {
37
37
  enumerable: true,
38
- get: function () { return chunk3SWO2M33_cjs.DateRangePicker; }
38
+ get: function () { return chunkYVJB7AAZ_cjs.DateRangePicker; }
39
39
  });
40
40
  Object.defineProperty(exports, "Dropzone", {
41
41
  enumerable: true,
42
- get: function () { return chunk3SWO2M33_cjs.Dropzone; }
42
+ get: function () { return chunkYVJB7AAZ_cjs.Dropzone; }
43
43
  });
44
44
  Object.defineProperty(exports, "Field", {
45
45
  enumerable: true,
46
- get: function () { return chunk3SWO2M33_cjs.Field; }
46
+ get: function () { return chunkYVJB7AAZ_cjs.Field; }
47
47
  });
48
48
  Object.defineProperty(exports, "Fieldset", {
49
49
  enumerable: true,
50
- get: function () { return chunk3SWO2M33_cjs.Fieldset; }
50
+ get: function () { return chunkYVJB7AAZ_cjs.Fieldset; }
51
51
  });
52
52
  Object.defineProperty(exports, "Input", {
53
53
  enumerable: true,
54
- get: function () { return chunk3SWO2M33_cjs.Input; }
54
+ get: function () { return chunkYVJB7AAZ_cjs.Input; }
55
55
  });
56
56
  Object.defineProperty(exports, "NumberInput", {
57
57
  enumerable: true,
58
- get: function () { return chunk3SWO2M33_cjs.NumberInput; }
58
+ get: function () { return chunkYVJB7AAZ_cjs.NumberInput; }
59
59
  });
60
60
  Object.defineProperty(exports, "OptionList", {
61
61
  enumerable: true,
62
- get: function () { return chunk3SWO2M33_cjs.OptionList; }
62
+ get: function () { return chunkYVJB7AAZ_cjs.OptionList; }
63
63
  });
64
64
  Object.defineProperty(exports, "PinInput", {
65
65
  enumerable: true,
66
- get: function () { return chunk3SWO2M33_cjs.PinInput; }
66
+ get: function () { return chunkYVJB7AAZ_cjs.PinInput; }
67
67
  });
68
68
  Object.defineProperty(exports, "Radio", {
69
69
  enumerable: true,
70
- get: function () { return chunk3SWO2M33_cjs.Radio; }
70
+ get: function () { return chunkYVJB7AAZ_cjs.Radio; }
71
71
  });
72
72
  Object.defineProperty(exports, "RadioGroup", {
73
73
  enumerable: true,
74
- get: function () { return chunk3SWO2M33_cjs.RadioGroup; }
74
+ get: function () { return chunkYVJB7AAZ_cjs.RadioGroup; }
75
75
  });
76
76
  Object.defineProperty(exports, "RangeSlider", {
77
77
  enumerable: true,
78
- get: function () { return chunk3SWO2M33_cjs.RangeSlider; }
78
+ get: function () { return chunkYVJB7AAZ_cjs.RangeSlider; }
79
79
  });
80
80
  Object.defineProperty(exports, "Rating", {
81
81
  enumerable: true,
82
- get: function () { return chunk3SWO2M33_cjs.Rating; }
82
+ get: function () { return chunkYVJB7AAZ_cjs.Rating; }
83
83
  });
84
84
  Object.defineProperty(exports, "Select", {
85
85
  enumerable: true,
86
- get: function () { return chunk3SWO2M33_cjs.Select; }
86
+ get: function () { return chunkYVJB7AAZ_cjs.Select; }
87
87
  });
88
88
  Object.defineProperty(exports, "Slider", {
89
89
  enumerable: true,
90
- get: function () { return chunk3SWO2M33_cjs.Slider; }
90
+ get: function () { return chunkYVJB7AAZ_cjs.Slider; }
91
91
  });
92
92
  Object.defineProperty(exports, "Switch", {
93
93
  enumerable: true,
94
- get: function () { return chunk3SWO2M33_cjs.Switch; }
94
+ get: function () { return chunkYVJB7AAZ_cjs.Switch; }
95
95
  });
96
96
  Object.defineProperty(exports, "TagsInput", {
97
97
  enumerable: true,
98
- get: function () { return chunk3SWO2M33_cjs.TagsInput; }
98
+ get: function () { return chunkYVJB7AAZ_cjs.TagsInput; }
99
99
  });
100
100
  Object.defineProperty(exports, "Textarea", {
101
101
  enumerable: true,
102
- get: function () { return chunk3SWO2M33_cjs.Textarea; }
102
+ get: function () { return chunkYVJB7AAZ_cjs.Textarea; }
103
103
  });
104
104
  Object.defineProperty(exports, "VisuallyHidden", {
105
105
  enumerable: true,
106
- get: function () { return chunk3SWO2M33_cjs.VisuallyHidden; }
106
+ get: function () { return chunkYVJB7AAZ_cjs.VisuallyHidden; }
107
107
  });
108
108
  Object.defineProperty(exports, "addDays", {
109
109
  enumerable: true,
110
- get: function () { return chunk3SWO2M33_cjs.addDays; }
110
+ get: function () { return chunkYVJB7AAZ_cjs.addDays; }
111
111
  });
112
112
  Object.defineProperty(exports, "addMonths", {
113
113
  enumerable: true,
114
- get: function () { return chunk3SWO2M33_cjs.addMonths; }
114
+ get: function () { return chunkYVJB7AAZ_cjs.addMonths; }
115
115
  });
116
116
  Object.defineProperty(exports, "filterOptions", {
117
117
  enumerable: true,
118
- get: function () { return chunk3SWO2M33_cjs.filterOptions; }
118
+ get: function () { return chunkYVJB7AAZ_cjs.filterOptions; }
119
119
  });
120
120
  Object.defineProperty(exports, "firstEnabled", {
121
121
  enumerable: true,
122
- get: function () { return chunk3SWO2M33_cjs.firstEnabled; }
122
+ get: function () { return chunkYVJB7AAZ_cjs.firstEnabled; }
123
123
  });
124
124
  Object.defineProperty(exports, "isSameDay", {
125
125
  enumerable: true,
126
- get: function () { return chunk3SWO2M33_cjs.isSameDay; }
126
+ get: function () { return chunkYVJB7AAZ_cjs.isSameDay; }
127
127
  });
128
128
  Object.defineProperty(exports, "scoreOption", {
129
129
  enumerable: true,
130
- get: function () { return chunk3SWO2M33_cjs.scoreOption; }
130
+ get: function () { return chunkYVJB7AAZ_cjs.scoreOption; }
131
131
  });
132
132
  Object.defineProperty(exports, "startOfDay", {
133
133
  enumerable: true,
134
- get: function () { return chunk3SWO2M33_cjs.startOfDay; }
134
+ get: function () { return chunkYVJB7AAZ_cjs.startOfDay; }
135
135
  });
136
136
  Object.defineProperty(exports, "stepActive", {
137
137
  enumerable: true,
138
- get: function () { return chunk3SWO2M33_cjs.stepActive; }
138
+ get: function () { return chunkYVJB7AAZ_cjs.stepActive; }
139
139
  });
140
140
  Object.defineProperty(exports, "useFieldContext", {
141
141
  enumerable: true,
142
- get: function () { return chunk3SWO2M33_cjs.useFieldContext; }
142
+ get: function () { return chunkYVJB7AAZ_cjs.useFieldContext; }
143
143
  });
144
144
  Object.defineProperty(exports, "useFieldControl", {
145
145
  enumerable: true,
146
- get: function () { return chunk3SWO2M33_cjs.useFieldControl; }
146
+ get: function () { return chunkYVJB7AAZ_cjs.useFieldControl; }
147
147
  });
148
148
  Object.defineProperty(exports, "useTypeahead", {
149
149
  enumerable: true,
150
- get: function () { return chunk3SWO2M33_cjs.useTypeahead; }
150
+ get: function () { return chunkYVJB7AAZ_cjs.useTypeahead; }
151
151
  });
152
152
  //# sourceMappingURL=form.cjs.map
153
153
  //# sourceMappingURL=form.cjs.map
package/dist/form.d.cts CHANGED
@@ -103,6 +103,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
103
103
  * than the icon being an absolutely positioned sibling that swallows it.
104
104
  */
105
105
  declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
106
+
106
107
  interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
107
108
  /** Grow with the content instead of scrolling. */
108
109
  autoResize?: boolean;
@@ -114,6 +115,7 @@ interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
114
115
  }
115
116
  /** A multi-line text input, optionally growing with its content. */
116
117
  declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
118
+
117
119
  interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'type'> {
118
120
  value?: number;
119
121
  defaultValue?: number;
package/dist/form.d.ts CHANGED
@@ -103,6 +103,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
103
103
  * than the icon being an absolutely positioned sibling that swallows it.
104
104
  */
105
105
  declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
106
+
106
107
  interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
107
108
  /** Grow with the content instead of scrolling. */
108
109
  autoResize?: boolean;
@@ -114,6 +115,7 @@ interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
114
115
  }
115
116
  /** A multi-line text input, optionally growing with its content. */
116
117
  declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
118
+
117
119
  interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'type'> {
118
120
  value?: number;
119
121
  defaultValue?: number;
package/dist/form.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { Calendar, Checkbox, ChoiceCard, ColorPicker, Combobox, DatePicker, DateRangePicker, Dropzone, Field, Fieldset, Input, NumberInput, OptionList, PinInput, Radio, RadioGroup, RangeSlider, Rating, Select, Slider, Switch, TagsInput, Textarea, VisuallyHidden, addDays, addMonths, filterOptions, firstEnabled, isSameDay, scoreOption, startOfDay, stepActive, useFieldContext, useFieldControl, useTypeahead } from './chunk-WNWGYXJY.js';
2
+ export { Calendar, Checkbox, ChoiceCard, ColorPicker, Combobox, DatePicker, DateRangePicker, Dropzone, Field, Fieldset, Input, NumberInput, OptionList, PinInput, Radio, RadioGroup, RangeSlider, Rating, Select, Slider, Switch, TagsInput, Textarea, VisuallyHidden, addDays, addMonths, filterOptions, firstEnabled, isSameDay, scoreOption, startOfDay, stepActive, useFieldContext, useFieldControl, useTypeahead } from './chunk-7QGB2X7R.js';
3
3
  import './chunk-XEP6P7E6.js';
4
4
  import './chunk-LXCIXR5T.js';
5
5
  import './chunk-P5MRISBP.js';