kanto-ds 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -14
- package/dist/AGENTS.md +157 -0
- package/dist/cdn/kanto.min.js +4743 -932
- package/dist/chunks/block-Cci-Kff_.js +69 -0
- package/dist/chunks/block-Cci-Kff_.js.map +1 -0
- package/dist/chunks/defaults-yhaR6U65.js +70 -0
- package/dist/chunks/{defaults-Cpeg13O5.js.map → defaults-yhaR6U65.js.map} +1 -1
- package/dist/chunks/heading-DsnZsfg-.js +21 -0
- package/dist/chunks/heading-DsnZsfg-.js.map +1 -0
- package/dist/chunks/{index-TWJzttLX.js → index-1ZFgagWW.js} +37 -12
- package/dist/chunks/index-1ZFgagWW.js.map +1 -0
- package/dist/chunks/indicator-B_Rs8F92.js +49 -0
- package/dist/chunks/indicator-B_Rs8F92.js.map +1 -0
- package/dist/chunks/{kt-calendar-CtwOby1R.js → kt-calendar-SK8eapuy.js} +3 -3
- package/dist/chunks/{kt-calendar-CtwOby1R.js.map → kt-calendar-SK8eapuy.js.map} +1 -1
- package/dist/chunks/kt-color-picker-BoezCAmx.js +365 -0
- package/dist/chunks/kt-color-picker-BoezCAmx.js.map +1 -0
- package/dist/chunks/{kt-element-T0VbIBNp.js → kt-element-DvWtPQ1Y.js} +2 -2
- package/dist/chunks/{kt-element-T0VbIBNp.js.map → kt-element-DvWtPQ1Y.js.map} +1 -1
- package/dist/chunks/motion-ChVUUO7O.js +28 -0
- package/dist/chunks/motion-ChVUUO7O.js.map +1 -0
- package/dist/chunks/numbers-QyecMiSJ.js +9 -0
- package/dist/chunks/numbers-QyecMiSJ.js.map +1 -0
- package/dist/chunks/{segmented-field-BBXR4XFL.js → segmented-field-T_Zo6lc1.js} +2 -2
- package/dist/chunks/{segmented-field-BBXR4XFL.js.map → segmented-field-T_Zo6lc1.js.map} +1 -1
- package/dist/chunks/{typed-date-CPAUNHzr.js → typed-date-CaU0kXoY.js} +2 -2
- package/dist/chunks/{typed-date-CPAUNHzr.js.map → typed-date-CaU0kXoY.js.map} +1 -1
- package/dist/components/blocks/kt-auth-form/kt-auth-form.d.ts +143 -0
- package/dist/components/blocks/kt-auth-form/kt-auth-form.js +368 -0
- package/dist/components/blocks/kt-auth-form/kt-auth-form.js.map +1 -0
- package/dist/components/blocks/kt-blog-post/kt-blog-post.d.ts +75 -0
- package/dist/components/blocks/kt-blog-post/kt-blog-post.js +285 -0
- package/dist/components/blocks/kt-blog-post/kt-blog-post.js.map +1 -0
- package/dist/components/blocks/kt-cta/kt-cta.d.ts +51 -0
- package/dist/components/blocks/kt-cta/kt-cta.js +126 -0
- package/dist/components/blocks/kt-cta/kt-cta.js.map +1 -0
- package/dist/components/blocks/kt-empty-page/kt-empty-page.d.ts +75 -0
- package/dist/components/blocks/kt-empty-page/kt-empty-page.js +245 -0
- package/dist/components/blocks/kt-empty-page/kt-empty-page.js.map +1 -0
- package/dist/components/blocks/kt-error-page/kt-error-page.d.ts +65 -0
- package/dist/components/blocks/kt-error-page/kt-error-page.js +177 -0
- package/dist/components/blocks/kt-error-page/kt-error-page.js.map +1 -0
- package/dist/components/blocks/kt-faq/kt-faq.d.ts +61 -0
- package/dist/components/blocks/kt-faq/kt-faq.js +129 -0
- package/dist/components/blocks/kt-faq/kt-faq.js.map +1 -0
- package/dist/components/blocks/kt-feature-grid/kt-feature-grid.d.ts +59 -0
- package/dist/components/blocks/kt-feature-grid/kt-feature-grid.js +166 -0
- package/dist/components/blocks/kt-feature-grid/kt-feature-grid.js.map +1 -0
- package/dist/components/blocks/kt-hero/kt-hero.d.ts +51 -0
- package/dist/components/blocks/kt-hero/kt-hero.js +138 -0
- package/dist/components/blocks/kt-hero/kt-hero.js.map +1 -0
- package/dist/components/blocks/kt-logo-cloud/kt-logo-cloud.d.ts +46 -0
- package/dist/components/blocks/kt-logo-cloud/kt-logo-cloud.js +100 -0
- package/dist/components/blocks/kt-logo-cloud/kt-logo-cloud.js.map +1 -0
- package/dist/components/blocks/kt-newsletter/kt-newsletter.d.ts +85 -0
- package/dist/components/blocks/kt-newsletter/kt-newsletter.js +247 -0
- package/dist/components/blocks/kt-newsletter/kt-newsletter.js.map +1 -0
- package/dist/components/blocks/kt-post-grid/kt-post-grid.d.ts +73 -0
- package/dist/components/blocks/kt-post-grid/kt-post-grid.js +249 -0
- package/dist/components/blocks/kt-post-grid/kt-post-grid.js.map +1 -0
- package/dist/components/blocks/kt-pricing-table/kt-pricing-table.d.ts +102 -0
- package/dist/components/blocks/kt-pricing-table/kt-pricing-table.js +307 -0
- package/dist/components/blocks/kt-pricing-table/kt-pricing-table.js.map +1 -0
- package/dist/components/blocks/kt-settings-section/kt-settings-section.d.ts +52 -0
- package/dist/components/blocks/kt-settings-section/kt-settings-section.js +158 -0
- package/dist/components/blocks/kt-settings-section/kt-settings-section.js.map +1 -0
- package/dist/components/blocks/kt-testimonials/kt-testimonials.d.ts +56 -0
- package/dist/components/blocks/kt-testimonials/kt-testimonials.js +161 -0
- package/dist/components/blocks/kt-testimonials/kt-testimonials.js.map +1 -0
- package/dist/components/core/kt-avatar/kt-avatar.js +2 -2
- package/dist/components/core/kt-avatar-group/kt-avatar-group.d.ts +42 -0
- package/dist/components/core/kt-avatar-group/kt-avatar-group.js +97 -0
- package/dist/components/core/kt-avatar-group/kt-avatar-group.js.map +1 -0
- package/dist/components/core/kt-badge/kt-badge.js +2 -2
- package/dist/components/core/kt-button/flights.d.ts +27 -0
- package/dist/components/core/kt-button/kt-button.d.ts +52 -1
- package/dist/components/core/kt-button/kt-button.js +353 -77
- package/dist/components/core/kt-button/kt-button.js.map +1 -1
- package/dist/components/core/kt-button/morph.d.ts +27 -0
- package/dist/components/core/kt-card/kt-card.js +1 -1
- package/dist/components/core/kt-code/kt-code.d.ts +2 -1
- package/dist/components/core/kt-code/kt-code.js +52 -37
- package/dist/components/core/kt-code/kt-code.js.map +1 -1
- package/dist/components/core/kt-copy-button/kt-copy-button.d.ts +47 -0
- package/dist/components/core/kt-copy-button/kt-copy-button.js +74 -0
- package/dist/components/core/kt-copy-button/kt-copy-button.js.map +1 -0
- package/dist/components/core/kt-icon/kt-icon.js +2 -2
- package/dist/components/core/kt-kbd/kt-kbd.js +1 -1
- package/dist/components/core/kt-split-button/kt-split-button.js +2 -2
- package/dist/components/data/kt-chart/kt-chart.js +2 -2
- package/dist/components/data/kt-chat-message/kt-chat-message.d.ts +60 -0
- package/dist/components/data/kt-chat-message/kt-chat-message.js +204 -0
- package/dist/components/data/kt-chat-message/kt-chat-message.js.map +1 -0
- package/dist/components/data/kt-description-list/kt-description-list.d.ts +56 -0
- package/dist/components/data/kt-description-list/kt-description-list.js +120 -0
- package/dist/components/data/kt-description-list/kt-description-list.js.map +1 -0
- package/dist/components/data/kt-meter/kt-meter.js +8 -6
- package/dist/components/data/kt-meter/kt-meter.js.map +1 -1
- package/dist/components/data/kt-pagination/kt-pagination.js +2 -2
- package/dist/components/data/kt-stat/kt-stat.d.ts +3 -1
- package/dist/components/data/kt-stat/kt-stat.js +31 -16
- package/dist/components/data/kt-stat/kt-stat.js.map +1 -1
- package/dist/components/data/kt-table/kt-table.js +2 -2
- package/dist/components/data/kt-timeline/kt-timeline.js +2 -2
- package/dist/components/data/kt-timeline/kt-timeline.js.map +1 -1
- package/dist/components/data/kt-tree/kt-tree.d.ts +69 -0
- package/dist/components/data/kt-tree/kt-tree.js +208 -0
- package/dist/components/data/kt-tree/kt-tree.js.map +1 -0
- package/dist/components/feedback/kt-alert/kt-alert.js +2 -2
- package/dist/components/feedback/kt-empty-state/kt-empty-state.js +1 -1
- package/dist/components/feedback/kt-progress-bar/kt-progress-bar.js +1 -1
- package/dist/components/feedback/kt-skeleton/kt-skeleton.js +1 -1
- package/dist/components/feedback/kt-toast/kt-toast.js +2 -2
- package/dist/components/feedback/kt-toast-container/kt-toast-container.d.ts +8 -1
- package/dist/components/feedback/kt-toast-container/kt-toast-container.js +65 -26
- package/dist/components/feedback/kt-toast-container/kt-toast-container.js.map +1 -1
- package/dist/components/feedback/kt-tooltip/kt-tooltip.js +1 -1
- package/dist/components/forms/kt-calendar/kt-calendar.js +3 -3
- package/dist/components/forms/kt-checkbox/kt-checkbox.d.ts +2 -0
- package/dist/components/forms/kt-checkbox/kt-checkbox.js +19 -8
- package/dist/components/forms/kt-checkbox/kt-checkbox.js.map +1 -1
- package/dist/components/forms/kt-color-picker/kt-color-picker.d.ts +66 -0
- package/dist/components/forms/kt-color-picker/kt-color-picker.js +14 -0
- package/dist/components/forms/kt-color-picker/kt-color-picker.js.map +1 -0
- package/dist/components/forms/kt-date-input/kt-date-input.js +5 -5
- package/dist/components/forms/kt-date-picker/kt-date-picker.js +4 -4
- package/dist/components/forms/kt-drag-drop/kt-drag-drop.js +2 -2
- package/dist/components/forms/kt-form/kt-form.js +2 -2
- package/dist/components/forms/kt-input/kt-input.js +2 -2
- package/dist/components/forms/kt-input-menu/kt-input-menu.js +2 -2
- package/dist/components/forms/kt-label-input/kt-label-input.js +1 -1
- package/dist/components/forms/kt-multi-select/kt-multi-select.js +2 -2
- package/dist/components/forms/kt-number-input/kt-number-input.d.ts +92 -0
- package/dist/components/forms/kt-number-input/kt-number-input.js +366 -0
- package/dist/components/forms/kt-number-input/kt-number-input.js.map +1 -0
- package/dist/components/forms/kt-otp-input/kt-otp-input.d.ts +74 -0
- package/dist/components/forms/kt-otp-input/kt-otp-input.js +232 -0
- package/dist/components/forms/kt-otp-input/kt-otp-input.js.map +1 -0
- package/dist/components/forms/kt-prompt-input/kt-prompt-input.d.ts +74 -0
- package/dist/components/forms/kt-prompt-input/kt-prompt-input.js +213 -0
- package/dist/components/forms/kt-prompt-input/kt-prompt-input.js.map +1 -0
- package/dist/components/forms/kt-radio-group/kt-radio-group.js +2 -2
- package/dist/components/forms/kt-select/kt-select.js +2 -2
- package/dist/components/forms/kt-slider/kt-slider.d.ts +69 -0
- package/dist/components/forms/kt-slider/kt-slider.js +252 -0
- package/dist/components/forms/kt-slider/kt-slider.js.map +1 -0
- package/dist/components/forms/kt-textarea/kt-textarea.js +2 -2
- package/dist/components/forms/kt-time-input/kt-time-input.js +3 -3
- package/dist/components/forms/kt-toggle/kt-toggle.js +1 -1
- package/dist/components/navigation/kt-app-shell/kt-app-shell.d.ts +85 -0
- package/dist/components/navigation/kt-app-shell/kt-app-shell.js +220 -0
- package/dist/components/navigation/kt-app-shell/kt-app-shell.js.map +1 -0
- package/dist/components/navigation/kt-breadcrumb/kt-breadcrumb.js +2 -2
- package/dist/components/navigation/kt-footer/kt-footer.d.ts +82 -0
- package/dist/components/navigation/kt-footer/kt-footer.js +220 -0
- package/dist/components/navigation/kt-footer/kt-footer.js.map +1 -0
- package/dist/components/navigation/kt-header/kt-header.js +2 -2
- package/dist/components/navigation/kt-page-header/kt-page-header.js +2 -2
- package/dist/components/navigation/kt-page-header/kt-page-header.js.map +1 -1
- package/dist/components/navigation/kt-segmented-control/kt-segmented-control.d.ts +1 -0
- package/dist/components/navigation/kt-segmented-control/kt-segmented-control.js +81 -44
- package/dist/components/navigation/kt-segmented-control/kt-segmented-control.js.map +1 -1
- package/dist/components/navigation/kt-steps/kt-steps.d.ts +68 -0
- package/dist/components/navigation/kt-steps/kt-steps.js +286 -0
- package/dist/components/navigation/kt-steps/kt-steps.js.map +1 -0
- package/dist/components/navigation/kt-sub-menu-navigation/kt-sub-menu-navigation.js +3 -3
- package/dist/components/navigation/kt-sub-menu-navigation/kt-sub-menu-navigation.js.map +1 -1
- package/dist/components/navigation/kt-tabs/kt-tabs.d.ts +1 -0
- package/dist/components/navigation/kt-tabs/kt-tabs.js +92 -64
- package/dist/components/navigation/kt-tabs/kt-tabs.js.map +1 -1
- package/dist/components/navigation/kt-toggle-button/kt-toggle-button.js +1 -1
- package/dist/components/navigation/kt-toggle-button-group/kt-toggle-button-group.js +2 -2
- package/dist/components/navigation/kt-user-menu/kt-user-menu.d.ts +86 -0
- package/dist/components/navigation/kt-user-menu/kt-user-menu.js +298 -0
- package/dist/components/navigation/kt-user-menu/kt-user-menu.js.map +1 -0
- package/dist/components/overlays/kt-accordion/kt-accordion.d.ts +47 -0
- package/dist/components/overlays/kt-accordion/kt-accordion.js +80 -0
- package/dist/components/overlays/kt-accordion/kt-accordion.js.map +1 -0
- package/dist/components/overlays/kt-collapsible/kt-collapsible.d.ts +17 -1
- package/dist/components/overlays/kt-collapsible/kt-collapsible.js +87 -32
- package/dist/components/overlays/kt-collapsible/kt-collapsible.js.map +1 -1
- package/dist/components/overlays/kt-command-palette/kt-command-palette.d.ts +87 -0
- package/dist/components/overlays/kt-command-palette/kt-command-palette.js +370 -0
- package/dist/components/overlays/kt-command-palette/kt-command-palette.js.map +1 -0
- package/dist/components/overlays/kt-confirm-dialog/kt-confirm-dialog.js +2 -2
- package/dist/components/overlays/kt-dropdown/kt-dropdown.js +2 -2
- package/dist/components/overlays/kt-modal/kt-modal.js +2 -2
- package/dist/components/overlays/kt-side-panel/kt-side-panel.js +2 -2
- package/dist/components/overlays/kt-tour/kt-tour.d.ts +77 -0
- package/dist/components/overlays/kt-tour/kt-tour.js +200 -0
- package/dist/components/overlays/kt-tour/kt-tour.js.map +1 -0
- package/dist/custom-elements.json +16427 -8061
- package/dist/docs/kt-accordion.md +49 -0
- package/dist/docs/kt-app-shell.md +89 -0
- package/dist/docs/kt-auth-form.md +111 -0
- package/dist/docs/kt-avatar-group.md +49 -0
- package/dist/docs/kt-blog-post.md +77 -0
- package/dist/docs/kt-button.md +21 -0
- package/dist/docs/kt-chat-message.md +68 -0
- package/dist/docs/kt-color-picker.md +67 -0
- package/dist/docs/kt-command-palette.md +99 -0
- package/dist/docs/kt-copy-button.md +50 -0
- package/dist/docs/kt-cta.md +45 -0
- package/dist/docs/kt-description-list.md +58 -0
- package/dist/docs/kt-empty-page.md +92 -0
- package/dist/docs/kt-error-page.md +64 -0
- package/dist/docs/kt-faq.md +54 -0
- package/dist/docs/kt-feature-grid.md +53 -0
- package/dist/docs/kt-footer.md +115 -0
- package/dist/docs/kt-hero.md +53 -0
- package/dist/docs/kt-logo-cloud.md +41 -0
- package/dist/docs/kt-newsletter.md +69 -0
- package/dist/docs/kt-number-input.md +77 -0
- package/dist/docs/kt-otp-input.md +68 -0
- package/dist/docs/kt-post-grid.md +66 -0
- package/dist/docs/kt-pricing-table.md +101 -0
- package/dist/docs/kt-prompt-input.md +86 -0
- package/dist/docs/kt-settings-section.md +65 -0
- package/dist/docs/kt-slider.md +76 -0
- package/dist/docs/kt-steps.md +79 -0
- package/dist/docs/kt-testimonials.md +52 -0
- package/dist/docs/kt-tour.md +75 -0
- package/dist/docs/kt-tree.md +83 -0
- package/dist/docs/kt-user-menu.md +77 -0
- package/dist/icons/defaults.d.ts +2 -0
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +56 -0
- package/dist/index.js +225 -284
- package/dist/index.js.map +1 -1
- package/dist/internal/block.d.ts +23 -0
- package/dist/internal/command-search.d.ts +27 -0
- package/dist/internal/heading.d.ts +8 -0
- package/dist/internal/indicator.d.ts +34 -0
- package/dist/internal/motion.d.ts +25 -0
- package/dist/internal/numbers.d.ts +2 -0
- package/dist/internal/strings.d.ts +36 -0
- package/dist/react/index.d.ts +165 -0
- package/dist/react/index.js +420 -171
- package/dist/react/index.js.map +1 -1
- package/dist/react/jsx.d.ts +128 -1
- package/dist/strings/index.js +1 -1
- package/dist/tokens/base.css +35 -2
- package/dist/vscode.css-custom-data.json +165 -19
- package/dist/vscode.html-custom-data.json +1023 -149
- package/dist/vue/index.d.ts +62 -0
- package/dist/vue/index.js +39 -8
- package/dist/vue/index.js.map +1 -1
- package/dist/web-types.json +3238 -836
- package/package.json +128 -3
- package/dist/chunks/defaults-Cpeg13O5.js +0 -68
- package/dist/chunks/index-TWJzttLX.js.map +0 -1
package/dist/vue/index.d.ts
CHANGED
|
@@ -53,6 +53,9 @@ import type { KtTimeInput } from 'kanto-ds';
|
|
|
53
53
|
import type { KtRadioGroup } from 'kanto-ds';
|
|
54
54
|
import type { KtRadio } from 'kanto-ds';
|
|
55
55
|
import type { KtTextarea } from 'kanto-ds';
|
|
56
|
+
import type { KtSlider } from 'kanto-ds';
|
|
57
|
+
import type { KtNumberInput } from 'kanto-ds';
|
|
58
|
+
import type { KtSteps } from 'kanto-ds';
|
|
56
59
|
import type { KtToggle } from 'kanto-ds';
|
|
57
60
|
import type { KtBreadcrumb } from 'kanto-ds';
|
|
58
61
|
import type { KtPageHeader } from 'kanto-ds';
|
|
@@ -60,6 +63,33 @@ import type { KtSegmentedControl } from 'kanto-ds';
|
|
|
60
63
|
import type { KtSubMenuNavigation } from 'kanto-ds';
|
|
61
64
|
import type { KtTabs } from 'kanto-ds';
|
|
62
65
|
import type { KtHeader } from 'kanto-ds';
|
|
66
|
+
import type { KtEmptyPage } from 'kanto-ds';
|
|
67
|
+
import type { KtSettingsSection } from 'kanto-ds';
|
|
68
|
+
import type { KtNewsletter } from 'kanto-ds';
|
|
69
|
+
import type { KtBlogPost } from 'kanto-ds';
|
|
70
|
+
import type { KtPostGrid } from 'kanto-ds';
|
|
71
|
+
import type { KtFaq } from 'kanto-ds';
|
|
72
|
+
import type { KtLogoCloud } from 'kanto-ds';
|
|
73
|
+
import type { KtTestimonials } from 'kanto-ds';
|
|
74
|
+
import type { KtPricingTable } from 'kanto-ds';
|
|
75
|
+
import type { KtCta } from 'kanto-ds';
|
|
76
|
+
import type { KtFeatureGrid } from 'kanto-ds';
|
|
77
|
+
import type { KtHero } from 'kanto-ds';
|
|
78
|
+
import type { KtErrorPage } from 'kanto-ds';
|
|
79
|
+
import type { KtAuthForm } from 'kanto-ds';
|
|
80
|
+
import type { KtTour } from 'kanto-ds';
|
|
81
|
+
import type { KtColorPicker } from 'kanto-ds';
|
|
82
|
+
import type { KtTree } from 'kanto-ds';
|
|
83
|
+
import type { KtUserMenu } from 'kanto-ds';
|
|
84
|
+
import type { KtAccordion } from 'kanto-ds';
|
|
85
|
+
import type { KtOtpInput } from 'kanto-ds';
|
|
86
|
+
import type { KtCopyButton } from 'kanto-ds';
|
|
87
|
+
import type { KtAvatarGroup } from 'kanto-ds';
|
|
88
|
+
import type { KtDescriptionList } from 'kanto-ds';
|
|
89
|
+
import type { KtAppShell } from 'kanto-ds';
|
|
90
|
+
import type { KtChatMessage } from 'kanto-ds';
|
|
91
|
+
import type { KtPromptInput } from 'kanto-ds';
|
|
92
|
+
import type { KtFooter } from 'kanto-ds';
|
|
63
93
|
import type { KtToggleButton } from 'kanto-ds';
|
|
64
94
|
import type { KtToggleButtonGroup } from 'kanto-ds';
|
|
65
95
|
import type { KtAlert } from 'kanto-ds';
|
|
@@ -73,6 +103,7 @@ import type { KtCollapsible } from 'kanto-ds';
|
|
|
73
103
|
import type { KtConfirmDialog } from 'kanto-ds';
|
|
74
104
|
import type { KtDropdown } from 'kanto-ds';
|
|
75
105
|
import type { KtModal } from 'kanto-ds';
|
|
106
|
+
import type { KtCommandPalette } from 'kanto-ds';
|
|
76
107
|
import type { KtSidePanel } from 'kanto-ds';
|
|
77
108
|
import type { KtChart } from 'kanto-ds';
|
|
78
109
|
import type { KtMeter } from 'kanto-ds';
|
|
@@ -122,6 +153,9 @@ declare module 'vue' {
|
|
|
122
153
|
'kt-radio-group': KtProps<KtRadioGroup>;
|
|
123
154
|
'kt-radio': KtProps<KtRadio>;
|
|
124
155
|
'kt-textarea': KtProps<KtTextarea>;
|
|
156
|
+
'kt-slider': KtProps<KtSlider>;
|
|
157
|
+
'kt-number-input': KtProps<KtNumberInput>;
|
|
158
|
+
'kt-steps': KtProps<KtSteps>;
|
|
125
159
|
'kt-toggle': KtProps<KtToggle>;
|
|
126
160
|
'kt-breadcrumb': KtProps<KtBreadcrumb>;
|
|
127
161
|
'kt-page-header': KtProps<KtPageHeader>;
|
|
@@ -129,6 +163,33 @@ declare module 'vue' {
|
|
|
129
163
|
'kt-sub-menu-navigation': KtProps<KtSubMenuNavigation>;
|
|
130
164
|
'kt-tabs': KtProps<KtTabs>;
|
|
131
165
|
'kt-header': KtProps<KtHeader>;
|
|
166
|
+
'kt-empty-page': KtProps<KtEmptyPage>;
|
|
167
|
+
'kt-settings-section': KtProps<KtSettingsSection>;
|
|
168
|
+
'kt-newsletter': KtProps<KtNewsletter>;
|
|
169
|
+
'kt-blog-post': KtProps<KtBlogPost>;
|
|
170
|
+
'kt-post-grid': KtProps<KtPostGrid>;
|
|
171
|
+
'kt-faq': KtProps<KtFaq>;
|
|
172
|
+
'kt-logo-cloud': KtProps<KtLogoCloud>;
|
|
173
|
+
'kt-testimonials': KtProps<KtTestimonials>;
|
|
174
|
+
'kt-pricing-table': KtProps<KtPricingTable>;
|
|
175
|
+
'kt-cta': KtProps<KtCta>;
|
|
176
|
+
'kt-feature-grid': KtProps<KtFeatureGrid>;
|
|
177
|
+
'kt-hero': KtProps<KtHero>;
|
|
178
|
+
'kt-error-page': KtProps<KtErrorPage>;
|
|
179
|
+
'kt-auth-form': KtProps<KtAuthForm>;
|
|
180
|
+
'kt-tour': KtProps<KtTour>;
|
|
181
|
+
'kt-color-picker': KtProps<KtColorPicker>;
|
|
182
|
+
'kt-tree': KtProps<KtTree>;
|
|
183
|
+
'kt-user-menu': KtProps<KtUserMenu>;
|
|
184
|
+
'kt-accordion': KtProps<KtAccordion>;
|
|
185
|
+
'kt-otp-input': KtProps<KtOtpInput>;
|
|
186
|
+
'kt-copy-button': KtProps<KtCopyButton>;
|
|
187
|
+
'kt-avatar-group': KtProps<KtAvatarGroup>;
|
|
188
|
+
'kt-description-list': KtProps<KtDescriptionList>;
|
|
189
|
+
'kt-app-shell': KtProps<KtAppShell>;
|
|
190
|
+
'kt-chat-message': KtProps<KtChatMessage>;
|
|
191
|
+
'kt-prompt-input': KtProps<KtPromptInput>;
|
|
192
|
+
'kt-footer': KtProps<KtFooter>;
|
|
132
193
|
'kt-toggle-button': KtProps<KtToggleButton>;
|
|
133
194
|
'kt-toggle-button-group': KtProps<KtToggleButtonGroup>;
|
|
134
195
|
'kt-alert': KtProps<KtAlert>;
|
|
@@ -142,6 +203,7 @@ declare module 'vue' {
|
|
|
142
203
|
'kt-confirm-dialog': KtProps<KtConfirmDialog>;
|
|
143
204
|
'kt-dropdown': KtProps<KtDropdown>;
|
|
144
205
|
'kt-modal': KtProps<KtModal>;
|
|
206
|
+
'kt-command-palette': KtProps<KtCommandPalette>;
|
|
145
207
|
'kt-side-panel': KtProps<KtSidePanel>;
|
|
146
208
|
'kt-chart': KtProps<KtChart>;
|
|
147
209
|
'kt-meter': KtProps<KtMeter>;
|
package/dist/vue/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import "../components/core/kt-code/kt-code.js";
|
|
|
7
7
|
import "../components/core/kt-icon/kt-icon.js";
|
|
8
8
|
import "../components/core/kt-kbd/kt-kbd.js";
|
|
9
9
|
import "../components/forms/kt-checkbox/kt-checkbox.js";
|
|
10
|
-
import "../chunks/kt-calendar-
|
|
10
|
+
import "../chunks/kt-calendar-SK8eapuy.js";
|
|
11
11
|
import "../components/forms/kt-date-input/kt-date-input.js";
|
|
12
12
|
import "../components/forms/kt-date-picker/kt-date-picker.js";
|
|
13
13
|
import "../components/forms/kt-drag-drop/kt-drag-drop.js";
|
|
@@ -19,6 +19,8 @@ import "../components/forms/kt-label-input/kt-label-input.js";
|
|
|
19
19
|
import "../components/forms/kt-radio-group/kt-radio-group.js";
|
|
20
20
|
import "../components/forms/kt-select/kt-select.js";
|
|
21
21
|
import "../components/forms/kt-textarea/kt-textarea.js";
|
|
22
|
+
import "../components/forms/kt-slider/kt-slider.js";
|
|
23
|
+
import "../components/forms/kt-number-input/kt-number-input.js";
|
|
22
24
|
import "../components/forms/kt-time-input/kt-time-input.js";
|
|
23
25
|
import "../components/forms/kt-toggle/kt-toggle.js";
|
|
24
26
|
import "../components/navigation/kt-breadcrumb/kt-breadcrumb.js";
|
|
@@ -26,7 +28,35 @@ import "../components/navigation/kt-page-header/kt-page-header.js";
|
|
|
26
28
|
import "../components/navigation/kt-segmented-control/kt-segmented-control.js";
|
|
27
29
|
import "../components/navigation/kt-sub-menu-navigation/kt-sub-menu-navigation.js";
|
|
28
30
|
import "../components/navigation/kt-tabs/kt-tabs.js";
|
|
31
|
+
import "../components/navigation/kt-steps/kt-steps.js";
|
|
29
32
|
import "../components/navigation/kt-header/kt-header.js";
|
|
33
|
+
import "../components/forms/kt-prompt-input/kt-prompt-input.js";
|
|
34
|
+
import "../components/data/kt-chat-message/kt-chat-message.js";
|
|
35
|
+
import "../components/navigation/kt-app-shell/kt-app-shell.js";
|
|
36
|
+
import "../components/data/kt-description-list/kt-description-list.js";
|
|
37
|
+
import "../components/core/kt-avatar-group/kt-avatar-group.js";
|
|
38
|
+
import "../components/core/kt-copy-button/kt-copy-button.js";
|
|
39
|
+
import "../components/forms/kt-otp-input/kt-otp-input.js";
|
|
40
|
+
import "../components/overlays/kt-accordion/kt-accordion.js";
|
|
41
|
+
import "../components/navigation/kt-user-menu/kt-user-menu.js";
|
|
42
|
+
import "../components/data/kt-tree/kt-tree.js";
|
|
43
|
+
import "../chunks/kt-color-picker-BoezCAmx.js";
|
|
44
|
+
import "../components/overlays/kt-tour/kt-tour.js";
|
|
45
|
+
import "../components/blocks/kt-auth-form/kt-auth-form.js";
|
|
46
|
+
import "../components/blocks/kt-error-page/kt-error-page.js";
|
|
47
|
+
import "../components/blocks/kt-hero/kt-hero.js";
|
|
48
|
+
import "../components/blocks/kt-feature-grid/kt-feature-grid.js";
|
|
49
|
+
import "../components/blocks/kt-cta/kt-cta.js";
|
|
50
|
+
import "../components/blocks/kt-pricing-table/kt-pricing-table.js";
|
|
51
|
+
import "../components/blocks/kt-testimonials/kt-testimonials.js";
|
|
52
|
+
import "../components/blocks/kt-logo-cloud/kt-logo-cloud.js";
|
|
53
|
+
import "../components/blocks/kt-faq/kt-faq.js";
|
|
54
|
+
import "../components/blocks/kt-post-grid/kt-post-grid.js";
|
|
55
|
+
import "../components/blocks/kt-blog-post/kt-blog-post.js";
|
|
56
|
+
import "../components/blocks/kt-newsletter/kt-newsletter.js";
|
|
57
|
+
import "../components/blocks/kt-settings-section/kt-settings-section.js";
|
|
58
|
+
import "../components/blocks/kt-empty-page/kt-empty-page.js";
|
|
59
|
+
import "../components/navigation/kt-footer/kt-footer.js";
|
|
30
60
|
import "../components/navigation/kt-toggle-button/kt-toggle-button.js";
|
|
31
61
|
import "../components/navigation/kt-toggle-button-group/kt-toggle-button-group.js";
|
|
32
62
|
import "../components/feedback/kt-alert/kt-alert.js";
|
|
@@ -35,12 +65,13 @@ import "../components/feedback/kt-progress-bar/kt-progress-bar.js";
|
|
|
35
65
|
import "../components/feedback/kt-skeleton/kt-skeleton.js";
|
|
36
66
|
import "../components/feedback/kt-toast/kt-toast.js";
|
|
37
67
|
import "../components/feedback/kt-toast-container/kt-toast-container.js";
|
|
38
|
-
import { t as
|
|
68
|
+
import { t as dt } from "../chunks/toaster-PmdKSV5x.js";
|
|
39
69
|
import "../components/feedback/kt-tooltip/kt-tooltip.js";
|
|
40
70
|
import "../components/overlays/kt-collapsible/kt-collapsible.js";
|
|
41
71
|
import "../components/overlays/kt-confirm-dialog/kt-confirm-dialog.js";
|
|
42
72
|
import "../components/overlays/kt-dropdown/kt-dropdown.js";
|
|
43
73
|
import "../components/overlays/kt-modal/kt-modal.js";
|
|
74
|
+
import "../components/overlays/kt-command-palette/kt-command-palette.js";
|
|
44
75
|
import "../components/overlays/kt-side-panel/kt-side-panel.js";
|
|
45
76
|
import "../components/data/kt-chart/kt-chart.js";
|
|
46
77
|
import "../components/data/kt-meter/kt-meter.js";
|
|
@@ -48,17 +79,17 @@ import "../components/data/kt-pagination/kt-pagination.js";
|
|
|
48
79
|
import "../components/data/kt-stat/kt-stat.js";
|
|
49
80
|
import "../components/data/kt-table/kt-table.js";
|
|
50
81
|
import "../components/data/kt-timeline/kt-timeline.js";
|
|
51
|
-
function
|
|
82
|
+
function Pt(t) {
|
|
52
83
|
return t.startsWith("kt-");
|
|
53
84
|
}
|
|
54
|
-
const
|
|
85
|
+
const Rt = "kt-", Wt = {
|
|
55
86
|
install() {
|
|
56
87
|
}
|
|
57
88
|
};
|
|
58
89
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
90
|
+
Rt as KANTO_TAG_PREFIX,
|
|
91
|
+
Pt as isKantoElement,
|
|
92
|
+
Wt as kanto,
|
|
93
|
+
dt as toaster
|
|
63
94
|
};
|
|
64
95
|
//# sourceMappingURL=index.js.map
|
package/dist/vue/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/vue/index.ts"],"sourcesContent":["/**\n * Vue integration for the Kanto elements.\n *\n * There are no per-component wrappers here, and that is the point. Vue 3\n * renders custom elements natively and sets non-primitive bindings as DOM\n * properties, so `<kt-select :options=\"regions\">` already works. A wrapper\n * layer would only be one more thing to keep in sync.\n *\n * What Vue cannot infer on its own is which tags are custom elements, and what\n * they accept. That is what this module supplies.\n *\n * ```ts\n * // vite.config.ts\n * import vue from '@vitejs/plugin-vue';\n * import { isKantoElement } from 'kanto-ds/vue';\n *\n * export default defineConfig({\n * plugins: [vue({ template: { compilerOptions: { isCustomElement: isKantoElement } } })],\n * });\n * ```\n *\n * ```ts\n * // main.ts\n * import 'kanto-ds/vue'; // registers every element\n * import 'kanto-ds/styles.css';\n * ```\n *\n * Vue is a peer dependency: importing this module in a project without Vue\n * still works, since nothing here is imported from `vue` at runtime.\n */\n// Type-only, so nothing from Vue is pulled in at runtime — but the import is\n// what lets TypeScript resolve the module we augment below.\nimport type { Plugin } from 'vue';\n\nimport '../index.js';\n\nimport type { KtAvatar } from 'kanto-ds';\nimport type { KtBadge } from 'kanto-ds';\nimport type { KtButton } from 'kanto-ds';\nimport type { KtSplitButton } from 'kanto-ds';\nimport type { KtCard } from 'kanto-ds';\nimport type { KtCode } from 'kanto-ds';\nimport type { KtIcon } from 'kanto-ds';\nimport type { KtKbd } from 'kanto-ds';\nimport type { KtDragDrop } from 'kanto-ds';\nimport type { KtForm } from 'kanto-ds';\nimport type { KtInput } from 'kanto-ds';\nimport type { KtInputMenu } from 'kanto-ds';\nimport type { KtMultiSelect } from 'kanto-ds';\nimport type { KtLabelInput } from 'kanto-ds';\nimport type { KtSelect } from 'kanto-ds';\nimport type { KtCheckbox } from 'kanto-ds';\nimport type { KtCalendar } from 'kanto-ds';\nimport type { KtDateInput } from 'kanto-ds';\nimport type { KtDatePicker } from 'kanto-ds';\nimport type { KtTimeInput } from 'kanto-ds';\nimport type { KtRadioGroup } from 'kanto-ds';\nimport type { KtRadio } from 'kanto-ds';\nimport type { KtTextarea } from 'kanto-ds';\nimport type { KtToggle } from 'kanto-ds';\nimport type { KtBreadcrumb } from 'kanto-ds';\nimport type { KtPageHeader } from 'kanto-ds';\nimport type { KtSegmentedControl } from 'kanto-ds';\nimport type { KtSubMenuNavigation } from 'kanto-ds';\nimport type { KtTabs } from 'kanto-ds';\nimport type { KtHeader } from 'kanto-ds';\nimport type { KtToggleButton } from 'kanto-ds';\nimport type { KtToggleButtonGroup } from 'kanto-ds';\nimport type { KtAlert } from 'kanto-ds';\nimport type { KtEmptyState } from 'kanto-ds';\nimport type { KtProgressBar } from 'kanto-ds';\nimport type { KtSkeleton } from 'kanto-ds';\nimport type { KtToast } from 'kanto-ds';\nimport type { KtToastContainer } from 'kanto-ds';\nimport type { KtTooltip } from 'kanto-ds';\nimport type { KtCollapsible } from 'kanto-ds';\nimport type { KtConfirmDialog } from 'kanto-ds';\nimport type { KtDropdown } from 'kanto-ds';\nimport type { KtModal } from 'kanto-ds';\nimport type { KtSidePanel } from 'kanto-ds';\nimport type { KtChart } from 'kanto-ds';\nimport type { KtMeter } from 'kanto-ds';\nimport type { KtPagination } from 'kanto-ds';\nimport type { KtStat } from 'kanto-ds';\nimport type { KtTable } from 'kanto-ds';\nimport type { KtTimeline, KtTimelineItem } from 'kanto-ds';\n\n/**\n * True for any Kanto custom element.\n *\n * Pass it as `compilerOptions.isCustomElement` so the Vue compiler stops\n * trying to resolve `kt-*` tags as components.\n */\nexport function isKantoElement(tag: string): boolean {\n return tag.startsWith('kt-');\n}\n\n/** Every element's tag name, for anyone building their own predicate. */\nexport const KANTO_TAG_PREFIX = 'kt-';\n\n/**\n * What a Kanto element accepts in a template: its own properties, plus the\n * attributes and listeners any element takes.\n */\ntype KtProps<T> = Partial<T> &\n Record<`on${string}`, unknown> & { class?: unknown; style?: unknown };\n\ndeclare module 'vue' {\n interface GlobalComponents {\n 'kt-avatar': KtProps<KtAvatar>;\n 'kt-badge': KtProps<KtBadge>;\n 'kt-button': KtProps<KtButton>;\n 'kt-split-button': KtProps<KtSplitButton>;\n 'kt-card': KtProps<KtCard>;\n 'kt-code': KtProps<KtCode>;\n 'kt-icon': KtProps<KtIcon>;\n 'kt-kbd': KtProps<KtKbd>;\n 'kt-drag-drop': KtProps<KtDragDrop>;\n 'kt-form': KtProps<KtForm>;\n 'kt-input': KtProps<KtInput>;\n 'kt-input-menu': KtProps<KtInputMenu>;\n 'kt-multi-select': KtProps<KtMultiSelect>;\n 'kt-label-input': KtProps<KtLabelInput>;\n 'kt-select': KtProps<KtSelect>;\n 'kt-checkbox': KtProps<KtCheckbox>;\n 'kt-calendar': KtProps<KtCalendar>;\n 'kt-date-input': KtProps<KtDateInput>;\n 'kt-date-picker': KtProps<KtDatePicker>;\n 'kt-time-input': KtProps<KtTimeInput>;\n 'kt-radio-group': KtProps<KtRadioGroup>;\n 'kt-radio': KtProps<KtRadio>;\n 'kt-textarea': KtProps<KtTextarea>;\n 'kt-toggle': KtProps<KtToggle>;\n 'kt-breadcrumb': KtProps<KtBreadcrumb>;\n 'kt-page-header': KtProps<KtPageHeader>;\n 'kt-segmented-control': KtProps<KtSegmentedControl>;\n 'kt-sub-menu-navigation': KtProps<KtSubMenuNavigation>;\n 'kt-tabs': KtProps<KtTabs>;\n 'kt-header': KtProps<KtHeader>;\n 'kt-toggle-button': KtProps<KtToggleButton>;\n 'kt-toggle-button-group': KtProps<KtToggleButtonGroup>;\n 'kt-alert': KtProps<KtAlert>;\n 'kt-empty-state': KtProps<KtEmptyState>;\n 'kt-progress-bar': KtProps<KtProgressBar>;\n 'kt-skeleton': KtProps<KtSkeleton>;\n 'kt-toast': KtProps<KtToast>;\n 'kt-toast-container': KtProps<KtToastContainer>;\n 'kt-tooltip': KtProps<KtTooltip>;\n 'kt-collapsible': KtProps<KtCollapsible>;\n 'kt-confirm-dialog': KtProps<KtConfirmDialog>;\n 'kt-dropdown': KtProps<KtDropdown>;\n 'kt-modal': KtProps<KtModal>;\n 'kt-side-panel': KtProps<KtSidePanel>;\n 'kt-chart': KtProps<KtChart>;\n 'kt-meter': KtProps<KtMeter>;\n 'kt-pagination': KtProps<KtPagination>;\n 'kt-stat': KtProps<KtStat>;\n 'kt-table': KtProps<KtTable>;\n 'kt-timeline': KtProps<KtTimeline>;\n 'kt-timeline-item': KtProps<KtTimelineItem>;\n }\n}\n\n/**\n * A no-op plugin, for apps that would rather write `app.use(kanto)` than a\n * bare side-effect import. Importing this module already registers every\n * element; this only makes that visible in `main.ts`.\n */\nexport const kanto: Plugin = {\n install() {\n /* the elements register themselves on import */\n },\n};\n\nexport { toaster } from '../components/feedback/kt-toast-container/toaster.js';\n"],"names":["isKantoElement","tag","KANTO_TAG_PREFIX","kanto"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/vue/index.ts"],"sourcesContent":["/**\n * Vue integration for the Kanto elements.\n *\n * There are no per-component wrappers here, and that is the point. Vue 3\n * renders custom elements natively and sets non-primitive bindings as DOM\n * properties, so `<kt-select :options=\"regions\">` already works. A wrapper\n * layer would only be one more thing to keep in sync.\n *\n * What Vue cannot infer on its own is which tags are custom elements, and what\n * they accept. That is what this module supplies.\n *\n * ```ts\n * // vite.config.ts\n * import vue from '@vitejs/plugin-vue';\n * import { isKantoElement } from 'kanto-ds/vue';\n *\n * export default defineConfig({\n * plugins: [vue({ template: { compilerOptions: { isCustomElement: isKantoElement } } })],\n * });\n * ```\n *\n * ```ts\n * // main.ts\n * import 'kanto-ds/vue'; // registers every element\n * import 'kanto-ds/styles.css';\n * ```\n *\n * Vue is a peer dependency: importing this module in a project without Vue\n * still works, since nothing here is imported from `vue` at runtime.\n */\n// Type-only, so nothing from Vue is pulled in at runtime — but the import is\n// what lets TypeScript resolve the module we augment below.\nimport type { Plugin } from 'vue';\n\nimport '../index.js';\n\nimport type { KtAvatar } from 'kanto-ds';\nimport type { KtBadge } from 'kanto-ds';\nimport type { KtButton } from 'kanto-ds';\nimport type { KtSplitButton } from 'kanto-ds';\nimport type { KtCard } from 'kanto-ds';\nimport type { KtCode } from 'kanto-ds';\nimport type { KtIcon } from 'kanto-ds';\nimport type { KtKbd } from 'kanto-ds';\nimport type { KtDragDrop } from 'kanto-ds';\nimport type { KtForm } from 'kanto-ds';\nimport type { KtInput } from 'kanto-ds';\nimport type { KtInputMenu } from 'kanto-ds';\nimport type { KtMultiSelect } from 'kanto-ds';\nimport type { KtLabelInput } from 'kanto-ds';\nimport type { KtSelect } from 'kanto-ds';\nimport type { KtCheckbox } from 'kanto-ds';\nimport type { KtCalendar } from 'kanto-ds';\nimport type { KtDateInput } from 'kanto-ds';\nimport type { KtDatePicker } from 'kanto-ds';\nimport type { KtTimeInput } from 'kanto-ds';\nimport type { KtRadioGroup } from 'kanto-ds';\nimport type { KtRadio } from 'kanto-ds';\nimport type { KtTextarea } from 'kanto-ds';\nimport type { KtSlider } from 'kanto-ds';\nimport type { KtNumberInput } from 'kanto-ds';\nimport type { KtSteps } from 'kanto-ds';\nimport type { KtToggle } from 'kanto-ds';\nimport type { KtBreadcrumb } from 'kanto-ds';\nimport type { KtPageHeader } from 'kanto-ds';\nimport type { KtSegmentedControl } from 'kanto-ds';\nimport type { KtSubMenuNavigation } from 'kanto-ds';\nimport type { KtTabs } from 'kanto-ds';\nimport type { KtHeader } from 'kanto-ds';\nimport type { KtEmptyPage } from 'kanto-ds';\nimport type { KtSettingsSection } from 'kanto-ds';\nimport type { KtNewsletter } from 'kanto-ds';\nimport type { KtBlogPost } from 'kanto-ds';\nimport type { KtPostGrid } from 'kanto-ds';\nimport type { KtFaq } from 'kanto-ds';\nimport type { KtLogoCloud } from 'kanto-ds';\nimport type { KtTestimonials } from 'kanto-ds';\nimport type { KtPricingTable } from 'kanto-ds';\nimport type { KtCta } from 'kanto-ds';\nimport type { KtFeatureGrid } from 'kanto-ds';\nimport type { KtHero } from 'kanto-ds';\nimport type { KtErrorPage } from 'kanto-ds';\nimport type { KtAuthForm } from 'kanto-ds';\nimport type { KtTour } from 'kanto-ds';\nimport type { KtColorPicker } from 'kanto-ds';\nimport type { KtTree } from 'kanto-ds';\nimport type { KtUserMenu } from 'kanto-ds';\nimport type { KtAccordion } from 'kanto-ds';\nimport type { KtOtpInput } from 'kanto-ds';\nimport type { KtCopyButton } from 'kanto-ds';\nimport type { KtAvatarGroup } from 'kanto-ds';\nimport type { KtDescriptionList } from 'kanto-ds';\nimport type { KtAppShell } from 'kanto-ds';\nimport type { KtChatMessage } from 'kanto-ds';\nimport type { KtPromptInput } from 'kanto-ds';\nimport type { KtFooter } from 'kanto-ds';\nimport type { KtToggleButton } from 'kanto-ds';\nimport type { KtToggleButtonGroup } from 'kanto-ds';\nimport type { KtAlert } from 'kanto-ds';\nimport type { KtEmptyState } from 'kanto-ds';\nimport type { KtProgressBar } from 'kanto-ds';\nimport type { KtSkeleton } from 'kanto-ds';\nimport type { KtToast } from 'kanto-ds';\nimport type { KtToastContainer } from 'kanto-ds';\nimport type { KtTooltip } from 'kanto-ds';\nimport type { KtCollapsible } from 'kanto-ds';\nimport type { KtConfirmDialog } from 'kanto-ds';\nimport type { KtDropdown } from 'kanto-ds';\nimport type { KtModal } from 'kanto-ds';\nimport type { KtCommandPalette } from 'kanto-ds';\nimport type { KtSidePanel } from 'kanto-ds';\nimport type { KtChart } from 'kanto-ds';\nimport type { KtMeter } from 'kanto-ds';\nimport type { KtPagination } from 'kanto-ds';\nimport type { KtStat } from 'kanto-ds';\nimport type { KtTable } from 'kanto-ds';\nimport type { KtTimeline, KtTimelineItem } from 'kanto-ds';\n\n/**\n * True for any Kanto custom element.\n *\n * Pass it as `compilerOptions.isCustomElement` so the Vue compiler stops\n * trying to resolve `kt-*` tags as components.\n */\nexport function isKantoElement(tag: string): boolean {\n return tag.startsWith('kt-');\n}\n\n/** Every element's tag name, for anyone building their own predicate. */\nexport const KANTO_TAG_PREFIX = 'kt-';\n\n/**\n * What a Kanto element accepts in a template: its own properties, plus the\n * attributes and listeners any element takes.\n */\ntype KtProps<T> = Partial<T> &\n Record<`on${string}`, unknown> & { class?: unknown; style?: unknown };\n\ndeclare module 'vue' {\n interface GlobalComponents {\n 'kt-avatar': KtProps<KtAvatar>;\n 'kt-badge': KtProps<KtBadge>;\n 'kt-button': KtProps<KtButton>;\n 'kt-split-button': KtProps<KtSplitButton>;\n 'kt-card': KtProps<KtCard>;\n 'kt-code': KtProps<KtCode>;\n 'kt-icon': KtProps<KtIcon>;\n 'kt-kbd': KtProps<KtKbd>;\n 'kt-drag-drop': KtProps<KtDragDrop>;\n 'kt-form': KtProps<KtForm>;\n 'kt-input': KtProps<KtInput>;\n 'kt-input-menu': KtProps<KtInputMenu>;\n 'kt-multi-select': KtProps<KtMultiSelect>;\n 'kt-label-input': KtProps<KtLabelInput>;\n 'kt-select': KtProps<KtSelect>;\n 'kt-checkbox': KtProps<KtCheckbox>;\n 'kt-calendar': KtProps<KtCalendar>;\n 'kt-date-input': KtProps<KtDateInput>;\n 'kt-date-picker': KtProps<KtDatePicker>;\n 'kt-time-input': KtProps<KtTimeInput>;\n 'kt-radio-group': KtProps<KtRadioGroup>;\n 'kt-radio': KtProps<KtRadio>;\n 'kt-textarea': KtProps<KtTextarea>;\n 'kt-slider': KtProps<KtSlider>;\n 'kt-number-input': KtProps<KtNumberInput>;\n 'kt-steps': KtProps<KtSteps>;\n 'kt-toggle': KtProps<KtToggle>;\n 'kt-breadcrumb': KtProps<KtBreadcrumb>;\n 'kt-page-header': KtProps<KtPageHeader>;\n 'kt-segmented-control': KtProps<KtSegmentedControl>;\n 'kt-sub-menu-navigation': KtProps<KtSubMenuNavigation>;\n 'kt-tabs': KtProps<KtTabs>;\n 'kt-header': KtProps<KtHeader>;\n 'kt-empty-page': KtProps<KtEmptyPage>;\n 'kt-settings-section': KtProps<KtSettingsSection>;\n 'kt-newsletter': KtProps<KtNewsletter>;\n 'kt-blog-post': KtProps<KtBlogPost>;\n 'kt-post-grid': KtProps<KtPostGrid>;\n 'kt-faq': KtProps<KtFaq>;\n 'kt-logo-cloud': KtProps<KtLogoCloud>;\n 'kt-testimonials': KtProps<KtTestimonials>;\n 'kt-pricing-table': KtProps<KtPricingTable>;\n 'kt-cta': KtProps<KtCta>;\n 'kt-feature-grid': KtProps<KtFeatureGrid>;\n 'kt-hero': KtProps<KtHero>;\n 'kt-error-page': KtProps<KtErrorPage>;\n 'kt-auth-form': KtProps<KtAuthForm>;\n 'kt-tour': KtProps<KtTour>;\n 'kt-color-picker': KtProps<KtColorPicker>;\n 'kt-tree': KtProps<KtTree>;\n 'kt-user-menu': KtProps<KtUserMenu>;\n 'kt-accordion': KtProps<KtAccordion>;\n 'kt-otp-input': KtProps<KtOtpInput>;\n 'kt-copy-button': KtProps<KtCopyButton>;\n 'kt-avatar-group': KtProps<KtAvatarGroup>;\n 'kt-description-list': KtProps<KtDescriptionList>;\n 'kt-app-shell': KtProps<KtAppShell>;\n 'kt-chat-message': KtProps<KtChatMessage>;\n 'kt-prompt-input': KtProps<KtPromptInput>;\n 'kt-footer': KtProps<KtFooter>;\n 'kt-toggle-button': KtProps<KtToggleButton>;\n 'kt-toggle-button-group': KtProps<KtToggleButtonGroup>;\n 'kt-alert': KtProps<KtAlert>;\n 'kt-empty-state': KtProps<KtEmptyState>;\n 'kt-progress-bar': KtProps<KtProgressBar>;\n 'kt-skeleton': KtProps<KtSkeleton>;\n 'kt-toast': KtProps<KtToast>;\n 'kt-toast-container': KtProps<KtToastContainer>;\n 'kt-tooltip': KtProps<KtTooltip>;\n 'kt-collapsible': KtProps<KtCollapsible>;\n 'kt-confirm-dialog': KtProps<KtConfirmDialog>;\n 'kt-dropdown': KtProps<KtDropdown>;\n 'kt-modal': KtProps<KtModal>;\n 'kt-command-palette': KtProps<KtCommandPalette>;\n 'kt-side-panel': KtProps<KtSidePanel>;\n 'kt-chart': KtProps<KtChart>;\n 'kt-meter': KtProps<KtMeter>;\n 'kt-pagination': KtProps<KtPagination>;\n 'kt-stat': KtProps<KtStat>;\n 'kt-table': KtProps<KtTable>;\n 'kt-timeline': KtProps<KtTimeline>;\n 'kt-timeline-item': KtProps<KtTimelineItem>;\n }\n}\n\n/**\n * A no-op plugin, for apps that would rather write `app.use(kanto)` than a\n * bare side-effect import. Importing this module already registers every\n * element; this only makes that visible in `main.ts`.\n */\nexport const kanto: Plugin = {\n install() {\n /* the elements register themselves on import */\n },\n};\n\nexport { toaster } from '../components/feedback/kt-toast-container/toaster.js';\n"],"names":["isKantoElement","tag","KANTO_TAG_PREFIX","kanto"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HO,SAASA,GAAeC,GAAsB;AACnD,SAAOA,EAAI,WAAW,KAAK;AAC7B;AAGO,MAAMC,KAAmB,OAqGnBC,KAAgB;AAAA,EAC3B,UAAU;AAAA,EAEV;AACF;"}
|