@alexgorbatchev/shadcn 0.0.27 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@ import {
24
24
  TableRow2,
25
25
  TableHead2,
26
26
  TableCell2
27
- } from "../../chunk-0y0kqaqj.js";
27
+ } from "../../chunk-v0k5jnk5.js";
28
28
 
29
29
  // src/components/gantt/Gantt.tsx
30
30
  import { useId, useState } from "react";
@@ -11,7 +11,6 @@ interface IVirtualTableProps<T> {
11
11
  renderRow: (item: T, props: IVirtualTableRowProps) => ReactNode;
12
12
  header: ReactNode;
13
13
  columns?: ReactNode;
14
- columnCount: number;
15
14
  label: string;
16
15
  maxHeight?: number | string;
17
16
  estimateRowHeight?: number;
@@ -19,5 +18,5 @@ interface IVirtualTableProps<T> {
19
18
  retainedKeys?: readonly Key[];
20
19
  layout?: ComponentProps<typeof Table>["layout"];
21
20
  }
22
- export declare function VirtualTable<T>({ items, getItemKey, renderRow, header, columns, columnCount, label, maxHeight, estimateRowHeight, overscan, retainedKeys, layout, }: IVirtualTableProps<T>): ReactElement;
21
+ export declare function VirtualTable<T>({ items, getItemKey, renderRow, header, columns, label, maxHeight, estimateRowHeight, overscan, retainedKeys, layout, }: IVirtualTableProps<T>): ReactElement;
23
22
  export {};
@@ -3,7 +3,7 @@ import {
3
3
  Table2,
4
4
  TableHeader2,
5
5
  TableBody2
6
- } from "../../chunk-0y0kqaqj.js";
6
+ } from "../../chunk-v0k5jnk5.js";
7
7
 
8
8
  // src/components/virtual-table/VirtualTable.tsx
