@elliemae/ds-filter-bar 3.60.0-next.39

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 (145) hide show
  1. package/dist/cjs/DSFilterBar.js +83 -0
  2. package/dist/cjs/DSFilterBar.js.map +7 -0
  3. package/dist/cjs/config/useFilterBar.js +58 -0
  4. package/dist/cjs/config/useFilterBar.js.map +7 -0
  5. package/dist/cjs/config/useValidateProps.js +40 -0
  6. package/dist/cjs/config/useValidateProps.js.map +7 -0
  7. package/dist/cjs/constants/index.js +46 -0
  8. package/dist/cjs/constants/index.js.map +7 -0
  9. package/dist/cjs/hooks/react-desc-prop-types.js +44 -0
  10. package/dist/cjs/hooks/react-desc-prop-types.js.map +7 -0
  11. package/dist/cjs/hooks/useFilterBarPrevNextFocus.js +97 -0
  12. package/dist/cjs/hooks/useFilterBarPrevNextFocus.js.map +7 -0
  13. package/dist/cjs/index.js +52 -0
  14. package/dist/cjs/index.js.map +7 -0
  15. package/dist/cjs/package.json +10 -0
  16. package/dist/cjs/parts/DSFilterBarActions/DSFilterBarActions.js +60 -0
  17. package/dist/cjs/parts/DSFilterBarActions/DSFilterBarActions.js.map +7 -0
  18. package/dist/cjs/parts/DSFilterBarActions/config/useFilterBarActions.js +66 -0
  19. package/dist/cjs/parts/DSFilterBarActions/config/useFilterBarActions.js.map +7 -0
  20. package/dist/cjs/parts/DSFilterBarActions/config/useValidateProps.js +40 -0
  21. package/dist/cjs/parts/DSFilterBarActions/config/useValidateProps.js.map +7 -0
  22. package/dist/cjs/parts/DSFilterBarActions/constants/index.js +45 -0
  23. package/dist/cjs/parts/DSFilterBarActions/constants/index.js.map +7 -0
  24. package/dist/cjs/parts/DSFilterBarActions/index.js +37 -0
  25. package/dist/cjs/parts/DSFilterBarActions/index.js.map +7 -0
  26. package/dist/cjs/parts/DSFilterBarActions/react-desc-prop-types.js +47 -0
  27. package/dist/cjs/parts/DSFilterBarActions/react-desc-prop-types.js.map +7 -0
  28. package/dist/cjs/parts/DSFilterBarContent/DSFilterBarContent.js +61 -0
  29. package/dist/cjs/parts/DSFilterBarContent/DSFilterBarContent.js.map +7 -0
  30. package/dist/cjs/parts/DSFilterBarContent/config/useFilterBarContent.js +66 -0
  31. package/dist/cjs/parts/DSFilterBarContent/config/useFilterBarContent.js.map +7 -0
  32. package/dist/cjs/parts/DSFilterBarContent/config/useValidateProps.js +40 -0
  33. package/dist/cjs/parts/DSFilterBarContent/config/useValidateProps.js.map +7 -0
  34. package/dist/cjs/parts/DSFilterBarContent/constants/index.js +45 -0
  35. package/dist/cjs/parts/DSFilterBarContent/constants/index.js.map +7 -0
  36. package/dist/cjs/parts/DSFilterBarContent/index.js +37 -0
  37. package/dist/cjs/parts/DSFilterBarContent/index.js.map +7 -0
  38. package/dist/cjs/parts/DSFilterBarContent/react-desc-prop-types.js +47 -0
  39. package/dist/cjs/parts/DSFilterBarContent/react-desc-prop-types.js.map +7 -0
  40. package/dist/cjs/parts/DSFilterBarMenuButton/DSFilterBarMenuButton.js +115 -0
  41. package/dist/cjs/parts/DSFilterBarMenuButton/DSFilterBarMenuButton.js.map +7 -0
  42. package/dist/cjs/parts/DSFilterBarMenuButton/config/useFilterBarMenuButton.js +69 -0
  43. package/dist/cjs/parts/DSFilterBarMenuButton/config/useFilterBarMenuButton.js.map +7 -0
  44. package/dist/cjs/parts/DSFilterBarMenuButton/config/useValidateProps.js +40 -0
  45. package/dist/cjs/parts/DSFilterBarMenuButton/config/useValidateProps.js.map +7 -0
  46. package/dist/cjs/parts/DSFilterBarMenuButton/constants/index.js +48 -0
  47. package/dist/cjs/parts/DSFilterBarMenuButton/constants/index.js.map +7 -0
  48. package/dist/cjs/parts/DSFilterBarMenuButton/index.js +37 -0
  49. package/dist/cjs/parts/DSFilterBarMenuButton/index.js.map +7 -0
  50. package/dist/cjs/parts/DSFilterBarMenuButton/react-desc-prop-types.js +69 -0
  51. package/dist/cjs/parts/DSFilterBarMenuButton/react-desc-prop-types.js.map +7 -0
  52. package/dist/cjs/react-desc-prop-types.js +50 -0
  53. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  54. package/dist/cjs/typescript-testing/DSFilterBarNamespace.js +112 -0
  55. package/dist/cjs/typescript-testing/DSFilterBarNamespace.js.map +7 -0
  56. package/dist/esm/DSFilterBar.js +53 -0
  57. package/dist/esm/DSFilterBar.js.map +7 -0
  58. package/dist/esm/config/useFilterBar.js +33 -0
  59. package/dist/esm/config/useFilterBar.js.map +7 -0
  60. package/dist/esm/config/useValidateProps.js +10 -0
  61. package/dist/esm/config/useValidateProps.js.map +7 -0
  62. package/dist/esm/constants/index.js +16 -0
  63. package/dist/esm/constants/index.js.map +7 -0
  64. package/dist/esm/hooks/react-desc-prop-types.js +14 -0
  65. package/dist/esm/hooks/react-desc-prop-types.js.map +7 -0
  66. package/dist/esm/hooks/useFilterBarPrevNextFocus.js +69 -0
  67. package/dist/esm/hooks/useFilterBarPrevNextFocus.js.map +7 -0
  68. package/dist/esm/index.js +22 -0
  69. package/dist/esm/index.js.map +7 -0
  70. package/dist/esm/package.json +10 -0
  71. package/dist/esm/parts/DSFilterBarActions/DSFilterBarActions.js +30 -0
  72. package/dist/esm/parts/DSFilterBarActions/DSFilterBarActions.js.map +7 -0
  73. package/dist/esm/parts/DSFilterBarActions/config/useFilterBarActions.js +41 -0
  74. package/dist/esm/parts/DSFilterBarActions/config/useFilterBarActions.js.map +7 -0
  75. package/dist/esm/parts/DSFilterBarActions/config/useValidateProps.js +10 -0
  76. package/dist/esm/parts/DSFilterBarActions/config/useValidateProps.js.map +7 -0
  77. package/dist/esm/parts/DSFilterBarActions/constants/index.js +15 -0
  78. package/dist/esm/parts/DSFilterBarActions/constants/index.js.map +7 -0
  79. package/dist/esm/parts/DSFilterBarActions/index.js +7 -0
  80. package/dist/esm/parts/DSFilterBarActions/index.js.map +7 -0
  81. package/dist/esm/parts/DSFilterBarActions/react-desc-prop-types.js +22 -0
  82. package/dist/esm/parts/DSFilterBarActions/react-desc-prop-types.js.map +7 -0
  83. package/dist/esm/parts/DSFilterBarContent/DSFilterBarContent.js +31 -0
  84. package/dist/esm/parts/DSFilterBarContent/DSFilterBarContent.js.map +7 -0
  85. package/dist/esm/parts/DSFilterBarContent/config/useFilterBarContent.js +41 -0
  86. package/dist/esm/parts/DSFilterBarContent/config/useFilterBarContent.js.map +7 -0
  87. package/dist/esm/parts/DSFilterBarContent/config/useValidateProps.js +10 -0
  88. package/dist/esm/parts/DSFilterBarContent/config/useValidateProps.js.map +7 -0
  89. package/dist/esm/parts/DSFilterBarContent/constants/index.js +15 -0
  90. package/dist/esm/parts/DSFilterBarContent/constants/index.js.map +7 -0
  91. package/dist/esm/parts/DSFilterBarContent/index.js +7 -0
  92. package/dist/esm/parts/DSFilterBarContent/index.js.map +7 -0
  93. package/dist/esm/parts/DSFilterBarContent/react-desc-prop-types.js +22 -0
  94. package/dist/esm/parts/DSFilterBarContent/react-desc-prop-types.js.map +7 -0
  95. package/dist/esm/parts/DSFilterBarMenuButton/DSFilterBarMenuButton.js +85 -0
  96. package/dist/esm/parts/DSFilterBarMenuButton/DSFilterBarMenuButton.js.map +7 -0
  97. package/dist/esm/parts/DSFilterBarMenuButton/config/useFilterBarMenuButton.js +47 -0
  98. package/dist/esm/parts/DSFilterBarMenuButton/config/useFilterBarMenuButton.js.map +7 -0
  99. package/dist/esm/parts/DSFilterBarMenuButton/config/useValidateProps.js +10 -0
  100. package/dist/esm/parts/DSFilterBarMenuButton/config/useValidateProps.js.map +7 -0
  101. package/dist/esm/parts/DSFilterBarMenuButton/constants/index.js +18 -0
  102. package/dist/esm/parts/DSFilterBarMenuButton/constants/index.js.map +7 -0
  103. package/dist/esm/parts/DSFilterBarMenuButton/index.js +7 -0
  104. package/dist/esm/parts/DSFilterBarMenuButton/index.js.map +7 -0
  105. package/dist/esm/parts/DSFilterBarMenuButton/react-desc-prop-types.js +39 -0
  106. package/dist/esm/parts/DSFilterBarMenuButton/react-desc-prop-types.js.map +7 -0
  107. package/dist/esm/react-desc-prop-types.js +25 -0
  108. package/dist/esm/react-desc-prop-types.js.map +7 -0
  109. package/dist/esm/typescript-testing/DSFilterBarNamespace.js +89 -0
  110. package/dist/esm/typescript-testing/DSFilterBarNamespace.js.map +7 -0
  111. package/dist/types/DSFilterBar.d.ts +5 -0
  112. package/dist/types/config/useFilterBar.d.ts +378 -0
  113. package/dist/types/config/useValidateProps.d.ts +3 -0
  114. package/dist/types/constants/index.d.ts +13 -0
  115. package/dist/types/hooks/react-desc-prop-types.d.ts +17 -0
  116. package/dist/types/hooks/useFilterBarPrevNextFocus.d.ts +9 -0
  117. package/dist/types/index.d.ts +8 -0
  118. package/dist/types/parts/DSFilterBarActions/DSFilterBarActions.d.ts +5 -0
  119. package/dist/types/parts/DSFilterBarActions/config/useFilterBarActions.d.ts +377 -0
  120. package/dist/types/parts/DSFilterBarActions/config/useValidateProps.d.ts +3 -0
  121. package/dist/types/parts/DSFilterBarActions/constants/index.d.ts +9 -0
  122. package/dist/types/parts/DSFilterBarActions/index.d.ts +1 -0
  123. package/dist/types/parts/DSFilterBarActions/react-desc-prop-types.d.ts +19 -0
  124. package/dist/types/parts/DSFilterBarActions/tests/DSFilterBarActions.test.d.ts +1 -0
  125. package/dist/types/parts/DSFilterBarContent/DSFilterBarContent.d.ts +5 -0
  126. package/dist/types/parts/DSFilterBarContent/config/useFilterBarContent.d.ts +377 -0
  127. package/dist/types/parts/DSFilterBarContent/config/useValidateProps.d.ts +3 -0
  128. package/dist/types/parts/DSFilterBarContent/constants/index.d.ts +9 -0
  129. package/dist/types/parts/DSFilterBarContent/index.d.ts +1 -0
  130. package/dist/types/parts/DSFilterBarContent/react-desc-prop-types.d.ts +19 -0
  131. package/dist/types/parts/DSFilterBarContent/tests/DSFilterBarContent.test.d.ts +1 -0
  132. package/dist/types/parts/DSFilterBarMenuButton/DSFilterBarMenuButton.d.ts +5 -0
  133. package/dist/types/parts/DSFilterBarMenuButton/config/useFilterBarMenuButton.d.ts +378 -0
  134. package/dist/types/parts/DSFilterBarMenuButton/config/useValidateProps.d.ts +3 -0
  135. package/dist/types/parts/DSFilterBarMenuButton/constants/index.d.ts +9 -0
  136. package/dist/types/parts/DSFilterBarMenuButton/index.d.ts +1 -0
  137. package/dist/types/parts/DSFilterBarMenuButton/react-desc-prop-types.d.ts +32 -0
  138. package/dist/types/parts/DSFilterBarMenuButton/tests/DSFilterBarMenuButton.test.d.ts +1 -0
  139. package/dist/types/react-desc-prop-types.d.ts +20 -0
  140. package/dist/types/tests/DSFilterBar.axe.test.d.ts +1 -0
  141. package/dist/types/tests/DSFilterBar.data-testid.test.d.ts +1 -0
  142. package/dist/types/tests/DSFilterBar.exports.test.d.ts +1 -0
  143. package/dist/types/tests/DSFilterBar.test.d.ts +1 -0
  144. package/dist/types/typescript-testing/DSFilterBarNamespace.d.ts +1 -0
  145. package/package.json +76 -0
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSFilterBar_exports = {};
30
+ __export(DSFilterBar_exports, {
31
+ DSFilterBar: () => DSFilterBar,
32
+ DSFilterBarWithSchema: () => DSFilterBarWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSFilterBar_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_react = __toESM(require("react"));
38
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
+ var import_ds_system = require("@elliemae/ds-system");
40
+ var import_ds_grid = require("@elliemae/ds-grid");
41
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
42
+ var import_useFilterBar = require("./config/useFilterBar.js");
43
+ var import_constants = require("./constants/index.js");
44
+ const StyledWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSFilterBarName, slot: import_constants.FILTER_BAR_SLOTS.ROOT })`
45
+ gap: 12px;
46
+ padding: 4px;
47
+ min-height: 33px;
48
+ `;
49
+ const mainContentCols = ["1fr", "auto"];
50
+ const DSFilterBar = (props) => {
51
+ const {
52
+ propsWithDefault: { children, filterBarRef },
53
+ xstyledProps,
54
+ ownerProps,
55
+ globalProps
56
+ } = (0, import_useFilterBar.useFilterBar)(props);
57
+ const handleInnerRef = import_react.default.useCallback(
58
+ (node) => {
59
+ if (!filterBarRef) return;
60
+ filterBarRef.current = node;
61
+ },
62
+ [filterBarRef]
63
+ );
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ StyledWrapper,
66
+ {
67
+ cols: mainContentCols,
68
+ role: "region",
69
+ "aria-label": "Active filters",
70
+ "aria-live": "polite",
71
+ "aria-relevant": "additions removals",
72
+ ...globalProps,
73
+ ...xstyledProps,
74
+ ...ownerProps,
75
+ innerRef: handleInnerRef,
76
+ children
77
+ }
78
+ );
79
+ };
80
+ DSFilterBar.displayName = import_constants.DSFilterBarName;
81
+ const DSFilterBarWithSchema = (0, import_ds_props_helpers.describe)(DSFilterBar);
82
+ DSFilterBarWithSchema.propTypes = import_react_desc_prop_types.DSFilterBarPropTypesSchema;
83
+ //# sourceMappingURL=DSFilterBar.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSFilterBar.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSFilterBarT, DSFilterBarPropTypesSchema } from './react-desc-prop-types.js';\nimport { useFilterBar } from './config/useFilterBar.js';\nimport { FILTER_BAR_SLOTS, DSFilterBarName } from './constants/index.js';\n\nconst StyledWrapper = styled(Grid, { name: DSFilterBarName, slot: FILTER_BAR_SLOTS.ROOT })`\n gap: 12px;\n padding: 4px;\n min-height: 33px;\n`;\nconst mainContentCols = ['1fr', 'auto'];\n\nconst DSFilterBar: React.ComponentType<DSFilterBarT.Props> = (props) => {\n const {\n propsWithDefault: { children, filterBarRef },\n xstyledProps,\n ownerProps,\n globalProps,\n } = useFilterBar(props);\n\n const handleInnerRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n if (!filterBarRef) return;\n filterBarRef.current = node;\n },\n [filterBarRef],\n );\n\n return (\n <StyledWrapper\n cols={mainContentCols}\n role=\"region\"\n aria-label=\"Active filters\"\n aria-live=\"polite\"\n aria-relevant=\"additions removals\"\n {...globalProps}\n {...xstyledProps}\n {...ownerProps}\n innerRef={handleInnerRef}\n >\n {children}\n </StyledWrapper>\n );\n};\n\nDSFilterBar.displayName = DSFilterBarName;\nconst DSFilterBarWithSchema = describe(DSFilterBar);\nDSFilterBarWithSchema.propTypes = DSFilterBarPropTypesSchema;\n\nexport { DSFilterBar, DSFilterBarWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCnB;AAhCJ,mBAAkB;AAClB,8BAAyB;AACzB,uBAAuB;AACvB,qBAAqB;AACrB,mCAA8D;AAC9D,0BAA6B;AAC7B,uBAAkD;AAElD,MAAM,oBAAgB,yBAAO,qBAAM,EAAE,MAAM,kCAAiB,MAAM,kCAAiB,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAKzF,MAAM,kBAAkB,CAAC,OAAO,MAAM;AAEtC,MAAM,cAAuD,CAAC,UAAU;AACtE,QAAM;AAAA,IACJ,kBAAkB,EAAE,UAAU,aAAa;AAAA,IAC3C;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,kCAAa,KAAK;AAEtB,QAAM,iBAAiB,aAAAA,QAAM;AAAA,IAC3B,CAAC,SAAgC;AAC/B,UAAI,CAAC,aAAc;AACnB,mBAAa,UAAU;AAAA,IACzB;AAAA,IACA,CAAC,YAAY;AAAA,EACf;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,MAAK;AAAA,MACL,cAAW;AAAA,MACX,aAAU;AAAA,MACV,iBAAc;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,UAAU;AAAA,MAET;AAAA;AAAA,EACH;AAEJ;AAEA,YAAY,cAAc;AAC1B,MAAM,4BAAwB,kCAAS,WAAW;AAClD,sBAAsB,YAAY;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useFilterBar_exports = {};
30
+ __export(useFilterBar_exports, {
31
+ useFilterBar: () => useFilterBar
32
+ });
33
+ module.exports = __toCommonJS(useFilterBar_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_react = __toESM(require("react"));
37
+ var import_uid = require("uid");
38
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
39
+ var import_useValidateProps = require("./useValidateProps.js");
40
+ const useFilterBar = (propsFromUser) => {
41
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
42
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSFilterBarPropTypes);
43
+ const globalProps = (0, import_ds_props_helpers.useGetGlobalAttributes)(propsWithDefault);
44
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
45
+ const ownerProps = (0, import_ds_props_helpers.useOwnerProps)(propsWithDefault);
46
+ const instanceUid = import_react.default.useMemo(() => `ds-filter-bar-${(0, import_uid.uid)(5)}`, []);
47
+ return import_react.default.useMemo(
48
+ () => ({
49
+ propsWithDefault,
50
+ xstyledProps,
51
+ globalProps,
52
+ instanceUid,
53
+ ownerProps
54
+ }),
55
+ [propsWithDefault, xstyledProps, globalProps, instanceUid, ownerProps]
56
+ );
57
+ };
58
+ //# sourceMappingURL=useFilterBar.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useFilterBar.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { DSGridT } from '@elliemae/ds-grid';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useOwnerProps,\n} from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { uid } from 'uid';\nimport { type DSFilterBarT, DSFilterBarPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const useFilterBar = (propsFromUser: DSFilterBarT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSFilterBarT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSFilterBarPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = useGetGlobalAttributes<DSFilterBarT.InternalProps, HTMLElement, DSGridT.Props>(propsWithDefault);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // OWNER PROPS\n // =============================================================================\n const ownerProps = useOwnerProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const instanceUid = React.useMemo(() => `ds-filter-bar-${uid(5)}`, []);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n globalProps,\n instanceUid,\n ownerProps,\n }),\n [propsWithDefault, xstyledProps, globalProps, instanceUid, ownerProps],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAKO;AACP,mBAAkB;AAClB,iBAAoB;AACpB,mCAAsE;AACtE,8BAAiC;AAE1B,MAAM,eAAe,CAAC,kBAAsC;AAIjE,QAAM,uBAAmB,sDAAyD,eAAe,yCAAY;AAC7G,gDAAiB,kBAAkB,iDAAoB;AAIvD,QAAM,kBAAc,gDAA+E,gBAAgB;AACnH,QAAM,mBAAe,4CAAmB,gBAAgB;AAIxD,QAAM,iBAAa,uCAAc,gBAAgB;AAKjD,QAAM,cAAc,aAAAA,QAAM,QAAQ,MAAM,qBAAiB,gBAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAMrE,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,cAAc,aAAa,aAAa,UAAU;AAAA,EACvE;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSFilterBarName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useValidateProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { ValidationMap } from '@elliemae/ds-props-helpers';\nimport { type DSFilterBarT } from '../react-desc-prop-types.js';\nimport { DSFilterBarName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSFilterBarT.InternalProps, propTypes: ValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSFilterBarName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAgC;AAEzB,MAAM,mBAAmB,CAAC,OAAmC,cAA4C;AAE9G,8DAA+B,OAAO,WAAW,gCAAe;AAClE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var constants_exports = {};
30
+ __export(constants_exports, {
31
+ DSFilterBarName: () => DSFilterBarName,
32
+ FILTER_BAR_DATA_TESTID: () => FILTER_BAR_DATA_TESTID,
33
+ FILTER_BAR_SLOTS: () => FILTER_BAR_SLOTS
34
+ });
35
+ module.exports = __toCommonJS(constants_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_system = require("@elliemae/ds-system");
38
+ const DSFilterBarName = "DSFilterbar";
39
+ const FILTER_BAR_SLOTS = {
40
+ ROOT: "root",
41
+ CONTENT: "content",
42
+ ACTIONS: "actions",
43
+ MENU_BUTTON: "menu-button"
44
+ };
45
+ const FILTER_BAR_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(DSFilterBarName, FILTER_BAR_SLOTS);
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSFilterBarName = 'DSFilterbar';\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const FILTER_BAR_SLOTS = {\n ROOT: 'root',\n CONTENT: 'content',\n ACTIONS: 'actions',\n MENU_BUTTON: 'menu-button',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const FILTER_BAR_DATA_TESTID = slotObjectToDataTestIds(DSFilterBarName, FILTER_BAR_SLOTS);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,kBAAkB;AAGxB,MAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AACf;AAGO,MAAM,6BAAyB,0CAAwB,iBAAiB,gBAAgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSHookUseFilterBarPrevNextFocusPropTypes: () => DSHookUseFilterBarPrevNextFocusPropTypes,
32
+ DSHookUseFilterBarPrevNextFocusPropTypesSchema: () => DSHookUseFilterBarPrevNextFocusPropTypesSchema
33
+ });
34
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
+ const DSHookUseFilterBarPrevNextFocusPropTypes = {
38
+ filterBarRef: import_ds_props_helpers.PropTypes.object.isRequired.description("Ref to the filter bar element"),
39
+ fallbackRef: import_ds_props_helpers.PropTypes.object.isRequired.description(
40
+ "Ref to the fallback element to focus when the filter bar is removed"
41
+ )
42
+ };
43
+ const DSHookUseFilterBarPrevNextFocusPropTypesSchema = DSHookUseFilterBarPrevNextFocusPropTypes;
44
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/hooks/react-desc-prop-types.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { PropTypes, type DSPropTypesSchema, type ValidationMap } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSHookUseFilterBarPrevNextFocusT {\n export interface RequiredProps {\n filterBarRef: React.RefObject<HTMLElement | null>;\n fallbackRef: React.RefObject<HTMLElement | null>;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps {}\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, RequiredProps {}\n}\nexport const DSHookUseFilterBarPrevNextFocusPropTypes: DSPropTypesSchema<DSHookUseFilterBarPrevNextFocusT.Props> = {\n filterBarRef: PropTypes.object.isRequired.description('Ref to the filter bar element'),\n fallbackRef: PropTypes.object.isRequired.description(\n 'Ref to the fallback element to focus when the filter bar is removed',\n ),\n};\n\nexport const DSHookUseFilterBarPrevNextFocusPropTypesSchema =\n DSHookUseFilterBarPrevNextFocusPropTypes as unknown as ValidationMap<DSHookUseFilterBarPrevNextFocusT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAAsE;AAgB/D,MAAM,2CAAsG;AAAA,EACjH,cAAc,kCAAU,OAAO,WAAW,YAAY,+BAA+B;AAAA,EACrF,aAAa,kCAAU,OAAO,WAAW;AAAA,IACvC;AAAA,EACF;AACF;AAEO,MAAM,iDACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useFilterBarPrevNextFocus_exports = {};
30
+ __export(useFilterBarPrevNextFocus_exports, {
31
+ UseFilterBarPrevNextFocusWithSchema: () => UseFilterBarPrevNextFocusWithSchema,
32
+ useFilterBarPrevNextFocus: () => useFilterBarPrevNextFocus
33
+ });
34
+ module.exports = __toCommonJS(useFilterBarPrevNextFocus_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
+ var import_react = require("react");
38
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
39
+ const FOCUSABLE_SELECTOR = [
40
+ "a[href]",
41
+ "button:not([disabled])",
42
+ "input:not([disabled])",
43
+ "select:not([disabled])",
44
+ "textarea:not([disabled])",
45
+ '[tabindex]:not([tabindex="-1"])'
46
+ ].join(",");
47
+ const getFocusablesIn = (container) => Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((el) => {
48
+ if (el.getAttribute("aria-hidden") === "true") return false;
49
+ const style = window.getComputedStyle(el);
50
+ if (style.display === "none" || style.visibility === "hidden") return false;
51
+ if (el.disabled) return false;
52
+ return true;
53
+ });
54
+ const useFilterBarPrevNextFocus = ({ filterBarRef, fallbackRef }) => {
55
+ const runAfterRemoval = (0, import_react.useCallback)(
56
+ (removeFn) => {
57
+ const container = filterBarRef.current;
58
+ if (!container) {
59
+ removeFn();
60
+ requestAnimationFrame(() => fallbackRef.current?.focus?.());
61
+ return;
62
+ }
63
+ const before = getFocusablesIn(container);
64
+ const active = document.activeElement;
65
+ const activeIndex = before.indexOf(active);
66
+ removeFn();
67
+ requestAnimationFrame(() => {
68
+ const afterContainer = filterBarRef.current;
69
+ if (!afterContainer) {
70
+ fallbackRef.current?.focus?.();
71
+ return;
72
+ }
73
+ const after = getFocusablesIn(afterContainer);
74
+ if (after.length === 0) {
75
+ fallbackRef.current?.focus?.();
76
+ return;
77
+ }
78
+ const prevIndex = activeIndex - 1;
79
+ if (prevIndex >= 0 && after[prevIndex]) {
80
+ after[prevIndex].focus?.();
81
+ return;
82
+ }
83
+ if (activeIndex >= 0 && after[activeIndex]) {
84
+ after[activeIndex].focus?.();
85
+ return;
86
+ }
87
+ after[after.length - 1].focus?.();
88
+ });
89
+ },
90
+ [filterBarRef, fallbackRef]
91
+ );
92
+ return { runAfterRemoval };
93
+ };
94
+ useFilterBarPrevNextFocus.displayName = "useFilterBarPrevNextFocus";
95
+ const UseFilterBarPrevNextFocusWithSchema = (0, import_ds_props_helpers.describe)(useFilterBarPrevNextFocus);
96
+ UseFilterBarPrevNextFocusWithSchema.propTypes = import_react_desc_prop_types.DSHookUseFilterBarPrevNextFocusPropTypes;
97
+ //# sourceMappingURL=useFilterBarPrevNextFocus.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/hooks/useFilterBarPrevNextFocus.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { describe, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { useCallback } from 'react';\nimport {\n DSHookUseFilterBarPrevNextFocusPropTypes,\n type DSHookUseFilterBarPrevNextFocusT,\n} from './react-desc-prop-types.js';\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\nconst getFocusablesIn = (container: HTMLElement) =>\n Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)).filter((el) => {\n if (el.getAttribute('aria-hidden') === 'true') return false;\n const style = window.getComputedStyle(el);\n if (style.display === 'none' || style.visibility === 'hidden') return false;\n if ((el as HTMLButtonElement).disabled) return false;\n return true;\n });\n\nconst useFilterBarPrevNextFocus = ({ filterBarRef, fallbackRef }: DSHookUseFilterBarPrevNextFocusT.Props) => {\n const runAfterRemoval = useCallback(\n (removeFn: () => void) => {\n const container = filterBarRef.current;\n\n if (!container) {\n removeFn();\n requestAnimationFrame(() => fallbackRef.current?.focus?.());\n return;\n }\n\n const before = getFocusablesIn(container);\n const active = document.activeElement as HTMLElement | null;\n const activeIndex = before.indexOf(active as HTMLElement);\n\n removeFn();\n\n requestAnimationFrame(() => {\n const afterContainer = filterBarRef.current;\n if (!afterContainer) {\n fallbackRef.current?.focus?.();\n return;\n }\n\n const after = getFocusablesIn(afterContainer);\n\n if (after.length === 0) {\n fallbackRef.current?.focus?.();\n return;\n }\n\n const prevIndex = activeIndex - 1;\n if (prevIndex >= 0 && after[prevIndex]) {\n after[prevIndex].focus?.();\n return;\n }\n\n if (activeIndex >= 0 && after[activeIndex]) {\n after[activeIndex].focus?.();\n return;\n }\n\n after[after.length - 1].focus?.();\n });\n },\n [filterBarRef, fallbackRef],\n );\n\n return { runAfterRemoval };\n};\n\nuseFilterBarPrevNextFocus.displayName = 'useFilterBarPrevNextFocus';\nconst UseFilterBarPrevNextFocusWithSchema = describe(useFilterBarPrevNextFocus);\nUseFilterBarPrevNextFocusWithSchema.propTypes =\n DSHookUseFilterBarPrevNextFocusPropTypes as unknown as ValidationMap<DSHookUseFilterBarPrevNextFocusT.Props>;\n\nexport { useFilterBarPrevNextFocus, UseFilterBarPrevNextFocusWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA6C;AAC7C,mBAA4B;AAC5B,mCAGO;AAEP,MAAM,qBAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG;AAEV,MAAM,kBAAkB,CAAC,cACvB,MAAM,KAAK,UAAU,iBAA8B,kBAAkB,CAAC,EAAE,OAAO,CAAC,OAAO;AACrF,MAAI,GAAG,aAAa,aAAa,MAAM,OAAQ,QAAO;AACtD,QAAM,QAAQ,OAAO,iBAAiB,EAAE;AACxC,MAAI,MAAM,YAAY,UAAU,MAAM,eAAe,SAAU,QAAO;AACtE,MAAK,GAAyB,SAAU,QAAO;AAC/C,SAAO;AACT,CAAC;AAEH,MAAM,4BAA4B,CAAC,EAAE,cAAc,YAAY,MAA8C;AAC3G,QAAM,sBAAkB;AAAA,IACtB,CAAC,aAAyB;AACxB,YAAM,YAAY,aAAa;AAE/B,UAAI,CAAC,WAAW;AACd,iBAAS;AACT,8BAAsB,MAAM,YAAY,SAAS,QAAQ,CAAC;AAC1D;AAAA,MACF;AAEA,YAAM,SAAS,gBAAgB,SAAS;AACxC,YAAM,SAAS,SAAS;AACxB,YAAM,cAAc,OAAO,QAAQ,MAAqB;AAExD,eAAS;AAET,4BAAsB,MAAM;AAC1B,cAAM,iBAAiB,aAAa;AACpC,YAAI,CAAC,gBAAgB;AACnB,sBAAY,SAAS,QAAQ;AAC7B;AAAA,QACF;AAEA,cAAM,QAAQ,gBAAgB,cAAc;AAE5C,YAAI,MAAM,WAAW,GAAG;AACtB,sBAAY,SAAS,QAAQ;AAC7B;AAAA,QACF;AAEA,cAAM,YAAY,cAAc;AAChC,YAAI,aAAa,KAAK,MAAM,SAAS,GAAG;AACtC,gBAAM,SAAS,EAAE,QAAQ;AACzB;AAAA,QACF;AAEA,YAAI,eAAe,KAAK,MAAM,WAAW,GAAG;AAC1C,gBAAM,WAAW,EAAE,QAAQ;AAC3B;AAAA,QACF;AAEA,cAAM,MAAM,SAAS,CAAC,EAAE,QAAQ;AAAA,MAClC,CAAC;AAAA,IACH;AAAA,IACA,CAAC,cAAc,WAAW;AAAA,EAC5B;AAEA,SAAO,EAAE,gBAAgB;AAC3B;AAEA,0BAA0B,cAAc;AACxC,MAAM,0CAAsC,kCAAS,yBAAyB;AAC9E,oCAAoC,YAClC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var index_exports = {};
30
+ __export(index_exports, {
31
+ DSFilterBar: () => import_DSFilterBar.DSFilterBar,
32
+ DSFilterBarActions: () => import_DSFilterBarActions.DSFilterBarActions,
33
+ DSFilterBarActionsWithSchema: () => import_DSFilterBarActions.DSFilterBarActionsWithSchema,
34
+ DSFilterBarContent: () => import_DSFilterBarContent.DSFilterBarContent,
35
+ DSFilterBarContentWithSchema: () => import_DSFilterBarContent.DSFilterBarContentWithSchema,
36
+ DSFilterBarMenuButton: () => import_DSFilterBarMenuButton.DSFilterBarMenuButton,
37
+ DSFilterBarMenuButtonWithSchema: () => import_DSFilterBarMenuButton.DSFilterBarMenuButtonWithSchema,
38
+ DSFilterBarWithSchema: () => import_DSFilterBar.DSFilterBarWithSchema,
39
+ FILTER_BAR_DATA_TESTID: () => import_constants.FILTER_BAR_DATA_TESTID,
40
+ FILTER_BAR_SLOTS: () => import_constants.FILTER_BAR_SLOTS,
41
+ UseFilterBarPrevNextFocusWithSchema: () => import_useFilterBarPrevNextFocus.UseFilterBarPrevNextFocusWithSchema,
42
+ useFilterBarPrevNextFocus: () => import_useFilterBarPrevNextFocus.useFilterBarPrevNextFocus
43
+ });
44
+ module.exports = __toCommonJS(index_exports);
45
+ var React = __toESM(require("react"));
46
+ var import_DSFilterBar = require("./DSFilterBar.js");
47
+ var import_DSFilterBarContent = require("./parts/DSFilterBarContent/index.js");
48
+ var import_DSFilterBarActions = require("./parts/DSFilterBarActions/index.js");
49
+ var import_DSFilterBarMenuButton = require("./parts/DSFilterBarMenuButton/index.js");
50
+ var import_constants = require("./constants/index.js");
51
+ var import_useFilterBarPrevNextFocus = require("./hooks/useFilterBarPrevNextFocus.js");
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSFilterBar, DSFilterBarWithSchema } from './DSFilterBar.js';\nexport { DSFilterBarContent, DSFilterBarContentWithSchema } from './parts/DSFilterBarContent/index.js';\nexport { DSFilterBarActions, DSFilterBarActionsWithSchema } from './parts/DSFilterBarActions/index.js';\nexport { DSFilterBarMenuButton, DSFilterBarMenuButtonWithSchema } from './parts/DSFilterBarMenuButton/index.js';\nexport { type DSFilterBarT } from './react-desc-prop-types.js';\nexport { FILTER_BAR_SLOTS, FILTER_BAR_DATA_TESTID } from './constants/index.js';\nexport { useFilterBarPrevNextFocus, UseFilterBarPrevNextFocusWithSchema } from './hooks/useFilterBarPrevNextFocus.js';\nexport { type DSHookUseFilterBarPrevNextFocusT } from './hooks/react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,yBAAmD;AACnD,gCAAiE;AACjE,gCAAiE;AACjE,mCAAuE;AAEvE,uBAAyD;AACzD,uCAA+E;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ],
7
+ "publishConfig": {
8
+ "access": "public"
9
+ }
10
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSFilterBarActions_exports = {};
30
+ __export(DSFilterBarActions_exports, {
31
+ DSFilterBarActions: () => DSFilterBarActions,
32
+ DSFilterBarActionsWithSchema: () => DSFilterBarActionsWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSFilterBarActions_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
40
+ var import_useFilterBarActions = require("./config/useFilterBarActions.js");
41
+ var import_constants = require("./constants/index.js");
42
+ const StyledWrapper = (0, import_ds_system.styled)("div", { name: import_constants.DSFilterBarName, slot: import_constants.FILTER_BAR_ACTIONS_SLOTS.ACTIONS })`
43
+ display: flex;
44
+ align-items: start;
45
+ flex-shrink: 0;
46
+ gap: 8px;
47
+ `;
48
+ const DSFilterBarActions = (props) => {
49
+ const {
50
+ propsWithDefault: { children },
51
+ xstyledProps,
52
+ globalProps,
53
+ ownerProps
54
+ } = (0, import_useFilterBarActions.useFilterBarActions)(props);
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { ...xstyledProps, ...globalProps, ...ownerProps, children });
56
+ };
57
+ DSFilterBarActions.displayName = import_constants.DSFilterBarActionsName;
58
+ const DSFilterBarActionsWithSchema = (0, import_ds_props_helpers.describe)(DSFilterBarActions);
59
+ DSFilterBarActionsWithSchema.propTypes = import_react_desc_prop_types.DSFilterBarActionsPropTypesSchema;
60
+ //# sourceMappingURL=DSFilterBarActions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSFilterBarActions/DSFilterBarActions.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { type DSFilterBarActionsT, DSFilterBarActionsPropTypesSchema } from './react-desc-prop-types.js';\nimport { useFilterBarActions } from './config/useFilterBarActions.js';\nimport { FILTER_BAR_ACTIONS_SLOTS, DSFilterBarActionsName, DSFilterBarName } from './constants/index.js';\n\nconst StyledWrapper = styled('div', { name: DSFilterBarName, slot: FILTER_BAR_ACTIONS_SLOTS.ACTIONS })`\n display: flex;\n align-items: start;\n flex-shrink: 0;\n gap: 8px;\n`;\n\nconst DSFilterBarActions: React.ComponentType<DSFilterBarActionsT.Props> = (props) => {\n const {\n propsWithDefault: { children },\n xstyledProps,\n globalProps,\n ownerProps,\n } = useFilterBarActions(props);\n\n return (\n <StyledWrapper {...xstyledProps} {...globalProps} {...ownerProps}>\n {children}\n </StyledWrapper>\n );\n};\n\nDSFilterBarActions.displayName = DSFilterBarActionsName;\nconst DSFilterBarActionsWithSchema = describe(DSFilterBarActions);\nDSFilterBarActionsWithSchema.propTypes = DSFilterBarActionsPropTypesSchema;\n\nexport { DSFilterBarActions, DSFilterBarActionsWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuBnB;AAtBJ,8BAAyB;AACzB,uBAAuB;AACvB,mCAA4E;AAC5E,iCAAoC;AACpC,uBAAkF;AAElF,MAAM,oBAAgB,yBAAO,OAAO,EAAE,MAAM,kCAAiB,MAAM,0CAAyB,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAOrG,MAAM,qBAAqE,CAAC,UAAU;AACpF,QAAM;AAAA,IACJ,kBAAkB,EAAE,SAAS;AAAA,IAC7B;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,gDAAoB,KAAK;AAE7B,SACE,4CAAC,iBAAe,GAAG,cAAe,GAAG,aAAc,GAAG,YACnD,UACH;AAEJ;AAEA,mBAAmB,cAAc;AACjC,MAAM,mCAA+B,kCAAS,kBAAkB;AAChE,6BAA6B,YAAY;",
6
+ "names": []
7
+ }