@aberhamm/liquid-glass-react 0.2.1 → 0.3.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 +76 -618
- package/dist/index.cjs +87 -1
- package/dist/index.d.cts +103 -1150
- package/dist/index.d.ts +103 -1150
- package/dist/index.mjs +3280 -1230
- package/dist/liquid-glass-react.css +1 -1
- package/dist/native/index.native.d.ts +1 -1
- package/dist/native/index.native.js +1 -1
- package/licenses/samasante-liquid-glass-MIT.txt +21 -0
- package/package.json +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.matui-glass-button-shell{position:relative;display:inline-flex;border-radius:999px;vertical-align:middle;color:var(--matui-glass-fg, #17332e)}.matui-glass-button-shell>[data-liquid-glass]{background:#ffffff32}.matui-glass-button-shell.matui-glass-button--primary{background:#117a6c88;color:#102e28}.matui-glass-button--secondary{background:#ffffff30}.matui-glass-button--subtle{background:#ffffff10}.matui-glass-button{position:relative;font:inherit;font-weight:600;color:inherit;border:0;border-radius:inherit;background:transparent;cursor:pointer}.matui-glass-button--sm{padding:8px 14px;font-size:13px}.matui-glass-button--md{padding:12px 22px;font-size:14px}.matui-glass-button--lg{padding:16px 28px;font-size:16px}.matui-glass-button--icon{width:44px;height:44px;display:grid;place-items:center}.matui-glass-button:disabled{cursor:not-allowed;opacity:.45}.matui-glass-button-shell:has(:disabled){opacity:.6}.matui-glass-button:hover:enabled{background:#ffffff18}.matui-glass-button:focus-visible,.matui-glass-control:focus-within,.matui-glass-segment:focus-within{outline:3px solid var(--matui-glass-focus, #195fbb);outline-offset:4px}.matui-glass-card{display:inline-block;max-width:100%;border-radius:28px;background:#fff2;color:var(--matui-glass-fg, inherit)}.matui-glass-card--raised{box-shadow:0 8px 24px #172e2918}.matui-glass-card--floating{box-shadow:0 18px 48px #172e2930}.matui-glass-segmented{margin:0;padding:5px;min-width:0;display:inline-flex;flex-wrap:wrap;gap:4px;border:1px solid #ffffff66;border-radius:24px;background:#fff2;color:var(--matui-glass-fg, inherit)}.matui-glass-segment{position:relative;border-radius:18px}.matui-glass-segment label{position:relative;display:block;padding:10px 18px;cursor:pointer}.matui-glass-segment input,.matui-glass-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.matui-glass-segment:has(:disabled){opacity:.45}.matui-glass-segment:has(:disabled) label{cursor:not-allowed}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* native bundle. Native ports of the prebuilt components are out of scope for
|
|
14
14
|
* this round (primitive only).
|
|
15
15
|
*/
|
|
16
|
-
export declare const VERSION = "0.
|
|
16
|
+
export declare const VERSION = "0.3.0";
|
|
17
17
|
export { LiquidGlass, type LiquidGlassNativeProps } from './liquid-glass.native';
|
|
18
18
|
export type { DisplacementMode, GlassVariant, LiquidGlassCoreProps, MousePos, } from './types';
|
|
19
19
|
export * from './tokens';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* native bundle. Native ports of the prebuilt components are out of scope for
|
|
14
14
|
* this round (primitive only).
|
|
15
15
|
*/
|
|
16
|
-
export const VERSION = '0.
|
|
16
|
+
export const VERSION = '0.3.0';
|
|
17
17
|
export { LiquidGlass } from './liquid-glass.native';
|
|
18
18
|
// Shared design tokens (plan 022) — the same source of truth the web build uses.
|
|
19
19
|
export * from './tokens';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sam Asante
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aberhamm/liquid-glass-react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "React liquid-glass components powered by the samasante liquid-glass engine, with a separate native frosted surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Matthew Aberham",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"packageManager": "pnpm@10.33.3",
|
|
29
29
|
"sideEffects": ["**/*.css"],
|
|
30
|
-
"files": ["dist"],
|
|
30
|
+
"files": ["dist", "licenses"],
|
|
31
31
|
"main": "./dist/index.cjs",
|
|
32
32
|
"module": "./dist/index.mjs",
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
@@ -117,6 +117,10 @@
|
|
|
117
117
|
"typescript": "^5.7.3",
|
|
118
118
|
"vite": "^6.0.7",
|
|
119
119
|
"vite-plugin-dts": "^4.4.0",
|
|
120
|
-
"vitest": "^2.1.8"
|
|
120
|
+
"vitest": "^2.1.8",
|
|
121
|
+
"@testing-library/user-event": "^14.6.7"
|
|
122
|
+
},
|
|
123
|
+
"dependencies": {
|
|
124
|
+
"@samasante/liquid-glass": "0.1.1"
|
|
121
125
|
}
|
|
122
126
|
}
|