@eleventheye/asui 1.8.2 → 1.10.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.
Files changed (44) hide show
  1. package/dist/apptypes/ASUI.types.d.ts +135 -0
  2. package/dist/apptypes/ASUI.types.d.ts.map +1 -1
  3. package/dist/apptypes/ASUI.types.js +7 -1
  4. package/dist/asbutton/ASButton.d.ts +16 -0
  5. package/dist/asbutton/ASButton.d.ts.map +1 -0
  6. package/dist/asbutton/ASButton.js +32 -0
  7. package/dist/asbutton/index.d.ts +2 -0
  8. package/dist/asbutton/index.d.ts.map +1 -0
  9. package/dist/asbutton/index.js +6 -0
  10. package/dist/asbutton/styles.d.ts +10 -0
  11. package/dist/asbutton/styles.d.ts.map +1 -0
  12. package/dist/asbutton/styles.js +130 -0
  13. package/dist/asloader/ASLoader.d.ts +13 -0
  14. package/dist/asloader/ASLoader.d.ts.map +1 -0
  15. package/dist/asloader/ASLoader.js +52 -0
  16. package/dist/asloader/index.d.ts +2 -0
  17. package/dist/asloader/index.d.ts.map +1 -0
  18. package/dist/asloader/index.js +6 -0
  19. package/dist/asloader/styles.d.ts +24 -0
  20. package/dist/asloader/styles.d.ts.map +1 -0
  21. package/dist/asloader/styles.js +143 -0
  22. package/dist/astextfield/ASTextField.d.ts +2 -0
  23. package/dist/astextfield/ASTextField.d.ts.map +1 -1
  24. package/dist/astextfield/ASTextField.js +5 -2
  25. package/dist/astextfield/index.js +2 -4
  26. package/dist/astextfield/styles.d.ts +14 -5
  27. package/dist/astextfield/styles.d.ts.map +1 -1
  28. package/dist/astextfield/styles.js +66 -128
  29. package/dist/astheme/ASThemeDefault.d.ts +4 -0
  30. package/dist/astheme/ASThemeDefault.d.ts.map +1 -0
  31. package/dist/astheme/ASThemeDefault.js +127 -0
  32. package/dist/icons/EleventheyeIcon.d.ts.map +1 -1
  33. package/dist/icons/EleventheyeIcon.js +2 -2
  34. package/dist/icons/EmailIcon.d.ts +5 -0
  35. package/dist/icons/EmailIcon.d.ts.map +1 -0
  36. package/dist/icons/EmailIcon.js +8 -0
  37. package/dist/icons/index.d.ts +2 -0
  38. package/dist/icons/index.d.ts.map +1 -1
  39. package/dist/icons/index.js +48 -61
  40. package/dist/icons/styles.js +2 -4
  41. package/dist/index.d.ts +5 -3
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +30 -42
  44. package/package.json +6 -2
@@ -3,4 +3,139 @@ export declare enum ASComponentSize {
3
3
  Medium = "ASMedium",
4
4
  Large = "ASLarge"
5
5
  }
