@spaced-out/ui-design-system 0.5.10 → 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/.storybook/public/component-parent-levels.json +77 -77
- package/CHANGELOG.md +9 -0
- 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/package.json +1 -1
|
@@ -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,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AASrD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,uBAAuB,CAAC,EAAE,OAAO,C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