@release-test/ui 0.0.0-stage → 0.2.0-alpha-button-ghost.0
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/LICENSE +21 -0
- package/dist/components/Button/Button.cjs +48 -0
- package/dist/components/Button/Button.cjs.map +1 -0
- package/dist/components/Button/Button.d.ts +10 -0
- package/dist/components/Button/Button.js +31 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Card/Card.cjs +59 -0
- package/dist/components/Card/Card.cjs.map +1 -0
- package/dist/components/Card/Card.d.ts +14 -0
- package/dist/components/Card/Card.js +42 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/ui.css +649 -0
- package/package.json +53 -5
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kevin Østerkilde
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const cn = require("clsx");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
23
|
+
const variantClassNames = {
|
|
24
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary-hover",
|
|
25
|
+
secondary: "border border-surface-border bg-surface text-gray-900 hover:bg-gray-50",
|
|
26
|
+
danger: "bg-danger text-danger-foreground hover:bg-danger-hover",
|
|
27
|
+
ghost: "bg-transparent text-gray-900 hover:bg-gray-100"
|
|
28
|
+
};
|
|
29
|
+
const Button = React__namespace.forwardRef(function Button2(props, ref) {
|
|
30
|
+
const { variant = "secondary", type = "button", className, ...otherProps } = props;
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
+
"button",
|
|
33
|
+
{
|
|
34
|
+
...otherProps,
|
|
35
|
+
className: cn(
|
|
36
|
+
"inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50",
|
|
37
|
+
variantClassNames[variant],
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
"data-taco": "button",
|
|
41
|
+
"data-variant": variant,
|
|
42
|
+
ref,
|
|
43
|
+
type
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
exports.Button = Button;
|
|
48
|
+
//# sourceMappingURL=Button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.cjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n /** Visual style of the button */\n variant?: ButtonVariant;\n};\n\nconst variantClassNames: Record<ButtonVariant, string> = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-surface-border bg-surface text-gray-900 hover:bg-gray-50',\n danger: 'bg-danger text-danger-foreground hover:bg-danger-hover',\n ghost: 'bg-transparent text-gray-900 hover:bg-gray-100',\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {\n const { variant = 'secondary', type = 'button', className, ...otherProps } = props;\n\n return (\n <button\n {...otherProps}\n className={cn(\n 'inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50',\n variantClassNames[variant],\n className\n )}\n data-taco=\"button\"\n data-variant={variant}\n ref={ref}\n type={type}\n />\n );\n});\n"],"names":["React","Button","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA,MAAM,oBAAmD;AAAA,EACrD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,OAAO;AACX;AAEO,MAAM,SAASA,iBAAM,WAA2C,SAASC,QAAO,OAAO,KAAK;AAC/F,QAAM,EAAE,UAAU,aAAa,OAAO,UAAU,WAAW,GAAG,eAAe;AAE7E,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW;AAAA,QACP;AAAA,QACA,kBAAkB,OAAO;AAAA,QACzB;AAAA,MAAA;AAAA,MAEJ,aAAU;AAAA,MACV,gBAAc;AAAA,MACd;AAAA,MACA;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
3
|
+
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
|
+
/** Visual style of the button */
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
};
|
|
7
|
+
export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
8
|
+
/** Visual style of the button */
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import cn from "clsx";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
const variantClassNames = {
|
|
5
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary-hover",
|
|
6
|
+
secondary: "border border-surface-border bg-surface text-gray-900 hover:bg-gray-50",
|
|
7
|
+
danger: "bg-danger text-danger-foreground hover:bg-danger-hover",
|
|
8
|
+
ghost: "bg-transparent text-gray-900 hover:bg-gray-100"
|
|
9
|
+
};
|
|
10
|
+
const Button = React.forwardRef(function Button2(props, ref) {
|
|
11
|
+
const { variant = "secondary", type = "button", className, ...otherProps } = props;
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
...otherProps,
|
|
16
|
+
className: cn(
|
|
17
|
+
"inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
|
+
variantClassNames[variant],
|
|
19
|
+
className
|
|
20
|
+
),
|
|
21
|
+
"data-taco": "button",
|
|
22
|
+
"data-variant": variant,
|
|
23
|
+
ref,
|
|
24
|
+
type
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
Button
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n /** Visual style of the button */\n variant?: ButtonVariant;\n};\n\nconst variantClassNames: Record<ButtonVariant, string> = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-surface-border bg-surface text-gray-900 hover:bg-gray-50',\n danger: 'bg-danger text-danger-foreground hover:bg-danger-hover',\n ghost: 'bg-transparent text-gray-900 hover:bg-gray-100',\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {\n const { variant = 'secondary', type = 'button', className, ...otherProps } = props;\n\n return (\n <button\n {...otherProps}\n className={cn(\n 'inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50',\n variantClassNames[variant],\n className\n )}\n data-taco=\"button\"\n data-variant={variant}\n ref={ref}\n type={type}\n />\n );\n});\n"],"names":["Button"],"mappings":";;;AAUA,MAAM,oBAAmD;AAAA,EACrD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,OAAO;AACX;AAEO,MAAM,SAAS,MAAM,WAA2C,SAASA,QAAO,OAAO,KAAK;AAC/F,QAAM,EAAE,UAAU,aAAa,OAAO,UAAU,WAAW,GAAG,eAAe;AAE7E,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW;AAAA,QACP;AAAA,QACA,kBAAkB,OAAO;AAAA,QACzB;AAAA,MAAA;AAAA,MAEJ,aAAU;AAAA,MACV,gBAAc;AAAA,MACd;AAAA,MACA;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const cn = require("clsx");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
23
|
+
const Header = React__namespace.forwardRef(function CardHeader(props, ref) {
|
|
24
|
+
const { className, ...otherProps } = props;
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
...otherProps,
|
|
29
|
+
className: cn("border-b border-surface-border px-4 py-3", className),
|
|
30
|
+
"data-taco": "card-header",
|
|
31
|
+
ref
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
const Title = React__namespace.forwardRef(function CardTitle(props, ref) {
|
|
36
|
+
const { className, ...otherProps } = props;
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx("h3", { ...otherProps, className: cn("m-0 text-base font-semibold", className), "data-taco": "card-title", ref });
|
|
38
|
+
});
|
|
39
|
+
const Content = React__namespace.forwardRef(function CardContent(props, ref) {
|
|
40
|
+
const { className, ...otherProps } = props;
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...otherProps, className: cn("p-4", className), "data-taco": "card-content", ref });
|
|
42
|
+
});
|
|
43
|
+
const Card = React__namespace.forwardRef(function Card2(props, ref) {
|
|
44
|
+
const { className, ...otherProps } = props;
|
|
45
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
...otherProps,
|
|
49
|
+
className: cn("flex flex-col rounded-lg border border-surface-border bg-surface", className),
|
|
50
|
+
"data-taco": "card",
|
|
51
|
+
ref
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
Card.Header = Header;
|
|
56
|
+
Card.Title = Title;
|
|
57
|
+
Card.Content = Content;
|
|
58
|
+
exports.Card = Card;
|
|
59
|
+
//# sourceMappingURL=Card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.cjs","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type CardProps = React.HTMLAttributes<HTMLDivElement>;\nexport type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;\nexport type CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\nexport type CardContentProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst Header = React.forwardRef<HTMLDivElement, CardHeaderProps>(function CardHeader(props, ref) {\n const { className, ...otherProps } = props;\n return (\n <div\n {...otherProps}\n className={cn('border-b border-surface-border px-4 py-3', className)}\n data-taco=\"card-header\"\n ref={ref}\n />\n );\n});\n\nconst Title = React.forwardRef<HTMLHeadingElement, CardTitleProps>(function CardTitle(props, ref) {\n const { className, ...otherProps } = props;\n return <h3 {...otherProps} className={cn('m-0 text-base font-semibold', className)} data-taco=\"card-title\" ref={ref} />;\n});\n\nconst Content = React.forwardRef<HTMLDivElement, CardContentProps>(function CardContent(props, ref) {\n const { className, ...otherProps } = props;\n return <div {...otherProps} className={cn('p-4', className)} data-taco=\"card-content\" ref={ref} />;\n});\n\nexport const Card = React.forwardRef<HTMLDivElement, CardProps>(function Card(props, ref) {\n const { className, ...otherProps } = props;\n return (\n <div\n {...otherProps}\n className={cn('flex flex-col rounded-lg border border-surface-border bg-surface', className)}\n data-taco=\"card\"\n ref={ref}\n />\n );\n}) as React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>> & {\n Header: typeof Header;\n Title: typeof Title;\n Content: typeof Content;\n};\nCard.Header = Header;\nCard.Title = Title;\nCard.Content = Content;\n"],"names":["React","jsx","Card"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,MAAM,SAASA,iBAAM,WAA4C,SAAS,WAAW,OAAO,KAAK;AAC7F,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW,GAAG,4CAA4C,SAAS;AAAA,MACnE,aAAU;AAAA,MACV;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;AAED,MAAM,QAAQD,iBAAM,WAA+C,SAAS,UAAU,OAAO,KAAK;AAC9F,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SAAOC,2BAAAA,IAAC,MAAA,EAAI,GAAG,YAAY,WAAW,GAAG,+BAA+B,SAAS,GAAG,aAAU,cAAa,IAAA,CAAU;AACzH,CAAC;AAED,MAAM,UAAUD,iBAAM,WAA6C,SAAS,YAAY,OAAO,KAAK;AAChG,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SAAOC,2BAAAA,IAAC,OAAA,EAAK,GAAG,YAAY,WAAW,GAAG,OAAO,SAAS,GAAG,aAAU,gBAAe,IAAA,CAAU;AACpG,CAAC;AAEM,MAAM,OAAOD,iBAAM,WAAsC,SAASE,MAAK,OAAO,KAAK;AACtF,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SACID,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW,GAAG,oEAAoE,SAAS;AAAA,MAC3F,aAAU;AAAA,MACV;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;AAKD,KAAK,SAAS;AACd,KAAK,QAAQ;AACb,KAAK,UAAU;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type CardProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export type CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
5
|
+
export type CardContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
declare const Header: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const Title: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
8
|
+
declare const Content: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>> & {
|
|
10
|
+
Header: typeof Header;
|
|
11
|
+
Title: typeof Title;
|
|
12
|
+
Content: typeof Content;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import cn from "clsx";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
const Header = React.forwardRef(function CardHeader(props, ref) {
|
|
5
|
+
const { className, ...otherProps } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
...otherProps,
|
|
10
|
+
className: cn("border-b border-surface-border px-4 py-3", className),
|
|
11
|
+
"data-taco": "card-header",
|
|
12
|
+
ref
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
const Title = React.forwardRef(function CardTitle(props, ref) {
|
|
17
|
+
const { className, ...otherProps } = props;
|
|
18
|
+
return /* @__PURE__ */ jsx("h3", { ...otherProps, className: cn("m-0 text-base font-semibold", className), "data-taco": "card-title", ref });
|
|
19
|
+
});
|
|
20
|
+
const Content = React.forwardRef(function CardContent(props, ref) {
|
|
21
|
+
const { className, ...otherProps } = props;
|
|
22
|
+
return /* @__PURE__ */ jsx("div", { ...otherProps, className: cn("p-4", className), "data-taco": "card-content", ref });
|
|
23
|
+
});
|
|
24
|
+
const Card = React.forwardRef(function Card2(props, ref) {
|
|
25
|
+
const { className, ...otherProps } = props;
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
...otherProps,
|
|
30
|
+
className: cn("flex flex-col rounded-lg border border-surface-border bg-surface", className),
|
|
31
|
+
"data-taco": "card",
|
|
32
|
+
ref
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
Card.Header = Header;
|
|
37
|
+
Card.Title = Title;
|
|
38
|
+
Card.Content = Content;
|
|
39
|
+
export {
|
|
40
|
+
Card
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=Card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type CardProps = React.HTMLAttributes<HTMLDivElement>;\nexport type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;\nexport type CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\nexport type CardContentProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst Header = React.forwardRef<HTMLDivElement, CardHeaderProps>(function CardHeader(props, ref) {\n const { className, ...otherProps } = props;\n return (\n <div\n {...otherProps}\n className={cn('border-b border-surface-border px-4 py-3', className)}\n data-taco=\"card-header\"\n ref={ref}\n />\n );\n});\n\nconst Title = React.forwardRef<HTMLHeadingElement, CardTitleProps>(function CardTitle(props, ref) {\n const { className, ...otherProps } = props;\n return <h3 {...otherProps} className={cn('m-0 text-base font-semibold', className)} data-taco=\"card-title\" ref={ref} />;\n});\n\nconst Content = React.forwardRef<HTMLDivElement, CardContentProps>(function CardContent(props, ref) {\n const { className, ...otherProps } = props;\n return <div {...otherProps} className={cn('p-4', className)} data-taco=\"card-content\" ref={ref} />;\n});\n\nexport const Card = React.forwardRef<HTMLDivElement, CardProps>(function Card(props, ref) {\n const { className, ...otherProps } = props;\n return (\n <div\n {...otherProps}\n className={cn('flex flex-col rounded-lg border border-surface-border bg-surface', className)}\n data-taco=\"card\"\n ref={ref}\n />\n );\n}) as React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>> & {\n Header: typeof Header;\n Title: typeof Title;\n Content: typeof Content;\n};\nCard.Header = Header;\nCard.Title = Title;\nCard.Content = Content;\n"],"names":["Card"],"mappings":";;;AAQA,MAAM,SAAS,MAAM,WAA4C,SAAS,WAAW,OAAO,KAAK;AAC7F,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW,GAAG,4CAA4C,SAAS;AAAA,MACnE,aAAU;AAAA,MACV;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;AAED,MAAM,QAAQ,MAAM,WAA+C,SAAS,UAAU,OAAO,KAAK;AAC9F,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SAAO,oBAAC,MAAA,EAAI,GAAG,YAAY,WAAW,GAAG,+BAA+B,SAAS,GAAG,aAAU,cAAa,IAAA,CAAU;AACzH,CAAC;AAED,MAAM,UAAU,MAAM,WAA6C,SAAS,YAAY,OAAO,KAAK;AAChG,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SAAO,oBAAC,OAAA,EAAK,GAAG,YAAY,WAAW,GAAG,OAAO,SAAS,GAAG,aAAU,gBAAe,IAAA,CAAU;AACpG,CAAC;AAEM,MAAM,OAAO,MAAM,WAAsC,SAASA,MAAK,OAAO,KAAK;AACtF,QAAM,EAAE,WAAW,GAAG,WAAA,IAAe;AACrC,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW,GAAG,oEAAoE,SAAS;AAAA,MAC3F,aAAU;AAAA,MACV;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;AAKD,KAAK,SAAS;AACd,KAAK,QAAQ;AACb,KAAK,UAAU;"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
const Button = require("./components/Button/Button.cjs");
|
|
5
|
+
const Card = require("./components/Card/Card.cjs");
|
|
6
|
+
exports.Button = Button.Button;
|
|
7
|
+
exports.Card = Card.Card;
|
|
8
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/ui.css
ADDED
|
@@ -0,0 +1,649 @@
|
|
|
1
|
+
*, ::before, ::after {
|
|
2
|
+
--tw-border-spacing-x: 0;
|
|
3
|
+
--tw-border-spacing-y: 0;
|
|
4
|
+
--tw-translate-x: 0;
|
|
5
|
+
--tw-translate-y: 0;
|
|
6
|
+
--tw-rotate: 0;
|
|
7
|
+
--tw-skew-x: 0;
|
|
8
|
+
--tw-skew-y: 0;
|
|
9
|
+
--tw-scale-x: 1;
|
|
10
|
+
--tw-scale-y: 1;
|
|
11
|
+
--tw-pan-x: ;
|
|
12
|
+
--tw-pan-y: ;
|
|
13
|
+
--tw-pinch-zoom: ;
|
|
14
|
+
--tw-scroll-snap-strictness: proximity;
|
|
15
|
+
--tw-gradient-from-position: ;
|
|
16
|
+
--tw-gradient-via-position: ;
|
|
17
|
+
--tw-gradient-to-position: ;
|
|
18
|
+
--tw-ordinal: ;
|
|
19
|
+
--tw-slashed-zero: ;
|
|
20
|
+
--tw-numeric-figure: ;
|
|
21
|
+
--tw-numeric-spacing: ;
|
|
22
|
+
--tw-numeric-fraction: ;
|
|
23
|
+
--tw-ring-inset: ;
|
|
24
|
+
--tw-ring-offset-width: 0px;
|
|
25
|
+
--tw-ring-offset-color: #fff;
|
|
26
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
27
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
28
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
29
|
+
--tw-shadow: 0 0 #0000;
|
|
30
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
31
|
+
--tw-blur: ;
|
|
32
|
+
--tw-brightness: ;
|
|
33
|
+
--tw-contrast: ;
|
|
34
|
+
--tw-grayscale: ;
|
|
35
|
+
--tw-hue-rotate: ;
|
|
36
|
+
--tw-invert: ;
|
|
37
|
+
--tw-saturate: ;
|
|
38
|
+
--tw-sepia: ;
|
|
39
|
+
--tw-drop-shadow: ;
|
|
40
|
+
--tw-backdrop-blur: ;
|
|
41
|
+
--tw-backdrop-brightness: ;
|
|
42
|
+
--tw-backdrop-contrast: ;
|
|
43
|
+
--tw-backdrop-grayscale: ;
|
|
44
|
+
--tw-backdrop-hue-rotate: ;
|
|
45
|
+
--tw-backdrop-invert: ;
|
|
46
|
+
--tw-backdrop-opacity: ;
|
|
47
|
+
--tw-backdrop-saturate: ;
|
|
48
|
+
--tw-backdrop-sepia: ;
|
|
49
|
+
--tw-contain-size: ;
|
|
50
|
+
--tw-contain-layout: ;
|
|
51
|
+
--tw-contain-paint: ;
|
|
52
|
+
--tw-contain-style: ;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
::backdrop {
|
|
56
|
+
--tw-border-spacing-x: 0;
|
|
57
|
+
--tw-border-spacing-y: 0;
|
|
58
|
+
--tw-translate-x: 0;
|
|
59
|
+
--tw-translate-y: 0;
|
|
60
|
+
--tw-rotate: 0;
|
|
61
|
+
--tw-skew-x: 0;
|
|
62
|
+
--tw-skew-y: 0;
|
|
63
|
+
--tw-scale-x: 1;
|
|
64
|
+
--tw-scale-y: 1;
|
|
65
|
+
--tw-pan-x: ;
|
|
66
|
+
--tw-pan-y: ;
|
|
67
|
+
--tw-pinch-zoom: ;
|
|
68
|
+
--tw-scroll-snap-strictness: proximity;
|
|
69
|
+
--tw-gradient-from-position: ;
|
|
70
|
+
--tw-gradient-via-position: ;
|
|
71
|
+
--tw-gradient-to-position: ;
|
|
72
|
+
--tw-ordinal: ;
|
|
73
|
+
--tw-slashed-zero: ;
|
|
74
|
+
--tw-numeric-figure: ;
|
|
75
|
+
--tw-numeric-spacing: ;
|
|
76
|
+
--tw-numeric-fraction: ;
|
|
77
|
+
--tw-ring-inset: ;
|
|
78
|
+
--tw-ring-offset-width: 0px;
|
|
79
|
+
--tw-ring-offset-color: #fff;
|
|
80
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
81
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
82
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
83
|
+
--tw-shadow: 0 0 #0000;
|
|
84
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
85
|
+
--tw-blur: ;
|
|
86
|
+
--tw-brightness: ;
|
|
87
|
+
--tw-contrast: ;
|
|
88
|
+
--tw-grayscale: ;
|
|
89
|
+
--tw-hue-rotate: ;
|
|
90
|
+
--tw-invert: ;
|
|
91
|
+
--tw-saturate: ;
|
|
92
|
+
--tw-sepia: ;
|
|
93
|
+
--tw-drop-shadow: ;
|
|
94
|
+
--tw-backdrop-blur: ;
|
|
95
|
+
--tw-backdrop-brightness: ;
|
|
96
|
+
--tw-backdrop-contrast: ;
|
|
97
|
+
--tw-backdrop-grayscale: ;
|
|
98
|
+
--tw-backdrop-hue-rotate: ;
|
|
99
|
+
--tw-backdrop-invert: ;
|
|
100
|
+
--tw-backdrop-opacity: ;
|
|
101
|
+
--tw-backdrop-saturate: ;
|
|
102
|
+
--tw-backdrop-sepia: ;
|
|
103
|
+
--tw-contain-size: ;
|
|
104
|
+
--tw-contain-layout: ;
|
|
105
|
+
--tw-contain-paint: ;
|
|
106
|
+
--tw-contain-style: ;
|
|
107
|
+
}/*
|
|
108
|
+
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
|
|
109
|
+
*//*
|
|
110
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
111
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
*,
|
|
115
|
+
::before,
|
|
116
|
+
::after {
|
|
117
|
+
box-sizing: border-box; /* 1 */
|
|
118
|
+
border-width: 0; /* 2 */
|
|
119
|
+
border-style: solid; /* 2 */
|
|
120
|
+
border-color: #e5e7eb; /* 2 */
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
::before,
|
|
124
|
+
::after {
|
|
125
|
+
--tw-content: '';
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/*
|
|
129
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
130
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
131
|
+
3. Use a more readable tab size.
|
|
132
|
+
4. Use the user's configured `sans` font-family by default.
|
|
133
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
134
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
135
|
+
7. Disable tap highlights on iOS
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
html,
|
|
139
|
+
:host {
|
|
140
|
+
line-height: 1.5; /* 1 */
|
|
141
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
142
|
+
-moz-tab-size: 4; /* 3 */
|
|
143
|
+
-o-tab-size: 4;
|
|
144
|
+
tab-size: 4; /* 3 */
|
|
145
|
+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
|
146
|
+
font-feature-settings: normal; /* 5 */
|
|
147
|
+
font-variation-settings: normal; /* 6 */
|
|
148
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/*
|
|
152
|
+
1. Remove the margin in all browsers.
|
|
153
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
body {
|
|
157
|
+
margin: 0; /* 1 */
|
|
158
|
+
line-height: inherit; /* 2 */
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/*
|
|
162
|
+
1. Add the correct height in Firefox.
|
|
163
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
164
|
+
3. Ensure horizontal rules are visible by default.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
hr {
|
|
168
|
+
height: 0; /* 1 */
|
|
169
|
+
color: inherit; /* 2 */
|
|
170
|
+
border-top-width: 1px; /* 3 */
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/*
|
|
174
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
abbr:where([title]) {
|
|
178
|
+
-webkit-text-decoration: underline dotted;
|
|
179
|
+
text-decoration: underline dotted;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/*
|
|
183
|
+
Remove the default font size and weight for headings.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
h1,
|
|
187
|
+
h2,
|
|
188
|
+
h3,
|
|
189
|
+
h4,
|
|
190
|
+
h5,
|
|
191
|
+
h6 {
|
|
192
|
+
font-size: inherit;
|
|
193
|
+
font-weight: inherit;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/*
|
|
197
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
a {
|
|
201
|
+
color: inherit;
|
|
202
|
+
text-decoration: inherit;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/*
|
|
206
|
+
Add the correct font weight in Edge and Safari.
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
b,
|
|
210
|
+
strong {
|
|
211
|
+
font-weight: bolder;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/*
|
|
215
|
+
1. Use the user's configured `mono` font-family by default.
|
|
216
|
+
2. Use the user's configured `mono` font-feature-settings by default.
|
|
217
|
+
3. Use the user's configured `mono` font-variation-settings by default.
|
|
218
|
+
4. Correct the odd `em` font sizing in all browsers.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
code,
|
|
222
|
+
kbd,
|
|
223
|
+
samp,
|
|
224
|
+
pre {
|
|
225
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
|
|
226
|
+
font-feature-settings: normal; /* 2 */
|
|
227
|
+
font-variation-settings: normal; /* 3 */
|
|
228
|
+
font-size: 1em; /* 4 */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/*
|
|
232
|
+
Add the correct font size in all browsers.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
small {
|
|
236
|
+
font-size: 80%;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/*
|
|
240
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
sub,
|
|
244
|
+
sup {
|
|
245
|
+
font-size: 75%;
|
|
246
|
+
line-height: 0;
|
|
247
|
+
position: relative;
|
|
248
|
+
vertical-align: baseline;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
sub {
|
|
252
|
+
bottom: -0.25em;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
sup {
|
|
256
|
+
top: -0.5em;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/*
|
|
260
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
261
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
262
|
+
3. Remove gaps between table borders by default.
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
table {
|
|
266
|
+
text-indent: 0; /* 1 */
|
|
267
|
+
border-color: inherit; /* 2 */
|
|
268
|
+
border-collapse: collapse; /* 3 */
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/*
|
|
272
|
+
1. Change the font styles in all browsers.
|
|
273
|
+
2. Remove the margin in Firefox and Safari.
|
|
274
|
+
3. Remove default padding in all browsers.
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
button,
|
|
278
|
+
input,
|
|
279
|
+
optgroup,
|
|
280
|
+
select,
|
|
281
|
+
textarea {
|
|
282
|
+
font-family: inherit; /* 1 */
|
|
283
|
+
font-feature-settings: inherit; /* 1 */
|
|
284
|
+
font-variation-settings: inherit; /* 1 */
|
|
285
|
+
font-size: 100%; /* 1 */
|
|
286
|
+
font-weight: inherit; /* 1 */
|
|
287
|
+
line-height: inherit; /* 1 */
|
|
288
|
+
letter-spacing: inherit; /* 1 */
|
|
289
|
+
color: inherit; /* 1 */
|
|
290
|
+
margin: 0; /* 2 */
|
|
291
|
+
padding: 0; /* 3 */
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/*
|
|
295
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
|
296
|
+
*/
|
|
297
|
+
|
|
298
|
+
button,
|
|
299
|
+
select {
|
|
300
|
+
text-transform: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/*
|
|
304
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
305
|
+
2. Remove default button styles.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
button,
|
|
309
|
+
input:where([type='button']),
|
|
310
|
+
input:where([type='reset']),
|
|
311
|
+
input:where([type='submit']) {
|
|
312
|
+
-webkit-appearance: button; /* 1 */
|
|
313
|
+
background-color: transparent; /* 2 */
|
|
314
|
+
background-image: none; /* 2 */
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/*
|
|
318
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
:-moz-focusring {
|
|
322
|
+
outline: auto;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/*
|
|
326
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
:-moz-ui-invalid {
|
|
330
|
+
box-shadow: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/*
|
|
334
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
335
|
+
*/
|
|
336
|
+
|
|
337
|
+
progress {
|
|
338
|
+
vertical-align: baseline;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/*
|
|
342
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
343
|
+
*/
|
|
344
|
+
|
|
345
|
+
::-webkit-inner-spin-button,
|
|
346
|
+
::-webkit-outer-spin-button {
|
|
347
|
+
height: auto;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/*
|
|
351
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
352
|
+
2. Correct the outline style in Safari.
|
|
353
|
+
*/
|
|
354
|
+
|
|
355
|
+
[type='search'] {
|
|
356
|
+
-webkit-appearance: textfield; /* 1 */
|
|
357
|
+
outline-offset: -2px; /* 2 */
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/*
|
|
361
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
362
|
+
*/
|
|
363
|
+
|
|
364
|
+
::-webkit-search-decoration {
|
|
365
|
+
-webkit-appearance: none;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/*
|
|
369
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
370
|
+
2. Change font properties to `inherit` in Safari.
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
::-webkit-file-upload-button {
|
|
374
|
+
-webkit-appearance: button; /* 1 */
|
|
375
|
+
font: inherit; /* 2 */
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/*
|
|
379
|
+
Add the correct display in Chrome and Safari.
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
summary {
|
|
383
|
+
display: list-item;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/*
|
|
387
|
+
Removes the default spacing and border for appropriate elements.
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
blockquote,
|
|
391
|
+
dl,
|
|
392
|
+
dd,
|
|
393
|
+
h1,
|
|
394
|
+
h2,
|
|
395
|
+
h3,
|
|
396
|
+
h4,
|
|
397
|
+
h5,
|
|
398
|
+
h6,
|
|
399
|
+
hr,
|
|
400
|
+
figure,
|
|
401
|
+
p,
|
|
402
|
+
pre {
|
|
403
|
+
margin: 0;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
fieldset {
|
|
407
|
+
margin: 0;
|
|
408
|
+
padding: 0;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
legend {
|
|
412
|
+
padding: 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
ol,
|
|
416
|
+
ul,
|
|
417
|
+
menu {
|
|
418
|
+
list-style: none;
|
|
419
|
+
margin: 0;
|
|
420
|
+
padding: 0;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/*
|
|
424
|
+
Reset default styling for dialogs.
|
|
425
|
+
*/
|
|
426
|
+
dialog {
|
|
427
|
+
padding: 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/*
|
|
431
|
+
Prevent resizing textareas horizontally by default.
|
|
432
|
+
*/
|
|
433
|
+
|
|
434
|
+
textarea {
|
|
435
|
+
resize: vertical;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/*
|
|
439
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
440
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
441
|
+
*/
|
|
442
|
+
|
|
443
|
+
input::-moz-placeholder, textarea::-moz-placeholder {
|
|
444
|
+
opacity: 1; /* 1 */
|
|
445
|
+
color: #9ca3af; /* 2 */
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
input::placeholder,
|
|
449
|
+
textarea::placeholder {
|
|
450
|
+
opacity: 1; /* 1 */
|
|
451
|
+
color: #9ca3af; /* 2 */
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/*
|
|
455
|
+
Set the default cursor for buttons.
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
button,
|
|
459
|
+
[role="button"] {
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/*
|
|
464
|
+
Make sure disabled buttons don't get the pointer cursor.
|
|
465
|
+
*/
|
|
466
|
+
:disabled {
|
|
467
|
+
cursor: default;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/*
|
|
471
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
472
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
473
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
img,
|
|
477
|
+
svg,
|
|
478
|
+
video,
|
|
479
|
+
canvas,
|
|
480
|
+
audio,
|
|
481
|
+
iframe,
|
|
482
|
+
embed,
|
|
483
|
+
object {
|
|
484
|
+
display: block; /* 1 */
|
|
485
|
+
vertical-align: middle; /* 2 */
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/*
|
|
489
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
img,
|
|
493
|
+
video {
|
|
494
|
+
max-width: 100%;
|
|
495
|
+
height: auto;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* Make elements with the HTML hidden attribute stay hidden by default */
|
|
499
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
500
|
+
display: none;
|
|
501
|
+
}
|
|
502
|
+
.container {
|
|
503
|
+
width: 100%;
|
|
504
|
+
}
|
|
505
|
+
@media (min-width: 640px) {
|
|
506
|
+
|
|
507
|
+
.container {
|
|
508
|
+
max-width: 640px;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
@media (min-width: 768px) {
|
|
512
|
+
|
|
513
|
+
.container {
|
|
514
|
+
max-width: 768px;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
@media (min-width: 1024px) {
|
|
518
|
+
|
|
519
|
+
.container {
|
|
520
|
+
max-width: 1024px;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
@media (min-width: 1280px) {
|
|
524
|
+
|
|
525
|
+
.container {
|
|
526
|
+
max-width: 1280px;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
@media (min-width: 1536px) {
|
|
530
|
+
|
|
531
|
+
.container {
|
|
532
|
+
max-width: 1536px;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
.m-0 {
|
|
536
|
+
margin: 0px;
|
|
537
|
+
}
|
|
538
|
+
.flex {
|
|
539
|
+
display: flex;
|
|
540
|
+
}
|
|
541
|
+
.inline-flex {
|
|
542
|
+
display: inline-flex;
|
|
543
|
+
}
|
|
544
|
+
.h-8 {
|
|
545
|
+
height: 2rem;
|
|
546
|
+
}
|
|
547
|
+
.flex-col {
|
|
548
|
+
flex-direction: column;
|
|
549
|
+
}
|
|
550
|
+
.items-center {
|
|
551
|
+
align-items: center;
|
|
552
|
+
}
|
|
553
|
+
.justify-center {
|
|
554
|
+
justify-content: center;
|
|
555
|
+
}
|
|
556
|
+
.rounded {
|
|
557
|
+
border-radius: 0.25rem;
|
|
558
|
+
}
|
|
559
|
+
.rounded-lg {
|
|
560
|
+
border-radius: 0.5rem;
|
|
561
|
+
}
|
|
562
|
+
.border {
|
|
563
|
+
border-width: 1px;
|
|
564
|
+
}
|
|
565
|
+
.border-b {
|
|
566
|
+
border-bottom-width: 1px;
|
|
567
|
+
}
|
|
568
|
+
.border-surface-border {
|
|
569
|
+
--tw-border-opacity: 1;
|
|
570
|
+
border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
|
|
571
|
+
}
|
|
572
|
+
.bg-danger {
|
|
573
|
+
--tw-bg-opacity: 1;
|
|
574
|
+
background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
|
|
575
|
+
}
|
|
576
|
+
.bg-primary {
|
|
577
|
+
--tw-bg-opacity: 1;
|
|
578
|
+
background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
|
|
579
|
+
}
|
|
580
|
+
.bg-surface {
|
|
581
|
+
--tw-bg-opacity: 1;
|
|
582
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
583
|
+
}
|
|
584
|
+
.bg-transparent {
|
|
585
|
+
background-color: transparent;
|
|
586
|
+
}
|
|
587
|
+
.p-4 {
|
|
588
|
+
padding: 1rem;
|
|
589
|
+
}
|
|
590
|
+
.px-3 {
|
|
591
|
+
padding-left: 0.75rem;
|
|
592
|
+
padding-right: 0.75rem;
|
|
593
|
+
}
|
|
594
|
+
.px-4 {
|
|
595
|
+
padding-left: 1rem;
|
|
596
|
+
padding-right: 1rem;
|
|
597
|
+
}
|
|
598
|
+
.py-3 {
|
|
599
|
+
padding-top: 0.75rem;
|
|
600
|
+
padding-bottom: 0.75rem;
|
|
601
|
+
}
|
|
602
|
+
.text-base {
|
|
603
|
+
font-size: 1rem;
|
|
604
|
+
line-height: 1.5rem;
|
|
605
|
+
}
|
|
606
|
+
.text-sm {
|
|
607
|
+
font-size: 0.875rem;
|
|
608
|
+
line-height: 1.25rem;
|
|
609
|
+
}
|
|
610
|
+
.font-medium {
|
|
611
|
+
font-weight: 500;
|
|
612
|
+
}
|
|
613
|
+
.font-semibold {
|
|
614
|
+
font-weight: 600;
|
|
615
|
+
}
|
|
616
|
+
.text-danger-foreground {
|
|
617
|
+
--tw-text-opacity: 1;
|
|
618
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
619
|
+
}
|
|
620
|
+
.text-gray-900 {
|
|
621
|
+
--tw-text-opacity: 1;
|
|
622
|
+
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
|
|
623
|
+
}
|
|
624
|
+
.text-primary-foreground {
|
|
625
|
+
--tw-text-opacity: 1;
|
|
626
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
627
|
+
}
|
|
628
|
+
.hover\:bg-danger-hover:hover {
|
|
629
|
+
--tw-bg-opacity: 1;
|
|
630
|
+
background-color: rgb(153 27 27 / var(--tw-bg-opacity, 1));
|
|
631
|
+
}
|
|
632
|
+
.hover\:bg-gray-100:hover {
|
|
633
|
+
--tw-bg-opacity: 1;
|
|
634
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
|
|
635
|
+
}
|
|
636
|
+
.hover\:bg-gray-50:hover {
|
|
637
|
+
--tw-bg-opacity: 1;
|
|
638
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
|
|
639
|
+
}
|
|
640
|
+
.hover\:bg-primary-hover:hover {
|
|
641
|
+
--tw-bg-opacity: 1;
|
|
642
|
+
background-color: rgb(30 64 175 / var(--tw-bg-opacity, 1));
|
|
643
|
+
}
|
|
644
|
+
.disabled\:cursor-not-allowed:disabled {
|
|
645
|
+
cursor: not-allowed;
|
|
646
|
+
}
|
|
647
|
+
.disabled\:opacity-50:disabled {
|
|
648
|
+
opacity: 0.5;
|
|
649
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@release-test/ui",
|
|
3
|
+
"version": "0.2.0-alpha-button-ghost.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.css"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./ui.css": "./dist/ui.css"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "vite build",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:watch": "vitest --watch",
|
|
27
|
+
"typecheck": "tsc --noEmit"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@release-test/tokens": "^0.1.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"clsx": "^2.1.1",
|
|
34
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
35
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
39
|
+
"@testing-library/react": "^16.3.3",
|
|
40
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
41
|
+
"autoprefixer": "^10.4.21",
|
|
42
|
+
"clsx": "^2.1.1",
|
|
43
|
+
"jsdom": "^29.1.1",
|
|
44
|
+
"postcss": "^8.5.6",
|
|
45
|
+
"tailwindcss": "^3.4.19",
|
|
46
|
+
"vite-plugin-dts": "^5.1.2",
|
|
47
|
+
"vite-plugin-externalize-deps": "^0.10.0",
|
|
48
|
+
"vitest": "^4.1.11"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"gitHead": "f685bc706cba4d8f792125d830757dcde03550c9"
|
|
54
|
+
}
|
package/README.md
DELETED