@kaizen/components 1.78.1 → 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/styles.css +10589 -10782
- 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/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,101 +3,103 @@
|
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/color';
|
|
4
4
|
@import '~@kaizen/design-tokens/sass/typography';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
@layer kz-components {
|
|
7
|
+
.tab {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
border: 0;
|
|
11
|
+
border-top: 2px solid transparent;
|
|
12
|
+
border-left: 2px solid transparent;
|
|
13
|
+
border-right: 2px solid transparent;
|
|
14
|
+
border-top-left-radius: $border-borderless-border-radius;
|
|
15
|
+
border-top-right-radius: $border-borderless-border-radius;
|
|
16
|
+
background: $color-white;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
padding: $spacing-md $spacing-md;
|
|
20
|
+
margin: 0;
|
|
21
|
+
font-family: $typography-heading-4-font-family;
|
|
22
|
+
font-size: $typography-heading-4-font-size;
|
|
23
|
+
font-weight: $typography-heading-4-font-weight;
|
|
24
|
+
line-height: $typography-heading-4-line-height;
|
|
25
|
+
letter-spacing: $typography-heading-4-letter-spacing;
|
|
26
|
+
color: $color-purple-800;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
&:focus {
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
&:focus-visible {
|
|
33
|
+
background: $color-blue-100;
|
|
34
|
+
color: $color-blue-500;
|
|
35
|
+
border-color: $color-blue-500;
|
|
36
|
+
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
&:disabled {
|
|
39
|
+
opacity: 30%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:not(:first-child) {
|
|
43
|
+
margin-inline-start: $spacing-xs;
|
|
44
|
+
}
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
&:not(:disabled):hover {
|
|
47
|
+
background: $color-blue-100;
|
|
48
|
+
color: $color-blue-500;
|
|
49
|
+
}
|
|
43
50
|
}
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
.tab[data-selected] {
|
|
53
|
+
position: relative;
|
|
47
54
|
color: $color-blue-500;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
&::before {
|
|
57
|
+
content: '';
|
|
58
|
+
display: block;
|
|
59
|
+
border-top-left-radius: 5px;
|
|
60
|
+
border-top-right-radius: 5px;
|
|
61
|
+
background-color: currentcolor;
|
|
62
|
+
height: 5px;
|
|
63
|
+
width: 100%;
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 0;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
54
70
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
display:
|
|
58
|
-
|
|
59
|
-
border-top-right-radius: 5px;
|
|
60
|
-
background-color: currentcolor;
|
|
61
|
-
height: 5px;
|
|
62
|
-
width: 100%;
|
|
63
|
-
position: absolute;
|
|
64
|
-
left: 0;
|
|
65
|
-
right: 0;
|
|
66
|
-
bottom: 0;
|
|
71
|
+
.badge {
|
|
72
|
+
margin-inline-start: $spacing-sm;
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
67
75
|
}
|
|
68
|
-
}
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
align-items: center;
|
|
74
|
-
}
|
|
77
|
+
@media (forced-colors: active) {
|
|
78
|
+
.tab {
|
|
79
|
+
border: 2px solid transparent;
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
border: 2px solid transparent;
|
|
81
|
+
&:focus-visible::after {
|
|
82
|
+
$focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
|
|
79
83
|
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
content: '';
|
|
85
|
+
position: absolute;
|
|
86
|
+
background: transparent;
|
|
87
|
+
border-radius: $border-focus-ring-border-radius;
|
|
88
|
+
border-width: $border-focus-ring-border-width;
|
|
89
|
+
border-style: $border-focus-ring-border-style;
|
|
90
|
+
border-color: transparent;
|
|
91
|
+
inset: calc(-1 * #{$focus-ring-offset});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
82
94
|
|
|
95
|
+
.tab.selected::before {
|
|
96
|
+
// High contrast also doesn't see the pseudo element created to show the active tab.
|
|
83
97
|
content: '';
|
|
84
98
|
position: absolute;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
border-
|
|
89
|
-
border-color: transparent;
|
|
90
|
-
inset: calc(-1 * #{$focus-ring-offset});
|
|
99
|
+
left: 0;
|
|
100
|
+
right: 0;
|
|
101
|
+
bottom: 0;
|
|
102
|
+
border-bottom: 2px solid transparent;
|
|
91
103
|
}
|
|
92
104
|
}
|
|
93
|
-
|
|
94
|
-
.tab.selected::before {
|
|
95
|
-
// High contrast also doesn't see the pseudo element created to show the active tab.
|
|
96
|
-
content: '';
|
|
97
|
-
position: absolute;
|
|
98
|
-
left: 0;
|
|
99
|
-
right: 0;
|
|
100
|
-
bottom: 0;
|
|
101
|
-
border-bottom: 2px solid transparent;
|
|
102
|
-
}
|
|
103
105
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/color';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.tabList {
|
|
6
|
+
border-bottom: 1px solid rgba($color-gray-600-rgb, 0.1);
|
|
7
|
+
padding: $spacing-xs $spacing-md 0;
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
.tabList.noPadding {
|
|
10
|
-
|
|
10
|
+
.tabList.noPadding {
|
|
11
|
+
padding: 0;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/border';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/color';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.tabPanel {
|
|
6
|
+
border: 2px solid transparent;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
&:focus {
|
|
9
|
+
outline: none;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
&:focus-visible {
|
|
13
|
+
border-color: $color-blue-500;
|
|
14
|
+
border-radius: $border-focus-ring-border-radius;
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
}
|
package/src/Tag/Tag.module.scss
CHANGED
|
@@ -4,210 +4,212 @@
|
|
|
4
4
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
5
5
|
@import '../../styles/utils/button-reset';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
$
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
$border-borderless-border-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
$medium: calc(#{$spacing-md} * 1.25);
|
|
9
|
+
$small: $spacing-md;
|
|
10
|
+
|
|
11
|
+
.root {
|
|
12
|
+
margin-inline-end: calc(#{$spacing-md} * 0.5);
|
|
13
|
+
font-size: $typography-paragraph-small-font-size;
|
|
14
|
+
font-weight: $typography-paragraph-small-font-weight;
|
|
15
|
+
letter-spacing: $typography-paragraph-small-letter-spacing;
|
|
16
|
+
color: $color-purple-800;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
border: $border-borderless-border-width $border-borderless-border-style
|
|
19
|
+
$border-borderless-border-color;
|
|
20
|
+
border-radius: calc(#{$spacing-md} * 0.75);
|
|
21
|
+
padding: 0 calc(#{$spacing-md} * 0.4);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
|
|
24
|
+
&.profile {
|
|
25
|
+
padding-left: calc(#{$spacing-md} * 0.2);
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.layoutContainer {
|
|
29
|
-
height: 100%;
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.validationIcon {
|
|
35
|
-
align-items: center;
|
|
36
|
-
display: flex;
|
|
37
|
-
color: $color-white;
|
|
38
|
-
margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.profile {
|
|
42
|
-
margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
}
|
|
46
28
|
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
line-height: $typography-paragraph-small-line-height;
|
|
53
|
-
letter-spacing: $typography-paragraph-small-letter-spacing;
|
|
54
|
-
white-space: nowrap;
|
|
55
|
-
}
|
|
29
|
+
.layoutContainer {
|
|
30
|
+
height: 100%;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
56
34
|
|
|
57
|
-
.
|
|
58
|
-
|
|
35
|
+
.validationIcon {
|
|
36
|
+
align-items: center;
|
|
37
|
+
display: flex;
|
|
38
|
+
color: $color-white;
|
|
39
|
+
margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
|
|
40
|
+
}
|
|
59
41
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
42
|
+
.profile {
|
|
43
|
+
margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
64
47
|
|
|
65
|
-
.
|
|
66
|
-
|
|
48
|
+
.textContent {
|
|
49
|
+
margin-top: -1px;
|
|
50
|
+
font-family: $typography-paragraph-small-font-family;
|
|
51
|
+
font-weight: $typography-paragraph-small-font-weight;
|
|
52
|
+
font-size: $typography-paragraph-small-font-size;
|
|
53
|
+
line-height: $typography-paragraph-small-line-height;
|
|
54
|
+
letter-spacing: $typography-paragraph-small-letter-spacing;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
67
57
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
height: 100%;
|
|
71
|
-
align-items: center;
|
|
72
|
-
padding: 0 $spacing-xs;
|
|
73
|
-
margin-inline: -0.225rem -0.6625rem;
|
|
74
|
-
color: rgba($color-purple-800-rgb, 0.7);
|
|
75
|
-
cursor: pointer;
|
|
58
|
+
.iconWrapper {
|
|
59
|
+
--icon-size: 16;
|
|
76
60
|
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
position: relative;
|
|
62
|
+
height: 16px;
|
|
63
|
+
width: 16px;
|
|
79
64
|
}
|
|
80
65
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
66
|
+
.dismissButton {
|
|
67
|
+
@include button-reset;
|
|
84
68
|
|
|
85
|
-
svg {
|
|
86
69
|
position: relative;
|
|
87
|
-
|
|
70
|
+
display: flex;
|
|
71
|
+
height: 100%;
|
|
72
|
+
align-items: center;
|
|
73
|
+
padding: 0 $spacing-xs;
|
|
74
|
+
margin-inline: -0.225rem -0.6625rem;
|
|
75
|
+
color: rgba($color-purple-800-rgb, 0.7);
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
|
|
78
|
+
&:hover {
|
|
79
|
+
color: $color-purple-800;
|
|
80
|
+
}
|
|
88
81
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
&:active {
|
|
83
|
+
color: $color-purple-800;
|
|
84
|
+
}
|
|
92
85
|
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
svg {
|
|
87
|
+
position: relative;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:focus {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
95
93
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
&:focus-visible .iconWrapper {
|
|
95
|
+
color: $color-purple-800;
|
|
96
|
+
|
|
97
|
+
&::after {
|
|
98
|
+
$focus-ring-offset: calc((#{$border-focus-ring-border-width}));
|
|
99
|
+
|
|
100
|
+
content: '';
|
|
101
|
+
position: absolute;
|
|
102
|
+
background: transparent;
|
|
103
|
+
border-radius: 50%;
|
|
104
|
+
border-width: $border-focus-ring-border-width;
|
|
105
|
+
border-style: $border-focus-ring-border-style;
|
|
106
|
+
border-color: $color-blue-500;
|
|
107
|
+
inset: calc(-1 * #{$focus-ring-offset});
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
|
-
}
|
|
110
111
|
|
|
111
|
-
.background {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
112
|
+
.background {
|
|
113
|
+
// As our icons are only one-tone, this span places
|
|
114
|
+
// a white background under the dismissible icon to
|
|
115
|
+
// give the illusion of a background colour that is
|
|
116
|
+
// different to the rest of the tag
|
|
117
|
+
position: absolute;
|
|
118
|
+
display: inline-block;
|
|
119
|
+
width: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
|
|
120
|
+
height: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
|
|
121
|
+
background-color: white;
|
|
122
|
+
left: 10px;
|
|
123
|
+
top: 10px;
|
|
124
|
+
}
|
|
124
125
|
|
|
125
|
-
.truncate {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
126
|
+
.truncate {
|
|
127
|
+
text-overflow: ellipsis;
|
|
128
|
+
overflow-x: hidden;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
130
131
|
|
|
131
|
-
.inline {
|
|
132
|
-
|
|
133
|
-
}
|
|
132
|
+
.inline {
|
|
133
|
+
margin: 0;
|
|
134
|
+
}
|
|
134
135
|
|
|
135
|
-
.medium {
|
|
136
|
-
|
|
137
|
-
}
|
|
136
|
+
.medium {
|
|
137
|
+
height: $medium;
|
|
138
|
+
}
|
|
138
139
|
|
|
139
|
-
.small {
|
|
140
|
-
|
|
141
|
-
}
|
|
140
|
+
.small {
|
|
141
|
+
height: $small;
|
|
142
|
+
}
|
|
142
143
|
|
|
143
|
-
.default {
|
|
144
|
-
|
|
145
|
-
}
|
|
144
|
+
.default {
|
|
145
|
+
background-color: $color-gray-300;
|
|
146
|
+
}
|
|
146
147
|
|
|
147
|
-
.sentimentPositive {
|
|
148
|
-
|
|
149
|
-
}
|
|
148
|
+
.sentimentPositive {
|
|
149
|
+
background-color: $color-green-100;
|
|
150
|
+
}
|
|
150
151
|
|
|
151
|
-
.sentimentNeutral {
|
|
152
|
-
|
|
153
|
-
}
|
|
152
|
+
.sentimentNeutral {
|
|
153
|
+
background-color: $color-gray-300;
|
|
154
|
+
}
|
|
154
155
|
|
|
155
|
-
.sentimentNegative {
|
|
156
|
-
|
|
157
|
-
}
|
|
156
|
+
.sentimentNegative {
|
|
157
|
+
background-color: $color-red-100;
|
|
158
|
+
}
|
|
158
159
|
|
|
159
|
-
.sentimentNone {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
160
|
+
.sentimentNone {
|
|
161
|
+
background-color: $color-white;
|
|
162
|
+
border-color: $color-gray-300;
|
|
163
|
+
}
|
|
163
164
|
|
|
164
|
-
.validationPositive {
|
|
165
|
-
|
|
165
|
+
.validationPositive {
|
|
166
|
+
background-color: $color-green-100;
|
|
166
167
|
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
.validationIcon {
|
|
169
|
+
color: $color-green-500;
|
|
170
|
+
}
|
|
169
171
|
}
|
|
170
|
-
}
|
|
171
172
|
|
|
172
|
-
.validationInformative {
|
|
173
|
-
|
|
173
|
+
.validationInformative {
|
|
174
|
+
background-color: $color-blue-100;
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
.validationIcon {
|
|
177
|
+
color: $color-blue-500;
|
|
178
|
+
}
|
|
177
179
|
}
|
|
178
|
-
}
|
|
179
180
|
|
|
180
|
-
.validationNegative {
|
|
181
|
-
|
|
181
|
+
.validationNegative {
|
|
182
|
+
background-color: $color-red-100;
|
|
182
183
|
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
.validationIcon {
|
|
185
|
+
color: $color-red-500;
|
|
186
|
+
}
|
|
185
187
|
}
|
|
186
|
-
}
|
|
187
188
|
|
|
188
|
-
.validationCautionary {
|
|
189
|
-
|
|
189
|
+
.validationCautionary {
|
|
190
|
+
background-color: $color-yellow-100;
|
|
190
191
|
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
.validationIcon {
|
|
193
|
+
color: var(--color-yellow-700);
|
|
194
|
+
}
|
|
193
195
|
}
|
|
194
|
-
}
|
|
195
196
|
|
|
196
|
-
.statusLive {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
197
|
+
.statusLive {
|
|
198
|
+
background-color: $color-green-100;
|
|
199
|
+
color: $color-purple-800;
|
|
200
|
+
}
|
|
200
201
|
|
|
201
|
-
.statusAction {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
202
|
+
.statusAction {
|
|
203
|
+
background-color: $color-orange-100;
|
|
204
|
+
color: $color-purple-800;
|
|
205
|
+
}
|
|
205
206
|
|
|
206
|
-
.statusClosed {
|
|
207
|
-
|
|
208
|
-
}
|
|
207
|
+
.statusClosed {
|
|
208
|
+
background-color: $color-red-100;
|
|
209
|
+
}
|
|
209
210
|
|
|
210
|
-
.statusDraft {
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
.statusDraft {
|
|
212
|
+
background-color: $color-blue-100;
|
|
213
|
+
color: $color-purple-800;
|
|
214
|
+
}
|
|
213
215
|
}
|