@eleventheye/asui 2.8.0 → 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.
Files changed (59) hide show
  1. package/dist/apptypes/ASUI.types.d.ts +14 -4
  2. package/dist/apptypes/ASUI.types.d.ts.map +1 -1
  3. package/dist/asbutton/ASButton.d.ts.map +1 -1
  4. package/dist/asbutton/ASButton.js +3 -3
  5. package/dist/asbutton/ASButton.types.d.ts +3 -0
  6. package/dist/asbutton/ASButton.types.d.ts.map +1 -1
  7. package/dist/asbutton/styles.d.ts +6 -2
  8. package/dist/asbutton/styles.d.ts.map +1 -1
  9. package/dist/asbutton/styles.js +2 -1
  10. package/dist/asiconbutton/ASIconButton.d.ts.map +1 -1
  11. package/dist/asiconbutton/ASIconButton.js +6 -26
  12. package/dist/asiconbutton/styles.d.ts +6 -2
  13. package/dist/asiconbutton/styles.d.ts.map +1 -1
  14. package/dist/asiconbutton/styles.js +2 -1
  15. package/dist/asmodal/ASModal.d.ts.map +1 -1
  16. package/dist/asmodal/ASModal.js +15 -29
  17. package/dist/asmodal/ASModal.types.d.ts +22 -1
  18. package/dist/asmodal/ASModal.types.d.ts.map +1 -1
  19. package/dist/asmodal/index.d.ts +1 -1
  20. package/dist/asmodal/index.d.ts.map +1 -1
  21. package/dist/asmodal/styles.d.ts +7 -1
  22. package/dist/asmodal/styles.d.ts.map +1 -1
  23. package/dist/asmodal/styles.js +48 -5
  24. package/dist/asnavbar/desktop/ASNavBarDW.d.ts.map +1 -1
  25. package/dist/asnavbar/desktop/ASNavBarDW.js +2 -3
  26. package/dist/asnavbar/desktop/styles.d.ts +2 -1
  27. package/dist/asnavbar/desktop/styles.d.ts.map +1 -1
  28. package/dist/asnavbar/desktop/styles.js +11 -24
  29. package/dist/asnavbar/navbaritem/ASNavBarItem.d.ts.map +1 -1
  30. package/dist/asnavbar/navbaritem/ASNavBarItem.js +1 -24
  31. package/dist/asnavbar/navbaritem/styles.d.ts +5 -1
  32. package/dist/asnavbar/navbaritem/styles.d.ts.map +1 -1
  33. package/dist/asnavbar/navbaritem/styles.js +2 -1
  34. package/dist/asnavbar/navbarpickpanelitem/ASNavBarPickPanelItem.d.ts.map +1 -1
  35. package/dist/asnavbar/navbarpickpanelitem/ASNavBarPickPanelItem.js +1 -21
  36. package/dist/asnavbar/navbarpickpanelitem/styles.d.ts +5 -1
  37. package/dist/asnavbar/navbarpickpanelitem/styles.d.ts.map +1 -1
  38. package/dist/asnavbar/navbarpickpanelitem/styles.js +2 -1
  39. package/dist/asnavbar/styles.d.ts.map +1 -1
  40. package/dist/asnavbar/styles.js +6 -46
  41. package/dist/astappable/ASTappable.d.ts +7 -0
  42. package/dist/astappable/ASTappable.d.ts.map +1 -0
  43. package/dist/astappable/ASTappable.js +28 -0
  44. package/dist/astappable/ASTappable.types.d.ts +5 -0
  45. package/dist/astappable/ASTappable.types.d.ts.map +1 -0
  46. package/dist/astappable/ASTappable.types.js +2 -0
  47. package/dist/astappable/index.d.ts +2 -0
  48. package/dist/astappable/index.d.ts.map +1 -0
  49. package/dist/astappable/index.js +6 -0
  50. package/dist/astextfield/ASTextField.js +1 -1
  51. package/dist/astextfield/styles.d.ts +12 -4
  52. package/dist/astextfield/styles.d.ts.map +1 -1
  53. package/dist/astextfield/styles.js +3 -2
  54. package/dist/astheme/ASSharedStyles.d.ts +4 -0
  55. package/dist/astheme/ASSharedStyles.d.ts.map +1 -0
  56. package/dist/astheme/ASSharedStyles.js +46 -0
  57. package/dist/astheme/ASThemeDefault.d.ts.map +1 -1
  58. package/dist/astheme/ASThemeDefault.js +6 -0
  59. 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;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
