@pingux/astro 2.20.0-alpha.6 → 2.20.0-alpha.7

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.
@@ -14,12 +14,15 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _countriesList = require("countries-list");
17
+ var _storybookAddonDesigns = require("storybook-addon-designs");
17
18
  var _index = require("../index");
19
+ var _figmaLinks = require("../utils/designUtils/figmaLinks");
18
20
  var _react2 = require("@emotion/react");
19
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
23
  var _default = {
22
- title: 'Recipes/Country Picker'
24
+ title: 'Recipes/Country Picker',
25
+ decorators: [_storybookAddonDesigns.withDesign]
23
26
  };
24
27
  exports["default"] = _default;
25
28
  var validatePhoneNumber = function validatePhoneNumber(str) {
@@ -132,4 +135,10 @@ var Default = function Default() {
132
135
  value: phoneNumber
133
136
  })));
134
137
  };
135
- exports.Default = Default;
138
+ exports.Default = Default;
139
+ Default.parameters = {
140
+ design: {
141
+ type: 'figma',
142
+ url: _figmaLinks.FIGMA_LINKS.countryPicker["default"]
143
+ }
144
+ };
@@ -50,6 +50,9 @@ var FIGMA_LINKS = {
50
50
  copyText: {
51
51
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=218-1442&t=8Wwd3tIBh3GEjCJB-0'
52
52
  },
53
+ countryPicker: {
54
+ "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=4568-7532&mode=design&t=eSfQYHRFNPf37J4C-0'
55
+ },
53
56
  helpHint: {
54
57
  "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=0%3A4534&t=We3h7LaaFJQnxdSy-1',
55
58
  withLink: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=28958%3A40081&mode=design&t=WmSYPx1hR8kxFiXf-1'
@@ -3,10 +3,13 @@ import _Object$entries from "@babel/runtime-corejs3/core-js-stable/object/entrie
3
3
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
4
4
  import React, { useState } from 'react';
5
5
  import { countries as countriesObj } from 'countries-list';
6
+ import { withDesign } from 'storybook-addon-designs';
6
7
  import { Box, ComboBoxField, Input, Item } from '../index';
8
+ import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks';
7
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
10
  export default {
9
- title: 'Recipes/Country Picker'
11
+ title: 'Recipes/Country Picker',
12
+ decorators: [withDesign]
10
13
  };
11
14
  var validatePhoneNumber = function validatePhoneNumber(str) {
12
15
  var reg = /^$|^[\d\-(\d)\s.]+$|^\+/g;
@@ -117,4 +120,10 @@ export var Default = function Default() {
117
120
  onChange: onPhoneNumberValueChange,
118
121
  value: phoneNumber
119
122
  })));
123
+ };
124
+ Default.parameters = {
125
+ design: {
126
+ type: 'figma',
127
+ url: FIGMA_LINKS.countryPicker["default"]
128
+ }
120
129
  };
@@ -43,6 +43,9 @@ export var FIGMA_LINKS = {
43
43
  copyText: {
44
44
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=218-1442&t=8Wwd3tIBh3GEjCJB-0'
45
45
  },
46
+ countryPicker: {
47
+ "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=4568-7532&mode=design&t=eSfQYHRFNPf37J4C-0'
48
+ },
46
49
  helpHint: {
47
50
  "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=0%3A4534&t=We3h7LaaFJQnxdSy-1',
48
51
  withLink: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=28958%3A40081&mode=design&t=WmSYPx1hR8kxFiXf-1'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.20.0-alpha.6",
3
+ "version": "2.20.0-alpha.7",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",