@crystal-ui/core 2.2.0 → 2.3.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.
@@ -1577,56 +1577,6 @@
1577
1577
  }
1578
1578
  }
1579
1579
  },
1580
- {
1581
- "id": "reaction",
1582
- "category": "Content",
1583
- "label": "Reaction response",
1584
- "duration": 680,
1585
- "engine": "Motion",
1586
- "keyframes": [
1587
- {
1588
- "transform": "scale(0.9155,1.0923) rotate(-4deg)",
1589
- "offset": 0
1590
- },
1591
- {
1592
- "transform": "scale(1.1193,0.8934) rotate(3deg)",
1593
- "offset": 0.3333333333333333
1594
- },
1595
- {
1596
- "transform": "scale(0.9658,1.0355) rotate(-1deg)",
1597
- "offset": 0.6666666666666666
1598
- },
1599
- {
1600
- "transform": "scale(1) rotate(0)",
1601
- "offset": 1
1602
- }
1603
- ],
1604
- "use": "Toggle the real reaction state and count before the response.",
1605
- "reduced": "Apply the semantic state immediately; omit decorative movement.",
1606
- "material": "resin",
1607
- "signature": "coalesce",
1608
- "spring": {
1609
- "stiffness": 307.72,
1610
- "damping": 21.752,
1611
- "mass": 1,
1612
- "dampingRatio": 0.62,
1613
- "platform": {
1614
- "swiftUI": {
1615
- "response": 0.3582,
1616
- "dampingFraction": 0.62
1617
- },
1618
- "compose": {
1619
- "dampingRatio": 0.62,
1620
- "stiffness": 307.72
1621
- },
1622
- "web": {
1623
- "stiffness": 307.72,
1624
- "damping": 21.752,
1625
- "mass": 1
1626
- }
1627
- }
1628
- }
1629
- },
1630
1580
  {
1631
1581
  "id": "toast-in",
1632
1582
  "category": "Feedback",
@@ -1842,52 +1792,6 @@
1842
1792
  }
1843
1793
  }
1844
1794
  },
1845
- {
1846
- "id": "busy",
1847
- "category": "Feedback",
1848
- "label": "Finite busy cue",
1849
- "duration": 680,
1850
- "engine": "GSAP",
1851
- "keyframes": [
1852
- {
1853
- "opacity": 0.45,
1854
- "offset": 0
1855
- },
1856
- {
1857
- "opacity": 1,
1858
- "offset": 0.5
1859
- },
1860
- {
1861
- "opacity": 0.45,
1862
- "offset": 1
1863
- }
1864
- ],
1865
- "use": "One cycle for an actual pending operation; keep a static busy label if it lasts longer.",
1866
- "reduced": "Apply the semantic state immediately; omit decorative movement.",
1867
- "material": "stone",
1868
- "signature": "feather",
1869
- "spring": {
1870
- "stiffness": 134.9372,
1871
- "damping": 21.3739,
1872
- "mass": 1,
1873
- "dampingRatio": 0.92,
1874
- "platform": {
1875
- "swiftUI": {
1876
- "response": 0.5409,
1877
- "dampingFraction": 0.92
1878
- },
1879
- "compose": {
1880
- "dampingRatio": 0.92,
1881
- "stiffness": 134.9372
1882
- },
1883
- "web": {
1884
- "stiffness": 134.9372,
1885
- "damping": 21.3739,
1886
- "mass": 1
1887
- }
1888
- }
1889
- }
1890
- },
1891
1795
  {
1892
1796
  "id": "skeleton-resolve",
1893
1797
  "category": "Feedback",
@@ -21,14 +21,15 @@
21
21
  "name": "Haze reading surface",
22
22
  "materials": ["Haze"],
23
23
  "class": ".cr-haze",
24
- "use": "Anything read: cards, rows, panels, wells, forms, messages, decisions. 80% fill, 1.95px feather on an isolated paint layer, crisp foreground. `.cr-well` is the same recipe recessed into a Frost or Resin frame."
24
+ "use": "Anything read: cards, rows, panels, wells, forms, messages, decisions. 80% fill, 1.95px feather on an isolated paint layer, crisp foreground. `.cr-well` is the same recipe recessed into a Frost or Resin frame. `.cr-haze.overlay` is the recessed overlay: a transient overlay opened inside a pane that is already lifted, drawn as a flat Haze fill with the `--cr-edge` rim and the content shadow, so it can be told from the pane it sits in.",
25
+ "also": [".cr-haze.overlay"]
25
26
  },
