widenarrow-ui 1.0.24 → 1.0.26
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/.github/workflows/azure-static-web-apps-lively-river-079e14403.yml +47 -0
- package/.storybook/main.ts +1 -1
- package/lib/components/Button/Button.types.d.ts +1 -1
- package/lib/components/Card/Card.d.ts +4 -0
- package/lib/components/Card/Card.stories.d.ts +6 -0
- package/lib/components/Card/Card.types.d.ts +23 -0
- package/lib/components/Card/index.d.ts +1 -0
- package/lib/components/IconButton/IconButton.types.d.ts +3 -1
- package/lib/components/InlineButton/InlineButton.types.d.ts +5 -2
- package/lib/components/Input/Input.d.ts +4 -0
- package/lib/components/Input/Input.stories.d.ts +6 -0
- package/lib/components/Input/Input.types.d.ts +37 -0
- package/lib/components/Input/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +70 -4
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +283 -140
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +282 -137
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.mjs +2 -2
- package/src/components/Box/Box.tsx +3 -2
- package/src/components/Button/Button.tsx +91 -85
- package/src/components/Button/Button.types.ts +1 -1
- package/src/components/Card/Card.module.scss +87 -0
- package/src/components/Card/Card.stories.tsx +66 -0
- package/src/components/Card/Card.tsx +148 -0
- package/src/components/Card/Card.types.ts +26 -0
- package/src/components/Card/index.ts +1 -0
- package/src/components/IconButton/IconButton.tsx +29 -31
- package/src/components/IconButton/IconButton.types.ts +3 -1
- package/src/components/InlineButton/InlineButton.tsx +28 -24
- package/src/components/InlineButton/InlineButton.types.ts +5 -2
- package/src/components/Input/Input.module.scss +140 -0
- package/src/components/Input/Input.stories.tsx +17 -0
- package/src/components/Input/Input.tsx +171 -0
- package/src/components/Input/Input.types.ts +40 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/ListItem/ListItem.stories.tsx +0 -3
- package/src/components/index.ts +2 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Azure Static Web Apps CI/CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- develop
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, synchronize, reopened, closed]
|
|
9
|
+
branches:
|
|
10
|
+
- develop
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build_and_deploy_job:
|
|
14
|
+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
name: Build and Deploy Job
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v3
|
|
19
|
+
with:
|
|
20
|
+
submodules: true
|
|
21
|
+
lfs: false
|
|
22
|
+
- name: Build And Deploy
|
|
23
|
+
id: builddeploy
|
|
24
|
+
uses: Azure/static-web-apps-deploy@v1
|
|
25
|
+
with:
|
|
26
|
+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_RIVER_079E14403 }}
|
|
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"
|
|
30
|
+
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
|
|
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
|
|
35
|
+
###### End of Repository/Build Configurations ######
|
|
36
|
+
|
|
37
|
+
close_pull_request_job:
|
|
38
|
+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
name: Close Pull Request Job
|
|
41
|
+
steps:
|
|
42
|
+
- name: Close Pull Request
|
|
43
|
+
id: closepullrequest
|
|
44
|
+
uses: Azure/static-web-apps-deploy@v1
|
|
45
|
+
with:
|
|
46
|
+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_RIVER_079E14403 }}
|
|
47
|
+
action: "close"
|
package/.storybook/main.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FlexStylingInterface, PaddingInterface } from '../../types/styling.types';
|
|
3
|
+
import { SizeTypes, AspectRatioTypes, IconTypes } from '../../constants';
|
|
4
|
+
export interface CardProps extends PaddingInterface, FlexStylingInterface {
|
|
5
|
+
onClickCallback: () => void;
|
|
6
|
+
imageAspectRatio?: Partial<AspectRatioTypes>;
|
|
7
|
+
imageIcon?: Partial<IconTypes>;
|
|
8
|
+
imageIconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE | SizeTypes.AUTO | undefined;
|
|
9
|
+
withEllipsis?: boolean;
|
|
10
|
+
imageSrc?: string;
|
|
11
|
+
imageAlt?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
wrapperElement?: 'div' | 'li' | 'section' | 'link';
|
|
14
|
+
withHoverEffect?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
topCustomComponent?: ReactNode;
|
|
19
|
+
imageCustomComponent?: ReactNode;
|
|
20
|
+
descriptionComponent?: ReactNode;
|
|
21
|
+
leftFooterComponent?: ReactNode;
|
|
22
|
+
rightFooterComponent?: ReactNode;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Card';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
1
|
+
import { MouseEvent, CSSProperties } from 'react';
|
|
2
2
|
import { IconStyleInterface, SizeStyleInterface } from '../../types/styling.types';
|
|
3
3
|
import { ColorTypes, HierarchyTypes, SizeTypes } from '../../constants';
|
|
4
4
|
export interface IconButtonProps extends IconStyleInterface, SizeStyleInterface {
|
|
5
5
|
className?: string;
|
|
6
6
|
rotateIcon?: boolean;
|
|
7
|
+
id?: string | number;
|
|
7
8
|
rotateIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
|
|
8
9
|
iconClassName?: string;
|
|
9
10
|
type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY;
|
|
10
11
|
onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
style?: CSSProperties;
|
|
11
13
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
12
14
|
iconColor?: Partial<ColorTypes>;
|
|
13
15
|
href?: string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
1
|
+
import { MouseEvent, ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { HierarchyTypes, IconTypes, SizeTypes } from '../../constants';
|
|
3
3
|
export interface InlineButtonProps {
|
|
4
4
|
text: string;
|
|
5
|
+
id?: string | number;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
ariaLabel?: string;
|
|
5
8
|
onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
6
9
|
className?: string;
|
|
7
10
|
children?: ReactNode;
|
|
@@ -14,6 +17,6 @@ export interface InlineButtonProps {
|
|
|
14
17
|
textClassName?: string;
|
|
15
18
|
withEllipsis?: boolean;
|
|
16
19
|
disabled?: boolean | undefined;
|
|
17
|
-
style?:
|
|
20
|
+
style?: CSSProperties;
|
|
18
21
|
toolTip?: string;
|
|
19
22
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RefObject, FocusEvent, ChangeEvent, KeyboardEvent } from 'react';
|
|
2
|
+
import { IconTypes, SizeTypes } from '../../constants';
|
|
3
|
+
export interface IconInterface {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon: Partial<IconTypes>;
|
|
7
|
+
toolTip?: string;
|
|
8
|
+
onClickCallback: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface InputProps {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
autoComplete?: string;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
error?: string;
|
|
19
|
+
iconClassName?: string;
|
|
20
|
+
inputClassName?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
marginBottom?: boolean;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
inputRef?: RefObject<HTMLInputElement>;
|
|
26
|
+
size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
27
|
+
helperText?: string;
|
|
28
|
+
characterLimit?: number;
|
|
29
|
+
type?: 'text' | 'number' | 'password' | 'time' | 'email';
|
|
30
|
+
iconRight?: IconInterface;
|
|
31
|
+
iconLeft?: IconInterface;
|
|
32
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
33
|
+
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
34
|
+
onEnter?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
35
|
+
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
36
|
+
onBlur?: () => void;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './Box';
|
|
2
2
|
export * from './Button';
|
|
3
3
|
export * from './Checkbox';
|
|
4
|
+
export * from './Card';
|
|
4
5
|
export * from './RadioButton';
|
|
5
6
|
export * from './DropDown';
|
|
6
7
|
export * from './DropDownItem';
|
|
@@ -9,6 +10,7 @@ export * from './FormSkeleton';
|
|
|
9
10
|
export * from './Grid';
|
|
10
11
|
export * from './Icon';
|
|
11
12
|
export * from './IconButton';
|
|
13
|
+
export * from './Input';
|
|
12
14
|
export * from './Image';
|
|
13
15
|
export * from './InlineButton';
|
|
14
16
|
export * from './ListItem';
|