@pingux/astro 2.142.1-alpha.1 → 2.143.0-alpha.1
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/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +7 -5
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +5 -3
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +3 -6
- package/lib/cjs/components/AccordionItem/AccordionItem.js +8 -4
- package/lib/cjs/components/AstroProvider/AstroProvider.js +3 -3
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +6 -2
- package/lib/cjs/components/Button/Button.stories.js +6 -3
- package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
- package/lib/cjs/components/Button/Buttons.styles.js +2 -0
- package/lib/cjs/components/Card/Card.styles.d.ts +3 -0
- package/lib/cjs/components/Card/Card.styles.js +4 -1
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
- package/lib/cjs/components/CopyText/CopyButton.js +4 -1
- package/lib/cjs/components/CopyText/CopyText.js +2 -1
- package/lib/cjs/components/GridList/GridList.stories.js +0 -1
- package/lib/cjs/components/Icon/Icon.js +2 -1
- package/lib/cjs/components/Icon/Icon.stories.js +1 -1
- package/lib/cjs/components/IconBadge/IconBadge.js +4 -4
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -2
- package/lib/cjs/components/Input/Input.styles.js +3 -0
- package/lib/cjs/components/ListView/ListView.stories.js +27 -10
- package/lib/cjs/components/ListView/ListViewItem.js +1 -1
- package/lib/cjs/components/Loader/Loader.js +71 -5
- package/lib/cjs/components/Loader/Loader.stories.js +17 -2
- package/lib/cjs/components/Loader/Loader.styles.d.ts +7 -0
- package/lib/cjs/components/Loader/Loader.styles.js +11 -1
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +26 -15
- package/lib/cjs/components/PageHeader/PageHeader.js +5 -2
- package/lib/cjs/components/PanelHeader/PanelHeader.js +43 -10
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +9 -4
- package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +5 -0
- package/lib/cjs/components/PanelHeader/PanelHeader.test.js +22 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.js +11 -8
- package/lib/cjs/components/Stepper/Step.js +1 -1
- package/lib/cjs/components/Stepper/Stepper.styles.js +1 -0
- package/lib/cjs/components/Switch/Switch.js +12 -2
- package/lib/cjs/components/Switch/Switch.styles.js +1 -1
- package/lib/cjs/components/SwitchField/SwitchField.js +7 -2
- package/lib/cjs/components/TableBase/TableBase.d.ts +1 -7
- package/lib/cjs/components/TableBase/TableBase.js +96 -74
- package/lib/cjs/components/TableBase/TableBase.stories.js +45 -36
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +5 -7
- package/lib/cjs/components/TableBase/TableBase.styles.js +8 -3
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +5 -2
- package/lib/cjs/components/Tabs/Tabs.stories.js +23 -7
- package/lib/cjs/components/Text/Text.stories.d.ts +1 -0
- package/lib/cjs/components/Text/Text.stories.js +354 -1
- package/lib/cjs/components/Text/Text.styles.d.ts +10 -0
- package/lib/cjs/components/Text/Text.styles.js +5 -0
- package/lib/cjs/components/TextField/TextField.stories.js +12 -2
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.d.ts +23 -0
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.js +80 -0
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.d.ts +1 -0
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.js +136 -0
- package/lib/cjs/hooks/useField/useField.d.ts +6 -6
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +75 -0
- package/lib/cjs/hooks/usePagination/usePagination.d.ts +4 -4
- package/lib/cjs/styles/colors.d.ts +6 -0
- package/lib/cjs/styles/colors.js +4 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +36 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +17 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +66 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +15 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +0 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +14 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +10 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +11 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +5 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +11 -4
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +18 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.js +26 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +4 -2
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +37 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +5 -2
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +14 -35
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.d.ts +37 -0
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.js +46 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +6 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.d.ts +10 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +22 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +10 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +26 -4
- package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
- package/lib/cjs/styles/themes/next-gen/forms.d.ts +42 -0
- package/lib/cjs/styles/themes/next-gen/forms.js +5 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1185 -881
- package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/cjs/styles/themes/next-gen/text.js +2 -2
- package/lib/cjs/styles/themes/next-gen/variants/accordion.d.ts +16 -0
- package/lib/cjs/styles/themes/next-gen/variants/accordion.js +26 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +0 -17
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +1 -3
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +151 -105
- package/lib/cjs/styles/themes/next-gen/variants/button.js +38 -7
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/input.js +16 -5
- package/lib/cjs/styles/themes/next-gen/variants/label.js +5 -3
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +4 -2
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.d.ts +16 -0
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +26 -0
- package/lib/cjs/styles/themes/next-gen/variants/stepper.d.ts +66 -0
- package/lib/cjs/styles/themes/next-gen/variants/stepper.js +74 -0
- package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +36 -0
- package/lib/cjs/styles/themes/next-gen/variants/switch.js +44 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +32 -22
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +35 -23
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +62 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +67 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +919 -752
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +88 -38
- package/lib/cjs/types/loader.d.ts +5 -2
- package/lib/cjs/types/shared/style.d.ts +2 -0
- package/lib/cjs/types/tableBase.d.ts +4 -3
- package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +6 -4
- package/lib/components/AccordionGroup/AccordionGroup.js +5 -3
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +3 -6
- package/lib/components/AccordionItem/AccordionItem.js +8 -4
- package/lib/components/AstroProvider/AstroProvider.js +3 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -3
- package/lib/components/Button/Button.stories.js +4 -1
- package/lib/components/Button/Buttons.styles.js +2 -0
- package/lib/components/Card/Card.styles.js +4 -1
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
- package/lib/components/CopyText/CopyButton.js +4 -1
- package/lib/components/CopyText/CopyText.js +2 -1
- package/lib/components/GridList/GridList.stories.js +0 -1
- package/lib/components/Icon/Icon.js +2 -1
- package/lib/components/Icon/Icon.stories.js +1 -1
- package/lib/components/IconBadge/IconBadge.js +4 -4
- package/lib/components/IconBadge/IconBadge.stories.js +2 -2
- package/lib/components/Input/Input.styles.js +3 -0
- package/lib/components/ListView/ListView.stories.js +28 -11
- package/lib/components/ListView/ListViewItem.js +1 -1
- package/lib/components/Loader/Loader.js +71 -3
- package/lib/components/Loader/Loader.stories.js +13 -0
- package/lib/components/Loader/Loader.styles.js +11 -1
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +27 -16
- package/lib/components/PageHeader/PageHeader.js +5 -2
- package/lib/components/PanelHeader/PanelHeader.js +44 -11
- package/lib/components/PanelHeader/PanelHeader.stories.js +9 -4
- package/lib/components/PanelHeader/PanelHeader.styles.js +5 -0
- package/lib/components/PanelHeader/PanelHeader.test.js +23 -1
- package/lib/components/RequirementsList/RequirementsList.js +7 -4
- package/lib/components/Stepper/Step.js +1 -1
- package/lib/components/Stepper/Stepper.styles.js +1 -0
- package/lib/components/Switch/Switch.js +12 -2
- package/lib/components/Switch/Switch.styles.js +1 -1
- package/lib/components/SwitchField/SwitchField.js +7 -2
- package/lib/components/TableBase/TableBase.js +100 -72
- package/lib/components/TableBase/TableBase.stories.js +46 -37
- package/lib/components/TableBase/TableBase.styles.js +8 -3
- package/lib/components/TableBase/stories/NextGenTableBase.js +6 -3
- package/lib/components/Tabs/Tabs.stories.js +23 -7
- package/lib/components/Text/Text.stories.js +352 -0
- package/lib/components/Text/Text.styles.js +5 -0
- package/lib/components/TextField/TextField.stories.js +12 -2
- package/lib/hooks/useCircularLoader/useCircularLoader.js +71 -0
- package/lib/hooks/useCircularLoader/useCircularLoader.test.js +129 -0
- package/lib/styles/colors.js +4 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +11 -0
- package/lib/styles/themes/astro/customProperties/icons.js +12 -5
- package/lib/styles/themes/astro/customProperties/index.js +26 -1
- package/lib/styles/themes/next-gen/codeView/codeView.js +4 -2
- package/lib/styles/themes/next-gen/colors/colors.js +5 -2
- package/lib/styles/themes/next-gen/colors/iconWrapper.js +14 -35
- package/lib/styles/themes/next-gen/colors/twoTone.js +38 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +6 -3
- package/lib/styles/themes/next-gen/customProperties/customSizes.js +14 -0
- package/lib/styles/themes/next-gen/customProperties/icons.js +10 -3
- package/lib/styles/themes/next-gen/customProperties/index.js +26 -2
- package/lib/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
- package/lib/styles/themes/next-gen/forms.js +5 -0
- package/lib/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/styles/themes/next-gen/text.js +2 -2
- package/lib/styles/themes/next-gen/variants/accordion.js +18 -0
- package/lib/styles/themes/next-gen/variants/badges.js +1 -3
- package/lib/styles/themes/next-gen/variants/button.js +38 -7
- package/lib/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/styles/themes/next-gen/variants/input.js +16 -5
- package/lib/styles/themes/next-gen/variants/label.js +5 -3
- package/lib/styles/themes/next-gen/variants/listview.js +1 -1
- package/lib/styles/themes/next-gen/variants/panelHeader.js +18 -0
- package/lib/styles/themes/next-gen/variants/stepper.js +66 -0
- package/lib/styles/themes/next-gen/variants/switch.js +36 -0
- package/lib/styles/themes/next-gen/variants/tableBase.js +35 -23
- package/lib/styles/themes/next-gen/variants/text.js +67 -7
- package/lib/styles/themes/next-gen/variants/variants.js +82 -37
- package/package.json +1 -1
@@ -32,13 +32,13 @@ export var defaultFocus = {
|
|
32
32
|
var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
33
33
|
alignItems: 'center',
|
34
34
|
justifyContent: 'center',
|
35
|
+
flexShrink: 0,
|
35
36
|
minWidth: 'min-content',
|
36
37
|
cursor: 'pointer',
|
37
38
|
display: 'block',
|
38
39
|
maxWidth: '100%',
|
39
40
|
fontFamily: 'standard',
|
40
41
|
fontSize: '.9375rem',
|
41
|
-
flexGrow: '1',
|
42
42
|
fontWeight: 400,
|
43
43
|
textAlign: 'center',
|
44
44
|
verticalAlign: 'middle',
|
@@ -49,6 +49,7 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
49
49
|
borderColor: 'border.base',
|
50
50
|
px: '20px',
|
51
51
|
py: '12px',
|
52
|
+
maxHeight: '48.5px',
|
52
53
|
height: '48.5px',
|
53
54
|
'&.is-disabled': {
|
54
55
|
opacity: 0.65
|
@@ -323,7 +324,7 @@ var baseIconButton = {
|
|
323
324
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
|
324
325
|
outline: 'none',
|
325
326
|
borderRadius: '28px',
|
326
|
-
border: '
|
327
|
+
border: '1px solid',
|
327
328
|
borderColor: 'transparent',
|
328
329
|
path: {
|
329
330
|
fill: 'dark'
|
@@ -377,6 +378,23 @@ var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButto
|
|
377
378
|
alignItems: 'center',
|
378
379
|
justifyContent: 'center'
|
379
380
|
});
|
381
|
+
var hintButton = {
|
382
|
+
backgroundColor: 'transparent',
|
383
|
+
path: {
|
384
|
+
fill: 'dark'
|
385
|
+
},
|
386
|
+
'&.is-focused': {
|
387
|
+
outline: '2px solid',
|
388
|
+
outlineColor: 'primary',
|
389
|
+
outlineOffset: '3px'
|
390
|
+
},
|
391
|
+
'&.is-hovered': {
|
392
|
+
backgroundColor: 'gray-100',
|
393
|
+
path: {
|
394
|
+
fill: 'dark'
|
395
|
+
}
|
396
|
+
}
|
397
|
+
};
|
380
398
|
var badgeDeleteButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
381
399
|
height: 14,
|
382
400
|
p: 0,
|
@@ -539,11 +557,23 @@ var iconButtons = {
|
|
539
557
|
}
|
540
558
|
}
|
541
559
|
}),
|
542
|
-
hintButton: {
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
560
|
+
hintButton: _objectSpread({}, hintButton)
|
561
|
+
};
|
562
|
+
var listBoxLink = {
|
563
|
+
color: 'active',
|
564
|
+
transition: 'color, .15s, ease-in-and-out',
|
565
|
+
fontSize: 'md',
|
566
|
+
textDecoration: 'none',
|
567
|
+
px: 'md',
|
568
|
+
pt: 'md',
|
569
|
+
'&.is-pressed': {
|
570
|
+
textDecoration: 'underline',
|
571
|
+
outline: 'none',
|
572
|
+
color: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
|
573
|
+
},
|
574
|
+
'&.is-focused': {
|
575
|
+
textDecoration: 'underline',
|
576
|
+
outline: 'none'
|
547
577
|
},
|
548
578
|
badgeDeleteButton: badgeDeleteButton,
|
549
579
|
invertedBadgeDeleteButton: _objectSpread({}, badgeDeleteButton),
|
@@ -569,6 +599,7 @@ var buttons = {
|
|
569
599
|
checkboxActiveButton: checkboxActiveButton,
|
570
600
|
outlineCritical: outlineCritical,
|
571
601
|
link: link,
|
602
|
+
listBoxLink: listBoxLink,
|
572
603
|
withIcon: withIcon,
|
573
604
|
primaryWithIcon: primaryWithIcon,
|
574
605
|
inlineWithIcon: inlineWithIcon,
|
@@ -105,14 +105,14 @@ export var fieldControlWrapper = {
|
|
105
105
|
},
|
106
106
|
'&.is-read-only': {
|
107
107
|
'> input': {
|
108
|
-
backgroundColor: '
|
108
|
+
backgroundColor: 'disabled',
|
109
109
|
border: '1px solid',
|
110
|
-
borderColor: 'border.input
|
110
|
+
borderColor: 'border.input'
|
111
111
|
},
|
112
112
|
'> textarea': {
|
113
|
-
backgroundColor: '
|
113
|
+
backgroundColor: 'disabled',
|
114
114
|
border: '1px solid',
|
115
|
-
borderColor: 'border.input
|
115
|
+
borderColor: 'border.input'
|
116
116
|
},
|
117
117
|
'&:after': {
|
118
118
|
display: 'none'
|
@@ -135,7 +135,6 @@ input.promptInputWrapper = _objectSpread(_objectSpread({}, fieldControlWrapper),
|
|
135
135
|
}
|
136
136
|
});
|
137
137
|
input.multivaluesWrapper = _objectSpread(_objectSpread({}, fieldControlWrapper), {}, {
|
138
|
-
borderColor: 'border.input',
|
139
138
|
borderStyle: 'solid',
|
140
139
|
borderWidth: 1,
|
141
140
|
flexDirection: 'row !important',
|
@@ -161,6 +160,18 @@ input.multivaluesWrapper = _objectSpread(_objectSpread({}, fieldControlWrapper),
|
|
161
160
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
162
161
|
'&.is-error': {
|
163
162
|
borderColor: 'critical.dark'
|
163
|
+
},
|
164
|
+
'&.is-read-only': {
|
165
|
+
alignItems: 'center',
|
166
|
+
boxShadow: 'inset 0 0 0 100px #F6F8FA',
|
167
|
+
border: '1px solid',
|
168
|
+
borderColor: 'gray-900',
|
169
|
+
'> input': {
|
170
|
+
backgroundColor: 'background.secondary'
|
171
|
+
},
|
172
|
+
'&:after': {
|
173
|
+
display: 'none'
|
174
|
+
}
|
164
175
|
}
|
165
176
|
});
|
166
177
|
input.numberField = _objectSpread(_objectSpread({}, input), {}, {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export var label = {
|
2
2
|
color: 'text.primary',
|
3
|
-
fontSize: '
|
3
|
+
fontSize: 'md',
|
4
4
|
'&.is-float-label': {
|
5
5
|
fontSize: 'md',
|
6
6
|
fontWeight: 1,
|
@@ -12,7 +12,7 @@ export var label = {
|
|
12
12
|
},
|
13
13
|
opacity: 1,
|
14
14
|
checkbox: {
|
15
|
-
fontSize: '
|
15
|
+
fontSize: 'md',
|
16
16
|
display: 'inline-flex !important',
|
17
17
|
div: {
|
18
18
|
flexShrink: 0
|
@@ -22,6 +22,8 @@ export var label = {
|
|
22
22
|
cursor: 'pointer'
|
23
23
|
},
|
24
24
|
radioGroup: {
|
25
|
-
|
25
|
+
color: 'text.primary',
|
26
|
+
fontSize: 'md',
|
27
|
+
mb: 'md'
|
26
28
|
}
|
27
29
|
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
var container = {
|
2
|
+
bg: 'background.base',
|
3
|
+
border: 'none',
|
4
|
+
minHeight: 72,
|
5
|
+
maxHeight: 72
|
6
|
+
};
|
7
|
+
var controls = {
|
8
|
+
alignSelf: 'start',
|
9
|
+
pt: 'xs'
|
10
|
+
};
|
11
|
+
var wrapper = {
|
12
|
+
mr: 'md'
|
13
|
+
};
|
14
|
+
export default {
|
15
|
+
container: container,
|
16
|
+
controls: controls,
|
17
|
+
wrapper: wrapper
|
18
|
+
};
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
|
+
var line = {
|
13
|
+
mr: 'xs',
|
14
|
+
borderBottomWidth: '2px',
|
15
|
+
borderBottomColor: 'active',
|
16
|
+
'&.is-inactive': {
|
17
|
+
borderBottomStyle: 'solid',
|
18
|
+
borderBottomColor: 'blue-200'
|
19
|
+
}
|
20
|
+
};
|
21
|
+
var stepBase = {
|
22
|
+
borderWidth: '2px',
|
23
|
+
width: 32,
|
24
|
+
height: 32,
|
25
|
+
minWidth: 32,
|
26
|
+
minHeight: 32,
|
27
|
+
position: 'relative',
|
28
|
+
fontWeight: 2,
|
29
|
+
fontSize: 'md'
|
30
|
+
};
|
31
|
+
var tab = {
|
32
|
+
mr: 'xs'
|
33
|
+
};
|
34
|
+
var step = {
|
35
|
+
active: _objectSpread(_objectSpread({
|
36
|
+
backgroundColor: 'active',
|
37
|
+
borderColor: 'active',
|
38
|
+
color: 'background.base'
|
39
|
+
}, stepBase), {}, {
|
40
|
+
'&:before': {
|
41
|
+
content: '""',
|
42
|
+
height: '24px',
|
43
|
+
width: '24px',
|
44
|
+
top: 0,
|
45
|
+
left: 0,
|
46
|
+
position: 'absolute',
|
47
|
+
borderRadius: '100%',
|
48
|
+
borderStyle: 'solid',
|
49
|
+
borderColor: 'background.base',
|
50
|
+
borderWidth: '2px'
|
51
|
+
}
|
52
|
+
}),
|
53
|
+
completed: _objectSpread(_objectSpread({}, stepBase), {}, {
|
54
|
+
borderColor: 'active'
|
55
|
+
}),
|
56
|
+
inactive: _objectSpread({
|
57
|
+
backgroundColor: 'background.base',
|
58
|
+
borderColor: 'blue-200',
|
59
|
+
color: 'active'
|
60
|
+
}, stepBase)
|
61
|
+
};
|
62
|
+
export default {
|
63
|
+
tab: tab,
|
64
|
+
line: line,
|
65
|
+
step: step
|
66
|
+
};
|
@@ -0,0 +1,36 @@
|
|
1
|
+
export var switchable = {
|
2
|
+
container: {
|
3
|
+
minWidth: '32px',
|
4
|
+
color: 'neutral.80',
|
5
|
+
bg: 'backgorund.base',
|
6
|
+
border: '1px solid',
|
7
|
+
borderColor: 'neutral.80',
|
8
|
+
borderRadius: 9999,
|
9
|
+
'&.is-selected': {
|
10
|
+
bg: 'active',
|
11
|
+
borderColor: 'active'
|
12
|
+
}
|
13
|
+
},
|
14
|
+
thumbContainer: {
|
15
|
+
bg: 'transparent',
|
16
|
+
border: 'none',
|
17
|
+
maxWidth: 24,
|
18
|
+
height: 16,
|
19
|
+
py: '3px',
|
20
|
+
px: '3px',
|
21
|
+
'label.is-selected &': {
|
22
|
+
bg: 'transparent'
|
23
|
+
}
|
24
|
+
},
|
25
|
+
thumb: {
|
26
|
+
bg: 'gray-500',
|
27
|
+
minHeight: 10,
|
28
|
+
maxHeight: 10,
|
29
|
+
width: 10,
|
30
|
+
border: 'none',
|
31
|
+
'&.is-selected': {
|
32
|
+
bg: 'white',
|
33
|
+
transform: 'translateX(15px)'
|
34
|
+
}
|
35
|
+
}
|
36
|
+
};
|
@@ -9,11 +9,42 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
|
+
import colors from '../colors/colors';
|
12
13
|
import { defaultFocus as baseFocus } from './button';
|
13
14
|
var borderRadius = '16px';
|
14
15
|
var defaultFocus = _objectSpread(_objectSpread({}, baseFocus), {}, {
|
15
16
|
outlineOffset: '-2px'
|
16
17
|
});
|
18
|
+
var container = {
|
19
|
+
'& > thead > tr': {
|
20
|
+
'& > th:first-of-type': {
|
21
|
+
borderTopLeftRadius: borderRadius
|
22
|
+
},
|
23
|
+
'& > th:last-of-type': {
|
24
|
+
borderTopRightRadius: borderRadius
|
25
|
+
}
|
26
|
+
},
|
27
|
+
'& > tbody > tr:last-child': {
|
28
|
+
borderBottom: 'unset',
|
29
|
+
borderBottomLeftRadius: borderRadius,
|
30
|
+
borderBottomRightRadius: borderRadius,
|
31
|
+
'& > td:first-of-type': {
|
32
|
+
borderBottomLeftRadius: borderRadius
|
33
|
+
},
|
34
|
+
'& > td:last-of-type': {
|
35
|
+
borderBottomRightRadius: borderRadius
|
36
|
+
}
|
37
|
+
},
|
38
|
+
'&.has-caption > thead > tr:first-of-type > th': {
|
39
|
+
borderRadius: '0'
|
40
|
+
},
|
41
|
+
'&.has-pagination > tbody > tr:last-child': {
|
42
|
+
borderRadius: 0,
|
43
|
+
'& > td': {
|
44
|
+
borderRadius: 0
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
17
48
|
var caption = {
|
18
49
|
backgroundColor: 'background.base',
|
19
50
|
px: 'lg',
|
@@ -40,17 +71,8 @@ var row = {
|
|
40
71
|
var thead = {
|
41
72
|
borderBottomColor: 'border.base',
|
42
73
|
backgroundColor: 'background.base',
|
43
|
-
'
|
44
|
-
|
45
|
-
borderTopRightRadius: borderRadius,
|
46
|
-
'& > tr:first-child': {
|
47
|
-
'& > th:first-of-type': {
|
48
|
-
borderTopLeftRadius: borderRadius
|
49
|
-
},
|
50
|
-
'& > th:last-of-type': {
|
51
|
-
borderTopRightRadius: borderRadius
|
52
|
-
}
|
53
|
-
}
|
74
|
+
'&.is-sticky': {
|
75
|
+
boxShadow: "0 1px 0 ".concat(colors.border.base)
|
54
76
|
}
|
55
77
|
};
|
56
78
|
var head = {
|
@@ -67,24 +89,14 @@ var tbody = {
|
|
67
89
|
borderBottom: 'unset',
|
68
90
|
backgroundColor: 'background.base',
|
69
91
|
borderBottomLeftRadius: borderRadius,
|
70
|
-
borderBottomRightRadius: borderRadius
|
71
|
-
'& > tr:last-child': {
|
72
|
-
borderBottom: 'unset',
|
73
|
-
borderBottomLeftRadius: borderRadius,
|
74
|
-
borderBottomRightRadius: borderRadius,
|
75
|
-
'& > td:first-of-type': {
|
76
|
-
borderBottomLeftRadius: borderRadius
|
77
|
-
},
|
78
|
-
'& > td:last-of-type': {
|
79
|
-
borderBottomRightRadius: borderRadius
|
80
|
-
}
|
81
|
-
}
|
92
|
+
borderBottomRightRadius: borderRadius
|
82
93
|
};
|
83
94
|
var data = _objectSpread(_objectSpread({}, head), {}, {
|
84
95
|
py: 'md',
|
85
96
|
fontWeight: '1'
|
86
97
|
});
|
87
98
|
export var tableBase = {
|
99
|
+
container: container,
|
88
100
|
caption: caption,
|
89
101
|
row: row,
|
90
102
|
thead: thead,
|
@@ -10,45 +10,100 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
12
|
var hTags = {
|
13
|
+
H1: {
|
14
|
+
fontSize: 'xxx',
|
15
|
+
fontWeight: 2,
|
16
|
+
color: 'text.primary',
|
17
|
+
fontFamily: 'standard'
|
18
|
+
},
|
19
|
+
H2: {
|
20
|
+
fontSize: 'xx',
|
21
|
+
fontWeight: 2,
|
22
|
+
color: 'text.primary',
|
23
|
+
fontFamily: 'standard'
|
24
|
+
},
|
25
|
+
H3: {
|
26
|
+
fontSize: 'xl',
|
27
|
+
fontWeight: 2,
|
28
|
+
color: 'text.primary',
|
29
|
+
fontFamily: 'standard'
|
30
|
+
},
|
31
|
+
H4: {
|
32
|
+
fontSize: 'lg',
|
33
|
+
fontWeight: 2,
|
34
|
+
color: 'text.primary',
|
35
|
+
fontFamily: 'standard'
|
36
|
+
},
|
37
|
+
H5: {
|
38
|
+
fontSize: 'md',
|
39
|
+
fontWeight: 2,
|
40
|
+
color: 'text.primary',
|
41
|
+
fontFamily: 'standard'
|
42
|
+
},
|
43
|
+
H6: {
|
44
|
+
textTransform: 'uppercase',
|
45
|
+
color: 'text.primary',
|
46
|
+
fontFamily: 'standard',
|
47
|
+
fontWeight: 1,
|
48
|
+
fontSize: 'xs',
|
49
|
+
letterSpacing: '1px'
|
50
|
+
},
|
13
51
|
h1: {
|
14
52
|
fontSize: 'xxx',
|
15
53
|
fontWeight: 2,
|
16
|
-
color: 'text.
|
54
|
+
color: 'text.primary',
|
17
55
|
fontFamily: 'standard'
|
18
56
|
},
|
19
57
|
h2: {
|
20
58
|
fontSize: 'xx',
|
21
59
|
fontWeight: 2,
|
22
|
-
color: 'text.
|
60
|
+
color: 'text.primary',
|
23
61
|
fontFamily: 'standard'
|
24
62
|
},
|
25
63
|
h3: {
|
26
64
|
fontSize: 'xl',
|
27
65
|
fontWeight: 2,
|
28
|
-
color: 'text.
|
66
|
+
color: 'text.primary',
|
29
67
|
fontFamily: 'standard'
|
30
68
|
},
|
31
69
|
h4: {
|
32
70
|
fontSize: 'lg',
|
33
71
|
fontWeight: 2,
|
34
|
-
color: 'text.
|
72
|
+
color: 'text.primary',
|
35
73
|
fontFamily: 'standard'
|
36
74
|
},
|
37
75
|
h5: {
|
38
76
|
fontSize: 'md',
|
39
77
|
fontWeight: 2,
|
40
|
-
color: 'text.
|
78
|
+
color: 'text.primary',
|
41
79
|
fontFamily: 'standard'
|
42
80
|
},
|
43
81
|
h6: {
|
44
82
|
textTransform: 'uppercase',
|
45
|
-
color: 'text.
|
83
|
+
color: 'text.primary',
|
46
84
|
fontFamily: 'standard',
|
47
85
|
fontWeight: 1,
|
48
|
-
fontSize: 'xs'
|
86
|
+
fontSize: 'xs',
|
87
|
+
letterSpacing: '1px'
|
49
88
|
}
|
50
89
|
};
|
90
|
+
var buttonTitle = {
|
91
|
+
fontSize: '13px'
|
92
|
+
};
|
93
|
+
var buttonSubtitle = {
|
94
|
+
fontSize: '13px',
|
95
|
+
fontWeight: 2
|
96
|
+
};
|
51
97
|
export var text = _objectSpread(_objectSpread({
|
98
|
+
base: {
|
99
|
+
lineHeight: 'body'
|
100
|
+
},
|
101
|
+
buttonSubtitle: buttonSubtitle,
|
102
|
+
buttonTitle: buttonTitle,
|
103
|
+
pageHeaderBody: {
|
104
|
+
lineHeight: '150%',
|
105
|
+
color: 'text.primary'
|
106
|
+
},
|
52
107
|
sideNavHeader: {
|
53
108
|
py: 'sm',
|
54
109
|
lineHeight: 'body',
|
@@ -118,6 +173,11 @@ export var text = _objectSpread(_objectSpread({
|
|
118
173
|
fontSize: 'lg',
|
119
174
|
fontWeight: 2
|
120
175
|
},
|
176
|
+
panelHeaderText: _objectSpread(_objectSpread({}, hTags.h4), {}, {
|
177
|
+
textOverflow: 'ellipsis',
|
178
|
+
overflow: 'hidden',
|
179
|
+
whiteSpace: 'nowrap'
|
180
|
+
}),
|
121
181
|
messagesText: {
|
122
182
|
'&.is-success, &.is-warning, &.is-error, &.is-default': {
|
123
183
|
color: 'gray-700',
|