@kashi-ui/react 2.3.0 → 2.4.0

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.
@@ -10,7 +10,7 @@ import { useKashi } from "./KashiProvider.js";
10
10
  * انتخاب تاریخ شمسی: تایپ مستقیم (۱۴۰۳/۰۵/۱۲) یا انتخاب از تقویم.
11
11
  * با name، مقدار میلادی به شکل YYYY-MM-DD در فرم ارسال می‌شود.
12
12
  */
13
- export const DatePicker = forwardRef(function DatePicker({ value, defaultValue = null, onChange, min, max, isDateDisabled, holidays, digits, yearRange, invalidMessage, openLabel, todayLabel, calendarLabels, error, name, onBlur, placeholder, ...rest }, ref) {
13
+ export const DatePicker = forwardRef(function DatePicker({ value, defaultValue = null, onChange, min, max, isDateDisabled, holidays, digits, yearRange, invalidMessage, openLabel, todayLabel, calendarLabels, error, name, onBlur, placeholder, readOnly, ...rest }, ref) {
14
14
  const { messages: M, digits: D, locale } = useKashi();
15
15
  digits ?? (digits = D);
16
16
  invalidMessage ?? (invalidMessage = M.datePicker.invalid);
@@ -76,7 +76,8 @@ export const DatePicker = forwardRef(function DatePicker({ value, defaultValue =
76
76
  setInvalid(true);
77
77
  }
78
78
  onBlur?.(e);
79
- }, error: error ?? (invalid ? invalidMessage : undefined), addonEnd: _jsx("button", { ref: button, type: "button", className: "k-btn k-btn--tertiary k-btn--icon k-btn--sm k-datepicker__toggle", "aria-label": selected ? `${openLabel}${M.common.list}${formatJalali(selected, { style: "full", digits, locale })}` : openLabel, "aria-haspopup": "dialog", "aria-expanded": open, "aria-controls": open ? popoverId : undefined, onClick: () => setOpen((o) => !o), children: _jsxs("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 1.7, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "3", y: "4.5", width: "14", height: "12.5", rx: "2" }), _jsx("path", { d: "M3 8.5h14M7 3v3M13 3v3" })] }) }), ...rest }), name && _jsx("input", { type: "hidden", name: name, value: selected ? toISODate(selected) : "" }), open && (_jsx("div", { id: popoverId, className: "k-datepicker__popover", role: "dialog", "aria-label": openLabel, style: { insetBlockStart: top }, onKeyDown: (e) => {
79
+ }, error: error ?? (invalid ? invalidMessage : undefined), readOnly: readOnly, addonEnd: readOnly ? undefined :
80
+ _jsx("button", { ref: button, type: "button", className: "k-btn k-btn--tertiary k-btn--icon k-btn--sm k-datepicker__toggle", "aria-label": selected ? `${openLabel}${M.common.list}${formatJalali(selected, { style: "full", digits, locale })}` : openLabel, "aria-haspopup": "dialog", "aria-expanded": open, "aria-controls": open ? popoverId : undefined, onClick: () => setOpen((o) => !o), children: _jsxs("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 1.7, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "3", y: "4.5", width: "14", height: "12.5", rx: "2" }), _jsx("path", { d: "M3 8.5h14M7 3v3M13 3v3" })] }) }), ...rest }), name && _jsx("input", { type: "hidden", name: name, value: selected ? toISODate(selected) : "" }), open && (_jsx("div", { id: popoverId, className: "k-datepicker__popover", role: "dialog", "aria-label": openLabel, style: { insetBlockStart: top }, onKeyDown: (e) => {
80
81
  if (e.key === "Escape") {
81
82
  e.stopPropagation();
82
83
  close();
@@ -31,6 +31,8 @@ export interface DateRangePickerProps {
31
31
  /** با name، دو فیلد پنهان name_start و name_end به شکل YYYY-MM-DD ساخته می‌شود */
32
32
  name?: string;
33
33
  disabled?: boolean;
34
+ /** فقط‌خواندنی: مقدار دیده و با فرم ارسال می‌شود ولی عوض نمی‌شود */
35
+ readOnly?: boolean;
34
36
  id?: string;
35
37
  className?: string;
36
38
  calendarLabels?: CalendarLabels;
@@ -49,4 +51,4 @@ export interface DateRangePickerProps {
49
51
  * انتخاب بازهٔ تاریخ شمسی: کلیک اول شروع، کلیک دوم پایان؛ پیش از تأیید، بازه با حرکت موس پیش‌نمایش می‌شود.
50
52
  * تغییرها فقط با «تأیید» ثبت می‌شوند.
51
53
  */
52
- export declare function DateRangePicker({ label, hint, error, value, defaultValue, onChange, min, max, isDateDisabled, holidays, presets, digits, name, disabled, id, className, calendarLabels, labels, }: DateRangePickerProps): import("react").JSX.Element;
54
+ export declare function DateRangePicker({ label, hint, error, value, defaultValue, onChange, min, max, isDateDisabled, holidays, presets, digits, name, disabled, readOnly, id, className, calendarLabels, labels, }: DateRangePickerProps): import("react").JSX.Element;
@@ -33,7 +33,7 @@ export const defaultRangePresets = presetsFor(faMessages.dateRange, (v) => toFaD
33
33
  * انتخاب بازهٔ تاریخ شمسی: کلیک اول شروع، کلیک دوم پایان؛ پیش از تأیید، بازه با حرکت موس پیش‌نمایش می‌شود.
34
34
  * تغییرها فقط با «تأیید» ثبت می‌شوند.
35
35
  */
36
- export function DateRangePicker({ label, hint, error, value, defaultValue = { start: null, end: null }, onChange, min, max, isDateDisabled, holidays, presets, digits, name, disabled, id, className, calendarLabels, labels = {}, }) {
36
+ export function DateRangePicker({ label, hint, error, value, defaultValue = { start: null, end: null }, onChange, min, max, isDateDisabled, holidays, presets, digits, name, disabled, readOnly, id, className, calendarLabels, labels = {}, }) {
37
37
  const { messages: M, digits: D, locale, n: N } = useKashi();
38
38
  digits ?? (digits = D);
39
39
  presets ?? (presets = presetsFor(M.dateRange, N));
@@ -85,7 +85,7 @@ export function DateRangePicker({ label, hint, error, value, defaultValue = { st
85
85
  const r = p.range(today);
86
86
  return draft.start?.getTime() === r.start.getTime() && draft.end?.getTime() === r.end.getTime();
87
87
  });
88
- return (_jsx(Field, { id: triggerId, label: label, hint: hint, error: error, className: className, children: _jsxs("div", { className: "k-datepicker k-daterange", ref: wrap, children: [_jsx("div", { className: "k-select", children: _jsxs("button", { ref: trigger, id: triggerId, type: "button", className: "k-select__control k-daterange__trigger", "aria-haspopup": "dialog", "aria-expanded": open, "aria-controls": open ? popoverId : undefined, "aria-invalid": error ? true : undefined, disabled: disabled, "data-placeholder": text ? undefined : "", onClick: () => setOpen((o) => !o), children: [_jsxs("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 1.7, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "3", y: "4.5", width: "14", height: "12.5", rx: "2" }), _jsx("path", { d: "M3 8.5h14M7 3v3M13 3v3" })] }), _jsx("span", { children: text ?? placeholder })] }) }), name && (_jsxs(_Fragment, { children: [_jsx("input", { type: "hidden", name: `${name}_start`, value: current.start ? toISODate(current.start) : "" }), _jsx("input", { type: "hidden", name: `${name}_end`, value: current.end ? toISODate(current.end) : "" })] })), open && (_jsxs("div", { id: popoverId, role: "dialog", "aria-label": typeof label === "string" ? label : placeholder, className: "k-datepicker__popover k-daterange__popover", onKeyDown: (e) => {
88
+ return (_jsx(Field, { id: triggerId, label: label, hint: hint, error: error, className: className, children: _jsxs("div", { className: "k-datepicker k-daterange", ref: wrap, "data-readonly": readOnly || undefined, children: [_jsx("div", { className: "k-select", children: _jsxs("button", { ref: trigger, id: triggerId, type: "button", className: "k-select__control k-daterange__trigger", "aria-haspopup": "dialog", "aria-expanded": open, "aria-controls": open ? popoverId : undefined, "aria-invalid": error ? true : undefined, disabled: disabled, "aria-readonly": readOnly || undefined, "data-placeholder": text ? undefined : "", onClick: () => !readOnly && setOpen((o) => !o), children: [_jsxs("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 1.7, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "3", y: "4.5", width: "14", height: "12.5", rx: "2" }), _jsx("path", { d: "M3 8.5h14M7 3v3M13 3v3" })] }), _jsx("span", { children: text ?? placeholder })] }) }), name && (_jsxs(_Fragment, { children: [_jsx("input", { type: "hidden", name: `${name}_start`, value: current.start ? toISODate(current.start) : "" }), _jsx("input", { type: "hidden", name: `${name}_end`, value: current.end ? toISODate(current.end) : "" })] })), open && (_jsxs("div", { id: popoverId, role: "dialog", "aria-label": typeof label === "string" ? label : placeholder, className: "k-datepicker__popover k-daterange__popover", onKeyDown: (e) => {
89
89
  if (e.key === "Escape") {
90
90
  e.stopPropagation();
91
91
  close();
@@ -17,6 +17,8 @@ export interface NumberInputProps {
17
17
  /** واحد کنار عدد، مثل «نفر» */
18
18
  unit?: ReactNode;
19
19
  disabled?: boolean;
20
+ /** فقط‌خواندنی: مقدار دیده و با فرم ارسال می‌شود ولی عوض نمی‌شود */
21
+ readOnly?: boolean;
20
22
  name?: string;
21
23
  id?: string;
22
24
  className?: string;
@@ -8,7 +8,7 @@ import { useKashi } from "./KashiProvider.js";
8
8
  const Minus = () => _jsx("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 1.8, strokeLinecap: "round", "aria-hidden": "true", children: _jsx("path", { d: "M5 10h10" }) });
9
9
  const Plus = () => _jsx("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 1.8, strokeLinecap: "round", "aria-hidden": "true", children: _jsx("path", { d: "M10 5v10M5 10h10" }) });
10
10
  /** ورودی عدد با دکمه‌های + و −؛ ↑↓ یک گام، PageUp/PageDown ده گام، Home/End کمینه و بیشینه */
11
- export const NumberInput = forwardRef(function NumberInput({ label, hint, error, value, defaultValue = null, onChange, min, max, step = 1, thousands, digits, unit, disabled, name, id, className, labels = {} }, ref) {
11
+ export const NumberInput = forwardRef(function NumberInput({ label, hint, error, value, defaultValue = null, onChange, min, max, step = 1, thousands, digits, unit, disabled, readOnly, name, id, className, labels = {} }, ref) {
12
12
  const { messages: M, digits: D } = useKashi();
13
13
  digits ?? (digits = D);
14
14
  const autoId = useId();
@@ -46,7 +46,7 @@ export const NumberInput = forwardRef(function NumberInput({ label, hint, error,
46
46
  keys[e.key]();
47
47
  setDraft(null);
48
48
  };
49
- return (_jsxs(Field, { id: inputId, label: label, hint: hint, error: error, className: className, children: [_jsx("div", { className: cx("k-number"), children: _jsxs("div", { className: "k-input", "data-state": error ? "invalid" : disabled ? "disabled" : undefined, children: [_jsx("button", { type: "button", className: "k-number__step", tabIndex: -1, "aria-label": decrement, disabled: disabled || (min !== undefined && (current ?? 0) <= min), onClick: () => bump(-1), children: _jsx(Minus, {}) }), _jsx("input", { ref: ref, id: inputId, className: "k-input__control", type: "text", inputMode: "decimal", role: "spinbutton", "aria-valuenow": current ?? undefined, "aria-valuemin": min, "aria-valuemax": max, "aria-valuetext": current === null ? undefined : show(current), "aria-invalid": error ? true : undefined, "aria-describedby": describedBy(inputId, hint, error), disabled: disabled, dir: "ltr", value: draft ?? show(current), onChange: (e) => {
49
+ return (_jsxs(Field, { id: inputId, label: label, hint: hint, error: error, className: className, children: [_jsx("div", { className: cx("k-number"), children: _jsxs("div", { className: "k-input", "data-state": error ? "invalid" : disabled ? "disabled" : undefined, children: [_jsx("button", { type: "button", className: "k-number__step", tabIndex: -1, "aria-label": decrement, hidden: readOnly, disabled: disabled || (min !== undefined && (current ?? 0) <= min), onClick: () => bump(-1), children: _jsx(Minus, {}) }), _jsx("input", { ref: ref, id: inputId, className: "k-input__control", type: "text", inputMode: "decimal", role: "spinbutton", "aria-valuenow": current ?? undefined, "aria-valuemin": min, "aria-valuemax": max, "aria-valuetext": current === null ? undefined : show(current), "aria-invalid": error ? true : undefined, "aria-describedby": describedBy(inputId, hint, error), disabled: disabled, readOnly: readOnly, "aria-readonly": readOnly || undefined, dir: "ltr", value: draft ?? show(current), onChange: (e) => {
50
50
  const raw = e.target.value;
51
51
  const neg = /^\s*[-−]/.test(raw);
52
52
  const d = onlyDigits(raw);
@@ -56,5 +56,5 @@ export const NumberInput = forwardRef(function NumberInput({ label, hint, error,
56
56
  setDraft(null);
57
57
  if (current !== null && current !== clamp(current))
58
58
  set(clamp(current));
59
- }, onKeyDown: onKeyDown }), unit && _jsx("span", { className: "k-input__addon", children: unit }), _jsx("button", { type: "button", className: "k-number__step", tabIndex: -1, "aria-label": increment, disabled: disabled || (max !== undefined && (current ?? 0) >= max), onClick: () => bump(1), children: _jsx(Plus, {}) })] }) }), name && _jsx("input", { type: "hidden", name: name, value: current ?? "" })] }));
59
+ }, onKeyDown: readOnly ? undefined : onKeyDown }), unit && _jsx("span", { className: "k-input__addon", children: unit }), _jsx("button", { type: "button", className: "k-number__step", tabIndex: -1, "aria-label": increment, hidden: readOnly, disabled: disabled || (max !== undefined && (current ?? 0) >= max), onClick: () => bump(1), children: _jsx(Plus, {}) })] }) }), name && _jsx("input", { type: "hidden", name: name, value: current ?? "" })] }));
60
60
  });
@@ -16,6 +16,8 @@ export interface OtpInputProps {
16
16
  groupAfter?: number;
17
17
  size?: "sm" | "md";
18
18
  disabled?: boolean;
19
+ /** فقط‌خواندنی: مقدار دیده و با فرم ارسال می‌شود ولی عوض نمی‌شود */
20
+ readOnly?: boolean;
19
21
  autoFocus?: boolean;
20
22
  name?: string;
21
23
  id?: string;
package/dist/OtpInput.js CHANGED
@@ -10,7 +10,7 @@ import { useKashi } from "./KashiProvider.js";
10
10
  * کد تأیید یک‌بارمصرف: یک input واقعی (نه شش input جدا)، پس چسباندن، پاک کردن،
11
11
  * صفحه‌خوان و پر شدن خودکار کد پیامکی (autocomplete="one-time-code") بی‌نقص کار می‌کنند.
12
12
  */
13
- export const OtpInput = forwardRef(function OtpInput({ label, hint, error, length = 6, value, defaultValue = "", onChange, onComplete, digits, groupAfter, size = "md", disabled, autoFocus, name, id, className }, ref) {
13
+ export const OtpInput = forwardRef(function OtpInput({ label, hint, error, length = 6, value, defaultValue = "", onChange, onComplete, digits, groupAfter, size = "md", disabled, readOnly, autoFocus, name, id, className }, ref) {
14
14
  const { digits: D } = useKashi();
15
15
  digits ?? (digits = D);
16
16
  const autoId = useId();
@@ -22,7 +22,7 @@ export const OtpInput = forwardRef(function OtpInput({ label, hint, error, lengt
22
22
  const d = (c) => (digits === "fa" ? toFaDigits(c) : c);
23
23
  const active = Math.min(caret, length - 1);
24
24
  const sync = () => setCaret(Math.min(inputRef.current?.selectionStart ?? code.length, length));
25
- return (_jsxs(Field, { id: inputId, label: label, hint: hint, error: error, className: className, children: [_jsxs("div", { className: cx("k-otp", size === "sm" && "k-otp--sm", !!error && "k-otp--invalid"), onClick: () => inputRef.current?.focus(), children: [_jsx("input", { ref: mergeRefs(ref, inputRef), id: inputId, className: "k-otp__input", type: "text", inputMode: "numeric", autoComplete: "one-time-code", pattern: "\\d*", maxLength: length * 2 /* ارقام فارسی و فاصله‌های چسبانده‌شده */, value: code, disabled: disabled, autoFocus: autoFocus, "aria-invalid": error ? true : undefined, "aria-describedby": describedBy(inputId, hint, error), onChange: (e) => {
25
+ return (_jsxs(Field, { id: inputId, label: label, hint: hint, error: error, className: className, children: [_jsxs("div", { className: cx("k-otp", size === "sm" && "k-otp--sm", !!error && "k-otp--invalid"), onClick: () => inputRef.current?.focus(), children: [_jsx("input", { ref: mergeRefs(ref, inputRef), id: inputId, className: "k-otp__input", type: "text", inputMode: "numeric", autoComplete: "one-time-code", pattern: "\\d*", maxLength: length * 2 /* ارقام فارسی و فاصله‌های چسبانده‌شده */, value: code, disabled: disabled, readOnly: readOnly, autoFocus: autoFocus, "aria-invalid": error ? true : undefined, "aria-describedby": describedBy(inputId, hint, error), onChange: (e) => {
26
26
  const next = onlyDigits(e.target.value).slice(0, length);
27
27
  if (value === undefined)
28
28
  setInner(next);
package/dist/Slider.d.ts CHANGED
@@ -21,6 +21,8 @@ export interface SliderProps<V extends Val = Val> {
21
21
  /** برچسب‌های زیر نوار، مثل [0, 50, 100] */
22
22
  marks?: number[];
23
23
  disabled?: boolean;
24
+ /** فقط‌خواندنی: مقدار دیده و با فرم ارسال می‌شود ولی عوض نمی‌شود */
25
+ readOnly?: boolean;
24
26
  name?: string;
25
27
  className?: string;
26
28
  labels?: {
@@ -30,5 +32,5 @@ export interface SliderProps<V extends Val = Val> {
30
32
  };
31
33
  }
32
34
  /** اسلایدر روی <input type="range"> بومی؛ با آرایهٔ دوتایی، بازه با دو دستگیره */
33
- export declare function Slider<V extends Val>({ label, value, defaultValue, onChange, min, max, step, showValue, format, marks, disabled, name, className, labels, }: SliderProps<V>): import("react").JSX.Element;
35
+ export declare function Slider<V extends Val>({ label, value, defaultValue, onChange, min, max, step, showValue, format, marks, disabled, readOnly, name, className, labels, }: SliderProps<V>): import("react").JSX.Element;
34
36
  export {};
package/dist/Slider.js CHANGED
@@ -5,7 +5,7 @@ import { formatNumber } from "@kashi-ui/persian";
5
5
  import { cx } from "./cx.js";
6
6
  import { useKashi } from "./KashiProvider.js";
7
7
  /** اسلایدر روی <input type="range"> بومی؛ با آرایهٔ دوتایی، بازه با دو دستگیره */
8
- export function Slider({ label, value, defaultValue, onChange, min = 0, max = 100, step = 1, showValue = true, format, marks, disabled, name, className, labels = {}, }) {
8
+ export function Slider({ label, value, defaultValue, onChange, min = 0, max = 100, step = 1, showValue = true, format, marks, disabled, readOnly, name, className, labels = {}, }) {
9
9
  const id = useId();
10
10
  const isRange = Array.isArray(value ?? defaultValue);
11
11
  const [inner, setInner] = useState(defaultValue ?? (isRange ? [min, max] : min));
@@ -24,7 +24,9 @@ export function Slider({ label, value, defaultValue, onChange, min = 0, max = 10
24
24
  const labelId = `${id}-label`;
25
25
  const input = (which) => {
26
26
  const v = which === "lo" ? lo : hi;
27
- return (_jsx("input", { type: "range", className: "k-slider__input", min: min, max: max, step: step, value: v, disabled: disabled, name: name ? (isRange ? `${name}_${which === "lo" ? "min" : "max"}` : name) : undefined, "aria-labelledby": isRange ? undefined : label ? labelId : undefined, "aria-label": isRange ? `${which === "lo" ? from : to}${typeof label === "string" ? ` ${label}` : ""}` : undefined, "aria-valuetext": format(v), onChange: (e) => {
27
+ return (_jsx("input", { type: "range", className: "k-slider__input", min: min, max: max, step: step, value: v, disabled: disabled, "aria-readonly": readOnly || undefined, name: name ? (isRange ? `${name}_${which === "lo" ? "min" : "max"}` : name) : undefined, "aria-labelledby": isRange ? undefined : label ? labelId : undefined, "aria-label": isRange ? `${which === "lo" ? from : to}${typeof label === "string" ? ` ${label}` : ""}` : undefined, "aria-valuetext": format(v), onChange: (e) => {
28
+ if (readOnly)
29
+ return;
28
30
  const n = Number(e.target.value);
29
31
  // دستگیره‌ها از روی هم رد نمی‌شوند
30
32
  if (!isRange)
@@ -33,5 +35,5 @@ export function Slider({ label, value, defaultValue, onChange, min = 0, max = 10
33
35
  set(which === "lo" ? [Math.min(n, hi), hi] : [lo, Math.max(n, lo)]);
34
36
  } }));
35
37
  };
36
- return (_jsxs("div", { className: cx("k-slider", className), "data-range": isRange ? "" : undefined, children: [(label || showValue) && (_jsxs("div", { className: "k-slider__head", children: [label && _jsx("span", { className: "k-label", id: labelId, children: label }), showValue && _jsx("span", { className: "k-slider__value", "aria-hidden": "true", children: isRange ? `${format(lo)}${separator}${format(hi)}` : format(hi) })] })), _jsxs("div", { className: "k-slider__track", style: fill, children: [_jsx("span", { className: "k-slider__fill", "aria-hidden": "true" }), isRange && input("lo"), input("hi")] }), marks && (_jsx("div", { className: "k-slider__marks", "aria-hidden": "true", children: marks.map((m) => _jsx("span", { children: format(m) }, m)) }))] }));
38
+ return (_jsxs("div", { className: cx("k-slider", className), "data-range": isRange ? "" : undefined, "data-readonly": readOnly || undefined, children: [(label || showValue) && (_jsxs("div", { className: "k-slider__head", children: [label && _jsx("span", { className: "k-label", id: labelId, children: label }), showValue && _jsx("span", { className: "k-slider__value", "aria-hidden": "true", children: isRange ? `${format(lo)}${separator}${format(hi)}` : format(hi) })] })), _jsxs("div", { className: "k-slider__track", style: fill, children: [_jsx("span", { className: "k-slider__fill", "aria-hidden": "true" }), isRange && input("lo"), input("hi")] }), marks && (_jsx("div", { className: "k-slider__marks", "aria-hidden": "true", children: marks.map((m) => _jsx("span", { children: format(m) }, m)) }))] }));
37
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kashi-ui/react",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "کامپوننت‌های React دیزاین‌سیستم کاشی",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "test": "node --test test/*.test.mjs"
23
23
  },
24
24
  "peerDependencies": {
25
- "@kashi-ui/css": "^2.3.0",
25
+ "@kashi-ui/css": "^2.4.0",
26
26
  "react": ">=18"
27
27
  },
28
28
  "devDependencies": {
@@ -59,7 +59,7 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "@kashi-ui/bank-logos": "^2.3.0",
63
- "@kashi-ui/persian": "^2.3.0"
62
+ "@kashi-ui/bank-logos": "^2.4.0",
63
+ "@kashi-ui/persian": "^2.4.0"
64
64
  }
65
65
  }