@spaced-out/ui-design-system 0.5.9 → 0.5.11
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/.github/workflows/publish_to_npm.yml +21 -27
- package/.storybook/main.ts +1 -1
- package/.storybook/public/component-parent-levels.json +77 -77
- package/CHANGELOG.md +25 -0
- package/eslint.config.mjs +41 -25
- package/lib/components/Card/Card.d.ts +7 -5
- package/lib/components/Card/Card.d.ts.map +1 -1
- package/lib/components/Card/Card.js +33 -1
- package/lib/components/CircularLoader/CircularLoader.d.ts +1 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
- package/lib/components/CircularLoader/CircularLoader.js +7 -1
- package/lib/components/EmptyState/EmptyState.d.ts +1 -0
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/lib/components/EmptyState/EmptyState.js +26 -1
- package/lib/components/ErrorMessage/ErrorMessage.d.ts +1 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.js +30 -1
- package/lib/components/FocusManager/FocusManager.d.ts +1 -0
- package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
- package/lib/components/FocusManager/FocusManager.js +6 -1
- package/lib/components/Grid/Grid.d.ts +4 -2
- package/lib/components/Grid/Grid.d.ts.map +1 -1
- package/lib/components/Grid/Grid.js +13 -3
- package/lib/components/Icon/Icon.d.ts +1 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.js +7 -1
- package/lib/components/Input/Input.d.ts +1 -0
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/Input.js +64 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts +1 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
- package/lib/components/LinearLoader/LinearLoader.js +7 -1
- package/lib/components/PromptChip/PromptChip.d.ts +2 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
- package/lib/components/PromptChip/PromptChip.js +2 -2
- package/lib/components/Separator/Separator.d.ts +1 -0
- package/lib/components/Separator/Separator.d.ts.map +1 -1
- package/lib/components/Separator/Separator.js +7 -2
- package/lib/components/Shimmer/Shimmer.d.ts +5 -2
- package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
- package/lib/components/Shimmer/Shimmer.js +39 -8
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +6 -1
- package/lib/components/StickyBar/StickyBar.d.ts +4 -2
- package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
- package/lib/components/StickyBar/StickyBar.js +16 -1
- package/lib/components/Text/Text.d.ts +2 -0
- package/lib/components/Text/Text.d.ts.map +1 -1
- package/lib/components/Text/Text.js +189 -27
- package/lib/components/Toggle/Toggle.d.ts +1 -0
- package/lib/components/Toggle/Toggle.d.ts.map +1 -1
- package/lib/components/Toggle/Toggle.js +18 -0
- package/lib/components/Truncate/Truncate.d.ts +1 -0
- package/lib/components/Truncate/Truncate.d.ts.map +1 -1
- package/lib/components/Truncate/Truncate.js +12 -3
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +11 -0
- package/lib/utils/qa/index.d.ts +2 -0
- package/lib/utils/qa/index.d.ts.map +1 -0
- package/lib/utils/qa/index.js +16 -0
- package/lib/utils/qa/qa.d.ts +30 -0
- package/lib/utils/qa/qa.d.ts.map +1 -0
- package/lib/utils/qa/qa.js +52 -0
- package/package.json +2 -1
|
@@ -7,6 +7,7 @@ exports.Separator = exports.ORIENTATION = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _size = require("../../styles/variables/_size");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _SeparatorModule = _interopRequireDefault(require("./Separator.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -20,7 +21,8 @@ const Separator = exports.Separator = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
20
21
|
classNames,
|
|
21
22
|
orientation = ORIENTATION.vertical,
|
|
22
23
|
width,
|
|
23
|
-
height
|
|
24
|
+
height,
|
|
25
|
+
testId
|
|
24
26
|
} = _ref;
|
|
25
27
|
// Dynamically compute width and height based on orientation if not provided
|
|
26
28
|
const resolvedWidth = width || (orientation === ORIENTATION.vertical ? _size.size2 : 'auto');
|
|
@@ -31,7 +33,10 @@ const Separator = exports.Separator = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
31
33
|
};
|
|
32
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
35
|
ref: ref,
|
|
34
|
-
"data-testid":
|
|
36
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
37
|
+
base: testId,
|
|
38
|
+
slot: 'separator'
|
|
39
|
+
}),
|
|
35
40
|
style: style,
|
|
36
41
|
className: (0, _classify.default)(_SeparatorModule.default.wrapper, classNames?.wrapper)
|
|
37
42
|
});
|
|
@@ -24,9 +24,11 @@ export interface ShimmerProps {
|
|
|
24
24
|
height?: number | string;
|
|
25
25
|
borderRadius?: number | string;
|
|
26
26
|
children?: React.ReactNode;
|
|
27
|
+
testId?: string;
|
|
27
28
|
}
|
|
28
29
|
export interface ShimmerWrapperProps {
|
|
29
30
|
children?: React.ReactNode;
|
|
31
|
+
testId?: string;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* Note(Nishant): ShimmerWrapper is a wrapper component for Shimmer component. This should only be used for Text based Shimmers
|
|
@@ -37,7 +39,7 @@ export interface ShimmerWrapperProps {
|
|
|
37
39
|
* This would ensure the layout remains same even when you toggle the shimmer to show your actual content
|
|
38
40
|
* @param {React.Node} children - The children to be rendered
|
|
39
41
|
*/
|
|
40
|
-
export declare const ShimmerWrapper: ({ children, }: ShimmerWrapperProps) => React.ReactElement<React.ComponentProps<"span">>;
|
|
42
|
+
export declare const ShimmerWrapper: ({ children, testId, }: ShimmerWrapperProps) => React.ReactElement<React.ComponentProps<"span">>;
|
|
41
43
|
export declare const Shimmer: Flow.AbstractComponent<ShimmerProps, HTMLSpanElement>;
|
|
42
44
|
type KPIShimmerClassNames = Readonly<{
|
|
43
45
|
wrapper?: string;
|
|
@@ -51,7 +53,8 @@ export interface KPIShimmerProps {
|
|
|
51
53
|
hasBottomContent?: boolean;
|
|
52
54
|
hasIcon?: boolean;
|
|
53
55
|
classNames?: KPIShimmerClassNames;
|
|
56
|
+
testId?: string;
|
|
54
57
|
}
|
|
55
|
-
export declare const KPIShimmer: ({ textWidth, hasBottomContent, hasIcon, hasTopContent, hasMiddleContent, classNames, }: KPIShimmerProps) => React.JSX.Element;
|
|
58
|
+
export declare const KPIShimmer: ({ textWidth, hasBottomContent, hasIcon, hasTopContent, hasMiddleContent, classNames, testId, }: KPIShimmerProps) => React.JSX.Element;
|
|
56
59
|
export {};
|
|
57
60
|
//# sourceMappingURL=Shimmer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.d.ts","sourceRoot":"","sources":["../../../src/components/Shimmer/Shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Shimmer.d.ts","sourceRoot":"","sources":["../../../src/components/Shimmer/Shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAgBrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,E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AAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,gGAQxB,eAAe,sBA0CjB,CAAC"}
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _border = require("../../styles/variables/_border");
|
|
9
9
|
var _size = require("../../styles/variables/_size");
|
|
10
10
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
11
|
+
var _qa = require("../../utils/qa");
|
|
11
12
|
var _string = require("../../utils/string");
|
|
12
13
|
var _ShimmerModule = _interopRequireDefault(require("./Shimmer.module.css"));
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -36,9 +37,14 @@ const SHIMMER_TYPE_TO_BORDER_RADIUS_MAP = exports.SHIMMER_TYPE_TO_BORDER_RADIUS_
|
|
|
36
37
|
*/
|
|
37
38
|
const ShimmerWrapper = _ref => {
|
|
38
39
|
let {
|
|
39
|
-
children
|
|
40
|
+
children,
|
|
41
|
+
testId
|
|
40
42
|
} = _ref;
|
|
41
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
44
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
45
|
+
base: testId,
|
|
46
|
+
slot: 'wrapper'
|
|
47
|
+
}),
|
|
42
48
|
children: children
|
|
43
49
|
});
|
|
44
50
|
};
|
|
@@ -51,7 +57,8 @@ const Shimmer = exports.Shimmer = /*#__PURE__*/React.forwardRef((_ref2, ref) =>
|
|
|
51
57
|
children,
|
|
52
58
|
width = _size.size40,
|
|
53
59
|
height = _size.sizeFluid,
|
|
54
|
-
borderRadius
|
|
60
|
+
borderRadius,
|
|
61
|
+
testId
|
|
55
62
|
} = _ref2;
|
|
56
63
|
if (!show) {
|
|
57
64
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
@@ -61,7 +68,10 @@ const Shimmer = exports.Shimmer = /*#__PURE__*/React.forwardRef((_ref2, ref) =>
|
|
|
61
68
|
const borderRadiusValue = borderRadius ?? SHIMMER_TYPE_TO_BORDER_RADIUS_MAP[type];
|
|
62
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
63
70
|
ref: ref,
|
|
64
|
-
"data-testid":
|
|
71
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
72
|
+
base: testId,
|
|
73
|
+
slot: 'shimmer'
|
|
74
|
+
}),
|
|
65
75
|
className: (0, _classify.default)(_ShimmerModule.default.wrapper, _ShimmerModule.default[type], classNames?.wrapper),
|
|
66
76
|
style: {
|
|
67
77
|
'--width': (0, _string.appendPx)(width),
|
|
@@ -77,31 +87,52 @@ const KPIShimmer = _ref3 => {
|
|
|
77
87
|
hasIcon = true,
|
|
78
88
|
hasTopContent = true,
|
|
79
89
|
hasMiddleContent = true,
|
|
80
|
-
classNames
|
|
90
|
+
classNames,
|
|
91
|
+
testId
|
|
81
92
|
} = _ref3;
|
|
82
93
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
94
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
95
|
+
base: testId,
|
|
96
|
+
slot: 'kpiShimmer'
|
|
97
|
+
}),
|
|
83
98
|
className: (0, _classify.default)(_ShimmerModule.default.kpiBox, classNames?.wrapper),
|
|
84
99
|
children: [hasIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
85
100
|
className: (0, _classify.default)(_ShimmerModule.default.section, _ShimmerModule.default.iconSection, classNames?.icon),
|
|
86
101
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Shimmer, {
|
|
87
102
|
type: "rounded",
|
|
88
103
|
width: 60,
|
|
89
|
-
height: 60
|
|
104
|
+
height: 60,
|
|
105
|
+
testId: (0, _qa.generateTestId)({
|
|
106
|
+
base: testId,
|
|
107
|
+
slot: 'iconShimmer'
|
|
108
|
+
})
|
|
90
109
|
})
|
|
91
110
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
92
111
|
className: (0, _classify.default)(_ShimmerModule.default.section, classNames?.text),
|
|
93
112
|
children: [hasTopContent && /*#__PURE__*/(0, _jsxRuntime.jsx)(Shimmer, {
|
|
94
113
|
type: "text",
|
|
95
114
|
width: textWidth,
|
|
96
|
-
height: 15
|
|
115
|
+
height: 15,
|
|
116
|
+
testId: (0, _qa.generateTestId)({
|
|
117
|
+
base: testId,
|
|
118
|
+
slot: 'topTextShimmer'
|
|
119
|
+
})
|
|
97
120
|
}), hasMiddleContent && /*#__PURE__*/(0, _jsxRuntime.jsx)(Shimmer, {
|
|
98
121
|
type: "text",
|
|
99
122
|
width: textWidth,
|
|
100
|
-
height: 25
|
|
123
|
+
height: 25,
|
|
124
|
+
testId: (0, _qa.generateTestId)({
|
|
125
|
+
base: testId,
|
|
126
|
+
slot: 'middleTextShimmer'
|
|
127
|
+
})
|
|
101
128
|
}), hasBottomContent && /*#__PURE__*/(0, _jsxRuntime.jsx)(Shimmer, {
|
|
102
129
|
type: "text",
|
|
103
130
|
width: textWidth,
|
|
104
|
-
height: 15
|
|
131
|
+
height: 15,
|
|
132
|
+
testId: (0, _qa.generateTestId)({
|
|
133
|
+
base: testId,
|
|
134
|
+
slot: 'bottomTextShimmer'
|
|
135
|
+
})
|
|
105
136
|
})]
|
|
106
137
|
})]
|
|
107
138
|
});
|
|
@@ -19,6 +19,7 @@ export interface StatusIndicatorProps {
|
|
|
19
19
|
withBorder?: boolean;
|
|
20
20
|
borderColorToken?: keyof typeof COLORS;
|
|
21
21
|
disabled?: boolean;
|
|
22
|
+
testId?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const StatusIndicator: Flow.AbstractComponent<StatusIndicatorProps, HTMLDivElement>;
|
|
24
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/StatusIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/StatusIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AAOtD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;EAQ1B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,IAAI,CAAC,iBAAiB,CAClD,oBAAoB,EACpB,cAAc,CAiCf,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.StatusIndicator = exports.STATUS_SEMANTIC = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var COLORS = _interopRequireWildcard(require("../../styles/variables/_color"));
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
|
+
var _qa = require("../../utils/qa");
|
|
10
11
|
var _StatusIndicatorModule = _interopRequireDefault(require("./StatusIndicator.module.css"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -27,11 +28,15 @@ const StatusIndicator = exports.StatusIndicator = /*#__PURE__*/React.forwardRef(
|
|
|
27
28
|
withBorder,
|
|
28
29
|
borderColorToken = 'colorBackgroundTertiary',
|
|
29
30
|
disabled,
|
|
31
|
+
testId,
|
|
30
32
|
...props
|
|
31
33
|
} = _ref;
|
|
32
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
35
|
...props,
|
|
34
|
-
"data-testid":
|
|
36
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
37
|
+
base: testId,
|
|
38
|
+
slot: 'indicator'
|
|
39
|
+
}),
|
|
35
40
|
className: (0, _classify.default)(_StatusIndicatorModule.default.statusWrapper, _StatusIndicatorModule.default[status], {
|
|
36
41
|
[_StatusIndicatorModule.default.withBorder]: withBorder,
|
|
37
42
|
[_StatusIndicatorModule.default.disabled]: disabled
|
|
@@ -4,12 +4,14 @@ export interface StickyBarProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
position?: 'top' | 'bottom';
|
|
7
|
+
testId?: string;
|
|
7
8
|
}
|
|
8
9
|
export interface StickyBarChildProps {
|
|
9
10
|
className?: string;
|
|
10
11
|
children: React.ReactNode;
|
|
12
|
+
testId?: string;
|
|
11
13
|
}
|
|
12
|
-
export declare const StickyBarLeftSlot: ({ className, children, ...props }: StickyBarChildProps) => React.JSX.Element;
|
|
13
|
-
export declare const StickyBarRightSlot: ({ className, children, ...props }: StickyBarChildProps) => React.JSX.Element;
|
|
14
|
+
export declare const StickyBarLeftSlot: ({ className, children, testId, ...props }: StickyBarChildProps) => React.JSX.Element;
|
|
15
|
+
export declare const StickyBarRightSlot: ({ className, children, testId, ...props }: StickyBarChildProps) => React.JSX.Element;
|
|
14
16
|
export declare const StickyBar: Flow.AbstractComponent<StickyBarProps, HTMLDivElement>;
|
|
15
17
|
//# sourceMappingURL=StickyBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyBar.d.ts","sourceRoot":"","sources":["../../../src/components/StickyBar/StickyBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"StickyBar.d.ts","sourceRoot":"","sources":["../../../src/components/StickyBar/StickyBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,iBAAiB,GAAI,2CAK/B,mBAAmB,sBAQrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,2CAKhC,mBAAmB,sBAQrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CA4B1E,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StickyBarRightSlot = exports.StickyBarLeftSlot = exports.StickyBar = 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 _StickyBarModule = _interopRequireDefault(require("./StickyBar.module.css"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -14,10 +15,15 @@ const StickyBarLeftSlot = _ref => {
|
|
|
14
15
|
let {
|
|
15
16
|
className,
|
|
16
17
|
children,
|
|
18
|
+
testId,
|
|
17
19
|
...props
|
|
18
20
|
} = _ref;
|
|
19
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
22
|
...props,
|
|
23
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
24
|
+
base: testId,
|
|
25
|
+
slot: 'leftSlot'
|
|
26
|
+
}),
|
|
21
27
|
className: (0, _classify.default)(_StickyBarModule.default.leftSlot, className),
|
|
22
28
|
children: children
|
|
23
29
|
});
|
|
@@ -27,10 +33,15 @@ const StickyBarRightSlot = _ref2 => {
|
|
|
27
33
|
let {
|
|
28
34
|
className,
|
|
29
35
|
children,
|
|
36
|
+
testId,
|
|
30
37
|
...props
|
|
31
38
|
} = _ref2;
|
|
32
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
40
|
...props,
|
|
41
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
42
|
+
base: testId,
|
|
43
|
+
slot: 'rightSlot'
|
|
44
|
+
}),
|
|
34
45
|
className: (0, _classify.default)(_StickyBarModule.default.rightSlot, className),
|
|
35
46
|
children: children
|
|
36
47
|
});
|
|
@@ -41,12 +52,16 @@ const StickyBar = exports.StickyBar = /*#__PURE__*/React.forwardRef((_ref3, ref)
|
|
|
41
52
|
className,
|
|
42
53
|
children,
|
|
43
54
|
position = 'bottom',
|
|
55
|
+
testId,
|
|
44
56
|
...props
|
|
45
57
|
} = _ref3;
|
|
46
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
59
|
...props,
|
|
48
60
|
ref: ref,
|
|
49
|
-
"data-testid":
|
|
61
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
62
|
+
base: testId,
|
|
63
|
+
slot: 'stickyBar'
|
|
64
|
+
}),
|
|
50
65
|
className: (0, _classify.default)(_StickyBarModule.default.wrapper, {
|
|
51
66
|
[_StickyBarModule.default.top]: position === 'top',
|
|
52
67
|
[_StickyBarModule.default.bottom]: position === 'bottom'
|
|
@@ -9,6 +9,7 @@ export interface TextProps {
|
|
|
9
9
|
highlightString?: string | string[];
|
|
10
10
|
caseSensitiveHighlighting?: boolean;
|
|
11
11
|
highlightWithBackground?: boolean;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}
|
|
13
14
|
export interface HighlightTextProps {
|
|
14
15
|
text: string;
|
|
@@ -16,6 +17,7 @@ export interface HighlightTextProps {
|
|
|
16
17
|
highlightClassName?: string;
|
|
17
18
|
caseSensitiveHighlighting?: boolean;
|
|
18
19
|
highlightWithBackground?: boolean;
|
|
20
|
+
testId?: string;
|
|
19
21
|
}
|
|
20
22
|
export declare const JumboLarge: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
|
|
21
23
|
export declare const JumboMedium: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EA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