@pingux/astro 2.143.0-alpha.0 → 2.143.0-alpha.2
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/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/ListBox/ListBox.js +4 -2
- package/lib/cjs/components/ListBox/Option.js +8 -4
- 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/SearchField/SearchAutoComplete.d.ts +3 -0
- package/lib/cjs/components/SearchField/SearchAutoComplete.js +168 -0
- package/lib/cjs/components/SearchField/SearchField.d.ts +2 -2
- package/lib/cjs/components/SearchField/SearchField.js +20 -78
- package/lib/cjs/components/SearchField/SearchField.stories.d.ts +8 -7
- package/lib/cjs/components/SearchField/SearchField.stories.js +43 -3
- package/lib/cjs/components/SearchField/SearchField.test.js +132 -0
- package/lib/cjs/components/SearchField/SearchFieldBase.d.ts +3 -0
- package/lib/cjs/components/SearchField/SearchFieldBase.js +91 -0
- 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/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 +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +5 -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 +1151 -857
- 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/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 +900 -743
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +88 -38
- package/lib/cjs/types/listBox.d.ts +2 -0
- package/lib/cjs/types/loader.d.ts +5 -2
- package/lib/cjs/types/searchField.d.ts +11 -1
- package/lib/cjs/types/shared/style.d.ts +2 -0
- 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/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/ListBox/ListBox.js +4 -2
- package/lib/components/ListBox/Option.js +8 -4
- 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/SearchField/SearchAutoComplete.js +156 -0
- package/lib/components/SearchField/SearchField.js +18 -78
- package/lib/components/SearchField/SearchField.stories.js +41 -3
- package/lib/components/SearchField/SearchField.test.js +132 -0
- package/lib/components/SearchField/SearchFieldBase.js +79 -0
- 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/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 +5 -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/text.js +67 -7
- package/lib/styles/themes/next-gen/variants/variants.js +82 -37
- package/package.json +2 -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
|
+
};
|
@@ -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',
|
@@ -13,8 +13,9 @@ import attachment from '../../../../components/AIComponents/Attachment/Attachmen
|
|
13
13
|
import skeleton from '../../../../components/Skeleton/Skeleton.styles';
|
14
14
|
import codeView from '../codeView/codeView';
|
15
15
|
import colors from '../colors/colors';
|
16
|
+
import accordion from './accordion';
|
16
17
|
import { avatar } from './avatar';
|
17
|
-
import { defaultFocus } from './button';
|
18
|
+
import button, { defaultFocus } from './button';
|
18
19
|
import callout from './callout';
|
19
20
|
import { dataTable } from './dataTable';
|
20
21
|
import { footer } from './footer';
|
@@ -23,9 +24,11 @@ import { listView, listViewItem, lisViewItemChart } from './listview';
|
|
23
24
|
import { menu, menuItem } from './menu';
|
24
25
|
import { message } from './messages';
|
25
26
|
import { navBar } from './navbar';
|
27
|
+
import panelHeader from './panelHeader';
|
26
28
|
import popoverMenu from './popoverMenu';
|
27
29
|
import prompt from './prompt';
|
28
30
|
import response from './response';
|
31
|
+
import stepper from './stepper';
|
29
32
|
import suggestion from './suggestion';
|
30
33
|
import suggestions from './suggestions';
|
31
34
|
import { table } from './table';
|
@@ -51,6 +54,13 @@ var fieldHelperText = {
|
|
51
54
|
}
|
52
55
|
}
|
53
56
|
};
|
57
|
+
export var badgeDeleteButton = _objectSpread(_objectSpread({}, button.iconButtons.base), {}, {
|
58
|
+
borderRadius: '50%',
|
59
|
+
cursor: 'pointer',
|
60
|
+
height: 14,
|
61
|
+
p: 0,
|
62
|
+
width: 14
|
63
|
+
});
|
54
64
|
var modalSize = {
|
55
65
|
xs: ['100%', '300px', '300px', '300px', '300px', '300px'],
|
56
66
|
sm: ['100%', '500px', '500px', '500px', '500px', '500px'],
|
@@ -135,6 +145,16 @@ var listBox = {
|
|
135
145
|
'&.is-pressed': {
|
136
146
|
color: 'text.primary',
|
137
147
|
bg: 'lightblue'
|
148
|
+
},
|
149
|
+
'&.is-condensed': {
|
150
|
+
pl: 'md',
|
151
|
+
bg: 'background.base',
|
152
|
+
'&.is-selected': {
|
153
|
+
bg: 'background.base'
|
154
|
+
},
|
155
|
+
'&.is-focused': {
|
156
|
+
bg: 'background.base'
|
157
|
+
}
|
138
158
|
}
|
139
159
|
}
|
140
160
|
};
|
@@ -170,7 +190,7 @@ var progressBar = {
|
|
170
190
|
var overlayPanel = {
|
171
191
|
container: {
|
172
192
|
backgroundColor: 'background.base',
|
173
|
-
|
193
|
+
borderColor: 'border.hairline'
|
174
194
|
},
|
175
195
|
aiPanelContainer: {
|
176
196
|
backgroundColor: 'background.base',
|
@@ -210,6 +230,16 @@ var overlayPanel = {
|
|
210
230
|
backgroundColor: 'background.base'
|
211
231
|
}
|
212
232
|
};
|
233
|
+
var buttonBar = {
|
234
|
+
container: {
|
235
|
+
gap: 'sm',
|
236
|
+
backgroundColor: 'background.base'
|
237
|
+
},
|
238
|
+
justifyRightContainer: {
|
239
|
+
gap: 'sm',
|
240
|
+
backgroundColor: 'background.base'
|
241
|
+
}
|
242
|
+
};
|
213
243
|
var rockerButton = {
|
214
244
|
innerContainer: {
|
215
245
|
boxShadow: 'none',
|
@@ -268,7 +298,17 @@ var rockerButton = {
|
|
268
298
|
};
|
269
299
|
var loader = {
|
270
300
|
withinListView: {
|
271
|
-
color: 'active'
|
301
|
+
color: 'active',
|
302
|
+
py: 'sm'
|
303
|
+
},
|
304
|
+
circleSpinner: {
|
305
|
+
borderColor: 'background.base'
|
306
|
+
}
|
307
|
+
};
|
308
|
+
var breadcrumb = {
|
309
|
+
link: {
|
310
|
+
fontWeight: 2,
|
311
|
+
fontSize: 'lg'
|
272
312
|
}
|
273
313
|
};
|
274
314
|
var statusIcon = {
|
@@ -332,41 +372,10 @@ var statusIcon = {
|
|
332
372
|
}
|
333
373
|
};
|
334
374
|
export default {
|
375
|
+
accordion: accordion,
|
335
376
|
attachment: attachment,
|
336
|
-
navBar: navBar,
|
337
|
-
fieldHelperText: fieldHelperText,
|
338
|
-
message: message,
|
339
|
-
modal: modal,
|
340
|
-
tab: tab,
|
341
|
-
menuTab: menuTab,
|
342
|
-
listBox: listBox,
|
343
|
-
separator: separator,
|
344
|
-
menuItem: menuItem,
|
345
377
|
avatar: avatar,
|
346
|
-
|
347
|
-
progressBar: progressBar,
|
348
|
-
listView: listView,
|
349
|
-
lisViewItemChart: lisViewItemChart,
|
350
|
-
dataTable: dataTable,
|
351
|
-
codeView: codeView,
|
352
|
-
popoverMenu: popoverMenu,
|
353
|
-
prompt: prompt,
|
354
|
-
tabs: tabs,
|
355
|
-
menu: menu,
|
356
|
-
iconWrapper: iconWrapper,
|
357
|
-
overlayPanel: overlayPanel,
|
358
|
-
suggestions: suggestions,
|
359
|
-
suggestion: suggestion,
|
360
|
-
response: response,
|
361
|
-
skeleton: skeleton,
|
362
|
-
rockerButton: rockerButton,
|
363
|
-
tooltip: tooltip,
|
364
|
-
footer: footer,
|
365
|
-
loader: loader,
|
366
|
-
callout: callout,
|
367
|
-
table: table,
|
368
|
-
tableBase: tableBase,
|
369
|
-
statusIcon: statusIcon,
|
378
|
+
breadcrumb: breadcrumb,
|
370
379
|
box: {
|
371
380
|
indeterminateCheckboxIcon: {
|
372
381
|
height: '19.25px',
|
@@ -381,5 +390,41 @@ export default {
|
|
381
390
|
boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
|
382
391
|
}
|
383
392
|
}
|
384
|
-
}
|
393
|
+
},
|
394
|
+
buttonBar: buttonBar,
|
395
|
+
callout: callout,
|
396
|
+
codeView: codeView,
|
397
|
+
dataTable: dataTable,
|
398
|
+
fieldHelperText: fieldHelperText,
|
399
|
+
footer: footer,
|
400
|
+
iconWrapper: iconWrapper,
|
401
|
+
listBox: listBox,
|
402
|
+
listView: listView,
|
403
|
+
listViewItem: listViewItem,
|
404
|
+
lisViewItemChart: lisViewItemChart,
|
405
|
+
loader: loader,
|
406
|
+
menu: menu,
|
407
|
+
menuItem: menuItem,
|
408
|
+
menuTab: menuTab,
|
409
|
+
message: message,
|
410
|
+
modal: modal,
|
411
|
+
navBar: navBar,
|
412
|
+
overlayPanel: overlayPanel,
|
413
|
+
panelHeader: panelHeader,
|
414
|
+
popoverMenu: popoverMenu,
|
415
|
+
progressBar: progressBar,
|
416
|
+
prompt: prompt,
|
417
|
+
response: response,
|
418
|
+
rockerButton: rockerButton,
|
419
|
+
separator: separator,
|
420
|
+
skeleton: skeleton,
|
421
|
+
stepper: stepper,
|
422
|
+
suggestion: suggestion,
|
423
|
+
suggestions: suggestions,
|
424
|
+
statusIcon: statusIcon,
|
425
|
+
tab: tab,
|
426
|
+
table: table,
|
427
|
+
tableBase: tableBase,
|
428
|
+
tabs: tabs,
|
429
|
+
tooltip: tooltip
|
385
430
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "2.143.0-alpha.
|
3
|
+
"version": "2.143.0-alpha.2",
|
4
4
|
"description": "React component library for Ping Identity's design system",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -99,6 +99,7 @@
|
|
99
99
|
"@react-stately/toggle": "^3.8.5",
|
100
100
|
"@react-stately/tree": "^3.7.4",
|
101
101
|
"@react-stately/virtualizer": "~3.6.5",
|
102
|
+
"@react-types/combobox": "^3.13.8",
|
102
103
|
"@react-types/slider": "^3.7.9",
|
103
104
|
"@storybook/addon-actions": "^7.1.0",
|
104
105
|
"@storybook/api": "^7.1.0",
|