@@ -1 +1 @@
1
- {"version":3,"file":"ASButton.d.ts","sourceRoot":"","sources":["../../src/asbutton/ASButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8DrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
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 = '', onClick = () => 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 }) => {
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
- onClick(e);
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, 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.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 })] }) }));
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,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjF,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,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"ASButton.types.d.ts","sourceRoot":"","sources":["../../src/asbutton/ASButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjF,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;IAOpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAQzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,8 +1,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("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
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;AAEjF,eAAO,MAAM,cAAc;WAAuB,OAAO;UAAQ,eAAe;YAwJ/E,CAAC;AAEF,eAAO,MAAM,aAAa;WAAuB,eAAe;YAG/D,CAAC;AAEF,eAAO,MAAM,cAAc,6NAG1B,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"}
@@ -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
- exports.ASButtonStyled = styled_components_1.default.div `
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,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqF7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
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
- 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' : ''}`, onPointerUp: onTapRelease, onPointerDown: onTap, style: style, id: id, ...props, children: (0, jsx_runtime_1.jsx)(Icon, { iconSize: iconSize, fillColor: fillColor, color: strokeColor, strokeWidth: strokeWidth }) }));
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("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
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;AAElE,eAAO,MAAM,kBAAkB;WAAuB,OAAO;UAAQ,eAAe;YAgMnF,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
- exports.ASIconButtonStyled = styled_components_1.default.div `
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,EAAgB,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAGlF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,CA0EtD,CAAC;AAEF,eAAe,OAAO,CAAC"}
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"}
@@ -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, ...props }) => {
8
- const tapDebounceRef = (0, react_1.useRef)('None');
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
- const clsR = 'background: crimson; color: #000000; border-radius: 10px;';
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
- bgColor?: string;
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;AAErC,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,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"}
@@ -1,3 +1,3 @@
1
1
  export { default } from './ASModal';
2
- export type { ASModalProps } from './ASModal.types';
2
+ export type { ASModalBackdropStyledProps, ASModalProps } from './ASModal.types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,2 +1,8 @@
1
- export declare const ASModalBackdropStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
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,6NAQjC,CAAC"}
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"}
@@ -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
- exports.ASModalBackdropStyled = styled_components_1.default.div `
7
- content: '';
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-color: rgba(0, 0, 0, 0.5);
13
- z-index: 2;
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":"ASNavBarDW.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/desktop/ASNavBarDW.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAI/F,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAc9D,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmJvC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ASNavBarDW.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/desktop/ASNavBarDW.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAI/F,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAc9D,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiJvC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -38,12 +38,11 @@ const ASNavBarDW = ({ id = `asnavbar-dw-${(0, uuid_1.v4)()}`, className = '', na
38
38
  });
39
39
  };
