@pingux/astro 2.150.0-alpha.0 → 2.150.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 -1
- package/lib/cjs/components/AstroProvider/AstroProvider.js +4 -4
- package/lib/cjs/components/Box/Box.js +5 -3
- package/lib/cjs/components/Box/Box.stories.d.ts +1 -0
- package/lib/cjs/components/Box/Box.stories.js +18 -1
- package/lib/cjs/components/DataTable/stories/DataTableNextGenComponent.js +1 -1
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +4 -2
- package/lib/cjs/components/ListView/stories/ListViewNextGenComponent.js +1 -1
- package/lib/cjs/components/Modal/Modal.styles.js +1 -1
- package/lib/cjs/styles/colors.d.ts +6 -0
- package/lib/cjs/styles/colors.js +6 -0
- package/lib/cjs/styles/theme.js +1 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +5 -6
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +11 -7
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/footer.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +2 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +3 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.js +6 -6
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +20 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -7
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +6 -7
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +11 -7
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -2
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +156 -12
- package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.d.ts +11 -0
- package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +197 -0
- package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/box.d.ts +61 -0
- package/lib/cjs/styles/themes/next-gen/variants/box.js +58 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +106 -5
- package/lib/cjs/styles/themes/next-gen/variants/button.js +40 -4
- package/lib/cjs/styles/themes/next-gen/variants/callout.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/dataTable.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/input.js +23 -2
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/navbar.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +3 -3
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/stepper.js +3 -3
- package/lib/cjs/styles/themes/next-gen/variants/table.js +2 -2
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +4 -4
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +44 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +20 -28
- package/lib/cjs/types/iconButtonToggle.d.ts +2 -0
- package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +1 -1
- package/lib/components/AstroProvider/AstroProvider.js +4 -4
- package/lib/components/Box/Box.js +5 -3
- package/lib/components/Box/Box.stories.js +16 -0
- package/lib/components/DataTable/stories/DataTableNextGenComponent.js +1 -1
- package/lib/components/IconButtonToggle/IconButtonToggle.js +4 -2
- package/lib/components/ListView/stories/ListViewNextGenComponent.js +1 -1
- package/lib/components/Modal/Modal.styles.js +1 -1
- package/lib/styles/colors.js +6 -0
- package/lib/styles/theme.js +1 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +11 -7
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/footer.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +3 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/listview.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/message.js +6 -6
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -7
- package/lib/styles/themes/next-gen/colors/colors.js +11 -7
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -2
- package/lib/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +178 -0
- package/lib/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
- package/lib/styles/themes/next-gen/variants/box.js +49 -0
- package/lib/styles/themes/next-gen/variants/button.js +40 -4
- package/lib/styles/themes/next-gen/variants/callout.js +1 -1
- package/lib/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/styles/themes/next-gen/variants/dataTable.js +1 -1
- package/lib/styles/themes/next-gen/variants/input.js +23 -2
- package/lib/styles/themes/next-gen/variants/listview.js +1 -1
- package/lib/styles/themes/next-gen/variants/navbar.js +1 -1
- package/lib/styles/themes/next-gen/variants/navigationHeader.js +3 -3
- package/lib/styles/themes/next-gen/variants/panelHeader.js +1 -1
- package/lib/styles/themes/next-gen/variants/stepper.js +3 -3
- package/lib/styles/themes/next-gen/variants/table.js +2 -2
- package/lib/styles/themes/next-gen/variants/tableBase.js +4 -4
- package/lib/styles/themes/next-gen/variants/variants.js +20 -28
- package/package.json +1 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import EyeOffOutlineIcon from '@pingux/mdi-react/EyeOffOutlineIcon';
|
|
4
|
+
import EyeOutlineIcon from '@pingux/mdi-react/EyeOutlineIcon';
|
|
5
|
+
import { Box, Button, IconButtonToggle, Item, SelectField, Text } from '../../../..';
|
|
6
|
+
import TextField from '../../../../components/TextField';
|
|
7
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Form/Onyx Input Patterns',
|
|
10
|
+
component: TextField
|
|
11
|
+
};
|
|
12
|
+
var items = [{
|
|
13
|
+
name: 'Aardvark',
|
|
14
|
+
id: '1'
|
|
15
|
+
}, {
|
|
16
|
+
name: 'Kangaroo',
|
|
17
|
+
id: '2'
|
|
18
|
+
}, {
|
|
19
|
+
name: 'Snake',
|
|
20
|
+
id: '3'
|
|
21
|
+
}];
|
|
22
|
+
export var Default = function Default() {
|
|
23
|
+
return ___EmotionJSX(TextField, {
|
|
24
|
+
label: "Label",
|
|
25
|
+
helperText: "Help text for this field."
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export var PasswordInput = function PasswordInput() {
|
|
29
|
+
var _useState = useState(false),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
isVisible = _useState2[0],
|
|
32
|
+
setIsVisible = _useState2[1];
|
|
33
|
+
var handleVisible = function handleVisible() {
|
|
34
|
+
setIsVisible(!isVisible);
|
|
35
|
+
};
|
|
36
|
+
return ___EmotionJSX(TextField, {
|
|
37
|
+
label: "Password",
|
|
38
|
+
type: "password",
|
|
39
|
+
containerProps: {
|
|
40
|
+
sx: {
|
|
41
|
+
'& input': {
|
|
42
|
+
paddingRight: '60px'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
slots: {
|
|
47
|
+
inContainer: ___EmotionJSX(IconButtonToggle, {
|
|
48
|
+
toggledIcon: EyeOutlineIcon,
|
|
49
|
+
defaultIcon: EyeOffOutlineIcon,
|
|
50
|
+
onToggle: handleVisible,
|
|
51
|
+
isToggled: isVisible,
|
|
52
|
+
variant: "passwordVisibilityIcon",
|
|
53
|
+
buttonProps: {
|
|
54
|
+
'aria-label': 'eye icon'
|
|
55
|
+
},
|
|
56
|
+
iconProps: {
|
|
57
|
+
size: 'xs'
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
export var InputGroup = function InputGroup() {
|
|
64
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextField, {
|
|
65
|
+
label: "Label",
|
|
66
|
+
helperText: "Help text for this field.",
|
|
67
|
+
containerProps: {
|
|
68
|
+
sx: {
|
|
69
|
+
'& input': {
|
|
70
|
+
paddingLeft: '70px'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
slots: {
|
|
75
|
+
beforeInput: ___EmotionJSX(Box, {
|
|
76
|
+
variant: "box.inputGroupContentLeft",
|
|
77
|
+
p: "12px 20px"
|
|
78
|
+
}, ___EmotionJSX(Text, null, "@"))
|
|
79
|
+
}
|
|
80
|
+
}), ___EmotionJSX(TextField, {
|
|
81
|
+
label: "Label",
|
|
82
|
+
mt: "xl",
|
|
83
|
+
helperText: "Help text for this field.",
|
|
84
|
+
containerProps: {
|
|
85
|
+
sx: {
|
|
86
|
+
'& input': {
|
|
87
|
+
paddingRight: '160px'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
slots: {
|
|
92
|
+
inContainer: ___EmotionJSX(Box, {
|
|
93
|
+
variant: "box.inputGroupContentRight",
|
|
94
|
+
p: "12px 20px"
|
|
95
|
+
}, ___EmotionJSX(Text, null, "@example.com"))
|
|
96
|
+
}
|
|
97
|
+
}));
|
|
98
|
+
};
|
|
99
|
+
export var ButtonInputGroup = function ButtonInputGroup() {
|
|
100
|
+
return ___EmotionJSX(TextField, {
|
|
101
|
+
label: "Label",
|
|
102
|
+
containerProps: {
|
|
103
|
+
sx: {
|
|
104
|
+
'& input': {
|
|
105
|
+
paddingRight: '100px'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
slots: {
|
|
110
|
+
inContainer: ___EmotionJSX(Button, {
|
|
111
|
+
variant: "ButtonInputGroupContentRight"
|
|
112
|
+
}, "Button")
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
export var DropdownInputGroup = function DropdownInputGroup() {
|
|
117
|
+
var _useState3 = useState(items[0].name),
|
|
118
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
119
|
+
selectedKey = _useState4[0],
|
|
120
|
+
setSelectedKey = _useState4[1];
|
|
121
|
+
var handleSelectionChange = function handleSelectionChange(key) {
|
|
122
|
+
return setSelectedKey(key);
|
|
123
|
+
};
|
|
124
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextField, {
|
|
125
|
+
label: "Label",
|
|
126
|
+
containerProps: {
|
|
127
|
+
sx: {
|
|
128
|
+
'& > .field-control-wrapper > input': {
|
|
129
|
+
paddingRight: '160px'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
slots: {
|
|
134
|
+
inContainer: ___EmotionJSX(Box, {
|
|
135
|
+
variant: "box.inputDropDownContentRight",
|
|
136
|
+
width: "150px",
|
|
137
|
+
mt: "-2px"
|
|
138
|
+
}, ___EmotionJSX(SelectField, {
|
|
139
|
+
items: items,
|
|
140
|
+
selectedKey: selectedKey,
|
|
141
|
+
onSelectionChange: handleSelectionChange,
|
|
142
|
+
variant: "forms.input.dropDownContentRight"
|
|
143
|
+
}, function (item) {
|
|
144
|
+
return ___EmotionJSX(Item, {
|
|
145
|
+
key: item.name,
|
|
146
|
+
"data-id": item.name
|
|
147
|
+
}, item.name);
|
|
148
|
+
}))
|
|
149
|
+
}
|
|
150
|
+
}), ___EmotionJSX(TextField, {
|
|
151
|
+
label: "Label",
|
|
152
|
+
mt: "xl",
|
|
153
|
+
containerProps: {
|
|
154
|
+
sx: {
|
|
155
|
+
'& > .field-control-wrapper > input': {
|
|
156
|
+
paddingLeft: '160px'
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
slots: {
|
|
161
|
+
beforeInput: ___EmotionJSX(Box, {
|
|
162
|
+
variant: "box.inputDropDownContentLeft",
|
|
163
|
+
width: "150px",
|
|
164
|
+
mt: "-2px"
|
|
165
|
+
}, ___EmotionJSX(SelectField, {
|
|
166
|
+
items: items,
|
|
167
|
+
selectedKey: selectedKey,
|
|
168
|
+
onSelectionChange: handleSelectionChange,
|
|
169
|
+
variant: "forms.input.dropDownContentLeft"
|
|
170
|
+
}, function (item) {
|
|
171
|
+
return ___EmotionJSX(Item, {
|
|
172
|
+
key: item.name,
|
|
173
|
+
"data-id": item.name
|
|
174
|
+
}, item.name);
|
|
175
|
+
}))
|
|
176
|
+
}
|
|
177
|
+
}));
|
|
178
|
+
};
|
|
@@ -55,7 +55,7 @@ var iconSizes = ['icon-100', 'icon-200', 'icon-300', 'icon-400', 'icon-500', 'ic
|
|
|
55
55
|
var StickerSheetComponent = function StickerSheetComponent() {
|
|
56
56
|
return ___EmotionJSX(Box, {
|
|
57
57
|
sx: {
|
|
58
|
-
backgroundColor: '
|
|
58
|
+
backgroundColor: 'backgroundBase'
|
|
59
59
|
},
|
|
60
60
|
height: "100%",
|
|
61
61
|
p: "lg",
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import colors from '../colors/colors';
|
|
13
|
+
export var commonContentProps = {
|
|
14
|
+
position: 'absolute',
|
|
15
|
+
top: '50%',
|
|
16
|
+
transform: 'translateY(-50%)',
|
|
17
|
+
height: '100%',
|
|
18
|
+
width: 'max-content',
|
|
19
|
+
justifyContent: 'center'
|
|
20
|
+
};
|
|
21
|
+
export var box = {
|
|
22
|
+
indeterminateCheckboxIcon: {
|
|
23
|
+
height: '19.25px',
|
|
24
|
+
width: '19.25px',
|
|
25
|
+
'&.is-disabled': {
|
|
26
|
+
'& rect[id="indeterminate-checkbox-icon-wrapper"]': {
|
|
27
|
+
fill: 'gray-500',
|
|
28
|
+
stroke: 'gray-500'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
'&.is-focused': {
|
|
32
|
+
boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
inputDropDownContentLeft: _objectSpread(_objectSpread({}, commonContentProps), {}, {
|
|
36
|
+
left: 0
|
|
37
|
+
}),
|
|
38
|
+
inputGroupContentLeft: _objectSpread(_objectSpread({}, commonContentProps), {}, {
|
|
39
|
+
left: 0,
|
|
40
|
+
borderRight: "1px solid ".concat(colors['gray-500'])
|
|
41
|
+
}),
|
|
42
|
+
inputDropDownContentRight: _objectSpread(_objectSpread({}, commonContentProps), {}, {
|
|
43
|
+
right: 0
|
|
44
|
+
}),
|
|
45
|
+
inputGroupContentRight: _objectSpread(_objectSpread({}, commonContentProps), {}, {
|
|
46
|
+
right: 0,
|
|
47
|
+
borderLeft: "1px solid ".concat(colors['gray-500'])
|
|
48
|
+
})
|
|
49
|
+
};
|
|
@@ -13,6 +13,7 @@ import chroma from 'chroma-js';
|
|
|
13
13
|
import { copyButton } from '../codeView/codeView';
|
|
14
14
|
import colors from '../colors/colors';
|
|
15
15
|
import tShirtSizes from '../customProperties/tShirtSizes';
|
|
16
|
+
import { commonContentProps } from './box';
|
|
16
17
|
var primaryBlue = colors.primary,
|
|
17
18
|
primaryBlueHover = colors.active_hover,
|
|
18
19
|
primaryBluePress = colors.active_pressed,
|
|
@@ -109,8 +110,19 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
|
109
110
|
var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
110
111
|
backgroundColor: 'transparent',
|
|
111
112
|
borderColor: 'border.base',
|
|
112
|
-
color: '
|
|
113
|
-
'&.is-
|
|
113
|
+
color: 'font.base',
|
|
114
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
|
115
|
+
outlineColor: 'gray-700',
|
|
116
|
+
backgroundColor: 'background.secondary'
|
|
117
|
+
}),
|
|
118
|
+
'&.is-pressed': {
|
|
119
|
+
backgroundColor: 'background.secondary',
|
|
120
|
+
color: 'font.base'
|
|
121
|
+
},
|
|
122
|
+
'&.is-hovered': _objectSpread({
|
|
123
|
+
backgroundColor: 'background.secondary',
|
|
124
|
+
color: 'font.base'
|
|
125
|
+
}, boxShadowNone)
|
|
114
126
|
});
|
|
115
127
|
var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
116
128
|
backgroundColor: 'transparent',
|
|
@@ -500,7 +512,21 @@ var iconButtons = {
|
|
|
500
512
|
}
|
|
501
513
|
}
|
|
502
514
|
}),
|
|
503
|
-
hintButton: _objectSpread({}, hintButton)
|
|
515
|
+
hintButton: _objectSpread({}, hintButton),
|
|
516
|
+
passwordVisibilityIcon: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), commonContentProps), {}, {
|
|
517
|
+
right: 0,
|
|
518
|
+
padding: '12px 20px',
|
|
519
|
+
border: '0px solid !important',
|
|
520
|
+
'&:hover, &.is-pressed': {
|
|
521
|
+
background: 'transparent',
|
|
522
|
+
boxShadow: 'none'
|
|
523
|
+
},
|
|
524
|
+
'&.is-focused': {
|
|
525
|
+
outline: '2px solid',
|
|
526
|
+
outlineOffset: '2px',
|
|
527
|
+
outlineColor: 'gray-700'
|
|
528
|
+
}
|
|
529
|
+
})
|
|
504
530
|
};
|
|
505
531
|
var listBoxLink = {
|
|
506
532
|
color: 'active',
|
|
@@ -529,6 +555,15 @@ var listBoxLink = {
|
|
|
529
555
|
}
|
|
530
556
|
})
|
|
531
557
|
};
|
|
558
|
+
var ButtonInputGroupContentRight = _objectSpread(_objectSpread(_objectSpread({}, tertiary), commonContentProps), {}, {
|
|
559
|
+
right: 0,
|
|
560
|
+
padding: '12px 20px',
|
|
561
|
+
borderRadius: '0px 4px 4px 0px !important',
|
|
562
|
+
borderWidth: '0px !important',
|
|
563
|
+
borderLeftWidth: '1px !important',
|
|
564
|
+
borderRightWidth: '1px !important',
|
|
565
|
+
borderLeftColor: 'gray-500'
|
|
566
|
+
});
|
|
532
567
|
var buttons = {
|
|
533
568
|
neutral: neutral,
|
|
534
569
|
primary: primary,
|
|
@@ -552,6 +587,7 @@ var buttons = {
|
|
|
552
587
|
iconButtons: iconButtons,
|
|
553
588
|
modalCloseButton: modalCloseButton,
|
|
554
589
|
aiChat: aiChat,
|
|
555
|
-
paginationMenu: paginationMenu
|
|
590
|
+
paginationMenu: paginationMenu,
|
|
591
|
+
ButtonInputGroupContentRight: ButtonInputGroupContentRight
|
|
556
592
|
};
|
|
557
593
|
export default buttons;
|
|
@@ -17,7 +17,7 @@ var interactive = {
|
|
|
17
17
|
borderColor: 'border.base',
|
|
18
18
|
transition: 'border-color .25s ease-in',
|
|
19
19
|
'&.is-focused': {
|
|
20
|
-
backgroundColor: '
|
|
20
|
+
backgroundColor: 'backgroundBase',
|
|
21
21
|
outline: '2px solid',
|
|
22
22
|
outlineColor: 'focus',
|
|
23
23
|
outlineOffset: '0px'
|
|
@@ -24,7 +24,7 @@ export var input = {
|
|
|
24
24
|
fontSize: 'md',
|
|
25
25
|
fontFamily: 'standard',
|
|
26
26
|
p: '0.75rem',
|
|
27
|
-
backgroundColor: '
|
|
27
|
+
backgroundColor: 'backgroundBase',
|
|
28
28
|
borderColor: 'border.input',
|
|
29
29
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
30
30
|
borderRadius: '4px',
|
|
@@ -167,7 +167,7 @@ input.multivaluesWrapper = _objectSpread(_objectSpread({}, fieldControlWrapper),
|
|
|
167
167
|
border: '1px solid',
|
|
168
168
|
borderColor: 'gray-900',
|
|
169
169
|
'> input': {
|
|
170
|
-
backgroundColor: '
|
|
170
|
+
backgroundColor: 'backgroundSecondary'
|
|
171
171
|
},
|
|
172
172
|
'&:after': {
|
|
173
173
|
display: 'none'
|
|
@@ -192,4 +192,25 @@ input.promptInputAttachmentWrapper = {
|
|
|
192
192
|
overflowY: 'hidden',
|
|
193
193
|
whiteSpace: 'nowrap',
|
|
194
194
|
px: '.75rem'
|
|
195
|
+
};
|
|
196
|
+
input.dropDownContentRight = {
|
|
197
|
+
background: 'inherit',
|
|
198
|
+
'& button': {
|
|
199
|
+
borderRadius: '0px 4px 4px 0px !important',
|
|
200
|
+
'&.is-focused': {
|
|
201
|
+
outline: '2px solid',
|
|
202
|
+
outlineOffset: '2px',
|
|
203
|
+
outlineColor: 'gray-700'
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
input.dropDownContentLeft = {
|
|
208
|
+
'& button': {
|
|
209
|
+
borderRadius: '4px 0px 0px 4px !important',
|
|
210
|
+
'&.is-focused': {
|
|
211
|
+
outline: '2px solid',
|
|
212
|
+
outlineOffset: '2px',
|
|
213
|
+
outlineColor: 'gray-700'
|
|
214
|
+
}
|
|
215
|
+
}
|
|
195
216
|
};
|
|
@@ -57,7 +57,7 @@ var navigationHeader = {
|
|
|
57
57
|
fontFamily: 'standard',
|
|
58
58
|
borderBottom: '1px solid',
|
|
59
59
|
borderColor: 'border.base',
|
|
60
|
-
backgroundColor: '
|
|
60
|
+
backgroundColor: 'backgroundBase',
|
|
61
61
|
height: '4.5rem',
|
|
62
62
|
justifyContent: 'center'
|
|
63
63
|
},
|
|
@@ -66,10 +66,10 @@ var navigationHeader = {
|
|
|
66
66
|
maxWidth: '1540px',
|
|
67
67
|
mx: 'auto',
|
|
68
68
|
width: '100%',
|
|
69
|
-
backgroundColor: '
|
|
69
|
+
backgroundColor: 'backgroundBase'
|
|
70
70
|
},
|
|
71
71
|
dropdownMenu: {
|
|
72
|
-
backgroundColor: '
|
|
72
|
+
backgroundColor: 'backgroundBase',
|
|
73
73
|
maxWidth: 'unset',
|
|
74
74
|
p: 'sm',
|
|
75
75
|
'&:focus': _objectSpread({}, defaultFocus),
|
|
@@ -35,7 +35,7 @@ var step = {
|
|
|
35
35
|
active: _objectSpread(_objectSpread({
|
|
36
36
|
backgroundColor: 'active',
|
|
37
37
|
borderColor: 'active',
|
|
38
|
-
color: '
|
|
38
|
+
color: 'backgroundBase'
|
|
39
39
|
}, stepBase), {}, {
|
|
40
40
|
'&:before': {
|
|
41
41
|
content: '""',
|
|
@@ -46,7 +46,7 @@ var step = {
|
|
|
46
46
|
position: 'absolute',
|
|
47
47
|
borderRadius: '100%',
|
|
48
48
|
borderStyle: 'solid',
|
|
49
|
-
borderColor: '
|
|
49
|
+
borderColor: 'backgroundBase',
|
|
50
50
|
borderWidth: '2px'
|
|
51
51
|
}
|
|
52
52
|
}),
|
|
@@ -54,7 +54,7 @@ var step = {
|
|
|
54
54
|
borderColor: 'active'
|
|
55
55
|
}),
|
|
56
56
|
inactive: _objectSpread({
|
|
57
|
-
backgroundColor: '
|
|
57
|
+
backgroundColor: 'backgroundBase',
|
|
58
58
|
borderColor: 'blue-200',
|
|
59
59
|
color: 'active'
|
|
60
60
|
}, stepBase)
|
|
@@ -29,7 +29,7 @@ var head = {
|
|
|
29
29
|
var body = {
|
|
30
30
|
borderTopColor: 'border.base',
|
|
31
31
|
borderBottom: 'unset',
|
|
32
|
-
backgroundColor: '
|
|
32
|
+
backgroundColor: 'backgroundBase',
|
|
33
33
|
borderBottomLeftRadius: '16px',
|
|
34
34
|
borderBottomRightRadius: '16px',
|
|
35
35
|
'&& > tr:not(:last-child)': {
|
|
@@ -37,7 +37,7 @@ var body = {
|
|
|
37
37
|
borderBottomColor: 'border.base'
|
|
38
38
|
},
|
|
39
39
|
'&& > tr:nth-of-type(odd) ': {
|
|
40
|
-
backgroundColor: '
|
|
40
|
+
backgroundColor: 'backgroundBase'
|
|
41
41
|
},
|
|
42
42
|
'&& > tr:last-child': {
|
|
43
43
|
borderBottomLeftRadius: '16px',
|
|
@@ -46,7 +46,7 @@ var container = {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
var caption = {
|
|
49
|
-
backgroundColor: '
|
|
49
|
+
backgroundColor: 'backgroundBase',
|
|
50
50
|
px: 'lg',
|
|
51
51
|
color: 'text.primary',
|
|
52
52
|
borderBottom: '1px solid',
|
|
@@ -62,7 +62,7 @@ var row = {
|
|
|
62
62
|
bg: 'background.hover'
|
|
63
63
|
},
|
|
64
64
|
'&:nth-of-type(odd)': {
|
|
65
|
-
bg: '
|
|
65
|
+
bg: 'backgroundBase',
|
|
66
66
|
'&.is-hovered': {
|
|
67
67
|
bg: 'background.hover'
|
|
68
68
|
}
|
|
@@ -70,7 +70,7 @@ var row = {
|
|
|
70
70
|
};
|
|
71
71
|
var thead = {
|
|
72
72
|
borderBottomColor: 'border.base',
|
|
73
|
-
backgroundColor: '
|
|
73
|
+
backgroundColor: 'backgroundBase',
|
|
74
74
|
'&.is-sticky': {
|
|
75
75
|
boxShadow: "0 1px 0 ".concat(colors.border.base)
|
|
76
76
|
}
|
|
@@ -87,7 +87,7 @@ var head = {
|
|
|
87
87
|
var tbody = {
|
|
88
88
|
borderTopColor: 'border.base',
|
|
89
89
|
borderBottom: 'unset',
|
|
90
|
-
backgroundColor: '
|
|
90
|
+
backgroundColor: 'backgroundBase',
|
|
91
91
|
borderBottomLeftRadius: borderRadius,
|
|
92
92
|
borderBottomRightRadius: borderRadius
|
|
93
93
|
};
|
|
@@ -12,9 +12,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
12
|
import attachment from '../../../../components/AIComponents/Attachment/Attachment.styles';
|
|
13
13
|
import skeleton from '../../../../components/Skeleton/Skeleton.styles';
|
|
14
14
|
import codeView from '../codeView/codeView';
|
|
15
|
-
import colors from '../colors/colors';
|
|
16
15
|
import accordion from './accordion';
|
|
17
16
|
import { avatar } from './avatar';
|
|
17
|
+
import { box } from './box';
|
|
18
18
|
import button, { defaultFocus } from './button';
|
|
19
19
|
import callout from './callout';
|
|
20
20
|
import { dataTable } from './dataTable';
|
|
@@ -111,12 +111,18 @@ var modal = {
|
|
|
111
111
|
maxWidth: modalSize.full
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
|
+
headingContainer: {
|
|
115
|
+
borderBottom: '1px solid',
|
|
116
|
+
borderBottomColor: 'gray-200',
|
|
117
|
+
bg: 'backgroundBase',
|
|
118
|
+
borderRadius: '1em 1em 0px 0px'
|
|
119
|
+
},
|
|
114
120
|
container: {
|
|
115
121
|
justifyContent: 'start'
|
|
116
122
|
},
|
|
117
123
|
header: {
|
|
118
124
|
pt: 'lg',
|
|
119
|
-
bg: '
|
|
125
|
+
bg: 'backgroundBase',
|
|
120
126
|
mb: 'lg'
|
|
121
127
|
}
|
|
122
128
|
};
|
|
@@ -148,12 +154,12 @@ var listBox = {
|
|
|
148
154
|
},
|
|
149
155
|
'&.is-condensed': {
|
|
150
156
|
pl: 'md',
|
|
151
|
-
bg: '
|
|
157
|
+
bg: 'backgroundBase',
|
|
152
158
|
'&.is-selected': {
|
|
153
|
-
bg: '
|
|
159
|
+
bg: 'backgroundBase'
|
|
154
160
|
},
|
|
155
161
|
'&.is-focused': {
|
|
156
|
-
bg: '
|
|
162
|
+
bg: 'backgroundBase'
|
|
157
163
|
}
|
|
158
164
|
}
|
|
159
165
|
}
|
|
@@ -189,11 +195,11 @@ var progressBar = {
|
|
|
189
195
|
};
|
|
190
196
|
var overlayPanel = {
|
|
191
197
|
container: {
|
|
192
|
-
backgroundColor: '
|
|
198
|
+
backgroundColor: 'backgroundBase',
|
|
193
199
|
borderColor: 'border.hairline'
|
|
194
200
|
},
|
|
195
201
|
aiPanelContainer: {
|
|
196
|
-
backgroundColor: '
|
|
202
|
+
backgroundColor: 'backgroundBase',
|
|
197
203
|
border: 'none',
|
|
198
204
|
borderLeft: 'none',
|
|
199
205
|
position: 'fixed',
|
|
@@ -227,30 +233,30 @@ var overlayPanel = {
|
|
|
227
233
|
alignSelf: 'center'
|
|
228
234
|
},
|
|
229
235
|
innerPanel: {
|
|
230
|
-
backgroundColor: '
|
|
236
|
+
backgroundColor: 'backgroundBase'
|
|
231
237
|
}
|
|
232
238
|
};
|
|
233
239
|
var buttonBar = {
|
|
234
240
|
container: {
|
|
235
241
|
gap: 'sm',
|
|
236
|
-
backgroundColor: '
|
|
242
|
+
backgroundColor: 'backgroundBase'
|
|
237
243
|
},
|
|
238
244
|
justifyRightContainer: {
|
|
239
245
|
gap: 'sm',
|
|
240
|
-
backgroundColor: '
|
|
246
|
+
backgroundColor: 'backgroundBase'
|
|
241
247
|
}
|
|
242
248
|
};
|
|
243
249
|
var rockerButton = {
|
|
244
250
|
innerContainer: {
|
|
245
251
|
boxShadow: 'none',
|
|
246
|
-
backgroundColor: 'common.
|
|
252
|
+
backgroundColor: 'common.backgroundBase',
|
|
247
253
|
borderRadius: '50px',
|
|
248
254
|
padding: 0,
|
|
249
255
|
border: 'none'
|
|
250
256
|
},
|
|
251
257
|
thumbSwitch: {
|
|
252
258
|
textTransform: 'none',
|
|
253
|
-
backgroundColor: 'common.
|
|
259
|
+
backgroundColor: 'common.backgroundBase',
|
|
254
260
|
padding: 'md',
|
|
255
261
|
height: '50px',
|
|
256
262
|
color: 'active',
|
|
@@ -302,7 +308,7 @@ var loader = {
|
|
|
302
308
|
py: 'sm'
|
|
303
309
|
},
|
|
304
310
|
circleSpinner: {
|
|
305
|
-
borderColor: '
|
|
311
|
+
borderColor: 'backgroundBase'
|
|
306
312
|
}
|
|
307
313
|
};
|
|
308
314
|
var breadcrumb = {
|
|
@@ -376,21 +382,7 @@ export default {
|
|
|
376
382
|
attachment: attachment,
|
|
377
383
|
avatar: avatar,
|
|
378
384
|
breadcrumb: breadcrumb,
|
|
379
|
-
box:
|
|
380
|
-
indeterminateCheckboxIcon: {
|
|
381
|
-
height: '19.25px',
|
|
382
|
-
width: '19.25px',
|
|
383
|
-
'&.is-disabled': {
|
|
384
|
-
'& rect[id="indeterminate-checkbox-icon-wrapper"]': {
|
|
385
|
-
fill: 'gray-500',
|
|
386
|
-
stroke: 'gray-500'
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
'&.is-focused': {
|
|
390
|
-
boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
},
|
|
385
|
+
box: box,
|
|
394
386
|
buttonBar: buttonBar,
|
|
395
387
|
callout: callout,
|
|
396
388
|
codeView: codeView,
|