@apolitical/component-library 0.0.1 → 0.0.2-beta.1

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/demo/demo.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export interface ComponentLibraryProps {
2
+ }
3
+ export declare function Demo(props: ComponentLibraryProps): import("react/jsx-runtime").JSX.Element;
4
+ export default Demo;
@@ -0,0 +1 @@
1
+ export { default as Demo } from './demo';
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './demo';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n={};function o(r){return e.jsx("div",{className:n.container,children:e.jsx("h1",{children:"Component library demo!"})})}exports.Demo=o;
package/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ const r = {};
3
+ function t(e) {
4
+ return /* @__PURE__ */ o("div", { className: r.container, children: /* @__PURE__ */ o("h1", { children: "Component library demo!" }) });
5
+ }
6
+ export {
7
+ t as Demo
8
+ };
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "0.0.1",
4
- "description": "Reusable React components for Apolitical UIs",
5
- "author": "Apolitical Group Limited <engineering@apolitical.co>",
6
- "license": "MIT",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "module": "./index.esm.js",
11
- "type": "module",
12
- "main": "./index.esm.js"
13
- }
3
+ "version": "0.0.2-beta.1",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ }
12
+ }
package/style.css ADDED
File without changes
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # component-library
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Running unit tests
6
-
7
- Run `nx test component-library` to execute the unit tests via [Jest](https://jestjs.io).
package/index.esm.css DELETED
@@ -1,7 +0,0 @@
1
- /*
2
- * Replace this with your own classes
3
- *
4
- * e.g.
5
- * .container {
6
- * }
7
- */
package/index.esm.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./src/index";
package/index.esm.js DELETED
@@ -1,14 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
-
3
- var styles = {};
4
-
5
- function ComponentLibrary(props) {
6
- return jsx("div", {
7
- className: styles['container'],
8
- children: jsx("h1", {
9
- children: "Welcome to ComponentLibrary!"
10
- })
11
- });
12
- }
13
-
14
- export { ComponentLibrary };
package/src/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib';
@@ -1,4 +0,0 @@
1
- export interface ComponentLibraryProps {
2
- }
3
- export declare function ComponentLibrary(props: ComponentLibraryProps): import("react/jsx-runtime").JSX.Element;
4
- export default ComponentLibrary;
@@ -1,6 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- import { ComponentLibrary } from './index';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./component-library").ComponentLibraryProps>;
4
- export default _default;
5
- type Story = StoryObj<typeof ComponentLibrary>;
6
- export declare const Default: Story;
@@ -1 +0,0 @@
1
- export { default as ComponentLibrary } from './component-library';