@sdxc/ui 2026.9.29 → 2026.10.2
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/README.md +14 -14
- package/dist/animations/keyframes.d.ts +1 -1
- package/dist/animations/scroll.d.ts +1 -1
- package/dist/animations/transitions.d.ts +1 -1
- package/dist/animations/transitions.js +1 -1
- package/dist/behaviors/announcer.d.ts +1 -1
- package/dist/behaviors/announcer.js +1 -1
- package/dist/behaviors/calendar-model.d.ts +1 -1
- package/dist/behaviors/calendar-model.js +1 -1
- package/dist/behaviors/drag-session.d.ts +1 -1
- package/dist/behaviors/drag-session.js +1 -1
- package/dist/behaviors/filter-model.d.ts +1 -1
- package/dist/behaviors/filter-model.js +1 -1
- package/dist/behaviors/resize-session.d.ts +1 -1
- package/dist/behaviors/resize-session.js +1 -1
- package/dist/behaviors/scroll-follow-model.d.ts +1 -1
- package/dist/behaviors/scroll-follow-model.js +1 -1
- package/dist/behaviors/selection-model.d.ts +1 -1
- package/dist/behaviors/selection-model.js +1 -1
- package/dist/behaviors/toaster.d.ts +1 -1
- package/dist/behaviors/toaster.js +1 -1
- package/dist/components/accordion.d.ts +5 -5
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +8 -8
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.d.ts +7 -7
- package/dist/components/alert.js +2 -2
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/attachment.d.ts +10 -10
- package/dist/components/attachment.js +2 -2
- package/dist/components/avatar.d.ts +7 -7
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/badge.js +2 -2
- package/dist/components/breadcrumbs.d.ts +5 -5
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/bubble.d.ts +5 -5
- package/dist/components/bubble.js +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +12 -12
- package/dist/components/calendar.js +2 -2
- package/dist/components/card.d.ts +7 -7
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +8 -8
- package/dist/components/carousel.js +2 -2
- package/dist/components/chart.d.ts +12 -12
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/color-area.d.ts +4 -4
- package/dist/components/color-area.js +2 -2
- package/dist/components/color-field.d.ts +2 -2
- package/dist/components/color-field.js +1 -1
- package/dist/components/color-picker.d.ts +5 -5
- package/dist/components/color-picker.js +2 -2
- package/dist/components/color-slider.d.ts +5 -5
- package/dist/components/color-slider.js +1 -1
- package/dist/components/color-swatch-picker.d.ts +3 -3
- package/dist/components/color-swatch-picker.js +2 -2
- package/dist/components/color-swatch.d.ts +2 -2
- package/dist/components/color-swatch.js +2 -2
- package/dist/components/color-wheel.d.ts +2 -2
- package/dist/components/color-wheel.js +1 -1
- package/dist/components/combobox.d.ts +5 -5
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.d.ts +6 -6
- package/dist/components/command.js +2 -2
- package/dist/components/confirm.d.ts +2 -2
- package/dist/components/confirm.js +1 -1
- package/dist/components/context-menu.d.ts +13 -13
- package/dist/components/context-menu.js +1 -1
- package/dist/components/date-field.d.ts +2 -2
- package/dist/components/date-field.js +1 -1
- package/dist/components/date-picker.d.ts +3 -3
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +3 -3
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/description.d.ts +2 -2
- package/dist/components/description.js +1 -1
- package/dist/components/dialog.d.ts +7 -7
- package/dist/components/dialog.js +1 -1
- package/dist/components/disclosure.d.ts +6 -6
- package/dist/components/disclosure.js +1 -1
- package/dist/components/drawer.d.ts +7 -7
- package/dist/components/drawer.js +1 -1
- package/dist/components/drop-indicator.d.ts +2 -2
- package/dist/components/drop-indicator.js +2 -2
- package/dist/components/drop-zone.d.ts +2 -2
- package/dist/components/drop-zone.js +1 -1
- package/dist/components/empty.d.ts +6 -6
- package/dist/components/empty.js +2 -2
- package/dist/components/field-error.d.ts +2 -2
- package/dist/components/field-error.js +2 -2
- package/dist/components/file-trigger.d.ts +2 -2
- package/dist/components/file-trigger.js +2 -2
- package/dist/components/form.d.ts +2 -2
- package/dist/components/form.js +1 -1
- package/dist/components/grid-list.d.ts +6 -6
- package/dist/components/grid-list.js +2 -2
- package/dist/components/group.d.ts +2 -2
- package/dist/components/group.js +2 -2
- package/dist/components/header.d.ts +2 -2
- package/dist/components/header.js +1 -1
- package/dist/components/heading-scope.d.ts +2 -2
- package/dist/components/heading-scope.js +1 -1
- package/dist/components/heading.d.ts +2 -2
- package/dist/components/heading.js +1 -1
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +1 -1
- package/dist/components/image-placeholder.d.ts +7 -7
- package/dist/components/image-placeholder.js +1 -1
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/item.d.ts +7 -7
- package/dist/components/item.js +1 -1
- package/dist/components/keyboard.d.ts +2 -2
- package/dist/components/keyboard.js +1 -1
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/link-button.d.ts +2 -2
- package/dist/components/link-button.js +1 -1
- package/dist/components/link.d.ts +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/listbox.d.ts +3 -3
- package/dist/components/listbox.js +2 -2
- package/dist/components/logo.d.ts +7 -7
- package/dist/components/logo.js +1 -1
- package/dist/components/marker.d.ts +4 -4
- package/dist/components/marker.js +2 -2
- package/dist/components/menu.d.ts +4 -4
- package/dist/components/menu.js +2 -2
- package/dist/components/menubar.d.ts +3 -3
- package/dist/components/menubar.js +2 -2
- package/dist/components/message-scroller.d.ts +6 -6
- package/dist/components/message-scroller.js +2 -2
- package/dist/components/message.d.ts +7 -7
- package/dist/components/message.js +1 -1
- package/dist/components/meter.d.ts +4 -4
- package/dist/components/meter.js +1 -1
- package/dist/components/modal.d.ts +7 -7
- package/dist/components/modal.js +1 -1
- package/dist/components/nav-link.d.ts +2 -2
- package/dist/components/nav-link.js +1 -1
- package/dist/components/navigation-menu.d.ts +11 -11
- package/dist/components/navigation-menu.js +2 -2
- package/dist/components/number-field.d.ts +6 -6
- package/dist/components/number-field.js +2 -2
- package/dist/components/otp-field.d.ts +2 -2
- package/dist/components/otp-field.js +1 -1
- package/dist/components/overlay-arrow.d.ts +2 -2
- package/dist/components/overlay-arrow.js +2 -2
- package/dist/components/pagination.d.ts +6 -6
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.d.ts +2 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/progress-bar.d.ts +4 -4
- package/dist/components/progress-bar.js +1 -1
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/radio-group.js +2 -2
- package/dist/components/range-calendar.d.ts +12 -12
- package/dist/components/range-calendar.js +2 -2
- package/dist/components/resizable.d.ts +4 -4
- package/dist/components/resizable.js +2 -2
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/search-field.d.ts +5 -5
- package/dist/components/search-field.js +1 -1
- package/dist/components/section.d.ts +2 -2
- package/dist/components/section.js +1 -1
- package/dist/components/select.d.ts +6 -6
- package/dist/components/select.js +2 -2
- package/dist/components/selection-indicator.d.ts +2 -2
- package/dist/components/selection-indicator.js +2 -2
- package/dist/components/sentinel-row.d.ts +2 -2
- package/dist/components/sentinel-row.js +1 -1
- package/dist/components/separator.d.ts +2 -2
- package/dist/components/separator.js +2 -2
- package/dist/components/shared-element.d.ts +2 -2
- package/dist/components/shared-element.js +1 -1
- package/dist/components/sheet.d.ts +7 -7
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.d.ts +28 -28
- package/dist/components/sidebar.js +4 -3
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +2 -2
- package/dist/components/slider.d.ts +5 -5
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +1 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +2 -2
- package/dist/components/tabs.d.ts +6 -6
- package/dist/components/tabs.js +2 -2
- package/dist/components/tag-group.d.ts +5 -5
- package/dist/components/tag-group.js +2 -2
- package/dist/components/text-field.d.ts +2 -2
- package/dist/components/text-field.js +1 -1
- package/dist/components/text.d.ts +2 -2
- package/dist/components/text.js +1 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/time-field.d.ts +2 -2
- package/dist/components/time-field.js +1 -1
- package/dist/components/toast.d.ts +11 -11
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +3 -3
- package/dist/components/toggle-button.js +2 -2
- package/dist/components/toolbar.d.ts +2 -2
- package/dist/components/toolbar.js +2 -2
- package/dist/components/tooltip.d.ts +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tree.d.ts +5 -5
- package/dist/components/tree.js +2 -2
- package/dist/components/typeset.d.ts +2 -2
- package/dist/components/typeset.js +2 -2
- package/dist/mixins/aria-checked.d.ts +1 -1
- package/dist/mixins/aria-checked.js +1 -1
- package/dist/mixins/attachment-trigger.d.ts +1 -1
- package/dist/mixins/attachment-trigger.js +1 -1
- package/dist/mixins/calendar-keys.d.ts +1 -1
- package/dist/mixins/calendar-keys.js +1 -1
- package/dist/mixins/carousel-controls.d.ts +1 -1
- package/dist/mixins/carousel-controls.js +1 -1
- package/dist/mixins/chart-tooltip.d.ts +1 -1
- package/dist/mixins/chart-tooltip.js +1 -1
- package/dist/mixins/clear-field.d.ts +1 -1
- package/dist/mixins/clear-field.js +1 -1
- package/dist/mixins/color-area-drag.d.ts +1 -1
- package/dist/mixins/color-area-drag.js +1 -1
- package/dist/mixins/color-channel-sync.d.ts +1 -1
- package/dist/mixins/color-channel-sync.js +1 -1
- package/dist/mixins/color-preview.d.ts +1 -1
- package/dist/mixins/color-preview.js +1 -1
- package/dist/mixins/color-wheel-drag.d.ts +1 -1
- package/dist/mixins/color-wheel-drag.js +1 -1
- package/dist/mixins/combobox-filter.d.ts +4 -4
- package/dist/mixins/combobox-filter.js +5 -5
- package/dist/mixins/command-filter.d.ts +1 -1
- package/dist/mixins/command-filter.js +1 -1
- package/dist/mixins/command-keys.d.ts +1 -1
- package/dist/mixins/command-keys.js +1 -1
- package/dist/mixins/context-menu.d.ts +5 -5
- package/dist/mixins/context-menu.js +4 -4
- package/dist/mixins/copy-to-clipboard.d.ts +1 -1
- package/dist/mixins/copy-to-clipboard.js +1 -1
- package/dist/mixins/dismiss.d.ts +1 -1
- package/dist/mixins/dismiss.js +1 -1
- package/dist/mixins/drag-reorder.d.ts +1 -1
- package/dist/mixins/drag-reorder.js +1 -1
- package/dist/mixins/drop-zone.d.ts +1 -1
- package/dist/mixins/drop-zone.js +1 -1
- package/dist/mixins/dual-range.d.ts +1 -1
- package/dist/mixins/dual-range.js +1 -1
- package/dist/mixins/grid-list-keys.d.ts +1 -1
- package/dist/mixins/grid-list-keys.js +1 -1
- package/dist/mixins/heading-level-fallback.d.ts +1 -1
- package/dist/mixins/heading-level-fallback.js +1 -1
- package/dist/mixins/hotkey.d.ts +1 -1
- package/dist/mixins/hotkey.js +1 -1
- package/dist/mixins/image-fallback.d.ts +1 -1
- package/dist/mixins/image-fallback.js +1 -1
- package/dist/mixins/listbox-keys.d.ts +5 -5
- package/dist/mixins/listbox-keys.js +5 -5
- package/dist/mixins/long-press.d.ts +3 -3
- package/dist/mixins/long-press.js +2 -2
- package/dist/mixins/menu-keys.d.ts +1 -1
- package/dist/mixins/menu-keys.js +1 -1
- package/dist/mixins/menubar-keys.d.ts +1 -1
- package/dist/mixins/menubar-keys.js +1 -1
- package/dist/mixins/message-follow.d.ts +1 -1
- package/dist/mixins/message-follow.js +1 -1
- package/dist/mixins/mirror-selected-option.d.ts +1 -1
- package/dist/mixins/mirror-selected-option.js +3 -2
- package/dist/mixins/otp-slots.d.ts +1 -1
- package/dist/mixins/otp-slots.js +1 -1
- package/dist/mixins/persist.d.ts +1 -1
- package/dist/mixins/persist.js +1 -1
- package/dist/mixins/press-toggle.d.ts +1 -1
- package/dist/mixins/press-toggle.js +1 -1
- package/dist/mixins/range-preview.d.ts +1 -1
- package/dist/mixins/range-preview.js +1 -1
- package/dist/mixins/resize-handle.d.ts +1 -1
- package/dist/mixins/resize-handle.js +1 -1
- package/dist/mixins/stepper.d.ts +1 -1
- package/dist/mixins/stepper.js +1 -1
- package/dist/mixins/tab-keys.d.ts +3 -3
- package/dist/mixins/tab-keys.js +4 -4
- package/dist/mixins/theme-toggle.d.ts +1 -1
- package/dist/mixins/theme-toggle.js +1 -1
- package/dist/mixins/track-host-node.d.ts +1 -1
- package/dist/mixins/treeKeys.d.ts +1 -1
- package/dist/mixins/treeKeys.js +1 -1
- package/dist/mixins/validate.d.ts +1 -1
- package/dist/mixins/validate.js +1 -1
- package/dist/mixins/view-transition.d.ts +1 -1
- package/dist/mixins/view-transition.js +1 -1
- package/dist/styles/chart-palette.d.ts +1 -1
- package/dist/styles/field-stack-layout.d.ts +1 -1
- package/dist/styles/floating-surface.d.ts +1 -1
- package/dist/styles/graphic-host.d.ts +1 -1
- package/dist/styles/interactive-transition.d.ts +1 -1
- package/dist/styles/legend-toggle.d.ts +1 -1
- package/dist/styles/output-caption-text.d.ts +1 -1
- package/dist/styles/panel-chrome.d.ts +1 -1
- package/dist/styles/range-thumb-appearance.d.ts +1 -1
- package/dist/styles/rtl-aware-gradient-direction.d.ts +1 -1
- package/dist/styles/semantic-color-panel.d.ts +1 -1
- package/dist/utils/css-styles.d.ts +2 -2
- package/dist/utils/css-styles.js +2 -2
- package/dist/utils/field-parts.d.ts +1 -1
- package/dist/utils/merge-style.d.ts +2 -2
- package/dist/utils/merge-style.js +1 -1
- package/package.json +7 -6
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { createElement, createMixin, on } from "remix/
|
|
10
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Attribute {@link imageFallback} sets on its host image once it fails to
|
|
13
13
|
* load, and removes once a later `src` loads successfully; the image's own
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Adapts
|
|
2
|
+
* Adapts `@remix-run/ui/listbox`'s ARIA listbox keyboard pattern onto a ListBox's
|
|
3
3
|
* option-list host, delegating arrow keys, `Home`/`End`, typeahead, and
|
|
4
|
-
* `Enter`/`Space` to
|
|
4
|
+
* `Enter`/`Space` to `@remix-run/ui/listbox`'s own `list()` primitive, and reports
|
|
5
5
|
* the shared context's selected value and active option as a typed event.
|
|
6
6
|
*
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { MixinFactory } from "remix/
|
|
11
|
-
import * as listbox from "remix/ui/listbox";
|
|
10
|
+
import type { MixinFactory } from "remix/component";
|
|
11
|
+
import * as listbox from "@remix-run/ui/listbox";
|
|
12
12
|
/** DOM event type dispatched by {@link listboxKeys} whenever the selected value or the active option changes. */
|
|
13
13
|
declare const LISTBOX_CHANGE_EVENT: "ui:listbox-change";
|
|
14
14
|
declare global {
|
|
@@ -36,7 +36,7 @@ export declare class ListboxChangeEvent extends Event {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Turns a ListBox's option-list host into the ARIA listbox keyboard surface
|
|
39
|
-
* by delegating to
|
|
39
|
+
* by delegating to `@remix-run/ui/listbox`'s `list()` primitive. Use it inside an
|
|
40
40
|
* ancestor `listbox.Context` alongside a matching `option()` mixin.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Adapts
|
|
2
|
+
* Adapts `@remix-run/ui/listbox`'s ARIA listbox keyboard pattern onto a ListBox's
|
|
3
3
|
* option-list host, delegating arrow keys, `Home`/`End`, typeahead, and
|
|
4
|
-
* `Enter`/`Space` to
|
|
4
|
+
* `Enter`/`Space` to `@remix-run/ui/listbox`'s own `list()` primitive, and reports
|
|
5
5
|
* the shared context's selected value and active option as a typed event.
|
|
6
6
|
*
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import * as listbox from "@remix-run/ui/listbox";
|
|
11
|
+
import { createMixin, on } from "remix/component";
|
|
12
12
|
import { trackHostNode } from "./track-host-node.js";
|
|
13
13
|
/** DOM event type dispatched by {@link listboxKeys} whenever the selected value or the active option changes. */
|
|
14
14
|
const LISTBOX_CHANGE_EVENT = "ui:listbox-change";
|
|
@@ -33,7 +33,7 @@ export class ListboxChangeEvent extends Event {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Turns a ListBox's option-list host into the ARIA listbox keyboard surface
|
|
36
|
-
* by delegating to
|
|
36
|
+
* by delegating to `@remix-run/ui/listbox`'s `list()` primitive. Use it inside an
|
|
37
37
|
* ancestor `listbox.Context` alongside a matching `option()` mixin.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
11
|
+
import type { AnchorPoint } from "@remix-run/ui/anchor";
|
|
12
|
+
import type { ElementProps, MixinFactory } from "remix/component";
|
|
13
13
|
/** DOM event type dispatched on the host by {@link longPress} once a press holds still for the configured duration. */
|
|
14
14
|
declare const LONG_PRESS_EVENT: "ui:long-press";
|
|
15
15
|
declare global {
|
|
@@ -39,7 +39,7 @@ export declare namespace LongPress {
|
|
|
39
39
|
* `AnchorPoint` so a consumer can anchor a menu, tooltip, or preview to it.
|
|
40
40
|
*/
|
|
41
41
|
export declare class LongPressEvent extends Event {
|
|
42
|
-
/** Pointer position the press held, in viewport coordinates, ready to pass straight into
|
|
42
|
+
/** Pointer position the press held, in viewport coordinates, ready to pass straight into `@remix-run/ui/anchor`'s point-based anchoring. */
|
|
43
43
|
readonly point: AnchorPoint;
|
|
44
44
|
/**
|
|
45
45
|
* @param point Pointer position the press held.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import { createElement, createMixin, on } from "remix/
|
|
11
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
12
12
|
import { isNewPrimaryPress } from "../utils/is-new-primary-press.js";
|
|
13
13
|
/** Duration, in milliseconds, {@link longPress} holds the pointer for before dispatching, when {@link LongPress.Options.duration} is omitted. */
|
|
14
14
|
const DEFAULT_DURATION = 500;
|
|
@@ -26,7 +26,7 @@ const LONG_PRESS_EVENT = "ui:long-press";
|
|
|
26
26
|
* `AnchorPoint` so a consumer can anchor a menu, tooltip, or preview to it.
|
|
27
27
|
*/
|
|
28
28
|
export class LongPressEvent extends Event {
|
|
29
|
-
/** Pointer position the press held, in viewport coordinates, ready to pass straight into
|
|
29
|
+
/** Pointer position the press held, in viewport coordinates, ready to pass straight into `@remix-run/ui/anchor`'s point-based anchoring. */
|
|
30
30
|
point;
|
|
31
31
|
/**
|
|
32
32
|
* @param point Pointer position the press held.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { ElementProps, MixinFactory } from "remix/
|
|
10
|
+
import type { ElementProps, MixinFactory } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types associated with {@link menuKeys}.
|
|
13
13
|
*/
|
package/dist/mixins/menu-keys.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { createMixin, ref } from "remix/
|
|
10
|
+
import { createMixin, ref } from "remix/component";
|
|
11
11
|
import { focusItem, isPrintableKey, labelFor, queryItems, setRovingTabindex, } from "../utils/keyboard-nav.js";
|
|
12
12
|
/** Selector matching a menu item's role, regardless of its checked state. */
|
|
13
13
|
const DEFAULT_ITEM_SELECTOR = '[role^="menuitem"]';
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import type { ElementProps, MixinFactory } from "remix/
|
|
14
|
+
import type { ElementProps, MixinFactory } from "remix/component";
|
|
15
15
|
/**
|
|
16
16
|
* Types associated with {@link menubarKeys}.
|
|
17
17
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import { createMixin, ref } from "remix/
|
|
14
|
+
import { createMixin, ref } from "remix/component";
|
|
15
15
|
import { DISABLED_SELECTOR } from "../utils/disabled-selector.js";
|
|
16
16
|
import { focusItem as focusTrigger, isPrintableKey, labelFor, queryItems as queryMenuItems, setRovingTabindex, } from "../utils/keyboard-nav.js";
|
|
17
17
|
/**
|
|
@@ -53,4 +53,4 @@ export declare const MESSAGE_SCROLLER_SCROLLABLE_ATTRIBUTE = "data-scrollable";
|
|
|
53
53
|
* <button data-scroll-jump aria-label={jumpToLatestLabel}>↓</button>
|
|
54
54
|
* </div>
|
|
55
55
|
*/
|
|
56
|
-
export declare const messageFollow: import("remix/
|
|
56
|
+
export declare const messageFollow: import("remix/component").MixinFactory<HTMLElement, [model: ScrollFollowModel], import("remix/component").ElementProps>;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import { createElement, createMixin, on } from "remix/
|
|
14
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
15
15
|
import { prefersReducedMotion } from "../utils/prefers-reduced-motion.js";
|
|
16
16
|
/**
|
|
17
17
|
* Attribute every conversational turn exposes itself on, its value the
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import type { MixinFactory } from "remix/
|
|
9
|
+
import type { MixinFactory } from "remix/component";
|
|
10
10
|
/**
|
|
11
11
|
* Writes the selected `<option>`'s content back into the host
|
|
12
12
|
* `<selectedcontent>` once a render has committed and left the slot empty.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import { createMixin } from "remix/
|
|
9
|
+
import { createMixin } from "remix/component";
|
|
10
10
|
/**
|
|
11
11
|
* Writes the selected `<option>`'s content back into the host
|
|
12
12
|
* `<selectedcontent>` once a render has committed and left the slot empty.
|
|
@@ -29,7 +29,8 @@ export const mirrorSelectedOption = createMixin((handle) => {
|
|
|
29
29
|
let option = slot.closest("select")?.selectedOptions[0];
|
|
30
30
|
if (!option)
|
|
31
31
|
return;
|
|
32
|
-
|
|
32
|
+
for (let child of option.childNodes)
|
|
33
|
+
slot.appendChild(child.cloneNode(true));
|
|
33
34
|
});
|
|
34
35
|
return () => { };
|
|
35
36
|
});
|
|
@@ -49,5 +49,5 @@ export declare class OtpCompleteEvent extends Event {
|
|
|
49
49
|
* <input data-otp-slot maxLength={1} inputMode="numeric" aria-label={t("otp.slot", { position: 3 })} />
|
|
50
50
|
* </div>
|
|
51
51
|
*/
|
|
52
|
-
export declare const otpSlots: import("remix/
|
|
52
|
+
export declare const otpSlots: import("remix/component").MixinFactory<HTMLElement, [], import("remix/component").ElementProps>;
|
|
53
53
|
export {};
|
package/dist/mixins/otp-slots.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import { createElement, createMixin, on } from "remix/
|
|
14
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
15
15
|
/**
|
|
16
16
|
* Attribute every OtpField slot input exposes itself on. `otpSlots()` reads
|
|
17
17
|
* every element carrying this attribute beneath the host, in document
|
package/dist/mixins/persist.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import type { ElementProps, MixinFactory } from "remix/
|
|
14
|
+
import type { ElementProps, MixinFactory } from "remix/component";
|
|
15
15
|
/**
|
|
16
16
|
* Attribute the Sidebar's collapse checkbox carries. {@link persist} reads
|
|
17
17
|
* and flips this single descendant of its host, the same element the
|
package/dist/mixins/persist.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import { createElement, createMixin, on } from "remix/
|
|
14
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
15
15
|
import { asCommandEvent } from "../utils/command-event.js";
|
|
16
16
|
import { writeCookie } from "../utils/write-cookie.js";
|
|
17
17
|
/** Invoker command {@link persist} answers on the Sidebar root: flips the collapse checkbox and mirrors its new state into the cookie. */
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
10
|
* @copyright Sergio Xalambrí 2026
|
|
11
11
|
*/
|
|
12
|
-
import type { MixinFactory } from "remix/
|
|
12
|
+
import type { MixinFactory } from "remix/component";
|
|
13
13
|
/** DOM event type dispatched by {@link pressToggle} whenever a click flips the host's pressed state. */
|
|
14
14
|
declare const PRESS_TOGGLE_CHANGE_EVENT: "ui:press-toggle-change";
|
|
15
15
|
declare global {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
10
|
* @copyright Sergio Xalambrí 2026
|
|
11
11
|
*/
|
|
12
|
-
import { createElement, createMixin, on } from "remix/
|
|
12
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
13
13
|
import { DISABLED_SELECTOR } from "../utils/disabled-selector.js";
|
|
14
14
|
/**
|
|
15
15
|
* Attribute {@link pressToggle} reads and flips on every click — the same
|
|
@@ -23,4 +23,4 @@ import type { CalendarModel } from "../behaviors/calendar-model.js";
|
|
|
23
23
|
* let model = new CalendarModel();
|
|
24
24
|
* <div role="grid" mix={[calendarKeys(model), rangePreview(model)]} />
|
|
25
25
|
*/
|
|
26
|
-
export declare const rangePreview: import("remix/
|
|
26
|
+
export declare const rangePreview: import("remix/component").MixinFactory<HTMLElement, [model: CalendarModel], import("remix/component").ElementProps>;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import { createElement, createMixin, on } from "remix/
|
|
14
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
15
15
|
import { CALENDAR_DAY_DATE_ATTRIBUTE } from "./calendar-keys.js";
|
|
16
16
|
import { trackHostNode } from "./track-host-node.js";
|
|
17
17
|
/**
|
|
@@ -97,5 +97,5 @@ export declare class ResizableLayoutChangeEvent extends Event {
|
|
|
97
97
|
* <section data-resizable-panel id="content">Content</section>
|
|
98
98
|
* </div>
|
|
99
99
|
*/
|
|
100
|
-
export declare const resizeHandle: import("remix/
|
|
100
|
+
export declare const resizeHandle: import("remix/component").MixinFactory<HTMLElement, [axis: ResizableAxis, session: ResizeSession], import("remix/component").ElementProps>;
|
|
101
101
|
export {};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
13
13
|
* @copyright Sergio Xalambrí 2026
|
|
14
14
|
*/
|
|
15
|
-
import { createElement, createMixin, on } from "remix/
|
|
15
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
16
16
|
import { isNewPrimaryPress } from "../utils/is-new-primary-press.js";
|
|
17
17
|
import { trackHostNode } from "./track-host-node.js";
|
|
18
18
|
/**
|
package/dist/mixins/stepper.d.ts
CHANGED
|
@@ -78,4 +78,4 @@ export interface StepperOptions {
|
|
|
78
78
|
* </button>
|
|
79
79
|
* </div>
|
|
80
80
|
*/
|
|
81
|
-
export declare const stepper: import("remix/
|
|
81
|
+
export declare const stepper: import("remix/component").MixinFactory<HTMLElement, [options?: StepperOptions | undefined], import("remix/component").ElementProps>;
|
package/dist/mixins/stepper.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import { createElement, createMixin, on } from "remix/
|
|
11
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
12
12
|
import { asCommandEvent } from "../utils/command-event.js";
|
|
13
13
|
/**
|
|
14
14
|
* Custom Invoker Command an increment button declares (`command="--step-up"`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Delegated arrow-key activation for a Tabs list: a single `keydown`
|
|
3
|
-
* listener on the tablist container reads the shared
|
|
3
|
+
* listener on the tablist container reads the shared `@remix-run/ui/tabs`
|
|
4
4
|
* context to move the roving tab stop, instead of binding one listener
|
|
5
5
|
* per tab. Needed because the WAI-ARIA tabs keyboard pattern has no
|
|
6
6
|
* HTML/CSS equivalent; without JS every tab stays reachable through Tab.
|
|
@@ -16,7 +16,7 @@ export interface TabKeysOptions {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Adds delegated arrow-key activation to a Tabs list, adapting the shared
|
|
19
|
-
*
|
|
19
|
+
* `@remix-run/ui/tabs` context instead of tracking tab order itself. Capturing
|
|
20
20
|
* and stopping handled keys pre-empts a same-key `tab()` binding per tab.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
@@ -27,4 +27,4 @@ export interface TabKeysOptions {
|
|
|
27
27
|
* </div>
|
|
28
28
|
* </tabs.Context>
|
|
29
29
|
*/
|
|
30
|
-
export declare const tabKeys: import("remix/
|
|
30
|
+
export declare const tabKeys: import("remix/component").MixinFactory<HTMLElement, [options?: TabKeysOptions | undefined], import("remix/component").ElementProps>;
|
package/dist/mixins/tab-keys.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Delegated arrow-key activation for a Tabs list: a single `keydown`
|
|
3
|
-
* listener on the tablist container reads the shared
|
|
3
|
+
* listener on the tablist container reads the shared `@remix-run/ui/tabs`
|
|
4
4
|
* context to move the roving tab stop, instead of binding one listener
|
|
5
5
|
* per tab. Needed because the WAI-ARIA tabs keyboard pattern has no
|
|
6
6
|
* HTML/CSS equivalent; without JS every tab stays reachable through Tab.
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import * as tabs from "@remix-run/ui/tabs";
|
|
12
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
13
13
|
/**
|
|
14
14
|
* Adds delegated arrow-key activation to a Tabs list, adapting the shared
|
|
15
|
-
*
|
|
15
|
+
* `@remix-run/ui/tabs` context instead of tracking tab order itself. Capturing
|
|
16
16
|
* and stopping handled keys pre-empts a same-key `tab()` binding per tab.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinFactory } from "remix/
|
|
11
|
+
import type { ElementProps, MixinFactory } from "remix/component";
|
|
12
12
|
/** DOM event type dispatched by {@link themeToggle} whenever it switches `<html>`'s active mode. */
|
|
13
13
|
declare const THEME_CHANGE_EVENT: "ui:theme-change";
|
|
14
14
|
declare global {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import { createElement, createMixin, on } from "remix/
|
|
11
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
12
12
|
import { asCommandEvent } from "../utils/command-event.js";
|
|
13
13
|
import { writeCookie } from "../utils/write-cookie.js";
|
|
14
14
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { MixinHandle } from "remix/
|
|
11
|
+
import type { MixinHandle } from "remix/component";
|
|
12
12
|
/**
|
|
13
13
|
* Caches the DOM node behind a mixin's own host element for as long as it
|
|
14
14
|
* stays mounted, since no host node exists while setup runs; `insert`/`remove`
|
|
@@ -54,5 +54,5 @@ export declare class TreeChangeEvent extends Event {
|
|
|
54
54
|
* <div role="treeitem" aria-level={2} data-tree-item="docs/readme">README</div>
|
|
55
55
|
* </div>
|
|
56
56
|
*/
|
|
57
|
-
export declare const treeKeys: import("remix/
|
|
57
|
+
export declare const treeKeys: import("remix/component").MixinFactory<HTMLElement, [model: SelectionModel], import("remix/component").ElementProps>;
|
|
58
58
|
export {};
|
package/dist/mixins/treeKeys.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
10
|
* @copyright Sergio Xalambrí 2026
|
|
11
11
|
*/
|
|
12
|
-
import { createElement, createMixin, on } from "remix/
|
|
12
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
13
13
|
import { isPrintableKey, labelFor, setRovingTabindex } from "../utils/keyboard-nav.js";
|
|
14
14
|
/**
|
|
15
15
|
* Attribute every Tree row exposes itself on; its value doubles as the
|
|
@@ -61,5 +61,5 @@ export declare class ValidateChangeEvent extends Event {
|
|
|
61
61
|
* <input name="email" type="email" required aria-describedby="email-error" mix={[validate(EmailSchema)]} />
|
|
62
62
|
* <p id="email-error" data-field-error hidden />
|
|
63
63
|
*/
|
|
64
|
-
export declare const validate: import("remix/
|
|
64
|
+
export declare const validate: import("remix/component").MixinFactory<HTMLElement, [schema: Schema<unknown, unknown>], import("remix/component").ElementProps>;
|
|
65
65
|
export {};
|
package/dist/mixins/validate.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
11
12
|
import { parseSafe } from "remix/data-schema";
|
|
12
|
-
import { createElement, createMixin, on } from "remix/ui";
|
|
13
13
|
/**
|
|
14
14
|
* Attribute the FieldError slot exposes itself on. Since `aria-describedby`
|
|
15
15
|
* may list a Description alongside a FieldError, {@link validate} walks
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { MixinFactory } from "remix/
|
|
11
|
+
import type { MixinFactory } from "remix/component";
|
|
12
12
|
/**
|
|
13
13
|
* `data-*` attribute {@link viewTransition} sets on a SharedElement's host
|
|
14
14
|
* while its Frame's transition is in flight, so styling can suppress hover
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import { createElement, createMixin } from "remix/
|
|
11
|
+
import { createElement, createMixin } from "remix/component";
|
|
12
12
|
import { prefersReducedMotion } from "../utils/prefers-reduced-motion.js";
|
|
13
13
|
import { trackHostNode } from "./track-host-node.js";
|
|
14
14
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
11
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
12
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Number of categorical color slots a chart's `--ui-chart-*` palette spans.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
11
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
12
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Composes the single-column stack — a `0.25rem` gap between a field's own
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
11
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
12
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Composes the shared floating-surface border, tint, and elevation shadow as
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
10
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
11
11
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
12
12
|
/**
|
|
13
13
|
* A shrink-resistant, nudged-down, current-colored mixin for a leading
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
11
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
12
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Composes the transition-property/timing-function/duration triplet shared
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
9
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
10
10
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
11
11
|
/**
|
|
12
12
|
* Composes the categorical legend-toggle visibility rules as a `css()`
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
9
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
10
10
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
11
11
|
/**
|
|
12
12
|
* `text("sm")`'s font-size/line-height fallback pair matches the
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
10
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
11
11
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
12
12
|
/**
|
|
13
13
|
* A framed panel's shared border and rounding: a solid, 1px neutral border
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
13
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
14
14
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
15
15
|
/**
|
|
16
16
|
* Composes the range thumb's shared appearance recipe — reset, shape, border,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
11
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
12
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Composes the custom property pairing a gradient direction's `"right"`
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/
|
|
11
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
12
|
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Composes every `&[data-color="..."]` branch a tinted panel keys its
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The style object shape `css()` accepts, aliased directly from `css()`'s own
|
|
3
|
-
* parameter type because `remix/
|
|
3
|
+
* parameter type because `remix/component` doesn't export that type under its own
|
|
4
4
|
* name. Modules that build a nested selector, at-rule, or gated block ahead
|
|
5
5
|
* of a `css()` call assign it into its own `CSSStyles` variable first, so
|
|
6
6
|
* each nested block gets checked against this exact type as it's written.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import { css } from "remix/
|
|
11
|
+
import { css } from "remix/component";
|
|
12
12
|
/**
|
|
13
13
|
* The style object shape {@link css} accepts: a plain CSS-in-JS declaration
|
|
14
14
|
* block, with nested selectors, at-rules (`@media`, `@supports`,
|
package/dist/utils/css-styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The style object shape `css()` accepts, aliased directly from `css()`'s own
|
|
3
|
-
* parameter type because `remix/
|
|
3
|
+
* parameter type because `remix/component` doesn't export that type under its own
|
|
4
4
|
* name. Modules that build a nested selector, at-rule, or gated block ahead
|
|
5
5
|
* of a `css()` call assign it into its own `CSSStyles` variable first, so
|
|
6
6
|
* each nested block gets checked against this exact type as it's written.
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import { css } from "remix/
|
|
11
|
+
import { css } from "remix/component";
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
|
-
import type { Props as TagProps } from "remix/
|
|
13
|
+
import type { Props as TagProps } from "remix/component";
|
|
14
14
|
/**
|
|
15
15
|
* Per-part styling for a field's caption, control, supporting description,
|
|
16
16
|
* and validation message, layered after each part's own built-in styling.
|