@elliemae/ds-accordion 3.4.2 → 3.4.3

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 (60) hide show
  1. package/dist/cjs/DSAccordion.js +9 -5
  2. package/dist/cjs/DSAccordion.js.map +1 -1
  3. package/dist/cjs/DSAccordionCTX.js +4 -1
  4. package/dist/cjs/DSAccordionCTX.js.map +1 -1
  5. package/dist/cjs/config/useAccordion.js +32 -23
  6. package/dist/cjs/config/useAccordion.js.map +1 -1
  7. package/dist/cjs/config/useAccordionRefs.js +4 -1
  8. package/dist/cjs/config/useAccordionRefs.js.map +2 -2
  9. package/dist/cjs/defaultProps.js +22 -14
  10. package/dist/cjs/defaultProps.js.map +1 -1
  11. package/dist/cjs/exported-related/DSAccordionDatatestid.js +4 -1
  12. package/dist/cjs/exported-related/DSAccordionDatatestid.js.map +1 -1
  13. package/dist/cjs/exported-related/index.js +4 -1
  14. package/dist/cjs/exported-related/index.js.map +1 -1
  15. package/dist/cjs/exported-related/theming.js +4 -1
  16. package/dist/cjs/exported-related/theming.js.map +1 -1
  17. package/dist/cjs/index.js +4 -1
  18. package/dist/cjs/index.js.map +1 -1
  19. package/dist/cjs/parts/accordionContent/AccordionContent.js +17 -7
  20. package/dist/cjs/parts/accordionContent/AccordionContent.js.map +2 -2
  21. package/dist/cjs/parts/accordionContent/styles.js +4 -1
  22. package/dist/cjs/parts/accordionContent/styles.js.map +1 -1
  23. package/dist/cjs/parts/accordionItem/DSAccordionItem.js +150 -93
  24. package/dist/cjs/parts/accordionItem/DSAccordionItem.js.map +1 -1
  25. package/dist/cjs/parts/accordionItem/styles.js +4 -1
  26. package/dist/cjs/parts/accordionItem/styles.js.map +1 -1
  27. package/dist/cjs/parts/accordionItem/useAccordionItem.js +30 -21
  28. package/dist/cjs/parts/accordionItem/useAccordionItem.js.map +1 -1
  29. package/dist/cjs/propTypes.js +10 -3
  30. package/dist/cjs/propTypes.js.map +1 -1
  31. package/dist/cjs/react-desc-prop-types.js +10 -3
  32. package/dist/cjs/react-desc-prop-types.js.map +1 -1
  33. package/dist/cjs/sharedTypes.js +4 -1
  34. package/dist/cjs/sharedTypes.js.map +1 -1
  35. package/dist/esm/DSAccordion.js +5 -4
  36. package/dist/esm/DSAccordion.js.map +1 -1
  37. package/dist/esm/DSAccordionCTX.js.map +1 -1
  38. package/dist/esm/config/useAccordion.js +28 -22
  39. package/dist/esm/config/useAccordion.js.map +1 -1
  40. package/dist/esm/config/useAccordionRefs.js.map +2 -2
  41. package/dist/esm/defaultProps.js +18 -13
  42. package/dist/esm/defaultProps.js.map +1 -1
  43. package/dist/esm/exported-related/DSAccordionDatatestid.js.map +1 -1
  44. package/dist/esm/exported-related/index.js.map +1 -1
  45. package/dist/esm/exported-related/theming.js.map +1 -1
  46. package/dist/esm/index.js.map +2 -2
  47. package/dist/esm/parts/accordionContent/AccordionContent.js +13 -6
  48. package/dist/esm/parts/accordionContent/AccordionContent.js.map +2 -2
  49. package/dist/esm/parts/accordionContent/styles.js.map +1 -1
  50. package/dist/esm/parts/accordionItem/DSAccordionItem.js +146 -92
  51. package/dist/esm/parts/accordionItem/DSAccordionItem.js.map +1 -1
  52. package/dist/esm/parts/accordionItem/styles.js.map +1 -1
  53. package/dist/esm/parts/accordionItem/useAccordionItem.js +26 -20
  54. package/dist/esm/parts/accordionItem/useAccordionItem.js.map +1 -1
  55. package/dist/esm/propTypes.js +6 -2
  56. package/dist/esm/propTypes.js.map +1 -1
  57. package/dist/esm/react-desc-prop-types.js +6 -2
  58. package/dist/esm/react-desc-prop-types.js.map +1 -1
  59. package/dist/esm/sharedTypes.js.map +1 -1
  60. package/package.json +6 -6
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
21
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
25
  var DSAccordionItem_exports = {};
23
26
  __export(DSAccordionItem_exports, {
@@ -27,7 +30,8 @@ __export(DSAccordionItem_exports, {
27
30
  });
28
31
  module.exports = __toCommonJS(DSAccordionItem_exports);
29
32
  var React = __toESM(require("react"));
30
- var import_react = __toESM(require("react"));
33
+ var import_jsx_runtime = require("react/jsx-runtime");
34
+ var import_react = require("react");
31
35
  var import_ds_utilities = require("@elliemae/ds-utilities");
32
36
  var import_ds_button = require("@elliemae/ds-button");
33
37
  var import_ds_popperjs = require("@elliemae/ds-popperjs");
@@ -38,7 +42,10 @@ var import_DSAccordionCTX = require("../../DSAccordionCTX");
38
42
  var import_DSAccordionDatatestid = require("../../exported-related/DSAccordionDatatestid");
39
43
  var import_react_desc_prop_types = require("../../react-desc-prop-types");
40
44
  const DSAccordionItem = (props) => {
41
- const propsWithDefaults = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_defaultProps.accordionItemDefaultProps);
45
+ const propsWithDefaults = (0, import_ds_utilities.useMemoMergePropsWithDefault)(
46
+ props,
47
+ import_defaultProps.accordionItemDefaultProps
48
+ );
42
49
  const {
43
50
  children,
44
51
  title,
@@ -60,64 +67,99 @@ const DSAccordionItem = (props) => {
60
67
  actualActiveValue,
61
68
  props: { isDSMobile }
62
69
  } = (0, import_react.useContext)(import_DSAccordionCTX.DSAccordionContext);
63
- const onKeyDownWithIndex = (0, import_react.useCallback)((e) => {
64
- handleOnKeyDown(e, dsIndex);
65
- }, [dsIndex, handleOnKeyDown]);
70
+ const onKeyDownWithIndex = (0, import_react.useCallback)(
71
+ (e) => {
72
+ handleOnKeyDown(e, dsIndex);
73
+ },
74
+ [dsIndex, handleOnKeyDown]
75
+ );
66
76
  const [showPopover, setShowPopover] = (0, import_react.useState)(false);
67
77
  const [referenceElement, setReferenceElement] = (0, import_react.useState)();
68
78
  const CustomActionsContent = (0, import_react.useMemo)(() => {
69
79
  if (!isDSMobile && customActions?.length > 0)
70
- return /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemCustomActions, {
71
- isDSMobile
72
- }, customActions?.map(({ onClick, id, ...otherProps }) => /* @__PURE__ */ import_react.default.createElement(import_ds_button.DSButton, {
73
- key: id,
74
- onClick: (e) => {
75
- e.stopPropagation();
76
- if (onClick)
77
- onClick(e);
78
- },
79
- ...otherProps,
80
- buttonType: import_ds_button.BUTTON_TYPE.SECONDARY
81
- })));
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledItemCustomActions, {
81
+ isDSMobile,
82
+ children: customActions?.map(({ onClick, id, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_button.DSButton, {
83
+ onClick: (e) => {
84
+ e.stopPropagation();
85
+ if (onClick)
86
+ onClick(e);
87
+ },
88
+ ...otherProps,
89
+ buttonType: import_ds_button.BUTTON_TYPE.SECONDARY
90
+ }, id))
91
+ });
82
92
  if (!isDSMobile && renderCustomActions)
83
- return /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemCustomActions, {
84
- isDSMobile
85
- }, renderCustomActions({ allRefs: allChildrenReferences, actualActiveValue }));
93
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledItemCustomActions, {
94
+ isDSMobile,
95
+ children: renderCustomActions({ allRefs: allChildrenReferences, actualActiveValue })
96
+ });
86
97
  return null;
87
98
  }, [actualActiveValue, allChildrenReferences, customActions, isDSMobile, renderCustomActions]);
