@kaizen/components 2.4.0 → 3.0.0
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/dist/cjs/src/Button/Button.cjs +2 -4
- package/dist/cjs/src/GuidanceBlock/GuidanceBlock.cjs +16 -82
- package/dist/cjs/src/GuidanceBlock/GuidanceBlock.module.css.cjs +0 -1
- package/dist/cjs/src/Heading/Heading.cjs +1 -1
- package/dist/cjs/src/Heading/Heading.module.css.cjs +22 -0
- package/dist/cjs/src/Label/Label.cjs +1 -1
- package/dist/cjs/src/Label/Label.module.css.cjs +16 -0
- package/dist/cjs/src/LabelledMessage/LabelledMessage.cjs +1 -1
- package/dist/cjs/src/LabelledMessage/LabelledMessage.module.css.cjs +7 -0
- package/dist/cjs/src/LinkButton/LinkButton.cjs +2 -4
- package/dist/cjs/src/Modal/ConfirmationModal/ConfirmationModal.cjs +3 -2
- package/dist/cjs/src/Modal/ContextModal/ContextModal.cjs +0 -1
- package/dist/cjs/src/Modal/GenericModal/GenericModal.cjs +2 -2
- package/dist/cjs/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +3 -6
- package/dist/cjs/src/Notification/InlineNotification/InlineNotification.cjs +1 -1
- package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +1 -1
- package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.cjs → ToastNotificationsList.module.css.cjs} +1 -1
- package/dist/cjs/src/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
- package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.cjs +1 -1
- package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.cjs +29 -0
- package/dist/cjs/src/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +1 -1
- package/dist/cjs/src/Select/Select.cjs +23 -22
- package/dist/cjs/src/Select/Select.module.scss.cjs +0 -1
- package/dist/cjs/src/SingleSelect/SingleSelect.cjs +12 -19
- package/dist/cjs/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.cjs +3 -5
- package/dist/cjs/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss.cjs +0 -1
- package/dist/cjs/src/Text/Text.cjs +1 -1
- package/dist/cjs/src/Text/Text.module.css.cjs +16 -0
- package/dist/cjs/src/TimeField/TimeField.cjs +2 -3
- package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +1 -1
- package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.cjs +13 -0
- package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +1 -1
- package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.cjs +9 -0
- package/dist/cjs/src/Tooltip/OverlayArrow.cjs +1 -1
- package/dist/cjs/src/Tooltip/OverlayArrow.module.css.cjs +7 -0
- package/dist/cjs/src/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/src/Tooltip/Tooltip.module.css.cjs +7 -0
- package/dist/esm/src/Button/Button.mjs +2 -4
- package/dist/esm/src/GuidanceBlock/GuidanceBlock.mjs +18 -84
- package/dist/esm/src/GuidanceBlock/GuidanceBlock.module.css.mjs +0 -1
- package/dist/esm/src/Heading/Heading.mjs +1 -1
- package/dist/esm/src/Heading/Heading.module.css.mjs +20 -0
- package/dist/esm/src/Label/Label.mjs +1 -1
- package/dist/esm/src/Label/Label.module.css.mjs +14 -0
- package/dist/esm/src/LabelledMessage/LabelledMessage.mjs +1 -1
- package/dist/esm/src/LabelledMessage/LabelledMessage.module.css.mjs +5 -0
- package/dist/esm/src/LinkButton/LinkButton.mjs +2 -4
- package/dist/esm/src/Modal/ConfirmationModal/ConfirmationModal.mjs +3 -2
- package/dist/esm/src/Modal/ContextModal/ContextModal.mjs +0 -1
- package/dist/esm/src/Modal/GenericModal/GenericModal.mjs +2 -2
- package/dist/esm/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +3 -6
- package/dist/esm/src/Notification/InlineNotification/InlineNotification.mjs +1 -1
- package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +1 -1
- package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.mjs → ToastNotificationsList.module.css.mjs} +1 -1
- package/dist/esm/src/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
- package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.mjs +1 -1
- package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.mjs +27 -0
- package/dist/esm/src/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +1 -1
- package/dist/esm/src/Select/Select.mjs +23 -22
- package/dist/esm/src/Select/Select.module.scss.mjs +0 -1
- package/dist/esm/src/SingleSelect/SingleSelect.mjs +12 -19
- package/dist/esm/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.mjs +3 -5
- package/dist/esm/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss.mjs +0 -1
- package/dist/esm/src/Text/Text.mjs +1 -1
- package/dist/esm/src/Text/Text.module.css.mjs +14 -0
- package/dist/esm/src/TimeField/TimeField.mjs +2 -3
- package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +1 -1
- package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.mjs +11 -0
- package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +1 -1
- package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.mjs +7 -0
- package/dist/esm/src/Tooltip/OverlayArrow.mjs +1 -1
- package/dist/esm/src/Tooltip/OverlayArrow.module.css.mjs +5 -0
- package/dist/esm/src/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/src/Tooltip/Tooltip.module.css.mjs +5 -0
- package/dist/styles.css +725 -613
- package/dist/types/Button/Button.d.ts +0 -5
- package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +2 -1
- package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +2 -1
- package/dist/types/Calendar/types.d.ts +1 -0
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +1 -26
- package/dist/types/Input/Input/Input.d.ts +1 -6
- package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +1 -5
- package/dist/types/Select/Select.d.ts +3 -13
- package/dist/types/SingleSelect/SingleSelect.d.ts +2 -24
- package/dist/types/SingleSelect/subcomponents/SelectToggle/SelectToggle.d.ts +2 -12
- package/dist/types/TextArea/TextArea.d.ts +1 -6
- package/dist/types/TimeField/TimeField.d.ts +1 -1
- package/locales/ar.json +4 -0
- package/locales/bg.json +4 -0
- package/locales/cs.json +4 -0
- package/locales/cy.json +4 -0
- package/locales/da.json +4 -0
- package/locales/de.json +4 -0
- package/locales/el.json +4 -0
- package/locales/en-GB.json +4 -0
- package/locales/en.json +4 -0
- package/locales/es-419.json +4 -0
- package/locales/es.json +4 -0
- package/locales/et.json +4 -0
- package/locales/fi.json +4 -0
- package/locales/fr-CA.json +4 -0
- package/locales/fr.json +4 -0
- package/locales/he.json +4 -0
- package/locales/hi.json +4 -0
- package/locales/ht.json +4 -0
- package/locales/hu.json +4 -0
- package/locales/id.json +4 -0
- package/locales/it.json +4 -0
- package/locales/ja.json +4 -0
- package/locales/km-KH.json +4 -0
- package/locales/ko.json +4 -0
- package/locales/lt.json +4 -0
- package/locales/lv.json +4 -0
- package/locales/mi.json +4 -0
- package/locales/ms.json +4 -0
- package/locales/nb.json +4 -0
- package/locales/nl.json +4 -0
- package/locales/pl.json +4 -0
- package/locales/pt-BR.json +4 -0
- package/locales/pt.json +4 -0
- package/locales/ro.json +4 -0
- package/locales/ru.json +4 -0
- package/locales/si-LK.json +4 -0
- package/locales/sk.json +4 -0
- package/locales/sr.json +4 -0
- package/locales/sv.json +4 -0
- package/locales/th.json +4 -0
- package/locales/tl.json +4 -0
- package/locales/tr.json +4 -0
- package/locales/uk.json +4 -0
- package/locales/vi.json +4 -0
- package/locales/zh-TW.json +4 -0
- package/locales/zh.json +4 -0
- package/package.json +1 -2
- package/src/Button/Button.tsx +1 -8
- package/src/Button/_docs/Button--api-specification.mdx +0 -1
- package/src/Calendar/CalendarRange/CalendarRange.tsx +4 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +4 -1
- package/src/Calendar/types.ts +18 -0
- package/src/GuidanceBlock/GuidanceBlock.module.css +0 -8
- package/src/GuidanceBlock/GuidanceBlock.spec.tsx +1 -26
- package/src/GuidanceBlock/GuidanceBlock.tsx +2 -112
- package/src/GuidanceBlock/_docs/GuidanceBlock.stories.tsx +0 -90
- package/src/Heading/Heading.module.css +111 -0
- package/src/Heading/Heading.tsx +1 -1
- package/src/Input/Input/Input.module.scss +0 -31
- package/src/Input/Input/Input.tsx +1 -6
- package/src/Label/Label.module.css +97 -0
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_docs/Label.stickersheet.stories.tsx +9 -4
- package/src/LabelledMessage/{LabelledMessage.module.scss → LabelledMessage.module.css} +1 -3
- package/src/LabelledMessage/LabelledMessage.tsx +1 -1
- package/src/LinkButton/LinkButton.tsx +1 -3
- package/src/LinkButton/_docs/LinkButton--api-specification.mdx +0 -1
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +7 -6
- package/src/Modal/ContextModal/ContextModal.tsx +0 -1
- package/src/Modal/GenericModal/GenericModal.tsx +3 -4
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +2 -8
- package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
- package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +1 -1
- package/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss → ToastNotificationsList.module.css} +6 -8
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +1 -1
- package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +1 -1
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css +392 -0
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
- package/src/Notification/subcomponents/NotificationHeading/NotificationHeading.tsx +1 -1
- package/src/Select/Select.module.scss +0 -16
- package/src/Select/Select.tsx +24 -25
- package/src/SingleSelect/SingleSelect.tsx +1 -14
- package/src/SingleSelect/_docs/SingleSelect.stories.tsx +5 -2
- package/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss +0 -8
- package/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.tsx +2 -9
- package/src/Text/Text.module.css +71 -0
- package/src/Text/Text.tsx +1 -1
- package/src/TextArea/TextArea.tsx +1 -6
- package/src/TimeField/TimeField.tsx +2 -9
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css +141 -0
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
- package/src/ToggleSwitch/ToggleSwitchField/{ToggleSwitchField.module.scss → ToggleSwitchField.module.css} +1 -3
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.tsx +1 -1
- package/src/Tooltip/OverlayArrow.module.css +45 -0
- package/src/Tooltip/OverlayArrow.tsx +1 -1
- package/src/Tooltip/Tooltip.module.css +62 -0
- package/src/Tooltip/Tooltip.tsx +1 -1
- package/dist/cjs/src/Heading/Heading.module.scss.cjs +0 -22
- package/dist/cjs/src/Label/Label.module.scss.cjs +0 -15
- package/dist/cjs/src/LabelledMessage/LabelledMessage.module.scss.cjs +0 -7
- package/dist/cjs/src/Modal/util/console.cjs +0 -16
- package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.cjs +0 -29
- package/dist/cjs/src/Text/Text.module.scss.cjs +0 -16
- package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.cjs +0 -13
- package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.cjs +0 -9
- package/dist/cjs/src/Tooltip/OverlayArrow.module.scss.cjs +0 -7
- package/dist/cjs/src/Tooltip/Tooltip.module.scss.cjs +0 -7
- package/dist/esm/src/Heading/Heading.module.scss.mjs +0 -20
- package/dist/esm/src/Label/Label.module.scss.mjs +0 -13
- package/dist/esm/src/LabelledMessage/LabelledMessage.module.scss.mjs +0 -5
- package/dist/esm/src/Modal/util/console.mjs +0 -13
- package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.mjs +0 -27
- package/dist/esm/src/Text/Text.module.scss.mjs +0 -14
- package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.mjs +0 -11
- package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.mjs +0 -7
- package/dist/esm/src/Tooltip/OverlayArrow.module.scss.mjs +0 -5
- package/dist/esm/src/Tooltip/Tooltip.module.scss.mjs +0 -5
- package/dist/types/Modal/util/console.d.ts +0 -5
- package/dist/types/utils/useResizeObserver.d.ts +0 -22
- package/src/Heading/Heading.module.scss +0 -115
- package/src/Label/Label.module.scss +0 -105
- package/src/Modal/util/console.ts +0 -13
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +0 -138
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +0 -366
- package/src/Text/Text.module.scss +0 -74
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -139
- package/src/Tooltip/OverlayArrow.module.scss +0 -45
- package/src/Tooltip/Tooltip.module.scss +0 -68
- package/src/utils/useResizeObserver.ts +0 -73
|
@@ -19,13 +19,11 @@ var SelectToggle = React__default.default.forwardRef(function (_a, ref) {
|
|
|
19
19
|
value = _a.value,
|
|
20
20
|
valueProps = _a.valueProps,
|
|
21
21
|
isOpen = _a.isOpen,
|
|
22
|
-
_b = _a.placeholder,
|
|
23
|
-
placeholder = _b === void 0 ? 'Select' : _b,
|
|
24
22
|
status = _a.status,
|
|
25
23
|
isDisabled = _a.isDisabled,
|
|
26
24
|
isReversed = _a.isReversed,
|
|
27
25
|
classNameOverride = _a.classNameOverride,
|
|
28
|
-
restProps = tslib.__rest(_a, ["label", "labelProps", "value", "valueProps", "isOpen", "
|
|
26
|
+
restProps = tslib.__rest(_a, ["label", "labelProps", "value", "valueProps", "isOpen", "status", "isDisabled", "isReversed", "classNameOverride"]);
|
|
29
27
|
return React__default.default.createElement("div", null, React__default.default.createElement(Label.Label, tslib.__assign({}, labelProps, {
|
|
30
28
|
reversed: isReversed,
|
|
31
29
|
disabled: isDisabled
|
|
@@ -36,10 +34,10 @@ var SelectToggle = React__default.default.forwardRef(function (_a, ref) {
|
|
|
36
34
|
role: "combobox"
|
|
37
35
|
}, restProps, {
|
|
38
36
|
ref: ref,
|
|
39
|
-
className: classnames__default.default(SelectToggle_module.selectToggle,
|
|
37
|
+
className: classnames__default.default(SelectToggle_module.selectToggle, status === 'error' && SelectToggle_module.error, status === 'caution' && SelectToggle_module.caution, isDisabled && SelectToggle_module.disabled, isReversed && SelectToggle_module.reversed, classNameOverride)
|
|
40
38
|
}), React__default.default.createElement("span", tslib.__assign({}, valueProps, {
|
|
41
39
|
className: SelectToggle_module.value
|
|
42
|
-
}), value
|
|
40
|
+
}), value), React__default.default.createElement(Icon.Icon, {
|
|
43
41
|
name: isOpen ? 'keyboard_arrow_up' : 'keyboard_arrow_down',
|
|
44
42
|
isPresentational: true,
|
|
45
43
|
className: SelectToggle_module.icon
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var styles = {
|
|
4
4
|
"icon": "SelectToggle-module_icon__rsV9A",
|
|
5
5
|
"selectToggle": "SelectToggle-module_selectToggle__e6slL",
|
|
6
|
-
"placeholder": "SelectToggle-module_placeholder__w7o7S",
|
|
7
6
|
"error": "SelectToggle-module_error__npEgr",
|
|
8
7
|
"caution": "SelectToggle-module_caution__9jSK0",
|
|
9
8
|
"disabled": "SelectToggle-module_disabled__2MKmF",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
var Text_module = require('./Text.module.
|
|
6
|
+
var Text_module = require('./Text.module.css.cjs');
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"text": "Text-module_text__3xRq3",
|
|
5
|
+
"intro-lede": "Text-module_intro-lede__Pf95y",
|
|
6
|
+
"body": "Text-module_body__o-QuI",
|
|
7
|
+
"small": "Text-module_small__d6k-f",
|
|
8
|
+
"extra-small": "Text-module_extra-small__jP3Xx",
|
|
9
|
+
"dark": "Text-module_dark__ApVTx",
|
|
10
|
+
"dark-reduced-opacity": "Text-module_dark-reduced-opacity__-ef8o",
|
|
11
|
+
"white": "Text-module_white__Vj0Na",
|
|
12
|
+
"white-reduced-opacity": "Text-module_white-reduced-opacity__kYl0h",
|
|
13
|
+
"positive": "Text-module_positive__ngZQ5",
|
|
14
|
+
"negative": "Text-module_negative__729Es"
|
|
15
|
+
};
|
|
16
|
+
module.exports = styles;
|
|
@@ -60,8 +60,7 @@ var TimeFieldComponent = function (_a) {
|
|
|
60
60
|
onChange: handleOnChange,
|
|
61
61
|
isDisabled: isDisabled,
|
|
62
62
|
hideTimeZone: true,
|
|
63
|
-
locale: locale
|
|
64
|
-
validationState: status === 'default' ? 'valid' : 'invalid'
|
|
63
|
+
locale: locale
|
|
65
64
|
}));
|
|
66
65
|
var hasError = !!validationMessage && status === 'error';
|
|
67
66
|
var descriptionId = hasError ? "".concat(id, "-field-message") : undefined;
|
|
@@ -84,7 +83,7 @@ var TimeFieldComponent = function (_a) {
|
|
|
84
83
|
}, React__default.default.createElement("div", tslib.__assign({}, fieldProps, {
|
|
85
84
|
id: id,
|
|
86
85
|
ref: inputRef,
|
|
87
|
-
className: classnames__default.default(TimeField_module.input, state.isDisabled && TimeField_module.isDisabled,
|
|
86
|
+
className: classnames__default.default(TimeField_module.input, state.isDisabled && TimeField_module.isDisabled, status === 'error' && TimeField_module.error)
|
|
88
87
|
}), state.segments.map(function (segment, i) {
|
|
89
88
|
return React__default.default.createElement(TimeSegment.TimeSegment, {
|
|
90
89
|
key: i,
|
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var Icon = require('../../Icon/Icon.cjs');
|
|
7
|
-
var ToggleSwitch_module = require('./ToggleSwitch.module.
|
|
7
|
+
var ToggleSwitch_module = require('./ToggleSwitch.module.css.cjs');
|
|
8
8
|
function _interopDefault(e) {
|
|
9
9
|
return e && e.__esModule ? e : {
|
|
10
10
|
default: e
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"checkbox": "ToggleSwitch-module_checkbox__NmNyg",
|
|
5
|
+
"track": "ToggleSwitch-module_track__Zvo6N",
|
|
6
|
+
"disabled": "ToggleSwitch-module_disabled__qntEm",
|
|
7
|
+
"thumb": "ToggleSwitch-module_thumb__YIdcS",
|
|
8
|
+
"checkIcon": "ToggleSwitch-module_checkIcon__J4eSM",
|
|
9
|
+
"on": "ToggleSwitch-module_on__-OJbU",
|
|
10
|
+
"off": "ToggleSwitch-module_off__e-dto",
|
|
11
|
+
"reversed": "ToggleSwitch-module_reversed__5Jz8i"
|
|
12
|
+
};
|
|
13
|
+
module.exports = styles;
|
|
@@ -6,7 +6,7 @@ var classnames = require('classnames');
|
|
|
6
6
|
var FieldGroup = require('../../FieldGroup/FieldGroup.cjs');
|
|
7
7
|
var Label = require('../../Label/Label.cjs');
|
|
8
8
|
var ToggleSwitch = require('../ToggleSwitch/ToggleSwitch.cjs');
|
|
9
|
-
var ToggleSwitchField_module = require('./ToggleSwitchField.module.
|
|
9
|
+
var ToggleSwitchField_module = require('./ToggleSwitchField.module.css.cjs');
|
|
10
10
|
function _interopDefault(e) {
|
|
11
11
|
return e && e.__esModule ? e : {
|
|
12
12
|
default: e
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"container": "ToggleSwitchField-module_container__6c4oG",
|
|
5
|
+
"fullWidth": "ToggleSwitchField-module_fullWidth__iGJSg",
|
|
6
|
+
"inner": "ToggleSwitchField-module_inner__k1hyg",
|
|
7
|
+
"on": "ToggleSwitchField-module_on__8RJfp"
|
|
8
|
+
};
|
|
9
|
+
module.exports = styles;
|
|
@@ -6,7 +6,7 @@ var reactAriaComponents = require('react-aria-components');
|
|
|
6
6
|
require('use-debounce');
|
|
7
7
|
var ReversedColors = require('../utils/ReversedColors/ReversedColors.cjs');
|
|
8
8
|
var mergeClassNames = require('../utils/mergeClassNames.cjs');
|
|
9
|
-
var OverlayArrow_module = require('./OverlayArrow.module.
|
|
9
|
+
var OverlayArrow_module = require('./OverlayArrow.module.css.cjs');
|
|
10
10
|
function _interopDefault(e) {
|
|
11
11
|
return e && e.__esModule ? e : {
|
|
12
12
|
default: e
|
|
@@ -8,7 +8,7 @@ require('use-debounce');
|
|
|
8
8
|
var ReversedColors = require('../utils/ReversedColors/ReversedColors.cjs');
|
|
9
9
|
var mergeClassNames = require('../utils/mergeClassNames.cjs');
|
|
10
10
|
var OverlayArrow = require('./OverlayArrow.cjs');
|
|
11
|
-
var Tooltip_module = require('./Tooltip.module.
|
|
11
|
+
var Tooltip_module = require('./Tooltip.module.css.cjs');
|
|
12
12
|
function _interopDefault(e) {
|
|
13
13
|
return e && e.__esModule ? e : {
|
|
14
14
|
default: e
|
|
@@ -26,10 +26,8 @@ const Button = /*#__PURE__*/function () {
|
|
|
26
26
|
_f = _a.hasHiddenPendingLabel,
|
|
27
27
|
propsHasHiddenPendingLabel = _f === void 0 ? false : _f,
|
|
28
28
|
pendingLabel = _a.pendingLabel,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var shouldUseReverse = useReversedColors();
|
|
32
|
-
var isReversedVariant = isReversed !== null && isReversed !== void 0 ? isReversed : shouldUseReverse;
|
|
29
|
+
restProps = __rest(_a, ["variant", "size", "className", "children", "isDisabled", "isFullWidth", "icon", "iconPosition", "hasHiddenLabel", "isPending", "hasHiddenPendingLabel", "pendingLabel"]);
|
|
30
|
+
var isReversedVariant = useReversedColors();
|
|
33
31
|
var pendingProps = isPending ? {
|
|
34
32
|
isPending: isPending,
|
|
35
33
|
hasHiddenPendingLabel: hasHiddenLabel || propsHasHiddenPendingLabel,
|
|
@@ -1,78 +1,34 @@
|
|
|
1
|
-
import { __rest
|
|
2
|
-
import React
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import { Button } from '../ButtonV1/Button/Button.mjs';
|
|
5
|
-
import '../ButtonV1/IconButton/IconButton.mjs';
|
|
6
4
|
import { Heading } from '../Heading/Heading.mjs';
|
|
7
|
-
import { Icon } from '../Icon/Icon.mjs';
|
|
8
5
|
import { Text } from '../Text/Text.mjs';
|
|
9
|
-
import { Tooltip } from '../TooltipV1/Tooltip.mjs';
|
|
10
6
|
import { useMediaQueries } from '../utils/useMediaQueries.mjs';
|
|
11
7
|
import styles from './GuidanceBlock.module.css.mjs';
|
|
12
|
-
|
|
13
|
-
var tooltipProps = _a.tooltipProps,
|
|
14
|
-
children = _a.children;
|
|
15
|
-
return tooltipProps ? /*#__PURE__*/React.createElement(Tooltip, __assign({}, tooltipProps), children) : /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
16
|
-
};
|
|
8
|
+
|
|
17
9
|
/**
|
|
18
10
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093807/Guidance+Block Guidance} |
|
|
19
11
|
* {@link https://cultureamp.design/?path=/docs/components-guidanceblock--docs Storybook}
|
|
20
12
|
*/
|
|
21
13
|
const GuidanceBlock = /*#__PURE__*/function () {
|
|
22
14
|
const GuidanceBlock = function (_a) {
|
|
23
|
-
var _b, _c, _d, _e
|
|
24
|
-
var
|
|
25
|
-
layout =
|
|
26
|
-
|
|
27
|
-
variant =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
_m = _a.smallScreenTextAlignment,
|
|
35
|
-
smallScreenTextAlignment = _m === void 0 ? 'center' : _m,
|
|
36
|
-
actions = _a.actions,
|
|
15
|
+
var _b, _c, _d, _e;
|
|
16
|
+
var _f = _a.layout,
|
|
17
|
+
layout = _f === void 0 ? 'default' : _f,
|
|
18
|
+
_g = _a.variant,
|
|
19
|
+
variant = _g === void 0 ? 'default' : _g,
|
|
20
|
+
_h = _a.noMaxWidth,
|
|
21
|
+
noMaxWidth = _h === void 0 ? false : _h,
|
|
22
|
+
_j = _a.illustrationType,
|
|
23
|
+
illustrationType = _j === void 0 ? 'spot' : _j,
|
|
24
|
+
_k = _a.smallScreenTextAlignment,
|
|
25
|
+
smallScreenTextAlignment = _k === void 0 ? 'center' : _k,
|
|
37
26
|
illustration = _a.illustration,
|
|
38
|
-
secondaryDismiss = _a.secondaryDismiss,
|
|
39
27
|
actionsSlot = _a.actionsSlot,
|
|
40
|
-
restProps = __rest(_a, ["layout", "variant", "
|
|
41
|
-
var _o = useState(false),
|
|
42
|
-
hidden = _o[0],
|
|
43
|
-
setHidden = _o[1];
|
|
44
|
-
var _p = useState(false),
|
|
45
|
-
removed = _p[0],
|
|
46
|
-
setRemoved = _p[1];
|
|
28
|
+
restProps = __rest(_a, ["layout", "variant", "noMaxWidth", "illustrationType", "smallScreenTextAlignment", "illustration", "actionsSlot"]);
|
|
47
29
|
var queries = useMediaQueries().queries;
|
|
48
|
-
var containerRef = /*#__PURE__*/React.createRef();
|
|
49
|
-
var handleDismissBanner = function () {
|
|
50
|
-
var _a;
|
|
51
|
-
setHidden(true);
|
|
52
|
-
(_a = actions === null || actions === void 0 ? void 0 : actions.dismiss) === null || _a === void 0 ? void 0 : _a.onClick();
|
|
53
|
-
};
|
|
54
|
-
var onTransitionEnd = function (e) {
|
|
55
|
-
// Be careful: this assumes the final CSS property to be animated is "margin-top".
|
|
56
|
-
if (hidden && e.propertyName === 'margin-top') {
|
|
57
|
-
setRemoved(true);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
var marginTop = function () {
|
|
61
|
-
if (hidden && containerRef.current) {
|
|
62
|
-
return -containerRef.current.clientHeight + 'px';
|
|
63
|
-
}
|
|
64
|
-
return '0';
|
|
65
|
-
};
|
|
66
|
-
if (removed) {
|
|
67
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
68
|
-
}
|
|
69
30
|
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: classnames(styles.banner, variant && styles[variant], layout && styles[layout],
|
|
71
|
-
style: {
|
|
72
|
-
marginTop: marginTop()
|
|
73
|
-
},
|
|
74
|
-
ref: containerRef,
|
|
75
|
-
onTransitionEnd: onTransitionEnd
|
|
31
|
+
className: classnames(styles.banner, variant && styles[variant], layout && styles[layout], queries.isSmall && styles.centerContent, noMaxWidth && styles.noMaxWidth, illustrationType === 'scene' && styles.hasSceneIllustration, smallScreenTextAlignment === 'left' && styles.smallScreenTextAlignment)
|
|
76
32
|
}, /*#__PURE__*/React.createElement("div", {
|
|
77
33
|
className: styles.illustrationWrapper
|
|
78
34
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -91,31 +47,9 @@ const GuidanceBlock = /*#__PURE__*/function () {
|
|
|
91
47
|
}, (_d = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _d === void 0 ? void 0 : _d.title)), /*#__PURE__*/React.createElement(Text, {
|
|
92
48
|
tag: "p",
|
|
93
49
|
variant: "body"
|
|
94
|
-
}, (_e = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _e === void 0 ? void 0 : _e.description)))),
|
|
50
|
+
}, (_e = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _e === void 0 ? void 0 : _e.description)))), actionsSlot && /*#__PURE__*/React.createElement("div", {
|
|
95
51
|
className: styles.buttonContainer
|
|
96
|
-
},
|
|
97
|
-
tooltipProps: actions.primary.tooltip
|
|
98
|
-
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
99
|
-
icon: withActionButtonArrow ? (/*#__PURE__*/React.createElement(Icon, {
|
|
100
|
-
name: "arrow_forward",
|
|
101
|
-
isPresentational: true,
|
|
102
|
-
shouldMirrorInRTL: true
|
|
103
|
-
})) : undefined,
|
|
104
|
-
iconPosition: "end"
|
|
105
|
-
}, actions.primary, {
|
|
106
|
-
fullWidth: queries.isSmall
|
|
107
|
-
}))), (actions === null || actions === void 0 ? void 0 : actions.secondary) && (/*#__PURE__*/React.createElement(WithTooltip, {
|
|
108
|
-
tooltipProps: actions.secondary.tooltip
|
|
109
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
110
|
-
className: styles.secondaryAction
|
|
111
|
-
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
112
|
-
secondary: true
|
|
113
|
-
}, actions.secondary, {
|
|
114
|
-
onClick: secondaryDismiss ? function () {
|
|
115
|
-
return handleDismissBanner();
|
|
116
|
-
} : (_f = actions === null || actions === void 0 ? void 0 : actions.secondary) === null || _f === void 0 ? void 0 : _f.onClick,
|
|
117
|
-
fullWidth: queries.isSmall
|
|
118
|
-
}))))))), !actions && actionsSlot && actionsSlot)) : null));
|
|
52
|
+
}, actionsSlot)));
|
|
119
53
|
};
|
|
120
54
|
GuidanceBlock.displayName = 'GuidanceBlock';
|
|
121
55
|
return GuidanceBlock;
|
|
@@ -7,7 +7,6 @@ var styles = {
|
|
|
7
7
|
"descriptionContainer": "GuidanceBlock-module_descriptionContainer__w1-P-",
|
|
8
8
|
"descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__aQhc9",
|
|
9
9
|
"buttonContainer": "GuidanceBlock-module_buttonContainer__bcVmB",
|
|
10
|
-
"hidden": "GuidanceBlock-module_hidden__mwvrs",
|
|
11
10
|
"headingWrapper": "GuidanceBlock-module_headingWrapper__OfZB5",
|
|
12
11
|
"default": "GuidanceBlock-module_default__7naG4",
|
|
13
12
|
"positive": "GuidanceBlock-module_positive__iCp-1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import { createElement } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import styles from './Heading.module.
|
|
4
|
+
import styles from './Heading.module.css.mjs';
|
|
5
5
|
var VARIANTS_24PX_OR_GREATER = ['display-0', 'heading-1', 'heading-2'];
|
|
6
6
|
/**
|
|
7
7
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3074885298/Typography#Headings Guidance}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"heading": "Heading-module_heading__6D0PM",
|
|
3
|
+
"display-0": "Heading-module_display-0__Dmiig",
|
|
4
|
+
"composable-header-title": "Heading-module_composable-header-title__CPBzk",
|
|
5
|
+
"heading-1": "Heading-module_heading-1__-GXEH",
|
|
6
|
+
"heading-2": "Heading-module_heading-2__LiRAV",
|
|
7
|
+
"heading-3": "Heading-module_heading-3__nVAgQ",
|
|
8
|
+
"heading-4": "Heading-module_heading-4__ESVT7",
|
|
9
|
+
"heading-5": "Heading-module_heading-5__zzZxI",
|
|
10
|
+
"heading-6": "Heading-module_heading-6__-JvYA",
|
|
11
|
+
"dark": "Heading-module_dark__vO-Uw",
|
|
12
|
+
"dark-reduced-opacity": "Heading-module_dark-reduced-opacity__24gWp",
|
|
13
|
+
"white": "Heading-module_white__AJgq4",
|
|
14
|
+
"white-reduced-opacity": "Heading-module_white-reduced-opacity__VvQaa",
|
|
15
|
+
"positive": "Heading-module_positive__GVkBf",
|
|
16
|
+
"small": "Heading-module_small__bALDR",
|
|
17
|
+
"large": "Heading-module_large__FLTyA",
|
|
18
|
+
"negative": "Heading-module_negative__exyNh"
|
|
19
|
+
};
|
|
20
|
+
export { styles as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import styles from './Label.module.
|
|
4
|
+
import styles from './Label.module.css.mjs';
|
|
5
5
|
const Label = /*#__PURE__*/function () {
|
|
6
6
|
const Label = function (_a) {
|
|
7
7
|
var children = _a.children,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"label": "Label-module_label__jvxMB",
|
|
3
|
+
"reversed": "Label-module_reversed__Qu7Kc",
|
|
4
|
+
"disabled": "Label-module_disabled__3Mej6",
|
|
5
|
+
"text": "Label-module_text__zkbHj",
|
|
6
|
+
"checkboxOrRadio": "Label-module_checkboxOrRadio__lzm9I",
|
|
7
|
+
"checkbox": "Label-module_checkbox__vtFpn",
|
|
8
|
+
"radio": "Label-module_radio__xenTn",
|
|
9
|
+
"toggle": "Label-module_toggle__prty7",
|
|
10
|
+
"prependedLabel": "Label-module_prependedLabel__XhXdP",
|
|
11
|
+
"appendedLabel": "Label-module_appendedLabel__vp5Uc",
|
|
12
|
+
"prominent": "Label-module_prominent__dW3K7"
|
|
13
|
+
};
|
|
14
|
+
export { styles as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import styles from './LabelledMessage.module.
|
|
4
|
+
import styles from './LabelledMessage.module.css.mjs';
|
|
5
5
|
const LabelledMessage = /*#__PURE__*/function () {
|
|
6
6
|
const LabelledMessage = function (_a) {
|
|
7
7
|
var label = _a.label,
|
|
@@ -30,10 +30,8 @@ const LinkButton = /*#__PURE__*/function () {
|
|
|
30
30
|
isFullWidth = _f === void 0 ? false : _f,
|
|
31
31
|
isDisabled = _a.isDisabled,
|
|
32
32
|
className = _a.className,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var shouldUseReverse = useReversedColors();
|
|
36
|
-
var isReversedVariant = isReversed !== null && isReversed !== void 0 ? isReversed : shouldUseReverse;
|
|
33
|
+
otherProps = __rest(_a, ["children", "variant", "size", "icon", "iconPosition", "hasHiddenLabel", "isFullWidth", "isDisabled", "className"]);
|
|
34
|
+
var isReversedVariant = useReversedColors();
|
|
37
35
|
return /*#__PURE__*/React.createElement(Link, __assign({
|
|
38
36
|
ref: ref,
|
|
39
37
|
className: mergeClassNames(styles.linkButton, buttonStyles.button, buttonStyles[size], hasHiddenLabel && buttonStyles["".concat(size, "IconButton")], isDisabled && buttonStyles.isDisabled, isReversedVariant ? buttonStyles["".concat(variant, "Reversed")] : buttonStyles[variant], isFullWidth && buttonStyles.fullWidth, className),
|
|
@@ -77,7 +77,9 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
77
77
|
if (onConfirm) {
|
|
78
78
|
var confirmAction = {
|
|
79
79
|
label: confirmLabel,
|
|
80
|
-
onClick: onConfirm
|
|
80
|
+
onClick: onConfirm,
|
|
81
|
+
destructive: variant === 'warning',
|
|
82
|
+
primary: variant !== 'warning'
|
|
81
83
|
};
|
|
82
84
|
var workingProps = confirmWorking ? {
|
|
83
85
|
working: true,
|
|
@@ -118,7 +120,6 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
118
120
|
className: classnames(isProminent && styles.prominent, !unpadded && styles.padded)
|
|
119
121
|
}, /*#__PURE__*/React.createElement(ModalAccessibleDescription, null, children))), /*#__PURE__*/React.createElement(ModalFooter, {
|
|
120
122
|
actions: footerActions,
|
|
121
|
-
appearance: variant == 'warning' ? 'destructive' : 'primary',
|
|
122
123
|
unpadded: unpadded
|
|
123
124
|
})));
|
|
124
125
|
};
|
|
@@ -4,7 +4,6 @@ import { Transition } from '@headlessui/react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { FocusOn } from 'react-focus-on';
|
|
6
6
|
import { useIsClientReady } from '../../utils/useIsClientReady/useIsClientReady.mjs';
|
|
7
|
-
import { warn } from '../util/console.mjs';
|
|
8
7
|
import { ModalContext } from './context/ModalContext.mjs';
|
|
9
8
|
import styles from './GenericModal.module.scss.mjs';
|
|
10
9
|
const GenericModal = /*#__PURE__*/function () {
|
|
@@ -42,7 +41,8 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
42
41
|
// Ensure that consumers have provided an element that labels the modal
|
|
43
42
|
// to meet ARIA accessibility guidelines.
|
|
44
43
|
if (!document.getElementById(labelledByID)) {
|
|
45
|
-
|
|
44
|
+
// eslint-disable-next-line no-console
|
|
45
|
+
console.warn('When using the Modal component, you must provide a label for the modal. Make sure you have a <ModalAccessibleLabel /> component with content that labels the modal.');
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
var focusOnAccessibleLabel = function () {
|
|
@@ -10,11 +10,9 @@ const ModalFooter = /*#__PURE__*/function () {
|
|
|
10
10
|
const ModalFooter = function (_a) {
|
|
11
11
|
var unpadded = _a.unpadded,
|
|
12
12
|
actions = _a.actions,
|
|
13
|
-
_b = _a.appearance,
|
|
14
|
-
appearance = _b === void 0 ? 'primary' : _b,
|
|
15
13
|
alignStart = _a.alignStart,
|
|
16
14
|
variant = _a.variant,
|
|
17
|
-
props = __rest(_a, ["unpadded", "actions", "
|
|
15
|
+
props = __rest(_a, ["unpadded", "actions", "alignStart", "variant"]);
|
|
18
16
|
var queries = useMediaQueries().queries;
|
|
19
17
|
return /*#__PURE__*/React.createElement(ModalBody, {
|
|
20
18
|
inputEdit: variant === 'inputEdit'
|
|
@@ -26,9 +24,8 @@ const ModalFooter = /*#__PURE__*/function () {
|
|
|
26
24
|
key: index
|
|
27
25
|
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
28
26
|
type: "button",
|
|
29
|
-
primary: index === 0 &&
|
|
30
|
-
|
|
31
|
-
secondary: index > 0,
|
|
27
|
+
primary: index === 0 && !action.destructive && !action.secondary,
|
|
28
|
+
secondary: index > 0 && !action.destructive && !action.primary,
|
|
32
29
|
fullWidth: queries.isSmall
|
|
33
30
|
}, action)));
|
|
34
31
|
})));
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { GenericNotification } from '../subcomponents/GenericNotification/GenericNotification.mjs';
|
|
5
|
-
import styles from '../subcomponents/GenericNotification/GenericNotification.module.
|
|
5
|
+
import styles from '../subcomponents/GenericNotification/GenericNotification.module.css.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093392/Inline+Notification Guidance} |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { useToastNotificationContext } from '../context/ToastNotificationContext.mjs';
|
|
3
3
|
import { ToastNotificationsMap } from './subcomponents/ToastNotificationsMap/ToastNotificationsMap.mjs';
|
|
4
|
-
import styles from './ToastNotificationsList.module.
|
|
4
|
+
import styles from './ToastNotificationsList.module.css.mjs';
|
|
5
5
|
var toastNotificationListId = 'toast-notifications-list';
|
|
6
6
|
const ToastNotificationsList = /*#__PURE__*/function () {
|
|
7
7
|
const ToastNotificationsList = function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Icon } from '../../../Icon/Icon.mjs';
|
|
3
|
-
import styles from '../GenericNotification/GenericNotification.module.
|
|
3
|
+
import styles from '../GenericNotification/GenericNotification.module.css.mjs';
|
|
4
4
|
const CancelButton = /*#__PURE__*/function () {
|
|
5
5
|
const CancelButton = function (_a) {
|
|
6
6
|
var onClick = _a.onClick;
|
|
@@ -5,7 +5,7 @@ import { isRefObject } from '../../../utils/isRefObject.mjs';
|
|
|
5
5
|
import { CancelButton } from '../CancelButton/CancelButton.mjs';
|
|
6
6
|
import { NotificationHeading } from '../NotificationHeading/NotificationHeading.mjs';
|
|
7
7
|
import { NotificationIconVariant } from '../NotificationIcon/NotificationIcon.mjs';
|
|
8
|
-
import styles from './GenericNotification.module.
|
|
8
|
+
import styles from './GenericNotification.module.css.mjs';
|
|
9
9
|
const GenericNotification = /*#__PURE__*/function () {
|
|
10
10
|
const GenericNotification = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
11
11
|
var variant = _a.variant,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"notification": "GenericNotification-module_notification__-lOMz",
|
|
3
|
+
"inline": "GenericNotification-module_inline__lnYb9",
|
|
4
|
+
"toast": "GenericNotification-module_toast__dPvtC",
|
|
5
|
+
"global": "GenericNotification-module_global__i1IKL",
|
|
6
|
+
"success": "GenericNotification-module_success__HMC7W",
|
|
7
|
+
"informative": "GenericNotification-module_informative__S4sGn",
|
|
8
|
+
"cautionary": "GenericNotification-module_cautionary__VMbSA",
|
|
9
|
+
"security": "GenericNotification-module_security__pdJT9",
|
|
10
|
+
"warning": "GenericNotification-module_warning__42AEX",
|
|
11
|
+
"hidden": "GenericNotification-module_hidden__QOpq1",
|
|
12
|
+
"icon": "GenericNotification-module_icon__rMIaU",
|
|
13
|
+
"textContainer": "GenericNotification-module_textContainer__yHSKi",
|
|
14
|
+
"forceMultiline": "GenericNotification-module_forceMultiline__SlLf9",
|
|
15
|
+
"title": "GenericNotification-module_title__3cvl6",
|
|
16
|
+
"notificationTitle": "GenericNotification-module_notificationTitle__-yijp",
|
|
17
|
+
"text": "GenericNotification-module_text__B5r5l",
|
|
18
|
+
"cancel": "GenericNotification-module_cancel__4O-Ys",
|
|
19
|
+
"disabled": "GenericNotification-module_disabled__V2Wyr",
|
|
20
|
+
"hover": "GenericNotification-module_hover__erovs",
|
|
21
|
+
"active": "GenericNotification-module_active__2ksOr",
|
|
22
|
+
"cancelLabel": "GenericNotification-module_cancelLabel__uLIuz",
|
|
23
|
+
"noBottomMargin": "GenericNotification-module_noBottomMargin__okqYr",
|
|
24
|
+
"persistent": "GenericNotification-module_persistent__y-Jp7",
|
|
25
|
+
"subtle": "GenericNotification-module_subtle__TCixZ"
|
|
26
|
+
};
|
|
27
|
+
export { styles as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Heading } from '../../../Heading/Heading.mjs';
|
|
3
|
-
import styles from '../GenericNotification/GenericNotification.module.
|
|
3
|
+
import styles from '../GenericNotification/GenericNotification.module.css.mjs';
|
|
4
4
|
const NotificationHeading = /*#__PURE__*/function () {
|
|
5
5
|
const NotificationHeading = function (_a) {
|
|
6
6
|
var _b, _c, _d;
|