@pingux/astro 2.109.0 → 2.110.0-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.
@@ -111,7 +111,7 @@ var Default = function Default(args) {
111
111
  }, (0, _react2.jsx)(_index.Box, {
112
112
  sx: sx.contentContainer
113
113
  }, (0, _react2.jsx)(_index.Text, {
114
- fontSize: "md",
114
+ fontSize: "lg",
115
115
  fontWeight: "3"
116
116
  }, "Duis Aute"), (0, _react2.jsx)(_index.Text, {
117
117
  fontSize: "md"
@@ -121,7 +121,7 @@ var Default = function Default(args) {
121
121
  }, (0, _react2.jsx)(_index.Box, {
122
122
  sx: sx.contentContainer
123
123
  }, (0, _react2.jsx)(_index.Text, {
124
- fontSize: "md",
124
+ fontSize: "lg",
125
125
  fontWeight: "3"
126
126
  }, "Lorem Ipsum"), (0, _react2.jsx)(_index.Text, {
127
127
  fontSize: "md"
@@ -131,7 +131,7 @@ var Default = function Default(args) {
131
131
  }, (0, _react2.jsx)(_index.Box, {
132
132
  sx: sx.contentContainer
133
133
  }, (0, _react2.jsx)(_index.Text, {
134
- fontSize: "md",
134
+ fontSize: "lg",
135
135
  fontWeight: "3"
136
136
  }, "Excepteur Sint"), (0, _react2.jsx)(_index.Text, {
137
137
  fontSize: "md"
@@ -147,7 +147,7 @@ var DisabledToolTips = function DisabledToolTips(args) {
147
147
  }, (0, _react2.jsx)(_index.Box, {
148
148
  sx: sx.contentContainer
149
149
  }, (0, _react2.jsx)(_index.Text, {
150
- fontSize: "md",
150
+ fontSize: "lg",
151
151
  fontWeight: "3"
152
152
  }, "Duis Aute"), (0, _react2.jsx)(_index.Text, {
153
153
  fontSize: "md"
@@ -157,7 +157,7 @@ var DisabledToolTips = function DisabledToolTips(args) {
157
157
  }, (0, _react2.jsx)(_index.Box, {
158
158
  sx: sx.contentContainer
159
159
  }, (0, _react2.jsx)(_index.Text, {
160
- fontSize: "md",
160
+ fontSize: "lg",
161
161
  fontWeight: "3"
162
162
  }, "Lorem Ipsum"), (0, _react2.jsx)(_index.Text, {
163
163
  fontSize: "md"
@@ -167,7 +167,7 @@ var DisabledToolTips = function DisabledToolTips(args) {
167
167
  }, (0, _react2.jsx)(_index.Box, {
168
168
  sx: sx.contentContainer
169
169
  }, (0, _react2.jsx)(_index.Text, {
170
- fontSize: "md",
170
+ fontSize: "lg",
171
171
  fontWeight: "3"
172
172
  }, "Excepteur Sint"), (0, _react2.jsx)(_index.Text, {
173
173
  fontSize: "md"
@@ -193,7 +193,7 @@ var WithCustomTooltip = function WithCustomTooltip(args) {
193
193
  }, (0, _react2.jsx)(_index.Box, {
194
194
  sx: sx.contentContainer
195
195
  }, (0, _react2.jsx)(_index.Text, {
196
- fontSize: "md",
196
+ fontSize: "lg",
197
197
  fontWeight: "3"
198
198
  }, "Duis Aute"), (0, _react2.jsx)(_index.Text, {
199
199
  fontSize: "md"
@@ -203,7 +203,7 @@ var WithCustomTooltip = function WithCustomTooltip(args) {
203
203
  }, (0, _react2.jsx)(_index.Box, {
204
204
  sx: sx.contentContainer
205
205
  }, (0, _react2.jsx)(_index.Text, {
206
- fontSize: "md",
206
+ fontSize: "lg",
207
207
  fontWeight: "3"
208
208
  }, "Lorem Ipsum"), (0, _react2.jsx)(_index.Text, {
209
209
  fontSize: "md"
@@ -213,7 +213,7 @@ var WithCustomTooltip = function WithCustomTooltip(args) {
213
213
  }, (0, _react2.jsx)(_index.Box, {
214
214
  sx: sx.contentContainer
215
215
  }, (0, _react2.jsx)(_index.Text, {
216
- fontSize: "md",
216
+ fontSize: "lg",
217
217
  fontWeight: "3"
218
218
  }, "Excepteur Sint"), (0, _react2.jsx)(_index.Text, {
219
219
  fontSize: "md"
@@ -236,7 +236,7 @@ var ControlledStepper = function ControlledStepper() {
236
236
  }, (0, _react2.jsx)(_index.Box, {
237
237
  sx: sx.contentContainer
238
238
  }, (0, _react2.jsx)(_index.Text, {
239
- fontSize: "md",
239
+ fontSize: "lg",
240
240
  fontWeight: "3"
241
241
  }, item.title), (0, _react2.jsx)(_index.Text, {
242
242
  fontSize: "md"
@@ -289,7 +289,7 @@ var Panel = function Panel() {
289
289
  }, (0, _react2.jsx)(_index.Box, {
290
290
  sx: sx.contentContainer
291
291
  }, (0, _react2.jsx)(_index.Text, {
292
- fontSize: "md",
292
+ fontSize: "lg",
293
293
  fontWeight: "3"
294
294
  }, item.title), (0, _react2.jsx)(_index.Text, {
295
295
  fontSize: "md"
@@ -2,13 +2,12 @@ import { StoryFn } from '@storybook/react';
2
2
  import { TabsProps } from '../../types';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
- export declare const Uncontrolled: StoryFn<TabsProps>;
5
+ export declare const Default: StoryFn<TabsProps>;
6
6
  export declare const Controlled: StoryFn;
7
- export declare const WithTooltips: StoryFn;
8
7
  export declare const Centered: StoryFn;
9
8
  export declare const DisabledSingleTab: StoryFn;
10
9
  export declare const DisabledAllTabs: StoryFn;
11
- export declare const CustomTabLine: StoryFn;
12
- export declare const TabPanelProps: StoryFn;
13
10
  export declare const ContentSlots: StoryFn;
14
11
  export declare const WithList: StoryFn;
12
+ export declare const CustomTabLine: StoryFn;
13
+ export declare const CustomPanelProps: StoryFn;
@@ -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.WithTooltips = exports.WithList = exports.Uncontrolled = exports.TabPanelProps = exports.DisabledSingleTab = exports.DisabledAllTabs = exports.CustomTabLine = exports.Controlled = exports.ContentSlots = exports.Centered = void 0;
11
+ exports["default"] = exports.WithList = exports.DisabledSingleTab = exports.DisabledAllTabs = exports.Default = exports.CustomTabLine = exports.CustomPanelProps = exports.Controlled = exports.ContentSlots = exports.Centered = void 0;
12
12
  var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
13
13
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
@@ -71,7 +71,7 @@ var tabs = [{
71
71
  name: 'Tab 3',
72
72
  children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
73
73
  }];
74
- var Uncontrolled = function Uncontrolled(args) {
74
+ var Default = function Default(args) {
75
75
  return (0, _react2.jsx)(_index.Tabs, (0, _extends2["default"])({
76
76
  items: tabs
77
77
  }, args), (0, _react2.jsx)(_index.Tab, {
@@ -82,7 +82,7 @@ var Uncontrolled = function Uncontrolled(args) {
82
82
  title: "Tab 2"
83
83
  }, (0, _react2.jsx)(_index.Text, null, "This is content for Tab 2")));
84
84
  };
85
- exports.Uncontrolled = Uncontrolled;
85
+ exports.Default = Default;
86
86
  var Controlled = function Controlled() {
87
87
  var _useState = (0, _react.useState)(tabs[0].name),
88
88
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
@@ -101,19 +101,6 @@ var Controlled = function Controlled() {
101
101
  });
102
102
  };
103
103
  exports.Controlled = Controlled;
104
- var WithTooltips = function WithTooltips() {
105
- return (0, _react2.jsx)(_index.Tabs, {
106
- mode: "tooltip",
107
- items: tabs
108
- }, function (item) {
109
- return (0, _react2.jsx)(_index.Tab, {
110
- key: item.name,
111
- title: item.name,
112
- textValue: item.name
113
- }, item.children);
114
- });
115
- };
116
- exports.WithTooltips = WithTooltips;
117
104
  var Centered = function Centered() {
118
105
  return (0, _react2.jsx)(_index.Tabs, {
119
106
  tabListProps: {
@@ -152,35 +139,6 @@ var DisabledAllTabs = function DisabledAllTabs() {
152
139
  });
153
140
  };
154
141
  exports.DisabledAllTabs = DisabledAllTabs;
155
- var CustomTabLine = function CustomTabLine() {
156
- return (0, _react2.jsx)(_index.Tabs, {
157
- items: tabs
158
- }, function (item) {
159
- return (0, _react2.jsx)(_index.Tab, {
160
- key: item.name,
161
- title: item.name,
162
- tabLineProps: {
163
- bg: 'red'
164
- }
165
- }, item.children);
166
- });
167
- };
168
- exports.CustomTabLine = CustomTabLine;
169
- var TabPanelProps = function TabPanelProps() {
170
- return (0, _react2.jsx)(_index.Tabs, {
171
- tabPanelProps: {
172
- color: 'green',
173
- fontWeight: 500
174
- },
175
- items: tabs
176
- }, function (item) {
177
- return (0, _react2.jsx)(_index.Tab, {
178
- key: item.name,
179
- title: item.name
180
- }, item.children);
181
- });
182
- };
183
- exports.TabPanelProps = TabPanelProps;
184
142
  var ContentSlots = function ContentSlots() {
185
143
  var beforeTabNode = (0, _react2.jsx)(_index.Icon, {
186
144
  icon: _LockIcon["default"],
@@ -193,7 +151,7 @@ var ContentSlots = function ContentSlots() {
193
151
  }
194
152
  });
195
153
  var nodeSx = {
196
- marginLeft: 6,
154
+ marginLeft: 5,
197
155
  marginTop: 10
198
156
  };
199
157
  var afterTabNode = (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Badge, {
@@ -255,4 +213,33 @@ var WithList = function WithList() {
255
213
  }, item), item.children);
256
214
  });
257
215
  };
258
- exports.WithList = WithList;
216
+ exports.WithList = WithList;
217
+ var CustomTabLine = function CustomTabLine() {
218
+ return (0, _react2.jsx)(_index.Tabs, {
219
+ items: tabs
220
+ }, function (item) {
221
+ return (0, _react2.jsx)(_index.Tab, {
222
+ key: item.name,
223
+ title: item.name,
224
+ tabLineProps: {
225
+ bg: 'red'
226
+ }
227
+ }, item.children);
228
+ });
229
+ };
230
+ exports.CustomTabLine = CustomTabLine;
231
+ var CustomPanelProps = function CustomPanelProps() {
232
+ return (0, _react2.jsx)(_index.Tabs, {
233
+ tabPanelProps: {
234
+ color: 'green',
235
+ fontWeight: 500
236
+ },
237
+ items: tabs
238
+ }, function (item) {
239
+ return (0, _react2.jsx)(_index.Tab, {
240
+ key: item.name,
241
+ title: item.name
242
+ }, item.children);
243
+ });
244
+ };
245
+ exports.CustomPanelProps = CustomPanelProps;
@@ -7,7 +7,7 @@ export declare const tab: {
7
7
  transform: string;
8
8
  '&.is-focused': {
9
9
  '& > span': {
10
- boxShadow: string;
10
+ borderRadius: string;
11
11
  outline: string;
12
12
  outlineColor: string;
13
13
  outlineOffset: string;
@@ -25,7 +25,9 @@ var tab = {
25
25
  outline: 'none',
26
26
  transform: 'translateY(1px)',
27
27
  '&.is-focused': {
28
- '& > span': _objectSpread({}, _Buttons.focusWithCroppedOutline)
28
+ '& > span': _objectSpread(_objectSpread({}, _Buttons.defaultFocus), {}, {
29
+ borderRadius: '4px'
30
+ })
29
31
  },
30
32
  '&.is-disabled': {
31
33
  cursor: 'default'
@@ -97,7 +97,7 @@ export var Default = function Default(args) {
97
97
  }, ___EmotionJSX(Box, {
98
98
  sx: sx.contentContainer
99
99
  }, ___EmotionJSX(Text, {
100
- fontSize: "md",
100
+ fontSize: "lg",
101
101
  fontWeight: "3"
102
102
  }, "Duis Aute"), ___EmotionJSX(Text, {
103
103
  fontSize: "md"
@@ -107,7 +107,7 @@ export var Default = function Default(args) {
107
107
  }, ___EmotionJSX(Box, {
108
108
  sx: sx.contentContainer
109
109
  }, ___EmotionJSX(Text, {
110
- fontSize: "md",
110
+ fontSize: "lg",
111
111
  fontWeight: "3"
112
112
  }, "Lorem Ipsum"), ___EmotionJSX(Text, {
113
113
  fontSize: "md"
@@ -117,7 +117,7 @@ export var Default = function Default(args) {
117
117
  }, ___EmotionJSX(Box, {
118
118
  sx: sx.contentContainer
119
119
  }, ___EmotionJSX(Text, {
120
- fontSize: "md",
120
+ fontSize: "lg",
121
121
  fontWeight: "3"
122
122
  }, "Excepteur Sint"), ___EmotionJSX(Text, {
123
123
  fontSize: "md"
@@ -132,7 +132,7 @@ export var DisabledToolTips = function DisabledToolTips(args) {
132
132
  }, ___EmotionJSX(Box, {
133
133
  sx: sx.contentContainer
134
134
  }, ___EmotionJSX(Text, {
135
- fontSize: "md",
135
+ fontSize: "lg",
136
136
  fontWeight: "3"
137
137
  }, "Duis Aute"), ___EmotionJSX(Text, {
138
138
  fontSize: "md"
@@ -142,7 +142,7 @@ export var DisabledToolTips = function DisabledToolTips(args) {
142
142
  }, ___EmotionJSX(Box, {
143
143
  sx: sx.contentContainer
144
144
  }, ___EmotionJSX(Text, {
145
- fontSize: "md",
145
+ fontSize: "lg",
146
146
  fontWeight: "3"
147
147
  }, "Lorem Ipsum"), ___EmotionJSX(Text, {
148
148
  fontSize: "md"
@@ -152,7 +152,7 @@ export var DisabledToolTips = function DisabledToolTips(args) {
152
152
  }, ___EmotionJSX(Box, {
153
153
  sx: sx.contentContainer
154
154
  }, ___EmotionJSX(Text, {
155
- fontSize: "md",
155
+ fontSize: "lg",
156
156
  fontWeight: "3"
157
157
  }, "Excepteur Sint"), ___EmotionJSX(Text, {
158
158
  fontSize: "md"
@@ -177,7 +177,7 @@ export var WithCustomTooltip = function WithCustomTooltip(args) {
177
177
  }, ___EmotionJSX(Box, {
178
178
  sx: sx.contentContainer
179
179
  }, ___EmotionJSX(Text, {
180
- fontSize: "md",
180
+ fontSize: "lg",
181
181
  fontWeight: "3"
182
182
  }, "Duis Aute"), ___EmotionJSX(Text, {
183
183
  fontSize: "md"
@@ -187,7 +187,7 @@ export var WithCustomTooltip = function WithCustomTooltip(args) {
187
187
  }, ___EmotionJSX(Box, {
188
188
  sx: sx.contentContainer
189
189
  }, ___EmotionJSX(Text, {
190
- fontSize: "md",
190
+ fontSize: "lg",
191
191
  fontWeight: "3"
192
192
  }, "Lorem Ipsum"), ___EmotionJSX(Text, {
193
193
  fontSize: "md"
@@ -197,7 +197,7 @@ export var WithCustomTooltip = function WithCustomTooltip(args) {
197
197
  }, ___EmotionJSX(Box, {
198
198
  sx: sx.contentContainer
199
199
  }, ___EmotionJSX(Text, {
200
- fontSize: "md",
200
+ fontSize: "lg",
201
201
  fontWeight: "3"
202
202
  }, "Excepteur Sint"), ___EmotionJSX(Text, {
203
203
  fontSize: "md"
@@ -219,7 +219,7 @@ export var ControlledStepper = function ControlledStepper() {
219
219
  }, ___EmotionJSX(Box, {
220
220
  sx: sx.contentContainer
221
221
  }, ___EmotionJSX(Text, {
222
- fontSize: "md",
222
+ fontSize: "lg",
223
223
  fontWeight: "3"
224
224
  }, item.title), ___EmotionJSX(Text, {
225
225
  fontSize: "md"
@@ -271,7 +271,7 @@ export var Panel = function Panel() {
271
271
  }, ___EmotionJSX(Box, {
272
272
  sx: sx.contentContainer
273
273
  }, ___EmotionJSX(Text, {
274
- fontSize: "md",
274
+ fontSize: "lg",
275
275
  fontWeight: "3"
276
276
  }, item.title), ___EmotionJSX(Text, {
277
277
  fontSize: "md"
@@ -57,7 +57,7 @@ var tabs = [{
57
57
  name: 'Tab 3',
58
58
  children: ___EmotionJSX(Text, null, "Tab 3 body")
59
59
  }];
60
- export var Uncontrolled = function Uncontrolled(args) {
60
+ export var Default = function Default(args) {
61
61
  return ___EmotionJSX(Tabs, _extends({
62
62
  items: tabs
63
63
  }, args), ___EmotionJSX(Tab, {
@@ -85,18 +85,6 @@ export var Controlled = function Controlled() {
85
85
  }, item.children);
86
86
  });
87
87
  };
88
- export var WithTooltips = function WithTooltips() {
89
- return ___EmotionJSX(Tabs, {
90
- mode: "tooltip",
91
- items: tabs
92
- }, function (item) {
93
- return ___EmotionJSX(Tab, {
94
- key: item.name,
95
- title: item.name,
96
- textValue: item.name
97
- }, item.children);
98
- });
99
- };
100
88
  export var Centered = function Centered() {
101
89
  return ___EmotionJSX(Tabs, {
102
90
  tabListProps: {
@@ -132,33 +120,6 @@ export var DisabledAllTabs = function DisabledAllTabs() {
132
120
  }, item.children);
133
121
  });
134
122
  };
135
- export var CustomTabLine = function CustomTabLine() {
136
- return ___EmotionJSX(Tabs, {
137
- items: tabs
138
- }, function (item) {
139
- return ___EmotionJSX(Tab, {
140
- key: item.name,
141
- title: item.name,
142
- tabLineProps: {
143
- bg: 'red'
144
- }
145
- }, item.children);
146
- });
147
- };
148
- export var TabPanelProps = function TabPanelProps() {
149
- return ___EmotionJSX(Tabs, {
150
- tabPanelProps: {
151
- color: 'green',
152
- fontWeight: 500
153
- },
154
- items: tabs
155
- }, function (item) {
156
- return ___EmotionJSX(Tab, {
157
- key: item.name,
158
- title: item.name
159
- }, item.children);
160
- });
161
- };
162
123
  export var ContentSlots = function ContentSlots() {
163
124
  var beforeTabNode = ___EmotionJSX(Icon, {
164
125
  icon: LockIcon,
@@ -171,7 +132,7 @@ export var ContentSlots = function ContentSlots() {
171
132
  }
172
133
  });
173
134
  var nodeSx = {
174
- marginLeft: 6,
135
+ marginLeft: 5,
175
136
  marginTop: 10
176
137
  };
177
138
  var afterTabNode = ___EmotionJSX(Box, null, ___EmotionJSX(Badge, {
@@ -231,4 +192,31 @@ export var WithList = function WithList() {
231
192
  title: item.name
232
193
  }, item), item.children);
233
194
  });
195
+ };
196
+ export var CustomTabLine = function CustomTabLine() {
197
+ return ___EmotionJSX(Tabs, {
198
+ items: tabs
199
+ }, function (item) {
200
+ return ___EmotionJSX(Tab, {
201
+ key: item.name,
202
+ title: item.name,
203
+ tabLineProps: {
204
+ bg: 'red'
205
+ }
206
+ }, item.children);
207
+ });
208
+ };
209
+ export var CustomPanelProps = function CustomPanelProps() {
210
+ return ___EmotionJSX(Tabs, {
211
+ tabPanelProps: {
212
+ color: 'green',
213
+ fontWeight: 500
214
+ },
215
+ items: tabs
216
+ }, function (item) {
217
+ return ___EmotionJSX(Tab, {
218
+ key: item.name,
219
+ title: item.name
220
+ }, item.children);
221
+ });
234
222
  };
@@ -9,7 +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 { focusWithCroppedOutline, quiet } from '../Button/Buttons.styles';
12
+ import { defaultFocus, quiet } from '../Button/Buttons.styles';
13
13
  export var tab = {
14
14
  pt: 10,
15
15
  cursor: 'pointer',
@@ -18,7 +18,9 @@ export var tab = {
18
18
  outline: 'none',
19
19
  transform: 'translateY(1px)',
20
20
  '&.is-focused': {
21
- '& > span': _objectSpread({}, focusWithCroppedOutline)
21
+ '& > span': _objectSpread(_objectSpread({}, defaultFocus), {}, {
22
+ borderRadius: '4px'
23
+ })
22
24
  },
23
25
  '&.is-disabled': {
24
26
  cursor: 'default'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.109.0",
3
+ "version": "2.110.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",