@caspeco/casper-ui-library 10.7.2 → 10.8.0

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 (26) hide show
  1. package/README.md +1 -0
  2. package/dist/components/rich-text-editor/boolean-control.js +1 -1
  3. package/dist/components/rich-text-editor/rich-text-editor-control.js +1 -1
  4. package/dist/components/rich-text-editor/rich-text-editor.js +1 -1
  5. package/dist/components/rich-text-editor/use-rich-text-editor.js +1 -1
  6. package/dist/components/table/table-header-dropdown.d.ts +3 -5
  7. package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
  8. package/dist/components/table/table-header-dropdown.js +116 -108
  9. package/dist/components/table/table-header-dropdown.spec.d.ts +2 -0
  10. package/dist/components/table/table-header-dropdown.spec.d.ts.map +1 -0
  11. package/dist/components/table/table-header-row.d.ts.map +1 -1
  12. package/dist/components/table/table-header-row.js +0 -1
  13. package/dist/components/table/table-recipe.d.ts.map +1 -1
  14. package/dist/components/table/table-recipe.js +0 -1
  15. package/dist/components/table/translations.d.ts +7 -0
  16. package/dist/components/table/translations.d.ts.map +1 -1
  17. package/dist/components/table/translations.js +12 -6
  18. package/dist/node_modules/@tiptap/core/dist/index.js +725 -951
  19. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +37 -13
  20. package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +11 -0
  21. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +1 -3
  22. package/dist/node_modules/@tiptap/extension-list/dist/index.js +101 -128
  23. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +3 -2
  24. package/dist/node_modules/@tiptap/extensions/dist/index.js +6 -7
  25. package/dist/{node_modules → packages/casper-ui-library/node_modules}/@tiptap/react/dist/index.js +24 -24
  26. package/package.json +10 -9
