@omnibase/shadcn 0.6.2 → 0.7.2
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/index.cjs +265 -229
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +264 -229
- package/package.json +7 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { LoginFlow, RegistrationFlow, VerificationFlow, RecoveryFlow, SettingsFlow, UiNode, UiNodeInputAttributes } from '@ory/client-fetch';
|
|
2
|
+
import { LoginFlow, RegistrationFlow, VerificationFlow, RecoveryFlow, SettingsFlow, FlowError, UiNode, UiNodeInputAttributes } from '@ory/client-fetch';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { Tenant, Product, CreateInviteRequest, NamespaceDefinition, Role, TenantUserResponse } from '@omnibase/core-js';
|
|
5
5
|
|
|
@@ -36,6 +36,13 @@ type SettingsFormProps = {
|
|
|
36
36
|
};
|
|
37
37
|
declare function SettingsForm({ flow }: SettingsFormProps): react_jsx_runtime.JSX.Element;
|
|
38
38
|
|
|
39
|
+
type ErrorFormProps = {
|
|
40
|
+
error: FlowError;
|
|
41
|
+
login_url?: string;
|
|
42
|
+
Header?: React.ReactNode;
|
|
43
|
+
};
|
|
44
|
+
declare function ErrorForm({ error, login_url, Header, }: ErrorFormProps): react_jsx_runtime.JSX.Element;
|
|
45
|
+
|
|
39
46
|
type FlowType = LoginFlow | RegistrationFlow | RecoveryFlow | VerificationFlow | SettingsFlow;
|
|
40
47
|
type CustomFormProps = {
|
|
41
48
|
flow: FlowType;
|
|
@@ -64,6 +71,10 @@ interface SwitchActiveTenantProps {
|
|
|
64
71
|
className?: string;
|
|
65
72
|
/** Callback fired when tenant selection changes */
|
|
66
73
|
onTenantChange?: (tenantId: string) => void;
|
|
74
|
+
/** Callback fired when "Create Tenant" is clicked */
|
|
75
|
+
onCreateTenant?: () => void;
|
|
76
|
+
/** Label for the create tenant option */
|
|
77
|
+
createTenantLabel?: string;
|
|
67
78
|
}
|
|
68
79
|
/**
|
|
69
80
|
* SwitchActiveTenant Component
|
|
@@ -77,8 +88,10 @@ interface SwitchActiveTenantProps {
|
|
|
77
88
|
* @param placeholder - Placeholder text for the select
|
|
78
89
|
* @param className - Additional CSS classes
|
|
79
90
|
* @param onTenantChange - Callback for tenant changes
|
|
91
|
+
* @param onCreateTenant - Callback for creating a new tenant
|
|
92
|
+
* @param createTenantLabel - Label for the create tenant option
|
|
80
93
|
*/
|
|
81
|
-
declare function SwitchActiveTenant({ tenants, currentTenantId, formAction, placeholder, className, onTenantChange, }: SwitchActiveTenantProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare function SwitchActiveTenant({ tenants, currentTenantId, formAction, placeholder, className, onTenantChange, onCreateTenant, createTenantLabel, }: SwitchActiveTenantProps): react_jsx_runtime.JSX.Element;
|
|
82
95
|
|
|
83
96
|
interface PricingTableProps {
|
|
84
97
|
products: Product[];
|
|
@@ -180,4 +193,4 @@ interface UserViewerProps {
|
|
|
180
193
|
}
|
|
181
194
|
declare function UserViewer({ users, availableRoles, canEditUsers, onRoleUpdate, onRemoveUser, }: UserViewerProps): react_jsx_runtime.JSX.Element;
|
|
182
195
|
|
|
183
|
-
export { type CustomFormProps, type FlowType, LoginForm, type LoginFormProps, type NamespaceMapEntry, type NodesByGroup, type PermissionRow, PermissionsSelector, type PermissionsSelectorProps, PricingTable, type PricingTableProps, RecoveryForm, type RecoveryFormProps, RegistrationForm, type RegistrationFormProps, RoleCreator, SettingsForm, type SettingsFormProps, SwitchActiveTenant, type SwitchActiveTenantProps, TenantCreator, type TenantCreatorConfig, type TenantCreatorFormActions, type TenantCreatorProps, UserInvite, UserViewer, VerificationForm, type VerificationFormProps, buildPermissionString, filterInputNodes, findAnchorNode, findCsrfToken, findSubmitButton, formatRelation, generateId, groupNodesByGroup, isUiNodeInputAttributes, sortNodes };
|
|
196
|
+
export { type CustomFormProps, ErrorForm, type ErrorFormProps, type FlowType, LoginForm, type LoginFormProps, type NamespaceMapEntry, type NodesByGroup, type PermissionRow, PermissionsSelector, type PermissionsSelectorProps, PricingTable, type PricingTableProps, RecoveryForm, type RecoveryFormProps, RegistrationForm, type RegistrationFormProps, RoleCreator, SettingsForm, type SettingsFormProps, SwitchActiveTenant, type SwitchActiveTenantProps, TenantCreator, type TenantCreatorConfig, type TenantCreatorFormActions, type TenantCreatorProps, UserInvite, UserViewer, VerificationForm, type VerificationFormProps, buildPermissionString, filterInputNodes, findAnchorNode, findCsrfToken, findSubmitButton, formatRelation, generateId, groupNodesByGroup, isUiNodeInputAttributes, sortNodes };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { LoginFlow, RegistrationFlow, VerificationFlow, RecoveryFlow, SettingsFlow, UiNode, UiNodeInputAttributes } from '@ory/client-fetch';
|
|
2
|
+
import { LoginFlow, RegistrationFlow, VerificationFlow, RecoveryFlow, SettingsFlow, FlowError, UiNode, UiNodeInputAttributes } from '@ory/client-fetch';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { Tenant, Product, CreateInviteRequest, NamespaceDefinition, Role, TenantUserResponse } from '@omnibase/core-js';
|
|
5
5
|
|
|
@@ -36,6 +36,13 @@ type SettingsFormProps = {
|
|
|
36
36
|
};
|
|
37
37
|
declare function SettingsForm({ flow }: SettingsFormProps): react_jsx_runtime.JSX.Element;
|
|
38
38
|
|
|
39
|
+
type ErrorFormProps = {
|
|
40
|
+
error: FlowError;
|
|
41
|
+
login_url?: string;
|
|
42
|
+
Header?: React.ReactNode;
|
|
43
|
+
};
|
|
44
|
+
declare function ErrorForm({ error, login_url, Header, }: ErrorFormProps): react_jsx_runtime.JSX.Element;
|
|
45
|
+
|
|
39
46
|
type FlowType = LoginFlow | RegistrationFlow | RecoveryFlow | VerificationFlow | SettingsFlow;
|
|
40
47
|
type CustomFormProps = {
|
|
41
48
|
flow: FlowType;
|
|
@@ -64,6 +71,10 @@ interface SwitchActiveTenantProps {
|
|
|
64
71
|
className?: string;
|
|
65
72
|
/** Callback fired when tenant selection changes */
|
|
66
73
|
onTenantChange?: (tenantId: string) => void;
|
|
74
|
+
/** Callback fired when "Create Tenant" is clicked */
|
|
75
|
+
onCreateTenant?: () => void;
|
|
76
|
+
/** Label for the create tenant option */
|
|
77
|
+
createTenantLabel?: string;
|
|
67
78
|
}
|
|
68
79
|
/**
|
|
69
80
|
* SwitchActiveTenant Component
|
|
@@ -77,8 +88,10 @@ interface SwitchActiveTenantProps {
|
|
|
77
88
|
* @param placeholder - Placeholder text for the select
|
|
78
89
|
* @param className - Additional CSS classes
|
|
79
90
|
* @param onTenantChange - Callback for tenant changes
|
|
91
|
+
* @param onCreateTenant - Callback for creating a new tenant
|
|
92
|
+
* @param createTenantLabel - Label for the create tenant option
|
|
80
93
|
*/
|
|
81
|
-
declare function SwitchActiveTenant({ tenants, currentTenantId, formAction, placeholder, className, onTenantChange, }: SwitchActiveTenantProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare function SwitchActiveTenant({ tenants, currentTenantId, formAction, placeholder, className, onTenantChange, onCreateTenant, createTenantLabel, }: SwitchActiveTenantProps): react_jsx_runtime.JSX.Element;
|
|
82
95
|
|
|
83
96
|
interface PricingTableProps {
|
|
84
97
|
products: Product[];
|
|
@@ -180,4 +193,4 @@ interface UserViewerProps {
|
|
|
180
193
|
}
|
|
181
194
|
declare function UserViewer({ users, availableRoles, canEditUsers, onRoleUpdate, onRemoveUser, }: UserViewerProps): react_jsx_runtime.JSX.Element;
|
|
182
195
|
|
|
183
|
-
export { type CustomFormProps, type FlowType, LoginForm, type LoginFormProps, type NamespaceMapEntry, type NodesByGroup, type PermissionRow, PermissionsSelector, type PermissionsSelectorProps, PricingTable, type PricingTableProps, RecoveryForm, type RecoveryFormProps, RegistrationForm, type RegistrationFormProps, RoleCreator, SettingsForm, type SettingsFormProps, SwitchActiveTenant, type SwitchActiveTenantProps, TenantCreator, type TenantCreatorConfig, type TenantCreatorFormActions, type TenantCreatorProps, UserInvite, UserViewer, VerificationForm, type VerificationFormProps, buildPermissionString, filterInputNodes, findAnchorNode, findCsrfToken, findSubmitButton, formatRelation, generateId, groupNodesByGroup, isUiNodeInputAttributes, sortNodes };
|
|
196
|
+
export { type CustomFormProps, ErrorForm, type ErrorFormProps, type FlowType, LoginForm, type LoginFormProps, type NamespaceMapEntry, type NodesByGroup, type PermissionRow, PermissionsSelector, type PermissionsSelectorProps, PricingTable, type PricingTableProps, RecoveryForm, type RecoveryFormProps, RegistrationForm, type RegistrationFormProps, RoleCreator, SettingsForm, type SettingsFormProps, SwitchActiveTenant, type SwitchActiveTenantProps, TenantCreator, type TenantCreatorConfig, type TenantCreatorFormActions, type TenantCreatorProps, UserInvite, UserViewer, VerificationForm, type VerificationFormProps, buildPermissionString, filterInputNodes, findAnchorNode, findCsrfToken, findSubmitButton, formatRelation, generateId, groupNodesByGroup, isUiNodeInputAttributes, sortNodes };
|