88
99
  const { isShowingEllipsis: isPrimaryShowingEllipsis, setElement: setPrimaryElement } = (0, import_ds_utilities.useIsShowingEllipsis)();
89
100
  const { isShowingEllipsis: isSecondaryShowingEllipsis, setElement: setSecondaryElement } = (0, import_ds_utilities.useIsShowingEllipsis)();
90
- const handleOnFocus = (0, import_react.useCallback)(() => setShowPopover(isPrimaryShowingEllipsis || isSecondaryShowingEllipsis), [isPrimaryShowingEllipsis, isSecondaryShowingEllipsis]);
101
+ const handleOnFocus = (0, import_react.useCallback)(
102
+ () => setShowPopover(isPrimaryShowingEllipsis || isSecondaryShowingEllipsis),
103
+ [isPrimaryShowingEllipsis, isSecondaryShowingEllipsis]
104
+ );
91
105
  const handleOnBlur = (0, import_react.useCallback)(() => setShowPopover(false), []);
92
106
  const Titles = (0, import_react.useMemo)(() => {
93
107
  if ((isPrimaryShowingEllipsis || isSecondaryShowingEllipsis) && !isDSMobile)
94
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_styles.StyledPrimaryTitle, {
95
- ref: setPrimaryElement,
96
- ...title ? { id: `accordion_${title || ""}id` } : void 0,
97
- disabled,
98
- isDSMobile,
99
- selected,
100
- withSecondaryTitle: secondaryTitle
101
- }, title), !isDSMobile && secondaryTitle && /* @__PURE__ */ import_react.default.createElement(import_styles.StyledSecondaryTitle, {
102
- ref: setSecondaryElement,
103
- disabled,
104
- selected
105
- }, secondaryTitle), /* @__PURE__ */ import_react.default.createElement(import_ds_popperjs.DSPopperJS, {
106
- referenceElement,
107
- showPopover
108
- }, /* @__PURE__ */ import_react.default.createElement(import_styles.StyledTooltipContent, null, /* @__PURE__ */ import_react.default.createElement("p", null, title), /* @__PURE__ */ import_react.default.createElement("p", null, " ", secondaryTitle))));
109
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_styles.StyledPrimaryTitle, {
110
- ref: setPrimaryElement,
111
- ...title ? { id: `accordion_${title || ""}id` } : void 0,
112
- disabled,
113
- isDSMobile,
114
- selected,
115
- withSecondaryTitle: secondaryTitle
116
- }, title), !isDSMobile && secondaryTitle && /* @__PURE__ */ import_react.default.createElement(import_styles.StyledSecondaryTitle, {
117
- ref: setSecondaryElement,
118
- disabled,
119
- selected
120
- }, secondaryTitle));
108
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
109
+ children: [
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledPrimaryTitle, {
111
+ ref: setPrimaryElement,
112
+ ...title ? { id: `accordion_${title || ""}id` } : void 0,
113
+ disabled,
114
+ isDSMobile,
115
+ selected,
116
+ withSecondaryTitle: secondaryTitle,
117
+ children: title
118
+ }),
119
+ !isDSMobile && secondaryTitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledSecondaryTitle, {
120
+ ref: setSecondaryElement,
121
+ disabled,
122
+ selected,
123
+ children: secondaryTitle
124
+ }),
125
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_popperjs.DSPopperJS, {
126
+ referenceElement,
127
+ showPopover,
128
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledTooltipContent, {
129
+ children: [
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
131
+ children: title
132
+ }),
133
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
134
+ children: [
135
+ " ",
136
+ secondaryTitle
137
+ ]
138
+ })
139
+ ]
140
+ })
141
+ })
142
+ ]
143
+ });
144
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
145
+ children: [
146
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledPrimaryTitle, {
147
+ ref: setPrimaryElement,
148
+ ...title ? { id: `accordion_${title || ""}id` } : void 0,
149
+ disabled,
150
+ isDSMobile,
151
+ selected,
152
+ withSecondaryTitle: secondaryTitle,
153
+ children: title
154
+ }),
155
+ !isDSMobile && secondaryTitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledSecondaryTitle, {
156
+ ref: setSecondaryElement,
157
+ disabled,
158
+ selected,
159
+ children: secondaryTitle
160
+ })
161
+ ]
162
+ });
121
163
  }, [
122
164
  disabled,
123
165
  isDSMobile,
@@ -131,52 +173,67 @@ const DSAccordionItem = (props) => {
131
173
  selected,
132
174
  title
133
175
  ]);