40
40
  const onScrollEndHandler = () => {
41
- if (!navBarHighlightBoxRef.current || !navBarScrollRef.current || !navBarRef.current || !selectedItemElRef.current)
41
+ if (!navBarHighlightBoxRef.current || !navBarScrollRef.current || !selectedItemElRef.current)
42
42
  return;
43
43
  const selectedItemEl = selectedItemElRef.current;
44
44
  const selectedElRect = selectedItemEl.getBoundingClientRect();
45
45
  const parentRect = navBarScrollRef.current.getBoundingClientRect();
46
- const rootRect = navBarRef.current.getBoundingClientRect();
47
46
  const offsetToSelectedEl = selectedElRect.left - parentRect.left;
48
47
  const selectedBox = navBarHighlightBoxRef.current;
49
48
  const selectedBoxWidth = selectedElRect.width;
@@ -98,6 +97,6 @@ const ASNavBarDW = ({ id = `asnavbar-dw-${(0, uuid_1.v4)()}`, className = '', na
98
97
  };
99
98
  const onItemResizedHandler = (itemId, item) => slideHighlightToSelectedItem(item, itemId);
100
99
  const isSelected = (itemId) => selected === itemId;
101
- return ((0, jsx_runtime_1.jsxs)(styles_1.ASNavBarDWStyled, { id: id, ref: navBarRef, className: `${className} ${size}`, theme: theme, ...styleOptions, children: [(0, jsx_runtime_1.jsxs)(styles_1.ASNavBarScrollableItems, { ref: navBarScrollRef, children: [(0, jsx_runtime_1.jsx)(styles_1.ASScrollContainerStyled, { onScrollEnd: onScrollEndHandler, children: navItems.map((item, index) => ((0, jsx_runtime_1.jsx)(navbaritem_1.default, { theme: theme, itemId: item.itemId, selected: isSelected(item.itemId), displayText: item.displayText, icon: item.icon, onItemResized: onItemResizedHandler, onItemClick: onItemSelectedHandler, size: size }, `key_${index}_${item.itemId}`))) }), (0, jsx_runtime_1.jsx)(styles_1.ASSelectedBoxStyled, { ref: navBarHighlightBoxRef, theme: theme })] }), (0, jsx_runtime_1.jsx)(navbararrowbuttons_1.default, { onArrowButtonClicked: scrollToDirection, className: styles_1.ASNavButtonsDWContainer, theme: theme, size: size, totalItemCount: totalItemCount, selectedIndex: selectedIndex, styleOptions: styleOptions, isMobile: false })] }));
100
+ return ((0, jsx_runtime_1.jsxs)(styles_1.ASNavBarDWStyled, { id: id, ref: navBarRef, className: `${className} ${size}`, theme: theme, ...styleOptions, children: [(0, jsx_runtime_1.jsxs)(styles_1.ASNavBarScrollableItems, { ref: navBarScrollRef, ...styleOptions, children: [(0, jsx_runtime_1.jsx)(styles_1.ASScrollContainerStyled, { onScrollEnd: onScrollEndHandler, children: navItems.map((item, index) => ((0, jsx_runtime_1.jsx)(navbaritem_1.default, { theme: theme, itemId: item.itemId, selected: isSelected(item.itemId), displayText: item.displayText, icon: item.icon, onItemResized: onItemResizedHandler, onItemClick: onItemSelectedHandler, size: size }, `key_${index}_${item.itemId}`))) }), (0, jsx_runtime_1.jsx)(styles_1.ASSelectedBoxStyled, { ref: navBarHighlightBoxRef, theme: theme })] }), (0, jsx_runtime_1.jsx)(navbararrowbuttons_1.default, { onArrowButtonClicked: scrollToDirection, className: styles_1.ASNavButtonsDWContainer, theme: theme, size: size, totalItemCount: totalItemCount, selectedIndex: selectedIndex, styleOptions: styleOptions, isMobile: false })] }));
102
101
  };
103
102
  exports.default = ASNavBarDW;
@@ -7,6 +7,7 @@ interface ASNavBarStyledProps {
7
7
  $minWidth?: number;
8
8
  $borderRadius?: number;
9
9
  $padding?: string;
10
+ $hideNavArrowButtonsInDW?: boolean;
10
11
  }
11
12
  export declare const ASNavBarDWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASNavBarStyledProps>> & string;
12
13
  interface ASNavBarSelectedBoxStyledProps {
@@ -25,7 +26,7 @@ interface ASNavBarItemStyledProps {
25
26
  }
26
27
  export declare const ASNavBarItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASNavBarItemStyledProps>> & string;
27
28
  export declare const ASNavButtonsDWContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
- export declare const ASNavBarScrollableItems: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
29
+ export declare const ASNavBarScrollableItems: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASNavBarStyledProps>> & string;
29
30
  export declare const ASScrollContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASNavBarStyledProps>> & string;
30
31
  export {};
31
32
  //# sourceMappingURL=styles.d.ts.map
@@ -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;AAqBpD,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;CACnB;AAsBD,eAAO,MAAM,gBAAgB,wPAoB5B,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,CAA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pB,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"}
@@ -4,22 +4,7 @@ exports.ASScrollContainerStyled = exports.ASNavBarScrollableItems = exports.ASNa
4
4
  const tslib_1 = require("tslib");
5
5
  const styled_components_1 = tslib_1.__importStar(require("styled-components"));
6
6
  const astheme_1 = tslib_1.__importDefault(require("../../astheme"));
7
- const HideScrollBarConfig = (0, styled_components_1.css) `
8
- /* Hide scrollbar for Chrome, Safari and Opera */
9
- &::-webkit-scrollbar {
10
- display: none;
11
- }
12
-
13
- /* Hide scrollbar for IE, Edge and Firefox */
14
- -ms-overflow-style: none; /* IE and Edge */
15
- scrollbar-width: none; /* Firefox */
16
- `;
17
- const maxWidth = (0, styled_components_1.css) `
18
- width: 100%;
19
- @supports (width: -webkit-fill-available) {
20
- width: -webkit-fill-available;
21
- }
22
- `;
7
+ const ASSharedStyles_1 = require("../../astheme/ASSharedStyles");
23
8
  const dimensionsForSizes = (0, styled_components_1.css) `
24
9
  &.ASSmall {
25
10
  height: 30px;
@@ -35,7 +20,7 @@ const dimensionsForSizes = (0, styled_components_1.css) `
35
20
 
36
21
  &.ASLarge {
37
22
  height: 50px;
38
- font-size: 2.1rem;
23
+ font-size: 2rem;
39
24
  font-weight: 500;
40
25
  }
41
26
  `;
@@ -47,7 +32,7 @@ exports.ASNavBarDWStyled = styled_components_1.default.div `
47
32
  flex-direction: row;
48
33
  position: relative;
49
34
  gap: ${({ $gap = 30 }) => $gap}px;
50
- width: -webkit-fill-available;
35
+ ${ASSharedStyles_1.MaxWidthStyle}
51
36
  contain: layout;
52
37
  grid-row: 1;
53
38
  min-width: ${({ $minWidth = 300 }) => $minWidth}px;
@@ -56,7 +41,8 @@ exports.ASNavBarDWStyled = styled_components_1.default.div `
56
41
  background-color: ${({ theme }) => theme.navbar.navBarBackgroundColor};
57
42
  box-shadow: ${({ theme }) => theme.navbar.navBarBoxShadow};
58
43
  overflow: hidden;
59
- overflow-x: overlay;
44
+ contain: content;
45
+ max-width: 100%;
60
46
 
61
47
  ${dimensionsForSizes}
62
48
  `;
@@ -88,6 +74,7 @@ exports.ASNavBarItemStyled = styled_components_1.default.div `
88
74
  z-index: 1;
89
75
  white-space: nowrap;
90
76
  user-select: none;
77
+ overflow-x: overlay;
91
78
 
92
79
  ${dimensionsForSizes}
93
80
 
@@ -126,10 +113,10 @@ exports.ASNavBarScrollableItems = styled_components_1.default.div `
126
113
  flex-direction: row;
127
114
  position: relative;
128
115
  overflow: hidden;
129
- width: fit-content;
130
- padding: 0 44px;
116
+ max-width: 100%;
117
+ padding: ${({ $hideNavArrowButtonsInDW }) => ($hideNavArrowButtonsInDW ? '0' : '0 44px')};
131
118
  height: 95%;
132
- ${HideScrollBarConfig}
119
+ ${ASSharedStyles_1.HideScrollBarStyle}
133
120
  `;
134
121
  exports.ASScrollContainerStyled = styled_components_1.default.div `
135
122
  display: flex;
@@ -139,7 +126,7 @@ exports.ASScrollContainerStyled = styled_components_1.default.div `
139
126
  position: relative;
140
127
  overflow: hidden;
141
128
  overflow-x: auto;
142
- width: 100%
129
+ width: 100%;
143
130
  gap: 16px;
144
131
  scroll-behavior: smooth;
145
132
  scroll-snap-type: x mandatory;
@@ -147,5 +134,5 @@ exports.ASScrollContainerStyled = styled_components_1.default.div `
147
134
  scroll-snap-stop: always;
148
135
  scroll-snap-align: center;
149
136
  }
150
- ${HideScrollBarConfig}
137
+ ${ASSharedStyles_1.HideScrollBarStyle}
151
138
  `;
@@ -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;AAQtD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiG7C,CAAC;AAEF,eAAe,YAAY,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
- const onTap = (e) => {
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("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASNavBarItemStyledProps>> & string;
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;AAIpD,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,4PAoE9B,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.div `
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,CA8FtD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
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
- const onTap = (e) => {
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("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASNavBarPickPanelItemStyledProps>> & string;
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;AAIpD,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,qQAgEvC,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.div `
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;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asnavbar/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGvE,UAAU,mBAAoB,SAAQ,oBAAoB;IACxD,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAwCD,eAAO,MAAM,cAAc,wPAoC1B,CAAC;AAEF,UAAU,wBAAwB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B,6PAgBtC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/asnavbar/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAIvE,UAAU,mBAAoB,SAAQ,oBAAoB;IACxD,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,wPAgC1B,CAAC;AAEF,UAAU,wBAAwB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B,6PAetC,CAAC"}
@@ -2,44 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ASNavBarLeadingIconPadding = exports.ASNavBarStyled = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const styled_components_1 = tslib_1.__importStar(require("styled-components"));
5
+ const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
6
6
  const astheme_1 = tslib_1.__importDefault(require("../astheme"));
7
- const ShowScrollBarConfig = (0, styled_components_1.css) `
8
- /* Chrome, Edge, and Safari */
9
- &::-webkit-scrollbar {
10
- width: 1px;
11
- height: 1px; // Set scrollbar height (horizontal)
12
- background: transparent;
13
- scrollbar-color: #ffda3f transparent; // thumb color, track color
14
- scrollbar-width: thinner;
15
- }
16
- &::-webkit-scrollbar-track {
17
- background: transparent;
18
- height: 1px; // Set scrollbar track height (horizontal)
19
- width: 1px;
20
- }
21
-
22
- &::-webkit-scrollbar-thumb {
23
- background: linear-gradient(to bottom, rgb(22, 19, 8) 0%, rgb(255, 204, 0) 75%, rgb(66, 55, 14) 100%);
24
- border-radius: 3px;
25
- height: 1px; // Set scrollbar track height (horizontal)
26
- width: 1px;
27
- }
28
-
29
- /* Firefox */
30
- scrollbar-color: #ffda3f transparent; // thumb color, track color
31
- scrollbar-width: thinner;
32
- `;
33
- const HideScrollBarConfig = (0, styled_components_1.css) `
34
- /* Hide scrollbar for Chrome, Safari and Opera */
35
- &::-webkit-scrollbar {
36
- display: none;
37
- }
38
-
39
- /* Hide scrollbar for IE, Edge and Firefox */
40
- -ms-overflow-style: none; /* IE and Edge */
41
- scrollbar-width: none; /* Firefox */
42
- `;
7
+ const ASSharedStyles_1 = require("../astheme/ASSharedStyles");
43
8
  exports.ASNavBarStyled = styled_components_1.default.div `
44
9
  anchor-name: --navbarAnchor;
45
10
  display: grid;
@@ -50,7 +15,6 @@ exports.ASNavBarStyled = styled_components_1.default.div `
50
15
  grid-column: 3;
51
16
  grid-row: 1;
52
17
  grid-gap: 16px;
53
- // display: flex;
54
18
  flex-direction: column;
55
19
  align-items: flex-start;
56
20
  justify-content: flex-start;
@@ -63,21 +27,17 @@ exports.ASNavBarStyled = styled_components_1.default.div `
63
27
  background-color: ${({ theme }) => theme.navbar.navBarBackgroundColor};
64
28
  box-shadow: ${({ theme }) => theme.navbar.navBarBoxShadow};
65
29
 
66
- width: 100%;
67
- @supports (width: -webkit-fill-available) {
68
- width: -webkit-fill-available;
69
- max-width: ${({ $maxWidth = 100, $maxWidthUnit = '%' }) => `${$maxWidth}${$maxWidthUnit}`};
70
- }
30
+ ${ASSharedStyles_1.MaxWidthStyle}
31
+ max-width: ${({ $maxWidth = 100, $maxWidthUnit = '%' }) => `${$maxWidth}${$maxWidthUnit}`};
71
32
 
72
- @media screen and (max-width: 768px) {
33
+ @media screen and (max-width: 425px) {
73
34
  max-width: 300px;
74
35
  width: 100%;
75
36
  }
76
37
 
77
- ${({ $hideHorizontalScrollbarInDW = true }) => $hideHorizontalScrollbarInDW ? HideScrollBarConfig : ShowScrollBarConfig};
38
+ ${({ $hideHorizontalScrollbarInDW = true }) => $hideHorizontalScrollbarInDW ? ASSharedStyles_1.HideScrollBarStyle : ASSharedStyles_1.ShowScrollBarStyle};
78
39
  `;
79
40
  exports.ASNavBarLeadingIconPadding = styled_components_1.default.div `
80
- // padding: 0 4px;
81
41
  pointer-events: none;
82
42
  user-select: none;
83
43
  ${({ $selected = false, theme = astheme_1.default }) => $selected
@@ -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,5 @@
1
+ import { PointerEvent } from 'react';
2
+ export interface ASTappableProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ onTapped?: (e: PointerEvent<HTMLDivElement>) => void;
4
+ }
5
+ //# sourceMappingURL=ASTappable.types.d.ts.map
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { default } from './ASTappable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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", onClick: 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", onClick: 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 })] }))] }));
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("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
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
- export declare const ASTextFieldSearchIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
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;AAGjD,eAAO,MAAM,yBAAyB;WAAuB,OAAO;YAmHnE,CAAC;AAEF,eAAO,MAAM,gBAAgB;WAAyB,OAAO;YAkD5D,CAAC;AAEF,eAAO,MAAM,oBAAoB;WAAuB,OAAO;YAS9D,CAAC;AAEF,eAAO,MAAM,qBAAqB;WAAuB,OAAO;YAG/D,CAAC;AAkBF,eAAO,MAAM,oBAAoB,gQAEhC,CAAC;AACF,eAAO,MAAM,aAAa,gQAEzB,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.div `
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.div `
185
+ exports.ASTextFieldSearchIcon = (0, styled_components_1.default)(astappable_1.default) `
185
186
  margin-right: -4px;
186
187
  user-select: none;
187
188
  `;
@@ -0,0 +1,4 @@
1
+ export declare const ShowScrollBarStyle: import("styled-components").RuleSet<object>;
2
+ export declare const HideScrollBarStyle: import("styled-components").RuleSet<object>;
3
+ export declare const MaxWidthStyle: import("styled-components").RuleSet<object>;
4
+ //# sourceMappingURL=ASSharedStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ASSharedStyles.d.ts","sourceRoot":"","sources":["../../src/astheme/ASSharedStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,6CAyB9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,6CAS9B,CAAC;AAEF,eAAO,MAAM,aAAa,6CAKzB,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaxWidthStyle = exports.HideScrollBarStyle = exports.ShowScrollBarStyle = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ exports.ShowScrollBarStyle = (0, styled_components_1.css) `
6
+ /* Chrome, Edge, and Safari */
7
+ &::-webkit-scrollbar {
8
+ width: 1px;
9
+ height: 1px; // Set scrollbar height (horizontal)
10
+ background: transparent;
11
+ scrollbar-color: #ffda3f transparent; // thumb color, track color
12
+ scrollbar-width: thinner;
13
+ }
14
+ &::-webkit-scrollbar-track {
15
+ background: transparent;
16
+ height: 1px; // Set scrollbar track height (horizontal)
17
+ width: 1px;
18
+ }
19
+
20
+ &::-webkit-scrollbar-thumb {
21
+ background: linear-gradient(to bottom, rgb(22, 19, 8) 0%, rgb(255, 204, 0) 75%, rgb(66, 55, 14) 100%);
22
+ border-radius: 3px;
23
+ height: 1px; // Set scrollbar track height (horizontal)
24
+ width: 1px;
25
+ }
26
+
27
+ /* Firefox */
28
+ scrollbar-color: #ffda3f transparent; // thumb color, track color
29
+ scrollbar-width: thinner;
30
+ `;
31
+ exports.HideScrollBarStyle = (0, styled_components_1.css) `
32
+ /* Hide scrollbar for Chrome, Safari and Opera */
33
+ &::-webkit-scrollbar {
34
+ display: none;
35
+ }
36
+
37
+ /* Hide scrollbar for IE, Edge and Firefox */
38
+ -ms-overflow-style: none; /* IE and Edge */
39
+ scrollbar-width: none; /* Firefox */
40
+ `;
41
+ exports.MaxWidthStyle = (0, styled_components_1.css) `
42
+ width: 100%;
43
+ @supports (width: -webkit-fill-available) {
44
+ width: -webkit-fill-available;
45
+ }
46
+ `;
@@ -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,OA8FrB,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;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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleventheye/asui",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "private": false,
5
5
  "description": "AS UI React Library by eleventheye (another one!)",
6
6
  "keywords": [