laif-ds 0.1.4 → 0.1.6

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 (45) hide show
  1. package/dist/components/ui/button.js +1 -1
  2. package/dist/components/ui/card.js +41 -34
  3. package/dist/components/ui/data-table.js +122 -0
  4. package/dist/components/ui/toaster.js +26 -0
  5. package/dist/components/ui/typo.js +53 -0
  6. package/dist/dist/_virtual/jsx-runtime.js +6 -0
  7. package/dist/dist/_virtual/jsx-runtime2.js +5 -0
  8. package/dist/dist/_virtual/react-jsx-runtime.development.js +5 -0
  9. package/dist/dist/_virtual/react-jsx-runtime.production.js +5 -0
  10. package/dist/dist/components/ui/checkbox.js +32 -0
  11. package/dist/dist/components/ui/scroll-area.js +61 -0
  12. package/dist/dist/components/ui/table.js +87 -0
  13. package/dist/dist/lib/utils.js +9 -0
  14. package/dist/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  15. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  16. package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
  17. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  18. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  19. package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  20. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
  21. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  22. package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
  23. package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  24. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
  25. package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +33 -0
  26. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  27. package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
  28. package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  29. package/dist/dist/node_modules/clsx/dist/clsx.js +18 -0
  30. package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +41 -0
  31. package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +28 -0
  32. package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
  33. package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  34. package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +20 -0
  35. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
  36. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
  37. package/dist/dist/node_modules/react/jsx-runtime.js +11 -0
  38. package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2732 -0
  39. package/dist/index.d.ts +85 -18
  40. package/dist/index.js +253 -249
  41. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +103 -0
  42. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1896 -0
  43. package/dist/styles.css +1 -1
  44. package/package.json +9 -7
  45. package/dist/components/ui/sonner.js +0 -23
@@ -0,0 +1,103 @@
1
+ "use client";
2
+ import * as o from "react";
3
+ import { createTable as u } from "../../../table-core/build/lib/index.js";
4
+ import { ColumnFaceting as C, ColumnFiltering as S, ColumnGrouping as w, ColumnOrdering as b, ColumnPinning as y, ColumnSizing as F, ColumnVisibility as h, GlobalFaceting as x, GlobalFiltering as O, Headers as M, RowExpanding as P, RowPagination as v, RowPinning as E, RowSelection as G, RowSorting as $, _getVisibleLeafColumns as A, aggregationFns as V, buildHeaderGroups as j, createCell as k, createColumn as z, createRow as H, defaultColumnSizing as N, expandRows as T, filterFns as U, flattenBy as _, functionalUpdate as B, getCoreRowModel as L, getFilteredRowModel as q, getMemoOptions as D, getPaginationRowModel as I, getSortedRowModel as J, isFunction as K, isNumberArray as Q, isRowSelected as W, isSubRowSelected as X, makeStateUpdater as Y, memo as Z, orderColumns as ee, passiveEventSupported as te, reSplitAlphaNumeric as ne, selectRowsFn as oe, shouldAutoRemoveFilter as re, sortingFns as ie } from "../../../table-core/build/lib/index.js";
5
+ /**
6
+ * react-table
7
+ *
8
+ * Copyright (c) TanStack
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE.md file in the root directory of this source tree.
12
+ *
13
+ * @license MIT
14
+ */
15
+ function d(e, t) {
16
+ return e ? s(e) ? /* @__PURE__ */ o.createElement(e, t) : e : null;
17
+ }
18
+ function s(e) {
19
+ return c(e) || typeof e == "function" || g(e);
20
+ }
21
+ function c(e) {
22
+ return typeof e == "function" && (() => {
23
+ const t = Object.getPrototypeOf(e);
24
+ return t.prototype && t.prototype.isReactComponent;
25
+ })();
26
+ }
27
+ function g(e) {
28
+ return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
29
+ }
30
+ function m(e) {
31
+ const t = {
32
+ state: {},
33
+ // Dummy state
34
+ onStateChange: () => {
35
+ },
36
+ // noop
37
+ renderFallbackValue: null,
38
+ ...e
39
+ }, [n] = o.useState(() => ({
40
+ current: u(t)
41
+ })), [i, a] = o.useState(() => n.current.initialState);
42
+ return n.current.setOptions((l) => ({
43
+ ...l,
44
+ ...e,
45
+ state: {
46
+ ...i,
47
+ ...e.state
48
+ },
49
+ // Similarly, we'll maintain both our internal state and any user-provided
50
+ // state.
51
+ onStateChange: (r) => {
52
+ a(r), e.onStateChange == null || e.onStateChange(r);
53
+ }
54
+ })), n.current;
55
+ }
56
+ export {
57
+ C as ColumnFaceting,
58
+ S as ColumnFiltering,
59
+ w as ColumnGrouping,
60
+ b as ColumnOrdering,
61
+ y as ColumnPinning,
62
+ F as ColumnSizing,
63
+ h as ColumnVisibility,
64
+ x as GlobalFaceting,
65
+ O as GlobalFiltering,
66
+ M as Headers,
67
+ P as RowExpanding,
68
+ v as RowPagination,
69
+ E as RowPinning,
70
+ G as RowSelection,
71
+ $ as RowSorting,
72
+ A as _getVisibleLeafColumns,
73
+ V as aggregationFns,
74
+ j as buildHeaderGroups,
75
+ k as createCell,
76
+ z as createColumn,
77
+ H as createRow,
78
+ u as createTable,
79
+ N as defaultColumnSizing,
80
+ T as expandRows,
81
+ U as filterFns,
82
+ _ as flattenBy,
83
+ d as flexRender,
84
+ B as functionalUpdate,
85
+ L as getCoreRowModel,
86
+ q as getFilteredRowModel,
87
+ D as getMemoOptions,
88
+ I as getPaginationRowModel,
89
+ J as getSortedRowModel,
90
+ K as isFunction,
91
+ Q as isNumberArray,
92
+ W as isRowSelected,
93
+ X as isSubRowSelected,
94
+ Y as makeStateUpdater,
95
+ Z as memo,
96
+ ee as orderColumns,
97
+ te as passiveEventSupported,
98
+ ne as reSplitAlphaNumeric,
99
+ oe as selectRowsFn,
100
+ re as shouldAutoRemoveFilter,
101
+ ie as sortingFns,
102
+ m as useReactTable
103
+ };