@tedi-design-system/react 18.0.0-rc.4 → 18.0.0-rc.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 (82) hide show
  1. package/_virtual/index.es13.js +2 -2
  2. package/_virtual/index.es14.js +2 -2
  3. package/bundle-stats.html +1 -1
  4. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
  5. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
  6. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
  7. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
  8. package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
  9. package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
  10. package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
  11. package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
  12. package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
  13. package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
  14. package/external/prop-types/external/react-is/index.cjs.js +1 -1
  15. package/external/prop-types/external/react-is/index.es.js +1 -1
  16. package/external/react-is/index.cjs.js +1 -1
  17. package/external/react-is/index.es.js +1 -1
  18. package/external/toposort/index.cjs.js +1 -1
  19. package/external/toposort/index.es.js +1 -1
  20. package/index.css +1 -1
  21. package/package.json +1 -1
  22. package/src/tedi/components/buttons/button-group/button-group.cjs.js +1 -1
  23. package/src/tedi/components/buttons/button-group/button-group.es.js +4 -4
  24. package/src/tedi/components/buttons/collapse/collapse.cjs.js +1 -1
  25. package/src/tedi/components/buttons/collapse/collapse.d.ts +15 -0
  26. package/src/tedi/components/buttons/collapse/collapse.es.js +55 -54
  27. package/src/tedi/components/content/calendar/calendar.cjs.js +1 -1
  28. package/src/tedi/components/content/calendar/calendar.d.ts +9 -1
  29. package/src/tedi/components/content/calendar/calendar.es.js +72 -71
  30. package/src/tedi/components/content/calendar/calendar.module.scss.cjs.js +1 -1
  31. package/src/tedi/components/content/calendar/calendar.module.scss.es.js +3 -2
  32. package/src/tedi/components/content/table/index.d.ts +6 -0
  33. package/src/tedi/components/content/table/table-columns-menu/table-columns-menu.cjs.js +1 -0
  34. package/src/tedi/components/content/table/table-columns-menu/table-columns-menu.d.ts +15 -0
  35. package/src/tedi/components/content/table/table-columns-menu/table-columns-menu.es.js +37 -0
  36. package/src/tedi/components/content/table/table-context.cjs.js +1 -0
  37. package/src/tedi/components/content/table/table-context.d.ts +3 -0
  38. package/src/tedi/components/content/table/table-context.es.js +11 -0
  39. package/src/tedi/components/content/table/table-header-button/table-header-button.cjs.js +1 -0
  40. package/src/tedi/components/content/table/table-header-button/table-header-button.d.ts +51 -0
  41. package/src/tedi/components/content/table/table-header-button/table-header-button.es.js +42 -0
  42. package/src/tedi/components/content/table/table-header-button/table-header-button.module.scss.cjs.js +1 -0
  43. package/src/tedi/components/content/table/table-header-button/table-header-button.module.scss.es.js +7 -0
  44. package/src/tedi/components/content/table/table-toolbar/table-toolbar.cjs.js +1 -0
  45. package/src/tedi/components/content/table/table-toolbar/table-toolbar.d.ts +21 -0
  46. package/src/tedi/components/content/table/table-toolbar/table-toolbar.es.js +9 -0
  47. package/src/tedi/components/content/table/table.cjs.js +1 -0
  48. package/src/tedi/components/content/table/table.d.ts +519 -0
  49. package/src/tedi/components/content/table/table.es.js +856 -0
  50. package/src/tedi/components/content/table/table.module.scss.cjs.js +1 -0
  51. package/src/tedi/components/content/table/table.module.scss.es.js +54 -0
  52. package/src/tedi/components/content/table/use-table-persistence.cjs.js +1 -0
  53. package/src/tedi/components/content/table/use-table-persistence.d.ts +13 -0
  54. package/src/tedi/components/content/table/use-table-persistence.es.js +53 -0
  55. package/src/tedi/components/filter/filter/filter-group-context.cjs.js +1 -0
  56. package/src/tedi/components/filter/filter/filter-group-context.d.ts +8 -0
  57. package/src/tedi/components/filter/filter/filter-group-context.es.js +5 -0
  58. package/src/tedi/components/filter/filter/filter-group.cjs.js +1 -0
  59. package/src/tedi/components/filter/filter/filter-group.d.ts +94 -0
  60. package/src/tedi/components/filter/filter/filter-group.es.js +64 -0
  61. package/src/tedi/components/filter/filter/filter.cjs.js +1 -0
  62. package/src/tedi/components/filter/filter/filter.d.ts +98 -0
  63. package/src/tedi/components/filter/filter/filter.es.js +236 -0
  64. package/src/tedi/components/filter/filter/filter.module.scss.cjs.js +1 -0
  65. package/src/tedi/components/filter/filter/filter.module.scss.es.js +21 -0
  66. package/src/tedi/components/filter/filter/index.d.ts +3 -0
  67. package/src/tedi/components/form/search/search.cjs.js +1 -1
  68. package/src/tedi/components/form/search/search.es.js +22 -20
  69. package/src/tedi/components/navigation/pagination/pagination.cjs.js +1 -1
  70. package/src/tedi/components/navigation/pagination/pagination.d.ts +7 -0
  71. package/src/tedi/components/navigation/pagination/pagination.es.js +132 -91
  72. package/src/tedi/components/navigation/pagination/pagination.module.scss.cjs.js +1 -1
  73. package/src/tedi/components/navigation/pagination/pagination.module.scss.es.js +7 -1
  74. package/src/tedi/components/navigation/pagination/pagination.types.d.ts +100 -0
  75. package/src/tedi/components/overlays/tooltip/tooltip.cjs.js +1 -1
  76. package/src/tedi/components/overlays/tooltip/tooltip.es.js +14 -6
  77. package/src/tedi/index.d.ts +2 -0
  78. package/src/tedi/providers/label-provider/labels-map.cjs.js +1 -1
  79. package/src/tedi/providers/label-provider/labels-map.d.ts +146 -6
  80. package/src/tedi/providers/label-provider/labels-map.es.js +163 -14
  81. package/tedi.cjs.js +1 -1
  82. package/tedi.es.js +205 -185
