@ctrl-ui/react 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-bar.d.ts +15 -7
- package/dist/action-bar.js +39 -19
- package/dist/activity.js +7 -15
- package/dist/audio-recorder.d.ts +14 -4
- package/dist/audio-recorder.js +82 -29
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/coding-agent.js +54 -57
- package/dist/blocks/design-canvas-data.d.ts +32 -0
- package/dist/blocks/design-canvas-data.js +100 -0
- package/dist/blocks/design-canvas-inspector.d.ts +8 -0
- package/dist/blocks/design-canvas-inspector.js +238 -0
- package/dist/blocks/design-canvas.d.ts +21 -0
- package/dist/blocks/design-canvas.js +452 -0
- package/dist/blocks/discussion.d.ts +28 -0
- package/dist/blocks/discussion.js +67 -0
- package/dist/blocks/file-explorer-data.d.ts +1 -0
- package/dist/blocks/file-explorer-data.js +4 -1
- package/dist/blocks/file-explorer.d.ts +9 -1
- package/dist/blocks/file-explorer.js +461 -192
- package/dist/blocks/settings.d.ts +2 -1
- package/dist/blocks/settings.js +101 -79
- package/dist/blocks/team-chat.d.ts +12 -0
- package/dist/blocks/team-chat.js +26 -0
- package/dist/blocks/theme-toggle.js +23 -31
- package/dist/chat-composer-attachment.d.ts +12 -3
- package/dist/chat-composer-attachment.js +61 -19
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
- package/dist/chat-composer-editor/extensions/mention.js +58 -27
- package/dist/chat-composer-editor/ghost.js +2 -4
- package/dist/chat-composer-editor/types.d.ts +5 -0
- package/dist/chat-composer-editor.d.ts +1 -1
- package/dist/chat-composer-editor.js +71 -28
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +54 -13
- package/dist/chat-layout.d.ts +19 -0
- package/dist/chat-layout.js +96 -32
- package/dist/chat-message/social.d.ts +26 -0
- package/dist/chat-message/social.js +122 -0
- package/dist/chat-message.d.ts +28 -29
- package/dist/chat-message.js +106 -25
- package/dist/context.d.ts +2 -2
- package/dist/context.js +38 -23
- package/dist/dynamic-notification-canvas-loop.d.ts +24 -0
- package/dist/dynamic-notification-canvas-loop.js +113 -0
- package/dist/dynamic-notification-glass.js +23 -114
- package/dist/dynamic-notification-liquid.js +14 -118
- package/dist/dynamic-notification.d.ts +16 -8
- package/dist/dynamic-notification.js +85 -22
- package/dist/email/email-brand.d.ts +7 -4
- package/dist/email/email-brand.js +9 -6
- package/dist/email/email-code.d.ts +3 -2
- package/dist/email/email-code.js +11 -9
- package/dist/email/email-footer.d.ts +5 -3
- package/dist/email/email-footer.js +11 -5
- package/dist/email/email.d.ts +31 -9
- package/dist/email/email.js +50 -26
- package/dist/email/templates.d.ts +10 -9
- package/dist/email/templates.js +102 -38
- package/dist/email/theme.js +1 -1
- package/dist/environment-variables.d.ts +4 -2
- package/dist/environment-variables.js +52 -32
- package/dist/filter-bar/context.d.ts +32 -0
- package/dist/filter-bar/context.js +11 -0
- package/dist/filter-bar/editor.d.ts +14 -0
- package/dist/filter-bar/editor.js +216 -0
- package/dist/filter-bar/model.d.ts +10 -0
- package/dist/filter-bar/model.js +57 -0
- package/dist/filter-bar/motion.d.ts +10 -0
- package/dist/filter-bar/motion.js +84 -0
- package/dist/filter-bar/parts.d.ts +19 -0
- package/dist/filter-bar/parts.js +244 -0
- package/dist/filter-bar/types.d.ts +54 -0
- package/dist/filter-bar/types.js +0 -0
- package/dist/filter-bar.d.ts +27 -0
- package/dist/filter-bar.js +310 -0
- package/dist/hooks/use-audio-recorder.js +12 -6
- package/dist/hooks/use-chat-composer.d.ts +21 -7
- package/dist/hooks/use-chat-composer.js +32 -5
- package/dist/hooks/use-chat-message.d.ts +28 -2
- package/dist/hooks/use-chat-message.js +41 -10
- package/dist/hooks/use-chat-thread-scroll.js +43 -7
- package/dist/hooks/use-color-area.d.ts +3 -3
- package/dist/hooks/use-color-area.js +13 -12
- package/dist/hooks/use-copy-to-clipboard.d.ts +2 -1
- package/dist/hooks/use-copy-to-clipboard.js +20 -20
- package/dist/hooks/use-dropzone.d.ts +7 -4
- package/dist/hooks/use-dropzone.js +34 -3
- package/dist/hooks/use-dynamic-notification.d.ts +6 -2
- package/dist/hooks/use-dynamic-notification.js +26 -10
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +8 -4
- package/dist/hooks/use-textarea-trigger-menu.js +2 -1
- package/dist/hooks/use-trigger-menu.d.ts +54 -0
- package/dist/hooks/use-trigger-menu.js +102 -47
- package/dist/hooks/use-user-ask.d.ts +2 -0
- package/dist/hooks/use-user-ask.js +35 -41
- package/dist/inline-attachment.d.ts +6 -2
- package/dist/inline-attachment.js +44 -29
- package/dist/inline-citation.d.ts +12 -5
- package/dist/inline-citation.js +25 -16
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-recorder-knobs.js +2 -1
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-visualizer-knobs.js +2 -1
- package/dist/knob-contracts/avatar-knobs.d.ts +1 -1
- package/dist/knob-contracts/avatar-knobs.js +6 -1
- package/dist/knob-contracts/badge-knobs.d.ts +1 -1
- package/dist/knob-contracts/badge-knobs.js +2 -1
- package/dist/knob-contracts/breadcrumb-knobs.d.ts +4 -0
- package/dist/knob-contracts/breadcrumb-knobs.js +8 -0
- package/dist/knob-contracts/button-knobs.d.ts +1 -1
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-layout-knobs.js +2 -1
- package/dist/knob-contracts/chat-message-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-message-knobs.js +8 -1
- package/dist/knob-contracts/choice-knobs.d.ts +1 -1
- package/dist/knob-contracts/choice-knobs.js +1 -0
- package/dist/knob-contracts/code-diff-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-diff-knobs.js +2 -0
- package/dist/knob-contracts/code-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-knobs.js +2 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +1 -1
- package/dist/knob-contracts/collapsible-knobs.js +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.js +2 -0
- package/dist/knob-contracts/emoji-picker-knobs.d.ts +4 -0
- package/dist/knob-contracts/emoji-picker-knobs.js +10 -0
- package/dist/knob-contracts/field-knobs.d.ts +1 -1
- package/dist/knob-contracts/field-knobs.js +5 -1
- package/dist/knob-contracts/filter-bar-knobs.d.ts +4 -0
- package/dist/knob-contracts/filter-bar-knobs.js +15 -0
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +1 -1
- package/dist/knob-contracts/infinite-canvas-knobs.js +3 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +1 -1
- package/dist/knob-contracts/markdown-knobs.js +3 -1
- package/dist/knob-contracts/page-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/page-layout-knobs.js +4 -1
- package/dist/knob-contracts/popup-knobs.d.ts +1 -1
- package/dist/knob-contracts/popup-knobs.js +28 -0
- package/dist/knob-contracts/range-knobs.d.ts +1 -1
- package/dist/knob-contracts/range-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +1 -1
- package/dist/knob-contracts/rich-tooltip-knobs.js +2 -1
- package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
- package/dist/knob-contracts/sidebar-knobs.js +27 -2
- package/dist/knob-contracts/spinner-knobs.d.ts +1 -1
- package/dist/knob-contracts/spinner-knobs.js +1 -1
- package/dist/knob-contracts/stepper-knobs.d.ts +1 -1
- package/dist/knob-contracts/stepper-knobs.js +4 -1
- package/dist/knob-contracts/switch-knobs.d.ts +1 -1
- package/dist/knob-contracts/switch-knobs.js +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
- package/dist/knob-contracts/table-of-contents-knobs.js +4 -5
- package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
- package/dist/knob-contracts/tabs-knobs.js +1 -0
- package/dist/knob-contracts/tree-knobs.d.ts +1 -1
- package/dist/knob-contracts/tree-knobs.js +2 -1
- package/dist/lib/cn.js +0 -4
- package/dist/lib/contrast.d.ts +1 -0
- package/dist/lib/contrast.js +17 -5
- package/dist/lib/dropzone-validation.js +41 -28
- package/dist/lib/env-file.d.ts +1 -1
- package/dist/lib/env-file.js +5 -5
- package/dist/lib/motion.d.ts +4 -0
- package/dist/lib/motion.js +15 -0
- package/dist/lib/trigger-detect.js +6 -8
- package/dist/markdown-block.js +13 -8
- package/dist/popup-parts.d.ts +8 -0
- package/dist/popup-parts.js +43 -0
- package/dist/scripts/contrast-eval.js +5 -4
- package/dist/source-badge.js +3 -1
- package/dist/styles/code.css +0 -2
- package/dist/styles/effects.css +6 -32
- package/dist/styles/index.css +14 -8
- package/dist/styles/recipes/accordion.css +9 -6
- package/dist/styles/recipes/action-bar.css +0 -15
- package/dist/styles/recipes/activity.css +5 -11
- package/dist/styles/recipes/alert.css +4 -4
- package/dist/styles/recipes/audio-recorder.css +15 -3
- package/dist/styles/recipes/audio-visualizer.css +13 -2
- package/dist/styles/recipes/avatar.css +78 -1
- package/dist/styles/recipes/badge.css +14 -4
- package/dist/styles/recipes/breadcrumb.css +77 -0
- package/dist/styles/recipes/button-group.css +6 -8
- package/dist/styles/recipes/button-states.css +66 -0
- package/dist/styles/recipes/button.css +26 -85
- package/dist/styles/recipes/calendar.css +17 -23
- package/dist/styles/recipes/card.css +2 -2
- package/dist/styles/recipes/chat-composer-attachment.css +9 -3
- package/dist/styles/recipes/chat-composer.css +21 -16
- package/dist/styles/recipes/chat-layout.css +64 -2
- package/dist/styles/recipes/chat-message-social.css +123 -0
- package/dist/styles/recipes/chat-message.css +157 -37
- package/dist/styles/recipes/choice.css +25 -21
- package/dist/styles/recipes/code-diff.css +51 -26
- package/dist/styles/recipes/code.css +44 -18
- package/dist/styles/recipes/collapsible.css +43 -1
- package/dist/styles/recipes/color-picker-details.css +3 -4
- package/dist/styles/recipes/color-picker-values.css +9 -8
- package/dist/styles/recipes/color-picker.css +23 -4
- package/dist/styles/recipes/context.css +3 -3
- package/dist/styles/recipes/dockable-panel.css +18 -7
- package/dist/styles/recipes/dropzone.css +7 -8
- package/dist/styles/recipes/dynamic-notification-input.css +8 -5
- package/dist/styles/recipes/dynamic-notification-motion.css +12 -21
- package/dist/styles/recipes/dynamic-notification.css +40 -26
- package/dist/styles/recipes/emoji-picker.css +132 -0
- package/dist/styles/recipes/empty.css +5 -4
- package/dist/styles/recipes/environment-variables.css +4 -15
- package/dist/styles/recipes/field-parts.css +89 -21
- package/dist/styles/recipes/field.css +83 -26
- package/dist/styles/recipes/filter-bar.css +161 -0
- package/dist/styles/recipes/gradient-editor.css +18 -7
- package/dist/styles/recipes/infinite-canvas.css +51 -4
- package/dist/styles/recipes/inline-attachment.css +9 -4
- package/dist/styles/recipes/inline-citation.css +10 -4
- package/dist/styles/recipes/item.css +23 -9
- package/dist/styles/recipes/markdown-block.css +5 -4
- package/dist/styles/recipes/markdown.css +68 -26
- package/dist/styles/recipes/morphing-panel.css +8 -8
- package/dist/styles/recipes/page-layout.css +36 -10
- package/dist/styles/recipes/pagination.css +5 -6
- package/dist/styles/recipes/phone-input.css +12 -8
- package/dist/styles/recipes/popup-controls.css +175 -26
- package/dist/styles/recipes/popup-drawer.css +35 -44
- package/dist/styles/recipes/popup-lists.css +139 -29
- package/dist/styles/recipes/popup-motion.css +4 -45
- package/dist/styles/recipes/popup-toast.css +55 -26
- package/dist/styles/recipes/popup.css +149 -153
- package/dist/styles/recipes/range.css +55 -19
- package/dist/styles/recipes/resizable.css +36 -7
- package/dist/styles/recipes/rich-tooltip.css +24 -34
- package/dist/styles/recipes/scroll-area.css +8 -1
- package/dist/styles/recipes/sidebar-menu.css +149 -34
- package/dist/styles/recipes/sidebar-parts.css +154 -0
- package/dist/styles/recipes/sidebar.css +187 -128
- package/dist/styles/recipes/source-badge.css +1 -1
- package/dist/styles/recipes/spinner.css +12 -1
- package/dist/styles/recipes/stepper.css +31 -13
- package/dist/styles/recipes/switch.css +68 -23
- package/dist/styles/recipes/table-of-contents.css +49 -41
- package/dist/styles/recipes/table.css +14 -10
- package/dist/styles/recipes/tabs.css +38 -12
- package/dist/styles/recipes/task-list.css +7 -14
- package/dist/styles/recipes/thread-rail.css +42 -19
- package/dist/styles/recipes/timeline.css +2 -0
- package/dist/styles/recipes/toolbar.css +27 -25
- package/dist/styles/recipes/track-highlight.css +12 -8
- package/dist/styles/recipes/transcript-divider.css +2 -2
- package/dist/styles/recipes/tree.css +31 -4
- package/dist/styles/recipes/user-ask-details.css +0 -1
- package/dist/styles/recipes/user-ask.css +4 -4
- package/dist/styles/theme.css +287 -107
- package/dist/task-list.d.ts +4 -1
- package/dist/task-list.js +24 -8
- package/dist/thread-rail.d.ts +1 -1
- package/dist/thread-rail.js +61 -19
- package/dist/transcript-divider.js +2 -1
- package/dist/ui/alert.d.ts +3 -1
- package/dist/ui/alert.js +14 -8
- package/dist/ui/autocomplete.js +7 -1
- package/dist/ui/avatar.d.ts +8 -0
- package/dist/ui/avatar.js +23 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.ts +27 -0
- package/dist/ui/breadcrumb.js +88 -0
- package/dist/ui/button.d.ts +2 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/calendar.js +2 -2
- package/dist/ui/card.d.ts +3 -1
- package/dist/ui/card.js +12 -7
- package/dist/ui/checkbox-group.js +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/code-diff.d.ts +1 -1
- package/dist/ui/code-diff.js +71 -27
- package/dist/ui/code.d.ts +5 -3
- package/dist/ui/code.js +27 -28
- package/dist/ui/color-picker.d.ts +5 -2
- package/dist/ui/color-picker.js +84 -36
- package/dist/ui/combobox-disabled-selection.d.ts +1 -2
- package/dist/ui/combobox-disabled-selection.js +7 -8
- package/dist/ui/combobox.d.ts +5 -23
- package/dist/ui/combobox.js +36 -16
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +39 -15
- package/dist/ui/context-menu.js +3 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +3 -22
- package/dist/ui/dockable-panel-geometry.d.ts +1 -0
- package/dist/ui/dockable-panel-geometry.js +7 -1
- package/dist/ui/dockable-panel.d.ts +9 -6
- package/dist/ui/dockable-panel.js +81 -33
- package/dist/ui/drawer.d.ts +7 -4
- package/dist/ui/drawer.js +35 -22
- package/dist/ui/dropdown-menu.js +4 -3
- package/dist/ui/dropzone.d.ts +5 -3
- package/dist/ui/dropzone.js +78 -17
- package/dist/ui/emoji-picker.d.ts +18 -0
- package/dist/ui/emoji-picker.js +136 -0
- package/dist/ui/empty.d.ts +3 -1
- package/dist/ui/empty.js +12 -7
- package/dist/ui/field.js +1 -1
- package/dist/ui/gradient-editor.d.ts +1 -1
- package/dist/ui/gradient-editor.js +37 -21
- package/dist/ui/infinite-canvas.d.ts +13 -1
- package/dist/ui/infinite-canvas.js +139 -20
- package/dist/ui/input-group.d.ts +2 -4
- package/dist/ui/input-group.js +13 -14
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.js +32 -15
- package/dist/ui/input.js +11 -2
- package/dist/ui/item.d.ts +2 -1
- package/dist/ui/item.js +11 -7
- package/dist/ui/live-status.d.ts +7 -0
- package/dist/ui/live-status.js +17 -0
- package/dist/ui/markdown-elements.d.ts +6 -0
- package/dist/ui/markdown-elements.js +42 -9
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/morphing-panel.js +2 -1
- package/dist/ui/native-select.d.ts +1 -1
- package/dist/ui/native-select.js +24 -11
- package/dist/ui/number-field.d.ts +1 -1
- package/dist/ui/number-field.js +13 -2
- package/dist/ui/page-layout.d.ts +2 -2
- package/dist/ui/page-layout.js +2 -4
- package/dist/ui/pagination.d.ts +7 -5
- package/dist/ui/pagination.js +19 -13
- package/dist/ui/phone-input.d.ts +1 -0
- package/dist/ui/phone-input.js +56 -58
- package/dist/ui/radio-group.d.ts +3 -0
- package/dist/ui/radio-group.js +11 -1
- package/dist/ui/resizable.d.ts +20 -2
- package/dist/ui/resizable.js +130 -8
- package/dist/ui/responsive-dialog.d.ts +1 -1
- package/dist/ui/responsive-dialog.js +9 -23
- package/dist/ui/rich-tooltip.d.ts +10 -4
- package/dist/ui/rich-tooltip.js +81 -33
- package/dist/ui/scroll-area.d.ts +4 -1
- package/dist/ui/scroll-area.js +44 -28
- package/dist/ui/select.d.ts +2 -1
- package/dist/ui/select.js +57 -32
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +31 -33
- package/dist/ui/sidebar-provider.d.ts +10 -1
- package/dist/ui/sidebar-provider.js +38 -13
- package/dist/ui/sidebar-resize-rail.js +7 -3
- package/dist/ui/sidebar.d.ts +11 -6
- package/dist/ui/sidebar.js +46 -23
- package/dist/ui/slider.js +31 -22
- package/dist/ui/spinner.d.ts +3 -2
- package/dist/ui/spinner.js +3 -2
- package/dist/ui/stepper.d.ts +8 -1
- package/dist/ui/stepper.js +74 -25
- package/dist/ui/switch.d.ts +1 -0
- package/dist/ui/table-of-contents.d.ts +5 -4
- package/dist/ui/table-of-contents.js +143 -52
- package/dist/ui/table.js +15 -9
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.js +20 -9
- package/dist/ui/timeline.d.ts +3 -1
- package/dist/ui/timeline.js +17 -9
- package/dist/ui/toast.d.ts +11 -5
- package/dist/ui/toast.js +100 -54
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.js +2 -1
- package/dist/ui/toolbar.d.ts +3 -2
- package/dist/ui/toolbar.js +4 -2
- package/dist/ui/tooltip.js +3 -20
- package/dist/ui/tree.js +120 -80
- package/dist/ui/trigger-menu.js +7 -2
- package/dist/user-ask.d.ts +10 -5
- package/dist/user-ask.js +31 -11
- package/package.json +5 -1
- package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
- package/dist/hooks/use-keyboard-navigation.js +0 -22
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/knob-contracts/emoji-picker-knobs.ts
|
|
2
|
+
const emojiPickerKnobs = [
|
|
3
|
+
"--cui-emoji-picker-cell-size",
|
|
4
|
+
"--cui-emoji-picker-cell-radius",
|
|
5
|
+
"--cui-emoji-picker-active-background",
|
|
6
|
+
"--cui-emoji-picker-header-background",
|
|
7
|
+
"--cui-emoji-picker-header-foreground"
|
|
8
|
+
];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { emojiPickerKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/field-knobs.d.ts
|
|
2
|
-
export declare const fieldKnobs: readonly ["--cui-field-radius", "--cui-field-background", "--cui-field-
|
|
2
|
+
export declare const fieldKnobs: readonly ["--cui-field-radius", "--cui-field-background", "--cui-field-hover-background", "--cui-field-affordance-background", "--cui-field-affordance-shadow", "--cui-field-affordance-foreground", "--cui-field-affordance-hover-background", "--cui-field-foreground", "--cui-field-border-color", "--cui-field-border-width", "--cui-field-shadow", "--cui-field-backdrop-filter", "--cui-field-height", "--cui-field-padding-inline", "--cui-field-font-size"];
|
|
3
3
|
export type FieldKnobStyle = Partial<Record<(typeof fieldKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
const fieldKnobs = [
|
|
3
3
|
"--cui-field-radius",
|
|
4
4
|
"--cui-field-background",
|
|
5
|
+
"--cui-field-hover-background",
|
|
6
|
+
"--cui-field-affordance-background",
|
|
7
|
+
"--cui-field-affordance-shadow",
|
|
8
|
+
"--cui-field-affordance-foreground",
|
|
9
|
+
"--cui-field-affordance-hover-background",
|
|
5
10
|
"--cui-field-foreground",
|
|
6
11
|
"--cui-field-border-color",
|
|
7
12
|
"--cui-field-border-width",
|
|
8
13
|
"--cui-field-shadow",
|
|
9
14
|
"--cui-field-backdrop-filter",
|
|
10
|
-
"--cui-field-focus-border-color",
|
|
11
15
|
"--cui-field-height",
|
|
12
16
|
"--cui-field-padding-inline",
|
|
13
17
|
"--cui-field-font-size"
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/knob-contracts/filter-bar-knobs.d.ts
|
|
2
|
+
export declare const filterBarKnobs: readonly ["--cui-filter-bar-background", "--cui-filter-bar-foreground", "--cui-filter-bar-border-color", "--cui-filter-bar-border-width", "--cui-filter-bar-radius", "--cui-filter-bar-height", "--cui-filter-bar-gap", "--cui-filter-bar-padding-inline", "--cui-filter-bar-font-size", "--cui-filter-bar-hover-background"];
|
|
3
|
+
export type FilterBarKnobStyle = Partial<Record<(typeof filterBarKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/knob-contracts/filter-bar-knobs.ts
|
|
2
|
+
const filterBarKnobs = [
|
|
3
|
+
"--cui-filter-bar-background",
|
|
4
|
+
"--cui-filter-bar-foreground",
|
|
5
|
+
"--cui-filter-bar-border-color",
|
|
6
|
+
"--cui-filter-bar-border-width",
|
|
7
|
+
"--cui-filter-bar-radius",
|
|
8
|
+
"--cui-filter-bar-height",
|
|
9
|
+
"--cui-filter-bar-gap",
|
|
10
|
+
"--cui-filter-bar-padding-inline",
|
|
11
|
+
"--cui-filter-bar-font-size",
|
|
12
|
+
"--cui-filter-bar-hover-background"
|
|
13
|
+
];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { filterBarKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/infinite-canvas-knobs.d.ts
|
|
2
|
-
export declare const infiniteCanvasKnobs: readonly ["--cui-infinite-canvas-radius", "--cui-infinite-canvas-background", "--cui-infinite-canvas-grid-dot-color", "--cui-infinite-canvas-border-color", "--cui-infinite-canvas-controls-radius", "--cui-infinite-canvas-controls-background", "--cui-infinite-canvas-controls-border-color", "--cui-infinite-canvas-controls-shadow"];
|
|
2
|
+
export declare const infiniteCanvasKnobs: readonly ["--cui-infinite-canvas-radius", "--cui-infinite-canvas-background", "--cui-infinite-canvas-grid-dot-color", "--cui-infinite-canvas-border-color", "--cui-infinite-canvas-padding", "--cui-infinite-canvas-controls-item-radius", "--cui-infinite-canvas-controls-padding", "--cui-infinite-canvas-controls-radius", "--cui-infinite-canvas-controls-background", "--cui-infinite-canvas-controls-border-color", "--cui-infinite-canvas-controls-shadow"];
|
|
3
3
|
export type InfiniteCanvasKnobStyle = Partial<Record<(typeof infiniteCanvasKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -4,6 +4,9 @@ const infiniteCanvasKnobs = [
|
|
|
4
4
|
"--cui-infinite-canvas-background",
|
|
5
5
|
"--cui-infinite-canvas-grid-dot-color",
|
|
6
6
|
"--cui-infinite-canvas-border-color",
|
|
7
|
+
"--cui-infinite-canvas-padding",
|
|
8
|
+
"--cui-infinite-canvas-controls-item-radius",
|
|
9
|
+
"--cui-infinite-canvas-controls-padding",
|
|
7
10
|
"--cui-infinite-canvas-controls-radius",
|
|
8
11
|
"--cui-infinite-canvas-controls-background",
|
|
9
12
|
"--cui-infinite-canvas-controls-border-color",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/markdown-knobs.d.ts
|
|
2
|
-
export declare const markdownKnobs: readonly ["--cui-markdown-foreground", "--cui-markdown-blockquote-border-color", "--cui-markdown-blockquote-foreground", "--cui-markdown-inline-code-background", "--cui-markdown-inline-code-foreground", "--cui-markdown-inline-code-radius", "--cui-markdown-link-foreground", "--cui-markdown-image-outline-color", "--cui-markdown-table-cell-border-color", "--cui-markdown-table-header-background"];
|
|
2
|
+
export declare const markdownKnobs: readonly ["--cui-markdown-foreground", "--cui-markdown-blockquote-border-color", "--cui-markdown-blockquote-foreground", "--cui-markdown-inline-code-background", "--cui-markdown-inline-code-foreground", "--cui-markdown-inline-code-radius", "--cui-markdown-link-foreground", "--cui-markdown-image-outline-color", "--cui-markdown-table-cell-border-color", "--cui-markdown-table-header-background", "--cui-markdown-font-size", "--cui-markdown-line-height"];
|
|
3
3
|
export type MarkdownKnobStyle = Partial<Record<(typeof markdownKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -9,7 +9,9 @@ const markdownKnobs = [
|
|
|
9
9
|
"--cui-markdown-link-foreground",
|
|
10
10
|
"--cui-markdown-image-outline-color",
|
|
11
11
|
"--cui-markdown-table-cell-border-color",
|
|
12
|
-
"--cui-markdown-table-header-background"
|
|
12
|
+
"--cui-markdown-table-header-background",
|
|
13
|
+
"--cui-markdown-font-size",
|
|
14
|
+
"--cui-markdown-line-height"
|
|
13
15
|
];
|
|
14
16
|
//#endregion
|
|
15
17
|
export { markdownKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/page-layout-knobs.d.ts
|
|
2
|
-
export declare const pageLayoutKnobs: readonly ["--cui-page-layout-article-size", "--cui-page-layout-aside-size", "--cui-page-layout-padding-inline", "--cui-page-layout-padding-block", "--cui-page-layout-column-gap", "--cui-page-layout-header-start-gap", "--cui-page-layout-header-gap", "--cui-page-layout-header-column-gap", "--cui-page-layout-header-row-gap", "--cui-page-layout-size", "--cui-page-layout-sticky-gap"];
|
|
2
|
+
export declare const pageLayoutKnobs: readonly ["--cui-page-layout-article-size", "--cui-page-layout-aside-size", "--cui-page-layout-padding-inline", "--cui-page-layout-padding-block", "--cui-page-layout-column-gap", "--cui-page-layout-header-start-gap", "--cui-page-layout-header-gap", "--cui-page-layout-header-column-gap", "--cui-page-layout-header-row-gap", "--cui-page-layout-size", "--cui-page-layout-sticky-gap", "--cui-page-layout-background", "--cui-page-layout-sticky-header-background", "--cui-page-layout-sticky-header-backdrop-filter"];
|
|
3
3
|
export type PageLayoutKnobStyle = Partial<Record<(typeof pageLayoutKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -10,7 +10,10 @@ const pageLayoutKnobs = [
|
|
|
10
10
|
"--cui-page-layout-header-column-gap",
|
|
11
11
|
"--cui-page-layout-header-row-gap",
|
|
12
12
|
"--cui-page-layout-size",
|
|
13
|
-
"--cui-page-layout-sticky-gap"
|
|
13
|
+
"--cui-page-layout-sticky-gap",
|
|
14
|
+
"--cui-page-layout-background",
|
|
15
|
+
"--cui-page-layout-sticky-header-background",
|
|
16
|
+
"--cui-page-layout-sticky-header-backdrop-filter"
|
|
14
17
|
];
|
|
15
18
|
//#endregion
|
|
16
19
|
export { pageLayoutKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/popup-knobs.d.ts
|
|
2
|
-
export declare const popupKnobs: readonly ["--cui-popup-radius", "--cui-popup-background", "--cui-popup-foreground", "--cui-popup-border-color", "--cui-popup-border-width", "--cui-popup-shadow", "--cui-popup-backdrop-filter", "--cui-popup-backdrop-background", "--cui-popup-item-radius", "--cui-popup-item-foreground", "--cui-popup-item-highlight-background", "--cui-popup-item-highlight-foreground", "--cui-popup-item-highlight-muted-foreground", "--cui-popup-item-disabled-opacity", "--cui-popup-separator-color", "--cui-popup-shortcut-foreground"];
|
|
2
|
+
export declare const popupKnobs: readonly ["--cui-popup-title-foreground", "--cui-popup-title-font-size", "--cui-popup-title-font-weight", "--cui-popup-title-line-height", "--cui-popup-title-letter-spacing", "--cui-popup-description-foreground", "--cui-popup-close-inset", "--cui-popup-item-inset", "--cui-popup-label-padding-block", "--cui-popup-label-padding-inline", "--cui-popup-label-font-size", "--cui-popup-label-font-weight", "--cui-popup-label-letter-spacing", "--cui-popup-label-text-transform", "--cui-popup-separator-inset", "--cui-popup-shortcut-font-size", "--cui-popup-shortcut-letter-spacing", "--cui-popup-status-success-foreground", "--cui-popup-status-warning-foreground", "--cui-popup-status-info-foreground", "--cui-popup-status-error-foreground", "--cui-popup-radius", "--cui-popup-background", "--cui-popup-foreground", "--cui-popup-border-color", "--cui-popup-border-width", "--cui-popup-shadow", "--cui-popup-backdrop-filter", "--cui-popup-backdrop-background", "--cui-popup-backdrop-blur", "--cui-popup-item-radius", "--cui-popup-item-font-size", "--cui-popup-item-icon-size", "--cui-popup-item-padding-block", "--cui-popup-item-padding-inline", "--cui-popup-item-min-height", "--cui-popup-item-highlight-shadow", "--cui-popup-item-foreground", "--cui-popup-item-highlight-background", "--cui-popup-item-highlight-foreground", "--cui-popup-item-highlight-muted-foreground", "--cui-popup-item-disabled-opacity", "--cui-popup-separator-color", "--cui-popup-shortcut-foreground"];
|
|
3
3
|
export type PopupKnobStyle = Partial<Record<(typeof popupKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
//#region src/knob-contracts/popup-knobs.ts
|
|
2
2
|
const popupKnobs = [
|
|
3
|
+
"--cui-popup-title-foreground",
|
|
4
|
+
"--cui-popup-title-font-size",
|
|
5
|
+
"--cui-popup-title-font-weight",
|
|
6
|
+
"--cui-popup-title-line-height",
|
|
7
|
+
"--cui-popup-title-letter-spacing",
|
|
8
|
+
"--cui-popup-description-foreground",
|
|
9
|
+
"--cui-popup-close-inset",
|
|
10
|
+
"--cui-popup-item-inset",
|
|
11
|
+
"--cui-popup-label-padding-block",
|
|
12
|
+
"--cui-popup-label-padding-inline",
|
|
13
|
+
"--cui-popup-label-font-size",
|
|
14
|
+
"--cui-popup-label-font-weight",
|
|
15
|
+
"--cui-popup-label-letter-spacing",
|
|
16
|
+
"--cui-popup-label-text-transform",
|
|
17
|
+
"--cui-popup-separator-inset",
|
|
18
|
+
"--cui-popup-shortcut-font-size",
|
|
19
|
+
"--cui-popup-shortcut-letter-spacing",
|
|
20
|
+
"--cui-popup-status-success-foreground",
|
|
21
|
+
"--cui-popup-status-warning-foreground",
|
|
22
|
+
"--cui-popup-status-info-foreground",
|
|
23
|
+
"--cui-popup-status-error-foreground",
|
|
3
24
|
"--cui-popup-radius",
|
|
4
25
|
"--cui-popup-background",
|
|
5
26
|
"--cui-popup-foreground",
|
|
@@ -8,7 +29,14 @@ const popupKnobs = [
|
|
|
8
29
|
"--cui-popup-shadow",
|
|
9
30
|
"--cui-popup-backdrop-filter",
|
|
10
31
|
"--cui-popup-backdrop-background",
|
|
32
|
+
"--cui-popup-backdrop-blur",
|
|
11
33
|
"--cui-popup-item-radius",
|
|
34
|
+
"--cui-popup-item-font-size",
|
|
35
|
+
"--cui-popup-item-icon-size",
|
|
36
|
+
"--cui-popup-item-padding-block",
|
|
37
|
+
"--cui-popup-item-padding-inline",
|
|
38
|
+
"--cui-popup-item-min-height",
|
|
39
|
+
"--cui-popup-item-highlight-shadow",
|
|
12
40
|
"--cui-popup-item-foreground",
|
|
13
41
|
"--cui-popup-item-highlight-background",
|
|
14
42
|
"--cui-popup-item-highlight-foreground",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/range-knobs.d.ts
|
|
2
|
-
export declare const rangeKnobs: readonly ["--cui-range-track-radius", "--cui-range-track-background", "--cui-range-indicator-radius", "--cui-range-indicator-background", "--cui-range-thumb-radius", "--cui-range-thumb-background", "--cui-range-thumb-border-color", "--cui-range-thumb-shadow"];
|
|
2
|
+
export declare const rangeKnobs: readonly ["--cui-range-indeterminate-size", "--cui-range-track-radius", "--cui-range-track-background", "--cui-range-indicator-radius", "--cui-range-indicator-background", "--cui-range-thumb-radius", "--cui-range-thumb-background", "--cui-range-thumb-border-color", "--cui-range-thumb-shadow"];
|
|
3
3
|
export type RangeKnobStyle = Partial<Record<(typeof rangeKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/rich-tooltip-knobs.d.ts
|
|
2
|
-
export declare const richTooltipKnobs: readonly ["--cui-rich-tooltip-content-background", "--cui-rich-tooltip-content-foreground", "--cui-rich-tooltip-content-radius", "--cui-rich-tooltip-content-shadow", "--cui-rich-tooltip-dot-background", "--cui-rich-tooltip-action-radius", "--cui-rich-tooltip-action-background", "--cui-rich-tooltip-action-foreground"];
|
|
2
|
+
export declare const richTooltipKnobs: readonly ["--cui-rich-tooltip-content-background", "--cui-rich-tooltip-content-foreground", "--cui-rich-tooltip-content-radius", "--cui-rich-tooltip-content-shadow", "--cui-rich-tooltip-dot-background", "--cui-rich-tooltip-action-radius", "--cui-rich-tooltip-action-background", "--cui-rich-tooltip-action-foreground", "--cui-rich-tooltip-focus-ring-color"];
|
|
3
3
|
export type RichTooltipKnobStyle = Partial<Record<(typeof richTooltipKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -7,7 +7,8 @@ const richTooltipKnobs = [
|
|
|
7
7
|
"--cui-rich-tooltip-dot-background",
|
|
8
8
|
"--cui-rich-tooltip-action-radius",
|
|
9
9
|
"--cui-rich-tooltip-action-background",
|
|
10
|
-
"--cui-rich-tooltip-action-foreground"
|
|
10
|
+
"--cui-rich-tooltip-action-foreground",
|
|
11
|
+
"--cui-rich-tooltip-focus-ring-color"
|
|
11
12
|
];
|
|
12
13
|
//#endregion
|
|
13
14
|
export { richTooltipKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/sidebar-knobs.d.ts
|
|
2
|
-
export declare const sidebarKnobs: readonly ["--cui-sidebar-
|
|
2
|
+
export declare const sidebarKnobs: readonly ["--cui-sidebar-menu-badge-height", "--cui-sidebar-menu-badge-background", "--cui-sidebar-menu-badge-foreground", "--cui-sidebar-rail-divider-background", "--cui-sidebar-wrapper-background", "--cui-sidebar-wrapper-background-image", "--cui-sidebar-inner-background", "--cui-sidebar-inner-border-color", "--cui-sidebar-inner-background-image", "--cui-sidebar-inner-backdrop-filter", "--cui-sidebar-inner-border-width", "--cui-sidebar-inner-radius", "--cui-sidebar-inner-shadow", "--cui-sidebar-header-background", "--cui-sidebar-header-shadow", "--cui-sidebar-inset-background", "--cui-sidebar-inset-background-image", "--cui-sidebar-inset-shadow", "--cui-sidebar-inset-border-color", "--cui-sidebar-inset-border-width", "--cui-sidebar-inset-radius", "--cui-sidebar-inset-inset", "--cui-sidebar-menu-button-radius", "--cui-sidebar-group-label-foreground", "--cui-sidebar-menu-button-foreground", "--cui-sidebar-menu-button-hover-background", "--cui-sidebar-menu-button-hover-foreground", "--cui-sidebar-menu-button-hover-shadow", "--cui-sidebar-menu-button-active-background", "--cui-sidebar-menu-button-active-foreground", "--cui-sidebar-menu-button-active-shadow", "--cui-sidebar-menu-button-track-active-foreground", "--cui-sidebar-menu-button-height", "--cui-sidebar-menu-button-padding-block", "--cui-sidebar-menu-button-padding-inline", "--cui-sidebar-menu-button-font-size", "--cui-sidebar-menu-button-font-weight", "--cui-sidebar-menu-button-active-font-weight", "--cui-sidebar-group-label-font-size", "--cui-sidebar-group-label-font-weight", "--cui-sidebar-group-label-letter-spacing", "--cui-sidebar-group-label-text-transform", "--cui-sidebar-group-label-padding", "--cui-sidebar-skip-link-background", "--cui-sidebar-skip-link-foreground", "--cui-sidebar-skip-link-radius", "--cui-sidebar-skip-link-shadow"];
|
|
3
3
|
export type SidebarKnobStyle = Partial<Record<(typeof sidebarKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
//#region src/knob-contracts/sidebar-knobs.ts
|
|
2
2
|
const sidebarKnobs = [
|
|
3
|
+
"--cui-sidebar-menu-badge-height",
|
|
4
|
+
"--cui-sidebar-menu-badge-background",
|
|
5
|
+
"--cui-sidebar-menu-badge-foreground",
|
|
3
6
|
"--cui-sidebar-rail-divider-background",
|
|
4
7
|
"--cui-sidebar-wrapper-background",
|
|
5
8
|
"--cui-sidebar-wrapper-background-image",
|
|
6
|
-
"--cui-sidebar-menu-button-radius",
|
|
7
9
|
"--cui-sidebar-inner-background",
|
|
8
10
|
"--cui-sidebar-inner-border-color",
|
|
9
11
|
"--cui-sidebar-inner-background-image",
|
|
@@ -11,9 +13,16 @@ const sidebarKnobs = [
|
|
|
11
13
|
"--cui-sidebar-inner-border-width",
|
|
12
14
|
"--cui-sidebar-inner-radius",
|
|
13
15
|
"--cui-sidebar-inner-shadow",
|
|
16
|
+
"--cui-sidebar-header-background",
|
|
17
|
+
"--cui-sidebar-header-shadow",
|
|
14
18
|
"--cui-sidebar-inset-background",
|
|
15
19
|
"--cui-sidebar-inset-background-image",
|
|
16
20
|
"--cui-sidebar-inset-shadow",
|
|
21
|
+
"--cui-sidebar-inset-border-color",
|
|
22
|
+
"--cui-sidebar-inset-border-width",
|
|
23
|
+
"--cui-sidebar-inset-radius",
|
|
24
|
+
"--cui-sidebar-inset-inset",
|
|
25
|
+
"--cui-sidebar-menu-button-radius",
|
|
17
26
|
"--cui-sidebar-group-label-foreground",
|
|
18
27
|
"--cui-sidebar-menu-button-foreground",
|
|
19
28
|
"--cui-sidebar-menu-button-hover-background",
|
|
@@ -21,7 +30,23 @@ const sidebarKnobs = [
|
|
|
21
30
|
"--cui-sidebar-menu-button-hover-shadow",
|
|
22
31
|
"--cui-sidebar-menu-button-active-background",
|
|
23
32
|
"--cui-sidebar-menu-button-active-foreground",
|
|
24
|
-
"--cui-sidebar-menu-button-active-shadow"
|
|
33
|
+
"--cui-sidebar-menu-button-active-shadow",
|
|
34
|
+
"--cui-sidebar-menu-button-track-active-foreground",
|
|
35
|
+
"--cui-sidebar-menu-button-height",
|
|
36
|
+
"--cui-sidebar-menu-button-padding-block",
|
|
37
|
+
"--cui-sidebar-menu-button-padding-inline",
|
|
38
|
+
"--cui-sidebar-menu-button-font-size",
|
|
39
|
+
"--cui-sidebar-menu-button-font-weight",
|
|
40
|
+
"--cui-sidebar-menu-button-active-font-weight",
|
|
41
|
+
"--cui-sidebar-group-label-font-size",
|
|
42
|
+
"--cui-sidebar-group-label-font-weight",
|
|
43
|
+
"--cui-sidebar-group-label-letter-spacing",
|
|
44
|
+
"--cui-sidebar-group-label-text-transform",
|
|
45
|
+
"--cui-sidebar-group-label-padding",
|
|
46
|
+
"--cui-sidebar-skip-link-background",
|
|
47
|
+
"--cui-sidebar-skip-link-foreground",
|
|
48
|
+
"--cui-sidebar-skip-link-radius",
|
|
49
|
+
"--cui-sidebar-skip-link-shadow"
|
|
25
50
|
];
|
|
26
51
|
//#endregion
|
|
27
52
|
export { sidebarKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/spinner-knobs.d.ts
|
|
2
|
-
export declare const spinnerKnobs: readonly ["--cui-spinner-foreground"];
|
|
2
|
+
export declare const spinnerKnobs: readonly ["--cui-spinner-foreground", "--cui-spinner-animation-duration"];
|
|
3
3
|
export type SpinnerKnobStyle = Partial<Record<(typeof spinnerKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/stepper-knobs.d.ts
|
|
2
|
-
export declare const stepperKnobs: readonly ["--cui-stepper-indicator-radius", "--cui-stepper-indicator-background", "--cui-stepper-indicator-foreground", "--cui-stepper-indicator-border-color", "--cui-stepper-indicator-border-width", "--cui-stepper-separator-background", "--cui-stepper-title-foreground"];
|
|
2
|
+
export declare const stepperKnobs: readonly ["--cui-stepper-indicator-radius", "--cui-stepper-indicator-background", "--cui-stepper-indicator-foreground", "--cui-stepper-indicator-border-color", "--cui-stepper-indicator-border-width", "--cui-stepper-separator-background", "--cui-stepper-title-foreground", "--cui-stepper-indicator-size", "--cui-stepper-indicator-current-border-width", "--cui-stepper-title-current-font-weight"];
|
|
3
3
|
export type StepperKnobStyle = Partial<Record<(typeof stepperKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -6,7 +6,10 @@ const stepperKnobs = [
|
|
|
6
6
|
"--cui-stepper-indicator-border-color",
|
|
7
7
|
"--cui-stepper-indicator-border-width",
|
|
8
8
|
"--cui-stepper-separator-background",
|
|
9
|
-
"--cui-stepper-title-foreground"
|
|
9
|
+
"--cui-stepper-title-foreground",
|
|
10
|
+
"--cui-stepper-indicator-size",
|
|
11
|
+
"--cui-stepper-indicator-current-border-width",
|
|
12
|
+
"--cui-stepper-title-current-font-weight"
|
|
10
13
|
];
|
|
11
14
|
//#endregion
|
|
12
15
|
export { stepperKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/switch-knobs.d.ts
|
|
2
|
-
export declare const switchKnobs: readonly ["--cui-switch-thumb-shadow", "--cui-switch-background", "--cui-switch-hover-background", "--cui-switch-checked-background", "--cui-switch-checked-hover-background", "--cui-switch-thumb-radius", "--cui-switch-thumb-background", "--cui-switch-inline-size", "--cui-switch-height", "--cui-switch-padding", "--cui-switch-thumb-inline-size", "--cui-switch-thumb-press-scale", "--cui-switch-thumb-backdrop-filter"];
|
|
2
|
+
export declare const switchKnobs: readonly ["--cui-switch-thumb-shadow", "--cui-switch-radius", "--cui-switch-shadow", "--cui-switch-background", "--cui-switch-border-color", "--cui-switch-border-width", "--cui-switch-checked-border-color", "--cui-switch-hover-background", "--cui-switch-checked-background", "--cui-switch-checked-hover-background", "--cui-switch-thumb-radius", "--cui-switch-thumb-background", "--cui-switch-inline-size", "--cui-switch-height", "--cui-switch-padding", "--cui-switch-thumb-inline-size", "--cui-switch-thumb-press-scale", "--cui-switch-thumb-backdrop-filter"];
|
|
3
3
|
export type SwitchKnobStyle = Partial<Record<(typeof switchKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
//#region src/knob-contracts/switch-knobs.ts
|
|
2
2
|
const switchKnobs = [
|
|
3
3
|
"--cui-switch-thumb-shadow",
|
|
4
|
+
"--cui-switch-radius",
|
|
5
|
+
"--cui-switch-shadow",
|
|
4
6
|
"--cui-switch-background",
|
|
7
|
+
"--cui-switch-border-color",
|
|
8
|
+
"--cui-switch-border-width",
|
|
9
|
+
"--cui-switch-checked-border-color",
|
|
5
10
|
"--cui-switch-hover-background",
|
|
6
11
|
"--cui-switch-checked-background",
|
|
7
12
|
"--cui-switch-checked-hover-background",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/table-of-contents-knobs.d.ts
|
|
2
|
-
export declare const tableOfContentsKnobs: readonly ["--cui-table-of-contents-background", "--cui-table-of-contents-border-color", "--cui-table-of-contents-border-width", "--cui-table-of-contents-radius", "--cui-table-of-contents-shadow", "--cui-table-of-contents-backdrop-filter", "--cui-table-of-contents-padding", "--cui-table-of-contents-label-foreground", "--cui-table-of-contents-label-font-size", "--cui-table-of-contents-label-font-weight", "--cui-table-of-contents-label-gap", "--cui-table-of-contents-item-foreground", "--cui-table-of-contents-item-hover-foreground", "--cui-table-of-contents-item-active-foreground", "--cui-table-of-contents-item-font-size", "--cui-table-of-contents-item-line-height", "--cui-table-of-contents-item-font-weight", "--cui-table-of-contents-item-root-font-weight", "--cui-table-of-contents-item-padding-block", "--cui-table-of-contents-item-padding-inline", "--cui-table-of-contents-item-indent-size", "--cui-table-of-contents-rail-
|
|
2
|
+
export declare const tableOfContentsKnobs: readonly ["--cui-table-of-contents-background", "--cui-table-of-contents-border-color", "--cui-table-of-contents-border-width", "--cui-table-of-contents-radius", "--cui-table-of-contents-shadow", "--cui-table-of-contents-backdrop-filter", "--cui-table-of-contents-padding", "--cui-table-of-contents-label-foreground", "--cui-table-of-contents-label-font-size", "--cui-table-of-contents-label-font-weight", "--cui-table-of-contents-label-gap", "--cui-table-of-contents-item-foreground", "--cui-table-of-contents-item-hover-foreground", "--cui-table-of-contents-item-active-foreground", "--cui-table-of-contents-item-font-size", "--cui-table-of-contents-item-line-height", "--cui-table-of-contents-item-font-weight", "--cui-table-of-contents-item-root-font-weight", "--cui-table-of-contents-item-padding-block", "--cui-table-of-contents-item-padding-inline", "--cui-table-of-contents-item-indent-size", "--cui-table-of-contents-rail-stroke", "--cui-table-of-contents-rail-size", "--cui-table-of-contents-trail-stroke", "--cui-table-of-contents-trail-size", "--cui-table-of-contents-indicator-foreground", "--cui-table-of-contents-scroll-inset"];
|
|
3
3
|
export type TableOfContentsKnobStyle = Partial<Record<(typeof tableOfContentsKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -21,13 +21,12 @@ const tableOfContentsKnobs = [
|
|
|
21
21
|
"--cui-table-of-contents-item-padding-block",
|
|
22
22
|
"--cui-table-of-contents-item-padding-inline",
|
|
23
23
|
"--cui-table-of-contents-item-indent-size",
|
|
24
|
-
"--cui-table-of-contents-rail-
|
|
24
|
+
"--cui-table-of-contents-rail-stroke",
|
|
25
25
|
"--cui-table-of-contents-rail-size",
|
|
26
|
-
"--cui-table-of-contents-trail-
|
|
26
|
+
"--cui-table-of-contents-trail-stroke",
|
|
27
27
|
"--cui-table-of-contents-trail-size",
|
|
28
|
-
"--cui-table-of-contents-
|
|
29
|
-
"--cui-table-of-contents-
|
|
30
|
-
"--cui-table-of-contents-highlight-background"
|
|
28
|
+
"--cui-table-of-contents-indicator-foreground",
|
|
29
|
+
"--cui-table-of-contents-scroll-inset"
|
|
31
30
|
];
|
|
32
31
|
//#endregion
|
|
33
32
|
export { tableOfContentsKnobs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/tabs-knobs.d.ts
|
|
2
|
-
export declare const tabsKnobs: readonly ["--cui-tabs-trigger-radius", "--cui-tabs-list-padding", "--cui-tabs-list-radius", "--cui-tabs-list-background", "--cui-tabs-list-backdrop-filter", "--cui-tabs-indicator-background", "--cui-tabs-foreground", "--cui-tabs-active-foreground", "--cui-tabs-indicator-shadow", "--cui-tabs-list-shadow", "--cui-tabs-border-color", "--cui-tabs-border-width"];
|
|
2
|
+
export declare const tabsKnobs: readonly ["--cui-tabs-trigger-radius", "--cui-tabs-list-padding", "--cui-tabs-list-radius", "--cui-tabs-list-background", "--cui-tabs-list-backdrop-filter", "--cui-tabs-indicator-background", "--cui-tabs-foreground", "--cui-tabs-active-foreground", "--cui-tabs-hover-foreground", "--cui-tabs-indicator-shadow", "--cui-tabs-list-shadow", "--cui-tabs-border-color", "--cui-tabs-border-width"];
|
|
3
3
|
export type TabsKnobStyle = Partial<Record<(typeof tabsKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/knob-contracts/tree-knobs.d.ts
|
|
2
|
-
export declare const treeKnobs: readonly ["--cui-tree-item-trigger-radius", "--cui-tree-item-trigger-foreground", "--cui-tree-item-trigger-hover-background", "--cui-tree-item-trigger-hover-foreground", "--cui-tree-item-trigger-selected-background", "--cui-tree-item-trigger-selected-foreground", "--cui-tree-item-trigger-font-size", "--cui-tree-item-trigger-selected-font-weight"];
|
|
2
|
+
export declare const treeKnobs: readonly ["--cui-tree-item-trigger-radius", "--cui-tree-item-trigger-foreground", "--cui-tree-item-trigger-hover-background", "--cui-tree-item-trigger-hover-foreground", "--cui-tree-item-trigger-selected-background", "--cui-tree-item-trigger-selected-foreground", "--cui-tree-item-trigger-font-size", "--cui-tree-item-trigger-selected-font-weight", "--cui-tree-indent-inset"];
|
|
3
3
|
export type TreeKnobStyle = Partial<Record<(typeof treeKnobs)[number], string>>;
|
|
4
4
|
//#endregion
|
|
@@ -7,7 +7,8 @@ const treeKnobs = [
|
|
|
7
7
|
"--cui-tree-item-trigger-selected-background",
|
|
8
8
|
"--cui-tree-item-trigger-selected-foreground",
|
|
9
9
|
"--cui-tree-item-trigger-font-size",
|
|
10
|
-
"--cui-tree-item-trigger-selected-font-weight"
|
|
10
|
+
"--cui-tree-item-trigger-selected-font-weight",
|
|
11
|
+
"--cui-tree-indent-inset"
|
|
11
12
|
];
|
|
12
13
|
//#endregion
|
|
13
14
|
export { treeKnobs };
|
package/dist/lib/cn.js
CHANGED
package/dist/lib/contrast.d.ts
CHANGED
|
@@ -25,5 +25,6 @@ export declare function contrastRatio(a: {
|
|
|
25
25
|
export declare function wcagLevels(ratio: number): WcagLevels;
|
|
26
26
|
export declare function nextFixLevel(levels: WcagLevels): WcagLevel | null;
|
|
27
27
|
export declare function contrastOf(color: Hsva, background: Rgba): number;
|
|
28
|
+
export declare function formatContrastRatio(ratio: number): string;
|
|
28
29
|
export declare function fixColorForContrast(color: Hsva, background: Rgba, target?: number): Hsva | null;
|
|
29
30
|
//#endregion
|
package/dist/lib/contrast.js
CHANGED
|
@@ -29,17 +29,29 @@ function nextFixLevel(levels) {
|
|
|
29
29
|
if (!levels.AAA) return "AAA";
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
|
+
function paintedOver(color, background) {
|
|
33
|
+
const blend = (channel) => color[channel] * color.a + background[channel] * (1 - color.a);
|
|
34
|
+
return {
|
|
35
|
+
r: blend("r"),
|
|
36
|
+
g: blend("g"),
|
|
37
|
+
b: blend("b"),
|
|
38
|
+
a: 1
|
|
39
|
+
};
|
|
40
|
+
}
|
|
32
41
|
function contrastOf(color, background) {
|
|
33
|
-
return contrastRatio(hsvaToRgba(color), background);
|
|
42
|
+
return contrastRatio(paintedOver(hsvaToRgba(color), background), background);
|
|
43
|
+
}
|
|
44
|
+
function formatContrastRatio(ratio) {
|
|
45
|
+
return (Math.floor(ratio * 100) / 100).toFixed(2);
|
|
34
46
|
}
|
|
35
47
|
function fixColorForContrast(color, background, target = AA_RATIO) {
|
|
36
48
|
const ok = hsvaToOklcha(color);
|
|
37
|
-
const ratioAtL = (L) =>
|
|
49
|
+
const ratioAtL = (L) => contrastOf(oklchaToHsva({
|
|
38
50
|
L,
|
|
39
51
|
C: ok.C,
|
|
40
52
|
H: ok.H,
|
|
41
|
-
a:
|
|
42
|
-
})
|
|
53
|
+
a: color.a
|
|
54
|
+
}), background);
|
|
43
55
|
if (ratioAtL(ok.L) >= target) return null;
|
|
44
56
|
let best = null;
|
|
45
57
|
for (let step = 0; step <= 100; step++) {
|
|
@@ -61,4 +73,4 @@ function fixColorForContrast(color, background, target = AA_RATIO) {
|
|
|
61
73
|
return ratioAtL(0) >= ratioAtL(1) ? pick(0) : pick(1);
|
|
62
74
|
}
|
|
63
75
|
//#endregion
|
|
64
|
-
export { AAA_RATIO, AA_RATIO, TARGET_RATIO, contrastOf, contrastRatio, fixColorForContrast, luminanceFromRgb, nextFixLevel, wcagLevels };
|
|
76
|
+
export { AAA_RATIO, AA_RATIO, TARGET_RATIO, contrastOf, contrastRatio, fixColorForContrast, formatContrastRatio, luminanceFromRgb, nextFixLevel, wcagLevels };
|
|
@@ -60,17 +60,20 @@ async function validateDropzoneFile(file, policy, signal) {
|
|
|
60
60
|
const errors = [];
|
|
61
61
|
const minSize = policy?.minSize ?? DEFAULT_POLICY.minSize;
|
|
62
62
|
const maxSize = policy?.maxSize ?? DEFAULT_POLICY.maxSize;
|
|
63
|
-
if (!isDropzoneFileAccepted(file, policy?.accept))
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
if (!isDropzoneFileAccepted(file, policy?.accept)) {
|
|
64
|
+
const accepted = compileDropzoneAccept(policy?.accept)?.split(",").join(", ");
|
|
65
|
+
errors.push({
|
|
66
|
+
code: DropzoneErrorCode.FileInvalidType,
|
|
67
|
+
message: accepted ? `File type is not accepted. Use ${accepted}.` : "File type is not accepted."
|
|
68
|
+
});
|
|
69
|
+
}
|
|
67
70
|
if (file.size < minSize) errors.push({
|
|
68
71
|
code: DropzoneErrorCode.FileTooSmall,
|
|
69
|
-
message: `File is smaller than the ${formatDropzoneFileSize(minSize)} minimum.`
|
|
72
|
+
message: `File is smaller than the ${formatDropzoneFileSize(minSize)} minimum. Choose a larger file.`
|
|
70
73
|
});
|
|
71
74
|
if (file.size > maxSize) errors.push({
|
|
72
75
|
code: DropzoneErrorCode.FileTooLarge,
|
|
73
|
-
message: `File is larger than the ${formatDropzoneFileSize(maxSize)} limit.`
|
|
76
|
+
message: `File is larger than the ${formatDropzoneFileSize(maxSize)} limit. Choose a smaller file.`
|
|
74
77
|
});
|
|
75
78
|
if (policy?.validator) {
|
|
76
79
|
signal.throwIfAborted();
|
|
@@ -80,6 +83,30 @@ async function validateDropzoneFile(file, policy, signal) {
|
|
|
80
83
|
}
|
|
81
84
|
return errors;
|
|
82
85
|
}
|
|
86
|
+
function createDropzoneSelection(currentValue, policy) {
|
|
87
|
+
const appended = getDropzoneSelectionMode(policy) === "append" ? currentValue : [];
|
|
88
|
+
const allowDuplicates = policy?.allowDuplicates ?? false;
|
|
89
|
+
return {
|
|
90
|
+
files: [...appended],
|
|
91
|
+
identities: new Set(allowDuplicates ? [] : appended.map(getDropzoneFileIdentity)),
|
|
92
|
+
allowDuplicates,
|
|
93
|
+
capacity: getDropzoneCapacity(policy)
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function getDropzoneSelectionErrors(file, identity, selection) {
|
|
97
|
+
if (!selection.allowDuplicates && selection.identities.has(identity)) return [{
|
|
98
|
+
code: DropzoneErrorCode.FileAlreadySelected,
|
|
99
|
+
message: `File "${file.name}" is already selected.`
|
|
100
|
+
}];
|
|
101
|
+
if (selection.files.length >= selection.capacity) {
|
|
102
|
+
const { capacity } = selection;
|
|
103
|
+
return [{
|
|
104
|
+
code: DropzoneErrorCode.TooManyFiles,
|
|
105
|
+
message: `Too many files. Choose up to ${capacity} ${capacity === 1 ? "file" : "files"}.`
|
|
106
|
+
}];
|
|
107
|
+
}
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
83
110
|
async function processDropzoneFiles(files, currentValue, policy, signal) {
|
|
84
111
|
signal.throwIfAborted();
|
|
85
112
|
const validatedFiles = await Promise.all(files.map(async (file) => ({
|
|
@@ -90,9 +117,7 @@ async function processDropzoneFiles(files, currentValue, policy, signal) {
|
|
|
90
117
|
const acceptedFiles = [];
|
|
91
118
|
const fileRejections = [];
|
|
92
119
|
const selectionMode = getDropzoneSelectionMode(policy);
|
|
93
|
-
const
|
|
94
|
-
const selectedFiles = selectionMode === "append" ? [...currentValue] : [];
|
|
95
|
-
const selectedIdentities = new Set(policy?.allowDuplicates ? [] : (selectionMode === "append" ? currentValue : []).map(getDropzoneFileIdentity));
|
|
120
|
+
const selection = createDropzoneSelection(currentValue, policy);
|
|
96
121
|
for (const { file, errors } of validatedFiles) {
|
|
97
122
|
if (errors.length > 0) {
|
|
98
123
|
fileRejections.push({
|
|
@@ -102,29 +127,17 @@ async function processDropzoneFiles(files, currentValue, policy, signal) {
|
|
|
102
127
|
continue;
|
|
103
128
|
}
|
|
104
129
|
const identity = getDropzoneFileIdentity(file);
|
|
105
|
-
|
|
130
|
+
const selectionErrors = getDropzoneSelectionErrors(file, identity, selection);
|
|
131
|
+
if (selectionErrors.length > 0) {
|
|
106
132
|
fileRejections.push({
|
|
107
133
|
file,
|
|
108
|
-
errors:
|
|
109
|
-
code: DropzoneErrorCode.FileAlreadySelected,
|
|
110
|
-
message: `File "${file.name}" is already selected.`
|
|
111
|
-
}]
|
|
112
|
-
});
|
|
113
|
-
continue;
|
|
114
|
-
}
|
|
115
|
-
if (selectedFiles.length >= capacity) {
|
|
116
|
-
fileRejections.push({
|
|
117
|
-
file,
|
|
118
|
-
errors: [{
|
|
119
|
-
code: DropzoneErrorCode.TooManyFiles,
|
|
120
|
-
message: "Too many files."
|
|
121
|
-
}]
|
|
134
|
+
errors: selectionErrors
|
|
122
135
|
});
|
|
123
136
|
continue;
|
|
124
137
|
}
|
|
125
138
|
acceptedFiles.push(file);
|
|
126
|
-
|
|
127
|
-
|
|
139
|
+
selection.files.push(file);
|
|
140
|
+
selection.identities.add(identity);
|
|
128
141
|
}
|
|
129
142
|
if (selectionMode === "replace" && acceptedFiles.length === 0) return {
|
|
130
143
|
acceptedFiles,
|
|
@@ -135,8 +148,8 @@ async function processDropzoneFiles(files, currentValue, policy, signal) {
|
|
|
135
148
|
return {
|
|
136
149
|
acceptedFiles,
|
|
137
150
|
fileRejections,
|
|
138
|
-
value:
|
|
139
|
-
removedFiles: selectionMode === "replace" ? getRemovedFiles(currentValue,
|
|
151
|
+
value: selection.files,
|
|
152
|
+
removedFiles: selectionMode === "replace" ? getRemovedFiles(currentValue, selection.files) : []
|
|
140
153
|
};
|
|
141
154
|
}
|
|
142
155
|
function getDropzoneDragVerdict(files, currentValue, policy, options = {}) {
|
package/dist/lib/env-file.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface EnvironmentVariableEntry {
|
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const ENV_FILE_MAX_SIZE: number;
|
|
7
|
-
export declare const DUPLICATE_ENVIRONMENT_VARIABLE_MESSAGE = "
|
|
7
|
+
export declare const DUPLICATE_ENVIRONMENT_VARIABLE_MESSAGE = "Rename or remove the duplicate key.";
|
|
8
8
|
export declare class DuplicateEnvironmentVariableKeyError extends Error {
|
|
9
9
|
readonly key: string;
|
|
10
10
|
constructor(key: string);
|