@c15t/dev-tools 0.0.1-rc.3 → 0.0.1-rc.4
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 +87 -115
- package/dist/components/error-state.css +51 -0
- package/dist/components/error-state.d.ts +5 -6
- package/dist/components/error-state.d.ts.map +1 -1
- package/dist/components/error-state.js +61 -107
- package/dist/components/header.cjs +54 -77
- package/dist/components/header.css +29 -0
- package/dist/components/header.d.ts +4 -5
- package/dist/components/header.d.ts.map +1 -1
- package/dist/components/header.js +28 -53
- package/dist/components/ui/accordion.cjs +64 -107
- package/dist/components/ui/accordion.css +72 -0
- package/dist/components/ui/accordion.d.ts +6 -32
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +36 -81
- package/dist/components/ui/alert.cjs +62 -93
- package/dist/components/ui/alert.css +59 -0
- package/dist/components/ui/alert.d.ts +7 -22
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +34 -64
- package/dist/components/ui/badge.cjs +61 -0
- package/dist/components/ui/badge.css +52 -0
- package/dist/components/ui/badge.d.ts +11 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/button.cjs +65 -85
- package/dist/components/ui/button.css +87 -0
- package/dist/components/ui/button.d.ts +9 -24
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +38 -53
- package/dist/components/ui/card.cjs +65 -106
- package/dist/components/ui/card.css +41 -0
- package/dist/components/ui/card.d.ts +9 -29
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +35 -94
- package/dist/components/ui/error-state.css +34 -0
- package/dist/components/ui/expandable-tabs.cjs +117 -182
- package/dist/components/ui/expandable-tabs.css +57 -0
- package/dist/components/ui/expandable-tabs.d.ts +14 -20
- package/dist/components/ui/expandable-tabs.d.ts.map +1 -1
- package/dist/components/ui/expandable-tabs.js +91 -159
- package/dist/components/ui/logo.cjs +101 -0
- package/dist/components/ui/logo.d.ts +8 -0
- package/dist/components/ui/logo.d.ts.map +1 -0
- package/dist/components/ui/logo.js +67 -0
- package/dist/components/ui/scroll-area.cjs +54 -94
- package/dist/components/ui/scroll-area.css +42 -0
- package/dist/components/ui/scroll-area.d.ts +4 -17
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +28 -72
- package/dist/components/ui/switch.cjs +38 -60
- package/dist/components/ui/switch.css +49 -0
- package/dist/components/ui/switch.d.ts +3 -9
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +13 -31
- package/dist/components/ui/tooltip.cjs +41 -61
- package/dist/components/ui/tooltip.css +101 -0
- package/dist/components/ui/tooltip.d.ts +6 -14
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +16 -36
- package/dist/components/wrapper.cjs +144 -185
- package/dist/components/wrapper.css +90 -0
- package/dist/components/wrapper.d.ts +8 -12
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/components/wrapper.js +117 -161
- package/dist/dev-tool.cjs +110 -150
- package/dist/dev-tool.d.ts +8 -7
- package/dist/dev-tool.d.ts.map +1 -1
- package/dist/dev-tool.js +70 -106
- package/dist/index.cjs +27 -37
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/dist/libs/utils.cjs +42 -57
- package/dist/libs/utils.d.ts +1 -1
- package/dist/libs/utils.js +3 -5
- package/dist/router/router.cjs +145 -265
- package/dist/router/router.d.ts +3 -5
- package/dist/router/router.d.ts.map +1 -1
- package/dist/router/router.js +119 -256
- package/dist/styles/theme.css +42 -0
- package/package.json +2 -2
- package/.turbo/turbo-build.log +0 -56
- package/.turbo/turbo-fmt.log +0 -6
- package/.turbo/turbo-lint.log +0 -73
- package/dist/components/ui/overlay.cjs +0 -69
- package/dist/components/ui/overlay.d.ts +0 -7
- package/dist/components/ui/overlay.d.ts.map +0 -1
- package/dist/components/ui/overlay.js +0 -28
- package/rslib.config.ts +0 -28
- package/src/components/error-state.tsx +0 -44
- package/src/components/header.tsx +0 -28
- package/src/components/ui/accordion.tsx +0 -64
- package/src/components/ui/alert.tsx +0 -59
- package/src/components/ui/button.tsx +0 -56
- package/src/components/ui/card.tsx +0 -81
- package/src/components/ui/expandable-tabs.tsx +0 -174
- package/src/components/ui/overlay.tsx +0 -21
- package/src/components/ui/scroll-area.tsx +0 -52
- package/src/components/ui/switch.tsx +0 -28
- package/src/components/ui/tooltip.tsx +0 -32
- package/src/components/wrapper.tsx +0 -103
- package/src/dev-tool.tsx +0 -117
- package/src/index.ts +0 -3
- package/src/libs/utils.ts +0 -6
- package/src/router/router.tsx +0 -164
|
@@ -1,95 +1,75 @@
|
|
|
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 = function(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
|
-
|
|
19
|
-
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
20
15
|
})();
|
|
21
|
-
(()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
31
25
|
})();
|
|
32
26
|
var __webpack_exports__ = {};
|
|
33
27
|
__webpack_require__.r(__webpack_exports__);
|
|
34
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
buttonVariants: ()=>buttonVariants,
|
|
30
|
+
Button: ()=>Button
|
|
31
|
+
});
|
|
32
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
33
|
+
const react_slot_namespaceObject = require("@radix-ui/react-slot");
|
|
34
|
+
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
35
|
+
const external_react_namespaceObject = require("react");
|
|
36
|
+
require("./button.css");
|
|
37
|
+
const buttonVariants = (0, external_class_variance_authority_namespaceObject.cva)('c15t-devtool-button', {
|
|
38
|
+
variants: {
|
|
39
|
+
variant: {
|
|
40
|
+
default: 'c15t-devtool-button-default',
|
|
41
|
+
destructive: 'c15t-devtool-button-destructive',
|
|
42
|
+
outline: 'c15t-devtool-button-outline',
|
|
43
|
+
secondary: 'c15t-devtool-button-secondary',
|
|
44
|
+
ghost: 'c15t-devtool-button-ghost',
|
|
45
|
+
link: 'c15t-devtool-button-link'
|
|
46
|
+
},
|
|
47
|
+
size: {
|
|
48
|
+
default: 'c15t-devtool-button-size-default',
|
|
49
|
+
sm: 'c15t-devtool-button-size-sm',
|
|
50
|
+
lg: 'c15t-devtool-button-size-lg',
|
|
51
|
+
icon: 'c15t-devtool-button-size-icon'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: {
|
|
55
|
+
variant: 'default',
|
|
56
|
+
size: 'default'
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const Button = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, variant, size, asChild = false, ...props }, ref)=>{
|
|
60
|
+
const Comp = asChild ? react_slot_namespaceObject.Slot : 'button';
|
|
61
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
|
|
62
|
+
className: `${buttonVariants({
|
|
63
|
+
variant,
|
|
64
|
+
size
|
|
65
|
+
})} ${className || ''}`,
|
|
66
|
+
ref: ref,
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
37
69
|
});
|
|
38
|
-
const jsx_runtime_namespaceObject = require('react/jsx-runtime');
|
|
39
|
-
const react_slot_namespaceObject = require('@radix-ui/react-slot');
|
|
40
|
-
const external_class_variance_authority_namespaceObject = require('class-variance-authority');
|
|
41
|
-
const external_react_namespaceObject = require('react');
|
|
42
|
-
const utils_cjs_namespaceObject = require('../../libs/utils.cjs');
|
|
43
|
-
const buttonVariants = (0,
|
|
44
|
-
external_class_variance_authority_namespaceObject.cva)(
|
|
45
|
-
'inline-flex items-center justify-center rounded-md font-medium text-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
|
|
46
|
-
{
|
|
47
|
-
variants: {
|
|
48
|
-
variant: {
|
|
49
|
-
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
50
|
-
destructive:
|
|
51
|
-
'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
52
|
-
outline:
|
|
53
|
-
'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
54
|
-
secondary:
|
|
55
|
-
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
56
|
-
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
57
|
-
link: 'text-primary underline-offset-4 hover:underline',
|
|
58
|
-
},
|
|
59
|
-
size: {
|
|
60
|
-
default: 'h-10 px-4 py-2',
|
|
61
|
-
sm: 'h-9 rounded-md px-3',
|
|
62
|
-
lg: 'h-11 rounded-md px-8',
|
|
63
|
-
icon: 'h-10 w-10',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
defaultVariants: {
|
|
67
|
-
variant: 'default',
|
|
68
|
-
size: 'default',
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
const Button = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
73
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
74
|
-
const Comp = asChild ? react_slot_namespaceObject.Slot : 'button';
|
|
75
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
|
|
76
|
-
className: (0, utils_cjs_namespaceObject.cn)(
|
|
77
|
-
buttonVariants({
|
|
78
|
-
variant,
|
|
79
|
-
size,
|
|
80
|
-
className,
|
|
81
|
-
})
|
|
82
|
-
),
|
|
83
|
-
ref: ref,
|
|
84
|
-
...props,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
70
|
Button.displayName = 'Button';
|
|
89
71
|
var __webpack_export_target__ = exports;
|
|
90
|
-
for
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
value: true,
|
|
95
|
-
});
|
|
72
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
73
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
74
|
+
value: true
|
|
75
|
+
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.c15t-devtool-button {
|
|
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
|
+
}
|
|
13
|
+
|
|
14
|
+
.c15t-devtool-button:focus-visible {
|
|
15
|
+
outline: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.c15t-devtool-button:disabled {
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
opacity: .5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.c15t-devtool-button-default {
|
|
24
|
+
background-color: var(--c15t-dev-tools-primary);
|
|
25
|
+
color: var(--c15t-dev-tools-primary-foreground);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.c15t-devtool-button-destructive {
|
|
29
|
+
background-color: var(--c15t-dev-tools-destructive);
|
|
30
|
+
color: var(--c15t-dev-tools-destructive-foreground);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.c15t-devtool-button-outline {
|
|
34
|
+
border: 1px solid var(--c15t-dev-tools-input);
|
|
35
|
+
background-color: var(--c15t-dev-tools-background);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.c15t-devtool-button-outline:hover {
|
|
39
|
+
background-color: var(--c15t-dev-tools-accent);
|
|
40
|
+
color: var(--c15t-dev-tools-accent-foreground);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.c15t-devtool-button-secondary {
|
|
44
|
+
background-color: var(--c15t-dev-tools-secondary);
|
|
45
|
+
color: var(--c15t-dev-tools-secondary-foreground);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.c15t-devtool-button-secondary:hover {
|
|
49
|
+
background-color: color-mix(in srgb, var(--c15t-dev-tools-secondary) 80%, transparent);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.c15t-devtool-button-ghost:hover {
|
|
53
|
+
background-color: var(--c15t-dev-tools-accent);
|
|
54
|
+
color: var(--c15t-dev-tools-accent-foreground);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.c15t-devtool-button-link {
|
|
58
|
+
color: var(--c15t-dev-tools-primary);
|
|
59
|
+
text-underline-offset: 4px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.c15t-devtool-button-link:hover {
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.c15t-devtool-button-size-default {
|
|
67
|
+
height: 2.5rem;
|
|
68
|
+
padding: .5rem 1rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.c15t-devtool-button-size-sm {
|
|
72
|
+
border-radius: .375rem;
|
|
73
|
+
height: 2.25rem;
|
|
74
|
+
padding: 0 .75rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.c15t-devtool-button-size-lg {
|
|
78
|
+
border-radius: .375rem;
|
|
79
|
+
height: 2.75rem;
|
|
80
|
+
padding: 0 2rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.c15t-devtool-button-size-icon {
|
|
84
|
+
width: 2.5rem;
|
|
85
|
+
height: 2.5rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -1,28 +1,13 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { type ButtonHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
| 'destructive'
|
|
11
|
-
| 'secondary'
|
|
12
|
-
| 'ghost'
|
|
13
|
-
| null
|
|
14
|
-
| undefined;
|
|
15
|
-
size?: 'default' | 'sm' | 'lg' | 'icon' | null | undefined;
|
|
16
|
-
} & import('class-variance-authority/types').ClassProp)
|
|
17
|
-
| undefined
|
|
18
|
-
) => string;
|
|
19
|
-
export interface ButtonProps
|
|
20
|
-
extends ButtonHTMLAttributes<HTMLButtonElement>,
|
|
21
|
-
VariantProps<typeof buttonVariants> {
|
|
22
|
-
asChild?: boolean;
|
|
3
|
+
import './button.css';
|
|
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;
|
|
23
10
|
}
|
|
24
|
-
declare const Button: import(
|
|
25
|
-
ButtonProps & import('react').RefAttributes<HTMLButtonElement>
|
|
26
|
-
>;
|
|
11
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
12
|
export { Button, buttonVariants };
|
|
28
|
-
//# sourceMappingURL=button.d.ts.map
|
|
13
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,OAAO,CAAC;AAC9D,OAAO,cAAc,CAAC;AAEtB,QAAA,MAAM,cAAc;;;8EAqBlB,CAAC;AAEH,MAAM,WAAW,WAChB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAC9C,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,MAAM,2GAWX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,55 +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
|
-
: 'button';
|
|
40
|
-
return /*#__PURE__*/ (0,
|
|
41
|
-
__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Comp, {
|
|
42
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
|
|
43
|
-
buttonVariants({
|
|
44
|
-
variant,
|
|
45
|
-
size,
|
|
46
|
-
className,
|
|
47
|
-
})
|
|
48
|
-
),
|
|
49
|
-
ref: ref,
|
|
50
|
-
...props,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
);
|
|
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
|
+
});
|
|
54
39
|
Button.displayName = 'Button';
|
|
55
40
|
export { Button, buttonVariants };
|
|
@@ -1,120 +1,79 @@
|
|
|
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 = function(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
|
-
|
|
19
|
-
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
20
15
|
})();
|
|
21
|
-
(()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
31
25
|
})();
|
|
32
26
|
var __webpack_exports__ = {};
|
|
33
27
|
__webpack_require__.r(__webpack_exports__);
|
|
34
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
CardHeader: ()=>CardHeader,
|
|
30
|
+
CardDescription: ()=>CardDescription,
|
|
31
|
+
CardTitle: ()=>CardTitle,
|
|
32
|
+
Card: ()=>Card,
|
|
33
|
+
CardContent: ()=>CardContent,
|
|
34
|
+
CardFooter: ()=>CardFooter
|
|
41
35
|
});
|
|
42
|
-
const jsx_runtime_namespaceObject = require(
|
|
43
|
-
const external_react_namespaceObject = require(
|
|
44
|
-
|
|
45
|
-
const Card = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'rounded-lg border bg-card text-card-foreground shadow-sm',
|
|
51
|
-
className
|
|
52
|
-
),
|
|
53
|
-
...props,
|
|
54
|
-
})
|
|
55
|
-
);
|
|
36
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
37
|
+
const external_react_namespaceObject = require("react");
|
|
38
|
+
require("./card.css");
|
|
39
|
+
const Card = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
40
|
+
ref: ref,
|
|
41
|
+
className: `c15t-devtool-card ${className || ''}`,
|
|
42
|
+
...props
|
|
43
|
+
}));
|
|
56
44
|
Card.displayName = 'Card';
|
|
57
|
-
const CardHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
'flex flex-col space-y-1.5 p-6',
|
|
63
|
-
className
|
|
64
|
-
),
|
|
65
|
-
...props,
|
|
66
|
-
})
|
|
67
|
-
);
|
|
45
|
+
const CardHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
46
|
+
ref: ref,
|
|
47
|
+
className: `c15t-devtool-card-header ${className || ''}`,
|
|
48
|
+
...props
|
|
49
|
+
}));
|
|
68
50
|
CardHeader.displayName = 'CardHeader';
|
|
69
|
-
const CardTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'font-semibold text-2xl leading-none tracking-tight',
|
|
75
|
-
className
|
|
76
|
-
),
|
|
77
|
-
...props,
|
|
78
|
-
})
|
|
79
|
-
);
|
|
51
|
+
const CardTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
52
|
+
ref: ref,
|
|
53
|
+
className: `c15t-devtool-card-title ${className || ''}`,
|
|
54
|
+
...props
|
|
55
|
+
}));
|
|
80
56
|
CardTitle.displayName = 'CardTitle';
|
|
81
|
-
const CardDescription = /*#__PURE__*/ (0,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
);
|
|
92
|
-
CardDescription.displayName = 'CardDescription';
|
|
93
|
-
const CardContent = /*#__PURE__*/ (0,
|
|
94
|
-
external_react_namespaceObject.forwardRef)(({ className, ...props }, ref) =>
|
|
95
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
|
|
96
|
-
ref: ref,
|
|
97
|
-
className: (0, utils_cjs_namespaceObject.cn)('p-6 pt-0', className),
|
|
98
|
-
...props,
|
|
99
|
-
})
|
|
100
|
-
);
|
|
57
|
+
const CardDescription = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
58
|
+
ref: ref,
|
|
59
|
+
className: `c15t-devtool-card-description ${className || ''}`,
|
|
60
|
+
...props
|
|
61
|
+
}));
|
|
62
|
+
CardDescription.displayName = "CardDescription";
|
|
63
|
+
const CardContent = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
64
|
+
ref: ref,
|
|
65
|
+
className: `c15t-devtool-card-content ${className || ''}`,
|
|
66
|
+
...props
|
|
67
|
+
}));
|
|
101
68
|
CardContent.displayName = 'CardContent';
|
|
102
|
-
const CardFooter = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
'flex items-center p-6 pt-0',
|
|
108
|
-
className
|
|
109
|
-
),
|
|
110
|
-
...props,
|
|
111
|
-
})
|
|
112
|
-
);
|
|
69
|
+
const CardFooter = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
70
|
+
ref: ref,
|
|
71
|
+
className: `c15t-devtool-card-footer ${className || ''}`,
|
|
72
|
+
...props
|
|
73
|
+
}));
|
|
113
74
|
CardFooter.displayName = 'CardFooter';
|
|
114
75
|
var __webpack_export_target__ = exports;
|
|
115
|
-
for
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
value: true,
|
|
120
|
-
});
|
|
76
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
77
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
78
|
+
value: true
|
|
79
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.c15t-devtool-card {
|
|
2
|
+
border: 1px solid var(--c15t-dev-tools-border);
|
|
3
|
+
background-color: var(--c15t-dev-tools-card);
|
|
4
|
+
color: var(--c15t-dev-tools-card-foreground);
|
|
5
|
+
border-radius: .5rem;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
box-shadow: 0 1px 2px #0000000d;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.c15t-devtool-card-header {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
padding: 1.5rem;
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.c15t-devtool-card-header > * + * {
|
|
17
|
+
margin-top: .375rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.c15t-devtool-card-title {
|
|
21
|
+
letter-spacing: -.025em;
|
|
22
|
+
font-size: 1.5rem;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
line-height: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.c15t-devtool-card-description {
|
|
28
|
+
color: var(--c15t-dev-tools-muted-foreground);
|
|
29
|
+
font-size: .875rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.c15t-devtool-card-content {
|
|
33
|
+
padding: 0 1.5rem 1.5rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.c15t-devtool-card-footer {
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding: 0 1.5rem 1.5rem;
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -1,30 +1,10 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
>;
|
|
12
|
-
declare const CardDescription: import('react').ForwardRefExoticComponent<
|
|
13
|
-
HTMLAttributes<HTMLParagraphElement> &
|
|
14
|
-
import('react').RefAttributes<HTMLParagraphElement>
|
|
15
|
-
>;
|
|
16
|
-
declare const CardContent: import('react').ForwardRefExoticComponent<
|
|
17
|
-
HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
|
|
18
|
-
>;
|
|
19
|
-
declare const CardFooter: import('react').ForwardRefExoticComponent<
|
|
20
|
-
HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
|
|
21
|
-
>;
|
|
22
|
-
export {
|
|
23
|
-
Card,
|
|
24
|
-
CardHeader,
|
|
25
|
-
CardFooter,
|
|
26
|
-
CardTitle,
|
|
27
|
-
CardDescription,
|
|
28
|
-
CardContent,
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=card.d.ts.map
|
|
2
|
+
import './card.css';
|
|
3
|
+
declare const Card: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardHeader: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardTitle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
declare const CardDescription: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const CardContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const CardFooter: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
|
10
|
+
//# sourceMappingURL=card.d.ts.map
|