@ctrl-ui/react 0.8.1 → 0.8.4
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 +32 -23
- package/dist/action-bar.d.ts +11 -12
- package/dist/activity.d.ts +24 -25
- package/dist/audio-recorder.d.ts +16 -16
- package/dist/audio-visualizer.d.ts +3 -4
- package/dist/blocks/chat.d.ts +3 -4
- package/dist/blocks/chat.js +6 -3
- package/dist/blocks/coding-agent.d.ts +11 -12
- package/dist/blocks/coding-agent.js +10 -9
- package/dist/blocks/file-explorer-data.d.ts +11 -12
- package/dist/blocks/file-explorer.d.ts +3 -3
- package/dist/blocks/settings-data.d.ts +8 -9
- package/dist/blocks/settings.d.ts +4 -4
- package/dist/blocks/theme-toggle.d.ts +11 -12
- package/dist/blocks/theme-toggle.js +14 -4
- package/dist/chat-composer-attachment.d.ts +20 -21
- package/dist/chat-composer-attachment.js +24 -20
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -6
- package/dist/chat-composer-editor/ghost.d.ts +3 -4
- package/dist/chat-composer-editor/schema.d.ts +2 -3
- package/dist/chat-composer-editor/serialize.d.ts +3 -4
- package/dist/chat-composer-editor/types.d.ts +5 -6
- package/dist/chat-composer-editor.d.ts +2 -3
- package/dist/chat-composer-editor.js +18 -4
- package/dist/chat-composer.d.ts +17 -18
- package/dist/chat-composer.js +14 -8
- package/dist/chat-layout.d.ts +12 -21
- package/dist/chat-layout.js +28 -83
- package/dist/chat-message.d.ts +14 -15
- package/dist/context-model.d.ts +7 -8
- package/dist/context.d.ts +21 -22
- package/dist/control-props.d.ts +10 -11
- package/dist/control-variants.d.ts +6 -7
- package/dist/dynamic-notification-glass.d.ts +3 -4
- package/dist/dynamic-notification-liquid.d.ts +3 -4
- package/dist/dynamic-notification-siri-wave.d.ts +2 -3
- package/dist/dynamic-notification.d.ts +28 -29
- package/dist/email/email.d.ts +6 -7
- package/dist/email/email.js +12 -3
- package/dist/email/length.d.ts +3 -0
- package/dist/email/length.js +34 -0
- package/dist/email/templates.d.ts +7 -8
- package/dist/email/templates.js +5 -5
- package/dist/email/theme.d.ts +16 -5
- package/dist/email/theme.js +21 -6
- package/dist/environment-variables.d.ts +35 -36
- package/dist/extensions/create-track-highlight.d.ts +3 -4
- package/dist/extensions/supports-anchor-transitions.d.ts +2 -3
- package/dist/extensions/track-highlight.d.ts +3 -4
- package/dist/hooks/use-audio-recorder.d.ts +14 -15
- package/dist/hooks/use-chat-composer.d.ts +5 -6
- package/dist/hooks/use-chat-message.d.ts +7 -8
- package/dist/hooks/use-color-area.d.ts +5 -6
- package/dist/hooks/use-copy-to-clipboard.d.ts +7 -8
- package/dist/hooks/use-dropzone.d.ts +11 -12
- package/dist/hooks/use-dynamic-notification.d.ts +6 -7
- package/dist/hooks/use-environment-variables.d.ts +9 -10
- package/dist/hooks/use-keyboard-navigation.d.ts +3 -0
- package/dist/hooks/use-keyboard-navigation.js +22 -0
- package/dist/hooks/use-mobile.d.ts +2 -3
- package/dist/hooks/use-textarea-trigger-menu.d.ts +2 -3
- package/dist/hooks/use-trigger-menu.d.ts +7 -8
- package/dist/hooks/use-user-ask.d.ts +6 -7
- package/dist/inline-attachment.d.ts +16 -17
- package/dist/inline-citation.d.ts +22 -23
- package/dist/knob-contracts/accordion-knobs.d.ts +3 -4
- package/dist/knob-contracts/accordion-knobs.js +1 -0
- package/dist/knob-contracts/action-bar-knobs.d.ts +3 -4
- package/dist/knob-contracts/activity-knobs.d.ts +3 -4
- package/dist/knob-contracts/alert-knobs.d.ts +3 -4
- package/dist/knob-contracts/alert-knobs.js +12 -1
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +3 -4
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +3 -4
- package/dist/knob-contracts/avatar-knobs.d.ts +3 -4
- package/dist/knob-contracts/avatar-knobs.js +2 -1
- package/dist/knob-contracts/badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-group-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/calendar-knobs.d.ts +3 -4
- package/dist/knob-contracts/card-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +3 -1
- package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-knobs.js +1 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-layout-knobs.js +2 -3
- package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
- package/dist/knob-contracts/choice-knobs.d.ts +3 -4
- package/dist/knob-contracts/choice-knobs.js +2 -1
- package/dist/knob-contracts/code-diff-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-diff-knobs.js +1 -0
- package/dist/knob-contracts/code-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-knobs.js +3 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +3 -4
- package/dist/knob-contracts/color-picker-knobs.d.ts +3 -4
- package/dist/knob-contracts/context-knobs.d.ts +3 -4
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/dockable-panel-knobs.js +1 -0
- package/dist/knob-contracts/dropzone-knobs.d.ts +3 -4
- package/dist/knob-contracts/dropzone-knobs.js +1 -0
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.js +14 -1
- package/dist/knob-contracts/environment-variables-knobs.d.ts +3 -4
- package/dist/knob-contracts/environment-variables-knobs.js +2 -1
- package/dist/knob-contracts/field-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.js +3 -1
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.js +2 -1
- package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-citation-knobs.js +1 -0
- package/dist/knob-contracts/item-knobs.d.ts +3 -4
- package/dist/knob-contracts/kbd-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.js +2 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-knobs.js +1 -0
- package/dist/knob-contracts/morphing-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/pagination-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.js +1 -0
- package/dist/knob-contracts/popup-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.js +1 -0
- package/dist/knob-contracts/range-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +3 -4
- package/dist/knob-contracts/scroll-area-knobs.d.ts +3 -4
- package/dist/knob-contracts/separator-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.js +1 -0
- package/dist/knob-contracts/skeleton-knobs.d.ts +3 -4
- package/dist/knob-contracts/skeleton-knobs.js +9 -1
- package/dist/knob-contracts/source-badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/spinner-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.js +1 -0
- package/dist/knob-contracts/switch-knobs.d.ts +3 -4
- package/dist/knob-contracts/switch-knobs.js +7 -1
- package/dist/knob-contracts/table-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.js +25 -0
- package/dist/knob-contracts/tabs-knobs.d.ts +3 -4
- package/dist/knob-contracts/tabs-knobs.js +2 -1
- package/dist/knob-contracts/task-list-knobs.d.ts +3 -4
- package/dist/knob-contracts/task-list-knobs.js +1 -0
- package/dist/knob-contracts/thread-rail-knobs.d.ts +3 -4
- package/dist/knob-contracts/timeline-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.js +1 -0
- package/dist/knob-contracts/track-highlight-knobs.d.ts +3 -4
- package/dist/knob-contracts/transcript-divider-knobs.d.ts +3 -4
- package/dist/knob-contracts/tree-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.js +1 -0
- package/dist/lib/cn.d.ts +2 -3
- package/dist/lib/code-tokens.d.ts +12 -13
- package/dist/lib/color.d.ts +26 -27
- package/dist/lib/contrast.d.ts +12 -13
- package/dist/lib/diff.d.ts +14 -15
- package/dist/lib/dropzone-validation.d.ts +25 -26
- package/dist/lib/env-file.d.ts +12 -13
- package/dist/lib/format-audio-recorder-duration.d.ts +2 -3
- package/dist/lib/liquid-glass-optics.d.ts +2 -3
- package/dist/lib/phone-input-format.d.ts +3 -4
- package/dist/lib/phone-input-format.js +1 -1
- package/dist/lib/phone-number.d.ts +8 -9
- package/dist/lib/trigger-detect.d.ts +4 -5
- package/dist/markdown-block.d.ts +11 -12
- package/dist/scripts/contrast-eval.d.ts +16 -17
- package/dist/scripts/contrast-eval.js +13 -7
- package/dist/skin-provider.d.ts +14 -0
- package/dist/skin-provider.js +21 -0
- package/dist/skin.d.ts +14 -33
- package/dist/skin.js +3 -46
- package/dist/source-badge.d.ts +7 -8
- package/dist/styles/index.css +2 -4
- package/dist/styles/recipes/accordion.css +8 -2
- package/dist/styles/recipes/action-bar.css +5 -2
- package/dist/styles/recipes/alert.css +95 -16
- package/dist/styles/recipes/avatar.css +17 -1
- package/dist/styles/recipes/badge.css +0 -1
- package/dist/styles/recipes/button.css +34 -8
- package/dist/styles/recipes/calendar.css +0 -6
- package/dist/styles/recipes/chat-composer-attachment.css +51 -53
- package/dist/styles/recipes/chat-composer.css +26 -21
- package/dist/styles/recipes/chat-layout.css +21 -62
- package/dist/styles/recipes/chat-message.css +11 -5
- package/dist/styles/recipes/choice.css +9 -2
- package/dist/styles/recipes/code-diff.css +8 -1
- package/dist/styles/recipes/code.css +39 -17
- package/dist/styles/recipes/collapsible.css +0 -3
- package/dist/styles/recipes/color-picker-details.css +1 -2
- package/dist/styles/recipes/color-picker-values.css +0 -4
- package/dist/styles/recipes/dockable-panel.css +8 -1
- package/dist/styles/recipes/dropzone.css +9 -2
- package/dist/styles/recipes/empty.css +118 -17
- package/dist/styles/recipes/environment-variables.css +8 -1
- package/dist/styles/recipes/field-parts.css +1 -6
- package/dist/styles/recipes/field.css +9 -5
- package/dist/styles/recipes/gradient-editor.css +16 -5
- package/dist/styles/recipes/inline-attachment.css +13 -8
- package/dist/styles/recipes/inline-citation.css +8 -4
- package/dist/styles/recipes/item.css +1 -1
- package/dist/styles/recipes/kbd.css +8 -0
- package/dist/styles/recipes/markdown-block.css +16 -2
- package/dist/styles/recipes/markdown.css +12 -0
- package/dist/styles/recipes/morphing-panel.css +1 -1
- package/dist/styles/recipes/pagination.css +0 -4
- package/dist/styles/recipes/phone-input.css +8 -4
- package/dist/styles/recipes/popup-lists.css +11 -0
- package/dist/styles/recipes/popup-toast.css +1 -29
- package/dist/styles/recipes/popup.css +2 -2
- package/dist/styles/recipes/progressive-blur.css +28 -7
- package/dist/styles/recipes/range.css +50 -1
- package/dist/styles/recipes/resizable.css +8 -10
- package/dist/styles/recipes/rich-tooltip.css +0 -4
- package/dist/styles/recipes/scroll-area.css +8 -2
- package/dist/styles/recipes/sidebar-menu.css +150 -0
- package/dist/styles/recipes/sidebar.css +56 -110
- package/dist/styles/recipes/skeleton.css +85 -3
- package/dist/styles/recipes/source-badge.css +0 -3
- package/dist/styles/recipes/stepper.css +8 -1
- package/dist/styles/recipes/switch.css +89 -17
- package/dist/styles/recipes/table-of-contents.css +211 -45
- package/dist/styles/recipes/table.css +0 -1
- package/dist/styles/recipes/tabs.css +19 -2
- package/dist/styles/recipes/task-list.css +8 -2
- package/dist/styles/recipes/thread-rail.css +0 -4
- package/dist/styles/recipes/toolbar.css +18 -4
- package/dist/styles/recipes/track-highlight.css +63 -5
- package/dist/styles/recipes/tree.css +2 -0
- package/dist/styles/recipes/user-ask.css +8 -4
- package/dist/styles/theme.css +130 -138
- package/dist/surface-variants.d.ts +4 -5
- package/dist/task-list.d.ts +16 -17
- package/dist/thread-rail.d.ts +21 -22
- package/dist/transcript-divider.d.ts +6 -7
- package/dist/ui/accordion.d.ts +10 -11
- package/dist/ui/alert-dialog.d.ts +11 -12
- package/dist/ui/alert-dialog.js +8 -6
- package/dist/ui/alert.d.ts +9 -10
- package/dist/ui/alert.js +3 -3
- package/dist/ui/aspect-ratio.d.ts +3 -4
- package/dist/ui/autocomplete.d.ts +19 -20
- package/dist/ui/autocomplete.js +5 -3
- package/dist/ui/avatar.d.ts +9 -10
- package/dist/ui/badge.d.ts +9 -10
- package/dist/ui/button-group.d.ts +7 -8
- package/dist/ui/button-group.js +3 -2
- package/dist/ui/button.d.ts +17 -18
- package/dist/ui/button.js +20 -5
- package/dist/ui/calendar.d.ts +3 -4
- package/dist/ui/card.d.ts +16 -17
- package/dist/ui/checkbox-group.d.ts +4 -5
- package/dist/ui/checkbox-group.js +3 -2
- package/dist/ui/checkbox.d.ts +3 -4
- package/dist/ui/code-diff.d.ts +8 -9
- package/dist/ui/code.d.ts +32 -23
- package/dist/ui/code.js +41 -20
- package/dist/ui/collapsible.d.ts +7 -8
- package/dist/ui/color-picker.d.ts +40 -41
- package/dist/ui/color-picker.js +5 -3
- package/dist/ui/combobox-disabled-selection.d.ts +3 -4
- package/dist/ui/combobox.d.ts +21 -20
- package/dist/ui/combobox.js +5 -3
- package/dist/ui/command.d.ts +19 -18
- package/dist/ui/command.js +38 -12
- package/dist/ui/context-menu.d.ts +30 -31
- package/dist/ui/context-menu.js +8 -5
- package/dist/ui/dialog.d.ts +13 -13
- package/dist/ui/dialog.js +10 -8
- package/dist/ui/dockable-panel-geometry.d.ts +7 -8
- package/dist/ui/dockable-panel.d.ts +21 -22
- package/dist/ui/drawer.d.ts +17 -18
- package/dist/ui/drawer.js +7 -6
- package/dist/ui/dropdown-menu.d.ts +36 -29
- package/dist/ui/dropdown-menu.js +116 -9
- package/dist/ui/dropzone.d.ts +24 -24
- package/dist/ui/empty.d.ts +14 -14
- package/dist/ui/empty.js +3 -3
- package/dist/ui/field.d.ts +26 -27
- package/dist/ui/form.d.ts +4 -5
- package/dist/ui/gradient-editor.d.ts +16 -17
- package/dist/ui/hover-card.d.ts +6 -7
- package/dist/ui/hover-card.js +5 -3
- package/dist/ui/infinite-canvas.d.ts +11 -12
- package/dist/ui/input-group.d.ts +6 -7
- package/dist/ui/input-otp.d.ts +7 -8
- package/dist/ui/input.d.ts +3 -4
- package/dist/ui/item.d.ts +20 -21
- package/dist/ui/kbd.d.ts +7 -5
- package/dist/ui/kbd.js +4 -2
- package/dist/ui/markdown-elements.d.ts +20 -21
- package/dist/ui/markdown.d.ts +5 -6
- package/dist/ui/menubar.d.ts +25 -26
- package/dist/ui/menubar.js +8 -5
- package/dist/ui/meter.d.ts +11 -12
- package/dist/ui/morphing-panel.d.ts +8 -9
- package/dist/ui/native-select.d.ts +3 -4
- package/dist/ui/native-select.js +1 -1
- package/dist/ui/navigation-menu.d.ts +17 -18
- package/dist/ui/navigation-menu.js +5 -3
- package/dist/ui/number-field.d.ts +15 -16
- package/dist/ui/pagination.d.ts +10 -11
- package/dist/ui/phone-input.d.ts +5 -6
- package/dist/ui/phone-input.js +40 -37
- package/dist/ui/popover.d.ts +11 -12
- package/dist/ui/popover.js +5 -3
- package/dist/ui/progress.d.ts +11 -12
- package/dist/ui/progressive-blur.d.ts +4 -5
- package/dist/ui/radio-group.d.ts +5 -6
- package/dist/ui/resizable.d.ts +12 -13
- package/dist/ui/responsive-dialog.d.ts +11 -12
- package/dist/ui/rich-tooltip-tour.d.ts +5 -6
- package/dist/ui/rich-tooltip.d.ts +21 -23
- package/dist/ui/rich-tooltip.js +5 -5
- package/dist/ui/scroll-area.d.ts +7 -8
- package/dist/ui/scroll-area.js +9 -6
- package/dist/ui/select.d.ts +21 -14
- package/dist/ui/select.js +7 -4
- package/dist/ui/separator.d.ts +2 -3
- package/dist/ui/sheet.d.ts +8 -9
- package/dist/ui/sheet.js +7 -5
- package/dist/ui/sidebar-menu.d.ts +24 -15
- package/dist/ui/sidebar-menu.js +30 -4
- package/dist/ui/sidebar-provider.d.ts +32 -7
- package/dist/ui/sidebar-provider.js +82 -22
- package/dist/ui/sidebar-resize-rail.d.ts +8 -0
- package/dist/ui/sidebar-resize-rail.js +192 -0
- package/dist/ui/sidebar.d.ts +20 -14
- package/dist/ui/sidebar.js +122 -57
- package/dist/ui/skeleton.d.ts +7 -4
- package/dist/ui/skeleton.js +9 -2
- package/dist/ui/slider.d.ts +6 -5
- package/dist/ui/slider.js +16 -13
- package/dist/ui/spinner.d.ts +3 -4
- package/dist/ui/stepper.d.ts +22 -23
- package/dist/ui/switch.d.ts +3 -4
- package/dist/ui/switch.js +12 -1
- package/dist/ui/table-of-contents.d.ts +7 -8
- package/dist/ui/table-of-contents.js +4 -2
- package/dist/ui/table.d.ts +17 -18
- package/dist/ui/tabs.d.ts +14 -11
- package/dist/ui/textarea.d.ts +3 -4
- package/dist/ui/timeline.d.ts +18 -19
- package/dist/ui/toast.d.ts +9 -9
- package/dist/ui/toast.js +21 -14
- package/dist/ui/toggle.d.ts +5 -6
- package/dist/ui/toggle.js +3 -2
- package/dist/ui/toolbar.d.ts +15 -16
- package/dist/ui/toolbar.js +15 -4
- package/dist/ui/tooltip.d.ts +6 -13
- package/dist/ui/tooltip.js +7 -8
- package/dist/ui/tree.d.ts +18 -19
- package/dist/ui/tree.js +3 -2
- package/dist/ui/trigger-menu.d.ts +15 -16
- package/dist/ui/trigger-menu.js +5 -3
- package/dist/ui/use-switch-drag.d.ts +7 -0
- package/dist/ui/use-switch-drag.js +104 -0
- package/dist/user-ask.d.ts +24 -25
- package/package.json +15 -15
- package/dist/code-block-editor.d.ts +0 -59
- package/dist/code-block-editor.js +0 -250
- package/dist/knob-contracts/code-block-editor-knobs.d.ts +0 -5
- package/dist/knob-contracts/code-block-editor-knobs.js +0 -11
- package/dist/lib/code-block-shiki.d.ts +0 -9
- package/dist/lib/code-block-shiki.js +0 -6
- package/dist/skin.config.d.ts +0 -5
- package/dist/skin.config.js +0 -12
- package/dist/styles/recipes/code-block-editor.css +0 -136
- package/dist/styles/skin-theme.css +0 -137
- package/dist/styles/skin.css +0 -143
|
@@ -2,13 +2,13 @@ import { ControlSize } from "../control-variants.js";
|
|
|
2
2
|
import { GradientEditorKnobStyle } from "../knob-contracts/gradient-editor-knobs.js";
|
|
3
3
|
import { CSSProperties, ComponentProps } from "react";
|
|
4
4
|
//#region src/ui/gradient-editor.d.ts
|
|
5
|
-
type GradientType = "linear" | "radial" | "conic";
|
|
6
|
-
type GradientStop = {
|
|
5
|
+
export type GradientType = "linear" | "radial" | "conic";
|
|
6
|
+
export type GradientStop = {
|
|
7
7
|
id: string;
|
|
8
8
|
position: number;
|
|
9
9
|
color: string;
|
|
10
10
|
};
|
|
11
|
-
type GradientEditorProps = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
|
|
11
|
+
export type GradientEditorProps = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
|
|
12
12
|
value?: string;
|
|
13
13
|
defaultStops?: GradientStop[];
|
|
14
14
|
defaultType?: GradientType;
|
|
@@ -17,31 +17,30 @@ type GradientEditorProps = Omit<ComponentProps<"div">, "onChange" | "defaultValu
|
|
|
17
17
|
} & {
|
|
18
18
|
style?: CSSProperties & GradientEditorKnobStyle;
|
|
19
19
|
};
|
|
20
|
-
type GradientEditorPreviewProps = Omit<ComponentProps<"div">, "style"> & {
|
|
20
|
+
export type GradientEditorPreviewProps = Omit<ComponentProps<"div">, "style"> & {
|
|
21
21
|
style?: CSSProperties & GradientEditorKnobStyle;
|
|
22
22
|
};
|
|
23
|
-
type GradientEditorTrackProps = Omit<ComponentProps<"fieldset">, "style"> & {
|
|
23
|
+
export type GradientEditorTrackProps = Omit<ComponentProps<"fieldset">, "style"> & {
|
|
24
24
|
style?: CSSProperties & GradientEditorKnobStyle;
|
|
25
25
|
};
|
|
26
|
-
type GradientEditorStopProps = Omit<ComponentProps<"button">, "style"> & {
|
|
26
|
+
export type GradientEditorStopProps = Omit<ComponentProps<"button">, "style"> & {
|
|
27
27
|
stop: GradientStop;
|
|
28
28
|
style?: CSSProperties & GradientEditorKnobStyle;
|
|
29
29
|
};
|
|
30
|
-
type GradientEditorStopAddProps = Omit<ComponentProps<"button">, "onClick" | "style"> & {
|
|
30
|
+
export type GradientEditorStopAddProps = Omit<ComponentProps<"button">, "onClick" | "style"> & {
|
|
31
31
|
style?: CSSProperties & GradientEditorKnobStyle;
|
|
32
32
|
};
|
|
33
|
-
type GradientEditorTypeSelectProps = {
|
|
33
|
+
export type GradientEditorTypeSelectProps = {
|
|
34
34
|
size?: ControlSize;
|
|
35
35
|
className?: string;
|
|
36
36
|
"aria-label"?: string;
|
|
37
37
|
"aria-labelledby"?: string;
|
|
38
38
|
};
|
|
39
|
-
declare function GradientEditor({ defaultStops, defaultType, defaultAngle, onValueChange, className, children, value: _value, ...props }: GradientEditorProps): import("react").JSX.Element;
|
|
40
|
-
declare function GradientEditorPreview({ className, style, "aria-label": ariaLabel, ...props }: GradientEditorPreviewProps): import("react").JSX.Element;
|
|
41
|
-
declare function GradientEditorTrack({ className, children, style, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: GradientEditorTrackProps): import("react").JSX.Element;
|
|
42
|
-
declare function GradientEditorStop({ stop, className, style, onPointerDown, onKeyDown, onFocus, onDoubleClick, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: GradientEditorStopProps): import("react").JSX.Element;
|
|
43
|
-
declare function GradientEditorStopAdd({ className, children, ...props }: GradientEditorStopAddProps): import("react").JSX.Element;
|
|
44
|
-
declare function GradientEditorStopColor(): import("react").JSX.Element | null;
|
|
45
|
-
declare function GradientEditorTypeSelect({ size, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }: GradientEditorTypeSelectProps): import("react").JSX.Element;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { GradientEditor, GradientEditorPreview, GradientEditorPreviewProps, GradientEditorProps, GradientEditorStop, GradientEditorStopAdd, GradientEditorStopAddProps, GradientEditorStopColor, GradientEditorStopProps, GradientEditorTrack, GradientEditorTrackProps, GradientEditorTypeSelect, GradientEditorTypeSelectProps, GradientStop, GradientType };
|
|
39
|
+
export declare function GradientEditor({ defaultStops, defaultType, defaultAngle, onValueChange, className, children, value: _value, ...props }: GradientEditorProps): import("react").JSX.Element;
|
|
40
|
+
export declare function GradientEditorPreview({ className, style, "aria-label": ariaLabel, ...props }: GradientEditorPreviewProps): import("react").JSX.Element;
|
|
41
|
+
export declare function GradientEditorTrack({ className, children, style, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: GradientEditorTrackProps): import("react").JSX.Element;
|
|
42
|
+
export declare function GradientEditorStop({ stop, className, style, onPointerDown, onKeyDown, onFocus, onDoubleClick, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: GradientEditorStopProps): import("react").JSX.Element;
|
|
43
|
+
export declare function GradientEditorStopAdd({ className, children, ...props }: GradientEditorStopAddProps): import("react").JSX.Element;
|
|
44
|
+
export declare function GradientEditorStopColor(): import("react").JSX.Element | null;
|
|
45
|
+
export declare function GradientEditorTypeSelect({ size, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }: GradientEditorTypeSelectProps): import("react").JSX.Element;
|
|
46
|
+
//#endregion
|
package/dist/ui/hover-card.d.ts
CHANGED
|
@@ -3,23 +3,22 @@ import { PopupKnobStyle } from "../knob-contracts/popup-knobs.js";
|
|
|
3
3
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
4
4
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
5
5
|
//#region src/ui/hover-card.d.ts
|
|
6
|
-
type HoverCardProps = {
|
|
6
|
+
export type HoverCardProps = {
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
open?: boolean;
|
|
9
9
|
defaultOpen?: boolean;
|
|
10
10
|
onOpenChange?: (open: boolean, eventDetails: OpenChangeEventDetails) => void;
|
|
11
11
|
};
|
|
12
|
-
type HoverCardContentProps = Omit<ComponentProps<"div"> & {
|
|
12
|
+
export type HoverCardContentProps = Omit<ComponentProps<"div"> & {
|
|
13
13
|
side?: "top" | "bottom" | "left" | "right";
|
|
14
14
|
align?: "start" | "center" | "end";
|
|
15
15
|
sideOffset?: number;
|
|
16
16
|
}, "style"> & {
|
|
17
17
|
style?: CSSProperties & PopupKnobStyle;
|
|
18
18
|
};
|
|
19
|
-
declare function HoverCard(props: HoverCardProps): import("react").JSX.Element;
|
|
20
|
-
declare function HoverCardTrigger({ className, ...props }: ComponentProps<typeof PreviewCard.Trigger> & {
|
|
19
|
+
export declare function HoverCard(props: HoverCardProps): import("react").JSX.Element;
|
|
20
|
+
export declare function HoverCardTrigger({ className, ...props }: ComponentProps<typeof PreviewCard.Trigger> & {
|
|
21
21
|
style?: CSSProperties & PopupKnobStyle;
|
|
22
22
|
}): import("react").JSX.Element;
|
|
23
|
-
declare function HoverCardContent({ className, children, side, align, sideOffset, ...props }: HoverCardContentProps): import("react").JSX.Element;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { HoverCard, HoverCardContent, HoverCardContentProps, HoverCardProps, HoverCardTrigger };
|
|
23
|
+
export declare function HoverCardContent({ className, children, side, align, sideOffset, ...props }: HoverCardContentProps): import("react").JSX.Element;
|
|
24
|
+
//#endregion
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
|
-
import {
|
|
3
|
+
import { controlEffectsAttribute } from "../skin.js";
|
|
4
|
+
import { useSkin } from "../skin-provider.js";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
6
7
|
//#region src/ui/hover-card.tsx
|
|
@@ -18,13 +19,14 @@ function HoverCardTrigger({ className, ...props }) {
|
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
function HoverCardContent({ className, children, side = "bottom", align = "center", sideOffset = 8, ...props }) {
|
|
22
|
+
const skin = useSkin();
|
|
21
23
|
return /* @__PURE__ */ jsx(PreviewCard.Portal, { children: /* @__PURE__ */ jsx(PreviewCard.Positioner, {
|
|
22
24
|
"data-control-ui": "hover-card",
|
|
23
25
|
"data-popup-kind": "hover-card",
|
|
24
26
|
"data-control-family": "popup",
|
|
25
27
|
"data-slot": "positioner",
|
|
26
|
-
"data-skin":
|
|
27
|
-
"data-effects":
|
|
28
|
+
"data-skin": skin.id,
|
|
29
|
+
"data-effects": controlEffectsAttribute(skin.effects),
|
|
28
30
|
side,
|
|
29
31
|
align,
|
|
30
32
|
sideOffset,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { InfiniteCanvasKnobStyle } from "../knob-contracts/infinite-canvas-knobs.js";
|
|
2
2
|
import { CSSProperties, ComponentProps } from "react";
|
|
3
3
|
//#region src/ui/infinite-canvas.d.ts
|
|
4
|
-
type InfiniteCanvasTransform = {
|
|
4
|
+
export type InfiniteCanvasTransform = {
|
|
5
5
|
x: number;
|
|
6
6
|
y: number;
|
|
7
7
|
scale: number;
|
|
8
8
|
};
|
|
9
|
-
type InfiniteCanvasMoveReason = "pointer" | "wheel" | "keyboard" | "control";
|
|
10
|
-
type InfiniteCanvasMoveDetails = {
|
|
9
|
+
export type InfiniteCanvasMoveReason = "pointer" | "wheel" | "keyboard" | "control";
|
|
10
|
+
export type InfiniteCanvasMoveDetails = {
|
|
11
11
|
reason: InfiniteCanvasMoveReason;
|
|
12
12
|
};
|
|
13
|
-
type InfiniteCanvasProps = Omit<ComponentProps<"section">, "onChange" | "onWheel" | "ref" | "style"> & {
|
|
13
|
+
export type InfiniteCanvasProps = Omit<ComponentProps<"section">, "onChange" | "onWheel" | "ref" | "style"> & {
|
|
14
14
|
transform?: InfiniteCanvasTransform;
|
|
15
15
|
defaultTransform?: InfiniteCanvasTransform;
|
|
16
16
|
onTransformChange?: (transform: InfiniteCanvasTransform, details: InfiniteCanvasMoveDetails) => void;
|
|
@@ -19,10 +19,10 @@ type InfiniteCanvasProps = Omit<ComponentProps<"section">, "onChange" | "onWheel
|
|
|
19
19
|
onWheel?: (event: WheelEvent) => void;
|
|
20
20
|
style?: CSSProperties & InfiniteCanvasKnobStyle;
|
|
21
21
|
};
|
|
22
|
-
type InfiniteCanvasContentProps = ComponentProps<"div"> & {
|
|
22
|
+
export type InfiniteCanvasContentProps = ComponentProps<"div"> & {
|
|
23
23
|
style?: CSSProperties & InfiniteCanvasKnobStyle;
|
|
24
24
|
};
|
|
25
|
-
type InfiniteCanvasControlsProps = Omit<ComponentProps<"div">, "children" | "style"> & {
|
|
25
|
+
export type InfiniteCanvasControlsProps = Omit<ComponentProps<"div">, "children" | "style"> & {
|
|
26
26
|
style?: CSSProperties & InfiniteCanvasKnobStyle;
|
|
27
27
|
};
|
|
28
28
|
type InfiniteCanvasContextValue = {
|
|
@@ -32,9 +32,8 @@ type InfiniteCanvasContextValue = {
|
|
|
32
32
|
reset: (reason: InfiniteCanvasMoveReason) => void;
|
|
33
33
|
zoomBy: (factor: number, reason: InfiniteCanvasMoveReason) => void;
|
|
34
34
|
};
|
|
35
|
-
declare function useInfiniteCanvas(): InfiniteCanvasContextValue;
|
|
36
|
-
declare function InfiniteCanvas({ transform: controlledTransform, defaultTransform, onTransformChange, minScale: minScaleProp, maxScale: maxScaleProp, className, children, style, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onWheel, onKeyDown, "aria-label": ariaLabel, ...props }: InfiniteCanvasProps): import("react").JSX.Element;
|
|
37
|
-
declare function InfiniteCanvasContent({ className, style, ...props }: InfiniteCanvasContentProps): import("react").JSX.Element;
|
|
38
|
-
declare function InfiniteCanvasControls({ className, ...props }: InfiniteCanvasControlsProps): import("react").JSX.Element;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { InfiniteCanvas, InfiniteCanvasContent, InfiniteCanvasContentProps, InfiniteCanvasControls, InfiniteCanvasControlsProps, InfiniteCanvasMoveDetails, InfiniteCanvasMoveReason, InfiniteCanvasProps, InfiniteCanvasTransform, useInfiniteCanvas };
|
|
35
|
+
export declare function useInfiniteCanvas(): InfiniteCanvasContextValue;
|
|
36
|
+
export declare function InfiniteCanvas({ transform: controlledTransform, defaultTransform, onTransformChange, minScale: minScaleProp, maxScale: maxScaleProp, className, children, style, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onWheel, onKeyDown, "aria-label": ariaLabel, ...props }: InfiniteCanvasProps): import("react").JSX.Element;
|
|
37
|
+
export declare function InfiniteCanvasContent({ className, style, ...props }: InfiniteCanvasContentProps): import("react").JSX.Element;
|
|
38
|
+
export declare function InfiniteCanvasControls({ className, ...props }: InfiniteCanvasControlsProps): import("react").JSX.Element;
|
|
39
|
+
//#endregion
|
package/dist/ui/input-group.d.ts
CHANGED
|
@@ -3,19 +3,18 @@ import { ControlSize } from "../control-variants.js";
|
|
|
3
3
|
import { FieldKnobStyle } from "../knob-contracts/field-knobs.js";
|
|
4
4
|
import { CSSProperties, ComponentProps } from "react";
|
|
5
5
|
//#region src/ui/input-group.d.ts
|
|
6
|
-
type InputGroupProps = Omit<ComponentProps<"div">, "style"> & {
|
|
6
|
+
export type InputGroupProps = Omit<ComponentProps<"div">, "style"> & {
|
|
7
7
|
style?: CSSProperties & FieldKnobStyle;
|
|
8
8
|
} & {
|
|
9
9
|
render?: RenderProp<ComponentProps<"div">>;
|
|
10
10
|
size?: ControlSize;
|
|
11
11
|
};
|
|
12
|
-
type InputGroupAddonProps = ComponentProps<"span"> & {
|
|
12
|
+
export type InputGroupAddonProps = ComponentProps<"span"> & {
|
|
13
13
|
style?: CSSProperties & FieldKnobStyle;
|
|
14
14
|
};
|
|
15
|
-
declare function InputGroup({ size, className, render, children, ...props }: InputGroupProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
16
|
-
declare function InputGroupAddon({ className, ...props }: InputGroupAddonProps): import("react").JSX.Element;
|
|
17
|
-
declare function InputGroupInput({ className, ...props }: ComponentProps<"input"> & {
|
|
15
|
+
export declare function InputGroup({ size, className, render, children, ...props }: InputGroupProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
16
|
+
export declare function InputGroupAddon({ className, ...props }: InputGroupAddonProps): import("react").JSX.Element;
|
|
17
|
+
export declare function InputGroupInput({ className, ...props }: ComponentProps<"input"> & {
|
|
18
18
|
style?: CSSProperties & FieldKnobStyle;
|
|
19
19
|
}): import("react").JSX.Element;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupInput, InputGroupProps };
|
|
20
|
+
//#endregion
|
package/dist/ui/input-otp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldKnobStyle } from "../knob-contracts/field-knobs.js";
|
|
2
2
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/ui/input-otp.d.ts
|
|
4
|
-
type InputOTPProps = {
|
|
4
|
+
export type InputOTPProps = {
|
|
5
5
|
length?: number;
|
|
6
6
|
separator?: boolean;
|
|
7
7
|
value?: string;
|
|
@@ -20,7 +20,7 @@ type InputOTPProps = {
|
|
|
20
20
|
} & {
|
|
21
21
|
style?: CSSProperties & FieldKnobStyle;
|
|
22
22
|
};
|
|
23
|
-
type InputOTPSlotProps = {
|
|
23
|
+
export type InputOTPSlotProps = {
|
|
24
24
|
index: number;
|
|
25
25
|
length?: number;
|
|
26
26
|
disabled?: boolean;
|
|
@@ -28,11 +28,10 @@ type InputOTPSlotProps = {
|
|
|
28
28
|
className?: string;
|
|
29
29
|
style?: CSSProperties & FieldKnobStyle;
|
|
30
30
|
};
|
|
31
|
-
type InputOTPSeparatorProps = ComponentProps<"div"> & {
|
|
31
|
+
export type InputOTPSeparatorProps = ComponentProps<"div"> & {
|
|
32
32
|
style?: CSSProperties & FieldKnobStyle;
|
|
33
33
|
};
|
|
34
|
-
declare function InputOTPSlot({ index, length, className, ...props }: InputOTPSlotProps): import("react").JSX.Element;
|
|
35
|
-
declare function InputOTPSeparator({ className, ...props }: InputOTPSeparatorProps): import("react").JSX.Element;
|
|
36
|
-
declare function InputOTP({ length, separator, className, children, ...props }: InputOTPProps): import("react").JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { InputOTP, InputOTPProps, InputOTPSeparator, InputOTPSeparatorProps, InputOTPSlot, InputOTPSlotProps };
|
|
34
|
+
export declare function InputOTPSlot({ index, length, className, ...props }: InputOTPSlotProps): import("react").JSX.Element;
|
|
35
|
+
export declare function InputOTPSeparator({ className, ...props }: InputOTPSeparatorProps): import("react").JSX.Element;
|
|
36
|
+
export declare function InputOTP({ length, separator, className, children, ...props }: InputOTPProps): import("react").JSX.Element;
|
|
37
|
+
//#endregion
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { ControlSize } from "../control-variants.js";
|
|
|
2
2
|
import { FieldKnobStyle } from "../knob-contracts/field-knobs.js";
|
|
3
3
|
import { CSSProperties, ComponentProps } from "react";
|
|
4
4
|
//#region src/ui/input.d.ts
|
|
5
|
-
type InputProps = Omit<Omit<ComponentProps<"input">, "size">, "style"> & {
|
|
5
|
+
export type InputProps = Omit<Omit<ComponentProps<"input">, "size">, "style"> & {
|
|
6
6
|
style?: CSSProperties & FieldKnobStyle;
|
|
7
7
|
} & {
|
|
8
8
|
size?: ControlSize;
|
|
9
9
|
};
|
|
10
|
-
declare function Input({ size, className, ...props }: InputProps): import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Input, InputProps };
|
|
10
|
+
export declare function Input({ size, className, ...props }: InputProps): import("react").JSX.Element;
|
|
11
|
+
//#endregion
|
package/dist/ui/item.d.ts
CHANGED
|
@@ -2,45 +2,44 @@ import { RenderProp } from "../control-props.js";
|
|
|
2
2
|
import { ItemKnobStyle } from "../knob-contracts/item-knobs.js";
|
|
3
3
|
import { CSSProperties, ComponentProps } from "react";
|
|
4
4
|
//#region src/ui/item.d.ts
|
|
5
|
-
declare const itemVariants: readonly ["default", "outline", "muted"];
|
|
6
|
-
type ItemVariant = (typeof itemVariants)[number];
|
|
7
|
-
type ItemProps = Omit<ComponentProps<"div"> & {
|
|
5
|
+
export declare const itemVariants: readonly ["default", "outline", "muted"];
|
|
6
|
+
export type ItemVariant = (typeof itemVariants)[number];
|
|
7
|
+
export type ItemProps = Omit<ComponentProps<"div"> & {
|
|
8
8
|
variant?: ItemVariant;
|
|
9
9
|
render?: RenderProp<ComponentProps<"div">>;
|
|
10
10
|
}, "style"> & {
|
|
11
11
|
style?: CSSProperties & ItemKnobStyle;
|
|
12
12
|
};
|
|
13
|
-
type ItemDescriptionProps = Omit<ComponentProps<"p">, "style"> & {
|
|
13
|
+
export type ItemDescriptionProps = Omit<ComponentProps<"p">, "style"> & {
|
|
14
14
|
style?: CSSProperties & ItemKnobStyle;
|
|
15
15
|
};
|
|
16
|
-
type ItemFooterProps = Omit<ComponentProps<"div">, "style"> & {
|
|
16
|
+
export type ItemFooterProps = Omit<ComponentProps<"div">, "style"> & {
|
|
17
17
|
style?: CSSProperties & ItemKnobStyle;
|
|
18
18
|
};
|
|
19
|
-
type ItemMediaProps = Omit<ComponentProps<"div">, "style"> & {
|
|
19
|
+
export type ItemMediaProps = Omit<ComponentProps<"div">, "style"> & {
|
|
20
20
|
style?: CSSProperties & ItemKnobStyle;
|
|
21
21
|
};
|
|
22
|
-
type ItemTitleProps = Omit<ComponentProps<"div">, "style"> & {
|
|
22
|
+
export type ItemTitleProps = Omit<ComponentProps<"div">, "style"> & {
|
|
23
23
|
style?: CSSProperties & ItemKnobStyle;
|
|
24
24
|
};
|
|
25
|
-
type ItemGroupProps = ComponentProps<"div"> & {
|
|
25
|
+
export type ItemGroupProps = ComponentProps<"div"> & {
|
|
26
26
|
style?: CSSProperties & ItemKnobStyle;
|
|
27
27
|
};
|
|
28
|
-
type ItemSeparatorProps = ComponentProps<"div">;
|
|
29
|
-
declare function ItemGroup({ className, ...props }: ItemGroupProps): import("react").JSX.Element;
|
|
30
|
-
declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): import("react").JSX.Element;
|
|
31
|
-
declare function Item({ variant, render, className, children, ...props }: ItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
32
|
-
declare function ItemMedia({ className, ...props }: ItemMediaProps): import("react").JSX.Element;
|
|
33
|
-
declare function ItemContent({ className, ...props }: ComponentProps<"div"> & {
|
|
28
|
+
export type ItemSeparatorProps = ComponentProps<"div">;
|
|
29
|
+
export declare function ItemGroup({ className, ...props }: ItemGroupProps): import("react").JSX.Element;
|
|
30
|
+
export declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): import("react").JSX.Element;
|
|
31
|
+
export declare function Item({ variant, render, className, children, ...props }: ItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
32
|
+
export declare function ItemMedia({ className, ...props }: ItemMediaProps): import("react").JSX.Element;
|
|
33
|
+
export declare function ItemContent({ className, ...props }: ComponentProps<"div"> & {
|
|
34
34
|
style?: CSSProperties & ItemKnobStyle;
|
|
35
35
|
}): import("react").JSX.Element;
|
|
36
|
-
declare function ItemTitle({ className, ...props }: ItemTitleProps): import("react").JSX.Element;
|
|
37
|
-
declare function ItemDescription({ className, ...props }: ItemDescriptionProps): import("react").JSX.Element;
|
|
38
|
-
declare function ItemActions({ className, ...props }: ComponentProps<"div"> & {
|
|
36
|
+
export declare function ItemTitle({ className, ...props }: ItemTitleProps): import("react").JSX.Element;
|
|
37
|
+
export declare function ItemDescription({ className, ...props }: ItemDescriptionProps): import("react").JSX.Element;
|
|
38
|
+
export declare function ItemActions({ className, ...props }: ComponentProps<"div"> & {
|
|
39
39
|
style?: CSSProperties & ItemKnobStyle;
|
|
40
40
|
}): import("react").JSX.Element;
|
|
41
|
-
declare function ItemHeader({ className, ...props }: ComponentProps<"div"> & {
|
|
41
|
+
export declare function ItemHeader({ className, ...props }: ComponentProps<"div"> & {
|
|
42
42
|
style?: CSSProperties & ItemKnobStyle;
|
|
43
43
|
}): import("react").JSX.Element;
|
|
44
|
-
declare function ItemFooter({ className, ...props }: ItemFooterProps): import("react").JSX.Element;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemDescriptionProps, ItemFooter, ItemFooterProps, ItemGroup, ItemGroupProps, ItemHeader, ItemMedia, ItemMediaProps, ItemProps, ItemSeparator, ItemSeparatorProps, ItemTitle, ItemTitleProps, ItemVariant, itemVariants };
|
|
44
|
+
export declare function ItemFooter({ className, ...props }: ItemFooterProps): import("react").JSX.Element;
|
|
45
|
+
//#endregion
|
package/dist/ui/kbd.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { KbdKnobStyle } from "../knob-contracts/kbd-knobs.js";
|
|
2
2
|
import { CSSProperties, ComponentProps } from "react";
|
|
3
3
|
//#region src/ui/kbd.d.ts
|
|
4
|
-
|
|
4
|
+
export declare const kbdVariants: readonly ["default", "ghost"];
|
|
5
|
+
export type KbdVariant = (typeof kbdVariants)[number];
|
|
6
|
+
export type KbdProps = Omit<ComponentProps<"kbd">, "style"> & {
|
|
7
|
+
variant?: KbdVariant;
|
|
5
8
|
style?: CSSProperties & KbdKnobStyle;
|
|
6
9
|
};
|
|
7
|
-
declare function Kbd({ className, ...props }: KbdProps): import("react").JSX.Element;
|
|
8
|
-
declare function KbdGroup({ className, ...props }: ComponentProps<"span"> & {
|
|
10
|
+
export declare function Kbd({ variant, className, ...props }: KbdProps): import("react").JSX.Element;
|
|
11
|
+
export declare function KbdGroup({ className, ...props }: ComponentProps<"span"> & {
|
|
9
12
|
style?: CSSProperties & KbdKnobStyle;
|
|
10
13
|
}): import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Kbd, KbdGroup, KbdProps };
|
|
14
|
+
//#endregion
|
package/dist/ui/kbd.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/ui/kbd.tsx
|
|
4
|
-
|
|
4
|
+
const kbdVariants = ["default", "ghost"];
|
|
5
|
+
function Kbd({ variant = "default", className, ...props }) {
|
|
5
6
|
return /* @__PURE__ */ jsx("kbd", {
|
|
6
7
|
"data-control-ui": "kbd",
|
|
7
8
|
"data-control-family": "kbd",
|
|
8
9
|
"data-slot": "root",
|
|
10
|
+
"data-variant": variant,
|
|
9
11
|
className: cn("inline-flex select-none items-center justify-center", className),
|
|
10
12
|
...props
|
|
11
13
|
});
|
|
@@ -20,4 +22,4 @@ function KbdGroup({ className, ...props }) {
|
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
24
|
//#endregion
|
|
23
|
-
export { Kbd, KbdGroup };
|
|
25
|
+
export { Kbd, KbdGroup, kbdVariants };
|
|
@@ -11,25 +11,25 @@ type MarkdownElementProps<Tag extends keyof JSX.IntrinsicElements> = ComponentPr
|
|
|
11
11
|
} & {
|
|
12
12
|
style?: CSSProperties & MarkdownKnobStyle;
|
|
13
13
|
};
|
|
14
|
-
declare function MarkdownInlineCode({ className, children, node: _node, ...props }: MarkdownCodeProps): JSX.Element;
|
|
15
|
-
declare function MarkdownPre({ children, node: _node }: MarkdownElementProps<"pre">): JSX.Element;
|
|
16
|
-
declare function MarkdownCode({ className, children, node: _node, ...props }: MarkdownCodeProps): JSX.Element;
|
|
17
|
-
declare function MarkdownH1({ className, node: _node, ...props }: MarkdownElementProps<"h1">): JSX.Element;
|
|
18
|
-
declare function MarkdownH2({ className, node: _node, ...props }: MarkdownElementProps<"h2">): JSX.Element;
|
|
19
|
-
declare function MarkdownH3({ className, node: _node, ...props }: MarkdownElementProps<"h3">): JSX.Element;
|
|
20
|
-
declare function MarkdownP({ className, node: _node, ...props }: MarkdownElementProps<"p">): JSX.Element;
|
|
21
|
-
declare function MarkdownUl({ className, node: _node, ...props }: MarkdownElementProps<"ul">): JSX.Element;
|
|
22
|
-
declare function MarkdownOl({ className, node: _node, ...props }: MarkdownElementProps<"ol">): JSX.Element;
|
|
23
|
-
declare function MarkdownLi({ className, node: _node, ...props }: MarkdownElementProps<"li">): JSX.Element;
|
|
24
|
-
declare function MarkdownA({ className, node: _node, ...props }: MarkdownElementProps<"a">): JSX.Element;
|
|
25
|
-
declare function MarkdownBlockquote({ className, node: _node, ...props }: MarkdownElementProps<"blockquote">): JSX.Element;
|
|
26
|
-
declare function MarkdownHr({ className, node: _node, ...props }: MarkdownElementProps<"hr">): JSX.Element;
|
|
27
|
-
declare function MarkdownStrong({ className, node: _node, ...props }: MarkdownElementProps<"strong">): JSX.Element;
|
|
28
|
-
declare function MarkdownEm({ className, node: _node, ...props }: MarkdownElementProps<"em">): JSX.Element;
|
|
29
|
-
declare function MarkdownTable({ className, children, node: _node, ...props }: MarkdownElementProps<"table">): JSX.Element;
|
|
30
|
-
declare function MarkdownTh({ className, node: _node, ...props }: MarkdownElementProps<"th">): JSX.Element;
|
|
31
|
-
declare function MarkdownTd({ className, node: _node, ...props }: MarkdownElementProps<"td">): JSX.Element;
|
|
32
|
-
declare const markdownComponents: {
|
|
14
|
+
export declare function MarkdownInlineCode({ className, children, node: _node, ...props }: MarkdownCodeProps): JSX.Element;
|
|
15
|
+
export declare function MarkdownPre({ children, node: _node }: MarkdownElementProps<"pre">): JSX.Element;
|
|
16
|
+
export declare function MarkdownCode({ className, children, node: _node, ...props }: MarkdownCodeProps): JSX.Element;
|
|
17
|
+
export declare function MarkdownH1({ className, node: _node, ...props }: MarkdownElementProps<"h1">): JSX.Element;
|
|
18
|
+
export declare function MarkdownH2({ className, node: _node, ...props }: MarkdownElementProps<"h2">): JSX.Element;
|
|
19
|
+
export declare function MarkdownH3({ className, node: _node, ...props }: MarkdownElementProps<"h3">): JSX.Element;
|
|
20
|
+
export declare function MarkdownP({ className, node: _node, ...props }: MarkdownElementProps<"p">): JSX.Element;
|
|
21
|
+
export declare function MarkdownUl({ className, node: _node, ...props }: MarkdownElementProps<"ul">): JSX.Element;
|
|
22
|
+
export declare function MarkdownOl({ className, node: _node, ...props }: MarkdownElementProps<"ol">): JSX.Element;
|
|
23
|
+
export declare function MarkdownLi({ className, node: _node, ...props }: MarkdownElementProps<"li">): JSX.Element;
|
|
24
|
+
export declare function MarkdownA({ className, node: _node, ...props }: MarkdownElementProps<"a">): JSX.Element;
|
|
25
|
+
export declare function MarkdownBlockquote({ className, node: _node, ...props }: MarkdownElementProps<"blockquote">): JSX.Element;
|
|
26
|
+
export declare function MarkdownHr({ className, node: _node, ...props }: MarkdownElementProps<"hr">): JSX.Element;
|
|
27
|
+
export declare function MarkdownStrong({ className, node: _node, ...props }: MarkdownElementProps<"strong">): JSX.Element;
|
|
28
|
+
export declare function MarkdownEm({ className, node: _node, ...props }: MarkdownElementProps<"em">): JSX.Element;
|
|
29
|
+
export declare function MarkdownTable({ className, children, node: _node, ...props }: MarkdownElementProps<"table">): JSX.Element;
|
|
30
|
+
export declare function MarkdownTh({ className, node: _node, ...props }: MarkdownElementProps<"th">): JSX.Element;
|
|
31
|
+
export declare function MarkdownTd({ className, node: _node, ...props }: MarkdownElementProps<"td">): JSX.Element;
|
|
32
|
+
export declare const markdownComponents: {
|
|
33
33
|
code: typeof MarkdownCode;
|
|
34
34
|
inlineCode: typeof MarkdownInlineCode;
|
|
35
35
|
h1: typeof MarkdownH1;
|
|
@@ -48,5 +48,4 @@ declare const markdownComponents: {
|
|
|
48
48
|
th: typeof MarkdownTh;
|
|
49
49
|
td: typeof MarkdownTd;
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { MarkdownA, MarkdownBlockquote, MarkdownCode, MarkdownEm, MarkdownH1, MarkdownH2, MarkdownH3, MarkdownHr, MarkdownInlineCode, MarkdownLi, MarkdownOl, MarkdownP, MarkdownPre, MarkdownStrong, MarkdownTable, MarkdownTd, MarkdownTh, MarkdownUl, markdownComponents };
|
|
51
|
+
//#endregion
|
package/dist/ui/markdown.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { MarkdownKnobStyle } from "../knob-contracts/markdown-knobs.js";
|
|
2
2
|
import { CSSProperties, ComponentProps } from "react";
|
|
3
3
|
//#region src/ui/markdown.d.ts
|
|
4
|
-
type MarkdownProps = Omit<ComponentProps<"div">, "children" | "style"> & {
|
|
4
|
+
export type MarkdownProps = Omit<ComponentProps<"div">, "children" | "style"> & {
|
|
5
5
|
content: string;
|
|
6
6
|
style?: CSSProperties & MarkdownKnobStyle;
|
|
7
7
|
};
|
|
8
|
-
declare function MarkdownRoot({ className, ...props }: Omit<ComponentProps<"div">, "style"> & {
|
|
8
|
+
export declare function MarkdownRoot({ className, ...props }: Omit<ComponentProps<"div">, "style"> & {
|
|
9
9
|
style?: CSSProperties & MarkdownKnobStyle;
|
|
10
10
|
}): import("react").JSX.Element;
|
|
11
|
-
declare function Markdown({ content, className, ...props }: MarkdownProps): import("react").JSX.Element;
|
|
12
|
-
type MarkdownComponentProps = ComponentProps<typeof Markdown>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Markdown, MarkdownComponentProps, MarkdownProps, MarkdownRoot };
|
|
11
|
+
export declare function Markdown({ content, className, ...props }: MarkdownProps): import("react").JSX.Element;
|
|
12
|
+
export type MarkdownComponentProps = ComponentProps<typeof Markdown>;
|
|
13
|
+
//#endregion
|
package/dist/ui/menubar.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ButtonKnobStyle } from "../knob-contracts/button-knobs.js";
|
|
|
3
3
|
import { PopupKnobStyle } from "../knob-contracts/popup-knobs.js";
|
|
4
4
|
import { CSSProperties, ComponentProps, MouseEvent, ReactNode } from "react";
|
|
5
5
|
//#region src/ui/menubar.d.ts
|
|
6
|
-
type MenubarProps = Omit<ComponentProps<"div">, "style"> & {
|
|
6
|
+
export type MenubarProps = Omit<ComponentProps<"div">, "style"> & {
|
|
7
7
|
style?: CSSProperties & PopupKnobStyle;
|
|
8
8
|
} & {
|
|
9
9
|
modal?: boolean;
|
|
@@ -11,64 +11,63 @@ type MenubarProps = Omit<ComponentProps<"div">, "style"> & {
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
orientation?: "horizontal" | "vertical";
|
|
13
13
|
};
|
|
14
|
-
type MenubarMenuProps = {
|
|
14
|
+
export type MenubarMenuProps = {
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
open?: boolean;
|
|
17
17
|
defaultOpen?: boolean;
|
|
18
18
|
onOpenChange?: (open: boolean, eventDetails: OpenChangeEventDetails) => void;
|
|
19
19
|
};
|
|
20
|
-
type MenubarTriggerProps = Omit<ComponentProps<"button">, "style"> & {
|
|
20
|
+
export type MenubarTriggerProps = Omit<ComponentProps<"button">, "style"> & {
|
|
21
21
|
style?: CSSProperties & ButtonKnobStyle;
|
|
22
22
|
};
|
|
23
|
-
type MenubarContentProps = Omit<ComponentProps<"div">, "style"> & {
|
|
23
|
+
export type MenubarContentProps = Omit<ComponentProps<"div">, "style"> & {
|
|
24
24
|
style?: CSSProperties & PopupKnobStyle;
|
|
25
25
|
};
|
|
26
|
-
type MenubarGroupProps = ComponentProps<"div"> & {
|
|
26
|
+
export type MenubarGroupProps = ComponentProps<"div"> & {
|
|
27
27
|
style?: CSSProperties & PopupKnobStyle;
|
|
28
28
|
};
|
|
29
|
-
type MenubarItemProps = Omit<Omit<ComponentProps<"div">, "onClick">, "style"> & {
|
|
29
|
+
export type MenubarItemProps = Omit<Omit<ComponentProps<"div">, "onClick">, "style"> & {
|
|
30
30
|
style?: CSSProperties & PopupKnobStyle;
|
|
31
31
|
} & {
|
|
32
32
|
disabled?: boolean;
|
|
33
33
|
onClick?: (event: MouseEvent) => void;
|
|
34
34
|
};
|
|
35
|
-
type MenubarSeparatorProps = Omit<ComponentProps<"div">, "style"> & {
|
|
35
|
+
export type MenubarSeparatorProps = Omit<ComponentProps<"div">, "style"> & {
|
|
36
36
|
style?: CSSProperties & PopupKnobStyle;
|
|
37
37
|
};
|
|
38
|
-
type MenubarLabelProps = Omit<ComponentProps<"div">, "style"> & {
|
|
38
|
+
export type MenubarLabelProps = Omit<ComponentProps<"div">, "style"> & {
|
|
39
39
|
style?: CSSProperties & PopupKnobStyle;
|
|
40
40
|
} & {
|
|
41
41
|
inset?: boolean;
|
|
42
42
|
};
|
|
43
|
-
type MenubarShortcutProps = Omit<ComponentProps<"span">, "style"> & {
|
|
43
|
+
export type MenubarShortcutProps = Omit<ComponentProps<"span">, "style"> & {
|
|
44
44
|
style?: CSSProperties & PopupKnobStyle;
|
|
45
45
|
};
|
|
46
|
-
type MenubarSubProps = {
|
|
46
|
+
export type MenubarSubProps = {
|
|
47
47
|
children?: ReactNode;
|
|
48
48
|
open?: boolean;
|
|
49
49
|
defaultOpen?: boolean;
|
|
50
50
|
onOpenChange?: (open: boolean, eventDetails: OpenChangeEventDetails) => void;
|
|
51
51
|
};
|
|
52
|
-
type MenubarSubTriggerProps = Omit<Omit<ComponentProps<"div">, "onClick">, "style"> & {
|
|
52
|
+
export type MenubarSubTriggerProps = Omit<Omit<ComponentProps<"div">, "onClick">, "style"> & {
|
|
53
53
|
style?: CSSProperties & PopupKnobStyle;
|
|
54
54
|
} & {
|
|
55
55
|
disabled?: boolean;
|
|
56
56
|
inset?: boolean;
|
|
57
57
|
};
|
|
58
|
-
type MenubarSubContentProps = Omit<ComponentProps<"div">, "style"> & {
|
|
58
|
+
export type MenubarSubContentProps = Omit<ComponentProps<"div">, "style"> & {
|
|
59
59
|
style?: CSSProperties & PopupKnobStyle;
|
|
60
60
|
};
|
|
61
|
-
declare function Menubar({ className, ...props }: MenubarProps): import("react").JSX.Element;
|
|
62
|
-
declare function MenubarMenu(props: MenubarMenuProps): import("react").JSX.Element;
|
|
63
|
-
declare function MenubarTrigger({ className, ...props }: MenubarTriggerProps): import("react").JSX.Element;
|
|
64
|
-
declare function MenubarContent({ className, children, ...props }: MenubarContentProps): import("react").JSX.Element;
|
|
65
|
-
declare function MenubarGroup({ className, ...props }: MenubarGroupProps): import("react").JSX.Element;
|
|
66
|
-
declare function MenubarItem({ className, ...props }: MenubarItemProps): import("react").JSX.Element;
|
|
67
|
-
declare function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): import("react").JSX.Element;
|
|
68
|
-
declare function MenubarSeparator({ className, ...props }: MenubarSeparatorProps): import("react").JSX.Element;
|
|
69
|
-
declare function MenubarShortcut({ className, ...props }: MenubarShortcutProps): import("react").JSX.Element;
|
|
70
|
-
declare function MenubarSub(props: MenubarSubProps): import("react").JSX.Element;
|
|
71
|
-
declare function MenubarSubTrigger({ className, inset, children, ...props }: MenubarSubTriggerProps): import("react").JSX.Element;
|
|
72
|
-
declare function MenubarSubContent({ className, children, ...props }: MenubarSubContentProps): import("react").JSX.Element;
|
|
73
|
-
//#endregion
|
|
74
|
-
export { Menubar, MenubarContent, MenubarContentProps, MenubarGroup, MenubarGroupProps, MenubarItem, MenubarItemProps, MenubarLabel, MenubarLabelProps, MenubarMenu, MenubarMenuProps, MenubarProps, MenubarSeparator, MenubarSeparatorProps, MenubarShortcut, MenubarShortcutProps, MenubarSub, MenubarSubContent, MenubarSubContentProps, MenubarSubProps, MenubarSubTrigger, MenubarSubTriggerProps, MenubarTrigger, MenubarTriggerProps };
|
|
61
|
+
export declare function Menubar({ className, ...props }: MenubarProps): import("react").JSX.Element;
|
|
62
|
+
export declare function MenubarMenu(props: MenubarMenuProps): import("react").JSX.Element;
|
|
63
|
+
export declare function MenubarTrigger({ className, ...props }: MenubarTriggerProps): import("react").JSX.Element;
|
|
64
|
+
export declare function MenubarContent({ className, children, ...props }: MenubarContentProps): import("react").JSX.Element;
|
|
65
|
+
export declare function MenubarGroup({ className, ...props }: MenubarGroupProps): import("react").JSX.Element;
|
|
66
|
+
export declare function MenubarItem({ className, ...props }: MenubarItemProps): import("react").JSX.Element;
|
|
67
|
+
export declare function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): import("react").JSX.Element;
|
|
68
|
+
export declare function MenubarSeparator({ className, ...props }: MenubarSeparatorProps): import("react").JSX.Element;
|
|
69
|
+
export declare function MenubarShortcut({ className, ...props }: MenubarShortcutProps): import("react").JSX.Element;
|
|
70
|
+
export declare function MenubarSub(props: MenubarSubProps): import("react").JSX.Element;
|
|
71
|
+
export declare function MenubarSubTrigger({ className, inset, children, ...props }: MenubarSubTriggerProps): import("react").JSX.Element;
|
|
72
|
+
export declare function MenubarSubContent({ className, children, ...props }: MenubarSubContentProps): import("react").JSX.Element;
|
|
73
|
+
//#endregion
|
package/dist/ui/menubar.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
|
-
import {
|
|
3
|
+
import { controlEffectsAttribute } from "../skin.js";
|
|
4
|
+
import { useSkin } from "../skin-provider.js";
|
|
4
5
|
import { popupItemStructureClasses } from "../surface-variants.js";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { Menu } from "@base-ui/react/menu";
|
|
@@ -38,9 +39,10 @@ function MenubarTrigger({ className, ...props }) {
|
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
function MenubarContent({ className, children, ...props }) {
|
|
42
|
+
const skin = useSkin();
|
|
41
43
|
return /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
42
|
-
"data-skin":
|
|
43
|
-
"data-effects":
|
|
44
|
+
"data-skin": skin.id,
|
|
45
|
+
"data-effects": controlEffectsAttribute(skin.effects),
|
|
44
46
|
side: "bottom",
|
|
45
47
|
align: "start",
|
|
46
48
|
sideOffset: 6,
|
|
@@ -137,9 +139,10 @@ function MenubarSubTrigger({ className, inset = false, children, ...props }) {
|
|
|
137
139
|
});
|
|
138
140
|
}
|
|
139
141
|
function MenubarSubContent({ className, children, ...props }) {
|
|
142
|
+
const skin = useSkin();
|
|
140
143
|
return /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
141
|
-
"data-skin":
|
|
142
|
-
"data-effects":
|
|
144
|
+
"data-skin": skin.id,
|
|
145
|
+
"data-effects": controlEffectsAttribute(skin.effects),
|
|
143
146
|
side: "right",
|
|
144
147
|
align: "start",
|
|
145
148
|
sideOffset: -4,
|
package/dist/ui/meter.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RangeKnobStyle } from "../knob-contracts/range-knobs.js";
|
|
2
2
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/ui/meter.d.ts
|
|
4
|
-
type MeterProps = Omit<ComponentProps<"div"> & {
|
|
4
|
+
export type MeterProps = Omit<ComponentProps<"div"> & {
|
|
5
5
|
value: number;
|
|
6
6
|
min?: number;
|
|
7
7
|
max?: number;
|
|
@@ -11,24 +11,23 @@ type MeterProps = Omit<ComponentProps<"div"> & {
|
|
|
11
11
|
}, "style"> & {
|
|
12
12
|
style?: CSSProperties & RangeKnobStyle;
|
|
13
13
|
};
|
|
14
|
-
type MeterTrackProps = Omit<ComponentProps<"div">, "style"> & {
|
|
14
|
+
export type MeterTrackProps = Omit<ComponentProps<"div">, "style"> & {
|
|
15
15
|
style?: CSSProperties & RangeKnobStyle;
|
|
16
16
|
};
|
|
17
|
-
type MeterIndicatorProps = Omit<ComponentProps<"div">, "style"> & {
|
|
17
|
+
export type MeterIndicatorProps = Omit<ComponentProps<"div">, "style"> & {
|
|
18
18
|
style?: CSSProperties & RangeKnobStyle;
|
|
19
19
|
};
|
|
20
|
-
type MeterLabelProps = Omit<ComponentProps<"span">, "style"> & {
|
|
20
|
+
export type MeterLabelProps = Omit<ComponentProps<"span">, "style"> & {
|
|
21
21
|
style?: CSSProperties & RangeKnobStyle;
|
|
22
22
|
};
|
|
23
|
-
type MeterValueProps = Omit<Omit<ComponentProps<"span">, "children"> & {
|
|
23
|
+
export type MeterValueProps = Omit<Omit<ComponentProps<"span">, "children"> & {
|
|
24
24
|
children?: ((formattedValue: string, value: number) => ReactNode) | null;
|
|
25
25
|
}, "style"> & {
|
|
26
26
|
style?: CSSProperties & RangeKnobStyle;
|
|
27
27
|
};
|
|
28
|
-
declare function Meter({ className, ...props }: MeterProps): import("react").JSX.Element;
|
|
29
|
-
declare function MeterLabel({ className, ...props }: MeterLabelProps): import("react").JSX.Element;
|
|
30
|
-
declare function MeterValue({ className, ...props }: MeterValueProps): import("react").JSX.Element;
|
|
31
|
-
declare function MeterTrack({ className, ...props }: MeterTrackProps): import("react").JSX.Element;
|
|
32
|
-
declare function MeterIndicator({ className, ...props }: MeterIndicatorProps): import("react").JSX.Element;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Meter, MeterIndicator, MeterIndicatorProps, MeterLabel, MeterLabelProps, MeterProps, MeterTrack, MeterTrackProps, MeterValue, MeterValueProps };
|
|
28
|
+
export declare function Meter({ className, ...props }: MeterProps): import("react").JSX.Element;
|
|
29
|
+
export declare function MeterLabel({ className, ...props }: MeterLabelProps): import("react").JSX.Element;
|
|
30
|
+
export declare function MeterValue({ className, ...props }: MeterValueProps): import("react").JSX.Element;
|
|
31
|
+
export declare function MeterTrack({ className, ...props }: MeterTrackProps): import("react").JSX.Element;
|
|
32
|
+
export declare function MeterIndicator({ className, ...props }: MeterIndicatorProps): import("react").JSX.Element;
|
|
33
|
+
//#endregion
|