@loomidev/drawer 0.4.1 → 0.5.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by @loomidev/drawer — do not edit by hand. Run `pnpm build` to regenerate.
|
|
2
2
|
import { unsafeCSS } from "lit";
|
|
3
3
|
/** Compiled, Shadow-DOM-scoped styles. Colors resolve via `var(--loomi-*)`. */
|
|
4
|
-
export const componentStyles = unsafeCSS("/*! tailwindcss v4.3.
|
|
4
|
+
export const componentStyles = unsafeCSS("/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer theme,base,components,utilities;:host{display:none}:host([open]){display:block}.loomi-backdrop{z-index:var(--loomi-drawer-z-index,2147480000);background:#0f172a73;animation:.2s loomi-drawer-fade-in;position:fixed;inset:0}.loomi-backdrop.is-closing{animation:loomi-drawer-fade-out var(--loomi-drawer-duration,.3s) ease both}.loomi-panel{z-index:var(--loomi-drawer-z-index,2147480000);background:var(--loomi-surface);box-shadow:var(--loomi-shadow-elevated);animation-duration:var(--loomi-drawer-duration,.3s);animation-timing-function:var(--loomi-drawer-easing,cubic-bezier(.32, .72, 0, 1));outline:none;flex-direction:column;animation-fill-mode:both;display:flex;position:fixed}.placement-left,.placement-right{max-width:100vw;top:0;bottom:0}.placement-left{left:0}.placement-right{right:0}.placement-top,.placement-bottom{max-height:100vh;left:0;right:0}.placement-top{top:0}.placement-bottom{bottom:0}.placement-left.size-small,.placement-right.size-small{width:20rem}.placement-left.size-medium,.placement-right.size-medium{width:28rem}.placement-left.size-large,.placement-right.size-large{width:36rem}.placement-top.size-small,.placement-bottom.size-small{height:14rem}.placement-top.size-medium,.placement-bottom.size-medium{height:20rem}.placement-top.size-large,.placement-bottom.size-large{height:28rem}.placement-right.is-open{animation-name:var(--loomi-drawer-enter-animation,loomi-drawer-in-right)}.placement-left.is-open{animation-name:var(--loomi-drawer-enter-animation,loomi-drawer-in-left)}.placement-top.is-open{animation-name:var(--loomi-drawer-enter-animation,loomi-drawer-in-top)}.placement-bottom.is-open{animation-name:var(--loomi-drawer-enter-animation,loomi-drawer-in-bottom)}.placement-right.is-closing{animation-name:var(--loomi-drawer-exit-animation,loomi-drawer-out-right)}.placement-left.is-closing{animation-name:var(--loomi-drawer-exit-animation,loomi-drawer-out-left)}.placement-top.is-closing{animation-name:var(--loomi-drawer-exit-animation,loomi-drawer-out-top)}.placement-bottom.is-closing{animation-name:var(--loomi-drawer-exit-animation,loomi-drawer-out-bottom)}.loomi-header{border-bottom:1px solid var(--loomi-surface-border);flex:none;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:1.25rem 1.5rem;display:flex}.loomi-title{color:var(--loomi-text);font-size:1.1rem;font-weight:600;line-height:1.4}.loomi-close{color:var(--loomi-text-faint);cursor:pointer;background:0 0;border:0;border-radius:.375rem;flex:none;margin:-.25rem -.25rem 0 0;padding:.25rem;line-height:0}.loomi-close:hover{color:var(--loomi-text-secondary);background:var(--loomi-surface-hover)}.loomi-close:focus-visible{outline:2px solid var(--loomi-focus-ring-color);outline-offset:2px}.loomi-body{min-height:0;color:var(--loomi-text-secondary);flex:1;padding:1.5rem;line-height:1.6;overflow-y:auto}@keyframes loomi-drawer-fade-in{0%{opacity:0}}@keyframes loomi-drawer-fade-out{to{opacity:0}}@keyframes loomi-drawer-in-left{0%{transform:translate(-100%)}}@keyframes loomi-drawer-in-right{0%{transform:translate(100%)}}@keyframes loomi-drawer-in-top{0%{transform:translateY(-100%)}}@keyframes loomi-drawer-in-bottom{0%{transform:translateY(100%)}}@keyframes loomi-drawer-out-left{to{transform:translate(-100%)}}@keyframes loomi-drawer-out-right{to{transform:translate(100%)}}@keyframes loomi-drawer-out-top{to{transform:translateY(-100%)}}@keyframes loomi-drawer-out-bottom{to{transform:translateY(100%)}}@media (max-width:30rem){.placement-left.size-small,.placement-left.size-medium,.placement-left.size-large,.placement-right.size-small,.placement-right.size-medium,.placement-right.size-large{width:100vw}.loomi-header{padding:1rem 1.25rem}.loomi-body{padding:1.25rem}}@media (prefers-reduced-motion:reduce){.loomi-panel,.loomi-backdrop{animation-duration:10ms}}");
|
|
5
5
|
//# sourceMappingURL=styles.css.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomidev/drawer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "<loomi-drawer> — a sliding edge panel with optional backdrop, focus trap, and customizable animations.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@loomidev/core": "^0.
|
|
34
|
-
"@loomidev/icon": "^0.
|
|
33
|
+
"@loomidev/core": "^0.5.0",
|
|
34
|
+
"@loomidev/icon": "^0.5.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@tailwindcss/cli": "^4.
|
|
40
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
41
41
|
"lit": "^3.3.3",
|
|
42
|
-
"tailwindcss": "^4.
|
|
42
|
+
"tailwindcss": "^4.3.3",
|
|
43
43
|
"typescript": "^5.6.3",
|
|
44
|
-
"@loomidev/theme": "^0.
|
|
44
|
+
"@loomidev/theme": "^0.5.0"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"web-components",
|