@jsekulowicz/ds-components 0.9.13 → 0.10.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.
Files changed (32) hide show
  1. package/custom-elements.json +323 -10
  2. package/dist/define.d.ts +1 -0
  3. package/dist/define.d.ts.map +1 -1
  4. package/dist/define.js +1 -0
  5. package/dist/define.js.map +1 -1
  6. package/dist/molecules/dialog/dialog.styles.d.ts.map +1 -1
  7. package/dist/molecules/dialog/dialog.styles.js +72 -2
  8. package/dist/molecules/dialog/dialog.styles.js.map +1 -1
  9. package/dist/molecules/drawer/define.d.ts +8 -0
  10. package/dist/molecules/drawer/define.d.ts.map +1 -0
  11. package/dist/molecules/drawer/define.js +6 -0
  12. package/dist/molecules/drawer/define.js.map +1 -0
  13. package/dist/molecules/drawer/drawer.d.ts +37 -0
  14. package/dist/molecules/drawer/drawer.d.ts.map +1 -0
  15. package/dist/molecules/drawer/drawer.js +144 -0
  16. package/dist/molecules/drawer/drawer.js.map +1 -0
  17. package/dist/molecules/drawer/drawer.styles.d.ts +2 -0
  18. package/dist/molecules/drawer/drawer.styles.d.ts.map +1 -0
  19. package/dist/molecules/drawer/drawer.styles.js +164 -0
  20. package/dist/molecules/drawer/drawer.styles.js.map +1 -0
  21. package/dist/molecules/drawer/index.d.ts +2 -0
  22. package/dist/molecules/drawer/index.d.ts.map +1 -0
  23. package/dist/molecules/drawer/index.js +2 -0
  24. package/dist/molecules/drawer/index.js.map +1 -0
  25. package/dist/templates/page-shell/page-shell.d.ts +6 -5
  26. package/dist/templates/page-shell/page-shell.d.ts.map +1 -1
  27. package/dist/templates/page-shell/page-shell.js +40 -47
  28. package/dist/templates/page-shell/page-shell.js.map +1 -1
  29. package/dist/templates/page-shell/page-shell.styles.d.ts.map +1 -1
  30. package/dist/templates/page-shell/page-shell.styles.js +12 -73
  31. package/dist/templates/page-shell/page-shell.styles.js.map +1 -1
  32. package/package.json +10 -3
@@ -3,7 +3,7 @@ import { breakpoint } from '@jsekulowicz/ds-tokens';
3
3
  const belowDesktopBreakpoint = unsafeCSS(`calc(${breakpoint.lg} - 0.02px)`);
4
4
  export const pageShellStyles = css `
5
5
  :host {
6
- --ds-page-shell-max-width: 90rem;
6
+ --ds-page-shell-max-width: none;
7
7
 
8
8
  display: flex;
9
9
  flex-direction: column;
@@ -84,7 +84,7 @@ export const pageShellStyles = css `
84
84
  }
85
85
 
86
86
  :host([aside-empty]) aside[part="aside"],
87
- :host([aside-empty]) .mobile-backdrop {
87
+ :host([aside-empty]) ds-drawer[part="aside"] {
88
88
  display: none;
89
89
  }
90
90
 
@@ -117,8 +117,7 @@ export const pageShellStyles = css `
117
117
  .menu-toggle {
118
118
  display: none;
119
119
  }
120
- .menu-toggle::part(button),
121
- .drawer-close::part(button) {
120
+ .menu-toggle::part(button) {
122
121
  min-width: var(--ds-size-sm);
123
122
  width: var(--ds-size-sm);
124
123
  padding: 0;
@@ -127,72 +126,22 @@ export const pageShellStyles = css `
127
126
  display: inline-flex;
128
127
  }
129
128
 
130
- .mobile-backdrop {
131
- display: none;
132
- }
133
- .drawer-header {
134
- display: none;
135
- }
136
- .drawer-brand {
137
- display: none;
138
- }
139
- .drawer-close {
140
- display: none;
141
- }
142
-
129
+ /* In mobile layout the inline-start column collapses — the drawer
130
+ overlays in the top layer (via ds-drawer's native <dialog>) so it
131
+ doesn't take grid space — and the inline-end column hides since
132
+ v1 doesn't surface it in the drawer. */
143
133
  :host([mobile-layout]) .shell-body {
144
134
  grid-template-columns: 1fr;
145
135
  }
146
136
  :host([mobile-layout]) aside[part="aside-end"] {
147
- /* Secondary inline-end region is not surfaced in the mobile drawer in v1.
148
- Consumers can opt back in by overriding via ::part(aside-end). */
149
137
  display: none;
150
138
  }
