@kaizen/components 1.67.20 → 1.67.22
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/EmptyState/EmptyState.cjs +15 -17
- package/dist/cjs/EmptyState/EmptyState.module.css.cjs +20 -0
- package/dist/esm/Calendar/CalendarPopover/CalendarPopover.mjs +1 -1
- package/dist/esm/EmptyState/EmptyState.mjs +16 -18
- package/dist/esm/EmptyState/EmptyState.module.css.mjs +18 -0
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.mjs +1 -1
- package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextEditor/schema.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/schema/nodes.mjs +1 -1
- package/dist/esm/TimeField/TimeField.mjs +1 -1
- package/dist/esm/__overlays__/Tooltip/v1/Tooltip.mjs +1 -1
- package/dist/styles.css +154 -225
- package/dist/types/EmptyState/EmptyState.d.ts +2 -1
- package/package.json +6 -6
- package/src/EmptyState/EmptyState.module.css +114 -0
- package/src/EmptyState/EmptyState.tsx +18 -20
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +55 -39
- package/dist/cjs/EmptyState/EmptyState.module.scss.cjs +0 -23
- package/dist/esm/EmptyState/EmptyState.module.scss.mjs +0 -21
- package/src/EmptyState/EmptyState.module.scss +0 -186
- package/src/EmptyState/EmptyState.spec.tsx +0 -48
- package/src/EmptyState/_mixins.scss +0 -44
|
@@ -8,7 +8,7 @@ require('../Illustration/subcomponents/Base/Base.cjs');
|
|
|
8
8
|
require('../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.cjs');
|
|
9
9
|
var Scene = require('../Illustration/Scene/Scene.cjs');
|
|
10
10
|
var Text = require('../Text/Text.cjs');
|
|
11
|
-
var EmptyState_module = require('./EmptyState.module.
|
|
11
|
+
var EmptyState_module = require('./EmptyState.module.css.cjs');
|
|
12
12
|
function _interopDefault(e) {
|
|
13
13
|
return e && e.__esModule ? e : {
|
|
14
14
|
default: e
|
|
@@ -39,24 +39,25 @@ var EmptyState = function (_a) {
|
|
|
39
39
|
id = _a.id,
|
|
40
40
|
illustrationType = _a.illustrationType,
|
|
41
41
|
_b = _a.variant,
|
|
42
|
-
variant = _b === void 0 ? "informative" : _b
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
headingProps = _a.headingProps,
|
|
42
|
+
variant = _b === void 0 ? "informative" : _b;
|
|
43
|
+
_a.layoutContext;
|
|
44
|
+
var headingProps = _a.headingProps,
|
|
46
45
|
bodyText = _a.bodyText,
|
|
47
46
|
straightCorners = _a.straightCorners,
|
|
48
|
-
|
|
49
|
-
isAnimated =
|
|
50
|
-
|
|
51
|
-
loop =
|
|
47
|
+
_c = _a.isAnimated,
|
|
48
|
+
isAnimated = _c === void 0 ? true : _c,
|
|
49
|
+
_d = _a.loop,
|
|
50
|
+
loop = _d === void 0 ? false : _d,
|
|
52
51
|
classNameOverride = _a.classNameOverride,
|
|
53
52
|
props = tslib.__rest(_a, ["children", "id", "illustrationType", "variant", "layoutContext", "headingProps", "bodyText", "straightCorners", "isAnimated", "loop", "classNameOverride"]);
|
|
54
53
|
var IllustrationComponent = ILLUSTRATIONS[illustrationType !== null && illustrationType !== void 0 ? illustrationType : variant];
|
|
55
54
|
return React__default.default.createElement("div", tslib.__assign({
|
|
56
|
-
className: classnames__default.default(EmptyState_module.container, illustrationType ? EmptyState_module[illustrationType] : EmptyState_module[variant],
|
|
55
|
+
className: classnames__default.default(EmptyState_module.container, illustrationType ? EmptyState_module[illustrationType] : EmptyState_module[variant], straightCorners && EmptyState_module.straightCorners, classNameOverride),
|
|
57
56
|
id: id
|
|
58
57
|
}, props), React__default.default.createElement("div", {
|
|
59
|
-
className: EmptyState_module.
|
|
58
|
+
className: EmptyState_module.content
|
|
59
|
+
}, React__default.default.createElement("div", {
|
|
60
|
+
className: EmptyState_module.illustrationContainer
|
|
60
61
|
}, isAnimated ? React__default.default.createElement(IllustrationComponent, {
|
|
61
62
|
isAnimated: true,
|
|
62
63
|
loop: loop,
|
|
@@ -64,15 +65,12 @@ var EmptyState = function (_a) {
|
|
|
64
65
|
}) : React__default.default.createElement(IllustrationComponent, {
|
|
65
66
|
classNameOverride: EmptyState_module.illustration
|
|
66
67
|
})), React__default.default.createElement("div", {
|
|
67
|
-
className: EmptyState_module.
|
|
68
|
-
}, React__default.default.createElement("div", {
|
|
69
|
-
className: EmptyState_module.textSideInner
|
|
68
|
+
className: EmptyState_module.textContainer
|
|
70
69
|
}, headingProps && React__default.default.createElement(Heading.Heading, tslib.__assign({
|
|
71
70
|
classNameOverride: EmptyState_module.heading
|
|
72
71
|
}, headingProps)), React__default.default.createElement(Text.Text, {
|
|
73
|
-
variant: "body"
|
|
74
|
-
|
|
75
|
-
}, bodyText), children)));
|
|
72
|
+
variant: "body"
|
|
73
|
+
}, bodyText), children && React__default.default.createElement("span", null, children))));
|
|
76
74
|
};
|
|
77
75
|
EmptyState.displayName = "EmptyState";
|
|
78
76
|
exports.EmptyState = EmptyState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"container": "EmptyState-module_container__0kOpV",
|
|
5
|
+
"straightCorners": "EmptyState-module_straightCorners__BNh-9",
|
|
6
|
+
"positive": "EmptyState-module_positive__Z2a3J",
|
|
7
|
+
"negative": "EmptyState-module_negative__mSmjN",
|
|
8
|
+
"action": "EmptyState-module_action__l1243",
|
|
9
|
+
"neutral": "EmptyState-module_neutral__i9IVq",
|
|
10
|
+
"success": "EmptyState-module_success__w9nvN",
|
|
11
|
+
"warning": "EmptyState-module_warning__vdEBx",
|
|
12
|
+
"informative": "EmptyState-module_informative__aeHUD",
|
|
13
|
+
"expert-advice": "EmptyState-module_expert-advice__05WOw",
|
|
14
|
+
"content": "EmptyState-module_content__dggps",
|
|
15
|
+
"illustrationContainer": "EmptyState-module_illustrationContainer__2Ch-u",
|
|
16
|
+
"illustration": "EmptyState-module_illustration__QSUZA",
|
|
17
|
+
"textContainer": "EmptyState-module_textContainer__jJ9NS",
|
|
18
|
+
"heading": "EmptyState-module_heading__pEPi3"
|
|
19
|
+
};
|
|
20
|
+
module.exports = styles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { useFloating, size, offset, autoPlacement
|
|
3
|
+
import { useFloating, autoUpdate, size, offset, autoPlacement } from '@floating-ui/react-dom';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import styles from './CalendarPopover.module.scss.mjs';
|
|
6
6
|
|
|
@@ -4,9 +4,9 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { Heading } from '../Heading/Heading.mjs';
|
|
5
5
|
import '../Illustration/subcomponents/Base/Base.mjs';
|
|
6
6
|
import '../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { EmptyStatesNegative, EmptyStatesNeutral, EmptyStatesPositive, EmptyStatesInformative } from '../Illustration/Scene/Scene.mjs';
|
|
8
8
|
import { Text } from '../Text/Text.mjs';
|
|
9
|
-
import styles from './EmptyState.module.
|
|
9
|
+
import styles from './EmptyState.module.css.mjs';
|
|
10
10
|
var ILLUSTRATIONS = {
|
|
11
11
|
success: EmptyStatesPositive,
|
|
12
12
|
warning: EmptyStatesNegative,
|
|
@@ -31,24 +31,25 @@ const EmptyState = /*#__PURE__*/function () {
|
|
|
31
31
|
id = _a.id,
|
|
32
32
|
illustrationType = _a.illustrationType,
|
|
33
33
|
_b = _a.variant,
|
|
34
|
-
variant = _b === void 0 ? "informative" : _b
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
headingProps = _a.headingProps,
|
|
34
|
+
variant = _b === void 0 ? "informative" : _b;
|
|
35
|
+
_a.layoutContext;
|
|
36
|
+
var headingProps = _a.headingProps,
|
|
38
37
|
bodyText = _a.bodyText,
|
|
39
38
|
straightCorners = _a.straightCorners,
|
|
40
|
-
|
|
41
|
-
isAnimated =
|
|
42
|
-
|
|
43
|
-
loop =
|
|
39
|
+
_c = _a.isAnimated,
|
|
40
|
+
isAnimated = _c === void 0 ? true : _c,
|
|
41
|
+
_d = _a.loop,
|
|
42
|
+
loop = _d === void 0 ? false : _d,
|
|
44
43
|
classNameOverride = _a.classNameOverride,
|
|
45
44
|
props = __rest(_a, ["children", "id", "illustrationType", "variant", "layoutContext", "headingProps", "bodyText", "straightCorners", "isAnimated", "loop", "classNameOverride"]);
|
|
46
45
|
var IllustrationComponent = ILLUSTRATIONS[illustrationType !== null && illustrationType !== void 0 ? illustrationType : variant];
|
|
47
46
|
return /*#__PURE__*/React.createElement("div", __assign({
|
|
48
|
-
className: classnames(styles.container, illustrationType ? styles[illustrationType] : styles[variant],
|
|
47
|
+
className: classnames(styles.container, illustrationType ? styles[illustrationType] : styles[variant], straightCorners && styles.straightCorners, classNameOverride),
|
|
49
48
|
id: id
|
|
50
49
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
51
|
-
className: styles.
|
|
50
|
+
className: styles.content
|
|
51
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: styles.illustrationContainer
|
|
52
53
|
}, isAnimated ? ( /*#__PURE__*/React.createElement(IllustrationComponent, {
|
|
53
54
|
isAnimated: true,
|
|
54
55
|
loop: loop,
|
|
@@ -56,15 +57,12 @@ const EmptyState = /*#__PURE__*/function () {
|
|
|
56
57
|
})) : ( /*#__PURE__*/React.createElement(IllustrationComponent, {
|
|
57
58
|
classNameOverride: styles.illustration
|
|
58
59
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: styles.
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: styles.textSideInner
|
|
60
|
+
className: styles.textContainer
|
|
62
61
|
}, headingProps && ( /*#__PURE__*/React.createElement(Heading, __assign({
|
|
63
62
|
classNameOverride: styles.heading
|
|
64
63
|
}, headingProps))), /*#__PURE__*/React.createElement(Text, {
|
|
65
|
-
variant: "body"
|
|
66
|
-
|
|
67
|
-
}, bodyText), children)));
|
|
64
|
+
variant: "body"
|
|
65
|
+
}, bodyText), children && /*#__PURE__*/React.createElement("span", null, children))));
|
|
68
66
|
};
|
|
69
67
|
EmptyState.displayName = "EmptyState";
|
|
70
68
|
return EmptyState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"container": "EmptyState-module_container__0kOpV",
|
|
3
|
+
"straightCorners": "EmptyState-module_straightCorners__BNh-9",
|
|
4
|
+
"positive": "EmptyState-module_positive__Z2a3J",
|
|
5
|
+
"negative": "EmptyState-module_negative__mSmjN",
|
|
6
|
+
"action": "EmptyState-module_action__l1243",
|
|
7
|
+
"neutral": "EmptyState-module_neutral__i9IVq",
|
|
8
|
+
"success": "EmptyState-module_success__w9nvN",
|
|
9
|
+
"warning": "EmptyState-module_warning__vdEBx",
|
|
10
|
+
"informative": "EmptyState-module_informative__aeHUD",
|
|
11
|
+
"expert-advice": "EmptyState-module_expert-advice__05WOw",
|
|
12
|
+
"content": "EmptyState-module_content__dggps",
|
|
13
|
+
"illustrationContainer": "EmptyState-module_illustrationContainer__2Ch-u",
|
|
14
|
+
"illustration": "EmptyState-module_illustration__QSUZA",
|
|
15
|
+
"textContainer": "EmptyState-module_textContainer__jJ9NS",
|
|
16
|
+
"heading": "EmptyState-module_heading__pEPi3"
|
|
17
|
+
};
|
|
18
|
+
export { styles as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __spreadArray, __assign } from 'tslib';
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useSelectionContext } from '../../context/SelectionProvider/SelectionProvider.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import { useFloating, offset, flip, size
|
|
4
|
+
import { useFloating, autoUpdate, offset, flip, size } from '@floating-ui/react-dom';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { FocusOn } from 'react-focus-on';
|
|
7
7
|
import styles from './Popover.module.scss.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __rest,
|
|
1
|
+
import { __rest, __spreadArray, __assign } from 'tslib';
|
|
2
2
|
import React, { useId, useState, useEffect } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { FieldMessage } from '../../FieldMessage/FieldMessage.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import { nodes } from 'prosemirror-schema-basic';
|
|
3
|
-
import {
|
|
3
|
+
import { listItem, bulletList, orderedList } from 'prosemirror-schema-list';
|
|
4
4
|
var getNodes = function () {
|
|
5
5
|
// We use camel case names instead of ProseMirror's snake case, so we remove any snake case properties here before spreading
|
|
6
6
|
var hardBreak = nodes.hard_break,
|
|
@@ -3,7 +3,7 @@ import React, { useState, useId, useRef, useEffect, cloneElement } from 'react';
|
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { usePopper } from 'react-popper';
|
|
6
|
-
import {
|
|
6
|
+
import { useAnimation, AnimationProvider } from './subcomponents/AppearanceAnim.mjs';
|
|
7
7
|
import { isSemanticElement } from './utils/isSemanticElement.mjs';
|
|
8
8
|
import styles from './Tooltip.module.scss.mjs';
|
|
9
9
|
var positionToPlacement = new Map([["above", "top"], ["below", "bottom"], ["left", "left"], ["right", "right"]]);
|