widenarrow-ui 1.1.90 → 1.1.92
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/.babelrc.json +15 -15
- package/.github/workflows/azure-static-web-apps-lively-river-079e14403.yml +8 -8
- package/.storybook/main.ts +66 -25
- package/.storybook/preview.js +2 -1
- package/lib/assets/svg/emerging.d.ts +6 -0
- package/lib/components/Test/Test.d.ts +4 -0
- package/lib/components/Test/Test.stories.d.ts +6 -0
- package/lib/components/Test/Test.types.d.ts +4 -0
- package/lib/components/Test/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/constants.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +356 -190
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +356 -189
- package/lib/index.js.map +1 -1
- package/package.json +21 -15
- package/src/assets/svg/emerging.tsx +25 -0
- package/src/components/Box/Box.module.scss +1 -1
- package/src/components/Box/Box.tsx +3 -2
- package/src/components/Button/Button.module.scss +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Card/Card.module.scss +1 -1
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/Checkbox/Checkbox.module.scss +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/DropDown/DropDown.module.scss +1 -1
- package/src/components/DropDown/DropDown.tsx +1 -1
- package/src/components/DropDownItem/DropDownItem.module.scss +8 -7
- package/src/components/DropDownItem/DropDownItem.tsx +1 -1
- package/src/components/FacetButton/FacetButton.module.scss +24 -25
- package/src/components/FacetButton/FacetButton.tsx +1 -1
- package/src/components/FormSkeleton/FormSkeleton.module.scss +1 -1
- package/src/components/FormSkeleton/FormSkeleton.tsx +1 -1
- package/src/components/Grid/Grid.module.scss +1 -1
- package/src/components/Grid/Grid.tsx +1 -1
- package/src/components/Icon/Icon.module.scss +1 -1
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/getIconFromConstant.tsx +3 -0
- package/src/components/IconButton/IconButton.module.scss +1 -1
- package/src/components/IconButton/IconButton.tsx +1 -1
- package/src/components/Image/Image.module.scss +1 -1
- package/src/components/Image/Image.tsx +1 -1
- package/src/components/InlineButton/InlineButton.module.scss +1 -1
- package/src/components/InlineButton/InlineButton.tsx +1 -1
- package/src/components/Input/Input.module.scss +4 -7
- package/src/components/Input/Input.tsx +1 -1
- package/src/components/ListItem/ListItem.module.scss +1 -1
- package/src/components/ListItem/ListItem.tsx +1 -1
- package/src/components/ListSkeleton/ListSkeleton.module.scss +1 -1
- package/src/components/ListSkeleton/ListSkeleton.tsx +1 -1
- package/src/components/MultiActionButton/MultiActionButton.module.scss +1 -1
- package/src/components/MultiActionButton/MultiActionButton.tsx +1 -1
- package/src/components/NoDataMessage/NoDataMessage.module.scss +1 -1
- package/src/components/NoDataMessage/NoDataMessage.tsx +1 -1
- package/src/components/Pagination/Pagination.module.scss +1 -1
- package/src/components/Pagination/Pagination.tsx +1 -1
- package/src/components/RadioButton/RadioButton.module.scss +1 -1
- package/src/components/RadioButton/RadioButton.tsx +1 -1
- package/src/components/SelectInput/SelectInput.module.scss +3 -5
- package/src/components/SelectInput/SelectInput.tsx +1 -1
- package/src/components/Separator/Separator.module.scss +1 -1
- package/src/components/Separator/Separator.tsx +1 -1
- package/src/components/SkeletonItem/SkeletonItem.module.scss +1 -1
- package/src/components/SkeletonItem/SkeletonItem.tsx +1 -1
- package/src/components/SolidSpinner/SolidSpinner.module.scss +1 -1
- package/src/components/SolidSpinner/SolidSpinner.tsx +4 -3
- package/src/components/SortableTable/SortableTable.module.scss +1 -1
- package/src/components/SortableTable/SortableTable.tsx +1 -1
- package/src/components/SwitchButton/SwitchButton.module.scss +2 -3
- package/src/components/SwitchButton/SwitchButton.tsx +1 -1
- package/src/components/Test/Test.module.scss +7 -0
- package/src/components/Test/Test.stories.tsx +16 -0
- package/src/components/Test/Test.tsx +11 -0
- package/src/components/Test/Test.types.ts +5 -0
- package/src/components/Test/index.ts +1 -0
- package/src/components/TextAreaInput/TextAreaInput.module.scss +3 -5
- package/src/components/TextAreaInput/TextAreaInput.tsx +1 -1
- package/src/components/ToolTip/ToolTip.module.scss +1 -1
- package/src/components/ToolTip/ToolTip.tsx +1 -1
- package/src/components/Typography/Typography.module.scss +1 -1
- package/src/components/Typography/Typography.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/constants.ts +1 -0
- package/src/styles/main.scss +3 -0
- package/src/styles/mixins.scss +8 -2
- /package/src/components/Icon/{Iconography.mdx → _IGNORE_Iconography.txt} +0 -0
- /package/src/components/Typography/{Typography.mdx → _IGNORE_Typography.txt} +0 -0
package/.babelrc.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
2
|
+
"sourceType": "unambiguous",
|
|
3
|
+
"presets": [
|
|
4
|
+
[
|
|
5
|
+
"@babel/preset-env",
|
|
6
|
+
{
|
|
7
|
+
"targets": {
|
|
8
|
+
"chrome": 100
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"@babel/preset-typescript",
|
|
13
|
+
"@babel/preset-react"
|
|
14
|
+
],
|
|
15
|
+
"plugins": []
|
|
16
|
+
}
|
|
@@ -3,11 +3,11 @@ name: Azure Static Web Apps CI/CD
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- master
|
|
7
7
|
pull_request:
|
|
8
8
|
types: [opened, synchronize, reopened, closed]
|
|
9
9
|
branches:
|
|
10
|
-
-
|
|
10
|
+
- master
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
build_and_deploy_job:
|
|
@@ -25,13 +25,13 @@ jobs:
|
|
|
25
25
|
with:
|
|
26
26
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_RIVER_079E14403 }}
|
|
27
27
|
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
|
|
28
|
-
action:
|
|
29
|
-
app_build_command:
|
|
28
|
+
action: 'upload'
|
|
29
|
+
app_build_command: 'npm run build-storybook'
|
|
30
30
|
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
|
|
31
31
|
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
|
|
32
|
-
app_location:
|
|
33
|
-
api_location:
|
|
34
|
-
output_location:
|
|
32
|
+
app_location: '/' # App source code path
|
|
33
|
+
api_location: '' # Api source code path - optional
|
|
34
|
+
output_location: 'storybook-static' # Built app content directory - optional
|
|
35
35
|
###### End of Repository/Build Configurations ######
|
|
36
36
|
|
|
37
37
|
close_pull_request_job:
|
|
@@ -44,4 +44,4 @@ jobs:
|
|
|
44
44
|
uses: Azure/static-web-apps-deploy@v1
|
|
45
45
|
with:
|
|
46
46
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_RIVER_079E14403 }}
|
|
47
|
-
action:
|
|
47
|
+
action: 'close'
|
package/.storybook/main.ts
CHANGED
|
@@ -1,46 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const getLocalIdent = getLocalIdentName();
|
|
4
|
-
const path = require('path');
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
2
|
+
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const config: StorybookConfig = {
|
|
5
|
+
framework: '@storybook/react-webpack5',
|
|
8
6
|
addons: [
|
|
9
|
-
'@storybook/addon-links',
|
|
10
7
|
'@storybook/addon-essentials',
|
|
11
|
-
'@storybook/addon-styling',
|
|
12
|
-
'@storybook/addon-actions',
|
|
13
8
|
{
|
|
14
|
-
name:
|
|
9
|
+
name: '@storybook/addon-styling-webpack',
|
|
15
10
|
options: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
rules: [
|
|
12
|
+
// CSS Modules
|
|
13
|
+
{
|
|
14
|
+
test: /\.module\.css$/,
|
|
15
|
+
use: [
|
|
16
|
+
'style-loader',
|
|
17
|
+
{
|
|
18
|
+
loader: 'css-loader',
|
|
19
|
+
options: {
|
|
20
|
+
modules: {
|
|
21
|
+
localIdentName: '[name]__[local]--[hash:base64:5]'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
// Global CSS
|
|
28
|
+
{
|
|
29
|
+
test: /\.css$/,
|
|
30
|
+
exclude: /\.module\.css$/,
|
|
31
|
+
use: ['style-loader', 'css-loader']
|
|
32
|
+
},
|
|
33
|
+
// SCSS Modules
|
|
34
|
+
{
|
|
35
|
+
test: /\.module\.scss$/,
|
|
36
|
+
use: [
|
|
37
|
+
'style-loader',
|
|
38
|
+
{
|
|
39
|
+
loader: 'css-loader',
|
|
40
|
+
options: {
|
|
41
|
+
modules: {
|
|
42
|
+
localIdentName: '[name]__[local]--[hash:base64:5]'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
'sass-loader'
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
// Global SCSS
|
|
50
|
+
{
|
|
51
|
+
test: /\.scss$/,
|
|
52
|
+
exclude: /\.module\.scss$/,
|
|
53
|
+
use: ['style-loader', 'css-loader', 'sass-loader']
|
|
22
54
|
}
|
|
23
|
-
|
|
55
|
+
]
|
|
24
56
|
}
|
|
25
57
|
}
|
|
26
58
|
],
|
|
59
|
+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
27
60
|
webpackFinal: async (config) => {
|
|
28
61
|
if (config.resolve) {
|
|
29
62
|
config.resolve.plugins = [
|
|
30
63
|
...(config.resolve.plugins || []),
|
|
31
64
|
new TsconfigPathsPlugin({
|
|
32
|
-
configFile: path.resolve(__dirname, '../tsconfig.json'),
|
|
33
65
|
extensions: config.resolve.extensions
|
|
34
66
|
})
|
|
35
67
|
];
|
|
68
|
+
config.resolve.extensions?.push('.ts', '.tsx');
|
|
36
69
|
}
|
|
70
|
+
config.module?.rules?.unshift({
|
|
71
|
+
test: /\.(ts|tsx)$/,
|
|
72
|
+
exclude: /node_modules/,
|
|
73
|
+
use: [
|
|
74
|
+
{
|
|
75
|
+
loader: 'babel-loader',
|
|
76
|
+
options: {
|
|
77
|
+
exclude: /node_modules/,
|
|
78
|
+
presets: ['@babel/preset-typescript', ['@babel/preset-react', { runtime: 'automatic' }]]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
});
|
|
37
83
|
return config;
|
|
38
|
-
},
|
|
39
|
-
docs: {
|
|
40
|
-
autodocs: true
|
|
41
|
-
},
|
|
42
|
-
framework: {
|
|
43
|
-
name: '@storybook/react-webpack5',
|
|
44
|
-
options: {}
|
|
45
84
|
}
|
|
46
85
|
};
|
|
86
|
+
|
|
87
|
+
export default config;
|
package/.storybook/preview.js
CHANGED
|
@@ -7,6 +7,7 @@ import 'lazysizes/plugins/attrchange/ls.attrchange';
|
|
|
7
7
|
import 'lazysizes/plugins/bgset/ls.bgset';
|
|
8
8
|
|
|
9
9
|
export const parameters = {
|
|
10
|
-
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
10
|
+
// actions: { argTypesRegex: '^on[A-Z].*' },
|
|
11
11
|
layout: 'centered'
|
|
12
12
|
};
|
|
13
|
+
export const tags = ['autodocs'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Test';
|
package/lib/constants.d.ts
CHANGED