151
- :host([mobile-layout]) aside[part="aside"] {
152
- position: absolute;
153
- top: 0;
154
- left: 0;
155
- width: 16rem;
156
- display: flex;
157
- flex-direction: column;
158
- height: 100%;
159
- background: var(--ds-color-bg);
160
- border-right: 0;
161
- z-index: var(--ds-z-index-modal);
162
- transform: translateX(-100%);
163
- transition: transform var(--ds-duration-slow) var(--ds-easing-standard);
164
- scrollbar-gutter: auto;
165
- overflow: hidden;
166
- box-sizing: border-box;
167
- }
168
- :host([mobile-layout][data-mobile-nav-open]) aside[part="aside"] {
169
- transform: translateX(0);
170
- }
171
- :host([mobile-layout]) .drawer-header {
172
- display: flex;
173
- align-items: center;
174
- justify-content: space-between;
175
- gap: var(--ds-space-3);
176
- padding: var(--ds-space-2) var(--ds-space-4);
177
- }
178
- :host([mobile-layout]) .drawer-brand {
179
- display: inline-flex;
180
- align-items: center;
181
- flex: 1;
182
- min-width: 0;
183
- font-family: var(--ds-font-display);
184
- font-size: var(--ds-font-size-lg);
185
- letter-spacing: var(--ds-letter-spacing-display);
186
- }
187
- :host([mobile-layout]) slot[name='drawer-brand']::slotted(*) {
188
- max-width: 100%;
189
- }
190
- :host([mobile-layout]) .drawer-close {
191
- display: inline-flex;
192
- flex: 0 0 auto;
193
- margin: 0;
139
+ :host([mobile-layout]) ds-drawer[part="aside"] {
140
+ /* ds-drawer is a top-layer modal; remove it from the grid so it
141
+ doesn't reserve a column when closed. */
142
+ display: contents;
194
143
  }
195
- :host([mobile-layout]) aside[part="aside"] ::slotted(ds-sidenav) {
144
+ :host([mobile-layout]) ds-drawer[part="aside"] ::slotted(ds-sidenav) {
196
145
  width: 100% !important;
197
146
  max-width: 100% !important;
198
147
  flex: 1 1 auto;
@@ -200,15 +149,5 @@ export const pageShellStyles = css `
200
149
  min-height: 0;
201
150
  height: auto !important;
202
151
  }
203
- :host([mobile-layout][data-mobile-nav-open]) .mobile-backdrop {
204
- display: block;
205
- position: absolute;
206
- inset: 0;
207
- border: 0;
208
- margin: 0;
209
- padding: 0;
210
- background: color-mix(in oklab, var(--ds-color-fg) 26%, transparent);
211
- z-index: var(--ds-z-index-overlay);
212
- }
213
152
  `;
214
153
  //# sourceMappingURL=page-shell.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-shell.styles.js","sourceRoot":"","sources":["../../../src/templates/page-shell/page-shell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,sBAAsB,GAAG,SAAS,CAAC,QAAQ,UAAU,CAAC,EAAE,YAAY,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0GX,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuG5C,CAAC"}
1
+ {"version":3,"file":"page-shell.styles.js","sourceRoot":"","sources":["../../../src/templates/page-shell/page-shell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,sBAAsB,GAAG,SAAS,CAAC,QAAQ,UAAU,CAAC,EAAE,YAAY,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0GX,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C5C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsekulowicz/ds-components",
3
- "version": "0.9.13",
3
+ "version": "0.10.0",
4
4
  "description": "Lit web components for the Design System Library (atoms, molecules, organisms, templates, pages).",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -207,6 +207,13 @@
207
207
  "./dialog/define": {
208
208
  "import": "./dist/molecules/dialog/define.js"
209
209
  },
210
+ "./drawer": {
211
+ "types": "./dist/molecules/drawer/index.d.ts",
212
+ "import": "./dist/molecules/drawer/index.js"
213
+ },
214
+ "./drawer/define": {
215
+ "import": "./dist/molecules/drawer/define.js"
216
+ },
210
217
  "./toast": {
211
218
  "types": "./dist/molecules/toast/index.d.ts",
212
219
  "import": "./dist/molecules/toast/index.js"
@@ -314,8 +321,8 @@
314
321
  ],
315
322
  "dependencies": {
316
323
  "lit": "^3.2.1",
317
- "@jsekulowicz/ds-core": "0.5.0",
318
- "@jsekulowicz/ds-tokens": "0.5.0"
324
+ "@jsekulowicz/ds-tokens": "0.5.0",
325
+ "@jsekulowicz/ds-core": "0.5.0"
319
326
  },
320
327
  "devDependencies": {
321
328
  "heroicons": "2.2.0",