@pingux/astro 2.28.0-alpha.2 → 2.28.0

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,7 +8,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
8
8
  _Object$defineProperty(exports, "__esModule", {
9
9
  value: true
10
10
  });
11
- exports["default"] = exports.UncontrolledExpanded = exports.Multiple = exports.DisabledItems = exports.DifferentLevels = exports.Default = exports.CustomPresentation = exports.ControlledExpanded = void 0;
11
+ exports["default"] = exports.UncontrolledExpanded = exports.Multiple = exports.DisabledState = exports.DifferentLevels = exports.Default = exports.CustomPresentation = exports.ControlledExpanded = void 0;
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
14
14
  var _react = _interopRequireWildcard(require("react"));
@@ -41,16 +41,16 @@ var itemArray = [{
41
41
  }];
42
42
  var itemArrayDisabled = [{
43
43
  key: 't1',
44
- label: 'Disabled Accordion',
44
+ label: 'Accordion Disabled',
45
45
  children: (0, _react2.jsx)(_index.Text, null, "Hi")
46
46
  }, {
47
47
  key: 't2',
48
- label: 'Accordion',
49
- children: 'Child Renders Here'
48
+ label: 'Accordion Active',
49
+ children: (0, _react2.jsx)(_index.Text, null, "Hi")
50
50
  }, {
51
51
  key: 't3',
52
- label: 'Disabled Accordion',
53
- children: 'Child Renders Here'
52
+ label: 'Accordion Disabled',
53
+ children: (0, _react2.jsx)(_index.Text, null, "Hi")
54
54
  }];
55
55
  var _default = {
56
56
  title: 'Components/AccordionGroup',
@@ -214,13 +214,13 @@ var UncontrolledExpanded = function UncontrolledExpanded() {
214
214
  );
215
215
  };
216
216
  exports.UncontrolledExpanded = UncontrolledExpanded;
217
- var DisabledItems = function DisabledItems() {
217
+ var DisabledState = function DisabledState() {
218
218
  return (
219
219
  /*
220
220
  itemArrayDisabled = [
221
- { key: 't1', label: 'Disabled Accordion', children: <Text>Hi</Text> },
222
- { key: 't2', label: 'Accordion', children: 'Child Renders Here' },
223
- { key: 't3', label: 'Disabled Accordion', children: 'Child Renders Here' },
221
+ { key: 't1', label: 'Accordion Disabled', children: <Text>Hi</Text> },
222
+ { key: 't2', label: 'Accordion Active', children: <Text>Hi</Text> },
223
+ { key: 't3', label: 'Accordion Disabled', children: <Text>Hi</Text> },
224
224
  ];
225
225
  */
226
226
  (0, _react2.jsx)(_index.AccordionGroup, {
@@ -236,7 +236,13 @@ var DisabledItems = function DisabledItems() {
236
236
  })
237
237
  );
238
238
  };
239
- exports.DisabledItems = DisabledItems;
239
+ exports.DisabledState = DisabledState;
240
+ DisabledState.parameters = {
241
+ design: {
242
+ type: 'figma',
243
+ url: _figmaLinks.FIGMA_LINKS.accordionGroup.disabledState
244
+ }
245
+ };
240
246
  var CustomPresentation = function CustomPresentation() {
241
247
  return (
242
248
  /*
@@ -125,6 +125,7 @@ var ComboBoxInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
125
125
  tabIndex: -1
126
126
  }), (0, _react2.jsx)(_.Icon, {
127
127
  icon: _MenuDownIcon["default"],
128
+ size: "md",
128
129
  sx: isOpen ? {
129
130
  transform: 'rotate(180deg)'
130
131
  } : null,
@@ -98,6 +98,7 @@ var SelectFieldBase = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
98
98
  title: {
99
99
  name: 'Menu down'
100
100
  },
101
+ size: "md",
101
102
  sx: state.isOpen ? {
102
103
  transform: 'rotate(180deg)'
103
104
  } : null
@@ -8,6 +8,7 @@ exports.FIGMA_LINKS = void 0;
8
8
  var FIGMA_LINKS = {
9
9
  accordionGroup: {
10
10
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=446-1808&t=8Wwd3tIBh3GEjCJB-0',
11
+ disabledState: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43917%3A31554&mode=dev',
11
12
  differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev'
12
13
  },
13
14
  attributeMappings: {
@@ -28,16 +28,16 @@ var itemArray = [{
28
28
  }];
29
29
  var itemArrayDisabled = [{
30
30
  key: 't1',
31
- label: 'Disabled Accordion',
31
+ label: 'Accordion Disabled',
32
32
  children: ___EmotionJSX(Text, null, "Hi")
33
33
  }, {
34
34
  key: 't2',
35
- label: 'Accordion',
36
- children: 'Child Renders Here'
35
+ label: 'Accordion Active',
36
+ children: ___EmotionJSX(Text, null, "Hi")
37
37
  }, {
38
38
  key: 't3',
39
- label: 'Disabled Accordion',
40
- children: 'Child Renders Here'
39
+ label: 'Accordion Disabled',
40
+ children: ___EmotionJSX(Text, null, "Hi")
41
41
  }];
42
42
  export default {
43
43
  title: 'Components/AccordionGroup',
@@ -195,13 +195,13 @@ export var UncontrolledExpanded = function UncontrolledExpanded() {
195
195
  })
196
196
  );
197
197
  };
198
- export var DisabledItems = function DisabledItems() {
198
+ export var DisabledState = function DisabledState() {
199
199
  return (
200
200
  /*
201
201
  itemArrayDisabled = [
202
- { key: 't1', label: 'Disabled Accordion', children: <Text>Hi</Text> },
203
- { key: 't2', label: 'Accordion', children: 'Child Renders Here' },
204
- { key: 't3', label: 'Disabled Accordion', children: 'Child Renders Here' },
202
+ { key: 't1', label: 'Accordion Disabled', children: <Text>Hi</Text> },
203
+ { key: 't2', label: 'Accordion Active', children: <Text>Hi</Text> },
204
+ { key: 't3', label: 'Accordion Disabled', children: <Text>Hi</Text> },
205
205
  ];
206
206
  */
207
207
  ___EmotionJSX(AccordionGroup, {
@@ -217,6 +217,12 @@ export var DisabledItems = function DisabledItems() {
217
217
  })
218
218
  );
219
219
  };
220
+ DisabledState.parameters = {
221
+ design: {
222
+ type: 'figma',
223
+ url: FIGMA_LINKS.accordionGroup.disabledState
224
+ }
225
+ };
220
226
  export var CustomPresentation = function CustomPresentation() {
221
227
  return (
222
228
  /*
@@ -114,6 +114,7 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
114
114
  tabIndex: -1
115
115
  }), ___EmotionJSX(Icon, {
116
116
  icon: MenuDown,
117
+ size: "md",
117
118
  sx: isOpen ? {
118
119
  transform: 'rotate(180deg)'
119
120
  } : null,
@@ -88,6 +88,7 @@ var SelectFieldBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
88
88
  title: {
89
89
  name: 'Menu down'
90
90
  },
91
+ size: "md",
91
92
  sx: state.isOpen ? {
92
93
  transform: 'rotate(180deg)'
93
94
  } : null
@@ -1,6 +1,7 @@
1
1
  export var FIGMA_LINKS = {
2
2
  accordionGroup: {
3
3
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=446-1808&t=8Wwd3tIBh3GEjCJB-0',
4
+ disabledState: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43917%3A31554&mode=dev',
4
5
  differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev'
5
6
  },
6
7
  attributeMappings: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.28.0-alpha.2",
3
+ "version": "2.28.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",