134
- return /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemContainer, {
176
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledItemContainer, {
135
177
  "data-testid": import_DSAccordionDatatestid.DSAccordionDataTestid.ITEM.CONTAINER,
136
178
  className,
137
- ...xstyledAttrs
138
- }, /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemHeaderContainer, {
139
- disabled,
140
- ref: setReferenceElement
141
- }, /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemHeader, {
142
- type: "button",
143
- withCustomActions: (customActions?.length > 0 || renderCustomActions !== void 0) && !isDSMobile,
144
- withSecondaryTitle: secondaryTitle,
145
- onClick: handleOnClick,
146
- tabIndex: !disabled ? 0 : void 0,
147
- disabled,
148
- "data-disabled": disabled,
149
- ref: allChildrenReferences[dsIndex],
150
- onKeyDown: onKeyDownWithIndex,
151
- isDSMobile,
152
- "data-testid": import_DSAccordionDatatestid.DSAccordionDataTestid.ITEM.HEADER,
153
- id: `ds-accordion-header-${value}`,
154
- "aria-expanded": selected,
155
- "aria-disabled": disabled,
156
- "aria-controls": `ds-accordion-content-${value}`,
157
- onFocus: handleOnFocus,
158
- onBlur: handleOnBlur,
159
- ...globalAttrs
160
- }, /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemAddon, {
161
- disabled,
162
- isDSMobile
163
- }, selected ? /* @__PURE__ */ import_react.default.createElement(IconOpened, {
164
- isDSMobile
165
- }) : /* @__PURE__ */ import_react.default.createElement(IconClosed, {
166
- isDSMobile
167
- })), /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemTitles, {
168
- onMouseEnter: handleOnFocus,
169
- onMouseLeave: handleOnBlur,
170
- isDSMobile,
171
- withSecondaryTitle: secondaryTitle,
172
- selected
173
- }, Titles)), CustomActionsContent), selected && /* @__PURE__ */ import_react.default.createElement(import_styles.StyledItemContent, {
174
- "data-testid": import_DSAccordionDatatestid.DSAccordionDataTestid.ITEM.CONTENT,
175
- "aria-labelledby": `ds-accordion-header-${value}`,
176
- role: "region",
177
- isDSMobile,
178
- id: `ds-accordion-content-${value}`
179
- }, children));
179
+ ...xstyledAttrs,
180
+ children: [
181
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledItemHeaderContainer, {
182
+ disabled,
183
+ ref: setReferenceElement,
184
+ children: [
185
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledItemHeader, {
186
+ type: "button",
187
+ withCustomActions: (customActions?.length > 0 || renderCustomActions !== void 0) && !isDSMobile,
188
+ withSecondaryTitle: secondaryTitle,
189
+ onClick: handleOnClick,
190
+ tabIndex: !disabled ? 0 : void 0,
191
+ disabled,
192
+ "data-disabled": disabled,
193
+ ref: allChildrenReferences[dsIndex],
194
+ onKeyDown: onKeyDownWithIndex,
195
+ isDSMobile,
196
+ "data-testid": import_DSAccordionDatatestid.DSAccordionDataTestid.ITEM.HEADER,
197
+ id: `ds-accordion-header-${value}`,
198
+ "aria-expanded": selected,
199
+ "aria-disabled": disabled,
200
+ "aria-controls": `ds-accordion-content-${value}`,
201
+ onFocus: handleOnFocus,
202
+ onBlur: handleOnBlur,
203
+ ...globalAttrs,
204
+ children: [
205
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledItemAddon, {
206
+ disabled,
207
+ isDSMobile,
208
+ children: selected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconOpened, {
209
+ isDSMobile
210
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconClosed, {
211
+ isDSMobile
212
+ })
213
+ }),
214
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledItemTitles, {
215
+ onMouseEnter: handleOnFocus,
216
+ onMouseLeave: handleOnBlur,
217
+ isDSMobile,
218
+ withSecondaryTitle: secondaryTitle,
219
+ selected,
220
+ children: Titles
221
+ })
222
+ ]
223
+ }),
224
+ CustomActionsContent
225
+ ]
226
+ }),
227
+ selected && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledItemContent, {
228
+ "data-testid": import_DSAccordionDatatestid.DSAccordionDataTestid.ITEM.CONTENT,
229
+ "aria-labelledby": `ds-accordion-header-${value}`,
230
+ role: "region",
231
+ isDSMobile,
232
+ id: `ds-accordion-content-${value}`,
233
+ children
234
+ })
235
+ ]
236
+ });
180
237
  };
181
238
  DSAccordionItem.displayName = "DSAccordionItem";
