@pingux/astro 2.193.1-alpha.0 → 2.194.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +6 -1
- package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +98 -7
- package/lib/cjs/index.d.ts +3 -0
- package/lib/cjs/index.js +24 -0
- package/lib/cjs/recipes/CountryPicker.stories.js +0 -1
- package/lib/cjs/styles/themeOverrides/onyxDarkUiLibraryOverride.js +211 -0
- package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.d.ts +130 -0
- package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.js +217 -0
- package/lib/components/ComboBoxField/ComboBoxField.js +6 -1
- package/lib/components/ComboBoxField/ComboBoxField.test.js +98 -7
- package/lib/index.js +3 -0
- package/lib/recipes/CountryPicker.stories.js +0 -1
- package/lib/styles/themeOverrides/onyxDarkUiLibraryOverride.js +204 -0
- package/lib/styles/themeOverrides/onyxUiLibraryOverride.js +210 -0
- package/package.json +1 -1
|
@@ -0,0 +1,210 @@
|
|
|
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(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
import { astroTokens } from '@pingux/onyx-tokens';
|
|
13
|
+
import theme from '../themes/next-gen';
|
|
14
|
+
var buttons = {
|
|
15
|
+
critical: {
|
|
16
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.critical), theme.buttons.defaultHover)
|
|
17
|
+
},
|
|
18
|
+
danger: {
|
|
19
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.danger), theme.buttons.defaultHover)
|
|
20
|
+
},
|
|
21
|
+
success: {
|
|
22
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.success), theme.buttons.defaultHover)
|
|
23
|
+
},
|
|
24
|
+
"default": {
|
|
25
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons["default"]), theme.buttons.defaultHover),
|
|
26
|
+
'&:focus': _objectSpread({}, theme.buttons.defaultHover)
|
|
27
|
+
},
|
|
28
|
+
inline: {
|
|
29
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.inline), theme.buttons.defaultHover)
|
|
30
|
+
},
|
|
31
|
+
inlinePrimary: {
|
|
32
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.inlinePrimary), theme.buttons.defaultHover)
|
|
33
|
+
},
|
|
34
|
+
text: {
|
|
35
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.text), theme.buttons.defaultHover)
|
|
36
|
+
},
|
|
37
|
+
inverted: _objectSpread(_objectSpread({}, theme.buttons.inverted), {}, {
|
|
38
|
+
':focus': {
|
|
39
|
+
border: 'none'
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
primary: {
|
|
43
|
+
'&:hover': _objectSpread({}, theme.buttons.primary)
|
|
44
|
+
},
|
|
45
|
+
link: {
|
|
46
|
+
'body &': theme.buttons.link,
|
|
47
|
+
'body &:hover': theme.buttons.link,
|
|
48
|
+
'&:not(.disabled):hover': {
|
|
49
|
+
color: 'active',
|
|
50
|
+
borderColor: 'transparent'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
iconButtons: _objectSpread(_objectSpread({}, theme.buttons.iconButtons), {}, {
|
|
54
|
+
base: _objectSpread(_objectSpread({}, theme.buttons.iconButtons.base), {}, {
|
|
55
|
+
':focus': _objectSpread(_objectSpread({}, theme.buttons.defaultFocus), {}, {
|
|
56
|
+
border: 'none'
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
inverted: _objectSpread(_objectSpread({}, theme.buttons.iconButtons.inverted), {}, {
|
|
60
|
+
':focus': {
|
|
61
|
+
border: 'none'
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
64
|
+
datePicker: {
|
|
65
|
+
containedIcon: {
|
|
66
|
+
'&:not(.disabled):hover': {
|
|
67
|
+
border: 'none'
|
|
68
|
+
},
|
|
69
|
+
'&:focus': {
|
|
70
|
+
border: 'none'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}),
|
|
75
|
+
// not sure what this references/
|
|
76
|
+
filter: {
|
|
77
|
+
'&:not(.disabled):hover': {
|
|
78
|
+
borderColor: 'accent.40',
|
|
79
|
+
color: 'accent.40'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
var forms = {
|
|
84
|
+
input: {
|
|
85
|
+
'&[type=password]': {
|
|
86
|
+
backgroundColor: 'white !important',
|
|
87
|
+
borderColor: '#caced3 !important'
|
|
88
|
+
},
|
|
89
|
+
'&[type=password]:focus': {
|
|
90
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
91
|
+
},
|
|
92
|
+
numberField: _objectSpread(_objectSpread(_objectSpread({}, theme.input), theme.numberFieldStyles), {}, {
|
|
93
|
+
'&[type=text]': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
94
|
+
backgroundColor: 'white',
|
|
95
|
+
borderColor: astroTokens.color.input.border
|
|
96
|
+
}),
|
|
97
|
+
'&[type=text]:focus': {
|
|
98
|
+
outline: '1px solid',
|
|
99
|
+
outlineColor: "".concat(astroTokens.color.blue[500]),
|
|
100
|
+
outlineOffset: '0px',
|
|
101
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
},
|
|
105
|
+
select: {
|
|
106
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
107
|
+
borderColor: astroTokens.color.input.border
|
|
108
|
+
})
|
|
109
|
+
},
|
|
110
|
+
search: {
|
|
111
|
+
wrapper: {
|
|
112
|
+
'& input[type=search]': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
113
|
+
borderColor: astroTokens.color.input.border,
|
|
114
|
+
fontSize: '15px',
|
|
115
|
+
bg: 'white',
|
|
116
|
+
'::placeholder': _objectSpread(_objectSpread({}, theme.text.placeholder), {}, {
|
|
117
|
+
fontStyle: 'unset',
|
|
118
|
+
fontSize: '15px'
|
|
119
|
+
})
|
|
120
|
+
}),
|
|
121
|
+
'& input[type=search]:focus': {
|
|
122
|
+
outline: '1px solid',
|
|
123
|
+
outlineColor: astroTokens.color.blue[500],
|
|
124
|
+
outlineOffset: '0px',
|
|
125
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
label: {
|
|
130
|
+
'body &': {
|
|
131
|
+
textTransform: 'none'
|
|
132
|
+
},
|
|
133
|
+
checkbox: {
|
|
134
|
+
textTransform: 'none'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
var links = {
|
|
139
|
+
app: {
|
|
140
|
+
'&:hover': _objectSpread({}, theme.links.app)
|
|
141
|
+
},
|
|
142
|
+
skip: {
|
|
143
|
+
'&:hover': {
|
|
144
|
+
color: 'white',
|
|
145
|
+
textDecoration: 'none',
|
|
146
|
+
'&:focus': {
|
|
147
|
+
outline: '2px solid',
|
|
148
|
+
outlineColor: 'active',
|
|
149
|
+
color: 'white',
|
|
150
|
+
textDecoration: 'none'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
'&:visited': {
|
|
154
|
+
color: 'white',
|
|
155
|
+
textDecoration: 'none'
|
|
156
|
+
},
|
|
157
|
+
'&.is-pressed': {
|
|
158
|
+
color: 'white',
|
|
159
|
+
textDecoration: 'none'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
pingLogo: {
|
|
163
|
+
'&:hover': {
|
|
164
|
+
'&.is-focused': {
|
|
165
|
+
outline: '2px solid',
|
|
166
|
+
outlineColor: 'active',
|
|
167
|
+
outlineOffset: '-2px'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
var variants = {
|
|
173
|
+
accordion: {
|
|
174
|
+
header: _objectSpread(_objectSpread({}, theme.variants.accordion.header), {}, {
|
|
175
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.defaultHover), {}, {
|
|
176
|
+
color: 'active'
|
|
177
|
+
}),
|
|
178
|
+
'&:focus': _objectSpread(_objectSpread({}, theme.buttons.defaultFocus), {}, {
|
|
179
|
+
border: 'none'
|
|
180
|
+
})
|
|
181
|
+
})
|
|
182
|
+
},
|
|
183
|
+
rockerButton: {
|
|
184
|
+
thumbSwitch: _objectSpread(_objectSpread({}, theme.variants.rockerButton.thumbSwitch), {}, {
|
|
185
|
+
':focus': {
|
|
186
|
+
border: 'none'
|
|
187
|
+
},
|
|
188
|
+
'&.is-selected:hover': {
|
|
189
|
+
color: 'black'
|
|
190
|
+
},
|
|
191
|
+
':not(.is-selected):hover': {
|
|
192
|
+
color: 'black'
|
|
193
|
+
}
|
|
194
|
+
})
|
|
195
|
+
},
|
|
196
|
+
environmentBreadcrumb: {
|
|
197
|
+
button: {
|
|
198
|
+
current: {
|
|
199
|
+
'&:hover:not(.disabled)': _objectSpread({}, theme.variants.environmentBreadcrumb.button.current),
|
|
200
|
+
'&:focus': _objectSpread({}, theme.variants.environmentBreadcrumb.button.current)
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
export default {
|
|
206
|
+
buttons: buttons,
|
|
207
|
+
forms: forms,
|
|
208
|
+
links: links,
|
|
209
|
+
variants: variants
|
|
210
|
+
};
|