@c15t/dev-tools 0.0.1-rc.7 → 0.0.1-rc.8

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.
Files changed (66) hide show
  1. package/dist/components/error-state.cjs +87 -116
  2. package/dist/components/error-state.css +25 -28
  3. package/dist/components/error-state.d.ts +4 -6
  4. package/dist/components/error-state.js +61 -108
  5. package/dist/components/header.cjs +54 -73
  6. package/dist/components/header.css +18 -17
  7. package/dist/components/header.d.ts +3 -5
  8. package/dist/components/header.js +28 -45
  9. package/dist/components/ui/accordion.cjs +64 -100
  10. package/dist/components/ui/accordion.css +39 -39
  11. package/dist/components/ui/accordion.d.ts +5 -32
  12. package/dist/components/ui/accordion.js +36 -70
  13. package/dist/components/ui/alert.cjs +61 -79
  14. package/dist/components/ui/alert.css +27 -30
  15. package/dist/components/ui/alert.d.ts +6 -22
  16. package/dist/components/ui/alert.js +34 -54
  17. package/dist/components/ui/badge.cjs +49 -61
  18. package/dist/components/ui/badge.css +27 -39
  19. package/dist/components/ui/badge.d.ts +7 -22
  20. package/dist/components/ui/badge.js +23 -31
  21. package/dist/components/ui/button.cjs +64 -75
  22. package/dist/components/ui/button.css +40 -43
  23. package/dist/components/ui/button.d.ts +8 -24
  24. package/dist/components/ui/button.js +38 -47
  25. package/dist/components/ui/card.cjs +65 -91
  26. package/dist/components/ui/card.css +21 -20
  27. package/dist/components/ui/card.d.ts +8 -29
  28. package/dist/components/ui/card.js +35 -76
  29. package/dist/components/ui/error-state.css +20 -19
  30. package/dist/components/ui/expandable-tabs.cjs +117 -157
  31. package/dist/components/ui/expandable-tabs.css +34 -33
  32. package/dist/components/ui/expandable-tabs.d.ts +13 -20
  33. package/dist/components/ui/expandable-tabs.js +91 -131
  34. package/dist/components/ui/logo.cjs +92 -105
  35. package/dist/components/ui/logo.d.ts +4 -10
  36. package/dist/components/ui/logo.js +66 -81
  37. package/dist/components/ui/scroll-area.cjs +54 -84
  38. package/dist/components/ui/scroll-area.css +25 -24
  39. package/dist/components/ui/scroll-area.d.ts +3 -17
  40. package/dist/components/ui/scroll-area.js +28 -62
  41. package/dist/components/ui/switch.cjs +38 -55
  42. package/dist/components/ui/switch.css +26 -25
  43. package/dist/components/ui/switch.d.ts +2 -9
  44. package/dist/components/ui/switch.js +13 -25
  45. package/dist/components/ui/tooltip.cjs +41 -59
  46. package/dist/components/ui/tooltip.css +64 -63
  47. package/dist/components/ui/tooltip.d.ts +5 -17
  48. package/dist/components/ui/tooltip.js +16 -32
  49. package/dist/components/wrapper.cjs +144 -203
  50. package/dist/components/wrapper.css +49 -48
  51. package/dist/components/wrapper.d.ts +7 -12
  52. package/dist/components/wrapper.js +117 -184
  53. package/dist/dev-tool.cjs +110 -151
  54. package/dist/dev-tool.d.ts +5 -5
  55. package/dist/dev-tool.js +69 -106
  56. package/dist/index.cjs +27 -35
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +2 -3
  59. package/dist/libs/utils.cjs +42 -57
  60. package/dist/libs/utils.d.ts +1 -1
  61. package/dist/libs/utils.js +3 -5
  62. package/dist/router/router.cjs +144 -192
  63. package/dist/router/router.d.ts +3 -5
  64. package/dist/router/router.js +118 -174
  65. package/dist/styles/theme.css +37 -36
  66. package/package.json +2 -2
@@ -1,40 +1,41 @@
1
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;
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
8
  }
9
9
 
