@codefast/ui 0.0.7 → 0.0.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.
- package/dist/badge.js +4 -4
- package/dist/badge.js.map +1 -1
- package/dist/badge.mjs +4 -4
- package/dist/badge.mjs.map +1 -1
- package/dist/blockquote.d.mts +7 -0
- package/dist/blockquote.d.ts +7 -0
- package/dist/blockquote.js +13 -0
- package/dist/blockquote.js.map +1 -0
- package/dist/blockquote.mjs +13 -0
- package/dist/blockquote.mjs.map +1 -0
- package/dist/box.d.mts +14 -0
- package/dist/box.d.ts +14 -0
- package/dist/box.js +15 -0
- package/dist/box.js.map +1 -0
- package/dist/box.mjs +15 -0
- package/dist/box.mjs.map +1 -0
- package/dist/button.d.mts +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/code.d.mts +7 -0
- package/dist/code.d.ts +7 -0
- package/dist/code.js +13 -0
- package/dist/code.js.map +1 -0
- package/dist/code.mjs +13 -0
- package/dist/code.mjs.map +1 -0
- package/dist/command.d.mts +15 -15
- package/dist/command.d.ts +15 -15
- package/dist/container.d.mts +7 -0
- package/dist/container.d.ts +7 -0
- package/dist/container.js +17 -0
- package/dist/container.js.map +1 -0
- package/dist/container.mjs +17 -0
- package/dist/container.mjs.map +1 -0
- package/dist/em.d.mts +7 -0
- package/dist/em.d.ts +7 -0
- package/dist/em.js +13 -0
- package/dist/em.js.map +1 -0
- package/dist/em.mjs +13 -0
- package/dist/em.mjs.map +1 -0
- package/dist/heading.d.mts +8 -0
- package/dist/heading.d.ts +8 -0
- package/dist/heading.js +13 -0
- package/dist/heading.js.map +1 -0
- package/dist/heading.mjs +13 -0
- package/dist/heading.mjs.map +1 -0
- package/dist/kbd.d.mts +7 -0
- package/dist/kbd.d.ts +7 -0
- package/dist/kbd.js +27 -0
- package/dist/kbd.js.map +1 -0
- package/dist/kbd.mjs +27 -0
- package/dist/kbd.mjs.map +1 -0
- package/dist/pre.d.mts +7 -0
- package/dist/pre.d.ts +7 -0
- package/dist/pre.js +13 -0
- package/dist/pre.js.map +1 -0
- package/dist/pre.mjs +13 -0
- package/dist/pre.mjs.map +1 -0
- package/dist/quote.d.mts +7 -0
- package/dist/quote.d.ts +7 -0
- package/dist/quote.js +13 -0
- package/dist/quote.js.map +1 -0
- package/dist/quote.mjs +13 -0
- package/dist/quote.mjs.map +1 -0
- package/dist/section.d.mts +7 -0
- package/dist/section.d.ts +7 -0
- package/dist/section.js +13 -0
- package/dist/section.js.map +1 -0
- package/dist/section.mjs +13 -0
- package/dist/section.mjs.map +1 -0
- package/dist/strong.d.mts +7 -0
- package/dist/strong.d.ts +7 -0
- package/dist/strong.js +13 -0
- package/dist/strong.js.map +1 -0
- package/dist/strong.mjs +13 -0
- package/dist/strong.mjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/text.d.mts +14 -0
- package/dist/text.d.ts +14 -0
- package/dist/text.js +15 -0
- package/dist/text.js.map +1 -0
- package/dist/text.mjs +15 -0
- package/dist/text.mjs.map +1 -0
- package/package.json +62 -2
- package/src/badge.tsx +4 -6
- package/src/blockquote.tsx +24 -0
- package/src/box.tsx +33 -0
- package/src/code.tsx +22 -0
- package/src/container.tsx +25 -0
- package/src/em.tsx +22 -0
- package/src/heading.tsx +25 -0
- package/src/kbd.tsx +32 -0
- package/src/pre.tsx +22 -0
- package/src/quote.tsx +22 -0
- package/src/section.tsx +24 -0
- package/src/strong.tsx +22 -0
- package/src/text.tsx +34 -0
package/dist/badge.js
CHANGED
|
@@ -5,12 +5,12 @@ var _chunkG3NP7M2Njs = require('./chunk-G3NP7M2N.js');
|
|
|
5
5
|
// src/badge.tsx
|
|
6
6
|
var _jsxruntime = require('react/jsx-runtime');
|
|
7
7
|
var badgeVariants = _chunkG3NP7M2Njs.cva.call(void 0, {
|
|
8
|
-
base: "
|
|
8
|
+
base: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors",
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
default: "bg-primary text-primary-foreground
|
|
12
|
-
secondary: "bg-secondary text-secondary-foreground
|
|
13
|
-
destructive: "bg-destructive text-destructive-foreground
|
|
11
|
+
default: "bg-primary text-primary-foreground border-transparent shadow",
|
|
12
|
+
secondary: "bg-secondary text-secondary-foreground border-transparent",
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground border-transparent shadow",
|
|
14
14
|
outline: "text-foreground"
|
|
15
15
|
}
|
|
16
16
|
},
|
package/dist/badge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/badge.tsx"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../src/badge.tsx"],"names":[],"mappings":";;;;;AAiCS;AA1BT,IAAM,gBAAgB,IAAI;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA,MACX,aACE;AAAA,MACF,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;AAMD,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACyD;AACvD,SAAO,oBAAC,SAAI,WAAW,cAAc,EAAE,SAAS,UAAU,CAAC,GAAI,GAAG,OAAO;AAC3E","sourcesContent":["import { type VariantProps } from \"cva\";\nimport { cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = cva({\n base: \"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors\",\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground border-transparent shadow\",\n secondary: \"bg-secondary text-secondary-foreground border-transparent\",\n destructive:\n \"bg-destructive text-destructive-foreground border-transparent shadow\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\nfunction Badge({\n className,\n variant,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof badgeVariants>): React.JSX.Element {\n return <div className={badgeVariants({ variant, className })} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge };\n"]}
|
package/dist/badge.mjs
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
// src/badge.tsx
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
var badgeVariants = cva({
|
|
8
|
-
base: "
|
|
8
|
+
base: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors",
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
default: "bg-primary text-primary-foreground
|
|
12
|
-
secondary: "bg-secondary text-secondary-foreground
|
|
13
|
-
destructive: "bg-destructive text-destructive-foreground
|
|
11
|
+
default: "bg-primary text-primary-foreground border-transparent shadow",
|
|
12
|
+
secondary: "bg-secondary text-secondary-foreground border-transparent",
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground border-transparent shadow",
|
|
14
14
|
outline: "text-foreground"
|
|
15
15
|
}
|
|
16
16
|
},
|
package/dist/badge.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/badge.tsx"],"sourcesContent":["import { type VariantProps } from \"cva\";\nimport { cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = cva({\n base: \"
|
|
1
|
+
{"version":3,"sources":["../src/badge.tsx"],"sourcesContent":["import { type VariantProps } from \"cva\";\nimport { cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = cva({\n base: \"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors\",\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground border-transparent shadow\",\n secondary: \"bg-secondary text-secondary-foreground border-transparent\",\n destructive:\n \"bg-destructive text-destructive-foreground border-transparent shadow\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\nfunction Badge({\n className,\n variant,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof badgeVariants>): React.JSX.Element {\n return <div className={badgeVariants({ variant, className })} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge };\n"],"mappings":";;;;;AAiCS;AA1BT,IAAM,gBAAgB,IAAI;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA,MACX,aACE;AAAA,MACF,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;AAMD,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACyD;AACvD,SAAO,oBAAC,SAAI,WAAW,cAAc,EAAE,SAAS,UAAU,CAAC,GAAI,GAAG,OAAO;AAC3E;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/blockquote.tsx
|
|
2
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
3
|
+
var _reactslot = require('@radix-ui/react-slot');
|
|
4
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
5
|
+
var Blockquote = React.forwardRef(({ asChild, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? _reactslot.Slot : "blockquote";
|
|
7
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { ref, ...props });
|
|
8
|
+
});
|
|
9
|
+
Blockquote.displayName = "Blockquote";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Blockquote = Blockquote;
|
|
13
|
+
//# sourceMappingURL=blockquote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/blockquote.tsx"],"names":[],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAcZ;AART,IAAM,aAAmB,iBAKvB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AACpC,CAAC;AACD,WAAW,cAAc","sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Blockquote\n * -------------------------------------------------------------------------- */\n\nconst Blockquote = React.forwardRef<\n HTMLQuoteElement,\n React.BlockquoteHTMLAttributes<HTMLQuoteElement> & {\n asChild?: boolean;\n }\n>(({ asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"blockquote\";\n\n return <Comp ref={ref} {...props} />;\n});\nBlockquote.displayName = \"Blockquote\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Blockquote };\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/blockquote.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var Blockquote = React.forwardRef(({ asChild, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? Slot : "blockquote";
|
|
7
|
+
return /* @__PURE__ */ jsx(Comp, { ref, ...props });
|
|
8
|
+
});
|
|
9
|
+
Blockquote.displayName = "Blockquote";
|
|
10
|
+
export {
|
|
11
|
+
Blockquote
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=blockquote.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/blockquote.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Blockquote\n * -------------------------------------------------------------------------- */\n\nconst Blockquote = React.forwardRef<\n HTMLQuoteElement,\n React.BlockquoteHTMLAttributes<HTMLQuoteElement> & {\n asChild?: boolean;\n }\n>(({ asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"blockquote\";\n\n return <Comp ref={ref} {...props} />;\n});\nBlockquote.displayName = \"Blockquote\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Blockquote };\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAcZ;AART,IAAM,aAAmB,iBAKvB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AACpC,CAAC;AACD,WAAW,cAAc;","names":[]}
|
package/dist/box.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
as?: "div";
|
|
5
|
+
}
|
|
6
|
+
interface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
7
|
+
as: "span";
|
|
8
|
+
}
|
|
9
|
+
type BoxProps = (BoxDivProps | BoxSpanProps) & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export { Box };
|
package/dist/box.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
as?: "div";
|
|
5
|
+
}
|
|
6
|
+
interface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
7
|
+
as: "span";
|
|
8
|
+
}
|
|
9
|
+
type BoxProps = (BoxDivProps | BoxSpanProps) & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export { Box };
|
package/dist/box.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/box.tsx
|
|
2
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
3
|
+
var _reactslot = require('@radix-ui/react-slot');
|
|
4
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
5
|
+
var Box = React.forwardRef(
|
|
6
|
+
({ as: Tag = "div", asChild, ...props }, ref) => {
|
|
7
|
+
const Comp = asChild ? _reactslot.Slot : Tag;
|
|
8
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { ref, ...props });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
Box.displayName = "Box";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.Box = Box;
|
|
15
|
+
//# sourceMappingURL=box.js.map
|
package/dist/box.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/box.tsx"],"names":[],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAsBV;AAJX,IAAM,MAAY;AAAA,EAChB,CAAC,EAAE,IAAI,MAAM,OAAO,SAAS,GAAG,MAAM,GAAG,QAAQ;AAC/C,UAAM,OAAO,UAAU,OAAO;AAE9B,WAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AAAA,EACpC;AACF;AACA,IAAI,cAAc","sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ninterface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {\n as?: \"div\";\n}\n\ninterface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: \"span\";\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = React.forwardRef<HTMLDivElement, BoxProps>(\n ({ as: Tag = \"div\", asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : Tag;\n\n return <Comp ref={ref} {...props} />;\n },\n);\nBox.displayName = \"Box\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box };\n"]}
|
package/dist/box.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/box.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var Box = React.forwardRef(
|
|
6
|
+
({ as: Tag = "div", asChild, ...props }, ref) => {
|
|
7
|
+
const Comp = asChild ? Slot : Tag;
|
|
8
|
+
return /* @__PURE__ */ jsx(Comp, { ref, ...props });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
Box.displayName = "Box";
|
|
12
|
+
export {
|
|
13
|
+
Box
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=box.mjs.map
|
package/dist/box.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/box.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ninterface BoxDivProps extends React.HTMLAttributes<HTMLDivElement> {\n as?: \"div\";\n}\n\ninterface BoxSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: \"span\";\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = React.forwardRef<HTMLDivElement, BoxProps>(\n ({ as: Tag = \"div\", asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : Tag;\n\n return <Comp ref={ref} {...props} />;\n },\n);\nBox.displayName = \"Box\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box };\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAsBV;AAJX,IAAM,MAAY;AAAA,EAChB,CAAC,EAAE,IAAI,MAAM,OAAO,SAAS,GAAG,MAAM,GAAG,QAAQ;AAC/C,UAAM,OAAO,UAAU,OAAO;AAE9B,WAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AAAA,EACpC;AACF;AACA,IAAI,cAAc;","names":[]}
|
package/dist/button.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { VariantProps } from 'cva';
|
|
3
3
|
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "link" | "default" | "destructive" | "ghost" | "outline" | "secondary" | undefined;
|
|
6
6
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | undefined;
|
|
7
7
|
} & ({
|
|
8
8
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
package/dist/button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { VariantProps } from 'cva';
|
|
3
3
|
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "link" | "default" | "destructive" | "ghost" | "outline" | "secondary" | undefined;
|
|
6
6
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | undefined;
|
|
7
7
|
} & ({
|
|
8
8
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
package/dist/code.d.mts
ADDED
package/dist/code.d.ts
ADDED
package/dist/code.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/code.tsx
|
|
2
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
3
|
+
var _reactslot = require('@radix-ui/react-slot');
|
|
4
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
5
|
+
var Code = React.forwardRef(({ asChild, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? _reactslot.Slot : "code";
|
|
7
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { ref, ...props });
|
|
8
|
+
});
|
|
9
|
+
Code.displayName = "Code";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Code = Code;
|
|
13
|
+
//# sourceMappingURL=code.js.map
|
package/dist/code.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/code.tsx"],"names":[],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAYZ;AANT,IAAM,OAAa,iBAGjB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AACpC,CAAC;AACD,KAAK,cAAc","sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Code\n * -------------------------------------------------------------------------- */\n\nconst Code = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement> & { asChild?: boolean }\n>(({ asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"code\";\n\n return <Comp ref={ref} {...props} />;\n});\nCode.displayName = \"Code\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Code };\n"]}
|
package/dist/code.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/code.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var Code = React.forwardRef(({ asChild, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? Slot : "code";
|
|
7
|
+
return /* @__PURE__ */ jsx(Comp, { ref, ...props });
|
|
8
|
+
});
|
|
9
|
+
Code.displayName = "Code";
|
|
10
|
+
export {
|
|
11
|
+
Code
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=code.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/code.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Code\n * -------------------------------------------------------------------------- */\n\nconst Code = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement> & { asChild?: boolean }\n>(({ asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"code\";\n\n return <Comp ref={ref} {...props} />;\n});\nCode.displayName = \"Code\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Code };\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAYZ;AANT,IAAM,OAAa,iBAGjB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AACpC,CAAC;AACD,KAAK,cAAc;","names":[]}
|
package/dist/command.d.mts
CHANGED
|
@@ -3,11 +3,11 @@ import { DialogProps } from '@radix-ui/react-dialog';
|
|
|
3
3
|
|
|
4
4
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
6
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
7
7
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean | undefined;
|
|
10
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
10
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
shouldFilter?: boolean | undefined;
|
|
13
13
|
filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
|
|
@@ -23,51 +23,51 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
23
23
|
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
asChild?: boolean | undefined;
|
|
26
|
-
}, "
|
|
26
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
27
27
|
value?: string | undefined;
|
|
28
28
|
onValueChange?: ((search: string) => void) | undefined;
|
|
29
29
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
30
30
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
31
31
|
children?: React.ReactNode;
|
|
32
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
32
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
33
33
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
asChild?: boolean | undefined;
|
|
36
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
36
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
37
37
|
label?: string | undefined;
|
|
38
38
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
40
40
|
children?: React.ReactNode;
|
|
41
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
41
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
42
42
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
asChild?: boolean | undefined;
|
|
45
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
45
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
46
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
47
47
|
children?: React.ReactNode;
|
|
48
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
48
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
49
49
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
50
50
|
} & {
|
|
51
51
|
asChild?: boolean | undefined;
|
|
52
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
52
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
53
53
|
heading?: React.ReactNode;
|
|
54
54
|
value?: string | undefined;
|
|
55
55
|
forceMount?: boolean | undefined;
|
|
56
56
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
57
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
58
58
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
59
59
|
} & {
|
|
60
60
|
asChild?: boolean | undefined;
|
|
61
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
61
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
62
62
|
alwaysRender?: boolean | undefined;
|
|
63
63
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
64
64
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
65
65
|
children?: React.ReactNode;
|
|
66
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
66
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
67
67
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
68
68
|
} & {
|
|
69
69
|
asChild?: boolean | undefined;
|
|
70
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
70
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
71
71
|
disabled?: boolean | undefined;
|
|
72
72
|
onSelect?: ((value: string) => void) | undefined;
|
|
73
73
|
value?: string | undefined;
|
|
@@ -76,11 +76,11 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
76
76
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
77
77
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
78
78
|
children?: React.ReactNode;
|
|
79
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
79
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
80
80
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
81
81
|
} & {
|
|
82
82
|
asChild?: boolean | undefined;
|
|
83
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
83
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
84
84
|
progress?: number | undefined;
|
|
85
85
|
label?: string | undefined;
|
|
86
86
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/command.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { DialogProps } from '@radix-ui/react-dialog';
|
|
|
3
3
|
|
|
4
4
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
6
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
7
7
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean | undefined;
|
|
10
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
10
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
shouldFilter?: boolean | undefined;
|
|
13
13
|
filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
|
|
@@ -23,51 +23,51 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
23
23
|
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
asChild?: boolean | undefined;
|
|
26
|
-
}, "
|
|
26
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
27
27
|
value?: string | undefined;
|
|
28
28
|
onValueChange?: ((search: string) => void) | undefined;
|
|
29
29
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
30
30
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
31
31
|
children?: React.ReactNode;
|
|
32
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
32
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
33
33
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
asChild?: boolean | undefined;
|
|
36
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
36
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
37
37
|
label?: string | undefined;
|
|
38
38
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
40
40
|
children?: React.ReactNode;
|
|
41
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
41
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
42
42
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
asChild?: boolean | undefined;
|
|
45
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
45
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
46
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
47
47
|
children?: React.ReactNode;
|
|
48
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
48
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
49
49
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
50
50
|
} & {
|
|
51
51
|
asChild?: boolean | undefined;
|
|
52
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
52
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
53
53
|
heading?: React.ReactNode;
|
|
54
54
|
value?: string | undefined;
|
|
55
55
|
forceMount?: boolean | undefined;
|
|
56
56
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
57
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
58
58
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
59
59
|
} & {
|
|
60
60
|
asChild?: boolean | undefined;
|
|
61
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
61
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
62
62
|
alwaysRender?: boolean | undefined;
|
|
63
63
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
64
64
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
65
65
|
children?: React.ReactNode;
|
|
66
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
66
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
67
67
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
68
68
|
} & {
|
|
69
69
|
asChild?: boolean | undefined;
|
|
70
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
70
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
71
71
|
disabled?: boolean | undefined;
|
|
72
72
|
onSelect?: ((value: string) => void) | undefined;
|
|
73
73
|
value?: string | undefined;
|
|
@@ -76,11 +76,11 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
76
76
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
77
77
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
78
78
|
children?: React.ReactNode;
|
|
79
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
79
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
80
80
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
81
81
|
} & {
|
|
82
82
|
asChild?: boolean | undefined;
|
|
83
|
-
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild"
|
|
83
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
84
84
|
progress?: number | undefined;
|
|
85
85
|
label?: string | undefined;
|
|
86
86
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
|
+
|
|
3
|
+
var _chunkG3NP7M2Njs = require('./chunk-G3NP7M2N.js');
|
|
4
|
+
|
|
5
|
+
// src/container.tsx
|
|
6
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
7
|
+
var _reactslot = require('@radix-ui/react-slot');
|
|
8
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
9
|
+
var Container = React.forwardRef(({ className, asChild, ...props }, ref) => {
|
|
10
|
+
const Comp = asChild ? _reactslot.Slot : "div";
|
|
11
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { ref, className: _chunkG3NP7M2Njs.cn.call(void 0, "container", className), ...props });
|
|
12
|
+
});
|
|
13
|
+
Container.displayName = "Container";
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.Container = Container;
|
|
17
|
+
//# sourceMappingURL=container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/container.tsx"],"names":[],"mappings":";;;;;AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAeZ;AART,IAAM,YAAkB,iBAKtB,CAAC,EAAE,WAAW,SAAS,GAAG,MAAM,GAAG,QAAQ;AAC3C,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAU,WAAW,GAAG,aAAa,SAAS,GAAI,GAAG,OAAO;AAC3E,CAAC;AACD,UAAU,cAAc","sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Container\n * -------------------------------------------------------------------------- */\n\nconst Container = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & {\n asChild?: boolean;\n }\n>(({ className, asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\";\n\n return <Comp ref={ref} className={cn(\"container\", className)} {...props} />;\n});\nContainer.displayName = \"Container\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Container };\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "./chunk-UG3URV2Z.mjs";
|
|
4
|
+
|
|
5
|
+
// src/container.tsx
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Container = React.forwardRef(({ className, asChild, ...props }, ref) => {
|
|
10
|
+
const Comp = asChild ? Slot : "div";
|
|
11
|
+
return /* @__PURE__ */ jsx(Comp, { ref, className: cn("container", className), ...props });
|
|
12
|
+
});
|
|
13
|
+
Container.displayName = "Container";
|
|
14
|
+
export {
|
|
15
|
+
Container
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=container.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/container.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Container\n * -------------------------------------------------------------------------- */\n\nconst Container = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & {\n asChild?: boolean;\n }\n>(({ className, asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\";\n\n return <Comp ref={ref} className={cn(\"container\", className)} {...props} />;\n});\nContainer.displayName = \"Container\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Container };\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAeZ;AART,IAAM,YAAkB,iBAKtB,CAAC,EAAE,WAAW,SAAS,GAAG,MAAM,GAAG,QAAQ;AAC3C,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAU,WAAW,GAAG,aAAa,SAAS,GAAI,GAAG,OAAO;AAC3E,CAAC;AACD,UAAU,cAAc;","names":[]}
|
package/dist/em.d.mts
ADDED
package/dist/em.d.ts
ADDED
package/dist/em.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/em.tsx
|
|
2
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
3
|
+
var _reactslot = require('@radix-ui/react-slot');
|
|
4
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
5
|
+
var Em = React.forwardRef(({ asChild, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? _reactslot.Slot : "em";
|
|
7
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Comp, { ref, ...props });
|
|
8
|
+
});
|
|
9
|
+
Em.displayName = "Em";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Em = Em;
|
|
13
|
+
//# sourceMappingURL=em.js.map
|
package/dist/em.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/em.tsx"],"names":[],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAYZ;AANT,IAAM,KAAW,iBAGf,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AACpC,CAAC;AACD,GAAG,cAAc","sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Em\n * -------------------------------------------------------------------------- */\n\nconst Em = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement> & { asChild?: boolean }\n>(({ asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"em\";\n\n return <Comp ref={ref} {...props} />;\n});\nEm.displayName = \"Em\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Em };\n"]}
|
package/dist/em.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/em.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var Em = React.forwardRef(({ asChild, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? Slot : "em";
|
|
7
|
+
return /* @__PURE__ */ jsx(Comp, { ref, ...props });
|
|
8
|
+
});
|
|
9
|
+
Em.displayName = "Em";
|
|
10
|
+
export {
|
|
11
|
+
Em
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=em.mjs.map
|
package/dist/em.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/em.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\n/* -----------------------------------------------------------------------------\n * Component: Em\n * -------------------------------------------------------------------------- */\n\nconst Em = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement> & { asChild?: boolean }\n>(({ asChild, ...props }, ref) => {\n const Comp = asChild ? Slot : \"em\";\n\n return <Comp ref={ref} {...props} />;\n});\nEm.displayName = \"Em\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Em };\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAYZ;AANT,IAAM,KAAW,iBAGf,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAK,KAAW,GAAG,OAAO;AACpC,CAAC;AACD,GAAG,cAAc;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Heading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & {
|
|
4
|
+
as?: "h2" | "h3" | "h1" | "h4" | "h5" | "h6" | undefined;
|
|
5
|
+
asChild?: boolean | undefined;
|
|
6
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
7
|
+
|
|
8
|
+
export { Heading };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Heading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & {
|
|
4
|
+
as?: "h2" | "h3" | "h1" | "h4" | "h5" | "h6" | undefined;
|
|
5
|
+
asChild?: boolean | undefined;
|
|
6
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
7
|
+
|
|
8
|
+
export { Heading };
|