@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
|
@@ -6,180 +6,182 @@
|
|
|
6
6
|
@import '../utils/mixins';
|
|
7
7
|
@import '../utils/variables';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
&:not(.disabled, .working) {
|
|
37
|
-
&:active {
|
|
38
|
-
transform: translateY(1px);
|
|
9
|
+
@layer kz-components {
|
|
10
|
+
%button {
|
|
11
|
+
@include button-reset;
|
|
12
|
+
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
font-family: $typography-button-primary-font-family;
|
|
16
|
+
font-weight: $typography-button-primary-font-weight;
|
|
17
|
+
font-size: $typography-button-primary-font-size;
|
|
18
|
+
line-height: $typography-button-primary-line-height;
|
|
19
|
+
letter-spacing: $typography-button-primary-letter-spacing;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
// ^inline-flex is used over (block) flex here to fix an edge case where the parent element is display:grid
|
|
22
|
+
// and this element is an <a>, causing the element to be full width.
|
|
23
|
+
align-items: center;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
min-height: $button-height;
|
|
26
|
+
border: $border-solid-border-width $border-solid-border-style;
|
|
27
|
+
border-radius: $border-solid-border-radius;
|
|
28
|
+
position: relative;
|
|
29
|
+
text-align: left;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
overflow: visible; // Required for the focus ring on IE11
|
|
32
|
+
|
|
33
|
+
&[href] {
|
|
34
|
+
text-decoration: none;
|
|
39
35
|
}
|
|
40
|
-
}
|
|
41
36
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
&:not(.disabled, .working) {
|
|
38
|
+
&:active {
|
|
39
|
+
transform: translateY(1px);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
45
42
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
$focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
|
|
49
|
-
|
|
50
|
-
content: '';
|
|
51
|
-
position: absolute;
|
|
52
|
-
background: transparent;
|
|
53
|
-
border-color: $color-blue-500;
|
|
54
|
-
border-radius: $border-focus-ring-border-radius;
|
|
55
|
-
border-width: $border-focus-ring-border-width;
|
|
56
|
-
border-style: $border-focus-ring-border-style;
|
|
57
|
-
inset: calc(-1 * #{$focus-ring-offset});
|
|
43
|
+
&:focus {
|
|
44
|
+
outline: none;
|
|
58
45
|
}
|
|
59
|
-
}
|
|
60
46
|
|
|
61
|
-
&.reversed {
|
|
62
47
|
&:focus-visible {
|
|
63
48
|
&::after {
|
|
64
|
-
|
|
49
|
+
$focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
|
|
50
|
+
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
background: transparent;
|
|
54
|
+
border-color: $color-blue-500;
|
|
55
|
+
border-radius: $border-focus-ring-border-radius;
|
|
56
|
+
border-width: $border-focus-ring-border-width;
|
|
57
|
+
border-style: $border-focus-ring-border-style;
|
|
58
|
+
inset: calc(-1 * #{$focus-ring-offset});
|
|
65
59
|
}
|
|
60
|
+
}
|
|
66
61
|
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
&.reversed {
|
|
63
|
+
&:focus-visible {
|
|
69
64
|
&::after {
|
|
70
|
-
border-color: $color-
|
|
65
|
+
border-color: $color-blue-300;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.disabled,
|
|
69
|
+
&.working {
|
|
70
|
+
&::after {
|
|
71
|
+
border-color: $color-gray-400;
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
|
-
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
&.disabled,
|
|
78
|
+
&.working {
|
|
79
|
+
cursor: default;
|
|
80
|
+
opacity: 30%;
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
&:focus-visible {
|
|
83
|
+
&::after {
|
|
84
|
+
border-color: $color-purple-800;
|
|
85
|
+
}
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
}
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
#{$className--content} {
|
|
90
|
+
height: 100%;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
padding: $button-vertical-padding calc(#{$spacing-md} - #{$border-solid-border-width});
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
|
-
}
|
|
95
96
|
|
|
96
|
-
%variant-default {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
%variant-default {
|
|
98
|
+
background-color: $color-white;
|
|
99
|
+
border-color: $color-gray-500;
|
|
100
|
+
color: $color-purple-800;
|
|
100
101
|
|
|
101
|
-
|
|
102
|
+
@include enabled-pseudo-states-variant($color-gray-200, $color-gray-600);
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
&.reversed {
|
|
105
|
+
background-color: transparent;
|
|
106
|
+
border-color: rgba($color-white-rgb, 0.65);
|
|
107
|
+
color: $color-white;
|
|
107
108
|
|
|
108
|
-
|
|
109
|
+
@include enabled-pseudo-states-variant(rgba($color-white-rgb, 0.1), $color-white);
|
|
110
|
+
}
|
|
109
111
|
}
|
|
110
|
-
}
|
|
111
112
|
|
|
112
|
-
%variant-primary {
|
|
113
|
-
|
|
114
|
-
border-color: $border-borderless-border-color;
|
|
115
|
-
color: $color-white;
|
|
116
|
-
|
|
117
|
-
@include enabled-pseudo-states-variant($color-blue-600, $border-borderless-border-color);
|
|
118
|
-
|
|
119
|
-
&.reversed {
|
|
120
|
-
background-color: $color-green-300;
|
|
113
|
+
%variant-primary {
|
|
114
|
+
background-color: $color-blue-500;
|
|
121
115
|
border-color: $border-borderless-border-color;
|
|
122
|
-
color: $color-
|
|
116
|
+
color: $color-white;
|
|
123
117
|
|
|
124
|
-
@include enabled-pseudo-states-variant($color-
|
|
125
|
-
}
|
|
126
|
-
}
|
|
118
|
+
@include enabled-pseudo-states-variant($color-blue-600, $border-borderless-border-color);
|
|
127
119
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
120
|
+
&.reversed {
|
|
121
|
+
background-color: $color-green-300;
|
|
122
|
+
border-color: $border-borderless-border-color;
|
|
123
|
+
color: $color-purple-800;
|
|
132
124
|
|
|
133
|
-
|
|
125
|
+
@include enabled-pseudo-states-variant($color-green-400, $border-borderless-border-color);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
134
128
|
|
|
135
|
-
|
|
136
|
-
background-color: $color-red-
|
|
129
|
+
%variant-destructive {
|
|
130
|
+
background-color: $color-red-500;
|
|
137
131
|
border-color: $border-borderless-border-color;
|
|
138
|
-
color: $color-
|
|
132
|
+
color: $color-white;
|
|
139
133
|
|
|
140
|
-
@include enabled-pseudo-states-variant($color-red-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
@include enabled-pseudo-states-variant($color-red-600, $border-borderless-border-color);
|
|
135
|
+
|
|
136
|
+
&.reversed {
|
|
137
|
+
background-color: $color-red-300;
|
|
138
|
+
border-color: $border-borderless-border-color;
|
|
139
|
+
color: $color-purple-800;
|
|
143
140
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
font-weight: $typography-button-secondary-font-weight;
|
|
147
|
-
font-size: $typography-button-secondary-font-size;
|
|
148
|
-
line-height: $typography-button-secondary-line-height;
|
|
149
|
-
letter-spacing: $typography-button-secondary-letter-spacing;
|
|
150
|
-
background-color: transparent;
|
|
151
|
-
border-color: $border-borderless-border-color;
|
|
152
|
-
color: $color-blue-500;
|
|
153
|
-
|
|
154
|
-
@include enabled-pseudo-states-variant($color-blue-100, $border-borderless-border-color);
|
|
155
|
-
|
|
156
|
-
#{$className--content} {
|
|
157
|
-
padding-left: calc(#{$spacing-sm} - #{$border-solid-border-width});
|
|
158
|
-
padding-right: calc(#{$spacing-sm} - #{$border-solid-border-width});
|
|
141
|
+
@include enabled-pseudo-states-variant($color-red-400, $border-borderless-border-color);
|
|
142
|
+
}
|
|
159
143
|
}
|
|
160
144
|
|
|
161
|
-
|
|
145
|
+
%variant-secondary {
|
|
146
|
+
font-family: $typography-button-secondary-font-family;
|
|
147
|
+
font-weight: $typography-button-secondary-font-weight;
|
|
148
|
+
font-size: $typography-button-secondary-font-size;
|
|
149
|
+
line-height: $typography-button-secondary-line-height;
|
|
150
|
+
letter-spacing: $typography-button-secondary-letter-spacing;
|
|
151
|
+
background-color: transparent;
|
|
162
152
|
border-color: $border-borderless-border-color;
|
|
163
|
-
color: $color-
|
|
153
|
+
color: $color-blue-500;
|
|
154
|
+
|
|
155
|
+
@include enabled-pseudo-states-variant($color-blue-100, $border-borderless-border-color);
|
|
156
|
+
|
|
157
|
+
#{$className--content} {
|
|
158
|
+
padding-left: calc(#{$spacing-sm} - #{$border-solid-border-width});
|
|
159
|
+
padding-right: calc(#{$spacing-sm} - #{$border-solid-border-width});
|
|
160
|
+
}
|
|
164
161
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
$
|
|
168
|
-
|
|
162
|
+
&.reversed {
|
|
163
|
+
border-color: $border-borderless-border-color;
|
|
164
|
+
color: $color-white;
|
|
165
|
+
|
|
166
|
+
@include enabled-pseudo-states-variant(
|
|
167
|
+
rgba($color-white-rgb, 0.2),
|
|
168
|
+
$border-borderless-border-color
|
|
169
|
+
);
|
|
170
|
+
}
|
|
169
171
|
}
|
|
170
|
-
}
|
|
171
172
|
|
|
172
|
-
%variant-secondary-destructive {
|
|
173
|
-
|
|
173
|
+
%variant-secondary-destructive {
|
|
174
|
+
color: $color-red-600;
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
}
|
|
176
|
+
@include enabled-pseudo-states-variant($color-red-100, $border-borderless-border-color);
|
|
177
|
+
}
|
|
177
178
|
|
|
178
|
-
%variant-small {
|
|
179
|
-
|
|
179
|
+
%variant-small {
|
|
180
|
+
min-height: $button-small-height;
|
|
180
181
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
#{$className--content} {
|
|
183
|
+
padding-top: $button-vertical-padding--small;
|
|
184
|
+
padding-bottom: $button-vertical-padding--small;
|
|
185
|
+
}
|
|
184
186
|
}
|
|
185
187
|
}
|
|
@@ -4,112 +4,114 @@
|
|
|
4
4
|
@import '../../Pagination/subcomponents/PaginationLink/PaginationLink.module';
|
|
5
5
|
@import '../../Pagination/subcomponents/DirectionalLink/DirectionalLink.module';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
.container {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.button {
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
.button {
|
|
13
|
+
@extend %button;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
.default {
|
|
16
|
-
|
|
17
|
-
}
|
|
16
|
+
.default {
|
|
17
|
+
@extend %variant-default;
|
|
18
|
+
}
|
|
18
19
|
|
|
19
|
-
.primary {
|
|
20
|
-
|
|
21
|
-
}
|
|
20
|
+
.primary {
|
|
21
|
+
@extend %variant-primary;
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
.destructive {
|
|
24
|
-
|
|
25
|
-
}
|
|
24
|
+
.destructive {
|
|
25
|
+
@extend %variant-destructive;
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
.secondary {
|
|
28
|
-
|
|
28
|
+
.secondary {
|
|
29
|
+
@extend %variant-secondary;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
&.destructive {
|
|
32
|
+
@extend %variant-secondary-destructive;
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
|
-
}
|
|
34
35
|
|
|
35
|
-
.small {
|
|
36
|
-
|
|
37
|
-
}
|
|
36
|
+
.small {
|
|
37
|
+
@extend %variant-small;
|
|
38
|
+
}
|
|
38
39
|
|
|
39
|
-
.label {
|
|
40
|
-
|
|
40
|
+
.label {
|
|
41
|
+
line-height: 1;
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
&:not(:first-child) {
|
|
44
|
+
@include ca-margin($start: 0.5em, $end: null);
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
&:not(:last-child) {
|
|
48
|
+
@include ca-margin($end: 0.5em, $start: null);
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.fullWidth {
|
|
52
|
-
width: 100%;
|
|
53
51
|
|
|
54
|
-
.
|
|
55
|
-
display: flex;
|
|
52
|
+
.fullWidth {
|
|
56
53
|
width: 100%;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
}
|
|
59
54
|
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
.button {
|
|
56
|
+
display: flex;
|
|
57
|
+
width: 100%;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#{$className--content} {
|
|
62
|
+
justify-content: center;
|
|
63
|
+
}
|
|
62
64
|
}
|
|
63
|
-
}
|
|
64
65
|
|
|
65
|
-
.iconWrapper {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
66
|
+
.iconWrapper {
|
|
67
|
+
height: 20px;
|
|
68
|
+
align-self: flex-start;
|
|
69
|
+
}
|
|
69
70
|
|
|
70
|
-
.additionalContentWrapper {
|
|
71
|
-
|
|
71
|
+
.additionalContentWrapper {
|
|
72
|
+
display: inherit;
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
&:not(:last-child) {
|
|
75
|
+
@include ca-margin($end: 0.5em, $start: null);
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
|
-
}
|
|
77
78
|
|
|
78
|
-
.loadingSpinner {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
.loadingSpinner {
|
|
80
|
+
// This is to fix a problem in safari where the svg stretched too high
|
|
81
|
+
svg {
|
|
82
|
+
height: 100%;
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
|
-
}
|
|
84
85
|
|
|
85
|
-
.centeredLoadingSpinner {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
86
|
+
.centeredLoadingSpinner {
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 0;
|
|
89
|
+
right: 0;
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
}
|
|
92
93
|
|
|
93
|
-
.hidden {
|
|
94
|
-
|
|
95
|
-
}
|
|
94
|
+
.hidden {
|
|
95
|
+
visibility: hidden;
|
|
96
|
+
}
|
|
96
97
|
|
|
97
|
-
.iconButton {
|
|
98
|
-
|
|
99
|
-
}
|
|
98
|
+
.iconButton {
|
|
99
|
+
@extend %icon-button;
|
|
100
|
+
}
|
|
100
101
|
|
|
101
|
-
.circleButton {
|
|
102
|
-
|
|
103
|
-
}
|
|
102
|
+
.circleButton {
|
|
103
|
+
@extend %circle-button;
|
|
104
|
+
}
|
|
104
105
|
|
|
105
|
-
.directionalLink {
|
|
106
|
-
|
|
107
|
-
}
|
|
106
|
+
.directionalLink {
|
|
107
|
+
@extend %directional-link;
|
|
108
|
+
}
|
|
108
109
|
|
|
109
|
-
.paginationLink {
|
|
110
|
-
|
|
111
|
-
}
|
|
110
|
+
.paginationLink {
|
|
111
|
+
@extend %pagination-link;
|
|
112
|
+
}
|
|
112
113
|
|
|
113
|
-
.isPaginationLinkActive {
|
|
114
|
-
|
|
114
|
+
.isPaginationLinkActive {
|
|
115
|
+
@extend %pagination-link--active;
|
|
116
|
+
}
|
|
115
117
|
}
|
|
@@ -3,30 +3,32 @@
|
|
|
3
3
|
@import '../utils/mixins';
|
|
4
4
|
@import '../utils/variables';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
@layer kz-components {
|
|
7
|
+
%icon-button {
|
|
8
|
+
width: $button-height;
|
|
9
|
+
border-color: $border-borderless-border-color;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
@include enabled-pseudo-states-variant($border-color: $border-borderless-border-color);
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
& #{$className--content} {
|
|
14
|
+
justify-content: center;
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
&:not(.reversed) {
|
|
20
|
+
&.default {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
color: inherit;
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
@include enabled-pseudo-states-variant($background-color: $color-gray-200);
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
|
-
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
&.reversed {
|
|
29
|
+
border-color: $border-borderless-border-color;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
@include enabled-pseudo-states-variant($border-color: $border-borderless-border-color);
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.buttonGroup {
|
|
3
|
+
--focus-ring-offset: 1px;
|
|
4
|
+
--focus-ring-offset-inner: calc(-1 * var(--focus-ring-offset));
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
}
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
.child {
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
.child {
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
.child:focus-visible::after {
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
.child:focus-visible::after {
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
.child:not(.firstChild) {
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
.child:not(.firstChild) {
|
|
18
|
+
border-inline-start: 1px solid var(--color-blue-300);
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.child:not(.firstChild, .lastChild) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
.child:not(.firstChild, .lastChild) {
|
|
22
|
+
&:focus-visible {
|
|
23
|
+
&::after {
|
|
24
|
+
inset-inline: var(--focus-ring-offset-inner);
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
|
-
}
|
|
27
28
|
|
|
28
|
-
.child.firstChild {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
29
|
+
.child.firstChild {
|
|
30
|
+
border-start-start-radius: var(--border-focus-ring-border-radius);
|
|
31
|
+
border-end-start-radius: var(--border-focus-ring-border-radius);
|
|
32
|
+
}
|
|
32
33
|
|
|
33
|
-
.child.firstChild:focus-visible::after {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
34
|
+
.child.firstChild:focus-visible::after {
|
|
35
|
+
border-start-start-radius: var(--border-focus-ring-border-radius);
|
|
36
|
+
border-end-start-radius: var(--border-focus-ring-border-radius);
|
|
37
|
+
inset-inline-end: var(--focus-ring-offset-inner);
|
|
38
|
+
}
|
|
38
39
|
|
|
39
|
-
.child.lastChild {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
40
|
+
.child.lastChild {
|
|
41
|
+
border-start-end-radius: var(--border-focus-ring-border-radius);
|
|
42
|
+
border-end-end-radius: var(--border-focus-ring-border-radius);
|
|
43
|
+
}
|
|
43
44
|
|
|
44
|
-
.child.lastChild:focus-visible::after {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
.child.lastChild:focus-visible::after {
|
|
46
|
+
border-start-end-radius: var(--border-focus-ring-border-radius);
|
|
47
|
+
border-end-end-radius: var(--border-focus-ring-border-radius);
|
|
48
|
+
inset-inline-start: var(--focus-ring-offset-inner);
|
|
49
|
+
}
|
|
48
50
|
}
|