@openwarelabs/ui 0.10.1 → 0.11.1

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/dist/styles.css CHANGED
@@ -268,7 +268,10 @@
268
268
  --ow-space-6xl: 26px;
269
269
  --ow-space-7xl: 28px;
270
270
  --ow-page-max: 1200px;
271
+ --ow-page-narrow: 720px;
272
+ --ow-page-wide: 1440px;
271
273
  --ow-page-gutter: 20px;
274
+ --ow-page-gutter-wide: 32px;
272
275
  --ow-header-height: 56px;
273
276
  --ow-section-y: 96px;
274
277
  --ow-radius-sm: 4px;
@@ -2430,7 +2433,8 @@
2430
2433
 
2431
2434
  .ow-slider__control {
2432
2435
  position: relative;
2433
- height: 20px;
2436
+ /* 24px tall so each handle's input is a big enough target to tap (WCAG 2.2 target size). */
2437
+ height: 24px;
2434
2438
  }
2435
2439
 
2436
2440
  /* The track runs between the thumb's centre at each end (9px in), so the fill meets the thumb exactly. */
@@ -2476,12 +2480,12 @@
2476
2480
  }
2477
2481
 
2478
2482
  .ow-slider__input::-webkit-slider-runnable-track {
2479
- height: 20px;
2483
+ height: 24px;
2480
2484
  background: transparent;
2481
2485
  }
2482
2486
 
2483
2487
  .ow-slider__input::-moz-range-track {
2484
- height: 20px;
2488
+ height: 24px;
2485
2489
  background: transparent;
2486
2490
  }
2487
2491
 
@@ -2489,7 +2493,7 @@
2489
2493
  box-sizing: border-box;
2490
2494
  width: 18px;
2491
2495
  height: 18px;
2492
- margin-top: 1px;
2496
+ margin-top: 3px;
2493
2497
  appearance: none;
2494
2498
  border: 1px solid var(--ow-border-strong);
2495
2499
  border-radius: 50%;
@@ -6639,6 +6643,73 @@
6639
6643
  outline-offset: 2px;
6640
6644
  }
6641
6645
 
6646
+ /* components/Container/Container.css */
6647
+ /* The page's width and side margins, the same as every block's: the content is at most the size's width, inside a
6648
+ 32px gutter (the phone gutter under 760px). */
6649
+
6650
+ .ow-container {
6651
+ box-sizing: border-box;
6652
+ width: 100%;
6653
+ margin-inline: auto;
6654
+ padding-inline: var(--ow-page-gutter-wide);
6655
+ }
6656
+
6657
+ .ow-container--page {
6658
+ max-width: calc(var(--ow-page-max) + 2 * var(--ow-page-gutter-wide));
6659
+ }
6660
+
6661
+ .ow-container--narrow {
6662
+ max-width: calc(var(--ow-page-narrow) + 2 * var(--ow-page-gutter-wide));
6663
+ }
6664
+
6665
+ .ow-container--wide {
6666
+ max-width: calc(var(--ow-page-wide) + 2 * var(--ow-page-gutter-wide));
6667
+ }
6668
+
6669
+ @media (max-width: 760px) {
6670
+ .ow-container {
6671
+ padding-inline: var(--ow-page-gutter);
6672
+ }
6673
+ }
6674
+
6675
+ /* components/Section/Section.css */
6676
+ /* A band of the page: a block's vertical space and ground, full width. Its Container sets the width inside. */
6677
+
6678
+ .ow-section {
6679
+ box-sizing: border-box;
6680
+ width: 100%;
6681
+ color: var(--ow-text);
6682
+ }
6683
+
6684
+ .ow-section--paper {
6685
+ background: var(--ow-paper);
6686
+ }
6687
+
6688
+ .ow-section--canvas {
6689
+ background: var(--ow-canvas);
6690
+ }
6691
+
6692
+ .ow-section--surface {
6693
+ background: var(--ow-surface);
6694
+ }
6695
+
6696
+ .ow-section--space-md {
6697
+ padding-block: var(--ow-section-y);
6698
+ }
6699
+
6700
+ .ow-section--space-sm {
6701
+ padding-block: calc(var(--ow-section-y) / 2);
6702
+ }
6703
+
6704
+ @media (max-width: 760px) {
6705
+ .ow-section--space-md {
6706
+ padding-block: 72px;
6707
+ }
6708
+ .ow-section--space-sm {
6709
+ padding-block: 36px;
6710
+ }
6711
+ }
6712
+
6642
6713
  /* components/Marketing/Marketing.css */
6643
6714
  /* Marketing patterns from the site: Chip, SectionHeading, SiteHeader and the dot grid. */
6644
6715
  .ow-chip {
package/dist/tokens.css CHANGED
@@ -268,7 +268,10 @@
268
268
  --ow-space-6xl: 26px;
269
269
  --ow-space-7xl: 28px;
270
270
  --ow-page-max: 1200px;
271
+ --ow-page-narrow: 720px;
272
+ --ow-page-wide: 1440px;
271
273
  --ow-page-gutter: 20px;
274
+ --ow-page-gutter-wide: 32px;
272
275
  --ow-header-height: 56px;
273
276
  --ow-section-y: 96px;
274
277
  --ow-radius-sm: 4px;
package/dist/tokens.json CHANGED
@@ -900,11 +900,26 @@
900
900
  "value": "1200px",
901
901
  "usage": "Marketing pages' content width cap."
902
902
  },
903
+ {
904
+ "name": "ow-page-narrow",
905
+ "value": "720px",
906
+ "usage": "Reading width: an article, a form, a settings page (Container size narrow)."
907
+ },
908
+ {
909
+ "name": "ow-page-wide",
910
+ "value": "1440px",
911
+ "usage": "Wide pages that need room: dashboards and big tables (Container size wide)."
912
+ },
903
913
  {
904
914
  "name": "ow-page-gutter",
905
915
  "value": "20px",
906
916
  "usage": "Page side gutter on phones; 32px from 768px up."
907
917
  },
918
+ {
919
+ "name": "ow-page-gutter-wide",
920
+ "value": "32px",
921
+ "usage": "Page side gutter from 760px up, as every block and Container uses."
922
+ },
908
923
  {
909
924
  "name": "ow-header-height",
910
925
  "value": "56px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openwarelabs/ui",
3
- "version": "0.10.1",
3
+ "version": "0.11.1",
4
4
  "description": "Openware UI: React components and design tokens — midnight and brass, tactile buttons and Inter, in light and dark.",
5
5
  "license": "MIT",
6
6
  "author": "Alexander Silver",