package/README.md CHANGED
@@ -28,6 +28,7 @@ All commands are run from the root of the project, from a terminal.
28
28
  | `npm run lint` | Run linting with [@caspeco/eslint-config](https://github.com/Caspeco/eslint-config). If you use the recommended [ESLint VSCode extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) you can see your eslint errors directly in your editor without having to run this. |
29
29
  | `npm run prettier:fix` | Reformat all files with [@caspeco/prettier-config](https://github.com/Caspeco/prettier-config). If you use the recommended [Prettier VSCode extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) you can have your files automatically formatted on file save. |
30
30
  | `npm run chakra:types` | Generate Chakra UI type definitions for the theme. You run this if you modify component variants and want to get rid of TS errors, for example. Happens automatically on `npm install`. |
31
+ | `npm run test:all` | Run every check the CI lint job runs, in sequence: `prettier`, `lint`, `tsc`, `knip` and `test`. Stops at the first failure. Requires Playwright browsers (`npm exec -- playwright install chromium`) for the unit tests. |
31
32
 
32
33
  ### Preview locally in another project
33
34
 
@@ -1,5 +1,5 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { useEditorState as t } from "../../node_modules/@tiptap/react/dist/index.js";
2
+ import { useEditorState as t } from "../../packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js";
3
3
  import { useRichTextEditorContext as n } from "./rich-text-editor-context.js";
4
4
  import { Tooltip as r } from "../tooltip/tooltip.js";
5
5
  import { ToggleButton as i } from "../toggle-button/toggle-button.js";
@@ -10,7 +10,7 @@ import { MenuList as te } from "../menu/menu-list.js";
10
10
  import { FormControl as l } from "../form-control/form-control.js";
11
11
  import { FormLabel as u } from "../form-control/form-label.js";
12
12
  import { Input as d } from "../input/input.js";
13
- import { useEditorState as f } from "../../node_modules/@tiptap/react/dist/index.js";
13
+ import { useEditorState as f } from "../../packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js";
14
14
  import { useRichTextEditorContext as p } from "./rich-text-editor-context.js";
15
15
  import { Tooltip as ne } from "../tooltip/tooltip.js";
16
16
  import { find as m } from "../../node_modules/linkifyjs/dist/linkify.js";
@@ -1,6 +1,6 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
2
  import { ThemeColorVariable as t, ThemeSpaceVariable as n } from "../../theme/theme-types.js";
3
- import { EditorContent as r } from "../../node_modules/@tiptap/react/dist/index.js";
3
+ import { EditorContent as r } from "../../packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js";
4
4
  import { RichTextEditorContext as i, useRichTextEditorContext as a } from "./rich-text-editor-context.js";
5
5
  import { proseMirrorContainerCss as o, proseMirrorContentCss as s, toolbarCss as c } from "./rich-text-editor-recipe.js";
6
6
  import "react";
@@ -1,5 +1,5 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { useEditor as t } from "../../node_modules/@tiptap/react/dist/index.js";
2
+ import { useEditor as t } from "../../packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js";
3
3
  import { richTextExtensions as n } from "./extensions.js";
4
4
  //#region lib/components/rich-text-editor/use-rich-text-editor.ts
5
5
  var r = e();
@@ -1,4 +1,4 @@
1
- import { Header, HeaderGroup, SortingState, VisibilityState } from '@tanstack/react-table';
1
+ import { Header, HeaderGroup, SortingState } from '@tanstack/react-table';
2
2
  import { Ref } from 'react';
3
3
  import { Locales } from './translations.js';
4
4
  import { TableData, TableRow } from './types.js';
@@ -10,13 +10,11 @@ type TableHeaderDropdownProps<TData extends TableData> = {
10
10
  headerGroup: HeaderGroup<TableRow<TData>>[];
11
11
  sorting: SortingState;
12
12
  setSorting: (value: SortingState) => void;
13
- columnVisibility: VisibilityState;
14
13
  localeString: Locales;
15
14
  dragRef?: Ref<HTMLButtonElement>;
16
- };
17
- declare const TableHeaderDropdownComponent: <TData extends TableData>({ header, breakingContentState, onBreakingContentChange, setBreakingContentState, headerGroup, sorting, setSorting, localeString, portalContainerRef, dragRef, }: TableHeaderDropdownProps<TData> & {
18
15
  portalContainerRef?: React.RefObject<HTMLElement | null>;
19
- }) => import("react").JSX.Element;
16
+ };
17
+ declare const TableHeaderDropdownComponent: <TData extends TableData>({ portalContainerRef, dragRef, ...contentProps }: TableHeaderDropdownProps<TData>) => import("react").JSX.Element;
20
18
  export declare const TableHeaderDropdown: typeof TableHeaderDropdownComponent;
21
19
  export {};
22
20
  //# sourceMappingURL=table-header-dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-header-dropdown.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-dropdown.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAGN,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAQ,KAAK,GAAG,EAAwB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,IAAI;IACxD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACzC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,uBAAuB,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClF,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,CAAC;IACxF,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;IAC5C,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,gBAAgB,EAAE,eAAe,CAAC;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,4BAA4B,GAAI,KAAK,SAAS,SAAS,EAAE,kKAW5D,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,gCAsJhG,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAyC,OAAO,4BAA4B,CAAC"}
1
+ {"version":3,"file":"table-header-dropdown.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-dropdown.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAGN,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAQ,KAAK,GAAG,EAAwB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,IAAI;IACxD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACzC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,uBAAuB,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClF,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,CAAC;IACxF,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;IAC5C,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACjC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACzD,CAAC;AAEF,QAAA,MAAM,4BAA4B,GAAI,KAAK,SAAS,SAAS,EAAE,kDAI5D,wBAAwB,CAAC,KAAK,CAAC,gCAkDjC,CAAC;AAmHF,eAAO,MAAM,mBAAmB,EAAyC,OAAO,4BAA4B,CAAC"}
@@ -1,131 +1,139 @@
1
1
  "use no memo";
2
2
  import { ThemeColorVariable as e, ThemeFontSizeVariable as t, ThemeIconSizeVariable as n, ThemeSpaceVariable as r } from "../../theme/theme-types.js";
3
- import { FilterIcon as i } from "../icon/icons/filter-icon.js";
4
- import { HideIcon as a } from "../icon/icons/hide-icon.js";
5
- import { SortAscIcon as o } from "../icon/icons/sort-asc-icon.js";
6
- import { SortDescIcon as s } from "../icon/icons/sort-desc-icon.js";
7
- import { ThumbtackIcon as c } from "../icon/icons/thumbtack-icon.js";
8
- import { Text as l } from "../text/text.js";
9
- import { Box as u } from "../box/box.js";
10
- import { Menu as d } from "../menu/menu.js";
11
- import { MenuBoxButton as f } from "../menu/menu-box-button.js";
12
- import { MenuDivider as p } from "../menu/menu-divider.js";
13
- import { MenuItem as m } from "../menu/menu-item.js";
14
- import { MenuList as h } from "../menu/menu-list.js";
15
- import { Switch as g } from "../switch/switch.js";
16
- import { flexRender as _ } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
17
- import { useTableContext as v } from "./table-context.js";
18
- import { translations as y } from "./translations.js";
19
- import { memo as b, useCallback as x, useMemo as S } from "react";
20
- import { Portal as C } from "@chakra-ui/react";
21
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
22
- var D = b(({ header: b, breakingContentState: D, onBreakingContentChange: O, setBreakingContentState: k, headerGroup: A, sorting: j, setSorting: M, localeString: N, portalContainerRef: P, dragRef: F }) => {
23
- let I = y[N], { getTableFilterMethods: L } = v(), R = x(({ checked: e }) => {
24
- let t = {
25
- ...D,
26
- [b.column.id]: e
3
+ import { CloseIcon as i } from "../icon/icons/close-icon.js";
4
+ import { FilterIcon as a } from "../icon/icons/filter-icon.js";
5
+ import { HideIcon as o } from "../icon/icons/hide-icon.js";
6
+ import { SortAscIcon as s } from "../icon/icons/sort-asc-icon.js";
7
+ import { SortDescIcon as c } from "../icon/icons/sort-desc-icon.js";
8
+ import { ThumbtackIcon as l } from "../icon/icons/thumbtack-icon.js";
9
+ import { Text as u } from "../text/text.js";
10
+ import { Box as d } from "../box/box.js";
11
+ import { Menu as f } from "../menu/menu.js";
12
+ import { MenuBoxButton as p } from "../menu/menu-box-button.js";
13
+ import { MenuDivider as m } from "../menu/menu-divider.js";
14
+ import { MenuItem as h } from "../menu/menu-item.js";
15
+ import { MenuList as g } from "../menu/menu-list.js";
16
+ import { Switch as _ } from "../switch/switch.js";
17
+ import { flexRender as v } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
18
+ import { useTableContext as y } from "./table-context.js";
19
+ import { translations as b } from "./translations.js";
20
+ import { memo as x, useCallback as S, useMemo as C } from "react";
21
+ import { Portal as w } from "@chakra-ui/react";
22
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
23
+ //#region lib/components/table/table-header-dropdown.tsx
24
+ var O = ({ portalContainerRef: i, dragRef: a, ...o }) => {
25
+ let { header: l, sorting: u } = o, m = C(() => {
26
+ let e = u.find((e) => e.id === l.column.id);
27
+ return /* @__PURE__ */ D(T, { children: [e && (e.desc ? /* @__PURE__ */ E(c, { size: n.XSmall }) : /* @__PURE__ */ E(s, { size: n.XSmall })), /* @__PURE__ */ E(d, {
28
+ minW: 0,
29
+ overflowWrap: "break-word",
30
+ children: v(l.column.columnDef.header, l.getContext())
31
+ })] });
32
+ }, [l, u]);
33
+ return /* @__PURE__ */ E(f, {
34
+ isLazy: !0,
35
+ children: ({ isOpen: n }) => /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(p, {
36
+ ref: a,
37
+ color: e.OnBackgroundSubdued,
38
+ textTransform: "none",
39
+ fontSize: t.Small,
40
+ h: "40px",
41
+ display: "flex",
42
+ textAlign: "inherit",
43
+ alignItems: "center",
44
+ lineHeight: "1.2",
45
+ padding: `0px 0px 0px ${r.Small}`,
46
+ backgroundColor: n ? e.BackgroundDisabled : "unset",
47
+ w: "100%",
48
+ children: v(m, l.getContext())
49
+ }), /* @__PURE__ */ E(w, {
50
+ container: i,
51
+ children: /* @__PURE__ */ E(g, {
52
+ fontSize: t.Medium,
53
+ children: /* @__PURE__ */ E(k, { ...o })
54
+ })
55
+ })] })
56
+ });
57
+ }, k = ({ header: e, breakingContentState: t, onBreakingContentChange: n, setBreakingContentState: r, headerGroup: d, sorting: f, setSorting: p, localeString: g }) => {
58
+ let v = b[g], { getTableFilterMethods: x } = y(), w = S(({ checked: i }) => {
59
+ let a = {
60
+ ...t,
61
+ [e.column.id]: i
27
62
  };
28
- k(t), O?.(t);
63
+ r(a), n?.(a);
29
64
  }, [
30
- D,
31
- b.column.id,
32
- O,
33
- k
34
- ]), z = x((e) => {
65
+ t,
66
+ e.column.id,
67
+ n,
68
+ r
69
+ ]), O = S((e) => {
35
70
  let t = e.getIndex();
36
- A.forEach((n) => {
71
+ d.forEach((n) => {
37
72
  n.headers.forEach((n, r) => {
38
73
  let { column: i } = n;
39
74
  e.getIsPinned() ? r >= t && i.pin(!1) : r <= t && i.pin("left");
40
75
  });
41
76
  });
42
- }, [A]), B = S(() => /* @__PURE__ */ E(w, { children: [j.find((e) => e.id === b.column.id) && (j.find((e) => e.desc) ? /* @__PURE__ */ T(s, { size: n.XSmall }) : /* @__PURE__ */ T(o, { size: n.XSmall })), /* @__PURE__ */ T(u, {
43
- minW: 0,
44
- overflowWrap: "break-word",
45
- children: _(b.column.columnDef.header, b.getContext())
46
- })] }), [b, j]), V = S(() => L()?.canFilterOnColumn(b.column.id) ?? !1, [b.column.id, L]), H = S(() => /* @__PURE__ */ E(w, { children: [
47
- b.column.getCanSort() && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(m, {
48
- onClick: () => M([{
49
- desc: !1,
50
- id: b.column.id
51
- }]),
52
- leftIcon: o,
53
- value: "sort-asc",
54
- children: /* @__PURE__ */ T(l, { children: I.sortUp })
55
- }), /* @__PURE__ */ T(m, {
56
- onClick: () => M([{
57
- desc: !0,
58
- id: b.column.id
59
- }]),
60
- leftIcon: s,
61
- value: "sort-desc",
62
- children: /* @__PURE__ */ T(l, { children: I.sortDown })
63
- })] }),
64
- V && /* @__PURE__ */ T(m, {
77
+ }, [d]), k = C(() => x()?.canFilterOnColumn(e.column.id) ?? !1, [e.column.id, x]);
78
+ return /* @__PURE__ */ D(T, { children: [
79
+ e.column.getCanSort() && /* @__PURE__ */ D(T, { children: [
80
+ /* @__PURE__ */ E(h, {
81
+ onClick: () => p([{
82
+ desc: !1,
83
+ id: e.column.id
84
+ }]),
85
+ leftIcon: s,
86
+ value: "sort-asc",
87
+ children: /* @__PURE__ */ E(u, { children: v.sortUp })
88
+ }),
89
+ /* @__PURE__ */ E(h, {
90
+ onClick: () => p([{
91
+ desc: !0,
92
+ id: e.column.id
93
+ }]),
94
+ leftIcon: c,
95
+ value: "sort-desc",
96
+ children: /* @__PURE__ */ E(u, { children: v.sortDown })
97
+ }),
98
+ f.some((t) => t.id === e.column.id) && /* @__PURE__ */ E(h, {
99
+ onClick: () => p(f.filter((t) => t.id !== e.column.id)),
100
+ leftIcon: i,
101
+ value: "clear-sorting",
102
+ children: /* @__PURE__ */ E(u, { children: v.clearSorting })
103
+ })
104
+ ] }),
105
+ k && /* @__PURE__ */ E(h, {
65
106
  onClick: () => {
66
- let e = L();
67
- e?.onToggleFilterVisibility && e.onToggleFilterVisibility(b.column.id);
107
+ let t = x();
108
+ t?.onToggleFilterVisibility && t.onToggleFilterVisibility(e.column.id);
68
109
  },
69
- leftIcon: i,
110
+ leftIcon: a,
70
111
  value: "filter",
71
- children: /* @__PURE__ */ T(l, { children: I.filter })
112
+ children: /* @__PURE__ */ E(u, { children: v.filter })
72
113
  }),
73
- (b.column.getCanSort() || V) && /* @__PURE__ */ T(p, {}),
74
- b.column.getCanHide() && /* @__PURE__ */ T(m, {
75
- onClick: b.column.getToggleVisibilityHandler(),
76
- leftIcon: a,
114
+ (e.column.getCanSort() || k) && /* @__PURE__ */ E(m, {}),
115
+ e.column.getCanHide() && /* @__PURE__ */ E(h, {
116
+ onClick: e.column.getToggleVisibilityHandler(),
117
+ leftIcon: o,
77
118
  value: "hide",
78
- children: /* @__PURE__ */ T(l, { children: I.hideColumn })
119
+ children: /* @__PURE__ */ E(u, { children: v.hideColumn })
79
120
  }),
80
- /* @__PURE__ */ T(m, {
81
- onClick: () => z(b.column),
82
- leftIcon: c,
121
+ /* @__PURE__ */ E(h, {
122
+ onClick: () => O(e.column),
123
+ leftIcon: l,
83
124
  value: "pin",
84
- children: /* @__PURE__ */ T(l, { children: b.column.getIsPinned() ? I.stopPinningColumn : I.pinUpToColumn })
125
+ children: /* @__PURE__ */ E(u, { children: e.column.getIsPinned() ? v.stopPinningColumn : v.pinUpToColumn })
85
126
  }),
86
- /* @__PURE__ */ T(p, {}),
87
- /* @__PURE__ */ E(m, {
127
+ /* @__PURE__ */ E(m, {}),
128
+ /* @__PURE__ */ D(h, {
88
129
  itemType: "switch",
89
130
  value: "breaking-content",
90
- children: [I.breakingContent, /* @__PURE__ */ T(g, {
91
- onCheckedChange: R,
92
- isChecked: D[b.column.id]
131
+ children: [v.breakingContent, /* @__PURE__ */ E(_, {
132
+ onCheckedChange: w,
133
+ isChecked: t[e.column.id]
93
134
  })]
94
135
  })
95
- ] }), [
96
- D,
97
- V,
98
- L,
99
- z,
100
- b.column,
101
- R,
102
- M,
103
- I
104
- ]);
105
- return /* @__PURE__ */ T(d, {
106
- isLazy: !0,
107
- children: ({ isOpen: n }) => /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(f, {
108
- ref: F,
109
- color: e.OnBackgroundSubdued,
110
- textTransform: "none",
111
- fontSize: t.Small,
112
- h: "40px",
113
- display: "flex",
114
- textAlign: "inherit",
115
- alignItems: "center",
116
- lineHeight: "1.2",
117
- padding: `0px 0px 0px ${r.Small}`,
118
- backgroundColor: n ? e.BackgroundDisabled : "unset",
119
- w: "100%",
120
- children: _(B, b.getContext())
121
- }), /* @__PURE__ */ T(C, {
122
- container: P,
123
- children: /* @__PURE__ */ T(h, {
124
- fontSize: t.Medium,
125
- children: H
126
- })
127
- })] })
128
- });
129
- });
136
+ ] });
137
+ }, A = x(O);
130
138
  //#endregion
131
- export { D as TableHeaderDropdown };
139
+ export { A as TableHeaderDropdown };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=table-header-dropdown.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-header-dropdown.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-dropdown.spec.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"table-header-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-row.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAO/F,OAAO,KAAK,EAAmB,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,mBAAmB,CAAC,KAAK,SAAS,SAAS,IAAI;IACnD,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,uBAAuB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,KAAK,SAAS,SAAS,EAAE,+DAIvD,mBAAmB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,gCAmD3F,CAAC;AAiQF,eAAO,MAAM,cAAc,EAAoC,OAAO,uBAAuB,CAAC"}
1
+ {"version":3,"file":"table-header-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-row.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAO/F,OAAO,KAAK,EAAmB,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,mBAAmB,CAAC,KAAK,SAAS,SAAS,IAAI;IACnD,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,uBAAuB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,KAAK,SAAS,SAAS,EAAE,+DAIvD,mBAAmB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,gCAmD3F,CAAC;AAgQF,eAAO,MAAM,cAAc,EAAoC,OAAO,uBAAuB,CAAC"}
@@ -92,7 +92,6 @@ var I = ({ headerGroup: t, hideTableHeaderDropdown: n, portalContainerRef: r })
92
92
  }) : /* @__PURE__ */ P(T, {
93
93
  header: t,
94
94
  breakingContentState: c.breakingContentState,
95
- columnVisibility: c.columnVisibility,
96
95
  headerGroup: c.table.getHeaderGroups(),
97
96
  localeString: c.localeString,
98
97
  setBreakingContentState: c.setBreakingContentState,
@@ -1 +1 @@
1
- {"version":3,"file":"table-recipe.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-recipe.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,oBAAoB,EAIzB,MAAM,kBAAkB,CAAC;AAiG1B,eAAO,MAAM,WAAW,EAAE,oBAUxB,CAAC"}
1
+ {"version":3,"file":"table-recipe.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-recipe.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,oBAAoB,EAIzB,MAAM,kBAAkB,CAAC;AAgG1B,eAAO,MAAM,WAAW,EAAE,oBAUxB,CAAC"}
@@ -4,7 +4,6 @@ import { defineSlotRecipe as i, defineStyle as a } from "@chakra-ui/react";
4
4
  //#region lib/components/table/table-recipe.ts
5
5
  var o = {
6
6
  position: "relative",
7
- isolation: "isolate",
8
7
  borderCollapse: "separate",
9
8
  borderSpacing: 0,
10
9
  borderBottom: `1px solid ${t.OnBackgroundBorder}`,
@@ -34,6 +34,7 @@ export declare const translations: {
34
34
  deleteSelectedRows: string;
35
35
  shownInTable: string;
36
36
  hiddenInTable: string;
37
+ clearSorting: string;
37
38
  };
38
39
  "en-US": {
39
40
  sortUp: string;
@@ -66,6 +67,7 @@ export declare const translations: {
66
67
  deleteSelectedRows: string;
67
68
  shownInTable: string;
68
69
  hiddenInTable: string;
70
+ clearSorting: string;
69
71
  };
70
72
  "en-GB": {
71
73
  sortUp: string;
@@ -98,6 +100,7 @@ export declare const translations: {
98
100
  deleteSelectedRows: string;
99
101
  shownInTable: string;
100
102
  hiddenInTable: string;
103
+ clearSorting: string;
101
104
  };
102
105
  "nb-NO": {
103
106
  sortUp: string;
@@ -130,6 +133,7 @@ export declare const translations: {
130
133
  deleteSelectedRows: string;
131
134
  shownInTable: string;
132
135
  hiddenInTable: string;
136
+ clearSorting: string;
133
137
  };
134
138
  "da-DK": {
135
139
  sortUp: string;
@@ -162,6 +166,7 @@ export declare const translations: {
162
166
  deleteSelectedRows: string;
163
167
  shownInTable: string;
164
168
  hiddenInTable: string;
169
+ clearSorting: string;
165
170
  };
166
171
  "fr-FR": {
167
172
  sortUp: string;
@@ -194,6 +199,7 @@ export declare const translations: {
194
199
  deleteSelectedRows: string;
195
200
  shownInTable: string;
196
201
  hiddenInTable: string;
202
+ clearSorting: string;
197
203
  };
198
204
  "nl-BE": {
199
205
  sortUp: string;
@@ -226,6 +232,7 @@ export declare const translations: {
226
232
  deleteSelectedRows: string;
227
233
  shownInTable: string;
228
234
  hiddenInTable: string;
235
+ clearSorting: string;
229
236
  };
230
237
  };
231
238
  //# sourceMappingURL=translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/table/translations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,UAE1F;AAmCD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKxB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/table/translations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,UAE1F;AAoCD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKxB,CAAC"}
@@ -32,7 +32,8 @@ var t = {
32
32
  action: "Action",
33
33
  deleteSelectedRows: "Delete selected rows",
34
34
  shownInTable: "Shown in table",
35
- hiddenInTable: "Hidden in table"
35
+ hiddenInTable: "Hidden in table",
36
+ clearSorting: "Clear sorting"
36
37
  }, n = {
37
38
  "sv-SE": {
38
39
  sortUp: "Sortera stigande",
@@ -64,7 +65,8 @@ var t = {
64
65
  action: "Åtgärd",
65
66
  deleteSelectedRows: "Ta bort valda rader",
66
67
  shownInTable: "Visas i tabellen",
67
- hiddenInTable: "Dold i tabellen"
68
+ hiddenInTable: "Dold i tabellen",
69
+ clearSorting: "Rensa sortering"
68
70
  },
69
71
  "en-US": t,
70
72
  "en-GB": t,
@@ -98,7 +100,8 @@ var t = {
98
100
  action: "Handling",
99
101
  deleteSelectedRows: "Fjern valgte rader",
100
102
  shownInTable: "Vises i tabellen",
101
- hiddenInTable: "Dold i tabellen"
103
+ hiddenInTable: "Dold i tabellen",
104
+ clearSorting: "Fjern sortering"
102
105
  },
103
106
  "da-DK": {
104
107
  sortUp: "Sorter stigende",
@@ -130,7 +133,8 @@ var t = {
130
133
  action: "Handling",
131
134
  deleteSelectedRows: "Fjern valgte rækker",
132
135
  shownInTable: "Vises i tabellen",
133
- hiddenInTable: "Dold i tabellen"
136
+ hiddenInTable: "Dold i tabellen",
137
+ clearSorting: "Fjern sortering"
134
138
  },
135
139
  "fr-FR": {
136
140
  sortUp: "Trier par ordre croissant",
@@ -162,7 +166,8 @@ var t = {
162
166
  action: "Action",
163
167
  deleteSelectedRows: "Supprimer les lignes sélectionnées",
164
168
  shownInTable: "Affiché dans le tableau",
165
- hiddenInTable: "Masqué dans le tableau"
169
+ hiddenInTable: "Masqué dans le tableau",
170
+ clearSorting: "Effacer le tri"
166
171
  },
167
172
  "nl-BE": {
168
173
  sortUp: "Oplopend sorteren",
@@ -194,7 +199,8 @@ var t = {
194
199
  action: "Actie",
195
200
  deleteSelectedRows: "Verwijder geselecteerde rijen",
196
201
  shownInTable: "Getoond in tabel",
197
- hiddenInTable: "Verborgen in tabel"
202
+ hiddenInTable: "Verborgen in tabel",
203
+ clearSorting: "Sortering wissen"
198
204
  }
199
205
  };
200
206
  //#endregion