@pingux/astro 2.123.1-alpha.0 → 2.124.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/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +144 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +144 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +311 -11
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +4 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +292 -6
- package/lib/cjs/styles/themes/next-gen/variants/button.js +161 -24
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +15 -5
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +144 -1
- package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +4 -0
- package/lib/styles/themes/next-gen/variants/button.js +161 -24
- package/package.json +1 -1
@@ -156,10 +156,18 @@ declare const _default: {
|
|
156
156
|
backgroundColor: string;
|
157
157
|
borderColor: string;
|
158
158
|
color: string;
|
159
|
+
path: {
|
160
|
+
fill: string;
|
161
|
+
};
|
159
162
|
};
|
160
163
|
'&.is-hovered': {
|
164
|
+
boxShadow: string;
|
161
165
|
backgroundColor: string;
|
166
|
+
borderColor: string;
|
162
167
|
color: string;
|
168
|
+
path: {
|
169
|
+
fill: string;
|
170
|
+
};
|
163
171
|
};
|
164
172
|
alignItems: string;
|
165
173
|
justifyContent: string;
|
@@ -199,7 +207,14 @@ declare const _default: {
|
|
199
207
|
borderColor: string;
|
200
208
|
};
|
201
209
|
'&.is-hovered': {
|
210
|
+
boxShadow: string;
|
211
|
+
backgroundColor: string;
|
212
|
+
borderColor: string;
|
213
|
+
};
|
214
|
+
'&.is-focused': {
|
202
215
|
backgroundColor: string;
|
216
|
+
borderColor: string;
|
217
|
+
outline: string;
|
203
218
|
};
|
204
219
|
alignItems: string;
|
205
220
|
justifyContent: string;
|
@@ -222,11 +237,6 @@ declare const _default: {
|
|
222
237
|
'&.is-disabled': {
|
223
238
|
opacity: number;
|
224
239
|
};
|
225
|
-
'&.is-focused': {
|
226
|
-
outline: string;
|
227
|
-
outlineColor: string;
|
228
|
-
outlineOffset: string;
|
229
|
-
};
|
230
240
|
transition: string;
|
231
241
|
};
|
232
242
|
navBarLogoLink: {
|
@@ -81,13 +81,156 @@ var buttons = {
|
|
81
81
|
color: 'black'
|
82
82
|
}
|
83
83
|
},
|
84
|
-
|
84
|
+
inline: {
|
85
|
+
color: 'blue-400',
|
86
|
+
borderColor: 'blue-400',
|
87
|
+
'&.is-hovered': {
|
88
|
+
backgroundColor: 'active_hover',
|
89
|
+
color: 'black',
|
90
|
+
borderColor: 'blue'
|
91
|
+
},
|
92
|
+
'&.is-pressed': {
|
93
|
+
color: 'black',
|
94
|
+
borderColor: 'blue'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
inlinePrimary: {
|
98
|
+
color: 'black',
|
99
|
+
'&.is-hovered': {
|
100
|
+
color: 'black'
|
101
|
+
},
|
102
|
+
'&.is-pressed': {
|
103
|
+
color: 'black'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
withIcon: {
|
107
|
+
color: 'blue-400',
|
85
108
|
borderColor: 'blue-400',
|
109
|
+
'&.is-hovered': {
|
110
|
+
backgroundColor: 'active_hover',
|
111
|
+
borderColor: 'blue',
|
112
|
+
color: 'black',
|
113
|
+
path: {
|
114
|
+
fill: 'black'
|
115
|
+
}
|
116
|
+
},
|
117
|
+
'&.is-pressed': {
|
118
|
+
color: 'black',
|
119
|
+
borderColor: 'blue',
|
120
|
+
path: {
|
121
|
+
fill: 'black'
|
122
|
+
}
|
123
|
+
}
|
124
|
+
},
|
125
|
+
primaryWithIcon: {
|
126
|
+
color: 'black',
|
127
|
+
path: {
|
128
|
+
fill: 'black'
|
129
|
+
},
|
130
|
+
'&.is-hovered': {
|
131
|
+
color: 'black',
|
132
|
+
path: {
|
133
|
+
fill: 'black'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
'&.is-pressed': {
|
137
|
+
color: 'black',
|
138
|
+
path: {
|
139
|
+
fill: 'black'
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
inlineWithIcon: {
|
86
144
|
color: 'blue-400',
|
145
|
+
borderColor: 'blue-400',
|
146
|
+
'&.is-hovered': {
|
147
|
+
color: 'black',
|
148
|
+
backgroundColor: 'active_hover',
|
149
|
+
borderColor: 'blue',
|
150
|
+
path: {
|
151
|
+
fill: 'black'
|
152
|
+
}
|
153
|
+
},
|
87
154
|
'&.is-pressed': {
|
155
|
+
color: 'black',
|
156
|
+
borderColor: 'blue',
|
157
|
+
path: {
|
158
|
+
fill: 'black'
|
159
|
+
}
|
160
|
+
}
|
161
|
+
},
|
162
|
+
inlinePrimaryWithIcon: {
|
163
|
+
color: 'black',
|
164
|
+
path: {
|
165
|
+
fill: 'black'
|
166
|
+
},
|
167
|
+
'&.is-hovered': {
|
168
|
+
color: 'black',
|
169
|
+
path: {
|
170
|
+
fill: 'black'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
'&.is-pressed': {
|
174
|
+
color: 'black',
|
175
|
+
path: {
|
176
|
+
fill: 'black'
|
177
|
+
}
|
178
|
+
}
|
179
|
+
},
|
180
|
+
colorBlock: {
|
181
|
+
bg: 'gray-200',
|
182
|
+
borderColor: 'gray-200',
|
183
|
+
path: {
|
184
|
+
fill: 'black'
|
185
|
+
},
|
186
|
+
'& span': {
|
187
|
+
color: 'black'
|
188
|
+
},
|
189
|
+
'&.is-hovered': {
|
190
|
+
bg: 'blue-100',
|
191
|
+
borderColor: 'blue-100'
|
192
|
+
},
|
193
|
+
'&.is-pressed': {
|
194
|
+
bg: 'blue-100',
|
195
|
+
borderColor: 'blue-100'
|
196
|
+
},
|
197
|
+
'&>svg': {
|
198
|
+
color: 'black',
|
199
|
+
fill: 'black'
|
200
|
+
}
|
201
|
+
},
|
202
|
+
colorBlockPrimary: {
|
203
|
+
path: {
|
204
|
+
fill: 'black'
|
205
|
+
},
|
206
|
+
'& span': {
|
88
207
|
color: 'black'
|
89
208
|
},
|
90
209
|
'&.is-hovered': {
|
210
|
+
path: {
|
211
|
+
fill: 'black'
|
212
|
+
}
|
213
|
+
},
|
214
|
+
'&.is-pressed': {
|
215
|
+
path: {
|
216
|
+
fill: 'black'
|
217
|
+
}
|
218
|
+
},
|
219
|
+
'&>svg': {
|
220
|
+
color: 'black',
|
221
|
+
fill: 'black'
|
222
|
+
}
|
223
|
+
},
|
224
|
+
"default": {
|
225
|
+
color: 'blue-400',
|
226
|
+
borderColor: 'blue-400',
|
227
|
+
'&.is-pressed': {
|
228
|
+
color: 'black',
|
229
|
+
borderColor: 'blue'
|
230
|
+
},
|
231
|
+
'&.is-hovered': {
|
232
|
+
backgroundColor: 'active_hover',
|
233
|
+
borderColor: 'blue',
|
91
234
|
color: 'black'
|
92
235
|
}
|
93
236
|
},
|
@@ -2,7 +2,6 @@ var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'Ic
|
|
2
2
|
export var componentSpecificNextGenBlacklist = {
|
3
3
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
4
4
|
Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
|
5
|
-
Button: ['Color Block Button', 'Text Icon Button'],
|
6
5
|
Messages: ['Customization'],
|
7
6
|
MultivaluesField: ['Condensed', 'Condensed With Section'],
|
8
7
|
PasswordField: ['Success'],
|
@@ -124,10 +124,14 @@ export var nextGenColors = {
|
|
124
124
|
'label': '#5e6d82'
|
125
125
|
},
|
126
126
|
'active': '#1a73e8',
|
127
|
+
'active_hover': '#1462C8',
|
128
|
+
'active_pressed': '#135CBC',
|
127
129
|
'active_light': '#eaf2fd',
|
128
130
|
'success': '#22a75f',
|
129
131
|
'success_light': '#d3eddf',
|
130
132
|
'critical': '#da3a2b',
|
133
|
+
'critical_hover': '#BE2F21',
|
134
|
+
'critical_pressed': '#B32C1F',
|
131
135
|
'critical_light': '#f8d8d5',
|
132
136
|
'warning': '#984c0c',
|
133
137
|
'warning_light': '#ffe5d0'
|
@@ -13,14 +13,20 @@ import chroma from 'chroma-js';
|
|
13
13
|
import { copyButton } from '../codeView/codeView';
|
14
14
|
import colors from '../colors/colors';
|
15
15
|
var primaryBlue = colors.primary,
|
16
|
-
|
16
|
+
primaryBlueHover = colors.active_hover,
|
17
|
+
primaryBluePress = colors.active_pressed,
|
18
|
+
criticalRedHover = colors.critical_hover,
|
19
|
+
criticalRedPress = colors.critical_pressed;
|
17
20
|
var transitions = {
|
18
21
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out'
|
19
22
|
};
|
23
|
+
var boxShadowNone = {
|
24
|
+
boxShadow: 'none !important'
|
25
|
+
};
|
20
26
|
export var defaultFocus = {
|
21
27
|
outline: '2px solid',
|
22
28
|
outlineColor: 'active',
|
23
|
-
outlineOffset: '
|
29
|
+
outlineOffset: '2px'
|
24
30
|
};
|
25
31
|
var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
26
32
|
alignItems: 'center',
|
@@ -46,7 +52,8 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
46
52
|
'&.is-disabled': {
|
47
53
|
opacity: 0.65
|
48
54
|
},
|
49
|
-
'&.is-focused': _objectSpread({}, defaultFocus)
|
55
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
56
|
+
'&.is-hovered': boxShadowNone
|
50
57
|
});
|
51
58
|
var neutral = _objectSpread(_objectSpread(_objectSpread({
|
52
59
|
color: 'gray-600'
|
@@ -63,11 +70,17 @@ var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
63
70
|
backgroundColor: 'primary',
|
64
71
|
borderColor: 'primary',
|
65
72
|
'&.is-pressed': {
|
66
|
-
backgroundColor:
|
67
|
-
borderColor:
|
73
|
+
backgroundColor: primaryBluePress,
|
74
|
+
borderColor: primaryBluePress
|
68
75
|
},
|
69
|
-
'&.is-hovered': {
|
70
|
-
backgroundColor:
|
76
|
+
'&.is-hovered': _objectSpread({
|
77
|
+
backgroundColor: primaryBlueHover,
|
78
|
+
borderColor: primaryBlueHover
|
79
|
+
}, boxShadowNone),
|
80
|
+
'&.is-focused': {
|
81
|
+
backgroundColor: primaryBluePress,
|
82
|
+
borderColor: primaryBluePress,
|
83
|
+
outline: '2px solid'
|
71
84
|
}
|
72
85
|
});
|
73
86
|
var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -75,19 +88,27 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
75
88
|
borderColor: 'primary',
|
76
89
|
color: 'primary',
|
77
90
|
'&.is-pressed': {
|
78
|
-
backgroundColor:
|
79
|
-
borderColor:
|
80
|
-
color: 'white'
|
91
|
+
backgroundColor: primaryBluePress,
|
92
|
+
borderColor: primaryBluePress,
|
93
|
+
color: 'white',
|
94
|
+
path: {
|
95
|
+
fill: 'white'
|
96
|
+
}
|
81
97
|
},
|
82
|
-
'&.is-hovered': {
|
83
|
-
backgroundColor:
|
84
|
-
|
85
|
-
|
98
|
+
'&.is-hovered': _objectSpread({
|
99
|
+
backgroundColor: primaryBlue,
|
100
|
+
borderColor: primaryBlue,
|
101
|
+
color: 'white',
|
102
|
+
path: {
|
103
|
+
fill: 'white'
|
104
|
+
}
|
105
|
+
}, boxShadowNone)
|
86
106
|
});
|
87
107
|
var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
88
108
|
backgroundColor: 'transparent',
|
89
109
|
borderColor: 'border.base',
|
90
|
-
color: 'text.secondary'
|
110
|
+
color: 'text.secondary',
|
111
|
+
'&.is-hovered': _objectSpread({}, boxShadowNone)
|
91
112
|
});
|
92
113
|
var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
93
114
|
backgroundColor: 'transparent',
|
@@ -105,19 +126,74 @@ var inverse = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
105
126
|
});
|
106
127
|
var critical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
107
128
|
backgroundColor: 'critical.bright',
|
108
|
-
borderColor: 'critical',
|
129
|
+
borderColor: 'critical.bright',
|
109
130
|
color: 'white',
|
110
131
|
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
111
132
|
outlineColor: 'critical.bright',
|
112
133
|
backgroundColor: 'critical.dark'
|
113
134
|
}),
|
114
135
|
'&.is-pressed': {
|
115
|
-
backgroundColor:
|
116
|
-
borderColor:
|
136
|
+
backgroundColor: criticalRedPress,
|
137
|
+
borderColor: criticalRedPress
|
117
138
|
},
|
118
|
-
'&.is-hovered': {
|
119
|
-
backgroundColor:
|
139
|
+
'&.is-hovered': _objectSpread({
|
140
|
+
backgroundColor: criticalRedHover,
|
141
|
+
borderColor: criticalRedHover,
|
142
|
+
color: 'white'
|
143
|
+
}, boxShadowNone)
|
144
|
+
});
|
145
|
+
var inline = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
146
|
+
display: 'inline-flex',
|
147
|
+
height: '29px',
|
148
|
+
lineHeight: 1,
|
149
|
+
fontSize: 'sm',
|
150
|
+
borderRadius: '15px',
|
151
|
+
border: '1px solid',
|
152
|
+
alignSelf: 'center',
|
153
|
+
paddingTop: '0px',
|
154
|
+
paddingBottom: '0px',
|
155
|
+
backgroundColor: 'transparent',
|
156
|
+
color: primaryBlue,
|
157
|
+
borderColor: primaryBlue,
|
158
|
+
'&.is-pressed': {
|
159
|
+
backgroundColor: primaryBluePress,
|
160
|
+
borderColor: primaryBluePress,
|
120
161
|
color: 'white'
|
162
|
+
},
|
163
|
+
'&.is-hovered': _objectSpread({
|
164
|
+
backgroundColor: primaryBlue,
|
165
|
+
borderColor: primaryBlue,
|
166
|
+
color: 'white',
|
167
|
+
path: {
|
168
|
+
fill: 'white'
|
169
|
+
}
|
170
|
+
}, boxShadowNone)
|
171
|
+
});
|
172
|
+
var inlinePrimary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
173
|
+
display: 'inline-flex',
|
174
|
+
height: '29px',
|
175
|
+
lineHeight: 1,
|
176
|
+
fontSize: 'sm',
|
177
|
+
borderRadius: '15px',
|
178
|
+
border: '1px solid',
|
179
|
+
alignSelf: 'center',
|
180
|
+
paddingTop: '0px',
|
181
|
+
paddingBottom: '0px',
|
182
|
+
backgroundColor: 'primary',
|
183
|
+
color: 'white',
|
184
|
+
borderColor: 'primary',
|
185
|
+
'&.is-pressed': {
|
186
|
+
backgroundColor: primaryBluePress,
|
187
|
+
borderColor: primaryBluePress
|
188
|
+
},
|
189
|
+
'&.is-hovered': _objectSpread({
|
190
|
+
backgroundColor: primaryBlueHover,
|
191
|
+
borderColor: primaryBlueHover
|
192
|
+
}, boxShadowNone),
|
193
|
+
'&.is-focused': {
|
194
|
+
backgroundColor: primaryBluePress,
|
195
|
+
borderColor: primaryBluePress,
|
196
|
+
outline: '2px solid'
|
121
197
|
}
|
122
198
|
});
|
123
199
|
var checkboxButton = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -152,12 +228,68 @@ var paginationMenu = _objectSpread(_objectSpread({}, link), {}, {
|
|
152
228
|
color: 'text.primary'
|
153
229
|
});
|
154
230
|
var withIcon = _objectSpread(_objectSpread({}, secondary), {}, {
|
155
|
-
display: 'inline-flex'
|
231
|
+
display: 'inline-flex',
|
232
|
+
path: {
|
233
|
+
fill: primaryBlue
|
234
|
+
}
|
156
235
|
});
|
157
236
|
var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
158
237
|
display: 'inline-flex',
|
159
238
|
color: 'white'
|
160
239
|
});
|
240
|
+
var inlineWithIcon = _objectSpread(_objectSpread({}, inline), {}, {
|
241
|
+
display: 'inline-flex',
|
242
|
+
path: {
|
243
|
+
fill: primaryBlue
|
244
|
+
}
|
245
|
+
});
|
246
|
+
var inlinePrimaryWithIcon = _objectSpread(_objectSpread({}, inlinePrimary), {}, {
|
247
|
+
display: 'inline-flex',
|
248
|
+
color: 'white'
|
249
|
+
});
|
250
|
+
var colorBlock = {
|
251
|
+
bg: 'gray-200',
|
252
|
+
borderColor: 'gray-200',
|
253
|
+
borderRadius: '1.75rem',
|
254
|
+
width: 150,
|
255
|
+
height: 50,
|
256
|
+
p: '5px 15px 5px 20px',
|
257
|
+
'&.is-hovered': _objectSpread({
|
258
|
+
bg: 'blue-100',
|
259
|
+
borderColor: 'blue-100'
|
260
|
+
}, boxShadowNone),
|
261
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
262
|
+
'&.is-pressed': {
|
263
|
+
bg: 'blue-100',
|
264
|
+
borderColor: 'blue-100'
|
265
|
+
},
|
266
|
+
'&>svg': {
|
267
|
+
color: 'text.primary',
|
268
|
+
fill: 'text.primary'
|
269
|
+
}
|
270
|
+
};
|
271
|
+
var colorBlockPrimary = _objectSpread(_objectSpread({}, colorBlock), {}, {
|
272
|
+
bg: primaryBlue,
|
273
|
+
borderColor: primaryBlue,
|
274
|
+
'& span': {
|
275
|
+
color: 'white',
|
276
|
+
textAlign: 'left'
|
277
|
+
},
|
278
|
+
'&.is-hovered': _objectSpread({
|
279
|
+
backgroundColor: primaryBlueHover,
|
280
|
+
borderColor: primaryBlueHover,
|
281
|
+
color: 'white'
|
282
|
+
}, boxShadowNone),
|
283
|
+
'&.is-pressed': {
|
284
|
+
backgroundColor: primaryBluePress,
|
285
|
+
borderColor: primaryBluePress
|
286
|
+
},
|
287
|
+
'&.is-focused': {
|
288
|
+
backgroundColor: primaryBluePress,
|
289
|
+
borderColor: primaryBluePress,
|
290
|
+
outline: '2px solid'
|
291
|
+
}
|
292
|
+
});
|
161
293
|
var aiChat = _objectSpread(_objectSpread({}, withIcon), {}, {
|
162
294
|
maxWidth: 'fit-content',
|
163
295
|
gap: 'sm',
|
@@ -325,12 +457,11 @@ var iconButtons = {
|
|
325
457
|
backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
|
326
458
|
borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
|
327
459
|
},
|
328
|
-
'&.is-hovered': {
|
460
|
+
'&.is-hovered': _objectSpread(_objectSpread({}, boxShadowNone), {}, {
|
329
461
|
border: 'none !important',
|
330
|
-
boxShadow: 'none !important',
|
331
462
|
borderColor: 'none !important',
|
332
463
|
backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
|
333
|
-
},
|
464
|
+
}),
|
334
465
|
'&.is-disabled': {
|
335
466
|
backgroundColor: 'gray-300'
|
336
467
|
}
|
@@ -354,12 +485,18 @@ var buttons = {
|
|
354
485
|
tertiary: tertiary,
|
355
486
|
inverse: inverse,
|
356
487
|
critical: critical,
|
488
|
+
inline: inline,
|
489
|
+
inlinePrimary: inlinePrimary,
|
357
490
|
checkboxButton: checkboxButton,
|
358
491
|
checkboxActiveButton: checkboxActiveButton,
|
359
492
|
outlineCritical: outlineCritical,
|
360
493
|
link: link,
|
361
494
|
withIcon: withIcon,
|
362
495
|
primaryWithIcon: primaryWithIcon,
|
496
|
+
inlineWithIcon: inlineWithIcon,
|
497
|
+
inlinePrimaryWithIcon: inlinePrimaryWithIcon,
|
498
|
+
colorBlock: colorBlock,
|
499
|
+
colorBlockPrimary: colorBlockPrimary,
|
363
500
|
iconButtons: iconButtons,
|
364
501
|
modalCloseButton: modalCloseButton,
|
365
502
|
aiChat: aiChat,
|