6
+ type ASPaddingSizeTuple = [ASComponentSize, ASComponentSize];
7
+ type ASPaddingSizeTriple = [ASComponentSize, ASComponentSize, ASComponentSize];
8
+ type ASPaddingSizeQuad = [ASComponentSize, ASComponentSize, ASComponentSize, ASComponentSize];
9
+ export type ASPaddingSize = ASComponentSize | ASPaddingSizeTuple | ASPaddingSizeTriple | ASPaddingSizeQuad;
10
+ export declare enum LoaderType {
11
+ Grow = "Grow",
12
+ Spin = "Spin",
13
+ Dots = "Dots"
14
+ }
15
+ export type SizeToClsType = {
16
+ [key in ASComponentSize]: string;
17
+ };
18
+ export interface ASTheme {
19
+ textfield: {
20
+ color: string;
21
+ borderColor: string;
22
+ bgColorTop: string;
23
+ bgColorBottom: string;
24
+ autofillBorder: string;
25
+ autofillBoxShadow: string;
26
+ autofillColor: string;
27
+ inputBorder: string;
28
+ inputBgTop: string;
29
+ inputBgBottom: string;
30
+ inputColor: string;
31
+ inputFocusBorderColor: string;
32
+ inputFocusBoxShadow: string;
33
+ inputFocusColor: string;
34
+ placeholderColor: string;
35
+ iconTextShadow: string;
36
+ };
37
+ button: {
38
+ buttonGradientUp: string;
39
+ buttonGradientDown: string;
40
+ buttonShadowHoverASSmall: string;
41
+ buttonShadowHoverASMedium: string;
42
+ buttonShadowHoverASLarge: string;
43
+ buttonShadowActiveASSmall: string;
44
+ buttonShadowActiveASMedium: string;
45
+ buttonShadowActiveASLarge: string;
46
+ buttonShadowNormal: string;
47
+ buttonShadowHover: string;
48
+ buttonOutline: string;
49
+ buttonTextShadow: string;
50
+ buttonBg: string;
51
+ buttonBgDisabled: string;
52
+ buttonColor: string;
53
+ buttonColorHover: string;
54
+ buttonColorSelected: string;
55
+ buttonColorDisabled: string;
56
+ };
57
+ loader: {
58
+ loaderBackdropFilter: string;
59
+ loaderTextColor: string;
60
+ loaderTextShadow: string;
61
+ loaderGrowColor: string;
62
+ loaderGrowBorderColor: string;
63
+ loaderGrowBackground: string;
64
+ loaderSpinBorderColor: string;
65
+ loaderSpinBorderAfterColor: string;
66
+ loaderSpinBorderBeforeColor: string;
67
+ loaderDotsGradientC: string;
68
+ loaderDotsGradientD: string;
69
+ };
70
+ colors: {
71
+ mainGold: string;
72
+ mainYellow: string;
73
+ yellow00: string;
74
+ yellow20: string;
75
+ yellow25: string;
76
+ yellow30: string;
77
+ yellow40: string;
78
+ yellow44: string;
79
+ yellow45: string;
80
+ yellow50: string;
81
+ yellow60: string;
82
+ yellow70: string;
83
+ yellow80: string;
84
+ yellow85: string;
85
+ yellow88: string;
86
+ yellow90: string;
87
+ yellow95: string;
88
+ yellow100: string;
89
+ yellow110: string;
90
+ yellow115: string;
91
+ yellow120: string;
92
+ mainCorral: string;
93
+ corral20: string;
94
+ corral30: string;
95
+ corral40: string;
96
+ corral50: string;
97
+ corralCF: string;
98
+ corral6D: string;
99
+ corral8B: string;
100
+ corral85: string;
101
+ corral90: string;
102
+ mainBlack: string;
103
+ mainGray22: string;
104
+ mainGray33: string;
105
+ mainGray41: string;
106
+ mainGray55: string;
107
+ mainGray58: string;
108
+ mainGray66: string;
109
+ mainGray6d: string;
110
+ mainGray72: string;
111
+ mainGray81: string;
112
+ mainGray8c: string;
113
+ mainGray97: string;
114
+ mainGray99: string;
115
+ mainGrayB8: string;
116
+ mainGrayE0: string;
117
+ mainGrayF5: string;
118
+ mainWhite: string;
119
+ blueFF: string;
120
+ green00: string;
121
+ green10: string;
122
+ green64: string;
123
+ green90: string;
124
+ green100: string;
125
+ green120: string;
126
+ blackAlpha75: string;
127
+ blackAlpha50: string;
128
+ blackAlpha40: string;
129
+ blackAlpha35: string;
130
+ blackAlpha25: string;
131
+ blackAlpha10: string;
132
+ whiteAlpha75: string;
133
+ whiteAlpha55: string;
134
+ whiteAlpha35: string;
135
+ whiteAlpha25: string;
136
+ whiteAlpha15: string;
137
+ };
138
+ borderRadius: string;
139
+ }
140
+ export {};
6
141
  //# sourceMappingURL=ASUI.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ASUI.types.d.ts","sourceRoot":"","sources":["../../src/apptypes/ASUI.types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,KAAK,YAAY;IACjB,MAAM,aAAa;IACnB,KAAK,YAAY;CAClB"}
