@vonage/vivid-react 2.10.56 → 2.10.59
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/README.md +17 -7
- package/VwcAccordion/index.d.ts +14 -0
- package/VwcAccordion/index.js +59 -0
- package/VwcAccordion/package.json +11 -0
- package/VwcActionGroup/index.d.ts +18 -0
- package/VwcActionGroup/index.js +90 -0
- package/VwcActionGroup/package.json +11 -0
- package/VwcBadge/index.d.ts +29 -0
- package/VwcBadge/index.js +154 -0
- package/VwcBadge/package.json +11 -0
- package/VwcBanner/index.d.ts +26 -0
- package/VwcBanner/index.js +91 -0
- package/VwcBanner/package.json +11 -0
- package/VwcButton/index.d.ts +55 -0
- package/VwcButton/index.js +240 -0
- package/VwcButton/package.json +11 -0
- package/VwcButtonToggleGroup/index.d.ts +25 -0
- package/VwcButtonToggleGroup/index.js +91 -0
- package/VwcButtonToggleGroup/package.json +11 -0
- package/VwcCalendar/index.d.ts +20 -0
- package/VwcCalendar/index.js +70 -0
- package/VwcCalendar/package.json +11 -0
- package/VwcCalendarEvent/index.d.ts +25 -0
- package/VwcCalendarEvent/index.js +81 -0
- package/VwcCalendarEvent/package.json +11 -0
- package/VwcCard/index.d.ts +23 -0
- package/VwcCard/index.js +76 -0
- package/VwcCard/package.json +11 -0
- package/VwcCarousel/index.d.ts +14 -0
- package/VwcCarousel/index.js +45 -0
- package/VwcCarousel/package.json +11 -0
- package/VwcCarouselItem/index.d.ts +14 -0
- package/VwcCarouselItem/index.js +49 -0
- package/VwcCarouselItem/package.json +11 -0
- package/VwcCheckListItem/index.d.ts +41 -0
- package/VwcCheckListItem/index.js +153 -0
- package/VwcCheckListItem/package.json +11 -0
- package/VwcCheckbox/index.d.ts +34 -0
- package/VwcCheckbox/index.js +126 -0
- package/VwcCheckbox/package.json +11 -0
- package/VwcChip/index.d.ts +31 -0
- package/VwcChip/index.js +106 -0
- package/VwcChip/package.json +11 -0
- package/VwcChipSet/index.d.ts +16 -0
- package/VwcChipSet/index.js +60 -0
- package/VwcChipSet/package.json +11 -0
- package/VwcCircularProgress/index.d.ts +24 -0
- package/VwcCircularProgress/index.js +84 -0
- package/VwcCircularProgress/package.json +11 -0
- package/VwcDataGrid/index.d.ts +33 -0
- package/VwcDataGrid/index.js +122 -0
- package/VwcDataGrid/package.json +11 -0
- package/VwcDataGridColumn/index.d.ts +43 -0
- package/VwcDataGridColumn/index.js +144 -0
- package/VwcDataGridColumn/package.json +11 -0
- package/VwcDatepicker/index.d.ts +120 -0
- package/VwcDatepicker/index.js +422 -0
- package/VwcDatepicker/package.json +11 -0
- package/VwcDialog/index.d.ts +40 -0
- package/VwcDialog/index.js +135 -0
- package/VwcDialog/package.json +11 -0
- package/VwcDrawer/index.d.ts +20 -0
- package/VwcDrawer/index.js +80 -0
- package/VwcDrawer/package.json +11 -0
- package/VwcDropdown/index.d.ts +61 -0
- package/VwcDropdown/index.js +221 -0
- package/VwcDropdown/package.json +11 -0
- package/VwcElevation/index.d.ts +14 -0
- package/VwcElevation/index.js +45 -0
- package/VwcElevation/package.json +11 -0
- package/VwcEmptyState/index.d.ts +18 -0
- package/VwcEmptyState/index.js +59 -0
- package/VwcEmptyState/package.json +11 -0
- package/VwcExpansionPanel/index.d.ts +34 -0
- package/VwcExpansionPanel/index.js +199 -0
- package/VwcExpansionPanel/package.json +11 -0
- package/VwcFab/index.d.ts +32 -0
- package/VwcFab/index.js +124 -0
- package/VwcFab/package.json +11 -0
- package/VwcFilePicker/index.d.ts +24 -0
- package/VwcFilePicker/index.js +88 -0
- package/VwcFilePicker/package.json +11 -0
- package/VwcFormfield/index.d.ts +20 -0
- package/VwcFormfield/index.js +70 -0
- package/VwcFormfield/package.json +11 -0
- package/VwcHelperMessage/index.d.ts +14 -0
- package/VwcHelperMessage/index.js +49 -0
- package/VwcHelperMessage/package.json +11 -0
- package/VwcIcon/index.d.ts +22 -0
- package/VwcIcon/index.js +102 -0
- package/VwcIcon/package.json +11 -0
- package/VwcIconButton/index.d.ts +31 -0
- package/VwcIconButton/index.js +111 -0
- package/VwcIconButton/package.json +11 -0
- package/VwcIconButtonToggle/index.d.ts +37 -0
- package/VwcIconButtonToggle/index.js +136 -0
- package/VwcIconButtonToggle/package.json +11 -0
- package/VwcKeypad/index.d.ts +31 -0
- package/VwcKeypad/index.js +176 -0
- package/VwcKeypad/package.json +11 -0
- package/VwcLayout/index.d.ts +20 -0
- package/VwcLayout/index.js +105 -0
- package/VwcLayout/package.json +11 -0
- package/VwcLinearProgress/index.d.ts +26 -0
- package/VwcLinearProgress/index.js +98 -0
- package/VwcLinearProgress/package.json +11 -0
- package/VwcList/index.d.ts +35 -0
- package/VwcList/index.js +146 -0
- package/VwcList/package.json +11 -0
- package/VwcListExpansionPanel/index.d.ts +19 -0
- package/VwcListExpansionPanel/index.js +68 -0
- package/VwcListExpansionPanel/package.json +11 -0
- package/VwcListItem/index.d.ts +42 -0
- package/VwcListItem/index.js +171 -0
- package/VwcListItem/package.json +11 -0
- package/VwcMenu/index.d.ts +53 -0
- package/VwcMenu/index.js +210 -0
- package/VwcMenu/package.json +11 -0
- package/VwcNotchedOutline/index.d.ts +17 -0
- package/VwcNotchedOutline/index.js +58 -0
- package/VwcNotchedOutline/package.json +11 -0
- package/VwcNote/index.d.ts +18 -0
- package/VwcNote/index.js +59 -0
- package/VwcNote/package.json +11 -0
- package/VwcPagination/index.d.ts +17 -0
- package/VwcPagination/index.js +55 -0
- package/VwcPagination/package.json +11 -0
- package/VwcPopup/index.d.ts +30 -0
- package/VwcPopup/index.js +147 -0
- package/VwcPopup/package.json +11 -0
- package/VwcRadio/index.d.ts +52 -0
- package/VwcRadio/index.js +149 -0
- package/VwcRadio/package.json +11 -0
- package/VwcRadioListItem/index.d.ts +41 -0
- package/VwcRadioListItem/index.js +148 -0
- package/VwcRadioListItem/package.json +11 -0
- package/VwcSchemeSelect/index.d.ts +14 -0
- package/VwcSchemeSelect/index.js +46 -0
- package/VwcSchemeSelect/package.json +11 -0
- package/VwcSelect/index.d.ts +60 -0
- package/VwcSelect/index.js +253 -0
- package/VwcSelect/package.json +11 -0
- package/VwcSideDrawer/index.d.ts +22 -0
- package/VwcSideDrawer/index.js +73 -0
- package/VwcSideDrawer/package.json +11 -0
- package/VwcSlider/index.d.ts +34 -0
- package/VwcSlider/index.js +129 -0
- package/VwcSlider/package.json +11 -0
- package/VwcSnackbar/index.d.ts +42 -0
- package/VwcSnackbar/index.js +138 -0
- package/VwcSnackbar/package.json +11 -0
- package/VwcSurface/index.d.ts +42 -0
- package/VwcSurface/index.js +145 -0
- package/VwcSurface/package.json +11 -0
- package/VwcSwitch/index.d.ts +27 -0
- package/VwcSwitch/index.js +114 -0
- package/VwcSwitch/package.json +11 -0
- package/VwcTab/index.d.ts +40 -0
- package/VwcTab/index.js +151 -0
- package/VwcTab/package.json +11 -0
- package/VwcTabBar/index.d.ts +15 -0
- package/VwcTabBar/index.js +55 -0
- package/VwcTabBar/package.json +11 -0
- package/VwcTag/index.d.ts +34 -0
- package/VwcTag/index.js +115 -0
- package/VwcTag/package.json +11 -0
- package/VwcText/index.d.ts +18 -0
- package/VwcText/index.js +83 -0
- package/VwcText/package.json +11 -0
- package/VwcTextarea/index.d.ts +93 -0
- package/VwcTextarea/index.js +331 -0
- package/VwcTextarea/package.json +11 -0
- package/VwcTextfield/index.d.ts +89 -0
- package/VwcTextfield/index.js +329 -0
- package/VwcTextfield/package.json +11 -0
- package/VwcThemeSwitch/index.d.ts +14 -0
- package/VwcThemeSwitch/index.js +57 -0
- package/VwcThemeSwitch/package.json +11 -0
- package/VwcTooltip/index.d.ts +22 -0
- package/VwcTooltip/index.js +105 -0
- package/VwcTooltip/package.json +11 -0
- package/VwcTopAppBar/index.d.ts +22 -0
- package/VwcTopAppBar/index.js +77 -0
- package/VwcTopAppBar/package.json +11 -0
- package/VwcTopAppBarFixed/index.d.ts +22 -0
- package/VwcTopAppBarFixed/index.js +88 -0
- package/VwcTopAppBarFixed/package.json +11 -0
- package/index.js +319 -0
- package/package.json +9 -10
- package/types/index.d.ts +293 -1
- package/v3/VwcAccordion/index.d.ts +17 -0
- package/v3/VwcAccordion/index.js +55 -0
- package/v3/VwcAccordion/package.json +11 -0
- package/v3/VwcAccordionItem/index.d.ts +22 -0
- package/v3/VwcAccordionItem/index.js +121 -0
- package/v3/VwcAccordionItem/package.json +11 -0
- package/v3/VwcActionGroup/index.d.ts +24 -0
- package/v3/VwcActionGroup/index.js +139 -0
- package/v3/VwcActionGroup/package.json +11 -0
- package/v3/VwcAlert/index.d.ts +34 -0
- package/v3/VwcAlert/index.js +266 -0
- package/v3/VwcAlert/package.json +11 -0
- package/v3/VwcAvatar/index.d.ts +26 -0
- package/v3/VwcAvatar/index.js +183 -0
- package/v3/VwcAvatar/package.json +11 -0
- package/v3/VwcBadge/index.d.ts +22 -0
- package/v3/VwcBadge/index.js +271 -0
- package/v3/VwcBadge/package.json +11 -0
- package/v3/VwcBanner/index.d.ts +28 -0
- package/v3/VwcBanner/index.js +204 -0
- package/v3/VwcBanner/package.json +11 -0
- package/v3/VwcBreadcrumb/index.d.ts +15 -0
- package/v3/VwcBreadcrumb/index.js +35 -0
- package/v3/VwcBreadcrumb/package.json +11 -0
- package/v3/VwcBreadcrumbItem/index.d.ts +16 -0
- package/v3/VwcBreadcrumbItem/index.js +47 -0
- package/v3/VwcBreadcrumbItem/package.json +11 -0
- package/v3/VwcButton/index.d.ts +29 -0
- package/v3/VwcButton/index.js +286 -0
- package/v3/VwcButton/package.json +11 -0
- package/v3/VwcCalendar/index.d.ts +35 -0
- package/v3/VwcCalendar/index.js +224 -0
- package/v3/VwcCalendar/package.json +11 -0
- package/v3/VwcCalendarEvent/index.d.ts +28 -0
- package/v3/VwcCalendarEvent/index.js +264 -0
- package/v3/VwcCalendarEvent/package.json +11 -0
- package/v3/VwcCard/index.d.ts +31 -0
- package/v3/VwcCard/index.js +154 -0
- package/v3/VwcCard/package.json +11 -0
- package/v3/VwcCheckbox/index.d.ts +16 -0
- package/v3/VwcCheckbox/index.js +100 -0
- package/v3/VwcCheckbox/package.json +11 -0
- package/v3/VwcCombobox/index.d.ts +22 -0
- package/v3/VwcCombobox/index.js +87 -0
- package/v3/VwcCombobox/package.json +11 -0
- package/v3/VwcDataGrid/index.d.ts +16 -0
- package/v3/VwcDataGrid/index.js +118 -0
- package/v3/VwcDataGrid/package.json +11 -0
- package/v3/VwcDataGridCell/index.d.ts +18 -0
- package/v3/VwcDataGridCell/index.js +145 -0
- package/v3/VwcDataGridCell/package.json +11 -0
- package/v3/VwcDataGridRow/index.d.ts +16 -0
- package/v3/VwcDataGridRow/index.js +99 -0
- package/v3/VwcDataGridRow/package.json +11 -0
- package/v3/VwcDialog/index.d.ts +36 -0
- package/v3/VwcDialog/index.js +283 -0
- package/v3/VwcDialog/package.json +11 -0
- package/v3/VwcDivider/index.d.ts +15 -0
- package/v3/VwcDivider/index.js +29 -0
- package/v3/VwcDivider/package.json +11 -0
- package/v3/VwcElevation/index.d.ts +18 -0
- package/v3/VwcElevation/index.js +73 -0
- package/v3/VwcElevation/package.json +11 -0
- package/v3/VwcEmptyState/index.d.ts +18 -0
- package/v3/VwcEmptyState/index.js +81 -0
- package/v3/VwcEmptyState/package.json +11 -0
- package/v3/VwcFab/index.d.ts +20 -0
- package/v3/VwcFab/index.js +134 -0
- package/v3/VwcFab/package.json +11 -0
- package/v3/VwcFocus/index.d.ts +15 -0
- package/v3/VwcFocus/index.js +29 -0
- package/v3/VwcFocus/package.json +11 -0
- package/v3/VwcHeader/index.d.ts +18 -0
- package/v3/VwcHeader/index.js +84 -0
- package/v3/VwcHeader/package.json +11 -0
- package/v3/VwcIcon/index.d.ts +20 -0
- package/v3/VwcIcon/index.js +118 -0
- package/v3/VwcIcon/package.json +11 -0
- package/v3/VwcLayout/index.d.ts +24 -0
- package/v3/VwcLayout/index.js +127 -0
- package/v3/VwcLayout/package.json +11 -0
- package/v3/VwcListbox/index.d.ts +16 -0
- package/v3/VwcListbox/index.js +74 -0
- package/v3/VwcListbox/package.json +11 -0
- package/v3/VwcListboxOption/index.d.ts +22 -0
- package/v3/VwcListboxOption/index.js +104 -0
- package/v3/VwcListboxOption/package.json +11 -0
- package/v3/VwcMenu/index.d.ts +27 -0
- package/v3/VwcMenu/index.js +148 -0
- package/v3/VwcMenu/package.json +11 -0
- package/v3/VwcMenuItem/index.d.ts +18 -0
- package/v3/VwcMenuItem/index.js +97 -0
- package/v3/VwcMenuItem/package.json +11 -0
- package/v3/VwcNav/index.d.ts +16 -0
- package/v3/VwcNav/index.js +35 -0
- package/v3/VwcNav/package.json +11 -0
- package/v3/VwcNavDisclosure/index.d.ts +21 -0
- package/v3/VwcNavDisclosure/index.js +103 -0
- package/v3/VwcNavDisclosure/package.json +11 -0
- package/v3/VwcNavItem/index.d.ts +17 -0
- package/v3/VwcNavItem/index.js +80 -0
- package/v3/VwcNavItem/package.json +11 -0
- package/v3/VwcNote/index.d.ts +18 -0
- package/v3/VwcNote/index.js +132 -0
- package/v3/VwcNote/package.json +11 -0
- package/v3/VwcNumberField/index.d.ts +20 -0
- package/v3/VwcNumberField/index.js +149 -0
- package/v3/VwcNumberField/package.json +11 -0
- package/v3/VwcPagination/index.d.ts +28 -0
- package/v3/VwcPagination/index.js +174 -0
- package/v3/VwcPagination/package.json +11 -0
- package/v3/VwcPopup/index.d.ts +32 -0
- package/v3/VwcPopup/index.js +311 -0
- package/v3/VwcPopup/package.json +11 -0
- package/v3/VwcProgress/index.d.ts +20 -0
- package/v3/VwcProgress/index.js +110 -0
- package/v3/VwcProgress/package.json +11 -0
- package/v3/VwcProgressRing/index.d.ts +18 -0
- package/v3/VwcProgressRing/index.js +79 -0
- package/v3/VwcProgressRing/package.json +11 -0
- package/v3/VwcRadio/index.d.ts +16 -0
- package/v3/VwcRadio/index.js +68 -0
- package/v3/VwcRadio/package.json +11 -0
- package/v3/VwcRadioGroup/index.d.ts +16 -0
- package/v3/VwcRadioGroup/index.js +56 -0
- package/v3/VwcRadioGroup/package.json +11 -0
- package/v3/VwcSelect/index.d.ts +24 -0
- package/v3/VwcSelect/index.js +159 -0
- package/v3/VwcSelect/package.json +11 -0
- package/v3/VwcSideDrawer/index.d.ts +22 -0
- package/v3/VwcSideDrawer/index.js +133 -0
- package/v3/VwcSideDrawer/package.json +11 -0
- package/v3/VwcSlider/index.d.ts +16 -0
- package/v3/VwcSlider/index.js +51 -0
- package/v3/VwcSlider/package.json +11 -0
- package/v3/VwcSwitch/index.d.ts +18 -0
- package/v3/VwcSwitch/index.js +162 -0
- package/v3/VwcSwitch/package.json +11 -0
- package/v3/VwcTab/index.d.ts +20 -0
- package/v3/VwcTab/index.js +81 -0
- package/v3/VwcTab/package.json +11 -0
- package/v3/VwcTabPanel/index.d.ts +15 -0
- package/v3/VwcTabPanel/index.js +35 -0
- package/v3/VwcTabPanel/package.json +11 -0
- package/v3/VwcTabs/index.d.ts +16 -0
- package/v3/VwcTabs/index.js +126 -0
- package/v3/VwcTabs/package.json +11 -0
- package/v3/VwcTag/index.d.ts +30 -0
- package/v3/VwcTag/index.js +266 -0
- package/v3/VwcTag/package.json +11 -0
- package/v3/VwcTagGroup/index.d.ts +15 -0
- package/v3/VwcTagGroup/index.js +29 -0
- package/v3/VwcTagGroup/package.json +11 -0
- package/v3/VwcTextAnchor/index.d.ts +16 -0
- package/v3/VwcTextAnchor/index.js +50 -0
- package/v3/VwcTextAnchor/package.json +11 -0
- package/v3/VwcTextArea/index.d.ts +16 -0
- package/v3/VwcTextArea/index.js +121 -0
- package/v3/VwcTextArea/package.json +11 -0
- package/v3/VwcTextField/index.d.ts +20 -0
- package/v3/VwcTextField/index.js +149 -0
- package/v3/VwcTextField/package.json +11 -0
- package/v3/VwcToggletip/index.d.ts +24 -0
- package/v3/VwcToggletip/index.js +233 -0
- package/v3/VwcToggletip/package.json +11 -0
- package/v3/VwcTooltip/index.d.ts +23 -0
- package/v3/VwcTooltip/index.js +196 -0
- package/v3/VwcTooltip/package.json +11 -0
- package/v3/VwcTreeItem/index.d.ts +16 -0
- package/v3/VwcTreeItem/index.js +78 -0
- package/v3/VwcTreeItem/package.json +11 -0
- package/v3/VwcTreeView/index.d.ts +15 -0
- package/v3/VwcTreeView/index.js +35 -0
- package/v3/VwcTreeView/package.json +11 -0
- package/.storybook/main.js +0 -11
- package/.storybook/preview.js +0 -3
- package/babel.config.js +0 -38
- package/rollup.config.js +0 -30
- package/scripts/cli.js +0 -28
- package/scripts/generateWrappers/consts.js +0 -226
- package/scripts/generateWrappers/generator.js +0 -130
- package/scripts/generateWrappers/helpers/generator.js +0 -18
- package/scripts/generateWrappers/helpers/generator.test.js +0 -56
- package/scripts/generateWrappers/index.js +0 -0
- package/scripts/generateWrappers/prop.types.js +0 -86
- package/scripts/generateWrappers/templates/js/index.tmpl +0 -2
- package/scripts/generateWrappers/templates/js/react-component.tmpl +0 -30
- package/scripts/generateWrappers/templates/js/stories.tmpl +0 -18
- package/scripts/generateWrappers/templates/templates.js +0 -36
- package/scripts/generateWrappers/templates/ts/index.tmpl +0 -2
- package/scripts/generateWrappers/templates/ts/react-component.tmpl +0 -28
- package/scripts/generateWrappers/utils.js +0 -226
- package/scripts/generateWrappers/utils.test.js +0 -71
- package/scripts/updateDocs.js +0 -42
- package/scripts/updateVividPackages.js +0 -81
- package/src/dataGrid/index.js +0 -15
- package/src/index.js +0 -3
- package/src/initialization/initVivid.js +0 -24
- package/src/patches/VwcCard/index.js +0 -2
- package/src/patches/VwcCard/vwcCardHeadingCrop.js +0 -28
- package/src/patches/VwcCard/vwcCardWithMenu.js +0 -14
- package/src/patches/index.js +0 -6
- package/src/patches/vwcDataGrid.js +0 -26
- package/src/patches/vwcNoteContentOverflow.js +0 -20
- package/src/patches/vwcSetAttributeValue.js +0 -12
- package/src/patches/vwcSnackBarHtmlMessage.js +0 -21
- package/src/patches/vwcTooltip.js +0 -46
- package/stories/VwcAccordion/VwcAccordion.stories.jsx +0 -18
- package/stories/VwcActionGroup/VwcActionGroup.stories.jsx +0 -18
- package/stories/VwcBadge/VwcBadge.stories.jsx +0 -18
- package/stories/VwcBanner/VwcBanner.stories.jsx +0 -18
- package/stories/VwcButton/VwcButton.stories.jsx +0 -18
- package/stories/VwcButtonToggleGroup/VwcButtonToggleGroup.stories.jsx +0 -47
- package/stories/VwcCalendar/VwcCalendar.stories.jsx +0 -18
- package/stories/VwcCalendarEvent/VwcCalendarEvent.stories.jsx +0 -18
- package/stories/VwcCard/VwcCard.stories.jsx +0 -90
- package/stories/VwcCarousel/VwcCarousel.stories.jsx +0 -18
- package/stories/VwcCarouselItem/VwcCarouselItem.stories.jsx +0 -18
- package/stories/VwcCheckListItem/VwcCheckListItem.stories.jsx +0 -18
- package/stories/VwcCheckbox/VwcCheckbox.stories.jsx +0 -18
- package/stories/VwcChip/VwcChip.stories.jsx +0 -18
- package/stories/VwcChipSet/VwcChipSet.stories.jsx +0 -38
- package/stories/VwcCircularProgress/VwcCircularProgress.stories.jsx +0 -18
- package/stories/VwcDataGrid/VwcDataGrid.stories.jsx +0 -109
- package/stories/VwcDataGridColumn/VwcDataGridColumn.stories.jsx +0 -18
- package/stories/VwcDatepicker/VwcDatepicker.stories.jsx +0 -18
- package/stories/VwcDialog/VwcDialog.stories.jsx +0 -18
- package/stories/VwcDrawer/VwcDrawer.stories.jsx +0 -18
- package/stories/VwcDropdown/VwcDropdown.stories.jsx +0 -18
- package/stories/VwcElevation/VwcElevation.stories.jsx +0 -18
- package/stories/VwcEmptyState/VwcEmptyState.stories.jsx +0 -18
- package/stories/VwcExpansionPanel/VwcExpansionPanel.stories.jsx +0 -18
- package/stories/VwcFab/VwcFab.stories.jsx +0 -18
- package/stories/VwcFilePicker/VwcFilePicker.stories.jsx +0 -18
- package/stories/VwcFormfield/VwcFormfield.stories.jsx +0 -18
- package/stories/VwcHelperMessage/VwcHelperMessage.stories.jsx +0 -18
- package/stories/VwcIcon/VwcIcon.stories.jsx +0 -18
- package/stories/VwcIconButton/VwcIconButton.stories.jsx +0 -18
- package/stories/VwcIconButtonToggle/VwcIconButtonToggle.stories.jsx +0 -18
- package/stories/VwcKeypad/VwcKeypad.stories.jsx +0 -18
- package/stories/VwcLayout/VwcLayout.stories.jsx +0 -63
- package/stories/VwcLinearProgress/VwcLinearProgress.stories.jsx +0 -18
- package/stories/VwcList/VwcList.stories.jsx +0 -25
- package/stories/VwcListExpansionPanel/VwcListExpansionPanel.stories.jsx +0 -18
- package/stories/VwcListItem/VwcListItem.stories.jsx +0 -18
- package/stories/VwcMenu/VwcMenu.stories.jsx +0 -41
- package/stories/VwcNotchedOutline/VwcNotchedOutline.stories.jsx +0 -18
- package/stories/VwcNote/VwcNote.stories.jsx +0 -18
- package/stories/VwcPagination/VwcPagination.stories.jsx +0 -18
- package/stories/VwcPopup/VwcPopup.stories.jsx +0 -18
- package/stories/VwcRadio/VwcRadio.stories.jsx +0 -18
- package/stories/VwcRadioListItem/VwcRadioListItem.stories.jsx +0 -18
- package/stories/VwcSchemeSelect/VwcSchemeSelect.stories.jsx +0 -18
- package/stories/VwcSelect/VwcSelect.stories.jsx +0 -18
- package/stories/VwcSideDrawer/VwcSideDrawer.stories.jsx +0 -18
- package/stories/VwcSlider/VwcSlider.stories.jsx +0 -18
- package/stories/VwcSnackbar/VwcSnackbar.stories.jsx +0 -18
- package/stories/VwcSurface/VwcSurface.stories.jsx +0 -18
- package/stories/VwcSwitch/VwcSwitch.stories.jsx +0 -18
- package/stories/VwcTab/VwcTab.stories.jsx +0 -18
- package/stories/VwcTabBar/VwcTabBar.stories.jsx +0 -63
- package/stories/VwcTag/VwcTag.stories.jsx +0 -18
- package/stories/VwcText/VwcText.stories.jsx +0 -18
- package/stories/VwcTextarea/VwcTextarea.stories.jsx +0 -24
- package/stories/VwcTextfield/VwcTextfield.stories.jsx +0 -47
- package/stories/VwcThemeSwitch/VwcThemeSwitch.stories.jsx +0 -18
- package/stories/VwcTooltip/VwcTooltip.stories.jsx +0 -41
- package/stories/VwcTopAppBar/VwcTopAppBar.stories.jsx +0 -18
- package/stories/VwcTopAppBarFixed/VwcTopAppBarFixed.stories.jsx +0 -18
- package/stories/patches/patches.stories.jsx +0 -94
- package/tsconfig.json +0 -70
package/VwcNote/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
Code in this file were generated using following JSON:
|
|
6
|
+
{
|
|
7
|
+
"name": "vwc-note",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-note/vwc-note.d.ts",
|
|
9
|
+
"properties": [
|
|
10
|
+
{
|
|
11
|
+
"name": "connotation",
|
|
12
|
+
"type": "NoteConnotation | undefined",
|
|
13
|
+
"bindable": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "icon",
|
|
17
|
+
"type": "string | undefined",
|
|
18
|
+
"bindable": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "header",
|
|
22
|
+
"type": "string | undefined",
|
|
23
|
+
"bindable": false
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"events": []
|
|
27
|
+
}
|
|
28
|
+
*/
|
|
29
|
+
import PropTypes from 'prop-types'
|
|
30
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
31
|
+
import '@vonage/vwc-note'
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @param {NoteConnotation | undefined} connotation
|
|
36
|
+
* @param {string | undefined} icon
|
|
37
|
+
* @param {string | undefined} header
|
|
38
|
+
*/
|
|
39
|
+
const VwcNote = wrapper('vwc-note', {
|
|
40
|
+
events: [],
|
|
41
|
+
attributes: [],
|
|
42
|
+
properties: []
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
VwcNote.propTypes = {
|
|
46
|
+
connotation: PropTypes.any /* NoteConnotation | undefined */,
|
|
47
|
+
icon: PropTypes.string,
|
|
48
|
+
header: PropTypes.string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
VwcNote.defaultProps = {
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
VwcNote.displayName = 'VwcNote'
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
export default VwcNote
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import '@vonage/vwc-pagination';
|
|
3
|
+
/**
|
|
4
|
+
* @param {number} total
|
|
5
|
+
* @param {number} selectedIndex
|
|
6
|
+
*/
|
|
7
|
+
declare const VwcPagination: (props: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
slot?: string | undefined;
|
|
10
|
+
id?: string | undefined;
|
|
11
|
+
style?: React.CSSProperties | undefined;
|
|
12
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
13
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
14
|
+
total?: number | undefined;
|
|
15
|
+
selectedIndex?: number | undefined;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export default VwcPagination;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
Code in this file were generated using following JSON:
|
|
6
|
+
{
|
|
7
|
+
"name": "vwc-pagination",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-pagination/vwc-pagination.d.ts",
|
|
9
|
+
"properties": [
|
|
10
|
+
{
|
|
11
|
+
"name": "total",
|
|
12
|
+
"type": "number",
|
|
13
|
+
"bindable": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "selectedIndex",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"bindable": false
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"events": [
|
|
22
|
+
"change"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
*/
|
|
26
|
+
import PropTypes from 'prop-types'
|
|
27
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
28
|
+
import '@vonage/vwc-pagination'
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @param {number} total
|
|
33
|
+
* @param {number} selectedIndex
|
|
34
|
+
*/
|
|
35
|
+
const VwcPagination = wrapper('vwc-pagination', {
|
|
36
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
37
|
+
attributes: [],
|
|
38
|
+
properties: []
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
VwcPagination.propTypes = {
|
|
42
|
+
onChange: PropTypes.func,
|
|
43
|
+
total: PropTypes.number,
|
|
44
|
+
selectedIndex: PropTypes.number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
VwcPagination.defaultProps = {
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
VwcPagination.displayName = 'VwcPagination'
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
export default VwcPagination
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import '@vonage/vwc-popup';
|
|
3
|
+
/** Popup are used to display a message or notification to the user and are displayed on top of all other web page elements.
|
|
4
|
+
Popup's goal is to provide additional, helpful content.
|
|
5
|
+
To trigger the Popup, it should be paired with an anchor (e.g., a button).
|
|
6
|
+
* @param {CSSResult} styles
|
|
7
|
+
* @param {boolean} open attribute: <VwcPopup open />
|
|
8
|
+
* @param {string} anchor attribute: <VwcPopup anchor />
|
|
9
|
+
* @param {boolean | undefined} dismissible attribute: <VwcPopup dismissible />
|
|
10
|
+
* @param {Placement} corner attribute: <VwcPopup corner />
|
|
11
|
+
* @param {Strategy} strategy attribute: <VwcPopup strategy />
|
|
12
|
+
* @param {boolean | undefined} arrow attribute: <VwcPopup arrow />
|
|
13
|
+
* @param {boolean | undefined} alternate attribute: <VwcPopup alternate />
|
|
14
|
+
*/
|
|
15
|
+
declare const VwcPopup: (props: {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
slot?: string | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
style?: React.CSSProperties | undefined;
|
|
20
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
21
|
+
styles?: any;
|
|
22
|
+
open?: boolean | undefined;
|
|
23
|
+
anchor?: string | undefined;
|
|
24
|
+
dismissible?: any;
|
|
25
|
+
corner?: any;
|
|
26
|
+
strategy?: any;
|
|
27
|
+
arrow?: any;
|
|
28
|
+
alternate?: any;
|
|
29
|
+
}) => JSX.Element;
|
|
30
|
+
export default VwcPopup;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
Code in this file were generated using following JSON:
|
|
6
|
+
{
|
|
7
|
+
"name": "vwc-popup",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-popup/src/vwc-popup.ts",
|
|
9
|
+
"description": "Popup are used to display a message or notification to the user and are displayed on top of all other web page elements.\nPopup's goal is to provide additional, helpful content. \nTo trigger the Popup, it should be paired with an anchor (e.g., a button).",
|
|
10
|
+
"attributes": [
|
|
11
|
+
{
|
|
12
|
+
"name": "open",
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"default": "false"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "anchor",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "\"\""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "dismissible",
|
|
23
|
+
"type": "boolean | undefined"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "corner",
|
|
27
|
+
"type": "Placement",
|
|
28
|
+
"default": "\"left\""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "strategy",
|
|
32
|
+
"type": "Strategy",
|
|
33
|
+
"default": "\"fixed\""
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "arrow",
|
|
37
|
+
"type": "boolean | undefined"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "alternate",
|
|
41
|
+
"type": "boolean | undefined"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"properties": [
|
|
45
|
+
{
|
|
46
|
+
"name": "styles",
|
|
47
|
+
"type": "CSSResult",
|
|
48
|
+
"default": "\"style\"",
|
|
49
|
+
"bindable": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "open",
|
|
53
|
+
"attribute": "open",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": "false",
|
|
56
|
+
"bindable": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "anchor",
|
|
60
|
+
"attribute": "anchor",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "\"\"",
|
|
63
|
+
"bindable": false
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "dismissible",
|
|
67
|
+
"attribute": "dismissible",
|
|
68
|
+
"type": "boolean | undefined",
|
|
69
|
+
"bindable": false
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "corner",
|
|
73
|
+
"attribute": "corner",
|
|
74
|
+
"type": "Placement",
|
|
75
|
+
"default": "\"left\"",
|
|
76
|
+
"bindable": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "strategy",
|
|
80
|
+
"attribute": "strategy",
|
|
81
|
+
"type": "Strategy",
|
|
82
|
+
"default": "\"fixed\"",
|
|
83
|
+
"bindable": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "arrow",
|
|
87
|
+
"attribute": "arrow",
|
|
88
|
+
"type": "boolean | undefined",
|
|
89
|
+
"bindable": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "alternate",
|
|
93
|
+
"attribute": "alternate",
|
|
94
|
+
"type": "boolean | undefined",
|
|
95
|
+
"bindable": false
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"events": []
|
|
99
|
+
}
|
|
100
|
+
*/
|
|
101
|
+
import PropTypes from 'prop-types'
|
|
102
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
103
|
+
import '@vonage/vwc-popup'
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/** Popup are used to display a message or notification to the user and are displayed on top of all other web page elements.
|
|
107
|
+
Popup's goal is to provide additional, helpful content.
|
|
108
|
+
To trigger the Popup, it should be paired with an anchor (e.g., a button).
|
|
109
|
+
* @param {CSSResult} styles
|
|
110
|
+
* @param {boolean} open attribute: <VwcPopup open />
|
|
111
|
+
* @param {string} anchor attribute: <VwcPopup anchor />
|
|
112
|
+
* @param {boolean | undefined} dismissible attribute: <VwcPopup dismissible />
|
|
113
|
+
* @param {Placement} corner attribute: <VwcPopup corner />
|
|
114
|
+
* @param {Strategy} strategy attribute: <VwcPopup strategy />
|
|
115
|
+
* @param {boolean | undefined} arrow attribute: <VwcPopup arrow />
|
|
116
|
+
* @param {boolean | undefined} alternate attribute: <VwcPopup alternate />
|
|
117
|
+
*/
|
|
118
|
+
const VwcPopup = wrapper('vwc-popup', {
|
|
119
|
+
events: [],
|
|
120
|
+
attributes: [],
|
|
121
|
+
properties: []
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
VwcPopup.propTypes = {
|
|
125
|
+
styles: PropTypes.any /* CSSResult *//* default: "style" */,
|
|
126
|
+
open: PropTypes.bool/* default: false *//* attribute: open */,
|
|
127
|
+
anchor: PropTypes.string/* default: "" *//* attribute: anchor */,
|
|
128
|
+
dismissible: PropTypes.any /* boolean | undefined *//* attribute: dismissible */,
|
|
129
|
+
corner: PropTypes.any /* Placement *//* default: "left" *//* attribute: corner */,
|
|
130
|
+
strategy: PropTypes.any /* Strategy *//* default: "fixed" *//* attribute: strategy */,
|
|
131
|
+
arrow: PropTypes.any /* boolean | undefined *//* attribute: arrow */,
|
|
132
|
+
alternate: PropTypes.any /* boolean | undefined *//* attribute: alternate */
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
VwcPopup.defaultProps = {
|
|
136
|
+
styles: "style",
|
|
137
|
+
open: false,
|
|
138
|
+
anchor: "",
|
|
139
|
+
corner: "left",
|
|
140
|
+
strategy: "fixed"
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
VwcPopup.displayName = 'VwcPopup'
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
export default VwcPopup
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import '@vonage/vwc-radio';
|
|
3
|
+
/** This component is an extension of [<mwc-radio>](https://github.com/material-components/material-components-web-components/tree/master/packages/radio)
|
|
4
|
+
* @param {boolean} global
|
|
5
|
+
* @param {boolean} checked - We define our own getter/setter for `checked` because we need to track
|
|
6
|
+
changes to it synchronously.
|
|
7
|
+
|
|
8
|
+
The order in which the `checked` property is set across radio buttons
|
|
9
|
+
within the same group is very important. However, we can't rely on
|
|
10
|
+
UpdatingElement's `updated` callback to observe these changes (which is
|
|
11
|
+
also what the `@observer` decorator uses), because it batches changes to
|
|
12
|
+
all properties.
|
|
13
|
+
|
|
14
|
+
Consider:
|
|
15
|
+
|
|
16
|
+
radio1.disabled = true;
|
|
17
|
+
radio2.checked = true;
|
|
18
|
+
radio1.checked = true;
|
|
19
|
+
|
|
20
|
+
In this case we'd first see all changes for radio1, and then for radio2,
|
|
21
|
+
and we couldn't tell that radio1 was the most recently checked.
|
|
22
|
+
* @param {boolean} disabled
|
|
23
|
+
* @param {string} value
|
|
24
|
+
* @param {string} name
|
|
25
|
+
* @param {boolean} reducedTouchTarget - Touch target extends beyond visual boundary of a component by default.
|
|
26
|
+
Set to `true` to remove touch target added to the component.
|
|
27
|
+
* @param {number} formElementTabIndex - input's tabindex is updated based on checked status.
|
|
28
|
+
Tab navigation will be removed from unchecked radios.
|
|
29
|
+
* @param {string | undefined} ariaLabel
|
|
30
|
+
* @param {string | undefined} ariaLabelledBy
|
|
31
|
+
* @param {ShadowRootInit} shadowRootOptions
|
|
32
|
+
*/
|
|
33
|
+
declare const VwcRadio: (props: {
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
slot?: string | undefined;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
style?: React.CSSProperties | undefined;
|
|
38
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
39
|
+
onChecked?: ((event: SyntheticEvent) => void) | undefined;
|
|
40
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
41
|
+
global?: boolean | undefined;
|
|
42
|
+
checked?: boolean | undefined;
|
|
43
|
+
disabled?: boolean | undefined;
|
|
44
|
+
value?: string | undefined;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
reducedTouchTarget?: boolean | undefined;
|
|
47
|
+
formElementTabIndex?: number | undefined;
|
|
48
|
+
ariaLabel?: string | undefined;
|
|
49
|
+
ariaLabelledBy?: string | undefined;
|
|
50
|
+
shadowRootOptions?: any;
|
|
51
|
+
}) => JSX.Element;
|
|
52
|
+
export default VwcRadio;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
Code in this file were generated using following JSON:
|
|
6
|
+
{
|
|
7
|
+
"name": "vwc-radio",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-radio/src/vwc-radio.ts",
|
|
9
|
+
"description": "This component is an extension of [<mwc-radio>](https://github.com/material-components/material-components-web-components/tree/master/packages/radio)",
|
|
10
|
+
"properties": [
|
|
11
|
+
{
|
|
12
|
+
"name": "styles",
|
|
13
|
+
"type": "CSSResult[]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "global",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"bindable": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "checked",
|
|
22
|
+
"description": "We define our own getter/setter for `checked` because we need to track\nchanges to it synchronously.\n\nThe order in which the `checked` property is set across radio buttons\nwithin the same group is very important. However, we can't rely on\nUpdatingElement's `updated` callback to observe these changes (which is\nalso what the `@observer` decorator uses), because it batches changes to\nall properties.\n\nConsider:\n\n radio1.disabled = true;\n radio2.checked = true;\n radio1.checked = true;\n\nIn this case we'd first see all changes for radio1, and then for radio2,\nand we couldn't tell that radio1 was the most recently checked.",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"bindable": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "disabled",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"bindable": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "value",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"bindable": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "name",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"bindable": false
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "reducedTouchTarget",
|
|
43
|
+
"description": "Touch target extends beyond visual boundary of a component by default.\nSet to `true` to remove touch target added to the component.",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"bindable": false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "formElementTabIndex",
|
|
49
|
+
"description": "input's tabindex is updated based on checked status.\nTab navigation will be removed from unchecked radios.",
|
|
50
|
+
"type": "number",
|
|
51
|
+
"bindable": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "ariaLabel",
|
|
55
|
+
"type": "string | undefined",
|
|
56
|
+
"bindable": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "ariaLabelledBy",
|
|
60
|
+
"type": "string | undefined",
|
|
61
|
+
"bindable": false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "isRippleActive"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "shadowRootOptions",
|
|
68
|
+
"type": "ShadowRootInit",
|
|
69
|
+
"bindable": false
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "ripple",
|
|
73
|
+
"description": "Implement ripple getter for Ripple integration with mwc-formfield",
|
|
74
|
+
"type": "Promise<Ripple | null>"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"events": [
|
|
78
|
+
{
|
|
79
|
+
"name": "checked"
|
|
80
|
+
},
|
|
81
|
+
"change"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
*/
|
|
85
|
+
import PropTypes from 'prop-types'
|
|
86
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
87
|
+
import '@vonage/vwc-radio'
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/** This component is an extension of [<mwc-radio>](https://github.com/material-components/material-components-web-components/tree/master/packages/radio)
|
|
91
|
+
* @param {boolean} global
|
|
92
|
+
* @param {boolean} checked - We define our own getter/setter for `checked` because we need to track
|
|
93
|
+
changes to it synchronously.
|
|
94
|
+
|
|
95
|
+
The order in which the `checked` property is set across radio buttons
|
|
96
|
+
within the same group is very important. However, we can't rely on
|
|
97
|
+
UpdatingElement's `updated` callback to observe these changes (which is
|
|
98
|
+
also what the `@observer` decorator uses), because it batches changes to
|
|
99
|
+
all properties.
|
|
100
|
+
|
|
101
|
+
Consider:
|
|
102
|
+
|
|
103
|
+
radio1.disabled = true;
|
|
104
|
+
radio2.checked = true;
|
|
105
|
+
radio1.checked = true;
|
|
106
|
+
|
|
107
|
+
In this case we'd first see all changes for radio1, and then for radio2,
|
|
108
|
+
and we couldn't tell that radio1 was the most recently checked.
|
|
109
|
+
* @param {boolean} disabled
|
|
110
|
+
* @param {string} value
|
|
111
|
+
* @param {string} name
|
|
112
|
+
* @param {boolean} reducedTouchTarget - Touch target extends beyond visual boundary of a component by default.
|
|
113
|
+
Set to `true` to remove touch target added to the component.
|
|
114
|
+
* @param {number} formElementTabIndex - input's tabindex is updated based on checked status.
|
|
115
|
+
Tab navigation will be removed from unchecked radios.
|
|
116
|
+
* @param {string | undefined} ariaLabel
|
|
117
|
+
* @param {string | undefined} ariaLabelledBy
|
|
118
|
+
* @param {ShadowRootInit} shadowRootOptions
|
|
119
|
+
*/
|
|
120
|
+
const VwcRadio = wrapper('vwc-radio', {
|
|
121
|
+
events: [{"name":"change","propName":"onChange"},{"name":"checked"}],
|
|
122
|
+
attributes: [],
|
|
123
|
+
properties: []
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
VwcRadio.propTypes = {
|
|
127
|
+
onChecked: PropTypes.func,
|
|
128
|
+
onChange: PropTypes.func,
|
|
129
|
+
global: PropTypes.bool,
|
|
130
|
+
checked: PropTypes.bool,
|
|
131
|
+
disabled: PropTypes.bool,
|
|
132
|
+
value: PropTypes.string,
|
|
133
|
+
name: PropTypes.string,
|
|
134
|
+
reducedTouchTarget: PropTypes.bool,
|
|
135
|
+
formElementTabIndex: PropTypes.number,
|
|
136
|
+
ariaLabel: PropTypes.string,
|
|
137
|
+
ariaLabelledBy: PropTypes.string,
|
|
138
|
+
shadowRootOptions: PropTypes.any /* ShadowRootInit */
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
VwcRadio.defaultProps = {
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
VwcRadio.displayName = 'VwcRadio'
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
export default VwcRadio
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import '@vonage/vwc-list';
|
|
3
|
+
import '@vonage/vwc-list/vwc-radio-list-item';
|
|
4
|
+
/** This component is an extension of [<mwc-radio-list-item>](https://github.com/material-components/material-components-web-components/tree/master/packages/list)
|
|
5
|
+
* @param {boolean} left
|
|
6
|
+
* @param {string} value
|
|
7
|
+
* @param {string | null} group
|
|
8
|
+
* @param {number} tabindex
|
|
9
|
+
* @param {boolean} disabled
|
|
10
|
+
* @param {boolean} twoline
|
|
11
|
+
* @param {boolean} activated
|
|
12
|
+
* @param {GraphicType} graphic
|
|
13
|
+
* @param {boolean} multipleGraphics
|
|
14
|
+
* @param {boolean} hasMeta
|
|
15
|
+
* @param {boolean} noninteractive
|
|
16
|
+
* @param {boolean} selected
|
|
17
|
+
* @param {string} text
|
|
18
|
+
*/
|
|
19
|
+
declare const VwcRadioListItem: (props: {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
slot?: string | undefined;
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
style?: React.CSSProperties | undefined;
|
|
24
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
25
|
+
onRequestSelected?: ((event: SyntheticEvent) => void) | undefined;
|
|
26
|
+
onListItemRendered?: ((event: SyntheticEvent) => void) | undefined;
|
|
27
|
+
left?: boolean | undefined;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
group?: string | null | undefined;
|
|
30
|
+
tabindex?: number | undefined;
|
|
31
|
+
disabled?: boolean | undefined;
|
|
32
|
+
twoline?: boolean | undefined;
|
|
33
|
+
activated?: boolean | undefined;
|
|
34
|
+
graphic?: any;
|
|
35
|
+
multipleGraphics?: boolean | undefined;
|
|
36
|
+
hasMeta?: boolean | undefined;
|
|
37
|
+
noninteractive?: boolean | undefined;
|
|
38
|
+
selected?: boolean | undefined;
|
|
39
|
+
text?: string | undefined;
|
|
40
|
+
}) => JSX.Element;
|
|
41
|
+
export default VwcRadioListItem;
|