@astryxdesign/core 0.6.0 → 0.6.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/CHANGELOG.md +41 -3
- package/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetSwitcher.d.ts +12 -1
- package/dist/BottomSheet/BottomSheetSwitcher.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetSwitcher.js +44 -15
- package/dist/Breadcrumbs/BreadcrumbItem.d.ts +3 -2
- package/dist/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
- package/dist/Breadcrumbs/BreadcrumbItem.js +3 -7
- package/dist/Center/Center.d.ts +23 -16
- package/dist/Center/Center.d.ts.map +1 -1
- package/dist/Center/Center.js +7 -5
- package/dist/CodeBlock/CodeBlock.js +2 -2
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +12 -2
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +12 -2
- package/dist/Field/Field.d.ts.map +1 -1
- package/dist/Field/Field.js +1 -0
- package/dist/Field/InputClearButton.d.ts +2 -2
- package/dist/Field/InputClearButton.d.ts.map +1 -1
- package/dist/Field/InputClearButton.js +5 -1
- package/dist/Field/PanelSearchInput.d.ts.map +1 -1
- package/dist/Field/PanelSearchInput.js +16 -4
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +12 -1
- package/dist/HoverCard/useHoverCard.js +2 -2
- package/dist/Indicator/CheckboxIndicator.js +2 -2
- package/dist/Indicator/RadioIndicator.js +2 -2
- package/dist/Layer/layerStack.d.ts +10 -0
- package/dist/Layer/layerStack.d.ts.map +1 -1
- package/dist/Layer/layerStack.js +21 -9
- package/dist/Layer/useLayerDismissal.d.ts +2 -3
- package/dist/Layer/useLayerDismissal.d.ts.map +1 -1
- package/dist/Layer/useLayerDismissal.js +2 -3
- package/dist/NavIcon/NavIcon.js +2 -2
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +12 -2
- package/dist/Popover/usePopover.d.ts +3 -2
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +4 -2
- package/dist/ProgressBar/ProgressBar.js +2 -2
- package/dist/ScrollableArea/ScrollableArea.d.ts +79 -0
- package/dist/ScrollableArea/ScrollableArea.d.ts.map +1 -0
- package/dist/ScrollableArea/ScrollableArea.js +144 -0
- package/dist/ScrollableArea/index.d.ts +11 -0
- package/dist/ScrollableArea/index.d.ts.map +1 -0
- package/dist/ScrollableArea/index.js +11 -0
- package/dist/StatusDot/StatusDot.js +2 -2
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +19 -4
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +12 -2
- package/dist/Typeahead/BaseTypeahead.d.ts +21 -14
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.js +56 -20
- package/dist/astryx.css +15 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/scrollGeometry.d.ts +24 -0
- package/dist/hooks/scrollGeometry.d.ts.map +1 -0
- package/dist/hooks/scrollGeometry.js +86 -0
- package/dist/hooks/scrollOwnerRegistry.d.ts +15 -0
- package/dist/hooks/scrollOwnerRegistry.d.ts.map +1 -0
- package/dist/hooks/scrollOwnerRegistry.js +24 -0
- package/dist/hooks/useFocusTrap.d.ts +8 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +22 -11
- package/dist/hooks/useScrollableArea.d.ts +51 -0
- package/dist/hooks/useScrollableArea.d.ts.map +1 -0
- package/dist/hooks/useScrollableArea.js +287 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/theme/defineTheme.d.ts +2 -6
- package/dist/theme/defineTheme.d.ts.map +1 -1
- package/dist/theme/defineTheme.js +1 -1
- package/dist/theme/derivedVarRegistry.js +1 -1
- package/dist/theme/localTokens.d.ts +8 -11
- package/dist/theme/localTokens.d.ts.map +1 -1
- package/dist/theme/localTokens.js +17 -71
- package/dist/theme/themeAdaptations.d.ts.map +1 -1
- package/dist/theme/themeAdaptations.js +4 -4
- package/dist/utils/themeProps.d.ts +10 -10
- package/dist/utils/themeProps.d.ts.map +1 -1
- package/dist/utils/themeProps.js +27 -10
- package/locales/en.json +16 -0
- package/locales/pseudo.json +12 -0
- package/package.json +7 -2
- package/src/AppShell/AppShell.test.tsx +36 -0
- package/src/AppShell/AppShell.tsx +4 -1
- package/src/AspectRatio/AspectRatio.doc.mjs +3 -3
- package/src/Banner/Banner.test.tsx +3 -1
- package/src/BottomSheet/BottomSheetSwitcher.doc.mjs +56 -1
- package/src/BottomSheet/BottomSheetSwitcher.spec.md +211 -0
- package/src/BottomSheet/BottomSheetSwitcher.test.tsx +134 -2
- package/src/BottomSheet/BottomSheetSwitcher.tsx +43 -20
- package/src/Breadcrumbs/BreadcrumbItem.doc.mjs +10 -5
- package/src/Breadcrumbs/BreadcrumbItem.spec.md +225 -0
- package/src/Breadcrumbs/BreadcrumbItem.tsx +8 -13
- package/src/Breadcrumbs/Breadcrumbs.doc.mjs +2 -2
- package/src/Breadcrumbs/Breadcrumbs.test.tsx +49 -2
- package/src/Center/Center.doc.mjs +32 -28
- package/src/Center/Center.spec.md +225 -0
- package/src/Center/Center.test.tsx +42 -4
- package/src/Center/Center.tsx +24 -17
- package/src/Chat/ChatSystemMessage.test.tsx +2 -9
- package/src/CodeBlock/CodeBlock.doc.mjs +2 -2
- package/src/CodeBlock/CodeBlock.tsx +2 -2
- package/src/DateInput/DateInput.test.tsx +4 -4
- package/src/DateInput/DateInput.tsx +15 -4
- package/src/DateRangeInput/DateRangeInput.test.tsx +2 -2
- package/src/DateTimeInput/DateTimeInput.test.tsx +6 -4
- package/src/DateTimeInput/DateTimeInput.tsx +18 -7
- package/src/DropdownMenu/DropdownMenuSelectable.test.tsx +4 -77
- package/src/Field/Field.test.tsx +42 -0
- package/src/Field/Field.tsx +6 -0
- package/src/Field/InputClearButton.test.tsx +35 -1
- package/src/Field/InputClearButton.tsx +7 -3
- package/src/Field/PanelSearchInput.tsx +21 -8
- package/src/FieldStatus/FieldStatus.spec.md +27 -17
- package/src/FieldStatus/FieldStatus.test.tsx +7 -5
- package/src/FieldStatus/__tests__/StatusMessage.a11y.chromium.spec.ts +198 -0
- package/src/FieldStatus/__tests__/StatusMessage.a11y.known-failures.ts +13 -0
- package/src/FieldStatus/__tests__/StatusMessage.a11y.renders.tsx +305 -0
- package/src/FieldStatus/__tests__/StatusMessage.a11y.states.ts +317 -0
- package/src/FieldStatus/__tests__/StatusMessage.a11y.test.tsx +155 -0
- package/src/FileInput/FileInput.tsx +10 -1
- package/src/FormLayout/__snapshots__/FormLayout.test.tsx.snap +3 -3
- package/src/HoverCard/HoverCard.doc.mjs +4 -4
- package/src/HoverCard/useHoverCard.tsx +2 -2
- package/src/Indicator/CheckboxIndicator.tsx +2 -2
- package/src/Indicator/Indicator.doc.mjs +2 -2
- package/src/Indicator/Indicator.test.tsx +1 -1
- package/src/Indicator/RadioIndicator.tsx +2 -2
- package/src/Layer/layerStack.ts +20 -9
- package/src/Layer/useLayerDismissal.ts +2 -3
- package/src/MultiSelector/MultiSelector.test.tsx +4 -4
- package/src/NavIcon/NavIcon.doc.mjs +4 -4
- package/src/NavIcon/NavIcon.tsx +2 -2
- package/src/NumberInput/NumberInput.tsx +18 -7
- package/src/Popover/Popover.doc.mjs +10 -10
- package/src/Popover/Popover.spec.md +55 -65
- package/src/Popover/Popover.test.tsx +29 -0
- package/src/Popover/usePopover.doc.mjs +4 -4
- package/src/Popover/usePopover.tsx +7 -4
- package/src/ProgressBar/ProgressBar.doc.mjs +4 -4
- package/src/ProgressBar/ProgressBar.test.tsx +1 -31
- package/src/ProgressBar/ProgressBar.tsx +2 -2
- package/src/RadioList/RadioList.test.tsx +5 -144
- package/src/RadioList/__tests__/RadioGroup.a11y.chromium.spec.ts +255 -0
- package/src/RadioList/__tests__/RadioGroup.a11y.known-failures.ts +12 -0
- package/src/RadioList/__tests__/RadioGroup.a11y.renders.tsx +232 -0
- package/src/RadioList/__tests__/RadioGroup.a11y.states.ts +503 -0
- package/src/RadioList/__tests__/RadioGroup.a11y.test.tsx +217 -0
- package/src/ScrollableArea/ScrollableArea.doc.mjs +100 -0
- package/src/ScrollableArea/ScrollableArea.spec.md +189 -0
- package/src/ScrollableArea/ScrollableArea.test.tsx +299 -0
- package/src/ScrollableArea/ScrollableArea.tsx +259 -0
- package/src/ScrollableArea/index.ts +26 -0
- package/src/ScrollableArea/modules/useScrollableArea.spec.md +121 -0
- package/src/SegmentedControl/SegmentedControl.test.tsx +5 -172
- package/src/Selector/Selector.test.tsx +4 -4
- package/src/Spinner/Spinner.test.tsx +0 -18
- package/src/StatusDot/StatusDot.doc.mjs +4 -4
- package/src/StatusDot/StatusDot.tsx +2 -2
- package/src/TabList/TabList.test.tsx +5 -9
- package/src/TabList/__tests__/Tabs.a11y.chromium.spec.ts +191 -0
- package/src/TabList/__tests__/Tabs.a11y.known-failures.ts +45 -0
- package/src/TabList/__tests__/Tabs.a11y.renders.tsx +92 -0
- package/src/TabList/__tests__/Tabs.a11y.states.ts +247 -0
- package/src/TabList/__tests__/Tabs.a11y.test.tsx +153 -0
- package/src/Table/Table.doc.mjs +2 -2
- package/src/TextArea/TextArea.doc.mjs +4 -4
- package/src/TextArea/TextArea.tsx +2 -2
- package/src/TextInput/TextInput.doc.mjs +2 -1
- package/src/TextInput/TextInput.test.tsx +94 -0
- package/src/TextInput/TextInput.tsx +22 -6
- package/src/TimeInput/TimeInput.tsx +18 -7
- package/src/Toast/ToastViewport.test.tsx +1 -39
- package/src/Typeahead/BaseTypeahead.doc.mjs +229 -33
- package/src/Typeahead/BaseTypeahead.spec.md +269 -0
- package/src/Typeahead/BaseTypeahead.test.tsx +200 -0
- package/src/Typeahead/BaseTypeahead.tsx +99 -30
- package/src/hooks/index.ts +13 -0
- package/src/hooks/scrollGeometry.ts +155 -0
- package/src/hooks/scrollOwnerRegistry.ts +47 -0
- package/src/hooks/useFocusTrap.ts +22 -11
- package/src/hooks/useFocusTrapEscapeShim.test.tsx +4 -3
- package/src/hooks/useScrollableArea.doc.mjs +108 -0
- package/src/hooks/useScrollableArea.test.tsx +437 -0
- package/src/hooks/useScrollableArea.ts +469 -0
- package/src/index.ts +1 -0
- package/src/theme/defineTheme.test.ts +65 -105
- package/src/theme/defineTheme.ts +3 -9
- package/src/theme/derivedVarRegistry.ts +1 -1
- package/src/theme/localTokens.ts +25 -96
- package/src/theme/publicThemeHelperContract.test.ts +2 -2
- package/src/theme/themeAdaptations.test.ts +16 -42
- package/src/theme/themeAdaptations.ts +6 -9
- package/src/utils/themeProps.test.ts +29 -10
- package/src/utils/themeProps.ts +36 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @xds/core
|
|
2
2
|
|
|
3
|
+
# 0.6.1
|
|
4
|
+
|
|
5
|
+
#### New Features
|
|
6
|
+
|
|
7
|
+
- Remove the prefix requirement from theme-local tokens (#6285)
|
|
8
|
+
- Add ScrollableArea and useScrollableArea for accessible, logical-axis native scrolling with explicit overscroll policy. (#6262)
|
|
9
|
+
Scrollable viewports now become keyboard reachable only while content effectively overflows, preserve logical edge state across writing modes, apply contained overscroll only on active axes, avoid capturing Sticky while fitting unless explicitly requested, expose standard container sizing props, and integrate optional content padding plus opt-in full bleed with the shared container geometry system.
|
|
10
|
+
|
|
11
|
+
#### Fixes
|
|
12
|
+
|
|
13
|
+
- BaseTypeahead: preserve input props and keep results accessible in narrow layouts (#6179)
|
|
14
|
+
BaseTypeahead now forwards its inherited DOM and styling props to the combobox input, preserves native input attributes unless a defined legacy alias overrides them, keeps empty result lists valid for assistive technology, counts visible characters for `minQueryLength`, and keeps both the popup and long result content within viewport gutters.
|
|
15
|
+
- BottomSheetSwitcher: let the topmost nested layer handle Escape before a non-modal flow. (#6184)
|
|
16
|
+
- BreadcrumbItem preserves valid outside focus on menu light dismiss and labels menus from rich trigger content (#6206)
|
|
17
|
+
- Center: preserve component-owned axis reflection and correct the horizontal-centering example. (#6207)
|
|
18
|
+
- Localize Chart accessibility text and complete its consumer guidance. (#6247)
|
|
19
|
+
- defer clear focus restoration for pointer/touch taps to prevent page scroll jumps while preserving synchronous focus restoration on keyboard activation and properly composing `onPointerDown` in `InputClearButton` (#5440)
|
|
20
|
+
- Prefer canonical component target names in maintained themes and new examples while preserving deprecated runtime aliases and released bare prop/state selector classes through the 0.7.0 removal window. Theme discovery labels deprecated targets, theme build warns with each exact canonical replacement, and `astryx upgrade --apply` provides the forward-compatible bare-selector migration. (#6126)
|
|
21
|
+
- Field inputs no longer paint above the sticky AppShell header while scrolling (#5689). Field now contains its local stacking layers (the input surface's z-index and the attached status layer) behind an `isolation: isolate` boundary on the field surface, so they cannot compete with page-level stacking; the AppShell header keeps its normal stacking level.
|
|
22
|
+
- TextInput's `onEnter` no longer fires for the Enter that commits an IME conversion (Japanese/Chinese/Korean input); `onKeyDown` still receives the raw event. (#6082)
|
|
23
|
+
|
|
24
|
+
#### Documentation
|
|
25
|
+
|
|
26
|
+
- AspectRatio: show the `ratio` prop in its JSX form (#6093)
|
|
27
|
+
The best-practice line told readers to express the ratio as a fraction like `16/9` without showing it in JSX, and nothing else in the CLI output gives `ratio` an example. Rewrites it to `ratio={16 / 9}` and names the string form as a type error.
|
|
28
|
+
|
|
29
|
+
#### Contributors
|
|
30
|
+
|
|
31
|
+
Thanks to everyone who contributed to this release:
|
|
32
|
+
|
|
33
|
+
- @cixzhang
|
|
34
|
+
- @Cypher-Aura-19
|
|
35
|
+
- @Geervan
|
|
36
|
+
- @Kyujenius
|
|
37
|
+
- @ManoharPaturi
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
3
41
|
# 0.6.0
|
|
4
42
|
|
|
5
43
|
#### Breaking Changes
|
|
@@ -595,7 +633,7 @@ Thanks to everyone who contributed to this release:
|
|
|
595
633
|
|
|
596
634
|
Measured on hover, same story, before and after: `2` tooltips shown to the user, then `1`.
|
|
597
635
|
|
|
598
|
-
- Seven theme target roots that ran a compound component name together are deprecated onto the `<component-kebab>-<part>` spelling the component's name implies: `codeblock` → `code-block` (with `-copy-button`, `-header`, `-title`), `progressbar` → `progress-bar` (with `-fill`, `-mark`, `-track`), `hovercard` → `hover-card`, `statusdot` → `status-dot`, `textarea` → `text-area`, `navicon` → `nav-icon`, and Table's second root `base-table` → `table` (both named the same `<table>` element). A `defineTheme` key that matches no target fails silently — no error, no warning, the rule never emits — so someone who read `ProgressBar` and wrote `'progress-bar'` got nothing and no explanation. Nothing breaks: every component renders both classes and both keys resolve, including the derived vars a renamed key expands into.
|
|
636
|
+
- Seven theme target roots that ran a compound component name together are deprecated onto the `<component-kebab>-<part>` spelling the component's name implies: `codeblock` → `code-block` (with `-copy-button`, `-header`, `-title`), `progressbar` → `progress-bar` (with `-fill`, `-mark`, `-track`), `hovercard` → `hover-card`, `statusdot` → `status-dot`, `textarea` → `text-area`, `navicon` → `nav-icon`, and Table's second root `base-table` → `table` (both named the same `<table>` element). A `defineTheme` key that matches no target fails silently — no error, no warning, the rule never emits — so someone who read `ProgressBar` and wrote `'progress-bar'` got nothing and no explanation. Nothing breaks: every component renders both classes and both keys resolve, including the derived vars a renamed key expands into. New themes should use the canonical spellings; the deprecated aliases remain supported. (#5449)
|
|
599
637
|
- Toast fits narrow and safe-area viewports, aligns wrapped actions and dismissal, uses edge-directed entrance and exit motion, exposes the Notifications landmark only while populated, and keeps exactly the viewport gutter below the final toast (#5353, #5460)
|
|
600
638
|
Inter-toast spacing is 8px, while the visual bottom no longer adds a trailing toast gap on top of viewport padding. Placement, visible-stack limits, auto-hide defaults, announcement semantics, and dismissal reasons are unchanged.
|
|
601
639
|
- TreeList: forward `aria-label`/`aria-labelledby` to the `role="tree"` element so a tree can be named (#5493)
|
|
@@ -1215,7 +1253,7 @@ Thanks to everyone who contributed to this release:
|
|
|
1215
1253
|
- DateInput, DateRangeInput, and DateTimeInput now accept a `weekStartsOn` prop that sets the first day of the week in the calendar popover (0 = Sunday … 6 = Saturday, or a three-letter day name like `"mon"`). It forwards to the underlying Calendar, whose default stays Sunday, so existing usage is unchanged. (#4745)
|
|
1216
1254
|
- Selector, MultiSelector and Typeahead expose their empty ("No results found") state as a themeable target (#4756, #4862) — `astryx-selector-empty-state`, `astryx-multi-selector-empty-state` and `astryx-typeahead-empty-state`. Themes can restyle the empty state without the fragile structural selectors consumers previously had to reach for. (The Selector search field is a TextInput, so its placeholder is reachable today via `.astryx-text-input::placeholder`; a Selector-scoped placeholder seam would require a TextInput change and is left as a possible follow-up.)
|
|
1217
1255
|
- EmptyState: add `empty-state-title` and `empty-state-description` theme targets on the title heading and the description. A theme can now restyle the title and description directly (e.g. font size, color, per `variant`) instead of reaching them through structural `> div:has(> :is(h1..h6))` selectors that reverse-engineer which element is which. (#4942)
|
|
1218
|
-
- Every clearable input now renders its clear (✕) affordance through the shared `InputClearButton`, so the glyph is themeable in one place via the `astryx-input-clear-icon` target instead of a per-component target or a fragile descendant selector. The component-specific `astryx-{date-input,date-range-input,selector,multi-selector}-clear-icon` targets
|
|
1256
|
+
- Every clearable input now renders its clear (✕) affordance through the shared `InputClearButton`, so the glyph is themeable in one place via the `astryx-input-clear-icon` target instead of a per-component target or a fragile descendant selector. The component-specific `astryx-{date-input,date-range-input,selector,multi-selector}-clear-icon` targets remain supported as deprecated aliases; new themes should use `input-clear-icon`. The clear glyph is now a consistent secondary-color icon with a ghost-button hover affordance across the whole family. (#4876)
|
|
1219
1257
|
- The input family (TextInput, NumberInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, TextArea, Tokenizer) now reflects its disabled state on the root theming target as `data-disabled="disabled"` plus a `.disabled` variant (only when disabled), so a theme can gate its own hover/border treatment on the disabled state — mirroring the existing `status`/`size` reflection — instead of relying on structural `:has(input:disabled)` CSS. This closes a documented theming gap for downstream consumers. (#4794)
|
|
1220
1258
|
- useLayer takes an `offset` for clearance from the anchor, derived from the resolved placement, and the layer wrappers stop hand-rolling it (#4803)
|
|
1221
1259
|
- DropdownMenu rows take two new options (#4953). `DropdownMenuItem` takes `hasCloseOnSelect`, so a plain action can report its result on the item instead of closing the menu. `DropdownMenuItemData` and `DropdownMenuSection` take an optional `id`, the row's stable React key for a menu whose items reorder or filter (also reaching MoreMenu, ContextMenu and Breadcrumbs, which share the type).
|
|
@@ -1229,7 +1267,7 @@ Thanks to everyone who contributed to this release:
|
|
|
1229
1267
|
- Table: `contextMenuActions` now accept a `variant: 'destructive'` for dangerous row/column actions (e.g. Delete), rendered in the error color to match ContextMenu. (#4864)
|
|
1230
1268
|
- TextArea: theme the text inset by writing `paddingInline` on the `textarea` component key — it now drives the internal `--_textarea-inline-padding` var instead of landing on the wrapper. The wrapper stays flush (`padding: 0`), so the native resize grip keeps its true-corner position and the start icon, status, and character counter stay aligned to the text. Adds a `replaces` option to derived var entries for the general "map a property onto a var without emitting it on the class element" case. (#4793)
|
|
1231
1269
|
- Add themeable indicators — the componentized check, checkbox, and radio visuals. `defineTheme({indicators: {check: RadioIndicator}})` replaces one by name, and every component drawing it follows. (#4712)
|
|
1232
|
-
Theme targets now follow the component-name convention: `checkbox-indicator`, `radio-indicator`, `radio-indicator-dot`. The old names (`checkbox`, `radio`, `radio-dot`)
|
|
1270
|
+
Theme targets now follow the component-name convention: `checkbox-indicator`, `radio-indicator`, `radio-indicator-dot`. The old names (`checkbox`, `radio`, `radio-dot`) remain emitted on the same element so existing themes keep working. New themes should use the canonical names; deprecation does not set an automatic removal deadline.
|
|
1233
1271
|
|
|
1234
1272
|
Migration: menu radios use those shared targets now. `dropdown-menu-radio-dot` is removed — target `radio-indicator-dot`; `astryx upgrade` rewrites it for you.
|
|
1235
1273
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAmBf,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAQ5C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAwBhD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,MAAM,CAAC;AAE9D;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,kBAAkB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,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React context, StyleX, theme tokens, focus/scroll-lock hooks, BottomSheetSwitcherContext
|
|
3
|
+
* @input Uses React context, StyleX, theme tokens, shared layer dismissal, focus/scroll-lock hooks, BottomSheetSwitcherContext
|
|
4
4
|
* @output Exports BottomSheetSwitcher and BottomSheetSwitcherProps
|
|
5
5
|
* @position Core switcher for mutually exclusive BottomSheet flows
|
|
6
6
|
*
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* - /packages/core/src/BottomSheet/BottomSheet.tsx
|
|
21
21
|
* - /packages/core/src/BottomSheet/BottomSheetEdgeTint.tsx
|
|
22
22
|
* - /packages/core/src/BottomSheet/BottomSheetSwitcher.doc.mjs
|
|
23
|
+
* - /packages/core/src/BottomSheet/BottomSheetSwitcher.spec.md
|
|
23
24
|
* - /packages/core/src/BottomSheet/BottomSheetSwitcher.test.tsx
|
|
24
25
|
* - /packages/core/src/BottomSheet/index.ts
|
|
25
26
|
* - /apps/storybook/stories/BottomSheetSwitcher.stories.tsx
|
|
@@ -54,6 +55,16 @@ export interface BottomSheetSwitcherProps extends BaseProps<HTMLDialogElement> {
|
|
|
54
55
|
* Coordinates a set of BottomSheets so zero or one is active at a time inside
|
|
55
56
|
* one shared native dialog. During a handoff the previous panel stays visible
|
|
56
57
|
* and inert beneath the entering panel, then fades after motion completes.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```
|
|
61
|
+
* <BottomSheetSwitcher
|
|
62
|
+
* activeSheet={activeSheet}
|
|
63
|
+
* onActiveSheetChange={setActiveSheet}>
|
|
64
|
+
* <BottomSheet sheetId="details" label="Details">…</BottomSheet>
|
|
65
|
+
* <BottomSheet sheetId="confirm" label="Confirm">…</BottomSheet>
|
|
66
|
+
* </BottomSheetSwitcher>
|
|
67
|
+
* ```
|
|
57
68
|
*/
|
|
58
69
|
export declare function BottomSheetSwitcher({ activeSheet, onActiveSheetChange, hasScrim, children, ref, xstyle, className, style, onCancel, onClick, onKeyDown, ...props }: BottomSheetSwitcherProps): import("react").JSX.Element;
|
|
59
70
|
export declare namespace BottomSheetSwitcher {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetSwitcher.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetSwitcher.tsx"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"BottomSheetSwitcher.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetSwitcher.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAuI5C,MAAM,WAAW,wBAAyB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC5E,iDAAiD;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAEnC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE9D;;;;;OAKG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,iEAAiE;IACjE,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEtD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0DAA0D;IAC1D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,mBAAmB,EACnB,QAAe,EACf,QAAQ,EACR,GAAG,EACH,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAma1B;yBAhbe,mBAAmB"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file BottomSheetSwitcher.tsx
|
|
7
|
-
* @input Uses React context, StyleX, theme tokens, focus/scroll-lock hooks, BottomSheetSwitcherContext
|
|
7
|
+
* @input Uses React context, StyleX, theme tokens, shared layer dismissal, focus/scroll-lock hooks, BottomSheetSwitcherContext
|
|
8
8
|
* @output Exports BottomSheetSwitcher and BottomSheetSwitcherProps
|
|
9
9
|
* @position Core switcher for mutually exclusive BottomSheet flows
|
|
10
10
|
*
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
* - /packages/core/src/BottomSheet/BottomSheet.tsx
|
|
25
25
|
* - /packages/core/src/BottomSheet/BottomSheetEdgeTint.tsx
|
|
26
26
|
* - /packages/core/src/BottomSheet/BottomSheetSwitcher.doc.mjs
|
|
27
|
+
* - /packages/core/src/BottomSheet/BottomSheetSwitcher.spec.md
|
|
27
28
|
* - /packages/core/src/BottomSheet/BottomSheetSwitcher.test.tsx
|
|
28
29
|
* - /packages/core/src/BottomSheet/index.ts
|
|
29
30
|
* - /apps/storybook/stories/BottomSheetSwitcher.stories.tsx
|
|
@@ -33,8 +34,12 @@ import { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
|
33
34
|
import * as stylex from '@stylexjs/stylex';
|
|
34
35
|
import "../theme/tokens.stylex.js";
|
|
35
36
|
import { colorVars, durationVars, easeVars } from "../theme/tokens.stylex.js";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
37
|
+
import { useScrollLock } from "../hooks/index.js";
|
|
38
|
+
import { useFocusTrap, useFocusTrapEscapeCompatibilitySignal } from "../hooks/useFocusTrap.js";
|
|
39
|
+
import { LayerDepthProvider } from "../Layer/LayerDepthContext.js";
|
|
40
|
+
import { dispatchLayerEscapeKeyDown } from "../Layer/layerStack.js";
|
|
41
|
+
import { useLayerDismissal } from "../Layer/useLayerDismissal.js";
|
|
42
|
+
import { composeEventHandlers, mergeProps } from "../utils/index.js";
|
|
38
43
|
import { BottomSheetEdgeTint } from "./BottomSheetEdgeTint.js";
|
|
39
44
|
import { BottomSheetSwitcherContext } from "./BottomSheetSwitcherContext.js";
|
|
40
45
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
@@ -122,6 +127,16 @@ function alignmentOffsetForElements(enteringElement, retainedElement) {
|
|
|
122
127
|
* Coordinates a set of BottomSheets so zero or one is active at a time inside
|
|
123
128
|
* one shared native dialog. During a handoff the previous panel stays visible
|
|
124
129
|
* and inert beneath the entering panel, then fades after motion completes.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```
|
|
133
|
+
* <BottomSheetSwitcher
|
|
134
|
+
* activeSheet={activeSheet}
|
|
135
|
+
* onActiveSheetChange={setActiveSheet}>
|
|
136
|
+
* <BottomSheet sheetId="details" label="Details">…</BottomSheet>
|
|
137
|
+
* <BottomSheet sheetId="confirm" label="Confirm">…</BottomSheet>
|
|
138
|
+
* </BottomSheetSwitcher>
|
|
139
|
+
* ```
|
|
125
140
|
*/
|
|
126
141
|
export function BottomSheetSwitcher({
|
|
127
142
|
activeSheet,
|
|
@@ -175,8 +190,20 @@ export function BottomSheetSwitcher({
|
|
|
175
190
|
const {
|
|
176
191
|
containerRef
|
|
177
192
|
} = useFocusTrap({
|
|
178
|
-
isActive: isModal
|
|
179
|
-
|
|
193
|
+
isActive: isModal
|
|
194
|
+
});
|
|
195
|
+
// Before the shared dismissal stack, this modal trap supplied `onEscape`, so
|
|
196
|
+
// the released compatibility shim reported it as active. Keep that signal
|
|
197
|
+
// without registering the switcher twice in the one shared stack.
|
|
198
|
+
useFocusTrapEscapeCompatibilitySignal(isModal);
|
|
199
|
+
const {
|
|
200
|
+
shouldDismissOnCloseRequest
|
|
201
|
+
} = useLayerDismissal({
|
|
202
|
+
isActive: isFlowVisible,
|
|
203
|
+
escapeBehavior: allowsEscapeDismiss ? 'close' : 'block',
|
|
204
|
+
onDismiss: dismissOnEscape,
|
|
205
|
+
getContainer: () => dialogRef.current,
|
|
206
|
+
isPresent: () => dialogRef.current?.open ?? false
|
|
180
207
|
});
|
|
181
208
|
useScrollLock(isModal);
|
|
182
209
|
|
|
@@ -377,17 +404,17 @@ export function BottomSheetSwitcher({
|
|
|
377
404
|
const activeLabel = (activeSheet == null ? null : sheetLabels.get(activeSheet)) ?? (visibleTransition.retainedSheet == null ? undefined : sheetLabels.get(visibleTransition.retainedSheet));
|
|
378
405
|
const handleCancel = useCallback(event => {
|
|
379
406
|
event.preventDefault();
|
|
380
|
-
|
|
381
|
-
}, [dismissOnEscape]);
|
|
382
|
-
const handleKeyDown = useCallback(event => {
|
|
383
|
-
// Modal Escape is owned by useFocusTrap so nested traps can win. A
|
|
384
|
-
// non-modal switcher has no outer trap, so retain local dismissal while
|
|
385
|
-
// deferring to an active nested layer and ignoring IME cancellation.
|
|
386
|
-
if (!isModal && event.key === 'Escape' && !isImeKeyEvent(event.nativeEvent) && !hasActiveFocusTrapEscape()) {
|
|
387
|
-
event.preventDefault();
|
|
407
|
+
if (shouldDismissOnCloseRequest()) {
|
|
388
408
|
dismissOnEscape();
|
|
389
409
|
}
|
|
390
|
-
}, [dismissOnEscape,
|
|
410
|
+
}, [dismissOnEscape, shouldDismissOnCloseRequest]);
|
|
411
|
+
const handleKeyDown = useCallback(event => {
|
|
412
|
+
// A consumer may stop propagation without claiming Escape. Route that
|
|
413
|
+
// unprevented press now so the shared stack still chooses the top layer;
|
|
414
|
+
// its preventDefault marker makes the document listener a no-op if the
|
|
415
|
+
// event does continue bubbling.
|
|
416
|
+
dispatchLayerEscapeKeyDown(event.nativeEvent);
|
|
417
|
+
}, []);
|
|
391
418
|
const handleClick = useCallback(event => {
|
|
392
419
|
if (hasScrim && event.target === event.currentTarget) {
|
|
393
420
|
dismissOnLightInteraction();
|
|
@@ -410,7 +437,9 @@ export function BottomSheetSwitcher({
|
|
|
410
437
|
...(activeSheetPurpose === 'required' ? {
|
|
411
438
|
role: 'alertdialog'
|
|
412
439
|
} : undefined),
|
|
413
|
-
children: [
|
|
440
|
+
children: [/*#__PURE__*/_jsx(LayerDepthProvider, {
|
|
441
|
+
children: children
|
|
442
|
+
}), /*#__PURE__*/_jsx(BottomSheetEdgeTint, {})]
|
|
414
443
|
})
|
|
415
444
|
});
|
|
416
445
|
}
|
|
@@ -45,8 +45,9 @@ export interface BreadcrumbItemProps extends Omit<BaseProps<HTMLLIElement>, 'onC
|
|
|
45
45
|
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
46
46
|
/**
|
|
47
47
|
* Marks this item as the current page. Renders as a span with aria-current="page".
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* When omitted, the last item is auto-detected as current if no item is
|
|
49
|
+
* explicitly current. Pass `false` to opt this item out of auto-detection.
|
|
50
|
+
* @default undefined
|
|
50
51
|
*/
|
|
51
52
|
isCurrent?: boolean;
|
|
52
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbItem.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/BreadcrumbItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EAOZ,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAErD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAS5C,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AAOrE,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,SAAS,CAAC,aAAa,CAAC,EACxB,SAAS,CACV;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC/B;;;;OAIG;IACH,EAAE,CAAC,EAAE,iBAAiB,CAAC;I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;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAqID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EAAE,aAAa,EACxB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,aAAa,EAAE,MAAM,EACrB,GAAG,IAAI,EACR,EAAE,mBAAmB,qBAgMrB;yBA/Me,cAAc"}
|
|
@@ -247,7 +247,6 @@ export function BreadcrumbItem({
|
|
|
247
247
|
menuSize: resolvedMenuSize,
|
|
248
248
|
variant: ctx.variant,
|
|
249
249
|
isCurrent: true,
|
|
250
|
-
label: children,
|
|
251
250
|
children: content
|
|
252
251
|
}) : /*#__PURE__*/_jsx("span", {
|
|
253
252
|
...{
|
|
@@ -280,7 +279,6 @@ export function BreadcrumbItem({
|
|
|
280
279
|
menu: menu,
|
|
281
280
|
menuSize: resolvedMenuSize,
|
|
282
281
|
variant: ctx.variant,
|
|
283
|
-
label: children,
|
|
284
282
|
children: content
|
|
285
283
|
}) : href != null ? /*#__PURE__*/_jsx(LinkComponent, {
|
|
286
284
|
ref: contentRef,
|
|
@@ -324,19 +322,16 @@ BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
|
324
322
|
function BreadcrumbMenuTrigger({
|
|
325
323
|
ref,
|
|
326
324
|
children,
|
|
327
|
-
label,
|
|
328
325
|
menu,
|
|
329
326
|
menuSize,
|
|
330
327
|
variant,
|
|
331
328
|
isCurrent = false
|
|
332
329
|
}) {
|
|
333
330
|
const menuId = useId();
|
|
331
|
+
const triggerId = useId();
|
|
334
332
|
const buttonRef = useRef(null);
|
|
335
333
|
const isSupporting = variant === 'supporting';
|
|
336
334
|
const popover = usePopover({
|
|
337
|
-
onHide: useCallback(() => {
|
|
338
|
-
buttonRef.current?.focus();
|
|
339
|
-
}, []),
|
|
340
335
|
hasLightDismiss: true,
|
|
341
336
|
hasCloseButton: false,
|
|
342
337
|
hasAutoFocus: false,
|
|
@@ -421,6 +416,7 @@ function BreadcrumbMenuTrigger({
|
|
|
421
416
|
onClick: handleClick,
|
|
422
417
|
onKeyDown: handleKeyDown,
|
|
423
418
|
...popover.triggerProps,
|
|
419
|
+
id: triggerId,
|
|
424
420
|
"aria-haspopup": "menu",
|
|
425
421
|
"aria-controls": menuId,
|
|
426
422
|
"aria-current": isCurrent ? 'page' : undefined,
|
|
@@ -448,7 +444,7 @@ function BreadcrumbMenuTrigger({
|
|
|
448
444
|
ref: listRef,
|
|
449
445
|
id: menuId,
|
|
450
446
|
role: "menu",
|
|
451
|
-
"aria-
|
|
447
|
+
"aria-labelledby": triggerId,
|
|
452
448
|
onKeyDown: listKeyDown,
|
|
453
449
|
...mergeProps(themeProps('breadcrumb-menu'), {
|
|
454
450
|
className: "x9f619 x78zum5 xdt5ytf x1lsbc85 xuyqlj2 x1odjw0f x1fcsqxe xgory14 x9epnlk x1n97fys x87ps6o"
|
package/dist/Center/Center.d.ts
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* @file Center.tsx
|
|
3
3
|
* @input Uses React, StyleX for centering styles, Layout padding.stylex for spacing-scale padding
|
|
4
4
|
* @output Exports Center component and CenterProps
|
|
5
|
-
* @position Center component for
|
|
5
|
+
* @position Center component for one- or two-axis flex centering
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update these files to stay in sync:
|
|
8
8
|
* - /packages/core/src/Center/Center.doc.mjs
|
|
9
|
+
* - /packages/core/src/Center/Center.spec.md
|
|
9
10
|
* - /packages/core/src/Center/Center.test.tsx
|
|
10
11
|
* - /apps/storybook/stories/Center.stories.tsx
|
|
11
12
|
* - /packages/cli/assets/templates/blocks/components/Center/ (showcase blocks)
|
|
@@ -18,10 +19,13 @@ export interface CenterProps extends BaseProps<HTMLDivElement> {
|
|
|
18
19
|
/** Ref forwarded to the root element */
|
|
19
20
|
ref?: React.Ref<HTMLDivElement>;
|
|
20
21
|
/**
|
|
21
|
-
* Center
|
|
22
|
-
* - `both`: Center
|
|
23
|
-
* - `horizontal`: Center
|
|
24
|
-
* - `vertical`: Center
|
|
22
|
+
* Center mode. In horizontal writing:
|
|
23
|
+
* - `both`: Center on the flex main and cross axes (default)
|
|
24
|
+
* - `horizontal`: Center on the flex main/inline axis
|
|
25
|
+
* - `vertical`: Center on the flex cross/block axis
|
|
26
|
+
*
|
|
27
|
+
* In vertical writing, the current single-axis behavior still follows those
|
|
28
|
+
* logical flex axes rather than the physical names. `both` centers both axes.
|
|
25
29
|
* @default 'both'
|
|
26
30
|
*/
|
|
27
31
|
axis?: CenterAxis;
|
|
@@ -53,34 +57,36 @@ export interface CenterProps extends BaseProps<HTMLDivElement> {
|
|
|
53
57
|
*/
|
|
54
58
|
padding?: SpacingStep;
|
|
55
59
|
/**
|
|
56
|
-
*
|
|
60
|
+
* Logical inline-axis padding, using the spacing scale.
|
|
57
61
|
* Overrides `padding` on the inline axis when both are set.
|
|
58
62
|
*/
|
|
59
63
|
paddingInline?: SpacingStep;
|
|
60
64
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
65
|
+
* Logical inline-start padding, using the spacing scale. The resolved
|
|
66
|
+
* physical edge depends on writing mode and direction.
|
|
63
67
|
* Overrides `paddingInline` and `padding` on that edge only.
|
|
64
68
|
*/
|
|
65
69
|
paddingInlineStart?: SpacingStep;
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
71
|
+
* Logical inline-end padding, using the spacing scale. The resolved
|
|
72
|
+
* physical edge depends on writing mode and direction.
|
|
69
73
|
* Overrides `paddingInline` and `padding` on that edge only.
|
|
70
74
|
*/
|
|
71
75
|
paddingInlineEnd?: SpacingStep;
|
|
72
76
|
/**
|
|
73
|
-
*
|
|
77
|
+
* Logical block-axis padding, using the spacing scale.
|
|
74
78
|
* Overrides `padding` on the block axis when both are set.
|
|
75
79
|
*/
|
|
76
80
|
paddingBlock?: SpacingStep;
|
|
77
81
|
/**
|
|
78
|
-
*
|
|
82
|
+
* Logical block-start padding, using the spacing scale. The resolved physical
|
|
83
|
+
* edge depends on writing mode.
|
|
79
84
|
* Overrides `paddingBlock` and `padding` on that edge only.
|
|
80
85
|
*/
|
|
81
86
|
paddingBlockStart?: SpacingStep;
|
|
82
87
|
/**
|
|
83
|
-
*
|
|
88
|
+
* Logical block-end padding, using the spacing scale. The resolved physical
|
|
89
|
+
* edge depends on writing mode.
|
|
84
90
|
* Overrides `paddingBlock` and `padding` on that edge only.
|
|
85
91
|
*/
|
|
86
92
|
paddingBlockEnd?: SpacingStep;
|
|
@@ -95,10 +101,11 @@ export interface CenterProps extends BaseProps<HTMLDivElement> {
|
|
|
95
101
|
children: ReactNode;
|
|
96
102
|
}
|
|
97
103
|
/**
|
|
98
|
-
* Center component for centering children
|
|
104
|
+
* Center component for centering children on one or both flex axes.
|
|
99
105
|
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
106
|
+
* In horizontal writing, the single-axis names match physical horizontal and
|
|
107
|
+
* vertical dimensions. In vertical writing, the current single-axis behavior
|
|
108
|
+
* follows flex main/cross axes; `both` still centers on both axes.
|
|
102
109
|
*
|
|
103
110
|
* @example
|
|
104
111
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/Center/Center.tsx"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/Center/Center.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAwC3D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,UA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+4,11 @@
|
|
|
4
4
|
* @file Center.tsx
|
|
5
5
|
* @input Uses React, StyleX for centering styles, Layout padding.stylex for spacing-scale padding
|
|
6
6
|
* @output Exports Center component and CenterProps
|
|
7
|
-
* @position Center component for
|
|
7
|
+
* @position Center component for one- or two-axis flex centering
|
|
8
8
|
*
|
|
9
9
|
* SYNC: When modified, update these files to stay in sync:
|
|
10
10
|
* - /packages/core/src/Center/Center.doc.mjs
|
|
11
|
+
* - /packages/core/src/Center/Center.spec.md
|
|
11
12
|
* - /packages/core/src/Center/Center.test.tsx
|
|
12
13
|
* - /apps/storybook/stories/Center.stories.tsx
|
|
13
14
|
* - /packages/cli/assets/templates/blocks/components/Center/ (showcase blocks)
|
|
@@ -53,10 +54,11 @@ const dynamicStyles = {
|
|
|
53
54
|
}]
|
|
54
55
|
};
|
|
55
56
|
/**
|
|
56
|
-
* Center component for centering children
|
|
57
|
+
* Center component for centering children on one or both flex axes.
|
|
57
58
|
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
59
|
+
* In horizontal writing, the single-axis names match physical horizontal and
|
|
60
|
+
* vertical dimensions. In vertical writing, the current single-axis behavior
|
|
61
|
+
* follows flex main/cross axes; `both` still centers on both axes.
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* ```
|
|
@@ -97,8 +99,8 @@ export function Center({
|
|
|
97
99
|
}), stylex.props(isInline ? styles.inline : styles.base, (axis === 'both' || axis === 'vertical') && styles.alignItemsCenter, (axis === 'both' || axis === 'horizontal') && styles.justifyContentCenter, dynamicStyles.sizing(width ?? null, height ?? null, maxWidth ?? null, minHeight ?? null), resolvedPaddingInlineStart != null && paddingInlineStartStyles[resolvedPaddingInlineStart], resolvedPaddingInlineEnd != null && paddingInlineEndStyles[resolvedPaddingInlineEnd], resolvedPaddingBlockStart != null && paddingBlockStartStyles[resolvedPaddingBlockStart], resolvedPaddingBlockEnd != null && paddingBlockEndStyles[resolvedPaddingBlockEnd], xstyle), className, style);
|
|
98
100
|
return /*#__PURE__*/_jsx("div", {
|
|
99
101
|
ref: ref,
|
|
100
|
-
...stylexProps,
|
|
101
102
|
...props,
|
|
103
|
+
...stylexProps,
|
|
102
104
|
children: children
|
|
103
105
|
});
|
|
104
106
|
}
|
|
@@ -615,8 +615,8 @@ export function CodeBlock({
|
|
|
615
615
|
language,
|
|
616
616
|
container
|
|
617
617
|
},
|
|
618
|
-
// `codeblock` ran the compound name together;
|
|
619
|
-
//
|
|
618
|
+
// `codeblock` ran the compound name together; keep it emitted so
|
|
619
|
+
// existing themes continue to work.
|
|
620
620
|
{
|
|
621
621
|
legacyNames: ['codeblock']
|
|
622
622
|
}), stylex.props(styles.root, dynamicStyles.width(widthProp), containerStyles[container], xstyle), className, style),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../src/DateInput/DateInput.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAS3C,OAAO,EAGL,KAAK,WAAW,EAKhB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AAOlB,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAerB,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAiDlD,QAAA,MAAM,UAAU;;;;;;;;;;;;;EAad,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,eAAe,EACf,MAAM,GAAG,WAAW,GAAG,cAAc,GAAG,aAAa,CACtD,CAAC;AAIF,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,eAAe,IAAI,mBAAmB,GACvC,MA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AC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC;IAEzD;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAEnC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEvB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,EAAE,eAAe,GAAG,CAAC,CAAC,KAAK,EAAE,aAAa,KAAK,MAAM,CAAC,CAAC;IAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC;AA8eD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAc9C;yBAde,SAAS"}
|
|
@@ -304,9 +304,19 @@ function PointerDateField({
|
|
|
304
304
|
}, [isBusy, onChange, changeAction, startTransition, setOptimisticValue]);
|
|
305
305
|
|
|
306
306
|
// Handle clear button click
|
|
307
|
-
const handleClear = useCallback(
|
|
307
|
+
const handleClear = useCallback(e => {
|
|
308
308
|
fireChange(undefined);
|
|
309
|
-
|
|
309
|
+
if (!e || e.detail === 0) {
|
|
310
|
+
inputRef.current?.focus();
|
|
311
|
+
} else {
|
|
312
|
+
// Defer focus restoration past the button's unmount task so iOS Safari
|
|
313
|
+
// and touch browsers don't jump the page scroll to 0 on tap.
|
|
314
|
+
requestAnimationFrame(() => {
|
|
315
|
+
inputRef.current?.focus({
|
|
316
|
+
preventScroll: true
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
}
|
|
310
320
|
}, [fireChange]);
|
|
311
321
|
|
|
312
322
|
// Handle date selection from calendar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeInput.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/DateTimeInput.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAGL,KAAK,WAAW,EAKjB,MAAM,UAAU,CAAC;AAIlB,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AA2BrB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAc9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,KAAK,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,4EAA4E;AAC5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEpE,YAAY,EACV,WAAW,IAAI,mBAAmB,EAClC,eAAe,IAAI,uBAAuB,GAC3C,MAAM,UA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933
933
|
}, [valueParts, hasSeconds, timeIncrement, timeMin, timeMax, fireChange, announce, formatDisplayTime, hasTimeOptions, isEffectivelyDisabled, timePopover, timeOptions, activeTimeIndex, timePendingInput, showTimeOptions, commitTimeOption]);
|
|
934
934
|
|
|
935
935
|
// --- Clear ---
|
|
936
|
-
const handleClear = useCallback(
|
|
936
|
+
const handleClear = useCallback(e => {
|
|
937
937
|
setNativeTimeDraft(undefined);
|
|
938
938
|
fireChange(undefined);
|
|
939
939
|
if (!usesNativePicker) {
|
|
940
|
-
|
|
940
|
+
if (!e || e.detail === 0) {
|
|
941
|
+
dateInputRef.current?.focus();
|
|
942
|
+
} else {
|
|
943
|
+
// Defer focus restoration past the button's unmount task so iOS Safari
|
|
944
|
+
// and touch browsers don't jump the page scroll to 0 on tap.
|
|
945
|
+
requestAnimationFrame(() => {
|
|
946
|
+
dateInputRef.current?.focus({
|
|
947
|
+
preventScroll: true
|
|
948
|
+
});
|
|
949
|
+
});
|
|
950
|
+
}
|
|
941
951
|
}
|
|
942
952
|
}, [fireChange, usesNativePicker]);
|
|
943
953
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/Field/Field.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,KAAK,SAAS,EAAM,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAG9C,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/Field/Field.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,KAAK,SAAS,EAAM,MA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G,QAAQ,CAAC;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,OAAO,EACP,OAAO,EACP,YAAoB,EACpB,aAAa,EACb,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAA0B,EAC1B,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,UAAU,+BA2GZ;yBAjIe,KAAK"}
|
package/dist/Field/Field.js
CHANGED
|
@@ -19,8 +19,8 @@ export interface InputClearButtonProps {
|
|
|
19
19
|
* Extra class(es) for the clear glyph itself, merged onto the shared
|
|
20
20
|
* `astryx-input-clear-icon` target. Used by inputs that shipped a
|
|
21
21
|
* component-specific clear-icon target before the family converged here
|
|
22
|
-
* (e.g. `astryx-date-input-clear-icon`) to keep emitting it for
|
|
23
|
-
*
|
|
22
|
+
* (e.g. `astryx-date-input-clear-icon`) to keep emitting it for backwards
|
|
23
|
+
* compatibility; new callers don't need it.
|
|
24
24
|
*/
|
|
25
25
|
iconClassName?: string;
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputClearButton.d.ts","sourceRoot":"","sources":["../../src/Field/InputClearButton.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,kBAA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,SAAS,CAEX"}
|
|
@@ -56,8 +56,12 @@ function renderInputClearButton({
|
|
|
56
56
|
color: "secondary",
|
|
57
57
|
className: iconClassName != null ? `${iconTargetClassName} ${iconClassName}` : iconTargetClassName
|
|
58
58
|
}),
|
|
59
|
+
onPointerDown: e => {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
onPointerDown?.(e);
|
|
62
|
+
},
|
|
63
|
+
onMouseDown: e => e.preventDefault(),
|
|
59
64
|
onClick: onClick,
|
|
60
|
-
onPointerDown: onPointerDown,
|
|
61
65
|
onClickCapture: onClickCapture,
|
|
62
66
|
isIconOnly: true,
|
|
63
67
|
xstyle: [styles.button, xstyle]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelSearchInput.d.ts","sourceRoot":"","sources":["../../src/Field/PanelSearchInput.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAwB,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAkBtD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA6E5C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,SAAS,CAAC,gBAAgB,CAAC,EAC3B,UAAU,CACX;IACC,iEAAiE;IACjE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE5B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAC;IAEnB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IAEd,kEAAkE;IAClE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,wCAAwC;IACxC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IAEzD,0EAA0E;IAC1E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