@sdxc/ui 2026.10.1 → 2026.10.8
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 +16 -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/highlight.d.ts +47 -0
- package/dist/components/highlight.js +43 -0
- 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 +7 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- 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 +2 -2
- 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 +1 -1
- 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 +16 -6
- package/src/reset.css +13 -2
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
14
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
15
15
|
import type { HeadingLevel } from "./heading-scope.js";
|
|
16
16
|
/**
|
|
17
17
|
* Prop types for {@link Heading}.
|
|
@@ -47,4 +47,4 @@ export declare namespace Heading {
|
|
|
47
47
|
* @example
|
|
48
48
|
* <Heading>Section title</Heading>
|
|
49
49
|
*/
|
|
50
|
-
export declare function Heading(handle: Handle<Heading.Props>): () => import("remix/
|
|
50
|
+
export declare function Heading(handle: Handle<Heading.Props>): () => import("remix/component").RemixElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { fg } from "@sdxc/u/color";
|
|
3
3
|
import { fontSize, leading, tracking, weight } from "@sdxc/u/typography";
|
|
4
4
|
import { resolveHeadingLevel, TAG_BY_LEVEL } from "./heading-scope.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text with the stretches a search matched marked: a run of `{ text, match }` segments
|
|
3
|
+
* rendered as one inline `<span>`, each matched stretch a native `<mark>` tinted through a
|
|
4
|
+
* semantic color role. Segments stay text nodes, so the content is escaped by construction.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
10
|
+
import type { SemanticColor } from "../utils/semantic-color.js";
|
|
11
|
+
/**
|
|
12
|
+
* Prop types for {@link Highlight}.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace Highlight {
|
|
15
|
+
/** Semantic color role the marks are tinted with. */
|
|
16
|
+
type Color = SemanticColor;
|
|
17
|
+
/** One stretch of the text, and whether the query matched it. */
|
|
18
|
+
interface Segment {
|
|
19
|
+
/** The stretch exactly as written. */
|
|
20
|
+
text: string;
|
|
21
|
+
/** Whether this stretch is drawn as a `<mark>`. */
|
|
22
|
+
match: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Every native `<span>` attribute except `children`, which the segments replace, plus
|
|
26
|
+
* the `mix` passthrough.
|
|
27
|
+
*/
|
|
28
|
+
interface Props extends Omit<TagProps<"span">, "children"> {
|
|
29
|
+
/** The text in order, split where the matches start and end. */
|
|
30
|
+
segments: ReadonlyArray<Segment>;
|
|
31
|
+
/** Semantic color role of the marks. Defaults to {@link DEFAULT_COLOR}. */
|
|
32
|
+
color?: Color;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Renders the segments inline, each match as a `<mark>` with a quiet tint behind text
|
|
37
|
+
* that keeps the surrounding color and weight, so a match inside a link still reads as
|
|
38
|
+
* the link. A mark broken across lines keeps its rounded tint on every fragment.
|
|
39
|
+
*
|
|
40
|
+
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
41
|
+
* @returns The render function producing the highlighted text.
|
|
42
|
+
* @example
|
|
43
|
+
* <Highlight segments={[{ text: "Remix", match: true }, { text: " routing", match: false }]} />
|
|
44
|
+
* @example
|
|
45
|
+
* <Link href={post.href}><Highlight segments={post.title} color="warning" /></Link>
|
|
46
|
+
*/
|
|
47
|
+
export declare function Highlight(handle: Handle<Highlight.Props>): () => import("remix/component").RemixElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
+
import { bg, fg } from "@sdxc/u/color";
|
|
3
|
+
import { rounded } from "@sdxc/u/effects";
|
|
4
|
+
import { raw } from "@sdxc/u/general";
|
|
5
|
+
import { data, when } from "@sdxc/u/state";
|
|
6
|
+
/** Semantic color role {@link Highlight} falls back to when `color` is omitted. */
|
|
7
|
+
const DEFAULT_COLOR = "brand";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the segments inline, each match as a `<mark>` with a quiet tint behind text
|
|
10
|
+
* that keeps the surrounding color and weight, so a match inside a link still reads as
|
|
11
|
+
* the link. A mark broken across lines keeps its rounded tint on every fragment.
|
|
12
|
+
*
|
|
13
|
+
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
14
|
+
* @returns The render function producing the highlighted text.
|
|
15
|
+
* @example
|
|
16
|
+
* <Highlight segments={[{ text: "Remix", match: true }, { text: " routing", match: false }]} />
|
|
17
|
+
* @example
|
|
18
|
+
* <Link href={post.href}><Highlight segments={post.title} color="warning" /></Link>
|
|
19
|
+
*/
|
|
20
|
+
export function Highlight(handle) {
|
|
21
|
+
return () => {
|
|
22
|
+
let { color, segments, mix, ...rest } = handle.props;
|
|
23
|
+
return (_jsx("span", { "data-color": color ?? DEFAULT_COLOR, ...rest, mix: [
|
|
24
|
+
when("& > mark", [
|
|
25
|
+
fg("inherit"),
|
|
26
|
+
rounded("sm"),
|
|
27
|
+
raw({
|
|
28
|
+
fontWeight: "inherit",
|
|
29
|
+
paddingInline: "0.1em",
|
|
30
|
+
marginInline: "-0.1em",
|
|
31
|
+
boxDecorationBreak: "clone",
|
|
32
|
+
WebkitBoxDecorationBreak: "clone",
|
|
33
|
+
}),
|
|
34
|
+
]),
|
|
35
|
+
data("color", "brand", when("& > mark", bg("brand.tint"))),
|
|
36
|
+
data("color", "neutral", when("& > mark", bg("neutral.tint"))),
|
|
37
|
+
data("color", "success", when("& > mark", bg("success.tint"))),
|
|
38
|
+
data("color", "warning", when("& > mark", bg("warning.tint"))),
|
|
39
|
+
data("color", "danger", when("& > mark", bg("danger.tint"))),
|
|
40
|
+
mix,
|
|
41
|
+
], children: segments.map((segment) => (segment.match ? _jsx("mark", { children: segment.text }) : segment.text)) }));
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/
|
|
14
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
15
15
|
import type { AnchorPlacement } from "../utils/placement.js";
|
|
16
16
|
/**
|
|
17
17
|
* Prop types for {@link HoverCard} and its compound parts.
|
|
@@ -70,8 +70,8 @@ export declare namespace HoverCard {
|
|
|
70
70
|
* </HoverCard.Content>
|
|
71
71
|
* </HoverCard>
|
|
72
72
|
*/
|
|
73
|
-
export declare function HoverCard(handle: Handle<HoverCard.Props>): () => import("remix/
|
|
73
|
+
export declare function HoverCard(handle: Handle<HoverCard.Props>): () => import("remix/component").RemixElement;
|
|
74
74
|
export declare namespace HoverCard {
|
|
75
|
-
var Trigger: (handle: Handle<HoverCard.TriggerProps>) => () => import("remix/
|
|
76
|
-
var Content: (handle: Handle<HoverCard.ContentProps>) => () => import("remix/
|
|
75
|
+
var Trigger: (handle: Handle<HoverCard.TriggerProps>) => () => import("remix/component").RemixElement;
|
|
76
|
+
var Content: (handle: Handle<HoverCard.ContentProps>) => () => import("remix/component").RemixElement;
|
|
77
77
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { fg } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, transition, transitionDuration, visibility } from "@sdxc/u/effects";
|
|
4
4
|
import { pointerEvents, raw } from "@sdxc/u/general";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/
|
|
11
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for {@link ImagePlaceholder} and its compound parts.
|
|
14
14
|
*/
|
|
@@ -95,11 +95,11 @@ export declare namespace ImagePlaceholder {
|
|
|
95
95
|
* <ImagePlaceholder.Badge />
|
|
96
96
|
* </ImagePlaceholder>
|
|
97
97
|
*/
|
|
98
|
-
export declare function ImagePlaceholder(handle: Handle<ImagePlaceholder.Props>): () => import("remix/
|
|
98
|
+
export declare function ImagePlaceholder(handle: Handle<ImagePlaceholder.Props>): () => import("remix/component").RemixElement;
|
|
99
99
|
export declare namespace ImagePlaceholder {
|
|
100
|
-
var Image: (handle: Handle<ImagePlaceholder.ImageProps>) => () => import("remix/
|
|
101
|
-
var Fallback: (handle: Handle<ImagePlaceholder.FallbackProps>) => () => import("remix/
|
|
102
|
-
var Badge: (handle: Handle<ImagePlaceholder.BadgeProps>) => () => import("remix/
|
|
103
|
-
var Group: (handle: Handle<ImagePlaceholder.GroupProps>) => () => import("remix/
|
|
104
|
-
var GroupCount: (handle: Handle<ImagePlaceholder.GroupCountProps>) => () => import("remix/
|
|
100
|
+
var Image: (handle: Handle<ImagePlaceholder.ImageProps>) => () => import("remix/component").RemixElement;
|
|
101
|
+
var Fallback: (handle: Handle<ImagePlaceholder.FallbackProps>) => () => import("remix/component").RemixElement;
|
|
102
|
+
var Badge: (handle: Handle<ImagePlaceholder.BadgeProps>) => () => import("remix/component").RemixElement;
|
|
103
|
+
var Group: (handle: Handle<ImagePlaceholder.GroupProps>) => () => import("remix/component").RemixElement;
|
|
104
|
+
var GroupCount: (handle: Handle<ImagePlaceholder.GroupCountProps>) => () => import("remix/component").RemixElement;
|
|
105
105
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
3
|
-
import { ringShadow, rounded } from "@sdxc/u/effects";
|
|
3
|
+
import { ringShadow, rounded, visibility } from "@sdxc/u/effects";
|
|
4
4
|
import { userSelect } from "@sdxc/u/general";
|
|
5
|
-
import { absolute, center, flex,
|
|
5
|
+
import { absolute, center, flex, inlineFlex, insBe, insIe, inset, items, justify, relative, shrink, } from "@sdxc/u/layout";
|
|
6
6
|
import { overflow } from "@sdxc/u/overflow";
|
|
7
7
|
import { bs, fit, is, mis } from "@sdxc/u/size";
|
|
8
8
|
import { data, precededBy, when } from "@sdxc/u/state";
|
|
@@ -115,9 +115,11 @@ ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
|
|
|
115
115
|
/*
|
|
116
116
|
* Both layers fill the host, and this one is written after the image, so it
|
|
117
117
|
* would cover a picture that loaded. It stands down while an image is present
|
|
118
|
-
* and unbroken, and takes over once the image reports that it failed.
|
|
118
|
+
* and unbroken, and takes over once the image reports that it failed. It
|
|
119
|
+
* stands down through `visibility`, which no other rule here sets, so the
|
|
120
|
+
* order the page declared these rules in cannot bring it back.
|
|
119
121
|
*/
|
|
120
|
-
precededBy('img[data-slot="image"]:not([data-image-error])', hidden
|
|
122
|
+
precededBy('img[data-slot="image"]:not([data-image-error])', visibility("hidden")),
|
|
121
123
|
absolute(),
|
|
122
124
|
center(),
|
|
123
125
|
weight("medium"),
|
|
@@ -52,6 +52,7 @@ export * from "./group.js";
|
|
|
52
52
|
export * from "./header.js";
|
|
53
53
|
export * from "./heading.js";
|
|
54
54
|
export * from "./heading-scope.js";
|
|
55
|
+
export * from "./highlight.js";
|
|
55
56
|
export * from "./hover-card.js";
|
|
56
57
|
export * from "./image-placeholder.js";
|
|
57
58
|
export * from "./input.js";
|
package/dist/components/index.js
CHANGED
|
@@ -52,6 +52,7 @@ export * from "./group.js";
|
|
|
52
52
|
export * from "./header.js";
|
|
53
53
|
export * from "./heading.js";
|
|
54
54
|
export * from "./heading-scope.js";
|
|
55
|
+
export * from "./highlight.js";
|
|
55
56
|
export * from "./hover-card.js";
|
|
56
57
|
export * from "./image-placeholder.js";
|
|
57
58
|
export * from "./input.js";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
10
|
* @copyright Sergio Xalambrí 2026
|
|
11
11
|
*/
|
|
12
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
12
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for {@link Input}.
|
|
15
15
|
*/
|
|
@@ -50,4 +50,4 @@ export declare namespace Input {
|
|
|
50
50
|
* <Input id="username" aria-describedby="username-error" aria-invalid="true" />
|
|
51
51
|
* <FieldError id="username-error">{t("form.username.taken")}</FieldError>
|
|
52
52
|
*/
|
|
53
|
-
export declare function Input(handle: Handle<Input.Props>): () => import("remix/
|
|
53
|
+
export declare function Input(handle: Handle<Input.Props>): () => import("remix/component").RemixElement;
|
package/dist/components/input.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/
|
|
13
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
14
14
|
/**
|
|
15
15
|
* Prop types for {@link Item} and its compound parts.
|
|
16
16
|
*/
|
|
@@ -87,11 +87,11 @@ export declare namespace Item {
|
|
|
87
87
|
* </Item.Actions>
|
|
88
88
|
* </Item>
|
|
89
89
|
*/
|
|
90
|
-
export declare function Item(handle: Handle<Item.Props>): () => import("remix/
|
|
90
|
+
export declare function Item(handle: Handle<Item.Props>): () => import("remix/component").RemixElement;
|
|
91
91
|
export declare namespace Item {
|
|
92
|
-
var Media: (handle: Handle<Item.MediaProps>) => () => import("remix/
|
|
93
|
-
var Content: (handle: Handle<Item.ContentProps>) => () => import("remix/
|
|
94
|
-
var Title: (handle: Handle<Item.TitleProps>) => () => import("remix/
|
|
95
|
-
var Description: (handle: Handle<Item.DescriptionProps>) => () => import("remix/
|
|
96
|
-
var Actions: (handle: Handle<Item.ActionsProps>) => () => import("remix/
|
|
92
|
+
var Media: (handle: Handle<Item.MediaProps>) => () => import("remix/component").RemixElement;
|
|
93
|
+
var Content: (handle: Handle<Item.ContentProps>) => () => import("remix/component").RemixElement;
|
|
94
|
+
var Title: (handle: Handle<Item.TitleProps>) => () => import("remix/component").RemixElement;
|
|
95
|
+
var Description: (handle: Handle<Item.DescriptionProps>) => () => import("remix/component").RemixElement;
|
|
96
|
+
var Actions: (handle: Handle<Item.ActionsProps>) => () => import("remix/component").RemixElement;
|
|
97
97
|
}
|
package/dist/components/item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { fg } from "@sdxc/u/color";
|
|
3
3
|
import { raw } from "@sdxc/u/general";
|
|
4
4
|
import { basis, center, container, flex, flexCol, flexWrap, gap, grow, items, shrink, } from "@sdxc/u/layout";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
10
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Prop types for {@link Keyboard}.
|
|
13
13
|
*/
|
|
@@ -30,4 +30,4 @@ export declare namespace Keyboard {
|
|
|
30
30
|
* @example
|
|
31
31
|
* <Keyboard>⌘K</Keyboard>
|
|
32
32
|
*/
|
|
33
|
-
export declare function Keyboard(handle: Handle<Keyboard.Props>): () => import("remix/
|
|
33
|
+
export declare function Keyboard(handle: Handle<Keyboard.Props>): () => import("remix/component").RemixElement;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
10
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Prop types for {@link Label}.
|
|
13
13
|
*/
|
|
@@ -35,4 +35,4 @@ export declare namespace Label {
|
|
|
35
35
|
* <input type="checkbox" name="newsletter" />
|
|
36
36
|
* </Label>
|
|
37
37
|
*/
|
|
38
|
-
export declare function Label(handle: Handle<Label.Props>): () => import("remix/
|
|
38
|
+
export declare function Label(handle: Handle<Label.Props>): () => import("remix/component").RemixElement;
|
package/dist/components/label.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
11
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
12
12
|
import type { SemanticColor } from "../utils/semantic-color.js";
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for {@link LinkButton}.
|
|
@@ -56,4 +56,4 @@ export declare namespace LinkButton {
|
|
|
56
56
|
* @example
|
|
57
57
|
* <LinkButton href="/export/report.csv" download aria-disabled={!hasReport || undefined}>{t("actions.download")}</LinkButton>
|
|
58
58
|
*/
|
|
59
|
-
export declare function LinkButton(handle: Handle<LinkButton.Props>): () => import("remix/
|
|
59
|
+
export declare function LinkButton(handle: Handle<LinkButton.Props>): () => import("remix/component").RemixElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, rounded } from "@sdxc/u/effects";
|
|
4
4
|
import { cursor, pointerEvents, userSelect } from "@sdxc/u/general";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
9
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
10
10
|
import type { SemanticColor } from "../utils/semantic-color.js";
|
|
11
11
|
/**
|
|
12
12
|
* Prop types for {@link Link}.
|
|
@@ -40,4 +40,4 @@ export declare namespace Link {
|
|
|
40
40
|
* @example
|
|
41
41
|
* <Link href="/settings" aria-disabled="true">{t("nav.settings")}</Link>
|
|
42
42
|
*/
|
|
43
|
-
export declare function Link(handle: Handle<Link.Props>): () => import("remix/
|
|
43
|
+
export declare function Link(handle: Handle<Link.Props>): () => import("remix/component").RemixElement;
|
package/dist/components/link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { colorMix, fg, outline } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, rounded } from "@sdxc/u/effects";
|
|
4
4
|
import { cursor, raw, var as varUtility } from "@sdxc/u/general";
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/
|
|
13
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
14
14
|
import { SentinelRow } from "./sentinel-row.js";
|
|
15
15
|
/**
|
|
16
16
|
* Prop types for {@link ListBox} and its {@link ListBox.Item} compound part.
|
|
@@ -112,8 +112,8 @@ export declare namespace ListBox {
|
|
|
112
112
|
* </Section>
|
|
113
113
|
* </ListBox>
|
|
114
114
|
*/
|
|
115
|
-
export declare function ListBox(handle: Handle<ListBox.Props, ListBox.Context>): () => import("remix/
|
|
115
|
+
export declare function ListBox(handle: Handle<ListBox.Props, ListBox.Context>): () => import("remix/component").RemixElement;
|
|
116
116
|
export declare namespace ListBox {
|
|
117
|
-
var Item: (handle: Handle<ListBox.ItemProps>) => () => import("remix/
|
|
117
|
+
var Item: (handle: Handle<ListBox.ItemProps>) => () => import("remix/component").RemixElement;
|
|
118
118
|
var LoadMoreItem: typeof SentinelRow;
|
|
119
119
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "remix/
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
2
|
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
3
3
|
import { bg, fg, outline } from "@sdxc/u/color";
|
|
4
4
|
import { opacity, rounded } from "@sdxc/u/effects";
|
|
@@ -8,7 +8,7 @@ import { overflow } from "@sdxc/u/overflow";
|
|
|
8
8
|
import { maxBs, p, pb, pi } from "@sdxc/u/size";
|
|
9
9
|
import { active, hover, when } from "@sdxc/u/state";
|
|
10
10
|
import { text } from "@sdxc/u/typography";
|
|
11
|
-
import { attrs } from "remix/
|
|
11
|
+
import { attrs } from "remix/component";
|
|
12
12
|
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
13
13
|
import { warnIfNoAccessibleName } from "../utils/warn-if-no-accessible-name.js";
|
|
14
14
|
import { SentinelRow } from "./sentinel-row.js";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { Handle } from "remix/
|
|
10
|
+
import type { Handle } from "remix/component";
|
|
11
11
|
import { ImagePlaceholder } from "./image-placeholder.js";
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for {@link Logo} and its compound parts, each an alias of
|
|
@@ -78,11 +78,11 @@ export declare namespace Logo {
|
|
|
78
78
|
* <Logo.Badge aria-label={t("status.verified")} />
|
|
79
79
|
* </Logo>
|
|
80
80
|
*/
|
|
81
|
-
export declare function Logo(handle: Handle<Logo.Props>): () => import("remix/
|
|
81
|
+
export declare function Logo(handle: Handle<Logo.Props>): () => import("remix/component").RemixElement;
|
|
82
82
|
export declare namespace Logo {
|
|
83
|
-
var Image: (handle: Handle<ImagePlaceholder.ImageProps>) => () => import("remix/
|
|
84
|
-
var Fallback: (handle: Handle<ImagePlaceholder.FallbackProps>) => () => import("remix/
|
|
85
|
-
var Badge: (handle: Handle<ImagePlaceholder.BadgeProps>) => () => import("remix/
|
|
83
|
+
var Image: (handle: Handle<ImagePlaceholder.ImageProps>) => () => import("remix/component").RemixElement;
|
|
84
|
+
var Fallback: (handle: Handle<ImagePlaceholder.FallbackProps>) => () => import("remix/component").RemixElement;
|
|
85
|
+
var Badge: (handle: Handle<ImagePlaceholder.BadgeProps>) => () => import("remix/component").RemixElement;
|
|
86
86
|
var Group: typeof LogoGroup;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
@@ -99,7 +99,7 @@ export declare namespace Logo {
|
|
|
99
99
|
* <Logo.Group.Count>+3</Logo.Group.Count>
|
|
100
100
|
* </Logo.Group>
|
|
101
101
|
*/
|
|
102
|
-
declare function LogoGroup(handle: Handle<Logo.GroupProps>): () => import("remix/
|
|
102
|
+
declare function LogoGroup(handle: Handle<Logo.GroupProps>): () => import("remix/component").RemixElement;
|
|
103
103
|
declare namespace LogoGroup {
|
|
104
104
|
var Count: typeof LogoGroupCount;
|
|
105
105
|
}
|
|
@@ -113,5 +113,5 @@ declare namespace LogoGroup {
|
|
|
113
113
|
* @example
|
|
114
114
|
* <Logo.Group.Count>+3</Logo.Group.Count>
|
|
115
115
|
*/
|
|
116
|
-
declare function LogoGroupCount(handle: Handle<Logo.GroupCountProps>): () => import("remix/
|
|
116
|
+
declare function LogoGroupCount(handle: Handle<Logo.GroupCountProps>): () => import("remix/component").RemixElement;
|
|
117
117
|
export {};
|
package/dist/components/logo.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/
|
|
11
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for {@link Marker} and its compound parts.
|
|
14
14
|
*/
|
|
@@ -75,8 +75,8 @@ export declare namespace Marker {
|
|
|
75
75
|
* <Marker.Content>{t("marker.today")}</Marker.Content>
|
|
76
76
|
* </Marker>
|
|
77
77
|
*/
|
|
78
|
-
export declare function Marker(handle: Handle<Marker.Props>): () => import("remix/
|
|
78
|
+
export declare function Marker(handle: Handle<Marker.Props>): () => import("remix/component").RemixElement;
|
|
79
79
|
export declare namespace Marker {
|
|
80
|
-
var Icon: (handle: Handle<Marker.IconProps>) => () => import("remix/
|
|
81
|
-
var Content: (handle: Handle<Marker.ContentProps>) => () => import("remix/
|
|
80
|
+
var Icon: (handle: Handle<Marker.IconProps>) => () => import("remix/component").RemixElement;
|
|
81
|
+
var Content: (handle: Handle<Marker.ContentProps>) => () => import("remix/component").RemixElement;
|
|
82
82
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
4
|
import { pseudoContent } from "@sdxc/u/general";
|
|
@@ -6,7 +6,7 @@ import { basis, center, gap, grow, inlineFlex, items, shrink } from "@sdxc/u/lay
|
|
|
6
6
|
import { bs, is, minIs, pb, pi } from "@sdxc/u/size";
|
|
7
7
|
import { data, when } from "@sdxc/u/state";
|
|
8
8
|
import { fontSize, leading, weight } from "@sdxc/u/typography";
|
|
9
|
-
import { attrs } from "remix/
|
|
9
|
+
import { attrs } from "remix/component";
|
|
10
10
|
/** Visual shape {@link Marker} falls back to when `variant` is omitted. */
|
|
11
11
|
const DEFAULT_VARIANT = "default";
|
|
12
12
|
/** Semantic color role {@link Marker} falls back to when `color` is omitted. */
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
10
|
* @copyright Sergio Xalambrí 2026
|
|
11
11
|
*/
|
|
12
|
-
import type { ElementProps, Handle, MixinDescriptor, Props as TagProps, RemixNode } from "remix/
|
|
12
|
+
import type { ElementProps, Handle, MixinDescriptor, Props as TagProps, RemixNode } from "remix/component";
|
|
13
13
|
import { Popover } from "./popover.js";
|
|
14
14
|
import { Separator } from "./separator.js";
|
|
15
15
|
/**
|
|
@@ -83,8 +83,8 @@ export declare namespace Menu {
|
|
|
83
83
|
* <Menu.Item danger commandfor="confirm-delete" command="show-modal">{t("actions.delete")}</Menu.Item>
|
|
84
84
|
* </Menu>
|
|
85
85
|
*/
|
|
86
|
-
export declare function Menu(handle: Handle<Menu.Props>): () => import("remix/
|
|
86
|
+
export declare function Menu(handle: Handle<Menu.Props>): () => import("remix/component").RemixElement;
|
|
87
87
|
export declare namespace Menu {
|
|
88
|
-
var Item: (handle: Handle<Menu.ItemProps>) => () => import("remix/
|
|
89
|
-
var Separator: (handle: Handle<Menu.SeparatorProps>) => () => import("remix/
|
|
88
|
+
var Item: (handle: Handle<Menu.ItemProps>) => () => import("remix/component").RemixElement;
|
|
89
|
+
var Separator: (handle: Handle<Menu.SeparatorProps>) => () => import("remix/component").RemixElement;
|
|
90
90
|
}
|
package/dist/components/menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, fg, outline } from "@sdxc/u/color";
|
|
3
3
|
import { rounded, opacity } from "@sdxc/u/effects";
|
|
4
4
|
import { cursor } from "@sdxc/u/general";
|
|
@@ -6,7 +6,7 @@ import { flex, gap, items, shrink } from "@sdxc/u/layout";
|
|
|
6
6
|
import { bs, is, minIs, mb, pb, pi, p } from "@sdxc/u/size";
|
|
7
7
|
import { active, disabled, focusVisible, hover, when } from "@sdxc/u/state";
|
|
8
8
|
import { text, textAlign, textDecoration, weight } from "@sdxc/u/typography";
|
|
9
|
-
import { attrs } from "remix/
|
|
9
|
+
import { attrs } from "remix/component";
|
|
10
10
|
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
11
11
|
import { warnIfNoAccessibleName } from "../utils/warn-if-no-accessible-name.js";
|
|
12
12
|
import { Popover } from "./popover.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import type { Handle, Props as TagProps } from "remix/
|
|
9
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
10
10
|
/**
|
|
11
11
|
* Prop types for {@link Menubar} and its compound parts.
|
|
12
12
|
*/
|
|
@@ -48,7 +48,7 @@ export declare namespace Menubar {
|
|
|
48
48
|
* </Menu>
|
|
49
49
|
* </Menubar>
|
|
50
50
|
*/
|
|
51
|
-
export declare function Menubar(handle: Handle<Menubar.Props>): () => import("remix/
|
|
51
|
+
export declare function Menubar(handle: Handle<Menubar.Props>): () => import("remix/component").RemixElement;
|
|
52
52
|
export declare namespace Menubar {
|
|
53
|
-
var Trigger: (handle: Handle<Menubar.TriggerProps>) => () => import("remix/
|
|
53
|
+
var Trigger: (handle: Handle<Menubar.TriggerProps>) => () => import("remix/component").RemixElement;
|
|
54
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, rounded } from "@sdxc/u/effects";
|
|
4
4
|
import { cursor, userSelect } from "@sdxc/u/general";
|
|
@@ -6,7 +6,7 @@ import { flex, gap, inlineFlex, items } from "@sdxc/u/layout";
|
|
|
6
6
|
import { pb, pi } from "@sdxc/u/size";
|
|
7
7
|
import { active, disabled, hover, when } from "@sdxc/u/state";
|
|
8
8
|
import { text, weight } from "@sdxc/u/typography";
|
|
9
|
-
import { attrs } from "remix/
|
|
9
|
+
import { attrs } from "remix/component";
|
|
10
10
|
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
11
11
|
import { warnIfNoAccessibleLabel, warnIfNoAccessibleName, } from "../utils/warn-if-no-accessible-name.js";
|
|
12
12
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/
|
|
13
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
14
14
|
import { Button } from "./button.js";
|
|
15
15
|
/**
|
|
16
16
|
* Prop types for {@link MessageScroller} and its compound parts.
|
|
@@ -100,10 +100,10 @@ export declare namespace MessageScroller {
|
|
|
100
100
|
* <MessageScroller.Button aria-label={t("chat.jumpToLatest")} />
|
|
101
101
|
* </MessageScroller>
|
|
102
102
|
*/
|
|
103
|
-
export declare function MessageScroller(handle: Handle<MessageScroller.Props>): () => import("remix/
|
|
103
|
+
export declare function MessageScroller(handle: Handle<MessageScroller.Props>): () => import("remix/component").RemixElement;
|
|
104
104
|
export declare namespace MessageScroller {
|
|
105
|
-
var Viewport: (handle: Handle<MessageScroller.ViewportProps>) => () => import("remix/
|
|
106
|
-
var Content: (handle: Handle<MessageScroller.ContentProps>) => () => import("remix/
|
|
107
|
-
var Item: (handle: Handle<MessageScroller.ItemProps>) => () => import("remix/
|
|
108
|
-
var Button: (handle: Handle<MessageScroller.ButtonProps>) => () => import("remix/
|
|
105
|
+
var Viewport: (handle: Handle<MessageScroller.ViewportProps>) => () => import("remix/component").RemixElement;
|
|
106
|
+
var Content: (handle: Handle<MessageScroller.ContentProps>) => () => import("remix/component").RemixElement;
|
|
107
|
+
var Item: (handle: Handle<MessageScroller.ItemProps>) => () => import("remix/component").RemixElement;
|
|
108
|
+
var Button: (handle: Handle<MessageScroller.ButtonProps>) => () => import("remix/component").RemixElement;
|
|
109
109
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { border } from "@sdxc/u/color";
|
|
3
3
|
import { rounded, shadow } from "@sdxc/u/effects";
|
|
4
4
|
import { raw } from "@sdxc/u/general";
|
|
@@ -7,7 +7,7 @@ import { pb, pi } from "@sdxc/u/size";
|
|
|
7
7
|
import { z } from "@sdxc/u/stacking";
|
|
8
8
|
import { when } from "@sdxc/u/state";
|
|
9
9
|
import { translateProperty } from "@sdxc/u/transform";
|
|
10
|
-
import { attrs } from "remix/
|
|
10
|
+
import { attrs } from "remix/component";
|
|
11
11
|
import { Button } from "./button.js";
|
|
12
12
|
import { ScrollArea } from "./scroll-area.js";
|
|
13
13
|
/**
|