@bevelo/web 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/dist/accordion-BHEpaGhP.d.ts +1235 -0
- package/dist/accordion-DDINsWpq.d.cts +1235 -0
- package/dist/agent-Dk4QlAh4.d.cts +2 -0
- package/dist/agent-Dk4QlAh4.d.ts +2 -0
- package/dist/agent.cjs +74 -0
- package/dist/agent.d.cts +2 -0
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +1 -0
- package/dist/async-options-C6HO2Hbf.d.cts +54 -0
- package/dist/async-options-C6HO2Hbf.d.ts +54 -0
- package/dist/async-options.cjs +76 -0
- package/dist/async-options.d.cts +2 -0
- package/dist/async-options.d.ts +2 -0
- package/dist/async-options.js +75 -0
- package/dist/button-DWhsleFN.d.cts +11 -0
- package/dist/button-pTyhLVh_.d.ts +11 -0
- package/dist/element-AZmC9W03.d.ts +90 -0
- package/dist/element-A_kpB2H4.js +912 -0
- package/dist/element-B0AU0EJL.cjs +983 -0
- package/dist/element-BjYddqNv.d.cts +90 -0
- package/dist/elements/accordion.cjs +49 -0
- package/dist/elements/accordion.d.cts +2 -0
- package/dist/elements/accordion.d.ts +2 -0
- package/dist/elements/accordion.js +48 -0
- package/dist/elements/alert-dialog.cjs +29 -0
- package/dist/elements/alert-dialog.d.cts +2 -0
- package/dist/elements/alert-dialog.d.ts +2 -0
- package/dist/elements/alert-dialog.js +26 -0
- package/dist/elements/alert.cjs +25 -0
- package/dist/elements/alert.d.cts +2 -0
- package/dist/elements/alert.d.ts +2 -0
- package/dist/elements/alert.js +24 -0
- package/dist/elements/aspect-ratio.cjs +10 -0
- package/dist/elements/aspect-ratio.d.cts +2 -0
- package/dist/elements/aspect-ratio.d.ts +2 -0
- package/dist/elements/aspect-ratio.js +9 -0
- package/dist/elements/autocomplete.cjs +233 -0
- package/dist/elements/autocomplete.d.cts +2 -0
- package/dist/elements/autocomplete.d.ts +2 -0
- package/dist/elements/autocomplete.js +232 -0
- package/dist/elements/avatar.cjs +23 -0
- package/dist/elements/avatar.d.cts +2 -0
- package/dist/elements/avatar.d.ts +2 -0
- package/dist/elements/avatar.js +22 -0
- package/dist/elements/badge.cjs +13 -0
- package/dist/elements/badge.d.cts +2 -0
- package/dist/elements/badge.d.ts +2 -0
- package/dist/elements/badge.js +12 -0
- package/dist/elements/breadcrumb.cjs +18 -0
- package/dist/elements/breadcrumb.d.cts +2 -0
- package/dist/elements/breadcrumb.d.ts +2 -0
- package/dist/elements/breadcrumb.js +17 -0
- package/dist/elements/button.cjs +21 -0
- package/dist/elements/button.d.cts +2 -0
- package/dist/elements/button.d.ts +2 -0
- package/dist/elements/button.js +20 -0
- package/dist/elements/calendar.cjs +380 -0
- package/dist/elements/calendar.d.cts +2 -0
- package/dist/elements/calendar.d.ts +2 -0
- package/dist/elements/calendar.js +379 -0
- package/dist/elements/card.cjs +31 -0
- package/dist/elements/card.d.cts +2 -0
- package/dist/elements/card.d.ts +2 -0
- package/dist/elements/card.js +30 -0
- package/dist/elements/carousel.cjs +190 -0
- package/dist/elements/carousel.d.cts +2 -0
- package/dist/elements/carousel.d.ts +2 -0
- package/dist/elements/carousel.js +189 -0
- package/dist/elements/checkbox-group.cjs +88 -0
- package/dist/elements/checkbox-group.d.cts +2 -0
- package/dist/elements/checkbox-group.d.ts +2 -0
- package/dist/elements/checkbox-group.js +87 -0
- package/dist/elements/checkbox.cjs +32 -0
- package/dist/elements/checkbox.d.cts +2 -0
- package/dist/elements/checkbox.d.ts +2 -0
- package/dist/elements/checkbox.js +31 -0
- package/dist/elements/collapsible.cjs +24 -0
- package/dist/elements/collapsible.d.cts +2 -0
- package/dist/elements/collapsible.d.ts +2 -0
- package/dist/elements/collapsible.js +23 -0
- package/dist/elements/color-picker.cjs +114 -0
- package/dist/elements/color-picker.d.cts +2 -0
- package/dist/elements/color-picker.d.ts +2 -0
- package/dist/elements/color-picker.js +113 -0
- package/dist/elements/combobox.cjs +443 -0
- package/dist/elements/combobox.d.cts +2 -0
- package/dist/elements/combobox.d.ts +2 -0
- package/dist/elements/combobox.js +441 -0
- package/dist/elements/command.cjs +58 -0
- package/dist/elements/command.d.cts +2 -0
- package/dist/elements/command.d.ts +2 -0
- package/dist/elements/command.js +57 -0
- package/dist/elements/context-menu.cjs +62 -0
- package/dist/elements/context-menu.d.cts +2 -0
- package/dist/elements/context-menu.d.ts +2 -0
- package/dist/elements/context-menu.js +61 -0
- package/dist/elements/date-input.cjs +203 -0
- package/dist/elements/date-input.d.cts +2 -0
- package/dist/elements/date-input.d.ts +2 -0
- package/dist/elements/date-input.js +202 -0
- package/dist/elements/date-picker.cjs +445 -0
- package/dist/elements/date-picker.d.cts +2 -0
- package/dist/elements/date-picker.d.ts +2 -0
- package/dist/elements/date-picker.js +444 -0
- package/dist/elements/dialog.cjs +47 -0
- package/dist/elements/dialog.d.cts +2 -0
- package/dist/elements/dialog.d.ts +2 -0
- package/dist/elements/dialog.js +43 -0
- package/dist/elements/direction.cjs +10 -0
- package/dist/elements/direction.d.cts +2 -0
- package/dist/elements/direction.d.ts +2 -0
- package/dist/elements/direction.js +9 -0
- package/dist/elements/drawer.cjs +40 -0
- package/dist/elements/drawer.d.cts +2 -0
- package/dist/elements/drawer.d.ts +2 -0
- package/dist/elements/drawer.js +37 -0
- package/dist/elements/empty-state.cjs +24 -0
- package/dist/elements/empty-state.d.cts +2 -0
- package/dist/elements/empty-state.d.ts +2 -0
- package/dist/elements/empty-state.js +23 -0
- package/dist/elements/error-state.cjs +29 -0
- package/dist/elements/error-state.d.cts +2 -0
- package/dist/elements/error-state.d.ts +2 -0
- package/dist/elements/error-state.js +28 -0
- package/dist/elements/field.cjs +75 -0
- package/dist/elements/field.d.cts +2 -0
- package/dist/elements/field.d.ts +2 -0
- package/dist/elements/field.js +74 -0
- package/dist/elements/file-input.cjs +32 -0
- package/dist/elements/file-input.d.cts +2 -0
- package/dist/elements/file-input.d.ts +2 -0
- package/dist/elements/file-input.js +31 -0
- package/dist/elements/hover-card.cjs +16 -0
- package/dist/elements/hover-card.d.cts +2 -0
- package/dist/elements/hover-card.d.ts +2 -0
- package/dist/elements/hover-card.js +15 -0
- package/dist/elements/icon-button.cjs +10 -0
- package/dist/elements/icon-button.d.cts +2 -0
- package/dist/elements/icon-button.d.ts +2 -0
- package/dist/elements/icon-button.js +9 -0
- package/dist/elements/icon.cjs +78 -0
- package/dist/elements/icon.d.cts +2 -0
- package/dist/elements/icon.d.ts +2 -0
- package/dist/elements/icon.js +77 -0
- package/dist/elements/image-cropper.cjs +21 -0
- package/dist/elements/image-cropper.d.cts +2 -0
- package/dist/elements/image-cropper.d.ts +2 -0
- package/dist/elements/image-cropper.js +20 -0
- package/dist/elements/image.cjs +14 -0
- package/dist/elements/image.d.cts +2 -0
- package/dist/elements/image.d.ts +2 -0
- package/dist/elements/image.js +13 -0
- package/dist/elements/inline-command.cjs +257 -0
- package/dist/elements/inline-command.d.cts +2 -0
- package/dist/elements/inline-command.d.ts +2 -0
- package/dist/elements/inline-command.js +256 -0
- package/dist/elements/inline-trigger-menu.cjs +148 -0
- package/dist/elements/inline-trigger-menu.d.cts +2 -0
- package/dist/elements/inline-trigger-menu.d.ts +2 -0
- package/dist/elements/inline-trigger-menu.js +147 -0
- package/dist/elements/input-group.cjs +32 -0
- package/dist/elements/input-group.d.cts +2 -0
- package/dist/elements/input-group.d.ts +2 -0
- package/dist/elements/input-group.js +31 -0
- package/dist/elements/input.cjs +36 -0
- package/dist/elements/input.d.cts +2 -0
- package/dist/elements/input.d.ts +2 -0
- package/dist/elements/input.js +35 -0
- package/dist/elements/item.cjs +85 -0
- package/dist/elements/item.d.cts +2 -0
- package/dist/elements/item.d.ts +2 -0
- package/dist/elements/item.js +84 -0
- package/dist/elements/kbd.cjs +21 -0
- package/dist/elements/kbd.d.cts +2 -0
- package/dist/elements/kbd.d.ts +2 -0
- package/dist/elements/kbd.js +20 -0
- package/dist/elements/label.cjs +13 -0
- package/dist/elements/label.d.cts +2 -0
- package/dist/elements/label.d.ts +2 -0
- package/dist/elements/label.js +12 -0
- package/dist/elements/listbox.cjs +57 -0
- package/dist/elements/listbox.d.cts +2 -0
- package/dist/elements/listbox.d.ts +2 -0
- package/dist/elements/listbox.js +56 -0
- package/dist/elements/loader.cjs +13 -0
- package/dist/elements/loader.d.cts +2 -0
- package/dist/elements/loader.d.ts +2 -0
- package/dist/elements/loader.js +12 -0
- package/dist/elements/mention-menu.cjs +43 -0
- package/dist/elements/mention-menu.d.cts +2 -0
- package/dist/elements/mention-menu.d.ts +2 -0
- package/dist/elements/mention-menu.js +42 -0
- package/dist/elements/menu.cjs +83 -0
- package/dist/elements/menu.d.cts +2 -0
- package/dist/elements/menu.d.ts +2 -0
- package/dist/elements/menu.js +82 -0
- package/dist/elements/menubar.cjs +15 -0
- package/dist/elements/menubar.d.cts +2 -0
- package/dist/elements/menubar.d.ts +2 -0
- package/dist/elements/menubar.js +14 -0
- package/dist/elements/meter.cjs +36 -0
- package/dist/elements/meter.d.cts +2 -0
- package/dist/elements/meter.d.ts +2 -0
- package/dist/elements/meter.js +35 -0
- package/dist/elements/native-select.cjs +44 -0
- package/dist/elements/native-select.d.cts +2 -0
- package/dist/elements/native-select.d.ts +2 -0
- package/dist/elements/native-select.js +43 -0
- package/dist/elements/navigation-menu.cjs +28 -0
- package/dist/elements/navigation-menu.d.cts +2 -0
- package/dist/elements/navigation-menu.d.ts +2 -0
- package/dist/elements/navigation-menu.js +27 -0
- package/dist/elements/number-input.cjs +58 -0
- package/dist/elements/number-input.d.cts +2 -0
- package/dist/elements/number-input.d.ts +2 -0
- package/dist/elements/number-input.js +57 -0
- package/dist/elements/otp-input.cjs +25 -0
- package/dist/elements/otp-input.d.cts +2 -0
- package/dist/elements/otp-input.d.ts +2 -0
- package/dist/elements/otp-input.js +24 -0
- package/dist/elements/pagination.cjs +77 -0
- package/dist/elements/pagination.d.cts +2 -0
- package/dist/elements/pagination.d.ts +2 -0
- package/dist/elements/pagination.js +76 -0
- package/dist/elements/password-input.cjs +69 -0
- package/dist/elements/password-input.d.cts +2 -0
- package/dist/elements/password-input.d.ts +2 -0
- package/dist/elements/password-input.js +68 -0
- package/dist/elements/popover.cjs +49 -0
- package/dist/elements/popover.d.cts +2 -0
- package/dist/elements/popover.d.ts +2 -0
- package/dist/elements/popover.js +47 -0
- package/dist/elements/progress.cjs +38 -0
- package/dist/elements/progress.d.cts +2 -0
- package/dist/elements/progress.d.ts +2 -0
- package/dist/elements/progress.js +37 -0
- package/dist/elements/radio.cjs +29 -0
- package/dist/elements/radio.d.cts +2 -0
- package/dist/elements/radio.d.ts +2 -0
- package/dist/elements/radio.js +28 -0
- package/dist/elements/rating.cjs +54 -0
- package/dist/elements/rating.d.cts +2 -0
- package/dist/elements/rating.d.ts +2 -0
- package/dist/elements/rating.js +53 -0
- package/dist/elements/resizable.cjs +33 -0
- package/dist/elements/resizable.d.cts +2 -0
- package/dist/elements/resizable.d.ts +2 -0
- package/dist/elements/resizable.js +32 -0
- package/dist/elements/scroll-area.cjs +18 -0
- package/dist/elements/scroll-area.d.cts +2 -0
- package/dist/elements/scroll-area.d.ts +2 -0
- package/dist/elements/scroll-area.js +17 -0
- package/dist/elements/segmented-control.cjs +44 -0
- package/dist/elements/segmented-control.d.cts +2 -0
- package/dist/elements/segmented-control.d.ts +2 -0
- package/dist/elements/segmented-control.js +43 -0
- package/dist/elements/select.cjs +188 -0
- package/dist/elements/select.d.cts +2 -0
- package/dist/elements/select.d.ts +2 -0
- package/dist/elements/select.js +187 -0
- package/dist/elements/separator.cjs +15 -0
- package/dist/elements/separator.d.cts +2 -0
- package/dist/elements/separator.d.ts +2 -0
- package/dist/elements/separator.js +14 -0
- package/dist/elements/sheet.cjs +53 -0
- package/dist/elements/sheet.d.cts +2 -0
- package/dist/elements/sheet.d.ts +2 -0
- package/dist/elements/sheet.js +52 -0
- package/dist/elements/sidebar.cjs +15 -0
- package/dist/elements/sidebar.d.cts +2 -0
- package/dist/elements/sidebar.d.ts +2 -0
- package/dist/elements/sidebar.js +14 -0
- package/dist/elements/skeleton.cjs +16 -0
- package/dist/elements/skeleton.d.cts +2 -0
- package/dist/elements/skeleton.d.ts +2 -0
- package/dist/elements/skeleton.js +15 -0
- package/dist/elements/slider.cjs +41 -0
- package/dist/elements/slider.d.cts +2 -0
- package/dist/elements/slider.d.ts +2 -0
- package/dist/elements/slider.js +40 -0
- package/dist/elements/sortable-engine.cjs +20 -0
- package/dist/elements/sortable-engine.d.cts +2 -0
- package/dist/elements/sortable-engine.d.ts +2 -0
- package/dist/elements/sortable-engine.js +19 -0
- package/dist/elements/sortable.cjs +36 -0
- package/dist/elements/sortable.d.cts +2 -0
- package/dist/elements/sortable.d.ts +2 -0
- package/dist/elements/sortable.js +35 -0
- package/dist/elements/spinner.cjs +10 -0
- package/dist/elements/spinner.d.cts +2 -0
- package/dist/elements/spinner.d.ts +2 -0
- package/dist/elements/spinner.js +9 -0
- package/dist/elements/steps.cjs +18 -0
- package/dist/elements/steps.d.cts +2 -0
- package/dist/elements/steps.d.ts +2 -0
- package/dist/elements/steps.js +17 -0
- package/dist/elements/switch.cjs +31 -0
- package/dist/elements/switch.d.cts +2 -0
- package/dist/elements/switch.d.ts +2 -0
- package/dist/elements/switch.js +30 -0
- package/dist/elements/table.cjs +38 -0
- package/dist/elements/table.d.cts +2 -0
- package/dist/elements/table.d.ts +2 -0
- package/dist/elements/table.js +37 -0
- package/dist/elements/tabs.cjs +29 -0
- package/dist/elements/tabs.d.cts +2 -0
- package/dist/elements/tabs.d.ts +2 -0
- package/dist/elements/tabs.js +28 -0
- package/dist/elements/textarea.cjs +49 -0
- package/dist/elements/textarea.d.cts +2 -0
- package/dist/elements/textarea.d.ts +2 -0
- package/dist/elements/textarea.js +48 -0
- package/dist/elements/time-input.cjs +43 -0
- package/dist/elements/time-input.d.cts +2 -0
- package/dist/elements/time-input.d.ts +2 -0
- package/dist/elements/time-input.js +42 -0
- package/dist/elements/timeline.cjs +39 -0
- package/dist/elements/timeline.d.cts +2 -0
- package/dist/elements/timeline.d.ts +2 -0
- package/dist/elements/timeline.js +38 -0
- package/dist/elements/toast.cjs +147 -0
- package/dist/elements/toast.d.cts +2 -0
- package/dist/elements/toast.d.ts +2 -0
- package/dist/elements/toast.js +146 -0
- package/dist/elements/toggle-group.cjs +17 -0
- package/dist/elements/toggle-group.d.cts +2 -0
- package/dist/elements/toggle-group.d.ts +2 -0
- package/dist/elements/toggle-group.js +16 -0
- package/dist/elements/toggle.cjs +23 -0
- package/dist/elements/toggle.d.cts +2 -0
- package/dist/elements/toggle.d.ts +2 -0
- package/dist/elements/toggle.js +22 -0
- package/dist/elements/token-input.cjs +267 -0
- package/dist/elements/token-input.d.cts +2 -0
- package/dist/elements/token-input.d.ts +2 -0
- package/dist/elements/token-input.js +265 -0
- package/dist/elements/toolbar.cjs +24 -0
- package/dist/elements/toolbar.d.cts +2 -0
- package/dist/elements/toolbar.d.ts +2 -0
- package/dist/elements/toolbar.js +23 -0
- package/dist/elements/tooltip.cjs +32 -0
- package/dist/elements/tooltip.d.cts +2 -0
- package/dist/elements/tooltip.d.ts +2 -0
- package/dist/elements/tooltip.js +31 -0
- package/dist/elements/tree-grid.cjs +42 -0
- package/dist/elements/tree-grid.d.cts +2 -0
- package/dist/elements/tree-grid.d.ts +2 -0
- package/dist/elements/tree-grid.js +41 -0
- package/dist/elements/tree.cjs +207 -0
- package/dist/elements/tree.d.cts +2 -0
- package/dist/elements/tree.d.ts +2 -0
- package/dist/elements/tree.js +206 -0
- package/dist/elements/trigger-menu.cjs +73 -0
- package/dist/elements/trigger-menu.d.cts +2 -0
- package/dist/elements/trigger-menu.d.ts +2 -0
- package/dist/elements/trigger-menu.js +72 -0
- package/dist/elements/virtual-list.cjs +21 -0
- package/dist/elements/virtual-list.d.cts +2 -0
- package/dist/elements/virtual-list.d.ts +2 -0
- package/dist/elements/virtual-list.js +20 -0
- package/dist/elements/waterfall-chart.cjs +36 -0
- package/dist/elements/waterfall-chart.d.cts +2 -0
- package/dist/elements/waterfall-chart.d.ts +2 -0
- package/dist/elements/waterfall-chart.js +35 -0
- package/dist/elements/waterfall.cjs +208 -0
- package/dist/elements/waterfall.d.cts +2 -0
- package/dist/elements/waterfall.d.ts +2 -0
- package/dist/elements/waterfall.js +206 -0
- package/dist/elements.cjs +186 -0
- package/dist/elements.d.cts +7 -0
- package/dist/elements.d.ts +7 -0
- package/dist/elements.js +88 -0
- package/dist/extend-api-DLamM7QJ.js +6 -0
- package/dist/extend-api-wTGz6xg0.cjs +11 -0
- package/dist/field-api-BAVJ2Ztm.js +15 -0
- package/dist/field-api-yjAOncSd.cjs +20 -0
- package/dist/form-value-CqJthbtc.cjs +62 -0
- package/dist/form-value-D4MyFY4o.js +45 -0
- package/dist/gauge-Cr5XFhf6.cjs +42 -0
- package/dist/gauge-xb0MeE07.js +37 -0
- package/dist/icon-D7OCc5Fe.d.cts +30 -0
- package/dist/icon-D7OCc5Fe.d.ts +30 -0
- package/dist/icon-button-B2QVJEl2.d.cts +11 -0
- package/dist/icon-button-CQy_Q8LK.d.ts +11 -0
- package/dist/index-C0iJtc_P.d.cts +130 -0
- package/dist/index-C0iJtc_P.d.ts +130 -0
- package/dist/index.cjs +333 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +97 -0
- package/dist/inline-command-BGK8V4ma.d.cts +66 -0
- package/dist/inline-command-BGK8V4ma.d.ts +66 -0
- package/dist/inline-trigger-menu-DooCB7hg.d.cts +55 -0
- package/dist/inline-trigger-menu-DooCB7hg.d.ts +55 -0
- package/dist/list-rows-C_ZCW7lV.js +31 -0
- package/dist/list-rows-DNXin_ya.cjs +42 -0
- package/dist/overlay-controller-4OrjRvq_.js +105 -0
- package/dist/overlay-controller-CJnJ8Mr-.cjs +116 -0
- package/dist/overlay-parts-BoQyNZrP.js +179 -0
- package/dist/overlay-parts-CGtRTG02.cjs +190 -0
- package/dist/placement-CRXnqDJY.cjs +82 -0
- package/dist/placement-CbW3Uq6o.js +65 -0
- package/dist/preferences-Cl-4-bJ7.d.cts +7 -0
- package/dist/preferences-Cl-4-bJ7.d.ts +7 -0
- package/dist/preferences.cjs +42 -0
- package/dist/preferences.d.cts +2 -0
- package/dist/preferences.d.ts +2 -0
- package/dist/preferences.js +41 -0
- package/dist/query-B__zAm2h.d.cts +51 -0
- package/dist/query-B__zAm2h.d.ts +51 -0
- package/dist/query.cjs +194 -0
- package/dist/query.d.cts +2 -0
- package/dist/query.d.ts +2 -0
- package/dist/query.js +187 -0
- package/dist/runtime/index.cjs +14 -0
- package/dist/runtime/index.d.cts +2 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime-6l2k8zSj.cjs +279 -0
- package/dist/runtime-B9X73pHF.js +208 -0
- package/dist/sortable-board-strict-D2jlj0Qj.d.cts +44 -0
- package/dist/sortable-board-strict-D2jlj0Qj.d.ts +44 -0
- package/dist/sortable-board-strict.cjs +159 -0
- package/dist/sortable-board-strict.d.cts +2 -0
- package/dist/sortable-board-strict.d.ts +2 -0
- package/dist/sortable-board-strict.js +158 -0
- package/dist/virtual-list-strict-C_XVeekC.d.cts +44 -0
- package/dist/virtual-list-strict-C_XVeekC.d.ts +44 -0
- package/dist/virtual-list-strict.cjs +156 -0
- package/dist/virtual-list-strict.d.cts +2 -0
- package/dist/virtual-list-strict.d.ts +2 -0
- package/dist/virtual-list-strict.js +155 -0
- package/package.json +530 -3
- package/README.md +0 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
let _bevelo_core_primitives_empty_state = require("@bevelo/core/primitives/empty-state");
|
|
4
|
+
// src/elements/empty-state.ts
|
|
5
|
+
const UiEmptyStateElement = require_element.defineStrictElement(_bevelo_core_primitives_empty_state.emptyStatePrimitive, {
|
|
6
|
+
tag: "bevelo-empty-state",
|
|
7
|
+
events: {},
|
|
8
|
+
slots: {
|
|
9
|
+
icon: "icon",
|
|
10
|
+
action: "action"
|
|
11
|
+
},
|
|
12
|
+
compose: ({ part, slot, options }) => {
|
|
13
|
+
const title = typeof options.title === "string" ? options.title : "";
|
|
14
|
+
const description = typeof options.description === "string" ? options.description : "";
|
|
15
|
+
const children = [];
|
|
16
|
+
if (require_element.hasContent(options.icon)) children.push(part("icon", require_element.asChildren(options.icon)));
|
|
17
|
+
if (title !== "") children.push(part("title", [title]));
|
|
18
|
+
children.push(part("content", slot));
|
|
19
|
+
if (description !== "") children.push(part("description", [description]));
|
|
20
|
+
if (require_element.hasContent(options.action)) children.push(part("action", require_element.asChildren(options.action)));
|
|
21
|
+
return [part("root", children)];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
exports.UiEmptyStateElement = UiEmptyStateElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { a as hasContent, r as defineStrictElement, t as asChildren } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { emptyStatePrimitive } from "@bevelo/core/primitives/empty-state";
|
|
3
|
+
// src/elements/empty-state.ts
|
|
4
|
+
const UiEmptyStateElement = defineStrictElement(emptyStatePrimitive, {
|
|
5
|
+
tag: "bevelo-empty-state",
|
|
6
|
+
events: {},
|
|
7
|
+
slots: {
|
|
8
|
+
icon: "icon",
|
|
9
|
+
action: "action"
|
|
10
|
+
},
|
|
11
|
+
compose: ({ part, slot, options }) => {
|
|
12
|
+
const title = typeof options.title === "string" ? options.title : "";
|
|
13
|
+
const description = typeof options.description === "string" ? options.description : "";
|
|
14
|
+
const children = [];
|
|
15
|
+
if (hasContent(options.icon)) children.push(part("icon", asChildren(options.icon)));
|
|
16
|
+
if (title !== "") children.push(part("title", [title]));
|
|
17
|
+
children.push(part("content", slot));
|
|
18
|
+
if (description !== "") children.push(part("description", [description]));
|
|
19
|
+
if (hasContent(options.action)) children.push(part("action", asChildren(options.action)));
|
|
20
|
+
return [part("root", children)];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export { UiEmptyStateElement };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
let _bevelo_core_primitives_error_state = require("@bevelo/core/primitives/error-state");
|
|
4
|
+
// src/elements/error-state.ts
|
|
5
|
+
const UiErrorStateElement = require_element.defineStrictElement(_bevelo_core_primitives_error_state.errorStatePrimitive, {
|
|
6
|
+
tag: "bevelo-error-state",
|
|
7
|
+
events: { onRetry: "bevelo-retry" },
|
|
8
|
+
slots: {
|
|
9
|
+
icon: "icon",
|
|
10
|
+
action: "action"
|
|
11
|
+
},
|
|
12
|
+
compose: ({ part, slot, options, host }) => {
|
|
13
|
+
const title = typeof options.title === "string" ? options.title : "";
|
|
14
|
+
const description = typeof options.description === "string" ? options.description : "";
|
|
15
|
+
const retryLabel = typeof options.retryLabel === "string" ? options.retryLabel : "";
|
|
16
|
+
const showRetry = host?.hasAttribute("retry-label") === true;
|
|
17
|
+
const children = [];
|
|
18
|
+
if (require_element.hasContent(options.icon)) children.push(part("icon", require_element.asChildren(options.icon)));
|
|
19
|
+
if (title !== "") children.push(part("title", [title]));
|
|
20
|
+
children.push(part("content", slot));
|
|
21
|
+
if (description !== "") children.push(part("description", [description]));
|
|
22
|
+
if (showRetry || require_element.hasContent(options.action)) {
|
|
23
|
+
const retry = showRetry ? [part("retry", [retryLabel])] : [];
|
|
24
|
+
children.push(part("action", [...retry, ...require_element.asChildren(options.action)]));
|
|
25
|
+
}
|
|
26
|
+
return [part("root", children)];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
exports.UiErrorStateElement = UiErrorStateElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { a as hasContent, r as defineStrictElement, t as asChildren } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { errorStatePrimitive } from "@bevelo/core/primitives/error-state";
|
|
3
|
+
// src/elements/error-state.ts
|
|
4
|
+
const UiErrorStateElement = defineStrictElement(errorStatePrimitive, {
|
|
5
|
+
tag: "bevelo-error-state",
|
|
6
|
+
events: { onRetry: "bevelo-retry" },
|
|
7
|
+
slots: {
|
|
8
|
+
icon: "icon",
|
|
9
|
+
action: "action"
|
|
10
|
+
},
|
|
11
|
+
compose: ({ part, slot, options, host }) => {
|
|
12
|
+
const title = typeof options.title === "string" ? options.title : "";
|
|
13
|
+
const description = typeof options.description === "string" ? options.description : "";
|
|
14
|
+
const retryLabel = typeof options.retryLabel === "string" ? options.retryLabel : "";
|
|
15
|
+
const showRetry = host?.hasAttribute("retry-label") === true;
|
|
16
|
+
const children = [];
|
|
17
|
+
if (hasContent(options.icon)) children.push(part("icon", asChildren(options.icon)));
|
|
18
|
+
if (title !== "") children.push(part("title", [title]));
|
|
19
|
+
children.push(part("content", slot));
|
|
20
|
+
if (description !== "") children.push(part("description", [description]));
|
|
21
|
+
if (showRetry || hasContent(options.action)) {
|
|
22
|
+
const retry = showRetry ? [part("retry", [retryLabel])] : [];
|
|
23
|
+
children.push(part("action", [...retry, ...asChildren(options.action)]));
|
|
24
|
+
}
|
|
25
|
+
return [part("root", children)];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export { UiErrorStateElement };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
let _bevelo_core_primitives_field = require("@bevelo/core/primitives/field");
|
|
4
|
+
// src/elements/field.ts
|
|
5
|
+
function shown(state, text) {
|
|
6
|
+
return state.composed === true || text !== "";
|
|
7
|
+
}
|
|
8
|
+
/** The attributes this element wrote on each control, so a host's own value is never overwritten. */
|
|
9
|
+
const written = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
/**
|
|
11
|
+
* Wires the host's control (the light-DOM `[data-part="control"]`, else the
|
|
12
|
+
* first `input`, `select` or `textarea`) to the field: the id the caption's
|
|
13
|
+
* `for` names, the messages that describe it and the field's state. An
|
|
14
|
+
* attribute the host set itself is left alone.
|
|
15
|
+
*/
|
|
16
|
+
function wireControl(host, ids, state) {
|
|
17
|
+
const control = host.querySelector("[data-part=\"control\"]") ?? host.querySelector("input, select, textarea");
|
|
18
|
+
if (control === null) return;
|
|
19
|
+
require_element.writeControlledAttrs(control, {
|
|
20
|
+
id: ids.controlId(),
|
|
21
|
+
"aria-describedby": ids.describedBy() || void 0,
|
|
22
|
+
"aria-invalid": state.invalid === true ? "true" : void 0,
|
|
23
|
+
disabled: state.disabled === true ? "" : void 0,
|
|
24
|
+
required: state.required === true ? "" : void 0
|
|
25
|
+
}, written);
|
|
26
|
+
}
|
|
27
|
+
const UiFieldElement = require_element.defineStrictElement(_bevelo_core_primitives_field.fieldPrimitive, {
|
|
28
|
+
tag: "bevelo-field",
|
|
29
|
+
bindings: {
|
|
30
|
+
label: "text",
|
|
31
|
+
hint: "text",
|
|
32
|
+
error: "text",
|
|
33
|
+
required: "boolean",
|
|
34
|
+
disabled: "boolean",
|
|
35
|
+
invalid: "boolean",
|
|
36
|
+
valid: "boolean",
|
|
37
|
+
id: "text",
|
|
38
|
+
parts: "boolean"
|
|
39
|
+
},
|
|
40
|
+
events: {},
|
|
41
|
+
afterRender: (host, instance) => {
|
|
42
|
+
wireControl(host, instance.api, instance.get());
|
|
43
|
+
},
|
|
44
|
+
compose: ({ part, slot, instance, options, host }) => {
|
|
45
|
+
if (host !== void 0) require_element.provideField(host, instance, instance.api);
|
|
46
|
+
const state = instance.get();
|
|
47
|
+
const labelChildren = [state.label];
|
|
48
|
+
if (state.required === true) labelChildren.push({
|
|
49
|
+
tag: "span",
|
|
50
|
+
key: "required",
|
|
51
|
+
attrs: {
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
"data-required-marker": ""
|
|
54
|
+
},
|
|
55
|
+
children: ["*"]
|
|
56
|
+
});
|
|
57
|
+
const label = part("label", labelChildren);
|
|
58
|
+
const description = part("description", state.hint === "" ? [] : [state.hint]);
|
|
59
|
+
const error = part("error", state.error === "" ? [] : [state.error]);
|
|
60
|
+
const items = options.items;
|
|
61
|
+
const set = part("set", [
|
|
62
|
+
part("legend", [state.label]),
|
|
63
|
+
part("group", Array.isArray(items) ? [...items] : []),
|
|
64
|
+
...shown(state, state.hint) ? [description] : [],
|
|
65
|
+
...shown(state, state.error) ? [error] : []
|
|
66
|
+
]);
|
|
67
|
+
return [part("root", state.set === true ? [set] : [
|
|
68
|
+
...shown(state, state.label) ? [label] : [],
|
|
69
|
+
...slot,
|
|
70
|
+
...shown(state, state.hint) ? [description] : [],
|
|
71
|
+
...shown(state, state.error) ? [error] : []
|
|
72
|
+
])];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
exports.UiFieldElement = UiFieldElement;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { f as writeControlledAttrs, r as defineStrictElement, u as provideField } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { fieldPrimitive } from "@bevelo/core/primitives/field";
|
|
3
|
+
// src/elements/field.ts
|
|
4
|
+
function shown(state, text) {
|
|
5
|
+
return state.composed === true || text !== "";
|
|
6
|
+
}
|
|
7
|
+
/** The attributes this element wrote on each control, so a host's own value is never overwritten. */
|
|
8
|
+
const written = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Wires the host's control (the light-DOM `[data-part="control"]`, else the
|
|
11
|
+
* first `input`, `select` or `textarea`) to the field: the id the caption's
|
|
12
|
+
* `for` names, the messages that describe it and the field's state. An
|
|
13
|
+
* attribute the host set itself is left alone.
|
|
14
|
+
*/
|
|
15
|
+
function wireControl(host, ids, state) {
|
|
16
|
+
const control = host.querySelector("[data-part=\"control\"]") ?? host.querySelector("input, select, textarea");
|
|
17
|
+
if (control === null) return;
|
|
18
|
+
writeControlledAttrs(control, {
|
|
19
|
+
id: ids.controlId(),
|
|
20
|
+
"aria-describedby": ids.describedBy() || void 0,
|
|
21
|
+
"aria-invalid": state.invalid === true ? "true" : void 0,
|
|
22
|
+
disabled: state.disabled === true ? "" : void 0,
|
|
23
|
+
required: state.required === true ? "" : void 0
|
|
24
|
+
}, written);
|
|
25
|
+
}
|
|
26
|
+
const UiFieldElement = defineStrictElement(fieldPrimitive, {
|
|
27
|
+
tag: "bevelo-field",
|
|
28
|
+
bindings: {
|
|
29
|
+
label: "text",
|
|
30
|
+
hint: "text",
|
|
31
|
+
error: "text",
|
|
32
|
+
required: "boolean",
|
|
33
|
+
disabled: "boolean",
|
|
34
|
+
invalid: "boolean",
|
|
35
|
+
valid: "boolean",
|
|
36
|
+
id: "text",
|
|
37
|
+
parts: "boolean"
|
|
38
|
+
},
|
|
39
|
+
events: {},
|
|
40
|
+
afterRender: (host, instance) => {
|
|
41
|
+
wireControl(host, instance.api, instance.get());
|
|
42
|
+
},
|
|
43
|
+
compose: ({ part, slot, instance, options, host }) => {
|
|
44
|
+
if (host !== void 0) provideField(host, instance, instance.api);
|
|
45
|
+
const state = instance.get();
|
|
46
|
+
const labelChildren = [state.label];
|
|
47
|
+
if (state.required === true) labelChildren.push({
|
|
48
|
+
tag: "span",
|
|
49
|
+
key: "required",
|
|
50
|
+
attrs: {
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
"data-required-marker": ""
|
|
53
|
+
},
|
|
54
|
+
children: ["*"]
|
|
55
|
+
});
|
|
56
|
+
const label = part("label", labelChildren);
|
|
57
|
+
const description = part("description", state.hint === "" ? [] : [state.hint]);
|
|
58
|
+
const error = part("error", state.error === "" ? [] : [state.error]);
|
|
59
|
+
const items = options.items;
|
|
60
|
+
const set = part("set", [
|
|
61
|
+
part("legend", [state.label]),
|
|
62
|
+
part("group", Array.isArray(items) ? [...items] : []),
|
|
63
|
+
...shown(state, state.hint) ? [description] : [],
|
|
64
|
+
...shown(state, state.error) ? [error] : []
|
|
65
|
+
]);
|
|
66
|
+
return [part("root", state.set === true ? [set] : [
|
|
67
|
+
...shown(state, state.label) ? [label] : [],
|
|
68
|
+
...slot,
|
|
69
|
+
...shown(state, state.hint) ? [description] : [],
|
|
70
|
+
...shown(state, state.error) ? [error] : []
|
|
71
|
+
])];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export { UiFieldElement };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
const require_form_value = require("../form-value-CqJthbtc.cjs");
|
|
4
|
+
let _bevelo_core = require("@bevelo/core");
|
|
5
|
+
let _bevelo_core_primitives_file_input = require("@bevelo/core/primitives/file-input");
|
|
6
|
+
// src/elements/file-input.ts
|
|
7
|
+
const UiFileInputElement = require_element.defineStrictElement(_bevelo_core_primitives_file_input.fileInputPrimitive, {
|
|
8
|
+
tag: "bevelo-file-input",
|
|
9
|
+
form: {
|
|
10
|
+
...require_form_value.formField("value", "files"),
|
|
11
|
+
nativeValidity: false
|
|
12
|
+
},
|
|
13
|
+
events: {
|
|
14
|
+
onChange: "bevelo-change",
|
|
15
|
+
onReject: "bevelo-reject"
|
|
16
|
+
},
|
|
17
|
+
compose: ({ part, instance, options }) => {
|
|
18
|
+
const rows = (instance.get().files ?? []).map((file, index) => part("input-item", [
|
|
19
|
+
part("file-name", [file.name], {}, { index }),
|
|
20
|
+
part("file-size", [(0, _bevelo_core.formatFileSize)(file.size)], {}, { index }),
|
|
21
|
+
part("input-item-remove", ["Remove"], {}, { index })
|
|
22
|
+
], { key: `${index}:${file.name}` }, { index }));
|
|
23
|
+
const picker = options.multiple === true || options.directory === true ? "Choose files" : "Choose file";
|
|
24
|
+
return [part("root", [
|
|
25
|
+
part("input-input"),
|
|
26
|
+
part("input-trigger", [picker]),
|
|
27
|
+
part("input-dropzone", ["Drop files here"]),
|
|
28
|
+
part("input-list", rows)
|
|
29
|
+
])];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
exports.UiFileInputElement = UiFileInputElement;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { r as defineStrictElement } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { n as formField } from "../form-value-D4MyFY4o.js";
|
|
3
|
+
import { formatFileSize } from "@bevelo/core";
|
|
4
|
+
import { fileInputPrimitive } from "@bevelo/core/primitives/file-input";
|
|
5
|
+
// src/elements/file-input.ts
|
|
6
|
+
const UiFileInputElement = defineStrictElement(fileInputPrimitive, {
|
|
7
|
+
tag: "bevelo-file-input",
|
|
8
|
+
form: {
|
|
9
|
+
...formField("value", "files"),
|
|
10
|
+
nativeValidity: false
|
|
11
|
+
},
|
|
12
|
+
events: {
|
|
13
|
+
onChange: "bevelo-change",
|
|
14
|
+
onReject: "bevelo-reject"
|
|
15
|
+
},
|
|
16
|
+
compose: ({ part, instance, options }) => {
|
|
17
|
+
const rows = (instance.get().files ?? []).map((file, index) => part("input-item", [
|
|
18
|
+
part("file-name", [file.name], {}, { index }),
|
|
19
|
+
part("file-size", [formatFileSize(file.size)], {}, { index }),
|
|
20
|
+
part("input-item-remove", ["Remove"], {}, { index })
|
|
21
|
+
], { key: `${index}:${file.name}` }, { index }));
|
|
22
|
+
const picker = options.multiple === true || options.directory === true ? "Choose files" : "Choose file";
|
|
23
|
+
return [part("root", [
|
|
24
|
+
part("input-input"),
|
|
25
|
+
part("input-trigger", [picker]),
|
|
26
|
+
part("input-dropzone", ["Drop files here"]),
|
|
27
|
+
part("input-list", rows)
|
|
28
|
+
])];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export { UiFileInputElement };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
let _bevelo_dom = require("@bevelo/dom");
|
|
4
|
+
let _bevelo_core_primitives_hover_card = require("@bevelo/core/primitives/hover-card");
|
|
5
|
+
// src/elements/hover-card.ts
|
|
6
|
+
const UiHoverCardElement = require_element.defineStrictElement(_bevelo_core_primitives_hover_card.hoverCardPrimitive, {
|
|
7
|
+
tag: "bevelo-hover-card",
|
|
8
|
+
events: { onOpenChange: "bevelo-open-change" },
|
|
9
|
+
extraOptions: { canHover: _bevelo_dom.hoverCapability },
|
|
10
|
+
properties: ["container"],
|
|
11
|
+
compose: ({ part, slot, instance }) => {
|
|
12
|
+
const showing = instance.get().showing === true;
|
|
13
|
+
return [require_element.portalled(part("root", showing ? slot : [], { style: "position: fixed; left: 0; top: 0;" }))];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
exports.UiHoverCardElement = UiHoverCardElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { l as portalled, r as defineStrictElement } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { hoverCapability } from "@bevelo/dom";
|
|
3
|
+
import { hoverCardPrimitive } from "@bevelo/core/primitives/hover-card";
|
|
4
|
+
// src/elements/hover-card.ts
|
|
5
|
+
const UiHoverCardElement = defineStrictElement(hoverCardPrimitive, {
|
|
6
|
+
tag: "bevelo-hover-card",
|
|
7
|
+
events: { onOpenChange: "bevelo-open-change" },
|
|
8
|
+
extraOptions: { canHover: hoverCapability },
|
|
9
|
+
properties: ["container"],
|
|
10
|
+
compose: ({ part, slot, instance }) => {
|
|
11
|
+
const showing = instance.get().showing === true;
|
|
12
|
+
return [portalled(part("root", showing ? slot : [], { style: "position: fixed; left: 0; top: 0;" }))];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export { UiHoverCardElement };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
let _bevelo_core_primitives_icon_button = require("@bevelo/core/primitives/icon-button");
|
|
4
|
+
// src/elements/icon-button.ts
|
|
5
|
+
const UiIconButtonElement = require_element.defineStrictElement(_bevelo_core_primitives_icon_button.iconButtonPrimitive, {
|
|
6
|
+
tag: "bevelo-icon-button",
|
|
7
|
+
events: { onClick: "bevelo-click" },
|
|
8
|
+
compose: ({ part, slot }) => [part("root", [part("host", [part("button", [part("content", slot)])])])]
|
|
9
|
+
});
|
|
10
|
+
exports.UiIconButtonElement = UiIconButtonElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { r as defineStrictElement } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { iconButtonPrimitive } from "@bevelo/core/primitives/icon-button";
|
|
3
|
+
// src/elements/icon-button.ts
|
|
4
|
+
const UiIconButtonElement = defineStrictElement(iconButtonPrimitive, {
|
|
5
|
+
tag: "bevelo-icon-button",
|
|
6
|
+
events: { onClick: "bevelo-click" },
|
|
7
|
+
compose: ({ part, slot }) => [part("root", [part("host", [part("button", [part("content", slot)])])])]
|
|
8
|
+
});
|
|
9
|
+
export { UiIconButtonElement };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../runtime-6l2k8zSj.cjs");
|
|
3
|
+
let _bevelo_core = require("@bevelo/core");
|
|
4
|
+
let _bevelo_icons = require("@bevelo/icons");
|
|
5
|
+
// src/elements/icon.ts
|
|
6
|
+
const TAG = "bevelo-icon";
|
|
7
|
+
const ATTRIBUTES = [
|
|
8
|
+
"name",
|
|
9
|
+
"size",
|
|
10
|
+
"stroke-width",
|
|
11
|
+
"label"
|
|
12
|
+
];
|
|
13
|
+
function markupFor(attributes) {
|
|
14
|
+
const name = attributes.name ?? "";
|
|
15
|
+
if (!(0, _bevelo_icons.hasIcon)(name)) return "";
|
|
16
|
+
const size = attributes.size === null || attributes.size === void 0 ? void 0 : Number(attributes.size);
|
|
17
|
+
const strokeWidth = attributes.strokeWidth === null || attributes.strokeWidth === void 0 ? void 0 : Number(attributes.strokeWidth);
|
|
18
|
+
return (0, _bevelo_core.toMarkup)((0, _bevelo_icons.icon)(name, {
|
|
19
|
+
...size === void 0 || Number.isNaN(size) ? {} : { size },
|
|
20
|
+
...strokeWidth === void 0 || Number.isNaN(strokeWidth) ? {} : { strokeWidth },
|
|
21
|
+
...attributes.label === null || attributes.label === void 0 ? {} : { label: attributes.label }
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
function escapeAttribute(value) {
|
|
25
|
+
return value.replaceAll("&", "&").replaceAll("\"", """);
|
|
26
|
+
}
|
|
27
|
+
var IconElement = class extends require_runtime.elementBase() {
|
|
28
|
+
static tag = TAG;
|
|
29
|
+
static observedAttributes = ATTRIBUTES;
|
|
30
|
+
/** The server render: the host with its attributes and the icon's SVG inside. */
|
|
31
|
+
static render(props = {}) {
|
|
32
|
+
const attributes = {
|
|
33
|
+
name: props.name ?? null,
|
|
34
|
+
size: props.size === void 0 ? null : String(props.size),
|
|
35
|
+
strokeWidth: props.strokeWidth === void 0 ? null : String(props.strokeWidth),
|
|
36
|
+
label: props.label ?? null
|
|
37
|
+
};
|
|
38
|
+
let out = "<" + TAG;
|
|
39
|
+
if (attributes.name !== null) out += ` name="${escapeAttribute(attributes.name)}"`;
|
|
40
|
+
if (attributes.size !== null) out += ` size="${attributes.size}"`;
|
|
41
|
+
if (attributes.strokeWidth !== null) out += ` stroke-width="${attributes.strokeWidth}"`;
|
|
42
|
+
if (attributes.label !== null) out += ` label="${escapeAttribute(attributes.label)}"`;
|
|
43
|
+
return out + ">" + markupFor(attributes) + "</bevelo-icon>";
|
|
44
|
+
}
|
|
45
|
+
get name() {
|
|
46
|
+
return this.getAttribute("name") ?? void 0;
|
|
47
|
+
}
|
|
48
|
+
set name(value) {
|
|
49
|
+
if (value === void 0) this.removeAttribute("name");
|
|
50
|
+
else this.setAttribute("name", value);
|
|
51
|
+
}
|
|
52
|
+
get label() {
|
|
53
|
+
return this.getAttribute("label") ?? void 0;
|
|
54
|
+
}
|
|
55
|
+
set label(value) {
|
|
56
|
+
if (value === void 0) this.removeAttribute("label");
|
|
57
|
+
else this.setAttribute("label", value);
|
|
58
|
+
}
|
|
59
|
+
connectedCallback() {
|
|
60
|
+
this.paint();
|
|
61
|
+
}
|
|
62
|
+
attributeChangedCallback() {
|
|
63
|
+
if (this.isConnected) this.paint();
|
|
64
|
+
}
|
|
65
|
+
paint() {
|
|
66
|
+
this.style.display = "inline-flex";
|
|
67
|
+
this.style.lineHeight = "0";
|
|
68
|
+
this.innerHTML = markupFor({
|
|
69
|
+
name: this.getAttribute("name"),
|
|
70
|
+
size: this.getAttribute("size"),
|
|
71
|
+
strokeWidth: this.getAttribute("stroke-width"),
|
|
72
|
+
label: this.getAttribute("label")
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const UiIconElement = IconElement;
|
|
77
|
+
if (require_runtime.hasElementRegistry()) require_runtime.registerElement(TAG, UiIconElement);
|
|
78
|
+
exports.UiIconElement = UiIconElement;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { c as hasElementRegistry, l as registerElement, s as elementBase } from "../runtime-B9X73pHF.js";
|
|
2
|
+
import { toMarkup } from "@bevelo/core";
|
|
3
|
+
import { hasIcon, icon } from "@bevelo/icons";
|
|
4
|
+
// src/elements/icon.ts
|
|
5
|
+
const TAG = "bevelo-icon";
|
|
6
|
+
const ATTRIBUTES = [
|
|
7
|
+
"name",
|
|
8
|
+
"size",
|
|
9
|
+
"stroke-width",
|
|
10
|
+
"label"
|
|
11
|
+
];
|
|
12
|
+
function markupFor(attributes) {
|
|
13
|
+
const name = attributes.name ?? "";
|
|
14
|
+
if (!hasIcon(name)) return "";
|
|
15
|
+
const size = attributes.size === null || attributes.size === void 0 ? void 0 : Number(attributes.size);
|
|
16
|
+
const strokeWidth = attributes.strokeWidth === null || attributes.strokeWidth === void 0 ? void 0 : Number(attributes.strokeWidth);
|
|
17
|
+
return toMarkup(icon(name, {
|
|
18
|
+
...size === void 0 || Number.isNaN(size) ? {} : { size },
|
|
19
|
+
...strokeWidth === void 0 || Number.isNaN(strokeWidth) ? {} : { strokeWidth },
|
|
20
|
+
...attributes.label === null || attributes.label === void 0 ? {} : { label: attributes.label }
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
function escapeAttribute(value) {
|
|
24
|
+
return value.replaceAll("&", "&").replaceAll("\"", """);
|
|
25
|
+
}
|
|
26
|
+
var IconElement = class extends elementBase() {
|
|
27
|
+
static tag = TAG;
|
|
28
|
+
static observedAttributes = ATTRIBUTES;
|
|
29
|
+
/** The server render: the host with its attributes and the icon's SVG inside. */
|
|
30
|
+
static render(props = {}) {
|
|
31
|
+
const attributes = {
|
|
32
|
+
name: props.name ?? null,
|
|
33
|
+
size: props.size === void 0 ? null : String(props.size),
|
|
34
|
+
strokeWidth: props.strokeWidth === void 0 ? null : String(props.strokeWidth),
|
|
35
|
+
label: props.label ?? null
|
|
36
|
+
};
|
|
37
|
+
let out = "<" + TAG;
|
|
38
|
+
if (attributes.name !== null) out += ` name="${escapeAttribute(attributes.name)}"`;
|
|
39
|
+
if (attributes.size !== null) out += ` size="${attributes.size}"`;
|
|
40
|
+
if (attributes.strokeWidth !== null) out += ` stroke-width="${attributes.strokeWidth}"`;
|
|
41
|
+
if (attributes.label !== null) out += ` label="${escapeAttribute(attributes.label)}"`;
|
|
42
|
+
return out + ">" + markupFor(attributes) + "</bevelo-icon>";
|
|
43
|
+
}
|
|
44
|
+
get name() {
|
|
45
|
+
return this.getAttribute("name") ?? void 0;
|
|
46
|
+
}
|
|
47
|
+
set name(value) {
|
|
48
|
+
if (value === void 0) this.removeAttribute("name");
|
|
49
|
+
else this.setAttribute("name", value);
|
|
50
|
+
}
|
|
51
|
+
get label() {
|
|
52
|
+
return this.getAttribute("label") ?? void 0;
|
|
53
|
+
}
|
|
54
|
+
set label(value) {
|
|
55
|
+
if (value === void 0) this.removeAttribute("label");
|
|
56
|
+
else this.setAttribute("label", value);
|
|
57
|
+
}
|
|
58
|
+
connectedCallback() {
|
|
59
|
+
this.paint();
|
|
60
|
+
}
|
|
61
|
+
attributeChangedCallback() {
|
|
62
|
+
if (this.isConnected) this.paint();
|
|
63
|
+
}
|
|
64
|
+
paint() {
|
|
65
|
+
this.style.display = "inline-flex";
|
|
66
|
+
this.style.lineHeight = "0";
|
|
67
|
+
this.innerHTML = markupFor({
|
|
68
|
+
name: this.getAttribute("name"),
|
|
69
|
+
size: this.getAttribute("size"),
|
|
70
|
+
strokeWidth: this.getAttribute("stroke-width"),
|
|
71
|
+
label: this.getAttribute("label")
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const UiIconElement = IconElement;
|
|
76
|
+
if (hasElementRegistry()) registerElement(TAG, UiIconElement);
|
|
77
|
+
export { UiIconElement };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_element = require("../element-B0AU0EJL.cjs");
|
|
3
|
+
let _bevelo_core_primitives_image_cropper = require("@bevelo/core/primitives/image-cropper");
|
|
4
|
+
// src/elements/image-cropper.ts
|
|
5
|
+
const UiImageCropperElement = require_element.defineStrictElement(_bevelo_core_primitives_image_cropper.imageCropperPrimitive, {
|
|
6
|
+
tag: "bevelo-image-cropper",
|
|
7
|
+
events: { onChange: "bevelo-change" },
|
|
8
|
+
compose: ({ part }) => {
|
|
9
|
+
const handles = Array.from({ length: _bevelo_core_primitives_image_cropper.IMAGE_CROPPER_HANDLE_COUNT }, (_, index) => part("handle", [], { key: `grip:${index}` }, { index }));
|
|
10
|
+
return [part("root", [
|
|
11
|
+
part("viewport", [part("image"), part("crop", [part("grid"), ...handles])]),
|
|
12
|
+
part("controls", [
|
|
13
|
+
part("zoom-out"),
|
|
14
|
+
part("zoom-slider"),
|
|
15
|
+
part("zoom-in")
|
|
16
|
+
]),
|
|
17
|
+
part("preview")
|
|
18
|
+
])];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
exports.UiImageCropperElement = UiImageCropperElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as defineStrictElement } from "../element-A_kpB2H4.js";
|
|
2
|
+
import { IMAGE_CROPPER_HANDLE_COUNT, imageCropperPrimitive } from "@bevelo/core/primitives/image-cropper";
|
|
3
|
+
// src/elements/image-cropper.ts
|
|
4
|
+
const UiImageCropperElement = defineStrictElement(imageCropperPrimitive, {
|
|
5
|
+
tag: "bevelo-image-cropper",
|
|
6
|
+
events: { onChange: "bevelo-change" },
|
|
7
|
+
compose: ({ part }) => {
|
|
8
|
+
const handles = Array.from({ length: IMAGE_CROPPER_HANDLE_COUNT }, (_, index) => part("handle", [], { key: `grip:${index}` }, { index }));
|
|
9
|
+
return [part("root", [
|
|
10
|
+
part("viewport", [part("image"), part("crop", [part("grid"), ...handles])]),
|
|
11
|
+
part("controls", [
|
|
12
|
+
part("zoom-out"),
|
|
13
|
+
part("zoom-slider"),
|
|
14
|
+
part("zoom-in")
|
|
15
|
+
]),
|
|
16
|
+
part("preview")
|
|
17
|
+
])];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export { UiImageCropperElement };
|