@pingux/astro 2.201.1-alpha.0 → 2.201.2-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.
- package/lib/cjs/components/Tabs/Tabs.stories.js +5 -2
- package/lib/cjs/components/Tabs/Tabs.style.d.ts +0 -1
- package/lib/cjs/components/Tabs/Tabs.style.js +0 -1
- package/lib/cjs/components/Text/Text.styles.d.ts +2 -2
- package/lib/cjs/components/Text/Text.styles.js +1 -0
- package/lib/cjs/recipes/LogoTabs.stories.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +9 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +9 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +1 -12
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +1 -12
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +11 -2
- package/lib/cjs/styles/themes/next-gen/variants/tabs.d.ts +3 -1
- package/lib/cjs/styles/themes/next-gen/variants/tabs.js +8 -6
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +11 -1
- package/lib/cjs/styles/themes/next-gen/variants/text.js +12 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -1
- package/lib/components/Tabs/Tabs.stories.js +5 -2
- package/lib/components/Tabs/Tabs.style.js +0 -1
- package/lib/components/Text/Text.styles.js +1 -0
- package/lib/recipes/LogoTabs.stories.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +9 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +1 -12
- package/lib/styles/themes/next-gen/variants/tabs.js +7 -5
- package/lib/styles/themes/next-gen/variants/text.js +12 -2
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _LockIcon = _interopRequireDefault(require("@pingux/mdi-react/LockIcon"));
|
|
17
17
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
|
18
|
+
var _hooks = require("../../hooks");
|
|
18
19
|
var _index = require("../../index");
|
|
19
20
|
var _Tabs = _interopRequireDefault(require("./Tabs.mdx"));
|
|
20
21
|
var _react2 = require("@emotion/react");
|
|
@@ -155,11 +156,13 @@ var DisabledAllTabs = exports.DisabledAllTabs = function DisabledAllTabs() {
|
|
|
155
156
|
});
|
|
156
157
|
};
|
|
157
158
|
var ContentSlots = exports.ContentSlots = function ContentSlots() {
|
|
159
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
160
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
158
161
|
var beforeTabNode = (0, _react2.jsx)(_index.Icon, {
|
|
159
162
|
icon: _LockIcon["default"],
|
|
160
163
|
sx: {
|
|
161
|
-
marginTop:
|
|
162
|
-
marginRight:
|
|
164
|
+
marginTop: isOnyx ? 'md' : 'sm',
|
|
165
|
+
marginRight: 'xs'
|
|
163
166
|
},
|
|
164
167
|
title: {
|
|
165
168
|
name: 'Lock Icon'
|
|
@@ -18,7 +18,6 @@ var _Buttons = require("../Button/Buttons.styles");
|
|
|
18
18
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var tab = exports.tab = {
|
|
21
|
-
pt: 10,
|
|
22
21
|
cursor: 'pointer',
|
|
23
22
|
alignItems: 'center',
|
|
24
23
|
display: 'inline-flex',
|
|
@@ -12,6 +12,7 @@ export declare const tabLabel: {
|
|
|
12
12
|
fontSize: string;
|
|
13
13
|
fontWeight: number;
|
|
14
14
|
mb: string;
|
|
15
|
+
mt: string;
|
|
15
16
|
lineHeight: string;
|
|
16
17
|
color: string;
|
|
17
18
|
height: string;
|
|
@@ -734,7 +735,6 @@ export declare const tabLabel: {
|
|
|
734
735
|
WebkitTransition?: import("theme-ui").StylePropertyValue<import("csstype").Property.Transition<string & {}> | undefined>;
|
|
735
736
|
bg?: import("theme-ui").StylePropertyValue<import("csstype").Property.BackgroundColor | undefined>;
|
|
736
737
|
m?: import("theme-ui").StylePropertyValue<import("csstype").Property.Margin<string | number> | undefined>;
|
|
737
|
-
mt?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginTop<string | number> | undefined>;
|
|
738
738
|
mr?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginRight<string | number> | undefined>;
|
|
739
739
|
ml?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginLeft<string | number> | undefined>;
|
|
740
740
|
mx?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginLeft<string | number> | undefined>;
|
|
@@ -2873,6 +2873,7 @@ export declare const text: {
|
|
|
2873
2873
|
fontSize: string;
|
|
2874
2874
|
fontWeight: number;
|
|
2875
2875
|
mb: string;
|
|
2876
|
+
mt: string;
|
|
2876
2877
|
lineHeight: string;
|
|
2877
2878
|
color: string;
|
|
2878
2879
|
height: string;
|
|
@@ -3595,7 +3596,6 @@ export declare const text: {
|
|
|
3595
3596
|
WebkitTransition?: import("theme-ui").StylePropertyValue<import("csstype").Property.Transition<string & {}> | undefined>;
|
|
3596
3597
|
bg?: import("theme-ui").StylePropertyValue<import("csstype").Property.BackgroundColor | undefined>;
|
|
3597
3598
|
m?: import("theme-ui").StylePropertyValue<import("csstype").Property.Margin<string | number> | undefined>;
|
|
3598
|
-
mt?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginTop<string | number> | undefined>;
|
|
3599
3599
|
mr?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginRight<string | number> | undefined>;
|
|
3600
3600
|
ml?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginLeft<string | number> | undefined>;
|
|
3601
3601
|
mx?: import("theme-ui").StylePropertyValue<import("csstype").Property.MarginLeft<string | number> | undefined>;
|
|
@@ -58,5 +58,14 @@ var text = exports.text = {
|
|
|
58
58
|
},
|
|
59
59
|
linkSelectFieldLabel: {
|
|
60
60
|
color: _onyxTokens.astroTokensDark.color.font.link
|
|
61
|
+
},
|
|
62
|
+
tabLabel: {
|
|
63
|
+
color: _onyxTokens.astroTokensDark.color.font.base,
|
|
64
|
+
'.is-selected &': {
|
|
65
|
+
color: _onyxTokens.astroTokensDark.color.font.link
|
|
66
|
+
},
|
|
67
|
+
'.is-selected &, .is-hovered &': {
|
|
68
|
+
color: _onyxTokens.astroTokensDark.color.font.link
|
|
69
|
+
}
|
|
61
70
|
}
|
|
62
71
|
};
|
|
@@ -485,18 +485,7 @@ declare const _default: {
|
|
|
485
485
|
bg: string;
|
|
486
486
|
};
|
|
487
487
|
};
|
|
488
|
-
tab: {
|
|
489
|
-
'&.is-selected': {
|
|
490
|
-
'& > span': {
|
|
491
|
-
color: string;
|
|
492
|
-
};
|
|
493
|
-
};
|
|
494
|
-
'&.is-hovered': {
|
|
495
|
-
'& > span': {
|
|
496
|
-
color: string;
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
};
|
|
488
|
+
tab: {};
|
|
500
489
|
iconBadge: {
|
|
501
490
|
cyan: {
|
|
502
491
|
backgroundColor: string;
|
|
@@ -51,18 +51,7 @@ var listBox = {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
var tab = {
|
|
55
|
-
'&.is-selected': {
|
|
56
|
-
'& > span': {
|
|
57
|
-
color: 'text.secondary'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
'&.is-hovered': {
|
|
61
|
-
'& > span': {
|
|
62
|
-
color: 'text.secondary'
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
54
|
+
var tab = {};
|
|
66
55
|
var modal = {
|
|
67
56
|
content: {
|
|
68
57
|
bg: 'backgroundBase'
|
|
@@ -3120,8 +3120,18 @@ declare const _default: {
|
|
|
3120
3120
|
lineHeight: string;
|
|
3121
3121
|
};
|
|
3122
3122
|
tabLabel: {
|
|
3123
|
-
color:
|
|
3123
|
+
color: any;
|
|
3124
3124
|
wordBreak: string;
|
|
3125
|
+
lineHeight: string;
|
|
3126
|
+
mb: string;
|
|
3127
|
+
mt: string;
|
|
3128
|
+
'.is-selected &': {
|
|
3129
|
+
color: any;
|
|
3130
|
+
mb: string;
|
|
3131
|
+
};
|
|
3132
|
+
'.is-selected &, .is-hovered &': {
|
|
3133
|
+
color: any;
|
|
3134
|
+
};
|
|
3125
3135
|
};
|
|
3126
3136
|
placeholder: {
|
|
3127
3137
|
color: any;
|
|
@@ -6713,7 +6723,6 @@ declare const _default: {
|
|
|
6713
6723
|
};
|
|
6714
6724
|
tab: {
|
|
6715
6725
|
borderRadius: string;
|
|
6716
|
-
pt: string;
|
|
6717
6726
|
'& > span': {
|
|
6718
6727
|
px: string;
|
|
6719
6728
|
fontSize: string;
|
|
@@ -8,7 +8,6 @@ export declare const menuTab: {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const tab: {
|
|
10
10
|
borderRadius: string;
|
|
11
|
-
pt: string;
|
|
12
11
|
'& > span': {
|
|
13
12
|
px: string;
|
|
14
13
|
fontSize: string;
|
|
@@ -28,3 +27,6 @@ export declare const tab: {
|
|
|
28
27
|
ml: string;
|
|
29
28
|
};
|
|
30
29
|
};
|
|
30
|
+
export declare const tabLine: {
|
|
31
|
+
height: string;
|
|
32
|
+
};
|
|
@@ -4,7 +4,7 @@ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/obje
|
|
|
4
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tabs = exports.tab = exports.menuTab = void 0;
|
|
7
|
+
exports.tabs = exports.tabLine = exports.tab = exports.menuTab = void 0;
|
|
8
8
|
var tabs = exports.tabs = {
|
|
9
9
|
'&.is-horizontal': {
|
|
10
10
|
gap: '0px'
|
|
@@ -15,16 +15,15 @@ var menuTab = exports.menuTab = {
|
|
|
15
15
|
};
|
|
16
16
|
var tab = exports.tab = {
|
|
17
17
|
borderRadius: '2px',
|
|
18
|
-
pt: '.5rem',
|
|
19
18
|
'& > span': {
|
|
20
|
-
px: '
|
|
21
|
-
fontSize: '
|
|
19
|
+
px: 'md',
|
|
20
|
+
fontSize: 'md'
|
|
22
21
|
},
|
|
23
22
|
'&.is-focused': {
|
|
24
23
|
boxShadow: 'none',
|
|
25
|
-
outline: '
|
|
24
|
+
outline: '1px solid',
|
|
26
25
|
outlineColor: 'active',
|
|
27
|
-
outlineOffset: '
|
|
26
|
+
outlineOffset: '0px',
|
|
28
27
|
'& > span': {
|
|
29
28
|
outline: 'none'
|
|
30
29
|
}
|
|
@@ -34,4 +33,7 @@ var tab = exports.tab = {
|
|
|
34
33
|
borderBottomColor: 'primary',
|
|
35
34
|
ml: '0px'
|
|
36
35
|
}
|
|
36
|
+
};
|
|
37
|
+
var tabLine = exports.tabLine = {
|
|
38
|
+
height: '3px'
|
|
37
39
|
};
|
|
@@ -187,8 +187,18 @@ export declare const text: {
|
|
|
187
187
|
lineHeight: string;
|
|
188
188
|
};
|
|
189
189
|
tabLabel: {
|
|
190
|
-
color:
|
|
190
|
+
color: any;
|
|
191
191
|
wordBreak: string;
|
|
192
|
+
lineHeight: string;
|
|
193
|
+
mb: string;
|
|
194
|
+
mt: string;
|
|
195
|
+
'.is-selected &': {
|
|
196
|
+
color: any;
|
|
197
|
+
mb: string;
|
|
198
|
+
};
|
|
199
|
+
'.is-selected &, .is-hovered &': {
|
|
200
|
+
color: any;
|
|
201
|
+
};
|
|
192
202
|
};
|
|
193
203
|
placeholder: {
|
|
194
204
|
color: any;
|
|
@@ -157,8 +157,18 @@ var text = exports.text = _objectSpread(_objectSpread({
|
|
|
157
157
|
lineHeight: '24px'
|
|
158
158
|
},
|
|
159
159
|
tabLabel: {
|
|
160
|
-
color:
|
|
161
|
-
wordBreak: 'normal'
|
|
160
|
+
color: _onyxTokens.astroTokens.color.font.base,
|
|
161
|
+
wordBreak: 'normal',
|
|
162
|
+
lineHeight: 'body',
|
|
163
|
+
mb: 'sm',
|
|
164
|
+
mt: 'sm',
|
|
165
|
+
'.is-selected &': {
|
|
166
|
+
color: _onyxTokens.astroTokens.color.font.link,
|
|
167
|
+
mb: 'sm'
|
|
168
|
+
},
|
|
169
|
+
'.is-selected &, .is-hovered &': {
|
|
170
|
+
color: _onyxTokens.astroTokens.color.font.link
|
|
171
|
+
}
|
|
162
172
|
},
|
|
163
173
|
placeholder: {
|
|
164
174
|
color: _onyxTokens.astroTokens.color.gray[600],
|
|
@@ -4,6 +4,7 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import LockIcon from '@pingux/mdi-react/LockIcon';
|
|
6
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
|
+
import { useGetTheme } from '../../hooks';
|
|
7
8
|
import { Badge, Box, Icon, Tab, Tabs, Text } from '../../index';
|
|
8
9
|
import TabsReadme from './Tabs.mdx';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -143,11 +144,13 @@ export var DisabledAllTabs = function DisabledAllTabs() {
|
|
|
143
144
|
});
|
|
144
145
|
};
|
|
145
146
|
export var ContentSlots = function ContentSlots() {
|
|
147
|
+
var _useGetTheme = useGetTheme(),
|
|
148
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
146
149
|
var beforeTabNode = ___EmotionJSX(Icon, {
|
|
147
150
|
icon: LockIcon,
|
|
148
151
|
sx: {
|
|
149
|
-
marginTop:
|
|
150
|
-
marginRight:
|
|
152
|
+
marginTop: isOnyx ? 'md' : 'sm',
|
|
153
|
+
marginRight: 'xs'
|
|
151
154
|
},
|
|
152
155
|
title: {
|
|
153
156
|
name: 'Lock Icon'
|
|
@@ -11,7 +11,6 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import { defaultFocus, quiet } from '../Button/Buttons.styles';
|
|
13
13
|
export var tab = {
|
|
14
|
-
pt: 10,
|
|
15
14
|
cursor: 'pointer',
|
|
16
15
|
alignItems: 'center',
|
|
17
16
|
display: 'inline-flex',
|
|
@@ -51,5 +51,14 @@ export var text = {
|
|
|
51
51
|
},
|
|
52
52
|
linkSelectFieldLabel: {
|
|
53
53
|
color: astroTokensDark.color.font.link
|
|
54
|
+
},
|
|
55
|
+
tabLabel: {
|
|
56
|
+
color: astroTokensDark.color.font.base,
|
|
57
|
+
'.is-selected &': {
|
|
58
|
+
color: astroTokensDark.color.font.link
|
|
59
|
+
},
|
|
60
|
+
'.is-selected &, .is-hovered &': {
|
|
61
|
+
color: astroTokensDark.color.font.link
|
|
62
|
+
}
|
|
54
63
|
}
|
|
55
64
|
};
|
|
@@ -43,18 +43,7 @@ var listBox = {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
var tab = {
|
|
47
|
-
'&.is-selected': {
|
|
48
|
-
'& > span': {
|
|
49
|
-
color: 'text.secondary'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
'&.is-hovered': {
|
|
53
|
-
'& > span': {
|
|
54
|
-
color: 'text.secondary'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
46
|
+
var tab = {};
|
|
58
47
|
var modal = {
|
|
59
48
|
content: {
|
|
60
49
|
bg: 'backgroundBase'
|
|
@@ -8,16 +8,15 @@ export var menuTab = {
|
|
|
8
8
|
};
|
|
9
9
|
export var tab = {
|
|
10
10
|
borderRadius: '2px',
|
|
11
|
-
pt: '.5rem',
|
|
12
11
|
'& > span': {
|
|
13
|
-
px: '
|
|
14
|
-
fontSize: '
|
|
12
|
+
px: 'md',
|
|
13
|
+
fontSize: 'md'
|
|
15
14
|
},
|
|
16
15
|
'&.is-focused': {
|
|
17
16
|
boxShadow: 'none',
|
|
18
|
-
outline: '
|
|
17
|
+
outline: '1px solid',
|
|
19
18
|
outlineColor: 'active',
|
|
20
|
-
outlineOffset: '
|
|
19
|
+
outlineOffset: '0px',
|
|
21
20
|
'& > span': {
|
|
22
21
|
outline: 'none'
|
|
23
22
|
}
|
|
@@ -27,4 +26,7 @@ export var tab = {
|
|
|
27
26
|
borderBottomColor: 'primary',
|
|
28
27
|
ml: '0px'
|
|
29
28
|
}
|
|
29
|
+
};
|
|
30
|
+
export var tabLine = {
|
|
31
|
+
height: '3px'
|
|
30
32
|
};
|
|
@@ -150,8 +150,18 @@ export var text = _objectSpread(_objectSpread({
|
|
|
150
150
|
lineHeight: '24px'
|
|
151
151
|
},
|
|
152
152
|
tabLabel: {
|
|
153
|
-
color:
|
|
154
|
-
wordBreak: 'normal'
|
|
153
|
+
color: astroTokens.color.font.base,
|
|
154
|
+
wordBreak: 'normal',
|
|
155
|
+
lineHeight: 'body',
|
|
156
|
+
mb: 'sm',
|
|
157
|
+
mt: 'sm',
|
|
158
|
+
'.is-selected &': {
|
|
159
|
+
color: astroTokens.color.font.link,
|
|
160
|
+
mb: 'sm'
|
|
161
|
+
},
|
|
162
|
+
'.is-selected &, .is-hovered &': {
|
|
163
|
+
color: astroTokens.color.font.link
|
|
164
|
+
}
|
|
155
165
|
},
|
|
156
166
|
placeholder: {
|
|
157
167
|
color: astroTokens.color.gray[600],
|