@g4rcez/components 0.2.0 → 0.2.1

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 (80) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +44 -44
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +8495 -8441
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/index.umd.js +44 -44
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/src/components/core/tag.d.ts +1 -1
  9. package/dist/src/components/core/tag.js +2 -2
  10. package/dist/src/components/display/alert.js +1 -1
  11. package/dist/src/components/display/calendar.d.ts +1 -1
  12. package/dist/src/components/display/calendar.d.ts.map +1 -1
  13. package/dist/src/components/display/calendar.js +24 -23
  14. package/dist/src/components/display/card.js +1 -1
  15. package/dist/src/components/display/empty.d.ts.map +1 -1
  16. package/dist/src/components/display/tabs.d.ts.map +1 -1
  17. package/dist/src/components/display/tabs.js +2 -2
  18. package/dist/src/components/display/timeline.d.ts +8 -30
  19. package/dist/src/components/display/timeline.d.ts.map +1 -1
  20. package/dist/src/components/display/timeline.js +11 -14
  21. package/dist/src/components/floating/modal.d.ts +5 -2
  22. package/dist/src/components/floating/modal.d.ts.map +1 -1
  23. package/dist/src/components/floating/modal.js +13 -6
  24. package/dist/src/components/form/autocomplete.js +1 -1
  25. package/dist/src/components/form/multi-select.d.ts +19 -0
  26. package/dist/src/components/form/multi-select.d.ts.map +1 -0
  27. package/dist/src/components/form/{multi-combobox.js → multi-select.js} +25 -18
  28. package/dist/src/components/index.d.ts +2 -1
  29. package/dist/src/components/index.d.ts.map +1 -1
  30. package/dist/src/components/index.js +2 -1
  31. package/dist/src/components/table/pagination.d.ts.map +1 -1
  32. package/dist/src/components/table/pagination.js +6 -6
  33. package/dist/src/config/context.d.ts +17 -0
  34. package/dist/src/config/context.d.ts.map +1 -0
  35. package/dist/src/config/context.js +10 -0
  36. package/dist/src/config/default-translations.d.ts +59 -0
  37. package/dist/src/config/default-translations.d.ts.map +1 -0
  38. package/dist/src/config/default-translations.js +52 -0
  39. package/dist/src/config/default-tweaks.d.ts +7 -0
  40. package/dist/src/config/default-tweaks.d.ts.map +1 -0
  41. package/dist/src/config/default-tweaks.js +5 -0
  42. package/dist/src/hooks/use-color-parser.js +1 -1
  43. package/dist/src/hooks/use-components-provider.d.ts +4 -76
  44. package/dist/src/hooks/use-components-provider.d.ts.map +1 -1
  45. package/dist/src/hooks/use-components-provider.js +5 -63
  46. package/dist/src/hooks/use-debounce.d.ts +1 -0
  47. package/dist/src/hooks/use-debounce.d.ts.map +1 -1
  48. package/dist/src/hooks/use-debounce.js +1 -1
  49. package/dist/src/hooks/use-form.d.ts +1 -1
  50. package/dist/src/hooks/use-locale.d.ts +1 -1
  51. package/dist/src/hooks/use-locale.d.ts.map +1 -1
  52. package/dist/src/hooks/use-locale.js +2 -2
  53. package/dist/src/hooks/use-on-event.js +1 -1
  54. package/dist/src/hooks/use-reactive.d.ts +1 -1
  55. package/dist/src/hooks/use-reactive.d.ts.map +1 -1
  56. package/dist/src/hooks/use-swipe.d.ts +8 -0
  57. package/dist/src/hooks/use-swipe.d.ts.map +1 -0
  58. package/dist/src/hooks/use-swipe.js +16 -0
  59. package/dist/src/hooks/use-translations.d.ts +2 -2
  60. package/dist/src/hooks/use-translations.d.ts.map +1 -1
  61. package/dist/src/hooks/use-translations.js +2 -1
  62. package/dist/src/hooks/use-tweaks.d.ts +1 -1
  63. package/dist/src/hooks/use-tweaks.d.ts.map +1 -1
  64. package/dist/src/hooks/use-tweaks.js +2 -1
  65. package/dist/src/index.d.ts +10 -7
  66. package/dist/src/index.d.ts.map +1 -1
  67. package/dist/src/index.js +9 -6
  68. package/dist/src/lib/dict.d.ts +2 -2
  69. package/dist/src/lib/dict.d.ts.map +1 -1
  70. package/dist/src/lib/dict.js +8 -6
  71. package/dist/src/lib/dom.d.ts +3 -3
  72. package/dist/src/lib/dom.d.ts.map +1 -1
  73. package/dist/src/lib/dom.js +1 -1
  74. package/dist/src/lib/fns.d.ts +3 -2
  75. package/dist/src/lib/fns.d.ts.map +1 -1
  76. package/dist/src/types.d.ts +2 -1
  77. package/dist/src/types.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/src/components/form/multi-combobox.d.ts +0 -24
  80. package/dist/src/components/form/multi-combobox.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,OAAO,EAAE,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC7H,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,OAAO,EAAE,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC7H,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
