@sito/dashboard 0.0.66 → 0.0.68

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 (70) hide show
  1. package/README.md +3 -2
  2. package/dist/{Chip-JDQqzO9I.js → Chip-C5ogKbFn.js} +4 -4
  3. package/dist/{Chip-a2z-338_.cjs → Chip-D17UJHW6.cjs} +1 -1
  4. package/dist/Chip.cjs +1 -1
  5. package/dist/Chip.js +1 -1
  6. package/dist/{FileInput-B--eBQVa.js → FileInput-DNoJELoS.js} +19 -19
  7. package/dist/FileInput-YvKQ-wok.cjs +1 -0
  8. package/dist/{Filters-BivtNVS3.js → Filters-DL5jd8ps.js} +30 -16
  9. package/dist/{Filters-C5XEbF3V.cjs → Filters-Dyee8QYH.cjs} +1 -1
  10. package/dist/FiltersProvider-BlHv12dU.cjs +1 -0
  11. package/dist/{FiltersProvider-CY2fsw_F.js → FiltersProvider-gfC9gS8u.js} +5 -5
  12. package/dist/FiltersProvider.cjs +1 -1
  13. package/dist/FiltersProvider.js +1 -1
  14. package/dist/Form.cjs +1 -1
  15. package/dist/Form.js +2 -2
  16. package/dist/SvgIcons.cjs +1 -1
  17. package/dist/SvgIcons.js +7 -6
  18. package/dist/Table-B5vsXjAq.js +1080 -0
  19. package/dist/Table-DgFzKIJZ.cjs +1 -0
  20. package/dist/Table.cjs +1 -1
  21. package/dist/Table.css +1 -1
  22. package/dist/Table.js +1 -1
  23. package/dist/TableOptions.cjs +1 -1
  24. package/dist/TableOptions.js +1 -1
  25. package/dist/TableOptionsProvider-CDLZ4TXE.cjs +1 -0
  26. package/dist/TableOptionsProvider-HHCDcRbO.js +55 -0
  27. package/dist/TextInput-C27RFuya.cjs +1 -0
  28. package/dist/TextInput-DPYxzgm3.js +335 -0
  29. package/dist/TextInput.css +1 -1
  30. package/dist/Translation.cjs +1 -1
  31. package/dist/Translation.js +1 -1
  32. package/dist/{TranslationProvider-COebIyxr.js → TranslationProvider-BR4s--Vu.js} +2 -2
  33. package/dist/TranslationProvider-Czr0WIDH.cjs +1 -0
  34. package/dist/components/Actions/Action.d.ts +18 -0
  35. package/dist/components/Actions/Actions.d.ts +14 -0
  36. package/dist/components/Actions/Actions.stories.d.ts +20 -0
  37. package/dist/components/Actions/Actions.test.d.ts +1 -0
  38. package/dist/components/Actions/ActionsDropdown.d.ts +10 -0
  39. package/dist/components/Actions/ActionsDropdown.stories.d.ts +17 -0
  40. package/dist/components/Actions/ActionsDropdown.test.d.ts +1 -0
  41. package/dist/components/Actions/index.d.ts +4 -0
  42. package/dist/components/Actions/types.d.ts +17 -0
  43. package/dist/components/Form/CheckInput/CheckInput.stories.d.ts +2 -0
  44. package/dist/components/Form/CheckInput/CheckInput.test.d.ts +1 -0
  45. package/dist/components/Form/SelectInput/SelectInput.stories.d.ts +1 -0
  46. package/dist/components/Form/TextInput/TextInput.stories.d.ts +3 -0
  47. package/dist/components/SvgIcons/Ellipsis.d.ts +7 -0
  48. package/dist/components/SvgIcons/index.d.ts +1 -0
  49. package/dist/components/Table/Table.stories.d.ts +3 -0
  50. package/dist/components/Table/components/Footer/Navigation.test.d.ts +1 -0
  51. package/dist/components/Table/components/TableHeader/TableHeader.test.d.ts +1 -0
  52. package/dist/components/Table/types.d.ts +1 -0
  53. package/dist/components/index.d.ts +1 -0
  54. package/dist/index.cjs +1 -1
  55. package/dist/index.css +1 -1
  56. package/dist/index.js +69 -65
  57. package/dist/providers/FiltersProvider/FiltersProvider.test.d.ts +1 -0
  58. package/dist/providers/Translation/TranslationProvider.d.ts +5 -4
  59. package/dist/providers/Translation/TranslationProvider.test.d.ts +1 -0
  60. package/dist/setupTests.d.ts +0 -0
  61. package/package.json +5 -2
  62. package/dist/FileInput-5tMOO7mb.cjs +0 -1
  63. package/dist/FiltersProvider-CYqLFEI9.cjs +0 -1
  64. package/dist/Table-CH9HYQ2I.js +0 -946
  65. package/dist/Table-CWss4TW5.cjs +0 -1
  66. package/dist/TableOptionsProvider-BchUDA3B.cjs +0 -1
  67. package/dist/TableOptionsProvider-BfQS8l1N.js +0 -50
  68. package/dist/TextInput-BLfTozZ9.js +0 -320
  69. package/dist/TextInput-Bn8zsDnU.cjs +0 -1
  70. package/dist/TranslationProvider-51Pc9Xrr.cjs +0 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ## Highlights
