@innovaccer/design-system 2.5.0-4 → 2.6.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/.all-contributorsrc +1 -1
- package/.eslintrc.json +53 -0
- package/.github/workflows/jira.yml +1 -2
- package/.github/workflows/main.yml +2 -2
- package/.github/workflows/pull_request.yml +1 -1
- package/.github/workflows/test.yml +1 -1
- package/.husky/commit-msg +4 -0
- package/.prettierrc +2 -2
- package/CHANGELOG.md +38 -88
- package/CONTRIBUTING.md +173 -97
- package/README.md +1 -1
- package/commitlint.config.js +1 -0
- package/core/accessibility/utils/index.ts +5 -0
- package/core/accessibility/utils/isEnterKey.ts +5 -0
- package/core/accessibility/utils/isSpaceKey.ts +5 -0
- package/core/accessibility/utils/useAccessibilityProps.ts +31 -0
- package/core/components/atoms/_chip/__tests__/__snapshots__/_chip.test.tsx.snap +8 -0
- package/core/components/atoms/_chip/index.tsx +2 -0
- package/core/components/atoms/button/__stories__/Alert.story.tsx +8 -1
- package/core/components/atoms/button/__stories__/Cancel.story.tsx +4 -1
- package/core/components/atoms/button/__stories__/IconButtonGroup.story.tsx +12 -3
- package/core/components/atoms/button/__stories__/IconButtonSecondary.story.tsx +6 -1
- package/core/components/atoms/button/__stories__/IconLeftSecondary.story.tsx +4 -1
- package/core/components/atoms/button/__stories__/IconRightSecondary.story.tsx +4 -1
- package/core/components/atoms/button/__stories__/IconTransparent.story.tsx +4 -1
- package/core/components/atoms/button/__stories__/LabelButtonGroup.story.tsx +14 -3
- package/core/components/atoms/button/__stories__/LargeIconExpanded.story.tsx +4 -1
- package/core/components/atoms/button/__stories__/LoadingPrimary.story.tsx +4 -1
- package/core/components/atoms/button/__stories__/Primary.story.tsx +5 -2
- package/core/components/atoms/button/__stories__/SplitButton.story.tsx +6 -1
- package/core/components/atoms/button/__stories__/Transparent.story.tsx +8 -1
- package/core/components/atoms/button/__stories__/index.story.tsx +11 -1
- package/core/components/atoms/button/__stories__/variants/Appearance.story.tsx +4 -0
- package/core/components/atoms/button/__stories__/variants/Expanded.story.tsx +4 -0
- package/core/components/atoms/button/__stories__/variants/Size.story.tsx +4 -0
- package/core/components/atoms/button/__stories__/variants/icon/Icon.story.tsx +15 -0
- package/core/components/atoms/button/__stories__/variants/icon/IconLeft.story.tsx +4 -0
- package/core/components/atoms/button/__stories__/variants/icon/IconRight.story.tsx +4 -0
- package/core/components/atoms/button/__stories__/variants/state/Alert.story.tsx +7 -17
- package/core/components/atoms/button/__stories__/variants/state/Basic.story.tsx +9 -17
- package/core/components/atoms/button/__stories__/variants/state/Primary.story.tsx +7 -17
- package/core/components/atoms/button/__stories__/variants/state/Success.story.tsx +7 -17
- package/core/components/atoms/button/__stories__/variants/state/Transparent.story.tsx +13 -17
- package/core/components/atoms/chipGroup/__tests__/__snapshots__/chipGroup.test.tsx.snap +6 -0
- package/core/components/atoms/collapsible/__stories__/index.story.tsx +2 -2
- package/core/components/atoms/collapsible/__tests__/__snapshots__/Collapsible.test.tsx.snap +8 -0
- package/core/components/atoms/divider/Divider.tsx +44 -0
- package/core/components/atoms/divider/__stories__/BasicDividerInCard.story.tsx +74 -0
- package/core/components/atoms/divider/__stories__/HeaderDividerInCard.story.tsx +35 -0
- package/core/components/atoms/divider/__stories__/IndentedDivider.story.tsx +49 -0
- package/core/components/atoms/divider/__stories__/Vertical.story.tsx +51 -0
- package/core/components/atoms/divider/__stories__/index.story.tsx +91 -0
- package/core/components/atoms/divider/__stories__/variants/HorizontalDivider.story.tsx +27 -0
- package/core/components/atoms/divider/__tests__/Divider.test.tsx +50 -0
- package/core/components/atoms/divider/__tests__/__snapshots__/Divider.test.tsx.snap +53 -0
- package/core/components/atoms/divider/index.tsx +2 -0
- package/core/components/atoms/dropdown/DropdownList.tsx +8 -2
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelect.story.tsx +27 -17
- package/core/components/atoms/dropdown/option/DefaultOption.tsx +3 -0
- package/core/components/atoms/dropdown/option/IconOption.tsx +3 -0
- package/core/components/atoms/dropdown/option/IconWithMetaOption.tsx +3 -0
- package/core/components/atoms/dropdown/option/MetaOption.tsx +3 -0
- package/core/components/atoms/editable/Editable.tsx +3 -0
- package/core/components/atoms/icon/Icon.tsx +14 -3
- package/core/components/atoms/icon/__stories__/variants/Image.story.tsx +6 -1
- package/core/components/atoms/icon/__tests__/__snapshots__/Icon.test.tsx.snap +74 -0
- package/core/components/atoms/input/Input.tsx +14 -4
- package/core/components/atoms/input/__stories__/BasicInput.story.tsx +2 -1
- package/core/components/atoms/input/__stories__/InputWithCaption.story.tsx +29 -9
- package/core/components/atoms/input/__stories__/InputWithLabel.story.tsx +11 -3
- package/core/components/atoms/input/__stories__/LabelPosition.story.tsx +8 -4
- package/core/components/atoms/input/__stories__/RequiredVsOptional.story.tsx +12 -8
- package/core/components/atoms/input/__tests__/__snapshots__/Input.test.tsx.snap +19 -0
- package/core/components/atoms/legend/Legend.tsx +3 -0
- package/core/components/atoms/message/__stories__/CustomDescription.tsx +25 -0
- package/core/components/atoms/metricInput/MetricInput.tsx +12 -2
- package/core/components/atoms/metricInput/__stories__/DefaultMetric.story.tsx +8 -2
- package/core/components/atoms/metricInput/__stories__/WithPrefix.story.tsx +6 -2
- package/core/components/atoms/metricInput/__stories__/index.story.tsx +1 -0
- package/core/components/atoms/metricInput/__stories__/variants/Controlled.story.tsx +2 -0
- package/core/components/atoms/metricInput/__stories__/variants/Size.story.tsx +2 -2
- package/core/components/atoms/metricInput/__stories__/withSuffix.story.tsx +6 -2
- package/core/components/atoms/metricInput/__tests__/__snapshots__/MetricInput.test.tsx.snap +20 -4
- package/core/components/atoms/multiSlider/Handle.tsx +3 -0
- package/core/components/atoms/multiSlider/index.tsx +6 -0
- package/core/components/atoms/outsideClick/__stories__/index.story.tsx +1 -1
- package/core/components/atoms/statusHint/StatusHint.tsx +3 -0
- package/core/components/atoms/switchInput/Switch.tsx +10 -4
- package/core/components/atoms/switchInput/__stories__/DefaultSwitch.story.tsx +4 -1
- package/core/components/atoms/switchInput/__stories__/OffState.story.tsx +4 -1
- package/core/components/atoms/switchInput/__stories__/index.story.tsx +26 -3
- package/core/components/atoms/switchInput/__stories__/variants/Size.story.tsx +10 -1
- package/core/components/atoms/switchInput/__stories__/variants/State.story.tsx +9 -2
- package/core/components/atoms/textarea/__stories__/TextareaWithCaption.story.tsx +9 -3
- package/core/components/atoms/textarea/__stories__/defaultTextarea.story.tsx +10 -2
- package/core/components/atoms/textarea/__stories__/index.story.tsx +1 -0
- package/core/components/atoms/textarea/__stories__/variants/Disable.story.tsx +1 -0
- package/core/components/atoms/toast/__tests__/__snapshots__/Toast.test.tsx.snap +30 -0
- package/core/components/css-utilities/Align/Align.story.tsx +1 -1
- package/core/components/css-utilities/Background/Background.story.tsx +1 -1
- package/core/components/css-utilities/Border/Border.story.tsx +1 -1
- package/core/components/css-utilities/Display/Display.story.tsx +1 -1
- package/core/components/css-utilities/Flex/Flex.story.tsx +1 -1
- package/core/components/css-utilities/Miscellaneous/Miscellaneous.story.tsx +1 -1
- package/core/components/css-utilities/Overflow/Overflow.story.tsx +1 -1
- package/core/components/css-utilities/Position/Position.story.tsx +1 -1
- package/core/components/css-utilities/Sizing/Sizing.story.tsx +1 -1
- package/core/components/css-utilities/Spacing/Spacing.story.tsx +1 -1
- package/core/components/molecules/chatMessage/Box.tsx +3 -0
- package/core/components/molecules/chipInput/ChipInput.tsx +3 -0
- package/core/components/molecules/chipInput/__tests__/__snapshots__/ChipInput.test.tsx.snap +12 -0
- package/core/components/molecules/dropzone/Dropzone.tsx +3 -0
- package/core/components/molecules/dropzone/FileSelectorUtils.tsx +1 -1
- package/core/components/molecules/editableChipInput/EditableChipInput.tsx +9 -5
- package/core/components/molecules/editableChipInput/__stories__/Uncontrolled.story.tsx +1 -1
- package/core/components/molecules/editableChipInput/__tests__/__snapshots__/EditableChipInput.test.tsx.snap +8 -0
- package/core/components/molecules/editableDropdown/EditableDropdown.tsx +2 -2
- package/core/components/molecules/editableInput/EditableInput.tsx +13 -4
- package/core/components/molecules/emptyState/EmptyState.tsx +5 -1
- package/core/components/molecules/fileList/FileListItem.tsx +2 -0
- package/core/components/molecules/fileUploader/FileUploaderItem.tsx +2 -0
- package/core/components/molecules/fileUploader/__stories__/index.story.tsx +156 -21
- package/core/components/molecules/inputMask/InputMask.tsx +1 -1
- package/core/components/molecules/inputMask/__tests__/__snapshots__/InputMask.test.tsx.snap +1 -0
- package/core/components/molecules/pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +5 -1
- package/core/components/molecules/stepper/Step.tsx +2 -0
- package/core/components/molecules/tabs/Tabs.tsx +2 -0
- package/core/components/molecules/tabs/TabsWrapper.tsx +2 -0
- package/core/components/molecules/tabs/__stories__/CustomLabels.story.tsx +1 -1
- package/core/components/molecules/verificationCodeInput/VerificationCodeInput.tsx +8 -4
- package/core/components/molecules/verificationCodeInput/__stories__/index.story.tsx +3 -1
- package/core/components/molecules/verificationCodeInput/__tests__/__snapshots__/VerificationCodeInput.test.tsx.snap +1 -0
- package/core/components/organisms/calendar/Calendar.tsx +130 -8
- package/core/components/organisms/calendar/__tests__/Calendar.test.tsx +27 -0
- package/core/components/organisms/choiceList/ChoiceList.tsx +1 -1
- package/core/components/organisms/datePicker/DatePicker.tsx +30 -15
- package/core/components/organisms/datePicker/__tests__/DatePicker.test.tsx +136 -46
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +4388 -1857
- package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +112 -40
- package/core/components/organisms/grid/Cell.tsx +4 -0
- package/core/components/organisms/grid/GridRow.tsx +4 -0
- package/core/components/organisms/grid/__stories__/_common_/fetchData.ts +2 -2
- package/core/components/organisms/horizontalNav/HorizontalNav.tsx +2 -0
- package/core/components/organisms/inlineMessage/InlineMessage.tsx +3 -5
- package/core/components/organisms/inlineMessage/__tests__/__snapshots__/InlineMessage.test.tsx.snap +30 -40
- package/core/components/organisms/navigation/VerticalNavigation.tsx +4 -0
- package/core/components/organisms/table/Table.tsx +1 -0
- package/core/components/organisms/table/__stories__/NestedTableWithNestedCard.story.tsx +4 -1
- package/core/components/organisms/table/__stories__/ResourceTable.story.tsx +3 -2
- package/core/components/organisms/table/__stories__/Selection.story.tsx +2 -2
- package/core/components/organisms/table/__stories__/TableAsDescriptionList.story.tsx +1 -1
- package/core/components/organisms/table/__stories__/TableAsOptionList.story.tsx +1 -1
- package/core/components/organisms/table/__stories__/syncTable.story.tsx +14 -6
- package/core/components/organisms/table/__stories__/variants/nestedRows.story.tsx +5 -2
- package/core/components/organisms/table/__stories__/variants/withHeader.story.tsx +0 -2
- package/core/components/organisms/timePicker/TimePicker.tsx +1 -1
- package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePicker.test.tsx.snap +14 -2
- package/core/components/organisms/verticalNav/MenuItem.tsx +2 -0
- package/core/components/patterns/datePicker/datePickerWithPresets.story.tsx +126 -0
- package/core/components/patterns/dateRangePicker/withCustomPopover.story.tsx +8 -8
- package/core/components/patterns/forms/CreatePassword.story.tsx +1 -1
- package/core/components/patterns/forms/VerificationCodeInput.story.tsx +2 -2
- package/core/components/patterns/table/Table with Header/tableWithHeader.story.jsx +7 -7
- package/core/index.tsx +1 -0
- package/core/index.type.tsx +1 -0
- package/core/utils/Keys.ts +4 -0
- package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +544 -536
- package/core/utils/docPage/index.tsx +22 -17
- package/core/utils/testHelper.ts +1 -1
- package/core/utils/validators.ts +37 -34
- package/css/dist/index.css +1523 -1402
- package/css/dist/index.css.map +1 -1
- package/css/src/components/Legend.css +7 -7
- package/css/src/components/ProgressBar.css +1 -1
- package/css/src/components/avatarGroup.css +1 -1
- package/css/src/components/backdrop.css +12 -6
- package/css/src/components/badge.css +52 -52
- package/css/src/components/button.css +99 -94
- package/css/src/components/calendar.css +137 -126
- package/css/src/components/card.css +0 -1
- package/css/src/components/cardSubdued.css +3 -5
- package/css/src/components/chat.css +1 -1
- package/css/src/components/checkbox.css +71 -70
- package/css/src/components/chip.css +14 -13
- package/css/src/components/chipGroup.css +5 -5
- package/css/src/components/chipInput.css +1 -1
- package/css/src/components/choiceList.css +4 -4
- package/css/src/components/dateRangePicker.css +13 -13
- package/css/src/components/divider.css +20 -0
- package/css/src/components/dropdown.css +61 -61
- package/css/src/components/dropdownButton.css +36 -36
- package/css/src/components/dropzone.css +16 -20
- package/css/src/components/editableChipInput.css +10 -9
- package/css/src/components/editableDropdown.css +1 -1
- package/css/src/components/editableInput.css +1 -1
- package/css/src/components/emptyState.css +15 -15
- package/css/src/components/fileList.css +44 -45
- package/css/src/components/grid.css +217 -199
- package/css/src/components/horizontalNav.css +0 -1
- package/css/src/components/icon.css +1 -7
- package/css/src/components/inlineMessage.css +2 -1
- package/css/src/components/input.css +62 -62
- package/css/src/components/link.css +1 -1
- package/css/src/components/list.css +10 -10
- package/css/src/components/message.css +69 -70
- package/css/src/components/metaList.css +26 -26
- package/css/src/components/metricInput.css +3 -4
- package/css/src/components/modal.css +1 -1
- package/css/src/components/navigation.css +3 -3
- package/css/src/components/pageHeader.css +1 -2
- package/css/src/components/pagination.css +36 -36
- package/css/src/components/pills.css +19 -19
- package/css/src/components/placeholder.css +10 -5
- package/css/src/components/popover.css +2 -2
- package/css/src/components/progressRing.css +1 -1
- package/css/src/components/radio.css +74 -74
- package/css/src/components/slider.css +5 -5
- package/css/src/components/statusHints.css +15 -15
- package/css/src/components/switch.css +45 -41
- package/css/src/components/table.css +15 -15
- package/css/src/components/tabs.css +53 -53
- package/css/src/components/textarea.css +1 -1
- package/css/src/components/toast.css +53 -53
- package/css/src/components/verificationCodeInput.css +5 -6
- package/css/src/components/verticalNav.css +1 -2
- package/css/src/core/base.css +3 -0
- package/css/src/core/typography.css +1 -1
- package/css/src/core/utilities.css +1 -1
- package/css/src/tokens/index.css +63 -63
- package/css/src/utils/align.css +1 -1
- package/css/src/utils/background.css +1 -1
- package/css/src/utils/cursor.css +1 -1
- package/css/src/utils/display.css +1 -1
- package/css/src/utils/flex.css +1 -1
- package/css/src/utils/grid.css +1 -1
- package/css/src/utils/overflow.css +1 -1
- package/css/src/utils/position.css +1 -1
- package/css/src/utils/spacing.css +1 -1
- package/css/src/utils/utility.css +13 -13
- package/css/src/variables/index.css +1 -1
- package/dist/core/accessibility/utils/index.d.ts +4 -0
- package/dist/core/accessibility/utils/isEnterKey.d.ts +3 -0
- package/dist/core/accessibility/utils/isSpaceKey.d.ts +3 -0
- package/dist/core/accessibility/utils/useAccessibilityProps.d.ts +15 -0
- package/dist/core/components/atoms/divider/Divider.d.ts +15 -0
- package/dist/core/components/atoms/divider/index.d.ts +2 -0
- package/dist/core/components/atoms/icon/Icon.d.ts +3 -1
- package/dist/core/components/atoms/input/Input.d.ts +1 -1
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +50 -49
- package/dist/core/components/atoms/switchInput/Switch.d.ts +2 -1
- package/dist/core/components/organisms/calendar/Calendar.d.ts +31 -0
- package/dist/core/components/organisms/datePicker/DatePicker.d.ts +2 -0
- package/dist/core/components/patterns/datePicker/datePickerWithPresets.story.d.ts +15 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/index.esm.js +829 -495
- package/dist/index.js +313 -144
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +17 -14
- package/.husky/prepare-commit-msg +0 -6
- package/tslint.json +0 -30
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.Legend {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: fit-content;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.Legend-icon {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
9
|
+
border-radius: var(--spacing-s);
|
|
10
|
+
margin-right: var(--spacing);
|
|
11
|
+
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
@keyframes backdrop-open {
|
|
2
|
-
from {
|
|
3
|
-
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
opacity: 60;
|
|
7
|
+
}
|
|
4
8
|
}
|
|
5
9
|
|
|
6
10
|
@keyframes backdrop-close {
|
|
7
|
-
from {
|
|
8
|
-
|
|
11
|
+
from {
|
|
12
|
+
opacity: 60;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
.Backdrop {
|
|
@@ -37,5 +45,3 @@
|
|
|
37
45
|
.Backdrop-animation--close {
|
|
38
46
|
animation: backdrop-close 120ms cubic-bezier(0.4, 0.14, 1, 1);
|
|
39
47
|
}
|
|
40
|
-
|
|
41
|
-
|
|
@@ -1,110 +1,110 @@
|
|
|
1
1
|
/* badge */
|
|
2
2
|
|
|
3
3
|
.Badge {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
/* 160px */
|
|
5
|
+
max-width: calc(var(--spacing-2) * 10);
|
|
6
|
+
/* truncate */
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
font-size: var(--font-size-s);
|
|
11
|
+
line-height: var(--font-height-s);
|
|
12
|
+
text-transform: uppercase;
|
|
13
|
+
padding-right: var(--spacing-m);
|
|
14
|
+
padding-left: var(--spacing-m);
|
|
15
|
+
padding-top: var(--spacing-s);
|
|
16
|
+
padding-bottom: var(--spacing-s);
|
|
17
|
+
border-radius: var(--spacing-m);
|
|
18
|
+
display: inline-block;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
font-weight: var(--font-weight-bold);
|
|
21
|
+
cursor: default;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.Badge--primary {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
background: var(--primary);
|
|
26
|
+
color: var(--white);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.Badge--secondary {
|
|
30
|
-
|
|
30
|
+
background: var(--secondary-light);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.Badge--success {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
background: var(--success);
|
|
35
|
+
color: var(--white);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.Badge--alert {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
background: var(--alert);
|
|
40
|
+
color: var(--white);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.Badge--warning {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
background: var(--warning);
|
|
45
|
+
color: var(--warning-darker);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.Badge--accent1 {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
background: var(--accent1);
|
|
50
|
+
color: var(--white);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.Badge--accent2 {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
background: var(--accent2);
|
|
55
|
+
color: var(--white);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.Badge--accent3 {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
background: var(--accent3);
|
|
60
|
+
color: var(--white);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.Badge--accent4 {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
background: var(--accent4);
|
|
65
|
+
color: var(--accent4-darker);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.Badge--subtle-primary {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
color: var(--primary-dark);
|
|
70
|
+
background: var(--primary-lightest);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.Badge--subtle-secondary {
|
|
74
|
-
|
|
74
|
+
background: var(--secondary-light);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.Badge--subtle-success {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
color: var(--success-dark);
|
|
79
|
+
background: var(--success-lightest);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.Badge--subtle-alert {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
color: var(--alert-dark);
|
|
84
|
+
background: var(--alert-lightest);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.Badge--subtle-warning {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
color: var(--warning-darker);
|
|
89
|
+
background: var(--warning-lightest);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.Badge--subtle-accent1 {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
color: var(--accent1-darker);
|
|
94
|
+
background: var(--accent1-lightest);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.Badge--subtle-accent2 {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
color: var(--accent2-dark);
|
|
99
|
+
background: var(--accent2-lightest);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.Badge--subtle-accent3 {
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
color: var(--accent3-dark);
|
|
104
|
+
background: var(--accent3-lightest);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.Badge--subtle-accent4 {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
color: var(--accent4-darker);
|
|
109
|
+
background: var(--accent4-lightest);
|
|
110
110
|
}
|
|
@@ -1,235 +1,240 @@
|
|
|
1
1
|
.Button {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
position: relative;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
user-select: none;
|
|
11
|
+
border: 0;
|
|
12
|
+
border-radius: var(--spacing-m);
|
|
13
|
+
|
|
14
|
+
padding-top: var(--spacing);
|
|
15
|
+
padding-bottom: var(--spacing);
|
|
16
|
+
|
|
17
|
+
text-align: center;
|
|
18
|
+
font-family: var(--font-family);
|
|
19
|
+
font-weight: var(--font-weight-normal);
|
|
20
|
+
font-size: var(--font-size);
|
|
21
|
+
line-height: var(--font-height-s);
|
|
22
|
+
color: var(--text-white);
|
|
23
|
+
|
|
24
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
|
|
25
|
+
box-shadow 0.15s ease-in-out;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.Button:disabled {
|
|
28
|
-
|
|
29
|
+
cursor: not-allowed;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.Button:focus {
|
|
32
|
-
|
|
33
|
+
outline: 0;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.Button--iconAlign-right {
|
|
36
|
-
|
|
37
|
+
flex-direction: row-reverse;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.Button--tiny {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
height: var(--spacing-xl);
|
|
42
|
+
padding-right: var(--spacing);
|
|
43
|
+
padding-left: var(--spacing);
|
|
44
|
+
padding-top: var(--spacing-m);
|
|
45
|
+
padding-bottom: var(--spacing-m);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
.Button--tinySquare {
|
|
48
|
-
|
|
49
|
+
width: var(--spacing-xl);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.Button--regular {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
height: var(--spacing-3);
|
|
54
|
+
padding-right: var(--spacing-l);
|
|
55
|
+
padding-left: var(--spacing-l);
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
.Button--regularSquare {
|
|
58
|
-
|
|
59
|
+
width: var(--spacing-3);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.Button--large {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
height: 40px;
|
|
64
|
+
padding-right: var(--spacing-2);
|
|
65
|
+
padding-left: var(--spacing-2);
|
|
66
|
+
|
|
67
|
+
line-height: var(--font-height-m);
|
|
68
|
+
font-size: var(--font-size-m);
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
.Button--largeSquare {
|
|
71
|
-
|
|
72
|
+
width: 40px;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.Button--tinySquare .Button-icon,
|
|
75
76
|
.Button--largeSquare .Button-icon,
|
|
76
77
|
.Button--tinySquare .Spinner,
|
|
77
78
|
.Button--largeSquare .Spinner {
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
padding-left: var(--spacing-s);
|
|
80
|
+
padding-right: var(--spacing-s);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
.Button--expanded {
|
|
83
|
-
|
|
84
|
+
width: 100%;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
.Button-icon {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
line-height: inherit;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.Button-icon--left {
|
|
93
|
-
|
|
94
|
+
margin-right: var(--spacing);
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
.Button-icon--right {
|
|
97
|
-
|
|
98
|
+
margin-left: var(--spacing);
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
.Button--tiny .Button-icon--left {
|
|
101
|
-
|
|
102
|
+
margin-right: var(--spacing-m);
|
|
102
103
|
}
|
|
103
104
|
.Button--tiny .Button-icon--right {
|
|
104
|
-
|
|
105
|
+
margin-left: var(--spacing-m);
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.Button--basic {
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
background: var(--secondary-light);
|
|
110
|
+
color: var(--inverse);
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
.Button--basic:hover {
|
|
113
|
-
|
|
114
|
+
background: var(--secondary);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
.Button--basic:active {
|
|
117
|
-
|
|
118
|
+
background: var(--secondary-dark);
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
.Button--basic:focus {
|
|
121
|
-
|
|
122
|
+
box-shadow: var(--shadow-spread) var(--secondary-shadow);
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
.Button--basic:disabled {
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
background: var(--secondary-lighter);
|
|
127
|
+
color: var(--inverse-lightest);
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
.Button--primary {
|
|
130
|
-
|
|
131
|
+
background: var(--primary);
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
.Button--primary:hover {
|
|
134
|
-
|
|
135
|
+
background: var(--primary-dark);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.Button--primary:active {
|
|
138
|
-
|
|
139
|
+
background: var(--primary-darker);
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
.Button--primary:focus {
|
|
142
|
-
|
|
143
|
+
box-shadow: var(--shadow-spread) var(--primary-shadow);
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
.Button--primary:disabled {
|
|
146
|
-
|
|
147
|
+
background: var(--primary-lighter);
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.Button--success {
|
|
150
|
-
|
|
151
|
+
background: var(--success);
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.Button--success:hover {
|
|
154
|
-
|
|
155
|
+
background: var(--success-dark);
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
.Button--success:active {
|
|
158
|
-
|
|
159
|
+
background: var(--success-darker);
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.Button--success:focus {
|
|
162
|
-
|
|
163
|
+
box-shadow: var(--shadow-spread) var(--success-shadow);
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
.Button--success:disabled {
|
|
166
|
-
|
|
167
|
+
background: var(--success-lighter);
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
.Button--alert {
|
|
170
|
-
|
|
171
|
+
background: var(--alert);
|
|
171
172
|
}
|
|
172
173
|
|
|
173
174
|
.Button--alert:hover {
|
|
174
|
-
|
|
175
|
+
background: var(--alert-dark);
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
.Button--alert:active {
|
|
178
|
-
|
|
179
|
+
background: var(--alert-darker);
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
.Button--alert:focus {
|
|
182
|
-
|
|
183
|
+
box-shadow: var(--shadow-spread) var(--alert-shadow);
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
.Button--alert:disabled {
|
|
186
|
-
|
|
187
|
+
background: var(--alert-lighter);
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
.Button--transparent {
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
background: transparent;
|
|
192
|
+
color: var(--inverse);
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
.Button--transparent:hover {
|
|
195
|
-
|
|
196
|
+
background: var(--secondary-light);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.Button--transparent:focus {
|
|
200
|
+
background: color-mod(var(--stone-light) a(0.2));
|
|
201
|
+
/* box-shadow: var(--shadow-spread) var(--secondary-shadow); */
|
|
196
202
|
}
|
|
197
203
|
|
|
198
204
|
.Button--transparent:active {
|
|
199
|
-
|
|
205
|
+
background: var(--secondary);
|
|
200
206
|
}
|
|
201
207
|
|
|
202
|
-
.Button--transparent:focus {
|
|
203
|
-
|
|
204
|
-
/* box-shadow: var(--shadow-spread) var(--secondary-shadow); */
|
|
208
|
+
.Button--transparent:focus:active {
|
|
209
|
+
background: var(--secondary);
|
|
205
210
|
}
|
|
206
211
|
|
|
207
212
|
.Button--transparent:disabled {
|
|
208
|
-
|
|
209
|
-
|
|
213
|
+
background: transparent;
|
|
214
|
+
color: var(--inverse-lightest);
|
|
210
215
|
}
|
|
211
216
|
|
|
212
217
|
.Button-spinner {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
display: flex;
|
|
219
|
+
position: absolute;
|
|
220
|
+
z-index: 1;
|
|
216
221
|
}
|
|
217
222
|
|
|
218
223
|
.Button--tiny .Spinner--small {
|
|
219
|
-
|
|
220
|
-
|
|
224
|
+
height: var(--font-size-s);
|
|
225
|
+
width: var(--font-size-s);
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
.Button--large .Spinner--small {
|
|
224
|
-
|
|
225
|
-
|
|
229
|
+
height: var(--font-size-l);
|
|
230
|
+
width: var(--font-size-l);
|
|
226
231
|
}
|
|
227
232
|
|
|
228
233
|
.Button--selected {
|
|
229
|
-
|
|
230
|
-
|
|
234
|
+
background: var(--primary-lightest);
|
|
235
|
+
color: var(--primary);
|
|
231
236
|
}
|
|
232
237
|
|
|
233
238
|
.Button-text--hidden {
|
|
234
|
-
|
|
239
|
+
visibility: hidden;
|
|
235
240
|
}
|