@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
|
@@ -2,117 +2,119 @@
|
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/border';
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/color';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
.button {
|
|
7
|
+
border: none;
|
|
8
|
+
background-color: $color-white;
|
|
9
|
+
width: 3rem;
|
|
10
|
+
height: 3rem;
|
|
11
|
+
border-radius: $border-solid-border-radius;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
position: relative;
|
|
16
|
+
transition: background-color $animation-duration-immediate;
|
|
17
|
+
|
|
18
|
+
&:focus {
|
|
19
|
+
outline: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus-visible::after {
|
|
23
|
+
$focus-ring-offset: 3px;
|
|
24
|
+
|
|
25
|
+
content: '';
|
|
26
|
+
position: absolute;
|
|
27
|
+
background: transparent;
|
|
28
|
+
border-radius: $border-focus-ring-border-radius;
|
|
29
|
+
border-width: $border-focus-ring-border-width;
|
|
30
|
+
border-style: $border-focus-ring-border-style;
|
|
31
|
+
border-color: $color-blue-500;
|
|
32
|
+
inset: calc(-1 * #{$focus-ring-offset});
|
|
33
|
+
}
|
|
19
34
|
}
|
|
20
35
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
content: '';
|
|
25
|
-
position: absolute;
|
|
26
|
-
background: transparent;
|
|
27
|
-
border-radius: $border-focus-ring-border-radius;
|
|
28
|
-
border-width: $border-focus-ring-border-width;
|
|
29
|
-
border-style: $border-focus-ring-border-style;
|
|
30
|
-
border-color: $color-blue-500;
|
|
31
|
-
inset: calc(-1 * #{$focus-ring-offset});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
36
|
+
.default {
|
|
37
|
+
background-color: $color-white;
|
|
38
|
+
color: $color-purple-800;
|
|
34
39
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
&:hover,
|
|
41
|
+
&:focus-visible {
|
|
42
|
+
background-color: $color-gray-200;
|
|
43
|
+
}
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
&.active {
|
|
46
|
+
background-color: $color-gray-300;
|
|
47
|
+
color: $color-purple-800;
|
|
48
|
+
}
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
|
|
45
|
-
background-color: $color-
|
|
46
|
-
color: $color-
|
|
47
|
-
}
|
|
48
|
-
}
|
|
51
|
+
.secondary {
|
|
52
|
+
background-color: $color-white;
|
|
53
|
+
color: $color-blue-500;
|
|
49
54
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
&:hover,
|
|
56
|
+
&:focus-visible {
|
|
57
|
+
background-color: $color-blue-100;
|
|
58
|
+
}
|
|
53
59
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
&.active {
|
|
61
|
+
background-color: $color-blue-200;
|
|
62
|
+
}
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
|
|
60
|
-
background-color: $color-blue-
|
|
61
|
-
|
|
62
|
-
}
|
|
65
|
+
.primary {
|
|
66
|
+
background-color: $color-blue-500;
|
|
67
|
+
color: $color-white;
|
|
63
68
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
&:hover,
|
|
70
|
+
&:focus-visible {
|
|
71
|
+
background-color: $color-blue-600;
|
|
72
|
+
}
|
|
67
73
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
&.active {
|
|
75
|
+
background-color: $color-blue-700;
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
|
|
73
|
-
|
|
74
|
-
background-color: $color-
|
|
75
|
-
|
|
76
|
-
}
|
|
79
|
+
.destructive {
|
|
80
|
+
background-color: $color-red-500;
|
|
81
|
+
color: $color-white;
|
|
77
82
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
&:hover,
|
|
84
|
+
&:focus-visible {
|
|
85
|
+
background-color: $color-red-600;
|
|
86
|
+
}
|
|
81
87
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
&.active {
|
|
89
|
+
background-color: $color-red-700;
|
|
90
|
+
}
|
|
85
91
|
}
|
|
86
92
|
|
|
87
|
-
|
|
88
|
-
background-color: $color-
|
|
89
|
-
|
|
90
|
-
}
|
|
93
|
+
.secondary-destructive {
|
|
94
|
+
background-color: $color-white;
|
|
95
|
+
color: $color-red-600;
|
|
91
96
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
&:hover,
|
|
98
|
+
&:focus-visible {
|
|
99
|
+
background-color: $color-red-100;
|
|
100
|
+
}
|
|
95
101
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
&.active {
|
|
103
|
+
background-color: $color-red-200;
|
|
104
|
+
}
|
|
99
105
|
}
|
|
100
106
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
background-color: transparent;
|
|
114
|
-
border-color: transparent;
|
|
115
|
-
opacity: 100%;
|
|
116
|
-
outline: $color-purple-800 $border-solid-border-style $border-focus-ring-border-width;
|
|
107
|
+
.disabled {
|
|
108
|
+
opacity: 30%;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
|
|
111
|
+
&:focus-visible::after {
|
|
112
|
+
color: rgba($color-purple-800-rgb, 0.3);
|
|
113
|
+
outline-offset: -2px;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
border-color: transparent;
|
|
116
|
+
opacity: 100%;
|
|
117
|
+
outline: $color-purple-800 $border-solid-border-style $border-focus-ring-border-width;
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
120
|
}
|
package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/color';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.toolbarSection {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: $spacing-xs;
|
|
9
|
+
margin: $spacing-xs 0;
|
|
10
|
+
padding: 0 $spacing-xs;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
.toolbarSection + .toolbarSection {
|
|
14
|
-
|
|
14
|
+
.toolbarSection + .toolbarSection {
|
|
15
|
+
border-inline-start: 1px solid rgba($color-gray-600-rgb, 0.1);
|
|
16
|
+
}
|
|
15
17
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
11
11
|
position: relative;
|
|
12
12
|
/* stylelint-disable-next-line declaration-no-important */
|
|
13
|
-
white-space: pre-wrap !important; // Override unlayered TipTap styles from within components layer
|
|
13
|
+
white-space: pre-wrap !important; // Override unlayered TipTap styles from within kz-components layer
|
|
14
14
|
box-sizing: content-box;
|
|
15
15
|
color: $color-purple-800;
|
|
16
16
|
|
package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/color';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.popoverContent {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
.popoverLinkContainer {
|
|
11
|
-
|
|
12
|
-
}
|
|
11
|
+
.popoverLinkContainer {
|
|
12
|
+
padding-inline: $spacing-8 $spacing-12;
|
|
13
|
+
}
|
|
13
14
|
|
|
14
|
-
.popoverLink {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
15
|
+
.popoverLink {
|
|
16
|
+
max-width: 300px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
.paragraphFlex {
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
.paragraphFlex {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
.popoverActions {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
.popoverActions {
|
|
27
|
+
padding-inline: $spacing-4 $spacing-4;
|
|
28
|
+
border-left: 1px solid rgba($color-gray-600-rgb, 0.1);
|
|
29
|
+
}
|
|
28
30
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@layer kz-components {
|
|
4
|
+
.label {
|
|
5
|
+
display: block;
|
|
6
|
+
margin-bottom: $spacing-xs; // @note: add gap between label and input
|
|
7
|
+
}
|
|
6
8
|
}
|
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/border';
|
|
4
4
|
@import '~@kaizen/design-tokens/sass/color';
|
|
5
5
|
|
|
6
|
+
/*
|
|
7
|
+
NOTE: Select is NOT in @layer kz-components
|
|
8
|
+
|
|
9
|
+
Because the styles in this module need to override the un-layered styles
|
|
10
|
+
provided by react-select, we do not wrap them in @layer kz-components the way
|
|
11
|
+
we do all other Kaizen components.
|
|
12
|
+
|
|
13
|
+
This means that consuming apps will not be able to override these styles with
|
|
14
|
+
Tailwind v4+ utility styles, which are generated in @layer utilities.
|
|
15
|
+
|
|
16
|
+
If we ever need to get these styles into a layer, we may need to update our
|
|
17
|
+
use of React Select to disable its styles and replace them with a layered
|
|
18
|
+
version of our own, or perhaps use something like
|
|
19
|
+
https://github.com/DefinedNet/postcss-assign-layer to assign the components
|
|
20
|
+
layer to the React Select styles.
|
|
21
|
+
*/
|
|
22
|
+
|
|
6
23
|
// Should match the values for the Input component
|
|
7
24
|
$input-height: 48px;
|
|
8
25
|
$input-placeholder-opacity: 0.7;
|
|
@@ -3,30 +3,32 @@
|
|
|
3
3
|
$dt-color-background-color-default: $color-purple-600;
|
|
4
4
|
$dt-color-background-color-education: $color-blue-100;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
@layer kz-components {
|
|
7
|
+
.container {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
// Actual height is determined in JavaScript
|
|
11
|
-
.underlay {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
11
|
+
// Actual height is determined in JavaScript
|
|
12
|
+
.underlay {
|
|
13
|
+
box-sizing: content-box;
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
.defaultVariant {
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
.defaultVariant {
|
|
23
|
+
background-color: $dt-color-background-color-default;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
.educationVariant {
|
|
26
|
-
|
|
27
|
-
}
|
|
26
|
+
.educationVariant {
|
|
27
|
+
background-color: $dt-color-background-color-education;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
.content {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
.content {
|
|
31
|
+
position: relative;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
}
|
|
32
34
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/layout';
|
|
2
2
|
@import '../../../Content/variables';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
@layer kz-components {
|
|
5
|
+
.wrapper {
|
|
6
|
+
@media (max-width: $layout-breakpoints-large) {
|
|
7
|
+
margin-left: $content-margin-width-on-medium-and-small * -1;
|
|
8
|
+
margin-right: $content-margin-width-on-medium-and-small * -1;
|
|
9
|
+
border-bottom-left-radius: 0;
|
|
10
|
+
border-bottom-right-radius: 0;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
@media (max-width: $layout-breakpoints-medium) {
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
margin-left: $content-margin-width-on-medium-and-small * -1;
|
|
16
|
+
margin-right: $content-margin-width-on-medium-and-small * -1;
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -2,45 +2,47 @@
|
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/layout';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
.wrapper {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
.labelWrapper {
|
|
11
|
-
|
|
12
|
-
}
|
|
11
|
+
.labelWrapper {
|
|
12
|
+
margin-bottom: $spacing-sm;
|
|
13
|
+
}
|
|
13
14
|
|
|
14
|
-
.label {
|
|
15
|
-
|
|
16
|
-
}
|
|
15
|
+
.label {
|
|
16
|
+
margin-bottom: $spacing-4;
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
@media (min-width: $layout-breakpoints-medium) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
@media (min-width: $layout-breakpoints-medium) {
|
|
20
|
+
.labelInline {
|
|
21
|
+
&.wrapper {
|
|
22
|
+
align-items: center;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
.labelWrapper {
|
|
27
|
+
flex: 1;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
.inputWrapper {
|
|
31
|
+
flex-basis: 50%;
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
|
-
}
|
|
34
35
|
|
|
35
|
-
.descriptionDisabled {
|
|
36
|
-
|
|
37
|
-
}
|
|
36
|
+
.descriptionDisabled {
|
|
37
|
+
opacity: 30%;
|
|
38
|
+
}
|
|
38
39
|
|
|
39
|
-
.readOnlyMessage {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
.readOnlyMessage {
|
|
41
|
+
text-align: center;
|
|
42
|
+
font-family: $typography-paragraph-small-font-family;
|
|
43
|
+
font-size: $typography-paragraph-small-font-size;
|
|
44
|
+
font-weight: $typography-paragraph-bold-font-weight;
|
|
45
|
+
line-height: $typography-paragraph-body-line-height;
|
|
46
|
+
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
47
|
+
}
|
|
46
48
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/border';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
@layer kz-components {
|
|
4
|
+
.actionButton {
|
|
5
|
+
border-start-start-radius: $border-solid-border-radius;
|
|
6
|
+
border-end-start-radius: $border-solid-border-radius;
|
|
7
|
+
border-start-end-radius: 0;
|
|
8
|
+
border-end-end-radius: 0;
|
|
9
|
+
}
|
|
8
10
|
}
|