@pingux/astro 2.175.0 → 2.176.0-alpha.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.
@@ -122,12 +122,13 @@ var title = (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
122
122
  }, (0, _react2.jsx)(_index.Icon, {
123
123
  icon: _PlusIcon["default"],
124
124
  size: "sm"
125
- }))), (0, _react2.jsx)(_index.Text, {
125
+ }))), (0, _react2.jsx)(_index.Text, null, (0, _react2.jsx)(_index.Text, {
126
126
  fontSize: "sm",
127
127
  color: "text.secondary",
128
128
  fontWeight: 0,
129
- width: "800px"
130
- }, description, (0, _react2.jsx)(_index.Link, {
129
+ width: "800px",
130
+ display: "contents"
131
+ }, description), (0, _react2.jsx)(_index.Link, {
131
132
  href: "https://uilibrary.ping-eng.com/",
132
133
  sx: {
133
134
  fontSize: '13px'
@@ -75,6 +75,7 @@ var ScrollableListView = exports.ScrollableListView = function ScrollableListVie
75
75
  filterItems(input);
76
76
  };
77
77
  return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.SearchField, {
78
+ label: "Search",
78
79
  value: value,
79
80
  onChange: onChangeInput
80
81
  }), (0, _react2.jsx)(_index.ScrollBox, {
@@ -18,6 +18,7 @@ var _default = exports["default"] = {
18
18
  };
19
19
  var Default = exports.Default = function Default() {
20
20
  return (0, _react2.jsx)(_index.SearchField, {
21
+ label: "Example",
21
22
  icon: _SearchIcon["default"],
22
23
  onSubmit: function onSubmit(text) {
23
24
  return alert(text);
@@ -277,7 +277,7 @@ var overlayPanel = {
277
277
  body: {
278
278
  gap: 'md',
279
279
  minHeight: '100%',
280
- maxWidth: '768px',
280
+ maxWidth: '100%',
281
281
  alignSelf: 'center'
282
282
  },
283
283
  innerPanel: {
@@ -26,7 +26,9 @@ var itemArray = [{
26
26
  }, {
27
27
  key: 't3',
28
28
  label: 'Third Accordion',
29
- children: ___EmotionJSX(TextField, null)
29
+ children: ___EmotionJSX(TextField, {
30
+ label: "Label"
31
+ })
30
32
  }];
31
33
  var itemArrayDisabled = [{
32
34
  key: 't1',
@@ -36,7 +36,7 @@ var items = [{
36
36
  children: ___EmotionJSX(Text, null, "Integration")
37
37
  }];
38
38
  export var Default = function Default() {
39
- var _items$find, _items$find2, _items$find3;
39
+ var _items$find;
40
40
  var _useState = useState('Access'),
41
41
  _useState2 = _slicedToArray(_useState, 2),
42
42
  selectedKey = _useState2[0],
@@ -58,7 +58,20 @@ export var Default = function Default() {
58
58
  p: "sm"
59
59
  }, (_items$find = _findInstanceProperty(items).call(items, function (item) {
60
60
  return item.key === selectedKey;
61
- })) === null || _items$find === void 0 ? void 0 : _items$find.children)), ___EmotionJSX(Box, {
61
+ })) === null || _items$find === void 0 ? void 0 : _items$find.children)));
62
+ };
63
+ export var MediumWidth = function MediumWidth() {
64
+ var _items$find2;
65
+ var _useState3 = useState('Access'),
66
+ _useState4 = _slicedToArray(_useState3, 2),
67
+ selectedKey = _useState4[0],
68
+ setSelectedKey = _useState4[1];
69
+ var setSelectedKeyCallback = function setSelectedKeyCallback(e) {
70
+ setSelectedKey(e);
71
+ };
72
+ return ___EmotionJSX(Box, {
73
+ gap: "md"
74
+ }, ___EmotionJSX(Box, {
62
75
  maxWidth: "400px"
63
76
  }, ___EmotionJSX(SearchNav, {
64
77
  items: items,
@@ -70,7 +83,20 @@ export var Default = function Default() {
70
83
  p: "sm"
71
84
  }, (_items$find2 = _findInstanceProperty(items).call(items, function (item) {
72
85
  return item.key === selectedKey;
73
- })) === null || _items$find2 === void 0 ? void 0 : _items$find2.children)), ___EmotionJSX(Box, {
86
+ })) === null || _items$find2 === void 0 ? void 0 : _items$find2.children)));
87
+ };
88
+ export var SmallWidth = function SmallWidth() {
89
+ var _items$find3;
90
+ var _useState5 = useState('Access'),
91
+ _useState6 = _slicedToArray(_useState5, 2),
92
+ selectedKey = _useState6[0],
93
+ setSelectedKey = _useState6[1];
94
+ var setSelectedKeyCallback = function setSelectedKeyCallback(e) {
95
+ setSelectedKey(e);
96
+ };
97
+ return ___EmotionJSX(Box, {
98
+ gap: "md"
99
+ }, ___EmotionJSX(Box, {
74
100
  maxWidth: "200px"
75
101
  }, ___EmotionJSX(SearchNav, {
76
102
  items: items,
@@ -96,7 +96,7 @@ var IconSlot = ___EmotionJSX(Box, {
96
96
  export var Default = function Default(args) {
97
97
  return ___EmotionJSX(TextAreaField, args);
98
98
  };
99
- export var WithSlots = function WithSlots() {
99
+ export var WithSlots = function WithSlots(args) {
100
100
  return (
101
101
  // This is an example of a slot that can be passed into the component
102
102
  // const IconSlot = (
@@ -106,11 +106,11 @@ export var WithSlots = function WithSlots() {
106
106
  // />
107
107
  // </Box>
108
108
  // );
109
- ___EmotionJSX(TextAreaField, {
109
+ ___EmotionJSX(TextAreaField, _extends({}, args, {
110
110
  slots: {
111
111
  inContainer: IconSlot
112
112
  }
113
- })
113
+ }))
114
114
  );
115
115
  };
116
116
  export var FloatLabel = function FloatLabel(args) {
@@ -110,12 +110,13 @@ var title = ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
110
110
  }, ___EmotionJSX(Icon, {
111
111
  icon: PlusIcon,
112
112
  size: "sm"
113
- }))), ___EmotionJSX(Text, {
113
+ }))), ___EmotionJSX(Text, null, ___EmotionJSX(Text, {
114
114
  fontSize: "sm",
115
115
  color: "text.secondary",
116
116
  fontWeight: 0,
117
- width: "800px"
118
- }, description, ___EmotionJSX(Link, {
117
+ width: "800px",
118
+ display: "contents"
119
+ }, description), ___EmotionJSX(Link, {
119
120
  href: "https://uilibrary.ping-eng.com/",
120
121
  sx: {
121
122
  fontSize: '13px'
@@ -63,6 +63,7 @@ export var ScrollableListView = function ScrollableListView() {
63
63
  filterItems(input);
64
64
  };
65
65
  return ___EmotionJSX(Box, null, ___EmotionJSX(SearchField, {
66
+ label: "Search",
66
67
  value: value,
67
68
  onChange: onChangeInput
68
69
  }), ___EmotionJSX(ScrollBox, {
@@ -10,6 +10,7 @@ export default {
10
10
  };
11
11
  export var Default = function Default() {
12
12
  return ___EmotionJSX(SearchField, {
13
+ label: "Example",
13
14
  icon: SearchIcon,
14
15
  onSubmit: function onSubmit(text) {
15
16
  return alert(text);
@@ -267,7 +267,7 @@ var overlayPanel = {
267
267
  body: {
268
268
  gap: 'md',
269
269
  minHeight: '100%',
270
- maxWidth: '768px',
270
+ maxWidth: '100%',
271
271
  alignSelf: 'center'
272
272
  },
273
273
  innerPanel: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.175.0",
3
+ "version": "2.176.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",