@pingux/astro 1.25.1-alpha.1 → 1.25.1-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.
@@ -10,6 +10,8 @@ _Object$defineProperty(exports, "__esModule", {
10
10
 
11
11
  exports["default"] = exports.Default = void 0;
12
12
 
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
14
+
13
15
  var _react = _interopRequireDefault(require("react"));
14
16
 
15
17
  var _DragVerticalIcon = _interopRequireDefault(require("mdi-react/DragVerticalIcon"));
@@ -40,42 +42,52 @@ var items = [{
40
42
  }];
41
43
 
42
44
  var Default = function Default() {
43
- var CustomOnSvg = function CustomOnSvg() {
44
- return (0, _react2.jsx)("svg", {
45
- width: "24",
46
- height: "24",
47
- viewBox: "0 0 24 24",
45
+ var CustomOnSvg = function CustomOnSvg(props) {
46
+ return (0, _react2.jsx)("svg", (0, _extends2["default"])({
47
+ width: "16",
48
+ height: "16",
49
+ viewBox: "0 0 16 16",
48
50
  fill: "none",
49
51
  xmlns: "http://www.w3.org/2000/svg"
50
- }, (0, _react2.jsx)("path", {
51
- d: "M8 10V13H14V18H8V21L2 15.5L8 10Z",
52
- fill: "#CACED3"
53
- }), (0, _react2.jsx)("path", {
54
- d: "M9.83325 10.6251V6.37511H15.4999V2.94678L21.0533 8.50011L15.4999 14.0534V10.6251H9.83325Z",
55
- fill: "#4462ED"
52
+ }, props), (0, _react2.jsx)("path", {
53
+ d: "M5.33325 6.66666V8.66666H9.33325V12H5.33325V14L1.33325 10.3333L5.33325 6.66666Z",
54
+ fill: "currentColor"
56
55
  }), (0, _react2.jsx)("path", {
57
- d: "M8 10V13H14V18H8V21L2 15.5L8 10ZM22 8.5L16 3V6H10V11H16V14L22 8.5Z",
58
- fill: "#515F6B"
56
+ d: "M14.6666 5.66667L10.6666 2V4H6.66658V7.33333H10.6666V9.33333L14.6666 5.66667Z",
57
+ fill: "currentColor"
59
58
  }));
60
59
  };
61
60
 
62
- var CustomOffSvg = function CustomOffSvg() {
63
- return (0, _react2.jsx)("svg", {
64
- width: "24",
65
- height: "24",
66
- viewBox: "0 0 24 24",
61
+ var CustomOffSvg = function CustomOffSvg(props) {
62
+ return (0, _react2.jsx)("svg", (0, _extends2["default"])({
63
+ width: "16",
64
+ height: "16",
65
+ viewBox: "0 0 16 16",
67
66
  fill: "none",
68
67
  xmlns: "http://www.w3.org/2000/svg"
69
- }, (0, _react2.jsx)("path", {
70
- d: "M8 10V13H14V18H8V21L2 15.5L8 10Z",
68
+ }, props), (0, _react2.jsx)("path", {
69
+ d: "M5.33325 6.66667V8.66667H9.33325V12H5.33325V14L1.33325 10.3333L5.33325 6.66667Z",
71
70
  fill: "#CACED3"
72
71
  }), (0, _react2.jsx)("path", {
73
- d: "M9.83331 10.6251V6.37511H15.5V2.94678L21.0533 8.50011L15.5 14.0534V10.6251H9.83331Z",
74
- fill: "#4462ED"
72
+ d: "M14.6666 5.66667L10.6666 2V4H6.66658V7.33333H10.6666V9.33333L14.6666 5.66667Z",
73
+ fill: "currentColor"
74
+ }));
75
+ };
76
+
77
+ var CustomRightSvg = function CustomRightSvg(props) {
78
+ return (0, _react2.jsx)("svg", (0, _extends2["default"])({
79
+ width: "8",
80
+ height: "8",
81
+ viewBox: "0 0 8 8",
82
+ fill: "none",
83
+ xmlns: "http://www.w3.org/2000/svg"
84
+ }, props), (0, _react2.jsx)("path", {
85
+ d: "M8 4L4 0V2.18182H0V5.81818H4V8L8 4Z",
86
+ fill: "currentColor"
75
87
  }));
76
88
  };
77
89
 
78
- return (0, _react2.jsx)(_Box["default"], {
90
+ return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Box["default"], {
79
91
  sx: {
80
92
  alignItems: 'center'
81
93
  },
@@ -104,8 +116,7 @@ var Default = function Default() {
104
116
  }, item.name);
105
117
  }), (0, _react2.jsx)(_Box["default"], {
106
118
  sx: {
107
- ml: '5px',
108
- mr: '5px',
119
+ mx: 'sm',
109
120
  flexShrink: 0
110
121
  }
111
122
  }, (0, _react2.jsx)(_index.IconButtonToggle, {
@@ -113,10 +124,10 @@ var Default = function Default() {
113
124
  defaultIcon: CustomOffSvg,
114
125
  title: "Bidirectional/ Outbound toggle",
115
126
  iconProps: {
116
- size: 20
127
+ size: 16
117
128
  },
118
129
  buttonProps: {
119
- variant: 'svgIconButton'
130
+ variant: 'bidirectionalIconButton'
120
131
  }
121
132
  })), (0, _react2.jsx)(_index.ComboBoxField, {
122
133
  items: items,
@@ -142,19 +153,103 @@ var Default = function Default() {
142
153
  marginLeft: '12px',
143
154
  marginRight: '12px'
144
155
  }
145
- }, (0, _react2.jsx)(_index.IconButton, null, (0, _react2.jsx)(_index.Icon, {
156
+ }, (0, _react2.jsx)(_index.IconButton, {
157
+ "aria-label": "Edit"
158
+ }, (0, _react2.jsx)(_index.Icon, {
159
+ icon: _CogsIcon["default"],
160
+ color: "neutral.30",
161
+ size: 20,
162
+ title: "edit icon"
163
+ })), (0, _react2.jsx)(_index.IconButton, {
164
+ ml: "5px",
165
+ "aria-label": "Delete"
166
+ }, (0, _react2.jsx)(_index.Icon, {
167
+ icon: _DeleteIcon["default"],
168
+ color: "neutral.30",
169
+ size: 20,
170
+ title: "delete icon"
171
+ })))), (0, _react2.jsx)(_Box["default"], {
172
+ sx: {
173
+ alignItems: 'center'
174
+ },
175
+ isRow: true
176
+ }, (0, _react2.jsx)(_index.Icon, {
177
+ icon: _DragVerticalIcon["default"],
178
+ size: 25,
179
+ color: "neutral.50"
180
+ }), (0, _react2.jsx)(_index.ComboBoxField, {
181
+ items: items,
182
+ defaultSelectedKey: "Last Name",
183
+ containerProps: {
184
+ width: '275px'
185
+ },
186
+ labelProps: {
187
+ mb: 0
188
+ },
189
+ "aria-label": "Row one value",
190
+ controlProps: {
191
+ 'aria-label': 'test'
192
+ }
193
+ }, function (item) {
194
+ return (0, _react2.jsx)(_index.Item, {
195
+ key: item.name,
196
+ "data-id": item.name
197
+ }, item.name);
198
+ }), (0, _react2.jsx)(_Box["default"], {
199
+ sx: {
200
+ mx: 'sm',
201
+ flexShrink: 0
202
+ }
203
+ }, (0, _react2.jsx)(_index.IconButtonToggle, {
204
+ toggledIcon: CustomRightSvg,
205
+ defaultIcon: CustomRightSvg,
206
+ title: "This attribute does not support write-back.",
207
+ iconProps: {
208
+ size: 8
209
+ },
210
+ buttonProps: {
211
+ variant: 'bidirectionalIconButton'
212
+ }
213
+ })), (0, _react2.jsx)(_index.ComboBoxField, {
214
+ items: items,
215
+ defaultSelectedKey: "First Name",
216
+ containerProps: {
217
+ width: '275px'
218
+ },
219
+ labelProps: {
220
+ mb: 0
221
+ },
222
+ controlProps: {
223
+ 'aria-label': 'Row one Pingone value'
224
+ }
225
+ }, function (item) {
226
+ return (0, _react2.jsx)(_index.Item, {
227
+ key: item.name,
228
+ "data-id": item.name
229
+ }, item.name);
230
+ }), (0, _react2.jsx)(_Box["default"], {
231
+ isRow: true,
232
+ alignItems: "center",
233
+ sx: {
234
+ marginLeft: '12px',
235
+ marginRight: '12px'
236
+ }
237
+ }, (0, _react2.jsx)(_index.IconButton, {
238
+ "aria-label": "Edit"
239
+ }, (0, _react2.jsx)(_index.Icon, {
146
240
  icon: _CogsIcon["default"],
147
241
  color: "neutral.30",
148
242
  size: 20,
149
243
  title: "edit icon"
150
244
  })), (0, _react2.jsx)(_index.IconButton, {
151
- ml: "5px"
245
+ ml: "5px",
246
+ "aria-label": "Delete"
152
247
  }, (0, _react2.jsx)(_index.Icon, {
153
248
  icon: _DeleteIcon["default"],
154
249
  color: "neutral.30",
155
250
  size: 20,
156
251
  title: "delete icon"
157
- }))));
252
+ })))));
158
253
  };
159
254
 
160
255
  exports.Default = Default;
@@ -84,7 +84,9 @@ var _default = {
84
84
  forms: _forms["default"],
85
85
  text: _variants.text,
86
86
  images: _variants.images,
87
- buttons: _variants.buttons,
87
+ buttons: _objectSpread(_objectSpread({}, _variants.buttons), {}, {
88
+ bidirectionalIconButton: _variants.bidirectionalIconButton
89
+ }),
88
90
  textColors: _text.textColors,
89
91
  links: _variants.links,
90
92
  variants: _variants.variants
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+
7
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
8
+
9
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
10
+
11
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
12
+
13
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
14
+
15
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
16
+
17
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
18
+
19
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
20
+
21
+ _Object$defineProperty(exports, "__esModule", {
22
+ value: true
23
+ });
24
+
25
+ exports["default"] = void 0;
26
+
27
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
28
+
29
+ var _buttons = require("./buttons");
30
+
31
+ 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; }
32
+
33
+ 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; }
34
+
35
+ var bidirectionalIconButton = {
36
+ border: '1px solid',
37
+ outline: 'none',
38
+ height: '24px',
39
+ width: '24px',
40
+ color: 'active',
41
+ borderRadius: '12px',
42
+ borderColor: 'active',
43
+ '&.is-hovered': {
44
+ color: 'accent.40',
45
+ borderColor: 'accent.40'
46
+ },
47
+ '&.is-pressed': {
48
+ color: 'accent.20',
49
+ borderColor: 'accent.20'
50
+ },
51
+ '&.is-focused': _objectSpread({}, _buttons.defaultFocus)
52
+ };
53
+ var _default = bidirectionalIconButton;
54
+ exports["default"] = _default;
@@ -17,10 +17,18 @@ _Object$defineProperty(exports, "__esModule", {
17
17
  var _exportNames = {
18
18
  variants: true,
19
19
  buttons: true,
20
+ bidirectionalIconButton: true,
20
21
  images: true,
21
22
  links: true
22
23
  };
23
24
 
25
+ _Object$defineProperty(exports, "bidirectionalIconButton", {
26
+ enumerable: true,
27
+ get: function get() {
28
+ return _bidirectionalIconButton["default"];
29
+ }
30
+ });
31
+
24
32
  _Object$defineProperty(exports, "buttons", {
25
33
  enumerable: true,
26
34
  get: function get() {
@@ -53,6 +61,8 @@ var _variants = _interopRequireDefault(require("./variants"));
53
61
 
54
62
  var _buttons = _interopRequireDefault(require("./buttons"));
55
63
 
64
+ var _bidirectionalIconButton = _interopRequireDefault(require("./bidirectionalIconButton"));
65
+
56
66
  var _images = _interopRequireDefault(require("./images"));
57
67
 
58
68
  var _links = _interopRequireDefault(require("./links"));
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
1
2
  import React from 'react';
2
3
  import DragVerticalIcon from 'mdi-react/DragVerticalIcon';
3
4
  import DeleteIcon from 'mdi-react/DeleteIcon';
@@ -19,42 +20,52 @@ var items = [{
19
20
  id: '3'
20
21
  }];
21
22
  export var Default = function Default() {
22
- var CustomOnSvg = function CustomOnSvg() {
23
- return ___EmotionJSX("svg", {
24
- width: "24",
25
- height: "24",
26
- viewBox: "0 0 24 24",
23
+ var CustomOnSvg = function CustomOnSvg(props) {
24
+ return ___EmotionJSX("svg", _extends({
25
+ width: "16",
26
+ height: "16",
27
+ viewBox: "0 0 16 16",
27
28
  fill: "none",
28
29
  xmlns: "http://www.w3.org/2000/svg"
29
- }, ___EmotionJSX("path", {
30
- d: "M8 10V13H14V18H8V21L2 15.5L8 10Z",
31
- fill: "#CACED3"
32
- }), ___EmotionJSX("path", {
33
- d: "M9.83325 10.6251V6.37511H15.4999V2.94678L21.0533 8.50011L15.4999 14.0534V10.6251H9.83325Z",
34
- fill: "#4462ED"
30
+ }, props), ___EmotionJSX("path", {
31
+ d: "M5.33325 6.66666V8.66666H9.33325V12H5.33325V14L1.33325 10.3333L5.33325 6.66666Z",
32
+ fill: "currentColor"
35
33
  }), ___EmotionJSX("path", {
36
- d: "M8 10V13H14V18H8V21L2 15.5L8 10ZM22 8.5L16 3V6H10V11H16V14L22 8.5Z",
37
- fill: "#515F6B"
34
+ d: "M14.6666 5.66667L10.6666 2V4H6.66658V7.33333H10.6666V9.33333L14.6666 5.66667Z",
35
+ fill: "currentColor"
38
36
  }));
39
37
  };
40
38
 
41
- var CustomOffSvg = function CustomOffSvg() {
42
- return ___EmotionJSX("svg", {
43
- width: "24",
44
- height: "24",
45
- viewBox: "0 0 24 24",
39
+ var CustomOffSvg = function CustomOffSvg(props) {
40
+ return ___EmotionJSX("svg", _extends({
41
+ width: "16",
42
+ height: "16",
43
+ viewBox: "0 0 16 16",
46
44
  fill: "none",
47
45
  xmlns: "http://www.w3.org/2000/svg"
48
- }, ___EmotionJSX("path", {
49
- d: "M8 10V13H14V18H8V21L2 15.5L8 10Z",
46
+ }, props), ___EmotionJSX("path", {
47
+ d: "M5.33325 6.66667V8.66667H9.33325V12H5.33325V14L1.33325 10.3333L5.33325 6.66667Z",
50
48
  fill: "#CACED3"
51
49
  }), ___EmotionJSX("path", {
52
- d: "M9.83331 10.6251V6.37511H15.5V2.94678L21.0533 8.50011L15.5 14.0534V10.6251H9.83331Z",
53
- fill: "#4462ED"
50
+ d: "M14.6666 5.66667L10.6666 2V4H6.66658V7.33333H10.6666V9.33333L14.6666 5.66667Z",
51
+ fill: "currentColor"
52
+ }));
53
+ };
54
+
55
+ var CustomRightSvg = function CustomRightSvg(props) {
56
+ return ___EmotionJSX("svg", _extends({
57
+ width: "8",
58
+ height: "8",
59
+ viewBox: "0 0 8 8",
60
+ fill: "none",
61
+ xmlns: "http://www.w3.org/2000/svg"
62
+ }, props), ___EmotionJSX("path", {
63
+ d: "M8 4L4 0V2.18182H0V5.81818H4V8L8 4Z",
64
+ fill: "currentColor"
54
65
  }));
55
66
  };
56
67
 
57
- return ___EmotionJSX(Box, {
68
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
58
69
  sx: {
59
70
  alignItems: 'center'
60
71
  },
@@ -83,8 +94,7 @@ export var Default = function Default() {
83
94
  }, item.name);
84
95
  }), ___EmotionJSX(Box, {
85
96
  sx: {
86
- ml: '5px',
87
- mr: '5px',
97
+ mx: 'sm',
88
98
  flexShrink: 0
89
99
  }
90
100
  }, ___EmotionJSX(IconButtonToggle, {
@@ -92,10 +102,91 @@ export var Default = function Default() {
92
102
  defaultIcon: CustomOffSvg,
93
103
  title: "Bidirectional/ Outbound toggle",
94
104
  iconProps: {
95
- size: 20
105
+ size: 16
106
+ },
107
+ buttonProps: {
108
+ variant: 'bidirectionalIconButton'
109
+ }
110
+ })), ___EmotionJSX(ComboBoxField, {
111
+ items: items,
112
+ defaultSelectedKey: "First Name",
113
+ containerProps: {
114
+ width: '275px'
115
+ },
116
+ labelProps: {
117
+ mb: 0
118
+ },
119
+ controlProps: {
120
+ 'aria-label': 'Row one Pingone value'
121
+ }
122
+ }, function (item) {
123
+ return ___EmotionJSX(Item, {
124
+ key: item.name,
125
+ "data-id": item.name
126
+ }, item.name);
127
+ }), ___EmotionJSX(Box, {
128
+ isRow: true,
129
+ alignItems: "center",
130
+ sx: {
131
+ marginLeft: '12px',
132
+ marginRight: '12px'
133
+ }
134
+ }, ___EmotionJSX(IconButton, {
135
+ "aria-label": "Edit"
136
+ }, ___EmotionJSX(Icon, {
137
+ icon: CogsIcon,
138
+ color: "neutral.30",
139
+ size: 20,
140
+ title: "edit icon"
141
+ })), ___EmotionJSX(IconButton, {
142
+ ml: "5px",
143
+ "aria-label": "Delete"
144
+ }, ___EmotionJSX(Icon, {
145
+ icon: DeleteIcon,
146
+ color: "neutral.30",
147
+ size: 20,
148
+ title: "delete icon"
149
+ })))), ___EmotionJSX(Box, {
150
+ sx: {
151
+ alignItems: 'center'
152
+ },
153
+ isRow: true
154
+ }, ___EmotionJSX(Icon, {
155
+ icon: DragVerticalIcon,
156
+ size: 25,
157
+ color: "neutral.50"
158
+ }), ___EmotionJSX(ComboBoxField, {
159
+ items: items,
160
+ defaultSelectedKey: "Last Name",
161
+ containerProps: {
162
+ width: '275px'
163
+ },
164
+ labelProps: {
165
+ mb: 0
166
+ },
167
+ "aria-label": "Row one value",
168
+ controlProps: {
169
+ 'aria-label': 'test'
170
+ }
171
+ }, function (item) {
172
+ return ___EmotionJSX(Item, {
173
+ key: item.name,
174
+ "data-id": item.name
175
+ }, item.name);
176
+ }), ___EmotionJSX(Box, {
177
+ sx: {
178
+ mx: 'sm',
179
+ flexShrink: 0
180
+ }
181
+ }, ___EmotionJSX(IconButtonToggle, {
182
+ toggledIcon: CustomRightSvg,
183
+ defaultIcon: CustomRightSvg,
184
+ title: "This attribute does not support write-back.",
185
+ iconProps: {
186
+ size: 8
96
187
  },
97
188
  buttonProps: {
98
- variant: 'svgIconButton'
189
+ variant: 'bidirectionalIconButton'
99
190
  }
100
191
  })), ___EmotionJSX(ComboBoxField, {
101
192
  items: items,
@@ -121,17 +212,20 @@ export var Default = function Default() {
121
212
  marginLeft: '12px',
122
213
  marginRight: '12px'
123
214
  }
124
- }, ___EmotionJSX(IconButton, null, ___EmotionJSX(Icon, {
215
+ }, ___EmotionJSX(IconButton, {
216
+ "aria-label": "Edit"
217
+ }, ___EmotionJSX(Icon, {
125
218
  icon: CogsIcon,
126
219
  color: "neutral.30",
127
220
  size: 20,
128
221
  title: "edit icon"
129
222
  })), ___EmotionJSX(IconButton, {
130
- ml: "5px"
223
+ ml: "5px",
224
+ "aria-label": "Delete"
131
225
  }, ___EmotionJSX(Icon, {
132
226
  icon: DeleteIcon,
133
227
  color: "neutral.30",
134
228
  size: 20,
135
229
  title: "delete icon"
136
- }))));
230
+ })))));
137
231
  };
@@ -17,7 +17,7 @@ import colors, { accent, line, shadow, focus } from './colors';
17
17
  import { fontSizes, fontWeights, textColors } from './text';
18
18
  import breakpoints from './breakpoints';
19
19
  import forms from './forms';
20
- import { variants, buttons, text, images, links } from './variants';
20
+ import { variants, buttons, text, images, links, bidirectionalIconButton } from './variants';
21
21
  export default {
22
22
  name: 'Astro',
23
23
  space: spacing,
@@ -52,7 +52,9 @@ export default {
52
52
  forms: forms,
53
53
  text: text,
54
54
  images: images,
55
- buttons: buttons,
55
+ buttons: _objectSpread(_objectSpread({}, buttons), {}, {
56
+ bidirectionalIconButton: bidirectionalIconButton
57
+ }),
56
58
  textColors: textColors,
57
59
  links: links,
58
60
  variants: variants
@@ -0,0 +1,34 @@
1
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
2
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
3
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
4
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
5
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
6
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
7
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
8
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+
11
+ 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; }
12
+
13
+ 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; }
14
+
15
+ import { defaultFocus } from './buttons';
16
+ var bidirectionalIconButton = {
17
+ border: '1px solid',
18
+ outline: 'none',
19
+ height: '24px',
20
+ width: '24px',
21
+ color: 'active',
22
+ borderRadius: '12px',
23
+ borderColor: 'active',
24
+ '&.is-hovered': {
25
+ color: 'accent.40',
26
+ borderColor: 'accent.40'
27
+ },
28
+ '&.is-pressed': {
29
+ color: 'accent.20',
30
+ borderColor: 'accent.20'
31
+ },
32
+ '&.is-focused': _objectSpread({}, defaultFocus)
33
+ };
34
+ export default bidirectionalIconButton;
@@ -1,5 +1,6 @@
1
1
  export { default as variants } from './variants';
2
2
  export { default as buttons } from './buttons';
3
+ export { default as bidirectionalIconButton } from './bidirectionalIconButton';
3
4
  export { default as images } from './images';
4
5
  export { default as links } from './links';
5
6
  export * from './text';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.25.1-alpha.1",
3
+ "version": "1.25.1-alpha.2",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "ux-development@pingidentity.com",
6
6
  "license": "Apache-2.0",