fluent-styles 1.62.13 → 1.62.15
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/lib/commonjs/button/index.js +12 -4
- package/lib/commonjs/button/index.js.map +1 -1
- package/lib/commonjs/datePicker/index.js +7 -2
- package/lib/commonjs/datePicker/index.js.map +1 -1
- package/lib/commonjs/dropdown/index.js +49 -16
- package/lib/commonjs/dropdown/index.js.map +1 -1
- package/lib/commonjs/input/index.js +87 -44
- package/lib/commonjs/input/index.js.map +1 -1
- package/lib/commonjs/page/index.js +24 -3
- package/lib/commonjs/page/index.js.map +1 -1
- package/lib/commonjs/pressable/index.js +6 -0
- package/lib/commonjs/pressable/index.js.map +1 -1
- package/lib/commonjs/safeAreaView/index.js +10 -0
- package/lib/commonjs/safeAreaView/index.js.map +1 -1
- package/lib/commonjs/utiles/styled.js +12 -2
- package/lib/commonjs/utiles/styled.js.map +1 -1
- package/lib/module/button/index.js +12 -4
- package/lib/module/button/index.js.map +1 -1
- package/lib/module/datePicker/index.js +7 -2
- package/lib/module/datePicker/index.js.map +1 -1
- package/lib/module/dropdown/index.js +49 -16
- package/lib/module/dropdown/index.js.map +1 -1
- package/lib/module/input/index.js +87 -44
- package/lib/module/input/index.js.map +1 -1
- package/lib/module/page/index.js +25 -4
- package/lib/module/page/index.js.map +1 -1
- package/lib/module/pressable/index.js +7 -1
- package/lib/module/pressable/index.js.map +1 -1
- package/lib/module/safeAreaView/index.js +11 -1
- package/lib/module/safeAreaView/index.js.map +1 -1
- package/lib/module/utiles/styled.js +12 -2
- package/lib/module/utiles/styled.js.map +1 -1
- package/lib/typescript/badge/index.d.ts +1 -6
- package/lib/typescript/badge/index.d.ts.map +1 -1
- package/lib/typescript/button/index.d.ts +3 -8
- package/lib/typescript/button/index.d.ts.map +1 -1
- package/lib/typescript/card/index.d.ts +1 -6
- package/lib/typescript/card/index.d.ts.map +1 -1
- package/lib/typescript/checkBox/index.d.ts +1 -6
- package/lib/typescript/checkBox/index.d.ts.map +1 -1
- package/lib/typescript/datePicker/index.d.ts.map +1 -1
- package/lib/typescript/dialog/index.d.ts +1 -6
- package/lib/typescript/dialog/index.d.ts.map +1 -1
- package/lib/typescript/divider/index.d.ts +1 -6
- package/lib/typescript/divider/index.d.ts.map +1 -1
- package/lib/typescript/dropdown/index.d.ts +27 -2
- package/lib/typescript/dropdown/index.d.ts.map +1 -1
- package/lib/typescript/image/index.d.ts +1 -6
- package/lib/typescript/image/index.d.ts.map +1 -1
- package/lib/typescript/input/index.d.ts +21 -8
- package/lib/typescript/input/index.d.ts.map +1 -1
- package/lib/typescript/page/index.d.ts.map +1 -1
- package/lib/typescript/pressable/index.d.ts +1 -6
- package/lib/typescript/pressable/index.d.ts.map +1 -1
- package/lib/typescript/safeAreaProvider/index.d.ts +1 -6
- package/lib/typescript/safeAreaProvider/index.d.ts.map +1 -1
- package/lib/typescript/safeAreaView/index.d.ts +1 -6
- package/lib/typescript/safeAreaView/index.d.ts.map +1 -1
- package/lib/typescript/scrollView/index.d.ts +1 -6
- package/lib/typescript/scrollView/index.d.ts.map +1 -1
- package/lib/typescript/shape/cycle.d.ts +1 -6
- package/lib/typescript/shape/cycle.d.ts.map +1 -1
- package/lib/typescript/shape/index.d.ts +1 -6
- package/lib/typescript/shape/index.d.ts.map +1 -1
- package/lib/typescript/spacer/index.d.ts +1 -6
- package/lib/typescript/spacer/index.d.ts.map +1 -1
- package/lib/typescript/stack/index.d.ts +3 -18
- package/lib/typescript/stack/index.d.ts.map +1 -1
- package/lib/typescript/text/index.d.ts +1 -6
- package/lib/typescript/text/index.d.ts.map +1 -1
- package/lib/typescript/utiles/styled.d.ts +1 -6
- package/lib/typescript/utiles/styled.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/button/index.tsx +14 -2
- package/src/datePicker/index.tsx +5 -1
- package/src/dropdown/index.tsx +72 -11
- package/src/input/index.tsx +111 -48
- package/src/page/index.tsx +36 -3
- package/src/pressable/index.tsx +8 -2
- package/src/safeAreaView/index.tsx +11 -1
- package/src/utiles/styled.tsx +12 -3
- package/lib/commonjs/portal/portal.test.js +0 -154
- package/lib/commonjs/portal/portal.test.js.map +0 -1
- package/lib/module/portal/portal.test.js +0 -155
- package/lib/module/portal/portal.test.js.map +0 -1
- package/lib/typescript/portal/portal.test.d.ts +0 -11
- package/lib/typescript/portal/portal.test.d.ts.map +0 -1
- package/src/portal/portal.test.ts +0 -157
|
@@ -5,12 +5,7 @@ type DividerVariants = {
|
|
|
5
5
|
horizontal?: boolean | [boolean, ViewStyle];
|
|
6
6
|
};
|
|
7
7
|
type DividerProps = ViewProps & DividerVariants & ViewStyle;
|
|
8
|
-
declare const StyledDivider:
|
|
9
|
-
(props: ViewProps & DividerVariants & ViewStyle & {
|
|
10
|
-
ref?: import("react").Ref<any> | undefined;
|
|
11
|
-
}): import("react").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
8
|
+
declare const StyledDivider: import("react").ForwardRefExoticComponent<ViewProps & DividerVariants & ViewStyle & import("react").RefAttributes<any>>;
|
|
14
9
|
export { StyledDivider };
|
|
15
10
|
export type { DividerProps };
|
|
16
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/divider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAKrD,KAAK,eAAe,GAAG;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,YAAY,GAAG,SAAS,GAAI,eAAe,GAAG,SAAS,CAAC;AAE7D,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/divider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAKrD,KAAK,eAAe,GAAG;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,YAAY,GAAG,SAAS,GAAI,eAAe,GAAG,SAAS,CAAC;AAE7D,QAAA,MAAM,aAAa,yHA0BlB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -34,6 +34,31 @@ interface DropdownBaseProps<TItem extends DropdownOptionItem> extends ViewStyle
|
|
|
34
34
|
emptyText?: string;
|
|
35
35
|
focusColor?: string;
|
|
36
36
|
groupBy?: (item: TItem) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Resting-surface + option-panel colour overrides — lets a consumer theme
|
|
39
|
+
* the dropdown (e.g. for dark mode) without the trigger's own focus/error
|
|
40
|
+
* border logic needing to change. A nested `colors` object (rather than
|
|
41
|
+
* a flat `backgroundColor` prop) avoids colliding with the `ViewStyle`
|
|
42
|
+
* props this interface already extends, which style the outer wrapper,
|
|
43
|
+
* not the trigger box.
|
|
44
|
+
*/
|
|
45
|
+
colors?: StyledDropdownColors;
|
|
46
|
+
}
|
|
47
|
+
export interface StyledDropdownColors {
|
|
48
|
+
/** Trigger box resting background. @default '#fff' */
|
|
49
|
+
background?: string;
|
|
50
|
+
/** Trigger box resting border (overridden by focus/error). @default gray[200] */
|
|
51
|
+
border?: string;
|
|
52
|
+
/** Selected value text colour. @default gray[800] */
|
|
53
|
+
text?: string;
|
|
54
|
+
/** Open option-panel background. @default '#fff' */
|
|
55
|
+
panelBackground?: string;
|
|
56
|
+
/** Open option-panel border. @default gray[200] */
|
|
57
|
+
panelBorder?: string;
|
|
58
|
+
/** Option row label text colour. @default gray[800] */
|
|
59
|
+
panelText?: string;
|
|
60
|
+
/** Dividers / section-header strip background inside the panel. @default gray[100] */
|
|
61
|
+
panelDivider?: string;
|
|
37
62
|
}
|
|
38
63
|
export interface StyledDropdownProps<TItem extends DropdownOptionItem = DropdownOptionItem> extends DropdownBaseProps<TItem> {
|
|
39
64
|
value?: string;
|
|
@@ -49,13 +74,13 @@ export interface StyledMultiSelectDropdownProps<TItem extends DropdownOptionItem
|
|
|
49
74
|
selectAll?: boolean;
|
|
50
75
|
}
|
|
51
76
|
export declare const StyledDropdown: {
|
|
52
|
-
({ data, onChange, placeholder, placeholderTextColor, value, defaultValue, disabled, maxHeight, size, variant, leftIcon, label, helperText, errorMessage, error, searchable, searchPlaceholder, clearable, loading, emptyText, focusColor, groupBy, ref, ...rest }: StyledDropdownProps<DropdownOptionItem<unknown>> & {
|
|
77
|
+
({ data, onChange, placeholder, placeholderTextColor, value, defaultValue, disabled, maxHeight, size, variant, leftIcon, label, helperText, errorMessage, error, searchable, searchPlaceholder, clearable, loading, emptyText, focusColor, groupBy, colors: colorsProp, ref, ...rest }: StyledDropdownProps<DropdownOptionItem<unknown>> & {
|
|
53
78
|
ref?: React.Ref<any> | undefined;
|
|
54
79
|
}): React.JSX.Element;
|
|
55
80
|
displayName: string;
|
|
56
81
|
};
|
|
57
82
|
export declare const StyledMultiSelectDropdown: {
|
|
58
|
-
({ data, onChange, placeholder, placeholderTextColor, value, defaultValue, disabled, maxHeight, size, variant, leftIcon, label, helperText, errorMessage, error, searchable, searchPlaceholder, clearable, loading, emptyText, focusColor, groupBy, separator, maxDisplay, selectAll, ref, ...rest }: StyledMultiSelectDropdownProps<DropdownOptionItem<unknown>> & {
|
|
83
|
+
({ data, onChange, placeholder, placeholderTextColor, value, defaultValue, disabled, maxHeight, size, variant, leftIcon, label, helperText, errorMessage, error, searchable, searchPlaceholder, clearable, loading, emptyText, focusColor, groupBy, separator, maxDisplay, selectAll, colors: colorsProp, ref, ...rest }: StyledMultiSelectDropdownProps<DropdownOptionItem<unknown>> & {
|
|
59
84
|
ref?: React.Ref<any> | undefined;
|
|
60
85
|
}): React.JSX.Element;
|
|
61
86
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAML,SAAS,EACV,MAAM,cAAc,CAAC;AAatB,MAAM,MAAM,kBAAkB,CAAC,KAAK,GAAG,OAAO,IAAI;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;AAqB3E,UAAU,iBAAiB,CAAC,KAAK,SAAS,kBAAkB,CAC1D,SAAQ,SAAS;IACjB,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,QAAQ,CAAC,E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K,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,8BAA8B,CAC7C,KAAK,SAAS,kBAAkB,GAAG,kBAAkB,CACrD,SAAQ,iBAAiB,CAAC,KAAK,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAorBD,eAAO,MAAM,cAAc;;;;;CAyI1B,CAAC;AAQF,eAAO,MAAM,yBAAyB;;;;;CAsKrC,CAAC"}
|
|
@@ -2,12 +2,7 @@ import { Image, ImageProps, ImageBackgroundProps, ImageStyle, DimensionValue } f
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type StyledImageProps = ImageProps & ImageStyle;
|
|
4
4
|
type StyledImageBackgroundProps = ImageBackgroundProps & ImageStyle;
|
|
5
|
-
declare const StyledImageBackground:
|
|
6
|
-
(props: ImageBackgroundProps & ImageStyle & {
|
|
7
|
-
ref?: React.Ref<any> | undefined;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
5
|
+
declare const StyledImageBackground: React.ForwardRefExoticComponent<ImageBackgroundProps & ImageStyle & React.RefAttributes<any>>;
|
|
11
6
|
interface _StyledImageProps extends Omit<StyledImageProps, 'height' | 'width'> {
|
|
12
7
|
cycle?: boolean;
|
|
13
8
|
size?: DimensionValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/image/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAEL,UAAU,EACV,oBAAoB,EACpB,UAAU,EACV,cAAc,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAA;AAE/C,KAAK,0BAA0B,GAAG,oBAAoB,GAAG,UAAU,CAAC;AACpE,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/image/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAEL,UAAU,EACV,oBAAoB,EACpB,UAAU,EACV,cAAc,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAA;AAE/C,KAAK,0BAA0B,GAAG,oBAAoB,GAAG,UAAU,CAAC;AACpE,QAAA,MAAM,qBAAqB,+FAUzB,CAAC;AAEH,UAAU,iBAAkB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,QAAA,MAAM,WAAW;;uBAMhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -77,13 +77,26 @@ export interface StyledTextInputProps extends CardComponentProps {
|
|
|
77
77
|
inputStyle?: TextStyle;
|
|
78
78
|
fontSize?: number;
|
|
79
79
|
fontWeight?: TextStyle['fontWeight'];
|
|
80
|
+
/**
|
|
81
|
+
* Resting-state surface colours. Lets a consumer theme this field (e.g.
|
|
82
|
+
* for dark mode) without fighting the focus/error border logic below —
|
|
83
|
+
* those stay computed internally and only fall back to `colors.border`
|
|
84
|
+
* when neither focused nor in an error state.
|
|
85
|
+
*/
|
|
86
|
+
colors?: StyledFieldColors;
|
|
87
|
+
}
|
|
88
|
+
export interface StyledFieldColors {
|
|
89
|
+
/** Resting background of the input box. @default '#fff' (outline/filled) */
|
|
90
|
+
background?: string;
|
|
91
|
+
/** Resting border colour (overridden by focus/error). @default gray[200] */
|
|
92
|
+
border?: string;
|
|
93
|
+
/** Typed text colour. @default gray[800] */
|
|
94
|
+
text?: string;
|
|
95
|
+
/** Placeholder text colour. @default gray[300] */
|
|
96
|
+
placeholder?: string;
|
|
97
|
+
/** Label text colour — `labelProps.color` still wins if also set. @default gray[700] */
|
|
98
|
+
label?: string;
|
|
80
99
|
}
|
|
81
|
-
declare const TextInputBase: {
|
|
82
|
-
(props: TextInputProps & TextStyle & {
|
|
83
|
-
ref?: React.Ref<any> | undefined;
|
|
84
|
-
}): React.JSX.Element;
|
|
85
|
-
displayName: string;
|
|
86
|
-
};
|
|
87
100
|
export interface StyledTextInputHandle extends StyledTextInputProps {
|
|
88
101
|
focus: () => void;
|
|
89
102
|
blur: () => void;
|
|
@@ -91,8 +104,8 @@ export interface StyledTextInputHandle extends StyledTextInputProps {
|
|
|
91
104
|
isFocused: () => boolean;
|
|
92
105
|
}
|
|
93
106
|
export declare const StyledTextInput: {
|
|
94
|
-
({ label, labelProps, required, helperText, helperProps, errorMessage, errorProps, error, showCounter, leftIcon, rightIcon, leftAddon, rightAddon, clearable, loading, variant, size, borderColor: borderColorProp, focusColor, floatLabel, containerStyle, inputWrapStyle, inputStyle, flex, fontSize: fontSizeProp, fontWeight: fontWeightProp, value, defaultValue, onChangeText, placeholder, editable, multiline, numberOfLines, maxLength, onFocus: onFocusProp, onBlur: onBlurProp, ref, ...rest }: StyledTextInputProps & {
|
|
95
|
-
ref?: React.Ref<
|
|
107
|
+
({ label, labelProps, required, helperText, helperProps, errorMessage, errorProps, error, showCounter, leftIcon, rightIcon, leftAddon, rightAddon, clearable, loading, variant, size, borderColor: borderColorProp, focusColor, floatLabel, colors: colorsProp, containerStyle, inputWrapStyle, inputStyle, flex, fontSize: fontSizeProp, fontWeight: fontWeightProp, value, defaultValue, onChangeText, placeholder, editable, multiline, numberOfLines, maxLength, onFocus: onFocusProp, onBlur: onBlurProp, ref, ...rest }: StyledTextInputProps & {
|
|
108
|
+
ref?: React.Ref<StyledTextInputHandle> | undefined;
|
|
96
109
|
}): React.JSX.Element;
|
|
97
110
|
displayName: string;
|
|
98
111
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAA;AACd,OAAO,EAML,cAAc,EAGf,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAA;AACd,OAAO,EAML,cAAc,EAGf,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAA;AAKrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,MAAM,MAAM,SAAS,GAAO,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC9C,MAAM,MAAM,YAAY,GAAI,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAA;AAExE,MAAM,MAAM,UAAU,GAAG;IACvB,4CAA4C;IAC5C,IAAI,CAAC,EAAM,MAAM,CAAA;IACjB,kDAAkD;IAClD,IAAI,CAAC,EAAM,KAAK,CAAC,SAAS,CAAA;IAC1B,oEAAoE;IACpE,EAAE,CAAC,EAAQ,MAAM,CAAA;IACjB,2CAA2C;IAC3C,KAAK,CAAC,EAAK,MAAM,CAAA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,CAAA;IAC7B,UAAU,CAAC,EAAS,SAAS,CAAA;IAG7B,QAAQ,CAAC,EAAW,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAS,SAAS,CAAC,YAAY,CAAC,CAAA;IAG3C;;;;;OAKG;IACH,MAAM,CAAC,EAAa,iBAAiB,CAAA;CAEtC;AAED,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,UAAU,CAAC,EAAG,MAAM,CAAA;IACpB,4EAA4E;IAC5E,MAAM,CAAC,EAAO,MAAM,CAAA;IACpB,4CAA4C;IAC5C,IAAI,CAAC,EAAS,MAAM,CAAA;IACpB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wFAAwF;IACxF,KAAK,CAAC,EAAQ,MAAM,CAAA;CACrB;AAuDD,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,KAAK,EAAO,MAAM,IAAI,CAAA;IACtB,IAAI,EAAQ,MAAM,IAAI,CAAA;IACtB,KAAK,EAAO,MAAM,IAAI,CAAA;IACtB,SAAS,EAAG,MAAM,OAAO,CAAA;CAC1B;AA4KD,eAAO,MAAM,eAAe;;;;;CA8S3B,CAAC;AAGF,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/page/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAa,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/page/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAa,cAAc,EAA4B,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,UAAU,eAAgB,SAAQ,uBAAuB;IACrD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAC5C,wBAAwB,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAC7D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,UAAU,cAAc;IACpB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IACnE,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AA4CD,QAAA,MAAM,UAAU,gBAAyB,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { PressableProps } from 'react-native';
|
|
2
2
|
import { ViewStyle } from '../utiles/viewStyleProps';
|
|
3
3
|
type StyledPressableProps = PressableProps & ViewStyle;
|
|
4
|
-
declare const StyledPressable:
|
|
5
|
-
(props: PressableProps & ViewStyle & {
|
|
6
|
-
ref?: import("react").Ref<any> | undefined;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
4
|
+
declare const StyledPressable: import("react").ForwardRefExoticComponent<PressableProps & ViewStyle & import("react").RefAttributes<any>>;
|
|
10
5
|
export { StyledPressable };
|
|
11
6
|
export type { StyledPressableProps };
|
|
12
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pressable/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,KAAK,oBAAoB,GAAG,cAAc,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pressable/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,KAAK,oBAAoB,GAAG,cAAc,GAAG,SAAS,CAAC;AAOvD,QAAA,MAAM,eAAe,4GAQnB,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { SafeAreaProviderProps } from 'react-native-safe-area-context';
|
|
2
2
|
type StyledSafeAreaProviderProps = SafeAreaProviderProps;
|
|
3
|
-
declare const StyledSafeAreaProvider:
|
|
4
|
-
(props: SafeAreaProviderProps & {
|
|
5
|
-
ref?: import("react").Ref<any> | undefined;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
3
|
+
declare const StyledSafeAreaProvider: import("react").ForwardRefExoticComponent<SafeAreaProviderProps & import("react").RefAttributes<any>>;
|
|
9
4
|
export { StyledSafeAreaProvider };
|
|
10
5
|
export type { StyledSafeAreaProviderProps };
|
|
11
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/safeAreaProvider/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,qBAAqB,EACxB,MAAM,gCAAgC,CAAC;AAGxC,KAAK,2BAA2B,GAAG,qBAAqB,CAAC;AAEzD,QAAA,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/safeAreaProvider/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,qBAAqB,EACxB,MAAM,gCAAgC,CAAC;AAGxC,KAAK,2BAA2B,GAAG,qBAAqB,CAAC;AAEzD,QAAA,MAAM,sBAAsB,uGAG1B,CAAC;AAEH,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,YAAY,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { SafeAreaViewProps } from 'react-native-safe-area-context';
|
|
2
2
|
import { ViewStyleProps } from '../utiles/viewStyleProps';
|
|
3
3
|
type StyledSafeAreaViewProps = SafeAreaViewProps & ViewStyleProps;
|
|
4
|
-
declare const StyledSafeAreaView:
|
|
5
|
-
(props: import("react-native-safe-area-context").NativeSafeAreaViewProps & ViewStyleProps & {
|
|
6
|
-
ref?: import("react").Ref<any> | undefined;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
4
|
+
declare const StyledSafeAreaView: import("react").ForwardRefExoticComponent<import("react-native-safe-area-context").NativeSafeAreaViewProps & ViewStyleProps & import("react").RefAttributes<any>>;
|
|
10
5
|
export { StyledSafeAreaView };
|
|
11
6
|
export type { StyledSafeAreaViewProps };
|
|
12
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/safeAreaView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,iBAAiB,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAGrE,KAAK,uBAAuB,GAAG,iBAAiB,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/safeAreaView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,iBAAiB,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAGrE,KAAK,uBAAuB,GAAG,iBAAiB,GAAG,cAAc,CAAC;AAWlE,QAAA,MAAM,kBAAkB,mKAQtB,CAAC;AAEH,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { ScrollViewProps } from 'react-native';
|
|
2
2
|
import { ViewStyleProps } from '../utiles/viewStyleProps';
|
|
3
3
|
type StyledScrollViewProps = ScrollViewProps & ViewStyleProps;
|
|
4
|
-
declare const StyledScrollView:
|
|
5
|
-
(props: ScrollViewProps & ViewStyleProps & {
|
|
6
|
-
ref?: import("react").Ref<any> | undefined;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
4
|
+
declare const StyledScrollView: import("react").ForwardRefExoticComponent<ScrollViewProps & ViewStyleProps & import("react").RefAttributes<any>>;
|
|
10
5
|
export { StyledScrollView };
|
|
11
6
|
export type { StyledScrollViewProps };
|
|
12
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scrollView/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAErE,KAAK,qBAAqB,GAAG,eAAe,GAAG,cAAc,CAAC;AAE9D,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scrollView/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAErE,KAAK,qBAAqB,GAAG,eAAe,GAAG,cAAc,CAAC;AAE9D,QAAA,MAAM,gBAAgB,kHAIpB,CAAC;AAEH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -22,12 +22,7 @@ type CycleComponentProps = CycleVariants & ViewProps & ViewStyle;
|
|
|
22
22
|
* Circular container with centered content
|
|
23
23
|
* Default size: md (48px)
|
|
24
24
|
*/
|
|
25
|
-
declare const CycleBase:
|
|
26
|
-
(props: CycleVariants & ViewProps & ViewStyle & {
|
|
27
|
-
ref?: React.Ref<any> | undefined;
|
|
28
|
-
}): React.JSX.Element;
|
|
29
|
-
displayName: string;
|
|
30
|
-
};
|
|
25
|
+
declare const CycleBase: React.ForwardRefExoticComponent<CycleVariants & ViewProps & ViewStyle & React.RefAttributes<any>>;
|
|
31
26
|
interface StyledCycleProps extends CycleComponentProps {
|
|
32
27
|
children?: React.ReactNode;
|
|
33
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle.d.ts","sourceRoot":"","sources":["../../../src/shape/cycle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AAEH,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,mBAAmB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAyBjE;;;;GAIG;AACH,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"cycle.d.ts","sourceRoot":"","sources":["../../../src/shape/cycle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AAEH,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,mBAAmB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAyBjE;;;;GAIG;AACH,QAAA,MAAM,SAAS,mGAmBb,CAAC;AAEH,UAAU,gBAAiB,SAAQ,mBAAmB;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,QAAA,MAAM,WAAW;;;;;CAUhB,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAClC,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -4,12 +4,7 @@ type ShapeVariants = {
|
|
|
4
4
|
size?: string | number | [string | number, ViewStyle];
|
|
5
5
|
};
|
|
6
6
|
type ShapeProps = ShapeVariants & ViewProps & ViewStyle;
|
|
7
|
-
declare const StyledShape:
|
|
8
|
-
(props: ShapeVariants & ViewProps & ViewStyle & {
|
|
9
|
-
ref?: import("react").Ref<any> | undefined;
|
|
10
|
-
}): import("react").JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
7
|
+
declare const StyledShape: import("react").ForwardRefExoticComponent<ShapeVariants & ViewProps & ViewStyle & import("react").RefAttributes<any>>;
|
|
13
8
|
export { StyledShape, StyledShape as StyleShape };
|
|
14
9
|
export type { ShapeProps };
|
|
15
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shape/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1D,KAAK,aAAa,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,SAAS,CAAC,CAAC;CACzD,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shape/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1D,KAAK,aAAa,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,SAAS,CAAC,CAAC;CACzD,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,QAAA,MAAM,WAAW,uHAyBf,CAAC;AAGH,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { ViewProps } from 'react-native';
|
|
2
2
|
import { ViewStyleProps } from '../utiles/viewStyleProps';
|
|
3
3
|
type SpacerProps = ViewProps & (Pick<ViewStyleProps, 'margin' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginHorizontal' | 'marginVertical' | 'backgroundColor' | 'borderRadius' | 'borderWidth' | 'borderColor' | 'flex' | 'width' | 'height'>);
|
|
4
|
-
declare const StyledSpacer:
|
|
5
|
-
(props: ViewProps & Pick<ViewStyleProps, "flex" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "height" | "margin" | "marginBottom" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginTop" | "marginVertical" | "width"> & {
|
|
6
|
-
ref?: import("react").Ref<any> | undefined;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
4
|
+
declare const StyledSpacer: import("react").ForwardRefExoticComponent<ViewProps & Pick<ViewStyleProps, "flex" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "height" | "margin" | "marginBottom" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginTop" | "marginVertical" | "width"> & import("react").RefAttributes<any>>;
|
|
10
5
|
export { StyledSpacer };
|
|
11
6
|
export type { SpacerProps };
|
|
12
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/spacer/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAErE,KAAK,WAAW,GAAI,SAAS,GAAG,CAAC,IAAI,CAAC,cAAc,EAChD,QAAQ,GACR,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,OAAO,GACP,QAAQ,CAAC,CAAC,CAAC;AAEf,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/spacer/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAa,MAAM,0BAA0B,CAAC;AAErE,KAAK,WAAW,GAAI,SAAS,GAAG,CAAC,IAAI,CAAC,cAAc,EAChD,QAAQ,GACR,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,OAAO,GACP,QAAQ,CAAC,CAAC,CAAC;AAEf,QAAA,MAAM,YAAY,qUAIhB,CAAC;AAEH,OAAO,EAAG,YAAY,EAAE,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -15,24 +15,9 @@ type StackProps = StackVariants & ViewProps & ViewStyle;
|
|
|
15
15
|
* Default: neutral layout (no flex direction preset)
|
|
16
16
|
* Use horizontal or vertical variants to set flex direction
|
|
17
17
|
*/
|
|
18
|
-
declare const Stack:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
declare const XStack: {
|
|
25
|
-
(props: Omit<StackProps, "horizontal" | "vertical"> & {
|
|
26
|
-
ref?: import("react").Ref<any> | undefined;
|
|
27
|
-
}): import("react").JSX.Element;
|
|
28
|
-
displayName: string;
|
|
29
|
-
};
|
|
30
|
-
declare const YStack: {
|
|
31
|
-
(props: Omit<StackProps, "horizontal" | "vertical"> & {
|
|
32
|
-
ref?: import("react").Ref<any> | undefined;
|
|
33
|
-
}): import("react").JSX.Element;
|
|
34
|
-
displayName: string;
|
|
35
|
-
};
|
|
18
|
+
declare const Stack: import("react").ForwardRefExoticComponent<StackVariants & ViewProps & ViewStyle & import("react").RefAttributes<any>>;
|
|
19
|
+
declare const XStack: import("react").ForwardRefExoticComponent<Omit<StackProps, "horizontal" | "vertical"> & import("react").RefAttributes<any>>;
|
|
20
|
+
declare const YStack: import("react").ForwardRefExoticComponent<Omit<StackProps, "horizontal" | "vertical"> & import("react").RefAttributes<any>>;
|
|
36
21
|
export { Stack, XStack, YStack };
|
|
37
22
|
export type { StackProps };
|
|
38
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stack/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1D;;;;;GAKG;AACH,KAAK,aAAa,GAAG;IACjB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;CAC7C,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD;;;;GAIG;AACH,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stack/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1D;;;;;GAKG;AACH,KAAK,aAAa,GAAG;IACjB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;CAC7C,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD;;;;GAIG;AACH,QAAA,MAAM,KAAK,uHAoBT,CAAC;AAEH,QAAA,MAAM,MAAM,6HASV,CAAC;AAEH,QAAA,MAAM,MAAM,6HASV,CAAC;AAEH,OAAO,EAAG,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -9,12 +9,7 @@ type TextVariants = {
|
|
|
9
9
|
link?: boolean;
|
|
10
10
|
};
|
|
11
11
|
type StyledTextProps = TextVariants & TextProps & TextStyle;
|
|
12
|
-
declare const StyledText:
|
|
13
|
-
(props: TextVariants & TextProps & TextStyle & {
|
|
14
|
-
ref?: import("react").Ref<any> | undefined;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
12
|
+
declare const StyledText: import("react").ForwardRefExoticComponent<TextVariants & TextProps & TextStyle & import("react").RefAttributes<any>>;
|
|
18
13
|
export { StyledText };
|
|
19
14
|
export type { StyledTextProps };
|
|
20
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,SAAS,EACT,SAAS,EACZ,MAAM,cAAc,CAAC;AAItB,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAE;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,SAAS,EACT,SAAS,EACZ,MAAM,cAAc,CAAC;AAItB,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAE;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D,QAAA,MAAM,UAAU,sHAgDd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -9,11 +9,6 @@ interface StyledOptions {
|
|
|
9
9
|
} | ((selected: string, options: any) => Style);
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
declare const styled: <P extends object>(Component: React.ComponentType<P>, { base, variants }?: StyledOptions) =>
|
|
13
|
-
(props: P & {
|
|
14
|
-
ref?: React.Ref<any> | undefined;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
12
|
+
declare const styled: <P extends object>(Component: React.ComponentType<P>, { base, variants }?: StyledOptions) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
|
|
18
13
|
export { styled };
|
|
19
14
|
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../src/utiles/styled.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEhE,KAAK,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAEhD,UAAU,aAAa;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG;YACX,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC;SAC1E,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC;KACnD,CAAC;CACL;AAED,QAAA,MAAM,MAAM,6EAEY,aAAa
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../src/utiles/styled.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEhE,KAAK,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAEhD,UAAU,aAAa;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG;YACX,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC;SAC1E,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC;KACnD,CAAC;CACL;AAED,QAAA,MAAM,MAAM,6EAEY,aAAa,yFAyCpC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/button/index.tsx
CHANGED
|
@@ -285,7 +285,19 @@ function spinnerColor(props: StyledButtonProps): string {
|
|
|
285
285
|
|
|
286
286
|
// ─── Button ──────────────────────────────────────────────────────────────────
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
// `ref` is destructured straight from props above the button, which only
|
|
289
|
+
// works unpatched on React 19's "ref as prop" model — on React 18 (still the
|
|
290
|
+
// baseline for RN/Expo consumers of this library) a plain function component
|
|
291
|
+
// can never receive a ref at all; React strips it before the function runs.
|
|
292
|
+
// `forwardRef` is the compatible way to accept a ref on both, so wrap here
|
|
293
|
+
// instead of destructuring `ref` out of the props object directly. Any
|
|
294
|
+
// caller relying on that ref — e.g. StyledDropdown's Trigger, which measures
|
|
295
|
+
// this button's on-screen position to place its option panel — silently got
|
|
296
|
+
// `null` without this, and the panel fell back to {top:0,left:0,width:0}.
|
|
297
|
+
const Button = React.forwardRef<
|
|
298
|
+
React.ComponentRef<typeof ButtonBase>,
|
|
299
|
+
StyledButtonProps
|
|
300
|
+
>(({ children, loading, leftIcon, rightIcon, disabled, ...rest }, ref) => {
|
|
289
301
|
const isDisabled = disabled || loading
|
|
290
302
|
|
|
291
303
|
return (
|
|
@@ -315,7 +327,7 @@ const Button = ({ children, loading, leftIcon, rightIcon, disabled, ref, ...rest
|
|
|
315
327
|
{!loading && rightIcon ? rightIcon : null}
|
|
316
328
|
</ButtonBase>
|
|
317
329
|
);
|
|
318
|
-
};
|
|
330
|
+
});
|
|
319
331
|
|
|
320
332
|
Button.displayName = 'StyledButton'
|
|
321
333
|
|
package/src/datePicker/index.tsx
CHANGED
|
@@ -799,7 +799,11 @@ const InputTrigger: React.FC<{
|
|
|
799
799
|
borderRadius={12}
|
|
800
800
|
paddingHorizontal={14}
|
|
801
801
|
paddingVertical={12}
|
|
802
|
-
|
|
802
|
+
// PATCHED: was hard-coded to palettes.white regardless of theme — the
|
|
803
|
+
// "background" token is already themeable via the `colors` prop (it
|
|
804
|
+
// already drives the calendar sheet below), so reuse it here too
|
|
805
|
+
// instead of introducing a second, disconnected background colour.
|
|
806
|
+
backgroundColor={C.background}
|
|
803
807
|
onPress={onPress}
|
|
804
808
|
disabled={disabled}
|
|
805
809
|
>
|