@vonage/vivid-react 2.10.56 → 2.10.58
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/.vscode/settings.json +4 -0
- package/README.md +17 -7
- package/package.json +9 -10
- package/scripts/cli.js +13 -14
- package/scripts/generateWrappers/consts.js +9 -15
- package/scripts/generateWrappers/generator.js +138 -4
- package/scripts/generateWrappers/prop.types.js +20 -19
- package/scripts/generateWrappers/templates/js/react-component-v3.tmpl +19 -0
- package/scripts/generateWrappers/templates/js/stories.tmpl +2 -2
- package/scripts/generateWrappers/templates/templates.js +3 -0
- package/scripts/generateWrappers/templates/ts/element-type.tmpl +3 -0
- package/scripts/generateWrappers/templates/ts/react-component-v3.tmpl +32 -0
- package/scripts/generateWrappers/templates/ts/types.tmpl +8 -0
- package/scripts/generateWrappers/utils.js +19 -48
- package/src/initialization/initVivid.js +34 -2
- package/stories/{VwcAccordion → v2/VwcAccordion}/VwcAccordion.stories.jsx +2 -2
- package/stories/{VwcActionGroup → v2/VwcActionGroup}/VwcActionGroup.stories.jsx +2 -2
- package/stories/{VwcBadge → v2/VwcBadge}/VwcBadge.stories.jsx +2 -2
- package/stories/{VwcBanner → v2/VwcBanner}/VwcBanner.stories.jsx +2 -2
- package/stories/{VwcButton → v2/VwcButton}/VwcButton.stories.jsx +2 -2
- package/stories/{VwcButtonToggleGroup → v2/VwcButtonToggleGroup}/VwcButtonToggleGroup.stories.jsx +3 -3
- package/stories/{VwcCalendar → v2/VwcCalendar}/VwcCalendar.stories.jsx +2 -2
- package/stories/{VwcCalendarEvent → v2/VwcCalendarEvent}/VwcCalendarEvent.stories.jsx +2 -2
- package/stories/{VwcCard → v2/VwcCard}/VwcCard.stories.jsx +4 -4
- package/stories/{VwcCarousel → v2/VwcCarousel}/VwcCarousel.stories.jsx +2 -2
- package/stories/{VwcCarouselItem → v2/VwcCarouselItem}/VwcCarouselItem.stories.jsx +2 -2
- package/stories/{VwcCheckListItem → v2/VwcCheckListItem}/VwcCheckListItem.stories.jsx +2 -2
- package/stories/{VwcCheckbox → v2/VwcCheckbox}/VwcCheckbox.stories.jsx +2 -2
- package/stories/{VwcChip → v2/VwcChip}/VwcChip.stories.jsx +2 -2
- package/stories/{VwcChipSet → v2/VwcChipSet}/VwcChipSet.stories.jsx +3 -3
- package/stories/{VwcCircularProgress → v2/VwcCircularProgress}/VwcCircularProgress.stories.jsx +2 -2
- package/stories/{VwcDataGrid → v2/VwcDataGrid}/VwcDataGrid.stories.jsx +6 -6
- package/stories/{VwcDataGridColumn → v2/VwcDataGridColumn}/VwcDataGridColumn.stories.jsx +2 -2
- package/stories/{VwcDatepicker → v2/VwcDatepicker}/VwcDatepicker.stories.jsx +2 -2
- package/stories/{VwcDialog → v2/VwcDialog}/VwcDialog.stories.jsx +2 -2
- package/stories/{VwcDrawer → v2/VwcDrawer}/VwcDrawer.stories.jsx +2 -2
- package/stories/{VwcDropdown → v2/VwcDropdown}/VwcDropdown.stories.jsx +2 -2
- package/stories/{VwcElevation → v2/VwcElevation}/VwcElevation.stories.jsx +2 -2
- package/stories/{VwcEmptyState → v2/VwcEmptyState}/VwcEmptyState.stories.jsx +2 -2
- package/stories/{VwcExpansionPanel → v2/VwcExpansionPanel}/VwcExpansionPanel.stories.jsx +2 -2
- package/stories/{VwcFab → v2/VwcFab}/VwcFab.stories.jsx +2 -2
- package/stories/{VwcFilePicker → v2/VwcFilePicker}/VwcFilePicker.stories.jsx +2 -2
- package/stories/{VwcFormfield → v2/VwcFormfield}/VwcFormfield.stories.jsx +2 -2
- package/stories/{VwcHelperMessage → v2/VwcHelperMessage}/VwcHelperMessage.stories.jsx +2 -2
- package/stories/{VwcIcon → v2/VwcIcon}/VwcIcon.stories.jsx +2 -2
- package/stories/{VwcIconButton → v2/VwcIconButton}/VwcIconButton.stories.jsx +2 -2
- package/stories/{VwcIconButtonToggle → v2/VwcIconButtonToggle}/VwcIconButtonToggle.stories.jsx +2 -2
- package/stories/{VwcKeypad → v2/VwcKeypad}/VwcKeypad.stories.jsx +2 -2
- package/stories/{VwcLayout → v2/VwcLayout}/VwcLayout.stories.jsx +3 -3
- package/stories/{VwcLinearProgress → v2/VwcLinearProgress}/VwcLinearProgress.stories.jsx +2 -2
- package/stories/{VwcList → v2/VwcList}/VwcList.stories.jsx +3 -3
- package/stories/{VwcListExpansionPanel → v2/VwcListExpansionPanel}/VwcListExpansionPanel.stories.jsx +2 -2
- package/stories/{VwcListItem → v2/VwcListItem}/VwcListItem.stories.jsx +2 -2
- package/stories/{VwcMenu → v2/VwcMenu}/VwcMenu.stories.jsx +4 -4
- package/stories/{VwcNotchedOutline → v2/VwcNotchedOutline}/VwcNotchedOutline.stories.jsx +2 -2
- package/stories/{VwcNote → v2/VwcNote}/VwcNote.stories.jsx +2 -2
- package/stories/{VwcPagination → v2/VwcPagination}/VwcPagination.stories.jsx +2 -2
- package/stories/{VwcPopup → v2/VwcPopup}/VwcPopup.stories.jsx +2 -2
- package/stories/{VwcRadio → v2/VwcRadio}/VwcRadio.stories.jsx +2 -2
- package/stories/{VwcRadioListItem → v2/VwcRadioListItem}/VwcRadioListItem.stories.jsx +2 -2
- package/stories/{VwcSchemeSelect → v2/VwcSchemeSelect}/VwcSchemeSelect.stories.jsx +2 -2
- package/stories/{VwcSelect → v2/VwcSelect}/VwcSelect.stories.jsx +2 -2
- package/stories/{VwcSideDrawer → v2/VwcSideDrawer}/VwcSideDrawer.stories.jsx +2 -2
- package/stories/{VwcSlider → v2/VwcSlider}/VwcSlider.stories.jsx +2 -2
- package/stories/{VwcSnackbar → v2/VwcSnackbar}/VwcSnackbar.stories.jsx +2 -2
- package/stories/{VwcSurface → v2/VwcSurface}/VwcSurface.stories.jsx +2 -2
- package/stories/{VwcSwitch → v2/VwcSwitch}/VwcSwitch.stories.jsx +2 -2
- package/stories/{VwcTab → v2/VwcTab}/VwcTab.stories.jsx +2 -2
- package/stories/{VwcTabBar → v2/VwcTabBar}/VwcTabBar.stories.jsx +3 -3
- package/stories/{VwcTag → v2/VwcTag}/VwcTag.stories.jsx +2 -2
- package/stories/{VwcText → v2/VwcText}/VwcText.stories.jsx +2 -2
- package/stories/{VwcTextarea → v2/VwcTextarea}/VwcTextarea.stories.jsx +2 -2
- package/stories/{VwcTextfield → v2/VwcTextfield}/VwcTextfield.stories.jsx +2 -2
- package/stories/{VwcThemeSwitch → v2/VwcThemeSwitch}/VwcThemeSwitch.stories.jsx +2 -2
- package/stories/{VwcTooltip → v2/VwcTooltip}/VwcTooltip.stories.jsx +4 -4
- package/stories/{VwcTopAppBar → v2/VwcTopAppBar}/VwcTopAppBar.stories.jsx +2 -2
- package/stories/{VwcTopAppBarFixed → v2/VwcTopAppBarFixed}/VwcTopAppBarFixed.stories.jsx +2 -2
- package/stories/{patches → v2/patches}/patches.stories.jsx +15 -15
- package/stories/v3/v3.stories.jsx +28 -0
- package/scripts/generateWrappers/index.js +0 -0
- package/types/index.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcKeypad from '
|
|
2
|
+
import VwcKeypad from '../../../dist/VwcKeypad'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcKeypad />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcKeypad',
|
|
6
|
+
title: 'V2/VwcKeypad',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcLayout from '
|
|
3
|
-
import VwcCard from '
|
|
2
|
+
import VwcLayout from '../../../dist/VwcLayout'
|
|
3
|
+
import VwcCard from '../../../dist/VwcCard'
|
|
4
4
|
|
|
5
5
|
const testData = [
|
|
6
6
|
'understand cognitive dangerous child consistent efficient temperature limit silver viewer ',
|
|
@@ -48,7 +48,7 @@ export const Default = () => {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export default {
|
|
51
|
-
title: 'VwcLayout',
|
|
51
|
+
title: 'V2/VwcLayout',
|
|
52
52
|
argTypes: {
|
|
53
53
|
//
|
|
54
54
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcLinearProgress from '
|
|
2
|
+
import VwcLinearProgress from '../../../dist/VwcLinearProgress'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcLinearProgress />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcLinearProgress',
|
|
6
|
+
title: 'V2/VwcLinearProgress',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcCheckListItem from '
|
|
3
|
-
import VwcList from '
|
|
2
|
+
import VwcCheckListItem from '../../../dist/VwcCheckListItem'
|
|
3
|
+
import VwcList from '../../../dist/VwcList'
|
|
4
4
|
|
|
5
5
|
export const Default = () => (
|
|
6
6
|
<VwcList>
|
|
@@ -10,7 +10,7 @@ export const Default = () => (
|
|
|
10
10
|
</VwcList>
|
|
11
11
|
)
|
|
12
12
|
export default {
|
|
13
|
-
title: 'VwcList',
|
|
13
|
+
title: 'V2/VwcList',
|
|
14
14
|
argTypes: {
|
|
15
15
|
//
|
|
16
16
|
// Example values
|
package/stories/{VwcListExpansionPanel → v2/VwcListExpansionPanel}/VwcListExpansionPanel.stories.jsx
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcListExpansionPanel from '
|
|
2
|
+
import VwcListExpansionPanel from '../../../dist/VwcListExpansionPanel'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcListExpansionPanel />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcListExpansionPanel',
|
|
6
|
+
title: 'V2/VwcListExpansionPanel',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcListItem from '
|
|
2
|
+
import VwcListItem from '../../../dist/VwcListItem'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcListItem />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcListItem',
|
|
6
|
+
title: 'V2/VwcListItem',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcMenu from '
|
|
3
|
-
import VwcButton from '
|
|
4
|
-
import VwcListItem from '
|
|
2
|
+
import VwcMenu from '../../../dist/VwcMenu'
|
|
3
|
+
import VwcButton from '../../../dist/VwcButton'
|
|
4
|
+
import VwcListItem from '../../../dist/VwcListItem'
|
|
5
5
|
|
|
6
6
|
function anchorClickHandler () {
|
|
7
7
|
const anchor = document.querySelector('#button')
|
|
@@ -36,6 +36,6 @@ export const Default = () => (
|
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
export default {
|
|
39
|
-
title: 'VwcMenu',
|
|
39
|
+
title: 'V2/VwcMenu',
|
|
40
40
|
argTypes: {}
|
|
41
41
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcNotchedOutline from '
|
|
2
|
+
import VwcNotchedOutline from '../../../dist/VwcNotchedOutline'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcNotchedOutline />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcNotchedOutline',
|
|
6
|
+
title: 'V2/VwcNotchedOutline',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcNote from '
|
|
2
|
+
import VwcNote from '../../../dist/VwcNote'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcNote />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcNote',
|
|
6
|
+
title: 'V2/VwcNote',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcPagination from '
|
|
2
|
+
import VwcPagination from '../../../dist/VwcPagination'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcPagination />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcPagination',
|
|
6
|
+
title: 'V2/VwcPagination',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcPopup from '
|
|
2
|
+
import VwcPopup from '../../../dist/VwcPopup'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcPopup />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcPopup',
|
|
6
|
+
title: 'V2/VwcPopup',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcRadio from '
|
|
2
|
+
import VwcRadio from '../../../dist/VwcRadio'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcRadio />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcRadio',
|
|
6
|
+
title: 'V2/VwcRadio',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcRadioListItem from '
|
|
2
|
+
import VwcRadioListItem from '../../../dist/VwcRadioListItem'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcRadioListItem />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcRadioListItem',
|
|
6
|
+
title: 'V2/VwcRadioListItem',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSchemeSelect from '
|
|
2
|
+
import VwcSchemeSelect from '../../../dist/VwcSchemeSelect'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSchemeSelect />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSchemeSelect',
|
|
6
|
+
title: 'V2/VwcSchemeSelect',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSelect from '
|
|
2
|
+
import VwcSelect from '../../../dist/VwcSelect'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSelect />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSelect',
|
|
6
|
+
title: 'V2/VwcSelect',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSideDrawer from '
|
|
2
|
+
import VwcSideDrawer from '../../../dist/VwcSideDrawer'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSideDrawer />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSideDrawer',
|
|
6
|
+
title: 'V2/VwcSideDrawer',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSlider from '
|
|
2
|
+
import VwcSlider from '../../../dist/VwcSlider'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSlider />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSlider',
|
|
6
|
+
title: 'V2/VwcSlider',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSnackbar from '
|
|
2
|
+
import VwcSnackbar from '../../../dist/VwcSnackbar'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSnackbar />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSnackbar',
|
|
6
|
+
title: 'V2/VwcSnackbar',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSurface from '
|
|
2
|
+
import VwcSurface from '../../../dist/VwcSurface'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSurface />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSurface',
|
|
6
|
+
title: 'V2/VwcSurface',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcSwitch from '
|
|
2
|
+
import VwcSwitch from '../../../dist/VwcSwitch'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcSwitch />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcSwitch',
|
|
6
|
+
title: 'V2/VwcSwitch',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import VwcTabBar from '
|
|
3
|
-
import VwcTab from '
|
|
2
|
+
import VwcTabBar from '../../../dist/VwcTabBar'
|
|
3
|
+
import VwcTab from '../../../dist/VwcTab'
|
|
4
4
|
|
|
5
5
|
export const Default = () => <VwcTabBar/>
|
|
6
6
|
|
|
@@ -48,7 +48,7 @@ export const LimitWidth = () => {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export default {
|
|
51
|
-
title: 'VwcTabBar',
|
|
51
|
+
title: 'V2/VwcTabBar',
|
|
52
52
|
argTypes: {
|
|
53
53
|
//
|
|
54
54
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcText from '
|
|
2
|
+
import VwcText from '../../../dist/VwcText'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcText />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcText',
|
|
6
|
+
title: 'V2/VwcText',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcTextarea from '
|
|
2
|
+
import VwcTextarea from '../../../dist/VwcTextarea'
|
|
3
3
|
|
|
4
4
|
export const Default = () => (
|
|
5
5
|
<VwcTextarea
|
|
@@ -9,7 +9,7 @@ export const Default = () => (
|
|
|
9
9
|
/>
|
|
10
10
|
)
|
|
11
11
|
export default {
|
|
12
|
-
title: 'VwcTextarea',
|
|
12
|
+
title: 'V2/VwcTextarea',
|
|
13
13
|
argTypes: {
|
|
14
14
|
//
|
|
15
15
|
// Example values
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import VwcTextfield from '
|
|
2
|
+
import VwcTextfield from '../../../dist/VwcTextfield/index'
|
|
3
3
|
import { action } from '@storybook/addon-actions'
|
|
4
4
|
|
|
5
5
|
export const Default = () => (
|
|
@@ -32,7 +32,7 @@ export const Validation = () => {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export default {
|
|
35
|
-
title: 'VwcTextfield',
|
|
35
|
+
title: 'V2/VwcTextfield',
|
|
36
36
|
argTypes: {
|
|
37
37
|
//
|
|
38
38
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcThemeSwitch from '
|
|
2
|
+
import VwcThemeSwitch from '../../../dist/VwcThemeSwitch'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcThemeSwitch />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcThemeSwitch',
|
|
6
|
+
title: 'V2/VwcThemeSwitch',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcTooltip from '
|
|
3
|
-
import VwcButton from '
|
|
4
|
-
import { vwcTooltipShowOnHoverDecorator } from '
|
|
2
|
+
import VwcTooltip from '../../../dist/VwcTooltip'
|
|
3
|
+
import VwcButton from '../../../dist/VwcButton'
|
|
4
|
+
import { vwcTooltipShowOnHoverDecorator } from '../../../src/patches/vwcTooltip'
|
|
5
5
|
|
|
6
6
|
export const Default = () => {
|
|
7
7
|
return (
|
|
@@ -37,5 +37,5 @@ export const ShowHideOnADisabledControl = () => {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export default {
|
|
40
|
-
title: 'VwcTooltip'
|
|
40
|
+
title: 'V2/VwcTooltip'
|
|
41
41
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcTopAppBar from '
|
|
2
|
+
import VwcTopAppBar from '../../../dist/VwcTopAppBar'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcTopAppBar />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcTopAppBar',
|
|
6
|
+
title: 'V2/VwcTopAppBar',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcTopAppBarFixed from '
|
|
2
|
+
import VwcTopAppBarFixed from '../../../dist/VwcTopAppBarFixed'
|
|
3
3
|
|
|
4
4
|
export const Default = () => <VwcTopAppBarFixed />
|
|
5
5
|
export default {
|
|
6
|
-
title: 'VwcTopAppBarFixed',
|
|
6
|
+
title: 'V2/VwcTopAppBarFixed',
|
|
7
7
|
argTypes: {
|
|
8
8
|
//
|
|
9
9
|
// Example values
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import VwcDataGrid from '
|
|
3
|
-
import VwcSlider from '
|
|
4
|
-
import VwcDataGridColumn from '
|
|
5
|
-
import VwcTooltip from '
|
|
6
|
-
import VwcButton from '
|
|
7
|
-
import VwcNote from '
|
|
8
|
-
import VwcSelect from '
|
|
9
|
-
import VwcListItem from '
|
|
10
|
-
import VwcSnackbar from '
|
|
11
|
-
import VwcIconButton from '
|
|
2
|
+
import VwcDataGrid from '../../../dist/VwcDataGrid'
|
|
3
|
+
import VwcSlider from '../../../dist/VwcSlider'
|
|
4
|
+
import VwcDataGridColumn from '../../../dist/VwcDataGridColumn'
|
|
5
|
+
import VwcTooltip from '../../../dist/VwcTooltip'
|
|
6
|
+
import VwcButton from '../../../dist/VwcButton'
|
|
7
|
+
import VwcNote from '../../../dist/VwcNote'
|
|
8
|
+
import VwcSelect from '../../../dist/VwcSelect'
|
|
9
|
+
import VwcListItem from '../../../dist/VwcListItem'
|
|
10
|
+
import VwcSnackbar from '../../../dist/VwcSnackbar'
|
|
11
|
+
import VwcIconButton from '../../../dist/VwcIconButton'
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
cellRendererFactory,
|
|
15
15
|
vwcDataGridElementCellOverflowDecorator,
|
|
16
16
|
vwcTooltipShowOnHoverDecorator
|
|
17
|
-
} from '
|
|
18
|
-
import { vwcNoteContentOverflowDecorator } from '
|
|
19
|
-
import { vwcSnackBarHtmlMessageDecorator } from '
|
|
20
|
-
import { vwcSetAttributeValue } from '
|
|
17
|
+
} from '../../../src'
|
|
18
|
+
import { vwcNoteContentOverflowDecorator } from '../../../src/patches/vwcNoteContentOverflow'
|
|
19
|
+
import { vwcSnackBarHtmlMessageDecorator } from '../../../src/patches/vwcSnackBarHtmlMessage'
|
|
20
|
+
import { vwcSetAttributeValue } from '../../../src/patches/vwcSetAttributeValue'
|
|
21
21
|
|
|
22
22
|
export const VwcTooltipShowOnHover = () => (
|
|
23
23
|
<>
|
|
@@ -90,5 +90,5 @@ export const VwcIconButtonValue = () => (
|
|
|
90
90
|
)
|
|
91
91
|
|
|
92
92
|
export default {
|
|
93
|
-
title: 'Patches'
|
|
93
|
+
title: 'V2/Patches'
|
|
94
94
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import VwcBadge from '../../dist/v3/VwcBadge'
|
|
3
|
+
import VwcButton from '../../dist/v3/VwcButton'
|
|
4
|
+
import { initVivid } from '../../src/initialization/initVivid'
|
|
5
|
+
|
|
6
|
+
export const VwcBadge_ = () =>
|
|
7
|
+
<>
|
|
8
|
+
<VwcBadge connotation={'alert'} text={'Badge'} />
|
|
9
|
+
<VwcButton connotation={'info'} label='Button' onClick={(e) => console.log(e)} ></VwcButton>
|
|
10
|
+
</>
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: 'V3',
|
|
14
|
+
decorators: [
|
|
15
|
+
(story) => {
|
|
16
|
+
const InitVivid = ({ children }) => <div ref={x => {
|
|
17
|
+
if (!x) {
|
|
18
|
+
return
|
|
19
|
+
}
|
|
20
|
+
initVivid(x, () => { }, {
|
|
21
|
+
font: 'proprietary',
|
|
22
|
+
theme: 'light'
|
|
23
|
+
})
|
|
24
|
+
}} >{children}</div>
|
|
25
|
+
return <InitVivid>{story()}</InitVivid>
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
File without changes
|
package/types/index.d.ts
DELETED