@kaizen/components 1.68.1 → 1.68.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.
- package/codemods/README.md +104 -33
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +16 -3
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +16 -3
- package/dist/styles.css +47 -39
- package/dist/types/Tile/subcomponents/GenericTile/GenericTile.d.ts +3 -1
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/src/Avatar/_docs/Avatar.stickersheet.stories.tsx +30 -32
- package/src/AvatarGroup/_docs/AvatarGroup.stickersheet.stories.tsx +14 -16
- package/src/Badge/_docs/Badge.stickersheet.stories.tsx +22 -22
- package/src/Brand/_docs/Brand.stickersheet.stories.tsx +24 -26
- package/src/BrandMoment/_docs/BrandMoment.stickersheet.stories.tsx +35 -39
- package/src/ButtonGroup/_docs/ButtonGroup.stickersheet.stories.tsx +117 -122
- package/src/Calendar/CalendarPopover/_docs/CalendarPopover.stickersheet.stories.tsx +4 -4
- package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +22 -30
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +58 -58
- package/src/Card/_docs/Card.stickersheet.stories.tsx +12 -16
- package/src/Checkbox/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +24 -27
- package/src/Checkbox/CheckboxField/_docs/CheckboxField.stickersheet.stories.tsx +31 -34
- package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.stickersheet.stories.tsx +25 -29
- package/src/ClearButton/_docs/ClearButton.stickersheet.stories.tsx +9 -9
- package/src/Collapsible/Collapsible/_docs/Collapsible.stickersheet.stories.tsx +56 -62
- package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.stickersheet.stories.tsx +19 -21
- package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.stickersheets.stories.tsx +6 -8
- package/src/DatePicker/_docs/DatePicker.stickersheet.stories.tsx +129 -144
- package/src/DatePicker/_docs/getLocale.stickersheet.stories.tsx +9 -11
- package/src/DateRangePicker/_docs/DateRangePicker.stickersheet.stories.tsx +26 -28
- package/src/Divider/_docs/Divider.stickersheet.stories.tsx +13 -10
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +7 -2
- package/src/ErrorPage/_docs/ErrorPage.stickersheet.stories.tsx +16 -20
- package/src/FieldGroup/_docs/FieldGroup.stickersheet.stories.tsx +5 -8
- package/src/FieldMessage/_docs/FieldMessage.stickersheet.stories.tsx +10 -20
- package/src/Filter/Filter/_docs/Filter.stickersheet.stories.tsx +13 -15
- package/src/Filter/FilterBar/_docs/FilterBar.stickersheet.stories.tsx +33 -47
- package/src/Filter/FilterButton/_docs/filter-buttons.stickersheet.stories.tsx +45 -51
- package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.stickersheet.stories.tsx +74 -93
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +110 -128
- package/src/Filter/FilterSelect/_docs/FilterSelect.stickersheet.stories.tsx +239 -249
- package/src/GuidanceBlock/_docs/GuidanceBlock.stickersheet.stories.tsx +38 -40
- package/src/Heading/_docs/Heading.stickersheet.stories.tsx +101 -111
- package/src/Icon/_docs/Icon.stickersheet.stories.tsx +13 -19
- package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.stickersheet.stories.tsx +8 -8
- package/src/Illustration/Scene/_docs/Scene.stickersheet.stories.tsx +139 -185
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stickersheet.stories.tsx +39 -41
- package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +30 -33
- package/src/Input/InputRange/_docs/InputRange.stickersheet.stories.tsx +21 -20
- package/src/Input/InputSearch/_docs/InputSearch.stickersheet.stories.tsx +137 -144
- package/src/Label/_docs/Label.stickersheet.stories.tsx +78 -85
- package/src/LabelledMessage/_docs/LabelledMessage.stickersheet.stories.tsx +3 -5
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stickersheet.stories.tsx +82 -82
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stickersheet.stories.tsx +18 -20
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +46 -52
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.stickersheet.stories.tsx +14 -18
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.stories.tsx +7 -13
- package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.stickersheet.stories.tsx +14 -16
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stickersheet.stories.tsx +13 -15
- package/src/MultiSelect/_docs/MultiSelect.stickersheet.stories.tsx +69 -74
- package/src/MultiSelect/subcomponents/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +22 -28
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/_docs/MultiSelectOptionField.stickersheet.stories.tsx +62 -67
- package/src/MultiSelect/subcomponents/MultiSelectOptions/_docs/MultiSelectOptions.stickersheet.stories.tsx +21 -28
- package/src/MultiSelect/subcomponents/MultiSelectToggle/_docs/MultiSelectToggle.stickersheet.stories.tsx +69 -93
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx +13 -16
- package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +13 -16
- package/src/Pagination/_docs/Pagination.stickersheet.stories.tsx +60 -74
- package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.stickersheet.stories.tsx +21 -23
- package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.stickersheet.stories.tsx +24 -28
- package/src/Popover/_docs/Popover.stickersheet.stories.tsx +33 -45
- package/src/ProgressBar/_docs/ProgressBar.stickersheet.stories.tsx +15 -26
- package/src/Radio/Radio/_docs/Radio.stickersheet.stories.tsx +46 -54
- package/src/Radio/RadioField/_docs/RadioField.stickersheet.stories.tsx +51 -54
- package/src/Radio/RadioGroup/_docs/RadioGroup.stickersheet.stories.tsx +80 -86
- package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.stickersheet.stories.tsx +42 -58
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +34 -57
- package/src/SearchField/_docs/SearchField.stickersheet.stories.tsx +32 -31
- package/src/Select/_docs/Select.stickersheet.stories.tsx +128 -127
- package/src/Slider/_docs/Slider.stickersheet.stories.tsx +85 -96
- package/src/SplitButton/_docs/SplitButton.stickersheet.stories.tsx +62 -68
- package/src/Tag/_docs/Tag.stickersheet.stories.tsx +49 -57
- package/src/Text/_docs/Text.stickersheet.stories.tsx +43 -47
- package/src/TextArea/_docs/TextArea.stickersheet.stories.tsx +28 -31
- package/src/TextAreaField/_docs/TextAreaField.stickersheet.stories.tsx +71 -89
- package/src/TextField/_docs/TextField.stickersheet.stories.tsx +47 -50
- package/src/Tile/InformationTile/_docs/InformationTile.mdx +4 -0
- package/src/Tile/InformationTile/_docs/InformationTile.stickersheet.stories.tsx +15 -21
- package/src/Tile/InformationTile/_docs/InformationTile.stories.tsx +7 -0
- package/src/Tile/MultiActionTile/_docs/MultiActionTile.stickersheet.stories.tsx +15 -21
- package/src/Tile/TileGrid/_docs/TileGrid.stickersheet.stories.tsx +91 -99
- package/src/Tile/subcomponents/GenericTile/GenericTile.spec.stories.tsx +65 -5
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +20 -2
- package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +15 -21
- package/src/TimeField/_docs/TimeField.stickersheet.stories.tsx +74 -83
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +73 -75
- package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.stickersheet.stories.tsx +24 -27
- package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.stickersheet.stories.tsx +47 -50
- package/src/Well/_docs/Well.stickersheet.stories.tsx +31 -41
- package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +107 -146
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +26 -29
- package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +141 -159
- package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +33 -36
- package/src/__actions__/Menu/v3/MenuItem.module.css +11 -3
- package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +14 -5
- package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +5 -0
- package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +2 -0
- package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +17 -23
- package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +63 -72
- package/src/__future__/Select/_docs/Select.stickersheet.stories.tsx +287 -309
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stickersheet.stories.tsx +42 -46
- package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +14 -17
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +101 -103
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stickersheet.stories.tsx +3 -4
package/codemods/README.md
CHANGED
|
@@ -23,36 +23,107 @@ pnpm kaizen-codemod src migrateWellVariantToColor
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Available codemods
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
|
|
27
|
+
### `migrateBrandMomentMoodToVariant`
|
|
28
|
+
|
|
29
|
+
Released in `1.58.0`
|
|
30
|
+
|
|
31
|
+
Migrates `BrandMoment` component prop from `mood` to `variant`.
|
|
32
|
+
|
|
33
|
+
### `migrateCardVariantToColor`
|
|
34
|
+
|
|
35
|
+
Released in `1.58.0`
|
|
36
|
+
|
|
37
|
+
Migrates `Card` component prop from `variant` to `color`.
|
|
38
|
+
|
|
39
|
+
### `migrateConfirmationModalMoodsToVariant`
|
|
40
|
+
|
|
41
|
+
Released in `1.58.0`
|
|
42
|
+
|
|
43
|
+
Migrates `ConfirmationModal` component prop from `mood` to `variant`.
|
|
44
|
+
|
|
45
|
+
### `migrateEmptyStateIllustrationTypeToVariant`
|
|
46
|
+
|
|
47
|
+
Released in `1.58.0`
|
|
48
|
+
|
|
49
|
+
Migrates `EmptyState` component prop from `illustrationType` to `variant`.
|
|
50
|
+
|
|
51
|
+
### `migrateGlobalNotificationTypeToVariant`
|
|
52
|
+
|
|
53
|
+
Released in `1.58.0`
|
|
54
|
+
|
|
55
|
+
Transforms `GlobalNotification`'s `type` prop to the new `variant` prop.
|
|
56
|
+
|
|
57
|
+
### `migrateInformationTileMoodToVariant`
|
|
58
|
+
|
|
59
|
+
Released in `1.58.0`
|
|
60
|
+
|
|
61
|
+
Migrates `InformationTile` component prop from `mood` to `variant`.
|
|
62
|
+
|
|
63
|
+
### `migrateInlineNotificationTypeToVariant`
|
|
64
|
+
|
|
65
|
+
Released in `1.58.0`
|
|
66
|
+
|
|
67
|
+
Transforms `InlineNotification`'s `type` prop to the new `variant` prop.
|
|
68
|
+
|
|
69
|
+
### `migrateMultiActionTileMoodToVariant`
|
|
70
|
+
|
|
71
|
+
Released in `1.58.0`
|
|
72
|
+
|
|
73
|
+
Migrates `MultiActionTile` component prop from `mood` to `variant`.
|
|
74
|
+
|
|
75
|
+
### `migrateProgressBarMoodToColor`
|
|
76
|
+
|
|
77
|
+
Released in `1.58.0`
|
|
78
|
+
|
|
79
|
+
Migrates `ProgressBar` component prop from `mood` to `color`.
|
|
80
|
+
|
|
81
|
+
### `migrateToastNotificationTypeToVariant`
|
|
82
|
+
|
|
83
|
+
Released in `1.58.0`
|
|
84
|
+
|
|
85
|
+
Transforms `ToastNotification`'s `type` prop to the new `variant` prop.
|
|
86
|
+
|
|
87
|
+
### `migrateWellVariantToColor`
|
|
88
|
+
|
|
89
|
+
Released in `1.58.0`
|
|
90
|
+
|
|
91
|
+
Migrates `Well` component prop from `variant` to `color`.
|
|
92
|
+
|
|
93
|
+
### `removeInputEditModalMood`
|
|
94
|
+
|
|
95
|
+
Released in `1.58.0`
|
|
96
|
+
|
|
97
|
+
Removes `InputEditModal` component prop `mood`.
|
|
98
|
+
|
|
99
|
+
### `removePopoverVariant`
|
|
100
|
+
|
|
101
|
+
Released in `1.60.0`
|
|
102
|
+
|
|
103
|
+
Removes `Popover` component props `variant` and `customIcon`.
|
|
104
|
+
|
|
105
|
+
### `upgradeIconV1`
|
|
106
|
+
|
|
107
|
+
Released in `1.67.0`; last updated in `1.68.1`
|
|
108
|
+
|
|
109
|
+
Migrates `*Icon` components to a new equivalent.
|
|
110
|
+
|
|
111
|
+
- `CaMonogramIcon` becomes `Brand` variant `enso`
|
|
112
|
+
- `inheritSize` will be removed if set, if not set then `style` will be added to make it 20px (manually adjust to a `className` if you can)
|
|
113
|
+
- `SpinnerIcon` becomes `LoadingSpinner`
|
|
114
|
+
- `aria-label` will be replaced with `accessibilityLabel` (with a fallback value of `"Loading"`)
|
|
115
|
+
- `role` will be removed
|
|
116
|
+
- `viewBox` will be removed
|
|
117
|
+
- All other Icons become future `Icon`
|
|
118
|
+
- **Note:** See [Icon API Specification (Future)](https://cultureamp.design/?path=/docs/illustrations-icon-icon-future-api-specification--docs) for setup instructions
|
|
119
|
+
- Icons previously filled may become unfilled. This is intentional as filled icons should only be for active states or selection (see [Icon Usage Guidelines (Future)](https://cultureamp.design/?path=/docs/illustrations-icon-icon-future-usage-guidelines--docs#do-use-the-appropriate-fill-for-the-icon-context-and-state))
|
|
120
|
+
- `role="presentational"` becomes `isPresentational`
|
|
121
|
+
- `role="img"` will be removed (as `aria-label` should exist)
|
|
122
|
+
- `aria-label` becomes `alt`
|
|
123
|
+
- `classNameOverride` becomes `className`
|
|
124
|
+
- `inheritSize` will remain - however is no longer a valid prop, therefore will have a TypeScript error and will be prefixed with a comment to manually fix the usage
|
|
125
|
+
- `aria-hidden` becomes `isPresentational`
|
|
126
|
+
- `color` becomes an inline `style` (manually adjust to a `className` if you can)
|
|
127
|
+
- `fontSize` will be removed
|
|
128
|
+
- `height` and `width` become an inline `style` (manually adjust to a `className` if you can, ideally setting `--icon-size`)
|
|
129
|
+
- `viewBox` will be removed
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var i18nReactIntl = require('@cultureamp/i18n-react-intl');
|
|
5
6
|
var classnames = require('classnames');
|
|
6
7
|
var Heading = require('../../../Heading/Heading.cjs');
|
|
7
8
|
var Text = require('../../../Text/Text.cjs');
|
|
@@ -23,15 +24,22 @@ var GenericTile = function (_a) {
|
|
|
23
24
|
titleTag = _b === void 0 ? "h3" : _b,
|
|
24
25
|
metadata = _a.metadata,
|
|
25
26
|
information = _a.information,
|
|
27
|
+
infoButtonLabel = _a.infoButtonLabel,
|
|
26
28
|
mood = _a.mood,
|
|
27
29
|
_c = _a.variant,
|
|
28
30
|
variant = _c === void 0 ? "default" : _c,
|
|
29
31
|
footer = _a.footer,
|
|
30
32
|
classNameOverride = _a.classNameOverride,
|
|
31
|
-
restProps = tslib.__rest(_a, ["children", "title", "titleTag", "metadata", "information", "mood", "variant", "footer", "classNameOverride"]);
|
|
33
|
+
restProps = tslib.__rest(_a, ["children", "title", "titleTag", "metadata", "information", "infoButtonLabel", "mood", "variant", "footer", "classNameOverride"]);
|
|
32
34
|
var _d = React.useState(false),
|
|
33
35
|
isFlipped = _d[0],
|
|
34
36
|
setIsFlipped = _d[1];
|
|
37
|
+
var formatMessage = i18nReactIntl.useIntl().formatMessage;
|
|
38
|
+
var translatedInfoLabel = formatMessage({
|
|
39
|
+
id: "kzGenericTile.infoButtonLabel",
|
|
40
|
+
defaultMessage: "View more information:",
|
|
41
|
+
description: "Prompts user to interact with button to reveal more information"
|
|
42
|
+
});
|
|
35
43
|
var renderTitle = function () {
|
|
36
44
|
return React__default.default.createElement("div", {
|
|
37
45
|
className: GenericTile_module.title
|
|
@@ -51,7 +59,7 @@ var GenericTile = function (_a) {
|
|
|
51
59
|
}, information && React__default.default.createElement("div", {
|
|
52
60
|
className: GenericTile_module.informationBtn
|
|
53
61
|
}, React__default.default.createElement(IconButton.IconButton, {
|
|
54
|
-
label: "
|
|
62
|
+
label: infoButtonLabel || "".concat(translatedInfoLabel, " ").concat(title),
|
|
55
63
|
icon: React__default.default.createElement(Icon.Icon, {
|
|
56
64
|
name: "info",
|
|
57
65
|
isPresentational: true,
|
|
@@ -87,12 +95,17 @@ var GenericTile = function (_a) {
|
|
|
87
95
|
};
|
|
88
96
|
var renderBack = function () {
|
|
89
97
|
if (!information) return;
|
|
98
|
+
var returnButtonLabel = formatMessage({
|
|
99
|
+
id: "kzGenericTile.infoButtonReturnLabel",
|
|
100
|
+
defaultMessage: "Hide information:",
|
|
101
|
+
description: "Prompts user to interact with button to hide information"
|
|
102
|
+
});
|
|
90
103
|
return React__default.default.createElement("div", {
|
|
91
104
|
className: classnames__default.default(GenericTile_module.face, GenericTile_module.faceBack)
|
|
92
105
|
}, React__default.default.createElement("div", {
|
|
93
106
|
className: GenericTile_module.informationBtn
|
|
94
107
|
}, React__default.default.createElement(IconButton.IconButton, {
|
|
95
|
-
label: "
|
|
108
|
+
label: "".concat(returnButtonLabel, " ").concat(title),
|
|
96
109
|
icon: React__default.default.createElement(Icon.Icon, {
|
|
97
110
|
name: "arrow_back",
|
|
98
111
|
isPresentational: true
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
+
import { useIntl } from '@cultureamp/i18n-react-intl';
|
|
3
4
|
import classnames from 'classnames';
|
|
4
5
|
import { Heading } from '../../../Heading/Heading.mjs';
|
|
5
6
|
import { Text } from '../../../Text/Text.mjs';
|
|
@@ -15,15 +16,22 @@ const GenericTile = /*#__PURE__*/function () {
|
|
|
15
16
|
titleTag = _b === void 0 ? "h3" : _b,
|
|
16
17
|
metadata = _a.metadata,
|
|
17
18
|
information = _a.information,
|
|
19
|
+
infoButtonLabel = _a.infoButtonLabel,
|
|
18
20
|
mood = _a.mood,
|
|
19
21
|
_c = _a.variant,
|
|
20
22
|
variant = _c === void 0 ? "default" : _c,
|
|
21
23
|
footer = _a.footer,
|
|
22
24
|
classNameOverride = _a.classNameOverride,
|
|
23
|
-
restProps = __rest(_a, ["children", "title", "titleTag", "metadata", "information", "mood", "variant", "footer", "classNameOverride"]);
|
|
25
|
+
restProps = __rest(_a, ["children", "title", "titleTag", "metadata", "information", "infoButtonLabel", "mood", "variant", "footer", "classNameOverride"]);
|
|
24
26
|
var _d = useState(false),
|
|
25
27
|
isFlipped = _d[0],
|
|
26
28
|
setIsFlipped = _d[1];
|
|
29
|
+
var formatMessage = useIntl().formatMessage;
|
|
30
|
+
var translatedInfoLabel = formatMessage({
|
|
31
|
+
id: "kzGenericTile.infoButtonLabel",
|
|
32
|
+
defaultMessage: "View more information:",
|
|
33
|
+
description: "Prompts user to interact with button to reveal more information"
|
|
34
|
+
});
|
|
27
35
|
var renderTitle = function () {
|
|
28
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
37
|
className: styles.title
|
|
@@ -43,7 +51,7 @@ const GenericTile = /*#__PURE__*/function () {
|
|
|
43
51
|
}, information && ( /*#__PURE__*/React.createElement("div", {
|
|
44
52
|
className: styles.informationBtn
|
|
45
53
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
46
|
-
label: "
|
|
54
|
+
label: infoButtonLabel || "".concat(translatedInfoLabel, " ").concat(title),
|
|
47
55
|
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
48
56
|
name: "info",
|
|
49
57
|
isPresentational: true,
|
|
@@ -79,12 +87,17 @@ const GenericTile = /*#__PURE__*/function () {
|
|
|
79
87
|
};
|
|
80
88
|
var renderBack = function () {
|
|
81
89
|
if (!information) return;
|
|
90
|
+
var returnButtonLabel = formatMessage({
|
|
91
|
+
id: "kzGenericTile.infoButtonReturnLabel",
|
|
92
|
+
defaultMessage: "Hide information:",
|
|
93
|
+
description: "Prompts user to interact with button to hide information"
|
|
94
|
+
});
|
|
82
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
83
96
|
className: classnames(styles.face, styles.faceBack)
|
|
84
97
|
}, /*#__PURE__*/React.createElement("div", {
|
|
85
98
|
className: styles.informationBtn
|
|
86
99
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
87
|
-
label: "
|
|
100
|
+
label: "".concat(returnButtonLabel, " ").concat(title),
|
|
88
101
|
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
89
102
|
name: "arrow_back",
|
|
90
103
|
isPresentational: true
|
package/dist/styles.css
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
@layer tokens, normalize, reset;@layer tokens{:root{--theme-key:heart;--animation-easing-function-ease-in-out:cubic-bezier(0.455,0.03,0.515,0.955);--animation-easing-function-ease-in:cubic-bezier(0.55,0.085,0.68,0.53);--animation-easing-function-ease-out:cubic-bezier(0.25,0.46,0.45,0.94);--animation-easing-function-linear:linear;--animation-easing-function-bounce-in:cubic-bezier(0.485,0.155,0.24,1.245);--animation-easing-function-bounce-out:cubic-bezier(0.485,0.155,0.515,0.845);--animation-easing-function-bounce-in-out:cubic-bezier(0.76,-0.245,0.24,1.245);--animation-duration-instant:0ms;--animation-duration-immediate:100ms;--animation-duration-rapid:200ms;--animation-duration-fast:300ms;--animation-duration-slow:400ms;--animation-duration-deliberate:700ms;--border-solid-border-width:2px;--border-solid-border-radius:7px;--border-solid-border-style:solid;--border-solid-border-color:#e1e2ea;--border-solid-border-color-rgb:225,226,234;--border-dashed-border-width:2px;--border-dashed-border-radius:7px;--border-dashed-border-style:dashed;--border-borderless-border-width:2px;--border-borderless-border-radius:7px;--border-borderless-border-style:solid;--border-borderless-border-color:transparent;--border-borderless-border-color-rgb:0,0,0;--border-focus-ring-border-width:2px;--border-focus-ring-border-radius:10px;--border-focus-ring-border-style:solid;--border-width-1:1px;--color-purple-100:#f4edf8;--color-purple-100-rgb:244,237,248;--color-purple-200:#dfc9ea;--color-purple-200-rgb:223,201,234;--color-purple-300:#c9a5dd;--color-purple-300-rgb:201,165,221;--color-purple-400:#ae67b1;--color-purple-400-rgb:174,103,177;--color-purple-500:#844587;--color-purple-500-rgb:132,69,135;--color-purple-600:#5f3361;--color-purple-600-rgb:95,51,97;--color-purple-700:#4a234d;--color-purple-700-rgb:74,35,77;--color-purple-800:#2f2438;--color-purple-800-rgb:47,36,56;--color-blue-100:#e6f6ff;--color-blue-100-rgb:230,246,255;--color-blue-200:#bde2f5;--color-blue-200-rgb:189,226,245;--color-blue-300:#73c0e8;--color-blue-300-rgb:115,192,232;--color-blue-400:#008bd6;--color-blue-400-rgb:0,139,214;--color-blue-500:#0168b3;--color-blue-500-rgb:1,104,179;--color-blue-600:#004970;--color-blue-600-rgb:0,73,112;--color-blue-700:#003157;--color-blue-700-rgb:0,49,87;--color-green-100:#e8f8f4;--color-green-100-rgb:232,248,244;--color-green-200:#c4ede2;--color-green-200-rgb:196,237,226;--color-green-300:#8fdbc7;--color-green-300-rgb:143,219,199;--color-green-400:#5dcaad;--color-green-400-rgb:93,202,173;--color-green-500:#3f9a86;--color-green-500-rgb:63,154,134;--color-green-600:#2c7d67;--color-green-600-rgb:44,125,103;--color-green-700:#22594a;--color-green-700-rgb:34,89,74;--color-yellow-100:#fff9e4;--color-yellow-100-rgb:255,249,228;--color-yellow-200:#ffeeb3;--color-yellow-200-rgb:255,238,179;--color-yellow-300:#ffe36e;--color-yellow-300-rgb:255,227,110;--color-yellow-400:#ffca4d;--color-yellow-400-rgb:255,202,77;--color-yellow-500:#ffb600;--color-yellow-500-rgb:255,182,0;--color-yellow-600:#c68600;--color-yellow-600-rgb:198,134,0;--color-yellow-700:#876400;--color-yellow-700-rgb:135,100,0;--color-red-100:#fdeaee;--color-red-100-rgb:253,234,238;--color-red-200:#f9c2cb;--color-red-200-rgb:249,194,203;--color-red-300:#f597a8;--color-red-300-rgb:245,151,168;--color-red-400:#e0707d;--color-red-400-rgb:224,112,125;--color-red-500:#c93b55;--color-red-500-rgb:201,59,85;--color-red-600:#a82433;--color-red-600-rgb:168,36,51;--color-red-700:#6c1e20;--color-red-700-rgb:108,30,32;--color-orange-100:#fff0e8;--color-orange-100-rgb:255,240,232;--color-orange-200:#ffd1b9;--color-orange-200-rgb:255,209,185;--color-orange-300:#ffb08a;--color-orange-300-rgb:255,176,138;--color-orange-400:#ff9461;--color-orange-400-rgb:255,148,97;--color-orange-500:#e96c2f;--color-orange-500-rgb:233,108,47;--color-orange-600:#b74302;--color-orange-600-rgb:183,67,2;--color-orange-700:#903c00;--color-orange-700-rgb:144,60,0;--color-gray-100:#f9f9f9;--color-gray-100-rgb:249,249,249;--color-gray-200:#f4f4f5;--color-gray-200-rgb:244,244,245;--color-gray-300:#eaeaec;--color-gray-300-rgb:234,234,236;--color-gray-400:#cdcdd0;--color-gray-400-rgb:205,205,208;--color-gray-500:#878792;--color-gray-500-rgb:135,135,146;--color-gray-600:#524e56;--color-gray-600-rgb:82,78,86;--color-white:#fff;--color-white-rgb:255,255,255;--color-black:#000;--color-black-rgb:0,0,0;--data-viz-favorable:#7dd5bd;--data-viz-favorable-rgb:125,213,189;--data-viz-unfavorable:#e68d97;--data-viz-unfavorable-rgb:230,141,151;--layout-content-max-width:1392px;--layout-content-max-width-with-sidebar:1080px;--layout-content-side-margin:72px;--layout-mobile-actions-drawer-height:60px;--layout-navigation-bar-height:72px;--layout-breakpoints-medium:768px;--layout-breakpoints-large:1080px;--shadow-small-box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06);--shadow-large-box-shadow:0 3px 9px 0 rgba(0,0,0,.1),0 8px 40px 0 rgba(0,0,0,.08);--spacing-0:0;--spacing-1:.0625rem;--spacing-2:.125rem;--spacing-4:.25rem;--spacing-6:.375rem;--spacing-8:.5rem;--spacing-12:.75rem;--spacing-16:1rem;--spacing-20:1.25rem;--spacing-24:1.5rem;--spacing-32:2rem;--spacing-40:2.5rem;--spacing-48:3rem;--spacing-56:3.5rem;--spacing-64:4rem;--spacing-72:4.5rem;--spacing-80:5rem;--spacing-96:6rem;--spacing-112:7rem;--spacing-128:8rem;--spacing-160:10rem;--spacing-200:12.5rem;--spacing-240:15rem;--spacing-280:17.5rem;--spacing-320:20rem;--spacing-xs:0.375rem;--spacing-sm:0.75rem;--spacing-md:1.5rem;--spacing-lg:2.25rem;--spacing-xl:3rem;--spacing-xxl:3.75rem;--spacing-xxxl:4.5rem;--spacing-xxxxl:5.25rem;--spacing-xxxxxl:6rem;--typography-data-large-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-font-weight:700;--typography-data-large-font-size:5.25rem;--typography-data-large-line-height:5.25rem;--typography-data-large-letter-spacing:normal;--typography-data-large-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-units-font-weight:700;--typography-data-large-units-font-size:2.625rem;--typography-data-large-units-line-height:5.25rem;--typography-data-large-units-letter-spacing:normal;--typography-data-medium-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-font-weight:700;--typography-data-medium-font-size:3rem;--typography-data-medium-line-height:5rem;--typography-data-medium-letter-spacing:normal;--typography-data-medium-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-units-font-weight:700;--typography-data-medium-units-font-size:1.5rem;--typography-data-medium-units-line-height:5rem;--typography-data-medium-units-letter-spacing:normal;--typography-data-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-font-weight:700;--typography-data-small-font-size:1.5rem;--typography-data-small-line-height:1.5rem;--typography-data-small-letter-spacing:normal;--typography-data-small-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-units-font-weight:700;--typography-data-small-units-font-size:1.125rem;--typography-data-small-units-line-height:1.5rem;--typography-data-small-units-letter-spacing:normal;--typography-display-0-font-family:"Tiempos Headline",Georgia,serif;--typography-display-0-font-weight:800;--typography-display-0-font-size:4.5rem;--typography-display-0-line-height:5.25rem;--typography-display-0-letter-spacing:0em;--typography-heading-1-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-1-font-weight:500;--typography-heading-1-font-size:2.125rem;--typography-heading-1-line-height:2.625rem;--typography-heading-1-letter-spacing:normal;--typography-heading-2-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-2-font-weight:600;--typography-heading-2-font-size:1.75rem;--typography-heading-2-line-height:2.25rem;--typography-heading-2-letter-spacing:normal;--typography-heading-3-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-3-font-weight:600;--typography-heading-3-font-size:1.375rem;--typography-heading-3-line-height:1.875rem;--typography-heading-3-letter-spacing:normal;--typography-heading-4-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-4-font-weight:600;--typography-heading-4-font-size:1.125rem;--typography-heading-4-line-height:1.5rem;--typography-heading-4-letter-spacing:normal;--typography-heading-5-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-5-font-weight:600;--typography-heading-5-font-size:1rem;--typography-heading-5-line-height:1.5rem;--typography-heading-5-letter-spacing:normal;--typography-heading-6-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-6-font-weight:600;--typography-heading-6-font-size:0.875rem;--typography-heading-6-line-height:1.5rem;--typography-heading-6-letter-spacing:normal;--typography-paragraph-intro-lede-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-intro-lede-font-weight:400;--typography-paragraph-intro-lede-font-size:1.25rem;--typography-paragraph-intro-lede-line-height:1.875rem;--typography-paragraph-intro-lede-letter-spacing:0;--typography-paragraph-intro-lede-max-width:975px;--typography-paragraph-body-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-body-font-weight:400;--typography-paragraph-body-font-size:1rem;--typography-paragraph-body-line-height:1.5rem;--typography-paragraph-body-letter-spacing:normal;--typography-paragraph-body-max-width:780px;--typography-paragraph-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-small-font-weight:400;--typography-paragraph-small-font-size:0.875rem;--typography-paragraph-small-line-height:1.125rem;--typography-paragraph-small-letter-spacing:normal;--typography-paragraph-small-max-width:680px;--typography-paragraph-extra-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-extra-small-font-weight:400;--typography-paragraph-extra-small-font-size:0.75rem;--typography-paragraph-extra-small-line-height:1.125rem;--typography-paragraph-extra-small-letter-spacing:normal;--typography-paragraph-extra-small-max-width:600px;--typography-paragraph-bold-font-weight:600;--typography-button-primary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-primary-font-weight:500;--typography-button-primary-font-size:1.125rem;--typography-button-primary-line-height:1.5rem;--typography-button-primary-letter-spacing:normal;--typography-button-secondary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-secondary-font-weight:500;--typography-button-secondary-font-size:1rem;--typography-button-secondary-line-height:1.5rem;--typography-button-secondary-letter-spacing:normal}}@layer normalize{html{text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}}@layer reset{@font-face{font-family:Tiempos Headline;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff)}@font-face{font-family:Tiempos Headline;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff)}@font-face{font-family:Greycliff CF;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-light.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-regular.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-medium.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-demi-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-extra-bold.woff) format("woff")}@font-face{font-family:Inter;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff)}@font-face{font-family:Inter;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff)}@font-face{font-family:Inter;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff)}@font-face{font-family:Inter;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff)}@font-face{font-family:Inter;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff)}@font-face{font-family:Inter;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff)}@font-face{font-family:IBM Plex Mono;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff)}}@layer reset{*,:after,:before{border-color:var(--border-solid-border-color,"currentColor");border-style:solid;border-width:0}}
|
|
2
|
-
.Menu-module_menu__AowD8 {
|
|
3
|
-
background-color: var(--color-white);
|
|
4
|
-
color: var(--color-purple-800);
|
|
5
|
-
width: 248px;
|
|
6
|
-
max-height: 22rem;
|
|
7
|
-
overflow: auto;
|
|
8
|
-
padding-block: var(--spacing-6);
|
|
9
|
-
outline: none;
|
|
10
|
-
border-radius: var(--border-solid-border-radius);
|
|
11
|
-
box-shadow: var(--shadow-large-box-shadow);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.Menu-module_menu__AowD8 .react-aria-Header {
|
|
15
|
-
font-family: var(--typography-heading-6-font-family);
|
|
16
|
-
font-size: var(--typography-heading-6-font-size);
|
|
17
|
-
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
18
|
-
font-weight: var(--typography-heading-6-font-weight);
|
|
19
|
-
line-height: var(--typography-heading-6-line-height);
|
|
20
|
-
padding: var(--spacing-6) 10px;
|
|
21
|
-
margin-inline: var(--spacing-6);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.Menu-module_menu__AowD8 section:not(:last-of-type) {
|
|
25
|
-
&::after {
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 1px;
|
|
28
|
-
background-color: var(--border-solid-border-color);
|
|
29
|
-
content: "";
|
|
30
|
-
display: block;
|
|
31
|
-
margin-block: var(--spacing-6);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
2
|
.Button-module_button__vlUCI {
|
|
36
3
|
/* RESET */
|
|
37
4
|
appearance: none;
|
|
@@ -297,17 +264,58 @@
|
|
|
297
264
|
align-items: center;
|
|
298
265
|
}
|
|
299
266
|
|
|
300
|
-
.MenuItem-module_item__uImZI
|
|
267
|
+
.MenuItem-module_item__uImZI:focus {
|
|
268
|
+
outline: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.MenuItem-module_item__uImZI[data-hovered],
|
|
272
|
+
.MenuItem-module_item__uImZI[data-focus-visible] {
|
|
301
273
|
background-color: var(--color-blue-100);
|
|
302
274
|
color: var(--color-blue-500);
|
|
303
|
-
|
|
304
|
-
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.MenuItem-module_item__uImZI[data-focus-visible] {
|
|
278
|
+
outline: var(--border-focus-ring-border-width)
|
|
279
|
+
var(--border-focus-ring-border-style) var(--color-blue-500);
|
|
305
280
|
}
|
|
306
281
|
|
|
307
282
|
.MenuItem-module_item__uImZI[data-disabled] {
|
|
308
283
|
opacity: 0.3;
|
|
309
284
|
}
|
|
310
285
|
|
|
286
|
+
.Menu-module_menu__AowD8 {
|
|
287
|
+
background-color: var(--color-white);
|
|
288
|
+
color: var(--color-purple-800);
|
|
289
|
+
width: 248px;
|
|
290
|
+
max-height: 22rem;
|
|
291
|
+
overflow: auto;
|
|
292
|
+
padding-block: var(--spacing-6);
|
|
293
|
+
outline: none;
|
|
294
|
+
border-radius: var(--border-solid-border-radius);
|
|
295
|
+
box-shadow: var(--shadow-large-box-shadow);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.Menu-module_menu__AowD8 .react-aria-Header {
|
|
299
|
+
font-family: var(--typography-heading-6-font-family);
|
|
300
|
+
font-size: var(--typography-heading-6-font-size);
|
|
301
|
+
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
302
|
+
font-weight: var(--typography-heading-6-font-weight);
|
|
303
|
+
line-height: var(--typography-heading-6-line-height);
|
|
304
|
+
padding: var(--spacing-6) 10px;
|
|
305
|
+
margin-inline: var(--spacing-6);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.Menu-module_menu__AowD8 section:not(:last-of-type) {
|
|
309
|
+
&::after {
|
|
310
|
+
width: 100%;
|
|
311
|
+
height: 1px;
|
|
312
|
+
background-color: var(--border-solid-border-color);
|
|
313
|
+
content: "";
|
|
314
|
+
display: block;
|
|
315
|
+
margin-block: var(--spacing-6);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
311
319
|
.PendingContent-module_pendingContent__c4IFS {
|
|
312
320
|
display: inline-flex;
|
|
313
321
|
align-items: center;
|
|
@@ -345,9 +353,6 @@
|
|
|
345
353
|
align-items: center;
|
|
346
354
|
}
|
|
347
355
|
|
|
348
|
-
.Focusable-module_focusableWrapper__NfuIi {
|
|
349
|
-
display: inline-flex;
|
|
350
|
-
}
|
|
351
356
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
352
357
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
353
358
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -404,6 +409,9 @@
|
|
|
404
409
|
opacity: 1;
|
|
405
410
|
}
|
|
406
411
|
}
|
|
412
|
+
.Focusable-module_focusableWrapper__NfuIi {
|
|
413
|
+
display: inline-flex;
|
|
414
|
+
}
|
|
407
415
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
408
416
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
409
417
|
.OverlayArrow-module_overlayArrow__hoDyK {
|
|
@@ -14,6 +14,8 @@ export type GenericTileProps = {
|
|
|
14
14
|
titleTag?: AllowedHeadingTags;
|
|
15
15
|
metadata?: string;
|
|
16
16
|
information?: TileInformation | React.ReactNode;
|
|
17
|
+
/** Provides accessible label for the title's info button @default "View more information: [title]" */
|
|
18
|
+
infoButtonLabel?: string;
|
|
17
19
|
/** @deprecated Use `variant` instead */
|
|
18
20
|
mood?: "positive" | "informative" | "cautionary" | "assertive" | "negative" | "prominent";
|
|
19
21
|
/**
|
|
@@ -26,6 +28,6 @@ export type GenericTileProps = {
|
|
|
26
28
|
footer: React.ReactNode;
|
|
27
29
|
} & OverrideClassName<Omit<HTMLAttributes<HTMLDivElement>, "title">>;
|
|
28
30
|
export declare const GenericTile: {
|
|
29
|
-
({ children, title, titleTag, metadata, information, mood, variant, footer, classNameOverride, ...restProps }: GenericTileProps): JSX.Element;
|
|
31
|
+
({ children, title, titleTag, metadata, information, infoButtonLabel, mood, variant, footer, classNameOverride, ...restProps }: GenericTileProps): JSX.Element;
|
|
30
32
|
displayName: string;
|
|
31
33
|
};
|
package/locales/en.json
CHANGED
|
@@ -165,6 +165,14 @@
|
|
|
165
165
|
"description": "Home button label",
|
|
166
166
|
"message": "Go to Home"
|
|
167
167
|
},
|
|
168
|
+
"kzGenericTile.infoButtonLabel": {
|
|
169
|
+
"description": "Prompts user to interact with button to reveal more information",
|
|
170
|
+
"message": "View more information:"
|
|
171
|
+
},
|
|
172
|
+
"kzGenericTile.infoButtonReturnLabel": {
|
|
173
|
+
"description": "Prompts user to interact with button to hide information",
|
|
174
|
+
"message": "Hide information:"
|
|
175
|
+
},
|
|
168
176
|
"splitButton.dropdownButton.label": {
|
|
169
177
|
"description": "Label for a dropdown menu holding additional actions",
|
|
170
178
|
"message": "Additional actions"
|
package/package.json
CHANGED
|
@@ -71,39 +71,37 @@ const ROWS: Array<{ title: string; size: AvatarSizes }> = [
|
|
|
71
71
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
72
72
|
render: ({ isReversed }) => (
|
|
73
73
|
<>
|
|
74
|
-
<StickerSheet
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
))}
|
|
92
|
-
</StickerSheet.Body>
|
|
74
|
+
<StickerSheet
|
|
75
|
+
isReversed={isReversed}
|
|
76
|
+
headers={[
|
|
77
|
+
"Photo Personal",
|
|
78
|
+
"Initials Personal",
|
|
79
|
+
"Initials Generic",
|
|
80
|
+
"Default User",
|
|
81
|
+
]}
|
|
82
|
+
>
|
|
83
|
+
{ROWS.map(({ title, size }) => (
|
|
84
|
+
<StickerSheet.Row key={title} header={title}>
|
|
85
|
+
<Avatar {...PROPS_PHOTO_PERSONAL} size={size} />
|
|
86
|
+
<Avatar {...PROPS_INITIALS_PERSONAL} size={size} />
|
|
87
|
+
<Avatar {...PROPS_INITIALS_GENERIC} size={size} />
|
|
88
|
+
<Avatar {...PROPS_INITIALS_GENERIC} disableInitials size={size} />
|
|
89
|
+
</StickerSheet.Row>
|
|
90
|
+
))}
|
|
93
91
|
</StickerSheet>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
92
|
+
|
|
93
|
+
<StickerSheet
|
|
94
|
+
isReversed={isReversed}
|
|
95
|
+
headers={["Initials Unicode", "Initials Long", "Company Avatar"]}
|
|
96
|
+
className="mt-64"
|
|
97
|
+
>
|
|
98
|
+
{ROWS.map(({ title, size }) => (
|
|
99
|
+
<StickerSheet.Row key={title} header={title}>
|
|
100
|
+
<Avatar {...PROPS_INITIALS_UNICODE} size={size} />
|
|
101
|
+
<Avatar {...PROPS_INITIALS_LONG} size={size} />
|
|
102
|
+
<Avatar {...PROPS_COMPANY} size={size} />
|
|
103
|
+
</StickerSheet.Row>
|
|
104
|
+
))}
|
|
107
105
|
</StickerSheet>
|
|
108
106
|
</>
|
|
109
107
|
),
|
|
@@ -23,22 +23,20 @@ const ROWS: Array<{ title: string; size: AvatarGroupSize }> = [
|
|
|
23
23
|
|
|
24
24
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
25
25
|
render: ({ isReversed }) => (
|
|
26
|
-
<StickerSheet
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
))}
|
|
41
|
-
</StickerSheet.Body>
|
|
26
|
+
<StickerSheet
|
|
27
|
+
isReversed={isReversed}
|
|
28
|
+
headers={["With counter", "Without counter"]}
|
|
29
|
+
>
|
|
30
|
+
{ROWS.map(({ title, size }) => (
|
|
31
|
+
<StickerSheet.Row key={title} header={title}>
|
|
32
|
+
<AvatarGroup maxVisible={2} avatars={AVATARS} size={size} />
|
|
33
|
+
<AvatarGroup
|
|
34
|
+
maxVisible={2}
|
|
35
|
+
avatars={[EXAMPLE_USER_1, EXAMPLE_USER_2]}
|
|
36
|
+
size={size}
|
|
37
|
+
/>
|
|
38
|
+
</StickerSheet.Row>
|
|
39
|
+
))}
|
|
42
40
|
</StickerSheet>
|
|
43
41
|
),
|
|
44
42
|
}
|
|
@@ -16,28 +16,28 @@ export default {
|
|
|
16
16
|
|
|
17
17
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
18
18
|
render: ({ isReversed }) => (
|
|
19
|
-
<StickerSheet
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</StickerSheet.
|
|
19
|
+
<StickerSheet
|
|
20
|
+
isReversed={isReversed}
|
|
21
|
+
headers={["Default", "Active", "Dot"]}
|
|
22
|
+
>
|
|
23
|
+
<StickerSheet.Row header="Small">
|
|
24
|
+
<Badge size="small" variant="default" reversed={isReversed}>
|
|
25
|
+
3
|
|
26
|
+
</Badge>
|
|
27
|
+
<Badge size="small" variant="active" reversed={isReversed}>
|
|
28
|
+
3
|
|
29
|
+
</Badge>
|
|
30
|
+
<Badge size="small" variant="dot" reversed={isReversed} />
|
|
31
|
+
</StickerSheet.Row>
|
|
32
|
+
<StickerSheet.Row header="Large">
|
|
33
|
+
<Badge size="large" variant="default" reversed={isReversed}>
|
|
34
|
+
3
|
|
35
|
+
</Badge>
|
|
36
|
+
<Badge size="large" variant="active" reversed={isReversed}>
|
|
37
|
+
3
|
|
38
|
+
</Badge>
|
|
39
|
+
<Badge size="large" variant="dot" reversed={isReversed} />
|
|
40
|
+
</StickerSheet.Row>
|
|
41
41
|
</StickerSheet>
|
|
42
42
|
),
|
|
43
43
|
}
|