@pingux/astro 2.116.1-alpha.0 → 2.116.1-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.
@@ -8,6 +8,7 @@ _Object$defineProperty(exports, "__esModule", {
8
8
  exports["default"] = exports.Default = void 0;
9
9
  var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectDestructuringEmpty"));
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
11
+ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
11
12
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
12
13
  var _react = _interopRequireDefault(require("react"));
13
14
  var _storybookAddonDesigns = require("storybook-addon-designs");
@@ -18,6 +19,7 @@ var _htmlElements = require("../../utils/devUtils/constants/htmlElements");
18
19
  var _Link = _interopRequireDefault(require("./Link.mdx"));
19
20
  var _Link2 = _interopRequireDefault(require("./Link.styles"));
20
21
  var _react2 = require("@emotion/react");
22
+ var _context;
21
23
  var _default = {
22
24
  title: 'Components/Link',
23
25
  component: _index.Link,
@@ -55,7 +57,7 @@ var _default = {
55
57
  variant: {
56
58
  control: {
57
59
  type: 'select',
58
- options: (0, _keys["default"])(_Link2["default"])
60
+ options: (0, _concat["default"])(_context = []).call(_context, (0, _keys["default"])(_Link2["default"]), ['button'])
59
61
  }
60
62
  }
61
63
  },
@@ -1827,6 +1827,88 @@ declare const _default: {
1827
1827
  color: string;
1828
1828
  };
1829
1829
  };
1830
+ button: {
1831
+ textDecoration: string;
1832
+ backgroundColor: string;
1833
+ borderColor: string;
1834
+ color: string;
1835
+ '&.is-pressed': {
1836
+ backgroundColor: string;
1837
+ borderColor: string;
1838
+ color: string;
1839
+ };
1840
+ '&.is-hovered': {
1841
+ backgroundColor: string;
1842
+ color: string;
1843
+ };
1844
+ alignItems: string;
1845
+ justifyContent: string;
1846
+ minWidth: string;
1847
+ cursor: string;
1848
+ display: string;
1849
+ maxWidth: string;
1850
+ fontFamily: string;
1851
+ fontSize: string;
1852
+ flexGrow: string;
1853
+ fontWeight: number;
1854
+ textAlign: string;
1855
+ verticalAlign: string;
1856
+ lineHeight: number;
1857
+ borderRadius: string;
1858
+ border: string;
1859
+ px: string;
1860
+ py: string;
1861
+ height: string;
1862
+ '&.is-disabled': {
1863
+ opacity: number;
1864
+ };
1865
+ '&.is-focused': {
1866
+ outline: string;
1867
+ outlineColor: string;
1868
+ outlineOffset: string;
1869
+ };
1870
+ transition: string;
1871
+ };
1872
+ primaryButton: {
1873
+ textDecoration: string;
1874
+ color: string;
1875
+ backgroundColor: string;
1876
+ borderColor: string;
1877
+ '&.is-pressed': {
1878
+ backgroundColor: string;
1879
+ borderColor: string;
1880
+ };
1881
+ '&.is-hovered': {
1882
+ backgroundColor: string;
1883
+ };
1884
+ alignItems: string;
1885
+ justifyContent: string;
1886
+ minWidth: string;
1887
+ cursor: string;
1888
+ display: string;
1889
+ maxWidth: string;
1890
+ fontFamily: string;
1891
+ fontSize: string;
1892
+ flexGrow: string;
1893
+ fontWeight: number;
1894
+ textAlign: string;
1895
+ verticalAlign: string;
1896
+ lineHeight: number;
1897
+ borderRadius: string;
1898
+ border: string;
1899
+ px: string;
1900
+ py: string;
1901
+ height: string;
1902
+ '&.is-disabled': {
1903
+ opacity: number;
1904
+ };
1905
+ '&.is-focused': {
1906
+ outline: string;
1907
+ outlineColor: string;
1908
+ outlineOffset: string;
1909
+ };
1910
+ transition: string;
1911
+ };
1830
1912
  };
1831
1913
  cards: {
1832
1914
  interactive: {
@@ -147,5 +147,87 @@ declare const _default: {
147
147
  color: string;
148
148
  };
149
149
  };
150
+ button: {
151
+ textDecoration: string;
152
+ backgroundColor: string;
153
+ borderColor: string;
154
+ color: string;
155
+ '&.is-pressed': {
156
+ backgroundColor: string;
157
+ borderColor: string;
158
+ color: string;
159
+ };
160
+ '&.is-hovered': {
161
+ backgroundColor: string;
162
+ color: string;
163
+ };
164
+ alignItems: string;
165
+ justifyContent: string;
166
+ minWidth: string;
167
+ cursor: string;
168
+ display: string;
169
+ maxWidth: string;
170
+ fontFamily: string;
171
+ fontSize: string;
172
+ flexGrow: string;
173
+ fontWeight: number;
174
+ textAlign: string;
175
+ verticalAlign: string;
176
+ lineHeight: number;
177
+ borderRadius: string;
178
+ border: string;
179
+ px: string;
180
+ py: string;
181
+ height: string;
182
+ '&.is-disabled': {
183
+ opacity: number;
184
+ };
185
+ '&.is-focused': {
186
+ outline: string;
187
+ outlineColor: string;
188
+ outlineOffset: string;
189
+ };
190
+ transition: string;
191
+ };
192
+ primaryButton: {
193
+ textDecoration: string;
194
+ color: string;
195
+ backgroundColor: string;
196
+ borderColor: string;
197
+ '&.is-pressed': {
198
+ backgroundColor: string;
199
+ borderColor: string;
200
+ };
201
+ '&.is-hovered': {
202
+ backgroundColor: string;
203
+ };
204
+ alignItems: string;
205
+ justifyContent: string;
206
+ minWidth: string;
207
+ cursor: string;
208
+ display: string;
209
+ maxWidth: string;
210
+ fontFamily: string;
211
+ fontSize: string;
212
+ flexGrow: string;
213
+ fontWeight: number;
214
+ textAlign: string;
215
+ verticalAlign: string;
216
+ lineHeight: number;
217
+ borderRadius: string;
218
+ border: string;
219
+ px: string;
220
+ py: string;
221
+ height: string;
222
+ '&.is-disabled': {
223
+ opacity: number;
224
+ };
225
+ '&.is-focused': {
226
+ outline: string;
227
+ outlineColor: string;
228
+ outlineOffset: string;
229
+ };
230
+ transition: string;
231
+ };
150
232
  };
151
233
  export default _default;
@@ -14,6 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
14
14
  });
