@eleventheye/asui 1.9.0 → 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.
@@ -3,6 +3,18 @@ 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
+ };
6
18
  export interface ASTheme {
7
19
  textfield: {
8
20
  color: string;
@@ -22,6 +34,39 @@ export interface ASTheme {
22
34
  placeholderColor: string;
23
35
  iconTextShadow: string;
24
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
+ };
25
70
  colors: {
26
71
  mainGold: string;
27
72
  mainYellow: string;
@@ -92,4 +137,5 @@ export interface ASTheme {
92
137
  };
93
138
  borderRadius: string;
94
139
  }
140
+ export {};
95
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;AAED,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM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ponentSize = 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
+ `;
@@ -119,7 +119,7 @@ exports.ASTextFieldInputContainer = styled_components_1.default.div `
119
119
  }
120
120
  `;
121
121
  exports.ASTextFieldInput = styled_components_1.default.input `
122
- font-family: 'Saira Extra Condensed';
122
+ font-family: 'Big Shoulders Display', 'BigShouldersDisplay', 'Saira Extra Condensed';
123
123
  width: 100%;
124
124
  // appearance: textfield;
125
125
  outline: none;
@@ -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;AAuEjD,QAAA,MAAM,cAAc,EAAE,OAsBrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAwEjD,QAAA,MAAM,cAAc,EAAE,OA0DrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -36,6 +36,7 @@ const colors = {
36
36
  mainGray22: '#222222',
37
37
  mainGray33: '#333333',
38
38
  mainGray41: '#414141',
39
+ mainGray47: '#474747',
39
40
  mainGray55: '#555555',
40
41
  mainGray58: '#585858',
41
42
  mainGray66: '#666666',
@@ -70,6 +71,39 @@ const colors = {
70
71
  };
71
72
  const ASThemeDefault = {
72
73
  colors,
74
+ button: {
75
+ buttonGradientDown: `linear-gradient(to bottom, ${colors.yellow30} 0%, ${colors.mainYellow} 100%)`,
76
+ buttonGradientUp: `linear-gradient(to top, ${colors.yellow30} 0%, ${colors.mainYellow} 100%)`,
77
+ buttonShadowHoverASSmall: `inset 0 0 5px 0 ${colors.mainGray47}`,
78
+ buttonShadowHoverASMedium: `inset 0 0 10px 0 ${colors.mainGray47}`,
79
+ buttonShadowHoverASLarge: `inset 0 0 15px 0 ${colors.mainGray47}`,
80
+ buttonShadowActiveASSmall: `inset 0 0 5px 1px ${colors.mainBlack}`,
81
+ buttonShadowActiveASMedium: `inset 0 0 8px 2px ${colors.mainBlack}`,
82
+ buttonShadowActiveASLarge: `inset 0 0 11px 3px ${colors.mainBlack}`,
83
+ buttonShadowNormal: `inset 0 0 1px 0 ${colors.yellow30}`,
84
+ buttonShadowHover: `inset 0 0 1px 0 ${colors.yellow80}`,
85
+ buttonOutline: colors.mainYellow,
86
+ buttonTextShadow: '-1px -1px 1px rgba(255, 255, 255, 0.3), 1px 1px 1px rgba(0, 0, 0, 0.2)',
87
+ buttonBg: colors.yellow30,
88
+ buttonBgDisabled: colors.mainGray33,
89
+ buttonColor: colors.mainGray58,
90
+ buttonColorHover: colors.mainGray41,
91
+ buttonColorSelected: colors.mainGray33,
92
+ buttonColorDisabled: colors.mainGray99,
93
+ },
94
+ loader: {
95
+ loaderBackdropFilter: `blur(2px) contrast(0.5) brightness(0.5) opacity(0.75)`,
96
+ loaderTextColor: colors.mainGold,
97
+ loaderTextShadow: colors.mainWhite,
98
+ loaderDotsGradientC: colors.mainGold,
99
+ loaderDotsGradientD: colors.yellow20,
100
+ loaderGrowColor: colors.mainGold,
101
+ loaderGrowBorderColor: colors.mainYellow,
102
+ loaderGrowBackground: `linear-gradient(to bottom, ${colors.yellow30} 5%, ${colors.mainYellow} 100%)`,
103
+ loaderSpinBorderColor: colors.mainGold,
104
+ loaderSpinBorderAfterColor: `${colors.yellow20} #0000`,
105
+ loaderSpinBorderBeforeColor: `${colors.mainGold} #0000`,
106
+ },
73
107
  textfield: {
74
108
  color: colors.yellow30,
75
109
  borderColor: colors.mainYellow,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { default as ASTextField } from './astextfield/ASTextField';
1
+ export * from './icons/Icons.types';
2
+ export type { IconProps } from './icons/Icons.types';
2
3
  export { default as AddItemIcon } from './icons/AddItemIcon';
3
4
  export { default as AddUserIcon } from './icons/AddUserIcon';
4
5
  export { default as CheckIcon } from './icons/CheckIcon';
@@ -12,8 +13,6 @@ export { default as GamesIcon } from './icons/GamesIcon';
12
13
  export { default as GearUserIcon } from './icons/GearUserIcon';
13
14
  export { default as HexagonIcon } from './icons/HexagonIcon';
14
15
  export { default as HomeIcon } from './icons/HomeIcon';
15
- export * from './icons/Icons.types';
16
- export type { IconProps } from './icons/Icons.types';
17
16
  export { default as LockIcon } from './icons/LockIcon';
18
17
  export { default as PenIcon } from './icons/PenIcon';
19
18
  export { default as RulerIcon } from './icons/RulerIcon';
@@ -23,4 +22,6 @@ export { default as TimeLapseIcon } from './icons/TimeLapseIcon';
23
22
  export { default as UnlockIcon } from './icons/UnlockIcon';
24
23
  export { default as UserSettingsIcon } from './icons/UserSettingsIcon';
25
24
  export { default as ASThemeDefault } from './astheme/ASThemeDefault';
25
+ export { default as ASButton } from './asbutton/ASButton';
26
+ export { default as ASTextField } from './astextfield/ASTextField';
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAA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;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ASThemeDefault = exports.UserSettingsIcon = exports.UnlockIcon = exports.TimeLapseIcon = exports.SearchIcon = exports.SaveIcon = exports.RulerIcon = exports.PenIcon = exports.LockIcon = exports.HomeIcon = exports.HexagonIcon = exports.GearUserIcon = exports.GamesIcon = exports.FootballIcon = exports.EyeSlashIcon = exports.EyeIcon = exports.EleventheyeIcon = exports.DeleteIcon = exports.CloseIcon = exports.CheckIcon = exports.AddUserIcon = exports.AddItemIcon = exports.ASTextField = void 0;
3
+ exports.ASTextField = exports.ASButton = exports.ASThemeDefault = exports.UserSettingsIcon = exports.UnlockIcon = exports.TimeLapseIcon = exports.SearchIcon = exports.SaveIcon = exports.RulerIcon = exports.PenIcon = exports.LockIcon = exports.HomeIcon = exports.HexagonIcon = exports.GearUserIcon = exports.GamesIcon = exports.FootballIcon = exports.EyeSlashIcon = exports.EyeIcon = exports.EleventheyeIcon = exports.DeleteIcon = exports.CloseIcon = exports.CheckIcon = exports.AddUserIcon = exports.AddItemIcon = void 0;
4
4
  const tslib_1 = require("tslib");
5
- var ASTextField_1 = require("./astextfield/ASTextField");
6
- Object.defineProperty(exports, "ASTextField", { enumerable: true, get: function () { return tslib_1.__importDefault(ASTextField_1).default; } });
5
+ tslib_1.__exportStar(require("./icons/Icons.types"), exports);
7
6
  var AddItemIcon_1 = require("./icons/AddItemIcon");
8
7
  Object.defineProperty(exports, "AddItemIcon", { enumerable: true, get: function () { return tslib_1.__importDefault(AddItemIcon_1).default; } });
9
8
  var AddUserIcon_1 = require("./icons/AddUserIcon");
@@ -30,7 +29,6 @@ var HexagonIcon_1 = require("./icons/HexagonIcon");
30
29
  Object.defineProperty(exports, "HexagonIcon", { enumerable: true, get: function () { return tslib_1.__importDefault(HexagonIcon_1).default; } });
31
30
  var HomeIcon_1 = require("./icons/HomeIcon");
32
31
  Object.defineProperty(exports, "HomeIcon", { enumerable: true, get: function () { return tslib_1.__importDefault(HomeIcon_1).default; } });
33
- tslib_1.__exportStar(require("./icons/Icons.types"), exports);
34
32
  var LockIcon_1 = require("./icons/LockIcon");
35
33
  Object.defineProperty(exports, "LockIcon", { enumerable: true, get: function () { return tslib_1.__importDefault(LockIcon_1).default; } });
36
34
  var PenIcon_1 = require("./icons/PenIcon");
@@ -49,3 +47,7 @@ var UserSettingsIcon_1 = require("./icons/UserSettingsIcon");
49
47
  Object.defineProperty(exports, "UserSettingsIcon", { enumerable: true, get: function () { return tslib_1.__importDefault(UserSettingsIcon_1).default; } });
50
48
  var ASThemeDefault_1 = require("./astheme/ASThemeDefault");
51
49
  Object.defineProperty(exports, "ASThemeDefault", { enumerable: true, get: function () { return tslib_1.__importDefault(ASThemeDefault_1).default; } });
50
+ var ASButton_1 = require("./asbutton/ASButton");
51
+ Object.defineProperty(exports, "ASButton", { enumerable: true, get: function () { return tslib_1.__importDefault(ASButton_1).default; } });
52
+ var ASTextField_1 = require("./astextfield/ASTextField");
53
+ Object.defineProperty(exports, "ASTextField", { enumerable: true, get: function () { return tslib_1.__importDefault(ASTextField_1).default; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleventheye/asui",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "private": false,
5
5
  "description": "AS UI React Library by eleventheye (another one!)",
6
6
  "keywords": [