@papillonarts/components 0.48.0 → 0.49.0
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/build/Legacy/Alert/Alert.d.ts +2 -1
- package/build/Legacy/Alert/Alert.d.ts.map +1 -1
- package/build/Legacy/Alert/Alert.type.d.ts +7 -6
- package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
- package/build/Legacy/Alert/__tests__/Alert.doc.md +2 -2
- package/build/Legacy/Alert/index.d.ts +1 -1
- package/build/Legacy/Alert/index.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.d.ts +2 -1
- package/build/Legacy/Blankslate/Blankslate.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.type.d.ts +2 -2
- package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
- package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.d.ts +2 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts +9 -4
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +2 -2
- package/build/Legacy/Button/Button.d.ts +2 -1
- package/build/Legacy/Button/Button.d.ts.map +1 -1
- package/build/Legacy/Button/Button.js +52 -56
- package/build/Legacy/Button/Button.type.d.ts +12 -12
- package/build/Legacy/Button/Button.type.d.ts.map +1 -1
- package/build/Legacy/Button/__tests__/Button.doc.md +6 -6
- package/build/Legacy/Button/index.d.ts +1 -0
- package/build/Legacy/Button/index.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.d.ts +2 -1
- package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.js +2 -1
- package/build/Legacy/Dropdown/Dropdown.type.d.ts +10 -5
- package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
- package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +1 -1
- package/build/Legacy/Dropdown/index.d.ts +1 -1
- package/build/Legacy/Dropdown/index.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts +7 -9
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.js +1 -3
- package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts +5 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +5 -1
- package/build/Legacy/ErrorBoundary/index.d.ts +1 -0
- package/build/Legacy/ErrorBoundary/index.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.d.ts +2 -1
- package/build/Legacy/Form/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts +2 -1
- package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/__tests__/Checkbox.doc.md +1 -1
- package/build/Legacy/Form/Input/Input.d.ts +2 -1
- package/build/Legacy/Form/Input/Input.d.ts.map +1 -1
- package/build/Legacy/Form/Input/Input.type.d.ts +5 -4
- package/build/Legacy/Form/Input/Input.type.d.ts.map +1 -1
- package/build/Legacy/Form/Input/__tests__/Input.doc.md +4 -4
- package/build/Legacy/Form/Radio/Radio.d.ts +2 -1
- package/build/Legacy/Form/Radio/Radio.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/Radio.type.d.ts +2 -1
- package/build/Legacy/Form/Radio/Radio.type.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/__tests__/Radio.doc.md +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts +2 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts +7 -6
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -1
- package/build/Legacy/Grid/DisplayTable/__tests__/DisplayTable.doc.md +3 -3
- package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts +2 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts +15 -7
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/__tests__/FlexGrid.doc.md +3 -3
- package/build/Legacy/Icon/Icon.d.ts +2 -1
- package/build/Legacy/Icon/Icon.d.ts.map +1 -1
- package/build/Legacy/Label/Label.d.ts +2 -1
- package/build/Legacy/Label/Label.d.ts.map +1 -1
- package/build/Legacy/Loader/Loader.d.ts +2 -1
- package/build/Legacy/Loader/Loader.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.d.ts +2 -1
- package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.js +4 -0
- package/build/Legacy/Navigation/Menu/Menu.d.ts +2 -1
- package/build/Legacy/Navigation/Menu/Menu.d.ts.map +1 -1
- package/build/Legacy/Navigation/Menu/Menu.type.d.ts +2 -1
- package/build/Legacy/Navigation/Menu/Menu.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.d.ts +2 -1
- package/build/Legacy/Navigation/TabNav/TabNav.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts +5 -4
- package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/__tests__/TabNav.doc.md +2 -2
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts +2 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts +4 -3
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/__tests__/UnderlineNav.doc.md +1 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts +2 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
- package/build/Legacy/Popover/Popover.d.ts +2 -1
- package/build/Legacy/Popover/Popover.d.ts.map +1 -1
- package/build/Legacy/Progress/Progress.d.ts +2 -1
- package/build/Legacy/Progress/Progress.d.ts.map +1 -1
- package/build/Legacy/Select/Select.d.ts +2 -1
- package/build/Legacy/Select/Select.d.ts.map +1 -1
- package/build/Legacy/SelectMenu/SelectMenu.d.ts +2 -1
- package/build/Legacy/SelectMenu/SelectMenu.d.ts.map +1 -1
- package/build/Legacy/Subhead/Subhead.d.ts +2 -1
- package/build/Legacy/Subhead/Subhead.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts +2 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +5 -0
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts +2 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts +2 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts.map +1 -1
- package/build/Legacy/Toast/Toast.d.ts +2 -1
- package/build/Legacy/Toast/Toast.d.ts.map +1 -1
- package/build/Legacy/type.d.ts +25 -2
- package/build/Legacy/type.d.ts.map +1 -1
- package/build/Modern/Link/Link.d.ts +3 -3
- package/build/Modern/Link/Link.d.ts.map +1 -1
- package/build/Modern/Link/Link.js +1 -3
- package/build/Modern/Pagination/Pagination.d.ts +5 -5
- package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.js +1 -3
- package/build/Modern/Pagination/Pagination.model.d.ts +3 -2
- package/build/Modern/Pagination/Pagination.model.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.model.js +1 -0
- package/build/Modern/Pagination/__tests__/Pagination.doc.md +2 -2
- package/build/Modern/hooks/useMedia.d.ts +2 -2
- package/build/Modern/hooks/useMedia.d.ts.map +1 -1
- package/build/Modern/hooks/useMedia.js +1 -3
- package/build/Modern/index.d.ts +1 -1
- package/build/Modern/type.d.ts +1 -0
- package/build/Modern/type.d.ts.map +1 -1
- package/build/Modern/utils/modern-polymorphic.d.ts +2 -2
- package/build/Modern/utils/modern-polymorphic.d.ts.map +1 -1
- package/build/Modern/utils/testing.d.ts +2 -1
- package/build/Modern/utils/testing.d.ts.map +1 -1
- package/build/Modern/utils/types/ComponentProps.d.ts +2 -1
- package/build/Modern/utils/types/ComponentProps.d.ts.map +1 -1
- package/build/Modern/utils/types/Slots.d.ts +2 -1
- package/build/Modern/utils/types/Slots.d.ts.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { IAlert } from './Alert.type';
|
|
2
|
-
export declare function Alert({ dataTestId, className, variant, children, consent, }: IAlert):
|
|
3
|
+
export declare function Alert({ dataTestId, className, variant, children, consent, }: IAlert): JSX.Element;
|
|
3
4
|
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,GAAG,EAAgC,MAAM,OAAO,CAAA;AAOrF,OAAO,EAA8B,MAAM,EAAE,MAAM,cAAc,CAAA;AAEjE,wBAAgB,KAAK,CAAC,EACpB,UAAoC,EACpC,SAAkC,EAClC,OAA8B,EAC9B,QAAQ,EACR,OAAO,GACR,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAsFtB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
export interface IAlertVariant {
|
|
2
3
|
Default: string;
|
|
3
4
|
Info: string;
|
|
@@ -9,10 +10,10 @@ export interface IAlertVariant {
|
|
|
9
10
|
}
|
|
10
11
|
export declare const AlertVariant: IAlertVariant;
|
|
11
12
|
export interface IAlertDefault {
|
|
12
|
-
DataTestId:
|
|
13
|
-
ClassName: string;
|
|
13
|
+
DataTestId: IAlertDataTestId;
|
|
14
|
+
ClassName: string | null;
|
|
14
15
|
Variant: string;
|
|
15
|
-
Consent: string;
|
|
16
|
+
Consent: string | null;
|
|
16
17
|
}
|
|
17
18
|
export declare const AlertDefault: IAlertDefault;
|
|
18
19
|
export interface IAlertConsentAction {
|
|
@@ -23,17 +24,17 @@ export interface IAlertConsent {
|
|
|
23
24
|
action?: IAlertConsentAction;
|
|
24
25
|
hasInput?: boolean;
|
|
25
26
|
}
|
|
26
|
-
export interface
|
|
27
|
+
export interface IAlertDataTestId {
|
|
27
28
|
default?: string;
|
|
28
29
|
approve?: string;
|
|
29
30
|
cancel?: string;
|
|
30
31
|
input?: string;
|
|
31
32
|
}
|
|
32
33
|
export interface IAlert {
|
|
33
|
-
dataTestId?:
|
|
34
|
+
dataTestId?: IAlertDataTestId;
|
|
34
35
|
className?: string;
|
|
35
36
|
variant?: string;
|
|
36
|
-
children:
|
|
37
|
+
children: ReactNode;
|
|
37
38
|
consent?: IAlertConsent;
|
|
38
39
|
}
|
|
39
40
|
//# sourceMappingURL=Alert.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.type.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B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,MAAM,WAAW,MAAM;IACrB,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB"}
|
|
@@ -10,10 +10,10 @@ Alert all props and variants
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface IAlert {
|
|
13
|
-
dataTestId?:
|
|
13
|
+
dataTestId?: IAlertDataTestId
|
|
14
14
|
className?: string
|
|
15
15
|
variant?: string
|
|
16
|
-
children:
|
|
16
|
+
children: ReactNode
|
|
17
17
|
consent?: IAlertConsent
|
|
18
18
|
}
|
|
19
19
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
import { IBlankslate } from './Blankslate.type';
|
|
2
|
-
export declare function Blankslate({ className, heading, text, variant, hasCleanBackground, }: IBlankslate):
|
|
3
|
+
export declare function Blankslate({ className, heading, text, variant, hasCleanBackground, }: IBlankslate): JSX.Element;
|
|
3
4
|
//# sourceMappingURL=Blankslate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blankslate.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Blankslate/Blankslate.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Blankslate.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Blankslate/Blankslate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAwC,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAErF,wBAAgB,UAAU,CAAC,EACzB,SAAuC,EACvC,OAAO,EACP,IAAI,EACJ,OAAmC,EACnC,kBAAyD,GAC1D,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAe3B"}
|
|
@@ -7,13 +7,13 @@ export interface IBlankslateVariant {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const BlankslateVariant: IBlankslateVariant;
|
|
9
9
|
export interface IBlankslateDefault {
|
|
10
|
-
ClassName: string;
|
|
10
|
+
ClassName: string | null;
|
|
11
11
|
Variant: string;
|
|
12
12
|
HasCleanBackground: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const BlankslateDefault: IBlankslateDefault;
|
|
15
15
|
export interface IBlankslate {
|
|
16
|
-
className?: string;
|
|
16
|
+
className?: string | null;
|
|
17
17
|
heading: string;
|
|
18
18
|
text: string;
|
|
19
19
|
variant?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blankslate.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Blankslate/Blankslate.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,EAAE,kBAM/B,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Blankslate.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Blankslate/Blankslate.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,EAAE,kBAM/B,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,kBAAkB,EAAE,OAAO,CAAA;CAC5B;AAED,eAAO,MAAM,iBAAiB,EAAE,kBAI/B,CAAA;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
import { IBreadcrumb } from './Breadcrumb.type';
|
|
2
|
-
export declare function Breadcrumb({ className, ariaAttr, items, onClick, state, }: IBreadcrumb):
|
|
3
|
+
export declare function Breadcrumb({ className, ariaAttr, items, onClick, state, }: IBreadcrumb): JSX.Element;
|
|
3
4
|
//# sourceMappingURL=Breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAsC,WAAW,EAAuB,MAAM,mBAAmB,CAAA;AAExG,wBAAgB,UAAU,CAAC,EACzB,SAAuC,EACvC,QAAQ,EACR,KAAK,EACL,OAAO,EACP,KAA+B,GAChC,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CA6C3B"}
|
|
@@ -5,7 +5,7 @@ export interface IBreadcrumbState {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const BreadcrumbState: IBreadcrumbState;
|
|
7
7
|
export interface IBreadcrumbDefault {
|
|
8
|
-
ClassName: string;
|
|
8
|
+
ClassName: string | null;
|
|
9
9
|
State: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const BreadcrumbDefault: IBreadcrumbDefault;
|
|
@@ -14,17 +14,22 @@ export interface IAriaAttr {
|
|
|
14
14
|
current: string;
|
|
15
15
|
}
|
|
16
16
|
export interface IItem {
|
|
17
|
-
href: string;
|
|
17
|
+
href: string | null;
|
|
18
18
|
text: string;
|
|
19
19
|
isSelected: boolean;
|
|
20
20
|
}
|
|
21
21
|
export interface IIndexedItem extends IIndexed, IItem {
|
|
22
22
|
}
|
|
23
|
+
export interface IBreadcrumbOnClickValue {
|
|
24
|
+
active: string;
|
|
25
|
+
ariaAttr: IAriaAttr;
|
|
26
|
+
items: IItem[];
|
|
27
|
+
}
|
|
23
28
|
export interface IBreadcrumb {
|
|
24
|
-
className?: string;
|
|
29
|
+
className?: string | null;
|
|
25
30
|
ariaAttr: IAriaAttr;
|
|
26
31
|
items: IItem[];
|
|
27
|
-
onClick: (value:
|
|
32
|
+
onClick: (value: IBreadcrumbOnClickValue) => void;
|
|
28
33
|
state?: string;
|
|
29
34
|
}
|
|
30
35
|
//# sourceMappingURL=Breadcrumb.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/Breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Breadcrumb.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/Breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,KAAK;CAAG;AAExD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,KAAK,EAAE,CAAA;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAA;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -16,10 +16,10 @@ Breadcrumb all props and variants
|
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
18
|
export interface IBreadcrumb {
|
|
19
|
-
className?: string
|
|
19
|
+
className?: string | null
|
|
20
20
|
ariaAttr: IAriaAttr
|
|
21
21
|
items: IItem[]
|
|
22
|
-
onClick: (value) => void
|
|
22
|
+
onClick: (value: IBreadcrumbOnClickValue) => void
|
|
23
23
|
state?: string
|
|
24
24
|
}
|
|
25
25
|
```
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
import { IButton } from './Button.type';
|
|
2
|
-
export declare function Button({ dataTestId, id, className, element, href, text, variant, size, state, icon, onClick, inputType, autoFocus, }: IButton):
|
|
3
|
+
export declare function Button({ dataTestId, id, className, element, href, text, variant, size, state, icon, onClick, inputType, autoFocus, }: IButton): JSX.Element | null;
|
|
3
4
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAOL,OAAO,EAER,MAAM,eAAe,CAAA;AAEtB,wBAAgB,MAAM,CAAC,EACrB,UAAqC,EACrC,EAAqB,EACrB,SAAmC,EACnC,OAA+B,EAC/B,IAAyB,EACzB,IAAI,EACJ,OAA+B,EAC/B,IAAyB,EACzB,KAA2B,EAC3B,IAAyB,EACzB,OAAO,EACP,SAAmC,EACnC,SAAmC,GACpC,EAAE,OAAO,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA8D9B"}
|
|
@@ -46,66 +46,62 @@ function Button(_ref) {
|
|
|
46
46
|
}) : null;
|
|
47
47
|
var fileInputRef = (0, _react.useRef)(null);
|
|
48
48
|
if (element === _Button2.ButtonElement.Button) {
|
|
49
|
-
return (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
(0,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", _objectSpread(_objectSpread({
|
|
50
|
+
"data-testid": dataTestId,
|
|
51
|
+
id: id,
|
|
52
|
+
className: (0, _classnames["default"])(className, _Button["default"].btn, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _Button["default"]['btn-sm'], size === _Button2.ButtonSize.Small), _Button["default"]['btn-large'], size === _Button2.ButtonSize.Large), _Button["default"]['btn-primary'], variant === _Button2.ButtonVariant.Primary), _Button["default"]['btn-danger'], variant === _Button2.ButtonVariant.Danger), _Button["default"]['btn-outline'], variant === _Button2.ButtonVariant.Outline), _Button["default"]['btn-blue'], variant === _Button2.ButtonVariant.Blue), _Button["default"]['btn-orange'], variant === _Button2.ButtonVariant.Orange), _Button["default"]['button-inactive'], state === _Button2.ButtonState.Inactive)),
|
|
53
|
+
type: "button",
|
|
54
|
+
autoFocus: autoFocus // eslint-disable-line
|
|
55
|
+
,
|
|
56
|
+
onClick: function onClick() {
|
|
57
|
+
if (inputType === _Button2.ButtonInputType.File) {
|
|
58
|
+
var _fileInputRef$current;
|
|
59
|
+
(_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0 || _fileInputRef$current.click();
|
|
60
|
+
}
|
|
61
|
+
if (inputType === _Button2.ButtonInputType.Submit) {
|
|
62
|
+
_onClick === null || _onClick === void 0 || _onClick();
|
|
63
|
+
}
|
|
64
|
+
if (!inputType) {
|
|
65
|
+
_onClick === null || _onClick === void 0 || _onClick();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, stateProps), {}, {
|
|
69
|
+
children: [(icon === null || icon === void 0 ? void 0 : icon.alignment) === _Button2.IconAlignment.Left && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
70
|
+
className: _margin["default"]['mr-2'],
|
|
71
|
+
icon: icon.name,
|
|
72
|
+
size: _Icon.IconSize.Small
|
|
73
|
+
}), text, (icon === null || icon === void 0 ? void 0 : icon.alignment) === _Button2.IconAlignment.Right && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
74
|
+
className: _margin["default"]['ml-2'],
|
|
75
|
+
icon: icon.name,
|
|
76
|
+
size: _Icon.IconSize.Small
|
|
77
|
+
}), inputType && inputType === _Button2.ButtonInputType.File && /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
78
|
+
onChange: function onChange() {
|
|
79
|
+
var _fileInputRef$current2, _fileInputRef$current3;
|
|
80
|
+
;
|
|
81
|
+
_onClick === null || _onClick === void 0 || _onClick((_fileInputRef$current2 = (_fileInputRef$current3 = fileInputRef.current) === null || _fileInputRef$current3 === void 0 ? void 0 : _fileInputRef$current3.files) !== null && _fileInputRef$current2 !== void 0 ? _fileInputRef$current2 : null);
|
|
82
|
+
},
|
|
83
|
+
ref: fileInputRef,
|
|
84
|
+
type: "file",
|
|
57
85
|
autoFocus: autoFocus // eslint-disable-line
|
|
58
86
|
,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
if (inputType === _Button2.ButtonInputType.Submit) {
|
|
64
|
-
_onClick();
|
|
65
|
-
}
|
|
66
|
-
if (!inputType) {
|
|
67
|
-
_onClick();
|
|
68
|
-
}
|
|
87
|
+
multiple: true,
|
|
88
|
+
style: {
|
|
89
|
+
display: 'none'
|
|
69
90
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
className: _margin["default"]['mr-2'],
|
|
73
|
-
icon: icon.name,
|
|
74
|
-
size: _Icon.IconSize.Small
|
|
75
|
-
}), text, (icon === null || icon === void 0 ? void 0 : icon.alignment) === _Button2.IconAlignment.Right && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
76
|
-
className: _margin["default"]['ml-2'],
|
|
77
|
-
icon: icon.name,
|
|
78
|
-
size: _Icon.IconSize.Small
|
|
79
|
-
}), inputType && inputType === _Button2.ButtonInputType.File && /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
80
|
-
onChange: function onChange() {
|
|
81
|
-
_onClick(fileInputRef.current.files);
|
|
82
|
-
},
|
|
83
|
-
ref: fileInputRef,
|
|
84
|
-
type: "file",
|
|
85
|
-
autoFocus: autoFocus // eslint-disable-line
|
|
86
|
-
,
|
|
87
|
-
multiple: true,
|
|
88
|
-
style: {
|
|
89
|
-
display: 'none'
|
|
90
|
-
}
|
|
91
|
-
})]
|
|
92
|
-
}))
|
|
93
|
-
);
|
|
91
|
+
})]
|
|
92
|
+
}));
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
// @ts-ignore
|
|
97
94
|
if (element === _Button2.ButtonElement.A) {
|
|
98
|
-
return (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}))
|
|
109
|
-
);
|
|
95
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("a", _objectSpread(_objectSpread({
|
|
96
|
+
className: (0, _classnames["default"])(className, _Button["default"].btn),
|
|
97
|
+
href: href !== null && href !== void 0 ? href : undefined,
|
|
98
|
+
role: "button",
|
|
99
|
+
onClick: function onClick() {
|
|
100
|
+
return _onClick === null || _onClick === void 0 ? void 0 : _onClick();
|
|
101
|
+
}
|
|
102
|
+
}, stateProps), {}, {
|
|
103
|
+
children: text
|
|
104
|
+
}));
|
|
110
105
|
}
|
|
106
|
+
return null;
|
|
111
107
|
}
|
|
@@ -34,16 +34,16 @@ export interface IButtonVariant {
|
|
|
34
34
|
}
|
|
35
35
|
export declare const ButtonVariant: IButtonVariant;
|
|
36
36
|
export interface IButtonDefault {
|
|
37
|
-
DataTestId: string;
|
|
38
|
-
Id: string;
|
|
39
|
-
ClassName: string;
|
|
37
|
+
DataTestId: string | null;
|
|
38
|
+
Id: string | null;
|
|
39
|
+
ClassName: string | null;
|
|
40
40
|
Element: string;
|
|
41
|
-
Href: string;
|
|
41
|
+
Href: string | null;
|
|
42
42
|
Variant: string;
|
|
43
43
|
Size: string;
|
|
44
44
|
State: string;
|
|
45
|
-
Icon: IIcon;
|
|
46
|
-
InputType: string;
|
|
45
|
+
Icon: IIcon | null;
|
|
46
|
+
InputType: string | null;
|
|
47
47
|
AutoFocus: boolean;
|
|
48
48
|
}
|
|
49
49
|
export declare const ButtonDefault: IButtonDefault;
|
|
@@ -52,18 +52,18 @@ export interface IIcon {
|
|
|
52
52
|
alignment?: string;
|
|
53
53
|
}
|
|
54
54
|
export interface IButton {
|
|
55
|
-
dataTestId?: string;
|
|
56
|
-
id?: string;
|
|
57
|
-
className?: string;
|
|
55
|
+
dataTestId?: string | null;
|
|
56
|
+
id?: string | null;
|
|
57
|
+
className?: string | null;
|
|
58
58
|
element?: string;
|
|
59
|
-
href?: string;
|
|
59
|
+
href?: string | null;
|
|
60
60
|
text: string;
|
|
61
61
|
variant?: string;
|
|
62
62
|
size?: string;
|
|
63
63
|
state?: string;
|
|
64
64
|
icon?: IIcon;
|
|
65
|
-
onClick
|
|
66
|
-
inputType?: string;
|
|
65
|
+
onClick?: ((value?: FileList | null) => void) | ((value?: string) => void) | (() => void);
|
|
66
|
+
inputType?: string | null;
|
|
67
67
|
autoFocus?: boolean;
|
|
68
68
|
}
|
|
69
69
|
//# sourceMappingURL=Button.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,EAAE,MAAM,CAAA;CACV;AAED,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,UAAU,EAAE,WAIxB,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd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AAE,OAAO,CAAA;CACpB"}
|
|
@@ -10,18 +10,18 @@ Button all props and variants
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface IButton {
|
|
13
|
-
dataTestId?: string
|
|
14
|
-
id?: string
|
|
15
|
-
className?: string
|
|
13
|
+
dataTestId?: string | null
|
|
14
|
+
id?: string | null
|
|
15
|
+
className?: string | null
|
|
16
16
|
element?: string
|
|
17
|
-
href?: string
|
|
17
|
+
href?: string | null
|
|
18
18
|
text: string
|
|
19
19
|
variant?: string
|
|
20
20
|
size?: string
|
|
21
21
|
state?: string
|
|
22
22
|
icon?: IIcon
|
|
23
|
-
onClick
|
|
24
|
-
inputType?: string
|
|
23
|
+
onClick?: ((value?: FileList | null) => void) | ((value?: string) => void) | (() => void)
|
|
24
|
+
inputType?: string | null
|
|
25
25
|
autoFocus?: boolean
|
|
26
26
|
}
|
|
27
27
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACrH,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
import { IDropdown } from './Dropdown.type';
|
|
2
|
-
export declare function Dropdown({ className, summary, ariaAttr, items, onClick, state, }: IDropdown):
|
|
3
|
+
export declare function Dropdown({ className, summary, ariaAttr, items, onClick, state, }: IDropdown): JSX.Element | null;
|
|
3
4
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,EAAkC,SAAS,EAAuB,MAAM,iBAAiB,CAAA;AAEhG,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,OAAO,EACP,QAAmC,EACnC,KAAK,EACL,OAAO,EACP,KAA6B,GAC9B,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAkFhC"}
|
|
@@ -61,6 +61,7 @@ function Dropdown(_ref) {
|
|
|
61
61
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
62
62
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
63
63
|
onClick: function onClick(e) {
|
|
64
|
+
var _details$current;
|
|
64
65
|
e.preventDefault();
|
|
65
66
|
var newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
66
67
|
_onClick({
|
|
@@ -85,7 +86,7 @@ function Dropdown(_ref) {
|
|
|
85
86
|
}(newIndexItem);
|
|
86
87
|
})
|
|
87
88
|
});
|
|
88
|
-
details.current.removeAttribute('open');
|
|
89
|
+
(_details$current = details.current) === null || _details$current === void 0 || _details$current.removeAttribute('open');
|
|
89
90
|
},
|
|
90
91
|
className: _Dropdown["default"]['dropdown-item'],
|
|
91
92
|
href: href
|
|
@@ -5,7 +5,7 @@ export interface IDropdownState {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const DropdownState: IDropdownState;
|
|
7
7
|
export interface IDropdownDefault {
|
|
8
|
-
ClassName: string;
|
|
8
|
+
ClassName: string | null;
|
|
9
9
|
AriaAttr: IAriaAttr;
|
|
10
10
|
State: string;
|
|
11
11
|
}
|
|
@@ -18,18 +18,23 @@ export interface IItem {
|
|
|
18
18
|
href: string;
|
|
19
19
|
text: string;
|
|
20
20
|
isSelected: boolean;
|
|
21
|
-
id
|
|
22
|
-
'date-modified'
|
|
23
|
-
'date-created'
|
|
21
|
+
id?: string;
|
|
22
|
+
'date-modified'?: string;
|
|
23
|
+
'date-created'?: string;
|
|
24
24
|
}
|
|
25
25
|
export interface IIndexedItem extends IIndexed, IItem {
|
|
26
26
|
}
|
|
27
|
+
export interface IDropdownOnClickValue {
|
|
28
|
+
summary: string;
|
|
29
|
+
ariaAttr?: IAriaAttr;
|
|
30
|
+
items: IItem[];
|
|
31
|
+
}
|
|
27
32
|
export interface IDropdown {
|
|
28
33
|
className?: string;
|
|
29
34
|
summary: string;
|
|
30
35
|
ariaAttr?: IAriaAttr;
|
|
31
36
|
items: IItem[];
|
|
32
|
-
onClick: (value:
|
|
37
|
+
onClick: (value: IDropdownOnClickValue) => void;
|
|
33
38
|
state?: string;
|
|
34
39
|
}
|
|
35
40
|
//# sourceMappingURL=Dropdown.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,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,MAAM,CAAA;CACf"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Dropdown } from './Dropdown';
|
|
2
|
-
export { DropdownState } from './Dropdown.type';
|
|
2
|
+
export { DropdownState, type IDropdown, type IDropdownDefault, type IItem, type IAriaAttr, type IDropdownOnClickValue, } from './Dropdown.type';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EACL,aAAa,EACb,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,GAC3B,MAAM,iBAAiB,CAAA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { IErrorBoundary } from './ErrorBoundary.type';
|
|
3
|
-
export declare class ErrorBoundary extends Component<IErrorBoundary> {
|
|
4
|
-
constructor(props:
|
|
5
|
-
static getDerivedStateFromError(error:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
|
9
|
-
render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>>;
|
|
1
|
+
import { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
|
+
import { IErrorBoundary, IErrorBoundaryState } from './ErrorBoundary.type';
|
|
3
|
+
export declare class ErrorBoundary extends Component<IErrorBoundary, IErrorBoundaryState> {
|
|
4
|
+
constructor(props: IErrorBoundary);
|
|
5
|
+
static getDerivedStateFromError(error: Error): IErrorBoundaryState;
|
|
6
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
7
|
+
render(): ReactNode;
|
|
10
8
|
}
|
|
11
9
|
//# sourceMappingURL=ErrorBoundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,qBAAa,aAAc,SAAQ,SAAS,CAAC,cAAc,EAAE,mBAAmB,CAAC;gBACnE,KAAK,EAAE,cAAc;IAMjC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAKlE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAM3D,MAAM,IAAI,SAAS;CAWpB"}
|
|
@@ -25,7 +25,7 @@ var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
29
|
(0, _inherits2["default"])(ErrorBoundary, _Component);
|
|
30
30
|
return (0, _createClass2["default"])(ErrorBoundary, [{
|
|
31
31
|
key: "componentDidCatch",
|
|
@@ -37,9 +37,7 @@ var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
37
37
|
}, {
|
|
38
38
|
key: "render",
|
|
39
39
|
value: function render() {
|
|
40
|
-
// @ts-ignore
|
|
41
40
|
var hasError = this.state.hasError;
|
|
42
|
-
// @ts-ignore
|
|
43
41
|
var children = this.props.children;
|
|
44
42
|
if (hasError) {
|
|
45
43
|
// You can render any custom fallback UI
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,CAAA;CAClB"}
|