@tempoxyz/ds 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tempoxyz/ds",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "DESIGN.md",
@@ -391,21 +391,6 @@ namespace styles {
391
391
  { id: 'tds/web/app-shell/header' },
392
392
  )
393
393
 
394
- export const inline = style(
395
- {
396
- borderInlineEndColor: 'grayAlpha.200',
397
- borderInlineEndStyle: 'solid',
398
- borderInlineEndWidth: '1px !custom',
399
- height: '100dvh !custom',
400
- insetBlockStart: '0 !custom',
401
- overflowY: 'auto',
402
- position: 'sticky',
403
- width: 'var(--sidebar-width, 16.25rem) !custom',
404
- '@media (max-width: 1023px)': { display: 'none !custom' },
405
- },
406
- { id: 'tds/web/app-shell/inline' },
407
- )
408
-
409
394
  export const main = variants(
410
395
  {
411
396
  base: {
@@ -475,6 +460,23 @@ namespace styles {
475
460
  { id: 'tds/web/app-shell/sidebar' },
476
461
  )
477
462
 
463
+ // Follows `sidebar`, so its compact `display: none` overrides the sidebar's `display: flex` in
464
+ // server-rendered markup, which always emits the wide layout.
465
+ export const inline = style(
466
+ {
467
+ borderInlineEndColor: 'grayAlpha.200',
468
+ borderInlineEndStyle: 'solid',
469
+ borderInlineEndWidth: '1px !custom',
470
+ height: '100dvh !custom',
471
+ insetBlockStart: '0 !custom',
472
+ overflowY: 'auto',
473
+ position: 'sticky',
474
+ width: 'var(--sidebar-width, 16.25rem) !custom',
475
+ '@media (max-width: 1023px)': { display: 'none !custom' },
476
+ },
477
+ { id: 'tds/web/app-shell/inline' },
478
+ )
479
+
478
480
  export const sidebarBody = variants(
479
481
  {
480
482
  base: {
@@ -181,11 +181,13 @@ namespace styles {
181
181
  ],
182
182
  defaultVariants: { intent: 'info', shape: 'default', size: 'medium' },
183
183
  variants: {
184
+ // Light mode takes step 300, since step 100 nearly matches the page background. Dark mode
185
+ // keeps step 100, which already stands apart from the page while keeping the text legible.
184
186
  intent: {
185
- info: { backgroundColor: 'blue.100', color: 'blue.900' },
186
- negative: { backgroundColor: 'red.100', color: 'red.900' },
187
- positive: { backgroundColor: 'green.100', color: 'green.900' },
188
- warning: { backgroundColor: 'amber.100', color: 'amber.900' },
187
+ info: { backgroundColor: 'light-dark(#e6eefe, #161b29) !custom', color: 'blue.900' },
188
+ negative: { backgroundColor: 'light-dark(#ffe6e0, #2a1410) !custom', color: 'red.900' },
189
+ positive: { backgroundColor: 'light-dark(#d3f8df, #052315) !custom', color: 'green.900' },
190
+ warning: { backgroundColor: 'light-dark(#ffede2, #2d1504) !custom', color: 'amber.900' },
189
191
  },
190
192
  shape: {
191
193
  default: {},