@astryxdesign/core 0.7.8-canary.eb985e5 → 0.7.8-canary.eecdef0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PickerWheel.d.ts","sourceRoot":"","sources":["../../src/DateInput/PickerWheel.tsx"],"names":[],"mappings":"AA2DA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AA2HxB;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAe,EACf,GAAG,GACJ,EAAE,UAAU,+BAuiBZ;yBA9iBe,WAAW"}
1
+ {"version":3,"file":"PickerWheel.d.ts","sourceRoot":"","sources":["../../src/DateInput/PickerWheel.tsx"],"names":[],"mappings":"AA2DA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AAgIxB;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAe,EACf,GAAG,GACJ,EAAE,UAAU,+BAuiBZ;yBA9iBe,WAAW"}
@@ -46,6 +46,12 @@ const ROW_HEIGHT = WHEEL_ROW_HEIGHT;
46
46
  const UIKIT_SCALE = ROW_HEIGHT / picker.geometry.rowHeight;
47
47
  /** UIKit's rubber band dimension for the picker's table, at that pitch. */
48
48
  const RUBBER_BAND_DIMENSION = picker.geometry.rubberBandDimension * UIKIT_SCALE;
49
+
50
+ /**
51
+ * The rows' opacity at the column's edges. At 0.7 the row four from the band
52
+ * keeps 5:1 or more in every shipped theme, a margin over WCAG AA's 4.5:1.
53
+ */
54
+ const FADE_FLOOR = 0.7;
49
55
  const _temp = {
50
56
  k87sOh: "x5mnzd7",
51
57
  "$$css": true
@@ -587,7 +593,7 @@ export function PickerWheel({
587
593
  children: /*#__PURE__*/_jsxs("div", {
588
594
  "data-wheel-fade": "",
589
595
  ...{
590
- className: "x10l6tqk x10a8y8t x47corl xheapza"
596
+ className: "x10l6tqk x10a8y8t x47corl xsshixw"
591
597
  },
592
598
  children: [/*#__PURE__*/_jsx("div", {
593
599
  "aria-hidden": "true",
package/dist/astryx.css CHANGED
@@ -1225,7 +1225,7 @@
1225
1225
  .x1l10yog:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--spacing-6)}
1226
1226
  .x4lel18:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--x-marginInlineStart)}
1227
1227
  .x1cytvie:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(max(var(--spacing-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))}
1228
- .xheapza:not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to bottom,rgb(0 0 0 / .3),rgb(0 0 0) 50%,rgb(0 0 0 / .3))}
1228
+ .xsshixw:not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to bottom,rgb(0 0 0 / .7),rgb(0 0 0) 50%,rgb(0 0 0 / .7))}
1229
1229
  .xkm2don:not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to bottom,transparent,black 24px)}
1230
1230
  .xw26lqc:not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to bottom,transparent,black 36px)}
1231
1231
  .xr5yg4x:not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to bottom,transparent,black 48px)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/core",
3
- "version": "0.7.8-canary.eb985e5",
3
+ "version": "0.7.8-canary.eecdef0",
4
4
  "displayName": "Astryx Core",
5
5
  "description": "The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.",
6
6
  "author": "Meta Open Source",
@@ -870,9 +870,9 @@
870
870
  "react-dom": ">=19.0.0"
871
871
  },
872
872
  "devDependencies": {
873
- "@astryxdesign/a11y-spec": "0.7.8-canary.eb985e5",
874
- "@astryxdesign/cli": "0.7.8-canary.eb985e5",
875
- "@astryxdesign/interaction-harness": "0.7.8-canary.eb985e5",
873
+ "@astryxdesign/a11y-spec": "0.7.8-canary.eecdef0",
874
+ "@astryxdesign/cli": "0.7.8-canary.eecdef0",
875
+ "@astryxdesign/interaction-harness": "0.7.8-canary.eecdef0",
876
876
  "@babel/cli": "^7.29.7",
877
877
  "@babel/core": "^7.29.7",
878
878
  "@babel/preset-react": "^7.29.7",
@@ -73,6 +73,12 @@ const UIKIT_SCALE = ROW_HEIGHT / picker.geometry.rowHeight;
73
73
  /** UIKit's rubber band dimension for the picker's table, at that pitch. */
74
74
  const RUBBER_BAND_DIMENSION = picker.geometry.rubberBandDimension * UIKIT_SCALE;
75
75
 
76
+ /**
77
+ * The rows' opacity at the column's edges. At 0.7 the row four from the band
78
+ * keeps 5:1 or more in every shipped theme, a margin over WCAG AA's 4.5:1.
79
+ */
80
+ const FADE_FLOOR = 0.7;
81
+
76
82
  const styles = stylex.create({
77
83
  // The scrolling column's box, band and rows (Wheel.tsx), moved by the
78
84
  // gesture system and the compositor instead of a native scroller.
@@ -92,8 +98,7 @@ const styles = stylex.create({
92
98
  position: 'absolute',
93
99
  inset: 0,
94
100
  pointerEvents: 'none',
95
- maskImage:
96
- 'linear-gradient(to bottom, rgb(0 0 0 / 0.3), rgb(0 0 0) 50%, rgb(0 0 0 / 0.3))',
101
+ maskImage: `linear-gradient(to bottom, rgb(0 0 0 / ${FADE_FLOOR}), rgb(0 0 0) 50%, rgb(0 0 0 / ${FADE_FLOOR}))`,
97
102
  },
98
103
  /**
99
104
  * The selection band: a centred row-height plate behind the rows.