@eleventheye/asui 2.8.1 → 2.9.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/dist/apptypes/ASUI.types.d.ts +14 -4
- package/dist/apptypes/ASUI.types.d.ts.map +1 -1
- package/dist/asbutton/ASButton.d.ts.map +1 -1
- package/dist/asbutton/ASButton.js +3 -3
- package/dist/asbutton/ASButton.types.d.ts +3 -0
- package/dist/asbutton/ASButton.types.d.ts.map +1 -1
- package/dist/asbutton/styles.d.ts +6 -2
- package/dist/asbutton/styles.d.ts.map +1 -1
- package/dist/asbutton/styles.js +2 -1
- package/dist/asiconbutton/ASIconButton.d.ts.map +1 -1
- package/dist/asiconbutton/ASIconButton.js +6 -26
- package/dist/asiconbutton/styles.d.ts +6 -2
- package/dist/asiconbutton/styles.d.ts.map +1 -1
- package/dist/asiconbutton/styles.js +2 -1
- package/dist/asmodal/ASModal.d.ts.map +1 -1
- package/dist/asmodal/ASModal.js +15 -29
- package/dist/asmodal/ASModal.types.d.ts +22 -1
- package/dist/asmodal/ASModal.types.d.ts.map +1 -1
- package/dist/asmodal/index.d.ts +1 -1
- package/dist/asmodal/index.d.ts.map +1 -1
- package/dist/asmodal/styles.d.ts +7 -1
- package/dist/asmodal/styles.d.ts.map +1 -1
- package/dist/asmodal/styles.js +48 -5
- package/dist/asnavbar/desktop/styles.d.ts.map +1 -1
- package/dist/asnavbar/desktop/styles.js +5 -3
- package/dist/asnavbar/navbaritem/ASNavBarItem.d.ts.map +1 -1
- package/dist/asnavbar/navbaritem/ASNavBarItem.js +1 -24
- package/dist/asnavbar/navbaritem/styles.d.ts +5 -1
- package/dist/asnavbar/navbaritem/styles.d.ts.map +1 -1
- package/dist/asnavbar/navbaritem/styles.js +2 -1
- package/dist/asnavbar/navbarpickpanelitem/ASNavBarPickPanelItem.d.ts.map +1 -1
- package/dist/asnavbar/navbarpickpanelitem/ASNavBarPickPanelItem.js +1 -21
- package/dist/asnavbar/navbarpickpanelitem/styles.d.ts +5 -1
- package/dist/asnavbar/navbarpickpanelitem/styles.d.ts.map +1 -1
- package/dist/asnavbar/navbarpickpanelitem/styles.js +2 -1
- package/dist/astappable/ASTappable.d.ts +7 -0
- package/dist/astappable/ASTappable.d.ts.map +1 -0
- package/dist/astappable/ASTappable.js +28 -0
- package/dist/astappable/ASTappable.types.d.ts +5 -0
- package/dist/astappable/ASTappable.types.d.ts.map +1 -0
- package/dist/astappable/ASTappable.types.js +2 -0
- package/dist/astappable/index.d.ts +2 -0
- package/dist/astappable/index.d.ts.map +1 -0
- package/dist/astappable/index.js +6 -0
- package/dist/astextfield/ASTextField.js +1 -1
- package/dist/astextfield/styles.d.ts +12 -4
- package/dist/astextfield/styles.d.ts.map +1 -1
- package/dist/astextfield/styles.js +3 -2
- package/dist/astheme/ASThemeDefault.d.ts.map +1 -1
- package/dist/astheme/ASThemeDefault.js +6 -0
- package/package.json +1 -1
|
@@ -82,6 +82,7 @@ export type ASColorTheme = {
|
|
|
82
82
|
yellow85: string;
|
|
83
83
|
yellow88: string;
|
|
84
84
|
yellow90: string;
|
|
85
|
+
yellow91: string;
|
|
85
86
|
yellow95: string;
|
|
86
87
|
yellow100: string;
|
|
87
88
|
yellow110: string;
|
|
@@ -101,9 +102,11 @@ export type ASColorTheme = {
|
|
|
101
102
|
mainGray22: string;
|
|
102
103
|
mainGray33: string;
|
|
103
104
|
mainGray41: string;
|
|
105
|
+
mainGray47: string;
|
|
104
106
|
mainGray55: string;
|
|
105
107
|
mainGray58: string;
|
|
106
108
|
mainGray66: string;
|
|
109
|
+
mainGray69: string;
|
|
107
110
|
mainGray6d: string;
|
|
108
111
|
mainGray72: string;
|
|
109
112
|
mainGray81: string;
|
|
@@ -182,13 +185,20 @@ export type ASNavBarTheme = {
|
|
|
182
185
|
navBarItemColorHover: string;
|
|
183
186
|
navBarItemColorSelected: string;
|
|
184
187
|
};
|
|
188
|
+
export type ASModalTheme = {
|
|
189
|
+
modalBackgroundColor: string;
|
|
190
|
+
modalBackdropColor: string;
|
|
191
|
+
modalOutlineColor: string;
|
|
192
|
+
modalZIndex: string | number;
|
|
193
|
+
};
|
|
185
194
|
export interface ASTheme {
|
|
186
|
-
navbar: ASNavBarTheme;
|
|
187
|
-
textfield: ASTextFieldTheme;
|
|
188
|
-
dropdown: ASDropdownTheme;
|
|
189
195
|
button: ASButtonTheme;
|
|
190
|
-
loader: ASLoaderTheme;
|
|
191
196
|
colors: ASColorTheme;
|
|
197
|
+
dropdown: ASDropdownTheme;
|
|
198
|
+
loader: ASLoaderTheme;
|
|
199
|
+
modal: ASModalTheme;
|
|
200
|
+
navbar: ASNavBarTheme;
|
|
201
|
+
textfield: ASTextFieldTheme;
|
|
192
202
|
borderRadius: string;
|
|
193
203
|
fontFamily: string;
|
|
194
204
|
fontSize: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASUI.types.d.ts","sourceRoot":"","sources":["../../src/apptypes/ASUI.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;CAOb,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAExE,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEjF,KAAK,kBAAkB,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AAC7D,KAAK,mBAAmB,GAAG,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAC/E,KAAK,iBAAiB,GAAG,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAC9F,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAE3G,eAAO,MAAM,UAAU;;;;CAIb,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],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ASButton.d.ts","sourceRoot":"","sources":["../../src/asbutton/ASButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8DrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -7,7 +7,7 @@ const ASUI_types_1 = require("../apptypes/ASUI.types");
|
|
|
7
7
|
const asloader_1 = tslib_1.__importDefault(require("../asloader"));
|
|
8
8
|
const astheme_1 = tslib_1.__importDefault(require("../astheme"));
|
|
9
9
|
const styles_1 = require("./styles");
|
|
10
|
-
const ASButton = ({ className = '',
|
|
10
|
+
const ASButton = ({ className = '', onTapped = () => undefined, selected = false, toggle = false, size = ASUI_types_1.ComponentSize.Medium, paddingSize = [ASUI_types_1.ComponentSize.Medium, ASUI_types_1.ComponentSize.Medium], theme = astheme_1.default, disabled = false, isLoading = false, children, text, id, style, ...props }) => {
|
|
11
11
|
const [isSelected, setIsSelected] = (0, react_1.useState)(selected);
|
|
12
12
|
(0, react_1.useEffect)(() => {
|
|
13
13
|
setIsSelected(selected);
|
|
@@ -15,7 +15,7 @@ const ASButton = ({ className = '', onClick = () => undefined, selected = false,
|
|
|
15
15
|
const onClickHandler = (e) => {
|
|
16
16
|
if (toggle)
|
|
17
17
|
setIsSelected(!isSelected);
|
|
18
|
-
|
|
18
|
+
onTapped?.(e);
|
|
19
19
|
};
|
|
20
20
|
const onEnableDisableHandler = (node) => {
|
|
21
21
|
if (node) {
|
|
@@ -27,6 +27,6 @@ const ASButton = ({ className = '', onClick = () => undefined, selected = false,
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.ASButtonStyled, { theme: theme, role: "button", ref: onEnableDisableHandler, size: size, "aria-disabled": isLoading ? 'true' : disabled.toString(), className: `${className} ${size} ${isSelected ? 'Selected' : ''}`, "data-buttontext": isLoading ? '' : children ?? text,
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.ASButtonStyled, { theme: theme, role: "button", ref: onEnableDisableHandler, size: size, "aria-disabled": isLoading ? 'true' : disabled.toString(), className: `${className} ${size} ${isSelected ? 'Selected' : ''}`, "data-buttontext": isLoading ? '' : children ?? text, onTapped: onClickHandler, style: style, id: id, ...props, children: (0, jsx_runtime_1.jsxs)(styles_1.ButtonPadding, { size: size, children: [(0, jsx_runtime_1.jsx)(asloader_1.default, { size: ASUI_types_1.ComponentSize.Small, loaderType: ASUI_types_1.LoaderType.Spin, showLoader: isLoading }), !isLoading && (children ?? text), isLoading && (0, jsx_runtime_1.jsx)(styles_1.ASButtonHidden, { children: children ?? text })] }) }));
|
|
31
31
|
};
|
|
32
32
|
exports.default = ASButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MouseEvent, PointerEvent } from 'react';
|
|
1
2
|
import { ASComponentSize, ASPaddingSize, ASTheme } from '../apptypes/ASUI.types';
|
|
2
3
|
type ASButtonOwnProps = {
|
|
3
4
|
className?: string;
|
|
@@ -8,6 +9,8 @@ type ASButtonOwnProps = {
|
|
|
8
9
|
theme?: ASTheme;
|
|
9
10
|
paddingSize?: ASPaddingSize;
|
|
10
11
|
isLoading?: boolean;
|
|
12
|
+
onTapped?: (event: PointerEvent) => void;
|
|
13
|
+
onClick?: (event: MouseEvent) => void;
|
|
11
14
|
} & Omit<React.HTMLProps<HTMLDivElement>, 'size'>;
|
|
12
15
|
export type ASButtonProps = React.PropsWithChildren<ASButtonOwnProps>;
|
|
13
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASButton.types.d.ts","sourceRoot":"","sources":["../../src/asbutton/ASButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,a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,12 @@
|
|
|
1
1
|
import { ASComponentSize, ASTheme } from '../apptypes/ASUI.types';
|
|
2
|
-
export declare const ASButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("
|
|
2
|
+
export declare const ASButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
3
|
+
children?: import("react").ReactNode | undefined;
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>, {
|
|
3
5
|
theme: ASTheme;
|
|
4
6
|
size: ASComponentSize;
|
|
5
|
-
}>> & string
|
|
7
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
8
|
+
children?: import("react").ReactNode | undefined;
|
|
9
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
10
|
export declare const ButtonPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
11
|
size?: ASComponentSize;
|
|
8
12
|
}>> & string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asbutton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asbutton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,wBAAwB,CAAC;AAGjF,eAAO,MAAM,cAAc;;;WAA+B,OAAO;UAAQ,eAAe;;;kGAwJvF,CAAC;AAEF,eAAO,MAAM,aAAa;WAAuB,eAAe;YAG/D,CAAC;AAEF,eAAO,MAAM,cAAc,6NAG1B,CAAC"}
|
package/dist/asbutton/styles.js
CHANGED
|
@@ -4,7 +4,8 @@ exports.ASButtonHidden = exports.ButtonPadding = exports.ASButtonStyled = void 0
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
6
|
const ASUI_types_1 = require("../apptypes/ASUI.types");
|
|
7
|
-
|
|
7
|
+
const astappable_1 = tslib_1.__importDefault(require("../astappable"));
|
|
8
|
+
exports.ASButtonStyled = (0, styled_components_1.default)(astappable_1.default) `
|
|
8
9
|
font-weight: 400;
|
|
9
10
|
min-width: 100px;
|
|
10
11
|
min-height: 20px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASIconButton.d.ts","sourceRoot":"","sources":["../../src/asiconbutton/ASIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ASIconButton.d.ts","sourceRoot":"","sources":["../../src/asiconbutton/ASIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+D7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -7,7 +7,6 @@ const ASUI_types_1 = require("../apptypes/ASUI.types");
|
|
|
7
7
|
const astheme_1 = tslib_1.__importDefault(require("../astheme"));
|
|
8
8
|
const styles_1 = require("./styles");
|
|
9
9
|
const ASIconButton = ({ className = '', onIconButtonTap = () => undefined, selected = false, toggle = false, size = ASUI_types_1.ComponentSize.Medium, iconSize = size === ASUI_types_1.ComponentSize.Small ? 22 : size === ASUI_types_1.ComponentSize.Medium ? 28 : 40, disabled = false, isLoading = false, icon: Icon, theme = astheme_1.default, strokeWidth = 0.1, strokeColor = astheme_1.default.button.buttonBg, fillColor = astheme_1.default.button.buttonColor, color = astheme_1.default.button.buttonColor, id, style, ...props }) => {
|
|
10
|
-
const tapDebounceRef = (0, react_1.useRef)('None');
|
|
11
10
|
const [isSelected, setIsSelected] = (0, react_1.useState)(selected);
|
|
12
11
|
(0, react_1.useEffect)(() => {
|
|
13
12
|
setIsSelected(selected);
|
|
@@ -15,30 +14,6 @@ const ASIconButton = ({ className = '', onIconButtonTap = () => undefined, selec
|
|
|
15
14
|
const clsR = 'background: crimson; color: #000000; border-radius: 10px;';
|
|
16
15
|
const clsY = 'background: goldenrod; color: #000000; border-radius: 10px;';
|
|
17
16
|
const clsG = 'background: forestgreen; color: #000000; border-radius: 10px;';
|
|
18
|
-
const onTap = (e) => {
|
|
19
|
-
if (tapDebounceRef.current === 'None') {
|
|
20
|
-
tapDebounceRef.current = 'Down';
|
|
21
|
-
console.log(`%c ${tapDebounceRef.current} %c`, clsR, '');
|
|
22
|
-
const btnEl = e.currentTarget;
|
|
23
|
-
btnEl.ariaPressed = 'true';
|
|
24
|
-
if (toggle)
|
|
25
|
-
setIsSelected(!isSelected);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const onTapRelease = (e) => {
|
|
29
|
-
if (tapDebounceRef.current === 'Down') {
|
|
30
|
-
tapDebounceRef.current = 'Up';
|
|
31
|
-
const btnEl = e.currentTarget;
|
|
32
|
-
onIconButtonTap(e);
|
|
33
|
-
btnEl.releasePointerCapture(e.pointerId);
|
|
34
|
-
console.log(`%c ${tapDebounceRef.current} %c`, clsY, '');
|
|
35
|
-
setTimeout(() => {
|
|
36
|
-
btnEl.ariaPressed = 'false';
|
|
37
|
-
tapDebounceRef.current = 'None';
|
|
38
|
-
console.log(`%c ${tapDebounceRef.current} %c`, clsG, '');
|
|
39
|
-
}, 400);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
17
|
const onEnableDisableHandler = (node) => {
|
|
43
18
|
if (node) {
|
|
44
19
|
if (disabled || isLoading) {
|
|
@@ -49,6 +24,11 @@ const ASIconButton = ({ className = '', onIconButtonTap = () => undefined, selec
|
|
|
49
24
|
}
|
|
50
25
|
}
|
|
51
26
|
};
|
|
52
|
-
|
|
27
|
+
const onTappedHandler = (e) => {
|
|
28
|
+
if (toggle)
|
|
29
|
+
setIsSelected(!isSelected);
|
|
30
|
+
onIconButtonTap(e);
|
|
31
|
+
};
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.ASIconButtonStyled, { theme: theme, role: "button", ref: onEnableDisableHandler, size: size, "aria-disabled": isLoading ? 'true' : disabled.toString(), className: `${className} ${size} ${isSelected ? 'Selected' : ''}`, onTapped: onTappedHandler, style: style, id: id, ...props, children: (0, jsx_runtime_1.jsx)(Icon, { iconSize: iconSize, fillColor: fillColor, color: strokeColor, strokeWidth: strokeWidth }) }));
|
|
53
33
|
};
|
|
54
34
|
exports.default = ASIconButton;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ASComponentSize, ASTheme } from '../apptypes/ASUI.types';
|
|
2
|
-
export declare const ASIconButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("
|
|
2
|
+
export declare const ASIconButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
3
|
+
children?: import("react").ReactNode | undefined;
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>, {
|
|
3
5
|
theme: ASTheme;
|
|
4
6
|
size: ASComponentSize;
|
|
5
|
-
}>> & string
|
|
7
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
8
|
+
children?: import("react").ReactNode | undefined;
|
|
9
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
10
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asiconbutton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asiconbutton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGlE,eAAO,MAAM,kBAAkB;;;WAA+B,OAAO;UAAQ,eAAe;;;kGAgM3F,CAAC"}
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ASIconButtonStyled = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
|
-
|
|
6
|
+
const astappable_1 = tslib_1.__importDefault(require("../astappable"));
|
|
7
|
+
exports.ASIconButtonStyled = (0, styled_components_1.default)(astappable_1.default) `
|
|
7
8
|
font-weight: 400;
|
|
8
9
|
min-height: 20px;
|
|
9
10
|
min-height: 20px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASModal.d.ts","sourceRoot":"","sources":["../../src/asmodal/ASModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ASModal.d.ts","sourceRoot":"","sources":["../../src/asmodal/ASModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAkDtD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/dist/asmodal/ASModal.js
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
const react_1 = require("react");
|
|
5
6
|
const react_dom_1 = require("react-dom");
|
|
7
|
+
const astheme_1 = tslib_1.__importDefault(require("../astheme"));
|
|
6
8
|
const styles_1 = require("./styles");
|
|
7
|
-
const ASModal = ({ className = '', isOpen = false, onBackdropClick = () => undefined,
|
|
8
|
-
|
|
9
|
+
const ASModal = ({ className = '', isOpen = false, theme = astheme_1.default, showBackdrop = true, onBackdropClick = () => undefined, styleOptions = {
|
|
10
|
+
wrapperOptions: {
|
|
11
|
+
$padding: '16px',
|
|
12
|
+
$margin: '0',
|
|
13
|
+
$borderRadius: '4px',
|
|
14
|
+
$position: 'absolute',
|
|
15
|
+
$width: '300px',
|
|
16
|
+
$height: '500px',
|
|
17
|
+
$backdropFilter: 'blur(2px)',
|
|
18
|
+
$showInnerBorder: true,
|
|
19
|
+
},
|
|
20
|
+
}, ...props }) => {
|
|
9
21
|
const rootEl = document.body ?? document.getElementsByTagName('body')[0];
|
|
10
22
|
(0, react_1.useEffect)(() => {
|
|
11
23
|
if (!rootEl)
|
|
12
24
|
return;
|
|
13
|
-
console.log('What is happening?');
|
|
14
25
|
rootEl.style.overflow = isOpen ? 'hidden' : '';
|
|
15
26
|
return () => {
|
|
16
27
|
if (rootEl) {
|
|
@@ -21,31 +32,6 @@ const ASModal = ({ className = '', isOpen = false, onBackdropClick = () => undef
|
|
|
21
32
|
if (!(isOpen && rootEl)) {
|
|
22
33
|
return null;
|
|
23
34
|
}
|
|
24
|
-
|
|
25
|
-
const clsY = 'background: goldenrod; color: #000000; border-radius: 10px;';
|
|
26
|
-
const clsG = 'background: forestgreen; color: #000000; border-radius: 10px;';
|
|
27
|
-
const onTap = (e) => {
|
|
28
|
-
if (tapDebounceRef.current === 'None') {
|
|
29
|
-
tapDebounceRef.current = 'Down';
|
|
30
|
-
console.log(`%c ${tapDebounceRef.current} %c`, clsR, '');
|
|
31
|
-
const btnEl = e.currentTarget;
|
|
32
|
-
btnEl.ariaPressed = 'true';
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const onTapRelease = (e) => {
|
|
36
|
-
if (tapDebounceRef.current === 'Down') {
|
|
37
|
-
tapDebounceRef.current = 'Up';
|
|
38
|
-
const btnEl = e.currentTarget;
|
|
39
|
-
onBackdropClick(e);
|
|
40
|
-
btnEl.releasePointerCapture(e.pointerId);
|
|
41
|
-
console.log(`%c ${tapDebounceRef.current} %c`, clsY, '');
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
btnEl.ariaPressed = 'false';
|
|
44
|
-
tapDebounceRef.current = 'None';
|
|
45
|
-
console.log(`%c ${tapDebounceRef.current} %c`, clsG, '');
|
|
46
|
-
}, 400);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.ASModalBackdropStyled, { onPointerDown: onTap, onPointerUp: onTapRelease }), props.children] }), rootEl) }));
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.ASModalBackdropStyled, { onTapped: onBackdropClick, theme: theme, "$showBackdropColor": showBackdrop }), (0, jsx_runtime_1.jsx)(styles_1.ASModalChildrenWrapper, { theme: theme, wrapperOptions: styleOptions.wrapperOptions, children: props.children })] }), rootEl) }));
|
|
50
36
|
};
|
|
51
37
|
exports.default = ASModal;
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { PointerEvent } from 'react';
|
|
2
|
+
import { ASTheme } from '../apptypes';
|
|
2
3
|
export type ASModalProps = {
|
|
3
4
|
className?: string;
|
|
5
|
+
theme?: ASTheme;
|
|
4
6
|
isOpen?: boolean;
|
|
7
|
+
showBackdrop?: boolean;
|
|
5
8
|
onBackdropClick?: (e: PointerEvent) => void;
|
|
6
|
-
|
|
9
|
+
styleOptions?: ASModalStyleOptions;
|
|
7
10
|
};
|
|
11
|
+
export type ASModalBackdropStyledProps = {
|
|
12
|
+
theme?: ASTheme;
|
|
13
|
+
$showBackdropColor?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ASModalStyledProps = {
|
|
16
|
+
theme?: ASTheme;
|
|
17
|
+
wrapperOptions?: {
|
|
18
|
+
$padding?: string;
|
|
19
|
+
$margin?: string;
|
|
20
|
+
$borderRadius?: string;
|
|
21
|
+
$position?: string;
|
|
22
|
+
$width?: string;
|
|
23
|
+
$height?: string;
|
|
24
|
+
$backdropFilter?: string;
|
|
25
|
+
$showInnerBorder?: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type ASModalStyleOptions = {} & ASModalBackdropStyledProps & ASModalStyledProps;
|
|
8
29
|
//# sourceMappingURL=ASModal.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASModal.types.d.ts","sourceRoot":"","sources":["../../src/asmodal/ASModal.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ASModal.types.d.ts","sourceRoot":"","sources":["../../src/asmodal/ASModal.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,EAAE,GAAG,0BAA0B,GAAG,kBAAkB,CAAC"}
|
package/dist/asmodal/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/asmodal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/asmodal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/asmodal/styles.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ASModalBackdropStyledProps, ASModalStyledProps } from './ASModal.types';
|
|
2
|
+
export declare const ASModalBackdropStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
3
|
+
children?: import("react").ReactNode | undefined;
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>, ASModalBackdropStyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
5
|
+
children?: import("react").ReactNode | undefined;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
7
|
+
export declare const ASModalChildrenWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASModalStyledProps>> & string;
|
|
2
8
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asmodal/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asmodal/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,eAAO,MAAM,qBAAqB;;;;kGAcjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,uPAmClC,CAAC"}
|
package/dist/asmodal/styles.js
CHANGED
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ASModalBackdropStyled = void 0;
|
|
3
|
+
exports.ASModalChildrenWrapper = exports.ASModalBackdropStyled = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const astappable_1 = tslib_1.__importDefault(require("../astappable"));
|
|
7
|
+
exports.ASModalBackdropStyled = (0, styled_components_1.default)(astappable_1.default) `
|
|
8
8
|
position: fixed;
|
|
9
9
|
inset: 0;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
12
|
-
background
|
|
13
|
-
z-index:
|
|
12
|
+
background: ${(props) => (props.$showBackdropColor ? props.theme.modal.modalBackdropColor : 'transparent')};
|
|
13
|
+
z-index: ${(props) => props.theme.modal.modalZIndex};
|
|
14
|
+
opacity: 1;
|
|
15
|
+
|
|
16
|
+
transition: opacity 0.3s cubic-bezier(0.39, 0.575, 0.565, 1);
|
|
17
|
+
|
|
18
|
+
@starting-style {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
exports.ASModalChildrenWrapper = styled_components_1.default.div `
|
|
23
|
+
position: ${(props) => props.wrapperOptions?.$position || 'absolute'};
|
|
24
|
+
background: ${(props) => props.theme.modal.modalBackgroundColor};
|
|
25
|
+
padding: ${(props) => props.wrapperOptions?.$padding || '0'};
|
|
26
|
+
margin: ${(props) => props.wrapperOptions?.$margin || '0'};
|
|
27
|
+
outline: thin solid ${(props) => props.theme.modal.modalOutlineColor};
|
|
28
|
+
border-radius: ${(props) => props.wrapperOptions?.$borderRadius || '6px'};
|
|
29
|
+
width: ${(props) => props.wrapperOptions?.$width || '300px'};
|
|
30
|
+
height: ${(props) => props.wrapperOptions?.$height || '500px'};
|
|
31
|
+
box-shadow: inset 0 0 6px 1px ${(props) => props.theme.colors.mainGray81};
|
|
32
|
+
backdrop-filter: ${(props) => props.wrapperOptions?.$backdropFilter || 'blur(2px)'};
|
|
33
|
+
left: 50%;
|
|
34
|
+
top: 50%;
|
|
35
|
+
transform: translate(-50%, -50%);
|
|
36
|
+
opacity: 1;
|
|
37
|
+
transition: opacity 1.2s cubic-bezier(0.39, 0.575, 0.565, 1) 0.3s;
|
|
38
|
+
z-index: ${(props) => parseInt(String(props.theme.modal.modalZIndex)) + 1};
|
|
39
|
+
|
|
40
|
+
@starting-style {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:after {
|
|
45
|
+
display: ${(props) => (props.wrapperOptions?.$showInnerBorder ? 'block' : 'none')};
|
|
46
|
+
content: '';
|
|
47
|
+
box-shadow: inset -1px -1px 2px 0 #fff6, inset 1px 2px 6px 1px rgba(0, 0, 0, 0.212),
|
|
48
|
+
inset 1px 1px 4px 1px rgba(0, 0, 0, 0.512);
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: 0;
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
margin: 16px;
|
|
53
|
+
user-select: none;
|
|
54
|
+
touch-events: none;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
14
57
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/desktop/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIpD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAsBD,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/desktop/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIpD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAsBD,eAAO,MAAM,gBAAgB,wPAqB5B,CAAC;AAEF,UAAU,8BAA8B;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,qQAc/B,CAAC;AAEF,UAAU,uBAAuB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,kBAAkB,4PAwC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,6NAInC,CAAC;AAEF,eAAO,MAAM,uBAAuB,wPAYnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,wPAiBnC,CAAC"}
|
|
@@ -41,7 +41,8 @@ exports.ASNavBarDWStyled = styled_components_1.default.div `
|
|
|
41
41
|
background-color: ${({ theme }) => theme.navbar.navBarBackgroundColor};
|
|
42
42
|
box-shadow: ${({ theme }) => theme.navbar.navBarBoxShadow};
|
|
43
43
|
overflow: hidden;
|
|
44
|
-
|
|
44
|
+
contain: content;
|
|
45
|
+
max-width: 100%;
|
|
45
46
|
|
|
46
47
|
${dimensionsForSizes}
|
|
47
48
|
`;
|
|
@@ -73,6 +74,7 @@ exports.ASNavBarItemStyled = styled_components_1.default.div `
|
|
|
73
74
|
z-index: 1;
|
|
74
75
|
white-space: nowrap;
|
|
75
76
|
user-select: none;
|
|
77
|
+
overflow-x: overlay;
|
|
76
78
|
|
|
77
79
|
${dimensionsForSizes}
|
|
78
80
|
|
|
@@ -111,7 +113,7 @@ exports.ASNavBarScrollableItems = styled_components_1.default.div `
|
|
|
111
113
|
flex-direction: row;
|
|
112
114
|
position: relative;
|
|
113
115
|
overflow: hidden;
|
|
114
|
-
width:
|
|
116
|
+
max-width: 100%;
|
|
115
117
|
padding: ${({ $hideNavArrowButtonsInDW }) => ($hideNavArrowButtonsInDW ? '0' : '0 44px')};
|
|
116
118
|
height: 95%;
|
|
117
119
|
${ASSharedStyles_1.HideScrollBarStyle}
|
|
@@ -124,7 +126,7 @@ exports.ASScrollContainerStyled = styled_components_1.default.div `
|
|
|
124
126
|
position: relative;
|
|
125
127
|
overflow: hidden;
|
|
126
128
|
overflow-x: auto;
|
|
127
|
-
width: 100
|
|
129
|
+
width: 100%;
|
|
128
130
|
gap: 16px;
|
|
129
131
|
scroll-behavior: smooth;
|
|
130
132
|
scroll-snap-type: x mandatory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASNavBarItem.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbaritem/ASNavBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ASNavBarItem.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbaritem/ASNavBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuE7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -7,11 +7,7 @@ const apptypes_1 = require("../../apptypes");
|
|
|
7
7
|
const astheme_1 = tslib_1.__importDefault(require("../../astheme"));
|
|
8
8
|
const styles_1 = require("../styles");
|
|
9
9
|
const styles_2 = require("./styles");
|
|
10
|
-
const clsR = 'background: crimson; color: #000000; border-radius: 10px;';
|
|
11
|
-
const clsY = 'background: goldenrod; color: #000000; border-radius: 10px;';
|
|
12
|
-
const clsG = 'background: forestgreen; color: #000000; border-radius: 10px;';
|
|
13
10
|
const ASNavBarItem = ({ className = '', theme = astheme_1.default, displayText = '---', icon, selected = false, itemId, itemIndex = 0, size = apptypes_1.ComponentSize.Medium, onItemClick = () => undefined, onItemResized = () => undefined, }) => {
|
|
14
|
-
const tapDebounceRef = (0, react_1.useRef)('None');
|
|
15
11
|
const [navItemSizeInitialized, setNavSizeInitialized] = (0, react_1.useState)(false);
|
|
16
12
|
const navItemWidthRef = (0, react_1.useRef)(0);
|
|
17
13
|
const navBarItemRef = (0, react_1.useRef)(null);
|
|
@@ -46,25 +42,6 @@ const ASNavBarItem = ({ className = '', theme = astheme_1.default, displayText =
|
|
|
46
42
|
(0, react_1.useEffect)(() => {
|
|
47
43
|
isNavBarItemSelected.current = selected;
|
|
48
44
|
}, [selected]);
|
|
49
|
-
|
|
50
|
-
if (tapDebounceRef.current === 'None') {
|
|
51
|
-
tapDebounceRef.current = 'Down';
|
|
52
|
-
const btnEl = e.currentTarget;
|
|
53
|
-
btnEl.ariaPressed = 'true';
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const onTapRelease = (e) => {
|
|
57
|
-
if (tapDebounceRef.current === 'Down') {
|
|
58
|
-
tapDebounceRef.current = 'Up';
|
|
59
|
-
const btnEl = e.currentTarget;
|
|
60
|
-
onItemClickHandler(e);
|
|
61
|
-
btnEl.releasePointerCapture(e.pointerId);
|
|
62
|
-
setTimeout(() => {
|
|
63
|
-
btnEl.ariaPressed = 'false';
|
|
64
|
-
tapDebounceRef.current = 'None';
|
|
65
|
-
}, 400);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
return ((0, jsx_runtime_1.jsxs)(styles_2.ASNavBarItemStyled, { id: itemId, theme: theme, title: displayText, ref: navBarItemRef, className: `${className} ${size}`, "$selected": selected, onPointerDown: onTap, onPointerUp: onTapRelease, children: [icon && ((0, jsx_runtime_1.jsx)(styles_1.ASNavBarLeadingIconPadding, { theme: theme, "$selected": selected, "aria-invalid": true, "aria-hidden": true, children: icon })), displayText] }));
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(styles_2.ASNavBarItemStyled, { id: itemId, theme: theme, title: displayText, ref: navBarItemRef, className: `${className} ${size}`, "$selected": selected, onTapped: onItemClickHandler, children: [icon && ((0, jsx_runtime_1.jsx)(styles_1.ASNavBarLeadingIconPadding, { theme: theme, "$selected": selected, "aria-invalid": true, "aria-hidden": true, children: icon })), displayText] }));
|
|
69
46
|
};
|
|
70
47
|
exports.default = ASNavBarItem;
|
|
@@ -6,6 +6,10 @@ interface ASNavBarItemStyledProps {
|
|
|
6
6
|
$margin?: string;
|
|
7
7
|
$padding?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const ASNavBarItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("
|
|
9
|
+
export declare const ASNavBarItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../astappable/ASTappable.types").ASTappableProps & {
|
|
10
|
+
children?: import("react").ReactNode | undefined;
|
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, ASNavBarItemStyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../astappable/ASTappable.types").ASTappableProps & {
|
|
12
|
+
children?: import("react").ReactNode | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
10
14
|
export {};
|
|
11
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbaritem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbaritem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAKpD,UAAU,uBAAuB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,kBAAkB;;;;kGAoE9B,CAAC"}
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ASNavBarItemStyled = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
|
+
const astappable_1 = tslib_1.__importDefault(require("../../astappable"));
|
|
6
7
|
const astheme_1 = tslib_1.__importDefault(require("../../astheme"));
|
|
7
8
|
const styles_1 = require("../styles");
|
|
8
|
-
exports.ASNavBarItemStyled = styled_components_1.default.
|
|
9
|
+
exports.ASNavBarItemStyled = (0, styled_components_1.default)(astappable_1.default) `
|
|
9
10
|
font-family: ${({ theme }) => theme.fontFamily};
|
|
10
11
|
display: flex;
|
|
11
12
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASNavBarPickPanelItem.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbarpickpanelitem/ASNavBarPickPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ASNavBarPickPanelItem.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbarpickpanelitem/ASNavBarPickPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuEtD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -8,7 +8,6 @@ const astheme_1 = tslib_1.__importDefault(require("../../astheme"));
|
|
|
8
8
|
const styles_1 = require("../styles");
|
|
9
9
|
const styles_2 = require("./styles");
|
|
10
10
|
const ASNavBarPickPanelItem = ({ className = '', theme = astheme_1.default, displayText = '---', icon, selected = false, itemId, itemIndex = 0, size = apptypes_1.ComponentSize.Medium, onItemClick = () => undefined, onItemResized = () => undefined, }) => {
|
|
11
|
-
const tapDebounceRef = (0, react_1.useRef)('None');
|
|
12
11
|
const [navItemSizeInitialized, setNavSizeInitialized] = (0, react_1.useState)(false);
|
|
13
12
|
const navItemWidthRef = (0, react_1.useRef)(0);
|
|
14
13
|
const navBarItemRef = (0, react_1.useRef)(null);
|
|
@@ -43,25 +42,6 @@ const ASNavBarPickPanelItem = ({ className = '', theme = astheme_1.default, disp
|
|
|
43
42
|
(0, react_1.useEffect)(() => {
|
|
44
43
|
isNavBarItemSelected.current = selected;
|
|
45
44
|
}, [selected]);
|
|
46
|
-
|
|
47
|
-
if (tapDebounceRef.current === 'None') {
|
|
48
|
-
tapDebounceRef.current = 'Down';
|
|
49
|
-
const btnEl = e.currentTarget;
|
|
50
|
-
btnEl.ariaPressed = 'true';
|
|
51
|
-
onItemClickHandler(e);
|
|
52
|
-
btnEl.releasePointerCapture(e.pointerId);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const onTapRelease = (e) => {
|
|
56
|
-
if (tapDebounceRef.current === 'Down') {
|
|
57
|
-
tapDebounceRef.current = 'Up';
|
|
58
|
-
const btnEl = e.currentTarget;
|
|
59
|
-
setTimeout(() => {
|
|
60
|
-
btnEl.ariaPressed = 'false';
|
|
61
|
-
tapDebounceRef.current = 'None';
|
|
62
|
-
}, 400);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
return ((0, jsx_runtime_1.jsxs)(styles_2.ASNavBarPickPanelItemStyled, { id: itemId, theme: theme, role: "button", ref: navBarItemRef, className: `${className} ${size}`, "$selected": selected, onPointerUp: onTapRelease, onPointerDown: onTap, children: [icon && ((0, jsx_runtime_1.jsx)(styles_1.ASNavBarLeadingIconPadding, { theme: theme, "$selected": selected, "aria-invalid": true, "aria-hidden": true, children: icon })), displayText] }));
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(styles_2.ASNavBarPickPanelItemStyled, { id: itemId, theme: theme, role: "button", ref: navBarItemRef, className: `${className} ${size}`, "$selected": selected, onTapped: onItemClickHandler, children: [icon && ((0, jsx_runtime_1.jsx)(styles_1.ASNavBarLeadingIconPadding, { theme: theme, "$selected": selected, "aria-invalid": true, "aria-hidden": true, children: icon })), displayText] }));
|
|
66
46
|
};
|
|
67
47
|
exports.default = ASNavBarPickPanelItem;
|
|
@@ -6,6 +6,10 @@ interface ASNavBarPickPanelItemStyledProps {
|
|
|
6
6
|
$margin?: string;
|
|
7
7
|
$padding?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const ASNavBarPickPanelItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("
|
|
9
|
+
export declare const ASNavBarPickPanelItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../astappable/ASTappable.types").ASTappableProps & {
|
|
10
|
+
children?: import("react").ReactNode | undefined;
|
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, ASNavBarPickPanelItemStyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../astappable/ASTappable.types").ASTappableProps & {
|
|
12
|
+
children?: import("react").ReactNode | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
10
14
|
export {};
|
|
11
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbarpickpanelitem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbarpickpanelitem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAKpD,UAAU,gCAAgC;IACxC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,2BAA2B;;;;kGAgEvC,CAAC"}
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ASNavBarPickPanelItemStyled = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
|
+
const astappable_1 = tslib_1.__importDefault(require("../../astappable"));
|
|
6
7
|
const astheme_1 = tslib_1.__importDefault(require("../../astheme"));
|
|
7
8
|
const styles_1 = require("../styles");
|
|
8
|
-
exports.ASNavBarPickPanelItemStyled = styled_components_1.default.
|
|
9
|
+
exports.ASNavBarPickPanelItemStyled = (0, styled_components_1.default)(astappable_1.default) `
|
|
9
10
|
font-family: ${({ theme }) => theme.fontFamily};
|
|
10
11
|
display: flex;
|
|
11
12
|
align-items: center;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ASTappableProps } from './ASTappable.types';
|
|
3
|
+
declare const ASTappable: React.ForwardRefExoticComponent<ASTappableProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export default ASTappable;
|
|
7
|
+
//# sourceMappingURL=ASTappable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ASTappable.d.ts","sourceRoot":"","sources":["../../src/astappable/ASTappable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD,QAAA,MAAM,UAAU;;wCA4Bd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const ASTappable = react_1.default.forwardRef(({ onTapped, children, ...rest }, ref) => {
|
|
7
|
+
const tapDebounceRef = (0, react_1.useRef)('None');
|
|
8
|
+
const handlePointerDown = (e) => {
|
|
9
|
+
if (tapDebounceRef.current === 'None') {
|
|
10
|
+
tapDebounceRef.current = 'Down';
|
|
11
|
+
e.currentTarget.ariaPressed = 'true';
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const handlePointerUp = (e) => {
|
|
15
|
+
if (tapDebounceRef.current === 'Down') {
|
|
16
|
+
tapDebounceRef.current = 'Up';
|
|
17
|
+
const tappableEl = e.currentTarget;
|
|
18
|
+
onTapped?.(e);
|
|
19
|
+
tappableEl.releasePointerCapture(e.pointerId);
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
tappableEl.ariaPressed = 'false';
|
|
22
|
+
tapDebounceRef.current = 'None';
|
|
23
|
+
}, 300);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)("div", { ...rest, ref: ref, onPointerDown: handlePointerDown, onPointerUp: handlePointerUp, children: children }));
|
|
27
|
+
});
|
|
28
|
+
exports.default = ASTappable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ASTappable.types.d.ts","sourceRoot":"","sources":["../../src/astappable/ASTappable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/astappable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
var ASTappable_1 = require("./ASTappable");
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(ASTappable_1).default; } });
|
|
@@ -75,6 +75,6 @@ const ASTextField = ({ className = '', theme = astheme_1.default, value = '', on
|
|
|
75
75
|
setShowType(showType === 'password' ? 'text' : 'password');
|
|
76
76
|
};
|
|
77
77
|
const baseCls = `"ASTextFieldInputContainer" ${size} ${leftIconCls} ${rightIconCls} ${passwordCls} ${className}`;
|
|
78
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.ASTextFieldInputContainer, { theme: theme, className: baseCls, style: props.style, children: [searchIconVisible && ((0, jsx_runtime_1.jsx)(styles_1.ASTextFieldSearchIcon, { theme: theme, className: "ASTextFieldSearchIcon", children: (0, jsx_runtime_1.jsx)(icons_1.SearchIcon, { color: "#333333", fillColor: "#333333", iconSize: 20 }) })), (0, jsx_runtime_1.jsx)(styles_1.ASTextFieldInput, { theme: theme, autoComplete: passwordIconVisible ? 'new-password' : disableAutofill ? 'off' : 'on', "aria-autocomplete": passwordIconVisible ? 'none' : 'list', autoCorrect: passwordIconVisible ? 'off' : 'on', autoCapitalize: 'none', spellCheck: passwordIconVisible ? 'false' : 'true', autoFocus: true, id: textFieldId, className: "ASTextFieldInput", type: showType, value: valueString, onChange: onValueChange, onFocus: onInputFieldFocus, ...props }), clearIconVisible && ((0, jsx_runtime_1.jsx)(styles_1.ASTextFieldClickIcon, { theme: theme, className: "ASTextFieldClearIcon",
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.ASTextFieldInputContainer, { theme: theme, className: baseCls, style: props.style, children: [searchIconVisible && ((0, jsx_runtime_1.jsx)(styles_1.ASTextFieldSearchIcon, { theme: theme, className: "ASTextFieldSearchIcon", children: (0, jsx_runtime_1.jsx)(icons_1.SearchIcon, { color: "#333333", fillColor: "#333333", iconSize: 20 }) })), (0, jsx_runtime_1.jsx)(styles_1.ASTextFieldInput, { theme: theme, autoComplete: passwordIconVisible ? 'new-password' : disableAutofill ? 'off' : 'on', "aria-autocomplete": passwordIconVisible ? 'none' : 'list', autoCorrect: passwordIconVisible ? 'off' : 'on', autoCapitalize: 'none', spellCheck: passwordIconVisible ? 'false' : 'true', autoFocus: true, id: textFieldId, className: "ASTextFieldInput", type: showType, value: valueString, onChange: onValueChange, onFocus: onInputFieldFocus, ...props }), clearIconVisible && ((0, jsx_runtime_1.jsx)(styles_1.ASTextFieldClickIcon, { theme: theme, className: "ASTextFieldClearIcon", onTapped: clearValue, children: (0, jsx_runtime_1.jsx)(icons_1.CloseIcon, { color: "transparent", fillColor: "#333333", circleStrokeColor: "#666666", circleStrokeWidth: 0.5, iconSize: 20 }) })), passwordIconVisible && ((0, jsx_runtime_1.jsxs)(styles_1.ASTextFieldClickIcon, { theme: theme, className: "ASTextFieldPasswordIcon", onTapped: onPasswordShowHide, children: [showType === 'password' && (0, jsx_runtime_1.jsx)(styles_1.ScaledEyeIcon, { color: "#333333", fillColor: "#333333", iconSize: 20 }), showType === 'text' && (0, jsx_runtime_1.jsx)(styles_1.ScaledSlashedEyeIcon, { color: "#333333", fillColor: "#333333", iconSize: 20 })] }))] }));
|
|
79
79
|
};
|
|
80
80
|
exports.default = ASTextField;
|
|
@@ -5,12 +5,20 @@ export declare const ASTextFieldInputContainer: import("styled-components/dist/t
|
|
|
5
5
|
export declare const ASTextFieldInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
6
6
|
theme: ASTheme;
|
|
7
7
|
}>> & string;
|
|
8
|
-
export declare const ASTextFieldClickIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("
|
|
8
|
+
export declare const ASTextFieldClickIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
9
|
+
children?: import("react").ReactNode | undefined;
|
|
10
|
+
} & import("react").RefAttributes<HTMLDivElement>, {
|
|
9
11
|
theme: ASTheme;
|
|
10
|
-
}>> & string
|
|
11
|
-
|
|
12
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
13
|
+
children?: import("react").ReactNode | undefined;
|
|
14
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
15
|
+
export declare const ASTextFieldSearchIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
16
|
+
children?: import("react").ReactNode | undefined;
|
|
17
|
+
} & import("react").RefAttributes<HTMLDivElement>, {
|
|
12
18
|
theme: ASTheme;
|
|
13
|
-
}>> & string
|
|
19
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable/ASTappable.types").ASTappableProps & {
|
|
20
|
+
children?: import("react").ReactNode | undefined;
|
|
21
|
+
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
14
22
|
export declare const ScaledSlashedEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../icons").IconProps, never>> & string & Omit<import("react").FC<import("../icons").IconProps>, keyof import("react").Component<any, {}, any>>;
|
|
15
23
|
export declare const ScaledEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../icons").IconProps, never>> & string & Omit<import("react").FC<import("../icons").IconProps>, keyof import("react").Component<any, {}, any>>;
|
|
16
24
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/astextfield/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/astextfield/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAIjD,eAAO,MAAM,yBAAyB;WAAuB,OAAO;YAmHnE,CAAC;AAEF,eAAO,MAAM,gBAAgB;WAAyB,OAAO;YAkD5D,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;WAA+B,OAAO;;;kGAStE,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;WAA+B,OAAO;;;kGAGvE,CAAC;AAkBF,eAAO,MAAM,oBAAoB,gQAEhC,CAAC;AACF,eAAO,MAAM,aAAa,gQAEzB,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ScaledEyeIcon = exports.ScaledSlashedEyeIcon = exports.ASTextFieldSearchIcon = exports.ASTextFieldClickIcon = exports.ASTextFieldInput = exports.ASTextFieldInputContainer = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const styled_components_1 = tslib_1.__importStar(require("styled-components"));
|
|
6
|
+
const astappable_1 = tslib_1.__importDefault(require("../astappable"));
|
|
6
7
|
const icons_1 = require("../icons");
|
|
7
8
|
exports.ASTextFieldInputContainer = styled_components_1.default.div `
|
|
8
9
|
display: flex;
|
|
@@ -171,7 +172,7 @@ exports.ASTextFieldInput = styled_components_1.default.input `
|
|
|
171
172
|
margin-right: -2px;
|
|
172
173
|
}
|
|
173
174
|
`;
|
|
174
|
-
exports.ASTextFieldClickIcon = styled_components_1.default.
|
|
175
|
+
exports.ASTextFieldClickIcon = (0, styled_components_1.default)(astappable_1.default) `
|
|
175
176
|
cursor: pointer;
|
|
176
177
|
user-select: none;
|
|
177
178
|
|
|
@@ -181,7 +182,7 @@ exports.ASTextFieldClickIcon = styled_components_1.default.div `
|
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
`;
|
|
184
|
-
exports.ASTextFieldSearchIcon = styled_components_1.default.
|
|
185
|
+
exports.ASTextFieldSearchIcon = (0, styled_components_1.default)(astappable_1.default) `
|
|
185
186
|
margin-right: -4px;
|
|
186
187
|
user-select: none;
|
|
187
188
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AA0EjD,QAAA,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AA0EjD,QAAA,MAAM,cAAc,EAAE,OAoGrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -156,6 +156,12 @@ const ASThemeDefault = {
|
|
|
156
156
|
navBarItemColorHover: colors.mainGrayE0,
|
|
157
157
|
navBarItemColorSelected: colors.mainGray33,
|
|
158
158
|
},
|
|
159
|
+
modal: {
|
|
160
|
+
modalBackdropColor: colors.blackAlpha50,
|
|
161
|
+
modalBackgroundColor: `linear-gradient(to bottom, rgba(185, 185, 185, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%)`,
|
|
162
|
+
modalOutlineColor: colors.mainGray72,
|
|
163
|
+
modalZIndex: 100,
|
|
164
|
+
},
|
|
159
165
|
borderRadius: '35px',
|
|
160
166
|
fontFamily: "'Big Shoulders Display', 'BigShouldersDisplay'",
|
|
161
167
|
fontFamilyFallback: 'Arial, sans-serif',
|