182
239
  const DSAccordionItemWithSchema = (0, import_ds_utilities.describe)(DSAccordionItem);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/accordionItem/DSAccordionItem.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useState, useContext, useCallback, useMemo, WeakValidationMap } from 'react';\nimport {\n useMemoMergePropsWithDefault,\n describe,\n useIsShowingEllipsis,\n useGetGlobalAttributes,\n useGetXstyledProps,\n} from '@elliemae/ds-utilities';\nimport { DSButton, BUTTON_TYPE } from '@elliemae/ds-button';\nimport { DSPopperJS } from '@elliemae/ds-popperjs';\nimport { accordionItemDefaultProps } from '../../defaultProps';\nimport {\n StyledItemAddon,\n StyledItemContainer,\n StyledItemContent,\n StyledItemCustomActions,\n StyledItemHeader,\n StyledItemHeaderContainer,\n StyledItemTitles,\n StyledPrimaryTitle,\n StyledSecondaryTitle,\n StyledTooltipContent,\n} from './styles';\nimport { useAccordionItem } from './useAccordionItem';\nimport { DSAccordionContext } from '../../DSAccordionCTX';\nimport { DSAccordionDataTestid } from '../../exported-related/DSAccordionDatatestid';\nimport { accordionItemPropTypes } from '../../react-desc-prop-types';\nimport type { DSAccordionT } from '../../react-desc-prop-types';\n\nconst DSAccordionItem = (props: DSAccordionT.ItemProps): JSX.Element => {\n const propsWithDefaults = useMemoMergePropsWithDefault(\n props,\n accordionItemDefaultProps,\n ) as DSAccordionT.InternalItemProps;\n\n const {\n children,\n title,\n secondaryTitle,\n customActions,\n iconOpened: IconOpened,\n iconClosed: IconClosed,\n value,\n disabled,\n dsIndex,\n renderCustomActions,\n ...rest\n } = propsWithDefaults;\n\n const { className, ...globalAttrs } = useGetGlobalAttributes(rest);\n const xstyledAttrs = useGetXstyledProps(rest);\n\n const { handleOnClick, handleOnKeyDown, selected } = useAccordionItem({ value, disabled });\n const {\n allChildrenReferences,\n actualActiveValue,\n props: { isDSMobile },\n } = useContext(DSAccordionContext);\n\n const onKeyDownWithIndex = useCallback(\n (e: React.KeyboardEvent) => {\n handleOnKeyDown(e, dsIndex);\n },\n [dsIndex, handleOnKeyDown],\n );\n\n const [showPopover, setShowPopover] = useState(false);\n const [referenceElement, setReferenceElement] = useState<HTMLElement | null>();\n\n const CustomActionsContent = useMemo(() => {\n if (!isDSMobile && customActions?.length > 0)\n return (\n <StyledItemCustomActions isDSMobile={isDSMobile}>\n {customActions?.map(({ onClick, id, ...otherProps }) => (\n <DSButton\n key={id}\n onClick={(e: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>): void => {\n e.stopPropagation();\n if (onClick) onClick(e as React.MouseEvent<HTMLElement, MouseEvent>);\n }}\n {...otherProps}\n buttonType={BUTTON_TYPE.SECONDARY}\n />\n ))}\n </StyledItemCustomActions>\n );\n\n if (!isDSMobile && renderCustomActions)\n return (\n <StyledItemCustomActions isDSMobile={isDSMobile}>\n {renderCustomActions({ allRefs: allChildrenReferences, actualActiveValue })}\n </StyledItemCustomActions>\n );\n return null;\n }, [actualActiveValue, allChildrenReferences, customActions, isDSMobile, renderCustomActions]);\n\n const { isShowingEllipsis: isPrimaryShowingEllipsis, setElement: setPrimaryElement } = useIsShowingEllipsis();\n\n const { isShowingEllipsis: isSecondaryShowingEllipsis, setElement: setSecondaryElement } = useIsShowingEllipsis();\n\n const handleOnFocus = useCallback(\n () => setShowPopover(isPrimaryShowingEllipsis || isSecondaryShowingEllipsis),\n [isPrimaryShowingEllipsis, isSecondaryShowingEllipsis],\n );\n\n const handleOnBlur = useCallback(() => setShowPopover(false), []);\n\n // eslint-disable-next-line complexity\n const Titles = useMemo(() => {\n if ((isPrimaryShowingEllipsis || isSecondaryShowingEllipsis) && !isDSMobile)\n return (\n <>\n <StyledPrimaryTitle\n ref={setPrimaryElement}\n {...(title ? { id: `accordion_${title || ''}id` } : undefined)}\n disabled={disabled}\n isDSMobile={isDSMobile}\n selected={selected}\n withSecondaryTitle={secondaryTitle}\n >\n {title}\n </StyledPrimaryTitle>\n {!isDSMobile && secondaryTitle && (\n <StyledSecondaryTitle ref={setSecondaryElement} disabled={disabled} selected={selected}>\n {secondaryTitle}\n </StyledSecondaryTitle>\n )}\n <DSPopperJS referenceElement={referenceElement} showPopover={showPopover}>\n <StyledTooltipContent>\n <p>{title}</p>\n <p> {secondaryTitle}</p>\n </StyledTooltipContent>\n </DSPopperJS>\n </>\n );\n\n return (\n <>\n <StyledPrimaryTitle\n ref={setPrimaryElement}\n {...(title ? { id: `accordion_${title || ''}id` } : undefined)}\n disabled={disabled}\n isDSMobile={isDSMobile}\n selected={selected}\n withSecondaryTitle={secondaryTitle}\n >\n {title}\n </StyledPrimaryTitle>\n {!isDSMobile && secondaryTitle && (\n <StyledSecondaryTitle ref={setSecondaryElement} disabled={disabled} selected={selected}>\n {secondaryTitle}\n </StyledSecondaryTitle>\n )}\n </>\n );\n }, [\n disabled,\n isDSMobile,\n isPrimaryShowingEllipsis,\n isSecondaryShowingEllipsis,\n referenceElement,\n secondaryTitle,\n setPrimaryElement,\n setSecondaryElement,\n showPopover,\n selected,\n title,\n ]);\n\n return (\n <StyledItemContainer data-testid={DSAccordionDataTestid.ITEM.CONTAINER} className={className} {...xstyledAttrs}>\n <StyledItemHeaderContainer disabled={disabled} ref={setReferenceElement}>\n <StyledItemHeader\n type=\"button\"\n withCustomActions={(customActions?.length > 0 || renderCustomActions !== undefined) && !isDSMobile}\n withSecondaryTitle={secondaryTitle}\n onClick={handleOnClick}\n tabIndex={!disabled ? 0 : undefined}\n disabled={disabled}\n data-disabled={disabled}\n ref={allChildrenReferences[dsIndex]}\n onKeyDown={onKeyDownWithIndex}\n isDSMobile={isDSMobile}\n data-testid={DSAccordionDataTestid.ITEM.HEADER}\n id={`ds-accordion-header-${value}`}\n aria-expanded={selected}\n aria-disabled={disabled}\n aria-controls={`ds-accordion-content-${value}`}\n onFocus={handleOnFocus}\n onBlur={handleOnBlur}\n {...globalAttrs}\n >\n <StyledItemAddon disabled={disabled} isDSMobile={isDSMobile}>\n {selected ? <IconOpened isDSMobile={isDSMobile} /> : <IconClosed isDSMobile={isDSMobile} />}\n </StyledItemAddon>\n <StyledItemTitles\n onMouseEnter={handleOnFocus}\n onMouseLeave={handleOnBlur}\n isDSMobile={isDSMobile}\n withSecondaryTitle={secondaryTitle}\n selected={selected}\n >\n {Titles}\n </StyledItemTitles>\n </StyledItemHeader>\n {CustomActionsContent}\n </StyledItemHeaderContainer>\n {selected && (\n <StyledItemContent\n data-testid={DSAccordionDataTestid.ITEM.CONTENT}\n aria-labelledby={`ds-accordion-header-${value}`}\n role=\"region\"\n isDSMobile={isDSMobile}\n id={`ds-accordion-content-${value}`}\n >\n {children}\n </StyledItemContent>\n )}\n </StyledItemContainer>\n );\n};\n\nDSAccordionItem.displayName = 'DSAccordionItem';\nconst DSAccordionItemWithSchema = describe(DSAccordionItem);\nDSAccordionItemWithSchema.propTypes = accordionItemPropTypes as WeakValidationMap<unknown>;\n\nexport { DSAccordionItem, DSAccordionItemWithSchema };\nexport default DSAccordionItem;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAqF;AACrF,0BAMO;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AA;AAAA,OACH;AAAA,MACC,YACC,4CAAC;AAAA,QACC,eAAa,mDAAsB,KAAK;AAAA,QACxC,mBAAiB,uBAAuB;AAAA,QACxC,MAAK;AAAA,QACL;AAAA,QACA,IAAI,wBAAwB;AAAA,QAE3B;AAAA,OACH;AAAA;AAAA,GAEJ;AAEJ;AAEA,gBAAgB,cAAc;AAC9B,MAAM,gCAA4B,8BAAS,eAAe;AAC1D,0BAA0B,YAAY;AAGtC,IAAO,0BAAQ;",
6
6
  "names": []
7
7
  }
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
21
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
25
  var styles_exports = {};
