@khanhminh/design-system 1.4.0 → 1.6.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@khanhminh/design-system",
3
3
  "description": "A reusable React component library built with TypeScript, Tailwind CSS, and Radix UI",
4
- "version": "1.4.0",
4
+ "version": "1.6.0",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs",
@@ -1 +0,0 @@
1
- export { Button } from './ui/button';
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- declare const buttonVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
8
- asChild?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- export { Button, buttonVariants };
@@ -1 +0,0 @@
1
- export * from './useToggle';
@@ -1,12 +0,0 @@
1
- /**
2
- * A simple boolean toggle hook.
3
- *
4
- * @param initial initial value (defaults to false)
5
- * @returns an object with the current state and helpers to toggle / set on / set off
6
- */
7
- export declare function useToggle(initial?: boolean): {
8
- readonly state: boolean;
9
- readonly toggle: () => void;
10
- readonly setOn: () => void;
11
- readonly setOff: () => void;
12
- };
package/dist/index.cjs DELETED
@@ -1,474 +0,0 @@
1
- 'use strict';
2
-
3
- var require$$0 = require('react');
4
- var classVarianceAuthority = require('class-variance-authority');
5
- var radixUi = require('radix-ui');
6
- var clsx = require('clsx');
7
- var tailwindMerge = require('tailwind-merge');
8
-
9
- var jsxRuntime = {exports: {}};
10
-
11
- var reactJsxRuntime_production = {};
12
-
13
- /**
14
- * @license React
15
- * react-jsx-runtime.production.js
16
- *
17
- * Copyright (c) Meta Platforms, Inc. and affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
-
23
- var hasRequiredReactJsxRuntime_production;
24
-
25
- function requireReactJsxRuntime_production () {
26
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
27
- hasRequiredReactJsxRuntime_production = 1;
28
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
29
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
30
- function jsxProd(type, config, maybeKey) {
31
- var key = null;
32
- void 0 !== maybeKey && (key = "" + maybeKey);
33
- void 0 !== config.key && (key = "" + config.key);
34
- if ("key" in config) {
35
- maybeKey = {};
36
- for (var propName in config)
37
- "key" !== propName && (maybeKey[propName] = config[propName]);
38
- } else maybeKey = config;
39
- config = maybeKey.ref;
40
- return {
41
- $$typeof: REACT_ELEMENT_TYPE,
42
- type: type,
43
- key: key,
44
- ref: void 0 !== config ? config : null,
45
- props: maybeKey
46
- };
47
- }
48
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
49
- reactJsxRuntime_production.jsx = jsxProd;
50
- reactJsxRuntime_production.jsxs = jsxProd;
51
- return reactJsxRuntime_production;
52
- }
53
-
54
- var reactJsxRuntime_development = {};
55
-
56
- /**
57
- * @license React
58
- * react-jsx-runtime.development.js
59
- *
60
- * Copyright (c) Meta Platforms, Inc. and affiliates.
61
- *
62
- * This source code is licensed under the MIT license found in the
63
- * LICENSE file in the root directory of this source tree.
64
- */
65
-
66
- var hasRequiredReactJsxRuntime_development;
67
-
68
- function requireReactJsxRuntime_development () {
69
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
70
- hasRequiredReactJsxRuntime_development = 1;
71
- "production" !== process.env.NODE_ENV &&
72
- (function () {
73
- function getComponentNameFromType(type) {
74
- if (null == type) return null;
75
- if ("function" === typeof type)
76
- return type.$$typeof === REACT_CLIENT_REFERENCE
77
- ? null
78
- : type.displayName || type.name || null;
79
- if ("string" === typeof type) return type;
80
- switch (type) {
81
- case REACT_FRAGMENT_TYPE:
82
- return "Fragment";
83
- case REACT_PROFILER_TYPE:
84
- return "Profiler";
85
- case REACT_STRICT_MODE_TYPE:
86
- return "StrictMode";
87
- case REACT_SUSPENSE_TYPE:
88
- return "Suspense";
89
- case REACT_SUSPENSE_LIST_TYPE:
90
- return "SuspenseList";
91
- case REACT_ACTIVITY_TYPE:
92
- return "Activity";
93
- }
94
- if ("object" === typeof type)
95
- switch (
96
- ("number" === typeof type.tag &&
97
- console.error(
98
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
99
- ),
100
- type.$$typeof)
101
- ) {
102
- case REACT_PORTAL_TYPE:
103
- return "Portal";
104
- case REACT_CONTEXT_TYPE:
105
- return type.displayName || "Context";
106
- case REACT_CONSUMER_TYPE:
107
- return (type._context.displayName || "Context") + ".Consumer";
108
- case REACT_FORWARD_REF_TYPE:
109
- var innerType = type.render;
110
- type = type.displayName;
111
- type ||
112
- ((type = innerType.displayName || innerType.name || ""),
113
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
114
- return type;
115
- case REACT_MEMO_TYPE:
116
- return (
117
- (innerType = type.displayName || null),
118
- null !== innerType
119
- ? innerType
120
- : getComponentNameFromType(type.type) || "Memo"
121
- );
122
- case REACT_LAZY_TYPE:
123
- innerType = type._payload;
124
- type = type._init;
125
- try {
126
- return getComponentNameFromType(type(innerType));
127
- } catch (x) {}
128
- }
129
- return null;
130
- }
131
- function testStringCoercion(value) {
132
- return "" + value;
133
- }
134
- function checkKeyStringCoercion(value) {
135
- try {
136
- testStringCoercion(value);
137
- var JSCompiler_inline_result = !1;
138
- } catch (e) {
139
- JSCompiler_inline_result = !0;
140
- }
141
- if (JSCompiler_inline_result) {
142
- JSCompiler_inline_result = console;
143
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
144
- var JSCompiler_inline_result$jscomp$0 =
145
- ("function" === typeof Symbol &&
146
- Symbol.toStringTag &&
147
- value[Symbol.toStringTag]) ||
148
- value.constructor.name ||
149
- "Object";
150
- JSCompiler_temp_const.call(
151
- JSCompiler_inline_result,
152
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
153
- JSCompiler_inline_result$jscomp$0
154
- );
155
- return testStringCoercion(value);
156
- }
157
- }
158
- function getTaskName(type) {
159
- if (type === REACT_FRAGMENT_TYPE) return "<>";
160
- if (
161
- "object" === typeof type &&
162
- null !== type &&
163
- type.$$typeof === REACT_LAZY_TYPE
164
- )
165
- return "<...>";
166
- try {
167
- var name = getComponentNameFromType(type);
168
- return name ? "<" + name + ">" : "<...>";
169
- } catch (x) {
170
- return "<...>";
171
- }
172
- }
173
- function getOwner() {
174
- var dispatcher = ReactSharedInternals.A;
175
- return null === dispatcher ? null : dispatcher.getOwner();
176
- }
177
- function UnknownOwner() {
178
- return Error("react-stack-top-frame");
179
- }
180
- function hasValidKey(config) {
181
- if (hasOwnProperty.call(config, "key")) {
182
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
183
- if (getter && getter.isReactWarning) return !1;
184
- }
185
- return void 0 !== config.key;
186
- }
187
- function defineKeyPropWarningGetter(props, displayName) {
188
- function warnAboutAccessingKey() {
189
- specialPropKeyWarningShown ||
190
- ((specialPropKeyWarningShown = !0),
191
- console.error(
192
- "%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)",
193
- displayName
194
- ));
195
- }
196
- warnAboutAccessingKey.isReactWarning = !0;
197
- Object.defineProperty(props, "key", {
198
- get: warnAboutAccessingKey,
199
- configurable: !0
200
- });
201
- }
202
- function elementRefGetterWithDeprecationWarning() {
203
- var componentName = getComponentNameFromType(this.type);
204
- didWarnAboutElementRef[componentName] ||
205
- ((didWarnAboutElementRef[componentName] = !0),
206
- console.error(
207
- "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."
208
- ));
209
- componentName = this.props.ref;
210
- return void 0 !== componentName ? componentName : null;
211
- }
212
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
213
- var refProp = props.ref;
214
- type = {
215
- $$typeof: REACT_ELEMENT_TYPE,
216
- type: type,
217
- key: key,
218
- props: props,
219
- _owner: owner
220
- };
221
- null !== (void 0 !== refProp ? refProp : null)
222
- ? Object.defineProperty(type, "ref", {
223
- enumerable: !1,
224
- get: elementRefGetterWithDeprecationWarning
225
- })
226
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
227
- type._store = {};
228
- Object.defineProperty(type._store, "validated", {
229
- configurable: !1,
230
- enumerable: !1,
231
- writable: !0,
232
- value: 0
233
- });
234
- Object.defineProperty(type, "_debugInfo", {
235
- configurable: !1,
236
- enumerable: !1,
237
- writable: !0,
238
- value: null
239
- });
240
- Object.defineProperty(type, "_debugStack", {
241
- configurable: !1,
242
- enumerable: !1,
243
- writable: !0,
244
- value: debugStack
245
- });
246
- Object.defineProperty(type, "_debugTask", {
247
- configurable: !1,
248
- enumerable: !1,
249
- writable: !0,
250
- value: debugTask
251
- });
252
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
253
- return type;
254
- }
255
- function jsxDEVImpl(
256
- type,
257
- config,
258
- maybeKey,
259
- isStaticChildren,
260
- debugStack,
261
- debugTask
262
- ) {
263
- var children = config.children;
264
- if (void 0 !== children)
265
- if (isStaticChildren)
266
- if (isArrayImpl(children)) {
267
- for (
268
- isStaticChildren = 0;
269
- isStaticChildren < children.length;
270
- isStaticChildren++
271
- )
272
- validateChildKeys(children[isStaticChildren]);
273
- Object.freeze && Object.freeze(children);
274
- } else
275
- console.error(
276
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
277
- );
278
- else validateChildKeys(children);
279
- if (hasOwnProperty.call(config, "key")) {
280
- children = getComponentNameFromType(type);
281
- var keys = Object.keys(config).filter(function (k) {
282
- return "key" !== k;
283
- });
284
- isStaticChildren =
285
- 0 < keys.length
286
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
287
- : "{key: someKey}";
288
- didWarnAboutKeySpread[children + isStaticChildren] ||
289
- ((keys =
290
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
291
- console.error(
292
- '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} />',
293
- isStaticChildren,
294
- children,
295
- keys,
296
- children
297
- ),
298
- (didWarnAboutKeySpread[children + isStaticChildren] = !0));
299
- }
300
- children = null;
301
- void 0 !== maybeKey &&
302
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
303
- hasValidKey(config) &&
304
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
305
- if ("key" in config) {
306
- maybeKey = {};
307
- for (var propName in config)
308
- "key" !== propName && (maybeKey[propName] = config[propName]);
309
- } else maybeKey = config;
310
- children &&
311
- defineKeyPropWarningGetter(
312
- maybeKey,
313
- "function" === typeof type
314
- ? type.displayName || type.name || "Unknown"
315
- : type
316
- );
317
- return ReactElement(
318
- type,
319
- children,
320
- maybeKey,
321
- getOwner(),
322
- debugStack,
323
- debugTask
324
- );
325
- }
326
- function validateChildKeys(node) {
327
- isValidElement(node)
328
- ? node._store && (node._store.validated = 1)
329
- : "object" === typeof node &&
330
- null !== node &&
331
- node.$$typeof === REACT_LAZY_TYPE &&
332
- ("fulfilled" === node._payload.status
333
- ? isValidElement(node._payload.value) &&
334
- node._payload.value._store &&
335
- (node._payload.value._store.validated = 1)
336
- : node._store && (node._store.validated = 1));
337
- }
338
- function isValidElement(object) {
339
- return (
340
- "object" === typeof object &&
341
- null !== object &&
342
- object.$$typeof === REACT_ELEMENT_TYPE
343
- );
344
- }
345
- var React = require$$0,
346
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
347
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
348
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
349
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
350
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
351
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
352
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
353
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
354
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
355
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
356
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
357
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
358
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
359
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
360
- ReactSharedInternals =
361
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
362
- hasOwnProperty = Object.prototype.hasOwnProperty,
363
- isArrayImpl = Array.isArray,
364
- createTask = console.createTask
365
- ? console.createTask
366
- : function () {
367
- return null;
368
- };
369
- React = {
370
- react_stack_bottom_frame: function (callStackForError) {
371
- return callStackForError();
372
- }
373
- };
374
- var specialPropKeyWarningShown;
375
- var didWarnAboutElementRef = {};
376
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
377
- React,
378
- UnknownOwner
379
- )();
380
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
381
- var didWarnAboutKeySpread = {};
382
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
383
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
384
- var trackActualOwner =
385
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
386
- return jsxDEVImpl(
387
- type,
388
- config,
389
- maybeKey,
390
- !1,
391
- trackActualOwner
392
- ? Error("react-stack-top-frame")
393
- : unknownOwnerDebugStack,
394
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
395
- );
396
- };
397
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
398
- var trackActualOwner =
399
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
400
- return jsxDEVImpl(
401
- type,
402
- config,
403
- maybeKey,
404
- !0,
405
- trackActualOwner
406
- ? Error("react-stack-top-frame")
407
- : unknownOwnerDebugStack,
408
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
409
- );
410
- };
411
- })();
412
- return reactJsxRuntime_development;
413
- }
414
-
415
- if (process.env.NODE_ENV === 'production') {
416
- jsxRuntime.exports = requireReactJsxRuntime_production();
417
- } else {
418
- jsxRuntime.exports = requireReactJsxRuntime_development();
419
- }
420
-
421
- var jsxRuntimeExports = jsxRuntime.exports;
422
-
423
- function cn(...inputs) {
424
- return tailwindMerge.twMerge(clsx.clsx(inputs));
425
- }
426
-
427
- const buttonVariants = classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
428
- variants: {
429
- variant: {
430
- default: 'bg-cerulean-600 text-white hover:bg-cerulean-700 focus-visible:ring-cerulean-600/20',
431
- destructive: 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
432
- outline: 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
433
- secondary: 'border border-cerulean-600 bg-white text-cerulean-600 hover:bg-cerulean-50 focus-visible:ring-cerulean-600/20',
434
- ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
435
- link: 'text-primary underline-offset-4 hover:underline',
436
- },
437
- size: {
438
- default: 'h-9 px-4 py-2 has-[>svg]:px-3',
439
- xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
440
- sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',
441
- lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
442
- icon: 'size-9',
443
- 'icon-xs': "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
444
- 'icon-sm': 'size-8',
445
- 'icon-lg': 'size-10',
446
- },
447
- },
448
- defaultVariants: {
449
- variant: 'default',
450
- size: 'default',
451
- },
452
- });
453
- function Button({ className, variant = 'default', size = 'default', asChild = false, ...props }) {
454
- const Comp = asChild ? radixUi.Slot.Root : 'button';
455
- return (jsxRuntimeExports.jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), "data-size": size, "data-slot": "button", "data-variant": variant, ...props }));
456
- }
457
-
458
- /**
459
- * A simple boolean toggle hook.
460
- *
461
- * @param initial initial value (defaults to false)
462
- * @returns an object with the current state and helpers to toggle / set on / set off
463
- */
464
- function useToggle(initial = false) {
465
- const [state, setState] = require$$0.useState(initial);
466
- const toggle = require$$0.useCallback(() => setState((s) => !s), []);
467
- const setOn = require$$0.useCallback(() => setState(true), []);
468
- const setOff = require$$0.useCallback(() => setState(false), []);
469
- return { state, toggle, setOn, setOff };
470
- }
471
-
472
- exports.Button = Button;
473
- exports.cn = cn;
474
- exports.useToggle = useToggle;
package/dist/index.css DELETED
@@ -1 +0,0 @@
1
- /*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-200:oklch(92.8% 0.006 264.531);--color-white:#fff;--spacing:0.25rem;--text-xs:0.75rem;--text-xs--line-height:1.33333;--text-sm:0.875rem;--text-sm--line-height:1.42857;--font-weight-medium:500;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,::file-selector-button,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::file-selector-button,button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:transparent;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.relative{position:relative}.contents{display:contents}.inline-flex{display:inline-flex}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.size-9{height:calc(var(--spacing)*9);width:calc(var(--spacing)*9)}.size-10{height:calc(var(--spacing)*10);width:calc(var(--spacing)*10)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-cerulean-600{border-color:var(--cerulean-600)}.bg-background{background-color:var(--background)}.bg-cerulean-600{background-color:var(--cerulean-600)}.bg-destructive{background-color:var(--destructive)}.bg-white{background-color:var(--color-white)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.whitespace-nowrap{white-space:nowrap}.text-cerulean-600{color:var(--cerulean-600)}.text-primary{color:var(--primary)}.text-white{color:var(--color-white)}.underline-offset-4{text-underline-offset:4px}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,rgba(0,0,0,.05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-all{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.outline-none{--tw-outline-style:none;outline-style:none}.hover\:bg-accent{&:hover{@media (hover:hover){background-color:var(--accent)}}}.hover\:bg-cerulean-50{&:hover{@media (hover:hover){background-color:var(--cerulean-50)}}}.hover\:bg-cerulean-700{&:hover{@media (hover:hover){background-color:var(--cerulean-700)}}}.hover\:bg-destructive\/90{&:hover{@media (hover:hover){background-color:var(--destructive);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}}}.hover\:text-accent-foreground{&:hover{@media (hover:hover){color:var(--accent-foreground)}}}.hover\:underline{&:hover{@media (hover:hover){text-decoration-line:underline}}}.focus-visible\:border-ring{&:focus-visible{border-color:var(--ring)}}.focus-visible\:ring-\[3px\]{&:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus-visible\:ring-cerulean-600\/20{&:focus-visible{--tw-ring-color:var(--cerulean-600);@supports (color:color-mix(in lab,red,red)){--tw-ring-color:color-mix(in oklab,var(--cerulean-600) 20%,transparent)}}}.focus-visible\:ring-destructive\/20{&:focus-visible{--tw-ring-color:var(--destructive);@supports (color:color-mix(in lab,red,red)){--tw-ring-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}}.focus-visible\:ring-ring\/50{&:focus-visible{--tw-ring-color:var(--ring);@supports (color:color-mix(in lab,red,red)){--tw-ring-color:color-mix(in oklab,var(--ring) 50%,transparent)}}}.disabled\:pointer-events-none{&:disabled{pointer-events:none}}.disabled\:opacity-50{&:disabled{opacity:50%}}.has-\[\>svg\]\:px-1\.5{&:has(>svg){padding-inline:calc(var(--spacing)*1.5)}}.has-\[\>svg\]\:px-2\.5{&:has(>svg){padding-inline:calc(var(--spacing)*2.5)}}.has-\[\>svg\]\:px-3{&:has(>svg){padding-inline:calc(var(--spacing)*3)}}.has-\[\>svg\]\:px-4{&:has(>svg){padding-inline:calc(var(--spacing)*4)}}.aria-invalid\:border-destructive{&[aria-invalid=true]{border-color:var(--destructive)}}.aria-invalid\:ring-destructive\/20{&[aria-invalid=true]{--tw-ring-color:var(--destructive);@supports (color:color-mix(in lab,red,red)){--tw-ring-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}}.dark\:border-input{&:is(.dark *){border-color:var(--input)}}.dark\:bg-destructive\/60{&:is(.dark *){background-color:var(--destructive);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--destructive) 60%,transparent)}}}.dark\:bg-input\/30{&:is(.dark *){background-color:var(--input);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--input) 30%,transparent)}}}.dark\:hover\:bg-accent\/50{&:is(.dark *){&:hover{@media (hover:hover){background-color:var(--accent);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--accent) 50%,transparent)}}}}}.dark\:hover\:bg-input\/50{&:is(.dark *){&:hover{@media (hover:hover){background-color:var(--input);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--input) 50%,transparent)}}}}}.dark\:focus-visible\:ring-destructive\/40{&:is(.dark *){&:focus-visible{--tw-ring-color:var(--destructive);@supports (color:color-mix(in lab,red,red)){--tw-ring-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}}}.dark\:aria-invalid\:ring-destructive\/40{&:is(.dark *){&[aria-invalid=true]{--tw-ring-color:var(--destructive);@supports (color:color-mix(in lab,red,red)){--tw-ring-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}}}.\[\&_svg\]\:pointer-events-none{& svg{pointer-events:none}}.\[\&_svg\]\:shrink-0{& svg{flex-shrink:0}}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3{& svg:not([class*=size-]){height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4{& svg:not([class*=size-]){height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@layer base{*,::backdrop,::file-selector-button,:after,:before{border-color:var(--color-gray-200,currentcolor)}*{border-color:var(--border);outline-color:var(--ring);@supports (color:color-mix(in lab,red,red)){outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}:root{--radius:0.625rem;--background:oklch(1 0 0);--foreground:oklch(0.145 0 0);--card:oklch(1 0 0);--card-foreground:oklch(0.145 0 0);--popover:oklch(1 0 0);--popover-foreground:oklch(0.145 0 0);--primary:oklch(0.205 0 0);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(0.97 0 0);--secondary-foreground:oklch(0.205 0 0);--muted:oklch(0.97 0 0);--muted-foreground:oklch(0.556 0 0);--accent:oklch(0.97 0 0);--accent-foreground:oklch(0.205 0 0);--destructive:oklch(0.577 0.245 27.325);--border:oklch(0.922 0 0);--input:oklch(0.922 0 0);--ring:oklch(0.708 0 0);--chart-1:oklch(0.646 0.222 41.116);--chart-2:oklch(0.6 0.118 184.704);--chart-3:oklch(0.398 0.07 227.392);--chart-4:oklch(0.828 0.189 84.429);--chart-5:oklch(0.769 0.188 70.08);--sidebar:oklch(0.985 0 0);--sidebar-foreground:oklch(0.145 0 0);--sidebar-primary:oklch(0.205 0 0);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.97 0 0);--sidebar-accent-foreground:oklch(0.205 0 0);--sidebar-border:oklch(0.922 0 0);--sidebar-ring:oklch(0.708 0 0);--cerulean-50:#eef7ff;--cerulean-100:#d9edff;--cerulean-200:#bbe1ff;--cerulean-300:#8dceff;--cerulean-400:#57b2ff;--cerulean-500:#3090ff;--cerulean-600:#1a71f6;--cerulean-700:#1154d4;--cerulean-800:#184190;--cerulean-900:#132958}.dark{--background:oklch(0.145 0 0);--foreground:oklch(0.985 0 0);--card:oklch(0.205 0 0);--card-foreground:oklch(0.985 0 0);--popover:oklch(0.205 0 0);--popover-foreground:oklch(0.985 0 0);--primary:oklch(0.922 0 0);--primary-foreground:oklch(0.205 0 0);--secondary:oklch(0.269 0 0);--secondary-foreground:oklch(0.985 0 0);--muted:oklch(0.269 0 0);--muted-foreground:oklch(0.708 0 0);--accent:oklch(0.269 0 0);--accent-foreground:oklch(0.985 0 0);--destructive:oklch(0.704 0.191 22.216);--border:oklch(1 0 0/10%);--input:oklch(1 0 0/15%);--ring:oklch(0.556 0 0);--chart-1:oklch(0.488 0.243 264.376);--chart-2:oklch(0.696 0.17 162.48);--chart-3:oklch(0.769 0.188 70.08);--chart-4:oklch(0.627 0.265 303.9);--chart-5:oklch(0.645 0.246 16.439);--sidebar:oklch(0.205 0 0);--sidebar-foreground:oklch(0.985 0 0);--sidebar-primary:oklch(0.488 0.243 264.376);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.269 0 0);--sidebar-accent-foreground:oklch(0.985 0 0);--sidebar-border:oklch(1 0 0/10%);--sidebar-ring:oklch(0.556 0 0);--cerulean-50:#eef7ff;--cerulean-100:#d9edff;--cerulean-200:#bbe1ff;--cerulean-300:#8dceff;--cerulean-400:#57b2ff;--cerulean-500:#3090ff;--cerulean-600:#1a71f6;--cerulean-700:#1154d4;--cerulean-800:#184190;--cerulean-900:#132958}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './components';
2
- export * from './hooks';
3
- export * from './lib';
4
- import './index.css';
package/dist/index.js DELETED
@@ -1,470 +0,0 @@
1
- import require$$0, { useState, useCallback } from 'react';
2
- import { cva } from 'class-variance-authority';
3
- import { Slot } from 'radix-ui';
4
- import { clsx } from 'clsx';
5
- import { twMerge } from 'tailwind-merge';
6
-
7
- var jsxRuntime = {exports: {}};
8
-
9
- var reactJsxRuntime_production = {};
10
-
11
- /**
12
- * @license React
13
- * react-jsx-runtime.production.js
14
- *
15
- * Copyright (c) Meta Platforms, Inc. and affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
-
21
- var hasRequiredReactJsxRuntime_production;
22
-
23
- function requireReactJsxRuntime_production () {
24
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
25
- hasRequiredReactJsxRuntime_production = 1;
26
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
27
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
28
- function jsxProd(type, config, maybeKey) {
29
- var key = null;
30
- void 0 !== maybeKey && (key = "" + maybeKey);
31
- void 0 !== config.key && (key = "" + config.key);
32
- if ("key" in config) {
33
- maybeKey = {};
34
- for (var propName in config)
35
- "key" !== propName && (maybeKey[propName] = config[propName]);
36
- } else maybeKey = config;
37
- config = maybeKey.ref;
38
- return {
39
- $$typeof: REACT_ELEMENT_TYPE,
40
- type: type,
41
- key: key,
42
- ref: void 0 !== config ? config : null,
43
- props: maybeKey
44
- };
45
- }
46
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
47
- reactJsxRuntime_production.jsx = jsxProd;
48
- reactJsxRuntime_production.jsxs = jsxProd;
49
- return reactJsxRuntime_production;
50
- }
51
-
52
- var reactJsxRuntime_development = {};
53
-
54
- /**
55
- * @license React
56
- * react-jsx-runtime.development.js
57
- *
58
- * Copyright (c) Meta Platforms, Inc. and affiliates.
59
- *
60
- * This source code is licensed under the MIT license found in the
61
- * LICENSE file in the root directory of this source tree.
62
- */
63
-
64
- var hasRequiredReactJsxRuntime_development;
65
-
66
- function requireReactJsxRuntime_development () {
67
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
68
- hasRequiredReactJsxRuntime_development = 1;
69
- "production" !== process.env.NODE_ENV &&
70
- (function () {
71
- function getComponentNameFromType(type) {
72
- if (null == type) return null;
73
- if ("function" === typeof type)
74
- return type.$$typeof === REACT_CLIENT_REFERENCE
75
- ? null
76
- : type.displayName || type.name || null;
77
- if ("string" === typeof type) return type;
78
- switch (type) {
79
- case REACT_FRAGMENT_TYPE:
80
- return "Fragment";
81
- case REACT_PROFILER_TYPE:
82
- return "Profiler";
83
- case REACT_STRICT_MODE_TYPE:
84
- return "StrictMode";
85
- case REACT_SUSPENSE_TYPE:
86
- return "Suspense";
87
- case REACT_SUSPENSE_LIST_TYPE:
88
- return "SuspenseList";
89
- case REACT_ACTIVITY_TYPE:
90
- return "Activity";
91
- }
92
- if ("object" === typeof type)
93
- switch (
94
- ("number" === typeof type.tag &&
95
- console.error(
96
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
97
- ),
98
- type.$$typeof)
99
- ) {
100
- case REACT_PORTAL_TYPE:
101
- return "Portal";
102
- case REACT_CONTEXT_TYPE:
103
- return type.displayName || "Context";
104
- case REACT_CONSUMER_TYPE:
105
- return (type._context.displayName || "Context") + ".Consumer";
106
- case REACT_FORWARD_REF_TYPE:
107
- var innerType = type.render;
108
- type = type.displayName;
109
- type ||
110
- ((type = innerType.displayName || innerType.name || ""),
111
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
112
- return type;
113
- case REACT_MEMO_TYPE:
114
- return (
115
- (innerType = type.displayName || null),
116
- null !== innerType
117
- ? innerType
118
- : getComponentNameFromType(type.type) || "Memo"
119
- );
120
- case REACT_LAZY_TYPE:
121
- innerType = type._payload;
122
- type = type._init;
123
- try {
124
- return getComponentNameFromType(type(innerType));
125
- } catch (x) {}
126
- }
127
- return null;
128
- }
129
- function testStringCoercion(value) {
130
- return "" + value;
131
- }
132
- function checkKeyStringCoercion(value) {
133
- try {
134
- testStringCoercion(value);
135
- var JSCompiler_inline_result = !1;
136
- } catch (e) {
137
- JSCompiler_inline_result = !0;
138
- }
139
- if (JSCompiler_inline_result) {
140
- JSCompiler_inline_result = console;
141
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
142
- var JSCompiler_inline_result$jscomp$0 =
143
- ("function" === typeof Symbol &&
144
- Symbol.toStringTag &&
145
- value[Symbol.toStringTag]) ||
146
- value.constructor.name ||
147
- "Object";
148
- JSCompiler_temp_const.call(
149
- JSCompiler_inline_result,
150
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
151
- JSCompiler_inline_result$jscomp$0
152
- );
153
- return testStringCoercion(value);
154
- }
155
- }
156
- function getTaskName(type) {
157
- if (type === REACT_FRAGMENT_TYPE) return "<>";
158
- if (
159
- "object" === typeof type &&
160
- null !== type &&
161
- type.$$typeof === REACT_LAZY_TYPE
162
- )
163
- return "<...>";
164
- try {
165
- var name = getComponentNameFromType(type);
166
- return name ? "<" + name + ">" : "<...>";
167
- } catch (x) {
168
- return "<...>";
169
- }
170
- }
171
- function getOwner() {
172
- var dispatcher = ReactSharedInternals.A;
173
- return null === dispatcher ? null : dispatcher.getOwner();
174
- }
175
- function UnknownOwner() {
176
- return Error("react-stack-top-frame");
177
- }
178
- function hasValidKey(config) {
179
- if (hasOwnProperty.call(config, "key")) {
180
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
181
- if (getter && getter.isReactWarning) return !1;
182
- }
183
- return void 0 !== config.key;
184
- }
185
- function defineKeyPropWarningGetter(props, displayName) {
186
- function warnAboutAccessingKey() {
187
- specialPropKeyWarningShown ||
188
- ((specialPropKeyWarningShown = !0),
189
- console.error(
190
- "%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)",
191
- displayName
192
- ));
193
- }
194
- warnAboutAccessingKey.isReactWarning = !0;
195
- Object.defineProperty(props, "key", {
196
- get: warnAboutAccessingKey,
197
- configurable: !0
198
- });
199
- }
200
- function elementRefGetterWithDeprecationWarning() {
201
- var componentName = getComponentNameFromType(this.type);
202
- didWarnAboutElementRef[componentName] ||
203
- ((didWarnAboutElementRef[componentName] = !0),
204
- console.error(
205
- "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."
206
- ));
207
- componentName = this.props.ref;
208
- return void 0 !== componentName ? componentName : null;
209
- }
210
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
211
- var refProp = props.ref;
212
- type = {
213
- $$typeof: REACT_ELEMENT_TYPE,
214
- type: type,
215
- key: key,
216
- props: props,
217
- _owner: owner
218
- };
219
- null !== (void 0 !== refProp ? refProp : null)
220
- ? Object.defineProperty(type, "ref", {
221
- enumerable: !1,
222
- get: elementRefGetterWithDeprecationWarning
223
- })
224
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
225
- type._store = {};
226
- Object.defineProperty(type._store, "validated", {
227
- configurable: !1,
228
- enumerable: !1,
229
- writable: !0,
230
- value: 0
231
- });
232
- Object.defineProperty(type, "_debugInfo", {
233
- configurable: !1,
234
- enumerable: !1,
235
- writable: !0,
236
- value: null
237
- });
238
- Object.defineProperty(type, "_debugStack", {
239
- configurable: !1,
240
- enumerable: !1,
241
- writable: !0,
242
- value: debugStack
243
- });
244
- Object.defineProperty(type, "_debugTask", {
245
- configurable: !1,
246
- enumerable: !1,
247
- writable: !0,
248
- value: debugTask
249
- });
250
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
251
- return type;
252
- }
253
- function jsxDEVImpl(
254
- type,
255
- config,
256
- maybeKey,
257
- isStaticChildren,
258
- debugStack,
259
- debugTask
260
- ) {
261
- var children = config.children;
262
- if (void 0 !== children)
263
- if (isStaticChildren)
264
- if (isArrayImpl(children)) {
265
- for (
266
- isStaticChildren = 0;
267
- isStaticChildren < children.length;
268
- isStaticChildren++
269
- )
270
- validateChildKeys(children[isStaticChildren]);
271
- Object.freeze && Object.freeze(children);
272
- } else
273
- console.error(
274
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
275
- );
276
- else validateChildKeys(children);
277
- if (hasOwnProperty.call(config, "key")) {
278
- children = getComponentNameFromType(type);
279
- var keys = Object.keys(config).filter(function (k) {
280
- return "key" !== k;
281
- });
282
- isStaticChildren =
283
- 0 < keys.length
284
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
285
- : "{key: someKey}";
286
- didWarnAboutKeySpread[children + isStaticChildren] ||
287
- ((keys =
288
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
289
- console.error(
290
- '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} />',
291
- isStaticChildren,
292
- children,
293
- keys,
294
- children
295
- ),
296
- (didWarnAboutKeySpread[children + isStaticChildren] = !0));
297
- }
298
- children = null;
299
- void 0 !== maybeKey &&
300
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
301
- hasValidKey(config) &&
302
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
303
- if ("key" in config) {
304
- maybeKey = {};
305
- for (var propName in config)
306
- "key" !== propName && (maybeKey[propName] = config[propName]);
307
- } else maybeKey = config;
308
- children &&
309
- defineKeyPropWarningGetter(
310
- maybeKey,
311
- "function" === typeof type
312
- ? type.displayName || type.name || "Unknown"
313
- : type
314
- );
315
- return ReactElement(
316
- type,
317
- children,
318
- maybeKey,
319
- getOwner(),
320
- debugStack,
321
- debugTask
322
- );
323
- }
324
- function validateChildKeys(node) {
325
- isValidElement(node)
326
- ? node._store && (node._store.validated = 1)
327
- : "object" === typeof node &&
328
- null !== node &&
329
- node.$$typeof === REACT_LAZY_TYPE &&
330
- ("fulfilled" === node._payload.status
331
- ? isValidElement(node._payload.value) &&
332
- node._payload.value._store &&
333
- (node._payload.value._store.validated = 1)
334
- : node._store && (node._store.validated = 1));
335
- }
336
- function isValidElement(object) {
337
- return (
338
- "object" === typeof object &&
339
- null !== object &&
340
- object.$$typeof === REACT_ELEMENT_TYPE
341
- );
342
- }
343
- var React = require$$0,
344
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
345
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
346
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
347
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
348
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
349
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
350
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
351
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
352
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
353
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
354
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
355
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
356
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
357
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
358
- ReactSharedInternals =
359
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
360
- hasOwnProperty = Object.prototype.hasOwnProperty,
361
- isArrayImpl = Array.isArray,
362
- createTask = console.createTask
363
- ? console.createTask
364
- : function () {
365
- return null;
366
- };
367
- React = {
368
- react_stack_bottom_frame: function (callStackForError) {
369
- return callStackForError();
370
- }
371
- };
372
- var specialPropKeyWarningShown;
373
- var didWarnAboutElementRef = {};
374
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
375
- React,
376
- UnknownOwner
377
- )();
378
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
379
- var didWarnAboutKeySpread = {};
380
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
381
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
382
- var trackActualOwner =
383
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
384
- return jsxDEVImpl(
385
- type,
386
- config,
387
- maybeKey,
388
- !1,
389
- trackActualOwner
390
- ? Error("react-stack-top-frame")
391
- : unknownOwnerDebugStack,
392
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
393
- );
394
- };
395
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
396
- var trackActualOwner =
397
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
398
- return jsxDEVImpl(
399
- type,
400
- config,
401
- maybeKey,
402
- !0,
403
- trackActualOwner
404
- ? Error("react-stack-top-frame")
405
- : unknownOwnerDebugStack,
406
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
407
- );
408
- };
409
- })();
410
- return reactJsxRuntime_development;
411
- }
412
-
413
- if (process.env.NODE_ENV === 'production') {
414
- jsxRuntime.exports = requireReactJsxRuntime_production();
415
- } else {
416
- jsxRuntime.exports = requireReactJsxRuntime_development();
417
- }
418
-
419
- var jsxRuntimeExports = jsxRuntime.exports;
420
-
421
- function cn(...inputs) {
422
- return twMerge(clsx(inputs));
423
- }
424
-
425
- const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
426
- variants: {
427
- variant: {
428
- default: 'bg-cerulean-600 text-white hover:bg-cerulean-700 focus-visible:ring-cerulean-600/20',
429
- destructive: 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
430
- outline: 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
431
- secondary: 'border border-cerulean-600 bg-white text-cerulean-600 hover:bg-cerulean-50 focus-visible:ring-cerulean-600/20',
432
- ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
433
- link: 'text-primary underline-offset-4 hover:underline',
434
- },
435
- size: {
436
- default: 'h-9 px-4 py-2 has-[>svg]:px-3',
437
- xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
438
- sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',
439
- lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
440
- icon: 'size-9',
441
- 'icon-xs': "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
442
- 'icon-sm': 'size-8',
443
- 'icon-lg': 'size-10',
444
- },
445
- },
446
- defaultVariants: {
447
- variant: 'default',
448
- size: 'default',
449
- },
450
- });
451
- function Button({ className, variant = 'default', size = 'default', asChild = false, ...props }) {
452
- const Comp = asChild ? Slot.Root : 'button';
453
- return (jsxRuntimeExports.jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), "data-size": size, "data-slot": "button", "data-variant": variant, ...props }));
454
- }
455
-
456
- /**
457
- * A simple boolean toggle hook.
458
- *
459
- * @param initial initial value (defaults to false)
460
- * @returns an object with the current state and helpers to toggle / set on / set off
461
- */
462
- function useToggle(initial = false) {
463
- const [state, setState] = useState(initial);
464
- const toggle = useCallback(() => setState((s) => !s), []);
465
- const setOn = useCallback(() => setState(true), []);
466
- const setOff = useCallback(() => setState(false), []);
467
- return { state, toggle, setOn, setOff };
468
- }
469
-
470
- export { Button, cn, useToggle };
@@ -1 +0,0 @@
1
- export { cn } from './utils';
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;