@av-digital/components 0.0.5 → 0.0.7

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @av-digital/components
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test @av-digital/components` to execute the unit tests via [Vitest](https://vitest.dev/).
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ ._btn_xe7an_1{display:flex;padding:.5rem 1rem}._btn_xe7an_1[data-variant=primary]{background:var(--root-avdig-button-primary-background);color:var(--root-avdig-button-primary-text-color)}._btn_xe7an_1[data-variant=secondary]{background:var(--root-avdig-button-secondary-background);color:var(--root-avdig-button-secondary-text-color)}@keyframes _rotation_1vxmk_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._spinner_1vxmk_9{width:48px;height:48px;border:5px solid #dbdbdb;border-bottom-color:#000;border-radius:50%;display:inline-block;box-sizing:border-box;animation:_rotation_1vxmk_1 1s linear infinite}._spinner_1vxmk_9[data-variant=primary]{border-bottom-color:var(--root-avdig-spinner-primary-color)}._spinner_1vxmk_9[data-variant=secondary]{border-bottom-color:var(--root-avdig-spinner-secondary-color)}
@@ -0,0 +1,3 @@
1
+ export * from './lib/Button';
2
+ export * from './lib/Spinner';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ const r = "_btn_xe7an_1", s = {
3
+ btn: r
4
+ }, d = ({ children: t, variant: n }) => /* @__PURE__ */ a("button", { "data-variant": n || "primary", className: s.btn, children: t }), i = "_spinner_1vxmk_9", e = {
5
+ spinner: i
6
+ }, p = ({ variant: t }) => /* @__PURE__ */ a("div", { "data-variant": t || "primary", className: e.spinner });
7
+ export {
8
+ d as Button,
9
+ p as Spinner
10
+ };
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from './interfaces';
2
+ export declare const Button: ({ children, variant }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C,eAAO,MAAM,MAAM,0BAA2B,WAAW,4CAOxD,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export interface ButtonProps extends PropsWithChildren {
3
+ variant?: 'primary' | 'secondary';
4
+ }
5
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/lib/Button/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAClC"}
@@ -0,0 +1,3 @@
1
+ import { LoaderProps } from './interfaces';
2
+ export declare const Spinner: ({ variant }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Spinner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,eAAO,MAAM,OAAO,gBAAe,WAAW,4CAK7C,CAAA"}
@@ -0,0 +1,4 @@
1
+ export interface LoaderProps {
2
+ variant?: any;
3
+ }
4
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/lib/Spinner/interfaces.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,GAAG,CAAA;CAChB"}
package/package.json CHANGED
@@ -1,28 +1,21 @@
1
1
  {
2
2
  "name": "@av-digital/components",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
+ "module": "./index.js",
6
7
  "types": "./index.d.ts",
7
- "private": false,
8
8
  "exports": {
9
+ "./package.json": "./package.json",
9
10
  ".": {
10
11
  "development": "./src/index.ts",
11
12
  "types": "./index.d.ts",
12
13
  "import": "./index.js",
13
- "default": "./index.js",
14
- "require": "./index.js"
15
- },
16
- "./styles": "./index.css"
14
+ "default": "./index.js"
15
+ }
17
16
  },
18
17
  "files": [
19
18
  "dist",
20
19
  "!**/*.tsbuildinfo"
21
- ],
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
- "dependencies": {
26
- "react": "19.0.0"
27
- }
28
- }
20
+ ]
21
+ }