@docsplain-kit/core 0.0.17 → 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/modal/modal.js CHANGED
@@ -37,7 +37,7 @@ var Modal = function (_a) {
37
37
  };
38
38
  }, [open, escFunction]);
39
39
  if (position === 'float') {
40
- return (react_1["default"].createElement(SafeAnimatePresence, null, open && (react_1["default"].createElement(react_2.motion.div, { key: "float", exit: { opacity: 0, transition: { duration: 0.6 } }, initial: { opacity: 0 }, animate: { opacity: 100, transition: { duration: 0.2 } }, className: (0, tailwind_merge_config_1.twMerge)("flex justify-center items-center bg-black/[0.2] backdrop-blur-xs fixed top-0 left-0 right-0 z-[1300] w-full h-dvh", className) },
40
+ return (react_1["default"].createElement(SafeAnimatePresence, null, open && (react_1["default"].createElement(react_2.motion.div, { key: "float", exit: { opacity: 0, transition: { duration: 0.6 } }, initial: { opacity: 0 }, animate: { opacity: 100, transition: { duration: 0.2 } }, className: (0, tailwind_merge_config_1.twMerge)("flex justify-center items-center bg-black/[0.2] backdrop-blur-sm fixed top-0 left-0 right-0 z-[1300] w-full h-dvh", className) },
41
41
  react_1["default"].createElement(div_1["default"], { className: "-z-10 w-screen h-dvh absolute", onClick: onClose }),
42
42
  react_1["default"].createElement(react_2.motion.div, { className: (0, tailwind_merge_config_1.twMerge)('relative w-11/12 md:w-2/3 md:max-w-[800px] md:h-auto h-3/4 bg-white z-40 rounded-lg md:p-6 pt-2 px-2 pb-0 flex flex-col justify-center items-center self-center gap-8', isHighContrast && '!bg-black', wrapperClassName), exit: { translateY: 2000, transition: { duration: 0.6 } }, initial: { translateY: 2000 }, animate: { translateY: 0, transition: { duration: 0.5 } } }, children)))));
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsplain-kit/core",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -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-3 !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)),
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: 'border'
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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