@iyulab/desktop-patterns 0.7.0 → 0.7.2

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.
@@ -47,6 +47,21 @@ var s = class extends n {
47
47
  display: block;
48
48
  }
49
49
  }
50
+ /* On paper only the item picked is printed, at its full length. */
51
+ @media print {
52
+ :host {
53
+ display: block;
54
+ height: auto;
55
+ }
56
+ :host([detail-open]) .list,
57
+ .list {
58
+ display: none;
59
+ }
60
+ .detail {
61
+ display: block;
62
+ overflow: visible;
63
+ }
64
+ }
50
65
  `;
51
66
  }
52
67
  render() {
package/dist/page.js CHANGED
@@ -33,6 +33,18 @@ var o = {
33
33
  flex-direction: column;
34
34
  height: 100%;
35
35
  }
36
+ /* On paper the page runs on across pages, filled or not. */
37
+ @media print {
38
+ :host,
39
+ :host([fill]) {
40
+ height: auto;
41
+ overflow: visible;
42
+ }
43
+ :host([fill]) .inner {
44
+ display: block;
45
+ height: auto;
46
+ }
47
+ }
36
48
  `;
37
49
  }
38
50
  render() {
package/dist/shell.js CHANGED
@@ -78,6 +78,29 @@ var c = class extends Event {
78
78
  flex: 1;
79
79
  overflow: auto;
80
80
  }
81
+ /* On paper the shell is the document: no sidebar or toolbar, and nothing held to the window's
82
+ height — what scrolls on screen runs on across pages. */
83
+ @media print {
84
+ :host {
85
+ display: block;
86
+ width: auto;
87
+ height: auto;
88
+ overflow: visible;
89
+ }
90
+ /* As specific as the sidebar-open rule above, which would otherwise keep the sidebar. */
91
+ :host([sidebar-open]) .sidebar-region,
92
+ .sidebar-region,
93
+ .toolbar-row,
94
+ .backdrop {
95
+ display: none;
96
+ }
97
+ .main-column {
98
+ display: block;
99
+ }
100
+ main {
101
+ overflow: visible;
102
+ }
103
+ }
81
104
  `;
82
105
  }
83
106
  connectedCallback() {
package/dist/sidebar.js CHANGED
@@ -61,8 +61,6 @@ var c = (e) => Array.isArray(e.items), l = class extends Event {
61
61
  font-size: var(--dc-font-size-xs, 11px);
62
62
  font-weight: var(--dc-font-weight-medium, 500);
63
63
  color: var(--dc-color-text-secondary, #55555c);
64
- text-transform: uppercase;
65
- letter-spacing: 0.02em;
66
64
  }
67
65
  nav {
68
66
  flex: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/desktop-patterns",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -82,10 +82,10 @@
82
82
  "lit": "^3.3.3"
83
83
  },
84
84
  "peerDependencies": {
85
- "@iyulab/desktop-compact": "^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0"
85
+ "@iyulab/desktop-compact": "^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@iyulab/desktop-compact": "^0.10.0",
88
+ "@iyulab/desktop-compact": "^0.11.0",
89
89
  "@open-wc/testing": "^5.0.0",
90
90
  "@storybook/web-components": "^10.6.0",
91
91
  "@storybook/web-components-vite": "^10.6.0",