@infineon/infineon-design-system-stencil 30.9.2--canary.1640.e43988106d4b26dd629292540be9d5e4b6980d07.1 → 30.9.2
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 +2 -2
- 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 +22 -20
- 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 +10 -9
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +20 -22
- 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 +7 -81
- 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 +12 -45
- package/dist/collection/components/alert/alert.stories.js.map +1 -1
- package/dist/collection/components/badge/badge.stories.js +7 -28
- package/dist/collection/components/badge/badge.stories.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +4 -4
- 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 +13 -87
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
- package/dist/collection/components/button/button.stories.js +9 -101
- package/dist/collection/components/button/button.stories.js.map +1 -1
- package/dist/collection/components/card/card.stories.js +3 -84
- package/dist/collection/components/card/card.stories.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +14 -72
- 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 +16 -16
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/chip/chip.stories.js +26 -18
- 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 +3 -65
- package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.stories.js +7 -95
- package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +64 -222
- package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
- package/dist/collection/components/footer/footer.stories.js +1 -7
- package/dist/collection/components/footer/footer.stories.js.map +1 -1
- package/dist/collection/components/icon/infineonIconStencil.stories.js +2 -7
- package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.stories.js +5 -61
- package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
- package/dist/collection/components/link/link.stories.js +4 -53
- 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 +19 -96
- 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 +12 -176
- package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar-item.js +32 -11
- package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js +19 -183
- package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
- package/dist/collection/components/notification/notification.stories.js +8 -55
- package/dist/collection/components/notification/notification.stories.js.map +1 -1
- package/dist/collection/components/number-indicator/number-indicator.stories.js +0 -19
- package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +31 -1
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pagination/pagination.stories.js +14 -19
- package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
- package/dist/collection/components/progress-bar/progress-bar.stories.js +8 -31
- package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
- package/dist/collection/components/radio-button/radio-button.stories.js +13 -66
- 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 +9 -58
- package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
- package/dist/collection/components/search-field/search-field.stories.js +8 -54
- package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
- package/dist/collection/components/segmented-control/segmented-control.stories.js +10 -1
- 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 +5 -131
- package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
- package/dist/collection/components/select/single-select/select.stories.js +26 -83
- package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
- package/dist/collection/components/slider/slider.stories.js +13 -97
- package/dist/collection/components/slider/slider.stories.js.map +1 -1
- package/dist/collection/components/spinner/spinner.stories.js +2 -34
- package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
- package/dist/collection/components/status/status.stories.js +1 -25
- package/dist/collection/components/status/status.stories.js.map +1 -1
- package/dist/collection/components/stepper/stepper.stories.js +25 -54
- package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
- package/dist/collection/components/switch/switch.stories.js +4 -51
- package/dist/collection/components/switch/switch.stories.js.map +1 -1
- package/dist/collection/components/table-advanced-version/table.js +21 -23
- package/dist/collection/components/table-advanced-version/table.js.map +1 -1
- package/dist/collection/components/table-advanced-version/table.stories.js +39 -124
- package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
- package/dist/collection/components/table-basic-version/table.stories.js +3 -30
- 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 +29 -104
- package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
- package/dist/collection/components/tag/tag.stories.js +0 -18
- package/dist/collection/components/tag/tag.stories.js.map +1 -1
- package/dist/collection/components/text-field/text-field.stories.js +13 -116
- package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +3 -1
- package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +4 -48
- 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 +3 -3
- 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 +13 -11
- package/dist/components/ifx-sidebar-item.js.map +1 -1
- package/dist/components/ifx-table.js +24 -26
- 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-cf8fd0f4.js → p-04b73e62.js} +6 -6
- package/dist/components/p-04b73e62.js.map +1 -0
- package/dist/components/{p-3baaa460.js → p-094bb435.js} +3 -3
- package/dist/components/{p-3baaa460.js.map → p-094bb435.js.map} +1 -1
- package/dist/components/{p-7b5e297f.js → p-23cdd5a7.js} +5 -5
- package/dist/components/p-23cdd5a7.js.map +1 -0
- package/dist/components/{p-b85fba0e.js → p-2f1e7628.js} +4 -2
- package/dist/components/p-2f1e7628.js.map +1 -0
- package/dist/components/{p-053d42ef.js → p-b2439194.js} +8 -8
- package/dist/components/{p-053d42ef.js.map → p-b2439194.js.map} +1 -1
- package/dist/components/{p-793d89e7.js → p-c1f3a68c.js} +16 -16
- package/dist/components/p-c1f3a68c.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 +2 -2
- 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 +22 -20
- 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 +10 -9
- package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
- package/dist/esm/ifx-table.entry.js +20 -22
- 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-602edb1f.entry.js → p-00d6e46e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-00d6e46e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-222c1af9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-222c1af9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-28fb795b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-26df4dfe.entry.js.map → p-28fb795b.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-436babb8.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-436babb8.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-7bef9272.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-7bef9272.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-89c7209f.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-89c7209f.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-df5cd362.entry.js → p-91f91586.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-91f91586.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-9481adc8.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-9481adc8.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-ad3db607.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-ad3db607.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-d93eb561.entry.js → p-bc8a4226.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-bc8a4226.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-dc7deb14.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-dc7deb14.entry.js.map +1 -0
- package/dist/types/components/accordion/accordion.stories.d.ts +1 -67
- package/dist/types/components/accordion/accordionItem.d.ts +3 -3
- package/dist/types/components/alert/alert.stories.d.ts +11 -38
- package/dist/types/components/badge/badge.stories.d.ts +3 -23
- package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +1 -83
- package/dist/types/components/button/button.stories.d.ts +16 -92
- package/dist/types/components/card/card.stories.d.ts +1 -95
- package/dist/types/components/checkbox/checkbox.stories.d.ts +10 -65
- 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 +4 -11
- package/dist/types/components/chip/interfaces.d.ts +1 -1
- package/dist/types/components/content-switcher/content-switcher.stories.d.ts +0 -66
- package/dist/types/components/date-picker/date-picker.stories.d.ts +2 -88
- package/dist/types/components/dropdown/dropdown.stories.d.ts +33 -90
- package/dist/types/components/footer/footer.stories.d.ts +0 -4
- package/dist/types/components/icon/infineonIconStencil.stories.d.ts +0 -5
- package/dist/types/components/icon-button/icon-button.stories.d.ts +8 -56
- package/dist/types/components/link/link.stories.d.ts +6 -49
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal/modal.stories.d.ts +3 -77
- package/dist/types/components/navigation/navbar/navbar.stories.d.ts +6 -222
- package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +3 -2
- package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +7 -158
- package/dist/types/components/notification/notification.stories.d.ts +2 -46
- package/dist/types/components/number-indicator/number-indicator.stories.d.ts +0 -19
- package/dist/types/components/pagination/pagination.d.ts +2 -0
- package/dist/types/components/pagination/pagination.stories.d.ts +7 -12
- package/dist/types/components/progress-bar/progress-bar.stories.d.ts +4 -25
- package/dist/types/components/radio-button/radio-button.stories.d.ts +8 -59
- package/dist/types/components/search-bar/search-bar.d.ts +1 -1
- package/dist/types/components/search-bar/search-bar.stories.d.ts +3 -60
- package/dist/types/components/search-field/search-field.stories.d.ts +6 -45
- package/dist/types/components/segmented-control/segmented-control.stories.d.ts +3 -0
- package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
- package/dist/types/components/select/multi-select/multiselect.stories.d.ts +0 -125
- package/dist/types/components/select/single-select/select.stories.d.ts +24 -67
- package/dist/types/components/slider/slider.stories.d.ts +0 -110
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -32
- package/dist/types/components/status/status.stories.d.ts +2 -24
- package/dist/types/components/stepper/stepper.stories.d.ts +6 -30
- package/dist/types/components/switch/switch.stories.d.ts +1 -47
- package/dist/types/components/table-advanced-version/table.stories.d.ts +11 -50
- package/dist/types/components/table-basic-version/table.stories.d.ts +1 -21
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/tabs/tabs.stories.d.ts +9 -88
- package/dist/types/components/tag/tag.stories.d.ts +0 -20
- package/dist/types/components/text-field/text-field.stories.d.ts +10 -106
- package/dist/types/components/tooltip/tooltip.stories.d.ts +6 -41
- package/dist/types/components.d.ts +26 -20
- package/package.json +1 -1
- package/dist/components/p-793d89e7.js.map +0 -1
- package/dist/components/p-7b5e297f.js.map +0 -1
- package/dist/components/p-b85fba0e.js.map +0 -1
- package/dist/components/p-cf8fd0f4.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-26df4dfe.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-355cea09.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-355cea09.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-602edb1f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-60dcd508.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-60dcd508.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-68752789.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-68752789.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-6a274db4.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-6a274db4.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-71fda335.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-71fda335.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-7741e81d.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7741e81d.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-d93eb561.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-df5cd362.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-df6cadc1.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-df6cadc1.entry.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/components/select/single-select/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,+FAA+F;AAC/F,yLAAyL;AACzL,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,sBAAsB;IACtB,IAAI,EAAE;QACJ,
|
1
|
+
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/components/select/single-select/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,+FAA+F;AAC/F,yLAAyL;AACzL,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,iCAAiC;IACxC,sBAAsB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,UAAU,EAAE,IAAI;QAChB,sBAAsB,EAAE,WAAW;QACnC,WAAW,EAAE,IAAI;QACjB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,0BAA0B;AAC1B,oBAAoB;AACpB,uHAAuH;AACvH,KAAK;AAEL,+DAA+D;AAC/D,+BAA+B;AAC/B,sBAAsB;AACtB,+BAA+B;AAC/B,KAAK","sourcesContent":["import { action } from '@storybook/addon-actions';\n\n//use string instead of json format here to avoid ugly formatting in the storybook code snippet\n// let options = \"[{'value': 'a','label': 'option a','selected': 'false'},{'value': 'b','label': 'option b','selected': 'false'},{'value': 'c','label': 'option c','selected': 'false'}]\"\nconst options = [\n {\n value: 'a',\n label: 'option a',\n selected: false,\n },\n {\n value: 'b',\n label: 'option b',\n selected: false,\n },\n {\n value: 'c',\n label: 'option c',\n selected: false,\n },\n];\n\nexport default {\n title: 'Components/Select/Single Select',\n // tags: ['autodocs'],\n args: {\n size: 'm',\n showSearch: true,\n searchPlaceholderValue: 'Search...',\n placeholder: true,\n placeholderValue: 'Placeholder',\n error: false,\n errorMessage: 'Some error',\n label: '',\n disabled: false,\n // type: 'single', //for later implementation\n },\n\n argTypes: {\n // type: { //for later implementation\n // // control: { type: 'radio' },\n // control: false,\n // },\n size: {\n options: {\n 'small (36px)': 's',\n 'medium (40px)': 'm',\n },\n control: {\n type: 'radio',\n },\n },\n placeholder: {\n options: [true, false],\n control: { type: 'radio' },\n },\n placeholderValue: { control: 'text' },\n // value: { for later implementation\n // control: 'text',\n // description: 'Programmatically set the selected value',\n // },\n error: {\n options: [true, false],\n control: { type: 'radio' },\n },\n errorMessage: { control: 'text' },\n label: { control: 'text' },\n disabled: {\n options: [true, false],\n control: { type: 'radio' },\n },\n showSearch: {\n options: [true, false],\n control: { type: 'radio' },\n },\n searchPlaceholderValue: { control: { type: 'text' } },\n\n options: {\n description: 'Takes an array of objects in the following format',\n },\n ifxSelect: {\n action: 'ifxSelect',\n description: 'Custom event emitted when item is selected',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelect={handleInput}\\nVue:@ifxSelect=\"handleInput\"\\nAngular:(ifxSelect)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelect\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const template = `<ifx-select \n size='${args.size}'\n placeholder='${args.placeholder}'\n show-search='${args.showSearch}'\n search-placeholder-value='${args.searchPlaceholderValue}'\n disabled='${args.disabled}'\n error='${args.error}'\n error-message='${args.errorMessage}'\n label='${args.label}'\n placeholder-value='${args.placeholderValue}'\n options='${JSON.stringify(args.options)}' >\n </ifx-select>`;\n setTimeout(() => {\n document.querySelector('ifx-select')?.addEventListener('ifxSelect', action('ifxSelect'));\n document.querySelector('ifx-select')?.addEventListener('ifxInput', action('ifxInput'));\n }, 0);\n\n return template;\n};\n\nexport const Single = DefaultTemplate.bind({});\nSingle.args = {\n // type: 'single',\n options: options,\n};\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'text',\n// name: 'text',\n// value: 'Placeholder',\n// allowHTML: true,\n// delimiter: ',',\n// editItems: true,\n// maxItemCount: 5,\n// };\n\n// export const Text = DefaultTemplate.bind({});\n// Text.args = {\n// type: 'multiple',\n// name: 'multiple',\n// choices: 'Choice 1, Choice 2, Choice 3',\n// };\n\n// export const SingleWithIcon = DefaultTemplate.bind({});\n// SingleWithIcon.args = {\n// type: 'single',\n// choices: \"Choice 1, Choice 2 <ifx-icon icon='check16'></ifx-icon>, Choice 3 <ifx-icon icon='check16'></ifx-icon>\",\n// };\n\n// export const MultiselectCombobox = DefaultTemplate.bind({});\n// MultiselectCombobox.args = {\n// type: 'multiple',\n// // removeItemButton: true,\n// };\n"]}
|
@@ -5,120 +5,36 @@ export default {
|
|
5
5
|
component: 'ifx-slider',
|
6
6
|
tags: ['autodocs'],
|
7
7
|
argTypes: {
|
8
|
-
min: { control: 'number',
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
},
|
16
|
-
|
17
|
-
description: 'The maximum value of the slider.',
|
18
|
-
table: {
|
19
|
-
category: 'ifx-slider props',
|
20
|
-
defaultValue: { summary: '100' },
|
21
|
-
type: { summary: 'number' }
|
22
|
-
}
|
23
|
-
},
|
24
|
-
step: { control: 'number',
|
25
|
-
description: 'The step value of the slider.',
|
26
|
-
table: {
|
27
|
-
category: 'ifx-slider props',
|
28
|
-
defaultValue: { summary: '1' },
|
29
|
-
type: { summary: 'number' }
|
30
|
-
}
|
31
|
-
},
|
32
|
-
type: { control: 'radio', options: ['single', 'double'],
|
33
|
-
description: 'The type of the slider.',
|
34
|
-
table: {
|
35
|
-
category: 'ifx-slider props',
|
36
|
-
defaultValue: { summary: 'single' },
|
37
|
-
type: { summary: 'single | double' }
|
38
|
-
}
|
39
|
-
},
|
40
|
-
value: { control: 'number', if: { arg: 'type', eq: 'single' },
|
41
|
-
description: 'The current value of the slider.',
|
42
|
-
table: {
|
43
|
-
category: 'ifx-slider props',
|
44
|
-
type: { summary: 'number ' }
|
45
|
-
}
|
46
|
-
},
|
47
|
-
minValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' },
|
48
|
-
description: 'The minimum value of the handle in double slider.',
|
49
|
-
table: {
|
50
|
-
category: 'ifx-slider props',
|
51
|
-
type: { summary: 'number' }
|
52
|
-
}
|
53
|
-
},
|
54
|
-
maxValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' },
|
55
|
-
description: 'The maximum value of the handle in double slider.',
|
56
|
-
table: {
|
57
|
-
category: 'ifx-slider props',
|
58
|
-
type: { summary: 'number' }
|
59
|
-
},
|
60
|
-
},
|
61
|
-
showPercentage: {
|
62
|
-
control: 'boolean', if: { arg: 'type', eq: 'single' },
|
63
|
-
description: 'Show the percentage of the slider value.',
|
64
|
-
table: {
|
65
|
-
category: 'ifx-slider props',
|
66
|
-
defaultValue: { summary: 'false' },
|
67
|
-
type: { summary: 'boolean' }
|
68
|
-
}
|
69
|
-
},
|
70
|
-
disabled: { control: 'boolean',
|
71
|
-
description: 'Disable the slider.',
|
72
|
-
table: {
|
73
|
-
category: 'ifx-slider props',
|
74
|
-
defaultValue: { summary: 'false' },
|
75
|
-
type: { summary: 'boolean' }
|
76
|
-
}
|
77
|
-
},
|
8
|
+
min: { control: 'number' },
|
9
|
+
max: { control: 'number' },
|
10
|
+
step: { control: 'number' },
|
11
|
+
type: { control: 'radio', options: ['single', 'double'] },
|
12
|
+
value: { control: 'number', if: { arg: 'type', eq: 'single' } },
|
13
|
+
minValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' } },
|
14
|
+
maxValueHandle: { control: 'number', if: { arg: 'type', eq: 'double' } },
|
15
|
+
showPercentage: { control: 'boolean', if: { arg: 'type', eq: 'single' } },
|
16
|
+
disabled: { control: 'boolean' },
|
78
17
|
leftIcon: {
|
79
18
|
options: Object.values(icons).map(i => i['name']),
|
80
19
|
control: { type: 'select' },
|
81
|
-
description: 'The icon on the left of the slider.',
|
82
|
-
table: {
|
83
|
-
category: 'ifx-slider props',
|
84
|
-
type: { summary: 'string' }
|
85
|
-
}
|
86
20
|
},
|
87
21
|
rightIcon: {
|
88
22
|
options: Object.values(icons).map(i => i['name']),
|
89
23
|
control: { type: 'select' },
|
90
|
-
description: 'The icon on the right of the slider.',
|
91
|
-
table: {
|
92
|
-
category: 'ifx-slider props',
|
93
|
-
type: { summary: 'string' }
|
94
|
-
}
|
95
|
-
},
|
96
|
-
leftText: { control: 'text',
|
97
|
-
description: 'The text on the left side.',
|
98
|
-
table: {
|
99
|
-
category: 'ifx-slider props',
|
100
|
-
type: { summary: 'string' }
|
101
|
-
}
|
102
|
-
},
|
103
|
-
rightText: { control: 'text',
|
104
|
-
description: 'The text on the right side.',
|
105
|
-
table: {
|
106
|
-
category: 'ifx-slider props',
|
107
|
-
type: { summary: 'string' }
|
108
|
-
}
|
109
24
|
},
|
25
|
+
leftText: { control: 'text' },
|
26
|
+
rightText: { control: 'text' },
|
110
27
|
ifxChange: {
|
111
28
|
action: 'ifxChange',
|
112
|
-
description: 'Custom event emitted on input change
|
29
|
+
description: 'Custom event emitted on input change',
|
113
30
|
table: {
|
114
|
-
category: 'custom events',
|
115
31
|
type: {
|
116
32
|
summary: 'Framework integration',
|
117
33
|
detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
|
118
34
|
},
|
119
35
|
},
|
120
36
|
},
|
121
|
-
}
|
37
|
+
},
|
122
38
|
};
|
123
39
|
const Template = args => {
|
124
40
|
const sliderElement = document.createElement('ifx-slider');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../src/components/slider/slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,QAAQ,EAAE;QACR,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ;YACtB,WAAW,EAAE,kCAAkC;YACjD,KAAK,EAAC;gBACJ,QAAQ,EAAE,kBAAkB;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;gBAC9B,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5B;SACF;QACC,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ;YACtB,WAAW,EAAE,kCAAkC;YAC/C,KAAK,EAAC;gBACJ,QAAQ,EAAE,kBAAkB;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBAChC,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5B;SACF;QACD,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ;YACvB,WAAW,EAAE,+BAA+B;YAC5C,KAAK,EAAC;gBACJ,QAAQ,EAAE,kBAAkB;gBAC5B,YAAY,EAAE,EAAE,OAAO,EA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GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,mCACT,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAE,aAAa,GACzB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,mCACT,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,WAAW,GACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,mCACR,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,IAAI,GACf,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Slider',\n component: 'ifx-slider',\n tags: ['autodocs'],\n\n argTypes: {\n min: { control: 'number',\n description: 'The minimum value of the slider.',\n table:{\n category: 'ifx-slider props',\n defaultValue: { summary: '0' },\n type: { summary: 'number' }\n }\n },\n max: { control: 'number',\n description: 'The maximum value of the slider.',\n table:{\n category: 'ifx-slider props',\n defaultValue: { summary: '100' },\n type: { summary: 'number' }\n } \n },\n step: { control: 'number',\n description: 'The step value of the slider.',\n table:{\n category: 'ifx-slider props',\n defaultValue: { summary: '1' },\n type: { summary: 'number' }\n }\n },\n type: { control: 'radio', options: ['single', 'double'],\n description: 'The type of the slider.',\n table: {\n category: 'ifx-slider props',\n defaultValue: { summary: 'single' },\n type: { summary: 'single | double' }\n }\n },\n value: { control: 'number', if: { arg: 'type', eq: 'single'},\n description: 'The current value of the slider.',\n table: { \n category: 'ifx-slider props',\n type: { summary: 'number ' }\n }\n }, \n minValueHandle : {control :'number', if: { arg: 'type', eq: 'double'},\n description: 'The minimum value of the handle in double slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'number' }\n }\n },\n maxValueHandle : {control :'number', if: { arg: 'type', eq: 'double'},\n description: 'The maximum value of the handle in double slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'number' }\n },\n }, \n showPercentage: { \n control: 'boolean', if: { arg: 'type', eq: 'single'},\n description: 'Show the percentage of the slider value.',\n table: {\n category: 'ifx-slider props',\n defaultValue: { summary: 'false' },\n type: { summary: 'boolean' }\n }\n },\n disabled: { control: 'boolean',\n description: 'Disable the slider.',\n table: {\n category: 'ifx-slider props',\n defaultValue: { summary: 'false' },\n type: { summary: 'boolean' }\n }\n },\n leftIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select'},\n description: 'The icon on the left of the slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n rightIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n description: 'The icon on the right of the slider.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n leftText: { control: 'text',\n description: 'The text on the left side.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n rightText: { control: 'text',\n description: 'The text on the right side.',\n table: {\n category: 'ifx-slider props',\n type: { summary: 'string' }\n }\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event emitted on input change.',\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 sliderElement = document.createElement('ifx-slider');\n sliderElement.setAttribute('value', args.value);\n sliderElement.setAttribute('min', args.min);\n sliderElement.setAttribute('max', args.max);\n sliderElement.setAttribute('step', args.step)\n sliderElement.setAttribute('min-value-handle', args.minValueHandle);\n sliderElement.setAttribute('max-value-handle', args.maxValueHandle);\n sliderElement.setAttribute('type', args.type);\n if (args.showPercentage) {\n sliderElement.setAttribute('show-percentage', 'true');\n }\n if (args.disabled) {\n sliderElement.setAttribute('disabled', 'true'); // Set disabled attribute\n }\n\n if (args.leftIcon) {\n sliderElement.setAttribute('left-icon', args.leftIcon);\n }\n if (args.rightIcon) {\n sliderElement.setAttribute('right-icon', args.rightIcon);\n }\n if (args.leftText) {\n sliderElement.setAttribute('left-text', args.leftText);\n }\n if (args.rightText) {\n sliderElement.setAttribute('right-text', args.rightText);\n }\n sliderElement.addEventListener('ifxChange', action('ifxChange'));\n\n return sliderElement;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n min: 0,\n max: 100,\n step: 1,\n value: 50,\n minValueHandle: 20,\n maxValueHandle: 80,\n showPercentage: false,\n disabled: false,\n type: 'single'\n};\n\nexport const WithPercentageDisplay = Template.bind({});\nWithPercentageDisplay.args = {\n ...Default.args,\n showPercentage: true,\n disabled: false,\n};\n\nexport const WithIcons = Template.bind({});\nWithIcons.args = {\n ...Default.args,\n leftIcon: 'cogwheel-16',\n rightIcon: 'cogwheel-16',\n};\n\nexport const WithTexts = Template.bind({});\nWithTexts.args = {\n ...Default.args,\n leftText: 'LeftText',\n rightText: 'RightText',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n"]}
|
1
|
+
{"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../src/components/slider/slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,QAAQ,EAAE;QACR,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC1B,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC1B,IAAI,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OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,WAAW,GACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,mCACR,OAAO,CAAC,IAAI,KACf,QAAQ,EAAE,IAAI,GACf,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Slider',\n component: 'ifx-slider',\n tags: ['autodocs'],\n\n argTypes: {\n min: { control: 'number' },\n max: { control: 'number' },\n step: { control: 'number' },\n type: { control: 'radio', options: ['single', 'double']},\n value: { control: 'number', if: { arg: 'type', eq: 'single'} },\n minValueHandle : {control :'number', if: { arg: 'type', eq: 'double'}},\n maxValueHandle : {control :'number', if: { arg: 'type', eq: 'double'}},\n showPercentage: { control: 'boolean', if: { arg: 'type', eq: 'single'} },\n disabled: { control: 'boolean' },\n leftIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n rightIcon: {\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n },\n leftText: { control: 'text' },\n rightText: { control: 'text' },\n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event emitted on input change',\n table: {\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 sliderElement = document.createElement('ifx-slider');\n sliderElement.setAttribute('value', args.value);\n sliderElement.setAttribute('min', args.min);\n sliderElement.setAttribute('max', args.max);\n sliderElement.setAttribute('step', args.step)\n sliderElement.setAttribute('min-value-handle', args.minValueHandle);\n sliderElement.setAttribute('max-value-handle', args.maxValueHandle);\n sliderElement.setAttribute('type', args.type);\n if (args.showPercentage) {\n sliderElement.setAttribute('show-percentage', 'true');\n }\n if (args.disabled) {\n sliderElement.setAttribute('disabled', 'true'); // Set disabled attribute\n }\n\n if (args.leftIcon) {\n sliderElement.setAttribute('left-icon', args.leftIcon);\n }\n if (args.rightIcon) {\n sliderElement.setAttribute('right-icon', args.rightIcon);\n }\n if (args.leftText) {\n sliderElement.setAttribute('left-text', args.leftText);\n }\n if (args.rightText) {\n sliderElement.setAttribute('right-text', args.rightText);\n }\n sliderElement.addEventListener('ifxChange', action('ifxChange'));\n\n return sliderElement;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n min: 0,\n max: 100,\n step: 1,\n value: 50,\n minValueHandle: 20,\n maxValueHandle: 80,\n showPercentage: false,\n disabled: false,\n type: 'single'\n};\n\nexport const WithPercentageDisplay = Template.bind({});\nWithPercentageDisplay.args = {\n ...Default.args,\n showPercentage: true,\n disabled: false,\n};\n\nexport const WithIcons = Template.bind({});\nWithIcons.args = {\n ...Default.args,\n leftIcon: 'cogwheel-16',\n rightIcon: 'cogwheel-16',\n};\n\nexport const WithTexts = Template.bind({});\nWithTexts.args = {\n ...Default.args,\n leftText: 'LeftText',\n rightText: 'RightText',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n"]}
|
@@ -4,52 +4,20 @@ export default {
|
|
4
4
|
args: {
|
5
5
|
size: 'm',
|
6
6
|
variant: 'default',
|
7
|
-
inverted: false,
|
8
7
|
},
|
9
8
|
argTypes: {
|
10
9
|
size: {
|
11
|
-
description: 'Size options: s (24px) and m (40px)
|
10
|
+
description: 'Size options: s (24px) and m (40px) - default: m',
|
12
11
|
options: ['s', 'm'],
|
13
12
|
control: { type: 'radio' },
|
14
|
-
table: {
|
15
|
-
category: 'ifx-spinner props',
|
16
|
-
defaultValue: {
|
17
|
-
summary: 'm'
|
18
|
-
},
|
19
|
-
type: {
|
20
|
-
summary: 's | m'
|
21
|
-
}
|
22
|
-
}
|
23
13
|
},
|
24
14
|
variant: {
|
25
|
-
description: 'Variant of the spinner.',
|
26
15
|
options: ['default', 'brand'],
|
27
16
|
control: { type: 'radio' },
|
28
|
-
table: {
|
29
|
-
category: 'ifx-spinner props',
|
30
|
-
defaultValue: {
|
31
|
-
summary: 'default'
|
32
|
-
},
|
33
|
-
type: {
|
34
|
-
summary: 'string'
|
35
|
-
}
|
36
|
-
},
|
37
17
|
},
|
38
|
-
inverted: {
|
39
|
-
description: 'Changes the color of spinner to white.',
|
40
|
-
table: {
|
41
|
-
category: 'ifx-spinner props',
|
42
|
-
defaultValue: {
|
43
|
-
summary: 'false'
|
44
|
-
},
|
45
|
-
type: {
|
46
|
-
summary: 'boolean'
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
18
|
},
|
51
19
|
};
|
52
|
-
const DefaultTemplate = args => `<ifx-spinner variant="${args.variant}" size="${args.size}"
|
20
|
+
const DefaultTemplate = args => `<ifx-spinner variant="${args.variant}" size="${args.size}"></ifx-spinner>`;
|
53
21
|
export const Default = DefaultTemplate.bind({});
|
54
22
|
Default.argsTypes = {};
|
55
23
|
//# sourceMappingURL=spinner.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"spinner.stories.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.stories.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"spinner.stories.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YACnB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,yBAAyB,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,IAAI,kBAAkB,CAAC;AAE5G,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Spinner',\n tags: ['autodocs'],\n\n args: {\n size: 'm',\n variant: 'default',\n },\n argTypes: {\n size: {\n description: 'Size options: s (24px) and m (40px) - default: m',\n options: ['s', 'm'],\n control: { type: 'radio' },\n },\n variant: {\n options: ['default', 'brand'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-spinner variant=\"${args.variant}\" size=\"${args.size}\"></ifx-spinner>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argsTypes = {};\n"]}
|
@@ -7,37 +7,13 @@ export default {
|
|
7
7
|
border: true,
|
8
8
|
},
|
9
9
|
argTypes: {
|
10
|
-
label: {
|
11
|
-
name: 'Label of Status',
|
12
|
-
description: 'Set the label of *<ifx-status>*.',
|
13
|
-
table: {
|
14
|
-
category: 'ifx-status props',
|
15
|
-
type: {
|
16
|
-
summary: 'string'
|
17
|
-
}
|
18
|
-
}
|
19
|
-
},
|
20
10
|
border: {
|
21
|
-
description: 'When set to **true** the status has a border.',
|
22
11
|
control: 'boolean',
|
23
12
|
attr: 'border',
|
24
|
-
table: {
|
25
|
-
category: 'ifx-status props',
|
26
|
-
defaultValue: {
|
27
|
-
summary: true
|
28
|
-
}
|
29
|
-
}
|
30
13
|
},
|
31
14
|
color: {
|
32
|
-
description: 'Sets the color of the status.',
|
33
|
-
control: 'radio',
|
34
15
|
options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],
|
35
|
-
|
36
|
-
category: 'ifx-status props',
|
37
|
-
defaultValue: {
|
38
|
-
summary: 'orange'
|
39
|
-
}
|
40
|
-
}
|
16
|
+
control: { type: 'radio' },
|
41
17
|
},
|
42
18
|
},
|
43
19
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"status.stories.js","sourceRoot":"","sources":["../../../src/components/status/status.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,
|
1
|
+
{"version":3,"file":"status.stories.js","sourceRoot":"","sources":["../../../src/components/status/status.stories.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,QAAQ;SACf;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3E,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,sBAAsB,IAAI,CAAC,KAAK,YAAY,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,MAAM,KAAK,CAAC;AAEpH,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["export default {\n title: 'Components/Status',\n tags: ['autodocs'],\n\n args: {\n label: 'text',\n color: 'orange',\n border: true,\n },\n argTypes: {\n border: {\n control: 'boolean',\n attr: 'border',\n },\n color: {\n options: ['orange', 'ocean', 'grey', 'light-grey', 'red', 'green', 'berry'],\n control: { type: 'radio' },\n },\n },\n};\n\nconst DefaultTemplate = args => `<ifx-status label=\"${args.label}\" color=\"${args.color}\" border=\"${args.border}\"/>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
|
@@ -2,14 +2,13 @@ import { action } from "@storybook/addon-actions";
|
|
2
2
|
export default {
|
3
3
|
title: 'Components/Stepper',
|
4
4
|
args: {
|
5
|
-
amountOfSteps: 5,
|
6
5
|
activeStep: 2,
|
6
|
+
amountOfSteps: 5,
|
7
|
+
errorStep: 0,
|
7
8
|
disabled: false,
|
8
9
|
indicatorPosition: 'left',
|
9
10
|
showStepNumber: false,
|
10
|
-
variant: 'default'
|
11
|
-
error: false,
|
12
|
-
completeStep: false,
|
11
|
+
variant: 'default'
|
13
12
|
},
|
14
13
|
argTypes: {
|
15
14
|
activeStep: {
|
@@ -17,39 +16,31 @@ export default {
|
|
17
16
|
type: 'number',
|
18
17
|
min: 1
|
19
18
|
},
|
20
|
-
description: 'Indicates the current active step
|
19
|
+
description: 'Indicates the current active step',
|
21
20
|
table: {
|
22
|
-
|
23
|
-
defaultValue: { summary: 2 }
|
21
|
+
defaultValue: { summary: 1 }
|
24
22
|
}
|
25
23
|
},
|
26
24
|
amountOfSteps: {
|
27
|
-
name: 'Amount of
|
25
|
+
name: 'Amount of steps',
|
28
26
|
control: 'number',
|
29
|
-
description: 'Indicates the number of steps in stepper in a story
|
30
|
-
table: {
|
31
|
-
category: 'story controls',
|
32
|
-
defaultValue: { summary: 5 }
|
33
|
-
}
|
27
|
+
description: 'Indicates the number of steps in stepper in a story'
|
34
28
|
},
|
35
29
|
completeStep: {
|
36
30
|
name: 'complete',
|
37
|
-
description: 'A boolean prop to mark
|
38
|
-
control: 'boolean',
|
31
|
+
description: 'A boolean prop to mark a step complete.<br>Usage:',
|
39
32
|
table: {
|
40
|
-
category: 'ifx-step props',
|
41
33
|
defaultValue: { summary: false },
|
42
34
|
type: {
|
43
|
-
summary:
|
35
|
+
summary: `<ifx-step complete=true> </ifx-step>`
|
44
36
|
}
|
45
37
|
}
|
46
38
|
},
|
47
39
|
disabled: {
|
48
40
|
name: 'disabled',
|
49
41
|
control: 'boolean',
|
50
|
-
description: 'A boolean prop to make
|
42
|
+
description: 'A boolean prop to make the step unclickable:',
|
51
43
|
table: {
|
52
|
-
category: 'ifx-step props',
|
53
44
|
defaultValue: { summary: false },
|
54
45
|
type: {
|
55
46
|
summary: `<ifx-step disabled=true> </ifx-step>`
|
@@ -57,52 +48,37 @@ export default {
|
|
57
48
|
},
|
58
49
|
if: { arg: 'variant', eq: 'default' }
|
59
50
|
},
|
60
|
-
|
61
|
-
|
62
|
-
|
51
|
+
errorStep: {
|
52
|
+
name: 'error',
|
53
|
+
control: 'number',
|
54
|
+
description: 'Specified step number indicates to have an error',
|
63
55
|
table: {
|
64
|
-
|
65
|
-
type: {
|
66
|
-
summary: 'boolean'
|
67
|
-
}
|
56
|
+
defaultValue: { summary: false }
|
68
57
|
},
|
69
58
|
},
|
70
59
|
indicatorPosition: {
|
71
60
|
control: 'radio',
|
72
61
|
defaultValue: { summary: 'left' },
|
73
|
-
description: 'Allows to swap the
|
62
|
+
description: 'Allows to swap the progross bar and steps\' label',
|
74
63
|
options: ['left', 'right'],
|
75
|
-
if: { arg: 'variant', eq: 'compact' }
|
76
|
-
table: {
|
77
|
-
category: 'ifx-stepper props'
|
78
|
-
}
|
64
|
+
if: { arg: 'variant', eq: 'compact' }
|
79
65
|
},
|
80
66
|
showStepNumber: {
|
81
67
|
control: 'boolean',
|
82
68
|
defaultValue: { summary: 'false' },
|
83
|
-
description: 'Shows the step number when set true
|
84
|
-
if: { arg: 'variant', eq: 'default' }
|
85
|
-
table: {
|
86
|
-
category: 'ifx-stepper props'
|
87
|
-
}
|
69
|
+
description: 'Shows the step number when set true',
|
70
|
+
if: { arg: 'variant', eq: 'default' }
|
88
71
|
},
|
89
72
|
variant: {
|
90
73
|
options: ['default', 'compact', 'vertical'],
|
91
74
|
defaultValue: { summary: 'default' },
|
92
|
-
description: 'Allows to switch between default and compact variant
|
93
|
-
control: 'radio'
|
94
|
-
table: {
|
95
|
-
category: 'ifx-stepper props',
|
96
|
-
type: {
|
97
|
-
summary: 'default | compact | vertical'
|
98
|
-
},
|
99
|
-
}
|
75
|
+
description: 'Allows to switch between default and compact variant',
|
76
|
+
control: 'radio'
|
100
77
|
},
|
101
78
|
ifxChange: {
|
102
79
|
action: 'ifxChange',
|
103
|
-
description: 'A custom event emitted when active step changes
|
80
|
+
description: 'A custom event emitted when active step changes',
|
104
81
|
table: {
|
105
|
-
category: 'custom events',
|
106
82
|
type: {
|
107
83
|
summary: 'Framework integration',
|
108
84
|
detail: `
|
@@ -127,15 +103,10 @@ variant=${args.variant}>
|
|
127
103
|
return Array.from({ length: args.amountOfSteps }, (_, stepId) => {
|
128
104
|
const step = document.createElement('ifx-step');
|
129
105
|
step.innerHTML = `Step Label ${stepId + 1}`;
|
130
|
-
if (args.
|
131
|
-
step.setAttribute('disabled', 'true');
|
132
|
-
}
|
133
|
-
if (args.error && stepId === 0) {
|
106
|
+
if (args.errorStep === stepId + 1)
|
134
107
|
step.setAttribute('error', 'true');
|
135
|
-
|
136
|
-
|
137
|
-
step.setAttribute('complete', args.completeStep);
|
138
|
-
}
|
108
|
+
if (args.disabled)
|
109
|
+
step.setAttribute('disabled', 'true');
|
139
110
|
return step.outerHTML;
|
140
111
|
}).join(`\n `);
|
141
112
|
})()}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../src/components/stepper/stepper.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,
|
1
|
+
{"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../src/components/stepper/stepper.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAc;IACV,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE;QACF,UAAU,EAAE,CAAC;QACb,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,KAAK;QACf,iBAAiB,EAAE,MAAM;QACzB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,SAAS;KACrB;IACD,QAAQ,EAAE;QACN,UAAU,EAAE;YACR,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,CAAC;aACT;YACD,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE;gBACH,YAAY,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;aAC/B;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,qDAAqD;SACrE;QACD,YAAY,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACH,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBAChC,IAAI,EAAE;oBACF,OAAO,EAAE,sCAAsC;iBAClD;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,8CAA8C;YAC3D,KAAK,EAAE;gBACH,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBAChC,IAAI,EAAE;oBACF,OAAO,EAAE,sCAAsC;iBAClD;aACJ;YACD,EAAE,EAAE,EAAE,GAAG,EAAC,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;SACvC;QACD,SAAS,EAAE;YACP,IAAI,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B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACZ,OAAO,EAAE,UAAU;CACtB,CAAA","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default{\n title: 'Components/Stepper',\n args: { \n activeStep: 2,\n amountOfSteps: 5,\n errorStep: 0,\n disabled: false,\n indicatorPosition: 'left',\n showStepNumber: false,\n variant: 'default'\n },\n argTypes: {\n activeStep: { \n control: {\n type: 'number',\n min: 1\n }, \n description: 'Indicates the current active step', \n table: {\n defaultValue: { summary: 1 }\n }\n },\n amountOfSteps: { \n name: 'Amount of steps',\n control: 'number', \n description: 'Indicates the number of steps in stepper in a story'\n },\n completeStep: {\n name: 'complete',\n description: 'A boolean prop to mark a step complete.<br>Usage:',\n table: {\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step complete=true> </ifx-step>`\n }\n }\n },\n disabled: {\n name: 'disabled',\n control: 'boolean',\n description: 'A boolean prop to make the step unclickable:',\n table: {\n defaultValue: { summary: false },\n type: {\n summary: `<ifx-step disabled=true> </ifx-step>`\n }\n },\n if: { arg:'variant', eq: 'default' }\n },\n errorStep: {\n name: 'error',\n control: 'number',\n description: 'Specified step number indicates to have an error',\n table: {\n defaultValue: { summary: false }\n },\n },\n indicatorPosition: {\n control: 'radio',\n defaultValue: { summary: 'left' },\n description: 'Allows to swap the progross bar and steps\\' label',\n options: ['left', 'right'],\n if: { arg:'variant', eq: 'compact' }\n },\n showStepNumber: { \n control: 'boolean', \n defaultValue: { summary: 'false' },\n description: 'Shows the step number when set true',\n if: { arg: 'variant', eq: 'default' }\n },\n variant: {\n options: ['default', 'compact', 'vertical'],\n defaultValue: { summary: 'default' },\n description: 'Allows to switch between default and compact variant',\n control: 'radio'\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'A custom event emitted when active step changes',\n table: {\n type: {\n summary: 'Framework integration',\n detail: `\nReact: 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 wrapper = document.createElement('div');\n wrapper.innerHTML = `\n<ifx-stepper \nactive-step=${args.activeStep} \n${args.variant === 'compact' ? `indicator-position=${args.indicatorPosition}` : ''} \n${args.variant === 'default' ? `show-step-number=${args.showStepNumber}` : ''} \nvariant=${args.variant}>\n ${\n (()=>{\n return Array.from({ length: args.amountOfSteps }, (_, stepId) => {\n const step = document.createElement('ifx-step')\n step.innerHTML = `Step Label ${stepId+1}`\n if (args.errorStep === stepId+1) step.setAttribute('error', 'true')\n if (args.disabled) step.setAttribute('disabled', 'true')\n return step.outerHTML\n }).join(`\\n `)\n })()\n }\n</ifx-stepper>`\n\n const stepper = wrapper.querySelector('ifx-stepper');\n stepper.addEventListener('ifxChange', action('ifxChange'));\n \n return stepper;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n variant: 'default'\n};\n\nexport const Compact = Template.bind({});\nCompact.args = {\n variant: 'compact'\n};\n\nexport const Vertical = Template.bind({});\nVertical.args = {\n variant: 'vertical'\n}\n"]}
|
@@ -3,67 +3,21 @@ export default {
|
|
3
3
|
title: 'Components/Switch',
|
4
4
|
tags: ['autodocs'],
|
5
5
|
args: {
|
6
|
-
label: 'Switch',
|
7
6
|
checked: false,
|
7
|
+
label: 'Switch',
|
8
8
|
name: 'switch',
|
9
9
|
value: 'switch',
|
10
|
-
disabled: false,
|
11
10
|
},
|
12
11
|
argTypes: {
|
13
|
-
label: {
|
14
|
-
name: 'Label of Switch',
|
15
|
-
description: 'Set the label of *<ifx-switch>*.',
|
16
|
-
table: {
|
17
|
-
category: 'story controls',
|
18
|
-
}
|
19
|
-
},
|
20
12
|
name: {
|
21
|
-
description: 'Name of the element, that is used as reference when a form is submitted.'
|
22
|
-
table: {
|
23
|
-
category: 'ifx-switch props',
|
24
|
-
type: {
|
25
|
-
summary: 'string'
|
26
|
-
}
|
27
|
-
}
|
28
|
-
},
|
29
|
-
checked: {
|
30
|
-
name: 'checked',
|
31
|
-
description: 'Set the checked state of the switch.',
|
32
|
-
table: {
|
33
|
-
category: 'ifx-switch props',
|
34
|
-
defaultValue: {
|
35
|
-
summary: 'false'
|
36
|
-
},
|
37
|
-
type: {
|
38
|
-
summary: 'boolean'
|
39
|
-
}
|
40
|
-
}
|
13
|
+
description: 'Name of the element, that is used as reference when a form is submitted.'
|
41
14
|
},
|
42
15
|
value: {
|
43
|
-
description: 'The value that gets submitted, when the radio button is checked
|
44
|
-
table: {
|
45
|
-
category: 'ifx-switch props',
|
46
|
-
type: {
|
47
|
-
summary: 'string'
|
48
|
-
}
|
49
|
-
}
|
50
|
-
},
|
51
|
-
disabled: {
|
52
|
-
description: 'The value that gets submitted, when the radio button is checked.',
|
53
|
-
table: {
|
54
|
-
category: 'ifx-switch props',
|
55
|
-
defaultValue: {
|
56
|
-
summary: 'false'
|
57
|
-
},
|
58
|
-
type: {
|
59
|
-
summary: 'boolean'
|
60
|
-
}
|
61
|
-
}
|
16
|
+
description: 'The value that gets submitted, when the radio button is checked'
|
62
17
|
},
|
63
18
|
ifxChange: {
|
64
|
-
description: 'Custom event emitted on change
|
19
|
+
description: 'Custom event emitted on change',
|
65
20
|
table: {
|
66
|
-
category: 'custom events',
|
67
21
|
type: {
|
68
22
|
summary: 'Framework integration',
|
69
23
|
detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
|
@@ -79,7 +33,6 @@ const DefaultTemplate = args => {
|
|
79
33
|
element.setAttribute('checked', args.checked);
|
80
34
|
element.setAttribute('name', args.name);
|
81
35
|
element.setAttribute('value', args.value);
|
82
|
-
element.setAttribute('disabled', args.disabled);
|
83
36
|
// Add the event listener
|
84
37
|
// element.addEventListener('ifxChange', action('ifxChange'));
|
85
38
|
// Inside your story, add an event listener for the custom event
|