@kaizen/components 1.78.0 → 1.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
- package/dist/esm/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
- package/dist/styles.css +9823 -10017
- package/package.json +27 -26
- package/src/Avatar/Avatar.module.css +137 -135
- package/src/AvatarGroup/AvatarGroup.module.css +58 -56
- package/src/Badge/Badge.module.css +98 -96
- package/src/Brand/Brand.module.css +5 -3
- package/src/BrandMoment/BrandMoment.module.css +147 -145
- package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
- package/src/Button/Button/Button.module.scss +135 -133
- package/src/Button/GenericButton/GenericButton.module.scss +81 -79
- package/src/Button/IconButton/IconButton.module.scss +20 -18
- package/src/ButtonGroup/ButtonGroup.module.css +38 -36
- package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
- package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
- package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
- package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
- package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
- package/src/Card/Card.module.css +91 -89
- package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
- package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
- package/src/ClearButton/ClearButton.module.scss +32 -30
- package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
- package/src/Container/Container.module.scss +11 -9
- package/src/Content/Content.module.scss +10 -8
- package/src/DateInput/DateInput/DateInput.module.scss +7 -5
- package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
- package/src/DatePicker/DatePicker.module.scss +7 -5
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
- package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
- package/src/Divider/Divider.module.scss +35 -33
- package/src/EmptyState/EmptyState.module.css +95 -93
- package/src/ErrorPage/ErrorPage.module.scss +4 -2
- package/src/FieldGroup/FieldGroup.module.scss +8 -6
- package/src/FieldMessage/FieldMessage.module.scss +53 -51
- package/src/Filter/Filter/Filter.module.css +5 -3
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
- package/src/Filter/FilterBar/FilterBar.module.css +17 -15
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
- package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
- package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
- package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
- package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
- package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
- package/src/Focusable/Focusable.module.scss +4 -2
- package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
- package/src/Heading/Heading.module.scss +87 -85
- package/src/Icon/_docs/icon.module.scss +35 -33
- package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
- package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
- package/src/Input/Input/Input.module.scss +217 -215
- package/src/Input/InputRange/InputRange.module.scss +138 -136
- package/src/Input/InputSearch/InputSearch.module.scss +155 -152
- package/src/Label/Label.module.scss +82 -80
- package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
- package/src/Link/Link.module.css +115 -113
- package/src/LinkButton/LinkButton.module.css +5 -3
- package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
- package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
- package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
- package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
- package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
- package/src/Loading/_mixins.scss +11 -9
- package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
- package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
- package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
- package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
- package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
- package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
- package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
- package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
- package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
- package/src/MultiSelect/MultiSelect.module.scss +7 -5
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
- package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
- package/src/Pagination/Pagination.module.scss +39 -37
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
- package/src/Popover/Popover.module.scss +187 -185
- package/src/ProgressBar/ProgressBar.module.scss +75 -73
- package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
- package/src/Radio/Radio/Radio.module.scss +60 -58
- package/src/Radio/RadioField/RadioField.module.scss +33 -32
- package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
- package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
- package/src/RichTextEditor/_mixins.scss +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
- package/src/SearchField/SearchField.module.scss +5 -3
- package/src/Select/Select.module.scss +17 -0
- package/src/Skirt/Skirt.module.scss +24 -22
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
- package/src/Slider/Slider.module.scss +34 -32
- package/src/SplitButton/SplitButton.module.scss +5 -3
- package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
- package/src/Table/Table.module.scss +251 -249
- package/src/Tabs/subcomponents/Tab.module.scss +81 -79
- package/src/Tabs/subcomponents/TabList.module.scss +8 -6
- package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
- package/src/Tag/Tag.module.scss +166 -164
- package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
- package/src/Text/Text.module.scss +57 -55
- package/src/TextArea/TextArea.module.css +103 -100
- package/src/TextAreaField/TextAreaField.module.scss +14 -12
- package/src/TextField/TextField.module.scss +16 -14
- package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
- package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
- package/src/TimeField/TimeField.module.scss +57 -55
- package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
- package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
- package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
- package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
- package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
- package/src/Tooltip/Tooltip.module.scss +139 -137
- package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
- package/src/Well/Well.module.css +104 -102
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
- package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
- package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
- package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
- package/src/__next__/Button/Button.module.css +220 -218
- package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
- package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
- package/src/__next__/Icon/Icon.module.css +40 -38
- package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
- package/src/__next__/Menu/Menu.module.css +30 -28
- package/src/__next__/Menu/MenuItem.module.css +41 -39
- package/src/__next__/Select/Select.module.scss +8 -6
- package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
- package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
- package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
- package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
- package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
- package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
- package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
- package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
- package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
- package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
- package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
- package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
- package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
- package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
- package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
- package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
- package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
- package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
- package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
- package/src/utils/AppearanceAnim.module.scss +14 -12
|
@@ -4,310 +4,312 @@
|
|
|
4
4
|
@import '../../../styles/utils/form-variables';
|
|
5
5
|
@import '../../../styles/utils/forms';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
$input-
|
|
9
|
-
$input-
|
|
10
|
-
$input-
|
|
11
|
-
$input-
|
|
12
|
-
$input-disabled-
|
|
13
|
-
$input-disabled-
|
|
14
|
-
$input-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
&:hover {
|
|
24
|
-
z-index: 2;
|
|
25
|
-
}
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
$input-height: 48px;
|
|
9
|
+
$input-base-padding-horizontal: $spacing-sm;
|
|
10
|
+
$input-icon-size: 1.25rem; // 20px
|
|
11
|
+
$input-placeholder-opacity: 0.5;
|
|
12
|
+
$input-disabled-background: $color-gray-300;
|
|
13
|
+
$input-disabled-opacity: 0.3;
|
|
14
|
+
$input-disabled-border-alpha: 50%;
|
|
15
|
+
$input-with-icon-padding: calc(#{$input-icon-size} + calc(#{$spacing-md} * 0.75));
|
|
16
|
+
|
|
17
|
+
.wrapper {
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
&.hasStatus {
|
|
21
|
+
z-index: 1;
|
|
22
|
+
}
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
24
|
+
&:hover {
|
|
25
|
+
z-index: 2;
|
|
26
|
+
}
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
background-color: transparent;
|
|
36
|
-
background-clip: padding-box;
|
|
37
|
-
border: $border-solid-border-width $border-solid-border-style transparent;
|
|
38
|
-
border-radius: $border-solid-border-radius;
|
|
39
|
-
display: block;
|
|
40
|
-
font-size: 1rem;
|
|
41
|
-
line-height: 1.5;
|
|
42
|
-
padding: 0 $input-base-padding-horizontal;
|
|
43
|
-
height: $input-height;
|
|
44
|
-
width: 100%;
|
|
45
|
-
margin-bottom: 2px;
|
|
46
|
-
|
|
47
|
-
@include form-input-placeholder {
|
|
48
|
-
opacity: 100%;
|
|
28
|
+
&:focus-within {
|
|
29
|
+
z-index: 3;
|
|
30
|
+
}
|
|
49
31
|
}
|
|
50
32
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
.input {
|
|
34
|
+
@include form-input-reset;
|
|
35
|
+
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
background-clip: padding-box;
|
|
38
|
+
border: $border-solid-border-width $border-solid-border-style transparent;
|
|
39
|
+
border-radius: $border-solid-border-radius;
|
|
40
|
+
display: block;
|
|
41
|
+
font-size: 1rem;
|
|
42
|
+
line-height: 1.5;
|
|
43
|
+
padding: 0 $input-base-padding-horizontal;
|
|
44
|
+
height: $input-height;
|
|
45
|
+
width: 100%;
|
|
46
|
+
margin-bottom: 2px;
|
|
56
47
|
|
|
57
48
|
@include form-input-placeholder {
|
|
58
|
-
opacity:
|
|
49
|
+
opacity: 100%;
|
|
59
50
|
}
|
|
60
|
-
}
|
|
61
51
|
|
|
62
|
-
|
|
63
|
-
&:not(
|
|
64
|
-
|
|
52
|
+
&:focus:not([disabled]),
|
|
53
|
+
&:hover:focus:not([disabled]) {
|
|
54
|
+
outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
|
|
55
|
+
var(--color-blue-500);
|
|
56
|
+
outline-offset: 1px;
|
|
57
|
+
|
|
58
|
+
@include form-input-placeholder {
|
|
59
|
+
opacity: 0%;
|
|
60
|
+
}
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
&.disabled {
|
|
64
|
+
&:not(.reversed) {
|
|
65
|
+
background: $input-disabled-background;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@include form-input-placeholder {
|
|
69
|
+
color: rgba($color-purple-800-rgb, $input-disabled-opacity);
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
|
-
}
|
|
72
73
|
|
|
73
|
-
/* stylelint-disable no-descending-specificity */
|
|
74
|
-
///////////////////////////////////////////////////
|
|
75
|
-
// ICON ADORNMENT STYLES
|
|
76
|
-
///////////////////////////////////////////////////
|
|
77
|
-
|
|
78
|
-
@mixin vertically-center-icon {
|
|
79
|
-
position: absolute;
|
|
80
|
-
height: $input-icon-size;
|
|
81
|
-
top: 50%;
|
|
82
|
-
transform: translateY(-50%);
|
|
83
|
-
z-index: 1;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.withStartIconAdornment {
|
|
87
|
-
.startIconAdornment {
|
|
88
|
-
@include vertically-center-icon;
|
|
74
|
+
/* stylelint-disable no-descending-specificity */
|
|
75
|
+
///////////////////////////////////////////////////
|
|
76
|
+
// ICON ADORNMENT STYLES
|
|
77
|
+
///////////////////////////////////////////////////
|
|
89
78
|
|
|
90
|
-
|
|
79
|
+
@mixin vertically-center-icon {
|
|
80
|
+
position: absolute;
|
|
81
|
+
height: $input-icon-size;
|
|
82
|
+
top: 50%;
|
|
83
|
+
transform: translateY(-50%);
|
|
84
|
+
z-index: 1;
|
|
91
85
|
}
|
|
92
86
|
|
|
93
|
-
|
|
87
|
+
.withStartIconAdornment {
|
|
94
88
|
.startIconAdornment {
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
}
|
|
89
|
+
@include vertically-center-icon;
|
|
98
90
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
}
|
|
91
|
+
inset-inline: $spacing-sm auto;
|
|
92
|
+
}
|
|
103
93
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
&.withDisabled {
|
|
95
|
+
.startIconAdornment {
|
|
96
|
+
opacity: $input-disabled-opacity;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
107
99
|
|
|
108
|
-
|
|
100
|
+
.input {
|
|
101
|
+
padding-inline: $input-with-icon-padding $input-base-padding-horizontal;
|
|
102
|
+
}
|
|
109
103
|
}
|
|
110
104
|
|
|
111
|
-
|
|
105
|
+
.withEndIconAdornment {
|
|
112
106
|
.endIconAdornment {
|
|
113
|
-
|
|
107
|
+
@include vertically-center-icon;
|
|
108
|
+
|
|
109
|
+
inset-inline: auto $spacing-sm;
|
|
114
110
|
}
|
|
115
|
-
}
|
|
116
111
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
112
|
+
&.withDisabled {
|
|
113
|
+
.endIconAdornment {
|
|
114
|
+
opacity: $input-disabled-opacity;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
121
117
|
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
.input {
|
|
119
|
+
padding-inline: $input-base-padding-horizontal $input-with-icon-padding;
|
|
120
|
+
}
|
|
125
121
|
}
|
|
126
|
-
}
|
|
127
122
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
.startIconAdornment {
|
|
133
|
-
color: $color-purple-800;
|
|
134
|
-
opacity: 50%;
|
|
123
|
+
.withStartIconAdornment.withEndIconAdornment {
|
|
124
|
+
.input {
|
|
125
|
+
padding-inline: $input-with-icon-padding $input-with-icon-padding;
|
|
126
|
+
}
|
|
135
127
|
}
|
|
136
128
|
|
|
129
|
+
// Default theme
|
|
137
130
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
138
|
-
|
|
131
|
+
.withStartIconAdornment {
|
|
139
132
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
140
133
|
.startIconAdornment {
|
|
141
|
-
|
|
134
|
+
color: $color-purple-800;
|
|
135
|
+
opacity: 50%;
|
|
142
136
|
}
|
|
143
|
-
}
|
|
144
137
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
138
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
139
|
+
&.withDisabled {
|
|
140
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
141
|
+
.startIconAdornment {
|
|
142
|
+
opacity: 30%;
|
|
143
|
+
}
|
|
150
144
|
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
145
|
|
|
154
|
-
|
|
155
|
-
.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
&.withDisabled {
|
|
162
|
-
.startIconAdornment {
|
|
163
|
-
opacity: 30%;
|
|
146
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
147
|
+
&:hover:not(.withDisabled),
|
|
148
|
+
&:focus-within:not(.withDisabled) {
|
|
149
|
+
.startIconAdornment {
|
|
150
|
+
opacity: 70%;
|
|
151
|
+
}
|
|
164
152
|
}
|
|
165
153
|
}
|
|
166
154
|
|
|
167
|
-
|
|
168
|
-
|
|
155
|
+
// Reversed
|
|
156
|
+
.withStartIconAdornment.withReversed {
|
|
169
157
|
.startIconAdornment {
|
|
158
|
+
color: $color-white;
|
|
170
159
|
opacity: 100%;
|
|
171
160
|
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
161
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
162
|
+
&.withDisabled {
|
|
163
|
+
.startIconAdornment {
|
|
164
|
+
opacity: 30%;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
180
167
|
|
|
181
|
-
|
|
182
|
-
.
|
|
183
|
-
|
|
168
|
+
&:hover:not(.withDisabled),
|
|
169
|
+
&:focus-within:not(.withDisabled) {
|
|
170
|
+
.startIconAdornment {
|
|
171
|
+
opacity: 100%;
|
|
172
|
+
}
|
|
184
173
|
}
|
|
185
174
|
}
|
|
186
175
|
|
|
187
|
-
|
|
188
|
-
&:focus-within:not(.withDisabled) {
|
|
176
|
+
.withEndIconAdornment.withReversed {
|
|
189
177
|
.endIconAdornment {
|
|
178
|
+
color: $color-white;
|
|
190
179
|
opacity: 100%;
|
|
191
180
|
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
181
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
.input.default {
|
|
201
|
-
background-color: $color-white;
|
|
202
|
-
color: $color-purple-800;
|
|
203
|
-
display: flex;
|
|
204
|
-
align-items: center;
|
|
205
|
-
|
|
206
|
-
@include form-input-placeholder {
|
|
207
|
-
color: $color-purple-800;
|
|
208
|
-
opacity: $input-placeholder-opacity;
|
|
209
|
-
}
|
|
182
|
+
&.withDisabled {
|
|
183
|
+
.endIconAdornment {
|
|
184
|
+
opacity: 30%;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
210
187
|
|
|
211
|
-
|
|
212
|
-
|
|
188
|
+
&:hover:not(.withDisabled),
|
|
189
|
+
&:focus-within:not(.withDisabled) {
|
|
190
|
+
.endIconAdornment {
|
|
191
|
+
opacity: 100%;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
213
194
|
}
|
|
214
195
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
196
|
+
///////////////////////////////////////////////////
|
|
197
|
+
// THEMES
|
|
198
|
+
///////////////////////////////////////////////////
|
|
218
199
|
|
|
219
|
-
|
|
200
|
+
// Default
|
|
201
|
+
.input.default {
|
|
220
202
|
background-color: $color-white;
|
|
221
|
-
|
|
222
|
-
|
|
203
|
+
color: $color-purple-800;
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
223
206
|
|
|
224
207
|
@include form-input-placeholder {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&:not(.error, .caution) {
|
|
230
|
-
border-color: $color-gray-500;
|
|
231
|
-
|
|
232
|
-
&:disabled {
|
|
233
|
-
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
208
|
+
color: $color-purple-800;
|
|
209
|
+
opacity: $input-placeholder-opacity;
|
|
234
210
|
}
|
|
235
211
|
|
|
236
212
|
@include form-input-focus-state {
|
|
237
|
-
|
|
213
|
+
background-color: $color-gray-200;
|
|
238
214
|
}
|
|
239
|
-
}
|
|
240
215
|
|
|
241
|
-
|
|
242
|
-
|
|
216
|
+
&:focus + .focusRing {
|
|
217
|
+
border-color: $color-blue-500;
|
|
218
|
+
}
|
|
243
219
|
|
|
244
220
|
&.disabled {
|
|
245
|
-
|
|
221
|
+
background-color: $color-white;
|
|
222
|
+
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
223
|
+
color: rgba($color-purple-800-rgb, $input-disabled-opacity);
|
|
224
|
+
|
|
225
|
+
@include form-input-placeholder {
|
|
226
|
+
opacity: $input-disabled-opacity;
|
|
227
|
+
}
|
|
246
228
|
}
|
|
247
|
-
}
|
|
248
229
|
|
|
249
|
-
|
|
250
|
-
|
|
230
|
+
&:not(.error, .caution) {
|
|
231
|
+
border-color: $color-gray-500;
|
|
251
232
|
|
|
252
|
-
|
|
253
|
-
|
|
233
|
+
&:disabled {
|
|
234
|
+
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@include form-input-focus-state {
|
|
238
|
+
border-color: $color-gray-600;
|
|
239
|
+
}
|
|
254
240
|
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
241
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
background: transparent;
|
|
261
|
-
color: $color-white;
|
|
242
|
+
&.error {
|
|
243
|
+
border-color: $color-red-500;
|
|
262
244
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
245
|
+
&.disabled {
|
|
246
|
+
border-color: rgba($color-red-500-rgb, $input-disabled-opacity);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
267
249
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
250
|
+
&.caution {
|
|
251
|
+
border-color: $color-yellow-600;
|
|
271
252
|
|
|
272
|
-
|
|
273
|
-
|
|
253
|
+
&.disabled {
|
|
254
|
+
border-color: rgba($color-yellow-600-rgb, $input-disabled-opacity);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
274
257
|
}
|
|
275
258
|
|
|
276
|
-
|
|
277
|
-
|
|
259
|
+
// Reversed (Dark Backgrounds)
|
|
260
|
+
.input.reversed {
|
|
261
|
+
background: transparent;
|
|
262
|
+
color: $color-white;
|
|
278
263
|
|
|
279
|
-
|
|
280
|
-
|
|
264
|
+
@include form-input-placeholder {
|
|
265
|
+
color: $color-white;
|
|
266
|
+
opacity: $input-placeholder-opacity;
|
|
281
267
|
}
|
|
282
268
|
|
|
283
269
|
@include form-input-focus-state {
|
|
284
|
-
|
|
270
|
+
background: rgba($color-white-rgb, 0.1);
|
|
285
271
|
}
|
|
286
|
-
}
|
|
287
272
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
291
|
-
|
|
292
|
-
@include form-input-placeholder {
|
|
293
|
-
opacity: $input-disabled-opacity;
|
|
273
|
+
&:focus {
|
|
274
|
+
outline-color: var(--color-blue-300);
|
|
294
275
|
}
|
|
295
|
-
}
|
|
296
276
|
|
|
297
|
-
|
|
298
|
-
|
|
277
|
+
&:not(.error, .caution) {
|
|
278
|
+
border-color: rgba($color-white-rgb, 0.65);
|
|
279
|
+
|
|
280
|
+
&:disabled {
|
|
281
|
+
border-color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@include form-input-focus-state {
|
|
285
|
+
border-color: $color-white;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
299
288
|
|
|
300
289
|
&.disabled {
|
|
301
|
-
|
|
290
|
+
background: transparent;
|
|
291
|
+
color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
292
|
+
|
|
293
|
+
@include form-input-placeholder {
|
|
294
|
+
opacity: $input-disabled-opacity;
|
|
295
|
+
}
|
|
302
296
|
}
|
|
303
|
-
}
|
|
304
297
|
|
|
305
|
-
|
|
306
|
-
|
|
298
|
+
&.error {
|
|
299
|
+
border-color: $color-red-300;
|
|
307
300
|
|
|
308
|
-
|
|
309
|
-
|
|
301
|
+
&.disabled {
|
|
302
|
+
border-color: rgba($color-red-300-rgb, $input-disabled-opacity);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&.caution {
|
|
307
|
+
border-color: $color-yellow-400;
|
|
308
|
+
|
|
309
|
+
&.disabled {
|
|
310
|
+
border-color: rgba($color-yellow-400-rgb, $input-disabled-opacity);
|
|
311
|
+
}
|
|
310
312
|
}
|
|
311
313
|
}
|
|
314
|
+
/* stylelint-enable no-descending-specificity */
|
|
312
315
|
}
|
|
313
|
-
/* stylelint-enable no-descending-specificity */
|