@infineon/infineon-design-system-stencil 30.9.3--canary.1678.5b4a7e71bc0aa2e3f495f00864e3c9507193dd72.0 → 30.9.3--canary.1640.e9ef59f97cf624f94f0207779497ed5e51e1ed11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ifx-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +19 -21
- package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-modal.cjs.entry.js +8 -8
- package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js +5 -5
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-navbar.cjs.entry.js +3 -3
- package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-search-bar.cjs.entry.js +5 -5
- package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +9 -10
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-status.cjs.entry.js +3 -3
- package/dist/cjs/ifx-status.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +22 -20
- package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-tabs.cjs.entry.js +6 -6
- package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +2 -2
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +81 -7
- package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
- package/dist/collection/components/accordion/accordionItem.js +10 -10
- package/dist/collection/components/accordion/accordionItem.js.map +1 -1
- package/dist/collection/components/alert/alert.stories.js +45 -12
- package/dist/collection/components/alert/alert.stories.js.map +1 -1
- package/dist/collection/components/badge/badge.stories.js +28 -7
- package/dist/collection/components/badge/badge.stories.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +3 -3
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +87 -13
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
- package/dist/collection/components/button/button.stories.js +101 -9
- package/dist/collection/components/button/button.stories.js.map +1 -1
- package/dist/collection/components/card/card.stories.js +85 -4
- package/dist/collection/components/card/card.stories.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +72 -14
- package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
- package/dist/collection/components/chip/chip-item/chip-item.js +4 -4
- package/dist/collection/components/chip/chip-item/chip-item.js.map +1 -1
- package/dist/collection/components/chip/chip.js +15 -15
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/chip/chip.stories.js +21 -26
- package/dist/collection/components/chip/chip.stories.js.map +1 -1
- package/dist/collection/components/chip/interfaces.js.map +1 -1
- package/dist/collection/components/content-switcher/content-switcher.stories.js +65 -3
- package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.stories.js +97 -7
- package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +222 -64
- package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
- package/dist/collection/components/footer/footer.stories.js +31 -1
- package/dist/collection/components/footer/footer.stories.js.map +1 -1
- package/dist/collection/components/icon/infineonIconStencil.stories.js +7 -2
- package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.stories.js +61 -5
- package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
- package/dist/collection/components/link/link.stories.js +53 -4
- package/dist/collection/components/link/link.stories.js.map +1 -1
- package/dist/collection/components/modal/modal.js +10 -10
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal/modal.stories.js +96 -19
- package/dist/collection/components/modal/modal.stories.js.map +1 -1
- package/dist/collection/components/navigation/navbar/navbar.js +4 -4
- package/dist/collection/components/navigation/navbar/navbar.js.map +1 -1
- package/dist/collection/components/navigation/navbar/navbar.stories.js +176 -12
- package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar-item.js +11 -32
- package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js +184 -19
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
- package/dist/collection/components/notification/notification.stories.js +55 -8
- package/dist/collection/components/notification/notification.stories.js.map +1 -1
- package/dist/collection/components/number-indicator/number-indicator.stories.js +19 -0
- package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -31
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pagination/pagination.stories.js +19 -14
- package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
- package/dist/collection/components/progress-bar/progress-bar.stories.js +31 -8
- package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
- package/dist/collection/components/radio-button/radio-button.stories.js +66 -13
- package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
- package/dist/collection/components/search-bar/search-bar.js +6 -6
- package/dist/collection/components/search-bar/search-bar.js.map +1 -1
- package/dist/collection/components/search-bar/search-bar.stories.js +58 -9
- package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
- package/dist/collection/components/search-field/search-field.stories.js +54 -8
- package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
- package/dist/collection/components/segmented-control/segmented-control.stories.js +1 -10
- package/dist/collection/components/segmented-control/segmented-control.stories.js.map +1 -1
- package/dist/collection/components/select/multi-select/multiselect.js +6 -6
- package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
- package/dist/collection/components/select/multi-select/multiselect.stories.js +131 -5
- package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
- package/dist/collection/components/select/single-select/select.stories.js +83 -26
- package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
- package/dist/collection/components/slider/slider.stories.js +97 -13
- package/dist/collection/components/slider/slider.stories.js.map +1 -1
- package/dist/collection/components/spinner/spinner.stories.js +34 -2
- package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
- package/dist/collection/components/status/status.css +20 -140
- package/dist/collection/components/status/status.js +5 -5
- package/dist/collection/components/status/status.js.map +1 -1
- package/dist/collection/components/status/status.stories.js +27 -3
- package/dist/collection/components/status/status.stories.js.map +1 -1
- package/dist/collection/components/stepper/stepper.stories.js +54 -25
- package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
- package/dist/collection/components/switch/switch.stories.js +51 -4
- package/dist/collection/components/switch/switch.stories.js.map +1 -1
- package/dist/collection/components/table-advanced-version/table.js +23 -21
- package/dist/collection/components/table-advanced-version/table.js.map +1 -1
- package/dist/collection/components/table-advanced-version/table.stories.js +124 -39
- package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
- package/dist/collection/components/table-basic-version/table.stories.js +31 -4
- package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +7 -7
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tabs/tabs.stories.js +104 -29
- package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
- package/dist/collection/components/tag/tag.stories.js +18 -0
- package/dist/collection/components/tag/tag.stories.js.map +1 -1
- package/dist/collection/components/text-field/text-field.stories.js +116 -13
- package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +1 -3
- package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +48 -4
- package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
- package/dist/components/ifx-accordion-item.js +1 -1
- package/dist/components/ifx-accordion.js +1 -1
- package/dist/components/ifx-breadcrumb-item-label.js +2 -2
- package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
- package/dist/components/ifx-breadcrumb.js +3 -3
- package/dist/components/ifx-breadcrumb.js.map +1 -1
- package/dist/components/ifx-chip-item.js +1 -1
- package/dist/components/ifx-chip.js +1 -1
- package/dist/components/ifx-faq.js +2 -2
- package/dist/components/ifx-modal.js +8 -8
- package/dist/components/ifx-modal.js.map +1 -1
- package/dist/components/ifx-multiselect.js +1 -1
- package/dist/components/ifx-navbar.js +4 -4
- package/dist/components/ifx-navbar.js.map +1 -1
- package/dist/components/ifx-pagination.js +1 -1
- package/dist/components/ifx-search-bar.js +5 -5
- package/dist/components/ifx-search-bar.js.map +1 -1
- package/dist/components/ifx-set-filter.js +1 -1
- package/dist/components/ifx-sidebar-item.js +11 -13
- package/dist/components/ifx-sidebar-item.js.map +1 -1
- package/dist/components/ifx-status.js +3 -3
- package/dist/components/ifx-status.js.map +1 -1
- package/dist/components/ifx-table.js +26 -24
- package/dist/components/ifx-table.js.map +1 -1
- package/dist/components/ifx-tabs.js +6 -6
- package/dist/components/ifx-tabs.js.map +1 -1
- package/dist/components/{p-ecfb353b.js → p-28a8736e.js} +2 -4
- package/dist/components/p-28a8736e.js.map +1 -0
- package/dist/components/{p-9f15ef5a.js → p-61ecfa9a.js} +15 -15
- package/dist/components/p-61ecfa9a.js.map +1 -0
- package/dist/components/{p-474e011d.js → p-62eff23e.js} +8 -8
- package/dist/components/{p-474e011d.js.map → p-62eff23e.js.map} +1 -1
- package/dist/components/{p-2167e98c.js → p-a6310ccf.js} +3 -3
- package/dist/components/{p-2167e98c.js.map → p-a6310ccf.js.map} +1 -1
- package/dist/components/{p-6613f3b4.js → p-dd91260d.js} +5 -5
- package/dist/components/p-dd91260d.js.map +1 -0
- package/dist/components/{p-f0953b8a.js → p-fce5491f.js} +6 -6
- package/dist/components/p-fce5491f.js.map +1 -0
- package/dist/esm/ifx-accordion_2.entry.js +7 -7
- package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
- package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
- package/dist/esm/ifx-breadcrumb.entry.js +3 -3
- package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ifx-chip_3.entry.js +19 -21
- package/dist/esm/ifx-chip_3.entry.js.map +1 -1
- package/dist/esm/ifx-modal.entry.js +8 -8
- package/dist/esm/ifx-modal.entry.js.map +1 -1
- package/dist/esm/ifx-multiselect_2.entry.js +5 -5
- package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
- package/dist/esm/ifx-navbar.entry.js +3 -3
- package/dist/esm/ifx-navbar.entry.js.map +1 -1
- package/dist/esm/ifx-search-bar.entry.js +5 -5
- package/dist/esm/ifx-search-bar.entry.js.map +1 -1
- package/dist/esm/ifx-sidebar-item.entry.js +9 -10
- package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
- package/dist/esm/ifx-status.entry.js +3 -3
- package/dist/esm/ifx-status.entry.js.map +1 -1
- package/dist/esm/ifx-table.entry.js +22 -20
- package/dist/esm/ifx-table.entry.js.map +1 -1
- package/dist/esm/ifx-tabs.entry.js +6 -6
- package/dist/esm/ifx-tabs.entry.js.map +1 -1
- package/dist/esm/infineon-design-system-stencil.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/p-134d043c.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-134d043c.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-ef68ce70.entry.js → p-23978a74.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-23978a74.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-45e42392.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-45e42392.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-f0884a54.entry.js → p-520ddc60.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-520ddc60.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-56e92d85.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-56e92d85.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-73505b17.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-56426c94.entry.js.map → p-73505b17.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-7fbfd8a9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-7fbfd8a9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-878db58b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-878db58b.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-aaada3f2.entry.js → p-8e416f0e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-8e416f0e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-19a2740f.entry.js → p-ae1791a8.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-ae1791a8.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-c27f4f95.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-c27f4f95.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-f6a9f419.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-f6a9f419.entry.js.map +1 -0
- package/dist/types/components/accordion/accordion.stories.d.ts +67 -1
- package/dist/types/components/accordion/accordionItem.d.ts +3 -3
- package/dist/types/components/alert/alert.stories.d.ts +38 -11
- package/dist/types/components/badge/badge.stories.d.ts +23 -3
- package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +83 -1
- package/dist/types/components/button/button.stories.d.ts +92 -16
- package/dist/types/components/card/card.stories.d.ts +95 -1
- package/dist/types/components/checkbox/checkbox.stories.d.ts +65 -10
- package/dist/types/components/chip/chip-item/chip-item.d.ts +1 -1
- package/dist/types/components/chip/chip.d.ts +1 -1
- package/dist/types/components/chip/chip.stories.d.ts +11 -4
- package/dist/types/components/chip/interfaces.d.ts +1 -1
- package/dist/types/components/content-switcher/content-switcher.stories.d.ts +66 -0
- package/dist/types/components/date-picker/date-picker.stories.d.ts +89 -2
- package/dist/types/components/dropdown/dropdown.stories.d.ts +90 -33
- package/dist/types/components/footer/footer.stories.d.ts +26 -0
- package/dist/types/components/icon/infineonIconStencil.stories.d.ts +5 -0
- package/dist/types/components/icon-button/icon-button.stories.d.ts +56 -8
- package/dist/types/components/link/link.stories.d.ts +49 -6
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal/modal.stories.d.ts +77 -3
- package/dist/types/components/navigation/navbar/navbar.stories.d.ts +222 -6
- package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +2 -3
- package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +161 -7
- package/dist/types/components/notification/notification.stories.d.ts +46 -2
- package/dist/types/components/number-indicator/number-indicator.stories.d.ts +19 -0
- package/dist/types/components/pagination/pagination.d.ts +0 -2
- package/dist/types/components/pagination/pagination.stories.d.ts +12 -7
- package/dist/types/components/progress-bar/progress-bar.stories.d.ts +25 -4
- package/dist/types/components/radio-button/radio-button.stories.d.ts +59 -8
- package/dist/types/components/search-bar/search-bar.d.ts +1 -1
- package/dist/types/components/search-bar/search-bar.stories.d.ts +60 -3
- package/dist/types/components/search-field/search-field.stories.d.ts +45 -6
- package/dist/types/components/segmented-control/segmented-control.stories.d.ts +0 -3
- package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
- package/dist/types/components/select/multi-select/multiselect.stories.d.ts +125 -0
- package/dist/types/components/select/single-select/select.stories.d.ts +67 -24
- package/dist/types/components/slider/slider.stories.d.ts +110 -0
- package/dist/types/components/spinner/spinner.stories.d.ts +32 -0
- package/dist/types/components/status/status.d.ts +1 -1
- package/dist/types/components/status/status.stories.d.ts +24 -2
- package/dist/types/components/stepper/stepper.stories.d.ts +30 -6
- package/dist/types/components/switch/switch.stories.d.ts +47 -1
- package/dist/types/components/table-advanced-version/table.stories.d.ts +50 -11
- package/dist/types/components/table-basic-version/table.stories.d.ts +21 -1
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/tabs/tabs.stories.d.ts +88 -9
- package/dist/types/components/tag/tag.stories.d.ts +20 -0
- package/dist/types/components/text-field/text-field.stories.d.ts +106 -10
- package/dist/types/components/tooltip/tooltip.stories.d.ts +41 -6
- package/dist/types/components.d.ts +22 -28
- package/package.json +3 -2
- package/dist/components/p-6613f3b4.js.map +0 -1
- package/dist/components/p-9f15ef5a.js.map +0 -1
- package/dist/components/p-ecfb353b.js.map +0 -1
- package/dist/components/p-f0953b8a.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-022dbe8b.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-022dbe8b.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-19a2740f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-1c5c318c.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1c5c318c.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-56426c94.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5a83ef48.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5a83ef48.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-7c9ca144.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7c9ca144.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-974829c7.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-974829c7.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-9a013f52.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-9a013f52.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-a6c07e60.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-a6c07e60.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-aaada3f2.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ef68ce70.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-f0884a54.entry.js.map +0 -1
@@ -1,41 +1,121 @@
|
|
1
1
|
import { action } from "@storybook/addon-actions";
|
2
|
+
import { icons } from "@infineon/infineon-icons";
|
2
3
|
export default {
|
3
4
|
title: 'Components/Tabs',
|
4
5
|
tags: ['autodocs'],
|
5
6
|
component: 'ifx-tabs',
|
7
|
+
args: {
|
8
|
+
amountOfTabs: 3,
|
9
|
+
orientation: 'horizontal',
|
10
|
+
icon: '',
|
11
|
+
header: 'Tab',
|
12
|
+
disabled: false,
|
13
|
+
fullWidth: false,
|
14
|
+
},
|
6
15
|
argTypes: {
|
7
|
-
amountOfTabs: {
|
16
|
+
amountOfTabs: {
|
17
|
+
name: 'Amount of Tabs', control: 'number',
|
18
|
+
description: 'Set the number of tabs.',
|
19
|
+
table: {
|
20
|
+
category: 'story controls',
|
21
|
+
type: {
|
22
|
+
summary: 'number'
|
23
|
+
}
|
24
|
+
}
|
25
|
+
},
|
8
26
|
orientation: {
|
9
|
-
name: 'Orientation',
|
10
27
|
options: ['horizontal', 'vertical'],
|
11
28
|
control: { type: 'radio' },
|
29
|
+
description: 'Set the orientation of the tabs.',
|
30
|
+
table: {
|
31
|
+
category: 'ifx-tabs props',
|
32
|
+
defaultValue: {
|
33
|
+
summary: 'horizontal',
|
34
|
+
},
|
35
|
+
type: {
|
36
|
+
summary: 'horizontal | vertical'
|
37
|
+
}
|
38
|
+
}
|
12
39
|
},
|
13
40
|
icon: {
|
14
|
-
name: '
|
15
|
-
control: { type: '
|
41
|
+
name: 'icon',
|
42
|
+
control: { type: 'select' },
|
43
|
+
options: ['none', ...Object.values(icons).map(i => i['name'])],
|
44
|
+
description: 'Set the icon of the tab. Choose "none" to display no icon.',
|
45
|
+
table: {
|
46
|
+
category: 'ifx-tab props',
|
47
|
+
defaultValue: {
|
48
|
+
summary: ''
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
summary: 'string'
|
52
|
+
}
|
53
|
+
}
|
16
54
|
},
|
17
55
|
fullWidth: {
|
18
|
-
name: 'Full width',
|
19
56
|
control: { type: 'boolean' },
|
20
|
-
description: "Adds flex: 1 to the ifx-tab child components, thus making them occupy the full width of their parent"
|
57
|
+
description: "Adds flex: 1 to the ifx-tab child components, thus making them occupy the full width of their parent",
|
58
|
+
table: {
|
59
|
+
category: 'ifx-tabs props',
|
60
|
+
defaultValue: {
|
61
|
+
summary: 'false'
|
62
|
+
},
|
63
|
+
type: {
|
64
|
+
summary: 'boolean'
|
65
|
+
}
|
66
|
+
}
|
21
67
|
},
|
22
68
|
iconPosition: {
|
23
|
-
name: 'Icon position',
|
24
69
|
options: ['left', 'right'],
|
25
70
|
control: { type: 'radio' },
|
26
|
-
|
71
|
+
description: 'Set the position of the icon.',
|
72
|
+
table: {
|
73
|
+
category: 'ifx-tab props',
|
74
|
+
defaultValue: {
|
75
|
+
summary: 'left'
|
76
|
+
},
|
77
|
+
type: {
|
78
|
+
summary: 'left | right'
|
79
|
+
},
|
80
|
+
},
|
27
81
|
},
|
28
82
|
activeTabIndex: {
|
29
|
-
|
30
|
-
|
83
|
+
description: 'Set the tab as active by providing the index (tab can not be disabled).',
|
84
|
+
table: {
|
85
|
+
category: 'ifx-tabs props',
|
86
|
+
defaultValue: { summary: '0' },
|
87
|
+
type: {
|
88
|
+
summary: 'number'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
},
|
92
|
+
header: {
|
93
|
+
control: 'text',
|
94
|
+
description: 'Set the header of the tab.',
|
95
|
+
table: {
|
96
|
+
defaultValue: { summary: 'Tab' },
|
97
|
+
category: 'ifx-tab props',
|
98
|
+
type: {
|
99
|
+
summary: 'string'
|
100
|
+
}
|
101
|
+
}
|
102
|
+
},
|
103
|
+
disabled: {
|
104
|
+
control: 'boolean',
|
105
|
+
description: 'Set the tab to disabled. In the storybook, the second tab will be disabled.',
|
106
|
+
table: {
|
107
|
+
category: 'ifx-tab props',
|
108
|
+
defaultValue: { summary: 'false' },
|
109
|
+
}
|
31
110
|
},
|
32
|
-
|
33
|
-
action: '
|
34
|
-
description: 'Custom event
|
111
|
+
ifxChange: {
|
112
|
+
action: 'ifxChange',
|
113
|
+
description: 'Custom event that is emitted when the active tab changes.',
|
35
114
|
table: {
|
115
|
+
category: 'custom events',
|
36
116
|
type: {
|
37
117
|
summary: 'Framework integration',
|
38
|
-
detail: 'React:
|
118
|
+
detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
|
39
119
|
},
|
40
120
|
},
|
41
121
|
},
|
@@ -46,17 +126,16 @@ const Template = args => {
|
|
46
126
|
tabsElement.setAttribute('orientation', args.orientation);
|
47
127
|
tabsElement.setAttribute('active-tab-index', args.activeTabIndex);
|
48
128
|
tabsElement.setAttribute('full-width', args.fullWidth);
|
49
|
-
tabsElement.addEventListener('
|
129
|
+
tabsElement.addEventListener('ifxChange', action(`ifxChange`));
|
50
130
|
for (let i = 0; i < args.amountOfTabs; i++) {
|
51
131
|
const tabContent = document.createElement('ifx-tab');
|
52
|
-
tabContent.setAttribute('header',
|
132
|
+
tabContent.setAttribute('header', `${args.header} ${i + 1}`);
|
53
133
|
if (i == 1) {
|
54
|
-
tabContent.setAttribute('disabled',
|
55
|
-
}
|
56
|
-
if (args.icon) {
|
57
|
-
tabContent.setAttribute('icon', 'c-check-16');
|
58
|
-
tabContent.setAttribute('icon-position', args.iconPosition);
|
134
|
+
tabContent.setAttribute('disabled', args.disabled);
|
59
135
|
}
|
136
|
+
var icon = args.icon === 'none' ? '' : args.icon;
|
137
|
+
tabContent.setAttribute('icon', icon);
|
138
|
+
tabContent.setAttribute('icon-position', args.iconPosition);
|
60
139
|
tabContent.innerHTML = `
|
61
140
|
Content for Tab #${i + 1}. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent volutpat, ligula eu aliquam bibendum, orci nisl cursus ipsum, nec egestas odio sapien eget neque.
|
62
141
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent volutpat, ligula eu aliquam bibendum, orci nisl cursus ipsum, nec egestas odio sapien eget neque.
|
@@ -71,13 +150,9 @@ Default.args = {
|
|
71
150
|
amountOfTabs: 3,
|
72
151
|
orientation: 'horizontal',
|
73
152
|
activeTabIndex: 0,
|
74
|
-
icon:
|
75
|
-
iconPosition: 'left'
|
76
|
-
|
77
|
-
|
78
|
-
Disabled.args = {
|
79
|
-
amountOfTabs: 3,
|
80
|
-
orientation: 'horizontal',
|
81
|
-
activeTabIndex: 2,
|
153
|
+
icon: '',
|
154
|
+
iconPosition: 'left',
|
155
|
+
header: 'Tab',
|
156
|
+
disabled: false,
|
82
157
|
};
|
83
158
|
//# sourceMappingURL=tabs.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tabs.stories.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"tabs.stories.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.stories.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;QACtC,UAAU,CAAC,YAAY,CAAC,eAAe,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5D,UAAU,CAAC,SAAS,GAAG;2BACA,CAAC,GAAG,CAAC;;;KAG3B,CAAC;QACF,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACb,YAAY,EAAE,CAAC;IACf,WAAW,EAAE,YAAY;IACzB,cAAc,EAAE,CAAC;IACjB,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,MAAM;IACpB,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,KAAK;CAChB,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Tabs',\n tags: ['autodocs'],\n\n component: 'ifx-tabs',\n args: {\n amountOfTabs: 3,\n orientation: 'horizontal',\n icon: '',\n header: 'Tab',\n disabled: false,\n fullWidth: false,\n },\n argTypes: {\n amountOfTabs: {\n name: 'Amount of Tabs', control: 'number',\n description: 'Set the number of tabs.',\n table: {\n category: 'story controls',\n type: {\n summary: 'number'\n }\n }\n },\n orientation: {\n options: ['horizontal', 'vertical'],\n control: { type: 'radio' },\n description: 'Set the orientation of the tabs.',\n table: {\n category:\n 'ifx-tabs props',\n defaultValue: {\n summary: 'horizontal',\n },\n type: {\n summary: 'horizontal | vertical'\n }\n }\n },\n icon: {\n name: 'icon',\n control: { type: 'select' },\n options: ['none', ...Object.values(icons).map(i => i['name'])],\n description: 'Set the icon of the tab. Choose \"none\" to display no icon.',\n table: {\n category: 'ifx-tab props',\n defaultValue: {\n summary: ''\n },\n type: {\n summary: 'string'\n }\n }\n },\n fullWidth: {\n control: { type: 'boolean' },\n description: \"Adds flex: 1 to the ifx-tab child components, thus making them occupy the full width of their parent\",\n table: {\n category: 'ifx-tabs props',\n defaultValue: {\n summary: 'false'\n },\n type: {\n summary: 'boolean'\n }\n }\n },\n iconPosition: {\n options: ['left', 'right'],\n control: { type: 'radio' },\n description: 'Set the position of the icon.',\n table: {\n category: 'ifx-tab props',\n defaultValue: {\n summary: 'left'\n },\n type: {\n summary: 'left | right'\n },\n },\n },\n activeTabIndex: {\n description: 'Set the tab as active by providing the index (tab can not be disabled).',\n table: {\n category: 'ifx-tabs props',\n defaultValue: { summary: '0' },\n type: {\n summary: 'number'\n }\n }\n },\n header: {\n control: 'text',\n description: 'Set the header of the tab.',\n table: {\n defaultValue: { summary: 'Tab' },\n category: 'ifx-tab props',\n type: {\n summary: 'string'\n }\n }\n },\n disabled: {\n control: 'boolean',\n description: 'Set the tab to disabled. In the storybook, the second tab will be disabled.',\n table: {\n category: 'ifx-tab props',\n defaultValue: { summary: 'false' },\n }\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event that is emitted when the active tab changes.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxChange={handleChange}\\nVue:@ifxChange=\"handleChange\"\\nAngular:(ifxChange)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});',\n },\n },\n },\n },\n};\n\nconst Template = args => {\n const tabsElement = document.createElement('ifx-tabs') as HTMLIfxTabsElement;\n tabsElement.setAttribute('orientation', args.orientation);\n tabsElement.setAttribute('active-tab-index', args.activeTabIndex);\n tabsElement.setAttribute('full-width', args.fullWidth);\n tabsElement.addEventListener('ifxChange', action(`ifxChange`));\n\n for (let i = 0; i < args.amountOfTabs; i++) {\n const tabContent = document.createElement('ifx-tab');\n tabContent.setAttribute('header', `${args.header} ${i + 1}`);\n if (i == 1) {\n tabContent.setAttribute('disabled', args.disabled);\n }\n var icon = args.icon === 'none' ? '' : args.icon;\n tabContent.setAttribute('icon', icon);\n tabContent.setAttribute('icon-position', args.iconPosition);\n tabContent.innerHTML = `\n Content for Tab #${i + 1}. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent volutpat, ligula eu aliquam bibendum, orci nisl cursus ipsum, nec egestas odio sapien eget neque.\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent volutpat, ligula eu aliquam bibendum, orci nisl cursus ipsum, nec egestas odio sapien eget neque.\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent volutpat, ligula eu aliquam bibendum, orci nisl cursus ipsum, nec egestas odio sapien eget neque.\n `;\n tabsElement.append(tabContent);\n }\n\n return tabsElement;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n amountOfTabs: 3,\n orientation: 'horizontal',\n activeTabIndex: 0,\n icon: '',\n iconPosition: 'left',\n header: 'Tab',\n disabled: false,\n};"]}
|
@@ -7,9 +7,27 @@ export default {
|
|
7
7
|
icon: 'chevron-up-16',
|
8
8
|
},
|
9
9
|
argTypes: {
|
10
|
+
label: {
|
11
|
+
name: 'Label of Tag',
|
12
|
+
control: { type: 'text' },
|
13
|
+
description: 'Set the label of *<ifx-tag>*.',
|
14
|
+
table: {
|
15
|
+
category: 'story controls',
|
16
|
+
type: {
|
17
|
+
summary: 'string'
|
18
|
+
}
|
19
|
+
}
|
20
|
+
},
|
10
21
|
icon: {
|
11
22
|
options: Object.values(icons).map(i => i['name']),
|
12
23
|
control: { type: 'select' },
|
24
|
+
description: 'Set the icon of the tag.',
|
25
|
+
table: {
|
26
|
+
category: 'ifx-tag props',
|
27
|
+
type: {
|
28
|
+
summary: 'string'
|
29
|
+
}
|
30
|
+
}
|
13
31
|
},
|
14
32
|
},
|
15
33
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tag.stories.js","sourceRoot":"","sources":["../../../src/components/tag/tag.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,IAAI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IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,YAAY,CAAC;AAEvF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Tag',\n tags: ['autodocs'],\n\n args: {\n label: 'Tag label',\n icon: 'chevron-up-16',\n },\n argTypes: {\n label: {\n name: 'Label of Tag',\n control: { type: 'text' },\n description: 'Set the label of *<ifx-tag>*.',\n table: {\n category: 'story controls',\n type: {\n summary: 'string'\n }\n }\n },\n icon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n description: 'Set the icon of the tag.',\n table: {\n category: 'ifx-tag props',\n type: {\n summary: 'string'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-tag icon=\"${args.icon}\">${args.label}</ifx-tag>`;\n\nexport const Default = DefaultTemplate.bind({});\n"]}
|
@@ -4,43 +4,145 @@ export default {
|
|
4
4
|
title: 'Components/Text Field',
|
5
5
|
// tags: ['autodocs'],
|
6
6
|
args: {
|
7
|
+
label: 'Label',
|
8
|
+
error: false,
|
7
9
|
disabled: false,
|
8
10
|
size: 'm',
|
11
|
+
icon: 'c-info-16',
|
9
12
|
success: false,
|
10
|
-
label: 'Label',
|
11
13
|
placeholder: 'Placeholder',
|
12
|
-
error: false,
|
13
14
|
caption: 'Caption',
|
14
15
|
required: true,
|
15
16
|
optional: false,
|
16
|
-
icon: 'c-info-16',
|
17
17
|
name: 'text-field',
|
18
|
-
showDeleteIcon: false
|
18
|
+
showDeleteIcon: false,
|
19
|
+
maxlength: '',
|
20
|
+
value: '',
|
19
21
|
},
|
20
22
|
argTypes: {
|
23
|
+
label: {
|
24
|
+
name: 'Label of Text Field',
|
25
|
+
description: 'The text label displayed above the *<ifx-text-field>*.',
|
26
|
+
table: {
|
27
|
+
category: 'story controls',
|
28
|
+
}
|
29
|
+
},
|
30
|
+
error: {
|
31
|
+
description: 'Indicates an error state for the text field.',
|
32
|
+
table: {
|
33
|
+
category: 'ifx-text-field props',
|
34
|
+
defaultValue: {
|
35
|
+
summary: false
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
disabled: {
|
40
|
+
description: 'Disables the text field.',
|
41
|
+
table: {
|
42
|
+
category: 'ifx-text-field props',
|
43
|
+
defaultValue: {
|
44
|
+
summary: false
|
45
|
+
}
|
46
|
+
}
|
47
|
+
},
|
21
48
|
size: {
|
22
49
|
description: 'Size options: s (36px) and m (40px) - default: m',
|
23
50
|
options: ['s', 'm'],
|
24
|
-
control:
|
51
|
+
control: 'radio',
|
52
|
+
table: {
|
53
|
+
category: 'ifx-text-field props',
|
54
|
+
defaultValue: {
|
55
|
+
summary: 'm'
|
56
|
+
}
|
57
|
+
}
|
25
58
|
},
|
26
59
|
icon: {
|
60
|
+
description: 'Specifies an icon to display within the text field.',
|
27
61
|
options: Object.values(icons).map(i => i['name']),
|
28
|
-
control:
|
62
|
+
control: 'select',
|
63
|
+
table: {
|
64
|
+
category: 'ifx-text-field props',
|
65
|
+
defaultValue: {
|
66
|
+
summary: 'c-info-16'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
success: {
|
71
|
+
description: 'Indicates a successful state for the text field.',
|
72
|
+
table: {
|
73
|
+
category: 'ifx-text-field props',
|
74
|
+
defaultValue: {
|
75
|
+
summary: false
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
placeholder: {
|
80
|
+
description: 'Displays a placeholder text inside the text field when it is empty.',
|
81
|
+
table: {
|
82
|
+
category: 'ifx-text-field props',
|
83
|
+
}
|
84
|
+
},
|
85
|
+
caption: {
|
86
|
+
description: 'Text displayed below the text field to provide additional information.',
|
87
|
+
table: {
|
88
|
+
category: 'ifx-text-field props',
|
89
|
+
}
|
90
|
+
},
|
91
|
+
required: {
|
92
|
+
description: 'Marks the text field as required for form submission. Displays an asterisk next to the label when set to **true**.',
|
93
|
+
table: {
|
94
|
+
category: 'ifx-text-field props',
|
95
|
+
defaultValue: {
|
96
|
+
summary: true
|
97
|
+
}
|
98
|
+
}
|
99
|
+
},
|
100
|
+
optional: {
|
101
|
+
description: 'Indicates that the field is optional.',
|
102
|
+
table: {
|
103
|
+
category: 'ifx-text-field props',
|
104
|
+
defaultValue: {
|
105
|
+
summary: false
|
106
|
+
}
|
107
|
+
}
|
29
108
|
},
|
30
109
|
name: {
|
31
|
-
description: 'Name of the element, that is used as reference when a form is submitted.'
|
110
|
+
description: 'Name of the element, that is used as reference when a form is submitted.',
|
111
|
+
table: {
|
112
|
+
category: 'ifx-text-field props',
|
113
|
+
}
|
114
|
+
},
|
115
|
+
showDeleteIcon: {
|
116
|
+
description: 'Displays a delete icon inside the text field when set to **true**, allowing user to clear the input content.',
|
117
|
+
table: {
|
118
|
+
category: 'ifx-text-field props',
|
119
|
+
defaultValue: {
|
120
|
+
summary: false
|
121
|
+
}
|
122
|
+
}
|
32
123
|
},
|
33
124
|
maxlength: {
|
34
|
-
description: '
|
35
|
-
control:
|
125
|
+
description: 'Specifies the maximum number of characters that can be entered into the text field.',
|
126
|
+
control: 'number',
|
127
|
+
table: {
|
128
|
+
category: 'ifx-text-field props',
|
129
|
+
}
|
36
130
|
},
|
37
|
-
|
38
|
-
description: '
|
131
|
+
value: {
|
132
|
+
description: 'The value of the text field. It is used for the form submission.',
|
133
|
+
control: 'text',
|
134
|
+
table: {
|
135
|
+
category: 'ifx-text-field props',
|
136
|
+
type: {
|
137
|
+
summary: 'string'
|
138
|
+
}
|
139
|
+
}
|
39
140
|
},
|
40
141
|
ifxInput: {
|
41
142
|
action: 'ifxInput',
|
42
|
-
description: 'Custom event',
|
143
|
+
description: 'Custom event emitted on input change.',
|
43
144
|
table: {
|
145
|
+
category: 'custom events',
|
44
146
|
type: {
|
45
147
|
summary: 'Framework integration',
|
46
148
|
detail: 'React: onIfxInput={handleInput}\nVue:@ifxInput="handleInput"\nAngular:(ifxInput)="handleInput()"\nVanillaJs:.addEventListener("ifxInput", (event) => {//handle input});',
|
@@ -49,7 +151,7 @@ export default {
|
|
49
151
|
},
|
50
152
|
},
|
51
153
|
};
|
52
|
-
const DefaultTemplate = ({ error, disabled, success, size, placeholder, label, caption, icon, required, optional, name, maxlength, showDeleteIcon }) => {
|
154
|
+
const DefaultTemplate = ({ error, disabled, success, size, placeholder, label, caption, icon, required, optional, name, maxlength, showDeleteIcon, value }) => {
|
53
155
|
const element = document.createElement('ifx-text-field');
|
54
156
|
element.setAttribute('error', error);
|
55
157
|
element.setAttribute('disabled', disabled);
|
@@ -62,6 +164,7 @@ const DefaultTemplate = ({ error, disabled, success, size, placeholder, label, c
|
|
62
164
|
element.setAttribute('optional', optional);
|
63
165
|
element.setAttribute('name', name);
|
64
166
|
element.setAttribute('show-delete-icon', showDeleteIcon);
|
167
|
+
element.setAttribute('value', value);
|
65
168
|
if (maxlength)
|
66
169
|
element.setAttribute('maxlength', maxlength);
|
67
170
|
element.addEventListener('ifxInput', action('ifxInput'));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-field.stories.js","sourceRoot":"","sources":["../../../src/components/text-field/text-field.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,sBAAsB;IAEtB,IAAI,EAAE;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,GAAG;QACT,
|
1
|
+
{"version":3,"file":"text-field.stories.js","sourceRoot":"","sources":["../../../src/components/text-field/text-field.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,sBAAsB;IAEtB,IAAI,EAAE;QACJ,K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,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrC,IAAI,SAAS;QAAE,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAE5D,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IAGzD,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACnD,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Text Field',\n // tags: ['autodocs'],\n\n args: {\n label: 'Label',\n error: false,\n disabled: false,\n size: 'm',\n icon: 'c-info-16',\n success: false,\n placeholder: 'Placeholder',\n caption: 'Caption',\n required: true,\n optional: false,\n name: 'text-field',\n showDeleteIcon: false,\n maxlength: '',\n value: '',\n },\n\n argTypes: {\n label: {\n name: 'Label of Text Field',\n description: 'The text label displayed above the *<ifx-text-field>*.',\n table: {\n category: 'story controls',\n }\n },\n error: {\n description: 'Indicates an error state for the text field.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n disabled: {\n description: 'Disables the text field.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n size: {\n description: 'Size options: s (36px) and m (40px) - default: m',\n options: ['s', 'm'],\n control: 'radio',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: 'm'\n }\n }\n },\n icon: {\n description: 'Specifies an icon to display within the text field.',\n options: Object.values(icons).map(i => i['name']),\n control: 'select',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: 'c-info-16'\n }\n }\n },\n success: {\n description: 'Indicates a successful state for the text field.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n placeholder: {\n description: 'Displays a placeholder text inside the text field when it is empty.',\n table: {\n category: 'ifx-text-field props',\n }\n },\n caption: {\n description: 'Text displayed below the text field to provide additional information.',\n table: {\n category: 'ifx-text-field props',\n }\n },\n required: {\n description: 'Marks the text field as required for form submission. Displays an asterisk next to the label when set to **true**.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: true\n }\n }\n },\n optional: {\n description: 'Indicates that the field is optional.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n name: {\n description: 'Name of the element, that is used as reference when a form is submitted.',\n table: {\n category: 'ifx-text-field props',\n }\n },\n showDeleteIcon: {\n description: 'Displays a delete icon inside the text field when set to **true**, allowing user to clear the input content.',\n table: {\n category: 'ifx-text-field props',\n defaultValue: {\n summary: false\n }\n }\n },\n maxlength: {\n description: 'Specifies the maximum number of characters that can be entered into the text field.',\n control: 'number',\n table: {\n category: 'ifx-text-field props',\n }\n },\n value: {\n description: 'The value of the text field. It is used for the form submission.',\n control: 'text',\n table: {\n category: 'ifx-text-field props',\n type: {\n summary: 'string'\n }\n }\n },\n ifxInput: {\n action: 'ifxInput',\n description: 'Custom event emitted on input change.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxInput={handleInput}\\nVue:@ifxInput=\"handleInput\"\\nAngular:(ifxInput)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxInput\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = ({ error, disabled, success, size, placeholder, label, caption, icon, required, optional, name, maxlength, showDeleteIcon, value }) => {\n const element = document.createElement('ifx-text-field');\n element.setAttribute('error', error);\n element.setAttribute('disabled', disabled);\n element.setAttribute('size', size);\n element.setAttribute('icon', icon);\n element.setAttribute('success', success);\n element.setAttribute('placeholder', placeholder);\n element.setAttribute('caption', caption);\n element.setAttribute('required', required);\n element.setAttribute('optional', optional);\n element.setAttribute('name', name);\n element.setAttribute('show-delete-icon', showDeleteIcon);\n element.setAttribute('value', value);\n if (maxlength) element.setAttribute('maxlength', maxlength);\n\n element.addEventListener('ifxInput', action('ifxInput'));\n\n\n const slotContent = document.createTextNode(label);\n element.appendChild(slotContent);\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
|
@@ -129,9 +129,7 @@ export default {
|
|
129
129
|
},
|
130
130
|
},
|
131
131
|
ifxInput: {
|
132
|
-
description: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes
|
133
|
-
event.detail: string
|
134
|
-
`,
|
132
|
+
description: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes.`,
|
135
133
|
table: {
|
136
134
|
category: 'custom events',
|
137
135
|
type: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"textarea.stories.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACL,OAAO,
|
1
|
+
{"version":3,"file":"textarea.stories.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACL,OAAO,EAAE,+CAA+C;QACxD,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,KAAK;QACf,MAAM,E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,OAAO;SACf,IAAI,CAAC,IAAI;aACL,IAAI,CAAC,QAAQ;UAChB,IAAI,CAAC,KAAK;UACV,IAAI,CAAC,KAAK;cACN,IAAI,CAAC,SAAS;SACnB,IAAI,CAAC,IAAI;gBACF,IAAI,CAAC,WAAW;cAClB,IAAI,CAAC,QAAQ;WAChB,IAAI,CAAC,MAAM;SACb,IAAI,CAAC,IAAI;UACR,IAAI,CAAC,KAAK;SACX,IAAI,CAAC,IAAI;;CAEjB,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACvD,QAAQ,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IAE1D,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n\ttitle: 'Components/Textarea',\n\ttags: ['autodocs'],\n\targs: {\n\t\tcaption: 'Caption text, description, error notification',\n\t\tcols: 43,\n\t\tdisabled: false,\n\t\terror: false,\n\t\tlabel: 'Label Text',\n\t\tmaxlength: undefined,\n\t\tname: 'textarea',\n\t\tplaceholder: 'Placeholder',\n\t\treadOnly: false,\n\t\tresize: 'both',\n\t\trows: 5,\n\t\tvalue: '',\n\t\twrap: 'soft'\n\t},\n\targTypes: {\n\t\tcaption: {\n\t\t\tdescription: 'Set the caption text of textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\tcols: {\n\t\t\tdescription: 'Set the visible width of the textarea control.',\n\t\t\tcontrol: { type: 'number', min: 0 },\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tdisabled: {\n\t\t\tdescription: 'Disables the user interaction when set to true.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: false,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\terror: {\n\t\t\tdescription: 'Set the component to error state.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: false,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tlabel: {\n\t\t\tdescription: 'Set the label of textarea component.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\tmaxlength: {\n\t\t\tdescription: 'Set the maximum string length user can enter.',\n\t\t\ttype: 'number',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t}\n\t\t},\n\t\tname: {\n\t\t\tdescription: 'The name of the control. Useful for form handling.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'ifx-textarea-[n]',\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tplaceholder: {\n\t\t\tdescription: 'Set the placeholder text of textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t}\n\t\t},\n\t\treadOnly: {\n\t\t\tname: 'read-only',\n\t\t\tdescription: `Text cannot be edited when set to true.\\n \n*Note: It is different from disabled prop, control is focusable in readOnly mode unlike disabled.*`,\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'false',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tresize: {\n\t\t\tdescription: 'Sets whether the textarea is resizable, and if so, in which directions.',\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['both', 'vertical', 'horizontal', 'none'],\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'none',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\trows: {\n\t\t\tdescription: 'Set the number of visible text lines for the textrarea control.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tvalue: {\n\t\t\tdescription: 'Current value of the textarea.',\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t},\n\t\t},\n\t\twrap: {\n\t\t\tdescription: 'Indicates how the control should wrap the value for form submission.',\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['soft', 'hard', 'off'],\n\t\t\ttable: {\n\t\t\t\tcategory: 'ifx-textarea props',\n\t\t\t\tdefaultValue: {\n\t\t\t\t\tsummary: 'soft',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tifxInput: {\n\t\t\tdescription: `A custom event *ifxInput* is emitted immediately after the value of *<ifx-textarea>* changes.`,\n\t\t\ttable: {\n\t\t\t\tcategory: 'custom events',\n\t\t\t\ttype: {\n\t\t\t\t\tsummary: 'Framework integration',\n\t\t\t\t\tdetail: `\nReact: onIfxInput={handleInput}\nVue: @ifxInput=\"handleInput\"\nAngular: (ifxInput)=\"handleInput()\"\nVanillaJs: .addEventListener(\"ifxInput\", (event) => {/*handle input*/});`,\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n\nconst Template = (args) => {\n\tconst wrapper = document.createElement('div');\n\twrapper.innerHTML = `\n<ifx-textarea \n\tcaption=\"${args.caption}\"\n\tcols=\"${args.cols}\"\n\tdisabled=\"${args.disabled}\"\n\terror=\"${args.error}\"\n\tlabel=\"${args.label}\"\n\tmaxlength=\"${args.maxlength}\"\n\tname=\"${args.name}\"\n\tplaceholder=\"${args.placeholder}\"\n\tread-only=\"${args.readOnly}\"\n\tresize=\"${args.resize}\"\n\trows=\"${args.rows}\"\n\tvalue=\"${args.value}\"\n\twrap=\"${args.wrap}\"\n/>\n`;\n\tconst textarea = wrapper.querySelector('ifx-textarea');\n\ttextarea.addEventListener('ifxInput', action('ifxInput'));\n\n\treturn textarea;\n};\n\nexport const Default = Template.bind({});"]}
|
@@ -10,19 +10,63 @@ export default {
|
|
10
10
|
icon: 'c-info-24',
|
11
11
|
},
|
12
12
|
argTypes: {
|
13
|
+
text: {
|
14
|
+
description: 'Defines the main content of the tooltip.',
|
15
|
+
control: 'text',
|
16
|
+
table: {
|
17
|
+
category: 'ifx-tooltip props',
|
18
|
+
type: {
|
19
|
+
summary: 'string'
|
20
|
+
}
|
21
|
+
}
|
22
|
+
},
|
13
23
|
icon: {
|
24
|
+
description: 'The icon to be displayed. This control is only applicable when the variant is set to ***extended***.',
|
14
25
|
options: Object.values(icons).map(i => i['name']),
|
15
|
-
control:
|
26
|
+
control: 'select',
|
27
|
+
table: {
|
28
|
+
category: 'ifx-tooltip props',
|
29
|
+
type: {
|
30
|
+
summary: 'string',
|
31
|
+
defaultValue: {
|
32
|
+
summary: 'c-info-24'
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
16
36
|
},
|
17
37
|
position: {
|
38
|
+
description: 'Determines the position of the tooltip relative to the reference element.',
|
18
39
|
options: ['auto', 'bottom-start', 'top-start', 'left', 'bottom-end', 'top-end', 'right', 'bottom', 'top'],
|
19
|
-
control:
|
40
|
+
control: 'radio',
|
41
|
+
table: {
|
42
|
+
category: 'ifx-tooltip props',
|
43
|
+
defaultValue: {
|
44
|
+
summary: 'auto'
|
45
|
+
}
|
46
|
+
}
|
20
47
|
},
|
21
48
|
variant: {
|
49
|
+
description: 'Sets the style variant of the tooltip.',
|
50
|
+
control: 'radio',
|
22
51
|
options: ['compact', 'dismissible', 'extended'],
|
23
|
-
|
52
|
+
table: {
|
53
|
+
category: 'ifx-tooltip props',
|
54
|
+
defaultValue: {
|
55
|
+
summary: 'compact'
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
header: {
|
60
|
+
description: 'Specifies the header or title of the tooltip. This field is only applicable when the variant is set to ***dismissible*** or ***extended***.',
|
61
|
+
control: 'text',
|
62
|
+
if: { arg: 'variant', neq: 'compact' },
|
63
|
+
table: {
|
64
|
+
category: 'ifx-tooltip props',
|
65
|
+
type: {
|
66
|
+
summary: 'string'
|
67
|
+
}
|
68
|
+
}
|
24
69
|
},
|
25
|
-
header: { control: 'text', if: { arg: 'variant', neq: 'compact' } },
|
26
70
|
},
|
27
71
|
};
|
28
72
|
const DefaultTemplate = ({ header, text, variant, position, icon }) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tooltip.stories.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACJ,MAAM,EAAE,kBAAkB;QAC1B,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YACjD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;
|
1
|
+
{"version":3,"file":"tooltip.stories.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,IAAI,EAAE;QACJ,MAAM,E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ACN,WAAW,EAAE,6IAA6I;YAC1J,OAAO,EAAE,MAAM;YACf,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE;YACtC,KAAK,EAAE;gBACL,QAAQ,EAAE,mBAAmB;gBAC7B,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACpE,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACtD,IAAI,OAAO,KAAK,aAAa,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;QACxD,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnC,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC/E,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEnC,OAAO,CAAC,WAAW,GAAG,8CAA8C,OAAO,KAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,wCAAwC;IAE9J,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Tooltip',\n tags: ['autodocs'],\n args: {\n header: 'Tooltip headline',\n text: \"Hi, I'm a tooltip\",\n position: 'auto',\n variant: 'compact',\n icon: 'c-info-24',\n },\n argTypes: {\n text: {\n description: 'Defines the main content of the tooltip.',\n control: 'text',\n table: {\n category: 'ifx-tooltip props',\n type: {\n summary: 'string'\n }\n }\n },\n icon: {\n description: 'The icon to be displayed. This control is only applicable when the variant is set to ***extended***.',\n options: Object.values(icons).map(i => i['name']),\n control: 'select',\n table: {\n category: 'ifx-tooltip props',\n type: {\n summary: 'string',\n defaultValue: {\n summary: 'c-info-24'\n }\n }\n }\n },\n position: {\n description: 'Determines the position of the tooltip relative to the reference element.',\n options: ['auto', 'bottom-start', 'top-start', 'left', 'bottom-end', 'top-end', 'right', 'bottom', 'top'],\n control: 'radio',\n table: {\n category: 'ifx-tooltip props',\n defaultValue: {\n summary: 'auto'\n }\n }\n },\n variant: {\n description: 'Sets the style variant of the tooltip.',\n control: 'radio',\n options: ['compact', 'dismissible', 'extended'],\n table: {\n category: 'ifx-tooltip props',\n defaultValue: {\n summary: 'compact'\n }\n }\n },\n header: {\n description: 'Specifies the header or title of the tooltip. This field is only applicable when the variant is set to ***dismissible*** or ***extended***.',\n control: 'text', \n if: { arg: 'variant', neq: 'compact' },\n table: {\n category: 'ifx-tooltip props',\n type: {\n summary: 'string'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = ({ header, text, variant, position, icon }) => {\n const element = document.createElement('ifx-tooltip');\n if (variant === 'dismissible' || variant === 'extended') {\n element.setAttribute('header', header);\n }\n element.setAttribute('text', text);\n element.setAttribute('variant', variant === 'extended' ? 'extended' : variant);\n element.setAttribute('position', position);\n element.setAttribute('icon', icon);\n\n element.textContent = `I'm the tooltip reference element - Please ${variant==='dismissible' ? 'click' : 'hover'} me`; // Set content for the reference element\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\n"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { I as IfxAccordionItem$1, d as defineCustomElement$1 } from './p-
|
1
|
+
import { I as IfxAccordionItem$1, d as defineCustomElement$1 } from './p-62eff23e.js';
|
2
2
|
|
3
3
|
const IfxAccordionItem = IfxAccordionItem$1;
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|