dustyui 1.0.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 ADDED
@@ -0,0 +1 @@
1
+ # DustyUI\n\nA calm, beach-inspired React UI component library using CSS Modules.
package/dist/index.css ADDED
@@ -0,0 +1,9 @@
1
+ /* src/Button/Button.module.css */
2
+ .button {
3
+ background-color: #caa892;
4
+ color: white;
5
+ padding: 0.75rem 1.5rem;
6
+ border-radius: 1rem;
7
+ border: none;
8
+ font-size: 1rem;
9
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ type Props = {
4
+ children: React.ReactNode;
5
+ };
6
+ declare const Button: ({ children }: Props) => React.JSX.Element;
7
+
8
+ export { Button };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ type Props = {
4
+ children: React.ReactNode;
5
+ };
6
+ declare const Button: ({ children }: Props) => React.JSX.Element;
7
+
8
+ export { Button };
package/dist/index.js ADDED
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var src_exports = {};
32
+ __export(src_exports, {
33
+ Button: () => Button
34
+ });
35
+ module.exports = __toCommonJS(src_exports);
36
+
37
+ // src/Button/Button.tsx
38
+ var import_react = __toESM(require("react"));
39
+
40
+ // src/Button/Button.module.css
41
+ var Button_module_default = {};
42
+
43
+ // src/Button/Button.tsx
44
+ var Button = ({ children }) => {
45
+ return /* @__PURE__ */ import_react.default.createElement("button", { className: Button_module_default.button }, children);
46
+ };
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ Button
50
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,13 @@
1
+ // src/Button/Button.tsx
2
+ import React from "react";
3
+
4
+ // src/Button/Button.module.css
5
+ var Button_module_default = {};
6
+
7
+ // src/Button/Button.tsx
8
+ var Button = ({ children }) => {
9
+ return /* @__PURE__ */ React.createElement("button", { className: Button_module_default.button }, children);
10
+ };
11
+ export {
12
+ Button
13
+ };
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "dustyui",
3
+ "version": "1.0.0",
4
+ "description": "A minimalist, neutral-toned React UI component library styled with CSS Modules.",
5
+ "keywords": ["react", "ui", "component-library", "design-system", "css-modules", "dustyui"],
6
+ "author": "Wioletta Gluza <wiolagluza@gmail.com> (https://wiola.dev)",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/w-gluza/dustyui"
11
+ },
12
+ "homepage": "https://dustyui.com",
13
+ "main": "dist/index.cjs",
14
+ "module": "dist/index.mjs",
15
+ "types": "dist/index.d.ts",
16
+ "files": ["dist"],
17
+ "scripts": {
18
+ "build": "tsup"
19
+ },
20
+ "peerDependencies": {
21
+ "react": ">=17.0.0",
22
+ "react-dom": ">=17.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "@types/react": "^18.0.0",
26
+ "@types/react-dom": "^18.0.0",
27
+ "typescript": "^5.0.0",
28
+ "tsup": "^7.0.0"
29
+ },
30
+ "exports": {
31
+ ".": {
32
+ "import": "./dist/index.mjs",
33
+ "require": "./dist/index.cjs",
34
+ "types": "./dist/index.d.ts"
35
+ }
36
+ }
37
+ }