@linzjs/lui 10.11.1 → 10.11.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/CHANGELOG.md +28 -0
- package/README.md +7 -5
- package/dist/components/LuiIcon/LuiIcon.d.ts +4 -0
- package/dist/components/LuiTabs/LuiTab/LuiTab.d.ts +11 -0
- package/dist/components/LuiTabs/LuiTabs.d.ts +1 -21
- package/dist/components/LuiTabs/LuiTabsGroup/LuiTabsGroup.d.ts +6 -0
- package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.d.ts +7 -0
- package/dist/components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch.d.ts +7 -0
- package/dist/index.d.ts +5 -1
- package/dist/lui.cjs.development.js +62 -45
- package/dist/lui.cjs.development.js.map +1 -1
- package/dist/lui.cjs.production.min.js +1 -1
- package/dist/lui.cjs.production.min.js.map +1 -1
- package/dist/lui.css +175 -215
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +60 -43
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/Footer/footer.scss +5 -5
- package/dist/scss/Components/Header/header.scss +1 -1
- package/dist/scss/Components/HelpSection/help-section.scss +1 -1
- package/dist/scss/Components/LOLCommonMenu/LOLAuthorisedLink.scss +4 -4
- package/dist/scss/Components/LOLCommonMenu/LOLFirmSwitcherMenu.scss +2 -2
- package/dist/scss/Components/LOLCommonMenu/LOLUserLastLogin.scss +1 -1
- package/dist/scss/Components/LuiFormElements/LuiFileInputBox.scss +2 -3
- package/dist/scss/Components/LuiTabs/LuiTabs.scss +0 -58
- package/dist/scss/Components/Menu/menu.scss +7 -7
- package/dist/scss/Components/Messaging/messaging.scss +5 -5
- package/dist/scss/Components/Modal/modal.scss +3 -3
- package/dist/scss/Components/Notifications/notifications.scss +2 -2
- package/dist/scss/Elements/Buttons/buttons.scss +38 -38
- package/dist/scss/Elements/Forms/FormComponents/Inputs.scss +2 -2
- package/dist/scss/Elements/Forms/FormComponents/RadiosCheckboxes.scss +3 -3
- package/dist/scss/Elements/Icons/icons.scss +1 -1
- package/dist/scss/Elements/Tables/tables.scss +8 -8
- package/dist/scss/Foundation/Utilities/Borders.scss +1 -1
- package/dist/scss/Foundation/Utilities/LuiStandardHeaderBackground.scss +2 -2
- package/dist/scss/Foundation/Variables/FormVars.scss +1 -1
- package/dist/scss/Foundation/Variables/_ExportCSS.scss +87 -59
- package/dist/scss/Foundation/Variables/_ExportColors.scss +52 -51
- package/dist/scss/Foundation/Variables/_LuiColors.scss +113 -119
- package/dist/scss/Global/GenericElements/Link.scss +3 -3
- package/dist/scss/Global/GenericElements/Todo.scss +1 -1
- package/dist/scss/Global/GenericElements/Typography.scss +2 -2
- package/dist/scss/Global/Layout/Layout.scss +3 -3
- package/dist/scss/Vendor/print.scss +2 -2
- package/dist/scss/base.scss +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [10.11.5](https://github.com/linz/lui/compare/v10.11.4...v10.11.5) (2021-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* testing whitespace addition ([#481](https://github.com/linz/lui/issues/481)) ([5fb5d8d](https://github.com/linz/lui/commit/5fb5d8db22cac7367ffb14191ed3f705f6457213))
|
|
7
|
+
|
|
8
|
+
## [10.11.4](https://github.com/linz/lui/compare/v10.11.3...v10.11.4) (2021-12-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* CHangelog rolled back ([#479](https://github.com/linz/lui/issues/479)) ([e3af886](https://github.com/linz/lui/commit/e3af8867a80dcdc996d7e7b31be872b266a0a584))
|
|
14
|
+
|
|
15
|
+
## [10.11.3](https://github.com/linz/lui/compare/v10.11.2...v10.11.3) (2021-11-29)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* make story book a dev dependency so its not force on lui's dependants ([#475](https://github.com/linz/lui/issues/475)) ([4e1d67d](https://github.com/linz/lui/commit/4e1d67db4c8e1ca62eeee29a6dc7c5aae88367d5))
|
|
21
|
+
|
|
22
|
+
## [10.11.2](https://github.com/linz/lui/compare/v10.11.1...v10.11.2) (2021-11-19)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* Adds LuiIcon Import scss ([#472](https://github.com/linz/lui/issues/472)) ([5e69e4b](https://github.com/linz/lui/commit/5e69e4b2365dfb68366d9ded8c490fdc89ee5661))
|
|
28
|
+
|
|
1
29
|
## [10.11.1](https://github.com/linz/lui/compare/v10.11.0...v10.11.1) (2021-11-17)
|
|
2
30
|
|
|
3
31
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lui - Linz User Interface
|
|
2
2
|
|
|
3
|
-
>It's written in CSS and has a React wrapper!
|
|
3
|
+
> It's written in CSS and has a React wrapper!
|
|
4
4
|
>
|
|
5
5
|
> ## You do not need to be using React to use Lui
|
|
6
6
|
>
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
[](https://badge.fury.io/js/%40linzjs%2Flui)
|
|
12
12
|
|
|
13
13
|

|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
> Lui _[Onychophora](https://en.wikipedia.org/wiki/Onychophora)_, the happy UI worm!
|
|
15
16
|
|
|
16
17
|
Nomenclature: Lui is a backronym for Linz User Interface. Lui the library, is named after Lui the worm.
|
|
17
18
|
|
|
@@ -21,6 +22,7 @@ _It was foreseen in the stars that Lui was destined for greatness, a UI library
|
|
|
21
22
|
- [🎨 Lui on Figma](https://www.figma.com/file/E7g3n5ziI7bR8MisISayia/LUI-components)
|
|
22
23
|
- [🔁 Lui on Github](https://github.com/linz/Lui)
|
|
23
24
|
- [🔎 Lui on Chromatic](https://www.chromatic.com/builds?appId=5eaf53c737a54a0022e6749c)
|
|
25
|
+
- [📄 Lui on UX Confluence](https://confluence.linz.govt.nz/display/STEP/Lui+%28LINZ+User+Interface%29+Design+system)
|
|
24
26
|
- [💬 Lui Community of Practice on LINZ Slack - #cop-lui](https://linz.slack.com/archives/CP807EN31)
|
|
25
27
|
|
|
26
28
|
and...
|
|
@@ -29,11 +31,11 @@ and...
|
|
|
29
31
|
|
|
30
32
|
---
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
_Lui_ is a collection of generic UI components that adhere to the new LINZ digital style guide, lead by STEP and welcoming contributions from across LINZ.
|
|
33
35
|
|
|
34
|
-
It aims to solve the problem of consistent UI across LINZ
|
|
36
|
+
It aims to solve the problem of consistent UI across LINZ while giving squads a bunch of base elements they can start using out of the box.
|
|
35
37
|
|
|
36
|
-
We aim to make each component generic, extendable and
|
|
38
|
+
We aim to make each component generic, extendable, accessible, and amazingly great.
|
|
37
39
|
|
|
38
40
|
All styles are implemented in SASS and compiled to plain CSS. This means any team can use the CSS. A ReactJS wrapper over the CSS is part of this project.
|
|
39
41
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import './LuiIcon.scss';
|
|
2
3
|
export declare const ICONS: {
|
|
3
4
|
ic_account_circle: JSX.Element;
|
|
4
5
|
ic_add_circle_outline: JSX.Element;
|
|
@@ -68,6 +69,9 @@ export declare const ICON_STATUS: {
|
|
|
68
69
|
none: string;
|
|
69
70
|
error: string;
|
|
70
71
|
warning: string;
|
|
72
|
+
success: string;
|
|
73
|
+
interactive: string;
|
|
74
|
+
disabled: string;
|
|
71
75
|
};
|
|
72
76
|
export declare const LuiIcon: ({ name, className, size, title, alt, status, spanProps, }: LuiIconProps) => JSX.Element | null;
|
|
73
77
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './LuiTab.scss';
|
|
3
|
+
interface LuiTabProps {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
active: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
ariaControls: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const LuiTab: React.FC<LuiTabProps>;
|
|
11
|
+
export {};
|
|
@@ -4,27 +4,7 @@ interface ILuiTabsContext {
|
|
|
4
4
|
setActivePanel: (activePanel: string) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const LuiTabsContext: React.Context<ILuiTabsContext>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const LuiTabs: React.FC<{
|
|
8
8
|
defaultPanel: string;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const LuiTabGroup: React.FC<{
|
|
11
|
-
ariaLabel: string;
|
|
12
|
-
justify?: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
interface LuiTabsPanelSwitch {
|
|
15
|
-
targetPanel: string;
|
|
16
|
-
setActivePanel?: (targetPanel: string) => {};
|
|
17
|
-
}
|
|
18
|
-
export declare const LuiTabsPanelSwitch: React.FC<LuiTabsPanelSwitch>;
|
|
19
|
-
interface LuiTabProps {
|
|
20
|
-
onClick: () => void;
|
|
21
|
-
active: boolean;
|
|
22
|
-
id: string;
|
|
23
|
-
ariaControls: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const LuiTab: React.FC<LuiTabProps>;
|
|
26
|
-
interface LuiTabPanelProps {
|
|
27
|
-
panel: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const LuiTabPanel: React.FC<LuiTabPanelProps>;
|
|
30
10
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,11 @@ export { LuiButtonGroup } from './components/LuiButton/LuiButton';
|
|
|
7
7
|
export { LuiExpandableBanner } from './components/LuiExpandableBanner/LuiExpandableBanner';
|
|
8
8
|
export { LuiMenu, LuiControlledMenu, LuiMenuItem, LuiMenuDivider, LuiMenuHeader, } from './components/LuiMenu/LuiMenu';
|
|
9
9
|
export { LuiFilterMenu } from './components/LuiFilterMenu/LuiFilterMenu';
|
|
10
|
-
export
|
|
10
|
+
export { LuiTabs, LuiTabsContext } from './components/LuiTabs/LuiTabs';
|
|
11
|
+
export { LuiTab } from './components/LuiTabs/LuiTab/LuiTab';
|
|
12
|
+
export { LuiTabsGroup } from './components/LuiTabs/LuiTabsGroup/LuiTabsGroup';
|
|
13
|
+
export { LuiTabsPanel } from './components/LuiTabs/LuiTabsPanel/LuiTabsPanel';
|
|
14
|
+
export { LuiTabsPanelSwitch } from './components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch';
|
|
11
15
|
export { LuiCommonInputProps, LuiFormikForm, } from './components/LuiFormikForms/LuiFormikForm';
|
|
12
16
|
export { LuiFormikCheckbox } from './components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox';
|
|
13
17
|
export { LuiFormikTextInput } from './components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput';
|
|
@@ -548,13 +548,13 @@ var LuiTabsContext = /*#__PURE__*/React__default.createContext({
|
|
|
548
548
|
activePanel: null,
|
|
549
549
|
setActivePanel: function setActivePanel() {}
|
|
550
550
|
});
|
|
551
|
-
var
|
|
551
|
+
var LuiTabs = function LuiTabs(props) {
|
|
552
552
|
var _useState = React.useState(props.defaultPanel),
|
|
553
553
|
activePanel = _useState[0],
|
|
554
554
|
setActivePanel = _useState[1];
|
|
555
555
|
|
|
556
556
|
return React__default.createElement("div", {
|
|
557
|
-
className:
|
|
557
|
+
className: "LuiTabs"
|
|
558
558
|
}, React__default.createElement(LuiTabsContext.Provider, {
|
|
559
559
|
value: {
|
|
560
560
|
activePanel: activePanel,
|
|
@@ -562,30 +562,15 @@ var LuiTabsPanelWrapper = function LuiTabsPanelWrapper(props) {
|
|
|
562
562
|
}
|
|
563
563
|
}, props.children));
|
|
564
564
|
};
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
"aria-label": props.ariaLabel
|
|
572
|
-
}, props.children));
|
|
573
|
-
};
|
|
574
|
-
var LuiTabsPanelSwitch = function LuiTabsPanelSwitch(props) {
|
|
575
|
-
var context = React.useContext(LuiTabsContext);
|
|
576
|
-
var active = context.activePanel === props.targetPanel;
|
|
577
|
-
return React__default.createElement(LuiTab, {
|
|
578
|
-
id: props.targetPanel + "-tab",
|
|
579
|
-
ariaControls: props.targetPanel + "-tab-panel",
|
|
580
|
-
active: active,
|
|
581
|
-
onClick: function onClick() {
|
|
582
|
-
if (context.setActivePanel) context.setActivePanel(props.targetPanel);
|
|
583
|
-
}
|
|
584
|
-
}, props.children);
|
|
585
|
-
};
|
|
565
|
+
|
|
566
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
567
|
+
|
|
568
|
+
var css = ":root {\n --grey-80: #2a292c;\n --grey-60: #6b6966;\n --$gray: #989189;\n --grey-20: #beb9b4;\n --grey-10: #eaeaea;\n --grey-05: #f9f9f9;\n --teal: #00425d;\n --sea: #007198;\n --electric: #0096cc;\n --spray: #73c8e1;\n --polar: #e2f3f7;\n --sherpa: #004b50;\n --surfie: #017a76;\n --persian: #00a599;\n --downy: #73cdc8;\n --iceberg: #dcf5f0;\n --sacramento: #004e32;\n --salem: #08814d;\n --pigment: #0aa245;\n --granny: #9bd79b;\n --panache: #e9fae7;\n --brand-primary: #004b50;\n --brand-secondary: #017a76;\n --success: #0aa245;\n --success-bg: #e9fae7;\n --info: #3a7cdf;\n --info-bg: #d8e5f9;\n --warning: #ea6a2e;\n --warning-bg: #fbdfd2;\n --error: #cc0000;\n --error-focus: #5a0000;\n --error-bg: #f5cccc;\n --visited: #00425d;\n --green-hover: #08814d;\n --color-green-active: #004e32;\n --green-btn: #0aa245;\n --txt-link: #0096cc;\n --color-primary-hover-btn: #007198;\n --color-selection: #c7e9f3;\n --heading-color: #017a76;\n --heading-color--secondary: #2a292c;\n --base-type-color: #2a292c;\n --base-icon-color: #007198;\n --disabled-color: #989189;\n --disabled-color-dark: #6b6966;\n --linz-color-primary: #023d48;\n --linz-color-primary-hover: #01818a;\n --linz-color-tertiary: #e1e44a;\n --linz-color-tertiary-hover: #cdcf59;\n --color-test-pink: #f09;\n --linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n --linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}\n\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.LuiTab_LuiTab__5d8d8010 {\n background: transparent;\n border-radius: 0;\n color: #2a292c;\n min-width: 10rem;\n font-family: \"Open Sans\", system-ui, sans-serif;\n font-style: normal;\n font-weight: normal;\n}\n.LuiTab_LuiTab__5d8d8010:focus {\n background-color: rgba(0, 165, 153, 0.2);\n}\n.LuiTab_LuiTabsGroup_Justified__5d8d8010 .LuiTab_LuiTab__5d8d8010 {\n width: 100%;\n}\n\n.LuiTab_LuiTab_Active__5d8d8010,\n.LuiTab_LuiTab_Active__5d8d8010:focus {\n font-family: \"Open Sans\", system-ui, sans-serif;\n font-style: normal;\n font-weight: 600;\n position: relative;\n outline: none;\n background: transparent;\n}\n.LuiTab_LuiTab_Active__5d8d8010:after,\n.LuiTab_LuiTab_Active__5d8d8010:focus:after {\n content: \"\";\n display: block;\n height: 4px;\n width: 100%;\n padding: 0 32px;\n left: 0;\n right: 0;\n bottom: -1px;\n box-sizing: border-box;\n background: linear-gradient(270deg, #73cdc8 1%, #00a599 100%);\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n position: absolute;\n}";
|
|
569
|
+
n(css,{});
|
|
570
|
+
|
|
586
571
|
var LuiTab = function LuiTab(props) {
|
|
587
572
|
return React__default.createElement("button", {
|
|
588
|
-
className: clsx('
|
|
573
|
+
className: clsx('LuiTab', props.active && 'LuiTab--active'),
|
|
589
574
|
id: props.id,
|
|
590
575
|
role: "tab",
|
|
591
576
|
"aria-selected": props.active,
|
|
@@ -593,17 +578,45 @@ var LuiTab = function LuiTab(props) {
|
|
|
593
578
|
onClick: props.onClick
|
|
594
579
|
}, props.children);
|
|
595
580
|
};
|
|
596
|
-
|
|
581
|
+
|
|
582
|
+
var css$1 = ":root {\n --grey-80: #2a292c;\n --grey-60: #6b6966;\n --$gray: #989189;\n --grey-20: #beb9b4;\n --grey-10: #eaeaea;\n --grey-05: #f9f9f9;\n --teal: #00425d;\n --sea: #007198;\n --electric: #0096cc;\n --spray: #73c8e1;\n --polar: #e2f3f7;\n --sherpa: #004b50;\n --surfie: #017a76;\n --persian: #00a599;\n --downy: #73cdc8;\n --iceberg: #dcf5f0;\n --sacramento: #004e32;\n --salem: #08814d;\n --pigment: #0aa245;\n --granny: #9bd79b;\n --panache: #e9fae7;\n --brand-primary: #004b50;\n --brand-secondary: #017a76;\n --success: #0aa245;\n --success-bg: #e9fae7;\n --info: #3a7cdf;\n --info-bg: #d8e5f9;\n --warning: #ea6a2e;\n --warning-bg: #fbdfd2;\n --error: #cc0000;\n --error-focus: #5a0000;\n --error-bg: #f5cccc;\n --visited: #00425d;\n --green-hover: #08814d;\n --color-green-active: #004e32;\n --green-btn: #0aa245;\n --txt-link: #0096cc;\n --color-primary-hover-btn: #007198;\n --color-selection: #c7e9f3;\n --heading-color: #017a76;\n --heading-color--secondary: #2a292c;\n --base-type-color: #2a292c;\n --base-icon-color: #007198;\n --disabled-color: #989189;\n --disabled-color-dark: #6b6966;\n --linz-color-primary: #023d48;\n --linz-color-primary-hover: #01818a;\n --linz-color-tertiary: #e1e44a;\n --linz-color-tertiary-hover: #cdcf59;\n --color-test-pink: #f09;\n --linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n --linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}\n\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.LuiTabsGroup_LuiTabsGroup__b045736d {\n border-bottom: 1px solid #beb9b4;\n}\n\n.LuiTabsGroup_LuiTabsGroup_Justified__b045736d {\n display: flex;\n justify-content: space-between;\n}";
|
|
583
|
+
n(css$1,{});
|
|
584
|
+
|
|
585
|
+
var LuiTabsGroup = function LuiTabsGroup(props) {
|
|
586
|
+
return React__default.createElement("div", {
|
|
587
|
+
className: "LuiTabsGroup " + (props.justify ? 'LuiTabsGroup--justified' : ''),
|
|
588
|
+
role: "tablist",
|
|
589
|
+
"aria-label": props.ariaLabel
|
|
590
|
+
}, props.children);
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
var css$2 = ":root {\n --grey-80: #2a292c;\n --grey-60: #6b6966;\n --$gray: #989189;\n --grey-20: #beb9b4;\n --grey-10: #eaeaea;\n --grey-05: #f9f9f9;\n --teal: #00425d;\n --sea: #007198;\n --electric: #0096cc;\n --spray: #73c8e1;\n --polar: #e2f3f7;\n --sherpa: #004b50;\n --surfie: #017a76;\n --persian: #00a599;\n --downy: #73cdc8;\n --iceberg: #dcf5f0;\n --sacramento: #004e32;\n --salem: #08814d;\n --pigment: #0aa245;\n --granny: #9bd79b;\n --panache: #e9fae7;\n --brand-primary: #004b50;\n --brand-secondary: #017a76;\n --success: #0aa245;\n --success-bg: #e9fae7;\n --info: #3a7cdf;\n --info-bg: #d8e5f9;\n --warning: #ea6a2e;\n --warning-bg: #fbdfd2;\n --error: #cc0000;\n --error-focus: #5a0000;\n --error-bg: #f5cccc;\n --visited: #00425d;\n --green-hover: #08814d;\n --color-green-active: #004e32;\n --green-btn: #0aa245;\n --txt-link: #0096cc;\n --color-primary-hover-btn: #007198;\n --color-selection: #c7e9f3;\n --heading-color: #017a76;\n --heading-color--secondary: #2a292c;\n --base-type-color: #2a292c;\n --base-icon-color: #007198;\n --disabled-color: #989189;\n --disabled-color-dark: #6b6966;\n --linz-color-primary: #023d48;\n --linz-color-primary-hover: #01818a;\n --linz-color-tertiary: #e1e44a;\n --linz-color-tertiary-hover: #cdcf59;\n --color-test-pink: #f09;\n --linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n --linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}\n\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.LuiTabsPanel_LuiTabsPanel__8085964d {\n display: none;\n}\n\n.LuiTabsPanel_LuiTabsPanel_Active__8085964d {\n display: block;\n overflow: auto;\n}";
|
|
594
|
+
n(css$2,{});
|
|
595
|
+
|
|
596
|
+
var LuiTabsPanel = function LuiTabsPanel(props) {
|
|
597
597
|
var context = React.useContext(LuiTabsContext);
|
|
598
598
|
var active = context.activePanel === props.panel;
|
|
599
599
|
return React__default.createElement("div", {
|
|
600
|
-
className: clsx('
|
|
600
|
+
className: clsx('LuiTabsPanel', active && 'LuiTabsPanel--active'),
|
|
601
601
|
id: props.panel + "-tab-panel",
|
|
602
602
|
role: "tabpanel",
|
|
603
603
|
"aria-labelledby": props.panel + "-tab"
|
|
604
604
|
}, props.children);
|
|
605
605
|
};
|
|
606
606
|
|
|
607
|
+
var LuiTabsPanelSwitch = function LuiTabsPanelSwitch(props) {
|
|
608
|
+
var context = React.useContext(LuiTabsContext);
|
|
609
|
+
var active = context.activePanel === props.targetPanel;
|
|
610
|
+
return React__default.createElement(LuiTab, {
|
|
611
|
+
id: props.targetPanel + "-tab",
|
|
612
|
+
ariaControls: props.targetPanel + "-tab-panel",
|
|
613
|
+
active: active,
|
|
614
|
+
onClick: function onClick() {
|
|
615
|
+
if (context.setActivePanel) context.setActivePanel(props.targetPanel);
|
|
616
|
+
}
|
|
617
|
+
}, props.children);
|
|
618
|
+
};
|
|
619
|
+
|
|
607
620
|
var _excluded$1 = ["className"];
|
|
608
621
|
function LuiFormikForm(props) {
|
|
609
622
|
// this spreads all keys, except className
|
|
@@ -825,6 +838,9 @@ var LuiFormikSelect = /*#__PURE__*/formik.connect(function (props) {
|
|
|
825
838
|
})));
|
|
826
839
|
});
|
|
827
840
|
|
|
841
|
+
var css$3 = ":root {\n --grey-80: #2a292c;\n --grey-60: #6b6966;\n --$gray: #989189;\n --grey-20: #beb9b4;\n --grey-10: #eaeaea;\n --grey-05: #f9f9f9;\n --teal: #00425d;\n --sea: #007198;\n --electric: #0096cc;\n --spray: #73c8e1;\n --polar: #e2f3f7;\n --sherpa: #004b50;\n --surfie: #017a76;\n --persian: #00a599;\n --downy: #73cdc8;\n --iceberg: #dcf5f0;\n --sacramento: #004e32;\n --salem: #08814d;\n --pigment: #0aa245;\n --granny: #9bd79b;\n --panache: #e9fae7;\n --brand-primary: #004b50;\n --brand-secondary: #017a76;\n --success: #0aa245;\n --success-bg: #e9fae7;\n --info: #3a7cdf;\n --info-bg: #d8e5f9;\n --warning: #ea6a2e;\n --warning-bg: #fbdfd2;\n --error: #cc0000;\n --error-focus: #5a0000;\n --error-bg: #f5cccc;\n --visited: #00425d;\n --green-hover: #08814d;\n --color-green-active: #004e32;\n --green-btn: #0aa245;\n --txt-link: #0096cc;\n --color-primary-hover-btn: #007198;\n --color-selection: #c7e9f3;\n --heading-color: #017a76;\n --heading-color--secondary: #2a292c;\n --base-type-color: #2a292c;\n --base-icon-color: #007198;\n --disabled-color: #989189;\n --disabled-color-dark: #6b6966;\n --linz-color-primary: #023d48;\n --linz-color-primary-hover: #01818a;\n --linz-color-tertiary: #e1e44a;\n --linz-color-tertiary-hover: #cdcf59;\n --color-test-pink: #f09;\n --linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n --linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}\n\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.LuiIcon_LuiIcon__5008522b {\n display: inline-block;\n height: 100%;\n width: 100%;\n}\n\n.LuiIcon_LuiIcon_Xl__5008522b {\n max-height: 64px;\n max-width: 64px;\n}\n.LuiIcon_LuiIcon_Xl__5008522b > svg {\n height: 64px;\n width: 64px;\n}\n\n.LuiIcon_LuiIcon_Lg__5008522b {\n max-height: 48px;\n max-width: 48px;\n}\n.LuiIcon_LuiIcon_Lg__5008522b > svg {\n height: 48px;\n width: 48px;\n}\n\n.LuiIcon_LuiIcon_Md__5008522b {\n height: 24px;\n max-height: 24px;\n max-width: 24px;\n width: 24px;\n}\n.LuiIcon_LuiIcon_Md__5008522b > svg {\n height: 24px;\n width: 24px;\n}\n\n.LuiIcon_LuiIcon_Sm__5008522b {\n max-height: 16px;\n max-width: 16px;\n}\n.LuiIcon_LuiIcon_Sm__5008522b > svg {\n height: 16px;\n width: 16px;\n}\n\n.LuiIcon_LuiIcon_Xs__5008522b {\n max-height: 12px;\n max-width: 12px;\n}\n.LuiIcon_LuiIcon_Xs__5008522b > svg {\n height: 12px;\n width: 12px;\n}\n\n.LuiIcon_LuiIcon_Warning__5008522b {\n fill: #ea6a2e;\n}\n\n.LuiIcon_LuiIcon_Error__5008522b {\n fill: #cc0000;\n}\n\n.LuiIcon_LuiIcon_Success__5008522b {\n fill: #0aa245;\n}\n\n.LuiIcon_LuiIcon_Interactive__5008522b {\n fill: #007198;\n}\n\n.LuiIcon_LuiIcon_Disabled__5008522b {\n fill: #989189;\n}";
|
|
842
|
+
n(css$3,{});
|
|
843
|
+
|
|
828
844
|
// NOTE: This is a generated file, nothing you do here matters
|
|
829
845
|
|
|
830
846
|
var ic_account_circle = /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -1121,7 +1137,10 @@ var ICON_SIZES = {
|
|
|
1121
1137
|
var ICON_STATUS = {
|
|
1122
1138
|
none: '',
|
|
1123
1139
|
error: 'LuiIcon--error',
|
|
1124
|
-
warning: 'LuiIcon--warning'
|
|
1140
|
+
warning: 'LuiIcon--warning',
|
|
1141
|
+
success: 'LuiIcon--success',
|
|
1142
|
+
interactive: 'LuiIcon--interactive',
|
|
1143
|
+
disabled: 'LuiIcon--disabled'
|
|
1125
1144
|
};
|
|
1126
1145
|
var LuiIcon = function LuiIcon(_ref) {
|
|
1127
1146
|
var name = _ref.name,
|
|
@@ -4647,11 +4666,9 @@ function isChromatic() {
|
|
|
4647
4666
|
return !!(window.navigator.userAgent.match(/Chromatic/) || window.location.href.match(/chromatic=true/));
|
|
4648
4667
|
}
|
|
4649
4668
|
|
|
4650
|
-
var
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
var modules_5b17bb95 = {"color-grey-80":"#414042","color-grey-60":"#55504b","color-grey-30":"#989189","color-grey-20":"#beb9b4","color-grey-10":"#eaeaea","color-grey-05":"#f9f9f9","color-blue-100":"#00425d","color-blue-75":"#007198","color-blue-50":"#0096cc","color-blue-25":"#73c8e1","color-blue-05":"#e2f3f7","color-teal-100":"#004b50","color-teal-75":"#017a76","color-teal-50":"#00a599","color-teal-25":"#73cdc8","color-teal-05":"#dcf5f0","color-green-100":"#004e32","color-green-75":"#08814d","color-green-50":"#0aa245","color-green-25":"#9bd79b","color-green-05":"#e9fae7","brand-primary":"#00425d","brand-secondary":"#017a76","color-success":"#0aa245","color-success-bg":"#e9fae7","color-info":"#3a7cdf","color-info-bg":"#d8e5f9","color-warning":"#ea6a2e","color-warning-bg":"#fbdfd2","color-error":"#cc0000","color-error-focus":"#5a0000","color-error-bg":"#f5cccc","color-visited":"#4c2c92","color-green-hover":"#205f12","color-green-active":"#16430c","color-green-btn":"#2e881a","color-txt-link":"#1f69c3","color-primary-hover-btn":"#004e6a","color-selection":"#c7e9f3","heading-color":"#017a76","heading-color--secondary":"#414042","base-type-color":"#414042","base-icon-color":"#007198","disabled-color":"#989189","disabled-color-dark":"#55504b","linz-color-primary":"#023d48","linz-color-primary-hover":"#01818a","linz-color-tertiary":"#e1e44a","linz-color-tertiary-hover":"#cdcf59","color-test-pink":"#f09","linz-linear-gradient-blue":"linear-gradient(70deg, #00425d 12%, #007198 100%)","linz-linear-gradient-teal":"linear-gradient(270deg, #00a599 1%, #73cdc8 100%)"};
|
|
4654
|
-
n(css,{});
|
|
4669
|
+
var css$4 = ":root {\n --grey-80: #2a292c;\n --grey-60: #6b6966;\n --$gray: #989189;\n --grey-20: #beb9b4;\n --grey-10: #eaeaea;\n --grey-05: #f9f9f9;\n --teal: #00425d;\n --sea: #007198;\n --electric: #0096cc;\n --spray: #73c8e1;\n --polar: #e2f3f7;\n --sherpa: #004b50;\n --surfie: #017a76;\n --persian: #00a599;\n --downy: #73cdc8;\n --iceberg: #dcf5f0;\n --sacramento: #004e32;\n --salem: #08814d;\n --pigment: #0aa245;\n --granny: #9bd79b;\n --panache: #e9fae7;\n --brand-primary: #004b50;\n --brand-secondary: #017a76;\n --success: #0aa245;\n --success-bg: #e9fae7;\n --info: #3a7cdf;\n --info-bg: #d8e5f9;\n --warning: #ea6a2e;\n --warning-bg: #fbdfd2;\n --error: #cc0000;\n --error-focus: #5a0000;\n --error-bg: #f5cccc;\n --visited: #00425d;\n --green-hover: #08814d;\n --color-green-active: #004e32;\n --green-btn: #0aa245;\n --txt-link: #0096cc;\n --color-primary-hover-btn: #007198;\n --color-selection: #c7e9f3;\n --heading-color: #017a76;\n --heading-color--secondary: #2a292c;\n --base-type-color: #2a292c;\n --base-icon-color: #007198;\n --disabled-color: #989189;\n --disabled-color-dark: #6b6966;\n --linz-color-primary: #023d48;\n --linz-color-primary-hover: #01818a;\n --linz-color-tertiary: #e1e44a;\n --linz-color-tertiary-hover: #cdcf59;\n --color-test-pink: #f09;\n --linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n --linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}";
|
|
4670
|
+
var modules_5b17bb95 = {"charcoal":"#2a292c","fuscous":"#6b6966","gray":"#989189","silver":"#beb9b4","lily":"#eaeaea","hint":"#f9f9f9","snow":"#ffffff","white":"#ffffff","teal":"#00425d","sea":"#007198","electric":"#0096cc","spray":"#73c8e1","polar":"#e2f3f7","sherpa":"#004b50","surfie":"#017a76","persian":"#00a599","downy":"#73cdc8","iceberg":"#dcf5f0","sacramento":"#004e32","salem":"#08814d","pigment":"#0aa245","granny":"#9bd79b","panache":"#e9fae7","brand-primary":"#004b50","brand-secondary":"#017a76","error":"#cc0000","error-bg":"#f5cccc","error-focus":"#5a0000","warning":"#ea6a2e","warning-bg":"#fbdfd2","warning-focus":"#b33a01","success":"#0aa245","success-bg":"#e9fae7","info":"#3a7cdf","info-bg":"#d8e5f9","visited":"#00425d","green-hover":"#08814d","green-active":"#004e32","green-btn":"#0aa245","txt-link":"#0096cc","primary-hover-btn":"#007198","selection":"#c7e9f3","heading-color":"#017a76","heading-color--secondary":"#2a292c","base-type-color":"#2a292c","base-icon-color":"#007198","disabled-color":"#989189","disabled-color-dark":"#6b6966","linz-color-primary":"#023d48","linz-color-primary-hover":"#01818a","linz-color-tertiary":"#e1e44a","linz-color-tertiary-hover":"#cdcf59","color-test-pink":"#f09","linz-linear-gradient-blue":"linear-gradient(70deg, #00425d 12%, #007198 100%)","linz-linear-gradient-teal":"linear-gradient(270deg, #00a599 1%, #73cdc8 100%)"};
|
|
4671
|
+
n(css$4,{});
|
|
4655
4672
|
|
|
4656
4673
|
/**
|
|
4657
4674
|
* A wrapper around React Select with Lui styling
|
|
@@ -4687,16 +4704,16 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
4687
4704
|
primary75: modules_5b17bb95['color-blue-50'],
|
|
4688
4705
|
primary50: modules_5b17bb95['color-blue-25'],
|
|
4689
4706
|
primary25: modules_5b17bb95['color-blue-05'],
|
|
4690
|
-
neutral90: modules_5b17bb95['
|
|
4691
|
-
neutral80: modules_5b17bb95['
|
|
4692
|
-
neutral70: modules_5b17bb95['
|
|
4693
|
-
neutral60: modules_5b17bb95['
|
|
4694
|
-
neutral50: modules_5b17bb95['
|
|
4695
|
-
neutral40: modules_5b17bb95['
|
|
4696
|
-
neutral30: modules_5b17bb95['
|
|
4697
|
-
neutral20: modules_5b17bb95['
|
|
4698
|
-
neutral10: modules_5b17bb95['
|
|
4699
|
-
neutral5: modules_5b17bb95['
|
|
4707
|
+
neutral90: modules_5b17bb95['grey-80'],
|
|
4708
|
+
neutral80: modules_5b17bb95['grey-80'],
|
|
4709
|
+
neutral70: modules_5b17bb95['grey-80'],
|
|
4710
|
+
neutral60: modules_5b17bb95['grey-60'],
|
|
4711
|
+
neutral50: modules_5b17bb95['grey-60'],
|
|
4712
|
+
neutral40: modules_5b17bb95['$gray'],
|
|
4713
|
+
neutral30: modules_5b17bb95['$gray'],
|
|
4714
|
+
neutral20: modules_5b17bb95['grey-20'],
|
|
4715
|
+
neutral10: modules_5b17bb95['grey-10'],
|
|
4716
|
+
neutral5: modules_5b17bb95['grey-05'],
|
|
4700
4717
|
danger: modules_5b17bb95['error'],
|
|
4701
4718
|
dangerLight: modules_5b17bb95['error-bg']
|
|
4702
4719
|
})
|
|
@@ -7078,11 +7095,11 @@ exports.LuiModal = LuiModal;
|
|
|
7078
7095
|
exports.LuiStaticMessage = LuiStaticMessage;
|
|
7079
7096
|
exports.LuiStatusSpinner = LuiStatusSpinner;
|
|
7080
7097
|
exports.LuiTab = LuiTab;
|
|
7081
|
-
exports.
|
|
7082
|
-
exports.LuiTabPanel = LuiTabPanel;
|
|
7098
|
+
exports.LuiTabs = LuiTabs;
|
|
7083
7099
|
exports.LuiTabsContext = LuiTabsContext;
|
|
7100
|
+
exports.LuiTabsGroup = LuiTabsGroup;
|
|
7101
|
+
exports.LuiTabsPanel = LuiTabsPanel;
|
|
7084
7102
|
exports.LuiTabsPanelSwitch = LuiTabsPanelSwitch;
|
|
7085
|
-
exports.LuiTabsPanelWrapper = LuiTabsPanelWrapper;
|
|
7086
7103
|
exports.LuiToastMessage = LuiToastMessage;
|
|
7087
7104
|
exports.LuiTooltip = LuiTooltip;
|
|
7088
7105
|
exports.LuiUpdatesSplashModal = LuiUpdatesSplashModal;
|