le-kit 0.5.2 → 0.5.4
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/LLM_CONTEXT.md +22 -33
- package/package.json +3 -1
- package/readme.md +2 -0
- package/dist/cjs/index-BzadfLTc.js +0 -1864
- package/dist/cjs/index-BzadfLTc.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -124
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/le-bar_16.cjs.entry.js +0 -3709
- package/dist/cjs/le-box.cjs.entry.js +0 -184
- package/dist/cjs/le-card.cjs.entry.js +0 -29
- package/dist/cjs/le-code-input.cjs.entry.js +0 -181
- package/dist/cjs/le-combobox.cjs.entry.js +0 -237
- package/dist/cjs/le-header-placeholder.cjs.entry.js +0 -18
- package/dist/cjs/le-kit.cjs.js +0 -27
- package/dist/cjs/le-kit.cjs.js.map +0 -1
- package/dist/cjs/le-multiselect.cjs.entry.js +0 -306
- package/dist/cjs/le-number-input.cjs.entry.js +0 -202
- package/dist/cjs/le-round-progress.cjs.entry.js +0 -106
- package/dist/cjs/le-segmented-control.cjs.entry.js +0 -245
- package/dist/cjs/le-side-panel-toggle.cjs.entry.js +0 -229
- package/dist/cjs/le-side-panel.cjs.entry.js +0 -546
- package/dist/cjs/le-stack.cjs.entry.js +0 -135
- package/dist/cjs/le-tab-bar.cjs.entry.js +0 -242
- package/dist/cjs/le-tab-panel.cjs.entry.js +0 -100
- package/dist/cjs/le-tab.cjs.entry.js +0 -136
- package/dist/cjs/le-tabs.cjs.entry.js +0 -307
- package/dist/cjs/le-tag.cjs.entry.js +0 -68
- package/dist/cjs/le-text.cjs.entry.js +0 -335
- package/dist/cjs/le-turntable.cjs.entry.js +0 -139
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/utils-Dxx9WhWK.js +0 -152
- package/dist/cjs/utils-Dxx9WhWK.js.map +0 -1
- package/dist/collection/assets/icons/chevron-down.svg +0 -3
- package/dist/collection/collection-manifest.json +0 -47
- package/dist/collection/components/le-bar/le-bar.css +0 -255
- package/dist/collection/components/le-bar/le-bar.js +0 -680
- package/dist/collection/components/le-bar/le-bar.js.map +0 -1
- package/dist/collection/components/le-box/le-box.css +0 -37
- package/dist/collection/components/le-box/le-box.js +0 -614
- package/dist/collection/components/le-box/le-box.js.map +0 -1
- package/dist/collection/components/le-button/le-button.css +0 -290
- package/dist/collection/components/le-button/le-button.js +0 -460
- package/dist/collection/components/le-button/le-button.js.map +0 -1
- package/dist/collection/components/le-card/le-card.css +0 -74
- package/dist/collection/components/le-card/le-card.js +0 -102
- package/dist/collection/components/le-card/le-card.js.map +0 -1
- package/dist/collection/components/le-checkbox/le-checkbox.css +0 -93
- package/dist/collection/components/le-checkbox/le-checkbox.js +0 -192
- package/dist/collection/components/le-checkbox/le-checkbox.js.map +0 -1
- package/dist/collection/components/le-code-input/le-code-input.css +0 -106
- package/dist/collection/components/le-code-input/le-code-input.js +0 -466
- package/dist/collection/components/le-code-input/le-code-input.js.map +0 -1
- package/dist/collection/components/le-collapse/le-collapse.css +0 -31
- package/dist/collection/components/le-collapse/le-collapse.js +0 -184
- package/dist/collection/components/le-collapse/le-collapse.js.map +0 -1
- package/dist/collection/components/le-combobox/le-combobox.css +0 -144
- package/dist/collection/components/le-combobox/le-combobox.js +0 -659
- package/dist/collection/components/le-combobox/le-combobox.js.map +0 -1
- package/dist/collection/components/le-component/le-component.css +0 -189
- package/dist/collection/components/le-component/le-component.js +0 -367
- package/dist/collection/components/le-component/le-component.js.map +0 -1
- package/dist/collection/components/le-current-heading/le-current-heading.css +0 -13
- package/dist/collection/components/le-current-heading/le-current-heading.js +0 -130
- package/dist/collection/components/le-current-heading/le-current-heading.js.map +0 -1
- package/dist/collection/components/le-dropdown-base/le-dropdown-base.css +0 -167
- package/dist/collection/components/le-dropdown-base/le-dropdown-base.js +0 -761
- package/dist/collection/components/le-dropdown-base/le-dropdown-base.js.map +0 -1
- package/dist/collection/components/le-header/le-header.css +0 -120
- package/dist/collection/components/le-header/le-header.js +0 -508
- package/dist/collection/components/le-header/le-header.js.map +0 -1
- package/dist/collection/components/le-header-placeholder/le-header-placeholder.js +0 -21
- package/dist/collection/components/le-header-placeholder/le-header-placeholder.js.map +0 -1
- package/dist/collection/components/le-icon/le-icon.css +0 -13
- package/dist/collection/components/le-icon/le-icon.js +0 -185
- package/dist/collection/components/le-icon/le-icon.js.map +0 -1
- package/dist/collection/components/le-multiselect/le-multiselect.css +0 -163
- package/dist/collection/components/le-multiselect/le-multiselect.js +0 -734
- package/dist/collection/components/le-multiselect/le-multiselect.js.map +0 -1
- package/dist/collection/components/le-navigation/le-navigation.css +0 -330
- package/dist/collection/components/le-navigation/le-navigation.js +0 -700
- package/dist/collection/components/le-navigation/le-navigation.js.map +0 -1
- package/dist/collection/components/le-number-input/le-number-input.css +0 -135
- package/dist/collection/components/le-number-input/le-number-input.js +0 -515
- package/dist/collection/components/le-number-input/le-number-input.js.map +0 -1
- package/dist/collection/components/le-popover/le-popover.css +0 -163
- package/dist/collection/components/le-popover/le-popover.js +0 -853
- package/dist/collection/components/le-popover/le-popover.js.map +0 -1
- package/dist/collection/components/le-popup/le-popup.api.js +0 -102
- package/dist/collection/components/le-popup/le-popup.api.js.map +0 -1
- package/dist/collection/components/le-popup/le-popup.css +0 -222
- package/dist/collection/components/le-popup/le-popup.js +0 -626
- package/dist/collection/components/le-popup/le-popup.js.map +0 -1
- package/dist/collection/components/le-round-progress/le-round-progress.css +0 -34
- package/dist/collection/components/le-round-progress/le-round-progress.js +0 -184
- package/dist/collection/components/le-round-progress/le-round-progress.js.map +0 -1
- package/dist/collection/components/le-scroll-progress/le-scroll-progress.css +0 -29
- package/dist/collection/components/le-scroll-progress/le-scroll-progress.js +0 -186
- package/dist/collection/components/le-scroll-progress/le-scroll-progress.js.map +0 -1
- package/dist/collection/components/le-segmented-control/le-segmented-control.css +0 -78
- package/dist/collection/components/le-segmented-control/le-segmented-control.js +0 -445
- package/dist/collection/components/le-segmented-control/le-segmented-control.js.map +0 -1
- package/dist/collection/components/le-select/le-select.css +0 -121
- package/dist/collection/components/le-select/le-select.js +0 -578
- package/dist/collection/components/le-select/le-select.js.map +0 -1
- package/dist/collection/components/le-side-panel/le-side-panel.css +0 -193
- package/dist/collection/components/le-side-panel/le-side-panel.js +0 -953
- package/dist/collection/components/le-side-panel/le-side-panel.js.map +0 -1
- package/dist/collection/components/le-side-panel-toggle/le-side-panel-toggle.js +0 -610
- package/dist/collection/components/le-side-panel-toggle/le-side-panel-toggle.js.map +0 -1
- package/dist/collection/components/le-slot/le-slot.default.css +0 -222
- package/dist/collection/components/le-slot/le-slot.js +0 -638
- package/dist/collection/components/le-slot/le-slot.js.map +0 -1
- package/dist/collection/components/le-stack/le-stack.default.css +0 -37
- package/dist/collection/components/le-stack/le-stack.js +0 -389
- package/dist/collection/components/le-stack/le-stack.js.map +0 -1
- package/dist/collection/components/le-string-input/le-string-input.css +0 -83
- package/dist/collection/components/le-string-input/le-string-input.js +0 -413
- package/dist/collection/components/le-string-input/le-string-input.js.map +0 -1
- package/dist/collection/components/le-tab/le-tab.css +0 -289
- package/dist/collection/components/le-tab/le-tab.js +0 -565
- package/dist/collection/components/le-tab/le-tab.js.map +0 -1
- package/dist/collection/components/le-tab-bar/le-tab-bar.css +0 -89
- package/dist/collection/components/le-tab-bar/le-tab-bar.js +0 -467
- package/dist/collection/components/le-tab-bar/le-tab-bar.js.map +0 -1
- package/dist/collection/components/le-tab-panel/le-tab-panel.css +0 -30
- package/dist/collection/components/le-tab-panel/le-tab-panel.js +0 -302
- package/dist/collection/components/le-tab-panel/le-tab-panel.js.map +0 -1
- package/dist/collection/components/le-tabs/le-tabs.css +0 -146
- package/dist/collection/components/le-tabs/le-tabs.js +0 -588
- package/dist/collection/components/le-tabs/le-tabs.js.map +0 -1
- package/dist/collection/components/le-tag/le-tag.css +0 -139
- package/dist/collection/components/le-tag/le-tag.js +0 -266
- package/dist/collection/components/le-tag/le-tag.js.map +0 -1
- package/dist/collection/components/le-text/le-text.css +0 -169
- package/dist/collection/components/le-text/le-text.js +0 -475
- package/dist/collection/components/le-text/le-text.js.map +0 -1
- package/dist/collection/components/le-turntable/le-turntable.css +0 -10
- package/dist/collection/components/le-turntable/le-turntable.js +0 -210
- package/dist/collection/components/le-turntable/le-turntable.js.map +0 -1
- package/dist/collection/dist/components/assets/custom-elements.json +0 -11935
- package/dist/collection/dist/components/assets/icons/chevron-down.json +0 -13
- package/dist/collection/dist/components/assets/icons/chevron-down.svg +0 -3
- package/dist/collection/dist/components/assets/icons/ellipsis-horizontal.json +0 -14
- package/dist/collection/dist/components/assets/icons/ellipsis-vertical.json +0 -14
- package/dist/collection/dist/components/assets/icons/hamburger.json +0 -14
- package/dist/collection/dist/components/assets/icons/side-panel.json +0 -61
- package/dist/collection/dist/themes/base.css +0 -89
- package/dist/collection/dist/themes/dark.css +0 -104
- package/dist/collection/dist/themes/default.css +0 -112
- package/dist/collection/dist/themes/gradient.css +0 -104
- package/dist/collection/dist/themes/index.css +0 -76
- package/dist/collection/dist/themes/minimal.css +0 -104
- package/dist/collection/dist/themes/warm.css +0 -104
- package/dist/collection/global/app.js +0 -177
- package/dist/collection/global/app.js.map +0 -1
- package/dist/collection/index.js +0 -16
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/types/blocks.js +0 -115
- package/dist/collection/types/blocks.js.map +0 -1
- package/dist/collection/types/options.js +0 -2
- package/dist/collection/types/options.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -141
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/app.js +0 -180
- package/dist/components/app.js.map +0 -1
- package/dist/components/assets/custom-elements.json +0 -11935
- package/dist/components/assets/icons/chevron-down.json +0 -13
- package/dist/components/assets/icons/chevron-down.svg +0 -3
- package/dist/components/assets/icons/ellipsis-horizontal.json +0 -14
- package/dist/components/assets/icons/ellipsis-vertical.json +0 -14
- package/dist/components/assets/icons/hamburger.json +0 -14
- package/dist/components/assets/icons/side-panel.json +0 -61
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -12
- package/dist/components/index.js.map +0 -1
- package/dist/components/le-bar.d.ts +0 -11
- package/dist/components/le-bar.js +0 -9
- package/dist/components/le-bar.js.map +0 -1
- package/dist/components/le-bar2.js +0 -506
- package/dist/components/le-bar2.js.map +0 -1
- package/dist/components/le-box.d.ts +0 -11
- package/dist/components/le-box.js +0 -273
- package/dist/components/le-box.js.map +0 -1
- package/dist/components/le-button.d.ts +0 -11
- package/dist/components/le-button.js +0 -9
- package/dist/components/le-button.js.map +0 -1
- package/dist/components/le-button2.js +0 -1791
- package/dist/components/le-button2.js.map +0 -1
- package/dist/components/le-card.d.ts +0 -11
- package/dist/components/le-card.js +0 -100
- package/dist/components/le-card.js.map +0 -1
- package/dist/components/le-checkbox.d.ts +0 -11
- package/dist/components/le-checkbox.js +0 -9
- package/dist/components/le-checkbox.js.map +0 -1
- package/dist/components/le-code-input.d.ts +0 -11
- package/dist/components/le-code-input.js +0 -265
- package/dist/components/le-code-input.js.map +0 -1
- package/dist/components/le-collapse.d.ts +0 -11
- package/dist/components/le-collapse.js +0 -9
- package/dist/components/le-collapse.js.map +0 -1
- package/dist/components/le-collapse2.js +0 -138
- package/dist/components/le-collapse2.js.map +0 -1
- package/dist/components/le-combobox.d.ts +0 -11
- package/dist/components/le-combobox.js +0 -326
- package/dist/components/le-combobox.js.map +0 -1
- package/dist/components/le-component.d.ts +0 -11
- package/dist/components/le-component.js +0 -9
- package/dist/components/le-component.js.map +0 -1
- package/dist/components/le-current-heading.d.ts +0 -11
- package/dist/components/le-current-heading.js +0 -93
- package/dist/components/le-current-heading.js.map +0 -1
- package/dist/components/le-dropdown-base.d.ts +0 -11
- package/dist/components/le-dropdown-base.js +0 -9
- package/dist/components/le-dropdown-base.js.map +0 -1
- package/dist/components/le-dropdown-base2.js +0 -393
- package/dist/components/le-dropdown-base2.js.map +0 -1
- package/dist/components/le-header-placeholder.d.ts +0 -11
- package/dist/components/le-header-placeholder.js +0 -37
- package/dist/components/le-header-placeholder.js.map +0 -1
- package/dist/components/le-header.d.ts +0 -11
- package/dist/components/le-header.js +0 -349
- package/dist/components/le-header.js.map +0 -1
- package/dist/components/le-icon.d.ts +0 -11
- package/dist/components/le-icon.js +0 -9
- package/dist/components/le-icon.js.map +0 -1
- package/dist/components/le-icon2.js +0 -150
- package/dist/components/le-icon2.js.map +0 -1
- package/dist/components/le-multiselect.d.ts +0 -11
- package/dist/components/le-multiselect.js +0 -405
- package/dist/components/le-multiselect.js.map +0 -1
- package/dist/components/le-navigation.d.ts +0 -11
- package/dist/components/le-navigation.js +0 -502
- package/dist/components/le-navigation.js.map +0 -1
- package/dist/components/le-number-input.d.ts +0 -11
- package/dist/components/le-number-input.js +0 -288
- package/dist/components/le-number-input.js.map +0 -1
- package/dist/components/le-popover.d.ts +0 -11
- package/dist/components/le-popover.js +0 -9
- package/dist/components/le-popover.js.map +0 -1
- package/dist/components/le-popover2.js +0 -667
- package/dist/components/le-popover2.js.map +0 -1
- package/dist/components/le-popup.api.js +0 -106
- package/dist/components/le-popup.api.js.map +0 -1
- package/dist/components/le-popup.d.ts +0 -11
- package/dist/components/le-popup.js +0 -9
- package/dist/components/le-popup.js.map +0 -1
- package/dist/components/le-round-progress.d.ts +0 -11
- package/dist/components/le-round-progress.js +0 -135
- package/dist/components/le-round-progress.js.map +0 -1
- package/dist/components/le-scroll-progress.d.ts +0 -11
- package/dist/components/le-scroll-progress.js +0 -142
- package/dist/components/le-scroll-progress.js.map +0 -1
- package/dist/components/le-segmented-control.d.ts +0 -11
- package/dist/components/le-segmented-control.js +0 -331
- package/dist/components/le-segmented-control.js.map +0 -1
- package/dist/components/le-select.d.ts +0 -11
- package/dist/components/le-select.js +0 -9
- package/dist/components/le-select.js.map +0 -1
- package/dist/components/le-side-panel-toggle.d.ts +0 -11
- package/dist/components/le-side-panel-toggle.js +0 -9
- package/dist/components/le-side-panel-toggle.js.map +0 -1
- package/dist/components/le-side-panel-toggle2.js +0 -311
- package/dist/components/le-side-panel-toggle2.js.map +0 -1
- package/dist/components/le-side-panel.d.ts +0 -11
- package/dist/components/le-side-panel.js +0 -660
- package/dist/components/le-side-panel.js.map +0 -1
- package/dist/components/le-slot.d.ts +0 -11
- package/dist/components/le-slot.js +0 -9
- package/dist/components/le-slot.js.map +0 -1
- package/dist/components/le-stack.d.ts +0 -11
- package/dist/components/le-stack.js +0 -215
- package/dist/components/le-stack.js.map +0 -1
- package/dist/components/le-string-input.d.ts +0 -11
- package/dist/components/le-string-input.js +0 -9
- package/dist/components/le-string-input.js.map +0 -1
- package/dist/components/le-tab-bar.d.ts +0 -11
- package/dist/components/le-tab-bar.js +0 -330
- package/dist/components/le-tab-bar.js.map +0 -1
- package/dist/components/le-tab-panel.d.ts +0 -11
- package/dist/components/le-tab-panel.js +0 -182
- package/dist/components/le-tab-panel.js.map +0 -1
- package/dist/components/le-tab.d.ts +0 -11
- package/dist/components/le-tab.js +0 -9
- package/dist/components/le-tab.js.map +0 -1
- package/dist/components/le-tab2.js +0 -220
- package/dist/components/le-tab2.js.map +0 -1
- package/dist/components/le-tabs.d.ts +0 -11
- package/dist/components/le-tabs.js +0 -397
- package/dist/components/le-tabs.js.map +0 -1
- package/dist/components/le-tag.d.ts +0 -11
- package/dist/components/le-tag.js +0 -9
- package/dist/components/le-tag.js.map +0 -1
- package/dist/components/le-tag2.js +0 -141
- package/dist/components/le-tag2.js.map +0 -1
- package/dist/components/le-text.d.ts +0 -11
- package/dist/components/le-text.js +0 -415
- package/dist/components/le-text.js.map +0 -1
- package/dist/components/le-turntable.d.ts +0 -11
- package/dist/components/le-turntable.js +0 -164
- package/dist/components/le-turntable.js.map +0 -1
- package/dist/components/utils.js +0 -146
- package/dist/components/utils.js.map +0 -1
- package/dist/docs.d.ts +0 -443
- package/dist/docs.json +0 -14289
- package/dist/esm/index-DFTm5BqT.js +0 -1844
- package/dist/esm/index-DFTm5BqT.js.map +0 -1
- package/dist/esm/index.js +0 -109
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/le-bar_16.entry.js +0 -3692
- package/dist/esm/le-box.entry.js +0 -182
- package/dist/esm/le-box.entry.js.map +0 -1
- package/dist/esm/le-card.entry.js +0 -27
- package/dist/esm/le-card.entry.js.map +0 -1
- package/dist/esm/le-code-input.entry.js +0 -179
- package/dist/esm/le-code-input.entry.js.map +0 -1
- package/dist/esm/le-combobox.entry.js +0 -235
- package/dist/esm/le-combobox.entry.js.map +0 -1
- package/dist/esm/le-header-placeholder.entry.js +0 -16
- package/dist/esm/le-header-placeholder.entry.js.map +0 -1
- package/dist/esm/le-kit.js +0 -23
- package/dist/esm/le-kit.js.map +0 -1
- package/dist/esm/le-multiselect.entry.js +0 -304
- package/dist/esm/le-multiselect.entry.js.map +0 -1
- package/dist/esm/le-number-input.entry.js +0 -200
- package/dist/esm/le-number-input.entry.js.map +0 -1
- package/dist/esm/le-round-progress.entry.js +0 -104
- package/dist/esm/le-round-progress.entry.js.map +0 -1
- package/dist/esm/le-segmented-control.entry.js +0 -243
- package/dist/esm/le-segmented-control.entry.js.map +0 -1
- package/dist/esm/le-side-panel-toggle.entry.js +0 -227
- package/dist/esm/le-side-panel-toggle.entry.js.map +0 -1
- package/dist/esm/le-side-panel.entry.js +0 -544
- package/dist/esm/le-side-panel.entry.js.map +0 -1
- package/dist/esm/le-stack.entry.js +0 -133
- package/dist/esm/le-stack.entry.js.map +0 -1
- package/dist/esm/le-tab-bar.entry.js +0 -240
- package/dist/esm/le-tab-bar.entry.js.map +0 -1
- package/dist/esm/le-tab-panel.entry.js +0 -98
- package/dist/esm/le-tab-panel.entry.js.map +0 -1
- package/dist/esm/le-tab.entry.js +0 -134
- package/dist/esm/le-tab.entry.js.map +0 -1
- package/dist/esm/le-tabs.entry.js +0 -305
- package/dist/esm/le-tabs.entry.js.map +0 -1
- package/dist/esm/le-tag.entry.js +0 -66
- package/dist/esm/le-tag.entry.js.map +0 -1
- package/dist/esm/le-text.entry.js +0 -333
- package/dist/esm/le-text.entry.js.map +0 -1
- package/dist/esm/le-turntable.entry.js +0 -137
- package/dist/esm/le-turntable.entry.js.map +0 -1
- package/dist/esm/loader.js +0 -13
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/utils-DZYCZLrF.js +0 -146
- package/dist/esm/utils-DZYCZLrF.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/le-kit/dist/components/assets/custom-elements.json +0 -11935
- package/dist/le-kit/dist/components/assets/icons/chevron-down.json +0 -13
- package/dist/le-kit/dist/components/assets/icons/chevron-down.svg +0 -3
- package/dist/le-kit/dist/components/assets/icons/ellipsis-horizontal.json +0 -14
- package/dist/le-kit/dist/components/assets/icons/ellipsis-vertical.json +0 -14
- package/dist/le-kit/dist/components/assets/icons/hamburger.json +0 -14
- package/dist/le-kit/dist/components/assets/icons/side-panel.json +0 -61
- package/dist/le-kit/dist/themes/base.css +0 -89
- package/dist/le-kit/dist/themes/dark.css +0 -104
- package/dist/le-kit/dist/themes/default.css +0 -112
- package/dist/le-kit/dist/themes/gradient.css +0 -104
- package/dist/le-kit/dist/themes/index.css +0 -76
- package/dist/le-kit/dist/themes/minimal.css +0 -104
- package/dist/le-kit/dist/themes/warm.css +0 -104
- package/dist/le-kit/index.esm.js +0 -2
- package/dist/le-kit/index.esm.js.map +0 -1
- package/dist/le-kit/le-kit.css +0 -1
- package/dist/le-kit/le-kit.esm.js +0 -2
- package/dist/le-kit/le-kit.esm.js.map +0 -1
- package/dist/le-kit/loader.esm.js.map +0 -1
- package/dist/le-kit/p-221d379a.entry.js +0 -2
- package/dist/le-kit/p-221d379a.entry.js.map +0 -1
- package/dist/le-kit/p-24112ca3.entry.js +0 -2
- package/dist/le-kit/p-24112ca3.entry.js.map +0 -1
- package/dist/le-kit/p-2c6d080d.entry.js +0 -2
- package/dist/le-kit/p-2c6d080d.entry.js.map +0 -1
- package/dist/le-kit/p-46276e77.entry.js +0 -2
- package/dist/le-kit/p-46276e77.entry.js.map +0 -1
- package/dist/le-kit/p-516c8531.entry.js +0 -2
- package/dist/le-kit/p-516c8531.entry.js.map +0 -1
- package/dist/le-kit/p-6ae60ba5.entry.js +0 -2
- package/dist/le-kit/p-6ae60ba5.entry.js.map +0 -1
- package/dist/le-kit/p-6b69f9a2.entry.js +0 -2
- package/dist/le-kit/p-6b69f9a2.entry.js.map +0 -1
- package/dist/le-kit/p-6d14306f.entry.js +0 -2
- package/dist/le-kit/p-6d14306f.entry.js.map +0 -1
- package/dist/le-kit/p-7bcdf2d4.entry.js +0 -2
- package/dist/le-kit/p-7bcdf2d4.entry.js.map +0 -1
- package/dist/le-kit/p-7cf1e23c.entry.js +0 -2
- package/dist/le-kit/p-7cf1e23c.entry.js.map +0 -1
- package/dist/le-kit/p-85f2fd4d.entry.js +0 -2
- package/dist/le-kit/p-85f2fd4d.entry.js.map +0 -1
- package/dist/le-kit/p-98242429.entry.js +0 -2
- package/dist/le-kit/p-98242429.entry.js.map +0 -1
- package/dist/le-kit/p-D8RYDS9p.js +0 -2
- package/dist/le-kit/p-D8RYDS9p.js.map +0 -1
- package/dist/le-kit/p-DFTm5BqT.js +0 -3
- package/dist/le-kit/p-DFTm5BqT.js.map +0 -1
- package/dist/le-kit/p-ab6c1def.entry.js +0 -2
- package/dist/le-kit/p-ab6c1def.entry.js.map +0 -1
- package/dist/le-kit/p-ae4ead64.entry.js +0 -2
- package/dist/le-kit/p-ae4ead64.entry.js.map +0 -1
- package/dist/le-kit/p-b05d4511.entry.js +0 -2
- package/dist/le-kit/p-b05d4511.entry.js.map +0 -1
- package/dist/le-kit/p-b6ac02ff.entry.js +0 -2
- package/dist/le-kit/p-b6ac02ff.entry.js.map +0 -1
- package/dist/le-kit/p-c24769e2.entry.js +0 -2
- package/dist/le-kit/p-c24769e2.entry.js.map +0 -1
- package/dist/le-kit/p-dc0445ad.entry.js +0 -2
- package/dist/le-kit/p-dc0445ad.entry.js.map +0 -1
- package/dist/le-kit/p-eb5286f2.entry.js +0 -2
- package/dist/le-kit/p-eb5286f2.entry.js.map +0 -1
- package/dist/le-kit/p-f78b1ee6.entry.js +0 -2
- package/dist/le-kit/p-f78b1ee6.entry.js.map +0 -1
- package/dist/themes/base.css +0 -89
- package/dist/themes/dark.css +0 -104
- package/dist/themes/default.css +0 -112
- package/dist/themes/gradient.css +0 -104
- package/dist/themes/index.css +0 -76
- package/dist/themes/minimal.css +0 -104
- package/dist/themes/warm.css +0 -104
- package/dist/types/components/le-bar/le-bar.d.ts +0 -131
- package/dist/types/components/le-box/le-box.d.ts +0 -111
- package/dist/types/components/le-button/le-button.d.ts +0 -93
- package/dist/types/components/le-card/le-card.d.ts +0 -37
- package/dist/types/components/le-checkbox/le-checkbox.d.ts +0 -46
- package/dist/types/components/le-code-input/le-code-input.d.ts +0 -102
- package/dist/types/components/le-collapse/le-collapse.d.ts +0 -43
- package/dist/types/components/le-combobox/le-combobox.d.ts +0 -128
- package/dist/types/components/le-component/le-component.d.ts +0 -115
- package/dist/types/components/le-current-heading/le-current-heading.d.ts +0 -25
- package/dist/types/components/le-dropdown-base/le-dropdown-base.d.ts +0 -118
- package/dist/types/components/le-header/le-header.d.ts +0 -115
- package/dist/types/components/le-header-placeholder/le-header-placeholder.d.ts +0 -13
- package/dist/types/components/le-icon/le-icon.d.ts +0 -28
- package/dist/types/components/le-multiselect/le-multiselect.d.ts +0 -143
- package/dist/types/components/le-navigation/le-navigation.d.ts +0 -125
- package/dist/types/components/le-number-input/le-number-input.d.ts +0 -106
- package/dist/types/components/le-popover/le-popover.d.ts +0 -129
- package/dist/types/components/le-popup/le-popup.api.d.ts +0 -73
- package/dist/types/components/le-popup/le-popup.d.ts +0 -127
- package/dist/types/components/le-round-progress/le-round-progress.d.ts +0 -37
- package/dist/types/components/le-scroll-progress/le-scroll-progress.d.ts +0 -40
- package/dist/types/components/le-segmented-control/le-segmented-control.d.ts +0 -82
- package/dist/types/components/le-select/le-select.d.ts +0 -125
- package/dist/types/components/le-side-panel/le-side-panel.d.ts +0 -100
- package/dist/types/components/le-side-panel-toggle/le-side-panel-toggle.d.ts +0 -48
- package/dist/types/components/le-slot/le-slot.d.ts +0 -149
- package/dist/types/components/le-stack/le-stack.d.ts +0 -73
- package/dist/types/components/le-string-input/le-string-input.d.ts +0 -91
- package/dist/types/components/le-tab/le-tab.d.ts +0 -116
- package/dist/types/components/le-tab-bar/le-tab-bar.d.ts +0 -88
- package/dist/types/components/le-tab-panel/le-tab-panel.d.ts +0 -75
- package/dist/types/components/le-tabs/le-tabs.d.ts +0 -108
- package/dist/types/components/le-tag/le-tag.d.ts +0 -78
- package/dist/types/components/le-text/le-text.d.ts +0 -141
- package/dist/types/components/le-turntable/le-turntable.d.ts +0 -55
- package/dist/types/components.d.ts +0 -5716
- package/dist/types/global/app.d.ts +0 -96
- package/dist/types/index.d.ts +0 -16
- package/dist/types/stencil-public-runtime.d.ts +0 -1799
- package/dist/types/types/blocks.d.ts +0 -136
- package/dist/types/types/options.d.ts +0 -143
- package/dist/types/utils/utils.d.ts +0 -54
- 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"le-turntable.js","mappings":"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","names":["LeTurntable","__stencil_proxyCustomElement"],"sources":["src/components/le-turntable/le-turntable.css?tag=le-turntable&encapsulation=shadow","src/components/le-turntable/le-turntable.tsx"],"sourcesContent":[":host {\n display: block;\n cursor: grab;\n}\n\ndiv.turntable {\n width: 100%;\n height: 100%;\n padding: 1px;\n}\n","import { Component, Element, Prop, Listen, h, Watch } from '@stencil/core';\n\n@Component({\n tag: 'le-turntable',\n styleUrl: 'le-turntable.css',\n shadow: true,\n})\nexport class LeTurntable {\n // host element\n @Element() el: HTMLElement;\n\n // transform origin\n // gets the same values as transform-origin css property\n @Prop() center: string = 'center';\n\n // transform rotate\n @Prop() value: number = 0;\n\n @Watch('value')\n updateValue(newValue) {\n if (!this.rotating) {\n this.currentAngle = parseFloat(newValue);\n this.setAngle(this.currentAngle);\n }\n }\n\n /**\n * Internal state\n *\n * using properties instead of @State decoratorm\n * because we are only changing styles of the element and don't\n * need the element to be rerendered\n */\n\n // indicates is the element being manually rotated right now\n rotating = false;\n\n // coordinates of the transform origin in pixels\n centerX: number;\n centerY: number;\n\n // element page (body?) offset in pixels\n pageX: number;\n pageY: number;\n\n currentAngle: number = 0;\n // angle at the start of the drag\n startAngle: number;\n\n /**\n * Event listeners\n */\n handleMouseDown(evt: MouseEvent) {\n // set rotating mode on\n this.rotating = true;\n\n // get start angle\n // getting pageX/Y, because when the element is transformed\n // relative values are useless\n this.startAngle = this.getAngle(evt.pageX, evt.pageY);\n\n // cancel the event to prevent text selection\n evt.preventDefault();\n evt.stopPropagation();\n return false;\n }\n\n /**\n * Fires when the mouse moves\n * checks is the element rotating right now and if it is\n * then calc the current angle and rotate the element\n *\n * TODO: attach events only after the dragStart?\n */\n @Listen('mousemove', { target: 'window' })\n handleMouseMove(evt: MouseEvent) {\n if (this.rotating) {\n // calc angle update and rotate element\n this.setAngle(this.currentAngle + (this.getAngle(evt.pageX, evt.pageY) - this.startAngle));\n return false;\n }\n }\n\n @Listen('mouseup', { target: 'window' })\n handleMouseUp(evt: MouseEvent) {\n if (this.rotating) {\n const angle = this.currentAngle + (this.getAngle(evt.pageX, evt.pageY) - this.startAngle);\n this.setAngle(angle);\n this.currentAngle = angle;\n this.rotating = false;\n return false;\n }\n }\n\n // on window resize the center should be recalculated\n @Listen('resize', { target: 'window' })\n handleWindowResize() {\n this.getTransformOrigin();\n }\n\n /**\n * Component lifecycles\n */\n componentDidLoad() {\n this.el.style.transformOrigin = this.center;\n this.currentAngle = this.value;\n\n this.getTransformOrigin();\n this.setAngle(this.currentAngle);\n }\n\n componentDidUpdate() {\n this.getTransformOrigin();\n }\n\n /**\n * Calculates the transform origin of the component\n * and the page offset in pixels\n *\n * We'll need these values to calculate the angle of pointer event\n */\n getTransformOrigin() {\n // transform origin\n [this.centerX, this.centerY] = window\n .getComputedStyle(this.el, null)\n .transformOrigin.split(' ')\n .map(val => Math.round(parseFloat(val)));\n // page offset\n let t = null;\n const scrollContainer = ((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.scrollLeft === 'number' ? t : document.body;\n const clientRects = this.el.getBoundingClientRect();\n this.pageX = Math.round(clientRects.left + scrollContainer.scrollLeft);\n this.pageY = Math.round(clientRects.top + scrollContainer.scrollTop);\n }\n\n /**\n * Calculates current angle\n *\n * @param {number} posX horizontal mouse position\n * @param {number} posY vertical mouse position\n */\n getAngle(posX: number, posY: number) {\n const x = posX - this.pageX - this.centerX;\n const y = posY - this.pageY - this.centerY;\n const angle = Math.round(((Math.atan2(y, x) * 180) / Math.PI) * 100) / 100;\n return angle;\n }\n\n setAngle(angle) {\n this.el.style.transform = `rotate(${angle}deg)`;\n }\n\n render() {\n return (\n <div class=\"turntable\" onMouseDown={this.handleMouseDown.bind(this)}>\n <slot />\n </div>\n );\n }\n}\n"],"version":3}
|
package/dist/components/utils.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { g as getMode } from './app.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Utility functions for le-kit components
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Generates a unique ID for component instances
|
|
8
|
-
*/
|
|
9
|
-
function generateId(prefix = 'le') {
|
|
10
|
-
return `${prefix}-${Math.random().toString(36).substring(2, 9)}`;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Parses a comma-separated string into an array
|
|
14
|
-
*/
|
|
15
|
-
function parseCommaSeparated(value) {
|
|
16
|
-
if (!value)
|
|
17
|
-
return [];
|
|
18
|
-
return value
|
|
19
|
-
.split(',')
|
|
20
|
-
.map(s => s.trim())
|
|
21
|
-
.filter(Boolean);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Checks if a slot has content
|
|
25
|
-
*/
|
|
26
|
-
function slotHasContent(el, slotName = '') {
|
|
27
|
-
const selector = slotName ? `[slot="${slotName}"]` : ':not([slot])';
|
|
28
|
-
return el.querySelector(selector) !== null;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Sets up a MutationObserver to track mode changes on ancestor elements.
|
|
32
|
-
* Returns a cleanup function to disconnect the observer.
|
|
33
|
-
*
|
|
34
|
-
* If the element or any ancestor has an explicit `mode` attribute, that creates
|
|
35
|
-
* a "mode boundary" - the mode is determined from that point, not from further up.
|
|
36
|
-
* This allows components like le-popover to force default mode for their children.
|
|
37
|
-
*
|
|
38
|
-
* @param el - The component's host element
|
|
39
|
-
* @param callback - Function to call when mode changes, receives the new mode
|
|
40
|
-
* @returns Cleanup function to disconnect the observer
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```tsx
|
|
44
|
-
* export class MyComponent {
|
|
45
|
-
* @Element() el: HTMLElement;
|
|
46
|
-
* @State() adminMode: boolean = false;
|
|
47
|
-
* private disconnectModeObserver?: () => void;
|
|
48
|
-
*
|
|
49
|
-
* connectedCallback() {
|
|
50
|
-
* this.disconnectModeObserver = observeModeChanges(this.el, (mode) => {
|
|
51
|
-
* this.adminMode = mode === 'admin';
|
|
52
|
-
* });
|
|
53
|
-
* }
|
|
54
|
-
*
|
|
55
|
-
* disconnectedCallback() {
|
|
56
|
-
* this.disconnectModeObserver?.();
|
|
57
|
-
* }
|
|
58
|
-
* }
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
function observeModeChanges(el, callback) {
|
|
62
|
-
// Call immediately with current mode
|
|
63
|
-
callback(getMode(el));
|
|
64
|
-
// Set up observer for mode attribute changes
|
|
65
|
-
const observer = new MutationObserver(() => {
|
|
66
|
-
callback(getMode(el));
|
|
67
|
-
});
|
|
68
|
-
// Observe the element itself (for mode boundary changes)
|
|
69
|
-
observer.observe(el, {
|
|
70
|
-
attributes: true,
|
|
71
|
-
attributeFilter: ['mode'],
|
|
72
|
-
});
|
|
73
|
-
// Observe document root
|
|
74
|
-
observer.observe(document.documentElement, {
|
|
75
|
-
attributes: true,
|
|
76
|
-
attributeFilter: ['mode'],
|
|
77
|
-
});
|
|
78
|
-
// Traverse up, crossing shadow boundaries, and observe each element
|
|
79
|
-
let current = el;
|
|
80
|
-
while (current) {
|
|
81
|
-
if (current instanceof Element && current.parentElement) {
|
|
82
|
-
current = current.parentElement;
|
|
83
|
-
observer.observe(current, {
|
|
84
|
-
attributes: true,
|
|
85
|
-
attributeFilter: ['mode'],
|
|
86
|
-
});
|
|
87
|
-
// If this element has an explicit mode, it's a boundary
|
|
88
|
-
if (current.hasAttribute('mode')) {
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
// Check if we're in a shadow root
|
|
94
|
-
const root = current.getRootNode();
|
|
95
|
-
if (root instanceof ShadowRoot) {
|
|
96
|
-
// Cross the shadow boundary and observe the host
|
|
97
|
-
current = root.host;
|
|
98
|
-
observer.observe(current, {
|
|
99
|
-
attributes: true,
|
|
100
|
-
attributeFilter: ['mode'],
|
|
101
|
-
});
|
|
102
|
-
// If the host has an explicit mode, it's a boundary
|
|
103
|
-
if (current.hasAttribute('mode')) {
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
// Return cleanup function
|
|
113
|
-
return () => observer.disconnect();
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Combines multiple class names into a single string, filtering out falsy values.
|
|
117
|
-
*
|
|
118
|
-
* @param classes - arguments of class names, undefined, arrays, objects with boolean values and nested combinations of these
|
|
119
|
-
* @returns Combined class names string
|
|
120
|
-
*/
|
|
121
|
-
function classnames(...classes) {
|
|
122
|
-
const result = [];
|
|
123
|
-
classes.forEach(cls => {
|
|
124
|
-
if (!cls)
|
|
125
|
-
return;
|
|
126
|
-
if (typeof cls === 'string') {
|
|
127
|
-
result.push(cls);
|
|
128
|
-
}
|
|
129
|
-
else if (Array.isArray(cls)) {
|
|
130
|
-
result.push(classnames(...cls));
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cls === 'object') {
|
|
133
|
-
Object.entries(cls).forEach(([key, value]) => {
|
|
134
|
-
if (value) {
|
|
135
|
-
result.push(key);
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
return result.join(' ');
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export { classnames as c, generateId as g, observeModeChanges as o, parseCommaSeparated as p, slotHasContent as s };
|
|
144
|
-
//# sourceMappingURL=utils.js.map
|
|
145
|
-
|
|
146
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"utils.js","mappings":"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","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["/**\n * Utility functions for le-kit components\n */\n\nimport { getMode } from '../global/app';\n\n/**\n * Generates a unique ID for component instances\n */\nexport function generateId(prefix: string = 'le'): string {\n return `${prefix}-${Math.random().toString(36).substring(2, 9)}`;\n}\n\n/**\n * Parses a comma-separated string into an array\n */\nexport function parseCommaSeparated(value: string | undefined): string[] {\n if (!value) return [];\n return value\n .split(',')\n .map(s => s.trim())\n .filter(Boolean);\n}\n\n/**\n * Checks if a slot has content\n */\nexport function slotHasContent(el: HTMLElement, slotName: string = ''): boolean {\n const selector = slotName ? `[slot=\"${slotName}\"]` : ':not([slot])';\n return el.querySelector(selector) !== null;\n}\n\n/**\n * Sets up a MutationObserver to track mode changes on ancestor elements.\n * Returns a cleanup function to disconnect the observer.\n * \n * If the element or any ancestor has an explicit `mode` attribute, that creates\n * a \"mode boundary\" - the mode is determined from that point, not from further up.\n * This allows components like le-popover to force default mode for their children.\n * \n * @param el - The component's host element\n * @param callback - Function to call when mode changes, receives the new mode\n * @returns Cleanup function to disconnect the observer\n * \n * @example\n * ```tsx\n * export class MyComponent {\n * @Element() el: HTMLElement;\n * @State() adminMode: boolean = false;\n * private disconnectModeObserver?: () => void;\n * \n * connectedCallback() {\n * this.disconnectModeObserver = observeModeChanges(this.el, (mode) => {\n * this.adminMode = mode === 'admin';\n * });\n * }\n * \n * disconnectedCallback() {\n * this.disconnectModeObserver?.();\n * }\n * }\n * ```\n */\nexport function observeModeChanges(\n el: HTMLElement,\n callback: (mode: string) => void\n): () => void {\n // Call immediately with current mode\n callback(getMode(el));\n\n // Set up observer for mode attribute changes\n const observer = new MutationObserver(() => {\n callback(getMode(el));\n });\n\n // Observe the element itself (for mode boundary changes)\n observer.observe(el, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n\n // Observe document root\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n\n // Traverse up, crossing shadow boundaries, and observe each element\n let current: Node | null = el;\n while (current) {\n if (current instanceof Element && current.parentElement) {\n current = current.parentElement;\n observer.observe(current, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n // If this element has an explicit mode, it's a boundary\n if ((current as Element).hasAttribute('mode')) {\n break;\n }\n } else {\n // Check if we're in a shadow root\n const root = current.getRootNode();\n if (root instanceof ShadowRoot) {\n // Cross the shadow boundary and observe the host\n current = root.host;\n observer.observe(current, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n // If the host has an explicit mode, it's a boundary\n if ((current as Element).hasAttribute('mode')) {\n break;\n }\n } else {\n break;\n }\n }\n }\n\n // Return cleanup function\n return () => observer.disconnect();\n}\n\n/**\n * Combines multiple class names into a single string, filtering out falsy values.\n * \n * @param classes - arguments of class names, undefined, arrays, objects with boolean values and nested combinations of these\n * @returns Combined class names string\n */\nexport function classnames(...classes: any[]): string {\n const result: string[] = [];\n\n classes.forEach(cls => {\n if (!cls) return;\n\n if (typeof cls === 'string') {\n result.push(cls);\n } else if (Array.isArray(cls)) {\n result.push(classnames(...cls));\n } else if (typeof cls === 'object') {\n Object.entries(cls).forEach(([key, value]) => {\n if (value) {\n result.push(key);\n }\n });\n }\n });\n\n return result.join(' ');\n}\n"],"version":3}
|
package/dist/docs.d.ts
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This is an autogenerated file created by the Stencil compiler.
|
|
4
|
-
* DO NOT MODIFY IT MANUALLY
|
|
5
|
-
*/
|
|
6
|
-
interface ComponentCompilerPropertyComplexType {
|
|
7
|
-
/**
|
|
8
|
-
* The string of the original type annotation in the Stencil source code
|
|
9
|
-
*/
|
|
10
|
-
original: string;
|
|
11
|
-
/**
|
|
12
|
-
* A 'resolved' type, where e.g. imported types have been resolved and inlined
|
|
13
|
-
*
|
|
14
|
-
* For instance, an annotation like `(foo: Foo) => string;` will be
|
|
15
|
-
* converted to `(foo: { foo: string }) => string;`.
|
|
16
|
-
*/
|
|
17
|
-
resolved: string;
|
|
18
|
-
/**
|
|
19
|
-
* A record of the types which were referenced in the assorted type
|
|
20
|
-
* annotation in the original source file.
|
|
21
|
-
*/
|
|
22
|
-
references: ComponentCompilerTypeReferences;
|
|
23
|
-
}
|
|
24
|
-
type ComponentCompilerTypeReferences = Record<string, ComponentCompilerTypeReference>;
|
|
25
|
-
interface ComponentCompilerTypeReference {
|
|
26
|
-
/**
|
|
27
|
-
* A type may be defined:
|
|
28
|
-
* - locally (in the same file as the component that uses it)
|
|
29
|
-
* - globally
|
|
30
|
-
* - by importing it into a file (and is defined elsewhere)
|
|
31
|
-
*/
|
|
32
|
-
location: "local" | "global" | "import";
|
|
33
|
-
/**
|
|
34
|
-
* The path to the type reference, if applicable (global types should not need a path associated with them)
|
|
35
|
-
*/
|
|
36
|
-
path?: string;
|
|
37
|
-
/**
|
|
38
|
-
* An ID for this type which is unique within a Stencil project.
|
|
39
|
-
*/
|
|
40
|
-
id: string;
|
|
41
|
-
}
|
|
42
|
-
interface ComponentCompilerReferencedType {
|
|
43
|
-
/**
|
|
44
|
-
* The path to the module where the type is declared.
|
|
45
|
-
*/
|
|
46
|
-
path: string;
|
|
47
|
-
/**
|
|
48
|
-
* The string of the original type annotation in the Stencil source code
|
|
49
|
-
*/
|
|
50
|
-
declaration: string;
|
|
51
|
-
/**
|
|
52
|
-
* An extracted docstring
|
|
53
|
-
*/
|
|
54
|
-
docstring: string;
|
|
55
|
-
}
|
|
56
|
-
interface ComponentCompilerEventComplexType {
|
|
57
|
-
original: string;
|
|
58
|
-
resolved: string;
|
|
59
|
-
references: ComponentCompilerTypeReferences;
|
|
60
|
-
}
|
|
61
|
-
interface ComponentCompilerMethodComplexType {
|
|
62
|
-
signature: string;
|
|
63
|
-
parameters: JsonDocMethodParameter[];
|
|
64
|
-
references: ComponentCompilerTypeReferences;
|
|
65
|
-
return: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* The Type Library holds information about the types which are used in a
|
|
69
|
-
* Stencil project. During compilation, Stencil gathers information about the
|
|
70
|
-
* types which form part of a component's public API, such as properties
|
|
71
|
-
* decorated with `@Prop`, `@Event`, `@Watch`, etc. This type information is
|
|
72
|
-
* then added to the Type Library, where it can be accessed later on for
|
|
73
|
-
* generating documentation.
|
|
74
|
-
*
|
|
75
|
-
* This information is included in the file written by the `docs-json` output
|
|
76
|
-
* target (see {@link JsonDocs.typeLibrary}).
|
|
77
|
-
*/
|
|
78
|
-
export type JsonDocsTypeLibrary = Record<string, ComponentCompilerReferencedType>;
|
|
79
|
-
/**
|
|
80
|
-
* A container for JSDoc metadata for a project
|
|
81
|
-
*/
|
|
82
|
-
export interface JsonDocs {
|
|
83
|
-
/**
|
|
84
|
-
* The metadata for the JSDocs for each component in a Stencil project
|
|
85
|
-
*/
|
|
86
|
-
components: JsonDocsComponent[];
|
|
87
|
-
/**
|
|
88
|
-
* The timestamp at which the metadata was generated, in the format YYYY-MM-DDThh:mm:ss
|
|
89
|
-
*/
|
|
90
|
-
timestamp: string;
|
|
91
|
-
compiler: {
|
|
92
|
-
/**
|
|
93
|
-
* The name of the compiler that generated the metadata
|
|
94
|
-
*/
|
|
95
|
-
name: string;
|
|
96
|
-
/**
|
|
97
|
-
* The version of the Stencil compiler that generated the metadata
|
|
98
|
-
*/
|
|
99
|
-
version: string;
|
|
100
|
-
/**
|
|
101
|
-
* The version of TypeScript that was used to generate the metadata
|
|
102
|
-
*/
|
|
103
|
-
typescriptVersion: string;
|
|
104
|
-
};
|
|
105
|
-
typeLibrary: JsonDocsTypeLibrary;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Container for JSDoc metadata for a single Stencil component
|
|
109
|
-
*/
|
|
110
|
-
export interface JsonDocsComponent {
|
|
111
|
-
/**
|
|
112
|
-
* The directory containing the Stencil component, minus the file name.
|
|
113
|
-
*
|
|
114
|
-
* @example /workspaces/stencil-project/src/components/my-component
|
|
115
|
-
*/
|
|
116
|
-
dirPath?: string;
|
|
117
|
-
/**
|
|
118
|
-
* The name of the file containing the Stencil component, with no path
|
|
119
|
-
*
|
|
120
|
-
* @example my-component.tsx
|
|
121
|
-
*/
|
|
122
|
-
fileName?: string;
|
|
123
|
-
/**
|
|
124
|
-
* The full path of the file containing the Stencil component
|
|
125
|
-
*
|
|
126
|
-
* @example /workspaces/stencil-project/src/components/my-component/my-component.tsx
|
|
127
|
-
*/
|
|
128
|
-
filePath?: string;
|
|
129
|
-
/**
|
|
130
|
-
* The path to the component's `readme.md` file, including the filename
|
|
131
|
-
*
|
|
132
|
-
* @example /workspaces/stencil-project/src/components/my-component/readme.md
|
|
133
|
-
*/
|
|
134
|
-
readmePath?: string;
|
|
135
|
-
/**
|
|
136
|
-
* The path to the component's `usage` directory
|
|
137
|
-
*
|
|
138
|
-
* @example /workspaces/stencil-project/src/components/my-component/usage/
|
|
139
|
-
*/
|
|
140
|
-
usagesDir?: string;
|
|
141
|
-
/**
|
|
142
|
-
* The encapsulation strategy for a component
|
|
143
|
-
*/
|
|
144
|
-
encapsulation: "shadow" | "scoped" | "none";
|
|
145
|
-
/**
|
|
146
|
-
* The tag name for the component, for use in HTML
|
|
147
|
-
*/
|
|
148
|
-
tag: string;
|
|
149
|
-
/**
|
|
150
|
-
* The contents of a component's `readme.md` that are user generated.
|
|
151
|
-
*
|
|
152
|
-
* Auto-generated contents are not stored in this reference.
|
|
153
|
-
*/
|
|
154
|
-
readme: string;
|
|
155
|
-
/**
|
|
156
|
-
* The description of a Stencil component, found in the JSDoc that sits above the component's declaration
|
|
157
|
-
*/
|
|
158
|
-
docs: string;
|
|
159
|
-
/**
|
|
160
|
-
* JSDoc tags found in the JSDoc comment written atop a component's declaration
|
|
161
|
-
*/
|
|
162
|
-
docsTags: JsonDocsTag[];
|
|
163
|
-
/**
|
|
164
|
-
* The text from the class-level JSDoc for a Stencil component, if present.
|
|
165
|
-
*/
|
|
166
|
-
overview?: string;
|
|
167
|
-
/**
|
|
168
|
-
* A mapping of usage example file names to their contents for the component.
|
|
169
|
-
*/
|
|
170
|
-
usage: JsonDocsUsage;
|
|
171
|
-
/**
|
|
172
|
-
* Array of metadata for a component's `@Prop`s
|
|
173
|
-
*/
|
|
174
|
-
props: JsonDocsProp[];
|
|
175
|
-
/**
|
|
176
|
-
* Array of metadata for a component's `@Method`s
|
|
177
|
-
*/
|
|
178
|
-
methods: JsonDocsMethod[];
|
|
179
|
-
/**
|
|
180
|
-
* Array of metadata for a component's `@Event`s
|
|
181
|
-
*/
|
|
182
|
-
events: JsonDocsEvent[];
|
|
183
|
-
/**
|
|
184
|
-
* Array of metadata for a component's `@Listen` handlers
|
|
185
|
-
*/
|
|
186
|
-
listeners: JsonDocsListener[];
|
|
187
|
-
/**
|
|
188
|
-
* Array of metadata for a component's CSS styling information
|
|
189
|
-
*/
|
|
190
|
-
styles: JsonDocsStyle[];
|
|
191
|
-
/**
|
|
192
|
-
* Array of component Slot information, generated from `@slot` tags
|
|
193
|
-
*/
|
|
194
|
-
slots: JsonDocsSlot[];
|
|
195
|
-
/**
|
|
196
|
-
* Array of component Parts information, generate from `@part` tags
|
|
197
|
-
*/
|
|
198
|
-
parts: JsonDocsPart[];
|
|
199
|
-
/**
|
|
200
|
-
* Array of metadata describing where the current component is used
|
|
201
|
-
*/
|
|
202
|
-
dependents: string[];
|
|
203
|
-
/**
|
|
204
|
-
* Array of metadata listing the components which are used in current component
|
|
205
|
-
*/
|
|
206
|
-
dependencies: string[];
|
|
207
|
-
/**
|
|
208
|
-
* Describes a tree of components coupling
|
|
209
|
-
*/
|
|
210
|
-
dependencyGraph: JsonDocsDependencyGraph;
|
|
211
|
-
/**
|
|
212
|
-
* A deprecation reason/description found following a `@deprecated` tag
|
|
213
|
-
*/
|
|
214
|
-
deprecation?: string;
|
|
215
|
-
}
|
|
216
|
-
export interface JsonDocsDependencyGraph {
|
|
217
|
-
[tagName: string]: string[];
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* A descriptor for a single JSDoc tag found in a block comment
|
|
221
|
-
*/
|
|
222
|
-
export interface JsonDocsTag {
|
|
223
|
-
/**
|
|
224
|
-
* The tag name (immediately following the '@')
|
|
225
|
-
*/
|
|
226
|
-
name: string;
|
|
227
|
-
/**
|
|
228
|
-
* The description that immediately follows the tag name
|
|
229
|
-
*/
|
|
230
|
-
text?: string;
|
|
231
|
-
}
|
|
232
|
-
export interface JsonDocsValue {
|
|
233
|
-
value?: string;
|
|
234
|
-
type: string;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* A mapping of file names to their contents.
|
|
238
|
-
*
|
|
239
|
-
* This type is meant to be used when reading one or more usage markdown files associated with a component. For the
|
|
240
|
-
* given directory structure:
|
|
241
|
-
* ```
|
|
242
|
-
* src/components/my-component
|
|
243
|
-
* ├── my-component.tsx
|
|
244
|
-
* └── usage
|
|
245
|
-
* ├── bar.md
|
|
246
|
-
* └── foo.md
|
|
247
|
-
* ```
|
|
248
|
-
* an instance of this type would include the name of the markdown file, mapped to its contents:
|
|
249
|
-
* ```ts
|
|
250
|
-
* {
|
|
251
|
-
* 'bar': STRING_CONTENTS_OF_BAR.MD
|
|
252
|
-
* 'foo': STRING_CONTENTS_OF_FOO.MD
|
|
253
|
-
* }
|
|
254
|
-
* ```
|
|
255
|
-
*/
|
|
256
|
-
export interface JsonDocsUsage {
|
|
257
|
-
[key: string]: string;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* An intermediate representation of a `@Prop` decorated member's JSDoc
|
|
261
|
-
*/
|
|
262
|
-
export interface JsonDocsProp {
|
|
263
|
-
/**
|
|
264
|
-
* the name of the prop
|
|
265
|
-
*/
|
|
266
|
-
name: string;
|
|
267
|
-
complexType?: ComponentCompilerPropertyComplexType;
|
|
268
|
-
/**
|
|
269
|
-
* the type of the prop, in terms of the TypeScript type system (as opposed to JavaScript's or HTML's)
|
|
270
|
-
*/
|
|
271
|
-
type: string;
|
|
272
|
-
/**
|
|
273
|
-
* `true` if the prop was configured as "mutable" where it was declared, `false` otherwise
|
|
274
|
-
*/
|
|
275
|
-
mutable: boolean;
|
|
276
|
-
/**
|
|
277
|
-
* The name of the attribute that is exposed to configure a compiled web component
|
|
278
|
-
*/
|
|
279
|
-
attr?: string;
|
|
280
|
-
/**
|
|
281
|
-
* `true` if the prop was configured to "reflect" back to HTML where it (the prop) was declared, `false` otherwise
|
|
282
|
-
*/
|
|
283
|
-
reflectToAttr: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* the JSDoc description text associated with the prop
|
|
286
|
-
*/
|
|
287
|
-
docs: string;
|
|
288
|
-
/**
|
|
289
|
-
* JSDoc tags associated with the prop
|
|
290
|
-
*/
|
|
291
|
-
docsTags: JsonDocsTag[];
|
|
292
|
-
/**
|
|
293
|
-
* The default value of the prop
|
|
294
|
-
*/
|
|
295
|
-
default?: string;
|
|
296
|
-
/**
|
|
297
|
-
* Deprecation text associated with the prop. This is the text that immediately follows a `@deprecated` tag
|
|
298
|
-
*/
|
|
299
|
-
deprecation?: string;
|
|
300
|
-
values: JsonDocsValue[];
|
|
301
|
-
/**
|
|
302
|
-
* `true` if a component is declared with a '?', `false` otherwise
|
|
303
|
-
*
|
|
304
|
-
* @example
|
|
305
|
-
* ```tsx
|
|
306
|
-
* @Prop() componentProps?: any;
|
|
307
|
-
* ```
|
|
308
|
-
*/
|
|
309
|
-
optional: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* `true` if a component is declared with a '!', `false` otherwise
|
|
312
|
-
*
|
|
313
|
-
* @example
|
|
314
|
-
* ```tsx
|
|
315
|
-
* @Prop() componentProps!: any;
|
|
316
|
-
* ```
|
|
317
|
-
*/
|
|
318
|
-
required: boolean;
|
|
319
|
-
/**
|
|
320
|
-
* `true` if the prop has a `get()`. `false` otherwise
|
|
321
|
-
*/
|
|
322
|
-
getter: boolean;
|
|
323
|
-
/**
|
|
324
|
-
* `true` if the prop has a `set()`. `false` otherwise
|
|
325
|
-
*/
|
|
326
|
-
setter: boolean;
|
|
327
|
-
}
|
|
328
|
-
export interface JsonDocsMethod {
|
|
329
|
-
name: string;
|
|
330
|
-
docs: string;
|
|
331
|
-
docsTags: JsonDocsTag[];
|
|
332
|
-
deprecation?: string;
|
|
333
|
-
signature: string;
|
|
334
|
-
returns: JsonDocsMethodReturn;
|
|
335
|
-
parameters: JsonDocMethodParameter[];
|
|
336
|
-
complexType: ComponentCompilerMethodComplexType;
|
|
337
|
-
}
|
|
338
|
-
export interface JsonDocsMethodReturn {
|
|
339
|
-
type: string;
|
|
340
|
-
docs: string;
|
|
341
|
-
}
|
|
342
|
-
export interface JsonDocMethodParameter {
|
|
343
|
-
name: string;
|
|
344
|
-
type: string;
|
|
345
|
-
docs: string;
|
|
346
|
-
}
|
|
347
|
-
export interface JsonDocsEvent {
|
|
348
|
-
event: string;
|
|
349
|
-
bubbles: boolean;
|
|
350
|
-
cancelable: boolean;
|
|
351
|
-
composed: boolean;
|
|
352
|
-
complexType: ComponentCompilerEventComplexType;
|
|
353
|
-
docs: string;
|
|
354
|
-
docsTags: JsonDocsTag[];
|
|
355
|
-
deprecation?: string;
|
|
356
|
-
detail: string;
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Type describing a CSS Style, as described by a JSDoc-style comment
|
|
360
|
-
*/
|
|
361
|
-
export interface JsonDocsStyle {
|
|
362
|
-
/**
|
|
363
|
-
* The name of the style
|
|
364
|
-
*/
|
|
365
|
-
name: string;
|
|
366
|
-
/**
|
|
367
|
-
* The type/description associated with the style
|
|
368
|
-
*/
|
|
369
|
-
docs: string;
|
|
370
|
-
/**
|
|
371
|
-
* The annotation used in the JSDoc of the style (e.g. `@prop`)
|
|
372
|
-
*/
|
|
373
|
-
annotation: string;
|
|
374
|
-
/**
|
|
375
|
-
* The mode associated with the style
|
|
376
|
-
*/
|
|
377
|
-
mode: string | undefined;
|
|
378
|
-
}
|
|
379
|
-
export interface JsonDocsListener {
|
|
380
|
-
event: string;
|
|
381
|
-
target?: string;
|
|
382
|
-
capture: boolean;
|
|
383
|
-
passive: boolean;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* A descriptor for a slot
|
|
387
|
-
*
|
|
388
|
-
* Objects of this type are translated from the JSDoc tag, `@slot`
|
|
389
|
-
*/
|
|
390
|
-
export interface JsonDocsSlot {
|
|
391
|
-
/**
|
|
392
|
-
* The name of the slot. Defaults to an empty string for an unnamed slot.
|
|
393
|
-
*/
|
|
394
|
-
name: string;
|
|
395
|
-
/**
|
|
396
|
-
* A textual description of the slot.
|
|
397
|
-
*/
|
|
398
|
-
docs: string;
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* A descriptor of a CSS Shadow Part
|
|
402
|
-
*
|
|
403
|
-
* Objects of this type are translated from the JSDoc tag, `@part`, or the 'part'
|
|
404
|
-
* attribute on a component in TSX
|
|
405
|
-
*/
|
|
406
|
-
export interface JsonDocsPart {
|
|
407
|
-
/**
|
|
408
|
-
* The name of the Shadow part
|
|
409
|
-
*/
|
|
410
|
-
name: string;
|
|
411
|
-
/**
|
|
412
|
-
* A textual description of the Shadow part.
|
|
413
|
-
*/
|
|
414
|
-
docs: string;
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* Represents a parsed block comment in a CSS, Sass, etc. file for a custom property.
|
|
418
|
-
*/
|
|
419
|
-
export interface StyleDoc {
|
|
420
|
-
/**
|
|
421
|
-
* The name of the CSS property
|
|
422
|
-
*/
|
|
423
|
-
name: string;
|
|
424
|
-
/**
|
|
425
|
-
* The user-defined description of the CSS property
|
|
426
|
-
*/
|
|
427
|
-
docs: string;
|
|
428
|
-
/**
|
|
429
|
-
* The JSDoc-style annotation (e.g. `@prop`) that was used in the block comment to detect the comment.
|
|
430
|
-
* Used to inform Stencil where the start of a new property's description starts (and where the previous description
|
|
431
|
-
* ends).
|
|
432
|
-
*/
|
|
433
|
-
annotation: "prop";
|
|
434
|
-
/**
|
|
435
|
-
* The Stencil style-mode that is associated with this property.
|
|
436
|
-
*/
|
|
437
|
-
mode: string | undefined;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
export {};
|
|
441
|
-
|
|
442
|
-
declare const _default: JsonDocs;
|
|
443
|
-
export default _default;
|