@threadlabs/looma 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3HMMDK27.js +2914 -0
- package/dist/chunk-3K45IWIJ.js +4733 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/declarative-generated.cjs +135 -0
- package/dist/declarative-generated.d.cts +10 -0
- package/dist/declarative-generated.d.ts +10 -0
- package/dist/declarative-generated.js +111 -0
- package/dist/declarative.cjs +2942 -0
- package/dist/declarative.d.cts +27 -0
- package/dist/declarative.d.ts +27 -0
- package/dist/declarative.js +13 -0
- package/dist/index.cjs +7478 -6457
- package/dist/index.d.cts +4 -58
- package/dist/index.d.ts +4 -58
- package/dist/index.js +15 -27
- package/dist/loader.cjs +7652 -0
- package/dist/loader.d.cts +4 -0
- package/dist/loader.d.ts +4 -0
- package/dist/loader.js +16 -0
- package/dist/valibot.cjs +31 -0
- package/dist/valibot.d.cts +10 -0
- package/dist/valibot.d.ts +1 -43
- package/dist/valibot.js +2 -0
- package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
- package/dist/validation-bxcou-l-.d.ts +58 -0
- package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
- package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
- package/editor/chunk-WI7ZA44X.js +2558 -0
- package/editor/extensions/index.d.ts +11 -2
- package/editor/extensions/index.js +9 -7
- package/editor/index.d.ts +1 -1
- package/editor/index.js +10 -8
- package/editor/ui.js +2 -2
- package/editor.css +32 -0
- package/layout/index.cjs +466 -400
- package/layout/index.d.cts +1 -2
- package/layout/index.d.ts +1 -2
- package/layout/index.js +471 -395
- package/package.json +14 -5
- package/vue/chunk-4DPYH3IT.js +3538 -0
- package/vue/editor/index.d.ts +17 -7
- package/vue/editor/index.js +53 -35
- package/vue/index.d.ts +48 -31
- package/vue/index.js +1 -1
- package/dist/chunk-24OTMNIU.js +0 -1617
- package/dist/chunk-D5WRORG6.js +0 -366
- package/dist/chunk-HNFCGIBP.js +0 -8
- package/dist/chunk-NB6DBRXQ.js +0 -323
- package/dist/chunk-OF57X5AR.js +0 -10
- package/dist/chunk-TL4FIE7X.js +0 -93
- package/dist/chunk-UL7UIUJZ.js +0 -20
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
- package/dist/cjs/events-TcQIzpNv.js +0 -19
- package/dist/cjs/icons-BAdjrnhS.js +0 -680
- package/dist/cjs/id-CYbKpaYr.js +0 -9
- package/dist/cjs/index-BHG9Rpil.js +0 -1602
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/looma.cjs.js +0 -25
- package/dist/cjs/manager-Ce25WRtl.js +0 -95
- package/dist/cjs/positioning-CCR6ifPj.js +0 -426
- package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
- package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
- package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
- package/dist/cjs/ui-badge.cjs.entry.js +0 -19
- package/dist/cjs/ui-button.cjs.entry.js +0 -75
- package/dist/cjs/ui-callout.cjs.entry.js +0 -27
- package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
- package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
- package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
- package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
- package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
- package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
- package/dist/cjs/ui-editable.cjs.entry.js +0 -100
- package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
- package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
- package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
- package/dist/cjs/ui-input.cjs.entry.js +0 -106
- package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
- package/dist/cjs/ui-menu.cjs.entry.js +0 -182
- package/dist/cjs/ui-popover.cjs.entry.js +0 -135
- package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
- package/dist/cjs/ui-radio.cjs.entry.js +0 -94
- package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
- package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
- package/dist/cjs/ui-select.cjs.entry.js +0 -108
- package/dist/cjs/ui-switch.cjs.entry.js +0 -74
- package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
- package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
- package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
- package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
- package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
- package/dist/cjs/ui-tree.cjs.entry.js +0 -500
- package/dist/collection/collection-manifest.json +0 -45
- package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
- package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
- package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
- package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
- package/dist/collection/components/ui-badge/ui-badge.css +0 -90
- package/dist/collection/components/ui-badge/ui-badge.js +0 -62
- package/dist/collection/components/ui-button/ui-button.css +0 -121
- package/dist/collection/components/ui-button/ui-button.js +0 -141
- package/dist/collection/components/ui-callout/ui-callout.css +0 -74
- package/dist/collection/components/ui-callout/ui-callout.js +0 -59
- package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
- package/dist/collection/components/ui-chip/ui-chip.css +0 -57
- package/dist/collection/components/ui-chip/ui-chip.js +0 -67
- package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
- package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
- package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
- package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
- package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
- package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
- package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
- package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
- package/dist/collection/components/ui-editable/ui-editable.css +0 -2
- package/dist/collection/components/ui-editable/ui-editable.js +0 -196
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
- package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
- package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
- package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
- package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
- package/dist/collection/components/ui-input/ui-input.css +0 -48
- package/dist/collection/components/ui-input/ui-input.js +0 -217
- package/dist/collection/components/ui-menu/ui-menu.css +0 -73
- package/dist/collection/components/ui-menu/ui-menu.js +0 -280
- package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
- package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
- package/dist/collection/components/ui-popover/ui-popover.css +0 -58
- package/dist/collection/components/ui-popover/ui-popover.js +0 -232
- package/dist/collection/components/ui-radio/ui-radio.css +0 -22
- package/dist/collection/components/ui-radio/ui-radio.js +0 -226
- package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
- package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
- package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
- package/dist/collection/components/ui-select/ui-select.css +0 -64
- package/dist/collection/components/ui-select/ui-select.js +0 -218
- package/dist/collection/components/ui-switch/ui-switch.css +0 -63
- package/dist/collection/components/ui-switch/ui-switch.js +0 -185
- package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
- package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
- package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
- package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
- package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
- package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
- package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
- package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
- package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
- package/dist/collection/components/ui-tree/ui-tree.css +0 -12
- package/dist/collection/components/ui-tree/ui-tree.js +0 -515
- package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
- package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
- package/dist/collection/field/combobox.js +0 -4
- package/dist/collection/field/editable.js +0 -1
- package/dist/collection/field/multi-combobox.js +0 -1
- package/dist/collection/field/valibot.js +0 -5
- package/dist/collection/field/validation.js +0 -62
- package/dist/collection/icons.js +0 -71
- package/dist/collection/input-modality.js +0 -24
- package/dist/collection/overlay/manager.js +0 -92
- package/dist/collection/overlay/positioning.js +0 -424
- package/dist/collection/utils/controlled-state.js +0 -4
- package/dist/collection/utils/drag-drop.js +0 -51
- package/dist/collection/utils/events.js +0 -13
- package/dist/collection/utils/id.js +0 -5
- package/dist/collection/utils/initials.js +0 -11
- package/dist/components/index.d.ts +0 -102
- package/dist/components/index.js +0 -1
- package/dist/components/p-6SWSrfmW.js +0 -1
- package/dist/components/p-B_DaIVEY.js +0 -1
- package/dist/components/p-Bh_1GxOD.js +0 -1
- package/dist/components/p-BnGhGgTH.js +0 -1
- package/dist/components/p-BzaB_bXo.js +0 -1
- package/dist/components/p-C-0syqXZ.js +0 -1
- package/dist/components/p-CoFximGM.js +0 -13
- package/dist/components/p-JwSoedEO.js +0 -1
- package/dist/components/p-Vc4ExHFc.js +0 -1
- package/dist/components/p-hgBUJRDa.js +0 -1
- package/dist/components/ui-affordance-scope.d.ts +0 -11
- package/dist/components/ui-affordance-scope.js +0 -1
- package/dist/components/ui-avatar-group.d.ts +0 -11
- package/dist/components/ui-avatar-group.js +0 -1
- package/dist/components/ui-avatar.d.ts +0 -11
- package/dist/components/ui-avatar.js +0 -1
- package/dist/components/ui-badge.d.ts +0 -11
- package/dist/components/ui-badge.js +0 -1
- package/dist/components/ui-button.d.ts +0 -11
- package/dist/components/ui-button.js +0 -1
- package/dist/components/ui-callout.d.ts +0 -11
- package/dist/components/ui-callout.js +0 -1
- package/dist/components/ui-checkbox.d.ts +0 -11
- package/dist/components/ui-checkbox.js +0 -1
- package/dist/components/ui-chip.d.ts +0 -11
- package/dist/components/ui-chip.js +0 -1
- package/dist/components/ui-combobox.d.ts +0 -11
- package/dist/components/ui-combobox.js +0 -1
- package/dist/components/ui-context-menu.d.ts +0 -11
- package/dist/components/ui-context-menu.js +0 -1
- package/dist/components/ui-dialog.d.ts +0 -11
- package/dist/components/ui-dialog.js +0 -1
- package/dist/components/ui-disclosure.d.ts +0 -11
- package/dist/components/ui-disclosure.js +0 -1
- package/dist/components/ui-editable.d.ts +0 -11
- package/dist/components/ui-editable.js +0 -1
- package/dist/components/ui-floating-action-button.d.ts +0 -11
- package/dist/components/ui-floating-action-button.js +0 -1
- package/dist/components/ui-form-field.d.ts +0 -11
- package/dist/components/ui-form-field.js +0 -1
- package/dist/components/ui-icon-button.d.ts +0 -11
- package/dist/components/ui-icon-button.js +0 -1
- package/dist/components/ui-input.d.ts +0 -11
- package/dist/components/ui-input.js +0 -1
- package/dist/components/ui-menu-item.d.ts +0 -11
- package/dist/components/ui-menu-item.js +0 -1
- package/dist/components/ui-menu.d.ts +0 -11
- package/dist/components/ui-menu.js +0 -1
- package/dist/components/ui-popover.d.ts +0 -11
- package/dist/components/ui-popover.js +0 -1
- package/dist/components/ui-radio-group.d.ts +0 -11
- package/dist/components/ui-radio-group.js +0 -1
- package/dist/components/ui-radio.d.ts +0 -11
- package/dist/components/ui-radio.js +0 -1
- package/dist/components/ui-search-result-row.d.ts +0 -11
- package/dist/components/ui-search-result-row.js +0 -1
- package/dist/components/ui-search-shell.d.ts +0 -11
- package/dist/components/ui-search-shell.js +0 -1
- package/dist/components/ui-select.d.ts +0 -11
- package/dist/components/ui-select.js +0 -1
- package/dist/components/ui-switch.d.ts +0 -11
- package/dist/components/ui-switch.js +0 -1
- package/dist/components/ui-tabs.d.ts +0 -11
- package/dist/components/ui-tabs.js +0 -1
- package/dist/components/ui-textarea.d.ts +0 -11
- package/dist/components/ui-textarea.js +0 -1
- package/dist/components/ui-toast-region.d.ts +0 -11
- package/dist/components/ui-toast-region.js +0 -1
- package/dist/components/ui-tooltip.d.ts +0 -11
- package/dist/components/ui-tooltip.js +0 -1
- package/dist/components/ui-top-bar.d.ts +0 -11
- package/dist/components/ui-top-bar.js +0 -1
- package/dist/components/ui-tree-item.d.ts +0 -11
- package/dist/components/ui-tree-item.js +0 -1
- package/dist/components/ui-tree.d.ts +0 -11
- package/dist/components/ui-tree.js +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
- package/dist/esm/events-JwSoedEO.js +0 -15
- package/dist/esm/icons-CoFximGM.js +0 -678
- package/dist/esm/id-hgBUJRDa.js +0 -7
- package/dist/esm/index-8BGiMGQ0.js +0 -1593
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/looma.js +0 -21
- package/dist/esm/manager-C-0syqXZ.js +0 -91
- package/dist/esm/positioning-ZOr-2PSe.js +0 -421
- package/dist/esm/ui-affordance-scope.entry.js +0 -41
- package/dist/esm/ui-avatar-group.entry.js +0 -41
- package/dist/esm/ui-avatar.entry.js +0 -48
- package/dist/esm/ui-badge.entry.js +0 -17
- package/dist/esm/ui-button.entry.js +0 -73
- package/dist/esm/ui-callout.entry.js +0 -25
- package/dist/esm/ui-checkbox.entry.js +0 -95
- package/dist/esm/ui-chip_2.entry.js +0 -255
- package/dist/esm/ui-combobox.entry.js +0 -706
- package/dist/esm/ui-context-menu.entry.js +0 -237
- package/dist/esm/ui-dialog.entry.js +0 -129
- package/dist/esm/ui-disclosure.entry.js +0 -110
- package/dist/esm/ui-editable.entry.js +0 -98
- package/dist/esm/ui-floating-action-button.entry.js +0 -18
- package/dist/esm/ui-form-field.entry.js +0 -112
- package/dist/esm/ui-icon-button.entry.js +0 -21
- package/dist/esm/ui-input.entry.js +0 -104
- package/dist/esm/ui-menu-item.entry.js +0 -17
- package/dist/esm/ui-menu.entry.js +0 -180
- package/dist/esm/ui-popover.entry.js +0 -133
- package/dist/esm/ui-radio-group.entry.js +0 -132
- package/dist/esm/ui-radio.entry.js +0 -92
- package/dist/esm/ui-search-result-row.entry.js +0 -45
- package/dist/esm/ui-search-shell.entry.js +0 -37
- package/dist/esm/ui-select.entry.js +0 -106
- package/dist/esm/ui-switch.entry.js +0 -72
- package/dist/esm/ui-tabs.entry.js +0 -116
- package/dist/esm/ui-textarea.entry.js +0 -108
- package/dist/esm/ui-toast-region.entry.js +0 -91
- package/dist/esm/ui-top-bar.entry.js +0 -41
- package/dist/esm/ui-tree-item.entry.js +0 -133
- package/dist/esm/ui-tree.entry.js +0 -498
- package/dist/index.cjs.js +0 -1
- package/dist/looma/index.esm.js +0 -0
- package/dist/looma/looma.esm.js +0 -1
- package/dist/looma/p-08f80207.entry.js +0 -1
- package/dist/looma/p-0b5b8d9e.entry.js +0 -1
- package/dist/looma/p-1249a806.entry.js +0 -1
- package/dist/looma/p-16e0669d.entry.js +0 -1
- package/dist/looma/p-1c00670f.entry.js +0 -1
- package/dist/looma/p-1c5a7522.entry.js +0 -1
- package/dist/looma/p-22842f8c.entry.js +0 -1
- package/dist/looma/p-2915d5c0.entry.js +0 -1
- package/dist/looma/p-3b2961a6.entry.js +0 -1
- package/dist/looma/p-3f60f4c8.entry.js +0 -1
- package/dist/looma/p-424d6719.entry.js +0 -1
- package/dist/looma/p-4caccfce.entry.js +0 -1
- package/dist/looma/p-5fdcee1d.entry.js +0 -1
- package/dist/looma/p-6d8b99ee.entry.js +0 -1
- package/dist/looma/p-6f20d470.entry.js +0 -1
- package/dist/looma/p-7c0b5364.entry.js +0 -1
- package/dist/looma/p-8BGiMGQ0.js +0 -2
- package/dist/looma/p-8bdd9495.entry.js +0 -1
- package/dist/looma/p-99116a72.entry.js +0 -1
- package/dist/looma/p-9cfbf722.entry.js +0 -1
- package/dist/looma/p-9d2662ca.entry.js +0 -1
- package/dist/looma/p-9ff2fa19.entry.js +0 -1
- package/dist/looma/p-BnGhGgTH.js +0 -1
- package/dist/looma/p-C-0syqXZ.js +0 -1
- package/dist/looma/p-CoFximGM.js +0 -13
- package/dist/looma/p-DQuL1Twl.js +0 -1
- package/dist/looma/p-JwSoedEO.js +0 -1
- package/dist/looma/p-ZOr-2PSe.js +0 -1
- package/dist/looma/p-a2dd4c6c.entry.js +0 -1
- package/dist/looma/p-add67e4c.entry.js +0 -1
- package/dist/looma/p-b6ede6bb.entry.js +0 -1
- package/dist/looma/p-b76e2111.entry.js +0 -1
- package/dist/looma/p-ca2a54fd.entry.js +0 -1
- package/dist/looma/p-d372b0db.entry.js +0 -1
- package/dist/looma/p-d4825822.entry.js +0 -1
- package/dist/looma/p-d56571a2.entry.js +0 -1
- package/dist/looma/p-d5c3954f.entry.js +0 -1
- package/dist/looma/p-e604e906.entry.js +0 -1
- package/dist/looma/p-f1f7c5cb.entry.js +0 -1
- package/dist/looma/p-hgBUJRDa.js +0 -1
- package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
- package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
- package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
- package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
- package/dist/types/components/ui-button/ui-button.d.ts +0 -13
- package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
- package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
- package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
- package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
- package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
- package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
- package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
- package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
- package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
- package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
- package/dist/types/components/ui-input/ui-input.d.ts +0 -19
- package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
- package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
- package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
- package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
- package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
- package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
- package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
- package/dist/types/components/ui-select/ui-select.d.ts +0 -20
- package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
- package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
- package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
- package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
- package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
- package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
- package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
- package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
- package/dist/types/components.d.ts +0 -1889
- package/dist/types/field/combobox.d.ts +0 -46
- package/dist/types/field/editable.d.ts +0 -5
- package/dist/types/field/multi-combobox.d.ts +0 -11
- package/dist/types/field/valibot.d.ts +0 -7
- package/dist/types/icons.d.ts +0 -53
- package/dist/types/input-modality.d.ts +0 -6
- package/dist/types/overlay/manager.d.ts +0 -17
- package/dist/types/overlay/positioning.d.ts +0 -74
- package/dist/types/stencil-public-runtime.d.ts +0 -1860
- package/dist/types/utils/controlled-state.d.ts +0 -4
- package/dist/types/utils/drag-drop.d.ts +0 -15
- package/dist/types/utils/events.d.ts +0 -4
- package/dist/types/utils/id.d.ts +0 -1
- package/dist/types/utils/initials.d.ts +0 -1
- package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
- package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
- package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
- package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
- package/dist/ui-button.entry-MNFBMNSX.js +0 -83
- package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
- package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
- package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
- package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
- package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
- package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
- package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
- package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
- package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
- package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
- package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
- package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
- package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
- package/dist/ui-menu.entry-D53RUJND.js +0 -192
- package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
- package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
- package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
- package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
- package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
- package/dist/ui-select.entry-GIDIAYRD.js +0 -117
- package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
- package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
- package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
- package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
- package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
- package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
- package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
- package/editor/chunk-64GLF274.js +0 -1271
- package/layout/index.css +0 -387
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/vue/chunk-ROMBQS2L.js +0 -352
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { createId } from "../../utils/id";
|
|
3
|
-
import { eventToTrigger, isActivationKey, dispatchDetail } from "../../utils/events";
|
|
4
|
-
import { controlledOrDefault, isControlled } from "../../utils/controlled-state";
|
|
5
|
-
export class UIDisclosure {
|
|
6
|
-
host;
|
|
7
|
-
/** Controlled open state. Omit it to use defaultOpen and local interaction state. */
|
|
8
|
-
open;
|
|
9
|
-
defaultOpen = false;
|
|
10
|
-
disabled = false;
|
|
11
|
-
internalOpen = false;
|
|
12
|
-
contentId = '';
|
|
13
|
-
trigger = null;
|
|
14
|
-
content = null;
|
|
15
|
-
syncFromProp() {
|
|
16
|
-
if (isControlled(this.open))
|
|
17
|
-
this.internalOpen = this.open;
|
|
18
|
-
}
|
|
19
|
-
syncState() {
|
|
20
|
-
if (this.trigger) {
|
|
21
|
-
this.trigger.setAttribute('aria-expanded', String(this.internalOpen));
|
|
22
|
-
}
|
|
23
|
-
if (this.content) {
|
|
24
|
-
this.content.hidden = !this.internalOpen;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
this.resolveParts();
|
|
29
|
-
this.internalOpen = controlledOrDefault(this.open, this.defaultOpen);
|
|
30
|
-
this.syncState();
|
|
31
|
-
this.trigger?.addEventListener('click', this.onTriggerClick);
|
|
32
|
-
this.trigger?.addEventListener('keydown', this.onTriggerKeydown);
|
|
33
|
-
}
|
|
34
|
-
disconnectedCallback() {
|
|
35
|
-
this.trigger?.removeEventListener('click', this.onTriggerClick);
|
|
36
|
-
this.trigger?.removeEventListener('keydown', this.onTriggerKeydown);
|
|
37
|
-
}
|
|
38
|
-
componentDidUpdate() {
|
|
39
|
-
this.syncState();
|
|
40
|
-
}
|
|
41
|
-
resolveParts() {
|
|
42
|
-
this.trigger =
|
|
43
|
-
this.host.querySelector('[data-ui-disclosure-trigger], button, [aria-controls]');
|
|
44
|
-
const controlsId = this.trigger?.getAttribute('aria-controls') ?? '';
|
|
45
|
-
if (controlsId) {
|
|
46
|
-
this.content = document.getElementById(controlsId);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
const children = Array.from(this.host.children);
|
|
50
|
-
this.content = children.find((c) => c !== this.trigger) ?? null;
|
|
51
|
-
}
|
|
52
|
-
if (this.trigger && this.content) {
|
|
53
|
-
if (!this.content.id) {
|
|
54
|
-
this.content.id = createId('disclosure-content');
|
|
55
|
-
}
|
|
56
|
-
this.trigger.setAttribute('aria-controls', this.content.id);
|
|
57
|
-
this.contentId = this.content.id;
|
|
58
|
-
}
|
|
59
|
-
if (this.trigger instanceof HTMLButtonElement) {
|
|
60
|
-
this.trigger.disabled = this.disabled;
|
|
61
|
-
}
|
|
62
|
-
else if (this.trigger) {
|
|
63
|
-
this.trigger.setAttribute('aria-disabled', String(this.disabled));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
setOpen(next, action) {
|
|
67
|
-
if (this.internalOpen === next)
|
|
68
|
-
return;
|
|
69
|
-
if (!isControlled(this.open))
|
|
70
|
-
this.internalOpen = next;
|
|
71
|
-
dispatchDetail(this.host, next ? 'open' : 'close', {
|
|
72
|
-
open: next,
|
|
73
|
-
reason: action.reason,
|
|
74
|
-
trigger: action.trigger,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
onTriggerClick = (e) => {
|
|
78
|
-
if (this.disabled) {
|
|
79
|
-
e.preventDefault();
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
this.setOpen(!this.internalOpen, { reason: 'action', trigger: eventToTrigger(e) });
|
|
83
|
-
};
|
|
84
|
-
onTriggerKeydown = (e) => {
|
|
85
|
-
if (this.disabled || !isActivationKey(e))
|
|
86
|
-
return;
|
|
87
|
-
e.preventDefault();
|
|
88
|
-
this.setOpen(!this.internalOpen, { reason: 'action', trigger: 'keyboard' });
|
|
89
|
-
};
|
|
90
|
-
render() {
|
|
91
|
-
return (h(Host, { key: '91d1df53268f18c8c15192fb66b67baa7053fe93' }, h("slot", { key: '578c99f8fd09415c5e63e9f6a860fe204471da2f' })));
|
|
92
|
-
}
|
|
93
|
-
static get is() { return "ui-disclosure"; }
|
|
94
|
-
static get encapsulation() { return "shadow"; }
|
|
95
|
-
static get originalStyleUrls() {
|
|
96
|
-
return {
|
|
97
|
-
"$": ["ui-disclosure.css"]
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
static get styleUrls() {
|
|
101
|
-
return {
|
|
102
|
-
"$": ["ui-disclosure.css"]
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
static get properties() {
|
|
106
|
-
return {
|
|
107
|
-
"open": {
|
|
108
|
-
"type": "boolean",
|
|
109
|
-
"mutable": false,
|
|
110
|
-
"complexType": {
|
|
111
|
-
"original": "boolean",
|
|
112
|
-
"resolved": "boolean",
|
|
113
|
-
"references": {}
|
|
114
|
-
},
|
|
115
|
-
"required": false,
|
|
116
|
-
"optional": true,
|
|
117
|
-
"docs": {
|
|
118
|
-
"tags": [],
|
|
119
|
-
"text": "Controlled open state. Omit it to use defaultOpen and local interaction state."
|
|
120
|
-
},
|
|
121
|
-
"getter": false,
|
|
122
|
-
"setter": false,
|
|
123
|
-
"reflect": false,
|
|
124
|
-
"attribute": "open"
|
|
125
|
-
},
|
|
126
|
-
"defaultOpen": {
|
|
127
|
-
"type": "boolean",
|
|
128
|
-
"mutable": false,
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "boolean",
|
|
131
|
-
"resolved": "boolean",
|
|
132
|
-
"references": {}
|
|
133
|
-
},
|
|
134
|
-
"required": false,
|
|
135
|
-
"optional": false,
|
|
136
|
-
"docs": {
|
|
137
|
-
"tags": [],
|
|
138
|
-
"text": ""
|
|
139
|
-
},
|
|
140
|
-
"getter": false,
|
|
141
|
-
"setter": false,
|
|
142
|
-
"reflect": false,
|
|
143
|
-
"attribute": "default-open",
|
|
144
|
-
"defaultValue": "false"
|
|
145
|
-
},
|
|
146
|
-
"disabled": {
|
|
147
|
-
"type": "boolean",
|
|
148
|
-
"mutable": false,
|
|
149
|
-
"complexType": {
|
|
150
|
-
"original": "boolean",
|
|
151
|
-
"resolved": "boolean",
|
|
152
|
-
"references": {}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": false,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": ""
|
|
159
|
-
},
|
|
160
|
-
"getter": false,
|
|
161
|
-
"setter": false,
|
|
162
|
-
"reflect": false,
|
|
163
|
-
"attribute": "disabled",
|
|
164
|
-
"defaultValue": "false"
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
static get states() {
|
|
169
|
-
return {
|
|
170
|
-
"internalOpen": {},
|
|
171
|
-
"contentId": {}
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
static get elementRef() { return "host"; }
|
|
175
|
-
static get watchers() {
|
|
176
|
-
return [{
|
|
177
|
-
"propName": "open",
|
|
178
|
-
"methodName": "syncFromProp"
|
|
179
|
-
}, {
|
|
180
|
-
"propName": "internalOpen",
|
|
181
|
-
"methodName": "syncState"
|
|
182
|
-
}];
|
|
183
|
-
}
|
|
184
|
-
}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { controlledOrDefault, isControlled } from "../../utils/controlled-state";
|
|
3
|
-
/** Swaps an explicit presentation trigger for a focused editing control. */
|
|
4
|
-
export class UIEditable {
|
|
5
|
-
host;
|
|
6
|
-
/** Controlled edit state. Omit it to use defaultEdit and local interaction state. */
|
|
7
|
-
edit;
|
|
8
|
-
defaultEdit = false;
|
|
9
|
-
disabled = false;
|
|
10
|
-
editChange;
|
|
11
|
-
internalEdit = false;
|
|
12
|
-
trigger = null;
|
|
13
|
-
syncFromProp() {
|
|
14
|
-
if (isControlled(this.edit))
|
|
15
|
-
this.internalEdit = this.edit;
|
|
16
|
-
}
|
|
17
|
-
componentWillLoad() {
|
|
18
|
-
this.internalEdit = controlledOrDefault(this.edit, this.defaultEdit);
|
|
19
|
-
}
|
|
20
|
-
componentDidLoad() {
|
|
21
|
-
this.host.ownerDocument.addEventListener('pointerdown', this.onDocumentPointerDown, true);
|
|
22
|
-
}
|
|
23
|
-
disconnectedCallback() {
|
|
24
|
-
this.host.ownerDocument.removeEventListener('pointerdown', this.onDocumentPointerDown, true);
|
|
25
|
-
}
|
|
26
|
-
requestEdit(next, reason, trigger) {
|
|
27
|
-
if (this.disabled || this.internalEdit === next)
|
|
28
|
-
return;
|
|
29
|
-
if (!isControlled(this.edit))
|
|
30
|
-
this.internalEdit = next;
|
|
31
|
-
this.editChange.emit({ edit: next, reason, trigger });
|
|
32
|
-
if (next)
|
|
33
|
-
requestAnimationFrame(() => this.focusEditor());
|
|
34
|
-
else
|
|
35
|
-
requestAnimationFrame(() => this.trigger?.focus());
|
|
36
|
-
}
|
|
37
|
-
focusEditor() {
|
|
38
|
-
const editRoot = this.host.querySelector('[slot="edit"]');
|
|
39
|
-
const candidate = editRoot?.matches('input, textarea, select, button, [tabindex], ui-combobox')
|
|
40
|
-
? editRoot
|
|
41
|
-
: editRoot?.querySelector('input, textarea, select, button, [tabindex], ui-combobox');
|
|
42
|
-
const focusInput = candidate?.focusInput;
|
|
43
|
-
if (typeof focusInput === 'function')
|
|
44
|
-
void focusInput.call(candidate);
|
|
45
|
-
else
|
|
46
|
-
candidate?.focus();
|
|
47
|
-
}
|
|
48
|
-
eventTrigger(event) {
|
|
49
|
-
return event.composedPath().find(node => node instanceof HTMLElement && node.hasAttribute('data-ui-editable-trigger'));
|
|
50
|
-
}
|
|
51
|
-
onClick = (event) => {
|
|
52
|
-
if (this.internalEdit || this.disabled)
|
|
53
|
-
return;
|
|
54
|
-
const trigger = this.eventTrigger(event);
|
|
55
|
-
if (!trigger)
|
|
56
|
-
return;
|
|
57
|
-
this.trigger = trigger;
|
|
58
|
-
this.requestEdit(true, 'activate', 'pointer');
|
|
59
|
-
};
|
|
60
|
-
onKeyDown = (event) => {
|
|
61
|
-
if (this.internalEdit && event.key === 'Escape') {
|
|
62
|
-
event.preventDefault();
|
|
63
|
-
event.stopPropagation();
|
|
64
|
-
this.requestEdit(false, 'escape', 'keyboard');
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (this.internalEdit || !['Enter', ' '].includes(event.key))
|
|
68
|
-
return;
|
|
69
|
-
const trigger = this.eventTrigger(event);
|
|
70
|
-
if (!trigger)
|
|
71
|
-
return;
|
|
72
|
-
event.preventDefault();
|
|
73
|
-
this.trigger = trigger;
|
|
74
|
-
this.requestEdit(true, 'activate', 'keyboard');
|
|
75
|
-
};
|
|
76
|
-
onDocumentPointerDown = (event) => {
|
|
77
|
-
if (!this.internalEdit || event.composedPath().includes(this.host))
|
|
78
|
-
return;
|
|
79
|
-
this.requestEdit(false, 'light-dismiss', 'pointer');
|
|
80
|
-
};
|
|
81
|
-
render() {
|
|
82
|
-
return h(Host, { key: 'c11babe81053ecc0fb6390507f74d5094c551f48', "data-edit": this.internalEdit ? '' : undefined, "data-disabled": this.disabled ? '' : undefined, onClick: this.onClick, onKeyDown: this.onKeyDown }, h("div", { key: 'fbb13fda25a177ff62f4bbb16b8fa7a8d1bfefb6', part: "preview", hidden: this.internalEdit }, h("slot", { key: '29537eed3c19da07a61b0236a563912eec332572', name: "preview" })), h("div", { key: 'a8cdb53c61041361ff97762bdf1e8e6992706751', part: "edit", hidden: !this.internalEdit }, h("slot", { key: '466c6bf07d44ab07ccab1fd138412e43a291dcca', name: "edit" })));
|
|
83
|
-
}
|
|
84
|
-
static get is() { return "ui-editable"; }
|
|
85
|
-
static get encapsulation() { return "shadow"; }
|
|
86
|
-
static get originalStyleUrls() {
|
|
87
|
-
return {
|
|
88
|
-
"$": ["ui-editable.css"]
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
static get styleUrls() {
|
|
92
|
-
return {
|
|
93
|
-
"$": ["ui-editable.css"]
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
static get properties() {
|
|
97
|
-
return {
|
|
98
|
-
"edit": {
|
|
99
|
-
"type": "boolean",
|
|
100
|
-
"mutable": false,
|
|
101
|
-
"complexType": {
|
|
102
|
-
"original": "boolean",
|
|
103
|
-
"resolved": "boolean",
|
|
104
|
-
"references": {}
|
|
105
|
-
},
|
|
106
|
-
"required": false,
|
|
107
|
-
"optional": true,
|
|
108
|
-
"docs": {
|
|
109
|
-
"tags": [],
|
|
110
|
-
"text": "Controlled edit state. Omit it to use defaultEdit and local interaction state."
|
|
111
|
-
},
|
|
112
|
-
"getter": false,
|
|
113
|
-
"setter": false,
|
|
114
|
-
"reflect": false,
|
|
115
|
-
"attribute": "edit"
|
|
116
|
-
},
|
|
117
|
-
"defaultEdit": {
|
|
118
|
-
"type": "boolean",
|
|
119
|
-
"mutable": false,
|
|
120
|
-
"complexType": {
|
|
121
|
-
"original": "boolean",
|
|
122
|
-
"resolved": "boolean",
|
|
123
|
-
"references": {}
|
|
124
|
-
},
|
|
125
|
-
"required": false,
|
|
126
|
-
"optional": false,
|
|
127
|
-
"docs": {
|
|
128
|
-
"tags": [],
|
|
129
|
-
"text": ""
|
|
130
|
-
},
|
|
131
|
-
"getter": false,
|
|
132
|
-
"setter": false,
|
|
133
|
-
"reflect": false,
|
|
134
|
-
"attribute": "default-edit",
|
|
135
|
-
"defaultValue": "false"
|
|
136
|
-
},
|
|
137
|
-
"disabled": {
|
|
138
|
-
"type": "boolean",
|
|
139
|
-
"mutable": false,
|
|
140
|
-
"complexType": {
|
|
141
|
-
"original": "boolean",
|
|
142
|
-
"resolved": "boolean",
|
|
143
|
-
"references": {}
|
|
144
|
-
},
|
|
145
|
-
"required": false,
|
|
146
|
-
"optional": false,
|
|
147
|
-
"docs": {
|
|
148
|
-
"tags": [],
|
|
149
|
-
"text": ""
|
|
150
|
-
},
|
|
151
|
-
"getter": false,
|
|
152
|
-
"setter": false,
|
|
153
|
-
"reflect": false,
|
|
154
|
-
"attribute": "disabled",
|
|
155
|
-
"defaultValue": "false"
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
static get states() {
|
|
160
|
-
return {
|
|
161
|
-
"internalEdit": {}
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
static get events() {
|
|
165
|
-
return [{
|
|
166
|
-
"method": "editChange",
|
|
167
|
-
"name": "edit-change",
|
|
168
|
-
"bubbles": true,
|
|
169
|
-
"cancelable": true,
|
|
170
|
-
"composed": true,
|
|
171
|
-
"docs": {
|
|
172
|
-
"tags": [],
|
|
173
|
-
"text": ""
|
|
174
|
-
},
|
|
175
|
-
"complexType": {
|
|
176
|
-
"original": "EditableChange",
|
|
177
|
-
"resolved": "EditableChange",
|
|
178
|
-
"references": {
|
|
179
|
-
"EditableChange": {
|
|
180
|
-
"location": "import",
|
|
181
|
-
"path": "../../field/editable",
|
|
182
|
-
"id": "src/field/editable.ts::EditableChange",
|
|
183
|
-
"referenceLocation": "EditableChange"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}];
|
|
188
|
-
}
|
|
189
|
-
static get elementRef() { return "host"; }
|
|
190
|
-
static get watchers() {
|
|
191
|
-
return [{
|
|
192
|
-
"propName": "edit",
|
|
193
|
-
"methodName": "syncFromProp"
|
|
194
|
-
}];
|
|
195
|
-
}
|
|
196
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: fixed;
|
|
3
|
-
inset-block-end: calc(
|
|
4
|
-
var(--ui-floating-action-button-bottom, var(--ui-space-6, 1.5rem)) + env(safe-area-inset-bottom)
|
|
5
|
-
);
|
|
6
|
-
inset-inline-end: max(
|
|
7
|
-
var(--ui-floating-action-button-inline-end, var(--ui-space-5, 1.25rem)),
|
|
8
|
-
env(safe-area-inset-right)
|
|
9
|
-
);
|
|
10
|
-
inline-size: var(--ui-floating-action-button-size, 56px);
|
|
11
|
-
block-size: var(--ui-floating-action-button-size, 56px);
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
z-index: var(--ui-floating-action-button-z-index, 100);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
button {
|
|
17
|
-
appearance: none;
|
|
18
|
-
inline-size: 100%;
|
|
19
|
-
block-size: 100%;
|
|
20
|
-
border: none;
|
|
21
|
-
border-radius: 999px;
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0;
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
background: var(--ui-floating-action-button-bg, var(--ui-accent-solid));
|
|
28
|
-
color: var(--ui-floating-action-button-color, var(--ui-text-on-accent));
|
|
29
|
-
box-shadow: var(
|
|
30
|
-
--ui-floating-action-button-shadow,
|
|
31
|
-
0 4px 12px color-mix(in srgb, var(--ui-accent-solid) 40%, transparent)
|
|
32
|
-
);
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
transition:
|
|
35
|
-
background-color var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease),
|
|
36
|
-
transform var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease),
|
|
37
|
-
box-shadow var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
button:hover:enabled {
|
|
41
|
-
background: var(--ui-floating-action-button-hover-bg, var(--ui-accent-hover));
|
|
42
|
-
box-shadow: var(
|
|
43
|
-
--ui-floating-action-button-hover-shadow,
|
|
44
|
-
0 6px 16px color-mix(in srgb, var(--ui-accent-solid) 50%, transparent)
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
button:active:enabled {
|
|
49
|
-
transform: scale(var(--ui-floating-action-button-active-scale, 0.94));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
button:focus-visible {
|
|
53
|
-
outline: 2px solid var(--ui-focus-ring);
|
|
54
|
-
outline-offset: 2px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
button:disabled,
|
|
58
|
-
:host([disabled]) {
|
|
59
|
-
opacity: 0.6;
|
|
60
|
-
cursor: not-allowed;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
::slotted(svg) {
|
|
64
|
-
inline-size: var(--ui-floating-action-button-icon-size, 24px);
|
|
65
|
-
block-size: var(--ui-floating-action-button-icon-size, 24px);
|
|
66
|
-
flex-shrink: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@media (min-width: 768px) {
|
|
70
|
-
:host([mobile-only]) {
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class UIFloatingActionButton {
|
|
3
|
-
disabled = false;
|
|
4
|
-
mobileOnly = false;
|
|
5
|
-
label = '';
|
|
6
|
-
render() {
|
|
7
|
-
return (h(Host, { key: '54f6284109397d15e2b3ef92f68e9bd4cf91fbae', "data-disabled": this.disabled ? '' : undefined }, h("button", { key: '9ebad7e3bbc2bf18d4d5a04f37a9f2d77011ad34', type: "button", "aria-label": this.label || undefined, disabled: this.disabled }, h("slot", { key: '222c6807ae4639eb20dc25be08fe5f4e91c638de' }))));
|
|
8
|
-
}
|
|
9
|
-
static get is() { return "ui-floating-action-button"; }
|
|
10
|
-
static get encapsulation() { return "shadow"; }
|
|
11
|
-
static get originalStyleUrls() {
|
|
12
|
-
return {
|
|
13
|
-
"$": ["ui-floating-action-button.css"]
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
static get styleUrls() {
|
|
17
|
-
return {
|
|
18
|
-
"$": ["ui-floating-action-button.css"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get properties() {
|
|
22
|
-
return {
|
|
23
|
-
"disabled": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"mutable": false,
|
|
26
|
-
"complexType": {
|
|
27
|
-
"original": "boolean",
|
|
28
|
-
"resolved": "boolean",
|
|
29
|
-
"references": {}
|
|
30
|
-
},
|
|
31
|
-
"required": false,
|
|
32
|
-
"optional": false,
|
|
33
|
-
"docs": {
|
|
34
|
-
"tags": [],
|
|
35
|
-
"text": ""
|
|
36
|
-
},
|
|
37
|
-
"getter": false,
|
|
38
|
-
"setter": false,
|
|
39
|
-
"reflect": true,
|
|
40
|
-
"attribute": "disabled",
|
|
41
|
-
"defaultValue": "false"
|
|
42
|
-
},
|
|
43
|
-
"mobileOnly": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"mutable": false,
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "boolean",
|
|
48
|
-
"resolved": "boolean",
|
|
49
|
-
"references": {}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": false,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [],
|
|
55
|
-
"text": ""
|
|
56
|
-
},
|
|
57
|
-
"getter": false,
|
|
58
|
-
"setter": false,
|
|
59
|
-
"reflect": true,
|
|
60
|
-
"attribute": "mobile-only",
|
|
61
|
-
"defaultValue": "false"
|
|
62
|
-
},
|
|
63
|
-
"label": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"mutable": false,
|
|
66
|
-
"complexType": {
|
|
67
|
-
"original": "string",
|
|
68
|
-
"resolved": "string",
|
|
69
|
-
"references": {}
|
|
70
|
-
},
|
|
71
|
-
"required": false,
|
|
72
|
-
"optional": false,
|
|
73
|
-
"docs": {
|
|
74
|
-
"tags": [],
|
|
75
|
-
"text": ""
|
|
76
|
-
},
|
|
77
|
-
"getter": false,
|
|
78
|
-
"setter": false,
|
|
79
|
-
"reflect": false,
|
|
80
|
-
"attribute": "label",
|
|
81
|
-
"defaultValue": "''"
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: grid;
|
|
3
|
-
gap: var(--ui-space-2);
|
|
4
|
-
min-inline-size: 0;
|
|
5
|
-
align-content: start;
|
|
6
|
-
color: var(--ui-text-primary);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
::slotted(label) {
|
|
10
|
-
color: var(--ui-text-secondary);
|
|
11
|
-
font-size: 0.95rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
::slotted([data-slot='help']) {
|
|
15
|
-
min-block-size: var(--ui-form-field-help-min-block-size, 0);
|
|
16
|
-
color: var(--ui-text-muted);
|
|
17
|
-
font-size: 0.875rem;
|
|
18
|
-
line-height: var(--ui-line-height-md);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
::slotted([data-slot='error']),
|
|
22
|
-
::slotted([role='alert']) {
|
|
23
|
-
color: var(--ui-accent-active);
|
|
24
|
-
font-size: 0.875rem;
|
|
25
|
-
}
|