@pingux/astro 2.79.0-alpha.0 → 2.79.0-alpha.2

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.
@@ -81,7 +81,8 @@ var ComboBoxField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
81
81
  inputValue: inputValue,
82
82
  menuTrigger: menuTrigger,
83
83
  shouldFlip: !isNotFlippable,
84
- direction: direction
84
+ direction: direction,
85
+ label: 'default'
85
86
  }, nonAriaProps);
86
87
  var popoverRef = (0, _react.useRef)();
87
88
  var buttonRef = (0, _react.useRef)();
@@ -400,12 +400,10 @@ var EditRow = function EditRow(props) {
400
400
  id: "leftInputField ".concat(index),
401
401
  key: "leftInputField ".concat(index),
402
402
  labelProps: {
403
- 'aria-label': 'selection field',
404
403
  mb: 0
405
404
  },
406
405
  "aria-label": "selection field",
407
406
  controlProps: {
408
- 'aria-label': 'selection field',
409
407
  sx: editSx.comboBoxField
410
408
  },
411
409
  containerProps: {
@@ -427,12 +425,10 @@ var EditRow = function EditRow(props) {
427
425
  id: "rightInputField ".concat(index),
428
426
  key: "rightInputField ".concat(index),
429
427
  labelProps: {
430
- 'aria-label': 'selection field',
431
428
  mb: 0
432
429
  },
433
430
  "aria-label": "selection field",
434
431
  controlProps: {
435
- 'aria-label': 'selection field',
436
432
  sx: editSx.comboBoxField
437
433
  },
438
434
  containerProps: {
@@ -130,8 +130,7 @@ var Default = function Default() {
130
130
  onInputChange: inputHandler,
131
131
  onSelectionChange: selectionHandler,
132
132
  menuTrigger: "focus",
133
- "aria-labelledby": "group-label",
134
- label: " "
133
+ "aria-labelledby": "group-label"
135
134
  }, function (item) {
136
135
  var _context3, _context4;
137
136
  return (0, _react2.jsx)(_index.Item, {
@@ -640,6 +640,58 @@ declare const _default: {
640
640
  };
641
641
  };
642
642
  };
643
+ nextGen: {
644
+ path: {
645
+ fill: string;
646
+ };
647
+ '&.is-hovered': {
648
+ backgroundColor: string;
649
+ path: {
650
+ fill: string;
651
+ };
652
+ };
653
+ '&.is-pressed': {
654
+ backgroundColor: string;
655
+ borderColor: string;
656
+ path: {
657
+ fill: string;
658
+ };
659
+ };
660
+ maxHeight: string;
661
+ maxWidth: string;
662
+ width: string;
663
+ p: string;
664
+ display: string;
665
+ alignItems: string;
666
+ justifyContent: string;
667
+ backgroundColor: string;
668
+ borderColor: string;
669
+ color: string;
670
+ minWidth: string;
671
+ cursor: string;
672
+ fontFamily: string;
673
+ fontSize: string;
674
+ flexGrow: string;
675
+ fontWeight: number;
676
+ textAlign: string;
677
+ verticalAlign: string;
678
+ lineHeight: number;
679
+ borderRadius: string;
680
+ border: string;
681
+ px: string;
682
+ py: string;
683
+ height: string;
684
+ '&.is-disabled': {
685
+ opacity: number;
686
+ };
687
+ '&.is-focused': {
688
+ outline: string;
689
+ outlineColor: string;
690
+ outlineOffset: string;
691
+ };
692
+ transition: string;
693
+ outline: string;
694
+ };
643
695
  modalCloseButton: {
644
696
  position: string;
645
697
  top: number;
@@ -886,6 +938,15 @@ declare const _default: {
886
938
  };
887
939
  };
888
940
  };
941
+ fontSizes: {
942
+ xs: number;
943
+ sm: number;
944
+ md: string;
945
+ lg: string;
946
+ xl: string;
947
+ xx: string;
948
+ xxx: string;
949
+ };
889
950
  fontWeights: {
890
951
  [-1]: number;
891
952
  0: number;
@@ -897,6 +958,43 @@ declare const _default: {
897
958
  body: string;
898
959
  };
899
960
  text: {
961
+ h1: {
962
+ fontSize: string;
963
+ fontWeight: number;
964
+ color: string;
965
+ fontFamily: string;
966
+ };
967
+ h2: {
968
+ fontSize: string;
969
+ fontWeight: number;
970
+ color: string;
971
+ fontFamily: string;
972
+ };
973
+ h3: {
974
+ fontSize: string;
975
+ fontWeight: number;
976
+ color: string;
977
+ fontFamily: string;
978
+ };
979
+ h4: {
980
+ fontSize: string;
981
+ fontWeight: number;
982
+ color: string;
983
+ fontFamily: string;
984
+ };
985
+ h5: {
986
+ fontSize: string;
987
+ fontWeight: number;
988
+ color: string;
989
+ fontFamily: string;
990
+ };
991
+ h6: {
992
+ textTransform: string;
993
+ color: string;
994
+ fontFamily: string;
995
+ fontWeight: number;
996
+ fontSize: string;
997
+ };
900
998
  modalTitle: {
901
999
  fontSize: string;
902
1000
  fontWeight: string;
@@ -34,6 +34,7 @@ var nextGenTheme = {
34
34
  colors: _colors["default"],
35
35
  buttons: _button["default"],
36
36
  forms: _forms["default"],
37
+ fontSizes: _text2.fontSizes,
37
38
  fontWeights: _text2.fontWeights,
38
39
  lineHeights: {
39
40
  body: '1.5'
@@ -1,10 +1,11 @@
1
1
  export declare const fontSizes: {
2
2
  xs: number;
3
3
  sm: number;
4
- md: number;
5
- lg: number;
6
- xl: number;
7
- xx: number;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ xx: string;
8
+ xxx: string;
8
9
  };
9
10
  export declare const fontWeights: {
10
11
  [-1]: number;
@@ -16,10 +16,11 @@ var getFontSize = function getFontSize(major) {
16
16
  var fontSizes = {
17
17
  'xs': getFontSize(-2),
18
18
  'sm': getFontSize(-1),
19
- 'md': getFontSize(0),
20
- 'lg': getFontSize(1),
21
- 'xl': getFontSize(2),
22
- 'xx': getFontSize(3)
19
+ 'md': '15px',
20
+ 'lg': '18.75px',
21
+ 'xl': '22.5px',
22
+ 'xx': '26.25px',
23
+ 'xxx': '33.75px'
23
24
  };
24
25
  exports.fontSizes = fontSizes;
25
26
  var fontWeights = (_fontWeights = {}, (0, _defineProperty2["default"])(_fontWeights, -1, 400), (0, _defineProperty2["default"])(_fontWeights, 0, 400), (0, _defineProperty2["default"])(_fontWeights, 1, 400), (0, _defineProperty2["default"])(_fontWeights, 2, 600), (0, _defineProperty2["default"])(_fontWeights, 3, 600), _fontWeights);
@@ -444,6 +444,58 @@ declare const buttons: {
444
444
  };
445
445
  };
446
446
  };
447
+ nextGen: {
448
+ path: {
449
+ fill: string;
450
+ };
451
+ '&.is-hovered': {
452
+ backgroundColor: string;
453
+ path: {
454
+ fill: string;
455
+ };
456
+ };
457
+ '&.is-pressed': {
458
+ backgroundColor: string;
459
+ borderColor: string;
460
+ path: {
461
+ fill: string;
462
+ };
463
+ };
464
+ maxHeight: string;
465
+ maxWidth: string;
466
+ width: string;
467
+ p: string;
468
+ display: string;
469
+ alignItems: string;
470
+ justifyContent: string;
471
+ backgroundColor: string;
472
+ borderColor: string;
473
+ color: string;
474
+ minWidth: string;
475
+ cursor: string;
476
+ fontFamily: string;
477
+ fontSize: string;
478
+ flexGrow: string;
479
+ fontWeight: number;
480
+ textAlign: string;
481
+ verticalAlign: string;
482
+ lineHeight: number;
483
+ borderRadius: string;
484
+ border: string;
485
+ px: string;
486
+ py: string;
487
+ height: string;
488
+ '&.is-disabled': {
489
+ opacity: number;
490
+ };
491
+ '&.is-focused': {
492
+ outline: string;
493
+ outlineColor: string;
494
+ outlineOffset: string;
495
+ };
496
+ transition: string;
497
+ outline: string;
498
+ };
447
499
  modalCloseButton: {
448
500
  position: string;
449
501
  top: number;
@@ -193,6 +193,31 @@ var modalCloseButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
193
193
  });
194
194
  var iconButtons = {
195
195
  base: _objectSpread({}, baseIconButton),
196
+ nextGen: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
197
+ path: {
198
+ fill: 'blue'
199
+ },
200
+ '&.is-hovered': {
201
+ backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
202
+ path: {
203
+ fill: 'white'
204
+ }
205
+ },
206
+ '&.is-pressed': {
207
+ backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
208
+ borderColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
209
+ path: {
210
+ fill: 'white'
211
+ }
212
+ },
213
+ maxHeight: '48.5px',
214
+ maxWidth: '48.5px',
215
+ width: '48.5px',
216
+ p: 'sm',
217
+ display: 'inline-flex',
218
+ alignItems: 'center',
219
+ justifyContent: 'center'
220
+ }),
196
221
  modalCloseButton: modalCloseButton,
197
222
  badge: {
198
223
  deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
@@ -1,4 +1,41 @@
1
1
  export declare const text: {
2
+ h1: {
3
+ fontSize: string;
4
+ fontWeight: number;
5
+ color: string;
6
+ fontFamily: string;
7
+ };
8
+ h2: {
9
+ fontSize: string;
10
+ fontWeight: number;
11
+ color: string;
12
+ fontFamily: string;
13
+ };
14
+ h3: {
15
+ fontSize: string;
16
+ fontWeight: number;
17
+ color: string;
18
+ fontFamily: string;
19
+ };
20
+ h4: {
21
+ fontSize: string;
22
+ fontWeight: number;
23
+ color: string;
24
+ fontFamily: string;
25
+ };
26
+ h5: {
27
+ fontSize: string;
28
+ fontWeight: number;
29
+ color: string;
30
+ fontFamily: string;
31
+ };
32
+ h6: {
33
+ textTransform: string;
34
+ color: string;
35
+ fontFamily: string;
36
+ fontWeight: number;
37
+ fontSize: string;
38
+ };
2
39
  modalTitle: {
3
40
  fontSize: string;
4
41
  fontWeight: string;
@@ -1,11 +1,61 @@
1
1
  "use strict";
2
2
 
3
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
5
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
7
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
8
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
9
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
3
10
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
11
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
12
  _Object$defineProperty(exports, "__esModule", {
5
13
  value: true
6
14
  });
7
15
  exports.text = void 0;
8
- var text = {
16
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ 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
+ 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
+ var hTags = {
20
+ h1: {
21
+ fontSize: 'xxx',
22
+ fontWeight: 2,
23
+ color: 'text.primary',
24
+ fontFamily: 'standard'
25
+ },
26
+ h2: {
27
+ fontSize: 'xx',
28
+ fontWeight: 2,
29
+ color: 'text.primary',
30
+ fontFamily: 'standard'
31
+ },
32
+ h3: {
33
+ fontSize: 'xl',
34
+ fontWeight: 2,
35
+ color: 'text.primary',
36
+ fontFamily: 'standard'
37
+ },
38
+ h4: {
39
+ fontSize: 'lg',
40
+ fontWeight: 2,
41
+ color: 'text.primary',
42
+ fontFamily: 'standard'
43
+ },
44
+ h5: {
45
+ fontSize: 'md',
46
+ fontWeight: 2,
47
+ color: 'text.primary',
48
+ fontFamily: 'standard'
49
+ },
50
+ h6: {
51
+ textTransform: 'uppercase',
52
+ color: 'text.primary',
53
+ fontFamily: 'standard',
54
+ fontWeight: 1,
55
+ fontSize: 'sm'
56
+ }
57
+ };
58
+ var text = _objectSpread({
9
59
  modalTitle: {
10
60
  fontSize: '20px',
11
61
  fontWeight: '2',
@@ -23,5 +73,5 @@ var text = {
23
73
  listViewItemText: {
24
74
  fontWeight: 2
25
75
  }
26
- };
76
+ }, hTags);
27
77
  exports.text = text;
@@ -70,7 +70,8 @@ var ComboBoxField = /*#__PURE__*/forwardRef(function (props, ref) {
70
70
  inputValue: inputValue,
71
71
  menuTrigger: menuTrigger,
72
72
  shouldFlip: !isNotFlippable,
73
- direction: direction
73
+ direction: direction,
74
+ label: 'default'
74
75
  }, nonAriaProps);
75
76
  var popoverRef = useRef();
76
77
  var buttonRef = useRef();
@@ -382,12 +382,10 @@ export var EditRow = function EditRow(props) {
382
382
  id: "leftInputField ".concat(index),
383
383
  key: "leftInputField ".concat(index),
384
384
  labelProps: {
385
- 'aria-label': 'selection field',
386
385
  mb: 0
387
386
  },
388
387
  "aria-label": "selection field",
389
388
  controlProps: {
390
- 'aria-label': 'selection field',
391
389
  sx: editSx.comboBoxField
392
390
  },
393
391
  containerProps: {
@@ -409,12 +407,10 @@ export var EditRow = function EditRow(props) {
409
407
  id: "rightInputField ".concat(index),
410
408
  key: "rightInputField ".concat(index),
411
409
  labelProps: {
412
- 'aria-label': 'selection field',
413
410
  mb: 0
414
411
  },
415
412
  "aria-label": "selection field",
416
413
  controlProps: {
417
- 'aria-label': 'selection field',
418
414
  sx: editSx.comboBoxField
419
415
  },
420
416
  containerProps: {
@@ -116,8 +116,7 @@ export var Default = function Default() {
116
116
  onInputChange: inputHandler,
117
117
  onSelectionChange: selectionHandler,
118
118
  menuTrigger: "focus",
119
- "aria-labelledby": "group-label",
120
- label: " "
119
+ "aria-labelledby": "group-label"
121
120
  }, function (item) {
122
121
  var _context3, _context4;
123
122
  return ___EmotionJSX(Item, {
@@ -16,13 +16,14 @@ import buttons from './variants/button';
16
16
  import { text as newText } from './variants/text';
17
17
  import variants, { badges } from './variants/variants';
18
18
  import forms from './forms';
19
- import { fontWeights } from './text';
19
+ import { fontSizes, fontWeights } from './text';
20
20
  import './open_sans.css';
21
21
  var nextGenTheme = {
22
22
  name: 'Next Gen',
23
23
  colors: colors,
24
24
  buttons: buttons,
25
25
  forms: forms,
26
+ fontSizes: fontSizes,
26
27
  fontWeights: fontWeights,
27
28
  lineHeights: {
28
29
  body: '1.5'
@@ -8,9 +8,10 @@ var getFontSize = function getFontSize(major) {
8
8
  export var fontSizes = {
9
9
  'xs': getFontSize(-2),
10
10
  'sm': getFontSize(-1),
11
- 'md': getFontSize(0),
12
- 'lg': getFontSize(1),
13
- 'xl': getFontSize(2),
14
- 'xx': getFontSize(3)
11
+ 'md': '15px',
12
+ 'lg': '18.75px',
13
+ 'xl': '22.5px',
14
+ 'xx': '26.25px',
15
+ 'xxx': '33.75px'
15
16
  };
16
17
  export var fontWeights = (_fontWeights = {}, _defineProperty(_fontWeights, -1, 400), _defineProperty(_fontWeights, 0, 400), _defineProperty(_fontWeights, 1, 400), _defineProperty(_fontWeights, 2, 600), _defineProperty(_fontWeights, 3, 600), _fontWeights);
@@ -186,6 +186,31 @@ var modalCloseButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
186
186
  });
187
187
  var iconButtons = {
188
188
  base: _objectSpread({}, baseIconButton),
189
+ nextGen: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
190
+ path: {
191
+ fill: 'blue'
192
+ },
193
+ '&.is-hovered': {
194
+ backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
195
+ path: {
196
+ fill: 'white'
197
+ }
198
+ },
199
+ '&.is-pressed': {
200
+ backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
201
+ borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
202
+ path: {
203
+ fill: 'white'
204
+ }
205
+ },
206
+ maxHeight: '48.5px',
207
+ maxWidth: '48.5px',
208
+ width: '48.5px',
209
+ p: 'sm',
210
+ display: 'inline-flex',
211
+ alignItems: 'center',
212
+ justifyContent: 'center'
213
+ }),
189
214
  modalCloseButton: modalCloseButton,
190
215
  badge: {
191
216
  deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
@@ -1,4 +1,54 @@
1
- export var text = {
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
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
+ 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
+ var hTags = {
13
+ h1: {
14
+ fontSize: 'xxx',
15
+ fontWeight: 2,
16
+ color: 'text.primary',
17
+ fontFamily: 'standard'
18
+ },
19
+ h2: {
20
+ fontSize: 'xx',
21
+ fontWeight: 2,
22
+ color: 'text.primary',
23
+ fontFamily: 'standard'
24
+ },
25
+ h3: {
26
+ fontSize: 'xl',
27
+ fontWeight: 2,
28
+ color: 'text.primary',
29
+ fontFamily: 'standard'
30
+ },
31
+ h4: {
32
+ fontSize: 'lg',
33
+ fontWeight: 2,
34
+ color: 'text.primary',
35
+ fontFamily: 'standard'
36
+ },
37
+ h5: {
38
+ fontSize: 'md',
39
+ fontWeight: 2,
40
+ color: 'text.primary',
41
+ fontFamily: 'standard'
42
+ },
43
+ h6: {
44
+ textTransform: 'uppercase',
45
+ color: 'text.primary',
46
+ fontFamily: 'standard',
47
+ fontWeight: 1,
48
+ fontSize: 'sm'
49
+ }
50
+ };
51
+ export var text = _objectSpread({
2
52
  modalTitle: {
3
53
  fontSize: '20px',
4
54
  fontWeight: '2',
@@ -16,4 +66,4 @@ export var text = {
16
66
  listViewItemText: {
17
67
  fontWeight: 2
18
68
  }
19
- };
69
+ }, hTags);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.79.0-alpha.0",
3
+ "version": "2.79.0-alpha.2",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",