@spaced-out/ui-design-system 0.5.11 → 0.5.12
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.
- package/CHANGELOG.md +17 -0
- package/lib/components/Accordion/Accordion.d.ts +1 -0
- package/lib/components/Accordion/Accordion.d.ts.map +1 -1
- package/lib/components/Accordion/Accordion.js +29 -4
- package/lib/components/Accordion/AccordionGroup.d.ts +2 -1
- package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
- package/lib/components/Accordion/AccordionGroup.js +13 -2
- package/lib/components/Avatar/Avatar.d.ts +3 -1
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +58 -11
- package/lib/components/AvatarGroup/AvatarGroup.d.ts +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.js +27 -3
- package/lib/components/Badge/Badge.d.ts +1 -0
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.js +22 -5
- package/lib/components/BadgedIcon/BadgedIcon.d.ts +2 -1
- package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -1
- package/lib/components/BadgedIcon/BadgedIcon.js +20 -4
- package/lib/components/Banner/Banner.d.ts +1 -0
- package/lib/components/Banner/Banner.d.ts.map +1 -1
- package/lib/components/Banner/Banner.js +2 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +6 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +31 -11
- package/lib/components/Button/Button.d.ts +1 -0
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +50 -6
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +1 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/ButtonDropdown.js +22 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +1 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +2 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts +13 -6
- package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
- package/lib/components/ChatBubble/ChatBubble.js +57 -14
- package/lib/components/Checkbox/Checkbox.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +34 -5
- package/lib/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
- package/lib/components/Checkbox/CheckboxGroup.js +21 -2
- package/lib/components/Chip/Chip.d.ts +1 -0
- package/lib/components/Chip/Chip.d.ts.map +1 -1
- package/lib/components/Chip/Chip.js +24 -3
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +5 -2
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
- package/lib/components/CollapsibleCard/CollapsibleCard.js +46 -7
- package/lib/components/Dialog/Dialog.d.ts +10 -5
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.js +76 -11
- package/lib/components/Dropdown/Dropdown.d.ts +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +19 -2
- package/lib/components/Dropdown/SimpleDropdown.d.ts +1 -0
- package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
- package/lib/components/Dropdown/SimpleDropdown.js +2 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -1
- package/lib/components/FileUpload/FileBlock/FileBlock.js +58 -10
- package/lib/components/FileUpload/FileUpload.d.ts +1 -0
- package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/lib/components/FileUpload/FileUpload.js +30 -4
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +2 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +11 -1
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +1 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -1
- package/lib/components/FormTitleWrapper/FormTitleWrapper.js +24 -3
- package/lib/components/Icon/ClickableIcon.d.ts +2 -0
- package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
- package/lib/components/Icon/ClickableIcon.js +13 -1
- package/lib/components/Icon/Icon.docs.d.ts +11 -0
- package/lib/components/Icon/Icon.docs.d.ts.map +1 -1
- package/lib/components/Icon/Icon.docs.js +11 -0
- package/lib/components/Icon/SemanticIcon.d.ts +2 -1
- package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
- package/lib/components/Icon/SemanticIcon.js +11 -1
- package/lib/components/InContextAlert/InContextAlert.d.ts +3 -1
- package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
- package/lib/components/InContextAlert/InContextAlert.js +58 -10
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +1 -0
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.js +30 -3
- package/lib/components/KPIBox/KPIBox.d.ts +1 -0
- package/lib/components/KPIBox/KPIBox.d.ts.map +1 -1
- package/lib/components/KPIBox/KPIBox.js +27 -2
- package/lib/components/Link/Link.d.ts +1 -0
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +24 -2
- package/lib/components/Menu/Menu.d.ts +2 -0
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +64 -7
- package/lib/components/Menu/MenuOptionButton.d.ts +1 -0
- package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
- package/lib/components/Menu/MenuOptionButton.js +84 -8
- package/lib/components/Modal/Modal.d.ts +9 -5
- package/lib/components/Modal/Modal.d.ts.map +1 -1
- package/lib/components/Modal/Modal.js +48 -5
- package/lib/components/Notification/Notification.d.ts +1 -0
- package/lib/components/Notification/Notification.d.ts.map +1 -1
- package/lib/components/Notification/Notification.js +24 -4
- package/lib/components/PageTitle/PageTitle.d.ts +7 -3
- package/lib/components/PageTitle/PageTitle.d.ts.map +1 -1
- package/lib/components/PageTitle/PageTitle.js +41 -4
- package/lib/components/Panel/Panel.d.ts +7 -3
- package/lib/components/Panel/Panel.d.ts.map +1 -1
- package/lib/components/Panel/Panel.js +34 -4
- package/lib/components/ProgressDonut/ProgressDonut.d.ts +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -1
- package/lib/components/ProgressDonut/ProgressDonut.js +11 -2
- package/lib/components/PromptChip/PromptChip.d.ts +1 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
- package/lib/components/PromptChip/PromptChip.js +42 -5
- package/lib/components/PromptInput/PromptInput.d.ts +1 -0
- package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
- package/lib/components/PromptInput/PromptInput.js +24 -3
- package/lib/components/RadioButton/RadioButton.d.ts +1 -0
- package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioButton.js +14 -0
- package/lib/components/RadioButton/RadioGroup.d.ts +1 -0
- package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioGroup.js +17 -2
- package/lib/components/RadioTile/RadioTile.d.ts +1 -0
- package/lib/components/RadioTile/RadioTile.d.ts.map +1 -1
- package/lib/components/RadioTile/RadioTile.js +31 -6
- package/lib/components/RangeSlider/RangeSlider.d.ts +1 -0
- package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/lib/components/RangeSlider/RangeSlider.js +33 -4
- package/lib/components/Rating/Rating.d.ts +1 -0
- package/lib/components/Rating/Rating.d.ts.map +1 -1
- package/lib/components/Rating/Rating.js +22 -3
- package/lib/components/ScoreBar/ScoreBar.d.ts +1 -0
- package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -1
- package/lib/components/ScoreBar/ScoreBar.js +16 -2
- package/lib/components/SearchInput/SearchInput.d.ts +1 -0
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.js +20 -2
- package/lib/components/SideMenuLink/SideMenuLink.d.ts +1 -0
- package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -1
- package/lib/components/SideMenuLink/SideMenuLink.js +33 -3
- package/lib/components/Stepper/Step/Step.d.ts +1 -0
- package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
- package/lib/components/Stepper/Step/Step.js +30 -4
- package/lib/components/Stepper/Step/StepContent.d.ts +2 -1
- package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -1
- package/lib/components/Stepper/Step/StepContent.js +7 -1
- package/lib/components/Stepper/Step/StepLabel.d.ts +2 -1
- package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -1
- package/lib/components/Stepper/Step/StepLabel.js +7 -1
- package/lib/components/Stepper/Stepper.d.ts +1 -0
- package/lib/components/Stepper/Stepper.d.ts.map +1 -1
- package/lib/components/Stepper/Stepper.js +13 -2
- package/lib/components/SubMenu/SubMenu.d.ts +1 -0
- package/lib/components/SubMenu/SubMenu.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +21 -3
- package/lib/components/TextTile/TextTile.d.ts +1 -0
- package/lib/components/TextTile/TextTile.d.ts.map +1 -1
- package/lib/components/TextTile/TextTile.js +24 -3
- package/lib/components/Textarea/Textarea.d.ts +1 -0
- package/lib/components/Textarea/Textarea.d.ts.map +1 -1
- package/lib/components/Textarea/Textarea.js +38 -0
- package/lib/components/Timeline/Timeline.d.ts +1 -0
- package/lib/components/Timeline/Timeline.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.js +15 -4
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +2 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
- package/lib/components/Timeline/TimelineItem/TimelineItem.js +46 -4
- package/lib/components/Toast/Toast.d.ts +6 -2
- package/lib/components/Toast/Toast.d.ts.map +1 -1
- package/lib/components/Toast/Toast.js +81 -14
- package/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/components/Tooltip/Tooltip.js +23 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +2 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +15 -1
- package/lib/components/Typeahead/SimpleTypeahead.d.ts +1 -0
- package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
- package/lib/components/Typeahead/SimpleTypeahead.js +3 -1
- package/lib/components/Typeahead/Typeahead.d.ts +1 -0
- package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
- package/lib/components/Typeahead/Typeahead.js +19 -2
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +1 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
- package/lib/components/WeekdayPicker/WeekdayPicker.js +16 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideMenuLink.d.ts","sourceRoot":"","sources":["../../../src/components/SideMenuLink/SideMenuLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"SideMenuLink.d.ts","sourceRoot":"","sources":["../../../src/components/SideMenuLink/SideMenuLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAGvE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAM7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqLzB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CACT,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,CACpC,aAAa,EACb,iBAAiB,GAAG,IAAI,GAAG,SAAS,CACrC,CAAC;IACF,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,iBAAiB,EACjB,iBAAiB,CA+IlB,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.SideMenuLink = exports.MENU_NAME_LIST = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var React = _react;
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _Button = require("../Button");
|
|
11
12
|
var _ConditionalWrapper = require("../ConditionalWrapper");
|
|
12
13
|
var _Icon = require("../Icon");
|
|
@@ -216,6 +217,7 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
216
217
|
to,
|
|
217
218
|
customTitle,
|
|
218
219
|
status,
|
|
220
|
+
testId,
|
|
219
221
|
...restButtonProps
|
|
220
222
|
} = _ref;
|
|
221
223
|
const selected = selectedValue === pageNameKey;
|
|
@@ -234,6 +236,10 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
234
236
|
[_SideMenuLinkModule.default.closed]: !opened
|
|
235
237
|
}),
|
|
236
238
|
onClick: onChangeHandler,
|
|
239
|
+
testId: (0, _qa.generateTestId)({
|
|
240
|
+
base: testId,
|
|
241
|
+
slot: 'link'
|
|
242
|
+
}),
|
|
237
243
|
children: children
|
|
238
244
|
}),
|
|
239
245
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
@@ -241,6 +247,10 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
241
247
|
wrapper: children => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
242
248
|
body: linkTitle,
|
|
243
249
|
...tooltip,
|
|
250
|
+
testId: (0, _qa.generateTestId)({
|
|
251
|
+
base: testId,
|
|
252
|
+
slot: 'tooltip'
|
|
253
|
+
}),
|
|
244
254
|
children: children
|
|
245
255
|
}),
|
|
246
256
|
children: /*#__PURE__*/(0, _react.createElement)(_Button.UnstyledButton, {
|
|
@@ -255,28 +265,48 @@ const SideMenuLink = exports.SideMenuLink = /*#__PURE__*/React.forwardRef((_ref,
|
|
|
255
265
|
ref: ref,
|
|
256
266
|
tabIndex: disabled ? -1 : tabIndex,
|
|
257
267
|
disabled: disabled,
|
|
258
|
-
key: pageNameKey
|
|
268
|
+
key: pageNameKey,
|
|
269
|
+
testId: (0, _qa.generateTestId)({
|
|
270
|
+
base: testId,
|
|
271
|
+
slot: 'button'
|
|
272
|
+
})
|
|
259
273
|
}, pageNameKey && MENU_NAME_LIST[pageNameKey] ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
260
274
|
className: _SideMenuLinkModule.default.iconContainer,
|
|
261
275
|
children: [status && /*#__PURE__*/(0, _jsxRuntime.jsx)(_StatusIndicator.StatusIndicator, {
|
|
262
276
|
status: status,
|
|
263
277
|
classNames: {
|
|
264
278
|
wrapper: _SideMenuLinkModule.default.statusIndicatorBlock
|
|
265
|
-
}
|
|
279
|
+
},
|
|
280
|
+
testId: (0, _qa.generateTestId)({
|
|
281
|
+
base: testId,
|
|
282
|
+
slot: 'status-indicator'
|
|
283
|
+
})
|
|
266
284
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
267
285
|
type: MENU_NAME_LIST[pageNameKey].iconType,
|
|
268
286
|
name: MENU_NAME_LIST[pageNameKey].iconName,
|
|
269
287
|
size: "medium",
|
|
270
288
|
color: _Text.TEXT_COLORS.inverseSecondary,
|
|
271
|
-
className: _SideMenuLinkModule.default.menuIcon
|
|
289
|
+
className: _SideMenuLinkModule.default.menuIcon,
|
|
290
|
+
testId: (0, _qa.generateTestId)({
|
|
291
|
+
base: testId,
|
|
292
|
+
slot: 'icon'
|
|
293
|
+
})
|
|
272
294
|
})]
|
|
273
295
|
}) : null, opened ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
274
296
|
className: _SideMenuLinkModule.default.menuLabelContainer,
|
|
275
297
|
children: [pageNameKey && MENU_NAME_LIST[pageNameKey] ? isGroupMenuLink ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleSmall, {
|
|
276
298
|
className: _SideMenuLinkModule.default.groupMenuLinkText,
|
|
299
|
+
testId: (0, _qa.generateTestId)({
|
|
300
|
+
base: testId,
|
|
301
|
+
slot: 'title'
|
|
302
|
+
}),
|
|
277
303
|
children: linkTitle
|
|
278
304
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyMedium, {
|
|
279
305
|
className: _SideMenuLinkModule.default.menuLinkText,
|
|
306
|
+
testId: (0, _qa.generateTestId)({
|
|
307
|
+
base: testId,
|
|
308
|
+
slot: 'title'
|
|
309
|
+
}),
|
|
280
310
|
children: linkTitle
|
|
281
311
|
}) : null, rightSlot ? rightSlot : null]
|
|
282
312
|
}) : null)
|
|
@@ -19,6 +19,7 @@ export interface StepProps {
|
|
|
19
19
|
onClick?: (idx: number, e?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
|
|
20
20
|
iconName?: string;
|
|
21
21
|
iconType?: IconType;
|
|
22
|
+
testId?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const Step: Flow.AbstractComponent<StepProps, HTMLDivElement>;
|
|
24
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAclD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,CACR,GAAG,EAAE,MAAM,EACX,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACrD,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,cAAc,CAuGhE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Step = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = _interopRequireDefault(require("../../../utils/classify"));
|
|
9
|
+
var _qa = require("../../../utils/qa");
|
|
9
10
|
var _Icon = require("../../Icon");
|
|
10
11
|
var _StepperModule = _interopRequireDefault(require("../Stepper.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -26,7 +27,8 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
26
27
|
onClick,
|
|
27
28
|
allowClick,
|
|
28
29
|
iconName,
|
|
29
|
-
iconType
|
|
30
|
+
iconType,
|
|
31
|
+
testId
|
|
30
32
|
} = _ref;
|
|
31
33
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
32
34
|
const stepContent = childrenArray.map(stepContent => {
|
|
@@ -35,7 +37,11 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
35
37
|
...stepContent.props,
|
|
36
38
|
active,
|
|
37
39
|
completed,
|
|
38
|
-
disabled
|
|
40
|
+
disabled,
|
|
41
|
+
testId: (0, _qa.generateTestId)({
|
|
42
|
+
base: testId,
|
|
43
|
+
slot: 'content'
|
|
44
|
+
})
|
|
39
45
|
});
|
|
40
46
|
}
|
|
41
47
|
return stepContent;
|
|
@@ -52,6 +58,10 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
52
58
|
[_StepperModule.default.clickable]: allowClick
|
|
53
59
|
}, classNames?.wrapper),
|
|
54
60
|
onClick: handleClick,
|
|
61
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'root'
|
|
64
|
+
}),
|
|
55
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
66
|
className: (0, _classify.default)(_StepperModule.default.stepWrapperCounter, {
|
|
57
67
|
[_StepperModule.default.selected]: active,
|
|
@@ -61,21 +71,37 @@ const Step = exports.Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
61
71
|
[_StepperModule.default.disabled]: disabled,
|
|
62
72
|
[_StepperModule.default.withIcon]: !!iconName
|
|
63
73
|
}, classNames?.stepCounter),
|
|
74
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'counter'
|
|
77
|
+
}),
|
|
64
78
|
children: completed && !active ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
65
79
|
name: "check",
|
|
66
80
|
type: _Icon.ICON_TYPE.solid,
|
|
67
81
|
size: _Icon.ICON_SIZE.small,
|
|
68
|
-
className: _StepperModule.default.stepIcon
|
|
82
|
+
className: _StepperModule.default.stepIcon,
|
|
83
|
+
testId: (0, _qa.generateTestId)({
|
|
84
|
+
base: testId,
|
|
85
|
+
slot: 'check-icon'
|
|
86
|
+
})
|
|
69
87
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
70
88
|
children: iconName ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
71
89
|
name: iconName,
|
|
72
90
|
className: _StepperModule.default.stepIcon,
|
|
73
91
|
size: _Icon.ICON_SIZE.small,
|
|
74
|
-
type: iconType
|
|
92
|
+
type: iconType,
|
|
93
|
+
testId: (0, _qa.generateTestId)({
|
|
94
|
+
base: testId,
|
|
95
|
+
slot: 'icon'
|
|
96
|
+
})
|
|
75
97
|
}) : (index + 1).toString()
|
|
76
98
|
})
|
|
77
99
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
100
|
className: (0, _classify.default)(_StepperModule.default.stepContent, classNames?.content),
|
|
101
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: 'content'
|
|
104
|
+
}),
|
|
79
105
|
children: stepContent
|
|
80
106
|
})]
|
|
81
107
|
});
|
|
@@ -8,7 +8,8 @@ export interface StepContentProps {
|
|
|
8
8
|
completed?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
classNames?: ClassNames;
|
|
11
|
+
testId?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare const StepContent: ({ children, classNames, active, completed, disabled, }: StepContentProps) => React.JSX.Element;
|
|
13
|
+
export declare const StepContent: ({ children, classNames, active, completed, disabled, testId, }: StepContentProps) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=StepContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StepContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,gEAOzB,gBAAgB,sBAelB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StepContent = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = require("../../../utils/classify");
|
|
9
|
+
var _qa = require("../../../utils/qa");
|
|
9
10
|
var _StepperModule = _interopRequireDefault(require("../Stepper.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,7 +17,8 @@ const StepContent = _ref => {
|
|
|
16
17
|
classNames,
|
|
17
18
|
active,
|
|
18
19
|
completed = false,
|
|
19
|
-
disabled = false
|
|
20
|
+
disabled = false,
|
|
21
|
+
testId
|
|
20
22
|
} = _ref;
|
|
21
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
24
|
className: (0, _classify.classify)(_StepperModule.default.stepContentWrapper, {
|
|
@@ -24,6 +26,10 @@ const StepContent = _ref => {
|
|
|
24
26
|
[_StepperModule.default.completed]: completed,
|
|
25
27
|
[_StepperModule.default.disabled]: disabled
|
|
26
28
|
}, classNames?.wrapper),
|
|
29
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
30
|
+
base: testId,
|
|
31
|
+
slot: 'root'
|
|
32
|
+
}),
|
|
27
33
|
children: children
|
|
28
34
|
});
|
|
29
35
|
};
|
|
@@ -8,7 +8,8 @@ export interface StepLabelProps {
|
|
|
8
8
|
completed?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
classNames?: ClassNames;
|
|
11
|
+
testId?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare const StepLabel: ({ children, classNames, active, completed, disabled, }: StepLabelProps) => React.JSX.Element;
|
|
13
|
+
export declare const StepLabel: ({ children, classNames, active, completed, disabled, testId, }: StepLabelProps) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=StepLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StepLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/StepLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,GAAI,gEAOvB,cAAc,sBAehB,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StepLabel = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = require("../../../utils/classify");
|
|
9
|
+
var _qa = require("../../../utils/qa");
|
|
9
10
|
var _StepperModule = _interopRequireDefault(require("../Stepper.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -16,7 +17,8 @@ const StepLabel = _ref => {
|
|
|
16
17
|
classNames,
|
|
17
18
|
active,
|
|
18
19
|
completed = false,
|
|
19
|
-
disabled = false
|
|
20
|
+
disabled = false,
|
|
21
|
+
testId
|
|
20
22
|
} = _ref;
|
|
21
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
24
|
className: (0, _classify.classify)(_StepperModule.default.stepLabelWrapper, {
|
|
@@ -24,6 +26,10 @@ const StepLabel = _ref => {
|
|
|
24
26
|
[_StepperModule.default.completed]: completed,
|
|
25
27
|
[_StepperModule.default.disabled]: disabled
|
|
26
28
|
}, classNames?.wrapper),
|
|
29
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
30
|
+
base: testId,
|
|
31
|
+
slot: 'root'
|
|
32
|
+
}),
|
|
27
33
|
children: children
|
|
28
34
|
});
|
|
29
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAkBH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAsEtE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Stepper = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = require("../../utils/classify");
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _StepperModule = _interopRequireDefault(require("./Stepper.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -20,7 +21,8 @@ const Stepper = exports.Stepper = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
20
21
|
children,
|
|
21
22
|
orientation = 'horizontal',
|
|
22
23
|
classNames,
|
|
23
|
-
disabled = false
|
|
24
|
+
disabled = false,
|
|
25
|
+
testId
|
|
24
26
|
} = _ref;
|
|
25
27
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
26
28
|
const steps = childrenArray.map((step, index) => {
|
|
@@ -55,12 +57,21 @@ const Stepper = exports.Stepper = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
55
57
|
last: index + 1 === childrenArray.length,
|
|
56
58
|
active: index === activeStep,
|
|
57
59
|
allowClick: onClick && index !== activeStep && isLastStepCompleted,
|
|
58
|
-
disabled: disabledChild || disabled
|
|
60
|
+
disabled: disabledChild || disabled,
|
|
61
|
+
testId: (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'step',
|
|
64
|
+
index: index.toString()
|
|
65
|
+
})
|
|
59
66
|
});
|
|
60
67
|
});
|
|
61
68
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
62
69
|
className: (0, _classify.classify)(_StepperModule.default.stepperWrapper, _StepperModule.default[orientation], classNames?.wrapper),
|
|
63
70
|
ref: ref,
|
|
71
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: 'root'
|
|
74
|
+
}),
|
|
64
75
|
children: steps
|
|
65
76
|
});
|
|
66
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAO5D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAwEtE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SubMenu = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Button = require("../Button");
|
|
10
11
|
var _Icon = require("../Icon");
|
|
11
12
|
var _Text = require("../Text");
|
|
@@ -22,7 +23,8 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
22
23
|
titleIconSize,
|
|
23
24
|
titleIconType,
|
|
24
25
|
onClose,
|
|
25
|
-
showClose = false
|
|
26
|
+
showClose = false,
|
|
27
|
+
testId
|
|
26
28
|
} = _ref;
|
|
27
29
|
const childrenWithProps = React.Children.map(children, child => {
|
|
28
30
|
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -35,6 +37,10 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
35
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
38
|
className: (0, _classify.default)(_SubMenuModule.default.subMenuWrapper, classNames?.wrapper),
|
|
37
39
|
ref: ref,
|
|
40
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
41
|
+
base: testId,
|
|
42
|
+
slot: 'wrapper'
|
|
43
|
+
}),
|
|
38
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
39
45
|
className: _SubMenuModule.default.subMenuTitleAndButton,
|
|
40
46
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -44,10 +50,18 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
44
50
|
name: titleIcon,
|
|
45
51
|
type: titleIconType,
|
|
46
52
|
size: titleIconSize,
|
|
47
|
-
className: _SubMenuModule.default.titleIcon
|
|
53
|
+
className: _SubMenuModule.default.titleIcon,
|
|
54
|
+
testId: (0, _qa.generateTestId)({
|
|
55
|
+
base: testId,
|
|
56
|
+
slot: 'title-icon'
|
|
57
|
+
})
|
|
48
58
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleMedium, {
|
|
49
59
|
className: _SubMenuModule.default.subMenuHeader,
|
|
50
60
|
color: _Text.TEXT_COLORS.inversePrimary,
|
|
61
|
+
testId: (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'title'
|
|
64
|
+
}),
|
|
51
65
|
children: title
|
|
52
66
|
})]
|
|
53
67
|
}), showClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
@@ -60,7 +74,11 @@ const SubMenu = exports.SubMenu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60
74
|
classNames: {
|
|
61
75
|
wrapper: _SubMenuModule.default.subMenuCloseButton,
|
|
62
76
|
icon: _SubMenuModule.default.subMenuCloseIcon
|
|
63
|
-
}
|
|
77
|
+
},
|
|
78
|
+
testId: (0, _qa.generateTestId)({
|
|
79
|
+
base: testId,
|
|
80
|
+
slot: 'close-button'
|
|
81
|
+
})
|
|
64
82
|
})]
|
|
65
83
|
}), childrenWithProps]
|
|
66
84
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAiDxE,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.TextTile = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Icon = require("../Icon");
|
|
10
11
|
var _Text = require("../Text");
|
|
11
12
|
var _TextTileModule = _interopRequireDefault(require("./TextTile.module.css"));
|
|
@@ -17,23 +18,43 @@ const TextTile = exports.TextTile = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
17
18
|
header,
|
|
18
19
|
iconName = 'sparkles',
|
|
19
20
|
classNames,
|
|
20
|
-
description
|
|
21
|
+
description,
|
|
22
|
+
testId
|
|
21
23
|
} = _ref;
|
|
22
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
25
|
ref: ref,
|
|
24
|
-
"data-testid":
|
|
26
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
27
|
+
base: testId,
|
|
28
|
+
slot: 'root'
|
|
29
|
+
}),
|
|
25
30
|
className: (0, _classify.default)(_TextTileModule.default.textTileWrapper, classNames?.wrapper),
|
|
26
31
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
32
|
className: (0, _classify.default)(_TextTileModule.default.textTileTitle, classNames?.title),
|
|
33
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
34
|
+
base: testId,
|
|
35
|
+
slot: 'title'
|
|
36
|
+
}),
|
|
28
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
29
38
|
size: _Icon.ICON_SIZE.large,
|
|
30
39
|
name: iconName,
|
|
31
40
|
type: _Icon.ICON_TYPE.solid,
|
|
32
|
-
className: (0, _classify.default)(_TextTileModule.default.sparkles, classNames?.icon)
|
|
41
|
+
className: (0, _classify.default)(_TextTileModule.default.sparkles, classNames?.icon),
|
|
42
|
+
testId: (0, _qa.generateTestId)({
|
|
43
|
+
base: testId,
|
|
44
|
+
slot: 'icon'
|
|
45
|
+
})
|
|
33
46
|
}), typeof header === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.JumboMedium, {
|
|
47
|
+
testId: (0, _qa.generateTestId)({
|
|
48
|
+
base: testId,
|
|
49
|
+
slot: 'header'
|
|
50
|
+
}),
|
|
34
51
|
children: header
|
|
35
52
|
}) : header]
|
|
36
53
|
}), typeof description === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodyLarge, {
|
|
54
|
+
testId: (0, _qa.generateTestId)({
|
|
55
|
+
base: testId,
|
|
56
|
+
slot: 'description'
|
|
57
|
+
}),
|
|
37
58
|
children: description
|
|
38
59
|
}) : description]
|
|
39
60
|
});
|
|
@@ -22,6 +22,7 @@ export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTex
|
|
|
22
22
|
size?: 'medium' | 'small';
|
|
23
23
|
required?: boolean;
|
|
24
24
|
textCountLimit?: number;
|
|
25
|
+
testId?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare const Textarea: Flow.AbstractComponent<TextareaProps, HTMLTextAreaElement>;
|
|
27
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAUrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAC/C,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,WAAW,GACX,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,WAAW,GACX,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,UAAU,GACV,gBAAgB,CACnB;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CACT,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAC3C,OAAO,CAAC,EAAE,OAAO,KACd,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;IAChE,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;IAC/D,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuID,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Textarea = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _classify = require("../../utils/classify");
|
|
9
|
+
var _qa = require("../../utils/qa");
|
|
9
10
|
var _Text = require("../Text");
|
|
10
11
|
var _TextareaModule = _interopRequireDefault(require("./Textarea.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -30,6 +31,7 @@ const Textarea_ = (props, ref) => {
|
|
|
30
31
|
size = 'medium',
|
|
31
32
|
required,
|
|
32
33
|
textCountLimit,
|
|
34
|
+
testId,
|
|
33
35
|
...textareaProps
|
|
34
36
|
} = props;
|
|
35
37
|
const [textCountError, setTextCountError] = React.useState(false);
|
|
@@ -44,26 +46,50 @@ const Textarea_ = (props, ref) => {
|
|
|
44
46
|
}, [value]);
|
|
45
47
|
const controlledTextareaFilled = value !== '';
|
|
46
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
50
|
+
base: testId,
|
|
51
|
+
slot: 'root'
|
|
52
|
+
}),
|
|
47
53
|
className: (0, _classify.classify)(_TextareaModule.default.wrapper, {
|
|
48
54
|
[_TextareaModule.default.filled]: controlledTextareaFilled ?? false,
|
|
49
55
|
[_TextareaModule.default.withError]: (error || textCountError) ?? false
|
|
50
56
|
}),
|
|
51
57
|
children: [Boolean(label) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
59
|
+
base: testId,
|
|
60
|
+
slot: 'label'
|
|
61
|
+
}),
|
|
52
62
|
className: _TextareaModule.default.info,
|
|
53
63
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
54
64
|
className: _TextareaModule.default.infoContent,
|
|
55
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
56
66
|
color: "secondary",
|
|
67
|
+
testId: (0, _qa.generateTestId)({
|
|
68
|
+
base: testId,
|
|
69
|
+
slot: 'labelText'
|
|
70
|
+
}),
|
|
57
71
|
children: label ?? ''
|
|
58
72
|
}), "\xA0", required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
59
73
|
color: "danger",
|
|
74
|
+
testId: (0, _qa.generateTestId)({
|
|
75
|
+
base: testId,
|
|
76
|
+
slot: 'requiredIndicator'
|
|
77
|
+
}),
|
|
60
78
|
children: '*'
|
|
61
79
|
})]
|
|
62
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.FormLabelSmall, {
|
|
63
81
|
color: error || textCountError ? 'danger' : 'secondary',
|
|
82
|
+
testId: (0, _qa.generateTestId)({
|
|
83
|
+
base: testId,
|
|
84
|
+
slot: 'textCount'
|
|
85
|
+
}),
|
|
64
86
|
children: !!textCountLimit && (value && value.length || 0) + '/' + textCountLimit
|
|
65
87
|
})]
|
|
66
88
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
89
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
90
|
+
base: testId,
|
|
91
|
+
slot: 'box'
|
|
92
|
+
}),
|
|
67
93
|
className: (0, _classify.classify)(_TextareaModule.default.box, {
|
|
68
94
|
[_TextareaModule.default.inputDisabled]: disabled ?? false,
|
|
69
95
|
[_TextareaModule.default.medium]: size === 'medium',
|
|
@@ -72,6 +98,10 @@ const Textarea_ = (props, ref) => {
|
|
|
72
98
|
}, classNames?.box),
|
|
73
99
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
|
|
74
100
|
...textareaProps,
|
|
101
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
102
|
+
base: testId,
|
|
103
|
+
slot: 'textarea'
|
|
104
|
+
}),
|
|
75
105
|
disabled: locked || disabled,
|
|
76
106
|
name: name,
|
|
77
107
|
ref: ref,
|
|
@@ -84,9 +114,17 @@ const Textarea_ = (props, ref) => {
|
|
|
84
114
|
className: classNames?.textarea
|
|
85
115
|
})
|
|
86
116
|
}), (Boolean(helperText) || error) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
118
|
+
base: testId,
|
|
119
|
+
slot: 'helperText'
|
|
120
|
+
}),
|
|
87
121
|
className: _TextareaModule.default.info,
|
|
88
122
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.BodySmall, {
|
|
89
123
|
color: error && errorText ? 'danger' : disabled ? 'disabled' : 'secondary',
|
|
124
|
+
testId: (0, _qa.generateTestId)({
|
|
125
|
+
base: testId,
|
|
126
|
+
slot: 'errorText'
|
|
127
|
+
}),
|
|
90
128
|
children: error && errorText ? errorText : helperText ?? ''
|
|
91
129
|
})
|
|
92
130
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAYzE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwCD,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC"}
|