@kashi-ui/css 2.24.0 → 2.25.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/components/bill.css +13 -0
- package/dist/components/cropper.css +46 -0
- package/dist/components/gantt.css +100 -0
- package/dist/components/infinite.css +25 -0
- package/dist/components/invoice.css +69 -0
- package/dist/components/rating.css +2 -0
- package/dist/components/signature.css +51 -0
- package/dist/components/table.css +21 -0
- package/dist/components/tabs.css +2 -1
- package/dist/kashi.css +341 -1
- package/dist/kashi.nofont.css +341 -1
- package/dist/tokens.css +6 -0
- package/package.json +2 -2
package/dist/kashi.nofont.css
CHANGED
|
@@ -265,9 +265,13 @@
|
|
|
265
265
|
--k-checkbox-size-lg: 1.25rem;
|
|
266
266
|
--k-checkbox-radius-default: calc(0.3125rem * var(--k-radius-factor));
|
|
267
267
|
--k-clock-size-default: 16rem;
|
|
268
|
+
--k-cropper-height-default: 20rem;
|
|
268
269
|
--k-dialog-width-md: 30rem;
|
|
269
270
|
--k-dialog-width-lg: 40rem;
|
|
270
271
|
--k-drawer-width-default: 26rem;
|
|
272
|
+
--k-gantt-day-default: 2.5rem;
|
|
273
|
+
--k-gantt-row-default: 2.75rem;
|
|
274
|
+
--k-gantt-label-width-default: 11rem;
|
|
271
275
|
--k-heatmap-cell-default: 0.75rem;
|
|
272
276
|
--k-listbox-max-height-default: 18rem;
|
|
273
277
|
--k-menu-min-width-default: 12rem;
|
|
@@ -293,6 +297,7 @@
|
|
|
293
297
|
--k-rte-max-height-default: 28rem;
|
|
294
298
|
--k-sched-height-default: 36rem;
|
|
295
299
|
--k-sheet-height-default: 50dvh;
|
|
300
|
+
--k-signature-height-default: 11rem;
|
|
296
301
|
--k-sidenav-width-default: 17rem;
|
|
297
302
|
--k-sidenav-item-height-default: 2.5rem;
|
|
298
303
|
--k-step-size-default: 2rem;
|
|
@@ -311,6 +316,7 @@
|
|
|
311
316
|
--k-tooltip-max-width-default: 16rem;
|
|
312
317
|
--k-tree-indent-default: 1.25rem;
|
|
313
318
|
--k-tree-row-height-default: 2.25rem;
|
|
319
|
+
--k-vlist-height-default: 24rem;
|
|
314
320
|
}
|
|
315
321
|
|
|
316
322
|
:root, [data-theme="dark"] {
|
|
@@ -1186,6 +1192,20 @@
|
|
|
1186
1192
|
.k-banner__actions { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
1187
1193
|
.k-banner__close { margin-inline-start: auto; }
|
|
1188
1194
|
|
|
1195
|
+
/* شناسهٔ قبض و پرداخت: نوع قبض و مبلغ کنار فیلد با نقطهٔ رنگی نوع خدمت */
|
|
1196
|
+
.k-bill__service { display: inline-flex; align-items: center; gap: var(--k-space-1_5); animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
1197
|
+
.k-bill__service::before { content: ""; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bill-color, var(--k-text-tertiary)); }
|
|
1198
|
+
.k-bill__service[data-service="water"] { --k-bill-color: var(--k-lajvard-500); }
|
|
1199
|
+
.k-bill__service[data-service="electricity"] { --k-bill-color: var(--k-zafaran-500); }
|
|
1200
|
+
.k-bill__service[data-service="gas"] { --k-bill-color: var(--k-anar-500); }
|
|
1201
|
+
.k-bill__service[data-service="landline"], .k-bill__service[data-service="mobile"] { --k-bill-color: var(--k-firoozeh-500); }
|
|
1202
|
+
.k-bill__service[data-service="municipality"], .k-bill__service[data-service="tax"] { --k-bill-color: var(--k-pesteh-500); }
|
|
1203
|
+
.k-bill__service[data-service="fine"] { --k-bill-color: var(--k-anar-600); }
|
|
1204
|
+
.k-bill__amount { color: var(--k-text-primary); font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
1205
|
+
@keyframes k-bill-in { from { opacity: 0; translate: 0 3px; } }
|
|
1206
|
+
@media (prefers-reduced-motion: reduce) { .k-bill__service, .k-bill__amount { animation: none; } }
|
|
1207
|
+
@media (forced-colors: active) { .k-bill__service::before { background: CanvasText; } }
|
|
1208
|
+
|
|
1189
1209
|
/* مسیر صفحه (Breadcrumb)
|
|
1190
1210
|
* <nav class="k-breadcrumb" aria-label="مسیر"><ol>
|
|
1191
1211
|
* <li><a class="k-breadcrumb__link" href="/">خانه</a></li>
|
|
@@ -2584,6 +2604,53 @@ a.k-barlist__label:focus-visible { outline: 2px solid transparent; border-radius
|
|
|
2584
2604
|
.k-countdown__sep { align-self: center; color: var(--k-text-quaternary); }
|
|
2585
2605
|
.k-countdown[data-done] { color: var(--k-text-tertiary); }
|
|
2586
2606
|
|
|
2607
|
+
/* برش تصویر
|
|
2608
|
+
* <div class="k-cropper"><div class="k-cropper__stage"><img class="k-cropper__img"><div class="k-cropper__frame"></div></div><div class="k-cropper__controls">…</div></div>
|
|
2609
|
+
* متغیر: --k-cropper-height ارتفاع صحنه */
|
|
2610
|
+
.k-cropper { display: grid; gap: var(--k-space-3); }
|
|
2611
|
+
.k-cropper__stage {
|
|
2612
|
+
position: relative;
|
|
2613
|
+
block-size: var(--k-cropper-height, var(--k-cropper-height-default));
|
|
2614
|
+
overflow: hidden;
|
|
2615
|
+
border-radius: var(--k-radius-lg);
|
|
2616
|
+
background: repeating-conic-gradient(var(--k-bg-muted) 0 25%, var(--k-bg-secondary) 0 50%) 0 0 / 1rem 1rem;
|
|
2617
|
+
touch-action: none;
|
|
2618
|
+
user-select: none;
|
|
2619
|
+
cursor: grab;
|
|
2620
|
+
}
|
|
2621
|
+
.k-cropper__stage:active { cursor: grabbing; }
|
|
2622
|
+
.k-cropper__stage:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
2623
|
+
.k-cropper__img { position: absolute; inset-block-start: 0; inset-inline-start: 0; max-inline-size: none; pointer-events: none; transform-origin: 50% 50%; transition: opacity var(--k-duration-normal); }
|
|
2624
|
+
/* کادر وسط با تاریکی بیرونش (سایهٔ بزرگ) */
|
|
2625
|
+
.k-cropper__frame {
|
|
2626
|
+
position: absolute;
|
|
2627
|
+
inset-block-start: 50%;
|
|
2628
|
+
inset-inline-start: 50%;
|
|
2629
|
+
translate: -50% -50%;
|
|
2630
|
+
border: 2px solid rgb(255 255 255 / 0.95);
|
|
2631
|
+
border-radius: var(--k-radius-sm);
|
|
2632
|
+
box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.55);
|
|
2633
|
+
pointer-events: none;
|
|
2634
|
+
transition: border-radius var(--k-duration-normal) var(--k-ease-emphasized);
|
|
2635
|
+
}
|
|
2636
|
+
.k-cropper[data-shape="circle"] .k-cropper__frame { border-radius: 50%; }
|
|
2637
|
+
/* خطوط یکسوم، فقط هنگام کشیدن */
|
|
2638
|
+
.k-cropper__grid { position: absolute; inset: 0; border-radius: inherit; opacity: 0; background:
|
|
2639
|
+
linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0),
|
|
2640
|
+
linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0);
|
|
2641
|
+
transition: opacity var(--k-duration-normal); }
|
|
2642
|
+
.k-cropper__stage:active .k-cropper__grid, .k-cropper__stage:focus-visible .k-cropper__grid { opacity: 1; }
|
|
2643
|
+
.k-cropper__controls { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
2644
|
+
.k-cropper__zoom { flex: 1; min-inline-size: 0; }
|
|
2645
|
+
.k-cropper__btn { display: grid; place-items: center; flex-shrink: 0; inline-size: 2.25rem; block-size: 2.25rem; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
2646
|
+
.k-cropper__btn svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
2647
|
+
.k-cropper__btn:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
2648
|
+
.k-cropper__btn:active:not(:disabled) { scale: 0.92; }
|
|
2649
|
+
.k-cropper__btn:disabled { opacity: 0.4; cursor: default; }
|
|
2650
|
+
.k-cropper__btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
2651
|
+
@media (prefers-reduced-motion: reduce) { .k-cropper__frame, .k-cropper__grid, .k-cropper__btn, .k-cropper__img { transition: none; } }
|
|
2652
|
+
@media (forced-colors: active) { .k-cropper__frame { border-color: Highlight; } }
|
|
2653
|
+
|
|
2587
2654
|
/* پنجرهٔ گفتگو — روی <dialog> بومی: تلهٔ فوکوس، Esc و غیرفعال شدن پسزمینه رایگان
|
|
2588
2655
|
* اندازهها: k-dialog--sm | k-dialog--md (پیشفرض) | k-dialog--lg
|
|
2589
2656
|
*
|
|
@@ -2932,6 +2999,107 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
2932
2999
|
.k-file__remove { grid-row: span 2; }
|
|
2933
3000
|
.k-file .k-progress { grid-column: 2 / -1; }
|
|
2934
3001
|
|
|
3002
|
+
/* نمودار گانت با تقویم شمسی
|
|
3003
|
+
* <div class="k-gantt"><div class="k-gantt__scroll"><div class="k-gantt__grid">…<div class="k-gantt__row"><div class="k-gantt__name">…</div><div class="k-gantt__track"><button class="k-gantt__bar">…</button></div></div></div></div></div>
|
|
3004
|
+
* متغیرها: --k-gantt-day پهنای هر روز --k-gantt-row ارتفاع ردیف --k-gantt-label-width ستون نام کارها --k-gantt-color رنگ نوار --k-gantt-height ارتفاع بیشینه */
|
|
3005
|
+
.k-gantt {
|
|
3006
|
+
--_day: var(--k-gantt-day, var(--k-gantt-day-default));
|
|
3007
|
+
--_row: var(--k-gantt-row, var(--k-gantt-row-default));
|
|
3008
|
+
--_label: var(--k-gantt-label-width, var(--k-gantt-label-width-default));
|
|
3009
|
+
min-inline-size: 0;
|
|
3010
|
+
}
|
|
3011
|
+
.k-gantt__scroll { max-block-size: var(--k-gantt-height, none); overflow: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-surface); background: var(--k-bg-elevated); box-shadow: var(--k-shadow-xs), var(--k-highlight); overscroll-behavior-inline: contain; }
|
|
3012
|
+
.k-gantt__scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3013
|
+
.k-gantt__grid { position: relative; display: grid; grid-template-columns: var(--_label) calc(var(--_day) * var(--k-gantt-days)); inline-size: max-content; min-inline-size: 100%; }
|
|
3014
|
+
.k-gantt__head, .k-gantt__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
|
|
3015
|
+
.k-gantt__head { position: sticky; inset-block-start: 0; z-index: calc(var(--k-z-sticky) + 1); background: var(--k-bg-elevated); box-shadow: 0 1px 0 var(--k-border-secondary); }
|
|
3016
|
+
.k-gantt__corner, .k-gantt__name { position: sticky; inset-inline-start: 0; z-index: var(--k-z-sticky); background: var(--k-bg-elevated); border-inline-end: 1px solid var(--k-border-secondary); }
|
|
3017
|
+
.k-gantt__corner { display: flex; align-items: end; padding: var(--k-space-2) var(--k-space-4); color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); }
|
|
3018
|
+
.k-gantt__months, .k-gantt__days { display: grid; grid-template-columns: repeat(var(--k-gantt-days), var(--_day)); }
|
|
3019
|
+
.k-gantt__month { overflow: hidden; padding: var(--k-space-2) var(--k-space-2) var(--k-space-1); border-inline-start: 1px solid var(--k-border-secondary); color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; }
|
|
3020
|
+
.k-gantt__day { display: grid; place-items: center; block-size: 1.75rem; color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-variant-numeric: tabular-nums; }
|
|
3021
|
+
.k-gantt__day[data-first] { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
3022
|
+
.k-gantt__day[data-off] { color: var(--k-text-error); }
|
|
3023
|
+
.k-gantt__day[data-today] { margin: 2px; border-radius: var(--k-radius-full); background: var(--k-bg-brand); color: var(--k-text-on-brand); font-weight: var(--k-weight-semibold); }
|
|
3024
|
+
.k-gantt__row { transition: background-color var(--k-duration-fast); }
|
|
3025
|
+
.k-gantt__row:hover, .k-gantt__row:hover .k-gantt__name { background: var(--k-bg-hover); }
|
|
3026
|
+
.k-gantt__row:hover .k-gantt__name { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 3%); }
|
|
3027
|
+
.k-gantt__name { display: flex; align-items: center; gap: var(--k-space-2); min-inline-size: 0; block-size: var(--_row); padding-inline: var(--k-space-4); border-block-start: 1px solid var(--k-border-secondary); }
|
|
3028
|
+
.k-gantt__dot { flex-shrink: 0; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bg-brand); }
|
|
3029
|
+
.k-gantt__label { flex: 1; min-inline-size: 0; overflow: hidden; color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); white-space: nowrap; text-overflow: ellipsis; }
|
|
3030
|
+
.k-gantt__len { flex-shrink: 0; color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3031
|
+
.k-gantt__track {
|
|
3032
|
+
position: relative;
|
|
3033
|
+
display: grid;
|
|
3034
|
+
grid-template-columns: repeat(var(--k-gantt-days), var(--_day));
|
|
3035
|
+
block-size: var(--_row);
|
|
3036
|
+
border-block-start: 1px solid var(--k-border-secondary);
|
|
3037
|
+
background-image: linear-gradient(to right, color-mix(in srgb, var(--k-border-secondary) 60%, transparent) 1px, transparent 1px);
|
|
3038
|
+
background-size: var(--_day) 100%;
|
|
3039
|
+
}
|
|
3040
|
+
.k-gantt__off { grid-row: 1; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--k-text-error) 6%, transparent) 6px 7px); }
|
|
3041
|
+
.k-gantt__bar {
|
|
3042
|
+
--_c: var(--k-gantt-color, var(--k-brand-500));
|
|
3043
|
+
position: absolute;
|
|
3044
|
+
inset-block: 0.5rem;
|
|
3045
|
+
inset-inline-start: calc(var(--start) * var(--_day) + 2px);
|
|
3046
|
+
z-index: var(--k-z-raised);
|
|
3047
|
+
display: flex;
|
|
3048
|
+
align-items: center;
|
|
3049
|
+
inline-size: calc(var(--len) * var(--_day) - 4px);
|
|
3050
|
+
min-inline-size: 0.75rem;
|
|
3051
|
+
overflow: hidden;
|
|
3052
|
+
padding: 0;
|
|
3053
|
+
border: 0;
|
|
3054
|
+
border-radius: var(--k-radius-sm);
|
|
3055
|
+
background: color-mix(in srgb, var(--_c) 22%, var(--k-bg-elevated));
|
|
3056
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_c) 45%, transparent);
|
|
3057
|
+
color: var(--k-text-primary);
|
|
3058
|
+
font: inherit;
|
|
3059
|
+
text-align: start;
|
|
3060
|
+
cursor: pointer;
|
|
3061
|
+
transition: inset-inline-start var(--k-duration-normal) var(--k-ease-emphasized), inline-size var(--k-duration-normal) var(--k-ease-emphasized), translate var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
3062
|
+
animation: k-gantt-grow var(--k-duration-slow) var(--k-ease-emphasized) both;
|
|
3063
|
+
transform-origin: 100% 50%;
|
|
3064
|
+
}
|
|
3065
|
+
.k-gantt__bar:dir(ltr) { transform-origin: 0 50%; }
|
|
3066
|
+
.k-gantt__bar:hover { translate: 0 -1px; box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-sm); }
|
|
3067
|
+
.k-gantt__bar:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--_c), var(--k-ring-brand); }
|
|
3068
|
+
.k-gantt__bar[data-dragging] { z-index: calc(var(--k-z-raised) + 1); box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-lg); cursor: grabbing; transition: none; }
|
|
3069
|
+
.k-gantt__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--progress); background: color-mix(in srgb, var(--_c) 50%, var(--k-bg-elevated)); transition: inline-size var(--k-duration-slow) var(--k-ease-emphasized); }
|
|
3070
|
+
.k-gantt__bar[data-done] .k-gantt__fill { inline-size: 100%; }
|
|
3071
|
+
.k-gantt__text { position: relative; overflow: hidden; padding-inline: var(--k-space-2); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; mix-blend-mode: normal; }
|
|
3072
|
+
.k-gantt__grip { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 8px; cursor: ew-resize; }
|
|
3073
|
+
.k-gantt__grip::after { content: ""; position: absolute; inset-block: 30%; inset-inline-end: 3px; inline-size: 2px; border-radius: 1px; background: currentColor; opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
3074
|
+
.k-gantt__bar:hover .k-gantt__grip::after { opacity: 0.45; }
|
|
3075
|
+
.k-gantt__bar[data-milestone] { inset-block: auto; inset-block-start: 50%; inline-size: calc(var(--_day) * 0.55); min-inline-size: 0; aspect-ratio: 1; translate: calc(var(--_day) * 0.2) -50%; rotate: 45deg; border-radius: 3px; background: var(--_c); animation: k-gantt-pop var(--k-duration-slow) var(--k-ease-spring) both; }
|
|
3076
|
+
.k-gantt__bar[data-milestone]:hover { translate: calc(var(--_day) * 0.2) calc(-50% - 1px); }
|
|
3077
|
+
.k-gantt__bar[data-milestone]:dir(rtl) { translate: calc(var(--_day) * -0.2) -50%; }
|
|
3078
|
+
/* وابستگی: از پایان کار قبلی تا شروع این کار */
|
|
3079
|
+
.k-gantt__dep {
|
|
3080
|
+
position: absolute;
|
|
3081
|
+
inset-inline-start: calc(var(--from) * var(--_day) - 2px);
|
|
3082
|
+
inline-size: max(0.5rem, calc((var(--to) - var(--from)) * var(--_day) - 0.25rem));
|
|
3083
|
+
inset-block-end: 50%;
|
|
3084
|
+
block-size: calc(var(--rows) * var(--_row));
|
|
3085
|
+
border-block-start: 1.5px solid var(--k-text-quaternary);
|
|
3086
|
+
border-inline-end: 1.5px solid var(--k-text-quaternary);
|
|
3087
|
+
border-start-end-radius: 6px;
|
|
3088
|
+
pointer-events: none;
|
|
3089
|
+
}
|
|
3090
|
+
.k-gantt__dep::after { content: ""; position: absolute; inset-block-end: -3px; inset-inline-end: -4.5px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--k-text-quaternary); }
|
|
3091
|
+
.k-gantt__dep[data-below] { inset-block-end: auto; inset-block-start: 50%; border-block-start: 0; border-block-end: 1.5px solid var(--k-text-quaternary); border-start-end-radius: 0; border-end-end-radius: 6px; }
|
|
3092
|
+
.k-gantt__dep[data-below]::after { inset-block-end: auto; inset-block-start: -3px; }
|
|
3093
|
+
.k-gantt__dep[data-backward] { display: none; }
|
|
3094
|
+
/* خط امروز */
|
|
3095
|
+
.k-gantt__now { position: absolute; inset-block: 0; inset-inline-start: calc(var(--_label) + (var(--today) + 0.5) * var(--_day) - 1px); z-index: var(--k-z-raised); inline-size: 2px; background: var(--k-bg-brand); pointer-events: none; }
|
|
3096
|
+
/* متن «امروز» فقط برای خواندن کد است؛ روز امروز در سرستون با دایرهٔ برند مشخص است */
|
|
3097
|
+
.k-gantt__now span { display: none; }
|
|
3098
|
+
@keyframes k-gantt-grow { from { scale: 0.2 1; opacity: 0; } }
|
|
3099
|
+
@keyframes k-gantt-pop { from { scale: 0; } }
|
|
3100
|
+
@media (prefers-reduced-motion: reduce) { .k-gantt__bar, .k-gantt__fill { animation: none; transition: none; } }
|
|
3101
|
+
@media (forced-colors: active) { .k-gantt__bar { border: 1px solid CanvasText; } .k-gantt__fill, .k-gantt__now, .k-gantt__bar[data-milestone] { background: Highlight; forced-color-adjust: none; } }
|
|
3102
|
+
|
|
2935
3103
|
/* نقشهٔ فعالیت سالانه با ماههای شمسی — طیف تکرنگ برند از کمرنگ به پررنگ */
|
|
2936
3104
|
.k-heatmap { --_cell: var(--k-heatmap-cell, var(--k-heatmap-cell-default)); position: relative; display: grid; gap: var(--k-space-2); font-size: var(--k-text-xs); }
|
|
2937
3105
|
.k-heatmap__scroll { overflow-x: auto; padding-block-end: var(--k-space-1); border-radius: var(--k-radius-sm); scrollbar-width: thin; }
|
|
@@ -3066,6 +3234,32 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
3066
3234
|
.k-hours__days { border-color: CanvasText; }
|
|
3067
3235
|
}
|
|
3068
3236
|
|
|
3237
|
+
/* بارگذاری پیوسته و فهرست مجازی
|
|
3238
|
+
* <div class="k-infinite"><div class="k-infinite__items">…</div><div class="k-infinite__loader">…</div><p class="k-infinite__end">…</p></div>
|
|
3239
|
+
* <div class="k-vlist" role="list"><div class="k-vlist__space"><div class="k-vlist__item" role="listitem">…</div></div></div>
|
|
3240
|
+
* متغیر: --k-vlist-height ارتفاع فهرست مجازی */
|
|
3241
|
+
.k-infinite { display: grid; gap: var(--k-space-3); min-inline-size: 0; }
|
|
3242
|
+
.k-infinite--scroll { overflow-y: auto; overscroll-behavior: contain; }
|
|
3243
|
+
.k-infinite--scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3244
|
+
.k-infinite__items { display: grid; gap: inherit; }
|
|
3245
|
+
.k-infinite__items > * { animation: k-infinite-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
3246
|
+
.k-infinite__loader { display: grid; gap: var(--k-space-3); }
|
|
3247
|
+
.k-infinite__sk { display: block; block-size: 3.5rem; border-radius: var(--k-radius-lg); }
|
|
3248
|
+
.k-infinite__sk:nth-child(2) { opacity: 0.7; }
|
|
3249
|
+
.k-infinite__sk:nth-child(3) { opacity: 0.4; }
|
|
3250
|
+
.k-infinite__error { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--k-space-3); padding: var(--k-space-4); border-radius: var(--k-radius-lg); background: var(--k-bg-error-subtle); color: var(--k-text-error); font-size: var(--k-text-sm); }
|
|
3251
|
+
.k-infinite__more { display: flex; justify-content: center; }
|
|
3252
|
+
.k-infinite__end { display: flex; align-items: center; gap: var(--k-space-3); margin: 0; padding-block: var(--k-space-2); color: var(--k-text-tertiary); font-size: var(--k-text-sm); text-align: center; }
|
|
3253
|
+
.k-infinite__end::before, .k-infinite__end::after { content: ""; flex: 1; border-block-start: 1px solid var(--k-border-secondary); }
|
|
3254
|
+
.k-infinite__sentinel { block-size: 1px; margin-block-start: -1px; }
|
|
3255
|
+
.k-vlist { position: relative; block-size: var(--k-vlist-height, var(--k-vlist-height-default)); overflow-y: auto; overscroll-behavior: contain; contain: strict; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-elevated); }
|
|
3256
|
+
.k-vlist:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3257
|
+
.k-vlist__space { position: relative; inline-size: 100%; }
|
|
3258
|
+
.k-vlist__item { position: absolute; inset-block-start: 0; inset-inline: 0; }
|
|
3259
|
+
@keyframes k-infinite-in { from { opacity: 0; translate: 0 6px; } }
|
|
3260
|
+
@media (prefers-reduced-motion: reduce) { .k-infinite__items > * { animation: none; } }
|
|
3261
|
+
@media (forced-colors: active) { .k-vlist { border-color: CanvasText; } }
|
|
3262
|
+
|
|
3069
3263
|
/* ویرایش درجا: متن معمولی که با کلیک یا Enter به فیلد تبدیل میشود */
|
|
3070
3264
|
.k-inline-edit { display: inline-flex; align-items: center; gap: var(--k-space-1); max-inline-size: 100%; }
|
|
3071
3265
|
.k-inline-edit__view {
|
|
@@ -3266,6 +3460,76 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
3266
3460
|
/* ارتفاع خودکار textarea */
|
|
3267
3461
|
.k-input--autoresize .k-input__control { resize: none; overflow-y: auto; min-block-size: 3lh; field-sizing: content; }
|
|
3268
3462
|
|
|
3463
|
+
/* صورتحساب رسمی و پیشفاکتور؛ آمادهٔ چاپ و PDF
|
|
3464
|
+
* <article class="k-invoice" data-variant="official|proforma"><header class="k-invoice__head">…</header><div class="k-invoice__parties">…</div><table class="k-invoice__table">…</table>…</article> */
|
|
3465
|
+
.k-invoice {
|
|
3466
|
+
position: relative;
|
|
3467
|
+
display: grid;
|
|
3468
|
+
gap: var(--k-space-5);
|
|
3469
|
+
padding: var(--k-space-8);
|
|
3470
|
+
border: 1px solid var(--k-border-secondary);
|
|
3471
|
+
border-radius: var(--k-radius-surface);
|
|
3472
|
+
background: var(--k-bg-elevated);
|
|
3473
|
+
box-shadow: var(--k-shadow-xs), var(--k-highlight);
|
|
3474
|
+
color: var(--k-text-primary);
|
|
3475
|
+
font-size: var(--k-text-sm);
|
|
3476
|
+
}
|
|
3477
|
+
.k-invoice__head { display: flex; flex-wrap: wrap; align-items: start; gap: var(--k-space-4) var(--k-space-6); padding-block-end: var(--k-space-5); border-block-end: 2px solid var(--k-text-primary); }
|
|
3478
|
+
.k-invoice__logo { flex-shrink: 0; }
|
|
3479
|
+
.k-invoice__title { flex: 1; min-inline-size: 12rem; margin: 0; font-size: var(--k-type-title-size); font-weight: var(--k-weight-bold); line-height: var(--k-type-title-leading); }
|
|
3480
|
+
.k-invoice[data-variant="proforma"] .k-invoice__title::after { content: ""; display: inline-block; inline-size: 0.5rem; block-size: 0.5rem; margin-inline-start: var(--k-space-2); border-radius: 50%; background: var(--k-zafaran-500); vertical-align: middle; }
|
|
3481
|
+
.k-invoice__meta { display: grid; grid-template-columns: auto auto; gap: var(--k-space-1) var(--k-space-4); margin: 0; }
|
|
3482
|
+
.k-invoice__meta div, .k-invoice__totals div { display: contents; }
|
|
3483
|
+
.k-invoice__meta dt { color: var(--k-text-tertiary); }
|
|
3484
|
+
.k-invoice__meta dd { margin: 0; font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; }
|
|
3485
|
+
.k-invoice__mono { font-family: var(--k-font-mono); font-size: var(--k-text-xs); letter-spacing: 0.02em; }
|
|
3486
|
+
.k-invoice__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--k-space-4); }
|
|
3487
|
+
.k-invoice__party { padding: var(--k-space-4); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-secondary); }
|
|
3488
|
+
.k-invoice__party-title { margin: 0 0 var(--k-space-3); color: var(--k-text-secondary); font-size: var(--k-type-label-size); font-weight: var(--k-weight-semibold); line-height: var(--k-type-label-leading); }
|
|
3489
|
+
.k-invoice__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-space-2) var(--k-space-4); margin: 0; }
|
|
3490
|
+
.k-invoice__dl div { display: grid; gap: 2px; min-inline-size: 0; }
|
|
3491
|
+
.k-invoice__dl dt { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3492
|
+
.k-invoice__dl dd { margin: 0; overflow-wrap: anywhere; font-weight: var(--k-weight-medium); }
|
|
3493
|
+
.k-invoice__dl .k-invoice__num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
|
|
3494
|
+
.k-invoice__wide { grid-column: 1 / -1; }
|
|
3495
|
+
.k-invoice__table-wrap { overflow-x: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); }
|
|
3496
|
+
.k-invoice__table-wrap:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3497
|
+
.k-invoice__table { inline-size: 100%; border-collapse: collapse; }
|
|
3498
|
+
.k-invoice__table th, .k-invoice__table td { padding: var(--k-space-2_5) var(--k-space-3); border-block-end: 1px solid var(--k-border-secondary); text-align: start; vertical-align: top; }
|
|
3499
|
+
.k-invoice__table thead th { background: var(--k-bg-muted); color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; }
|
|
3500
|
+
.k-invoice__table tbody tr:last-child td { border-block-end: 0; }
|
|
3501
|
+
.k-invoice__table tbody tr { transition: background-color var(--k-duration-fast); }
|
|
3502
|
+
.k-invoice__table tbody tr:hover { background: var(--k-bg-hover); }
|
|
3503
|
+
.k-invoice__table .k-invoice__n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
3504
|
+
.k-invoice__table .k-invoice__num-col { inline-size: 3rem; color: var(--k-text-tertiary); text-align: center; }
|
|
3505
|
+
.k-invoice__code { display: block; margin-block-start: 2px; color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: start; }
|
|
3506
|
+
.k-invoice__unit { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3507
|
+
.k-invoice__summary { display: grid; justify-items: end; gap: var(--k-space-3); }
|
|
3508
|
+
.k-invoice__totals { display: grid; grid-template-columns: auto minmax(9rem, auto); gap: var(--k-space-2) var(--k-space-6); margin: 0; }
|
|
3509
|
+
.k-invoice__totals dt { color: var(--k-text-tertiary); }
|
|
3510
|
+
.k-invoice__totals dd { margin: 0; text-align: end; font-weight: var(--k-weight-medium); font-variant-numeric: tabular-nums; }
|
|
3511
|
+
.k-invoice__payable dt, .k-invoice__payable dd { padding-block-start: var(--k-space-3); border-block-start: 1px solid var(--k-border-primary); color: var(--k-text-primary); font-size: var(--k-text-md); font-weight: var(--k-weight-bold); }
|
|
3512
|
+
.k-invoice__cur { color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-regular); }
|
|
3513
|
+
.k-invoice__words { max-inline-size: 36rem; margin: 0; padding: var(--k-space-2) var(--k-space-3); border-radius: var(--k-radius-md); background: var(--k-bg-brand-subtle); color: var(--k-text-brand); font-weight: var(--k-weight-medium); text-align: end; }
|
|
3514
|
+
.k-invoice__notes { color: var(--k-text-secondary); }
|
|
3515
|
+
.k-invoice__signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--k-space-6); padding-block-start: var(--k-space-6); }
|
|
3516
|
+
.k-invoice__sign { display: grid; align-items: end; min-block-size: 5.5rem; padding-block-start: var(--k-space-2); border-block-start: 1px dashed var(--k-border-primary); color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: center; align-content: start; }
|
|
3517
|
+
.k-invoice__print { justify-self: end; gap: var(--k-space-1_5); }
|
|
3518
|
+
@media (max-width: 40rem) {
|
|
3519
|
+
.k-invoice { padding: var(--k-space-5); }
|
|
3520
|
+
.k-invoice__print { justify-self: stretch; }
|
|
3521
|
+
.k-invoice__dl { grid-template-columns: 1fr; }
|
|
3522
|
+
}
|
|
3523
|
+
@media print {
|
|
3524
|
+
.k-invoice { padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
|
|
3525
|
+
.k-invoice__print { display: none; }
|
|
3526
|
+
.k-invoice__party, .k-invoice__table thead th { background: none; }
|
|
3527
|
+
.k-invoice__words { background: none; color: #000; border: 1px solid #999; }
|
|
3528
|
+
.k-invoice__table tr, .k-invoice__signs, .k-invoice__summary { break-inside: avoid; }
|
|
3529
|
+
.k-invoice__table tbody tr:hover { background: none; }
|
|
3530
|
+
}
|
|
3531
|
+
@media (forced-colors: active) { .k-invoice, .k-invoice__party, .k-invoice__table-wrap { border-color: CanvasText; } }
|
|
3532
|
+
|
|
3269
3533
|
/* نقشهٔ استانهای ایران — نقشهٔ رنگی با طیف برند و انتخاب استان */
|
|
3270
3534
|
.k-iran-map { position: relative; display: grid; gap: var(--k-space-3); margin: 0; inline-size: 100%; font-size: var(--k-text-xs); }
|
|
3271
3535
|
.k-iran-map__canvas { position: relative; block-size: 0; }
|
|
@@ -4486,6 +4750,8 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
4486
4750
|
.k-rating__star svg { inline-size: 100%; block-size: 100%; }
|
|
4487
4751
|
.k-rating__star[data-filled] { color: var(--k-rating-color, var(--k-zafaran-400)); }
|
|
4488
4752
|
.k-rating__star[data-half] svg .k-rating__half { fill: var(--k-rating-color, var(--k-zafaran-400)); }
|
|
4753
|
+
/* نیمستاره از سمت ستارههای پر پر میشود: در RTL نیمهٔ راست (ستاره متقارن است، پس کل svg آینه میشود) */
|
|
4754
|
+
.k-rating__star[data-half]:dir(rtl) svg { scale: -1 1; }
|
|
4489
4755
|
.k-rating__star:hover { scale: 1.12; }
|
|
4490
4756
|
.k-rating__star:has(:focus-visible) { box-shadow: var(--k-ring-brand); }
|
|
4491
4757
|
.k-rating[data-readonly] .k-rating__star { cursor: default; }
|
|
@@ -4997,6 +5263,58 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
4997
5263
|
.k-sidenav__item[aria-current="page"] svg { color: HighlightText; }
|
|
4998
5264
|
}
|
|
4999
5265
|
|
|
5266
|
+
/* کادر امضا
|
|
5267
|
+
* <div class="k-field k-signature"><div class="k-signature__pad"><canvas class="k-signature__canvas"></canvas><span class="k-signature__line">×</span><div class="k-signature__tools">…</div></div></div>
|
|
5268
|
+
* متغیرها: --k-signature-height ارتفاع کادر --k-signature-ink رنگ جوهر روی صفحه */
|
|
5269
|
+
.k-signature__modes { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; border-radius: var(--k-radius-md); background: var(--k-bg-muted); }
|
|
5270
|
+
.k-signature__mode { padding: var(--k-space-1) var(--k-space-3); border: 0; border-radius: calc(var(--k-radius-md) - 2px); background: none; color: var(--k-text-tertiary); font: inherit; font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); cursor: pointer; transition: background-color var(--k-duration-fast), color var(--k-duration-fast); }
|
|
5271
|
+
.k-signature__mode:hover { color: var(--k-text-primary); }
|
|
5272
|
+
.k-signature__mode[aria-checked="true"] { background: var(--k-bg-elevated); color: var(--k-text-primary); box-shadow: var(--k-shadow-xs); }
|
|
5273
|
+
.k-signature__mode:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5274
|
+
.k-signature__pad {
|
|
5275
|
+
position: relative;
|
|
5276
|
+
block-size: var(--k-signature-height, var(--k-signature-height-default));
|
|
5277
|
+
border: 1px dashed var(--k-border-primary);
|
|
5278
|
+
border-radius: var(--k-radius-lg);
|
|
5279
|
+
background: var(--k-bg-elevated);
|
|
5280
|
+
transition: border-color var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
5281
|
+
}
|
|
5282
|
+
.k-signature__pad:hover { border-color: var(--k-text-quaternary); }
|
|
5283
|
+
.k-signature__pad:has(:focus-visible) { border-style: solid; border-color: var(--k-border-brand); box-shadow: var(--k-ring-brand); }
|
|
5284
|
+
.k-signature[data-invalid] .k-signature__pad { border-color: var(--k-border-error); }
|
|
5285
|
+
.k-signature[data-disabled] .k-signature__pad { opacity: 0.6; }
|
|
5286
|
+
.k-signature__canvas { display: block; inline-size: 100%; block-size: 100%; color: var(--k-signature-ink, var(--k-text-primary)); touch-action: none; cursor: crosshair; border-radius: inherit; }
|
|
5287
|
+
.k-signature__canvas:focus-visible { outline: none; }
|
|
5288
|
+
/* خط امضا با «×» در گوشه */
|
|
5289
|
+
.k-signature__line { position: absolute; inset-inline: var(--k-space-6); inset-block-end: 28%; padding-block-end: 2px; border-block-end: 1px solid var(--k-border-secondary); color: var(--k-text-quaternary); font-size: var(--k-text-sm); line-height: 1; pointer-events: none; transition: opacity var(--k-duration-normal) var(--k-ease-standard); }
|
|
5290
|
+
.k-signature:not([data-empty]) .k-signature__line { opacity: 0.45; }
|
|
5291
|
+
.k-signature__typed { position: absolute; inset: 0; display: grid; place-items: center; padding-inline: var(--k-space-6); }
|
|
5292
|
+
.k-signature__typed-input {
|
|
5293
|
+
inline-size: 100%;
|
|
5294
|
+
padding: 0;
|
|
5295
|
+
border: 0;
|
|
5296
|
+
background: none;
|
|
5297
|
+
color: var(--k-text-primary);
|
|
5298
|
+
font-family: var(--k-font-display);
|
|
5299
|
+
font-size: 2.25rem;
|
|
5300
|
+
font-weight: var(--k-weight-bold);
|
|
5301
|
+
text-align: center;
|
|
5302
|
+
outline: none;
|
|
5303
|
+
}
|
|
5304
|
+
.k-signature__typed-input::placeholder { color: var(--k-text-quaternary); font-family: var(--k-font-sans); font-size: var(--k-text-md); font-weight: var(--k-weight-regular); }
|
|
5305
|
+
.k-signature__tools { position: absolute; inset-block-start: var(--k-space-2); inset-inline-end: var(--k-space-2); display: flex; gap: var(--k-space-1); opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
5306
|
+
.k-signature:not([data-empty]) .k-signature__tools, .k-signature__pad:hover .k-signature__tools, .k-signature__pad:focus-within .k-signature__tools { opacity: 1; }
|
|
5307
|
+
.k-signature__tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--k-space-1); min-inline-size: 2rem; block-size: 2rem; padding-inline: var(--k-space-2); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); font: inherit; font-size: var(--k-text-sm); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
5308
|
+
.k-signature__tool svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
5309
|
+
.k-signature__tool:dir(rtl) svg { scale: -1 1; }
|
|
5310
|
+
.k-signature__tool:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
5311
|
+
.k-signature__tool:active:not(:disabled) { scale: 0.92; }
|
|
5312
|
+
.k-signature__tool:disabled { opacity: 0.4; cursor: default; }
|
|
5313
|
+
.k-signature__tool:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5314
|
+
@media (prefers-reduced-motion: reduce) { .k-signature__tools, .k-signature__line, .k-signature__tool { transition: none; } }
|
|
5315
|
+
@media (forced-colors: active) { .k-signature__pad { border-color: CanvasText; } .k-signature__canvas { color: CanvasText; } .k-signature__tools { opacity: 1; } }
|
|
5316
|
+
@media print { .k-signature__tools, .k-signature__modes { display: none; } .k-signature__pad { border-style: solid; } }
|
|
5317
|
+
|
|
5000
5318
|
/* اسکلت بارگذاری — تزئینی است؛ روی ظرف والد aria-busy="true" بگذارید */
|
|
5001
5319
|
.k-skeleton {
|
|
5002
5320
|
display: block;
|
|
@@ -5643,6 +5961,27 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
5643
5961
|
.k-table__spacer, .k-table__spacer:hover { background: none !important; }
|
|
5644
5962
|
.k-table__spacer td { border: 0; }
|
|
5645
5963
|
|
|
5964
|
+
/* ستون ثابت، ویرایش داخل خانه و خروجی اکسل */
|
|
5965
|
+
.k-table caption:has(.k-table__export) { display: table-caption; }
|
|
5966
|
+
.k-table__export { float: inline-end; gap: var(--k-space-1_5); margin-block-start: calc(var(--k-space-1) * -1); margin-inline-start: var(--k-space-3); }
|
|
5967
|
+
.k-table--pinned { border-collapse: separate; border-spacing: 0; }
|
|
5968
|
+
.k-table .k-table__pin { position: sticky; z-index: 1; background: var(--k-bg-elevated); }
|
|
5969
|
+
.k-table thead .k-table__pin { z-index: calc(var(--k-z-raised) + 1); background: var(--k-table-header-bg, var(--k-bg-muted)); }
|
|
5970
|
+
.k-table tbody tr:hover .k-table__pin { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 4%); }
|
|
5971
|
+
.k-table tbody tr[aria-selected="true"] .k-table__pin { background: var(--k-bg-brand-subtle); }
|
|
5972
|
+
.k-table .k-table__pin--edge-start { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
5973
|
+
.k-table .k-table__pin--edge-start:dir(rtl) { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
5974
|
+
.k-table .k-table__pin--edge-end { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
5975
|
+
.k-table .k-table__pin--edge-end:dir(rtl) { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
5976
|
+
.k-table td.k-table__cell--editable { padding-block: var(--k-space-1); }
|
|
5977
|
+
.k-table__editable { margin-inline: calc(var(--k-space-2) * -1); padding: var(--k-space-2); border-radius: var(--k-radius-md); cursor: text; transition: background-color var(--k-duration-fast), box-shadow var(--k-duration-fast); }
|
|
5978
|
+
.k-table__editable:hover { background: var(--k-bg-hover); box-shadow: inset 0 0 0 1px var(--k-border-secondary); }
|
|
5979
|
+
.k-table__editable:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5980
|
+
.k-table__editor { block-size: 2.25rem; margin-inline: calc(var(--k-space-2) * -1); inline-size: calc(100% + var(--k-space-2) * 2); min-inline-size: 6rem; animation: k-table-edit var(--k-duration-fast) var(--k-ease-emphasized); }
|
|
5981
|
+
@keyframes k-table-edit { from { opacity: 0.4; scale: 0.98; } }
|
|
5982
|
+
@media (prefers-reduced-motion: reduce) { .k-table__editor { animation: none; } }
|
|
5983
|
+
@media print { .k-table__export { display: none; } }
|
|
5984
|
+
|
|
5646
5985
|
/* زبانهها (Tabs) — ساختار ARIA را کامپوننت React میسازد
|
|
5647
5986
|
* گونهها: k-tabs--line (پیشفرض) | k-tabs--pill | k-tabs--segmented — تمامعرض: k-tabs--block
|
|
5648
5987
|
* عمودی: k-tabs--vertical — فشرده: k-tabs--sm
|
|
@@ -5689,7 +6028,8 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
5689
6028
|
}
|
|
5690
6029
|
.k-tabs__tab:hover { color: var(--k-text-primary); }
|
|
5691
6030
|
.k-tabs__tab[aria-selected="true"] { color: var(--k-text-primary); }
|
|
5692
|
-
|
|
6031
|
+
/* حلقهٔ داخلی: فهرست تبها overflow-x: auto دارد و حلقهٔ بیرونی را از لبهها میبرید */
|
|
6032
|
+
.k-tabs__tab:focus-visible { outline: 2px solid transparent; box-shadow: inset var(--k-ring-brand); }
|
|
5693
6033
|
.k-tabs__tab:disabled { color: var(--k-text-quaternary); cursor: not-allowed; }
|
|
5694
6034
|
.k-tabs__tab .k-badge { font-size: var(--k-text-xs); padding-block: 0; }
|
|
5695
6035
|
|
package/dist/tokens.css
CHANGED
|
@@ -260,9 +260,13 @@
|
|
|
260
260
|
--k-checkbox-size-lg: 1.25rem;
|
|
261
261
|
--k-checkbox-radius-default: calc(0.3125rem * var(--k-radius-factor));
|
|
262
262
|
--k-clock-size-default: 16rem;
|
|
263
|
+
--k-cropper-height-default: 20rem;
|
|
263
264
|
--k-dialog-width-md: 30rem;
|
|
264
265
|
--k-dialog-width-lg: 40rem;
|
|
265
266
|
--k-drawer-width-default: 26rem;
|
|
267
|
+
--k-gantt-day-default: 2.5rem;
|
|
268
|
+
--k-gantt-row-default: 2.75rem;
|
|
269
|
+
--k-gantt-label-width-default: 11rem;
|
|
266
270
|
--k-heatmap-cell-default: 0.75rem;
|
|
267
271
|
--k-listbox-max-height-default: 18rem;
|
|
268
272
|
--k-menu-min-width-default: 12rem;
|
|
@@ -288,6 +292,7 @@
|
|
|
288
292
|
--k-rte-max-height-default: 28rem;
|
|
289
293
|
--k-sched-height-default: 36rem;
|
|
290
294
|
--k-sheet-height-default: 50dvh;
|
|
295
|
+
--k-signature-height-default: 11rem;
|
|
291
296
|
--k-sidenav-width-default: 17rem;
|
|
292
297
|
--k-sidenav-item-height-default: 2.5rem;
|
|
293
298
|
--k-step-size-default: 2rem;
|
|
@@ -306,6 +311,7 @@
|
|
|
306
311
|
--k-tooltip-max-width-default: 16rem;
|
|
307
312
|
--k-tree-indent-default: 1.25rem;
|
|
308
313
|
--k-tree-row-height-default: 2.25rem;
|
|
314
|
+
--k-vlist-height-default: 24rem;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
317
|
:root, [data-theme="dark"] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kashi-ui/css",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.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.
|
|
24
|
+
"@kashi-ui/tokens": "^2.25.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"vazirmatn": "^33.0.3",
|