10
10
  .c15t-devtool-card-header {
11
- flex-direction: column;
12
- padding: 1.5rem;
13
- display: flex;
11
+ flex-direction: column;
12
+ padding: 1.5rem;
13
+ display: flex;
14
14
  }
15
15
 
16
16
  .c15t-devtool-card-header > * + * {
17
- margin-top: .375rem;
17
+ margin-top: .375rem;
18
18
  }
19
19
 
20
20
  .c15t-devtool-card-title {
21
- letter-spacing: -.025em;
22
- font-size: 1.5rem;
23
- font-weight: 600;
24
- line-height: 1;
21
+ letter-spacing: -.025em;
22
+ font-size: 1.5rem;
23
+ font-weight: 600;
24
+ line-height: 1;
25
25
  }
26
26
 
27
27
  .c15t-devtool-card-description {
28
- color: var(--c15t-dev-tools-muted-foreground);
29
- font-size: .875rem;
28
+ color: var(--c15t-dev-tools-muted-foreground);
29
+ font-size: .875rem;
30
30
  }
31
31
 
32
32
  .c15t-devtool-card-content {
33
- padding: 0 1.5rem 1.5rem;
33
+ padding: 0 1.5rem 1.5rem;
34
34
  }
35
35
 
36
36
  .c15t-devtool-card-footer {
37
- align-items: center;
38
- padding: 0 1.5rem 1.5rem;
39
- display: flex;
37
+ align-items: center;
38
+ padding: 0 1.5rem 1.5rem;
39
+ display: flex;
40
40
  }
41
+
@@ -1,31 +1,10 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  import './card.css';
3
- declare const Card: import('react').ForwardRefExoticComponent<
4
- HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
5
- >;
6
- declare const CardHeader: import('react').ForwardRefExoticComponent<
7
- HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
8
- >;
9
- declare const CardTitle: import('react').ForwardRefExoticComponent<
10
- HTMLAttributes<HTMLHeadingElement> &
11
- import('react').RefAttributes<HTMLParagraphElement>
12
- >;
13
- declare const CardDescription: import('react').ForwardRefExoticComponent<
14
- HTMLAttributes<HTMLParagraphElement> &
15
- import('react').RefAttributes<HTMLParagraphElement>
16
- >;
17
- declare const CardContent: import('react').ForwardRefExoticComponent<
18
- HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
19
- >;
20
- declare const CardFooter: import('react').ForwardRefExoticComponent<
21
- HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
22
- >;
23
- export {
24
- Card,
25
- CardHeader,
26
- CardFooter,
27
- CardTitle,
28
- CardDescription,
29
- CardContent,
30
- };
31
- //# sourceMappingURL=card.d.ts.map
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
@@ -1,81 +1,40 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from 'react/jsx-runtime';
2
- import * as __WEBPACK_EXTERNAL_MODULE_react__ from 'react';
3
- import './card.css';
4
- const Card = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(
5
- ({ className, ...props }, ref) =>
6
- /*#__PURE__*/ (0,
7
- __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)('div', {
8
- ref: ref,
9
- className: `c15t-devtool-card ${className || ''}`,
10
- ...props,
11
- })
12
- );
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
+ import "./card.css";
4
+ const Card = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
5
+ ref: ref,
6
+ className: `c15t-devtool-card ${className || ''}`,
7
+ ...props
8
+ }));
13
9
  Card.displayName = 'Card';
14
- const CardHeader = /*#__PURE__*/ (0,
15
- __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
16
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
17
- 'div',
18
- {
19
- ref: ref,
20
- className: `c15t-devtool-card-header ${className || ''}`,
21
- ...props,
22
- }
23
- )
24
- );
10
+ const CardHeader = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
11
+ ref: ref,
12
+ className: `c15t-devtool-card-header ${className || ''}`,
13
+ ...props
14
+ }));
25
15
  CardHeader.displayName = 'CardHeader';
26
- const CardTitle = /*#__PURE__*/ (0,
27
- __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
28
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
29
- 'h3',
30
- {
31
- ref: ref,
32
- className: `c15t-devtool-card-title ${className || ''}`,
33
- ...props,
34
- }
35
- )
36
- );
16
+ const CardTitle = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h3", {
17
+ ref: ref,
18
+ className: `c15t-devtool-card-title ${className || ''}`,
19
+ ...props
20
+ }));
37
21
  CardTitle.displayName = 'CardTitle';
