@c15t/dev-tools 0.0.1-rc.3

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 (89) hide show
  1. package/.turbo/turbo-build.log +56 -0
  2. package/.turbo/turbo-fmt.log +6 -0
  3. package/.turbo/turbo-lint.log +73 -0
  4. package/CHANGELOG.md +23 -0
  5. package/LICENSE.md +595 -0
  6. package/README.md +47 -0
  7. package/dist/components/error-state.cjs +126 -0
  8. package/dist/components/error-state.d.ts +6 -0
  9. package/dist/components/error-state.d.ts.map +1 -0
  10. package/dist/components/error-state.js +110 -0
  11. package/dist/components/header.cjs +88 -0
  12. package/dist/components/header.d.ts +8 -0
  13. package/dist/components/header.d.ts.map +1 -0
  14. package/dist/components/header.js +56 -0
  15. package/dist/components/ui/accordion.cjs +119 -0
  16. package/dist/components/ui/accordion.d.ts +34 -0
  17. package/dist/components/ui/accordion.d.ts.map +1 -0
  18. package/dist/components/ui/accordion.js +84 -0
  19. package/dist/components/ui/alert.cjs +104 -0
  20. package/dist/components/ui/alert.d.ts +25 -0
  21. package/dist/components/ui/alert.d.ts.map +1 -0
  22. package/dist/components/ui/alert.js +67 -0
  23. package/dist/components/ui/button.cjs +95 -0
  24. package/dist/components/ui/button.d.ts +28 -0
  25. package/dist/components/ui/button.d.ts.map +1 -0
  26. package/dist/components/ui/button.js +55 -0
  27. package/dist/components/ui/card.cjs +120 -0
  28. package/dist/components/ui/card.d.ts +30 -0
  29. package/dist/components/ui/card.d.ts.map +1 -0
  30. package/dist/components/ui/card.js +99 -0
  31. package/dist/components/ui/expandable-tabs.cjs +201 -0
  32. package/dist/components/ui/expandable-tabs.d.ts +29 -0
  33. package/dist/components/ui/expandable-tabs.d.ts.map +1 -0
  34. package/dist/components/ui/expandable-tabs.js +170 -0
  35. package/dist/components/ui/overlay.cjs +69 -0
  36. package/dist/components/ui/overlay.d.ts +7 -0
  37. package/dist/components/ui/overlay.d.ts.map +1 -0
  38. package/dist/components/ui/overlay.js +28 -0
  39. package/dist/components/ui/scroll-area.cjs +105 -0
  40. package/dist/components/ui/scroll-area.d.ts +19 -0
  41. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  42. package/dist/components/ui/scroll-area.js +74 -0
  43. package/dist/components/ui/switch.cjs +71 -0
  44. package/dist/components/ui/switch.d.ts +11 -0
  45. package/dist/components/ui/switch.d.ts.map +1 -0
  46. package/dist/components/ui/switch.js +33 -0
  47. package/dist/components/ui/tooltip.cjs +75 -0
  48. package/dist/components/ui/tooltip.d.ts +16 -0
  49. package/dist/components/ui/tooltip.d.ts.map +1 -0
  50. package/dist/components/ui/tooltip.js +38 -0
  51. package/dist/components/wrapper.cjs +197 -0
  52. package/dist/components/wrapper.d.ts +24 -0
  53. package/dist/components/wrapper.d.ts.map +1 -0
  54. package/dist/components/wrapper.js +165 -0
  55. package/dist/dev-tool.cjs +164 -0
  56. package/dist/dev-tool.d.ts +14 -0
  57. package/dist/dev-tool.d.ts.map +1 -0
  58. package/dist/dev-tool.js +110 -0
  59. package/dist/index.cjs +46 -0
  60. package/dist/index.d.ts +3 -0
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +4 -0
  63. package/dist/libs/utils.cjs +69 -0
  64. package/dist/libs/utils.d.ts +3 -0
  65. package/dist/libs/utils.d.ts.map +1 -0
  66. package/dist/libs/utils.js +8 -0
  67. package/dist/router/router.cjs +278 -0
  68. package/dist/router/router.d.ts +8 -0
  69. package/dist/router/router.d.ts.map +1 -0
  70. package/dist/router/router.js +261 -0
  71. package/package.json +48 -0
  72. package/rslib.config.ts +28 -0
  73. package/src/components/error-state.tsx +44 -0
  74. package/src/components/header.tsx +28 -0
  75. package/src/components/ui/accordion.tsx +64 -0
  76. package/src/components/ui/alert.tsx +59 -0
  77. package/src/components/ui/button.tsx +56 -0
  78. package/src/components/ui/card.tsx +81 -0
  79. package/src/components/ui/expandable-tabs.tsx +174 -0
  80. package/src/components/ui/overlay.tsx +21 -0
  81. package/src/components/ui/scroll-area.tsx +52 -0
  82. package/src/components/ui/switch.tsx +28 -0
  83. package/src/components/ui/tooltip.tsx +32 -0
  84. package/src/components/wrapper.tsx +103 -0
  85. package/src/dev-tool.tsx +117 -0
  86. package/src/index.ts +3 -0
  87. package/src/libs/utils.ts +6 -0
  88. package/src/router/router.tsx +164 -0
  89. package/tsconfig.json +12 -0
