@c15t/dev-tools 0.0.1-rc.8 → 0.0.1-rc.9
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/dist/components/error-state.cjs +116 -87
- package/dist/components/error-state.css +28 -25
- package/dist/components/error-state.d.ts +6 -4
- package/dist/components/error-state.js +108 -61
- package/dist/components/header.cjs +73 -54
- package/dist/components/header.css +17 -18
- package/dist/components/header.d.ts +5 -3
- package/dist/components/header.js +45 -28
- package/dist/components/ui/accordion.cjs +100 -64
- package/dist/components/ui/accordion.css +39 -39
- package/dist/components/ui/accordion.d.ts +32 -5
- package/dist/components/ui/accordion.js +70 -36
- package/dist/components/ui/alert.cjs +79 -61
- package/dist/components/ui/alert.css +30 -27
- package/dist/components/ui/alert.d.ts +22 -6
- package/dist/components/ui/alert.js +54 -34
- package/dist/components/ui/badge.cjs +61 -49
- package/dist/components/ui/badge.css +39 -27
- package/dist/components/ui/badge.d.ts +22 -7
- package/dist/components/ui/badge.js +31 -23
- package/dist/components/ui/button.cjs +75 -64
- package/dist/components/ui/button.css +43 -40
- package/dist/components/ui/button.d.ts +24 -8
- package/dist/components/ui/button.js +47 -38
- package/dist/components/ui/card.cjs +91 -65
- package/dist/components/ui/card.css +20 -21
- package/dist/components/ui/card.d.ts +29 -8
- package/dist/components/ui/card.js +76 -35
- package/dist/components/ui/error-state.css +19 -20
- package/dist/components/ui/expandable-tabs.cjs +157 -117
- package/dist/components/ui/expandable-tabs.css +33 -34
- package/dist/components/ui/expandable-tabs.d.ts +20 -13
- package/dist/components/ui/expandable-tabs.js +131 -91
- package/dist/components/ui/logo.cjs +105 -92
- package/dist/components/ui/logo.d.ts +10 -4
- package/dist/components/ui/logo.js +81 -66
- package/dist/components/ui/scroll-area.cjs +84 -54
- package/dist/components/ui/scroll-area.css +24 -25
- package/dist/components/ui/scroll-area.d.ts +17 -3
- package/dist/components/ui/scroll-area.js +62 -28
- package/dist/components/ui/switch.cjs +55 -38
- package/dist/components/ui/switch.css +25 -26
- package/dist/components/ui/switch.d.ts +9 -2
- package/dist/components/ui/switch.js +25 -13
- package/dist/components/ui/tooltip.cjs +59 -41
- package/dist/components/ui/tooltip.css +63 -64
- package/dist/components/ui/tooltip.d.ts +17 -5
- package/dist/components/ui/tooltip.js +32 -16
- package/dist/components/wrapper.cjs +203 -144
- package/dist/components/wrapper.css +48 -49
- package/dist/components/wrapper.d.ts +12 -7
- package/dist/components/wrapper.js +184 -117
- package/dist/dev-tool.cjs +151 -110
- package/dist/dev-tool.d.ts +5 -5
- package/dist/dev-tool.js +106 -69
- package/dist/index.cjs +35 -27
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/libs/utils.cjs +57 -42
- package/dist/libs/utils.d.ts +1 -1
- package/dist/libs/utils.js +5 -3
- package/dist/router/router.cjs +192 -144
- package/dist/router/router.d.ts +5 -3
- package/dist/router/router.js +174 -118
- package/dist/styles/theme.css +36 -37
- package/package.json +3 -2
|
@@ -1,73 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
(() => {
|
|
4
|
+
__webpack_require__.d = function (exports1, definition) {
|
|
5
|
+
for (var key in definition)
|
|
6
|
+
if (
|
|
7
|
+
__webpack_require__.o(definition, key) &&
|
|
8
|
+
!__webpack_require__.o(exports1, key)
|
|
9
|
+
)
|
|
10
|
+
Object.defineProperty(exports1, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: definition[key],
|
|
13
|
+
});
|
|
14
|
+
};
|
|
10
15
|
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
(() => {
|
|
17
|
+
__webpack_require__.o = function (obj, prop) {
|
|
18
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
19
|
+
};
|
|
15
20
|
})();
|
|
16
|
-
(()=>{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
(() => {
|
|
22
|
+
__webpack_require__.r = function (exports1) {
|
|
23
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag)
|
|
24
|
+
Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
25
|
+
value: 'Module',
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
28
|
+
value: true,
|
|
29
|
+
});
|
|
30
|
+
};
|
|
25
31
|
})();
|
|
26
32
|
var __webpack_exports__ = {};
|
|
27
33
|
__webpack_require__.r(__webpack_exports__);
|
|
28
34
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
AlertDescription: () => AlertDescription,
|
|
36
|
+
AlertTitle: () => AlertTitle,
|
|
37
|
+
Alert: () => Alert,
|
|
32
38
|
});
|
|
33
|
-
const jsx_runtime_namespaceObject = require(
|
|
34
|
-
const external_class_variance_authority_namespaceObject = require(
|
|
35
|
-
const external_react_namespaceObject = require(
|
|
36
|
-
require(
|
|
37
|
-
const alertVariants = (0,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
const jsx_runtime_namespaceObject = require('react/jsx-runtime');
|
|
40
|
+
const external_class_variance_authority_namespaceObject = require('class-variance-authority');
|
|
41
|
+
const external_react_namespaceObject = require('react');
|
|
42
|
+
require('./alert.css');
|
|
43
|
+
const alertVariants = (0,
|
|
44
|
+
external_class_variance_authority_namespaceObject.cva)('c15t-devtool-alert', {
|
|
45
|
+
variants: {
|
|
46
|
+
variant: {
|
|
47
|
+
default: 'c15t-devtool-alert-default',
|
|
48
|
+
destructive: 'c15t-devtool-alert-destructive',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
variant: 'default',
|
|
53
|
+
},
|
|
47
54
|
});
|
|
48
|
-
const Alert = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
const Alert = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
56
|
+
({ className, variant, ...props }, ref) =>
|
|
57
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
|
|
58
|
+
ref: ref,
|
|
59
|
+
role: 'alert',
|
|
60
|
+
className: `${alertVariants({
|
|
61
|
+
variant,
|
|
62
|
+
})} ${className || ''}`,
|
|
63
|
+
...props,
|
|
64
|
+
})
|
|
65
|
+
);
|
|
56
66
|
Alert.displayName = 'Alert';
|
|
57
|
-
const AlertTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
const AlertTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
|
|
68
|
+
({ className, ...props }, ref) =>
|
|
69
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('h5', {
|
|
70
|
+
ref: ref,
|
|
71
|
+
className: `c15t-devtool-alert-title ${className || ''}`,
|
|
72
|
+
...props,
|
|
73
|
+
})
|
|
74
|
+
);
|
|
62
75
|
AlertTitle.displayName = 'AlertTitle';
|
|
63
|
-
const AlertDescription = /*#__PURE__*/ (0,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
const AlertDescription = /*#__PURE__*/ (0,
|
|
77
|
+
external_react_namespaceObject.forwardRef)(({ className, ...props }, ref) =>
|
|
78
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
|
|
79
|
+
ref: ref,
|
|
80
|
+
className: `c15t-devtool-alert-description ${className || ''}`,
|
|
81
|
+
...props,
|
|
82
|
+
})
|
|
83
|
+
);
|
|
84
|
+
AlertDescription.displayName = 'AlertDescription';
|
|
69
85
|
var __webpack_export_target__ = exports;
|
|
70
|
-
for(var __webpack_i__ in __webpack_exports__)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
86
|
+
for (var __webpack_i__ in __webpack_exports__)
|
|
87
|
+
__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
88
|
+
if (__webpack_exports__.__esModule)
|
|
89
|
+
Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
90
|
+
value: true,
|
|
91
|
+
});
|
|
@@ -1,59 +1,62 @@
|
|
|
1
1
|
.c15t-devtool-alert {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
border: 1px solid var(--c15t-dev-tools-border);
|
|
3
|
+
border-radius: .5rem;
|
|
4
|
+
width: 100%;
|
|
5
|
+
padding: .75rem 1rem;
|
|
6
|
+
font-size: .875rem;
|
|
7
|
+
position: relative;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.c15t-devtool-alert > svg {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
color: var(--c15t-dev-tools-foreground);
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 1rem;
|
|
14
|
+
left: 1rem;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.c15t-devtool-alert > svg + div {
|
|
18
|
-
|
|
18
|
+
transform: translateY(-3px);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.c15t-devtool-alert > svg ~ * {
|
|
22
|
-
|
|
22
|
+
padding-left: 1.75rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.c15t-devtool-alert-default {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
background-color: var(--c15t-dev-tools-background);
|
|
27
|
+
color: var(--c15t-dev-tools-foreground);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.c15t-devtool-alert-destructive {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
border-color: color-mix(
|
|
32
|
+
in srgb,
|
|
33
|
+
var(--c15t-dev-tools-destructive) 50%,
|
|
34
|
+
transparent
|
|
35
|
+
);
|
|
36
|
+
color: var(--c15t-dev-tools-destructive);
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
.c15t-devtool-alert-destructive > svg {
|
|
36
|
-
|
|
40
|
+
color: var(--c15t-dev-tools-destructive);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
@media (prefers-color-scheme: dark) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
.c15t-devtool-alert-destructive {
|
|
45
|
+
border-color: var(--c15t-dev-tools-destructive);
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
.c15t-devtool-alert-title {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
letter-spacing: -.025em;
|
|
51
|
+
margin-bottom: .25rem;
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
line-height: 1;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
.c15t-devtool-alert-description {
|
|
53
|
-
|
|
57
|
+
font-size: .875rem;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.c15t-devtool-alert-description p {
|
|
57
|
-
|
|
61
|
+
line-height: 1.625;
|
|
58
62
|
}
|
|
59
|
-
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { type HTMLAttributes } from 'react';
|
|
3
3
|
import './alert.css';
|
|
4
|
-
declare const Alert: import(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
declare const Alert: import('react').ForwardRefExoticComponent<
|
|
5
|
+
HTMLAttributes<HTMLDivElement> &
|
|
6
|
+
VariantProps<
|
|
7
|
+
(
|
|
8
|
+
props?:
|
|
9
|
+
| ({
|
|
10
|
+
variant?: 'default' | 'destructive' | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp)
|
|
12
|
+
| undefined
|
|
13
|
+
) => string
|
|
14
|
+
> &
|
|
15
|
+
import('react').RefAttributes<HTMLDivElement>
|
|
16
|
+
>;
|
|
17
|
+
declare const AlertTitle: import('react').ForwardRefExoticComponent<
|
|
18
|
+
HTMLAttributes<HTMLHeadingElement> &
|
|
19
|
+
import('react').RefAttributes<HTMLParagraphElement>
|
|
20
|
+
>;
|
|
21
|
+
declare const AlertDescription: import('react').ForwardRefExoticComponent<
|
|
22
|
+
HTMLAttributes<HTMLParagraphElement> &
|
|
23
|
+
import('react').RefAttributes<HTMLParagraphElement>
|
|
24
|
+
>;
|
|
9
25
|
export { Alert, AlertTitle, AlertDescription };
|
|
10
|
-
//# sourceMappingURL=alert.d.ts.map
|
|
26
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1,37 +1,57 @@
|
|
|
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_react__ from
|
|
4
|
-
import
|
|
5
|
-
const alertVariants = (0,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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_react__ from 'react';
|
|
4
|
+
import './alert.css';
|
|
5
|
+
const alertVariants = (0,
|
|
6
|
+
__WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)(
|
|
7
|
+
'c15t-devtool-alert',
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: 'c15t-devtool-alert-default',
|
|
12
|
+
destructive: 'c15t-devtool-alert-destructive',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: 'default',
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
const Alert = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(
|
|
21
|
+
({ className, variant, ...props }, ref) =>
|
|
22
|
+
/*#__PURE__*/ (0,
|
|
23
|
+
__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)('div', {
|
|
24
|
+
ref: ref,
|
|
25
|
+
role: 'alert',
|
|
26
|
+
className: `${alertVariants({
|
|
27
|
+
variant,
|
|
28
|
+
})} ${className || ''}`,
|
|
29
|
+
...props,
|
|
30
|
+
})
|
|
31
|
+
);
|
|
24
32
|
Alert.displayName = 'Alert';
|
|
25
|
-
const AlertTitle = /*#__PURE__*/ (0,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
const AlertTitle = /*#__PURE__*/ (0,
|
|
34
|
+
__WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
|
|
35
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
36
|
+
'h5',
|
|
37
|
+
{
|
|
38
|
+
ref: ref,
|
|
39
|
+
className: `c15t-devtool-alert-title ${className || ''}`,
|
|
40
|
+
...props,
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
);
|
|
30
44
|
AlertTitle.displayName = 'AlertTitle';
|
|
31
|
-
const AlertDescription = /*#__PURE__*/ (0,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
const AlertDescription = /*#__PURE__*/ (0,
|
|
46
|
+
__WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
|
|
47
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
48
|
+
'div',
|
|
49
|
+
{
|
|
50
|
+
ref: ref,
|
|
51
|
+
className: `c15t-devtool-alert-description ${className || ''}`,
|
|
52
|
+
...props,
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
);
|
|
56
|
+
AlertDescription.displayName = 'AlertDescription';
|
|
37
57
|
export { Alert, AlertDescription, AlertTitle };
|
|
@@ -1,61 +1,73 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
(() => {
|
|
4
|
+
__webpack_require__.d = function (exports1, definition) {
|
|
5
|
+
for (var key in definition)
|
|
6
|
+
if (
|
|
7
|
+
__webpack_require__.o(definition, key) &&
|
|
8
|
+
!__webpack_require__.o(exports1, key)
|
|
9
|
+
)
|
|
10
|
+
Object.defineProperty(exports1, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: definition[key],
|
|
13
|
+
});
|
|
14
|
+
};
|
|
10
15
|
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
(() => {
|
|
17
|
+
__webpack_require__.o = function (obj, prop) {
|
|
18
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
19
|
+
};
|
|
15
20
|
})();
|
|
16
|
-
(()=>{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
(() => {
|
|
22
|
+
__webpack_require__.r = function (exports1) {
|
|
23
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag)
|
|
24
|
+
Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
25
|
+
value: 'Module',
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
28
|
+
value: true,
|
|
29
|
+
});
|
|
30
|
+
};
|
|
25
31
|
})();
|
|
26
32
|
var __webpack_exports__ = {};
|
|
27
33
|
__webpack_require__.r(__webpack_exports__);
|
|
28
34
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
badgeVariants: () => badgeVariants,
|
|
36
|
+
Badge: () => Badge,
|
|
31
37
|
});
|
|
32
|
-
const jsx_runtime_namespaceObject = require(
|
|
33
|
-
const external_class_variance_authority_namespaceObject = require(
|
|
34
|
-
const utils_cjs_namespaceObject = require(
|
|
35
|
-
require(
|
|
36
|
-
const badgeVariants = (0,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
const jsx_runtime_namespaceObject = require('react/jsx-runtime');
|
|
39
|
+
const external_class_variance_authority_namespaceObject = require('class-variance-authority');
|
|
40
|
+
const utils_cjs_namespaceObject = require('../../libs/utils.cjs');
|
|
41
|
+
require('./badge.css');
|
|
42
|
+
const badgeVariants = (0,
|
|
43
|
+
external_class_variance_authority_namespaceObject.cva)('c15t-devtool-badge', {
|
|
44
|
+
variants: {
|
|
45
|
+
variant: {
|
|
46
|
+
default: 'c15t-devtool-badge-default',
|
|
47
|
+
secondary: 'c15t-devtool-badge-secondary',
|
|
48
|
+
destructive: 'c15t-devtool-badge-destructive',
|
|
49
|
+
outline: 'c15t-devtool-badge-outline',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
variant: 'default',
|
|
54
|
+
},
|
|
48
55
|
});
|
|
49
56
|
function Badge({ className, variant, ...props }) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
|
|
58
|
+
className: (0, utils_cjs_namespaceObject.cn)(
|
|
59
|
+
badgeVariants({
|
|
60
|
+
variant,
|
|
61
|
+
}),
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
...props,
|
|
65
|
+
});
|
|
56
66
|
}
|
|
57
67
|
var __webpack_export_target__ = exports;
|
|
58
|
-
for(var __webpack_i__ in __webpack_exports__)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
for (var __webpack_i__ in __webpack_exports__)
|
|
69
|
+
__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
70
|
+
if (__webpack_exports__.__esModule)
|
|
71
|
+
Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
72
|
+
value: true,
|
|
73
|
+
});
|
|
@@ -1,52 +1,64 @@
|
|
|
1
1
|
.c15t-devtool-badge {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
border: 1px solid #0000;
|
|
3
|
+
border-radius: 9999px;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding: .125rem .625rem;
|
|
6
|
+
font-size: .75rem;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
transition-property: color, background-color;
|
|
9
|
+
transition-duration: .15s;
|
|
10
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
11
|
+
display: inline-flex;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.c15t-devtool-badge:focus,
|
|
15
|
-
|
|
14
|
+
.c15t-devtool-badge:focus,
|
|
15
|
+
.c15t-devtool-badge:focus-visible {
|
|
16
|
+
outline: none;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.c15t-devtool-badge-default {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
background-color: var(--c15t-dev-tools-primary);
|
|
21
|
+
color: var(--c15t-dev-tools-primary-foreground);
|
|
22
|
+
border-color: #0000;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.c15t-devtool-badge-default:hover {
|
|
25
|
-
|
|
26
|
+
background-color: color-mix(
|
|
27
|
+
in srgb,
|
|
28
|
+
var(--c15t-dev-tools-primary) 80%,
|
|
29
|
+
transparent
|
|
30
|
+
);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
.c15t-devtool-badge-secondary {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
background-color: var(--c15t-dev-tools-secondary);
|
|
35
|
+
color: var(--c15t-dev-tools-secondary-foreground);
|
|
36
|
+
border-color: #0000;
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
.c15t-devtool-badge-secondary:hover {
|
|
35
|
-
|
|
40
|
+
background-color: color-mix(
|
|
41
|
+
in srgb,
|
|
42
|
+
var(--c15t-dev-tools-secondary) 80%,
|
|
43
|
+
transparent
|
|
44
|
+
);
|
|
36
45
|
}
|
|
37
46
|
|
|
38
47
|
.c15t-devtool-badge-destructive {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
background-color: var(--c15t-dev-tools-destructive);
|
|
49
|
+
color: var(--c15t-dev-tools-destructive-foreground);
|
|
50
|
+
border-color: #0000;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
.c15t-devtool-badge-destructive:hover {
|
|
45
|
-
|
|
54
|
+
background-color: color-mix(
|
|
55
|
+
in srgb,
|
|
56
|
+
var(--c15t-dev-tools-destructive) 80%,
|
|
57
|
+
transparent
|
|
58
|
+
);
|
|
46
59
|
}
|
|
47
60
|
|
|
48
61
|
.c15t-devtool-badge-outline {
|
|
49
|
-
|
|
50
|
-
|
|
62
|
+
border-color: var(--c15t-dev-tools-border);
|
|
63
|
+
color: var(--c15t-dev-tools-foreground);
|
|
51
64
|
}
|
|
52
|
-
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import type { HTMLAttributes } from 'react';
|
|
3
3
|
import './badge.css';
|
|
4
|
-
declare const badgeVariants: (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
declare const badgeVariants: (
|
|
5
|
+
props?:
|
|
6
|
+
| ({
|
|
7
|
+
variant?:
|
|
8
|
+
| 'default'
|
|
9
|
+
| 'destructive'
|
|
10
|
+
| 'outline'
|
|
11
|
+
| 'secondary'
|
|
12
|
+
| null
|
|
13
|
+
| undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp)
|
|
15
|
+
| undefined
|
|
16
|
+
) => string;
|
|
17
|
+
export interface BadgeProps
|
|
18
|
+
extends HTMLAttributes<HTMLDivElement>,
|
|
19
|
+
VariantProps<typeof badgeVariants> {}
|
|
20
|
+
declare function Badge({
|
|
21
|
+
className,
|
|
22
|
+
variant,
|
|
23
|
+
...props
|
|
24
|
+
}: BadgeProps): import('react/jsx-runtime').JSX.Element;
|
|
10
25
|
export { Badge, badgeVariants };
|
|
11
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
26
|
+
//# sourceMappingURL=badge.d.ts.map
|