@pingux/astro 1.37.1 → 1.37.2-alpha.1
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/DataTable/DataTable.styles.js +7 -4
- package/lib/cjs/components/NavBar/NavBar.js +9 -13
- package/lib/cjs/components/NavBar/NavBar.stories.js +6 -3
- package/lib/cjs/components/NavBar/NavBar.test.js +56 -13
- package/lib/cjs/components/SearchField/SearchField.js +3 -1
- package/lib/cjs/recipes/Slider.stories.js +3 -3
- package/lib/cjs/styles/colors.js +5 -3
- package/lib/cjs/styles/forms/checkbox.js +4 -2
- package/lib/cjs/styles/forms/input.js +17 -4
- package/lib/cjs/styles/forms/radio.js +26 -5
- package/lib/cjs/styles/forms/select.js +3 -3
- package/lib/cjs/styles/variants/accordion.js +5 -27
- package/lib/cjs/styles/variants/boxes.js +17 -4
- package/lib/cjs/styles/variants/buttons.js +39 -25
- package/lib/cjs/styles/variants/collapsiblePanel.js +28 -5
- package/lib/cjs/styles/variants/links.js +5 -4
- package/lib/cjs/styles/variants/navBar.js +1 -1
- package/lib/cjs/styles/variants/stepper.js +4 -4
- package/lib/cjs/styles/variants/tabs.js +26 -1
- package/lib/components/DataTable/DataTable.styles.js +7 -4
- package/lib/components/NavBar/NavBar.js +10 -13
- package/lib/components/NavBar/NavBar.stories.js +6 -3
- package/lib/components/NavBar/NavBar.test.js +51 -13
- package/lib/components/SearchField/SearchField.js +3 -1
- package/lib/recipes/Slider.stories.js +2 -3
- package/lib/styles/colors.js +5 -3
- package/lib/styles/forms/checkbox.js +4 -2
- package/lib/styles/forms/input.js +17 -5
- package/lib/styles/forms/radio.js +17 -5
- package/lib/styles/forms/select.js +2 -3
- package/lib/styles/variants/accordion.js +5 -17
- package/lib/styles/variants/boxes.js +17 -4
- package/lib/styles/variants/buttons.js +37 -24
- package/lib/styles/variants/collapsiblePanel.js +18 -5
- package/lib/styles/variants/links.js +4 -4
- package/lib/styles/variants/navBar.js +1 -1
- package/lib/styles/variants/stepper.js +3 -3
- package/lib/styles/variants/tabs.js +16 -1
- package/package.json +1 -1
- package/NOTICE.html +0 -4665
@@ -41,7 +41,7 @@ var tableCell = _objectSpread(_objectSpread({}, _text.text.tableData), {}, {
|
|
41
41
|
'&.is-key-focused': {
|
42
42
|
outline: '1px',
|
43
43
|
outlineStyle: 'solid',
|
44
|
-
outlineColor: '
|
44
|
+
outlineColor: 'focus',
|
45
45
|
outlineOffset: '-1px',
|
46
46
|
backgroundColor: 'white'
|
47
47
|
},
|
@@ -73,14 +73,17 @@ var tableRow = {
|
|
73
73
|
borderBottomStyle: 'solid !important',
|
74
74
|
backgroundColor: 'accent.99',
|
75
75
|
borderBottomColor: 'neutral.80',
|
76
|
+
borderTop: '1px solid transparent',
|
77
|
+
borderLeft: '1px solid transparent',
|
78
|
+
borderRight: '1px solid transparent',
|
76
79
|
'&:hover': {
|
77
80
|
backgroundColor: 'white'
|
78
81
|
},
|
79
82
|
'&.is-row-focus-visible': {
|
80
83
|
border: '1px solid',
|
81
|
-
borderColor: '
|
84
|
+
borderColor: 'focus',
|
82
85
|
borderBottom: '1px',
|
83
|
-
borderBottomColor: '
|
86
|
+
borderBottomColor: 'focus',
|
84
87
|
backgroundColor: 'white'
|
85
88
|
}
|
86
89
|
};
|
@@ -116,7 +119,7 @@ var tableHeadCell = _objectSpread(_objectSpread({}, _text.text.label), {}, {
|
|
116
119
|
'&.is-key-focused': {
|
117
120
|
outline: '1px',
|
118
121
|
outlineStyle: 'solid',
|
119
|
-
outlineColor: '
|
122
|
+
outlineColor: '#D033FF !important',
|
120
123
|
outlineOffset: '-1px',
|
121
124
|
backgroundColor: 'accent.99 !important'
|
122
125
|
},
|
@@ -26,8 +26,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
26
26
|
|
27
27
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
28
28
|
|
29
|
-
var _uuid = require("uuid");
|
30
|
-
|
31
29
|
var _focus = require("@react-aria/focus");
|
32
30
|
|
33
31
|
var _NavBarContext = require("../../context/NavBarContext");
|
@@ -70,17 +68,15 @@ var NavBar = function NavBar(props) {
|
|
70
68
|
selectedKey = _useProgressiveState2[0],
|
71
69
|
setSelectedKey = _useProgressiveState2[1];
|
72
70
|
|
73
|
-
var items = (0,
|
74
|
-
return
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
}];
|
83
|
-
}, []);
|
71
|
+
var items = (0, _isArray["default"])(children) ? (0, _map["default"])(children).call(children, function (child) {
|
72
|
+
return {
|
73
|
+
item: child,
|
74
|
+
key: child.key
|
75
|
+
};
|
76
|
+
}) : [{
|
77
|
+
item: children,
|
78
|
+
key: children.key
|
79
|
+
}];
|
84
80
|
var contextValue = {
|
85
81
|
selectedKey: selectedKey,
|
86
82
|
setSelectedKey: setSelectedKeyProp || setSelectedKey,
|
@@ -432,7 +432,8 @@ var Controlled = function Controlled() {
|
|
432
432
|
setSelectedKey: setSelectedKey,
|
433
433
|
selectedKey: selectedKey
|
434
434
|
}, (0, _react2.jsx)(_index.Box, {
|
435
|
-
padding: "md"
|
435
|
+
padding: "md",
|
436
|
+
key: "top-logo-parent"
|
436
437
|
}, (0, _react2.jsx)(_index.Link, {
|
437
438
|
"aria-label": "home link",
|
438
439
|
href: "https://pingidentity.com",
|
@@ -440,10 +441,12 @@ var Controlled = function Controlled() {
|
|
440
441
|
}, logo)), (0, _react2.jsx)(_index.Separator, {
|
441
442
|
marginTop: "lg",
|
442
443
|
marginBottom: "0px",
|
443
|
-
backgroundColor: "neutral.60"
|
444
|
+
backgroundColor: "neutral.60",
|
445
|
+
key: "top-separator"
|
444
446
|
}), (0, _react2.jsx)(_index.Box, {
|
445
447
|
variant: "navBar.sectionContainer",
|
446
|
-
paddingBottom: "xl"
|
448
|
+
paddingBottom: "xl",
|
449
|
+
key: "first-section-container"
|
447
450
|
}, (0, _react2.jsx)(_index.NavBarItem, {
|
448
451
|
"data-id": "nav-bar-item",
|
449
452
|
icon: _GlobeIcon["default"],
|
@@ -12,6 +12,8 @@ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
12
12
|
|
13
13
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
14
14
|
|
15
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
16
|
+
|
15
17
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
16
18
|
|
17
19
|
var _react = _interopRequireWildcard(require("react"));
|
@@ -113,15 +115,18 @@ var getComponent = function getComponent() {
|
|
113
115
|
height: '100%',
|
114
116
|
maxHeight: '100%',
|
115
117
|
overflowY: 'overlay !important'
|
116
|
-
}
|
118
|
+
},
|
119
|
+
key: "top-logo-parent"
|
117
120
|
}, (0, _react2.jsx)(_.NavBarSection, {
|
118
121
|
items: data,
|
119
122
|
hasSeparator: true,
|
120
123
|
"data-testid": DATA_ID,
|
121
|
-
"data-id": DATA_ID
|
124
|
+
"data-id": DATA_ID,
|
125
|
+
key: "first-section"
|
122
126
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
123
127
|
items: secondData,
|
124
|
-
title: "test_title"
|
128
|
+
title: "test_title",
|
129
|
+
key: "second-section"
|
125
130
|
}), (0, _react2.jsx)(_.NavBarItem, {
|
126
131
|
id: "Overview",
|
127
132
|
key: "Overview",
|
@@ -132,15 +137,13 @@ var getComponent = function getComponent() {
|
|
132
137
|
};
|
133
138
|
|
134
139
|
var ControlledComponent = function ControlledComponent() {
|
140
|
+
var _context;
|
141
|
+
|
135
142
|
var _useState = (0, _react.useState)(''),
|
136
143
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
137
144
|
selectedKey = _useState2[0],
|
138
145
|
setSelectedKey = _useState2[1];
|
139
146
|
|
140
|
-
var setKeys = function setKeys(e) {
|
141
|
-
setSelectedKey(e);
|
142
|
-
};
|
143
|
-
|
144
147
|
var customData = [{
|
145
148
|
icon: _GlobeIcon["default"],
|
146
149
|
key: 'Environment',
|
@@ -153,16 +156,40 @@ var ControlledComponent = function ControlledComponent() {
|
|
153
156
|
}
|
154
157
|
}, "Click me for MFA Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
155
158
|
key: "Earth Button Group",
|
156
|
-
id: "Earth Button Group"
|
159
|
+
id: "Earth Button Group",
|
160
|
+
"data-testid": "group-item"
|
157
161
|
}, "Group")]
|
158
162
|
}];
|
163
|
+
|
164
|
+
var _useState3 = (0, _react.useState)((0, _concat["default"])(_context = []).call(_context, customData)),
|
165
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
166
|
+
thisData = _useState4[0],
|
167
|
+
setData = _useState4[1];
|
168
|
+
|
169
|
+
var testFunction = function testFunction() {
|
170
|
+
var _context2, _context3;
|
171
|
+
|
172
|
+
var newArray = (0, _concat["default"])(_context2 = []).call(_context2, customData);
|
173
|
+
newArray.pop();
|
174
|
+
setData((0, _concat["default"])(_context3 = []).call(_context3, newArray));
|
175
|
+
};
|
176
|
+
|
177
|
+
var setKeys = function setKeys(e) {
|
178
|
+
setSelectedKey(e);
|
179
|
+
};
|
180
|
+
|
159
181
|
return (0, _react2.jsx)(_NavBar["default"], {
|
160
182
|
setSelectedKey: setKeys,
|
161
183
|
selectedKey: selectedKey
|
162
184
|
}, (0, _react2.jsx)(_.Box, {
|
163
185
|
variant: "navBar.sectionContainer",
|
164
|
-
paddingBottom: "xl"
|
165
|
-
|
186
|
+
paddingBottom: "xl",
|
187
|
+
key: "top-logo-parent"
|
188
|
+
}, (0, _react2.jsx)("button", {
|
189
|
+
key: "test-button",
|
190
|
+
"data-testid": "test-button",
|
191
|
+
onClick: testFunction
|
192
|
+
}, "click me!"), (0, _react2.jsx)(_.NavBarItem, {
|
166
193
|
id: "Overview",
|
167
194
|
key: "Overview",
|
168
195
|
text: "Overview",
|
@@ -178,20 +205,23 @@ var ControlledComponent = function ControlledComponent() {
|
|
178
205
|
title: "PingOne Services",
|
179
206
|
"data-id": "second-nav-bar-section"
|
180
207
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
181
|
-
items:
|
208
|
+
items: thisData,
|
182
209
|
"data-id": "third-nav-bar-section"
|
183
210
|
})));
|
184
211
|
};
|
185
212
|
|
186
213
|
var getComponentWithMultipleChildren = function getComponentWithMultipleChildren() {
|
187
214
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
188
|
-
return (0, _testWrapper.render)((0, _react2.jsx)(_NavBar["default"], props, (0, _react2.jsx)(_.Box,
|
215
|
+
return (0, _testWrapper.render)((0, _react2.jsx)(_NavBar["default"], props, (0, _react2.jsx)(_.Box, {
|
216
|
+
key: "top-logo-parent"
|
217
|
+
}, (0, _react2.jsx)(_.Link, {
|
189
218
|
href: "https://pingidentity.com",
|
190
219
|
target: "_blank",
|
191
220
|
"aria-label": "home link",
|
192
221
|
"data-testid": "navLink"
|
193
222
|
}, "home")), (0, _react2.jsx)(_.Button, {
|
194
|
-
"data-testid": "navButton"
|
223
|
+
"data-testid": "navButton",
|
224
|
+
key: "nav-button"
|
195
225
|
}, "test button")));
|
196
226
|
};
|
197
227
|
|
@@ -534,4 +564,17 @@ test('when a child is selected, and the parent is collapsed, the parent has the
|
|
534
564
|
var parentDiv = _testWrapper.screen.queryByTestId('Overview');
|
535
565
|
|
536
566
|
expect(parentDiv).toHaveClass('is-selected');
|
567
|
+
});
|
568
|
+
test('controlled version: items can be updated.', function () {
|
569
|
+
(0, _testWrapper.render)((0, _react2.jsx)(ControlledComponent, null));
|
570
|
+
|
571
|
+
var button = _testWrapper.screen.getByTestId('test-button');
|
572
|
+
|
573
|
+
var thisitem = _testWrapper.screen.getByTestId('Environment title that is so long, it wraps');
|
574
|
+
|
575
|
+
expect(thisitem).toBeInTheDocument();
|
576
|
+
|
577
|
+
_userEvent["default"].click(button);
|
578
|
+
|
579
|
+
expect(_testWrapper.screen.queryByTestId('Environment title that is so long, it wraps')).not.toBeInTheDocument();
|
537
580
|
});
|
@@ -119,7 +119,9 @@ var SearchField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
119
119
|
ref: searchRef,
|
120
120
|
pl: 40,
|
121
121
|
pr: 40
|
122
|
-
}, fieldControlProps
|
122
|
+
}, fieldControlProps, {
|
123
|
+
variant: "forms.input.search"
|
124
|
+
})), icon && (0, _react2.jsx)(_.Icon, (0, _extends2["default"])({
|
123
125
|
icon: icon,
|
124
126
|
variant: "forms.search.icon",
|
125
127
|
size: 22
|
@@ -46,6 +46,8 @@ var _i18n = require("@react-aria/i18n");
|
|
46
46
|
|
47
47
|
var _index = require("../index");
|
48
48
|
|
49
|
+
var _buttons = require("../styles/variants/buttons");
|
50
|
+
|
49
51
|
var _react2 = require("@emotion/react");
|
50
52
|
|
51
53
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
@@ -233,9 +235,7 @@ var Thumb = function Thumb(props) {
|
|
233
235
|
left: "".concat(state.getThumbPercent(index) * 100, "%")
|
234
236
|
})
|
235
237
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({}, thumbProps, {
|
236
|
-
sx: _objectSpread(_objectSpread({}, sx.thumb),
|
237
|
-
outline: isFocusVisible ? '5px solid rgba(41,150,204,0.5)' : 'none'
|
238
|
-
})
|
238
|
+
sx: _objectSpread(_objectSpread({}, sx.thumb), isFocusVisible && _buttons.defaultFocus)
|
239
239
|
}), (0, _react2.jsx)(_visuallyHidden.VisuallyHidden, null, (0, _react2.jsx)("input", (0, _extends2["default"])({
|
240
240
|
ref: inputRef
|
241
241
|
}, (0, _utils.mergeProps)(inputProps, focusProps))))));
|
package/lib/cjs/styles/colors.js
CHANGED
@@ -116,9 +116,10 @@ var decorativeDark = (0, _map["default"])(decorative).call(decorative, function
|
|
116
116
|
exports.decorativeDark = decorativeDark;
|
117
117
|
var decorativeLight = (0, _map["default"])(decorative).call(decorative, function (color) {
|
118
118
|
return (0, _chromaJs["default"])(color).brighten(2).hex();
|
119
|
-
});
|
119
|
+
}); // export const focus = chroma(accent[50]).alpha(0.75).hex();
|
120
|
+
|
120
121
|
exports.decorativeLight = decorativeLight;
|
121
|
-
var focus = (0, _chromaJs["default"])(
|
122
|
+
var focus = (0, _chromaJs["default"])('#D033FF').hex(); // COMPONENT COLORS
|
122
123
|
|
123
124
|
exports.focus = focus;
|
124
125
|
var button = {
|
@@ -127,7 +128,8 @@ var button = {
|
|
127
128
|
label: active,
|
128
129
|
hoverBorder: accent,
|
129
130
|
hoverLabel: accent,
|
130
|
-
hoverBackground: accent[95]
|
131
|
+
hoverBackground: accent[95],
|
132
|
+
focus: focus
|
131
133
|
};
|
132
134
|
exports.button = button;
|
133
135
|
var line = {
|
@@ -15,8 +15,10 @@ var checkbox = {
|
|
15
15
|
bg: 'transparent'
|
16
16
|
},
|
17
17
|
'input ~ &.is-focused': {
|
18
|
-
|
19
|
-
|
18
|
+
boxShadow: 'none',
|
19
|
+
outline: '1px solid',
|
20
|
+
outlineColor: 'focus',
|
21
|
+
outlineOffset: '0px'
|
20
22
|
}
|
21
23
|
};
|
22
24
|
exports.checkbox = checkbox;
|
@@ -30,6 +30,8 @@ var _text = require("../variants/text");
|
|
30
30
|
|
31
31
|
var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
|
32
32
|
|
33
|
+
var _buttons = require("../variants/buttons");
|
34
|
+
|
33
35
|
var _input$container;
|
34
36
|
|
35
37
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
@@ -60,8 +62,9 @@ var input = _objectSpread(_objectSpread({}, _text.text.inputValue), {}, {
|
|
60
62
|
width: '100%',
|
61
63
|
outline: 'none',
|
62
64
|
'&.is-focused': {
|
63
|
-
|
64
|
-
|
65
|
+
outline: '1px solid',
|
66
|
+
outlineColor: 'focus',
|
67
|
+
outlineOffset: '2px'
|
65
68
|
},
|
66
69
|
'.is-float-label &': {
|
67
70
|
height: '45px'
|
@@ -93,6 +96,12 @@ input.large = _objectSpread(_objectSpread({}, input), {}, {
|
|
93
96
|
lineHeight: '2em',
|
94
97
|
height: '4em'
|
95
98
|
});
|
99
|
+
input.search = _objectSpread(_objectSpread({}, input), {}, {
|
100
|
+
'&.is-focused': {
|
101
|
+
outline: 'none',
|
102
|
+
borderColor: 'focus'
|
103
|
+
}
|
104
|
+
});
|
96
105
|
input.small = _objectSpread(_objectSpread({}, input), {}, {
|
97
106
|
height: '28px',
|
98
107
|
pb: '2px',
|
@@ -211,9 +220,13 @@ input.multivaluesWrapper = _objectSpread(_objectSpread({}, input.container), {},
|
|
211
220
|
lineHeight: '100%',
|
212
221
|
p: 5,
|
213
222
|
'&.is-focused': {
|
214
|
-
boxShadow: 'none'
|
223
|
+
boxShadow: 'none',
|
224
|
+
outline: 'none'
|
215
225
|
}
|
216
|
-
}
|
226
|
+
},
|
227
|
+
'&.is-focused': _objectSpread({
|
228
|
+
boxShadow: 'none'
|
229
|
+
}, _buttons.defaultFocus)
|
217
230
|
});
|
218
231
|
input.numberField = _objectSpread(_objectSpread({}, input), {}, {
|
219
232
|
pr: '28px'
|
@@ -1,13 +1,37 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
+
|
3
5
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
6
|
|
7
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
8
|
+
|
9
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
10
|
+
|
11
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
12
|
+
|
13
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
14
|
+
|
15
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
16
|
+
|
17
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
18
|
+
|
19
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
20
|
+
|
5
21
|
_Object$defineProperty(exports, "__esModule", {
|
6
22
|
value: true
|
7
23
|
});
|
8
24
|
|
9
25
|
exports.radioField = exports.radio = void 0;
|
10
|
-
|
26
|
+
|
27
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
28
|
+
|
29
|
+
var _buttons = require("../variants/buttons");
|
30
|
+
|
31
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
32
|
+
|
33
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
34
|
+
|
11
35
|
// Default radio
|
12
36
|
var radio = {
|
13
37
|
width: 20,
|
@@ -18,10 +42,7 @@ var radio = {
|
|
18
42
|
'input:focus ~ &': {
|
19
43
|
bg: 'transparent'
|
20
44
|
},
|
21
|
-
'input ~ &.is-focused': {
|
22
|
-
outline: 'none',
|
23
|
-
boxShadow: 'focus'
|
24
|
-
}
|
45
|
+
'input ~ &.is-focused': _objectSpread({}, _buttons.focusWithCroppedOutline)
|
25
46
|
};
|
26
47
|
exports.radio = radio;
|
27
48
|
var radioField = {
|
@@ -30,6 +30,8 @@ var _input = require("./input");
|
|
30
30
|
|
31
31
|
var _variants = require("../variants");
|
32
32
|
|
33
|
+
var _buttons = require("../variants/buttons");
|
34
|
+
|
33
35
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
34
36
|
|
35
37
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -42,9 +44,7 @@ var activeFloatLabel = {
|
|
42
44
|
var select = _objectSpread(_objectSpread({}, _input.input), {}, {
|
43
45
|
display: 'flex',
|
44
46
|
alignItems: 'center',
|
45
|
-
'&.is-focused': {
|
46
|
-
boxShadow: 'focus'
|
47
|
-
},
|
47
|
+
'&.is-focused': _objectSpread({}, _buttons.defaultFocus),
|
48
48
|
'.is-float-label &': _objectSpread({
|
49
49
|
height: '45px'
|
50
50
|
}, activeFloatLabel)
|
@@ -1,37 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
4
|
|
7
|
-
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
8
|
-
|
9
|
-
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
10
|
-
|
11
|
-
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
12
|
-
|
13
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
14
|
-
|
15
|
-
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
16
|
-
|
17
|
-
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
18
|
-
|
19
|
-
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
20
|
-
|
21
5
|
_Object$defineProperty(exports, "__esModule", {
|
22
6
|
value: true
|
23
7
|
});
|
24
8
|
|
25
9
|
exports["default"] = void 0;
|
26
|
-
|
27
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
28
|
-
|
29
|
-
var _buttons = require("../variants/buttons");
|
30
|
-
|
31
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
32
|
-
|
33
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
34
|
-
|
35
10
|
var accordionTitle = {
|
36
11
|
display: 'inline-block !important',
|
37
12
|
overflowWrap: 'break-word',
|
@@ -73,9 +48,12 @@ var accordionGridHeader = {
|
|
73
48
|
color: 'neutral.10',
|
74
49
|
flexGrow: 1,
|
75
50
|
fontWeight: 700,
|
76
|
-
|
51
|
+
border: '1px solid transparent',
|
52
|
+
'&.is-focused': {
|
53
|
+
border: '1px solid',
|
54
|
+
borderColor: 'focus',
|
77
55
|
zIndex: '10'
|
78
|
-
}
|
56
|
+
},
|
79
57
|
minHeight: '64px',
|
80
58
|
'&.is-hovered': {
|
81
59
|
backgroundColor: 'accent.99'
|
@@ -77,7 +77,8 @@ var listItem = _objectSpread(_objectSpread({}, base), {}, {
|
|
77
77
|
'&.is-hovered': {
|
78
78
|
bg: 'white'
|
79
79
|
}
|
80
|
-
});
|
80
|
+
}); // the transparent border is included so that the content does not shift on hover.
|
81
|
+
|
81
82
|
|
82
83
|
var listViewItem = _objectSpread(_objectSpread({}, base), {}, {
|
83
84
|
padding: '0px 15px 0px 25px',
|
@@ -93,17 +94,18 @@ var listViewItem = _objectSpread(_objectSpread({}, base), {}, {
|
|
93
94
|
bg: 'white',
|
94
95
|
cursor: 'pointer'
|
95
96
|
},
|
96
|
-
'&.is-focused': {
|
97
|
-
boxShadow: 'inset 0 0 5px #5873bdbf'
|
98
|
-
},
|
99
97
|
'&.has-separator': {
|
100
98
|
borderBottom: '1px solid',
|
101
99
|
borderBottomColor: 'line.hairline'
|
100
|
+
},
|
101
|
+
'&.is-focused': {
|
102
|
+
boxShadow: '0 0 0 1px inset #D033FF'
|
102
103
|
}
|
103
104
|
});
|
104
105
|
|
105
106
|
var linkedListViewItem = _objectSpread(_objectSpread({}, listViewItem), {}, {
|
106
107
|
minHeight: '75px',
|
108
|
+
height: '76px',
|
107
109
|
'&.has-inset-separator': {
|
108
110
|
'&:after': {
|
109
111
|
content: '""',
|
@@ -113,6 +115,17 @@ var linkedListViewItem = _objectSpread(_objectSpread({}, listViewItem), {}, {
|
|
113
115
|
bottom: 0,
|
114
116
|
borderBottom: '1px solid',
|
115
117
|
borderBottomColor: 'line.hairline'
|
118
|
+
},
|
119
|
+
'&.is-focused': {
|
120
|
+
'&:after': {
|
121
|
+
content: '""',
|
122
|
+
position: 'absolute',
|
123
|
+
width: 'calc(100% - 43px)',
|
124
|
+
right: 0,
|
125
|
+
bottom: 0,
|
126
|
+
borderBottom: '1px solid',
|
127
|
+
borderBottomColor: 'focus'
|
128
|
+
}
|
116
129
|
}
|
117
130
|
}
|
118
131
|
});
|