9
9
  import {
@@ -21,7 +21,6 @@ function VirtualTable({
21
21
  renderRow,
22
22
  header,
23
23
  columns,
24
- columnCount,
25
24
  label,
26
25
  maxHeight = "65vh",
27
26
  estimateRowHeight = 80,
@@ -74,7 +73,6 @@ function VirtualTable({
74
73
  row.start > (rows[index - 1]?.end ?? 0) && /* @__PURE__ */ jsx("tr", {
75
74
  "aria-hidden": "true",
76
75
  children: /* @__PURE__ */ jsx("td", {
77
- colSpan: columnCount,
78
76
  style: { height: row.start - (rows[index - 1]?.end ?? 0), padding: 0, border: 0 }
79
77
  })
80
78
  }),
@@ -88,7 +86,6 @@ function VirtualTable({
88
86
  last && virtualizer.getTotalSize() > last.end && /* @__PURE__ */ jsx("tr", {
89
87
  "aria-hidden": "true",
90
88
  children: /* @__PURE__ */ jsx("td", {
91
- colSpan: columnCount,
92
89
  style: { height: virtualizer.getTotalSize() - last.end, padding: 0, border: 0 }
93
90
  })
94
91
  })
package/dist/index.d.ts CHANGED
@@ -59,7 +59,7 @@ export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMe
59
59
  export { Progress, ProgressTrack, ProgressIndicator, ProgressLabel, ProgressValue } from "./components/Progress.js";
60
60
  export { Collapsible, CollapsibleTrigger, CollapsibleContent } from "./components/Collapsible.js";
61
61
  export { Spinner } from "./components/Spinner.js";
62
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./components/Table.js";
62
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, TableColumnGroup, TableColumn, } from "./components/Table.js";
63
63
  export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "./components/NativeSelect.js";
64
64
  export { Kbd, KbdGroup } from "./components/Kbd.js";
65
65
  export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, } from "./components/Item.js";
package/dist/index.js CHANGED
@@ -195,8 +195,10 @@ import {
195
195
  TableRow2,
196
196
  TableHead2,
197
197
  TableCell2,
198
+ TableColumnGroup2,
199
+ TableColumn2,
198
200
  TableCaption2
199
- } from "./chunk-0y0kqaqj.js";
201
+ } from "./chunk-v0k5jnk5.js";
200
202
  import {
201
203
  NativeSelect2,
202
204
  NativeSelectOption2,
@@ -4395,6 +4397,8 @@ export {
4395
4397
  TableBody2 as TableBody,
4396
4398
  TableCaption2 as TableCaption,
4397
4399
  TableCell2 as TableCell,
4400
+ TableColumn2 as TableColumn,
4401
+ TableColumnGroup2 as TableColumnGroup,
4398
4402
  TableFooter2 as TableFooter,
4399
4403
  TableHead2 as TableHead,
4400
4404
  TableHeader2 as TableHeader,
@@ -0,0 +1,497 @@
1
+ Bundled EventCalendar runtime licenses
2
+
3
+ Generated from the calendar build input graph. React and the package's external dependencies are not included.
4
+
5
+ ========================================================================
6
+ @babel/runtime@7.29.10
7
+ ========================================================================
8
+
9
+ MIT License
10
+
11
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining
14
+ a copy of this software and associated documentation files (the
15
+ "Software"), to deal in the Software without restriction, including
16
+ without limitation the rights to use, copy, modify, merge, publish,
17
+ distribute, sublicense, and/or sell copies of the Software, and to
18
+ permit persons to whom the Software is furnished to do so, subject to
19
+ the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be
22
+ included in all copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+
32
+ ========================================================================
33
+ @popperjs/core@2.11.8
34
+ ========================================================================
35
+
36
+ The MIT License (MIT)
37
+
38
+ Copyright (c) 2019 Federico Zivolo
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
41
+ this software and associated documentation files (the "Software"), to deal in
42
+ the Software without restriction, including without limitation the rights to
43
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
44
+ the Software, and to permit persons to whom the Software is furnished to do so,
45
+ subject to the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be included in all
48
+ copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
52
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
53
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
54
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
55
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
56
+
57
+ ========================================================================
58
+ @restart/hooks@0.4.16
59
+ ========================================================================
60
+
61
+ MIT License
62
+
63
+ Copyright (c) 2018 Jason Quense
64
+
65
+ Permission is hereby granted, free of charge, to any person obtaining a copy
66
+ of this software and associated documentation files (the "Software"), to deal
67
+ in the Software without restriction, including without limitation the rights
68
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
69
+ copies of the Software, and to permit persons to whom the Software is
70
+ furnished to do so, subject to the following conditions:
71
+
72
+ The above copyright notice and this permission notice shall be included in all
73
+ copies or substantial portions of the Software.
74
+
75
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
80
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
81
+ SOFTWARE.
82
+
83
+ ========================================================================
84
+ date-arithmetic@4.1.0
85
+ ========================================================================
86
+
87
+ The MIT License (MIT)
88
+
89
+ Copyright (c) 2014 Jason Quense
90
+
91
+ Permission is hereby granted, free of charge, to any person obtaining a copy
92
+ of this software and associated documentation files (the "Software"), to deal
93
+ in the Software without restriction, including without limitation the rights
94
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
95
+ copies of the Software, and to permit persons to whom the Software is
96
+ furnished to do so, subject to the following conditions:
97
+
98
+ The above copyright notice and this permission notice shall be included in all
99
+ copies or substantial portions of the Software.
100
+
101
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
106
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
107
+ SOFTWARE.
108
+
109
+ ========================================================================
110
+ dayjs@1.11.23
111
+ ========================================================================
112
+
113
+ MIT License
114
+
115
+ Copyright (c) 2018-present, iamkun
116
+
117
+ Permission is hereby granted, free of charge, to any person obtaining a copy
118
+ of this software and associated documentation files (the "Software"), to deal
119
+ in the Software without restriction, including without limitation the rights
120
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
121
+ copies of the Software, and to permit persons to whom the Software is
122
+ furnished to do so, subject to the following conditions:
123
+
124
+ The above copyright notice and this permission notice shall be included in all
125
+ copies or substantial portions of the Software.
126
+
127
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
128
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
129
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
130
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
131
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
132
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
133
+ SOFTWARE.
134
+
135
+ ========================================================================
136
+ dom-helpers@6.0.1
137
+ ========================================================================
138
+
139
+ The MIT License (MIT)
140
+
141
+ Copyright (c) 2015 Jason Quense
142
+
143
+ Permission is hereby granted, free of charge, to any person obtaining a copy
144
+ of this software and associated documentation files (the "Software"), to deal
145
+ in the Software without restriction, including without limitation the rights
146
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
147
+ copies of the Software, and to permit persons to whom the Software is
148
+ furnished to do so, subject to the following conditions:
149
+
150
+ The above copyright notice and this permission notice shall be included in all
151
+ copies or substantial portions of the Software.
152
+
153
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
154
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
155
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
156
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
157
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
158
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
159
+ SOFTWARE.
160
+
161
+ ========================================================================
162
+ invariant@2.2.4
163
+ ========================================================================
164
+
165
+ MIT License
166
+
167
+ Copyright (c) 2013-present, Facebook, Inc.
168
+
169
+ Permission is hereby granted, free of charge, to any person obtaining a copy
170
+ of this software and associated documentation files (the "Software"), to deal
171
+ in the Software without restriction, including without limitation the rights
172
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
173
+ copies of the Software, and to permit persons to whom the Software is
174
+ furnished to do so, subject to the following conditions:
175
+
176
+ The above copyright notice and this permission notice shall be included in all
177
+ copies or substantial portions of the Software.
178
+
179
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
180
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
181
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
182
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
183
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
184
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
185
+ SOFTWARE.
186
+
187
+ ========================================================================
188
+ lodash@4.18.1
189
+ ========================================================================
190
+
191
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
192
+
193
+ Based on Underscore.js, copyright Jeremy Ashkenas,
194
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
195
+
196
+ This software consists of voluntary contributions made by many
197
+ individuals. For exact contribution history, see the revision history
198
+ available at https://github.com/lodash/lodash
199
+
200
+ The following license applies to all parts of this software except as
201
+ documented below:
202
+
203
+ ====
204
+
205
+ Permission is hereby granted, free of charge, to any person obtaining
206
+ a copy of this software and associated documentation files (the
207
+ "Software"), to deal in the Software without restriction, including
208
+ without limitation the rights to use, copy, modify, merge, publish,
209
+ distribute, sublicense, and/or sell copies of the Software, and to
210
+ permit persons to whom the Software is furnished to do so, subject to
211
+ the following conditions:
212
+
213
+ The above copyright notice and this permission notice shall be
214
+ included in all copies or substantial portions of the Software.
215
+
216
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
217
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
218
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
219
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
220
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
221
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
222
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
223
+
224
+ ====
225
+
226
+ Copyright and related rights for sample code are waived via CC0. Sample
227
+ code is defined as all source code displayed within the prose of the
228
+ documentation.
229
+
230
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
231
+
232
+ ====
233
+
234
+ Files located in the node_modules and vendor directories are externally
235
+ maintained libraries used by this software which have their own
236
+ licenses; we recommend you read them, as their terms may differ from the
237
+ terms above.
238
+
239
+ ========================================================================
240
+ memoize-one@6.0.0
241
+ ========================================================================
242
+
243
+ MIT License
244
+
245
+ Copyright (c) 2019 Alexander Reardon
246
+
247
+ Permission is hereby granted, free of charge, to any person obtaining a copy
248
+ of this software and associated documentation files (the "Software"), to deal
249
+ in the Software without restriction, including without limitation the rights
250
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
251
+ copies of the Software, and to permit persons to whom the Software is
252
+ furnished to do so, subject to the following conditions:
253
+
254
+ The above copyright notice and this permission notice shall be included in all
255
+ copies or substantial portions of the Software.
256
+
257
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
258
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
259
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
260
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
261
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
262
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
263
+ SOFTWARE.
264
+
265
+ ========================================================================
266
+ object-assign@4.1.1
267
+ ========================================================================
268
+
269
+ The MIT License (MIT)
270
+
271
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
272
+
273
+ Permission is hereby granted, free of charge, to any person obtaining a copy
274
+ of this software and associated documentation files (the "Software"), to deal
275
+ in the Software without restriction, including without limitation the rights
276
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
277
+ copies of the Software, and to permit persons to whom the Software is
278
+ furnished to do so, subject to the following conditions:
279
+
280
+ The above copyright notice and this permission notice shall be included in
281
+ all copies or substantial portions of the Software.
282
+
283
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
284
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
285
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
286
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
287
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
288
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
289
+ THE SOFTWARE.
290
+
291
+ ========================================================================
292
+ prop-types@15.8.1
293
+ ========================================================================
294
+
295
+ MIT License
296
+
297
+ Copyright (c) 2013-present, Facebook, Inc.
298
+
299
+ Permission is hereby granted, free of charge, to any person obtaining a copy
300
+ of this software and associated documentation files (the "Software"), to deal
301
+ in the Software without restriction, including without limitation the rights
302
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
303
+ copies of the Software, and to permit persons to whom the Software is
304
+ furnished to do so, subject to the following conditions:
305
+
306
+ The above copyright notice and this permission notice shall be included in all
307
+ copies or substantial portions of the Software.
308
+
309
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
310
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
311
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
312
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
313
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
314
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
315
+ SOFTWARE.
316
+
317
+ ========================================================================
318
+ react-is@16.13.1
319
+ ========================================================================
320
+
321
+ MIT License
322
+
323
+ Copyright (c) Facebook, Inc. and its affiliates.
324
+
325
+ Permission is hereby granted, free of charge, to any person obtaining a copy
326
+ of this software and associated documentation files (the "Software"), to deal
327
+ in the Software without restriction, including without limitation the rights
328
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
329
+ copies of the Software, and to permit persons to whom the Software is
330
+ furnished to do so, subject to the following conditions:
331
+
332
+ The above copyright notice and this permission notice shall be included in all
333
+ copies or substantial portions of the Software.
334
+
335
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
336
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
337
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
338
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
339
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
340
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
341
+ SOFTWARE.
342
+
343
+ ========================================================================
344
+ react-big-calendar@1.20.0
345
+ ========================================================================
346
+
347
+ The MIT License (MIT)
348
+
349
+ Copyright (c) 2015-present Jason Quense
350
+
351
+ Permission is hereby granted, free of charge, to any person obtaining a copy
352
+ of this software and associated documentation files (the "Software"), to deal
353
+ in the Software without restriction, including without limitation the rights
354
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
355
+ copies of the Software, and to permit persons to whom the Software is
356
+ furnished to do so, subject to the following conditions:
357
+
358
+ The above copyright notice and this permission notice shall be included in all
359
+ copies or substantial portions of the Software.
360
+
361
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
362
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
363
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
364
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
365
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
366
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
367
+ SOFTWARE.
368
+
369
+ ========================================================================
370
+ react-lifecycles-compat@3.0.4
371
+ ========================================================================
372
+
373
+ MIT License
374
+
375
+ Copyright (c) 2013-present, Facebook, Inc.
376
+
377
+ Permission is hereby granted, free of charge, to any person obtaining a copy
378
+ of this software and associated documentation files (the "Software"), to deal
379
+ in the Software without restriction, including without limitation the rights
380
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
381
+ copies of the Software, and to permit persons to whom the Software is
382
+ furnished to do so, subject to the following conditions:
383
+
384
+ The above copyright notice and this permission notice shall be included in all
385
+ copies or substantial portions of the Software.
386
+
387
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
388
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
389
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
390
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
391
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
392
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
393
+ SOFTWARE.
394
+
395
+ ========================================================================
396
+ react-overlays@5.2.1
397
+ ========================================================================
398
+
399
+ The MIT License (MIT)
400
+
401
+ Copyright (c) 2015 react-bootstrap
402
+
403
+ Permission is hereby granted, free of charge, to any person obtaining a copy
404
+ of this software and associated documentation files (the "Software"), to deal
405
+ in the Software without restriction, including without limitation the rights
406
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
407
+ copies of the Software, and to permit persons to whom the Software is
408
+ furnished to do so, subject to the following conditions:
409
+
410
+ The above copyright notice and this permission notice shall be included in all
411
+ copies or substantial portions of the Software.
412
+
413
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
414
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
415
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
416
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
417
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
418
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
419
+ SOFTWARE.
420
+
421
+ ========================================================================
422
+ dom-helpers@5.2.1
423
+ ========================================================================
424
+
425
+ The MIT License (MIT)
426
+
427
+ Copyright (c) 2015 Jason Quense
428
+
429
+ Permission is hereby granted, free of charge, to any person obtaining a copy
430
+ of this software and associated documentation files (the "Software"), to deal
431
+ in the Software without restriction, including without limitation the rights
432
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
433
+ copies of the Software, and to permit persons to whom the Software is
434
+ furnished to do so, subject to the following conditions:
435
+
436
+ The above copyright notice and this permission notice shall be included in all
437
+ copies or substantial portions of the Software.
438
+
439
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
440
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
441
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
442
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
443
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
444
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
445
+ SOFTWARE.
446
+
447
+ ========================================================================
448
+ uncontrollable@7.2.1
449
+ ========================================================================
450
+
451
+ The MIT License (MIT)
452
+
453
+ Copyright (c) 2015 Jason Quense
454
+
455
+ Permission is hereby granted, free of charge, to any person obtaining a copy
456
+ of this software and associated documentation files (the "Software"), to deal
457
+ in the Software without restriction, including without limitation the rights
458
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
459
+ copies of the Software, and to permit persons to whom the Software is
460
+ furnished to do so, subject to the following conditions:
461
+
462
+ The above copyright notice and this permission notice shall be included in all
463
+ copies or substantial portions of the Software.
464
+
465
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
466
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
467
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
468
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
469
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
470
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
471
+ SOFTWARE.
472
+
473
+ ========================================================================
474
+ warning@4.0.3
475
+ ========================================================================
476
+
477
+ MIT License
478
+
479
+ Copyright (c) 2013-present, Facebook, Inc.
480
+
481
+ Permission is hereby granted, free of charge, to any person obtaining a copy
482
+ of this software and associated documentation files (the "Software"), to deal
483
+ in the Software without restriction, including without limitation the rights
484
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
485
+ copies of the Software, and to permit persons to whom the Software is
486
+ furnished to do so, subject to the following conditions:
487
+
488
+ The above copyright notice and this permission notice shall be included in all
489
+ copies or substantial portions of the Software.
490
+
491
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
492
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
493
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
494
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
495
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
496
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
497
+ SOFTWARE.
@@ -8,7 +8,7 @@ Source: src/components/stories/data-display/Table.stories.tsx
8
8
  ## Public imports
9
9
 
10
10
  ```tsx
11
- import { Dialog, DialogContent, DialogTitle, DialogDescription, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Button, DirectionProvider, Checkbox, Input, Field, FieldGroup, FieldLabel, NativeSelect, NativeSelectOption } from "@alexgorbatchev/shadcn";
11
+ import { Dialog, DialogContent, DialogTitle, DialogDescription, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, Table, TableBody, TableCaption, TableCell, TableColumn, TableColumnGroup, TableFooter, TableHead, TableHeader, TableRow, Button, DirectionProvider, Checkbox, Input, Field, FieldGroup, FieldLabel, NativeSelect, NativeSelectOption } from "@alexgorbatchev/shadcn";
12
12
  ```
13
13
 
14
14
  ## Supporting imports
@@ -252,3 +252,37 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
252
252
  }
253
253
  }
254
254
  ```
255
+
256
+ ### ResponsiveColumnWidths
257
+
258
+ ```tsx
259
+ {
260
+ render: function ResponsiveColumnWidths() {
261
+ const [isWide, setWide] = useState(false);
262
+ return (<>
263
+ <Button onClick={() => setWide(!isWide)}>Resize table</Button>
264
+ {/* The outer width differs from the table container, as when a scroll viewport narrows the table. */}
265
+ <div className={isWide ? "w-[420px]" : "w-[390px]"}>
266
+ <Table layout="fixed">
267
+ <TableColumnGroup>
268
+ <TableColumn />
269
+ <TableColumn visibleFrom="container-sm" style={{ width: 60 }}/>
270
+ </TableColumnGroup>
271
+ <TableHeader>
272
+ <TableRow>
273
+ <TableHead>Title</TableHead>
274
+ <TableHead visibleFrom="container-sm">BPM</TableHead>
275
+ </TableRow>
276
+ </TableHeader>
277
+ <TableBody>
278
+ <TableRow>
279
+ <TableCell>First light</TableCell>
280
+ <TableCell visibleFrom="container-sm">123</TableCell>
281
+ </TableRow>
282
+ </TableBody>
283
+ </Table>
284
+ </div>
285
+ </>);
286
+ }
287
+ }
288
+ ```