automoby-kit 1.0.12 → 1.0.13
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/README.md +7 -71
- package/dist/cjs/Accordion.js +59 -1
- package/dist/cjs/Backdrop.js +26 -1
- package/dist/cjs/Breadcrumb.js +61 -1
- package/dist/cjs/Button.js +48 -1
- package/dist/cjs/Chips.js +117 -1
- package/dist/cjs/Divider.js +23 -1
- package/dist/cjs/Drawer.js +112 -1
- package/dist/cjs/Input.js +84 -1
- package/dist/cjs/Menu.js +122 -1
- package/dist/cjs/Pagination.js +188 -1
- package/dist/cjs/RadioGroup.js +73 -1
- package/dist/cjs/Tabs.js +54 -1
- package/dist/cjs/Typography.js +63 -1
- package/dist/cjs/chevron-left-COj1qGVo.js +16 -0
- package/dist/{types → cjs}/components/Accordion/Accordion.d.ts +2 -2
- package/dist/{types → cjs}/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/{types → cjs}/components/Chips/Chips.d.ts +5 -5
- package/dist/{types → cjs}/components/Drawer/Drawer.d.ts +2 -2
- package/dist/{types → cjs}/components/Input/Input.d.ts +4 -4
- package/dist/{types → cjs}/components/Input/Input.stories.d.ts +1 -1
- package/dist/{types → cjs}/components/Pagination/Pagination.d.ts +2 -2
- package/dist/{types → cjs}/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/cjs/components/Select/Select.d.ts +17 -0
- package/dist/cjs/components/Select/Select.stories.d.ts +104 -0
- package/dist/{types → cjs}/components/Tabs/Tabs.d.ts +2 -2
- package/dist/{types → cjs}/contexts/MobileContext.d.ts +1 -0
- package/dist/cjs/contexts.js +1491 -1
- package/dist/cjs/createLucideIcon-BTjFFtDc.js +114 -0
- package/dist/cjs/index.d.ts +34 -0
- package/dist/cjs/index.js +52 -1
- package/dist/cjs/utils.js +9 -1
- package/dist/esm/Accordion.js +57 -1
- package/dist/esm/Backdrop.js +24 -1
- package/dist/esm/Breadcrumb.js +59 -1
- package/dist/esm/Button.js +46 -1
- package/dist/esm/Chips.js +112 -1
- package/dist/esm/Divider.js +21 -1
- package/dist/esm/Drawer.js +110 -1
- package/dist/esm/Input.js +82 -1
- package/dist/esm/Menu.js +120 -1
- package/dist/esm/Pagination.js +186 -1
- package/dist/esm/RadioGroup.js +71 -1
- package/dist/esm/Tabs.js +52 -1
- package/dist/esm/Typography.js +60 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +25 -0
- package/dist/esm/components/Accordion/Accordion.stories.d.ts +175 -0
- package/dist/esm/components/Backdrop/Backdrop.d.ts +20 -0
- package/dist/esm/components/Backdrop/Backdrop.stories.d.ts +9 -0
- package/dist/esm/components/Breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/esm/components/Breadcrumb/Breadcrumb.stories.d.ts +177 -0
- package/dist/esm/components/Button/Button.d.ts +13 -0
- package/dist/esm/components/Button/Button.stories.d.ts +100 -0
- package/dist/esm/components/Chips/Chips.d.ts +37 -0
- package/dist/esm/components/Chips/Chips.stories.d.ts +90 -0
- package/dist/esm/components/Divider/Divider.d.ts +25 -0
- package/dist/esm/components/Divider/Divider.stories.d.ts +88 -0
- package/dist/esm/components/Drawer/Drawer.d.ts +16 -0
- package/dist/esm/components/Drawer/Drawer.stories.d.ts +128 -0
- package/dist/esm/components/Input/Input.d.ts +24 -0
- package/dist/esm/components/Input/Input.stories.d.ts +131 -0
- package/dist/esm/components/Menu/Menu.d.ts +39 -0
- package/dist/esm/components/Menu/Menu.stories.d.ts +89 -0
- package/dist/esm/components/Pagination/Pagination.d.ts +12 -0
- package/dist/esm/components/Pagination/Pagination.stories.d.ts +76 -0
- package/dist/esm/components/RadioGroup/RadioGroup.d.ts +55 -0
- package/dist/esm/components/RadioGroup/RadioGroup.stories.d.ts +86 -0
- package/dist/esm/components/Select/Select.d.ts +17 -0
- package/dist/esm/components/Select/Select.stories.d.ts +104 -0
- package/dist/esm/components/Tabs/Tabs.d.ts +43 -0
- package/dist/esm/components/Tabs/Tabs.stories.d.ts +66 -0
- package/dist/esm/components/Typography/Typography.d.ts +9 -0
- package/dist/esm/components/Typography/Typography.stories.d.ts +57 -0
- package/dist/esm/contexts/MobileContext.d.ts +13 -0
- package/dist/esm/contexts.js +1485 -1
- package/dist/esm/index.d.ts +34 -0
- package/dist/esm/index.js +37 -1
- package/dist/esm/utils/cn.d.ts +2 -0
- package/dist/esm/utils.js +7 -1
- package/package.json +2 -7
- package/dist/cjs/ProtectedComponent.js +0 -1
- package/dist/cjs/licensing.js +0 -1
- package/dist/esm/ProtectedComponent.js +0 -1
- package/dist/esm/licensing.js +0 -1
- package/dist/types/Accordion.js +0 -54
- package/dist/types/Backdrop.js +0 -24
- package/dist/types/Breadcrumb.js +0 -56
- package/dist/types/Button.js +0 -46
- package/dist/types/Chips.js +0 -109
- package/dist/types/Divider.js +0 -21
- package/dist/types/Drawer.js +0 -107
- package/dist/types/Input.js +0 -78
- package/dist/types/Menu.js +0 -120
- package/dist/types/Pagination.js +0 -183
- package/dist/types/ProtectedComponent.js +0 -33
- package/dist/types/RadioGroup.js +0 -68
- package/dist/types/Tabs.js +0 -49
- package/dist/types/Typography.js +0 -60
- package/dist/types/components/ProtectedComponent.d.ts +0 -5
- package/dist/types/contexts.js +0 -1478
- package/dist/types/index.d.ts +0 -36
- package/dist/types/index.js +0 -38
- package/dist/types/licensing/LicenseManager.d.ts +0 -41
- package/dist/types/licensing/index.d.ts +0 -30
- package/dist/types/licensing.js +0 -125
- package/dist/types/utils.js +0 -7
- /package/dist/{types → cjs}/components/Accordion/Accordion.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Backdrop/Backdrop.d.ts +0 -0
- /package/dist/{types → cjs}/components/Backdrop/Backdrop.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Breadcrumb/Breadcrumb.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Button/Button.d.ts +0 -0
- /package/dist/{types → cjs}/components/Button/Button.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Chips/Chips.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Divider/Divider.d.ts +0 -0
- /package/dist/{types → cjs}/components/Divider/Divider.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Drawer/Drawer.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Menu/Menu.d.ts +0 -0
- /package/dist/{types → cjs}/components/Menu/Menu.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Pagination/Pagination.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/RadioGroup/RadioGroup.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Tabs/Tabs.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Typography/Typography.d.ts +0 -0
- /package/dist/{types → cjs}/components/Typography/Typography.stories.d.ts +0 -0
- /package/dist/{types → cjs}/utils/cn.d.ts +0 -0
- /package/dist/{types → esm}/chevron-left-Ck6O99eF.js +0 -0
- /package/dist/{types → esm}/createLucideIcon-D-q73LTT.js +0 -0
package/dist/types/index.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export { initializeAutomobiKit } from './licensing';
|
|
2
|
-
export type { LicenseConfig } from './licensing';
|
|
3
|
-
export declare const Typography: import("react").ForwardRefExoticComponent<Omit<import("./components/Typography/Typography").TypographyProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
4
|
-
export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("./components/Button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
5
|
-
export declare const Input: import("react").ForwardRefExoticComponent<Omit<{
|
|
6
|
-
state?: "default" | "disabled" | "error";
|
|
7
|
-
label: string;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
startIcon?: import("react").ReactNode;
|
|
10
|
-
endIcon?: import("react").ReactNode;
|
|
11
|
-
isMobile: boolean;
|
|
12
|
-
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "id"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
13
|
-
export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<import("./components/Tabs/Tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
14
|
-
export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<import("./components/Drawer/Drawer").DrawerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
15
|
-
export declare const Backdrop: import("react").ForwardRefExoticComponent<Omit<import("./components/Backdrop/Backdrop").BackdropProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
16
|
-
export declare const Breadcrumb: import("react").ForwardRefExoticComponent<Omit<import("./components/Breadcrumb/Breadcrumb").BreadcrumbProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
17
|
-
export declare const Pagination: import("react").ForwardRefExoticComponent<import("./components/Pagination/Pagination").UnifiedPaginationProps & import("react").RefAttributes<unknown>>;
|
|
18
|
-
export declare const Accordion: import("react").ForwardRefExoticComponent<Omit<import("./components/Accordion/Accordion").AccordionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
19
|
-
export declare const Divider: import("react").ForwardRefExoticComponent<Omit<import("./components/Divider/Divider").DividerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
20
|
-
export declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<import("./components/RadioGroup/RadioGroup").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
21
|
-
export declare const Chips: import("react").ForwardRefExoticComponent<Omit<import("./components/Chips/Chips").ChipsProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
22
|
-
export declare const Menu: import("react").ForwardRefExoticComponent<Omit<import("./components/Menu/Menu").MenuProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
23
|
-
export type { TypographyProps, TypographyVariant, } from './components/Typography/Typography';
|
|
24
|
-
export type { ButtonProps, ButtonVariant, ButtonSize, } from './components/Button/Button';
|
|
25
|
-
export type { InputProps } from './components/Input/Input';
|
|
26
|
-
export type { TabsProps, TabItem } from './components/Tabs/Tabs';
|
|
27
|
-
export type { DrawerProps, DrawerDirection } from './components/Drawer/Drawer';
|
|
28
|
-
export type { BackdropProps } from './components/Backdrop/Backdrop';
|
|
29
|
-
export type { BreadcrumbProps, BreadcrumbItem, } from './components/Breadcrumb/Breadcrumb';
|
|
30
|
-
export type { UnifiedPaginationProps as PaginationProps } from './components/Pagination/Pagination';
|
|
31
|
-
export type { AccordionProps } from './components/Accordion/Accordion';
|
|
32
|
-
export type { DividerProps } from './components/Divider/Divider';
|
|
33
|
-
export type { RadioGroupProps, RadioOption, } from './components/RadioGroup/RadioGroup';
|
|
34
|
-
export type { ChipsProps } from './components/Chips/Chips';
|
|
35
|
-
export type { MenuProps, MenuItem } from './components/Menu/Menu';
|
|
36
|
-
export { MobileProvider } from './contexts/MobileContext';
|
package/dist/types/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { withLicenseProtection } from './ProtectedComponent.js';
|
|
2
|
-
import { Typography as Typography$1 } from './Typography.js';
|
|
3
|
-
import { Button as Button$1 } from './Button.js';
|
|
4
|
-
import { Input as Input$1 } from './Input.js';
|
|
5
|
-
import { Tabs as Tabs$1 } from './Tabs.js';
|
|
6
|
-
import { Drawer as Drawer$1 } from './Drawer.js';
|
|
7
|
-
import { Backdrop as Backdrop$1 } from './Backdrop.js';
|
|
8
|
-
import { Breadcrumb as Breadcrumb$1 } from './Breadcrumb.js';
|
|
9
|
-
import { Pagination as Pagination$1 } from './Pagination.js';
|
|
10
|
-
import { Accordion as Accordion$1 } from './Accordion.js';
|
|
11
|
-
import { Divider as Divider$1 } from './Divider.js';
|
|
12
|
-
import { RadioGroup as RadioGroup$1 } from './RadioGroup.js';
|
|
13
|
-
import { Chips as Chips$1 } from './Chips.js';
|
|
14
|
-
import { Menu as Menu$1 } from './Menu.js';
|
|
15
|
-
export { initializeAutomobiKit } from './licensing.js';
|
|
16
|
-
export { MobileProvider } from './contexts.js';
|
|
17
|
-
import 'react/jsx-runtime';
|
|
18
|
-
import 'react';
|
|
19
|
-
import './utils.js';
|
|
20
|
-
import './chevron-left-Ck6O99eF.js';
|
|
21
|
-
import './createLucideIcon-D-q73LTT.js';
|
|
22
|
-
|
|
23
|
-
// Protected Components (license-wrapped)
|
|
24
|
-
const Typography = withLicenseProtection(Typography$1, 'Typography');
|
|
25
|
-
const Button = withLicenseProtection(Button$1, 'Button');
|
|
26
|
-
const Input = withLicenseProtection(Input$1, 'Input');
|
|
27
|
-
const Tabs = withLicenseProtection(Tabs$1, 'Tabs');
|
|
28
|
-
const Drawer = withLicenseProtection(Drawer$1, 'Drawer');
|
|
29
|
-
const Backdrop = withLicenseProtection(Backdrop$1, 'Backdrop');
|
|
30
|
-
const Breadcrumb = withLicenseProtection(Breadcrumb$1, 'Breadcrumb');
|
|
31
|
-
const Pagination = withLicenseProtection(Pagination$1, 'Pagination');
|
|
32
|
-
const Accordion = withLicenseProtection(Accordion$1, 'Accordion');
|
|
33
|
-
const Divider = withLicenseProtection(Divider$1, 'Divider');
|
|
34
|
-
const RadioGroup = withLicenseProtection(RadioGroup$1, 'RadioGroup');
|
|
35
|
-
const Chips = withLicenseProtection(Chips$1, 'Chips');
|
|
36
|
-
const Menu = withLicenseProtection(Menu$1, 'Menu');
|
|
37
|
-
|
|
38
|
-
export { Accordion, Backdrop, Breadcrumb, Button, Chips, Divider, Drawer, Input, Menu, Pagination, RadioGroup, Tabs, Typography };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* License Manager for Automoby Kit
|
|
3
|
-
* Handles runtime key validation and component access control
|
|
4
|
-
*/
|
|
5
|
-
export interface LicenseConfig {
|
|
6
|
-
key: string;
|
|
7
|
-
}
|
|
8
|
-
declare class LicenseManager {
|
|
9
|
-
private static instance;
|
|
10
|
-
private isInitialized;
|
|
11
|
-
private isValid;
|
|
12
|
-
private licenseKey;
|
|
13
|
-
private validKeys;
|
|
14
|
-
private constructor();
|
|
15
|
-
static getInstance(): LicenseManager;
|
|
16
|
-
/**
|
|
17
|
-
* Initialize the license with provided configuration
|
|
18
|
-
*/
|
|
19
|
-
initialize(config: LicenseConfig): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Validate license key (in production, this would call your backend)
|
|
22
|
-
*/
|
|
23
|
-
private validateLicense;
|
|
24
|
-
/**
|
|
25
|
-
* Check if the license is valid and components can be used
|
|
26
|
-
*/
|
|
27
|
-
canUseComponents(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Get current license status
|
|
30
|
-
*/
|
|
31
|
-
getLicenseStatus(): {
|
|
32
|
-
initialized: boolean;
|
|
33
|
-
valid: boolean;
|
|
34
|
-
key: string | null;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Reset license state (useful for testing)
|
|
38
|
-
*/
|
|
39
|
-
reset(): void;
|
|
40
|
-
}
|
|
41
|
-
export default LicenseManager;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { LicenseConfig } from './LicenseManager';
|
|
2
|
-
/**
|
|
3
|
-
* Initialize Automoby Kit with your license key
|
|
4
|
-
* This function must be called before using any components
|
|
5
|
-
*
|
|
6
|
-
* @param config - License configuration
|
|
7
|
-
* @returns boolean indicating success
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import { initializeAutomobiKit } from 'automoby-kit';
|
|
12
|
-
*
|
|
13
|
-
* // Initialize with your license key
|
|
14
|
-
* const success = initializeAutomobiKit({
|
|
15
|
-
* key: 'your-license-key-here',
|
|
16
|
-
* domain: 'yourdomain.com', // optional
|
|
17
|
-
* environment: 'production' // optional
|
|
18
|
-
* });
|
|
19
|
-
*
|
|
20
|
-
* if (success) {
|
|
21
|
-
* // Now you can use components
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare function initializeAutomobiKit(config: LicenseConfig): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Check if components can be used
|
|
28
|
-
*/
|
|
29
|
-
export declare function canUseComponents(): boolean;
|
|
30
|
-
export type { LicenseConfig };
|
package/dist/types/licensing.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* License Manager for Automoby Kit
|
|
3
|
-
* Handles runtime key validation and component access control
|
|
4
|
-
*/
|
|
5
|
-
class LicenseManager {
|
|
6
|
-
static instance;
|
|
7
|
-
isInitialized = false;
|
|
8
|
-
isValid = false;
|
|
9
|
-
licenseKey = null;
|
|
10
|
-
// Valid license keys - in production, these would be validated against your backend
|
|
11
|
-
validKeys = ['automoby-kit-war-key-2025'];
|
|
12
|
-
constructor() {
|
|
13
|
-
// Private constructor for singleton pattern
|
|
14
|
-
}
|
|
15
|
-
static getInstance() {
|
|
16
|
-
if (!LicenseManager.instance) {
|
|
17
|
-
LicenseManager.instance = new LicenseManager();
|
|
18
|
-
}
|
|
19
|
-
return LicenseManager.instance;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Initialize the license with provided configuration
|
|
23
|
-
*/
|
|
24
|
-
initialize(config) {
|
|
25
|
-
try {
|
|
26
|
-
this.licenseKey = config.key;
|
|
27
|
-
// Validate the license key
|
|
28
|
-
this.isValid = this.validateLicense(config.key);
|
|
29
|
-
this.isInitialized = true;
|
|
30
|
-
if (this.isValid) {
|
|
31
|
-
console.log('✅ Automoby Kit initialized successfully');
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
console.error('❌ Invalid license key provided for Automoby Kit');
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.error('❌ Failed to initialize Automoby Kit:', error);
|
|
39
|
-
this.isValid = false;
|
|
40
|
-
this.isInitialized = true;
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Validate license key (in production, this would call your backend)
|
|
46
|
-
*/
|
|
47
|
-
validateLicense(key) {
|
|
48
|
-
// Basic validation - empty key is invalid
|
|
49
|
-
if (!key || key.trim() === '') {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
// For demo purposes, we're using hardcoded keys
|
|
53
|
-
// In production, you would validate against your backend API
|
|
54
|
-
return this.validKeys.includes(key);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Check if the license is valid and components can be used
|
|
58
|
-
*/
|
|
59
|
-
canUseComponents() {
|
|
60
|
-
if (!this.isInitialized) {
|
|
61
|
-
console.error('❌ Automoby Kit not initialized. Please call initializeAutomobiKit() with your license key.');
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
if (!this.isValid) {
|
|
65
|
-
console.error('❌ Invalid license key. Please contact support or provide a valid license key.');
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get current license status
|
|
72
|
-
*/
|
|
73
|
-
getLicenseStatus() {
|
|
74
|
-
return {
|
|
75
|
-
initialized: this.isInitialized,
|
|
76
|
-
valid: this.isValid,
|
|
77
|
-
key: this.licenseKey ? `${this.licenseKey.substring(0, 8)}...` : null,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Reset license state (useful for testing)
|
|
82
|
-
*/
|
|
83
|
-
reset() {
|
|
84
|
-
this.isInitialized = false;
|
|
85
|
-
this.isValid = false;
|
|
86
|
-
this.licenseKey = null;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Initialize Automoby Kit with your license key
|
|
92
|
-
* This function must be called before using any components
|
|
93
|
-
*
|
|
94
|
-
* @param config - License configuration
|
|
95
|
-
* @returns boolean indicating success
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```typescript
|
|
99
|
-
* import { initializeAutomobiKit } from 'automoby-kit';
|
|
100
|
-
*
|
|
101
|
-
* // Initialize with your license key
|
|
102
|
-
* const success = initializeAutomobiKit({
|
|
103
|
-
* key: 'your-license-key-here',
|
|
104
|
-
* domain: 'yourdomain.com', // optional
|
|
105
|
-
* environment: 'production' // optional
|
|
106
|
-
* });
|
|
107
|
-
*
|
|
108
|
-
* if (success) {
|
|
109
|
-
* // Now you can use components
|
|
110
|
-
* }
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
function initializeAutomobiKit(config) {
|
|
114
|
-
const licenseManager = LicenseManager.getInstance();
|
|
115
|
-
return licenseManager.initialize(config);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Check if components can be used
|
|
119
|
-
*/
|
|
120
|
-
function canUseComponents() {
|
|
121
|
-
const licenseManager = LicenseManager.getInstance();
|
|
122
|
-
return licenseManager.canUseComponents();
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { canUseComponents, initializeAutomobiKit };
|
package/dist/types/utils.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2
|
-
|
|
3
|
-
function cn(...inputs) {
|
|
4
|
-
return clsx(inputs);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export { cn as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|