@kashi-ui/css 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.
@@ -13,6 +13,7 @@
13
13
  /* ───────── فقط‌خواندنی ───────── */
14
14
  .k-input:has(> .k-input__control:read-only:not(:disabled)),
15
15
  .k-select--custom[data-readonly] .k-select__control,
16
+ .k-daterange[data-readonly] .k-select__control,
16
17
  :is(.k-combobox, .k-multi-select)[data-readonly] .k-input,
17
18
  .k-tag-input[data-readonly] {
18
19
  --_border: var(--k-border-secondary);
@@ -41,6 +42,11 @@
41
42
  .k-check[data-readonly] :is(.k-checkbox, .k-radio, .k-switch):not(:checked) { background-color: var(--k-bg-muted); border-color: var(--k-border-secondary); }
42
43
  .k-check[data-readonly] :is(.k-checkbox, .k-radio, .k-switch):active { scale: none; }
43
44
 
45
+ /* اسلایدر و کد یک‌بارمصرف */
46
+ .k-slider[data-readonly] .k-slider__input { pointer-events: none; }
47
+ .k-slider[data-readonly] { cursor: default; }
48
+ .k-otp:has(.k-otp__input:read-only:not(:disabled)) .k-otp__slot { background: var(--k-bg-muted); border-color: var(--k-border-secondary); }
49
+
44
50
  /* گروه‌های انتخاب: سگمنت، نمونهٔ رنگ، چیپ‌ها و امتیاز */
45
51
  :is(.k-segmented, .k-swatches, .k-chips)[data-readonly] { cursor: default; }
46
52
  :is(.k-segmented, .k-swatches, .k-chips)[data-readonly] :is(.k-segmented__item, .k-swatch, .k-chip) { pointer-events: none; }
package/dist/kashi.css CHANGED
@@ -3800,6 +3800,7 @@ html:has(.k-dialog[open]) { overflow: hidden; }
3800
3800
  /* ───────── فقط‌خواندنی ───────── */
3801
3801
  .k-input:has(> .k-input__control:read-only:not(:disabled)),
3802
3802
  .k-select--custom[data-readonly] .k-select__control,
3803
+ .k-daterange[data-readonly] .k-select__control,
3803
3804
  :is(.k-combobox, .k-multi-select)[data-readonly] .k-input,
3804
3805
  .k-tag-input[data-readonly] {
3805
3806
  --_border: var(--k-border-secondary);
@@ -3828,6 +3829,11 @@ html:has(.k-dialog[open]) { overflow: hidden; }
3828
3829
  .k-check[data-readonly] :is(.k-checkbox, .k-radio, .k-switch):not(:checked) { background-color: var(--k-bg-muted); border-color: var(--k-border-secondary); }
3829
3830
  .k-check[data-readonly] :is(.k-checkbox, .k-radio, .k-switch):active { scale: none; }
3830
3831
 
3832
+ /* اسلایدر و کد یک‌بارمصرف */
3833
+ .k-slider[data-readonly] .k-slider__input { pointer-events: none; }
3834
+ .k-slider[data-readonly] { cursor: default; }
3835
+ .k-otp:has(.k-otp__input:read-only:not(:disabled)) .k-otp__slot { background: var(--k-bg-muted); border-color: var(--k-border-secondary); }
3836
+
3831
3837
  /* گروه‌های انتخاب: سگمنت، نمونهٔ رنگ، چیپ‌ها و امتیاز */
3832
3838
  :is(.k-segmented, .k-swatches, .k-chips)[data-readonly] { cursor: default; }
3833
3839
  :is(.k-segmented, .k-swatches, .k-chips)[data-readonly] :is(.k-segmented__item, .k-swatch, .k-chip) { pointer-events: none; }
@@ -3792,6 +3792,7 @@ html:has(.k-dialog[open]) { overflow: hidden; }
3792
3792
  /* ───────── فقط‌خواندنی ───────── */
3793
3793
  .k-input:has(> .k-input__control:read-only:not(:disabled)),
3794
3794
  .k-select--custom[data-readonly] .k-select__control,
3795
+ .k-daterange[data-readonly] .k-select__control,
3795
3796
  :is(.k-combobox, .k-multi-select)[data-readonly] .k-input,
3796
3797
  .k-tag-input[data-readonly] {
3797
3798
  --_border: var(--k-border-secondary);
@@ -3820,6 +3821,11 @@ html:has(.k-dialog[open]) { overflow: hidden; }
3820
3821
  .k-check[data-readonly] :is(.k-checkbox, .k-radio, .k-switch):not(:checked) { background-color: var(--k-bg-muted); border-color: var(--k-border-secondary); }
3821
3822
  .k-check[data-readonly] :is(.k-checkbox, .k-radio, .k-switch):active { scale: none; }
3822
3823
 
3824
+ /* اسلایدر و کد یک‌بارمصرف */
3825
+ .k-slider[data-readonly] .k-slider__input { pointer-events: none; }
3826
+ .k-slider[data-readonly] { cursor: default; }
3827
+ .k-otp:has(.k-otp__input:read-only:not(:disabled)) .k-otp__slot { background: var(--k-bg-muted); border-color: var(--k-border-secondary); }
3828
+
3823
3829
  /* گروه‌های انتخاب: سگمنت، نمونهٔ رنگ، چیپ‌ها و امتیاز */
3824
3830
  :is(.k-segmented, .k-swatches, .k-chips)[data-readonly] { cursor: default; }
3825
3831
  :is(.k-segmented, .k-swatches, .k-chips)[data-readonly] :is(.k-segmented__item, .k-swatch, .k-chip) { pointer-events: none; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kashi-ui/css",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "استایل کامپوننت‌های کاشی با CSS خالص — برای هر فریم‌ورکی",
5
5
  "main": "./dist/kashi.css",
6
6
  "style": "./dist/kashi.css",
@@ -21,7 +21,7 @@
21
21
  "build": "node build.mjs"
22
22
  },
23
23
  "dependencies": {
24
- "@kashi-ui/tokens": "^2.3.0"
24
+ "@kashi-ui/tokens": "^2.4.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "vazirmatn": "^33.0.3"