@kaizen/components 1.4.22-canary.3 → 1.4.22-canary.5
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/iife/index.js +22 -488
- package/package.json +32 -32
- package/dist/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +0 -100
- package/dist/iife/Layout.module-MZ6JYT46-MZ6JYT46.scss +0 -58
- package/dist/iife/Margin.module-DJURK5K7-DJURK5K7.scss +0 -19
- package/dist/iife/Menu.module-N76N74LN-N76N74LN.scss +0 -111
- package/dist/iife/Padding.module-QSNUEZBU-QSNUEZBU.scss +0 -19
- package/dist/iife/Text.module-SXGFOHGJ-SXGFOHGJ.scss +0 -173
package/dist/iife/index.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"use strict";
|
|
40
40
|
var l = Symbol.for("react.element");
|
|
41
41
|
var n = Symbol.for("react.portal");
|
|
42
|
-
var
|
|
42
|
+
var p = Symbol.for("react.fragment");
|
|
43
43
|
var q = Symbol.for("react.strict_mode");
|
|
44
44
|
var r = Symbol.for("react.profiler");
|
|
45
45
|
var t = Symbol.for("react.provider");
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
if (1 === g)
|
|
105
105
|
c.children = e;
|
|
106
106
|
else if (1 < g) {
|
|
107
|
-
for (var f = Array(g),
|
|
108
|
-
f[
|
|
107
|
+
for (var f = Array(g), m = 0; m < g; m++)
|
|
108
|
+
f[m] = arguments[m + 2];
|
|
109
109
|
c.children = f;
|
|
110
110
|
}
|
|
111
111
|
if (a && a.defaultProps)
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
return a;
|
|
218
218
|
} };
|
|
219
219
|
exports.Component = E;
|
|
220
|
-
exports.Fragment =
|
|
220
|
+
exports.Fragment = p;
|
|
221
221
|
exports.Profiler = r;
|
|
222
222
|
exports.PureComponent = G;
|
|
223
223
|
exports.StrictMode = q;
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
d.children = e;
|
|
241
241
|
else if (1 < f) {
|
|
242
242
|
g = Array(f);
|
|
243
|
-
for (var
|
|
244
|
-
g[
|
|
243
|
+
for (var m = 0; m < f; m++)
|
|
244
|
+
g[m] = arguments[m + 2];
|
|
245
245
|
d.children = g;
|
|
246
246
|
}
|
|
247
247
|
return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
|
|
@@ -2926,7 +2926,7 @@
|
|
|
2926
2926
|
"use strict";
|
|
2927
2927
|
var hasOwn = {}.hasOwnProperty;
|
|
2928
2928
|
var nativeCodeString = "[native code]";
|
|
2929
|
-
function
|
|
2929
|
+
function classNames() {
|
|
2930
2930
|
var classes = [];
|
|
2931
2931
|
for (var i = 0; i < arguments.length; i++) {
|
|
2932
2932
|
var arg = arguments[i];
|
|
@@ -2937,7 +2937,7 @@
|
|
|
2937
2937
|
classes.push(arg);
|
|
2938
2938
|
} else if (Array.isArray(arg)) {
|
|
2939
2939
|
if (arg.length) {
|
|
2940
|
-
var inner =
|
|
2940
|
+
var inner = classNames.apply(null, arg);
|
|
2941
2941
|
if (inner) {
|
|
2942
2942
|
classes.push(inner);
|
|
2943
2943
|
}
|
|
@@ -2957,14 +2957,14 @@
|
|
|
2957
2957
|
return classes.join(" ");
|
|
2958
2958
|
}
|
|
2959
2959
|
if (typeof module !== "undefined" && module.exports) {
|
|
2960
|
-
|
|
2961
|
-
module.exports =
|
|
2960
|
+
classNames.default = classNames;
|
|
2961
|
+
module.exports = classNames;
|
|
2962
2962
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
2963
2963
|
define("classnames", [], function() {
|
|
2964
|
-
return
|
|
2964
|
+
return classNames;
|
|
2965
2965
|
});
|
|
2966
2966
|
} else {
|
|
2967
|
-
window.classNames =
|
|
2967
|
+
window.classNames = classNames;
|
|
2968
2968
|
}
|
|
2969
2969
|
})();
|
|
2970
2970
|
}
|
|
@@ -3492,37 +3492,12 @@
|
|
|
3492
3492
|
KaizenProvider.displayName = "KaizenProvider";
|
|
3493
3493
|
|
|
3494
3494
|
// ../a11y/dist/esm/index.js
|
|
3495
|
-
var
|
|
3495
|
+
var import_react4 = __toESM(require_react());
|
|
3496
3496
|
|
|
3497
|
-
// ../component-library/dist/esm/
|
|
3497
|
+
// ../component-library/dist/esm/chunk-HRENJKZ7.js
|
|
3498
3498
|
var import_react3 = __toESM(require_react());
|
|
3499
3499
|
var import_classnames = __toESM(require_classnames());
|
|
3500
|
-
var import_react4 = __toESM(require_react());
|
|
3501
|
-
var import_classnames2 = __toESM(require_classnames());
|
|
3502
3500
|
var import_Icon_module_VD7NKLAR = __toESM(__require("./Icon.module-VD7NKLAR-VD7NKLAR.scss"));
|
|
3503
|
-
var import_react5 = __toESM(require_react());
|
|
3504
|
-
var import_Dropdown_module_4CIBZTRZ = __toESM(__require("./Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss"));
|
|
3505
|
-
var import_Dropdown_module_4CIBZTRZ2 = __toESM(__require("./Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss"));
|
|
3506
|
-
var import_react6 = __toESM(require_react());
|
|
3507
|
-
var import_Layout_module_MZ6JYT46 = __toESM(__require("./Layout.module-MZ6JYT46-MZ6JYT46.scss"));
|
|
3508
|
-
var import_react7 = __toESM(require_react());
|
|
3509
|
-
var import_Menu_module_N76N74LN = __toESM(__require("./Menu.module-N76N74LN-N76N74LN.scss"));
|
|
3510
|
-
var import_react8 = __toESM(require_react());
|
|
3511
|
-
var import_Menu_module_N76N74LN2 = __toESM(__require("./Menu.module-N76N74LN-N76N74LN.scss"));
|
|
3512
|
-
var import_react9 = __toESM(require_react());
|
|
3513
|
-
var import_classnames3 = __toESM(require_classnames());
|
|
3514
|
-
var import_Menu_module_N76N74LN3 = __toESM(__require("./Menu.module-N76N74LN-N76N74LN.scss"));
|
|
3515
|
-
var import_react10 = __toESM(require_react());
|
|
3516
|
-
var import_Menu_module_N76N74LN4 = __toESM(__require("./Menu.module-N76N74LN-N76N74LN.scss"));
|
|
3517
|
-
var import_react11 = __toESM(require_react());
|
|
3518
|
-
var import_classnames4 = __toESM(require_classnames());
|
|
3519
|
-
var import_Text_module_SXGFOHGJ = __toESM(__require("./Text.module-SXGFOHGJ-SXGFOHGJ.scss"));
|
|
3520
|
-
var import_Padding_module_QSNUEZBU = __toESM(__require("./Padding.module-QSNUEZBU-QSNUEZBU.scss"));
|
|
3521
|
-
var import_Margin_module_DJURK5K7 = __toESM(__require("./Margin.module-DJURK5K7-DJURK5K7.scss"));
|
|
3522
|
-
var import_react12 = __toESM(require_react());
|
|
3523
|
-
var import_classnames5 = __toESM(require_classnames());
|
|
3524
|
-
var chevron_down_icon_default = "./chevron-down.icon-COG3GAYR.svg";
|
|
3525
|
-
var ellipsis_icon_default = "./ellipsis.icon-DECY5OPU.svg";
|
|
3526
3501
|
var yellow = "\x1B[33m ";
|
|
3527
3502
|
var reset = "\x1B[0m ";
|
|
3528
3503
|
var warn = (message) => {
|
|
@@ -3558,16 +3533,16 @@ ${singleLine(message)}${reset}
|
|
|
3558
3533
|
"presentation" to indicate it is not meaningful.
|
|
3559
3534
|
`);
|
|
3560
3535
|
}
|
|
3561
|
-
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */
|
|
3562
|
-
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */
|
|
3536
|
+
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ import_react3.default.createElement("title", null, title);
|
|
3537
|
+
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ import_react3.default.createElement("desc", null, desc);
|
|
3563
3538
|
const accessibilityProps = {
|
|
3564
3539
|
role,
|
|
3565
3540
|
["aria-hidden"]: isMeaningfulImg ? void 0 : true
|
|
3566
3541
|
};
|
|
3567
|
-
return /* @__PURE__ */
|
|
3542
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
3568
3543
|
"svg",
|
|
3569
3544
|
{
|
|
3570
|
-
className: (0,
|
|
3545
|
+
className: (0, import_classnames.default)(import_Icon_module_VD7NKLAR.default.icon, classNameOverride, {
|
|
3571
3546
|
[import_Icon_module_VD7NKLAR.default.inheritSize]: inheritSize
|
|
3572
3547
|
}),
|
|
3573
3548
|
viewBox: icon.viewBox,
|
|
@@ -3577,460 +3552,19 @@ ${singleLine(message)}${reset}
|
|
|
3577
3552
|
},
|
|
3578
3553
|
renderTitle(),
|
|
3579
3554
|
renderDesc(),
|
|
3580
|
-
/* @__PURE__ */
|
|
3555
|
+
/* @__PURE__ */ import_react3.default.createElement("use", { xlinkHref: `#${icon.id}` })
|
|
3581
3556
|
);
|
|
3582
3557
|
};
|
|
3583
3558
|
Icon.displayName = "Icon";
|
|
3584
|
-
var DropdownMenu = class extends import_react5.default.Component {
|
|
3585
|
-
constructor() {
|
|
3586
|
-
super(...arguments);
|
|
3587
|
-
this.menu = import_react5.default.createRef();
|
|
3588
|
-
this.handleDocumentClick = (e) => {
|
|
3589
|
-
if (this.menu && this.menu.current && e.target instanceof Node && !this.menu.current.contains(e.target)) {
|
|
3590
|
-
this.props.hideDropdownMenu();
|
|
3591
|
-
}
|
|
3592
|
-
};
|
|
3593
|
-
this.handleDocumentResize = () => {
|
|
3594
|
-
this.props.hideDropdownMenu();
|
|
3595
|
-
};
|
|
3596
|
-
}
|
|
3597
|
-
componentDidMount() {
|
|
3598
|
-
document.addEventListener("click", this.handleDocumentClick, false);
|
|
3599
|
-
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
3600
|
-
this.positionMenu();
|
|
3601
|
-
}
|
|
3602
|
-
componentWillUnmount() {
|
|
3603
|
-
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
3604
|
-
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
3605
|
-
}
|
|
3606
|
-
render() {
|
|
3607
|
-
const { hideDropdownMenu, children } = this.props;
|
|
3608
|
-
return (
|
|
3609
|
-
// Disabling instead of addressing because this component is deprecated
|
|
3610
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
3611
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
3612
|
-
"div",
|
|
3613
|
-
{
|
|
3614
|
-
className: import_Dropdown_module_4CIBZTRZ.default.menuContainer,
|
|
3615
|
-
ref: this.menu,
|
|
3616
|
-
onClick: hideDropdownMenu
|
|
3617
|
-
},
|
|
3618
|
-
children
|
|
3619
|
-
)
|
|
3620
|
-
);
|
|
3621
|
-
}
|
|
3622
|
-
positionMenu() {
|
|
3623
|
-
const menu = this.menu;
|
|
3624
|
-
if (!this.props.position || !menu) {
|
|
3625
|
-
return;
|
|
3626
|
-
}
|
|
3627
|
-
if (menu.current) {
|
|
3628
|
-
const pos = this.props.position;
|
|
3629
|
-
const { innerHeight } = window;
|
|
3630
|
-
const rect = menu.current.getBoundingClientRect();
|
|
3631
|
-
if (pos.bottom > innerHeight - rect.height) {
|
|
3632
|
-
menu.current.style.bottom = "24px";
|
|
3633
|
-
menu.current.style.top = "auto";
|
|
3634
|
-
} else {
|
|
3635
|
-
menu.current.style.top = "24px";
|
|
3636
|
-
menu.current.style.bottom = "auto";
|
|
3637
|
-
}
|
|
3638
|
-
}
|
|
3639
|
-
}
|
|
3640
|
-
};
|
|
3641
|
-
DropdownMenu.displayName = "DropdownMenu";
|
|
3642
|
-
var DropdownMenu_default = DropdownMenu;
|
|
3643
|
-
var Dropdown = class extends import_react3.default.Component {
|
|
3644
|
-
constructor(props) {
|
|
3645
|
-
super(props);
|
|
3646
|
-
this.dropdownButton = import_react3.default.createRef();
|
|
3647
|
-
this.toggleDropdownMenu = (e) => {
|
|
3648
|
-
e.stopPropagation();
|
|
3649
|
-
const currentState = this.state.isMenuVisible;
|
|
3650
|
-
this.setState({
|
|
3651
|
-
isMenuVisible: !currentState
|
|
3652
|
-
});
|
|
3653
|
-
};
|
|
3654
|
-
this.hideDropdownMenu = () => {
|
|
3655
|
-
this.setState({
|
|
3656
|
-
isMenuVisible: false
|
|
3657
|
-
});
|
|
3658
|
-
};
|
|
3659
|
-
this.renderIcon = (icon) => {
|
|
3660
|
-
if (!icon)
|
|
3661
|
-
return;
|
|
3662
|
-
return /* @__PURE__ */ import_react3.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdownIcon }, /* @__PURE__ */ import_react3.default.createElement(Icon, { icon, role: "img", title: "Open menu" }));
|
|
3663
|
-
};
|
|
3664
|
-
this.renderDownArrow = () => {
|
|
3665
|
-
const { label, controlAction } = this.props;
|
|
3666
|
-
if (!label || !controlAction)
|
|
3667
|
-
return;
|
|
3668
|
-
return /* @__PURE__ */ import_react3.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.chevronIcon }, /* @__PURE__ */ import_react3.default.createElement(Icon, { icon: chevron_down_icon_default, role: "img", title: "Open menu" }));
|
|
3669
|
-
};
|
|
3670
|
-
this.renderButtonContent = () => {
|
|
3671
|
-
const { label } = this.props;
|
|
3672
|
-
let { icon } = this.props;
|
|
3673
|
-
if (!icon && !label) {
|
|
3674
|
-
icon = ellipsis_icon_default;
|
|
3675
|
-
}
|
|
3676
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, this.renderIcon(icon), label && /* @__PURE__ */ import_react3.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdownLabel }, label), this.renderDownArrow());
|
|
3677
|
-
};
|
|
3678
|
-
this.renderReversedButtonContent = () => {
|
|
3679
|
-
const { icon, label } = this.props;
|
|
3680
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, this.renderDownArrow(), label && /* @__PURE__ */ import_react3.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdownLabel }, label), this.renderIcon(icon));
|
|
3681
|
-
};
|
|
3682
|
-
this.state = {
|
|
3683
|
-
isMenuVisible: Boolean(props.menuVisible)
|
|
3684
|
-
};
|
|
3685
|
-
}
|
|
3686
|
-
getPosition() {
|
|
3687
|
-
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
3688
|
-
}
|
|
3689
|
-
renderDropdownMenu() {
|
|
3690
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
|
3691
|
-
DropdownMenu_default,
|
|
3692
|
-
{
|
|
3693
|
-
hideDropdownMenu: this.hideDropdownMenu,
|
|
3694
|
-
position: this.getPosition()
|
|
3695
|
-
},
|
|
3696
|
-
this.props.children
|
|
3697
|
-
);
|
|
3698
|
-
}
|
|
3699
|
-
render() {
|
|
3700
|
-
const { controlAction, automationId, iconPosition, reversedColor } = this.props;
|
|
3701
|
-
const reverseIcon = iconPosition === "end";
|
|
3702
|
-
const btnClass = (0, import_classnames.default)(import_Dropdown_module_4CIBZTRZ2.default.dropdownButton, {
|
|
3703
|
-
[import_Dropdown_module_4CIBZTRZ2.default.dropdownControlAction]: controlAction,
|
|
3704
|
-
[import_Dropdown_module_4CIBZTRZ2.default.isOpen]: this.state.isMenuVisible,
|
|
3705
|
-
[import_Dropdown_module_4CIBZTRZ2.default.reversedColor]: reversedColor
|
|
3706
|
-
});
|
|
3707
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdown }, /* @__PURE__ */ import_react3.default.createElement(
|
|
3708
|
-
"button",
|
|
3709
|
-
{
|
|
3710
|
-
className: btnClass,
|
|
3711
|
-
onClick: this.toggleDropdownMenu,
|
|
3712
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
3713
|
-
ref: this.dropdownButton,
|
|
3714
|
-
"data-automation-id": automationId
|
|
3715
|
-
},
|
|
3716
|
-
!reverseIcon && this.renderButtonContent(),
|
|
3717
|
-
reverseIcon && this.renderReversedButtonContent()
|
|
3718
|
-
), this.state.isMenuVisible && this.renderDropdownMenu());
|
|
3719
|
-
}
|
|
3720
|
-
};
|
|
3721
|
-
Dropdown.displayName = "Dropdown";
|
|
3722
|
-
Dropdown.defaultProps = {
|
|
3723
|
-
iconPosition: "start"
|
|
3724
|
-
};
|
|
3725
|
-
var NavigationBar = ({ children }) => /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.navigationBar }, children);
|
|
3726
|
-
NavigationBar.displayName = "NavigationBar";
|
|
3727
|
-
var Sidebar = ({ children }) => /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.sidebar }, /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.sidebarInner }, children));
|
|
3728
|
-
Sidebar.displayName = "Sidebar";
|
|
3729
|
-
var Header = ({ children }) => /* @__PURE__ */ import_react6.default.createElement("aside", { className: import_Layout_module_MZ6JYT46.default.header }, children);
|
|
3730
|
-
Header.displayName = "Header";
|
|
3731
|
-
var Footer = ({ children }) => /* @__PURE__ */ import_react6.default.createElement("footer", { className: import_Layout_module_MZ6JYT46.default.footer }, children);
|
|
3732
|
-
Footer.displayName = "Footer";
|
|
3733
|
-
var Toasts = ({ children }) => /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.toasts, "aria-live": "assertive" }, children);
|
|
3734
|
-
Toasts.displayName = "Toasts";
|
|
3735
|
-
var Announcers = ({ children }) => /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.announcers, "aria-live": "assertive" }, children);
|
|
3736
|
-
Announcers.displayName = "Announcers";
|
|
3737
|
-
var Layout = class extends import_react6.default.Component {
|
|
3738
|
-
render() {
|
|
3739
|
-
const content = import_react6.default.Children.toArray(this.props.children);
|
|
3740
|
-
const navbar = extractChildOfType(content, NavigationBar);
|
|
3741
|
-
const header = extractChildOfType(content, Header);
|
|
3742
|
-
const sidebar = extractChildOfType(content, Sidebar);
|
|
3743
|
-
const footer = extractChildOfType(content, Footer);
|
|
3744
|
-
const announcers = extractChildOfType(content, Announcers);
|
|
3745
|
-
const toasts = extractChildOfType(content, Toasts);
|
|
3746
|
-
return /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.root }, navbar, announcers, /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.page }, header, toasts, /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.body }, /* @__PURE__ */ import_react6.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.bodyInner }, sidebar, /* @__PURE__ */ import_react6.default.createElement("main", { className: import_Layout_module_MZ6JYT46.default.content }, content))), footer));
|
|
3747
|
-
}
|
|
3748
|
-
};
|
|
3749
|
-
Layout.displayName = "Layout";
|
|
3750
|
-
Layout.NavigationBar = NavigationBar;
|
|
3751
|
-
Layout.Sidebar = Sidebar;
|
|
3752
|
-
Layout.Header = Header;
|
|
3753
|
-
Layout.Footer = Footer;
|
|
3754
|
-
Layout.Toasts = Toasts;
|
|
3755
|
-
Layout.Announcers = Announcers;
|
|
3756
|
-
var extractChildOfType = (children, type) => {
|
|
3757
|
-
const match = children.find((child) => {
|
|
3758
|
-
if (import_react6.default.isValidElement(child) && typeof child.type === "function") {
|
|
3759
|
-
return child.type.displayName === type.displayName;
|
|
3760
|
-
}
|
|
3761
|
-
return false;
|
|
3762
|
-
});
|
|
3763
|
-
if (match) {
|
|
3764
|
-
const index = children.indexOf(match);
|
|
3765
|
-
children.splice(index, 1);
|
|
3766
|
-
}
|
|
3767
|
-
return match;
|
|
3768
|
-
};
|
|
3769
|
-
var MenuList = (props) => /* @__PURE__ */ import_react7.default.createElement("div", { className: import_Menu_module_N76N74LN.default.menuList }, props.children);
|
|
3770
|
-
MenuList.displayName = "MenuList";
|
|
3771
|
-
var MenuHeader = (props) => /* @__PURE__ */ import_react8.default.createElement("div", { className: import_Menu_module_N76N74LN2.default.header }, /* @__PURE__ */ import_react8.default.createElement("span", { className: import_Menu_module_N76N74LN2.default.header__title }, props.title));
|
|
3772
|
-
MenuHeader.displayName = "MenuHeader";
|
|
3773
|
-
var MenuItem = (props) => {
|
|
3774
|
-
const {
|
|
3775
|
-
icon,
|
|
3776
|
-
hoverIcon,
|
|
3777
|
-
children,
|
|
3778
|
-
action,
|
|
3779
|
-
active,
|
|
3780
|
-
destructive,
|
|
3781
|
-
automationId
|
|
3782
|
-
} = props;
|
|
3783
|
-
const isLink = typeof action === "string";
|
|
3784
|
-
const label = /* @__PURE__ */ import_react9.default.createElement("span", { className: import_Menu_module_N76N74LN3.default.menuItem__Label }, children, isLink && "\u2026");
|
|
3785
|
-
const iconNode = icon && /* @__PURE__ */ import_react9.default.createElement("span", { className: import_Menu_module_N76N74LN3.default.menuItem__Icon }, /* @__PURE__ */ import_react9.default.createElement(Icon, { icon, role: "presentation" }));
|
|
3786
|
-
const className = (0, import_classnames3.default)({
|
|
3787
|
-
[import_Menu_module_N76N74LN3.default.menuItem]: true,
|
|
3788
|
-
[import_Menu_module_N76N74LN3.default.hoverIcon]: icon && hoverIcon,
|
|
3789
|
-
[import_Menu_module_N76N74LN3.default["menuItem--active"]]: active,
|
|
3790
|
-
[import_Menu_module_N76N74LN3.default["menuItem--destructive"]]: destructive
|
|
3791
|
-
});
|
|
3792
|
-
if (typeof action === "string") {
|
|
3793
|
-
return /* @__PURE__ */ import_react9.default.createElement("a", { href: action, className, "data-automation-id": automationId }, label, iconNode);
|
|
3794
|
-
}
|
|
3795
|
-
return (
|
|
3796
|
-
// Disabling instead of addressing because this component is deprecated.
|
|
3797
|
-
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
3798
|
-
/* @__PURE__ */ import_react9.default.createElement(
|
|
3799
|
-
"a",
|
|
3800
|
-
{
|
|
3801
|
-
href: "#",
|
|
3802
|
-
onClick: action,
|
|
3803
|
-
className,
|
|
3804
|
-
"data-automation-id": automationId
|
|
3805
|
-
},
|
|
3806
|
-
label,
|
|
3807
|
-
iconNode
|
|
3808
|
-
)
|
|
3809
|
-
);
|
|
3810
|
-
};
|
|
3811
|
-
MenuItem.displayName = "MenuItem";
|
|
3812
|
-
var MenuSeparator = () => /* @__PURE__ */ import_react10.default.createElement("hr", { className: import_Menu_module_N76N74LN4.default.separator });
|
|
3813
|
-
MenuSeparator.displayName = "MenuSeparator";
|
|
3814
|
-
var Text = ({
|
|
3815
|
-
tag,
|
|
3816
|
-
children,
|
|
3817
|
-
inheritBaseline = false,
|
|
3818
|
-
inline = false,
|
|
3819
|
-
style = "default-style"
|
|
3820
|
-
}) => import_react11.default.createElement(
|
|
3821
|
-
tag,
|
|
3822
|
-
{
|
|
3823
|
-
className: (0, import_classnames4.default)(import_Text_module_SXGFOHGJ.default[style], {
|
|
3824
|
-
[import_Text_module_SXGFOHGJ.default.inheritBaseline]: inheritBaseline,
|
|
3825
|
-
[import_Text_module_SXGFOHGJ.default.inline]: inline
|
|
3826
|
-
})
|
|
3827
|
-
},
|
|
3828
|
-
children
|
|
3829
|
-
);
|
|
3830
|
-
Text.displayName = "Text";
|
|
3831
|
-
var convertFractionToString = (fraction) => {
|
|
3832
|
-
switch (fraction) {
|
|
3833
|
-
case 0:
|
|
3834
|
-
default:
|
|
3835
|
-
return "0";
|
|
3836
|
-
case 0.25:
|
|
3837
|
-
return "0-point-25";
|
|
3838
|
-
case 0.5:
|
|
3839
|
-
return "0-point-5";
|
|
3840
|
-
case 0.75:
|
|
3841
|
-
return "0-point-75";
|
|
3842
|
-
case 1:
|
|
3843
|
-
return "1";
|
|
3844
|
-
case 1.25:
|
|
3845
|
-
return "1-point-25";
|
|
3846
|
-
case 1.5:
|
|
3847
|
-
return "1-point-5";
|
|
3848
|
-
case 1.75:
|
|
3849
|
-
return "1-point-75";
|
|
3850
|
-
case 2:
|
|
3851
|
-
return "2";
|
|
3852
|
-
case 2.5:
|
|
3853
|
-
return "2-point-5";
|
|
3854
|
-
case 3:
|
|
3855
|
-
return "3";
|
|
3856
|
-
case 3.5:
|
|
3857
|
-
return "3-point-5";
|
|
3858
|
-
case 4:
|
|
3859
|
-
return "4";
|
|
3860
|
-
}
|
|
3861
|
-
};
|
|
3862
|
-
var pt = (unit) => [
|
|
3863
|
-
import_Padding_module_QSNUEZBU.default[`pt-${convertFractionToString(unit)}`]
|
|
3864
|
-
];
|
|
3865
|
-
var pr = (unit) => [
|
|
3866
|
-
import_Padding_module_QSNUEZBU.default[`pr-${convertFractionToString(unit)}`]
|
|
3867
|
-
];
|
|
3868
|
-
var pb = (unit) => [
|
|
3869
|
-
import_Padding_module_QSNUEZBU.default[`pb-${convertFractionToString(unit)}`]
|
|
3870
|
-
];
|
|
3871
|
-
var pl = (unit) => [
|
|
3872
|
-
import_Padding_module_QSNUEZBU.default[`pl-${convertFractionToString(unit)}`]
|
|
3873
|
-
];
|
|
3874
|
-
var px = (unit) => [
|
|
3875
|
-
import_Padding_module_QSNUEZBU.default[`pl-${convertFractionToString(unit)}`],
|
|
3876
|
-
import_Padding_module_QSNUEZBU.default[`pr-${convertFractionToString(unit)}`]
|
|
3877
|
-
];
|
|
3878
|
-
var py = (unit) => [
|
|
3879
|
-
import_Padding_module_QSNUEZBU.default[`pt-${convertFractionToString(unit)}`],
|
|
3880
|
-
import_Padding_module_QSNUEZBU.default[`pb-${convertFractionToString(unit)}`]
|
|
3881
|
-
];
|
|
3882
|
-
var p = (unit) => {
|
|
3883
|
-
const classes = [];
|
|
3884
|
-
if (typeof unit === "number") {
|
|
3885
|
-
classes.push(import_Padding_module_QSNUEZBU.default[`p-${convertFractionToString(unit)}`]);
|
|
3886
|
-
} else {
|
|
3887
|
-
Object.keys(unit).forEach((key) => {
|
|
3888
|
-
classes.push(import_Padding_module_QSNUEZBU.default[`p-${convertFractionToString(unit[key])}--${key}`]);
|
|
3889
|
-
});
|
|
3890
|
-
}
|
|
3891
|
-
return classes;
|
|
3892
|
-
};
|
|
3893
|
-
var paddingClasses = ({
|
|
3894
|
-
p: padding,
|
|
3895
|
-
pt: paddingTop,
|
|
3896
|
-
pr: paddingRight,
|
|
3897
|
-
pb: paddingBottom,
|
|
3898
|
-
pl: paddingLeft,
|
|
3899
|
-
px: paddingXAxis,
|
|
3900
|
-
py: paddingYAxis,
|
|
3901
|
-
rtl = false
|
|
3902
|
-
}) => {
|
|
3903
|
-
const classes = [];
|
|
3904
|
-
if (padding !== void 0)
|
|
3905
|
-
classes.push(...p(padding));
|
|
3906
|
-
if (paddingTop !== void 0)
|
|
3907
|
-
classes.push(...pt(paddingTop));
|
|
3908
|
-
if (paddingBottom !== void 0)
|
|
3909
|
-
classes.push(...pb(paddingBottom));
|
|
3910
|
-
if (paddingXAxis !== void 0)
|
|
3911
|
-
classes.push(...px(paddingXAxis));
|
|
3912
|
-
if (paddingYAxis !== void 0)
|
|
3913
|
-
classes.push(...py(paddingYAxis));
|
|
3914
|
-
if (rtl) {
|
|
3915
|
-
if (paddingRight !== void 0)
|
|
3916
|
-
classes.push(...pl(paddingRight));
|
|
3917
|
-
if (paddingLeft !== void 0)
|
|
3918
|
-
classes.push(...pr(paddingLeft));
|
|
3919
|
-
} else {
|
|
3920
|
-
if (paddingRight !== void 0)
|
|
3921
|
-
classes.push(...pr(paddingRight));
|
|
3922
|
-
if (paddingLeft !== void 0)
|
|
3923
|
-
classes.push(...pl(paddingLeft));
|
|
3924
|
-
}
|
|
3925
|
-
if (padding === void 0 && paddingTop === void 0 && paddingRight === void 0 && paddingBottom === void 0 && paddingLeft === void 0 && paddingXAxis === void 0 && paddingYAxis === void 0) {
|
|
3926
|
-
classes.push(...p(0));
|
|
3927
|
-
}
|
|
3928
|
-
return classes;
|
|
3929
|
-
};
|
|
3930
|
-
var mt = (unit) => [
|
|
3931
|
-
import_Margin_module_DJURK5K7.default[`mt-${convertFractionToString(unit)}`]
|
|
3932
|
-
];
|
|
3933
|
-
var mr = (unit) => [
|
|
3934
|
-
import_Margin_module_DJURK5K7.default[`mr-${convertFractionToString(unit)}`]
|
|
3935
|
-
];
|
|
3936
|
-
var mb = (unit) => [
|
|
3937
|
-
import_Margin_module_DJURK5K7.default[`mb-${convertFractionToString(unit)}`]
|
|
3938
|
-
];
|
|
3939
|
-
var ml = (unit) => [
|
|
3940
|
-
import_Margin_module_DJURK5K7.default[`ml-${convertFractionToString(unit)}`]
|
|
3941
|
-
];
|
|
3942
|
-
var mx = (unit) => [
|
|
3943
|
-
import_Margin_module_DJURK5K7.default[`ml-${convertFractionToString(unit)}`],
|
|
3944
|
-
import_Margin_module_DJURK5K7.default[`mr-${convertFractionToString(unit)}`]
|
|
3945
|
-
];
|
|
3946
|
-
var my = (unit) => [
|
|
3947
|
-
import_Margin_module_DJURK5K7.default[`mt-${convertFractionToString(unit)}`],
|
|
3948
|
-
import_Margin_module_DJURK5K7.default[`mb-${convertFractionToString(unit)}`]
|
|
3949
|
-
];
|
|
3950
|
-
var m = (unit) => {
|
|
3951
|
-
const classes = [];
|
|
3952
|
-
if (typeof unit === "number") {
|
|
3953
|
-
classes.push(import_Margin_module_DJURK5K7.default[`m-${convertFractionToString(unit)}`]);
|
|
3954
|
-
} else {
|
|
3955
|
-
Object.keys(unit).forEach((key) => {
|
|
3956
|
-
classes.push(import_Margin_module_DJURK5K7.default[`m-${convertFractionToString(unit[key])}--${key}`]);
|
|
3957
|
-
});
|
|
3958
|
-
}
|
|
3959
|
-
return classes;
|
|
3960
|
-
};
|
|
3961
|
-
var marginClasses = ({
|
|
3962
|
-
m: margin,
|
|
3963
|
-
mt: marginTop,
|
|
3964
|
-
mr: marginRight,
|
|
3965
|
-
mb: marginBottom,
|
|
3966
|
-
ml: marginLeft,
|
|
3967
|
-
mx: marginXAxis,
|
|
3968
|
-
my: marginYAxis,
|
|
3969
|
-
rtl = false
|
|
3970
|
-
}) => {
|
|
3971
|
-
const classes = [];
|
|
3972
|
-
if (margin !== void 0)
|
|
3973
|
-
classes.push(...m(margin));
|
|
3974
|
-
if (marginTop !== void 0)
|
|
3975
|
-
classes.push(...mt(marginTop));
|
|
3976
|
-
if (marginBottom !== void 0)
|
|
3977
|
-
classes.push(...mb(marginBottom));
|
|
3978
|
-
if (marginXAxis !== void 0)
|
|
3979
|
-
classes.push(...mx(marginXAxis));
|
|
3980
|
-
if (marginYAxis !== void 0)
|
|
3981
|
-
classes.push(...my(marginYAxis));
|
|
3982
|
-
if (rtl) {
|
|
3983
|
-
if (marginRight !== void 0)
|
|
3984
|
-
classes.push(...ml(marginRight));
|
|
3985
|
-
if (marginLeft !== void 0)
|
|
3986
|
-
classes.push(...mr(marginLeft));
|
|
3987
|
-
} else {
|
|
3988
|
-
if (marginRight !== void 0)
|
|
3989
|
-
classes.push(...mr(marginRight));
|
|
3990
|
-
if (marginLeft !== void 0)
|
|
3991
|
-
classes.push(...ml(marginLeft));
|
|
3992
|
-
}
|
|
3993
|
-
if (margin === void 0 && marginTop === void 0 && marginRight === void 0 && marginBottom === void 0 && marginLeft === void 0 && marginXAxis === void 0 && marginYAxis === void 0) {
|
|
3994
|
-
classes.push(...m(0));
|
|
3995
|
-
}
|
|
3996
|
-
return classes;
|
|
3997
|
-
};
|
|
3998
|
-
var Box = ({
|
|
3999
|
-
children,
|
|
4000
|
-
rtl = false,
|
|
4001
|
-
m: m2,
|
|
4002
|
-
mt: mt2,
|
|
4003
|
-
mr: mr2,
|
|
4004
|
-
mb: mb2,
|
|
4005
|
-
ml: ml2,
|
|
4006
|
-
mx: mx2,
|
|
4007
|
-
my: my2,
|
|
4008
|
-
p: p2,
|
|
4009
|
-
pt: pt2,
|
|
4010
|
-
pr: pr2,
|
|
4011
|
-
pb: pb2,
|
|
4012
|
-
pl: pl2,
|
|
4013
|
-
px: px2,
|
|
4014
|
-
py: py2,
|
|
4015
|
-
classNameOverride,
|
|
4016
|
-
...restProps
|
|
4017
|
-
}) => {
|
|
4018
|
-
const classes = [
|
|
4019
|
-
...paddingClasses({ p: p2, pt: pt2, pr: pr2, pb: pb2, pl: pl2, px: px2, py: py2, rtl }),
|
|
4020
|
-
...marginClasses({ m: m2, mt: mt2, mr: mr2, mb: mb2, ml: ml2, mx: mx2, my: my2, rtl })
|
|
4021
|
-
];
|
|
4022
|
-
return /* @__PURE__ */ import_react12.default.createElement("div", { className: (0, import_classnames5.default)(classes, classNameOverride), ...restProps }, children);
|
|
4023
|
-
};
|
|
4024
|
-
Box.displayName = "Box";
|
|
4025
3559
|
|
|
4026
3560
|
// ../component-library/icons/skip.icon.svg
|
|
4027
3561
|
var skip_icon_default = "./skip.icon-4OAFSA2T.svg";
|
|
4028
3562
|
|
|
4029
3563
|
// ../a11y/dist/esm/index.js
|
|
4030
3564
|
var import_SkipLink_module_KAZA7PAL = __toESM(__require("./SkipLink.module-KAZA7PAL-KAZA7PAL.scss"));
|
|
4031
|
-
var
|
|
3565
|
+
var import_react5 = __toESM(require_react());
|
|
4032
3566
|
var import_VisuallyHidden_module_E5JUNEF5 = __toESM(__require("./VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss"));
|
|
4033
|
-
var SkipLink = ({ label, skipTo }) => /* @__PURE__ */
|
|
3567
|
+
var SkipLink = ({ label, skipTo }) => /* @__PURE__ */ import_react4.default.createElement("a", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkContainer, href: `#${skipTo}` }, /* @__PURE__ */ import_react4.default.createElement("span", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkContent }, /* @__PURE__ */ import_react4.default.createElement("span", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkIcon }, /* @__PURE__ */ import_react4.default.createElement(Icon, { icon: skip_icon_default, role: "presentation" })), /* @__PURE__ */ import_react4.default.createElement("span", null, label)));
|
|
4034
3568
|
SkipLink.displayName = "SkipLink";
|
|
4035
3569
|
var VisuallyHidden = ({
|
|
4036
3570
|
children,
|
|
@@ -4039,7 +3573,7 @@ ${singleLine(message)}${reset}
|
|
|
4039
3573
|
...otherProps
|
|
4040
3574
|
}) => {
|
|
4041
3575
|
const className = `${import_VisuallyHidden_module_E5JUNEF5.default.srOnly} ${classNameOverride}`;
|
|
4042
|
-
return (0,
|
|
3576
|
+
return (0, import_react5.createElement)(tag, { ...otherProps, className }, children);
|
|
4043
3577
|
};
|
|
4044
3578
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
4045
3579
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.4.22-canary.
|
|
3
|
+
"version": "1.4.22-canary.5+94347e6d9",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -28,49 +28,49 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/cultureamp/kaizen-design-system#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@kaizen/a11y": "^1.7.1-canary.
|
|
31
|
+
"@kaizen/a11y": "^1.7.1-canary.5+94347e6d9",
|
|
32
32
|
"@kaizen/brand": "^1.5.4",
|
|
33
|
-
"@kaizen/brand-moment": "^1.12.66-canary.
|
|
34
|
-
"@kaizen/button": "^2.0.22-canary.
|
|
33
|
+
"@kaizen/brand-moment": "^1.12.66-canary.5+94347e6d9",
|
|
34
|
+
"@kaizen/button": "^2.0.22-canary.5+94347e6d9",
|
|
35
35
|
"@kaizen/component-base": "^1.1.3",
|
|
36
|
-
"@kaizen/component-library": "^16.4.1-canary.
|
|
37
|
-
"@kaizen/date-picker": "^5.19.3-canary.
|
|
36
|
+
"@kaizen/component-library": "^16.4.1-canary.5+94347e6d9",
|
|
37
|
+
"@kaizen/date-picker": "^5.19.3-canary.5+94347e6d9",
|
|
38
38
|
"@kaizen/design-tokens": "^10.3.1",
|
|
39
|
-
"@kaizen/draft-avatar": "^2.8.28-canary.
|
|
39
|
+
"@kaizen/draft-avatar": "^2.8.28-canary.5+94347e6d9",
|
|
40
40
|
"@kaizen/draft-badge": "^1.13.6",
|
|
41
41
|
"@kaizen/draft-card": "^3.2.6",
|
|
42
|
-
"@kaizen/draft-collapsible": "^3.5.21-canary.
|
|
42
|
+
"@kaizen/draft-collapsible": "^3.5.21-canary.5+94347e6d9",
|
|
43
43
|
"@kaizen/draft-divider": "^2.2.6",
|
|
44
|
-
"@kaizen/draft-empty-state": "^5.3.28-canary.
|
|
45
|
-
"@kaizen/draft-filter-menu-button": "^2.6.34-canary.
|
|
46
|
-
"@kaizen/draft-form": "^10.3.2-canary.
|
|
47
|
-
"@kaizen/draft-guidance-block": "^6.1.17-canary.
|
|
44
|
+
"@kaizen/draft-empty-state": "^5.3.28-canary.5+94347e6d9",
|
|
45
|
+
"@kaizen/draft-filter-menu-button": "^2.6.34-canary.5+94347e6d9",
|
|
46
|
+
"@kaizen/draft-form": "^10.3.2-canary.5+94347e6d9",
|
|
47
|
+
"@kaizen/draft-guidance-block": "^6.1.17-canary.5+94347e6d9",
|
|
48
48
|
"@kaizen/draft-hero-card": "^2.2.15",
|
|
49
|
-
"@kaizen/draft-illustration": "^6.0.19-canary.
|
|
50
|
-
"@kaizen/draft-likert-scale-legacy": "^1.10.42-canary.
|
|
51
|
-
"@kaizen/draft-menu": "^4.8.33-canary.
|
|
52
|
-
"@kaizen/draft-modal": "^10.6.3-canary.
|
|
49
|
+
"@kaizen/draft-illustration": "^6.0.19-canary.5+94347e6d9",
|
|
50
|
+
"@kaizen/draft-likert-scale-legacy": "^1.10.42-canary.5+94347e6d9",
|
|
51
|
+
"@kaizen/draft-menu": "^4.8.33-canary.5+94347e6d9",
|
|
52
|
+
"@kaizen/draft-modal": "^10.6.3-canary.5+94347e6d9",
|
|
53
53
|
"@kaizen/draft-page-layout": "^2.3.7",
|
|
54
|
-
"@kaizen/draft-popover": "^5.3.2-canary.
|
|
55
|
-
"@kaizen/draft-select": "^2.10.23-canary.
|
|
56
|
-
"@kaizen/draft-table": "^5.6.18-canary.
|
|
57
|
-
"@kaizen/draft-tabs": "^5.2.28-canary.
|
|
58
|
-
"@kaizen/draft-tag": "^3.4.2-canary.
|
|
59
|
-
"@kaizen/draft-tile": "^5.9.28-canary.
|
|
60
|
-
"@kaizen/draft-title-block-zen": "^7.9.8-canary.
|
|
61
|
-
"@kaizen/draft-tooltip": "^5.4.30-canary.
|
|
54
|
+
"@kaizen/draft-popover": "^5.3.2-canary.5+94347e6d9",
|
|
55
|
+
"@kaizen/draft-select": "^2.10.23-canary.5+94347e6d9",
|
|
56
|
+
"@kaizen/draft-table": "^5.6.18-canary.5+94347e6d9",
|
|
57
|
+
"@kaizen/draft-tabs": "^5.2.28-canary.5+94347e6d9",
|
|
58
|
+
"@kaizen/draft-tag": "^3.4.2-canary.5+94347e6d9",
|
|
59
|
+
"@kaizen/draft-tile": "^5.9.28-canary.5+94347e6d9",
|
|
60
|
+
"@kaizen/draft-title-block-zen": "^7.9.8-canary.5+94347e6d9",
|
|
61
|
+
"@kaizen/draft-tooltip": "^5.4.30-canary.5+94347e6d9",
|
|
62
62
|
"@kaizen/draft-well": "^4.3.3",
|
|
63
63
|
"@kaizen/hosted-assets": "^2.0.1",
|
|
64
64
|
"@kaizen/loading-skeleton": "^2.0.2",
|
|
65
65
|
"@kaizen/loading-spinner": "^2.3.6",
|
|
66
|
-
"@kaizen/notification": "^1.4.2-canary.
|
|
67
|
-
"@kaizen/pagination": "^1.6.28-canary.
|
|
68
|
-
"@kaizen/progress-bar": "^2.3.21-canary.
|
|
66
|
+
"@kaizen/notification": "^1.4.2-canary.5+94347e6d9",
|
|
67
|
+
"@kaizen/pagination": "^1.6.28-canary.5+94347e6d9",
|
|
68
|
+
"@kaizen/progress-bar": "^2.3.21-canary.5+94347e6d9",
|
|
69
69
|
"@kaizen/responsive": "^1.8.5",
|
|
70
|
-
"@kaizen/rich-text-editor": "^1.19.32-canary.
|
|
71
|
-
"@kaizen/select": "^6.13.9-canary.
|
|
72
|
-
"@kaizen/split-button": "^1.3.35-canary.
|
|
73
|
-
"@kaizen/tabs": "^1.5.32-canary.
|
|
70
|
+
"@kaizen/rich-text-editor": "^1.19.32-canary.5+94347e6d9",
|
|
71
|
+
"@kaizen/select": "^6.13.9-canary.5+94347e6d9",
|
|
72
|
+
"@kaizen/split-button": "^1.3.35-canary.5+94347e6d9",
|
|
73
|
+
"@kaizen/tabs": "^1.5.32-canary.5+94347e6d9",
|
|
74
74
|
"@kaizen/tailwind": "^0.5.1",
|
|
75
75
|
"@kaizen/typography": "^2.3.6",
|
|
76
76
|
"classnames": "^2.3.2"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "94347e6d92d9d1ca40853e07b2f8d95f785223ac"
|
|
89
89
|
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
3
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/color";
|
|
4
|
-
@import "../../styles/layers";
|
|
5
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/type";
|
|
6
|
-
|
|
7
|
-
$width: 248px;
|
|
8
|
-
$caButton-border-width: $border-solid-border-width;
|
|
9
|
-
$caButton-verticalPadding: calc(
|
|
10
|
-
calc(#{$ca-grid} / 2) - #{$caButton-border-width}
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
.dropdown {
|
|
14
|
-
position: relative;
|
|
15
|
-
padding: $caButton-verticalPadding
|
|
16
|
-
calc(#{$ca-grid * 1} - #{$caButton-border-width});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.buttonReset {
|
|
20
|
-
appearance: none;
|
|
21
|
-
display: inline;
|
|
22
|
-
background: transparent;
|
|
23
|
-
color: inherit;
|
|
24
|
-
font: inherit;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 0;
|
|
28
|
-
border: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// @TODO - this should be using Kaizen's button
|
|
32
|
-
.dropdownButton {
|
|
33
|
-
@include kz-type-inter-button-primary;
|
|
34
|
-
@include ca-inherit-baseline;
|
|
35
|
-
composes: buttonReset;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
display: flex;
|
|
38
|
-
height: 100%;
|
|
39
|
-
width: 100%;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dropdownControlAction {
|
|
45
|
-
@include kz-type-inter-button-primary;
|
|
46
|
-
@include ca-inherit-baseline;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.dropdownIcon {
|
|
50
|
-
box-sizing: border-box;
|
|
51
|
-
width: $ca-grid;
|
|
52
|
-
height: $ca-grid;
|
|
53
|
-
padding: 2px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.dropdownIcon + .dropdownLabel {
|
|
57
|
-
margin-left: calc(#{$ca-grid} / 2 - 2px);
|
|
58
|
-
|
|
59
|
-
[dir="rtl"] & {
|
|
60
|
-
margin-left: 0;
|
|
61
|
-
margin-right: calc(#{$ca-grid} / 2 - 2px);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// If you would like the dropdown icon to only be visible when a certain area is hovered,
|
|
66
|
-
// have you hover area use (or compose) the `dropdownHoverArea` class. The label will
|
|
67
|
-
// always be visible.
|
|
68
|
-
.dropdownHoverArea {
|
|
69
|
-
.dropdownIcon {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
&.isOpen,
|
|
72
|
-
&:focus {
|
|
73
|
-
opacity: 1;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
&:hover .dropdownIcon {
|
|
77
|
-
opacity: 1;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.chevronIcon {
|
|
82
|
-
position: relative;
|
|
83
|
-
top: 4px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.menuContainer {
|
|
87
|
-
position: absolute;
|
|
88
|
-
width: $width;
|
|
89
|
-
z-index: $ca-z-index-dropdown;
|
|
90
|
-
right: 0;
|
|
91
|
-
|
|
92
|
-
[dir="rtl"] & {
|
|
93
|
-
right: auto;
|
|
94
|
-
left: 0;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.reversedColor {
|
|
99
|
-
color: $color-white;
|
|
100
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
@import "./styles";
|
|
2
|
-
@import "~@kaizen/component-library/styles/utils";
|
|
3
|
-
|
|
4
|
-
.root {
|
|
5
|
-
@extend %root;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.navigationBar {
|
|
9
|
-
@extend %navigation-bar;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
top: 0;
|
|
12
|
-
z-index: $ca-z-index-fixed;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.page {
|
|
16
|
-
@extend %page;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
position: relative;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.header {
|
|
22
|
-
@extend %header;
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.body {
|
|
27
|
-
@extend %body;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.bodyInner {
|
|
32
|
-
@extend %body-inner;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.sidebar {
|
|
36
|
-
@extend %sidebar;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.content {
|
|
41
|
-
@extend %content;
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.footer {
|
|
46
|
-
@extend %footer;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.toasts {
|
|
51
|
-
position: absolute;
|
|
52
|
-
top: 0;
|
|
53
|
-
right: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.announcers {
|
|
57
|
-
@include sr-only();
|
|
58
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@import "./Base.module.scss";
|
|
2
|
-
|
|
3
|
-
@each $fraction, $margin in $spacing-list {
|
|
4
|
-
.m-#{$fraction} {
|
|
5
|
-
margin: $margin;
|
|
6
|
-
}
|
|
7
|
-
.mt-#{$fraction} {
|
|
8
|
-
margin-top: $margin;
|
|
9
|
-
}
|
|
10
|
-
.mr-#{$fraction} {
|
|
11
|
-
margin-right: $margin;
|
|
12
|
-
}
|
|
13
|
-
.mb-#{$fraction} {
|
|
14
|
-
margin-bottom: $margin;
|
|
15
|
-
}
|
|
16
|
-
.ml-#{$fraction} {
|
|
17
|
-
margin-left: $margin;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/shadow";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
4
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/layout";
|
|
5
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/type";
|
|
6
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/color";
|
|
7
|
-
@import "../../styles/border";
|
|
8
|
-
@import "../../styles/layers";
|
|
9
|
-
@import "../../styles/animation";
|
|
10
|
-
|
|
11
|
-
$side-padding: calc(calc(3 / 4) * #{$ca-grid});
|
|
12
|
-
|
|
13
|
-
.menuList {
|
|
14
|
-
background: white;
|
|
15
|
-
border: $border-solid-border-width $border-solid-border-style
|
|
16
|
-
$color-purple-200;
|
|
17
|
-
box-shadow: $shadow-small-box-shadow;
|
|
18
|
-
line-height: 40px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.header {
|
|
22
|
-
padding: 10px $side-padding;
|
|
23
|
-
text-align: left;
|
|
24
|
-
color: rgba($color-purple-800-rgb, 0.4);
|
|
25
|
-
border-bottom: $ca-border-color 1px solid;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.header__title {
|
|
29
|
-
@include kz-typography-heading-6;
|
|
30
|
-
@include ca-inherit-baseline;
|
|
31
|
-
display: block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.menuItem {
|
|
35
|
-
@include kz-typography-paragraph-body;
|
|
36
|
-
@include ca-inherit-baseline;
|
|
37
|
-
composes: interactiveIconWrapper from "../Icon/Icon.module.scss";
|
|
38
|
-
background: transparent;
|
|
39
|
-
color: $color-purple-800;
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
text-align: left;
|
|
42
|
-
|
|
43
|
-
transition: $ca-duration-immediate background-color ease,
|
|
44
|
-
$ca-duration-immediate color ease;
|
|
45
|
-
|
|
46
|
-
padding: 10px $side-padding;
|
|
47
|
-
text-decoration: none;
|
|
48
|
-
display: flex;
|
|
49
|
-
flex: 0 0 100%;
|
|
50
|
-
|
|
51
|
-
[dir="rtl"] & {
|
|
52
|
-
text-align: right;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&.menuItem--active,
|
|
56
|
-
&:hover,
|
|
57
|
-
&:focus {
|
|
58
|
-
background: $color-gray-100;
|
|
59
|
-
color: $color-blue-500;
|
|
60
|
-
// override Murmur global styles :(
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
|
|
63
|
-
.menuItem__Icon {
|
|
64
|
-
color: $color-blue-500;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.menuItem--active {
|
|
70
|
-
composes: active from "../Icon/Icon.module.scss";
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.menuItem--destructive {
|
|
74
|
-
color: $color-red-600;
|
|
75
|
-
.menuItem__Icon {
|
|
76
|
-
color: $color-red-600;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.menuItem__Label {
|
|
81
|
-
flex: 1;
|
|
82
|
-
|
|
83
|
-
:not(:only-child) {
|
|
84
|
-
@include ca-margin($end: calc(#{$ca-grid} / 2));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.menuItem__Icon {
|
|
89
|
-
text-align: right;
|
|
90
|
-
color: $color-purple-800;
|
|
91
|
-
position: relative;
|
|
92
|
-
top: 3px;
|
|
93
|
-
|
|
94
|
-
.hoverIcon & {
|
|
95
|
-
opacity: 0;
|
|
96
|
-
}
|
|
97
|
-
.menuItem--active &,
|
|
98
|
-
.hoverIcon:hover &,
|
|
99
|
-
.hoverIcon:focus & {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.separator {
|
|
105
|
-
height: 1px;
|
|
106
|
-
width: 100%;
|
|
107
|
-
border: 0;
|
|
108
|
-
background: $color-purple-200;
|
|
109
|
-
visibility: visible;
|
|
110
|
-
margin: 5px 0;
|
|
111
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@import "./Base.module.scss";
|
|
2
|
-
|
|
3
|
-
@each $fraction, $padding in $spacing-list {
|
|
4
|
-
.p-#{$fraction} {
|
|
5
|
-
padding: $padding;
|
|
6
|
-
}
|
|
7
|
-
.pt-#{$fraction} {
|
|
8
|
-
padding-top: $padding;
|
|
9
|
-
}
|
|
10
|
-
.pr-#{$fraction} {
|
|
11
|
-
padding-right: $padding;
|
|
12
|
-
}
|
|
13
|
-
.pb-#{$fraction} {
|
|
14
|
-
padding-bottom: $padding;
|
|
15
|
-
}
|
|
16
|
-
.pl-#{$fraction} {
|
|
17
|
-
padding-left: $padding;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/type";
|
|
2
|
-
|
|
3
|
-
.page-title,
|
|
4
|
-
h1.default-style {
|
|
5
|
-
@include ca-type-inter-page-title;
|
|
6
|
-
margin-bottom: $ca-grid;
|
|
7
|
-
margin-top: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.title,
|
|
11
|
-
h2.default-style {
|
|
12
|
-
@include ca-type-inter-title;
|
|
13
|
-
margin-bottom: $ca-grid;
|
|
14
|
-
margin-top: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.display,
|
|
18
|
-
h3.default-style {
|
|
19
|
-
@include ca-type-inter-display;
|
|
20
|
-
margin-bottom: $ca-grid;
|
|
21
|
-
margin-top: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.heading,
|
|
25
|
-
h4.default-style,
|
|
26
|
-
h5.default-style,
|
|
27
|
-
h6.default-style {
|
|
28
|
-
@include ca-type-inter-heading;
|
|
29
|
-
margin-bottom: $ca-grid;
|
|
30
|
-
margin-top: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.lede {
|
|
34
|
-
@include ca-type-inter-lede;
|
|
35
|
-
margin-bottom: $ca-grid;
|
|
36
|
-
margin-top: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.paragraph,
|
|
40
|
-
p.default-style {
|
|
41
|
-
@include ca-type-inter-body;
|
|
42
|
-
margin-bottom: $ca-grid;
|
|
43
|
-
margin-top: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.body,
|
|
47
|
-
.default-style {
|
|
48
|
-
@include ca-type-inter-body;
|
|
49
|
-
margin: 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.body-bold {
|
|
53
|
-
@include ca-type-inter-body-bold;
|
|
54
|
-
margin: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.small {
|
|
58
|
-
@include ca-type-inter-small;
|
|
59
|
-
margin: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.small-bold {
|
|
63
|
-
@include ca-type-inter-small-bold;
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.notification {
|
|
68
|
-
@include ca-type-inter-notification;
|
|
69
|
-
margin: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.label {
|
|
73
|
-
@include ca-type-inter-label;
|
|
74
|
-
margin: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.control-action {
|
|
78
|
-
@include ca-type-inter-control-action;
|
|
79
|
-
margin: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.button {
|
|
83
|
-
@include ca-type-inter-button;
|
|
84
|
-
margin: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// We double the class selector to increase specificity above rules like `h1.default-style`
|
|
88
|
-
.inheritBaseline.inheritBaseline {
|
|
89
|
-
@include ca-inherit-baseline;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Required for aligning text alongside other elements e.g. Button
|
|
93
|
-
.inline.inline {
|
|
94
|
-
display: inline-flex;
|
|
95
|
-
margin-bottom: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Alias classes for Elm CSS modules
|
|
99
|
-
.defaultStyle {
|
|
100
|
-
composes: default-style;
|
|
101
|
-
}
|
|
102
|
-
.pageTitle {
|
|
103
|
-
composes: page-title;
|
|
104
|
-
}
|
|
105
|
-
.bodyBold {
|
|
106
|
-
composes: body-bold;
|
|
107
|
-
}
|
|
108
|
-
.smallBold {
|
|
109
|
-
composes: small-bold;
|
|
110
|
-
}
|
|
111
|
-
.controlAction {
|
|
112
|
-
composes: control-action;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.zen-display-0 {
|
|
116
|
-
@include kz-typography-display-0;
|
|
117
|
-
margin-bottom: $ca-grid;
|
|
118
|
-
margin-top: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.zen-heading-1 {
|
|
122
|
-
@include kz-typography-heading-1;
|
|
123
|
-
margin-bottom: $ca-grid;
|
|
124
|
-
margin-top: 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.zen-heading-2 {
|
|
128
|
-
@include kz-typography-heading-2;
|
|
129
|
-
margin-bottom: $ca-grid;
|
|
130
|
-
margin-top: 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.zen-heading-3 {
|
|
134
|
-
@include kz-typography-heading-3;
|
|
135
|
-
margin-bottom: $ca-grid;
|
|
136
|
-
margin-top: 0;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.zen-data-large {
|
|
140
|
-
@include kz-typography-data-large;
|
|
141
|
-
margin-bottom: $ca-grid;
|
|
142
|
-
margin-top: 0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.zen-data-large-units {
|
|
146
|
-
@include kz-typography-data-large-units;
|
|
147
|
-
margin-bottom: $ca-grid;
|
|
148
|
-
margin-top: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.zen-data-medium {
|
|
152
|
-
@include kz-typography-data-medium;
|
|
153
|
-
margin-bottom: $ca-grid;
|
|
154
|
-
margin-top: 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.zen-data-medium-units {
|
|
158
|
-
@include kz-typography-data-medium-units;
|
|
159
|
-
margin-bottom: $ca-grid;
|
|
160
|
-
margin-top: 0;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.zen-data-small {
|
|
164
|
-
@include kz-typography-data-small;
|
|
165
|
-
margin-bottom: $ca-grid;
|
|
166
|
-
margin-top: 0;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.zen-data-small-units {
|
|
170
|
-
@include kz-typography-data-small-units;
|
|
171
|
-
margin-bottom: $ca-grid;
|
|
172
|
-
margin-top: 0;
|
|
173
|
-
}
|