@gratiaos/ui 1.0.2 → 1.0.3
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/package.json +6 -5
- package/dist/pad/Button.d.ts +0 -10
- package/dist/pad/Button.d.ts.map +0 -1
- package/dist/pad/Button.js +0 -7
- package/dist/pad/Button.js.map +0 -1
- package/dist/pad/Card.d.ts +0 -8
- package/dist/pad/Card.d.ts.map +0 -1
- package/dist/pad/Card.js +0 -3
- package/dist/pad/Card.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gratiaos/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"funding": "https://github.com/sponsors/GratiaOS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
7
7
|
"description": "Headless Garden UI primitives with opt-in skins and realtime-friendly hooks.",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/",
|
|
10
11
|
"provenance": true
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/GratiaOS/garden-core.git",
|
|
15
|
+
"url": "git+https://github.com/GratiaOS/garden-core.git",
|
|
15
16
|
"directory": "packages/ui"
|
|
16
17
|
},
|
|
17
18
|
"main": "./dist/index.js",
|
|
@@ -92,8 +93,8 @@
|
|
|
92
93
|
"react": "^18 || ^19"
|
|
93
94
|
},
|
|
94
95
|
"devDependencies": {
|
|
95
|
-
"typescript": "^5.
|
|
96
|
-
"react": "^19.
|
|
97
|
-
"@types/react": "^19.
|
|
96
|
+
"typescript": "^5.9.3",
|
|
97
|
+
"react": "^19.2.0",
|
|
98
|
+
"@types/react": "^19.2.2"
|
|
98
99
|
}
|
|
99
100
|
}
|
package/dist/pad/Button.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Tone = 'accent' | 'plain';
|
|
3
|
-
type Size = 'sm' | 'md' | 'lg';
|
|
4
|
-
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
-
tone?: Tone;
|
|
6
|
-
size?: Size;
|
|
7
|
-
};
|
|
8
|
-
export declare const Button: React.FC<Props>;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=Button.d.ts.map
|
package/dist/pad/Button.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/pad/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC/B,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/B,KAAK,KAAK,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC3D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAUlC,CAAC"}
|
package/dist/pad/Button.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const Button = ({ tone = 'plain', size = 'md', className = '', ...rest }) => {
|
|
3
|
-
const sizeCls = size === 'sm' ? 'px-3 py-1.5 text-sm' : size === 'lg' ? 'px-5 py-3 text-lg' : 'px-4 py-2';
|
|
4
|
-
const toneCls = tone === 'accent' ? 'pad-accent border border-transparent' : 'bg-transparent border border-[var(--pad-border)] text-pad';
|
|
5
|
-
return (_jsx("button", { "data-ui": "pad-button", className: `inline-flex items-center justify-center rounded-2xl font-medium ${sizeCls} ${toneCls} transition-[transform,filter,box-shadow] hover:brightness-105 active:translate-y-px focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-[0_0_0_3px] focus-visible:shadow-[color-mix(in_oklab,var(--pad-accent)_85%,white_15%)] ${className}`, ...rest }));
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=Button.js.map
|
package/dist/pad/Button.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/pad/Button.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,EAAE,IAAI,GAAG,OAAO,EAAE,IAAI,GAAG,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClG,MAAM,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,WAAW,CAAC;IAC1G,MAAM,OAAO,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,2DAA2D,CAAC;IACzI,OAAO,CACL,4BACU,YAAY,EACpB,SAAS,EAAE,mEAAmE,OAAO,IAAI,OAAO,oPAAoP,SAAS,EAAE,KAC3V,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/pad/Card.d.ts
DELETED
package/dist/pad/Card.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/pad/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACtD,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEpC,CAAC"}
|
package/dist/pad/Card.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const Card = ({ as: Tag = 'section', padding = 'md', className = '', ...rest }) => (_jsx(Tag, { "data-ui": "pad-card", className: `pad-card ${padding === 'sm' ? 'p-3' : padding === 'lg' ? 'p-6' : 'p-4'} ${className}`, ...rest }));
|
|
3
|
-
//# sourceMappingURL=Card.js.map
|
package/dist/pad/Card.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../src/pad/Card.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,EAAE,EAAE,GAAG,GAAG,SAAS,EAAE,OAAO,GAAG,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7G,KAAC,GAAG,eAAS,UAAU,EAAC,SAAS,EAAE,YAAY,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,EAAE,KAAM,IAAI,GAAI,CACxI,CAAC"}
|