@docsplain-kit/core 0.0.18 → 0.0.19
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/package.json
CHANGED
package/text-input/text-input.js
CHANGED
|
@@ -24,7 +24,7 @@ exports.TextInput = react_1["default"].forwardRef(function CustomInput(props, re
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
return (react_1["default"].createElement("label", { className: (0, tailwind_merge_config_1.twMerge)('relative block font-family-regular', !disabled && error ? 'text-danger' : 'text-control', className) },
|
|
27
|
-
react_1["default"].createElement("input", tslib_1.__assign({ ref: ref, dir: 'auto', disabled: disabled, placeholder: label ? ' ' : placeholder, type: type, inputMode: inputMode, maxLength: maxLength, onChange: onChangeTextInput, value: value, onFocus: onFocus, id: inputId, className: (0, tailwind_merge_config_1.twMerge)("flex w-full duration-75 px-
|
|
27
|
+
react_1["default"].createElement("input", tslib_1.__assign({ ref: ref, dir: 'auto', disabled: disabled, placeholder: label ? ' ' : placeholder, type: type, inputMode: inputMode, maxLength: maxLength, onChange: onChangeTextInput, value: value, onFocus: onFocus, id: inputId, className: (0, tailwind_merge_config_1.twMerge)("flex w-full duration-75 px-4 !text-control-800 placeholder:text-control placeholder-shown:!text-m-base", "peer z-2 block w-full appearance-none text-m-sm sm:!text-t-sm md:!text-d-sm outline-none ".concat(placeholderPosition === 'center' ? 'text-center' : ''), text_input_style_1.SIZES[size], text_input_style_1.ROUNDED[rounded], text_input_style_1.VARIANTS[variant], text_input_style_1.PLACEHOLDER_POSITION[placeholderPosition], disabled ? 'border-control-100 bg-control-100 cursor-not-allowed placeholder-shown:border-t-control-100 placeholder-shown:hover:border-t-control-100 !text-control-500' : error ? 'bg-danger-100 border-danger placeholder-shown:border-t-danger placeholder-shown:hover:border-danger' : "".concat(text_input_style_1.INPUT_COLORS[color]), startAdornment ? '!ps-12' : '', endAdornment ? '!pe-12' : '', inputClassName) }, rest)),
|
|
28
28
|
label ? (react_1["default"].createElement("span", { className: (0, tailwind_merge_config_1.twMerge)("flex items-center z-1 absolute top-0 start-0 cursor-text font-family-regular", text_input_style_1.LABEL_SIZES[size], error ? 'peer-focus:text-danger before:peer-focus:border-danger after:peer-focus:border-danger peer-focus:peer-placeholder-shown:after:border-danger peer-focus:peer-placeholder-shown:before:border-danger' : text_input_style_1.LABEL_COLOR[color], "transition-all origin-[0]", disabled ? 'cursor-not-allowed!' : '', 'peer-placeholder-shown:mx-2 mx-2 peer-focus:mx-2', variant === 'filled' ? 'bg-transparent!' : "translate-y-[-50%] peer-focus:translate-y-[-50%] peer-placeholder-shown:translate-y-0", "bg-white peer-placeholder-shown:bg-transparent peer-focus:bg-white", "text-m-sm peer-focus:text-m-sm peer-placeholder-shown:text-m-base", "before:px-1 after:px-1", startAdornment ? 'peer-placeholder-shown:mr-8' : '', endAdornment ? 'peer-placeholder-shown:ml-8' : '', text_input_style_1.ROUNDED[rounded]) },
|
|
29
29
|
label,
|
|
30
30
|
required ? react_1["default"].createElement("span", { className: "text-danger ms-0.5 font-family-regular" }, "*") : null)) : null,
|
|
@@ -3,7 +3,7 @@ exports.__esModule = true;
|
|
|
3
3
|
exports.LABEL_SIZES = exports.LABEL_COLOR = exports.PLACEHOLDER_POSITION = exports.ROUNDED = exports.INPUT_COLORS = exports.SIZES = exports.VARIANTS = void 0;
|
|
4
4
|
exports.VARIANTS = {
|
|
5
5
|
outlined: '!bg-white border hover:bg-white',
|
|
6
|
-
filled: '
|
|
6
|
+
filled: ''
|
|
7
7
|
};
|
|
8
8
|
exports.SIZES = {
|
|
9
9
|
huge: 'h-14 md:!h-16',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.style.js","sourceRoot":"","sources":["../../text-input/text-input.style.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,iCAAiC;IAC3C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"text-input.style.js","sourceRoot":"","sources":["../../text-input/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