@pingux/astro 2.193.2-alpha.0 → 2.194.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/index.d.ts +3 -0
- package/lib/cjs/index.js +24 -0
- 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/index.js +3 -0
- package/lib/styles/themeOverrides/onyxDarkUiLibraryOverride.js +204 -0
- package/lib/styles/themeOverrides/onyxUiLibraryOverride.js +210 -0
- package/package.json +1 -1
package/lib/cjs/index.d.ts
CHANGED
|
@@ -226,7 +226,10 @@ export * from './components/TreeView';
|
|
|
226
226
|
export { PaginationContext } from './context/PaginationContext';
|
|
227
227
|
export { default as NextGenDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
|
|
228
228
|
export { default as OnyxDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
|
|
229
|
+
export { default as OnyxDarkUiLibraryOverride } from './styles/themeOverrides/onyxDarkUiLibraryOverride';
|
|
229
230
|
export { default as OnyxSideNavOverride } from './styles/themeOverrides/onyxSideNav';
|
|
231
|
+
export { default as OnyxUiLibraryOverride } from './styles/themeOverrides/onyxUiLibraryOverride';
|
|
232
|
+
export { default as AstroUiLibraryOverride } from './styles/themeOverrides/uiLibraryOverride';
|
|
230
233
|
export { default as NextGenTheme } from './styles/themes/next-gen';
|
|
231
234
|
export { default as OnyxTheme } from './styles/themes/next-gen';
|
|
232
235
|
export * from './types';
|
package/lib/cjs/index.js
CHANGED
|
@@ -157,7 +157,10 @@ var _exportNames = {
|
|
|
157
157
|
PaginationContext: true,
|
|
158
158
|
NextGenDarkTheme: true,
|
|
159
159
|
OnyxDarkTheme: true,
|
|
160
|
+
OnyxDarkUiLibraryOverride: true,
|
|
160
161
|
OnyxSideNavOverride: true,
|
|
162
|
+
OnyxUiLibraryOverride: true,
|
|
163
|
+
AstroUiLibraryOverride: true,
|
|
161
164
|
NextGenTheme: true,
|
|
162
165
|
OnyxTheme: true,
|
|
163
166
|
OverlayProvider: true,
|
|
@@ -226,6 +229,12 @@ _Object$defineProperty(exports, "AstroProvider", {
|
|
|
226
229
|
return _AstroProvider["default"];
|
|
227
230
|
}
|
|
228
231
|
});
|
|
232
|
+
_Object$defineProperty(exports, "AstroUiLibraryOverride", {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function get() {
|
|
235
|
+
return _uiLibraryOverride["default"];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
229
238
|
_Object$defineProperty(exports, "AstroWrapper", {
|
|
230
239
|
enumerable: true,
|
|
231
240
|
get: function get() {
|
|
@@ -718,6 +727,12 @@ _Object$defineProperty(exports, "OnyxDarkTheme", {
|
|
|
718
727
|
return _nextGenDarkMode["default"];
|
|
719
728
|
}
|
|
720
729
|
});
|
|
730
|
+
_Object$defineProperty(exports, "OnyxDarkUiLibraryOverride", {
|
|
731
|
+
enumerable: true,
|
|
732
|
+
get: function get() {
|
|
733
|
+
return _onyxDarkUiLibraryOverride["default"];
|
|
734
|
+
}
|
|
735
|
+
});
|
|
721
736
|
_Object$defineProperty(exports, "OnyxSideNavOverride", {
|
|
722
737
|
enumerable: true,
|
|
723
738
|
get: function get() {
|
|
@@ -730,6 +745,12 @@ _Object$defineProperty(exports, "OnyxTheme", {
|
|
|
730
745
|
return _nextGen["default"];
|
|
731
746
|
}
|
|
732
747
|
});
|
|
748
|
+
_Object$defineProperty(exports, "OnyxUiLibraryOverride", {
|
|
749
|
+
enumerable: true,
|
|
750
|
+
get: function get() {
|
|
751
|
+
return _onyxUiLibraryOverride["default"];
|
|
752
|
+
}
|
|
753
|
+
});
|
|
733
754
|
_Object$defineProperty(exports, "OverlayPanel", {
|
|
734
755
|
enumerable: true,
|
|
735
756
|
get: function get() {
|
|
@@ -2232,7 +2253,10 @@ _forEachInstanceProperty(_context82 = _Object$keys(_TreeView)).call(_context82,
|
|
|
2232
2253
|
});
|
|
2233
2254
|
var _PaginationContext = require("./context/PaginationContext");
|
|
2234
2255
|
var _nextGenDarkMode = _interopRequireDefault(require("./styles/themeOverrides/nextGenDarkMode"));
|
|
2256
|
+
var _onyxDarkUiLibraryOverride = _interopRequireDefault(require("./styles/themeOverrides/onyxDarkUiLibraryOverride"));
|
|
2235
2257
|
var _onyxSideNav = _interopRequireDefault(require("./styles/themeOverrides/onyxSideNav"));
|
|
2258
|
+
var _onyxUiLibraryOverride = _interopRequireDefault(require("./styles/themeOverrides/onyxUiLibraryOverride"));
|
|
2259
|
+
var _uiLibraryOverride = _interopRequireDefault(require("./styles/themeOverrides/uiLibraryOverride"));
|
|
2236
2260
|
var _nextGen = _interopRequireDefault(require("./styles/themes/next-gen"));
|
|
2237
2261
|
var _types = require("./types");
|
|
2238
2262
|
_forEachInstanceProperty(_context83 = _Object$keys(_types)).call(_context83, function (key) {
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
5
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
7
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
8
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
9
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
10
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
11
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
12
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
exports["default"] = void 0;
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
|
+
var _onyxTokens = require("@pingux/onyx-tokens");
|
|
18
|
+
var _nextGenDarkMode = _interopRequireDefault(require("./nextGenDarkMode"));
|
|
19
|
+
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; }
|
|
20
|
+
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) { (0, _defineProperty2["default"])(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; }
|
|
21
|
+
var buttons = {
|
|
22
|
+
critical: {
|
|
23
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.critical), _nextGenDarkMode["default"].buttons.defaultHover)
|
|
24
|
+
},
|
|
25
|
+
danger: {
|
|
26
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.danger), _nextGenDarkMode["default"].buttons.defaultHover)
|
|
27
|
+
},
|
|
28
|
+
success: {
|
|
29
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.success), _nextGenDarkMode["default"].buttons.defaultHover)
|
|
30
|
+
},
|
|
31
|
+
"default": {
|
|
32
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons["default"]), _nextGenDarkMode["default"].buttons.defaultHover),
|
|
33
|
+
'&:focus': _objectSpread({}, _nextGenDarkMode["default"].buttons.defaultHover)
|
|
34
|
+
},
|
|
35
|
+
inline: {
|
|
36
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.inline), _nextGenDarkMode["default"].buttons.defaultHover)
|
|
37
|
+
},
|
|
38
|
+
inlinePrimary: {
|
|
39
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.inlinePrimary), _nextGenDarkMode["default"].buttons.defaultHover)
|
|
40
|
+
},
|
|
41
|
+
text: {
|
|
42
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.text), _nextGenDarkMode["default"].buttons.defaultHover)
|
|
43
|
+
},
|
|
44
|
+
inverted: _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.inverted), {}, {
|
|
45
|
+
':focus': {
|
|
46
|
+
border: 'none'
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
primary: {
|
|
50
|
+
'&:hover': _objectSpread({}, _nextGenDarkMode["default"].buttons.primary)
|
|
51
|
+
},
|
|
52
|
+
link: {
|
|
53
|
+
'body &': _nextGenDarkMode["default"].buttons.link,
|
|
54
|
+
'body &:hover': _nextGenDarkMode["default"].buttons.link,
|
|
55
|
+
'&:not(.disabled):hover': {
|
|
56
|
+
color: 'active',
|
|
57
|
+
borderColor: 'transparent'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
iconButtons: _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.iconButtons), {}, {
|
|
61
|
+
base: _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.iconButtons.base), {}, {
|
|
62
|
+
':focus': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.defaultFocus), {}, {
|
|
63
|
+
border: 'none'
|
|
64
|
+
})
|
|
65
|
+
}),
|
|
66
|
+
inverted: _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.iconButtons.inverted), {}, {
|
|
67
|
+
':focus': {
|
|
68
|
+
border: 'none'
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
datePicker: {
|
|
72
|
+
containedIcon: {
|
|
73
|
+
'&:not(.disabled):hover': {
|
|
74
|
+
border: 'none'
|
|
75
|
+
},
|
|
76
|
+
'&:focus': {
|
|
77
|
+
border: 'none'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
// not sure what this references
|
|
83
|
+
filter: {
|
|
84
|
+
'&:not(.disabled):hover': {
|
|
85
|
+
borderColor: 'accent.40',
|
|
86
|
+
color: 'accent.40'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var forms = {
|
|
91
|
+
input: {
|
|
92
|
+
'&[type=password]': {
|
|
93
|
+
backgroundColor: 'white !important',
|
|
94
|
+
borderColor: '#caced3 !important'
|
|
95
|
+
},
|
|
96
|
+
'&[type=password]:focus': {
|
|
97
|
+
borderColor: "".concat(_onyxTokens.astroTokens.color.blue[500], " !important")
|
|
98
|
+
},
|
|
99
|
+
numberField: _objectSpread(_objectSpread(_objectSpread({}, _nextGenDarkMode["default"].input), _nextGenDarkMode["default"].numberFieldStyles), {}, {
|
|
100
|
+
'&[type=text]': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].text.inputValue), {}, {
|
|
101
|
+
backgroundColor: 'white',
|
|
102
|
+
borderColor: _onyxTokens.astroTokensDark.color.gray[500]
|
|
103
|
+
}),
|
|
104
|
+
'&[type=text]:focus': {
|
|
105
|
+
borderColor: "".concat(_onyxTokens.astroTokens.color.blue[500], " !important")
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
},
|
|
109
|
+
select: {
|
|
110
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].text.inputValue), {}, {
|
|
111
|
+
borderColor: _onyxTokens.astroTokensDark.color.gray[500]
|
|
112
|
+
})
|
|
113
|
+
},
|
|
114
|
+
search: {
|
|
115
|
+
wrapper: {
|
|
116
|
+
'& input[type=search]': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].text.inputValue), {}, {
|
|
117
|
+
borderColor: _onyxTokens.astroTokensDark.color.gray[500],
|
|
118
|
+
fontSize: '15px',
|
|
119
|
+
bg: 'white',
|
|
120
|
+
'::placeholder': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].text.placeholder), {}, {
|
|
121
|
+
fontStyle: 'unset',
|
|
122
|
+
fontSize: '15px'
|
|
123
|
+
})
|
|
124
|
+
}),
|
|
125
|
+
'& input[type=search]:focus': {
|
|
126
|
+
borderColor: "".concat(_onyxTokens.astroTokens.color.blue[500], " !important")
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
label: {
|
|
131
|
+
'body &': {
|
|
132
|
+
textTransform: 'none'
|
|
133
|
+
},
|
|
134
|
+
checkbox: {
|
|
135
|
+
textTransform: 'none'
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
var links = {
|
|
140
|
+
app: {
|
|
141
|
+
'&:hover': _objectSpread({}, _nextGenDarkMode["default"].links.app)
|
|
142
|
+
},
|
|
143
|
+
skip: {
|
|
144
|
+
'&:hover': {
|
|
145
|
+
color: 'white',
|
|
146
|
+
textDecoration: 'none',
|
|
147
|
+
'&:focus': {
|
|
148
|
+
outline: '2px solid',
|
|
149
|
+
outlineColor: 'active',
|
|
150
|
+
color: 'white',
|
|
151
|
+
textDecoration: 'none'
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
'&:visited': {
|
|
155
|
+
color: 'white',
|
|
156
|
+
textDecoration: 'none'
|
|
157
|
+
},
|
|
158
|
+
'&.is-pressed': {
|
|
159
|
+
color: 'white',
|
|
160
|
+
textDecoration: 'none'
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
pingLogo: {
|
|
164
|
+
'&:hover': {
|
|
165
|
+
'&.is-focused': {
|
|
166
|
+
outline: '2px solid',
|
|
167
|
+
outlineColor: 'active',
|
|
168
|
+
outlineOffset: '-2px'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
var variants = {
|
|
174
|
+
accordion: {
|
|
175
|
+
header: _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].variants.accordion.header), {}, {
|
|
176
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.defaultHover), {}, {
|
|
177
|
+
color: 'active'
|
|
178
|
+
}),
|
|
179
|
+
'&:focus': _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].buttons.defaultFocus), {}, {
|
|
180
|
+
border: 'none'
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
},
|
|
184
|
+
rockerButton: {
|
|
185
|
+
thumbSwitch: _objectSpread(_objectSpread({}, _nextGenDarkMode["default"].variants.rockerButton.thumbSwitch), {}, {
|
|
186
|
+
':focus': {
|
|
187
|
+
border: 'none'
|
|
188
|
+
},
|
|
189
|
+
'&.is-selected:hover': {
|
|
190
|
+
color: 'white'
|
|
191
|
+
},
|
|
192
|
+
':not(.is-selected):hover': {
|
|
193
|
+
color: 'white'
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
},
|
|
197
|
+
environmentBreadcrumb: {
|
|
198
|
+
button: {
|
|
199
|
+
current: {
|
|
200
|
+
'&:hover:not(.disabled)': _objectSpread({}, _nextGenDarkMode["default"].variants.environmentBreadcrumb.button.current),
|
|
201
|
+
'&:focus': _objectSpread({}, _nextGenDarkMode["default"].variants.environmentBreadcrumb.button.current)
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
var _default = exports["default"] = {
|
|
207
|
+
buttons: buttons,
|
|
208
|
+
forms: forms,
|
|
209
|
+
links: links,
|
|
210
|
+
variants: variants
|
|
211
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
buttons: {
|
|
3
|
+
critical: {
|
|
4
|
+
'&:not(.disabled):hover': any;
|
|
5
|
+
};
|
|
6
|
+
danger: {
|
|
7
|
+
'&:not(.disabled):hover': any;
|
|
8
|
+
};
|
|
9
|
+
success: {
|
|
10
|
+
'&:not(.disabled):hover': any;
|
|
11
|
+
};
|
|
12
|
+
default: {
|
|
13
|
+
'&:not(.disabled):hover': any;
|
|
14
|
+
'&:focus': any;
|
|
15
|
+
};
|
|
16
|
+
inline: {
|
|
17
|
+
'&:not(.disabled):hover': any;
|
|
18
|
+
};
|
|
19
|
+
inlinePrimary: {
|
|
20
|
+
'&:not(.disabled):hover': any;
|
|
21
|
+
};
|
|
22
|
+
text: {
|
|
23
|
+
'&:not(.disabled):hover': any;
|
|
24
|
+
};
|
|
25
|
+
inverted: any;
|
|
26
|
+
primary: {
|
|
27
|
+
'&:hover': any;
|
|
28
|
+
};
|
|
29
|
+
link: {
|
|
30
|
+
'body &': any;
|
|
31
|
+
'body &:hover': any;
|
|
32
|
+
'&:not(.disabled):hover': {
|
|
33
|
+
color: string;
|
|
34
|
+
borderColor: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
iconButtons: any;
|
|
38
|
+
filter: {
|
|
39
|
+
'&:not(.disabled):hover': {
|
|
40
|
+
borderColor: string;
|
|
41
|
+
color: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
forms: {
|
|
46
|
+
input: {
|
|
47
|
+
'&[type=password]': {
|
|
48
|
+
backgroundColor: string;
|
|
49
|
+
borderColor: string;
|
|
50
|
+
};
|
|
51
|
+
'&[type=password]:focus': {
|
|
52
|
+
borderColor: string;
|
|
53
|
+
};
|
|
54
|
+
numberField: any;
|
|
55
|
+
};
|
|
56
|
+
select: {
|
|
57
|
+
'&:not(.disabled):hover': any;
|
|
58
|
+
};
|
|
59
|
+
search: {
|
|
60
|
+
wrapper: {
|
|
61
|
+
'& input[type=search]': any;
|
|
62
|
+
'& input[type=search]:focus': {
|
|
63
|
+
outline: string;
|
|
64
|
+
outlineColor: any;
|
|
65
|
+
outlineOffset: string;
|
|
66
|
+
borderColor: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
label: {
|
|
71
|
+
'body &': {
|
|
72
|
+
textTransform: string;
|
|
73
|
+
};
|
|
74
|
+
checkbox: {
|
|
75
|
+
textTransform: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
links: {
|
|
80
|
+
app: {
|
|
81
|
+
'&:hover': any;
|
|
82
|
+
};
|
|
83
|
+
skip: {
|
|
84
|
+
'&:hover': {
|
|
85
|
+
color: string;
|
|
86
|
+
textDecoration: string;
|
|
87
|
+
'&:focus': {
|
|
88
|
+
outline: string;
|
|
89
|
+
outlineColor: string;
|
|
90
|
+
color: string;
|
|
91
|
+
textDecoration: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
'&:visited': {
|
|
95
|
+
color: string;
|
|
96
|
+
textDecoration: string;
|
|
97
|
+
};
|
|
98
|
+
'&.is-pressed': {
|
|
99
|
+
color: string;
|
|
100
|
+
textDecoration: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
pingLogo: {
|
|
104
|
+
'&:hover': {
|
|
105
|
+
'&.is-focused': {
|
|
106
|
+
outline: string;
|
|
107
|
+
outlineColor: string;
|
|
108
|
+
outlineOffset: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
variants: {
|
|
114
|
+
accordion: {
|
|
115
|
+
header: any;
|
|
116
|
+
};
|
|
117
|
+
rockerButton: {
|
|
118
|
+
thumbSwitch: any;
|
|
119
|
+
};
|
|
120
|
+
environmentBreadcrumb: {
|
|
121
|
+
button: {
|
|
122
|
+
current: {
|
|
123
|
+
'&:hover:not(.disabled)': any;
|
|
124
|
+
'&:focus': any;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
export default _default;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
5
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
7
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
8
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
9
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
10
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
11
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
12
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
exports["default"] = void 0;
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
|
+
var _onyxTokens = require("@pingux/onyx-tokens");
|
|
18
|
+
var _nextGen = _interopRequireDefault(require("../themes/next-gen"));
|
|
19
|
+
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; }
|
|
20
|
+
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) { (0, _defineProperty2["default"])(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; }
|
|
21
|
+
var buttons = {
|
|
22
|
+
critical: {
|
|
23
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.critical), _nextGen["default"].buttons.defaultHover)
|
|
24
|
+
},
|
|
25
|
+
danger: {
|
|
26
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.danger), _nextGen["default"].buttons.defaultHover)
|
|
27
|
+
},
|
|
28
|
+
success: {
|
|
29
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.success), _nextGen["default"].buttons.defaultHover)
|
|
30
|
+
},
|
|
31
|
+
"default": {
|
|
32
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons["default"]), _nextGen["default"].buttons.defaultHover),
|
|
33
|
+
'&:focus': _objectSpread({}, _nextGen["default"].buttons.defaultHover)
|
|
34
|
+
},
|
|
35
|
+
inline: {
|
|
36
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.inline), _nextGen["default"].buttons.defaultHover)
|
|
37
|
+
},
|
|
38
|
+
inlinePrimary: {
|
|
39
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.inlinePrimary), _nextGen["default"].buttons.defaultHover)
|
|
40
|
+
},
|
|
41
|
+
text: {
|
|
42
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.text), _nextGen["default"].buttons.defaultHover)
|
|
43
|
+
},
|
|
44
|
+
inverted: _objectSpread(_objectSpread({}, _nextGen["default"].buttons.inverted), {}, {
|
|
45
|
+
':focus': {
|
|
46
|
+
border: 'none'
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
primary: {
|
|
50
|
+
'&:hover': _objectSpread({}, _nextGen["default"].buttons.primary)
|
|
51
|
+
},
|
|
52
|
+
link: {
|
|
53
|
+
'body &': _nextGen["default"].buttons.link,
|
|
54
|
+
'body &:hover': _nextGen["default"].buttons.link,
|
|
55
|
+
'&:not(.disabled):hover': {
|
|
56
|
+
color: 'active',
|
|
57
|
+
borderColor: 'transparent'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
iconButtons: _objectSpread(_objectSpread({}, _nextGen["default"].buttons.iconButtons), {}, {
|
|
61
|
+
base: _objectSpread(_objectSpread({}, _nextGen["default"].buttons.iconButtons.base), {}, {
|
|
62
|
+
':focus': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.defaultFocus), {}, {
|
|
63
|
+
border: 'none'
|
|
64
|
+
})
|
|
65
|
+
}),
|
|
66
|
+
inverted: _objectSpread(_objectSpread({}, _nextGen["default"].buttons.iconButtons.inverted), {}, {
|
|
67
|
+
':focus': {
|
|
68
|
+
border: 'none'
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
datePicker: {
|
|
72
|
+
containedIcon: {
|
|
73
|
+
'&:not(.disabled):hover': {
|
|
74
|
+
border: 'none'
|
|
75
|
+
},
|
|
76
|
+
'&:focus': {
|
|
77
|
+
border: 'none'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
// not sure what this references/
|
|
83
|
+
filter: {
|
|
84
|
+
'&:not(.disabled):hover': {
|
|
85
|
+
borderColor: 'accent.40',
|
|
86
|
+
color: 'accent.40'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var forms = {
|
|
91
|
+
input: {
|
|
92
|
+
'&[type=password]': {
|
|
93
|
+
backgroundColor: 'white !important',
|
|
94
|
+
borderColor: '#caced3 !important'
|
|
95
|
+
},
|
|
96
|
+
'&[type=password]:focus': {
|
|
97
|
+
borderColor: "".concat(_onyxTokens.astroTokens.color.blue[500], " !important")
|
|
98
|
+
},
|
|
99
|
+
numberField: _objectSpread(_objectSpread(_objectSpread({}, _nextGen["default"].input), _nextGen["default"].numberFieldStyles), {}, {
|
|
100
|
+
'&[type=text]': _objectSpread(_objectSpread({}, _nextGen["default"].text.inputValue), {}, {
|
|
101
|
+
backgroundColor: 'white',
|
|
102
|
+
borderColor: _onyxTokens.astroTokens.color.input.border
|
|
103
|
+
}),
|
|
104
|
+
'&[type=text]:focus': {
|
|
105
|
+
outline: '1px solid',
|
|
106
|
+
outlineColor: "".concat(_onyxTokens.astroTokens.color.blue[500]),
|
|
107
|
+
outlineOffset: '0px',
|
|
108
|
+
borderColor: "".concat(_onyxTokens.astroTokens.color.blue[500], " !important")
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
},
|
|
112
|
+
select: {
|
|
113
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].text.inputValue), {}, {
|
|
114
|
+
borderColor: _onyxTokens.astroTokens.color.input.border
|
|
115
|
+
})
|
|
116
|
+
},
|
|
117
|
+
search: {
|
|
118
|
+
wrapper: {
|
|
119
|
+
'& input[type=search]': _objectSpread(_objectSpread({}, _nextGen["default"].text.inputValue), {}, {
|
|
120
|
+
borderColor: _onyxTokens.astroTokens.color.input.border,
|
|
121
|
+
fontSize: '15px',
|
|
122
|
+
bg: 'white',
|
|
123
|
+
'::placeholder': _objectSpread(_objectSpread({}, _nextGen["default"].text.placeholder), {}, {
|
|
124
|
+
fontStyle: 'unset',
|
|
125
|
+
fontSize: '15px'
|
|
126
|
+
})
|
|
127
|
+
}),
|
|
128
|
+
'& input[type=search]:focus': {
|
|
129
|
+
outline: '1px solid',
|
|
130
|
+
outlineColor: _onyxTokens.astroTokens.color.blue[500],
|
|
131
|
+
outlineOffset: '0px',
|
|
132
|
+
borderColor: "".concat(_onyxTokens.astroTokens.color.blue[500], " !important")
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
label: {
|
|
137
|
+
'body &': {
|
|
138
|
+
textTransform: 'none'
|
|
139
|
+
},
|
|
140
|
+
checkbox: {
|
|
141
|
+
textTransform: 'none'
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
var links = {
|
|
146
|
+
app: {
|
|
147
|
+
'&:hover': _objectSpread({}, _nextGen["default"].links.app)
|
|
148
|
+
},
|
|
149
|
+
skip: {
|
|
150
|
+
'&:hover': {
|
|
151
|
+
color: 'white',
|
|
152
|
+
textDecoration: 'none',
|
|
153
|
+
'&:focus': {
|
|
154
|
+
outline: '2px solid',
|
|
155
|
+
outlineColor: 'active',
|
|
156
|
+
color: 'white',
|
|
157
|
+
textDecoration: 'none'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
'&:visited': {
|
|
161
|
+
color: 'white',
|
|
162
|
+
textDecoration: 'none'
|
|
163
|
+
},
|
|
164
|
+
'&.is-pressed': {
|
|
165
|
+
color: 'white',
|
|
166
|
+
textDecoration: 'none'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
pingLogo: {
|
|
170
|
+
'&:hover': {
|
|
171
|
+
'&.is-focused': {
|
|
172
|
+
outline: '2px solid',
|
|
173
|
+
outlineColor: 'active',
|
|
174
|
+
outlineOffset: '-2px'
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
var variants = {
|
|
180
|
+
accordion: {
|
|
181
|
+
header: _objectSpread(_objectSpread({}, _nextGen["default"].variants.accordion.header), {}, {
|
|
182
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.defaultHover), {}, {
|
|
183
|
+
color: 'active'
|
|
184
|
+
}),
|
|
185
|
+
'&:focus': _objectSpread(_objectSpread({}, _nextGen["default"].buttons.defaultFocus), {}, {
|
|
186
|
+
border: 'none'
|
|
187
|
+
})
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
rockerButton: {
|
|
191
|
+
thumbSwitch: _objectSpread(_objectSpread({}, _nextGen["default"].variants.rockerButton.thumbSwitch), {}, {
|
|
192
|
+
':focus': {
|
|
193
|
+
border: 'none'
|
|
194
|
+
},
|
|
195
|
+
'&.is-selected:hover': {
|
|
196
|
+
color: 'black'
|
|
197
|
+
},
|
|
198
|
+
':not(.is-selected):hover': {
|
|
199
|
+
color: 'black'
|
|
200
|
+
}
|
|
201
|
+
})
|
|
202
|
+
},
|
|
203
|
+
environmentBreadcrumb: {
|
|
204
|
+
button: {
|
|
205
|
+
current: {
|
|
206
|
+
'&:hover:not(.disabled)': _objectSpread({}, _nextGen["default"].variants.environmentBreadcrumb.button.current),
|
|
207
|
+
'&:focus': _objectSpread({}, _nextGen["default"].variants.environmentBreadcrumb.button.current)
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
var _default = exports["default"] = {
|
|
213
|
+
buttons: buttons,
|
|
214
|
+
forms: forms,
|
|
215
|
+
links: links,
|
|
216
|
+
variants: variants
|
|
217
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -229,7 +229,10 @@ export * from './components/TreeView';
|
|
|
229
229
|
export { PaginationContext } from './context/PaginationContext';
|
|
230
230
|
export { default as NextGenDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
|
|
231
231
|
export { default as OnyxDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
|
|
232
|
+
export { default as OnyxDarkUiLibraryOverride } from './styles/themeOverrides/onyxDarkUiLibraryOverride';
|
|
232
233
|
export { default as OnyxSideNavOverride } from './styles/themeOverrides/onyxSideNav';
|
|
234
|
+
export { default as OnyxUiLibraryOverride } from './styles/themeOverrides/onyxUiLibraryOverride';
|
|
235
|
+
export { default as AstroUiLibraryOverride } from './styles/themeOverrides/uiLibraryOverride';
|
|
233
236
|
export { default as NextGenTheme } from './styles/themes/next-gen';
|
|
234
237
|
export { default as OnyxTheme } from './styles/themes/next-gen';
|
|
235
238
|
export * from './types';
|
|
@@ -0,0 +1,204 @@
|
|
|
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, astroTokensDark } from '@pingux/onyx-tokens';
|
|
13
|
+
import theme from './nextGenDarkMode';
|
|
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: astroTokensDark.color.gray[500]
|
|
96
|
+
}),
|
|
97
|
+
'&[type=text]:focus': {
|
|
98
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
},
|
|
102
|
+
select: {
|
|
103
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
104
|
+
borderColor: astroTokensDark.color.gray[500]
|
|
105
|
+
})
|
|
106
|
+
},
|
|
107
|
+
search: {
|
|
108
|
+
wrapper: {
|
|
109
|
+
'& input[type=search]': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
110
|
+
borderColor: astroTokensDark.color.gray[500],
|
|
111
|
+
fontSize: '15px',
|
|
112
|
+
bg: 'white',
|
|
113
|
+
'::placeholder': _objectSpread(_objectSpread({}, theme.text.placeholder), {}, {
|
|
114
|
+
fontStyle: 'unset',
|
|
115
|
+
fontSize: '15px'
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
'& input[type=search]:focus': {
|
|
119
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
label: {
|
|
124
|
+
'body &': {
|
|
125
|
+
textTransform: 'none'
|
|
126
|
+
},
|
|
127
|
+
checkbox: {
|
|
128
|
+
textTransform: 'none'
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
var links = {
|
|
133
|
+
app: {
|
|
134
|
+
'&:hover': _objectSpread({}, theme.links.app)
|
|
135
|
+
},
|
|
136
|
+
skip: {
|
|
137
|
+
'&:hover': {
|
|
138
|
+
color: 'white',
|
|
139
|
+
textDecoration: 'none',
|
|
140
|
+
'&:focus': {
|
|
141
|
+
outline: '2px solid',
|
|
142
|
+
outlineColor: 'active',
|
|
143
|
+
color: 'white',
|
|
144
|
+
textDecoration: 'none'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
'&:visited': {
|
|
148
|
+
color: 'white',
|
|
149
|
+
textDecoration: 'none'
|
|
150
|
+
},
|
|
151
|
+
'&.is-pressed': {
|
|
152
|
+
color: 'white',
|
|
153
|
+
textDecoration: 'none'
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
pingLogo: {
|
|
157
|
+
'&:hover': {
|
|
158
|
+
'&.is-focused': {
|
|
159
|
+
outline: '2px solid',
|
|
160
|
+
outlineColor: 'active',
|
|
161
|
+
outlineOffset: '-2px'
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
var variants = {
|
|
167
|
+
accordion: {
|
|
168
|
+
header: _objectSpread(_objectSpread({}, theme.variants.accordion.header), {}, {
|
|
169
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.defaultHover), {}, {
|
|
170
|
+
color: 'active'
|
|
171
|
+
}),
|
|
172
|
+
'&:focus': _objectSpread(_objectSpread({}, theme.buttons.defaultFocus), {}, {
|
|
173
|
+
border: 'none'
|
|
174
|
+
})
|
|
175
|
+
})
|
|
176
|
+
},
|
|
177
|
+
rockerButton: {
|
|
178
|
+
thumbSwitch: _objectSpread(_objectSpread({}, theme.variants.rockerButton.thumbSwitch), {}, {
|
|
179
|
+
':focus': {
|
|
180
|
+
border: 'none'
|
|
181
|
+
},
|
|
182
|
+
'&.is-selected:hover': {
|
|
183
|
+
color: 'white'
|
|
184
|
+
},
|
|
185
|
+
':not(.is-selected):hover': {
|
|
186
|
+
color: 'white'
|
|
187
|
+
}
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
environmentBreadcrumb: {
|
|
191
|
+
button: {
|
|
192
|
+
current: {
|
|
193
|
+
'&:hover:not(.disabled)': _objectSpread({}, theme.variants.environmentBreadcrumb.button.current),
|
|
194
|
+
'&:focus': _objectSpread({}, theme.variants.environmentBreadcrumb.button.current)
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
export default {
|
|
200
|
+
buttons: buttons,
|
|
201
|
+
forms: forms,
|
|
202
|
+
links: links,
|
|
203
|
+
variants: variants
|
|
204
|
+
};
|
|
@@ -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
|
+
};
|