@shoplflow/base 0.45.14 → 0.45.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/dist/index.cjs +14 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -799,7 +799,9 @@ var Container = styled6__default.default.div`
|
|
|
799
799
|
${({ hasChangeAnimation }) => hasChangeAnimation && react$1.css`
|
|
800
800
|
transition:
|
|
801
801
|
width 0.3s ease-in-out,
|
|
802
|
-
max-width 0.3s ease-in-out
|
|
802
|
+
max-width 0.3s ease-in-out,
|
|
803
|
+
height 0.3s ease-in-out,
|
|
804
|
+
max-height 0.3s ease-in-out;
|
|
803
805
|
`}
|
|
804
806
|
display: flex;
|
|
805
807
|
flex-direction: column;
|
|
@@ -3670,6 +3672,12 @@ var StyledInput = styled6__default.default.input`
|
|
|
3670
3672
|
box-sizing: inherit;
|
|
3671
3673
|
}
|
|
3672
3674
|
`;
|
|
3675
|
+
var LeftElementWrapper2 = styled6__default.default.div`
|
|
3676
|
+
padding: ${({ sizeVar }) => sizeVar === "S" ? "0 0 0 8px" : "0 0 0 12px"};
|
|
3677
|
+
display: flex;
|
|
3678
|
+
flex-direction: row;
|
|
3679
|
+
align-items: center;
|
|
3680
|
+
`;
|
|
3673
3681
|
var RightElementWrapper2 = styled6__default.default.div`
|
|
3674
3682
|
padding: ${({ sizeVar, type, initialType }) => {
|
|
3675
3683
|
if (initialType === "password" || type === "password") {
|
|
@@ -3828,7 +3836,8 @@ var Input = React3.forwardRef(
|
|
|
3828
3836
|
minWidth,
|
|
3829
3837
|
gap,
|
|
3830
3838
|
initIsFocused,
|
|
3831
|
-
rightSourceStyle
|
|
3839
|
+
rightSourceStyle,
|
|
3840
|
+
leftSource
|
|
3832
3841
|
} = _b, rest = __objRest(_b, [
|
|
3833
3842
|
"onFocus",
|
|
3834
3843
|
"onBlur",
|
|
@@ -3852,7 +3861,8 @@ var Input = React3.forwardRef(
|
|
|
3852
3861
|
"minWidth",
|
|
3853
3862
|
"gap",
|
|
3854
3863
|
"initIsFocused",
|
|
3855
|
-
"rightSourceStyle"
|
|
3864
|
+
"rightSourceStyle",
|
|
3865
|
+
"leftSource"
|
|
3856
3866
|
]);
|
|
3857
3867
|
const [text, setText] = React3.useState("");
|
|
3858
3868
|
const [isFocused, setIsFocused] = React3.useState(Boolean(initIsFocused));
|
|
@@ -3969,6 +3979,7 @@ var Input = React3.forwardRef(
|
|
|
3969
3979
|
gap,
|
|
3970
3980
|
sizeVar,
|
|
3971
3981
|
children: [
|
|
3982
|
+
leftSource && /* @__PURE__ */ jsxRuntime.jsx(LeftElementWrapper2, { sizeVar, initialType, style: rightSourceStyle, children: leftSource }),
|
|
3972
3983
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { position: "relative", width: "100%" }, children: [
|
|
3973
3984
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3974
3985
|
StyledInput,
|
package/dist/index.d.cts
CHANGED
|
@@ -1100,7 +1100,7 @@ declare const InputSizeVariants: {
|
|
|
1100
1100
|
readonly M: "M";
|
|
1101
1101
|
};
|
|
1102
1102
|
declare type InputSizeVariantType = $Values<typeof InputSizeVariants>;
|
|
1103
|
-
interface InputProps extends InputOptionProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'width'>, DisableProps, RightElementProps {
|
|
1103
|
+
interface InputProps extends InputOptionProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'width'>, DisableProps, LeftElementProps, RightElementProps {
|
|
1104
1104
|
}
|
|
1105
1105
|
interface InputOptionProps extends ErrorProps, SizeVariantProps<InputSizeVariantType> {
|
|
1106
1106
|
width?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1100,7 +1100,7 @@ declare const InputSizeVariants: {
|
|
|
1100
1100
|
readonly M: "M";
|
|
1101
1101
|
};
|
|
1102
1102
|
declare type InputSizeVariantType = $Values<typeof InputSizeVariants>;
|
|
1103
|
-
interface InputProps extends InputOptionProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'width'>, DisableProps, RightElementProps {
|
|
1103
|
+
interface InputProps extends InputOptionProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'width'>, DisableProps, LeftElementProps, RightElementProps {
|
|
1104
1104
|
}
|
|
1105
1105
|
interface InputOptionProps extends ErrorProps, SizeVariantProps<InputSizeVariantType> {
|
|
1106
1106
|
width?: string;
|
package/dist/index.js
CHANGED
|
@@ -772,7 +772,9 @@ var Container = styled6.div`
|
|
|
772
772
|
${({ hasChangeAnimation }) => hasChangeAnimation && css`
|
|
773
773
|
transition:
|
|
774
774
|
width 0.3s ease-in-out,
|
|
775
|
-
max-width 0.3s ease-in-out
|
|
775
|
+
max-width 0.3s ease-in-out,
|
|
776
|
+
height 0.3s ease-in-out,
|
|
777
|
+
max-height 0.3s ease-in-out;
|
|
776
778
|
`}
|
|
777
779
|
display: flex;
|
|
778
780
|
flex-direction: column;
|
|
@@ -3643,6 +3645,12 @@ var StyledInput = styled6.input`
|
|
|
3643
3645
|
box-sizing: inherit;
|
|
3644
3646
|
}
|
|
3645
3647
|
`;
|
|
3648
|
+
var LeftElementWrapper2 = styled6.div`
|
|
3649
|
+
padding: ${({ sizeVar }) => sizeVar === "S" ? "0 0 0 8px" : "0 0 0 12px"};
|
|
3650
|
+
display: flex;
|
|
3651
|
+
flex-direction: row;
|
|
3652
|
+
align-items: center;
|
|
3653
|
+
`;
|
|
3646
3654
|
var RightElementWrapper2 = styled6.div`
|
|
3647
3655
|
padding: ${({ sizeVar, type, initialType }) => {
|
|
3648
3656
|
if (initialType === "password" || type === "password") {
|
|
@@ -3801,7 +3809,8 @@ var Input = forwardRef(
|
|
|
3801
3809
|
minWidth,
|
|
3802
3810
|
gap,
|
|
3803
3811
|
initIsFocused,
|
|
3804
|
-
rightSourceStyle
|
|
3812
|
+
rightSourceStyle,
|
|
3813
|
+
leftSource
|
|
3805
3814
|
} = _b, rest = __objRest(_b, [
|
|
3806
3815
|
"onFocus",
|
|
3807
3816
|
"onBlur",
|
|
@@ -3825,7 +3834,8 @@ var Input = forwardRef(
|
|
|
3825
3834
|
"minWidth",
|
|
3826
3835
|
"gap",
|
|
3827
3836
|
"initIsFocused",
|
|
3828
|
-
"rightSourceStyle"
|
|
3837
|
+
"rightSourceStyle",
|
|
3838
|
+
"leftSource"
|
|
3829
3839
|
]);
|
|
3830
3840
|
const [text, setText] = useState("");
|
|
3831
3841
|
const [isFocused, setIsFocused] = useState(Boolean(initIsFocused));
|
|
@@ -3942,6 +3952,7 @@ var Input = forwardRef(
|
|
|
3942
3952
|
gap,
|
|
3943
3953
|
sizeVar,
|
|
3944
3954
|
children: [
|
|
3955
|
+
leftSource && /* @__PURE__ */ jsx(LeftElementWrapper2, { sizeVar, initialType, style: rightSourceStyle, children: leftSource }),
|
|
3945
3956
|
/* @__PURE__ */ jsxs("div", { style: { position: "relative", width: "100%" }, children: [
|
|
3946
3957
|
/* @__PURE__ */ jsx(
|
|
3947
3958
|
StyledInput,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"react-dom": "^18.2.0",
|
|
100
100
|
"simplebar-react": "^3.2.6",
|
|
101
101
|
"@shoplflow/hada-assets": "^0.1.10",
|
|
102
|
-
"@shoplflow/
|
|
103
|
-
"@shoplflow/
|
|
102
|
+
"@shoplflow/shopl-assets": "^0.12.34",
|
|
103
|
+
"@shoplflow/utils": "^0.7.2"
|
|
104
104
|
},
|
|
105
105
|
"homepage": "https://github.com/shopl/shoplflow#readme",
|
|
106
106
|
"scripts": {
|