@pingux/astro 2.211.0-alpha.0 → 2.212.1-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/LabelValuePairs/LabelValuePairs.d.ts +14 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.js +70 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.stories.js +109 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.d.ts +18 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.js +28 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.test.js +315 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.d.ts +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.js +47 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.d.ts +3 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.js +40 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.d.ts +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.js +29 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.d.ts +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.js +120 -0
- package/lib/cjs/components/LabelValuePairs/constants.d.ts +5 -0
- package/lib/cjs/components/LabelValuePairs/constants.js +12 -0
- package/lib/cjs/components/LabelValuePairs/index.d.ts +2 -0
- package/lib/cjs/components/LabelValuePairs/index.js +62 -0
- package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.d.ts +74 -0
- package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.js +20 -0
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +71 -52
- package/lib/cjs/recipes/ListAndPanel.stories.js +1 -16
- package/lib/cjs/recipes/PanelContent.stories.js +11 -47
- package/lib/cjs/recipes/items.js +38 -30
- package/lib/cjs/styles/themeOverrides/onyxDarkUiLibraryOverride.js +41 -0
- package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.d.ts +37 -0
- package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.js +47 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +46 -35
- package/lib/cjs/types/labelValuePairs.d.ts +35 -0
- package/lib/cjs/types/labelValuePairs.js +6 -0
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.js +35 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.stories.js +102 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.styles.js +21 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.test.js +309 -0
- package/lib/components/LabelValuePairs/LabelValuePairsLabel.js +35 -0
- package/lib/components/LabelValuePairs/LabelValuePairsRow.js +28 -0
- package/lib/components/LabelValuePairs/LabelValuePairsSubvalue.js +17 -0
- package/lib/components/LabelValuePairs/LabelValuePairsValue.js +108 -0
- package/lib/components/LabelValuePairs/constants.js +5 -0
- package/lib/components/LabelValuePairs/index.js +2 -0
- package/lib/components/LabelValuePairs/labelValuePairsAttributes.js +13 -0
- package/lib/index.js +2 -0
- package/lib/recipes/ListAndPanel.stories.js +3 -18
- package/lib/recipes/PanelContent.stories.js +11 -47
- package/lib/recipes/items.js +39 -31
- package/lib/styles/themeOverrides/onyxDarkUiLibraryOverride.js +41 -0
- package/lib/styles/themeOverrides/onyxUiLibraryOverride.js +47 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/variants.js +2 -0
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/index.js +1 -0
- package/lib/types/labelValuePairs.js +1 -0
- package/lib/utils/designUtils/figmaLinks.js +3 -0
- package/package.json +1 -1
|
@@ -7,10 +7,9 @@ import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
|
|
|
7
7
|
import PencilIcon from '@pingux/mdi-react/PencilIcon';
|
|
8
8
|
import PlusIcon from '@pingux/mdi-react/PlusIcon';
|
|
9
9
|
import { useOverlayPanelState } from '../hooks';
|
|
10
|
-
import { AccordionGroup, Badge, Box, Breadcrumbs, Button, ButtonBar, EditButton, Icon, Image, ImageUploadField, Item,
|
|
10
|
+
import { AccordionGroup, Badge, Box, Breadcrumbs, Button, ButtonBar, EditButton, Icon, Image, ImageUploadField, Item, LabelValuePairs, OverlayPanel, OverlayProvider, PanelHeader, PanelHeaderCloseButton, PanelHeaderMenu, PanelHeaderSwitchField, SelectField, Tab, Tabs, Text, TextField } from '../index';
|
|
11
11
|
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
|
12
12
|
import UserImage from '../utils/devUtils/assets/UserImage.png';
|
|
13
|
-
import statuses from '../utils/devUtils/constants/statuses';
|
|
14
13
|
import { colorBlockButtons, editData, personalData } from './items';
|
|
15
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
15
|
export default {
|
|
@@ -33,7 +32,8 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
33
32
|
state = _useOverlayPanelState.state;
|
|
34
33
|
var triggerRef = useRef();
|
|
35
34
|
var personalInfo = personalData.personalInfo;
|
|
36
|
-
var
|
|
35
|
+
var givenName = personalInfo.givenName,
|
|
36
|
+
familyName = personalInfo.familyName;
|
|
37
37
|
var renderBreadcrumbs = ___EmotionJSX(Box, {
|
|
38
38
|
width: "100%"
|
|
39
39
|
}, ___EmotionJSX(Breadcrumbs, {
|
|
@@ -42,7 +42,7 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
42
42
|
"aria-label": personalInfo.label,
|
|
43
43
|
href: "https://www.pingidentity.com",
|
|
44
44
|
key: personalInfo.key
|
|
45
|
-
}, _concatInstanceProperty(_context = "".concat(
|
|
45
|
+
}, _concatInstanceProperty(_context = "".concat(givenName, " ")).call(_context, familyName)), ___EmotionJSX(Item, {
|
|
46
46
|
"aria-label": "Edit",
|
|
47
47
|
key: "editKey"
|
|
48
48
|
}, "Edit")));
|
|
@@ -60,8 +60,8 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
60
60
|
} : {
|
|
61
61
|
data: {
|
|
62
62
|
image: image,
|
|
63
|
-
text: _concatInstanceProperty(_context2 = "".concat(
|
|
64
|
-
subtext: _concatInstanceProperty(_context3 = "".concat(
|
|
63
|
+
text: _concatInstanceProperty(_context2 = "".concat(givenName, " ")).call(_context2, familyName),
|
|
64
|
+
subtext: _concatInstanceProperty(_context3 = "".concat(givenName.toLowerCase())).call(_context3, familyName.toLowerCase())
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Button, {
|
|
@@ -114,11 +114,7 @@ export var DisplayPanel = function DisplayPanel() {
|
|
|
114
114
|
}, ___EmotionJSX(Image, {
|
|
115
115
|
src: UserImage,
|
|
116
116
|
alt: "user"
|
|
117
|
-
}), ___EmotionJSX(LabelValuePairs, {
|
|
118
|
-
fields: personalData[item].fields
|
|
119
|
-
})) : ___EmotionJSX(LabelValuePairs, {
|
|
120
|
-
fields: personalData[item].fields
|
|
121
|
-
}), personalData[item].badges && ___EmotionJSX(Box, {
|
|
117
|
+
}), ___EmotionJSX(LabelValuePairs, null, personalData[item].rows)) : ___EmotionJSX(LabelValuePairs, null, personalData[item].rows), personalData[item].badges && ___EmotionJSX(Box, {
|
|
122
118
|
isRow: true,
|
|
123
119
|
gap: "sm"
|
|
124
120
|
}, _mapInstanceProperty(_context6 = personalData[item].badges).call(_context6, function (badge) {
|
|
@@ -208,38 +204,6 @@ export var ColorBlockButton = function ColorBlockButton(_ref2) {
|
|
|
208
204
|
}
|
|
209
205
|
}));
|
|
210
206
|
};
|
|
211
|
-
export var LabelValuePairs = function LabelValuePairs(_ref3) {
|
|
212
|
-
var _ref3$fields = _ref3.fields,
|
|
213
|
-
fields = _ref3$fields === void 0 ? personalData.contactInfo.fields : _ref3$fields;
|
|
214
|
-
return ___EmotionJSX(Box, {
|
|
215
|
-
gap: "md",
|
|
216
|
-
maxWidth: "675px"
|
|
217
|
-
}, _mapInstanceProperty(fields).call(fields, function (_ref4) {
|
|
218
|
-
var label = _ref4.label,
|
|
219
|
-
value = _ref4.value,
|
|
220
|
-
isVerified = _ref4.isVerified;
|
|
221
|
-
return ___EmotionJSX(Box, {
|
|
222
|
-
gap: "xs",
|
|
223
|
-
key: "".concat(label, "-key")
|
|
224
|
-
}, ___EmotionJSX(Text, {
|
|
225
|
-
variant: "h4"
|
|
226
|
-
}, label), ___EmotionJSX(Box, {
|
|
227
|
-
isRow: true,
|
|
228
|
-
gap: "md"
|
|
229
|
-
}, ___EmotionJSX(Text, null, value), isVerified && ___EmotionJSX(Box, {
|
|
230
|
-
isRow: true,
|
|
231
|
-
gap: "xs"
|
|
232
|
-
}, ___EmotionJSX(NoticeIcon, {
|
|
233
|
-
color: "success.dark",
|
|
234
|
-
status: statuses.SUCCESS,
|
|
235
|
-
"aria-label": "".concat(statuses.SUCCESS, "-icon"),
|
|
236
|
-
size: "xs"
|
|
237
|
-
}), ___EmotionJSX(Text, {
|
|
238
|
-
variant: "listSubtitle",
|
|
239
|
-
color: "success.dark"
|
|
240
|
-
}, "Verified"))));
|
|
241
|
-
}));
|
|
242
|
-
};
|
|
243
207
|
export var EditPanel = function EditPanel() {
|
|
244
208
|
var _context7, _context8, _context9;
|
|
245
209
|
return ___EmotionJSX(OverlayWrapper, {
|
|
@@ -281,10 +245,10 @@ export var EditPanel = function EditPanel() {
|
|
|
281
245
|
previewHeight: 40,
|
|
282
246
|
previewWidth: 40,
|
|
283
247
|
previewImage: UserImage
|
|
284
|
-
}), _mapInstanceProperty(_context0 = editData[item].fields).call(_context0, function (
|
|
285
|
-
var label =
|
|
286
|
-
value =
|
|
287
|
-
slot =
|
|
248
|
+
}), _mapInstanceProperty(_context0 = editData[item].fields).call(_context0, function (_ref3) {
|
|
249
|
+
var label = _ref3.label,
|
|
250
|
+
value = _ref3.value,
|
|
251
|
+
slot = _ref3.slot;
|
|
288
252
|
return ___EmotionJSX(Box, {
|
|
289
253
|
key: "".concat(label, "-key")
|
|
290
254
|
}, ___EmotionJSX(TextField, {
|
package/lib/recipes/items.js
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AccountIcon from '@pingux/mdi-react/AccountIcon';
|
|
3
3
|
import FormSelectIcon from '@pingux/mdi-react/FormSelectIcon';
|
|
4
|
-
import { CheckboxField } from '../index';
|
|
4
|
+
import { Box, CheckboxField, NoticeIcon, Pair, PairLabel, PairValue, Text, ValueTypes } from '../index';
|
|
5
5
|
import UserImage from '../utils/devUtils/assets/UserImage.png';
|
|
6
|
+
import statuses from '../utils/devUtils/constants/statuses';
|
|
6
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
|
+
var VerifiedValue = function VerifiedValue(_ref) {
|
|
9
|
+
var value = _ref.value;
|
|
10
|
+
return ___EmotionJSX(Box, {
|
|
11
|
+
isRow: true,
|
|
12
|
+
gap: "md"
|
|
13
|
+
}, ___EmotionJSX(Text, null, value), ___EmotionJSX(Box, {
|
|
14
|
+
isRow: true,
|
|
15
|
+
gap: "xs"
|
|
16
|
+
}, ___EmotionJSX(NoticeIcon, {
|
|
17
|
+
color: "success.dark",
|
|
18
|
+
status: statuses.SUCCESS,
|
|
19
|
+
"aria-label": "".concat(statuses.SUCCESS, "-icon"),
|
|
20
|
+
size: "xs"
|
|
21
|
+
}), ___EmotionJSX(Text, {
|
|
22
|
+
variant: "listSubtitle",
|
|
23
|
+
color: "success.dark"
|
|
24
|
+
}, "Verified")));
|
|
25
|
+
};
|
|
7
26
|
export var items = [{
|
|
8
27
|
email: 'dburkitt5@columbia.edu',
|
|
9
28
|
firstName: 'Nicola',
|
|
@@ -70,58 +89,47 @@ export var items = [{
|
|
|
70
89
|
lastName: 'Idel',
|
|
71
90
|
icon: AccountIcon
|
|
72
91
|
}];
|
|
92
|
+
var H4Label = function H4Label(_ref2) {
|
|
93
|
+
var children = _ref2.children;
|
|
94
|
+
return ___EmotionJSX(PairLabel, {
|
|
95
|
+
textProps: {
|
|
96
|
+
as: 'h3'
|
|
97
|
+
}
|
|
98
|
+
}, children);
|
|
99
|
+
};
|
|
73
100
|
export var personalData = {
|
|
74
101
|
contactInfo: {
|
|
75
102
|
label: 'Contact Info',
|
|
76
103
|
key: 'contactInfoKey',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
label: 'Primary',
|
|
83
|
-
value: '+1 767-777-3333'
|
|
84
|
-
}, {
|
|
85
|
-
label: 'Address',
|
|
86
|
-
value: '1234 W California St, Denver CO 80101'
|
|
87
|
-
}]
|
|
104
|
+
rows: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Email"), ___EmotionJSX(PairValue, {
|
|
105
|
+
valueType: ValueTypes.ELEMENT
|
|
106
|
+
}, ___EmotionJSX(VerifiedValue, {
|
|
107
|
+
value: "ednepomuceno@pingidentity.com"
|
|
108
|
+
}))), ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Primary"), ___EmotionJSX(PairValue, null, "+1 767-777-3333")), ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Address"), ___EmotionJSX(PairValue, null, "1234 W California St, Denver CO 80101")))
|
|
88
109
|
},
|
|
89
110
|
personalInfo: {
|
|
90
111
|
label: 'Personal Info',
|
|
91
112
|
key: 'personalInfoKey',
|
|
92
113
|
image: UserImage,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}, {
|
|
97
|
-
label: 'Famile Name',
|
|
98
|
-
value: 'Nepomuceno'
|
|
99
|
-
}]
|
|
114
|
+
givenName: 'Ed',
|
|
115
|
+
familyName: 'Nepomuceno',
|
|
116
|
+
rows: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Given Name"), ___EmotionJSX(PairValue, null, "Ed")), ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Famile Name"), ___EmotionJSX(PairValue, null, "Nepomuceno")))
|
|
100
117
|
},
|
|
101
118
|
companyInfo: {
|
|
102
119
|
label: 'Company Info',
|
|
103
120
|
key: 'companyInfoKey',
|
|
104
|
-
|
|
105
|
-
label: 'Tile',
|
|
106
|
-
value: 'Interaction Designer'
|
|
107
|
-
}]
|
|
121
|
+
rows: ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Tile"), ___EmotionJSX(PairValue, null, "Interaction Designer"))
|
|
108
122
|
},
|
|
109
123
|
customAttributes: {
|
|
110
124
|
label: 'Custom Attributes',
|
|
111
125
|
key: 'customAttributesKey',
|
|
112
|
-
|
|
113
|
-
label: 'T-Shirt Size',
|
|
114
|
-
value: 'Large'
|
|
115
|
-
}, {
|
|
116
|
-
label: 'Example Multi-Value Attribute',
|
|
117
|
-
value: 'value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,'
|
|
118
|
-
}]
|
|
126
|
+
rows: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "T-Shirt Size"), ___EmotionJSX(PairValue, null, "Large")), ___EmotionJSX(Pair, null, ___EmotionJSX(H4Label, null, "Example Multi-Value Attribute"), ___EmotionJSX(PairValue, null, "value,value,value,value,value,value,value,value,value,value, value,value,value,value,value,value,value,value,value,")))
|
|
119
127
|
},
|
|
120
128
|
jsonAttributes: {
|
|
121
129
|
label: 'JSON Attributes',
|
|
122
130
|
key: 'jsonAttributesKey',
|
|
123
131
|
badges: ['Address', 'Contact', 'Another Json'],
|
|
124
|
-
|
|
132
|
+
rows: null
|
|
125
133
|
}
|
|
126
134
|
};
|
|
127
135
|
export var colorBlockButtons = [{
|
|
@@ -144,6 +144,47 @@ var forms = {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
+
comboBox: {
|
|
148
|
+
container: {
|
|
149
|
+
'& input[type=text]': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
150
|
+
borderColor: astroTokensDark.color.gray[500],
|
|
151
|
+
borderRadius: astroTokens.radius.input,
|
|
152
|
+
height: astroTokens.size.input.height,
|
|
153
|
+
fontSize: '15px',
|
|
154
|
+
bg: astroTokensDark.color.gray[900],
|
|
155
|
+
'::placeholder': _objectSpread(_objectSpread({}, theme.text.placeholder), {}, {
|
|
156
|
+
fontStyle: 'unset',
|
|
157
|
+
fontSize: '15px'
|
|
158
|
+
})
|
|
159
|
+
}),
|
|
160
|
+
'& input[type=text]:focus': {
|
|
161
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
162
|
+
},
|
|
163
|
+
'&.is-focused input[type=text]': {
|
|
164
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
165
|
+
},
|
|
166
|
+
'& input[type=text].is-read-only, & input[type=text][readonly]': {
|
|
167
|
+
backgroundColor: astroTokensDark.color.input['readonly-bg'],
|
|
168
|
+
borderColor: astroTokensDark.color.gray[500]
|
|
169
|
+
},
|
|
170
|
+
'& input[type=text].is-disabled, & input[type=text][disabled]': {
|
|
171
|
+
backgroundColor: astroTokensDark.color.input['readonly-bg'],
|
|
172
|
+
borderColor: astroTokensDark.color.gray[500],
|
|
173
|
+
opacity: 1
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
button: {
|
|
177
|
+
border: 'none !important',
|
|
178
|
+
bg: 'transparent',
|
|
179
|
+
'&:not(.disabled):hover': {
|
|
180
|
+
border: 'none !important',
|
|
181
|
+
bg: 'transparent'
|
|
182
|
+
},
|
|
183
|
+
'&:focus': {
|
|
184
|
+
border: 'none !important'
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
147
188
|
label: {
|
|
148
189
|
'body &': {
|
|
149
190
|
textTransform: 'none'
|
|
@@ -146,6 +146,53 @@ var forms = {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
+
comboBox: {
|
|
150
|
+
container: {
|
|
151
|
+
'& input[type=text]': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
|
152
|
+
borderColor: astroTokens.color.input.border,
|
|
153
|
+
borderRadius: astroTokens.radius.input,
|
|
154
|
+
height: astroTokens.size.input.height,
|
|
155
|
+
fontSize: '15px',
|
|
156
|
+
bg: 'white',
|
|
157
|
+
'::placeholder': _objectSpread(_objectSpread({}, theme.text.placeholder), {}, {
|
|
158
|
+
fontStyle: 'unset',
|
|
159
|
+
fontSize: '15px'
|
|
160
|
+
})
|
|
161
|
+
}),
|
|
162
|
+
'& input[type=text]:focus': {
|
|
163
|
+
outline: '1px solid',
|
|
164
|
+
outlineColor: astroTokens.color.blue[500],
|
|
165
|
+
outlineOffset: '0px',
|
|
166
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
167
|
+
},
|
|
168
|
+
'&.is-focused input[type=text]': {
|
|
169
|
+
outline: '1px solid',
|
|
170
|
+
outlineColor: astroTokens.color.blue[500],
|
|
171
|
+
outlineOffset: '0px',
|
|
172
|
+
borderColor: "".concat(astroTokens.color.blue[500], " !important")
|
|
173
|
+
},
|
|
174
|
+
'& input[type=text].is-read-only, & input[type=text][readonly]': {
|
|
175
|
+
backgroundColor: astroTokens.color.input['readonly-bg'],
|
|
176
|
+
borderColor: astroTokens.color.input.border
|
|
177
|
+
},
|
|
178
|
+
'& input[type=text].is-disabled, & input[type=text][disabled]': {
|
|
179
|
+
backgroundColor: astroTokens.color.input['readonly-bg'],
|
|
180
|
+
borderColor: astroTokens.color.input.border,
|
|
181
|
+
opacity: 1
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
button: {
|
|
185
|
+
border: 'none !important',
|
|
186
|
+
bg: 'transparent',
|
|
187
|
+
'&:not(.disabled):hover': {
|
|
188
|
+
border: 'none !important',
|
|
189
|
+
bg: 'transparent'
|
|
190
|
+
},
|
|
191
|
+
'&:focus': {
|
|
192
|
+
border: 'none !important'
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
149
196
|
label: {
|
|
150
197
|
'body &': {
|
|
151
198
|
textTransform: 'none'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PhoneNumberField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField'];
|
|
1
|
+
var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PhoneNumberField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField', 'LabelValuePairs'];
|
|
2
2
|
export var componentSpecificNextGenBlacklist = {
|
|
3
3
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
|
4
4
|
Messages: ['Customization'],
|
|
@@ -11,6 +11,7 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
11
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
12
|
import { astroTokens } from '@pingux/onyx-tokens';
|
|
13
13
|
import attachment from '../../../../components/AIComponents/Attachment/Attachment.styles';
|
|
14
|
+
import labelValuePairs from '../../../../components/LabelValuePairs/LabelValuePairs.styles';
|
|
14
15
|
import skeleton from '../../../../components/Skeleton/Skeleton.styles';
|
|
15
16
|
import codeView from '../codeView/codeView';
|
|
16
17
|
import sizes from '../sizes';
|
|
@@ -469,6 +470,7 @@ export default {
|
|
|
469
470
|
footer: footer,
|
|
470
471
|
helpHint: helpHint,
|
|
471
472
|
iconWrapper: iconWrapper,
|
|
473
|
+
labelValuePairs: labelValuePairs,
|
|
472
474
|
listBox: listBox,
|
|
473
475
|
listView: listView,
|
|
474
476
|
listViewItem: listViewItem,
|
|
@@ -29,6 +29,7 @@ import footer from '../../components/Footer/Footer.styles';
|
|
|
29
29
|
import gridList from '../../components/GridList/GridList.styles';
|
|
30
30
|
import helpHint from '../../components/HelpHint/HelpHint.styles';
|
|
31
31
|
import imageUpload from '../../components/ImageUploadField/imageUpload';
|
|
32
|
+
import labelValuePairs from '../../components/LabelValuePairs/LabelValuePairs.styles';
|
|
32
33
|
import listBox from '../../components/ListBox/ListBox.styles';
|
|
33
34
|
import listItem from '../../components/ListItem/ListItem.styles';
|
|
34
35
|
import listView from '../../components/ListView/ListView.styles';
|
|
@@ -85,6 +86,7 @@ export default _objectSpread(_objectSpread({
|
|
|
85
86
|
gridList: gridList,
|
|
86
87
|
helpHint: helpHint,
|
|
87
88
|
imageUpload: imageUpload,
|
|
89
|
+
labelValuePairs: labelValuePairs,
|
|
88
90
|
listBox: listBox,
|
|
89
91
|
listItem: listItem,
|
|
90
92
|
listView: listView,
|
package/lib/types/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -116,6 +116,9 @@ export var FIGMA_LINKS = {
|
|
|
116
116
|
inlineEditing: {
|
|
117
117
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=5244-14864&mode=design&t=1pPbrQvGkdMYBNqk-0'
|
|
118
118
|
},
|
|
119
|
+
labelValuePairs: {
|
|
120
|
+
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43431%3A4249&mode=dev'
|
|
121
|
+
},
|
|
119
122
|
link: {
|
|
120
123
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=8708-29543&t=8Wwd3tIBh3GEjCJB-0'
|
|
121
124
|
},
|