webadwaita 0.0.12 → 0.0.15

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.
@@ -0,0 +1 @@
1
+ ._button_j9o65_1{--button-align-items: center;--button-border: none;--button-cursor: pointer;--button-display: flex;--button-font-family: inherit;--button-font-size: .875rem;--button-font-weight: 600;--button-justify-content: center;--button-letter-spacing: .04em;--button-line-height: 1rem;--button-transition: all .3s ease;align-items:var(--button-align-items);background-color:var(--button-background-color);border:var(--button-border);border-radius:var(--button-border-radius);color:var(--button-color);cursor:var(--button-cursor);display:var(--button-display);font-family:var(--button-font-family);font-size:var(--button-font-size);font-weight:var(--button-font-weight);justify-content:var(--button-justify-content);letter-spacing:var(--button-letter-spacing);line-height:var(--button-line-height);padding-block:var(--button-padding-block);padding-inline:var(--button-padding-inline);transition:var(--button-transition)}._button--variant-regular_j9o65_63{--button-border-radius: .5rem;--button-min-width: 7.125rem;--button-padding-block: .5625rem;--button-padding-inline: 1.0625rem}._button--variant-pill_j9o65_77{--button-border-radius: 9999px;--button-min-width: auto;--button-padding-block: .875rem;--button-padding-inline: 2rem}._button--color-gray_j9o65_91{--button-background-color: #e6e6e7;--button-color: #2e2e33}._button--color-gray_j9o65_91:hover{--button-background-color: #dcdcdd;--button-color: #2c2c31}._button--color-gray_j9o65_91:active{--button-background-color: #bebec0;--button-color: #26262b}._button--color-suggested_j9o65_121{--button-background-color: #3584e4;--button-color: #ffffff}._button--color-suggested_j9o65_121:hover{--button-background-color: #4a91e7}._button--color-suggested_j9o65_121:active{--button-background-color: #2a6ab7}._button--color-destructive_j9o65_147{--button-background-color: #f2d5d6;--button-color: #c30000}._button--color-destructive_j9o65_147:hover{--button-background-color: #efc8c9}._button--color-destructive_j9o65_147:active{--button-background-color: #e7a3a3}
@@ -0,0 +1,21 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ const _ = "_button_j9o65_1", t = {
3
+ button: _,
4
+ "button--variant-regular": "_button--variant-regular_j9o65_63",
5
+ "button--variant-pill": "_button--variant-pill_j9o65_77",
6
+ "button--color-gray": "_button--color-gray_j9o65_91",
7
+ "button--color-suggested": "_button--color-suggested_j9o65_121",
8
+ "button--color-destructive": "_button--color-destructive_j9o65_147"
9
+ };
10
+ function e(o) {
11
+ const { variant: n, color: r, children: u, className: a, ...c } = o, s = [
12
+ t.button,
13
+ t[`button--variant-${n}`],
14
+ t[`button--color-${r}`],
15
+ a
16
+ ].join(" ");
17
+ return /* @__PURE__ */ l("button", { ...c, className: s, children: u });
18
+ }
19
+ export {
20
+ e as Button
21
+ };
@@ -0,0 +1 @@
1
+ (function(t,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t.webadwaita={},t["react/jsx-runtime"]))})(this,(function(t,o){"use strict";const n={button:"_button_j9o65_1","button--variant-regular":"_button--variant-regular_j9o65_63","button--variant-pill":"_button--variant-pill_j9o65_77","button--color-gray":"_button--color-gray_j9o65_91","button--color-suggested":"_button--color-suggested_j9o65_121","button--color-destructive":"_button--color-destructive_j9o65_147"};function e(u){const{variant:r,color:i,children:s,className:a,...c}=u,b=[n.button,n[`button--variant-${r}`],n[`button--color-${i}`],a].join(" ");return o.jsx("button",{...c,className:b,children:s})}t.Button=e,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,47 +1,48 @@
1
1
  {
2
2
  "name": "webadwaita",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
+ "author": "Michal Shelenberg <michalshelenberg@outlook.com>",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/michalshelenberg/webadwaita.git"
9
+ },
4
10
  "type": "module",
5
- "main": "./dist/index.umd.js",
6
- "module": "./dist/index.es.js",
7
- "types": "./dist/index.d.ts",
8
11
  "files": [
9
12
  "dist"
10
13
  ],
14
+ "main": "./dist/webadwaita.umd.cjs",
15
+ "module": "./dist/webadwaita.js",
11
16
  "exports": {
12
17
  ".": {
13
- "import": "./dist/index.es.js",
14
- "require": "./dist/index.umd.js",
15
- "types": "./dist/index.d.ts"
16
- },
17
- "./dist/style.css": "./dist/style.css"
18
+ "import": "./dist/webadwaita.js",
19
+ "require": "./dist/webadwaita.cjs"
20
+ }
18
21
  },
19
22
  "scripts": {
20
23
  "dev": "vite",
21
- "build": "tsc && vite build",
22
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
24
+ "prebuild": "rm -rf dist",
25
+ "build": "tsc -b && vite build",
26
+ "lint": "eslint .",
23
27
  "preview": "vite preview"
24
28
  },
25
29
  "dependencies": {
26
- "react": "^18.2.0",
27
- "react-dom": "^18.2.0",
28
- "react-icons": "^5.0.1"
30
+ "react": "^19.2.0",
31
+ "react-dom": "^19.2.0",
32
+ "vite-tsconfig-paths": "^6.0.4"
29
33
  },
30
34
  "devDependencies": {
31
- "@types/node": "^20.11.16",
32
- "@types/react": "^18.2.43",
33
- "@types/react-dom": "^18.2.17",
34
- "@typescript-eslint/eslint-plugin": "^6.14.0",
35
- "@typescript-eslint/parser": "^6.14.0",
36
- "@vitejs/plugin-react-swc": "^3.5.0",
37
- "autoprefixer": "^10.4.16",
38
- "eslint": "^8.55.0",
39
- "eslint-plugin-react-hooks": "^4.6.0",
40
- "eslint-plugin-react-refresh": "^0.4.5",
41
- "postcss": "^8.4.33",
42
- "tailwindcss": "^3.4.0",
43
- "typescript": "^5.2.2",
44
- "vite": "^5.0.8",
45
- "vite-plugin-dts": "^3.7.2"
35
+ "@eslint/js": "^9.39.1",
36
+ "@types/node": "^24.10.1",
37
+ "@types/react": "^19.2.5",
38
+ "@types/react-dom": "^19.2.3",
39
+ "@vitejs/plugin-react": "^5.1.1",
40
+ "eslint": "^9.39.1",
41
+ "eslint-plugin-react-hooks": "^7.0.1",
42
+ "eslint-plugin-react-refresh": "^0.4.24",
43
+ "globals": "^16.5.0",
44
+ "typescript": "~5.9.3",
45
+ "typescript-eslint": "^8.46.4",
46
+ "vite": "^7.2.4"
46
47
  }
47
48
  }
package/README.md DELETED
@@ -1,30 +0,0 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- export default {
18
- // other rules...
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- project: ['./tsconfig.json', './tsconfig.node.json'],
23
- tsconfigRootDir: __dirname,
24
- },
25
- }
26
- ```
27
-
28
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
package/dist/index.d.ts DELETED
@@ -1,39 +0,0 @@
1
- import { JSX as JSX_2 } from 'react/jsx-runtime';
2
-
3
- export declare function Arrow2TopRight(): JSX_2.Element;
4
-
5
- export declare function Button({ variant, icon, circle, children, ...rest }: {
6
- variant?: string;
7
- icon?: React.ReactNode;
8
- circle?: boolean;
9
- children?: React.ReactNode;
10
- }): JSX_2.Element;
11
-
12
- export declare function Entry({ placeholder, ...props }: {
13
- placeholder?: string;
14
- }): JSX_2.Element;
15
-
16
- export declare function Heading({ children }: any): JSX_2.Element;
17
-
18
- export declare function List({ children }: any): JSX_2.Element;
19
-
20
- export declare function ListItem({ onClick, children, }: {
21
- onClick?: React.MouseEventHandler<HTMLDivElement>;
22
- children: React.ReactNode;
23
- }): JSX_2.Element;
24
-
25
- export declare function Loupe(): JSX_2.Element;
26
-
27
- export declare function Welcome({ logo, title, description, }: {
28
- logo: React.ReactNode;
29
- title: string;
30
- description: string;
31
- }): JSX_2.Element;
32
-
33
- declare function Window_2({ center, children, }: {
34
- center?: boolean;
35
- children: React.ReactNode;
36
- }): JSX_2.Element;
37
- export { Window_2 as Window }
38
-
39
- export { }