38
- const CardDescription = /*#__PURE__*/ (0,
39
- __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
40
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
41
- 'p',
42
- {
43
- ref: ref,
44
- className: `c15t-devtool-card-description ${className || ''}`,
45
- ...props,
46
- }
47
- )
48
- );
49
- CardDescription.displayName = 'CardDescription';
50
- const CardContent = /*#__PURE__*/ (0,
51
- __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
52
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
53
- 'div',
54
- {
55
- ref: ref,
56
- className: `c15t-devtool-card-content ${className || ''}`,
57
- ...props,
58
- }
59
- )
60
- );
22
+ const CardDescription = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
23
+ ref: ref,
24
+ className: `c15t-devtool-card-description ${className || ''}`,
25
+ ...props
26
+ }));
27
+ CardDescription.displayName = "CardDescription";
28
+ const CardContent = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
29
+ ref: ref,
30
+ className: `c15t-devtool-card-content ${className || ''}`,
31
+ ...props
32
+ }));
61
33
  CardContent.displayName = 'CardContent';
62
- const CardFooter = /*#__PURE__*/ (0,
63
- __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
64
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
65
- 'div',
66
- {
67
- ref: ref,
68
- className: `c15t-devtool-card-footer ${className || ''}`,
69
- ...props,
70
- }
71
- )
72
- );
34
+ const CardFooter = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
35
+ ref: ref,
36
+ className: `c15t-devtool-card-footer ${className || ''}`,
37
+ ...props
38
+ }));
73
39
  CardFooter.displayName = 'CardFooter';
74
- export {
75
- Card,
76
- CardContent,
77
- CardDescription,
78
- CardFooter,
79
- CardHeader,
80
- CardTitle,
81
- };
40
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,33 +1,34 @@
1
1
  .c15t-devtool-error-state {
2
- text-align: center;
3
- flex-direction: column;
4
- justify-content: center;
5
- align-items: center;
6
- min-height: 400px;
7
- display: flex;
2
+ text-align: center;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ min-height: 400px;
7
+ display: flex;
8
8
  }
9
9
 
10
10
  .c15t-devtool-error-state-icon {
11
- color: var(--c15t-dev-tools-muted-foreground);
12
- margin-bottom: 1.5rem;
11
+ color: var(--c15t-dev-tools-muted-foreground);
12
+ margin-bottom: 1.5rem;
13
13
  }
14
14
 
15
15
  .c15t-devtool-error-state-title {
16
- margin-bottom: .5rem;
17
- font-size: 1.5rem;
18
- font-weight: 500;
19
- line-height: 1;
16
+ margin-bottom: .5rem;
17
+ font-size: 1.5rem;
18
+ font-weight: 500;
19
+ line-height: 1;
20
20
  }
21
21
 
22
22
  .c15t-devtool-error-state-description {
23
- max-width: 400px;
24
- color: var(--c15t-dev-tools-muted-foreground);
25
- margin-bottom: 1.5rem;
26
- font-size: .875rem;
27
- line-height: 1.5;
23
+ max-width: 400px;
24
+ color: var(--c15t-dev-tools-muted-foreground);
25
+ margin-bottom: 1.5rem;
26
+ font-size: .875rem;
27
+ line-height: 1.5;
28
28
  }
29
29
 
30
30
  .c15t-devtool-error-state-actions {
31
- gap: .5rem;
32
- display: flex;
31
+ gap: .5rem;
32
+ display: flex;
33
33
  }
34
+
@@ -1,176 +1,136 @@
1
1
  'use client';
2
- 'use strict';
2
+ "use strict";
3
3
  var __webpack_require__ = {};
4
- (() => {
5
- __webpack_require__.d = function (exports1, definition) {
6
- for (var key in definition)
7
- if (
8
- __webpack_require__.o(definition, key) &&
9
- !__webpack_require__.o(exports1, key)
10
- )
11
- Object.defineProperty(exports1, key, {
12
- enumerable: true,
13
- get: definition[key],
14
- });
15
- };
4
+ (()=>{
5
+ __webpack_require__.d = function(exports1, definition) {
6
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ get: definition[key]
9
+ });
10
+ };
16
11
  })();