23
26
  __export(styles_exports, {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/accordionItem/styles.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { styled, css, sizing, space, layout } from '@elliemae/ds-system';\nimport { DSAccordionName, DSAccordionSlots } from '../../exported-related';\ninterface StyledItemHeaderPropsT {\n withCustomActions: boolean;\n withSecondaryTitle?: string;\n isDSMobile: boolean;\n}\n\ninterface StyledItemTitlesPropsT {\n withSecondaryTitle?: string;\n isDSMobile: boolean;\n selected: boolean;\n}\n\ninterface StyledPrimaryTitlePropsT {\n disabled: boolean;\n isDSMobile: boolean;\n selected: boolean;\n withSecondaryTitle: boolean;\n}\n\ninterface StyledItemContentPropsT {\n isDSMobile: boolean;\n}\n\ninterface StyledSecondaryTitlePropsT {\n disabled: boolean;\n selected: boolean;\n}\n\ninterface StyledItemAddonPropsT {\n disabled: boolean;\n isDSMobile: boolean;\n}\n\ninterface StyledItemHeaderContainerPropsT {\n disabled: boolean;\n}\n\ninterface StyledItemCustomActionsPropsT {\n isDSMobile: boolean;\n}\n\ninterface PaddingSetterT {\n isDSMobile: boolean;\n withSecondaryTitle: boolean;\n}\n\nconst paddingSetter = ({ isDSMobile, withSecondaryTitle }: PaddingSetterT): string => {\n if (isDSMobile)\n return css`\n padding: 13px 0;\n `;\n if (withSecondaryTitle)\n return css`\n padding: 6px 0;\n `;\n return css`\n padding: 7px 0;\n `;\n};\n\nexport const StyledItemContainer = styled('div', { name: DSAccordionName, slot: DSAccordionSlots.ITEM.CONTAINER })`\n display: grid;\n grid-template-rows: auto auto;\n border-bottom: 1px solid ${({ theme }) => theme.colors.neutral[200]};\n align-items: center;\n min-width: 240px;\n ${layout}\n ${sizing}\n ${space}\n`;\n\nexport const StyledItemHeader = styled('button', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.CONTAINER,\n})<StyledItemHeaderPropsT>`\n display: flex;\n min-height: ${({ theme, withSecondaryTitle, isDSMobile }) =>\n isDSMobile ? `44px` : `${withSecondaryTitle ? theme.space.m : theme.space.s}`};\n width: 100%;\n align-items: center;\n border: none;\n outline: none;\n background: none;\n &:hover {\n cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};\n }\n padding: ${({ isDSMobile }) => (isDSMobile ? `0 16px` : `0`)};\n ${({ isDSMobile }) => (isDSMobile ? `flex-direction: row-reverse;` : ``)}\n &:focus {\n &:after {\n position: absolute;\n content: '';\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n border-radius: 2px;\n border: 2px solid ${({ theme }) => theme.colors.brand[700]};\n pointer-events: none;\n }\n }\n`;\n\nexport const StyledItemContent = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.CONTENT.CONTAINER,\n})<StyledItemContentPropsT>`\n margin: ${({ isDSMobile }) => (isDSMobile ? `3px 16px 24px 16px` : '16px 20px')};\n grid-column: 1/2;\n`;\n\nexport const StyledItemAddon = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.ADDON,\n})<StyledItemAddonPropsT>`\n height: 100%;\n display: grid;\n place-items: center;\n\n & .em-ds-icon svg {\n fill: ${({ disabled, theme }) => (disabled ? theme.colors.neutral[200] : theme.colors.brand[800])};\n }\n`;\n\nexport const StyledItemTitles = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.TITLE_CONTAINER,\n})<StyledItemTitlesPropsT>`\n display: grid;\n grid-gap: ${({ theme }) => theme.space.xxxs};\n ${paddingSetter}\n grid-template-columns: 100%;\n width: 100%;\n align-content: center;\n`;\n\nexport const StyledPrimaryTitle = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.PRIMARY_TITLE,\n})<StyledPrimaryTitlePropsT>`\n margin: 0;\n font-size: 16px;\n line-height: 1.125;\n text-align: left;\n text-overflow: ellipsis;\n min-height: ${({ theme }) => theme.space.xs};\n color: ${({ disabled, theme }) => (disabled ? theme.colors.neutral[500] : theme.colors.neutral[700])};\n font-weight: ${({ theme, isDSMobile }) => (isDSMobile ? theme.fontWeights.semibold : theme.fontWeights.regular)};\n ${({ selected }) =>\n selected\n ? `word-break: break-word;`\n : `\n overflow: hidden;\n white-space: nowrap;\n `};\n width: 100%;\n display: block;\n`;\n\nexport const StyledSecondaryTitle = styled('span', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.SECONDARY_TITLE,\n})<StyledSecondaryTitlePropsT>`\n margin: 0;\n font-size: ${({ theme }) => theme.fontSizes.label[200]};\n line-height: 1.273;\n text-align: left;\n min-height: 12px;\n color: ${({ disabled, theme }) => (disabled ? theme.colors.neutral[500] : theme.colors.neutral[700])};\n text-overflow: ellipsis;\n ${({ selected }) =>\n selected\n ? `word-break: break-word;`\n : `\n overflow: hidden;\n white-space: nowrap;\n width: 100%;\n display: block;`}\n`;\n\nexport const StyledItemCustomActions = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.CUSTOM_ACTIONS_CONTAINER,\n})<StyledItemCustomActionsPropsT>`\n display: grid;\n grid-auto-flow: column;\n place-items: center;\n grid-gap: ${({ theme }) => theme.space.xxs};\n margin: ${({ theme, isDSMobile }) => (isDSMobile ? `0 ${theme.space.xs}` : '0 20px 0 16px')};\n justify-content: flex-end;\n height: 28px;\n`;\n\nexport const StyledItemHeaderContainer = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.CONTAINER,\n})<StyledItemHeaderContainerPropsT>`\n display: grid;\n grid-template-columns: auto max-content;\n place-items: center;\n position: relative;\n border-radius: 2px;\n &:hover {\n ${({ disabled, theme }) => (!disabled ? `background: ${theme.colors.brand[200]};` : ``)}\n }\n`;\n\nexport const StyledTooltipContent = styled('div', {\n name: DSAccordionName,\n slot: DSAccordionSlots.ITEM.HEADER.TOOLTIP,\n})`\n padding: 8px;\n width: 250px;\n background: white;\n display: grid;\n gap: ${({ theme }) => theme.space.xxs};\n\n p {\n margin: 0;\n }\n`;\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;ACAA,YAAuB;ADAvB,uBAAmD;AACnD,8BAAkD;AA+ClD,MAAM,gBAAgB,CAAC,EAAE,YAAY,yBAAiD;AACpF,MAAI;AACF,WAAO;AAAA;AAAA;AAGT,MAAI;AACF,WAAO;AAAA;AAAA;AAGT,SAAO;AAAA;AAAA;AAGT;AAEO,MAAM,sBAAsB,6BAAO,OAAO,EAAE,MAAM,yCAAiB,MAAM,yCAAiB,KAAK,UAAU,CAAC;AAAA;AAAA;AA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AAA;AAAA,WAIzC,CAAC,EAAE,UAAU,MAAM,MAAO,WAAW,MAAM,OAAO,QAAQ,OAAO,MAAM,OAAO,QAAQ;AAAA;AAAA,IAE7F,CAAC,EAAE,SAAS,MACZ,WACI,4BACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOD,MAAM,8BAA0B,yBAAO,OAAO;AAAA,EACnD,MAAM;AAAA,EACN,MAAM,yCAAiB,KAAK,OAAO;AACrC,CAAC;AAAA;AAAA;AAAA;AAAA,cAIa,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM;AAAA,YAC7B,CAAC,EAAE,OAAO,WAAW,MAAO,aAAa,KAAK,MAAM,MAAM,OAAO;AAAA;AAAA;AAAA;AAKtE,MAAM,gCAA4B,yBAAO,OAAO;AAAA,EACrD,MAAM;AAAA,EACN,MAAM,yCAAiB,KAAK,OAAO;AACrC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOK,CAAC,EAAE,UAAU,MAAM,MAAO,CAAC,WAAW,eAAe,MAAM,OAAO,MAAM,UAAU;AAAA;AAAA;AAIjF,MAAM,2BAAuB,yBAAO,OAAO;AAAA,EAChD,MAAM;AAAA,EACN,MAAM,yCAAiB,KAAK,OAAO;AACrC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,SAKQ,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
21
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
25
  var useAccordionItem_exports = {};
