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.
Files changed (90) hide show
  1. package/.babelrc.json +15 -15
  2. package/.github/workflows/azure-static-web-apps-lively-river-079e14403.yml +8 -8
  3. package/.storybook/main.ts +66 -25
  4. package/.storybook/preview.js +2 -1
  5. package/lib/assets/svg/emerging.d.ts +6 -0
  6. package/lib/components/Test/Test.d.ts +4 -0
  7. package/lib/components/Test/Test.stories.d.ts +6 -0
  8. package/lib/components/Test/Test.types.d.ts +4 -0
  9. package/lib/components/Test/index.d.ts +1 -0
  10. package/lib/components/index.d.ts +1 -0
  11. package/lib/constants.d.ts +1 -0
  12. package/lib/index.css +1 -1
  13. package/lib/index.d.ts +8 -1
  14. package/lib/index.esm.css +1 -1
  15. package/lib/index.esm.js +356 -190
  16. package/lib/index.esm.js.map +1 -1
  17. package/lib/index.js +356 -189
  18. package/lib/index.js.map +1 -1
  19. package/package.json +21 -15
  20. package/src/assets/svg/emerging.tsx +25 -0
  21. package/src/components/Box/Box.module.scss +1 -1
  22. package/src/components/Box/Box.tsx +3 -2
  23. package/src/components/Button/Button.module.scss +1 -1
  24. package/src/components/Button/Button.tsx +1 -1
  25. package/src/components/Card/Card.module.scss +1 -1
  26. package/src/components/Card/Card.tsx +1 -1
  27. package/src/components/Checkbox/Checkbox.module.scss +1 -1
  28. package/src/components/Checkbox/Checkbox.tsx +1 -1
  29. package/src/components/DropDown/DropDown.module.scss +1 -1
  30. package/src/components/DropDown/DropDown.tsx +1 -1
  31. package/src/components/DropDownItem/DropDownItem.module.scss +8 -7
  32. package/src/components/DropDownItem/DropDownItem.tsx +1 -1
  33. package/src/components/FacetButton/FacetButton.module.scss +24 -25
  34. package/src/components/FacetButton/FacetButton.tsx +1 -1
  35. package/src/components/FormSkeleton/FormSkeleton.module.scss +1 -1
  36. package/src/components/FormSkeleton/FormSkeleton.tsx +1 -1
  37. package/src/components/Grid/Grid.module.scss +1 -1
  38. package/src/components/Grid/Grid.tsx +1 -1
  39. package/src/components/Icon/Icon.module.scss +1 -1
  40. package/src/components/Icon/Icon.tsx +1 -1
  41. package/src/components/Icon/getIconFromConstant.tsx +3 -0
  42. package/src/components/IconButton/IconButton.module.scss +1 -1
  43. package/src/components/IconButton/IconButton.tsx +1 -1
  44. package/src/components/Image/Image.module.scss +1 -1
  45. package/src/components/Image/Image.tsx +1 -1
  46. package/src/components/InlineButton/InlineButton.module.scss +1 -1
  47. package/src/components/InlineButton/InlineButton.tsx +1 -1
  48. package/src/components/Input/Input.module.scss +4 -7
  49. package/src/components/Input/Input.tsx +1 -1
  50. package/src/components/ListItem/ListItem.module.scss +1 -1
  51. package/src/components/ListItem/ListItem.tsx +1 -1
  52. package/src/components/ListSkeleton/ListSkeleton.module.scss +1 -1
  53. package/src/components/ListSkeleton/ListSkeleton.tsx +1 -1
  54. package/src/components/MultiActionButton/MultiActionButton.module.scss +1 -1
  55. package/src/components/MultiActionButton/MultiActionButton.tsx +1 -1
  56. package/src/components/NoDataMessage/NoDataMessage.module.scss +1 -1
  57. package/src/components/NoDataMessage/NoDataMessage.tsx +1 -1
  58. package/src/components/Pagination/Pagination.module.scss +1 -1
  59. package/src/components/Pagination/Pagination.tsx +1 -1
  60. package/src/components/RadioButton/RadioButton.module.scss +1 -1
  61. package/src/components/RadioButton/RadioButton.tsx +1 -1
  62. package/src/components/SelectInput/SelectInput.module.scss +3 -5
  63. package/src/components/SelectInput/SelectInput.tsx +1 -1
  64. package/src/components/Separator/Separator.module.scss +1 -1
  65. package/src/components/Separator/Separator.tsx +1 -1
  66. package/src/components/SkeletonItem/SkeletonItem.module.scss +1 -1
  67. package/src/components/SkeletonItem/SkeletonItem.tsx +1 -1
  68. package/src/components/SolidSpinner/SolidSpinner.module.scss +1 -1
  69. package/src/components/SolidSpinner/SolidSpinner.tsx +4 -3
  70. package/src/components/SortableTable/SortableTable.module.scss +1 -1
  71. package/src/components/SortableTable/SortableTable.tsx +1 -1
  72. package/src/components/SwitchButton/SwitchButton.module.scss +2 -3
  73. package/src/components/SwitchButton/SwitchButton.tsx +1 -1
  74. package/src/components/Test/Test.module.scss +7 -0
  75. package/src/components/Test/Test.stories.tsx +16 -0
  76. package/src/components/Test/Test.tsx +11 -0
  77. package/src/components/Test/Test.types.ts +5 -0
  78. package/src/components/Test/index.ts +1 -0
  79. package/src/components/TextAreaInput/TextAreaInput.module.scss +3 -5
  80. package/src/components/TextAreaInput/TextAreaInput.tsx +1 -1
  81. package/src/components/ToolTip/ToolTip.module.scss +1 -1
  82. package/src/components/ToolTip/ToolTip.tsx +1 -1
  83. package/src/components/Typography/Typography.module.scss +1 -1
  84. package/src/components/Typography/Typography.tsx +1 -1
  85. package/src/components/index.ts +1 -0
  86. package/src/constants.ts +1 -0
  87. package/src/styles/main.scss +3 -0
  88. package/src/styles/mixins.scss +8 -2
  89. /package/src/components/Icon/{Iconography.mdx → _IGNORE_Iconography.txt} +0 -0
  90. /package/src/components/Typography/{Typography.mdx → _IGNORE_Typography.txt} +0 -0