6
6
 
7
7
  - `Table` component with sorting, filtering, pagination, row selection, bulk actions, and expandable rows.
8
- - Reusable UI pieces: `Badge`, `Button`, `Chip`, `Dropdown`, `IconButton`, `Loading`, `Tooltip`, and `SvgIcons`.
8
+ - Reusable UI pieces: `Badge`, `Button`, `Chip`, `Dropdown`, `IconButton`, `Loading`, `Tooltip`, `SvgIcons`, `Actions`, and `ActionsDropdown`.
9
9
  - Form controls: `TextInput`, `SelectInput`, `AutocompleteInput`, `CheckInput`, and `FileInput`.
10
10
  - Built-in providers for translations and table state (`TranslationProvider`, `TableOptionsProvider`).
11
11
 
@@ -77,6 +77,7 @@ export function UsersTable() {
77
77
  tooltip: `View ${row.name}`,
78
78
  icon: <span>View</span>,
79
79
  onClick: () => console.log("View", row),
80
+ sticky: true, // always visible; omit to place in the ellipsis dropdown
80
81
  },
81
82
  ]}
82
83
  />
@@ -113,7 +114,7 @@ export function UsersTable() {
113
114
 
114
115
  Main package exports include:
115
116
 
116
- - Components: `Badge`, `Button`, `Chip`, `Dropdown`, `Form`, `IconButton`, `Loading`, `SvgIcons`, `Table`, `Tooltip`.
117
+ - Components: `Action`, `Actions`, `ActionsDropdown`, `Badge`, `Button`, `Chip`, `Dropdown`, `Form`, `IconButton`, `Loading`, `SvgIcons`, `Table`, `Tooltip`.
117
118
  - Providers: `FiltersProvider`, `TableOptionsProvider`, `TranslationProvider` and related hooks/types.
118
119
  - Utilities and models: `FilterTypes`, `SortOrder`, `BaseDto`, and query/filter helpers from `lib`.
119
120
 
@@ -1,7 +1,7 @@
1
1
  import "./Chip.css";
2
2
  import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
- import { I as p } from "./IconButton-BpsTEj0z.js";
4
- import { C as d } from "./Close-rKC9AcNX.js";
3
+ import { C as p } from "./Close-rKC9AcNX.js";
4
+ import { I as d } from "./IconButton-BpsTEj0z.js";
5
5
  function N(a) {
6
6
  const {
7
7
  text: s,
@@ -21,9 +21,9 @@ function N(a) {
21
21
  /* @__PURE__ */ t("span", { className: `chip-main-text ${m}`, children: s }),
22
22
  i,
23
23
  e ? /* @__PURE__ */ t(
24
- p,
24
+ d,
25
25
  {
26
- icon: n ?? /* @__PURE__ */ t(d, {}),
26
+ icon: n ?? /* @__PURE__ */ t(p, {}),
27
27
  className: `chip-delete-button ${l}`,
28
28
  onClick: e
29
29
  }
@@ -1 +1 @@
1
- var x=require("./Chip.css");const e=require("react/jsx-runtime"),u=require("./IconButton-CVnmT2E9.cjs"),m=require("./Close-O9P7wJGf.cjs");function h(t){const{text:n,onDelete:s,children:i,icon:c,variant:a="default",iconClassName:l="",className:o="",textClassName:r=""}=t;return e.jsxs("div",{className:`chip-main ${a} ${s?"deletable":""} ${o}`,children:[e.jsx("span",{className:`chip-main-text ${r}`,children:n}),i,s?e.jsx(u.IconButton,{icon:c??e.jsx(m.Close,{}),className:`chip-delete-button ${l}`,onClick:s}):null]})}exports.Chip=h;
1
+ var x=require("./Chip.css");const e=require("react/jsx-runtime"),u=require("./Close-O9P7wJGf.cjs"),m=require("./IconButton-CVnmT2E9.cjs");function h(t){const{text:n,onDelete:s,children:i,icon:c,variant:a="default",iconClassName:l="",className:o="",textClassName:r=""}=t;return e.jsxs("div",{className:`chip-main ${a} ${s?"deletable":""} ${o}`,children:[e.jsx("span",{className:`chip-main-text ${r}`,children:n}),i,s?e.jsx(m.IconButton,{icon:c??e.jsx(u.Close,{}),className:`chip-delete-button ${l}`,onClick:s}):null]})}exports.Chip=h;
package/dist/Chip.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Chip-a2z-338_.cjs");exports.Chip=e.Chip;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Chip-D17UJHW6.cjs");exports.Chip=e.Chip;
package/dist/Chip.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "./Chip-JDQqzO9I.js";
1
+ import { C as r } from "./Chip-C5ogKbFn.js";
2
2
  export {
3
3
  r as Chip
4
4
  };
@@ -3,20 +3,20 @@ import { jsxs as u, jsx as l } from "react/jsx-runtime";
3
3
  import { forwardRef as j, useState as R, useCallback as m } from "react";
4
4
  import { T as g } from "./Tooltip-B4E-FRwY.js";
5
5
  import { F as q } from "./File-BuJndWMv.js";
6
- import { C as A } from "./Chip-JDQqzO9I.js";
6
+ import { C as A } from "./Chip-C5ogKbFn.js";
7
7
  import { I as B } from "./IconButton-BpsTEj0z.js";
8
8
  import { C as D } from "./Close-rKC9AcNX.js";
9
- function x(t, s = 25) {
10
- if (t.length <= s) return t;
11
- const i = t.lastIndexOf(".");
12
- if (i === -1)
13
- return t.slice(0, s - 3) + "...";
14
- const p = t.slice(0, i), r = t.slice(i), f = s - r.length - 3;
9
+ function x(t, i = 25) {
10
+ if (t.length <= i) return t;
11
+ const s = t.lastIndexOf(".");
12
+ if (s === -1)
13
+ return t.slice(0, i - 3) + "...";
14
+ const p = t.slice(0, s), r = t.slice(s), f = i - r.length - 3;
15
15
  return p.slice(0, f) + "..." + r;
16
16
  }
17
- const K = j(function(t, s) {
17
+ const K = j(function(t, i) {
18
18
  const {
19
- children: i,
19
+ children: s,
20
20
  label: p,
21
21
  containerClassName: r = "",
22
22
  inputClassName: f = "",
@@ -27,26 +27,26 @@ const K = j(function(t, s) {
27
27
  multiple: b = !1,
28
28
  onChange: N,
29
29
  onClear: o,
30
- ...h
31
- } = t, [n, d] = R([]), I = m(
30
+ ...d
31
+ } = t, [n, h] = R([]), I = m(
32
32
  (e) => {
33
33
  if (e.target.files) {
34
34
  const a = Array.from(e.target.files);
35
- d((c) => [...c, ...a]);
35
+ h((c) => [...c, ...a]);
36
36
  }
37
37
  N?.(e);
38
38
  },
39
39
  [N]
40
40
  ), w = m(
41
41
  (e) => {
42
- d((a) => {
42
+ h((a) => {
43
43
  const c = a.filter((M, y) => y !== e);
44
44
  return c.length === 0 && o?.(), c;
45
45
  });
46
46
  },
47
47
  [o]
48
48
  ), T = m(() => {
49
- d([]), o?.();
49
+ h([]), o?.();
50
50
  }, [o]), k = m(
51
51
  (e) => {
52
52
  e.currentTarget.value = "";
@@ -54,21 +54,21 @@ const K = j(function(t, s) {
54
54
  []
55
55
  );
56
56
  return /* @__PURE__ */ u("div", { className: `file-input-container ${r}`, children: [
57
- n.length === 0 && /* @__PURE__ */ u("label", { htmlFor: h.name, className: `${v}`, children: [
57
+ n.length === 0 && /* @__PURE__ */ u("label", { htmlFor: d.id, className: `${v}`, children: [
58
58
  p,
59
59
  /* @__PURE__ */ l(
60
60
  "input",
61
61
  {
62
62
  type: "file",
63
- ref: s,
63
+ ref: i,
64
64
  multiple: b,
65
65
  onClick: k,
66
66
  onChange: I,
67
67
  className: `file-input ${f}`,
68
- ...h
68
+ ...d
69
69
  }
70
70
  ),
71
- h.required ? " *" : ""
71
+ d.required ? " *" : ""
72
72
  ] }),
73
73
  n.length > 1 && /* @__PURE__ */ l("ul", { className: "file-preview-list", children: n.map((e, a) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(g, { content: e.name, children: /* @__PURE__ */ l(
74
74
  A,
@@ -82,7 +82,7 @@ const K = j(function(t, s) {
82
82
  /* @__PURE__ */ l(g, { content: n[0]?.name ?? "", children: /* @__PURE__ */ l("span", { className: "file-preview-name", children: x(n[0]?.name ?? "", 25) }) }),
83
83
  /* @__PURE__ */ l(B, { icon: /* @__PURE__ */ l(D, {}), onClick: T, type: "button" })
84
84
  ] }),
85
- i,
85
+ s,
86
86
  !!C && /* @__PURE__ */ l("p", { className: `file-input-helper-text ${F}`, children: C })
87
87
  ] });
88
88
  });
@@ -0,0 +1 @@
1
+ var D=require("./FileInput.css");const e=require("react/jsx-runtime"),n=require("react"),m=require("./Tooltip-BSKAgRkc.cjs"),T=require("./File-_Hjw2d3F.cjs"),w=require("./Chip-D17UJHW6.cjs"),y=require("./IconButton-CVnmT2E9.cjs"),R=require("./Close-O9P7wJGf.cjs");function j(s,i=25){if(s.length<=i)return s;const c=s.lastIndexOf(".");if(c===-1)return s.slice(0,i-3)+"...";const h=s.slice(0,c),r=s.slice(c),d=i-r.length-3;return h.slice(0,d)+"..."+r}const B=n.forwardRef(function(s,i){const{children:c,label:h,containerClassName:r="",inputClassName:d="",labelClassName:N="",helperText:x="",helperTextClassName:g="",iconClassName:b="",multiple:q=!1,onChange:C,onClear:o,...p}=s,[t,f]=n.useState([]),k=n.useCallback(l=>{if(l.target.files){const a=Array.from(l.target.files);f(u=>[...u,...a])}C?.(l)},[C]),v=n.useCallback(l=>{f(a=>{const u=a.filter((A,$)=>$!==l);return u.length===0&&o?.(),u})},[o]),F=n.useCallback(()=>{f([]),o?.()},[o]),I=n.useCallback(l=>{l.currentTarget.value=""},[]);return e.jsxs("div",{className:`file-input-container ${r}`,children:[t.length===0&&e.jsxs("label",{htmlFor:p.id,className:`${N}`,children:[h,e.jsx("input",{type:"file",ref:i,multiple:q,onClick:I,onChange:k,className:`file-input ${d}`,...p}),p.required?" *":""]}),t.length>1&&e.jsx("ul",{className:"file-preview-list",children:t.map((l,a)=>e.jsx("li",{children:e.jsx(m.Tooltip,{content:l.name,children:e.jsx(w.Chip,{text:j(l.name,25),onDelete:()=>v(a)})})},`${l.name}-${l.lastModified}`))}),t.length===1&&e.jsxs("div",{className:"file-preview",children:[e.jsx(T.File,{className:`file-icon ${b}`}),e.jsx(m.Tooltip,{content:t[0]?.name??"",children:e.jsx("span",{className:"file-preview-name",children:j(t[0]?.name??"",25)})}),e.jsx(y.IconButton,{icon:e.jsx(R.Close,{}),onClick:F,type:"button"})]}),c,!!x&&e.jsx("p",{className:`file-input-helper-text ${g}`,children:x})]})});exports.FileInput=B;
@@ -1,10 +1,10 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- function t(r) {
3
- const { className: c = "" } = r;
2
+ function l(r) {
3
+ const { className: n = "" } = r;
4
4
  return /* @__PURE__ */ s(
5
5
  "svg",
6
6
  {
7
- className: c,
7
+ className: n,
8
8
  xmlns: "http://www.w3.org/2000/svg",
9
9
  viewBox: "0 0 512 512",
10
10
  fill: "currentColor",
@@ -12,12 +12,12 @@ function t(r) {
12
12
  }
13
13
  );
14
14
  }
15
- function l(r) {
16
- const { className: c = "" } = r;
15
+ function c(r) {
16
+ const { className: n = "" } = r;
17
17
  return /* @__PURE__ */ s(
18
18
  "svg",
19
19
  {
20
- className: c,
20
+ className: n,
21
21
  xmlns: "http://www.w3.org/2000/svg",
22
22
  viewBox: "0 0 320 512",
23
23
  fill: "currentColor",
@@ -26,11 +26,11 @@ function l(r) {
26
26
  );
27
27
  }
28
28
  function o(r) {
29
- const { className: c = "" } = r;
29
+ const { className: n = "" } = r;
30
30
  return /* @__PURE__ */ s(
31
31
  "svg",
32
32
  {
33
- className: c,
33
+ className: n,
34
34
  xmlns: "http://www.w3.org/2000/svg",
35
35
  viewBox: "0 0 320 512",
36
36
  fill: "currentColor",
@@ -39,11 +39,11 @@ function o(r) {
39
39
  );
40
40
  }
41
41
  function e(r) {
42
- const { className: c = "" } = r;
42
+ const { className: n = "" } = r;
43
43
  return /* @__PURE__ */ s(
44
44
  "svg",
45
45
  {
46
- className: c,
46
+ className: n,
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  viewBox: "0 0 512 512",
49
49
  fill: "currentColor",
@@ -51,14 +51,28 @@ function e(r) {
51
51
  }
52
52
  );
53
53
  }
54
- const a = (r) => {
55
- const { className: c = "" } = r;
56
- return /* @__PURE__ */ s("svg", { className: c, viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: "M9 15H7a1 1 0 010-2h2a1 1 0 010 2zM11 11H5a1 1 0 010-2h6a1 1 0 010 2zM13 7H3a1 1 0 010-2h10a1 1 0 010 2zM15 3H1a1 1 0 010-2h14a1 1 0 010 2z" }) });
54
+ function a(r) {
55
+ const { className: n = "" } = r;
56
+ return /* @__PURE__ */ s(
57
+ "svg",
58
+ {
59
+ className: n,
60
+ xmlns: "http://www.w3.org/2000/svg",
61
+ viewBox: "0 0 640 640",
62
+ fill: "currentColor",
63
+ children: /* @__PURE__ */ s("path", { d: "M320 208C289.1 208 264 182.9 264 152C264 121.1 289.1 96 320 96C350.9 96 376 121.1 376 152C376 182.9 350.9 208 320 208zM320 432C350.9 432 376 457.1 376 488C376 518.9 350.9 544 320 544C289.1 544 264 518.9 264 488C264 457.1 289.1 432 320 432zM376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320z" })
64
+ }
65
+ );
66
+ }
67
+ const i = (r) => {
68
+ const { className: n = "" } = r;
69
+ return /* @__PURE__ */ s("svg", { className: n, viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: "M9 15H7a1 1 0 010-2h2a1 1 0 010 2zM11 11H5a1 1 0 010-2h6a1 1 0 010 2zM13 7H3a1 1 0 010-2h10a1 1 0 010 2zM15 3H1a1 1 0 010-2h14a1 1 0 010 2z" }) });
57
70
  };
58
71
  export {
59
- t as C,
60
- a as F,
61
- l as a,
72
+ l as C,
73
+ a as E,
74
+ i as F,
75
+ c as a,
62
76
  o as b,
63
77
  e as c
64
78
  };
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime");function t(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:s.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})})}function e(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",fill:"currentColor",children:s.jsx("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"})})}function c(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",fill:"currentColor",children:s.jsx("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})})}function o(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:s.jsx("path",{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"})})}const l=n=>{const{className:r=""}=n;return s.jsx("svg",{className:r,viewBox:"0 0 16 16",children:s.jsx("path",{d:"M9 15H7a1 1 0 010-2h2a1 1 0 010 2zM11 11H5a1 1 0 010-2h6a1 1 0 010 2zM13 7H3a1 1 0 010-2h10a1 1 0 010 2zM15 3H1a1 1 0 010-2h14a1 1 0 010 2z"})})};exports.ChevronDown=t;exports.ChevronLeft=e;exports.ChevronRight=c;exports.ChevronUp=o;exports.Filters=l;
1
+ "use strict";const s=require("react/jsx-runtime");function t(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:s.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})})}function l(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",fill:"currentColor",children:s.jsx("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"})})}function e(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",fill:"currentColor",children:s.jsx("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})})}function o(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:s.jsx("path",{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"})})}function c(n){const{className:r=""}=n;return s.jsx("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor",children:s.jsx("path",{d:"M320 208C289.1 208 264 182.9 264 152C264 121.1 289.1 96 320 96C350.9 96 376 121.1 376 152C376 182.9 350.9 208 320 208zM320 432C350.9 432 376 457.1 376 488C376 518.9 350.9 544 320 544C289.1 544 264 518.9 264 488C264 457.1 289.1 432 320 432zM376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320z"})})}const i=n=>{const{className:r=""}=n;return s.jsx("svg",{className:r,viewBox:"0 0 16 16",children:s.jsx("path",{d:"M9 15H7a1 1 0 010-2h2a1 1 0 010 2zM11 11H5a1 1 0 010-2h6a1 1 0 010 2zM13 7H3a1 1 0 010-2h10a1 1 0 010 2zM15 3H1a1 1 0 010-2h14a1 1 0 010 2z"})})};exports.ChevronDown=t;exports.ChevronLeft=l;exports.ChevronRight=e;exports.ChevronUp=o;exports.Ellipsis=c;exports.Filters=i;
@@ -0,0 +1 @@
1
+ "use strict";const p=require("react/jsx-runtime"),i=require("react"),f=require("./TableOptionsProvider-CDLZ4TXE.cjs");var n=(e=>(e[e.update=0]="update",e[e.reset=1]="reset",e))(n||{});const o=e=>{if(e){const t={};return Object.keys(e)?.forEach(s=>{t[s]={value:e[s]}}),t}return{}};function a(e,t){const{type:r}=t;switch(r){case n.reset:return{};case n.update:{const{toUpdate:s}=t;return{...e,...s}}default:return e}}const d=i.createContext(void 0),v=e=>{const{children:t}=e,{filters:r}=f.useTableOptions(),[s,u]=i.useReducer(a,o(r));i.useEffect(()=>{u({type:n.reset});const c=o(r);Object.keys(c).length&&u({type:n.update,toUpdate:c})},[r]);const l={currentFilters:s,setCurrentFilters:u};return p.jsx(d.Provider,{value:l,children:t})},x=()=>{const e=i.useContext(d);if(!e)throw new Error("filtersContext must be used within a Provider");return e};exports.FiltersActions=n;exports.FiltersProvider=v;exports.filtersReducer=a;exports.initializer=o;exports.useFilters=x;
@@ -1,6 +1,6 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { useReducer as p, useEffect as f, createContext as l, useContext as m } from "react";
3
- import { u as v } from "./TableOptionsProvider-BfQS8l1N.js";
3
+ import { u as v } from "./TableOptionsProvider-HHCDcRbO.js";
4
4
  var n = /* @__PURE__ */ ((e) => (e[e.update = 0] = "update", e[e.reset = 1] = "reset", e))(n || {});
5
5
  const a = (e) => {
6
6
  if (e) {
@@ -24,7 +24,7 @@ function x(e, t) {
24
24
  return e;
25
25
  }
26
26
  }
27
- const c = l({}), C = (e) => {
27
+ const c = l(void 0), b = (e) => {
28
28
  const { children: t } = e, { filters: r } = v(), [s, o] = p(
29
29
  x,
30
30
  a(r)
@@ -44,12 +44,12 @@ const c = l({}), C = (e) => {
44
44
  return /* @__PURE__ */ d(c.Provider, { value: i, children: t });
45
45
  }, w = () => {
46
46
  const e = m(c);
47
- if (e === void 0)
48
- throw new Error("tableOptionsContext must be used within a Provider");
47
+ if (!e)
48
+ throw new Error("filtersContext must be used within a Provider");
49
49
  return e;
50
50
  };
51
51
  export {
52
- C as F,
52
+ b as F,
53
53
  n as a,
54
54
  x as f,
55
55
  a as i,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FiltersProvider-CYqLFEI9.cjs");exports.FiltersActions=e.FiltersActions;exports.FiltersProvider=e.FiltersProvider;exports.filtersReducer=e.filtersReducer;exports.initializer=e.initializer;exports.useFilters=e.useFilters;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FiltersProvider-BlHv12dU.cjs");exports.FiltersActions=e.FiltersActions;exports.FiltersProvider=e.FiltersProvider;exports.filtersReducer=e.filtersReducer;exports.initializer=e.initializer;exports.useFilters=e.useFilters;
@@ -1,4 +1,4 @@
1
- import { a as e, F as r, f as a, i as t, u as l } from "./FiltersProvider-CY2fsw_F.js";
1
+ import { a as e, F as r, f as a, i as t, u as l } from "./FiltersProvider-gfC9gS8u.js";
2
2
  export {
3
3
  e as FiltersActions,
4
4
  r as FiltersProvider,
package/dist/Form.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextInput-Bn8zsDnU.cjs"),t=require("./FileInput-5tMOO7mb.cjs");exports.AutocompleteInput=e.AutocompleteInput;exports.CheckInput=e.CheckInput;exports.SelectInput=e.SelectInput;exports.State=e.State;exports.TextInput=e.TextInput;exports.helperTextStateClassName=e.helperTextStateClassName;exports.inputStateClassName=e.inputStateClassName;exports.labelStateClassName=e.labelStateClassName;exports.FileInput=t.FileInput;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextInput-C27RFuya.cjs"),t=require("./FileInput-YvKQ-wok.cjs");exports.AutocompleteInput=e.AutocompleteInput;exports.CheckInput=e.CheckInput;exports.SelectInput=e.SelectInput;exports.State=e.State;exports.TextInput=e.TextInput;exports.helperTextStateClassName=e.helperTextStateClassName;exports.inputStateClassName=e.inputStateClassName;exports.labelStateClassName=e.labelStateClassName;exports.FileInput=t.FileInput;
package/dist/Form.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as e, C as s, S as l, a as p, T as u, h as m, i as n, l as o } from "./TextInput-BLfTozZ9.js";
2
- import { F as r } from "./FileInput-B--eBQVa.js";
1
+ import { A as e, C as s, S as l, a as p, T as u, h as m, i as n, l as o } from "./TextInput-DPYxzgm3.js";
2
+ import { F as r } from "./FileInput-DNoJELoS.js";
3
3
  export {
4
4
  e as AutocompleteInput,
5
5
  s as CheckInput,
package/dist/SvgIcons.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Filters-C5XEbF3V.cjs"),r=require("./Close-O9P7wJGf.cjs"),o=require("./File-_Hjw2d3F.cjs");exports.ChevronDown=e.ChevronDown;exports.ChevronLeft=e.ChevronLeft;exports.ChevronRight=e.ChevronRight;exports.ChevronUp=e.ChevronUp;exports.Filters=e.Filters;exports.Close=r.Close;exports.File=o.File;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Filters-Dyee8QYH.cjs"),r=require("./Close-O9P7wJGf.cjs"),o=require("./File-_Hjw2d3F.cjs");exports.ChevronDown=e.ChevronDown;exports.ChevronLeft=e.ChevronLeft;exports.ChevronRight=e.ChevronRight;exports.ChevronUp=e.ChevronUp;exports.Ellipsis=e.Ellipsis;exports.Filters=e.Filters;exports.Close=r.Close;exports.File=o.File;
package/dist/SvgIcons.js CHANGED
@@ -1,12 +1,13 @@
1
- import { C as r, a as s, b as a, c as C, F as t } from "./Filters-BivtNVS3.js";
2
- import { C as n } from "./Close-rKC9AcNX.js";
1
+ import { C as e, a as r, b as a, c as C, E as t, F as h } from "./Filters-DL5jd8ps.js";
2
+ import { C as l } from "./Close-rKC9AcNX.js";
3
3
  import { F as p } from "./File-BuJndWMv.js";
4
4
  export {
5
- r as ChevronDown,
6
- s as ChevronLeft,
5
+ e as ChevronDown,
6
+ r as ChevronLeft,
7
7
  a as ChevronRight,
8
8
  C as ChevronUp,
9
- n as Close,
9
+ l as Close,
10
+ t as Ellipsis,
10
11
  p as File,
11
- t as Filters
12
+ h as Filters
12
13
  };