@artivism/ui 0.1.1 → 0.2.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/README.md +36 -0
- package/dist/badge.d.mts +1 -3
- package/dist/badge.mjs +2 -2
- package/dist/button.d.mts +2 -4
- package/dist/button.mjs +2 -2
- package/dist/card.mjs +2 -2
- package/dist/{chunk-LSGIYX2Z.mjs → chunk-CHGWJKPA.mjs} +1 -1
- package/dist/chunk-GIPRZLSX.mjs +38 -0
- package/dist/{chunk-LNBDAIPM.mjs → chunk-IQPGX4MT.mjs} +1 -1
- package/dist/{chunk-GRHBB7TD.mjs → chunk-JXK4BEBM.mjs} +1 -1
- package/dist/{chunk-HUOOVZOV.mjs → chunk-NVPTR5EH.mjs} +1 -1
- package/dist/index.d.mts +558 -13
- package/dist/index.mjs +12888 -6
- package/dist/input.mjs +2 -2
- package/package.json +78 -33
- package/dist/chunk-SZOFVBTZ.mjs +0 -10
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @artivism/ui
|
|
2
|
+
|
|
3
|
+
React UI component library for the Artivism Design System.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @artivism/ui @artivism/tokens
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Button } from "@artivism/ui/button"
|
|
15
|
+
import { Card } from "@artivism/ui/card"
|
|
16
|
+
|
|
17
|
+
export default function App() {
|
|
18
|
+
return (
|
|
19
|
+
<Card>
|
|
20
|
+
<Button>Click me</Button>
|
|
21
|
+
</Card>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Components
|
|
27
|
+
|
|
28
|
+
54 production-ready components including: Accordion, Alert, Alert Dialog, Avatar, Badge, Breadcrumb, Button, Calendar, Card, Carousel, Checkbox, Collapsible, Command, Context Menu, Dialog, Drawer, Dropdown Menu, Form, Input, Label, Select, Table, Tabs, Tooltip, and many more.
|
|
29
|
+
|
|
30
|
+
## Documentation
|
|
31
|
+
|
|
32
|
+
Visit [design.artivism.it](https://design.artivism.it) for full documentation.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT
|
package/dist/badge.d.mts
CHANGED
|
@@ -10,6 +10,4 @@ declare function Badge({ className, variant, asChild, ...props }: React.Componen
|
|
|
10
10
|
asChild?: boolean;
|
|
11
11
|
}): react_jsx_runtime.JSX.Element;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export { Badge, type BadgeProps, badgeVariants };
|
|
13
|
+
export { Badge, badgeVariants };
|
package/dist/badge.mjs
CHANGED
package/dist/button.d.mts
CHANGED
|
@@ -4,13 +4,11 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
7
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
8
8
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
11
11
|
asChild?: boolean;
|
|
12
12
|
}): react_jsx_runtime.JSX.Element;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export { Button, type ButtonProps, buttonVariants };
|
|
14
|
+
export { Button, buttonVariants };
|
package/dist/button.mjs
CHANGED
package/dist/card.mjs
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
26
|
+
|
|
27
|
+
// src/lib/utils.ts
|
|
28
|
+
import { clsx } from "clsx";
|
|
29
|
+
import { twMerge } from "tailwind-merge";
|
|
30
|
+
function cn(...inputs) {
|
|
31
|
+
return twMerge(clsx(inputs));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
__commonJS,
|
|
36
|
+
__toESM,
|
|
37
|
+
cn
|
|
38
|
+
};
|