@sdxc/ui 0.0.0-pre.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +812 -0
- package/dist/animations/index.d.ts +12 -0
- package/dist/animations/index.js +12 -0
- package/dist/animations/keyframes.d.ts +162 -0
- package/dist/animations/keyframes.js +297 -0
- package/dist/animations/scroll.d.ts +154 -0
- package/dist/animations/scroll.js +228 -0
- package/dist/animations/tokens.d.ts +47 -0
- package/dist/animations/tokens.js +47 -0
- package/dist/animations/transitions.d.ts +143 -0
- package/dist/animations/transitions.js +147 -0
- package/dist/behaviors/announcer.d.ts +90 -0
- package/dist/behaviors/announcer.js +93 -0
- package/dist/behaviors/calendar-model.d.ts +218 -0
- package/dist/behaviors/calendar-model.js +376 -0
- package/dist/behaviors/drag-session.d.ts +119 -0
- package/dist/behaviors/drag-session.js +110 -0
- package/dist/behaviors/filter-model.d.ts +117 -0
- package/dist/behaviors/filter-model.js +185 -0
- package/dist/behaviors/index.d.ts +16 -0
- package/dist/behaviors/index.js +16 -0
- package/dist/behaviors/resize-session.d.ts +115 -0
- package/dist/behaviors/resize-session.js +157 -0
- package/dist/behaviors/scroll-follow-model.d.ts +180 -0
- package/dist/behaviors/scroll-follow-model.js +197 -0
- package/dist/behaviors/selection-model.d.ts +129 -0
- package/dist/behaviors/selection-model.js +259 -0
- package/dist/behaviors/toaster.d.ts +144 -0
- package/dist/behaviors/toaster.js +228 -0
- package/dist/components/accordion.d.ts +93 -0
- package/dist/components/accordion.js +165 -0
- package/dist/components/alert-dialog.d.ts +110 -0
- package/dist/components/alert-dialog.js +169 -0
- package/dist/components/alert.d.ts +109 -0
- package/dist/components/alert.js +160 -0
- package/dist/components/aspect-ratio.d.ts +44 -0
- package/dist/components/aspect-ratio.js +35 -0
- package/dist/components/attachment.d.ts +146 -0
- package/dist/components/attachment.js +320 -0
- package/dist/components/avatar.d.ts +118 -0
- package/dist/components/avatar.js +89 -0
- package/dist/components/badge.d.ts +66 -0
- package/dist/components/badge.js +129 -0
- package/dist/components/breadcrumbs.d.ts +67 -0
- package/dist/components/breadcrumbs.js +121 -0
- package/dist/components/bubble.d.ts +91 -0
- package/dist/components/bubble.js +216 -0
- package/dist/components/button.d.ts +78 -0
- package/dist/components/button.js +207 -0
- package/dist/components/calendar.d.ts +166 -0
- package/dist/components/calendar.js +320 -0
- package/dist/components/card.d.ts +82 -0
- package/dist/components/card.js +126 -0
- package/dist/components/carousel.d.ts +96 -0
- package/dist/components/carousel.js +214 -0
- package/dist/components/chart.d.ts +485 -0
- package/dist/components/chart.js +563 -0
- package/dist/components/checkbox-group.d.ts +58 -0
- package/dist/components/checkbox-group.js +53 -0
- package/dist/components/checkbox.d.ts +61 -0
- package/dist/components/checkbox.js +81 -0
- package/dist/components/color-area.d.ts +83 -0
- package/dist/components/color-area.js +251 -0
- package/dist/components/color-field.d.ts +128 -0
- package/dist/components/color-field.js +73 -0
- package/dist/components/color-picker.d.ts +132 -0
- package/dist/components/color-picker.js +183 -0
- package/dist/components/color-slider.d.ts +103 -0
- package/dist/components/color-slider.js +198 -0
- package/dist/components/color-swatch-picker.d.ts +106 -0
- package/dist/components/color-swatch-picker.js +75 -0
- package/dist/components/color-swatch.d.ts +57 -0
- package/dist/components/color-swatch.js +82 -0
- package/dist/components/color-wheel.d.ts +58 -0
- package/dist/components/color-wheel.js +160 -0
- package/dist/components/combobox.d.ts +73 -0
- package/dist/components/combobox.js +108 -0
- package/dist/components/command.d.ts +80 -0
- package/dist/components/command.js +151 -0
- package/dist/components/confirm.d.ts +124 -0
- package/dist/components/confirm.js +56 -0
- package/dist/components/context-menu.d.ts +108 -0
- package/dist/components/context-menu.js +200 -0
- package/dist/components/date-field.d.ts +110 -0
- package/dist/components/date-field.js +49 -0
- package/dist/components/date-picker.d.ts +136 -0
- package/dist/components/date-picker.js +155 -0
- package/dist/components/date-range-picker.d.ts +152 -0
- package/dist/components/date-range-picker.js +106 -0
- package/dist/components/description.d.ts +36 -0
- package/dist/components/description.js +21 -0
- package/dist/components/dialog.d.ts +97 -0
- package/dist/components/dialog.js +203 -0
- package/dist/components/disclosure.d.ts +85 -0
- package/dist/components/disclosure.js +180 -0
- package/dist/components/drawer.d.ts +82 -0
- package/dist/components/drawer.js +162 -0
- package/dist/components/drop-indicator.d.ts +43 -0
- package/dist/components/drop-indicator.js +47 -0
- package/dist/components/drop-zone.d.ts +73 -0
- package/dist/components/drop-zone.js +54 -0
- package/dist/components/empty.d.ts +89 -0
- package/dist/components/empty.js +129 -0
- package/dist/components/field-error.d.ts +41 -0
- package/dist/components/field-error.js +36 -0
- package/dist/components/file-trigger.d.ts +84 -0
- package/dist/components/file-trigger.js +169 -0
- package/dist/components/form.d.ts +118 -0
- package/dist/components/form.js +113 -0
- package/dist/components/grid-list.d.ts +112 -0
- package/dist/components/grid-list.js +220 -0
- package/dist/components/group.d.ts +45 -0
- package/dist/components/group.js +44 -0
- package/dist/components/header.d.ts +33 -0
- package/dist/components/header.js +29 -0
- package/dist/components/heading-scope.d.ts +83 -0
- package/dist/components/heading-scope.js +82 -0
- package/dist/components/heading.d.ts +50 -0
- package/dist/components/heading.js +31 -0
- package/dist/components/hover-card.d.ts +77 -0
- package/dist/components/hover-card.js +151 -0
- package/dist/components/image-placeholder.d.ts +105 -0
- package/dist/components/image-placeholder.js +212 -0
- package/dist/components/index.d.ts +109 -0
- package/dist/components/index.js +109 -0
- package/dist/components/input.d.ts +53 -0
- package/dist/components/input.js +76 -0
- package/dist/components/item.d.ts +97 -0
- package/dist/components/item.js +185 -0
- package/dist/components/keyboard.d.ts +33 -0
- package/dist/components/keyboard.js +20 -0
- package/dist/components/label.d.ts +38 -0
- package/dist/components/label.js +24 -0
- package/dist/components/link-button.d.ts +59 -0
- package/dist/components/link-button.js +174 -0
- package/dist/components/link.d.ts +43 -0
- package/dist/components/link.js +85 -0
- package/dist/components/listbox.d.ts +119 -0
- package/dist/components/listbox.js +114 -0
- package/dist/components/logo.d.ts +117 -0
- package/dist/components/logo.js +89 -0
- package/dist/components/marker.d.ts +82 -0
- package/dist/components/marker.js +163 -0
- package/dist/components/menu.d.ts +90 -0
- package/dist/components/menu.js +146 -0
- package/dist/components/menubar.d.ts +54 -0
- package/dist/components/menubar.js +118 -0
- package/dist/components/message-scroller.d.ts +109 -0
- package/dist/components/message-scroller.js +180 -0
- package/dist/components/message.d.ts +104 -0
- package/dist/components/message.js +200 -0
- package/dist/components/meter.d.ts +60 -0
- package/dist/components/meter.js +110 -0
- package/dist/components/modal.d.ts +71 -0
- package/dist/components/modal.js +120 -0
- package/dist/components/nav-link.d.ts +53 -0
- package/dist/components/nav-link.js +83 -0
- package/dist/components/navigation-menu.d.ts +150 -0
- package/dist/components/navigation-menu.js +381 -0
- package/dist/components/number-field.d.ts +76 -0
- package/dist/components/number-field.js +190 -0
- package/dist/components/otp-field.d.ts +68 -0
- package/dist/components/otp-field.js +46 -0
- package/dist/components/overlay-arrow.d.ts +51 -0
- package/dist/components/overlay-arrow.js +77 -0
- package/dist/components/pagination.d.ts +67 -0
- package/dist/components/pagination.js +164 -0
- package/dist/components/popover.d.ts +69 -0
- package/dist/components/popover.js +68 -0
- package/dist/components/progress-bar.d.ts +53 -0
- package/dist/components/progress-bar.js +90 -0
- package/dist/components/radio-group.d.ts +102 -0
- package/dist/components/radio-group.js +114 -0
- package/dist/components/range-calendar.d.ts +169 -0
- package/dist/components/range-calendar.js +216 -0
- package/dist/components/resizable.d.ts +98 -0
- package/dist/components/resizable.js +151 -0
- package/dist/components/scroll-area.d.ts +54 -0
- package/dist/components/scroll-area.js +89 -0
- package/dist/components/search-field.d.ts +55 -0
- package/dist/components/search-field.js +49 -0
- package/dist/components/section.d.ts +37 -0
- package/dist/components/section.js +22 -0
- package/dist/components/select.d.ts +96 -0
- package/dist/components/select.js +285 -0
- package/dist/components/selection-indicator.d.ts +47 -0
- package/dist/components/selection-indicator.js +50 -0
- package/dist/components/sentinel-row.d.ts +22 -0
- package/dist/components/sentinel-row.js +29 -0
- package/dist/components/separator.d.ts +35 -0
- package/dist/components/separator.js +48 -0
- package/dist/components/shared-element.d.ts +45 -0
- package/dist/components/shared-element.js +48 -0
- package/dist/components/sheet.d.ts +78 -0
- package/dist/components/sheet.js +167 -0
- package/dist/components/sidebar.d.ts +288 -0
- package/dist/components/sidebar.js +1068 -0
- package/dist/components/skeleton.d.ts +36 -0
- package/dist/components/skeleton.js +38 -0
- package/dist/components/slider.d.ts +102 -0
- package/dist/components/slider.js +179 -0
- package/dist/components/spinner.d.ts +55 -0
- package/dist/components/spinner.js +51 -0
- package/dist/components/switch.d.ts +47 -0
- package/dist/components/switch.js +82 -0
- package/dist/components/table.d.ts +139 -0
- package/dist/components/table.js +216 -0
- package/dist/components/tabs.d.ts +124 -0
- package/dist/components/tabs.js +246 -0
- package/dist/components/tag-group.d.ts +83 -0
- package/dist/components/tag-group.js +157 -0
- package/dist/components/text-field.d.ts +119 -0
- package/dist/components/text-field.js +51 -0
- package/dist/components/text.d.ts +34 -0
- package/dist/components/text.js +19 -0
- package/dist/components/textarea.d.ts +52 -0
- package/dist/components/textarea.js +82 -0
- package/dist/components/time-field.d.ts +110 -0
- package/dist/components/time-field.js +48 -0
- package/dist/components/toast.d.ts +149 -0
- package/dist/components/toast.js +365 -0
- package/dist/components/toggle-button.d.ts +115 -0
- package/dist/components/toggle-button.js +237 -0
- package/dist/components/toolbar.d.ts +47 -0
- package/dist/components/toolbar.js +54 -0
- package/dist/components/tooltip.d.ts +52 -0
- package/dist/components/tooltip.js +92 -0
- package/dist/components/tree.d.ts +123 -0
- package/dist/components/tree.js +239 -0
- package/dist/components/typeset.d.ts +53 -0
- package/dist/components/typeset.js +271 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/mixins/aria-checked.d.ts +42 -0
- package/dist/mixins/aria-checked.js +127 -0
- package/dist/mixins/attachment-trigger.d.ts +64 -0
- package/dist/mixins/attachment-trigger.js +190 -0
- package/dist/mixins/calendar-keys.d.ts +27 -0
- package/dist/mixins/calendar-keys.js +113 -0
- package/dist/mixins/carousel-controls.d.ts +30 -0
- package/dist/mixins/carousel-controls.js +222 -0
- package/dist/mixins/chart-tooltip.d.ts +118 -0
- package/dist/mixins/chart-tooltip.js +323 -0
- package/dist/mixins/clear-field.d.ts +60 -0
- package/dist/mixins/clear-field.js +100 -0
- package/dist/mixins/color-area-drag.d.ts +58 -0
- package/dist/mixins/color-area-drag.js +162 -0
- package/dist/mixins/color-channel-sync.d.ts +73 -0
- package/dist/mixins/color-channel-sync.js +169 -0
- package/dist/mixins/color-preview.d.ts +28 -0
- package/dist/mixins/color-preview.js +77 -0
- package/dist/mixins/color-wheel-drag.d.ts +58 -0
- package/dist/mixins/color-wheel-drag.js +139 -0
- package/dist/mixins/combobox-filter.d.ts +59 -0
- package/dist/mixins/combobox-filter.js +81 -0
- package/dist/mixins/command-filter.d.ts +55 -0
- package/dist/mixins/command-filter.js +121 -0
- package/dist/mixins/command-keys.d.ts +31 -0
- package/dist/mixins/command-keys.js +116 -0
- package/dist/mixins/context-menu.d.ts +24 -0
- package/dist/mixins/context-menu.js +64 -0
- package/dist/mixins/copy-to-clipboard.d.ts +64 -0
- package/dist/mixins/copy-to-clipboard.js +109 -0
- package/dist/mixins/dismiss.d.ts +77 -0
- package/dist/mixins/dismiss.js +151 -0
- package/dist/mixins/drag-reorder.d.ts +88 -0
- package/dist/mixins/drag-reorder.js +214 -0
- package/dist/mixins/drop-zone.d.ts +52 -0
- package/dist/mixins/drop-zone.js +132 -0
- package/dist/mixins/dual-range.d.ts +60 -0
- package/dist/mixins/dual-range.js +100 -0
- package/dist/mixins/grid-list-keys.d.ts +34 -0
- package/dist/mixins/grid-list-keys.js +260 -0
- package/dist/mixins/heading-level-fallback.d.ts +81 -0
- package/dist/mixins/heading-level-fallback.js +112 -0
- package/dist/mixins/hotkey.d.ts +26 -0
- package/dist/mixins/hotkey.js +132 -0
- package/dist/mixins/image-fallback.d.ts +57 -0
- package/dist/mixins/image-fallback.js +86 -0
- package/dist/mixins/index.d.ts +48 -0
- package/dist/mixins/index.js +48 -0
- package/dist/mixins/listbox-keys.d.ts +52 -0
- package/dist/mixins/listbox-keys.js +63 -0
- package/dist/mixins/long-press.d.ts +76 -0
- package/dist/mixins/long-press.js +130 -0
- package/dist/mixins/menu-keys.d.ts +40 -0
- package/dist/mixins/menu-keys.js +117 -0
- package/dist/mixins/menubar-keys.d.ts +59 -0
- package/dist/mixins/menubar-keys.js +230 -0
- package/dist/mixins/message-follow.d.ts +56 -0
- package/dist/mixins/message-follow.js +368 -0
- package/dist/mixins/otp-slots.d.ts +53 -0
- package/dist/mixins/otp-slots.js +175 -0
- package/dist/mixins/persist.d.ts +36 -0
- package/dist/mixins/persist.js +78 -0
- package/dist/mixins/press-toggle.d.ts +43 -0
- package/dist/mixins/press-toggle.js +61 -0
- package/dist/mixins/range-preview.d.ts +26 -0
- package/dist/mixins/range-preview.js +120 -0
- package/dist/mixins/resize-handle.d.ts +101 -0
- package/dist/mixins/resize-handle.js +288 -0
- package/dist/mixins/stepper.d.ts +81 -0
- package/dist/mixins/stepper.js +194 -0
- package/dist/mixins/tab-keys.d.ts +30 -0
- package/dist/mixins/tab-keys.js +63 -0
- package/dist/mixins/theme-toggle.d.ts +82 -0
- package/dist/mixins/theme-toggle.js +158 -0
- package/dist/mixins/track-host-node.d.ts +34 -0
- package/dist/mixins/track-host-node.js +42 -0
- package/dist/mixins/treeKeys.d.ts +57 -0
- package/dist/mixins/treeKeys.js +266 -0
- package/dist/mixins/validate.d.ts +65 -0
- package/dist/mixins/validate.js +139 -0
- package/dist/mixins/view-transition.d.ts +56 -0
- package/dist/mixins/view-transition.js +111 -0
- package/dist/styles/chart-palette.d.ts +34 -0
- package/dist/styles/chart-palette.js +27 -0
- package/dist/styles/field-stack-layout.d.ts +27 -0
- package/dist/styles/field-stack-layout.js +16 -0
- package/dist/styles/floating-surface.d.ts +32 -0
- package/dist/styles/floating-surface.js +30 -0
- package/dist/styles/graphic-host.d.ts +25 -0
- package/dist/styles/graphic-host.js +18 -0
- package/dist/styles/index.d.ts +20 -0
- package/dist/styles/index.js +20 -0
- package/dist/styles/interactive-transition.d.ts +32 -0
- package/dist/styles/interactive-transition.js +32 -0
- package/dist/styles/legend-toggle.d.ts +29 -0
- package/dist/styles/legend-toggle.js +24 -0
- package/dist/styles/output-caption-text.d.ts +22 -0
- package/dist/styles/output-caption-text.js +15 -0
- package/dist/styles/panel-chrome.d.ts +34 -0
- package/dist/styles/panel-chrome.js +26 -0
- package/dist/styles/range-thumb-appearance.d.ts +36 -0
- package/dist/styles/range-thumb-appearance.js +76 -0
- package/dist/styles/rtl-aware-gradient-direction.d.ts +28 -0
- package/dist/styles/rtl-aware-gradient-direction.js +28 -0
- package/dist/styles/semantic-color-panel.d.ts +35 -0
- package/dist/styles/semantic-color-panel.js +41 -0
- package/dist/utils/chart-marker-indices.d.ts +22 -0
- package/dist/utils/chart-marker-indices.js +45 -0
- package/dist/utils/chart-path.d.ts +86 -0
- package/dist/utils/chart-path.js +122 -0
- package/dist/utils/chart-scale.d.ts +182 -0
- package/dist/utils/chart-scale.js +221 -0
- package/dist/utils/color-math.d.ts +252 -0
- package/dist/utils/color-math.js +480 -0
- package/dist/utils/command-event.d.ts +24 -0
- package/dist/utils/command-event.js +26 -0
- package/dist/utils/css-styles.d.ts +21 -0
- package/dist/utils/css-styles.js +11 -0
- package/dist/utils/decorative-icon.d.ts +15 -0
- package/dist/utils/decorative-icon.js +15 -0
- package/dist/utils/disabled-selector.d.ts +22 -0
- package/dist/utils/disabled-selector.js +22 -0
- package/dist/utils/dispatch-change.d.ts +17 -0
- package/dist/utils/dispatch-change.js +19 -0
- package/dist/utils/field-parts.d.ts +26 -0
- package/dist/utils/field-parts.js +12 -0
- package/dist/utils/full-turn-radians.d.ts +16 -0
- package/dist/utils/full-turn-radians.js +16 -0
- package/dist/utils/geometry.d.ts +14 -0
- package/dist/utils/geometry.js +9 -0
- package/dist/utils/has-accessible-text.d.ts +19 -0
- package/dist/utils/has-accessible-text.js +30 -0
- package/dist/utils/hue-spectrum.d.ts +19 -0
- package/dist/utils/hue-spectrum.js +19 -0
- package/dist/utils/index.d.ts +35 -0
- package/dist/utils/index.js +35 -0
- package/dist/utils/is-new-primary-press.d.ts +29 -0
- package/dist/utils/is-new-primary-press.js +31 -0
- package/dist/utils/keyboard-nav.d.ts +64 -0
- package/dist/utils/keyboard-nav.js +79 -0
- package/dist/utils/merge-style.d.ts +33 -0
- package/dist/utils/merge-style.js +30 -0
- package/dist/utils/paired-range-inputs.d.ts +26 -0
- package/dist/utils/paired-range-inputs.js +29 -0
- package/dist/utils/placement.d.ts +18 -0
- package/dist/utils/placement.js +12 -0
- package/dist/utils/prefers-reduced-motion.d.ts +17 -0
- package/dist/utils/prefers-reduced-motion.js +19 -0
- package/dist/utils/resolve-field-wiring.d.ts +83 -0
- package/dist/utils/resolve-field-wiring.js +53 -0
- package/dist/utils/resolve-fill-percent.d.ts +28 -0
- package/dist/utils/resolve-fill-percent.js +34 -0
- package/dist/utils/round-precision.d.ts +22 -0
- package/dist/utils/round-precision.js +25 -0
- package/dist/utils/semantic-color-panel.d.ts +35 -0
- package/dist/utils/semantic-color-panel.js +28 -0
- package/dist/utils/semantic-color.d.ts +17 -0
- package/dist/utils/semantic-color.js +11 -0
- package/dist/utils/warn-if-no-accessible-name.d.ts +52 -0
- package/dist/utils/warn-if-no-accessible-name.js +55 -0
- package/dist/utils/write-cookie.d.ts +35 -0
- package/dist/utils/write-cookie.js +37 -0
- package/package.json +32 -0
- package/src/reset.css +223 -0
- package/src/theme.css +146 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An interactive control for a single, immediate action — submitting a form,
|
|
3
|
+
* triggering a command, opening a dialog. Its host renders as a native
|
|
4
|
+
* `<button>` shaped by a semantic color role, a visual weight variant, and a
|
|
5
|
+
* size, and holds its footprint while rendering a busy pending state.
|
|
6
|
+
*
|
|
7
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
|
+
* @copyright Sergio Xalambrí 2026
|
|
9
|
+
*/
|
|
10
|
+
import type { Handle, Props as TagProps } from "remix/ui";
|
|
11
|
+
import type { SemanticColor } from "../utils/semantic-color.js";
|
|
12
|
+
/**
|
|
13
|
+
* Prop types for {@link Button}.
|
|
14
|
+
*/
|
|
15
|
+
export declare namespace Button {
|
|
16
|
+
/**
|
|
17
|
+
* Semantic color role, each mapped to its matching `--ui-*` variables.
|
|
18
|
+
*/
|
|
19
|
+
type Color = SemanticColor;
|
|
20
|
+
/**
|
|
21
|
+
* Visual weight the button renders with: a solid fill with an on-solid
|
|
22
|
+
* foreground, a transparent fill with a strong colored border, or a fully
|
|
23
|
+
* transparent fill with just a colored label.
|
|
24
|
+
*/
|
|
25
|
+
type Variant = "solid" | "outline" | "ghost";
|
|
26
|
+
/**
|
|
27
|
+
* Size variant controlling the button's padding and font size.
|
|
28
|
+
*/
|
|
29
|
+
type Size = "sm" | "md" | "lg";
|
|
30
|
+
/**
|
|
31
|
+
* Per-part styling for the elements a pending button renders besides its
|
|
32
|
+
* own host.
|
|
33
|
+
*/
|
|
34
|
+
interface PartsProps {
|
|
35
|
+
/** Styling for the decorative rotating glyph shown while pending. */
|
|
36
|
+
spinner?: TagProps<"span">["mix"];
|
|
37
|
+
/**
|
|
38
|
+
* Styling for the wrapper holding the button's own children while
|
|
39
|
+
* pending; kept in the layout to preserve the button's footprint, but
|
|
40
|
+
* hidden from view and from assistive technology.
|
|
41
|
+
*/
|
|
42
|
+
content?: TagProps<"span">["mix"];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Props accepted by {@link Button}.
|
|
46
|
+
*/
|
|
47
|
+
interface Props extends TagProps<"button"> {
|
|
48
|
+
/** Semantic color role. Defaults to {@link DEFAULT_COLOR}. */
|
|
49
|
+
color?: Color;
|
|
50
|
+
/** Visual weight. Defaults to {@link DEFAULT_VARIANT}. */
|
|
51
|
+
variant?: Variant;
|
|
52
|
+
/** Size variant. Defaults to {@link DEFAULT_SIZE}. */
|
|
53
|
+
size?: Size;
|
|
54
|
+
/**
|
|
55
|
+
* Marks the button busy: merges into the native `disabled` attribute and
|
|
56
|
+
* swaps the visible content for a spinner glyph while holding the rendered
|
|
57
|
+
* footprint, so a page mid-request keeps its layout.
|
|
58
|
+
*/
|
|
59
|
+
isPending?: boolean;
|
|
60
|
+
/** Per-part styling for the pending state's internal elements. */
|
|
61
|
+
parts?: PartsProps;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Visual state lives in `data-color`/`data-variant`/`data-size` on the host, so
|
|
66
|
+
* hover, pressed, and focus-visible stay on native pseudo-classes. `type` precedes
|
|
67
|
+
* the spread so the platform sees it while parsing `command`/`commandfor`.
|
|
68
|
+
*
|
|
69
|
+
* @param handle Runtime handle carrying the host `<button>`'s props.
|
|
70
|
+
* @returns The render function producing the button's markup.
|
|
71
|
+
* @example
|
|
72
|
+
* <Button type="submit">{t("actions.save")}</Button>
|
|
73
|
+
* @example
|
|
74
|
+
* <Button color="danger" variant="outline" size="sm">{t("actions.delete")}</Button>
|
|
75
|
+
* @example
|
|
76
|
+
* <Button type="submit" isPending={isSubmitting}>{t("actions.save")}</Button>
|
|
77
|
+
*/
|
|
78
|
+
export declare function Button(handle: Handle<Button.Props>): () => import("remix/ui").RemixElement;
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "remix/ui/jsx-runtime";
|
|
2
|
+
import { LoaderCircleIcon } from "@sdxc/icons";
|
|
3
|
+
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
4
|
+
import { opacity, rounded, visibility } from "@sdxc/u/effects";
|
|
5
|
+
import { cursor, userSelect } from "@sdxc/u/general";
|
|
6
|
+
import { absolute, flex, gap, inlineFlex, inset, items, justify, relative, shrink, } from "@sdxc/u/layout";
|
|
7
|
+
import { bs, is, pb, pi } from "@sdxc/u/size";
|
|
8
|
+
import { when } from "@sdxc/u/state";
|
|
9
|
+
import { text, weight } from "@sdxc/u/typography";
|
|
10
|
+
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
11
|
+
import { warnIfNoAccessibleName } from "../utils/warn-if-no-accessible-name.js";
|
|
12
|
+
const DEFAULT_COLOR = "neutral";
|
|
13
|
+
const DEFAULT_VARIANT = "solid";
|
|
14
|
+
const DEFAULT_SIZE = "md";
|
|
15
|
+
/**
|
|
16
|
+
* Native `type` given to a button carrying `command`/`commandfor` and no
|
|
17
|
+
* `type` of its own: the platform treats a button that could also submit as an
|
|
18
|
+
* ambiguous invoker and skips its command, so an invoker needs this type.
|
|
19
|
+
*/
|
|
20
|
+
const INVOKER_TYPE = "button";
|
|
21
|
+
/**
|
|
22
|
+
* Visual state lives in `data-color`/`data-variant`/`data-size` on the host, so
|
|
23
|
+
* hover, pressed, and focus-visible stay on native pseudo-classes. `type` precedes
|
|
24
|
+
* the spread so the platform sees it while parsing `command`/`commandfor`.
|
|
25
|
+
*
|
|
26
|
+
* @param handle Runtime handle carrying the host `<button>`'s props.
|
|
27
|
+
* @returns The render function producing the button's markup.
|
|
28
|
+
* @example
|
|
29
|
+
* <Button type="submit">{t("actions.save")}</Button>
|
|
30
|
+
* @example
|
|
31
|
+
* <Button color="danger" variant="outline" size="sm">{t("actions.delete")}</Button>
|
|
32
|
+
* @example
|
|
33
|
+
* <Button type="submit" isPending={isSubmitting}>{t("actions.save")}</Button>
|
|
34
|
+
*/
|
|
35
|
+
export function Button(handle) {
|
|
36
|
+
return () => {
|
|
37
|
+
let { color, variant, size, isPending, disabled, type, parts, children, mix, ...rest } = handle.props;
|
|
38
|
+
let isInvoker = rest.command !== undefined || rest.commandfor !== undefined;
|
|
39
|
+
let resolvedType = type ?? (isInvoker ? INVOKER_TYPE : undefined);
|
|
40
|
+
let resolvedColor = color ?? DEFAULT_COLOR;
|
|
41
|
+
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
42
|
+
let resolvedSize = size ?? DEFAULT_SIZE;
|
|
43
|
+
let resolvedDisabled = disabled || isPending;
|
|
44
|
+
warnIfNoAccessibleName(handle.props, children, "Button: an icon-only button needs an `aria-label` describing what it does — assistive technology has no accessible text to announce otherwise.");
|
|
45
|
+
return (_jsx("button", { type: resolvedType, ...rest, "data-color": resolvedColor, "data-variant": resolvedVariant, "data-size": resolvedSize, "data-pending": isPending || undefined, disabled: resolvedDisabled, mix: [
|
|
46
|
+
when("&:focus-visible", [
|
|
47
|
+
outline({ color: "brand.ring", offset: 2 }),
|
|
48
|
+
when('&[data-color="neutral"]', outline("neutral.ring")),
|
|
49
|
+
when('&[data-color="success"]', outline("success.ring")),
|
|
50
|
+
when('&[data-color="warning"]', outline("warning.ring")),
|
|
51
|
+
when('&[data-color="danger"]', outline("danger.ring")),
|
|
52
|
+
]),
|
|
53
|
+
interactiveTransition(),
|
|
54
|
+
inlineFlex(),
|
|
55
|
+
items("center"),
|
|
56
|
+
justify("center"),
|
|
57
|
+
gap(2),
|
|
58
|
+
/**
|
|
59
|
+
* An icon keeps the size it was asked for when a narrow row squeezes the
|
|
60
|
+
* button: the label is what wraps or ellipsizes, since a compressed glyph
|
|
61
|
+
* reads as a rendering fault.
|
|
62
|
+
*/
|
|
63
|
+
when("& > svg", shrink()),
|
|
64
|
+
rounded("md"),
|
|
65
|
+
weight("medium"),
|
|
66
|
+
cursor("default"),
|
|
67
|
+
userSelect(),
|
|
68
|
+
pi(4),
|
|
69
|
+
pb(2),
|
|
70
|
+
text("sm"),
|
|
71
|
+
/**
|
|
72
|
+
* Every variant carries the same border width, colored to match its own
|
|
73
|
+
* fill (transparent for ghost), so solid and ghost render the exact
|
|
74
|
+
* footprint outline does.
|
|
75
|
+
*/
|
|
76
|
+
border({ width: 2, noStyleDefault: true }),
|
|
77
|
+
when('&[data-size="sm"]', [pi(3), pb(1.5), text("xs")]),
|
|
78
|
+
when('&[data-size="lg"]', [pi(5), pb(2.5), text("base")]),
|
|
79
|
+
when('&[data-variant="solid"]', [
|
|
80
|
+
when('&[data-color="brand"]', [
|
|
81
|
+
bg("brand.solid"),
|
|
82
|
+
border("brand.solid"),
|
|
83
|
+
fg("brand.onSolid"),
|
|
84
|
+
when("&:hover", [bg("brand.bg-solid-hover"), border("brand.bg-solid-hover")]),
|
|
85
|
+
when("&:active", [bg("brand.bg-solid-pressed"), border("brand.bg-solid-pressed")]),
|
|
86
|
+
]),
|
|
87
|
+
when('&[data-color="neutral"]', [
|
|
88
|
+
bg("neutral.solid"),
|
|
89
|
+
border("neutral.solid"),
|
|
90
|
+
fg("neutral.onSolid"),
|
|
91
|
+
when("&:hover", [bg("neutral.bg-solid-hover"), border("neutral.bg-solid-hover")]),
|
|
92
|
+
when("&:active", [
|
|
93
|
+
bg("neutral.bg-solid-pressed"),
|
|
94
|
+
border("neutral.bg-solid-pressed"),
|
|
95
|
+
]),
|
|
96
|
+
]),
|
|
97
|
+
when('&[data-color="success"]', [
|
|
98
|
+
bg("success.solid"),
|
|
99
|
+
border("success.solid"),
|
|
100
|
+
fg("success.onSolid"),
|
|
101
|
+
when("&:hover", [bg("success.bg-solid-hover"), border("success.bg-solid-hover")]),
|
|
102
|
+
when("&:active", [
|
|
103
|
+
bg("success.bg-solid-pressed"),
|
|
104
|
+
border("success.bg-solid-pressed"),
|
|
105
|
+
]),
|
|
106
|
+
]),
|
|
107
|
+
when('&[data-color="warning"]', [
|
|
108
|
+
bg("warning.solid"),
|
|
109
|
+
border("warning.solid"),
|
|
110
|
+
fg("warning.onSolid"),
|
|
111
|
+
when("&:hover", [bg("warning.bg-solid-hover"), border("warning.bg-solid-hover")]),
|
|
112
|
+
when("&:active", [
|
|
113
|
+
bg("warning.bg-solid-pressed"),
|
|
114
|
+
border("warning.bg-solid-pressed"),
|
|
115
|
+
]),
|
|
116
|
+
]),
|
|
117
|
+
when('&[data-color="danger"]', [
|
|
118
|
+
bg("danger.solid"),
|
|
119
|
+
border("danger.solid"),
|
|
120
|
+
fg("danger.onSolid"),
|
|
121
|
+
when("&:hover", [bg("danger.bg-solid-hover"), border("danger.bg-solid-hover")]),
|
|
122
|
+
when("&:active", [bg("danger.bg-solid-pressed"), border("danger.bg-solid-pressed")]),
|
|
123
|
+
]),
|
|
124
|
+
]),
|
|
125
|
+
when('&[data-variant="outline"]', [
|
|
126
|
+
bg("transparent"),
|
|
127
|
+
when('&[data-color="brand"]', [
|
|
128
|
+
border("brand.strong"),
|
|
129
|
+
fg("brand"),
|
|
130
|
+
when("&:hover", bg("brand.tint")),
|
|
131
|
+
when("&:active", bg("brand.bg-tint-hover")),
|
|
132
|
+
]),
|
|
133
|
+
when('&[data-color="neutral"]', [
|
|
134
|
+
border("neutral.strong"),
|
|
135
|
+
fg("neutral"),
|
|
136
|
+
when("&:hover", bg("neutral.tint")),
|
|
137
|
+
when("&:active", bg("neutral.bg-tint-hover")),
|
|
138
|
+
]),
|
|
139
|
+
when('&[data-color="success"]', [
|
|
140
|
+
border("success.strong"),
|
|
141
|
+
fg("success"),
|
|
142
|
+
when("&:hover", bg("success.tint")),
|
|
143
|
+
when("&:active", bg("success.bg-tint-hover")),
|
|
144
|
+
]),
|
|
145
|
+
when('&[data-color="warning"]', [
|
|
146
|
+
border("warning.strong"),
|
|
147
|
+
fg("warning"),
|
|
148
|
+
when("&:hover", bg("warning.tint")),
|
|
149
|
+
when("&:active", bg("warning.bg-tint-hover")),
|
|
150
|
+
]),
|
|
151
|
+
when('&[data-color="danger"]', [
|
|
152
|
+
border("danger.strong"),
|
|
153
|
+
fg("danger"),
|
|
154
|
+
when("&:hover", bg("danger.tint")),
|
|
155
|
+
when("&:active", bg("danger.bg-tint-hover")),
|
|
156
|
+
]),
|
|
157
|
+
]),
|
|
158
|
+
when('&[data-variant="ghost"]', [
|
|
159
|
+
bg("transparent"),
|
|
160
|
+
border("transparent"),
|
|
161
|
+
when('&[data-color="brand"]', [
|
|
162
|
+
fg("brand"),
|
|
163
|
+
when("&:hover", bg("brand.tint")),
|
|
164
|
+
when("&:active", bg("brand.bg-tint-hover")),
|
|
165
|
+
]),
|
|
166
|
+
when('&[data-color="neutral"]', [
|
|
167
|
+
fg("neutral"),
|
|
168
|
+
when("&:hover", bg("neutral.bg-tint-hover")),
|
|
169
|
+
when("&:active", bg("neutral.bg-tint-pressed")),
|
|
170
|
+
]),
|
|
171
|
+
when('&[data-color="success"]', [
|
|
172
|
+
fg("success"),
|
|
173
|
+
when("&:hover", bg("success.tint")),
|
|
174
|
+
when("&:active", bg("success.bg-tint-hover")),
|
|
175
|
+
]),
|
|
176
|
+
when('&[data-color="warning"]', [
|
|
177
|
+
fg("warning"),
|
|
178
|
+
when("&:hover", bg("warning.tint")),
|
|
179
|
+
when("&:active", bg("warning.bg-tint-hover")),
|
|
180
|
+
]),
|
|
181
|
+
when('&[data-color="danger"]', [
|
|
182
|
+
fg("danger"),
|
|
183
|
+
when("&:hover", bg("danger.tint")),
|
|
184
|
+
when("&:active", bg("danger.bg-tint-hover")),
|
|
185
|
+
]),
|
|
186
|
+
]),
|
|
187
|
+
when("&:disabled:not([data-pending])", [cursor("not-allowed"), opacity(50)]),
|
|
188
|
+
when("&[data-pending]", [relative(), cursor("wait")]),
|
|
189
|
+
mix,
|
|
190
|
+
], children: isPending ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", "data-slot": "spinner", mix: [
|
|
191
|
+
absolute(),
|
|
192
|
+
inset(0),
|
|
193
|
+
flex(),
|
|
194
|
+
items("center"),
|
|
195
|
+
justify("center"),
|
|
196
|
+
when("& svg", [
|
|
197
|
+
is("var(--ui-spinner-icon-size-sm, 1rem)"),
|
|
198
|
+
bs("var(--ui-spinner-icon-size-sm, 1rem)"),
|
|
199
|
+
]),
|
|
200
|
+
when('[data-size="lg"] & svg', [
|
|
201
|
+
is("var(--ui-spinner-icon-size-md, 1.25rem)"),
|
|
202
|
+
bs("var(--ui-spinner-icon-size-md, 1.25rem)"),
|
|
203
|
+
]),
|
|
204
|
+
parts?.spinner,
|
|
205
|
+
], children: _jsx(LoaderCircleIcon, {}) }), _jsx("span", { "data-slot": "content", mix: [visibility("hidden"), inlineFlex(), items("center"), gap(2), parts?.content], children: children })] })) : (children) }));
|
|
206
|
+
};
|
|
207
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A month-grid calendar surface composed from a navigable header and a native
|
|
3
|
+
* `<table>` of day cells, styled through the platform's own semantics. Used
|
|
4
|
+
* bare, it renders a native `<input type="date">` — a complete,
|
|
5
|
+
* keyboard-operable date control on its own.
|
|
6
|
+
*
|
|
7
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
|
+
* @copyright Sergio Xalambrí 2026
|
|
9
|
+
*/
|
|
10
|
+
import type { Handle, Props as TagProps } from "remix/ui";
|
|
11
|
+
import { Heading } from "./heading.js";
|
|
12
|
+
/**
|
|
13
|
+
* Prop types for {@link Calendar} and its compound parts.
|
|
14
|
+
*/
|
|
15
|
+
export declare namespace Calendar {
|
|
16
|
+
/**
|
|
17
|
+
* Semantic color role for the bare `<input type="date">` fallback's keyboard
|
|
18
|
+
* focus ring, each mapped to its matching `--ui-*` variables. The composed
|
|
19
|
+
* grid reads fixed semantic roles, identical across every rendered month.
|
|
20
|
+
*/
|
|
21
|
+
type Color = "brand" | "neutral" | "success" | "warning" | "danger";
|
|
22
|
+
/**
|
|
23
|
+
* Props accepted by {@link Calendar}. Composing {@link Calendar.Header} and
|
|
24
|
+
* {@link Calendar.Grid} as `children` renders the visual month surface;
|
|
25
|
+
* `children` left unset renders the native `<input type="date">` fallback.
|
|
26
|
+
*/
|
|
27
|
+
interface Props extends TagProps<"div"> {
|
|
28
|
+
/** Semantic color role for the bare fallback control's focus ring. Defaults to {@link DEFAULT_COLOR}. */
|
|
29
|
+
color?: Color;
|
|
30
|
+
/** Native `name` submitted with an enclosing form, read only by the bare fallback control. */
|
|
31
|
+
name?: string;
|
|
32
|
+
/** Current value, in `YYYY-MM-DD` form, for a bare fallback control a consumer tracks itself. */
|
|
33
|
+
value?: string;
|
|
34
|
+
/** Initial value, in `YYYY-MM-DD` form, for a bare fallback control left to the platform's own uncontrolled state. */
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
/** Earliest accepted date, in `YYYY-MM-DD` form, read only by the bare fallback control. */
|
|
37
|
+
min?: string;
|
|
38
|
+
/** Latest accepted date, in `YYYY-MM-DD` form, read only by the bare fallback control. */
|
|
39
|
+
max?: string;
|
|
40
|
+
/** Granularity, in days, the bare fallback control's value must fall on. */
|
|
41
|
+
step?: number;
|
|
42
|
+
/** Marks the bare fallback control required for its enclosing form. */
|
|
43
|
+
required?: boolean;
|
|
44
|
+
/** Marks the bare fallback control inert and excluded from the tab order. */
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/** Marks the bare fallback control's value fixed, while keeping it focusable and included in form submission. */
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
/** Native autofill hint for the bare fallback control, e.g. `"bday"`. */
|
|
49
|
+
autoComplete?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Every native `<header>` attribute, unchanged, plus the `mix` passthrough.
|
|
53
|
+
*/
|
|
54
|
+
interface HeaderProps extends TagProps<"header"> {
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Every native `<button>` attribute, unchanged, plus the `mix` passthrough.
|
|
58
|
+
* `type` defaults to {@link DEFAULT_NAV_BUTTON_TYPE}. Needs an `aria-label`
|
|
59
|
+
* (e.g. `"Previous month"`) as the control's only accessible name.
|
|
60
|
+
*/
|
|
61
|
+
interface PreviousButtonProps extends TagProps<"button"> {
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Every native `<button>` attribute, unchanged, plus the `mix`
|
|
65
|
+
* passthrough, mirroring {@link Calendar.PreviousButton} for the following
|
|
66
|
+
* month instead.
|
|
67
|
+
*/
|
|
68
|
+
interface NextButtonProps extends TagProps<"button"> {
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Every prop {@link Heading} accepts, unchanged. `level` still chooses
|
|
72
|
+
* which native heading element renders, defaulting the same way
|
|
73
|
+
* {@link Heading} does.
|
|
74
|
+
*/
|
|
75
|
+
interface HeadingProps extends Heading.Props {
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Every native `<table>` attribute, unchanged, plus the `mix` passthrough.
|
|
79
|
+
*/
|
|
80
|
+
interface GridProps extends TagProps<"table"> {
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Every native `<thead>` attribute, unchanged, plus the `mix` passthrough.
|
|
84
|
+
*/
|
|
85
|
+
interface GridHeaderProps extends TagProps<"thead"> {
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Every native `<tr>` attribute, unchanged, plus the `mix` passthrough. Holds
|
|
89
|
+
* one row of {@link Calendar.HeaderCell} in {@link Calendar.GridHeader}, or
|
|
90
|
+
* one week of {@link Calendar.Cell} in {@link Calendar.GridBody}.
|
|
91
|
+
*/
|
|
92
|
+
interface RowProps extends TagProps<"tr"> {
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Every native `<th>` attribute, unchanged, plus the `mix` passthrough.
|
|
96
|
+
*/
|
|
97
|
+
interface HeaderCellProps extends TagProps<"th"> {
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Every native `<tbody>` attribute, unchanged, plus the `mix` passthrough.
|
|
101
|
+
*/
|
|
102
|
+
interface GridBodyProps extends TagProps<"tbody"> {
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Every native `<td>` attribute, unchanged, plus the `mix` passthrough. Day
|
|
106
|
+
* state is read straight off the rendered element: the consumer sets
|
|
107
|
+
* `aria-selected`, `aria-disabled`, `data-unavailable`, `data-outside-month`.
|
|
108
|
+
*/
|
|
109
|
+
interface CellProps extends TagProps<"td"> {
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Renders a rounded, padded surface around whichever children a consumer
|
|
114
|
+
* composes; `children` left unset renders a native `<input type="date">`
|
|
115
|
+
* through {@link Input}, the one part the platform itself operates.
|
|
116
|
+
*
|
|
117
|
+
* @param handle Runtime handle carrying the root element's props.
|
|
118
|
+
* @returns The render function producing the calendar's markup.
|
|
119
|
+
* @example
|
|
120
|
+
* <Calendar aria-label={t("form.startDate.label")} name="startDate" />
|
|
121
|
+
* @example
|
|
122
|
+
* <Calendar aria-label={t("calendar.label")}>
|
|
123
|
+
* <Calendar.Header>
|
|
124
|
+
* <Calendar.PreviousButton aria-label={t("calendar.previous")} />
|
|
125
|
+
* <Calendar.Heading>{monthLabel}</Calendar.Heading>
|
|
126
|
+
* <Calendar.NextButton aria-label={t("calendar.next")} />
|
|
127
|
+
* </Calendar.Header>
|
|
128
|
+
* <Calendar.Grid aria-label={monthLabel}>
|
|
129
|
+
* <Calendar.GridHeader>
|
|
130
|
+
* <Calendar.Row>
|
|
131
|
+
* {weekdayLabels.map((day) => (
|
|
132
|
+
* <Calendar.HeaderCell key={day}>{day}</Calendar.HeaderCell>
|
|
133
|
+
* ))}
|
|
134
|
+
* </Calendar.Row>
|
|
135
|
+
* </Calendar.GridHeader>
|
|
136
|
+
* <Calendar.GridBody>
|
|
137
|
+
* {weeks.map((week) => (
|
|
138
|
+
* <Calendar.Row key={week[0].iso}>
|
|
139
|
+
* {week.map((day) => (
|
|
140
|
+
* <Calendar.Cell
|
|
141
|
+
* key={day.iso}
|
|
142
|
+
* aria-selected={day.iso === selected ? "true" : undefined}
|
|
143
|
+
* data-outside-month={day.outsideMonth ? "" : undefined}
|
|
144
|
+
* >
|
|
145
|
+
* {day.label}
|
|
146
|
+
* </Calendar.Cell>
|
|
147
|
+
* ))}
|
|
148
|
+
* </Calendar.Row>
|
|
149
|
+
* ))}
|
|
150
|
+
* </Calendar.GridBody>
|
|
151
|
+
* </Calendar.Grid>
|
|
152
|
+
* </Calendar>
|
|
153
|
+
*/
|
|
154
|
+
export declare function Calendar(handle: Handle<Calendar.Props>): () => import("remix/ui").RemixElement;
|
|
155
|
+
export declare namespace Calendar {
|
|
156
|
+
var Header: (handle: Handle<Calendar.HeaderProps>) => () => import("remix/ui").RemixElement;
|
|
157
|
+
var PreviousButton: (handle: Handle<Calendar.PreviousButtonProps>) => () => import("remix/ui").RemixElement;
|
|
158
|
+
var NextButton: (handle: Handle<Calendar.NextButtonProps>) => () => import("remix/ui").RemixElement;
|
|
159
|
+
var Heading: (handle: Handle<Calendar.HeadingProps>) => () => import("remix/ui").RemixElement;
|
|
160
|
+
var Grid: (handle: Handle<Calendar.GridProps>) => () => import("remix/ui").RemixElement;
|
|
161
|
+
var GridHeader: (handle: Handle<Calendar.GridHeaderProps>) => () => import("remix/ui").RemixElement;
|
|
162
|
+
var Row: (handle: Handle<Calendar.RowProps>) => () => import("remix/ui").RemixElement;
|
|
163
|
+
var HeaderCell: (handle: Handle<Calendar.HeaderCellProps>) => () => import("remix/ui").RemixElement;
|
|
164
|
+
var GridBody: (handle: Handle<Calendar.GridBodyProps>) => () => import("remix/ui").RemixElement;
|
|
165
|
+
var Cell: (handle: Handle<Calendar.CellProps>) => () => import("remix/ui").RemixElement;
|
|
166
|
+
}
|