design-zystem 1.0.460 → 1.0.461
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/ui/index.d.mts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +3 -3
- package/dist/ui/index.mjs +3 -3
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -2175,6 +2175,8 @@ declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeC
|
|
|
2175
2175
|
interface TimeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
|
|
2176
2176
|
value: string;
|
|
2177
2177
|
onChange: (value: string) => void;
|
|
2178
|
+
/** Largeur du champ — un format `HH:mm` n'a pas besoin de s'étirer en pleine largeur. */
|
|
2179
|
+
width?: string;
|
|
2178
2180
|
}
|
|
2179
2181
|
/**
|
|
2180
2182
|
* Champ heure en texte libre (`HH:mm`), icône horloge posée dans le champ —
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -2175,6 +2175,8 @@ declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeC
|
|
|
2175
2175
|
interface TimeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
|
|
2176
2176
|
value: string;
|
|
2177
2177
|
onChange: (value: string) => void;
|
|
2178
|
+
/** Largeur du champ — un format `HH:mm` n'a pas besoin de s'étirer en pleine largeur. */
|
|
2179
|
+
width?: string;
|
|
2178
2180
|
}
|
|
2179
2181
|
/**
|
|
2180
2182
|
* Champ heure en texte libre (`HH:mm`), icône horloge posée dans le champ —
|
package/dist/ui/index.js
CHANGED
|
@@ -10239,8 +10239,8 @@ var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
|
10239
10239
|
var formatDigitsAsTime = (digits) => [digits.slice(0, 2), digits.slice(2, 4)].filter(Boolean).join(":");
|
|
10240
10240
|
var TimeInput = (0, import_react67.forwardRef)(
|
|
10241
10241
|
(_a, ref) => {
|
|
10242
|
-
var _b = _a, { value, onChange, className } = _b, props = __objRest(_b, ["value", "onChange", "className"]);
|
|
10243
|
-
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "relative
|
|
10242
|
+
var _b = _a, { value, onChange, className, width = "110px", style } = _b, props = __objRest(_b, ["value", "onChange", "className", "width", "style"]);
|
|
10243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "relative", style: __spreadValues({ width }, style), children: [
|
|
10244
10244
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
10245
10245
|
Input,
|
|
10246
10246
|
__spreadValues({
|
|
@@ -10253,7 +10253,7 @@ var TimeInput = (0, import_react67.forwardRef)(
|
|
|
10253
10253
|
const digits = e.target.value.replace(/\D/g, "").slice(0, 4);
|
|
10254
10254
|
onChange(formatDigitsAsTime(digits));
|
|
10255
10255
|
},
|
|
10256
|
-
className: cn("pr-8", className)
|
|
10256
|
+
className: cn("w-full pr-8", className)
|
|
10257
10257
|
}, props)
|
|
10258
10258
|
),
|
|
10259
10259
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
package/dist/ui/index.mjs
CHANGED
|
@@ -10054,8 +10054,8 @@ import { jsx as jsx120, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
|
10054
10054
|
var formatDigitsAsTime = (digits) => [digits.slice(0, 2), digits.slice(2, 4)].filter(Boolean).join(":");
|
|
10055
10055
|
var TimeInput = forwardRef38(
|
|
10056
10056
|
(_a, ref) => {
|
|
10057
|
-
var _b = _a, { value, onChange, className } = _b, props = __objRest(_b, ["value", "onChange", "className"]);
|
|
10058
|
-
return /* @__PURE__ */ jsxs71("div", { className: "relative
|
|
10057
|
+
var _b = _a, { value, onChange, className, width = "110px", style } = _b, props = __objRest(_b, ["value", "onChange", "className", "width", "style"]);
|
|
10058
|
+
return /* @__PURE__ */ jsxs71("div", { className: "relative", style: __spreadValues({ width }, style), children: [
|
|
10059
10059
|
/* @__PURE__ */ jsx120(
|
|
10060
10060
|
Input,
|
|
10061
10061
|
__spreadValues({
|
|
@@ -10068,7 +10068,7 @@ var TimeInput = forwardRef38(
|
|
|
10068
10068
|
const digits = e.target.value.replace(/\D/g, "").slice(0, 4);
|
|
10069
10069
|
onChange(formatDigitsAsTime(digits));
|
|
10070
10070
|
},
|
|
10071
|
-
className: cn("pr-8", className)
|
|
10071
|
+
className: cn("w-full pr-8", className)
|
|
10072
10072
|
}, props)
|
|
10073
10073
|
),
|
|
10074
10074
|
/* @__PURE__ */ jsx120(
|