@cocoar/vue-ui 3.4.0-beta.8 → 4.0.0-beta.46
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/compact-fonts.d.ts +1 -0
- package/dist/compact-fonts.d.ts.map +1 -0
- package/dist/compact-fonts.js +4 -0
- package/dist/components/_internal/keyboardInset.d.ts +9 -0
- package/dist/components/_internal/keyboardInset.d.ts.map +1 -0
- package/dist/components/_internal/pageScrollLock.d.ts +17 -0
- package/dist/components/_internal/pageScrollLock.d.ts.map +1 -0
- package/dist/components/_internal/useFocusTrap.d.ts +9 -0
- package/dist/components/_internal/useFocusTrap.d.ts.map +1 -0
- package/dist/components/_internal/useVisualViewport.d.ts +26 -0
- package/dist/components/_internal/useVisualViewport.d.ts.map +1 -0
- package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
- package/dist/components/card/CoarCard.vue.d.ts.map +1 -1
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts +2 -2
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts +1 -1
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/data-list/CoarDataList.vue.d.ts.map +1 -1
- package/dist/components/date-time/_shared/use-plain-date-picker.d.ts +95 -0
- package/dist/components/date-time/_shared/use-plain-date-picker.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts +113 -0
- package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts +132 -0
- package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +23 -6
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +4 -0
- package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +23 -6
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +4 -0
- package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +23 -6
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarDialogFooter.vue.d.ts +20 -0
- package/dist/components/dialog/CoarDialogFooter.vue.d.ts.map +1 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts +2 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarSheetShell.vue.d.ts +50 -0
- package/dist/components/dialog/CoarSheetShell.vue.d.ts.map +1 -0
- package/dist/components/dialog/dialog-types.d.ts +27 -0
- package/dist/components/dialog/dialog-types.d.ts.map +1 -1
- package/dist/components/dialog/dialogFooter.d.ts +21 -0
- package/dist/components/dialog/dialogFooter.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/dialog/useDialog.d.ts +6 -15
- package/dist/components/dialog/useDialog.d.ts.map +1 -1
- package/dist/components/dialog/useSheetDrag.d.ts +46 -0
- package/dist/components/dialog/useSheetDrag.d.ts.map +1 -0
- package/dist/components/form-field/CoarFormField.vue.d.ts +2 -2
- package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
- package/dist/components/form-field/constants.d.ts +6 -0
- package/dist/components/form-field/constants.d.ts.map +1 -1
- package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
- package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
- package/dist/components/icon/core-icons.d.ts +2 -0
- package/dist/components/icon/core-icons.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts +17 -6
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
- package/dist/components/input-frame/types.d.ts +9 -0
- package/dist/components/input-frame/types.d.ts.map +1 -0
- package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
- package/dist/components/menu/useContextMenu.d.ts +7 -20
- package/dist/components/menu/useContextMenu.d.ts.map +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +16 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts +2 -2
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/overlay/compact-context.d.ts +10 -0
- package/dist/components/overlay/compact-context.d.ts.map +1 -0
- package/dist/components/overlay/index.d.ts +3 -1
- package/dist/components/overlay/index.d.ts.map +1 -1
- package/dist/components/overlay/overlay-presets.d.ts +9 -0
- package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
- package/dist/components/overlay/overlay-service.d.ts +12 -0
- package/dist/components/overlay/overlay-service.d.ts.map +1 -1
- package/dist/components/overlay/overlay-types.d.ts +6 -0
- package/dist/components/overlay/overlay-types.d.ts.map +1 -1
- package/dist/components/overlay/useCompactPresentationContext.d.ts +33 -0
- package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -0
- package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -1
- package/dist/components/panel-layout/internal/CoarPaneDivider.vue.d.ts.map +1 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts +5 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/scrollbar/index.d.ts +1 -1
- package/dist/components/scrollbar/index.d.ts.map +1 -1
- package/dist/components/scrollbar/vScrollbar.d.ts +9 -0
- package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -1
- package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelect.vue.d.ts +17 -3
- package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts +7 -4
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/types.d.ts +13 -0
- package/dist/components/select/types.d.ts.map +1 -1
- package/dist/components/select/useSelectBase.d.ts +2 -1
- package/dist/components/select/useSelectBase.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/switch/CoarSwitch.vue.d.ts +2 -2
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
- package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
- package/dist/components/tag/CoarTag.vue.d.ts.map +1 -1
- package/dist/components/text-input/CoarTextInput.vue.d.ts +16 -2
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +8 -2
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/color-preview.d.ts +22 -0
- package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/font-preview.d.ts +46 -0
- package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/scheme-values.d.ts +12 -0
- package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
- package/dist/components/theme-editor/theme-editor-state.d.ts +199 -183
- package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
- package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
- package/dist/components/tree/CoarTreeNode.vue.d.ts.map +1 -1
- package/dist/composables/useDragDrop.d.ts.map +1 -1
- package/dist/composables/useDragImage.d.ts +2 -14
- package/dist/composables/useDragImage.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6785 -4523
- package/dist/onest-fonts.d.ts +1 -0
- package/dist/onest-fonts.d.ts.map +1 -0
- package/dist/onest-fonts.js +4 -0
- package/dist/theme/color-contrast.d.ts +10 -0
- package/dist/theme/color-contrast.d.ts.map +1 -0
- package/dist/theme/compact-packages/calendar.d.ts +8 -0
- package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
- package/dist/theme/compact-packages/data-grid.d.ts +8 -0
- package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
- package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
- package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/compact-packages/map.d.ts +11 -0
- package/dist/theme/compact-packages/map.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown.d.ts +14 -0
- package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
- package/dist/theme/compact-packages/mermaid.d.ts +8 -0
- package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/compact-packages/page-builder.d.ts +8 -0
- package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/compact-packages/script-editor.d.ts +8 -0
- package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/compact-theme.d.ts +11 -0
- package/dist/theme/compact-theme.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
- package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/map.d.ts +3 -0
- package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
- package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/enterprise-theme.d.ts +8 -0
- package/dist/theme/enterprise-theme.d.ts.map +1 -0
- package/dist/theme/palette-inputs.d.ts +34 -0
- package/dist/theme/palette-inputs.d.ts.map +1 -0
- package/dist/theme/role-derived-tokens.d.ts +3 -0
- package/dist/theme/role-derived-tokens.d.ts.map +1 -0
- package/dist/theme/role-input-defaults.d.ts +5 -0
- package/dist/theme/role-input-defaults.d.ts.map +1 -0
- package/dist/theme/role-theme-contract.d.ts +8 -0
- package/dist/theme/role-theme-contract.d.ts.map +1 -0
- package/dist/theme/role-theme.d.ts +40 -0
- package/dist/theme/role-theme.d.ts.map +1 -0
- package/package.json +15 -4
- package/skills/cocoar-vue-ui/SKILL.md +8 -1
- package/skills/cocoar-vue-ui/references/components/calendar/board.md +212 -0
- package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +32 -1
- package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +21 -0
- package/skills/cocoar-vue-ui/references/components/calendar/index.md +26 -1
- package/skills/cocoar-vue-ui/references/components/calendar/mini-month.md +59 -0
- package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +48 -1
- package/skills/cocoar-vue-ui/references/components/context-menu.md +1 -0
- package/skills/cocoar-vue-ui/references/components/data-grid.md +4 -0
- package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +30 -1
- package/skills/cocoar-vue-ui/references/components/date-picker.md +32 -1
- package/skills/cocoar-vue-ui/references/components/date-time-picker.md +28 -1
- package/skills/cocoar-vue-ui/references/components/dialog.md +188 -2
- package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +4 -0
- package/skills/cocoar-vue-ui/references/components/form-field.md +10 -6
- package/skills/cocoar-vue-ui/references/components/listbox.md +3 -1
- package/skills/cocoar-vue-ui/references/components/map/index.md +5 -1
- package/skills/cocoar-vue-ui/references/components/markdown-editor.md +10 -0
- package/skills/cocoar-vue-ui/references/components/markdown-form.md +9 -0
- package/skills/cocoar-vue-ui/references/components/markdown.md +10 -0
- package/skills/cocoar-vue-ui/references/components/menu.md +1 -1
- package/skills/cocoar-vue-ui/references/components/mermaid.md +11 -0
- package/skills/cocoar-vue-ui/references/components/number-input.md +81 -0
- package/skills/cocoar-vue-ui/references/components/object-editor.md +738 -0
- package/skills/cocoar-vue-ui/references/components/otp-input.md +1 -1
- package/skills/cocoar-vue-ui/references/components/pagination.md +1 -1
- package/skills/cocoar-vue-ui/references/components/password-input.md +32 -0
- package/skills/cocoar-vue-ui/references/components/script-editor.md +10 -0
- package/skills/cocoar-vue-ui/references/components/segmented-control.md +1 -1
- package/skills/cocoar-vue-ui/references/components/select.md +136 -2
- package/skills/cocoar-vue-ui/references/components/tabs.md +1 -1
- package/skills/cocoar-vue-ui/references/components/tag.md +1 -1
- package/skills/cocoar-vue-ui/references/components/text-input.md +189 -0
- package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +42 -1
- package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
- package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +248 -0
- package/skills/cocoar-vue-ui/references/foundations/theming.md +98 -11
- package/skills/cocoar-vue-ui/references/foundations/typography.md +3 -0
- package/skills/cocoar-vue-ui/references/guide/getting-started.md +2 -2
- package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
- package/skills/cocoar-vue-ui/references/guide/migration-object-editor-values.md +40 -0
- package/skills/cocoar-vue-ui/references/guide/mobile.md +126 -27
- package/skills/cocoar-vue-ui/references/guide/theming.md +25 -0
- package/styles/tokens/all.css +6 -0
- package/styles/tokens/code-block.css +2 -2
- package/styles/tokens/colors-primitives-dark.css +50 -50
- package/styles/tokens/colors-primitives-light.css +50 -50
- package/styles/tokens/colors-usage.css +132 -111
- package/styles/tokens/compact.css +4442 -0
- package/styles/tokens/components-shared.css +4 -4
- package/styles/tokens/derived.css +525 -0
- package/styles/tokens/menu.css +21 -21
- package/styles/tokens/mobile.css +2 -0
- package/styles/tokens/new-components.css +42 -33
- package/styles/tokens/select-overlay.css +12 -12
- package/styles/tokens/sidebar.css +12 -12
- package/styles/tokens/theme-none.css +99 -93
- package/styles/tokens/tooltip.css +4 -4
- package/styles/tokens/typography.css +19 -19
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { StepDef, StepOverride } from './CoarPaletteEditor.vue';
|
|
3
3
|
import { CoarSelectOption } from '../select';
|
|
4
|
+
import { CoarRoleTheme } from '../../theme/role-theme';
|
|
5
|
+
import { ThemeScheme } from './scheme-values';
|
|
4
6
|
export type PaletteKey = 'accent' | 'error' | 'success' | 'warning' | 'info';
|
|
5
7
|
export type SemanticPalette = 'accent' | 'red' | 'green' | 'amber' | 'slate';
|
|
6
8
|
export interface SemanticEntry {
|
|
@@ -17,6 +19,7 @@ export interface SemanticOverride {
|
|
|
17
19
|
palette: SemanticPalette;
|
|
18
20
|
step: number;
|
|
19
21
|
}
|
|
22
|
+
export declare function editorTarget(): HTMLElement;
|
|
20
23
|
export declare const isOpen: Ref<boolean, boolean>;
|
|
21
24
|
export declare const DEFAULTS: {
|
|
22
25
|
accent: string;
|
|
@@ -115,210 +118,223 @@ export declare const DENSITY_OPTIONS: {
|
|
|
115
118
|
label: string;
|
|
116
119
|
value: number;
|
|
117
120
|
}[];
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
readonly info: string;
|
|
129
|
-
readonly radiusXxs: number;
|
|
130
|
-
readonly radiusXs: number;
|
|
131
|
-
readonly radiusS: number;
|
|
132
|
-
readonly radiusM: number;
|
|
133
|
-
readonly radiusL: number;
|
|
134
|
-
readonly radiusXl: number;
|
|
135
|
-
readonly spacingXs: number;
|
|
136
|
-
readonly spacingS: number;
|
|
137
|
-
readonly spacingM: number;
|
|
138
|
-
readonly spacingL: number;
|
|
139
|
-
readonly spacingXl: number;
|
|
140
|
-
readonly density: number;
|
|
141
|
-
readonly buttonRadius: string;
|
|
142
|
-
readonly inputRadius: string;
|
|
143
|
-
readonly fieldPaddingX: number;
|
|
144
|
-
readonly tagRadius: string;
|
|
145
|
-
readonly badgeRadius: string;
|
|
146
|
-
readonly cardRadius: string;
|
|
147
|
-
readonly menuRadius: string;
|
|
148
|
-
readonly popoverRadius: string;
|
|
149
|
-
readonly dropdownRadius: string;
|
|
150
|
-
readonly dialogRadius: string;
|
|
151
|
-
readonly toastRadius: string;
|
|
152
|
-
readonly cardShadow: string;
|
|
153
|
-
readonly menuShadow: string;
|
|
154
|
-
readonly popoverShadow: string;
|
|
155
|
-
readonly dropdownShadow: string;
|
|
156
|
-
readonly dialogShadow: string;
|
|
157
|
-
readonly toastShadow: string;
|
|
158
|
-
readonly fontBody: string;
|
|
159
|
-
readonly fontTitle: string;
|
|
160
|
-
readonly motionScale: number;
|
|
161
|
-
};
|
|
162
|
-
}, {
|
|
163
|
-
readonly id: "saas";
|
|
164
|
-
readonly label: "Modern SaaS";
|
|
165
|
-
readonly description: "Rounder corners, slightly softer feel.";
|
|
166
|
-
readonly values: {
|
|
167
|
-
readonly buttonRadius: "var(--coar-radius-m)";
|
|
168
|
-
readonly inputRadius: "var(--coar-radius-m)";
|
|
169
|
-
readonly tagRadius: "var(--coar-radius-m)";
|
|
170
|
-
readonly cardRadius: "var(--coar-radius-l)";
|
|
171
|
-
readonly menuRadius: "var(--coar-radius-l)";
|
|
172
|
-
readonly popoverRadius: "var(--coar-radius-l)";
|
|
173
|
-
readonly dropdownRadius: "var(--coar-input-radius)";
|
|
174
|
-
readonly dialogRadius: "var(--coar-radius-xl)";
|
|
175
|
-
readonly toastRadius: "var(--coar-radius-l)";
|
|
176
|
-
readonly accent: string;
|
|
177
|
-
readonly success: string;
|
|
178
|
-
readonly error: string;
|
|
179
|
-
readonly warning: string;
|
|
180
|
-
readonly info: string;
|
|
181
|
-
readonly radiusXxs: number;
|
|
182
|
-
readonly radiusXs: number;
|
|
183
|
-
readonly radiusS: number;
|
|
184
|
-
readonly radiusM: number;
|
|
185
|
-
readonly radiusL: number;
|
|
186
|
-
readonly radiusXl: number;
|
|
187
|
-
readonly spacingXs: number;
|
|
188
|
-
readonly spacingS: number;
|
|
189
|
-
readonly spacingM: number;
|
|
190
|
-
readonly spacingL: number;
|
|
191
|
-
readonly spacingXl: number;
|
|
192
|
-
readonly density: number;
|
|
193
|
-
readonly fieldPaddingX: number;
|
|
194
|
-
readonly badgeRadius: string;
|
|
195
|
-
readonly cardShadow: string;
|
|
196
|
-
readonly menuShadow: string;
|
|
197
|
-
readonly popoverShadow: string;
|
|
198
|
-
readonly dropdownShadow: string;
|
|
199
|
-
readonly dialogShadow: string;
|
|
200
|
-
readonly toastShadow: string;
|
|
201
|
-
readonly fontBody: string;
|
|
202
|
-
readonly fontTitle: string;
|
|
203
|
-
readonly motionScale: number;
|
|
204
|
-
};
|
|
205
|
-
}, {
|
|
206
|
-
readonly id: "playful";
|
|
207
|
-
readonly label: "Playful";
|
|
208
|
-
readonly description: "Pill buttons, vivid accent, very rounded — for consumer apps.";
|
|
209
|
-
readonly values: {
|
|
210
|
-
readonly accent: "#7C3AED";
|
|
211
|
-
readonly spacingXs: 6;
|
|
212
|
-
readonly spacingS: 12;
|
|
213
|
-
readonly spacingM: 20;
|
|
214
|
-
readonly spacingL: 28;
|
|
215
|
-
readonly fieldPaddingX: 20;
|
|
216
|
-
readonly buttonRadius: "var(--coar-radius-full)";
|
|
217
|
-
readonly inputRadius: "var(--coar-radius-l)";
|
|
218
|
-
readonly tagRadius: "var(--coar-radius-full)";
|
|
219
|
-
readonly badgeRadius: "var(--coar-radius-full)";
|
|
220
|
-
readonly cardRadius: "var(--coar-radius-xl)";
|
|
221
|
-
readonly menuRadius: "var(--coar-radius-xl)";
|
|
222
|
-
readonly popoverRadius: "var(--coar-radius-xl)";
|
|
223
|
-
readonly dropdownRadius: "var(--coar-input-radius)";
|
|
224
|
-
readonly dialogRadius: "var(--coar-radius-xl)";
|
|
225
|
-
readonly toastRadius: "var(--coar-radius-xl)";
|
|
226
|
-
readonly success: string;
|
|
227
|
-
readonly error: string;
|
|
228
|
-
readonly warning: string;
|
|
229
|
-
readonly info: string;
|
|
230
|
-
readonly radiusXxs: number;
|
|
231
|
-
readonly radiusXs: number;
|
|
232
|
-
readonly radiusS: number;
|
|
233
|
-
readonly radiusM: number;
|
|
234
|
-
readonly radiusL: number;
|
|
235
|
-
readonly radiusXl: number;
|
|
236
|
-
readonly spacingXl: number;
|
|
237
|
-
readonly density: number;
|
|
238
|
-
readonly cardShadow: string;
|
|
239
|
-
readonly menuShadow: string;
|
|
240
|
-
readonly popoverShadow: string;
|
|
241
|
-
readonly dropdownShadow: string;
|
|
242
|
-
readonly dialogShadow: string;
|
|
243
|
-
readonly toastShadow: string;
|
|
244
|
-
readonly fontBody: string;
|
|
245
|
-
readonly fontTitle: string;
|
|
246
|
-
readonly motionScale: number;
|
|
247
|
-
};
|
|
248
|
-
}, {
|
|
249
|
-
readonly id: "minimal";
|
|
250
|
-
readonly label: "Minimal";
|
|
251
|
-
readonly description: "Sharp corners, no shadows, maximum density.";
|
|
252
|
-
readonly values: {
|
|
253
|
-
readonly radiusXxs: 0;
|
|
254
|
-
readonly radiusXs: 0;
|
|
255
|
-
readonly radiusS: 0;
|
|
256
|
-
readonly radiusM: 0;
|
|
257
|
-
readonly radiusL: 0;
|
|
258
|
-
readonly radiusXl: 0;
|
|
259
|
-
readonly cardShadow: "none";
|
|
260
|
-
readonly menuShadow: "none";
|
|
261
|
-
readonly popoverShadow: "none";
|
|
262
|
-
readonly dropdownShadow: "none";
|
|
263
|
-
readonly toastShadow: "none";
|
|
264
|
-
readonly accent: string;
|
|
265
|
-
readonly success: string;
|
|
266
|
-
readonly error: string;
|
|
267
|
-
readonly warning: string;
|
|
268
|
-
readonly info: string;
|
|
269
|
-
readonly spacingXs: number;
|
|
270
|
-
readonly spacingS: number;
|
|
271
|
-
readonly spacingM: number;
|
|
272
|
-
readonly spacingL: number;
|
|
273
|
-
readonly spacingXl: number;
|
|
274
|
-
readonly density: number;
|
|
275
|
-
readonly buttonRadius: string;
|
|
276
|
-
readonly inputRadius: string;
|
|
277
|
-
readonly fieldPaddingX: number;
|
|
278
|
-
readonly tagRadius: string;
|
|
279
|
-
readonly badgeRadius: string;
|
|
280
|
-
readonly cardRadius: string;
|
|
281
|
-
readonly menuRadius: string;
|
|
282
|
-
readonly popoverRadius: string;
|
|
283
|
-
readonly dropdownRadius: string;
|
|
284
|
-
readonly dialogRadius: string;
|
|
285
|
-
readonly toastRadius: string;
|
|
286
|
-
readonly dialogShadow: string;
|
|
287
|
-
readonly fontBody: string;
|
|
288
|
-
readonly fontTitle: string;
|
|
289
|
-
readonly motionScale: number;
|
|
290
|
-
};
|
|
291
|
-
}];
|
|
121
|
+
export type ThemeControls = typeof DEFAULTS;
|
|
122
|
+
export interface ThemePreset {
|
|
123
|
+
id: string;
|
|
124
|
+
label: string;
|
|
125
|
+
description: string;
|
|
126
|
+
/** What the controls show after the preset is loaded. */
|
|
127
|
+
values: ThemeControls;
|
|
128
|
+
/** The complete values behind the controls and shared role derivation. */
|
|
129
|
+
roleTheme: CoarRoleTheme;
|
|
130
|
+
}
|
|
292
131
|
export declare const activePalette: Ref<PaletteKey | null, PaletteKey | null>;
|
|
293
132
|
export declare const paletteOverrides: {
|
|
294
133
|
error: Record<number, StepOverride>;
|
|
134
|
+
accent: Record<number, StepOverride>;
|
|
135
|
+
success: Record<number, StepOverride>;
|
|
136
|
+
warning: Record<number, StepOverride>;
|
|
295
137
|
info: Record<number, StepOverride>;
|
|
138
|
+
};
|
|
139
|
+
export declare const PALETTE_CSS_TOKEN: Record<PaletteKey, string>;
|
|
140
|
+
export declare const darkPaletteOverrides: {
|
|
141
|
+
error: Record<number, StepOverride>;
|
|
142
|
+
accent: Record<number, StepOverride>;
|
|
296
143
|
success: Record<number, StepOverride>;
|
|
297
144
|
warning: Record<number, StepOverride>;
|
|
145
|
+
info: Record<number, StepOverride>;
|
|
146
|
+
};
|
|
147
|
+
export declare const darkSemanticOverrides: Record<string, SemanticOverride>;
|
|
148
|
+
export declare function paletteOverridesFor(scheme: ThemeScheme): {
|
|
149
|
+
error: Record<number, StepOverride>;
|
|
298
150
|
accent: Record<number, StepOverride>;
|
|
151
|
+
success: Record<number, StepOverride>;
|
|
152
|
+
warning: Record<number, StepOverride>;
|
|
153
|
+
info: Record<number, StepOverride>;
|
|
299
154
|
};
|
|
300
|
-
export declare
|
|
301
|
-
|
|
302
|
-
|
|
155
|
+
export declare function semanticOverridesFor(scheme: ThemeScheme): Record<string, SemanticOverride>;
|
|
156
|
+
/**
|
|
157
|
+
* The curve of each step in one scheme, as the edited model has it. A step whose
|
|
158
|
+
* input is the base itself (`l c`, step 500 by default) has no default of its own.
|
|
159
|
+
*/
|
|
160
|
+
export declare function paletteSteps(key: PaletteKey, scheme: ThemeScheme): StepDef[];
|
|
303
161
|
export declare const SEMANTIC_PALETTE_CSS: Record<SemanticPalette, string>;
|
|
304
162
|
export declare const SEMANTIC_PALETTE_LABELS: Record<SemanticPalette, string>;
|
|
305
163
|
export declare const SEMANTIC_PALETTES: SemanticPalette[];
|
|
306
164
|
export declare const SEMANTIC_STEPS: number[];
|
|
307
165
|
export declare const SEMANTIC_GROUPS: SemanticGroup[];
|
|
308
166
|
export declare const semanticOverrides: Record<string, SemanticOverride>;
|
|
309
|
-
export declare const FONT_OPTIONS_BODY_SELECT: import('vue').ComputedRef<CoarSelectOption<string>[]>;
|
|
310
|
-
export declare const FONT_OPTIONS_TITLE_SELECT: import('vue').ComputedRef<CoarSelectOption<string>[]>;
|
|
311
167
|
export declare const SEMANTIC_PAL_OPTIONS: import('vue').ComputedRef<CoarSelectOption<string>[]>;
|
|
312
168
|
export declare const SEMANTIC_STEP_OPTIONS: import('vue').ComputedRef<CoarSelectOption<number>[]>;
|
|
313
169
|
export declare const BASE_DURATIONS: Record<string, number>;
|
|
314
170
|
export declare const motionLabel: (v: number) => "Default" | "Instant" | "Fast" | "Slow" | "Very slow";
|
|
171
|
+
/**
|
|
172
|
+
* What the loaded preset sets, the value a control's reset returns to. The
|
|
173
|
+
* library defaults until a preset is loaded.
|
|
174
|
+
*/
|
|
175
|
+
export declare const baseline: Ref<{
|
|
176
|
+
accent: string;
|
|
177
|
+
success: string;
|
|
178
|
+
error: string;
|
|
179
|
+
warning: string;
|
|
180
|
+
info: string;
|
|
181
|
+
radiusXxs: number;
|
|
182
|
+
radiusXs: number;
|
|
183
|
+
radiusS: number;
|
|
184
|
+
radiusM: number;
|
|
185
|
+
radiusL: number;
|
|
186
|
+
radiusXl: number;
|
|
187
|
+
spacingXs: number;
|
|
188
|
+
spacingS: number;
|
|
189
|
+
spacingM: number;
|
|
190
|
+
spacingL: number;
|
|
191
|
+
spacingXl: number;
|
|
192
|
+
density: number;
|
|
193
|
+
buttonRadius: string;
|
|
194
|
+
inputRadius: string;
|
|
195
|
+
fieldPaddingX: number;
|
|
196
|
+
tagRadius: string;
|
|
197
|
+
badgeRadius: string;
|
|
198
|
+
cardRadius: string;
|
|
199
|
+
menuRadius: string;
|
|
200
|
+
popoverRadius: string;
|
|
201
|
+
dropdownRadius: string;
|
|
202
|
+
dialogRadius: string;
|
|
203
|
+
toastRadius: string;
|
|
204
|
+
cardShadow: string;
|
|
205
|
+
menuShadow: string;
|
|
206
|
+
popoverShadow: string;
|
|
207
|
+
dropdownShadow: string;
|
|
208
|
+
dialogShadow: string;
|
|
209
|
+
toastShadow: string;
|
|
210
|
+
fontBody: string;
|
|
211
|
+
fontTitle: string;
|
|
212
|
+
motionScale: number;
|
|
213
|
+
}, {
|
|
214
|
+
accent: string;
|
|
215
|
+
success: string;
|
|
216
|
+
error: string;
|
|
217
|
+
warning: string;
|
|
218
|
+
info: string;
|
|
219
|
+
radiusXxs: number;
|
|
220
|
+
radiusXs: number;
|
|
221
|
+
radiusS: number;
|
|
222
|
+
radiusM: number;
|
|
223
|
+
radiusL: number;
|
|
224
|
+
radiusXl: number;
|
|
225
|
+
spacingXs: number;
|
|
226
|
+
spacingS: number;
|
|
227
|
+
spacingM: number;
|
|
228
|
+
spacingL: number;
|
|
229
|
+
spacingXl: number;
|
|
230
|
+
density: number;
|
|
231
|
+
buttonRadius: string;
|
|
232
|
+
inputRadius: string;
|
|
233
|
+
fieldPaddingX: number;
|
|
234
|
+
tagRadius: string;
|
|
235
|
+
badgeRadius: string;
|
|
236
|
+
cardRadius: string;
|
|
237
|
+
menuRadius: string;
|
|
238
|
+
popoverRadius: string;
|
|
239
|
+
dropdownRadius: string;
|
|
240
|
+
dialogRadius: string;
|
|
241
|
+
toastRadius: string;
|
|
242
|
+
cardShadow: string;
|
|
243
|
+
menuShadow: string;
|
|
244
|
+
popoverShadow: string;
|
|
245
|
+
dropdownShadow: string;
|
|
246
|
+
dialogShadow: string;
|
|
247
|
+
toastShadow: string;
|
|
248
|
+
fontBody: string;
|
|
249
|
+
fontTitle: string;
|
|
250
|
+
motionScale: number;
|
|
251
|
+
} | {
|
|
252
|
+
accent: string;
|
|
253
|
+
success: string;
|
|
254
|
+
error: string;
|
|
255
|
+
warning: string;
|
|
256
|
+
info: string;
|
|
257
|
+
radiusXxs: number;
|
|
258
|
+
radiusXs: number;
|
|
259
|
+
radiusS: number;
|
|
260
|
+
radiusM: number;
|
|
261
|
+
radiusL: number;
|
|
262
|
+
radiusXl: number;
|
|
263
|
+
spacingXs: number;
|
|
264
|
+
spacingS: number;
|
|
265
|
+
spacingM: number;
|
|
266
|
+
spacingL: number;
|
|
267
|
+
spacingXl: number;
|
|
268
|
+
density: number;
|
|
269
|
+
buttonRadius: string;
|
|
270
|
+
inputRadius: string;
|
|
271
|
+
fieldPaddingX: number;
|
|
272
|
+
tagRadius: string;
|
|
273
|
+
badgeRadius: string;
|
|
274
|
+
cardRadius: string;
|
|
275
|
+
menuRadius: string;
|
|
276
|
+
popoverRadius: string;
|
|
277
|
+
dropdownRadius: string;
|
|
278
|
+
dialogRadius: string;
|
|
279
|
+
toastRadius: string;
|
|
280
|
+
cardShadow: string;
|
|
281
|
+
menuShadow: string;
|
|
282
|
+
popoverShadow: string;
|
|
283
|
+
dropdownShadow: string;
|
|
284
|
+
dialogShadow: string;
|
|
285
|
+
toastShadow: string;
|
|
286
|
+
fontBody: string;
|
|
287
|
+
fontTitle: string;
|
|
288
|
+
motionScale: number;
|
|
289
|
+
}>;
|
|
290
|
+
/** The complete model being edited; independent of whether a preview is applied. */
|
|
291
|
+
export declare const roleTheme: import('vue').ShallowRef<CoarRoleTheme, CoarRoleTheme>;
|
|
292
|
+
/** Values of the loaded role theme the user changed, by token. */
|
|
293
|
+
export declare const roleOverrides: Record<string, string>;
|
|
294
|
+
/** Only authored channels are present; absence means calculated, not a copied colour. */
|
|
295
|
+
export declare const schemeColorOverrides: Record<string, Partial<Record<ThemeScheme, string>>>;
|
|
296
|
+
export declare function schemeColorOverride(token: string, scheme: ThemeScheme): string | undefined;
|
|
297
|
+
export declare function setSchemeColor(token: string, scheme: ThemeScheme, value?: string): void;
|
|
298
|
+
/** A complete preset can always be downloaded, even without an edit. */
|
|
315
299
|
export declare const hasChanges: import('vue').ComputedRef<boolean>;
|
|
316
|
-
|
|
300
|
+
/** The editor changed what the app shows: there is something to reset. */
|
|
301
|
+
export declare const hasEditorChanges: import('vue').ComputedRef<boolean>;
|
|
302
|
+
export declare function applyPreset(preset: ThemePreset): void;
|
|
303
|
+
export interface RoleValueEntry {
|
|
304
|
+
token: string;
|
|
305
|
+
label: string;
|
|
306
|
+
/** `pair`: a `light-dark(<light>, <dark>)` colour. */
|
|
307
|
+
kind: 'length' | 'number' | 'pair';
|
|
308
|
+
}
|
|
309
|
+
/** The values of a role theme the editor offers, by what they change. */
|
|
310
|
+
export declare const ROLE_VALUE_GROUPS: {
|
|
311
|
+
label: string;
|
|
312
|
+
entries: RoleValueEntry[];
|
|
313
|
+
}[];
|
|
314
|
+
/** A value of the loaded role theme, as edited or as the preset has it. */
|
|
315
|
+
export declare function roleValue(token: string): string;
|
|
316
|
+
export declare function setRoleValue(token: string, value: string): void;
|
|
317
|
+
export declare function resetRoleValue(token: string): void;
|
|
318
|
+
export declare const PRESETS: ThemePreset[];
|
|
319
|
+
/** Changes whenever the edited scope shows other values: what the panel reads from it is stale. */
|
|
320
|
+
export declare const previewRevision: Ref<number, number>;
|
|
317
321
|
export declare function applyTokens(): void;
|
|
322
|
+
/**
|
|
323
|
+
* Removes what the editor changed, nothing else: the theme the app has without
|
|
324
|
+
* the editor shows again. Light or dark, touch, other scopes and the state of the
|
|
325
|
+
* app are not the editor's to reset.
|
|
326
|
+
*/
|
|
318
327
|
export declare function reset(): void;
|
|
328
|
+
/**
|
|
329
|
+
* The theme a fresh app needs: every value, not the changes against a loaded preset.
|
|
330
|
+
* It names fonts without containing them, so it starts by saying what to load.
|
|
331
|
+
*/
|
|
332
|
+
export declare function themeFileCss(name: string): string;
|
|
319
333
|
export declare function downloadCSS(): void;
|
|
320
|
-
export declare function setSemantic(entry: SemanticEntry, field: 'palette' | 'step', value: string | number): void;
|
|
321
|
-
export declare function resetSemantic(token: string): void;
|
|
322
|
-
export declare function initThemeEditorState(hideDarkToggle: boolean
|
|
334
|
+
export declare function setSemantic(entry: SemanticEntry, field: 'palette' | 'step', value: string | number, scheme?: ThemeScheme): void;
|
|
335
|
+
export declare function resetSemantic(token: string, scheme?: ThemeScheme): void;
|
|
336
|
+
export declare function initThemeEditorState(hideDarkToggle: boolean, source?: HTMLElement | null, options?: {
|
|
337
|
+
fontPreview?: boolean;
|
|
338
|
+
}): void;
|
|
323
339
|
export declare function cleanupThemeEditorState(): void;
|
|
324
340
|
//# sourceMappingURL=theme-editor-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-editor-state.d.ts","sourceRoot":"","sources":["../../../src/components/theme-editor/theme-editor-state.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"theme-editor-state.d.ts","sourceRoot":"","sources":["../../../src/components/theme-editor/theme-editor-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD,OAAO,EACwD,KAAK,aAAa,EAChF,M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,GAAG,MAAM,CAE/C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAIxD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,QAE3C;AAqHD,eAAO,MAAM,OAAO,EAAE,WAAW,EAM/B,CAAC;AAwBH,mGAAmG;AACnG,eAAO,MAAM,eAAe,qBAAS,CAAC;AAYtC,wBAAgB,WAAW,SAgB1B;AAcD;;;;GAIG;AACH,wBAAgB,KAAK,SAWpB;AAGD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED,wBAAgB,WAAW,SAc1B;AAGD,wBAAgB,WAAW,CACzB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,SAAS,GAAG,MAAM,EACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,GAAE,WAAqB,QAQ9B;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,WAAqB,QAGzE;AAaD,wBAAgB,oBAAoB,CAClC,cAAc,EAAE,OAAO,EACvB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,EAC3B,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,QA8KxC;AAGD,wBAAgB,uBAAuB,SAwBtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarThemeScope.vue.d.ts","sourceRoot":"","sources":["../../../src/components/theme-scope/CoarThemeScope.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarThemeScope.vue.d.ts","sourceRoot":"","sources":["../../../src/components/theme-scope/CoarThemeScope.vue"],"names":[],"mappings":"AAwKA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAgHF,iBAAS,cAAc;WAiCT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WArKX,SAAS;UACV,aAAa;;;kBA6KpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarTreeNode.vue.d.ts","sourceRoot":"","sources":["../../../src/components/tree/CoarTreeNode.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarTreeNode.vue.d.ts","sourceRoot":"","sources":["../../../src/components/tree/CoarTreeNode.vue"],"names":[],"mappings":"yBA0XiB,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,C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-
{"version":3,"file":"useDragDrop.d.ts","sourceRoot":"","sources":["../../src/composables/useDragDrop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"useDragDrop.d.ts","sourceRoot":"","sources":["../../src/composables/useDragDrop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAexH,4EAA4E;AAC5E,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,+BAA+B;IAC/B,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,mEAAmE;IACnE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,wCAAwC;IACxC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mFAAmF;IACnF,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACjC,oFAAoF;IACpF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kGAAkG;IAClG,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,IA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AGvD;AAkDD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,GAAE,kBAAkB,CAAC,CAAC,CAAM,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAsVrF"}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thin wrapper around `DataTransfer.setDragImage()` that lets callers ship a nicely
|
|
3
|
-
* styled "ghost" next to the cursor during an HTML5 drag — without each consumer
|
|
4
|
-
* having to re-derive the "create offscreen clone, set, clean up on next tick"
|
|
5
|
-
* dance.
|
|
6
|
-
*
|
|
7
|
-
* The browser captures the drag image **synchronously during `dragstart`** and
|
|
8
|
-
* keeps its own snapshot — so we only need to keep the element alive in the DOM
|
|
9
|
-
* for a single paint. We append it far off-screen, call `setDragImage`, then
|
|
10
|
-
* schedule removal on the next microtask.
|
|
11
|
-
*
|
|
12
|
-
* Scope: pure helper — no Vue reactivity, no state. Safe to call from any
|
|
13
|
-
* `dragstart` handler, including inside `useDragDrop` consumers.
|
|
14
|
-
*/
|
|
15
1
|
export interface CoarDragImageOptions {
|
|
16
2
|
/** X offset of the cursor within the ghost (px). Default: 12 */
|
|
17
3
|
offsetX?: number;
|
|
@@ -26,6 +12,8 @@ export interface CoarDragImageOptions {
|
|
|
26
12
|
* the caller handles all styling via `className`. */
|
|
27
13
|
applyDefaultStyle?: boolean;
|
|
28
14
|
}
|
|
15
|
+
/** Snapshot a local profile for a short-lived body-mounted drag preview. */
|
|
16
|
+
export declare function withCompactDragContext(source: Element | null, node: HTMLElement): HTMLElement;
|
|
29
17
|
/**
|
|
30
18
|
* Use an existing DOM element as the drag image, optionally cloned so the live
|
|
31
19
|
* element isn't visually disturbed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDragImage.d.ts","sourceRoot":"","sources":["../../src/composables/useDragImage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDragImage.d.ts","sourceRoot":"","sources":["../../src/composables/useDragImage.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;yDAEqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAID,4EAA4E;AAC5E,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,CAkB7F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,oBAAyB,GACjC,IAAI,CAON;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,oBAAyB,GACjC,IAAI,CAKN"}
|