@@ -0,0 +1,74 @@
1
+ 'use client';
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from 'react/jsx-runtime';
3
+ import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__ from '@radix-ui/react-scroll-area';
4
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from 'react';
5
+ import * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from '../../libs/utils.js';
6
+ const ScrollArea = /*#__PURE__*/ (0,
7
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(
8
+ ({ className, children, ...props }, ref) =>
9
+ /*#__PURE__*/ (0,
10
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(
11
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.Root,
12
+ {
13
+ ref: ref,
14
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
15
+ 'relative overflow-hidden',
16
+ className
17
+ ),
18
+ ...props,
19
+ children: [
20
+ /*#__PURE__*/ (0,
21
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
22
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.Viewport,
23
+ {
24
+ className: 'h-full w-full rounded-[inherit]',
25
+ children: children,
26
+ }
27
+ ),
28
+ /*#__PURE__*/ (0,
29
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
30
+ ScrollBar,
31
+ {}
32
+ ),
33
+ /*#__PURE__*/ (0,
34
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
35
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.Corner,
36
+ {}
37
+ ),
38
+ ],
39
+ }
40
+ )
41
+ );
42
+ ScrollArea.displayName =
43
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.Root.displayName;
44
+ const ScrollBar = /*#__PURE__*/ (0,
45
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(
46
+ ({ className, orientation = 'vertical', ...props }, ref) =>
47
+ /*#__PURE__*/ (0,
48
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
49
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.ScrollAreaScrollbar,
50
+ {
51
+ ref: ref,
52
+ orientation: orientation,
53
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
54
+ 'flex touch-none select-none transition-colors',
55
+ 'vertical' === orientation &&
56
+ 'h-full w-2.5 border-l border-l-transparent p-[1px]',
57
+ 'horizontal' === orientation &&
58
+ 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
59
+ className
60
+ ),
61
+ ...props,
62
+ children: /*#__PURE__*/ (0,
63
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
64
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.ScrollAreaThumb,
65
+ {
66
+ className: 'relative flex-1 rounded-full bg-border',
67
+ }
68
+ ),
69
+ }
70
+ )
71
+ );
72
+ ScrollBar.displayName =
73
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_scroll_area_93228e9e__.ScrollAreaScrollbar.displayName;
74
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,71 @@
1
+ 'use client';
2
+ 'use strict';
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
+ };
16
+ })();
17
+ (() => {
18
+ __webpack_require__.o = function (obj, prop) {
19
+ return Object.prototype.hasOwnProperty.call(obj, prop);
20
+ };
21
+ })();
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
+ };
32
+ })();
33
+ var __webpack_exports__ = {};
34
+ __webpack_require__.r(__webpack_exports__);
35
+ __webpack_require__.d(__webpack_exports__, {
36
+ Switch: () => Switch,
37
+ });
38
+ const jsx_runtime_namespaceObject = require('react/jsx-runtime');
39
+ const react_switch_namespaceObject = require('@radix-ui/react-switch');
40
+ const external_react_namespaceObject = require('react');
41
+ const utils_cjs_namespaceObject = require('../../libs/utils.cjs');
42
+ const Switch = /*#__PURE__*/ external_react_namespaceObject.forwardRef(
43
+ ({ className, ...props }, ref) =>
44
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
45
+ react_switch_namespaceObject.Root,
46
+ {
47
+ className: (0, utils_cjs_namespaceObject.cn)(
48
+ 'peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
49
+ className
50
+ ),
51
+ ...props,
52
+ ref: ref,
53
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
54
+ react_switch_namespaceObject.Thumb,
55
+ {
56
+ className: (0, utils_cjs_namespaceObject.cn)(
57
+ 'pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
58
+ ),
59
+ }
60
+ ),
61
+ }
62
+ )
63
+ );
64
+ Switch.displayName = react_switch_namespaceObject.Root.displayName;
65
+ var __webpack_export_target__ = exports;
66
+ for (var __webpack_i__ in __webpack_exports__)
67
+ __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
68
+ if (__webpack_exports__.__esModule)
69
+ Object.defineProperty(__webpack_export_target__, '__esModule', {
70
+ value: true,
71
+ });
@@ -0,0 +1,11 @@
1
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
2
+ import * as React from 'react';
3
+ declare const Switch: React.ForwardRefExoticComponent<
4
+ Omit<
5
+ SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>,
6
+ 'ref'
7
+ > &
8
+ React.RefAttributes<HTMLButtonElement>
9
+ >;
10
+ export { Switch };
11
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,MAAM,8JAkBV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ 'use client';
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from 'react/jsx-runtime';
3
+ import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_switch_5e92b7ed__ from '@radix-ui/react-switch';
4
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from 'react';
5
+ import * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from '../../libs/utils.js';
6
+ const Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef(
7
+ ({ className, ...props }, ref) =>
8
+ /*#__PURE__*/ (0,
9
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
10
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_switch_5e92b7ed__.Root,
11
+ {
12
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
13
+ 'peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
14
+ className
15
+ ),
16
+ ...props,
17
+ ref: ref,
18
+ children: /*#__PURE__*/ (0,
19
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
20
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_switch_5e92b7ed__.Thumb,
21
+ {
22
+ className: (0,
23
+ __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
24
+ 'pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
25
+ ),
26
+ }
27
+ ),
28
+ }
29
+ )
30
+ );
31
+ Switch.displayName =
32
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_switch_5e92b7ed__.Root.displayName;
33
+ export { Switch };
@@ -0,0 +1,75 @@
1
+ 'use client';
2
+ 'use strict';
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
+ };
16
+ })();
17
+ (() => {
18
+ __webpack_require__.o = function (obj, prop) {
19
+ return Object.prototype.hasOwnProperty.call(obj, prop);
20
+ };
21
+ })();
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
+ };
32
+ })();
33
+ var __webpack_exports__ = {};
34
+ __webpack_require__.r(__webpack_exports__);
35
+ __webpack_require__.d(__webpack_exports__, {
36
+ TooltipContent: () => TooltipContent,
37
+ Tooltip: () => Tooltip,
38
+ TooltipTrigger: () => TooltipTrigger,
39
+ TooltipProvider: () => TooltipProvider,
40
+ });
41
+ const jsx_runtime_namespaceObject = require('react/jsx-runtime');
42
+ const react_tooltip_namespaceObject = require('@radix-ui/react-tooltip');
43
+ const external_react_namespaceObject = require('react');
44
+ const utils_cjs_namespaceObject = require('../../libs/utils.cjs');
45
+ const TooltipProvider = react_tooltip_namespaceObject.Provider;
46
+ const Tooltip = react_tooltip_namespaceObject.Root;
47
+ const TooltipTrigger = react_tooltip_namespaceObject.Trigger;
48
+ const TooltipContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(
49
+ ({ className, sideOffset = 4, ...props }, ref) =>
50
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
51
+ react_tooltip_namespaceObject.Portal,
52
+ {
53
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
54
+ react_tooltip_namespaceObject.Content,
55
+ {
56
+ ref: ref,
57
+ sideOffset: sideOffset,
58
+ className: (0, utils_cjs_namespaceObject.cn)(
59
+ 'fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out',
60
+ className
61
+ ),
62
+ ...props,
63
+ }
64
+ ),
65
+ }
66
+ )
67
+ );
68
+ TooltipContent.displayName = react_tooltip_namespaceObject.Content.displayName;
69
+ var __webpack_export_target__ = exports;
70
+ for (var __webpack_i__ in __webpack_exports__)
71
+ __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
72
+ if (__webpack_exports__.__esModule)
73
+ Object.defineProperty(__webpack_export_target__, '__esModule', {
74
+ value: true,
75
+ });
@@ -0,0 +1,16 @@
1
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
2
+ import * as React from 'react';
3
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<
6
+ TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>
7
+ >;
8
+ declare const TooltipContent: React.ForwardRefExoticComponent<
9
+ Omit<
10
+ TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>,
11
+ 'ref'
12
+ > &
13
+ React.RefAttributes<HTMLDivElement>
14
+ >;
15
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
16
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,eAAe,iDAA4B,CAAC;AAElD,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAelB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,38 @@
1
+ 'use client';
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from 'react/jsx-runtime';
3
+ import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__ from '@radix-ui/react-tooltip';
4
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from 'react';
5
+ import * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from '../../libs/utils.js';
6
+ const TooltipProvider =
7
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__.Provider;
8
+ const Tooltip =
9
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__.Root;
10
+ const TooltipTrigger =
11
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__.Trigger;
12
+ const TooltipContent =
13
+ /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef(
14
+ ({ className, sideOffset = 4, ...props }, ref) =>
15
+ /*#__PURE__*/ (0,
16
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
17
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__.Portal,
18
+ {
19
+ children: /*#__PURE__*/ (0,
20
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
21
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__.Content,
22
+ {
23
+ ref: ref,
24
+ sideOffset: sideOffset,
25
+ className: (0,
26
+ __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
27
+ 'fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out',
28
+ className
29
+ ),
30
+ ...props,
31
+ }
32
+ ),
33
+ }
34
+ )
35
+ );
36
+ TooltipContent.displayName =
37
+ __WEBPACK_EXTERNAL_MODULE__radix_ui_react_tooltip_22b80323__.Content.displayName;
38
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,197 @@
1
+ 'use client';
2
+ 'use strict';
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
+ };
16
+ })();
17
+ (() => {
18
+ __webpack_require__.o = function (obj, prop) {
19
+ return Object.prototype.hasOwnProperty.call(obj, prop);
20
+ };
21
+ })();
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
+ };
32
+ })();
33
+ var __webpack_exports__ = {};
34
+ __webpack_require__.r(__webpack_exports__);
35
+ __webpack_require__.d(__webpack_exports__, {
36
+ DevToolWrapper: () => DevToolWrapper,
37
+ default: () => wrapper_rslib_entry_,
38
+ });
39
+ const jsx_runtime_namespaceObject = require('react/jsx-runtime');
40
+ const external_lucide_react_namespaceObject = require('lucide-react');
41
+ const react_namespaceObject = require('motion/react');
42
+ const external_react_namespaceObject = require('react');
43
+ const external_react_dom_namespaceObject = require('react-dom');
44
+ const utils_cjs_namespaceObject = require('../libs/utils.cjs');
45
+ const button_cjs_namespaceObject = require('./ui/button.cjs');
46
+ const card_cjs_namespaceObject = require('./ui/card.cjs');
47
+ function DevToolWrapper({
48
+ children,
49
+ isOpen,
50
+ toggleOpen,
51
+ position = 'bottom-right',
52
+ }) {
53
+ const [isMounted, setIsMounted] = (0,
54
+ external_react_namespaceObject.useState)(false);
55
+ (0, external_react_namespaceObject.useEffect)(() => {
56
+ setIsMounted(true);
57
+ return () => setIsMounted(false);
58
+ }, []);
59
+ const DevToolContent = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
60
+ react_namespaceObject.AnimatePresence,
61
+ {
62
+ children:
63
+ isOpen &&
64
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
65
+ react_namespaceObject.motion.div,
66
+ {
67
+ className:
68
+ 'fixed inset-0 z-50 flex items-end justify-center sm:items-center',
69
+ initial: {
70
+ opacity: 0,
71
+ },
72
+ animate: {
73
+ opacity: 1,
74
+ },
75
+ exit: {
76
+ opacity: 0,
77
+ },
78
+ children: [
79
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
80
+ react_namespaceObject.motion.div,
81
+ {
82
+ className: 'fixed inset-0 bg-background/10 backdrop-blur-sm',
83
+ initial: {
84
+ opacity: 0,
85
+ },
86
+ animate: {
87
+ opacity: 1,
88
+ },
89
+ exit: {
90
+ opacity: 0,
91
+ },
92
+ onClick: toggleOpen,
93
+ }
94
+ ),
95
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
96
+ react_namespaceObject.motion.div,
97
+ {
98
+ className: (0, utils_cjs_namespaceObject.cn)(
99
+ 'fixed z-[9999]',
100
+ 'bottom-right' === position && 'right-4 bottom-4',
101
+ 'top-right' === position && 'top-4 right-4',
102
+ 'bottom-left' === position && 'bottom-4 left-4',
103
+ 'top-left' === position && 'top-4 left-4'
104
+ ),
105
+ initial: {
106
+ opacity: 0,
107
+ y: 50,
108
+ },
109
+ animate: {
110
+ opacity: 1,
111
+ y: 0,
112
+ },
113
+ exit: {
114
+ opacity: 0,
115
+ y: 50,
116
+ },
117
+ transition: {
118
+ type: 'spring',
119
+ stiffness: 300,
120
+ damping: 30,
121
+ },
122
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
123
+ card_cjs_namespaceObject.Card,
124
+ {
125
+ className: 'w-[350px] shadow-lg',
126
+ children: children,
127
+ }
128
+ ),
129
+ }
130
+ ),
131
+ ],
132
+ }
133
+ ),
134
+ }
135
+ );
136
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
137
+ jsx_runtime_namespaceObject.Fragment,
138
+ {
139
+ children: [
140
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
141
+ react_namespaceObject.AnimatePresence,
142
+ {
143
+ children:
144
+ !isOpen &&
145
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
146
+ react_namespaceObject.motion.div,
147
+ {
148
+ initial: {
149
+ scale: 0.9,
150
+ opacity: 0,
151
+ },
152
+ animate: {
153
+ scale: 1,
154
+ opacity: 1,
155
+ },
156
+ exit: {
157
+ scale: 0.9,
158
+ opacity: 0,
159
+ },
160
+ className: 'fixed right-4 bottom-4 z-[9999]',
161
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
162
+ button_cjs_namespaceObject.Button,
163
+ {
164
+ variant: 'outline',
165
+ size: 'icon',
166
+ className: 'h-10 w-10 rounded-full shadow-lg',
167
+ onClick: toggleOpen,
168
+ children: /*#__PURE__*/ (0,
169
+ jsx_runtime_namespaceObject.jsx)(
170
+ external_lucide_react_namespaceObject.Shield,
171
+ {
172
+ className: 'h-4 w-4',
173
+ }
174
+ ),
175
+ }
176
+ ),
177
+ }
178
+ ),
179
+ }
180
+ ),
181
+ isMounted &&
182
+ /*#__PURE__*/ (0, external_react_dom_namespaceObject.createPortal)(
183
+ DevToolContent,
184
+ document.body
185
+ ),
186
+ ],
187
+ }
188
+ );
189
+ }
190
+ const wrapper_rslib_entry_ = DevToolWrapper;
191
+ var __webpack_export_target__ = exports;
192
+ for (var __webpack_i__ in __webpack_exports__)
193
+ __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
194
+ if (__webpack_exports__.__esModule)
195
+ Object.defineProperty(__webpack_export_target__, '__esModule', {
196
+ value: true,
197
+ });
@@ -0,0 +1,24 @@
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * Dev Tool Wrapper Component
4
+ *
5
+ * This component serves as both an icon and a wrapper for the development tool interface.
6
+ * It provides a button that, when clicked, toggles the visibility of a pop-up containing
7
+ * the router pages.
8
+ *
9
+ * @component
10
+ * @returns {JSX.Element} The rendered component
11
+ */
12
+ export declare function DevToolWrapper({
13
+ children,
14
+ isOpen,
15
+ toggleOpen,
16
+ position,
17
+ }: {
18
+ children: ReactNode;
19
+ isOpen: boolean;
20
+ toggleOpen: () => void;
21
+ position?: 'bottom-right' | 'top-right' | 'bottom-left' | 'top-left';
22
+ }): import('react/jsx-runtime').JSX.Element;
23
+ export default DevToolWrapper;
24
+ //# sourceMappingURL=wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAM5D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,UAAU,EACV,QAAyB,GACzB,EAAE;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;CACrE,2CAqEA;AAED,eAAe,cAAc,CAAC"}