1
+ {"version":3,"file":"ASUI.types.d.ts","sourceRoot":"","sources":["../../src/apptypes/ASUI.types.ts"],"names":[],"mappings":"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"}
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ASComponentSize = void 0;
3
+ exports.LoaderType = exports.ASComponentSize = void 0;
4
4
  var ASComponentSize;
5
5
  (function (ASComponentSize) {
6
6
  ASComponentSize["Small"] = "ASSmall";
7
7
  ASComponentSize["Medium"] = "ASMedium";
8
8
  ASComponentSize["Large"] = "ASLarge";
9
9
  })(ASComponentSize || (exports.ASComponentSize = ASComponentSize = {}));
10
+ var LoaderType;
11
+ (function (LoaderType) {
12
+ LoaderType["Grow"] = "Grow";
13
+ LoaderType["Spin"] = "Spin";
14
+ LoaderType["Dots"] = "Dots";
15
+ })(LoaderType || (exports.LoaderType = LoaderType = {}));
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ASComponentSize, ASPaddingSize, ASTheme } from '../apptypes/ASUI.types';
3
+ type ASButtonOwnProps = {
4
+ className?: string;
5
+ text?: string;
6
+ selected?: boolean;
7
+ toggle?: boolean;
8
+ size?: ASComponentSize;
9
+ theme?: ASTheme;
10
+ paddingSize?: ASPaddingSize;
11
+ isLoading?: boolean;
12
+ } & Pick<React.HTMLProps<HTMLDivElement>, 'style' | 'onClick' | 'id' | 'disabled'>;
13
+ export type ASButtonProps = React.PropsWithChildren<ASButtonOwnProps>;
14
+ declare const ASButton: React.FC<ASButtonProps>;
15
+ export default ASButton;
16
+ //# sourceMappingURL=ASButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ASButton.d.ts","sourceRoot":"","sources":["../../src/asbutton/ASButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,EAAc,MAAM,wBAAwB,CAAC;AAK7F,KAAK,gBAAgB,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAWd,QAAQ,CAAC,EAAE,OAAO,CAAC;IASnB,MAAM,CAAC,EAAE,OAAO,CAAC;IASjB,IAAI,CAAC,EAAE,eAAe,CAAC;IAMvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAOhB,WAAW,CAAC,EAAE,aAAa,CAAC;IAO5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC;AAEnF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAOtE,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8DrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,32 @@
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 = require("react");
6
+ const ASUI_types_1 = require("../apptypes/ASUI.types");
7
+ const asloader_1 = tslib_1.__importDefault(require("../asloader"));
8
+ const ASThemeDefault_1 = tslib_1.__importDefault(require("../astheme/ASThemeDefault"));
9
+ const styles_1 = require("./styles");
10
+ const ASButton = ({ className = '', onClick = () => undefined, selected = false, toggle = false, size = ASUI_types_1.ASComponentSize.Medium, paddingSize = [ASUI_types_1.ASComponentSize.Medium, ASUI_types_1.ASComponentSize.Medium], theme = ASThemeDefault_1.default, disabled = false, isLoading = false, children, text, id, style, ...props }) => {
11
+ const [isSelected, setIsSelected] = (0, react_1.useState)(selected);
12
+ (0, react_1.useEffect)(() => {
13
+ setIsSelected(selected);
14
+ }, [selected]);
15
+ const onClickHandler = (e) => {
16
+ if (toggle)
17
+ setIsSelected(!isSelected);
18
+ onClick(e);
19
+ };
20
+ const onEnableDisableHandler = (node) => {
21
+ if (node) {
22
+ if (disabled || isLoading) {
23
+ node.setAttribute('inert', '');
24
+ }
25
+ else {
26
+ node.removeAttribute('inert');
27
+ }
28
+ }
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, onClick: 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.ASComponentSize.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
+ };
32
+ exports.default = ASButton;
@@ -0,0 +1,2 @@
1
+ export { default } from './ASButton';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/asbutton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,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 ASButton_1 = require("./ASButton");
6
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(ASButton_1).default; } });
@@ -0,0 +1,10 @@
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("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ theme: ASTheme;
4
+ size: ASComponentSize;
5
+ }>> & string;
6
+ 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
+ size?: ASComponentSize;
8
+ }>> & string;
9
+ export declare const ASButtonHidden: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asbutton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,cAAc;WAAuB,OAAO;UAAQ,eAAe;YAoH/E,CAAC;AAEF,eAAO,MAAM,aAAa;WAAuB,eAAe;YAG/D,CAAC;AAEF,eAAO,MAAM,cAAc,6NAG1B,CAAC"}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ASButtonHidden = exports.ButtonPadding = exports.ASButtonStyled = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
6
+ const ASUI_types_1 = require("../apptypes/ASUI.types");
7
+ exports.ASButtonStyled = styled_components_1.default.div `
8
+ font-family: 'Big Shoulders Display', 'BigShouldersDisplay';
9
+ font-weight: 400;
10
+ min-width: 100px;
11
+ min-height: 20px;
12
+ cursor: pointer;
13
+ white-space: nowrap;
14
+ transition: all 0.25s ease-in-out;
15
+ position: relative;
16
+ display: inline-block;
17
+ border-radius: 75px;
18
+ box-shadow: ${({ theme }) => theme.button.buttonShadowNormal};
19
+ outline: 2px solid ${({ theme }) => theme.button.buttonOutline};
20
+ background-color: ${({ theme }) => theme.button.buttonBg};
21
+ background: ${({ theme }) => theme.button.buttonGradientDown};
22
+ text-transform: uppercase;
23
+ text-align: center;
24
+
25
+ &.ASLarge {
26
+ font-size: 1.5rem;
27
+ line-height: 2.5rem;
28
+ min-height: 40px;
29
+ }
30
+
31
+ &.ASMedium {
32
+ font-size: 1.2rem;
33
+ line-height: 2.25rem;
34
+ min-height: 30px;
35
+ }
36
+
37
+ &.ASSmall {
38
+ font-size: 1rem;
39
+ line-height: 1.65rem;
40
+ min-height: 20px;
41
+ }
42
+
43
+ &::after {
44
+ content: attr(data-buttontext);
45
+ position: absolute;
46
+ top: 50%;
47
+ left: 50%;
48
+ transform: translate(-50%, -50%);
49
+ transition: all 0.25s ease-in-out;
50
+ width: 100%;
51
+ border-radius: ${({ theme }) => theme.borderRadius};
52
+ text-shadow: ${({ theme }) => theme.button.buttonTextShadow};
53
+ color: ${({ theme }) => theme.button.buttonColor};
54
+ }
55
+
56
+ &.ASLarge,
57
+ &.ASMedium,
58
+ &.ASSmall {
59
+ &:hover,
60
+ &.Selected,
61
+ &:active {
62
+ &::after {
63
+ color: ${({ theme }) => theme.button.buttonColorHover};
64
+ text-shadow: ${({ theme }) => theme.button.buttonTextShadow};
65
+ }
66
+ }
67
+ &:hover {
68
+ &::after {
69
+ box-shadow: ${({ theme }) => theme.button.buttonShadowHover};
70
+ }
71
+ }
72
+ }
73
+
74
+ &.ASSmall,
75
+ &.ASMedium,
76
+ &.ASLarge {
77
+ &:hover,
78
+ &.Selected,
79
+ &:active {
80
+ &::after {
81
+ transform: translate(-50%, -50%) scale(0.95);
82
+ }
83
+ }
84
+ }
85
+
86
+ &:hover,
87
+ &:active,
88
+ &.Selected {
89
+ &:not([aria-disabled='true']) {
90
+ user-select: none;
91
+ background: ${({ theme }) => theme.button.buttonGradientUp};
92
+ color: transparent;
93
+ text-shadow: none;
94
+ }
95
+ }
96
+ &:hover:not(:active):not(.Selected):not([aria-disabled='true']) {
97
+ box-shadow: ${({ theme, size }) => theme.button[`buttonShadowHover${size}`]};
98
+ }
99
+ &:active,
100
+ &.Selected {
101
+ &:not([aria-disabled='true']) {
102
+ box-shadow: ${({ theme, size }) => theme.button[`buttonShadowActive${size}`]};
103
+ }
104
+ }
105
+
106
+ &[aria-disabled='true'],
107
+ &.ASSmall:is([aria-disabled='true']),
108
+ &.ASMedium:is([aria-disabled='true']),
109
+ &.ASLarge:is([aria-disabled='true']),
110
+ &:hover:is([aria-disabled='true']),
111
+ &:active:is([aria-disabled='true']),
112
+ &.Selected:is([aria-disabled='true']),
113
+ &:hover:not(:active):not(.Selected):is([aria-disabled='true']) {
114
+ cursor: default;
115
+ background: ${({ theme }) => theme.button.buttonBgDisabled};
116
+ color: transparent;
117
+ text-shadow: none;
118
+ &::after {
119
+ color: ${({ theme }) => theme.button.buttonColorDisabled};
120
+ text-shadow: none;
121
+ }
122
+ }
123
+ `;
124
+ exports.ButtonPadding = styled_components_1.default.div `
125
+ padding: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '5px 50px' : size === ASUI_types_1.ASComponentSize.Medium ? '2px 30px' : '0 10px'};
126
+ `;
127
+ exports.ASButtonHidden = styled_components_1.default.div `
128
+ opacity: 0;
129
+ color: transparent;
130
+ `;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ASComponentSize, ASTheme, LoaderType } from '../apptypes/ASUI.types';
3
+ type ASLoaderProps = {
4
+ className?: string;
5
+ loaderType?: LoaderType;
6
+ size?: ASComponentSize;
7
+ showLoader?: boolean;
8
+ isModal?: boolean;
9
+ theme?: ASTheme;
10
+ };
11
+ declare const ASLoader: React.FC<ASLoaderProps>;
12
+ export { ASLoader as default, LoaderType };
13
+ //# sourceMappingURL=ASLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ASLoader.d.ts","sourceRoot":"","sources":["../../src/asloader/ASLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAmB9E,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+DrC,CAAC;AAsCF,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LoaderType = exports.default = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ const react_dom_1 = require("react-dom");
8
+ const ASUI_types_1 = require("../apptypes/ASUI.types");
9
+ Object.defineProperty(exports, "LoaderType", { enumerable: true, get: function () { return ASUI_types_1.LoaderType; } });
10
+ const styles_1 = require("../asloader/styles");
11
+ const ASThemeDefault_1 = tslib_1.__importDefault(require("../astheme/ASThemeDefault"));
12
+ const ASLoader = ({ className = '', loaderType = ASUI_types_1.LoaderType.Grow, size = ASUI_types_1.ASComponentSize.Medium, isModal = false, theme = ASThemeDefault_1.default, ...props }) => {
13
+ const [localLoaderType, setLoaderType] = (0, react_1.useState)(loaderType);
14
+ const [loaderSizeCls, setLoaderSizeCls] = (0, react_1.useState)(size);
15
+ (0, react_1.useEffect)(() => {
16
+ if (loaderType)
17
+ setLoaderType(loaderType);
18
+ }, [loaderType]);
19
+ (0, react_1.useEffect)(() => {
20
+ if (size)
21
+ setLoaderSizeCls(size);
22
+ }, [size]);
23
+ const renderLoader = () => {
24
+ switch (localLoaderType) {
25
+ case ASUI_types_1.LoaderType.Spin:
26
+ return (0, jsx_runtime_1.jsx)(ASLoaderSpin, { size: loaderSizeCls, theme: theme, className: className });
27
+ case ASUI_types_1.LoaderType.Dots:
28
+ return (0, jsx_runtime_1.jsx)(ASLoaderDots, { size: loaderSizeCls, theme: theme, className: className });
29
+ case ASUI_types_1.LoaderType.Grow:
30
+ default:
31
+ return (0, jsx_runtime_1.jsx)(ASLoaderGrow, { size: loaderSizeCls, theme: theme, className: className });
32
+ }
33
+ };
34
+ const renderLoaderModal = () => {
35
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.showLoader &&
36
+ (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(styles_1.ASLoaderModalContainer, { className: className, theme: theme, children: renderLoader() }) }), document.body) }));
37
+ };
38
+ const renderLoaderNonModal = () => {
39
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.showLoader && ((0, jsx_runtime_1.jsx)(styles_1.ASLoaderNonModalContainer, { className: className, theme: theme, children: renderLoader() })) }));
40
+ };
41
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isModal ? renderLoaderModal() : renderLoaderNonModal() });
42
+ };
43
+ exports.default = ASLoader;
44
+ const ASLoaderGrow = ({ size = ASUI_types_1.ASComponentSize.Large, theme = ASThemeDefault_1.default }) => {
45
+ return ((0, jsx_runtime_1.jsx)(styles_1.ASLoaderGrowStyled, { className: `${size}`, size: size, theme: theme, children: (0, jsx_runtime_1.jsx)(styles_1.ASLoaderText, { size: size, theme: theme, children: "LOADING" }) }));
46
+ };
47
+ const ASLoaderDots = ({ size = ASUI_types_1.ASComponentSize.Large, theme = ASThemeDefault_1.default, className = '', }) => {
48
+ return (0, jsx_runtime_1.jsx)(styles_1.ASLoaderDotsStyled, { className: size, size: size, theme: theme });
49
+ };
50
+ const ASLoaderSpin = ({ className = '', size = ASUI_types_1.ASComponentSize.Large, theme = ASThemeDefault_1.default, }) => {
51
+ return ((0, jsx_runtime_1.jsx)(styles_1.ASLoaderSpinStyled, { className: className, size: size, theme: theme, children: (0, jsx_runtime_1.jsx)(styles_1.ASLoaderInnerSpinStyled, { size: size, theme: theme }) }));
52
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from './ASLoader';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/asloader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,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 ASLoader_1 = require("./ASLoader");
6
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(ASLoader_1).default; } });
@@ -0,0 +1,24 @@
1
+ import { ASComponentSize, ASTheme } from '../apptypes/ASUI.types';
2
+ export declare const ASLoaderModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ theme: ASTheme;
4
+ }>> & string;
5
+ export declare const ASLoaderNonModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const ASLoaderText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
7
+ size: ASComponentSize;
8
+ theme: ASTheme;
9
+ }>> & string;
10
+ export declare const ASLoaderGrowStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
11
+ size: ASComponentSize;
12
+ theme: ASTheme;
13
+ }>> & string;
14
+ export declare const ASLoaderDotsStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
15
+ size: ASComponentSize;
16
+ }>> & string;
17
+ export declare const ASLoaderSpinStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
18
+ size: ASComponentSize;
19
+ }>> & string;
20
+ export declare const ASLoaderInnerSpinStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
21
+ size: ASComponentSize;
22
+ theme: ASTheme;
23
+ }>> & string;
24
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asloader/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AA2BlE,eAAO,MAAM,sBAAsB;WAAuB,OAAO;YAOhE,CAAC;AAEF,eAAO,MAAM,yBAAyB,6NAKrC,CAAC;AAEF,eAAO,MAAM,YAAY;UAAuB,eAAe;WAAS,OAAO;YAe9E,CAAC;AAGF,eAAO,MAAM,kBAAkB;UAAsB,eAAe;WAAS,OAAO;YAsBnF,CAAC;AAEF,eAAO,MAAM,kBAAkB;UAAsB,eAAe;YAmBnE,CAAC;AAEF,eAAO,MAAM,kBAAkB;UAAsB,eAAe;YAiBnE,CAAC;AAEF,eAAO,MAAM,uBAAuB;UAAsB,eAAe;WAAS,OAAO;YAmCxF,CAAC"}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ASLoaderInnerSpinStyled = exports.ASLoaderSpinStyled = exports.ASLoaderDotsStyled = exports.ASLoaderGrowStyled = exports.ASLoaderText = exports.ASLoaderNonModalContainer = exports.ASLoaderModalContainer = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const styled_components_1 = tslib_1.__importStar(require("styled-components"));
6
+ const ASUI_types_1 = require("../apptypes/ASUI.types");
7
+ const loaderGrow = (0, styled_components_1.keyframes) `
8
+ 50% {
9
+ inset: 0;
10
+ }
11
+ 100% {
12
+ inset: 0 0 0 100%;
13
+ }
14
+ `;
15
+ const loaderSpin = (0, styled_components_1.keyframes) `
16
+ 100% {
17
+ transform: rotate(1turn);
18
+ }
19
+ `;
20
+ const loaderDots = (0, styled_components_1.keyframes) `
21
+ 100% {
22
+ background-position:
23
+ 100% 0,
24
+ 100% 100%,
25
+ 0 100%,
26
+ 0 0;
27
+ }
28
+ `;
29
+ exports.ASLoaderModalContainer = styled_components_1.default.div `
30
+ position: absolute;
31
+ inset: 0;
32
+ backdrop-filter: ${({ theme }) => theme.loader.loaderBackdropFilter};
33
+ z-index: 100;
34
+ pointer-events: all;
35
+ overflow: hidden;
36
+ `;
37
+ exports.ASLoaderNonModalContainer = styled_components_1.default.div `
38
+ position: absolute;
39
+ inset: 0;
40
+ z-index: 100;
41
+ pointer-events: none;
42
+ `;
43
+ exports.ASLoaderText = styled_components_1.default.span `
44
+ position: absolute;
45
+ color: ${({ theme }) => theme.loader.loaderTextColor};
46
+ text-align: center;
47
+ text-shadow: 0 0 5px ${({ theme }) => theme.loader.loaderTextShadow};
48
+ z-index: 101;
49
+ left: 50%;
50
+ top: 50%;
51
+ transform: translate(-50%, -50%);
52
+
53
+ font-size: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '2.5rem' : size === ASUI_types_1.ASComponentSize.Medium ? '1.25rem' : '0.7rem'};
54
+ font-weight: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '700' : size === ASUI_types_1.ASComponentSize.Medium ? '500' : '300'};
55
+ letter-spacing: ${({ size }) => (size === ASUI_types_1.ASComponentSize.Small ? '0.1rem' : '0.2rem')};
56
+ `;
57
+ exports.ASLoaderGrowStyled = styled_components_1.default.div `
58
+ color: ${({ theme }) => theme.loader.loaderGrowColor};
59
+ border-color: ${({ theme }) => theme.loader.loaderGrowBorderColor};
60
+ border-style: solid;
61
+ position: relative;
62
+ left: 50%;
63
+ top: 50%;
64
+ transform: translate(-50%, -50%);
65
+
66
+ &::before {
67
+ content: '';
68
+ position: absolute;
69
+ inset: 0 100% 0 0;
70
+ border-radius: inherit;
71
+ background: ${({ theme }) => theme.loader.loaderGrowBackground};
72
+ animation: ${loaderGrow} 2s infinite alternate;
73
+ }
74
+
75
+ width: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '100px' : size === ASUI_types_1.ASComponentSize.Medium ? '50px' : '25px'};
76
+ height: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '100px' : size === ASUI_types_1.ASComponentSize.Medium ? '50px' : '25px'};
77
+ `;
78
+ exports.ASLoaderDotsStyled = styled_components_1.default.div `
79
+ width: 64px;
80
+ height: 64px;
81
+ --c: radial-gradient(farthest-side, #ffd700 90%, #0000);
82
+ --d: radial-gradient(farthest-side, #ffbe5c 90%, #0000);
83
+ background: var(--c) 0 0, var(--d) 100% 0, var(--c) 100% 100%, var(--d) 0 100%;
84
+ background-size: 24px 24px;
85
+ background-repeat: no-repeat;
86
+ animation: ${loaderDots} 1s infinite;
87
+ position: relative;
88
+ left: 50%;
89
+ top: 50%;
90
+ transform: translate(-50%, -50%);
91
+
92
+ width: ${({ size }) => (size === ASUI_types_1.ASComponentSize.Large ? '64px' : size === ASUI_types_1.ASComponentSize.Medium ? '32px' : '16px')};
93
+ height: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '64px' : size === ASUI_types_1.ASComponentSize.Medium ? '32px' : '16px'};
94
+ background-size: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '24px 24px' : size === ASUI_types_1.ASComponentSize.Medium ? '12px 12px' : '6px 6px'};
95
+ `;
96
+ exports.ASLoaderSpinStyled = styled_components_1.default.div `
97
+ position: relative;
98
+ left: 50%;
99
+ top: 50%;
100
+ transform: translate(-50%, -50%);
101
+ width: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '100px' : size === ASUI_types_1.ASComponentSize.Medium ? '50px' : '30px'};
102
+ height: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '100px' : size === ASUI_types_1.ASComponentSize.Medium ? '50px' : '30px'};
103
+
104
+ // width: 120px;
105
+ // height: 22px;
106
+ // border-radius: 20px;
107
+ // border-width: 2px;
108
+ // &::before {
109
+ // margin: 2px;
110
+ // }
111
+ `;
112
+ exports.ASLoaderInnerSpinStyled = styled_components_1.default.div `
113
+ display: grid;
114
+ border-style: solid;
115
+ border-radius: 50%;
116
+ border-color: ${({ theme }) => theme.loader.loaderSpinBorderColor};
117
+ animation: ${loaderSpin} 6s infinite linear;
118
+ position: absolute;
119
+ width: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '100px' : size === ASUI_types_1.ASComponentSize.Medium ? '50px' : '26px'};
120
+ height: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '100px' : size === ASUI_types_1.ASComponentSize.Medium ? '50px' : '26px'};
121
+
122
+ &::before,
123
+ &::after {
124
+ content: '';
125
+ grid-area: 1/1;
126
+ border: inherit;
127
+ border-radius: 50%;
128
+ border-color: ${({ theme }) => theme.loader.loaderSpinBorderAfterColor};
129
+ }
130
+
131
+ &::before {
132
+ border-color: ${({ theme }) => theme.loader.loaderSpinBorderBeforeColor};
133
+ animation: inherit;
134
+ animation-duration: 1s;
135
+ animation-direction: reverse;
136
+ }
137
+
138
+ border-width: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '8px' : size === ASUI_types_1.ASComponentSize.Medium ? '4px' : '2px'};
139
+ &::before,
140
+ &::after {
141
+ margin: ${({ size }) => size === ASUI_types_1.ASComponentSize.Large ? '16px' : size === ASUI_types_1.ASComponentSize.Medium ? '8px' : '4px'};
142
+ }
143
+ `;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ASComponentSize } from '../apptypes/ASUI.types';
3
+ import ASThemeDefault from '../astheme/ASThemeDefault';
3
4
  type ASTextFieldProps = {
4
5
  className?: string;
6
+ theme?: typeof ASThemeDefault;
5
7
  value: string;
6
8
  onChange?: (value: string) => void;
7
9
  size?: ASComponentSize;