17
- (() => {
18
- __webpack_require__.o = function (obj, prop) {
19
- return Object.prototype.hasOwnProperty.call(obj, prop);
20
- };
12
+ (()=>{
13
+ __webpack_require__.o = function(obj, prop) {
14
+ return Object.prototype.hasOwnProperty.call(obj, prop);
15
+ };
21
16
  })();
22
- (() => {
23
- __webpack_require__.r = function (exports1) {
24
- if ('undefined' != typeof Symbol && Symbol.toStringTag)
25
- Object.defineProperty(exports1, Symbol.toStringTag, {
26
- value: 'Module',
27
- });
28
- Object.defineProperty(exports1, '__esModule', {
29
- value: true,
30
- });
31
- };
17
+ (()=>{
18
+ __webpack_require__.r = function(exports1) {
19
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
20
+ value: 'Module'
21
+ });
22
+ Object.defineProperty(exports1, '__esModule', {
23
+ value: true
24
+ });
25
+ };
32
26
  })();
33
27
  var __webpack_exports__ = {};
34
28
  __webpack_require__.r(__webpack_exports__);
35
29
  __webpack_require__.d(__webpack_exports__, {
36
- ExpandableTabs: () => ExpandableTabs,
30
+ ExpandableTabs: ()=>ExpandableTabs
37
31
  });
38
- const jsx_runtime_namespaceObject = require('react/jsx-runtime');
39
- const react_namespaceObject = require('motion/react');
40
- const external_react_namespaceObject = require('react');
41
- require('./expandable-tabs.css');
32
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
+ const react_namespaceObject = require("motion/react");
34
+ const external_react_namespaceObject = require("react");
35
+ require("./expandable-tabs.css");
42
36
  const buttonVariants = {
43
- initial: {
44
- gap: 0,
45
- paddingLeft: '.5rem',
46
- paddingRight: '.5rem',
47
- },
48
- animate: (isSelected) => ({
49
- gap: isSelected ? '.5rem' : 0,
50
- paddingLeft: isSelected ? '1rem' : '.5rem',
51
- paddingRight: isSelected ? '1rem' : '.5rem',
52
- }),
37
+ initial: {
38
+ gap: 0,
39
+ paddingLeft: '.5rem',
40
+ paddingRight: '.5rem'
41
+ },
42
+ animate: (isSelected)=>({
43
+ gap: isSelected ? '.5rem' : 0,
44
+ paddingLeft: isSelected ? '1rem' : '.5rem',
45
+ paddingRight: isSelected ? '1rem' : '.5rem'
46
+ })
53
47
  };
54
48
  const spanVariants = {
55
- initial: {
56
- width: 0,
57
- opacity: 0,
58
- },
59
- animate: {
60
- width: 'auto',
61
- opacity: 1,
62
- },
63
- exit: {
64
- width: 0,
65
- opacity: 0,
66
- },
49
+ initial: {
50
+ width: 0,
51
+ opacity: 0
52
+ },
53
+ animate: {
54
+ width: 'auto',
55
+ opacity: 1
56
+ },
57
+ exit: {
58
+ width: 0,
59
+ opacity: 0
60
+ }
67
61
  };
68
62
  const transition = {
69
- delay: 0.1,
70
- type: 'spring',
71
- bounce: 0,
72
- duration: 0.6,
63
+ delay: 0.1,
64
+ type: 'spring',
65
+ bounce: 0,
66
+ duration: 0.6
73
67
  };
74
- const Separator = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(() =>
75
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
76
- className: 'c15t-devtool-tab-separator',
77
- 'aria-hidden': 'true',
78
- })
79
- );
68
+ const Separator = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
69
+ className: "c15t-devtool-tab-separator",
70
+ "aria-hidden": "true"
71
+ }));
80
72
  Separator.displayName = 'Separator';