@@ -1,123 +1,164 @@
1
- import { jsxs as v, jsx as i } from "react/jsx-runtime";
2
- import g from "../../../../../external/classnames/index.es.js";
3
- import { forwardRef as D, useMemo as b, useState as E, useCallback as y, useId as F } from "react";
4
- import { Icon as G } from "../../base/icon/icon.es.js";
5
- import { Text as S } from "../../base/typography/text/text.es.js";
6
- import { Button as z } from "../../buttons/button/button.es.js";
7
- import { Select as H } from "../../form/select/select.es.js";
1
+ import { jsxs as y, jsx as i } from "react/jsx-runtime";
2
+ import h from "../../../../../external/classnames/index.es.js";
3
+ import { forwardRef as W, useMemo as d, useState as X, useCallback as S, useId as Y } from "react";
4
+ import { Icon as Z } from "../../base/icon/icon.es.js";
5
+ import { Text as P } from "../../base/typography/text/text.es.js";
6
+ import { Button as w } from "../../buttons/button/button.es.js";
7
+ import { Select as k } from "../../form/select/select.es.js";
8
8
  import a from "./pagination.module.scss.es.js";
9
- import { usePagination as J } from "./use-pagination.es.js";
10
- import { useLabels as K } from "../../../providers/label-provider/use-labels.es.js";
11
- const Q = D((A, L) => {
9
+ import { usePagination as ee } from "./use-pagination.es.js";
10
+ import { useBreakpoint as ae, isBreakpointBelow as ie } from "../../../helpers/hooks/use-breakpoint.es.js";
11
+ import { useLabels as te } from "../../../providers/label-provider/use-labels.es.js";
12
+ const ne = W((I, $) => {
12
13
  const {
13
- pageCount: o,
14
- page: u,
15
- defaultPage: C = 1,
16
- onPageChange: p,
17
- totalItems: f,
18
- pageSize: m,
19
- pageSizeOptions: s,
20
- onPageSizeChange: c,
21
- boundaryCount: P = 1,
22
- siblingCount: w = 1,
23
- labels: h,
24
- className: k
25
- } = A, { getLabel: t } = K(), n = b(
14
+ pageCount: n,
15
+ page: f,
16
+ defaultPage: j = 1,
17
+ onPageChange: g,
18
+ totalItems: z,
19
+ pageSize: v,
20
+ pageSizeOptions: p,
21
+ onPageSizeChange: u,
22
+ boundaryCount: O = 1,
23
+ siblingCount: x = 1,
24
+ labels: A,
25
+ className: B
26
+ } = I, { getLabel: l } = te(), s = d(
26
27
  () => ({
27
- ariaLabel: t("pagination.title"),
28
- previous: t("pagination.prev-page"),
29
- next: t("pagination.next-page"),
30
- pageAriaLabel: (e) => t("pagination.page", e, !1),
31
- currentPageAriaLabel: (e) => t("pagination.page", e, !0),
32
- results: (e) => t("pagination.results", e),
33
- pageSize: t("pagination.page-size"),
34
- ...h
28
+ ariaLabel: l("pagination.title"),
29
+ previous: l("pagination.prev-page"),
30
+ next: l("pagination.next-page"),
31
+ pageAriaLabel: (e) => l("pagination.page", e, !1),
32
+ currentPageAriaLabel: (e) => l("pagination.page", e, !0),
33
+ results: (e) => l("pagination.results", e),
34
+ pageSize: l("pagination.page-size"),
35
+ pageStatus: (e, t) => l("pagination.page-status", e, t),
36
+ ...A
35
37
  }),
36
- [t, h]
37
- ), [x, I] = E(C), _ = u ?? x, O = J({ page: _, pageCount: o, boundaryCount: P, siblingCount: w }), N = y(
38
+ [l, A]
39
+ ), [J, M] = X(j), o = f ?? J, m = ee({ page: o, pageCount: n, boundaryCount: O, siblingCount: x }), b = S(
38
40
  (e) => {
39
- e === _ || e < 1 || e > o || (u === void 0 && I(e), p == null || p(e));
41
+ e === o || e < 1 || e > n || (f === void 0 && M(e), g == null || g(e));
40
42
  },
41
- [_, p, u, o]
42
- ), j = F(), d = b(
43
- () => Array.isArray(s) ? s.map((e) => ({
43
+ [o, g, f, n]
44
+ ), C = Y(), _ = d(
45
+ () => Array.isArray(p) ? p.map((e) => ({
44
46
  value: String(e),
45
47
  label: String(e)
46
48
  })) : [],
47
- [s]
48
- ), R = b(() => m === void 0 ? d[0] ?? null : d.find((e) => e.value === String(m)) ?? null, [m, d]), $ = y(
49
+ [p]
50
+ ), R = d(() => v === void 0 ? _[0] ?? null : _.find((e) => e.value === String(v)) ?? null, [v, _]), K = S(
49
51
  (e) => {
50
- const l = Array.isArray(e) ? e[0] : e;
51
- l && "value" in l && (c == null || c(Number(l.value)));
52
+ const t = Array.isArray(e) ? e[0] : e;
53
+ t && "value" in t && (u == null || u(Number(t.value)));
52
54
  },
53
- [c]
54
- ), B = g(a["tedi-pagination"], k), M = f !== void 0, T = Array.isArray(s) && s.length > 0;
55
- return /* @__PURE__ */ v("div", { ref: L, className: B, "data-name": "tedi-pagination", children: [
56
- /* @__PURE__ */ i("div", { className: a["tedi-pagination__slot-start"], children: M && /* @__PURE__ */ i(S, { className: a["tedi-pagination__results"], color: "secondary", modifiers: "small", children: n.results(f) }) }),
57
- /* @__PURE__ */ i("div", { className: a["tedi-pagination__slot-center"], children: o > 1 && /* @__PURE__ */ i("nav", { "aria-label": n.ariaLabel, className: a["tedi-pagination__nav"], children: /* @__PURE__ */ i("ul", { className: a["tedi-pagination__list"], children: O.map((e, l) => {
58
- if (e.type === "ellipsis")
59
- return /* @__PURE__ */ i(
60
- "li",
61
- {
62
- className: g(a["tedi-pagination__item"], a["tedi-pagination__item--ellipsis"]),
63
- "aria-hidden": "true",
64
- children: "…"
65
- },
66
- `ellipsis-${l}`
67
- );
68
- if (e.type === "previous" || e.type === "next") {
69
- if (e.disabled) return null;
70
- const U = e.type === "previous" ? n.previous : n.next, q = e.type === "previous" ? "arrow_back" : "arrow_forward";
55
+ [u]
56
+ ), T = h(a["tedi-pagination"], B), U = ae(), N = ie(U, "md"), q = z !== void 0, D = !N && Array.isArray(p) && p.length > 0, E = m[0], F = m[m.length - 1], G = m.slice(1, -1), L = (e) => {
57
+ const t = e.type === "previous" ? s.previous : s.next, r = e.type === "previous" ? "arrow_back" : "arrow_forward";
58
+ return /* @__PURE__ */ i(
59
+ w,
60
+ {
61
+ type: "button",
62
+ className: h(
63
+ a["tedi-pagination__button"],
64
+ a["tedi-pagination__button--nav"],
65
+ a[`tedi-pagination__button--nav-${e.type}`]
66
+ ),
67
+ "aria-label": t,
68
+ disabled: e.disabled,
69
+ onClick: () => e.page !== null && b(e.page),
70
+ noStyle: !0,
71
+ children: /* @__PURE__ */ i(Z, { name: r, size: 18, color: "brand" })
72
+ }
73
+ );
74
+ }, H = d(
75
+ () => Array.from({ length: n }, (e, t) => {
76
+ const r = t + 1;
77
+ return { value: String(r), label: String(r) };
78
+ }),
79
+ [n]
80
+ ), Q = d(
81
+ () => ({ value: String(o), label: `${o} / ${n}` }),
82
+ [o, n]
83
+ ), V = S(
84
+ (e) => {
85
+ const t = Array.isArray(e) ? e[0] : e;
86
+ t && "value" in t && b(Number(t.value));
87
+ },
88
+ [b]
89
+ );
90
+ return /* @__PURE__ */ y("div", { ref: $, className: T, "data-name": "tedi-pagination", children: [
91
+ /* @__PURE__ */ i("span", { className: "visually-hidden", role: "status", "aria-live": "polite", "aria-atomic": "true", children: n > 1 ? s.pageStatus(o, n) : "" }),
92
+ /* @__PURE__ */ i("div", { className: a["tedi-pagination__slot-start"], role: "status", "aria-live": "polite", "aria-atomic": "true", children: q && /* @__PURE__ */ i(P, { className: a["tedi-pagination__results"], color: "secondary", modifiers: "small", children: s.results(z) }) }),
93
+ /* @__PURE__ */ i("div", { className: a["tedi-pagination__slot-center"], children: n > 1 && /* @__PURE__ */ y("nav", { "aria-label": s.ariaLabel, className: a["tedi-pagination__nav"], children: [
94
+ L(E),
95
+ !N && /* @__PURE__ */ i("ul", { className: a["tedi-pagination__list"], children: G.map((e, t) => {
96
+ const r = `slot-${t}`;
97
+ if (e.type === "ellipsis")
98
+ return /* @__PURE__ */ i(
99
+ "li",
100
+ {
101
+ className: h(a["tedi-pagination__item"], a["tedi-pagination__item--ellipsis"]),
102
+ "aria-hidden": "true",
103
+ children: "…"
104
+ },
105
+ r
106
+ );
107
+ const c = e.page;
71
108
  return /* @__PURE__ */ i("li", { className: a["tedi-pagination__item"], children: /* @__PURE__ */ i(
72
- z,
109
+ w,
73
110
  {
74
111
  type: "button",
75
- className: g(a["tedi-pagination__button"], a["tedi-pagination__button--nav"]),
76
- "aria-label": U,
77
- onClick: () => e.page !== null && N(e.page),
112
+ className: h(a["tedi-pagination__button"], {
113
+ [a["tedi-pagination__button--selected"]]: e.selected
114
+ }),
115
+ "aria-label": e.selected ? s.currentPageAriaLabel(c) : s.pageAriaLabel(c),
116
+ "aria-current": e.selected ? "page" : void 0,
117
+ onClick: () => b(c),
78
118
  noStyle: !0,
79
- children: /* @__PURE__ */ i(G, { name: q, size: 18, color: "brand" })
119
+ children: /* @__PURE__ */ i("span", { className: a["tedi-pagination__button-label"], children: c }, c)
80
120
  }
81
- ) }, e.type);
82
- }
83
- const r = e.page;
84
- return /* @__PURE__ */ i("li", { className: a["tedi-pagination__item"], children: /* @__PURE__ */ i(
85
- z,
121
+ ) }, r);
122
+ }) }),
123
+ N && /* @__PURE__ */ i("div", { className: a["tedi-pagination__page-jump"], children: /* @__PURE__ */ i(
124
+ k,
86
125
  {
87
- type: "button",
88
- className: g(a["tedi-pagination__button"], {
89
- [a["tedi-pagination__button--selected"]]: e.selected
90
- }),
91
- "aria-label": e.selected ? n.currentPageAriaLabel(r) : n.pageAriaLabel(r),
92
- "aria-current": e.selected ? "page" : void 0,
93
- onClick: () => N(r),
94
- noStyle: !0,
95
- children: r
126
+ id: `tedi-pagination-jump-${C}`,
127
+ className: a["tedi-pagination__page-jump-select"],
128
+ label: s.ariaLabel,
129
+ hideLabel: !0,
130
+ size: "small",
131
+ options: H,
132
+ value: Q,
133
+ onChange: V,
134
+ isSearchable: !1,
135
+ isClearable: !1
96
136
  }
97
- ) }, r);
98
- }) }) }) }),
99
- /* @__PURE__ */ i("div", { className: a["tedi-pagination__slot-end"], children: T && /* @__PURE__ */ v("div", { className: a["tedi-pagination__page-size"], children: [
137
+ ) }),
138
+ L(F)
139
+ ] }) }),
140
+ /* @__PURE__ */ i("div", { className: a["tedi-pagination__slot-end"], children: D && /* @__PURE__ */ y("div", { className: a["tedi-pagination__page-size"], children: [
100
141
  /* @__PURE__ */ i(
101
- S,
142
+ P,
102
143
  {
103
144
  className: a["tedi-pagination__page-size-label"],
104
145
  color: "secondary",
105
146
  modifiers: "small",
106
147
  element: "span",
107
- children: n.pageSize
148
+ children: s.pageSize
108
149
  }
109
150
  ),
110
151
  /* @__PURE__ */ i(
111
- H,
152
+ k,
112
153
  {
113
- id: `tedi-pagination-page-size-${j}`,
154
+ id: `tedi-pagination-page-size-${C}`,
114
155
  className: a["tedi-pagination__select"],
115
- label: n.pageSize,
156
+ label: s.pageSize,
116
157
  hideLabel: !0,
117
158
  size: "small",
118
- options: d,
159
+ options: _,
119
160
  value: R,
120
- onChange: $,
161
+ onChange: K,
121
162
  isSearchable: !1,
122
163
  isClearable: !1
123
164
  }
@@ -125,8 +166,8 @@ const Q = D((A, L) => {
125
166
  ] }) })
126
167
  ] });
127
168
  });
128
- Q.displayName = "Pagination";
169
+ ne.displayName = "Pagination";
129
170
  export {
130
- Q as Pagination,
131
- Q as default
171
+ ne as Pagination,
172
+ ne as default
132
173
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i={"tedi-pagination":"tedi-pagination-96c6fc62","tedi-pagination__slot-start":"tedi-pagination__slot-start-846e7900","tedi-pagination__slot-center":"tedi-pagination__slot-center-e489623b","tedi-pagination__slot-end":"tedi-pagination__slot-end-3f4f5848","tedi-pagination__results":"tedi-pagination__results-29d9108c","tedi-pagination__nav":"tedi-pagination__nav-5f414114","tedi-pagination__list":"tedi-pagination__list-03467ce1","tedi-pagination__item":"tedi-pagination__item-46985c58","tedi-pagination__item--ellipsis":"tedi-pagination__item--ellipsis-85f798f5","tedi-pagination__button":"tedi-pagination__button-d06c27d4","tedi-pagination__button--selected":"tedi-pagination__button--selected-cb151c7f","tedi-pagination__button--nav":"tedi-pagination__button--nav-2f74eea2","tedi-pagination__page-size":"tedi-pagination__page-size-d1fa6f9d","tedi-pagination__page-size-label":"tedi-pagination__page-size-label-3dc2d141","tedi-pagination__select":"tedi-pagination__select-435e167e"};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i={"tedi-pagination":"tedi-pagination-96c6fc62","tedi-pagination__slot-start":"tedi-pagination__slot-start-846e7900","tedi-pagination__slot-center":"tedi-pagination__slot-center-e489623b","tedi-pagination__slot-end":"tedi-pagination__slot-end-3f4f5848","tedi-pagination__results":"tedi-pagination__results-29d9108c","tedi-pagination__nav":"tedi-pagination__nav-5f414114","tedi-pagination__list":"tedi-pagination__list-03467ce1","tedi-pagination__page-jump":"tedi-pagination__page-jump-db0a15d9","tedi-pagination__page-jump-select":"tedi-pagination__page-jump-select-29430dd4","tedi-pagination__item":"tedi-pagination__item-46985c58","tedi-pagination__item--ellipsis":"tedi-pagination__item--ellipsis-85f798f5","tedi-pagination__button":"tedi-pagination__button-d06c27d4","tedi-pagination__button--selected":"tedi-pagination__button--selected-cb151c7f","tedi-pagination__button--nav":"tedi-pagination__button--nav-2f74eea2","tedi-pagination__button--nav-previous":"tedi-pagination__button--nav-previous-1e74ca69","tedi-pagination__button--nav-next":"tedi-pagination__button--nav-next-80e53bed","tedi-pagination__page-size":"tedi-pagination__page-size-d1fa6f9d","tedi-pagination__page-size-label":"tedi-pagination__page-size-label-3dc2d141","tedi-pagination__select":"tedi-pagination__select-435e167e","tedi-pagination__button-label":"tedi-pagination__button-label-e70ad8bf","tedi-pagination-label-in":"tedi-pagination-label-in-d1e2074e"};exports.default=i;
@@ -6,14 +6,20 @@ const i = {
6
6
  "tedi-pagination__results": "tedi-pagination__results-29d9108c",
7
7
  "tedi-pagination__nav": "tedi-pagination__nav-5f414114",
8
8
  "tedi-pagination__list": "tedi-pagination__list-03467ce1",
9
+ "tedi-pagination__page-jump": "tedi-pagination__page-jump-db0a15d9",
10
+ "tedi-pagination__page-jump-select": "tedi-pagination__page-jump-select-29430dd4",
9
11
  "tedi-pagination__item": "tedi-pagination__item-46985c58",
10
12
  "tedi-pagination__item--ellipsis": "tedi-pagination__item--ellipsis-85f798f5",
11
13
  "tedi-pagination__button": "tedi-pagination__button-d06c27d4",
12
14
  "tedi-pagination__button--selected": "tedi-pagination__button--selected-cb151c7f",
13
15
  "tedi-pagination__button--nav": "tedi-pagination__button--nav-2f74eea2",
16
+ "tedi-pagination__button--nav-previous": "tedi-pagination__button--nav-previous-1e74ca69",
17
+ "tedi-pagination__button--nav-next": "tedi-pagination__button--nav-next-80e53bed",
14
18
  "tedi-pagination__page-size": "tedi-pagination__page-size-d1fa6f9d",
15
19
  "tedi-pagination__page-size-label": "tedi-pagination__page-size-label-3dc2d141",
16
- "tedi-pagination__select": "tedi-pagination__select-435e167e"
20
+ "tedi-pagination__select": "tedi-pagination__select-435e167e",
21
+ "tedi-pagination__button-label": "tedi-pagination__button-label-e70ad8bf",
22
+ "tedi-pagination-label-in": "tedi-pagination-label-in-d1e2074e"
17
23
  };
18
24
  export {
19
25
  i as default
@@ -0,0 +1,100 @@
1
+ export type PaginationItemType = 'page' | 'previous' | 'next' | 'ellipsis';
2
+ export interface PaginationItem {
3
+ type: PaginationItemType;
4
+ page: number | null;
5
+ selected: boolean;
6
+ disabled: boolean;
7
+ }
8
+ export interface PaginationLabels {
9
+ /**
10
+ * Accessible label for the nav wrapper.
11
+ * @default 'Pagination'
12
+ */
13
+ ariaLabel: string;
14
+ /**
15
+ * Previous button label (icon-only, used as aria-label).
16
+ * @default 'Previous page'
17
+ */
18
+ previous: string;
19
+ /**
20
+ * Next button label (icon-only, used as aria-label).
21
+ * @default 'Next page'
22
+ */
23
+ next: string;
24
+ /**
25
+ * Function that builds the aria-label for a numeric page button.
26
+ * @default (page) => `Go to page ${page}`
27
+ */
28
+ pageAriaLabel: (page: number) => string;
29
+ /**
30
+ * Function that builds the aria-label for the currently active page.
31
+ * @default (page) => `Current page, page ${page}`
32
+ */
33
+ currentPageAriaLabel: (page: number) => string;
34
+ /**
35
+ * Rendered to the left of the pagination nav when `totalItems` is set.
36
+ * @default (count) => `${count} results`
37
+ */
38
+ results: (count: number) => string;
39
+ /**
40
+ * Prefix label for the page-size select.
41
+ * @default 'Show per page'
42
+ */
43
+ pageSize: string;
44
+ }
45
+ export interface PaginationProps {
46
+ /**
47
+ * Total number of pages.
48
+ */
49
+ pageCount: number;
50
+ /**
51
+ * Controlled current page (1-based). Pair with `onPageChange`.
52
+ */
53
+ page?: number;
54
+ /**
55
+ * Initial page for uncontrolled mode (1-based).
56
+ * @default 1
57
+ */
58
+ defaultPage?: number;
59
+ /**
60
+ * Fires whenever the user navigates to a different page.
61
+ */
62
+ onPageChange?: (page: number) => void;
63
+ /**
64
+ * Total number of items across all pages. Renders a "{count} results" label
65
+ * to the left of the nav when set.
66
+ */
67
+ totalItems?: number;
68
+ /**
69
+ * Current page size. Shown in the page-size select when
70
+ * `pageSizeOptions` is provided.
71
+ */
72
+ pageSize?: number;
73
+ /**
74
+ * Options for the page-size select. Omit to hide the select.
75
+ */
76
+ pageSizeOptions?: number[];
77
+ /**
78
+ * Fires when the user picks a different page size.
79
+ */
80
+ onPageSizeChange?: (pageSize: number) => void;
81
+ /**
82
+ * Number of pages always shown at the start and end of the range before
83
+ * ellipsis kicks in.
84
+ * @default 1
85
+ */
86
+ boundaryCount?: number;
87
+ /**
88
+ * Number of sibling pages shown on either side of the current page.
89
+ * @default 1
90
+ */
91
+ siblingCount?: number;
92
+ /**
93
+ * Override any of the default text labels / aria labels.
94
+ */
95
+ labels?: Partial<PaginationLabels>;
96
+ /**
97
+ * Additional class name on the root element.
98
+ */
99
+ className?: string;
100
+ }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("../overlay/overlay.cjs.js"),l=require("./tooltip-content.cjs.js"),u=require("./tooltip-trigger.cjs.js"),c=7,a=14,e=o=>{const{openWith:t="hover",focusManager:r,...n}=o;return i.jsx(s.Overlay,{arrowDimensions:{width:a,height:c},openWith:t,role:"tooltip",focusManager:{modal:!1,order:["reference","content"],returnFocus:!0,...r},...n})};e.Trigger=u.TooltipTrigger;e.Content=l.TooltipContent;exports.Tooltip=e;exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("../overlay/overlay.cjs.js"),l=require("./tooltip-content.cjs.js"),u=require("./tooltip-trigger.cjs.js"),c=7,a=14,e=o=>{const{openWith:t="hover",focusManager:r,...n}=o;return i.jsx(s.Overlay,{arrowDimensions:{width:a,height:c},openWith:t,role:"tooltip",focusManager:{modal:!1,order:["reference","content"],initialFocus:-1,returnFocus:!1,...r},...n})};e.Trigger=u.TooltipTrigger;e.Content=l.TooltipContent;exports.Tooltip=e;exports.default=e;
@@ -1,29 +1,37 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { Overlay as s } from "../overlay/overlay.es.js";
3
3
  import { TooltipContent as a } from "./tooltip-content.es.js";
4
- import { TooltipTrigger as m } from "./tooltip-trigger.es.js";
5
- const p = 7, c = 14, o = (r) => {
4
+ import { TooltipTrigger as l } from "./tooltip-trigger.es.js";
5
+ const c = 7, f = 14, o = (r) => {
6
6
  const { openWith: t = "hover", focusManager: e, ...n } = r;
7
7
  return /* @__PURE__ */ i(
8
8
  s,
9
9
  {
10
10
  arrowDimensions: {
11
- width: c,
12
- height: p
11
+ width: f,
12
+ height: c
13
13
  },
14
14
  openWith: t,
15
15
  role: "tooltip",
16
16
  focusManager: {
17
17
  modal: !1,
18
18
  order: ["reference", "content"],
19
- returnFocus: !0,
19
+ // Tooltips are non-interactive (just descriptive text), so the focus
20
+ // manager must not move focus on open or close. `initialFocus: -1`
21
+ // skips the programmatic `.focus()` on the trigger when the tooltip
22
+ // mounts — that programmatic focus is what the browser's
23
+ // `:focus-visible` heuristic was upgrading to a "keyboard-style" ring,
24
+ // leaving the trigger painted with the focus border after a plain
25
+ // hover or mouse click.
26
+ initialFocus: -1,
27
+ returnFocus: !1,
20
28
  ...e
21
29
  },
22
30
  ...n
23
31
  }
24
32
  );
25
33
  };
26
- o.Trigger = m;
34
+ o.Trigger = l;
27
35
  o.Content = a;
28
36
  export {
29
37
  o as Tooltip,
@@ -6,6 +6,7 @@ export * from './components/content/label/label';
6
6
  export * from './components/content/section/section';
7
7
  export * from './components/content/heading-with-icon/heading-with-icon';
8
8
  export * from './components/content/truncate/truncate';
9
+ export * from './components/content/table';
9
10
  export * from './components/content/text-group';
10
11
  export * from './components/content/calendar/calendar';
11
12
  export * from './components/loaders/spinner/spinner';
@@ -46,6 +47,7 @@ export * from './components/form/time-picker/time-picker';
46
47
  export * from './components/form/checkbox/checkbox';
47
48
  export * from './components/form/slider/slider';
48
49
  export * from './components/form/date-field/date-field';
50
+ export * from './components/filter/filter';
49
51
  export * from './components/form/input-group';
50
52
  export * from './components/form/field/field';
51
53
  export * from './components/overlays/tooltip';