@carlonicora/nextjs-jsonapi 1.24.2 → 1.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/{BlockNoteEditor-7OSPCSFW.js → BlockNoteEditor-CKMTHP7C.js} +13 -13
- package/dist/{BlockNoteEditor-7OSPCSFW.js.map → BlockNoteEditor-CKMTHP7C.js.map} +1 -1
- package/dist/{BlockNoteEditor-63GKCJK3.mjs → BlockNoteEditor-EJQLNOLB.mjs} +3 -3
- package/dist/billing/index.js +345 -348
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +6 -9
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-UTPWUC6O.mjs → chunk-JNLXGGHE.mjs} +5790 -4519
- package/dist/chunk-JNLXGGHE.mjs.map +1 -0
- package/dist/{chunk-5U4NJJOF.mjs → chunk-LNBT2YPZ.mjs} +289 -2
- package/dist/chunk-LNBT2YPZ.mjs.map +1 -0
- package/dist/{chunk-NQVPCNRS.js → chunk-O3LLMGP7.js} +290 -3
- package/dist/chunk-O3LLMGP7.js.map +1 -0
- package/dist/{chunk-HIKTQMCR.js → chunk-YYZ2U4WU.js} +7332 -6061
- package/dist/chunk-YYZ2U4WU.js.map +1 -0
- package/dist/client/index.d.mts +96 -1
- package/dist/client/index.d.ts +96 -1
- package/dist/client/index.js +9 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +8 -2
- package/dist/components/index.d.mts +291 -32
- package/dist/components/index.d.ts +291 -32
- package/dist/components/index.js +43 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +58 -18
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +108 -1
- package/dist/core/index.d.ts +108 -1
- package/dist/core/index.js +14 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +13 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/oauth.interface-DsZ5ecSX.d.mts +119 -0
- package/dist/oauth.interface-vL7za9Bz.d.ts +119 -0
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +11 -13
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js +13 -26
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/selector.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/selector.template.js +59 -76
- package/dist/scripts/generate-web-module/templates/components/selector.template.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/field-mapper.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/field-mapper.js +10 -12
- package/dist/scripts/generate-web-module/transformers/field-mapper.js.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/scripts/generate-web-module/templates/components/editor.template.ts +11 -13
- package/scripts/generate-web-module/templates/components/multi-selector.template.ts +13 -26
- package/scripts/generate-web-module/templates/components/selector.template.ts +59 -76
- package/scripts/generate-web-module/transformers/field-mapper.ts +10 -12
- package/src/client/index.ts +1 -0
- package/src/components/forms/FormCheckbox.tsx +18 -24
- package/src/components/forms/FormDate.tsx +103 -116
- package/src/components/forms/FormDateTime.tsx +122 -130
- package/src/components/forms/FormFieldWrapper.tsx +54 -0
- package/src/components/forms/FormInput.tsx +58 -46
- package/src/components/forms/FormPassword.tsx +17 -24
- package/src/components/forms/FormPlaceAutocomplete.tsx +50 -75
- package/src/components/forms/FormSelect.tsx +29 -35
- package/src/components/forms/FormSlider.tsx +23 -27
- package/src/components/forms/FormSwitch.tsx +12 -14
- package/src/components/forms/FormTextarea.tsx +12 -19
- package/src/components/forms/index.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/core/index.ts +3 -0
- package/src/core/registry/ModuleRegistry.ts +2 -0
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +9 -13
- package/src/features/company/components/forms/CompanyConfigurationSecurityForm.tsx +19 -33
- package/src/features/feature/components/forms/FormFeatures.tsx +3 -4
- package/src/features/index.ts +1 -0
- package/src/features/oauth/atoms/index.ts +1 -0
- package/src/features/oauth/atoms/oauth.atoms.ts +131 -0
- package/src/features/oauth/components/OAuthClientCard.tsx +105 -0
- package/src/features/oauth/components/OAuthClientDetail.tsx +269 -0
- package/src/features/oauth/components/OAuthClientForm.tsx +212 -0
- package/src/features/oauth/components/OAuthClientList.tsx +127 -0
- package/src/features/oauth/components/OAuthClientSecretDisplay.tsx +127 -0
- package/src/features/oauth/components/OAuthRedirectUriInput.tsx +152 -0
- package/src/features/oauth/components/OAuthScopeSelector.tsx +123 -0
- package/src/features/oauth/components/consent/OAuthConsentActions.tsx +41 -0
- package/src/features/oauth/components/consent/OAuthConsentHeader.tsx +51 -0
- package/src/features/oauth/components/consent/OAuthConsentScreen.tsx +142 -0
- package/src/features/oauth/components/consent/OAuthScopeList.tsx +72 -0
- package/src/features/oauth/components/consent/index.ts +4 -0
- package/src/features/oauth/components/index.ts +8 -0
- package/src/features/oauth/data/index.ts +2 -0
- package/src/features/oauth/data/oauth.service.ts +191 -0
- package/src/features/oauth/data/oauth.ts +87 -0
- package/src/features/oauth/hooks/index.ts +3 -0
- package/src/features/oauth/hooks/useOAuthClient.ts +161 -0
- package/src/features/oauth/hooks/useOAuthClients.ts +111 -0
- package/src/features/oauth/hooks/useOAuthConsent.ts +125 -0
- package/src/features/oauth/index.ts +6 -0
- package/src/features/oauth/interfaces/index.ts +1 -0
- package/src/features/oauth/interfaces/oauth.interface.ts +175 -0
- package/src/features/oauth/oauth.module.ts +9 -0
- package/src/features/role/components/forms/FormRoles.tsx +40 -51
- package/src/features/user/components/forms/UserMultiSelect.tsx +12 -29
- package/src/features/user/components/forms/UserSelector.tsx +79 -91
- package/src/shadcnui/index.ts +2 -0
- package/src/shadcnui/ui/field.tsx +3 -3
- package/src/shadcnui/ui/form.tsx +17 -134
- package/src/shadcnui/ui/input-group.tsx +4 -4
- package/dist/chunk-5U4NJJOF.mjs.map +0 -1
- package/dist/chunk-HIKTQMCR.js.map +0 -1
- package/dist/chunk-NQVPCNRS.js.map +0 -1
- package/dist/chunk-UTPWUC6O.mjs.map +0 -1
- package/src/components/forms/FormContainerGeneric.tsx +0 -39
- /package/dist/{BlockNoteEditor-63GKCJK3.mjs.map → BlockNoteEditor-EJQLNOLB.mjs.map} +0 -0
|
@@ -8,12 +8,13 @@ import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
|
8
8
|
import { DateRange, DayPicker, DayButton } from 'react-day-picker';
|
|
9
9
|
import { DropzoneState, DropzoneOptions } from 'react-dropzone';
|
|
10
10
|
export { DropzoneOptions } from 'react-dropzone';
|
|
11
|
+
import * as react_hook_form from 'react-hook-form';
|
|
12
|
+
import { FieldValues, UseFormReturn, Path, ControllerRenderProps, ControllerFieldState } from 'react-hook-form';
|
|
11
13
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
12
14
|
import { ColumnDef } from '@tanstack/react-table';
|
|
13
15
|
import { A as AuthComponent } from '../AuthComponent-hxOPs9o8.mjs';
|
|
14
16
|
import { J as JsonApiHydratedDataInterface } from '../ApiDataInterface-DPP8s46n.mjs';
|
|
15
|
-
import
|
|
16
|
-
import { UseFormReturn, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
17
|
+
import { e as OAuthScopeInfo, O as OAuthClientInterface, b as OAuthClientCreateRequest, d as OAuthConsentRequest } from '../oauth.interface-DsZ5ecSX.mjs';
|
|
17
18
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
18
19
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
19
20
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -30,8 +31,6 @@ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
|
30
31
|
import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
|
|
31
32
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
32
33
|
import { Menu } from '@base-ui/react/menu';
|
|
33
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
34
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
35
34
|
import { PreviewCard } from '@base-ui/react/preview-card';
|
|
36
35
|
import { OTPInput } from 'input-otp';
|
|
37
36
|
import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
|
|
@@ -299,13 +298,17 @@ type FormCheckboxProps = {
|
|
|
299
298
|
};
|
|
300
299
|
declare function FormCheckbox({ form, id, name, labelBefore, description, isRequired }: FormCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
301
300
|
|
|
302
|
-
|
|
303
|
-
form:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
301
|
+
type FormFieldWrapperProps<T extends FieldValues> = {
|
|
302
|
+
form: UseFormReturn<T>;
|
|
303
|
+
name: Path<T>;
|
|
304
|
+
label?: string;
|
|
305
|
+
description?: string;
|
|
307
306
|
isRequired?: boolean;
|
|
308
|
-
|
|
307
|
+
orientation?: "vertical" | "horizontal" | "responsive";
|
|
308
|
+
children: (field: ControllerRenderProps<T, Path<T>>, fieldState: ControllerFieldState) => ReactNode;
|
|
309
|
+
testId?: string;
|
|
310
|
+
};
|
|
311
|
+
declare function FormFieldWrapper<T extends FieldValues>({ form, name, label, description, isRequired, orientation, children, testId, }: FormFieldWrapperProps<T>): react_jsx_runtime.JSX.Element;
|
|
309
312
|
|
|
310
313
|
declare function FormDate({ form, id, name, minDate, onChange, isRequired, }: {
|
|
311
314
|
form: any;
|
|
@@ -780,6 +783,229 @@ type UserAvatarProps = {
|
|
|
780
783
|
};
|
|
781
784
|
declare function UserAvatar({ user, className, showFull, showLink, showTooltip }: UserAvatarProps): react_jsx_runtime.JSX.Element;
|
|
782
785
|
|
|
786
|
+
interface OAuthRedirectUriInputProps {
|
|
787
|
+
/** Current array of redirect URIs */
|
|
788
|
+
value: string[];
|
|
789
|
+
/** Called when URIs change */
|
|
790
|
+
onChange: (uris: string[]) => void;
|
|
791
|
+
/** Error message to display */
|
|
792
|
+
error?: string;
|
|
793
|
+
/** Whether input is disabled */
|
|
794
|
+
disabled?: boolean;
|
|
795
|
+
/** Label text */
|
|
796
|
+
label?: string;
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Dynamic input for managing OAuth redirect URIs
|
|
800
|
+
*
|
|
801
|
+
* @example
|
|
802
|
+
* ```tsx
|
|
803
|
+
* const [redirectUris, setRedirectUris] = useState<string[]>(['']);
|
|
804
|
+
*
|
|
805
|
+
* <OAuthRedirectUriInput
|
|
806
|
+
* value={redirectUris}
|
|
807
|
+
* onChange={setRedirectUris}
|
|
808
|
+
* error={errors.redirectUris}
|
|
809
|
+
* />
|
|
810
|
+
* ```
|
|
811
|
+
*/
|
|
812
|
+
declare function OAuthRedirectUriInput({ value, onChange, error, disabled, label, }: OAuthRedirectUriInputProps): react_jsx_runtime.JSX.Element;
|
|
813
|
+
|
|
814
|
+
interface OAuthScopeSelectorProps {
|
|
815
|
+
/** Currently selected scopes */
|
|
816
|
+
value: string[];
|
|
817
|
+
/** Called when selection changes */
|
|
818
|
+
onChange: (scopes: string[]) => void;
|
|
819
|
+
/** Available scopes to display (defaults to all) */
|
|
820
|
+
availableScopes?: OAuthScopeInfo[];
|
|
821
|
+
/** Whether selector is disabled */
|
|
822
|
+
disabled?: boolean;
|
|
823
|
+
/** Error message */
|
|
824
|
+
error?: string;
|
|
825
|
+
/** Label text */
|
|
826
|
+
label?: string;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Checkbox selector for OAuth scopes
|
|
830
|
+
*
|
|
831
|
+
* @example
|
|
832
|
+
* ```tsx
|
|
833
|
+
* const [scopes, setScopes] = useState<string[]>([]);
|
|
834
|
+
*
|
|
835
|
+
* <OAuthScopeSelector
|
|
836
|
+
* value={scopes}
|
|
837
|
+
* onChange={setScopes}
|
|
838
|
+
* error={errors.scopes}
|
|
839
|
+
* />
|
|
840
|
+
* ```
|
|
841
|
+
*/
|
|
842
|
+
declare function OAuthScopeSelector({ value, onChange, availableScopes, disabled, error, label, }: OAuthScopeSelectorProps): react_jsx_runtime.JSX.Element;
|
|
843
|
+
|
|
844
|
+
interface OAuthClientSecretDisplayProps {
|
|
845
|
+
/** The client secret to display */
|
|
846
|
+
secret: string;
|
|
847
|
+
/** Called when user dismisses the dialog */
|
|
848
|
+
onDismiss: () => void;
|
|
849
|
+
/** Whether the dialog is open */
|
|
850
|
+
open: boolean;
|
|
851
|
+
/** Optional client name for context */
|
|
852
|
+
clientName?: string;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Modal dialog for displaying a client secret ONE TIME
|
|
856
|
+
* Shows warning that secret cannot be retrieved again
|
|
857
|
+
*
|
|
858
|
+
* @example
|
|
859
|
+
* ```tsx
|
|
860
|
+
* const [secret, setSecret] = useAtom(oauthNewClientSecretAtom);
|
|
861
|
+
*
|
|
862
|
+
* <OAuthClientSecretDisplay
|
|
863
|
+
* secret={secret || ''}
|
|
864
|
+
* open={!!secret}
|
|
865
|
+
* onDismiss={() => setSecret(null)}
|
|
866
|
+
* />
|
|
867
|
+
* ```
|
|
868
|
+
*/
|
|
869
|
+
declare function OAuthClientSecretDisplay({ secret, onDismiss, open, clientName, }: OAuthClientSecretDisplayProps): react_jsx_runtime.JSX.Element;
|
|
870
|
+
|
|
871
|
+
interface OAuthClientCardProps {
|
|
872
|
+
/** The OAuth client to display */
|
|
873
|
+
client: OAuthClientInterface;
|
|
874
|
+
/** Called when card is clicked */
|
|
875
|
+
onClick?: () => void;
|
|
876
|
+
/** Called when edit is clicked */
|
|
877
|
+
onEdit?: () => void;
|
|
878
|
+
/** Called when delete is clicked */
|
|
879
|
+
onDelete?: () => void;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Card component for displaying an OAuth client in a list
|
|
883
|
+
*/
|
|
884
|
+
declare function OAuthClientCard({ client, onClick, onEdit, onDelete, }: OAuthClientCardProps): react_jsx_runtime.JSX.Element;
|
|
885
|
+
|
|
886
|
+
interface OAuthClientListProps {
|
|
887
|
+
/** List of OAuth clients */
|
|
888
|
+
clients: OAuthClientInterface[];
|
|
889
|
+
/** Whether list is loading */
|
|
890
|
+
isLoading?: boolean;
|
|
891
|
+
/** Error to display */
|
|
892
|
+
error?: Error | null;
|
|
893
|
+
/** Called when a client is clicked */
|
|
894
|
+
onClientClick?: (client: OAuthClientInterface) => void;
|
|
895
|
+
/** Called when create button is clicked */
|
|
896
|
+
onCreateClick?: () => void;
|
|
897
|
+
/** Called when edit is clicked on a client */
|
|
898
|
+
onEditClick?: (client: OAuthClientInterface) => void;
|
|
899
|
+
/** Called when delete is clicked on a client */
|
|
900
|
+
onDeleteClick?: (client: OAuthClientInterface) => void;
|
|
901
|
+
/** Message to show when list is empty */
|
|
902
|
+
emptyStateMessage?: string;
|
|
903
|
+
/** Title for the list */
|
|
904
|
+
title?: string;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Component for displaying a list of OAuth clients
|
|
908
|
+
*/
|
|
909
|
+
declare function OAuthClientList({ clients, isLoading, error, onClientClick, onCreateClick, onEditClick, onDeleteClick, emptyStateMessage, title, }: OAuthClientListProps): react_jsx_runtime.JSX.Element;
|
|
910
|
+
|
|
911
|
+
interface OAuthClientFormProps {
|
|
912
|
+
/** Existing client for edit mode (undefined = create mode) */
|
|
913
|
+
client?: OAuthClientInterface;
|
|
914
|
+
/** Called on form submit */
|
|
915
|
+
onSubmit: (data: OAuthClientCreateRequest) => Promise<void>;
|
|
916
|
+
/** Called on cancel */
|
|
917
|
+
onCancel: () => void;
|
|
918
|
+
/** Whether form is submitting */
|
|
919
|
+
isLoading?: boolean;
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Form for creating or editing an OAuth client
|
|
923
|
+
*/
|
|
924
|
+
declare function OAuthClientForm({ client, onSubmit, onCancel, isLoading, }: OAuthClientFormProps): react_jsx_runtime.JSX.Element;
|
|
925
|
+
|
|
926
|
+
interface OAuthClientDetailProps {
|
|
927
|
+
/** The OAuth client to display */
|
|
928
|
+
client: OAuthClientInterface;
|
|
929
|
+
/** Whether data is loading */
|
|
930
|
+
isLoading?: boolean;
|
|
931
|
+
/** Called when edit is clicked */
|
|
932
|
+
onEdit?: () => void;
|
|
933
|
+
/** Called when delete is clicked */
|
|
934
|
+
onDelete?: () => Promise<void>;
|
|
935
|
+
/** Called when regenerate secret is clicked */
|
|
936
|
+
onRegenerateSecret?: () => Promise<void>;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Detailed view of an OAuth client
|
|
940
|
+
*/
|
|
941
|
+
declare function OAuthClientDetail({ client, isLoading, onEdit, onDelete, onRegenerateSecret, }: OAuthClientDetailProps): react_jsx_runtime.JSX.Element;
|
|
942
|
+
|
|
943
|
+
interface OAuthConsentHeaderProps {
|
|
944
|
+
/** The requesting OAuth client */
|
|
945
|
+
client: OAuthClientInterface;
|
|
946
|
+
/** Optional logo URL override */
|
|
947
|
+
logoUrl?: string;
|
|
948
|
+
/** Application name (e.g., "Only35") */
|
|
949
|
+
appName?: string;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Header component for OAuth consent screen
|
|
953
|
+
* Shows platform logo and requesting app information
|
|
954
|
+
*/
|
|
955
|
+
declare function OAuthConsentHeader({ client, logoUrl, appName, }: OAuthConsentHeaderProps): react_jsx_runtime.JSX.Element;
|
|
956
|
+
|
|
957
|
+
interface OAuthScopeListProps {
|
|
958
|
+
/** List of requested scopes */
|
|
959
|
+
scopes: OAuthScopeInfo[];
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* List of requested OAuth scopes for consent display
|
|
963
|
+
*/
|
|
964
|
+
declare function OAuthScopeList({ scopes }: OAuthScopeListProps): react_jsx_runtime.JSX.Element | null;
|
|
965
|
+
|
|
966
|
+
interface OAuthConsentActionsProps {
|
|
967
|
+
/** Called when user clicks Authorize */
|
|
968
|
+
onApprove: () => void;
|
|
969
|
+
/** Called when user clicks Deny */
|
|
970
|
+
onDeny: () => void;
|
|
971
|
+
/** Whether an action is in progress */
|
|
972
|
+
isLoading?: boolean;
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Action buttons for OAuth consent screen
|
|
976
|
+
*/
|
|
977
|
+
declare function OAuthConsentActions({ onApprove, onDeny, isLoading, }: OAuthConsentActionsProps): react_jsx_runtime.JSX.Element;
|
|
978
|
+
|
|
979
|
+
interface OAuthConsentScreenProps {
|
|
980
|
+
/** OAuth authorization parameters */
|
|
981
|
+
params: OAuthConsentRequest;
|
|
982
|
+
/** Optional platform logo URL */
|
|
983
|
+
logoUrl?: string;
|
|
984
|
+
/** Platform name */
|
|
985
|
+
appName?: string;
|
|
986
|
+
/** Terms of Service URL */
|
|
987
|
+
termsUrl?: string;
|
|
988
|
+
/** Privacy Policy URL */
|
|
989
|
+
privacyUrl?: string;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Main OAuth consent screen component
|
|
993
|
+
* Displays client info, requested scopes, and approve/deny buttons
|
|
994
|
+
*
|
|
995
|
+
* @example
|
|
996
|
+
* ```tsx
|
|
997
|
+
* <OAuthConsentScreen
|
|
998
|
+
* params={{
|
|
999
|
+
* clientId: searchParams.client_id,
|
|
1000
|
+
* redirectUri: searchParams.redirect_uri,
|
|
1001
|
+
* scope: searchParams.scope,
|
|
1002
|
+
* state: searchParams.state,
|
|
1003
|
+
* }}
|
|
1004
|
+
* />
|
|
1005
|
+
* ```
|
|
1006
|
+
*/
|
|
1007
|
+
declare function OAuthConsentScreen({ params, logoUrl, appName, termsUrl, privacyUrl, }: OAuthConsentScreenProps): react_jsx_runtime.JSX.Element;
|
|
1008
|
+
|
|
783
1009
|
declare function Accordion({ className, ...props }: Accordion$1.Root.Props): react_jsx_runtime.JSX.Element;
|
|
784
1010
|
declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props): react_jsx_runtime.JSX.Element;
|
|
785
1011
|
declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props): react_jsx_runtime.JSX.Element;
|
|
@@ -1028,25 +1254,45 @@ declare function DropdownMenuRadioItem({ className, children, ...props }: Menu.R
|
|
|
1028
1254
|
declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): react_jsx_runtime.JSX.Element;
|
|
1029
1255
|
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1030
1256
|
|
|
1031
|
-
declare
|
|
1032
|
-
|
|
1033
|
-
declare
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
};
|
|
1045
|
-
declare
|
|
1046
|
-
declare
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
declare
|
|
1257
|
+
declare function Label({ className, ...props }: React$1.ComponentProps<"label">): react_jsx_runtime.JSX.Element;
|
|
1258
|
+
|
|
1259
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
1260
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
1261
|
+
variant?: "legend" | "label";
|
|
1262
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1263
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1264
|
+
declare const fieldVariants: (props?: ({
|
|
1265
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
1266
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1267
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element;
|
|
1268
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1269
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
1270
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1271
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
1272
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
1273
|
+
children?: React.ReactNode;
|
|
1274
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1275
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
1276
|
+
errors?: Array<{
|
|
1277
|
+
message?: string;
|
|
1278
|
+
} | undefined>;
|
|
1279
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Form component is a wrapper around react-hook-form's FormProvider.
|
|
1283
|
+
* Use this to wrap your form and spread the form object into it.
|
|
1284
|
+
*
|
|
1285
|
+
* @example
|
|
1286
|
+
* const form = useForm<FormValues>();
|
|
1287
|
+
* return (
|
|
1288
|
+
* <Form {...form}>
|
|
1289
|
+
* <form onSubmit={form.handleSubmit(onSubmit)}>
|
|
1290
|
+
* <FormInput form={form} id="email" name="Email" />
|
|
1291
|
+
* </form>
|
|
1292
|
+
* </Form>
|
|
1293
|
+
* );
|
|
1294
|
+
*/
|
|
1295
|
+
declare const Form: <TFieldValues extends react_hook_form.FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
1050
1296
|
|
|
1051
1297
|
declare function HoverCard({ ...props }: PreviewCard.Root.Props): react_jsx_runtime.JSX.Element;
|
|
1052
1298
|
declare function HoverCardTrigger({ ...props }: PreviewCard.Trigger.Props): react_jsx_runtime.JSX.Element;
|
|
@@ -1054,6 +1300,21 @@ declare function HoverCardContent({ className, side, sideOffset, align, alignOff
|
|
|
1054
1300
|
|
|
1055
1301
|
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
1056
1302
|
|
|
1303
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1304
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
1305
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
1306
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1307
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
1308
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
1309
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
1310
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1311
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
1312
|
+
type?: "button" | "submit" | "reset";
|
|
1313
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1314
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1315
|
+
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
1316
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
1317
|
+
|
|
1057
1318
|
declare function InputOTP({ className, containerClassName, ...props }: React$1.ComponentProps<typeof OTPInput> & {
|
|
1058
1319
|
containerClassName?: string;
|
|
1059
1320
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1063,8 +1324,6 @@ declare function InputOTPSlot({ index, className, ...props }: React$1.ComponentP
|
|
|
1063
1324
|
}): react_jsx_runtime.JSX.Element;
|
|
1064
1325
|
declare function InputOTPSeparator({ ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1065
1326
|
|
|
1066
|
-
declare function Label({ className, ...props }: React$1.ComponentProps<"label">): react_jsx_runtime.JSX.Element;
|
|
1067
|
-
|
|
1068
1327
|
declare function NavigationMenu({ className, children, ...props }: NavigationMenu$1.Root.Props): react_jsx_runtime.JSX.Element;
|
|
1069
1328
|
declare function NavigationMenuList({ className, ...props }: NavigationMenu$1.List.Props): react_jsx_runtime.JSX.Element;
|
|
1070
1329
|
declare function NavigationMenuItem({ className, ...props }: NavigationMenu$1.Item.Props): react_jsx_runtime.JSX.Element;
|
|
@@ -1358,4 +1617,4 @@ interface MultiSelectProps extends React$1.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
1358
1617
|
}
|
|
1359
1618
|
declare const MultiSelect: React$1.ForwardRefExoticComponent<MultiSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1360
1619
|
|
|
1361
|
-
export { AcceptInvitation, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivateAccount, AddUserToRole, AdminCompanyContainer, AdminUsersList, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AllowedUsersDetails, AttributeElement, AuthContainer, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlockNoteEditorContainer, KanbanBoard as Board, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbNavigation, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, KanbanColumn as Column, KanbanColumnHandle as ColumnHandle, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommonAssociationCommandDialog, CommonAssociationTrigger, CommonDeleter, CommonEditorButtons, CommonEditorHeader, CommonEditorTrigger, CompaniesList, CompanyConfigurationEditor, CompanyConfigurationSecurityForm, CompanyContainer, CompanyDeleter, CompanyDetails, CompanyEditor, CompanyUsersList, ContentListTable, ContentTableSearch, ContentTitle, ContentsList, ContentsListById, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContributorsList, Cookies, DatePickerPopover, DateRangeSelector, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorDetails,
|
|
1620
|
+
export { AcceptInvitation, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivateAccount, AddUserToRole, AdminCompanyContainer, AdminUsersList, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AllowedUsersDetails, AttributeElement, AuthContainer, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlockNoteEditorContainer, KanbanBoard as Board, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbNavigation, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, KanbanColumn as Column, KanbanColumnHandle as ColumnHandle, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommonAssociationCommandDialog, CommonAssociationTrigger, CommonDeleter, CommonEditorButtons, CommonEditorHeader, CommonEditorTrigger, CompaniesList, CompanyConfigurationEditor, CompanyConfigurationSecurityForm, CompanyContainer, CompanyDeleter, CompanyDetails, CompanyEditor, CompanyUsersList, ContentListTable, ContentTableSearch, ContentTitle, ContentsList, ContentsListById, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContributorsList, Cookies, DatePickerPopover, DateRangeSelector, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorDetails, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, ForgotPassword, Form, FormCheckbox, FormDate, FormDateTime, FormFeatures, FormFieldWrapper, FormInput, FormPassword, FormPlaceAutocomplete, FormRoles, FormSelect, FormSlider, FormSwitch, FormTextarea, type GenerateTableStructureParams, Header, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanItem as Item, KanbanItemHandle as ItemHandle, KanbanRoot as Kanban, KanbanBoard, KanbanColumn, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Label, LandingComponent, Link, type LinkProps, Login, Logout, ModeToggleSwitch, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NotificationErrorBoundary, NotificationMenuItem, NotificationModal, NotificationToast, NotificationsList, NotificationsListContainer, OAuthClientCard, type OAuthClientCardProps, OAuthClientDetail, type OAuthClientDetailProps, OAuthClientForm, type OAuthClientFormProps, OAuthClientList, type OAuthClientListProps, OAuthClientSecretDisplay, type OAuthClientSecretDisplayProps, OAuthConsentActions, type OAuthConsentActionsProps, OAuthConsentHeader, type OAuthConsentHeaderProps, OAuthConsentScreen, type OAuthConsentScreenProps, OAuthRedirectUriInput, type OAuthRedirectUriInputProps, OAuthScopeList, type OAuthScopeListProps, OAuthScopeSelector, type OAuthScopeSelectorProps, KanbanOverlay as Overlay, PageContainer, PageContainerContentDetails, type PageContainerItems, PageContentContainer, PageSection, PasswordInput, type PasswordInputProps, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, PushNotificationProvider, RadioGroup, RadioGroupItem, ReactMarkdownContainer, RecentPagesNavigator, RefreshUser, RelevantContentsList, RelevantUsersList, RemoveUserFromRole, ResetPassword, ResizableHandle, ResizablePanel, ResizablePanelGroup, RoleContainer, RoleDetails, RoleUsersList, RolesList, KanbanRoot as Root, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, type Tab, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserAvatar, UserAvatarEditor, UserContainer, UserDeleter, UserDetails, UserEditor, UserIndexContainer, UserIndexDetails, UserListInAdd, UserMultiSelect, UserReactivator, UserResentInvitationEmail, UserRoleAdd, UserRolesList, UserSelector, UsersList, UsersListByContentIds, UsersListContainer, badgeVariants, buttonVariants, cellComponent, cellDate, cellId, cellLink, cellUrl, errorToast, generateNotificationData, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, triggerAssociationToast, useCarousel, useFileUpload, useSidebar };
|