@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,104 @@
1
+ 'use strict';
2
+ var __webpack_require__ = {};
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
+ };
15
+ })();
16
+ (() => {
17
+ __webpack_require__.o = function (obj, prop) {
18
+ return Object.prototype.hasOwnProperty.call(obj, prop);
19
+ };
20
+ })();
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
+ };
31
+ })();
32
+ var __webpack_exports__ = {};
33
+ __webpack_require__.r(__webpack_exports__);
34
+ __webpack_require__.d(__webpack_exports__, {
35
+ AlertDescription: () => AlertDescription,
36
+ AlertTitle: () => AlertTitle,
37
+ Alert: () => Alert,
38
+ });
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
+ const utils_cjs_namespaceObject = require('../../libs/utils.cjs');
43
+ const alertVariants = (0,
44
+ external_class_variance_authority_namespaceObject.cva)(
45
+ 'relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7',
46
+ {
47
+ variants: {
48
+ variant: {
49
+ default: 'bg-background text-foreground',
50
+ destructive:
51
+ 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
52
+ },
53
+ },
54
+ defaultVariants: {
55
+ variant: 'default',
56
+ },
57
+ }
58
+ );
59
+ const Alert = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
60
+ ({ className, variant, ...props }, ref) =>
61
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
62
+ ref: ref,
63
+ role: 'alert',
64
+ className: (0, utils_cjs_namespaceObject.cn)(
65
+ alertVariants({
66
+ variant,
67
+ }),
68
+ className
69
+ ),
70
+ ...props,
71
+ })
72
+ );
73
+ Alert.displayName = 'Alert';
74
+ const AlertTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
75
+ ({ className, ...props }, ref) =>
76
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('h5', {
77
+ ref: ref,
78
+ className: (0, utils_cjs_namespaceObject.cn)(
79
+ 'mb-1 font-medium leading-none tracking-tight',
80
+ className
81
+ ),
82
+ ...props,
83
+ })
84
+ );
85
+ AlertTitle.displayName = 'AlertTitle';
86
+ const AlertDescription = /*#__PURE__*/ (0,
87
+ external_react_namespaceObject.forwardRef)(({ className, ...props }, ref) =>
88
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
89
+ ref: ref,
90
+ className: (0, utils_cjs_namespaceObject.cn)(
91
+ 'text-sm [&_p]:leading-relaxed',
92
+ className
93
+ ),
94
+ ...props,
95
+ })
96
+ );
97
+ AlertDescription.displayName = 'AlertDescription';
98
+ var __webpack_export_target__ = exports;
99
+ for (var __webpack_i__ in __webpack_exports__)
100
+ __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
101
+ if (__webpack_exports__.__esModule)
102
+ Object.defineProperty(__webpack_export_target__, '__esModule', {
103
+ value: true,
104
+ });
@@ -0,0 +1,25 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import { type HTMLAttributes } from 'react';
3
+ declare const Alert: import('react').ForwardRefExoticComponent<
4
+ HTMLAttributes<HTMLDivElement> &
5
+ VariantProps<
6
+ (
7
+ props?:
8
+ | ({
9
+ variant?: 'default' | 'destructive' | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp)
11
+ | undefined
12
+ ) => string
13
+ > &
14
+ import('react').RefAttributes<HTMLDivElement>
15
+ >;
16
+ declare const AlertTitle: import('react').ForwardRefExoticComponent<
17
+ HTMLAttributes<HTMLHeadingElement> &
18
+ import('react').RefAttributes<HTMLParagraphElement>
19
+ >;
20
+ declare const AlertDescription: import('react').ForwardRefExoticComponent<
21
+ HTMLAttributes<HTMLParagraphElement> &
22
+ import('react').RefAttributes<HTMLParagraphElement>
23
+ >;
24
+ export { Alert, AlertTitle, AlertDescription };
25
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAmBxD,QAAA,MAAM,KAAK;;gIAUT,CAAC;AAGH,QAAA,MAAM,UAAU,qIASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,uIASpB,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,67 @@
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 * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from '../../libs/utils.js';
5
+ const alertVariants = (0,
6
+ __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)(
7
+ 'relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7',
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default: 'bg-background text-foreground',
12
+ destructive:
13
+ 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ variant: 'default',
18
+ },
19
+ }
20
+ );
21
+ const Alert = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(
22
+ ({ className, variant, ...props }, ref) =>
23
+ /*#__PURE__*/ (0,
24
+ __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)('div', {
25
+ ref: ref,
26
+ role: 'alert',
27
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
28
+ alertVariants({
29
+ variant,
30
+ }),
31
+ className
32
+ ),
33
+ ...props,
34
+ })
35
+ );
36
+ Alert.displayName = 'Alert';
37
+ const AlertTitle = /*#__PURE__*/ (0,
38
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
39
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
40
+ 'h5',
41
+ {
42
+ ref: ref,
43
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
44
+ 'mb-1 font-medium leading-none tracking-tight',
45
+ className
46
+ ),
47
+ ...props,
48
+ }
49
+ )
50
+ );
51
+ AlertTitle.displayName = 'AlertTitle';
52
+ const AlertDescription = /*#__PURE__*/ (0,
53
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
54
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
55
+ 'div',
56
+ {
57
+ ref: ref,
58
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
59
+ 'text-sm [&_p]:leading-relaxed',
60
+ className
61
+ ),
62
+ ...props,
63
+ }
64
+ )
65
+ );
66
+ AlertDescription.displayName = 'AlertDescription';
67
+ export { Alert, AlertDescription, AlertTitle };
@@ -0,0 +1,95 @@
1
+ 'use strict';
2
+ var __webpack_require__ = {};
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
+ };
15
+ })();
16
+ (() => {
17
+ __webpack_require__.o = function (obj, prop) {
18
+ return Object.prototype.hasOwnProperty.call(obj, prop);
19
+ };
20
+ })();
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
+ };
31
+ })();
32
+ var __webpack_exports__ = {};
33
+ __webpack_require__.r(__webpack_exports__);
34
+ __webpack_require__.d(__webpack_exports__, {
35
+ buttonVariants: () => buttonVariants,
36
+ Button: () => Button,
37
+ });
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
+ Button.displayName = 'Button';
89
+ var __webpack_export_target__ = exports;
90
+ for (var __webpack_i__ in __webpack_exports__)
91
+ __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
92
+ if (__webpack_exports__.__esModule)
93
+ Object.defineProperty(__webpack_export_target__, '__esModule', {
94
+ value: true,
95
+ });
@@ -0,0 +1,28 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import { type ButtonHTMLAttributes } from 'react';
3
+ declare const buttonVariants: (
4
+ props?:
5
+ | ({
6
+ variant?:
7
+ | 'link'
8
+ | 'outline'
9
+ | 'default'
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;
23
+ }
24
+ declare const Button: import('react').ForwardRefExoticComponent<
25
+ ButtonProps & import('react').RefAttributes<HTMLButtonElement>
26
+ >;
27
+ export { Button, buttonVariants };
28
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +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;AAElE,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,OAAO,CAAC;AAG9D,QAAA,MAAM,cAAc;;;8EA2BnB,CAAC;AAEF,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"}
@@ -0,0 +1,55 @@
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 * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from '../../libs/utils.js';
6
+ const buttonVariants = (0,
7
+ __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)(
8
+ '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',
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',
13
+ destructive:
14
+ 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
15
+ outline:
16
+ 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
17
+ secondary:
18
+ 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
19
+ ghost: 'hover:bg-accent hover:text-accent-foreground',
20
+ link: 'text-primary underline-offset-4 hover:underline',
21
+ },
22
+ size: {
23
+ default: 'h-10 px-4 py-2',
24
+ sm: 'h-9 rounded-md px-3',
25
+ lg: 'h-11 rounded-md px-8',
26
+ icon: 'h-10 w-10',
27
+ },
28
+ },
29
+ defaultVariants: {
30
+ variant: 'default',
31
+ size: 'default',
32
+ },
33
+ }
34
+ );
35
+ const Button = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(
36
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
37
+ const Comp = asChild
38
+ ? __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__.Slot
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
+ );
54
+ Button.displayName = 'Button';
55
+ export { Button, buttonVariants };
@@ -0,0 +1,120 @@
1
+ 'use strict';
2
+ var __webpack_require__ = {};
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
+ };
15
+ })();
16
+ (() => {
17
+ __webpack_require__.o = function (obj, prop) {
18
+ return Object.prototype.hasOwnProperty.call(obj, prop);
19
+ };
20
+ })();
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
+ };
31
+ })();
32
+ var __webpack_exports__ = {};
33
+ __webpack_require__.r(__webpack_exports__);
34
+ __webpack_require__.d(__webpack_exports__, {
35
+ CardHeader: () => CardHeader,
36
+ CardDescription: () => CardDescription,
37
+ CardTitle: () => CardTitle,
38
+ Card: () => Card,
39
+ CardContent: () => CardContent,
40
+ CardFooter: () => CardFooter,
41
+ });
42
+ const jsx_runtime_namespaceObject = require('react/jsx-runtime');
43
+ const external_react_namespaceObject = require('react');
44
+ const utils_cjs_namespaceObject = require('../../libs/utils.cjs');
45
+ const Card = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
46
+ ({ className, ...props }, ref) =>
47
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
48
+ ref: ref,
49
+ className: (0, utils_cjs_namespaceObject.cn)(
50
+ 'rounded-lg border bg-card text-card-foreground shadow-sm',
51
+ className
52
+ ),
53
+ ...props,
54
+ })
55
+ );
56
+ Card.displayName = 'Card';
57
+ const CardHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
58
+ ({ className, ...props }, ref) =>
59
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
60
+ ref: ref,
61
+ className: (0, utils_cjs_namespaceObject.cn)(
62
+ 'flex flex-col space-y-1.5 p-6',
63
+ className
64
+ ),
65
+ ...props,
66
+ })
67
+ );
68
+ CardHeader.displayName = 'CardHeader';
69
+ const CardTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
70
+ ({ className, ...props }, ref) =>
71
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('h3', {
72
+ ref: ref,
73
+ className: (0, utils_cjs_namespaceObject.cn)(
74
+ 'font-semibold text-2xl leading-none tracking-tight',
75
+ className
76
+ ),
77
+ ...props,
78
+ })
79
+ );
80
+ CardTitle.displayName = 'CardTitle';
81
+ const CardDescription = /*#__PURE__*/ (0,
82
+ external_react_namespaceObject.forwardRef)(({ className, ...props }, ref) =>
83
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('p', {
84
+ ref: ref,
85
+ className: (0, utils_cjs_namespaceObject.cn)(
86
+ 'text-muted-foreground text-sm',
87
+ className
88
+ ),
89
+ ...props,
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
+ );
101
+ CardContent.displayName = 'CardContent';
102
+ const CardFooter = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(
103
+ ({ className, ...props }, ref) =>
104
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)('div', {
105
+ ref: ref,
106
+ className: (0, utils_cjs_namespaceObject.cn)(
107
+ 'flex items-center p-6 pt-0',
108
+ className
109
+ ),
110
+ ...props,
111
+ })
112
+ );
113
+ CardFooter.displayName = 'CardFooter';
114
+ var __webpack_export_target__ = exports;
115
+ for (var __webpack_i__ in __webpack_exports__)
116
+ __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
117
+ if (__webpack_exports__.__esModule)
118
+ Object.defineProperty(__webpack_export_target__, '__esModule', {
119
+ value: true,
120
+ });
@@ -0,0 +1,30 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ declare const Card: import('react').ForwardRefExoticComponent<
3
+ HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
4
+ >;
5
+ declare const CardHeader: import('react').ForwardRefExoticComponent<
6
+ HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>
7
+ >;
8
+ declare const CardTitle: import('react').ForwardRefExoticComponent<
9
+ HTMLAttributes<HTMLHeadingElement> &
10
+ import('react').RefAttributes<HTMLParagraphElement>
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAGxD,QAAA,MAAM,IAAI,2HAWT,CAAC;AAGF,QAAA,MAAM,UAAU,2HAQf,CAAC;AAGF,QAAA,MAAM,SAAS,qIAYb,CAAC;AAGH,QAAA,MAAM,eAAe,uIASnB,CAAC;AAGH,QAAA,MAAM,WAAW,2HAIhB,CAAC;AAGF,QAAA,MAAM,UAAU,2HAQf,CAAC;AAGF,OAAO,EACN,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,GACX,CAAC"}
@@ -0,0 +1,99 @@
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 * as __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__ from '../../libs/utils.js';
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: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
10
+ 'rounded-lg border bg-card text-card-foreground shadow-sm',
11
+ className
12
+ ),
13
+ ...props,
14
+ })
15
+ );
16
+ Card.displayName = 'Card';
17
+ const CardHeader = /*#__PURE__*/ (0,
18
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
19
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
20
+ 'div',
21
+ {
22
+ ref: ref,
23
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
24
+ 'flex flex-col space-y-1.5 p-6',
25
+ className
26
+ ),
27
+ ...props,
28
+ }
29
+ )
30
+ );
31
+ CardHeader.displayName = 'CardHeader';
32
+ const CardTitle = /*#__PURE__*/ (0,
33
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
34
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
35
+ 'h3',
36
+ {
37
+ ref: ref,
38
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
39
+ 'font-semibold text-2xl leading-none tracking-tight',
40
+ className
41
+ ),
42
+ ...props,
43
+ }
44
+ )
45
+ );
46
+ CardTitle.displayName = 'CardTitle';
47
+ const CardDescription = /*#__PURE__*/ (0,
48
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
49
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
50
+ 'p',
51
+ {
52
+ ref: ref,
53
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
54
+ 'text-muted-foreground text-sm',
55
+ className
56
+ ),
57
+ ...props,
58
+ }
59
+ )
60
+ );
61
+ CardDescription.displayName = 'CardDescription';
62
+ const CardContent = /*#__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: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
69
+ 'p-6 pt-0',
70
+ className
71
+ ),
72
+ ...props,
73
+ }
74
+ )
75
+ );
76
+ CardContent.displayName = 'CardContent';
77
+ const CardFooter = /*#__PURE__*/ (0,
78
+ __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ className, ...props }, ref) =>
79
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
80
+ 'div',
81
+ {
82
+ ref: ref,
83
+ className: (0, __WEBPACK_EXTERNAL_MODULE__libs_utils_js_eb00b89d__.cn)(
84
+ 'flex items-center p-6 pt-0',
85
+ className
86
+ ),
87
+ ...props,
88
+ }
89
+ )
90
+ );
91
+ CardFooter.displayName = 'CardFooter';
92
+ export {
93
+ Card,
94
+ CardContent,
95
+ CardDescription,
96
+ CardFooter,
97
+ CardHeader,
98
+ CardTitle,
99
+ };