@kashi-ui/css 2.20.0 → 2.22.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.
- package/dist/base.css +6 -6
- package/dist/components/alert.css +2 -2
- package/dist/components/appointment.css +3 -3
- package/dist/components/avatar.css +6 -6
- package/dist/components/badge.css +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/button.css +14 -14
- package/dist/components/calendar.css +1 -1
- package/dist/components/card.css +6 -6
- package/dist/components/carousel.css +1 -1
- package/dist/components/chart.css +2 -2
- package/dist/components/chat.css +2 -2
- package/dist/components/checkbox.css +5 -5
- package/dist/components/code.css +3 -3
- package/dist/components/combobox.css +4 -4
- package/dist/components/dialog.css +5 -5
- package/dist/components/empty-state.css +1 -1
- package/dist/components/field.css +6 -6
- package/dist/components/heatmap.css +1 -1
- package/dist/components/hours.css +2 -2
- package/dist/components/input.css +6 -6
- package/dist/components/menu.css +4 -4
- package/dist/components/month-picker.css +1 -1
- package/dist/components/navbar.css +5 -5
- package/dist/components/notifications.css +1 -1
- package/dist/components/otp.css +2 -2
- package/dist/components/pagination.css +2 -2
- package/dist/components/persian-extra.css +4 -4
- package/dist/components/plate.css +1 -1
- package/dist/components/popover.css +2 -2
- package/dist/components/price-range.css +1 -1
- package/dist/components/progress.css +4 -4
- package/dist/components/radio.css +2 -2
- package/dist/components/rating.css +3 -3
- package/dist/components/rich-text.css +2 -2
- package/dist/components/scheduler.css +1 -1
- package/dist/components/search-suggest.css +2 -2
- package/dist/components/segmented.css +2 -2
- package/dist/components/select.css +5 -5
- package/dist/components/sheet.css +2 -2
- package/dist/components/side-nav.css +2 -2
- package/dist/components/states.css +1 -1
- package/dist/components/stepper.css +2 -2
- package/dist/components/swatch.css +3 -3
- package/dist/components/switch.css +4 -4
- package/dist/components/tabs.css +4 -4
- package/dist/components/tag-input.css +1 -1
- package/dist/components/time-picker.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/tooltip.css +1 -1
- package/dist/components/tree.css +2 -2
- package/dist/kashi.css +319 -172
- package/dist/kashi.nofont.css +319 -172
- package/dist/tokens.css +173 -26
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.k-money__unit { color: var(--k-text-tertiary); font-size: 0.8em; font-weight: var(--k-weight-medium); }
|
|
27
27
|
.k-money--sm { --k-money-size: var(--k-text-sm); }
|
|
28
28
|
.k-money--lg { --k-money-size: var(--k-text-xl); }
|
|
29
|
-
.k-money--xl { --k-money-size: var(--k-text-3xl
|
|
29
|
+
.k-money--xl { --k-money-size: var(--k-text-3xl); }
|
|
30
30
|
.k-money--lg .k-money__unit, .k-money--xl .k-money__unit { font-size: var(--k-text-sm); }
|
|
31
31
|
.k-money[data-tone="positive"] .k-money__amount { color: var(--k-text-success); }
|
|
32
32
|
.k-money[data-tone="negative"] .k-money__amount { color: var(--k-text-error); }
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
display: grid;
|
|
41
41
|
grid-template-rows: auto 1fr auto;
|
|
42
42
|
box-sizing: border-box;
|
|
43
|
-
inline-size: var(--k-bankcard-width,
|
|
43
|
+
inline-size: var(--k-bankcard-width, var(--k-bankcard-width-default));
|
|
44
44
|
max-inline-size: 100%;
|
|
45
45
|
aspect-ratio: 85.6 / 54;
|
|
46
46
|
margin: 0;
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.k-datetile--sm { --_s: 0.75; font-size: var(--k-text-sm); }
|
|
95
95
|
.k-datetile--lg { --_s: 1.35; }
|
|
96
96
|
.k-datetile__head { justify-self: stretch; padding: calc(0.35rem * var(--_s)) 0.5rem; background: var(--k-bg-brand); color: var(--k-text-on-brand); font-size: calc(0.8rem * var(--_s)); font-weight: var(--k-weight-semibold); }
|
|
97
|
-
.k-datetile__day { margin-block-start: calc(0.25rem * var(--_s)); font-size: calc(2.75rem * var(--_s)); font-weight: var(--k-weight-bold
|
|
97
|
+
.k-datetile__day { margin-block-start: calc(0.25rem * var(--_s)); font-size: calc(2.75rem * var(--_s)); font-weight: var(--k-weight-bold); line-height: 1.15; color: var(--k-text-primary); }
|
|
98
98
|
.k-datetile__weekday { color: var(--k-text-secondary); font-size: calc(0.85rem * var(--_s)); font-weight: var(--k-weight-medium); }
|
|
99
99
|
.k-datetile__occasion { margin-block-start: 0.15rem; padding-inline: 0.5rem; color: var(--k-text-error); font-size: calc(0.72rem * var(--_s)); font-weight: var(--k-weight-semibold); }
|
|
100
100
|
.k-datetile__greg { justify-self: stretch; margin-block-start: calc(0.45rem * var(--_s)); padding: calc(0.3rem * var(--_s)) 0.5rem; border-block-start: 1px dashed var(--k-border-secondary); color: var(--k-text-tertiary); font-size: calc(0.72rem * var(--_s)); }
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
.k-receipt__title { margin: 0; font-size: var(--k-text-lg); font-weight: var(--k-weight-semibold); color: var(--_tone); }
|
|
123
123
|
.k-receipt__desc { margin: 0; color: var(--k-text-tertiary); font-size: var(--k-text-sm); }
|
|
124
124
|
.k-receipt__amount { margin-block-start: var(--k-space-3); }
|
|
125
|
-
.k-receipt__words { margin: 0; color: var(--k-text-tertiary); font-size: var(--k-text-xs
|
|
125
|
+
.k-receipt__words { margin: 0; color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
126
126
|
/* لبهٔ سوراخدار بین بالا و جزئیات */
|
|
127
127
|
.k-receipt__rows {
|
|
128
128
|
position: relative;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* رنگ با data-type: private سفید، taxi/public/agricultural زرد، government قرمز، police سبز، army قهوهای روشن، defense آبی روشن
|
|
4
4
|
*/
|
|
5
5
|
.k-plate {
|
|
6
|
-
--_h: var(--k-plate-height,
|
|
6
|
+
--_h: var(--k-plate-height, var(--k-plate-height-default));
|
|
7
7
|
--_bg: #fff;
|
|
8
8
|
--_ink: #111;
|
|
9
9
|
display: inline-grid;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
inset-block-start: calc(100% + 8px);
|
|
6
6
|
inset-inline-start: 0;
|
|
7
7
|
z-index: var(--k-z-dropdown);
|
|
8
|
-
inline-size: var(--k-popover-width,
|
|
8
|
+
inline-size: var(--k-popover-width, var(--k-popover-width-default));
|
|
9
9
|
max-inline-size: calc(100vw - 2rem);
|
|
10
10
|
padding: var(--k-popover-padding, var(--k-space-4));
|
|
11
11
|
border: 1px solid var(--k-border-secondary);
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
.k-popover--end { inset-inline: auto 0; }
|
|
20
20
|
.k-popover--top { inset-block: auto calc(100% + 8px); }
|
|
21
21
|
.k-popover__title { margin: 0 0 var(--k-space-1); font-size: var(--k-text-sm); font-weight: var(--k-weight-semibold); }
|
|
22
|
-
.k-popover__body { color: var(--k-text-tertiary); font-size: var(--k-
|
|
22
|
+
.k-popover__body { color: var(--k-text-tertiary); font-size: var(--k-type-body-sm-size); line-height: var(--k-type-body-sm-leading); }
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: var(--k-space-2);
|
|
12
|
-
block-size: var(--k-input-height-md,
|
|
12
|
+
block-size: var(--k-input-height-md, var(--k-control-height-lg));
|
|
13
13
|
padding-inline: var(--k-space-3);
|
|
14
14
|
border: 1px solid var(--k-border-control);
|
|
15
15
|
border-radius: var(--k-radius-control);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.k-progress-field__value { color: var(--k-text-tertiary); }
|
|
8
8
|
|
|
9
9
|
.k-progress {
|
|
10
|
-
--_h: var(--k-progress-height,
|
|
10
|
+
--_h: var(--k-progress-height, var(--k-progress-height-default));
|
|
11
11
|
--_c: var(--k-progress-color, var(--k-bg-brand));
|
|
12
12
|
position: relative;
|
|
13
13
|
block-size: var(--_h);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
/* حلقهٔ پیشرفت */
|
|
39
39
|
.k-progress-ring {
|
|
40
|
-
--_s: var(--k-progress-ring-size,
|
|
40
|
+
--_s: var(--k-progress-ring-size, var(--k-progress-ring-size-md));
|
|
41
41
|
--_c: var(--k-progress-color, var(--k-bg-brand));
|
|
42
42
|
position: relative;
|
|
43
43
|
display: inline-grid;
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
inline-size: var(--_s);
|
|
46
46
|
block-size: var(--_s);
|
|
47
47
|
}
|
|
48
|
-
.k-progress-ring--sm { --_s: var(--k-progress-ring-size,
|
|
49
|
-
.k-progress-ring--lg { --_s: var(--k-progress-ring-size,
|
|
48
|
+
.k-progress-ring--sm { --_s: var(--k-progress-ring-size, var(--k-progress-ring-size-sm)); }
|
|
49
|
+
.k-progress-ring--lg { --_s: var(--k-progress-ring-size, var(--k-progress-ring-size-lg)); }
|
|
50
50
|
.k-progress-ring.k-progress--success { --_c: var(--k-text-success); }
|
|
51
51
|
.k-progress-ring.k-progress--warning { --_c: var(--k-text-warning); }
|
|
52
52
|
.k-progress-ring.k-progress--error { --_c: var(--k-text-error); }
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* متغیرها: --k-radio-size
|
|
11
11
|
*/
|
|
12
12
|
.k-radio {
|
|
13
|
-
--_s: var(--k-radio-size,
|
|
13
|
+
--_s: var(--k-radio-size, var(--k-radio-size-default));
|
|
14
14
|
--_border: var(--k-border-input);
|
|
15
15
|
|
|
16
16
|
appearance: none;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
.k-radio:disabled { --_border: var(--k-border-secondary); background: var(--k-bg-tertiary); cursor: not-allowed; }
|
|
47
47
|
.k-radio:disabled::before { background: var(--k-text-quaternary); }
|
|
48
48
|
|
|
49
|
-
.k-check > .k-radio { margin-block-start: calc((
|
|
49
|
+
.k-check > .k-radio { margin-block-start: calc((var(--k-check-line-height, var(--k-check-line-height-default)) - var(--_s)) / 2); }
|
|
50
50
|
|
|
51
51
|
.k-radio-group {
|
|
52
52
|
display: grid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* امتیاز ستارهای (Rating) — روی رادیوهای بومی؛ نسخهٔ فقطخواندنی با role="img" */
|
|
2
|
-
.k-rating { --_s: var(--k-rating-size,
|
|
3
|
-
.k-rating--sm { --_s: var(--k-rating-size,
|
|
4
|
-
.k-rating--lg { --_s: var(--k-rating-size,
|
|
2
|
+
.k-rating { --_s: var(--k-rating-size, var(--k-rating-size-md)); display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 0; border: 0; }
|
|
3
|
+
.k-rating--sm { --_s: var(--k-rating-size, var(--k-rating-size-sm)); }
|
|
4
|
+
.k-rating--lg { --_s: var(--k-rating-size, var(--k-rating-size-lg)); }
|
|
5
5
|
.k-rating__star { position: relative; display: inline-grid; place-items: center; inline-size: var(--_s); block-size: var(--_s); border-radius: var(--k-radius-sm); color: var(--k-border-primary); cursor: pointer; transition: color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-emphasized); }
|
|
6
6
|
.k-rating__star svg { inline-size: 100%; block-size: 100%; }
|
|
7
7
|
.k-rating__star[data-filled] { color: var(--k-rating-color, var(--k-zafaran-400)); }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.k-rte__box { overflow: hidden; border: 1px solid var(--k-border-primary); border-radius: var(--k-radius-control, var(--k-radius-lg)); background: var(--k-bg-elevated); box-shadow: var(--k-shadow-xs); transition: border-color var(--k-duration-fast), box-shadow var(--k-duration-normal) var(--k-ease-standard); }
|
|
5
5
|
.k-rte__box:focus-within { border-color: var(--k-border-brand); box-shadow: var(--k-shadow-xs), var(--k-ring-brand); }
|
|
6
6
|
.k-rte[data-invalid] .k-rte__box { border-color: var(--k-border-error); }
|
|
7
|
-
.k-rte[data-disabled] .k-rte__box { background: var(--k-bg-
|
|
7
|
+
.k-rte[data-disabled] .k-rte__box { background: var(--k-bg-secondary); opacity: 0.7; }
|
|
8
8
|
.k-rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: var(--k-space-1); border-block-end: 1px solid var(--k-border-secondary); background: var(--k-bg-secondary); }
|
|
9
9
|
.k-rte__sep { inline-size: 1px; block-size: 1.25rem; margin-inline: var(--k-space-1); background: var(--k-border-secondary); }
|
|
10
10
|
.k-rte__tool {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
position: relative;
|
|
33
33
|
padding: var(--k-space-3) var(--k-space-4);
|
|
34
34
|
overflow-y: auto;
|
|
35
|
-
max-block-size: var(--k-rte-max-height,
|
|
35
|
+
max-block-size: var(--k-rte-max-height, var(--k-rte-max-height-default));
|
|
36
36
|
color: var(--k-text-primary);
|
|
37
37
|
font-size: var(--k-text-sm);
|
|
38
38
|
line-height: 2;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
.k-sched__icon:active { scale: 0.9; }
|
|
12
12
|
.k-sched__icon:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
13
13
|
.k-sched__title { flex: 1; margin: 0; color: var(--k-text-primary); font-size: var(--k-text-md); font-weight: var(--k-weight-semibold); }
|
|
14
|
-
.k-sched__scroll { max-block-size: var(--k-sched-height,
|
|
14
|
+
.k-sched__scroll { max-block-size: var(--k-sched-height, var(--k-sched-height-default)); overflow: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-xl); background: var(--k-bg-elevated); overscroll-behavior: contain; }
|
|
15
15
|
.k-sched__grid { display: grid; grid-template-columns: 3.5rem repeat(var(--k-sched-days), minmax(4.75rem, 1fr)); min-inline-size: max-content; }
|
|
16
16
|
.k-sched[data-view="day"] .k-sched__grid { min-inline-size: 0; grid-template-columns: 3.5rem 1fr; }
|
|
17
17
|
.k-sched__corner, .k-sched__dayhead { position: sticky; inset-block-start: 0; z-index: var(--k-z-sticky); border-block-end: 1px solid var(--k-border-secondary); background: var(--k-bg-elevated); }
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
.k-search-suggest__box {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
|
-
gap: var(--k-space-2_5
|
|
13
|
-
block-size: var(--k-search-height,
|
|
12
|
+
gap: var(--k-space-2_5);
|
|
13
|
+
block-size: var(--k-search-height, var(--k-control-height-xl));
|
|
14
14
|
padding-inline: var(--k-space-4);
|
|
15
15
|
border: 1px solid transparent;
|
|
16
16
|
border-radius: var(--k-search-radius, var(--k-radius-full));
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* اندازهها: k-segmented--sm | k-segmented--block (تمامعرض)
|
|
7
7
|
*/
|
|
8
8
|
.k-segmented {
|
|
9
|
-
--_h:
|
|
9
|
+
--_h: var(--k-control-height-md);
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
gap: 2px;
|
|
12
12
|
padding: 3px;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
scroll-padding-inline: var(--k-space-6);
|
|
23
23
|
}
|
|
24
24
|
.k-segmented::-webkit-scrollbar { display: none; }
|
|
25
|
-
.k-segmented--sm { --_h:
|
|
25
|
+
.k-segmented--sm { --_h: var(--k-control-height-sm); }
|
|
26
26
|
.k-segmented--block { display: flex; }
|
|
27
27
|
.k-segmented--block .k-segmented__item { flex: 1; }
|
|
28
28
|
.k-segmented__item {
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* اندازهها: k-select--sm | k-select--lg — خطا: aria-invalid="true"
|
|
4
4
|
*/
|
|
5
5
|
.k-select {
|
|
6
|
-
--_h: var(--k-input-height-md,
|
|
6
|
+
--_h: var(--k-input-height-md, var(--k-control-height-md));
|
|
7
7
|
position: relative;
|
|
8
8
|
display: flex;
|
|
9
9
|
}
|
|
10
|
-
.k-select--sm { --_h: var(--k-input-height-sm,
|
|
11
|
-
.k-select--lg { --_h: var(--k-input-height-lg,
|
|
10
|
+
.k-select--sm { --_h: var(--k-input-height-sm, var(--k-control-height-sm)); }
|
|
11
|
+
.k-select--lg { --_h: var(--k-input-height-lg, var(--k-control-height-lg)); }
|
|
12
12
|
|
|
13
13
|
.k-select__control {
|
|
14
14
|
appearance: none;
|
|
15
15
|
flex: 1;
|
|
16
16
|
min-inline-size: 0;
|
|
17
17
|
block-size: var(--_h);
|
|
18
|
-
padding-inline:
|
|
18
|
+
padding-inline: var(--k-control-padding-x-md) 2.5rem;
|
|
19
19
|
border: 1px solid var(--k-input-border, var(--k-border-control));
|
|
20
20
|
border-radius: var(--k-input-radius, var(--k-radius-control));
|
|
21
21
|
background: var(--k-input-bg, var(--k-bg-primary));
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
gap: var(--k-space-2);
|
|
56
|
-
padding-inline:
|
|
56
|
+
padding-inline: var(--k-control-padding-x-md) 0.75rem;
|
|
57
57
|
text-align: start;
|
|
58
58
|
}
|
|
59
59
|
.k-select__value { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.k-sheet {
|
|
5
5
|
display: none;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
inline-size: min(var(--k-dialog-width,
|
|
7
|
+
inline-size: min(var(--k-dialog-width, var(--k-dialog-width-lg)), 100vw);
|
|
8
8
|
border-start-start-radius: var(--k-sheet-radius, var(--k-radius-2xl));
|
|
9
9
|
border-start-end-radius: var(--k-sheet-radius, var(--k-radius-2xl));
|
|
10
10
|
overflow: hidden;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
.k-sheet[open] { display: flex; }
|
|
15
15
|
.k-sheet::before { display: none; }
|
|
16
|
-
.k-sheet--snap { block-size: var(--k-sheet-height,
|
|
16
|
+
.k-sheet--snap { block-size: var(--k-sheet-height, var(--k-sheet-height-default)); max-block-size: 96dvh; }
|
|
17
17
|
.k-sheet[data-dragging] { transition: none; user-select: none; }
|
|
18
18
|
|
|
19
19
|
.k-sheet__grab { flex: none; touch-action: none; cursor: grab; }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
gap: var(--k-space-6);
|
|
8
8
|
/* پهنای پیشفرض ۱۷rem، ولی هرگز پهنتر از ظرف (ستون ۲۵۰ پیکسلی) نمیشود؛ نشان مورد بریده نمیشود */
|
|
9
|
-
inline-size: var(--k-sidenav-width,
|
|
9
|
+
inline-size: var(--k-sidenav-width, var(--k-sidenav-width-default));
|
|
10
10
|
max-inline-size: 100%;
|
|
11
11
|
min-inline-size: 0;
|
|
12
12
|
padding: var(--k-space-5) var(--k-space-3);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
gap: var(--k-space-3);
|
|
24
24
|
inline-size: 100%;
|
|
25
|
-
min-block-size: var(--k-sidenav-item-height,
|
|
25
|
+
min-block-size: var(--k-sidenav-item-height, var(--k-sidenav-item-height-default));
|
|
26
26
|
padding-inline: var(--k-space-3);
|
|
27
27
|
border: 0;
|
|
28
28
|
border-radius: var(--k-radius-md);
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
background: var(--k-text-quaternary);
|
|
106
106
|
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='5.5'/%3E%3Cpath d='m13 13 3.5 3.5M7 9h4'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
107
107
|
}
|
|
108
|
-
.k-chart__skeleton { position: relative; inset: auto; block-size: var(--k-chart-height,
|
|
108
|
+
.k-chart__skeleton { position: relative; inset: auto; block-size: var(--k-chart-height, var(--k-chart-height-skeleton)); margin-block-start: var(--k-space-3); }
|
|
109
109
|
|
|
110
110
|
/* نمودار و جدول بیداده */
|
|
111
111
|
.k-chart__empty { display: grid; place-items: center; align-content: center; gap: var(--k-space-2); min-block-size: 10rem; color: var(--k-text-tertiary); font-size: var(--k-text-sm); text-align: center; }
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
z-index: var(--k-z-raised);
|
|
8
8
|
display: grid;
|
|
9
9
|
place-items: center;
|
|
10
|
-
inline-size: var(--k-step-size,
|
|
11
|
-
block-size: var(--k-step-size,
|
|
10
|
+
inline-size: var(--k-step-size, var(--k-step-size-default));
|
|
11
|
+
block-size: var(--k-step-size, var(--k-step-size-default));
|
|
12
12
|
border: 2px solid var(--k-border-secondary);
|
|
13
13
|
border-radius: 50%;
|
|
14
14
|
background: var(--k-bg-primary);
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
.k-swatches { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
|
|
9
9
|
.k-swatches__legend { margin-block-end: var(--k-space-3); padding: 0; }
|
|
10
|
-
.k-swatches { --_s: var(--k-swatch-size,
|
|
11
|
-
.k-swatches--sm { --_s: var(--k-swatch-size,
|
|
12
|
-
.k-swatches--lg { --_s: var(--k-swatch-size,
|
|
10
|
+
.k-swatches { --_s: var(--k-swatch-size, var(--k-swatch-size-md)); }
|
|
11
|
+
.k-swatches--sm { --_s: var(--k-swatch-size, var(--k-swatch-size-sm)); }
|
|
12
|
+
.k-swatches--lg { --_s: var(--k-swatch-size, var(--k-swatch-size-lg)); }
|
|
13
13
|
.k-swatches__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--_s) + 1rem), 1fr)); gap: var(--k-space-4) var(--k-space-2); }
|
|
14
14
|
.k-swatch { display: grid; justify-items: center; gap: var(--k-space-1_5); cursor: pointer; }
|
|
15
15
|
.k-swatch__color {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* متغیرها: --k-switch-width --k-switch-height --k-switch-track-on --k-switch-track-off --k-switch-thumb
|
|
10
10
|
*/
|
|
11
11
|
.k-switch {
|
|
12
|
-
--_w: var(--k-switch-width,
|
|
13
|
-
--_h: var(--k-switch-height,
|
|
12
|
+
--_w: var(--k-switch-width, var(--k-switch-width-md));
|
|
13
|
+
--_h: var(--k-switch-height, var(--k-switch-height-md));
|
|
14
14
|
--_pad: 2px;
|
|
15
15
|
--_track: var(--k-switch-track-off, var(--k-border-input));
|
|
16
16
|
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
}
|
|
63
63
|
.k-switch:disabled::before { background: var(--k-bg-secondary); box-shadow: none; }
|
|
64
64
|
|
|
65
|
-
.k-switch--sm { --_w: var(--k-switch-width,
|
|
66
|
-
.k-switch--lg { --_w: var(--k-switch-width,
|
|
65
|
+
.k-switch--sm { --_w: var(--k-switch-width, var(--k-switch-width-sm)); --_h: var(--k-switch-height, var(--k-switch-height-sm)); }
|
|
66
|
+
.k-switch--lg { --_w: var(--k-switch-width, var(--k-switch-width-lg)); --_h: var(--k-switch-height, var(--k-switch-height-lg)); }
|
|
67
67
|
|
|
68
68
|
@media (forced-colors: active) {
|
|
69
69
|
.k-switch { border: 1px solid ButtonText; background: Canvas; }
|
package/dist/components/tabs.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
gap: var(--k-space-2);
|
|
32
|
-
min-block-size: var(--k-tab-height,
|
|
32
|
+
min-block-size: var(--k-tab-height, var(--k-control-height-md));
|
|
33
33
|
padding-inline: var(--k-space-3);
|
|
34
34
|
border: 0;
|
|
35
35
|
border-radius: var(--k-tab-radius, var(--k-radius-md));
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
border-radius: var(--k-radius-control);
|
|
79
79
|
background: var(--k-bg-muted);
|
|
80
80
|
}
|
|
81
|
-
.k-tabs--segmented .k-tabs__tab { min-block-size:
|
|
81
|
+
.k-tabs--segmented .k-tabs__tab { min-block-size: var(--k-control-height-sm); }
|
|
82
82
|
.k-tabs--segmented .k-tabs__tab[aria-selected="true"] { background: var(--k-bg-raised); }
|
|
83
83
|
.k-tabs--block .k-tabs__list { inline-size: auto; }
|
|
84
84
|
.k-tabs--block .k-tabs__tab { flex: 1; }
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
.k-tabs--sm .k-tabs__tab { --k-tab-height: calc(2rem * var(--k-density)); padding-inline: var(--k-space-2); font-size: var(--k-text-xs); }
|
|
88
88
|
|
|
89
89
|
/* عمودی: فهرست در ستون کناری */
|
|
90
|
-
.k-tabs--vertical { grid-template-columns: var(--k-tabs-list-width,
|
|
90
|
+
.k-tabs--vertical { grid-template-columns: var(--k-tabs-list-width, var(--k-tabs-list-width-default)) minmax(0, 1fr); align-items: start; gap: var(--k-tabs-gap, var(--k-space-8)); }
|
|
91
91
|
.k-tabs--vertical .k-tabs__list { flex-direction: column; overflow: visible; }
|
|
92
92
|
.k-tabs--vertical .k-tabs__tab { justify-content: flex-start; }
|
|
93
93
|
.k-tabs--vertical.k-tabs--line .k-tabs__list { gap: var(--k-space-1); border-block-end: 0; border-inline-start: 1px solid var(--k-border-secondary); }
|
|
@@ -117,6 +117,6 @@
|
|
|
117
117
|
.k-tabs--pill .k-tabs__list[data-indicator] .k-tabs__tab[aria-selected="true"] { background: transparent; }
|
|
118
118
|
.k-tabs--pill .k-tabs__indicator { border-radius: var(--k-tab-radius, var(--k-radius-md)); background: var(--k-bg-brand-subtle); }
|
|
119
119
|
.k-tabs--segmented .k-tabs__list[data-indicator] .k-tabs__tab[aria-selected="true"] { background: transparent; box-shadow: none; }
|
|
120
|
-
.k-tabs--segmented .k-tabs__indicator { border-radius: var(--k-tab-radius,
|
|
120
|
+
.k-tabs--segmented .k-tabs__indicator { border-radius: var(--k-tab-radius, var(--k-tab-radius-default)); background: var(--k-bg-raised); }
|
|
121
121
|
@media (prefers-reduced-motion: reduce) { .k-tabs__indicator { transition: none; } }
|
|
122
122
|
@media (forced-colors: active) { .k-tabs__indicator { background: Highlight; } }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
flex-wrap: wrap;
|
|
5
5
|
align-items: center;
|
|
6
6
|
gap: var(--k-space-1_5);
|
|
7
|
-
min-block-size: var(--k-input-height-md,
|
|
7
|
+
min-block-size: var(--k-input-height-md, var(--k-control-height-md));
|
|
8
8
|
padding: var(--k-space-1_5) calc(0.625rem * var(--k-density));
|
|
9
9
|
border: 1px solid var(--k-input-border, var(--k-border-control));
|
|
10
10
|
border-radius: var(--k-input-radius, var(--k-radius-control));
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
list-style: none;
|
|
16
16
|
pointer-events: none;
|
|
17
17
|
}
|
|
18
|
-
.k-toaster { inline-size: min(var(--k-toast-width,
|
|
18
|
+
.k-toaster { inline-size: min(var(--k-toast-width, var(--k-toast-width-default)), calc(100vw - 2rem)); }
|
|
19
19
|
.k-toaster:is(.k-toaster--top-start, .k-toaster--top-center, .k-toaster--top-end) { inset-block: var(--k-space-6) auto; }
|
|
20
20
|
.k-toaster:is(.k-toaster--top-start, .k-toaster--bottom-start) { inset-inline: var(--k-space-6) auto; }
|
|
21
21
|
.k-toaster:is(.k-toaster--top-center, .k-toaster--bottom-center) { inset-inline: 0; margin-inline: auto; }
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
.k-tooltip--start::after { inset-inline: 100% auto; border-inline-start-color: var(--k-tooltip-bg, var(--k-text-primary)); }
|
|
54
54
|
.k-tooltip--end::after { inset-inline: auto 100%; border-inline-end-color: var(--k-tooltip-bg, var(--k-text-primary)); }
|
|
55
55
|
@keyframes k-tip-side { from { opacity: 0; } }
|
|
56
|
-
.k-tooltip { max-inline-size: var(--k-tooltip-max-width,
|
|
56
|
+
.k-tooltip { max-inline-size: var(--k-tooltip-max-width, var(--k-tooltip-max-width-default)); border-radius: var(--k-tooltip-radius, var(--k-radius-md)); }
|
|
57
57
|
|
|
58
58
|
@media (forced-colors: active) {
|
|
59
59
|
.k-tooltip { border: 1px solid CanvasText; }
|
package/dist/components/tree.css
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* <ul role="tree" class="k-tree"><li role="treeitem" aria-expanded="true" class="k-tree__item">…<ul role="group">…</ul></li></ul>
|
|
3
3
|
*/
|
|
4
4
|
.k-tree, .k-tree [role="group"] { margin: 0; padding: 0; list-style: none; }
|
|
5
|
-
.k-tree [role="group"] { padding-inline-start: var(--k-tree-indent,
|
|
5
|
+
.k-tree [role="group"] { padding-inline-start: var(--k-tree-indent, var(--k-tree-indent-default)); }
|
|
6
6
|
.k-tree__item { outline: 0; }
|
|
7
7
|
.k-tree__row {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
gap: var(--k-space-1_5);
|
|
11
|
-
min-block-size: var(--k-tree-row-height,
|
|
11
|
+
min-block-size: var(--k-tree-row-height, var(--k-tree-row-height-default));
|
|
12
12
|
padding-inline: var(--k-space-2);
|
|
13
13
|
border-radius: var(--k-radius-md);
|
|
14
14
|
color: var(--k-text-secondary);
|