@pearpages/pulp-tokens 0.1.0 → 0.2.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.
package/dist/tokens.css CHANGED
@@ -140,6 +140,8 @@
140
140
  --size-popover-width: 20rem;
141
141
  --size-menu-width: 14rem;
142
142
  --size-listbox-height: 18rem;
143
+ --size-sheet-width: 24rem;
144
+ --size-sheet-height: 60vh;
143
145
  --focus-ring-width: 2px;
144
146
  --focus-ring-offset: 2px;
145
147
  --layer-toast: 1100;
@@ -560,6 +562,9 @@
560
562
  --select-focus-ring-width: var(--focus-ring-width);
561
563
  --select-focus-ring-offset: var(--focus-ring-offset);
562
564
  --select-motion-duration: var(--motion-duration-fast);
565
+ --sheet-width: var(--size-sheet-width);
566
+ --sheet-height: var(--size-sheet-height);
567
+ --sheet-motion-translate: var(--space-5);
563
568
  --skeleton-base: var(--color-surface-sunken);
564
569
  --skeleton-highlight: var(--color-surface-raised);
565
570
  --skeleton-radius: var(--radius-control);
@@ -904,6 +909,8 @@
904
909
  --size-popover-width: 20rem;
905
910
  --size-menu-width: 14rem;
906
911
  --size-listbox-height: 18rem;
912
+ --size-sheet-width: 24rem;
913
+ --size-sheet-height: 60vh;
907
914
  --focus-ring-width: 2px;
908
915
  --focus-ring-offset: 2px;
909
916
  --layer-toast: 1100;
package/dist/tokens.json CHANGED
@@ -1590,6 +1590,30 @@
1590
1590
  "value": "18rem",
1591
1591
  "description": "Maximum height of an option list before it scrolls (Combobox, Picker, Listbox)."
1592
1592
  },
