automoby-kit 1.0.3 → 1.0.5
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 +2 -10
- package/dist/cjs/Accordion.js +1 -0
- package/dist/cjs/Backdrop.js +1 -0
- package/dist/cjs/Breadcrumb.js +1 -0
- package/dist/cjs/Button.js +1 -0
- package/dist/cjs/Chips.js +1 -0
- package/dist/cjs/Divider.js +1 -0
- package/dist/cjs/Drawer.js +1 -0
- package/dist/cjs/Input.js +1 -0
- package/dist/cjs/Menu.js +1 -0
- package/dist/cjs/Pagination.js +1 -0
- package/dist/cjs/ProtectedComponent.js +1 -0
- package/dist/cjs/RadioGroup.js +1 -0
- package/dist/cjs/Tabs.js +1 -0
- package/dist/cjs/Typography.js +1 -0
- package/dist/cjs/chunks/MobileContext-eI2eV1-F.js +1 -0
- package/dist/cjs/chunks/chevron-left-Do__K6cA.js +1 -0
- package/dist/cjs/chunks/createLucideIcon-BqJVOzoK.js +1 -0
- package/dist/cjs/chunks/jsx-runtime-Bgd4cJfV.js +1 -0
- package/dist/cjs/contexts.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/licensing.js +1 -0
- package/dist/cjs/utils.js +1 -0
- package/dist/esm/Accordion.js +1 -0
- package/dist/esm/Backdrop.js +1 -0
- package/dist/esm/Breadcrumb.js +1 -0
- package/dist/esm/Button.js +1 -0
- package/dist/esm/Chips.js +1 -0
- package/dist/esm/Divider.js +1 -0
- package/dist/esm/Drawer.js +1 -0
- package/dist/esm/Input.js +1 -0
- package/dist/esm/Menu.js +1 -0
- package/dist/esm/Pagination.js +1 -0
- package/dist/esm/ProtectedComponent.js +1 -0
- package/dist/esm/RadioGroup.js +1 -0
- package/dist/esm/Tabs.js +1 -0
- package/dist/esm/Typography.js +1 -0
- package/dist/esm/chunks/MobileContext-BLAyX72S.js +1 -0
- package/dist/esm/chunks/chevron-left-4HSuTes3.js +1 -0
- package/dist/esm/chunks/createLucideIcon-DGp0SoUT.js +1 -0
- package/dist/esm/chunks/jsx-runtime-DZXOD2H9.js +1 -0
- package/dist/esm/contexts.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/licensing.js +1 -0
- package/dist/esm/utils.js +1 -0
- package/dist/types/Accordion.js +54 -0
- package/dist/types/Backdrop.js +24 -0
- package/dist/types/Breadcrumb.js +56 -0
- package/dist/types/Button.js +46 -0
- package/dist/types/Chips.js +109 -0
- package/dist/types/Divider.js +21 -0
- package/dist/types/Drawer.js +107 -0
- package/dist/types/Input.js +78 -0
- package/dist/types/Menu.js +120 -0
- package/dist/types/MobileContext-BkG7_94E.js +1478 -0
- package/dist/types/Pagination.js +183 -0
- package/dist/types/ProtectedComponent.js +33 -0
- package/dist/types/RadioGroup.js +68 -0
- package/dist/types/Tabs.js +49 -0
- package/dist/types/Typography.js +60 -0
- package/dist/types/chevron-left-Ck6O99eF.js +14 -0
- package/dist/types/contexts/MobileContext.d.ts +0 -1
- package/dist/types/contexts/index.d.ts +1 -1
- package/dist/types/contexts.js +3 -0
- package/dist/types/createLucideIcon-D-q73LTT.js +112 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.js +38 -0
- package/dist/types/jsx-runtime-BiC2V0nk.js +430 -0
- package/dist/types/licensing.js +125 -0
- package/dist/types/utils.js +7 -0
- package/package.json +90 -4
- package/dist/index.cjs.js +0 -1
- package/dist/index.esm.js +0 -1
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = {exports: {}};
|
|
4
|
+
|
|
5
|
+
var reactJsxRuntime_production = {};
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var hasRequiredReactJsxRuntime_production;
|
|
18
|
+
|
|
19
|
+
function requireReactJsxRuntime_production () {
|
|
20
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
21
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
22
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
23
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
24
|
+
function jsxProd(type, config, maybeKey) {
|
|
25
|
+
var key = null;
|
|
26
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
27
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
28
|
+
if ("key" in config) {
|
|
29
|
+
maybeKey = {};
|
|
30
|
+
for (var propName in config)
|
|
31
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
32
|
+
} else maybeKey = config;
|
|
33
|
+
config = maybeKey.ref;
|
|
34
|
+
return {
|
|
35
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
36
|
+
type: type,
|
|
37
|
+
key: key,
|
|
38
|
+
ref: void 0 !== config ? config : null,
|
|
39
|
+
props: maybeKey
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
43
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
44
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
45
|
+
return reactJsxRuntime_production;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var reactJsxRuntime_development = {};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @license React
|
|
52
|
+
* react-jsx-runtime.development.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
var hasRequiredReactJsxRuntime_development;
|
|
61
|
+
|
|
62
|
+
function requireReactJsxRuntime_development () {
|
|
63
|
+
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
64
|
+
hasRequiredReactJsxRuntime_development = 1;
|
|
65
|
+
"production" !== process.env.NODE_ENV &&
|
|
66
|
+
(function () {
|
|
67
|
+
function getComponentNameFromType(type) {
|
|
68
|
+
if (null == type) return null;
|
|
69
|
+
if ("function" === typeof type)
|
|
70
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
71
|
+
? null
|
|
72
|
+
: type.displayName || type.name || null;
|
|
73
|
+
if ("string" === typeof type) return type;
|
|
74
|
+
switch (type) {
|
|
75
|
+
case REACT_FRAGMENT_TYPE:
|
|
76
|
+
return "Fragment";
|
|
77
|
+
case REACT_PROFILER_TYPE:
|
|
78
|
+
return "Profiler";
|
|
79
|
+
case REACT_STRICT_MODE_TYPE:
|
|
80
|
+
return "StrictMode";
|
|
81
|
+
case REACT_SUSPENSE_TYPE:
|
|
82
|
+
return "Suspense";
|
|
83
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
84
|
+
return "SuspenseList";
|
|
85
|
+
case REACT_ACTIVITY_TYPE:
|
|
86
|
+
return "Activity";
|
|
87
|
+
}
|
|
88
|
+
if ("object" === typeof type)
|
|
89
|
+
switch (
|
|
90
|
+
("number" === typeof type.tag &&
|
|
91
|
+
console.error(
|
|
92
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
93
|
+
),
|
|
94
|
+
type.$$typeof)
|
|
95
|
+
) {
|
|
96
|
+
case REACT_PORTAL_TYPE:
|
|
97
|
+
return "Portal";
|
|
98
|
+
case REACT_CONTEXT_TYPE:
|
|
99
|
+
return (type.displayName || "Context") + ".Provider";
|
|
100
|
+
case REACT_CONSUMER_TYPE:
|
|
101
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
102
|
+
case REACT_FORWARD_REF_TYPE:
|
|
103
|
+
var innerType = type.render;
|
|
104
|
+
type = type.displayName;
|
|
105
|
+
type ||
|
|
106
|
+
((type = innerType.displayName || innerType.name || ""),
|
|
107
|
+
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
108
|
+
return type;
|
|
109
|
+
case REACT_MEMO_TYPE:
|
|
110
|
+
return (
|
|
111
|
+
(innerType = type.displayName || null),
|
|
112
|
+
null !== innerType
|
|
113
|
+
? innerType
|
|
114
|
+
: getComponentNameFromType(type.type) || "Memo"
|
|
115
|
+
);
|
|
116
|
+
case REACT_LAZY_TYPE:
|
|
117
|
+
innerType = type._payload;
|
|
118
|
+
type = type._init;
|
|
119
|
+
try {
|
|
120
|
+
return getComponentNameFromType(type(innerType));
|
|
121
|
+
} catch (x) {}
|
|
122
|
+
}
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
function testStringCoercion(value) {
|
|
126
|
+
return "" + value;
|
|
127
|
+
}
|
|
128
|
+
function checkKeyStringCoercion(value) {
|
|
129
|
+
try {
|
|
130
|
+
testStringCoercion(value);
|
|
131
|
+
var JSCompiler_inline_result = !1;
|
|
132
|
+
} catch (e) {
|
|
133
|
+
JSCompiler_inline_result = true;
|
|
134
|
+
}
|
|
135
|
+
if (JSCompiler_inline_result) {
|
|
136
|
+
JSCompiler_inline_result = console;
|
|
137
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
138
|
+
var JSCompiler_inline_result$jscomp$0 =
|
|
139
|
+
("function" === typeof Symbol &&
|
|
140
|
+
Symbol.toStringTag &&
|
|
141
|
+
value[Symbol.toStringTag]) ||
|
|
142
|
+
value.constructor.name ||
|
|
143
|
+
"Object";
|
|
144
|
+
JSCompiler_temp_const.call(
|
|
145
|
+
JSCompiler_inline_result,
|
|
146
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
147
|
+
JSCompiler_inline_result$jscomp$0
|
|
148
|
+
);
|
|
149
|
+
return testStringCoercion(value);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function getTaskName(type) {
|
|
153
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
154
|
+
if (
|
|
155
|
+
"object" === typeof type &&
|
|
156
|
+
null !== type &&
|
|
157
|
+
type.$$typeof === REACT_LAZY_TYPE
|
|
158
|
+
)
|
|
159
|
+
return "<...>";
|
|
160
|
+
try {
|
|
161
|
+
var name = getComponentNameFromType(type);
|
|
162
|
+
return name ? "<" + name + ">" : "<...>";
|
|
163
|
+
} catch (x) {
|
|
164
|
+
return "<...>";
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function getOwner() {
|
|
168
|
+
var dispatcher = ReactSharedInternals.A;
|
|
169
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
170
|
+
}
|
|
171
|
+
function UnknownOwner() {
|
|
172
|
+
return Error("react-stack-top-frame");
|
|
173
|
+
}
|
|
174
|
+
function hasValidKey(config) {
|
|
175
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
176
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
177
|
+
if (getter && getter.isReactWarning) return false;
|
|
178
|
+
}
|
|
179
|
+
return void 0 !== config.key;
|
|
180
|
+
}
|
|
181
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
182
|
+
function warnAboutAccessingKey() {
|
|
183
|
+
specialPropKeyWarningShown ||
|
|
184
|
+
((specialPropKeyWarningShown = true),
|
|
185
|
+
console.error(
|
|
186
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
187
|
+
displayName
|
|
188
|
+
));
|
|
189
|
+
}
|
|
190
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
191
|
+
Object.defineProperty(props, "key", {
|
|
192
|
+
get: warnAboutAccessingKey,
|
|
193
|
+
configurable: true
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
197
|
+
var componentName = getComponentNameFromType(this.type);
|
|
198
|
+
didWarnAboutElementRef[componentName] ||
|
|
199
|
+
((didWarnAboutElementRef[componentName] = true),
|
|
200
|
+
console.error(
|
|
201
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
202
|
+
));
|
|
203
|
+
componentName = this.props.ref;
|
|
204
|
+
return void 0 !== componentName ? componentName : null;
|
|
205
|
+
}
|
|
206
|
+
function ReactElement(
|
|
207
|
+
type,
|
|
208
|
+
key,
|
|
209
|
+
self,
|
|
210
|
+
source,
|
|
211
|
+
owner,
|
|
212
|
+
props,
|
|
213
|
+
debugStack,
|
|
214
|
+
debugTask
|
|
215
|
+
) {
|
|
216
|
+
self = props.ref;
|
|
217
|
+
type = {
|
|
218
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
219
|
+
type: type,
|
|
220
|
+
key: key,
|
|
221
|
+
props: props,
|
|
222
|
+
_owner: owner
|
|
223
|
+
};
|
|
224
|
+
null !== (void 0 !== self ? self : null)
|
|
225
|
+
? Object.defineProperty(type, "ref", {
|
|
226
|
+
enumerable: false,
|
|
227
|
+
get: elementRefGetterWithDeprecationWarning
|
|
228
|
+
})
|
|
229
|
+
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
230
|
+
type._store = {};
|
|
231
|
+
Object.defineProperty(type._store, "validated", {
|
|
232
|
+
configurable: false,
|
|
233
|
+
enumerable: false,
|
|
234
|
+
writable: true,
|
|
235
|
+
value: 0
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
238
|
+
configurable: false,
|
|
239
|
+
enumerable: false,
|
|
240
|
+
writable: true,
|
|
241
|
+
value: null
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(type, "_debugStack", {
|
|
244
|
+
configurable: false,
|
|
245
|
+
enumerable: false,
|
|
246
|
+
writable: true,
|
|
247
|
+
value: debugStack
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(type, "_debugTask", {
|
|
250
|
+
configurable: false,
|
|
251
|
+
enumerable: false,
|
|
252
|
+
writable: true,
|
|
253
|
+
value: debugTask
|
|
254
|
+
});
|
|
255
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
256
|
+
return type;
|
|
257
|
+
}
|
|
258
|
+
function jsxDEVImpl(
|
|
259
|
+
type,
|
|
260
|
+
config,
|
|
261
|
+
maybeKey,
|
|
262
|
+
isStaticChildren,
|
|
263
|
+
source,
|
|
264
|
+
self,
|
|
265
|
+
debugStack,
|
|
266
|
+
debugTask
|
|
267
|
+
) {
|
|
268
|
+
var children = config.children;
|
|
269
|
+
if (void 0 !== children)
|
|
270
|
+
if (isStaticChildren)
|
|
271
|
+
if (isArrayImpl(children)) {
|
|
272
|
+
for (
|
|
273
|
+
isStaticChildren = 0;
|
|
274
|
+
isStaticChildren < children.length;
|
|
275
|
+
isStaticChildren++
|
|
276
|
+
)
|
|
277
|
+
validateChildKeys(children[isStaticChildren]);
|
|
278
|
+
Object.freeze && Object.freeze(children);
|
|
279
|
+
} else
|
|
280
|
+
console.error(
|
|
281
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
282
|
+
);
|
|
283
|
+
else validateChildKeys(children);
|
|
284
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
285
|
+
children = getComponentNameFromType(type);
|
|
286
|
+
var keys = Object.keys(config).filter(function (k) {
|
|
287
|
+
return "key" !== k;
|
|
288
|
+
});
|
|
289
|
+
isStaticChildren =
|
|
290
|
+
0 < keys.length
|
|
291
|
+
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
292
|
+
: "{key: someKey}";
|
|
293
|
+
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
294
|
+
((keys =
|
|
295
|
+
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
296
|
+
console.error(
|
|
297
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
298
|
+
isStaticChildren,
|
|
299
|
+
children,
|
|
300
|
+
keys,
|
|
301
|
+
children
|
|
302
|
+
),
|
|
303
|
+
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
304
|
+
}
|
|
305
|
+
children = null;
|
|
306
|
+
void 0 !== maybeKey &&
|
|
307
|
+
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
308
|
+
hasValidKey(config) &&
|
|
309
|
+
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
310
|
+
if ("key" in config) {
|
|
311
|
+
maybeKey = {};
|
|
312
|
+
for (var propName in config)
|
|
313
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
314
|
+
} else maybeKey = config;
|
|
315
|
+
children &&
|
|
316
|
+
defineKeyPropWarningGetter(
|
|
317
|
+
maybeKey,
|
|
318
|
+
"function" === typeof type
|
|
319
|
+
? type.displayName || type.name || "Unknown"
|
|
320
|
+
: type
|
|
321
|
+
);
|
|
322
|
+
return ReactElement(
|
|
323
|
+
type,
|
|
324
|
+
children,
|
|
325
|
+
self,
|
|
326
|
+
source,
|
|
327
|
+
getOwner(),
|
|
328
|
+
maybeKey,
|
|
329
|
+
debugStack,
|
|
330
|
+
debugTask
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
function validateChildKeys(node) {
|
|
334
|
+
"object" === typeof node &&
|
|
335
|
+
null !== node &&
|
|
336
|
+
node.$$typeof === REACT_ELEMENT_TYPE &&
|
|
337
|
+
node._store &&
|
|
338
|
+
(node._store.validated = 1);
|
|
339
|
+
}
|
|
340
|
+
var React$1 = React,
|
|
341
|
+
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
342
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
343
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
344
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
345
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
346
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
347
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
348
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
349
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
350
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
351
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
352
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
353
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
354
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
355
|
+
ReactSharedInternals =
|
|
356
|
+
React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
357
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
358
|
+
isArrayImpl = Array.isArray,
|
|
359
|
+
createTask = console.createTask
|
|
360
|
+
? console.createTask
|
|
361
|
+
: function () {
|
|
362
|
+
return null;
|
|
363
|
+
};
|
|
364
|
+
React$1 = {
|
|
365
|
+
"react-stack-bottom-frame": function (callStackForError) {
|
|
366
|
+
return callStackForError();
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
var specialPropKeyWarningShown;
|
|
370
|
+
var didWarnAboutElementRef = {};
|
|
371
|
+
var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
|
|
372
|
+
React$1,
|
|
373
|
+
UnknownOwner
|
|
374
|
+
)();
|
|
375
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
376
|
+
var didWarnAboutKeySpread = {};
|
|
377
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
378
|
+
reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
|
|
379
|
+
var trackActualOwner =
|
|
380
|
+
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
381
|
+
return jsxDEVImpl(
|
|
382
|
+
type,
|
|
383
|
+
config,
|
|
384
|
+
maybeKey,
|
|
385
|
+
false,
|
|
386
|
+
source,
|
|
387
|
+
self,
|
|
388
|
+
trackActualOwner
|
|
389
|
+
? Error("react-stack-top-frame")
|
|
390
|
+
: unknownOwnerDebugStack,
|
|
391
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
392
|
+
);
|
|
393
|
+
};
|
|
394
|
+
reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
|
|
395
|
+
var trackActualOwner =
|
|
396
|
+
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
397
|
+
return jsxDEVImpl(
|
|
398
|
+
type,
|
|
399
|
+
config,
|
|
400
|
+
maybeKey,
|
|
401
|
+
true,
|
|
402
|
+
source,
|
|
403
|
+
self,
|
|
404
|
+
trackActualOwner
|
|
405
|
+
? Error("react-stack-top-frame")
|
|
406
|
+
: unknownOwnerDebugStack,
|
|
407
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
408
|
+
);
|
|
409
|
+
};
|
|
410
|
+
})();
|
|
411
|
+
return reactJsxRuntime_development;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
var hasRequiredJsxRuntime;
|
|
415
|
+
|
|
416
|
+
function requireJsxRuntime () {
|
|
417
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
418
|
+
hasRequiredJsxRuntime = 1;
|
|
419
|
+
|
|
420
|
+
if (process.env.NODE_ENV === 'production') {
|
|
421
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
422
|
+
} else {
|
|
423
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
424
|
+
}
|
|
425
|
+
return jsxRuntime.exports;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
429
|
+
|
|
430
|
+
export { jsxRuntimeExports as j };
|
|
@@ -0,0 +1,125 @@
|
|
|
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 };
|
|
@@ -0,0 +1,7 @@
|
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,14 +1,100 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "automoby-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A comprehensive React UI component library with built-in licensing system - created in war 2025",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
|
-
"type": "module",
|
|
9
8
|
"files": [
|
|
10
9
|
"dist"
|
|
11
10
|
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.js",
|
|
15
|
+
"types": "./dist/types/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./Typography": {
|
|
18
|
+
"import": "./dist/esm/Typography.js",
|
|
19
|
+
"require": "./dist/cjs/Typography.js",
|
|
20
|
+
"types": "./dist/types/components/Typography/Typography.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./Button": {
|
|
23
|
+
"import": "./dist/esm/Button.js",
|
|
24
|
+
"require": "./dist/cjs/Button.js",
|
|
25
|
+
"types": "./dist/types/components/Button/Button.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./Input": {
|
|
28
|
+
"import": "./dist/esm/Input.js",
|
|
29
|
+
"require": "./dist/cjs/Input.js",
|
|
30
|
+
"types": "./dist/types/components/Input/Input.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./Tabs": {
|
|
33
|
+
"import": "./dist/esm/Tabs.js",
|
|
34
|
+
"require": "./dist/cjs/Tabs.js",
|
|
35
|
+
"types": "./dist/types/components/Tabs/Tabs.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./Drawer": {
|
|
38
|
+
"import": "./dist/esm/Drawer.js",
|
|
39
|
+
"require": "./dist/cjs/Drawer.js",
|
|
40
|
+
"types": "./dist/types/components/Drawer/Drawer.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./Backdrop": {
|
|
43
|
+
"import": "./dist/esm/Backdrop.js",
|
|
44
|
+
"require": "./dist/cjs/Backdrop.js",
|
|
45
|
+
"types": "./dist/types/components/Backdrop/Backdrop.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./Breadcrumb": {
|
|
48
|
+
"import": "./dist/esm/Breadcrumb.js",
|
|
49
|
+
"require": "./dist/cjs/Breadcrumb.js",
|
|
50
|
+
"types": "./dist/types/components/Breadcrumb/Breadcrumb.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./Pagination": {
|
|
53
|
+
"import": "./dist/esm/Pagination.js",
|
|
54
|
+
"require": "./dist/cjs/Pagination.js",
|
|
55
|
+
"types": "./dist/types/components/Pagination/Pagination.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"./Accordion": {
|
|
58
|
+
"import": "./dist/esm/Accordion.js",
|
|
59
|
+
"require": "./dist/cjs/Accordion.js",
|
|
60
|
+
"types": "./dist/types/components/Accordion/Accordion.d.ts"
|
|
61
|
+
},
|
|
62
|
+
"./Divider": {
|
|
63
|
+
"import": "./dist/esm/Divider.js",
|
|
64
|
+
"require": "./dist/cjs/Divider.js",
|
|
65
|
+
"types": "./dist/types/components/Divider/Divider.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./RadioGroup": {
|
|
68
|
+
"import": "./dist/esm/RadioGroup.js",
|
|
69
|
+
"require": "./dist/cjs/RadioGroup.js",
|
|
70
|
+
"types": "./dist/types/components/RadioGroup/RadioGroup.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./Chips": {
|
|
73
|
+
"import": "./dist/esm/Chips.js",
|
|
74
|
+
"require": "./dist/cjs/Chips.js",
|
|
75
|
+
"types": "./dist/types/components/Chips/Chips.d.ts"
|
|
76
|
+
},
|
|
77
|
+
"./Menu": {
|
|
78
|
+
"import": "./dist/esm/Menu.js",
|
|
79
|
+
"require": "./dist/cjs/Menu.js",
|
|
80
|
+
"types": "./dist/types/components/Menu/Menu.d.ts"
|
|
81
|
+
},
|
|
82
|
+
"./licensing": {
|
|
83
|
+
"import": "./dist/esm/licensing.js",
|
|
84
|
+
"require": "./dist/cjs/licensing.js",
|
|
85
|
+
"types": "./dist/types/licensing/index.d.ts"
|
|
86
|
+
},
|
|
87
|
+
"./contexts": {
|
|
88
|
+
"import": "./dist/esm/contexts.js",
|
|
89
|
+
"require": "./dist/cjs/contexts.js",
|
|
90
|
+
"types": "./dist/types/contexts/index.d.ts"
|
|
91
|
+
},
|
|
92
|
+
"./utils": {
|
|
93
|
+
"import": "./dist/esm/utils.js",
|
|
94
|
+
"require": "./dist/cjs/utils.js",
|
|
95
|
+
"types": "./dist/types/utils/cn.d.ts"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
12
98
|
"keywords": [
|
|
13
99
|
"react",
|
|
14
100
|
"ui",
|