@pingux/astro 2.161.1-alpha.2 → 2.161.1-alpha.4
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/README.md +16 -12
- package/lib/cjs/components/RequirementsList/RequirementsList.js +5 -3
- package/lib/cjs/components/Text/Text.styles.d.ts +10 -0
- package/lib/cjs/components/Text/Text.styles.js +5 -0
- package/lib/cjs/docs/Welcome.stories.mdx +2 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +5 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +2 -1
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +6 -0
- package/lib/components/RequirementsList/RequirementsList.js +5 -3
- package/lib/components/Text/Text.styles.js +5 -0
- package/lib/docs/Welcome.stories.mdx +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +5 -1
- package/lib/styles/themes/next-gen/colors/colors.js +1 -1
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +2 -1
- package/lib/styles/themes/next-gen/variants/text.js +6 -0
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Yarn:
|
|
|
14
14
|
|
|
15
15
|
## Requirements
|
|
16
16
|
|
|
17
|
-
- Node:
|
|
17
|
+
- Node: 20+
|
|
18
18
|
- React: 16.8+
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
@@ -33,7 +33,7 @@ import { AstroProvider } from '@pingux/astro';
|
|
|
33
33
|
|
|
34
34
|
Astro uses [Storybook](https://storybook.js.org/) for component documentation. Once Astro has been cloned, run the following commands to start a local Storybook server:
|
|
35
35
|
|
|
36
|
-
`
|
|
36
|
+
`npx nx start`
|
|
37
37
|
|
|
38
38
|
The Storybook server defaults to `https://localhost:6006`. This port can be customized by running the command start -p 9009. For example, this will start Storybook on port 9009. More information on customizing Storybook CLI options can be found at https://storybook.js.org/docs/react/api/cli-options.
|
|
39
39
|
|
|
@@ -41,19 +41,23 @@ Component prop documentation is available under the "documentation" tab per each
|
|
|
41
41
|
|
|
42
42
|
For example, to view the disabled button styling, navigate to the Button story’s props table, locate the "isDisabled" prop, and toggle to "true". This change allows you to preview the disabled button’s styling and functionality.
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
We use a modern version of [Yarn](https://yarnpkg.com/getting-started) for package management with the [Plug'n'Play](https://yarnpkg.com/features/pnp) feature enabled. This allows for a [Zero Install](https://yarnpkg.com/features/zero-installs) approach to be used.
|
|
44
|
+
To create a production bundle:
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
```sh
|
|
47
|
+
npx nx build astro
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
To run linting:
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
```sh
|
|
53
|
+
npx nx lint astro
|
|
54
|
+
```
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
b. Choose "Use Workspace Version"
|
|
56
|
+
To run unit tests:
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
npx nx test astro
|
|
60
|
+
```
|
|
57
61
|
|
|
58
62
|
## Browser Compatibility
|
|
59
63
|
|
|
@@ -25,7 +25,9 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
25
25
|
var requirements = props.requirements,
|
|
26
26
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
27
27
|
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
28
|
-
icons = _useGetTheme.icons
|
|
28
|
+
icons = _useGetTheme.icons,
|
|
29
|
+
themeState = _useGetTheme.themeState;
|
|
30
|
+
var isOnyx = themeState.isOnyx;
|
|
29
31
|
var SuccessCircle = icons.SuccessCircle,
|
|
30
32
|
ErrorCircle = icons.ErrorCircle,
|
|
31
33
|
WarningIcon = icons.WarningIcon,
|
|
@@ -75,7 +77,7 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
75
77
|
name: 'Empty Status Icon'
|
|
76
78
|
},
|
|
77
79
|
icon: DefaultCircle,
|
|
78
|
-
color:
|
|
80
|
+
color: isOnyx ? 'common.dark' : 'neutral.40',
|
|
79
81
|
mr: "sm",
|
|
80
82
|
size: "sm",
|
|
81
83
|
"data-testid": "status-icon__".concat(status)
|
|
@@ -91,7 +93,7 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
91
93
|
width: "100%",
|
|
92
94
|
as: "li"
|
|
93
95
|
}, statusIconRender(req.status, (0, _kebabCase["default"])(req.name)), (0, _react2.jsx)(_Text["default"], {
|
|
94
|
-
variant: "
|
|
96
|
+
variant: "requirementsListText"
|
|
95
97
|
}, req.name));
|
|
96
98
|
};
|
|
97
99
|
return (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
|
@@ -1950,6 +1950,16 @@ export declare const text: {
|
|
|
1950
1950
|
wordWrap: wordWrapText;
|
|
1951
1951
|
wordBreak: wordBreak;
|
|
1952
1952
|
};
|
|
1953
|
+
requirementsListText: {
|
|
1954
|
+
fontSize: string;
|
|
1955
|
+
color: string;
|
|
1956
|
+
fontFamily: string;
|
|
1957
|
+
display: string;
|
|
1958
|
+
overflowWrap: overflowWrap;
|
|
1959
|
+
maxWidth: string;
|
|
1960
|
+
wordWrap: wordWrapText;
|
|
1961
|
+
wordBreak: wordBreak;
|
|
1962
|
+
};
|
|
1953
1963
|
searchNavTabLabel: {
|
|
1954
1964
|
whiteSpace: string;
|
|
1955
1965
|
fontSize: string;
|
|
@@ -274,6 +274,11 @@ var text = exports.text = _objectSpread(_objectSpread(_objectSpread({
|
|
|
274
274
|
}),
|
|
275
275
|
panelHeaderSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
|
276
276
|
panelHeaderText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
|
277
|
+
requirementsListText: _objectSpread(_objectSpread({}, wordWrap), {}, {
|
|
278
|
+
fontSize: 'sm',
|
|
279
|
+
color: 'text.secondary',
|
|
280
|
+
fontFamily: 'standard'
|
|
281
|
+
}),
|
|
277
282
|
searchNavTabLabel: searchNavTabLabel,
|
|
278
283
|
sectionTitle: sectionTitle,
|
|
279
284
|
subtitle: subtitle,
|
|
@@ -28,7 +28,7 @@ Yarn:
|
|
|
28
28
|
|
|
29
29
|
### Requirements
|
|
30
30
|
|
|
31
|
-
- Node:
|
|
31
|
+
- Node: 20+
|
|
32
32
|
- React: 16.8+
|
|
33
33
|
|
|
34
34
|
### Usage
|
|
@@ -47,7 +47,7 @@ import { AstroProvider } from ‘@pingux/astro’;
|
|
|
47
47
|
|
|
48
48
|
Astro uses [Storybook](https://storybook.js.org/) for component documentation. Once Astro has been cloned, run the following commands to start a local Storybook server:
|
|
49
49
|
|
|
50
|
-
`
|
|
50
|
+
Run `npm install` in the root and package level. Followed by `npx nx start` in lib/astro.
|
|
51
51
|
|
|
52
52
|
The Storybook server defaults to `https://localhost:6006`. This port can be customized by running the command start -p 9009. For example, this will start Storybook on port 9009. More information on customizing Storybook CLI options can be found at the [Storybook docs](https://storybook.js.org/docs/react/api/cli-options).
|
|
53
53
|
|
|
@@ -106,6 +106,9 @@ var iconWrapper = {
|
|
|
106
106
|
lightIndigo: _colorTokens.nextGenColors['indigo-100']
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
+
var common = {
|
|
110
|
+
dark: '#C0C9D5'
|
|
111
|
+
};
|
|
109
112
|
var backgroundBase = _colorTokens.nextGenColors['gray-900'];
|
|
110
113
|
var backgroundSecondary = _colorTokens.nextGenColors['gray-900'];
|
|
111
114
|
var backgroundCard = '#1a1e22';
|
|
@@ -157,5 +160,6 @@ var colors = exports.colors = _objectSpread(_objectSpread({
|
|
|
157
160
|
backgroundHover: backgroundHover,
|
|
158
161
|
font: font,
|
|
159
162
|
badge: badge,
|
|
160
|
-
codeEditor: codeEditor
|
|
163
|
+
codeEditor: codeEditor,
|
|
164
|
+
common: common
|
|
161
165
|
});
|
|
@@ -76,7 +76,7 @@ var critical = exports.critical = {
|
|
|
76
76
|
light: _colorTokens.nextGenColors['red-100']
|
|
77
77
|
};
|
|
78
78
|
var success = exports.success = {
|
|
79
|
-
bright: _colorTokens.nextGenColors['green-
|
|
79
|
+
bright: _colorTokens.nextGenColors['green-500'],
|
|
80
80
|
dark: _colorTokens.nextGenColors['green-800'],
|
|
81
81
|
light: _colorTokens.nextGenColors['green-100']
|
|
82
82
|
};
|
|
@@ -249,6 +249,7 @@ declare const _default: {
|
|
|
249
249
|
};
|
|
250
250
|
border: string;
|
|
251
251
|
hairline: string;
|
|
252
|
+
dark: string;
|
|
252
253
|
};
|
|
253
254
|
font: {
|
|
254
255
|
base: string;
|
|
@@ -1975,6 +1976,12 @@ declare const _default: {
|
|
|
1975
1976
|
color: string;
|
|
1976
1977
|
marginTop: string;
|
|
1977
1978
|
};
|
|
1979
|
+
requirementsListText: {
|
|
1980
|
+
color: string;
|
|
1981
|
+
fontSize: string;
|
|
1982
|
+
fontWeight: number;
|
|
1983
|
+
lineHeight: string;
|
|
1984
|
+
};
|
|
1978
1985
|
stepperTabContent: {
|
|
1979
1986
|
fontSize: string;
|
|
1980
1987
|
color: string;
|
|
@@ -31,6 +31,12 @@ export declare const text: {
|
|
|
31
31
|
color: string;
|
|
32
32
|
marginTop: string;
|
|
33
33
|
};
|
|
34
|
+
requirementsListText: {
|
|
35
|
+
color: string;
|
|
36
|
+
fontSize: string;
|
|
37
|
+
fontWeight: number;
|
|
38
|
+
lineHeight: string;
|
|
39
|
+
};
|
|
34
40
|
stepperTabContent: {
|
|
35
41
|
fontSize: string;
|
|
36
42
|
color: string;
|
|
@@ -216,6 +216,12 @@ var text = exports.text = _objectSpread(_objectSpread({
|
|
|
216
216
|
color: 'font.light',
|
|
217
217
|
marginTop: '0px !important'
|
|
218
218
|
},
|
|
219
|
+
requirementsListText: {
|
|
220
|
+
color: 'font.base',
|
|
221
|
+
fontSize: 'md',
|
|
222
|
+
fontWeight: 0,
|
|
223
|
+
lineHeight: 'body'
|
|
224
|
+
},
|
|
219
225
|
stepperTabContent: stepperTabContent,
|
|
220
226
|
stepperTabContentHeader: stepperTabContentHeader
|
|
221
227
|
});
|
|
@@ -13,7 +13,9 @@ var RequirementsList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13
13
|
var requirements = props.requirements,
|
|
14
14
|
others = _objectWithoutProperties(props, _excluded);
|
|
15
15
|
var _useGetTheme = useGetTheme(),
|
|
16
|
-
icons = _useGetTheme.icons
|
|
16
|
+
icons = _useGetTheme.icons,
|
|
17
|
+
themeState = _useGetTheme.themeState;
|
|
18
|
+
var isOnyx = themeState.isOnyx;
|
|
17
19
|
var SuccessCircle = icons.SuccessCircle,
|
|
18
20
|
ErrorCircle = icons.ErrorCircle,
|
|
19
21
|
WarningIcon = icons.WarningIcon,
|
|
@@ -63,7 +65,7 @@ var RequirementsList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
63
65
|
name: 'Empty Status Icon'
|
|
64
66
|
},
|
|
65
67
|
icon: DefaultCircle,
|
|
66
|
-
color:
|
|
68
|
+
color: isOnyx ? 'common.dark' : 'neutral.40',
|
|
67
69
|
mr: "sm",
|
|
68
70
|
size: "sm",
|
|
69
71
|
"data-testid": "status-icon__".concat(status)
|
|
@@ -79,7 +81,7 @@ var RequirementsList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
79
81
|
width: "100%",
|
|
80
82
|
as: "li"
|
|
81
83
|
}, statusIconRender(req.status, kebabCase(req.name)), ___EmotionJSX(Text, {
|
|
82
|
-
variant: "
|
|
84
|
+
variant: "requirementsListText"
|
|
83
85
|
}, req.name));
|
|
84
86
|
};
|
|
85
87
|
return ___EmotionJSX(Box, _extends({
|
|
@@ -267,6 +267,11 @@ export var text = _objectSpread(_objectSpread(_objectSpread({
|
|
|
267
267
|
}),
|
|
268
268
|
panelHeaderSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
|
269
269
|
panelHeaderText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
|
270
|
+
requirementsListText: _objectSpread(_objectSpread({}, wordWrap), {}, {
|
|
271
|
+
fontSize: 'sm',
|
|
272
|
+
color: 'text.secondary',
|
|
273
|
+
fontFamily: 'standard'
|
|
274
|
+
}),
|
|
270
275
|
searchNavTabLabel: searchNavTabLabel,
|
|
271
276
|
sectionTitle: sectionTitle,
|
|
272
277
|
subtitle: subtitle,
|
|
@@ -28,7 +28,7 @@ Yarn:
|
|
|
28
28
|
|
|
29
29
|
### Requirements
|
|
30
30
|
|
|
31
|
-
- Node:
|
|
31
|
+
- Node: 20+
|
|
32
32
|
- React: 16.8+
|
|
33
33
|
|
|
34
34
|
### Usage
|
|
@@ -47,7 +47,7 @@ import { AstroProvider } from ‘@pingux/astro’;
|
|
|
47
47
|
|
|
48
48
|
Astro uses [Storybook](https://storybook.js.org/) for component documentation. Once Astro has been cloned, run the following commands to start a local Storybook server:
|
|
49
49
|
|
|
50
|
-
`
|
|
50
|
+
Run `npm install` in the root and package level. Followed by `npx nx start` in lib/astro.
|
|
51
51
|
|
|
52
52
|
The Storybook server defaults to `https://localhost:6006`. This port can be customized by running the command start -p 9009. For example, this will start Storybook on port 9009. More information on customizing Storybook CLI options can be found at the [Storybook docs](https://storybook.js.org/docs/react/api/cli-options).
|
|
53
53
|
|
|
@@ -99,6 +99,9 @@ var iconWrapper = {
|
|
|
99
99
|
lightIndigo: nextGenColors['indigo-100']
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
+
var common = {
|
|
103
|
+
dark: '#C0C9D5'
|
|
104
|
+
};
|
|
102
105
|
var backgroundBase = nextGenColors['gray-900'];
|
|
103
106
|
var backgroundSecondary = nextGenColors['gray-900'];
|
|
104
107
|
var backgroundCard = '#1a1e22';
|
|
@@ -150,5 +153,6 @@ export var colors = _objectSpread(_objectSpread({
|
|
|
150
153
|
backgroundHover: backgroundHover,
|
|
151
154
|
font: font,
|
|
152
155
|
badge: badge,
|
|
153
|
-
codeEditor: codeEditor
|
|
156
|
+
codeEditor: codeEditor,
|
|
157
|
+
common: common
|
|
154
158
|
});
|
|
@@ -209,6 +209,12 @@ export var text = _objectSpread(_objectSpread({
|
|
|
209
209
|
color: 'font.light',
|
|
210
210
|
marginTop: '0px !important'
|
|
211
211
|
},
|
|
212
|
+
requirementsListText: {
|
|
213
|
+
color: 'font.base',
|
|
214
|
+
fontSize: 'md',
|
|
215
|
+
fontWeight: 0,
|
|
216
|
+
lineHeight: 'body'
|
|
217
|
+
},
|
|
212
218
|
stepperTabContent: stepperTabContent,
|
|
213
219
|
stepperTabContentHeader: stepperTabContentHeader
|
|
214
220
|
});
|