@pure-ds/storybook 0.3.11 → 0.3.13
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/.storybook/main.js +3 -2
- package/.storybook/preview.js +32 -20
- package/package.json +1 -1
package/.storybook/main.js
CHANGED
|
@@ -20,9 +20,10 @@ const config = {
|
|
|
20
20
|
? normalizePath(resolve(process.env.PDS_STORIES_PATH, '**/*.stories.@(js|jsx|mjs|ts|tsx)'))
|
|
21
21
|
: '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
|
|
22
22
|
// Include user stories from the project root, but only if we are NOT running in the package itself
|
|
23
|
-
...(process.cwd() === resolve(
|
|
23
|
+
...(process.cwd() === resolve(currentDirname, '..') ? [] : [
|
|
24
24
|
normalizePath(resolve(process.cwd(), 'stories/**/*.stories.@(js|jsx|mjs|ts|tsx)')),
|
|
25
|
-
normalizePath(resolve(process.cwd(), 'src/**/*.stories.@(js|jsx|mjs|ts|tsx)'))
|
|
25
|
+
normalizePath(resolve(process.cwd(), 'src/**/*.stories.@(js|jsx|mjs|ts|tsx)')),
|
|
26
|
+
normalizePath(resolve(process.cwd(), 'public/**/*.stories.@(js|jsx|mjs|ts|tsx)'))
|
|
26
27
|
])
|
|
27
28
|
],
|
|
28
29
|
addons: [
|
package/.storybook/preview.js
CHANGED
|
@@ -1267,24 +1267,6 @@ const DocsPage = () => React.createElement(
|
|
|
1267
1267
|
React.createElement(Controls, null)
|
|
1268
1268
|
);
|
|
1269
1269
|
|
|
1270
|
-
const pdsStoryOrder = [
|
|
1271
|
-
'General',
|
|
1272
|
-
['What is PDS', 'Getting Started'],
|
|
1273
|
-
'Foundations',
|
|
1274
|
-
['Colors', 'Typography', 'Icons', 'Spacing', 'Smart Surfaces'],
|
|
1275
|
-
'Primitives',
|
|
1276
|
-
['Buttons', 'Forms', 'Form Groups', 'Alerts', 'Badges', 'Cards', 'Tables', 'Media', 'Accordion'],
|
|
1277
|
-
'Utilities',
|
|
1278
|
-
['Grid System'],
|
|
1279
|
-
'Patterns',
|
|
1280
|
-
['Layout', 'Border Effects', 'Utilities'],
|
|
1281
|
-
'Enhancements',
|
|
1282
|
-
['Mesh Gradients', 'Interactive States', 'Toggles', 'Dropdowns', 'Range Sliders', 'Required Fields'],
|
|
1283
|
-
'Components',
|
|
1284
|
-
['Pds Jsonform', 'Pds Icon', 'Pds Drawer', 'Pds Toaster', 'Pds Tabstrip', 'Pds Splitpanel', 'Pds Scrollrow', 'Pds Richtext', 'Pds Upload'],
|
|
1285
|
-
'Reference'
|
|
1286
|
-
];
|
|
1287
|
-
|
|
1288
1270
|
/** @type { import('@storybook/web-components').Preview } */
|
|
1289
1271
|
const preview = {
|
|
1290
1272
|
decorators: [withGlobalsHandler, withPDS, withHTMLExtractor, withDescription, withRelatedStories],
|
|
@@ -1311,8 +1293,38 @@ const preview = {
|
|
|
1311
1293
|
storySort: {
|
|
1312
1294
|
order: [
|
|
1313
1295
|
'PDS',
|
|
1314
|
-
|
|
1315
|
-
|
|
1296
|
+
[
|
|
1297
|
+
'General',
|
|
1298
|
+
['What is PDS', 'Getting Started'],
|
|
1299
|
+
'Foundations',
|
|
1300
|
+
['Colors', 'Typography', 'Icons', 'Spacing', 'Smart Surfaces'],
|
|
1301
|
+
'Primitives',
|
|
1302
|
+
['Buttons', 'Forms', 'Form Groups', 'Alerts', 'Badges', 'Cards', 'Tables', 'Media', 'Accordion'],
|
|
1303
|
+
'Utilities',
|
|
1304
|
+
['Grid System'],
|
|
1305
|
+
'Patterns',
|
|
1306
|
+
['Layout', 'Border Effects', 'Utilities'],
|
|
1307
|
+
'Enhancements',
|
|
1308
|
+
['Mesh Gradients', 'Interactive States', 'Toggles', 'Dropdowns', 'Range Sliders', 'Required Fields'],
|
|
1309
|
+
'Components',
|
|
1310
|
+
['Pds Jsonform', 'Pds Icon', 'Pds Drawer', 'Pds Toaster', 'Pds Tabstrip', 'Pds Splitpanel', 'Pds Scrollrow', 'Pds Richtext', 'Pds Upload'],
|
|
1311
|
+
'Reference'
|
|
1312
|
+
],
|
|
1313
|
+
'General',
|
|
1314
|
+
['What is PDS', 'Getting Started'],
|
|
1315
|
+
'Foundations',
|
|
1316
|
+
['Colors', 'Typography', 'Icons', 'Spacing', 'Smart Surfaces'],
|
|
1317
|
+
'Primitives',
|
|
1318
|
+
['Buttons', 'Forms', 'Form Groups', 'Alerts', 'Badges', 'Cards', 'Tables', 'Media', 'Accordion'],
|
|
1319
|
+
'Utilities',
|
|
1320
|
+
['Grid System'],
|
|
1321
|
+
'Patterns',
|
|
1322
|
+
['Layout', 'Border Effects', 'Utilities'],
|
|
1323
|
+
'Enhancements',
|
|
1324
|
+
['Mesh Gradients', 'Interactive States', 'Toggles', 'Dropdowns', 'Range Sliders', 'Required Fields'],
|
|
1325
|
+
'Components',
|
|
1326
|
+
['Pds Jsonform', 'Pds Icon', 'Pds Drawer', 'Pds Toaster', 'Pds Tabstrip', 'Pds Splitpanel', 'Pds Scrollrow', 'Pds Richtext', 'Pds Upload'],
|
|
1327
|
+
'Reference',
|
|
1316
1328
|
'*'
|
|
1317
1329
|
]
|
|
1318
1330
|
}
|