@pingux/astro 1.26.1-alpha.6 → 1.26.1-alpha.7
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.
@@ -117,6 +117,44 @@ var items = [{
|
|
117
117
|
logo: _EmailIcon["default"],
|
118
118
|
id: '8'
|
119
119
|
}];
|
120
|
+
var sx = {
|
121
|
+
appBox: {
|
122
|
+
alignSelf: 'center',
|
123
|
+
maxWidth: '260px'
|
124
|
+
},
|
125
|
+
appTitle: {
|
126
|
+
alignSelf: 'center',
|
127
|
+
fontWeight: '700',
|
128
|
+
mr: 'auto'
|
129
|
+
},
|
130
|
+
appDesc: {
|
131
|
+
alignSelf: 'center',
|
132
|
+
fontSize: '15px',
|
133
|
+
mr: 'auto'
|
134
|
+
},
|
135
|
+
pinIconBox: {
|
136
|
+
alignSelf: 'center',
|
137
|
+
ml: 'md',
|
138
|
+
'&.is-hovered': {
|
139
|
+
bg: 'transparent'
|
140
|
+
},
|
141
|
+
'&.is-pressed': {
|
142
|
+
'path': {
|
143
|
+
fill: 'active'
|
144
|
+
}
|
145
|
+
}
|
146
|
+
},
|
147
|
+
listViewRow: {
|
148
|
+
bg: 'red',
|
149
|
+
padding: '-4px'
|
150
|
+
},
|
151
|
+
listViewItem: {
|
152
|
+
bg: 'white',
|
153
|
+
'&.is-hovered': {
|
154
|
+
bg: 'accent.99'
|
155
|
+
}
|
156
|
+
}
|
157
|
+
};
|
120
158
|
|
121
159
|
var Default = function Default() {
|
122
160
|
var buttonRef = (0, _react.useRef)();
|
@@ -197,42 +235,21 @@ var Default = function Default() {
|
|
197
235
|
ml: "-10px"
|
198
236
|
}), (0, _react2.jsx)(_index.Box, {
|
199
237
|
alignSelf: "center",
|
200
|
-
sx:
|
201
|
-
maxWidth: '260px'
|
202
|
-
}
|
238
|
+
sx: sx.appBox
|
203
239
|
}, (0, _react2.jsx)(_index.Text, {
|
204
240
|
variant: "itemTitle",
|
205
|
-
|
206
|
-
mr: "auto",
|
207
|
-
sx: {
|
208
|
-
fontWeight: '700'
|
209
|
-
}
|
241
|
+
sx: sx.appTitle
|
210
242
|
}, item.application), (0, _react2.jsx)(_index.Text, {
|
211
243
|
variant: "itemSubtitle",
|
212
|
-
|
213
|
-
mr: "auto",
|
214
|
-
sx: {
|
215
|
-
fontSize: '15px'
|
216
|
-
}
|
244
|
+
sx: sx.appDesc
|
217
245
|
}, item.description)), (0, _react2.jsx)(_index.Box, {
|
218
246
|
alignSelf: "center"
|
219
247
|
}, (0, _react2.jsx)(_index.IconButton, {
|
220
248
|
"aria-label": "Pin ".concat(item.application),
|
221
|
-
ml: "md",
|
222
|
-
alignSelf: "center",
|
223
249
|
onPress: function onPress() {
|
224
250
|
return onPinPress();
|
225
251
|
},
|
226
|
-
sx:
|
227
|
-
'&.is-hovered': {
|
228
|
-
bg: 'transparent'
|
229
|
-
},
|
230
|
-
'&.is-pressed': {
|
231
|
-
'path': {
|
232
|
-
fill: 'active'
|
233
|
-
}
|
234
|
-
}
|
235
|
-
}
|
252
|
+
sx: sx.pinIconBox
|
236
253
|
}, (0, _react2.jsx)(_index.Icon, {
|
237
254
|
icon: _PinIcon["default"],
|
238
255
|
sx: {
|
@@ -287,10 +304,7 @@ var Default = function Default() {
|
|
287
304
|
return setIsOpen(!isOpen);
|
288
305
|
},
|
289
306
|
rowProps: {
|
290
|
-
sx:
|
291
|
-
bg: 'red',
|
292
|
-
padding: '-4px'
|
293
|
-
}
|
307
|
+
sx: sx.listViewRow
|
294
308
|
},
|
295
309
|
padding: "-4px"
|
296
310
|
}, function (item) {
|
@@ -300,12 +314,7 @@ var Default = function Default() {
|
|
300
314
|
"data-id": item.key,
|
301
315
|
hasSeparator: false,
|
302
316
|
listItemProps: {
|
303
|
-
sx:
|
304
|
-
bg: 'white',
|
305
|
-
'&.is-hovered': {
|
306
|
-
bg: 'accent.99'
|
307
|
-
}
|
308
|
-
}
|
317
|
+
sx: sx.listViewItem
|
309
318
|
}
|
310
319
|
}, (0, _react2.jsx)(InnerHtml, {
|
311
320
|
item: item
|
@@ -76,6 +76,44 @@ var items = [{
|
|
76
76
|
logo: Email,
|
77
77
|
id: '8'
|
78
78
|
}];
|
79
|
+
var sx = {
|
80
|
+
appBox: {
|
81
|
+
alignSelf: 'center',
|
82
|
+
maxWidth: '260px'
|
83
|
+
},
|
84
|
+
appTitle: {
|
85
|
+
alignSelf: 'center',
|
86
|
+
fontWeight: '700',
|
87
|
+
mr: 'auto'
|
88
|
+
},
|
89
|
+
appDesc: {
|
90
|
+
alignSelf: 'center',
|
91
|
+
fontSize: '15px',
|
92
|
+
mr: 'auto'
|
93
|
+
},
|
94
|
+
pinIconBox: {
|
95
|
+
alignSelf: 'center',
|
96
|
+
ml: 'md',
|
97
|
+
'&.is-hovered': {
|
98
|
+
bg: 'transparent'
|
99
|
+
},
|
100
|
+
'&.is-pressed': {
|
101
|
+
'path': {
|
102
|
+
fill: 'active'
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
listViewRow: {
|
107
|
+
bg: 'red',
|
108
|
+
padding: '-4px'
|
109
|
+
},
|
110
|
+
listViewItem: {
|
111
|
+
bg: 'white',
|
112
|
+
'&.is-hovered': {
|
113
|
+
bg: 'accent.99'
|
114
|
+
}
|
115
|
+
}
|
116
|
+
};
|
79
117
|
export var Default = function Default() {
|
80
118
|
var buttonRef = useRef();
|
81
119
|
var popoverRef = useRef();
|
@@ -155,42 +193,21 @@ export var Default = function Default() {
|
|
155
193
|
ml: "-10px"
|
156
194
|
}), ___EmotionJSX(Box, {
|
157
195
|
alignSelf: "center",
|
158
|
-
sx:
|
159
|
-
maxWidth: '260px'
|
160
|
-
}
|
196
|
+
sx: sx.appBox
|
161
197
|
}, ___EmotionJSX(Text, {
|
162
198
|
variant: "itemTitle",
|
163
|
-
|
164
|
-
mr: "auto",
|
165
|
-
sx: {
|
166
|
-
fontWeight: '700'
|
167
|
-
}
|
199
|
+
sx: sx.appTitle
|
168
200
|
}, item.application), ___EmotionJSX(Text, {
|
169
201
|
variant: "itemSubtitle",
|
170
|
-
|
171
|
-
mr: "auto",
|
172
|
-
sx: {
|
173
|
-
fontSize: '15px'
|
174
|
-
}
|
202
|
+
sx: sx.appDesc
|
175
203
|
}, item.description)), ___EmotionJSX(Box, {
|
176
204
|
alignSelf: "center"
|
177
205
|
}, ___EmotionJSX(IconButton, {
|
178
206
|
"aria-label": "Pin ".concat(item.application),
|
179
|
-
ml: "md",
|
180
|
-
alignSelf: "center",
|
181
207
|
onPress: function onPress() {
|
182
208
|
return onPinPress();
|
183
209
|
},
|
184
|
-
sx:
|
185
|
-
'&.is-hovered': {
|
186
|
-
bg: 'transparent'
|
187
|
-
},
|
188
|
-
'&.is-pressed': {
|
189
|
-
'path': {
|
190
|
-
fill: 'active'
|
191
|
-
}
|
192
|
-
}
|
193
|
-
}
|
210
|
+
sx: sx.pinIconBox
|
194
211
|
}, ___EmotionJSX(Icon, {
|
195
212
|
icon: Pin,
|
196
213
|
sx: {
|
@@ -245,10 +262,7 @@ export var Default = function Default() {
|
|
245
262
|
return setIsOpen(!isOpen);
|
246
263
|
},
|
247
264
|
rowProps: {
|
248
|
-
sx:
|
249
|
-
bg: 'red',
|
250
|
-
padding: '-4px'
|
251
|
-
}
|
265
|
+
sx: sx.listViewRow
|
252
266
|
},
|
253
267
|
padding: "-4px"
|
254
268
|
}, function (item) {
|
@@ -258,12 +272,7 @@ export var Default = function Default() {
|
|
258
272
|
"data-id": item.key,
|
259
273
|
hasSeparator: false,
|
260
274
|
listItemProps: {
|
261
|
-
sx:
|
262
|
-
bg: 'white',
|
263
|
-
'&.is-hovered': {
|
264
|
-
bg: 'accent.99'
|
265
|
-
}
|
266
|
-
}
|
275
|
+
sx: sx.listViewItem
|
267
276
|
}
|
268
277
|
}, ___EmotionJSX(InnerHtml, {
|
269
278
|
item: item
|