@kaizen/components 1.78.0 → 1.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
- package/dist/esm/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
- package/dist/styles.css +9823 -10017
- package/package.json +27 -26
- 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/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
- 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 -32
- 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 +103 -100
- 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/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 +21 -58
- package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
- package/src/utils/AppearanceAnim.module.scss +14 -12
|
@@ -3,104 +3,106 @@
|
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
4
4
|
@import '../GenericModal/GenericModal.module';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
@layer kz-components {
|
|
7
|
+
.modal {
|
|
8
|
+
@extend %genericModal;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
min-width: 300px;
|
|
11
|
+
max-width: 840px;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
14
|
+
width: 90%;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
.animatingEnter & {
|
|
18
|
+
animation-duration: $ca-duration-fast;
|
|
19
|
+
animation-fill-mode: forwards;
|
|
20
|
+
animation-timing-function: $ca-bounce-in;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
.animatingLeave & {
|
|
26
|
+
animation-duration: $ca-duration-rapid;
|
|
27
|
+
animation-fill-mode: forwards;
|
|
28
|
+
animation-timing-function: $ca-bounce-out;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
|
-
}
|
|
32
33
|
|
|
33
|
-
.header {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
.header {
|
|
35
|
+
color: $color-purple-800;
|
|
36
|
+
text-align: start;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
&.padded {
|
|
39
|
+
padding: $spacing-md;
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
42
|
+
padding: $spacing-md $spacing-lg;
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
|
-
}
|
|
45
46
|
|
|
46
|
-
%footer {
|
|
47
|
-
|
|
47
|
+
%footer {
|
|
48
|
+
white-space: initial;
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.footer {
|
|
55
|
-
@extend %footer;
|
|
56
|
-
}
|
|
57
54
|
|
|
58
|
-
.
|
|
59
|
-
|
|
55
|
+
.footer {
|
|
56
|
+
@extend %footer;
|
|
57
|
+
}
|
|
60
58
|
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
.footerWithSecondaryAction {
|
|
60
|
+
@extend %footer;
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
62
|
+
margin-inline-start: calc(-1 * #{$spacing-sm});
|
|
63
|
+
}
|
|
67
64
|
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
display: block;
|
|
71
|
-
box-sizing: content-box;
|
|
72
|
-
|
|
73
|
-
@media (min-width: $layout-breakpoints-medium) {
|
|
74
|
-
display: grid;
|
|
75
|
-
max-width: 800px;
|
|
76
|
-
grid-auto-columns: 1fr;
|
|
77
|
-
grid-auto-flow: column;
|
|
78
|
-
column-gap: $spacing-xl;
|
|
79
|
-
padding: $spacing-md $spacing-lg;
|
|
65
|
+
.emptyFooter {
|
|
66
|
+
height: $spacing-sm;
|
|
80
67
|
}
|
|
81
|
-
}
|
|
82
68
|
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
.portraitContentlayout {
|
|
70
|
+
padding: $spacing-md;
|
|
71
|
+
display: block;
|
|
72
|
+
box-sizing: content-box;
|
|
87
73
|
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
75
|
+
display: grid;
|
|
76
|
+
max-width: 800px;
|
|
77
|
+
grid-auto-columns: 1fr;
|
|
78
|
+
grid-auto-flow: column;
|
|
79
|
+
column-gap: $spacing-xl;
|
|
80
|
+
padding: $spacing-md $spacing-lg;
|
|
81
|
+
}
|
|
90
82
|
}
|
|
91
83
|
|
|
92
|
-
.
|
|
84
|
+
.landscapeContentlayout {
|
|
93
85
|
display: flex;
|
|
86
|
+
padding: $spacing-md;
|
|
94
87
|
flex-direction: column;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.content {
|
|
100
|
-
padding-inline-start: 0;
|
|
101
88
|
|
|
102
89
|
@media (min-width: $layout-breakpoints-medium) {
|
|
103
|
-
|
|
90
|
+
padding: $spacing-md $spacing-lg;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.image {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.content {
|
|
101
|
+
padding-inline-start: 0;
|
|
102
|
+
|
|
103
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
104
|
+
max-width: 100%;
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
}
|
|
@@ -8,123 +8,125 @@
|
|
|
8
8
|
@import '../../../styles/utils/border';
|
|
9
9
|
@import '../../../styles/utils/animation';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
@layer kz-components {
|
|
12
|
+
.defaultModalWidth {
|
|
13
|
+
min-width: 300px;
|
|
14
|
+
max-width: 600px;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
.backdropLayer {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.backdropLayer {
|
|
18
|
+
position: fixed;
|
|
19
|
+
background-color: #000;
|
|
20
|
+
opacity: 50%;
|
|
21
|
+
z-index: $ca-z-index-modal-backdrop;
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
}
|
|
23
|
+
@include ca-position($start: 0, $end: 0, $top: 0, $bottom: 0);
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
.scrollLayer {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
.scrollLayer {
|
|
27
|
+
position: fixed;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
z-index: $ca-z-index-modal;
|
|
31
|
+
overflow-y: auto;
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.modalLayer {
|
|
36
|
-
// use flexbox auto margins to horizontally and vertically centre the modal
|
|
37
|
-
// because in IE11, `align-items: center` and `justify-content: center` cause
|
|
38
|
-
// long modal content to become unreachable if they go off-screen
|
|
39
|
-
margin: auto;
|
|
40
|
-
padding: $ca-grid 0;
|
|
41
|
-
width: 100%;
|
|
42
|
-
}
|
|
33
|
+
@include ca-position($start: 0, $end: 0, $top: 0, $bottom: 0);
|
|
34
|
+
}
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
width: 90%;
|
|
51
|
-
-webkit-font-smoothing: antialiased;
|
|
52
|
-
color: $color-purple-800;
|
|
53
|
-
|
|
54
|
-
@include ca-media-tablet-and-up {
|
|
36
|
+
.modalLayer {
|
|
37
|
+
// use flexbox auto margins to horizontally and vertically centre the modal
|
|
38
|
+
// because in IE11, `align-items: center` and `justify-content: center` cause
|
|
39
|
+
// long modal content to become unreachable if they go off-screen
|
|
40
|
+
margin: auto;
|
|
41
|
+
padding: $ca-grid 0;
|
|
55
42
|
width: 100%;
|
|
56
43
|
}
|
|
57
44
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
45
|
+
%genericModal {
|
|
46
|
+
margin: auto;
|
|
47
|
+
background-color: $color-white;
|
|
48
|
+
border-radius: $border-solid-border-radius;
|
|
49
|
+
box-shadow: $shadow-large-box-shadow;
|
|
50
|
+
position: relative;
|
|
51
|
+
width: 90%;
|
|
52
|
+
-webkit-font-smoothing: antialiased;
|
|
53
|
+
color: $color-purple-800;
|
|
54
|
+
|
|
55
|
+
@include ca-media-tablet-and-up {
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// wrap the modal container with a focus ring when the title has focus
|
|
60
|
+
// for the rebuild: rather than putting the focus on the title, put it on the role=dialog element itself
|
|
61
|
+
&:has(:global([class*='modalLabel']):focus-visible) {
|
|
62
|
+
outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
|
|
63
|
+
var(--color-blue-300);
|
|
64
|
+
outline-offset: 2px;
|
|
65
|
+
}
|
|
64
66
|
}
|
|
65
|
-
}
|
|
66
67
|
|
|
67
|
-
.transitionLayer {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
.transitionLayer {
|
|
69
|
+
transition: opacity $ca-duration-fast ease-in-out;
|
|
70
|
+
opacity: 1;
|
|
70
71
|
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
.backdropLayer {
|
|
73
|
+
/*
|
|
73
74
|
There's a weird bug in Chrome/Blink 102.x that animates the opacity
|
|
74
75
|
all the way to 1 with 200ms ("rapid" token), but is fine with
|
|
75
76
|
201ms, see Jira [KDS-523]
|
|
76
77
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
@include ca-animation-fade($duration: 201ms, $from: 0, $to: 0.5);
|
|
79
|
+
}
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
[data-modal] {
|
|
82
|
+
animation-duration: $ca-duration-fast;
|
|
83
|
+
animation-fill-mode: forwards;
|
|
84
|
+
animation-timing-function: $ca-bounce-in;
|
|
84
85
|
|
|
85
|
-
|
|
86
|
+
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
|
-
}
|
|
88
89
|
|
|
89
|
-
// WAITING FOR TEXTFIELD
|
|
90
|
-
.animatingEnter {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
// WAITING FOR TEXTFIELD
|
|
91
|
+
.animatingEnter {
|
|
92
|
+
[data-modal] {
|
|
93
|
+
animation-duration: $ca-duration-fast;
|
|
94
|
+
animation-fill-mode: forwards;
|
|
95
|
+
animation-timing-function: $ca-bounce-in;
|
|
95
96
|
|
|
96
|
-
|
|
97
|
+
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
98
|
+
}
|
|
97
99
|
}
|
|
98
|
-
}
|
|
99
100
|
|
|
100
|
-
.animatingLeave {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
.animatingLeave {
|
|
102
|
+
transition-duration: $ca-duration-rapid;
|
|
103
|
+
opacity: 0;
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
.backdropLayer {
|
|
106
|
+
@include ca-animation-fade($duration: $ca-duration-rapid, $from: 0.5, $to: 0);
|
|
107
|
+
}
|
|
107
108
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
[data-modal] {
|
|
110
|
+
animation-duration: $ca-duration-rapid;
|
|
111
|
+
animation-fill-mode: forwards;
|
|
112
|
+
animation-timing-function: $ca-bounce-out;
|
|
112
113
|
|
|
113
|
-
|
|
114
|
+
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
|
-
}
|
|
116
117
|
|
|
117
|
-
.unscrollable {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
118
|
+
.unscrollable {
|
|
119
|
+
/* Tech debt - this !important existed before Stylelint rules */
|
|
120
|
+
overflow: hidden !important; /* stylelint-disable-line declaration-no-important */
|
|
121
|
+
}
|
|
121
122
|
|
|
122
|
-
.pseudoScrollbar {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
123
|
+
.pseudoScrollbar {
|
|
124
|
+
/* Tech debt - this !important existed before Stylelint rules */
|
|
125
|
+
padding-inline-end: 15px !important; /* stylelint-disable-line declaration-no-important */
|
|
126
|
+
}
|
|
126
127
|
|
|
127
|
-
.hide {
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
.hide {
|
|
129
|
+
opacity: 0%;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
}
|
|
130
132
|
}
|
package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss
CHANGED
|
@@ -2,35 +2,37 @@
|
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/border';
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/layout';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
// TODO - Remove below styles for Heading once responsive styling has been added to the Heading Component
|
|
7
|
+
$ca-breakpoint-small-mobile: 375px;
|
|
7
8
|
|
|
8
|
-
@mixin ca-media-small-mobile {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
@mixin ca-media-small-mobile {
|
|
10
|
+
@media (max-width: #{$ca-breakpoint-small-mobile}) {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
|
-
}
|
|
13
14
|
|
|
14
|
-
.modalLabel {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
.modalLabel {
|
|
16
|
+
// TODO - Remove below styles for Heading once responsive styling has been added to the Heading Component
|
|
17
|
+
h2 {
|
|
18
|
+
@media (max-width: $layout-breakpoints-medium) {
|
|
19
|
+
font-size: 1.625rem;
|
|
20
|
+
line-height: 2rem;
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
@include ca-media-small-mobile {
|
|
24
|
+
font-size: 1.5rem;
|
|
25
|
+
line-height: 1.875rem;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
|
-
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
&.prominent {
|
|
30
|
+
grid-column-start: 2;
|
|
31
|
+
text-align: start;
|
|
32
|
+
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
&:focus {
|
|
35
|
+
outline: none;
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/color';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/border';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.inputEdit {
|
|
6
|
+
background-color: $color-gray-200;
|
|
7
|
+
border-radius: $border-solid-border-radius;
|
|
8
|
+
}
|
|
7
9
|
}
|
|
@@ -2,74 +2,76 @@
|
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/layout';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
.actions {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row-reverse;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.actionsAlignStart {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
12
|
+
.actionsAlignStart {
|
|
13
|
+
flex-direction: row-reverse;
|
|
14
|
+
justify-content: flex-end;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
.padded {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
.padded {
|
|
18
|
+
padding: $spacing-md;
|
|
19
|
+
flex-direction: column;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
22
|
+
padding: 0 $spacing-lg $spacing-lg;
|
|
23
|
+
flex-direction: row-reverse;
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
|
-
}
|
|
25
26
|
|
|
26
|
-
.actionButton {
|
|
27
|
-
|
|
27
|
+
.actionButton {
|
|
28
|
+
width: 100%;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
31
|
+
width: inherit;
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
|
-
}
|
|
33
34
|
|
|
34
|
-
.actionButton + .actionButton {
|
|
35
|
-
|
|
35
|
+
.actionButton + .actionButton {
|
|
36
|
+
margin-inline-end: $spacing-sm;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
@media (max-width: (calc(#{$layout-breakpoints-medium} - 1px))) {
|
|
39
|
+
margin-block-start: $spacing-sm;
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
|
-
}
|
|
41
42
|
|
|
42
|
-
.footerWrap {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
43
|
+
.footerWrap {
|
|
44
|
+
align-items: baseline;
|
|
45
|
+
width: 100%;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
}
|
|
47
48
|
|
|
48
|
-
.center {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
49
|
+
.center {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
52
53
|
|
|
53
|
-
.border {
|
|
54
|
-
|
|
55
|
-
}
|
|
54
|
+
.border {
|
|
55
|
+
border-block-start: 1px solid $border-solid-border-color;
|
|
56
|
+
}
|
|
56
57
|
|
|
57
|
-
.start {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
58
|
+
.start {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
}
|
|
61
62
|
|
|
62
|
-
.end {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
63
|
+
.end {
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: flex-end;
|
|
66
|
+
}
|
|
66
67
|
|
|
67
|
-
.fixed {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
68
|
+
.fixed {
|
|
69
|
+
position: absolute;
|
|
70
|
+
inset-block-end: 0;
|
|
71
|
+
inset-inline-start: 0;
|
|
72
|
+
}
|
|
72
73
|
|
|
73
|
-
.filler {
|
|
74
|
-
|
|
74
|
+
.filler {
|
|
75
|
+
visibility: hidden;
|
|
76
|
+
}
|
|
75
77
|
}
|
|
@@ -2,23 +2,25 @@
|
|
|
2
2
|
@import '../../../../../styles/utils/legacy/layout';
|
|
3
3
|
@import '../../../../../styles/utils/layers';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
.dismissButton {
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: $ca-z-index-popover;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
}
|
|
10
|
+
@include ca-position($end: 0, $top: 0);
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
.layout {
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
.layout {
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
.fixed {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
17
|
+
.fixed {
|
|
18
|
+
position: absolute;
|
|
19
|
+
inset-block-start: 0;
|
|
20
|
+
inset-inline-start: 0;
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
.filler {
|
|
23
|
-
|
|
23
|
+
.filler {
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
}
|
|
24
26
|
}
|