81
- const TabButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(
82
- ({ tab, index, isSelected, activeColor, onClick }) => {
83
- const Icon = tab.icon;
84
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
85
- react_namespaceObject.motion.button,
86
- {
87
- variants: buttonVariants,
88
- initial: false,
89
- animate: 'animate',
90
- custom: isSelected,
91
- onClick: () => onClick(index),
92
- transition: transition,
93
- className: `c15t-devtool-tab-button ${isSelected ? `selected ${activeColor}` : ''}`,
94
- children: [
95
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {
96
- size: 20,
97
- }),
98
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
99
- react_namespaceObject.AnimatePresence,
100
- {
101
- initial: false,
102
- children:
103
- isSelected &&
104
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
105
- react_namespaceObject.motion.span,
106
- {
107
- variants: spanVariants,
108
- initial: 'initial',
109
- animate: 'animate',
110
- exit: 'exit',
111
- transition: transition,
112
- className: 'c15t-devtool-tab-title',
113
- children: tab.title,
114
- }
115
- ),
116
- }
117
- ),
118
- ],
119
- }
120
- );
121
- }
122
- );
73
+ const TabButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ tab, index, isSelected, activeColor, onClick })=>{
74
+ const Icon = tab.icon;
75
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_namespaceObject.motion.button, {
76
+ variants: buttonVariants,
77
+ initial: false,
78
+ animate: "animate",
79
+ custom: isSelected,
80
+ onClick: ()=>onClick(index),
81
+ transition: transition,
82
+ className: `c15t-devtool-tab-button ${isSelected ? `selected ${activeColor}` : ''}`,
83
+ children: [
84
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {
85
+ size: 20
86
+ }),
87
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_namespaceObject.AnimatePresence, {
88
+ initial: false,
89
+ children: isSelected && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_namespaceObject.motion.span, {
90
+ variants: spanVariants,
91
+ initial: "initial",
92
+ animate: "animate",
93
+ exit: "exit",
94
+ transition: transition,
95
+ className: "c15t-devtool-tab-title",
96
+ children: tab.title
97
+ })
98
+ })
99
+ ]
100
+ });
101
+ });
123
102
  TabButton.displayName = 'TabButton';
124
- function ExpandableTabs({
125
- tabs,
126
- className,
127
- activeColor = 'primary',
128
- onChange,
129
- }) {
130
- const [selected, setSelected] = (0, external_react_namespaceObject.useState)(
131
- 0
132
- );
133
- const handleInitialChange = (0,
134
- external_react_namespaceObject.useCallback)(() => {
135
- onChange?.(0);
136
- }, [onChange]);
137
- (0, external_react_namespaceObject.useEffect)(() => {
138
- handleInitialChange();
139
- }, [handleInitialChange]);
140
- const handleSelect = (0, external_react_namespaceObject.useCallback)(
141
- (index) => {
142
- setSelected(index);
143
- onChange?.(index);
144
- },
145
- [onChange]
146
- );
147
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
148
- className: `c15t-devtool-tabs-container ${className || ''}`,
149
- children: tabs.map((tab, index) =>
150
- 'separator' === tab.type
151
- ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
152
- Separator,
153
- {},
154
- `separator-${index}`
155
- )
156
- : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
157
- TabButton,
158
- {
159
- tab: tab,
160
- index: index,
161
- isSelected: selected === index,
162
- activeColor: activeColor,
163
- onClick: handleSelect,
164
- },
165
- `${tab.title}-${index}`
166
- )
167
- ),
168
- });
103
+ function ExpandableTabs({ tabs, className, activeColor = 'primary', onChange }) {
104
+ const [selected, setSelected] = (0, external_react_namespaceObject.useState)(0);
105
+ const handleInitialChange = (0, external_react_namespaceObject.useCallback)(()=>{
106
+ onChange?.(0);
107
+ }, [
108
+ onChange
109
+ ]);
110
+ (0, external_react_namespaceObject.useEffect)(()=>{
111
+ handleInitialChange();
112
+ }, [
113
+ handleInitialChange
114
+ ]);
115
+ const handleSelect = (0, external_react_namespaceObject.useCallback)((index)=>{
116
+ setSelected(index);
117
+ onChange?.(index);
118
+ }, [
119
+ onChange
120
+ ]);
121
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
122
+ className: `c15t-devtool-tabs-container ${className || ''}`,
123
+ children: tabs.map((tab, index)=>'separator' === tab.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Separator, {}, `separator-${index}`) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TabButton, {
124
+ tab: tab,
125
+ index: index,
126
+ isSelected: selected === index,
127
+ activeColor: activeColor,
128
+ onClick: handleSelect
129
+ }, `${tab.title}-${index}`))
130
+ });
169
131
  }
