@crystal-ui/core 2.0.0 → 2.1.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.
@@ -1948,6 +1948,102 @@
1948
1948
  "$value": "8px",
1949
1949
  "$description": "How far a Resin surface holds its Haze content fill back from its own rim, so the glass edge still reads while the label sits on a stable ground. The fill is feathered and therefore lives on an isolated layer behind the content; feathering an element that contains text blurs the text. A Resin strip uses the same inset and its pills carry no material of their own."
1950
1950
  }
1951
+ },
1952
+ "chart": {
1953
+ "seriesCount": {
1954
+ "$type": "number",
1955
+ "$value": 6,
1956
+ "$description": "How many categorical series the palette can tell apart by colour. A seventh series repeats the first colour and must differ by another channel — a dash pattern, a fill pattern or a marker shape — because six hues is where perceptual separation runs out, not where charts do."
1957
+ },
1958
+ "seriesLightness": {
1959
+ "light": {
1960
+ "$type": "number",
1961
+ "$value": 0.55,
1962
+ "$description": "OKLab lightness every light-mode series colour is drawn at. One lightness for all six is what makes them read as one family rather than a ramp: a categorical scale must not imply an order it does not have."
1963
+ },
1964
+ "dark": {
1965
+ "$type": "number",
1966
+ "$value": 0.72,
1967
+ "$description": "The same, for dark mode. Higher than light, because the ground is dark and a mark must be lighter than it — but not as high as the ground allows. At 0.80 sRGB can no longer hold the chroma at the violet and blue hues, the colours there go pale, and the first series of a violet palette lands on the same colour as the palette's own action colour, which is a data mark that reads as a button."
1968
+ }
1969
+ },
1970
+ "seriesChroma": {
1971
+ "$type": "number",
1972
+ "$value": 0.18,
1973
+ "$description": "OKLab chroma asked for at each series hue, reduced per hue only where sRGB cannot hold it. Asking for one chroma and clipping is what keeps the six equally saturated to the eye."
1974
+ },
1975
+ "seriesHueOffset": {
1976
+ "$type": "number",
1977
+ "$value": 30,
1978
+ "$description": "Degrees the ring of series hues is turned from the palette's own seed hue. Half a step, so the palette hue falls exactly between the first and last series rather than on the first. The ring is centred on the palette rather than started from it for one reason: a series colour sitting on the seed hue at the lightness these are drawn at is the palette's action colour, and a data mark that is the colour of every button on the page is a data mark people try to press."
1979
+ },
1980
+ "seriesContrast": {
1981
+ "$type": "number",
1982
+ "$value": 3,
1983
+ "$description": "The floor every series colour clears against both the surface and the canvas of its mode. A data mark is a graphical object carrying information, so WCAG 1.4.11 applies to it and 3:1 is the bar. Where a hue cannot reach the floor at the stated lightness, its lightness moves until it does — the floor is not negotiable and the family resemblance is."
1984
+ },
1985
+ "stroke": {
1986
+ "$type": "dimension",
1987
+ "$value": "2px",
1988
+ "$description": "Line and edge weight for a data mark: a chart line, a polygon edge, a candle wick."
1989
+ },
1990
+ "hairline": {
1991
+ "$type": "dimension",
1992
+ "$value": "1px",
1993
+ "$description": "The separation a chart draws in the surface colour rather than in ink — between pie segments, heatmap cells, treemap rectangles and map regions. It is a gap, not a border: it shows the ground through."
1994
+ },
1995
+ "pointMin": {
1996
+ "$type": "dimension",
1997
+ "$value": "6px",
1998
+ "$description": "Smallest drawn point diameter. Points are sized on a scale between this and pointMax; the hit area is the action minimum regardless, so a 6px point is still a 44px target."
1999
+ },
2000
+ "pointMax": {
2001
+ "$type": "dimension",
2002
+ "$value": "18px",
2003
+ "$description": "Largest drawn point diameter."
2004
+ },
2005
+ "barRadius": {
2006
+ "$type": "dimension",
2007
+ "$value": "4px",
2008
+ "$description": "Radius on the value end of a bar only. The base end stays square because it sits on the axis, and rounding it would lift the bar off the line it is measured from."
2009
+ },
2010
+ "cellGap": {
2011
+ "$type": "dimension",
2012
+ "$value": "2px",
2013
+ "$description": "Gap between the square cells of a heatmap or calendar heatmap."
2014
+ },
2015
+ "ringThickness": {
2016
+ "$type": "number",
2017
+ "$value": 0.32,
2018
+ "$description": "A donut's ring thickness as a proportion of its outer radius. Declared rather than chosen per chart so a donut is recognisably the same object at every size."
2019
+ },
2020
+ "fillOpacity": {
2021
+ "$type": "number",
2022
+ "$value": 0.25,
2023
+ "$description": "Opacity of a fill whose job is to show extent without hiding what is behind it — the region under a line, the inside of a radar polygon. Low enough that two overlapping series are still two, and that the gridlines a reader measures against are still legible through both."
2024
+ },
2025
+ "linkOpacity": {
2026
+ "$type": "number",
2027
+ "$value": 0.45,
2028
+ "$description": "Opacity of a flow between two nodes. Higher than a fill because a link is the mark rather than its backing, and low enough that a crossing reads as two links rather than as a third shape."
2029
+ },
2030
+ "intensitySteps": {
2031
+ "$type": "number",
2032
+ "$value": 5,
2033
+ "$description": "How many buckets an intensity scale has — a heatmap cell, a calendar day. Five, because a reader comparing cells is matching them to a key rather than reading a gradient, and a key with more entries than a hand has fingers is a key nobody uses."
2034
+ },
2035
+ "gaugeSweep": {
2036
+ "$type": "number",
2037
+ "$value": 270,
2038
+ "$description": "Degrees an arc gauge sweeps, centred on the bottom. Not a full circle, because a full circle has no ends and a gauge is a value between two of them; not a half, because three quarters gives the same travel half the diameter would and leaves the centre square for the value."
2039
+ }
2040
+ },
2041
+ "progress": {
2042
+ "ringStroke": {
2043
+ "$type": "dimension",
2044
+ "$value": "8px",
2045
+ "$description": "Stroke of a circular progress ring, and of the gauge arc that the catalogue says matches it. One value so the two cannot drift: a gauge is a progress ring that has been told what it is measuring."
2046
+ }
1951
2047
  }
