@shoplflow/base 0.12.1 → 0.12.3
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.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -153,7 +153,7 @@ declare type TypographyTokens = keyof typeof typographyTokens;
|
|
|
153
153
|
/**
|
|
154
154
|
* HTML 태그에 대한 타입
|
|
155
155
|
*/
|
|
156
|
-
declare type StringElementType = ElementType
|
|
156
|
+
declare type StringElementType = ElementType;
|
|
157
157
|
declare type HTMLPropsWithoutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
|
|
158
158
|
interface DisableProps {
|
|
159
159
|
/**
|
|
@@ -490,13 +490,13 @@ declare type ButtonComponent = <T extends ElementType = 'button'>(props: ButtonP
|
|
|
490
490
|
declare const Button: ButtonComponent;
|
|
491
491
|
|
|
492
492
|
declare const iconButtonSizeVar: {
|
|
493
|
-
S:
|
|
494
|
-
M:
|
|
493
|
+
readonly S: "S";
|
|
494
|
+
readonly M: "M";
|
|
495
495
|
};
|
|
496
496
|
declare type IconButtonSizeVar = $Values<typeof iconButtonSizeVar>;
|
|
497
497
|
declare const iconButtonStyleVar: {
|
|
498
|
-
SOLID:
|
|
499
|
-
GHOST:
|
|
498
|
+
readonly SOLID: "SOLID";
|
|
499
|
+
readonly GHOST: "GHOST";
|
|
500
500
|
};
|
|
501
501
|
declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
|
|
502
502
|
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;
|
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ declare type TypographyTokens = keyof typeof typographyTokens;
|
|
|
153
153
|
/**
|
|
154
154
|
* HTML 태그에 대한 타입
|
|
155
155
|
*/
|
|
156
|
-
declare type StringElementType = ElementType
|
|
156
|
+
declare type StringElementType = ElementType;
|
|
157
157
|
declare type HTMLPropsWithoutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
|
|
158
158
|
interface DisableProps {
|
|
159
159
|
/**
|
|
@@ -490,13 +490,13 @@ declare type ButtonComponent = <T extends ElementType = 'button'>(props: ButtonP
|
|
|
490
490
|
declare const Button: ButtonComponent;
|
|
491
491
|
|
|
492
492
|
declare const iconButtonSizeVar: {
|
|
493
|
-
S:
|
|
494
|
-
M:
|
|
493
|
+
readonly S: "S";
|
|
494
|
+
readonly M: "M";
|
|
495
495
|
};
|
|
496
496
|
declare type IconButtonSizeVar = $Values<typeof iconButtonSizeVar>;
|
|
497
497
|
declare const iconButtonStyleVar: {
|
|
498
|
-
SOLID:
|
|
499
|
-
GHOST:
|
|
498
|
+
readonly SOLID: "SOLID";
|
|
499
|
+
readonly GHOST: "GHOST";
|
|
500
500
|
};
|
|
501
501
|
declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
|
|
502
502
|
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;
|
package/dist/index.js
CHANGED
|
@@ -690,7 +690,7 @@ function _templateObject48() {
|
|
|
690
690
|
}
|
|
691
691
|
function _templateObject49() {
|
|
692
692
|
var data = _tagged_template_literal([
|
|
693
|
-
"\n padding: 4px
|
|
693
|
+
"\n padding: 4px 0 4px 12px;\n background-color: transparent;\n width: 100%;\n border: none;\n box-sizing: border-box;\n &::placeholder {\n color: ",
|
|
694
694
|
";\n }\n"
|
|
695
695
|
]);
|
|
696
696
|
_templateObject49 = function _templateObject() {
|
|
@@ -700,7 +700,7 @@ function _templateObject49() {
|
|
|
700
700
|
}
|
|
701
701
|
function _templateObject50() {
|
|
702
702
|
var data = _tagged_template_literal([
|
|
703
|
-
"\n display: flex;\n flex-direction: row;\n align-items: center;\n"
|
|
703
|
+
"\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 8px 0 0;\n"
|
|
704
704
|
]);
|
|
705
705
|
_templateObject50 = function _templateObject() {
|
|
706
706
|
return data;
|
|
@@ -2166,7 +2166,6 @@ React3.forwardRef(function(_param, ref) {
|
|
|
2166
2166
|
"data-shoplflow": "input",
|
|
2167
2167
|
children: [
|
|
2168
2168
|
/* @__PURE__ */ jsxRuntime.jsx(StyledInput, _object_spread({
|
|
2169
|
-
className: "".concat(exports.typographyTokens.body1_400, " ").concat(className),
|
|
2170
2169
|
onFocus: handleOnFocus,
|
|
2171
2170
|
onBlur: handleOnBlur,
|
|
2172
2171
|
onChange: handleOnChange,
|
|
@@ -2175,7 +2174,8 @@ React3.forwardRef(function(_param, ref) {
|
|
|
2175
2174
|
value: text,
|
|
2176
2175
|
type: type,
|
|
2177
2176
|
id: uniqueId,
|
|
2178
|
-
ref: refs
|
|
2177
|
+
ref: refs,
|
|
2178
|
+
className: "body1_400" + (className ? " ".concat(className) : "")
|
|
2179
2179
|
}, rest)),
|
|
2180
2180
|
/* @__PURE__ */ jsxRuntime.jsxs(RightElementWrapper, {
|
|
2181
2181
|
children: [
|
|
@@ -2215,7 +2215,7 @@ var StyledTextarea = styled5__default.default.textarea(_templateObject54(), func
|
|
|
2215
2215
|
return getDisabledStyle(disabled);
|
|
2216
2216
|
}, exports.colorTokens.neutral350);
|
|
2217
2217
|
var TextArea = React3.forwardRef(function(_param, ref) {
|
|
2218
|
-
var name = _param.name, maxLength = _param.maxLength, placeholder = _param.placeholder, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_isError = _param.isError, isError = _param_isError === void 0 ? false : _param_isError, onChange = _param.onChange, value = _param.value, defaultValue = _param.defaultValue, onBlur = _param.onBlur, onFocus = _param.onFocus, _param_minHeight = _param.minHeight, minHeight = _param_minHeight === void 0 ? 100 : _param_minHeight, rest = _object_without_properties(_param, [
|
|
2218
|
+
var name = _param.name, maxLength = _param.maxLength, placeholder = _param.placeholder, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_isError = _param.isError, isError = _param_isError === void 0 ? false : _param_isError, onChange = _param.onChange, value = _param.value, defaultValue = _param.defaultValue, onBlur = _param.onBlur, onFocus = _param.onFocus, _param_minHeight = _param.minHeight, minHeight = _param_minHeight === void 0 ? 100 : _param_minHeight, className = _param.className, rest = _object_without_properties(_param, [
|
|
2219
2219
|
"name",
|
|
2220
2220
|
"maxLength",
|
|
2221
2221
|
"placeholder",
|
|
@@ -2226,7 +2226,8 @@ var TextArea = React3.forwardRef(function(_param, ref) {
|
|
|
2226
2226
|
"defaultValue",
|
|
2227
2227
|
"onBlur",
|
|
2228
2228
|
"onFocus",
|
|
2229
|
-
"minHeight"
|
|
2229
|
+
"minHeight",
|
|
2230
|
+
"className"
|
|
2230
2231
|
]);
|
|
2231
2232
|
var _React3_useState = _sliced_to_array(React3.useState(""), 2), text = _React3_useState[0], setText = _React3_useState[1];
|
|
2232
2233
|
var _React3_useState1 = _sliced_to_array(React3.useState(false), 2), isFocused = _React3_useState1[0], setIsFocused = _React3_useState1[1];
|
|
@@ -2292,7 +2293,7 @@ var TextArea = React3.forwardRef(function(_param, ref) {
|
|
|
2292
2293
|
"data-shoplflow": "text-area",
|
|
2293
2294
|
children: [
|
|
2294
2295
|
/* @__PURE__ */ jsxRuntime.jsx(StyledTextarea, _object_spread({
|
|
2295
|
-
className: "body1_400",
|
|
2296
|
+
className: "body1_400" + (className ? " ".concat(className) : ""),
|
|
2296
2297
|
placeholder: placeholder,
|
|
2297
2298
|
onFocus: handleOnFocus,
|
|
2298
2299
|
onBlur: handleOnBlur,
|