170
132
  var __webpack_export_target__ = exports;
171
- for (var __webpack_i__ in __webpack_exports__)
172
- __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
173
- if (__webpack_exports__.__esModule)
174
- Object.defineProperty(__webpack_export_target__, '__esModule', {
175
- value: true,
176
- });
133
+ for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
134
+ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
135
+ value: true
136
+ });
@@ -1,56 +1,57 @@
1
1
  .c15t-devtool-tabs-container {
2
- border: 1px solid var(--c15t-dev-tools-border);
3
- background-color: var(--c15t-dev-tools-background);
4
- border-radius: 1rem;
5
- flex-wrap: wrap;
6
- align-items: center;
7
- gap: .5rem;
8
- padding: .25rem;
9
- display: flex;
10
- box-shadow: 0 1px 2px #0000000d;
2
+ border: 1px solid var(--c15t-dev-tools-border);
3
+ background-color: var(--c15t-dev-tools-background);
4
+ border-radius: 1rem;
5
+ flex-wrap: wrap;
6
+ align-items: center;
7
+ gap: .5rem;
8
+ padding: .25rem;
9
+ display: flex;
10
+ box-shadow: 0 1px 2px #0000000d;
11
11
  }
12
12
 
13
13
  .c15t-devtool-tab-separator {
14
- background-color: var(--border);
15
- width: 1.2px;
16
- height: 24px;
17
- margin-left: .25rem;
18
- margin-right: .25rem;
14
+ background-color: var(--border);
15
+ width: 1.2px;
16
+ height: 24px;
17
+ margin-left: .25rem;
18
+ margin-right: .25rem;
19
19
  }
20
20
 
21
21
  .c15t-devtool-tab-button {
22
- border-radius: .75rem;
23
- flex-grow: 1;
24
- justify-content: center;
25
- align-items: center;
26
- padding: .5rem 1rem;
27
- font-size: .875rem;
28
- font-weight: 500;
29
- transition-property: color, background-color;
30
- transition-duration: .3s;
31
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
32
- display: flex;
33
- position: relative;
22
+ border-radius: .75rem;
23
+ flex-grow: 1;
24
+ justify-content: center;
25
+ align-items: center;
26
+ padding: .5rem 1rem;
27
+ font-size: .875rem;
28
+ font-weight: 500;
29
+ transition-property: color, background-color;
30
+ transition-duration: .3s;
31
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
32
+ display: flex;
33
+ position: relative;
34
34
  }
35
35
 
36
36
  .c15t-devtool-tab-button:not(.selected) {
37
- color: var(--c15t-dev-tools-muted-foreground);
37
+ color: var(--c15t-dev-tools-muted-foreground);
38
38
  }
39
39
 
40
40
  .c15t-devtool-tab-button:not(.selected):hover {
41
- background-color: var(--c15t-dev-tools-muted);
42
- color: var(--c15t-dev-tools-foreground);
41
+ background-color: var(--c15t-dev-tools-muted);
42
+ color: var(--c15t-dev-tools-foreground);
43
43
  }
44
44
 
45
45
  .c15t-devtool-tab-button.selected {
46
- background-color: var(--c15t-dev-tools-muted);
46
+ background-color: var(--c15t-dev-tools-muted);
47
47
  }
48
48
 
49
49
  .c15t-devtool-tab-button.selected.primary {
50
- color: var(--c15t-dev-tools-primary);
50
+ color: var(--c15t-dev-tools-primary);
51
51
  }
52
52
 
53
53
  .c15t-devtool-tab-title {
54
- white-space: nowrap;
55
- overflow: hidden;
54
+ white-space: nowrap;
55
+ overflow: hidden;
56
56
  }
57
+