15
15
  exports["default"] = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ var _button = _interopRequireDefault(require("./button"));
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 nextGen = {
@@ -62,11 +63,19 @@ var footerLinks = _objectSpread({}, sideNav);
62
63
  var footerHeader = _objectSpread(_objectSpread({}, footerLinks), {}, {
63
64
  fontWeight: '2'
64
65
  });
66
+ var button = _objectSpread(_objectSpread({}, _button["default"]["default"]), {}, {
67
+ textDecoration: 'none'
68
+ });
69
+ var primaryButton = _objectSpread(_objectSpread({}, _button["default"].primary), {}, {
70
+ textDecoration: 'none'
71
+ });
65
72
  var _default = {
66
73
  nextGen: nextGen,
67
74
  onyx: onyx,
68
75
  sideNav: sideNav,
69
76
  footerLinks: footerLinks,
70
- footerHeader: footerHeader
77
+ footerHeader: footerHeader,
78
+ button: button,
79
+ primaryButton: primaryButton
71
80
  };
72
81
  exports["default"] = _default;
@@ -1,5 +1,7 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
2
2
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
3
+ var _context;
4
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
3
5
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
4
6
  import React from 'react';
5
7
  import { withDesign } from 'storybook-addon-designs';
@@ -47,7 +49,7 @@ export default {
47
49
  variant: {
48
50
  control: {
49
51
  type: 'select',
50
- options: _Object$keys(variants)
52
+ options: _concatInstanceProperty(_context = []).call(_context, _Object$keys(variants), ['button'])
51
53
  }
52
54
  }
53
55
  },
@@ -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 buttons from './button';
12
13
  var nextGen = {
13
14
  color: 'gray-800',
14
15
  fontSize: 'md',
@@ -55,10 +56,18 @@ var footerLinks = _objectSpread({}, sideNav);
55
56
  var footerHeader = _objectSpread(_objectSpread({}, footerLinks), {}, {
56
57
  fontWeight: '2'
57
58
  });
59
+ var button = _objectSpread(_objectSpread({}, buttons["default"]), {}, {
60
+ textDecoration: 'none'
61
+ });
62
+ var primaryButton = _objectSpread(_objectSpread({}, buttons.primary), {}, {
63
+ textDecoration: 'none'
64
+ });
58
65
  export default {
59
66
  nextGen: nextGen,
60
67
  onyx: onyx,
61
68
  sideNav: sideNav,
62
69
  footerLinks: footerLinks,
63
- footerHeader: footerHeader
70
+ footerHeader: footerHeader,
71
+ button: button,
72
+ primaryButton: primaryButton
64
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.116.1-alpha.0",
3
+ "version": "2.116.1-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",