@kaizen/components 1.78.1 → 1.79.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/__next__/Select/Select.cjs +6 -2
- package/dist/esm/src/__next__/Select/Select.mjs +6 -2
- package/dist/styles.css +10589 -10782
- package/dist/types/__next__/Select/Select.d.ts +6 -2
- package/package.json +1 -1
- package/src/Avatar/Avatar.module.css +137 -135
- package/src/AvatarGroup/AvatarGroup.module.css +58 -56
- package/src/Badge/Badge.module.css +98 -96
- package/src/Brand/Brand.module.css +5 -3
- package/src/BrandMoment/BrandMoment.module.css +147 -145
- package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
- package/src/Button/Button/Button.module.scss +135 -133
- package/src/Button/GenericButton/GenericButton.module.scss +81 -79
- package/src/Button/IconButton/IconButton.module.scss +20 -18
- package/src/ButtonGroup/ButtonGroup.module.css +38 -36
- package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
- package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
- package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
- package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
- package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
- package/src/Card/Card.module.css +91 -89
- package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
- package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
- package/src/ClearButton/ClearButton.module.scss +32 -30
- package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
- package/src/Container/Container.module.scss +11 -9
- package/src/Content/Content.module.scss +10 -8
- package/src/DateInput/DateInput/DateInput.module.scss +7 -5
- package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
- package/src/DatePicker/DatePicker.module.scss +7 -5
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
- package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
- package/src/Divider/Divider.module.scss +35 -33
- package/src/EmptyState/EmptyState.module.css +95 -93
- package/src/ErrorPage/ErrorPage.module.scss +4 -2
- package/src/FieldGroup/FieldGroup.module.scss +8 -6
- package/src/FieldMessage/FieldMessage.module.scss +53 -51
- package/src/Filter/Filter/Filter.module.css +5 -3
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
- package/src/Filter/FilterBar/FilterBar.module.css +17 -15
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
- package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
- package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
- package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
- package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
- package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
- package/src/Focusable/Focusable.module.scss +4 -2
- package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
- package/src/Heading/Heading.module.scss +87 -85
- package/src/Icon/_docs/icon.module.scss +35 -33
- package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
- package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
- package/src/Input/Input/Input.module.scss +217 -215
- package/src/Input/InputRange/InputRange.module.scss +138 -136
- package/src/Input/InputSearch/InputSearch.module.scss +155 -152
- package/src/Label/Label.module.scss +82 -80
- package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
- package/src/Link/Link.module.css +115 -113
- package/src/LinkButton/LinkButton.module.css +5 -3
- package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
- package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
- package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
- package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
- package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
- package/src/Loading/_mixins.scss +11 -9
- package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
- package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
- package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
- package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
- package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
- package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
- package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
- package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
- package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
- package/src/MultiSelect/MultiSelect.module.scss +7 -5
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
- package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
- package/src/Pagination/Pagination.module.scss +39 -37
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
- package/src/Popover/Popover.module.scss +187 -185
- package/src/ProgressBar/ProgressBar.module.scss +75 -73
- package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
- package/src/Radio/Radio/Radio.module.scss +60 -58
- package/src/Radio/RadioField/RadioField.module.scss +33 -31
- package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
- package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
- package/src/RichTextEditor/_mixins.scss +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
- package/src/SearchField/SearchField.module.scss +5 -3
- package/src/Select/Select.module.scss +17 -0
- package/src/Skirt/Skirt.module.scss +24 -22
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
- package/src/Slider/Slider.module.scss +34 -32
- package/src/SplitButton/SplitButton.module.scss +5 -3
- package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
- package/src/Table/Table.module.scss +251 -249
- package/src/Tabs/subcomponents/Tab.module.scss +81 -79
- package/src/Tabs/subcomponents/TabList.module.scss +8 -6
- package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
- package/src/Tag/Tag.module.scss +166 -164
- package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
- package/src/Text/Text.module.scss +57 -55
- package/src/TextArea/TextArea.module.css +102 -99
- package/src/TextAreaField/TextAreaField.module.scss +14 -12
- package/src/TextField/TextField.module.scss +16 -14
- package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
- package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
- package/src/TimeField/TimeField.module.scss +57 -55
- package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
- package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
- package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
- package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
- package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
- package/src/Tooltip/Tooltip.module.scss +139 -137
- package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
- package/src/Well/Well.module.css +104 -102
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
- package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
- package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
- package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
- package/src/__next__/Button/Button.module.css +220 -218
- package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
- package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
- package/src/__next__/Icon/Icon.module.css +40 -38
- package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
- package/src/__next__/Menu/Menu.module.css +30 -28
- package/src/__next__/Menu/MenuItem.module.css +41 -39
- package/src/__next__/Select/Select.module.scss +8 -6
- package/src/__next__/Select/Select.tsx +7 -1
- package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
- package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
- package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
- package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
- package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
- package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
- package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
- package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
- package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
- package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
- package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
- package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
- package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
- package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
- package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
- package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
- package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
- package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +29 -60
- package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
- package/src/utils/AppearanceAnim.module.scss +14 -12
|
@@ -2,199 +2,200 @@
|
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/border';
|
|
3
3
|
@import '../../styles/utils/button-reset';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$arrow-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
// Sync with PopoverModern.tsx
|
|
7
|
+
$arrow-width: 14px;
|
|
8
|
+
$arrow-height: 7px;
|
|
9
|
+
|
|
10
|
+
$large-width: 450px;
|
|
11
|
+
|
|
12
|
+
// Suggestion: with this implementation, the anchor point of the popover is at the base of the triangle. But,
|
|
13
|
+
// we would ideally want it at the tip of the triangle. Otherwise, when using the popover, the consumer needs to manually
|
|
14
|
+
// add something like a `margin-top: 8px` to get the popover properly positioned.
|
|
15
|
+
// I didn't update this, as I didn't want to introduce a breaking change.
|
|
16
|
+
@mixin arrow($background-color, $border-color) {
|
|
17
|
+
&::before,
|
|
18
|
+
&::after {
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
border-left: calc(#{$arrow-width} / 2) solid transparent;
|
|
22
|
+
border-right: calc(#{$arrow-width} / 2) solid transparent;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&::before {
|
|
28
|
+
border-top: $arrow-height solid $border-color;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* The white fill of the triangle */
|
|
32
|
+
&::after {
|
|
33
|
+
border-top: $arrow-height solid $background-color;
|
|
34
|
+
margin-top: -1.5px;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
}
|
|
24
37
|
}
|
|
25
38
|
|
|
26
|
-
|
|
27
|
-
|
|
39
|
+
.root {
|
|
40
|
+
width: 220px;
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 50%;
|
|
43
|
+
// also see the component file under getRootStyle, which will transform the element
|
|
28
44
|
}
|
|
29
45
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
border-top: $arrow-height solid $background-color;
|
|
33
|
-
margin-top: -1.5px;
|
|
34
|
-
z-index: 1;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.root {
|
|
39
|
-
width: 220px;
|
|
40
|
-
position: absolute;
|
|
41
|
-
left: 50%;
|
|
42
|
-
// also see the component file under getRootStyle, which will transform the element
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
%box {
|
|
46
|
-
--border-width: var(--border-width-1);
|
|
47
|
-
|
|
48
|
-
border: var(--border-width) var(--border-solid-border-style);
|
|
49
|
-
filter: drop-shadow(0 0 7px rgb(0, 0, 0, 0.1));
|
|
50
|
-
border-radius: $border-solid-border-radius;
|
|
51
|
-
color: $color-purple-800;
|
|
52
|
-
text-align: start;
|
|
53
|
-
padding-block: calc(var(--spacing-12) - var(--border-width))
|
|
54
|
-
calc(var(--spacing-16) - var(--border-width));
|
|
55
|
-
padding-inline: calc(var(--spacing-16) - var(--border-width));
|
|
56
|
-
}
|
|
46
|
+
%box {
|
|
47
|
+
--border-width: var(--border-width-1);
|
|
57
48
|
|
|
58
|
-
|
|
49
|
+
border: var(--border-width) var(--border-solid-border-style);
|
|
50
|
+
filter: drop-shadow(0 0 7px rgb(0, 0, 0, 0.1));
|
|
51
|
+
border-radius: $border-solid-border-radius;
|
|
52
|
+
color: $color-purple-800;
|
|
53
|
+
text-align: start;
|
|
54
|
+
padding-block: calc(var(--spacing-12) - var(--border-width))
|
|
55
|
+
calc(var(--spacing-16) - var(--border-width));
|
|
56
|
+
padding-inline: calc(var(--spacing-16) - var(--border-width));
|
|
57
|
+
}
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
@extend %box;
|
|
59
|
+
$default-box-border-color: var(--color-gray-500);
|
|
62
60
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
61
|
+
.defaultBox {
|
|
62
|
+
@extend %box;
|
|
66
63
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
64
|
+
background: var(--color-white);
|
|
65
|
+
border-color: $default-box-border-color;
|
|
66
|
+
}
|
|
70
67
|
|
|
71
|
-
|
|
68
|
+
.defaultArrow {
|
|
69
|
+
@include arrow(var(--color-white), $default-box-border-color);
|
|
70
|
+
}
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
@extend %box;
|
|
72
|
+
$informative-box-border-color: var(--color-blue-400);
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
74
|
+
.informativeBox {
|
|
75
|
+
@extend %box;
|
|
79
76
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
77
|
+
background: $color-blue-100;
|
|
78
|
+
border-color: $informative-box-border-color;
|
|
79
|
+
}
|
|
83
80
|
|
|
84
|
-
|
|
81
|
+
.informativeArrow {
|
|
82
|
+
@include arrow($color-blue-100, $informative-box-border-color);
|
|
83
|
+
}
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
@extend %box;
|
|
85
|
+
$positive-box-border-color: var(--color-green-500);
|
|
88
86
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
87
|
+
.positiveBox {
|
|
88
|
+
@extend %box;
|
|
92
89
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
90
|
+
background: $color-green-100;
|
|
91
|
+
border-color: $positive-box-border-color;
|
|
92
|
+
}
|
|
96
93
|
|
|
97
|
-
|
|
94
|
+
.positiveArrow {
|
|
95
|
+
@include arrow($color-green-100, $positive-box-border-color);
|
|
96
|
+
}
|
|
98
97
|
|
|
99
|
-
|
|
100
|
-
@extend %box;
|
|
98
|
+
$negative-box-border-color: var(--color-red-500);
|
|
101
99
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
100
|
+
.negativeBox {
|
|
101
|
+
@extend %box;
|
|
105
102
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
103
|
+
background: $color-red-100;
|
|
104
|
+
border-color: $negative-box-border-color;
|
|
105
|
+
}
|
|
109
106
|
|
|
110
|
-
|
|
107
|
+
.negativeArrow {
|
|
108
|
+
@include arrow($color-red-100, $negative-box-border-color);
|
|
109
|
+
}
|
|
111
110
|
|
|
112
|
-
|
|
113
|
-
@extend %box;
|
|
111
|
+
$cautionary-box-border-color: var(--color-yellow-700);
|
|
114
112
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
113
|
+
.cautionaryBox {
|
|
114
|
+
@extend %box;
|
|
118
115
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
116
|
+
background: $color-yellow-100;
|
|
117
|
+
border-color: $cautionary-box-border-color;
|
|
118
|
+
}
|
|
122
119
|
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
white-space: nowrap;
|
|
129
|
-
padding-inline-end: var(--spacing-24);
|
|
130
|
-
}
|
|
120
|
+
.cautionaryArrow {
|
|
121
|
+
@include arrow($color-yellow-100, $cautionary-box-border-color);
|
|
122
|
+
}
|
|
131
123
|
|
|
132
|
-
.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
.header {
|
|
125
|
+
position: relative;
|
|
126
|
+
margin-bottom: var(--spacing-6);
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
padding-inline-end: var(--spacing-24);
|
|
131
|
+
}
|
|
136
132
|
|
|
137
|
-
.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
133
|
+
.container {
|
|
134
|
+
position: relative;
|
|
135
|
+
white-space: pre-line;
|
|
136
|
+
}
|
|
141
137
|
|
|
142
|
-
.
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
.icon {
|
|
139
|
+
display: inherit;
|
|
140
|
+
margin-inline-end: var(--spacing-6);
|
|
141
|
+
}
|
|
145
142
|
|
|
146
|
-
.
|
|
147
|
-
|
|
148
|
-
}
|
|
143
|
+
.informativeIcon {
|
|
144
|
+
color: var(--color-blue-500);
|
|
145
|
+
}
|
|
149
146
|
|
|
150
|
-
.
|
|
151
|
-
|
|
152
|
-
}
|
|
147
|
+
.positiveIcon {
|
|
148
|
+
color: var(--color-green-500);
|
|
149
|
+
}
|
|
153
150
|
|
|
154
|
-
.
|
|
155
|
-
|
|
156
|
-
}
|
|
151
|
+
.negativeIcon {
|
|
152
|
+
color: var(--color-red-500);
|
|
153
|
+
}
|
|
157
154
|
|
|
158
|
-
.
|
|
159
|
-
|
|
155
|
+
.cautionaryIcon {
|
|
156
|
+
color: var(--color-yellow-700);
|
|
157
|
+
}
|
|
160
158
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
margin-left: auto;
|
|
164
|
-
display: inherit;
|
|
165
|
-
color: rgba($color-purple-800-rgb, 0.7);
|
|
159
|
+
.close {
|
|
160
|
+
@include button-reset;
|
|
166
161
|
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
position: absolute;
|
|
163
|
+
right: 0;
|
|
164
|
+
margin-left: auto;
|
|
165
|
+
display: inherit;
|
|
166
|
+
color: rgb($color-purple-800-rgb, 0.7);
|
|
167
|
+
|
|
168
|
+
&:hover {
|
|
169
|
+
color: $color-purple-800;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:focus {
|
|
173
|
+
outline: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&:focus-visible {
|
|
177
|
+
color: $color-purple-800;
|
|
178
|
+
outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
|
|
179
|
+
outline-offset: calc(-1 * #{$border-focus-ring-border-width});
|
|
180
|
+
border-radius: $border-borderless-border-radius;
|
|
181
|
+
}
|
|
169
182
|
}
|
|
170
183
|
|
|
171
|
-
|
|
172
|
-
|
|
184
|
+
.arrowWrapper {
|
|
185
|
+
position: absolute;
|
|
186
|
+
// Needed by popper, so it measures the size of the arrow correctly
|
|
187
|
+
width: $arrow-width;
|
|
188
|
+
height: $arrow-height;
|
|
173
189
|
}
|
|
174
190
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
border-radius: $border-borderless-border-radius;
|
|
191
|
+
.arrow {
|
|
192
|
+
// Needed by popper, so it measures the size of the arrow correctly
|
|
193
|
+
width: $arrow-width;
|
|
194
|
+
height: $arrow-height;
|
|
180
195
|
}
|
|
181
|
-
}
|
|
182
196
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
// Needed by popper, so it measures the size of the arrow correctly
|
|
186
|
-
width: $arrow-width;
|
|
187
|
-
height: $arrow-height;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.arrow {
|
|
191
|
-
// Needed by popper, so it measures the size of the arrow correctly
|
|
192
|
-
width: $arrow-width;
|
|
193
|
-
height: $arrow-height;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* stylelint-disable no-descending-specificity */
|
|
197
|
-
/**
|
|
197
|
+
/* stylelint-disable no-descending-specificity */
|
|
198
|
+
/**
|
|
198
199
|
* In the legacy popover, the "side" described the location of the arrow, and
|
|
199
200
|
* we use css classes to determine the placement.
|
|
200
201
|
* In the modern popover, the "side" describes the location of the popover
|
|
@@ -203,47 +204,48 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
203
204
|
* Hence, the confusion below.
|
|
204
205
|
*/
|
|
205
206
|
|
|
206
|
-
[data-popper-placement^='bottom'] .arrowWrapper {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
[data-popper-placement^='bottom'] .arrowWrapper {
|
|
208
|
+
bottom: 100%;
|
|
209
|
+
left: 50%;
|
|
210
|
+
margin-top: -9px;
|
|
210
211
|
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
.arrow {
|
|
213
|
+
transform: rotate(180deg);
|
|
214
|
+
}
|
|
213
215
|
}
|
|
214
|
-
}
|
|
215
216
|
|
|
216
|
-
[data-popper-placement^='left'] .arrowWrapper {
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
[data-popper-placement^='left'] .arrowWrapper {
|
|
218
|
+
right: 0;
|
|
219
|
+
margin-right: -10px;
|
|
219
220
|
|
|
220
|
-
|
|
221
|
-
|
|
221
|
+
.arrow {
|
|
222
|
+
transform: rotate(270deg);
|
|
223
|
+
}
|
|
222
224
|
}
|
|
223
|
-
}
|
|
224
225
|
|
|
225
|
-
[data-popper-placement^='right'] .arrowWrapper {
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
[data-popper-placement^='right'] .arrowWrapper {
|
|
227
|
+
left: 0;
|
|
228
|
+
margin-left: -10px;
|
|
228
229
|
|
|
229
|
-
|
|
230
|
-
|
|
230
|
+
.arrow {
|
|
231
|
+
transform: rotate(90deg);
|
|
232
|
+
}
|
|
231
233
|
}
|
|
232
|
-
}
|
|
233
234
|
|
|
234
|
-
[data-popper-placement^='top'] .arrowWrapper {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
235
|
+
[data-popper-placement^='top'] .arrowWrapper {
|
|
236
|
+
top: 100%;
|
|
237
|
+
left: 50%;
|
|
238
|
+
}
|
|
238
239
|
|
|
239
|
-
.large {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
240
|
+
.large {
|
|
241
|
+
width: auto;
|
|
242
|
+
max-width: $large-width;
|
|
243
|
+
}
|
|
243
244
|
|
|
244
|
-
.singleLine {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
.singleLine {
|
|
246
|
+
text-overflow: ellipsis;
|
|
247
|
+
white-space: nowrap; /* white-space and overflow are required for text-overflow to do anything */
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
}
|
|
250
|
+
/* stylelint-enable no-descending-specificity */
|
|
248
251
|
}
|
|
249
|
-
/* stylelint-enable no-descending-specificity */
|
|
@@ -1,95 +1,97 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/color';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
$height: 10px;
|
|
6
|
+
|
|
7
|
+
.subtext {
|
|
8
|
+
color: $color-purple-800;
|
|
9
|
+
padding-top: $spacing-6;
|
|
10
|
+
text-align: center;
|
|
11
|
+
opacity: 80%;
|
|
12
|
+
}
|
|
5
13
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
.progressBackground {
|
|
15
|
+
width: 100%;
|
|
16
|
+
background: $color-gray-300;
|
|
17
|
+
border-radius: $height;
|
|
18
|
+
height: $height;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
12
22
|
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
23
|
+
.progress {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
border-radius: $height;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
transition: transform 200ms ease;
|
|
29
|
+
background-color: var(--progressbar-background-color);
|
|
30
|
+
}
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
// ------------------------------
|
|
33
|
+
// Moods
|
|
34
|
+
// @deprecated use colors instead
|
|
35
|
+
// ------------------------------
|
|
36
|
+
.positive {
|
|
37
|
+
--progressbar-background-color: var(--color-green-400);
|
|
25
38
|
}
|
|
26
39
|
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
.informative {
|
|
41
|
+
--progressbar-background-color: var(--color-blue-400);
|
|
29
42
|
}
|
|
30
|
-
}
|
|
31
43
|
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
border-radius: $height;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
transition: transform 200ms ease;
|
|
38
|
-
background-color: var(--progressbar-background-color);
|
|
39
|
-
}
|
|
44
|
+
.cautionary {
|
|
45
|
+
--progressbar-background-color: var(--color-yellow-400);
|
|
46
|
+
}
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
// ------------------------------
|
|
45
|
-
.positive {
|
|
46
|
-
--progressbar-background-color: var(--color-green-400);
|
|
47
|
-
}
|
|
48
|
+
.negative {
|
|
49
|
+
--progressbar-background-color: var(--color-red-400);
|
|
50
|
+
}
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
--progressbar-background-color: var(--color-blue-400);
|
|
51
|
-
}
|
|
52
|
+
// End deprecated styles
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
54
|
+
// ------------------------------
|
|
55
|
+
// Colors
|
|
56
|
+
// ------------------------------
|
|
57
|
+
.blue {
|
|
58
|
+
--progressbar-background-color: var(--color-blue-400);
|
|
59
|
+
}
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
.green {
|
|
62
|
+
--progressbar-background-color: var(--color-green-400);
|
|
63
|
+
}
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
.blue {
|
|
67
|
-
--progressbar-background-color: var(--color-blue-400);
|
|
68
|
-
}
|
|
65
|
+
.red {
|
|
66
|
+
--progressbar-background-color: var(--color-red-400);
|
|
67
|
+
}
|
|
69
68
|
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
}
|
|
69
|
+
.yellow {
|
|
70
|
+
--progressbar-background-color: var(--color-yellow-400);
|
|
71
|
+
}
|
|
73
72
|
|
|
74
|
-
.
|
|
75
|
-
|
|
73
|
+
.isAnimating {
|
|
74
|
+
&::after {
|
|
75
|
+
background: linear-gradient(90deg, transparent, var(--color-white) 75%, transparent);
|
|
76
|
+
opacity: 25%;
|
|
77
|
+
content: '';
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: 0;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
width: 50%;
|
|
83
|
+
animation: pulse 2s infinite;
|
|
84
|
+
transition: opacity 0.2s;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
76
87
|
}
|
|
77
88
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
89
|
+
@keyframes pulse {
|
|
90
|
+
0% {
|
|
91
|
+
transform: translateX(-100%);
|
|
92
|
+
}
|
|
81
93
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
background: linear-gradient(90deg, transparent, var(--color-white) 75%, transparent);
|
|
85
|
-
opacity: 25%;
|
|
86
|
-
content: '';
|
|
87
|
-
position: absolute;
|
|
88
|
-
top: 0;
|
|
89
|
-
bottom: 0;
|
|
90
|
-
left: 0;
|
|
91
|
-
width: 50%;
|
|
92
|
-
animation: pulse 2s infinite;
|
|
93
|
-
transition: opacity 0.2s;
|
|
94
|
+
100% {
|
|
95
|
+
transform: translateX(200%);
|
|
94
96
|
}
|
|
95
97
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/color';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.label {
|
|
6
|
+
padding-bottom: $spacing-6;
|
|
7
|
+
color: $color-purple-800;
|
|
8
|
+
text-align: center;
|
|
9
|
+
}
|
|
8
10
|
}
|