@@ -9,6 +9,7 @@ export * from "./display/empty";
9
9
  export * from "./display/notifications";
10
10
  export * from "./display/stats";
11
11
  export * from "./display/tabs";
12
+ export * from "./display/timeline";
12
13
  export * from "./floating/dropdown";
13
14
  export * from "./floating/expand";
14
15
  export * from "./floating/menu";
@@ -16,13 +17,13 @@ export * from "./floating/modal";
16
17
  export * from "./floating/toolbar";
17
18
  export * from "./floating/tooltip";
18
19
  export * from "./form/autocomplete";
19
- export * from "./form/multi-combobox";
20
20
  export * from "./form/checkbox";
21
21
  export * from "./form/date-picker";
22
22
  export * from "./form/file-upload";
23
23
  export * from "./form/form";
24
24
  export * from "./form/input";
25
25
  export * from "./form/input-field";
26
+ export * from "./form/multi-select";
26
27
  export * from "./form/radiobox";
27
28
  export * from "./form/select";
28
29
  export * from "./form/switch";
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/table/pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAuB9C,eAAO,MAAM,UAAU,GAAI,YAAY,eAAe,4CAyErD,CAAC"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/table/pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAuB9C,eAAO,MAAM,UAAU,GAAI,YAAY,eAAe,4CA2ErD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Fragment, useId, useMemo } from "react";
3
3
  import { useTranslations } from "../../hooks/use-translations";
