@customafk/lunas-ui 0.2.44 → 0.2.45
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/{alert-B02cVKWp.d.cts → alert-C32Lwu87.d.cts} +6 -6
- package/dist/{alert-DHSm8bMn.d.mts → alert-Cx-dxCP5.d.mts} +6 -6
- package/dist/{badge-BxSbkHQL.d.mts → badge-B6WaU_xD.d.mts} +8 -8
- package/dist/{badge-zrAIDd-9.d.cts → badge-C-IINKGX.d.cts} +8 -8
- package/dist/{button-D3QvCdr6.d.cts → button-9rG12f55.d.cts} +8 -8
- package/dist/{button-D3d7M90P.d.mts → button-BrRUQsVc.d.mts} +6 -6
- package/dist/data-display/statistic.d.cts +4 -4
- package/dist/data-display/statistic.d.mts +6 -6
- package/dist/{dialog-DEmYNufN.d.cts → dialog-C44AIKLb.d.cts} +12 -12
- package/dist/{dialog-Bd5cOZia.d.mts → dialog-CsltUGHB.d.mts} +12 -12
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +27 -27
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +27 -27
- package/dist/features/descriptions/index.d.cts +7 -7
- package/dist/features/descriptions/index.d.mts +4 -4
- package/dist/features/search-modal/index.d.cts +2 -2
- package/dist/features/search-modal/index.d.mts +2 -2
- package/dist/features/tables/index.d.cts +1 -1
- package/dist/features/tables/index.d.mts +2 -2
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.d.cts +2 -2
- package/dist/features/tanstack-form/index.d.mts +2 -2
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/features/text-editor/index.d.cts +1 -1
- package/dist/features/text-editor/index.d.mts +1 -1
- package/dist/{index-DNozPoRR.d.mts → index-Bpsn3Z_G.d.cts} +7 -7
- package/dist/{index-BhiLHeUb.d.cts → index-Cuhf_ZXn.d.cts} +30 -30
- package/dist/{index-Cl_7tlH_.d.mts → index-D8d60P7q.d.cts} +310 -951
- package/dist/{index-DriviV-i.d.mts → index-DgHXQffp.d.mts} +30 -30
- package/dist/{index-CiG1i12w.d.cts → index-DrmdHOJL.d.mts} +3 -3
- package/dist/{index-DSciiDhn.d.cts → index-ks5jfaQb.d.mts} +15 -656
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +1 -1
- package/dist/{input-CD4zf7t1.d.cts → input-ff6sQNN4.d.cts} +7 -7
- package/dist/{input-BtuZm0BQ.d.mts → input-hFHi7RiN.d.mts} +7 -7
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/flex.d.mts +6 -6
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.mts +2 -2
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +2 -2
- package/dist/pages/LoginPage.d.cts +2 -2
- package/dist/pages/LoginPage.d.mts +2 -2
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotAuthorized.d.mts +2 -2
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +2 -2
- package/dist/pages/RegisterPage.d.cts +2 -2
- package/dist/pages/RegisterPage.d.mts +2 -2
- package/dist/pages/VerifyEmailPage.d.cts +2 -2
- package/dist/pages/VerifyEmailPage.d.mts +2 -2
- package/dist/{tanstack-form-DT1TqIDl.mjs → tanstack-form-C_pyibTQ.mjs} +2 -2
- package/dist/{tanstack-form-DT1TqIDl.mjs.map → tanstack-form-C_pyibTQ.mjs.map} +1 -1
- package/dist/{tanstack-form-DatI41wz.cjs → tanstack-form-DoI86Ezs.cjs} +2 -2
- package/dist/{tanstack-form-DatI41wz.cjs.map → tanstack-form-DoI86Ezs.cjs.map} +1 -1
- package/dist/typography/paragraph.d.cts +5 -5
- package/dist/typography/paragraph.d.mts +5 -5
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.mts +12 -12
- package/dist/ui/alert.d.cts +1 -1
- package/dist/ui/alert.d.mts +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.mts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.mts +4 -4
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.mts +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +8 -8
- package/dist/ui/button-group.d.cts +6 -6
- package/dist/ui/button-group.d.mts +6 -6
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.mts +4 -4
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.mts +7 -7
- package/dist/ui/checkbox.d.cts +2 -2
- package/dist/ui/checkbox.d.mts +2 -2
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.mts +4 -4
- package/dist/ui/command.d.cts +11 -11
- package/dist/ui/command.d.mts +11 -11
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.mts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.mts +1 -1
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.mts +11 -11
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.mts +9 -9
- package/dist/ui/field.d.cts +23 -23
- package/dist/ui/field.d.mts +23 -23
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.mts +2 -2
- package/dist/ui/form.d.cts +10 -10
- package/dist/ui/form.d.mts +10 -10
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.mts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.mts +3 -3
- package/dist/ui/item.d.cts +13 -13
- package/dist/ui/item.d.mts +16 -16
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.mts +17 -17
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.mts +3 -3
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.mts +11 -11
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.mts +9 -9
- package/dist/ui/popover.d.cts +6 -6
- package/dist/ui/popover.d.mts +6 -6
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.mts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.mts +3 -3
- package/dist/ui/resizable.d.cts +9 -9
- package/dist/ui/resizable.d.mts +9 -9
- package/dist/ui/scroll-area.d.cts +5 -5
- package/dist/ui/scroll-area.d.mts +5 -5
- package/dist/ui/select.d.cts +9 -9
- package/dist/ui/select.d.mts +9 -9
- package/dist/ui/separator.d.cts +2 -2
- package/dist/ui/separator.d.mts +2 -2
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.mts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.mts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.mts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.mts +2 -2
- package/dist/ui/table.d.cts +17 -17
- package/dist/ui/table.d.mts +17 -17
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.mts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/toggle-group.d.cts +3 -3
- package/dist/ui/toggle-group.d.mts +3 -3
- package/dist/ui/toggle.d.cts +3 -3
- package/dist/ui/toggle.d.mts +5 -5
- package/dist/ui/tooltip.d.cts +5 -5
- package/dist/ui/tooltip.d.mts +5 -5
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react642 from "react";
|
|
2
|
-
import * as class_variance_authority_types22 from "class-variance-authority/types";
|
|
3
2
|
import * as class_variance_authority0 from "class-variance-authority";
|
|
4
3
|
import { VariantProps } from "class-variance-authority";
|
|
5
4
|
import { Label } from "radix-ui";
|
|
6
|
-
import * as _tanstack_form_core0 from "@tanstack/form-core";
|
|
7
5
|
import * as _tanstack_react_form0 from "@tanstack/react-form";
|
|
6
|
+
import * as class_variance_authority_types23 from "class-variance-authority/types";
|
|
7
|
+
import * as _tanstack_form_core0 from "@tanstack/form-core";
|
|
8
8
|
|
|
9
9
|
//#region packages/components/features/tanstack-form/types.d.ts
|
|
10
10
|
/** Layout axis for a field's label–input arrangement. */
|
|
@@ -419,7 +419,7 @@ declare function ArrayHeaderRow({
|
|
|
419
419
|
className,
|
|
420
420
|
children
|
|
421
421
|
}: ArrayHeaderRowProps): react642.JSX.Element;
|
|
422
|
-
type Props
|
|
422
|
+
type Props<T> = {
|
|
423
423
|
/**
|
|
424
424
|
* Shape of a brand-new empty row appended when the user clicks "Add row".
|
|
425
425
|
*/
|
|
@@ -464,527 +464,12 @@ declare function SimpleArrayField<T>({
|
|
|
464
464
|
children,
|
|
465
465
|
addLabel,
|
|
466
466
|
className
|
|
467
|
-
}: Props
|
|
468
|
-
//#endregion
|
|
469
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-boolean-field.d.ts
|
|
470
|
-
type Props$8 = {
|
|
471
|
-
label?: string;
|
|
472
|
-
required?: boolean;
|
|
473
|
-
disabled?: boolean;
|
|
474
|
-
variant?: 'checkbox' | 'switch';
|
|
475
|
-
};
|
|
476
|
-
declare const SimpleBooleanField: React.FC<Props$8>;
|
|
477
|
-
//#endregion
|
|
478
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-combobox-field.d.ts
|
|
479
|
-
type Props$7 = {
|
|
480
|
-
label?: string;
|
|
481
|
-
placeholder?: string;
|
|
482
|
-
required?: boolean;
|
|
483
|
-
disabled?: boolean;
|
|
484
|
-
options: Array<{
|
|
485
|
-
value: string;
|
|
486
|
-
label: string;
|
|
487
|
-
}>;
|
|
488
|
-
};
|
|
489
|
-
declare const SimpleComboboxField: React.FC<Props$7>;
|
|
490
|
-
//#endregion
|
|
491
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-date-field.d.ts
|
|
492
|
-
type Props$6 = {
|
|
493
|
-
label?: string;
|
|
494
|
-
placeholder?: string;
|
|
495
|
-
required?: boolean;
|
|
496
|
-
disabled?: boolean;
|
|
497
|
-
minDate?: Date;
|
|
498
|
-
maxDate?: Date;
|
|
499
|
-
};
|
|
500
|
-
declare const SimpleDateField: React.FC<Props$6>;
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-radio-group-field.d.ts
|
|
503
|
-
type Props$5 = {
|
|
504
|
-
label?: string;
|
|
505
|
-
required?: boolean;
|
|
506
|
-
disabled?: boolean;
|
|
507
|
-
options: Array<{
|
|
508
|
-
value: string;
|
|
509
|
-
label: string;
|
|
510
|
-
}>;
|
|
511
|
-
orientation?: 'horizontal' | 'vertical';
|
|
512
|
-
};
|
|
513
|
-
declare const SimpleRadioGroupField: React.FC<Props$5>;
|
|
514
|
-
//#endregion
|
|
515
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-email-field.d.ts
|
|
516
|
-
type Props$4 = {
|
|
517
|
-
label?: string;
|
|
518
|
-
placeholder?: string;
|
|
519
|
-
required?: boolean;
|
|
520
|
-
maxLength?: number;
|
|
521
|
-
disabled?: boolean;
|
|
522
|
-
};
|
|
523
|
-
declare const SimpleEmailField: React.FC<Props$4>;
|
|
524
|
-
//#endregion
|
|
525
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-number-field.d.ts
|
|
526
|
-
type Props$3 = {
|
|
527
|
-
label?: string;
|
|
528
|
-
placeholder?: string;
|
|
529
|
-
required?: boolean;
|
|
530
|
-
unit?: string;
|
|
531
|
-
allowNegative?: boolean;
|
|
532
|
-
disabled?: boolean;
|
|
533
|
-
};
|
|
534
|
-
declare const SimpleNumberField: React.FC<Props$3>;
|
|
535
|
-
//#endregion
|
|
536
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-password-field.d.ts
|
|
537
|
-
type Props$2 = {
|
|
538
|
-
label?: string;
|
|
539
|
-
placeholder?: string;
|
|
540
|
-
required?: boolean;
|
|
541
|
-
disabled?: boolean;
|
|
542
|
-
};
|
|
543
|
-
declare const SimplePasswordField: React.FC<Props$2>;
|
|
544
|
-
//#endregion
|
|
545
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-select-field.d.ts
|
|
546
|
-
type Props$1 = {
|
|
547
|
-
label?: string;
|
|
548
|
-
placeholder?: string;
|
|
549
|
-
required?: boolean;
|
|
550
|
-
options: Array<{
|
|
551
|
-
value: string;
|
|
552
|
-
label: string;
|
|
553
|
-
}>;
|
|
554
|
-
};
|
|
555
|
-
declare const SimpleSelectField: React.FC<Props$1>;
|
|
556
|
-
//#endregion
|
|
557
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-textarea-field.d.ts
|
|
558
|
-
type Props = {
|
|
559
|
-
label?: string;
|
|
560
|
-
placeholder?: string;
|
|
561
|
-
required?: boolean;
|
|
562
|
-
maxLength?: number;
|
|
563
|
-
rows?: number;
|
|
564
|
-
disabled?: boolean;
|
|
565
|
-
};
|
|
566
|
-
declare const SimpleTextareaField: React.FC<Props>;
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region packages/components/features/tanstack-form/components/atoms/simple-text-field.d.ts
|
|
569
|
-
declare const SimpleTextField: React.FC<SimpleTextFieldProps>;
|
|
570
|
-
//#endregion
|
|
571
|
-
//#region packages/components/features/tanstack-form/components/fields/checkbox-field.d.ts
|
|
572
|
-
/**
|
|
573
|
-
* A TanStack Form-connected checkbox group field that manages an array of selected string values,
|
|
574
|
-
* supporting multi-selection and submission-state disabling.
|
|
575
|
-
*
|
|
576
|
-
* @example
|
|
577
|
-
* import { CheckboxField } from '@customafk/lunas-ui/features/tanstack-form';
|
|
578
|
-
*
|
|
579
|
-
* <form.Field name="roles">
|
|
580
|
-
* {() => (
|
|
581
|
-
* <CheckboxField
|
|
582
|
-
* label="Roles"
|
|
583
|
-
* options={[
|
|
584
|
-
* { value: 'admin', label: 'Admin' },
|
|
585
|
-
* { value: 'editor', label: 'Editor' },
|
|
586
|
-
* ]}
|
|
587
|
-
* helperText="Select one or more roles"
|
|
588
|
-
* />
|
|
589
|
-
* )}
|
|
590
|
-
* </form.Field>
|
|
591
|
-
*/
|
|
592
|
-
declare const CheckboxField: React.FC<CheckboxFieldProps>;
|
|
593
|
-
//#endregion
|
|
594
|
-
//#region packages/components/features/tanstack-form/components/fields/combobox-field.d.ts
|
|
595
|
-
declare const ComboboxField: react642.NamedExoticComponent<ComboboxFieldProps>;
|
|
596
|
-
//#endregion
|
|
597
|
-
//#region packages/components/features/tanstack-form/components/fields/date-field.d.ts
|
|
598
|
-
declare const DateField: react642.NamedExoticComponent<DateFieldProps>;
|
|
599
|
-
//#endregion
|
|
600
|
-
//#region packages/components/features/tanstack-form/components/fields/email-field.d.ts
|
|
601
|
-
/**
|
|
602
|
-
* A TanStack Form-connected email input field with an at-sign prefix icon,
|
|
603
|
-
* optional clear button, and inline validation error display.
|
|
604
|
-
*
|
|
605
|
-
* @example
|
|
606
|
-
* import { EmailField } from '@customafk/lunas-ui/features/tanstack-form';
|
|
607
|
-
*
|
|
608
|
-
* <form.Field name="email">
|
|
609
|
-
* {() => (
|
|
610
|
-
* <EmailField
|
|
611
|
-
* label="Email address"
|
|
612
|
-
* placeholder="you@example.com"
|
|
613
|
-
* required
|
|
614
|
-
* />
|
|
615
|
-
* )}
|
|
616
|
-
* </form.Field>
|
|
617
|
-
*/
|
|
618
|
-
declare const EmailField: React.FC<EmailFieldProps>;
|
|
619
|
-
//#endregion
|
|
620
|
-
//#region packages/components/features/tanstack-form/components/fields/number-field.d.ts
|
|
621
|
-
/**
|
|
622
|
-
* A TanStack Form-connected numeric input field supporting rounding rules,
|
|
623
|
-
* decimal precision, unit labels, and submission-state feedback.
|
|
624
|
-
*
|
|
625
|
-
* @example
|
|
626
|
-
* import { NumberField } from '@customafk/lunas-ui/features/tanstack-form';
|
|
627
|
-
*
|
|
628
|
-
* <form.Field name="quantity">
|
|
629
|
-
* {() => (
|
|
630
|
-
* <NumberField
|
|
631
|
-
* label="Quantity"
|
|
632
|
-
* placeholder="0"
|
|
633
|
-
* unit="pcs"
|
|
634
|
-
* decimalPlaces={2}
|
|
635
|
-
* required
|
|
636
|
-
* />
|
|
637
|
-
* )}
|
|
638
|
-
* </form.Field>
|
|
639
|
-
*/
|
|
640
|
-
declare const NumberField: react642.NamedExoticComponent<NumberFieldProps>;
|
|
641
|
-
//#endregion
|
|
642
|
-
//#region packages/components/features/tanstack-form/components/fields/password-field.d.ts
|
|
643
|
-
/**
|
|
644
|
-
* A TanStack Form-connected password input field with a show/hide toggle button
|
|
645
|
-
* and inline validation error display.
|
|
646
|
-
*
|
|
647
|
-
* @example
|
|
648
|
-
* import { PasswordField } from '@customafk/lunas-ui/features/tanstack-form';
|
|
649
|
-
*
|
|
650
|
-
* <form.Field name="password">
|
|
651
|
-
* {() => (
|
|
652
|
-
* <PasswordField
|
|
653
|
-
* label="Password"
|
|
654
|
-
* placeholder="Enter your password"
|
|
655
|
-
* helperText="Must be at least 8 characters"
|
|
656
|
-
* />
|
|
657
|
-
* )}
|
|
658
|
-
* </form.Field>
|
|
659
|
-
*/
|
|
660
|
-
declare const PasswordField: React.FC<PasswordFieldProps>;
|
|
661
|
-
//#endregion
|
|
662
|
-
//#region packages/components/features/tanstack-form/components/fields/radio-group-field.d.ts
|
|
663
|
-
declare const RadioGroupField: React.FC<RadioGroupFieldProps>;
|
|
664
|
-
//#endregion
|
|
665
|
-
//#region packages/components/features/tanstack-form/components/fields/select-field.d.ts
|
|
666
|
-
declare const SelectField: react642.NamedExoticComponent<SelectFieldProps>;
|
|
667
|
-
//#endregion
|
|
668
|
-
//#region packages/components/features/tanstack-form/components/fields/switch-field.d.ts
|
|
669
|
-
/**
|
|
670
|
-
* A TanStack Form-connected boolean toggle field rendered as a labelled switch,
|
|
671
|
-
* positioned absolutely in the top-right corner of the field card.
|
|
672
|
-
*
|
|
673
|
-
* @example
|
|
674
|
-
* import { SwitchField } from '@customafk/lunas-ui/features/tanstack-form';
|
|
675
|
-
*
|
|
676
|
-
* <form.Field name="notifications">
|
|
677
|
-
* {() => (
|
|
678
|
-
* <SwitchField
|
|
679
|
-
* label="Enable notifications"
|
|
680
|
-
* description="Receive email alerts for important events"
|
|
681
|
-
* helperText="You can change this at any time"
|
|
682
|
-
* />
|
|
683
|
-
* )}
|
|
684
|
-
* </form.Field>
|
|
685
|
-
*/
|
|
686
|
-
declare const SwitchField: React.FC<SwitchFieldProps>;
|
|
687
|
-
//#endregion
|
|
688
|
-
//#region packages/components/features/tanstack-form/components/fields/text-field.d.ts
|
|
689
|
-
/**
|
|
690
|
-
* A TanStack Form-connected single-line text input with label, validation, and optional features.
|
|
691
|
-
*
|
|
692
|
-
* Must be rendered inside an `AppField` context from `useTanStackForm`.
|
|
693
|
-
* The field value type is `string | null` — `null` represents an empty/unset state.
|
|
694
|
-
*
|
|
695
|
-
* ---
|
|
696
|
-
*
|
|
697
|
-
* **Basic usage**
|
|
698
|
-
* @example
|
|
699
|
-
* const { AppField } = useTanStackForm({ defaultValues: { name: null } });
|
|
700
|
-
*
|
|
701
|
-
* <AppField name="name">
|
|
702
|
-
* {field => <field.TextField label="Full name" placeholder="Nguyễn Văn A" />}
|
|
703
|
-
* </AppField>
|
|
704
|
-
*
|
|
705
|
-
* ---
|
|
706
|
-
*
|
|
707
|
-
* **With validation**
|
|
708
|
-
* @example
|
|
709
|
-
* <AppField
|
|
710
|
-
* name="username"
|
|
711
|
-
* validators={{ onChange: ({ value }) => !value ? 'Bắt buộc' : undefined }}
|
|
712
|
-
* >
|
|
713
|
-
* {field => <field.TextField label="Username" required />}
|
|
714
|
-
* </AppField>
|
|
715
|
-
*
|
|
716
|
-
* ---
|
|
717
|
-
*
|
|
718
|
-
* **With character counter and max length**
|
|
719
|
-
* @example
|
|
720
|
-
* <AppField name="bio">
|
|
721
|
-
* {field => (
|
|
722
|
-
* <field.TextField
|
|
723
|
-
* label="Bio"
|
|
724
|
-
* counter
|
|
725
|
-
* maxLength={160}
|
|
726
|
-
* placeholder="Giới thiệu bản thân…"
|
|
727
|
-
* />
|
|
728
|
-
* )}
|
|
729
|
-
* </AppField>
|
|
730
|
-
*
|
|
731
|
-
* ---
|
|
732
|
-
*
|
|
733
|
-
* **With clear button and helper note**
|
|
734
|
-
* @example
|
|
735
|
-
* <AppField name="search">
|
|
736
|
-
* {field => (
|
|
737
|
-
* <field.TextField
|
|
738
|
-
* label="Tìm kiếm"
|
|
739
|
-
* showClearButton
|
|
740
|
-
* helperText="Nhập ít nhất 3 ký tự để tìm kiếm."
|
|
741
|
-
* />
|
|
742
|
-
* )}
|
|
743
|
-
* </AppField>
|
|
744
|
-
*
|
|
745
|
-
* ---
|
|
746
|
-
*
|
|
747
|
-
* **Horizontal layout**
|
|
748
|
-
* @example
|
|
749
|
-
* <AppField name="code">
|
|
750
|
-
* {field => (
|
|
751
|
-
* <field.TextField
|
|
752
|
-
* label="Mã sản phẩm"
|
|
753
|
-
* orientation="horizontal"
|
|
754
|
-
* tooltip="Mã duy nhất định danh sản phẩm trong hệ thống."
|
|
755
|
-
* />
|
|
756
|
-
* )}
|
|
757
|
-
* </AppField>
|
|
758
|
-
*/
|
|
759
|
-
declare const TextField: react642.NamedExoticComponent<TextFieldProps>;
|
|
760
|
-
//#endregion
|
|
761
|
-
//#region packages/components/features/tanstack-form/components/fields/textarea-field.d.ts
|
|
762
|
-
declare const TextareaField: react642.NamedExoticComponent<TextareaFieldProps>;
|
|
763
|
-
//#endregion
|
|
764
|
-
//#region packages/components/features/tanstack-form/components/fields/text-editor-field.d.ts
|
|
765
|
-
declare const TextEditorField: React.FC<TextEditorFieldProps>;
|
|
766
|
-
//#endregion
|
|
767
|
-
//#region packages/components/features/tanstack-form/components/forms/action-submit.d.ts
|
|
768
|
-
/**
|
|
769
|
-
* Renders a submit button wired to the current TanStack Form context, automatically handling loading and disabled states.
|
|
770
|
-
*
|
|
771
|
-
* @example
|
|
772
|
-
* import { TanStackActionSubmit } from '@customafk/lunas-ui/features/tanstack-form';
|
|
773
|
-
*
|
|
774
|
-
* // Inside a TanStack Form provider:
|
|
775
|
-
* <TanStackActionSubmit label="Save Changes" className="mt-4" />
|
|
776
|
-
*/
|
|
777
|
-
declare const TanStackActionSubmit: React.FC<{
|
|
778
|
-
/** Button label text. Defaults to `'Submit'` when omitted. */
|
|
779
|
-
label?: string;
|
|
780
|
-
/** Additional CSS class names applied to the button element. */
|
|
781
|
-
className?: string;
|
|
782
|
-
}>;
|
|
783
|
-
//#endregion
|
|
784
|
-
//#region packages/components/features/tanstack-form/components/forms/actions-form.d.ts
|
|
785
|
-
/**
|
|
786
|
-
* Renders a form action bar with a Cancel button and a context-aware submit button (Add New or Update) driven by TanStack Form state.
|
|
787
|
-
*
|
|
788
|
-
* @example
|
|
789
|
-
* import { TanStackActionsForm } from '@customafk/lunas-ui/features/tanstack-form';
|
|
790
|
-
*
|
|
791
|
-
* // Inside a TanStack Form provider:
|
|
792
|
-
* <TanStackActionsForm type="create" />
|
|
793
|
-
*
|
|
794
|
-
* // For an update workflow:
|
|
795
|
-
* <TanStackActionsForm type="update" />
|
|
796
|
-
*/
|
|
797
|
-
declare const TanStackActionsForm: React.FC<React.PropsWithChildren<{
|
|
798
|
-
/**
|
|
799
|
-
* Determines which submit button variant is rendered.
|
|
800
|
-
* - `'create'` — shows an "Add New" button that resets the form on success.
|
|
801
|
-
* - `'update'` — shows an "Update" button that resets the form on success.
|
|
802
|
-
* Defaults to `'create'`.
|
|
803
|
-
*/
|
|
804
|
-
type?: 'create' | 'update';
|
|
805
|
-
}>>;
|
|
806
|
-
//#endregion
|
|
807
|
-
//#region packages/components/features/tanstack-form/components/forms/card-form.d.ts
|
|
808
|
-
/**
|
|
809
|
-
* Renders a card-style form section with a header, optional description, a delete button, and a content area for fields.
|
|
810
|
-
*
|
|
811
|
-
* @example
|
|
812
|
-
* import { TanStackCardForm } from '@customafk/lunas-ui/features/tanstack-form';
|
|
813
|
-
*
|
|
814
|
-
* <TanStackCardForm
|
|
815
|
-
* title="Shipping Address"
|
|
816
|
-
* description="Where should we deliver your order?"
|
|
817
|
-
* onDelete={() => removeAddress(id)}
|
|
818
|
-
* >
|
|
819
|
-
* <TextField name="street" />
|
|
820
|
-
* </TanStackCardForm>
|
|
821
|
-
*/
|
|
822
|
-
declare const TanStackCardForm: React.FC<React.PropsWithChildren<{
|
|
823
|
-
/** Bold heading text shown at the top of the card. */
|
|
824
|
-
title: string;
|
|
825
|
-
/** Optional secondary text rendered beneath the title. */
|
|
826
|
-
description?: string;
|
|
827
|
-
/** When provided, renders a danger "Remove" button in the card's top-right corner. */
|
|
828
|
-
onDelete?: () => void | Promise<void>;
|
|
829
|
-
}>>;
|
|
830
|
-
//#endregion
|
|
831
|
-
//#region packages/components/features/tanstack-form/components/forms/container-form.d.ts
|
|
832
|
-
/**
|
|
833
|
-
* Wraps a set of TanStack form sections in a vertically-stacked flex container.
|
|
834
|
-
*
|
|
835
|
-
* @example
|
|
836
|
-
* import { TanStackContainerForm } from '@customafk/lunas-ui/features/tanstack-form';
|
|
837
|
-
*
|
|
838
|
-
* <TanStackContainerForm>
|
|
839
|
-
* <TanStackSectionForm title="Personal Info">
|
|
840
|
-
* {/* fields *\/}
|
|
841
|
-
* </TanStackSectionForm>
|
|
842
|
-
* </TanStackContainerForm>
|
|
843
|
-
*/
|
|
844
|
-
declare const TanStackContainerForm: React.FC<React.PropsWithChildren>;
|
|
845
|
-
//#endregion
|
|
846
|
-
//#region packages/components/features/tanstack-form/components/forms/dialog-form.d.ts
|
|
847
|
-
/**
|
|
848
|
-
* Renders a modal dialog that wraps a TanStack Form with a title, scrollable content area, and built-in submit/cancel actions.
|
|
849
|
-
*
|
|
850
|
-
* @example
|
|
851
|
-
* import { TanStackDialogForm } from '@customafk/lunas-ui/features/tanstack-form';
|
|
852
|
-
*
|
|
853
|
-
* <TanStackDialogForm
|
|
854
|
-
* title="Create User"
|
|
855
|
-
* submitText="Create"
|
|
856
|
-
* className="max-w-lg"
|
|
857
|
-
* open={isOpen}
|
|
858
|
-
* onOpenChange={setIsOpen}
|
|
859
|
-
* >
|
|
860
|
-
* <NameField />
|
|
861
|
-
* <EmailField />
|
|
862
|
-
* </TanStackDialogForm>
|
|
863
|
-
*/
|
|
864
|
-
declare const TanStackDialogForm: React.FC<React.PropsWithChildren<{
|
|
865
|
-
/** Heading text displayed in the dialog title bar. */
|
|
866
|
-
title: string;
|
|
867
|
-
/** Custom label for the submit button. Defaults to the `SubmitButton` component's built-in label when omitted. */
|
|
868
|
-
submitText?: string;
|
|
869
|
-
/** Optional fixed width for the dialog content area, as a pixel number (e.g. `600`) or any CSS string (e.g. `'50%'`, `'40rem'`). Omit to let the dialog size itself based on content. */
|
|
870
|
-
width?: number | string;
|
|
871
|
-
/** Optional fixed max-width for the dialog content area, as a pixel number (e.g. `600`) or any CSS string (e.g. `'50%'`, `'40rem'`). Omit to let the dialog size itself based on content and viewport. */
|
|
872
|
-
maxWidth?: number | string;
|
|
873
|
-
/** Optional additional class name(s) to apply to the dialog content container. */
|
|
874
|
-
className?: string;
|
|
875
|
-
/** Controlled open state of the dialog. */
|
|
876
|
-
open?: boolean;
|
|
877
|
-
/** Callback fired when the dialog open state changes; the form is reset on close. */
|
|
878
|
-
onOpenChange?: (open: boolean) => void;
|
|
879
|
-
}>>;
|
|
880
|
-
//#endregion
|
|
881
|
-
//#region packages/components/features/tanstack-form/components/forms/group-field.d.ts
|
|
882
|
-
/**
|
|
883
|
-
* Renders a labeled field group with an optional description, helper text, and a bottom separator.
|
|
884
|
-
*
|
|
885
|
-
* @example
|
|
886
|
-
* import { TanStackFieldGroup } from '@customafk/lunas-ui/features/tanstack-form';
|
|
887
|
-
*
|
|
888
|
-
* <TanStackFieldGroup
|
|
889
|
-
* label="Contact Details"
|
|
890
|
-
* description="Enter your contact information."
|
|
891
|
-
* helperText="All fields are required."
|
|
892
|
-
* orientation="horizontal"
|
|
893
|
-
* >
|
|
894
|
-
* <EmailField />
|
|
895
|
-
* </TanStackFieldGroup>
|
|
896
|
-
*/
|
|
897
|
-
declare const TanStackFieldGroup: React.FC<React.PropsWithChildren<{
|
|
898
|
-
/** Primary label displayed above the field content. */
|
|
899
|
-
label: string;
|
|
900
|
-
/** Secondary descriptive text shown beneath the label. */
|
|
901
|
-
description?: string;
|
|
902
|
-
/** Supplementary helper note rendered below the field content. */
|
|
903
|
-
helperText?: string;
|
|
904
|
-
/** Layout orientation of the label-to-content axis. Defaults to `'responsive'`. */
|
|
905
|
-
orientation?: 'horizontal' | 'vertical' | 'responsive';
|
|
906
|
-
}>>;
|
|
907
|
-
//#endregion
|
|
908
|
-
//#region packages/components/features/tanstack-form/components/forms/popover-form.d.ts
|
|
909
|
-
/**
|
|
910
|
-
* Renders a slide-in side-panel dialog that wraps a TanStack form with built-in submit and cancel actions.
|
|
911
|
-
*
|
|
912
|
-
* @example
|
|
913
|
-
* import { TanStackPopoverForm } from '@customafk/lunas-ui/features/tanstack-form';
|
|
914
|
-
*
|
|
915
|
-
* <TanStackPopoverForm
|
|
916
|
-
* title="Edit Profile"
|
|
917
|
-
* open={isOpen}
|
|
918
|
-
* onOpenChange={setIsOpen}
|
|
919
|
-
* >
|
|
920
|
-
* <EmailField />
|
|
921
|
-
* </TanStackPopoverForm>
|
|
922
|
-
*/
|
|
923
|
-
declare const TanStackPopoverForm: React.FC<React.PropsWithChildren<{
|
|
924
|
-
/** Heading text displayed in the panel header. */
|
|
925
|
-
title: string;
|
|
926
|
-
/** Controlled open state of the popover dialog. */
|
|
927
|
-
open?: boolean;
|
|
928
|
-
/** Additional CSS class names applied to the scrollable content area. */
|
|
929
|
-
contentClassName?: string;
|
|
930
|
-
/** Callback fired when the open state changes. */
|
|
931
|
-
onOpenChange?: (open: boolean) => void;
|
|
932
|
-
}>>;
|
|
933
|
-
//#endregion
|
|
934
|
-
//#region packages/components/features/tanstack-form/components/forms/section-form.d.ts
|
|
935
|
-
/**
|
|
936
|
-
* Renders a card-like form section with a titled header, separator, and a content area for form fields.
|
|
937
|
-
*
|
|
938
|
-
* @example
|
|
939
|
-
* import { TanStackSectionForm } from '@customafk/lunas-ui/features/tanstack-form';
|
|
940
|
-
*
|
|
941
|
-
* <TanStackSectionForm title="Account Settings">
|
|
942
|
-
* <EmailField />
|
|
943
|
-
* <PasswordField />
|
|
944
|
-
* </TanStackSectionForm>
|
|
945
|
-
*/
|
|
946
|
-
declare const TanStackSectionForm: React.FC<React.PropsWithChildren<{
|
|
947
|
-
/** Heading text displayed in the section header bar. */
|
|
948
|
-
title: string;
|
|
949
|
-
}>>;
|
|
950
|
-
//#endregion
|
|
951
|
-
//#region packages/components/features/tanstack-form/components/forms/title-field.d.ts
|
|
952
|
-
/**
|
|
953
|
-
* Renders a standalone section title with an optional description and helper note, followed by a separator.
|
|
954
|
-
*
|
|
955
|
-
* @example
|
|
956
|
-
* import { TanStackTitleField } from '@customafk/lunas-ui/features/tanstack-form';
|
|
957
|
-
*
|
|
958
|
-
* <TanStackTitleField
|
|
959
|
-
* title="Billing Address"
|
|
960
|
-
* description="Provide the address associated with your payment method."
|
|
961
|
-
* helperText="Must match your bank records."
|
|
962
|
-
* />
|
|
963
|
-
*/
|
|
964
|
-
declare const TanStackTitleField: React.FC<{
|
|
965
|
-
/** The heading text rendered as a legend element. */
|
|
966
|
-
title: string;
|
|
967
|
-
/** Optional supplementary text displayed beneath the title. */
|
|
968
|
-
description?: string;
|
|
969
|
-
/** Optional helper note shown below the description area. */
|
|
970
|
-
helperText?: string;
|
|
971
|
-
}>;
|
|
972
|
-
//#endregion
|
|
973
|
-
//#region packages/components/features/tanstack-form/components/ui/cancel-button.d.ts
|
|
974
|
-
/**
|
|
975
|
-
* Secondary outline button used to dismiss or cancel a form without submitting, defaulting to the label "Cancel".
|
|
976
|
-
*
|
|
977
|
-
* @example
|
|
978
|
-
* import { CancelButton } from '@customafk/lunas-ui/features/tanstack-form';
|
|
979
|
-
*
|
|
980
|
-
* <CancelButton onClick={() => router.back()} />
|
|
981
|
-
*/
|
|
982
|
-
declare const CancelButton: React.FC<React.ComponentProps<'button'>>;
|
|
467
|
+
}: Props<T>): react642.JSX.Element;
|
|
983
468
|
//#endregion
|
|
984
469
|
//#region packages/components/features/tanstack-form/components/ui/field.d.ts
|
|
985
470
|
declare const fieldVariants: (props?: ({
|
|
986
471
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
987
|
-
} &
|
|
472
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string;
|
|
988
473
|
/**
|
|
989
474
|
* Outermost `<fieldset>` wrapper that stacks multiple `Field` rows with consistent vertical spacing.
|
|
990
475
|
*
|
|
@@ -995,37 +480,7 @@ declare const fieldVariants: (props?: ({
|
|
|
995
480
|
* <Field><FieldLabel>Name</FieldLabel><FieldContent><input /></FieldContent></Field>
|
|
996
481
|
* </FieldSet>
|
|
997
482
|
*/
|
|
998
|
-
|
|
999
|
-
className,
|
|
1000
|
-
...props
|
|
1001
|
-
}: React.ComponentProps<"fieldset">) => react642.JSX.Element>;
|
|
1002
|
-
/**
|
|
1003
|
-
* Props for {@link FieldLegend}.
|
|
1004
|
-
*/
|
|
1005
|
-
type FieldLegendProps = React.ComponentProps<'legend'> & {
|
|
1006
|
-
/**
|
|
1007
|
-
* Visual weight of the legend text.
|
|
1008
|
-
* - `'legend'` — larger base-size text (section heading).
|
|
1009
|
-
* - `'label'` — smaller label-size text (matches field label weight).
|
|
1010
|
-
* @default 'legend'
|
|
1011
|
-
*/
|
|
1012
|
-
variant?: 'legend' | 'label';
|
|
1013
|
-
};
|
|
1014
|
-
/**
|
|
1015
|
-
* `<legend>` element for a `<fieldset>`, styled as either a section heading or a compact label.
|
|
1016
|
-
*
|
|
1017
|
-
* @example
|
|
1018
|
-
* import { FieldSet, FieldLegend } from '@customafk/lunas-ui/features/tanstack-form';
|
|
1019
|
-
*
|
|
1020
|
-
* <FieldSet>
|
|
1021
|
-
* <FieldLegend variant="legend">Personal details</FieldLegend>
|
|
1022
|
-
* </FieldSet>
|
|
1023
|
-
*/
|
|
1024
|
-
declare const FieldLegend: react642.MemoExoticComponent<({
|
|
1025
|
-
className,
|
|
1026
|
-
variant,
|
|
1027
|
-
...props
|
|
1028
|
-
}: FieldLegendProps) => react642.JSX.Element>;
|
|
483
|
+
|
|
1029
484
|
/**
|
|
1030
485
|
* Container `<div>` that groups a set of `Field` rows with container-query support for responsive layouts.
|
|
1031
486
|
*
|
|
@@ -1095,78 +550,7 @@ declare const FieldContentMain: react642.MemoExoticComponent<({
|
|
|
1095
550
|
*
|
|
1096
551
|
* <FieldLabel htmlFor="email" aria-required>Email</FieldLabel>
|
|
1097
552
|
*/
|
|
1098
|
-
|
|
1099
|
-
className,
|
|
1100
|
-
...props
|
|
1101
|
-
}: React.ComponentProps<typeof Label$1>) => react642.JSX.Element>;
|
|
1102
|
-
/**
|
|
1103
|
-
* Inline title element (non-`<label>`) for fields whose label cannot be a native `<label>`, such as custom checkbox groups.
|
|
1104
|
-
*
|
|
1105
|
-
* @example
|
|
1106
|
-
* import { FieldTitle } from '@customafk/lunas-ui/features/tanstack-form';
|
|
1107
|
-
*
|
|
1108
|
-
* <FieldTitle>Notification preferences</FieldTitle>
|
|
1109
|
-
*/
|
|
1110
|
-
declare const FieldTitle: react642.MemoExoticComponent<({
|
|
1111
|
-
className,
|
|
1112
|
-
...props
|
|
1113
|
-
}: React.ComponentProps<"div">) => react642.JSX.Element>;
|
|
1114
|
-
/**
|
|
1115
|
-
* Supplementary hint text rendered below the input to guide the user, with support for inline anchor links.
|
|
1116
|
-
*
|
|
1117
|
-
* @example
|
|
1118
|
-
* import { FieldDescription } from '@customafk/lunas-ui/features/tanstack-form';
|
|
1119
|
-
*
|
|
1120
|
-
* <FieldDescription>Must be at least 8 characters.</FieldDescription>
|
|
1121
|
-
*/
|
|
1122
|
-
declare const FieldDescription: react642.MemoExoticComponent<({
|
|
1123
|
-
className,
|
|
1124
|
-
...props
|
|
1125
|
-
}: React.ComponentProps<"p">) => react642.JSX.Element>;
|
|
1126
|
-
/**
|
|
1127
|
-
* Props for {@link FieldNote}.
|
|
1128
|
-
*/
|
|
1129
|
-
type FieldNoteProps = React.ComponentProps<'div'> & {
|
|
1130
|
-
/**
|
|
1131
|
-
* When `false` the note is not rendered at all; useful for conditional display without wrapper conditionals.
|
|
1132
|
-
* @default true
|
|
1133
|
-
*/
|
|
1134
|
-
isShow?: boolean;
|
|
1135
|
-
};
|
|
1136
|
-
/**
|
|
1137
|
-
* Highlighted informational callout box with an info icon, shown below a field to surface contextual guidance.
|
|
1138
|
-
*
|
|
1139
|
-
* @example
|
|
1140
|
-
* import { FieldNote } from '@customafk/lunas-ui/features/tanstack-form';
|
|
1141
|
-
*
|
|
1142
|
-
* <FieldNote isShow={isDraftMode}>Changes are saved automatically in draft mode.</FieldNote>
|
|
1143
|
-
*/
|
|
1144
|
-
declare const FieldNote: react642.MemoExoticComponent<({
|
|
1145
|
-
isShow,
|
|
1146
|
-
className,
|
|
1147
|
-
children,
|
|
1148
|
-
...props
|
|
1149
|
-
}: FieldNoteProps) => react642.JSX.Element | null>;
|
|
1150
|
-
/**
|
|
1151
|
-
* Props for {@link FieldTooltip}.
|
|
1152
|
-
*/
|
|
1153
|
-
type FieldTooltipProps = {
|
|
1154
|
-
/** Text content displayed inside the tooltip when the help icon is hovered or focused. */
|
|
1155
|
-
tooltip: string;
|
|
1156
|
-
};
|
|
1157
|
-
/**
|
|
1158
|
-
* Small help-circle icon button that reveals a tooltip with additional field context on hover or focus.
|
|
1159
|
-
*
|
|
1160
|
-
* @example
|
|
1161
|
-
* import { FieldTooltip } from '@customafk/lunas-ui/features/tanstack-form';
|
|
1162
|
-
*
|
|
1163
|
-
* <FieldLabel>
|
|
1164
|
-
* Password <FieldTooltip tooltip="Use at least one uppercase letter and one number." />
|
|
1165
|
-
* </FieldLabel>
|
|
1166
|
-
*/
|
|
1167
|
-
declare const FieldTooltip: react642.MemoExoticComponent<({
|
|
1168
|
-
tooltip
|
|
1169
|
-
}: FieldTooltipProps) => react642.JSX.Element>;
|
|
553
|
+
|
|
1170
554
|
/**
|
|
1171
555
|
* Visual divider row that optionally displays a centered text label, used to separate logical sections within a `FieldGroup`.
|
|
1172
556
|
*
|
|
@@ -1198,31 +582,6 @@ declare const FieldError: react642.MemoExoticComponent<({
|
|
|
1198
582
|
...props
|
|
1199
583
|
}: FieldErrorProps) => react642.JSX.Element | null>;
|
|
1200
584
|
//#endregion
|
|
1201
|
-
//#region packages/components/features/tanstack-form/components/ui/submit-button.d.ts
|
|
1202
|
-
/**
|
|
1203
|
-
* Props for the {@link SubmitButton} component.
|
|
1204
|
-
*/
|
|
1205
|
-
type SubmitButtonProps = React.ComponentProps<'button'> & {
|
|
1206
|
-
/**
|
|
1207
|
-
* When `true` the button enters a loading state and is automatically disabled to prevent duplicate submissions.
|
|
1208
|
-
*/
|
|
1209
|
-
isSubmitting?: boolean;
|
|
1210
|
-
/**
|
|
1211
|
-
* Label text rendered inside the button.
|
|
1212
|
-
* @default 'Submit'
|
|
1213
|
-
*/
|
|
1214
|
-
submitText?: string;
|
|
1215
|
-
};
|
|
1216
|
-
/**
|
|
1217
|
-
* Primary form submission button that shows a loading indicator while the form is being submitted.
|
|
1218
|
-
*
|
|
1219
|
-
* @example
|
|
1220
|
-
* import { SubmitButton } from '@customafk/lunas-ui/features/tanstack-form';
|
|
1221
|
-
*
|
|
1222
|
-
* <SubmitButton isSubmitting={form.state.isSubmitting} submitText="Save changes" />
|
|
1223
|
-
*/
|
|
1224
|
-
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
1225
|
-
//#endregion
|
|
1226
585
|
//#region packages/components/features/tanstack-form/tanstack-form.d.ts
|
|
1227
586
|
declare const useTanStackFieldContext: <TData>() => _tanstack_form_core0.FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useTanStackFormContext: () => _tanstack_react_form0.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
|
|
1228
587
|
/**
|
|
@@ -1377,7 +736,7 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
1377
736
|
...props
|
|
1378
737
|
}: React.ComponentProps<"div"> & class_variance_authority0.VariantProps<(props?: ({
|
|
1379
738
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
1380
|
-
} &
|
|
739
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string>) => react642.JSX.Element>;
|
|
1381
740
|
readonly FieldContent: react642.MemoExoticComponent<({
|
|
1382
741
|
className,
|
|
1383
742
|
...props
|
|
@@ -1555,7 +914,7 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
1555
914
|
...props
|
|
1556
915
|
}: React.ComponentProps<"div"> & class_variance_authority0.VariantProps<(props?: ({
|
|
1557
916
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
1558
|
-
} &
|
|
917
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string>) => react642.JSX.Element>;
|
|
1559
918
|
readonly FieldContent: react642.MemoExoticComponent<({
|
|
1560
919
|
className,
|
|
1561
920
|
...props
|
|
@@ -1731,7 +1090,7 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
1731
1090
|
...props
|
|
1732
1091
|
}: React.ComponentProps<"div"> & class_variance_authority0.VariantProps<(props?: ({
|
|
1733
1092
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
1734
|
-
} &
|
|
1093
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string>) => react642.JSX.Element>;
|
|
1735
1094
|
readonly FieldContent: react642.MemoExoticComponent<({
|
|
1736
1095
|
className,
|
|
1737
1096
|
...props
|
|
@@ -1911,7 +1270,7 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
1911
1270
|
...props
|
|
1912
1271
|
}: React.ComponentProps<"div"> & class_variance_authority0.VariantProps<(props?: ({
|
|
1913
1272
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
1914
|
-
} &
|
|
1273
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string>) => react642.JSX.Element>;
|
|
1915
1274
|
readonly FieldContent: react642.MemoExoticComponent<({
|
|
1916
1275
|
className,
|
|
1917
1276
|
...props
|
|
@@ -2087,7 +1446,7 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
2087
1446
|
...props
|
|
2088
1447
|
}: React.ComponentProps<"div"> & class_variance_authority0.VariantProps<(props?: ({
|
|
2089
1448
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
2090
|
-
} &
|
|
1449
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string>) => react642.JSX.Element>;
|
|
2091
1450
|
readonly FieldContent: react642.MemoExoticComponent<({
|
|
2092
1451
|
className,
|
|
2093
1452
|
...props
|
|
@@ -2262,7 +1621,7 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
2262
1621
|
...props
|
|
2263
1622
|
}: React.ComponentProps<"div"> & class_variance_authority0.VariantProps<(props?: ({
|
|
2264
1623
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
2265
|
-
} &
|
|
1624
|
+
} & class_variance_authority_types23.ClassProp) | undefined) => string>) => react642.JSX.Element>;
|
|
2266
1625
|
readonly FieldContent: react642.MemoExoticComponent<({
|
|
2267
1626
|
className,
|
|
2268
1627
|
...props
|
|
@@ -2344,5 +1703,5 @@ declare const useTanStackForm: <TFormData, TOnMount extends _tanstack_form_core0
|
|
|
2344
1703
|
fields: TFields;
|
|
2345
1704
|
}>) => ReturnType<react642.FunctionComponent>;
|
|
2346
1705
|
//#endregion
|
|
2347
|
-
export {
|
|
2348
|
-
//# sourceMappingURL=index-
|
|
1706
|
+
export { SimpleTextFieldProps as A, NumberFieldProps as C, RadioOption as D, RadioGroupFieldProps as E, TextareaFieldProps as F, TextEditorFieldProps as M, TextFieldProps as N, SelectFieldProps as O, TextFieldValue as P, MultiSelectFieldValue as S, PasswordFieldProps as T, DateFieldValue as _, withTanStackForm as a, FieldRounding as b, FieldContentMain as c, FieldSeparator as d, AnyFieldProps as f, DateFieldProps as g, ComboboxFieldProps as h, withTanStackFieldGroup as i, SwitchFieldProps as j, SelectOption as k, FieldError as l, CheckboxFieldProps as m, useTanStackForm as n, Field as o, BooleanFieldValue as p, useTanStackFormContext as r, FieldContent as s, useTanStackFieldContext as t, FieldGroup as u, EmailFieldProps as v, NumberFieldValue as w, FieldType as x, FieldOrientation as y };
|
|
1707
|
+
//# sourceMappingURL=index-ks5jfaQb.d.mts.map
|