@artivism/ui 0.1.2 → 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 CHANGED
@@ -1,11 +1,36 @@
1
1
  # @artivism/ui
2
2
 
3
- React components for Artivism.
3
+ React UI component library for the Artivism Design System.
4
4
 
5
5
  ## Installation
6
6
 
7
- npm install @artivism/ui
7
+ ```bash
8
+ npm install @artivism/ui @artivism/tokens
9
+ ```
8
10
 
9
11
  ## Usage
10
12
 
11
- import { Button } from "@artivism/ui";
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
- type BadgeProps = React.ComponentProps<typeof Badge>;
14
-
15
- export { Badge, type BadgeProps, badgeVariants };
13
+ export { Badge, badgeVariants };
package/dist/badge.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Badge,
3
3
  badgeVariants
4
- } from "./chunk-LSGIYX2Z.mjs";
5
- import "./chunk-SZOFVBTZ.mjs";
4
+ } from "./chunk-CHGWJKPA.mjs";
5
+ import "./chunk-GIPRZLSX.mjs";
6
6
  export {
7
7
  Badge,
8
8
  badgeVariants
package/dist/button.d.mts CHANGED
@@ -11,6 +11,4 @@ declare function Button({ className, variant, size, asChild, ...props }: React.C
11
11
  asChild?: boolean;
12
12
  }): react_jsx_runtime.JSX.Element;
13
13
 
14
- type ButtonProps = React.ComponentProps<typeof Button>;
15
-
16
- export { Button, type ButtonProps, buttonVariants };
14
+ export { Button, buttonVariants };
package/dist/button.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Button,
3
3
  buttonVariants
4
- } from "./chunk-HUOOVZOV.mjs";
5
- import "./chunk-SZOFVBTZ.mjs";
4
+ } from "./chunk-NVPTR5EH.mjs";
5
+ import "./chunk-GIPRZLSX.mjs";
6
6
  export {
7
7
  Button,
8
8
  buttonVariants
package/dist/card.mjs CHANGED
@@ -6,8 +6,8 @@ import {
6
6
  CardFooter,
7
7
  CardHeader,
8
8
  CardTitle
9
- } from "./chunk-LNBDAIPM.mjs";
10
- import "./chunk-SZOFVBTZ.mjs";
9
+ } from "./chunk-IQPGX4MT.mjs";
10
+ import "./chunk-GIPRZLSX.mjs";
11
11
  export {
12
12
  Card,
13
13
  CardAction,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-SZOFVBTZ.mjs";
3
+ } from "./chunk-GIPRZLSX.mjs";
4
4
 
5
5
  // src/badge.tsx
6
6
  import { Slot } from "@radix-ui/react-slot";
@@ -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
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-SZOFVBTZ.mjs";
3
+ } from "./chunk-GIPRZLSX.mjs";
4
4
 
5
5
  // src/card.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-SZOFVBTZ.mjs";
3
+ } from "./chunk-GIPRZLSX.mjs";
4
4
 
5
5
  // src/input.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-SZOFVBTZ.mjs";
3
+ } from "./chunk-GIPRZLSX.mjs";
4
4
 
5
5
  // src/button.tsx
6
6
  import { Slot } from "@radix-ui/react-slot";