@ahmetilhn/hanui 3.0.0 → 3.2.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 +15 -15
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +21 -3
- package/build/index.js +3126 -2969
- package/build/index.js.map +1 -1
- package/build/styles.css +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -290,6 +290,7 @@ export declare const Checkbox: typeof Checkbox_2;
|
|
|
290
290
|
/** Onay kutusu. */
|
|
291
291
|
declare const Checkbox_2: ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
292
292
|
label: ReactNode;
|
|
293
|
+
/** Etiketin altındaki açıklama; `aria-describedby` ile bağlanır. */
|
|
293
294
|
hint?: string;
|
|
294
295
|
testId?: string;
|
|
295
296
|
} & RefAttributes<HTMLInputElement>>;
|
|
@@ -360,7 +361,7 @@ declare type CircleProps = {
|
|
|
360
361
|
export declare const Combobox: typeof Combobox_2;
|
|
361
362
|
|
|
362
363
|
/** Aranabilir seçim kutusu. */
|
|
363
|
-
declare const Combobox_2: <T extends string>({ options, value, onChange, labels, isSearchHidden, onSearch, isLoading, isDisabled, isClearable, icon, id, className, testId, "aria-describedby": describedBy, "aria-invalid": isInvalid, }: ComboboxProps<T>) => JSX.Element;
|
|
364
|
+
declare const Combobox_2: <T extends string>({ options, value, onChange, labels, isSearchHidden, onSearch, isLoading, isDisabled, isClearable, icon, id, required, className, testId, "aria-describedby": describedBy, "aria-invalid": isInvalid, }: ComboboxProps<T>) => JSX.Element;
|
|
364
365
|
|
|
365
366
|
/** Bileşenin çizdiği metinler. */
|
|
366
367
|
export declare type ComboboxLabels = {
|
|
@@ -406,6 +407,8 @@ declare type ComboboxProps<T extends string> = {
|
|
|
406
407
|
/** Tetikleyicinin solundaki ikon. */
|
|
407
408
|
icon?: ReactNode;
|
|
408
409
|
id?: string;
|
|
410
|
+
/** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi. Bkz. `Select.required`. */
|
|
411
|
+
required?: boolean;
|
|
409
412
|
'aria-describedby'?: string;
|
|
410
413
|
'aria-invalid'?: boolean;
|
|
411
414
|
className?: string;
|
|
@@ -1429,6 +1432,8 @@ declare type Props_14 = {
|
|
|
1429
1432
|
maxTags?: number;
|
|
1430
1433
|
isDisabled?: boolean;
|
|
1431
1434
|
id?: string;
|
|
1435
|
+
/** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi. Bkz. `Select.required`. */
|
|
1436
|
+
required?: boolean;
|
|
1432
1437
|
'aria-describedby'?: string;
|
|
1433
1438
|
'aria-invalid'?: boolean;
|
|
1434
1439
|
className?: string;
|
|
@@ -2101,6 +2106,18 @@ declare type Props_8<T extends string> = {
|
|
|
2101
2106
|
align?: 'start' | 'end';
|
|
2102
2107
|
isDisabled?: boolean;
|
|
2103
2108
|
id?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* Zorunluluk — `Field`in `FieldChildProps` sözleşmesinden gelir.
|
|
2111
|
+
*
|
|
2112
|
+
* ⚠ Bileşen `...rest` YAYMIYOR, yani `Props`ta bildirilmeyen her alan
|
|
2113
|
+
* sessizce buharlaşır. `required` bir dönem tam olarak öyleydi: `<Field
|
|
2114
|
+
* isRequired>{props => <Select {...props} …/>}</Field>` yazan çağıran
|
|
2115
|
+
* görsel `*` ve sr-only "(zorunlu)" alıyor ama KONTROLDE hiçbir işaret
|
|
2116
|
+
* olmuyordu — doğrudan kutuya atlayan ekran okuyucu kullanıcısı alanın
|
|
2117
|
+
* zorunlu olduğunu hiç duymuyordu. `props` taze bir nesne literali olmadığı
|
|
2118
|
+
* için TypeScript'in fazla-özellik denetimi de uyarmıyordu.
|
|
2119
|
+
*/
|
|
2120
|
+
required?: boolean;
|
|
2104
2121
|
'aria-describedby'?: string;
|
|
2105
2122
|
'aria-invalid'?: boolean;
|
|
2106
2123
|
className?: string;
|
|
@@ -2128,6 +2145,7 @@ export declare const Radio: typeof Radio_2;
|
|
|
2128
2145
|
/** Radyo düğmesi. */
|
|
2129
2146
|
declare const Radio_2: ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
2130
2147
|
label: ReactNode;
|
|
2148
|
+
/** Etiketin altındaki açıklama; `aria-describedby` ile bağlanır. */
|
|
2131
2149
|
hint?: string;
|
|
2132
2150
|
/** Sağda gösterilen sonuç adedi (filtre listelerinde). */
|
|
2133
2151
|
count?: number;
|
|
@@ -2230,7 +2248,7 @@ export declare type SegmentOption<T extends string = string> = {
|
|
|
2230
2248
|
export declare const Select: typeof Select_2;
|
|
2231
2249
|
|
|
2232
2250
|
/** Seçim kutusu. */
|
|
2233
|
-
declare const Select_2: <T extends string>({ options, value, onChange, label, placeholder, closeLabel, icon, size, align, isDisabled, id, className, testId, "aria-describedby": describedBy, "aria-invalid": isInvalid, }: Props_8<T>) => JSX.Element;
|
|
2251
|
+
declare const Select_2: <T extends string>({ options, value, onChange, label, placeholder, closeLabel, icon, size, align, isDisabled, id, className, testId, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, }: Props_8<T>) => JSX.Element;
|
|
2234
2252
|
|
|
2235
2253
|
export declare type SelectOption<T extends string = string> = {
|
|
2236
2254
|
value: T;
|
|
@@ -2367,7 +2385,7 @@ declare const Tabs_2: FC<Props_37>;
|
|
|
2367
2385
|
export declare const TagInput: typeof TagInput_2;
|
|
2368
2386
|
|
|
2369
2387
|
/** Etiket girdisi — yazılan metni kaldırılabilir çiplere çevirir. */
|
|
2370
|
-
declare const TagInput_2: ({ values, onChange, label, placeholder, removeLabel, separators, maxTags, isDisabled, id, className, testId, "aria-describedby": describedBy, "aria-invalid": isInvalid, }: Props_14) => JSX.Element;
|
|
2388
|
+
declare const TagInput_2: ({ values, onChange, label, placeholder, removeLabel, separators, maxTags, isDisabled, id, required, className, testId, "aria-describedby": describedBy, "aria-invalid": isInvalid, }: Props_14) => JSX.Element;
|
|
2371
2389
|
|
|
2372
2390
|
export declare const Textarea: typeof Textarea_2;
|
|
2373
2391
|
|