23
26
  __export(useAccordionItem_exports, {
@@ -35,28 +38,34 @@ const useAccordionItem = ({ value, disabled }) => {
35
38
  }
36
39
  return value === actualActiveValue;
37
40
  }, [actualActiveValue, value]);
38
- const handleOnClick = (0, import_react.useCallback)((e) => {
39
- if (!disabled)
40
- setActiveValues(value, e);
41
- }, [disabled, setActiveValues, value]);
42
- const handleOnKeyDown = (0, import_react.useCallback)((e, _dsIndex) => {
43
- if (!disabled && e.key === "ArrowDown") {
44
- const currentIndex = focusableChildrenReferences.findIndex((item) => item.index === _dsIndex);
45
- if (focusableChildrenReferences[currentIndex + 1]?.ref?.current)
46
- focusableChildrenReferences[currentIndex + 1]?.ref?.current?.focus();
47
- else if (currentIndex === focusableChildrenReferences.length - 1) {
48
- focusableChildrenReferences[0]?.ref?.current?.focus();
41
+ const handleOnClick = (0, import_react.useCallback)(
42
+ (e) => {
43
+ if (!disabled)
44
+ setActiveValues(value, e);
45
+ },
46
+ [disabled, setActiveValues, value]
47
+ );
48
+ const handleOnKeyDown = (0, import_react.useCallback)(
49
+ (e, _dsIndex) => {
50
+ if (!disabled && e.key === "ArrowDown") {
51
+ const currentIndex = focusableChildrenReferences.findIndex((item) => item.index === _dsIndex);
52
+ if (focusableChildrenReferences[currentIndex + 1]?.ref?.current)
53
+ focusableChildrenReferences[currentIndex + 1]?.ref?.current?.focus();
54
+ else if (currentIndex === focusableChildrenReferences.length - 1) {
55
+ focusableChildrenReferences[0]?.ref?.current?.focus();
56
+ }
49
57
  }
50
- }
51
- if (!disabled && e.key === "ArrowUp") {
52
- const currentIndex = focusableChildrenReferences.findIndex((item) => item.index === _dsIndex);
53
- if (focusableChildrenReferences[currentIndex - 1]?.ref?.current)
54
- focusableChildrenReferences[currentIndex - 1]?.ref?.current?.focus();
55
- else if (currentIndex === 0) {
56
- focusableChildrenReferences[focusableChildrenReferences.length - 1]?.ref?.current?.focus();
58
+ if (!disabled && e.key === "ArrowUp") {
59
+ const currentIndex = focusableChildrenReferences.findIndex((item) => item.index === _dsIndex);
60
+ if (focusableChildrenReferences[currentIndex - 1]?.ref?.current)
61
+ focusableChildrenReferences[currentIndex - 1]?.ref?.current?.focus();
62
+ else if (currentIndex === 0) {
63
+ focusableChildrenReferences[focusableChildrenReferences.length - 1]?.ref?.current?.focus();
64
+ }
57
65
  }
58
- }
59
- }, [disabled, focusableChildrenReferences]);
66
+ },
67
+ [disabled, focusableChildrenReferences]
68
+ );
60
69
  return {
61
70
  handleOnClick,
62
71
  handleOnKeyDown,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/accordionItem/useAccordionItem.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useCallback, useContext, useMemo } from 'react';\nimport { DSAccordionContext } from '../../DSAccordionCTX';\n\nexport interface UseAccordionItemPropsT {\n value: string | number;\n disabled: boolean;\n}\n\ninterface UseAccordionItemReturnTypeT {\n handleOnClick: (e: React.MouseEvent) => void;\n handleOnKeyDown: (e: React.KeyboardEvent, dsIndex: number) => void;\n selected: boolean;\n}\n\nexport const useAccordionItem = ({ value, disabled }: UseAccordionItemPropsT): UseAccordionItemReturnTypeT => {\n const { actualActiveValue, setActiveValues, focusableChildrenReferences } = useContext(DSAccordionContext);\n\n const selected = useMemo(() => {\n if (Array.isArray(actualActiveValue)) {\n return actualActiveValue.some((currentValue) => currentValue === value);\n }\n return value === actualActiveValue;\n }, [actualActiveValue, value]);\n\n const handleOnClick = useCallback(\n (e: React.MouseEvent) => {\n if (!disabled) setActiveValues(value, e);\n },\n [disabled, setActiveValues, value],\n );\n\n const handleOnKeyDown = useCallback(\n (e: React.KeyboardEvent, _dsIndex: number) => {\n if (!disabled && e.key === 'ArrowDown') {\n const currentIndex = focusableChildrenReferences.findIndex((item) => item.index === _dsIndex);\n if (focusableChildrenReferences[currentIndex + 1]?.ref?.current)\n focusableChildrenReferences[currentIndex + 1]?.ref?.current?.focus();\n else if (currentIndex === focusableChildrenReferences.length - 1) {\n focusableChildrenReferences[0]?.ref?.current?.focus();\n }\n }\n\n if (!disabled && e.key === 'ArrowUp') {\n const currentIndex = focusableChildrenReferences.findIndex((item) => item.index === _dsIndex);\n if (focusableChildrenReferences[currentIndex - 1]?.ref?.current)\n focusableChildrenReferences[currentIndex - 1]?.ref?.current?.focus();\n else if (currentIndex === 0) {\n focusableChildrenReferences[focusableChildrenReferences.length - 1]?.ref?.current?.focus();\n }\n }\n },\n [disabled, focusableChildrenReferences],\n );\n\n return {\n handleOnClick,\n handleOnKeyDown,\n selected,\n };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwD;AACxD,4BAAmC;AAa5B,MAAM,mBAAmB,CAAC,EAAE,OAAO,eAAoE;AAC5G,QAAM,EAAE,mBAAmB,iBAAiB,gCAAgC,6BAAW,wCAAkB;AAEzG,QAAM,WAAW,0BAAQ,MAAM;AAC7B,QAAI,MAAM,QAAQ,iBAAiB,GAAG;AACpC,aAAO,kBAAkB,KAAK,CAAC,iBAAiB,iBAAiB,KAAK;AAAA,IACxE;AACA,WAAO,UAAU;AAAA,EACnB,GAAG,CAAC,mBAAmB,KAAK,CAAC;AAE7B,QAAM,gBAAgB,8BACpB,CAAC,MAAwB;AACvB,QAAI,CAAC;AAAU,sBAAgB,OAAO,CAAC;AAAA,EACzC,GACA,CAAC,UAAU,iBAAiB,KAAK,CACnC;AAEA,QAAM,kBAAkB,8BACtB,CAAC,GAAwB,aAAqB;AAC5C,QAAI,CAAC,YAAY,EAAE,QAAQ,aAAa;AACtC,YAAM,eAAe,4BAA4B,UAAU,CAAC,SAAS,KAAK,UAAU,QAAQ;AAC5F,UAAI,4BAA4B,eAAe,IAAI,KAAK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aAAa;AACtC,cAAM,eAAe,4BAA4B,UAAU,CAAC,SAAS,KAAK,UAAU,QAAQ;AAC5F,YAAI,4BAA4B,eAAe,IAAI,KAAK;AACtD,sCAA4B,eAAe,IAAI,KAAK,SAAS,MAAM;AAAA,iBAC5D,iBAAiB,4BAA4B,SAAS,GAAG;AAChE,sCAA4B,IAAI,KAAK,SAAS,MAAM;AAAA,QACtD;AAAA,MACF;AAEA,UAAI,CAAC,YAAY,EAAE,QAAQ,WAAW;AACpC,cAAM,eAAe,4BAA4B,UAAU,CAAC,SAAS,KAAK,UAAU,QAAQ;AAC5F,YAAI,4BAA4B,eAAe,IAAI,KAAK;AACtD,sCAA4B,eAAe,IAAI,KAAK,SAAS,MAAM;AAAA,iBAC5D,iBAAiB,GAAG;AAC3B,sCAA4B,4BAA4B,SAAS,IAAI,KAAK,SAAS,MAAM;AAAA,QAC3F;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,UAAU,2BAA2B;AAAA,EACxC;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
21
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
25
  var propTypes_exports = {};
23
26
  __export(propTypes_exports, {
@@ -30,12 +33,16 @@ var import_ds_utilities = require("@elliemae/ds-utilities");
30
33
  const accordionItemPropTypes = {
31
34
  children: import_ds_utilities.PropTypes.node.description("Dimsum AccordionItem content.").isRequired,
32
35
  title: import_ds_utilities.PropTypes.string.description("Set a primary title."),
33
- value: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number]).description("Dimsum AccordionItem value, this value should be unique.").isRequired,
36
+ value: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number]).description(
37
+ "Dimsum AccordionItem value, this value should be unique."
38
+ ).isRequired,
34
39
  iconClosed: import_ds_utilities.PropTypes.node.description("Custom Dimsum Icon when it is closed."),
35
40
  iconOpened: import_ds_utilities.PropTypes.node.description("Custom Dimsum Icon when it is open."),
36
41
  secondaryTitle: import_ds_utilities.PropTypes.string.description("Set a secondary title"),
37
42
  customActions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("Set Dimsum AccordionItem custom actions.").deprecated({ version: "3.x" }),
38
- renderCustomActions: import_ds_utilities.PropTypes.func.description("This property will render any JSX in the custom actions area. You can access to all references and active values within the props.").deprecated({ version: "3.x" })
43
+ renderCustomActions: import_ds_utilities.PropTypes.func.description(
44
+ "This property will render any JSX in the custom actions area. You can access to all references and active values within the props."
45
+ ).deprecated({ version: "3.x" })
39
46
  };
40
47
  const accordionPropTypes = {
41
48
  containerProps: import_ds_utilities.PropTypes.object.description("Adds props to the container."),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/propTypes.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\n\nexport const accordionItemPropTypes = {\n children: PropTypes.node.description('Dimsum AccordionItem content.').isRequired,\n title: PropTypes.string.description('Set a primary title.'),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(\n 'Dimsum AccordionItem value, this value should be unique.',\n ).isRequired,\n iconClosed: PropTypes.node.description('Custom Dimsum Icon when it is closed.'),\n iconOpened: PropTypes.node.description('Custom Dimsum Icon when it is open.'),\n secondaryTitle: PropTypes.string.description('Set a secondary title'),\n customActions: PropTypes.arrayOf(PropTypes.object)\n .description('Set Dimsum AccordionItem custom actions.')\n .deprecated({ version: '3.x' }),\n renderCustomActions: PropTypes.func\n .description(\n 'This property will render any JSX in the custom actions area. You can access to all references and active values within the props.',\n )\n .deprecated({ version: '3.x' }),\n};\n\nexport const accordionPropTypes = {\n containerProps: PropTypes.object.description('Adds props to the container.'),\n activeValue: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n PropTypes.string,\n PropTypes.number,\n ]).description('Selected active value. This property makes the component a controlled one.'),\n children: PropTypes.node.description('Dimsum AccordionItems to show.'),\n allowMultipleOpen: PropTypes.bool.description('Allows multiple Dimsum AccordionItems to be open at the same time.'),\n onChange: PropTypes.func.description('Callback function once the Dimsum Accordion changes.'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA0B;AAEnB,MAAM,yBAAyB;AAAA,EACpC,UAAU,8BAAU,KAAK,YAAY,+BAA+B,EAAE;AAAA,EACtE,OAAO,8BAAU,OAAO,YAAY,sBAAsB;AAAA,EAC1D,OAAO,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,EAAE,YAC/D,0DACF,EAAE;AAAA,EACF,YAAY,8BAAU,KAAK,YAAY,uCAAuC;AAAA,EAC9E,YAAY,8BAAU,KAAK,YAAY,qCAAqC;AAAA,EAC5E,gBAAgB,8BAAU,OAAO,YAAY,uBAAuB;AAAA,EACpE,eAAe,8BAAU,QAAQ,8BAAU,MAAM,EAC9C,YAAY,0CAA0C,EACtD,WAAW,EAAE,SAAS,MAAM,CAAC;AAAA,EAChC,qBAAqB,8BAAU,KAC5B,YACC,oIACF,EACC,WAAW,EAAE,SAAS,MAAM,C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AAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,CAAC;AAAA,IAC3E,8BAAU;AAAA,IACV,8BAAU;AAAA,EACZ,CAAC,EAAE,YAAY,4EAA4E;AAAA,EAC3F,UAAU,8BAAU,KAAK,YAAY,gCAAgC;AAAA,EACrE,mBAAmB,8BAAU,KAAK,YAAY,oEAAoE;AAAA,EAClH,UAAU,8BAAU,KAAK,YAAY,sDAAsD;AAC7F;",
6
6
  "names": []
7
7
  }
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
21
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
25
  var react_desc_prop_types_exports = {};
23
26
  __export(react_desc_prop_types_exports, {
@@ -32,12 +35,16 @@ const accordionItemPropTypes = {
32
35
  ...import_ds_utilities.xstyledPropTypes,
33
36
  children: import_ds_utilities.PropTypes.node.description("Dimsum AccordionItem content.").isRequired,
34
37
  title: import_ds_utilities.PropTypes.string.description("Set a primary title."),
35
- value: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number]).description("Dimsum AccordionItem value, this value should be unique.").isRequired,
38
+ value: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number]).description(
39
+ "Dimsum AccordionItem value, this value should be unique."
40
+ ).isRequired,
36
41
  iconClosed: import_ds_utilities.PropTypes.node.description("Custom Dimsum Icon when it is closed.").deprecated({ version: "3.x" }),
