@wavv/ui 2.2.2-alpha.5 → 2.2.2-alpha.6
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/build/assets/icons/CaretDown.js +18 -0
- package/build/assets/icons/CaretUp.js +18 -0
- package/build/assets/icons/Checkbox.js +15 -0
- package/build/assets/icons/CheckboxOff.js +15 -0
- package/build/assets/icons/CheckboxPartial.js +15 -0
- package/build/assets/icons/Dialpad.js +18 -0
- package/build/assets/icons/Exclamation.js +25 -0
- package/build/assets/icons/Phone.js +13 -0
- package/build/assets/icons/PhoneAdd.js +21 -0
- package/build/assets/icons/PhoneBlocked.js +22 -0
- package/build/assets/icons/PhoneCallback.js +21 -0
- package/build/assets/icons/PhoneEnd.js +28 -0
- package/build/assets/icons/PhoneForward.js +22 -0
- package/build/assets/icons/PhoneHistory.js +21 -0
- package/build/assets/icons/PhoneHold.js +22 -0
- package/build/assets/icons/PhoneIncoming.js +22 -0
- package/build/assets/icons/PhoneMissed.js +22 -0
- package/build/assets/icons/PhoneTalk.js +22 -0
- package/build/assets/icons/PhoneTransfer.js +21 -0
- package/build/assets/icons/RadioButton.js +22 -0
- package/build/assets/icons/RadioButtonOff.js +15 -0
- package/build/assets/icons/Record.js +18 -0
- package/build/assets/icons/Screenshot.js +39 -0
- package/build/assets/icons/ShieldWavv.js +30 -0
- package/build/assets/icons/Spotify.js +15 -0
- package/build/assets/icons/SubArrow.js +16 -0
- package/build/assets/icons/ToggleOff.js +15 -0
- package/build/assets/icons/ToggleOn.js +15 -0
- package/build/assets/icons/TransferCancel.js +60 -0
- package/build/components/Accordion/Accordion.js +26 -0
- package/build/components/Accordion/Header.js +86 -0
- package/build/components/Accordion/Item.js +25 -0
- package/build/components/Accordion/Panel.js +64 -0
- package/build/components/Accordion/index.js +2 -0
- package/build/components/Audio.js +248 -0
- package/build/components/BarChart.js +123 -0
- package/build/components/Button/Button.js +258 -0
- package/build/components/Button/ButtonLoader.js +20 -0
- package/build/components/Button/ButtonTypes.js +0 -0
- package/build/components/Button/Group.js +58 -0
- package/build/components/Button/index.js +2 -0
- package/build/components/Calendar.js +49 -0
- package/build/components/CalendarParts/CalendarContainerStyles.js +15 -0
- package/build/components/CalendarParts/CalendarContent.js +138 -0
- package/build/components/CalendarParts/CalendarHeader.js +146 -0
- package/build/components/CalendarParts/useMinMax.js +23 -0
- package/build/components/CalendarParts/utils.js +6 -0
- package/build/components/ChartHelpers.js +121 -0
- package/build/components/Checkbox.js +85 -0
- package/build/components/Code/Code.js +117 -0
- package/build/components/Code/Copy.js +50 -0
- package/build/components/Code/Endpoint.js +82 -0
- package/build/components/Code/index.js +3 -0
- package/build/components/ComboBox.js +190 -0
- package/build/components/CommandMenu/CommandItem.js +32 -0
- package/build/components/CommandMenu/CommandMenu.js +136 -0
- package/build/components/CommandMenu/CommandOptions.js +24 -0
- package/build/components/CommandMenu/CommandSection.js +19 -0
- package/build/components/CommandMenu/index.js +2 -0
- package/build/components/DateRangeSelect.js +359 -0
- package/build/components/DocTable.js +32 -0
- package/build/components/Dot.js +60 -0
- package/build/components/DraftEditor.js +188 -0
- package/build/components/Dropdown.js +130 -0
- package/build/components/DropdownMenu.js +131 -0
- package/build/components/DropdownMenuParts/Menu.js +6 -0
- package/build/components/DropdownMenuParts/MenuItem.js +54 -0
- package/build/components/DropdownMenuParts/MenuOptions.js +47 -0
- package/build/components/DropdownMenuParts/MenuSection.js +14 -0
- package/build/components/DropdownSelect.js +171 -0
- package/build/components/DynamicIcon.js +49 -0
- package/build/components/Editor/Editor.js +356 -0
- package/build/components/Editor/EditorStyles.js +259 -0
- package/build/components/Editor/MergeFieldExtension.js +110 -0
- package/build/components/Editor/RichTextToolbar.js +515 -0
- package/build/components/Editor/editorUtils.js +213 -0
- package/build/components/Editor/index.js +3 -0
- package/build/components/Ellipsis.js +22 -0
- package/build/components/Focusable.js +20 -0
- package/build/components/Form.js +68 -0
- package/build/components/FormControl.js +72 -0
- package/build/components/Grid.js +53 -0
- package/build/components/Icon/Icon.js +89 -0
- package/build/components/Icon/customIcons.js +48 -0
- package/build/components/Icon/icons.js +145 -0
- package/build/components/Icon/index.js +3 -0
- package/build/components/ImageViewer.js +142 -0
- package/build/components/InlineCode.js +10 -0
- package/build/components/InputHelpers.js +106 -0
- package/build/components/Inputs/DatePicker.js +111 -0
- package/build/components/Inputs/DateRangePicker.js +166 -0
- package/build/components/Inputs/InlineInput.js +71 -0
- package/build/components/Inputs/NumberInput.js +117 -0
- package/build/components/Inputs/PhoneInput.js +96 -0
- package/build/components/Inputs/SearchInput.js +84 -0
- package/build/components/Inputs/TextArea.js +164 -0
- package/build/components/Inputs/TextInput.js +74 -0
- package/build/components/Inputs/TimeInput.js +74 -0
- package/build/components/Inputs/helpers/AriaButton.js +19 -0
- package/build/components/Inputs/helpers/DateSegment.js +22 -0
- package/build/components/Inputs/helpers/Description.js +11 -0
- package/build/components/Inputs/helpers/ErrorMessage.js +11 -0
- package/build/components/Inputs/helpers/Input.js +6 -0
- package/build/components/Inputs/helpers/InputContainerStyles.js +78 -0
- package/build/components/Inputs/helpers/InputMessage.js +30 -0
- package/build/components/Inputs/helpers/InputStyles.js +43 -0
- package/build/components/Inputs/helpers/Label.js +42 -0
- package/build/components/Inputs/helpers/LabelWrapper.js +14 -0
- package/build/components/Inputs/helpers/PickerToggle.js +7 -0
- package/build/components/Inputs/helpers/TextArea.js +8 -0
- package/build/components/Inputs/helpers/filterPastedText.js +9 -0
- package/build/components/Inputs/helpers/handlePaste.js +12 -0
- package/build/components/Inputs/helpers/isAcceptable.js +7 -0
- package/build/components/Inputs/helpers/useDynamicWidth.js +39 -0
- package/build/components/Inputs/helpers/useInputFocus.js +19 -0
- package/build/components/Label.js +42 -0
- package/build/components/LineChart.js +80 -0
- package/build/components/ListBoxParts/GridListItem.js +34 -0
- package/build/components/ListBoxParts/ListBoxItem.js +32 -0
- package/build/components/ListBoxParts/ListOptions.js +45 -0
- package/build/components/ListHelpers/GridListHeader.js +14 -0
- package/build/components/ListHelpers/GridListSection.js +14 -0
- package/build/components/ListHelpers/ItemHeaderBody.js +36 -0
- package/build/components/ListHelpers/ListHeader.js +14 -0
- package/build/components/ListHelpers/ListItemStyles.js +52 -0
- package/build/components/ListHelpers/ListRootStyles.js +14 -0
- package/build/components/ListHelpers/ListSection.js +14 -0
- package/build/components/ListHelpers/ListStyles.js +29 -0
- package/build/components/Menu.js +159 -0
- package/build/components/Message.js +107 -0
- package/build/components/MessageHr.js +32 -0
- package/build/components/Modal.js +212 -0
- package/build/components/MotionPopover.js +39 -0
- package/build/components/MultiSelect/MultiSelect.js +263 -0
- package/build/components/MultiSelect/SearchDropdown.js +155 -0
- package/build/components/MultiSelect/index.js +2 -0
- package/build/components/OptionHelpers/Container.js +34 -0
- package/build/components/OptionHelpers/Item.js +59 -0
- package/build/components/OptionHelpers/types.js +0 -0
- package/build/components/Pagination.js +121 -0
- package/build/components/PieChart.js +40 -0
- package/build/components/Popover.js +40 -0
- package/build/components/PortalScope.js +8 -0
- package/build/components/Progress/CirclePercent.js +56 -0
- package/build/components/Progress/Progress.js +59 -0
- package/build/components/Progress/index.js +3 -0
- package/build/components/Radio.js +45 -0
- package/build/components/RangeCalendar.js +60 -0
- package/build/components/Select.js +162 -0
- package/build/components/Slider.js +50 -0
- package/build/components/Spinner.js +70 -0
- package/build/components/Table/Body.js +49 -0
- package/build/components/Table/Cell.js +63 -0
- package/build/components/Table/Check.js +35 -0
- package/build/components/Table/Column.js +129 -0
- package/build/components/Table/ColumnSort.js +26 -0
- package/build/components/Table/Header.js +64 -0
- package/build/components/Table/Resizer.js +25 -0
- package/build/components/Table/Row.js +84 -0
- package/build/components/Table/SortCaret.js +24 -0
- package/build/components/Table/Table.js +88 -0
- package/build/components/Table/contentStyles.js +20 -0
- package/build/components/Table/context.js +4 -0
- package/build/components/Table/index.js +2 -0
- package/build/components/Table/types.js +0 -0
- package/build/components/Tabs.js +151 -0
- package/build/components/Tag.js +71 -0
- package/build/components/Toggle.js +59 -0
- package/build/components/ToggleButton/ToggleButton.js +104 -0
- package/build/components/ToggleButton/ToggleButtonGroup.js +36 -0
- package/build/components/ToggleButton/context.js +8 -0
- package/build/components/ToggleButton/index.js +3 -0
- package/build/components/Tooltip.js +136 -0
- package/build/components/TransferList.js +234 -0
- package/build/components/Tree/Tree.js +69 -0
- package/build/components/Tree/TreeContext.js +3 -0
- package/build/components/Tree/TreeItem.js +93 -0
- package/build/components/Tree/index.js +2 -0
- package/build/components/UnstyledButton.js +8 -0
- package/build/components/Waveform.js +243 -0
- package/build/components/draftUtils.js +193 -0
- package/build/components/helpers/getIcon.js +28 -0
- package/build/components/helpers/getPopPosition.js +20 -0
- package/build/components/helpers/isPropAllowed.js +3 -0
- package/build/components/helpers/mergePadding.js +47 -0
- package/build/components/helpers/styledProps.js +34 -0
- package/build/components/typeDefs/elementTypes.js +0 -0
- package/build/components/typeDefs/inputTypes.js +0 -0
- package/build/components/typeDefs/selectionTypes.js +0 -0
- package/build/components/typeDefs/tagTypes.js +0 -0
- package/build/components/types.js +0 -0
- package/build/global-styles/GlobalStorybookStyles.js +108 -0
- package/build/global-styles/ResetStyles.js +33 -0
- package/build/global-styles/ScrollbarStyles.js +26 -0
- package/build/global-styles/ToastStyles.js +66 -0
- package/build/global-styles/index.js +4 -0
- package/build/hooks/index.js +9 -0
- package/build/hooks/useConfirm.js +91 -0
- package/build/hooks/useControlledOpenState.js +22 -0
- package/build/hooks/useCopy.js +28 -0
- package/build/hooks/useElementObserver.js +6 -0
- package/build/hooks/useEventListener.js +19 -0
- package/build/hooks/useOnClickOutside.js +21 -0
- package/build/hooks/usePrevious.js +12 -0
- package/build/hooks/useSelectAll.js +60 -0
- package/build/hooks/useWindowSize.js +25 -0
- package/build/theme/ThemeTypes.js +0 -0
- package/build/theme/common/button.js +33 -0
- package/build/theme/common/common.js +38 -0
- package/build/theme/common/index.js +4 -0
- package/build/theme/core/colors.js +77 -0
- package/build/theme/core/dark/dark.js +457 -0
- package/build/theme/core/dark/darkScale.js +36 -0
- package/build/theme/core/light/light.js +456 -0
- package/build/theme/core/light/lightScale.js +35 -0
- package/build/theme/eighties/colors.js +78 -0
- package/build/theme/eighties/dark/dark.js +457 -0
- package/build/theme/eighties/dark/darkScale.js +36 -0
- package/build/theme/eighties/light/light.js +456 -0
- package/build/theme/eighties/light/lightScale.js +35 -0
- package/build/theme/index.js +28 -0
- package/build/utils/chunk.js +13 -0
- package/build/utils/copyToClipboard.js +29 -0
- package/build/utils/flattenListOptions.js +4 -0
- package/build/utils/formatDate.js +55 -0
- package/build/utils/index.js +6 -0
- package/build/utils/numberWithCommas.js +3 -0
- package/build/utils/range.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { transparentize } from "polished";
|
|
2
|
+
const brand = '#0074F4';
|
|
3
|
+
const error = '#FF6068';
|
|
4
|
+
const warning = '#FF9900';
|
|
5
|
+
const alertColor = '#F0BB00';
|
|
6
|
+
const success = '#00C242';
|
|
7
|
+
const grayVal = '#001D32';
|
|
8
|
+
const white = '#FFFFFF';
|
|
9
|
+
const colors = {
|
|
10
|
+
logo1: brand,
|
|
11
|
+
logo2: '#00A9E2',
|
|
12
|
+
logo3: '#67C728',
|
|
13
|
+
brand,
|
|
14
|
+
brandShade1: '#0068DC',
|
|
15
|
+
brandShade2: '#005DC3',
|
|
16
|
+
brandDark: '#4C9EF7',
|
|
17
|
+
brandDarkShade1: '#5EA8F8',
|
|
18
|
+
brandTint0: transparentize(0.95, brand),
|
|
19
|
+
brandTint1: transparentize(0.9, brand),
|
|
20
|
+
brandTint2: transparentize(0.8, brand),
|
|
21
|
+
brandTint3: transparentize(0.7, brand),
|
|
22
|
+
brandTint4: transparentize(0.6, brand),
|
|
23
|
+
brandBackground0: '#001828',
|
|
24
|
+
brandBackground1: '#0D2433',
|
|
25
|
+
brandBackground2: '#192F3D',
|
|
26
|
+
brandBackground3: '#334653',
|
|
27
|
+
brandBackground4: '#475964',
|
|
28
|
+
brandBackground5: '#596A74',
|
|
29
|
+
error,
|
|
30
|
+
errorShade1: '#E6565E',
|
|
31
|
+
errorShade2: '#CC4D53',
|
|
32
|
+
errorTint0: transparentize(0.95, error),
|
|
33
|
+
errorTint1: transparentize(0.9, error),
|
|
34
|
+
errorTint2: transparentize(0.8, error),
|
|
35
|
+
warning,
|
|
36
|
+
warningShade1: '#E68A00',
|
|
37
|
+
warningShade2: '#CC7A00',
|
|
38
|
+
warningTint0: transparentize(0.95, warning),
|
|
39
|
+
warningTint1: transparentize(0.9, warning),
|
|
40
|
+
warningTint2: transparentize(0.8, warning),
|
|
41
|
+
alert: alertColor,
|
|
42
|
+
alertShade1: '#E4B200',
|
|
43
|
+
alertShade2: '#C09600',
|
|
44
|
+
alertTint0: transparentize(0.95, alertColor),
|
|
45
|
+
alertTint1: transparentize(0.9, alertColor),
|
|
46
|
+
alertTint2: transparentize(0.8, alertColor),
|
|
47
|
+
success,
|
|
48
|
+
successShade1: '#00AF3B',
|
|
49
|
+
successShade2: '#009B35',
|
|
50
|
+
successTint0: transparentize(0.95, success),
|
|
51
|
+
successTint1: transparentize(0.9, success),
|
|
52
|
+
successTint2: transparentize(0.8, success),
|
|
53
|
+
grayscale0: transparentize(0.95, grayVal),
|
|
54
|
+
grayscale1: transparentize(0.9, grayVal),
|
|
55
|
+
grayscale2: transparentize(0.8, grayVal),
|
|
56
|
+
grayscale3: transparentize(0.7, grayVal),
|
|
57
|
+
grayscale4: transparentize(0.6, grayVal),
|
|
58
|
+
grayscale5: transparentize(0.5, grayVal),
|
|
59
|
+
grayscale6: transparentize(0.4, grayVal),
|
|
60
|
+
grayscale7: transparentize(0.3, grayVal),
|
|
61
|
+
grayscale8: transparentize(0.2, grayVal),
|
|
62
|
+
grayscale9: transparentize(0.1, grayVal),
|
|
63
|
+
grayscale10: grayVal,
|
|
64
|
+
contrast0: transparentize(0.95, white),
|
|
65
|
+
contrast1: transparentize(0.9, white),
|
|
66
|
+
contrast2: transparentize(0.8, white),
|
|
67
|
+
contrast3: transparentize(0.7, white),
|
|
68
|
+
contrast4: transparentize(0.6, white),
|
|
69
|
+
contrast5: transparentize(0.5, white),
|
|
70
|
+
contrast6: transparentize(0.4, white),
|
|
71
|
+
contrast7: transparentize(0.3, white),
|
|
72
|
+
contrast8: transparentize(0.2, white),
|
|
73
|
+
contrast9: transparentize(0.1, white),
|
|
74
|
+
contrast10: white
|
|
75
|
+
};
|
|
76
|
+
const core_colors = colors;
|
|
77
|
+
export { core_colors as default };
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import common, { button as index_js_button } from "../../common/index.js";
|
|
2
|
+
import colors from "../colors.js";
|
|
3
|
+
import darkScale from "./darkScale.js";
|
|
4
|
+
const white = '#FFFFFF';
|
|
5
|
+
const accent = colors.brandDark;
|
|
6
|
+
const dark = {
|
|
7
|
+
...common,
|
|
8
|
+
...darkScale,
|
|
9
|
+
name: 'dark',
|
|
10
|
+
button: {
|
|
11
|
+
...index_js_button,
|
|
12
|
+
primary: {
|
|
13
|
+
color: {
|
|
14
|
+
default: darkScale.scale10,
|
|
15
|
+
hover: darkScale.scale10,
|
|
16
|
+
active: darkScale.scale10
|
|
17
|
+
},
|
|
18
|
+
outlineColor: {
|
|
19
|
+
default: darkScale.scale10,
|
|
20
|
+
hover: darkScale.scale10,
|
|
21
|
+
active: darkScale.scale10
|
|
22
|
+
},
|
|
23
|
+
background: {
|
|
24
|
+
default: colors.brand,
|
|
25
|
+
hover: colors.brandShade1,
|
|
26
|
+
active: colors.brandShade2
|
|
27
|
+
},
|
|
28
|
+
outlineBackground: {
|
|
29
|
+
default: colors.brandTint0,
|
|
30
|
+
hover: colors.brandTint1,
|
|
31
|
+
active: colors.brandTint2
|
|
32
|
+
},
|
|
33
|
+
border: {
|
|
34
|
+
default: colors.brand,
|
|
35
|
+
hover: colors.brandShade1,
|
|
36
|
+
active: colors.brandShade2
|
|
37
|
+
},
|
|
38
|
+
divider: darkScale.scale2
|
|
39
|
+
},
|
|
40
|
+
secondary: {
|
|
41
|
+
color: {
|
|
42
|
+
default: darkScale.scale10,
|
|
43
|
+
hover: darkScale.scale10,
|
|
44
|
+
active: darkScale.scale10
|
|
45
|
+
},
|
|
46
|
+
outlineColor: {
|
|
47
|
+
default: darkScale.scale10,
|
|
48
|
+
hover: darkScale.scale10,
|
|
49
|
+
active: darkScale.scale10
|
|
50
|
+
},
|
|
51
|
+
background: {
|
|
52
|
+
default: darkScale.scale1,
|
|
53
|
+
hover: darkScale.scale2,
|
|
54
|
+
active: darkScale.scale3
|
|
55
|
+
},
|
|
56
|
+
outlineBackground: {
|
|
57
|
+
default: darkScale.scale1,
|
|
58
|
+
hover: darkScale.scale2,
|
|
59
|
+
active: darkScale.scale3
|
|
60
|
+
},
|
|
61
|
+
border: {
|
|
62
|
+
default: darkScale.scale2,
|
|
63
|
+
hover: darkScale.scale2,
|
|
64
|
+
active: darkScale.scale2
|
|
65
|
+
},
|
|
66
|
+
divider: darkScale.scale2
|
|
67
|
+
},
|
|
68
|
+
positive: {
|
|
69
|
+
color: {
|
|
70
|
+
default: darkScale.scale10,
|
|
71
|
+
hover: darkScale.scale10,
|
|
72
|
+
active: darkScale.scale10
|
|
73
|
+
},
|
|
74
|
+
outlineColor: {
|
|
75
|
+
default: darkScale.scale10,
|
|
76
|
+
hover: darkScale.scale10,
|
|
77
|
+
active: darkScale.scale10
|
|
78
|
+
},
|
|
79
|
+
background: {
|
|
80
|
+
default: colors.success,
|
|
81
|
+
hover: colors.successShade1,
|
|
82
|
+
active: colors.successShade2
|
|
83
|
+
},
|
|
84
|
+
outlineBackground: {
|
|
85
|
+
default: colors.successTint0,
|
|
86
|
+
hover: colors.successTint1,
|
|
87
|
+
active: colors.successTint2
|
|
88
|
+
},
|
|
89
|
+
border: {
|
|
90
|
+
default: colors.success,
|
|
91
|
+
hover: colors.successShade1,
|
|
92
|
+
active: colors.successShade2
|
|
93
|
+
},
|
|
94
|
+
divider: darkScale.scale2
|
|
95
|
+
},
|
|
96
|
+
negative: {
|
|
97
|
+
color: {
|
|
98
|
+
default: darkScale.scale10,
|
|
99
|
+
hover: darkScale.scale10,
|
|
100
|
+
active: darkScale.scale10
|
|
101
|
+
},
|
|
102
|
+
outlineColor: {
|
|
103
|
+
default: darkScale.scale10,
|
|
104
|
+
hover: darkScale.scale10,
|
|
105
|
+
active: darkScale.scale10
|
|
106
|
+
},
|
|
107
|
+
background: {
|
|
108
|
+
default: colors.error,
|
|
109
|
+
hover: colors.errorShade1,
|
|
110
|
+
active: colors.errorShade2
|
|
111
|
+
},
|
|
112
|
+
outlineBackground: {
|
|
113
|
+
default: colors.errorTint0,
|
|
114
|
+
hover: colors.errorTint1,
|
|
115
|
+
active: colors.errorTint2
|
|
116
|
+
},
|
|
117
|
+
border: {
|
|
118
|
+
default: colors.error,
|
|
119
|
+
hover: colors.errorShade1,
|
|
120
|
+
active: colors.errorShade2
|
|
121
|
+
},
|
|
122
|
+
divider: darkScale.scale2
|
|
123
|
+
},
|
|
124
|
+
caution: {
|
|
125
|
+
color: {
|
|
126
|
+
default: darkScale.scale10,
|
|
127
|
+
hover: darkScale.scale10,
|
|
128
|
+
active: darkScale.scale10
|
|
129
|
+
},
|
|
130
|
+
outlineColor: {
|
|
131
|
+
default: darkScale.scale10,
|
|
132
|
+
hover: darkScale.scale10,
|
|
133
|
+
active: darkScale.scale10
|
|
134
|
+
},
|
|
135
|
+
background: {
|
|
136
|
+
default: colors.warning,
|
|
137
|
+
hover: colors.warningShade1,
|
|
138
|
+
active: colors.warningShade2
|
|
139
|
+
},
|
|
140
|
+
outlineBackground: {
|
|
141
|
+
default: colors.warningTint0,
|
|
142
|
+
hover: colors.warningTint1,
|
|
143
|
+
active: colors.warningTint2
|
|
144
|
+
},
|
|
145
|
+
border: {
|
|
146
|
+
default: colors.warning,
|
|
147
|
+
hover: colors.warningShade1,
|
|
148
|
+
active: colors.warningShade2
|
|
149
|
+
},
|
|
150
|
+
divider: darkScale.scale2
|
|
151
|
+
},
|
|
152
|
+
subtle: {
|
|
153
|
+
color: {
|
|
154
|
+
default: colors.brand,
|
|
155
|
+
hover: colors.brand,
|
|
156
|
+
active: colors.brand
|
|
157
|
+
},
|
|
158
|
+
outlineColor: {
|
|
159
|
+
default: colors.brand,
|
|
160
|
+
hover: colors.brand,
|
|
161
|
+
active: colors.brand
|
|
162
|
+
},
|
|
163
|
+
secondaryColor: {
|
|
164
|
+
default: darkScale.scale10,
|
|
165
|
+
hover: darkScale.scale10,
|
|
166
|
+
active: darkScale.scale10
|
|
167
|
+
},
|
|
168
|
+
positiveColor: {
|
|
169
|
+
default: colors.success,
|
|
170
|
+
hover: colors.success,
|
|
171
|
+
active: colors.success
|
|
172
|
+
},
|
|
173
|
+
negativeColor: {
|
|
174
|
+
default: colors.error,
|
|
175
|
+
hover: colors.error,
|
|
176
|
+
active: colors.error
|
|
177
|
+
},
|
|
178
|
+
cautionColor: {
|
|
179
|
+
default: colors.warning,
|
|
180
|
+
hover: colors.warning,
|
|
181
|
+
active: colors.warning
|
|
182
|
+
},
|
|
183
|
+
background: {
|
|
184
|
+
default: 'transparent',
|
|
185
|
+
hover: darkScale.scale1,
|
|
186
|
+
active: darkScale.scale2
|
|
187
|
+
},
|
|
188
|
+
outlineBackground: {
|
|
189
|
+
default: 'transparent',
|
|
190
|
+
hover: darkScale.scale1,
|
|
191
|
+
active: darkScale.scale2
|
|
192
|
+
},
|
|
193
|
+
border: {
|
|
194
|
+
default: 'transparent',
|
|
195
|
+
hover: darkScale.scale2,
|
|
196
|
+
active: darkScale.scale2
|
|
197
|
+
},
|
|
198
|
+
divider: darkScale.scale2
|
|
199
|
+
},
|
|
200
|
+
link: {
|
|
201
|
+
color: {
|
|
202
|
+
default: colors.brandShade2,
|
|
203
|
+
hover: colors.brandShade1,
|
|
204
|
+
active: colors.brand
|
|
205
|
+
},
|
|
206
|
+
outlineColor: {
|
|
207
|
+
default: colors.brandShade2,
|
|
208
|
+
hover: colors.brandShade1,
|
|
209
|
+
active: colors.brand
|
|
210
|
+
},
|
|
211
|
+
secondaryColor: {
|
|
212
|
+
default: darkScale.scale8,
|
|
213
|
+
hover: darkScale.scale9,
|
|
214
|
+
active: darkScale.scale10
|
|
215
|
+
},
|
|
216
|
+
positiveColor: {
|
|
217
|
+
default: colors.successShade2,
|
|
218
|
+
hover: colors.successShade1,
|
|
219
|
+
active: colors.success
|
|
220
|
+
},
|
|
221
|
+
negativeColor: {
|
|
222
|
+
default: colors.errorShade2,
|
|
223
|
+
hover: colors.errorShade1,
|
|
224
|
+
active: colors.error
|
|
225
|
+
},
|
|
226
|
+
cautionColor: {
|
|
227
|
+
default: colors.warningShade2,
|
|
228
|
+
hover: colors.warningShade1,
|
|
229
|
+
active: colors.warning
|
|
230
|
+
},
|
|
231
|
+
background: {
|
|
232
|
+
default: 'transparent',
|
|
233
|
+
hover: 'transparent',
|
|
234
|
+
active: 'transparent'
|
|
235
|
+
},
|
|
236
|
+
outlineBackground: {
|
|
237
|
+
default: 'transparent',
|
|
238
|
+
hover: 'transparent',
|
|
239
|
+
active: 'transparent'
|
|
240
|
+
},
|
|
241
|
+
border: {
|
|
242
|
+
default: 'transparent',
|
|
243
|
+
hover: 'transparent',
|
|
244
|
+
active: 'transparent'
|
|
245
|
+
},
|
|
246
|
+
divider: 'transparent'
|
|
247
|
+
},
|
|
248
|
+
disabled: {
|
|
249
|
+
color: {
|
|
250
|
+
default: darkScale.scale4,
|
|
251
|
+
hover: darkScale.scale4,
|
|
252
|
+
active: darkScale.scale4
|
|
253
|
+
},
|
|
254
|
+
outlineColor: {
|
|
255
|
+
default: darkScale.scale4,
|
|
256
|
+
hover: darkScale.scale4,
|
|
257
|
+
active: darkScale.scale4
|
|
258
|
+
},
|
|
259
|
+
background: {
|
|
260
|
+
default: darkScale.scale1,
|
|
261
|
+
hover: darkScale.scale1,
|
|
262
|
+
active: darkScale.scale1
|
|
263
|
+
},
|
|
264
|
+
outlineBackground: {
|
|
265
|
+
default: darkScale.scale0,
|
|
266
|
+
hover: darkScale.scale0,
|
|
267
|
+
active: darkScale.scale0
|
|
268
|
+
},
|
|
269
|
+
border: {
|
|
270
|
+
default: darkScale.scale1,
|
|
271
|
+
hover: darkScale.scale1,
|
|
272
|
+
active: darkScale.scale1
|
|
273
|
+
},
|
|
274
|
+
divider: darkScale.scale1
|
|
275
|
+
},
|
|
276
|
+
color: {
|
|
277
|
+
default: white
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
calendar: {
|
|
281
|
+
background: {
|
|
282
|
+
container: colors.brandBackground3,
|
|
283
|
+
hover: darkScale.scale1,
|
|
284
|
+
active: colors.brand,
|
|
285
|
+
activeHover: colors.brandShade1,
|
|
286
|
+
activeRange: colors.brandTint4
|
|
287
|
+
},
|
|
288
|
+
color: {
|
|
289
|
+
disabled: darkScale.scale4,
|
|
290
|
+
default: darkScale.scale10,
|
|
291
|
+
active: darkScale.scale10,
|
|
292
|
+
current: accent,
|
|
293
|
+
outside: darkScale.scale6,
|
|
294
|
+
weekday: darkScale.scale4,
|
|
295
|
+
monthYear: darkScale.scale8,
|
|
296
|
+
iconDefault: darkScale.scale6,
|
|
297
|
+
iconDisabled: darkScale.scale2,
|
|
298
|
+
iconHover: darkScale.scale10
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
defaultBorder: `1px solid ${darkScale.scale1}`,
|
|
302
|
+
formControl: {
|
|
303
|
+
color: {
|
|
304
|
+
default: darkScale.scale8,
|
|
305
|
+
hover: darkScale.scale10,
|
|
306
|
+
active: colors.brand,
|
|
307
|
+
activeHover: colors.brandShade1,
|
|
308
|
+
disabled: darkScale.scale4
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
input: {
|
|
312
|
+
borderRadius: 4,
|
|
313
|
+
background: {
|
|
314
|
+
default: darkScale.scale0,
|
|
315
|
+
hover: darkScale.scale1,
|
|
316
|
+
focused: darkScale.scale1,
|
|
317
|
+
disabled: darkScale.scale0,
|
|
318
|
+
invalid: colors.errorTint2,
|
|
319
|
+
invalidHover: colors.errorTint1
|
|
320
|
+
},
|
|
321
|
+
color: {
|
|
322
|
+
default: darkScale.scale10,
|
|
323
|
+
disabled: darkScale.scale4,
|
|
324
|
+
placeholder: darkScale.scale6,
|
|
325
|
+
description: darkScale.scale6,
|
|
326
|
+
descriptionError: colors.error
|
|
327
|
+
},
|
|
328
|
+
borderColor: {
|
|
329
|
+
default: darkScale.scale6,
|
|
330
|
+
hover: darkScale.scale8,
|
|
331
|
+
focused: accent,
|
|
332
|
+
disabled: darkScale.scale4,
|
|
333
|
+
error: colors.error
|
|
334
|
+
},
|
|
335
|
+
labelColor: {
|
|
336
|
+
default: darkScale.scale8,
|
|
337
|
+
hover: darkScale.scale8,
|
|
338
|
+
filled: darkScale.scale6,
|
|
339
|
+
focused: accent,
|
|
340
|
+
disabled: darkScale.scale4
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
menu: {
|
|
344
|
+
background: darkScale.background1
|
|
345
|
+
},
|
|
346
|
+
menuItem: {
|
|
347
|
+
borderColor: colors.brand,
|
|
348
|
+
background: {
|
|
349
|
+
active: darkScale.scale0,
|
|
350
|
+
hover: darkScale.scale1,
|
|
351
|
+
inactive: 'transparent'
|
|
352
|
+
},
|
|
353
|
+
color: {
|
|
354
|
+
active: darkScale.scale10,
|
|
355
|
+
hover: darkScale.scale10,
|
|
356
|
+
inactive: darkScale.scale6
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
modal: {
|
|
360
|
+
background: colors.brandBackground3,
|
|
361
|
+
color: {
|
|
362
|
+
header: darkScale.scale10,
|
|
363
|
+
body: darkScale.scale6
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
options: {
|
|
367
|
+
background: colors.brandBackground2,
|
|
368
|
+
backdropFilter: void 0
|
|
369
|
+
},
|
|
370
|
+
optionItem: {
|
|
371
|
+
background: {
|
|
372
|
+
hover: darkScale.scale0,
|
|
373
|
+
active: darkScale.scale1,
|
|
374
|
+
inactive: 'transparent'
|
|
375
|
+
},
|
|
376
|
+
color: {
|
|
377
|
+
active: darkScale.scale10,
|
|
378
|
+
inactive: darkScale.scale10,
|
|
379
|
+
accent
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
table: {
|
|
383
|
+
color: {
|
|
384
|
+
header: darkScale.scale6,
|
|
385
|
+
body: darkScale.scale10
|
|
386
|
+
},
|
|
387
|
+
backgroundLevel: {
|
|
388
|
+
0: darkScale.background0,
|
|
389
|
+
1: darkScale.background1,
|
|
390
|
+
2: darkScale.background2,
|
|
391
|
+
3: darkScale.background3,
|
|
392
|
+
4: darkScale.background4,
|
|
393
|
+
5: darkScale.background5
|
|
394
|
+
},
|
|
395
|
+
borderColor: darkScale.scale1
|
|
396
|
+
},
|
|
397
|
+
tag: {
|
|
398
|
+
default: {
|
|
399
|
+
background: darkScale.scale1,
|
|
400
|
+
backgroundHover: darkScale.scale2,
|
|
401
|
+
backgroundDisabled: darkScale.scale0
|
|
402
|
+
},
|
|
403
|
+
error: {
|
|
404
|
+
background: colors.errorTint2,
|
|
405
|
+
backgroundHover: colors.error,
|
|
406
|
+
backgroundDisabled: colors.errorTint1
|
|
407
|
+
},
|
|
408
|
+
success: {
|
|
409
|
+
background: colors.successTint2,
|
|
410
|
+
backgroundHover: colors.success,
|
|
411
|
+
backgroundDisabled: colors.successTint1
|
|
412
|
+
},
|
|
413
|
+
warning: {
|
|
414
|
+
background: colors.warningTint2,
|
|
415
|
+
backgroundHover: colors.warning,
|
|
416
|
+
backgroundDisabled: colors.warningTint1
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
toast: {
|
|
420
|
+
color: darkScale.scale10,
|
|
421
|
+
background: {
|
|
422
|
+
default: '#0D2433',
|
|
423
|
+
info: '#002A51',
|
|
424
|
+
success: '#003A2D',
|
|
425
|
+
warning: '#333220',
|
|
426
|
+
error: '#332635'
|
|
427
|
+
},
|
|
428
|
+
border: {
|
|
429
|
+
default: darkScale.scale8,
|
|
430
|
+
info: colors.brand,
|
|
431
|
+
success: colors.success,
|
|
432
|
+
warning: colors.warning,
|
|
433
|
+
error: colors.error
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
toggle: {
|
|
437
|
+
slider: colors.brandBackground0
|
|
438
|
+
},
|
|
439
|
+
tooltip: {
|
|
440
|
+
background: colors.brandBackground4,
|
|
441
|
+
color: {
|
|
442
|
+
default: darkScale.scale10,
|
|
443
|
+
subtext: darkScale.scale6
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
editor: {
|
|
447
|
+
highlight: {
|
|
448
|
+
yellow: colors.alertShade2,
|
|
449
|
+
blue: colors.brandShade2,
|
|
450
|
+
red: colors.errorShade2,
|
|
451
|
+
green: colors.successShade2,
|
|
452
|
+
orange: colors.warningShade2
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
const dark_dark = dark;
|
|
457
|
+
export { dark_dark as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import colors from "../colors.js";
|
|
2
|
+
const scale0 = colors.contrast0;
|
|
3
|
+
const scale1 = colors.contrast1;
|
|
4
|
+
const scale2 = colors.contrast2;
|
|
5
|
+
const scale3 = colors.contrast3;
|
|
6
|
+
const scale4 = colors.contrast4;
|
|
7
|
+
const scale5 = colors.contrast5;
|
|
8
|
+
const scale6 = colors.contrast6;
|
|
9
|
+
const scale7 = colors.contrast7;
|
|
10
|
+
const scale8 = colors.contrast8;
|
|
11
|
+
const scale9 = colors.contrast9;
|
|
12
|
+
const scale10 = colors.contrast10;
|
|
13
|
+
const accent = colors.brandDark;
|
|
14
|
+
const darkScale = {
|
|
15
|
+
scale0,
|
|
16
|
+
scale1,
|
|
17
|
+
scale2,
|
|
18
|
+
scale3,
|
|
19
|
+
scale4,
|
|
20
|
+
scale5,
|
|
21
|
+
scale6,
|
|
22
|
+
scale7,
|
|
23
|
+
scale8,
|
|
24
|
+
scale9,
|
|
25
|
+
scale10,
|
|
26
|
+
accent,
|
|
27
|
+
accentShade: colors.brandDarkShade1,
|
|
28
|
+
background0: colors.brandBackground0,
|
|
29
|
+
background1: colors.brandBackground1,
|
|
30
|
+
background2: colors.brandBackground2,
|
|
31
|
+
background3: colors.brandBackground3,
|
|
32
|
+
background4: colors.brandBackground4,
|
|
33
|
+
background5: colors.brandBackground5
|
|
34
|
+
};
|
|
35
|
+
const dark_darkScale = darkScale;
|
|
36
|
+
export { dark_darkScale as default };
|