package/.babelrc.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
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
- }
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
- - develop
6
+ - master
7
7
  pull_request:
8
8
  types: [opened, synchronize, reopened, closed]
9
9
  branches:
10
- - develop
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: "upload"
29
- app_build_command: "npm run build-storybook"
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: "/" # App source code path
33
- api_location: "" # Api source code path - optional
34
- output_location: "storybook-static" # Built app content directory - optional
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: "close"
47
+ action: 'close'
@@ -1,46 +1,87 @@
1
- const { getLocalIdentName } = require('css-loader-shorter-classnames');
2
- const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
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
- module.exports = {
7
- stories: ['../src/**/*.mdx', '../src/**/*.stories.tsx'],
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: `@storybook/preset-scss`,
9
+ name: '@storybook/addon-styling-webpack',
15
10
  options: {
16
- rule: {
17
- test: /\.module\.s[ca]ss$/
18
- },
19
- cssLoaderOptions: {
20
- modules: {
21
- localIdentName: '[name]_[local]_[hash:base64:5]'
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;
@@ -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,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ className?: string;
4
+ }
5
+ declare const Icon: FC<Props>;
6
+ export default Icon;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { TestProps } from './Test.types';
3
+ declare const Test: FC<TestProps>;
4
+ export { Test };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Test } from 'src/components/Test';
3
+ declare const meta: Meta<typeof Test>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Test>;
6
+ export declare const Default: Story;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TestProps {
3
+ children: ReactNode;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './Test';
@@ -27,3 +27,4 @@ export * from './ToolTip';
27
27
  export * from './Typography';
28
28
  export * from './SkeletonItem';
29
29
  export * from './NoDataMessage';
30
+ export * from './Test';
@@ -67,6 +67,7 @@ export declare enum IconTypes {
67
67
  DYNAMIC_DATE = "iconDynamicDate",
68
68
  EDIT = "iconEdit",
69
69
  EMBED = "iconEmbed",
70
+ EMERGING = "iconEmerging",
70
71
  ERROR = "iconError",
71
72
  EXIT_TO_APP = "iconExitToApp",
72
73
  EXPAND = "iconExpand",