37
42
  iconOpened: import_ds_utilities.PropTypes.node.description("Custom Dimsum Icon when it is open.").deprecated({ version: "3.x" }),
38
43
  secondaryTitle: import_ds_utilities.PropTypes.string.description("Set a secondary title"),
39
44
  customActions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("Set Dimsum AccordionItem custom actions.").deprecated({ version: "3.x" }),
40
- renderCustomActions: import_ds_utilities.PropTypes.func.description("This property will render any JSX in the header controls area. You can access to all references and active values within the props.")
45
+ renderCustomActions: import_ds_utilities.PropTypes.func.description(
46
+ "This property will render any JSX in the header controls area. You can access to all references and active values within the props."
47
+ )
41
48
  };
42
49
  const accordionPropTypes = {
43
50
  ...import_ds_utilities.globalAttributesPropTypes,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\nimport type { DSAccordionInternalsT } from './sharedTypes';\n\nexport declare namespace DSAccordionT {\n export interface DefaultProps {\n containerProps: Record<string, unknown>;\n allowMultipleOpen: boolean;\n onChange: (value: (string | number)[] | string | number | null, e: React.MouseEvent | React.KeyboardEvent) => void;\n children: React.ReactElement<InternalItemProps>[];\n isDSMobile: boolean;\n }\n\n export interface OptionalProps {\n activeValue?: DSAccordionInternalsT.InternalActiveValue;\n }\n\n export interface RequiredProps {\n children: React.ReactElement<ItemProps>[];\n }\n\n export interface Props extends OptionalProps, Partial<Omit<DefaultProps, 'children'>>, RequiredProps {}\n\n export interface ItemDefaultProps {\n iconClosed: React.MemoExoticComponent<React.FunctionComponent<DSAccordionInternalsT.DefaultIconProps>>;\n iconOpened: React.MemoExoticComponent<React.FunctionComponent<DSAccordionInternalsT.DefaultIconProps>>;\n title: string;\n customActions: DSAccordionInternalsT.CustomActions[];\n disabled: boolean;\n }\n\n export interface ItemOptionalProps {\n secondaryTitle?: string;\n renderCustomActions?: (props: {\n allRefs: DSAccordionInternalsT.AllChildrenReferences;\n actualActiveValue: DSAccordionInternalsT.InternalActiveValue;\n }) => JSX.Element;\n }\n\n export interface ItemRequiredProps {\n children: React.ReactNode;\n value: string | number;\n }\n\n export interface ItemProps extends ItemRequiredProps, ItemOptionalProps, Partial<ItemDefaultProps> {}\n\n export interface InternalItemProps\n extends ItemRequiredProps,\n ItemOptionalProps,\n Omit<ItemDefaultProps, 'disabled' | 'customActions' | 'iconClosed' | 'iconOpened'> {\n dsIndex: number;\n disabled: boolean;\n customActions: DSAccordionInternalsT.CustomActions[];\n iconClosed: React.MemoExoticComponent<React.FunctionComponent<DSAccordionInternalsT.DefaultIconProps>>;\n iconOpened: React.MemoExoticComponent<React.FunctionComponent<DSAccordionInternalsT.DefaultIconProps>>;\n }\n\n export interface InternalProps\n extends OptionalProps,\n Partial<Omit<DefaultProps, 'children' | 'isDSMobile' | 'onChange'>> {\n children: React.ReactElement<InternalItemProps>[];\n isDSMobile: boolean;\n onChange: (value: (string | number)[] | string | number | null, e: React.MouseEvent | React.KeyboardEvent) => void;\n }\n}\n\nexport const accordionItemPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n children: PropTypes.node.description('Dimsum AccordionItem content.').isRequired,\n title: PropTypes.string.description('Set a primary title.'),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(\n 'Dimsum AccordionItem value, this value should be unique.',\n ).isRequired,\n iconClosed: PropTypes.node.description('Custom Dimsum Icon when it is closed.').deprecated({ version: '3.x' }),\n iconOpened: PropTypes.node.description('Custom Dimsum Icon when it is open.').deprecated({ version: '3.x' }),\n secondaryTitle: PropTypes.string.description('Set a secondary title'),\n customActions: PropTypes.arrayOf(PropTypes.object)\n .description('Set Dimsum AccordionItem custom actions.')\n .deprecated({ version: '3.x' }),\n renderCustomActions: PropTypes.func.description(\n 'This property will render any JSX in the header controls area. You can access to all references and active values within the props.',\n ),\n};\n\nexport const accordionPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n containerProps: PropTypes.object.description('Adds props to the container.'),\n activeValue: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n PropTypes.string,\n PropTypes.number,\n ]).description('Selected active value. This property makes the component a controlled one.'),\n children: PropTypes.node.description('Dimsum AccordionItems to show.'),\n allowMultipleOpen: PropTypes.bool.description('Allows multiple Dimsum AccordionItems to be open at the same time.'),\n onChange: PropTypes.func.description('Callback function once the Dimsum Accordion changes.'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAuE;AAiEhE,MAAM,yBAAyB;AAAA,EACpC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,8BAAU,KAAK,YAAY,+BAA+B,EAAE;AAAA,EACtE,OAAO,8BAAU,OAAO,YAAY,sBAAsB;AAAA,EAC1D,OAAO,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,EAAE,YAC/D,0DACF,EAAE;AAAA,EACF,YAAY,8BAAU,KAAK,YAAY,uCAAuC,EAAE,WAAW,EAAE,SAAS,MAAM,CAAC;AAAA,EAC7G,YAAY,8BAAU,KAAK,YAAY,qCAAqC,EAAE,WAAW,EAAE,SAAS,MAAM,CAAC;AAAA,EAC3G,gBAAgB,8BAAU,OAAO,YAAY,uBAAuB;AAAA,EACpE,eAAe,8BAAU,QAAQ,8BAAU,MAAM,EAC9C,YAAY,0CAA0C,EACtD,WAAW,EAAE,SAAS,MAAM,CAAC;AAAA,EAChC,qBAAqB,8BAAU,KAAK,YAClC,qIACF;AACF;AAEO,MAAM,qBAAqB;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,gBAAgB,8BAAU,OAAO,YAAY,8BAA8B;AAAA,EAC3E,aAA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AAQ,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,CAAC;AAAA,IAC3E,8BAAU;AAAA,IACV,8BAAU;AAAA,EACZ,CAAC,EAAE,YAAY,4EAA4E;AAAA,EAC3F,UAAU,8BAAU,KAAK,YAAY,gCAAgC;AAAA,EACrE,mBAAmB,8BAAU,KAAK,YAAY,oEAAoE;AAAA,EAClH,UAAU,8BAAU,KAAK,YAAY,sDAAsD;AAC7F;",
6
6
  "names": []
7
7
  }
@@ -13,7 +13,10 @@ var __copyProps = (to, from, except, desc) => {
13
13
  }
14
14
  return to;
15
15
  };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
18
+ mod
19
+ ));
17
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
21
  var sharedTypes_exports = {};
19
22
  module.exports = __toCommonJS(sharedTypes_exports);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/sharedTypes.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export declare namespace DSAccordionInternalsT {\n export interface CustomActions {\n onClick: (e: React.MouseEvent) => void;\n id: string;\n }\n\n export interface DefaultIconProps {\n isDSMobile: boolean;\n }\n\n export interface FocusableChildrenReferences {\n index: number;\n value: string | number;\n ref: React.MutableRefObject<HTMLButtonElement | null>;\n }\n\n export interface AllChildrenReferences {\n [index: string]: React.MutableRefObject<HTMLButtonElement | null>;\n }\n\n export type InternalActiveValue = (string | number)[] | string | number | null | undefined;\n}\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;",
6
6
  "names": []
7
7
  }