26
27
  {
27
28
  "id": "resin",
28
29
  "name": "Resin plane",
29
30
  "materials": ["Resin"],
30
31
  "class": ".cr-resin",
31
- "use": "One clustered navigation or control plane, pill-shaped: toolbars, action bars, shared button planes, segmented strips, the transport bar of a player. Controls inside it lose their own backdrop filter — Resin never contains Resin."
32
+ "use": "One floating Resin plane with no reading fill of its own, pill-shaped unless it is a panel: a player's transport bar, a pinned element, a Resin handle over imagery or between regions. Controls inside it lose their own backdrop filter — Resin never contains Resin. A plane whose controls are labels to be read holds a Haze fill as well, and is a dock."
32
33
  },
33
34
  {
34
35
  "id": "resin-panel",
@@ -57,8 +58,8 @@
57
58
  "name": "Compact display",
58
59
  "materials": ["Resin", "Haze"],
59
60
  "class": ".cr-resin-haze",
60
- "also": [".cr-tag"],
61
- "use": "Small information displays that sit on content: tags, badges, labels, keyboard caps. A Resin shell with the inset Haze pad, 18px radius. Not for anything that opens — transient overlays are Frost."
61
+ "also": [".cr-tag", ".cr-resin-haze.count"],
62
+ "use": "Small information displays that sit on content: tags, badges, labels, keyboard caps. A Resin shell with the inset Haze pad, 18px radius. Not for anything that opens — transient overlays are Frost. `.count` is the size for a count: a 20px circle that grows to a pill, filled to its own edge, with no block padding."
62
63
  },
63
64
  {
64
65
  "id": "stone",
@@ -80,7 +81,8 @@
80
81
  "name": "Dialog",
81
82
  "materials": ["Haze", "Mirage"],
82
83
  "class": ".cr-dialog",
83
- "use": "A Haze decision surface over a Mirage scrim, with the float shadow. Modality, focus and dismissal are the product's."
84
+ "use": "A Haze decision surface over a Mirage scrim, with the float shadow. Modality, focus and dismissal are the product's. The surface does not scroll: `.cr-dialog-body`, worn with `.cr-scroll-frost`, scrolls inside it, so the title stays in view and the edge fade does not dissolve the surface. `position: fixed` is for a native `<dialog>`; on any other element the host positions it.",
85
+ "also": [".cr-dialog-body"]
84
86
  },
85
87
  {
86
88
  "id": "indicator",
@@ -117,7 +119,15 @@
117
119
  "materials": ["Resin", "Haze"],
118
120
  "class": ".cr-dock",
119
121
  "also": [".cr-dock-inner"],
120
- "use": "The floating destination group: a Resin pill with a Haze perimeter, transparent destinations inside it, primary fill and weight 800 on the current one."
122
+ "use": "A Resin plane holding labelled controls on one Haze fill, so every label reads on the same protected ground: a dock of destinations, and the strips that group controls the same way — tab strips, segmented controls, toolbars, command and action bars. The controls inside are transparent; the current or selected one takes weight 800 and the primary fill, whether it is a dock's destination, a tab or a segment. The controls may be buttons, tabs (`[role=tab]`, selected by `aria-selected`), radio labels (selected by `:checked`) or links (current by `aria-current`); only buttons were reached before 2.3.0."
123
+ },
124
+ {
125
+ "id": "group",
126
+ "name": "Group",
127
+ "materials": ["Resin", "Haze"],
128
+ "class": ".cr-group",
129
+ "also": [".cr-group.vertical"],
130
+ "use": "A Resin plane whose controls touch: button groups and split buttons. The silhouette is one pill, the interior corners square off against their neighbours, and a hairline in `--cr-edge` separates them. The children keep their fill and give up their own elevation and diffusion, because the plane is the group's. `.vertical` stacks them. Not a dock: a dock spaces its controls apart on its Haze fill."
121
131
  },
122
132
  {
123
133
  "id": "nav-item",