4
+ import { Polymorph } from "../core/polymorph";
4
5
  function createPaginationItems(current, max) {
5
6
  if (!current || !max)
6
7
  return [];
@@ -9,7 +10,7 @@ function createPaginationItems(current, max) {
9
10
  return items;
10
11
  if (current > 4)
11
12
  items.push("-");
12
- let r = 2;
13
+ const r = 2;
13
14
  const r1 = current - r;
14
15
  const r2 = current + r;
15
16
  for (let i = r1 > 2 ? r1 : 2; i <= Math.min(max, r2); i++)
@@ -29,14 +30,13 @@ function createPaginationItems(current, max) {
29
30
  export const Pagination = (pagination) => {
30
31
  const id = useId();
31
32
  const translation = useTranslations();
32
- const Render = pagination.asLink || "button";
33
33
  const pageNavigation = useMemo(() => createPaginationItems(pagination.current, pagination.pages), [pagination.current, pagination.pages]);
34
34
  const hasNext = pagination.current < pagination.pages;
35
- return (_jsxs("footer", { className: "flex px-1 py-4 items-center justify-center gap-4 lg:justify-between flex-wrap lg:flex-nowrap", children: [_jsx("p", { children: _jsx(translation.tablePaginationFooter, { ...pagination, sizes: pagination.sizes, select: pagination.onChangeSize && Array.isArray(pagination.sizes) ? (_jsxs(Fragment, { children: [_jsx("label", { htmlFor: id, children: translation.tablePaginationSelectLabel }), _jsx("select", { id: id, value: pagination.size, className: "cursor-pointer bg-transparent", onChange: (e) => {
35
+ return (_jsxs("footer", { className: "flex flex-wrap items-center justify-center gap-4 px-1 py-4 lg:flex-nowrap lg:justify-between", children: [_jsx("p", { children: _jsx(translation.tablePaginationFooter, { ...pagination, sizes: pagination.sizes, select: pagination.onChangeSize && Array.isArray(pagination.sizes) ? (_jsxs(Fragment, { children: [_jsx("label", { htmlFor: id, children: translation.tablePaginationSelectLabel }), _jsx("select", { id: id, value: pagination.size, className: "cursor-pointer bg-transparent", onChange: (e) => {
36
36
  pagination.onChangeSize?.(Number(e.target.value));
37
- }, children: pagination.sizes.map((value) => (_jsx("option", { value: value, children: value }, `pagination-opt-${value}`))) }), " "] })) : null }) }), _jsx("nav", { children: _jsxs("ul", { className: "flex items-center gap-2", children: [pagination.current > 1 ? (_jsx("li", { children: _jsx(Render, { href: "previous", className: "", children: translation.tablePaginationPrevious }) })) : null, pageNavigation.map((x) => {
37
+ }, children: pagination.sizes.map((value) => (_jsx("option", { value: value, children: value }, `pagination-opt-${value}`))) }), " "] })) : null }) }), _jsx("nav", { children: _jsxs("ul", { className: "flex items-center gap-2", children: [pagination.current > 1 ? (_jsx("li", { children: _jsx(Polymorph, { as: pagination.asLink || "button", href: "previous", className: "", children: translation.tablePaginationPrevious }) })) : null, pageNavigation.map((x) => {
38
38
  if (x === null)
39
39
  return null;
40
- return (_jsx(Fragment, { children: typeof x === "string" ? (_jsx("li", { children: "..." })) : (_jsx("li", { children: _jsx(Render, { href: x, className: `cursor-pointer px-3 py-1 transition-colors border-b-2 hover:text-primary-subtle hover:border-primary-subtle proportional-nums ${x === pagination.current ? "text-primary border-primary" : "border-transparent"}`, children: x }) })) }, `pagination-${x}`));
41
- }), hasNext ? (_jsx("li", { children: _jsx(Render, { href: "next", className: "", children: translation.tablePaginationNext }) })) : null] }) })] }));
40
+ return (_jsx(Fragment, { children: typeof x === "string" ? (_jsx("li", { children: "..." })) : (_jsx("li", { children: _jsx(Polymorph, { href: x, as: pagination.asLink || "button", className: `cursor-pointer border-b-2 px-3 py-1 proportional-nums transition-colors hover:border-primary-subtle hover:text-primary-subtle ${x === pagination.current ? "border-primary text-primary" : "border-transparent"}`, children: x }) })) }, `pagination-${x}`));
41
+ }), hasNext ? (_jsx("li", { children: _jsx(Polymorph, { as: pagination.asLink || "button", href: "next", className: "", children: translation.tablePaginationNext }) })) : null] }) })] }));
42
42
  };
@@ -0,0 +1,17 @@
1
+ import type { Locales } from "the-mask-input";
2
+ import { parsers } from "../styles/design-tokens";
3
+ import { type Translations } from "./default-translations";
4
+ import { type Tweaks } from "./default-tweaks";
5
+ export type ContextProps = Partial<{
6
+ tweaks: Partial<Tweaks>;
7
+ map: Partial<Translations>;
8
+ locale: Locales | undefined;
9
+ parser: typeof parsers.hsla;
10
+ }>;
11
+ export declare const Context: import("react").Context<Partial<{
12
+ tweaks: Tweaks;
13
+ map: Translations;
14
+ locale: Locales | undefined;
15
+ parser: typeof parsers.hsla;
16
+ }>>;
17
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/config/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAiB,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC;CAC/B,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO;;;;mBAHE,QAAS,IAC7B;GAOA,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { createContext } from "react";
2
+ import { parsers } from "../styles/design-tokens";
3
+ import { defaultTranslations } from "./default-translations";
4
+ import { defaultTweaks } from "./default-tweaks";
5
+ export const Context = createContext({
6
+ tweaks: defaultTweaks,
7
+ parser: parsers.hsla,
8
+ map: defaultTranslations,
9
+ locale: undefined,
10
+ });
@@ -0,0 +1,59 @@
1
+ import React from "react";
2
+ export declare const defaultTranslations: {
3
+ emptyDataMessage: string;
4
+ inputCaretDown: string;
5
+ inputCloseValue: string;
6
+ datePickerCalendarButtonLabel: string;
7
+ inputOptionalLabel: string;
8
+ autocompleteEmpty: string;
9
+ tableGroupLabel: string;
10
+ tableGroupLabelWithCount: string;
11
+ tableSortAsc: string;
12
+ tableSortOrderByLabel: string;
13
+ tableSortOrderInputPlaceholder: string;
14
+ tableSortOrderInputTitle: string;
15
+ tableSortTypeInputPlaceholder: string;
16
+ tableSortTypeInputTitle: string;
17
+ tableSortAddButton: string;
18
+ tableSortDropdownTitle: string;
19
+ tableSortDesc: string;
20
+ tableColumnResizer: string;
21
+ tableFilterTypeContains: string;
22
+ tableFilterTypeIs: string;
23
+ tableFilterTypeIsNot: string;
24
+ tableFilterTypeNotContains: string;
25
+ tableFilterTypeLessThan: string;
26
+ tableFilterTypeGreaterThan: string;
27
+ tableFilterTypeStartsWith: string;
28
+ tableFilterTypeEndsWith: string;
29
+ tableFilterNewFilter: string;
30
+ tableFilterColumnTitle: string;
31
+ tableFilterColumnPlaceholder: string;
32
+ tableFilterOperatorTitle: string;
33
+ tableFilterOperatorPlaceholder: string;
34
+ tableFilterValueTitle: string;
35
+ tableFilterValuePlaceholder: string;
36
+ tableFilterLabel: string;
37
+ tableFilterDropdownTitle: string;
38
+ tableFilterDropdownTitleUnique: string;
39
+ tablePaginationPrevious: string;
40
+ tablePaginationNext: string;
41
+ tablePaginationSelectLabel: string;
42
+ tablePaginationFooter: (pagination: {
43
+ pages: number;
44
+ totalItems: number;
45
+ sizes?: number[];
46
+ current: number;
47
+ select: React.ReactNode;
48
+ }) => import("react/jsx-runtime").JSX.Element;
49
+ calendarFromDate: string;
50
+ calendarToDate: string;
51
+ calendarToday: string;
52
+ calendarBackMonth: string;
53
+ calendarNextMonth: string;
54
+ calendarMonthLabel: string;
55
+ multiSelectSelectedLabel: string;
56
+ multiSelectInnerPlaceholder: string;
57
+ };
58
+ export type Translations = typeof defaultTranslations;
59
+ //# sourceMappingURL=default-translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-translations.d.ts","sourceRoot":"","sources":["../../../src/config/default-translations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgDQ;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;KAC1B;;;;;;;;;CAeJ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,mBAAmB,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment } from "react";
3
+ export const defaultTranslations = {
4
+ emptyDataMessage: "No data",
5
+ inputCaretDown: "Click to see all options",
6
+ inputCloseValue: "Click to clear the value",
7
+ datePickerCalendarButtonLabel: "Click to open a date picker",
8
+ inputOptionalLabel: "Optional",
9
+ autocompleteEmpty: "Nothing here...",
10
+ tableGroupLabel: "Group",
11
+ tableGroupLabelWithCount: "Group",
12
+ tableSortAsc: "Ascending",
13
+ tableSortOrderByLabel: "Order by",
14
+ tableSortOrderInputPlaceholder: "Order by",
15
+ tableSortOrderInputTitle: "Order by",
16
+ tableSortTypeInputPlaceholder: "Ascending",
17
+ tableSortTypeInputTitle: "Sort type",
18
+ tableSortAddButton: "Add sort",
19
+ tableSortDropdownTitle: "Order by",
20
+ tableSortDesc: "Descending",
21
+ tableColumnResizer: "Resize column",
22
+ tableFilterTypeContains: "Contains",
23
+ tableFilterTypeIs: "Is",
24
+ tableFilterTypeIsNot: "Is not",
25
+ tableFilterTypeNotContains: "Not contains",
26
+ tableFilterTypeLessThan: "Less than",
27
+ tableFilterTypeGreaterThan: "Greater than",
28
+ tableFilterTypeStartsWith: "Starts with",
29
+ tableFilterTypeEndsWith: "Ends with",
30
+ tableFilterNewFilter: "New filter",
31
+ tableFilterColumnTitle: "Filter by",
32
+ tableFilterColumnPlaceholder: "Filter by",
33
+ tableFilterOperatorTitle: "Operation",
34
+ tableFilterOperatorPlaceholder: "Equals to...",
35
+ tableFilterValueTitle: "Value",
36
+ tableFilterValuePlaceholder: "Something...",
37
+ tableFilterLabel: "Filters",
38
+ tableFilterDropdownTitle: "Filters",
39
+ tableFilterDropdownTitleUnique: "Filter by",
40
+ tablePaginationPrevious: "Previous",
41
+ tablePaginationNext: "Next",
42
+ tablePaginationSelectLabel: "Select the size of page",
43
+ tablePaginationFooter: (pagination) => (_jsxs(Fragment, { children: [pagination.current, " to ", pagination.pages, " of ", pagination.totalItems, " items.", Array.isArray(pagination.sizes) ? pagination.select : null, " per page."] })),
44
+ calendarFromDate: "From",
45
+ calendarToDate: "To",
46
+ calendarToday: "Today",
47
+ calendarBackMonth: "Back month",
48
+ calendarNextMonth: "Next month",
49
+ calendarMonthLabel: "Month",
50
+ multiSelectSelectedLabel: "Selected",
51
+ multiSelectInnerPlaceholder: "Search...",
52
+ };
@@ -0,0 +1,7 @@
1
+ export type Tweaks = {
2
+ input: {
3
+ iconFeedback: boolean;
4
+ };
5
+ };
6
+ export declare const defaultTweaks: Tweaks;
7
+ //# sourceMappingURL=default-tweaks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-tweaks.d.ts","sourceRoot":"","sources":["../../../src/config/default-tweaks.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACjB,KAAK,EAAE;QACH,YAAY,EAAE,OAAO,CAAC;KACzB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAI3B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const defaultTweaks = {
2
+ input: {
3
+ iconFeedback: true,
4
+ },
5
+ };
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
+ import { Context } from "../config/context";
2
3
  import { parsers } from "../styles/design-tokens";
3
- import { Context } from "./use-components-provider";
4
4
  export const useColorParser = () => {
5
5
  const ctx = useContext(Context);
6
6
  if (!ctx)
@@ -1,86 +1,14 @@
1
- import React, { PropsWithChildren } from "react";
1
+ import { PropsWithChildren } from "react";
2
2
  import { Locales } from "the-mask-input";
3
3
  import { parsers } from "../../preset.tailwind";
4
- export declare const defaultTranslations: {
5
- emptyDataMessage: string;
6
- inputCaretDown: string;
7
- inputCloseValue: string;
8
- datePickerCalendarButtonLabel: string;
9
- inputOptionalLabel: string;
10
- autocompleteEmpty: string;
11
- tableGroupLabel: string;
12
- tableGroupLabelWithCount: string;
13
- tableSortAsc: string;
14
- tableSortOrderByLabel: string;
15
- tableSortOrderInputPlaceholder: string;
16
- tableSortOrderInputTitle: string;
17
- tableSortTypeInputPlaceholder: string;
18
- tableSortTypeInputTitle: string;
19
- tableSortAddButton: string;
20
- tableSortDropdownTitle: string;
21
- tableSortDesc: string;
22
- tableColumnResizer: string;
23
- tableFilterTypeContains: string;
24
- tableFilterTypeIs: string;
25
- tableFilterTypeIsNot: string;
26
- tableFilterTypeNotContains: string;
27
- tableFilterTypeLessThan: string;
28
- tableFilterTypeGreaterThan: string;
29
- tableFilterTypeStartsWith: string;
30
- tableFilterTypeEndsWith: string;
31
- tableFilterNewFilter: string;
32
- tableFilterColumnTitle: string;
33
- tableFilterColumnPlaceholder: string;
34
- tableFilterOperatorTitle: string;
35
- tableFilterOperatorPlaceholder: string;
36
- tableFilterValueTitle: string;
37
- tableFilterValuePlaceholder: string;
38
- tableFilterLabel: string;
39
- tableFilterDropdownTitle: string;
40
- tableFilterDropdownTitleUnique: string;
41
- tablePaginationPrevious: string;
42
- tablePaginationNext: string;
43
- tablePaginationSelectLabel: string;
44
- tablePaginationFooter: (pagination: {
45
- pages: number;
46
- totalItems: number;
47
- sizes?: number[];
48
- current: number;
49
- select: React.ReactNode;
50
- }) => import("react/jsx-runtime").JSX.Element;
51
- calendarFromDate: string;
52
- calendarToDate: string;
53
- calendarToday: string;
54
- calendarBackMonth: string;
55
- calendarNextMonth: string;
56
- calendarMonthLabel: string;
57
- multiComboboxSelectedLabel: string;
58
- multiComboboxInnerPlaceholder: string;
59
- };
60
- export type Translations = typeof defaultTranslations;
61
- export type Tweaks = {
62
- input: {
63
- iconFeedback: boolean;
64
- };
65
- };
66
- export declare const defaultTweaks: Tweaks;
4
+ import { ContextProps } from "../config/context";
5
+ import { Translations } from "../config/default-translations";
6
+ import { Tweaks } from "../config/default-tweaks";
67
7
  export type ContextType = Partial<{
68
8
  tweaks: Tweaks;
69
9
  map: Translations;
70
10
  locale: Locales | undefined;
71
11
  parser: typeof parsers.hsla;
72
12
  }>;
73
- export type ContextProps = Partial<{
74
- tweaks: Partial<Tweaks>;
75
- map: Partial<Translations>;
76
- locale: Locales | undefined;
77
- parser: typeof parsers.hsla;
78
- }>;
79
- export declare const Context: React.Context<Partial<{
80
- tweaks: Tweaks;
81
- map: Translations;
82
- locale: Locales | undefined;
83
- parser: typeof parsers.hsla;
84
- }>>;
85
13
  export declare const ComponentsProvider: (props: PropsWithChildren<ContextProps>) => import("react/jsx-runtime").JSX.Element;
86
14
  //# sourceMappingURL=use-components-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-components-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-components-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA2B,iBAAiB,EAAW,MAAM,OAAO,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgDQ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;;;;;;;;CAexI,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,mBAAmB,CAAC;AAEtD,MAAM,MAAM,MAAM,GAAG;IACjB,KAAK,EAAE;QACH,YAAY,EAAE,OAAO,CAAC;KACzB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAI3B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC;CAC/B,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO;YAbR,MAAM;SACT,YAAY;YACT,OAAO,GAAG,SAAS;YACnB,OAAO,OAAO,CAAC,IAAI;GAe7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,4CAWxE,CAAC"}
1
+ {"version":3,"file":"use-components-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-components-provider.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAW,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAuB,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAiB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC;CAC/B,CAAC,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,4CAWxE,CAAC"}
@@ -1,68 +1,10 @@
1
1
  "use client";
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
- import { createContext, Fragment, useMemo } from "react";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useMemo } from "react";
4
4
  import { parsers } from "../../preset.tailwind";
5
- export const defaultTranslations = {
6
- emptyDataMessage: "No data",
7
- inputCaretDown: "Click to see all options",
8
- inputCloseValue: "Click to clear the value",
9
- datePickerCalendarButtonLabel: "Click to open a date picker",
10
- inputOptionalLabel: "Optional",
11
- autocompleteEmpty: "Nothing here...",
12
- tableGroupLabel: "Group",
13
- tableGroupLabelWithCount: "Group",
14
- tableSortAsc: "Ascending",
15
- tableSortOrderByLabel: "Order by",
16
- tableSortOrderInputPlaceholder: "Order by",
17
- tableSortOrderInputTitle: "Order by",
18
- tableSortTypeInputPlaceholder: "Ascending",
19
- tableSortTypeInputTitle: "Sort type",
20
- tableSortAddButton: "Add sort",
21
- tableSortDropdownTitle: "Order by",
22
- tableSortDesc: "Descending",
23
- tableColumnResizer: "Resize column",
24
- tableFilterTypeContains: "Contains",
25
- tableFilterTypeIs: "Is",
26
- tableFilterTypeIsNot: "Is not",
27
- tableFilterTypeNotContains: "Not contains",
28
- tableFilterTypeLessThan: "Less than",
29
- tableFilterTypeGreaterThan: "Greater than",
30
- tableFilterTypeStartsWith: "Starts with",
31
- tableFilterTypeEndsWith: "Ends with",
32
- tableFilterNewFilter: "New filter",
33
- tableFilterColumnTitle: "Filter by",
34
- tableFilterColumnPlaceholder: "Filter by",
35
- tableFilterOperatorTitle: "Operation",
36
- tableFilterOperatorPlaceholder: "Equals to...",
37
- tableFilterValueTitle: "Value",
38
- tableFilterValuePlaceholder: "Something...",
39
- tableFilterLabel: "Filters",
40
- tableFilterDropdownTitle: "Filters",
41
- tableFilterDropdownTitleUnique: "Filter by",
42
- tablePaginationPrevious: "Previous",
43
- tablePaginationNext: "Next",
44
- tablePaginationSelectLabel: "Select the size of page",
45
- tablePaginationFooter: (pagination) => (_jsxs(Fragment, { children: [pagination.current, " to ", pagination.pages, " of ", pagination.totalItems, " items.", Array.isArray(pagination.sizes) ? pagination.select : null, " per page."] })),
46
- calendarFromDate: "From",
47
- calendarToDate: "To",
48
- calendarToday: "Today",
49
- calendarBackMonth: "Back month",
50
- calendarNextMonth: "Next month",
51
- calendarMonthLabel: "Month",
52
- multiComboboxSelectedLabel: "Selected",
53
- multiComboboxInnerPlaceholder: "Search...",
54
- };
55
- export const defaultTweaks = {
56
- input: {
57
- iconFeedback: true,
58
- },
59
- };
60
- export const Context = createContext({
61
- tweaks: defaultTweaks,
62
- parser: parsers.hsla,
63
- map: defaultTranslations,
64
- locale: undefined,
65
- });
5
+ import { Context } from "../config/context";
6
+ import { defaultTranslations } from "../config/default-translations";
7
+ import { defaultTweaks } from "../config/default-tweaks";
66
8
  export const ComponentsProvider = (props) => {
67
9
  const memoMap = useMemo(() => ({
68
10
  locale: props.locale,
@@ -1,4 +1,5 @@
1
1
  type Fn = (...a: any[]) => any;
2
+ export declare const debounce: <T extends Fn>(fn: Fn, ms?: number) => (...args: Parameters<T>) => void;
2
3
  export declare function useDebounce<T extends Fn>(fn: T, delay: number): (...args: any[]) => void;
3
4
  export {};
4
5
  //# sourceMappingURL=use-debounce.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-debounce.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-debounce.ts"],"names":[],"mappings":"AAEA,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAU/B,wBAAgB,WAAW,CAAC,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,4BAG7D"}
1
+ {"version":3,"file":"use-debounce.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-debounce.ts"],"names":[],"mappings":"AAEA,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAE/B,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE,WAAM,MAEvB,GAAG,MAAM,UAAU,CAAC,CAAC,CAAC,SAInD,CAAC;AAEF,wBAAgB,WAAW,CAAC,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,4BAG7D"}
@@ -1,5 +1,5 @@
1
1
  import { useRef } from "react";
2
- const debounce = (fn, ms = 0) => {
2
+ export const debounce = (fn, ms = 0) => {
3
3
  let timeoutId = undefined;
4
4
  return function debounced(...args) {
5
5
  clearTimeout(timeoutId);
@@ -34,7 +34,7 @@ export type UseFormOptions<T> = Partial<{
34
34
  }>;
35
35
  export declare const createFormStorage: (name: string) => Interceptor<any>;
36
36
  export declare const useForm: <T extends z.ZodObject<any>>(schema: T, formName: string, opts?: UseFormOptions<z.infer<T>>) => {
37
- get: (p: AllPaths<z.TypeOf<T>>) => any;
37
+ get: (p: AllPaths<z.TypeOf<T>>) => import("..").Any | "";
38
38
  input: <Props extends InputProps>(name: AllPaths<z.TypeOf<T>>, props?: Props) => Props;
39
39
  state: z.TypeOf<T>;
40
40
  errors: Record<string, any> | null;
@@ -1,3 +1,3 @@
1
- import { Locales } from "the-mask-input";
1
+ import type { Locales } from "the-mask-input";
2
2
  export declare const useLocale: (locale?: Locales) => Locales | undefined;
3
3
  //# sourceMappingURL=use-locale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-locale.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-locale.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,eAAO,MAAM,SAAS,GAAI,SAAS,OAAO,KAAG,OAAO,GAAG,SAKtD,CAAC"}
1
+ {"version":3,"file":"use-locale.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-locale.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG9C,eAAO,MAAM,SAAS,GAAI,SAAS,OAAO,KAAG,OAAO,GAAG,SAKtD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { useContext } from "react";
2
- import { Context } from "./use-components-provider";
2
+ import { Context } from "../config/context";
3
3
  export const useLocale = (locale) => {
4
4
  const ctx = useContext(Context);
5
- if (!!locale)
5
+ if (locale)
6
6
  return locale;
7
7
  if (!ctx)
8
8
  return undefined;
@@ -3,5 +3,5 @@ export const useOnEvent = (event, func) => {
3
3
  useEffect(() => {
4
4
  window.addEventListener(event, func);
5
5
  return () => window.removeEventListener(event, func);
6
- }, []);
6
+ }, [event]);
7
7
  };
@@ -1,2 +1,2 @@
1
- export declare const useReactive: <T extends unknown>(t: T, initial?: T) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
1
+ export declare const useReactive: <T>(t: T, initial?: T) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
2
2
  //# sourceMappingURL=use-reactive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-reactive.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-reactive.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,OAAO,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,8EAM/D,CAAC"}
1
+ {"version":3,"file":"use-reactive.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-reactive.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,8EAM/C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type SwipeDirection = "left" | "right";
3
+ export declare function useSwipe(onSwipe: (e: React.TouchEvent, direction: SwipeDirection) => void, threshold: number): {
4
+ onTouchStart: (e: React.TouchEvent) => number;
5
+ onTouchEnd: (e: React.TouchEvent) => void;
6
+ };
7
+ export {};
8
+ //# sourceMappingURL=use-swipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-swipe.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-swipe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,KAAK,IAAI,EAAE,SAAS,EAAE,MAAM;sBAGhF,KAAK,CAAC,UAAU;oBAElB,KAAK,CAAC,UAAU;EAU1C"}
@@ -0,0 +1,16 @@
1
+ import { useRef } from "react";
2
+ export function useSwipe(onSwipe, threshold) {
3
+ const touchStartX = useRef(null);
4
+ const onTouchStart = (e) => (touchStartX.current = e.touches[0].clientX);
5
+ const onTouchEnd = (e) => {
6
+ if (touchStartX.current === null)
7
+ return;
8
+ const touchEndX = e.changedTouches[0].clientX;
9
+ const diff = touchEndX - touchStartX.current;
10
+ if (Math.abs(diff) > threshold) {
11
+ onSwipe(e, diff > 0 ? "right" : "left");
12
+ }
13
+ touchStartX.current = null;
14
+ };
15
+ return { onTouchStart, onTouchEnd };
16
+ }
@@ -51,7 +51,7 @@ export declare const useTranslations: () => {
51
51
  calendarBackMonth: string;
52
52
  calendarNextMonth: string;
53
53
  calendarMonthLabel: string;
54
- multiComboboxSelectedLabel: string;
55
- multiComboboxInnerPlaceholder: string;
54
+ multiSelectSelectedLabel: string;
55
+ multiSelectInnerPlaceholder: string;
56
56
  };
57
57
  //# sourceMappingURL=use-translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-translations.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAK2oD,CAAC;;gBAAoC,MAAO,SAAS;;;;;;;;;;CAD3tD,CAAC"}
1
+ {"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKs+C,CAAC;;gBAAoD,MAAO,SAAS;;;;;;;;;;CADtkD,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { useContext } from "react";
2
- import { Context, defaultTranslations } from "./use-components-provider";
2
+ import { Context } from "../config/context";
3
+ import { defaultTranslations } from "../config/default-translations";
3
4
  export const useTranslations = () => {
4
5
  const ctx = useContext(Context);
5
6
  if (!ctx)
@@ -1,3 +1,3 @@
1
- import { Tweaks } from "./use-components-provider";
1
+ import { Tweaks } from "../config/default-tweaks";
2
2
  export declare const useTweaks: () => Tweaks;
3
3
  //# sourceMappingURL=use-tweaks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-tweaks.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-tweaks.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAE3E,eAAO,MAAM,SAAS,QAAO,MAI5B,CAAC"}
1
+ {"version":3,"file":"use-tweaks.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-tweaks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEjE,eAAO,MAAM,SAAS,QAAO,MAI5B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { useContext } from "react";
2
- import { Context, defaultTweaks } from "./use-components-provider";
2
+ import { Context } from "../config/context";
3
+ import { defaultTweaks } from "../config/default-tweaks";
3
4
  export const useTweaks = () => {
4
5
  const ctx = useContext(Context);
5
6
  if (!ctx)
@@ -1,16 +1,19 @@
1
- export * from "./lib/dom";
2
- export * from "./lib/fns";
3
1
  export * from "./components";
4
- export type * from "./types";
5
- export * from "./styles/theme";
2
+ export * from "./config/context";
3
+ export * from "./config/default-translations";
4
+ export * from "./config/default-tweaks";
6
5
  export * from "./hooks/use-form";
7
6
  export * from "./hooks/use-previous";
8
7
  export * from "./hooks/use-reactive";
9
- export * from "./styles/theme.types";
8
+ export * from "./lib/dom";
9
+ export * from "./lib/fns";
10
10
  export * from "./styles/design-tokens";
11
+ export * from "./styles/theme";
12
+ export * from "./styles/theme.types";
13
+ export type * from "./types";
14
+ export { ComponentsProvider } from "./hooks/use-components-provider";
11
15
  export { createColumns, createOptionCols, ColType, useTablePreferences } from "./components/table/table-lib";
12
- export { ComponentsProvider, type Translations } from "./hooks/use-components-provider";
13
16
  export { useColorParser } from "./hooks/use-color-parser";
14
- export { useTranslations } from "./hooks/use-translations";
15
17
  export { useLocale } from "./hooks/use-locale";
18
+ export { useTranslations } from "./hooks/use-translations";
16
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,mBAAmB,SAAS,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAE,kBAAkB,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,SAAS,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}