1952
2048
  },
1953
2049
  "$deprecated": {
@@ -774,6 +774,98 @@
774
774
  }
775
775
  }
776
776
  },
777
+ {
778
+ "id": "view-push-in",
779
+ "category": "Navigation",
780
+ "label": "Pushed view arrival",
781
+ "duration": 700,
782
+ "engine": "GSAP",
783
+ "keyframes": [
784
+ {
785
+ "transform": "perspective(1400px) translateX(100%) rotateY(-4deg)",
786
+ "offset": 0
787
+ },
788
+ {
789
+ "transform": "perspective(1400px) translateX(-6px) rotateY(0.4deg)",
790
+ "offset": 0.55
791
+ },
792
+ {
793
+ "transform": "perspective(1400px) translateX(0) rotateY(0)",
794
+ "offset": 1
795
+ }
796
+ ],
797
+ "use": "A view pushed onto a stack. It arrives from the inline-end edge, along the reading direction, so the movement says the stack went forward. Mirror it for a pop, and again for right-to-left.",
798
+ "reduced": "Apply the semantic state immediately; omit decorative movement.",
799
+ "material": "plastic",
800
+ "signature": "inertia",
801
+ "travelException": "A pushed view must cross its own width from outside the viewport.",
802
+ "spring": {
803
+ "stiffness": 452.3775,
804
+ "damping": 23.3961,
805
+ "mass": 1,
806
+ "dampingRatio": 0.55,
807
+ "platform": {
808
+ "swiftUI": {
809
+ "response": 0.2954,
810
+ "dampingFraction": 0.55
811
+ },
812
+ "compose": {
813
+ "dampingRatio": 0.55,
814
+ "stiffness": 452.3775
815
+ },
816
+ "web": {
817
+ "stiffness": 452.3775,
818
+ "damping": 23.3961,
819
+ "mass": 1
820
+ }
821
+ }
822
+ }
823
+ },
824
+ {
825
+ "id": "view-push-out",
826
+ "category": "Navigation",
827
+ "label": "Pushed view departure",
828
+ "duration": 700,
829
+ "engine": "GSAP",
830
+ "keyframes": [
831
+ {
832
+ "transform": "perspective(1400px) translateX(0) rotateY(0)",
833
+ "opacity": 1,
834
+ "offset": 0
835
+ },
836
+ {
837
+ "transform": "perspective(1400px) translateX(-28%) rotateY(2deg)",
838
+ "opacity": 0.55,
839
+ "offset": 1
840
+ }
841
+ ],
842
+ "use": "The view a push covered. It travels a fraction of the incoming view's distance and stays behind it, so the two read as one stack rather than two independent slides; it is still there, which is what makes the back gesture legible.",
843
+ "reduced": "Apply the semantic state immediately; omit decorative movement.",
844
+ "material": "plastic",
845
+ "signature": "inertia",
846
+ "travelException": "A covered view travels with the stack rather than within its own bounds.",
847
+ "spring": {
848
+ "stiffness": 452.3775,
849
+ "damping": 23.3961,
850
+ "mass": 1,
851
+ "dampingRatio": 0.55,
852
+ "platform": {
853
+ "swiftUI": {
854
+ "response": 0.2954,
855
+ "dampingFraction": 0.55
856
+ },
857
+ "compose": {
858
+ "dampingRatio": 0.55,
859
+ "stiffness": 452.3775
860
+ },
861
+ "web": {
862
+ "stiffness": 452.3775,
863
+ "damping": 23.3961,
864
+ "mass": 1
865
+ }
866
+ }
867
+ }
868
+ },
777
869
  {
778
870
  "id": "breadcrumb",
779
871
  "category": "Navigation",