1593
+ {
1594
+ "name": "--size-sheet-width",
1595
+ "path": [
1596
+ "size",
1597
+ "sheet-width"
1598
+ ],
1599
+ "type": "dimension",
1600
+ "tier": "semantic",
1601
+ "css": "24rem",
1602
+ "value": "24rem",
1603
+ "description": "Width of a sheet docked to the start or end edge."
1604
+ },
1605
+ {
1606
+ "name": "--size-sheet-height",
1607
+ "path": [
1608
+ "size",
1609
+ "sheet-height"
1610
+ ],
1611
+ "type": "dimension",
1612
+ "tier": "semantic",
1613
+ "css": "60vh",
1614
+ "value": "60vh",
1615
+ "description": "Height of a sheet docked to the top or bottom edge: a share of the viewport, so the page stays visible behind it."
1616
+ },
1593
1617
  {
1594
1618
  "name": "--focus-ring-width",
1595
1619
  "path": [
@@ -6537,6 +6561,39 @@
6537
6561
  "css": "var(--motion-duration-fast)",
6538
6562
  "value": "140ms"
6539
6563
  },
6564
+ {
6565
+ "name": "--sheet-width",
6566
+ "path": [
6567
+ "sheet",
6568
+ "width"
6569
+ ],
6570
+ "type": "dimension",
6571
+ "tier": "component",
6572
+ "css": "var(--size-sheet-width)",
6573
+ "value": "24rem"
6574
+ },
6575
+ {
6576
+ "name": "--sheet-height",
6577
+ "path": [
6578
+ "sheet",
6579
+ "height"
6580
+ ],
6581
+ "type": "dimension",
6582
+ "tier": "component",
6583
+ "css": "var(--size-sheet-height)",
6584
+ "value": "60vh"
6585
+ },
6586
+ {
6587
+ "name": "--sheet-motion-translate",
6588
+ "path": [
6589
+ "sheet",
6590
+ "motion-translate"
6591
+ ],
6592
+ "type": "dimension",
6593
+ "tier": "component",
6594
+ "css": "var(--space-5)",
6595
+ "value": "0.25rem"
6596
+ },
6540
6597
  {
6541
6598
  "name": "--skeleton-base",
6542
6599
  "path": [
@@ -10574,6 +10631,30 @@
10574
10631
  "value": "18rem",
10575
10632
  "description": "Maximum height of an option list before it scrolls (Combobox, Picker, Listbox)."
10576
10633
  },
10634
+ {
10635
+ "name": "--size-sheet-width",
10636
+ "path": [
10637
+ "size",
10638
+ "sheet-width"
10639
+ ],
10640
+ "type": "dimension",
10641
+ "tier": "semantic",
10642
+ "css": "24rem",
10643
+ "value": "24rem",
10644
+ "description": "Width of a sheet docked to the start or end edge."
10645
+ },
10646
+ {
10647
+ "name": "--size-sheet-height",
10648
+ "path": [
10649
+ "size",
10650
+ "sheet-height"
10651
+ ],
10652
+ "type": "dimension",
10653
+ "tier": "semantic",
10654
+ "css": "60vh",
10655
+ "value": "60vh",
10656
+ "description": "Height of a sheet docked to the top or bottom edge: a share of the viewport, so the page stays visible behind it."
10657
+ },
10577
10658
  {
10578
10659
  "name": "--focus-ring-width",
10579
10660
  "path": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pearpages/pulp-tokens",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "pulp design tokens. W3C Design Tokens (DTCG) JSON in, CSS custom properties and a resolved JSON manifest out. Two brands, light and dark via light-dark().",
5
5
  "license": "MIT",
6
6
  "author": "Pere Pages <hello@pearpages.com> (https://pearpages.com)",
@@ -0,0 +1,8 @@
1
+ {
2
+ "$description": "Sheet component tokens: the size side of the mapping onto @pearpages/modals. The vendor docks the dialog and reads --modal-width-sheet, --modal-height-sheet and --modal-animation-translate-sheet; Sheet.module.css sets those from these --sheet-* tokens on the dialog element. Colour, type and motion timing are Dialog's.",
3
+ "sheet": {
4
+ "width": { "$type": "dimension", "$value": "{size.sheet-width}" },
5
+ "height": { "$type": "dimension", "$value": "{size.sheet-height}" },
6
+ "motion-translate": { "$type": "dimension", "$value": "{space.5}" }
7
+ }
8
+ }
@@ -690,6 +690,20 @@
690
690
  "unit": "rem"
691
691
  },
692
692
  "$description": "Maximum height of an option list before it scrolls (Combobox, Picker, Listbox)."
693
+ },
694
+ "sheet-width": {
695
+ "$value": {
696
+ "value": 24,
697
+ "unit": "rem"
698
+ },
699
+ "$description": "Width of a sheet docked to the start or end edge."
700
+ },
701
+ "sheet-height": {
702
+ "$value": {
703
+ "value": 60,
704
+ "unit": "vh"
705
+ },
706
+ "$description": "Height of a sheet docked to the top or bottom edge: a share of the viewport, so the page stays visible behind it."
693
707
  }
694
708
  },
695
709
  "focus": {
@@ -691,6 +691,20 @@
691
691
  "unit": "rem"
692
692
  },
693
693
  "$description": "Maximum height of an option list before it scrolls (Combobox, Picker, Listbox)."
694
+ },
695
+ "sheet-width": {
696
+ "$value": {
697
+ "value": 24,
698
+ "unit": "rem"
699
+ },
700
+ "$description": "Width of a sheet docked to the start or end edge."
701
+ },
702
+ "sheet-height": {
703
+ "$value": {
704
+ "value": 60,
705
+ "unit": "vh"
706
+ },
707
+ "$description": "Height of a sheet docked to the top or bottom edge: a share of the viewport, so the page stays visible behind it."
694
708
  }
695
709
  },
696
710
  "focus": {