@sdxc/ui 2026.10.1 → 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 +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 +7 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @sdxc/ui
|
|
2
2
|
|
|
3
|
-
Styled, accessible `remix/
|
|
3
|
+
Styled, accessible `remix/component` components rendered as server HTML.
|
|
4
4
|
|
|
5
5
|
Every component is a plain function taking a `Handle<Props>` and rendered through JSX, with
|
|
6
6
|
variants, states and colors driven by a `data-*` attribute contract and a set of `--ui-*`
|
|
@@ -28,7 +28,7 @@ package.
|
|
|
28
28
|
Every component takes a `Handle<Props>` and returns a render closure, and is used as JSX:
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
|
-
import type { Handle } from "remix/
|
|
31
|
+
import type { Handle } from "remix/component";
|
|
32
32
|
|
|
33
33
|
import { Badge } from "@sdxc/ui";
|
|
34
34
|
|
|
@@ -106,9 +106,9 @@ A widget that wants interactivity gets it from a mixin applied through `mix` ins
|
|
|
106
106
|
hydrated island. The components themselves stay pure UI:
|
|
107
107
|
|
|
108
108
|
```tsx
|
|
109
|
-
import type { Handle } from "remix/
|
|
109
|
+
import type { Handle } from "remix/component";
|
|
110
110
|
|
|
111
|
-
import { clientEntry } from "remix/
|
|
111
|
+
import { clientEntry } from "remix/component";
|
|
112
112
|
|
|
113
113
|
import { Command } from "@sdxc/ui";
|
|
114
114
|
import { FilterModel } from "@sdxc/ui/behaviors";
|
|
@@ -327,7 +327,7 @@ script never runs, so the cost of every behavior stays visible before you apply
|
|
|
327
327
|
| `colorAreaDrag()` | `ColorArea` | Drags the root as one 2D gesture across its paired axis inputs. |
|
|
328
328
|
| `colorPreview()` | `ColorField` | Updates the paired `ColorSwatch` as a typed value parses. |
|
|
329
329
|
| `colorWheelDrag()` | `ColorWheel` | Reshapes the hue input into a ring and drags it as an angular gesture. |
|
|
330
|
-
| `comboboxFilter()` | `ComboBox.Input` | As-you-type narrowing through
|
|
330
|
+
| `comboboxFilter()` | `ComboBox.Input` | As-you-type narrowing through `@remix-run/ui/combobox`. |
|
|
331
331
|
| `commandFilter(model)` | `Command` | Filtering against a `FilterModel`, mirrored onto items as `hidden`. |
|
|
332
332
|
| `commandKeys(model)` | `Command` | Arrow keys move the active match; Enter activates its nested link or button. |
|
|
333
333
|
| `contextMenu(id)` | `ContextMenu.Trigger` | Opens the named popover at the pointer on right-click or the Context Menu key. |
|
|
@@ -340,7 +340,7 @@ script never runs, so the cost of every behavior stays visible before you apply
|
|
|
340
340
|
| `headingLevelFallback(options)` | an island's heading root | Recovers the ambient heading depth from `data-heading-level` at a hydration boundary. |
|
|
341
341
|
| `hotkey(combo)` | any `<dialog>`/`[popover]` | A document-level shortcut opening or closing its host regardless of focus. |
|
|
342
342
|
| `imageFallback()` | `Avatar` / `Logo` images | Flags a failed image load, including retroactively for cached images. |
|
|
343
|
-
| `listboxKeys()` | `ListBox` | Arrow/Home/End/typeahead through
|
|
343
|
+
| `listboxKeys()` | `ListBox` | Arrow/Home/End/typeahead through `@remix-run/ui/listbox`. |
|
|
344
344
|
| `longPress(options?)` | any element | Fires once a pointer holds still past a duration and movement tolerance. |
|
|
345
345
|
| `menuKeys(options?)` | `Menu` | The WAI-ARIA menu pattern: roving tabindex, arrows, Home/End, typeahead. |
|
|
346
346
|
| `menubarKeys(options?)` | `Menubar` | The WAI-ARIA menubar pattern, handing off into whichever `Menu` opens. |
|
|
@@ -351,7 +351,7 @@ script never runs, so the cost of every behavior stays visible before you apply
|
|
|
351
351
|
| `rangePreview(model)` | `RangeCalendar.Grid` | Hover and focus range preview against a `CalendarModel`'s pending anchor. |
|
|
352
352
|
| `resizeHandle(axis, session)` | `Resizable.Handle` | Pointer resize against a `ResizeSession`, mirrored as a custom property. |
|
|
353
353
|
| `stepper(options?)` | `NumberField.Group` | Press-and-hold repeat for the increment and decrement buttons. |
|
|
354
|
-
| `tabKeys(options?)` | `Tabs.List` | Delegated arrow/Home/End activation through the shared
|
|
354
|
+
| `tabKeys(options?)` | `Tabs.List` | Delegated arrow/Home/End activation through the shared `@remix-run/ui/tabs` context. |
|
|
355
355
|
| `themeToggle(options?)` | any host | Switches `<html>` between light, dark and system through commands, persisted to a cookie. |
|
|
356
356
|
| `treeKeys(model)` | `Tree` | The WAI-ARIA tree pattern against a `SelectionModel`, typeahead included. |
|
|
357
357
|
| `validate(schema)` | a native form control | Applies a `remix/data-schema` schema through `setCustomValidity()`, mirrored into a `FieldError`. |
|
|
@@ -444,9 +444,9 @@ the component and not in the mixin. The island owns the instance and re-renders
|
|
|
444
444
|
events:
|
|
445
445
|
|
|
446
446
|
```tsx
|
|
447
|
-
import type { Handle } from "remix/
|
|
447
|
+
import type { Handle } from "remix/component";
|
|
448
448
|
|
|
449
|
-
import { clientEntry } from "remix/
|
|
449
|
+
import { clientEntry } from "remix/component";
|
|
450
450
|
|
|
451
451
|
import { Toast } from "@sdxc/ui";
|
|
452
452
|
import { Toaster } from "@sdxc/ui/behaviors";
|
|
@@ -533,7 +533,7 @@ A style recipe, an animation factory, and a local `css()` call compose as disjoi
|
|
|
533
533
|
in one array:
|
|
534
534
|
|
|
535
535
|
```tsx
|
|
536
|
-
import { css } from "remix/
|
|
536
|
+
import { css } from "remix/component";
|
|
537
537
|
|
|
538
538
|
import { zoom } from "@sdxc/ui/animations";
|
|
539
539
|
import { floatingSurface, interactiveTransition } from "@sdxc/ui/styles";
|
|
@@ -570,7 +570,7 @@ part. `TextField`'s four — `label`, `input`, `description`, `error` — are th
|
|
|
570
570
|
every field wrapper extends:
|
|
571
571
|
|
|
572
572
|
```tsx
|
|
573
|
-
import { css } from "remix/
|
|
573
|
+
import { css } from "remix/component";
|
|
574
574
|
|
|
575
575
|
import { TextField } from "@sdxc/ui";
|
|
576
576
|
|
|
@@ -625,7 +625,7 @@ context. The canonical shape is an action that parses the submission and re-rend
|
|
|
625
625
|
page with `issues` set:
|
|
626
626
|
|
|
627
627
|
```tsx
|
|
628
|
-
import type { Handle } from "remix/
|
|
628
|
+
import type { Handle } from "remix/component";
|
|
629
629
|
|
|
630
630
|
import * as s from "remix/data-schema";
|
|
631
631
|
import { parseSafe } from "remix/data-schema";
|
|
@@ -670,7 +670,7 @@ appears in the same order as its matching series: the toggle wiring keys off sib
|
|
|
670
670
|
position rather than a series id.
|
|
671
671
|
|
|
672
672
|
```tsx
|
|
673
|
-
import { css } from "remix/
|
|
673
|
+
import { css } from "remix/component";
|
|
674
674
|
|
|
675
675
|
import { Chart } from "@sdxc/ui";
|
|
676
676
|
|
|
@@ -704,7 +704,7 @@ nearest point under the pointer or focus.
|
|
|
704
704
|
until a person scrolls away from the live edge:
|
|
705
705
|
|
|
706
706
|
```tsx
|
|
707
|
-
import { css } from "remix/
|
|
707
|
+
import { css } from "remix/component";
|
|
708
708
|
|
|
709
709
|
import { Bubble, Message, MessageScroller } from "@sdxc/ui";
|
|
710
710
|
import { ScrollFollowModel } from "@sdxc/ui/behaviors";
|
|
@@ -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
|
/** The `@sdxc/u` mixin type every factory in this file returns. */
|
|
14
14
|
type Mixin<Node extends Element> = MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
10
|
import type { UtilityMixin } from "@sdxc/u";
|
|
11
|
-
import type { CSSMixinDescriptor } from "remix/
|
|
11
|
+
import type { CSSMixinDescriptor } from "remix/component";
|
|
12
12
|
/**
|
|
13
13
|
* Options accepted by {@link scrollShadow}.
|
|
14
14
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import type { CSSMixinDescriptor } from "remix/
|
|
10
|
+
import type { CSSMixinDescriptor } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Options accepted by {@link enterExit}.
|
|
13
13
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types describing the announcements and events {@link Announcer} owns.
|
|
13
13
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
const DEFAULT_PRIORITY = "polite";
|
|
12
12
|
/**
|
|
13
13
|
* Owns a priority-ordered queue of aria-live announcements. A live-region
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import { TypedEventTarget } from "remix/
|
|
9
|
+
import { TypedEventTarget } from "remix/component";
|
|
10
10
|
/**
|
|
11
11
|
* Prop and event-payload types for {@link CalendarModel}.
|
|
12
12
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import { TypedEventTarget } from "remix/
|
|
9
|
+
import { TypedEventTarget } from "remix/component";
|
|
10
10
|
import { dispatchChange } from "../utils/dispatch-change.js";
|
|
11
11
|
const DAYS_PER_WEEK = 7;
|
|
12
12
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types associated with {@link DragSession}: the dragged item, the drop
|
|
13
13
|
* candidate it tracks, and the event it dispatches.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
import { dispatchChange } from "../utils/dispatch-change.js";
|
|
12
12
|
/**
|
|
13
13
|
* Owns one drag-and-drop interaction and dispatches a plain `"change"` event
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types associated with {@link FilterModel}: the option shape it filters
|
|
13
13
|
* over, its construction options, and the event it dispatches.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
import { dispatchChange } from "../utils/dispatch-change.js";
|
|
12
12
|
const DEFAULT_QUERY = "";
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types describing the panel group a `ResizeSession` operates over, and the
|
|
13
13
|
* events it dispatches.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
const DEFAULT_PANEL_MIN_SIZE = 0;
|
|
12
12
|
const DEFAULT_PANEL_MAX_SIZE = 100;
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types associated with {@link ScrollFollowModel}: the shape of a scroll
|
|
13
13
|
* intent, its constructor options, and the event it dispatches.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
import { dispatchChange } from "../utils/dispatch-change.js";
|
|
12
12
|
const DEFAULT_PINNED = true;
|
|
13
13
|
const DEFAULT_ALIGN = "start";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
const DEFAULT_MODE = "multiple";
|
|
12
12
|
/**
|
|
13
13
|
* State model for list, grid, tree, and table row selection. Every mutating
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
/**
|
|
12
12
|
* Types associated with {@link Toaster}: the toast shape it queues, its
|
|
13
13
|
* construction and per-toast options, and the events it dispatches.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
|
-
import { TypedEventTarget } from "remix/
|
|
10
|
+
import { TypedEventTarget } from "remix/component";
|
|
11
11
|
import { dispatchChange } from "../utils/dispatch-change.js";
|
|
12
12
|
/** Auto-dismiss delay, in milliseconds, a toast uses when {@link Toaster.AddOptions.duration} is omitted. */
|
|
13
13
|
const DEFAULT_DURATION = 5000;
|
|
@@ -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
|
import { Disclosure } from "./disclosure.js";
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for {@link Accordion} and its compound parts.
|
|
@@ -85,9 +85,9 @@ export declare namespace Accordion {
|
|
|
85
85
|
* </Accordion.Item>
|
|
86
86
|
* </Accordion>
|
|
87
87
|
*/
|
|
88
|
-
export declare function Accordion(handle: Handle<Accordion.Props>): () => import("remix/
|
|
88
|
+
export declare function Accordion(handle: Handle<Accordion.Props>): () => import("remix/component").RemixElement;
|
|
89
89
|
export declare namespace Accordion {
|
|
90
|
-
var Item: (handle: Handle<Accordion.ItemProps>) => () => import("remix/
|
|
91
|
-
var Trigger: (handle: Handle<Accordion.TriggerProps>) => () => import("remix/
|
|
92
|
-
var Content: (handle: Handle<Accordion.ContentProps>) => () => import("remix/
|
|
90
|
+
var Item: (handle: Handle<Accordion.ItemProps>) => () => import("remix/component").RemixElement;
|
|
91
|
+
var Trigger: (handle: Handle<Accordion.TriggerProps>) => () => import("remix/component").RemixElement;
|
|
92
|
+
var Content: (handle: Handle<Accordion.ContentProps>) => () => import("remix/component").RemixElement;
|
|
93
93
|
}
|
|
@@ -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, borderEdge, fg } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, rounded, transition, transitionDuration } from "@sdxc/u/effects";
|
|
4
4
|
import { justify, shrink } from "@sdxc/u/layout";
|
|
@@ -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 { Button } from "./button.js";
|
|
13
13
|
import { Dialog } from "./dialog.js";
|
|
14
14
|
/**
|
|
@@ -99,12 +99,12 @@ export declare namespace AlertDialog {
|
|
|
99
99
|
* </AlertDialog.Footer>
|
|
100
100
|
* </AlertDialog>
|
|
101
101
|
*/
|
|
102
|
-
export declare function AlertDialog(handle: Handle<AlertDialog.Props>): () => import("remix/
|
|
102
|
+
export declare function AlertDialog(handle: Handle<AlertDialog.Props>): () => import("remix/component").RemixElement;
|
|
103
103
|
export declare namespace AlertDialog {
|
|
104
|
-
var Header: (handle: Handle<AlertDialog.HeaderProps>) => () => import("remix/
|
|
105
|
-
var Title: (handle: Handle<AlertDialog.TitleProps>) => () => import("remix/
|
|
106
|
-
var Description: (handle: Handle<AlertDialog.DescriptionProps>) => () => import("remix/
|
|
107
|
-
var Footer: (handle: Handle<AlertDialog.FooterProps>) => () => import("remix/
|
|
108
|
-
var Action: (handle: Handle<AlertDialog.ActionProps>) => () => import("remix/
|
|
109
|
-
var Cancel: (handle: Handle<AlertDialog.CancelProps>) => () => import("remix/
|
|
104
|
+
var Header: (handle: Handle<AlertDialog.HeaderProps>) => () => import("remix/component").RemixElement;
|
|
105
|
+
var Title: (handle: Handle<AlertDialog.TitleProps>) => () => import("remix/component").RemixElement;
|
|
106
|
+
var Description: (handle: Handle<AlertDialog.DescriptionProps>) => () => import("remix/component").RemixElement;
|
|
107
|
+
var Footer: (handle: Handle<AlertDialog.FooterProps>) => () => import("remix/component").RemixElement;
|
|
108
|
+
var Action: (handle: Handle<AlertDialog.ActionProps>) => () => import("remix/component").RemixElement;
|
|
109
|
+
var Cancel: (handle: Handle<AlertDialog.CancelProps>) => () => import("remix/component").RemixElement;
|
|
110
110
|
}
|
|
@@ -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
|
import type { SemanticColor } from "../utils/semantic-color.js";
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for {@link Alert} and its compound parts.
|
|
@@ -99,11 +99,11 @@ export declare namespace Alert {
|
|
|
99
99
|
* </Alert.Content>
|
|
100
100
|
* </Alert>
|
|
101
101
|
*/
|
|
102
|
-
export declare function Alert(handle: Handle<Alert.Props>): () => import("remix/
|
|
102
|
+
export declare function Alert(handle: Handle<Alert.Props>): () => import("remix/component").RemixElement;
|
|
103
103
|
export declare namespace Alert {
|
|
104
|
-
var Icon: (handle: Handle<Alert.IconProps>) => () => import("remix/
|
|
105
|
-
var Content: (handle: Handle<Alert.ContentProps>) => () => import("remix/
|
|
106
|
-
var Title: (handle: Handle<Alert.TitleProps>) => () => import("remix/
|
|
107
|
-
var Description: (handle: Handle<Alert.DescriptionProps>) => () => import("remix/
|
|
108
|
-
var Action: (handle: Handle<Alert.ActionProps>) => () => import("remix/
|
|
104
|
+
var Icon: (handle: Handle<Alert.IconProps>) => () => import("remix/component").RemixElement;
|
|
105
|
+
var Content: (handle: Handle<Alert.ContentProps>) => () => import("remix/component").RemixElement;
|
|
106
|
+
var Title: (handle: Handle<Alert.TitleProps>) => () => import("remix/component").RemixElement;
|
|
107
|
+
var Description: (handle: Handle<Alert.DescriptionProps>) => () => import("remix/component").RemixElement;
|
|
108
|
+
var Action: (handle: Handle<Alert.ActionProps>) => () => import("remix/component").RemixElement;
|
|
109
109
|
}
|
package/dist/components/alert.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { border, colorMix, fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
4
|
import { absolute, basis, gap, grow, inset, relative, self, shrink, vstack } from "@sdxc/u/layout";
|
|
5
5
|
import { bs, is, mbe, minIs, p, pis } from "@sdxc/u/size";
|
|
6
6
|
import { when } from "@sdxc/u/state";
|
|
7
7
|
import { fontSize, leading, tracking, weight } from "@sdxc/u/typography";
|
|
8
|
-
import { attrs } from "remix/
|
|
8
|
+
import { attrs } from "remix/component";
|
|
9
9
|
import { semanticColorPanel } from "../styles/semantic-color-panel.js";
|
|
10
10
|
import { DEFAULT_ICON_ARIA_HIDDEN } from "../utils/decorative-icon.js";
|
|
11
11
|
import { resolveHeadingLevel, TAG_BY_LEVEL } from "./heading-scope.js";
|
|
@@ -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
|
/**
|
|
13
13
|
* Prop types for {@link AspectRatio}.
|
|
14
14
|
*/
|
|
@@ -41,4 +41,4 @@ export declare namespace AspectRatio {
|
|
|
41
41
|
* @example
|
|
42
42
|
* <AspectRatio ratio={4 / 3} />
|
|
43
43
|
*/
|
|
44
|
-
export declare function AspectRatio(handle: Handle<AspectRatio.Props>): () => import("remix/
|
|
44
|
+
export declare function AspectRatio(handle: Handle<AspectRatio.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, RemixNode } from "remix/
|
|
10
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
11
11
|
import { Button } from "./button.js";
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for {@link Attachment} and its compound parts.
|
|
@@ -133,14 +133,14 @@ export declare namespace Attachment {
|
|
|
133
133
|
* </Attachment.Actions>
|
|
134
134
|
* </Attachment>
|
|
135
135
|
*/
|
|
136
|
-
export declare function Attachment(handle: Handle<Attachment.Props>): () => import("remix/
|
|
136
|
+
export declare function Attachment(handle: Handle<Attachment.Props>): () => import("remix/component").RemixElement;
|
|
137
137
|
export declare namespace Attachment {
|
|
138
|
-
var Media: (handle: Handle<Attachment.MediaProps>) => () => import("remix/
|
|
139
|
-
var Content: (handle: Handle<Attachment.ContentProps>) => () => import("remix/
|
|
140
|
-
var Title: (handle: Handle<Attachment.TitleProps>) => () => import("remix/
|
|
141
|
-
var Description: (handle: Handle<Attachment.DescriptionProps>) => () => import("remix/
|
|
142
|
-
var Actions: (handle: Handle<Attachment.ActionsProps>) => () => import("remix/
|
|
143
|
-
var Action: (handle: Handle<Attachment.ActionProps>) => () => import("remix/
|
|
144
|
-
var Trigger: (handle: Handle<Attachment.TriggerProps>) => () => import("remix/
|
|
145
|
-
var Group: (handle: Handle<Attachment.GroupProps>) => () => import("remix/
|
|
138
|
+
var Media: (handle: Handle<Attachment.MediaProps>) => () => import("remix/component").RemixElement;
|
|
139
|
+
var Content: (handle: Handle<Attachment.ContentProps>) => () => import("remix/component").RemixElement;
|
|
140
|
+
var Title: (handle: Handle<Attachment.TitleProps>) => () => import("remix/component").RemixElement;
|
|
141
|
+
var Description: (handle: Handle<Attachment.DescriptionProps>) => () => import("remix/component").RemixElement;
|
|
142
|
+
var Actions: (handle: Handle<Attachment.ActionsProps>) => () => import("remix/component").RemixElement;
|
|
143
|
+
var Action: (handle: Handle<Attachment.ActionProps>) => () => import("remix/component").RemixElement;
|
|
144
|
+
var Trigger: (handle: Handle<Attachment.TriggerProps>) => () => import("remix/component").RemixElement;
|
|
145
|
+
var Group: (handle: Handle<Attachment.GroupProps>) => () => import("remix/component").RemixElement;
|
|
146
146
|
}
|
|
@@ -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 { rounded, transition } from "@sdxc/u/effects";
|
|
4
4
|
import { raw } from "@sdxc/u/general";
|
|
@@ -8,7 +8,7 @@ import { media } from "@sdxc/u/responsive";
|
|
|
8
8
|
import { aspect, bs, fit, is, minIs, p } from "@sdxc/u/size";
|
|
9
9
|
import { when } from "@sdxc/u/state";
|
|
10
10
|
import { text, textAlign, truncate, weight } from "@sdxc/u/typography";
|
|
11
|
-
import { attrs } from "remix/
|
|
11
|
+
import { attrs } from "remix/component";
|
|
12
12
|
import { shimmer } from "../animations/keyframes.js";
|
|
13
13
|
import { scrollFade } from "../animations/scroll.js";
|
|
14
14
|
import { Button } from "./button.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
|
-
import type { Handle } from "remix/
|
|
11
|
+
import type { Handle } from "remix/component";
|
|
12
12
|
import { ImagePlaceholder } from "./image-placeholder.js";
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for {@link Avatar} and its compound parts. Each part aliases
|
|
@@ -79,11 +79,11 @@ export declare namespace Avatar {
|
|
|
79
79
|
* <Avatar.Badge aria-label={t("status.online")} />
|
|
80
80
|
* </Avatar>
|
|
81
81
|
*/
|
|
82
|
-
export declare function Avatar(handle: Handle<Avatar.Props>): () => import("remix/
|
|
82
|
+
export declare function Avatar(handle: Handle<Avatar.Props>): () => import("remix/component").RemixElement;
|
|
83
83
|
export declare namespace Avatar {
|
|
84
|
-
var Image: (handle: Handle<ImagePlaceholder.ImageProps>) => () => import("remix/
|
|
85
|
-
var Fallback: (handle: Handle<ImagePlaceholder.FallbackProps>) => () => import("remix/
|
|
86
|
-
var Badge: (handle: Handle<ImagePlaceholder.BadgeProps>) => () => import("remix/
|
|
84
|
+
var Image: (handle: Handle<ImagePlaceholder.ImageProps>) => () => import("remix/component").RemixElement;
|
|
85
|
+
var Fallback: (handle: Handle<ImagePlaceholder.FallbackProps>) => () => import("remix/component").RemixElement;
|
|
86
|
+
var Badge: (handle: Handle<ImagePlaceholder.BadgeProps>) => () => import("remix/component").RemixElement;
|
|
87
87
|
var Group: typeof AvatarGroup;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
@@ -100,7 +100,7 @@ export declare namespace Avatar {
|
|
|
100
100
|
* <Avatar.Group.Count>+3</Avatar.Group.Count>
|
|
101
101
|
* </Avatar.Group>
|
|
102
102
|
*/
|
|
103
|
-
declare function AvatarGroup(handle: Handle<Avatar.GroupProps>): () => import("remix/
|
|
103
|
+
declare function AvatarGroup(handle: Handle<Avatar.GroupProps>): () => import("remix/component").RemixElement;
|
|
104
104
|
declare namespace AvatarGroup {
|
|
105
105
|
var Count: typeof AvatarGroupCount;
|
|
106
106
|
}
|
|
@@ -114,5 +114,5 @@ declare namespace AvatarGroup {
|
|
|
114
114
|
* @example
|
|
115
115
|
* <Avatar.Group.Count>+3</Avatar.Group.Count>
|
|
116
116
|
*/
|
|
117
|
-
declare function AvatarGroupCount(handle: Handle<Avatar.GroupCountProps>): () => import("remix/
|
|
117
|
+
declare function AvatarGroupCount(handle: Handle<Avatar.GroupCountProps>): () => import("remix/component").RemixElement;
|
|
118
118
|
export {};
|
|
@@ -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
|
import type { SemanticColor } from "../utils/semantic-color.js";
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for {@link Badge} and its compound parts.
|
|
@@ -59,8 +59,8 @@ export declare namespace Badge {
|
|
|
59
59
|
* @example
|
|
60
60
|
* <Badge color="danger" variant="outline">{t("badge.failed")}</Badge>
|
|
61
61
|
*/
|
|
62
|
-
export declare function Badge(handle: Handle<Badge.Props>): () => import("remix/
|
|
62
|
+
export declare function Badge(handle: Handle<Badge.Props>): () => import("remix/component").RemixElement;
|
|
63
63
|
export declare namespace Badge {
|
|
64
|
-
var Icon: (handle: Handle<Badge.IconProps>) => () => import("remix/
|
|
65
|
-
var Text: (handle: Handle<Badge.TextProps>) => () => import("remix/
|
|
64
|
+
var Icon: (handle: Handle<Badge.IconProps>) => () => import("remix/component").RemixElement;
|
|
65
|
+
var Text: (handle: Handle<Badge.TextProps>) => () => import("remix/component").RemixElement;
|
|
66
66
|
}
|
package/dist/components/badge.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, border, fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded, transition } from "@sdxc/u/effects";
|
|
4
4
|
import { userSelect } from "@sdxc/u/general";
|
|
@@ -6,7 +6,7 @@ import { gap, inlineFlex, items, shrink } from "@sdxc/u/layout";
|
|
|
6
6
|
import { bs, is, pb, pi } from "@sdxc/u/size";
|
|
7
7
|
import { data, when } from "@sdxc/u/state";
|
|
8
8
|
import { fontSize, leading, nowrap, weight } from "@sdxc/u/typography";
|
|
9
|
-
import { attrs } from "remix/
|
|
9
|
+
import { attrs } from "remix/component";
|
|
10
10
|
import { DEFAULT_ICON_ARIA_HIDDEN } from "../utils/decorative-icon.js";
|
|
11
11
|
/** Semantic color role {@link Badge} falls back to when `color` is omitted. */
|
|
12
12
|
const DEFAULT_COLOR = "neutral";
|
|
@@ -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 } from "remix/
|
|
13
|
+
import type { Handle, Props as TagProps } from "remix/component";
|
|
14
14
|
import { Link } from "./link.js";
|
|
15
15
|
/**
|
|
16
16
|
* Prop types for {@link Breadcrumbs} and its compound parts.
|
|
@@ -59,9 +59,9 @@ export declare namespace Breadcrumbs {
|
|
|
59
59
|
* </Breadcrumbs.List>
|
|
60
60
|
* </Breadcrumbs>
|
|
61
61
|
*/
|
|
62
|
-
export declare function Breadcrumbs(handle: Handle<Breadcrumbs.Props>): () => import("remix/
|
|
62
|
+
export declare function Breadcrumbs(handle: Handle<Breadcrumbs.Props>): () => import("remix/component").RemixElement;
|
|
63
63
|
export declare namespace Breadcrumbs {
|
|
64
|
-
var List: (handle: Handle<Breadcrumbs.ListProps>) => () => import("remix/
|
|
65
|
-
var Item: (handle: Handle<Breadcrumbs.ItemProps>) => () => import("remix/
|
|
66
|
-
var Link: (handle: Handle<Breadcrumbs.LinkProps>) => () => import("remix/
|
|
64
|
+
var List: (handle: Handle<Breadcrumbs.ListProps>) => () => import("remix/component").RemixElement;
|
|
65
|
+
var Item: (handle: Handle<Breadcrumbs.ItemProps>) => () => import("remix/component").RemixElement;
|
|
66
|
+
var Link: (handle: Handle<Breadcrumbs.LinkProps>) => () => import("remix/component").RemixElement;
|
|
67
67
|
}
|