@pingux/astro 2.87.0-alpha.2 → 2.87.0-alpha.3

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.
@@ -28,6 +28,7 @@ var _listbox = require("@react-aria/listbox");
28
28
  var _listboxLayout = require("listbox-layout");
29
29
  var _listboxVirtualizer = require("listbox-virtualizer");
30
30
  var _hooks = require("../../hooks");
31
+ var _Box = _interopRequireDefault(require("../Box"));
31
32
  var _Loader = _interopRequireDefault(require("../Loader"));
32
33
  var _index = require("./index");
33
34
  var _ListBoxContext = require("./ListBoxContext");
@@ -154,6 +155,8 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
154
155
  };
155
156
  return (0, _react2.jsx)(_ListBoxContext.ListBoxContext.Provider, {
156
157
  value: state
158
+ }, (0, _react2.jsx)(_Box["default"], {
159
+ variant: "listBox.container"
157
160
  }, (0, _react2.jsx)(_listboxVirtualizer.Virtualizer, (0, _extends2["default"])({}, (0, _reactAria.mergeProps)(listBoxProps, others), {
158
161
  autoFocus: hasAutoFocus,
159
162
  style: {
@@ -188,7 +191,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
188
191
  });
189
192
  }
190
193
  return null;
191
- }));
194
+ })));
192
195
  });
193
196
  var _default = ListBox;
194
197
  exports["default"] = _default;
