@pingux/astro 2.100.0-alpha.0 → 2.100.0-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.
@@ -5,6 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.checkbox = void 0;
8
+ var _colors = require("../../styles/colors");
8
9
  // Styles for default checkbox and variants go here.
9
10
 
10
11
  // Default checkbox
@@ -14,10 +15,7 @@ var checkbox = {
14
15
  bg: 'transparent'
15
16
  },
16
17
  'input ~ &.is-focused': {
17
- boxShadow: 'none',
18
- outline: '1px solid',
19
- outlineColor: 'focus',
20
- outlineOffset: '0px'
18
+ boxShadow: "inset 0px 0px 0px 1px ".concat(_colors.focus)
21
19
  },
22
20
  'input ~ &.is-disabled': {
23
21
  color: 'neutral.80'
@@ -4,9 +4,7 @@ export declare const checkbox: {
4
4
  color: string;
5
5
  mr: string;
6
6
  'input ~ &.is-focused': {
7
- outline: string;
8
- outlineColor: string;
9
- outlineOffset: string;
7
+ boxShadow: string;
10
8
  };
11
9
  };
12
10
  export declare const select: {
@@ -122,9 +120,7 @@ declare const _default: {
122
120
  color: string;
123
121
  mr: string;
124
122
  'input ~ &.is-focused': {
125
- outline: string;
126
- outlineColor: string;
127
- outlineOffset: string;
123
+ boxShadow: string;
128
124
  };
129
125
  };
130
126
  comboBox: {
@@ -14,6 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
14
14
  });
15
15
  exports.select = exports.search = exports.radio = exports.numberField = exports["default"] = exports.comboBox = exports.checkbox = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ var _colors = _interopRequireDefault(require("./colors/colors"));
17
18
  var _input = require("./variants/input");
18
19
  var _label = require("./variants/label");
19
20
  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; }
@@ -24,9 +25,7 @@ var checkbox = {
24
25
  color: 'text.secondary',
25
26
  mr: '8px',
26
27
  'input ~ &.is-focused': {
27
- outline: '1px solid',
28
- outlineColor: '#1a73e8',
29
- outlineOffset: '-3px'
28
+ boxShadow: "inset 0px 0px 0px 1px ".concat(_colors["default"].focus)
30
29
  }
31
30
  };
32
31
  exports.checkbox = checkbox;
@@ -904,9 +904,7 @@ declare const _default: {
904
904
  color: string;
905
905
  mr: string;
906
906
  'input ~ &.is-focused': {
907
- outline: string;
908
- outlineColor: string;
909
- outlineOffset: string;
907
+ boxShadow: string;
910
908
  };
911
909
  };
912
910
  comboBox: {
@@ -1,3 +1,5 @@
1
+ import { focus } from '../../styles/colors';
2
+
1
3
  // Styles for default checkbox and variants go here.
2
4
 
3
5
  // Default checkbox
@@ -7,10 +9,7 @@ export var checkbox = {
7
9
  bg: 'transparent'
8
10
  },
9
11
  'input ~ &.is-focused': {
10
- boxShadow: 'none',
11
- outline: '1px solid',
12
- outlineColor: 'focus',
13
- outlineOffset: '0px'
12
+ boxShadow: "inset 0px 0px 0px 1px ".concat(focus)
14
13
  },
15
14
  'input ~ &.is-disabled': {
16
15
  color: 'neutral.80'
@@ -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 colors from './colors/colors';
12
13
  import { fieldControlWrapper, input } from './variants/input';
13
14
  import { label } from './variants/label';
14
15
  export var checkbox = {
@@ -17,9 +18,7 @@ export var checkbox = {
17
18
  color: 'text.secondary',
18
19
  mr: '8px',
19
20
  'input ~ &.is-focused': {
20
- outline: '1px solid',
21
- outlineColor: '#1a73e8',
22
- outlineOffset: '-3px'
21
+ boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
23
22
  }
24
23
  };
25
24
  export var select = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.100.0-alpha.0",
3
+ "version": "2.100.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",