@c15t/dev-tools 0.0.1-rc.9 → 1.0.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/README.md +1 -1
- package/dist/components/error-state.cjs +88 -117
- package/dist/components/error-state.css +25 -28
- package/dist/components/error-state.d.ts +4 -6
- package/dist/components/error-state.js +61 -108
- package/dist/components/header.cjs +55 -74
- package/dist/components/header.css +18 -17
- package/dist/components/header.d.ts +3 -5
- package/dist/components/header.js +28 -45
- package/dist/components/ui/accordion.cjs +71 -101
- package/dist/components/ui/accordion.css +39 -39
- package/dist/components/ui/accordion.d.ts +5 -32
- package/dist/components/ui/accordion.js +36 -70
- package/dist/components/ui/alert.cjs +66 -80
- package/dist/components/ui/alert.css +27 -30
- package/dist/components/ui/alert.d.ts +6 -22
- package/dist/components/ui/alert.js +34 -54
- package/dist/components/ui/badge.cjs +52 -62
- package/dist/components/ui/badge.css +27 -39
- package/dist/components/ui/badge.d.ts +7 -22
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +23 -31
- package/dist/components/ui/button.cjs +67 -76
- package/dist/components/ui/button.css +40 -43
- package/dist/components/ui/button.d.ts +8 -24
- package/dist/components/ui/button.js +38 -47
- package/dist/components/ui/card.cjs +76 -92
- package/dist/components/ui/card.css +21 -20
- package/dist/components/ui/card.d.ts +8 -29
- package/dist/components/ui/card.js +35 -76
- package/dist/components/ui/error-state.css +20 -19
- package/dist/components/ui/expandable-tabs.cjs +118 -158
- package/dist/components/ui/expandable-tabs.css +34 -33
- package/dist/components/ui/expandable-tabs.d.ts +13 -20
- package/dist/components/ui/expandable-tabs.js +91 -131
- package/dist/components/ui/logo.cjs +93 -106
- package/dist/components/ui/logo.d.ts +5 -11
- package/dist/components/ui/logo.d.ts.map +1 -1
- package/dist/components/ui/logo.js +67 -82
- package/dist/components/ui/scroll-area.cjs +57 -85
- package/dist/components/ui/scroll-area.css +25 -24
- package/dist/components/ui/scroll-area.d.ts +3 -17
- package/dist/components/ui/scroll-area.js +28 -62
- package/dist/components/ui/switch.cjs +39 -56
- package/dist/components/ui/switch.css +26 -25
- package/dist/components/ui/switch.d.ts +2 -9
- package/dist/components/ui/switch.js +13 -25
- package/dist/components/ui/tooltip.cjs +48 -60
- package/dist/components/ui/tooltip.css +64 -63
- package/dist/components/ui/tooltip.d.ts +5 -17
- package/dist/components/ui/tooltip.js +16 -32
- package/dist/components/wrapper.cjs +148 -205
- package/dist/components/wrapper.css +49 -48
- package/dist/components/wrapper.d.ts +7 -12
- package/dist/components/wrapper.js +119 -186
- package/dist/dev-tool.cjs +112 -153
- package/dist/dev-tool.d.ts +6 -6
- package/dist/dev-tool.d.ts.map +1 -1
- package/dist/dev-tool.js +71 -108
- package/dist/index.cjs +28 -36
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/libs/utils.cjs +39 -58
- package/dist/libs/utils.d.ts +1 -1
- package/dist/libs/utils.js +3 -5
- package/dist/router/router.cjs +145 -193
- package/dist/router/router.d.ts +3 -5
- package/dist/router/router.d.ts.map +1 -1
- package/dist/router/router.js +118 -174
- package/dist/styles/theme.css +37 -36
- package/package.json +12 -12
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__ from
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from
|
|
4
|
-
import
|
|
5
|
-
const badgeVariants = (0,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
variant: 'default',
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
);
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__ from "class-variance-authority";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from "../../libs/utils.js";
|
|
4
|
+
import "./badge.css";
|
|
5
|
+
const badgeVariants = (0, __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)('c15t-devtool-badge', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'c15t-devtool-badge-default',
|
|
9
|
+
secondary: 'c15t-devtool-badge-secondary',
|
|
10
|
+
destructive: 'c15t-devtool-badge-destructive',
|
|
11
|
+
outline: 'c15t-devtool-badge-outline'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: 'default'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
22
18
|
function Badge({ className, variant, ...props }) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
...props,
|
|
32
|
-
});
|
|
19
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
20
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(badgeVariants({
|
|
21
|
+
variant
|
|
22
|
+
}), className),
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
33
25
|
}
|
|
34
26
|
export { Badge, badgeVariants };
|
|
@@ -1,86 +1,77 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports1, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: definition[key],
|
|
13
|
-
});
|
|
14
|
-
};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
15
10
|
})();
|
|
16
|
-
(()
|
|
17
|
-
|
|
18
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
19
|
-
};
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
20
13
|
})();
|
|
21
|
-
(()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
31
23
|
})();
|
|
32
24
|
var __webpack_exports__ = {};
|
|
33
25
|
__webpack_require__.r(__webpack_exports__);
|
|
34
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
buttonVariants: ()=>buttonVariants,
|
|
28
|
+
Button: ()=>Button
|
|
37
29
|
});
|
|
38
|
-
const jsx_runtime_namespaceObject = require(
|
|
39
|
-
const react_slot_namespaceObject = require(
|
|
40
|
-
const external_class_variance_authority_namespaceObject = require(
|
|
41
|
-
const external_react_namespaceObject = require(
|
|
42
|
-
require(
|
|
43
|
-
const buttonVariants = (0,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const react_slot_namespaceObject = require("@radix-ui/react-slot");
|
|
32
|
+
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
|
+
require("./button.css");
|
|
35
|
+
const buttonVariants = (0, external_class_variance_authority_namespaceObject.cva)('c15t-devtool-button', {
|
|
36
|
+
variants: {
|
|
37
|
+
variant: {
|
|
38
|
+
default: 'c15t-devtool-button-default',
|
|
39
|
+
destructive: 'c15t-devtool-button-destructive',
|
|
40
|
+
outline: 'c15t-devtool-button-outline',
|
|
41
|
+
secondary: 'c15t-devtool-button-secondary',
|
|
42
|
+
ghost: 'c15t-devtool-button-ghost',
|
|
43
|
+
link: 'c15t-devtool-button-link'
|
|
44
|
+
},
|
|
45
|
+
size: {
|
|
46
|
+
default: 'c15t-devtool-button-size-default',
|
|
47
|
+
sm: 'c15t-devtool-button-size-sm',
|
|
48
|
+
lg: 'c15t-devtool-button-size-lg',
|
|
49
|
+
icon: 'c15t-devtool-button-size-icon'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
variant: 'default',
|
|
54
|
+
size: 'default'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const Button = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, variant, size, asChild = false, ...props }, ref)=>{
|
|
58
|
+
const Comp = asChild ? react_slot_namespaceObject.Slot : 'button';
|
|
59
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
|
|
60
|
+
className: `${buttonVariants({
|
|
61
|
+
variant,
|
|
62
|
+
size
|
|
63
|
+
})} ${className || ''}`,
|
|
64
|
+
ref: ref,
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
65
67
|
});
|
|
66
|
-
const Button = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
67
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
68
|
-
const Comp = asChild ? react_slot_namespaceObject.Slot : 'button';
|
|
69
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
|
|
70
|
-
className: `${buttonVariants({
|
|
71
|
-
variant,
|
|
72
|
-
size,
|
|
73
|
-
})} ${className || ''}`,
|
|
74
|
-
ref: ref,
|
|
75
|
-
...props,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
68
|
Button.displayName = 'Button';
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
exports.Button = __webpack_exports__.Button;
|
|
70
|
+
exports.buttonVariants = __webpack_exports__.buttonVariants;
|
|
71
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
72
|
+
"Button",
|
|
73
|
+
"buttonVariants"
|
|
74
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
75
|
+
Object.defineProperty(exports, '__esModule', {
|
|
76
|
+
value: true
|
|
77
|
+
});
|
|
@@ -1,90 +1,87 @@
|
|
|
1
1
|
.c15t-devtool-button {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
border-radius: .375rem;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: .5rem;
|
|
6
|
+
font-size: .875rem;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
transition-property: color, background-color, border-color;
|
|
9
|
+
transition-duration: .15s;
|
|
10
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
11
|
+
display: inline-flex;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.c15t-devtool-button:focus-visible {
|
|
15
|
-
|
|
15
|
+
outline: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.c15t-devtool-button:disabled {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
opacity: .5;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.c15t-devtool-button-default {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
background-color: var(--c15t-dev-tools-primary);
|
|
25
|
+
color: var(--c15t-dev-tools-primary-foreground);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.c15t-devtool-button-destructive {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
background-color: var(--c15t-dev-tools-destructive);
|
|
30
|
+
color: var(--c15t-dev-tools-destructive-foreground);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.c15t-devtool-button-outline {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
border: 1px solid var(--c15t-dev-tools-input);
|
|
35
|
+
background-color: var(--c15t-dev-tools-background);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.c15t-devtool-button-outline:hover {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
background-color: var(--c15t-dev-tools-accent);
|
|
40
|
+
color: var(--c15t-dev-tools-accent-foreground);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.c15t-devtool-button-secondary {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
background-color: var(--c15t-dev-tools-secondary);
|
|
45
|
+
color: var(--c15t-dev-tools-secondary-foreground);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.c15t-devtool-button-secondary:hover {
|
|
49
|
-
|
|
50
|
-
in srgb,
|
|
51
|
-
var(--c15t-dev-tools-secondary) 80%,
|
|
52
|
-
transparent
|
|
53
|
-
);
|
|
49
|
+
background-color: color-mix(in srgb, var(--c15t-dev-tools-secondary) 80%, transparent);
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
.c15t-devtool-button-ghost:hover {
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
background-color: var(--c15t-dev-tools-accent);
|
|
54
|
+
color: var(--c15t-dev-tools-accent-foreground);
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
.c15t-devtool-button-link {
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
color: var(--c15t-dev-tools-primary);
|
|
59
|
+
text-underline-offset: 4px;
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
.c15t-devtool-button-link:hover {
|
|
67
|
-
|
|
63
|
+
text-decoration: underline;
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
.c15t-devtool-button-size-default {
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
height: 2.5rem;
|
|
68
|
+
padding: .5rem 1rem;
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
.c15t-devtool-button-size-sm {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
border-radius: .375rem;
|
|
73
|
+
height: 2.25rem;
|
|
74
|
+
padding: 0 .75rem;
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
.c15t-devtool-button-size-lg {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
border-radius: .375rem;
|
|
79
|
+
height: 2.75rem;
|
|
80
|
+
padding: 0 2rem;
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
.c15t-devtool-button-size-icon {
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
width: 2.5rem;
|
|
85
|
+
height: 2.5rem;
|
|
90
86
|
}
|
|
87
|
+
|
|
@@ -1,29 +1,13 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { type ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import './button.css';
|
|
4
|
-
declare const buttonVariants: (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
| 'link'
|
|
11
|
-
| 'outline'
|
|
12
|
-
| 'secondary'
|
|
13
|
-
| 'ghost'
|
|
14
|
-
| null
|
|
15
|
-
| undefined;
|
|
16
|
-
size?: 'default' | 'sm' | 'lg' | 'icon' | null | undefined;
|
|
17
|
-
} & import('class-variance-authority/types').ClassProp)
|
|
18
|
-
| undefined
|
|
19
|
-
) => string;
|
|
20
|
-
export interface ButtonProps
|
|
21
|
-
extends ButtonHTMLAttributes<HTMLButtonElement>,
|
|
22
|
-
VariantProps<typeof buttonVariants> {
|
|
23
|
-
asChild?: boolean;
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
9
|
+
asChild?: boolean;
|
|
24
10
|
}
|
|
25
|
-
declare const Button: import(
|
|
26
|
-
ButtonProps & import('react').RefAttributes<HTMLButtonElement>
|
|
27
|
-
>;
|
|
11
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
12
|
export { Button, buttonVariants };
|
|
29
|
-
//# sourceMappingURL=button.d.ts.map
|
|
13
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,49 +1,40 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__ from
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__ from
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from
|
|
5
|
-
import
|
|
6
|
-
const buttonVariants = (0,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
className: `${buttonVariants({
|
|
40
|
-
variant,
|
|
41
|
-
size,
|
|
42
|
-
})} ${className || ''}`,
|
|
43
|
-
ref: ref,
|
|
44
|
-
...props,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
);
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__ from "@radix-ui/react-slot";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__ from "class-variance-authority";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
|
+
import "./button.css";
|
|
6
|
+
const buttonVariants = (0, __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)('c15t-devtool-button', {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: 'c15t-devtool-button-default',
|
|
10
|
+
destructive: 'c15t-devtool-button-destructive',
|
|
11
|
+
outline: 'c15t-devtool-button-outline',
|
|
12
|
+
secondary: 'c15t-devtool-button-secondary',
|
|
13
|
+
ghost: 'c15t-devtool-button-ghost',
|
|
14
|
+
link: 'c15t-devtool-button-link'
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
default: 'c15t-devtool-button-size-default',
|
|
18
|
+
sm: 'c15t-devtool-button-size-sm',
|
|
19
|
+
lg: 'c15t-devtool-button-size-lg',
|
|
20
|
+
icon: 'c15t-devtool-button-size-icon'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: 'default',
|
|
25
|
+
size: 'default'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const Button = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, variant, size, asChild = false, ...props }, ref)=>{
|
|
29
|
+
const Comp = asChild ? __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__.Slot : 'button';
|
|
30
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Comp, {
|
|
31
|
+
className: `${buttonVariants({
|
|
32
|
+
variant,
|
|
33
|
+
size
|
|
34
|
+
})} ${className || ''}`,
|
|
35
|
+
ref: ref,
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
});
|
|
48
39
|
Button.displayName = 'Button';
|
|
49
40
|
export { Button, buttonVariants };
|
|
@@ -1,105 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports1, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: definition[key],
|
|
13
|
-
});
|
|
14
|
-
};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
15
10
|
})();
|
|
16
|
-
(()
|
|
17
|
-
|
|
18
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
19
|
-
};
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
20
13
|
})();
|
|
21
|
-
(()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
31
23
|
})();
|
|
32
24
|
var __webpack_exports__ = {};
|
|
33
25
|
__webpack_require__.r(__webpack_exports__);
|
|
34
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
CardDescription: ()=>CardDescription,
|
|
28
|
+
CardContent: ()=>CardContent,
|
|
29
|
+
CardHeader: ()=>CardHeader,
|
|
30
|
+
Card: ()=>Card,
|
|
31
|
+
CardTitle: ()=>CardTitle,
|
|
32
|
+
CardFooter: ()=>CardFooter
|
|
41
33
|
});
|
|
42
|
-
const jsx_runtime_namespaceObject = require(
|
|
43
|
-
const external_react_namespaceObject = require(
|
|
44
|
-
require(
|
|
45
|
-
const Card = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
...props,
|
|
51
|
-
})
|
|
52
|
-
);
|
|
34
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
35
|
+
const external_react_namespaceObject = require("react");
|
|
36
|
+
require("./card.css");
|
|
37
|
+
const Card = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
38
|
+
ref: ref,
|
|
39
|
+
className: `c15t-devtool-card ${className || ''}`,
|
|
40
|
+
...props
|
|
41
|
+
}));
|
|
53
42
|
Card.displayName = 'Card';
|
|
54
|
-
const CardHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
...props,
|
|
60
|
-
})
|
|
61
|
-
);
|
|
43
|
+
const CardHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
44
|
+
ref: ref,
|
|
45
|
+
className: `c15t-devtool-card-header ${className || ''}`,
|
|
46
|
+
...props
|
|
47
|
+
}));
|
|
62
48
|
CardHeader.displayName = 'CardHeader';
|
|
63
|
-
const CardTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
...props,
|
|
69
|
-
})
|
|
70
|
-
);
|
|
49
|
+
const CardTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
50
|
+
ref: ref,
|
|
51
|
+
className: `c15t-devtool-card-title ${className || ''}`,
|
|
52
|
+
...props
|
|
53
|
+
}));
|
|
71
54
|
CardTitle.displayName = 'CardTitle';
|
|
72
|
-
const CardDescription = /*#__PURE__*/ (0,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
|
|
84
|
-
ref: ref,
|
|
85
|
-
className: `c15t-devtool-card-content ${className || ''}`,
|
|
86
|
-
...props,
|
|
87
|
-
})
|
|
88
|
-
);
|
|
55
|
+
const CardDescription = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
56
|
+
ref: ref,
|
|
57
|
+
className: `c15t-devtool-card-description ${className || ''}`,
|
|
58
|
+
...props
|
|
59
|
+
}));
|
|
60
|
+
CardDescription.displayName = "CardDescription";
|
|
61
|
+
const CardContent = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
62
|
+
ref: ref,
|
|
63
|
+
className: `c15t-devtool-card-content ${className || ''}`,
|
|
64
|
+
...props
|
|
65
|
+
}));
|
|
89
66
|
CardContent.displayName = 'CardContent';
|
|
90
|
-
const CardFooter = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...props,
|
|
96
|
-
})
|
|
97
|
-
);
|
|
67
|
+
const CardFooter = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
68
|
+
ref: ref,
|
|
69
|
+
className: `c15t-devtool-card-footer ${className || ''}`,
|
|
70
|
+
...props
|
|
71
|
+
}));
|
|
98
72
|
CardFooter.displayName = 'CardFooter';
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
73
|
+
exports.Card = __webpack_exports__.Card;
|
|
74
|
+
exports.CardContent = __webpack_exports__.CardContent;
|
|
75
|
+
exports.CardDescription = __webpack_exports__.CardDescription;
|
|
76
|
+
exports.CardFooter = __webpack_exports__.CardFooter;
|
|
77
|
+
exports.CardHeader = __webpack_exports__.CardHeader;
|
|
78
|
+
exports.CardTitle = __webpack_exports__.CardTitle;
|
|
79
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
80
|
+
"Card",
|
|
81
|
+
"CardContent",
|
|
82
|
+
"CardDescription",
|
|
83
|
+
"CardFooter",
|
|
84
|
+
"CardHeader",
|
|
85
|
+
"CardTitle"
|
|
86
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
87
|
+
Object.defineProperty(exports, '__esModule', {
|
|
88
|
+
value: true
|
|
89
|
+
});
|