@@ -1278,6 +1278,7 @@ declare const _default: {
1278
1278
  lineHeight: string;
1279
1279
  minHeight: string;
1280
1280
  fontFamily: string;
1281
+ cursor: string;
1281
1282
  '&.is-hovered': {
1282
1283
  color: string;
1283
1284
  };
@@ -1289,6 +1290,7 @@ declare const _default: {
1289
1290
  px: string;
1290
1291
  display: string;
1291
1292
  position: string;
1293
+ cursor: string;
1292
1294
  '&:before': {
1293
1295
  position: string;
1294
1296
  display: string;
@@ -1545,7 +1547,14 @@ declare const _default: {
1545
1547
  ml: string;
1546
1548
  };
1547
1549
  listBox: {
1550
+ container: {
1551
+ px: string;
1552
+ py: string;
1553
+ };
1548
1554
  option: {
1555
+ py: string;
1556
+ pl: string;
1557
+ pr: string;
1549
1558
  '&.is-focused': {
1550
1559
  color: string;
1551
1560
  bg: string;
@@ -10,7 +10,7 @@ var interactive = {
10
10
  borderRadius: '1rem',
11
11
  border: '1px solid',
12
12
  borderColor: 'gray-300',
13
- transition: 'border-color .15s ease-in',
13
+ transition: 'border-color .25s ease-in',
14
14
  '&.is-focused': {
15
15
  outline: '2px solid',
16
16
  outlineColor: 'focus',
@@ -14,6 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
14
14
  });
15
15
  exports.input = exports.fieldControlWrapper = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ var _text = require("./text");
17
18
  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; }
18
19
  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; }
19
20
  var defaultFocus = {
@@ -33,7 +34,8 @@ var input = {
33
34
  '&.is-focused': _objectSpread({}, defaultFocus),
34
35
  borderRadius: '4px',
35
36
  fontWeight: 1,
36
- height: '50px'
37
+ height: '50px',
38
+ '&::placeholder': _text.text.placeholder
37
39
  };
38
40
  exports.input = input;
39
41
  input.search = _objectSpread(_objectSpread({}, input), {}, {
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  lineHeight: string;
10
10
  minHeight: string;
11
11
  fontFamily: string;
12
+ cursor: string;
12
13
  '&.is-hovered': {
13
14
  color: string;
14
15
  };
@@ -20,6 +21,7 @@ declare const _default: {
20
21
  px: string;
21
22
  display: string;
22
23
  position: string;
24
+ cursor: string;
23
25
  '&:before': {
24
26
  position: string;
25
27
  display: string;
@@ -26,6 +26,7 @@ var nextGen = {
26
26
  lineHeight: '1.5',
27
27
  minHeight: '22.5px',
28
28
  fontFamily: 'standard',
29
+ cursor: 'pointer',
29
30
  '&.is-hovered': {
30
31
  color: 'blue-600'
31
32
  },
@@ -37,6 +38,7 @@ var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
37
38
  px: '0',
38
39
  display: 'block',
39
40
  position: 'relative',
41
+ cursor: 'pointer',
40
42
  '&:before': {
41
43
  position: 'absolute',
42
44
  display: 'block',
@@ -65,7 +65,7 @@ var text = _objectSpread({
65
65
  color: 'text.primary'
66
66
  },
67
67
  placeholder: {
68
- color: 'text.primary',
68
+ color: 'gray-500',
69
69
  fontWeight: 1
70
70
  },
71
71
  paragraph: {
@@ -410,7 +410,14 @@ declare const _default: {
410
410
  ml: string;
411
411
  };
412
412
  listBox: {
413
+ container: {
414
+ px: string;
415
+ py: string;
416
+ };
413
417
  option: {
418
+ py: string;
419
+ pl: string;
420
+ pr: string;
414
421
  '&.is-focused': {
415
422
  color: string;
416
423
  bg: string;
@@ -205,7 +205,14 @@ var menuTab = {
205
205
  ml: '0px !important'
206
206
  };
207
207
  var listBox = {
208
+ container: {
209
+ px: 'sm',
210
+ py: 'xs'
211
+ },
208
212
  option: {
213
+ py: '.75rem',
214
+ pl: '.75rem',
215
+ pr: '1rem',
209
216
  '&.is-focused': {
210
217
  color: 'text.primary',
211
218
  bg: 'gray-100'
@@ -20,6 +20,7 @@ import { useListBox } from '@react-aria/listbox';
20
20
  import { ListLayout } from 'listbox-layout';
21
21
  import { Virtualizer, VirtualizerItem } from 'listbox-virtualizer';
22
22
  import { useLocalOrForwardRef } from '../../hooks';
23
+ import Box from '../Box';
23
24
  import Loader from '../Loader';
24
25
  import { Option } from './index';
25
26
  import { ListBoxContext } from './ListBoxContext';
@@ -140,6 +141,8 @@ var ListBox = /*#__PURE__*/forwardRef(function (props, ref) {
140
141
  };
141
142
  return ___EmotionJSX(ListBoxContext.Provider, {
142
143
  value: state
144
+ }, ___EmotionJSX(Box, {
145
+ variant: "listBox.container"
143
146
  }, ___EmotionJSX(Virtualizer, _extends({}, mergeProps(listBoxProps, others), {
144
147
  autoFocus: hasAutoFocus,
145
148
  style: {
@@ -174,6 +177,6 @@ var ListBox = /*#__PURE__*/forwardRef(function (props, ref) {
174
177
  });
175
178
  }
176
179
  return null;
177
- }));
180
+ })));
178
181
  });
179
182
  export default ListBox;
@@ -3,7 +3,7 @@ var interactive = {
3
3
  borderRadius: '1rem',
4
4
  border: '1px solid',
5
5
  borderColor: 'gray-300',
6
- transition: 'border-color .15s ease-in',
6
+ transition: 'border-color .25s ease-in',
7
7
  '&.is-focused': {
8
8
  outline: '2px solid',
9
9
  outlineColor: 'focus',
@@ -9,6 +9,7 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
10
  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; }
11
11
  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) { _defineProperty(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; }
12
+ import { text } from './text';
12
13
  var defaultFocus = {
13
14
  boxShadow: '0 1px 1px rgba(0,0,0,.075), 0 0 0 .0625rem blue'
14
15
  };
@@ -26,7 +27,8 @@ export var input = {
26
27
  '&.is-focused': _objectSpread({}, defaultFocus),
27
28
  borderRadius: '4px',
28
29
  fontWeight: 1,
29
- height: '50px'
30
+ height: '50px',
31
+ '&::placeholder': text.placeholder
30
32
  };
31
33
  input.search = _objectSpread(_objectSpread({}, input), {}, {
32
34
  '&.is-disabled': _objectSpread(_objectSpread({}, readOnlyandDisabledStyles), {}, {
@@ -19,6 +19,7 @@ var nextGen = {
19
19
  lineHeight: '1.5',
20
20
  minHeight: '22.5px',
21
21
  fontFamily: 'standard',
22
+ cursor: 'pointer',
22
23
  '&.is-hovered': {
23
24
  color: 'blue-600'
24
25
  },
@@ -30,6 +31,7 @@ var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
30
31
  px: '0',
31
32
  display: 'block',
32
33
  position: 'relative',
34
+ cursor: 'pointer',
33
35
  '&:before': {
34
36
  position: 'absolute',
35
37
  display: 'block',
@@ -58,7 +58,7 @@ export var text = _objectSpread({
58
58
  color: 'text.primary'
59
59
  },
60
60
  placeholder: {
61
- color: 'text.primary',
61
+ color: 'gray-500',
62
62
  fontWeight: 1
63
63
  },
64
64
  paragraph: {
@@ -196,7 +196,14 @@ var menuTab = {
196
196
  ml: '0px !important'
197
197
  };
198
198
  var listBox = {
199
+ container: {
200
+ px: 'sm',
201
+ py: 'xs'
202
+ },
199
203
  option: {
204
+ py: '.75rem',
205
+ pl: '.75rem',
206
+ pr: '1rem',
200
207
  '&.is-focused': {
201
208
  color: 'text.primary',
202
209
  bg: 'gray-100'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.87.0-alpha.2",
3
+ "version": "2.87.0-alpha.3",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",