@bbl-digital/snorre 4.0.21 → 4.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +4 -4
- package/esm/core/BoxedTable/TableBody/index.js +10 -0
- package/esm/core/BoxedTable/TableBody/styles.js +16 -0
- package/esm/core/Button/Button.stories.js +1 -1
- package/esm/core/Dropdown/index.js +0 -1
- package/esm/core/private/ButtonOrLink.js +4 -3
- package/lib/core/Autocomplete/styles.d.ts +39 -1
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.d.ts +39 -1
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableBody/index.d.ts +7 -0
- package/lib/core/BoxedTable/TableBody/index.d.ts.map +1 -0
- package/lib/core/BoxedTable/TableBody/index.js +10 -0
- package/lib/core/BoxedTable/TableBody/styles.d.ts +6 -0
- package/lib/core/BoxedTable/TableBody/styles.d.ts.map +1 -0
- package/lib/core/BoxedTable/TableBody/styles.js +16 -0
- package/lib/core/Button/Button.stories.js +1 -1
- package/lib/core/Button/index.d.ts +54 -3
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/CollapseList/styles.d.ts +39 -1
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/Dropdown/index.d.ts.map +1 -1
- package/lib/core/Dropdown/index.js +0 -1
- package/lib/core/FileInput/styles.d.ts +39 -1
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/InfoButton/styles.d.ts +39 -1
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/private/ButtonOrLink.d.ts +46 -3
- package/lib/core/private/ButtonOrLink.d.ts.map +1 -1
- package/lib/core/private/ButtonOrLink.js +4 -3
- package/lib/layout/Footer/FooterButton/styles.d.ts +3 -3
- package/lib/layout/Footer/FooterLink/styles.d.ts +3 -3
- package/lib/layout/Menu/MenuTop/styles.d.ts +3 -3
- package/package.json +1 -1
- package/esm/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
- package/esm/core/CheckboxController/index.js +0 -22
- package/esm/core/Datepicker/yearMonthForm.js +0 -56
- package/esm/core/EditorOld/config.js +0 -69
- package/esm/core/EditorOld/index.js +0 -147
- package/esm/core/EditorOld/styles.js +0 -65
- package/esm/core/ImageCarousel/index.js +0 -70
- package/esm/core/ImageCarousel/styles.js +0 -58
- package/esm/enums/ModifierKey.js +0 -13
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +0 -7
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts.map +0 -1
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
- package/lib/core/CheckboxController/index.d.ts +0 -1
- package/lib/core/CheckboxController/index.d.ts.map +0 -1
- package/lib/core/CheckboxController/index.js +0 -22
- package/lib/core/Datepicker/yearMonthForm.d.ts +0 -10
- package/lib/core/Datepicker/yearMonthForm.d.ts.map +0 -1
- package/lib/core/Datepicker/yearMonthForm.js +0 -56
- package/lib/core/EditorOld/config.d.ts +0 -56
- package/lib/core/EditorOld/config.d.ts.map +0 -1
- package/lib/core/EditorOld/config.js +0 -69
- package/lib/core/EditorOld/index.d.ts +0 -39
- package/lib/core/EditorOld/index.d.ts.map +0 -1
- package/lib/core/EditorOld/index.js +0 -147
- package/lib/core/EditorOld/styles.d.ts +0 -23
- package/lib/core/EditorOld/styles.d.ts.map +0 -1
- package/lib/core/EditorOld/styles.js +0 -65
- package/lib/core/ImageCarousel/index.d.ts +0 -11
- package/lib/core/ImageCarousel/index.d.ts.map +0 -1
- package/lib/core/ImageCarousel/index.js +0 -70
- package/lib/core/ImageCarousel/styles.d.ts +0 -26
- package/lib/core/ImageCarousel/styles.d.ts.map +0 -1
- package/lib/core/ImageCarousel/styles.js +0 -58
- package/lib/enums/ModifierKey.d.ts +0 -12
- package/lib/enums/ModifierKey.d.ts.map +0 -1
- package/lib/enums/ModifierKey.js +0 -13
package/dist/bundle.js
CHANGED
@@ -138,7 +138,6 @@
|
|
138
138
|
beforeIcon,
|
139
139
|
children,
|
140
140
|
disabled = false,
|
141
|
-
flexAlign,
|
142
141
|
href = '',
|
143
142
|
loading = false,
|
144
143
|
openInNewWindow = false,
|
@@ -153,6 +152,7 @@
|
|
153
152
|
onMouseUp,
|
154
153
|
onEnterKeyPress,
|
155
154
|
onEscapeKeyPress,
|
155
|
+
onCustomKeyPress,
|
156
156
|
onKeyPress,
|
157
157
|
...restProps
|
158
158
|
}, ref) => {
|
@@ -175,10 +175,11 @@
|
|
175
175
|
const handleKeyPress = event => {
|
176
176
|
if (onEnterKeyPress && event.key === 'Enter') onEnterKeyPress(event);
|
177
177
|
if (onEscapeKeyPress && event.key === 'Escape') onEscapeKeyPress(event);
|
178
|
-
if (
|
178
|
+
if (onCustomKeyPress && event.key === onCustomKeyPress.key) onCustomKeyPress.action(event);
|
179
|
+
if (onKeyPress) onKeyPress(event);
|
179
180
|
};
|
180
181
|
React.useEffect(() => {
|
181
|
-
const hasKeyPressEvents = onEnterKeyPress || onEscapeKeyPress || onKeyPress;
|
182
|
+
const hasKeyPressEvents = onEnterKeyPress || onEscapeKeyPress || onKeyPress || onCustomKeyPress;
|
182
183
|
if (!hasKeyPressEvents) return;
|
183
184
|
window.addEventListener('keyup', handleKeyPress);
|
184
185
|
return () => {
|
@@ -753,7 +754,6 @@
|
|
753
754
|
onClick: onClick,
|
754
755
|
css: css,
|
755
756
|
className: className,
|
756
|
-
...restProps,
|
757
757
|
children: label ? label : '- Velg'
|
758
758
|
}), open && jsxRuntime.jsx("div", {
|
759
759
|
css: theme => styles$w.default(theme),
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
2
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
3
|
+
export const BodyWrapper = /*#__PURE__*/_styled("tbody", process.env.NODE_ENV === "production" ? {
|
4
|
+
target: "e1u8g1t20"
|
5
|
+
} : {
|
6
|
+
target: "e1u8g1t20",
|
7
|
+
label: "BodyWrapper"
|
8
|
+
})(process.env.NODE_ENV === "production" ? {
|
9
|
+
name: "ixi98c",
|
10
|
+
styles: "display:flex;flex-direction:column;grid-row-gap:1em"
|
11
|
+
} : {
|
12
|
+
name: "ixi98c",
|
13
|
+
styles: "display:flex;flex-direction:column;grid-row-gap:1em",
|
14
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0JveGVkVGFibGUvVGFibGVCb2R5L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQm94ZWRUYWJsZS9UYWJsZUJvZHkvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBCb2R5V3JhcHBlciA9IHN0eWxlZC50Ym9keWBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgZ3JpZC1yb3ctZ2FwOiAxZW07XG5gXG4iXX0= */",
|
15
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
16
|
+
});
|
@@ -111,7 +111,7 @@ export const EventKeyPresses = {
|
|
111
111
|
render: () => /*#__PURE__*/_jsx(Button, {
|
112
112
|
onEnterKeyPress: () => console.log('Enter pressed'),
|
113
113
|
onEscapeKeyPress: () => console.log('Escape pressed'),
|
114
|
-
|
114
|
+
onCustomKeyPress: {
|
115
115
|
key: 'E',
|
116
116
|
action: e => console.log('Key pressed', e.key)
|
117
117
|
},
|
@@ -7,7 +7,6 @@ const ButtonOrLink = /*#__PURE__*/React.forwardRef(({
|
|
7
7
|
beforeIcon,
|
8
8
|
children,
|
9
9
|
disabled = false,
|
10
|
-
flexAlign,
|
11
10
|
href = '',
|
12
11
|
loading = false,
|
13
12
|
openInNewWindow = false,
|
@@ -22,6 +21,7 @@ const ButtonOrLink = /*#__PURE__*/React.forwardRef(({
|
|
22
21
|
onMouseUp,
|
23
22
|
onEnterKeyPress,
|
24
23
|
onEscapeKeyPress,
|
24
|
+
onCustomKeyPress,
|
25
25
|
onKeyPress,
|
26
26
|
...restProps
|
27
27
|
}, ref) => {
|
@@ -44,10 +44,11 @@ const ButtonOrLink = /*#__PURE__*/React.forwardRef(({
|
|
44
44
|
const handleKeyPress = event => {
|
45
45
|
if (onEnterKeyPress && event.key === 'Enter') onEnterKeyPress(event);
|
46
46
|
if (onEscapeKeyPress && event.key === 'Escape') onEscapeKeyPress(event);
|
47
|
-
if (
|
47
|
+
if (onCustomKeyPress && event.key === onCustomKeyPress.key) onCustomKeyPress.action(event);
|
48
|
+
if (onKeyPress) onKeyPress(event);
|
48
49
|
};
|
49
50
|
useEffect(() => {
|
50
|
-
const hasKeyPressEvents = onEnterKeyPress || onEscapeKeyPress || onKeyPress;
|
51
|
+
const hasKeyPressEvents = onEnterKeyPress || onEscapeKeyPress || onKeyPress || onCustomKeyPress;
|
51
52
|
if (!hasKeyPressEvents) return;
|
52
53
|
window.addEventListener('keyup', handleKeyPress);
|
53
54
|
return () => {
|
@@ -19,7 +19,45 @@ declare const styles: {
|
|
19
19
|
disabled: (theme: IAppTheme) => import("@emotion/utils").SerializedStyles;
|
20
20
|
};
|
21
21
|
export declare const ErrorMessage: (theme: IAppTheme) => import("@emotion/utils").SerializedStyles;
|
22
|
-
export declare const Clear: import("@emotion/styled").StyledComponent<
|
22
|
+
export declare const Clear: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
23
|
+
afterIcon?: import("react").ReactNode;
|
24
|
+
beforeIcon?: import("react").ReactNode;
|
25
|
+
children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
|
26
|
+
disabled?: boolean | undefined;
|
27
|
+
href?: string | undefined;
|
28
|
+
loading?: boolean | undefined;
|
29
|
+
onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
30
|
+
onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
31
|
+
onCustomKeyPress?: {
|
32
|
+
key: string;
|
33
|
+
action: (event: KeyboardEvent) => void;
|
34
|
+
} | undefined;
|
35
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
36
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
37
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
38
|
+
openInNewWindow?: boolean | undefined;
|
39
|
+
rel?: string | undefined;
|
40
|
+
trackingEvent?: string | undefined;
|
41
|
+
trackingName?: string | undefined;
|
42
|
+
type?: "button" | "submit" | "reset" | undefined;
|
43
|
+
target?: string | undefined;
|
44
|
+
download?: any;
|
45
|
+
tabIndex?: number | undefined;
|
46
|
+
} & {
|
47
|
+
success?: boolean | undefined;
|
48
|
+
danger?: boolean | undefined;
|
49
|
+
highlight?: boolean | undefined;
|
50
|
+
outline?: boolean | undefined;
|
51
|
+
nostyle?: boolean | undefined;
|
52
|
+
focusable?: boolean | undefined;
|
53
|
+
border?: string | undefined;
|
54
|
+
css?: import("@emotion/utils").SerializedStyles | undefined;
|
55
|
+
loading?: boolean | undefined;
|
56
|
+
back?: boolean | undefined;
|
57
|
+
small?: boolean | undefined;
|
58
|
+
transparentBg?: boolean | undefined;
|
59
|
+
tabIndex?: number | undefined;
|
60
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
23
61
|
theme?: import("@emotion/react").Theme | undefined;
|
24
62
|
}, {}, {}>;
|
25
63
|
export default styles;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Autocomplete/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAIjD,QAAA,MAAM,MAAM;qBACO,SAAS;;;0BA2DJ,SAAS;;;;kBAuCjB,SAAS;6BA2BE,SAAS;yBAGb,MAAM;iCAOE,MAAM;kCAGL,MAAM;qBAGnB,SAAS;4BAYF,SAAS;qBA4BhB,MAAM;sBAKL,SAAS;CAM5B,CAAA;AAED,eAAO,MAAM,YAAY,UAAW,SAAS,8CAM5C,CAAA;AAED,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Autocomplete/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAIjD,QAAA,MAAM,MAAM;qBACO,SAAS;;;0BA2DJ,SAAS;;;;kBAuCjB,SAAS;6BA2BE,SAAS;yBAGb,MAAM;iCAOE,MAAM;kCAGL,MAAM;qBAGnB,SAAS;4BAYF,SAAS;qBA4BhB,MAAM;sBAKL,SAAS;CAM5B,CAAA;AAED,eAAO,MAAM,YAAY,UAAW,SAAS,8CAM5C,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAcjB,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/lib/core/Box/styles.d.ts
CHANGED
@@ -16,7 +16,45 @@ declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
17
17
|
as?: import("react").ElementType<any> | undefined;
|
18
18
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
19
|
-
declare const CollapseButton: import("@emotion/styled").StyledComponent<
|
19
|
+
declare const CollapseButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
20
|
+
afterIcon?: import("react").ReactNode;
|
21
|
+
beforeIcon?: import("react").ReactNode;
|
22
|
+
children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
|
23
|
+
disabled?: boolean | undefined;
|
24
|
+
href?: string | undefined;
|
25
|
+
loading?: boolean | undefined;
|
26
|
+
onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
27
|
+
onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
28
|
+
onCustomKeyPress?: {
|
29
|
+
key: string;
|
30
|
+
action: (event: KeyboardEvent) => void;
|
31
|
+
} | undefined;
|
32
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
33
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
34
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
35
|
+
openInNewWindow?: boolean | undefined;
|
36
|
+
rel?: string | undefined;
|
37
|
+
trackingEvent?: string | undefined;
|
38
|
+
trackingName?: string | undefined;
|
39
|
+
type?: "button" | "submit" | "reset" | undefined;
|
40
|
+
target?: string | undefined;
|
41
|
+
download?: any;
|
42
|
+
tabIndex?: number | undefined;
|
43
|
+
} & {
|
44
|
+
success?: boolean | undefined;
|
45
|
+
danger?: boolean | undefined;
|
46
|
+
highlight?: boolean | undefined;
|
47
|
+
outline?: boolean | undefined;
|
48
|
+
nostyle?: boolean | undefined;
|
49
|
+
focusable?: boolean | undefined;
|
50
|
+
border?: string | undefined;
|
51
|
+
css?: import("@emotion/utils").SerializedStyles | undefined;
|
52
|
+
loading?: boolean | undefined;
|
53
|
+
back?: boolean | undefined;
|
54
|
+
small?: boolean | undefined;
|
55
|
+
transparentBg?: boolean | undefined;
|
56
|
+
tabIndex?: number | undefined;
|
57
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
20
58
|
theme?: import("@emotion/react").Theme | undefined;
|
21
59
|
}, {}, {}>;
|
22
60
|
export default styles;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Box/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,MAAM;qBACO,SAAS;oBAWV,SAAS;;qBAQR,MAAM;CAGxB,CAAA;AAED,QAAA,MAAM,aAAa;;;;YACC,OAAO;yGAU1B,CAAA;AAED,QAAA,MAAM,cAAc;;;yGAGnB,CAAA;AAED,QAAA,MAAM,cAAc
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Box/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,MAAM;qBACO,SAAS;oBAWV,SAAS;;qBAQR,MAAM;CAGxB,CAAA;AAED,QAAA,MAAM,aAAa;;;;YACC,OAAO;yGAU1B,CAAA;AAED,QAAA,MAAM,cAAc;;;yGAGnB,CAAA;AAED,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGnB,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/BoxedTable/TableBody/index.tsx"],"names":[],"mappings":";AAEA,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AACD,QAAA,MAAM,SAAS,iBAAkB,KAAK,gCAErC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const BodyWrapper: import("@emotion/styled").StyledComponent<{
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, {}>;
|
6
|
+
//# sourceMappingURL=styles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/BoxedTable/TableBody/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;2HAIvB,CAAA"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
2
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
3
|
+
export const BodyWrapper = /*#__PURE__*/_styled("tbody", process.env.NODE_ENV === "production" ? {
|
4
|
+
target: "e1u8g1t20"
|
5
|
+
} : {
|
6
|
+
target: "e1u8g1t20",
|
7
|
+
label: "BodyWrapper"
|
8
|
+
})(process.env.NODE_ENV === "production" ? {
|
9
|
+
name: "ixi98c",
|
10
|
+
styles: "display:flex;flex-direction:column;grid-row-gap:1em"
|
11
|
+
} : {
|
12
|
+
name: "ixi98c",
|
13
|
+
styles: "display:flex;flex-direction:column;grid-row-gap:1em",
|
14
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0JveGVkVGFibGUvVGFibGVCb2R5L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQm94ZWRUYWJsZS9UYWJsZUJvZHkvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBCb2R5V3JhcHBlciA9IHN0eWxlZC50Ym9keWBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgZ3JpZC1yb3ctZ2FwOiAxZW07XG5gXG4iXX0= */",
|
15
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
16
|
+
});
|
@@ -111,7 +111,7 @@ export const EventKeyPresses = {
|
|
111
111
|
render: () => /*#__PURE__*/_jsx(Button, {
|
112
112
|
onEnterKeyPress: () => console.log('Enter pressed'),
|
113
113
|
onEscapeKeyPress: () => console.log('Escape pressed'),
|
114
|
-
|
114
|
+
onCustomKeyPress: {
|
115
115
|
key: 'E',
|
116
116
|
action: e => console.log('Key pressed', e.key)
|
117
117
|
},
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
2
|
-
import React
|
2
|
+
import React from 'react';
|
3
3
|
import { SerializedStyles } from '@emotion/react';
|
4
4
|
import { Props as ButtonOrLinkProps } from '../private/ButtonOrLink';
|
5
|
-
export declare type IProps = ButtonOrLinkProps &
|
5
|
+
export declare type IProps = ButtonOrLinkProps & {
|
6
6
|
/** Success color styling */
|
7
7
|
success?: boolean;
|
8
8
|
/** Danger color styling */
|
@@ -30,6 +30,57 @@ export declare type IProps = ButtonOrLinkProps & HTMLAttributes<HTMLAnchorElemen
|
|
30
30
|
/** Set tabindex */
|
31
31
|
tabIndex?: number;
|
32
32
|
};
|
33
|
-
declare const Button: React.ForwardRefExoticComponent<
|
33
|
+
declare const Button: React.ForwardRefExoticComponent<React.HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
34
|
+
afterIcon?: React.ReactNode;
|
35
|
+
beforeIcon?: React.ReactNode;
|
36
|
+
children: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal;
|
37
|
+
disabled?: boolean | undefined;
|
38
|
+
href?: string | undefined;
|
39
|
+
loading?: boolean | undefined;
|
40
|
+
onClick?: ((event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
41
|
+
onMouseUp?: ((event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
42
|
+
onCustomKeyPress?: {
|
43
|
+
key: string;
|
44
|
+
action: (event: KeyboardEvent) => void;
|
45
|
+
} | undefined;
|
46
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
47
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
48
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
49
|
+
openInNewWindow?: boolean | undefined;
|
50
|
+
rel?: string | undefined;
|
51
|
+
trackingEvent?: string | undefined;
|
52
|
+
trackingName?: string | undefined;
|
53
|
+
type?: "button" | "submit" | "reset" | undefined;
|
54
|
+
target?: string | undefined;
|
55
|
+
download?: any;
|
56
|
+
tabIndex?: number | undefined;
|
57
|
+
} & {
|
58
|
+
/** Success color styling */
|
59
|
+
success?: boolean | undefined;
|
60
|
+
/** Danger color styling */
|
61
|
+
danger?: boolean | undefined;
|
62
|
+
/** Bigger button */
|
63
|
+
highlight?: boolean | undefined;
|
64
|
+
/** Outlined button styling */
|
65
|
+
outline?: boolean | undefined;
|
66
|
+
/** Without style */
|
67
|
+
nostyle?: boolean | undefined;
|
68
|
+
/** Adds focus outline, i.e. for nostyle buttons */
|
69
|
+
focusable?: boolean | undefined;
|
70
|
+
/** Custom border */
|
71
|
+
border?: string | undefined;
|
72
|
+
/** Custom css */
|
73
|
+
css?: SerializedStyles | undefined;
|
74
|
+
/** Shows loader instead of children */
|
75
|
+
loading?: boolean | undefined;
|
76
|
+
/** Backbutton style */
|
77
|
+
back?: boolean | undefined;
|
78
|
+
/** Smaller button size */
|
79
|
+
small?: boolean | undefined;
|
80
|
+
/** Transparent bg toggle */
|
81
|
+
transparentBg?: boolean | undefined;
|
82
|
+
/** Set tabindex */
|
83
|
+
tabIndex?: number | undefined;
|
84
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
34
85
|
export default Button;
|
35
86
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAqB,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,yBAAyB,CAAA;AAOhC,oBAAY,MAAM,GAAG,iBAAiB,GAAG;IACvC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oBAAoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4BAA4B;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;IA5BV,4BAA4B;;IAE5B,2BAA2B;;IAE3B,oBAAoB;;IAEpB,8BAA8B;;IAE9B,oBAAoB;;IAEpB,mDAAmD;;IAEnD,oBAAoB;;IAEpB,iBAAiB;;IAEjB,uCAAuC;;IAEvC,uBAAuB;;IAEvB,0BAA0B;;IAE1B,4BAA4B;;IAE5B,mBAAmB;;2CAsFnB,CAAA;AACF,eAAe,MAAM,CAAA"}
|
@@ -1,6 +1,44 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { IAppTheme } from '../../app-shell/theme';
|
3
|
-
export declare const CollapseButton: import("@emotion/styled").StyledComponent<
|
3
|
+
export declare const CollapseButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
4
|
+
afterIcon?: import("react").ReactNode;
|
5
|
+
beforeIcon?: import("react").ReactNode;
|
6
|
+
children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
|
7
|
+
disabled?: boolean | undefined;
|
8
|
+
href?: string | undefined;
|
9
|
+
loading?: boolean | undefined;
|
10
|
+
onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
11
|
+
onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
12
|
+
onCustomKeyPress?: {
|
13
|
+
key: string;
|
14
|
+
action: (event: KeyboardEvent) => void;
|
15
|
+
} | undefined;
|
16
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
17
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
18
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
19
|
+
openInNewWindow?: boolean | undefined;
|
20
|
+
rel?: string | undefined;
|
21
|
+
trackingEvent?: string | undefined;
|
22
|
+
trackingName?: string | undefined;
|
23
|
+
type?: "button" | "submit" | "reset" | undefined;
|
24
|
+
target?: string | undefined;
|
25
|
+
download?: any;
|
26
|
+
tabIndex?: number | undefined;
|
27
|
+
} & {
|
28
|
+
success?: boolean | undefined;
|
29
|
+
danger?: boolean | undefined;
|
30
|
+
highlight?: boolean | undefined;
|
31
|
+
outline?: boolean | undefined;
|
32
|
+
nostyle?: boolean | undefined;
|
33
|
+
focusable?: boolean | undefined;
|
34
|
+
border?: string | undefined;
|
35
|
+
css?: import("@emotion/utils").SerializedStyles | undefined;
|
36
|
+
loading?: boolean | undefined;
|
37
|
+
back?: boolean | undefined;
|
38
|
+
small?: boolean | undefined;
|
39
|
+
transparentBg?: boolean | undefined;
|
40
|
+
tabIndex?: number | undefined;
|
41
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
4
42
|
theme?: import("@emotion/react").Theme | undefined;
|
5
43
|
}, {}, {}>;
|
6
44
|
export declare const styles: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,eAAO,MAAM,cAAc
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAM1B,CAAA;AAED,eAAO,MAAM,MAAM;qBACA,SAAS;CAyB3B,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Dropdown/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyD,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAY,MAAM,gBAAgB,CAAA;AAK3D,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC5D,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACtC,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Dropdown/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyD,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAY,MAAM,gBAAgB,CAAA;AAK3D,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC5D,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACtC,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAgG9B,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
@@ -19,7 +19,45 @@ export declare const Document: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
20
20
|
as?: import("react").ElementType<any> | undefined;
|
21
21
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
22
|
-
export declare const Delete: import("@emotion/styled").StyledComponent<
|
22
|
+
export declare const Delete: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
23
|
+
afterIcon?: import("react").ReactNode;
|
24
|
+
beforeIcon?: import("react").ReactNode;
|
25
|
+
children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
|
26
|
+
disabled?: boolean | undefined;
|
27
|
+
href?: string | undefined;
|
28
|
+
loading?: boolean | undefined;
|
29
|
+
onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
30
|
+
onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
31
|
+
onCustomKeyPress?: {
|
32
|
+
key: string;
|
33
|
+
action: (event: KeyboardEvent) => void;
|
34
|
+
} | undefined;
|
35
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
36
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
37
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
38
|
+
openInNewWindow?: boolean | undefined;
|
39
|
+
rel?: string | undefined;
|
40
|
+
trackingEvent?: string | undefined;
|
41
|
+
trackingName?: string | undefined;
|
42
|
+
type?: "button" | "submit" | "reset" | undefined;
|
43
|
+
target?: string | undefined;
|
44
|
+
download?: any;
|
45
|
+
tabIndex?: number | undefined;
|
46
|
+
} & {
|
47
|
+
success?: boolean | undefined;
|
48
|
+
danger?: boolean | undefined;
|
49
|
+
highlight?: boolean | undefined;
|
50
|
+
outline?: boolean | undefined;
|
51
|
+
nostyle?: boolean | undefined;
|
52
|
+
focusable?: boolean | undefined;
|
53
|
+
border?: string | undefined;
|
54
|
+
css?: import("@emotion/utils").SerializedStyles | undefined;
|
55
|
+
loading?: boolean | undefined;
|
56
|
+
back?: boolean | undefined;
|
57
|
+
small?: boolean | undefined;
|
58
|
+
transparentBg?: boolean | undefined;
|
59
|
+
tabIndex?: number | undefined;
|
60
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
23
61
|
theme?: import("@emotion/react").Theme | undefined;
|
24
62
|
}, {}, {}>;
|
25
63
|
export declare const FileButton: import("@emotion/styled").StyledComponent<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,OAAO;;;yGAGnB,CAAA;AAED,eAAO,MAAM,WAAW;;;yGAAe,CAAA;AAEvC,eAAO,MAAM,YAAY;;;yGAIxB,CAAA;AACD,eAAO,MAAM,eAAe;;;yGAI3B,CAAA;AAED,eAAO,MAAM,QAAQ;;;2GAcpB,CAAA;AAED,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,OAAO;;;yGAGnB,CAAA;AAED,eAAO,MAAM,WAAW;;;yGAAe,CAAA;AAEvC,eAAO,MAAM,YAAY;;;yGAIxB,CAAA;AACD,eAAO,MAAM,eAAe;;;yGAI3B,CAAA;AAED,eAAO,MAAM,QAAQ;;;2GAcpB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOlB,CAAA;AAED,eAAO,MAAM,UAAU;;;;WACJ,MAAM;;qHAsBxB,CAAA;AAED,eAAO,MAAM,aAAa;;;2GAOzB,CAAA;AAED,eAAO,MAAM,WAAW;;;kHAEvB,CAAA;AAED,eAAO,MAAM,IAAI;;;;;2GAOhB,CAAA;AAED,eAAO,MAAM,KAAK;;;2GAKjB,CAAA;AAED,eAAO,MAAM,YAAY;;;yGAMxB,CAAA"}
|
@@ -1,5 +1,43 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
export declare const StyledButton: import("@emotion/styled").StyledComponent<
|
2
|
+
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
3
|
+
afterIcon?: import("react").ReactNode;
|
4
|
+
beforeIcon?: import("react").ReactNode;
|
5
|
+
children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
|
6
|
+
disabled?: boolean | undefined;
|
7
|
+
href?: string | undefined;
|
8
|
+
loading?: boolean | undefined;
|
9
|
+
onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
10
|
+
onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
11
|
+
onCustomKeyPress?: {
|
12
|
+
key: string;
|
13
|
+
action: (event: KeyboardEvent) => void;
|
14
|
+
} | undefined;
|
15
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
16
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
17
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
18
|
+
openInNewWindow?: boolean | undefined;
|
19
|
+
rel?: string | undefined;
|
20
|
+
trackingEvent?: string | undefined;
|
21
|
+
trackingName?: string | undefined;
|
22
|
+
type?: "button" | "submit" | "reset" | undefined;
|
23
|
+
target?: string | undefined;
|
24
|
+
download?: any;
|
25
|
+
tabIndex?: number | undefined;
|
26
|
+
} & {
|
27
|
+
success?: boolean | undefined;
|
28
|
+
danger?: boolean | undefined;
|
29
|
+
highlight?: boolean | undefined;
|
30
|
+
outline?: boolean | undefined;
|
31
|
+
nostyle?: boolean | undefined;
|
32
|
+
focusable?: boolean | undefined;
|
33
|
+
border?: string | undefined;
|
34
|
+
css?: import("@emotion/utils").SerializedStyles | undefined;
|
35
|
+
loading?: boolean | undefined;
|
36
|
+
back?: boolean | undefined;
|
37
|
+
small?: boolean | undefined;
|
38
|
+
transparentBg?: boolean | undefined;
|
39
|
+
tabIndex?: number | undefined;
|
40
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
3
41
|
theme?: import("@emotion/react").Theme | undefined;
|
4
42
|
}, {}, {}>;
|
5
43
|
export declare const styles: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/InfoButton/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/InfoButton/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOxB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;mBAmFF,MAAM,SAAS,MAAM;CAQrC,CAAA;AAED,eAAO,MAAM,OAAO;;;yGAiCnB,CAAA;AAED,eAAO,MAAM,OAAO;;;2GAInB,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
export declare type ButtonOrLinkTypes = HTMLAnchorElement | HTMLButtonElement;
|
3
3
|
export declare type Props = React.HTMLAttributes<ButtonOrLinkTypes> & {
|
4
|
-
[prop: string]: unknown;
|
5
4
|
/** Icon to display at the end the content. */
|
6
5
|
afterIcon?: React.ReactNode;
|
7
6
|
/** Icon to display at the start the content. */
|
@@ -19,10 +18,11 @@ export declare type Props = React.HTMLAttributes<ButtonOrLinkTypes> & {
|
|
19
18
|
/** Callback fired when the element is released. */
|
20
19
|
onMouseUp?: (event: React.MouseEvent<ButtonOrLinkTypes>) => void;
|
21
20
|
/** Keypress handler, to handle any wanted eventlistener button clicks */
|
22
|
-
|
21
|
+
onCustomKeyPress?: {
|
23
22
|
key: string;
|
24
23
|
action: (event: KeyboardEvent) => void;
|
25
24
|
};
|
25
|
+
onKeyPress?: (event: KeyboardEvent) => void;
|
26
26
|
/** Callback fired when the enter key is released. */
|
27
27
|
onEnterKeyPress?: (event: KeyboardEvent) => void;
|
28
28
|
/** Callback fired when the escape key is released. */
|
@@ -44,6 +44,49 @@ export declare type Props = React.HTMLAttributes<ButtonOrLinkTypes> & {
|
|
44
44
|
/** Set tabindex */
|
45
45
|
tabIndex?: number;
|
46
46
|
};
|
47
|
-
declare const ButtonOrLink: React.ForwardRefExoticComponent<
|
47
|
+
declare const ButtonOrLink: React.ForwardRefExoticComponent<React.HTMLAttributes<ButtonOrLinkTypes> & {
|
48
|
+
/** Icon to display at the end the content. */
|
49
|
+
afterIcon?: React.ReactNode;
|
50
|
+
/** Icon to display at the start the content. */
|
51
|
+
beforeIcon?: React.ReactNode;
|
52
|
+
/** Content within the button or link. */
|
53
|
+
children: NonNullable<React.ReactNode>;
|
54
|
+
/** Whether the element is disabled. */
|
55
|
+
disabled?: boolean | undefined;
|
56
|
+
/** Render as an anchor link with a URL. */
|
57
|
+
href?: string | undefined;
|
58
|
+
/** Whether the element is loading. */
|
59
|
+
loading?: boolean | undefined;
|
60
|
+
/** Callback fired when the element is clicked. */
|
61
|
+
onClick?: ((event: React.MouseEvent<ButtonOrLinkTypes>) => void) | undefined;
|
62
|
+
/** Callback fired when the element is released. */
|
63
|
+
onMouseUp?: ((event: React.MouseEvent<ButtonOrLinkTypes>) => void) | undefined;
|
64
|
+
/** Keypress handler, to handle any wanted eventlistener button clicks */
|
65
|
+
onCustomKeyPress?: {
|
66
|
+
key: string;
|
67
|
+
action: (event: KeyboardEvent) => void;
|
68
|
+
} | undefined;
|
69
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
70
|
+
/** Callback fired when the enter key is released. */
|
71
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
72
|
+
/** Callback fired when the escape key is released. */
|
73
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
74
|
+
/** When a link, open the target in a new window. */
|
75
|
+
openInNewWindow?: boolean | undefined;
|
76
|
+
/** Rel attribute override for if the component has an href */
|
77
|
+
rel?: string | undefined;
|
78
|
+
/** Add a data-tracking-event attribute. */
|
79
|
+
trackingEvent?: string | undefined;
|
80
|
+
/** Add a data-tracking-name attribute. */
|
81
|
+
trackingName?: string | undefined;
|
82
|
+
/** When a button, the type of button. */
|
83
|
+
type?: "button" | "submit" | "reset" | undefined;
|
84
|
+
/** Link target */
|
85
|
+
target?: string | undefined;
|
86
|
+
/** Specifies the link as a download link . */
|
87
|
+
download?: any;
|
88
|
+
/** Set tabindex */
|
89
|
+
tabIndex?: number | undefined;
|
90
|
+
} & React.RefAttributes<any>>;
|
48
91
|
export default ButtonOrLink;
|
49
92
|
//# sourceMappingURL=ButtonOrLink.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ButtonOrLink.d.ts","sourceRoot":"","sources":["../../../src/packages/core/private/ButtonOrLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,oBAAY,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAA;AAErE,oBAAY,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,GAAG;IAC5D,
|
1
|
+
{"version":3,"file":"ButtonOrLink.d.ts","sourceRoot":"","sources":["../../../src/packages/core/private/ButtonOrLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,oBAAY,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAA;AAErE,oBAAY,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,GAAG;IAC5D,8CAA8C;IAC9C,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,gDAAgD;IAChD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,yCAAyC;IACzC,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACtC,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kDAAkD;IAClD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC9D,mDAAmD;IACnD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAChE,yEAAyE;IACzE,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;KACvC,CAAA;IACD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IAC3C,qDAAqD;IACrD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IAChD,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACjD,oDAAoD;IACpD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yCAAyC;IACzC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,YAAY;IA5ChB,8CAA8C;gBAClC,MAAM,SAAS;IAC3B,gDAAgD;iBACnC,MAAM,SAAS;IAC5B,yCAAyC;cAC/B,YAAY,MAAM,SAAS,CAAC;IACtC,uCAAuC;;IAEvC,2CAA2C;;IAE3C,sCAAsC;;IAEtC,kDAAkD;uBAChC,gBAAgB,CAAC,iBAAiB,CAAC,KAAK,IAAI;IAC9D,mDAAmD;yBAC/B,gBAAgB,CAAC,iBAAiB,CAAC,KAAK,IAAI;IAChE,yEAAyE;;aAElE,MAAM;wBACK,aAAa,KAAK,IAAI;;0BAEnB,aAAa,KAAK,IAAI;IAC3C,qDAAqD;+BAC3B,aAAa,KAAK,IAAI;IAChD,uDAAuD;gCAC5B,aAAa,KAAK,IAAI;IACjD,oDAAoD;;IAEpD,8DAA8D;;IAE9D,2CAA2C;;IAE3C,0CAA0C;;IAE1C,yCAAyC;;IAEzC,kBAAkB;;IAElB,8CAA8C;eACnC,GAAG;IACd,mBAAmB;;6BAoHpB,CAAA;AAED,eAAe,YAAY,CAAA"}
|