@ahmetilhn/hanui 3.3.1 → 4.0.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/build/index.cjs +10 -10
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +138 -113
- package/build/index.js +1671 -1673
- package/build/index.js.map +1 -1
- package/build/styles.css +1 -1
- package/package.json +4 -3
package/build/index.d.ts
CHANGED
|
@@ -455,26 +455,21 @@ export declare type CommonElementProps = Partial<{
|
|
|
455
455
|
testId: string;
|
|
456
456
|
}>;
|
|
457
457
|
|
|
458
|
-
/**
|
|
458
|
+
/**
|
|
459
|
+
* YOĞUN (compact) KİP — `<html data-hanui-density="compact">`.
|
|
460
|
+
*
|
|
461
|
+
* <p>⚠ <strong>17 SABİT DEĞER İKİ ÇARPANA İNDİ.</strong> Eski kip ölçeğin her
|
|
462
|
+
* kademesini elle eziyordu ve o değerler (11/12/13/15/16/18/21/25/31/39)
|
|
463
|
+
* akışkan ölçeğin mobil tabanlarıyla **neredeyse birebir aynıydı**. Sonuç:
|
|
464
|
+
* yoğun kipi açan panel bir telefonda küçülmeyi İKİ KEZ yiyor, `2xs` 10px'in
|
|
465
|
+
* altına düşüyordu. Ezme yerine çarpma, ikisini yapısal olarak uzlaştırıyor.
|
|
466
|
+
*
|
|
467
|
+
* <p>İkinci kazanç: kip artık ölçeğin ÜST ucunu da doğru taşıyor. Eski liste
|
|
468
|
+
* elle yazıldığı için bir kademe eklendiğinde güncellenmesi unutulabilirdi.
|
|
469
|
+
*/
|
|
459
470
|
export declare const COMPACT_DENSITY: {
|
|
460
|
-
readonly '
|
|
461
|
-
readonly 'space-
|
|
462
|
-
readonly 'space-4': "12px";
|
|
463
|
-
readonly 'space-5': "16px";
|
|
464
|
-
readonly 'space-6': "24px";
|
|
465
|
-
readonly 'space-7': "32px";
|
|
466
|
-
readonly 'font-size-2xs': "11px";
|
|
467
|
-
readonly 'font-size-xs': "12px";
|
|
468
|
-
readonly 'font-size-sm': "13px";
|
|
469
|
-
readonly 'font-size-base': "15px";
|
|
470
|
-
readonly 'font-size-body': "16px";
|
|
471
|
-
readonly 'font-size-lg': "18px";
|
|
472
|
-
readonly 'font-size-xl': "21px";
|
|
473
|
-
readonly 'font-size-2xl': "25px";
|
|
474
|
-
readonly 'font-size-3xl': "31px";
|
|
475
|
-
readonly 'font-size-4xl': "39px";
|
|
476
|
-
readonly 'leading-normal': "1.5";
|
|
477
|
-
readonly 'leading-relaxed': "1.6";
|
|
471
|
+
readonly 'type-scale': "0.93";
|
|
472
|
+
readonly 'space-scale': "0.88";
|
|
478
473
|
};
|
|
479
474
|
|
|
480
475
|
export declare const ConfirmDialog: typeof ConfirmDialog_2;
|
|
@@ -1025,82 +1020,92 @@ testId?: string;
|
|
|
1025
1020
|
|
|
1026
1021
|
/** AÇIK TEMA — varsayılan. */
|
|
1027
1022
|
export declare const LIGHT_THEME: {
|
|
1028
|
-
readonly page: "#
|
|
1029
|
-
readonly surface: "#
|
|
1030
|
-
readonly 'surface-2': "#
|
|
1031
|
-
readonly 'surface-3': "#
|
|
1032
|
-
|
|
1033
|
-
readonly
|
|
1034
|
-
readonly
|
|
1035
|
-
readonly
|
|
1036
|
-
readonly
|
|
1037
|
-
readonly 'text-
|
|
1038
|
-
readonly
|
|
1039
|
-
readonly
|
|
1040
|
-
readonly '
|
|
1023
|
+
readonly page: "#f7fcf8";
|
|
1024
|
+
readonly surface: "#fdfefd";
|
|
1025
|
+
readonly 'surface-2': "#e9f7ed";
|
|
1026
|
+
readonly 'surface-3': "#dff3e5";
|
|
1027
|
+
/** Girinti sayfanın ALTINA iner (arama kutusu, kod bloğu, pasif girdi). */
|
|
1028
|
+
readonly 'surface-inset': "#f1faf4";
|
|
1029
|
+
readonly border: "#c0eacf";
|
|
1030
|
+
readonly 'border-strong': "#aaddbf";
|
|
1031
|
+
readonly text: "#010f0b";
|
|
1032
|
+
readonly 'text-2': "#325a4d";
|
|
1033
|
+
readonly 'text-3': "#467060";
|
|
1034
|
+
readonly shell: "#00322a";
|
|
1035
|
+
readonly 'shell-2': "#154c3d";
|
|
1036
|
+
readonly 'shell-3': "#225f4d";
|
|
1041
1037
|
readonly action: "#00322a";
|
|
1042
|
-
readonly 'action-hover': "#
|
|
1043
|
-
readonly 'action-active': "#
|
|
1044
|
-
readonly 'on-action': "#
|
|
1038
|
+
readonly 'action-hover': "#154c3d";
|
|
1039
|
+
readonly 'action-active': "#225f4d";
|
|
1040
|
+
readonly 'on-action': "#fdfefd";
|
|
1045
1041
|
/** Dolgunun SINIRI; açık temada dolgunun kendisi (bkz. `ACTION_LINE`). */
|
|
1046
1042
|
readonly 'action-line': "#00322a";
|
|
1047
1043
|
/** Pasif dolgu; saydamlık DEĞİL kendi rengi (bkz. Button `:disabled`). */
|
|
1048
|
-
readonly 'action-soft': "#
|
|
1044
|
+
readonly 'action-soft': "#aaddbf";
|
|
1049
1045
|
/** PASİF DOLGU ÜZERİNDEKİ METİN. */
|
|
1050
|
-
readonly 'on-action-soft': "#
|
|
1051
|
-
readonly
|
|
1052
|
-
readonly '
|
|
1053
|
-
readonly '
|
|
1054
|
-
readonly '
|
|
1055
|
-
readonly 'on-
|
|
1056
|
-
readonly
|
|
1057
|
-
readonly '
|
|
1058
|
-
readonly '
|
|
1059
|
-
readonly '
|
|
1060
|
-
readonly '
|
|
1061
|
-
readonly '
|
|
1062
|
-
readonly 'on-
|
|
1063
|
-
readonly 'ok-bg': "#
|
|
1064
|
-
readonly 'ok-fg': "#
|
|
1065
|
-
readonly 'ok-line': "#
|
|
1066
|
-
readonly 'warn-bg': "#
|
|
1067
|
-
readonly 'warn-fg': "#
|
|
1068
|
-
readonly 'warn-line': "#
|
|
1069
|
-
readonly 'off-bg': "#
|
|
1070
|
-
readonly 'off-fg': "#
|
|
1071
|
-
readonly 'off-line': "#
|
|
1072
|
-
readonly 'bad-bg': "#
|
|
1073
|
-
readonly 'bad-fg': "#
|
|
1074
|
-
readonly 'bad-line': "#
|
|
1075
|
-
readonly 'oem-bg': "#
|
|
1076
|
-
readonly 'oem-fg': "#
|
|
1077
|
-
readonly 'oem-line': "#
|
|
1078
|
-
readonly 'alt-bg': "#
|
|
1079
|
-
readonly 'alt-fg': "#
|
|
1080
|
-
readonly 'alt-line': "#
|
|
1081
|
-
readonly 'sale-bg': "#
|
|
1082
|
-
readonly 'sale-fg': "#
|
|
1083
|
-
readonly 'red-accent': "#
|
|
1084
|
-
readonly 'green-accent': "#
|
|
1085
|
-
readonly 'green-accent-hover': "#
|
|
1086
|
-
readonly 'on-green': "#
|
|
1087
|
-
readonly star: "#
|
|
1088
|
-
readonly 'danger-solid': "#
|
|
1089
|
-
readonly 'danger-solid-hover': "#
|
|
1090
|
-
readonly 'on-danger': "#
|
|
1091
|
-
readonly 'nav-bg': "#
|
|
1092
|
-
readonly 'nav-bg-2': "#
|
|
1093
|
-
readonly 'nav-fg': "#
|
|
1094
|
-
readonly 'nav-fg-2': "#
|
|
1095
|
-
readonly 'nav-fg-3': "#
|
|
1096
|
-
readonly 'nav-line': "#
|
|
1097
|
-
readonly 'nav-line-strong': "#
|
|
1098
|
-
readonly 'nav-hover': "#
|
|
1099
|
-
readonly 'footer-bg': "#
|
|
1046
|
+
readonly 'on-action-soft': "#1d4238";
|
|
1047
|
+
readonly cart: "#1ba055";
|
|
1048
|
+
readonly 'cart-hover': "#20b360";
|
|
1049
|
+
readonly 'cart-active': "#19934e";
|
|
1050
|
+
readonly 'cart-soft': "#84cb97";
|
|
1051
|
+
readonly 'on-cart': "#021407";
|
|
1052
|
+
readonly role: "#1f7b56";
|
|
1053
|
+
readonly 'role-hover': "#176446";
|
|
1054
|
+
readonly 'role-active': "#115037";
|
|
1055
|
+
readonly 'role-text': "#17704e";
|
|
1056
|
+
readonly 'role-tint': "#d5f6e4";
|
|
1057
|
+
readonly 'role-line': "#93dfba";
|
|
1058
|
+
readonly 'on-role': "#fdfefd";
|
|
1059
|
+
readonly 'ok-bg': "#c2f6cf";
|
|
1060
|
+
readonly 'ok-fg': "#166e3a";
|
|
1061
|
+
readonly 'ok-line': "#7eda99";
|
|
1062
|
+
readonly 'warn-bg': "#f6e4cf";
|
|
1063
|
+
readonly 'warn-fg': "#7c5212";
|
|
1064
|
+
readonly 'warn-line': "#e8b97f";
|
|
1065
|
+
readonly 'off-bg': "#daece5";
|
|
1066
|
+
readonly 'off-fg': "#4d625a";
|
|
1067
|
+
readonly 'off-line': "#afcabf";
|
|
1068
|
+
readonly 'bad-bg': "#f6e2e0";
|
|
1069
|
+
readonly 'bad-fg': "#a91922";
|
|
1070
|
+
readonly 'bad-line': "#e9b3ae";
|
|
1071
|
+
readonly 'oem-bg': "#a7f7c8";
|
|
1072
|
+
readonly 'oem-fg': "#0c5d3a";
|
|
1073
|
+
readonly 'oem-line': "#6ace97";
|
|
1074
|
+
readonly 'alt-bg': "#e9e4f6";
|
|
1075
|
+
readonly 'alt-fg': "#751dc8";
|
|
1076
|
+
readonly 'alt-line': "#c9bae7";
|
|
1077
|
+
readonly 'sale-bg': "#c2f6cf";
|
|
1078
|
+
readonly 'sale-fg': "#166e3a";
|
|
1079
|
+
readonly 'red-accent': "#de1b2c";
|
|
1080
|
+
readonly 'green-accent': "#18904c";
|
|
1081
|
+
readonly 'green-accent-hover': "#12783e";
|
|
1082
|
+
readonly 'on-green': "#021407";
|
|
1083
|
+
readonly star: "#8c6a11";
|
|
1084
|
+
readonly 'danger-solid': "#c21625";
|
|
1085
|
+
readonly 'danger-solid-hover': "#a2111d";
|
|
1086
|
+
readonly 'on-danger': "#fdfefd";
|
|
1087
|
+
readonly 'nav-bg': "#fdfefd";
|
|
1088
|
+
readonly 'nav-bg-2': "#e9f7ed";
|
|
1089
|
+
readonly 'nav-fg': "#010f0b";
|
|
1090
|
+
readonly 'nav-fg-2': "#325a4d";
|
|
1091
|
+
readonly 'nav-fg-3': "#467060";
|
|
1092
|
+
readonly 'nav-line': "#d5f0de";
|
|
1093
|
+
readonly 'nav-line-strong': "#aaddbf";
|
|
1094
|
+
readonly 'nav-hover': "#e9f7ed";
|
|
1095
|
+
readonly 'footer-bg': "#e9f7ed";
|
|
1100
1096
|
readonly 'band-bg': "#00322a";
|
|
1101
|
-
readonly 'band-fg': "#
|
|
1102
|
-
readonly 'band-fg-2': "#
|
|
1103
|
-
|
|
1097
|
+
readonly 'band-fg': "#e9f7ed";
|
|
1098
|
+
readonly 'band-fg-2': "#8abaa1";
|
|
1099
|
+
/**
|
|
1100
|
+
* Bandın ÜÇÜNCÜ metin kademesi ve imza vurgusu.
|
|
1101
|
+
*
|
|
1102
|
+
* <p>Panelin kenar çubuğu rayı bu ikisini bir dönem SABİT HEX olarak
|
|
1103
|
+
* taşıyordu (`#799a8f`, `#43ff9c`) — uygulamada kalan son renk
|
|
1104
|
+
* literalleriydi ve paletten bağımsız hareket ediyorlardı.
|
|
1105
|
+
*/
|
|
1106
|
+
readonly 'band-fg-3': "#79a790";
|
|
1107
|
+
readonly 'band-accent': "#43ff9c";
|
|
1108
|
+
readonly 'band-line': "#143f34";
|
|
1104
1109
|
readonly 'band-hover': string;
|
|
1105
1110
|
readonly 'shadow-xs': `0 1px 2px ${string}`;
|
|
1106
1111
|
readonly 'shadow-sm': `0 1px 2px ${string}, 0 1px 3px ${string}`;
|
|
@@ -1111,22 +1116,22 @@ export declare const LIGHT_THEME: {
|
|
|
1111
1116
|
readonly 'shadow-up': `0 -2px 4px ${string}, 0 -8px 24px ${string}`;
|
|
1112
1117
|
/** Odak halkası MAVİ: odak bir gezinme olayıdır, bir dönüşüm değil. */
|
|
1113
1118
|
readonly ring: `0 0 0 3px ${string}`;
|
|
1114
|
-
readonly 'ring-color': "#
|
|
1119
|
+
readonly 'ring-color': "#1f7b56";
|
|
1115
1120
|
readonly 'ring-danger': `0 0 0 3px ${string}`;
|
|
1116
1121
|
readonly 'ring-ok': `0 0 0 4px ${string}`;
|
|
1117
1122
|
readonly scrim: string;
|
|
1118
1123
|
readonly 'scrim-soft': string;
|
|
1119
1124
|
readonly glass: string;
|
|
1120
|
-
readonly 'glass-solid': "#
|
|
1121
|
-
readonly 'on-scrim': "#
|
|
1122
|
-
readonly 'skeleton-a': "#
|
|
1123
|
-
readonly 'skeleton-b': "#
|
|
1125
|
+
readonly 'glass-solid': "#fdfefd";
|
|
1126
|
+
readonly 'on-scrim': "#fdfefd";
|
|
1127
|
+
readonly 'skeleton-a': "#e9f7ed";
|
|
1128
|
+
readonly 'skeleton-b': "#f7fcf8";
|
|
1124
1129
|
readonly track: string;
|
|
1125
1130
|
/** Görsel yer tutucu (medya yoksa). */
|
|
1126
|
-
readonly 'media-bg': "#
|
|
1131
|
+
readonly 'media-bg': "#e9f7ed";
|
|
1127
1132
|
readonly 'glow-1': string;
|
|
1128
1133
|
readonly 'glow-2': string;
|
|
1129
|
-
readonly 'glow-
|
|
1134
|
+
readonly 'glow-cart': string;
|
|
1130
1135
|
};
|
|
1131
1136
|
|
|
1132
1137
|
declare type LinkProps = BaseProps_4 & {
|
|
@@ -1182,26 +1187,46 @@ export declare const METRIC_TOKENS: {
|
|
|
1182
1187
|
readonly 'radius-lg': "12px";
|
|
1183
1188
|
readonly 'radius-xl': "16px";
|
|
1184
1189
|
readonly 'radius-pill': "999px";
|
|
1190
|
+
/**
|
|
1191
|
+
* YOĞUNLUK ÇARPANLARI — akışkan ölçeğin üzerine binen tek ayar.
|
|
1192
|
+
*
|
|
1193
|
+
* <p>Varsayılan `1`, yani hiçbir şeyi değiştirmez; `data-hanui-density`
|
|
1194
|
+
* ya da tüketicinin kendi metrik ezmesi bunları düşürür.
|
|
1195
|
+
*/
|
|
1196
|
+
readonly 'type-scale': "1";
|
|
1197
|
+
readonly 'space-scale': "1";
|
|
1185
1198
|
readonly 'space-0': "0";
|
|
1186
1199
|
readonly 'space-1': "4px";
|
|
1187
1200
|
readonly 'space-2': "8px";
|
|
1188
|
-
readonly 'space-3':
|
|
1189
|
-
readonly 'space-4':
|
|
1190
|
-
readonly 'space-5':
|
|
1191
|
-
readonly 'space-6':
|
|
1192
|
-
readonly 'space-7':
|
|
1193
|
-
readonly 'space-8':
|
|
1194
|
-
readonly 'space-9':
|
|
1195
|
-
readonly 'font-size-2xs':
|
|
1196
|
-
readonly 'font-size-xs':
|
|
1197
|
-
readonly 'font-size-sm':
|
|
1198
|
-
readonly 'font-size-base':
|
|
1199
|
-
readonly 'font-size-body':
|
|
1200
|
-
readonly 'font-size-lg':
|
|
1201
|
-
readonly 'font-size-xl':
|
|
1202
|
-
readonly 'font-size-2xl':
|
|
1203
|
-
readonly 'font-size-3xl':
|
|
1204
|
-
readonly 'font-size-4xl':
|
|
1201
|
+
readonly 'space-3': string;
|
|
1202
|
+
readonly 'space-4': string;
|
|
1203
|
+
readonly 'space-5': string;
|
|
1204
|
+
readonly 'space-6': string;
|
|
1205
|
+
readonly 'space-7': string;
|
|
1206
|
+
readonly 'space-8': string;
|
|
1207
|
+
readonly 'space-9': string;
|
|
1208
|
+
readonly 'font-size-2xs': string;
|
|
1209
|
+
readonly 'font-size-xs': string;
|
|
1210
|
+
readonly 'font-size-sm': string;
|
|
1211
|
+
readonly 'font-size-base': string;
|
|
1212
|
+
readonly 'font-size-body': string;
|
|
1213
|
+
readonly 'font-size-lg': string;
|
|
1214
|
+
readonly 'font-size-xl': string;
|
|
1215
|
+
readonly 'font-size-2xl': string;
|
|
1216
|
+
readonly 'font-size-3xl': string;
|
|
1217
|
+
readonly 'font-size-4xl': string;
|
|
1218
|
+
/**
|
|
1219
|
+
* FORM DENETİMİ PUNTOSU — ölçekten AYRI ve 16px'in altına inmez.
|
|
1220
|
+
*
|
|
1221
|
+
* <p>⚠ iOS Safari, hesaplanan puntosu 16px'in ALTINDA olan bir `input`a
|
|
1222
|
+
* odaklanıldığında sayfayı zorla yakınlaştırır ve geri çıkmaz. `font-size-base`
|
|
1223
|
+
* akışkan olunca dar ekranda 15px'e iniyor, yani bu düzeltme olmadan
|
|
1224
|
+
* **telefonda her form alanı sayfayı zıplatırdı.**
|
|
1225
|
+
*
|
|
1226
|
+
* <p>`max()` kullanılıyor çünkü ölçek büyüdüğünde denetim de büyümeli;
|
|
1227
|
+
* sabit `16px` yazmak üst uçta alanı ölçeğin gerisinde bırakırdı.
|
|
1228
|
+
*/
|
|
1229
|
+
readonly 'font-size-control': `max(16px, ${string})`;
|
|
1205
1230
|
readonly 'leading-none': "1";
|
|
1206
1231
|
readonly 'leading-tight': "1.16";
|
|
1207
1232
|
readonly 'leading-snug': "1.35";
|