@eleventheye/asui 2.13.3 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +3 -5
- package/AGENTS.md +125 -0
- package/CHANGELOG.md +17 -0
- package/dist/apptypes/ASUI.types.d.ts +5 -0
- package/dist/apptypes/ASUI.types.d.ts.map +1 -1
- package/dist/asbutton/styles.d.ts +13 -6
- package/dist/asbutton/styles.d.ts.map +1 -1
- package/dist/aschart/donut/styles.d.ts +14 -14
- package/dist/aschart/donut/styles.d.ts.map +1 -1
- package/dist/aschart/hbar/styles.d.ts +7 -7
- package/dist/aschart/hbar/styles.d.ts.map +1 -1
- package/dist/aschart/vbar/ASChartVBar.types.d.ts +1 -1
- package/dist/aschart/vbar/ASChartVBar.types.d.ts.map +1 -1
- package/dist/aschart/vbar/styles.d.ts +7 -7
- package/dist/aschart/vbar/styles.d.ts.map +1 -1
- package/dist/asdropdown/styles.d.ts +13 -7
- package/dist/asdropdown/styles.d.ts.map +1 -1
- package/dist/asiconbutton/styles.d.ts +8 -3
- package/dist/asiconbutton/styles.d.ts.map +1 -1
- package/dist/asloader/styles.d.ts +30 -14
- package/dist/asloader/styles.d.ts.map +1 -1
- package/dist/asmodal/styles.d.ts +5 -3
- package/dist/asmodal/styles.d.ts.map +1 -1
- package/dist/asnavbar/desktop/styles.d.ts +6 -6
- package/dist/asnavbar/desktop/styles.d.ts.map +1 -1
- package/dist/asnavbar/mobile/styles.d.ts +4 -4
- package/dist/asnavbar/mobile/styles.d.ts.map +1 -1
- package/dist/asnavbar/navbararrowbuttons/styles.d.ts +29 -5
- package/dist/asnavbar/navbararrowbuttons/styles.d.ts.map +1 -1
- package/dist/asnavbar/navbaritem/styles.d.ts +4 -2
- package/dist/asnavbar/navbaritem/styles.d.ts.map +1 -1
- package/dist/asnavbar/navbarpickpanel/styles.d.ts +1 -1
- package/dist/asnavbar/navbarpickpanel/styles.d.ts.map +1 -1
- package/dist/asnavbar/navbarpickpanelitem/styles.d.ts +4 -2
- package/dist/asnavbar/navbarpickpanelitem/styles.d.ts.map +1 -1
- package/dist/asnavbar/styles.d.ts +2 -2
- package/dist/asnavbar/styles.d.ts.map +1 -1
- package/dist/astappable/ASTappable.d.ts.map +1 -1
- package/dist/astappable/ASTappable.js +1 -1
- package/dist/astextfield/ASTextField.d.ts.map +1 -1
- package/dist/astextfield/ASTextField.js +34 -61
- package/dist/astextfield/ASTextField.types.d.ts +2 -1
- package/dist/astextfield/ASTextField.types.d.ts.map +1 -1
- package/dist/astextfield/styles.d.ts +24 -12
- package/dist/astextfield/styles.d.ts.map +1 -1
- package/dist/astextfield/styles.js +1 -1
- package/dist/astheme/ASThemeDefault.d.ts.map +1 -1
- package/dist/astheme/ASThemeDefault.js +1 -0
- package/dist/icons/styles.d.ts +7 -5
- package/dist/icons/styles.d.ts.map +1 -1
- package/docs/commit-syntax.md +143 -0
- package/docs/theme-update-strategy.md +101 -0
- package/package.json +16 -16
package/dist/asmodal/styles.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ASModalBackdropStyledProps, ASModalStyledProps } from './ASModal.types';
|
|
2
|
-
export declare const ASModalBackdropStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
2
|
+
export declare const ASModalBackdropStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../astappable").ASTappableProps & {
|
|
3
3
|
children?: import("react").ReactNode | undefined;
|
|
4
|
-
} & import("react").RefAttributes<HTMLDivElement>, ASModalBackdropStyledProps
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>, keyof ASModalBackdropStyledProps> & ASModalBackdropStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("../astappable").ASTappableProps & {
|
|
5
|
+
children?: import("react").ReactNode | undefined;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>, keyof ASModalBackdropStyledProps> & ASModalBackdropStyledProps, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable").ASTappableProps & {
|
|
5
7
|
children?: import("react").ReactNode | undefined;
|
|
6
8
|
} & 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
|
|
9
|
+
export declare const ASModalChildrenWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASModalStyledProps> & ASModalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASModalStyledProps> & ASModalStyledProps, never>>> & string;
|
|
8
10
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,igBAmClC,CAAC"}
|
|
@@ -9,14 +9,14 @@ interface ASNavBarStyledProps {
|
|
|
9
9
|
$padding?: string;
|
|
10
10
|
$hideNavArrowButtonsInDW?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const ASNavBarDWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
12
|
+
export declare const ASNavBarDWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never>>> & string;
|
|
13
13
|
interface ASNavBarSelectedBoxStyledProps {
|
|
14
14
|
theme: ASTheme;
|
|
15
15
|
$mobileMode?: boolean;
|
|
16
16
|
$height?: number;
|
|
17
17
|
$borderRadius?: number;
|
|
18
18
|
}
|
|
19
|
-
export declare const ASSelectedBoxStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
19
|
+
export declare const ASSelectedBoxStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof ASNavBarSelectedBoxStyledProps> & ASNavBarSelectedBoxStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof ASNavBarSelectedBoxStyledProps> & ASNavBarSelectedBoxStyledProps, never>>> & string;
|
|
20
20
|
interface ASNavBarItemStyledProps {
|
|
21
21
|
theme: ASTheme;
|
|
22
22
|
$mobileMode?: boolean;
|
|
@@ -24,9 +24,9 @@ interface ASNavBarItemStyledProps {
|
|
|
24
24
|
$margin?: string;
|
|
25
25
|
$padding?: string;
|
|
26
26
|
}
|
|
27
|
-
export declare const ASNavBarItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
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
|
|
29
|
-
export declare const ASNavBarScrollableItems: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
30
|
-
export declare const ASScrollContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
27
|
+
export declare const ASNavBarItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarItemStyledProps> & ASNavBarItemStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarItemStyledProps> & ASNavBarItemStyledProps, never>>> & string;
|
|
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> & Partial<Pick<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").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never>>> & string;
|
|
30
|
+
export declare const ASScrollContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never>>> & string;
|
|
31
31
|
export {};
|
|
32
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;AAIpD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAsBD,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/desktop/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIpD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAsBD,eAAO,MAAM,gBAAgB,qgBAqB5B,CAAC;AAEF,UAAU,8BAA8B;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,qjBAc/B,CAAC;AAEF,UAAU,uBAAuB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,kBAAkB,qhBAwC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,uVAInC,CAAC;AAEF,eAAO,MAAM,uBAAuB,qgBAYnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,qgBAiBnC,CAAC"}
|
|
@@ -8,7 +8,7 @@ interface ASNavBarSelectedBoxStyledProps {
|
|
|
8
8
|
$widthUnit?: string;
|
|
9
9
|
$borderRadius?: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const ASSelectedBoxMWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
11
|
+
export declare const ASSelectedBoxMWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof ASNavBarSelectedBoxStyledProps> & ASNavBarSelectedBoxStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof ASNavBarSelectedBoxStyledProps> & ASNavBarSelectedBoxStyledProps, never>>> & string;
|
|
12
12
|
interface ASNavBarStyledProps extends ASNavBarStyleOptions {
|
|
13
13
|
theme: ASTheme;
|
|
14
14
|
$mobileMode?: boolean;
|
|
@@ -24,8 +24,8 @@ interface ASNavBarItemStyledProps {
|
|
|
24
24
|
$margin?: string;
|
|
25
25
|
$padding?: string;
|
|
26
26
|
}
|
|
27
|
-
export declare const ASNavBarItemMWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
28
|
-
export declare const ScrollableNavBarItems: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
29
|
-
export declare const ASNavBarMWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
27
|
+
export declare const ASNavBarItemMWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../ASNavBar.types").ASNavBarItemProps, keyof ASNavBarItemStyledProps> & ASNavBarItemStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("../ASNavBar.types").ASNavBarItemProps, keyof ASNavBarItemStyledProps> & ASNavBarItemStyledProps, never>>> & string & Omit<import("react").FC<import("../ASNavBar.types").ASNavBarItemProps>, keyof import("react").Component<any, {}, any>>;
|
|
28
|
+
export declare const ScrollableNavBarItems: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
29
|
+
export declare const ASNavBarMWStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never>>> & string;
|
|
30
30
|
export {};
|
|
31
31
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/mobile/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAwB1E,UAAU,8BAA8B;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/mobile/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAwB1E,UAAU,8BAA8B;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,eAAO,MAAM,qBAAqB,qjBAgBjC,CAAC;AAEF,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;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,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,oBAAoB,siBAwDhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,uVA0BjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,qgBAkB5B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ASComponentSize, ASTheme } from '../../apptypes';
|
|
2
2
|
import { ASNavBarArrowButtonsStyledProps } from './ASNavBarArrowButtons.types';
|
|
3
|
-
export declare const ASNavBarArrowButtonsStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
3
|
+
export declare const ASNavBarArrowButtonsStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarArrowButtonsStyledProps> & ASNavBarArrowButtonsStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarArrowButtonsStyledProps> & ASNavBarArrowButtonsStyledProps, never>>> & string;
|
|
4
4
|
interface ASNavBarIconButtonStyledProps {
|
|
5
5
|
theme: ASTheme;
|
|
6
6
|
$mobileMode?: boolean;
|
|
@@ -10,7 +10,7 @@ interface ASNavBarIconButtonStyledProps {
|
|
|
10
10
|
$padding?: string;
|
|
11
11
|
$size?: ASComponentSize;
|
|
12
12
|
}
|
|
13
|
-
export declare const ASIconButtonRightStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
13
|
+
export declare const ASIconButtonRightStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<{
|
|
14
14
|
className?: string;
|
|
15
15
|
selected?: boolean;
|
|
16
16
|
toggle?: boolean;
|
|
@@ -22,8 +22,7 @@ export declare const ASIconButtonRightStyled: import("styled-components/dist/typ
|
|
|
22
22
|
onIconButtonTap?: (e: import("react").PointerEvent) => void;
|
|
23
23
|
} & import("../..").IconProps & Omit<import("react").HTMLProps<HTMLDivElement>, "text" | "size"> & {
|
|
24
24
|
children?: import("react").ReactNode | undefined;
|
|
25
|
-
}, ASNavBarIconButtonStyledProps
|
|
26
|
-
export declare const ASIconButtonLeftStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
|
|
25
|
+
}, keyof ASNavBarIconButtonStyledProps> & ASNavBarIconButtonStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<{
|
|
27
26
|
className?: string;
|
|
28
27
|
selected?: boolean;
|
|
29
28
|
toggle?: boolean;
|
|
@@ -35,6 +34,31 @@ export declare const ASIconButtonLeftStyled: import("styled-components/dist/type
|
|
|
35
34
|
onIconButtonTap?: (e: import("react").PointerEvent) => void;
|
|
36
35
|
} & import("../..").IconProps & Omit<import("react").HTMLProps<HTMLDivElement>, "text" | "size"> & {
|
|
37
36
|
children?: import("react").ReactNode | undefined;
|
|
38
|
-
}, ASNavBarIconButtonStyledProps
|
|
37
|
+
}, keyof ASNavBarIconButtonStyledProps> & ASNavBarIconButtonStyledProps, never>>> & string & Omit<import("react").FC<import("../../asiconbutton").ASIconButtonProps>, keyof import("react").Component<any, {}, any>>;
|
|
38
|
+
export declare const ASIconButtonLeftStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<{
|
|
39
|
+
className?: string;
|
|
40
|
+
selected?: boolean;
|
|
41
|
+
toggle?: boolean;
|
|
42
|
+
size?: ASComponentSize;
|
|
43
|
+
iconSize?: number;
|
|
44
|
+
theme?: ASTheme;
|
|
45
|
+
isLoading?: boolean;
|
|
46
|
+
icon: import("react").FC<import("react").PropsWithChildren<import("../..").IconProps>>;
|
|
47
|
+
onIconButtonTap?: (e: import("react").PointerEvent) => void;
|
|
48
|
+
} & import("../..").IconProps & Omit<import("react").HTMLProps<HTMLDivElement>, "text" | "size"> & {
|
|
49
|
+
children?: import("react").ReactNode | undefined;
|
|
50
|
+
}, keyof ASNavBarIconButtonStyledProps> & ASNavBarIconButtonStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<{
|
|
51
|
+
className?: string;
|
|
52
|
+
selected?: boolean;
|
|
53
|
+
toggle?: boolean;
|
|
54
|
+
size?: ASComponentSize;
|
|
55
|
+
iconSize?: number;
|
|
56
|
+
theme?: ASTheme;
|
|
57
|
+
isLoading?: boolean;
|
|
58
|
+
icon: import("react").FC<import("react").PropsWithChildren<import("../..").IconProps>>;
|
|
59
|
+
onIconButtonTap?: (e: import("react").PointerEvent) => void;
|
|
60
|
+
} & import("../..").IconProps & Omit<import("react").HTMLProps<HTMLDivElement>, "text" | "size"> & {
|
|
61
|
+
children?: import("react").ReactNode | undefined;
|
|
62
|
+
}, keyof ASNavBarIconButtonStyledProps> & ASNavBarIconButtonStyledProps, never>>> & string & Omit<import("react").FC<import("../../asiconbutton").ASIconButtonProps>, keyof import("react").Component<any, {}, any>>;
|
|
39
63
|
export {};
|
|
40
64
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbararrowbuttons/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,gBAAgB,CAAC;AAGzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAwC/E,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbararrowbuttons/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,gBAAgB,CAAC;AAGzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAwC/E,eAAO,MAAM,0BAA0B,qjBA+BtC,CAAC;AAEF,UAAU,6BAA6B;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;oNAKnC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;oNAKlC,CAAC"}
|
|
@@ -6,9 +6,11 @@ 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
|
|
9
|
+
export declare const ASNavBarItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../../astappable").ASTappableProps & {
|
|
10
10
|
children?: import("react").ReactNode | undefined;
|
|
11
|
-
} & import("react").RefAttributes<HTMLDivElement>, ASNavBarItemStyledProps
|
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, keyof ASNavBarItemStyledProps> & ASNavBarItemStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("../../astappable").ASTappableProps & {
|
|
12
|
+
children?: import("react").ReactNode | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>, keyof ASNavBarItemStyledProps> & ASNavBarItemStyledProps, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../astappable").ASTappableProps & {
|
|
12
14
|
children?: import("react").ReactNode | undefined;
|
|
13
15
|
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
14
16
|
export {};
|
|
@@ -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;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
|
|
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"}
|
|
@@ -6,6 +6,6 @@ interface ASNavBarPickPanelStyledProps {
|
|
|
6
6
|
$padding?: string;
|
|
7
7
|
$gap?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const ASNavBarPickPanelStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
9
|
+
export declare const ASNavBarPickPanelStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarPickPanelStyledProps> & ASNavBarPickPanelStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarPickPanelStyledProps> & ASNavBarPickPanelStyledProps, never>>> & string;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbarpickpanel/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AA6BpD,UAAU,4BAA4B;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/asnavbar/navbarpickpanel/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AA6BpD,UAAU,4BAA4B;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,uBAAuB,yiBA4BnC,CAAC"}
|
|
@@ -6,9 +6,11 @@ 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
|
|
9
|
+
export declare const ASNavBarPickPanelItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../../astappable").ASTappableProps & {
|
|
10
10
|
children?: import("react").ReactNode | undefined;
|
|
11
|
-
} & import("react").RefAttributes<HTMLDivElement>, ASNavBarPickPanelItemStyledProps
|
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, keyof ASNavBarPickPanelItemStyledProps> & ASNavBarPickPanelItemStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("../../astappable").ASTappableProps & {
|
|
12
|
+
children?: import("react").ReactNode | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>, keyof ASNavBarPickPanelItemStyledProps> & ASNavBarPickPanelItemStyledProps, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../astappable").ASTappableProps & {
|
|
12
14
|
children?: import("react").ReactNode | undefined;
|
|
13
15
|
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
14
16
|
export {};
|
|
@@ -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;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
|
|
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"}
|
|
@@ -5,11 +5,11 @@ interface ASNavBarStyledProps extends ASNavBarStyleOptions {
|
|
|
5
5
|
$gap?: number;
|
|
6
6
|
$maxWidth?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const ASNavBarStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
8
|
+
export declare const ASNavBarStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarStyledProps> & ASNavBarStyledProps, never>>> & string;
|
|
9
9
|
interface ASNavBarItemPaddingProps {
|
|
10
10
|
theme: ASTheme;
|
|
11
11
|
$selected?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const ASNavBarLeadingIconPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
13
|
+
export declare const ASNavBarLeadingIconPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarItemPaddingProps> & ASNavBarItemPaddingProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ASNavBarItemPaddingProps> & ASNavBarItemPaddingProps, never>>> & string;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -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;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,
|
|
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,qgBAiC1B,CAAC;AAEF,UAAU,wBAAwB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B,yhBAetC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASTappable.d.ts","sourceRoot":"","sources":["../../src/astappable/ASTappable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ASTappable.d.ts","sourceRoot":"","sources":["../../src/astappable/ASTappable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA+BrD,QAAA,MAAM,UAAU;;wCAmEd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -30,6 +30,6 @@ const ASTappable = react_1.default.forwardRef(({ onTapped, children, ...rest },
|
|
|
30
30
|
clearTimeout(timeoutRef.current);
|
|
31
31
|
};
|
|
32
32
|
}, []);
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)("div", { ...rest, ref: ref, onPointerDown: handlePointerDown, onPointerUp: handlePointerUp, children: children }));
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)("div", { role: "button", "aria-pressed": "false", ...rest, ref: ref, onPointerDown: handlePointerDown, onPointerUp: handlePointerUp, children: children }));
|
|
34
34
|
});
|
|
35
35
|
exports.default = ASTappable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASTextField.d.ts","sourceRoot":"","sources":["../../src/astextfield/ASTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ASTextField.d.ts","sourceRoot":"","sources":["../../src/astextfield/ASTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAUvD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2H3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -7,80 +7,53 @@ const ASUI_types_1 = require("../apptypes/ASUI.types");
|
|
|
7
7
|
const astheme_1 = tslib_1.__importDefault(require("../astheme"));
|
|
8
8
|
const icons_1 = require("../icons");
|
|
9
9
|
const styles_1 = require("./styles");
|
|
10
|
-
const ASTextField = ({ className = '', theme = astheme_1.default, value = '', onChange, onEnter, size = ASUI_types_1.ComponentSize.Medium, type = 'text', showClearButton = false, showSearchIcon = false, disableAutofill = false, ...props }) => {
|
|
11
|
-
const passwordTypeRef = (0, react_1.useRef)(false);
|
|
10
|
+
const ASTextField = ({ className = '', theme = astheme_1.default, value, defaultValue = '', onChange, onEnter, size = ASUI_types_1.ComponentSize.Medium, type = 'text', showClearButton = false, showSearchIcon = false, disableAutofill = false, id, style, autoFocus = false, autoComplete, autoCorrect, autoCapitalize, spellCheck, onFocus, onKeyDown, ...props }) => {
|
|
12
11
|
const genericId = (0, react_1.useId)();
|
|
13
|
-
const textFieldId =
|
|
14
|
-
const
|
|
15
|
-
const [
|
|
16
|
-
const [
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let searchIcon = showSearchIcon;
|
|
30
|
-
let clearIcon = showClearButton;
|
|
31
|
-
if (passwordTypeRef.current && type !== 'text' && type !== 'password') {
|
|
32
|
-
passwordTypeRef.current = false;
|
|
33
|
-
setPasswordIconVisible(false);
|
|
34
|
-
}
|
|
35
|
-
if (type === 'search') {
|
|
36
|
-
searchIcon = true;
|
|
37
|
-
clearIcon = true;
|
|
38
|
-
}
|
|
39
|
-
if (type === 'email') {
|
|
40
|
-
clearIcon = true;
|
|
41
|
-
}
|
|
42
|
-
if (type === 'password') {
|
|
43
|
-
passwordTypeRef.current = true;
|
|
44
|
-
setPasswordIconVisible(true);
|
|
45
|
-
}
|
|
46
|
-
setSearchIconVisible(searchIcon);
|
|
47
|
-
setClearIconVisible(clearIcon);
|
|
48
|
-
}, [showClearButton, showSearchIcon, type]);
|
|
49
|
-
(0, react_1.useEffect)(() => {
|
|
50
|
-
setRightIconCls(clearIconVisible ? 'RightIconOn' : 'RightIconOff');
|
|
51
|
-
}, [clearIconVisible]);
|
|
52
|
-
(0, react_1.useEffect)(() => {
|
|
53
|
-
setLeftIconCls(searchIconVisible ? 'LeftIconOn' : 'LeftIconOff');
|
|
54
|
-
if (searchIconVisible)
|
|
55
|
-
setRightIconCls('RightIconOn');
|
|
56
|
-
}, [searchIconVisible]);
|
|
57
|
-
(0, react_1.useEffect)(() => {
|
|
58
|
-
setPasswordCls(passwordIconVisible ? 'PasswordOn' : '');
|
|
59
|
-
}, [passwordIconVisible]);
|
|
12
|
+
const textFieldId = id || genericId;
|
|
13
|
+
const isControlled = value !== undefined;
|
|
14
|
+
const [internalValue, setInternalValue] = (0, react_1.useState)(defaultValue);
|
|
15
|
+
const [passwordVisible, setPasswordVisible] = (0, react_1.useState)(false);
|
|
16
|
+
const inputValue = isControlled ? value : internalValue;
|
|
17
|
+
const searchIconVisible = showSearchIcon || type === 'search';
|
|
18
|
+
const clearIconVisible = showClearButton || type === 'search' || type === 'email';
|
|
19
|
+
const passwordIconVisible = type === 'password';
|
|
20
|
+
const showType = passwordIconVisible && passwordVisible ? 'text' : type;
|
|
21
|
+
const rightIconCls = clearIconVisible || passwordIconVisible ? 'RightIconOn' : 'RightIconOff';
|
|
22
|
+
const leftIconCls = searchIconVisible ? 'LeftIconOn' : 'LeftIconOff';
|
|
23
|
+
const passwordCls = passwordIconVisible ? 'PasswordOn' : '';
|
|
24
|
+
const computedAutoComplete = autoComplete ?? (passwordIconVisible ? 'new-password' : disableAutofill ? 'off' : 'on');
|
|
25
|
+
const computedAutoCorrect = autoCorrect ?? (passwordIconVisible ? 'off' : 'on');
|
|
26
|
+
const computedAutoCapitalize = autoCapitalize ?? 'none';
|
|
27
|
+
const computedSpellCheck = spellCheck ?? !passwordIconVisible;
|
|
60
28
|
const onValueChange = (e) => {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
29
|
+
const nextValue = e.currentTarget.value;
|
|
30
|
+
if (!isControlled) {
|
|
31
|
+
setInternalValue(nextValue);
|
|
32
|
+
}
|
|
33
|
+
onChange?.(nextValue);
|
|
64
34
|
};
|
|
65
35
|
const clearValue = () => {
|
|
66
|
-
|
|
36
|
+
if (!isControlled) {
|
|
37
|
+
setInternalValue('');
|
|
38
|
+
}
|
|
67
39
|
onChange?.('');
|
|
68
40
|
};
|
|
69
41
|
const onInputFieldFocus = (e) => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return e;
|
|
42
|
+
e.currentTarget.select();
|
|
43
|
+
onFocus?.(e);
|
|
73
44
|
};
|
|
74
45
|
const handleKeyDown = (e) => {
|
|
75
46
|
if (e.key === 'Enter' && onEnter) {
|
|
76
|
-
onEnter(
|
|
47
|
+
onEnter(e.currentTarget.value);
|
|
77
48
|
}
|
|
78
|
-
|
|
49
|
+
onKeyDown?.(e);
|
|
79
50
|
};
|
|
80
51
|
const onPasswordShowHide = () => {
|
|
81
|
-
|
|
52
|
+
setPasswordVisible((currentPasswordVisible) => !currentPasswordVisible);
|
|
82
53
|
};
|
|
83
|
-
const baseCls =
|
|
84
|
-
|
|
54
|
+
const baseCls = ['ASTextFieldInputContainer', size, leftIconCls, rightIconCls, passwordCls, className]
|
|
55
|
+
.filter(Boolean)
|
|
56
|
+
.join(' ');
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.ASTextFieldInputContainer, { theme: theme, className: baseCls, style: 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, { ...props, theme: theme, autoComplete: computedAutoComplete, "aria-autocomplete": passwordIconVisible ? 'none' : 'list', autoCorrect: computedAutoCorrect, autoCapitalize: computedAutoCapitalize, spellCheck: computedSpellCheck, autoFocus: autoFocus, id: textFieldId, className: "ASTextFieldInput", type: showType, value: inputValue, onChange: onValueChange, onFocus: onInputFieldFocus, onKeyDown: handleKeyDown }), 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 })] }))] }));
|
|
85
58
|
};
|
|
86
59
|
exports.default = ASTextField;
|
|
@@ -4,11 +4,12 @@ export type ASTextFieldProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
theme?: typeof ASThemeDefault;
|
|
6
6
|
value?: string;
|
|
7
|
+
defaultValue?: string;
|
|
7
8
|
onChange?: (value: string) => void;
|
|
8
9
|
size?: ASComponentSize;
|
|
9
10
|
showClearButton?: boolean;
|
|
10
11
|
disableAutofill?: boolean;
|
|
11
12
|
showSearchIcon?: boolean;
|
|
12
13
|
onEnter?: (value: string) => void;
|
|
13
|
-
} & Omit<React.
|
|
14
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'onChange'>;
|
|
14
15
|
//# sourceMappingURL=ASTextField.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASTextField.types.d.ts","sourceRoot":"","sources":["../../src/astextfield/ASTextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,cAAc,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAK7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,KAAK,CAAC,EAAE,OAAO,cAAc,CAAC;IAM9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IASnC,IAAI,CAAC,EAAE,eAAe,CAAC;IAOvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAO1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAQ1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAMzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,GAAG,IAAI,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ASTextField.types.d.ts","sourceRoot":"","sources":["../../src/astextfield/ASTextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,cAAc,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAK7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,KAAK,CAAC,EAAE,OAAO,cAAc,CAAC;IAM9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,YAAY,CAAC,EAAE,MAAM,CAAC;IAMtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IASnC,IAAI,CAAC,EAAE,eAAe,CAAC;IAOvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAO1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAQ1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAMzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { ASTheme } from '../apptypes/ASUI.types';
|
|
2
|
-
export declare const ASTextFieldInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
2
|
+
export declare const ASTextFieldInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
3
3
|
theme: ASTheme;
|
|
4
|
-
}
|
|
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>, {
|
|
4
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
6
5
|
theme: ASTheme;
|
|
7
|
-
}
|
|
8
|
-
export declare const
|
|
6
|
+
}, never>>> & string;
|
|
7
|
+
export declare const ASTextFieldInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "theme"> & {
|
|
8
|
+
theme: ASTheme;
|
|
9
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "theme"> & {
|
|
10
|
+
theme: ASTheme;
|
|
11
|
+
}, never>>> & string;
|
|
12
|
+
export declare const ASTextFieldClickIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../astappable").ASTappableProps & {
|
|
13
|
+
children?: import("react").ReactNode | undefined;
|
|
14
|
+
} & import("react").RefAttributes<HTMLDivElement>, "theme"> & {
|
|
15
|
+
theme: ASTheme;
|
|
16
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("../astappable").ASTappableProps & {
|
|
9
17
|
children?: import("react").ReactNode | undefined;
|
|
10
|
-
} & import("react").RefAttributes<HTMLDivElement>, {
|
|
18
|
+
} & import("react").RefAttributes<HTMLDivElement>, "theme"> & {
|
|
11
19
|
theme: ASTheme;
|
|
12
|
-
}
|
|
20
|
+
}, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable").ASTappableProps & {
|
|
13
21
|
children?: import("react").ReactNode | undefined;
|
|
14
22
|
} & 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
|
|
23
|
+
export declare const ASTextFieldSearchIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../astappable").ASTappableProps & {
|
|
24
|
+
children?: import("react").ReactNode | undefined;
|
|
25
|
+
} & import("react").RefAttributes<HTMLDivElement>, "theme"> & {
|
|
26
|
+
theme: ASTheme;
|
|
27
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("../astappable").ASTappableProps & {
|
|
16
28
|
children?: import("react").ReactNode | undefined;
|
|
17
|
-
} & import("react").RefAttributes<HTMLDivElement>, {
|
|
29
|
+
} & import("react").RefAttributes<HTMLDivElement>, "theme"> & {
|
|
18
30
|
theme: ASTheme;
|
|
19
|
-
}
|
|
31
|
+
}, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../astappable").ASTappableProps & {
|
|
20
32
|
children?: import("react").ReactNode | undefined;
|
|
21
33
|
} & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
22
|
-
export declare const ScaledSlashedEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../icons").IconProps, never
|
|
23
|
-
export declare const ScaledEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../icons").IconProps, never
|
|
34
|
+
export declare const ScaledSlashedEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../icons").IconProps, never> & Partial<Pick<import("../icons").IconProps, never>>> & string & Omit<import("react").FC<import("../icons").IconProps>, keyof import("react").Component<any, {}, any>>;
|
|
35
|
+
export declare const ScaledEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../icons").IconProps, never> & Partial<Pick<import("../icons").IconProps, never>>> & string & Omit<import("react").FC<import("../icons").IconProps>, keyof import("react").Component<any, {}, any>>;
|
|
24
36
|
//# 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;AAIjD,eAAO,MAAM,yBAAyB;WAAuB,OAAO;
|
|
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;;WAAP,OAAO;oBAmHnE,CAAC;AAEF,eAAO,MAAM,gBAAgB;WAAyB,OAAO;;WAAP,OAAO;oBAkD5D,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;WAA+B,OAAO;;;;WAAP,OAAO;;;kGAStE,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;WAA+B,OAAO;;;;WAAP,OAAO;;;kGAGvE,CAAC;AAkBF,eAAO,MAAM,oBAAoB,qTAEhC,CAAC;AACF,eAAO,MAAM,aAAa,qTAEzB,CAAC"}
|
|
@@ -19,7 +19,7 @@ exports.ASTextFieldInputContainer = styled_components_1.default.div `
|
|
|
19
19
|
);
|
|
20
20
|
color: ${(props) => props.theme.textfield.color};
|
|
21
21
|
outline: 1px solid ${(props) => props.theme.textfield.borderColor};
|
|
22
|
-
border-radius:
|
|
22
|
+
border-radius: ${(props) => props.theme.textfield.borderRadius};
|
|
23
23
|
-webkit-tap-highlight-color: transparent;
|
|
24
24
|
padding: 0 12px;
|
|
25
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,MAAM,wBAAwB,CAAC;AA8EhE,QAAA,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,MAAM,wBAAwB,CAAC;AA8EhE,QAAA,MAAM,cAAc,EAAE,OA+JrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/icons/styles.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export declare const IconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
2
|
-
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
3
|
-
export declare const IconCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never
|
|
4
|
-
export declare const TopIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
1
|
+
export declare const IconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
2
|
+
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
3
|
+
export declare const IconCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never> & Partial<Pick<import("react").SVGProps<SVGSVGElement>, never>>> & string;
|
|
4
|
+
export declare const TopIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, "$withCircle"> & {
|
|
5
5
|
$withCircle: boolean;
|
|
6
|
-
}
|
|
6
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, "$withCircle"> & {
|
|
7
|
+
$withCircle: boolean;
|
|
8
|
+
}, never>>> & string;
|
|
7
9
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/icons/styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/icons/styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,uVAOzB,CAAC;AAEF,eAAO,MAAM,WAAW,uVAKvB,CAAC;AAEF,eAAO,MAAM,UAAU,mOAItB,CAAC;AAEF,eAAO,MAAM,OAAO;iBAA6B,OAAO;;iBAAP,OAAO;oBAKvD,CAAC"}
|