Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add a new package as other 1 does not work

Jonathan Summers-Muir6103bcacf650
diff --git a/package-lock.json b/package-lock.json
index 11297dc521f..607ccdce902 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16557,6 +16557,10 @@
"node": ">=4.0.0"
}
},
+ "node_modules/common2": {
+ "resolved": "packages/common2",
+ "link": true
+ },
"node_modules/commondir": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
@@ -45498,6 +45502,46 @@
"@types/react": "^17"
}
},
+ "packages/common2": {
+ "version": "0.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "@headlessui/react": "^1.0.0",
+ "@radix-ui/colors": "^0.1.8",
+ "@radix-ui/react-accordion": "^0.1.5",
+ "@radix-ui/react-collapsible": "^0.1.5",
+ "@radix-ui/react-context-menu": "^0.1.0",
+ "@radix-ui/react-dialog": "^0.1.5",
+ "@radix-ui/react-dropdown-menu": "^0.1.4",
+ "@radix-ui/react-popover": "^0.1.0",
+ "@radix-ui/react-portal": "^0.1.3",
+ "@radix-ui/react-tabs": "^0.1.0",
+ "@tailwindcss/forms": "^0.4.0",
+ "@tailwindcss/typography": "^0.5.0",
+ "autoprefixer": "^10.4.2",
+ "deepmerge": "^4.2.2",
+ "formik": "^2.2.9",
+ "lodash": "^4.17.20",
+ "prop-types": "^15.7.2",
+ "tailwindcss-radix": "^1.6.0"
+ },
+ "devDependencies": {
+ "@types/react": "^17.0.37",
+ "@types/react-dom": "^17.0.11",
+ "config": "*",
+ "tsconfig": "*",
+ "typescript": "^4.5.3"
+ }
+ },
+ "packages/common2/node_modules/@types/react-dom": {
+ "version": "17.0.17",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.17.tgz",
+ "integrity": "sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==",
+ "dev": true,
+ "dependencies": {
+ "@types/react": "^17"
+ }
+ },
"packages/config": {
"version": "0.0.0",
"license": "MIT",
@@ -45806,6 +45850,8 @@
"analytics-node": "^3.5.0",
"awesome-debounce-promise": "^2.1.0",
"clipboard": "^2.0.8",
+ "common": "*",
+ "common2": "*",
"configcat-js": "^5.6.0",
"crypto-js": "^4.1.1",
"dayjs": "^1.11.0",
@@ -45844,7 +45890,7 @@
"react-virtualized-auto-sizer": "^1.0.6",
"react-window": "^1.8.6",
"react-window-infinite-loader": "^1.0.7",
- "recharts": "2.1.6",
+ "recharts": "^2.1.6",
"sass": "^1.43.4",
"scheduler": "^0.20.2",
"semver": "^6.3.0",
@@ -58212,6 +58258,45 @@
"integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==",
"dev": true
},
+ "common2": {
+ "version": "file:packages/common2",
+ "requires": {
+ "@headlessui/react": "^1.0.0",
+ "@radix-ui/colors": "^0.1.8",
+ "@radix-ui/react-accordion": "^0.1.5",
+ "@radix-ui/react-collapsible": "^0.1.5",
+ "@radix-ui/react-context-menu": "^0.1.0",
+ "@radix-ui/react-dialog": "^0.1.5",
+ "@radix-ui/react-dropdown-menu": "^0.1.4",
+ "@radix-ui/react-popover": "^0.1.0",
+ "@radix-ui/react-portal": "^0.1.3",
+ "@radix-ui/react-tabs": "^0.1.0",
+ "@tailwindcss/forms": "^0.4.0",
+ "@tailwindcss/typography": "^0.5.0",
+ "@types/react": "^17.0.37",
+ "@types/react-dom": "^17.0.11",
+ "autoprefixer": "^10.4.2",
+ "config": "*",
+ "deepmerge": "^4.2.2",
+ "formik": "^2.2.9",
+ "lodash": "^4.17.20",
+ "prop-types": "^15.7.2",
+ "tailwindcss-radix": "^1.6.0",
+ "tsconfig": "*",
+ "typescript": "^4.5.3"
+ },
+ "dependencies": {
+ "@types/react-dom": {
+ "version": "17.0.17",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.17.tgz",
+ "integrity": "sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==",
+ "dev": true,
+ "requires": {
+ "@types/react": "^17"
+ }
+ }
+ }
+ },
"commondir": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
@@ -78013,6 +78098,8 @@
"awesome-debounce-promise": "^2.1.0",
"babel-loader": "^8.2.3",
"clipboard": "^2.0.8",
+ "common": "*",
+ "common2": "*",
"configcat-js": "^5.6.0",
"crypto-js": "^4.1.1",
"dayjs": "^1.11.0",
@@ -78055,7 +78142,7 @@
"react-virtualized-auto-sizer": "^1.0.6",
"react-window": "^1.8.6",
"react-window-infinite-loader": "^1.0.7",
- "recharts": "2.1.6",
+ "recharts": "^2.1.6",
"sass": "^1.43.4",
"scheduler": "^0.20.2",
"semver": "^6.3.0",
diff --git a/packages/common2/index.tsx b/packages/common2/index.tsx
new file mode 100644
index 00000000000..9923e5bb0a1
--- /dev/null
+++ b/packages/common2/index.tsx
@@ -0,0 +1,349 @@
+// // GENERAL
+
+export * from './src/components/Button'
+export * from './src/components/Icon'
+export * from './src/components/Icon/IconContext'
+// export * from './src/components/Image'
+
+// DISPLAYS
+
+export * from './src/components/Card'
+export * from './src/components/Badge'
+export * from './src/components/Tabs'
+export * from './src/components/Alert'
+export * from './src/components/Accordion'
+export * from './src/components/Collapsible'
+
+// NAV
+
+export * from './src/components/Menu'
+
+// OVERLAYS
+
+export * from './src/components/Modal'
+export * from './src/components/SidePanel'
+export * from './src/components/Dropdown'
+export * from './src/components/ContextMenu'
+export * from './src/components/Popover'
+// export * from './src/components/Toast'
+
+// UTILITIES
+
+export * from './src/components/Space'
+export * from './src/components/Loading'
+export * from './src/components/Divider'
+export * from './src/components/ThemeProvider'
+
+// DATA ENTRY
+
+export * from './src/components/Select'
+export * from './src/components/Listbox'
+export * from './src/components/Checkbox'
+export * from './src/components/Input'
+export * from './src/components/InputNumber'
+export * from './src/components/Radio'
+export * from './src/components/Toggle'
+export * from './src/components/Upload'
+export * from './src/components/Form'
+
+// config
+
+// export { default as Config } from './../ui.config'
+
+// ARCHIVE
+
+// export * from './src/components/Textarea'
+
+// AUTH
+
+// export * from './src/components/Auth'
+
+// ICONS
+
+// export icons
+export * from './src/components/Icon/icons/IconActivity'
+export * from './src/components/Icon/icons/IconAirplay'
+export * from './src/components/Icon/icons/IconAlertCircle'
+export * from './src/components/Icon/icons/IconAlertOctagon'
+export * from './src/components/Icon/icons/IconAlertTriangle'
+export * from './src/components/Icon/icons/IconAlignCenter'
+export * from './src/components/Icon/icons/IconAlignJustify'
+export * from './src/components/Icon/icons/IconAlignLeft'
+export * from './src/components/Icon/icons/IconAlignRight'
+export * from './src/components/Icon/icons/IconAnchor'
+export * from './src/components/Icon/icons/IconAperture'
+export * from './src/components/Icon/icons/IconArchive'
+export * from './src/components/Icon/icons/IconArrowDownCircle'
+export * from './src/components/Icon/icons/IconArrowDownLeft'
+export * from './src/components/Icon/icons/IconArrowDownRight'
+export * from './src/components/Icon/icons/IconArrowDown'
+export * from './src/components/Icon/icons/IconArrowLeftCircle'
+export * from './src/components/Icon/icons/IconArrowLeft'
+export * from './src/components/Icon/icons/IconArrowRightCircle'
+export * from './src/components/Icon/icons/IconArrowRight'
+export * from './src/components/Icon/icons/IconArrowUpCircle'
+export * from './src/components/Icon/icons/IconArrowUpLeft'
+export * from './src/components/Icon/icons/IconArrowUpRight'
+export * from './src/components/Icon/icons/IconArrowUp'
+export * from './src/components/Icon/icons/IconAtSign'
+export * from './src/components/Icon/icons/IconAward'
+export * from './src/components/Icon/icons/IconBarChart2'
+export * from './src/components/Icon/icons/IconBarChart'
+export * from './src/components/Icon/icons/IconBatteryCharging'
+export * from './src/components/Icon/icons/IconBattery'
+export * from './src/components/Icon/icons/IconBellOff'
+export * from './src/components/Icon/icons/IconBell'
+export * from './src/components/Icon/icons/IconBluetooth'
+export * from './src/components/Icon/icons/IconBold'
+export * from './src/components/Icon/icons/IconBookOpen'
+export * from './src/components/Icon/icons/IconBook'
+export * from './src/components/Icon/icons/IconBookmark'
+export * from './src/components/Icon/icons/IconBox'
+export * from './src/components/Icon/icons/IconBriefcase'
+export * from './src/components/Icon/icons/IconCalendar'
+export * from './src/components/Icon/icons/IconCameraOff'
+export * from './src/components/Icon/icons/IconCamera'
+export * from './src/components/Icon/icons/IconCast'
+export * from './src/components/Icon/icons/IconCheckCircle'
+export * from './src/components/Icon/icons/IconCheckSquare'
+export * from './src/components/Icon/icons/IconCheck'
+export * from './src/components/Icon/icons/IconChevronDown'
+export * from './src/components/Icon/icons/IconChevronLeft'
+export * from './src/components/Icon/icons/IconChevronRight'
+export * from './src/components/Icon/icons/IconChevronUp'
+export * from './src/components/Icon/icons/IconChevronsDown'
+export * from './src/components/Icon/icons/IconChevronsLeft'
+export * from './src/components/Icon/icons/IconChevronsRight'
+export * from './src/components/Icon/icons/IconChevronsUp'
+export * from './src/components/Icon/icons/IconChrome'
+export * from './src/components/Icon/icons/IconCircle'
+export * from './src/components/Icon/icons/IconClipboard'
+export * from './src/components/Icon/icons/IconClock'
+export * from './src/components/Icon/icons/IconCloudDrizzle'
+export * from './src/components/Icon/icons/IconCloudLightning'
+export * from './src/components/Icon/icons/IconCloudOff'
+export * from './src/components/Icon/icons/IconCloudRain'
+export * from './src/components/Icon/icons/IconCloudSnow'
+export * from './src/components/Icon/icons/IconCloud'
+export * from './src/components/Icon/icons/IconCode'
+export * from './src/components/Icon/icons/IconCodepen'
+export * from './src/components/Icon/icons/IconCodesandbox'
+export * from './src/components/Icon/icons/IconCoffee'
+export * from './src/components/Icon/icons/IconColumns'
+export * from './src/components/Icon/icons/IconCommand'
+export * from './src/components/Icon/icons/IconCompass'
+export * from './src/components/Icon/icons/IconCopy'
+export * from './src/components/Icon/icons/IconCornerDownLeft'
+export * from './src/components/Icon/icons/IconCornerDownRight'
+export * from './src/components/Icon/icons/IconCornerLeftDown'
+export * from './src/components/Icon/icons/IconCornerLeftUp'
+export * from './src/components/Icon/icons/IconCornerRightDown'
+export * from './src/components/Icon/icons/IconCornerRightUp'
+export * from './src/components/Icon/icons/IconCornerUpLeft'
+export * from './src/components/Icon/icons/IconCornerUpRight'
+export * from './src/components/Icon/icons/IconCpu'
+export * from './src/components/Icon/icons/IconCreditCard'
+export * from './src/components/Icon/icons/IconCrop'
+export * from './src/components/Icon/icons/IconCrosshair'
+export * from './src/components/Icon/icons/IconDatabase'
+export * from './src/components/Icon/icons/IconDelete'
+export * from './src/components/Icon/icons/IconDisc'
+export * from './src/components/Icon/icons/IconDivideCircle'
+export * from './src/components/Icon/icons/IconDivideSquare'
+export * from './src/components/Icon/icons/IconDivide'
+export * from './src/components/Icon/icons/IconDollarSign'
+export * from './src/components/Icon/icons/IconDownloadCloud'
+export * from './src/components/Icon/icons/IconDownload'
+export * from './src/components/Icon/icons/IconDribbble'
+export * from './src/components/Icon/icons/IconDroplet'
+export * from './src/components/Icon/icons/IconEdit2'
+export * from './src/components/Icon/icons/IconEdit3'
+export * from './src/components/Icon/icons/IconEdit'
+export * from './src/components/Icon/icons/IconExternalLink'
+export * from './src/components/Icon/icons/IconEyeOff'
+export * from './src/components/Icon/icons/IconEye'
+export * from './src/components/Icon/icons/IconFacebook'
+export * from './src/components/Icon/icons/IconFastForward'
+export * from './src/components/Icon/icons/IconFeather'
+export * from './src/components/Icon/icons/IconFigma'
+export * from './src/components/Icon/icons/IconFileMinus'
+export * from './src/components/Icon/icons/IconFilePlus'
+export * from './src/components/Icon/icons/IconFileText'
+export * from './src/components/Icon/icons/IconFile'
+export * from './src/components/Icon/icons/IconFilm'
+export * from './src/components/Icon/icons/IconFilter'
+export * from './src/components/Icon/icons/IconFlag'
+export * from './src/components/Icon/icons/IconFolderMinus'
+export * from './src/components/Icon/icons/IconFolderPlus'
+export * from './src/components/Icon/icons/IconFolder'
+export * from './src/components/Icon/icons/IconFramer'
+export * from './src/components/Icon/icons/IconFrown'
+export * from './src/components/Icon/icons/IconGift'
+export * from './src/components/Icon/icons/IconGitBranch'
+export * from './src/components/Icon/icons/IconGitCommit'
+export * from './src/components/Icon/icons/IconGitMerge'
+export * from './src/components/Icon/icons/IconGitPullRequest'
+export * from './src/components/Icon/icons/IconGitHub'
+export * from './src/components/Icon/icons/IconGitlab'
+export * from './src/components/Icon/icons/IconGlobe'
+export * from './src/components/Icon/icons/IconGrid'
+export * from './src/components/Icon/icons/IconHardDrive'
+export * from './src/components/Icon/icons/IconHash'
+export * from './src/components/Icon/icons/IconHeadphones'
+export * from './src/components/Icon/icons/IconHeart'
+export * from './src/components/Icon/icons/IconHelpCircle'
+export * from './src/components/Icon/icons/IconHexagon'
+export * from './src/components/Icon/icons/IconHome'
+export * from './src/components/Icon/icons/IconImage'
+export * from './src/components/Icon/icons/IconInbox'
+export * from './src/components/Icon/icons/IconInfo'
+export * from './src/components/Icon/icons/IconInstagram'
+export * from './src/components/Icon/icons/IconItalic'
+export * from './src/components/Icon/icons/IconKey'
+export * from './src/components/Icon/icons/IconLayers'
+export * from './src/components/Icon/icons/IconLayout'
+export * from './src/components/Icon/icons/IconLifeBuoy'
+export * from './src/components/Icon/icons/IconLink2'
+export * from './src/components/Icon/icons/IconLink'
+export * from './src/components/Icon/icons/IconLinkedin'
+export * from './src/components/Icon/icons/IconList'
+export * from './src/components/Icon/icons/IconLoader'
+export * from './src/components/Icon/icons/IconLoader'
+export * from './src/components/Icon/icons/IconLogIn'
+export * from './src/components/Icon/icons/IconLogOut'
+export * from './src/components/Icon/icons/IconMail'
+export * from './src/components/Icon/icons/IconMapPin'
+export * from './src/components/Icon/icons/IconMap'
+export * from './src/components/Icon/icons/IconMaximize2'
+export * from './src/components/Icon/icons/IconMaximize'
+export * from './src/components/Icon/icons/IconMeh'
+export * from './src/components/Icon/icons/IconMenu'
+export * from './src/components/Icon/icons/IconMessageCircle'
+export * from './src/components/Icon/icons/IconMessageSquare'
+export * from './src/components/Icon/icons/IconMicOff'
+export * from './src/components/Icon/icons/IconMic'
+export * from './src/components/Icon/icons/IconMinimize2'
+export * from './src/components/Icon/icons/IconMinimize'
+export * from './src/components/Icon/icons/IconMinusCircle'
+export * from './src/components/Icon/icons/IconMinusSquare'
+export * from './src/components/Icon/icons/IconMinus'
+export * from './src/components/Icon/icons/IconMonitor'
+export * from './src/components/Icon/icons/IconMoon'
+export * from './src/components/Icon/icons/IconMoreHorizontal'
+export * from './src/components/Icon/icons/IconMoreVertical'
+export * from './src/components/Icon/icons/IconMousePointer'
+export * from './src/components/Icon/icons/IconMove'
+export * from './src/components/Icon/icons/IconMusic'
+export * from './src/components/Icon/icons/IconNavigation2'
+export * from './src/components/Icon/icons/IconNavigation'
+export * from './src/components/Icon/icons/IconOctagon'
+export * from './src/components/Icon/icons/IconPackage'
+export * from './src/components/Icon/icons/IconPaperclip'
+export * from './src/components/Icon/icons/IconPauseCircle'
+export * from './src/components/Icon/icons/IconPause'
+export * from './src/components/Icon/icons/IconPenTool'
+export * from './src/components/Icon/icons/IconPercent'
+export * from './src/components/Icon/icons/IconPhoneCall'
+export * from './src/components/Icon/icons/IconPhoneForwarded'
+export * from './src/components/Icon/icons/IconPhoneIncoming'
+export * from './src/components/Icon/icons/IconPhoneMissed'
+export * from './src/components/Icon/icons/IconPhoneOff'
+export * from './src/components/Icon/icons/IconPhoneOutgoing'
+export * from './src/components/Icon/icons/IconPhone'
+export * from './src/components/Icon/icons/IconPieChart'
+export * from './src/components/Icon/icons/IconPlayCircle'
+export * from './src/components/Icon/icons/IconPlay'
+export * from './src/components/Icon/icons/IconPlusCircle'
+export * from './src/components/Icon/icons/IconPlusSquare'
+export * from './src/components/Icon/icons/IconPlus'
+export * from './src/components/Icon/icons/IconPocket'
+export * from './src/components/Icon/icons/IconPower'
+export * from './src/components/Icon/icons/IconPrinter'
+export * from './src/components/Icon/icons/IconRadio'
+export * from './src/components/Icon/icons/IconRefreshCcw'
+export * from './src/components/Icon/icons/IconRefreshCw'
+export * from './src/components/Icon/icons/IconRepeat'
+export * from './src/components/Icon/icons/IconRewind'
+export * from './src/components/Icon/icons/IconRotateCcw'
+export * from './src/components/Icon/icons/IconRotateCw'
+export * from './src/components/Icon/icons/IconRss'
+export * from './src/components/Icon/icons/IconSave'
+export * from './src/components/Icon/icons/IconScissors'
+export * from './src/components/Icon/icons/IconSearch'
+export * from './src/components/Icon/icons/IconSend'
+export * from './src/components/Icon/icons/IconServer'
+export * from './src/components/Icon/icons/IconSettings'
+export * from './src/components/Icon/icons/IconShare2'
+export * from './src/components/Icon/icons/IconShare'
+export * from './src/components/Icon/icons/IconShieldOff'
+export * from './src/components/Icon/icons/IconShield'
+export * from './src/components/Icon/icons/IconShoppingBag'
+export * from './src/components/Icon/icons/IconShoppingCart'
+export * from './src/components/Icon/icons/IconShuffle'
+export * from './src/components/Icon/icons/IconSidebar'
+export * from './src/components/Icon/icons/IconSkipBack'
+export * from './src/components/Icon/icons/IconSkipForward'
+export * from './src/components/Icon/icons/IconSlack'
+export * from './src/components/Icon/icons/IconSlash'
+export * from './src/components/Icon/icons/IconSliders'
+export * from './src/components/Icon/icons/IconSmartphone'
+export * from './src/components/Icon/icons/IconSmile'
+export * from './src/components/Icon/icons/IconSpeaker'
+export * from './src/components/Icon/icons/IconSquare'
+export * from './src/components/Icon/icons/IconStar'
+export * from './src/components/Icon/icons/IconStopCircle'
+export * from './src/components/Icon/icons/IconSun'
+export * from './src/components/Icon/icons/IconSunrise'
+export * from './src/components/Icon/icons/IconSunset'
+export * from './src/components/Icon/icons/IconTablet'
+export * from './src/components/Icon/icons/IconTag'
+export * from './src/components/Icon/icons/IconTarget'
+export * from './src/components/Icon/icons/IconTerminal'
+export * from './src/components/Icon/icons/IconThermometer'
+export * from './src/components/Icon/icons/IconThumbsDown'
+export * from './src/components/Icon/icons/IconThumbsUp'
+export * from './src/components/Icon/icons/IconToggleLeft'
+export * from './src/components/Icon/icons/IconToggleRight'
+export * from './src/components/Icon/icons/IconTool'
+export * from './src/components/Icon/icons/IconTrash2'
+export * from './src/components/Icon/icons/IconTrash'
+export * from './src/components/Icon/icons/IconTrello'
+export * from './src/components/Icon/icons/IconTrendingDown'
+export * from './src/components/Icon/icons/IconTrendingUp'
+export * from './src/components/Icon/icons/IconTriangle'
+export * from './src/components/Icon/icons/IconTruck'
+export * from './src/components/Icon/icons/IconTv'
+export * from './src/components/Icon/icons/IconTwitch'
+export * from './src/components/Icon/icons/IconTwitter'
+export * from './src/components/Icon/icons/IconType'
+export * from './src/components/Icon/icons/IconUmbrella'
+export * from './src/components/Icon/icons/IconUnderline'
+export * from './src/components/Icon/icons/IconUnlock'
+export * from './src/components/Icon/icons/IconUploadCloud'
+export * from './src/components/Icon/icons/IconUpload'
+export * from './src/components/Icon/icons/IconUserCheck'
+export * from './src/components/Icon/icons/IconUserMinus'
+export * from './src/components/Icon/icons/IconUserPlus'
+export * from './src/components/Icon/icons/IconUserX'
+export * from './src/components/Icon/icons/IconUser'
+export * from './src/components/Icon/icons/IconUsers'
+export * from './src/components/Icon/icons/IconVideoOff'
+export * from './src/components/Icon/icons/IconVideo'
+export * from './src/components/Icon/icons/IconVoicemail'
+export * from './src/components/Icon/icons/IconVolume1'
+export * from './src/components/Icon/icons/IconVolume2'
+export * from './src/components/Icon/icons/IconVolumeX'
+export * from './src/components/Icon/icons/IconVolume'
+export * from './src/components/Icon/icons/IconWatch'
+export * from './src/components/Icon/icons/IconWifiOff'
+export * from './src/components/Icon/icons/IconWifi'
+export * from './src/components/Icon/icons/IconWind'
+export * from './src/components/Icon/icons/IconXCircle'
+export * from './src/components/Icon/icons/IconXOctagon'
+export * from './src/components/Icon/icons/IconXSquare'
+export * from './src/components/Icon/icons/IconX'
+export * from './src/components/Icon/icons/IconYoutube'
+export * from './src/components/Icon/icons/IconZapOff'
+export * from './src/components/Icon/icons/IconZap'
+export * from './src/components/Icon/icons/IconZoomIn'
+export * from './src/components/Icon/icons/IconZoomOut'
diff --git a/packages/common2/internals/icons.js b/packages/common2/internals/icons.js
new file mode 100644
index 00000000000..07a7f0e5539
--- /dev/null
+++ b/packages/common2/internals/icons.js
@@ -0,0 +1,288 @@
+export default {
+ IconActivity: 'src/components/Icon/icons/IconActivity/index.tsx',
+ IconAirplay: 'src/components/Icon/icons/IconAirplay/index.tsx',
+ IconAlertCircle: 'src/components/Icon/icons/IconAlertCircle/index.tsx',
+ IconAlertOctagon: 'src/components/Icon/icons/IconAlertOctagon/index.tsx',
+ IconAlertTriangle: 'src/components/Icon/icons/IconAlertTriangle/index.tsx',
+ IconAlignCenter: 'src/components/Icon/icons/IconAlignCenter/index.tsx',
+ IconAlignJustify: 'src/components/Icon/icons/IconAlignJustify/index.tsx',
+ IconAlignLeft: 'src/components/Icon/icons/IconAlignLeft/index.tsx',
+ IconAlignRight: 'src/components/Icon/icons/IconAlignRight/index.tsx',
+ IconAnchor: 'src/components/Icon/icons/IconAnchor/index.tsx',
+ IconAperture: 'src/components/Icon/icons/IconAperture/index.tsx',
+ IconArchive: 'src/components/Icon/icons/IconArchive/index.tsx',
+ IconArrowDownCircle: 'src/components/Icon/icons/IconArrowDownCircle/index.tsx',
+ IconArrowDownLeft: 'src/components/Icon/icons/IconArrowDownLeft/index.tsx',
+ IconArrowDownRight: 'src/components/Icon/icons/IconArrowDownRight/index.tsx',
+ IconArrowDown: 'src/components/Icon/icons/IconArrowDown/index.tsx',
+ IconArrowLeftCircle: 'src/components/Icon/icons/IconArrowLeftCircle/index.tsx',
+ IconArrowLeft: 'src/components/Icon/icons/IconArrowLeft/index.tsx',
+ IconArrowRightCircle: 'src/components/Icon/icons/IconArrowRightCircle/index.tsx',
+ IconArrowRight: 'src/components/Icon/icons/IconArrowRight/index.tsx',
+ IconArrowUpCircle: 'src/components/Icon/icons/IconArrowUpCircle/index.tsx',
+ IconArrowUpLeft: 'src/components/Icon/icons/IconArrowUpLeft/index.tsx',
+ IconArrowUpRight: 'src/components/Icon/icons/IconArrowUpRight/index.tsx',
+ IconArrowUp: 'src/components/Icon/icons/IconArrowUp/index.tsx',
+ IconAtSign: 'src/components/Icon/icons/IconAtSign/index.tsx',
+ IconAward: 'src/components/Icon/icons/IconAward/index.tsx',
+ IconBarChart2: 'src/components/Icon/icons/IconBarChart2/index.tsx',
+ IconBarChart: 'src/components/Icon/icons/IconBarChart/index.tsx',
+ IconBatteryCharging: 'src/components/Icon/icons/IconBatteryCharging/index.tsx',
+ IconBattery: 'src/components/Icon/icons/IconBattery/index.tsx',
+ IconBellOff: 'src/components/Icon/icons/IconBellOff/index.tsx',
+ IconBell: 'src/components/Icon/icons/IconBell/index.tsx',
+ IconBluetooth: 'src/components/Icon/icons/IconBluetooth/index.tsx',
+ IconBold: 'src/components/Icon/icons/IconBold/index.tsx',
+ IconBookOpen: 'src/components/Icon/icons/IconBookOpen/index.tsx',
+ IconBook: 'src/components/Icon/icons/IconBook/index.tsx',
+ IconBookmark: 'src/components/Icon/icons/IconBookmark/index.tsx',
+ IconBox: 'src/components/Icon/icons/IconBox/index.tsx',
+ IconBriefcase: 'src/components/Icon/icons/IconBriefcase/index.tsx',
+ IconCalendar: 'src/components/Icon/icons/IconCalendar/index.tsx',
+ IconCameraOff: 'src/components/Icon/icons/IconCameraOff/index.tsx',
+ IconCamera: 'src/components/Icon/icons/IconCamera/index.tsx',
+ IconCast: 'src/components/Icon/icons/IconCast/index.tsx',
+ IconCheckCircle: 'src/components/Icon/icons/IconCheckCircle/index.tsx',
+ IconCheckSquare: 'src/components/Icon/icons/IconCheckSquare/index.tsx',
+ IconCheck: 'src/components/Icon/icons/IconCheck/index.tsx',
+ IconChevronDown: 'src/components/Icon/icons/IconChevronDown/index.tsx',
+ IconChevronLeft: 'src/components/Icon/icons/IconChevronLeft/index.tsx',
+ IconChevronRight: 'src/components/Icon/icons/IconChevronRight/index.tsx',
+ IconChevronUp: 'src/components/Icon/icons/IconChevronUp/index.tsx',
+ IconChevronsDown: 'src/components/Icon/icons/IconChevronsDown/index.tsx',
+ IconChevronsLeft: 'src/components/Icon/icons/IconChevronsLeft/index.tsx',
+ IconChevronsRight: 'src/components/Icon/icons/IconChevronsRight/index.tsx',
+ IconChevronsUp: 'src/components/Icon/icons/IconChevronsUp/index.tsx',
+ IconChrome: 'src/components/Icon/icons/IconChrome/index.tsx',
+ IconCircle: 'src/components/Icon/icons/IconCircle/index.tsx',
+ IconClipboard: 'src/components/Icon/icons/IconClipboard/index.tsx',
+ IconClock: 'src/components/Icon/icons/IconClock/index.tsx',
+ IconCloudDrizzle: 'src/components/Icon/icons/IconCloudDrizzle/index.tsx',
+ IconCloudLightning: 'src/components/Icon/icons/IconCloudLightning/index.tsx',
+ IconCloudOff: 'src/components/Icon/icons/IconCloudOff/index.tsx',
+ IconCloudRain: 'src/components/Icon/icons/IconCloudRain/index.tsx',
+ IconCloudSnow: 'src/components/Icon/icons/IconCloudSnow/index.tsx',
+ IconCloud: 'src/components/Icon/icons/IconCloud/index.tsx',
+ IconCode: 'src/components/Icon/icons/IconCode/index.tsx',
+ IconCodepen: 'src/components/Icon/icons/IconCodepen/index.tsx',
+ IconCodesandbox: 'src/components/Icon/icons/IconCodesandbox/index.tsx',
+ IconCoffee: 'src/components/Icon/icons/IconCoffee/index.tsx',
+ IconColumns: 'src/components/Icon/icons/IconColumns/index.tsx',
+ IconCommand: 'src/components/Icon/icons/IconCommand/index.tsx',
+ IconCompass: 'src/components/Icon/icons/IconCompass/index.tsx',
+ IconCopy: 'src/components/Icon/icons/IconCopy/index.tsx',
+ IconCornerDownLeft: 'src/components/Icon/icons/IconCornerDownLeft/index.tsx',
+ IconCornerDownRight: 'src/components/Icon/icons/IconCornerDownRight/index.tsx',
+ IconCornerLeftDown: 'src/components/Icon/icons/IconCornerLeftDown/index.tsx',
+ IconCornerLeftUp: 'src/components/Icon/icons/IconCornerLeftUp/index.tsx',
+ IconCornerRightDown: 'src/components/Icon/icons/IconCornerRightDown/index.tsx',
+ IconCornerRightUp: 'src/components/Icon/icons/IconCornerRightUp/index.tsx',
+ IconCornerUpLeft: 'src/components/Icon/icons/IconCornerUpLeft/index.tsx',
+ IconCornerUpRight: 'src/components/Icon/icons/IconCornerUpRight/index.tsx',
+ IconCpu: 'src/components/Icon/icons/IconCpu/index.tsx',
+ IconCreditCard: 'src/components/Icon/icons/IconCreditCard/index.tsx',
+ IconCrop: 'src/components/Icon/icons/IconCrop/index.tsx',
+ IconCrosshair: 'src/components/Icon/icons/IconCrosshair/index.tsx',
+ IconDatabase: 'src/components/Icon/icons/IconDatabase/index.tsx',
+ IconDelete: 'src/components/Icon/icons/IconDelete/index.tsx',
+ IconDisc: 'src/components/Icon/icons/IconDisc/index.tsx',
+ IconDivideCircle: 'src/components/Icon/icons/IconDivideCircle/index.tsx',
+ IconDivideSquare: 'src/components/Icon/icons/IconDivideSquare/index.tsx',
+ IconDivide: 'src/components/Icon/icons/IconDivide/index.tsx',
+ IconDollarSign: 'src/components/Icon/icons/IconDollarSign/index.tsx',
+ IconDownloadCloud: 'src/components/Icon/icons/IconDownloadCloud/index.tsx',
+ IconDownload: 'src/components/Icon/icons/IconDownload/index.tsx',
+ IconDribbble: 'src/components/Icon/icons/IconDribbble/index.tsx',
+ IconDroplet: 'src/components/Icon/icons/IconDroplet/index.tsx',
+ IconEdit2: 'src/components/Icon/icons/IconEdit2/index.tsx',
+ IconEdit3: 'src/components/Icon/icons/IconEdit3/index.tsx',
+ IconEdit: 'src/components/Icon/icons/IconEdit/index.tsx',
+ IconExternalLink: 'src/components/Icon/icons/IconExternalLink/index.tsx',
+ IconEyeOff: 'src/components/Icon/icons/IconEyeOff/index.tsx',
+ IconEye: 'src/components/Icon/icons/IconEye/index.tsx',
+ IconFacebook: 'src/components/Icon/icons/IconFacebook/index.tsx',
+ IconFastForward: 'src/components/Icon/icons/IconFastForward/index.tsx',
+ IconFeather: 'src/components/Icon/icons/IconFeather/index.tsx',
+ IconFigma: 'src/components/Icon/icons/IconFigma/index.tsx',
+ IconFileMinus: 'src/components/Icon/icons/IconFileMinus/index.tsx',
+ IconFilePlus: 'src/components/Icon/icons/IconFilePlus/index.tsx',
+ IconFileText: 'src/components/Icon/icons/IconFileText/index.tsx',
+ IconFile: 'src/components/Icon/icons/IconFile/index.tsx',
+ IconFilm: 'src/components/Icon/icons/IconFilm/index.tsx',
+ IconFilter: 'src/components/Icon/icons/IconFilter/index.tsx',
+ IconFlag: 'src/components/Icon/icons/IconFlag/index.tsx',
+ IconFolderMinus: 'src/components/Icon/icons/IconFolderMinus/index.tsx',
+ IconFolderPlus: 'src/components/Icon/icons/IconFolderPlus/index.tsx',
+ IconFolder: 'src/components/Icon/icons/IconFolder/index.tsx',
+ IconFramer: 'src/components/Icon/icons/IconFramer/index.tsx',
+ IconFrown: 'src/components/Icon/icons/IconFrown/index.tsx',
+ IconGift: 'src/components/Icon/icons/IconGift/index.tsx',
+ IconGitBranch: 'src/components/Icon/icons/IconGitBranch/index.tsx',
+ IconGitCommit: 'src/components/Icon/icons/IconGitCommit/index.tsx',
+ IconGitMerge: 'src/components/Icon/icons/IconGitMerge/index.tsx',
+ IconGitPullRequest: 'src/components/Icon/icons/IconGitPullRequest/index.tsx',
+ IconGitHub: 'src/components/Icon/icons/IconGitHub/index.tsx',
+ IconGitlab: 'src/components/Icon/icons/IconGitlab/index.tsx',
+ IconGlobe: 'src/components/Icon/icons/IconGlobe/index.tsx',
+ IconGrid: 'src/components/Icon/icons/IconGrid/index.tsx',
+ IconHardDrive: 'src/components/Icon/icons/IconHardDrive/index.tsx',
+ IconHash: 'src/components/Icon/icons/IconHash/index.tsx',
+ IconHeadphones: 'src/components/Icon/icons/IconHeadphones/index.tsx',
+ IconHeart: 'src/components/Icon/icons/IconHeart/index.tsx',
+ IconHelpCircle: 'src/components/Icon/icons/IconHelpCircle/index.tsx',
+ IconHexagon: 'src/components/Icon/icons/IconHexagon/index.tsx',
+ IconHome: 'src/components/Icon/icons/IconHome/index.tsx',
+ IconImage: 'src/components/Icon/icons/IconImage/index.tsx',
+ IconInbox: 'src/components/Icon/icons/IconInbox/index.tsx',
+ IconInfo: 'src/components/Icon/icons/IconInfo/index.tsx',
+ IconInstagram: 'src/components/Icon/icons/IconInstagram/index.tsx',
+ IconItalic: 'src/components/Icon/icons/IconItalic/index.tsx',
+ IconKey: 'src/components/Icon/icons/IconKey/index.tsx',
+ IconLayers: 'src/components/Icon/icons/IconLayers/index.tsx',
+ IconLayout: 'src/components/Icon/icons/IconLayout/index.tsx',
+ IconLifeBuoy: 'src/components/Icon/icons/IconLifeBuoy/index.tsx',
+ IconLink2: 'src/components/Icon/icons/IconLink2/index.tsx',
+ IconLink: 'src/components/Icon/icons/IconLink/index.tsx',
+ IconLinkedin: 'src/components/Icon/icons/IconLinkedin/index.tsx',
+ IconList: 'src/components/Icon/icons/IconList/index.tsx',
+ IconLoader: 'src/components/Icon/icons/IconLoader/index.tsx',
+ IconLock: 'src/components/Icon/icons/IconLock/index.tsx',
+ IconLogIn: 'src/components/Icon/icons/IconLogIn/index.tsx',
+ IconLogOut: 'src/components/Icon/icons/IconLogOut/index.tsx',
+ IconMail: 'src/components/Icon/icons/IconMail/index.tsx',
+ IconMapPin: 'src/components/Icon/icons/IconMapPin/index.tsx',
+ IconMap: 'src/components/Icon/icons/IconMap/index.tsx',
+ IconMaximize2: 'src/components/Icon/icons/IconMaximize2/index.tsx',
+ IconMaximize: 'src/components/Icon/icons/IconMaximize/index.tsx',
+ IconMeh: 'src/components/Icon/icons/IconMeh/index.tsx',
+ IconMenu: 'src/components/Icon/icons/IconMenu/index.tsx',
+ IconMessageCircle: 'src/components/Icon/icons/IconMessageCircle/index.tsx',
+ IconMessageSquare: 'src/components/Icon/icons/IconMessageSquare/index.tsx',
+ IconMicOff: 'src/components/Icon/icons/IconMicOff/index.tsx',
+ IconMic: 'src/components/Icon/icons/IconMic/index.tsx',
+ IconMinimize2: 'src/components/Icon/icons/IconMinimize2/index.tsx',
+ IconMinimize: 'src/components/Icon/icons/IconMinimize/index.tsx',
+ IconMinusCircle: 'src/components/Icon/icons/IconMinusCircle/index.tsx',
+ IconMinusSquare: 'src/components/Icon/icons/IconMinusSquare/index.tsx',
+ IconMinus: 'src/components/Icon/icons/IconMinus/index.tsx',
+ IconMonitor: 'src/components/Icon/icons/IconMonitor/index.tsx',
+ IconMoon: 'src/components/Icon/icons/IconMoon/index.tsx',
+ IconMoreHorizontal: 'src/components/Icon/icons/IconMoreHorizontal/index.tsx',
+ IconMoreVertical: 'src/components/Icon/icons/IconMoreVertical/index.tsx',
+ IconMousePointer: 'src/components/Icon/icons/IconMousePointer/index.tsx',
+ IconMove: 'src/components/Icon/icons/IconMove/index.tsx',
+ IconMusic: 'src/components/Icon/icons/IconMusic/index.tsx',
+ IconNavigation2: 'src/components/Icon/icons/IconNavigation2/index.tsx',
+ IconNavigation: 'src/components/Icon/icons/IconNavigation/index.tsx',
+ IconOctagon: 'src/components/Icon/icons/IconOctagon/index.tsx',
+ IconPackage: 'src/components/Icon/icons/IconPackage/index.tsx',
+ IconPaperclip: 'src/components/Icon/icons/IconPaperclip/index.tsx',
+ IconPauseCircle: 'src/components/Icon/icons/IconPauseCircle/index.tsx',
+ IconPause: 'src/components/Icon/icons/IconPause/index.tsx',
+ IconPenTool: 'src/components/Icon/icons/IconPenTool/index.tsx',
+ IconPercent: 'src/components/Icon/icons/IconPercent/index.tsx',
+ IconPhoneCall: 'src/components/Icon/icons/IconPhoneCall/index.tsx',
+ IconPhoneForwarded: 'src/components/Icon/icons/IconPhoneForwarded/index.tsx',
+ IconPhoneIncoming: 'src/components/Icon/icons/IconPhoneIncoming/index.tsx',
+ IconPhoneMissed: 'src/components/Icon/icons/IconPhoneMissed/index.tsx',
+ IconPhoneOff: 'src/components/Icon/icons/IconPhoneOff/index.tsx',
+ IconPhoneOutgoing: 'src/components/Icon/icons/IconPhoneOutgoing/index.tsx',
+ IconPhone: 'src/components/Icon/icons/IconPhone/index.tsx',
+ IconPieChart: 'src/components/Icon/icons/IconPieChart/index.tsx',
+ IconPlayCircle: 'src/components/Icon/icons/IconPlayCircle/index.tsx',
+ IconPlay: 'src/components/Icon/icons/IconPlay/index.tsx',
+ IconPlusCircle: 'src/components/Icon/icons/IconPlusCircle/index.tsx',
+ IconPlusSquare: 'src/components/Icon/icons/IconPlusSquare/index.tsx',
+ IconPlus: 'src/components/Icon/icons/IconPlus/index.tsx',
+ IconPocket: 'src/components/Icon/icons/IconPocket/index.tsx',
+ IconPower: 'src/components/Icon/icons/IconPower/index.tsx',
+ IconPrinter: 'src/components/Icon/icons/IconPrinter/index.tsx',
+ IconRadio: 'src/components/Icon/icons/IconRadio/index.tsx',
+ IconRefreshCcw: 'src/components/Icon/icons/IconRefreshCcw/index.tsx',
+ IconRefreshCw: 'src/components/Icon/icons/IconRefreshCw/index.tsx',
+ IconRepeat: 'src/components/Icon/icons/IconRepeat/index.tsx',
+ IconRewind: 'src/components/Icon/icons/IconRewind/index.tsx',
+ IconRotateCcw: 'src/components/Icon/icons/IconRotateCcw/index.tsx',
+ IconRotateCw: 'src/components/Icon/icons/IconRotateCw/index.tsx',
+ IconRss: 'src/components/Icon/icons/IconRss/index.tsx',
+ IconSave: 'src/components/Icon/icons/IconSave/index.tsx',
+ IconScissors: 'src/components/Icon/icons/IconScissors/index.tsx',
+ IconSearch: 'src/components/Icon/icons/IconSearch/index.tsx',
+ IconSend: 'src/components/Icon/icons/IconSend/index.tsx',
+ IconServer: 'src/components/Icon/icons/IconServer/index.tsx',
+ IconSettings: 'src/components/Icon/icons/IconSettings/index.tsx',
+ IconShare2: 'src/components/Icon/icons/IconShare2/index.tsx',
+ IconShare: 'src/components/Icon/icons/IconShare/index.tsx',
+ IconShieldOff: 'src/components/Icon/icons/IconShieldOff/index.tsx',
+ IconShield: 'src/components/Icon/icons/IconShield/index.tsx',
+ IconShoppingBag: 'src/components/Icon/icons/IconShoppingBag/index.tsx',
+ IconShoppingCart: 'src/components/Icon/icons/IconShoppingCart/index.tsx',
+ IconShuffle: 'src/components/Icon/icons/IconShuffle/index.tsx',
+ IconSidebar: 'src/components/Icon/icons/IconSidebar/index.tsx',
+ IconSkipBack: 'src/components/Icon/icons/IconSkipBack/index.tsx',
+ IconSkipForward: 'src/components/Icon/icons/IconSkipForward/index.tsx',
+ IconSlack: 'src/components/Icon/icons/IconSlack/index.tsx',
+ IconSlash: 'src/components/Icon/icons/IconSlash/index.tsx',
+ IconSliders: 'src/components/Icon/icons/IconSliders/index.tsx',
+ IconSmartphone: 'src/components/Icon/icons/IconSmartphone/index.tsx',
+ IconSmile: 'src/components/Icon/icons/IconSmile/index.tsx',
+ IconSpeaker: 'src/components/Icon/icons/IconSpeaker/index.tsx',
+ IconSquare: 'src/components/Icon/icons/IconSquare/index.tsx',
+ IconStar: 'src/components/Icon/icons/IconStar/index.tsx',
+ IconStopCircle: 'src/components/Icon/icons/IconStopCircle/index.tsx',
+ IconSun: 'src/components/Icon/icons/IconSun/index.tsx',
+ IconSunrise: 'src/components/Icon/icons/IconSunrise/index.tsx',
+ IconSunset: 'src/components/Icon/icons/IconSunset/index.tsx',
+ IconTablet: 'src/components/Icon/icons/IconTablet/index.tsx',
+ IconTag: 'src/components/Icon/icons/IconTag/index.tsx',
+ IconTarget: 'src/components/Icon/icons/IconTarget/index.tsx',
+ IconTerminal: 'src/components/Icon/icons/IconTerminal/index.tsx',
+ IconThermometer: 'src/components/Icon/icons/IconThermometer/index.tsx',
+ IconThumbsDown: 'src/components/Icon/icons/IconThumbsDown/index.tsx',
+ IconThumbsUp: 'src/components/Icon/icons/IconThumbsUp/index.tsx',
+ IconToggleLeft: 'src/components/Icon/icons/IconToggleLeft/index.tsx',
+ IconToggleRight: 'src/components/Icon/icons/IconToggleRight/index.tsx',
+ IconTool: 'src/components/Icon/icons/IconTool/index.tsx',
+ IconTrash2: 'src/components/Icon/icons/IconTrash2/index.tsx',
+ IconTrash: 'src/components/Icon/icons/IconTrash/index.tsx',
+ IconTrello: 'src/components/Icon/icons/IconTrello/index.tsx',
+ IconTrendingDown: 'src/components/Icon/icons/IconTrendingDown/index.tsx',
+ IconTrendingUp: 'src/components/Icon/icons/IconTrendingUp/index.tsx',
+ IconTriangle: 'src/components/Icon/icons/IconTriangle/index.tsx',
+ IconTruck: 'src/components/Icon/icons/IconTruck/index.tsx',
+ IconTv: 'src/components/Icon/icons/IconTv/index.tsx',
+ IconTwitch: 'src/components/Icon/icons/IconTwitch/index.tsx',
+ IconTwitter: 'src/components/Icon/icons/IconTwitter/index.tsx',
+ IconType: 'src/components/Icon/icons/IconType/index.tsx',
+ IconUmbrella: 'src/components/Icon/icons/IconUmbrella/index.tsx',
+ IconUnderline: 'src/components/Icon/icons/IconUnderline/index.tsx',
+ IconUnlock: 'src/components/Icon/icons/IconUnlock/index.tsx',
+ IconUploadCloud: 'src/components/Icon/icons/IconUploadCloud/index.tsx',
+ IconUpload: 'src/components/Icon/icons/IconUpload/index.tsx',
+ IconUserCheck: 'src/components/Icon/icons/IconUserCheck/index.tsx',
+ IconUserMinus: 'src/components/Icon/icons/IconUserMinus/index.tsx',
+ IconUserPlus: 'src/components/Icon/icons/IconUserPlus/index.tsx',
+ IconUserX: 'src/components/Icon/icons/IconUserX/index.tsx',
+ IconUser: 'src/components/Icon/icons/IconUser/index.tsx',
+ IconUsers: 'src/components/Icon/icons/IconUsers/index.tsx',
+ IconVideoOff: 'src/components/Icon/icons/IconVideoOff/index.tsx',
+ IconVideo: 'src/components/Icon/icons/IconVideo/index.tsx',
+ IconVoicemail: 'src/components/Icon/icons/IconVoicemail/index.tsx',
+ IconVolume1: 'src/components/Icon/icons/IconVolume1/index.tsx',
+ IconVolume2: 'src/components/Icon/icons/IconVolume2/index.tsx',
+ IconVolumeX: 'src/components/Icon/icons/IconVolumeX/index.tsx',
+ IconVolume: 'src/components/Icon/icons/IconVolume/index.tsx',
+ IconWatch: 'src/components/Icon/icons/IconWatch/index.tsx',
+ IconWifiOff: 'src/components/Icon/icons/IconWifiOff/index.tsx',
+ IconWifi: 'src/components/Icon/icons/IconWifi/index.tsx',
+ IconWind: 'src/components/Icon/icons/IconWind/index.tsx',
+ IconXCircle: 'src/components/Icon/icons/IconXCircle/index.tsx',
+ IconXOctagon: 'src/components/Icon/icons/IconXOctagon/index.tsx',
+ IconXSquare: 'src/components/Icon/icons/IconXSquare/index.tsx',
+ IconX: 'src/components/Icon/icons/IconX/index.tsx',
+ IconYoutube: 'src/components/Icon/icons/IconYoutube/index.tsx',
+ IconZapOff: 'src/components/Icon/icons/IconZapOff/index.tsx',
+ IconZap: 'src/components/Icon/icons/IconZap/index.tsx',
+ IconZoomIn: 'src/components/Icon/icons/IconZoomIn/index.tsx',
+ IconZoomOut: 'src/components/Icon/icons/IconZoomOut/index.tsx'
+}
\ No newline at end of file
diff --git a/packages/common2/internals/icons.json b/packages/common2/internals/icons.json
new file mode 100644
index 00000000000..992be561d20
--- /dev/null
+++ b/packages/common2/internals/icons.json
@@ -0,0 +1,1146 @@
+{
+ "Activity": {
+ "name": "Activity",
+ "path": "react-feather/dist/icons/activity"
+ },
+ "Airplay": {
+ "name": "Airplay",
+ "path": "react-feather/dist/icons/airplay"
+ },
+ "AlertCircle": {
+ "name": "AlertCircle",
+ "path": "react-feather/dist/icons/alert-circle"
+ },
+ "AlertOctagon": {
+ "name": "AlertOctagon",
+ "path": "react-feather/dist/icons/alert-octagon"
+ },
+ "AlertTriangle": {
+ "name": "AlertTriangle",
+ "path": "react-feather/dist/icons/alert-triangle"
+ },
+ "AlignCenter": {
+ "name": "AlignCenter",
+ "path": "react-feather/dist/icons/align-center"
+ },
+ "AlignJustify": {
+ "name": "AlignJustify",
+ "path": "react-feather/dist/icons/align-justify"
+ },
+ "AlignLeft": {
+ "name": "AlignLeft",
+ "path": "react-feather/dist/icons/align-left"
+ },
+ "AlignRight": {
+ "name": "AlignRight",
+ "path": "react-feather/dist/icons/align-right"
+ },
+ "Anchor": {
+ "name": "Anchor",
+ "path": "react-feather/dist/icons/anchor"
+ },
+ "Aperture": {
+ "name": "Aperture",
+ "path": "react-feather/dist/icons/aperture"
+ },
+ "Archive": {
+ "name": "Archive",
+ "path": "react-feather/dist/icons/archive"
+ },
+ "ArrowDownCircle": {
+ "name": "ArrowDownCircle",
+ "path": "react-feather/dist/icons/arrow-down-circle"
+ },
+ "ArrowDownLeft": {
+ "name": "ArrowDownLeft",
+ "path": "react-feather/dist/icons/arrow-down-left"
+ },
+ "ArrowDownRight": {
+ "name": "ArrowDownRight",
+ "path": "react-feather/dist/icons/arrow-down-right"
+ },
+ "ArrowDown": {
+ "name": "ArrowDown",
+ "path": "react-feather/dist/icons/arrow-down"
+ },
+ "ArrowLeftCircle": {
+ "name": "ArrowLeftCircle",
+ "path": "react-feather/dist/icons/arrow-left-circle"
+ },
+ "ArrowLeft": {
+ "name": "ArrowLeft",
+ "path": "react-feather/dist/icons/arrow-left"
+ },
+ "ArrowRightCircle": {
+ "name": "ArrowRightCircle",
+ "path": "react-feather/dist/icons/arrow-right-circle"
+ },
+ "ArrowRight": {
+ "name": "ArrowRight",
+ "path": "react-feather/dist/icons/arrow-right"
+ },
+ "ArrowUpCircle": {
+ "name": "ArrowUpCircle",
+ "path": "react-feather/dist/icons/arrow-up-circle"
+ },
+ "ArrowUpLeft": {
+ "name": "ArrowUpLeft",
+ "path": "react-feather/dist/icons/arrow-up-left"
+ },
+ "ArrowUpRight": {
+ "name": "ArrowUpRight",
+ "path": "react-feather/dist/icons/arrow-up-right"
+ },
+ "ArrowUp": {
+ "name": "ArrowUp",
+ "path": "react-feather/dist/icons/arrow-up"
+ },
+ "AtSign": {
+ "name": "AtSign",
+ "path": "react-feather/dist/icons/at-sign"
+ },
+ "Award": {
+ "name": "Award",
+ "path": "react-feather/dist/icons/award"
+ },
+ "BarChart2": {
+ "name": "BarChart2",
+ "path": "react-feather/dist/icons/bar-chart-2"
+ },
+ "BarChart": {
+ "name": "BarChart",
+ "path": "react-feather/dist/icons/bar-chart"
+ },
+ "BatteryCharging": {
+ "name": "BatteryCharging",
+ "path": "react-feather/dist/icons/battery-charging"
+ },
+ "Battery": {
+ "name": "Battery",
+ "path": "react-feather/dist/icons/battery"
+ },
+ "BellOff": {
+ "name": "BellOff",
+ "path": "react-feather/dist/icons/bell-off"
+ },
+ "Bell": {
+ "name": "Bell",
+ "path": "react-feather/dist/icons/bell"
+ },
+ "Bluetooth": {
+ "name": "Bluetooth",
+ "path": "react-feather/dist/icons/bluetooth"
+ },
+ "Bold": {
+ "name": "Bold",
+ "path": "react-feather/dist/icons/bold"
+ },
+ "BookOpen": {
+ "name": "BookOpen",
+ "path": "react-feather/dist/icons/book-open"
+ },
+ "Book": {
+ "name": "Book",
+ "path": "react-feather/dist/icons/book"
+ },
+ "Bookmark": {
+ "name": "Bookmark",
+ "path": "react-feather/dist/icons/bookmark"
+ },
+ "Box": {
+ "name": "Box",
+ "path": "react-feather/dist/icons/box"
+ },
+ "Briefcase": {
+ "name": "Briefcase",
+ "path": "react-feather/dist/icons/briefcase"
+ },
+ "Calendar": {
+ "name": "Calendar",
+ "path": "react-feather/dist/icons/calendar"
+ },
+ "CameraOff": {
+ "name": "CameraOff",
+ "path": "react-feather/dist/icons/camera-off"
+ },
+ "Camera": {
+ "name": "Camera",
+ "path": "react-feather/dist/icons/camera"
+ },
+ "Cast": {
+ "name": "Cast",
+ "path": "react-feather/dist/icons/cast"
+ },
+ "CheckCircle": {
+ "name": "CheckCircle",
+ "path": "react-feather/dist/icons/check-circle"
+ },
+ "CheckSquare": {
+ "name": "CheckSquare",
+ "path": "react-feather/dist/icons/check-square"
+ },
+ "Check": {
+ "name": "Check",
+ "path": "react-feather/dist/icons/check"
+ },
+ "ChevronDown": {
+ "name": "ChevronDown",
+ "path": "react-feather/dist/icons/chevron-down"
+ },
+ "ChevronLeft": {
+ "name": "ChevronLeft",
+ "path": "react-feather/dist/icons/chevron-left"
+ },
+ "ChevronRight": {
+ "name": "ChevronRight",
+ "path": "react-feather/dist/icons/chevron-right"
+ },
+ "ChevronUp": {
+ "name": "ChevronUp",
+ "path": "react-feather/dist/icons/chevron-up"
+ },
+ "ChevronsDown": {
+ "name": "ChevronsDown",
+ "path": "react-feather/dist/icons/chevrons-down"
+ },
+ "ChevronsLeft": {
+ "name": "ChevronsLeft",
+ "path": "react-feather/dist/icons/chevrons-left"
+ },
+ "ChevronsRight": {
+ "name": "ChevronsRight",
+ "path": "react-feather/dist/icons/chevrons-right"
+ },
+ "ChevronsUp": {
+ "name": "ChevronsUp",
+ "path": "react-feather/dist/icons/chevrons-up"
+ },
+ "Chrome": {
+ "name": "Chrome",
+ "path": "react-feather/dist/icons/chrome"
+ },
+ "Circle": {
+ "name": "Circle",
+ "path": "react-feather/dist/icons/circle"
+ },
+ "Clipboard": {
+ "name": "Clipboard",
+ "path": "react-feather/dist/icons/clipboard"
+ },
+ "Clock": {
+ "name": "Clock",
+ "path": "react-feather/dist/icons/clock"
+ },
+ "CloudDrizzle": {
+ "name": "CloudDrizzle",
+ "path": "react-feather/dist/icons/cloud-drizzle"
+ },
+ "CloudLightning": {
+ "name": "CloudLightning",
+ "path": "react-feather/dist/icons/cloud-lightning"
+ },
+ "CloudOff": {
+ "name": "CloudOff",
+ "path": "react-feather/dist/icons/cloud-off"
+ },
+ "CloudRain": {
+ "name": "CloudRain",
+ "path": "react-feather/dist/icons/cloud-rain"
+ },
+ "CloudSnow": {
+ "name": "CloudSnow",
+ "path": "react-feather/dist/icons/cloud-snow"
+ },
+ "Cloud": {
+ "name": "Cloud",
+ "path": "react-feather/dist/icons/cloud"
+ },
+ "Code": {
+ "name": "Code",
+ "path": "react-feather/dist/icons/code"
+ },
+ "Codepen": {
+ "name": "Codepen",
+ "path": "react-feather/dist/icons/codepen"
+ },
+ "Codesandbox": {
+ "name": "Codesandbox",
+ "path": "react-feather/dist/icons/codesandbox"
+ },
+ "Coffee": {
+ "name": "Coffee",
+ "path": "react-feather/dist/icons/coffee"
+ },
+ "Columns": {
+ "name": "Columns",
+ "path": "react-feather/dist/icons/columns"
+ },
+ "Command": {
+ "name": "Command",
+ "path": "react-feather/dist/icons/command"
+ },
+ "Compass": {
+ "name": "Compass",
+ "path": "react-feather/dist/icons/compass"
+ },
+ "Copy": {
+ "name": "Copy",
+ "path": "react-feather/dist/icons/copy"
+ },
+ "CornerDownLeft": {
+ "name": "CornerDownLeft",
+ "path": "react-feather/dist/icons/corner-down-left"
+ },
+ "CornerDownRight": {
+ "name": "CornerDownRight",
+ "path": "react-feather/dist/icons/corner-down-right"
+ },
+ "CornerLeftDown": {
+ "name": "CornerLeftDown",
+ "path": "react-feather/dist/icons/corner-left-down"
+ },
+ "CornerLeftUp": {
+ "name": "CornerLeftUp",
+ "path": "react-feather/dist/icons/corner-left-up"
+ },
+ "CornerRightDown": {
+ "name": "CornerRightDown",
+ "path": "react-feather/dist/icons/corner-right-down"
+ },
+ "CornerRightUp": {
+ "name": "CornerRightUp",
+ "path": "react-feather/dist/icons/corner-right-up"
+ },
+ "CornerUpLeft": {
+ "name": "CornerUpLeft",
+ "path": "react-feather/dist/icons/corner-up-left"
+ },
+ "CornerUpRight": {
+ "name": "CornerUpRight",
+ "path": "react-feather/dist/icons/corner-up-right"
+ },
+ "Cpu": {
+ "name": "Cpu",
+ "path": "react-feather/dist/icons/cpu"
+ },
+ "CreditCard": {
+ "name": "CreditCard",
+ "path": "react-feather/dist/icons/credit-card"
+ },
+ "Crop": {
+ "name": "Crop",
+ "path": "react-feather/dist/icons/crop"
+ },
+ "Crosshair": {
+ "name": "Crosshair",
+ "path": "react-feather/dist/icons/crosshair"
+ },
+ "Database": {
+ "name": "Database",
+ "path": "react-feather/dist/icons/database"
+ },
+ "Delete": {
+ "name": "Delete",
+ "path": "react-feather/dist/icons/delete"
+ },
+ "Disc": {
+ "name": "Disc",
+ "path": "react-feather/dist/icons/disc"
+ },
+ "DivideCircle": {
+ "name": "DivideCircle",
+ "path": "react-feather/dist/icons/divide-circle"
+ },
+ "DivideSquare": {
+ "name": "DivideSquare",
+ "path": "react-feather/dist/icons/divide-square"
+ },
+ "Divide": {
+ "name": "Divide",
+ "path": "react-feather/dist/icons/divide"
+ },
+ "DollarSign": {
+ "name": "DollarSign",
+ "path": "react-feather/dist/icons/dollar-sign"
+ },
+ "DownloadCloud": {
+ "name": "DownloadCloud",
+ "path": "react-feather/dist/icons/download-cloud"
+ },
+ "Download": {
+ "name": "Download",
+ "path": "react-feather/dist/icons/download"
+ },
+ "Dribbble": {
+ "name": "Dribbble",
+ "path": "react-feather/dist/icons/dribbble"
+ },
+ "Droplet": {
+ "name": "Droplet",
+ "path": "react-feather/dist/icons/droplet"
+ },
+ "Edit2": {
+ "name": "Edit2",
+ "path": "react-feather/dist/icons/edit-2"
+ },
+ "Edit3": {
+ "name": "Edit3",
+ "path": "react-feather/dist/icons/edit-3"
+ },
+ "Edit": {
+ "name": "Edit",
+ "path": "react-feather/dist/icons/edit"
+ },
+ "ExternalLink": {
+ "name": "ExternalLink",
+ "path": "react-feather/dist/icons/external-link"
+ },
+ "EyeOff": {
+ "name": "EyeOff",
+ "path": "react-feather/dist/icons/eye-off"
+ },
+ "Eye": {
+ "name": "Eye",
+ "path": "react-feather/dist/icons/eye"
+ },
+ "Facebook": {
+ "name": "Facebook",
+ "path": "react-feather/dist/icons/facebook"
+ },
+ "FastForward": {
+ "name": "FastForward",
+ "path": "react-feather/dist/icons/fast-forward"
+ },
+ "Feather": {
+ "name": "Feather",
+ "path": "react-feather/dist/icons/feather"
+ },
+ "Figma": {
+ "name": "Figma",
+ "path": "react-feather/dist/icons/figma"
+ },
+ "FileMinus": {
+ "name": "FileMinus",
+ "path": "react-feather/dist/icons/file-minus"
+ },
+ "FilePlus": {
+ "name": "FilePlus",
+ "path": "react-feather/dist/icons/file-plus"
+ },
+ "FileText": {
+ "name": "FileText",
+ "path": "react-feather/dist/icons/file-text"
+ },
+ "File": {
+ "name": "File",
+ "path": "react-feather/dist/icons/file"
+ },
+ "Film": {
+ "name": "Film",
+ "path": "react-feather/dist/icons/film"
+ },
+ "Filter": {
+ "name": "Filter",
+ "path": "react-feather/dist/icons/filter"
+ },
+ "Flag": {
+ "name": "Flag",
+ "path": "react-feather/dist/icons/flag"
+ },
+ "FolderMinus": {
+ "name": "FolderMinus",
+ "path": "react-feather/dist/icons/folder-minus"
+ },
+ "FolderPlus": {
+ "name": "FolderPlus",
+ "path": "react-feather/dist/icons/folder-plus"
+ },
+ "Folder": {
+ "name": "Folder",
+ "path": "react-feather/dist/icons/folder"
+ },
+ "Framer": {
+ "name": "Framer",
+ "path": "react-feather/dist/icons/framer"
+ },
+ "Frown": {
+ "name": "Frown",
+ "path": "react-feather/dist/icons/frown"
+ },
+ "Gift": {
+ "name": "Gift",
+ "path": "react-feather/dist/icons/gift"
+ },
+ "GitBranch": {
+ "name": "GitBranch",
+ "path": "react-feather/dist/icons/git-branch"
+ },
+ "GitCommit": {
+ "name": "GitCommit",
+ "path": "react-feather/dist/icons/git-commit"
+ },
+ "GitMerge": {
+ "name": "GitMerge",
+ "path": "react-feather/dist/icons/git-merge"
+ },
+ "GitPullRequest": {
+ "name": "GitPullRequest",
+ "path": "react-feather/dist/icons/git-pull-request"
+ },
+ "GitHub": {
+ "name": "GitHub",
+ "path": "react-feather/dist/icons/github"
+ },
+ "Gitlab": {
+ "name": "Gitlab",
+ "path": "react-feather/dist/icons/gitlab"
+ },
+ "Globe": {
+ "name": "Globe",
+ "path": "react-feather/dist/icons/globe"
+ },
+ "Grid": {
+ "name": "Grid",
+ "path": "react-feather/dist/icons/grid"
+ },
+ "HardDrive": {
+ "name": "HardDrive",
+ "path": "react-feather/dist/icons/hard-drive"
+ },
+ "Hash": {
+ "name": "Hash",
+ "path": "react-feather/dist/icons/hash"
+ },
+ "Headphones": {
+ "name": "Headphones",
+ "path": "react-feather/dist/icons/headphones"
+ },
+ "Heart": {
+ "name": "Heart",
+ "path": "react-feather/dist/icons/heart"
+ },
+ "HelpCircle": {
+ "name": "HelpCircle",
+ "path": "react-feather/dist/icons/help-circle"
+ },
+ "Hexagon": {
+ "name": "Hexagon",
+ "path": "react-feather/dist/icons/hexagon"
+ },
+ "Home": {
+ "name": "Home",
+ "path": "react-feather/dist/icons/home"
+ },
+ "Image": {
+ "name": "Image",
+ "path": "react-feather/dist/icons/image"
+ },
+ "Inbox": {
+ "name": "Inbox",
+ "path": "react-feather/dist/icons/inbox"
+ },
+ "Info": {
+ "name": "Info",
+ "path": "react-feather/dist/icons/info"
+ },
+ "Instagram": {
+ "name": "Instagram",
+ "path": "react-feather/dist/icons/instagram"
+ },
+ "Italic": {
+ "name": "Italic",
+ "path": "react-feather/dist/icons/italic"
+ },
+ "Key": {
+ "name": "Key",
+ "path": "react-feather/dist/icons/key"
+ },
+ "Layers": {
+ "name": "Layers",
+ "path": "react-feather/dist/icons/layers"
+ },
+ "Layout": {
+ "name": "Layout",
+ "path": "react-feather/dist/icons/layout"
+ },
+ "LifeBuoy": {
+ "name": "LifeBuoy",
+ "path": "react-feather/dist/icons/life-buoy"
+ },
+ "Link2": {
+ "name": "Link2",
+ "path": "react-feather/dist/icons/link-2"
+ },
+ "Link": {
+ "name": "Link",
+ "path": "react-feather/dist/icons/link"
+ },
+ "Linkedin": {
+ "name": "Linkedin",
+ "path": "react-feather/dist/icons/linkedin"
+ },
+ "List": {
+ "name": "List",
+ "path": "react-feather/dist/icons/list"
+ },
+ "Loader": {
+ "name": "Loader",
+ "path": "react-feather/dist/icons/loader"
+ },
+ "Lock": {
+ "name": "Lock",
+ "path": "react-feather/dist/icons/lock"
+ },
+ "LogIn": {
+ "name": "LogIn",
+ "path": "react-feather/dist/icons/log-in"
+ },
+ "LogOut": {
+ "name": "LogOut",
+ "path": "react-feather/dist/icons/log-out"
+ },
+ "Mail": {
+ "name": "Mail",
+ "path": "react-feather/dist/icons/mail"
+ },
+ "MapPin": {
+ "name": "MapPin",
+ "path": "react-feather/dist/icons/map-pin"
+ },
+ "Map": {
+ "name": "Map",
+ "path": "react-feather/dist/icons/map"
+ },
+ "Maximize2": {
+ "name": "Maximize2",
+ "path": "react-feather/dist/icons/maximize-2"
+ },
+ "Maximize": {
+ "name": "Maximize",
+ "path": "react-feather/dist/icons/maximize"
+ },
+ "Meh": {
+ "name": "Meh",
+ "path": "react-feather/dist/icons/meh"
+ },
+ "Menu": {
+ "name": "Menu",
+ "path": "react-feather/dist/icons/menu"
+ },
+ "MessageCircle": {
+ "name": "MessageCircle",
+ "path": "react-feather/dist/icons/message-circle"
+ },
+ "MessageSquare": {
+ "name": "MessageSquare",
+ "path": "react-feather/dist/icons/message-square"
+ },
+ "MicOff": {
+ "name": "MicOff",
+ "path": "react-feather/dist/icons/mic-off"
+ },
+ "Mic": {
+ "name": "Mic",
+ "path": "react-feather/dist/icons/mic"
+ },
+ "Minimize2": {
+ "name": "Minimize2",
+ "path": "react-feather/dist/icons/minimize-2"
+ },
+ "Minimize": {
+ "name": "Minimize",
+ "path": "react-feather/dist/icons/minimize"
+ },
+ "MinusCircle": {
+ "name": "MinusCircle",
+ "path": "react-feather/dist/icons/minus-circle"
+ },
+ "MinusSquare": {
+ "name": "MinusSquare",
+ "path": "react-feather/dist/icons/minus-square"
+ },
+ "Minus": {
+ "name": "Minus",
+ "path": "react-feather/dist/icons/minus"
+ },
+ "Monitor": {
+ "name": "Monitor",
+ "path": "react-feather/dist/icons/monitor"
+ },
+ "Moon": {
+ "name": "Moon",
+ "path": "react-feather/dist/icons/moon"
+ },
+ "MoreHorizontal": {
+ "name": "MoreHorizontal",
+ "path": "react-feather/dist/icons/more-horizontal"
+ },
+ "MoreVertical": {
+ "name": "MoreVertical",
+ "path": "react-feather/dist/icons/more-vertical"
+ },
+ "MousePointer": {
+ "name": "MousePointer",
+ "path": "react-feather/dist/icons/mouse-pointer"
+ },
+ "Move": {
+ "name": "Move",
+ "path": "react-feather/dist/icons/move"
+ },
+ "Music": {
+ "name": "Music",
+ "path": "react-feather/dist/icons/music"
+ },
+ "Navigation2": {
+ "name": "Navigation2",
+ "path": "react-feather/dist/icons/navigation-2"
+ },
+ "Navigation": {
+ "name": "Navigation",
+ "path": "react-feather/dist/icons/navigation"
+ },
+ "Octagon": {
+ "name": "Octagon",
+ "path": "react-feather/dist/icons/octagon"
+ },
+ "Package": {
+ "name": "Package",
+ "path": "react-feather/dist/icons/package"
+ },
+ "Paperclip": {
+ "name": "Paperclip",
+ "path": "react-feather/dist/icons/paperclip"
+ },
+ "PauseCircle": {
+ "name": "PauseCircle",
+ "path": "react-feather/dist/icons/pause-circle"
+ },
+ "Pause": {
+ "name": "Pause",
+ "path": "react-feather/dist/icons/pause"
+ },
+ "PenTool": {
+ "name": "PenTool",
+ "path": "react-feather/dist/icons/pen-tool"
+ },
+ "Percent": {
+ "name": "Percent",
+ "path": "react-feather/dist/icons/percent"
+ },
+ "PhoneCall": {
+ "name": "PhoneCall",
+ "path": "react-feather/dist/icons/phone-call"
+ },
+ "PhoneForwarded": {
+ "name": "PhoneForwarded",
+ "path": "react-feather/dist/icons/phone-forwarded"
+ },
+ "PhoneIncoming": {
+ "name": "PhoneIncoming",
+ "path": "react-feather/dist/icons/phone-incoming"
+ },
+ "PhoneMissed": {
+ "name": "PhoneMissed",
+ "path": "react-feather/dist/icons/phone-missed"
+ },
+ "PhoneOff": {
+ "name": "PhoneOff",
+ "path": "react-feather/dist/icons/phone-off"
+ },
+ "PhoneOutgoing": {
+ "name": "PhoneOutgoing",
+ "path": "react-feather/dist/icons/phone-outgoing"
+ },
+ "Phone": {
+ "name": "Phone",
+ "path": "react-feather/dist/icons/phone"
+ },
+ "PieChart": {
+ "name": "PieChart",
+ "path": "react-feather/dist/icons/pie-chart"
+ },
+ "PlayCircle": {
+ "name": "PlayCircle",
+ "path": "react-feather/dist/icons/play-circle"
+ },
+ "Play": {
+ "name": "Play",
+ "path": "react-feather/dist/icons/play"
+ },
+ "PlusCircle": {
+ "name": "PlusCircle",
+ "path": "react-feather/dist/icons/plus-circle"
+ },
+ "PlusSquare": {
+ "name": "PlusSquare",
+ "path": "react-feather/dist/icons/plus-square"
+ },
+ "Plus": {
+ "name": "Plus",
+ "path": "react-feather/dist/icons/plus"
+ },
+ "Pocket": {
+ "name": "Pocket",
+ "path": "react-feather/dist/icons/pocket"
+ },
+ "Power": {
+ "name": "Power",
+ "path": "react-feather/dist/icons/power"
+ },
+ "Printer": {
+ "name": "Printer",
+ "path": "react-feather/dist/icons/printer"
+ },
+ "Radio": {
+ "name": "Radio",
+ "path": "react-feather/dist/icons/radio"
+ },
+ "RefreshCcw": {
+ "name": "RefreshCcw",
+ "path": "react-feather/dist/icons/refresh-ccw"
+ },
+ "RefreshCw": {
+ "name": "RefreshCw",
+ "path": "react-feather/dist/icons/refresh-cw"
+ },
+ "Repeat": {
+ "name": "Repeat",
+ "path": "react-feather/dist/icons/repeat"
+ },
+ "Rewind": {
+ "name": "Rewind",
+ "path": "react-feather/dist/icons/rewind"
+ },
+ "RotateCcw": {
+ "name": "RotateCcw",
+ "path": "react-feather/dist/icons/rotate-ccw"
+ },
+ "RotateCw": {
+ "name": "RotateCw",
+ "path": "react-feather/dist/icons/rotate-cw"
+ },
+ "Rss": {
+ "name": "Rss",
+ "path": "react-feather/dist/icons/rss"
+ },
+ "Save": {
+ "name": "Save",
+ "path": "react-feather/dist/icons/save"
+ },
+ "Scissors": {
+ "name": "Scissors",
+ "path": "react-feather/dist/icons/scissors"
+ },
+ "Search": {
+ "name": "Search",
+ "path": "react-feather/dist/icons/search"
+ },
+ "Send": {
+ "name": "Send",
+ "path": "react-feather/dist/icons/send"
+ },
+ "Server": {
+ "name": "Server",
+ "path": "react-feather/dist/icons/server"
+ },
+ "Settings": {
+ "name": "Settings",
+ "path": "react-feather/dist/icons/settings"
+ },
+ "Share2": {
+ "name": "Share2",
+ "path": "react-feather/dist/icons/share-2"
+ },
+ "Share": {
+ "name": "Share",
+ "path": "react-feather/dist/icons/share"
+ },
+ "ShieldOff": {
+ "name": "ShieldOff",
+ "path": "react-feather/dist/icons/shield-off"
+ },
+ "Shield": {
+ "name": "Shield",
+ "path": "react-feather/dist/icons/shield"
+ },
+ "ShoppingBag": {
+ "name": "ShoppingBag",
+ "path": "react-feather/dist/icons/shopping-bag"
+ },
+ "ShoppingCart": {
+ "name": "ShoppingCart",
+ "path": "react-feather/dist/icons/shopping-cart"
+ },
+ "Shuffle": {
+ "name": "Shuffle",
+ "path": "react-feather/dist/icons/shuffle"
+ },
+ "Sidebar": {
+ "name": "Sidebar",
+ "path": "react-feather/dist/icons/sidebar"
+ },
+ "SkipBack": {
+ "name": "SkipBack",
+ "path": "react-feather/dist/icons/skip-back"
+ },
+ "SkipForward": {
+ "name": "SkipForward",
+ "path": "react-feather/dist/icons/skip-forward"
+ },
+ "Slack": {
+ "name": "Slack",
+ "path": "react-feather/dist/icons/slack"
+ },
+ "Slash": {
+ "name": "Slash",
+ "path": "react-feather/dist/icons/slash"
+ },
+ "Sliders": {
+ "name": "Sliders",
+ "path": "react-feather/dist/icons/sliders"
+ },
+ "Smartphone": {
+ "name": "Smartphone",
+ "path": "react-feather/dist/icons/smartphone"
+ },
+ "Smile": {
+ "name": "Smile",
+ "path": "react-feather/dist/icons/smile"
+ },
+ "Speaker": {
+ "name": "Speaker",
+ "path": "react-feather/dist/icons/speaker"
+ },
+ "Square": {
+ "name": "Square",
+ "path": "react-feather/dist/icons/square"
+ },
+ "Star": {
+ "name": "Star",
+ "path": "react-feather/dist/icons/star"
+ },
+ "StopCircle": {
+ "name": "StopCircle",
+ "path": "react-feather/dist/icons/stop-circle"
+ },
+ "Sun": {
+ "name": "Sun",
+ "path": "react-feather/dist/icons/sun"
+ },
+ "Sunrise": {
+ "name": "Sunrise",
+ "path": "react-feather/dist/icons/sunrise"
+ },
+ "Sunset": {
+ "name": "Sunset",
+ "path": "react-feather/dist/icons/sunset"
+ },
+ "Tablet": {
+ "name": "Tablet",
+ "path": "react-feather/dist/icons/tablet"
+ },
+ "Tag": {
+ "name": "Tag",
+ "path": "react-feather/dist/icons/tag"
+ },
+ "Target": {
+ "name": "Target",
+ "path": "react-feather/dist/icons/target"
+ },
+ "Terminal": {
+ "name": "Terminal",
+ "path": "react-feather/dist/icons/terminal"
+ },
+ "Thermometer": {
+ "name": "Thermometer",
+ "path": "react-feather/dist/icons/thermometer"
+ },
+ "ThumbsDown": {
+ "name": "ThumbsDown",
+ "path": "react-feather/dist/icons/thumbs-down"
+ },
+ "ThumbsUp": {
+ "name": "ThumbsUp",
+ "path": "react-feather/dist/icons/thumbs-up"
+ },
+ "ToggleLeft": {
+ "name": "ToggleLeft",
+ "path": "react-feather/dist/icons/toggle-left"
+ },
+ "ToggleRight": {
+ "name": "ToggleRight",
+ "path": "react-feather/dist/icons/toggle-right"
+ },
+ "Tool": {
+ "name": "Tool",
+ "path": "react-feather/dist/icons/tool"
+ },
+ "Trash2": {
+ "name": "Trash2",
+ "path": "react-feather/dist/icons/trash-2"
+ },
+ "Trash": {
+ "name": "Trash",
+ "path": "react-feather/dist/icons/trash"
+ },
+ "Trello": {
+ "name": "Trello",
+ "path": "react-feather/dist/icons/trello"
+ },
+ "TrendingDown": {
+ "name": "TrendingDown",
+ "path": "react-feather/dist/icons/trending-down"
+ },
+ "TrendingUp": {
+ "name": "TrendingUp",
+ "path": "react-feather/dist/icons/trending-up"
+ },
+ "Triangle": {
+ "name": "Triangle",
+ "path": "react-feather/dist/icons/triangle"
+ },
+ "Truck": {
+ "name": "Truck",
+ "path": "react-feather/dist/icons/truck"
+ },
+ "Tv": {
+ "name": "Tv",
+ "path": "react-feather/dist/icons/tv"
+ },
+ "Twitch": {
+ "name": "Twitch",
+ "path": "react-feather/dist/icons/twitch"
+ },
+ "Twitter": {
+ "name": "Twitter",
+ "path": "react-feather/dist/icons/twitter"
+ },
+ "Type": {
+ "name": "Type",
+ "path": "react-feather/dist/icons/type"
+ },
+ "Umbrella": {
+ "name": "Umbrella",
+ "path": "react-feather/dist/icons/umbrella"
+ },
+ "Underline": {
+ "name": "Underline",
+ "path": "react-feather/dist/icons/underline"
+ },
+ "Unlock": {
+ "name": "Unlock",
+ "path": "react-feather/dist/icons/unlock"
+ },
+ "UploadCloud": {
+ "name": "UploadCloud",
+ "path": "react-feather/dist/icons/upload-cloud"
+ },
+ "Upload": {
+ "name": "Upload",
+ "path": "react-feather/dist/icons/upload"
+ },
+ "UserCheck": {
+ "name": "UserCheck",
+ "path": "react-feather/dist/icons/user-check"
+ },
+ "UserMinus": {
+ "name": "UserMinus",
+ "path": "react-feather/dist/icons/user-minus"
+ },
+ "UserPlus": {
+ "name": "UserPlus",
+ "path": "react-feather/dist/icons/user-plus"
+ },
+ "UserX": {
+ "name": "UserX",
+ "path": "react-feather/dist/icons/user-x"
+ },
+ "User": {
+ "name": "User",
+ "path": "react-feather/dist/icons/user"
+ },
+ "Users": {
+ "name": "Users",
+ "path": "react-feather/dist/icons/users"
+ },
+ "VideoOff": {
+ "name": "VideoOff",
+ "path": "react-feather/dist/icons/video-off"
+ },
+ "Video": {
+ "name": "Video",
+ "path": "react-feather/dist/icons/video"
+ },
+ "Voicemail": {
+ "name": "Voicemail",
+ "path": "react-feather/dist/icons/voicemail"
+ },
+ "Volume1": {
+ "name": "Volume1",
+ "path": "react-feather/dist/icons/volume-1"
+ },
+ "Volume2": {
+ "name": "Volume2",
+ "path": "react-feather/dist/icons/volume-2"
+ },
+ "VolumeX": {
+ "name": "VolumeX",
+ "path": "react-feather/dist/icons/volume-x"
+ },
+ "Volume": {
+ "name": "Volume",
+ "path": "react-feather/dist/icons/volume"
+ },
+ "Watch": {
+ "name": "Watch",
+ "path": "react-feather/dist/icons/watch"
+ },
+ "WifiOff": {
+ "name": "WifiOff",
+ "path": "react-feather/dist/icons/wifi-off"
+ },
+ "Wifi": {
+ "name": "Wifi",
+ "path": "react-feather/dist/icons/wifi"
+ },
+ "Wind": {
+ "name": "Wind",
+ "path": "react-feather/dist/icons/wind"
+ },
+ "XCircle": {
+ "name": "XCircle",
+ "path": "react-feather/dist/icons/x-circle"
+ },
+ "XOctagon": {
+ "name": "XOctagon",
+ "path": "react-feather/dist/icons/x-octagon"
+ },
+ "XSquare": {
+ "name": "XSquare",
+ "path": "react-feather/dist/icons/x-square"
+ },
+ "X": {
+ "name": "X",
+ "path": "react-feather/dist/icons/x"
+ },
+ "Youtube": {
+ "name": "Youtube",
+ "path": "react-feather/dist/icons/youtube"
+ },
+ "ZapOff": {
+ "name": "ZapOff",
+ "path": "react-feather/dist/icons/zap-off"
+ },
+ "Zap": {
+ "name": "Zap",
+ "path": "react-feather/dist/icons/zap"
+ },
+ "ZoomIn": {
+ "name": "ZoomIn",
+ "path": "react-feather/dist/icons/zoom-in"
+ },
+ "ZoomOut": {
+ "name": "ZoomOut",
+ "path": "react-feather/dist/icons/zoom-out"
+ }
+}
diff --git a/packages/common2/internals/populate-icons.js b/packages/common2/internals/populate-icons.js
new file mode 100644
index 00000000000..7d25f441dd1
--- /dev/null
+++ b/packages/common2/internals/populate-icons.js
@@ -0,0 +1,77 @@
+const fs = require('fs')
+const util = require('util')
+var icons = require('./icons.json') //with path
+
+let iconList = {}
+let importList = []
+
+//
+// create icon .tsx files
+//
+
+Object.values(icons).map((icon) => {
+ iconList[`Icon${icon.name}`] = `src/components/Icon/icons/Icon${icon.name}/index.tsx`
+ importList.push(`export * as Icon${icon.name} from './Icon${icon.name}'`)
+
+ var dir = `src/components/Icon/icons/Icon${icon.name}`
+
+ fs.mkdir(dir, { recursive: true }, (err) => {
+ if (err) throw err
+ })
+
+ fs.writeFile(
+ `${dir}/index.tsx`,
+ `export { default as Icon${icon.name} } from './Icon${icon.name}'`,
+ function (err) {
+ if (err) return console.log(err)
+ }
+ )
+
+ fs.writeFile(
+ `${dir}/Icon${icon.name}.tsx`,
+ `// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ${icon.name} } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function Icon${icon.name}(props: any) {
+ return <IconBase icon={${icon.name}} {...props} />
+ }
+
+ export default Icon${icon.name}
+ `,
+ function (err) {
+ if (err) return console.log(err)
+ // console.log(`${icon.name} > ${icon.path}`)
+ }
+ )
+})
+
+//
+// create export file for icons
+//
+
+fs.writeFile(
+ `src/components/Icon/icons/index.tsx`,
+ `// export icons
+${importList
+ .map((icon) => {
+ return `${icon}\n`
+ })
+ .join('')}`,
+ function (err) {
+ if (err) return console.log(err)
+ // console.log(`wrote file for rollup`)
+ }
+)
+
+//
+// create input destinations for rollup
+//
+
+fs.writeFile(`internals/icons.js`, `export default ${util.inspect(iconList)}`, function (err) {
+ if (err) return console.log(err)
+ // console.log(`wrote file for rollup`)
+})
diff --git a/packages/common2/package.json b/packages/common2/package.json
new file mode 100644
index 00000000000..dcbeda4df9c
--- /dev/null
+++ b/packages/common2/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "common2",
+ "version": "0.0.0",
+ "main": "./index.tsx",
+ "types": "./index.tsx",
+ "license": "MIT",
+ "scripts": {
+ "build:icons": "node --experimental-modules internals/populate-icons.js"
+ },
+ "dependencies": {
+ "@headlessui/react": "^1.0.0",
+ "@radix-ui/colors": "^0.1.8",
+ "@radix-ui/react-accordion": "^0.1.5",
+ "@radix-ui/react-collapsible": "^0.1.5",
+ "@radix-ui/react-context-menu": "^0.1.0",
+ "@radix-ui/react-dialog": "^0.1.5",
+ "@radix-ui/react-dropdown-menu": "^0.1.4",
+ "@radix-ui/react-popover": "^0.1.0",
+ "@radix-ui/react-portal": "^0.1.3",
+ "@radix-ui/react-tabs": "^0.1.0",
+ "@tailwindcss/forms": "^0.4.0",
+ "@tailwindcss/typography": "^0.5.0",
+ "autoprefixer": "^10.4.2",
+ "deepmerge": "^4.2.2",
+ "formik": "^2.2.9",
+ "lodash": "^4.17.20",
+ "prop-types": "^15.7.2",
+ "tailwindcss-radix": "^1.6.0"
+ },
+ "devDependencies": {
+ "@types/react": "^17.0.37",
+ "@types/react-dom": "^17.0.11",
+ "config": "*",
+ "tsconfig": "*",
+ "typescript": "^4.5.3"
+ }
+}
diff --git a/packages/common2/postcss.config.js b/packages/common2/postcss.config.js
new file mode 100644
index 00000000000..29c447cb54b
--- /dev/null
+++ b/packages/common2/postcss.config.js
@@ -0,0 +1 @@
+module.exports = require('config/postcss.config')
diff --git a/packages/common2/src/components/Accordion/Accordion.module.css b/packages/common2/src/components/Accordion/Accordion.module.css
new file mode 100644
index 00000000000..06c6163983b
--- /dev/null
+++ b/packages/common2/src/components/Accordion/Accordion.module.css
@@ -0,0 +1,72 @@
+/* .sbui-accordion-container {
+ @apply flex flex-col rounded-md;
+}
+
+.sbui-accordion-container--bordered {
+ @apply border border-solid;
+ @apply bg-white border-gray-200;
+ @apply dark:bg-dark-700 dark:border-darkmode;
+} */
+
+/* .sbui-accordion-item {
+ @apply w-full;
+} */
+
+/* .sbui-accordion-item__button {
+ @apply flex justify-between w-full text-left cursor-pointer px-6 py-4 border-0 border-solid font-medium text-base rounded-t-md bg-transparent;
+
+ @apply border-gray-200 text-gray-500 hover:text-gray-600;
+ @apply dark:border-darkmode dark:text-dark-200 dark:hover:text-white;
+
+ font-family: inherit;
+ font-weight: inherit;
+} */
+
+/* .sbui-accordion-item__button .sbui-typography-text {
+ @apply w-full max-w-none;
+} */
+
+/* .sbui-accordion-item__button .sbui-typography-text:last-child {
+ @apply pl-2;
+} */
+
+/* .sbui-accordion-item__button .sbui-icon {
+ @apply mt-px;
+} */
+
+/* .sbui-accordion-item__button--open .sbui-icon {
+ @apply transform rotate-180;
+} */
+/*
+.sbui-accordion-container--bordered
+ .sbui-accordion-item__button:not(:first-child) {
+ @apply rounded-none border-t border-gray-200 dark:border-darkmode;
+} */
+
+/* .sbui-accordion-item__panel {
+ @apply px-6 py-4;
+} */
+
+/* .sbui-accordion-item__panel--enter {
+ @apply transition-max-height ease-in-out duration-700 overflow-hidden;
+}
+
+.sbui-accordion-item__panel--enterFrom {
+ @apply max-h-0;
+}
+
+.sbui-accordion-item__panel--enterTo {
+ @apply max-h-screen;
+}
+
+.sbui-accordion-item__panel--leave {
+ @apply transition-max-height ease-in-out duration-300 overflow-hidden;
+}
+
+.sbui-accordion-item__panel--leaveFrom {
+ @apply max-h-screen;
+}
+
+.sbui-accordion-item__panel--leaveTo {
+ @apply max-h-0;
+} */
diff --git a/packages/common2/src/components/Accordion/Accordion.stories.tsx b/packages/common2/src/components/Accordion/Accordion.stories.tsx
new file mode 100644
index 00000000000..4dcc3d56483
--- /dev/null
+++ b/packages/common2/src/components/Accordion/Accordion.stories.tsx
@@ -0,0 +1,201 @@
+import React from 'react'
+
+import { Accordion } from '.'
+import { Typography } from '../Typography'
+import { IconArrowUp } from '../Icon/icons/IconArrowUp'
+import { Badge } from '../Badge'
+
+export default {
+ title: 'Displays/Accordion',
+ component: Accordion,
+}
+
+export const OneItem = (args: any) => (
+ <Accordion {...args} justified={false}>
+ <Accordion.Item
+ header={
+ <>
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ <Badge>Test badge</Badge>
+ </>
+ }
+ id="first"
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ </Accordion>
+)
+
+export const MultipleItems = (args: any) => (
+ <Accordion {...args} openBehaviour="multiple">
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'1'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'2'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'3'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'4'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ </Accordion>
+)
+
+export const Bordered = (args: any) => (
+ <Accordion {...args}>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'1'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'2'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'3'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Title of the thing
+ </span>
+ }
+ id={'4'}
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ </Accordion>
+)
+
+Bordered.args = {
+ type: 'bordered',
+}
+
+export const LeftAlignedChevron = (args: any) => (
+ <Accordion {...args} justified={false} chevronAlign="left">
+ <Accordion.Item
+ header={
+ <>
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ First item
+ </span>
+ <Badge>Test badge</Badge>
+ </>
+ }
+ id="first"
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ <Accordion.Item
+ header={
+ <>
+ <span className="text-scale-900 group-hover:text-scale-1200">
+ Second item
+ </span>
+ </>
+ }
+ id="second"
+ >
+ <span className="text-scale-900">
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur
+ amet labore.
+ </span>
+ </Accordion.Item>
+ </Accordion>
+)
+
+// export const withDefaultActive = Multiple.bind({})
+// withDefaultActive.args = {
+// defaultActiveId: [1],
+// }
+
+// export const withIconLeft = Multiple.bind({})
+// withIconLeft.args = {
+// iconPosition: 'left',
+// }
+
+// export const withCustomIcon = Multiple.bind({})
+// withCustomIcon.args = {
+// icon: <IconArrowUp />,
+// }
diff --git a/packages/common2/src/components/Accordion/Accordion.tsx b/packages/common2/src/components/Accordion/Accordion.tsx
new file mode 100644
index 00000000000..3b40089684a
--- /dev/null
+++ b/packages/common2/src/components/Accordion/Accordion.tsx
@@ -0,0 +1,152 @@
+import React, { createContext, useContext, useState } from 'react'
+
+import { IconChevronUp } from '../Icon/icons/IconChevronUp'
+import styleHandler from '../../lib/theme/styleHandler'
+
+import * as RadixAccordion from '@radix-ui/react-accordion'
+import { IconChevronDown } from '../Icon/icons/IconChevronDown'
+import { Transition } from '@headlessui/react'
+
+// type ContextValue = Required<
+// Pick<AccordionProps, 'defaultActiveId' | 'icon' | 'iconPosition'>
+// > &
+// Pick<AccordionProps, 'onChange'>
+
+type Type = 'default' | 'bordered'
+type Size = 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+type Align = 'left' | 'right'
+
+interface ContextValue {
+ bordered?: boolean
+ type: Type
+ justified: Boolean
+ chevronAlign: Align
+ // currentItems: string[]
+}
+
+const AccordionContext = createContext<ContextValue>({
+ chevronAlign: 'left',
+ justified: true,
+ type: 'default',
+ // currentItems: [],
+})
+
+interface AccordionProps {
+ children?: React.ReactNode
+ className?: string
+ defaultActiveId?: (string | number)[]
+ icon?: React.ReactNode
+ iconPosition?: Align
+ bordered: boolean
+ onChange?: (item: string | string[]) => void
+ openBehaviour: 'single' | 'multiple'
+ type: Type
+ size: Size
+ defaultValue?: string | string[] | undefined
+ justified: Boolean
+ chevronAlign: Align
+}
+
+function Accordion({
+ children,
+ className,
+ defaultActiveId = [],
+ icon = <IconChevronUp strokeWidth={2} />,
+ iconPosition = 'right',
+ onChange,
+ openBehaviour = 'multiple',
+ type = 'default',
+ // size, // TO DO
+ defaultValue = undefined,
+ justified = true,
+ chevronAlign,
+}: AccordionProps) {
+ // const [currentItems, setCurrentItems] = useState(defaultValue || [])
+
+ const __styles = styleHandler('accordion')
+
+ let containerClasses = [__styles.variants[type].base]
+
+ if (className) {
+ containerClasses.push(className)
+ }
+
+ // let currentItems = defaultValue || []
+
+ const contextValue = {
+ chevronAlign,
+ justified,
+ type,
+ defaultValue,
+ }
+
+ function handleOnChange(e: string | string[]) {
+ if (onChange) onChange(e)
+ const value = e == typeof String ? e.split(' ') : e
+ // setCurrentItems(e)
+ console.log('about to change state')
+ // currentItems = e
+ // console.log('currentItems', currentItems)
+ }
+
+ return (
+ <>
+ {/* @ts-ignore */}
+ <RadixAccordion.Root
+ type={openBehaviour}
+ onValueChange={handleOnChange}
+ defaultValue={defaultValue}
+ className={containerClasses.join(' ')}
+ children={
+ <AccordionContext.Provider value={{ ...contextValue }}>
+ <div className={containerClasses.join(' ')}>{children}</div>
+ </AccordionContext.Provider>
+ }
+ ></RadixAccordion.Root>
+ </>
+ )
+}
+
+interface ItemProps {
+ children?: React.ReactNode
+ className?: string
+ header: React.ReactNode
+ id: string
+ icon?: React.ReactNode
+}
+
+export function Item({ children, className, header, id, icon }: ItemProps) {
+ const __styles = styleHandler('accordion')
+ // const [open, setOpen] = useState(false)
+
+ const {
+ type,
+ justified,
+ chevronAlign,
+ // currentItems,
+ // defaultActiveId, iconPosition, onChange
+ } = useContext(AccordionContext)
+
+ let triggerClasses = [__styles.variants[type].trigger]
+ if (justified) triggerClasses.push(__styles.justified)
+ if (className) triggerClasses.push(className)
+
+ let chevronClasses = [__styles.chevron.base, __styles.chevron.align[chevronAlign]]
+
+ // console.log('currentItems', currentItems)
+
+ return (
+ <RadixAccordion.Item value={id} className={__styles.variants[type].container}>
+ <RadixAccordion.Trigger className={triggerClasses.join(' ')}>
+ {header}
+ <IconChevronDown aria-hidden className={chevronClasses.join(' ')} strokeWidth={2} />
+ </RadixAccordion.Trigger>
+ <RadixAccordion.Content className={__styles.variants[type].content}>
+ <div className={__styles.variants[type].panel}>{children}</div>
+ </RadixAccordion.Content>
+ </RadixAccordion.Item>
+ )
+}
+
+Accordion.Item = Item
+export default Accordion
diff --git a/packages/common2/src/components/Accordion/index.tsx b/packages/common2/src/components/Accordion/index.tsx
new file mode 100644
index 00000000000..971fd8afcd7
--- /dev/null
+++ b/packages/common2/src/components/Accordion/index.tsx
@@ -0,0 +1 @@
+export { default as Accordion } from './Accordion'
diff --git a/packages/common2/src/components/Alert/Alert.module.css b/packages/common2/src/components/Alert/Alert.module.css
new file mode 100644
index 00000000000..4a061f9123c
--- /dev/null
+++ b/packages/common2/src/components/Alert/Alert.module.css
@@ -0,0 +1,63 @@
+/* .sbui-alert-container {
+ @apply rounded-md p-4;
+}
+
+.sbui-alert-container--danger {
+ @apply bg-red-600 bg-opacity-10 text-red-600;
+}
+
+.sbui-alert-container--warning {
+ @apply bg-yellow-600 bg-opacity-10 text-yellow-600;
+}
+
+.sbui-alert-container--info {
+ @apply bg-blue-600 bg-opacity-10 text-blue-600;
+}
+
+.sbui-alert-container--success {
+ @apply bg-green-600 bg-opacity-10 text-green-600;
+} */
+
+/* .sbui-alert-title {
+ @apply m-0 text-sm font-medium;
+}
+
+.sbui-alert-description {
+ @apply mt-2 text-sm;
+}
+
+.sbui-alert-description--danger {
+ @apply text-red-500;
+}
+
+.sbui-alert-description--warning {
+ @apply text-yellow-500;
+}
+
+.sbui-alert-description--info {
+ @apply text-blue-500;
+}
+
+.sbui-alert-description--success {
+ @apply text-green-500;
+}
+
+.sbui-close-button {
+ @apply cursor-pointer inline-flex transition ease-in-out duration-200 bg-transparent border-transparent rounded-md p-1.5 focus:outline-none;
+}
+
+.sbui-close-button--success {
+ @apply text-green-500 hover:bg-green-600 hover:bg-opacity-10;
+}
+
+.sbui-close-button--danger {
+ @apply text-red-500 hover:bg-red-600 hover:bg-opacity-10;
+}
+
+.sbui-close-button--warning {
+ @apply text-yellow-500 hover:bg-yellow-600 hover:bg-opacity-10;
+}
+
+.sbui-close-button--info {
+ @apply text-blue-500 hover:bg-blue-600 hover:bg-opacity-10;
+} */
diff --git a/packages/common2/src/components/Alert/Alert.stories.tsx b/packages/common2/src/components/Alert/Alert.stories.tsx
new file mode 100644
index 00000000000..566ef93eafa
--- /dev/null
+++ b/packages/common2/src/components/Alert/Alert.stories.tsx
@@ -0,0 +1,148 @@
+import React from 'react'
+
+import { Alert } from './../../index'
+
+// import ThemeProvider from '../../theme/themeContext'
+
+export default {
+ title: 'Displays/Alerts',
+ component: Alert,
+}
+
+export const Neutral = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const Success = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const SuccessWithIcon = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const Danger = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const DangerWithIcon = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const Info = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const InfoWithIcon = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const Warning = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const WarningWithIcon = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const Closable = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+export const WithAction = (args: any) => (
+ <Alert {...args}>
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet
+ labore.
+ </Alert>
+)
+
+Neutral.args = {
+ title: 'Success alert with icon',
+ withIcon: true,
+}
+
+Success.args = {
+ title: 'Success alert',
+ variant: 'success',
+}
+
+SuccessWithIcon.args = {
+ title: 'Success alert with icon',
+ variant: 'success',
+ withIcon: true,
+}
+
+Danger.args = {
+ title: 'Danger alert',
+ variant: 'danger',
+}
+
+DangerWithIcon.args = {
+ title: 'Danger alert with icon',
+ variant: 'danger',
+ withIcon: true,
+}
+
+Info.args = {
+ title: 'Info alert',
+ variant: 'info',
+}
+
+InfoWithIcon.args = {
+ title: 'Info alert with icon',
+ variant: 'info',
+ withIcon: true,
+}
+
+Warning.args = {
+ title: 'Warning alert',
+ variant: 'warning',
+}
+
+WarningWithIcon.args = {
+ title: 'Warning alert with icon',
+ variant: 'warning',
+ withIcon: true,
+}
+
+Closable.args = {
+ title: 'Closable alert',
+ closable: true,
+}
+
+WithAction.args = {
+ title: 'Alert with action',
+ variant: 'warning',
+ withIcon: true,
+ actions: <div>Hello</div>,
+}
diff --git a/packages/common2/src/components/Alert/Alert.test.js b/packages/common2/src/components/Alert/Alert.test.js
new file mode 100644
index 00000000000..e6fdee11169
--- /dev/null
+++ b/packages/common2/src/components/Alert/Alert.test.js
@@ -0,0 +1,67 @@
+import { fireEvent, render, screen } from '@testing-library/react'
+import Alert from './Alert'
+
+const VARIANTS = ['success', 'danger', 'warning', 'info']
+
+describe('#Alert', () => {
+ it('should render elements correctly', () => {
+ render(<Alert title="Required Title">{'Description'}</Alert>)
+ expect(screen.queryByText('Required Title')).toBeInTheDocument()
+ expect(screen.queryByText('Description')).toBeInTheDocument()
+ })
+
+ it('should add custom classes to container div', () => {
+ const { container } = render(
+ <Alert title="Required Title" className={'custom classes'}>
+ {'Description'}
+ </Alert>
+ )
+ expect(container.querySelector('div')).toHaveClass(
+ `sbui-alert-container sbui-alert-container--success custom classes`
+ )
+ })
+
+ it('should close alert when close button clicked', () => {
+ render(
+ <Alert title="Required Title" closable>
+ {'Description'}
+ </Alert>
+ )
+
+ const closeButton = screen.getByRole('button')
+
+ fireEvent.click(closeButton)
+
+ expect(screen.queryByText('Description')).not.toBeInTheDocument()
+ })
+
+ it('should render an icon when passed withIcon', () => {
+ const { container } = render(
+ <Alert title="Required Title" withIcon>
+ {'Description'}
+ </Alert>
+ )
+
+ expect(
+ container.querySelector('div.flex-shrink-0 > svg')
+ ).toBeInTheDocument()
+ })
+
+ it.each(VARIANTS)(
+ 'should have "sbui-alert-[container|description]--%s" class',
+ (variant) => {
+ const { container } = render(
+ <Alert title="Required Title" variant={variant}>
+ {'Description'}
+ </Alert>
+ )
+
+ expect(container.querySelector('div')).toHaveClass(
+ `sbui-alert-container sbui-alert-container--${variant}`
+ )
+ expect(screen.queryByText('Description')).toHaveClass(
+ `sbui-alert-description sbui-alert-description--${variant}`
+ )
+ }
+ )
+})
diff --git a/packages/common2/src/components/Alert/Alert.tsx b/packages/common2/src/components/Alert/Alert.tsx
new file mode 100644
index 00000000000..d5736e07a82
--- /dev/null
+++ b/packages/common2/src/components/Alert/Alert.tsx
@@ -0,0 +1,99 @@
+import React, { useState } from 'react'
+import { IconAlertTriangle } from '../Icon/icons/IconAlertTriangle'
+
+import { IconInfo } from '../Icon/icons/IconInfo'
+import { IconX } from '../Icon/icons/IconX'
+
+// @ts-ignore
+// import AlertStyles from './Alert.module.css'
+import styleHandler from '../../lib/theme/styleHandler'
+import { IconAlertOctagon } from '../Icon/icons/IconAlertOctagon'
+import { IconCheckCircle } from '../Icon/icons/IconCheckCircle'
+
+interface Props {
+ variant?: 'success' | 'danger' | 'warning' | 'info' | 'neutral'
+ className?: string
+ title: string
+ withIcon?: boolean
+ closable?: boolean
+ children?: React.ReactNode
+ icon?: React.ReactNode
+ actions?: React.ReactNode
+}
+
+const icons: Record<
+ 'success' | 'danger' | 'warning' | 'info' | 'neutral',
+ React.ReactElement
+> = {
+ danger: <IconAlertOctagon strokeWidth={1.5} size={18} />,
+ success: <IconCheckCircle strokeWidth={1.5} size={18} />,
+ warning: <IconAlertTriangle strokeWidth={1.5} size={18} />,
+ info: <IconInfo strokeWidth={1.5} size={18} />,
+ neutral: <></>,
+}
+
+function Alert({
+ variant = 'neutral',
+ className,
+ title,
+ withIcon,
+ closable,
+ children,
+ icon,
+ actions,
+}: Props) {
+ let __styles = styleHandler('alert')
+
+ const [visible, setVisible] = useState(true)
+
+ let containerClasses = [__styles.base]
+ containerClasses.push(__styles.variant[variant].base)
+
+ if (className) containerClasses.push(className)
+
+ let descriptionClasses = [
+ __styles.description,
+ __styles.variant[variant].description,
+ ]
+ let closeButtonClasses = [__styles.close]
+
+ return (
+ <>
+ {visible && (
+ <div className={containerClasses.join(' ')}>
+ {withIcon ? (
+ <div className={__styles.variant[variant].icon}>
+ {withIcon && icons[variant]}
+ </div>
+ ) : null}
+ {icon && icon}
+ <div className="flex flex-1 items-center justify-between">
+ <div>
+ <h3
+ className={[
+ __styles.variant[variant].header,
+ __styles.header,
+ ].join(' ')}
+ >
+ {title}
+ </h3>
+ <div className={descriptionClasses.join(' ')}>{children}</div>
+ </div>
+ {actions}
+ </div>
+ {closable && (
+ <button
+ aria-label="Close alert"
+ onClick={() => setVisible(false)}
+ className={closeButtonClasses.join(' ')}
+ >
+ <IconX strokeWidth={2} size={16} />
+ </button>
+ )}
+ </div>
+ )}
+ </>
+ )
+}
+
+export default Alert
diff --git a/packages/common2/src/components/Alert/index.tsx b/packages/common2/src/components/Alert/index.tsx
new file mode 100644
index 00000000000..fd2a1266021
--- /dev/null
+++ b/packages/common2/src/components/Alert/index.tsx
@@ -0,0 +1 @@
+export { default as Alert } from './Alert'
diff --git a/packages/common2/src/components/Auth/Auth.module.css b/packages/common2/src/components/Auth/Auth.module.css
new file mode 100644
index 00000000000..0480e55b4b5
--- /dev/null
+++ b/packages/common2/src/components/Auth/Auth.module.css
@@ -0,0 +1,7 @@
+.sbui-auth {
+ width: 100%;
+}
+
+.sbui-auth-label {
+ @apply block text-sm text-gray-700 dark:text-gray-200 font-medium;
+}
diff --git a/packages/common2/src/components/Auth/Auth.stories.tsx b/packages/common2/src/components/Auth/Auth.stories.tsx
new file mode 100644
index 00000000000..520332d28b8
--- /dev/null
+++ b/packages/common2/src/components/Auth/Auth.stories.tsx
@@ -0,0 +1,184 @@
+import React, { useState } from 'react'
+import { Auth } from './'
+import { createClient } from '@supabase/supabase-js'
+// @ts-ignore
+import { Typography, Button, Space } from '../../index'
+
+const supabase = createClient(
+ 'https://rsnibhkhsbfnncjmwnkj.supabase.co',
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxNTIxNDE1MywiZXhwIjoxOTMwNzkwMTUzfQ.OQEbAaTfgDdLCCht251P2JRD3QDnui6nsU8N-tZA_Mc'
+)
+
+export default {
+ title: 'Auth/Auth',
+ component: Auth,
+}
+
+const Container = (props: any) => {
+ const { user } = Auth.useUser()
+ if (user)
+ return (
+ <>
+ <Typography.Text>Signed in: {user.email}</Typography.Text>
+ <Button block onClick={() => props.supabaseClient.auth.signOut()}>
+ Sign out
+ </Button>
+ </>
+ )
+ return props.children
+}
+
+export const Default = (args: any) => (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+)
+export const withSocialAuth = (args: any) => (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+)
+export const withAllSocialAuth = (args: any) => (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+)
+export const withSocialLargeButtons = (args: any) => (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+)
+export const withColouredSocialAuth = (args: any) => (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+)
+export const withSocialAuthHorizontal = (args: any) => (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+)
+export const updatePassword = (args: any) => <Auth.UpdatePassword {...args} />
+
+export const ChangeViewState = (args: any) => {
+ const [view, setView] = useState<
+ 'sign_in' | 'sign_up' | 'forgotten_password' | 'magic_link'
+ >('sign_in')
+
+ return (
+ <div>
+ <Space>
+ <Button
+ type={view === 'sign_up' ? 'primary' : 'default'}
+ onClick={() => setView('sign_up')}
+ >
+ Sign up
+ </Button>
+ <Button
+ type={view === 'sign_in' ? 'primary' : 'default'}
+ onClick={() => setView('sign_in')}
+ >
+ Sign in
+ </Button>
+ <Button
+ type={view === 'forgotten_password' ? 'primary' : 'default'}
+ onClick={() => setView('forgotten_password')}
+ >
+ Forgotten password
+ </Button>
+ <Button
+ type={view === 'magic_link' ? 'primary' : 'default'}
+ onClick={() => setView('magic_link')}
+ >
+ Magic link
+ </Button>
+ </Space>
+ <Auth.UserContextProvider supabaseClient={supabase}>
+ <Container supabaseClient={supabase}>
+ <Auth supabaseClient={supabase} view={view} />
+ </Container>
+ </Auth.UserContextProvider>
+ </div>
+ )
+}
+
+Default.args = {
+ supabaseClient: supabase,
+}
+
+withSocialAuth.args = {
+ supabaseClient: supabase,
+ providers: ['facebook', 'google'],
+}
+
+withAllSocialAuth.args = {
+ supabaseClient: supabase,
+ providers: [
+ 'apple',
+ 'azure',
+ 'bitbucket',
+ 'discord',
+ 'facebook',
+ 'github',
+ 'gitlab',
+ 'google',
+ 'twitch',
+ 'twitter',
+ ],
+}
+
+withSocialLargeButtons.args = {
+ supabaseClient: supabase,
+ providers: [
+ 'apple',
+ 'azure',
+ 'bitbucket',
+ 'discord',
+ 'facebook',
+ 'github',
+ 'gitlab',
+ 'google',
+ 'twitch',
+ 'twitter',
+ ],
+ socialButtonSize: 'large',
+}
+
+withColouredSocialAuth.args = {
+ supabaseClient: supabase,
+ socialColors: true,
+ providers: [
+ 'apple',
+ 'azure',
+ 'bitbucket',
+ 'discord',
+ 'facebook',
+ 'github',
+ 'gitlab',
+ 'google',
+ 'twitch',
+ 'twitter',
+ ],
+}
+
+withSocialAuthHorizontal.args = {
+ supabaseClient: supabase,
+ providers: ['facebook', 'google'],
+ socialLayout: 'horizontal',
+}
+
+updatePassword.args = {
+ supabaseClient: supabase,
+}
diff --git a/packages/common2/src/components/Auth/Auth.tsx b/packages/common2/src/components/Auth/Auth.tsx
new file mode 100644
index 00000000000..f6251e8a18c
--- /dev/null
+++ b/packages/common2/src/components/Auth/Auth.tsx
@@ -0,0 +1,643 @@
+import React, { useEffect, useRef, useState } from 'react'
+import { SupabaseClient, Provider } from '@supabase/supabase-js'
+import {
+ Input,
+ Checkbox,
+ Button,
+ Space,
+ Typography,
+ Divider,
+ IconKey,
+ IconMail,
+ IconInbox,
+ IconLock,
+} from './../../index'
+import { UserContextProvider, useUser } from './UserContext'
+import * as SocialIcons from './Icons'
+// @ts-ignore
+import AuthStyles from './Auth.module.css'
+
+const VIEWS: ViewsMap = {
+ SIGN_IN: 'sign_in',
+ SIGN_UP: 'sign_up',
+ FORGOTTEN_PASSWORD: 'forgotten_password',
+ MAGIC_LINK: 'magic_link',
+ UPDATE_PASSWORD: 'update_password',
+}
+
+interface ViewsMap {
+ [key: string]: ViewType
+}
+
+type ViewType =
+ | 'sign_in'
+ | 'sign_up'
+ | 'forgotten_password'
+ | 'magic_link'
+ | 'update_password'
+
+type RedirectTo = undefined | string
+
+export interface Props {
+ supabaseClient: SupabaseClient
+ className?: string
+ children?: React.ReactNode
+ style?: React.CSSProperties
+ socialLayout?: 'horizontal' | 'vertical'
+ socialColors?: boolean
+ socialButtonSize?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ providers?: Provider[]
+ verticalSocialLayout?: any
+ view?: ViewType
+ redirectTo?: RedirectTo
+ onlyThirdPartyProviders?: boolean
+ magicLink?: boolean
+}
+
+function Auth({
+ supabaseClient,
+ className,
+ style,
+ socialLayout = 'vertical',
+ socialColors = false,
+ socialButtonSize = 'medium',
+ providers,
+ view = 'sign_in',
+ redirectTo,
+ onlyThirdPartyProviders = false,
+ magicLink = false,
+}: Props): JSX.Element | null {
+ const [authView, setAuthView] = useState(view)
+ const [defaultEmail, setDefaultEmail] = useState('')
+ const [defaultPassword, setDefaultPassword] = useState('')
+
+ const verticalSocialLayout = socialLayout === 'vertical' ? true : false
+
+ let containerClasses = [AuthStyles['sbui-auth']]
+ if (className) {
+ containerClasses.push(className)
+ }
+
+ const Container = (props: any) => (
+ <div className={containerClasses.join(' ')} style={style}>
+ <Space size={8} direction={'vertical'}>
+ <SocialAuth
+ supabaseClient={supabaseClient}
+ verticalSocialLayout={verticalSocialLayout}
+ providers={providers}
+ socialLayout={socialLayout}
+ socialButtonSize={socialButtonSize}
+ socialColors={socialColors}
+ redirectTo={redirectTo}
+ onlyThirdPartyProviders={onlyThirdPartyProviders}
+ magicLink={magicLink}
+ />
+ {!onlyThirdPartyProviders && props.children}
+ </Space>
+ </div>
+ )
+
+ useEffect(() => {
+ // handle view override
+ setAuthView(view)
+ }, [view])
+
+ switch (authView) {
+ case VIEWS.SIGN_IN:
+ case VIEWS.SIGN_UP:
+ return (
+ <Container>
+ <EmailAuth
+ id={authView === VIEWS.SIGN_UP ? 'auth-sign-up' : 'auth-sign-in'}
+ supabaseClient={supabaseClient}
+ authView={authView}
+ setAuthView={setAuthView}
+ defaultEmail={defaultEmail}
+ defaultPassword={defaultPassword}
+ setDefaultEmail={setDefaultEmail}
+ setDefaultPassword={setDefaultPassword}
+ redirectTo={redirectTo}
+ magicLink={magicLink}
+ />
+ </Container>
+ )
+ case VIEWS.FORGOTTEN_PASSWORD:
+ return (
+ <Container>
+ <ForgottenPassword
+ supabaseClient={supabaseClient}
+ setAuthView={setAuthView}
+ redirectTo={redirectTo}
+ />
+ </Container>
+ )
+
+ case VIEWS.MAGIC_LINK:
+ return (
+ <Container>
+ <MagicLink
+ supabaseClient={supabaseClient}
+ setAuthView={setAuthView}
+ redirectTo={redirectTo}
+ />
+ </Container>
+ )
+
+ case VIEWS.UPDATE_PASSWORD:
+ return (
+ <Container>
+ <UpdatePassword supabaseClient={supabaseClient} />
+ </Container>
+ )
+
+ default:
+ return null
+ }
+}
+
+function SocialAuth({
+ className,
+ style,
+ supabaseClient,
+ children,
+ socialLayout = 'vertical',
+ socialColors = false,
+ socialButtonSize,
+ providers,
+ verticalSocialLayout,
+ redirectTo,
+ onlyThirdPartyProviders,
+ magicLink,
+ ...props
+}: Props) {
+ const buttonStyles: any = {
+ azure: {
+ backgroundColor: '#008AD7',
+ color: 'white',
+ },
+ bitbucket: {
+ backgroundColor: '#205081',
+ color: 'white',
+ },
+ facebook: {
+ backgroundColor: '#4267B2',
+ color: 'white',
+ },
+ github: {
+ backgroundColor: '#333',
+ color: 'white',
+ },
+ gitlab: {
+ backgroundColor: '#FC6D27',
+ },
+ google: {
+ backgroundColor: '#ce4430',
+ color: 'white',
+ },
+ twitter: {
+ backgroundColor: '#1DA1F2',
+ color: 'white',
+ },
+ apple: {
+ backgroundColor: '#000',
+ color: 'white',
+ },
+ discord: {
+ backgroundColor: '#404fec',
+ color: 'white',
+ },
+ twitch: {
+ backgroundColor: '#9146ff',
+ color: 'white',
+ },
+ }
+ const [loading, setLoading] = useState(false)
+ const [error, setError] = useState('')
+
+ const handleProviderSignIn = async (provider: Provider) => {
+ setLoading(true)
+ const { error } = await supabaseClient.auth.signIn(
+ { provider },
+ { redirectTo }
+ )
+ if (error) setError(error.message)
+ setLoading(false)
+ }
+
+ return (
+ <Space size={8} direction={'vertical'}>
+ {providers && providers.length > 0 && (
+ <React.Fragment>
+ <Space size={4} direction={'vertical'}>
+ <Typography.Text
+ type="secondary"
+ className={AuthStyles['sbui-auth-label']}
+ >
+ Sign in with
+ </Typography.Text>
+ <Space size={2} direction={socialLayout}>
+ {providers.map((provider) => {
+ // @ts-ignore
+ const AuthIcon = SocialIcons[provider]
+ return (
+ <div
+ key={provider}
+ style={!verticalSocialLayout ? { flexGrow: 1 } : {}}
+ >
+ <Button
+ block
+ type="default"
+ shadow
+ size={socialButtonSize}
+ style={socialColors ? buttonStyles[provider] : {}}
+ icon={<AuthIcon />}
+ loading={loading}
+ onClick={() => handleProviderSignIn(provider)}
+ className="flex items-center"
+ >
+ {verticalSocialLayout && 'Sign up with ' + provider}
+ </Button>
+ </div>
+ )
+ })}
+ </Space>
+ </Space>
+ {!onlyThirdPartyProviders && <Divider>or continue with</Divider>}
+ </React.Fragment>
+ )}
+ </Space>
+ )
+}
+
+function EmailAuth({
+ authView,
+ defaultEmail,
+ defaultPassword,
+ id,
+ setAuthView,
+ setDefaultEmail,
+ setDefaultPassword,
+ supabaseClient,
+ redirectTo,
+ magicLink,
+}: {
+ authView: ViewType
+ defaultEmail: string
+ defaultPassword: string
+ id: 'auth-sign-up' | 'auth-sign-in'
+ setAuthView: any
+ setDefaultEmail: (email: string) => void
+ setDefaultPassword: (password: string) => void
+ supabaseClient: SupabaseClient
+ redirectTo?: RedirectTo
+ magicLink?: boolean
+}) {
+ const isMounted = useRef<boolean>(true)
+ const [email, setEmail] = useState(defaultEmail)
+ const [password, setPassword] = useState(defaultPassword)
+ const [rememberMe, setRememberMe] = useState(false)
+ const [error, setError] = useState('')
+ const [loading, setLoading] = useState(false)
+ const [message, setMessage] = useState('')
+
+ useEffect(() => {
+ setEmail(defaultEmail)
+ setPassword(defaultPassword)
+
+ return () => {
+ isMounted.current = false
+ }
+ }, [authView])
+
+ const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
+ e.preventDefault()
+ setError('')
+ setLoading(true)
+ switch (authView) {
+ case 'sign_in':
+ const { error: signInError } = await supabaseClient.auth.signIn(
+ {
+ email,
+ password,
+ },
+ { redirectTo }
+ )
+ if (signInError) setError(signInError.message)
+ break
+ case 'sign_up':
+ const { error: signUpError, data: signUpData } =
+ await supabaseClient.auth.signUp(
+ {
+ email,
+ password,
+ },
+ { redirectTo }
+ )
+ if (signUpError) setError(signUpError.message)
+ // checking if it has access_token to know if email verification is disabled
+ else if (signUpData?.hasOwnProperty('confirmation_sent_at'))
+ setMessage('Check your email for the confirmation link.')
+ break
+ }
+
+ /*
+ * it is possible the auth component may have been unmounted at this point
+ * check if component is mounted before setting a useState
+ */
+ if (isMounted.current) setLoading(false)
+ }
+
+ const handleViewChange = (newView: ViewType) => {
+ setDefaultEmail(email)
+ setDefaultPassword(password)
+ setAuthView(newView)
+ }
+
+ return (
+ <form id={id} onSubmit={handleSubmit}>
+ <Space size={6} direction={'vertical'}>
+ <Space size={3} direction={'vertical'}>
+ <Input
+ label="Email address"
+ autoComplete="email"
+ defaultValue={email}
+ icon={<IconMail size={21} stroke={'#666666'} />}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
+ setEmail(e.target.value)
+ }
+ />
+ <Input
+ label="Password"
+ type="password"
+ defaultValue={password}
+ autoComplete="current-password"
+ icon={<IconKey size={21} stroke={'#666666'} />}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
+ setPassword(e.target.value)
+ }
+ />
+ </Space>
+ <Space direction="vertical" size={6}>
+ <Space style={{ justifyContent: 'space-between' }}>
+ <Checkbox
+ label="Remember me"
+ name="remember_me"
+ id="remember_me"
+ onChange={(value: React.ChangeEvent<HTMLInputElement>) =>
+ setRememberMe(value.target.checked)
+ }
+ />
+ {authView === VIEWS.SIGN_IN && (
+ <Typography.Link
+ href="#auth-forgot-password"
+ onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
+ e.preventDefault()
+ setAuthView(VIEWS.FORGOTTEN_PASSWORD)
+ }}
+ >
+ Forgot your password?
+ </Typography.Link>
+ )}
+ </Space>
+ <Button
+ htmlType="submit"
+ type="primary"
+ size="large"
+ icon={<IconLock size={21} />}
+ loading={loading}
+ block
+ >
+ {authView === VIEWS.SIGN_IN ? 'Sign in' : 'Sign up'}
+ </Button>
+ </Space>
+ <Space direction="vertical" style={{ textAlign: 'center' }}>
+ {authView === VIEWS.SIGN_IN && magicLink && (
+ <Typography.Link
+ href="#auth-magic-link"
+ onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
+ e.preventDefault()
+ setAuthView(VIEWS.MAGIC_LINK)
+ }}
+ >
+ Sign in with magic link
+ </Typography.Link>
+ )}
+ {authView === VIEWS.SIGN_IN ? (
+ <Typography.Link
+ href="#auth-sign-up"
+ onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
+ e.preventDefault()
+ handleViewChange(VIEWS.SIGN_UP)
+ }}
+ >
+ Don't have an account? Sign up
+ </Typography.Link>
+ ) : (
+ <Typography.Link
+ href="#auth-sign-in"
+ onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
+ e.preventDefault()
+ handleViewChange(VIEWS.SIGN_IN)
+ }}
+ >
+ Do you have an account? Sign in
+ </Typography.Link>
+ )}
+ {message && <Typography.Text>{message}</Typography.Text>}
+ {error && <Typography.Text type="danger">{error}</Typography.Text>}
+ </Space>
+ </Space>
+ </form>
+ )
+}
+
+function MagicLink({
+ setAuthView,
+ supabaseClient,
+ redirectTo,
+}: {
+ setAuthView: any
+ supabaseClient: SupabaseClient
+ redirectTo?: RedirectTo
+}) {
+ const [email, setEmail] = useState('')
+ const [error, setError] = useState('')
+ const [message, setMessage] = useState('')
+ const [loading, setLoading] = useState(false)
+
+ const handleMagicLinkSignIn = async (e: React.FormEvent<HTMLFormElement>) => {
+ e.preventDefault()
+ setError('')
+ setMessage('')
+ setLoading(true)
+ const { error } = await supabaseClient.auth.signIn(
+ { email },
+ { redirectTo }
+ )
+ if (error) setError(error.message)
+ else setMessage('Check your email for the magic link')
+ setLoading(false)
+ }
+
+ return (
+ <form id="auth-magic-link" onSubmit={handleMagicLinkSignIn}>
+ <Space size={4} direction={'vertical'}>
+ <Space size={3} direction={'vertical'}>
+ <Input
+ label="Email address"
+ placeholder="Your email address"
+ icon={<IconMail size={21} stroke={'#666666'} />}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
+ setEmail(e.target.value)
+ }
+ />
+ <Button
+ block
+ size="large"
+ htmlType="submit"
+ icon={<IconInbox size={21} />}
+ loading={loading}
+ >
+ Send magic link
+ </Button>
+ </Space>
+ <Typography.Link
+ href="#auth-sign-in"
+ onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
+ e.preventDefault()
+ setAuthView(VIEWS.SIGN_IN)
+ }}
+ >
+ Sign in with password
+ </Typography.Link>
+ {message && <Typography.Text>{message}</Typography.Text>}
+ {error && <Typography.Text type="danger">{error}</Typography.Text>}
+ </Space>
+ </form>
+ )
+}
+
+function ForgottenPassword({
+ setAuthView,
+ supabaseClient,
+ redirectTo,
+}: {
+ setAuthView: any
+ supabaseClient: SupabaseClient
+ redirectTo?: RedirectTo
+}) {
+ const [email, setEmail] = useState('')
+ const [error, setError] = useState('')
+ const [message, setMessage] = useState('')
+ const [loading, setLoading] = useState(false)
+
+ const handlePasswordReset = async (e: React.FormEvent<HTMLFormElement>) => {
+ e.preventDefault()
+ setError('')
+ setMessage('')
+ setLoading(true)
+ const { error } = await supabaseClient.auth.api.resetPasswordForEmail(
+ email,
+ { redirectTo }
+ )
+ if (error) setError(error.message)
+ else setMessage('Check your email for the password reset link')
+ setLoading(false)
+ }
+
+ return (
+ <form id="auth-forgot-password" onSubmit={handlePasswordReset}>
+ <Space size={4} direction={'vertical'}>
+ <Space size={3} direction={'vertical'}>
+ <Input
+ label="Email address"
+ placeholder="Your email address"
+ icon={<IconMail size={21} stroke={'#666666'} />}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
+ setEmail(e.target.value)
+ }
+ />
+ <Button
+ block
+ size="large"
+ htmlType="submit"
+ icon={<IconInbox size={21} />}
+ loading={loading}
+ >
+ Send reset password instructions
+ </Button>
+ </Space>
+ <Typography.Link
+ href="#auth-sign-in"
+ onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
+ e.preventDefault()
+ setAuthView(VIEWS.SIGN_IN)
+ }}
+ >
+ Go back to sign in
+ </Typography.Link>
+ {message && <Typography.Text>{message}</Typography.Text>}
+ {error && <Typography.Text type="danger">{error}</Typography.Text>}
+ </Space>
+ </form>
+ )
+}
+
+function UpdatePassword({
+ supabaseClient,
+}: {
+ supabaseClient: SupabaseClient
+}) {
+ const [password, setPassword] = useState('')
+ const [error, setError] = useState('')
+ const [message, setMessage] = useState('')
+ const [loading, setLoading] = useState(false)
+
+ const handlePasswordReset = async (e: React.FormEvent<HTMLFormElement>) => {
+ e.preventDefault()
+ setError('')
+ setMessage('')
+ setLoading(true)
+ const { error } = await supabaseClient.auth.update({ password })
+ if (error) setError(error.message)
+ else setMessage('Your password has been updated')
+ setLoading(false)
+ }
+
+ return (
+ <form id="auth-update-password" onSubmit={handlePasswordReset}>
+ <Space size={4} direction={'vertical'}>
+ <Space size={3} direction={'vertical'}>
+ <Input
+ label="New password"
+ placeholder="Enter your new password"
+ type="password"
+ icon={<IconKey size={21} stroke={'#666666'} />}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
+ setPassword(e.target.value)
+ }
+ />
+ <Button
+ block
+ size="large"
+ htmlType="submit"
+ icon={<IconKey size={21} />}
+ loading={loading}
+ >
+ Update password
+ </Button>
+ </Space>
+ {message && <Typography.Text>{message}</Typography.Text>}
+ {error && <Typography.Text type="danger">{error}</Typography.Text>}
+ </Space>
+ </form>
+ )
+}
+
+Auth.ForgottenPassword = ForgottenPassword
+Auth.UpdatePassword = UpdatePassword
+Auth.MagicLink = MagicLink
+Auth.UserContextProvider = UserContextProvider
+Auth.useUser = useUser
+
+export default Auth
diff --git a/packages/common2/src/components/Auth/Icons.tsx b/packages/common2/src/components/Auth/Icons.tsx
new file mode 100644
index 00000000000..afabc1d48e5
--- /dev/null
+++ b/packages/common2/src/components/Auth/Icons.tsx
@@ -0,0 +1,236 @@
+import React from 'react'
+
+const size = 21
+
+export const google = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="google"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 488 512"
+ >
+ <path
+ fill="currentColor"
+ d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"
+ ></path>
+ </svg>
+)
+
+export const facebook = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="facebook-square"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"
+ ></path>
+ </svg>
+)
+
+export const twitter = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="twitter"
+ className="svg-inline--fa fa-twitter fa-w-16"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentColor"
+ d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"
+ ></path>
+ </svg>
+)
+
+export const apple = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="apple"
+ className="svg-inline--fa fa-apple fa-w-16"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentColor"
+ d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
+ ></path>
+ </svg>
+)
+
+export const github = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="github"
+ className="svg-inline--fa fa-github fa-w-16"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 496 512"
+ >
+ <path
+ fill="currentColor"
+ d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
+ ></path>
+ </svg>
+)
+
+export const gitlab = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="gitlab"
+ className="svg-inline--fa fa-gitlab fa-w-16"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentColor"
+ d="M105.2 24.9c-3.1-8.9-15.7-8.9-18.9 0L29.8 199.7h132c-.1 0-56.6-174.8-56.6-174.8zM.9 287.7c-2.6 8 .3 16.9 7.1 22l247.9 184-226.2-294zm160.8-88l94.3 294 94.3-294zm349.4 88l-28.8-88-226.3 294 247.9-184c6.9-5.1 9.7-14 7.2-22zM425.7 24.9c-3.1-8.9-15.7-8.9-18.9 0l-56.6 174.8h132z"
+ ></path>
+ </svg>
+)
+export const bitbucket = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="bitbucket"
+ className="svg-inline--fa fa-bitbucket fa-w-16"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentColor"
+ d="M22.2 32A16 16 0 0 0 6 47.8a26.35 26.35 0 0 0 .2 2.8l67.9 412.1a21.77 21.77 0 0 0 21.3 18.2h325.7a16 16 0 0 0 16-13.4L505 50.7a16 16 0 0 0-13.2-18.3 24.58 24.58 0 0 0-2.8-.2L22.2 32zm285.9 297.8h-104l-28.1-147h157.3l-25.2 147z"
+ ></path>
+ </svg>
+)
+
+export const discord = () => (
+ <svg
+ width={size}
+ height={size}
+ viewBox="0 0 71 55"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clipPath="url(#clip0)">
+ <path
+ d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"
+ fill="currentColor"
+ />
+ </g>
+ </svg>
+)
+
+export const azure = () => (
+ <svg
+ width={size}
+ height={size}
+ viewBox="0 0 96 96"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <defs>
+ <linearGradient
+ id="e399c19f-b68f-429d-b176-18c2117ff73c"
+ x1="-1032.172"
+ x2="-1059.213"
+ y1="145.312"
+ y2="65.426"
+ gradientTransform="matrix(1 0 0 -1 1075 158)"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop offset="0" stopColor="#fff"></stop>
+ <stop offset="1" stopColor="#fff"></stop>
+ </linearGradient>
+ <linearGradient
+ id="ac2a6fc2-ca48-4327-9a3c-d4dcc3256e15"
+ x1="-1023.725"
+ x2="-1029.98"
+ y1="108.083"
+ y2="105.968"
+ gradientTransform="matrix(1 0 0 -1 1075 158)"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop offset="0" stopOpacity=".3"></stop>
+ <stop offset=".071" stopOpacity=".2"></stop>
+ <stop offset=".321" stopOpacity=".1"></stop>
+ <stop offset=".623" stopOpacity=".05"></stop>
+ <stop offset="1" stopOpacity="0"></stop>
+ </linearGradient>
+ <linearGradient
+ id="a7fee970-a784-4bb1-af8d-63d18e5f7db9"
+ x1="-1027.165"
+ x2="-997.482"
+ y1="147.642"
+ y2="68.561"
+ gradientTransform="matrix(1 0 0 -1 1075 158)"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop offset="0" stopColor="#fff"></stop>
+ <stop offset="1" stopColor="#fff"></stop>
+ </linearGradient>
+ </defs>
+ <path
+ fill="url(#e399c19f-b68f-429d-b176-18c2117ff73c)"
+ d="M33.338 6.544h26.038l-27.03 80.087a4.152 4.152 0 0 1-3.933 2.824H8.149a4.145 4.145 0 0 1-3.928-5.47L29.404 9.368a4.152 4.152 0 0 1 3.934-2.825z"
+ ></path>
+ <path
+ fill="currentColor"
+ d="M71.175 60.261h-41.29a1.911 1.911 0 0 0-1.305 3.309l26.532 24.764a4.171 4.171 0 0 0 2.846 1.121h23.38z"
+ ></path>
+ <path
+ fill="currentColor"
+ d="M33.338 6.544a4.118 4.118 0 0 0-3.943 2.879L4.252 83.917a4.14 4.14 0 0 0 3.908 5.538h20.787a4.443 4.443 0 0 0 3.41-2.9l5.014-14.777 17.91 16.705a4.237 4.237 0 0 0 2.666.972H81.24L71.024 60.261l-29.781.007L59.47 6.544z"
+ ></path>
+ <path
+ fill="currentColor"
+ d="M66.595 9.364a4.145 4.145 0 0 0-3.928-2.82H33.648a4.146 4.146 0 0 1 3.928 2.82l25.184 74.62a4.146 4.146 0 0 1-3.928 5.472h29.02a4.146 4.146 0 0 0 3.927-5.472z"
+ ></path>
+ </svg>
+)
+
+export const twitch = () => (
+ <svg
+ width={size}
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="twitch"
+ className="svg-inline--fa fa-twitch fa-w-16"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill="currentColor"
+ d="M391.17,103.47H352.54v109.7h38.63ZM285,103H246.37V212.75H285ZM120.83,0,24.31,91.42V420.58H140.14V512l96.53-91.42h77.25L487.69,256V0ZM449.07,237.75l-77.22,73.12H294.61l-67.6,64v-64H140.14V36.58H449.07Z"
+ ></path>
+ </svg>
+)
diff --git a/packages/common2/src/components/Auth/UserContext.tsx b/packages/common2/src/components/Auth/UserContext.tsx
new file mode 100644
index 00000000000..bccc4875cf8
--- /dev/null
+++ b/packages/common2/src/components/Auth/UserContext.tsx
@@ -0,0 +1,50 @@
+import React, { useEffect, useState, createContext, useContext } from 'react'
+import { SupabaseClient, Session, User } from '@supabase/supabase-js'
+
+export interface AuthSession {
+ user: User | null
+ session: Session | null
+}
+
+const UserContext = createContext<AuthSession>({ user: null, session: null })
+
+export interface Props {
+ supabaseClient: SupabaseClient
+ [propName: string]: any
+}
+
+export const UserContextProvider = (props: Props) => {
+ const { supabaseClient } = props
+ const [session, setSession] = useState<Session | null>(
+ supabaseClient.auth.session()
+ )
+ const [user, setUser] = useState<User | null>(session?.user ?? null)
+
+ useEffect(() => {
+ const { data: authListener } = supabaseClient.auth.onAuthStateChange(
+ async (event, session) => {
+ setSession(session)
+ setUser(session?.user ?? null)
+ }
+ )
+
+ return () => {
+ authListener?.unsubscribe()
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [])
+
+ const value = {
+ session,
+ user,
+ }
+ return <UserContext.Provider value={value} {...props} />
+}
+
+export const useUser = () => {
+ const context = useContext(UserContext)
+ if (context === undefined) {
+ throw new Error(`useUser must be used within a UserContextProvider.`)
+ }
+ return context
+}
diff --git a/packages/common2/src/components/Auth/index.tsx b/packages/common2/src/components/Auth/index.tsx
new file mode 100644
index 00000000000..af7fcfc7cbc
--- /dev/null
+++ b/packages/common2/src/components/Auth/index.tsx
@@ -0,0 +1 @@
+export { default as Auth } from './Auth'
diff --git a/packages/common2/src/components/Avatar/Avatar.module.css b/packages/common2/src/components/Avatar/Avatar.module.css
new file mode 100644
index 00000000000..652b2bd74c2
--- /dev/null
+++ b/packages/common2/src/components/Avatar/Avatar.module.css
@@ -0,0 +1,65 @@
+.sbui-avatar {
+ @apply rounded-full;
+}
+
+.sbui-avatar-type-rounded {
+ border-radius: 10%;
+}
+
+.sbui-avatar-type-square {
+ border-radius: 0;
+}
+
+.sbui-avatar-image {
+ object-fit: 'contain';
+ border-radius: '50%';
+ height: 3rem;
+ width: 3rem;
+}
+
+.sbui-avatar-children {
+ @apply flex;
+ @apply justify-center;
+ @apply items-center
+}
+
+.sbui-avatar-icon {
+ @apply flex;
+ @apply justify-center;
+ @apply items-center;
+ background-color: cadetblue;
+ height: 3rem;
+ width: 3rem;
+}
+
+.sbui-avatar-text {
+ @apply flex;
+ @apply justify-center;
+ @apply items-center;
+ background-color: cadetblue;
+ float: left;
+ height: 3rem;
+ width: 3rem;
+}
+
+.sbui-avatar-fallback {
+ @apply flex;
+ @apply justify-center;
+ @apply items-center;
+ background-color: cadetblue;
+ height: 3rem;
+ width: 3rem;
+}
+
+.sbui-avatar-single {
+
+}
+
+.sbui-avatar-multiple {
+
+}
+
+.sbui-image-responsive {
+ width: 100%;
+ height: auto;
+}
diff --git a/packages/common2/src/components/Avatar/Avatar.stories.tsx b/packages/common2/src/components/Avatar/Avatar.stories.tsx
new file mode 100644
index 00000000000..95d28cdbb8c
--- /dev/null
+++ b/packages/common2/src/components/Avatar/Avatar.stories.tsx
@@ -0,0 +1,60 @@
+import React from 'react'
+import { IconAirplay } from '../Icon/icons/IconAirplay'
+
+import Avatar from './Avatar'
+
+export default {
+ title: 'General/Avatar',
+ component: Avatar,
+}
+
+export const Image = (args: any) => {
+ return (
+ <>
+ <Avatar {...args} />
+ </>
+ )
+}
+
+export const Text = (args: any) => {
+ return (
+ <>
+ <Avatar {...args} />
+ </>
+ )
+}
+
+export const Icon = (args: any) => {
+ return (
+ <>
+ <Avatar {...args} />
+ </>
+ )
+}
+
+export const Fallback = (args: any) => {
+ return (
+ <>
+ <Avatar {...args} />
+ </>
+ )
+}
+
+Image.args = {
+ active: true,
+ src: 'https://via.placeholder.com/150',
+}
+
+Text.args = {
+ active: true,
+ text: 'Shoury',
+}
+
+Icon.args = {
+ active: true,
+ Icon: IconAirplay,
+}
+
+Fallback.args = {
+ active: true,
+}
diff --git a/packages/common2/src/components/Avatar/Avatar.tsx b/packages/common2/src/components/Avatar/Avatar.tsx
new file mode 100644
index 00000000000..2c8714f8529
--- /dev/null
+++ b/packages/common2/src/components/Avatar/Avatar.tsx
@@ -0,0 +1,104 @@
+import React from 'react'
+import { Icon } from '../Icon/IconImportHandler'
+import { IconUser } from '../Icon/icons/IconUser'
+// @ts-ignore
+import AvatarStyles from './Avatar.module.css'
+
+interface Props {
+ children?: React.ReactNode
+ src?: string | undefined
+ style?: React.CSSProperties
+ className?: string
+ alt?: string
+ responsive?: boolean
+ text?: string
+ variant?: 'circle' | 'square'
+ AvatarIcon?: Icon
+ size: number
+}
+
+export default function Avatar({
+ src,
+ style,
+ className,
+ alt,
+ responsive,
+ text,
+ variant,
+ AvatarIcon,
+ size,
+ children,
+}: Props) {
+ const classes = [AvatarStyles['sbui-avatar']]
+ classes.push(className)
+ let objectToRender
+
+ const imageExist = () => {
+ const img = new Image()
+ img.src = src
+ if (img.complete) {
+ return true
+ } else {
+ img.onload = () => {
+ return true
+ }
+ img.onerror = () => {
+ return false
+ }
+ }
+ }
+
+ if (imageExist && src) {
+ classes.push(AvatarStyles['sbui-avatar-image'])
+ objectToRender = (
+ <img
+ className={classes.join(' ')}
+ src={src}
+ alt={alt}
+ style={{ height: size, width: size, ...style }}
+ />
+ )
+ } else if (AvatarIcon) {
+ classes.push(AvatarStyles['sbui-avatar-icon'])
+ objectToRender = (
+ <div
+ className={classes.join(' ')}
+ style={{ height: size, width: size, ...style }}
+ >
+ <AvatarIcon />
+ </div>
+ )
+ } else if (text) {
+ classes.push(AvatarStyles['sbui-avatar-text'])
+ objectToRender = (
+ <div
+ className={classes.join(' ')}
+ style={{ height: size, width: size, ...style }}
+ >
+ <p>{text[0]}</p>
+ </div>
+ )
+ } else if (children) {
+ classes.push(AvatarStyles['sbui-avatar-children'])
+ objectToRender = (
+ <div
+ className={classes.join(' ')}
+ style={{ height: size, width: size, ...style }}
+ >
+ {children}
+ </div>
+ )
+ } else {
+ classes.push(AvatarStyles['sbui-avatar-fallback'])
+ objectToRender = (
+ <div
+ className={classes.join(' ')}
+ style={{ height: size, width: size, ...style }}
+ >
+ <IconUser />
+ </div>
+ )
+ }
+
+ return <>{objectToRender}</>
+}
diff --git a/packages/common2/src/components/Avatar/index.tsx b/packages/common2/src/components/Avatar/index.tsx
new file mode 100644
index 00000000000..6383d3a6c94
--- /dev/null
+++ b/packages/common2/src/components/Avatar/index.tsx
@@ -0,0 +1 @@
+export { default as Image } from './Avatar'
diff --git a/packages/common2/src/components/Badge/Badge.module.css b/packages/common2/src/components/Badge/Badge.module.css
new file mode 100644
index 00000000000..38c8ed21ddf
--- /dev/null
+++ b/packages/common2/src/components/Badge/Badge.module.css
@@ -0,0 +1,43 @@
+/* .sbui-badge {
+ @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-500 bg-opacity-10 text-brand-800;
+}
+
+.sbui-badge--large {
+ @apply px-3 py-0.5 rounded-full text-sm;
+}
+
+.sbui-badge-dot {
+ @apply -ml-0.5 mr-1.5 h-2 w-2;
+}
+
+.sbui-badge--gray {
+ @apply bg-gray-600 bg-opacity-10 text-gray-500;
+}
+
+.sbui-badge--red {
+ @apply bg-red-600 bg-opacity-10 text-red-500;
+}
+
+.sbui-badge--yellow {
+ @apply bg-yellow-600 bg-opacity-10 text-yellow-500;
+}
+
+.sbui-badge--green {
+ @apply bg-green-600 bg-opacity-10 text-green-500;
+}
+
+.sbui-badge--blue {
+ @apply bg-blue-600 bg-opacity-10 text-blue-500;
+}
+
+.sbui-badge--indigo {
+ @apply bg-indigo-600 bg-opacity-10 text-indigo-500;
+}
+
+.sbui-badge--purple {
+ @apply bg-purple-600 bg-opacity-10 text-purple-500;
+}
+
+.sbui-badge--pink {
+ @apply bg-pink-600 bg-opacity-10 text-pink-500;
+} */
diff --git a/packages/common2/src/components/Badge/Badge.stories.tsx b/packages/common2/src/components/Badge/Badge.stories.tsx
new file mode 100644
index 00000000000..d27bcd12adc
--- /dev/null
+++ b/packages/common2/src/components/Badge/Badge.stories.tsx
@@ -0,0 +1,98 @@
+import { Badge } from './'
+
+export default {
+ title: 'Displays/Badge',
+ component: Badge,
+}
+
+const colors = [
+ 'brand',
+ 'scale',
+ 'tomato',
+ 'red',
+ 'crimson',
+ 'pink',
+ 'plum',
+ 'purple',
+ 'violet',
+ 'indigo',
+ 'blue',
+ 'cyan',
+ 'teal',
+ 'green',
+ 'grass',
+ 'brown',
+ 'orange',
+ 'sky',
+ 'mint',
+ 'lime',
+ 'yellow',
+ 'amber',
+ 'gold',
+ 'bronze',
+ 'gray',
+ 'mauve',
+ 'slate',
+ 'sage',
+ 'olive',
+ 'sand',
+]
+
+const sizes: string[] = ['small', 'large']
+
+export const Default = (args: any) => <Badge {...args}>Hello world</Badge>
+
+export const withColor = (args: any) => <Badge {...args}>Hello world</Badge>
+
+export const withDot = (args: any) => <Badge {...args}>Hello world</Badge>
+
+export const large = (args: any) => <Badge {...args}>Hello world</Badge>
+
+export const withDotLarge = (args: any) => <Badge {...args}>Hello world</Badge>
+
+export const withCustomClassNames = (args: any) => (
+ <Badge {...args}>Hello world</Badge>
+)
+
+export const allBadges = () => (
+ <>
+ <div className="flex flex-row gap-6 mx-auto my-4">
+ {sizes.map((size, sizeIndex) => (
+ <>
+ <h3 className="text-scale-900">{size}</h3>
+ <div className="flex flex-col gap-2">
+ {colors.map((x, colorIndex) => (
+ // @ts-ignore
+ <Badge size={sizes[sizeIndex]} color={colors[colorIndex]}>
+ Supabase
+ </Badge>
+ ))}
+ </div>
+ </>
+ ))}
+ </div>
+ </>
+)
+
+Default.args = {}
+
+withColor.args = {
+ color: 'red',
+}
+
+withDot.args = {
+ dot: true,
+}
+
+large.args = {
+ size: 'large',
+}
+
+withDotLarge.args = {
+ size: 'large',
+ dot: true,
+}
+
+withCustomClassNames.args = {
+ className: 'border-teal-100 border-2'
+}
diff --git a/packages/common2/src/components/Badge/Badge.test.js b/packages/common2/src/components/Badge/Badge.test.js
new file mode 100644
index 00000000000..9877cee4f60
--- /dev/null
+++ b/packages/common2/src/components/Badge/Badge.test.js
@@ -0,0 +1,55 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Badge from './Badge'
+
+const SIZES = ['small', 'large']
+const COLORS = [
+ 'gray',
+ 'red',
+ 'yellow',
+ 'green',
+ 'blue',
+ 'indigo',
+ 'purple',
+ 'pink'
+]
+
+describe('#Badge', () => {
+ it('should render component correctly', () => {
+ const wrapper = render(<Badge>Badge</Badge>)
+ expect(screen.getByText('Badge')).toBeInTheDocument()
+ expect(() => wrapper.unmount()).not.toThrow()
+ })
+
+ it('should render different text', () => {
+ const wrapper = render(<Badge>Badge</Badge>)
+ expect(screen.getByText('Badge')).toBeInTheDocument()
+ wrapper.rerender(<Badge>徽章</Badge>)
+ expect(screen.getByText('徽章')).toBeInTheDocument()
+ })
+
+ it('should render with dot', () => {
+ const wrapper = render(<Badge dot={true}>Badge</Badge>)
+ expect(screen.getByText('Badge')).toBeInTheDocument()
+ expect(() => wrapper.unmount()).not.toThrow()
+ })
+
+ it.each(COLORS)('should have %s color', (color) => {
+ render(<Badge color={color}>{color}</Badge>)
+ expect(screen.getByText(color)).toHaveClass(
+ `sbui-badge sbui-badge--${color}`
+ )
+ })
+
+ it.each(SIZES)('should render with %s size', (size) => {
+ render(<Badge size={size}>{size}</Badge>)
+ expect(screen.getByText(size)).toHaveClass(
+ `sbui-badge ${size === 'large' ? 'sbui-badge--large' : ''}`
+ )
+ })
+
+ it('should render with Classes',()=>{
+ render(<Badge className='border-2'>Badge</Badge>)
+ expect(screen.getByText('Badge')).toHaveClass('border-2')
+ })
+})
diff --git a/packages/common2/src/components/Badge/Badge.tsx b/packages/common2/src/components/Badge/Badge.tsx
new file mode 100644
index 00000000000..39f2d26318b
--- /dev/null
+++ b/packages/common2/src/components/Badge/Badge.tsx
@@ -0,0 +1,71 @@
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface Props {
+ color?:
+ | 'brand'
+ | 'scale'
+ | 'tomato'
+ | 'red'
+ | 'crimson'
+ | 'pink'
+ | 'plum'
+ | 'purple'
+ | 'violet'
+ | 'indigo'
+ | 'blue'
+ | 'cyan'
+ | 'teal'
+ | 'green'
+ | 'grass'
+ | 'brown'
+ | 'orange'
+ | 'sky'
+ | 'mint'
+ | 'lime'
+ | 'yellow'
+ | 'amber'
+ | 'gold'
+ | 'bronze'
+ | 'gray'
+ | 'mauve'
+ | 'slate'
+ | 'sage'
+ | 'olive'
+ | 'sand'
+ children: string | React.ReactNode
+ size?: 'large' | 'small'
+ dot?: boolean
+ className?: string
+}
+
+function Badge({ color = 'brand', children, size, dot, className }: Props) {
+ const __styles = styleHandler('badge')
+
+ let classes = [__styles.base]
+ if (color) {
+ classes.push(__styles.color[color])
+ }
+ if (size === 'large') {
+ classes.push(__styles.size.large)
+ }
+ if (className) {
+ classes.push(className)
+ }
+
+ return (
+ <span className={classes.join(' ')}>
+ {dot && (
+ <svg
+ className={`${__styles.dot} ${__styles.color[color]}`}
+ fill="currentColor"
+ viewBox="0 0 8 8"
+ >
+ <circle cx="4" cy="4" r="3" />
+ </svg>
+ )}
+
+ {children}
+ </span>
+ )
+}
+export default Badge
diff --git a/packages/common2/src/components/Badge/index.tsx b/packages/common2/src/components/Badge/index.tsx
new file mode 100644
index 00000000000..e69f9906a73
--- /dev/null
+++ b/packages/common2/src/components/Badge/index.tsx
@@ -0,0 +1 @@
+export { default as Badge } from './Badge'
diff --git a/packages/common2/src/components/Breadcrumb/Breadcrumb.module.css b/packages/common2/src/components/Breadcrumb/Breadcrumb.module.css
new file mode 100644
index 00000000000..60a6ec4e374
--- /dev/null
+++ b/packages/common2/src/components/Breadcrumb/Breadcrumb.module.css
@@ -0,0 +1,34 @@
+.sbui-breadcrumb--container {
+ @apply flex flex-row items-center;
+ @apply p-0 my-0;
+}
+
+.sbui-breadcrumb--item-container {
+ @apply flex items-center;
+}
+
+.sbui-breadcrumb--item {
+ @apply text-gray-500 hover:text-gray-600;
+ @apply cursor-pointer;
+ @apply dark:text-dark-200 dark:hover:text-brand-700;
+}
+
+.sbui-breadcrumb--item__active {
+ @apply text-brand-700 dark:text-brand-700;
+}
+
+.sbui-breadcrumb--separator {
+ @apply mx-2;
+ @apply text-gray-500 hover:text-gray-600;
+ @apply dark:text-dark-200 dark:hover:text-white;
+}
+
+.sbui-breadcrumb--separator-small {
+ @apply mx-2;
+}
+.sbui-breadcrumb--separator-medium {
+ @apply mx-4;
+}
+.sbui-breadcrumb--separator-large {
+ @apply mx-6;
+}
diff --git a/packages/common2/src/components/Breadcrumb/Breadcrumb.stories.tsx b/packages/common2/src/components/Breadcrumb/Breadcrumb.stories.tsx
new file mode 100644
index 00000000000..383d58ee629
--- /dev/null
+++ b/packages/common2/src/components/Breadcrumb/Breadcrumb.stories.tsx
@@ -0,0 +1,22 @@
+import React from 'react'
+import { Breadcrumb } from '../Breadcrumb'
+import { Textarea } from '../Textarea'
+import Typography from '../Typography'
+
+export default {
+ title: 'Navigation/Breadcrumb',
+ component: Breadcrumb,
+}
+
+export const Default = ({ children, ...args }) => (
+ <Breadcrumb {...args}>{children}</Breadcrumb>
+)
+
+Default.args = {
+ children: [
+ <Breadcrumb.Item>Brothers</Breadcrumb.Item>,
+ <Breadcrumb.Item>Grimm</Breadcrumb.Item>,
+ <Breadcrumb.Item active>Hansel</Breadcrumb.Item>,
+ <Breadcrumb.Item>Gretel</Breadcrumb.Item>,
+ ],
+}
diff --git a/packages/common2/src/components/Breadcrumb/Breadcrumb.test.js b/packages/common2/src/components/Breadcrumb/Breadcrumb.test.js
new file mode 100644
index 00000000000..2f5646af7e2
--- /dev/null
+++ b/packages/common2/src/components/Breadcrumb/Breadcrumb.test.js
@@ -0,0 +1,25 @@
+import React from from 'react';
+import { render, screen } from '@testing-library/react';
+import Breadcrumb from './Breadcrumb';
+
+describe('#Breadcrumb', () => {
+ it('should render breadcrumb correctly', async () => {
+ render(
+ <Breadcrumb data-testid="breadcrumb">
+ <p> Item 1 </p>
+ <p> Item 2 </p>
+ </Breadcrumb>
+ )
+ expect(screen.queryByTestId('breadcrumb')).toBeInTheDocument()
+ })
+
+ it('should have "breadcrumb--item" class', () => {
+ render(
+ <Breadcrumb data-testid="breadcrumb">
+ <p> Item 1 </p>
+ <p> Item 2 </p>
+ </Breadcrumb>
+ )
+ expect(screen.queryByTestId('breadcrumb')).toHaveClass('.sbui-breadcrumb--item ')
+ })
+})
diff --git a/packages/common2/src/components/Breadcrumb/Breadcrumb.tsx b/packages/common2/src/components/Breadcrumb/Breadcrumb.tsx
new file mode 100644
index 00000000000..c4c6c128777
--- /dev/null
+++ b/packages/common2/src/components/Breadcrumb/Breadcrumb.tsx
@@ -0,0 +1,71 @@
+import { IconChevronRight } from '../Icon/icons/IconChevronRight'
+// @ts-ignore
+import BreadcrumbStyle from './Breadcrumb.module.css'
+
+interface Props {
+ children?: [React.ReactNode]
+ className?: string
+ style?: React.CSSProperties
+ spacing?: 'small' | 'medium' | 'large'
+}
+
+const Breadcrumb = ({
+ className,
+ style,
+ children,
+ spacing = 'small',
+}: Props) => {
+ let classes = [BreadcrumbStyle['sbui-breadcrumb--container']]
+ let seperatorClasses = [BreadcrumbStyle['sbui-breadcrumb--separator']]
+
+ if (className) {
+ classes.push(className)
+ }
+
+ if (spacing) {
+ seperatorClasses.push(`sbui-breadcrumb--separator-${spacing}`)
+ }
+
+ return (
+ <ol className={classes.join(' ')} style={style} aria-label="Breadcrumb">
+ {children!.map((child: React.ReactNode, idx: number) => (
+ <li className={BreadcrumbStyle['sbui-breadcrumb--item-container']}>
+ {child}
+ {idx + 1 < children!.length && (
+ <IconChevronRight
+ size={12}
+ className={seperatorClasses.join(' ')}
+ aria-hidden="true"
+ />
+ )}
+ </li>
+ ))}
+ </ol>
+ )
+}
+
+interface ItemProps {
+ children: React.ReactNode
+ active?: boolean
+ onClick?: any
+ style?: React.CSSProperties
+}
+
+export function Item({ children, active, onClick, style }: ItemProps) {
+ let classes = [BreadcrumbStyle['sbui-breadcrumb--item']]
+ if (active) classes.push(BreadcrumbStyle['sbui-breadcrumb--item__active'])
+ return (
+ <span
+ className={classes.join(' ')}
+ onClick={onClick}
+ style={style}
+ aria-current={active ? 'page' : false}
+ >
+ {children}
+ </span>
+ )
+}
+
+Breadcrumb.Item = Item
+
+export default Breadcrumb
diff --git a/packages/common2/src/components/Breadcrumb/index.tsx b/packages/common2/src/components/Breadcrumb/index.tsx
new file mode 100644
index 00000000000..29b136a967f
--- /dev/null
+++ b/packages/common2/src/components/Breadcrumb/index.tsx
@@ -0,0 +1 @@
+export { default as Breadcrumb } from './Breadcrumb'
diff --git a/packages/common2/src/components/Button/Button.module.css b/packages/common2/src/components/Button/Button.module.css
new file mode 100644
index 00000000000..8c4d9b48a9a
--- /dev/null
+++ b/packages/common2/src/components/Button/Button.module.css
@@ -0,0 +1,156 @@
+/* .sbui-btn-container {
+ @apply inline-flex font-medium;
+} */
+
+/* .sbui-btn {
+ @apply relative cursor-pointer inline-flex items-center space-x-2 text-center border border-solid border-transparent transition ease-out duration-200 outline-none;
+ @apply rounded;
+ font-family: inherit;
+ font-weight: inherit;
+} */
+
+/* .sbui-btn:focus {
+ @apply outline-none;
+} */
+
+/* .sbui-btn-container--shadow {
+ box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
+} */
+
+/* .sbui-btn--w-full {
+ @apply w-full flex items-center justify-center;
+} */
+
+/* .sbui-btn:disabled {
+ @apply opacity-75 cursor-not-allowed;
+ pointer-events: none;
+} */
+
+/*
+ Button sizes
+*/
+
+.sbui-btn--tiny {
+ @apply px-2.5 py-1.5 text-xs;
+}
+.sbui-btn--small {
+ @apply px-3 py-2 text-sm leading-4;
+}
+.sbui-btn--medium {
+ @apply px-4 py-2 text-sm;
+}
+.sbui-btn--large {
+ @apply px-4 py-2 text-base;
+}
+.sbui-btn--xlarge {
+ @apply px-6 py-3 text-base;
+}
+
+/*
+ Button varients
+*/
+/* .sbui-btn-primary {
+ @apply text-white bg-brand-800 hover:bg-brand-600;
+ @apply dark:hover:bg-brand-900;
+} */
+.dark .sbui-btn-primary {
+ text-shadow: 0px 0px 4px rgba(38 111 78 / 50%);
+}
+
+/* .sbui-btn-default {
+ @apply text-gray-500 bg-white border-gray-200 hover:text-gray-600;
+ @apply hover:bg-white hover:border-gray-200;
+
+ @apply dark:border-gray-600 dark:bg-gray-600 dark:text-dark-200;
+ @apply dark:hover:bg-gray-700;
+} */
+.dark .sbui-btn-default {
+ text-shadow: 0px 0px 4px rgba(31 31 31 / 50%);
+}
+/*
+.sbui-btn-secondary {
+ @apply text-gray-600 bg-gray-200;
+ @apply hover:text-gray-700 hover:bg-gray-300;
+
+ @apply dark:text-gray-300 dark:bg-gray-500;
+ @apply dark:hover:bg-gray-600;
+} */
+.dark .sbui-btn-secondary {
+ text-shadow: 0px 0px 4px rgba(42 42 42 / 50%);
+}
+
+/* .sbui-btn-outline {
+ @apply border text-gray-500 bg-transparent border-gray-200 border-solid hover:bg-white hover:text-gray-600 hover:border-gray-600 dark:text-white dark:border-dark-400 dark:hover:text-dark-600 dark:hover:border-white;
+} */
+/* .sbui-btn-dashed {
+ @apply border text-gray-500 bg-transparent border-gray-200 border-dashed hover:text-gray-600 hover:border-gray-600;
+ @apply dark:text-white dark:border-dark-400 dark:hover:text-white dark:hover:border-white;
+} */
+/* .sbui-btn-link {
+ @apply bg-transparent text-brand-800 border-none hover:bg-brand-900 hover:bg-opacity-25;
+ box-shadow: none;
+} */
+/* .sbui-btn-text {
+ @apply text-gray-400 bg-transparent border-none hover:bg-gray-200 hover:bg-opacity-25;
+ @apply dark:text-dark-300 dark:hover:bg-dark-600;
+ box-shadow: none;
+} */
+
+/* .sbui-btn--danger {
+ @apply border-red-500 text-red-500;
+ @apply dark:border-red-500 dark:text-red-500;
+} */
+
+/* .dark .sbui-btn--danger {
+ text-shadow: 0px 0px 4px rgba(229, 62, 62 / 50%);
+}
+
+.sbui-btn-primary.sbui-btn--danger {
+ @apply bg-red-500 text-white;
+ @apply hover:bg-red-600 hover:border-red-600;
+}
+.sbui-btn-default.sbui-btn--danger,
+.sbui-btn-secondary.sbui-btn--danger,
+.sbui-btn-outline.sbui-btn--danger,
+.sbui-btn-dashed.sbui-btn--danger,
+.sbui-btn-link.sbui-btn--danger,
+.sbui-btn-text.sbui-btn--danger {
+ @apply hover:bg-red-600 hover:text-white hover:border-red-600;
+} */
+/* {
+ @apply hover:bg-red-600 hover:text-white hover:border-red-600;
+} */
+
+/*
+ Animation for icon
+*/
+/* .sbui-btn--anim--spin {
+ @apply animate-spin;
+} */
+
+/* @keyframes spin {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+} */
+
+/* .sbui-btn-loader--center {
+ position: absolute;
+
+ top: 50%;
+ left: 50%;
+ right: 50%;
+ bottom: 50%;
+ transform: translate(-50%, -50%);
+ margin: auto 0;
+
+ width: inherit;
+ height: inherit;
+}
+
+.sbui-btn--text-fade-out span {
+ @apply opacity-0;
+} */
diff --git a/packages/common2/src/components/Button/Button.stories.tsx b/packages/common2/src/components/Button/Button.stories.tsx
new file mode 100644
index 00000000000..a65e2eefe74
--- /dev/null
+++ b/packages/common2/src/components/Button/Button.stories.tsx
@@ -0,0 +1,260 @@
+// import React, { useRef, useState } from 'react'
+// import defaultTheme from '../../theme/defaultTheme'
+// import { ThemeProvider } from './../ThemeProvider'
+// import customThemeExample from '../../lib/theme/customThemeExample'
+
+import { useRef, useState } from 'react'
+import { Button, IconPackage, IconChevronRight } from './../../index'
+
+export default {
+ title: 'General/Button',
+ component: Button,
+}
+
+export const Default = (args: any) => <Button {...args}>Button text</Button>
+export const withStyles = (args: any) => <Button {...args}>Button text</Button>
+export const withIcon = (args: any) => <Button {...args}>Button text</Button>
+export const withIconRight = (args: any) => (
+ <Button {...args}>Button text</Button>
+)
+export const withBlock = (args: any) => <Button {...args}>Button text</Button>
+export const withOnlyIcon = (args: any) => <Button {...args} />
+export const withOnlyLoading = (args: any) => <Button {...args} />
+export const withLoadingCentered = (args: any) => (
+ <Button {...args}>Loading icon is centered</Button>
+)
+export const withRef = () => {
+ const buttonRef = useRef(null)
+ const [msg, setMsg] = useState('Click button to console.log Ref')
+
+ function onClick() {
+ const message = `button:${buttonRef?.current} `
+ setMsg(message)
+ // console.log(message)
+ }
+
+ return (
+ <>
+ <Button ref={buttonRef} onClick={onClick}>
+ Button with forwardRef
+ </Button>
+
+ <p style={{ color: '#666666' }}>{msg}</p>
+ </>
+ )
+}
+export const allButtons = (args: any) => (
+ <>
+ <div className="flex flex-col space-y-4">
+ <div className="flex space-x-4">
+ <Button {...args} size="tiny">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="default">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="secondary">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="alternative">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="link">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="text">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="dashed">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="outline">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="danger">
+ Button text
+ </Button>
+ <Button {...args} size="tiny" type="warning">
+ Button text
+ </Button>
+ </div>
+
+ <div className="flex space-x-4">
+ <Button {...args} size="small">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="default">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="secondary">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="alternative">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="link">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="text">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="dashed">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="outline">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="danger">
+ Button text
+ </Button>
+ <Button {...args} size="small" type="warning">
+ Button text
+ </Button>
+ </div>
+ <div className="flex space-x-4">
+ <Button {...args} size="medium">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="default">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="secondary">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="alternative">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="link">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="text">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="dashed">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="outline">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="danger">
+ Button text
+ </Button>
+ <Button {...args} size="medium" type="warning">
+ Button text
+ </Button>
+ </div>
+ <div className="flex space-x-4">
+ <Button {...args} size="large">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="default">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="secondary">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="alternative">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="link">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="text">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="dashed">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="outline">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="danger">
+ Button text
+ </Button>
+ <Button {...args} size="large" type="warning">
+ Button text
+ </Button>
+ </div>
+ <div className="flex space-x-4">
+ <Button {...args} size="xlarge">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="default">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="secondary">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="alternative">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="link">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="text">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="dashed">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="outline">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="danger">
+ Button text
+ </Button>
+ <Button {...args} size="xlarge" type="warning">
+ Button text
+ </Button>
+ </div>
+ </div>
+ </>
+)
+
+export const withCustomTag = (args: any) => (
+ <Button {...args}>Button text</Button>
+)
+
+const icon = <IconPackage />
+
+withIcon.args = {
+ type: 'primary',
+ icon: icon,
+}
+
+withIconRight.args = {
+ type: 'primary',
+ iconRight: <IconChevronRight strokeWidth={2} />,
+}
+
+withStyles.args = {
+ type: 'primary',
+ style: { backgroundColor: 'red', color: 'yellow' },
+}
+
+withBlock.args = {
+ type: 'primary',
+ block: true,
+}
+
+withOnlyIcon.args = {
+ icon: icon,
+}
+
+withOnlyLoading.args = {
+ loading: true,
+}
+
+withLoadingCentered.args = {
+ loading: true,
+ loadingCentered: true,
+}
+
+allButtons.args = {
+ loading: false,
+ danger: false,
+}
+
+withCustomTag.args = {
+ as: 'span',
+}
diff --git a/packages/common2/src/components/Button/Button.test.js b/packages/common2/src/components/Button/Button.test.js
new file mode 100644
index 00000000000..0b8dd6e4fe7
--- /dev/null
+++ b/packages/common2/src/components/Button/Button.test.js
@@ -0,0 +1,87 @@
+import React from 'react'
+import { render, screen, fireEvent } from '@testing-library/react'
+import Button from './Button'
+
+const SIZES = ['tiny', 'small', 'medium', 'large', 'xlarge']
+const TYPES = [
+ 'primary',
+ 'default',
+ 'secondary',
+ 'outline',
+ 'dashed',
+ 'link',
+ 'text',
+]
+
+describe('#Button', () => {
+ it('should render button correctly', () => {
+ const wrapper = render(<Button>Button</Button>)
+ expect(wrapper.getByText('Button')).toBeInTheDocument()
+ expect(() => wrapper.unmount()).not.toThrow()
+ })
+
+ it('should render different text', () => {
+ const wrapper = render(<Button>Button</Button>)
+ expect(screen.getByText('Button')).toBeInTheDocument()
+ wrapper.rerender(<Button>按钮</Button>)
+ expect(screen.getByText('按钮')).toBeInTheDocument()
+ })
+
+ it('should ignore events when disabled', () => {
+ const WrapperButton = () => {
+ const [state, setState] = React.useState('state1')
+ return (
+ <Button disabled onClick={() => setState('state2')}>
+ {state}
+ </Button>
+ )
+ }
+ render(<WrapperButton />)
+ expect(screen.getByText('state1')).toBeInTheDocument()
+ fireEvent.click(screen.getByText('state1'))
+ expect(screen.getByText('state1')).toBeInTheDocument()
+ expect(screen.queryByText('state2')).not.toBeInTheDocument()
+ })
+
+ it('should ignore events when loading', () => {
+ const WrapperButton = () => {
+ const [state, setState] = React.useState('state1')
+ return (
+ <Button loading onClick={() => setState('state2')}>
+ {state}
+ </Button>
+ )
+ }
+ render(<WrapperButton />)
+ fireEvent.click(screen.getByText('state1'))
+ expect(screen.queryByText('state2')).not.toBeInTheDocument()
+ })
+
+ it('should have "w-full" class', async () => {
+ render(<Button block>Button Block</Button>)
+ expect(screen.queryByRole('button')).toHaveClass(
+ 'sbui-btn sbui-btn-primary sbui-btn--w-full sbui-btn-container--shadow sbui-btn--tiny'
+ )
+ })
+
+ it.each(TYPES)('should have "btn--%s" class', (type) => {
+ render(<Button type={type}>Button Variant</Button>)
+
+ if (type !== 'text' && type !== 'link') {
+ expect(screen.queryByRole('button')).toHaveClass(
+ `sbui-btn sbui-btn-${type} sbui-btn-container--shadow sbui-btn--tiny`
+ )
+ } else {
+ expect(screen.queryByRole('button')).toHaveClass(
+ `sbui-btn sbui-btn-${type} sbui-btn--tiny`
+ )
+ }
+ })
+
+ it.each(SIZES)('should have "btn--%s" class', (size) => {
+ render(<Button size={size}>Button</Button>)
+ expect(screen.queryByRole('button')).toHaveClass(
+ `sbui-btn sbui-btn-primary sbui-btn-container--shadow sbui-btn--${size}`
+ )
+ })
+})
diff --git a/packages/common2/src/components/Button/Button.tsx b/packages/common2/src/components/Button/Button.tsx
new file mode 100644
index 00000000000..0cd34064c8f
--- /dev/null
+++ b/packages/common2/src/components/Button/Button.tsx
@@ -0,0 +1,171 @@
+import React, { forwardRef, useRef, useImperativeHandle } from 'react'
+import { IconContext } from './../Icon/IconContext'
+import { IconLoader } from './../Icon/icons/IconLoader'
+
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
+ block?: boolean
+ className?: string
+ children?: React.ReactNode
+ disabled?: boolean
+ onClick?: React.MouseEventHandler<HTMLButtonElement>
+ icon?: React.ReactNode
+ iconRight?: React.ReactNode
+ loading?: boolean
+ loadingCentered?: boolean
+ shadow?: boolean
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ style?: React.CSSProperties
+ type?:
+ | 'primary'
+ | 'default'
+ | 'secondary'
+ | 'alternative'
+ | 'outline'
+ | 'dashed'
+ | 'link'
+ | 'text'
+ | 'danger'
+ | 'warning'
+ danger?: boolean
+ htmlType?: 'button' | 'submit' | 'reset'
+ ref?: any
+ ariaSelected?: boolean
+ ariaControls?: string
+ tabIndex?: 0 | -1
+ role?: string
+ textAlign?: 'left' | 'center' | 'right'
+ as?: keyof JSX.IntrinsicElements
+ form?: string
+}
+
+interface CustomButtonProps extends React.HTMLAttributes<HTMLButtonElement> {}
+
+interface RefHandle {
+ // container: () => HTMLElement | null
+ button: () => HTMLButtonElement | null
+}
+
+export const Button = forwardRef<RefHandle, ButtonProps>(
+ (
+ {
+ block,
+ className,
+ children,
+ danger,
+ disabled = false,
+ onClick,
+ icon,
+ iconRight,
+ loading = false,
+ loadingCentered = false,
+ shadow = true,
+ size = 'tiny',
+ style,
+ type = 'primary',
+ htmlType = 'button',
+ ariaSelected,
+ ariaControls,
+ tabIndex,
+ role,
+ as,
+ textAlign = 'center',
+ ...props
+ }: ButtonProps,
+ ref
+ ) => {
+ // button ref
+ // const containerRef = useRef<HTMLElement>(null)
+ const buttonRef = useRef<HTMLButtonElement>(null)
+
+ useImperativeHandle(ref, () => ({
+ button: () => {
+ return buttonRef.current
+ },
+ }))
+
+ let __styles = styleHandler('button')
+
+ // styles
+ const showIcon = loading || icon
+
+ let classes = [__styles.base]
+ let containerClasses = [__styles.container]
+
+ classes.push(__styles.type[type])
+
+ if (block) {
+ containerClasses.push(__styles.block)
+ classes.push(__styles.block)
+ }
+
+ if (shadow && type !== 'link' && type !== 'text') {
+ classes.push(__styles.shadow)
+ }
+
+ if (size) {
+ classes.push(__styles.size[size])
+ }
+
+ if (className) {
+ classes.push(className)
+ }
+
+ if (disabled) {
+ classes.push(__styles.disabled)
+ }
+
+ const iconLoaderClasses = [__styles.loading]
+
+ // custom button tag
+ const CustomButton: React.FC<CustomButtonProps> = ({ ...props }) => {
+ const Tag = as as keyof JSX.IntrinsicElements
+ return <Tag {...props} />
+ }
+
+ const buttonContent = (
+ <>
+ {showIcon &&
+ (loading ? (
+ <IconLoader size={size} className={iconLoaderClasses.join(' ')} />
+ ) : icon ? (
+ <IconContext.Provider value={{ contextSize: size }}>{icon}</IconContext.Provider>
+ ) : null)}
+ {children && <span className={__styles.label}>{children}</span>}
+ {iconRight && !loading && (
+ <IconContext.Provider value={{ contextSize: size }}>{iconRight}</IconContext.Provider>
+ )}
+ </>
+ )
+
+ if (as) {
+ return (
+ <CustomButton {...props} className={classes.join(' ')} onClick={onClick} style={style}>
+ {buttonContent}
+ </CustomButton>
+ )
+ } else {
+ return (
+ // <span ref={containerRef} className={containerClasses.join(' ')}>
+ <button
+ {...props}
+ ref={buttonRef}
+ className={classes.join(' ')}
+ disabled={loading || (disabled && true)}
+ onClick={onClick}
+ style={style}
+ type={htmlType}
+ aria-selected={ariaSelected}
+ aria-controls={ariaControls}
+ tabIndex={tabIndex}
+ role={role}
+ form={props.form}
+ >
+ {buttonContent}
+ </button>
+ // </span>
+ )
+ }
+ }
+)
diff --git a/packages/common2/src/components/Button/index.tsx b/packages/common2/src/components/Button/index.tsx
new file mode 100644
index 00000000000..8486fd6d62d
--- /dev/null
+++ b/packages/common2/src/components/Button/index.tsx
@@ -0,0 +1 @@
+export * from './Button'
diff --git a/packages/common2/src/components/Card/Card.module.css b/packages/common2/src/components/Card/Card.module.css
new file mode 100644
index 00000000000..680cbf7bef9
--- /dev/null
+++ b/packages/common2/src/components/Card/Card.module.css
@@ -0,0 +1,27 @@
+.sbui-card {
+ @apply flex flex-col bg-white dark:bg-dark-700 rounded-md shadow-lg overflow-hidden relative;
+
+ border: 1px solid #e0e0e0;
+}
+
+.sbui-card--hoverable {
+ @apply transition transform hover:-translate-y-1 hover:shadow-2xl;
+}
+
+.dark .sbui-card {
+ border: 1px solid #2a2a2a;
+}
+
+.sbui-card-head {
+ @apply px-8 py-6 flex justify-between;
+
+ border-bottom: 1px solid #e0e0e0;
+}
+
+.dark .sbui-card-head {
+ border-bottom: 1px solid #2a2a2a;
+}
+
+.sbui-card-content {
+ @apply p-8;
+}
diff --git a/packages/common2/src/components/Card/Card.stories.tsx b/packages/common2/src/components/Card/Card.stories.tsx
new file mode 100644
index 00000000000..36fd25b1945
--- /dev/null
+++ b/packages/common2/src/components/Card/Card.stories.tsx
@@ -0,0 +1,61 @@
+import React from 'react'
+import Typography from '../Typography'
+// import { AutoForm } from 'uniforms'
+
+import { Card } from './'
+
+export default {
+ title: 'Displays/Card',
+ component: Card,
+}
+
+export const Default = (args: any) => (
+ <Card {...args}>
+ <Typography.Title level={5}>Card content</Typography.Title>
+ <Typography.Title level={5}>Card content</Typography.Title>
+ <Typography.Title level={5}>Card content</Typography.Title>
+ </Card>
+)
+
+export const withCover = (args: any) => (
+ <Card {...args}>
+ <Typography.Text type="secondary">Sub title here</Typography.Text>
+ <Typography.Title level={3}>To Do List with Vue.JS</Typography.Title>
+ </Card>
+)
+
+export const withMeta = (args: any) => (
+ <Card {...args}>
+ <Card.Meta title={'To Do List with Vue.JS'} description={'To Do List with Vue.JS'}/>
+ </Card>
+)
+
+export const withHover = (args: any) => (
+ <Card {...args}>
+ <Card.Meta title={'To Do List with Vue.JS'} description={'To Do List with Vue.JS'}/>
+ </Card>
+)
+
+Default.args = {
+ title: 'I am a title',
+ titleExtra: <Typography.Link>Learn more</Typography.Link>,
+}
+
+withCover.args = {
+ cover: (
+ <img
+ className="h-64 w-full object-cover"
+ src={'https://supabase.io/new/images/case-study-monitoro.jpg'}
+ alt={'title'}
+ />
+ ),
+}
+
+withMeta.args = {
+ title: 'title is here'
+}
+
+withHover.args = {
+ title: 'This card can hover',
+ hoverable: true
+}
diff --git a/packages/common2/src/components/Card/Card.tsx b/packages/common2/src/components/Card/Card.tsx
new file mode 100644
index 00000000000..7507cd2666e
--- /dev/null
+++ b/packages/common2/src/components/Card/Card.tsx
@@ -0,0 +1,69 @@
+import React from 'react'
+import Typography from '../Typography'
+// @ts-ignore
+import CardStyles from './Card.module.css'
+
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface CardProps {
+ children?: React.ReactNode
+ className?: string
+ cover?: React.ReactNode
+ description?: string
+ hoverable?: boolean
+ style?: React.CSSProperties
+ title?: string
+ titleExtra?: React.ReactNode
+}
+
+function Card({
+ children,
+ className,
+ cover,
+ hoverable,
+ style,
+ title,
+ titleExtra,
+}: CardProps) {
+ let __styles = styleHandler('card')
+
+ let classes = [__styles.base]
+ if (hoverable) classes.push(__styles.hoverable)
+ if (className) classes.push(className)
+
+ return (
+ <div className={classes.join(' ')} style={style}>
+ {title && (
+ <div className={__styles.head}>
+ <Typography.Text style={{ margin: 0 }}>{title}</Typography.Text>
+ <Typography.Link style={{ margin: 0 }}>{titleExtra}</Typography.Link>
+ </div>
+ )}
+ {cover}
+ <div className={__styles.content}>{children}</div>
+ </div>
+ )
+}
+
+interface MetaProps {
+ title?: string
+ description?: string
+ style?: React.CSSProperties
+ className?: string
+}
+
+function Meta({ title, description, style, className }: MetaProps) {
+ return (
+ <div style={style} className={className}>
+ <Typography.Title style={{ margin: '0' }} level={5}>
+ {title}
+ </Typography.Title>
+ <div>
+ <Typography.Text type="secondary">{description}</Typography.Text>
+ </div>
+ </div>
+ )
+}
+
+Card.Meta = Meta
+export default Card
diff --git a/packages/common2/src/components/Card/index.tsx b/packages/common2/src/components/Card/index.tsx
new file mode 100644
index 00000000000..03fa782ed13
--- /dev/null
+++ b/packages/common2/src/components/Card/index.tsx
@@ -0,0 +1 @@
+export { default as Card } from './Card'
diff --git a/packages/common2/src/components/Checkbox/Checkbox.module.css b/packages/common2/src/components/Checkbox/Checkbox.module.css
new file mode 100644
index 00000000000..0beb3a78b09
--- /dev/null
+++ b/packages/common2/src/components/Checkbox/Checkbox.module.css
@@ -0,0 +1,127 @@
+/* clear native styling */
+/* .sbui-checkbox[type='checkbox'] {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ padding: 0;
+ -webkit-print-color-adjust: exact;
+ color-adjust: exact;
+ display: inline-block;
+ vertical-align: middle;
+ background-origin: border-box;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ flex-shrink: 0;
+ height: 1rem;
+ width: 1rem;
+ color: #2563eb;
+ background-color: #fff;
+ border-color: #6b7280;
+ border-width: 1px;
+} */
+
+/* .sbui-checkbox[type='checkbox']:checked {
+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
+}
+
+.sbui-checkbox[type='checkbox']:checked {
+ @apply dark:bg-brand-700;
+ @apply bg-brand-700;
+ border-color: transparent;
+ background-size: 100% 100%;
+ background-position: center;
+ background-repeat: no-repeat;
+} */
+
+/* .sbui-checkbox {
+ @apply border border-solid rounded;
+
+ @apply text-brand-700 border-gray-300 transition-all;
+ @apply hover:border-brand-500 focus:ring-brand-500 focus:outline-none;
+
+ @apply dark:bg-transparent dark:border-dark-400 dark:text-white;
+ @apply dark:hover:border-brand-500;
+
+ margin-top: 2px;
+} */
+/*
+.sbui-checkbox-container {
+ @apply flex cursor-pointer;
+} */
+
+/* .sbui-checkbox__label-container {
+ @apply leading-none;
+} */
+
+/* .sbui-checkbox__label-container__label {
+ @apply text-gray-700 dark:text-white cursor-pointer mt-0;
+}
+
+.sbui-checkbox__label-container__label__span {
+ @apply font-medium;
+}
+
+.sbui-checkbox__label-container__label__span .sbui-checkbox__label-text-before,
+.sbui-checkbox__label-container__label__span .sbui-checkbox__label-text-after {
+ @apply text-gray-400 dark:text-gray-300;
+}
+
+.sbui-checkbox__label-container__label__p {
+ @apply mt-0 text-gray-400 dark:text-gray-300;
+} */
+
+/*
+ Label sizes
+*/
+
+/* .sbui-checkbox-container--tiny .sbui-checkbox__label-container__label,
+.sbui-checkbox-container--tiny .sbui-checkbox__label-container__label__span,
+.sbui-checkbox-container--tiny .sbui-checkbox__label-container__label__p {
+ @apply text-xs;
+}
+.sbui-checkbox-container--small .sbui-checkbox__label-container__label,
+.sbui-checkbox-container--small .sbui-checkbox__label-container__label__span,
+.sbui-checkbox-container--small .sbui-checkbox__label-container__label__p {
+ @apply text-sm;
+}
+.sbui-checkbox-container--medium .sbui-checkbox__label-container__label,
+.sbui-checkbox-container--medium .sbui-checkbox__label-container__label__span,
+.sbui-checkbox-container--medium .sbui-checkbox__label-container__label__p {
+ @apply text-sm;
+}
+.sbui-checkbox-container--large .sbui-checkbox__label-container__label,
+.sbui-checkbox-container--large .sbui-checkbox__label-container__label__span,
+.sbui-checkbox-container--large .sbui-checkbox__label-container__label__p {
+ @apply text-base;
+}
+.sbui-checkbox-container--xlarge .sbui-checkbox__label-container__label,
+.sbui-checkbox-container--xlarge .sbui-checkbox__label-container__label__span,
+.sbui-checkbox-container--xlarge .sbui-checkbox__label-container__label__p {
+ @apply text-base;
+} */
+
+/*
+ Checkbox sizes
+*/
+
+/* .sbui-checkbox-container--tiny .sbui-checkbox {
+ @apply h-3 w-3 mt-1 mr-3;
+}
+
+.sbui-checkbox-container--small .sbui-checkbox {
+ @apply h-3.5 w-3.5 mt-0.5 mr-3.5;
+}
+
+.sbui-checkbox-container--medium .sbui-checkbox {
+ @apply h-4 w-4 mt-0.5 mr-3.5;
+}
+
+.sbui-checkbox-container--large .sbui-checkbox {
+ @apply h-5 w-5 mt-0.5 mr-4;
+}
+
+.sbui-checkbox-container--xlarge .sbui-checkbox {
+ @apply h-5 w-5 mt-0.5 mr-4;
+} */
diff --git a/packages/common2/src/components/Checkbox/Checkbox.stories.tsx b/packages/common2/src/components/Checkbox/Checkbox.stories.tsx
new file mode 100644
index 00000000000..75cb24c3ea0
--- /dev/null
+++ b/packages/common2/src/components/Checkbox/Checkbox.stories.tsx
@@ -0,0 +1,133 @@
+import React from 'react'
+
+import { Checkbox } from '.'
+
+export default {
+ title: 'Data Input/Checkbox',
+ component: Checkbox,
+}
+
+export const Default = (args: any) => <Checkbox {...args} />
+
+export const withGroup = (args: any) => (
+ <Checkbox.Group {...args}>
+ <Checkbox
+ id="checkbox1"
+ name="checkbox1"
+ label="JavaScript"
+ description="JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification."
+ />
+ <Checkbox
+ id="checkbox2"
+ name="checkbox2"
+ label="Typescript"
+ description="TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. "
+ />
+ <Checkbox
+ id="checkbox3"
+ name="checkbox3"
+ label="React"
+ description="React is an open-source, front end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies."
+ />
+ </Checkbox.Group>
+)
+
+export const withGroupHorizontal = (args: any) => (
+ <Checkbox.Group {...args}>
+ <Checkbox
+ id="checkbox1"
+ name="checkbox1"
+ label="JavaScript"
+ description="JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification."
+ />
+ <Checkbox
+ id="checkbox2"
+ name="checkbox2"
+ label="Typescript"
+ description="TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. "
+ />
+ <Checkbox
+ id="checkbox3"
+ name="checkbox3"
+ label="React"
+ description="React is an open-source, front end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies."
+ />
+ </Checkbox.Group>
+)
+
+export const size = (args: any) => (
+ <Checkbox.Group {...args}>
+ <Checkbox
+ id="checkbox1"
+ name="checkbox1"
+ label="JavaScript"
+ description="JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification."
+ />
+ <Checkbox
+ id="checkbox2"
+ name="checkbox2"
+ label="Typescript"
+ description="TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. "
+ />
+ <Checkbox
+ id="checkbox3"
+ name="checkbox3"
+ label="React"
+ description="React is an open-source, front end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies."
+ />
+ </Checkbox.Group>
+)
+
+export const withBeforeAndAfterLabels = (args: any) => (
+ <Checkbox.Group {...args} />
+)
+
+Default.args = {
+ label: 'This is the label',
+ description: 'This is the description',
+}
+
+withGroup.args = {
+ id: 'checkobox-q',
+ label: 'This is the label',
+ description: 'This is the description',
+ disabled: false,
+ size: 'medium',
+ className: 'font-sans',
+ layout: 'vertical',
+}
+
+withGroupHorizontal.args = {
+ id: 'checkobox-q',
+ label: 'This is the label',
+ description: 'This is the description',
+ disabled: false,
+ className: 'font-sans',
+ layout: 'horizontal',
+}
+
+size.args = {
+ id: 'checkobox-q',
+ label: 'Control the size of the checkboxes',
+ description:
+ 'You can add a size just the Group component and it will affect the children',
+ disabled: false,
+ className: 'font-sans',
+ layout: 'horizontal',
+ size: 'tiny',
+}
+
+withBeforeAndAfterLabels.args = {
+ label: 'Label',
+ beforeLabel: 'Before : ',
+ afterLabel: ' : After',
+ options: [
+ {
+ label: 'Label',
+ beforeLabel: 'Before : ',
+ afterLabel: ' : After',
+ description: 'Description',
+ },
+ ],
+ className: 'font-sans',
+}
diff --git a/packages/common2/src/components/Checkbox/Checkbox.test.js b/packages/common2/src/components/Checkbox/Checkbox.test.js
new file mode 100644
index 00000000000..41eda3a2002
--- /dev/null
+++ b/packages/common2/src/components/Checkbox/Checkbox.test.js
@@ -0,0 +1,15 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Checkbox from './Checkbox'
+
+describe('#Checkbox', () => {
+ it('should render checkbox correctly', () => {
+ render(<Checkbox data-testid="form-checkbox" label="labelIsRequired" />)
+ expect(screen.queryByTestId('form-checkbox')).toBeInTheDocument()
+ })
+
+ it('should show label', () => {
+ render(<Checkbox data-testid="form-checkbox" label="JavaScript" />)
+ expect(screen.queryByText('JavaScript')).toBeInTheDocument()
+ })
+})
diff --git a/packages/common2/src/components/Checkbox/Checkbox.tsx b/packages/common2/src/components/Checkbox/Checkbox.tsx
new file mode 100644
index 00000000000..3520f7ee56d
--- /dev/null
+++ b/packages/common2/src/components/Checkbox/Checkbox.tsx
@@ -0,0 +1,231 @@
+import React, { useEffect, useState } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+import { CheckboxContext } from './CheckboxContext'
+// @ts-ignore
+import CheckboxStyles from './Checkbox.module.css'
+
+import defaultTheme from '../../lib/theme/defaultTheme'
+
+import { useFormContext } from '../Form/FormContext'
+import styleHandler from '../../lib/theme/styleHandler'
+
+export interface InputProps
+ extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
+ afterLabel?: string
+ beforeLabel?: string
+ description?: string
+ label?: string
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+}
+
+interface GroupProps {
+ id?: string
+ layout?: 'horizontal' | 'vertical'
+ error?: any
+ descriptionText?: any
+ label?: any
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: any
+ name?: any
+ value?: any
+ className?: string
+ children?: React.ReactNode
+ options?: Array<InputProps>
+ defaultValue?: string
+ onChange?(x: React.ChangeEvent<HTMLInputElement>): void
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+}
+
+function Group({
+ id,
+ layout = 'vertical',
+ error,
+ descriptionText,
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ children,
+ className,
+ options,
+ onChange,
+ size = 'medium',
+}: GroupProps) {
+ const parentCallback = (e: React.ChangeEvent<HTMLInputElement>) => {
+ if (onChange) onChange(e)
+ }
+
+ const __styles = styleHandler('checkbox')
+
+ return (
+ <FormLayout
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ className={className}
+ size={size}
+ >
+ <CheckboxContext.Provider value={{ parentCallback, parentSize: size }}>
+ <div className={__styles.group}>
+ {options
+ ? options.map((option: InputProps) => {
+ return (
+ <Checkbox
+ id={option.id}
+ value={option.value}
+ label={option.label}
+ beforeLabel={option.beforeLabel}
+ afterLabel={option.afterLabel}
+ checked={option.checked}
+ name={option.name}
+ description={option.description}
+ />
+ )
+ })
+ : children}
+ </div>
+ </CheckboxContext.Provider>
+ </FormLayout>
+ )
+}
+
+export function Checkbox({
+ className,
+ id = '',
+ name = '',
+ label,
+ afterLabel,
+ beforeLabel,
+ description,
+ checked,
+ value,
+ onChange,
+ onFocus,
+ onBlur,
+ size = 'medium',
+ disabled = false,
+ ...props
+}: InputProps) {
+ const { formContextOnChange, values, handleBlur } = useFormContext()
+
+ const __styles = styleHandler('checkbox')
+
+ return (
+ <CheckboxContext.Consumer>
+ {({ parentCallback, parentSize }) => {
+ // if id does not exist, use label
+ const markupId = id
+ ? id
+ : name
+ ? name
+ : label
+ ? label
+ .toLowerCase()
+ .replace(/^[^A-Z0-9]+/gi, '')
+ .replace(/ /g, '-')
+ : undefined
+
+ // @ts-ignore
+ size = parentSize ? parentSize : size
+
+ // if name does not exist on Radio then use Context Name from Radio.Group
+ // if that fails, use the id
+ const markupName = name ? name : markupId
+
+ // check if checkbox checked is true or false
+ // if neither true or false the checkbox will rely on native control
+ let active = checked ?? undefined
+
+ // if (values && !value) value = values[id || name]
+
+ let containerClasses = [__styles.container]
+
+ function onInputChange(e: React.ChangeEvent<HTMLInputElement>) {
+ // '`onChange` callback for parent component
+ if (parentCallback) parentCallback(e)
+ // '`onChange` callback for this component
+ if (onChange) onChange(e)
+ // update form
+ if (formContextOnChange) formContextOnChange(e)
+ }
+
+ if (className) containerClasses.push(className)
+
+ if (values && checked === undefined) active = values[id || name]
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLInputElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ return (
+ <div className={containerClasses.join(' ')}>
+ <input
+ id={markupId}
+ name={markupName}
+ type="checkbox"
+ // className={CheckboxStyles['sbui-checkbox']}
+ className={[__styles.base, __styles.size[size]].join(' ')}
+ onChange={onInputChange}
+ onFocus={onFocus ? (event) => onFocus(event) : undefined}
+ onBlur={handleBlurEvent}
+ checked={active}
+ value={value ? value : markupId}
+ disabled={disabled}
+ {...props}
+ />
+
+ <label
+ className={[__styles.label.base, __styles.label[size]].join(' ')}
+ htmlFor={markupId}
+ >
+ <span>
+ {beforeLabel && (
+ <span
+ className={[
+ __styles.label_before.base,
+ __styles.label_before[size],
+ ].join(' ')}
+ >
+ {beforeLabel}
+ </span>
+ )}
+ {label}
+ {afterLabel && (
+ <span
+ className={[
+ __styles.label_after.base,
+ __styles.label_after[size],
+ ].join(' ')}
+ >
+ {afterLabel}
+ </span>
+ )}
+ </span>
+
+ {description && (
+ <p
+ className={[
+ __styles.description.base,
+ __styles.description[size],
+ ].join(' ')}
+ >
+ {description}
+ </p>
+ )}
+ </label>
+ </div>
+ )
+ }}
+ </CheckboxContext.Consumer>
+ )
+}
+
+Checkbox.Group = Group
+export default Checkbox
diff --git a/packages/common2/src/components/Checkbox/CheckboxContext.tsx b/packages/common2/src/components/Checkbox/CheckboxContext.tsx
new file mode 100644
index 00000000000..742c51f9575
--- /dev/null
+++ b/packages/common2/src/components/Checkbox/CheckboxContext.tsx
@@ -0,0 +1,8 @@
+import { createContext } from 'react'
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+export const CheckboxContext = createContext({
+ parentCallback: (e: any) => {},
+ parentSize: '',
+})
diff --git a/packages/common2/src/components/Checkbox/index.tsx b/packages/common2/src/components/Checkbox/index.tsx
new file mode 100644
index 00000000000..23993dfce7f
--- /dev/null
+++ b/packages/common2/src/components/Checkbox/index.tsx
@@ -0,0 +1,3 @@
+import Checkbox from './Checkbox'
+export default Checkbox
+export { default as Checkbox } from './Checkbox'
diff --git a/packages/common2/src/components/Collapsible/Collapsible.stories.tsx b/packages/common2/src/components/Collapsible/Collapsible.stories.tsx
new file mode 100644
index 00000000000..6b723f7a438
--- /dev/null
+++ b/packages/common2/src/components/Collapsible/Collapsible.stories.tsx
@@ -0,0 +1,67 @@
+import React from 'react'
+// import { AutoForm } from 'uniforms'
+
+import { Collapsible } from '.'
+import { IconChevronUp } from '../..'
+import { Button } from '../Button'
+
+export default {
+ title: 'Displays/Collapsible',
+ component: Collapsible,
+}
+
+export const Default = (args: any) => {
+ return (
+ <>
+ hello all
+ <Collapsible className="-space-y-px">
+ <Collapsible.Trigger asChild>
+ <button
+ type="button"
+ className="group text-scale-1200 flex justify-between items-center w-full bg-scale-300 rounded border border-scale-500 p-3"
+ >
+ Hello
+ <div className="flex gap-2 items-center">
+ <IconChevronUp className="transition data-open-parent:rotate-0 data-closed-parent:rotate-180" />
+ <Button
+ onClick={(e) => {
+ e.stopPropagation()
+ }}
+ >
+ Turn it on
+ </Button>
+ </div>
+ </button>
+ </Collapsible.Trigger>
+ <Collapsible.Content>
+ <div className="group text-scale-1200 flex justify-between items-center w-full bg-scale-300 rounded border border-scale-500 p-3">
+ <h3 className="text-tomato-900">I am content</h3>
+ <h3 className="text-tomato-900">I am content</h3>
+ <h3 className="text-tomato-900">I am content</h3>
+ <h3 className="text-tomato-900">I am content</h3>
+ </div>
+ </Collapsible.Content>
+ </Collapsible>
+ <Collapsible>
+ <Collapsible.Trigger asChild>
+ <button type="button">Hello</button>
+ </Collapsible.Trigger>
+ <Collapsible.Content>
+ <div>
+ <h3 className="text-tomato-900">I am content</h3>
+ <h3 className="text-tomato-900">I am content</h3>
+ <h3 className="text-tomato-900">I am content</h3>
+ <h3 className="text-tomato-900">I am content</h3>
+ </div>
+ </Collapsible.Content>
+ </Collapsible>
+ </>
+ )
+}
+
+Default.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Name',
+ layout: 'vertical',
+}
diff --git a/packages/common2/src/components/Collapsible/Collapsible.tsx b/packages/common2/src/components/Collapsible/Collapsible.tsx
new file mode 100644
index 00000000000..96c7d47daed
--- /dev/null
+++ b/packages/common2/src/components/Collapsible/Collapsible.tsx
@@ -0,0 +1,70 @@
+import React from 'react'
+import * as RadixCollapsible from '@radix-ui/react-collapsible'
+import { Button } from '../Button'
+import { IconChevronRight, IconGlobe } from '../..'
+import styleHandler from '../../lib/theme/styleHandler'
+
+export interface CollapsibleProps extends RadixCollapsible.CollapsibleProps {
+ children: React.ReactNode
+ // onChange?: (e: boolean) => void
+}
+
+export const Collapsible = ({
+ open = undefined,
+ children,
+ className,
+ ...props
+}: CollapsibleProps) => {
+ // const [_open, setOpen] = React.useState(open)
+
+ // function handleOpenChange(e: boolean) {
+ // console.log(e)
+ // if (onChange) onChange(e)
+ // }
+ return (
+ <RadixCollapsible.Root
+ defaultOpen={props.defaultOpen}
+ open={open}
+ onOpenChange={props.onOpenChange}
+ disabled={props.disabled}
+ className={className}
+ >
+ {children}
+ </RadixCollapsible.Root>
+ )
+}
+
+export function Trigger({
+ children,
+ asChild,
+}: {
+ children: React.ReactNode
+ asChild?: boolean
+}) {
+ return (
+ <RadixCollapsible.Trigger asChild={asChild}>
+ {children}
+ </RadixCollapsible.Trigger>
+ )
+}
+
+export function Content({
+ children,
+ className,
+}: {
+ children: React.ReactNode
+ className?: string
+}) {
+ const __styles = styleHandler('collapsible')
+ return (
+ <RadixCollapsible.Content
+ className={[__styles.content, className].join(' ')}
+ >
+ {children}
+ </RadixCollapsible.Content>
+ )
+}
+
+Collapsible.Trigger = Trigger
+Collapsible.Content = Content
+export default Collapsible
diff --git a/packages/common2/src/components/Collapsible/index.tsx b/packages/common2/src/components/Collapsible/index.tsx
new file mode 100644
index 00000000000..6024fb1be25
--- /dev/null
+++ b/packages/common2/src/components/Collapsible/index.tsx
@@ -0,0 +1 @@
+export { default as Collapsible } from './Collapsible'
diff --git a/packages/common2/src/components/ContextMenu/ContextMenu.module.css b/packages/common2/src/components/ContextMenu/ContextMenu.module.css
new file mode 100644
index 00000000000..c4651c0ef7a
--- /dev/null
+++ b/packages/common2/src/components/ContextMenu/ContextMenu.module.css
@@ -0,0 +1,65 @@
+.sbui-contextmenu-item {
+ @apply text-xs;
+ @apply text-typography-body-light dark:text-typography-body-dark;
+ @apply px-4 py-1.5 flex items-center space-x-2;
+ @apply cursor-pointer;
+ @apply focus:bg-bg-secondary-light dark:focus:bg-bg-primary-dark border-none;
+ cursor: 'default';
+}
+
+.sbui-contextmenu-item svg {
+ /* @apply text-typography-body-secondary-light dark:text-typography-body-secondary-dark; */
+}
+
+.sbui-contextmenu-label {
+ /* @apply text-typography-body-secondary-light dark:text-typography-body-secondary-dark; */
+ /* @apply px-4 py-1.5 flex items-center space-x-2; */
+ /* font-size: 0.65rem; */
+}
+
+.sbui-contextmenu-misc {
+ /* @apply px-4 py-1.5; */
+}
+
+.sbui-contextmenu-item:focus-visible {
+ /* border: none; */
+ /* outline: none; */
+}
+
+.sbui-contextmenu-input {
+ /* @apply flex items-center space-x-2; */
+}
+
+.sbui-contextmenu-input__check {
+ /* @apply flex items-center; */
+}
+
+.sbui-contextmenu__content {
+ /* @apply bg-bg-primary-light dark:bg-bg-secondary-dark p-0; */
+ /* @apply rounded; */
+ /* @apply border; */
+ /* @apply shadow; */
+ /* overflow: visible; */
+ /* border-style: solid; */
+ /* border-width: 1px; */
+}
+
+@keyframes transition {
+ /* 0% { */
+ /* opacity: 0; */
+ /* transform: scale(0.95); */
+ /* } */
+ /* 100% { */
+ /* opacity: 1; */
+ /* transform: scale(1); */
+ /* } */
+}
+
+.sbui-contextmenu__content {
+ /* transform-origin: var(--radix-dropdown-menu-content-transform-origin); */
+ /* animation: transition 0.1s ease-out; */
+}
+
+.sbui-contextmenu__trigger {
+ /* @apply border-none bg-transparent p-0 focus:ring-0; */
+}
diff --git a/packages/common2/src/components/ContextMenu/ContextMenu.stories.tsx b/packages/common2/src/components/ContextMenu/ContextMenu.stories.tsx
new file mode 100644
index 00000000000..d2d155e8c47
--- /dev/null
+++ b/packages/common2/src/components/ContextMenu/ContextMenu.stories.tsx
@@ -0,0 +1,168 @@
+import React, { useState } from 'react'
+import { Button } from '../Button'
+import { Divider } from '../Divider'
+import { IconSettings, IconLogOut } from '../../index'
+import Typography from '../Typography'
+
+import { ContextMenu } from '.'
+import { IconLogIn } from '../Icon/icons/IconLogIn'
+
+export default {
+ title: 'Navigation/ContextMenu',
+ component: ContextMenu,
+}
+
+const triggerArea = (
+ <div
+ style={{
+ background: 'gray',
+ width: '280px',
+ height: '180px',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ }}
+ >
+ <span>Right click this area</span>
+ </div>
+)
+
+export const Default = (args: any) => (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <ContextMenu
+ {...args}
+ overlay={[
+ <ContextMenu.Misc>
+ <div>
+ <Typography.Text small className="block">
+ Signed in as{' '}
+ </Typography.Text>
+
+ <Typography.Text small strong>
+ </Typography.Text>
+ </div>
+ </ContextMenu.Misc>,
+ <Divider light />,
+ <ContextMenu.Label>Group label</ContextMenu.Label>,
+ <ContextMenu.Item onClick={() => console.log('clicked')}>
+ Account
+ </ContextMenu.Item>,
+ <ContextMenu.Item>Settings</ContextMenu.Item>,
+ <Divider light />,
+ <ContextMenu.Item icon={<IconLogIn size="tiny" />}>
+ Log out
+ </ContextMenu.Item>,
+ ]}
+ >
+ {triggerArea}
+ </ContextMenu>
+ </div>
+)
+
+Default.args = {}
+
+export const doNotcloseOverlay = (args: any) => (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <ContextMenu
+ {...args}
+ overlay={[
+ <ContextMenu.Misc>
+ <Typography.Text>Signed in as </Typography.Text>
+ <Typography.Text strong>[email protected] </Typography.Text>
+ </ContextMenu.Misc>,
+ <Divider light />,
+ <ContextMenu.Item>Account</ContextMenu.Item>,
+ <ContextMenu.Item>Settings</ContextMenu.Item>,
+ <ContextMenu.Item>
+ <Button icon={<IconLogOut />}>Log out</Button>
+ </ContextMenu.Item>,
+ ]}
+ >
+ {triggerArea}
+ </ContextMenu>
+ </div>
+)
+
+doNotcloseOverlay.args = {}
+
+export const withCustomStyles = (args: any) => (
+ <div
+ style={{
+ margin: '0 auto',
+ minHeight: '420px',
+ marginTop: '220px',
+ marginLeft: '400px',
+ }}
+ >
+ <ContextMenu
+ overlayStyle={{ minWidth: '500px' }}
+ placement="bottomRight"
+ {...args}
+ overlay={[
+ <ContextMenu.Item>
+ <Typography.Text>Signed in as </Typography.Text>
+ <Typography.Text strong>[email protected] </Typography.Text>
+ </ContextMenu.Item>,
+ <Divider light />,
+ <ContextMenu.Item>Account</ContextMenu.Item>,
+ <ContextMenu.Item>Settings</ContextMenu.Item>,
+ <Divider light />,
+ <ContextMenu.Item>
+ <Button type="default" icon={<IconLogOut />}>
+ Log out
+ </Button>
+ </ContextMenu.Item>,
+ ]}
+ >
+ {triggerArea}
+ </ContextMenu>
+ </div>
+)
+
+withCustomStyles.args = {}
+
+export const Checkbox = (args: any) => {
+ const [checked, setChecked] = useState(false)
+
+ return (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <ContextMenu
+ {...args}
+ overlay={[
+ <ContextMenu.Item icon={<IconSettings size="small" />}>
+ Account
+ </ContextMenu.Item>,
+ <ContextMenu.Item>Settings</ContextMenu.Item>,
+ <Divider light />,
+ <ContextMenu.Checkbox checked={checked} onChange={setChecked}>
+ Show subtitles
+ </ContextMenu.Checkbox>,
+ ]}
+ >
+ {triggerArea}
+ </ContextMenu>
+ </div>
+ )
+}
+
+export const Radio = (args: any) => {
+ const [value, setValue] = useState('red')
+
+ return (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <ContextMenu
+ {...args}
+ overlay={[
+ <ContextMenu.RadioGroup value={value} onChange={setValue}>
+ <ContextMenu.Radio value={'red'}>Red</ContextMenu.Radio>
+ <ContextMenu.Radio value={'blue'}>Blue</ContextMenu.Radio>
+ <ContextMenu.Radio value={'green'}>Green</ContextMenu.Radio>
+ </ContextMenu.RadioGroup>,
+ ]}
+ >
+ {triggerArea}
+ </ContextMenu>
+ </div>
+ )
+}
diff --git a/packages/common2/src/components/ContextMenu/ContextMenu.tsx b/packages/common2/src/components/ContextMenu/ContextMenu.tsx
new file mode 100644
index 00000000000..bbf300a4540
--- /dev/null
+++ b/packages/common2/src/components/ContextMenu/ContextMenu.tsx
@@ -0,0 +1,194 @@
+import React, { useState } from 'react'
+
+// import * as RadixContextMenu from '@radix-ui/react-dropdown-menu'
+import { IconCheck } from '../Icon/icons/IconCheck'
+
+// @ts-ignore
+// import ContextMenuStyles from './ContextMenu.module.css'
+
+import type * as RadixContextMenuTypes from '@radix-ui/react-context-menu/'
+
+import * as RadixContextMenu from '@radix-ui/react-context-menu'
+
+const ContextMenuStyles = {}
+
+interface RootProps {
+ onOpenChange?(x: boolean): void
+ alignOffset?: RadixContextMenuTypes.ContextMenuContentProps['alignOffset']
+ overlay?: React.ReactNode
+ children?: React.ReactNode
+ className?: string
+ style?: React.CSSProperties
+}
+
+function ContextMenu({
+ onOpenChange,
+
+ alignOffset = 6,
+ overlay,
+ children,
+ className,
+ style,
+}: RootProps) {
+ // let classes = [ContextMenuStyles['sbui-contextmenu__content']]
+ // if (className) {
+ // classes.push(className)
+ // }
+ return (
+ <RadixContextMenu.Root onOpenChange={onOpenChange}>
+ <RadixContextMenu.Trigger
+ // className={ContextMenuStyles['sbui-contextmenu__trigger']}
+ >
+ {children}
+ </RadixContextMenu.Trigger>
+
+ <RadixContextMenu.Content
+ sideOffset={alignOffset}
+ // className={classes.join(' ')}
+ style={style}
+ >
+ {overlay}
+ </RadixContextMenu.Content>
+ </RadixContextMenu.Root>
+ )
+}
+
+interface ItemProps {
+ children: React.ReactNode
+ icon?: React.ReactNode
+ disabled?: boolean
+ onClick?: (event: Event) => void
+}
+
+export function Item({ children, icon, disabled, onClick }: ItemProps) {
+ return (
+ <RadixContextMenu.Item
+ // className={ContextMenuStyles['sbui-contextmenu-item']}
+ disabled={disabled}
+ onSelect={onClick}
+ >
+ {icon && icon}
+ <span>{children}</span>
+ </RadixContextMenu.Item>
+ )
+}
+
+export function Misc({ children, icon }: ItemProps) {
+ return (
+ <div
+ // className={ContextMenuStyles['sbui-contextmenu-misc']}
+ >
+ {icon && icon}
+ {children}
+ </div>
+ )
+}
+
+interface CheckboxProps {
+ children: React.ReactNode
+ checked?: boolean
+ onChange?(x: boolean): void
+ disabled?: boolean
+ ItemIndicator?: React.ReactNode
+}
+
+export function Checkbox({
+ children,
+ checked: propsChecked,
+ onChange,
+ disabled,
+ ItemIndicator,
+}: CheckboxProps) {
+ const [checked, setChecked] = useState(propsChecked ? propsChecked : false)
+
+ const handleChange = (e: boolean) => {
+ if (onChange) onChange(e)
+ setChecked(e)
+ }
+
+ return (
+ <RadixContextMenu.CheckboxItem
+ checked={checked}
+ onCheckedChange={handleChange}
+ // className={`${ContextMenuStyles['sbui-contextmenu-item']} ${ContextMenuStyles['sbui-contextmenu-input']}`}
+ disabled={disabled}
+ >
+ <RadixContextMenu.ItemIndicator
+ // className={ContextMenuStyles['sbui-contextmenu-input__check']}
+ >
+ {ItemIndicator ? ItemIndicator : <IconCheck size="tiny" />}
+ <RadixContextMenu.CheckboxItem />
+ </RadixContextMenu.ItemIndicator>
+ <span>{children}</span>
+ </RadixContextMenu.CheckboxItem>
+ )
+}
+
+interface RadioProps {
+ children: React.ReactNode
+ value: string
+ ItemIndicator?: React.ReactNode
+}
+
+export function Radio({ children, value, ItemIndicator }: RadioProps) {
+ return (
+ <RadixContextMenu.RadioItem
+ value={value}
+ // className={`${ContextMenuStyles['sbui-contextmenu-item']} ${ContextMenuStyles['sbui-contextmenu-input']}`}
+ >
+ <RadixContextMenu.ItemIndicator
+ // className={ContextMenuStyles['sbui-contextmenu-input__check']}
+ >
+ {ItemIndicator ? ItemIndicator : <IconCheck size="tiny" />}
+ </RadixContextMenu.ItemIndicator>
+ <span>{children}</span>
+ </RadixContextMenu.RadioItem>
+ )
+}
+
+interface RadioGroupProps {
+ children: React.ReactNode
+ value: string
+ onChange?(x: string): void
+}
+
+export function RadioGroup({
+ children,
+ value: propsValue,
+ onChange,
+}: RadioGroupProps) {
+ const [value, setValue] = useState(propsValue ? propsValue : '')
+
+ const handleChange = (e: string) => {
+ if (onChange) onChange(e)
+ setValue(e)
+ }
+
+ return (
+ <RadixContextMenu.RadioGroup value={value} onValueChange={handleChange}>
+ {children}
+ </RadixContextMenu.RadioGroup>
+ )
+}
+
+interface LabelProps {
+ children: React.ReactNode
+}
+
+export function Label({ children }: LabelProps) {
+ return (
+ <RadixContextMenu.Label
+ // className={ContextMenuStyles['sbui-contextmenu-label']}
+ >
+ {children}
+ </RadixContextMenu.Label>
+ )
+}
+
+ContextMenu.Item = Item
+ContextMenu.Misc = Misc
+ContextMenu.Checkbox = Checkbox
+ContextMenu.Radio = Radio
+ContextMenu.RadioGroup = RadioGroup
+ContextMenu.Label = Label
+export default ContextMenu
diff --git a/packages/common2/src/components/ContextMenu/index.tsx b/packages/common2/src/components/ContextMenu/index.tsx
new file mode 100644
index 00000000000..c87ee1b10ab
--- /dev/null
+++ b/packages/common2/src/components/ContextMenu/index.tsx
@@ -0,0 +1 @@
+export { default as ContextMenu } from './ContextMenu'
diff --git a/packages/common2/src/components/Divider/Divider.module.css b/packages/common2/src/components/Divider/Divider.module.css
new file mode 100644
index 00000000000..18d32e48f51
--- /dev/null
+++ b/packages/common2/src/components/Divider/Divider.module.css
@@ -0,0 +1,101 @@
+.sbui-divider {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ white-space: nowrap;
+}
+
+.sbui-divider-vertical {
+ @apply bg-gray-200 dark:bg-dark-500;
+ width: 1px;
+ height: inherit;
+}
+
+.sbui-divider-vertical.sbui-divider--light {
+ @apply bg-gray-100 dark:bg-dark-600;
+}
+
+.sbui-divider--no-text {
+ @apply border-gray-200 dark:border-dark-500;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+}
+
+.sbui-divider > span {
+ @apply text-sm;
+ @apply text-gray-300;
+ @apply dark:text-dark-400;
+ display: inline-block;
+ padding: 0 1em;
+}
+
+.sbui-divider--left:before {
+ @apply border-gray-200 dark:border-dark-500;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+ top: 50%;
+ content: '';
+ position: relative;
+ display: inline-block;
+ width: 5%;
+}
+
+.sbui-divider--left:after {
+ @apply border-gray-200 dark:border-dark-500;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+ top: 50%;
+ content: '';
+ position: relative;
+ display: inline-block;
+ width: 95%;
+}
+
+.sbui-divider--right:before {
+ @apply border-gray-200 dark:border-dark-500;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+ top: 50%;
+ content: '';
+ position: relative;
+ display: inline-block;
+ width: 95%;
+}
+
+.sbui-divider--right:after {
+ @apply border-gray-200 dark:border-dark-500;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+ top: 50%;
+ content: '';
+ position: relative;
+ display: inline-block;
+ width: 5%;
+}
+
+.sbui-divider--center:before,
+.sbui-divider--center:after {
+ @apply border-gray-200 dark:border-dark-500;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+ top: 50%;
+ content: '';
+ position: relative;
+ display: inline-block;
+ width: 50%;
+}
+
+.sbui-divider--light.sbui-divider--left:before,
+.sbui-divider--light.sbui-divider--left:after,
+.sbui-divider--light.sbui-divider--right:before,
+.sbui-divider--light.sbui-divider--right:after,
+.sbui-divider--light.sbui-divider--center:before,
+.sbui-divider--light.sbui-divider--center:after,
+.sbui-divider--light.sbui-divider--no-text {
+ @apply border-gray-100 dark:border-dark-600;
+}
+
+.sbui-divider--light.sbui-divider > span {
+ @apply text-gray-200;
+ @apply dark:text-dark-800;
+}
diff --git a/packages/common2/src/components/Divider/Divider.stories.tsx b/packages/common2/src/components/Divider/Divider.stories.tsx
new file mode 100644
index 00000000000..8826bebe1e3
--- /dev/null
+++ b/packages/common2/src/components/Divider/Divider.stories.tsx
@@ -0,0 +1,60 @@
+import React from 'react'
+import { Button } from '../Button'
+import Typography from '../Typography'
+import { Divider } from './'
+
+export default {
+ title: 'Utilities/Divider',
+ component: Divider,
+}
+
+export const Default = (args: any) => <Divider {...args} />
+
+export const withCenterText = (args: any) => (
+ <Divider {...args}>Hello world</Divider>
+)
+
+export const withLeftText = (args: any) => (
+ <Divider {...args}>Hello world</Divider>
+)
+
+export const withRightText = (args: any) => (
+ <Divider {...args}>Hello world</Divider>
+)
+
+export const lighterColor = (args: any) => <Divider {...args} />
+
+export const vertical = (args: any) => (
+ <div style={{ height: '32px' }}>
+ <div className="space-x-3 w-full">
+ <Divider {...args} />
+ <Button>Button one</Button>
+ <Divider {...args} />
+ <Button>Button two</Button>
+ <Divider {...args} />
+ <Typography.Text>Some text</Typography.Text>
+ <Divider {...args} />
+ <Button>Button three</Button>
+ </div>
+ </div>
+)
+
+Default.args = {}
+
+withCenterText.args = {}
+
+withLeftText.args = {
+ orientation: 'left',
+}
+
+withRightText.args = {
+ orientation: 'right',
+}
+
+lighterColor.args = {
+ light: true,
+}
+
+vertical.args = {
+ type: 'vertical',
+}
diff --git a/packages/common2/src/components/Divider/Divider.tsx b/packages/common2/src/components/Divider/Divider.tsx
new file mode 100644
index 00000000000..c1b0607899f
--- /dev/null
+++ b/packages/common2/src/components/Divider/Divider.tsx
@@ -0,0 +1,52 @@
+import React from 'react'
+// @ts-ignore
+// import DividerStyles from './Divider.module.css'
+
+interface Props {
+ children?: React.ReactNode
+ className?: string
+ light?: boolean
+ orientation?: 'left' | 'right' | 'center'
+ style?: React.CSSProperties
+ type?: 'vertical' | 'horizontal'
+}
+
+export default function Divider({
+ children,
+ className,
+ light = false,
+ orientation = 'center',
+ style,
+ type = 'horizontal',
+}: Props) {
+ // let classes = [
+ // type === 'horizontal'
+ // ? DividerStyles['sbui-divider']
+ // : DividerStyles['sbui-divider-vertical'],
+ // ]
+ // if (light) classes.push(DividerStyles['sbui-divider--light'])
+
+ // if (children) {
+ // classes.push(DividerStyles[`sbui-divider--${orientation}`])
+ // } else if (!children && type === 'horizontal') {
+ // classes.push(DividerStyles[`sbui-divider--no-text`])
+ // }
+
+ // if (className) classes.push(className)
+
+ return (
+ <div
+ // className={classes.join(' ')}
+ role="seperator"
+ style={style}
+ >
+ {children && (
+ <span
+ // className={DividerStyles['sbui-divider__content']}
+ >
+ {children}
+ </span>
+ )}
+ </div>
+ )
+}
diff --git a/packages/common2/src/components/Divider/index.tsx b/packages/common2/src/components/Divider/index.tsx
new file mode 100644
index 00000000000..644af288bc8
--- /dev/null
+++ b/packages/common2/src/components/Divider/index.tsx
@@ -0,0 +1 @@
+export { default as Divider } from './Divider'
diff --git a/packages/common2/src/components/Dropdown/Dropdown.module.css b/packages/common2/src/components/Dropdown/Dropdown.module.css
new file mode 100644
index 00000000000..751546ff202
--- /dev/null
+++ b/packages/common2/src/components/Dropdown/Dropdown.module.css
@@ -0,0 +1,112 @@
+/* .sbui-dropdown-item {
+ @apply text-xs;
+ @apply text-typography-body-light dark:text-typography-body-dark;
+ @apply px-4 py-1.5 flex items-center space-x-2;
+ @apply cursor-pointer;
+ @apply focus:bg-bg-secondary-light dark:focus:bg-bg-primary-dark border-none;
+ cursor: 'default';
+
+ user-select: none;
+}
+
+/* .sbui-dropdown-item svg {
+ @apply text-typography-body-secondary-light dark:text-typography-body-secondary-dark;
+} */
+
+/* .sbui-dropdown-label {
+ @apply text-typography-body-secondary-light dark:text-typography-body-secondary-dark;
+ @apply px-4 py-1.5 flex items-center space-x-2;
+ font-size: 0.65rem;
+}
+
+.sbui-dropdown-misc {
+ @apply px-4 py-1.5;
+}
+
+.sbui-dropdown-item:focus-visible {
+ border: none;
+ outline: none;
+}
+
+.sbui-dropdown-input {
+ @apply flex items-center space-x-0 pl-8 pr-4;
+}
+
+.sbui-dropdown-input__check {
+ @apply absolute left-2;
+ @apply flex items-center;
+} */
+
+/* .sbui-dropdown__content {
+ @apply bg-bg-primary-light dark:bg-bg-secondary-dark p-0;
+ @apply border border-lightmode dark:border-darkmode;
+ @apply rounded;
+ @apply shadow;
+ border-style: solid;
+ border-width: 1px;
+} */
+
+/* @keyframes fadeIn {
+ from {
+ transform: scale(0.95);
+ opacity: 0;
+ }
+ to {
+ transform: scale(1);
+ opacity: 1;
+ }
+}
+
+@keyframes fadeOut {
+ from {
+ transform: scale(1);
+ opacity: 1;
+ }
+ to {
+ transform: scale(0.95);
+ opacity: 0;
+ }
+} */
+/* .sbui-dropdown__content {
+ transform-origin: 'var(--radix-dropdown-menu-content-transform-origin)';
+} */
+
+/* .sbui-dropdown__content[data-state='open'] {
+ animation: fadeIn 50ms ease-out;
+}
+
+.sbui-dropdown__content[data-state='closed'] {
+ animation: fadeOut 50ms ease-in;
+} */
+
+/* .sbui-dropdown__trigger {
+ @apply border-none bg-transparent p-0 focus:ring-0;
+} */
+
+/* .sbui-dropdown__arrow {
+ @apply fill-current text-bg-primary-light dark:text-bg-secondary-dark;
+ @apply border-0 border-t;
+ border-style: solid;
+
+}
+
+.sbui-dropdown-item-trigger {
+ @apply text-xs;
+ @apply text-typography-body-light dark:text-typography-body-dark;
+ @apply px-4 py-1.5 flex items-center space-x-2;
+ @apply cursor-pointer;
+ cursor: 'default';
+}
+
+.sbui-dropdown-item-trigger svg {
+ @apply text-typography-body-secondary-light dark:text-typography-body-secondary-dark;
+}
+
+.sbui-dropdown-item-trigger:focus-visible {
+ border: none;
+ outline: none;
+} */
+
+/* .sbui-dropdown__trigger-item[data-state='open'] {
+ @apply bg-bg-secondary-light dark:bg-bg-primary-dark border-none;
+} */
diff --git a/packages/common2/src/components/Dropdown/Dropdown.stories.tsx b/packages/common2/src/components/Dropdown/Dropdown.stories.tsx
new file mode 100644
index 00000000000..d1f825a5772
--- /dev/null
+++ b/packages/common2/src/components/Dropdown/Dropdown.stories.tsx
@@ -0,0 +1,347 @@
+import React, { useState } from 'react'
+import { Button } from '../Button'
+import { Divider } from '../Divider'
+import {
+ IconSettings,
+ IconLogOut,
+ IconChevronDown,
+ IconChevronRight,
+ IconHardDrive,
+} from './../../index'
+import Typography from '../Typography'
+
+import { Dropdown } from './'
+import { IconLogIn } from '../Icon/icons/IconLogIn'
+import { Input } from '../Input'
+import { IconSearch } from '../Icon/icons/IconSearch'
+
+export default {
+ title: 'Navigation/Dropdown',
+ component: Dropdown,
+}
+
+const DemoContainer = ({ children }: { children: React.ReactNode }) => (
+ <div
+ className="
+ flex justify-center items-center
+ w-screen h-screen
+ "
+ >
+ <div
+ className="
+ p-3 px-5
+ bg-scale-300 border border-scale-600 rounded flex gap-4
+ justify-between
+ items-center
+ w-3/4
+ "
+ >
+ <div>
+ <h4 className="text-scale-1200 text-base">
+ Shall we nest some components?
+ </h4>
+ <p className="text-scale-1100 text-sm">yea sure, go on then.</p>
+ </div>
+ <div className="relative">{children}</div>
+ </div>
+ </div>
+)
+
+export const DefaultFull = (args: any) => {
+ const [checked, setChecked] = useState(false)
+ const [value, setValue] = useState('red')
+
+ return (
+ <DemoContainer>
+ <Dropdown
+ side="bottom"
+ align="end"
+ overlay={[
+ <Dropdown.Misc>
+ <div>
+ <Typography.Text small className="block">
+ Signed in as{' '}
+ </Typography.Text>
+
+ <Typography.Text small strong>
+ </Typography.Text>
+ </div>
+ </Dropdown.Misc>,
+ <Dropdown.Seperator />,
+ <Dropdown.Label>Group label</Dropdown.Label>,
+ <Dropdown.Item onClick={() => console.log('clicked')}>
+ Account
+ </Dropdown.Item>,
+ <Dropdown.Item>
+ Settings <Dropdown.RightSlot>⌘+T</Dropdown.RightSlot>
+ </Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Checkbox checked={checked} onChange={setChecked}>
+ Show subtitles
+ </Dropdown.Checkbox>,
+ <Dropdown.Seperator />,
+ <Dropdown.RadioGroup value={value} onChange={setValue}>
+ <Dropdown.Radio value={'red'}>Red</Dropdown.Radio>
+ <Dropdown.Radio value={'blue'}>Blue</Dropdown.Radio>
+ <Dropdown.Radio value={'green'}>Green</Dropdown.Radio>
+ </Dropdown.RadioGroup>,
+ <Dropdown.Seperator />,
+ <Dropdown
+ isNested
+ overlay={[
+ <Dropdown.RadioGroup value={value} onChange={setValue}>
+ <Dropdown.Radio value={'red'}>Red</Dropdown.Radio>
+ <Dropdown.Radio value={'blue'}>Blue</Dropdown.Radio>
+ <Dropdown.Radio value={'green'}>Green</Dropdown.Radio>
+ </Dropdown.RadioGroup>,
+ <Dropdown.Seperator />,
+ <Dropdown.Label>Group label</Dropdown.Label>,
+ <Dropdown.Item onClick={() => console.log('clicked')}>
+ Account
+ </Dropdown.Item>,
+ <Dropdown.Item>
+ Settings <Dropdown.RightSlot>⌘+T</Dropdown.RightSlot>
+ </Dropdown.Item>,
+ ]}
+ >
+ <Dropdown.TriggerItem icon={<IconHardDrive />}>
+ Open sub menu{' '}
+ <Dropdown.RightSlot>
+ <IconChevronRight size={14} />
+ </Dropdown.RightSlot>
+ </Dropdown.TriggerItem>
+ </Dropdown>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item icon={<IconLogIn size="tiny" />}>
+ Log out
+ </Dropdown.Item>,
+ ]}
+ >
+ <Button as="span" type="default" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </DemoContainer>
+ )
+}
+
+export const Default = (args: any) => (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <Dropdown
+ {...args}
+ overlay={[
+ <Dropdown.Misc>
+ <div>
+ <Typography.Text small className="block">
+ Signed in as{' '}
+ </Typography.Text>
+
+ <Typography.Text small strong>
+ </Typography.Text>
+ </div>
+ </Dropdown.Misc>,
+ <Dropdown.Seperator />,
+ <Dropdown.Label>Group label</Dropdown.Label>,
+ <Dropdown.Item onClick={() => console.log('clicked')}>
+ Account
+ </Dropdown.Item>,
+ <Dropdown.Item>
+ Settings <Dropdown.RightSlot>⌘+T</Dropdown.RightSlot>
+ </Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item icon={<IconLogIn size="tiny" />}>Log out</Dropdown.Item>,
+ ]}
+ >
+ <Button as="span" type="secondary" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+)
+
+Default.args = {}
+
+export const doNotcloseOverlay = (args: any) => (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <Dropdown
+ {...args}
+ overlay={[
+ <Dropdown.Misc>
+ <Typography.Text>Signed in as </Typography.Text>
+ <Typography.Text strong>[email protected] </Typography.Text>
+ </Dropdown.Misc>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item>Account</Dropdown.Item>,
+ <Dropdown.Item>Settings</Dropdown.Item>,
+ <Dropdown.Item>
+ <Button icon={<IconLogOut />}>Log out</Button>
+ </Dropdown.Item>,
+ ]}
+ >
+ <Button as="span" type="outline" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+)
+
+doNotcloseOverlay.args = {}
+
+export const withCustomStyles = (args: any) => (
+ <div
+ style={{
+ margin: '0 auto',
+ minHeight: '420px',
+ marginTop: '220px',
+ marginLeft: '400px',
+ }}
+ >
+ <Dropdown
+ overlayStyle={{ minWidth: '500px' }}
+ placement="bottomRight"
+ {...args}
+ overlay={[
+ <Dropdown.Item>
+ <Typography.Text>Signed in as </Typography.Text>
+ <Typography.Text strong>[email protected] </Typography.Text>
+ </Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item>Account</Dropdown.Item>,
+ <Dropdown.Item>Settings</Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item>
+ <Button type="default" icon={<IconLogOut />}>
+ Log out
+ </Button>
+ </Dropdown.Item>,
+ ]}
+ >
+ <Button as="span" type="outline" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+)
+
+withCustomStyles.args = {}
+
+export const SearchList = (args: any) => (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <Dropdown
+ {...args}
+ overlay={[
+ <Dropdown.Item>
+ <Input size="tiny" icon={<IconSearch />} autofocus={false} />
+ </Dropdown.Item>,
+ <Dropdown.Item>
+ <Typography.Text>Signed in as </Typography.Text>
+ <Typography.Text strong>[email protected] </Typography.Text>
+ </Dropdown.Item>,
+ <Dropdown.Item>
+ <Typography.Text>Signed in as </Typography.Text>
+ <Typography.Text strong>[email protected] </Typography.Text>
+ </Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item icon={<IconLogIn />}>
+ <Typography.Text>Log out</Typography.Text>
+ </Dropdown.Item>,
+ ]}
+ >
+ <Button as="span" type="outline" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+)
+
+SearchList.args = {}
+
+export const Checkbox = (args: any) => {
+ const [checked, setChecked] = useState(false)
+
+ return (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <Dropdown
+ {...args}
+ overlay={[
+ <Dropdown.Item icon={<IconSettings size="small" />}>
+ Account
+ </Dropdown.Item>,
+ <Dropdown.Item>Settings</Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Checkbox checked={checked} onChange={setChecked}>
+ Show subtitles
+ </Dropdown.Checkbox>,
+ ]}
+ >
+ <Button as="span" type="outline" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+ )
+}
+
+export const Radio = (args: any) => {
+ const [value, setValue] = useState('red')
+
+ return (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <Dropdown
+ {...args}
+ overlay={[
+ <Dropdown.RadioGroup value={value} onChange={setValue}>
+ <Dropdown.Radio value={'red'}>Red</Dropdown.Radio>
+ <Dropdown.Radio value={'blue'}>Blue</Dropdown.Radio>
+ <Dropdown.Radio value={'green'}>Green</Dropdown.Radio>
+ </Dropdown.RadioGroup>,
+ ]}
+ >
+ <Button as="span" type="outline" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+ )
+}
+
+export const Nested = (args: any) => {
+ const [value, setValue] = useState('red')
+
+ return (
+ <div style={{ margin: '0 auto', minHeight: '420px', marginTop: '220px' }}>
+ <Dropdown
+ {...args}
+ overlay={
+ <>
+ <Dropdown.RadioGroup value={value} onChange={setValue}>
+ <Dropdown.Radio value={'red'}>Red</Dropdown.Radio>
+ <Dropdown.Radio value={'blue'}>Blue</Dropdown.Radio>
+ <Dropdown.Radio value={'green'}>Green</Dropdown.Radio>
+ </Dropdown.RadioGroup>
+
+ <Dropdown
+ isNested
+ overlay={[
+ <Dropdown.RadioGroup value={value} onChange={setValue}>
+ <Dropdown.Radio value={'red'}>Red</Dropdown.Radio>
+ <Dropdown.Radio value={'blue'}>Blue</Dropdown.Radio>
+ <Dropdown.Radio value={'green'}>Green</Dropdown.Radio>
+ </Dropdown.RadioGroup>,
+ ]}
+ >
+ <Dropdown.TriggerItem>Open sub menu</Dropdown.TriggerItem>
+ </Dropdown>
+ <Dropdown.Item>hello</Dropdown.Item>
+ </>
+ }
+ >
+ <Button as="span" type="outline" iconRight={<IconChevronDown />}>
+ Click for dropdown
+ </Button>
+ </Dropdown>
+ </div>
+ )
+}
diff --git a/packages/common2/src/components/Dropdown/Dropdown.tsx b/packages/common2/src/components/Dropdown/Dropdown.tsx
new file mode 100644
index 00000000000..9e50ceef6dd
--- /dev/null
+++ b/packages/common2/src/components/Dropdown/Dropdown.tsx
@@ -0,0 +1,226 @@
+import React, { useState } from 'react'
+
+import * as RadixDropdown from '@radix-ui/react-dropdown-menu'
+import { IconCheck } from '../Icon/icons/IconCheck'
+
+// @ts-ignore
+// import DropdownStyles from './Dropdown.module.css'
+
+import type * as RadixDropdownTypes from '@radix-ui/react-dropdown-menu/'
+
+import styleHandler from '../../lib/theme/styleHandler'
+import { IconTarget } from '../Icon/icons/IconTarget'
+
+interface RootProps {
+ open?: boolean
+ arrow?: boolean
+ onOpenChange?: RadixDropdownTypes.DropdownMenuProps['onOpenChange'] // DropdownMenu['onOpenChange']
+ side?: RadixDropdownTypes.DropdownMenuContentProps['side']
+ align?: RadixDropdownTypes.DropdownMenuContentProps['align']
+ sideOffset?: RadixDropdownTypes.DropdownMenuContentProps['sideOffset']
+ overlay?: React.ReactNode
+ children?: React.ReactNode
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge' | 'content'
+ className?: string
+ style?: React.CSSProperties
+ isNested?: Boolean
+}
+
+function Dropdown({
+ open,
+ onOpenChange,
+ align = 'center', //Default value
+ side = 'bottom', //Default value
+ sideOffset = 6,
+ overlay,
+ children,
+ size = 'medium',
+ className,
+ style,
+ arrow,
+ isNested,
+}: RootProps) {
+ let __styles = styleHandler('dropdown')
+
+ let classes = [__styles.content, __styles.size[size]]
+ if (className) {
+ classes.push(className)
+ }
+
+ return (
+ <RadixDropdown.Root onOpenChange={onOpenChange} open={open}>
+ {isNested ? (
+ <RadixDropdown.TriggerItem className={[__styles.item_nested].join(' ')}>
+ {children}
+ </RadixDropdown.TriggerItem>
+ ) : (
+ <RadixDropdown.Trigger className={__styles.trigger}>{children}</RadixDropdown.Trigger>
+ )}
+
+ <RadixDropdown.Content
+ portalled={true}
+ sideOffset={sideOffset}
+ side={side}
+ align={align}
+ className={classes.join(' ')}
+ style={style}
+ >
+ {arrow && (
+ <RadixDropdown.Arrow className={__styles.arrow} offset={10}></RadixDropdown.Arrow>
+ )}
+ {overlay}
+ </RadixDropdown.Content>
+ </RadixDropdown.Root>
+ )
+}
+
+export function RightSlot({ children }: any) {
+ let __styles = styleHandler('dropdown')
+ return <div className={__styles.right_slot}>{children}</div>
+}
+
+interface ItemProps {
+ children: React.ReactNode
+ icon?: React.ReactNode
+ disabled?: boolean
+ onClick?: (event: Event) => void
+ rightSlot?: React.ReactNode
+}
+
+export function Item({ children, icon, disabled, onClick, rightSlot }: ItemProps) {
+ let __styles = styleHandler('dropdown')
+
+ return (
+ <RadixDropdown.Item className={__styles.item} disabled={disabled} onSelect={onClick}>
+ {icon && icon}
+ <span>{children}</span>
+ </RadixDropdown.Item>
+ )
+}
+
+export function TriggerItem({ children, icon, disabled }: ItemProps) {
+ let __styles = styleHandler('dropdown')
+ return (
+ <div className={__styles.item}>
+ {icon && icon}
+ <span>{children}</span>
+ </div>
+ )
+}
+
+export function Misc({ children, icon }: ItemProps) {
+ let __styles = styleHandler('dropdown')
+ return (
+ <div className={__styles.misc}>
+ {icon && icon}
+ {children}
+ </div>
+ )
+}
+
+interface CheckboxProps {
+ children: React.ReactNode
+ checked?: boolean
+ onChange?(x: boolean): void
+ disabled?: boolean
+ ItemIndicator?: React.ReactNode
+}
+
+export function Seperator() {
+ let __styles = styleHandler('dropdown')
+
+ return <RadixDropdown.Separator className={__styles.seperator} />
+}
+
+export function Checkbox({
+ children,
+ checked: propsChecked,
+ onChange,
+ disabled,
+ ItemIndicator,
+}: CheckboxProps) {
+ const [checked, setChecked] = useState(propsChecked ? propsChecked : false)
+
+ let __styles = styleHandler('dropdown')
+
+ const handleChange = (e: boolean) => {
+ if (onChange) onChange(e)
+ setChecked(e)
+ }
+
+ return (
+ <RadixDropdown.CheckboxItem
+ checked={checked}
+ onCheckedChange={handleChange}
+ className={`${__styles.item} ${__styles.input}`}
+ disabled={disabled}
+ >
+ <RadixDropdown.ItemIndicator className={__styles.check}>
+ {ItemIndicator ? ItemIndicator : <IconCheck size="tiny" strokeWidth={3} />}
+ <RadixDropdown.CheckboxItem />
+ </RadixDropdown.ItemIndicator>
+ <span>{children}</span>
+ </RadixDropdown.CheckboxItem>
+ )
+}
+
+interface RadioProps {
+ children: React.ReactNode
+ value: string
+ ItemIndicator?: React.ReactNode
+}
+
+export function Radio({ children, value, ItemIndicator }: RadioProps) {
+ let __styles = styleHandler('dropdown')
+
+ return (
+ <RadixDropdown.RadioItem value={value} className={`${__styles.item} ${__styles.input}`}>
+ <RadixDropdown.ItemIndicator className={__styles.check}>
+ {ItemIndicator ? ItemIndicator : <IconTarget strokeWidth={6} size={10} />}
+ </RadixDropdown.ItemIndicator>
+ <span>{children}</span>
+ </RadixDropdown.RadioItem>
+ )
+}
+
+interface RadioGroupProps {
+ children: React.ReactNode
+ value: string
+ onChange?(x: string): void
+}
+
+export function RadioGroup({ children, value: propsValue, onChange }: RadioGroupProps) {
+ const [value, setValue] = useState(propsValue ? propsValue : '')
+
+ const handleChange = (e: string) => {
+ if (onChange) onChange(e)
+ setValue(e)
+ }
+
+ return (
+ <RadixDropdown.RadioGroup value={value} onValueChange={handleChange}>
+ {children}
+ </RadixDropdown.RadioGroup>
+ )
+}
+
+interface LabelProps {
+ children: React.ReactNode
+}
+
+export function Label({ children }: LabelProps) {
+ let __styles = styleHandler('dropdown')
+
+ return <RadixDropdown.Label className={__styles.label}>{children}</RadixDropdown.Label>
+}
+
+Dropdown.Item = Item
+Dropdown.Misc = Misc
+Dropdown.Checkbox = Checkbox
+Dropdown.Radio = Radio
+Dropdown.RadioGroup = RadioGroup
+Dropdown.Label = Label
+Dropdown.Seperator = Seperator
+Dropdown.RightSlot = RightSlot
+Dropdown.TriggerItem = TriggerItem
+export default Dropdown
diff --git a/packages/common2/src/components/Dropdown/index.tsx b/packages/common2/src/components/Dropdown/index.tsx
new file mode 100644
index 00000000000..a34974dee8c
--- /dev/null
+++ b/packages/common2/src/components/Dropdown/index.tsx
@@ -0,0 +1 @@
+export { default as Dropdown } from './Dropdown'
diff --git a/packages/common2/src/components/Form/Form.css b/packages/common2/src/components/Form/Form.css
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/packages/common2/src/components/Form/Form.stories.tsx b/packages/common2/src/components/Form/Form.stories.tsx
new file mode 100644
index 00000000000..277ae09180e
--- /dev/null
+++ b/packages/common2/src/components/Form/Form.stories.tsx
@@ -0,0 +1,569 @@
+import { Form } from '.'
+import {
+ Input,
+ Button,
+ InputNumber,
+ Toggle,
+ Checkbox,
+ Radio,
+ Select,
+ Listbox,
+} from '../../index'
+
+import * as Yup from 'yup'
+import { User } from '../Icon/IconImportHandler'
+import React from 'react'
+
+export default {
+ title: 'Data Input/Form',
+ component: Form,
+}
+
+interface Values {
+ email: string
+ last_name: string
+ profession: string
+ number: number | undefined
+ // remember_me: boolean
+ checkbox_alone: boolean
+ favorite_food: string
+ check_3: boolean
+ check_2: boolean
+ check_1: boolean
+ textarea: string
+ toggle: boolean
+ people: number | undefined
+}
+
+const INITIAL_VALUES: Values = {
+ email: '',
+ last_name: '',
+ profession: '',
+ number: undefined,
+ checkbox_alone: false,
+ // remember_me: false,
+ favorite_food: '',
+ check_3: false,
+ check_2: true,
+ check_1: false,
+ textarea: '',
+ toggle: true,
+ people: undefined,
+}
+
+export const InputLevelValidation = () => {
+ function validateEmail(value: string) {
+ console.log('validateEmail running')
+ let error
+ if (!value) {
+ error = 'Required'
+ } else if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(value)) {
+ error = 'Invalid email address'
+ }
+ return error
+ }
+
+ return (
+ <Form
+ initialValues={{
+ email: '',
+ firstname: '',
+ }}
+ validateOnBlur
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ >
+ {({ isSubmitting }: { isSubmitting: boolean }) => (
+ <div className="space-y-4">
+ <Input
+ id="email"
+ label="email"
+ placeholder="something in here"
+ labelOptional="This is a required field"
+ validation={validateEmail}
+ />
+ {/* <Input
+ id="firstname"
+ label="firstname"
+ placeholder="something in here"
+ /> */}
+ <Button loading={isSubmitting} type="primary" htmlType="submit">
+ Submit
+ </Button>
+ </div>
+ )}
+ </Form>
+ )
+}
+
+export const InputLevelValidationYip = () => {
+ // validation schema
+ const SignupSchema = Yup.object().shape({
+ firstname: Yup.string()
+ .min(2, 'Too Short!')
+ .max(50, 'Too Long!')
+ .required('Required'),
+ lastname: Yup.string()
+ .min(2, 'Too Short!')
+ .max(50, 'Too Long!')
+ .required('Required'),
+ email: Yup.string().email('Invalid email').required('Required'),
+ })
+
+ return (
+ <Form
+ initialValues={{
+ firstname: '',
+ lastname: '',
+ email: '',
+ }}
+ validationSchema={SignupSchema}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ >
+ {({ isSubmitting }: any) => (
+ <div className="space-y-4">
+ <Input
+ id="firstname"
+ name="firstname"
+ label="firstname"
+ placeholder="firstname"
+ />
+ <Input
+ id="lastname"
+ name="lastname"
+ label="lastname"
+ placeholder="lastname"
+ />
+ <Input
+ id="email"
+ name="email"
+ label="Email"
+ placeholder="This is your email"
+ />
+ <Button loading={isSubmitting} type="primary" htmlType="submit">
+ Submit
+ </Button>
+ </div>
+ )}
+ </Form>
+ )
+}
+
+const people = [
+ {
+ value: 1,
+ label: 'Wade Cooper',
+ avatar:
+ 'https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 2,
+ label: 'Arlene Mccoy',
+ avatar:
+ 'https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 3,
+ label: 'Devon Webb',
+ avatar:
+ 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2.25&w=256&h=256&q=80',
+ },
+ {
+ value: 4,
+ label: 'Tom Cook',
+ avatar:
+ 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 5,
+ label: 'Tanya Fox',
+ avatar:
+ 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 6,
+ label: 'Hellen Schmidt',
+ avatar:
+ 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 7,
+ label: 'Caroline Schultz',
+ avatar:
+ 'https://images.unsplash.com/photo-1568409938619-12e139227838?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 8,
+ label: 'Mason Heaney',
+ avatar:
+ 'https://images.unsplash.com/photo-1531427186611-ecfd6d936c79?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 9,
+ label: 'Claudie Smitham',
+ avatar:
+ 'https://images.unsplash.com/photo-1584486520270-19eca1efcce5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 10,
+ label: 'Emil Schaefer',
+ avatar:
+ 'https://images.unsplash.com/photo-1561505457-3bcad021f8ee?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+]
+
+export const LargerExample = () => {
+ return (
+ <>
+ <Form
+ initialValues={INITIAL_VALUES}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ validate={(values: Values) => {
+ const errors: any = {}
+
+ console.log('values for validation', values)
+
+ if (!values.email) {
+ errors.email = 'Required'
+ } else if (
+ !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(values.email)
+ ) {
+ errors.email = 'Invalid email address'
+ }
+
+ if (!values.profession) {
+ errors.profession = 'Required'
+ }
+
+ if (!values.textarea) {
+ errors.textarea = 'Required'
+ }
+
+ if (!values.number) {
+ errors.number = 'Required'
+ }
+
+ if (values.number <= 13) {
+ errors.number = 'Must be a number above 13'
+ }
+
+ if (values.number >= 32) {
+ errors.number = 'Must be a number below 32'
+ }
+
+ if (!values.favorite_food) {
+ errors.favorite_food = 'You must select a favourite food'
+ }
+
+ if (!values.toggle) {
+ errors.toggle = 'This needs to be turned on'
+ }
+
+ // if (!values.people) {
+ // errors.people = 'Please select a person'
+ // }
+
+ // if (values.remember_me)
+
+ return errors
+ }}
+ >
+ {({ isSubmitting }: any) => (
+ <>
+ <div className="space-y-8">
+ <p>{isSubmitting ? 'submitting' : 'not submitting'}</p>
+ <Input
+ id="email"
+ label="Email"
+ placeholder="[email protected]"
+ />
+ <Input
+ id="last_name"
+ label="last name"
+ placeholder="something in here"
+ />
+ <Select
+ id="profession"
+ label="Profession"
+ placeholder="something in here"
+ >
+ <Select.Option key="empty-enum" value="">
+ ---
+ </Select.Option>
+ <Select.Option value="teacher">Teacher</Select.Option>
+ <Select.Option value="firefighter">Firefighter</Select.Option>
+ <Select.Option value="police">Police</Select.Option>
+ </Select>
+ <InputNumber
+ id="number"
+ label="Number"
+ placeholder="124"
+ labelOptional="Must be between 13 - 31"
+ />
+ <Checkbox id="checkbox_alone" label="checkbox_alone" />
+ <Input.TextArea id="textarea" rows={5} name="textarea" />
+ <Checkbox.Group
+ label="Group of checkboxes"
+ layout="horizontal"
+ labelOptional="Optional label"
+ descriptionText="You can also show label hint text here"
+ >
+ <Checkbox
+ name="check_1"
+ id="check_1"
+ label="Remember me"
+ description="hello world"
+ />
+ <Checkbox
+ name="check_2"
+ id="check_2"
+ label="Remember me"
+ description="hello world"
+ />
+ <Checkbox
+ name="check_3"
+ id="check_3"
+ label="Remember me"
+ description="hello world"
+ />
+ </Checkbox.Group>
+ <Toggle id="toggle" label="Remember me" layout="horizontal" />
+ <Radio.Group
+ layout="horizontal"
+ name="favorite_food"
+ label="favorite_food"
+ type="list"
+ >
+ <Radio value="pizza" label="Pizza" description="hello world" />
+ <Radio
+ value="burger"
+ label="Burger"
+ description="hello world"
+ />
+ <Radio value="fries" label="Fries" description="hello world" />
+ </Radio.Group>
+
+ <Listbox
+ id="people"
+ label="Choose a person"
+ layout="horizontal"
+ descriptionText="Choose a person for this role"
+ >
+ {people.map((person) => {
+ return (
+ <Listbox.Option
+ key={`people-${person.value}`}
+ value={person.value}
+ label={person.label}
+ addOnBefore={({ active, selected }: any) => (
+ <img
+ src={person.avatar}
+ alt=""
+ className="h-6 w-6 rounded-full"
+ />
+ )}
+ children={({ active, selected }: any) => {
+ // console.log('selected', selected)
+ // console.log('active', active)
+ return (
+ <span className={'font-normal block truncate'}>
+ {person.label}
+ </span>
+ )
+ }}
+ />
+ )
+ })}
+ </Listbox>
+
+ <Button loading={isSubmitting} type="primary" htmlType="submit">
+ Submit
+ </Button>
+ </div>
+ </>
+ )}
+ </Form>
+ </>
+ )
+}
+
+export const CardForm = () => {
+ // panel
+ const Panel = ({
+ children,
+ header,
+ footer,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ }) => (
+ <div className="bg-scale-300 border border-scale-400 rounded-md w-3/4 mx-auto my-8 shadow overflow-hidden">
+ {header && (
+ <div className="bg-scale-100 dark:bg-scale-200 px-8 py-4 border-b border-scale-400">
+ {header}
+ </div>
+ )}
+ <div className="space-y-6 py-6">{children}</div>
+ {footer}
+ </div>
+ )
+
+ const Section = ({
+ children,
+ header,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ }) => (
+ <div className="grid grid-cols-12 px-8 py-2">
+ {header}
+ {children}
+ </div>
+ )
+
+ return (
+ <>
+ <Form
+ initialValues={{ stripe_email_choice: 'emails-2' }}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ validate={(values: Values) => {
+ const errors: any = {}
+
+ return errors
+ }}
+ >
+ {({ isSubmitting }: any) => (
+ <Panel
+ header={
+ <>
+ <h3 className="text-scale-1200 text-xl font-semibold">
+ Custom Options
+ </h3>
+ <p className="text-scale-900">
+ These settings apply to payment pages you create using Stripe
+ Checkout and Payment Links.
+ </p>
+ </>
+ }
+ footer={
+ <>
+ <div className="border-t border-scale-400"></div>
+ <div className="py-3 px-6 flex gap-2 justify-end">
+ <Button
+ loading={isSubmitting}
+ type="secondary"
+ htmlType="submit"
+ >
+ Cancel
+ </Button>
+ <Button
+ loading={isSubmitting}
+ type="primary"
+ htmlType="submit"
+ >
+ Save
+ </Button>
+ </div>
+ </>
+ }
+ >
+ {/* <p>{isSubmitting ? 'submitting' : 'not submitting'}</p> */}
+ {/* <div className="border-t border-scale-400"></div> */}
+ <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ Faster checkout
+ </label>
+ }
+ >
+ <Toggle
+ className="col-span-8"
+ id="link_with_stripe"
+ label="Turn on link with Stripe"
+ layout="flex"
+ descriptionText="Go to Payment methods settings to configure Apple Pay and Google Pay."
+ />
+ </Section>
+ <div className="border-t border-scale-400"></div>
+ <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ Faster checkout
+ </label>
+ }
+ >
+ <Radio.Group
+ className="col-span-8"
+ name="stripe_email_choice"
+ id="stripe_email_choice"
+ type="list"
+ layout="vertical"
+ >
+ <Radio
+ // id="1642469211631"
+ value="emails-1"
+ label="Send emails about upcoming renewals"
+ description="hello world"
+ align="horizontal"
+ />
+ <Radio
+ // id="1642469211606"
+ value="emails-2"
+ label="Send emails about expiring cards"
+ description="hello world"
+ align="horizontal"
+ />
+ </Radio.Group>
+ </Section>
+ <div className="border-t border-scale-400"></div>
+ <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ Faster checkout
+ </label>
+ }
+ >
+ <div className="col-span-8 space-y-4">
+ <Input name="app_id" label="Application ID in Stripe" />
+ <Input
+ name="service_id"
+ label="API key"
+ descriptionText={
+ <span>
+ This can be found in{' '}
+ <span className="text-brand-900 underline cursor-pointer transition hover:text-brand-800">
+ the developer settings
+ </span>
+ </span>
+ }
+ />
+ </div>
+ </Section>
+ </Panel>
+ )}
+ </Form>
+ </>
+ )
+}
+
+export { default as AuthForm } from './examples/AuthForm'
diff --git a/packages/common2/src/components/Form/Form.tsx b/packages/common2/src/components/Form/Form.tsx
new file mode 100644
index 00000000000..791ceeaaaa6
--- /dev/null
+++ b/packages/common2/src/components/Form/Form.tsx
@@ -0,0 +1,96 @@
+import { useReducer } from 'react'
+import { useFormik, FormikConfig } from 'formik'
+import { FormContextProvider } from './FormContext'
+
+// interface Props extends FormikProps<any>, Partial FormikConfig<any> {
+interface Props
+ extends Omit<FormikConfig<any>, 'validateOnMount' | 'validateOnChange'> {
+ children: any
+ handleIsSubmitting?: any
+ handleIsValidating?: any
+ name?: string
+ id?: string
+ className?: string
+ style?: React.CSSProperties
+}
+
+function errorReducer(state: any, action: any) {
+ if (!action.error) {
+ const payload = state
+ delete payload[action.key]
+ return payload
+ }
+ if (action) {
+ return {
+ ...state,
+ [action.key]: action.error,
+ }
+ } else {
+ throw new Error()
+ }
+}
+
+export default function Form({ validate, ...props }: Props) {
+ const [fieldLevelErrors, dispatchErrors] = useReducer(errorReducer, null)
+
+ function handleFieldLevelValidation(key: any, error: string) {
+ dispatchErrors({ key, error })
+ }
+
+ const formik = useFormik({
+ validateOnBlur: true,
+ ...props,
+ validationSchema: props.validationSchema,
+ initialValues: props.initialValues,
+ onSubmit: props.onSubmit,
+ validate:
+ validate ||
+ function () {
+ return fieldLevelErrors
+ },
+ })
+
+ // console.log('values', formik.values)
+ // console.log('errors', formik.errors)
+ // console.log('touched', formik.touched)
+
+ return (
+ <form
+ id={props.id}
+ name={props.name}
+ onSubmit={formik.handleSubmit}
+ className={props.className}
+ style={props.style}
+ >
+ <FormContextProvider
+ values={formik.values}
+ errors={formik.errors}
+ formContextOnChange={formik.handleChange}
+ handleBlur={formik.handleBlur}
+ touched={formik.touched}
+ fieldLevelValidation={handleFieldLevelValidation}
+ // children={rest.children}
+ children={props.children({
+ /** map of field names to specific error for that field */
+ errors: formik.errors, // errors,
+ // /** map of field names to whether the field has been touched */
+ touched: formik.touched,
+ /** whether the form is currently submitting */
+ isSubmitting: formik.isSubmitting,
+ /** whether the form is currently validating (prior to submission) */
+ isValidating: formik.isValidating,
+ /** Number of times user tried to submit the form */
+ submitCount: formik.submitCount,
+ /** Initial values of form */
+ initialValues: formik.initialValues,
+ /** Current values of form */
+ values: formik.values,
+ /** Resets the form back to initialValues */
+ handleReset: formik.handleReset,
+ /** Resets the form with custom values */
+ resetForm: formik.resetForm,
+ })}
+ />
+ </form>
+ )
+}
diff --git a/packages/common2/src/components/Form/FormContext.tsx b/packages/common2/src/components/Form/FormContext.tsx
new file mode 100644
index 00000000000..d49db95209b
--- /dev/null
+++ b/packages/common2/src/components/Form/FormContext.tsx
@@ -0,0 +1,60 @@
+import React, { createContext, useContext } from 'react'
+
+interface ContextProps {
+ formContextOnChange: any
+ values: any
+ errors: any
+ handleBlur: React.FocusEventHandler | null
+ touched: any
+ fieldLevelValidation: any
+}
+
+interface Provider extends ContextProps {
+ children?: React.ReactNode
+}
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+const FormContext = createContext<ContextProps>({
+ formContextOnChange: null,
+ values: null,
+ errors: null,
+ handleBlur: null,
+ touched: null,
+ fieldLevelValidation: null,
+})
+
+export const FormContextProvider = (props: Provider) => {
+ const {
+ formContextOnChange,
+ values,
+ errors,
+ handleBlur,
+ touched,
+ fieldLevelValidation,
+ } = props
+
+ const value = {
+ formContextOnChange: formContextOnChange,
+ values: values,
+ errors: errors,
+ handleBlur: handleBlur,
+ touched: touched,
+ fieldLevelValidation: fieldLevelValidation,
+ }
+
+ return (
+ <FormContext.Provider value={value}>{props.children}</FormContext.Provider>
+ )
+}
+
+// context helper to avoid using a consumer component
+export const useFormContext = () => {
+ const context = useContext(FormContext)
+ if (context === undefined) {
+ throw new Error(
+ `useFormContextOnChange must be used within a FormContextProvider.`
+ )
+ }
+ return context
+}
diff --git a/packages/common2/src/components/Form/examples/AuthForm.tsx b/packages/common2/src/components/Form/examples/AuthForm.tsx
new file mode 100644
index 00000000000..b0cd32b3857
--- /dev/null
+++ b/packages/common2/src/components/Form/examples/AuthForm.tsx
@@ -0,0 +1,1234 @@
+import React, { useEffect, useReducer, useState } from 'react'
+import { Form } from './../'
+import {
+ Input,
+ Button,
+ InputNumber,
+ Toggle,
+ Checkbox,
+ Radio,
+ Select,
+ Listbox,
+ IconChevronUp,
+ IconCheckCircle,
+ IconCheck,
+ IconArrowRight,
+ IconX,
+ Tabs,
+ IconGlobe,
+ IconTrash,
+ IconAlertCircle,
+} from '../../../index'
+
+import * as Yup from 'yup'
+import { Collapsible } from '../../Collapsible'
+
+import AuthFormSchema from './AuthFormSchema.json'
+import { Modal } from '../../Modal'
+
+// import GoogleIcon './../../../static/icons/google-icon.svg'
+
+const DocsButton = () => {
+ return (
+ <button
+ className="
+ group
+ w-full
+ bg-scale-300
+ dark:bg-scale-100
+ border
+ border-scale-500 hover:border-scale-700
+ dark:border-scale-300 dark:hover:border-scale-500
+ px-6 py-4
+ my-6
+ flex gap-6 items-center
+ rounded-md shadow-sm
+ transition
+ text-left
+ "
+ >
+ <div className="transition duration-500 bg-brand-900 rounded p-1 w-10 h-10 group-hover:-rotate-3 group-hover:scale-110">
+ {/* <img
+ className="text-white w-12 h-12"
+ src="/icons/docs-illustration.svg"
+ /> */}
+ </div>
+ <div className="grow">
+ <h3 className="text-scale-1200">
+ Use authentication as the backbone of your app
+ </h3>
+ <p className="text-scale-900 text-xs">
+ Learn how to use Supabase Auth with Auth Policies to pick and choose
+ what users see what.
+ </p>
+ <p className="text-brand-900 mt-2 text-xs flex items-center gap-1">
+ See Documenation
+ <span className="transition group-hover:translate-x-1">
+ <IconArrowRight strokeWidth={2} width={12} />
+ </span>
+ </p>
+ </div>
+ <div className="text-scale-900">
+ <IconX />
+ </div>
+ </button>
+ )
+}
+
+const CardForm = () => {
+ // panel
+ const Panel = ({
+ children,
+ header,
+ footer,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ }) => (
+ <div
+ className="
+ bg-scale-100
+ dark:bg-scale-300
+
+ border border-scale-400 rounded-md my-8 shadow overflow-hidden"
+ >
+ {header && (
+ <div className="bg-scale-100 dark:bg-scale-200 px-8 py-4 border-b border-scale-400">
+ {header}
+ </div>
+ )}
+ <div className="space-y-6 py-6">{children}</div>
+ {footer}
+ </div>
+ )
+
+ const Section = ({
+ children,
+ header,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ }) => (
+ <div className="grid grid-cols-12 px-8 py-2">
+ {header}
+ {children}
+ </div>
+ )
+
+ return (
+ <>
+ <Form
+ id="general_form"
+ initialValues={{
+ enable_signups: true,
+ jwt_expiry: 3600,
+ }}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ validate={(values: Values) => {
+ const errors: any = {}
+ if (!values.jwt_expiry) {
+ errors.jwt_expiry = 'This is required'
+ }
+ if (values.jwt_expiry > 604800) {
+ errors.jwt_expiry =
+ 'The maxiumum allowed is 604,800 seconds. Use a smaller number of seconds.'
+ }
+ return errors
+ }}
+ >
+ {({ isSubmitting, handleReset }: any) => (
+ <Panel
+ footer={
+ <>
+ <div className="border-t border-scale-400"></div>
+ <div className="py-3 px-6 flex gap-2 justify-end">
+ <Button
+ type="default"
+ htmlType="reset"
+ onClick={() => handleReset()}
+ >
+ Cancel
+ </Button>
+ <Button
+ loading={isSubmitting}
+ type="primary"
+ htmlType="submit"
+ form="general_form"
+ >
+ Save
+ </Button>
+ </div>
+ </>
+ }
+ >
+ <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ User Signups
+ </label>
+ }
+ >
+ <Toggle
+ id="enable_signups"
+ className="col-span-8"
+ label="Allow new users to sign up"
+ layout="flex"
+ descriptionText="If this is disabled, new users will not be able to sign up to your application."
+ />
+ </Section>
+ <div className="border-t border-scale-400"></div>
+ <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ User Sessions
+ </label>
+ }
+ >
+ <InputNumber
+ className="col-span-8"
+ id="jwt_expiry"
+ label="JWT expiry limit"
+ descriptionText="How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week)."
+ />
+ </Section>
+ </Panel>
+ )}
+ </Form>
+ </>
+ )
+}
+
+// type to do later..
+let initialState: any = {}
+
+AuthFormSchema.map((provider) => {
+ initialState[`${provider.name.toLowerCase()}-active`] =
+ provider.name == 'Email' ? true : false
+ initialState[`${provider.name.toLowerCase()}-app-id`] = ''
+ initialState[`${provider.name.toLowerCase()}-id-key`] = ''
+})
+
+console.log('form initialState', initialState)
+
+function providersReducer(state, action) {
+ switch (action.type) {
+ case 'update':
+ return Object.assign(state, action.values)
+ // case 'decrement':
+ // return { count: state.count - 1 }
+ default:
+ throw new Error()
+ }
+}
+
+const AuthForm = () => {
+ const [providersFormState, dispatchProvidersForm] = useReducer(
+ providersReducer,
+ initialState
+ )
+
+ console.log('providersFormState from useState', providersFormState)
+
+ // panel
+ const Panel = ({
+ children,
+ header,
+ footer,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ }) => (
+ <div className="bg-scale-300 border border-scale-400 rounded-md w-3/4 mx-auto my-8 shadow overflow-hidden">
+ {header && (
+ <div className="bg-scale-100 dark:bg-scale-200 px-8 py-4 border-b border-scale-400">
+ {header}
+ </div>
+ )}
+ <div className="space-y-6 py-6">{children}</div>
+ {footer}
+ </div>
+ )
+
+ const Section = ({
+ children,
+ header,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ }) => (
+ <div className="grid grid-cols-12 px-8 py-2">
+ {header}
+ {children}
+ </div>
+ )
+
+ const CollapsibleContainer = ({
+ children,
+ header,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ }) => {
+ return (
+ <div
+ className="
+ bg-scale-400 border border-scale-500 mx-auto shadow overflow-hidden
+ first:rounded-tr first:rounded-tl
+ last:rounded-br last:rounded-bl
+ hover:border-scale-700
+ hover:bg-scale-500
+ transition
+ "
+ >
+ {children}
+ </div>
+ )
+ }
+
+ type formObj = {
+ type: string
+ name: string
+ label: string
+ description: string
+ }
+
+ interface Provider {
+ name: string
+ icon: string
+ form: formObj[]
+ }
+
+ const ProviderForm = ({ provider }: { provider: Provider }) => {
+ const [open, setOpen] = useState(false)
+ const [active, setActive] = useState(
+ providersFormState[`${provider.name.toLowerCase()}-active`]
+ )
+
+ console.log('panel active state', active)
+
+ return (
+ // <CollapsibleContainer>
+ <Collapsible
+ open={open}
+ onOpenChange={setOpen}
+ className="
+ bg-scale-100 dark:bg-scale-300
+ hover:bg-scale-200 dark:hover:bg-scale-500
+ data-open:bg-scale-200 dark:data-open:bg-scale-500
+ border
+ border-scale-300 dark:border-scale-500
+ hover:border-scale-500 dark:hover:border-scale-700
+
+ mx-auto shadow overflow-hidden
+ first:rounded-tr first:rounded-tl
+ last:rounded-br last:rounded-bl
+
+ data-open:border-scale-700
+ data-open:pb-px
+
+ transition
+ -space-y-px col-span-12
+ hover:z-50
+ "
+ >
+ <Collapsible.Trigger asChild>
+ <button
+ type="button"
+ className="
+
+ group text-scale-1200
+ flex
+ justify-between items-center w-full rounded p-3 px-6"
+ >
+ <div className="flex gap-3 items-center">
+ <IconChevronUp
+ className="text-scale-800 transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
+ strokeWidth={2}
+ />
+
+ <img
+ className="w-6 fill-red-400"
+ src={`/icons/${provider.icon}.svg`}
+ width={21}
+ alt={`${provider.name} auth icon`}
+ />
+
+ <span className="text-base">{provider.name}</span>
+ </div>
+ <div className="flex gap-3 items-center">
+ {active ? (
+ <div className="bg-brand-200 border border-brand-700 py-1 px-1 text-brand-900 text-xs rounded-full flex gap-1 items-center">
+ <span className="text-xs bg-brand-900 rounded-full p-0.5 text-brand-200">
+ <IconCheck strokeWidth={2} size={12} />
+ </span>
+ <span className="px-1">Enabled</span>
+ </div>
+ ) : (
+ <div className="bg-scale-100 dark:bg-scale-300 border border-scale-500 dark:border-scale-700 py-1 px-3 text-scale-900 text-xs rounded-md">
+ Disabled
+ </div>
+ )}
+ </div>
+ </button>
+ </Collapsible.Trigger>
+ <Form
+ name={`provider-${provider.name}-form`}
+ initialValues={{
+ [`${provider.name.toLowerCase()}-active`]:
+ providersFormState[`${provider.name.toLowerCase()}-active`] ||
+ // empty form should have this as enabled for UX
+ true,
+ [`${provider.name.toLowerCase()}-app-id`]:
+ providersFormState[`${provider.name.toLowerCase()}-app-id`],
+ [`${provider.name.toLowerCase()}-id-key`]:
+ providersFormState[`${provider.name.toLowerCase()}-id-key`],
+ }}
+ validate={(values) => {
+ const errors: any = {}
+
+ console.log('validation values', values)
+
+ const input_active = `${provider.name.toLowerCase()}-active`
+ const input_app_id = `${provider.name.toLowerCase()}-app-id`
+ const input_id_key = `${provider.name.toLowerCase()}-id-key`
+
+ if (values[input_app_id] && values[input_app_id].length < 10)
+ errors[input_app_id] =
+ 'App ID must be at least 10 characters long'
+ if (values[input_app_id] && values[input_id_key].length < 10)
+ errors[input_id_key] =
+ 'Secret must be at least 10 characters long'
+
+ if (values[input_active]) {
+ if (!values[input_app_id])
+ errors[input_app_id] =
+ 'You need to input an application ID if you want to enable this provider.'
+ if (!values[input_id_key])
+ errors[input_id_key] =
+ 'You need to input an application secret if you want to enable this provider.'
+ }
+
+ return errors
+ }}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ // alert(JSON.stringify(values, null, 2))
+ dispatchProvidersForm({ type: 'update', values: values })
+ setActive(values[`${provider.name.toLowerCase()}-active`])
+ setSubmitting(false)
+ setOpen(false)
+ }, 400)
+ }}
+ >
+ {({ isSubmitting, handleReset }: any) => (
+ <Collapsible.Content>
+ <div
+ className="
+ bg-scale-100 dark:bg-scale-300
+ group text-scale-1200 border-t border-scale-500 py-6 px-6
+ "
+ >
+ <div className="space-y-6 max-w-md mx-auto">
+ <Toggle
+ id={`${provider.name.toLowerCase()}-active`}
+ name={`${provider.name.toLowerCase()}-active`}
+ label={`Enable ${provider.name} Provider`}
+ layout="flex"
+ />
+ <div className="border-t border-scale-400"></div>
+ {provider.form.map((x) => {
+ return (
+ <Input
+ id={x.name}
+ key={x.name}
+ name={x.name}
+ label={x.label}
+ descriptionText={x.description}
+ layout="vertical"
+ />
+ )
+ })}
+ <div className="border-t border-scale-400"></div>
+ <div className="flex items-center gap-3 justify-end">
+ <Button
+ htmlType="reset"
+ onClick={() => {
+ handleReset()
+ setOpen(false)
+ }}
+ type="secondary"
+ >
+ Cancel
+ </Button>
+ <Button htmlType="submit" loading={isSubmitting}>
+ Save
+ </Button>
+ </div>
+ </div>
+ </div>
+ </Collapsible.Content>
+ )}
+ </Form>
+ </Collapsible>
+ // </CollapsibleContainer>
+ )
+ }
+
+ return (
+ <div className="mx-auto my-8">
+ <div className="-space-y-px">
+ {AuthFormSchema.map((provider: Provider) => {
+ return <ProviderForm provider={provider} />
+ })}
+ </div>
+ </div>
+ )
+}
+
+// type to do later..
+let domainInitialState: any = [
+ 'https://summersmuir.com',
+ 'http://localhost:3000',
+]
+
+// AuthFormSchema.map((provider) => {
+// domainInitialState[`${provider.name.toLowerCase()}-active`] =
+// provider.name == 'Email' ? true : false
+// domainInitialState[`${provider.name.toLowerCase()}-app-id`] = ''
+// domainInitialState[`${provider.name.toLowerCase()}-id-key`] = ''
+// })
+
+console.log('form domainInitialState', domainInitialState)
+
+// function domainsReducer(state, action) {
+// switch (action.type) {
+// case 'update':
+// let _state = []
+// _state.push(...state)
+// _state.push(action.values.domain)
+// console.log('new state', _state)
+// return _state
+// // case 'remove':
+// // _state.push(...state)
+// // _state = _state.filter((e: any) => e !== action.values)
+// // console.log('new state', _state)
+// // return _state
+// // case 'decrement':
+// // return { count: state.count - 1 }
+// default:
+// throw new Error()
+// }
+// }
+
+function domainsReducer(state, action) {
+ let _state = []
+ switch (action.type) {
+ case 'update':
+ _state.push(...state)
+ _state.push(action.values.domain)
+ console.log('new state', _state)
+ return _state
+ case 'remove':
+ _state.push(...state)
+ _state = _state.filter((e: any) => e !== action.values)
+ console.log('new state', _state)
+ return _state
+ // case 'decrement':
+ // return { count: state.count - 1 }
+ default:
+ throw new Error()
+ }
+}
+
+const DomainsForm = () => {
+ const [domainsFormState, dispatchDomainsForm] = useReducer(
+ domainsReducer,
+ domainInitialState
+ )
+
+ const [deleteOpen, setDeleteOpen] = useState(false)
+ const [deleteLoading, setDeleteLoading] = useState(false)
+ const [selectedDomain, setSelected] = useState('')
+
+ console.log('domainsFormState from useState', domainsFormState)
+
+ type formObj = {
+ type: string
+ name: string
+ label: string
+ description: string
+ }
+
+ interface Provider {
+ name: string
+ icon: string
+ form: formObj[]
+ }
+
+ const DomainsForm = () => {
+ // const [active, setActive] = useState(
+ // domainsFormState[`${provider.name.toLowerCase()}-active`]
+ // )
+ const [open, setOpen] = useState(false)
+
+ // console.log('panel active state', active)
+
+ return (
+ <>
+ <div className="flex items-center justify-between my-6">
+ <div>
+ <h3 className="text-scale-1200 text-2xl mb-2">
+ Authorised domains
+ </h3>
+ <p className="text-sm text-scale-900">
+ Turn payment methods on and off in one click – no engineering time
+ required.
+ </p>
+ <p className="text-sm text-scale-900">
+ Use our guide to check which payment methods are compatible with
+ your integration.
+ </p>
+ </div>
+ <Button onClick={() => setOpen(true)}>Add domain</Button>
+ <Modal
+ size="small"
+ visible={open}
+ onCancel={() => setOpen(!open)}
+ header={
+ <div className="flex items-center gap-2 text-scale-1200">
+ <div className="flex items-baseline gap-2">
+ <h3 className="text-sm">Add a new domain</h3>
+ </div>
+ </div>
+ }
+ contentStyle={{ padding: 0 }}
+ hideFooter
+ >
+ <Form
+ id="new-domain-form"
+ initialValues={{
+ domain: '',
+ }}
+ validateOnBlur
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ console.log('submitting domain')
+ setTimeout(() => {
+ setSubmitting(false)
+ dispatchDomainsForm({ type: 'update', values: values })
+ setOpen(false)
+ }, 400)
+ }}
+ validate={(values) => {
+ const errors: any = {}
+ if (!values.domain) {
+ errors.domain = 'A domain is required'
+ } else if (
+ !/^((https?|ftp|smtp):\/\/)?(www.)?[a-z0-9]+\.[a-z]+(\/[a-zA-Z0-9#]+\/?)*$/i.test(
+ values.domain
+ )
+ ) {
+ errors.domain =
+ 'Not a valid URL. Please use http:// or https://'
+ }
+ return errors
+ }}
+ >
+ {({ isSubmitting, errors, touched }: any) => {
+ // console.log('errors in form', errors)
+ // console.log('touched in form', touched)
+ return (
+ <div className="space-y-4 pt-4 mb-4">
+ <div className="px-5">
+ <p className="text-sm text-scale-1100">
+ This will add a domain to a list of allowed domains that
+ can interact with your Authenticaton services for this
+ project.
+ </p>
+ </div>
+ <div className="border-t border-overlay-border"></div>
+ <div className="px-5">
+ <Input
+ id="domain"
+ name="domain"
+ label="Domain"
+ placeholder="https://mydomain.com"
+ />
+ </div>
+ <div className="border-t border-overlay-border"></div>
+ <div className="px-5">
+ <Button
+ form="new-domain-form"
+ htmlType="submit"
+ block
+ size="medium"
+ loading={isSubmitting}
+ >
+ Add domain
+ </Button>
+ </div>
+ </div>
+ )
+ }}
+ </Form>
+ </Modal>
+ </div>
+ </>
+ )
+ }
+
+ console.log('RENDER DOMAINS')
+
+ return (
+ <div className="mx-auto my-8">
+ <DomainsForm />
+ <div className="-space-y-px">
+ {domainsFormState.map((domain) => {
+ return (
+ <>
+ <div
+ className="bg-scale-300 px-6 py-4 border border-scale-500
+ first:rounded-tr first:rounded-tl
+ last:rounded-br last:rounded-bl
+ text-sm text-scale-1200
+ flex gap-2 items-center justify-between
+ "
+ >
+ <div className="flex gap-2 items-center font-mono">
+ <span className="text-scale-900">
+ <IconGlobe strokeWidth={2} size={14} />
+ </span>
+ {domain}
+ </div>
+ <Button
+ type="default"
+ icon={<IconTrash />}
+ onClick={() => {
+ setSelected(domain)
+ setDeleteOpen(true)
+ }}
+ >
+ Remove
+ </Button>
+ </div>
+ </>
+ )
+ })}
+ </div>
+ <Modal
+ size="small"
+ visible={deleteOpen}
+ onCancel={() => setDeleteOpen(!open)}
+ header={
+ <div className="flex items-center gap-2 text-scale-1200">
+ <div className="flex items-baseline gap-2">
+ <h3 className="text-sm">Remove domain</h3>
+ </div>
+ </div>
+ }
+ contentStyle={{ padding: 0 }}
+ hideFooter
+ >
+ <div className="space-y-4 pt-4 mb-4">
+ <div className="px-5">
+ <p className="text-sm text-scale-1100 mb-2">
+ Are you sure you want to remove{' '}
+ <span className="text-scale-1200">{selectedDomain}</span>?
+ </p>
+ <p className="text-sm text-scale-900">
+ This domain will no longer work with your Authentication
+ configuration.
+ </p>
+ </div>
+ <div className="border-t border-overlay-border"></div>
+ <div className="px-5 flex gap-3">
+ <Button
+ type="secondary"
+ block
+ size="medium"
+ onClick={() => {
+ // setOpen(!open)
+ }}
+ >
+ Cancel
+ </Button>
+ <Button
+ block
+ size="medium"
+ type="warning"
+ loading={deleteLoading}
+ onClick={() => {
+ setDeleteLoading(true)
+ setTimeout(() => {
+ dispatchDomainsForm({
+ type: 'remove',
+ values: selectedDomain,
+ })
+ setDeleteOpen(!deleteOpen)
+ setDeleteLoading(false)
+ }, 800)
+ }}
+ >
+ {deleteLoading ? 'Removing...' : 'Remove domain'}
+ </Button>
+ </div>
+ </div>
+ </Modal>
+ </div>
+ )
+}
+
+const SmtpForm = () => {
+ const [active, setActive] = useState(true)
+
+ // panel
+ const Panel = ({
+ children,
+ header,
+ footer,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ }) => (
+ <div
+ className="
+ bg-scale-100
+ dark:bg-scale-300
+
+ border border-scale-400 rounded-md my-8 shadow overflow-hidden"
+ >
+ {header && (
+ <div className="bg-scale-100 dark:bg-scale-200 px-8 py-4 border-b border-scale-400">
+ {header}
+ </div>
+ )}
+ <div className="space-y-6 py-6">{children}</div>
+ {footer}
+ </div>
+ )
+
+ const Section = ({
+ children,
+ header,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ }) => (
+ <div className="grid grid-cols-12 px-8 py-2 gap-8">
+ {header && <div className="col-span-4">{header}</div>}
+ {children}
+ </div>
+ )
+
+ return (
+ <>
+ <Form
+ id="general_form"
+ initialValues={{
+ enable_smtp: false,
+ jwt_expiry: 3600,
+ }}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ validate={(values: Values) => {
+ const errors: any = {}
+ if (!values.jwt_expiry) {
+ errors.jwt_expiry = 'This is required'
+ }
+ if (values.jwt_expiry > 604800) {
+ errors.jwt_expiry =
+ 'The maxiumum allowed is 604,800 seconds. Use a smaller number of seconds.'
+ }
+ return errors
+ }}
+ >
+ {({ isSubmitting, handleReset, values }: any) => (
+ <Panel
+ footer={
+ <>
+ <div className="border-t border-scale-400"></div>
+ <div className="py-3 px-6 flex gap-2 justify-end">
+ <Button
+ loading={isSubmitting}
+ type="secondary"
+ htmlType="reset"
+ onClick={() => handleReset()}
+ >
+ Cancel
+ </Button>
+ <Button
+ loading={isSubmitting}
+ type="primary"
+ htmlType="submit"
+ form="general_form"
+ >
+ Save
+ </Button>
+ </div>
+ </>
+ }
+ >
+ {/* <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ Enable SMTP
+ </label>
+ }
+ > */}
+ <Toggle
+ // onChange={() => setActive(!active)}
+ // checked={active}
+ name="enable_smtp"
+ className="col-span-8 mx-8"
+ label="Enable Custom SMTP"
+ layout="flex"
+ descriptionText="If this is disabled, new users will not be able to sign up to your application."
+ />
+ {/* </Section> */}
+ <div className="border-t border-scale-400"></div>
+ <Section
+ header={
+ <div className="w-full">
+ <label className="text-sm text-scale-1100">
+ SMTP details
+ </label>
+ <p className="text-sm text-scale-900">
+ These settings can be found in your SMTP provider config
+ </p>
+ </div>
+ }
+ >
+ <div className="space-y-6 col-span-8">
+ <Input
+ label="Sender address"
+ type="url"
+ disabled={!values.enable_smtp}
+ />
+ <Input
+ label="SMTP server host"
+ disabled={!values.enable_smtp}
+ />
+ <InputNumber
+ label="SMTP server port"
+ disabled={!values.enable_smtp}
+ />
+ <Input
+ label="SMTP account username"
+ disabled={!values.enable_smtp}
+ />
+ <Input
+ label="SMTP account password"
+ type="password"
+ disabled={!values.enable_smtp}
+ />
+ </div>
+ </Section>
+ {values.enable_smtp && (
+ <div className="mx-8">
+ <DocsButton />
+ </div>
+ )}
+ </Panel>
+ )}
+ </Form>
+ </>
+ )
+}
+
+const TemplatesForm = () => {
+ const [active, setActive] = useState(true)
+
+ // panel
+ const Panel = ({
+ children,
+ header,
+ footer,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ }) => (
+ <div
+ className="
+ bg-scale-100
+ dark:bg-scale-300
+ border border-scale-400 rounded-md mb-8 shadow overflow-hidden"
+ >
+ {header && (
+ <div className="bg-scale-100 dark:bg-scale-200 px-8 py-4 border-b border-scale-400">
+ {header}
+ </div>
+ )}
+ <div className="space-y-6 py-6">{children}</div>
+ {footer}
+ </div>
+ )
+
+ const Section = ({
+ children,
+ header,
+ }: {
+ children: React.ReactNode
+ header?: React.ReactNode
+ }) => (
+ <div className="grid grid-cols-12 px-8 py-2 gap-8">
+ {header && <div className="col-span-4">{header}</div>}
+ {children}
+ </div>
+ )
+
+ return (
+ <>
+ <Form
+ id="general_form"
+ initialValues={{
+ enable_smtp: false,
+ jwt_expiry: 3600,
+ }}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ }, 400)
+ }}
+ validate={(values: Values) => {
+ const errors: any = {}
+ if (!values.jwt_expiry) {
+ errors.jwt_expiry = 'This is required'
+ }
+ if (values.jwt_expiry > 604800) {
+ errors.jwt_expiry =
+ 'The maxiumum allowed is 604,800 seconds. Use a smaller number of seconds.'
+ }
+ return errors
+ }}
+ >
+ {({ isSubmitting, handleReset, values }: any) => (
+ <>
+ <div className="my-4">
+ <Tabs
+ defaultActiveId="confirm_signup"
+ type="underlined"
+ // listClassNames="px-8"
+ size="medium"
+ >
+ <Tabs.Panel id={'confirm_signup'} label="Confirm Signup" />
+ <Tabs.Panel id={'reset_password'} label="Reset Password" />
+ <Tabs.Panel id={'magic_link'} label="Magic Link" />
+ <Tabs.Panel
+ id={'change_email_address'}
+ label="Change Email Address"
+ />
+ <Tabs.Panel id={'invite_user'} label="Invite User" />
+ </Tabs>
+ </div>
+ <Panel
+ footer={
+ <>
+ <div className="border-t border-scale-400"></div>
+ <div className="py-3 px-6 flex gap-2 justify-end">
+ <Button
+ loading={isSubmitting}
+ type="secondary"
+ htmlType="reset"
+ onClick={() => handleReset()}
+ >
+ Cancel
+ </Button>
+ <Button
+ loading={isSubmitting}
+ type="primary"
+ htmlType="submit"
+ form="general_form"
+ >
+ Save
+ </Button>
+ </div>
+ </>
+ }
+ >
+ {/* <Section
+ header={
+ <label className="text-sm text-scale-1200 col-span-4">
+ Enable SMTP
+ </label>
+ }
+ > */}
+ {/* <Toggle
+ // onChange={() => setActive(!active)}
+ // checked={active}
+ name="enable_smtp"
+ className="col-span-8 mx-8"
+ label="Enable Custom SMTP"
+ layout="flex"
+ descriptionText="If this is disabled, new users will not be able to sign up to your application."
+ /> */}
+ {/* </Section> */}
+ {/* <div className="border-t border-scale-400"></div> */}
+ <Section
+ header={
+ <div className="w-full">
+ <h3 className="text-base text-scale-1200 mb-4">
+ Confirm Signup
+ </h3>
+ <p className="text-sm text-scale-900">
+ When a user signs up using an email address and password,
+ you can send them a confirmation email to verify their
+ registered email address. Learn more
+ </p>
+ </div>
+ }
+ >
+ <div className="space-y-6 col-span-8">
+ <Input label="Sender address" type="url" />
+ <Input label="SMTP server host" />
+ <InputNumber label="SMTP server port" />
+ <Input label="SMTP account username" />
+ <Input.TextArea
+ label="SMTP account password"
+ type="password"
+ rows={8}
+ defaultValue={`<h2>Confirm your signup</h2>
+
+<p>Follow this link to confirm your user:</p>
+<p><a href="{{ .ConfirmationURL }}">Confirm your mail</a></p>
+ `}
+ />
+ </div>
+ </Section>
+ {values.enable_smtp && (
+ <div className="mx-8">
+ <DocsButton />
+ </div>
+ )}
+ </Panel>
+ </>
+ )}
+ </Form>
+ </>
+ )
+}
+
+export function WholeForm() {
+ return (
+ <div style={{ width: '820px' }} className="mx-auto">
+ <Tabs defaultActiveId="one" type="underlined" size="medium">
+ <Tabs.Panel id="one" label="Sign-in method">
+ <div className="space-y-12 py-12 animate-fade-in">
+ <div>
+ <h1 className="text-3xl text-scale-1200">Sign-in method</h1>
+ </div>
+ <div className="border-t border-scale-400"></div>
+ <div>
+ <h3 className="text-scale-1200 text-2xl mb-2">
+ General settings
+ </h3>
+ <p className="text-sm text-scale-900">
+ Turn payment methods on and off in one click – no engineering
+ time required.
+ </p>
+ <p className="text-sm text-scale-900">
+ Use our guide to check which payment methods are compatible with
+ your integration.
+ </p>
+ <CardForm />
+ </div>
+ <div>
+ <h3 className="text-scale-1200 text-2xl mb-2">Providers</h3>
+ <p className="text-sm text-scale-900">
+ Turn payment methods on and off in one click – no engineering
+ time required.
+ </p>
+ <p className="text-sm text-scale-900">
+ Use our guide to check which payment methods are compatible with
+ your integration.
+ </p>
+ <AuthForm />
+ </div>
+
+ <DomainsForm />
+ </div>
+ </Tabs.Panel>
+ <Tabs.Panel id="two" label="Emails">
+ <div className="space-y-12 py-12 animate-fade-in">
+ <div>
+ <h1 className="text-3xl text-scale-1200">Emails</h1>
+ </div>
+ <button
+ className="
+ group
+ w-full
+ bg-scale-300
+ dark:bg-scale-100
+ border
+ border-scale-500 hover:border-scale-700
+ dark:border-scale-300 dark:hover:border-scale-500
+ px-6 py-4
+ my-6
+ flex gap-6 items-center
+ rounded-md shadow-sm
+ transition
+ text-left
+ "
+ >
+ <div className="transition duration-500 bg-brand-900 rounded p-1 w-10 h-10 group-hover:-rotate-3 group-hover:scale-110">
+ {/* <img
+ className="text-white w-12 h-12"
+ src="/icons/docs-illustration.svg"
+ /> */}
+ </div>
+ <div className="grow">
+ <h3 className="text-scale-1200">
+ Use authentication as the backbone of your app
+ </h3>
+ <p className="text-scale-900 text-xs">
+ Learn how to use Supabase Auth with Auth Policies to pick and
+ choose what users see what.
+ </p>
+ <p className="text-brand-900 mt-2 text-xs flex items-center gap-1">
+ See Documenation
+ <span className="transition group-hover:translate-x-1">
+ <IconArrowRight strokeWidth={2} width={12} />
+ </span>
+ </p>
+ </div>
+ <div className="text-scale-900">
+ <IconX />
+ </div>
+ </button>
+ <div className="border-t border-scale-400"></div>
+ <div>
+ <h3 className="text-scale-1200 text-2xl mb-2">Custom SMTP</h3>
+ <p className="text-sm text-scale-900">
+ You can use your own SMTP server instead of the built-in email
+ service.
+ </p>
+ <SmtpForm />
+ </div>
+ <div>
+ <h3 className="text-scale-1200 text-2xl mb-2">Templates</h3>
+ <p className="text-sm text-scale-900">
+ You can use your own SMTP server instead of the built-in email
+ service.
+ </p>
+ <TemplatesForm />
+ </div>
+ </div>
+ </Tabs.Panel>
+ </Tabs>
+ </div>
+ )
+}
+
+export default WholeForm
diff --git a/packages/common2/src/components/Form/examples/AuthFormSchema.json b/packages/common2/src/components/Form/examples/AuthFormSchema.json
new file mode 100644
index 00000000000..faf00278cc5
--- /dev/null
+++ b/packages/common2/src/components/Form/examples/AuthFormSchema.json
@@ -0,0 +1,281 @@
+[
+ {
+ "name": "Email",
+ "icon": "email-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "email-app-id",
+ "label": "email App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "email-id-key",
+ "label": "email client ID",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "email-id-key",
+ "label": "email client ID",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "email-id-key",
+ "label": "email client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Phone",
+ "icon": "phone-icon",
+ "form": [
+ {
+ "type": "select",
+ "name": "phone-app-provider",
+ "label": "Phone service provider",
+ "description": "You can use a provider etc etc"
+ },
+ {
+ "type": "text",
+ "name": "phone-id-key",
+ "label": "phone client ID",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "phone-id-key",
+ "label": "phone client ID",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "phone-id-key",
+ "label": "phone client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Google",
+ "icon": "google-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "google-app-id",
+ "label": "Google App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "google-id-key",
+ "label": "Google client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Facebook",
+ "icon": "facebook-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "facebook-app-id",
+ "label": "Facebook App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "facebook-id-key",
+ "label": "Facebook client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Twitter",
+ "icon": "twitter-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "twitter-app-id",
+ "label": "Twitter App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "twitter-id-key",
+ "label": "Twitter client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Apple",
+ "icon": "apple-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "apple-app-id",
+ "label": "Apple App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "apple-id-key",
+ "label": "Apple client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Microsoft",
+ "icon": "microsoft-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "microsoft-app-id",
+ "label": "Microsoft App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "microsoft-id-key",
+ "label": "Microsoft client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Gitlab",
+ "icon": "gitlab-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "gitlab-app-id",
+ "label": "Gitlab App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "gitlab-id-key",
+ "label": "Gitlab client ID",
+ "description": ""
+ }
+ ]
+ },
+
+ {
+ "name": "Bitbucket",
+ "icon": "bitbucket-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "bitbucket-app-id",
+ "label": "Bitbucket App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "bitbucket-id-key",
+ "label": "Bitbucket client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Discord",
+ "icon": "discord-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "discord-app-id",
+ "label": "Discord App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "discord-id-key",
+ "label": "Discord client ID",
+ "description": ""
+ }
+ ]
+ },
+
+ {
+ "name": "Github",
+ "icon": "github-icon-dark",
+ "form": [
+ {
+ "type": "text",
+ "name": "github-app-id",
+ "label": "Github App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "github-id-key",
+ "label": "Github client ID",
+ "description": ""
+ }
+ ]
+ },
+
+ {
+ "name": "Slack",
+ "icon": "slack-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "slack-app-id",
+ "label": "Slack App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "slack-id-key",
+ "label": "Slack client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Spotify",
+ "icon": "spotify-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "spotify-app-id",
+ "label": "Spotify App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "spotify-id-key",
+ "label": "Spotify client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Twitch",
+ "icon": "twitch-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "twitch-app-id",
+ "label": "Twitch App Id",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "twitch-id-key",
+ "label": "Twitch client ID",
+ "description": ""
+ }
+ ]
+ }
+]
diff --git a/packages/common2/src/components/Form/examples/PhoneProvidersSchema.json b/packages/common2/src/components/Form/examples/PhoneProvidersSchema.json
new file mode 100644
index 00000000000..eb38715495a
--- /dev/null
+++ b/packages/common2/src/components/Form/examples/PhoneProvidersSchema.json
@@ -0,0 +1,36 @@
+ {
+ "name": "Twilio",
+ "icon": "twilio-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "twilio-app-id",
+ "label": "Enable twilio Provider",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "twilio-id-key",
+ "label": "twilio client ID",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "name": "Messagebird",
+ "icon": "messagebird-icon",
+ "form": [
+ {
+ "type": "text",
+ "name": "messagebird-app-id",
+ "label": "Enable gitlab messagebird",
+ "description": ""
+ },
+ {
+ "type": "text",
+ "name": "messagebird-id-key",
+ "label": "messagebird client ID",
+ "description": ""
+ }
+ ]
+ }
\ No newline at end of file
diff --git a/packages/common2/src/components/Form/index.tsx b/packages/common2/src/components/Form/index.tsx
new file mode 100644
index 00000000000..dda8db37e4a
--- /dev/null
+++ b/packages/common2/src/components/Form/index.tsx
@@ -0,0 +1 @@
+export { default as Form } from './Form'
diff --git a/packages/common2/src/components/Icon/Icon.module.css b/packages/common2/src/components/Icon/Icon.module.css
new file mode 100644
index 00000000000..a9a9de6e63e
--- /dev/null
+++ b/packages/common2/src/components/Icon/Icon.module.css
@@ -0,0 +1,39 @@
+/* .sbui-icon-container {
+ @apply flex-shrink-0 flex items-center justify-center rounded-full p-3;
+}
+
+.sbui-icon-container--brand {
+ @apply bg-brand-800 bg-opacity-10 text-brand-800;
+}
+
+.sbui-icon-container--gray {
+ @apply bg-gray-600 bg-opacity-10 text-gray-500;
+}
+
+.sbui-icon-container--red {
+ @apply bg-red-600 bg-opacity-10 text-red-500;
+}
+
+.sbui-icon-container--yellow {
+ @apply bg-yellow-600 bg-opacity-10 text-yellow-500;
+}
+
+.sbui-icon-container--green {
+ @apply bg-green-600 bg-opacity-10 text-green-500;
+}
+
+.sbui-icon-container--blue {
+ @apply bg-blue-600 bg-opacity-10 text-blue-500;
+}
+
+.sbui-icon-container--indigo {
+ @apply bg-indigo-600 bg-opacity-10 text-indigo-500;
+}
+
+.sbui-icon-container--purple {
+ @apply bg-purple-600 bg-opacity-10 text-purple-500;
+}
+
+.sbui-icon-container--pink {
+ @apply bg-pink-600 bg-opacity-10 text-pink-500;
+} */
diff --git a/packages/common2/src/components/Icon/Icon.stories.tsx b/packages/common2/src/components/Icon/Icon.stories.tsx
new file mode 100644
index 00000000000..8fcc2f8b607
--- /dev/null
+++ b/packages/common2/src/components/Icon/Icon.stories.tsx
@@ -0,0 +1,66 @@
+import React from 'react'
+
+import { IconMail, Typography } from './../../index'
+
+export default {
+ title: 'General/Icon',
+ component: IconMail,
+}
+
+export const Default = (args: any) => (
+ <div className="block font-sans">
+ <div>
+ <Typography.Text>
+ <IconMail {...args} />
+ </Typography.Text>
+ </div>
+ </div>
+)
+
+Default.args = {
+ size: 16,
+ strokeWidth: 2,
+}
+
+// export const IconList = (args: any) => (
+// <>
+// <div className="font-sans text-xl bg-blue-100 p-5 mb-3 rounded-md">
+// This icons uses react-feather from Feather Icons. For detail you can check
+// it <a href="https://github.com/feathericons/react-feather">here</a> and{' '}
+// <a href="https://feathericons.com/">here</a>
+// </div>
+// <div className="flex flex-wrap font-sans">
+// {LIST_ICONS.map((icon) => (
+// <div className="m-2 shadow-lg rounded-lg w-36 h-36 flex flex-col justify-center items-center dark:text-white">
+// <Icon type={icon} key={icon} {...args} />
+// <span className="mt-2">{icon}</span>
+// </div>
+// ))}
+// </div>
+// </>
+// )
+
+// IconList.args = {
+// size: 16,
+// strokeWidth: 2,
+// }
+
+// // const SvgMessagesIcon = () => (
+// // <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+// // <path
+// // stroke-linecap="round"
+// // stroke-linejoin="round"
+// // stroke-width="2"
+// // d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"
+// // />
+// // </svg>
+// // )
+
+// // export const IconWithSVG = (args: any) => (
+// // <Icon {...args} src={<SvgMessagesIcon />} />
+// // )
+
+// // IconWithSVG.args = {
+// // size: 'xxxlarge',
+// // strokeWidth: 4,
+// // }
diff --git a/packages/common2/src/components/Icon/Icon.test.js b/packages/common2/src/components/Icon/Icon.test.js
new file mode 100644
index 00000000000..865c70baa4b
--- /dev/null
+++ b/packages/common2/src/components/Icon/Icon.test.js
@@ -0,0 +1,26 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Icon from './Icon'
+
+describe('#Icon', () => {
+ it('should render Icon correctly', () => {
+ render(<Icon data-testid="icon" />)
+ const $elIcon = screen.queryByTestId('icon')
+ expect($elIcon).toBeInTheDocument()
+ })
+
+ it('should change svg size', () => {
+ render(<Icon data-testid="icon" size={40} />)
+
+ const $elIcon = screen.queryByTestId('icon')
+ expect($elIcon.getAttribute('width')).toEqual('40')
+ expect($elIcon.getAttribute('height')).toEqual('40')
+ })
+
+ it('should change strokeWidth value', () => {
+ render(<Icon data-testid="icon" strokeWidth={1} />)
+
+ const $elIcon = screen.queryByTestId('icon')
+ expect($elIcon.getAttribute('stroke-width')).toEqual('1')
+ })
+})
diff --git a/packages/common2/src/components/Icon/Icon.tsx b/packages/common2/src/components/Icon/Icon.tsx
new file mode 100644
index 00000000000..d2a507cedbd
--- /dev/null
+++ b/packages/common2/src/components/Icon/Icon.tsx
@@ -0,0 +1,133 @@
+import React from 'react'
+import styleHandler from '../../lib/theme/styleHandler'
+import { IconContext } from './IconContext'
+// @ts-ignore
+// import IconStyles from './Icon.module.css'
+
+const IconStyles = {}
+
+interface Props {
+ className?: string
+ size?:
+ | 'tiny'
+ | 'small'
+ | 'medium'
+ | 'large'
+ | 'xlarge'
+ | 'xxlarge'
+ | 'xxxlarge'
+ | number
+ type?: string
+ color?: string
+ strokeWidth?: number
+ fill?: string
+ stroke?: string
+ background?:
+ | 'brand'
+ | 'gray'
+ | 'red'
+ | 'yellow'
+ | 'green'
+ | 'blue'
+ | 'indigo'
+ | 'purple'
+ | 'pink'
+ src: React.ReactNode
+}
+
+interface StringMap {
+ [key: string]: number
+}
+
+function Icon({
+ className,
+ size,
+ type,
+ color,
+ strokeWidth,
+ fill = undefined,
+ stroke = undefined,
+ background,
+ src,
+ ...props
+}: Props) {
+ const __styles = styleHandler('icon')
+
+ return (
+ <IconContext.Consumer>
+ {({ contextSize, className: contextClassName }) => {
+ const defaultSizes: StringMap = {
+ tiny: 14,
+ small: 18,
+ medium: 20,
+ large: 20,
+ xlarge: 24,
+ xxlarge: 30,
+ xxxlarge: 42,
+ }
+
+ const defaultSize = defaultSizes['large']
+
+ // const iconSize = typeof size === 'string' ? defaultSizes[contextSize] : 21
+ let iconSize: any = 21
+
+ // use contextSize of parent (via context hook) if one exists
+ if (contextSize) {
+ iconSize = contextSize
+ ? typeof contextSize === 'string'
+ ? defaultSizes[contextSize]
+ : contextSize
+ : defaultSize
+ }
+
+ // use size prop of this component if one exists
+ if (size) {
+ iconSize = size
+ ? typeof size === 'string'
+ ? defaultSizes[size]
+ : size
+ : defaultSize
+ }
+
+ // confitional used for Icons with no color settings
+ // default these icons to use 'currentColor' ie, the text color
+ const noColor = !color && !fill && !stroke
+
+ let classes = ['sbui-icon', className]
+ if (contextClassName) {
+ classes.push(contextClassName)
+ }
+
+ const Icon = (
+ // custom SVG file
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ color={!noColor ? color : 'currentColor'}
+ fill={!noColor ? (fill ? fill : 'none') : 'none'}
+ stroke={!noColor ? stroke : 'currentColor'}
+ strokeWidth={strokeWidth}
+ className={classes.join(' ')}
+ width={iconSize}
+ height={iconSize}
+ {...props}
+ >
+ {src}
+ </svg>
+ )
+
+ return background ? (
+ <div
+ // circle coloured background
+ className={__styles.container}
+ >
+ {Icon}
+ </div>
+ ) : (
+ Icon
+ )
+ }}
+ </IconContext.Consumer>
+ )
+}
+
+export default Icon
diff --git a/packages/common2/src/components/Icon/IconBase.tsx b/packages/common2/src/components/Icon/IconBase.tsx
new file mode 100644
index 00000000000..82f097092be
--- /dev/null
+++ b/packages/common2/src/components/Icon/IconBase.tsx
@@ -0,0 +1,144 @@
+import React from 'react'
+import styleHandler from '../../lib/theme/styleHandler'
+import { IconContext } from './IconContext'
+// @ts-ignore
+// import IconStyles from './Icon.module.css'
+
+interface Props {
+ className?: string
+ size?:
+ | 'tiny'
+ | 'small'
+ | 'medium'
+ | 'large'
+ | 'xlarge'
+ | 'xxlarge'
+ | 'xxxlarge'
+ | number
+ type?: string
+ color?: string
+ strokeWidth?: number
+ fill?: string
+ stroke?: string
+ background?:
+ | 'brand'
+ | 'gray'
+ | 'red'
+ | 'yellow'
+ | 'green'
+ | 'blue'
+ | 'indigo'
+ | 'purple'
+ | 'pink'
+ src?: React.ReactNode
+ icon?: any
+}
+
+interface StringMap {
+ [key: string]: number
+}
+
+function IconBase({
+ className,
+ size,
+ type = 'Mail',
+ color,
+ strokeWidth,
+ fill = undefined,
+ stroke = undefined,
+ background,
+ src,
+ icon,
+ ...props
+}: Props) {
+ const __styles = styleHandler('icon')
+
+ return (
+ <IconContext.Consumer>
+ {({ contextSize, className: contextClassName }) => {
+ const defaultSizes: StringMap = {
+ tiny: 14,
+ small: 18,
+ medium: 20,
+ large: 20,
+ xlarge: 24,
+ xxlarge: 30,
+ xxxlarge: 42,
+ }
+
+ const defaultSize = defaultSizes['large']
+ // @ts-ignore
+
+ const FeatherIcon = icon
+
+ // const iconSize = typeof size === 'string' ? defaultSizes[contextSize] : 21
+ let iconSize: any = 21
+
+ // use contextSize of parent (via context hook) if one exists
+ if (contextSize) {
+ iconSize = contextSize
+ ? typeof contextSize === 'string'
+ ? defaultSizes[contextSize]
+ : contextSize
+ : defaultSize
+ }
+
+ // use size prop of this component if one exists
+ if (size) {
+ iconSize = size
+ ? typeof size === 'string'
+ ? defaultSizes[size]
+ : size
+ : defaultSize
+ }
+
+ // confitional used for Icons with no color settings
+ // default these icons to use 'currentColor' ie, the text color
+ const noColor = !color && !fill && !stroke
+
+ let classes = ['sbui-icon', className]
+ if (contextClassName) {
+ classes.push(contextClassName)
+ }
+
+ const IconComponent = () => (
+ <FeatherIcon
+ color={!noColor ? color : 'currentColor'}
+ stroke={!noColor ? stroke : 'currentColor'}
+ className={classes.join(' ')}
+ strokeWidth={strokeWidth}
+ size={iconSize}
+ fill={!noColor ? (fill ? fill : 'none') : 'none'}
+ {...props}
+ />
+ )
+
+ const Icon = src ? (
+ // custom SVG file
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ color={!noColor ? color : 'currentColor'}
+ fill={!noColor ? (fill ? fill : 'none') : 'none'}
+ stroke={!noColor ? stroke : 'currentColor'}
+ className={classes.join(' ')}
+ width={iconSize}
+ height={iconSize}
+ >
+ {src}
+ </svg>
+ ) : (
+ // feather icon
+ <IconComponent />
+ )
+
+ return background ? (
+ <div className={__styles.container}>{Icon}</div>
+ ) : (
+ Icon
+ )
+ }}
+ </IconContext.Consumer>
+ )
+}
+
+export default IconBase
diff --git a/packages/common2/src/components/Icon/IconContext.tsx b/packages/common2/src/components/Icon/IconContext.tsx
new file mode 100644
index 00000000000..4d2198bdfe7
--- /dev/null
+++ b/packages/common2/src/components/Icon/IconContext.tsx
@@ -0,0 +1,10 @@
+import { createContext } from 'react'
+
+type ContextValue = { contextSize?: string; className?: string }
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+export const IconContext = createContext<ContextValue>({
+ contextSize: '',
+ className: '',
+})
diff --git a/packages/common2/src/components/Icon/IconImportHandler.tsx b/packages/common2/src/components/Icon/IconImportHandler.tsx
new file mode 100644
index 00000000000..0d158b428c6
--- /dev/null
+++ b/packages/common2/src/components/Icon/IconImportHandler.tsx
@@ -0,0 +1,294 @@
+import { FC, SVGAttributes } from 'react'
+
+export interface IconProps extends SVGAttributes<SVGElement> {
+ color?: string
+ size?: string | number
+}
+
+export type Icon = FC<IconProps>
+export const Activity: Icon = require(`react-feather/dist/icons/activity`)
+export const Airplay: Icon = require(`react-feather/dist/icons/airplay`)
+export const AlertCircle: Icon = require(`react-feather/dist/icons/alert-circle`)
+export const AlertOctagon: Icon = require(`react-feather/dist/icons/alert-octagon`)
+export const AlertTriangle: Icon = require(`react-feather/dist/icons/alert-triangle`)
+export const AlignCenter: Icon = require(`react-feather/dist/icons/align-center`)
+export const AlignJustify: Icon = require(`react-feather/dist/icons/align-justify`)
+export const AlignLeft: Icon = require(`react-feather/dist/icons/align-left`)
+export const AlignRight: Icon = require(`react-feather/dist/icons/align-right`)
+export const Anchor: Icon = require(`react-feather/dist/icons/anchor`)
+export const Aperture: Icon = require(`react-feather/dist/icons/aperture`)
+export const Archive: Icon = require(`react-feather/dist/icons/archive`)
+export const ArrowDownCircle: Icon = require(`react-feather/dist/icons/arrow-down-circle`)
+export const ArrowDownLeft: Icon = require(`react-feather/dist/icons/arrow-down-left`)
+export const ArrowDownRight: Icon = require(`react-feather/dist/icons/arrow-down-right`)
+export const ArrowDown: Icon = require(`react-feather/dist/icons/arrow-down`)
+export const ArrowLeftCircle: Icon = require(`react-feather/dist/icons/arrow-left-circle`)
+export const ArrowLeft: Icon = require(`react-feather/dist/icons/arrow-left`)
+export const ArrowRightCircle: Icon = require(`react-feather/dist/icons/arrow-right-circle`)
+export const ArrowRight: Icon = require(`react-feather/dist/icons/arrow-right`)
+export const ArrowUpCircle: Icon = require(`react-feather/dist/icons/arrow-up-circle`)
+export const ArrowUpLeft: Icon = require(`react-feather/dist/icons/arrow-up-left`)
+export const ArrowUpRight: Icon = require(`react-feather/dist/icons/arrow-up-right`)
+export const ArrowUp: Icon = require(`react-feather/dist/icons/arrow-up`)
+export const AtSign: Icon = require(`react-feather/dist/icons/at-sign`)
+export const Award: Icon = require(`react-feather/dist/icons/award`)
+export const BarChart2: Icon = require(`react-feather/dist/icons/bar-chart-2`)
+export const BarChart: Icon = require(`react-feather/dist/icons/bar-chart`)
+export const BatteryCharging: Icon = require(`react-feather/dist/icons/battery-charging`)
+export const Battery: Icon = require(`react-feather/dist/icons/battery`)
+export const BellOff: Icon = require(`react-feather/dist/icons/bell-off`)
+export const Bell: Icon = require(`react-feather/dist/icons/bell`)
+export const Bluetooth: Icon = require(`react-feather/dist/icons/bluetooth`)
+export const Bold: Icon = require(`react-feather/dist/icons/bold`)
+export const BookOpen: Icon = require(`react-feather/dist/icons/book-open`)
+export const Book: Icon = require(`react-feather/dist/icons/book`)
+export const Bookmark: Icon = require(`react-feather/dist/icons/bookmark`)
+export const Box: Icon = require(`react-feather/dist/icons/box`)
+export const Briefcase: Icon = require(`react-feather/dist/icons/briefcase`)
+export const Calendar: Icon = require(`react-feather/dist/icons/calendar`)
+export const CameraOff: Icon = require(`react-feather/dist/icons/camera-off`)
+export const Camera: Icon = require(`react-feather/dist/icons/camera`)
+export const Cast: Icon = require(`react-feather/dist/icons/cast`)
+export const CheckCircle: Icon = require(`react-feather/dist/icons/check-circle`)
+export const CheckSquare: Icon = require(`react-feather/dist/icons/check-square`)
+export const Check: Icon = require(`react-feather/dist/icons/check`)
+export const ChevronDown: Icon = require(`react-feather/dist/icons/chevron-down`)
+export const ChevronLeft: Icon = require(`react-feather/dist/icons/chevron-left`)
+export const ChevronRight: Icon = require(`react-feather/dist/icons/chevron-right`)
+export const ChevronUp: Icon = require(`react-feather/dist/icons/chevron-up`)
+export const ChevronsDown: Icon = require(`react-feather/dist/icons/chevrons-down`)
+export const ChevronsLeft: Icon = require(`react-feather/dist/icons/chevrons-left`)
+export const ChevronsRight: Icon = require(`react-feather/dist/icons/chevrons-right`)
+export const ChevronsUp: Icon = require(`react-feather/dist/icons/chevrons-up`)
+export const Chrome: Icon = require(`react-feather/dist/icons/chrome`)
+export const Circle: Icon = require(`react-feather/dist/icons/circle`)
+export const Clipboard: Icon = require(`react-feather/dist/icons/clipboard`)
+export const Clock: Icon = require(`react-feather/dist/icons/clock`)
+export const CloudDrizzle: Icon = require(`react-feather/dist/icons/cloud-drizzle`)
+export const CloudLightning: Icon = require(`react-feather/dist/icons/cloud-lightning`)
+export const CloudOff: Icon = require(`react-feather/dist/icons/cloud-off`)
+export const CloudRain: Icon = require(`react-feather/dist/icons/cloud-rain`)
+export const CloudSnow: Icon = require(`react-feather/dist/icons/cloud-snow`)
+export const Cloud: Icon = require(`react-feather/dist/icons/cloud`)
+export const Code: Icon = require(`react-feather/dist/icons/code`)
+export const Codepen: Icon = require(`react-feather/dist/icons/codepen`)
+export const Codesandbox: Icon = require(`react-feather/dist/icons/codesandbox`)
+export const Coffee: Icon = require(`react-feather/dist/icons/coffee`)
+export const Columns: Icon = require(`react-feather/dist/icons/columns`)
+export const Command: Icon = require(`react-feather/dist/icons/command`)
+export const Compass: Icon = require(`react-feather/dist/icons/compass`)
+export const Copy: Icon = require(`react-feather/dist/icons/copy`)
+export const CornerDownLeft: Icon = require(`react-feather/dist/icons/corner-down-left`)
+export const CornerDownRight: Icon = require(`react-feather/dist/icons/corner-down-right`)
+export const CornerLeftDown: Icon = require(`react-feather/dist/icons/corner-left-down`)
+export const CornerLeftUp: Icon = require(`react-feather/dist/icons/corner-left-up`)
+export const CornerRightDown: Icon = require(`react-feather/dist/icons/corner-right-down`)
+export const CornerRightUp: Icon = require(`react-feather/dist/icons/corner-right-up`)
+export const CornerUpLeft: Icon = require(`react-feather/dist/icons/corner-up-left`)
+export const CornerUpRight: Icon = require(`react-feather/dist/icons/corner-up-right`)
+export const Cpu: Icon = require(`react-feather/dist/icons/cpu`)
+export const CreditCard: Icon = require(`react-feather/dist/icons/credit-card`)
+export const Crop: Icon = require(`react-feather/dist/icons/crop`)
+export const Crosshair: Icon = require(`react-feather/dist/icons/crosshair`)
+export const Database: Icon = require(`react-feather/dist/icons/database`)
+export const Delete: Icon = require(`react-feather/dist/icons/delete`)
+export const Disc: Icon = require(`react-feather/dist/icons/disc`)
+export const DivideCircle: Icon = require(`react-feather/dist/icons/divide-circle`)
+export const DivideSquare: Icon = require(`react-feather/dist/icons/divide-square`)
+export const Divide: Icon = require(`react-feather/dist/icons/divide`)
+export const DollarSign: Icon = require(`react-feather/dist/icons/dollar-sign`)
+export const DownloadCloud: Icon = require(`react-feather/dist/icons/download-cloud`)
+export const Download: Icon = require(`react-feather/dist/icons/download`)
+export const Dribbble: Icon = require(`react-feather/dist/icons/dribbble`)
+export const Droplet: Icon = require(`react-feather/dist/icons/droplet`)
+export const Edit2: Icon = require(`react-feather/dist/icons/edit-2`)
+export const Edit3: Icon = require(`react-feather/dist/icons/edit-3`)
+export const Edit: Icon = require(`react-feather/dist/icons/edit`)
+export const ExternalLink: Icon = require(`react-feather/dist/icons/external-link`)
+export const EyeOff: Icon = require(`react-feather/dist/icons/eye-off`)
+export const Eye: Icon = require(`react-feather/dist/icons/eye`)
+export const Facebook: Icon = require(`react-feather/dist/icons/facebook`)
+export const FastForward: Icon = require(`react-feather/dist/icons/fast-forward`)
+export const Feather: Icon = require(`react-feather/dist/icons/feather`)
+export const Figma: Icon = require(`react-feather/dist/icons/figma`)
+export const FileMinus: Icon = require(`react-feather/dist/icons/file-minus`)
+export const FilePlus: Icon = require(`react-feather/dist/icons/file-plus`)
+export const FileText: Icon = require(`react-feather/dist/icons/file-text`)
+export const File: Icon = require(`react-feather/dist/icons/file`)
+export const Film: Icon = require(`react-feather/dist/icons/film`)
+export const Filter: Icon = require(`react-feather/dist/icons/filter`)
+export const Flag: Icon = require(`react-feather/dist/icons/flag`)
+export const FolderMinus: Icon = require(`react-feather/dist/icons/folder-minus`)
+export const FolderPlus: Icon = require(`react-feather/dist/icons/folder-plus`)
+export const Folder: Icon = require(`react-feather/dist/icons/folder`)
+export const Framer: Icon = require(`react-feather/dist/icons/framer`)
+export const Frown: Icon = require(`react-feather/dist/icons/frown`)
+export const Gift: Icon = require(`react-feather/dist/icons/gift`)
+export const GitBranch: Icon = require(`react-feather/dist/icons/git-branch`)
+export const GitCommit: Icon = require(`react-feather/dist/icons/git-commit`)
+export const GitMerge: Icon = require(`react-feather/dist/icons/git-merge`)
+export const GitPullRequest: Icon = require(`react-feather/dist/icons/git-pull-request`)
+export const GitHub: Icon = require(`react-feather/dist/icons/github`)
+export const Gitlab: Icon = require(`react-feather/dist/icons/gitlab`)
+export const Globe: Icon = require(`react-feather/dist/icons/globe`)
+export const Grid: Icon = require(`react-feather/dist/icons/grid`)
+export const HardDrive: Icon = require(`react-feather/dist/icons/hard-drive`)
+export const Hash: Icon = require(`react-feather/dist/icons/hash`)
+export const Headphones: Icon = require(`react-feather/dist/icons/headphones`)
+export const Heart: Icon = require(`react-feather/dist/icons/heart`)
+export const HelpCircle: Icon = require(`react-feather/dist/icons/help-circle`)
+export const Hexagon: Icon = require(`react-feather/dist/icons/hexagon`)
+export const Home: Icon = require(`react-feather/dist/icons/home`)
+export const Image: Icon = require(`react-feather/dist/icons/image`)
+export const Inbox: Icon = require(`react-feather/dist/icons/inbox`)
+export const Info: Icon = require(`react-feather/dist/icons/info`)
+export const Instagram: Icon = require(`react-feather/dist/icons/instagram`)
+export const Italic: Icon = require(`react-feather/dist/icons/italic`)
+export const Key: Icon = require(`react-feather/dist/icons/key`)
+export const Layers: Icon = require(`react-feather/dist/icons/layers`)
+export const Layout: Icon = require(`react-feather/dist/icons/layout`)
+export const LifeBuoy: Icon = require(`react-feather/dist/icons/life-buoy`)
+export const Link2: Icon = require(`react-feather/dist/icons/link-2`)
+export const Link: Icon = require(`react-feather/dist/icons/link`)
+export const Linkedin: Icon = require(`react-feather/dist/icons/linkedin`)
+export const List: Icon = require(`react-feather/dist/icons/list`)
+export const Loader: Icon = require(`react-feather/dist/icons/loader`)
+export const Lock: Icon = require(`react-feather/dist/icons/lock`)
+export const LogIn: Icon = require(`react-feather/dist/icons/log-in`)
+export const LogOut: Icon = require(`react-feather/dist/icons/log-out`)
+export const Mail: Icon = require(`react-feather/dist/icons/mail`)
+export const MapPin: Icon = require(`react-feather/dist/icons/map-pin`)
+export const Map: Icon = require(`react-feather/dist/icons/map`)
+export const Maximize2: Icon = require(`react-feather/dist/icons/maximize-2`)
+export const Maximize: Icon = require(`react-feather/dist/icons/maximize`)
+export const Meh: Icon = require(`react-feather/dist/icons/meh`)
+export const Menu: Icon = require(`react-feather/dist/icons/menu`)
+export const MessageCircle: Icon = require(`react-feather/dist/icons/message-circle`)
+export const MessageSquare: Icon = require(`react-feather/dist/icons/message-square`)
+export const MicOff: Icon = require(`react-feather/dist/icons/mic-off`)
+export const Mic: Icon = require(`react-feather/dist/icons/mic`)
+export const Minimize2: Icon = require(`react-feather/dist/icons/minimize-2`)
+export const Minimize: Icon = require(`react-feather/dist/icons/minimize`)
+export const MinusCircle: Icon = require(`react-feather/dist/icons/minus-circle`)
+export const MinusSquare: Icon = require(`react-feather/dist/icons/minus-square`)
+export const Minus: Icon = require(`react-feather/dist/icons/minus`)
+export const Monitor: Icon = require(`react-feather/dist/icons/monitor`)
+export const Moon: Icon = require(`react-feather/dist/icons/moon`)
+export const MoreHorizontal: Icon = require(`react-feather/dist/icons/more-horizontal`)
+export const MoreVertical: Icon = require(`react-feather/dist/icons/more-vertical`)
+export const MousePointer: Icon = require(`react-feather/dist/icons/mouse-pointer`)
+export const Move: Icon = require(`react-feather/dist/icons/move`)
+export const Music: Icon = require(`react-feather/dist/icons/music`)
+export const Navigation2: Icon = require(`react-feather/dist/icons/navigation-2`)
+export const Navigation: Icon = require(`react-feather/dist/icons/navigation`)
+export const Octagon: Icon = require(`react-feather/dist/icons/octagon`)
+export const Package: Icon = require(`react-feather/dist/icons/package`)
+export const Paperclip: Icon = require(`react-feather/dist/icons/paperclip`)
+export const PauseCircle: Icon = require(`react-feather/dist/icons/pause-circle`)
+export const Pause: Icon = require(`react-feather/dist/icons/pause`)
+export const PenTool: Icon = require(`react-feather/dist/icons/pen-tool`)
+export const Percent: Icon = require(`react-feather/dist/icons/percent`)
+export const PhoneCall: Icon = require(`react-feather/dist/icons/phone-call`)
+export const PhoneForwarded: Icon = require(`react-feather/dist/icons/phone-forwarded`)
+export const PhoneIncoming: Icon = require(`react-feather/dist/icons/phone-incoming`)
+export const PhoneMissed: Icon = require(`react-feather/dist/icons/phone-missed`)
+export const PhoneOff: Icon = require(`react-feather/dist/icons/phone-off`)
+export const PhoneOutgoing: Icon = require(`react-feather/dist/icons/phone-outgoing`)
+export const Phone: Icon = require(`react-feather/dist/icons/phone`)
+export const PieChart: Icon = require(`react-feather/dist/icons/pie-chart`)
+export const PlayCircle: Icon = require(`react-feather/dist/icons/play-circle`)
+export const Play: Icon = require(`react-feather/dist/icons/play`)
+export const PlusCircle: Icon = require(`react-feather/dist/icons/plus-circle`)
+export const PlusSquare: Icon = require(`react-feather/dist/icons/plus-square`)
+export const Plus: Icon = require(`react-feather/dist/icons/plus`)
+export const Pocket: Icon = require(`react-feather/dist/icons/pocket`)
+export const Power: Icon = require(`react-feather/dist/icons/power`)
+export const Printer: Icon = require(`react-feather/dist/icons/printer`)
+export const Radio: Icon = require(`react-feather/dist/icons/radio`)
+export const RefreshCcw: Icon = require(`react-feather/dist/icons/refresh-ccw`)
+export const RefreshCw: Icon = require(`react-feather/dist/icons/refresh-cw`)
+export const Repeat: Icon = require(`react-feather/dist/icons/repeat`)
+export const Rewind: Icon = require(`react-feather/dist/icons/rewind`)
+export const RotateCcw: Icon = require(`react-feather/dist/icons/rotate-ccw`)
+export const RotateCw: Icon = require(`react-feather/dist/icons/rotate-cw`)
+export const Rss: Icon = require(`react-feather/dist/icons/rss`)
+export const Save: Icon = require(`react-feather/dist/icons/save`)
+export const Scissors: Icon = require(`react-feather/dist/icons/scissors`)
+export const Search: Icon = require(`react-feather/dist/icons/search`)
+export const Send: Icon = require(`react-feather/dist/icons/send`)
+export const Server: Icon = require(`react-feather/dist/icons/server`)
+export const Settings: Icon = require(`react-feather/dist/icons/settings`)
+export const Share2: Icon = require(`react-feather/dist/icons/share-2`)
+export const Share: Icon = require(`react-feather/dist/icons/share`)
+export const ShieldOff: Icon = require(`react-feather/dist/icons/shield-off`)
+export const Shield: Icon = require(`react-feather/dist/icons/shield`)
+export const ShoppingBag: Icon = require(`react-feather/dist/icons/shopping-bag`)
+export const ShoppingCart: Icon = require(`react-feather/dist/icons/shopping-cart`)
+export const Shuffle: Icon = require(`react-feather/dist/icons/shuffle`)
+export const Sidebar: Icon = require(`react-feather/dist/icons/sidebar`)
+export const SkipBack: Icon = require(`react-feather/dist/icons/skip-back`)
+export const SkipForward: Icon = require(`react-feather/dist/icons/skip-forward`)
+export const Slack: Icon = require(`react-feather/dist/icons/slack`)
+export const Slash: Icon = require(`react-feather/dist/icons/slash`)
+export const Sliders: Icon = require(`react-feather/dist/icons/sliders`)
+export const Smartphone: Icon = require(`react-feather/dist/icons/smartphone`)
+export const Smile: Icon = require(`react-feather/dist/icons/smile`)
+export const Speaker: Icon = require(`react-feather/dist/icons/speaker`)
+export const Square: Icon = require(`react-feather/dist/icons/square`)
+export const Star: Icon = require(`react-feather/dist/icons/star`)
+export const StopCircle: Icon = require(`react-feather/dist/icons/stop-circle`)
+export const Sun: Icon = require(`react-feather/dist/icons/sun`)
+export const Sunrise: Icon = require(`react-feather/dist/icons/sunrise`)
+export const Sunset: Icon = require(`react-feather/dist/icons/sunset`)
+export const Tablet: Icon = require(`react-feather/dist/icons/tablet`)
+export const Tag: Icon = require(`react-feather/dist/icons/tag`)
+export const Target: Icon = require(`react-feather/dist/icons/target`)
+export const Terminal: Icon = require(`react-feather/dist/icons/terminal`)
+export const Thermometer: Icon = require(`react-feather/dist/icons/thermometer`)
+export const ThumbsDown: Icon = require(`react-feather/dist/icons/thumbs-down`)
+export const ThumbsUp: Icon = require(`react-feather/dist/icons/thumbs-up`)
+export const ToggleLeft: Icon = require(`react-feather/dist/icons/toggle-left`)
+export const ToggleRight: Icon = require(`react-feather/dist/icons/toggle-right`)
+export const Tool: Icon = require(`react-feather/dist/icons/tool`)
+export const Trash2: Icon = require(`react-feather/dist/icons/trash-2`)
+export const Trash: Icon = require(`react-feather/dist/icons/trash`)
+export const Trello: Icon = require(`react-feather/dist/icons/trello`)
+export const TrendingDown: Icon = require(`react-feather/dist/icons/trending-down`)
+export const TrendingUp: Icon = require(`react-feather/dist/icons/trending-up`)
+export const Triangle: Icon = require(`react-feather/dist/icons/triangle`)
+export const Truck: Icon = require(`react-feather/dist/icons/truck`)
+export const Tv: Icon = require(`react-feather/dist/icons/tv`)
+export const Twitch: Icon = require(`react-feather/dist/icons/twitch`)
+export const Twitter: Icon = require(`react-feather/dist/icons/twitter`)
+export const Type: Icon = require(`react-feather/dist/icons/type`)
+export const Umbrella: Icon = require(`react-feather/dist/icons/umbrella`)
+export const Underline: Icon = require(`react-feather/dist/icons/underline`)
+export const Unlock: Icon = require(`react-feather/dist/icons/unlock`)
+export const UploadCloud: Icon = require(`react-feather/dist/icons/upload-cloud`)
+export const Upload: Icon = require(`react-feather/dist/icons/upload`)
+export const UserCheck: Icon = require(`react-feather/dist/icons/user-check`)
+export const UserMinus: Icon = require(`react-feather/dist/icons/user-minus`)
+export const UserPlus: Icon = require(`react-feather/dist/icons/user-plus`)
+export const UserX: Icon = require(`react-feather/dist/icons/user-x`)
+export const User: Icon = require(`react-feather/dist/icons/user`)
+export const Users: Icon = require(`react-feather/dist/icons/users`)
+export const VideoOff: Icon = require(`react-feather/dist/icons/video-off`)
+export const Video: Icon = require(`react-feather/dist/icons/video`)
+export const Voicemail: Icon = require(`react-feather/dist/icons/voicemail`)
+export const Volume1: Icon = require(`react-feather/dist/icons/volume-1`)
+export const Volume2: Icon = require(`react-feather/dist/icons/volume-2`)
+export const VolumeX: Icon = require(`react-feather/dist/icons/volume-x`)
+export const Volume: Icon = require(`react-feather/dist/icons/volume`)
+export const Watch: Icon = require(`react-feather/dist/icons/watch`)
+export const WifiOff: Icon = require(`react-feather/dist/icons/wifi-off`)
+export const Wifi: Icon = require(`react-feather/dist/icons/wifi`)
+export const Wind: Icon = require(`react-feather/dist/icons/wind`)
+export const XCircle: Icon = require(`react-feather/dist/icons/x-circle`)
+export const XOctagon: Icon = require(`react-feather/dist/icons/x-octagon`)
+export const XSquare: Icon = require(`react-feather/dist/icons/x-square`)
+export const X: Icon = require(`react-feather/dist/icons/x`)
+export const Youtube: Icon = require(`react-feather/dist/icons/youtube`)
+export const ZapOff: Icon = require(`react-feather/dist/icons/zap-off`)
+export const Zap: Icon = require(`react-feather/dist/icons/zap`)
+export const ZoomIn: Icon = require(`react-feather/dist/icons/zoom-in`)
+export const ZoomOut: Icon = require(`react-feather/dist/icons/zoom-out`)
diff --git a/packages/common2/src/components/Icon/icons/IconActivity/IconActivity.tsx b/packages/common2/src/components/Icon/icons/IconActivity/IconActivity.tsx
new file mode 100644
index 00000000000..fc653baf017
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconActivity/IconActivity.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Activity } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconActivity(props: any) {
+ return <IconBase icon={Activity} {...props} />
+ }
+
+ export default IconActivity
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconActivity/index.tsx b/packages/common2/src/components/Icon/icons/IconActivity/index.tsx
new file mode 100644
index 00000000000..c0cd7e3099b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconActivity/index.tsx
@@ -0,0 +1 @@
+export { default as IconActivity } from './IconActivity'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAirplay/IconAirplay.tsx b/packages/common2/src/components/Icon/icons/IconAirplay/IconAirplay.tsx
new file mode 100644
index 00000000000..ec2ce315b28
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAirplay/IconAirplay.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Airplay } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAirplay(props: any) {
+ return <IconBase icon={Airplay} {...props} />
+ }
+
+ export default IconAirplay
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAirplay/index.tsx b/packages/common2/src/components/Icon/icons/IconAirplay/index.tsx
new file mode 100644
index 00000000000..a8b24b57ce2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAirplay/index.tsx
@@ -0,0 +1 @@
+export { default as IconAirplay } from './IconAirplay'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlertCircle/IconAlertCircle.tsx b/packages/common2/src/components/Icon/icons/IconAlertCircle/IconAlertCircle.tsx
new file mode 100644
index 00000000000..bc8decd9cff
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlertCircle/IconAlertCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlertCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlertCircle(props: any) {
+ return <IconBase icon={AlertCircle} {...props} />
+ }
+
+ export default IconAlertCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlertCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconAlertCircle/index.tsx
new file mode 100644
index 00000000000..9feccb65b27
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlertCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlertCircle } from './IconAlertCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlertOctagon/IconAlertOctagon.tsx b/packages/common2/src/components/Icon/icons/IconAlertOctagon/IconAlertOctagon.tsx
new file mode 100644
index 00000000000..bec5ea01845
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlertOctagon/IconAlertOctagon.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlertOctagon } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlertOctagon(props: any) {
+ return <IconBase icon={AlertOctagon} {...props} />
+ }
+
+ export default IconAlertOctagon
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlertOctagon/index.tsx b/packages/common2/src/components/Icon/icons/IconAlertOctagon/index.tsx
new file mode 100644
index 00000000000..75a68b48c7e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlertOctagon/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlertOctagon } from './IconAlertOctagon'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlertTriangle/IconAlertTriangle.tsx b/packages/common2/src/components/Icon/icons/IconAlertTriangle/IconAlertTriangle.tsx
new file mode 100644
index 00000000000..f43930f32dd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlertTriangle/IconAlertTriangle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlertTriangle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlertTriangle(props: any) {
+ return <IconBase icon={AlertTriangle} {...props} />
+ }
+
+ export default IconAlertTriangle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlertTriangle/index.tsx b/packages/common2/src/components/Icon/icons/IconAlertTriangle/index.tsx
new file mode 100644
index 00000000000..7dba36a4704
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlertTriangle/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlertTriangle } from './IconAlertTriangle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignCenter/IconAlignCenter.tsx b/packages/common2/src/components/Icon/icons/IconAlignCenter/IconAlignCenter.tsx
new file mode 100644
index 00000000000..b7a299f029c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignCenter/IconAlignCenter.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlignCenter } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlignCenter(props: any) {
+ return <IconBase icon={AlignCenter} {...props} />
+ }
+
+ export default IconAlignCenter
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignCenter/index.tsx b/packages/common2/src/components/Icon/icons/IconAlignCenter/index.tsx
new file mode 100644
index 00000000000..3e869590177
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignCenter/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlignCenter } from './IconAlignCenter'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignJustify/IconAlignJustify.tsx b/packages/common2/src/components/Icon/icons/IconAlignJustify/IconAlignJustify.tsx
new file mode 100644
index 00000000000..c6c19235430
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignJustify/IconAlignJustify.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlignJustify } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlignJustify(props: any) {
+ return <IconBase icon={AlignJustify} {...props} />
+ }
+
+ export default IconAlignJustify
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignJustify/index.tsx b/packages/common2/src/components/Icon/icons/IconAlignJustify/index.tsx
new file mode 100644
index 00000000000..ca40f16a68c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignJustify/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlignJustify } from './IconAlignJustify'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignLeft/IconAlignLeft.tsx b/packages/common2/src/components/Icon/icons/IconAlignLeft/IconAlignLeft.tsx
new file mode 100644
index 00000000000..6190b211966
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignLeft/IconAlignLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlignLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlignLeft(props: any) {
+ return <IconBase icon={AlignLeft} {...props} />
+ }
+
+ export default IconAlignLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconAlignLeft/index.tsx
new file mode 100644
index 00000000000..5a5dbef94bf
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlignLeft } from './IconAlignLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignRight/IconAlignRight.tsx b/packages/common2/src/components/Icon/icons/IconAlignRight/IconAlignRight.tsx
new file mode 100644
index 00000000000..30c5a572655
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignRight/IconAlignRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AlignRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAlignRight(props: any) {
+ return <IconBase icon={AlignRight} {...props} />
+ }
+
+ export default IconAlignRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAlignRight/index.tsx b/packages/common2/src/components/Icon/icons/IconAlignRight/index.tsx
new file mode 100644
index 00000000000..014fa83f8a1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAlignRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconAlignRight } from './IconAlignRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAnchor/IconAnchor.tsx b/packages/common2/src/components/Icon/icons/IconAnchor/IconAnchor.tsx
new file mode 100644
index 00000000000..65fa8834ac5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAnchor/IconAnchor.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Anchor } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAnchor(props: any) {
+ return <IconBase icon={Anchor} {...props} />
+ }
+
+ export default IconAnchor
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAnchor/index.tsx b/packages/common2/src/components/Icon/icons/IconAnchor/index.tsx
new file mode 100644
index 00000000000..78fe875f982
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAnchor/index.tsx
@@ -0,0 +1 @@
+export { default as IconAnchor } from './IconAnchor'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAperture/IconAperture.tsx b/packages/common2/src/components/Icon/icons/IconAperture/IconAperture.tsx
new file mode 100644
index 00000000000..704aad55c6d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAperture/IconAperture.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Aperture } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAperture(props: any) {
+ return <IconBase icon={Aperture} {...props} />
+ }
+
+ export default IconAperture
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAperture/index.tsx b/packages/common2/src/components/Icon/icons/IconAperture/index.tsx
new file mode 100644
index 00000000000..9316dda6596
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAperture/index.tsx
@@ -0,0 +1 @@
+export { default as IconAperture } from './IconAperture'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArchive/IconArchive.tsx b/packages/common2/src/components/Icon/icons/IconArchive/IconArchive.tsx
new file mode 100644
index 00000000000..a9fc2cbb6ab
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArchive/IconArchive.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Archive } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArchive(props: any) {
+ return <IconBase icon={Archive} {...props} />
+ }
+
+ export default IconArchive
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArchive/index.tsx b/packages/common2/src/components/Icon/icons/IconArchive/index.tsx
new file mode 100644
index 00000000000..c671b516e75
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArchive/index.tsx
@@ -0,0 +1 @@
+export { default as IconArchive } from './IconArchive'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDown/IconArrowDown.tsx b/packages/common2/src/components/Icon/icons/IconArrowDown/IconArrowDown.tsx
new file mode 100644
index 00000000000..d8abbc9d358
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDown/IconArrowDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowDown(props: any) {
+ return <IconBase icon={ArrowDown} {...props} />
+ }
+
+ export default IconArrowDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDown/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowDown/index.tsx
new file mode 100644
index 00000000000..5a7b55663b9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowDown } from './IconArrowDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDownCircle/IconArrowDownCircle.tsx b/packages/common2/src/components/Icon/icons/IconArrowDownCircle/IconArrowDownCircle.tsx
new file mode 100644
index 00000000000..117d1ac1153
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDownCircle/IconArrowDownCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowDownCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowDownCircle(props: any) {
+ return <IconBase icon={ArrowDownCircle} {...props} />
+ }
+
+ export default IconArrowDownCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDownCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowDownCircle/index.tsx
new file mode 100644
index 00000000000..56596a2bf99
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDownCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowDownCircle } from './IconArrowDownCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDownLeft/IconArrowDownLeft.tsx b/packages/common2/src/components/Icon/icons/IconArrowDownLeft/IconArrowDownLeft.tsx
new file mode 100644
index 00000000000..8353caff9e0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDownLeft/IconArrowDownLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowDownLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowDownLeft(props: any) {
+ return <IconBase icon={ArrowDownLeft} {...props} />
+ }
+
+ export default IconArrowDownLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDownLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowDownLeft/index.tsx
new file mode 100644
index 00000000000..15ceed71a5d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDownLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowDownLeft } from './IconArrowDownLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDownRight/IconArrowDownRight.tsx b/packages/common2/src/components/Icon/icons/IconArrowDownRight/IconArrowDownRight.tsx
new file mode 100644
index 00000000000..c50af17cfd9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDownRight/IconArrowDownRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowDownRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowDownRight(props: any) {
+ return <IconBase icon={ArrowDownRight} {...props} />
+ }
+
+ export default IconArrowDownRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowDownRight/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowDownRight/index.tsx
new file mode 100644
index 00000000000..4531008a8f6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowDownRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowDownRight } from './IconArrowDownRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowLeft/IconArrowLeft.tsx b/packages/common2/src/components/Icon/icons/IconArrowLeft/IconArrowLeft.tsx
new file mode 100644
index 00000000000..c8113eaac35
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowLeft/IconArrowLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowLeft(props: any) {
+ return <IconBase icon={ArrowLeft} {...props} />
+ }
+
+ export default IconArrowLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowLeft/index.tsx
new file mode 100644
index 00000000000..cdbf2d5ab15
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowLeft } from './IconArrowLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowLeftCircle/IconArrowLeftCircle.tsx b/packages/common2/src/components/Icon/icons/IconArrowLeftCircle/IconArrowLeftCircle.tsx
new file mode 100644
index 00000000000..b3d1a8c733a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowLeftCircle/IconArrowLeftCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowLeftCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowLeftCircle(props: any) {
+ return <IconBase icon={ArrowLeftCircle} {...props} />
+ }
+
+ export default IconArrowLeftCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowLeftCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowLeftCircle/index.tsx
new file mode 100644
index 00000000000..d5c6e247db5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowLeftCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowLeftCircle } from './IconArrowLeftCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowRight/IconArrowRight.tsx b/packages/common2/src/components/Icon/icons/IconArrowRight/IconArrowRight.tsx
new file mode 100644
index 00000000000..5fe950fb8a2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowRight/IconArrowRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowRight(props: any) {
+ return <IconBase icon={ArrowRight} {...props} />
+ }
+
+ export default IconArrowRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowRight/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowRight/index.tsx
new file mode 100644
index 00000000000..f8f3b50ff9a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowRight } from './IconArrowRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowRightCircle/IconArrowRightCircle.tsx b/packages/common2/src/components/Icon/icons/IconArrowRightCircle/IconArrowRightCircle.tsx
new file mode 100644
index 00000000000..367e5fc2f83
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowRightCircle/IconArrowRightCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowRightCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowRightCircle(props: any) {
+ return <IconBase icon={ArrowRightCircle} {...props} />
+ }
+
+ export default IconArrowRightCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowRightCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowRightCircle/index.tsx
new file mode 100644
index 00000000000..3be96611901
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowRightCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowRightCircle } from './IconArrowRightCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUp/IconArrowUp.tsx b/packages/common2/src/components/Icon/icons/IconArrowUp/IconArrowUp.tsx
new file mode 100644
index 00000000000..9e59a21afab
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUp/IconArrowUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowUp(props: any) {
+ return <IconBase icon={ArrowUp} {...props} />
+ }
+
+ export default IconArrowUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUp/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowUp/index.tsx
new file mode 100644
index 00000000000..5736280f36f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowUp } from './IconArrowUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUpCircle/IconArrowUpCircle.tsx b/packages/common2/src/components/Icon/icons/IconArrowUpCircle/IconArrowUpCircle.tsx
new file mode 100644
index 00000000000..c106ae99793
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUpCircle/IconArrowUpCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowUpCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowUpCircle(props: any) {
+ return <IconBase icon={ArrowUpCircle} {...props} />
+ }
+
+ export default IconArrowUpCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUpCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowUpCircle/index.tsx
new file mode 100644
index 00000000000..6922ff119e4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUpCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowUpCircle } from './IconArrowUpCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUpLeft/IconArrowUpLeft.tsx b/packages/common2/src/components/Icon/icons/IconArrowUpLeft/IconArrowUpLeft.tsx
new file mode 100644
index 00000000000..d2b8c7332e5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUpLeft/IconArrowUpLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowUpLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowUpLeft(props: any) {
+ return <IconBase icon={ArrowUpLeft} {...props} />
+ }
+
+ export default IconArrowUpLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUpLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowUpLeft/index.tsx
new file mode 100644
index 00000000000..7ae1176227c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUpLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowUpLeft } from './IconArrowUpLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUpRight/IconArrowUpRight.tsx b/packages/common2/src/components/Icon/icons/IconArrowUpRight/IconArrowUpRight.tsx
new file mode 100644
index 00000000000..629308263a1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUpRight/IconArrowUpRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ArrowUpRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconArrowUpRight(props: any) {
+ return <IconBase icon={ArrowUpRight} {...props} />
+ }
+
+ export default IconArrowUpRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconArrowUpRight/index.tsx b/packages/common2/src/components/Icon/icons/IconArrowUpRight/index.tsx
new file mode 100644
index 00000000000..f6c7570d1e5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconArrowUpRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconArrowUpRight } from './IconArrowUpRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAtSign/IconAtSign.tsx b/packages/common2/src/components/Icon/icons/IconAtSign/IconAtSign.tsx
new file mode 100644
index 00000000000..3bfc9f642e4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAtSign/IconAtSign.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { AtSign } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAtSign(props: any) {
+ return <IconBase icon={AtSign} {...props} />
+ }
+
+ export default IconAtSign
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAtSign/index.tsx b/packages/common2/src/components/Icon/icons/IconAtSign/index.tsx
new file mode 100644
index 00000000000..fab6a7738e3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAtSign/index.tsx
@@ -0,0 +1 @@
+export { default as IconAtSign } from './IconAtSign'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAward/IconAward.tsx b/packages/common2/src/components/Icon/icons/IconAward/IconAward.tsx
new file mode 100644
index 00000000000..beb9fbc5f41
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAward/IconAward.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Award } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconAward(props: any) {
+ return <IconBase icon={Award} {...props} />
+ }
+
+ export default IconAward
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconAward/index.tsx b/packages/common2/src/components/Icon/icons/IconAward/index.tsx
new file mode 100644
index 00000000000..41699a41288
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconAward/index.tsx
@@ -0,0 +1 @@
+export { default as IconAward } from './IconAward'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBarChart/IconBarChart.tsx b/packages/common2/src/components/Icon/icons/IconBarChart/IconBarChart.tsx
new file mode 100644
index 00000000000..98018902d3d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBarChart/IconBarChart.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { BarChart } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBarChart(props: any) {
+ return <IconBase icon={BarChart} {...props} />
+ }
+
+ export default IconBarChart
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBarChart/index.tsx b/packages/common2/src/components/Icon/icons/IconBarChart/index.tsx
new file mode 100644
index 00000000000..62cb14dee1d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBarChart/index.tsx
@@ -0,0 +1 @@
+export { default as IconBarChart } from './IconBarChart'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBarChart2/IconBarChart2.tsx b/packages/common2/src/components/Icon/icons/IconBarChart2/IconBarChart2.tsx
new file mode 100644
index 00000000000..3837022ba7d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBarChart2/IconBarChart2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { BarChart2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBarChart2(props: any) {
+ return <IconBase icon={BarChart2} {...props} />
+ }
+
+ export default IconBarChart2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBarChart2/index.tsx b/packages/common2/src/components/Icon/icons/IconBarChart2/index.tsx
new file mode 100644
index 00000000000..9e7aa1ad983
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBarChart2/index.tsx
@@ -0,0 +1 @@
+export { default as IconBarChart2 } from './IconBarChart2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBattery/IconBattery.tsx b/packages/common2/src/components/Icon/icons/IconBattery/IconBattery.tsx
new file mode 100644
index 00000000000..a737c5f8693
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBattery/IconBattery.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Battery } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBattery(props: any) {
+ return <IconBase icon={Battery} {...props} />
+ }
+
+ export default IconBattery
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBattery/index.tsx b/packages/common2/src/components/Icon/icons/IconBattery/index.tsx
new file mode 100644
index 00000000000..bddb3488372
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBattery/index.tsx
@@ -0,0 +1 @@
+export { default as IconBattery } from './IconBattery'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBatteryCharging/IconBatteryCharging.tsx b/packages/common2/src/components/Icon/icons/IconBatteryCharging/IconBatteryCharging.tsx
new file mode 100644
index 00000000000..e8c3f95f931
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBatteryCharging/IconBatteryCharging.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { BatteryCharging } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBatteryCharging(props: any) {
+ return <IconBase icon={BatteryCharging} {...props} />
+ }
+
+ export default IconBatteryCharging
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBatteryCharging/index.tsx b/packages/common2/src/components/Icon/icons/IconBatteryCharging/index.tsx
new file mode 100644
index 00000000000..947c91fe3da
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBatteryCharging/index.tsx
@@ -0,0 +1 @@
+export { default as IconBatteryCharging } from './IconBatteryCharging'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBell/IconBell.tsx b/packages/common2/src/components/Icon/icons/IconBell/IconBell.tsx
new file mode 100644
index 00000000000..0f56c83b919
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBell/IconBell.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Bell } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBell(props: any) {
+ return <IconBase icon={Bell} {...props} />
+ }
+
+ export default IconBell
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBell/index.tsx b/packages/common2/src/components/Icon/icons/IconBell/index.tsx
new file mode 100644
index 00000000000..7c369f55502
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBell/index.tsx
@@ -0,0 +1 @@
+export { default as IconBell } from './IconBell'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBellOff/IconBellOff.tsx b/packages/common2/src/components/Icon/icons/IconBellOff/IconBellOff.tsx
new file mode 100644
index 00000000000..025b77255ed
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBellOff/IconBellOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { BellOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBellOff(props: any) {
+ return <IconBase icon={BellOff} {...props} />
+ }
+
+ export default IconBellOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBellOff/index.tsx b/packages/common2/src/components/Icon/icons/IconBellOff/index.tsx
new file mode 100644
index 00000000000..b08667dffd2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBellOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconBellOff } from './IconBellOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBluetooth/IconBluetooth.tsx b/packages/common2/src/components/Icon/icons/IconBluetooth/IconBluetooth.tsx
new file mode 100644
index 00000000000..3b1ca1ed019
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBluetooth/IconBluetooth.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Bluetooth } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBluetooth(props: any) {
+ return <IconBase icon={Bluetooth} {...props} />
+ }
+
+ export default IconBluetooth
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBluetooth/index.tsx b/packages/common2/src/components/Icon/icons/IconBluetooth/index.tsx
new file mode 100644
index 00000000000..23c1fd5a4ce
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBluetooth/index.tsx
@@ -0,0 +1 @@
+export { default as IconBluetooth } from './IconBluetooth'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBold/IconBold.tsx b/packages/common2/src/components/Icon/icons/IconBold/IconBold.tsx
new file mode 100644
index 00000000000..95e81ef0a99
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBold/IconBold.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Bold } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBold(props: any) {
+ return <IconBase icon={Bold} {...props} />
+ }
+
+ export default IconBold
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBold/index.tsx b/packages/common2/src/components/Icon/icons/IconBold/index.tsx
new file mode 100644
index 00000000000..7978a95733b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBold/index.tsx
@@ -0,0 +1 @@
+export { default as IconBold } from './IconBold'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBook/IconBook.tsx b/packages/common2/src/components/Icon/icons/IconBook/IconBook.tsx
new file mode 100644
index 00000000000..c80dc5f73c6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBook/IconBook.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Book } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBook(props: any) {
+ return <IconBase icon={Book} {...props} />
+ }
+
+ export default IconBook
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBook/index.tsx b/packages/common2/src/components/Icon/icons/IconBook/index.tsx
new file mode 100644
index 00000000000..e028c5f5dc9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBook/index.tsx
@@ -0,0 +1 @@
+export { default as IconBook } from './IconBook'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBookOpen/IconBookOpen.tsx b/packages/common2/src/components/Icon/icons/IconBookOpen/IconBookOpen.tsx
new file mode 100644
index 00000000000..b94d5ad279c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBookOpen/IconBookOpen.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { BookOpen } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBookOpen(props: any) {
+ return <IconBase icon={BookOpen} {...props} />
+ }
+
+ export default IconBookOpen
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBookOpen/index.tsx b/packages/common2/src/components/Icon/icons/IconBookOpen/index.tsx
new file mode 100644
index 00000000000..cdccfa708a4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBookOpen/index.tsx
@@ -0,0 +1 @@
+export { default as IconBookOpen } from './IconBookOpen'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBookmark/IconBookmark.tsx b/packages/common2/src/components/Icon/icons/IconBookmark/IconBookmark.tsx
new file mode 100644
index 00000000000..af7bae4a59b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBookmark/IconBookmark.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Bookmark } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBookmark(props: any) {
+ return <IconBase icon={Bookmark} {...props} />
+ }
+
+ export default IconBookmark
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBookmark/index.tsx b/packages/common2/src/components/Icon/icons/IconBookmark/index.tsx
new file mode 100644
index 00000000000..8ca61a74f49
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBookmark/index.tsx
@@ -0,0 +1 @@
+export { default as IconBookmark } from './IconBookmark'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBox/IconBox.tsx b/packages/common2/src/components/Icon/icons/IconBox/IconBox.tsx
new file mode 100644
index 00000000000..2908105c43d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBox/IconBox.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Box } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBox(props: any) {
+ return <IconBase icon={Box} {...props} />
+ }
+
+ export default IconBox
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBox/index.tsx b/packages/common2/src/components/Icon/icons/IconBox/index.tsx
new file mode 100644
index 00000000000..d0a11faa8f5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBox/index.tsx
@@ -0,0 +1 @@
+export { default as IconBox } from './IconBox'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBriefcase/IconBriefcase.tsx b/packages/common2/src/components/Icon/icons/IconBriefcase/IconBriefcase.tsx
new file mode 100644
index 00000000000..cd925a90422
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBriefcase/IconBriefcase.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Briefcase } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconBriefcase(props: any) {
+ return <IconBase icon={Briefcase} {...props} />
+ }
+
+ export default IconBriefcase
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconBriefcase/index.tsx b/packages/common2/src/components/Icon/icons/IconBriefcase/index.tsx
new file mode 100644
index 00000000000..d6e7d702458
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconBriefcase/index.tsx
@@ -0,0 +1 @@
+export { default as IconBriefcase } from './IconBriefcase'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCalendar/IconCalendar.tsx b/packages/common2/src/components/Icon/icons/IconCalendar/IconCalendar.tsx
new file mode 100644
index 00000000000..72d4b178867
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCalendar/IconCalendar.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Calendar } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCalendar(props: any) {
+ return <IconBase icon={Calendar} {...props} />
+ }
+
+ export default IconCalendar
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCalendar/index.tsx b/packages/common2/src/components/Icon/icons/IconCalendar/index.tsx
new file mode 100644
index 00000000000..9bb041c1e00
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCalendar/index.tsx
@@ -0,0 +1 @@
+export { default as IconCalendar } from './IconCalendar'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCamera/IconCamera.tsx b/packages/common2/src/components/Icon/icons/IconCamera/IconCamera.tsx
new file mode 100644
index 00000000000..8c1f64d697d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCamera/IconCamera.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Camera } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCamera(props: any) {
+ return <IconBase icon={Camera} {...props} />
+ }
+
+ export default IconCamera
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCamera/index.tsx b/packages/common2/src/components/Icon/icons/IconCamera/index.tsx
new file mode 100644
index 00000000000..90bee0859c6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCamera/index.tsx
@@ -0,0 +1 @@
+export { default as IconCamera } from './IconCamera'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCameraOff/IconCameraOff.tsx b/packages/common2/src/components/Icon/icons/IconCameraOff/IconCameraOff.tsx
new file mode 100644
index 00000000000..7dc57d59915
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCameraOff/IconCameraOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CameraOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCameraOff(props: any) {
+ return <IconBase icon={CameraOff} {...props} />
+ }
+
+ export default IconCameraOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCameraOff/index.tsx b/packages/common2/src/components/Icon/icons/IconCameraOff/index.tsx
new file mode 100644
index 00000000000..03ae3dee103
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCameraOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconCameraOff } from './IconCameraOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCast/IconCast.tsx b/packages/common2/src/components/Icon/icons/IconCast/IconCast.tsx
new file mode 100644
index 00000000000..6fb519055cd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCast/IconCast.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Cast } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCast(props: any) {
+ return <IconBase icon={Cast} {...props} />
+ }
+
+ export default IconCast
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCast/index.tsx b/packages/common2/src/components/Icon/icons/IconCast/index.tsx
new file mode 100644
index 00000000000..8413f130ab9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCast/index.tsx
@@ -0,0 +1 @@
+export { default as IconCast } from './IconCast'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCheck/IconCheck.tsx b/packages/common2/src/components/Icon/icons/IconCheck/IconCheck.tsx
new file mode 100644
index 00000000000..eba1419cd0e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCheck/IconCheck.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Check } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCheck(props: any) {
+ return <IconBase icon={Check} {...props} />
+ }
+
+ export default IconCheck
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCheck/index.tsx b/packages/common2/src/components/Icon/icons/IconCheck/index.tsx
new file mode 100644
index 00000000000..1ca606e15d7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCheck/index.tsx
@@ -0,0 +1 @@
+export { default as IconCheck } from './IconCheck'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCheckCircle/IconCheckCircle.tsx b/packages/common2/src/components/Icon/icons/IconCheckCircle/IconCheckCircle.tsx
new file mode 100644
index 00000000000..116f66cf1b7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCheckCircle/IconCheckCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CheckCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCheckCircle(props: any) {
+ return <IconBase icon={CheckCircle} {...props} />
+ }
+
+ export default IconCheckCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCheckCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconCheckCircle/index.tsx
new file mode 100644
index 00000000000..9f8e17b95cb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCheckCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconCheckCircle } from './IconCheckCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCheckSquare/IconCheckSquare.tsx b/packages/common2/src/components/Icon/icons/IconCheckSquare/IconCheckSquare.tsx
new file mode 100644
index 00000000000..129920856b4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCheckSquare/IconCheckSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CheckSquare } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCheckSquare(props: any) {
+ return <IconBase icon={CheckSquare} {...props} />
+ }
+
+ export default IconCheckSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCheckSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconCheckSquare/index.tsx
new file mode 100644
index 00000000000..d40098c0b3d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCheckSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconCheckSquare } from './IconCheckSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronDown/IconChevronDown.tsx b/packages/common2/src/components/Icon/icons/IconChevronDown/IconChevronDown.tsx
new file mode 100644
index 00000000000..3a6909546ad
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronDown/IconChevronDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronDown(props: any) {
+ return <IconBase icon={ChevronDown} {...props} />
+ }
+
+ export default IconChevronDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronDown/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronDown/index.tsx
new file mode 100644
index 00000000000..2326858c139
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronDown } from './IconChevronDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronLeft/IconChevronLeft.tsx b/packages/common2/src/components/Icon/icons/IconChevronLeft/IconChevronLeft.tsx
new file mode 100644
index 00000000000..64880c242b3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronLeft/IconChevronLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronLeft(props: any) {
+ return <IconBase icon={ChevronLeft} {...props} />
+ }
+
+ export default IconChevronLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronLeft/index.tsx
new file mode 100644
index 00000000000..a9c2036a7c6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronLeft } from './IconChevronLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronRight/IconChevronRight.tsx b/packages/common2/src/components/Icon/icons/IconChevronRight/IconChevronRight.tsx
new file mode 100644
index 00000000000..1283364c3bf
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronRight/IconChevronRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronRight(props: any) {
+ return <IconBase icon={ChevronRight} {...props} />
+ }
+
+ export default IconChevronRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronRight/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronRight/index.tsx
new file mode 100644
index 00000000000..587b5dc81a0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronRight } from './IconChevronRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronUp/IconChevronUp.tsx b/packages/common2/src/components/Icon/icons/IconChevronUp/IconChevronUp.tsx
new file mode 100644
index 00000000000..68a8767d648
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronUp/IconChevronUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronUp(props: any) {
+ return <IconBase icon={ChevronUp} {...props} />
+ }
+
+ export default IconChevronUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronUp/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronUp/index.tsx
new file mode 100644
index 00000000000..4ac36b87f0d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronUp } from './IconChevronUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsDown/IconChevronsDown.tsx b/packages/common2/src/components/Icon/icons/IconChevronsDown/IconChevronsDown.tsx
new file mode 100644
index 00000000000..730cce058ef
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsDown/IconChevronsDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronsDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronsDown(props: any) {
+ return <IconBase icon={ChevronsDown} {...props} />
+ }
+
+ export default IconChevronsDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsDown/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronsDown/index.tsx
new file mode 100644
index 00000000000..d3d88fea723
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronsDown } from './IconChevronsDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsLeft/IconChevronsLeft.tsx b/packages/common2/src/components/Icon/icons/IconChevronsLeft/IconChevronsLeft.tsx
new file mode 100644
index 00000000000..2e54e41e3d2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsLeft/IconChevronsLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronsLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronsLeft(props: any) {
+ return <IconBase icon={ChevronsLeft} {...props} />
+ }
+
+ export default IconChevronsLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronsLeft/index.tsx
new file mode 100644
index 00000000000..a42d1954938
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronsLeft } from './IconChevronsLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsRight/IconChevronsRight.tsx b/packages/common2/src/components/Icon/icons/IconChevronsRight/IconChevronsRight.tsx
new file mode 100644
index 00000000000..0c8a83caeed
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsRight/IconChevronsRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronsRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronsRight(props: any) {
+ return <IconBase icon={ChevronsRight} {...props} />
+ }
+
+ export default IconChevronsRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsRight/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronsRight/index.tsx
new file mode 100644
index 00000000000..13a7ed89c3d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronsRight } from './IconChevronsRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsUp/IconChevronsUp.tsx b/packages/common2/src/components/Icon/icons/IconChevronsUp/IconChevronsUp.tsx
new file mode 100644
index 00000000000..32bd8bbc3e2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsUp/IconChevronsUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ChevronsUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChevronsUp(props: any) {
+ return <IconBase icon={ChevronsUp} {...props} />
+ }
+
+ export default IconChevronsUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChevronsUp/index.tsx b/packages/common2/src/components/Icon/icons/IconChevronsUp/index.tsx
new file mode 100644
index 00000000000..72cb4b96844
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChevronsUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconChevronsUp } from './IconChevronsUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChrome/IconChrome.tsx b/packages/common2/src/components/Icon/icons/IconChrome/IconChrome.tsx
new file mode 100644
index 00000000000..8fe25ecd6c8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChrome/IconChrome.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Chrome } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconChrome(props: any) {
+ return <IconBase icon={Chrome} {...props} />
+ }
+
+ export default IconChrome
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconChrome/index.tsx b/packages/common2/src/components/Icon/icons/IconChrome/index.tsx
new file mode 100644
index 00000000000..e124b1194dc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconChrome/index.tsx
@@ -0,0 +1 @@
+export { default as IconChrome } from './IconChrome'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCircle/IconCircle.tsx b/packages/common2/src/components/Icon/icons/IconCircle/IconCircle.tsx
new file mode 100644
index 00000000000..0787f235e2e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCircle/IconCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Circle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCircle(props: any) {
+ return <IconBase icon={Circle} {...props} />
+ }
+
+ export default IconCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconCircle/index.tsx
new file mode 100644
index 00000000000..2f1eee6423b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconCircle } from './IconCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconClipboard/IconClipboard.tsx b/packages/common2/src/components/Icon/icons/IconClipboard/IconClipboard.tsx
new file mode 100644
index 00000000000..0d57c9082f0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconClipboard/IconClipboard.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Clipboard } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconClipboard(props: any) {
+ return <IconBase icon={Clipboard} {...props} />
+ }
+
+ export default IconClipboard
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconClipboard/index.tsx b/packages/common2/src/components/Icon/icons/IconClipboard/index.tsx
new file mode 100644
index 00000000000..cb71ec1c9e1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconClipboard/index.tsx
@@ -0,0 +1 @@
+export { default as IconClipboard } from './IconClipboard'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconClock/IconClock.tsx b/packages/common2/src/components/Icon/icons/IconClock/IconClock.tsx
new file mode 100644
index 00000000000..a1879fd5f5d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconClock/IconClock.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Clock } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconClock(props: any) {
+ return <IconBase icon={Clock} {...props} />
+ }
+
+ export default IconClock
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconClock/index.tsx b/packages/common2/src/components/Icon/icons/IconClock/index.tsx
new file mode 100644
index 00000000000..9b634163922
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconClock/index.tsx
@@ -0,0 +1 @@
+export { default as IconClock } from './IconClock'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloud/IconCloud.tsx b/packages/common2/src/components/Icon/icons/IconCloud/IconCloud.tsx
new file mode 100644
index 00000000000..137379b0846
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloud/IconCloud.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Cloud } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCloud(props: any) {
+ return <IconBase icon={Cloud} {...props} />
+ }
+
+ export default IconCloud
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloud/index.tsx b/packages/common2/src/components/Icon/icons/IconCloud/index.tsx
new file mode 100644
index 00000000000..d55f15ba066
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloud/index.tsx
@@ -0,0 +1 @@
+export { default as IconCloud } from './IconCloud'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudDrizzle/IconCloudDrizzle.tsx b/packages/common2/src/components/Icon/icons/IconCloudDrizzle/IconCloudDrizzle.tsx
new file mode 100644
index 00000000000..b16a3234e53
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudDrizzle/IconCloudDrizzle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CloudDrizzle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCloudDrizzle(props: any) {
+ return <IconBase icon={CloudDrizzle} {...props} />
+ }
+
+ export default IconCloudDrizzle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudDrizzle/index.tsx b/packages/common2/src/components/Icon/icons/IconCloudDrizzle/index.tsx
new file mode 100644
index 00000000000..ef17d936f0d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudDrizzle/index.tsx
@@ -0,0 +1 @@
+export { default as IconCloudDrizzle } from './IconCloudDrizzle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudLightning/IconCloudLightning.tsx b/packages/common2/src/components/Icon/icons/IconCloudLightning/IconCloudLightning.tsx
new file mode 100644
index 00000000000..a43e010f217
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudLightning/IconCloudLightning.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CloudLightning } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCloudLightning(props: any) {
+ return <IconBase icon={CloudLightning} {...props} />
+ }
+
+ export default IconCloudLightning
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudLightning/index.tsx b/packages/common2/src/components/Icon/icons/IconCloudLightning/index.tsx
new file mode 100644
index 00000000000..ca7f9404f77
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudLightning/index.tsx
@@ -0,0 +1 @@
+export { default as IconCloudLightning } from './IconCloudLightning'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudOff/IconCloudOff.tsx b/packages/common2/src/components/Icon/icons/IconCloudOff/IconCloudOff.tsx
new file mode 100644
index 00000000000..c0f613a8224
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudOff/IconCloudOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CloudOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCloudOff(props: any) {
+ return <IconBase icon={CloudOff} {...props} />
+ }
+
+ export default IconCloudOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudOff/index.tsx b/packages/common2/src/components/Icon/icons/IconCloudOff/index.tsx
new file mode 100644
index 00000000000..7cd6e346ae9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconCloudOff } from './IconCloudOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudRain/IconCloudRain.tsx b/packages/common2/src/components/Icon/icons/IconCloudRain/IconCloudRain.tsx
new file mode 100644
index 00000000000..469534e0ded
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudRain/IconCloudRain.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CloudRain } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCloudRain(props: any) {
+ return <IconBase icon={CloudRain} {...props} />
+ }
+
+ export default IconCloudRain
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudRain/index.tsx b/packages/common2/src/components/Icon/icons/IconCloudRain/index.tsx
new file mode 100644
index 00000000000..bd855399854
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudRain/index.tsx
@@ -0,0 +1 @@
+export { default as IconCloudRain } from './IconCloudRain'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudSnow/IconCloudSnow.tsx b/packages/common2/src/components/Icon/icons/IconCloudSnow/IconCloudSnow.tsx
new file mode 100644
index 00000000000..6cd41ed485d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudSnow/IconCloudSnow.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CloudSnow } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCloudSnow(props: any) {
+ return <IconBase icon={CloudSnow} {...props} />
+ }
+
+ export default IconCloudSnow
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCloudSnow/index.tsx b/packages/common2/src/components/Icon/icons/IconCloudSnow/index.tsx
new file mode 100644
index 00000000000..1bab3f5c238
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCloudSnow/index.tsx
@@ -0,0 +1 @@
+export { default as IconCloudSnow } from './IconCloudSnow'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCode/IconCode.tsx b/packages/common2/src/components/Icon/icons/IconCode/IconCode.tsx
new file mode 100644
index 00000000000..934f02ed953
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCode/IconCode.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Code } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCode(props: any) {
+ return <IconBase icon={Code} {...props} />
+ }
+
+ export default IconCode
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCode/index.tsx b/packages/common2/src/components/Icon/icons/IconCode/index.tsx
new file mode 100644
index 00000000000..1c47991a0ff
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCode/index.tsx
@@ -0,0 +1 @@
+export { default as IconCode } from './IconCode'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCodepen/IconCodepen.tsx b/packages/common2/src/components/Icon/icons/IconCodepen/IconCodepen.tsx
new file mode 100644
index 00000000000..29d712cb0d9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCodepen/IconCodepen.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Codepen } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCodepen(props: any) {
+ return <IconBase icon={Codepen} {...props} />
+ }
+
+ export default IconCodepen
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCodepen/index.tsx b/packages/common2/src/components/Icon/icons/IconCodepen/index.tsx
new file mode 100644
index 00000000000..5434f72c197
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCodepen/index.tsx
@@ -0,0 +1 @@
+export { default as IconCodepen } from './IconCodepen'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCodesandbox/IconCodesandbox.tsx b/packages/common2/src/components/Icon/icons/IconCodesandbox/IconCodesandbox.tsx
new file mode 100644
index 00000000000..0cff31c1190
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCodesandbox/IconCodesandbox.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Codesandbox } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCodesandbox(props: any) {
+ return <IconBase icon={Codesandbox} {...props} />
+ }
+
+ export default IconCodesandbox
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCodesandbox/index.tsx b/packages/common2/src/components/Icon/icons/IconCodesandbox/index.tsx
new file mode 100644
index 00000000000..d75d38f13dd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCodesandbox/index.tsx
@@ -0,0 +1 @@
+export { default as IconCodesandbox } from './IconCodesandbox'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCoffee/IconCoffee.tsx b/packages/common2/src/components/Icon/icons/IconCoffee/IconCoffee.tsx
new file mode 100644
index 00000000000..7599b9f2d77
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCoffee/IconCoffee.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Coffee } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCoffee(props: any) {
+ return <IconBase icon={Coffee} {...props} />
+ }
+
+ export default IconCoffee
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCoffee/index.tsx b/packages/common2/src/components/Icon/icons/IconCoffee/index.tsx
new file mode 100644
index 00000000000..53070e84581
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCoffee/index.tsx
@@ -0,0 +1 @@
+export { default as IconCoffee } from './IconCoffee'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconColumns/IconColumns.tsx b/packages/common2/src/components/Icon/icons/IconColumns/IconColumns.tsx
new file mode 100644
index 00000000000..ce1b6b51c40
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconColumns/IconColumns.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Columns } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconColumns(props: any) {
+ return <IconBase icon={Columns} {...props} />
+ }
+
+ export default IconColumns
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconColumns/index.tsx b/packages/common2/src/components/Icon/icons/IconColumns/index.tsx
new file mode 100644
index 00000000000..562404ba685
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconColumns/index.tsx
@@ -0,0 +1 @@
+export { default as IconColumns } from './IconColumns'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCommand/IconCommand.tsx b/packages/common2/src/components/Icon/icons/IconCommand/IconCommand.tsx
new file mode 100644
index 00000000000..1b811b17acd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCommand/IconCommand.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Command } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCommand(props: any) {
+ return <IconBase icon={Command} {...props} />
+ }
+
+ export default IconCommand
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCommand/index.tsx b/packages/common2/src/components/Icon/icons/IconCommand/index.tsx
new file mode 100644
index 00000000000..525b41a21ab
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCommand/index.tsx
@@ -0,0 +1 @@
+export { default as IconCommand } from './IconCommand'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCompass/IconCompass.tsx b/packages/common2/src/components/Icon/icons/IconCompass/IconCompass.tsx
new file mode 100644
index 00000000000..e5c484d3844
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCompass/IconCompass.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Compass } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCompass(props: any) {
+ return <IconBase icon={Compass} {...props} />
+ }
+
+ export default IconCompass
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCompass/index.tsx b/packages/common2/src/components/Icon/icons/IconCompass/index.tsx
new file mode 100644
index 00000000000..1eff658929c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCompass/index.tsx
@@ -0,0 +1 @@
+export { default as IconCompass } from './IconCompass'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCopy/IconCopy.tsx b/packages/common2/src/components/Icon/icons/IconCopy/IconCopy.tsx
new file mode 100644
index 00000000000..2ee9ad02e51
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCopy/IconCopy.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Copy } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCopy(props: any) {
+ return <IconBase icon={Copy} {...props} />
+ }
+
+ export default IconCopy
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCopy/index.tsx b/packages/common2/src/components/Icon/icons/IconCopy/index.tsx
new file mode 100644
index 00000000000..c868a5eee82
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCopy/index.tsx
@@ -0,0 +1 @@
+export { default as IconCopy } from './IconCopy'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerDownLeft/IconCornerDownLeft.tsx b/packages/common2/src/components/Icon/icons/IconCornerDownLeft/IconCornerDownLeft.tsx
new file mode 100644
index 00000000000..17afd68e95f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerDownLeft/IconCornerDownLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerDownLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerDownLeft(props: any) {
+ return <IconBase icon={CornerDownLeft} {...props} />
+ }
+
+ export default IconCornerDownLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerDownLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerDownLeft/index.tsx
new file mode 100644
index 00000000000..477f9471474
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerDownLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerDownLeft } from './IconCornerDownLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerDownRight/IconCornerDownRight.tsx b/packages/common2/src/components/Icon/icons/IconCornerDownRight/IconCornerDownRight.tsx
new file mode 100644
index 00000000000..db85d95fce3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerDownRight/IconCornerDownRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerDownRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerDownRight(props: any) {
+ return <IconBase icon={CornerDownRight} {...props} />
+ }
+
+ export default IconCornerDownRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerDownRight/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerDownRight/index.tsx
new file mode 100644
index 00000000000..32f99c402ff
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerDownRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerDownRight } from './IconCornerDownRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerLeftDown/IconCornerLeftDown.tsx b/packages/common2/src/components/Icon/icons/IconCornerLeftDown/IconCornerLeftDown.tsx
new file mode 100644
index 00000000000..3165e6e274a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerLeftDown/IconCornerLeftDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerLeftDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerLeftDown(props: any) {
+ return <IconBase icon={CornerLeftDown} {...props} />
+ }
+
+ export default IconCornerLeftDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerLeftDown/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerLeftDown/index.tsx
new file mode 100644
index 00000000000..f9ef7b4bba7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerLeftDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerLeftDown } from './IconCornerLeftDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerLeftUp/IconCornerLeftUp.tsx b/packages/common2/src/components/Icon/icons/IconCornerLeftUp/IconCornerLeftUp.tsx
new file mode 100644
index 00000000000..613cfb5855d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerLeftUp/IconCornerLeftUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerLeftUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerLeftUp(props: any) {
+ return <IconBase icon={CornerLeftUp} {...props} />
+ }
+
+ export default IconCornerLeftUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerLeftUp/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerLeftUp/index.tsx
new file mode 100644
index 00000000000..b884409f0f4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerLeftUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerLeftUp } from './IconCornerLeftUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerRightDown/IconCornerRightDown.tsx b/packages/common2/src/components/Icon/icons/IconCornerRightDown/IconCornerRightDown.tsx
new file mode 100644
index 00000000000..c664135cbdb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerRightDown/IconCornerRightDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerRightDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerRightDown(props: any) {
+ return <IconBase icon={CornerRightDown} {...props} />
+ }
+
+ export default IconCornerRightDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerRightDown/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerRightDown/index.tsx
new file mode 100644
index 00000000000..738a9c2eecb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerRightDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerRightDown } from './IconCornerRightDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerRightUp/IconCornerRightUp.tsx b/packages/common2/src/components/Icon/icons/IconCornerRightUp/IconCornerRightUp.tsx
new file mode 100644
index 00000000000..df571c65074
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerRightUp/IconCornerRightUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerRightUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerRightUp(props: any) {
+ return <IconBase icon={CornerRightUp} {...props} />
+ }
+
+ export default IconCornerRightUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerRightUp/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerRightUp/index.tsx
new file mode 100644
index 00000000000..bc280b92ea0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerRightUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerRightUp } from './IconCornerRightUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerUpLeft/IconCornerUpLeft.tsx b/packages/common2/src/components/Icon/icons/IconCornerUpLeft/IconCornerUpLeft.tsx
new file mode 100644
index 00000000000..74b0f226828
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerUpLeft/IconCornerUpLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerUpLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerUpLeft(props: any) {
+ return <IconBase icon={CornerUpLeft} {...props} />
+ }
+
+ export default IconCornerUpLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerUpLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerUpLeft/index.tsx
new file mode 100644
index 00000000000..8a44c3abfc4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerUpLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerUpLeft } from './IconCornerUpLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerUpRight/IconCornerUpRight.tsx b/packages/common2/src/components/Icon/icons/IconCornerUpRight/IconCornerUpRight.tsx
new file mode 100644
index 00000000000..eaeffb7373f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerUpRight/IconCornerUpRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CornerUpRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCornerUpRight(props: any) {
+ return <IconBase icon={CornerUpRight} {...props} />
+ }
+
+ export default IconCornerUpRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCornerUpRight/index.tsx b/packages/common2/src/components/Icon/icons/IconCornerUpRight/index.tsx
new file mode 100644
index 00000000000..00e4224c19a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCornerUpRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconCornerUpRight } from './IconCornerUpRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCpu/IconCpu.tsx b/packages/common2/src/components/Icon/icons/IconCpu/IconCpu.tsx
new file mode 100644
index 00000000000..b7c3922ee2a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCpu/IconCpu.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Cpu } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCpu(props: any) {
+ return <IconBase icon={Cpu} {...props} />
+ }
+
+ export default IconCpu
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCpu/index.tsx b/packages/common2/src/components/Icon/icons/IconCpu/index.tsx
new file mode 100644
index 00000000000..da017c9601b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCpu/index.tsx
@@ -0,0 +1 @@
+export { default as IconCpu } from './IconCpu'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCreditCard/IconCreditCard.tsx b/packages/common2/src/components/Icon/icons/IconCreditCard/IconCreditCard.tsx
new file mode 100644
index 00000000000..48e19bf01f0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCreditCard/IconCreditCard.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { CreditCard } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCreditCard(props: any) {
+ return <IconBase icon={CreditCard} {...props} />
+ }
+
+ export default IconCreditCard
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCreditCard/index.tsx b/packages/common2/src/components/Icon/icons/IconCreditCard/index.tsx
new file mode 100644
index 00000000000..21df338de15
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCreditCard/index.tsx
@@ -0,0 +1 @@
+export { default as IconCreditCard } from './IconCreditCard'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCrop/IconCrop.tsx b/packages/common2/src/components/Icon/icons/IconCrop/IconCrop.tsx
new file mode 100644
index 00000000000..72898e9cf13
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCrop/IconCrop.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Crop } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCrop(props: any) {
+ return <IconBase icon={Crop} {...props} />
+ }
+
+ export default IconCrop
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCrop/index.tsx b/packages/common2/src/components/Icon/icons/IconCrop/index.tsx
new file mode 100644
index 00000000000..5cde59b60eb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCrop/index.tsx
@@ -0,0 +1 @@
+export { default as IconCrop } from './IconCrop'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCrosshair/IconCrosshair.tsx b/packages/common2/src/components/Icon/icons/IconCrosshair/IconCrosshair.tsx
new file mode 100644
index 00000000000..50b88a7f019
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCrosshair/IconCrosshair.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Crosshair } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconCrosshair(props: any) {
+ return <IconBase icon={Crosshair} {...props} />
+ }
+
+ export default IconCrosshair
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconCrosshair/index.tsx b/packages/common2/src/components/Icon/icons/IconCrosshair/index.tsx
new file mode 100644
index 00000000000..10e997ee887
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconCrosshair/index.tsx
@@ -0,0 +1 @@
+export { default as IconCrosshair } from './IconCrosshair'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDatabase/IconDatabase.tsx b/packages/common2/src/components/Icon/icons/IconDatabase/IconDatabase.tsx
new file mode 100644
index 00000000000..3d1c81e58f7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDatabase/IconDatabase.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Database } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDatabase(props: any) {
+ return <IconBase icon={Database} {...props} />
+ }
+
+ export default IconDatabase
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDatabase/index.tsx b/packages/common2/src/components/Icon/icons/IconDatabase/index.tsx
new file mode 100644
index 00000000000..e96a644e005
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDatabase/index.tsx
@@ -0,0 +1 @@
+export { default as IconDatabase } from './IconDatabase'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDelete/IconDelete.tsx b/packages/common2/src/components/Icon/icons/IconDelete/IconDelete.tsx
new file mode 100644
index 00000000000..d2bec623e5f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDelete/IconDelete.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Delete } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDelete(props: any) {
+ return <IconBase icon={Delete} {...props} />
+ }
+
+ export default IconDelete
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDelete/index.tsx b/packages/common2/src/components/Icon/icons/IconDelete/index.tsx
new file mode 100644
index 00000000000..1be609a80a1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDelete/index.tsx
@@ -0,0 +1 @@
+export { default as IconDelete } from './IconDelete'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDisc/IconDisc.tsx b/packages/common2/src/components/Icon/icons/IconDisc/IconDisc.tsx
new file mode 100644
index 00000000000..7cbce94b844
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDisc/IconDisc.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Disc } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDisc(props: any) {
+ return <IconBase icon={Disc} {...props} />
+ }
+
+ export default IconDisc
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDisc/index.tsx b/packages/common2/src/components/Icon/icons/IconDisc/index.tsx
new file mode 100644
index 00000000000..52afccf5409
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDisc/index.tsx
@@ -0,0 +1 @@
+export { default as IconDisc } from './IconDisc'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDivide/IconDivide.tsx b/packages/common2/src/components/Icon/icons/IconDivide/IconDivide.tsx
new file mode 100644
index 00000000000..02b0ec96e7f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDivide/IconDivide.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Divide } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDivide(props: any) {
+ return <IconBase icon={Divide} {...props} />
+ }
+
+ export default IconDivide
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDivide/index.tsx b/packages/common2/src/components/Icon/icons/IconDivide/index.tsx
new file mode 100644
index 00000000000..41363ecad89
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDivide/index.tsx
@@ -0,0 +1 @@
+export { default as IconDivide } from './IconDivide'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDivideCircle/IconDivideCircle.tsx b/packages/common2/src/components/Icon/icons/IconDivideCircle/IconDivideCircle.tsx
new file mode 100644
index 00000000000..b871b753329
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDivideCircle/IconDivideCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { DivideCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDivideCircle(props: any) {
+ return <IconBase icon={DivideCircle} {...props} />
+ }
+
+ export default IconDivideCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDivideCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconDivideCircle/index.tsx
new file mode 100644
index 00000000000..45364c264b0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDivideCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconDivideCircle } from './IconDivideCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDivideSquare/IconDivideSquare.tsx b/packages/common2/src/components/Icon/icons/IconDivideSquare/IconDivideSquare.tsx
new file mode 100644
index 00000000000..c90c2ac59a6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDivideSquare/IconDivideSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { DivideSquare } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDivideSquare(props: any) {
+ return <IconBase icon={DivideSquare} {...props} />
+ }
+
+ export default IconDivideSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDivideSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconDivideSquare/index.tsx
new file mode 100644
index 00000000000..7ab852f628f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDivideSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconDivideSquare } from './IconDivideSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDollarSign/IconDollarSign.tsx b/packages/common2/src/components/Icon/icons/IconDollarSign/IconDollarSign.tsx
new file mode 100644
index 00000000000..d7b502e2b03
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDollarSign/IconDollarSign.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { DollarSign } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDollarSign(props: any) {
+ return <IconBase icon={DollarSign} {...props} />
+ }
+
+ export default IconDollarSign
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDollarSign/index.tsx b/packages/common2/src/components/Icon/icons/IconDollarSign/index.tsx
new file mode 100644
index 00000000000..3e4d47f6832
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDollarSign/index.tsx
@@ -0,0 +1 @@
+export { default as IconDollarSign } from './IconDollarSign'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDownload/IconDownload.tsx b/packages/common2/src/components/Icon/icons/IconDownload/IconDownload.tsx
new file mode 100644
index 00000000000..5087bae32a8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDownload/IconDownload.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Download } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDownload(props: any) {
+ return <IconBase icon={Download} {...props} />
+ }
+
+ export default IconDownload
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDownload/index.tsx b/packages/common2/src/components/Icon/icons/IconDownload/index.tsx
new file mode 100644
index 00000000000..47db78af2d0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDownload/index.tsx
@@ -0,0 +1 @@
+export { default as IconDownload } from './IconDownload'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDownloadCloud/IconDownloadCloud.tsx b/packages/common2/src/components/Icon/icons/IconDownloadCloud/IconDownloadCloud.tsx
new file mode 100644
index 00000000000..49080528677
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDownloadCloud/IconDownloadCloud.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { DownloadCloud } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDownloadCloud(props: any) {
+ return <IconBase icon={DownloadCloud} {...props} />
+ }
+
+ export default IconDownloadCloud
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDownloadCloud/index.tsx b/packages/common2/src/components/Icon/icons/IconDownloadCloud/index.tsx
new file mode 100644
index 00000000000..531dd760ce7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDownloadCloud/index.tsx
@@ -0,0 +1 @@
+export { default as IconDownloadCloud } from './IconDownloadCloud'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDribbble/IconDribbble.tsx b/packages/common2/src/components/Icon/icons/IconDribbble/IconDribbble.tsx
new file mode 100644
index 00000000000..5172b61ecd0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDribbble/IconDribbble.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Dribbble } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDribbble(props: any) {
+ return <IconBase icon={Dribbble} {...props} />
+ }
+
+ export default IconDribbble
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDribbble/index.tsx b/packages/common2/src/components/Icon/icons/IconDribbble/index.tsx
new file mode 100644
index 00000000000..2c41308c1f9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDribbble/index.tsx
@@ -0,0 +1 @@
+export { default as IconDribbble } from './IconDribbble'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDroplet/IconDroplet.tsx b/packages/common2/src/components/Icon/icons/IconDroplet/IconDroplet.tsx
new file mode 100644
index 00000000000..d5b34ada938
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDroplet/IconDroplet.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Droplet } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconDroplet(props: any) {
+ return <IconBase icon={Droplet} {...props} />
+ }
+
+ export default IconDroplet
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconDroplet/index.tsx b/packages/common2/src/components/Icon/icons/IconDroplet/index.tsx
new file mode 100644
index 00000000000..5fb19904134
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconDroplet/index.tsx
@@ -0,0 +1 @@
+export { default as IconDroplet } from './IconDroplet'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEdit/IconEdit.tsx b/packages/common2/src/components/Icon/icons/IconEdit/IconEdit.tsx
new file mode 100644
index 00000000000..ad15f67073e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEdit/IconEdit.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Edit } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconEdit(props: any) {
+ return <IconBase icon={Edit} {...props} />
+ }
+
+ export default IconEdit
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEdit/index.tsx b/packages/common2/src/components/Icon/icons/IconEdit/index.tsx
new file mode 100644
index 00000000000..af52567d4cc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEdit/index.tsx
@@ -0,0 +1 @@
+export { default as IconEdit } from './IconEdit'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEdit2/IconEdit2.tsx b/packages/common2/src/components/Icon/icons/IconEdit2/IconEdit2.tsx
new file mode 100644
index 00000000000..d26d0c568f2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEdit2/IconEdit2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Edit2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconEdit2(props: any) {
+ return <IconBase icon={Edit2} {...props} />
+ }
+
+ export default IconEdit2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEdit2/index.tsx b/packages/common2/src/components/Icon/icons/IconEdit2/index.tsx
new file mode 100644
index 00000000000..6f7d8bbca5f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEdit2/index.tsx
@@ -0,0 +1 @@
+export { default as IconEdit2 } from './IconEdit2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEdit3/IconEdit3.tsx b/packages/common2/src/components/Icon/icons/IconEdit3/IconEdit3.tsx
new file mode 100644
index 00000000000..52e15479c88
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEdit3/IconEdit3.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Edit3 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconEdit3(props: any) {
+ return <IconBase icon={Edit3} {...props} />
+ }
+
+ export default IconEdit3
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEdit3/index.tsx b/packages/common2/src/components/Icon/icons/IconEdit3/index.tsx
new file mode 100644
index 00000000000..152f98f3101
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEdit3/index.tsx
@@ -0,0 +1 @@
+export { default as IconEdit3 } from './IconEdit3'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconExternalLink/IconExternalLink.tsx b/packages/common2/src/components/Icon/icons/IconExternalLink/IconExternalLink.tsx
new file mode 100644
index 00000000000..0aa2687c8a7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconExternalLink/IconExternalLink.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ExternalLink } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconExternalLink(props: any) {
+ return <IconBase icon={ExternalLink} {...props} />
+ }
+
+ export default IconExternalLink
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconExternalLink/index.tsx b/packages/common2/src/components/Icon/icons/IconExternalLink/index.tsx
new file mode 100644
index 00000000000..46c299244ac
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconExternalLink/index.tsx
@@ -0,0 +1 @@
+export { default as IconExternalLink } from './IconExternalLink'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEye/IconEye.tsx b/packages/common2/src/components/Icon/icons/IconEye/IconEye.tsx
new file mode 100644
index 00000000000..4b860e114a7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEye/IconEye.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Eye } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconEye(props: any) {
+ return <IconBase icon={Eye} {...props} />
+ }
+
+ export default IconEye
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEye/index.tsx b/packages/common2/src/components/Icon/icons/IconEye/index.tsx
new file mode 100644
index 00000000000..5a52fa214f9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEye/index.tsx
@@ -0,0 +1 @@
+export { default as IconEye } from './IconEye'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEyeOff/IconEyeOff.tsx b/packages/common2/src/components/Icon/icons/IconEyeOff/IconEyeOff.tsx
new file mode 100644
index 00000000000..fd2e986a807
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEyeOff/IconEyeOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { EyeOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconEyeOff(props: any) {
+ return <IconBase icon={EyeOff} {...props} />
+ }
+
+ export default IconEyeOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconEyeOff/index.tsx b/packages/common2/src/components/Icon/icons/IconEyeOff/index.tsx
new file mode 100644
index 00000000000..1c801bd5004
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconEyeOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconEyeOff } from './IconEyeOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFacebook/IconFacebook.tsx b/packages/common2/src/components/Icon/icons/IconFacebook/IconFacebook.tsx
new file mode 100644
index 00000000000..deaa6d0caa8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFacebook/IconFacebook.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Facebook } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFacebook(props: any) {
+ return <IconBase icon={Facebook} {...props} />
+ }
+
+ export default IconFacebook
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFacebook/index.tsx b/packages/common2/src/components/Icon/icons/IconFacebook/index.tsx
new file mode 100644
index 00000000000..ceb874a3ef8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFacebook/index.tsx
@@ -0,0 +1 @@
+export { default as IconFacebook } from './IconFacebook'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFastForward/IconFastForward.tsx b/packages/common2/src/components/Icon/icons/IconFastForward/IconFastForward.tsx
new file mode 100644
index 00000000000..7b166df6976
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFastForward/IconFastForward.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { FastForward } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFastForward(props: any) {
+ return <IconBase icon={FastForward} {...props} />
+ }
+
+ export default IconFastForward
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFastForward/index.tsx b/packages/common2/src/components/Icon/icons/IconFastForward/index.tsx
new file mode 100644
index 00000000000..328d519e36b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFastForward/index.tsx
@@ -0,0 +1 @@
+export { default as IconFastForward } from './IconFastForward'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFeather/IconFeather.tsx b/packages/common2/src/components/Icon/icons/IconFeather/IconFeather.tsx
new file mode 100644
index 00000000000..e574b48f59e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFeather/IconFeather.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Feather } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFeather(props: any) {
+ return <IconBase icon={Feather} {...props} />
+ }
+
+ export default IconFeather
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFeather/index.tsx b/packages/common2/src/components/Icon/icons/IconFeather/index.tsx
new file mode 100644
index 00000000000..3292e8b0d83
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFeather/index.tsx
@@ -0,0 +1 @@
+export { default as IconFeather } from './IconFeather'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFigma/IconFigma.tsx b/packages/common2/src/components/Icon/icons/IconFigma/IconFigma.tsx
new file mode 100644
index 00000000000..e3b0e809fbe
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFigma/IconFigma.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Figma } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFigma(props: any) {
+ return <IconBase icon={Figma} {...props} />
+ }
+
+ export default IconFigma
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFigma/index.tsx b/packages/common2/src/components/Icon/icons/IconFigma/index.tsx
new file mode 100644
index 00000000000..acb3e3b924e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFigma/index.tsx
@@ -0,0 +1 @@
+export { default as IconFigma } from './IconFigma'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFile/IconFile.tsx b/packages/common2/src/components/Icon/icons/IconFile/IconFile.tsx
new file mode 100644
index 00000000000..783ac7d2e1f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFile/IconFile.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { File } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFile(props: any) {
+ return <IconBase icon={File} {...props} />
+ }
+
+ export default IconFile
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFile/index.tsx b/packages/common2/src/components/Icon/icons/IconFile/index.tsx
new file mode 100644
index 00000000000..cad25268e3e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFile/index.tsx
@@ -0,0 +1 @@
+export { default as IconFile } from './IconFile'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFileMinus/IconFileMinus.tsx b/packages/common2/src/components/Icon/icons/IconFileMinus/IconFileMinus.tsx
new file mode 100644
index 00000000000..230f9088622
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFileMinus/IconFileMinus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { FileMinus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFileMinus(props: any) {
+ return <IconBase icon={FileMinus} {...props} />
+ }
+
+ export default IconFileMinus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFileMinus/index.tsx b/packages/common2/src/components/Icon/icons/IconFileMinus/index.tsx
new file mode 100644
index 00000000000..4b9b66b26ac
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFileMinus/index.tsx
@@ -0,0 +1 @@
+export { default as IconFileMinus } from './IconFileMinus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFilePlus/IconFilePlus.tsx b/packages/common2/src/components/Icon/icons/IconFilePlus/IconFilePlus.tsx
new file mode 100644
index 00000000000..34110c3acb9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFilePlus/IconFilePlus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { FilePlus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFilePlus(props: any) {
+ return <IconBase icon={FilePlus} {...props} />
+ }
+
+ export default IconFilePlus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFilePlus/index.tsx b/packages/common2/src/components/Icon/icons/IconFilePlus/index.tsx
new file mode 100644
index 00000000000..f5069b82483
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFilePlus/index.tsx
@@ -0,0 +1 @@
+export { default as IconFilePlus } from './IconFilePlus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFileText/IconFileText.tsx b/packages/common2/src/components/Icon/icons/IconFileText/IconFileText.tsx
new file mode 100644
index 00000000000..66b086a66d5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFileText/IconFileText.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { FileText } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFileText(props: any) {
+ return <IconBase icon={FileText} {...props} />
+ }
+
+ export default IconFileText
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFileText/index.tsx b/packages/common2/src/components/Icon/icons/IconFileText/index.tsx
new file mode 100644
index 00000000000..288b4d56d97
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFileText/index.tsx
@@ -0,0 +1 @@
+export { default as IconFileText } from './IconFileText'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFilm/IconFilm.tsx b/packages/common2/src/components/Icon/icons/IconFilm/IconFilm.tsx
new file mode 100644
index 00000000000..71848830a45
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFilm/IconFilm.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Film } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFilm(props: any) {
+ return <IconBase icon={Film} {...props} />
+ }
+
+ export default IconFilm
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFilm/index.tsx b/packages/common2/src/components/Icon/icons/IconFilm/index.tsx
new file mode 100644
index 00000000000..da1459a2938
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFilm/index.tsx
@@ -0,0 +1 @@
+export { default as IconFilm } from './IconFilm'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFilter/IconFilter.tsx b/packages/common2/src/components/Icon/icons/IconFilter/IconFilter.tsx
new file mode 100644
index 00000000000..5044a978e67
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFilter/IconFilter.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Filter } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFilter(props: any) {
+ return <IconBase icon={Filter} {...props} />
+ }
+
+ export default IconFilter
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFilter/index.tsx b/packages/common2/src/components/Icon/icons/IconFilter/index.tsx
new file mode 100644
index 00000000000..2e57c693dec
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFilter/index.tsx
@@ -0,0 +1 @@
+export { default as IconFilter } from './IconFilter'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFlag/IconFlag.tsx b/packages/common2/src/components/Icon/icons/IconFlag/IconFlag.tsx
new file mode 100644
index 00000000000..afab0b5ee01
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFlag/IconFlag.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Flag } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFlag(props: any) {
+ return <IconBase icon={Flag} {...props} />
+ }
+
+ export default IconFlag
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFlag/index.tsx b/packages/common2/src/components/Icon/icons/IconFlag/index.tsx
new file mode 100644
index 00000000000..fc470293bcb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFlag/index.tsx
@@ -0,0 +1 @@
+export { default as IconFlag } from './IconFlag'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFolder/IconFolder.tsx b/packages/common2/src/components/Icon/icons/IconFolder/IconFolder.tsx
new file mode 100644
index 00000000000..f823d302bc6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFolder/IconFolder.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Folder } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFolder(props: any) {
+ return <IconBase icon={Folder} {...props} />
+ }
+
+ export default IconFolder
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFolder/index.tsx b/packages/common2/src/components/Icon/icons/IconFolder/index.tsx
new file mode 100644
index 00000000000..fb963a8e7c8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFolder/index.tsx
@@ -0,0 +1 @@
+export { default as IconFolder } from './IconFolder'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFolderMinus/IconFolderMinus.tsx b/packages/common2/src/components/Icon/icons/IconFolderMinus/IconFolderMinus.tsx
new file mode 100644
index 00000000000..7971a6f3921
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFolderMinus/IconFolderMinus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { FolderMinus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFolderMinus(props: any) {
+ return <IconBase icon={FolderMinus} {...props} />
+ }
+
+ export default IconFolderMinus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFolderMinus/index.tsx b/packages/common2/src/components/Icon/icons/IconFolderMinus/index.tsx
new file mode 100644
index 00000000000..74832350505
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFolderMinus/index.tsx
@@ -0,0 +1 @@
+export { default as IconFolderMinus } from './IconFolderMinus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFolderPlus/IconFolderPlus.tsx b/packages/common2/src/components/Icon/icons/IconFolderPlus/IconFolderPlus.tsx
new file mode 100644
index 00000000000..72825b477f5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFolderPlus/IconFolderPlus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { FolderPlus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFolderPlus(props: any) {
+ return <IconBase icon={FolderPlus} {...props} />
+ }
+
+ export default IconFolderPlus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFolderPlus/index.tsx b/packages/common2/src/components/Icon/icons/IconFolderPlus/index.tsx
new file mode 100644
index 00000000000..03e776a7c6f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFolderPlus/index.tsx
@@ -0,0 +1 @@
+export { default as IconFolderPlus } from './IconFolderPlus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFramer/IconFramer.tsx b/packages/common2/src/components/Icon/icons/IconFramer/IconFramer.tsx
new file mode 100644
index 00000000000..15b054401b6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFramer/IconFramer.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Framer } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFramer(props: any) {
+ return <IconBase icon={Framer} {...props} />
+ }
+
+ export default IconFramer
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFramer/index.tsx b/packages/common2/src/components/Icon/icons/IconFramer/index.tsx
new file mode 100644
index 00000000000..11b1ce5da65
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFramer/index.tsx
@@ -0,0 +1 @@
+export { default as IconFramer } from './IconFramer'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFrown/IconFrown.tsx b/packages/common2/src/components/Icon/icons/IconFrown/IconFrown.tsx
new file mode 100644
index 00000000000..9294854acd5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFrown/IconFrown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Frown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconFrown(props: any) {
+ return <IconBase icon={Frown} {...props} />
+ }
+
+ export default IconFrown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconFrown/index.tsx b/packages/common2/src/components/Icon/icons/IconFrown/index.tsx
new file mode 100644
index 00000000000..f2a4d47604d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconFrown/index.tsx
@@ -0,0 +1 @@
+export { default as IconFrown } from './IconFrown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGift/IconGift.tsx b/packages/common2/src/components/Icon/icons/IconGift/IconGift.tsx
new file mode 100644
index 00000000000..c083d65458c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGift/IconGift.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Gift } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGift(props: any) {
+ return <IconBase icon={Gift} {...props} />
+ }
+
+ export default IconGift
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGift/index.tsx b/packages/common2/src/components/Icon/icons/IconGift/index.tsx
new file mode 100644
index 00000000000..98db46ae496
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGift/index.tsx
@@ -0,0 +1 @@
+export { default as IconGift } from './IconGift'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitBranch/IconGitBranch.tsx b/packages/common2/src/components/Icon/icons/IconGitBranch/IconGitBranch.tsx
new file mode 100644
index 00000000000..fc46f82ada6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitBranch/IconGitBranch.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { GitBranch } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGitBranch(props: any) {
+ return <IconBase icon={GitBranch} {...props} />
+ }
+
+ export default IconGitBranch
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitBranch/index.tsx b/packages/common2/src/components/Icon/icons/IconGitBranch/index.tsx
new file mode 100644
index 00000000000..10a02051554
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitBranch/index.tsx
@@ -0,0 +1 @@
+export { default as IconGitBranch } from './IconGitBranch'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitCommit/IconGitCommit.tsx b/packages/common2/src/components/Icon/icons/IconGitCommit/IconGitCommit.tsx
new file mode 100644
index 00000000000..184e653b4e5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitCommit/IconGitCommit.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { GitCommit } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGitCommit(props: any) {
+ return <IconBase icon={GitCommit} {...props} />
+ }
+
+ export default IconGitCommit
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitCommit/index.tsx b/packages/common2/src/components/Icon/icons/IconGitCommit/index.tsx
new file mode 100644
index 00000000000..29519a9f227
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitCommit/index.tsx
@@ -0,0 +1 @@
+export { default as IconGitCommit } from './IconGitCommit'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitHub/IconGitHub.tsx b/packages/common2/src/components/Icon/icons/IconGitHub/IconGitHub.tsx
new file mode 100644
index 00000000000..7f4128a5c0b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitHub/IconGitHub.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { GitHub } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGitHub(props: any) {
+ return <IconBase icon={GitHub} {...props} />
+ }
+
+ export default IconGitHub
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitHub/index.tsx b/packages/common2/src/components/Icon/icons/IconGitHub/index.tsx
new file mode 100644
index 00000000000..608d1aec113
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitHub/index.tsx
@@ -0,0 +1 @@
+export { default as IconGitHub } from './IconGitHub'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitMerge/IconGitMerge.tsx b/packages/common2/src/components/Icon/icons/IconGitMerge/IconGitMerge.tsx
new file mode 100644
index 00000000000..8dc3b6cbadc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitMerge/IconGitMerge.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { GitMerge } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGitMerge(props: any) {
+ return <IconBase icon={GitMerge} {...props} />
+ }
+
+ export default IconGitMerge
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitMerge/index.tsx b/packages/common2/src/components/Icon/icons/IconGitMerge/index.tsx
new file mode 100644
index 00000000000..2d94f1a9ab8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitMerge/index.tsx
@@ -0,0 +1 @@
+export { default as IconGitMerge } from './IconGitMerge'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitPullRequest/IconGitPullRequest.tsx b/packages/common2/src/components/Icon/icons/IconGitPullRequest/IconGitPullRequest.tsx
new file mode 100644
index 00000000000..a87841a1548
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitPullRequest/IconGitPullRequest.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { GitPullRequest } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGitPullRequest(props: any) {
+ return <IconBase icon={GitPullRequest} {...props} />
+ }
+
+ export default IconGitPullRequest
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitPullRequest/index.tsx b/packages/common2/src/components/Icon/icons/IconGitPullRequest/index.tsx
new file mode 100644
index 00000000000..4a71993a501
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitPullRequest/index.tsx
@@ -0,0 +1 @@
+export { default as IconGitPullRequest } from './IconGitPullRequest'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitlab/IconGitlab.tsx b/packages/common2/src/components/Icon/icons/IconGitlab/IconGitlab.tsx
new file mode 100644
index 00000000000..43e62e79dba
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitlab/IconGitlab.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Gitlab } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGitlab(props: any) {
+ return <IconBase icon={Gitlab} {...props} />
+ }
+
+ export default IconGitlab
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGitlab/index.tsx b/packages/common2/src/components/Icon/icons/IconGitlab/index.tsx
new file mode 100644
index 00000000000..05be357fe26
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGitlab/index.tsx
@@ -0,0 +1 @@
+export { default as IconGitlab } from './IconGitlab'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGlobe/IconGlobe.tsx b/packages/common2/src/components/Icon/icons/IconGlobe/IconGlobe.tsx
new file mode 100644
index 00000000000..5062d32700a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGlobe/IconGlobe.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Globe } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGlobe(props: any) {
+ return <IconBase icon={Globe} {...props} />
+ }
+
+ export default IconGlobe
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGlobe/index.tsx b/packages/common2/src/components/Icon/icons/IconGlobe/index.tsx
new file mode 100644
index 00000000000..6f235fa7223
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGlobe/index.tsx
@@ -0,0 +1 @@
+export { default as IconGlobe } from './IconGlobe'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGrid/IconGrid.tsx b/packages/common2/src/components/Icon/icons/IconGrid/IconGrid.tsx
new file mode 100644
index 00000000000..46040eb7938
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGrid/IconGrid.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Grid } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconGrid(props: any) {
+ return <IconBase icon={Grid} {...props} />
+ }
+
+ export default IconGrid
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconGrid/index.tsx b/packages/common2/src/components/Icon/icons/IconGrid/index.tsx
new file mode 100644
index 00000000000..70462bca247
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconGrid/index.tsx
@@ -0,0 +1 @@
+export { default as IconGrid } from './IconGrid'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHardDrive/IconHardDrive.tsx b/packages/common2/src/components/Icon/icons/IconHardDrive/IconHardDrive.tsx
new file mode 100644
index 00000000000..757565640e1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHardDrive/IconHardDrive.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { HardDrive } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHardDrive(props: any) {
+ return <IconBase icon={HardDrive} {...props} />
+ }
+
+ export default IconHardDrive
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHardDrive/index.tsx b/packages/common2/src/components/Icon/icons/IconHardDrive/index.tsx
new file mode 100644
index 00000000000..2425e8ac09c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHardDrive/index.tsx
@@ -0,0 +1 @@
+export { default as IconHardDrive } from './IconHardDrive'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHash/IconHash.tsx b/packages/common2/src/components/Icon/icons/IconHash/IconHash.tsx
new file mode 100644
index 00000000000..d5118da9122
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHash/IconHash.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Hash } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHash(props: any) {
+ return <IconBase icon={Hash} {...props} />
+ }
+
+ export default IconHash
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHash/index.tsx b/packages/common2/src/components/Icon/icons/IconHash/index.tsx
new file mode 100644
index 00000000000..97522ca8118
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHash/index.tsx
@@ -0,0 +1 @@
+export { default as IconHash } from './IconHash'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHeadphones/IconHeadphones.tsx b/packages/common2/src/components/Icon/icons/IconHeadphones/IconHeadphones.tsx
new file mode 100644
index 00000000000..2711ab135f6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHeadphones/IconHeadphones.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Headphones } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHeadphones(props: any) {
+ return <IconBase icon={Headphones} {...props} />
+ }
+
+ export default IconHeadphones
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHeadphones/index.tsx b/packages/common2/src/components/Icon/icons/IconHeadphones/index.tsx
new file mode 100644
index 00000000000..ec00aa51f14
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHeadphones/index.tsx
@@ -0,0 +1 @@
+export { default as IconHeadphones } from './IconHeadphones'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHeart/IconHeart.tsx b/packages/common2/src/components/Icon/icons/IconHeart/IconHeart.tsx
new file mode 100644
index 00000000000..a6c20eb8d29
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHeart/IconHeart.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Heart } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHeart(props: any) {
+ return <IconBase icon={Heart} {...props} />
+ }
+
+ export default IconHeart
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHeart/index.tsx b/packages/common2/src/components/Icon/icons/IconHeart/index.tsx
new file mode 100644
index 00000000000..cddf79d3273
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHeart/index.tsx
@@ -0,0 +1 @@
+export { default as IconHeart } from './IconHeart'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHelpCircle/IconHelpCircle.tsx b/packages/common2/src/components/Icon/icons/IconHelpCircle/IconHelpCircle.tsx
new file mode 100644
index 00000000000..e94831464f3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHelpCircle/IconHelpCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { HelpCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHelpCircle(props: any) {
+ return <IconBase icon={HelpCircle} {...props} />
+ }
+
+ export default IconHelpCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHelpCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconHelpCircle/index.tsx
new file mode 100644
index 00000000000..d03132246ff
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHelpCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconHelpCircle } from './IconHelpCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHexagon/IconHexagon.tsx b/packages/common2/src/components/Icon/icons/IconHexagon/IconHexagon.tsx
new file mode 100644
index 00000000000..eb6961b6c19
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHexagon/IconHexagon.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Hexagon } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHexagon(props: any) {
+ return <IconBase icon={Hexagon} {...props} />
+ }
+
+ export default IconHexagon
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHexagon/index.tsx b/packages/common2/src/components/Icon/icons/IconHexagon/index.tsx
new file mode 100644
index 00000000000..6a26815ba7d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHexagon/index.tsx
@@ -0,0 +1 @@
+export { default as IconHexagon } from './IconHexagon'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHome/IconHome.tsx b/packages/common2/src/components/Icon/icons/IconHome/IconHome.tsx
new file mode 100644
index 00000000000..61d8421e4a2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHome/IconHome.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Home } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconHome(props: any) {
+ return <IconBase icon={Home} {...props} />
+ }
+
+ export default IconHome
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconHome/index.tsx b/packages/common2/src/components/Icon/icons/IconHome/index.tsx
new file mode 100644
index 00000000000..dc9261d7802
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconHome/index.tsx
@@ -0,0 +1 @@
+export { default as IconHome } from './IconHome'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconImage/IconImage.tsx b/packages/common2/src/components/Icon/icons/IconImage/IconImage.tsx
new file mode 100644
index 00000000000..05b91aba21f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconImage/IconImage.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Image } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconImage(props: any) {
+ return <IconBase icon={Image} {...props} />
+ }
+
+ export default IconImage
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconImage/index.tsx b/packages/common2/src/components/Icon/icons/IconImage/index.tsx
new file mode 100644
index 00000000000..c03e50fcbba
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconImage/index.tsx
@@ -0,0 +1 @@
+export { default as IconImage } from './IconImage'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconInbox/IconInbox.tsx b/packages/common2/src/components/Icon/icons/IconInbox/IconInbox.tsx
new file mode 100644
index 00000000000..962d108bcb3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconInbox/IconInbox.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Inbox } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconInbox(props: any) {
+ return <IconBase icon={Inbox} {...props} />
+ }
+
+ export default IconInbox
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconInbox/index.tsx b/packages/common2/src/components/Icon/icons/IconInbox/index.tsx
new file mode 100644
index 00000000000..e6bf79f5cfe
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconInbox/index.tsx
@@ -0,0 +1 @@
+export { default as IconInbox } from './IconInbox'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconInfo/IconInfo.tsx b/packages/common2/src/components/Icon/icons/IconInfo/IconInfo.tsx
new file mode 100644
index 00000000000..7fe8b00b42e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconInfo/IconInfo.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Info } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconInfo(props: any) {
+ return <IconBase icon={Info} {...props} />
+ }
+
+ export default IconInfo
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconInfo/index.tsx b/packages/common2/src/components/Icon/icons/IconInfo/index.tsx
new file mode 100644
index 00000000000..a133d6514fe
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconInfo/index.tsx
@@ -0,0 +1 @@
+export { default as IconInfo } from './IconInfo'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconInstagram/IconInstagram.tsx b/packages/common2/src/components/Icon/icons/IconInstagram/IconInstagram.tsx
new file mode 100644
index 00000000000..3b7a9b2a993
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconInstagram/IconInstagram.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Instagram } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconInstagram(props: any) {
+ return <IconBase icon={Instagram} {...props} />
+ }
+
+ export default IconInstagram
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconInstagram/index.tsx b/packages/common2/src/components/Icon/icons/IconInstagram/index.tsx
new file mode 100644
index 00000000000..9e944ccf51c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconInstagram/index.tsx
@@ -0,0 +1 @@
+export { default as IconInstagram } from './IconInstagram'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconItalic/IconItalic.tsx b/packages/common2/src/components/Icon/icons/IconItalic/IconItalic.tsx
new file mode 100644
index 00000000000..0a2bf24dad4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconItalic/IconItalic.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Italic } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconItalic(props: any) {
+ return <IconBase icon={Italic} {...props} />
+ }
+
+ export default IconItalic
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconItalic/index.tsx b/packages/common2/src/components/Icon/icons/IconItalic/index.tsx
new file mode 100644
index 00000000000..bf25fb58a41
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconItalic/index.tsx
@@ -0,0 +1 @@
+export { default as IconItalic } from './IconItalic'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconKey/IconKey.tsx b/packages/common2/src/components/Icon/icons/IconKey/IconKey.tsx
new file mode 100644
index 00000000000..b64ffe7bf83
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconKey/IconKey.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Key } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconKey(props: any) {
+ return <IconBase icon={Key} {...props} />
+ }
+
+ export default IconKey
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconKey/index.tsx b/packages/common2/src/components/Icon/icons/IconKey/index.tsx
new file mode 100644
index 00000000000..cb927e42bf2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconKey/index.tsx
@@ -0,0 +1 @@
+export { default as IconKey } from './IconKey'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLayers/IconLayers.tsx b/packages/common2/src/components/Icon/icons/IconLayers/IconLayers.tsx
new file mode 100644
index 00000000000..7e8f6a9a127
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLayers/IconLayers.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Layers } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLayers(props: any) {
+ return <IconBase icon={Layers} {...props} />
+ }
+
+ export default IconLayers
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLayers/index.tsx b/packages/common2/src/components/Icon/icons/IconLayers/index.tsx
new file mode 100644
index 00000000000..b9ecc8248b8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLayers/index.tsx
@@ -0,0 +1 @@
+export { default as IconLayers } from './IconLayers'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLayout/IconLayout.tsx b/packages/common2/src/components/Icon/icons/IconLayout/IconLayout.tsx
new file mode 100644
index 00000000000..1c4a1e84202
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLayout/IconLayout.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Layout } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLayout(props: any) {
+ return <IconBase icon={Layout} {...props} />
+ }
+
+ export default IconLayout
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLayout/index.tsx b/packages/common2/src/components/Icon/icons/IconLayout/index.tsx
new file mode 100644
index 00000000000..5ff570644b9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLayout/index.tsx
@@ -0,0 +1 @@
+export { default as IconLayout } from './IconLayout'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLifeBuoy/IconLifeBuoy.tsx b/packages/common2/src/components/Icon/icons/IconLifeBuoy/IconLifeBuoy.tsx
new file mode 100644
index 00000000000..cb98a27f988
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLifeBuoy/IconLifeBuoy.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { LifeBuoy } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLifeBuoy(props: any) {
+ return <IconBase icon={LifeBuoy} {...props} />
+ }
+
+ export default IconLifeBuoy
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLifeBuoy/index.tsx b/packages/common2/src/components/Icon/icons/IconLifeBuoy/index.tsx
new file mode 100644
index 00000000000..6353c3a8352
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLifeBuoy/index.tsx
@@ -0,0 +1 @@
+export { default as IconLifeBuoy } from './IconLifeBuoy'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLink/IconLink.tsx b/packages/common2/src/components/Icon/icons/IconLink/IconLink.tsx
new file mode 100644
index 00000000000..9f4354b9cc6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLink/IconLink.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Link } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLink(props: any) {
+ return <IconBase icon={Link} {...props} />
+ }
+
+ export default IconLink
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLink/index.tsx b/packages/common2/src/components/Icon/icons/IconLink/index.tsx
new file mode 100644
index 00000000000..61093f8bd35
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLink/index.tsx
@@ -0,0 +1 @@
+export { default as IconLink } from './IconLink'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLink2/IconLink2.tsx b/packages/common2/src/components/Icon/icons/IconLink2/IconLink2.tsx
new file mode 100644
index 00000000000..48311558da1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLink2/IconLink2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Link2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLink2(props: any) {
+ return <IconBase icon={Link2} {...props} />
+ }
+
+ export default IconLink2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLink2/index.tsx b/packages/common2/src/components/Icon/icons/IconLink2/index.tsx
new file mode 100644
index 00000000000..7df3844aa81
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLink2/index.tsx
@@ -0,0 +1 @@
+export { default as IconLink2 } from './IconLink2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLinkedin/IconLinkedin.tsx b/packages/common2/src/components/Icon/icons/IconLinkedin/IconLinkedin.tsx
new file mode 100644
index 00000000000..46d62e1b98c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLinkedin/IconLinkedin.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Linkedin } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLinkedin(props: any) {
+ return <IconBase icon={Linkedin} {...props} />
+ }
+
+ export default IconLinkedin
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLinkedin/index.tsx b/packages/common2/src/components/Icon/icons/IconLinkedin/index.tsx
new file mode 100644
index 00000000000..36d537210b3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLinkedin/index.tsx
@@ -0,0 +1 @@
+export { default as IconLinkedin } from './IconLinkedin'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconList/IconList.tsx b/packages/common2/src/components/Icon/icons/IconList/IconList.tsx
new file mode 100644
index 00000000000..492663c9eca
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconList/IconList.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { List } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconList(props: any) {
+ return <IconBase icon={List} {...props} />
+ }
+
+ export default IconList
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconList/index.tsx b/packages/common2/src/components/Icon/icons/IconList/index.tsx
new file mode 100644
index 00000000000..5773dbeca8b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconList/index.tsx
@@ -0,0 +1 @@
+export { default as IconList } from './IconList'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLoader/IconLoader.tsx b/packages/common2/src/components/Icon/icons/IconLoader/IconLoader.tsx
new file mode 100644
index 00000000000..883c4587259
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLoader/IconLoader.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Loader } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLoader(props: any) {
+ return <IconBase icon={Loader} {...props} />
+ }
+
+ export default IconLoader
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLoader/index.tsx b/packages/common2/src/components/Icon/icons/IconLoader/index.tsx
new file mode 100644
index 00000000000..daaebea734d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLoader/index.tsx
@@ -0,0 +1 @@
+export { default as IconLoader } from './IconLoader'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLock/IconLock.tsx b/packages/common2/src/components/Icon/icons/IconLock/IconLock.tsx
new file mode 100644
index 00000000000..b43e6cdccd9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLock/IconLock.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Lock } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLock(props: any) {
+ return <IconBase icon={Lock} {...props} />
+ }
+
+ export default IconLock
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLock/index.tsx b/packages/common2/src/components/Icon/icons/IconLock/index.tsx
new file mode 100644
index 00000000000..6fe4b7bded0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLock/index.tsx
@@ -0,0 +1 @@
+export { default as IconLock } from './IconLock'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLogIn/IconLogIn.tsx b/packages/common2/src/components/Icon/icons/IconLogIn/IconLogIn.tsx
new file mode 100644
index 00000000000..761444037aa
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLogIn/IconLogIn.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { LogIn } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLogIn(props: any) {
+ return <IconBase icon={LogIn} {...props} />
+ }
+
+ export default IconLogIn
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLogIn/index.tsx b/packages/common2/src/components/Icon/icons/IconLogIn/index.tsx
new file mode 100644
index 00000000000..a051b59dc52
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLogIn/index.tsx
@@ -0,0 +1 @@
+export { default as IconLogIn } from './IconLogIn'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLogOut/IconLogOut.tsx b/packages/common2/src/components/Icon/icons/IconLogOut/IconLogOut.tsx
new file mode 100644
index 00000000000..02658d94634
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLogOut/IconLogOut.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { LogOut } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconLogOut(props: any) {
+ return <IconBase icon={LogOut} {...props} />
+ }
+
+ export default IconLogOut
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconLogOut/index.tsx b/packages/common2/src/components/Icon/icons/IconLogOut/index.tsx
new file mode 100644
index 00000000000..21175f671e7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconLogOut/index.tsx
@@ -0,0 +1 @@
+export { default as IconLogOut } from './IconLogOut'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMail/IconMail.tsx b/packages/common2/src/components/Icon/icons/IconMail/IconMail.tsx
new file mode 100644
index 00000000000..cc22eb70f28
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMail/IconMail.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Mail } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMail(props: any) {
+ return <IconBase icon={Mail} {...props} />
+ }
+
+ export default IconMail
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMail/index.tsx b/packages/common2/src/components/Icon/icons/IconMail/index.tsx
new file mode 100644
index 00000000000..f8c8667ee71
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMail/index.tsx
@@ -0,0 +1 @@
+export { default as IconMail } from './IconMail'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMap/IconMap.tsx b/packages/common2/src/components/Icon/icons/IconMap/IconMap.tsx
new file mode 100644
index 00000000000..6d83e575f35
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMap/IconMap.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Map } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMap(props: any) {
+ return <IconBase icon={Map} {...props} />
+ }
+
+ export default IconMap
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMap/index.tsx b/packages/common2/src/components/Icon/icons/IconMap/index.tsx
new file mode 100644
index 00000000000..8b24ec3d545
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMap/index.tsx
@@ -0,0 +1 @@
+export { default as IconMap } from './IconMap'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMapPin/IconMapPin.tsx b/packages/common2/src/components/Icon/icons/IconMapPin/IconMapPin.tsx
new file mode 100644
index 00000000000..2d3611000bf
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMapPin/IconMapPin.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MapPin } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMapPin(props: any) {
+ return <IconBase icon={MapPin} {...props} />
+ }
+
+ export default IconMapPin
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMapPin/index.tsx b/packages/common2/src/components/Icon/icons/IconMapPin/index.tsx
new file mode 100644
index 00000000000..766afe88b9b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMapPin/index.tsx
@@ -0,0 +1 @@
+export { default as IconMapPin } from './IconMapPin'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMaximize/IconMaximize.tsx b/packages/common2/src/components/Icon/icons/IconMaximize/IconMaximize.tsx
new file mode 100644
index 00000000000..b06fb773f49
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMaximize/IconMaximize.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Maximize } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMaximize(props: any) {
+ return <IconBase icon={Maximize} {...props} />
+ }
+
+ export default IconMaximize
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMaximize/index.tsx b/packages/common2/src/components/Icon/icons/IconMaximize/index.tsx
new file mode 100644
index 00000000000..05af84161da
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMaximize/index.tsx
@@ -0,0 +1 @@
+export { default as IconMaximize } from './IconMaximize'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMaximize2/IconMaximize2.tsx b/packages/common2/src/components/Icon/icons/IconMaximize2/IconMaximize2.tsx
new file mode 100644
index 00000000000..30da5bf5527
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMaximize2/IconMaximize2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Maximize2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMaximize2(props: any) {
+ return <IconBase icon={Maximize2} {...props} />
+ }
+
+ export default IconMaximize2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMaximize2/index.tsx b/packages/common2/src/components/Icon/icons/IconMaximize2/index.tsx
new file mode 100644
index 00000000000..a9ee885446b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMaximize2/index.tsx
@@ -0,0 +1 @@
+export { default as IconMaximize2 } from './IconMaximize2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMeh/IconMeh.tsx b/packages/common2/src/components/Icon/icons/IconMeh/IconMeh.tsx
new file mode 100644
index 00000000000..7667f2e5606
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMeh/IconMeh.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Meh } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMeh(props: any) {
+ return <IconBase icon={Meh} {...props} />
+ }
+
+ export default IconMeh
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMeh/index.tsx b/packages/common2/src/components/Icon/icons/IconMeh/index.tsx
new file mode 100644
index 00000000000..a05f15bfdd8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMeh/index.tsx
@@ -0,0 +1 @@
+export { default as IconMeh } from './IconMeh'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMenu/IconMenu.tsx b/packages/common2/src/components/Icon/icons/IconMenu/IconMenu.tsx
new file mode 100644
index 00000000000..689748642f5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMenu/IconMenu.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Menu } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMenu(props: any) {
+ return <IconBase icon={Menu} {...props} />
+ }
+
+ export default IconMenu
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMenu/index.tsx b/packages/common2/src/components/Icon/icons/IconMenu/index.tsx
new file mode 100644
index 00000000000..fc07cc67453
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMenu/index.tsx
@@ -0,0 +1 @@
+export { default as IconMenu } from './IconMenu'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMessageCircle/IconMessageCircle.tsx b/packages/common2/src/components/Icon/icons/IconMessageCircle/IconMessageCircle.tsx
new file mode 100644
index 00000000000..1a9b2f933b5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMessageCircle/IconMessageCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MessageCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMessageCircle(props: any) {
+ return <IconBase icon={MessageCircle} {...props} />
+ }
+
+ export default IconMessageCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMessageCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconMessageCircle/index.tsx
new file mode 100644
index 00000000000..9d06f7672e8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMessageCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconMessageCircle } from './IconMessageCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMessageSquare/IconMessageSquare.tsx b/packages/common2/src/components/Icon/icons/IconMessageSquare/IconMessageSquare.tsx
new file mode 100644
index 00000000000..66ba2fe1e36
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMessageSquare/IconMessageSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MessageSquare } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMessageSquare(props: any) {
+ return <IconBase icon={MessageSquare} {...props} />
+ }
+
+ export default IconMessageSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMessageSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconMessageSquare/index.tsx
new file mode 100644
index 00000000000..44abdd0d9a1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMessageSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconMessageSquare } from './IconMessageSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMic/IconMic.tsx b/packages/common2/src/components/Icon/icons/IconMic/IconMic.tsx
new file mode 100644
index 00000000000..cf55b744f7c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMic/IconMic.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Mic } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMic(props: any) {
+ return <IconBase icon={Mic} {...props} />
+ }
+
+ export default IconMic
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMic/index.tsx b/packages/common2/src/components/Icon/icons/IconMic/index.tsx
new file mode 100644
index 00000000000..9bf267c1c88
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMic/index.tsx
@@ -0,0 +1 @@
+export { default as IconMic } from './IconMic'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMicOff/IconMicOff.tsx b/packages/common2/src/components/Icon/icons/IconMicOff/IconMicOff.tsx
new file mode 100644
index 00000000000..427c329d12b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMicOff/IconMicOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MicOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMicOff(props: any) {
+ return <IconBase icon={MicOff} {...props} />
+ }
+
+ export default IconMicOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMicOff/index.tsx b/packages/common2/src/components/Icon/icons/IconMicOff/index.tsx
new file mode 100644
index 00000000000..c6d4ac36fc9
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMicOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconMicOff } from './IconMicOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinimize/IconMinimize.tsx b/packages/common2/src/components/Icon/icons/IconMinimize/IconMinimize.tsx
new file mode 100644
index 00000000000..138b2dc4d57
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinimize/IconMinimize.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Minimize } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMinimize(props: any) {
+ return <IconBase icon={Minimize} {...props} />
+ }
+
+ export default IconMinimize
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinimize/index.tsx b/packages/common2/src/components/Icon/icons/IconMinimize/index.tsx
new file mode 100644
index 00000000000..4181851df8f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinimize/index.tsx
@@ -0,0 +1 @@
+export { default as IconMinimize } from './IconMinimize'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinimize2/IconMinimize2.tsx b/packages/common2/src/components/Icon/icons/IconMinimize2/IconMinimize2.tsx
new file mode 100644
index 00000000000..1636b61724c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinimize2/IconMinimize2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Minimize2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMinimize2(props: any) {
+ return <IconBase icon={Minimize2} {...props} />
+ }
+
+ export default IconMinimize2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinimize2/index.tsx b/packages/common2/src/components/Icon/icons/IconMinimize2/index.tsx
new file mode 100644
index 00000000000..22a4346a8ab
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinimize2/index.tsx
@@ -0,0 +1 @@
+export { default as IconMinimize2 } from './IconMinimize2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinus/IconMinus.tsx b/packages/common2/src/components/Icon/icons/IconMinus/IconMinus.tsx
new file mode 100644
index 00000000000..965727e4328
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinus/IconMinus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Minus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMinus(props: any) {
+ return <IconBase icon={Minus} {...props} />
+ }
+
+ export default IconMinus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinus/index.tsx b/packages/common2/src/components/Icon/icons/IconMinus/index.tsx
new file mode 100644
index 00000000000..8d0539c0143
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinus/index.tsx
@@ -0,0 +1 @@
+export { default as IconMinus } from './IconMinus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinusCircle/IconMinusCircle.tsx b/packages/common2/src/components/Icon/icons/IconMinusCircle/IconMinusCircle.tsx
new file mode 100644
index 00000000000..ff929953696
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinusCircle/IconMinusCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MinusCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMinusCircle(props: any) {
+ return <IconBase icon={MinusCircle} {...props} />
+ }
+
+ export default IconMinusCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinusCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconMinusCircle/index.tsx
new file mode 100644
index 00000000000..0c15c333077
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinusCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconMinusCircle } from './IconMinusCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinusSquare/IconMinusSquare.tsx b/packages/common2/src/components/Icon/icons/IconMinusSquare/IconMinusSquare.tsx
new file mode 100644
index 00000000000..07d62a5e838
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinusSquare/IconMinusSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MinusSquare } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMinusSquare(props: any) {
+ return <IconBase icon={MinusSquare} {...props} />
+ }
+
+ export default IconMinusSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMinusSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconMinusSquare/index.tsx
new file mode 100644
index 00000000000..5b434586304
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMinusSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconMinusSquare } from './IconMinusSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMonitor/IconMonitor.tsx b/packages/common2/src/components/Icon/icons/IconMonitor/IconMonitor.tsx
new file mode 100644
index 00000000000..d3b07fa2856
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMonitor/IconMonitor.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Monitor } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMonitor(props: any) {
+ return <IconBase icon={Monitor} {...props} />
+ }
+
+ export default IconMonitor
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMonitor/index.tsx b/packages/common2/src/components/Icon/icons/IconMonitor/index.tsx
new file mode 100644
index 00000000000..de64f06d3fb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMonitor/index.tsx
@@ -0,0 +1 @@
+export { default as IconMonitor } from './IconMonitor'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMoon/IconMoon.tsx b/packages/common2/src/components/Icon/icons/IconMoon/IconMoon.tsx
new file mode 100644
index 00000000000..e0fdb4cd35e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMoon/IconMoon.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Moon } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMoon(props: any) {
+ return <IconBase icon={Moon} {...props} />
+ }
+
+ export default IconMoon
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMoon/index.tsx b/packages/common2/src/components/Icon/icons/IconMoon/index.tsx
new file mode 100644
index 00000000000..72cadd9c75b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMoon/index.tsx
@@ -0,0 +1 @@
+export { default as IconMoon } from './IconMoon'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMoreHorizontal/IconMoreHorizontal.tsx b/packages/common2/src/components/Icon/icons/IconMoreHorizontal/IconMoreHorizontal.tsx
new file mode 100644
index 00000000000..c209129e8f6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMoreHorizontal/IconMoreHorizontal.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MoreHorizontal } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMoreHorizontal(props: any) {
+ return <IconBase icon={MoreHorizontal} {...props} />
+ }
+
+ export default IconMoreHorizontal
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMoreHorizontal/index.tsx b/packages/common2/src/components/Icon/icons/IconMoreHorizontal/index.tsx
new file mode 100644
index 00000000000..9d4cc538cb2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMoreHorizontal/index.tsx
@@ -0,0 +1 @@
+export { default as IconMoreHorizontal } from './IconMoreHorizontal'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMoreVertical/IconMoreVertical.tsx b/packages/common2/src/components/Icon/icons/IconMoreVertical/IconMoreVertical.tsx
new file mode 100644
index 00000000000..3ef825d00d3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMoreVertical/IconMoreVertical.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MoreVertical } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMoreVertical(props: any) {
+ return <IconBase icon={MoreVertical} {...props} />
+ }
+
+ export default IconMoreVertical
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMoreVertical/index.tsx b/packages/common2/src/components/Icon/icons/IconMoreVertical/index.tsx
new file mode 100644
index 00000000000..09e734731ec
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMoreVertical/index.tsx
@@ -0,0 +1 @@
+export { default as IconMoreVertical } from './IconMoreVertical'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMousePointer/IconMousePointer.tsx b/packages/common2/src/components/Icon/icons/IconMousePointer/IconMousePointer.tsx
new file mode 100644
index 00000000000..3ef68e2ecca
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMousePointer/IconMousePointer.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { MousePointer } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMousePointer(props: any) {
+ return <IconBase icon={MousePointer} {...props} />
+ }
+
+ export default IconMousePointer
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMousePointer/index.tsx b/packages/common2/src/components/Icon/icons/IconMousePointer/index.tsx
new file mode 100644
index 00000000000..0bb79473c38
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMousePointer/index.tsx
@@ -0,0 +1 @@
+export { default as IconMousePointer } from './IconMousePointer'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMove/IconMove.tsx b/packages/common2/src/components/Icon/icons/IconMove/IconMove.tsx
new file mode 100644
index 00000000000..74ed3635837
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMove/IconMove.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Move } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMove(props: any) {
+ return <IconBase icon={Move} {...props} />
+ }
+
+ export default IconMove
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMove/index.tsx b/packages/common2/src/components/Icon/icons/IconMove/index.tsx
new file mode 100644
index 00000000000..3a09652b9e6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMove/index.tsx
@@ -0,0 +1 @@
+export { default as IconMove } from './IconMove'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMusic/IconMusic.tsx b/packages/common2/src/components/Icon/icons/IconMusic/IconMusic.tsx
new file mode 100644
index 00000000000..98d7f16a81b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMusic/IconMusic.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Music } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconMusic(props: any) {
+ return <IconBase icon={Music} {...props} />
+ }
+
+ export default IconMusic
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconMusic/index.tsx b/packages/common2/src/components/Icon/icons/IconMusic/index.tsx
new file mode 100644
index 00000000000..b9e9ced4974
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconMusic/index.tsx
@@ -0,0 +1 @@
+export { default as IconMusic } from './IconMusic'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconNavigation/IconNavigation.tsx b/packages/common2/src/components/Icon/icons/IconNavigation/IconNavigation.tsx
new file mode 100644
index 00000000000..8771d88a9b4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconNavigation/IconNavigation.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Navigation } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconNavigation(props: any) {
+ return <IconBase icon={Navigation} {...props} />
+ }
+
+ export default IconNavigation
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconNavigation/index.tsx b/packages/common2/src/components/Icon/icons/IconNavigation/index.tsx
new file mode 100644
index 00000000000..f1cf1746b54
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconNavigation/index.tsx
@@ -0,0 +1 @@
+export { default as IconNavigation } from './IconNavigation'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconNavigation2/IconNavigation2.tsx b/packages/common2/src/components/Icon/icons/IconNavigation2/IconNavigation2.tsx
new file mode 100644
index 00000000000..4f9d0185e65
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconNavigation2/IconNavigation2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Navigation2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconNavigation2(props: any) {
+ return <IconBase icon={Navigation2} {...props} />
+ }
+
+ export default IconNavigation2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconNavigation2/index.tsx b/packages/common2/src/components/Icon/icons/IconNavigation2/index.tsx
new file mode 100644
index 00000000000..a5007e9aac8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconNavigation2/index.tsx
@@ -0,0 +1 @@
+export { default as IconNavigation2 } from './IconNavigation2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconOctagon/IconOctagon.tsx b/packages/common2/src/components/Icon/icons/IconOctagon/IconOctagon.tsx
new file mode 100644
index 00000000000..dba3318b813
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconOctagon/IconOctagon.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Octagon } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconOctagon(props: any) {
+ return <IconBase icon={Octagon} {...props} />
+ }
+
+ export default IconOctagon
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconOctagon/index.tsx b/packages/common2/src/components/Icon/icons/IconOctagon/index.tsx
new file mode 100644
index 00000000000..84af91fd14e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconOctagon/index.tsx
@@ -0,0 +1 @@
+export { default as IconOctagon } from './IconOctagon'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPackage/IconPackage.tsx b/packages/common2/src/components/Icon/icons/IconPackage/IconPackage.tsx
new file mode 100644
index 00000000000..f9d3496f132
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPackage/IconPackage.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Package } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPackage(props: any) {
+ return <IconBase icon={Package} {...props} />
+ }
+
+ export default IconPackage
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPackage/index.tsx b/packages/common2/src/components/Icon/icons/IconPackage/index.tsx
new file mode 100644
index 00000000000..4994e914bef
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPackage/index.tsx
@@ -0,0 +1 @@
+export { default as IconPackage } from './IconPackage'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPaperclip/IconPaperclip.tsx b/packages/common2/src/components/Icon/icons/IconPaperclip/IconPaperclip.tsx
new file mode 100644
index 00000000000..54a7234486f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPaperclip/IconPaperclip.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Paperclip } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPaperclip(props: any) {
+ return <IconBase icon={Paperclip} {...props} />
+ }
+
+ export default IconPaperclip
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPaperclip/index.tsx b/packages/common2/src/components/Icon/icons/IconPaperclip/index.tsx
new file mode 100644
index 00000000000..2eaafbe1ae4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPaperclip/index.tsx
@@ -0,0 +1 @@
+export { default as IconPaperclip } from './IconPaperclip'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPause/IconPause.tsx b/packages/common2/src/components/Icon/icons/IconPause/IconPause.tsx
new file mode 100644
index 00000000000..9190da4efcd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPause/IconPause.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Pause } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPause(props: any) {
+ return <IconBase icon={Pause} {...props} />
+ }
+
+ export default IconPause
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPause/index.tsx b/packages/common2/src/components/Icon/icons/IconPause/index.tsx
new file mode 100644
index 00000000000..240c0d71ce6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPause/index.tsx
@@ -0,0 +1 @@
+export { default as IconPause } from './IconPause'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPauseCircle/IconPauseCircle.tsx b/packages/common2/src/components/Icon/icons/IconPauseCircle/IconPauseCircle.tsx
new file mode 100644
index 00000000000..481b7f3c652
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPauseCircle/IconPauseCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PauseCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPauseCircle(props: any) {
+ return <IconBase icon={PauseCircle} {...props} />
+ }
+
+ export default IconPauseCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPauseCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconPauseCircle/index.tsx
new file mode 100644
index 00000000000..effcb57c47b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPauseCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconPauseCircle } from './IconPauseCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPenTool/IconPenTool.tsx b/packages/common2/src/components/Icon/icons/IconPenTool/IconPenTool.tsx
new file mode 100644
index 00000000000..73c589e007d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPenTool/IconPenTool.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PenTool } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPenTool(props: any) {
+ return <IconBase icon={PenTool} {...props} />
+ }
+
+ export default IconPenTool
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPenTool/index.tsx b/packages/common2/src/components/Icon/icons/IconPenTool/index.tsx
new file mode 100644
index 00000000000..3a6732dd18d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPenTool/index.tsx
@@ -0,0 +1 @@
+export { default as IconPenTool } from './IconPenTool'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPercent/IconPercent.tsx b/packages/common2/src/components/Icon/icons/IconPercent/IconPercent.tsx
new file mode 100644
index 00000000000..ed2a1804758
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPercent/IconPercent.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Percent } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPercent(props: any) {
+ return <IconBase icon={Percent} {...props} />
+ }
+
+ export default IconPercent
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPercent/index.tsx b/packages/common2/src/components/Icon/icons/IconPercent/index.tsx
new file mode 100644
index 00000000000..f5e74fb9fcb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPercent/index.tsx
@@ -0,0 +1 @@
+export { default as IconPercent } from './IconPercent'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhone/IconPhone.tsx b/packages/common2/src/components/Icon/icons/IconPhone/IconPhone.tsx
new file mode 100644
index 00000000000..fe527a3e348
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhone/IconPhone.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Phone } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhone(props: any) {
+ return <IconBase icon={Phone} {...props} />
+ }
+
+ export default IconPhone
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhone/index.tsx b/packages/common2/src/components/Icon/icons/IconPhone/index.tsx
new file mode 100644
index 00000000000..30548408cff
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhone/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhone } from './IconPhone'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneCall/IconPhoneCall.tsx b/packages/common2/src/components/Icon/icons/IconPhoneCall/IconPhoneCall.tsx
new file mode 100644
index 00000000000..3ae36fbe7c6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneCall/IconPhoneCall.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PhoneCall } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhoneCall(props: any) {
+ return <IconBase icon={PhoneCall} {...props} />
+ }
+
+ export default IconPhoneCall
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneCall/index.tsx b/packages/common2/src/components/Icon/icons/IconPhoneCall/index.tsx
new file mode 100644
index 00000000000..ea3ebe5eda8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneCall/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhoneCall } from './IconPhoneCall'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneForwarded/IconPhoneForwarded.tsx b/packages/common2/src/components/Icon/icons/IconPhoneForwarded/IconPhoneForwarded.tsx
new file mode 100644
index 00000000000..6c9f01db395
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneForwarded/IconPhoneForwarded.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PhoneForwarded } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhoneForwarded(props: any) {
+ return <IconBase icon={PhoneForwarded} {...props} />
+ }
+
+ export default IconPhoneForwarded
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneForwarded/index.tsx b/packages/common2/src/components/Icon/icons/IconPhoneForwarded/index.tsx
new file mode 100644
index 00000000000..cbca9c6b74b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneForwarded/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhoneForwarded } from './IconPhoneForwarded'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneIncoming/IconPhoneIncoming.tsx b/packages/common2/src/components/Icon/icons/IconPhoneIncoming/IconPhoneIncoming.tsx
new file mode 100644
index 00000000000..a0e6e61fa51
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneIncoming/IconPhoneIncoming.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PhoneIncoming } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhoneIncoming(props: any) {
+ return <IconBase icon={PhoneIncoming} {...props} />
+ }
+
+ export default IconPhoneIncoming
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneIncoming/index.tsx b/packages/common2/src/components/Icon/icons/IconPhoneIncoming/index.tsx
new file mode 100644
index 00000000000..d7c110a70ad
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneIncoming/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhoneIncoming } from './IconPhoneIncoming'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneMissed/IconPhoneMissed.tsx b/packages/common2/src/components/Icon/icons/IconPhoneMissed/IconPhoneMissed.tsx
new file mode 100644
index 00000000000..33fb533e7b6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneMissed/IconPhoneMissed.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PhoneMissed } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhoneMissed(props: any) {
+ return <IconBase icon={PhoneMissed} {...props} />
+ }
+
+ export default IconPhoneMissed
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneMissed/index.tsx b/packages/common2/src/components/Icon/icons/IconPhoneMissed/index.tsx
new file mode 100644
index 00000000000..46f8b925ca6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneMissed/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhoneMissed } from './IconPhoneMissed'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneOff/IconPhoneOff.tsx b/packages/common2/src/components/Icon/icons/IconPhoneOff/IconPhoneOff.tsx
new file mode 100644
index 00000000000..058decbfe62
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneOff/IconPhoneOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PhoneOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhoneOff(props: any) {
+ return <IconBase icon={PhoneOff} {...props} />
+ }
+
+ export default IconPhoneOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneOff/index.tsx b/packages/common2/src/components/Icon/icons/IconPhoneOff/index.tsx
new file mode 100644
index 00000000000..fc0abae6a9d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhoneOff } from './IconPhoneOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneOutgoing/IconPhoneOutgoing.tsx b/packages/common2/src/components/Icon/icons/IconPhoneOutgoing/IconPhoneOutgoing.tsx
new file mode 100644
index 00000000000..1720936969f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneOutgoing/IconPhoneOutgoing.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PhoneOutgoing } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPhoneOutgoing(props: any) {
+ return <IconBase icon={PhoneOutgoing} {...props} />
+ }
+
+ export default IconPhoneOutgoing
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPhoneOutgoing/index.tsx b/packages/common2/src/components/Icon/icons/IconPhoneOutgoing/index.tsx
new file mode 100644
index 00000000000..f4e964d76fc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPhoneOutgoing/index.tsx
@@ -0,0 +1 @@
+export { default as IconPhoneOutgoing } from './IconPhoneOutgoing'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPieChart/IconPieChart.tsx b/packages/common2/src/components/Icon/icons/IconPieChart/IconPieChart.tsx
new file mode 100644
index 00000000000..0b0c9ea6069
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPieChart/IconPieChart.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PieChart } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPieChart(props: any) {
+ return <IconBase icon={PieChart} {...props} />
+ }
+
+ export default IconPieChart
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPieChart/index.tsx b/packages/common2/src/components/Icon/icons/IconPieChart/index.tsx
new file mode 100644
index 00000000000..5bde6cfd209
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPieChart/index.tsx
@@ -0,0 +1 @@
+export { default as IconPieChart } from './IconPieChart'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlay/IconPlay.tsx b/packages/common2/src/components/Icon/icons/IconPlay/IconPlay.tsx
new file mode 100644
index 00000000000..15640baeff6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlay/IconPlay.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Play } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPlay(props: any) {
+ return <IconBase icon={Play} {...props} />
+ }
+
+ export default IconPlay
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlay/index.tsx b/packages/common2/src/components/Icon/icons/IconPlay/index.tsx
new file mode 100644
index 00000000000..fae661ec14e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlay/index.tsx
@@ -0,0 +1 @@
+export { default as IconPlay } from './IconPlay'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlayCircle/IconPlayCircle.tsx b/packages/common2/src/components/Icon/icons/IconPlayCircle/IconPlayCircle.tsx
new file mode 100644
index 00000000000..9fd61eaef38
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlayCircle/IconPlayCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PlayCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPlayCircle(props: any) {
+ return <IconBase icon={PlayCircle} {...props} />
+ }
+
+ export default IconPlayCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlayCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconPlayCircle/index.tsx
new file mode 100644
index 00000000000..16eb39a5b67
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlayCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconPlayCircle } from './IconPlayCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlus/IconPlus.tsx b/packages/common2/src/components/Icon/icons/IconPlus/IconPlus.tsx
new file mode 100644
index 00000000000..e44efd5c79e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlus/IconPlus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Plus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPlus(props: any) {
+ return <IconBase icon={Plus} {...props} />
+ }
+
+ export default IconPlus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlus/index.tsx b/packages/common2/src/components/Icon/icons/IconPlus/index.tsx
new file mode 100644
index 00000000000..f745b1bae26
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlus/index.tsx
@@ -0,0 +1 @@
+export { default as IconPlus } from './IconPlus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlusCircle/IconPlusCircle.tsx b/packages/common2/src/components/Icon/icons/IconPlusCircle/IconPlusCircle.tsx
new file mode 100644
index 00000000000..0575f9f7590
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlusCircle/IconPlusCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PlusCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPlusCircle(props: any) {
+ return <IconBase icon={PlusCircle} {...props} />
+ }
+
+ export default IconPlusCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlusCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconPlusCircle/index.tsx
new file mode 100644
index 00000000000..182b7990301
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlusCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconPlusCircle } from './IconPlusCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlusSquare/IconPlusSquare.tsx b/packages/common2/src/components/Icon/icons/IconPlusSquare/IconPlusSquare.tsx
new file mode 100644
index 00000000000..0f4978db1ec
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlusSquare/IconPlusSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { PlusSquare } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPlusSquare(props: any) {
+ return <IconBase icon={PlusSquare} {...props} />
+ }
+
+ export default IconPlusSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPlusSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconPlusSquare/index.tsx
new file mode 100644
index 00000000000..68b2738724d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPlusSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconPlusSquare } from './IconPlusSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPocket/IconPocket.tsx b/packages/common2/src/components/Icon/icons/IconPocket/IconPocket.tsx
new file mode 100644
index 00000000000..d4149605e9d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPocket/IconPocket.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Pocket } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPocket(props: any) {
+ return <IconBase icon={Pocket} {...props} />
+ }
+
+ export default IconPocket
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPocket/index.tsx b/packages/common2/src/components/Icon/icons/IconPocket/index.tsx
new file mode 100644
index 00000000000..f5cdaac5eaf
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPocket/index.tsx
@@ -0,0 +1 @@
+export { default as IconPocket } from './IconPocket'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPower/IconPower.tsx b/packages/common2/src/components/Icon/icons/IconPower/IconPower.tsx
new file mode 100644
index 00000000000..f43463f7f9c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPower/IconPower.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Power } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPower(props: any) {
+ return <IconBase icon={Power} {...props} />
+ }
+
+ export default IconPower
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPower/index.tsx b/packages/common2/src/components/Icon/icons/IconPower/index.tsx
new file mode 100644
index 00000000000..3512925d4bd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPower/index.tsx
@@ -0,0 +1 @@
+export { default as IconPower } from './IconPower'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPrinter/IconPrinter.tsx b/packages/common2/src/components/Icon/icons/IconPrinter/IconPrinter.tsx
new file mode 100644
index 00000000000..1908c1e9172
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPrinter/IconPrinter.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Printer } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconPrinter(props: any) {
+ return <IconBase icon={Printer} {...props} />
+ }
+
+ export default IconPrinter
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconPrinter/index.tsx b/packages/common2/src/components/Icon/icons/IconPrinter/index.tsx
new file mode 100644
index 00000000000..e1ccaf9da66
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconPrinter/index.tsx
@@ -0,0 +1 @@
+export { default as IconPrinter } from './IconPrinter'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRadio/IconRadio.tsx b/packages/common2/src/components/Icon/icons/IconRadio/IconRadio.tsx
new file mode 100644
index 00000000000..6a8974dc0e7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRadio/IconRadio.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Radio } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRadio(props: any) {
+ return <IconBase icon={Radio} {...props} />
+ }
+
+ export default IconRadio
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRadio/index.tsx b/packages/common2/src/components/Icon/icons/IconRadio/index.tsx
new file mode 100644
index 00000000000..e2b52ceb0e7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRadio/index.tsx
@@ -0,0 +1 @@
+export { default as IconRadio } from './IconRadio'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRefreshCcw/IconRefreshCcw.tsx b/packages/common2/src/components/Icon/icons/IconRefreshCcw/IconRefreshCcw.tsx
new file mode 100644
index 00000000000..04ff8722b3e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRefreshCcw/IconRefreshCcw.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { RefreshCcw } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRefreshCcw(props: any) {
+ return <IconBase icon={RefreshCcw} {...props} />
+ }
+
+ export default IconRefreshCcw
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRefreshCcw/index.tsx b/packages/common2/src/components/Icon/icons/IconRefreshCcw/index.tsx
new file mode 100644
index 00000000000..a1028a78737
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRefreshCcw/index.tsx
@@ -0,0 +1 @@
+export { default as IconRefreshCcw } from './IconRefreshCcw'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRefreshCw/IconRefreshCw.tsx b/packages/common2/src/components/Icon/icons/IconRefreshCw/IconRefreshCw.tsx
new file mode 100644
index 00000000000..f7e6cea0fd7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRefreshCw/IconRefreshCw.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { RefreshCw } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRefreshCw(props: any) {
+ return <IconBase icon={RefreshCw} {...props} />
+ }
+
+ export default IconRefreshCw
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRefreshCw/index.tsx b/packages/common2/src/components/Icon/icons/IconRefreshCw/index.tsx
new file mode 100644
index 00000000000..5b6d32b704f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRefreshCw/index.tsx
@@ -0,0 +1 @@
+export { default as IconRefreshCw } from './IconRefreshCw'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRepeat/IconRepeat.tsx b/packages/common2/src/components/Icon/icons/IconRepeat/IconRepeat.tsx
new file mode 100644
index 00000000000..9e1ab0b4651
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRepeat/IconRepeat.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Repeat } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRepeat(props: any) {
+ return <IconBase icon={Repeat} {...props} />
+ }
+
+ export default IconRepeat
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRepeat/index.tsx b/packages/common2/src/components/Icon/icons/IconRepeat/index.tsx
new file mode 100644
index 00000000000..c483552a305
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRepeat/index.tsx
@@ -0,0 +1 @@
+export { default as IconRepeat } from './IconRepeat'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRewind/IconRewind.tsx b/packages/common2/src/components/Icon/icons/IconRewind/IconRewind.tsx
new file mode 100644
index 00000000000..b244b78d39e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRewind/IconRewind.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Rewind } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRewind(props: any) {
+ return <IconBase icon={Rewind} {...props} />
+ }
+
+ export default IconRewind
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRewind/index.tsx b/packages/common2/src/components/Icon/icons/IconRewind/index.tsx
new file mode 100644
index 00000000000..22a7a0e00d3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRewind/index.tsx
@@ -0,0 +1 @@
+export { default as IconRewind } from './IconRewind'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRotateCcw/IconRotateCcw.tsx b/packages/common2/src/components/Icon/icons/IconRotateCcw/IconRotateCcw.tsx
new file mode 100644
index 00000000000..3cd94e8397d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRotateCcw/IconRotateCcw.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { RotateCcw } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRotateCcw(props: any) {
+ return <IconBase icon={RotateCcw} {...props} />
+ }
+
+ export default IconRotateCcw
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRotateCcw/index.tsx b/packages/common2/src/components/Icon/icons/IconRotateCcw/index.tsx
new file mode 100644
index 00000000000..3001a2399d0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRotateCcw/index.tsx
@@ -0,0 +1 @@
+export { default as IconRotateCcw } from './IconRotateCcw'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRotateCw/IconRotateCw.tsx b/packages/common2/src/components/Icon/icons/IconRotateCw/IconRotateCw.tsx
new file mode 100644
index 00000000000..9856535e072
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRotateCw/IconRotateCw.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { RotateCw } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRotateCw(props: any) {
+ return <IconBase icon={RotateCw} {...props} />
+ }
+
+ export default IconRotateCw
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRotateCw/index.tsx b/packages/common2/src/components/Icon/icons/IconRotateCw/index.tsx
new file mode 100644
index 00000000000..33361f00773
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRotateCw/index.tsx
@@ -0,0 +1 @@
+export { default as IconRotateCw } from './IconRotateCw'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRss/IconRss.tsx b/packages/common2/src/components/Icon/icons/IconRss/IconRss.tsx
new file mode 100644
index 00000000000..b5b7cbeddd8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRss/IconRss.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Rss } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconRss(props: any) {
+ return <IconBase icon={Rss} {...props} />
+ }
+
+ export default IconRss
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconRss/index.tsx b/packages/common2/src/components/Icon/icons/IconRss/index.tsx
new file mode 100644
index 00000000000..5f0d4945238
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconRss/index.tsx
@@ -0,0 +1 @@
+export { default as IconRss } from './IconRss'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSave/IconSave.tsx b/packages/common2/src/components/Icon/icons/IconSave/IconSave.tsx
new file mode 100644
index 00000000000..56d82620561
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSave/IconSave.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Save } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSave(props: any) {
+ return <IconBase icon={Save} {...props} />
+ }
+
+ export default IconSave
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSave/index.tsx b/packages/common2/src/components/Icon/icons/IconSave/index.tsx
new file mode 100644
index 00000000000..62c81731ce5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSave/index.tsx
@@ -0,0 +1 @@
+export { default as IconSave } from './IconSave'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconScissors/IconScissors.tsx b/packages/common2/src/components/Icon/icons/IconScissors/IconScissors.tsx
new file mode 100644
index 00000000000..4546e154ffe
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconScissors/IconScissors.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Scissors } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconScissors(props: any) {
+ return <IconBase icon={Scissors} {...props} />
+ }
+
+ export default IconScissors
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconScissors/index.tsx b/packages/common2/src/components/Icon/icons/IconScissors/index.tsx
new file mode 100644
index 00000000000..fb5c7b2bfbd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconScissors/index.tsx
@@ -0,0 +1 @@
+export { default as IconScissors } from './IconScissors'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSearch/IconSearch.tsx b/packages/common2/src/components/Icon/icons/IconSearch/IconSearch.tsx
new file mode 100644
index 00000000000..ae58346f269
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSearch/IconSearch.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Search } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSearch(props: any) {
+ return <IconBase icon={Search} {...props} />
+ }
+
+ export default IconSearch
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSearch/index.tsx b/packages/common2/src/components/Icon/icons/IconSearch/index.tsx
new file mode 100644
index 00000000000..2baafb71dfb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSearch/index.tsx
@@ -0,0 +1 @@
+export { default as IconSearch } from './IconSearch'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSend/IconSend.tsx b/packages/common2/src/components/Icon/icons/IconSend/IconSend.tsx
new file mode 100644
index 00000000000..38d96b797dc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSend/IconSend.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Send } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSend(props: any) {
+ return <IconBase icon={Send} {...props} />
+ }
+
+ export default IconSend
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSend/index.tsx b/packages/common2/src/components/Icon/icons/IconSend/index.tsx
new file mode 100644
index 00000000000..70992ea259c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSend/index.tsx
@@ -0,0 +1 @@
+export { default as IconSend } from './IconSend'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconServer/IconServer.tsx b/packages/common2/src/components/Icon/icons/IconServer/IconServer.tsx
new file mode 100644
index 00000000000..29482020b86
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconServer/IconServer.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Server } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconServer(props: any) {
+ return <IconBase icon={Server} {...props} />
+ }
+
+ export default IconServer
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconServer/index.tsx b/packages/common2/src/components/Icon/icons/IconServer/index.tsx
new file mode 100644
index 00000000000..8d937d198e3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconServer/index.tsx
@@ -0,0 +1 @@
+export { default as IconServer } from './IconServer'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSettings/IconSettings.tsx b/packages/common2/src/components/Icon/icons/IconSettings/IconSettings.tsx
new file mode 100644
index 00000000000..f1c416b7b62
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSettings/IconSettings.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Settings } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSettings(props: any) {
+ return <IconBase icon={Settings} {...props} />
+ }
+
+ export default IconSettings
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSettings/index.tsx b/packages/common2/src/components/Icon/icons/IconSettings/index.tsx
new file mode 100644
index 00000000000..2081ba44c45
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSettings/index.tsx
@@ -0,0 +1 @@
+export { default as IconSettings } from './IconSettings'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShare/IconShare.tsx b/packages/common2/src/components/Icon/icons/IconShare/IconShare.tsx
new file mode 100644
index 00000000000..fa8733b20db
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShare/IconShare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Share } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShare(props: any) {
+ return <IconBase icon={Share} {...props} />
+ }
+
+ export default IconShare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShare/index.tsx b/packages/common2/src/components/Icon/icons/IconShare/index.tsx
new file mode 100644
index 00000000000..71951de779d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShare/index.tsx
@@ -0,0 +1 @@
+export { default as IconShare } from './IconShare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShare2/IconShare2.tsx b/packages/common2/src/components/Icon/icons/IconShare2/IconShare2.tsx
new file mode 100644
index 00000000000..d00ba3b66f7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShare2/IconShare2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Share2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShare2(props: any) {
+ return <IconBase icon={Share2} {...props} />
+ }
+
+ export default IconShare2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShare2/index.tsx b/packages/common2/src/components/Icon/icons/IconShare2/index.tsx
new file mode 100644
index 00000000000..23cca338aea
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShare2/index.tsx
@@ -0,0 +1 @@
+export { default as IconShare2 } from './IconShare2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShield/IconShield.tsx b/packages/common2/src/components/Icon/icons/IconShield/IconShield.tsx
new file mode 100644
index 00000000000..b054635ad7e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShield/IconShield.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Shield } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShield(props: any) {
+ return <IconBase icon={Shield} {...props} />
+ }
+
+ export default IconShield
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShield/index.tsx b/packages/common2/src/components/Icon/icons/IconShield/index.tsx
new file mode 100644
index 00000000000..5b162ce12f4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShield/index.tsx
@@ -0,0 +1 @@
+export { default as IconShield } from './IconShield'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShieldOff/IconShieldOff.tsx b/packages/common2/src/components/Icon/icons/IconShieldOff/IconShieldOff.tsx
new file mode 100644
index 00000000000..306839cfa14
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShieldOff/IconShieldOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ShieldOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShieldOff(props: any) {
+ return <IconBase icon={ShieldOff} {...props} />
+ }
+
+ export default IconShieldOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShieldOff/index.tsx b/packages/common2/src/components/Icon/icons/IconShieldOff/index.tsx
new file mode 100644
index 00000000000..128cd672ae4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShieldOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconShieldOff } from './IconShieldOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShoppingBag/IconShoppingBag.tsx b/packages/common2/src/components/Icon/icons/IconShoppingBag/IconShoppingBag.tsx
new file mode 100644
index 00000000000..d08c968f0a8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShoppingBag/IconShoppingBag.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ShoppingBag } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShoppingBag(props: any) {
+ return <IconBase icon={ShoppingBag} {...props} />
+ }
+
+ export default IconShoppingBag
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShoppingBag/index.tsx b/packages/common2/src/components/Icon/icons/IconShoppingBag/index.tsx
new file mode 100644
index 00000000000..fd065a33250
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShoppingBag/index.tsx
@@ -0,0 +1 @@
+export { default as IconShoppingBag } from './IconShoppingBag'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShoppingCart/IconShoppingCart.tsx b/packages/common2/src/components/Icon/icons/IconShoppingCart/IconShoppingCart.tsx
new file mode 100644
index 00000000000..dccf6cd6778
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShoppingCart/IconShoppingCart.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ShoppingCart } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShoppingCart(props: any) {
+ return <IconBase icon={ShoppingCart} {...props} />
+ }
+
+ export default IconShoppingCart
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShoppingCart/index.tsx b/packages/common2/src/components/Icon/icons/IconShoppingCart/index.tsx
new file mode 100644
index 00000000000..8d86eea115f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShoppingCart/index.tsx
@@ -0,0 +1 @@
+export { default as IconShoppingCart } from './IconShoppingCart'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShuffle/IconShuffle.tsx b/packages/common2/src/components/Icon/icons/IconShuffle/IconShuffle.tsx
new file mode 100644
index 00000000000..cf44eb9cd73
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShuffle/IconShuffle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Shuffle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconShuffle(props: any) {
+ return <IconBase icon={Shuffle} {...props} />
+ }
+
+ export default IconShuffle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconShuffle/index.tsx b/packages/common2/src/components/Icon/icons/IconShuffle/index.tsx
new file mode 100644
index 00000000000..5ef26092595
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconShuffle/index.tsx
@@ -0,0 +1 @@
+export { default as IconShuffle } from './IconShuffle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSidebar/IconSidebar.tsx b/packages/common2/src/components/Icon/icons/IconSidebar/IconSidebar.tsx
new file mode 100644
index 00000000000..e463db4639d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSidebar/IconSidebar.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Sidebar } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSidebar(props: any) {
+ return <IconBase icon={Sidebar} {...props} />
+ }
+
+ export default IconSidebar
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSidebar/index.tsx b/packages/common2/src/components/Icon/icons/IconSidebar/index.tsx
new file mode 100644
index 00000000000..7adc56e2398
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSidebar/index.tsx
@@ -0,0 +1 @@
+export { default as IconSidebar } from './IconSidebar'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSkipBack/IconSkipBack.tsx b/packages/common2/src/components/Icon/icons/IconSkipBack/IconSkipBack.tsx
new file mode 100644
index 00000000000..2c9952cfa8b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSkipBack/IconSkipBack.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { SkipBack } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSkipBack(props: any) {
+ return <IconBase icon={SkipBack} {...props} />
+ }
+
+ export default IconSkipBack
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSkipBack/index.tsx b/packages/common2/src/components/Icon/icons/IconSkipBack/index.tsx
new file mode 100644
index 00000000000..455c4566b48
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSkipBack/index.tsx
@@ -0,0 +1 @@
+export { default as IconSkipBack } from './IconSkipBack'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSkipForward/IconSkipForward.tsx b/packages/common2/src/components/Icon/icons/IconSkipForward/IconSkipForward.tsx
new file mode 100644
index 00000000000..34b7f02b042
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSkipForward/IconSkipForward.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { SkipForward } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSkipForward(props: any) {
+ return <IconBase icon={SkipForward} {...props} />
+ }
+
+ export default IconSkipForward
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSkipForward/index.tsx b/packages/common2/src/components/Icon/icons/IconSkipForward/index.tsx
new file mode 100644
index 00000000000..6d0d78de659
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSkipForward/index.tsx
@@ -0,0 +1 @@
+export { default as IconSkipForward } from './IconSkipForward'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSlack/IconSlack.tsx b/packages/common2/src/components/Icon/icons/IconSlack/IconSlack.tsx
new file mode 100644
index 00000000000..974a99734c2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSlack/IconSlack.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Slack } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSlack(props: any) {
+ return <IconBase icon={Slack} {...props} />
+ }
+
+ export default IconSlack
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSlack/index.tsx b/packages/common2/src/components/Icon/icons/IconSlack/index.tsx
new file mode 100644
index 00000000000..cb3061d4752
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSlack/index.tsx
@@ -0,0 +1 @@
+export { default as IconSlack } from './IconSlack'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSlash/IconSlash.tsx b/packages/common2/src/components/Icon/icons/IconSlash/IconSlash.tsx
new file mode 100644
index 00000000000..3101750391e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSlash/IconSlash.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Slash } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSlash(props: any) {
+ return <IconBase icon={Slash} {...props} />
+ }
+
+ export default IconSlash
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSlash/index.tsx b/packages/common2/src/components/Icon/icons/IconSlash/index.tsx
new file mode 100644
index 00000000000..f36a76a943c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSlash/index.tsx
@@ -0,0 +1 @@
+export { default as IconSlash } from './IconSlash'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSliders/IconSliders.tsx b/packages/common2/src/components/Icon/icons/IconSliders/IconSliders.tsx
new file mode 100644
index 00000000000..09ba0116f7d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSliders/IconSliders.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Sliders } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSliders(props: any) {
+ return <IconBase icon={Sliders} {...props} />
+ }
+
+ export default IconSliders
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSliders/index.tsx b/packages/common2/src/components/Icon/icons/IconSliders/index.tsx
new file mode 100644
index 00000000000..16cbff6b407
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSliders/index.tsx
@@ -0,0 +1 @@
+export { default as IconSliders } from './IconSliders'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSmartphone/IconSmartphone.tsx b/packages/common2/src/components/Icon/icons/IconSmartphone/IconSmartphone.tsx
new file mode 100644
index 00000000000..00d8b909b6a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSmartphone/IconSmartphone.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Smartphone } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSmartphone(props: any) {
+ return <IconBase icon={Smartphone} {...props} />
+ }
+
+ export default IconSmartphone
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSmartphone/index.tsx b/packages/common2/src/components/Icon/icons/IconSmartphone/index.tsx
new file mode 100644
index 00000000000..d22e200558e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSmartphone/index.tsx
@@ -0,0 +1 @@
+export { default as IconSmartphone } from './IconSmartphone'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSmile/IconSmile.tsx b/packages/common2/src/components/Icon/icons/IconSmile/IconSmile.tsx
new file mode 100644
index 00000000000..59f0981ad06
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSmile/IconSmile.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Smile } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSmile(props: any) {
+ return <IconBase icon={Smile} {...props} />
+ }
+
+ export default IconSmile
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSmile/index.tsx b/packages/common2/src/components/Icon/icons/IconSmile/index.tsx
new file mode 100644
index 00000000000..c8b475e469a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSmile/index.tsx
@@ -0,0 +1 @@
+export { default as IconSmile } from './IconSmile'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSpeaker/IconSpeaker.tsx b/packages/common2/src/components/Icon/icons/IconSpeaker/IconSpeaker.tsx
new file mode 100644
index 00000000000..992205348da
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSpeaker/IconSpeaker.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Speaker } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSpeaker(props: any) {
+ return <IconBase icon={Speaker} {...props} />
+ }
+
+ export default IconSpeaker
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSpeaker/index.tsx b/packages/common2/src/components/Icon/icons/IconSpeaker/index.tsx
new file mode 100644
index 00000000000..28d69e636da
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSpeaker/index.tsx
@@ -0,0 +1 @@
+export { default as IconSpeaker } from './IconSpeaker'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSquare/IconSquare.tsx b/packages/common2/src/components/Icon/icons/IconSquare/IconSquare.tsx
new file mode 100644
index 00000000000..f7760ebb88e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSquare/IconSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Square } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSquare(props: any) {
+ return <IconBase icon={Square} {...props} />
+ }
+
+ export default IconSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconSquare/index.tsx
new file mode 100644
index 00000000000..87167e817e6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconSquare } from './IconSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconStar/IconStar.tsx b/packages/common2/src/components/Icon/icons/IconStar/IconStar.tsx
new file mode 100644
index 00000000000..6cab6d9078d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconStar/IconStar.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Star } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconStar(props: any) {
+ return <IconBase icon={Star} {...props} />
+ }
+
+ export default IconStar
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconStar/index.tsx b/packages/common2/src/components/Icon/icons/IconStar/index.tsx
new file mode 100644
index 00000000000..bb5be9c2e38
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconStar/index.tsx
@@ -0,0 +1 @@
+export { default as IconStar } from './IconStar'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconStopCircle/IconStopCircle.tsx b/packages/common2/src/components/Icon/icons/IconStopCircle/IconStopCircle.tsx
new file mode 100644
index 00000000000..8e70828d2b3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconStopCircle/IconStopCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { StopCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconStopCircle(props: any) {
+ return <IconBase icon={StopCircle} {...props} />
+ }
+
+ export default IconStopCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconStopCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconStopCircle/index.tsx
new file mode 100644
index 00000000000..e096354c4ee
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconStopCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconStopCircle } from './IconStopCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSun/IconSun.tsx b/packages/common2/src/components/Icon/icons/IconSun/IconSun.tsx
new file mode 100644
index 00000000000..36a35bac55e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSun/IconSun.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Sun } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSun(props: any) {
+ return <IconBase icon={Sun} {...props} />
+ }
+
+ export default IconSun
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSun/index.tsx b/packages/common2/src/components/Icon/icons/IconSun/index.tsx
new file mode 100644
index 00000000000..fb164320b97
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSun/index.tsx
@@ -0,0 +1 @@
+export { default as IconSun } from './IconSun'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSunrise/IconSunrise.tsx b/packages/common2/src/components/Icon/icons/IconSunrise/IconSunrise.tsx
new file mode 100644
index 00000000000..5dd1abf415c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSunrise/IconSunrise.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Sunrise } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSunrise(props: any) {
+ return <IconBase icon={Sunrise} {...props} />
+ }
+
+ export default IconSunrise
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSunrise/index.tsx b/packages/common2/src/components/Icon/icons/IconSunrise/index.tsx
new file mode 100644
index 00000000000..a4c2744b8b6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSunrise/index.tsx
@@ -0,0 +1 @@
+export { default as IconSunrise } from './IconSunrise'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSunset/IconSunset.tsx b/packages/common2/src/components/Icon/icons/IconSunset/IconSunset.tsx
new file mode 100644
index 00000000000..57f1fa16dcb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSunset/IconSunset.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Sunset } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconSunset(props: any) {
+ return <IconBase icon={Sunset} {...props} />
+ }
+
+ export default IconSunset
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconSunset/index.tsx b/packages/common2/src/components/Icon/icons/IconSunset/index.tsx
new file mode 100644
index 00000000000..0793dc25f84
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconSunset/index.tsx
@@ -0,0 +1 @@
+export { default as IconSunset } from './IconSunset'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTablet/IconTablet.tsx b/packages/common2/src/components/Icon/icons/IconTablet/IconTablet.tsx
new file mode 100644
index 00000000000..d5eae04d706
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTablet/IconTablet.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Tablet } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTablet(props: any) {
+ return <IconBase icon={Tablet} {...props} />
+ }
+
+ export default IconTablet
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTablet/index.tsx b/packages/common2/src/components/Icon/icons/IconTablet/index.tsx
new file mode 100644
index 00000000000..aaaa2cf4dcb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTablet/index.tsx
@@ -0,0 +1 @@
+export { default as IconTablet } from './IconTablet'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTag/IconTag.tsx b/packages/common2/src/components/Icon/icons/IconTag/IconTag.tsx
new file mode 100644
index 00000000000..eb2c8e157fd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTag/IconTag.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Tag } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTag(props: any) {
+ return <IconBase icon={Tag} {...props} />
+ }
+
+ export default IconTag
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTag/index.tsx b/packages/common2/src/components/Icon/icons/IconTag/index.tsx
new file mode 100644
index 00000000000..e080b0262a7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTag/index.tsx
@@ -0,0 +1 @@
+export { default as IconTag } from './IconTag'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTarget/IconTarget.tsx b/packages/common2/src/components/Icon/icons/IconTarget/IconTarget.tsx
new file mode 100644
index 00000000000..b5eb4ecd257
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTarget/IconTarget.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Target } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTarget(props: any) {
+ return <IconBase icon={Target} {...props} />
+ }
+
+ export default IconTarget
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTarget/index.tsx b/packages/common2/src/components/Icon/icons/IconTarget/index.tsx
new file mode 100644
index 00000000000..d23fa16d81f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTarget/index.tsx
@@ -0,0 +1 @@
+export { default as IconTarget } from './IconTarget'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTerminal/IconTerminal.tsx b/packages/common2/src/components/Icon/icons/IconTerminal/IconTerminal.tsx
new file mode 100644
index 00000000000..849d5e184d0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTerminal/IconTerminal.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Terminal } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTerminal(props: any) {
+ return <IconBase icon={Terminal} {...props} />
+ }
+
+ export default IconTerminal
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTerminal/index.tsx b/packages/common2/src/components/Icon/icons/IconTerminal/index.tsx
new file mode 100644
index 00000000000..ca3883bda43
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTerminal/index.tsx
@@ -0,0 +1 @@
+export { default as IconTerminal } from './IconTerminal'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconThermometer/IconThermometer.tsx b/packages/common2/src/components/Icon/icons/IconThermometer/IconThermometer.tsx
new file mode 100644
index 00000000000..9fd160eaf93
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconThermometer/IconThermometer.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Thermometer } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconThermometer(props: any) {
+ return <IconBase icon={Thermometer} {...props} />
+ }
+
+ export default IconThermometer
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconThermometer/index.tsx b/packages/common2/src/components/Icon/icons/IconThermometer/index.tsx
new file mode 100644
index 00000000000..d6a2a41c8a1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconThermometer/index.tsx
@@ -0,0 +1 @@
+export { default as IconThermometer } from './IconThermometer'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconThumbsDown/IconThumbsDown.tsx b/packages/common2/src/components/Icon/icons/IconThumbsDown/IconThumbsDown.tsx
new file mode 100644
index 00000000000..e54c8fea380
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconThumbsDown/IconThumbsDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ThumbsDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconThumbsDown(props: any) {
+ return <IconBase icon={ThumbsDown} {...props} />
+ }
+
+ export default IconThumbsDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconThumbsDown/index.tsx b/packages/common2/src/components/Icon/icons/IconThumbsDown/index.tsx
new file mode 100644
index 00000000000..ed90d861fbf
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconThumbsDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconThumbsDown } from './IconThumbsDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconThumbsUp/IconThumbsUp.tsx b/packages/common2/src/components/Icon/icons/IconThumbsUp/IconThumbsUp.tsx
new file mode 100644
index 00000000000..546829fd88f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconThumbsUp/IconThumbsUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ThumbsUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconThumbsUp(props: any) {
+ return <IconBase icon={ThumbsUp} {...props} />
+ }
+
+ export default IconThumbsUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconThumbsUp/index.tsx b/packages/common2/src/components/Icon/icons/IconThumbsUp/index.tsx
new file mode 100644
index 00000000000..dab88e6ac3a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconThumbsUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconThumbsUp } from './IconThumbsUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconToggleLeft/IconToggleLeft.tsx b/packages/common2/src/components/Icon/icons/IconToggleLeft/IconToggleLeft.tsx
new file mode 100644
index 00000000000..44511051989
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconToggleLeft/IconToggleLeft.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ToggleLeft } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconToggleLeft(props: any) {
+ return <IconBase icon={ToggleLeft} {...props} />
+ }
+
+ export default IconToggleLeft
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconToggleLeft/index.tsx b/packages/common2/src/components/Icon/icons/IconToggleLeft/index.tsx
new file mode 100644
index 00000000000..ebfc126b158
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconToggleLeft/index.tsx
@@ -0,0 +1 @@
+export { default as IconToggleLeft } from './IconToggleLeft'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconToggleRight/IconToggleRight.tsx b/packages/common2/src/components/Icon/icons/IconToggleRight/IconToggleRight.tsx
new file mode 100644
index 00000000000..ead01086b2b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconToggleRight/IconToggleRight.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ToggleRight } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconToggleRight(props: any) {
+ return <IconBase icon={ToggleRight} {...props} />
+ }
+
+ export default IconToggleRight
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconToggleRight/index.tsx b/packages/common2/src/components/Icon/icons/IconToggleRight/index.tsx
new file mode 100644
index 00000000000..bdda33c11f3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconToggleRight/index.tsx
@@ -0,0 +1 @@
+export { default as IconToggleRight } from './IconToggleRight'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTool/IconTool.tsx b/packages/common2/src/components/Icon/icons/IconTool/IconTool.tsx
new file mode 100644
index 00000000000..8446a17563f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTool/IconTool.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Tool } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTool(props: any) {
+ return <IconBase icon={Tool} {...props} />
+ }
+
+ export default IconTool
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTool/index.tsx b/packages/common2/src/components/Icon/icons/IconTool/index.tsx
new file mode 100644
index 00000000000..9b58437431d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTool/index.tsx
@@ -0,0 +1 @@
+export { default as IconTool } from './IconTool'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrash/IconTrash.tsx b/packages/common2/src/components/Icon/icons/IconTrash/IconTrash.tsx
new file mode 100644
index 00000000000..103b1d00b73
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrash/IconTrash.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Trash } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTrash(props: any) {
+ return <IconBase icon={Trash} {...props} />
+ }
+
+ export default IconTrash
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrash/index.tsx b/packages/common2/src/components/Icon/icons/IconTrash/index.tsx
new file mode 100644
index 00000000000..72dd12cce3b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrash/index.tsx
@@ -0,0 +1 @@
+export { default as IconTrash } from './IconTrash'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrash2/IconTrash2.tsx b/packages/common2/src/components/Icon/icons/IconTrash2/IconTrash2.tsx
new file mode 100644
index 00000000000..49132bb9c5b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrash2/IconTrash2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Trash2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTrash2(props: any) {
+ return <IconBase icon={Trash2} {...props} />
+ }
+
+ export default IconTrash2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrash2/index.tsx b/packages/common2/src/components/Icon/icons/IconTrash2/index.tsx
new file mode 100644
index 00000000000..f0d7c172357
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrash2/index.tsx
@@ -0,0 +1 @@
+export { default as IconTrash2 } from './IconTrash2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrello/IconTrello.tsx b/packages/common2/src/components/Icon/icons/IconTrello/IconTrello.tsx
new file mode 100644
index 00000000000..3bea1ccc18b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrello/IconTrello.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Trello } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTrello(props: any) {
+ return <IconBase icon={Trello} {...props} />
+ }
+
+ export default IconTrello
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrello/index.tsx b/packages/common2/src/components/Icon/icons/IconTrello/index.tsx
new file mode 100644
index 00000000000..737a1c75e9c
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrello/index.tsx
@@ -0,0 +1 @@
+export { default as IconTrello } from './IconTrello'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrendingDown/IconTrendingDown.tsx b/packages/common2/src/components/Icon/icons/IconTrendingDown/IconTrendingDown.tsx
new file mode 100644
index 00000000000..54b7fc1a07e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrendingDown/IconTrendingDown.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { TrendingDown } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTrendingDown(props: any) {
+ return <IconBase icon={TrendingDown} {...props} />
+ }
+
+ export default IconTrendingDown
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrendingDown/index.tsx b/packages/common2/src/components/Icon/icons/IconTrendingDown/index.tsx
new file mode 100644
index 00000000000..e6869cd98ca
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrendingDown/index.tsx
@@ -0,0 +1 @@
+export { default as IconTrendingDown } from './IconTrendingDown'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrendingUp/IconTrendingUp.tsx b/packages/common2/src/components/Icon/icons/IconTrendingUp/IconTrendingUp.tsx
new file mode 100644
index 00000000000..3a4412227f0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrendingUp/IconTrendingUp.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { TrendingUp } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTrendingUp(props: any) {
+ return <IconBase icon={TrendingUp} {...props} />
+ }
+
+ export default IconTrendingUp
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTrendingUp/index.tsx b/packages/common2/src/components/Icon/icons/IconTrendingUp/index.tsx
new file mode 100644
index 00000000000..f20ea46fbc3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTrendingUp/index.tsx
@@ -0,0 +1 @@
+export { default as IconTrendingUp } from './IconTrendingUp'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTriangle/IconTriangle.tsx b/packages/common2/src/components/Icon/icons/IconTriangle/IconTriangle.tsx
new file mode 100644
index 00000000000..32120a19c88
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTriangle/IconTriangle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Triangle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTriangle(props: any) {
+ return <IconBase icon={Triangle} {...props} />
+ }
+
+ export default IconTriangle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTriangle/index.tsx b/packages/common2/src/components/Icon/icons/IconTriangle/index.tsx
new file mode 100644
index 00000000000..7ed372ab6c3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTriangle/index.tsx
@@ -0,0 +1 @@
+export { default as IconTriangle } from './IconTriangle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTruck/IconTruck.tsx b/packages/common2/src/components/Icon/icons/IconTruck/IconTruck.tsx
new file mode 100644
index 00000000000..a7f7e226ae5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTruck/IconTruck.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Truck } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTruck(props: any) {
+ return <IconBase icon={Truck} {...props} />
+ }
+
+ export default IconTruck
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTruck/index.tsx b/packages/common2/src/components/Icon/icons/IconTruck/index.tsx
new file mode 100644
index 00000000000..a56c046baa2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTruck/index.tsx
@@ -0,0 +1 @@
+export { default as IconTruck } from './IconTruck'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTv/IconTv.tsx b/packages/common2/src/components/Icon/icons/IconTv/IconTv.tsx
new file mode 100644
index 00000000000..136f1beab3d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTv/IconTv.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Tv } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTv(props: any) {
+ return <IconBase icon={Tv} {...props} />
+ }
+
+ export default IconTv
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTv/index.tsx b/packages/common2/src/components/Icon/icons/IconTv/index.tsx
new file mode 100644
index 00000000000..ac3c5630f18
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTv/index.tsx
@@ -0,0 +1 @@
+export { default as IconTv } from './IconTv'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTwitch/IconTwitch.tsx b/packages/common2/src/components/Icon/icons/IconTwitch/IconTwitch.tsx
new file mode 100644
index 00000000000..5c2c62981f6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTwitch/IconTwitch.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Twitch } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTwitch(props: any) {
+ return <IconBase icon={Twitch} {...props} />
+ }
+
+ export default IconTwitch
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTwitch/index.tsx b/packages/common2/src/components/Icon/icons/IconTwitch/index.tsx
new file mode 100644
index 00000000000..60f71c08ac6
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTwitch/index.tsx
@@ -0,0 +1 @@
+export { default as IconTwitch } from './IconTwitch'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTwitter/IconTwitter.tsx b/packages/common2/src/components/Icon/icons/IconTwitter/IconTwitter.tsx
new file mode 100644
index 00000000000..94416f60906
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTwitter/IconTwitter.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Twitter } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconTwitter(props: any) {
+ return <IconBase icon={Twitter} {...props} />
+ }
+
+ export default IconTwitter
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconTwitter/index.tsx b/packages/common2/src/components/Icon/icons/IconTwitter/index.tsx
new file mode 100644
index 00000000000..b9ce9a9c8f1
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconTwitter/index.tsx
@@ -0,0 +1 @@
+export { default as IconTwitter } from './IconTwitter'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconType/IconType.tsx b/packages/common2/src/components/Icon/icons/IconType/IconType.tsx
new file mode 100644
index 00000000000..ba531771c79
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconType/IconType.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Type } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconType(props: any) {
+ return <IconBase icon={Type} {...props} />
+ }
+
+ export default IconType
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconType/index.tsx b/packages/common2/src/components/Icon/icons/IconType/index.tsx
new file mode 100644
index 00000000000..b2e3829624a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconType/index.tsx
@@ -0,0 +1 @@
+export { default as IconType } from './IconType'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUmbrella/IconUmbrella.tsx b/packages/common2/src/components/Icon/icons/IconUmbrella/IconUmbrella.tsx
new file mode 100644
index 00000000000..bf4453795b5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUmbrella/IconUmbrella.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Umbrella } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUmbrella(props: any) {
+ return <IconBase icon={Umbrella} {...props} />
+ }
+
+ export default IconUmbrella
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUmbrella/index.tsx b/packages/common2/src/components/Icon/icons/IconUmbrella/index.tsx
new file mode 100644
index 00000000000..cb0b79d6e59
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUmbrella/index.tsx
@@ -0,0 +1 @@
+export { default as IconUmbrella } from './IconUmbrella'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUnderline/IconUnderline.tsx b/packages/common2/src/components/Icon/icons/IconUnderline/IconUnderline.tsx
new file mode 100644
index 00000000000..fbeb7b5105e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUnderline/IconUnderline.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Underline } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUnderline(props: any) {
+ return <IconBase icon={Underline} {...props} />
+ }
+
+ export default IconUnderline
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUnderline/index.tsx b/packages/common2/src/components/Icon/icons/IconUnderline/index.tsx
new file mode 100644
index 00000000000..074d387b354
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUnderline/index.tsx
@@ -0,0 +1 @@
+export { default as IconUnderline } from './IconUnderline'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUnlock/IconUnlock.tsx b/packages/common2/src/components/Icon/icons/IconUnlock/IconUnlock.tsx
new file mode 100644
index 00000000000..0be61381967
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUnlock/IconUnlock.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Unlock } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUnlock(props: any) {
+ return <IconBase icon={Unlock} {...props} />
+ }
+
+ export default IconUnlock
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUnlock/index.tsx b/packages/common2/src/components/Icon/icons/IconUnlock/index.tsx
new file mode 100644
index 00000000000..5be7bd744d7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUnlock/index.tsx
@@ -0,0 +1 @@
+export { default as IconUnlock } from './IconUnlock'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUpload/IconUpload.tsx b/packages/common2/src/components/Icon/icons/IconUpload/IconUpload.tsx
new file mode 100644
index 00000000000..1a1181e1999
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUpload/IconUpload.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Upload } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUpload(props: any) {
+ return <IconBase icon={Upload} {...props} />
+ }
+
+ export default IconUpload
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUpload/index.tsx b/packages/common2/src/components/Icon/icons/IconUpload/index.tsx
new file mode 100644
index 00000000000..42867d030ec
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUpload/index.tsx
@@ -0,0 +1 @@
+export { default as IconUpload } from './IconUpload'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUploadCloud/IconUploadCloud.tsx b/packages/common2/src/components/Icon/icons/IconUploadCloud/IconUploadCloud.tsx
new file mode 100644
index 00000000000..a9416762f32
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUploadCloud/IconUploadCloud.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { UploadCloud } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUploadCloud(props: any) {
+ return <IconBase icon={UploadCloud} {...props} />
+ }
+
+ export default IconUploadCloud
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUploadCloud/index.tsx b/packages/common2/src/components/Icon/icons/IconUploadCloud/index.tsx
new file mode 100644
index 00000000000..06da22b5e68
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUploadCloud/index.tsx
@@ -0,0 +1 @@
+export { default as IconUploadCloud } from './IconUploadCloud'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUser/IconUser.tsx b/packages/common2/src/components/Icon/icons/IconUser/IconUser.tsx
new file mode 100644
index 00000000000..dc50f159377
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUser/IconUser.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { User } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUser(props: any) {
+ return <IconBase icon={User} {...props} />
+ }
+
+ export default IconUser
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUser/index.tsx b/packages/common2/src/components/Icon/icons/IconUser/index.tsx
new file mode 100644
index 00000000000..21834d687c3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUser/index.tsx
@@ -0,0 +1 @@
+export { default as IconUser } from './IconUser'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserCheck/IconUserCheck.tsx b/packages/common2/src/components/Icon/icons/IconUserCheck/IconUserCheck.tsx
new file mode 100644
index 00000000000..263d432c345
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserCheck/IconUserCheck.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { UserCheck } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUserCheck(props: any) {
+ return <IconBase icon={UserCheck} {...props} />
+ }
+
+ export default IconUserCheck
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserCheck/index.tsx b/packages/common2/src/components/Icon/icons/IconUserCheck/index.tsx
new file mode 100644
index 00000000000..183b28346e5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserCheck/index.tsx
@@ -0,0 +1 @@
+export { default as IconUserCheck } from './IconUserCheck'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserMinus/IconUserMinus.tsx b/packages/common2/src/components/Icon/icons/IconUserMinus/IconUserMinus.tsx
new file mode 100644
index 00000000000..4fa25b73ccc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserMinus/IconUserMinus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { UserMinus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUserMinus(props: any) {
+ return <IconBase icon={UserMinus} {...props} />
+ }
+
+ export default IconUserMinus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserMinus/index.tsx b/packages/common2/src/components/Icon/icons/IconUserMinus/index.tsx
new file mode 100644
index 00000000000..fcf2754f72a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserMinus/index.tsx
@@ -0,0 +1 @@
+export { default as IconUserMinus } from './IconUserMinus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserPlus/IconUserPlus.tsx b/packages/common2/src/components/Icon/icons/IconUserPlus/IconUserPlus.tsx
new file mode 100644
index 00000000000..36de87a161b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserPlus/IconUserPlus.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { UserPlus } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUserPlus(props: any) {
+ return <IconBase icon={UserPlus} {...props} />
+ }
+
+ export default IconUserPlus
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserPlus/index.tsx b/packages/common2/src/components/Icon/icons/IconUserPlus/index.tsx
new file mode 100644
index 00000000000..196ac18e249
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserPlus/index.tsx
@@ -0,0 +1 @@
+export { default as IconUserPlus } from './IconUserPlus'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserX/IconUserX.tsx b/packages/common2/src/components/Icon/icons/IconUserX/IconUserX.tsx
new file mode 100644
index 00000000000..e8ca910daee
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserX/IconUserX.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { UserX } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUserX(props: any) {
+ return <IconBase icon={UserX} {...props} />
+ }
+
+ export default IconUserX
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUserX/index.tsx b/packages/common2/src/components/Icon/icons/IconUserX/index.tsx
new file mode 100644
index 00000000000..1de4299d2b3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUserX/index.tsx
@@ -0,0 +1 @@
+export { default as IconUserX } from './IconUserX'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUsers/IconUsers.tsx b/packages/common2/src/components/Icon/icons/IconUsers/IconUsers.tsx
new file mode 100644
index 00000000000..6c860051d47
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUsers/IconUsers.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Users } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconUsers(props: any) {
+ return <IconBase icon={Users} {...props} />
+ }
+
+ export default IconUsers
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconUsers/index.tsx b/packages/common2/src/components/Icon/icons/IconUsers/index.tsx
new file mode 100644
index 00000000000..d40774c2eeb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconUsers/index.tsx
@@ -0,0 +1 @@
+export { default as IconUsers } from './IconUsers'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVideo/IconVideo.tsx b/packages/common2/src/components/Icon/icons/IconVideo/IconVideo.tsx
new file mode 100644
index 00000000000..d73848a9e98
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVideo/IconVideo.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Video } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVideo(props: any) {
+ return <IconBase icon={Video} {...props} />
+ }
+
+ export default IconVideo
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVideo/index.tsx b/packages/common2/src/components/Icon/icons/IconVideo/index.tsx
new file mode 100644
index 00000000000..93f8153c170
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVideo/index.tsx
@@ -0,0 +1 @@
+export { default as IconVideo } from './IconVideo'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVideoOff/IconVideoOff.tsx b/packages/common2/src/components/Icon/icons/IconVideoOff/IconVideoOff.tsx
new file mode 100644
index 00000000000..e5aa941b698
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVideoOff/IconVideoOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { VideoOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVideoOff(props: any) {
+ return <IconBase icon={VideoOff} {...props} />
+ }
+
+ export default IconVideoOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVideoOff/index.tsx b/packages/common2/src/components/Icon/icons/IconVideoOff/index.tsx
new file mode 100644
index 00000000000..8d6802d07fb
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVideoOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconVideoOff } from './IconVideoOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVoicemail/IconVoicemail.tsx b/packages/common2/src/components/Icon/icons/IconVoicemail/IconVoicemail.tsx
new file mode 100644
index 00000000000..ca53ecb34d7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVoicemail/IconVoicemail.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Voicemail } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVoicemail(props: any) {
+ return <IconBase icon={Voicemail} {...props} />
+ }
+
+ export default IconVoicemail
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVoicemail/index.tsx b/packages/common2/src/components/Icon/icons/IconVoicemail/index.tsx
new file mode 100644
index 00000000000..8a2ee7f711e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVoicemail/index.tsx
@@ -0,0 +1 @@
+export { default as IconVoicemail } from './IconVoicemail'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolume/IconVolume.tsx b/packages/common2/src/components/Icon/icons/IconVolume/IconVolume.tsx
new file mode 100644
index 00000000000..d6579dd5130
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolume/IconVolume.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Volume } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVolume(props: any) {
+ return <IconBase icon={Volume} {...props} />
+ }
+
+ export default IconVolume
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolume/index.tsx b/packages/common2/src/components/Icon/icons/IconVolume/index.tsx
new file mode 100644
index 00000000000..ad18a09b054
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolume/index.tsx
@@ -0,0 +1 @@
+export { default as IconVolume } from './IconVolume'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolume1/IconVolume1.tsx b/packages/common2/src/components/Icon/icons/IconVolume1/IconVolume1.tsx
new file mode 100644
index 00000000000..2421289916f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolume1/IconVolume1.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Volume1 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVolume1(props: any) {
+ return <IconBase icon={Volume1} {...props} />
+ }
+
+ export default IconVolume1
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolume1/index.tsx b/packages/common2/src/components/Icon/icons/IconVolume1/index.tsx
new file mode 100644
index 00000000000..718793c66c2
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolume1/index.tsx
@@ -0,0 +1 @@
+export { default as IconVolume1 } from './IconVolume1'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolume2/IconVolume2.tsx b/packages/common2/src/components/Icon/icons/IconVolume2/IconVolume2.tsx
new file mode 100644
index 00000000000..dea4b7e9fe0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolume2/IconVolume2.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Volume2 } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVolume2(props: any) {
+ return <IconBase icon={Volume2} {...props} />
+ }
+
+ export default IconVolume2
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolume2/index.tsx b/packages/common2/src/components/Icon/icons/IconVolume2/index.tsx
new file mode 100644
index 00000000000..3042ef5a37f
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolume2/index.tsx
@@ -0,0 +1 @@
+export { default as IconVolume2 } from './IconVolume2'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolumeX/IconVolumeX.tsx b/packages/common2/src/components/Icon/icons/IconVolumeX/IconVolumeX.tsx
new file mode 100644
index 00000000000..8e7b96123a0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolumeX/IconVolumeX.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { VolumeX } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconVolumeX(props: any) {
+ return <IconBase icon={VolumeX} {...props} />
+ }
+
+ export default IconVolumeX
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconVolumeX/index.tsx b/packages/common2/src/components/Icon/icons/IconVolumeX/index.tsx
new file mode 100644
index 00000000000..89dc1cb40cc
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconVolumeX/index.tsx
@@ -0,0 +1 @@
+export { default as IconVolumeX } from './IconVolumeX'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWatch/IconWatch.tsx b/packages/common2/src/components/Icon/icons/IconWatch/IconWatch.tsx
new file mode 100644
index 00000000000..d9144e13445
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWatch/IconWatch.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Watch } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconWatch(props: any) {
+ return <IconBase icon={Watch} {...props} />
+ }
+
+ export default IconWatch
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWatch/index.tsx b/packages/common2/src/components/Icon/icons/IconWatch/index.tsx
new file mode 100644
index 00000000000..dce90b7221e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWatch/index.tsx
@@ -0,0 +1 @@
+export { default as IconWatch } from './IconWatch'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWifi/IconWifi.tsx b/packages/common2/src/components/Icon/icons/IconWifi/IconWifi.tsx
new file mode 100644
index 00000000000..2b0df7122e3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWifi/IconWifi.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Wifi } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconWifi(props: any) {
+ return <IconBase icon={Wifi} {...props} />
+ }
+
+ export default IconWifi
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWifi/index.tsx b/packages/common2/src/components/Icon/icons/IconWifi/index.tsx
new file mode 100644
index 00000000000..10f002892a0
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWifi/index.tsx
@@ -0,0 +1 @@
+export { default as IconWifi } from './IconWifi'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWifiOff/IconWifiOff.tsx b/packages/common2/src/components/Icon/icons/IconWifiOff/IconWifiOff.tsx
new file mode 100644
index 00000000000..a51578a1234
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWifiOff/IconWifiOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { WifiOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconWifiOff(props: any) {
+ return <IconBase icon={WifiOff} {...props} />
+ }
+
+ export default IconWifiOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWifiOff/index.tsx b/packages/common2/src/components/Icon/icons/IconWifiOff/index.tsx
new file mode 100644
index 00000000000..b532c51c712
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWifiOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconWifiOff } from './IconWifiOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWind/IconWind.tsx b/packages/common2/src/components/Icon/icons/IconWind/IconWind.tsx
new file mode 100644
index 00000000000..b558ef10c2d
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWind/IconWind.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Wind } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconWind(props: any) {
+ return <IconBase icon={Wind} {...props} />
+ }
+
+ export default IconWind
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconWind/index.tsx b/packages/common2/src/components/Icon/icons/IconWind/index.tsx
new file mode 100644
index 00000000000..9449db6fc40
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconWind/index.tsx
@@ -0,0 +1 @@
+export { default as IconWind } from './IconWind'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconX/IconX.tsx b/packages/common2/src/components/Icon/icons/IconX/IconX.tsx
new file mode 100644
index 00000000000..c040ced8fe8
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconX/IconX.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { X } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconX(props: any) {
+ return <IconBase icon={X} {...props} />
+ }
+
+ export default IconX
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconX/index.tsx b/packages/common2/src/components/Icon/icons/IconX/index.tsx
new file mode 100644
index 00000000000..b0b628132f3
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconX/index.tsx
@@ -0,0 +1 @@
+export { default as IconX } from './IconX'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconXCircle/IconXCircle.tsx b/packages/common2/src/components/Icon/icons/IconXCircle/IconXCircle.tsx
new file mode 100644
index 00000000000..61ff5d97e60
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconXCircle/IconXCircle.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { XCircle } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconXCircle(props: any) {
+ return <IconBase icon={XCircle} {...props} />
+ }
+
+ export default IconXCircle
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconXCircle/index.tsx b/packages/common2/src/components/Icon/icons/IconXCircle/index.tsx
new file mode 100644
index 00000000000..7300e176f69
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconXCircle/index.tsx
@@ -0,0 +1 @@
+export { default as IconXCircle } from './IconXCircle'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconXOctagon/IconXOctagon.tsx b/packages/common2/src/components/Icon/icons/IconXOctagon/IconXOctagon.tsx
new file mode 100644
index 00000000000..824f6b30e3b
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconXOctagon/IconXOctagon.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { XOctagon } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconXOctagon(props: any) {
+ return <IconBase icon={XOctagon} {...props} />
+ }
+
+ export default IconXOctagon
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconXOctagon/index.tsx b/packages/common2/src/components/Icon/icons/IconXOctagon/index.tsx
new file mode 100644
index 00000000000..f1e25a85f6a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconXOctagon/index.tsx
@@ -0,0 +1 @@
+export { default as IconXOctagon } from './IconXOctagon'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconXSquare/IconXSquare.tsx b/packages/common2/src/components/Icon/icons/IconXSquare/IconXSquare.tsx
new file mode 100644
index 00000000000..cc339eebcf5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconXSquare/IconXSquare.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { XSquare } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconXSquare(props: any) {
+ return <IconBase icon={XSquare} {...props} />
+ }
+
+ export default IconXSquare
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconXSquare/index.tsx b/packages/common2/src/components/Icon/icons/IconXSquare/index.tsx
new file mode 100644
index 00000000000..e830952753a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconXSquare/index.tsx
@@ -0,0 +1 @@
+export { default as IconXSquare } from './IconXSquare'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconYoutube/IconYoutube.tsx b/packages/common2/src/components/Icon/icons/IconYoutube/IconYoutube.tsx
new file mode 100644
index 00000000000..5ffd042c632
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconYoutube/IconYoutube.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Youtube } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconYoutube(props: any) {
+ return <IconBase icon={Youtube} {...props} />
+ }
+
+ export default IconYoutube
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconYoutube/index.tsx b/packages/common2/src/components/Icon/icons/IconYoutube/index.tsx
new file mode 100644
index 00000000000..10e2348ce12
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconYoutube/index.tsx
@@ -0,0 +1 @@
+export { default as IconYoutube } from './IconYoutube'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZap/IconZap.tsx b/packages/common2/src/components/Icon/icons/IconZap/IconZap.tsx
new file mode 100644
index 00000000000..8282dfcf0df
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZap/IconZap.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { Zap } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconZap(props: any) {
+ return <IconBase icon={Zap} {...props} />
+ }
+
+ export default IconZap
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZap/index.tsx b/packages/common2/src/components/Icon/icons/IconZap/index.tsx
new file mode 100644
index 00000000000..42363316e08
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZap/index.tsx
@@ -0,0 +1 @@
+export { default as IconZap } from './IconZap'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZapOff/IconZapOff.tsx b/packages/common2/src/components/Icon/icons/IconZapOff/IconZapOff.tsx
new file mode 100644
index 00000000000..66832df179a
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZapOff/IconZapOff.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ZapOff } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconZapOff(props: any) {
+ return <IconBase icon={ZapOff} {...props} />
+ }
+
+ export default IconZapOff
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZapOff/index.tsx b/packages/common2/src/components/Icon/icons/IconZapOff/index.tsx
new file mode 100644
index 00000000000..a41fa2435b4
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZapOff/index.tsx
@@ -0,0 +1 @@
+export { default as IconZapOff } from './IconZapOff'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZoomIn/IconZoomIn.tsx b/packages/common2/src/components/Icon/icons/IconZoomIn/IconZoomIn.tsx
new file mode 100644
index 00000000000..6f5554780e5
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZoomIn/IconZoomIn.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ZoomIn } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconZoomIn(props: any) {
+ return <IconBase icon={ZoomIn} {...props} />
+ }
+
+ export default IconZoomIn
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZoomIn/index.tsx b/packages/common2/src/components/Icon/icons/IconZoomIn/index.tsx
new file mode 100644
index 00000000000..3933062fbbd
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZoomIn/index.tsx
@@ -0,0 +1 @@
+export { default as IconZoomIn } from './IconZoomIn'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZoomOut/IconZoomOut.tsx b/packages/common2/src/components/Icon/icons/IconZoomOut/IconZoomOut.tsx
new file mode 100644
index 00000000000..c2aa65bbe91
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZoomOut/IconZoomOut.tsx
@@ -0,0 +1,13 @@
+// DO NOT EDIT
+ // this file is generated by /internals/populate-icons script
+ import React from 'react'
+ // @ts-ignore
+ import { ZoomOut } from 'react-feather'
+ import IconBase from './../../IconBase'
+
+ function IconZoomOut(props: any) {
+ return <IconBase icon={ZoomOut} {...props} />
+ }
+
+ export default IconZoomOut
+
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/IconZoomOut/index.tsx b/packages/common2/src/components/Icon/icons/IconZoomOut/index.tsx
new file mode 100644
index 00000000000..96deb6dee1e
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/IconZoomOut/index.tsx
@@ -0,0 +1 @@
+export { default as IconZoomOut } from './IconZoomOut'
\ No newline at end of file
diff --git a/packages/common2/src/components/Icon/icons/index.tsx b/packages/common2/src/components/Icon/icons/index.tsx
new file mode 100644
index 00000000000..9fc2134a5a7
--- /dev/null
+++ b/packages/common2/src/components/Icon/icons/index.tsx
@@ -0,0 +1,287 @@
+// export icons
+export * as IconActivity from './IconActivity'
+export * as IconAirplay from './IconAirplay'
+export * as IconAlertCircle from './IconAlertCircle'
+export * as IconAlertOctagon from './IconAlertOctagon'
+export * as IconAlertTriangle from './IconAlertTriangle'
+export * as IconAlignCenter from './IconAlignCenter'
+export * as IconAlignJustify from './IconAlignJustify'
+export * as IconAlignLeft from './IconAlignLeft'
+export * as IconAlignRight from './IconAlignRight'
+export * as IconAnchor from './IconAnchor'
+export * as IconAperture from './IconAperture'
+export * as IconArchive from './IconArchive'
+export * as IconArrowDownCircle from './IconArrowDownCircle'
+export * as IconArrowDownLeft from './IconArrowDownLeft'
+export * as IconArrowDownRight from './IconArrowDownRight'
+export * as IconArrowDown from './IconArrowDown'
+export * as IconArrowLeftCircle from './IconArrowLeftCircle'
+export * as IconArrowLeft from './IconArrowLeft'
+export * as IconArrowRightCircle from './IconArrowRightCircle'
+export * as IconArrowRight from './IconArrowRight'
+export * as IconArrowUpCircle from './IconArrowUpCircle'
+export * as IconArrowUpLeft from './IconArrowUpLeft'
+export * as IconArrowUpRight from './IconArrowUpRight'
+export * as IconArrowUp from './IconArrowUp'
+export * as IconAtSign from './IconAtSign'
+export * as IconAward from './IconAward'
+export * as IconBarChart2 from './IconBarChart2'
+export * as IconBarChart from './IconBarChart'
+export * as IconBatteryCharging from './IconBatteryCharging'
+export * as IconBattery from './IconBattery'
+export * as IconBellOff from './IconBellOff'
+export * as IconBell from './IconBell'
+export * as IconBluetooth from './IconBluetooth'
+export * as IconBold from './IconBold'
+export * as IconBookOpen from './IconBookOpen'
+export * as IconBook from './IconBook'
+export * as IconBookmark from './IconBookmark'
+export * as IconBox from './IconBox'
+export * as IconBriefcase from './IconBriefcase'
+export * as IconCalendar from './IconCalendar'
+export * as IconCameraOff from './IconCameraOff'
+export * as IconCamera from './IconCamera'
+export * as IconCast from './IconCast'
+export * as IconCheckCircle from './IconCheckCircle'
+export * as IconCheckSquare from './IconCheckSquare'
+export * as IconCheck from './IconCheck'
+export * as IconChevronDown from './IconChevronDown'
+export * as IconChevronLeft from './IconChevronLeft'
+export * as IconChevronRight from './IconChevronRight'
+export * as IconChevronUp from './IconChevronUp'
+export * as IconChevronsDown from './IconChevronsDown'
+export * as IconChevronsLeft from './IconChevronsLeft'
+export * as IconChevronsRight from './IconChevronsRight'
+export * as IconChevronsUp from './IconChevronsUp'
+export * as IconChrome from './IconChrome'
+export * as IconCircle from './IconCircle'
+export * as IconClipboard from './IconClipboard'
+export * as IconClock from './IconClock'
+export * as IconCloudDrizzle from './IconCloudDrizzle'
+export * as IconCloudLightning from './IconCloudLightning'
+export * as IconCloudOff from './IconCloudOff'
+export * as IconCloudRain from './IconCloudRain'
+export * as IconCloudSnow from './IconCloudSnow'
+export * as IconCloud from './IconCloud'
+export * as IconCode from './IconCode'
+export * as IconCodepen from './IconCodepen'
+export * as IconCodesandbox from './IconCodesandbox'
+export * as IconCoffee from './IconCoffee'
+export * as IconColumns from './IconColumns'
+export * as IconCommand from './IconCommand'
+export * as IconCompass from './IconCompass'
+export * as IconCopy from './IconCopy'
+export * as IconCornerDownLeft from './IconCornerDownLeft'
+export * as IconCornerDownRight from './IconCornerDownRight'
+export * as IconCornerLeftDown from './IconCornerLeftDown'
+export * as IconCornerLeftUp from './IconCornerLeftUp'
+export * as IconCornerRightDown from './IconCornerRightDown'
+export * as IconCornerRightUp from './IconCornerRightUp'
+export * as IconCornerUpLeft from './IconCornerUpLeft'
+export * as IconCornerUpRight from './IconCornerUpRight'
+export * as IconCpu from './IconCpu'
+export * as IconCreditCard from './IconCreditCard'
+export * as IconCrop from './IconCrop'
+export * as IconCrosshair from './IconCrosshair'
+export * as IconDatabase from './IconDatabase'
+export * as IconDelete from './IconDelete'
+export * as IconDisc from './IconDisc'
+export * as IconDivideCircle from './IconDivideCircle'
+export * as IconDivideSquare from './IconDivideSquare'
+export * as IconDivide from './IconDivide'
+export * as IconDollarSign from './IconDollarSign'
+export * as IconDownloadCloud from './IconDownloadCloud'
+export * as IconDownload from './IconDownload'
+export * as IconDribbble from './IconDribbble'
+export * as IconDroplet from './IconDroplet'
+export * as IconEdit2 from './IconEdit2'
+export * as IconEdit3 from './IconEdit3'
+export * as IconEdit from './IconEdit'
+export * as IconExternalLink from './IconExternalLink'
+export * as IconEyeOff from './IconEyeOff'
+export * as IconEye from './IconEye'
+export * as IconFacebook from './IconFacebook'
+export * as IconFastForward from './IconFastForward'
+export * as IconFeather from './IconFeather'
+export * as IconFigma from './IconFigma'
+export * as IconFileMinus from './IconFileMinus'
+export * as IconFilePlus from './IconFilePlus'
+export * as IconFileText from './IconFileText'
+export * as IconFile from './IconFile'
+export * as IconFilm from './IconFilm'
+export * as IconFilter from './IconFilter'
+export * as IconFlag from './IconFlag'
+export * as IconFolderMinus from './IconFolderMinus'
+export * as IconFolderPlus from './IconFolderPlus'
+export * as IconFolder from './IconFolder'
+export * as IconFramer from './IconFramer'
+export * as IconFrown from './IconFrown'
+export * as IconGift from './IconGift'
+export * as IconGitBranch from './IconGitBranch'
+export * as IconGitCommit from './IconGitCommit'
+export * as IconGitMerge from './IconGitMerge'
+export * as IconGitPullRequest from './IconGitPullRequest'
+export * as IconGitHub from './IconGitHub'
+export * as IconGitlab from './IconGitlab'
+export * as IconGlobe from './IconGlobe'
+export * as IconGrid from './IconGrid'
+export * as IconHardDrive from './IconHardDrive'
+export * as IconHash from './IconHash'
+export * as IconHeadphones from './IconHeadphones'
+export * as IconHeart from './IconHeart'
+export * as IconHelpCircle from './IconHelpCircle'
+export * as IconHexagon from './IconHexagon'
+export * as IconHome from './IconHome'
+export * as IconImage from './IconImage'
+export * as IconInbox from './IconInbox'
+export * as IconInfo from './IconInfo'
+export * as IconInstagram from './IconInstagram'
+export * as IconItalic from './IconItalic'
+export * as IconKey from './IconKey'
+export * as IconLayers from './IconLayers'
+export * as IconLayout from './IconLayout'
+export * as IconLifeBuoy from './IconLifeBuoy'
+export * as IconLink2 from './IconLink2'
+export * as IconLink from './IconLink'
+export * as IconLinkedin from './IconLinkedin'
+export * as IconList from './IconList'
+export * as IconLoader from './IconLoader'
+export * as IconLock from './IconLock'
+export * as IconLogIn from './IconLogIn'
+export * as IconLogOut from './IconLogOut'
+export * as IconMail from './IconMail'
+export * as IconMapPin from './IconMapPin'
+export * as IconMap from './IconMap'
+export * as IconMaximize2 from './IconMaximize2'
+export * as IconMaximize from './IconMaximize'
+export * as IconMeh from './IconMeh'
+export * as IconMenu from './IconMenu'
+export * as IconMessageCircle from './IconMessageCircle'
+export * as IconMessageSquare from './IconMessageSquare'
+export * as IconMicOff from './IconMicOff'
+export * as IconMic from './IconMic'
+export * as IconMinimize2 from './IconMinimize2'
+export * as IconMinimize from './IconMinimize'
+export * as IconMinusCircle from './IconMinusCircle'
+export * as IconMinusSquare from './IconMinusSquare'
+export * as IconMinus from './IconMinus'
+export * as IconMonitor from './IconMonitor'
+export * as IconMoon from './IconMoon'
+export * as IconMoreHorizontal from './IconMoreHorizontal'
+export * as IconMoreVertical from './IconMoreVertical'
+export * as IconMousePointer from './IconMousePointer'
+export * as IconMove from './IconMove'
+export * as IconMusic from './IconMusic'
+export * as IconNavigation2 from './IconNavigation2'
+export * as IconNavigation from './IconNavigation'
+export * as IconOctagon from './IconOctagon'
+export * as IconPackage from './IconPackage'
+export * as IconPaperclip from './IconPaperclip'
+export * as IconPauseCircle from './IconPauseCircle'
+export * as IconPause from './IconPause'
+export * as IconPenTool from './IconPenTool'
+export * as IconPercent from './IconPercent'
+export * as IconPhoneCall from './IconPhoneCall'
+export * as IconPhoneForwarded from './IconPhoneForwarded'
+export * as IconPhoneIncoming from './IconPhoneIncoming'
+export * as IconPhoneMissed from './IconPhoneMissed'
+export * as IconPhoneOff from './IconPhoneOff'
+export * as IconPhoneOutgoing from './IconPhoneOutgoing'
+export * as IconPhone from './IconPhone'
+export * as IconPieChart from './IconPieChart'
+export * as IconPlayCircle from './IconPlayCircle'
+export * as IconPlay from './IconPlay'
+export * as IconPlusCircle from './IconPlusCircle'
+export * as IconPlusSquare from './IconPlusSquare'
+export * as IconPlus from './IconPlus'
+export * as IconPocket from './IconPocket'
+export * as IconPower from './IconPower'
+export * as IconPrinter from './IconPrinter'
+export * as IconRadio from './IconRadio'
+export * as IconRefreshCcw from './IconRefreshCcw'
+export * as IconRefreshCw from './IconRefreshCw'
+export * as IconRepeat from './IconRepeat'
+export * as IconRewind from './IconRewind'
+export * as IconRotateCcw from './IconRotateCcw'
+export * as IconRotateCw from './IconRotateCw'
+export * as IconRss from './IconRss'
+export * as IconSave from './IconSave'
+export * as IconScissors from './IconScissors'
+export * as IconSearch from './IconSearch'
+export * as IconSend from './IconSend'
+export * as IconServer from './IconServer'
+export * as IconSettings from './IconSettings'
+export * as IconShare2 from './IconShare2'
+export * as IconShare from './IconShare'
+export * as IconShieldOff from './IconShieldOff'
+export * as IconShield from './IconShield'
+export * as IconShoppingBag from './IconShoppingBag'
+export * as IconShoppingCart from './IconShoppingCart'
+export * as IconShuffle from './IconShuffle'
+export * as IconSidebar from './IconSidebar'
+export * as IconSkipBack from './IconSkipBack'
+export * as IconSkipForward from './IconSkipForward'
+export * as IconSlack from './IconSlack'
+export * as IconSlash from './IconSlash'
+export * as IconSliders from './IconSliders'
+export * as IconSmartphone from './IconSmartphone'
+export * as IconSmile from './IconSmile'
+export * as IconSpeaker from './IconSpeaker'
+export * as IconSquare from './IconSquare'
+export * as IconStar from './IconStar'
+export * as IconStopCircle from './IconStopCircle'
+export * as IconSun from './IconSun'
+export * as IconSunrise from './IconSunrise'
+export * as IconSunset from './IconSunset'
+export * as IconTablet from './IconTablet'
+export * as IconTag from './IconTag'
+export * as IconTarget from './IconTarget'
+export * as IconTerminal from './IconTerminal'
+export * as IconThermometer from './IconThermometer'
+export * as IconThumbsDown from './IconThumbsDown'
+export * as IconThumbsUp from './IconThumbsUp'
+export * as IconToggleLeft from './IconToggleLeft'
+export * as IconToggleRight from './IconToggleRight'
+export * as IconTool from './IconTool'
+export * as IconTrash2 from './IconTrash2'
+export * as IconTrash from './IconTrash'
+export * as IconTrello from './IconTrello'
+export * as IconTrendingDown from './IconTrendingDown'
+export * as IconTrendingUp from './IconTrendingUp'
+export * as IconTriangle from './IconTriangle'
+export * as IconTruck from './IconTruck'
+export * as IconTv from './IconTv'
+export * as IconTwitch from './IconTwitch'
+export * as IconTwitter from './IconTwitter'
+export * as IconType from './IconType'
+export * as IconUmbrella from './IconUmbrella'
+export * as IconUnderline from './IconUnderline'
+export * as IconUnlock from './IconUnlock'
+export * as IconUploadCloud from './IconUploadCloud'
+export * as IconUpload from './IconUpload'
+export * as IconUserCheck from './IconUserCheck'
+export * as IconUserMinus from './IconUserMinus'
+export * as IconUserPlus from './IconUserPlus'
+export * as IconUserX from './IconUserX'
+export * as IconUser from './IconUser'
+export * as IconUsers from './IconUsers'
+export * as IconVideoOff from './IconVideoOff'
+export * as IconVideo from './IconVideo'
+export * as IconVoicemail from './IconVoicemail'
+export * as IconVolume1 from './IconVolume1'
+export * as IconVolume2 from './IconVolume2'
+export * as IconVolumeX from './IconVolumeX'
+export * as IconVolume from './IconVolume'
+export * as IconWatch from './IconWatch'
+export * as IconWifiOff from './IconWifiOff'
+export * as IconWifi from './IconWifi'
+export * as IconWind from './IconWind'
+export * as IconXCircle from './IconXCircle'
+export * as IconXOctagon from './IconXOctagon'
+export * as IconXSquare from './IconXSquare'
+export * as IconX from './IconX'
+export * as IconYoutube from './IconYoutube'
+export * as IconZapOff from './IconZapOff'
+export * as IconZap from './IconZap'
+export * as IconZoomIn from './IconZoomIn'
+export * as IconZoomOut from './IconZoomOut'
diff --git a/packages/common2/src/components/Icon/index.tsx b/packages/common2/src/components/Icon/index.tsx
new file mode 100644
index 00000000000..7aebbe9de7e
--- /dev/null
+++ b/packages/common2/src/components/Icon/index.tsx
@@ -0,0 +1 @@
+export * from './Icon'
diff --git a/packages/common2/src/components/Image/Image.module.css b/packages/common2/src/components/Image/Image.module.css
new file mode 100644
index 00000000000..f9a9825dc78
--- /dev/null
+++ b/packages/common2/src/components/Image/Image.module.css
@@ -0,0 +1,21 @@
+.sbui-image {
+
+}
+
+.sbui-image-circle {
+ @apply rounded-full;
+}
+
+.sbui-image-normal {
+
+}
+
+.sbui-image-rounded {
+ @apply rounded
+}
+
+.sbui-image-responsive {
+ @apply w-full;
+ @apply h-auto;
+
+}
\ No newline at end of file
diff --git a/packages/common2/src/components/Image/Image.stories.tsx b/packages/common2/src/components/Image/Image.stories.tsx
new file mode 100644
index 00000000000..81680f06604
--- /dev/null
+++ b/packages/common2/src/components/Image/Image.stories.tsx
@@ -0,0 +1,65 @@
+import React, { useState } from 'react'
+
+import { Image } from '.'
+
+export default {
+ title: 'General/Image',
+ component: Image,
+}
+
+export const Normal = (args: any) => {
+ return (
+ <>
+ <Image {...args} />
+ </>
+ )
+}
+
+export const Circle = (args: any) => {
+ return (
+ <>
+ <Image {...args} />
+ </>
+ )
+}
+
+export const Rounded = (args: any) => {
+ return (
+ <>
+ <Image {...args} />
+ </>
+ )
+}
+
+export const Responsive = (args: any) => {
+ return (
+ <>
+ <Image {...args} />
+ </>
+ )
+}
+
+Normal.args = {
+ active: true,
+ source: 'https://via.placeholder.com/300'
+}
+
+Circle.args = {
+ active: true,
+ type: 'circle',
+ source: 'https://via.placeholder.com/300'
+}
+
+Rounded.args = {
+ active: true,
+ type: 'rounded',
+ source: 'https://via.placeholder.com/300'
+}
+
+Responsive.args = {
+ active: true,
+ type: 'normal',
+ source: 'https://via.placeholder.com/300',
+ responsive: true
+
+}
\ No newline at end of file
diff --git a/packages/common2/src/components/Image/Image.tsx b/packages/common2/src/components/Image/Image.tsx
new file mode 100644
index 00000000000..e079acae6e4
--- /dev/null
+++ b/packages/common2/src/components/Image/Image.tsx
@@ -0,0 +1,37 @@
+import React from 'react'
+// @ts-ignore
+// import ImageStyles from './Image.module.css'
+
+interface Props {
+ source?: string
+ style?: React.CSSProperties
+ className?: string
+ type?: 'rounded' | 'circle'
+ alt?: string
+ responsive?: boolean
+}
+
+export default function Image({
+ source,
+ style,
+ className,
+ type,
+ alt,
+ responsive,
+}: Props) {
+ // let classes = [ImageStyles['sbui-image-normal']]
+ // classes.push(type === 'rounded' && ImageStyles['sbui-image-rounded'])
+ // classes.push(type === 'circle' && ImageStyles['sbui-image-circle'])
+ // if(responsive) classes.push(ImageStyles['sbui-image-responsive'])
+ // if (className) classes.push(className)
+ return (
+ <>
+ <img
+ // className={classes.join(' ')}
+ src={source}
+ style={style}
+ alt={alt}
+ />
+ </>
+ )
+}
diff --git a/packages/common2/src/components/Image/index.tsx b/packages/common2/src/components/Image/index.tsx
new file mode 100644
index 00000000000..225e542fa1e
--- /dev/null
+++ b/packages/common2/src/components/Image/index.tsx
@@ -0,0 +1 @@
+export { default as Image } from './Image'
diff --git a/packages/common2/src/components/Input/Input.module.css b/packages/common2/src/components/Input/Input.module.css
new file mode 100644
index 00000000000..ae233879291
--- /dev/null
+++ b/packages/common2/src/components/Input/Input.module.css
@@ -0,0 +1,68 @@
+/* .sbui-input-container {
+ @apply relative;
+} */
+
+/* .sbui-input {
+ @apply block box-border pl-3 pr-3 py-2 w-full rounded-md shadow-sm text-sm border border-solid transition-all;
+ @apply bg-white text-input-value-light border-input-border-light;
+ @apply focus:ring-input-border-focus-light focus:border-input-border-focus-light focus:outline-none;
+
+ @apply dark:bg-transparent dark:text-input-value-dark dark:border-input-border-dark;
+ @apply dark:focus:border-input-border-focus-dark dark:focus:ring-input-border-focus-dark;
+
+
+ font-family: inherit;
+ transition: box-shadow 0.3s ease-in-out;
+} */
+
+/* .sbui-input:focus {
+ box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.1);
+} */
+
+/* .sbui-input--error {
+ @apply border-red-500 dark:border-red-500;
+}
+
+.sbui-input--borderless {
+ @apply border-transparent shadow-none;
+}
+
+.sbui-input-actions-container {
+ @apply absolute inset-y-0 right-0 pl-3 pr-1 flex items-center;
+} */
+
+.sbui-textarea-actions-container {
+ @apply absolute inset-y-1 right-0 pl-3 pr-1 flex items-start;
+}
+
+.sbui-textarea-actions-container__items {
+ @apply flex items-center;
+}
+
+/*
+ Input sizes
+*/
+
+/* .sbui-input--tiny {
+ @apply px-2.5 py-1.5 text-xs;
+}
+.sbui-input--small {
+ @apply px-3 py-2 text-sm leading-4;
+}
+.sbui-input--medium {
+ @apply px-4 py-2 text-sm;
+}
+.sbui-input--large {
+ @apply px-4 py-2 text-base;
+}
+.sbui-input--xlarge {
+ @apply px-6 py-3 text-base;
+} */
+
+/*
+ Input icon
+*/
+
+/* .sbui-input--with-icon {
+ @apply pl-10;
+} */
diff --git a/packages/common2/src/components/Input/Input.stories.tsx b/packages/common2/src/components/Input/Input.stories.tsx
new file mode 100644
index 00000000000..45bfbb8a008
--- /dev/null
+++ b/packages/common2/src/components/Input/Input.stories.tsx
@@ -0,0 +1,159 @@
+import React from 'react'
+// import { AutoForm } from 'uniforms'
+
+import { Input } from '.'
+import { IconPackage } from './../../index'
+import { Button } from '../Button'
+import { Space } from '../Space'
+
+export default {
+ title: 'Data Input/Input',
+ component: Input,
+}
+
+export const Default = (args: any) => <Input {...args} />
+
+export const ErrorState = (args: any) => <Input {...args} />
+
+export const withIcon = (args: any) => <Input {...args} />
+
+export const withOption = (args: any) => <Input {...args} />
+
+export const withDescription = (args: any) => <Input {...args} />
+
+export const withCustomStyle = (args: any) => <Input {...args} />
+
+export const textArea = (args: any) => <Input.TextArea {...args} />
+
+export const textAreaWithCopy = (args: any) => <Input.TextArea {...args} />
+
+export const textAreaWithLimit = (args: any) => <Input.TextArea {...args} />
+
+export const withRevealAndCopy = (args: any) => <Input {...args} />
+
+export const withCustomActions = (args: any) => <Input {...args} />
+
+export const withBeforeAndAfterLabel = (args: any) => <Input {...args} />
+
+export const size = (args: any) => <Input {...args} />
+
+export const borderless = (args: any) => <Input {...args} />
+
+export const date = (args: any) => <Input {...args} step="12" />
+
+const icon: any = <IconPackage />
+
+Default.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Name',
+ layout: 'vertical',
+}
+
+ErrorState.args = {
+ type: 'text',
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ error: 'Your password must be less than 4 characters.',
+}
+
+withIcon.args = {
+ type: 'text',
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an icon',
+ icon: icon,
+}
+
+withOption.args = {
+ type: 'text',
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ labelOptional: 'This is required',
+}
+
+withDescription.args = {
+ type: 'text',
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ descriptionText: 'Make your password short and easy to guess',
+}
+
+withCustomStyle.args = {
+ type: 'text',
+ label: 'This has custom styling {width: 50%}',
+ style: { width: '50%' },
+}
+
+textArea.args = {
+ type: 'text',
+ label: 'This is a text area',
+}
+
+textAreaWithCopy.args = {
+ copy: true,
+ rows: 3,
+ type: 'text',
+ label: 'This is a text area',
+}
+
+textAreaWithLimit.args = {
+ type: 'text',
+ label: 'This is a text area, with 10 rows',
+ labelOptional: '500 character limit',
+ rows: 10,
+ limit: 500,
+}
+
+withRevealAndCopy.args = {
+ type: 'text',
+ label: 'Reveal and copy',
+ labelOptional: 'Reveal the text, then copy it',
+ value: '12341234HDGRHSGR/adJDJD',
+ copy: true,
+ reveal: true,
+}
+
+withCustomActions.args = {
+ type: 'text',
+ label: 'Custom actions',
+ labelOptional: 'Use any react components',
+ value: 'Value of input',
+ actions: [
+ <Button type="secondary">Copy text</Button>,
+ <Button type="outline" danger>
+ Delete this
+ </Button>,
+ ],
+}
+
+size.args = {
+ type: 'text',
+ label: 'You can change the size of this Input',
+ size: 'tiny',
+}
+
+withBeforeAndAfterLabel.args = {
+ type: 'text',
+ label: 'This is the label',
+ beforeLabel: 'Before label : ',
+ afterLabel: ' : After label',
+}
+
+borderless.args = {
+ type: 'text',
+ label: 'This is the label',
+ borderless: true,
+ size: 'tiny',
+}
+
+date.args = {
+ type: 'date',
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Name',
+ layout: 'vertical',
+}
diff --git a/packages/common2/src/components/Input/Input.tsx b/packages/common2/src/components/Input/Input.tsx
new file mode 100644
index 00000000000..7b0c77a2f35
--- /dev/null
+++ b/packages/common2/src/components/Input/Input.tsx
@@ -0,0 +1,349 @@
+import React, { useEffect, useState } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+import InputErrorIcon from '../../lib/Layout/InputErrorIcon'
+import InputIconContainer from '../../lib/Layout/InputIconContainer'
+import { Button, IconCopy } from '../../../index'
+import { HIDDEN_PLACEHOLDER } from './../../lib/constants'
+
+import defaultTheme from '../../lib/theme/defaultTheme'
+
+import { useFormContext } from '../Form/FormContext'
+import styleHandler from '../../lib/theme/styleHandler'
+
+export interface Props extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
+ copy?: boolean
+ defaultValue?: string | number
+ descriptionText?: string | React.ReactNode | undefined
+ disabled?: boolean
+ error?: string
+ icon?: any
+ inputRef?: string
+ label?: string | React.ReactNode
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: string | React.ReactNode
+ layout?: 'horizontal' | 'vertical'
+ reveal?: boolean
+ actions?: React.ReactNode
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ borderless?: boolean
+ validation?: (x: any) => void
+}
+
+function Input({
+ autoComplete,
+ autoFocus,
+ className,
+ copy,
+ defaultValue,
+ descriptionText,
+ disabled,
+ error,
+ icon,
+ id = '',
+ name = '',
+ inputRef,
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ layout,
+ onChange,
+ onBlur,
+ onFocus,
+ onKeyDown,
+ placeholder,
+ type = 'text',
+ value = undefined,
+ style,
+ reveal = false,
+ actions,
+ size = 'medium',
+ borderless = false,
+ validation,
+ ...props
+}: Props) {
+ const [copyLabel, setCopyLabel] = useState('Copy')
+ const [hidden, setHidden] = useState(true)
+
+ const __styles = styleHandler('input')
+
+ const { formContextOnChange, values, errors, handleBlur, touched, fieldLevelValidation } =
+ useFormContext()
+
+ if (values && !value) value = values[id || name]
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLInputElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id] ? error : undefined
+ }
+
+ function onInputChange(e: React.ChangeEvent<HTMLInputElement>) {
+ // console.log('input event', e)
+ if (onChange) onChange(e)
+ // update form
+ if (formContextOnChange) formContextOnChange(e)
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(e.target.value))
+ }
+
+ useEffect(() => {
+ if (validation) fieldLevelValidation(id, validation(value))
+ }, [])
+
+ // useEffect(() => {
+ // error = touched && touched[id] ? error : undefined
+ // }, [errors, touched])
+
+ function onCopy(value: any) {
+ navigator.clipboard.writeText(value).then(
+ function () {
+ /* clipboard successfully set */
+ setCopyLabel('Copied')
+ setTimeout(function () {
+ setCopyLabel('Copy')
+ }, 3000)
+ },
+ function () {
+ /* clipboard write failed */
+ setCopyLabel('Failed to copy')
+ }
+ )
+ }
+
+ function onReveal() {
+ setHidden(false)
+ }
+
+ let inputClasses = [__styles.base]
+
+ if (error) inputClasses.push(__styles.variants.error)
+ if (!error) inputClasses.push(__styles.variants.standard)
+ if (icon) inputClasses.push(__styles.with_icon)
+ if (size) inputClasses.push(__styles.size[size])
+ if (disabled) inputClasses.push(__styles.disabled)
+
+ return (
+ <FormLayout
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ style={style}
+ size={size}
+ className={className}
+ >
+ <div className={__styles.container}>
+ <input
+ autoComplete={autoComplete}
+ autoFocus={autoFocus}
+ defaultValue={defaultValue}
+ disabled={disabled}
+ id={id}
+ name={name}
+ onChange={onInputChange}
+ onFocus={onFocus ? (event) => onFocus(event) : undefined}
+ onBlur={handleBlurEvent}
+ onKeyDown={onKeyDown ? (event) => onKeyDown(event) : undefined}
+ placeholder={placeholder}
+ ref={inputRef}
+ type={type}
+ value={reveal && hidden ? HIDDEN_PLACEHOLDER : value}
+ className={inputClasses.join(' ')}
+ {...props}
+ />
+ {icon && <InputIconContainer icon={icon} />}
+ {copy || error || actions ? (
+ <div className={__styles.actions_container}>
+ {error && <InputErrorIcon size={size} />}
+ {copy && !(reveal && hidden) ? (
+ <Button size="tiny" type="default" icon={<IconCopy />} onClick={() => onCopy(value)}>
+ {copyLabel}
+ </Button>
+ ) : null}
+ {reveal && hidden ? (
+ <Button size="tiny" type="default" onClick={onReveal}>
+ Reveal
+ </Button>
+ ) : null}
+ {actions && actions}
+ </div>
+ ) : null}
+ </div>
+ </FormLayout>
+ )
+}
+
+export interface TextAreaProps
+ extends Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, 'size'> {
+ descriptionText?: string
+ error?: string
+ icon?: any
+ label?: string
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: string
+ layout?: 'horizontal' | 'vertical'
+ rows?: number
+ limit?: number
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ borderless?: boolean
+ validation?: (x: any) => void
+ copy?: boolean
+ actions?: React.ReactNode
+}
+
+function TextArea({
+ className,
+ descriptionText,
+ disabled,
+ error,
+ icon,
+ id = '',
+ name = '',
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ layout,
+ onChange,
+ onFocus,
+ onBlur,
+ onKeyDown,
+ placeholder,
+ value,
+ style,
+ rows = 4,
+ limit,
+ size,
+ borderless = false,
+ validation,
+ copy = false,
+ actions,
+ ...props
+}: TextAreaProps) {
+ const [charLength, setCharLength] = useState(0)
+ const [copyLabel, setCopyLabel] = useState('Copy')
+
+ function onCopy(value: any) {
+ navigator.clipboard.writeText(value).then(
+ function () {
+ /* clipboard successfully set */
+ setCopyLabel('Copied')
+ setTimeout(function () {
+ setCopyLabel('Copy')
+ }, 3000)
+ },
+ function () {
+ /* clipboard write failed */
+ setCopyLabel('Failed to copy')
+ }
+ )
+ }
+
+ const { formContextOnChange, values, errors, handleBlur, touched, fieldLevelValidation } =
+ useFormContext()
+
+ if (values && !value) value = values[id || name]
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLTextAreaElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id || name] ? error : undefined
+ }
+
+ function onInputChange(e: React.ChangeEvent<HTMLTextAreaElement>) {
+ setCharLength(e.target.value.length)
+ if (onChange) onChange(e)
+ // update form
+ if (formContextOnChange) formContextOnChange(e)
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(e.target.value))
+ }
+
+ useEffect(() => {
+ if (validation) fieldLevelValidation(id, validation(value))
+ }, [])
+
+ const __styles = styleHandler('input')
+
+ let classes = [__styles.base]
+
+ if (error) classes.push(__styles.variants.error)
+ if (!error) classes.push(__styles.variants.standard)
+ if (icon) classes.push(__styles.with_icon)
+ if (size) classes.push(__styles.size[size])
+ if (disabled) classes.push(__styles.disabled)
+
+ return (
+ <FormLayout
+ className={className}
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ style={style}
+ size={size}
+ >
+ <div className={__styles.container}>
+ <textarea
+ disabled={disabled}
+ id={id}
+ name={name}
+ rows={rows}
+ cols={100}
+ placeholder={placeholder}
+ onChange={onInputChange}
+ onFocus={onFocus ? (event) => onFocus(event) : undefined}
+ onBlur={handleBlurEvent}
+ onKeyDown={onKeyDown ? (event) => onKeyDown(event) : undefined}
+ value={value}
+ className={classes.join(' ')}
+ maxLength={limit}
+ {...props}
+ >
+ {value}
+ </textarea>
+ {copy || error || actions ? (
+ <div className={__styles['textarea_actions_container']}>
+ <div className={__styles['textarea_actions_container_items']}>
+ {error && <InputErrorIcon size={size} />}
+ {copy && (
+ <Button
+ size="tiny"
+ type="default"
+ onClick={() => onCopy(value)}
+ icon={<IconCopy />}
+ >
+ {copyLabel}
+ </Button>
+ )}
+ {actions && actions}
+ </div>
+ </div>
+ ) : null}
+ </div>
+ </FormLayout>
+ )
+}
+
+Input.TextArea = TextArea
+
+export default Input
diff --git a/packages/common2/src/components/Input/index.tsx b/packages/common2/src/components/Input/index.tsx
new file mode 100644
index 00000000000..ae5c54e5bfb
--- /dev/null
+++ b/packages/common2/src/components/Input/index.tsx
@@ -0,0 +1 @@
+export { default as Input } from './Input'
diff --git a/packages/common2/src/components/InputNumber/InputNumber.module.css b/packages/common2/src/components/InputNumber/InputNumber.module.css
new file mode 100644
index 00000000000..ef304850cd1
--- /dev/null
+++ b/packages/common2/src/components/InputNumber/InputNumber.module.css
@@ -0,0 +1,134 @@
+.sbui-inputnumber-container {
+ @apply relative;
+}
+
+.sbui-inputnumber {
+ @apply block box-border pl-3 pr-3 py-2 w-full rounded-md shadow-sm text-sm border border-solid transition-all;
+ @apply bg-white text-input-value-light border-input-border-light;
+ @apply focus:ring-input-border-focus-light focus:border-input-border-focus-light focus:outline-none;
+
+ @apply dark:bg-transparent dark:text-input-value-dark dark:border-input-border-dark;
+ @apply dark:focus:border-input-border-focus-dark dark:focus:ring-input-border-focus-dark;
+
+ /* box-shadow: 0 0 0 2px rgba(255, 255, 255, 0); */
+ font-family: inherit;
+ transition: box-shadow 0.3s ease-in-out;
+
+ -moz-appearance: textfield;
+}
+
+.sbui-inputnumber::-webkit-inner-spin-button,
+.sbui-inputnumber::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+ margin: 0;
+}
+
+.sbui-inputnumber:focus {
+ box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.1);
+ outline: 0;
+}
+
+.sbui-inputnumber--error {
+ @apply border-red-500 dark:border-red-500;
+}
+
+.sbui-inputnumber--borderless {
+ @apply border-transparent shadow-none;
+}
+
+.sbui-inputnumber-actions-container {
+ @apply absolute inset-y-0 right-0 pl-3 pr-1 flex items-center;
+}
+
+.sbui-inputnumber-nav {
+ @apply hidden;
+}
+
+.sbui-inputnumber:focus + .sbui-inputnumber-nav {
+ @apply block;
+}
+
+.sbui-inputnumber-button {
+ @apply block box-border pl-3 pr-3 py-2 w-full rounded-md text-sm border border-solid;
+ @apply bg-transparent border-transparent;
+ @apply dark:text-white;
+
+ position: relative;
+ cursor: pointer;
+ width: 21px;
+ text-align: center;
+ color: #333;
+ font-size: 13px;
+ line-height: 1.5;
+ padding: 0;
+ -webkit-transform: translateX(-100%);
+ transform: translateX(-100%);
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ -o-user-select: none;
+ user-select: none;
+}
+
+.sbui-inputnumber-button:active {
+ background: #eaeaea;
+ background-clip: padding-box;
+}
+
+.sbui-inputnumber-button-up {
+ position: absolute;
+ height: 50%;
+ top: 0;
+ border-radius: 0 0.375rem 0 0;
+ line-height: 1.6;
+}
+
+.sbui-inputnumber-button-down {
+ position: absolute;
+ bottom: 0;
+ height: 50%;
+ border-radius: 0 0 0.375rem 0;
+}
+
+/*
+ Input sizes
+ */
+
+.sbui-inputnumber--tiny {
+ @apply px-2.5 py-1.5 text-xs;
+}
+.sbui-inputnumber--small {
+ @apply px-3 py-2 text-sm leading-4;
+}
+.sbui-inputnumber--medium {
+ @apply px-4 py-2 text-sm;
+}
+.sbui-inputnumber--large {
+ @apply px-4 py-2 text-base;
+}
+.sbui-inputnumber--xlarge {
+ @apply px-6 py-3 text-base;
+}
+
+.sbui-inputnumber-nav--tiny {
+ height: 30px;
+}
+.sbui-inputnumber-nav--small {
+ height: 34px;
+}
+.sbui-inputnumber-nav--medium {
+ height: 38px;
+}
+.sbui-inputnumber-nav--large {
+ height: 42px;
+}
+.sbui-inputnumber-nav--xlarge {
+ height: 50px;
+}
+/*
+ Input icon
+ */
+
+.sbui-inputnumber--with-icon {
+ @apply pl-10;
+}
diff --git a/packages/common2/src/components/InputNumber/InputNumber.stories.tsx b/packages/common2/src/components/InputNumber/InputNumber.stories.tsx
new file mode 100644
index 00000000000..bce31a52703
--- /dev/null
+++ b/packages/common2/src/components/InputNumber/InputNumber.stories.tsx
@@ -0,0 +1,61 @@
+import React, { useState, useCallback } from 'react'
+// import { AutoForm } from 'uniforms'
+
+import { InputNumber } from '.'
+import { IconPackage } from './../../index'
+import { Button } from '../Button'
+import { Space } from '../Space'
+
+export default {
+ title: 'Data Input/InputNumber',
+ component: InputNumber,
+}
+
+export const Default = (args: any) => <InputNumber {...args} />
+
+export const ErrorState = (args: any) => <InputNumber {...args} />
+
+export const WithIcon = (args: any) => <InputNumber {...args} />
+
+export const Controlled = (props: any) => {
+ const [state, setState] = useState(() => undefined)
+
+ const onChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
+ // console.log({ e, value: e.currentTarget.value })
+ setState(e.currentTarget.value)
+ }, [])
+
+ return <InputNumber {...props} onChange={onChange} value={state} />
+}
+
+Default.args = {
+ label: 'Max of 100 and min of 0',
+ disabled: false,
+ layout: 'vertical',
+ max: 100,
+ min: 0,
+}
+
+ErrorState.args = {
+ disabled: false,
+ layout: 'vertical',
+ label: 'Input Number with an error message',
+ error: 'Input Number must be in range',
+}
+
+WithIcon.args = {
+ label: 'Max of 100 and min of 0 with a Icon',
+ disabled: false,
+ layout: 'vertical',
+ max: 100,
+ min: 0,
+ icon: <IconPackage />,
+}
+
+Controlled.args = {
+ label: 'Max of 100 and min of 0',
+ disabled: false,
+ layout: 'vertical',
+ max: 100,
+ min: 0,
+}
diff --git a/packages/common2/src/components/InputNumber/InputNumber.tsx b/packages/common2/src/components/InputNumber/InputNumber.tsx
new file mode 100644
index 00000000000..54694ad5cb7
--- /dev/null
+++ b/packages/common2/src/components/InputNumber/InputNumber.tsx
@@ -0,0 +1,195 @@
+import React, { useEffect } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+import InputErrorIcon from '../../lib/Layout/InputErrorIcon'
+// import { IconChevronDown } from '../Icon/icons/IconChevronDown'
+// import { IconChevronUp } from '../Icon/icons/IconChevronUp'
+import InputIconContainer from '../../lib/Layout/InputIconContainer'
+
+import { useFormContext } from '../Form/FormContext'
+import styleHandler from '../../lib/theme/styleHandler'
+
+export interface Props
+ extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
+ defaultValue?: string | number
+ descriptionText?: string | React.ReactNode
+ error?: string
+ icon?: any
+ inputRef?: React.RefObject<HTMLInputElement>
+ label?: string
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: string | React.ReactNode
+ actions?: React.ReactNode
+ layout?: 'horizontal' | 'vertical'
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ validation?: (x: any) => void
+}
+
+function InputNumber({
+ defaultValue,
+ descriptionText,
+ error,
+ icon,
+ inputRef,
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ layout,
+ value = undefined,
+ actions,
+ size = 'medium',
+ validation,
+ id = '',
+ name = '',
+ ...props
+}: Props) {
+ const __styles = styleHandler('inputNumber')
+
+ const {
+ formContextOnChange,
+ values,
+ errors,
+ handleBlur,
+ touched,
+ fieldLevelValidation,
+ } = useFormContext()
+
+ if (values && !value) value = values[id || name]
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLInputElement>) {
+ if (handleBlur) handleBlur(e)
+ if (props.onBlur) props.onBlur(e)
+ }
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id || name] ? error : undefined
+ }
+
+ function onInputChange(e: React.ChangeEvent<HTMLInputElement>) {
+ if (props.onChange) props.onChange(e)
+ // update form
+ if (formContextOnChange) formContextOnChange(e)
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(e.target.value))
+ }
+
+ useEffect(() => {
+ if (validation) fieldLevelValidation(id, validation(value))
+ }, [])
+
+ // const inputClasses = [InputNumberStyles['sbui-inputnumber']]
+ let inputClasses = [__styles.base]
+
+ // const iconUpClasses = [
+ // InputNumberStyles['sbui-inputnumber-button'],
+ // InputNumberStyles['sbui-inputnumber-button-up'],
+ // ]
+
+ // const inputRefCurrent = inputRef
+ // ? inputRef
+ // : React.createRef<HTMLInputElement>()
+
+ // const iconDownClasses = [
+ // InputNumberStyles['sbui-inputnumber-button'],
+ // InputNumberStyles['sbui-inputnumber-button-down'],
+ // ]
+
+ // const iconNavClasses = [InputNumberStyles['sbui-inputnumber-nav']]
+
+ // if (size) {
+ // inputClasses.push(InputNumberStyles[`sbui-inputnumber--${size}`])
+ // iconNavClasses.push(InputNumberStyles[`sbui-inputnumber-nav--${size}`])
+ // }
+
+ if (error) inputClasses.push(__styles.variants.error)
+ if (!error) inputClasses.push(__styles.variants.standard)
+ if (icon) inputClasses.push(__styles.with_icon)
+ if (size) inputClasses.push(__styles.size[size])
+ if (props.disabled) inputClasses.push(__styles.disabled)
+ // if (borderless)
+ // inputClasses.push(InputNumberStyles['sbui-inputnumber--borderless'])
+
+ // const onClickChevronUp = () => {
+ // inputRefCurrent.current?.stepUp()
+ // if (onChange) {
+ // inputRefCurrent.current?.dispatchEvent(
+ // new InputEvent('change', {
+ // view: window,
+ // bubbles: true,
+ // cancelable: false,
+ // })
+ // )
+ // }
+ // }
+
+ // const onClickChevronDown = () => {
+ // inputRefCurrent.current?.stepDown()
+ // if (onChange) {
+ // inputRefCurrent.current?.dispatchEvent(
+ // new InputEvent('change', {
+ // view: window,
+ // bubbles: true,
+ // cancelable: false,
+ // })
+ // )
+ // }
+ // }
+
+ return (
+ <div className={props.className}>
+ <FormLayout
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ style={props.style}
+ size={size}
+ >
+ <div className={__styles.container}>
+ <input
+ id={id}
+ name={name}
+ onChange={onInputChange}
+ onBlur={handleBlurEvent}
+ type={'number'}
+ ref={inputRef}
+ value={value}
+ className={inputClasses.join(' ')}
+ {...props}
+ />
+ {/* <div className={iconNavClasses.join(' ')}>
+ <IconChevronUp
+ className={iconUpClasses.join(' ')}
+ onClick={onClickChevronUp}
+ onMouseDown={(e: React.MouseEvent) => {
+ e.preventDefault()
+ }}
+ />
+ <IconChevronDown
+ className={iconDownClasses.join(' ')}
+ onClick={onClickChevronDown}
+ onMouseDown={(e: React.MouseEvent) => {
+ e.preventDefault()
+ }}
+ />
+ </div> */}
+ {icon && <InputIconContainer icon={icon} />}
+ {error || actions ? (
+ <div className={__styles.actions_container}>
+ {error && <InputErrorIcon size={size} />}
+ {actions && actions}
+ </div>
+ ) : null}
+ </div>
+ </FormLayout>
+ </div>
+ )
+}
+
+export default InputNumber
diff --git a/packages/common2/src/components/InputNumber/index.ts b/packages/common2/src/components/InputNumber/index.ts
new file mode 100644
index 00000000000..a3996279268
--- /dev/null
+++ b/packages/common2/src/components/InputNumber/index.ts
@@ -0,0 +1 @@
+export { default as InputNumber } from './InputNumber'
diff --git a/packages/common2/src/components/InputOld/Input.css b/packages/common2/src/components/InputOld/Input.css
new file mode 100644
index 00000000000..da67b809b72
--- /dev/null
+++ b/packages/common2/src/components/InputOld/Input.css
@@ -0,0 +1,15 @@
+.form-input:disabled {
+ @apply bg-gray-100 cursor-not-allowed;
+}
+
+.form-input--small {
+ @apply text-sm py-1;
+}
+
+.form-input--medium {
+ @apply text-base;
+}
+
+.form-input--error {
+ @apply border-red-500;
+}
diff --git a/packages/common2/src/components/InputOld/Input.js b/packages/common2/src/components/InputOld/Input.js
new file mode 100644
index 00000000000..036f9fe179b
--- /dev/null
+++ b/packages/common2/src/components/InputOld/Input.js
@@ -0,0 +1,43 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+import './Input.css'
+
+export const SIZES = ['small', 'medium']
+
+const Input = ({
+ className = '',
+ type='text',
+ size = 'medium',
+ isError = false,
+ children,
+ ...props
+}) => {
+ const classes = []
+ if (size) {
+ const sizeClasses = {
+ small: 'form-input--small',
+ medium: 'form-input--medium',
+ }
+ classes.push(sizeClasses[size])
+ }
+
+ if (isError) {
+ classes.push('form-input--error')
+ }
+
+ return (
+ <input
+ type={type}
+ className={`form-input border-solid ${classes.join(' ')} ${className}`}
+ {...props}
+ />
+ )
+}
+
+Input.propTypes = {
+ size: PropTypes.oneOf(SIZES),
+ isError: PropTypes.bool,
+ className: PropTypes.string,
+}
+
+export default Input
diff --git a/packages/common2/src/components/InputOld/Input.stories.js b/packages/common2/src/components/InputOld/Input.stories.js
new file mode 100644
index 00000000000..90faec6c033
--- /dev/null
+++ b/packages/common2/src/components/InputOld/Input.stories.js
@@ -0,0 +1,14 @@
+import React from 'react'
+
+import { Input } from '.'
+
+export default {
+ title: 'Archive/Input Old',
+ component: Input,
+}
+
+export const Default = (args) => <Input {...args} />
+Default.args = {
+ placeholder: 'Type text here ...',
+ disabled: false
+}
diff --git a/packages/common2/src/components/InputOld/Input.test.js b/packages/common2/src/components/InputOld/Input.test.js
new file mode 100644
index 00000000000..98fb06abcf9
--- /dev/null
+++ b/packages/common2/src/components/InputOld/Input.test.js
@@ -0,0 +1,20 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Input, { SIZES } from './Input'
+
+describe('#Input', () => {
+ it('should render input correctly', async () => {
+ render(<Input data-testid="form-input" />)
+ expect(screen.queryByTestId('form-input')).toBeInTheDocument()
+ })
+
+ it('should have "form-input--error" class', () => {
+ render(<Input isError data-testid="form-input" />)
+ expect(screen.queryByTestId('form-input')).toHaveClass('form-input border-solid form-input--error')
+ })
+
+ it.each(SIZES)('should have "form-input--%s" class', (size) => {
+ render(<Input size={size} data-testid="form-input" />)
+ expect(screen.queryByTestId('form-input')).toHaveClass(`form-input border-solid form-input--${size}`)
+ })
+})
\ No newline at end of file
diff --git a/packages/common2/src/components/InputOld/index.js b/packages/common2/src/components/InputOld/index.js
new file mode 100644
index 00000000000..ae5c54e5bfb
--- /dev/null
+++ b/packages/common2/src/components/InputOld/index.js
@@ -0,0 +1 @@
+export { default as Input } from './Input'
diff --git a/packages/common2/src/components/Introduction/Introduction.css b/packages/common2/src/components/Introduction/Introduction.css
new file mode 100644
index 00000000000..1f3f0af43a7
--- /dev/null
+++ b/packages/common2/src/components/Introduction/Introduction.css
@@ -0,0 +1,5 @@
+@tailwind 'tailwindcss/base';
+/* Start purging... */
+@tailwind components;
+@tailwind utilities;
+/* Stop purging. */
diff --git a/packages/common2/src/components/Introduction/Introduction.stories.mdx b/packages/common2/src/components/Introduction/Introduction.stories.mdx
new file mode 100644
index 00000000000..ad31a53a00b
--- /dev/null
+++ b/packages/common2/src/components/Introduction/Introduction.stories.mdx
@@ -0,0 +1,217 @@
+import { Meta } from '@storybook/addon-docs/blocks'
+import Code from './assets/code-brackets.svg'
+import Colors from './assets/colors.svg'
+import Comments from './assets/comments.svg'
+import Direction from './assets/direction.svg'
+import Flow from './assets/flow.svg'
+import Plugin from './assets/plugin.svg'
+import Repo from './assets/repo.svg'
+import StackAlt from './assets/stackalt.svg'
+
+import './Introduction.css'
+
+<Meta title="Introduction" />
+
+<style>{`
+ .subheading {
+ --mediumdark: '#999999';
+ font-weight: 900;
+ font-size: 13px;
+ color: #999;
+ letter-spacing: 6px;
+ line-height: 24px;
+ text-transform: uppercase;
+ margin-bottom: 12px;
+ margin-top: 40px;
+ }
+
+ .link-list {
+ display: grid;
+ grid-template-columns: 1fr;
+ grid-template-rows: 1fr 1fr;
+ row-gap: 10px;
+ }
+
+ @media (min-width: 620px) {
+ .link-list {
+ row-gap: 20px;
+ column-gap: 20px;
+ grid-template-columns: 1fr 1fr;
+ }
+ }
+
+ @media all and (-ms-high-contrast:none) {
+ .link-list {
+ display: -ms-grid;
+ -ms-grid-columns: 1fr 1fr;
+ -ms-grid-rows: 1fr 1fr;
+ }
+ }
+
+ .link-item {
+ display: block;
+ padding: 20px 30px 20px 15px;
+ border: 1px solid #00000010;
+ border-radius: 5px;
+ transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
+ color: #333333;
+ display: flex;
+ align-items: flex-start;
+ }
+
+ .link-item:hover {
+ border-color: #1EA7FD50;
+ transform: translate3d(0, -3px, 0);
+ box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
+ }
+
+ .link-item:active {
+ border-color: #1EA7FD;
+ transform: translate3d(0, 0, 0);
+ }
+
+ .link-item strong {
+ font-weight: 700;
+ display: block;
+ margin-bottom: 2px;
+ }
+
+ .link-item img {
+ height: 40px;
+ width: 40px;
+ margin-right: 15px;
+ flex: none;
+ }
+
+ .link-item span {
+ font-size: 14px;
+ line-height: 20px;
+ }
+
+ .tip {
+ display: inline-block;
+ border-radius: 1em;
+ font-size: 11px;
+ line-height: 12px;
+ font-weight: 700;
+ background: #E7FDD8;
+ color: #66BF3C;
+ padding: 4px 12px;
+ margin-right: 10px;
+ vertical-align: top;
+ }
+
+ .tip-wrapper {
+ font-size: 13px;
+ line-height: 20px;
+ margin-top: 40px;
+ margin-bottom: 40px;
+ }
+
+ .tip-wrapper code {
+ font-size: 12px;
+ display: inline-block;
+ }
+
+
+`}</style>
+
+# Welcome to Storybook
+
+Storybook helps you build UI components in isolation from your app's business logic, data, and context.
+That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
+
+Browse example stories now by navigating to them in the sidebar.
+View their code in the `src/storybook-examples` directory to learn how they work.
+We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
+
+<div class="subheading">Configure</div>
+
+<div class="link-list">
+ <a
+ class="link-item"
+ href="https://storybook.js.org/docs/react/api/presets"
+ target="_blank"
+ >
+ <img src={Plugin} alt="plugin" />
+ <span>
+ <strong>Presets for popular tools</strong>
+ Easy setup for TypeScript, SCSS and more.
+ </span>
+ </a>
+ <a
+ class="link-item"
+ href="https://storybook.js.org/docs/react/configure/webpack"
+ target="_blank"
+ >
+ <img src={StackAlt} alt="Build" />
+ <span>
+ <strong>Build configuration</strong>
+ How to customize webpack and Babel
+ </span>
+ </a>
+ <a
+ class="link-item"
+ href="https://storybook.js.org/docs/react/configure/styling-and-css"
+ target="_blank"
+ >
+ <img src={Colors} alt="colors" />
+ <span>
+ <strong>Styling</strong>
+ How to load and configure CSS libraries
+ </span>
+ </a>
+ <a
+ class="link-item"
+ href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
+ target="_blank"
+ >
+ <img src={Flow} alt="flow" />
+ <span>
+ <strong>Data</strong>
+ Providers and mocking for data libraries
+ </span>
+ </a>
+</div>
+
+<div class="subheading">Learn</div>
+
+<div class="link-list">
+ <a class="link-item" href="https://storybook.js.org/docs" target="_blank">
+ <img src={Repo} alt="repo" />
+ <span>
+ <strong>Storybook documentation</strong>
+ Configure, customize, and extend
+ </span>
+ </a>
+ <a class="link-item" href="https://www.learnstorybook.com" target="_blank">
+ <img src={Direction} alt="direction" />
+ <span>
+ <strong>In-depth guides</strong>
+ Best practices from leading teams
+ </span>
+ </a>
+ <a
+ class="link-item"
+ href="https://github.com/storybookjs/storybook"
+ target="_blank"
+ >
+ <img src={Code} alt="code" />
+ <span>
+ <strong>GitHub project</strong>
+ View the source and add issues
+ </span>
+ </a>
+ <a class="link-item" href="https://discord.gg/UUt2PJb" target="_blank">
+ <img src={Comments} alt="comments" />
+ <span>
+ <strong>Discord chat</strong>
+ Chat with maintainers and the community
+ </span>
+ </a>
+</div>
+
+<div class="tip-wrapper">
+ <span class="tip">Tip</span>Edit the Markdown in{' '}
+ <code>src/storybook-examples/welcome.mdx</code>
+</div>
diff --git a/packages/common2/src/components/Introduction/assets/code-brackets.svg b/packages/common2/src/components/Introduction/assets/code-brackets.svg
new file mode 100644
index 00000000000..73de9477600
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/code-brackets.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/code-brackets</title><g id="illustration/code-brackets" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#87E6E5" d="M11.4139325,12 C11.7605938,12 12,12.5059743 12,13.3779712 L12,17.4951758 L6.43502246,23.3839989 C5.85499251,23.9978337 5.85499251,25.0021663 6.43502246,25.6160011 L12,31.5048242 L12,35.6220288 C12,36.4939606 11.7605228,37 11.4139325,37 C11.2725831,37 11.1134406,36.9158987 10.9453839,36.7379973 L0.435022463,25.6160011 C-0.145007488,25.0021663 -0.145007488,23.9978337 0.435022463,23.3839989 L10.9453839,12.2620027 C11.1134051,12.0841663 11.2725831,12 11.4139325,12 Z M36.5860675,12 C36.7274169,12 36.8865594,12.0841013 37.0546161,12.2620027 L47.5649775,23.3839989 C48.1450075,23.9978337 48.1450075,25.0021663 47.5649775,25.6160011 L37.0546161,36.7379973 C36.8865949,36.9158337 36.7274169,37 36.5860675,37 C36.2394062,37 36,36.4940257 36,35.6220288 L36,31.5048242 L41.5649775,25.6160011 C42.1450075,25.0021663 42.1450075,23.9978337 41.5649775,23.3839989 L36,17.4951758 L36,13.3779712 C36,12.5060394 36.2394772,12 36.5860675,12 Z"/><rect id="Rectangle-7-Copy-5" width="35.57" height="4" x="5.009" y="22.662" fill="#A0DB77" rx="2" transform="translate(22.793959, 24.662305) rotate(-75.000000) translate(-22.793959, -24.662305)"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/colors.svg b/packages/common2/src/components/Introduction/assets/colors.svg
new file mode 100644
index 00000000000..17d58d516e1
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/colors.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/colors</title><g id="illustration/colors" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><circle id="Oval" cx="23.763" cy="16.192" r="13.271" fill="#FC521F" opacity=".6"/><circle id="Oval-Copy" cx="15.468" cy="32.308" r="13.271" fill="#66BF3C" opacity=".6"/><path id="Combined-Shape" fill="#FF5F95" d="M15.4683651,19.0362231 C21.5434817,19.0362231 26.6652087,23.1181689 28.2404554,28.6889694 C26.8420385,29.1906678 25.3344184,29.4637769 23.7630101,29.4637769 C17.6878936,29.4637769 12.5661666,25.3818311 10.9909199,19.8110306 C12.3898993,19.3092302 13.8972501,19.0362231 15.4683651,19.0362231 Z"/><circle id="Oval-Copy-2" cx="32.532" cy="32.308" r="13.271" fill="#1EA7FD" opacity=".6"/><path id="Combined-Shape" fill="#87E6E5" d="M24.00025,22.1417324 C26.897967,24.5762286 28.7397972,28.2268506 28.7397972,32.3076552 C28.7397972,36.3884597 26.897967,40.0390817 24.00025,42.4735779 C21.1018087,40.038637 19.2602028,36.3882111 19.2602028,32.3076552 C19.2602028,28.2815316 21.0530043,24.6741393 23.8838362,22.2402492 Z"/><path id="Combined-Shape" fill="#FBD178" d="M32.5316349,19.0362231 C33.9415155,19.0362231 35.3000478,19.2560712 36.5748203,19.6633557 C35.0489179,25.3104816 29.8909911,29.4637769 23.7630101,29.4637769 C22.3527608,29.4637769 20.9938866,29.2438138 19.7188247,28.8363247 C21.2451195,23.1900077 26.403293,19.0362231 32.5316349,19.0362231 Z"/><path id="Combined-Shape" fill="#FFF" d="M24.00025,22.1417324 L24.0124326,22.1519799 C24.1747744,22.288701 24.3337918,22.4292434 24.4893463,22.5734686 L24.3896855,22.4820008 C24.4671836,22.552408 24.5438453,22.6237194 24.619654,22.6959185 L24.4893463,22.5734686 C24.5690639,22.6473803 24.6478719,22.7222591 24.7257519,22.7980864 L24.619654,22.6959185 C24.6907654,22.7636441 24.7611262,22.8321506 24.8307226,22.9014245 L24.7257519,22.7980864 C24.8120661,22.8821258 24.8972403,22.9673303 24.981249,23.0536745 L24.8307226,22.9014245 C24.9073006,22.9776475 24.9829531,23.0547994 25.0576619,23.132862 L25.057852,23.1330605 C25.3140855,23.4007967 25.559391,23.679459 25.7928375,23.9681079 L25.7230574,23.8825538 C25.7985998,23.9743942 25.8729325,24.0672672 25.9460311,24.1611484 L25.7928375,23.9681079 C25.8624256,24.0541514 25.93096,24.1410823 25.998421,24.228881 L25.9460311,24.1611484 C26.0074362,24.2400115 26.0679704,24.319586 26.1276194,24.3998576 L25.998421,24.228881 C26.0663495,24.317288 26.1331896,24.4065749 26.1989214,24.4967216 L26.1276194,24.3998576 C26.204848,24.5037867 26.2805926,24.6088841 26.3548219,24.7151187 L26.1989214,24.4967216 C26.2678555,24.59126 26.3355706,24.6867441 26.4020436,24.7831507 L26.3548219,24.7151187 C26.4130013,24.798383 26.4702498,24.8823459 26.5265523,24.9669921 L26.4020436,24.7831507 C26.4678788,24.8786322 26.5324956,24.9750187 26.5958716,25.0722875 L26.5959296,25.0723765 C26.736338,25.2878741 26.870709,25.5077955 26.9987399,25.7318073 L26.9410662,25.6319089 C26.9973106,25.7283602 27.0523736,25.8255849 27.1062352,25.9235633 L26.9987399,25.7318073 C27.0539848,25.8284676 27.1080492,25.9258895 27.1609136,26.0240532 L27.1606656,26.0235927 C27.2696676,26.2259984 27.3733426,26.4310837 27.4717677,26.6391379 L27.4715275,26.6386302 C27.5541941,26.8133735 27.6329386,26.9896914 27.7079006,27.1679911 C27.7630163,27.299081 27.8161443,27.431391 27.8671831,27.5647345 L27.804312,27.4036517 C27.8391482,27.4912057 27.8730792,27.5792182 27.9060936,27.6676774 L27.8671831,27.5647345 C27.906613,27.6677486 27.9447959,27.7713796 27.9817136,27.8756091 L27.9060936,27.6676774 C27.946474,27.7758735 27.9854831,27.884738 28.0230997,27.9942498 L27.9817136,27.8756091 C28.0144978,27.9681688 28.0462842,28.0612004 28.0770597,28.1546911 L28.0230997,27.9942498 C28.0618265,28.1069941 28.0990774,28.2204244 28.1348294,28.3345177 L28.0770597,28.1546911 C28.1112208,28.2584663 28.1441365,28.3628071 28.175789,28.4676958 L28.1756797,28.4673338 L28.2408136,28.6893554 C28.2284694,28.6937793 28.2161167,28.6981854 28.2037557,28.7025737 L28.2404554,28.6889694 C27.9517707,28.7925384 27.6584322,28.8863659 27.3608394,28.97006 L27.3609965,28.9702524 C27.0695498,29.0519815 26.7741843,29.1241944 26.4751174,29.1863314 L26.5385665,29.1730829 C26.3901218,29.2046704 26.2407589,29.2337757 26.0905233,29.2603535 L26.4751174,29.1863314 C26.3367402,29.215082 26.1975707,29.2416755 26.0576458,29.2660754 L26.0905233,29.2603535 C25.9366833,29.2875689 25.7819282,29.312134 25.6263069,29.334 L26.0576458,29.2660754 C25.9017815,29.2932549 25.7449801,29.3177127 25.5872928,29.3393985 L25.6263069,29.334 C25.493366,29.3526793 25.3597929,29.3693888 25.2256182,29.3840982 L25.5872928,29.3393985 C25.4326976,29.360659 25.277251,29.3792552 25.1210012,29.3951396 L25.2256182,29.3840982 C25.0570566,29.4025774 24.8875455,29.4178998 24.7171453,29.4300052 L25.1210012,29.3951396 C24.9661341,29.4108835 24.810478,29.4239634 24.6540799,29.4343333 L24.7171453,29.4300052 C24.5612618,29.4410793 24.4046342,29.4494611 24.2473088,29.4551045 L24.6540799,29.4343333 C24.5098436,29.4438967 24.3649762,29.4511552 24.2195147,29.4560724 L24.2473088,29.4551045 C24.0865878,29.4608697 23.9251385,29.4637769 23.7630101,29.4637769 L23.3130142,29.4562912 C23.2993121,29.4558347 23.2856153,29.4553574 23.2719237,29.4548593 C22.9596275,29.4434959 22.6502324,29.4213577 22.3439491,29.3888006 L22.3886972,29.3934808 C22.2468147,29.3788837 22.105595,29.3620515 21.9650736,29.3430199 L22.3439491,29.3888006 C22.1914515,29.3725905 22.0397254,29.3537976 21.8888152,29.3324664 L21.9650736,29.3430199 C21.8025527,29.3210088 21.6409661,29.2960557 21.4803691,29.2682161 L21.8888152,29.3324664 C21.7352182,29.3107553 21.5824665,29.2864149 21.4306071,29.2594919 L21.4803691,29.2682161 C21.3506285,29.2457255 21.2215338,29.221351 21.0931142,29.1951218 L21.4306071,29.2594919 C21.2772401,29.2323016 21.1247833,29.2024774 20.973285,29.1700676 L21.0931142,29.1951218 C20.9267071,29.1611338 20.7614335,29.1240315 20.5973571,29.0838786 L20.973285,29.1700676 C20.825476,29.138447 20.6785795,29.1043653 20.5326403,29.0678674 L20.5973571,29.0838786 C20.4596684,29.0501832 20.3228227,29.0143396 20.1868576,28.9763851 L20.5326403,29.0678674 C20.3930822,29.0329653 20.2543997,28.9958536 20.1166319,28.9565718 L20.1169729,28.956669 L19.7188247,28.8363247 L19.7188247,28.8363247 L19.7880988,28.5894836 C19.8166627,28.4914193 19.8463277,28.3938241 19.8770797,28.2967124 L19.8480041,28.389868 C19.888904,28.2573207 19.931824,28.1256601 19.9767281,27.9949221 L19.8770797,28.2967124 C19.9117081,28.1873592 19.9477148,28.0786191 19.9850793,27.9705124 L19.9853117,27.9700125 C20.1152243,27.5939638 20.2618428,27.2250995 20.4240731,26.8647811 L20.345088,27.0439391 C20.3899401,26.9402428 20.4360767,26.8372321 20.4834778,26.7349269 L20.4240731,26.8647811 C20.461061,26.78263 20.4988604,26.7009231 20.5374612,26.6196707 L20.4834778,26.7349269 C20.5344734,26.6248636 20.5869326,26.515617 20.6408302,26.4072119 L20.5374612,26.6196707 C20.5871241,26.5151329 20.6381134,26.4113474 20.6904074,26.308336 L20.6408302,26.4072119 C20.681671,26.3250682 20.7233378,26.2434076 20.7658197,26.1622412 L20.7658807,26.1619302 C20.8435258,26.013775 20.923959,25.866962 21.0070529,25.7218685 C21.2050227,25.3759931 21.4182299,25.0398756 21.6456589,24.7144306 L21.5286537,24.8848257 C21.5876708,24.7975143 21.6476996,24.7109431 21.7087233,24.6251289 L21.6456589,24.7144306 C21.6993229,24.6376387 21.7537788,24.5614411 21.8090146,24.4858495 L21.7087233,24.6251289 C21.7826333,24.5211934 21.8580028,24.4183683 21.9348018,24.3166836 L21.8090146,24.4858495 C21.8722751,24.3992759 21.9365587,24.3134973 22.0018475,24.2285315 L22.0016895,24.2288802 C22.3179789,23.8171232 22.6576794,23.4247699 23.0189296,23.053491 L22.8296293,23.2521975 C22.9033796,23.1732135 22.9780829,23.095131 23.0537208,23.0179683 L23.0189296,23.053491 C23.083529,22.9870982 23.1488175,22.9213793 23.2147836,22.8563459 L23.0537208,23.0179683 C23.131055,22.9390752 23.2093662,22.8611436 23.2886348,22.7841931 L23.2147836,22.8563459 C23.2821211,22.7899605 23.3501645,22.7242893 23.4189017,22.6593447 L23.2886348,22.7841931 C23.3852399,22.6904132 23.4832671,22.5980904 23.582681,22.5072602 L23.4189017,22.6593447 C23.4912637,22.5909753 23.5643945,22.523411 23.6382797,22.4566663 L23.582681,22.5072602 C23.6715916,22.4260264 23.7616113,22.3459865 23.8527148,22.2671658 L23.8525967,22.2671923 C23.8915062,22.2336043 23.9304941,22.2002638 23.9696766,22.1671464 L24.00025,22.1417324 Z"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/comments.svg b/packages/common2/src/components/Introduction/assets/comments.svg
new file mode 100644
index 00000000000..6493a139f52
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/comments.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/comments</title><g id="illustration/comments" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Path" fill="#96D07C" d="M2.52730803,17.9196415 C2.44329744,17.9745167 2.36370847,18.000488 2.29303375,18.000488 C2.1197031,18.000488 2,17.8443588 2,17.5752855 L2,4 C2,1.790861 3.790861,3.23296945e-13 6,3.23296945e-13 L33.9995117,3.23296945e-13 C36.2086507,3.23296945e-13 37.9995117,1.790861 37.9995117,4 L37.9995117,9.999512 C37.9995117,12.208651 36.2086507,13.999512 33.9995117,13.999512 L8,13.999512 C7.83499225,13.999512 7.6723181,13.9895206 7.51254954,13.9701099 L2.52730803,17.9196415 Z"/><path id="Path" fill="#73E1E0" d="M7.51066,44.9703679 L2.52730803,47.9186655 C2.44329744,47.9735407 2.36370847,47.999512 2.29303375,47.999512 C2.1197031,47.999512 2,47.8433828 2,47.5743095 L2,35 C2,32.790861 3.790861,31 6,31 L26,31 C28.209139,31 30,32.790861 30,35 L30,41 C30,43.209139 28.209139,45 26,45 L8,45 C7.8343417,45 7.67103544,44.9899297 7.51066,44.9703679 Z"/><path id="Path" fill="#FFD476" d="M46,19.5 L46,33.0747975 C46,33.3438708 45.8802969,33.5 45.7069663,33.5 C45.6362915,33.5 45.5567026,33.4740287 45.472692,33.4191535 L40.4887103,29.4704446 C40.3285371,29.489956 40.1654415,29.5 40,29.5 L18,29.5 C15.790861,29.5 14,27.709139 14,25.5 L14,19.5 C14,17.290861 15.790861,15.5 18,15.5 L42,15.5 C44.209139,15.5 46,17.290861 46,19.5 Z"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/direction.svg b/packages/common2/src/components/Introduction/assets/direction.svg
new file mode 100644
index 00000000000..65676ac2722
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/direction.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/direction</title><g id="illustration/direction" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#FFD476" d="M23.4917015,33.6030641 L2.93840258,31.4321033 C2.38917316,31.3740904 1.99096346,30.8818233 2.04897631,30.3325939 C2.0747515,30.0885705 2.18934861,29.8625419 2.37095722,29.6975265 L34.2609105,0.721285325 C34.6696614,0.349881049 35.3021022,0.38015648 35.6735064,0.788907393 C35.9232621,1.06377731 36.0001133,1.45442096 35.8730901,1.80341447 L24.5364357,32.9506164 C24.3793473,33.3822133 23.9484565,33.6513092 23.4917015,33.6030641 L23.4917015,33.6030641 Z"/><path id="Combined-Shape-Copy" fill="#FFC445" d="M24.3163597,33.2881029 C24.0306575,33.0138462 23.9337246,32.5968232 24.069176,32.2246735 L35.091923,1.9399251 C35.2266075,1.56988243 35.5659249,1.31333613 35.9586669,1.28460955 C36.5094802,1.24432106 36.9886628,1.65818318 37.0289513,2.20899647 L40.2437557,46.1609256 C40.2644355,46.4436546 40.1641446,46.7218752 39.9678293,46.9263833 C39.5853672,47.3248067 38.9523344,47.3377458 38.5539111,46.9552837 L24.3163597,33.2881029 L24.3163597,33.2881029 Z"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/flow.svg b/packages/common2/src/components/Introduction/assets/flow.svg
new file mode 100644
index 00000000000..8ac27db403c
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/flow.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/flow</title><g id="illustration/flow" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#79C9FC" fill-rule="nonzero" d="M30,29 C32.7614237,29 35,26.7614237 35,24 C35,14.6111593 27.3888407,7 18,7 C8.61115925,7 1,14.6111593 1,24 C1,33.3888407 8.61115925,41 18,41 C19.3333404,41 20.6447683,40.8466238 21.9154603,40.5471706 C19.5096374,39.3319645 17.5510566,37.8612875 16.0456579,36.1314815 C14.1063138,33.9030427 12.769443,31.0725999 12.0293806,27.6556449 C11.360469,26.565281 11,25.3082308 11,24 C11,20.1340068 14.1340068,17 18,17 C21.8659932,17 25,20.1340068 25,24 C25,26.125 27.7040312,29 30,29 Z"/><path id="Combined-Shape-Copy" fill="#FFC445" fill-rule="nonzero" d="M42,29 C44.7614237,29 47,26.7614237 47,24 C47,14.6111593 39.3888407,7 30,7 C20.6111593,7 13,14.6111593 13,24 C13,33.3888407 20.6111593,41 30,41 C31.3333404,41 32.6447683,40.8466238 33.9154603,40.5471706 C31.5096374,39.3319645 29.4051056,37.9781963 28.0456579,36.1314815 C26.0625,33.4375 23,27.1875 23,24 C23,20.1340068 26.1340068,17 30,17 C33.8659932,17 37,20.1340068 37,24 C37.02301,26.3435241 39.7040312,29 42,29 Z" transform="translate(30.000000, 24.000000) scale(-1, -1) translate(-30.000000, -24.000000)"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/plugin.svg b/packages/common2/src/components/Introduction/assets/plugin.svg
new file mode 100644
index 00000000000..29e5c690c0a
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/plugin.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/plugin</title><g id="illustration/plugin" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#79C9FC" d="M26,15.3994248 C26,15.4091303 26,15.4188459 26,15.4285714 L26,21.4694881 C25.8463595,21.4969567 25.6941676,21.51275 25.5873784,21.51275 C25.4974117,21.51275 25.4230979,21.4768034 25.377756,21.4206259 L25.2660784,21.2822603 L25.1317423,21.1657666 C24.2436317,20.3956144 23.100098,19.9633214 21.895551,19.9633214 C19.2039137,19.9633214 17,22.1075558 17,24.7804643 C17,27.4533728 19.2039137,29.5976071 21.895551,29.5976071 C23.1972122,29.5976071 24.3149423,29.2878193 25.1231445,28.3613697 C25.4542273,27.9818463 25.568273,27.9073214 25.5873784,27.9073214 C25.681532,27.9073214 25.8352452,27.9239643 26,27.9524591 L26,32.5714286 C26,32.5811541 26,32.5908697 26,32.6005752 L26,33 C26,35.209139 24.209139,37 22,37 L4,37 C1.790861,37 0,35.209139 0,33 L0,15 C0,12.790861 1.790861,11 4,11 L22,11 C24.209139,11 26,12.790861 26,15 L26,15.3994248 Z"/><path id="Path" fill="#87E6E5" d="M27.9998779,32.5714286 C27.9998779,33.3604068 28.6572726,34 29.4682101,34 L46.5315458,34 C47.3424832,34 47.9998779,33.3604068 47.9998779,32.5714286 L47.9998779,15.4285714 C47.9998779,14.6395932 47.3424832,14 46.5315458,14 L29.4682101,14 C28.6572726,14 27.9998779,14.6395932 27.9998779,15.4285714 L27.9998779,21.8355216 C27.9334367,22.2650514 27.8567585,22.6454496 27.746391,22.8084643 C27.4245309,23.2838571 26.2402709,23.51275 25.5873784,23.51275 C24.8705773,23.51275 24.2322714,23.1857725 23.8214379,22.6767605 C23.3096996,22.2329909 22.6349941,21.9633214 21.895551,21.9633214 C20.2963823,21.9633214 19,23.2245992 19,24.7804643 C19,26.3363293 20.2963823,27.5976071 21.895551,27.5976071 C22.5398535,27.5976071 23.2399343,27.477727 23.6160247,27.0466112 C24.1396029,26.4464286 24.7367044,25.9073214 25.5873784,25.9073214 C26.2402709,25.9073214 27.5912951,26.1766031 27.8226692,26.6116071 C27.8819199,26.7230038 27.9403239,26.921677 27.9998779,27.1556219 L27.9998779,32.5714286 Z"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/repo.svg b/packages/common2/src/components/Introduction/assets/repo.svg
new file mode 100644
index 00000000000..f386ee902c1
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/repo.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/repo</title><g id="illustration/repo" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Rectangle-62-Copy" fill="#B7F0EF" d="M27.2217723,9.04506931 L41.2217723,6.2682098 C43.3886973,5.83840648 45.4937616,7.2466219 45.9235649,9.41354696 C45.9743993,9.66983721 46,9.93049166 46,10.1917747 L46,32.581381 C46,34.4904961 44.650862,36.1335143 42.7782277,36.5049459 L28.7782277,39.2818054 C26.6113027,39.7116087 24.5062384,38.3033933 24.0764351,36.1364682 C24.0256007,35.880178 24,35.6195235 24,35.3582405 L24,12.9686342 C24,11.0595191 25.349138,9.4165009 27.2217723,9.04506931 Z" opacity=".7"/><path id="Combined-Shape" fill="#87E6E5" d="M6.77822775,6.2682098 L20.7782277,9.04506931 C22.650862,9.4165009 24,11.0595191 24,12.9686342 L24,35.3582405 C24,37.5673795 22.209139,39.3582405 20,39.3582405 C19.738717,39.3582405 19.4780625,39.3326398 19.2217723,39.2818054 L5.22177225,36.5049459 C3.34913798,36.1335143 2,34.4904961 2,32.581381 L2,10.1917747 C2,7.98263571 3.790861,6.19177471 6,6.19177471 C6.26128305,6.19177471 6.5219375,6.21737537 6.77822775,6.2682098 Z"/><path id="Rectangle-63-Copy-2" fill="#61C1FD" d="M22,10 C23.1666667,10.2291667 24.0179036,10.625 24.5537109,11.1875 C25.0895182,11.75 25.5716146,12.875 26,14.5625 C26,29.3020833 26,37.5208333 26,39.21875 C26,40.9166667 26.4241536,42.9583333 27.2724609,45.34375 L24.5537109,41.875 L22.9824219,45.34375 C22.327474,43.1979167 22,41.2291667 22,39.4375 C22,37.6458333 22,27.8333333 22,10 Z"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Introduction/assets/stackalt.svg b/packages/common2/src/components/Introduction/assets/stackalt.svg
new file mode 100644
index 00000000000..9b7ad274350
--- /dev/null
+++ b/packages/common2/src/components/Introduction/assets/stackalt.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/stackalt</title><g id="illustration/stackalt" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#FFAE00" d="M23.8628277,0 L23.8628277,48 L3.32291648,36.2491883 L3.32155653,11.9499781 L23.8628277,0 Z M23.8670509,0 L44.408322,11.9499781 L44.4069621,36.2491883 L23.8670509,48 L23.8670509,0 Z" opacity=".196"/><path id="Rectangle-46-Copy-3" fill="#66BF3C" d="M15.8232279,19.1155258 L24.7368455,21.4714881 C29.6053842,22.7582937 33.4077423,26.5606518 34.694548,31.4291905 L37.0505103,40.3428082 C37.6150232,42.4786032 36.3412474,44.6676353 34.2054524,45.2321482 C33.5569474,45.4035549 32.87575,45.4091235 32.2245294,45.2483418 L23.3459013,43.0562718 C18.2976962,41.809906 14.3561301,37.8683399 13.1097642,32.8201348 L10.9176943,23.9415066 C10.3881737,21.7967682 11.6975664,19.6288529 13.8423049,19.0993322 C14.4935255,18.9385505 15.1747229,18.9441191 15.8232279,19.1155258 Z" opacity=".5" transform="translate(23.999997, 32.166058) rotate(-45.000000) translate(-23.999997, -32.166058)"/><path id="Rectangle-46-Copy-2" fill="#FFAE00" d="M15.8232279,11.2216893 L24.7368455,13.5776516 C29.6053842,14.8644572 33.4077423,18.6668153 34.694548,23.5353541 L37.0505103,32.4489717 C37.6150232,34.5847667 36.3412474,36.7737988 34.2054524,37.3383117 C33.5569474,37.5097184 32.87575,37.515287 32.2245294,37.3545053 L23.3459013,35.1624353 C18.2976962,33.9160695 14.3561301,29.9745034 13.1097642,24.9262983 L10.9176943,16.0476701 C10.3881737,13.9029317 11.6975664,11.7350164 13.8423049,11.2054957 C14.4935255,11.044714 15.1747229,11.0502826 15.8232279,11.2216893 Z" opacity=".5" transform="translate(23.999997, 24.272222) rotate(-45.000000) translate(-23.999997, -24.272222)"/><path id="Rectangle-46-Copy" fill="#FC521F" d="M15.8232279,3.32785281 L24.7368455,5.68381509 C29.6053842,6.97062075 33.4077423,10.7729788 34.694548,15.6415176 L37.0505103,24.5551352 C37.6150232,26.6909302 36.3412474,28.8799623 34.2054524,29.4444752 C33.5569474,29.6158819 32.87575,29.6214505 32.2245294,29.4606688 L23.3459013,27.2685988 C18.2976962,26.022233 14.3561301,22.0806669 13.1097642,17.0324618 L10.9176943,8.15383364 C10.3881737,6.00909519 11.6975664,3.84117987 13.8423049,3.31165925 C14.4935255,3.15087753 15.1747229,3.15644615 15.8232279,3.32785281 Z" opacity=".5" transform="translate(23.999997, 16.378385) rotate(-45.000000) translate(-23.999997, -16.378385)"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/components/Listbox/Listbox2.tsx b/packages/common2/src/components/Listbox/Listbox2.tsx
new file mode 100644
index 00000000000..5366c6062b5
--- /dev/null
+++ b/packages/common2/src/components/Listbox/Listbox2.tsx
@@ -0,0 +1,344 @@
+/* This example requires Tailwind CSS v2.0+ */
+import React, { useEffect, useRef, useState } from 'react'
+import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+
+import InputIconContainer from '../../lib/Layout/InputIconContainer'
+import InputErrorIcon from '../../lib/Layout/InputErrorIcon'
+import { IconCheck } from '../Icon/icons/IconCheck'
+
+import { useFormContext } from '../Form/FormContext'
+import { flatten } from 'lodash'
+
+import { SelectContext } from './SelectContext'
+
+import styleHandler from '../../lib/theme/styleHandler'
+
+function classNames(...classes: any) {
+ return classes.filter(Boolean).join(' ')
+}
+
+export interface Props
+ extends Omit<React.InputHTMLAttributes<HTMLButtonElement>, 'size'> {
+ className?: string
+ children: React.ReactNode
+ descriptionText?: string
+ error?: string
+ icon?: any
+ id?: string
+ label?: string
+ labelOptional?: string
+ layout?: 'horizontal' | 'vertical'
+ style?: React.CSSProperties
+ value?: any
+ reveal?: boolean
+ actions?: React.ReactNode
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ defaultValue?: any
+ borderless?: boolean
+ validation?: (x: any) => void
+ optionsWidth?: number
+ // override the button prop for onchange we only return a single value
+ // rather than a ChangeEvent<HTMLButtonElement>
+ onChange?: (x: any) => void
+}
+
+function Listbox({
+ children,
+ className,
+ descriptionText,
+ error,
+ icon,
+ id = '',
+ name = '',
+ label,
+ labelOptional,
+ layout,
+ value = undefined,
+ onChange,
+ onFocus,
+ onBlur,
+ style,
+ size = 'medium',
+ defaultValue,
+ borderless = false,
+ validation,
+ disabled,
+ optionsWidth,
+}: Props) {
+ const [selected, setSelected] = useState(undefined)
+ const [selectedNode, setSelectedNode] = useState<any>({})
+
+ const __styles = styleHandler('listbox')
+
+ const triggerRef = useRef<HTMLButtonElement>(null)
+
+ const {
+ formContextOnChange,
+ values,
+ errors,
+ handleBlur,
+ touched,
+ fieldLevelValidation,
+ } = useFormContext()
+
+ if (values && !value) {
+ defaultValue = values[id || name]
+ }
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLButtonElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id || name] ? error : undefined
+ }
+
+ useEffect(() => {
+ if (value) {
+ setSelected(value)
+ }
+ }, [value])
+
+ useEffect(() => {
+ // handle listbox options width size
+
+ function handleResize() {
+ // Set window width/height to state
+
+ document.documentElement.style.setProperty(
+ '--width-listbox',
+ `${optionsWidth ? optionsWidth : triggerRef.current?.offsetWidth}px`
+ )
+ }
+
+ // Add event listener
+ window.addEventListener('resize', handleResize)
+
+ // Call handler right away so state gets updated with initial window size
+ handleResize()
+
+ // Remove event listener on cleanup
+ return () => window.removeEventListener('resize', handleResize)
+ }, [])
+
+ useEffect(() => {
+ const data: any = children
+ const content: any = flatten(data)
+
+ function findNode(_value: any) {
+ return content.find((node: any) => node.props.value === _value)
+ }
+
+ /*
+ * value prop overrides everything
+ */
+ if (value) {
+ setSelected(value)
+ const node: any = findNode(value)
+ setSelectedNode(node?.props ? node.props : undefined)
+ return
+ }
+
+ /*
+ * if no value prop, then use selected state
+ */
+ if (selected) {
+ const node: any = findNode(selected)
+ setSelectedNode(node?.props ? node.props : undefined)
+ return
+ } else if (defaultValue) {
+ setSelected(defaultValue)
+ const node: any = findNode(selected)
+ setSelectedNode(node?.props ? node.props : undefined)
+ return
+ } else {
+ /*
+ * if no selected value (including a `defaultvalue`), then use first child
+ */
+ setSelectedNode(content[0].props)
+ return
+ }
+ }, [selected])
+
+ function handleOnChange(value: any) {
+ if (onChange) onChange(value)
+ setSelected(value)
+
+ /*
+ * Create change event for formik
+ * formik expects an input change event
+ */
+ let event: any = {}
+ event.target = {
+ type: 'select',
+ name: name,
+ id: id,
+ value: value,
+ checked: undefined,
+ // outerHTML: undefined,
+ // options: undefined,
+ // multiple: undefined,
+ }
+
+ // update form
+ // Create a new 'change' event
+ if (formContextOnChange) formContextOnChange(event)
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(value))
+ }
+
+ let selectClasses = [__styles.container, __styles.base]
+ if (error) selectClasses.push(__styles.variants.error)
+ if (!error) selectClasses.push(__styles.variants.standard)
+ // if (icon) selectClasses.push(SelectStyles['sbui-listbox--with-icon'])
+ if (icon) selectClasses.push(__styles.with_icon)
+ // if (size) selectClasses.push(SelectStyles[`sbui-listbox--${size}`])
+ if (size) selectClasses.push(__styles.size[size])
+ // if (borderless) selectClasses.push(SelectStyles['sbui-listbox--borderless'])
+ if (disabled) selectClasses.push(__styles.disabled)
+
+ return (
+ <FormLayout
+ label={label}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ className={className}
+ style={style}
+ size={size}
+ >
+ <DropdownMenuPrimitive.Root>
+ <DropdownMenuPrimitive.Trigger asChild disabled={disabled}>
+ <button
+ ref={triggerRef}
+ className={selectClasses.join(' ')}
+ onBlur={handleBlurEvent}
+ onFocus={onFocus}
+ name={name}
+ id={id}
+ >
+ <span className={__styles.addOnBefore}>
+ {icon && <InputIconContainer icon={icon} />}
+ {selectedNode?.addOnBefore && <selectedNode.addOnBefore />}
+ <span className={__styles.label}>{selectedNode?.label}</span>
+ </span>
+ <span className={__styles.chevron_container}>
+ <svg
+ className={__styles.chevron}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ fillRule="evenodd"
+ d="M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z"
+ clipRule="evenodd"
+ />
+ </svg>
+ </span>
+ {error && (
+ <div className={__styles.actions_container}>
+ {error && <InputErrorIcon size={size} />}
+ </div>
+ )}
+ </button>
+ </DropdownMenuPrimitive.Trigger>
+ <DropdownMenuPrimitive.Content
+ sideOffset={6}
+ loop={true}
+ side={'bottom'}
+ align="center"
+ className={__styles.options_container}
+ >
+ <div>
+ <SelectContext.Provider
+ value={{ onChange: handleOnChange, selected }}
+ >
+ {children}
+ </SelectContext.Provider>
+ </div>
+ </DropdownMenuPrimitive.Content>
+ </DropdownMenuPrimitive.Root>
+ </FormLayout>
+ )
+}
+
+interface OptionProps {
+ id?: string
+ value: any
+ label: string
+ disabled?: boolean
+ children?: React.ReactNode
+ className?: string
+ addOnBefore?: ({ active, selected }: any) => React.ReactNode
+}
+
+type addOnBefore = {
+ selected: boolean
+ active: boolean
+}
+
+function SelectOption({
+ id,
+ value,
+ label,
+ disabled = false,
+ children,
+ className = '',
+ addOnBefore,
+}: OptionProps) {
+ const __styles = styleHandler('listbox')
+
+ return (
+ <SelectContext.Consumer>
+ {({ onChange, selected }) => {
+ const active = selected === value ? true : false
+
+ return (
+ <DropdownMenuPrimitive.Item
+ key={id}
+ className={`${classNames(
+ __styles.option,
+ active ? __styles.option_active : ' ',
+ disabled ? __styles.option_disabled : ' '
+ )} ${className}`}
+ onSelect={() => (!disabled ? onChange(value) : {})}
+ >
+ <div className={__styles.option_inner}>
+ {addOnBefore && addOnBefore({ active, selected })}
+ <span>
+ {typeof children === 'function'
+ ? children({ active, selected })
+ : children}
+ </span>
+ </div>
+
+ {active ? (
+ <span
+ className={classNames(
+ __styles.option_check,
+ active ? __styles.option_check_active : ''
+ )}
+ >
+ <IconCheck
+ className={__styles.option_check_icon}
+ aria-hidden="true"
+ />
+ </span>
+ ) : null}
+ </DropdownMenuPrimitive.Item>
+ )
+ }}
+ </SelectContext.Consumer>
+ )
+}
+
+Listbox.Option = SelectOption
+
+export default Listbox
diff --git a/packages/common2/src/components/Listbox/SelectContext.tsx b/packages/common2/src/components/Listbox/SelectContext.tsx
new file mode 100644
index 00000000000..83a3621d376
--- /dev/null
+++ b/packages/common2/src/components/Listbox/SelectContext.tsx
@@ -0,0 +1,8 @@
+import { createContext } from 'react'
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+export const SelectContext = createContext({
+ onChange: (e: any) => {},
+ selected: undefined,
+})
diff --git a/packages/common2/src/components/Listbox/SelectStyled.module.css b/packages/common2/src/components/Listbox/SelectStyled.module.css
new file mode 100644
index 00000000000..e2cc7c937ff
--- /dev/null
+++ b/packages/common2/src/components/Listbox/SelectStyled.module.css
@@ -0,0 +1,145 @@
+/* .sbui-listbox-container {
+ @apply relative;
+} */
+
+/* .sbui-listbox {
+ @apply block w-full bg-white pl-3 pr-10 py-2 text-sm rounded-md transition-all;
+ @apply text-gray-700 border border-solid border-gray-300;
+ @apply cursor-default focus:outline-none focus:ring-1 focus:ring-brand-600 focus:border-brand-600;
+ @apply dark:bg-transparent dark:text-white dark:border-gray-500;
+ @apply dark:focus:border-brand-500;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ text-indent: 1px;
+ text-overflow: '';
+ box-shadow: 0 0 0 2px rgba(255, 255, 255, 0);
+ transition: box-shadow 0.3s ease-in-out; */
+
+/* // temporary fix
+ //
+ // temporary fix for supabase apps
+ // tailwind @base styles adds a dropdown chevron
+ // using background image as default
+ // */
+/* background-image: none;
+} */
+
+.sbui-listbox:focus {
+ box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.1);
+}
+
+.sbui-listbox--error {
+ @apply border-red-500 dark:border-red-500;
+}
+
+.sbui-listbox--borderless {
+ @apply border-transparent shadow-none;
+}
+
+/*
+ Select sizes
+*/
+
+/* .sbui-listbox--tiny {
+ @apply px-2.5 py-1.5 text-xs;
+}
+.sbui-listbox--small {
+ @apply px-3 py-2 text-sm leading-4;
+}
+.sbui-listbox--medium {
+ @apply px-4 py-2 text-sm;
+}
+.sbui-listbox--large {
+ @apply px-4 py-2 text-base;
+}
+.sbui-listbox--xlarge {
+ @apply px-6 py-3 text-base;
+} */
+
+/* .sbui-listbox-actions-container {
+ @apply absolute inset-y-0 right-0 pl-3 pr-1 mr-5 flex items-center;
+} */
+
+/*
+ Select icon
+*/
+
+/* .sbui-listbox--with-icon {
+ @apply pl-10;
+} */
+
+/*
+ Add on before
+*/
+
+/* .sbui-listbox-addonbefore {
+ @apply w-full flex flex-row items-center space-x-3;
+} */
+
+.sbui-listbox-label {
+ @apply truncate;
+}
+
+/*
+ Select Chevron
+*/
+
+.sbui-listbox-chevron-container {
+ @apply absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none;
+}
+
+.sbui-listbox-chevron {
+ @apply h-5 w-5 text-gray-400;
+}
+
+/*
+ Option
+*/
+
+/* .sbui-listbox-option-container {
+ @apply list-none p-0 absolute mt-1 w-full bg-white dark:bg-gray-800 shadow-lg border border-solid border-gray-100 dark:border-gray-600 max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm z-10;
+} */
+
+/* .sbui-listbox-option {
+ @apply cursor-pointer select-none relative py-2 pl-3 pr-9 text-gray-900 dark:text-white;
+} */
+
+/* .sbui-listbox-option--active {
+ @apply text-brand-600 dark:text-brand-600 bg-brand-600 bg-opacity-20;
+}
+
+.sbui-listbox-option--disabled {
+ @apply cursor-not-allowed opacity-50;
+} */
+
+/* .sbui-listbox-option__inner {
+ @apply flex items-center space-x-3;
+} */
+
+/* .sbui-listbox-option__check {
+ @apply absolute inset-y-0 right-0 flex items-center pr-3;
+}
+
+.sbui-listbox-option__check--active {
+ @apply text-brand-600;
+} */
+
+.sbui-listbox-option__check__icon {
+ @apply h-5 w-5;
+}
+
+/*
+ Transition
+*/
+
+.sbui-listbox-transition--leave {
+ @apply transition ease-in duration-100;
+}
+
+.sbui-listbox-transition--leave-from {
+ @apply opacity-100;
+}
+
+.sbui-listbox-transition--leave-to {
+ @apply opacity-0;
+}
diff --git a/packages/common2/src/components/Listbox/SelectStyled.stories.tsx b/packages/common2/src/components/Listbox/SelectStyled.stories.tsx
new file mode 100644
index 00000000000..bbba34198a0
--- /dev/null
+++ b/packages/common2/src/components/Listbox/SelectStyled.stories.tsx
@@ -0,0 +1,399 @@
+import React, { useState } from 'react'
+
+import Listbox from './Listbox2'
+import { IconBook, IconUser } from '../../index'
+import { Button } from '../Button'
+import Typography from '../Typography'
+
+export default {
+ title: 'Data Input/Listbox',
+ component: Listbox,
+}
+
+const { Option } = Listbox
+
+const options = [
+ { value: 'one', label: 'one' },
+ { value: 'two', label: 'two' },
+ { value: 'three', label: 'three' },
+ { value: 'four', label: 'four' },
+]
+
+export const Default = (args: any) => (
+ <Listbox label="Default listbox">
+ {options.map((option) => {
+ return (
+ <Listbox.Option
+ label={option.label}
+ value={option.value}
+ children={({ active, selected }: any) => {
+ // console.log('selected', selected)
+ // console.log('active', active)
+ return <span>{option.label}</span>
+ }}
+ />
+ )
+ })}
+ </Listbox>
+)
+
+export const ListBoxDisabled = (args: any) => (
+ <Listbox label="Default listbox" disabled>
+ <Listbox.Option label="Option 1" value="option-1">
+ Option 1
+ </Listbox.Option>
+ <Listbox.Option label="Option 2" value="option-2">
+ Option 2
+ </Listbox.Option>
+ <Listbox.Option disabled label="Option 3" value="option-3">
+ Option 3
+ </Listbox.Option>
+ </Listbox>
+)
+
+export const WithDisabled = (args: any) => (
+ <Listbox label="Default listbox">
+ <Listbox.Option label="Option 1" value="option-1">
+ Option 1
+ </Listbox.Option>
+ <Listbox.Option label="Option 2" value="option-2">
+ Option 2
+ </Listbox.Option>
+ <Listbox.Option disabled label="Option 3" value="option-3">
+ Option 3
+ </Listbox.Option>
+ </Listbox>
+)
+
+const people = [
+ {
+ value: 1,
+ label: 'Wade Cooper',
+ avatar:
+ 'https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 2,
+ label: 'Arlene Mccoy',
+ avatar:
+ 'https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 3,
+ label: 'Devon Webb',
+ avatar:
+ 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2.25&w=256&h=256&q=80',
+ },
+ {
+ value: 4,
+ label: 'Tom Cook',
+ avatar:
+ 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 5,
+ label: 'Tanya Fox',
+ avatar:
+ 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 6,
+ label: 'Hellen Schmidt',
+ avatar:
+ 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 7,
+ label: 'Caroline Schultz',
+ avatar:
+ 'https://images.unsplash.com/photo-1568409938619-12e139227838?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 8,
+ label: 'Mason Heaney',
+ avatar:
+ 'https://images.unsplash.com/photo-1531427186611-ecfd6d936c79?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 9,
+ label: 'Claudie Smitham',
+ avatar:
+ 'https://images.unsplash.com/photo-1584486520270-19eca1efcce5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+ {
+ value: 10,
+ label: 'Emil Schaefer',
+ avatar:
+ 'https://images.unsplash.com/photo-1561505457-3bcad021f8ee?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
+ },
+]
+
+export const People = (args: any) => (
+ <div className="overflow-hidden">
+ <Listbox
+ // defaultValue={people[1].value}
+ label="Choose a person"
+ layout="horizontal"
+ descriptionText="Choose a person for this role"
+ >
+ {people.map((person) => {
+ return (
+ <Listbox.Option
+ value={person.value}
+ label={person.label}
+ addOnBefore={({ active, selected }: any) => [
+ <img
+ src={person.avatar}
+ alt=""
+ className="h-6 w-6 rounded-full"
+ />,
+ ]}
+ children={({ active, selected }: any) => {
+ // console.log('selected', selected)
+ // console.log('active', active)
+ return (
+ <span className={'font-normal block truncate'}>
+ {person.label}
+ </span>
+ )
+ }}
+ />
+ )
+ })}
+ </Listbox>
+ </div>
+)
+
+People.args = {
+ disabled: false,
+ label: 'Label',
+ layout: 'vertical',
+ size: 'medium',
+}
+
+export const WithState = (args: any) => {
+ const [value, setValue] = useState('foo')
+ return (
+ <Listbox
+ value={value}
+ onChange={(value) => setValue(value)}
+ label="Choose a person"
+ layout="horizontal"
+ descriptionText="Choose a person for this role"
+ >
+ <Listbox.Option value="foo" id="foo" label="foo" key="foo">
+ foo
+ </Listbox.Option>
+ {people.map((person) => {
+ return (
+ <Listbox.Option
+ key={person.value}
+ value={person.value}
+ label={person.label}
+ addOnBefore={({ active, selected }: any) => [
+ <img
+ src={person.avatar}
+ alt=""
+ className="h-6 w-6 rounded-full"
+ />,
+ ]}
+ children={({ active, selected }: any) => {
+ return (
+ <span className={'font-normal block truncate'}>
+ {person.label}
+ </span>
+ )
+ }}
+ />
+ )
+ })}
+ </Listbox>
+ )
+}
+
+WithState.args = {
+ disabled: false,
+ label: 'Label',
+ layout: 'vertical',
+ size: 'medium',
+}
+
+export const WithIcon = (args: any) => (
+ <div className="overflow-hidden">
+ <Listbox
+ // defaultValue={people[1].value}
+ icon={<IconUser />}
+ label="Choose a person"
+ layout="horizontal"
+ descriptionText="Choose a person for this role"
+ >
+ {people.map((person) => {
+ return (
+ <Listbox.Option
+ value={person.value}
+ label={person.label}
+ addOnBefore={({ active, selected }: any) => [
+ <img
+ src={person.avatar}
+ alt=""
+ className="h-6 w-6 rounded-full"
+ />,
+ ]}
+ children={({ active, selected }: any) => {
+ // console.log('selected', selected)
+ // console.log('active', active)
+ return (
+ <span className={'font-normal block truncate'}>
+ {person.label}
+ </span>
+ )
+ }}
+ />
+ )
+ })}
+ </Listbox>
+ </div>
+)
+
+WithIcon.args = {
+ disabled: false,
+ label: 'Label',
+ layout: 'vertical',
+ size: 'medium',
+}
+
+// export const Default = (args: any) => (
+// <Listbox {...args}>
+// <Option value="javascript">JavaScript</Option>
+// <Option value="typeScript">TypeScript</Option>
+// <Option value="react">React</Option>
+// </Listbox>
+// )
+
+// export const withCheckboxes = (args: any) => <Listbox {...args} />
+
+export const ErrorState = (args: any) => (
+ <Listbox
+ label="Choose a person"
+ descriptionText="Choose a person for this role"
+ error="I am an error"
+ >
+ {people.map((person) => {
+ return (
+ <Listbox.Option
+ label={person.label}
+ value={person.value}
+ addOnBefore={({ active, selected }: any) => [
+ <img src={person.avatar} alt="" className="h-6 w-6 rounded-full" />,
+ ]}
+ >
+ {person.label}
+ </Listbox.Option>
+ )
+ })}
+ </Listbox>
+)
+
+ErrorState.args = {
+ label: 'Choose a person',
+ descriptionText: 'Choose a person for this role',
+}
+
+export const ListBoxChildrenPropChange = (args: any) => {
+ const [countries, setCountries] = useState<any[]>([
+ 'England',
+ 'Wales',
+ 'Scotland',
+ 'Ireland',
+ ])
+
+ function handlePop() {
+ console.log('handlepop')
+ let _data = []
+ _data = countries
+ _data.pop()
+ setCountries([..._data])
+
+ console.log(countries)
+ }
+
+ return (
+ <>
+ {countries.map((country) => {
+ return <span>{country}</span>
+ })}
+ <Listbox
+ defaultValue={'England'}
+ label="Choose a country"
+ descriptionText="Choose a person for this role"
+ >
+ {countries.map((country) => {
+ return (
+ <Listbox.Option label={country} value={country}>
+ {country}
+ </Listbox.Option>
+ )
+ })}
+ <Listbox.Option label="disabled country" value="disabled" disabled>
+ Disabled
+ </Listbox.Option>
+ </Listbox>
+ <Button onClick={handlePop}>Remove country</Button>
+ </>
+ )
+}
+
+ListBoxChildrenPropChange.args = {
+ label: 'Choose a country',
+}
+
+export const ValueChange = (args: any) => {
+ const [countries, setCountries] = useState<any[]>([
+ 'England',
+ 'Wales',
+ 'Scotland',
+ 'Ireland',
+ ])
+
+ const [value, setValue] = useState<string>('England')
+
+ function handleRandom() {
+ const random = countries[Math.floor(Math.random() * countries.length)]
+ setValue(random)
+ }
+
+ return (
+ <>
+ <Typography.Text>current value: {value}</Typography.Text>
+ <div>
+ <Listbox
+ value={value}
+ label="Choose a country"
+ descriptionText="Choose a person for this role"
+ onChange={setValue}
+ >
+ {countries.map((country) => {
+ return (
+ <Listbox.Option label={country} value={country} key={country}>
+ {country}
+ </Listbox.Option>
+ )
+ })}
+ <Listbox.Option
+ label="disabled country"
+ value="disabled"
+ disabled
+ key="disabled"
+ >
+ Disabled
+ </Listbox.Option>
+ </Listbox>
+ </div>
+ <Button onClick={handleRandom}>Change country</Button>
+ </>
+ )
+}
+
+ValueChange.args = {
+ label: 'Choose a country',
+}
diff --git a/packages/common2/src/components/Listbox/SelectStyled.test.js b/packages/common2/src/components/Listbox/SelectStyled.test.js
new file mode 100644
index 00000000000..ca4eca6aa86
--- /dev/null
+++ b/packages/common2/src/components/Listbox/SelectStyled.test.js
@@ -0,0 +1,27 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Select from './Listbox'
+
+describe('#Select', () => {
+ it('should render select correctly', async () => {
+ render(
+ <Select data-testid="form-select">
+ <option>1</option>
+ <option>2</option>
+ </Select>
+ )
+ expect(screen.queryByTestId('form-select')).toBeInTheDocument()
+ })
+
+ it('should have "form-select--error" class', () => {
+ render(
+ <Select isError data-testid="form-select">
+ <option>1</option>
+ <option>2</option>
+ </Select>
+ )
+ expect(screen.queryByTestId('form-select')).toHaveClass(
+ 'form-select border-solid form-select--error'
+ )
+ })
+})
diff --git a/packages/common2/src/components/Listbox/index.tsx b/packages/common2/src/components/Listbox/index.tsx
new file mode 100644
index 00000000000..79f42296955
--- /dev/null
+++ b/packages/common2/src/components/Listbox/index.tsx
@@ -0,0 +1,3 @@
+import Listbox from './Listbox2'
+export default Listbox
+export { default as Listbox } from './Listbox2'
diff --git a/packages/common2/src/components/Loading/Loading.module.css b/packages/common2/src/components/Loading/Loading.module.css
new file mode 100644
index 00000000000..fe814195451
--- /dev/null
+++ b/packages/common2/src/components/Loading/Loading.module.css
@@ -0,0 +1,20 @@
+.sbui-loading {
+ @apply transition-all relative;
+}
+
+.sbui-loading--active .sbui-loading-content {
+ opacity: 0.4;
+}
+.sbui-loading-content {
+ @apply transition-opacity duration-300;
+}
+
+.sbui-loading-spinner {
+ @apply text-brand-800 animate-spin;
+ margin: auto;
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+}
diff --git a/packages/common2/src/components/Loading/Loading.stories.tsx b/packages/common2/src/components/Loading/Loading.stories.tsx
new file mode 100644
index 00000000000..1283e417d1a
--- /dev/null
+++ b/packages/common2/src/components/Loading/Loading.stories.tsx
@@ -0,0 +1,23 @@
+import React, { useState } from 'react'
+
+import { Loading } from '.'
+import { Card } from '../Card'
+
+export default {
+ title: 'Utilities/Loading',
+ component: Loading,
+}
+
+export const Default = (args: any) => {
+ return (
+ <>
+ <Loading {...args}>
+ <Card title={'This card can be set to loading'}></Card>
+ </Loading>
+ </>
+ )
+}
+
+Default.args = {
+ active: true,
+}
diff --git a/packages/common2/src/components/Loading/Loading.tsx b/packages/common2/src/components/Loading/Loading.tsx
new file mode 100644
index 00000000000..fe5de53dff5
--- /dev/null
+++ b/packages/common2/src/components/Loading/Loading.tsx
@@ -0,0 +1,28 @@
+import React from 'react'
+import styleHandler from '../../lib/theme/styleHandler'
+import { IconLoader } from './../../../index'
+
+interface Props {
+ children: React.ReactNode
+ active: boolean
+}
+export default function Loading({ children, active }: Props) {
+ const __styles = styleHandler('loading')
+
+ let classNames = [__styles.base]
+
+ let contentClasses = [__styles.content.base]
+
+ if (active) {
+ contentClasses.push(__styles.content.active)
+ }
+
+ let spinnerClasses = [__styles.spinner]
+
+ return (
+ <div className={classNames.join(' ')}>
+ <div className={contentClasses.join(' ')}>{children}</div>
+ {active && <IconLoader size="xlarge" className={spinnerClasses} />}
+ </div>
+ )
+}
diff --git a/packages/common2/src/components/Loading/index.tsx b/packages/common2/src/components/Loading/index.tsx
new file mode 100644
index 00000000000..10f5e3f5c36
--- /dev/null
+++ b/packages/common2/src/components/Loading/index.tsx
@@ -0,0 +1 @@
+export { default as Loading } from './Loading'
diff --git a/packages/common2/src/components/Menu/Menu.module.css b/packages/common2/src/components/Menu/Menu.module.css
new file mode 100644
index 00000000000..189981a4242
--- /dev/null
+++ b/packages/common2/src/components/Menu/Menu.module.css
@@ -0,0 +1,35 @@
+.sbui-menu__item {
+ @apply px-4 py-2;
+ @apply cursor-pointer;
+ @apply hover:bg-gray-100 dark:hover:bg-dark-700 transition-colors duration-150;
+}
+
+.sbui-menu__group {
+ @apply px-4 py-2;
+}
+
+.sbui-menu__content {
+ @apply w-full;
+}
+
+.sbui-menu__item--active {
+ @apply bg-gray-100;
+ @apply dark:bg-gray-600;
+
+ @apply text-gray-900;
+ @apply dark:text-white;
+}
+
+.sbui-menu__item--active .sbui-menu__content {
+ @apply text-gray-600;
+ @apply dark:text-white;
+}
+
+.sbui-menu__item--active--bar {
+ @apply border-l-4 border-brand-500;
+ border-left-style: solid;
+}
+
+.sbui-menu__item--rounded {
+ @apply rounded;
+}
diff --git a/packages/common2/src/components/Menu/Menu.stories.tsx b/packages/common2/src/components/Menu/Menu.stories.tsx
new file mode 100644
index 00000000000..4ba2d746e57
--- /dev/null
+++ b/packages/common2/src/components/Menu/Menu.stories.tsx
@@ -0,0 +1,136 @@
+import React from 'react'
+
+import { Divider } from '../Divider'
+import { IconMail } from './../../index'
+import Typography from '../Typography'
+
+import { Menu } from './'
+import { Button } from '../Button'
+import { IconDatabase } from '../Icon/icons/IconDatabase'
+import { IconMenu } from '../Icon/icons/IconMenu'
+import { IconRefreshCcw } from '../Icon/icons/IconRefreshCcw'
+
+export default {
+ title: 'Navigation/Menu',
+ component: Menu,
+}
+
+const SampleIcon = () => <IconMail size={14} strokeWidth={2} />
+
+export const Default = (args: any) => (
+ <Menu type="text">
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Divider />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const withActiveState = (args: any) => (
+ <Menu type="text">
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Divider />
+ <Menu.Item active icon={<SampleIcon />}>
+ Account settings
+ </Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const pills = (args: any) => (
+ <Menu type="pills">
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Divider />
+ <Menu.Item active icon={<SampleIcon />}>
+ Account settings
+ </Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const border = (args: any) => (
+ <Menu type="border">
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Divider />
+ <Menu.Item active icon={<SampleIcon />}>
+ Account settings
+ </Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const Groups = () => (
+ <Menu type="text">
+ <Menu.Group title="First group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Group title="Second group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const PillsAndGroups = () => (
+ <Menu type="pills">
+ <Menu.Group title="First group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />} active>
+ Account settings
+ </Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Group title="Second group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const BorderAndGroups = () => (
+ <Menu type="border">
+ <Menu.Group title="First group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />} active>
+ Account settings
+ </Menu.Item>
+ <Menu.Group title="Second group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
+
+export const CustomNode = () => (
+ <Menu type="border">
+ <Menu.Group
+ // @ts-ignore
+ title={
+ <>
+ <div className="w-full flex items-center justify-between">
+ <span>All tables</span>
+ <button className="cursor-pointer">
+ <IconRefreshCcw className={'animate-spin'} size={14} />
+ </button>
+ </div>
+ </>
+ }
+ />
+ <Menu.Item icon={<SampleIcon />}>
+ <div className="flex items-center gap-2">
+ <span>Account settings</span>
+ <Button type="default">Button</Button>
+ </div>
+ </Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>
+ <div className="flex items-center gap-2">
+ <span>Account settings</span>
+ <IconMenu size={14} strokeWidth={1.5} />
+ </div>
+ </Menu.Item>
+ <Menu.Item icon={<SampleIcon />} active>
+ Account settings
+ </Menu.Item>
+ <Menu.Group title="Second group" />
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ <Menu.Item icon={<SampleIcon />}>Account settings</Menu.Item>
+ </Menu>
+)
diff --git a/packages/common2/src/components/Menu/Menu.tsx b/packages/common2/src/components/Menu/Menu.tsx
new file mode 100644
index 00000000000..b57d781ddd5
--- /dev/null
+++ b/packages/common2/src/components/Menu/Menu.tsx
@@ -0,0 +1,139 @@
+import React from 'react'
+import { Space } from '../Space'
+import Typography from '../Typography'
+import { MenuContextProvider, useMenuContext } from './MenuContext'
+
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface MenuProps {
+ children: React.ReactNode
+ className?: string
+ style?: React.CSSProperties
+ type?: 'text' | 'pills' | 'border'
+}
+
+function Menu({ children, className, style, type = 'text' }: MenuProps) {
+ return (
+ <nav
+ role="menu"
+ aria-label="Sidebar"
+ aria-orientation="vertical"
+ aria-labelledby="options-menu"
+ className={className}
+ style={style}
+ >
+ <MenuContextProvider type={type}>
+ <ul>{children}</ul>
+ </MenuContextProvider>
+ </nav>
+ )
+}
+
+interface ItemProps {
+ children: React.ReactNode
+ icon?: React.ReactNode
+ active?: boolean
+ rounded?: boolean
+ onClick?: any
+ doNotCloseOverlay?: boolean
+ showActiveBar?: boolean
+ style?: React.CSSProperties
+}
+
+export function Item({
+ children,
+ icon,
+ active,
+ rounded,
+ onClick,
+ doNotCloseOverlay = false,
+ showActiveBar = false,
+ style,
+}: ItemProps) {
+ const __styles = styleHandler('menu')
+
+ const { type } = useMenuContext()
+
+ let classes = [__styles.item.base]
+
+ classes.push(__styles.item.variants[type].base)
+
+ if (active) {
+ classes.push(__styles.item.variants[type].active)
+ } else {
+ classes.push(__styles.item.variants[type].normal)
+ }
+
+ let contentClasses = [__styles.item.content.base]
+ if (active) {
+ contentClasses.push(__styles.item.content.active)
+ } else {
+ contentClasses.push(__styles.item.content.normal)
+ }
+
+ let iconClasses = [__styles.item.icon.base]
+ if (active) {
+ iconClasses.push(__styles.item.icon.active)
+ } else {
+ iconClasses.push(__styles.item.icon.normal)
+ }
+
+ return (
+ <li role="menuitem" className="outline-none">
+ <a
+ style={style}
+ className={classes.join(' ')}
+ onClick={onClick}
+ aria-current={active ? 'page' : undefined}
+ >
+ {icon && <span className={iconClasses.join(' ')}>{icon}</span>}
+ <span className={contentClasses.join(' ')}>{children}</span>
+ </a>
+ </li>
+ )
+}
+
+interface GroupProps {
+ children?: React.ReactNode
+ icon?: React.ReactNode
+ title: string
+}
+
+export function Group({ children, icon, title }: GroupProps) {
+ const __styles = styleHandler('menu')
+ const { type } = useMenuContext()
+ return (
+ <div
+ className={[__styles.group.base, __styles.group.variants[type]].join(' ')}
+ >
+ {icon && <span className={__styles.group.icon}>{icon}</span>}
+ <span className={__styles.group.content}>{title}</span>
+ {children}
+ </div>
+ )
+}
+
+interface MiscProps {
+ children: React.ReactNode
+}
+
+export function Misc({ children }: MiscProps) {
+ return (
+ <div
+ // className={MenuStyles['sbui-menu__misc']}
+ >
+ <Typography.Text>
+ <span
+ // className={MenuStyles['sbui-menu__content']}
+ >
+ {children}
+ </span>
+ </Typography.Text>
+ </div>
+ )
+}
+
+Menu.Item = Item
+Menu.Group = Group
+Menu.Misc = Misc
+export default Menu
diff --git a/packages/common2/src/components/Menu/MenuContext.tsx b/packages/common2/src/components/Menu/MenuContext.tsx
new file mode 100644
index 00000000000..3e8b71ab3d8
--- /dev/null
+++ b/packages/common2/src/components/Menu/MenuContext.tsx
@@ -0,0 +1,36 @@
+import React, { createContext, useContext } from 'react'
+
+interface ContextProps {
+ type: 'text' | 'pills' | 'border'
+}
+
+interface Provider extends ContextProps {
+ children?: React.ReactNode
+}
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+const MenuContext = createContext<ContextProps>({
+ type: 'text',
+})
+
+export const MenuContextProvider = (props: Provider) => {
+ const { type } = props
+
+ const value = {
+ type: type,
+ }
+
+ return (
+ <MenuContext.Provider value={value}>{props.children}</MenuContext.Provider>
+ )
+}
+
+// context helper to avoid using a consumer component
+export const useMenuContext = () => {
+ const context = useContext(MenuContext)
+ if (context === undefined) {
+ throw new Error(`MenuContext must be used within a MenuContextProvider.`)
+ }
+ return context
+}
diff --git a/packages/common2/src/components/Menu/index.tsx b/packages/common2/src/components/Menu/index.tsx
new file mode 100644
index 00000000000..03d4d6a4092
--- /dev/null
+++ b/packages/common2/src/components/Menu/index.tsx
@@ -0,0 +1 @@
+export { default as Menu } from './Menu'
diff --git a/packages/common2/src/components/Modal/Modal.module.css b/packages/common2/src/components/Modal/Modal.module.css
new file mode 100644
index 00000000000..447c46d3585
--- /dev/null
+++ b/packages/common2/src/components/Modal/Modal.module.css
@@ -0,0 +1,137 @@
+/*
+ Modal animations imported first as so placement styles are not affected.
+*/
+
+/* overlay animation */
+.sbui-modal-overlay--enter {
+ @apply ease-out duration-200;
+}
+.sbui-modal-overlay--enterFrom {
+ @apply opacity-0;
+}
+.sbui-modal-overlay--enterTo {
+ @apply opacity-100;
+}
+.sbui-modal-overlay--leave {
+ @apply ease-in duration-150;
+}
+.sbui-modal-overlay--leaveFrom {
+ @apply opacity-100;
+}
+.sbui-modal-overlay--leaveTo {
+ @apply opacity-0;
+}
+
+/* modal animation */
+.sbui-modal--enter {
+ @apply ease-out duration-150 delay-150;
+}
+.sbui-modal--enterFrom {
+ @apply opacity-0 translate-y-4 sm:translate-y-0 transform sm:scale-95;
+}
+.sbui-modal--enterTo {
+ @apply opacity-100 translate-y-0 transform sm:scale-100;
+}
+.sbui-modal--leave {
+ @apply ease-in duration-150;
+}
+.sbui-modal--leaveFrom {
+ @apply opacity-100 translate-y-0 transform sm:scale-100;
+}
+.sbui-modal--leaveTo {
+ @apply opacity-0 translate-y-4 sm:translate-y-0 transform sm:scale-95;
+}
+
+.sbui-modal-container {
+ @apply fixed z-50 inset-0;
+}
+
+.sbui-modal-flex-container {
+ @apply flex items-end justify-center min-h-screen pt-4 px-6 pb-20 text-center sm:block sm:p-0;
+}
+
+.sbui-modal-overlay-container {
+ @apply fixed inset-0 transition-opacity;
+}
+
+.sbui-modal-overlay {
+ @apply absolute inset-0 bg-gray-900 opacity-75;
+}
+
+.sbui-modal-div-trick {
+ @apply hidden sm:inline-block sm:align-middle sm:h-screen;
+}
+
+/* .sbui-modal {
+ @apply inline-block bg-white dark:bg-dark-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all align-middle;
+ @apply border-gray-400 border border-solid;
+ @apply dark:border-gray-600 border border-solid;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+} */
+
+.sbui-modal--tiny {
+ @apply sm:align-middle sm:w-full sm:max-w-xs;
+}
+
+.sbui-modal--small {
+ @apply sm:align-middle sm:w-full sm:max-w-sm;
+}
+
+.sbui-modal--medium {
+ @apply sm:align-middle sm:w-full sm:max-w-lg;
+}
+
+.sbui-modal--large {
+ @apply sm:align-middle sm:w-full max-w-xl;
+}
+
+.sbui-modal-content {
+ @apply px-6 pt-5 pb-5 sm:p-6;
+}
+
+.sbui-modal-footer {
+ @apply sm:flex sm:flex-row justify-end;
+}
+
+.sbui-modal-footer--with-bg {
+ @apply bg-gray-50 dark:bg-dark-600 px-6 py-3 sm:px-6 sm:flex sm:flex-row justify-end;
+}
+
+.sbui-modal-icon-container {
+ @apply mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10;
+}
+
+.sbui-modal-icon-container--danger {
+ @apply text-red-600 bg-red-600 bg-opacity-20;
+}
+
+.sbui-modal-icon-container--warning {
+ @apply text-yellow-500 bg-yellow-500 bg-opacity-20;
+}
+
+.sbui-modal-icon-container--success {
+ @apply text-brand-500 bg-brand-500 bg-opacity-20;
+}
+
+.sbui-modal-close-container {
+ @apply absolute right-1 top-1;
+}
+
+.sbui-modal-close-container button,
+.dark .sbui-modal-close-container button {
+ @apply text-gray-300;
+ @apply hover:text-gray-400;
+
+ /* @apply dark:text-dark-400; */
+ @apply hover:text-dark-300;
+
+ @apply hover:bg-transparent;
+}
+
+.sbui-sidepanel__trigger {
+ @apply border-none bg-transparent p-0 focus:ring-0;
+}
diff --git a/packages/common2/src/components/Modal/Modal.stories.tsx b/packages/common2/src/components/Modal/Modal.stories.tsx
new file mode 100644
index 00000000000..bf1f499fe05
--- /dev/null
+++ b/packages/common2/src/components/Modal/Modal.stories.tsx
@@ -0,0 +1,602 @@
+import { actions } from '@storybook/addon-actions'
+import React, { useState } from 'react'
+import { action } from '@storybook/addon-actions'
+
+import { Modal } from '.'
+import Typography from '../Typography'
+import { Badge } from '../Badge'
+import { Form } from '../Form'
+import { Button } from '../Button'
+import { Space } from '../Space'
+import { IconTrash, IconAlertCircle, IconCheck } from './../../index'
+import { Dropdown } from '../Dropdown'
+import { IconGlobe } from '../Icon/icons/IconGlobe'
+import { IconLink2 } from '../Icon/icons/IconLink2'
+import { Input } from '../Input'
+
+export default {
+ title: 'Overlays/Modal',
+ component: Modal,
+ argTypes: { onClick: { action: 'clicked' } },
+}
+
+export const withUseState = () => {
+ const [visible, setVisible] = useState(false)
+
+ return (
+ <>
+ <div
+ className="
+ py-4 px-8
+ bg-scale-300
+ border
+ border-scale-500
+ rounded flex gap-4
+ shadow-sm
+ justify-between
+ items-center
+
+ fixed
+ top-1/2
+ left-1/2
+ w-3/4
+
+ -translate-x-1/2
+ -translate-y-1/2"
+ >
+ <div>
+ <h4 className="text-scale-1200 text-base">Delete your project</h4>
+ <p className="text-scale-1100 text-sm">
+ It will be sad to see you go
+ </p>
+ </div>
+ <Button
+ type="default"
+ onClick={() => setVisible(!visible)}
+ icon={<IconTrash />}
+ >
+ Delete this project
+ </Button>
+ </div>
+ <div>
+ <Modal
+ size="small"
+ visible={visible}
+ onCancel={() => setVisible(!visible)}
+ header={
+ <div className="flex items-center gap-2 text-scale-1200">
+ {/* <div className="text-scale-600">
+ <IconTrash strokeWidth={2} />
+ </div> */}
+ <div className="flex items-baseline gap-2">
+ <h3 className="text-sm">Delete your project</h3>
+ <span className="text-xs text-scale-900">Are you sure?</span>
+ </div>
+ </div>
+ }
+ contentStyle={{ padding: 0 }}
+ hideFooter
+ >
+ <Form
+ initialValues={{
+ name: '',
+ }}
+ onSubmit={(values: any, { setSubmitting }: any) => {
+ setTimeout(() => {
+ // alert(JSON.stringify(values, null, 2))
+ setSubmitting(false)
+ setVisible(false)
+ }, 400)
+ }}
+ validate={(values) => {
+ const errors: any = {}
+ if (!values.name) {
+ errors.name = 'Project name is required'
+ } else if (values.name !== 'MyProject') {
+ errors.name = 'Does not match project name'
+ }
+ return errors
+ }}
+ >
+ {({ isSubmitting, errors, touched }: any) => {
+ console.log('errors in form', errors)
+ console.log('touched in form', touched)
+ return (
+ <div className="space-y-4 mb-4">
+ <div className="px-5 py-3 bg-amber-100 border-t border-b border-amber-300">
+ <span className="flex gap-3 items-center text-xs text-amber-900">
+ <IconAlertCircle strokeWidth={2} />
+ <span>
+ Once deleted, this project cannot be restored. Please
+ proceed carefully.
+ </span>
+ </span>
+ </div>
+ <div className="px-5">
+ <p className="text-sm text-scale-1100">
+ This action cannot be undone. This will permanently delete
+ the project{' '}
+ <span className="text-scale-1200 font-regular">
+ MyProject
+ </span>
+ .
+ </p>
+ </div>
+ <div className="border-t border-scale-300 dark:border-scale-500"></div>
+ <div className="px-5">
+ <Input
+ id="name"
+ size="small"
+ placeholder="Name of your project"
+ label="Please type MyProject to confirm."
+ />
+ </div>
+ <div className="border-t border-scale-300 dark:border-scale-500"></div>
+ <div className="px-5">
+ <Button
+ type="danger"
+ htmlType="submit"
+ block
+ size="medium"
+ loading={isSubmitting}
+ >
+ I understand, delete this project
+ </Button>
+ </div>
+ </div>
+ )
+ }}
+ </Form>
+ </Modal>
+ </div>
+ </>
+ )
+}
+
+export const Default = (args: any) => (
+ <Modal
+ {...args}
+ header={
+ <div className="flex items-center gap-2 text-scale-1200">
+ <div className="text-brand-700">
+ <IconLink2 />
+ </div>
+ <div className="flex items-baseline gap-2">
+ <h3>This is the title</h3>
+ <span className="text-xs text-scale-900">This is the title</span>
+ </div>
+ </div>
+ }
+ >
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const withIcon = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const withVerticalLayout = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const withCloseButton = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ This Modal has a close button on the top right
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const rightAlignedFooter = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const hideFooter = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const withFooterBackground = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const customFooter = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const customFooterVertical = (args: any) => (
+ <Modal {...args}>
+ <Typography.Text type="secondary">
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via{' '}
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+)
+
+export const LongModal = () => (
+ <div>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into the
+ Modal you can do so via
+ </p>
+ <Modal visible={true}>
+ <Typography.Text type="secondary">
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <p>
+ Modal content is inserted here, if you need to insert anything into
+ the Modal you can do so via
+ </p>
+ <Typography.Text code>{'{children}'}</Typography.Text>
+ </Typography.Text>
+ </Modal>
+ </div>
+)
+
+export const customFooterOneButton = (args: any) => <Modal {...args} />
+
+export const modalWithDropdowns = () => {
+ const [visible, setVisible] = useState(false)
+
+ return (
+ <>
+ <Button onClick={() => setVisible(!visible)}>Open</Button>
+ <Modal
+ visible={visible}
+ onCancel={() => setVisible(!visible)}
+ hideFooter
+ // className="pointer-events-auto"
+ >
+ <Dropdown
+ // className="pointer-events-auto"
+ overlay={
+ <>
+ <Dropdown.Item onClick={() => console.log('item 1 clicked')}>
+ Item 1
+ </Dropdown.Item>
+ <Dropdown.Item onClick={() => console.log('item 2 clicked')}>
+ Item 2
+ </Dropdown.Item>
+ </>
+ }
+ >
+ <Button as="span">Trigger dropdown</Button>
+ </Dropdown>
+ </Modal>
+ </>
+ )
+}
+
+Default.args = {
+ visible: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+ size: 'medium',
+}
+
+withFooterBackground.args = {
+ visible: true,
+ footerBackground: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+}
+
+const icon = <IconAlertCircle background="brand" size="xlarge" />
+
+withIcon.args = {
+ visible: true,
+ showIcon: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+ icon: icon,
+}
+
+withCloseButton.args = {
+ visible: true,
+ closable: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This Modal has a close button on the top right',
+ description: 'And i am the description',
+}
+
+withVerticalLayout.args = {
+ visible: true,
+ size: 'small',
+ layout: 'vertical',
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+ icon: icon,
+}
+
+rightAlignedFooter.args = {
+ visible: true,
+ alignFooter: 'right',
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+}
+
+hideFooter.args = {
+ visible: true,
+ hideFooter: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+}
+
+customFooter.args = {
+ visible: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+ customFooter: [
+ <Space>
+ <div>
+ <Badge color="red" dot size="small">
+ Proceed with caution
+ </Badge>
+ </div>
+ <Button type="secondary">Cancel</Button>
+ <Button danger>Delete</Button>
+ </Space>,
+ ],
+}
+
+customFooterVertical.args = {
+ visible: true,
+ size: 'small',
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the modal',
+ description: 'And i am the description',
+ layout: 'vertical',
+ customFooter: [
+ <Space style={{ width: '100%' }}>
+ <Button size="medium" block type="secondary">
+ Cancel
+ </Button>
+ <Button size="medium" block danger icon={<IconTrash />}>
+ Delete
+ </Button>
+ </Space>,
+ ],
+}
+
+customFooterOneButton.args = {
+ visible: true,
+ size: 'small',
+ icon: <IconCheck background="brand" size="xxxlarge" />,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'Payment succesful',
+ description:
+ 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.',
+ layout: 'vertical',
+ customFooter: [
+ <Space style={{ width: '100%' }}>
+ <Button size="medium" block icon={<IconCheck />}>
+ Confirm
+ </Button>
+ </Space>,
+ ],
+}
diff --git a/packages/common2/src/components/Modal/Modal.tsx b/packages/common2/src/components/Modal/Modal.tsx
new file mode 100644
index 00000000000..f0e7b240c53
--- /dev/null
+++ b/packages/common2/src/components/Modal/Modal.tsx
@@ -0,0 +1,197 @@
+import React, { useEffect } from 'react'
+// @ts-ignore
+import ModalStyles from './Modal.module.css'
+import { Button, IconX, Space } from './../../../index'
+import { AnimationTailwindClasses } from '../../types'
+
+import * as Dialog from '@radix-ui/react-dialog'
+
+import { Transition } from '@headlessui/react'
+import styleHandler from '../../lib/theme/styleHandler'
+
+// import { Transition } from '@tailwindui/react'
+// Merge Radix Props to surface in the modal component
+export type ModalProps = RadixProps & Props
+
+interface RadixProps
+ extends Dialog.DialogProps,
+ Pick<
+ Dialog.DialogContentProps,
+ | 'onOpenAutoFocus'
+ | 'onCloseAutoFocus'
+ | 'onEscapeKeyDown'
+ | 'onPointerDownOutside'
+ | 'onInteractOutside'
+ > {}
+
+interface Props {
+ children?: React.ReactNode
+ customFooter?: React.ReactNode
+ closable?: boolean
+ description?: string
+ hideFooter?: boolean
+ alignFooter?: 'right' | 'left'
+ layout?: 'horizontal' | 'vertical'
+ icon?: React.ReactNode
+ loading?: boolean
+ onCancel?: any
+ cancelText?: string
+ onConfirm?: any
+ confirmText?: string
+ showIcon?: boolean
+ footerBackground?: boolean
+ title?: string | React.ReactNode
+ variant?: 'danger' | 'warning' | 'success'
+ visible: boolean
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'
+ style?: React.CSSProperties
+ overlayStyle?: React.CSSProperties
+ contentStyle?: React.CSSProperties
+ className?: string
+ overlayClassName?: string
+ transition?: AnimationTailwindClasses
+ transitionOverlay?: AnimationTailwindClasses
+ triggerElement?: React.ReactNode
+ header?: React.ReactNode
+}
+
+const Modal = ({
+ children,
+ customFooter = undefined,
+ closable,
+ description,
+ hideFooter = false,
+ alignFooter = 'left',
+ layout = 'horizontal',
+ loading = false,
+ cancelText = 'Cancel',
+ onConfirm = () => {},
+ onCancel = () => {},
+ confirmText = 'Confirm',
+ showIcon = false,
+ title,
+ footerBackground,
+ icon,
+ variant = 'success',
+ visible = false,
+ size = 'large',
+ style,
+ overlayStyle,
+ contentStyle,
+ className = '',
+ overlayClassName,
+ triggerElement,
+ header,
+ ...props
+}: ModalProps) => {
+ const [open, setOpen] = React.useState(visible ? visible : false)
+
+ const __styles = styleHandler('modal')
+
+ useEffect(() => {
+ setOpen(visible)
+ }, [visible])
+
+ function stopPropagation(e: React.MouseEvent) {
+ e.stopPropagation()
+ }
+
+ // let footerClasses = [ModalStyles['sbui-modal-footer']]
+ if (footerBackground) {
+ // footerClasses.push(ModalStyles['sbui-modal-footer--with-bg'])
+ }
+
+ let modalClasses = [
+ __styles.base,
+ // ModalStyles[`sbui-modal`],
+ // ModalStyles[`sbui-modal--${size}`],
+ ]
+ // if (className) modalClasses.push(className)
+
+ // let overlayClasses = [ModalStyles['sbui-modal-overlay']]
+ // if (overlayClassName) overlayClasses.push(overlayClassName)
+
+ const footerContent = customFooter ? (
+ customFooter
+ ) : (
+ <Space
+ style={{
+ width: '100%',
+ justifyContent:
+ layout === 'vertical' ? 'center' : alignFooter === 'right' ? 'flex-end' : 'flex-start',
+ }}
+ >
+ <Button type="secondary" onClick={onCancel} disabled={loading}>
+ {cancelText}
+ </Button>
+ <Button onClick={onConfirm} loading={loading} danger={variant === 'danger'}>
+ {confirmText}
+ </Button>
+ </Space>
+ )
+
+ function handleOpenChange(open: boolean) {
+ if (visible !== undefined && !open) {
+ // controlled component behaviour
+ onCancel()
+ } else {
+ // un-controlled component behaviour
+ setOpen(open)
+ }
+ }
+
+ return (
+ <Dialog.Root open={open} onOpenChange={handleOpenChange}>
+ {triggerElement && (
+ <Dialog.Trigger
+ // className={ModalStyles[`sbui-modal__trigger`]}
+ >
+ {triggerElement}
+ </Dialog.Trigger>
+ )}
+ <Dialog.Portal>
+ <Dialog.Overlay className={__styles.overlay} />
+ <Dialog.Overlay className={__styles.scroll_overlay}>
+ <Dialog.Content
+ className={[__styles.base, __styles.size[size]].join(' ')}
+ onInteractOutside={props.onInteractOutside}
+ >
+ {header && <div className={__styles.header}>{header}</div>}
+ {/* <div
+ className={ModalStyles['sbui-modal-content']}
+ style={contentStyle}
+ > */}
+ {children}
+ {/* </div> */}
+ {!hideFooter && <div className={__styles.footer}>{footerContent}</div>}
+ {/* {closable && (
+ <div className={ModalStyles['sbui-modal-close-container']}>
+ <Button
+ onClick={onCancel}
+ type="text"
+ shadow={false}
+ icon={<IconX size="medium" />}
+ />
+ </div>
+ )} */}
+ </Dialog.Content>
+ </Dialog.Overlay>
+ </Dialog.Portal>
+ </Dialog.Root>
+ )
+}
+
+function Content({ children }: { children: React.ReactNode }) {
+ const __styles = styleHandler('modal')
+ return <div className={__styles.content}>{children}</div>
+}
+
+export function Seperator() {
+ const __styles = styleHandler('modal')
+
+ return <div className={__styles.seperator}></div>
+}
+
+Modal.Content = Content
+Modal.Seperator = Seperator
+export default Modal
diff --git a/packages/common2/src/components/Modal/index.tsx b/packages/common2/src/components/Modal/index.tsx
new file mode 100644
index 00000000000..7a4f2d1dc1e
--- /dev/null
+++ b/packages/common2/src/components/Modal/index.tsx
@@ -0,0 +1 @@
+export { default as Modal } from './Modal'
diff --git a/packages/common2/src/components/Popover/Popover.module.css b/packages/common2/src/components/Popover/Popover.module.css
new file mode 100644
index 00000000000..9ae30064daa
--- /dev/null
+++ b/packages/common2/src/components/Popover/Popover.module.css
@@ -0,0 +1,63 @@
+.sbui-popover__content {
+ @apply bg-bg-primary-light dark:bg-bg-secondary-dark p-0;
+ @apply border;
+ @apply rounded;
+ @apply shadow;
+ border-style: solid;
+ border-width: 1px;
+}
+
+/* @keyframes fadeIn {
+ from {
+ transform: scale(0.95);
+ opacity: 0;
+ }
+ to {
+ transform: scale(1);
+ opacity: 1;
+ }
+}
+
+@keyframes fadeOut {
+ from {
+ transform: scale(1);
+ opacity: 1;
+ }
+ to {
+ transform: scale(0.95);
+ opacity: 0;
+ }
+} */
+
+/* .sbui-popover__content {
+ transform-origin: var(--radix-popover-menu-content-transform-origin);
+}
+
+.sbui-popover__content[data-state='open'] {
+ animation: fadeIn 50ms ease-out;
+}
+
+.sbui-popover__content[data-state='closed'] {
+ animation: fadeOut 50ms ease-in;
+} */
+
+/* .sbui-popover__trigger {
+ @apply border-none bg-transparent p-0 focus:ring-0;
+} */
+
+.sbui-popover__arrow {
+ @apply fill-current text-bg-primary-light dark:text-bg-secondary-dark;
+ @apply border-0 border-t;
+ border-style: solid;
+}
+
+.sbui-popover__close {
+ @apply absolute top-1 right-0;
+ @apply bg-transparent cursor-pointer border-none;
+
+ @apply text-gray-300;
+ @apply hover:text-gray-400;
+
+ @apply dark:text-dark-400;
+ @apply dark:hover:text-dark-300;
+}
diff --git a/packages/common2/src/components/Popover/Popover.stories.tsx b/packages/common2/src/components/Popover/Popover.stories.tsx
new file mode 100644
index 00000000000..ef195dc0d3f
--- /dev/null
+++ b/packages/common2/src/components/Popover/Popover.stories.tsx
@@ -0,0 +1,73 @@
+import { Button } from '../Button'
+import { Divider } from '../Divider'
+import { IconChevronDown } from '../../index'
+import Typography from '../Typography'
+
+import { Popover } from '.'
+import { IconLogIn } from '../Icon/icons/IconLogIn'
+import { Input } from '../Input'
+
+export default {
+ title: 'Navigation/Popover',
+ component: Popover,
+}
+
+export const Default = (args: any) => (
+ <div className="flex justify-center">
+ <Popover
+ {...args}
+ side="bottom"
+ align="end"
+ size="content"
+ portalled
+ showClose
+ header={
+ <div className="flex justify-between items-center">
+ <Button type="default" size="tiny">
+ Clear
+ </Button>
+ <h5 className="text-sm text-scale-1200">Filter</h5>
+ <Button type="primary">Save</Button>
+ </div>
+ }
+ overlay={[
+ <>
+ <div className="py-6 space-y-4">
+ <Input
+ className="px-3"
+ size="tiny"
+ label="Width"
+ defaultValue="100%"
+ descriptionText="Set the width of something"
+ layout="horizontal"
+ />
+ <Popover.Seperator />
+ <Input
+ className="px-3"
+ size="tiny"
+ label="Width"
+ defaultValue="100%"
+ descriptionText="Set the width of something"
+ layout="horizontal"
+ />
+ <Popover.Seperator />
+ <Input
+ className="px-3"
+ size="tiny"
+ label="Width"
+ defaultValue="100%"
+ descriptionText="Set the width of something"
+ layout="horizontal"
+ />
+ </div>
+ </>,
+ ]}
+ >
+ <Button as="span" type="default" iconRight={<IconChevronDown />}>
+ Click for Popover
+ </Button>
+ </Popover>
+ </div>
+)
+
+Default.args = {}
diff --git a/packages/common2/src/components/Popover/Popover.tsx b/packages/common2/src/components/Popover/Popover.tsx
new file mode 100644
index 00000000000..42ff4b97205
--- /dev/null
+++ b/packages/common2/src/components/Popover/Popover.tsx
@@ -0,0 +1,112 @@
+import React from 'react'
+
+import * as RadixPopover from '@radix-ui/react-popover'
+import type * as RadixPopoverTypes from '@radix-ui/react-popover/'
+
+import { IconX } from '../Icon/icons/IconX'
+
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface RootProps {
+ align?: RadixPopoverTypes.PopoverContentProps['align']
+ ariaLabel?: string
+ arrow?: boolean
+ children?: React.ReactNode
+ className?: string
+ defaultOpen?: boolean
+ modal?: boolean
+ onOpenChange?: RadixPopoverTypes.PopoverProps['onOpenChange']
+ open?: boolean
+ overlay?: React.ReactNode
+ portalled?: boolean
+ showClose?: boolean
+ side?: RadixPopoverTypes.PopoverContentProps['side']
+ sideOffset?: RadixPopoverTypes.PopoverContentProps['sideOffset']
+ style?: React.CSSProperties
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge' | 'content'
+}
+
+function Popover({
+ align = 'center',
+ ariaLabel,
+ arrow = false,
+ children,
+ className,
+ defaultOpen = false,
+ modal,
+ onOpenChange,
+ open,
+ overlay,
+ portalled,
+ side = 'bottom',
+ sideOffset = 6,
+ style,
+ header,
+ footer,
+ size = 'content',
+}: RootProps) {
+ const __styles = styleHandler('popover')
+
+ let classes = [__styles.content, __styles.size[size]]
+ if (className) {
+ classes.push(className)
+ }
+
+ return (
+ <RadixPopover.Root
+ defaultOpen={defaultOpen}
+ modal={modal}
+ onOpenChange={onOpenChange}
+ open={open}
+ >
+ <RadixPopover.Trigger
+ // className={DropdownStyles['sbui-popover__trigger']}
+ className={__styles.trigger}
+ aria-label={ariaLabel}
+ >
+ {children}
+ </RadixPopover.Trigger>
+
+ <RadixPopover.Content
+ sideOffset={sideOffset}
+ side={side}
+ align={align}
+ className={classes.join(' ')}
+ style={style}
+ portalled={portalled}
+ >
+ {arrow && (
+ <RadixPopover.Arrow
+ // className={DropdownStyles['sbui-popover__arrow']}
+ offset={10}
+ ></RadixPopover.Arrow>
+ )}
+ {header && <div className={__styles.header}>{header}</div>}
+ {overlay}
+ {footer && <div className={__styles.footer}>{footer}</div>}
+ </RadixPopover.Content>
+ </RadixPopover.Root>
+ )
+}
+
+function Close() {
+ const __styles = styleHandler('popover')
+
+ return (
+ <RadixPopover.Close className={__styles.close}>
+ <IconX size={14} strokeWidth={2} />
+ </RadixPopover.Close>
+ )
+}
+
+function Seperator() {
+ const __styles = styleHandler('popover')
+
+ return <div className={__styles.seperator}></div>
+}
+
+Popover.Seperator = Seperator
+Popover.Close = Close
+export default Popover
diff --git a/packages/common2/src/components/Popover/index.tsx b/packages/common2/src/components/Popover/index.tsx
new file mode 100644
index 00000000000..c6e06a314a2
--- /dev/null
+++ b/packages/common2/src/components/Popover/index.tsx
@@ -0,0 +1 @@
+export { default as Popover } from './Popover'
diff --git a/packages/common2/src/components/Radio/Radio.module.css b/packages/common2/src/components/Radio/Radio.module.css
new file mode 100644
index 00000000000..32a6bad70f2
--- /dev/null
+++ b/packages/common2/src/components/Radio/Radio.module.css
@@ -0,0 +1,109 @@
+/* .sbui-radio-fieldset {
+ @apply border-none p-0 m-0;
+} */
+
+.sbui-radio-container {
+ @apply relative cursor-pointer flex p-0 py-2 border-none;
+}
+
+/* .sbui-radio-container--card {
+ @apply p-4 border border-solid border-gray-200 dark:border-gray-500;
+} */
+
+.sbui-radio-container--card--active {
+ @apply bg-brand-100 bg-opacity-20 border-brand-200 dark:border-brand-200 z-10;
+}
+
+/* .sbui-radio-container--card:first-child {
+ @apply rounded-tl-md rounded-tr-md;
+}
+
+.sbui-radio-container--card:last-child {
+ @apply rounded-bl-md rounded-br-md;
+} */
+
+.sbui-radio-label {
+ @apply flex flex-row cursor-pointer;
+}
+
+.sbui-radio-label-text {
+ @apply block text-sm font-medium dark:text-white;
+}
+
+.sbui-radio-label-text .sbui-radio__label-text-before,
+.sbui-radio-label-text .sbui-radio__label-text-after {
+ @apply text-gray-400 dark:text-gray-300;
+}
+
+.sbui-radio-label-description {
+ @apply block text-sm text-gray-400 dark:text-gray-300;
+}
+
+/* .sbui-radio {
+ @apply h-4 w-4 ml-0 mr-3.5 rounded-2xl border border-solid transition-all;
+
+ @apply text-brand-600 cursor-pointer border-gray-500;
+ @apply focus:ring-brand-500 hover:border-brand-700 focus:outline-none;
+
+ @apply dark:bg-transparent dark:hover:border-brand-700;
+} */
+
+/* .sbui-radio:checked {
+ border-color: transparent;
+ background-color: currentColor;
+ background-size: 100% 100%;
+ background-position: center;
+ background-repeat: no-repeat;
+}
+
+.sbui-radio:checked {
+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
+} */
+
+/* .sbui-radio {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ -webkit-print-color-adjust: exact;
+ color-adjust: exact;
+ background-origin: border-box;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ flex-shrink: 0;
+} */
+
+.sbui-radio-group-contents {
+ @apply dark:bg-transparent rounded-md -space-y-px;
+}
+
+/*
+ Label sizes
+*/
+
+.sbui-radio-container--tiny .sbui-radio-label,
+.sbui-radio-container--tiny .sbui-radio-label-text,
+.sbui-radio-container--tiny .sbui-radio-label-description {
+ @apply text-xs;
+}
+.sbui-radio-container--small .sbui-radio-label,
+.sbui-radio-container--small .sbui-radio-label-text,
+.sbui-radio-container--small .sbui-radio-label-description {
+ @apply text-sm;
+}
+.sbui-radio-container--medium .sbui-radio-label,
+.sbui-radio-container--medium .sbui-radio-label-text,
+.sbui-radio-container--medium .sbui-radio-label-description {
+ @apply text-sm;
+}
+.sbui-radio-container--large .sbui-radio-label,
+.sbui-radio-container--large .sbui-radio-label-text,
+.sbui-radio-container--large .sbui-radio-label-description {
+ @apply text-base;
+}
+.sbui-radio-container--xlarge .sbui-radio-label,
+.sbui-radio-container--xlarge .sbui-radio-label-text,
+.sbui-radio-container--xlarge .sbui-radio-label-description {
+ @apply text-base;
+}
diff --git a/packages/common2/src/components/Radio/Radio.stories.tsx b/packages/common2/src/components/Radio/Radio.stories.tsx
new file mode 100644
index 00000000000..b2b17c3267f
--- /dev/null
+++ b/packages/common2/src/components/Radio/Radio.stories.tsx
@@ -0,0 +1,355 @@
+import React from 'react'
+
+import { action } from '@storybook/addon-actions'
+
+import Radio from '.'
+
+const stackedOptions = [
+ {
+ label: 'Hobby',
+ description: '8GB / 4 CPUs · 160 GB SSD disk',
+ value: '1',
+ align: 'vertical',
+ optionalLabel: <div>$40 / mo</div>,
+ },
+ {
+ label: 'Startup',
+ description: '12GB / 6 CPUs · 256 GB SSD disk',
+ value: '2',
+ align: 'vertical',
+ optionalLabel: <div>$40 / mo</div>,
+ },
+ {
+ label: 'Business',
+ description: '16GB / 8 CPUs · 512 GB SSD disk',
+ value: '3',
+ align: 'vertical',
+ optionalLabel: <div>$40 / mo</div>,
+ },
+ {
+ label: 'Enterprise',
+ description: '32GB / 12 CPUs · 1024 GB SSD disk',
+ value: '4',
+ align: 'vertical',
+ optionalLabel: <div>$40 / mo</div>,
+ },
+]
+
+const smallOptions = [
+ {
+ label: '4 GB',
+ value: '1',
+ },
+ {
+ label: '8GB',
+ value: '2',
+ },
+ {
+ label: '16GB',
+ value: '3',
+ },
+ {
+ label: '32GB',
+ value: '3',
+ },
+ {
+ label: '64GB',
+ value: '4',
+ },
+ {
+ label: '128GB',
+ value: '5',
+ disabled: true,
+ },
+]
+
+const options = [
+ {
+ label: 'Comments',
+ description:
+ 'Get notified when someones posts a comment on a posting. Get notified when someones posts a comment on a posting Get notified when someones posts a comment on a posting.',
+ value: '1',
+ align: 'vertical',
+ },
+ {
+ label: 'Candidates',
+ description:
+ 'Get notified when a candidate applies for a job. Get notified when a candidate applies for a job. Get notified when a candidate applies for a job. Get notified when a candidate applies for a job. Get notified when a candidate applies for a job. ',
+ value: '2',
+ align: 'vertical',
+ },
+ {
+ label: 'Offers',
+ description: 'Get notified when a candidate accepts or rejects an offer.',
+ value: '3',
+ align: 'vertical',
+ },
+ {
+ label: 'Offers4',
+ description: 'Get notified when a candidate accepts or rejects an offer.',
+ value: '4',
+ align: 'vertical',
+ },
+ {
+ label: 'Offers5',
+ description: 'Get notified when a candidate accepts or rejects an offer.',
+ value: '5',
+ align: 'vertical',
+ },
+]
+
+export default {
+ title: 'Data Input/Radio',
+ component: Radio,
+ argTypes: { onChange: { action: 'onChange' } },
+}
+
+interface onToggleProps {
+ e?: any
+}
+
+export const SimpleList = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ <Radio label="Email" value={1} />
+ <Radio label="Phone" value={2} />
+ <Radio label="SMS" value={3} />
+ </Radio.Group>
+)
+
+SimpleList.args = {
+ descriptionText: 'This is optional description',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'vertical',
+ name: 'SimpleList-example',
+ align: 'vertical',
+}
+
+export const ListWithDescription = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ <Radio
+ label="Small"
+ description="4 GB RAM / 2 CPUS / 80 GB SSD Storage"
+ value={1}
+ />
+ <Radio
+ label="Medium"
+ description="8 GB RAM / 4 CPUS / 160 GB SSD Storage"
+ value={2}
+ />
+ <Radio
+ label="Large"
+ description="16 GB RAM / 8 CPUS / 320 GB SSD Storag"
+ value={3}
+ />
+ </Radio.Group>
+)
+
+ListWithDescription.args = {
+ descriptionText: 'This is optional description',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'vertical',
+ name: 'radiogroup-example-1',
+ align: 'vertical',
+}
+
+export const ListWithInlineDescription = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ <Radio
+ label="Small"
+ description="4 GB RAM / 2 CPUS / 80 GB SSD Storage"
+ value={1}
+ align="horizontal"
+ />
+ <Radio
+ label="Medium"
+ description="8 GB RAM / 4 CPUS / 160 GB SSD Storage"
+ value={2}
+ align="horizontal"
+ />
+ <Radio
+ label="Large"
+ description="16 GB RAM / 8 CPUS / 320 GB SSD Storag"
+ value={3}
+ align="horizontal"
+ />
+ </Radio.Group>
+)
+
+ListWithInlineDescription.args = {
+ descriptionText: 'This is optional description',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'vertical',
+ name: 'radiogroup-example-1',
+ align: 'vertical',
+}
+
+export const largeCards = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ <Radio
+ label="Small"
+ description="4 GB RAM / 2 CPUS / 80 GB SSD Storage"
+ value={1}
+ align={args.align}
+ optionalLabel="Something"
+ />
+ <Radio
+ label="Medium"
+ description="8 GB RAM / 4 CPUS / 160 GB SSD Storage"
+ value={2}
+ align={args.align}
+ optionalLabel="Something"
+ />
+ <Radio
+ label="Large"
+ description="16 GB RAM / 8 CPUS / 320 GB SSD Storag"
+ value={3}
+ align={args.align}
+ optionalLabel="Something"
+ />
+ </Radio.Group>
+)
+
+largeCards.args = {
+ descriptionText: 'This is optional description',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'vertical',
+ name: 'radiogroup-example-1',
+ align: 'vertical',
+ type: 'large-cards',
+}
+
+export const withOptionsObj = (args: any) => <Radio.Group {...args} />
+
+export const withCards = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ {options.map((x, i) => (
+ <Radio
+ align={args.align}
+ name="sbui-radiogroup"
+ key={i}
+ label={x.label}
+ description={x.description}
+ value={x.value}
+ />
+ ))}
+ </Radio.Group>
+)
+
+export const withStackedCards = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ {stackedOptions.map((x, i) => (
+ <Radio
+ name="sbui-radiogroup"
+ key={i}
+ align={args.align}
+ label={x.label}
+ description={x.description}
+ value={x.value}
+ hidden={true}
+ optionalLabel={x.optionalLabel}
+ />
+ ))}
+ </Radio.Group>
+)
+
+export const withSmallCards = (args: any) => (
+ <Radio.Group {...args} onChange={action('onChange')}>
+ {smallOptions.map((x, i) => (
+ <Radio
+ name="sbui-radiogroup"
+ key={i}
+ label={x.label}
+ value={x.value}
+ hidden={true}
+ disabled={x.disabled}
+ />
+ ))}
+ </Radio.Group>
+)
+
+export const withCardsAndOptions = (args: any) => <Radio.Group {...args} />
+
+export const withBeforeAndAfterLabels = (args: any) => <Radio.Group {...args} />
+
+withOptionsObj.args = {
+ className: 'font-sans',
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'vertical',
+ name: 'radiogroup-example-2',
+ options: options,
+}
+
+withCards.args = {
+ className: 'font-sans',
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'horizontal',
+ name: 'radiogroup-example-3',
+ type: 'cards',
+ align: 'vertical',
+}
+
+withStackedCards.args = {
+ className: 'font-sans',
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'horizontal',
+ name: 'radiogroup-example-3',
+ type: 'stacked-cards',
+ align: 'vertical',
+}
+
+withSmallCards.args = {
+ className: 'font-sans',
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'vertical',
+ name: 'radiogroup-example-3',
+ type: 'small-cards',
+ align: 'horizontal',
+}
+
+withCardsAndOptions.args = {
+ className: 'font-sans',
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+ layout: 'horizontal',
+ name: 'radiogroup-example-3',
+ options: options,
+ type: 'cards',
+ align: 'vertical',
+}
+
+withBeforeAndAfterLabels.args = {
+ label: 'Label',
+ beforeLabel: 'Before : ',
+ afterLabel: ' : After',
+ options: [
+ {
+ label: 'Label',
+ beforeLabel: 'Before : ',
+ afterLabel: ' : After',
+ description: 'Description',
+ },
+ ],
+}
diff --git a/packages/common2/src/components/Radio/Radio.tsx b/packages/common2/src/components/Radio/Radio.tsx
new file mode 100644
index 00000000000..c56a24c5bf6
--- /dev/null
+++ b/packages/common2/src/components/Radio/Radio.tsx
@@ -0,0 +1,319 @@
+import React, { useEffect, useState, createRef } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+import { RadioContext } from './RadioContext'
+
+import { useFormContext } from '../Form/FormContext'
+
+import defaultTheme from '../../lib/theme/defaultTheme'
+import styleHandler from '../../lib/theme/styleHandler'
+
+import randomIdGenerator from './../../utils/randomIdGenerator'
+
+interface GroupProps {
+ allowedValues?: any
+ checkboxes?: any
+ id?: any
+ layout?: 'horizontal' | 'vertical'
+ error?: any
+ descriptionText?: any
+ label?: any
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: any
+ name?: any
+ type?: 'cards' | 'list' | 'small-cards' | 'large-cards'
+ transform?: any
+ value?: any
+ className?: any
+ children?: React.ReactNode
+ options?: Array<InputProps>
+ onChange?(x: React.ChangeEvent<HTMLInputElement>): void
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ validation?: (x: any) => void
+ groupClassName?: string
+ labelsLayout?: 'horizontal' | 'vertical'
+}
+
+function RadioGroup({
+ id,
+ layout,
+ error,
+ descriptionText,
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ children,
+ className,
+ type = 'list',
+ options,
+ value,
+ name,
+ onChange,
+ size = 'medium',
+ validation,
+ groupClassName,
+ labelsLayout = 'vertical',
+}: GroupProps) {
+ const [activeId, setActiveId] = useState('')
+
+ const __styles = styleHandler('radio')
+
+ const {
+ formContextOnChange,
+ values,
+ errors,
+ // handleBlur,
+ touched,
+ fieldLevelValidation,
+ } = useFormContext()
+
+ if (values && !value) value = values[id || name]
+ // console.log('errors in. radio group', errors)
+ // console.log('values in radio group', values)
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id || name] ? error : undefined
+ }
+
+ useEffect(() => {
+ if (validation) fieldLevelValidation(id, validation(value))
+ }, [])
+
+ useEffect(() => {
+ setActiveId(value)
+ }, [value])
+
+ function parentCallback(e: React.ChangeEvent<HTMLInputElement>) {
+ if (onChange) onChange(e)
+ // update form
+ if (formContextOnChange) {
+ formContextOnChange(e)
+ }
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(e.target.value))
+ setActiveId(e.target.id)
+ }
+
+ return (
+ <fieldset name={name} className={className}>
+ <FormLayout
+ nonBoxInput={true}
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ size={size}
+ labelLayout={labelsLayout}
+ >
+ <div className={groupClassName || __styles.variants[type].group}>
+ <RadioContext.Provider
+ value={{ parentCallback, type, name, activeId, parentSize: size }}
+ >
+ {options
+ ? options.map((option: InputProps) => {
+ return (
+ <Radio
+ id={option.id}
+ label={option.label}
+ beforeLabel={option.beforeLabel}
+ afterLabel={option.afterLabel}
+ value={option.value}
+ description={option.description}
+ />
+ )
+ })
+ : children}
+ </RadioContext.Provider>
+ </div>
+ </FormLayout>
+ </fieldset>
+ )
+}
+
+interface InputProps
+ extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
+ label: string
+ afterLabel?: string
+ beforeLabel?: string
+ description?: string
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ hidden?: boolean
+ align?: 'vertical' | 'horizontal'
+ optionalLabel?: 'string' | React.ReactNode
+ addOnBefore?: React.ReactNode
+}
+
+function Radio({
+ id = randomIdGenerator(),
+ disabled,
+ value,
+ label,
+ afterLabel,
+ beforeLabel,
+ description,
+ name,
+ checked,
+ onChange,
+ onFocus,
+ onBlur,
+ hidden = false,
+ size = 'medium',
+ align = 'vertical',
+ optionalLabel,
+ addOnBefore,
+}: InputProps) {
+ const __styles = styleHandler('radio')
+
+ const inputName = name
+
+ const { handleBlur } = useFormContext()
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLInputElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ return (
+ <RadioContext.Consumer>
+ {({ parentCallback, type, name, activeId, parentSize }) => {
+ // if id does not exist, use label
+
+ const markupId = id
+
+ // if name does not exist on Radio then use Context Name from Radio.Group
+ const markupName = name || inputName
+
+ // console.log('markupName', markupName)
+ // @ts-ignore
+ size = parentSize || size
+
+ // check if radio id is via parent component
+ // then check if radio checked prop is true or false
+ // if no boolean exists the checkbox will rely on native control
+ const active =
+ activeId === markupId
+ ? true
+ : checked
+ ? true
+ : checked === false
+ ? false
+ : undefined
+
+ let classes = [
+ __styles.variants[type].container.base,
+ // __styles.variants[type].container.align[align],
+ type === 'list' &&
+ !hidden &&
+ __styles.variants[type].container.size[size],
+ ]
+
+ classes.push(__styles.variants[type].base)
+ classes.push(__styles.variants[type].size[size])
+
+ if (active) {
+ classes.push(__styles.variants[type].active)
+ } else {
+ classes.push(__styles.variants[type].inactive)
+ }
+
+ if (disabled) {
+ classes.push(__styles.disabled)
+ }
+
+ if (type !== 'list') hidden = true
+
+ function onInputChange(e: React.ChangeEvent<HTMLInputElement>) {
+ // '`onChange` callback for parent component
+ if (parentCallback) {
+ parentCallback(e)
+ }
+ // '`onChange` callback for this component
+ if (onChange) onChange(e)
+ }
+
+ return (
+ <label htmlFor={markupId} className={classes.join(' ')}>
+ <input
+ id={markupId}
+ name={markupName}
+ type="radio"
+ className={[
+ __styles.base,
+ __styles.size[size],
+ hidden && __styles.hidden,
+ __styles.variants[type].radio_offset,
+ '',
+ ].join(' ')}
+ checked={active}
+ disabled={disabled}
+ value={value ? value : markupId}
+ onChange={(e) => onInputChange(e)}
+ onBlur={handleBlurEvent}
+ onFocus={onFocus ? (event) => onFocus(event) : undefined}
+ />
+ {addOnBefore}
+ <div
+ className={[
+ __styles.label.base,
+ __styles.label[size],
+ __styles.variants[type].container.align[align],
+ ].join(' ')}
+ >
+ {beforeLabel && (
+ <span
+ className={[
+ __styles.label_before.base,
+ __styles.label_before[size],
+ ].join(' ')}
+ >
+ {beforeLabel}
+ </span>
+ )}
+ <span>{label}</span>
+ {afterLabel && (
+ <span
+ className={[
+ __styles.label_after.base,
+ __styles.label_after[size],
+ ].join(' ')}
+ >
+ {afterLabel}
+ </span>
+ )}
+ {description && (
+ <p
+ className={[
+ __styles.description.base,
+ __styles.description[size],
+ ].join(' ')}
+ >
+ {description}
+ </p>
+ )}
+ </div>
+ {optionalLabel && (
+ <div
+ className={[
+ __styles.optionalLabel.base,
+ __styles.optionalLabel[size],
+ ].join(' ')}
+ >
+ {optionalLabel}
+ </div>
+ )}
+ </label>
+ )
+ }}
+ </RadioContext.Consumer>
+ )
+}
+
+Radio.Group = RadioGroup
+
+export default Radio
diff --git a/packages/common2/src/components/Radio/RadioContext.tsx b/packages/common2/src/components/Radio/RadioContext.tsx
new file mode 100644
index 00000000000..08bcd309eaf
--- /dev/null
+++ b/packages/common2/src/components/Radio/RadioContext.tsx
@@ -0,0 +1,11 @@
+import { createContext } from 'react'
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+export const RadioContext = createContext({
+ parentCallback: (e: any) => {},
+ type: '',
+ name: '',
+ activeId: '',
+ parentSize: '',
+})
diff --git a/packages/common2/src/components/Radio/index.tsx b/packages/common2/src/components/Radio/index.tsx
new file mode 100644
index 00000000000..7089f813ecf
--- /dev/null
+++ b/packages/common2/src/components/Radio/index.tsx
@@ -0,0 +1,3 @@
+import Radio from './Radio'
+export default Radio
+export { default as Radio } from './Radio'
diff --git a/packages/common2/src/components/RadioOld/Radio.css b/packages/common2/src/components/RadioOld/Radio.css
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/packages/common2/src/components/RadioOld/Radio.js b/packages/common2/src/components/RadioOld/Radio.js
new file mode 100644
index 00000000000..df1a3adeb63
--- /dev/null
+++ b/packages/common2/src/components/RadioOld/Radio.js
@@ -0,0 +1,26 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+import './Radio.css'
+
+const Radio = ({
+ className = '',
+ label = '',
+ containerClassName = '',
+ children,
+ ...props
+}) => {
+
+ return (
+ <label className={`inline-flex items-center ${containerClassName}`}>
+ <input type="radio" className={`form-radio border-solid h-4 w-4 ${className}`} {...props} />
+ <span className="ml-2">{label}</span>
+ </label>
+ )
+}
+
+Radio.propTypes = {
+ label: PropTypes.string,
+ className: PropTypes.string,
+}
+
+export default Radio
diff --git a/packages/common2/src/components/RadioOld/Radio.stories.js b/packages/common2/src/components/RadioOld/Radio.stories.js
new file mode 100644
index 00000000000..db71931862c
--- /dev/null
+++ b/packages/common2/src/components/RadioOld/Radio.stories.js
@@ -0,0 +1,26 @@
+import React from 'react'
+
+import { Radio } from '.'
+
+export default {
+ title: 'Archive/Radio',
+ component: Radio,
+}
+
+export const Default = (args) => (
+ <div className="block font-sans">
+ <div>
+ <Radio name="radio-group" label="JavaScript" {...args} />
+ </div>
+ <div>
+ <Radio name="radio-group" label="TypeScript" {...args} />
+ </div>
+ <div>
+ <Radio name="radio-group" label="ReScript" {...args} />
+ </div>
+ </div>
+)
+
+Default.args = {
+ disabled: false,
+}
diff --git a/packages/common2/src/components/RadioOld/Radio.test.js b/packages/common2/src/components/RadioOld/Radio.test.js
new file mode 100644
index 00000000000..7eaa33451b4
--- /dev/null
+++ b/packages/common2/src/components/RadioOld/Radio.test.js
@@ -0,0 +1,19 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Radio from './Radio'
+
+describe('#Radio', () => {
+ it('should render radio correctly', () => {
+ render(
+ <Radio data-testid="form-radio" />
+ )
+ expect(screen.queryByTestId('form-radio')).toBeInTheDocument()
+ })
+
+ it('should show label', () => {
+ render(
+ <Radio data-testid="form-radio" label="JavaScript" />
+ )
+ expect(screen.queryByText('JavaScript')).toBeInTheDocument()
+ })
+})
\ No newline at end of file
diff --git a/packages/common2/src/components/RadioOld/index.js b/packages/common2/src/components/RadioOld/index.js
new file mode 100644
index 00000000000..e200e77534e
--- /dev/null
+++ b/packages/common2/src/components/RadioOld/index.js
@@ -0,0 +1 @@
+export { default as Radio } from './Radio'
diff --git a/packages/common2/src/components/Select/Select.module.css b/packages/common2/src/components/Select/Select.module.css
new file mode 100644
index 00000000000..3da01903c65
--- /dev/null
+++ b/packages/common2/src/components/Select/Select.module.css
@@ -0,0 +1,86 @@
+.sbui-select-container {
+ @apply relative;
+}
+
+.sbui-select {
+ @apply block w-full bg-white pl-3 pr-10 py-2 text-sm rounded-md shadow-sm transition-all;
+
+ @apply text-input-value-light border border-solid border-input-border-light;
+ @apply focus:ring-input-border-focus-light focus:border-input-border-focus-light focus:outline-none;
+
+ @apply dark:bg-transparent dark:text-input-value-dark dark:border-input-border-dark;
+ @apply dark:focus:border-input-border-focus-dark dark:focus:ring-input-border-focus-dark;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ text-overflow: '';
+ /* box-shadow: 0 0 0 2px rgba(255, 255, 255, 0); */
+ transition: box-shadow 0.3s ease-in-out;
+
+ /* // temporary fix
+ //
+ // temporary fix for supabase apps
+ // tailwind @base styles adds a dropdown chevron
+ // using background image as default
+ // */
+ background-image: none;
+}
+
+.sbui-select option {
+ @apply bg-white text-gray-800;
+}
+
+.sbui-select:focus {
+ box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.1);
+}
+
+.sbui-select--error {
+ @apply border-red-500 dark:border-red-500;
+}
+
+.sbui-select--borderless {
+ @apply border-transparent shadow-none;
+}
+
+/*
+ Select sizes
+*/
+
+.sbui-select--tiny {
+ @apply px-2.5 py-1.5 text-xs;
+}
+.sbui-select--small {
+ @apply px-3 py-2 text-sm leading-4;
+}
+.sbui-select--medium {
+ @apply px-4 py-2 text-sm;
+}
+.sbui-select--large {
+ @apply px-4 py-2 text-base;
+}
+.sbui-select--xlarge {
+ @apply px-6 py-3 text-base;
+}
+
+.sbui-select-actions-container {
+ @apply absolute inset-y-0 right-0 pl-3 pr-1 mr-5 flex items-center;
+}
+
+/*
+ Select icon
+*/
+
+.sbui-select--with-icon {
+ @apply pl-10;
+}
+
+/*
+ Select Chevron
+*/
+
+.sbui-select-chevron-container {
+ @apply absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none;
+}
+
+.sbui-select-chevron {
+ @apply h-5 w-5 text-gray-400;
+}
diff --git a/packages/common2/src/components/Select/Select.stories.tsx b/packages/common2/src/components/Select/Select.stories.tsx
new file mode 100644
index 00000000000..b69cad8efd9
--- /dev/null
+++ b/packages/common2/src/components/Select/Select.stories.tsx
@@ -0,0 +1,183 @@
+import React from 'react'
+
+import Select from '.'
+import { IconBook } from '../../index'
+
+const { Option, OptGroup } = Select
+
+export default {
+ title: 'Data Input/Select',
+ component: Select,
+}
+
+export const Default = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+export const withCheckboxes = (args: any) => <Select {...args} />
+
+export const ErrorState = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+export const withOptionGroup = (args: any) => (
+ <Select {...args}>
+ <OptGroup label="languages">
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ </OptGroup>
+ <OptGroup label="libaries">
+ <Option value="react">React</Option>
+ </OptGroup>
+ </Select>
+)
+
+export const withIcon = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+export const withOptionLabel = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+export const withBeforeAndAfterLabel = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+export const withDescription = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+export const size = (args: any) => (
+ <Select {...args}>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </Select>
+)
+
+const data = ['England', 'Wales', 'Scotland', 'Ireland']
+const icon = <IconBook type={'Book'} />
+
+Default.args = {
+ disabled: false,
+ label: 'Label',
+ className: 'font-sans',
+ layout: 'vertical',
+ children: [
+ <>
+ <Option value="javascript">JavaScript</Option>
+ <Option value="typeScript">TypeScript</Option>
+ <Option value="react">React</Option>
+ </>,
+ ],
+}
+
+withOptionGroup.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ className: 'font-sans',
+ value: 'Value of input',
+ layout: 'vertical',
+}
+
+withCheckboxes.args = {
+ disabled: false,
+ checkboxes: data,
+ allowedValues: data,
+ className: 'font-sans',
+ layout: 'vertical',
+}
+
+ErrorState.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ className: 'font-sans',
+ value: 'Value of input',
+ error: 'Your password must be less than 4 characters.',
+ allowedValues: data,
+ layout: 'vertical',
+}
+
+withIcon.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an Icon',
+ className: 'font-sans',
+ value: 'Value of input',
+ icon: icon,
+ allowedValues: data,
+ layout: 'vertical',
+}
+
+withOptionLabel.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ className: 'font-sans',
+ value: 'Value of input',
+ labelOptional: 'This is required',
+ allowedValues: data,
+ layout: 'vertical',
+}
+
+withBeforeAndAfterLabel.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Label',
+ beforeLabel: 'Before : ',
+ afterLabel: ' : After',
+ className: 'font-sans',
+ value: 'Value of input',
+ labelOptional: 'This is required',
+ allowedValues: data,
+ layout: 'vertical',
+}
+
+withDescription.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with an error message',
+ className: 'font-sans',
+ value: 'Value of input',
+ descriptionText: 'Make your password short and easy to guess',
+ allowedValues: data,
+ layout: 'vertical',
+}
+
+size.args = {
+ placeholder: 'Type text here ...',
+ disabled: false,
+ label: 'Input with a size selected',
+ value: 'Value of input',
+ descriptionText: 'Choose a different size and font and padding will change',
+ allowedValues: data,
+ layout: 'vertical',
+ size: 'tiny',
+}
diff --git a/packages/common2/src/components/Select/Select.test.js b/packages/common2/src/components/Select/Select.test.js
new file mode 100644
index 00000000000..2615c4dd687
--- /dev/null
+++ b/packages/common2/src/components/Select/Select.test.js
@@ -0,0 +1,27 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Select from './Select'
+
+describe('#Select', () => {
+ it('should render select correctly', async () => {
+ render(
+ <Select data-testid="form-select">
+ <option>1</option>
+ <option>2</option>
+ </Select>
+ )
+ expect(screen.queryByTestId('form-select')).toBeInTheDocument()
+ })
+
+ it('should have "form-select--error" class', () => {
+ render(
+ <Select error data-testid="form-select">
+ <option>1</option>
+ <option>2</option>
+ </Select>
+ )
+ expect(screen.queryByTestId('form-select')).toHaveClass(
+ 'sbui-select sbui-select--error sbui-select--medium'
+ )
+ })
+})
diff --git a/packages/common2/src/components/Select/Select.tsx b/packages/common2/src/components/Select/Select.tsx
new file mode 100644
index 00000000000..96f2256d615
--- /dev/null
+++ b/packages/common2/src/components/Select/Select.tsx
@@ -0,0 +1,195 @@
+import React, { useEffect } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+import InputErrorIcon from '../../lib/Layout/InputErrorIcon'
+import InputIconContainer from '../../lib/Layout/InputIconContainer'
+
+import { useFormContext } from '../Form/FormContext'
+
+import defaultTheme from '../../lib/theme/defaultTheme'
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface OptionProps {
+ value: string
+ children: React.ReactNode
+ selected?: boolean
+}
+
+interface OptGroupProps {
+ label: string
+ children: React.ReactNode
+}
+
+export interface Props
+ extends Omit<React.InputHTMLAttributes<HTMLSelectElement>, 'size'> {
+ autofocus?: boolean
+ children: React.ReactNode
+ descriptionText?: string
+ error?: string
+ icon?: any
+ inputRef?: string
+ label?: string
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: string
+ layout?: 'horizontal' | 'vertical'
+ reveal?: boolean
+ actions?: React.ReactNode
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ borderless?: boolean
+ validation?: (x: any) => void
+}
+
+export const ColLayout = (props: any) => (
+ <div className="">{props.children}</div>
+)
+
+function Select({
+ autoComplete,
+ autofocus,
+ children,
+ className,
+ descriptionText,
+ disabled,
+ error,
+ icon,
+ id = '',
+ inputRef,
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ layout,
+ name = '',
+ onChange,
+ onFocus,
+ onBlur,
+ placeholder,
+ required,
+ value = undefined,
+ defaultValue = undefined,
+ style,
+ size = 'medium',
+ borderless = false,
+ validation,
+ ...props
+}: Props) {
+ const {
+ formContextOnChange,
+ values,
+ errors,
+ handleBlur,
+ touched,
+ fieldLevelValidation,
+ } = useFormContext()
+
+ if (values && !value) value = values[id]
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLSelectElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id || name] ? error : undefined
+ }
+
+ function onInputChange(e: React.ChangeEvent<HTMLSelectElement>) {
+ if (onChange) onChange(e)
+ // update form
+ if (formContextOnChange) formContextOnChange(e)
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(e.target.value))
+ }
+
+ useEffect(() => {
+ if (validation) fieldLevelValidation(id, validation(value))
+ }, [])
+
+ const __styles = styleHandler('select')
+
+ let classesContainer = [__styles.container]
+ if (className) classesContainer.push(className)
+
+ let classes = [__styles.base]
+ if (error) classes.push(__styles.variants.error)
+ if (!error) classes.push(__styles.variants.standard)
+ if (icon) classes.push(__styles.with_icon)
+ if (size) classes.push(__styles.size[size])
+ if (disabled) classes.push(__styles.disabled)
+
+ return (
+ <FormLayout
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ descriptionText={descriptionText}
+ className={className}
+ style={style}
+ size={size}
+ >
+ <div className={__styles.container}>
+ <select
+ id={id}
+ name={name}
+ autoComplete={autoComplete}
+ autoFocus={autofocus}
+ className={classes.join(' ')}
+ onChange={onInputChange}
+ onFocus={onFocus ? (event) => onFocus(event) : undefined}
+ onBlur={handleBlurEvent}
+ ref={inputRef}
+ value={value}
+ disabled={disabled}
+ required={required}
+ placeholder={placeholder}
+ {...props}
+ >
+ {children}
+ </select>
+ {icon && <InputIconContainer icon={icon} />}
+ {error && (
+ <div className={__styles.actions_container}>
+ {error && <InputErrorIcon size={size} />}
+ </div>
+ )}
+ <span className={__styles.chevron_container}>
+ <svg
+ className={__styles.chevron}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ fillRule="evenodd"
+ d="M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z"
+ clipRule="evenodd"
+ />
+ </svg>
+ </span>
+ </div>
+ </FormLayout>
+ )
+}
+
+export function Option({ value, children, selected }: OptionProps) {
+ return (
+ <option value={value} selected={selected}>
+ {children}
+ </option>
+ )
+}
+
+export function OptGroup({ label, children }: OptGroupProps) {
+ return <optgroup label={label}>{children}</optgroup>
+}
+
+Select.Option = Option
+Select.OptGroup = OptGroup
+
+export default Select
diff --git a/packages/common2/src/components/Select/index.tsx b/packages/common2/src/components/Select/index.tsx
new file mode 100644
index 00000000000..631a630e25f
--- /dev/null
+++ b/packages/common2/src/components/Select/index.tsx
@@ -0,0 +1,3 @@
+import Select from './Select'
+export default Select
+export { default as Select } from './Select'
diff --git a/packages/common2/src/components/SidePanel/SidePanel.module.css b/packages/common2/src/components/SidePanel/SidePanel.module.css
new file mode 100644
index 00000000000..edb7edff6ec
--- /dev/null
+++ b/packages/common2/src/components/SidePanel/SidePanel.module.css
@@ -0,0 +1,124 @@
+/*
+ Side Panel animations imported first as so placement styles are not affected.
+*/
+
+/* overlay animation */
+.sbui-sidepanel-overlay--enter {
+ @apply ease-out duration-200;
+}
+.sbui-sidepanel-overlay--enterFrom {
+ @apply opacity-0;
+}
+.sbui-sidepanel-overlay--enterTo {
+ @apply opacity-100;
+}
+.sbui-sidepanel-overlay--leave {
+ @apply ease-in duration-200;
+}
+.sbui-sidepanel-overlay--leaveFrom {
+ @apply opacity-100;
+}
+.sbui-sidepanel-overlay--leaveTo {
+ @apply opacity-0;
+}
+
+/* panel animation */
+.sbui-sidepanel--enter {
+ @apply transform transition ease-in-out duration-200 lg:duration-300;
+}
+.sbui-sidepanel--enterFrom {
+ @apply translate-x-full;
+}
+.sbui-sidepanel--enterFrom--left {
+ @apply -translate-x-full;
+}
+.sbui-sidepanel--enterTo {
+ @apply translate-x-0;
+}
+.sbui-sidepanel--leave {
+ @apply transform transition ease-in-out duration-200 lg:duration-300;
+}
+.sbui-sidepanel--leaveFrom {
+ @apply translate-x-0;
+}
+.sbui-sidepanel--leaveTo {
+ @apply translate-x-full;
+}
+.sbui-sidepanel--leaveTo--left {
+ @apply -translate-x-full;
+}
+
+/* .sbui-sidepanel-overlay-container {
+ @apply fixed inset-0 transition-opacity;
+} */
+
+/* .sbui-sidepanel-overlay {
+ @apply absolute inset-0 bg-scale-300 opacity-75;
+} */
+
+.sbui-sidepanel--left {
+ @apply left-0 pr-10;
+}
+
+.sbui-sidepanel--right {
+ @apply right-0 pl-10;
+}
+
+.sbui-sidepanel--medium {
+ @apply w-screen max-w-md h-full;
+}
+
+.sbui-sidepanel--wide {
+ @apply w-screen max-w-2xl h-full;
+}
+
+/* .sbui-sidepanel-fixed {
+ @apply fixed inset-0 overflow-hidden;
+} */
+
+/* .sbui-sidepanel-absolute {
+ @apply absolute inset-0 overflow-hidden;
+} */
+
+/* .sbui-sidepanel-container {
+ @apply absolute inset-y-0 max-w-full flex h-screen;
+} */
+
+/* .sbui-sidepanel {
+ @apply h-full flex flex-col bg-white dark:bg-dark-700 shadow-xl;
+} */
+
+.sbui-sidepanel-header {
+ @apply space-y-1 py-6 px-4 bg-gray-50 dark:bg-dark-600 sm:px-6;
+}
+
+.sbui-sidepanel-close-container {
+ @apply h-7 flex items-center;
+}
+
+.sbui-sidepanel-close-container button,
+.dark .sbui-sidepanel-close-container button {
+ @apply text-gray-300;
+ @apply hover:text-gray-400;
+
+ /* @apply dark:text-dark-400; */
+ /* @apply dark:hover:text-dark-300; */
+
+ @apply hover:bg-transparent;
+}
+
+/* .sbui-sidepanel-content {
+ @apply relative flex-1 px-4 sm:px-6;
+} */
+
+.sbui-sidepanel-footer-container {
+ @apply p-4 bg-gray-50 dark:bg-dark-600;
+}
+
+.sbui-sidepanel-footer {
+ @apply flex flex-shrink-0;
+}
+
+.sbui-sidepanel__trigger {
+ @apply border-none bg-transparent p-0 focus:ring-0;
+}
diff --git a/packages/common2/src/components/SidePanel/SidePanel.stories.tsx b/packages/common2/src/components/SidePanel/SidePanel.stories.tsx
new file mode 100644
index 00000000000..d96178102ce
--- /dev/null
+++ b/packages/common2/src/components/SidePanel/SidePanel.stories.tsx
@@ -0,0 +1,261 @@
+import { action } from '@storybook/addon-actions'
+import React, { useState } from 'react'
+import { Button, Space, Typography } from '../../index'
+
+import { SidePanel } from './index'
+
+export default {
+ title: 'Overlays/SidePanel',
+ component: SidePanel,
+}
+
+const content = (
+ <span className="text-scale-900 text-sm">
+ SidePanel content is inserted here, if you need to insert anything into the
+ SidePanel you can do so via
+ <span className="text-code">children</span>
+ </span>
+)
+
+export const Default = (args: any) => (
+ <>
+ <SidePanel
+ {...args}
+ header={
+ <>
+ <h3 className="text-base text-scale-1200">This is the title</h3>
+ <p className="text-xs text-scale-900">This is the title</p>
+ </>
+ }
+ >
+ {content}
+ </SidePanel>
+ </>
+)
+
+export const withWideLayout = (args: any) => (
+ <>
+ <SidePanel {...args}>{content}</SidePanel>
+ </>
+)
+
+export const leftAlignedFooter = (args: any) => (
+ <>
+ <SidePanel {...args}>{content}</SidePanel>
+ </>
+)
+
+export const leftAligned = (args: any) => (
+ <>
+ <SidePanel {...args}>{content}</SidePanel>
+ </>
+)
+
+export const hideFooter = (args: any) => (
+ <>
+ <SidePanel {...args}>{content}</SidePanel>
+ </>
+)
+
+export const customFooter = (args: any) => (
+ <>
+ <SidePanel {...args}>{content}</SidePanel>
+ </>
+)
+
+export const triggerElement = (args: any) => (
+ <>
+ <SidePanel {...args}>
+ <span className="text-scale-900">
+ This was opened with a trigger element
+ </span>
+ </SidePanel>
+ </>
+)
+
+export const nestedSidepanels = (args: any) => {
+ const [panel1Visible, setPanel1Visible] = useState(false)
+ const [panel2Visible, setPanel2Visible] = useState(false)
+
+ return (
+ <>
+ <div
+ className="
+ p-3 px-5
+ bg-scale-300 border border-scale-600 rounded flex gap-4
+ justify-between
+ items-center
+
+ fixed
+ top-1/2
+ left-1/2
+ w-3/4
+
+ -translate-x-1/2
+ -translate-y-1/2"
+ >
+ <div>
+ <h4 className="text-scale-1200 text-base">
+ Shall we nest some components?
+ </h4>
+ <p className="text-scale-1100 text-sm">yea sure, go on then.</p>
+ </div>
+ <Button type="secondary" onClick={() => setPanel1Visible(true)}>
+ Open sidepanel
+ </Button>
+ </div>
+ <SidePanel
+ visible={panel1Visible}
+ onCancel={() => setPanel1Visible(false)}
+ onConfirm={() => setPanel1Visible(false)}
+ >
+ <div className="space-y-3">
+ <p className="text-sm text-scale-900 font-light">
+ This Sidepanel was opened with a trigger element
+ </p>
+
+ <p className="text-sm text-scale-1200">
+ You can open a nested panel by clicking the button below
+ </p>
+
+ <Button type="secondary" onClick={() => setPanel2Visible(true)}>
+ Open nested sidepanel
+ </Button>
+ </div>
+ <SidePanel
+ visible={panel2Visible}
+ onCancel={() => setPanel2Visible(false)}
+ onConfirm={() => setPanel2Visible(false)}
+ >
+ <Button type="secondary" onClick={() => setPanel2Visible(false)}>
+ Close nested sidepanel
+ </Button>
+ </SidePanel>
+ </SidePanel>
+ </>
+ )
+}
+
+export const longContent = (args: any) => (
+ <>
+ <SidePanel {...args}>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-scale-900">This is a paragraph</p>
+ </SidePanel>
+ </>
+)
+
+Default.args = {
+ visible: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+}
+
+withWideLayout.args = {
+ visible: true,
+ size: 'large',
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+}
+
+leftAlignedFooter.args = {
+ visible: true,
+ alignFooter: 'left',
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+}
+
+leftAligned.args = {
+ visible: true,
+ align: 'left',
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+}
+
+hideFooter.args = {
+ visible: true,
+ hideFooter: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+}
+
+customFooter.args = {
+ visible: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+ customFooter: [
+ <Space>
+ <Button type="secondary">Cancel</Button>
+ <Button danger>Delete</Button>
+ </Space>,
+ ],
+}
+
+triggerElement.args = {
+ visible: true,
+ onCancel: action('onCancel'),
+ onConfirm: action('onConfirm'),
+ title: 'This is the title of the SidePanel',
+ description: 'And i am the description',
+ triggerElement: <Button as="span">Open</Button>,
+}
+
+longContent.args = {
+ visible: true,
+ header: 'Long content',
+}
diff --git a/packages/common2/src/components/SidePanel/SidePanel.tsx b/packages/common2/src/components/SidePanel/SidePanel.tsx
new file mode 100644
index 00000000000..6b54d4aeacc
--- /dev/null
+++ b/packages/common2/src/components/SidePanel/SidePanel.tsx
@@ -0,0 +1,132 @@
+import React from 'react'
+import { Button } from '../../../index'
+import * as Dialog from '@radix-ui/react-dialog'
+import styleHandler from '../../lib/theme/styleHandler'
+
+export type SidePanelProps = RadixProps & CustomProps
+
+interface RadixProps
+ extends Dialog.DialogProps,
+ Pick<
+ Dialog.DialogContentProps,
+ | 'onOpenAutoFocus'
+ | 'onCloseAutoFocus'
+ | 'onEscapeKeyDown'
+ | 'onPointerDownOutside'
+ | 'onInteractOutside'
+ > {}
+
+interface CustomProps {
+ id?: String | undefined
+ className?: String
+ children?: React.ReactNode
+ header?: string | React.ReactNode
+ visible: boolean
+ size?: 'medium' | 'large'
+ loading?: boolean
+ align?: 'right' | 'left'
+ hideFooter?: boolean
+ customFooter?: React.ReactNode
+ onCancel?: () => void
+ cancelText?: String
+ onConfirm?: () => void
+ confirmText?: String
+ triggerElement?: React.ReactNode
+}
+
+const SidePanel = ({
+ id,
+ className,
+ children,
+ header,
+ visible,
+ open,
+ size = 'medium',
+ loading,
+ align = 'right',
+ hideFooter = false,
+ customFooter = undefined,
+ onConfirm,
+ onCancel,
+ confirmText = 'Confirm',
+ cancelText = 'Cancel',
+ triggerElement,
+ defaultOpen,
+ ...props
+}: SidePanelProps) => {
+ const __styles = styleHandler('sidepanel')
+
+ // function stopPropagation(e: React.MouseEvent) {
+ // e.stopPropagation()
+ // }
+
+ const footerContent = customFooter ? (
+ customFooter
+ ) : (
+ <div className={__styles.footer}>
+ <Button disabled={loading} type="default" onClick={() => (onCancel ? onCancel() : null)}>
+ {cancelText}
+ </Button>
+ <Button loading={loading} onClick={() => (onConfirm ? onConfirm() : null)}>
+ {confirmText}
+ </Button>
+ </div>
+ )
+
+ function handleOpenChange(open: boolean) {
+ if (visible !== undefined && !open) {
+ // controlled component behaviour
+ if (onCancel) onCancel()
+ } else {
+ // un-controlled component behaviour
+ // setOpen(open)
+ }
+ }
+
+ open = open || visible
+
+ return (
+ <Dialog.Root open={open} onOpenChange={handleOpenChange} defaultOpen={defaultOpen}>
+ {triggerElement && (
+ <Dialog.Trigger className={__styles.trigger}>{triggerElement}</Dialog.Trigger>
+ )}
+
+ <Dialog.Portal>
+ <Dialog.Overlay className={__styles.overlay} />
+ <Dialog.Content
+ className={[
+ __styles.base,
+ __styles.size[size],
+ __styles.align[align],
+ className && className,
+ ].join(' ')}
+ onOpenAutoFocus={props.onOpenAutoFocus}
+ onCloseAutoFocus={props.onCloseAutoFocus}
+ onEscapeKeyDown={props.onEscapeKeyDown}
+ onPointerDownOutside={props.onPointerDownOutside}
+ onInteractOutside={props.onInteractOutside}
+ >
+ {header && <header className={__styles.header}>{header}</header>}
+ <div className={__styles.contents}>{children}</div>
+ {!hideFooter && footerContent}
+ </Dialog.Content>
+ </Dialog.Portal>
+ </Dialog.Root>
+ )
+}
+
+export function Seperator() {
+ let __styles = styleHandler('sidepanel')
+
+ return <div className={__styles.seperator}></div>
+}
+
+export function Content({ children }: { children: React.ReactNode }) {
+ let __styles = styleHandler('sidepanel')
+
+ return <div className={__styles.content}>{children}</div>
+}
+
+SidePanel.Content = Content
+SidePanel.Seperator = Seperator
+export default SidePanel
diff --git a/packages/common2/src/components/SidePanel/index.tsx b/packages/common2/src/components/SidePanel/index.tsx
new file mode 100644
index 00000000000..6dc75ef8cd9
--- /dev/null
+++ b/packages/common2/src/components/SidePanel/index.tsx
@@ -0,0 +1 @@
+export { default as SidePanel } from './SidePanel'
diff --git a/packages/common2/src/components/Space/Space.module.css b/packages/common2/src/components/Space/Space.module.css
new file mode 100644
index 00000000000..8c34e324523
--- /dev/null
+++ b/packages/common2/src/components/Space/Space.module.css
@@ -0,0 +1,397 @@
+.sbui-space {
+ /* @apply flex; */
+}
+
+.sbui-space-row {
+ /* @apply flex flex-row items-center; */
+}
+
+.sbui-space-col {
+ /* @apply flex flex-col; */
+}
+
+.sbui-space-y-0 {
+ /* @apply space-y-0; */
+}
+.sbui-space-y-0.5 {
+ /* @apply space-y-0.5; */
+}
+.sbui-space-y-1 {
+ /* @apply space-y-1; */
+}
+.sbui-space-y-1.5 {
+ /* @apply space-y-1.5; */
+}
+.sbui-space-y-2 {
+ /* @apply space-y-2; */
+}
+.sbui-space-y-2.5 {
+ /* @apply space-y-2.5; */
+}
+.sbui-space-y-3 {
+ /* @apply space-y-3; */
+}
+.sbui-space-y-3.5 {
+ /* @apply space-y-3.5; */
+}
+.sbui-space-y-4 {
+ /* @apply space-y-4; */
+}
+.sbui-space-y-5 {
+ /* @apply space-y-5; */
+}
+.sbui-space-y-6 {
+ /* @apply space-y-6; */
+}
+.sbui-space-y-7 {
+ /* @apply space-y-7; */
+}
+.sbui-space-y-8 {
+ /* @apply space-y-8; */
+}
+.sbui-space-y-9 {
+ /* @apply space-y-9; */
+}
+.sbui-space-y-10 {
+ /* @apply space-y-10; */
+}
+.sbui-space-y-11 {
+ /* @apply space-y-11; */
+}
+.sbui-space-y-12 {
+ /* @apply space-y-12; */
+}
+.sbui-space-y-14 {
+ /* @apply space-y-14; */
+}
+.sbui-space-y-16 {
+ /* @apply space-y-16; */
+}
+.sbui-space-y-20 {
+ /* @apply space-y-20; */
+}
+.sbui-space-y-24 {
+ /* @apply space-y-24; */
+}
+.sbui-space-y-28 {
+ /* @apply space-y-28; */
+}
+.sbui-space-y-32 {
+ /* @apply space-y-32; */
+}
+.sbui-space-y-36 {
+ /* @apply space-y-36; */
+}
+.sbui-space-y-40 {
+ /* @apply space-y-40; */
+}
+.sbui-space-y-44 {
+ /* @apply space-y-44; */
+}
+.sbui-space-y-48 {
+ /* @apply space-y-48; */
+}
+.sbui-space-y-52 {
+ /* @apply space-y-52; */
+}
+.sbui-space-y-56 {
+ /* @apply space-y-56; */
+}
+.sbui-space-y-60 {
+ /* @apply space-y-60; */
+}
+.sbui-space-y-64 {
+ /* @apply space-y-64; */
+}
+.sbui-space-y-72 {
+ /* @apply space-y-72; */
+}
+.sbui-space-y-80 {
+ /* @apply space-y-80; */
+}
+.sbui-space-y-96 {
+ /* @apply space-y-96; */
+}
+.sbui-space-y-px {
+ /* @apply space-y-px; */
+}
+.sbui-space-x-0 {
+ /* @apply space-x-0; */
+}
+.sbui-space-x-1 {
+ /* @apply space-x-1; */
+}
+.sbui-space-x-2 {
+ /* @apply space-x-2; */
+}
+.sbui-space-x-3 {
+ /* @apply space-x-3; */
+}
+.sbui-space-x-4 {
+ /* @apply space-x-4; */
+}
+.sbui-space-x-5 {
+ /* @apply space-x-5; */
+}
+.sbui-space-x-6 {
+ /* @apply space-x-6; */
+}
+.sbui-space-x-7 {
+ /* @apply space-x-7; */
+}
+.sbui-space-x-8 {
+ /* @apply space-x-8; */
+}
+.sbui-space-x-9 {
+ /* @apply space-x-9; */
+}
+.sbui-space-x-10 {
+ /* @apply space-x-10; */
+}
+.sbui-space-x-11 {
+ /* @apply space-x-11; */
+}
+.sbui-space-x-12 {
+ /* @apply space-x-12; */
+}
+.sbui-space-x-14 {
+ /* @apply space-x-14; */
+}
+.sbui-space-x-16 {
+ /* @apply space-x-16; */
+}
+.sbui-space-x-20 {
+ /* @apply space-x-20; */
+}
+.sbui-space-x-24 {
+ /* @apply space-x-24; */
+}
+.sbui-space-x-28 {
+ /* @apply space-x-28; */
+}
+.sbui-space-x-32 {
+ /* @apply space-x-32; */
+}
+.sbui-space-x-36 {
+ /* @apply space-x-36; */
+}
+.sbui-space-x-40 {
+ /* @apply space-x-40; */
+}
+.sbui-space-x-44 {
+ /* @apply space-x-44; */
+}
+.sbui-space-x-48 {
+ /* @apply space-x-48; */
+}
+.sbui-space-x-52 {
+ /* @apply space-x-52; */
+}
+.sbui-space-x-56 {
+ /* @apply space-x-56; */
+}
+.sbui-space-x-60 {
+ /* @apply space-x-60; */
+}
+.sbui-space-x-64 {
+ /* @apply space-x-64; */
+}
+.sbui-space-x-72 {
+ /* @apply space-x-72; */
+}
+.sbui-space-x-80 {
+ /* @apply space-x-80; */
+}
+.sbui-space-x-96 {
+ /* @apply space-x-96; */
+}
+.sbui-space-x-px {
+ /* @apply space-x-px; */
+}
+.sbui-minus-space-y-0 {
+ /* @apply -space-y-0; */
+}
+.sbui-minus-space-y-1 {
+ /* @apply -space-y-1; */
+}
+.sbui-minus-space-y-2 {
+ /* @apply -space-y-2; */
+}
+.sbui-minus-space-y-3 {
+ /* @apply -space-y-3; */
+}
+.sbui-minus-space-y-4 {
+ /* @apply -space-y-4; */
+}
+.sbui-minus-space-y-5 {
+ /* @apply -space-y-5; */
+}
+.sbui-minus-space-y-6 {
+ /* @apply -space-y-6; */
+}
+.sbui-minus-space-y-7 {
+ /* @apply -space-y-7; */
+}
+.sbui-minus-space-y-8 {
+ /* @apply -space-y-8; */
+}
+.sbui-minus-space-y-9 {
+ /* @apply -space-y-9; */
+}
+.sbui-minus-space-y-10 {
+ /* @apply -space-y-10; */
+}
+.sbui-minus-space-y-11 {
+ /* @apply -space-y-11; */
+}
+.sbui-minus-space-y-12 {
+ /* @apply -space-y-12; */
+}
+.sbui-minus-space-y-14 {
+ /* @apply -space-y-14; */
+}
+.sbui-minus-space-y-16 {
+ /* @apply -space-y-16; */
+}
+.sbui-minus-space-y-20 {
+ /* @apply -space-y-20; */
+}
+.sbui-minus-space-y-24 {
+ /* @apply -space-y-24; */
+}
+.sbui-minus-space-y-28 {
+ /* @apply -space-y-28; */
+}
+.sbui-minus-space-y-32 {
+ /* @apply -space-y-32; */
+}
+.sbui-minus-space-y-36 {
+ /* @apply -space-y-36; */
+}
+.sbui-minus-space-y-40 {
+ /* @apply -space-y-40; */
+}
+.sbui-minus-space-y-44 {
+ /* @apply -space-y-44; */
+}
+.sbui-minus-space-y-48 {
+ /* @apply -space-y-48; */
+}
+.sbui-minus-space-y-52 {
+ /* @apply -space-y-52; */
+}
+.sbui-minus-space-y-56 {
+ /* @apply -space-y-56; */
+}
+.sbui-minus-space-y-60 {
+ /* @apply -space-y-60; */
+}
+.sbui-minus-space-y-64 {
+ /* @apply -space-y-64; */
+}
+.sbui-minus-space-y-72 {
+ /* @apply -space-y-72; */
+}
+.sbui-minus-space-y-80 {
+ /* @apply -space-y-80; */
+}
+.sbui-minus-space-y-96 {
+ /* @apply -space-y-96; */
+}
+.sbui-minus-space-y-px {
+ /* @apply -space-y-px; */
+}
+
+.sbui-minus-space-x-0 {
+ /* @apply -space-x-0; */
+}
+.sbui-minus-space-x-1 {
+ /* @apply -space-x-1; */
+}
+.sbui-minus-space-x-2 {
+ /* @apply -space-x-2; */
+}
+.sbui-minus-space-x-3 {
+ /* @apply -space-x-3; */
+}
+.sbui-minus-space-x-4 {
+ /* @apply -space-x-4; */
+}
+.sbui-minus-space-x-5 {
+ /* @apply -space-x-5; */
+}
+.sbui-minus-space-x-6 {
+ /* @apply -space-x-6; */
+}
+.sbui-minus-space-x-7 {
+ /* @apply -space-x-7; */
+}
+.sbui-minus-space-x-8 {
+ /* @apply -space-x-8; */
+}
+.sbui-minus-space-x-9 {
+ /* @apply -space-x-9; */
+}
+.sbui-minus-space-x-10 {
+ /* @apply -space-x-10; */
+}
+.sbui-minus-space-x-11 {
+ /* @apply -space-x-11; */
+}
+.sbui-minus-space-x-12 {
+ /* @apply -space-x-12; */
+}
+.sbui-minus-space-x-14 {
+ /* @apply -space-x-14; */
+}
+.sbui-minus-space-x-16 {
+ /* @apply -space-x-16; */
+}
+.sbui-minus-space-x-20 {
+ /* @apply -space-x-20; */
+}
+.sbui-minus-space-x-24 {
+ /* @apply -space-x-24; */
+}
+.sbui-minus-space-x-28 {
+ /* @apply -space-x-28; */
+}
+.sbui-minus-space-x-32 {
+ /* @apply -space-x-32; */
+}
+.sbui-minus-space-x-36 {
+ /* @apply -space-x-36; */
+}
+.sbui-minus-space-x-40 {
+ /* @apply -space-x-40; */
+}
+.sbui-minus-space-x-44 {
+ /* @apply -space-x-44; */
+}
+.sbui-minus-space-x-48 {
+ /* @apply -space-x-48; */
+}
+.sbui-minus-space-x-52 {
+ /* @apply -space-x-52; */
+}
+.sbui-minus-space-x-56 {
+ /* @apply -space-x-56; */
+}
+.sbui-minus-space-x-60 {
+ /* @apply -space-x-60; */
+}
+.sbui-minus-space-x-64 {
+ /* @apply -space-x-64; */
+}
+.sbui-minus-space-x-72 {
+ /* @apply -space-x-72; */
+}
+.sbui-minus-space-x-80 {
+ /* @apply -space-x-80; */
+}
+.sbui-minus-space-x-96 {
+ /* @apply -space-x-96; */
+}
+/* .sbui-minus-space-x-px {
+ /* @apply -space-x-; */
+} */
diff --git a/packages/common2/src/components/Space/Space.tsx b/packages/common2/src/components/Space/Space.tsx
new file mode 100644
index 00000000000..c5c75cefa1b
--- /dev/null
+++ b/packages/common2/src/components/Space/Space.tsx
@@ -0,0 +1,43 @@
+import React from 'react'
+// @ts-ignore
+// import SpaceStyles from './Space.module.css'
+
+function Space({
+ direction,
+ size = 2,
+ className,
+ block,
+ style,
+ minus,
+ children,
+}: any) {
+ // const classes = []
+ // classes.push(direction === 'vertical' ? 'sbui-space-col' : 'sbui-space-row')
+ // classes.push(
+ // SpaceStyles[
+ // 'sbui-' +
+ // (minus ? 'minus-' : '') +
+ // 'space-' +
+ // (direction === 'vertical' ? 'y' : 'x') +
+ // '-' +
+ // size
+ // ]
+ // )
+ // if (block) {
+ // classes.push(SpaceStyles['sbui-space--block'])
+ // }
+ // if (className) {
+ // classes.push(className)
+ // }
+
+ return (
+ <div
+ // className={classes.join(' ')}
+ style={style}
+ >
+ {children}
+ </div>
+ )
+}
+
+export default Space
diff --git a/packages/common2/src/components/Space/index.tsx b/packages/common2/src/components/Space/index.tsx
new file mode 100644
index 00000000000..9813d7e8b65
--- /dev/null
+++ b/packages/common2/src/components/Space/index.tsx
@@ -0,0 +1 @@
+export { default as Space } from './Space'
diff --git a/packages/common2/src/components/Tabs/Tabs.module.css b/packages/common2/src/components/Tabs/Tabs.module.css
new file mode 100644
index 00000000000..9769765d554
--- /dev/null
+++ b/packages/common2/src/components/Tabs/Tabs.module.css
@@ -0,0 +1,43 @@
+/* .sbui-tab-button-underline {
+ @apply rounded-none;
+.sbui-tab-button-underline {
+ @apply rounded-none border-none;
+ @apply hover:text-gray-600 hover:bg-transparent;
+ @apply dark:hover:text-white dark:hover:bg-transparent;
+ border-bottom-style: solid;
+ border-bottom-width: 2px;
+ margin-bottom: -1px;
+ padding-left: 0;
+ padding-right: 0;
+}
+
+.sbui-tab-button-underline--active {
+ @apply border-brand-700;
+ @apply rounded-none;
+ @apply text-gray-600;
+ @apply dark:text-white;
+ border-bottom-style: solid;
+ border-bottom-width: 2px;
+}
+
+.sbui-tab-bar--scrollable {
+ overflow: auto;
+ white-space: nowrap;
+ -ms-overflow-style: none; /* IE and Edge */
+ scrollbar-width: none; /* Firefox */
+}
+
+/* Hide scrollbar for Chrome, Safari and Opera */
+.sbui-tab-bar--scrollable::-webkit-scrollbar {
+ display: none;
+}
+
+.sbui-tab-bar-inner-container {
+ flex-grow: 1;
+}
+
+/* base */
+.sbui-tab-bar-container {
+ justify-content: space-between;
+ width: 100%;
+} */
diff --git a/packages/common2/src/components/Tabs/Tabs.stories.tsx b/packages/common2/src/components/Tabs/Tabs.stories.tsx
new file mode 100644
index 00000000000..17ed4f3c317
--- /dev/null
+++ b/packages/common2/src/components/Tabs/Tabs.stories.tsx
@@ -0,0 +1,165 @@
+import React from 'react'
+import { Button } from '../Button'
+import { IconMail } from '../../index'
+import Typography from '../Typography'
+
+import { Tabs } from './'
+
+export default {
+ title: 'Displays/Tabs',
+ component: Tabs,
+}
+
+export const Default = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab">
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab">
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+export const Underlined = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab">
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab">
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+export const WithIcons = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ <Tabs.Panel id="panel-1" label="1st tab" icon={<IconMail />}>
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab" icon={<IconMail />}>
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab" icon={<IconMail />}>
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+export const LargeButtons = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab">
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab">
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+export const BlockTabs = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab">
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab">
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+const limit = 30
+let infitniteSroll: JSX.Element[] = []
+
+for (var i = 0; i < limit; i++) {
+ infitniteSroll.push(
+ <Tabs.Panel id={`panel-${i}`} label={`Tab ${i}`}>
+ <Typography.Text>Content for the panel {i}</Typography.Text>
+ </Tabs.Panel>
+ )
+}
+
+export const Scroll = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ {infitniteSroll}
+ </Tabs>
+)
+
+export const addOnBefore = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab">
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab">
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+export const addOnAfter = (args: any) => (
+ <Tabs defaultActiveId={'panel-1'} {...args}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-2" label="2nd tab">
+ <Typography.Text>Content for the second panel</Typography.Text>
+ </Tabs.Panel>
+ <Tabs.Panel id="panel-3" label="3rd tab">
+ <Typography.Text>Content for the third panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+export const OneTab = () => (
+ <Tabs defaultActiveId={'panel-1'}>
+ <Tabs.Panel id="panel-1" label="1st tab">
+ <Typography.Text>Content for the first panel</Typography.Text>
+ </Tabs.Panel>
+ </Tabs>
+)
+
+Default.args = {}
+Underlined.args = {
+ type: 'underlined',
+}
+WithIcons.args = {
+ type: 'underlined',
+}
+LargeButtons.args = {
+ type: 'underlined',
+ size: 'large',
+}
+BlockTabs.args = {
+ type: 'underlined',
+ block: true,
+}
+Scroll.args = {
+ type: 'underlined',
+ block: true,
+ scrollable: true,
+}
+addOnBefore.args = {
+ type: 'underlined',
+ size: 'large',
+ addOnBefore: <Button type="outline">Left button</Button>,
+}
+addOnAfter.args = {
+ type: 'underlined',
+ size: 'large',
+ addOnAfter: <Button type="outline">Right button</Button>,
+}
diff --git a/packages/common2/src/components/Tabs/Tabs.tsx b/packages/common2/src/components/Tabs/Tabs.tsx
new file mode 100644
index 00000000000..b9625bc84c6
--- /dev/null
+++ b/packages/common2/src/components/Tabs/Tabs.tsx
@@ -0,0 +1,152 @@
+import React, { useState } from 'react'
+import { TabsContext } from './TabsContext'
+
+import * as TabsPrimitive from '@radix-ui/react-tabs'
+
+// @ts-ignore
+// import TabsStyles from './Tabs.module.css'
+
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface TabsProps {
+ type?: 'pills' | 'underlined' | 'cards'
+ children: any
+ defaultActiveId?: string
+ activeId?: string
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ block?: boolean
+ tabBarGutter?: number
+ tabBarStyle?: React.CSSProperties
+ onChange?: any
+ onClick?: any
+ scrollable?: boolean
+ addOnBefore?: React.ReactNode
+ addOnAfter?: React.ReactNode
+ listClassNames?: string
+}
+
+function Tabs({
+ children,
+ defaultActiveId,
+ activeId,
+ type = 'pills',
+ size = 'tiny',
+ block,
+ onChange,
+ onClick,
+ scrollable,
+ addOnBefore,
+ addOnAfter,
+ listClassNames,
+}: TabsProps) {
+ const [activeTab, setActiveTab] = useState(
+ defaultActiveId
+ ? defaultActiveId
+ : // if no defaultActiveId is set use the first panel
+ children && children[0].props
+ ? children[0].props.id
+ : ''
+ )
+
+ let __styles = styleHandler('tabs')
+
+ // activeId state can be overriden externally with `active`
+ // defaults to use activeTab
+ const active = activeId ? activeId : activeTab
+
+ function onTabClick(id: string) {
+ const newTabSelected = id !== active
+ setActiveTab(id)
+ if (onClick) onClick(id)
+ if (onChange && newTabSelected) onChange(id)
+ }
+
+ // for styling the tabs for underline style
+ const underlined = type === 'underlined'
+ // for styling the tabs for cards style
+
+ const listClasses = [__styles[type].list]
+ if (scrollable) listClasses.push(__styles.scrollable)
+ if (listClassNames) listClasses.push(listClassNames)
+
+ // if only 1 react child, it needs to be converted to a list/array
+ // this is so 1 tab can be displayed
+ if (children && !Array.isArray(children)) {
+ children = [children]
+ }
+
+ return (
+ <TabsPrimitive.Root
+ defaultValue={defaultActiveId}
+ value={active}
+ className={__styles.base}
+ >
+ <TabsPrimitive.List className={listClasses.join(' ')}>
+ {addOnBefore}
+ {children.map((tab: any) => {
+ const activeMatch = active === tab.props.id
+
+ const triggerClasses = [__styles[type].base, __styles.size[size]]
+ if (activeMatch) {
+ triggerClasses.push(__styles[type].active)
+ } else {
+ triggerClasses.push(__styles[type].inactive)
+ }
+ if (block) {
+ triggerClasses.push(__styles.block)
+ }
+
+ return (
+ <TabsPrimitive.Trigger
+ onKeyDown={(e: any) => {
+ if (e.keyCode === 13) {
+ e.preventDefault()
+ onTabClick(tab.props.id)
+ }
+ }}
+ onClick={() => onTabClick(tab.props.id)}
+ key={`${tab.props.id}-tab-button`}
+ value={tab.props.id}
+ className={triggerClasses.join(' ')}
+ >
+ {tab.props.icon}
+ <span>{tab.props.label}</span>
+ </TabsPrimitive.Trigger>
+ )
+ })}
+ {/* </Space> */}
+ {addOnAfter}
+ </TabsPrimitive.List>
+ <TabsContext.Provider value={{ activeId: active }}>
+ {children}
+ </TabsContext.Provider>
+ </TabsPrimitive.Root>
+ )
+}
+
+interface PanelProps {
+ children?: React.ReactNode
+ id: string
+ label?: string
+ icon?: React.ReactNode
+}
+
+export function Panel({ children, id }: PanelProps) {
+ let __styles = styleHandler('tabs')
+
+ return (
+ <TabsContext.Consumer>
+ {({ activeId }) => {
+ const active = activeId === id
+ return (
+ <TabsPrimitive.Content value={id} className={__styles.content}>
+ {children}
+ </TabsPrimitive.Content>
+ )
+ }}
+ </TabsContext.Consumer>
+ )
+}
+
+Tabs.Panel = Panel
+export default Tabs
diff --git a/packages/common2/src/components/Tabs/TabsContext.tsx b/packages/common2/src/components/Tabs/TabsContext.tsx
new file mode 100644
index 00000000000..b4a3471f16b
--- /dev/null
+++ b/packages/common2/src/components/Tabs/TabsContext.tsx
@@ -0,0 +1,7 @@
+import { createContext } from 'react'
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+export const TabsContext = createContext({
+ activeId: '',
+})
diff --git a/packages/common2/src/components/Tabs/index.tsx b/packages/common2/src/components/Tabs/index.tsx
new file mode 100644
index 00000000000..91e13405f93
--- /dev/null
+++ b/packages/common2/src/components/Tabs/index.tsx
@@ -0,0 +1 @@
+export { default as Tabs } from './Tabs'
diff --git a/packages/common2/src/components/Textarea/Textarea.css b/packages/common2/src/components/Textarea/Textarea.css
new file mode 100644
index 00000000000..22080ce9ee4
--- /dev/null
+++ b/packages/common2/src/components/Textarea/Textarea.css
@@ -0,0 +1,11 @@
+.form-textarea:disabled {
+ @apply bg-gray-100 cursor-not-allowed;
+}
+
+.form-textarea--error {
+ @apply border-red-500;
+}
+
+.form-textarea--borderless {
+ @apply border-none;
+}
diff --git a/packages/common2/src/components/Textarea/Textarea.js b/packages/common2/src/components/Textarea/Textarea.js
new file mode 100644
index 00000000000..3d1aa7e35b6
--- /dev/null
+++ b/packages/common2/src/components/Textarea/Textarea.js
@@ -0,0 +1,38 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+import './Textarea.css'
+
+const Textarea = ({
+ className = '',
+ isError = false,
+ rows = 3,
+ children,
+ borderless = false,
+ ...props
+}) => {
+ const classes = []
+
+ if (isError) {
+ classes.push('form-textarea--error')
+ }
+
+ if (borderless) {
+ classes.push('form-textarea--borderless')
+ }
+
+ return (
+ <textarea
+ className={`form-textarea border-solid ${classes.join(' ')} ${className}`}
+ rows={rows}
+ {...props}
+ />
+ )
+}
+
+Textarea.propTypes = {
+ isError: PropTypes.bool,
+ className: PropTypes.string,
+ borderless: PropTypes.bool,
+}
+
+export default Textarea
diff --git a/packages/common2/src/components/Textarea/Textarea.spec.js b/packages/common2/src/components/Textarea/Textarea.spec.js
new file mode 100644
index 00000000000..47730087d8a
--- /dev/null
+++ b/packages/common2/src/components/Textarea/Textarea.spec.js
@@ -0,0 +1,15 @@
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import Textarea from './Textarea'
+
+describe('#Textarea', () => {
+ it('should render textarea correctly', async () => {
+ render(<Textarea data-testid="form-textarea" />)
+ expect(screen.queryByTestId('form-textarea')).toBeInTheDocument()
+ })
+
+ it('should have "form-textarea--error" class', () => {
+ render(<Textarea isError data-testid="form-textarea" />)
+ expect(screen.queryByTestId('form-textarea')).toHaveClass('form-textarea border-solid form-textarea--error')
+ })
+})
\ No newline at end of file
diff --git a/packages/common2/src/components/Textarea/Textarea.stories.js b/packages/common2/src/components/Textarea/Textarea.stories.js
new file mode 100644
index 00000000000..07dba2312d2
--- /dev/null
+++ b/packages/common2/src/components/Textarea/Textarea.stories.js
@@ -0,0 +1,14 @@
+import React from 'react'
+
+import { Textarea } from '.'
+
+export default {
+ title: 'Archive/Textarea',
+ component: Textarea,
+}
+
+export const Default = (args) => <Textarea {...args} />
+Default.args = {
+ placeholder: 'Type text here ...',
+ disabled: false
+}
diff --git a/packages/common2/src/components/Textarea/index.js b/packages/common2/src/components/Textarea/index.js
new file mode 100644
index 00000000000..57766a9ef20
--- /dev/null
+++ b/packages/common2/src/components/Textarea/index.js
@@ -0,0 +1 @@
+export { default as Textarea } from './Textarea'
diff --git a/packages/common2/src/components/ThemeProvider/ThemeProvider.tsx b/packages/common2/src/components/ThemeProvider/ThemeProvider.tsx
new file mode 100644
index 00000000000..334587987f1
--- /dev/null
+++ b/packages/common2/src/components/ThemeProvider/ThemeProvider.tsx
@@ -0,0 +1,68 @@
+import React, { useLayoutEffect, useMemo } from 'react'
+import { createContext } from 'react'
+
+import defaultTheme from '../../lib/theme/defaultTheme'
+
+import { mergeDeep } from '../../utils/mergeDeep'
+// import useDarkMode from './utils/useDarkMode'
+
+interface ThemeContextInterface {
+ theme?: any
+ // mode?: 'light' | 'dark'
+ // toggleMode?: any
+}
+
+export const ThemeContext = createContext<ThemeContextInterface>({
+ theme: defaultTheme,
+ // mode: 'light',
+ // toggleMode: true,
+})
+
+interface Props extends React.HTMLAttributes<HTMLDivElement> {
+ children: React.ReactNode
+ /**
+ * Defines the styles used throughout the library
+ */
+ theme?: object
+ /**
+ * Defines dark mode as the default theme
+ */
+ // dark?: boolean
+ /**
+ * Allows the change of theme, reading user's preferences and saving them
+ */
+ // usePreferences?: boolean
+}
+
+const ThemeProvider: React.FC<Props> = ({
+ children,
+ theme: customTheme,
+ // dark,
+ // usePreferences = false,
+}) => {
+ const mergedTheme = mergeDeep(defaultTheme, customTheme)
+ // const [mode, setMode, toggleMode] = useDarkMode(usePreferences)
+
+ // useLayoutEffect(() => {
+ // if (dark) {
+ // if (setMode != null) {
+ // setMode('dark')
+ // }
+ // document.documentElement.classList.add(`dark`)
+ // }
+ // }, [dark])
+
+ const value = useMemo(
+ () => ({
+ theme: mergedTheme,
+ // mode,
+ // toggleMode,
+ }),
+ []
+ )
+
+ // console.log('defaultTheme', defaultTheme)
+ return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
+}
+
+export default ThemeProvider
diff --git a/packages/common2/src/components/ThemeProvider/index.tsx b/packages/common2/src/components/ThemeProvider/index.tsx
new file mode 100644
index 00000000000..ed7c079a21b
--- /dev/null
+++ b/packages/common2/src/components/ThemeProvider/index.tsx
@@ -0,0 +1 @@
+export { default as ThemeProvider } from './ThemeProvider'
diff --git a/packages/common2/src/components/Toast/Toast.module.css b/packages/common2/src/components/Toast/Toast.module.css
new file mode 100644
index 00000000000..aaf0170ae60
--- /dev/null
+++ b/packages/common2/src/components/Toast/Toast.module.css
@@ -0,0 +1,104 @@
+.sbui-toast-container {
+ @apply max-w-xs w-full shadow-lg rounded-md pointer-events-auto overflow-hidden py-4 px-2;
+
+ @apply border border-solid;
+ @apply bg-white border-gray-300;
+ @apply dark:bg-dark-700 dark:border-gray-400;
+}
+
+.sbui-toast-container--sm {
+ @apply max-w-sm;
+}
+
+.sbui-toast-container--md {
+ @apply max-w-md;
+}
+
+.sbui-toast-container.sbui-toast-container--success {
+ @apply border border-solid border-green-500;
+}
+.sbui-toast-container.sbui-toast-container--error {
+ @apply border border-solid border-red-500;
+}
+
+.sbui-toast-container > div {
+ @apply flex items-start;
+}
+
+.sbui-toast-icon-container {
+ @apply flex-shrink-0 text-sm;
+}
+
+.sbui-toast-details {
+ @apply ml-3 w-0 flex flex-1 justify-between;
+}
+
+.sbui-toast-details--actions-bottom {
+ @apply flex-col;
+}
+
+.sbui-toast-details--actions-bottom .sbui-toast-details__actions {
+ @apply mt-4;
+}
+
+.sbui-toast-details__content {
+ @apply flex flex-col;
+}
+
+.sbui-toast-message {
+ @apply m-0 text-sm font-medium text-gray-900;
+}
+
+.sbui-toast-description {
+ @apply m-0 mt-1 text-sm font-normal text-gray-500;
+}
+
+.sbui-toast-details__actions {
+ @apply flex space-x-4;
+}
+
+.sbui-toast-close-container {
+ @apply ml-4 flex-shrink-0 flex;
+}
+
+.sbui-toast-close-button {
+ @apply bg-transparent rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none cursor-pointer border-0;
+}
+
+.sbui-toast-container--success .sbui-toast-icon-container {
+ @apply text-green-500;
+}
+
+.sbui-toast-container--error .sbui-toast-icon-container {
+ @apply text-red-500;
+}
+
+.sbui-alert--anim--spin {
+ @apply stroke-current;
+ animation-name: spin;
+ animation-duration: 1500ms;
+ animation-iteration-count: infinite;
+ animation-timing-function: linear;
+ /* transform: rotate(3deg); */
+ /* transform: rotate(0.3rad);/ */
+ /* transform: rotate(3grad); */
+ /* transform: rotate(.03turn); */
+ transform-origin: center center;
+}
+
+@keyframes spin {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+div[data-radix-portal]:not(.portal--toast) {
+ /*
+ override z-index to be lower than radix value of 2147483647
+ except for the toast portal
+ */
+ z-index: 2147483646 !important;
+}
diff --git a/packages/common2/src/components/Toast/Toast.stories.tsx b/packages/common2/src/components/Toast/Toast.stories.tsx
new file mode 100644
index 00000000000..7d9a7d649e9
--- /dev/null
+++ b/packages/common2/src/components/Toast/Toast.stories.tsx
@@ -0,0 +1,112 @@
+import React from 'react'
+
+import { Toast } from '.'
+import { Button } from '../Button'
+
+export default {
+ title: 'Overlays/Toast',
+ component: Toast,
+}
+
+const Template = (args: any) => {
+ return <Toast {...args} />
+}
+
+Template.args = { message: 'Lorem ipsum', duration: 60000 }
+
+export const Default = Template.bind({})
+Default.args = Template.args
+
+export const Success = Template.bind({})
+Success.args = { ...Template.args, type: 'success' }
+
+export const Error = Template.bind({})
+Error.args = { ...Template.args, type: 'error' }
+
+export const Loading = Template.bind({})
+Loading.args = { ...Template.args, type: 'loading' }
+
+export const withActions = Template.bind({})
+withActions.args = {
+ ...Template.args,
+ actions: [<Button>Undo</Button>, <Button>Dismiss</Button>],
+}
+
+export const UsingToasts = ({ message, duration, ...rest }: any) => (
+ <div className="flex flex-col w-full justify-between">
+ <Toast.Toaster />
+ <Button
+ onClick={() => {
+ Toast.toast(message, {
+ duration,
+ })
+ }}
+ >
+ Create default toast
+ </Button>
+ <Button
+ onClick={() => {
+ Toast.toast.success(message, { duration })
+ }}
+ >
+ Create success toast
+ </Button>
+ <Button
+ onClick={() => {
+ Toast.toast.error(message, { duration })
+ }}
+ >
+ Create error toast
+ </Button>
+ <Button
+ onClick={() => {
+ Toast.toast.promise(
+ new Promise((res) => {
+ setTimeout(() => {
+ res(true)
+ }, 3000)
+ }),
+ {
+ loading: 'Loading',
+ success: (data) => `Successfully saved`,
+ error: (err) => `This just happened`,
+ },
+ {
+ success: {
+ duration: 5000,
+ },
+ }
+ )
+ }}
+ >
+ Create promise toast
+ </Button>
+ <Button
+ onClick={() => {
+ Toast.toast('Message', {
+ description: 'Description',
+ duration,
+ })
+ }}
+ >
+ Create toast with description
+ </Button>
+ <Button
+ onClick={() => {
+ Toast.toast('Message', {
+ duration,
+ actions: [<Button>Undo</Button>, <Button>Dismiss</Button>],
+ })
+ }}
+ >
+ Create toast with actions
+ </Button>
+ </div>
+)
+
+UsingToasts.args = {
+ message: 'Lorem ipsum',
+ description:
+ 'Lorem ipsum dolor sit amet consectetur adipisicing elit oluptatum tenetur.',
+ duration: 60000,
+}
diff --git a/packages/common2/src/components/Toast/Toast.tsx b/packages/common2/src/components/Toast/Toast.tsx
new file mode 100644
index 00000000000..9607f7372ca
--- /dev/null
+++ b/packages/common2/src/components/Toast/Toast.tsx
@@ -0,0 +1,236 @@
+import React, { ComponentProps } from 'react'
+import {
+ Toaster as HotToaster,
+ toast as hotToast,
+ resolveValue,
+} from 'react-hot-toast'
+import {
+ Toast as HotToastProps,
+ ToastType,
+} from 'react-hot-toast/dist/core/types'
+import * as Portal from '@radix-ui/react-portal'
+import { IconCheck } from '../Icon/icons/IconCheck'
+import { IconLoader } from '../Icon/icons/IconLoader'
+import { IconX } from '../Icon/icons/IconX'
+import { IconAlertCircle } from '../Icon/icons/IconAlertCircle'
+// @ts-ignore
+import ToastStyles from './Toast.module.css'
+import Typography from '../Typography'
+
+const icons: Partial<{ [key in ToastType]: any }> = {
+ error: <IconAlertCircle size="medium" strokeWidth={2} />,
+ success: <IconCheck size="medium" strokeWidth={2} />,
+}
+
+export interface ToastProps extends Partial<HotToastProps> {
+ description?: string
+ closable?: boolean
+ actions?: React.ReactNode
+ actionsPosition?: 'inline' | 'bottom'
+ width?: 'xs' | 'sm' | 'md'
+}
+
+function Message({
+ children,
+ ...props
+}: ComponentProps<typeof Typography.Text>) {
+ return (
+ <Typography.Text className={ToastStyles['sbui-toast-message']} {...props}>
+ {children}
+ </Typography.Text>
+ )
+}
+
+function Description({
+ children,
+ ...props
+}: ComponentProps<typeof Typography.Text>) {
+ return (
+ <Typography.Text
+ className={ToastStyles['sbui-toast-description']}
+ {...props}
+ >
+ {children}
+ </Typography.Text>
+ )
+}
+
+/**
+ * react-hot-toast is used under-the-hood and is a required dependency.
+ *
+ * Add `<Toast.Toaster />` to your app or wrap it around your components `<Toast.Toaster><Components /></Toast.Toaster>`
+ *
+ * You can also just use react-hot-toast's `toast` for basic toasts:
+ *
+ * `toast.success('Complete!')`
+ *
+ * For the extra features you need to use the `Toast.toast` wrapper:
+ *
+ * `Toast.toast('Message', { description: 'Description', actions: [<SomeButton />] })`
+ */
+function Toast({
+ id,
+ visible,
+ type,
+ icon,
+ description,
+ closable = true,
+ actions,
+ actionsPosition = 'inline',
+ message,
+ width,
+ ...rest
+}: ToastProps) {
+ let containerClasses = [ToastStyles['sbui-toast-container']]
+ if (type) {
+ containerClasses.push(ToastStyles[`sbui-toast-container--${type}`])
+ }
+ if (width === 'sm' || width === 'md') {
+ containerClasses.push(ToastStyles[`sbui-toast-container--${width}`])
+ }
+
+ let closeButtonClasses = [ToastStyles['sbui-toast-close-button']]
+ if (type) {
+ closeButtonClasses.push(ToastStyles[`sbui-toast-close-button--${type}`])
+ }
+
+ let detailsClasses = [ToastStyles['sbui-toast-details']]
+ if (actionsPosition === 'bottom') {
+ detailsClasses.push(ToastStyles[`sbui-toast-details--actions-bottom`])
+ }
+
+ const _message =
+ typeof message === 'string' ? (
+ <Message>{message}</Message>
+ ) : (
+ resolveValue(message, rest)
+ )
+
+ return (
+ <div
+ className={`${containerClasses.join(' ')} ${
+ visible ? 'animate-enter' : 'animate-leave'
+ }`}
+ >
+ <div>
+ <Typography.Text className={ToastStyles['sbui-toast-icon-container']}>
+ {type === 'loading' ? (
+ <IconLoader
+ size="medium"
+ strokeWidth={2}
+ className={ToastStyles['sbui-alert--anim--spin']}
+ />
+ ) : (
+ icon || icons[type]
+ )}
+ </Typography.Text>
+ <div className={detailsClasses.join(' ')}>
+ <div className={ToastStyles['sbui-toast-details__content']}>
+ {_message}
+ {description && <Description>{description}</Description>}
+ </div>
+ {actions && (
+ <div className={ToastStyles['sbui-toast-details__actions']}>
+ {actions}
+ </div>
+ )}
+ </div>
+ {closable && (
+ <div className={ToastStyles['sbui-toast-close-container']}>
+ <button
+ aria-label="Close alert"
+ className={closeButtonClasses.join(' ')}
+ onClick={() => {
+ hotToast.dismiss(id)
+ }}
+ >
+ <span className="sr-only">Close</span>
+ <IconX
+ className="h-5 w-5"
+ aria-hidden="true"
+ size="small"
+ strokeWidth={2}
+ />
+ </button>
+ </div>
+ )}
+ </div>
+ </div>
+ )
+}
+
+interface ToasterProps {
+ children?: React.ReactNode
+}
+
+function Toaster({ children }: ToasterProps) {
+ return (
+ <Portal.Root className="portal--toast">
+ <HotToaster position="bottom-right">
+ {({ message, ...t }) =>
+ typeof message === 'string' ? (
+ <Toast message={message} {...t} />
+ ) : (
+ <>{resolveValue(message, t)}</>
+ )
+ }
+ </HotToaster>
+ {children}
+ </Portal.Root>
+ )
+}
+
+type ToastOptions = Partial<
+ Pick<
+ ToastProps,
+ | 'id'
+ | 'icon'
+ | 'duration'
+ | 'position'
+ | 'ariaProps'
+ | 'style'
+ | 'className'
+ | 'iconTheme'
+ | 'type'
+ | 'description'
+ | 'closable'
+ | 'actions'
+ | 'actionsPosition'
+ >
+>
+
+export function toast(message: string, opts?: ToastOptions) {
+ const { description, closable, actions, actionsPosition, type, ...rest } =
+ opts || {}
+
+ return hotToast(
+ ({ message: _m, type: _t, ...t }) => (
+ <Toast
+ message={message}
+ description={description}
+ closable={closable}
+ actions={actions}
+ actionsPosition={actionsPosition}
+ type={type}
+ {...t}
+ />
+ ),
+ rest
+ )
+}
+
+const createToastType = (type: ToastType) => (
+ message: string,
+ opts?: Omit<ToastOptions, 'type'>
+) => toast(message, { ...opts, type })
+
+toast.success = createToastType('success')
+toast.error = createToastType('error')
+toast.loading = createToastType('loading')
+toast.promise = (...args: Parameters<typeof hotToast.promise>) =>
+ hotToast.promise(...args)
+
+Toast.Toaster = Toaster
+Toast.toast = toast
+
+export default Toast
diff --git a/packages/common2/src/components/Toast/index.tsx b/packages/common2/src/components/Toast/index.tsx
new file mode 100644
index 00000000000..3d34af25126
--- /dev/null
+++ b/packages/common2/src/components/Toast/index.tsx
@@ -0,0 +1 @@
+export { default as Toast } from './Toast'
diff --git a/packages/common2/src/components/Toggle/Toggle.module.css b/packages/common2/src/components/Toggle/Toggle.module.css
new file mode 100644
index 00000000000..a42fc9e2023
--- /dev/null
+++ b/packages/common2/src/components/Toggle/Toggle.module.css
@@ -0,0 +1,69 @@
+/* .sbui-toggle {
+ @apply p-0 relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer;
+ @apply transition-colors ease-in-out duration-200;
+ @apply focus:outline-none bg-gray-200 dark:bg-gray-400;
+}
+
+.sbui-toggle--active {
+ @apply bg-brand-600;
+ @apply dark:bg-brand-600;
+}
+
+.sbui-toggle__handle {
+ @apply inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 translate-x-0;
+}
+
+.sbui-toggle__handle--active {
+ @apply translate-x-5;
+}
+
+.sbui-toggle:disabled {
+ @apply opacity-75 cursor-not-allowed;
+ pointer-events: none;
+} */
+
+/*
+ Toggle sizes
+*/
+
+/* tiny */
+
+/* .sbui-toggle--tiny {
+ @apply h-4 w-7;
+}
+.sbui-toggle--tiny .sbui-toggle__handle {
+ @apply h-3 w-3;
+}
+.sbui-toggle--tiny .sbui-toggle__handle--active {
+ @apply translate-x-3;
+} */
+
+/* small and medium */
+
+/* .sbui-toggle--small,
+.sbui-toggle--medium {
+ @apply h-6 w-11;
+}
+.sbui-toggle--small .sbui-toggle__handle,
+.sbui-toggle--medium .sbui-toggle__handle {
+ @apply h-5 w-5;
+}
+.sbui-toggle--small .sbui-toggle__handle--active,
+.sbui-toggle--medium .sbui-toggle__handle--active {
+ @apply translate-x-5;
+} */
+
+/* large and xlarge */
+
+/* .sbui-toggle--large,
+.sbui-toggle--xlarge {
+ @apply h-7 w-12;
+}
+.sbui-toggle--large .sbui-toggle__handle,
+.sbui-toggle--xlarge .sbui-toggle__handle {
+ @apply h-6 w-6;
+}
+.sbui-toggle--large .sbui-toggle__handle--active,
+.sbui-toggle--xlarge .sbui-toggle__handle--active {
+ @apply translate-x-5;
+} */
diff --git a/packages/common2/src/components/Toggle/Toggle.stories.tsx b/packages/common2/src/components/Toggle/Toggle.stories.tsx
new file mode 100644
index 00000000000..42513f7d48c
--- /dev/null
+++ b/packages/common2/src/components/Toggle/Toggle.stories.tsx
@@ -0,0 +1,68 @@
+import React from 'react'
+
+import { Toggle } from '.'
+import { Button } from '../Button'
+import { Input } from '../Input'
+import { Space } from '../Space'
+
+export default {
+ title: 'Data Input/Toggle',
+ component: Toggle,
+ argTypes: {
+ label: { control: 'text' },
+ },
+}
+
+export const Primary = (args: any) => <Toggle {...args} />
+export const Wide = (args: any) => <Toggle {...args} />
+export const checkedDefault = (args: any) => <Toggle {...args} />
+export const noLabel = (args: any) => <Toggle {...args} />
+export const withBeforeAndAfterLabel = (args: any) => <Toggle {...args} />
+export const size = (args: any) => <Toggle {...args} />
+
+Primary.args = {
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: "Get insights across your organization's repositories",
+ labelOptional:
+ 'Star history, issue tracking, and more to come repository.surf organization',
+ name: 'radiogroup-example',
+}
+
+Wide.args = {
+ descriptionText: 'This is optional description',
+ disabled: false,
+ error: '',
+ label: "Get insights across your organization's repositories",
+ labelOptional:
+ 'Star history, issue tracking, and more to come repository.surf organization',
+ name: 'radiogroup-example',
+ layout: 'wide',
+}
+
+checkedDefault.args = {
+ defaultChecked: true,
+ descriptionText: 'This is optional description',
+ label: 'Radio group main label',
+ labelOptional: 'This is an optional label',
+}
+
+noLabel.args = {
+ active: true,
+ disabled: false,
+ error: '',
+ name: 'radiogroup-example',
+ layout: 'horizontal',
+}
+
+withBeforeAndAfterLabel.args = {
+ label: 'Label',
+ beforeLabel: 'Before : ',
+ afterLabel: ' : After',
+}
+
+size.args = {
+ label: 'Try different sizes',
+ size: 'tiny',
+}
diff --git a/packages/common2/src/components/Toggle/Toggle.tsx b/packages/common2/src/components/Toggle/Toggle.tsx
new file mode 100644
index 00000000000..d290b512e0a
--- /dev/null
+++ b/packages/common2/src/components/Toggle/Toggle.tsx
@@ -0,0 +1,156 @@
+import React, { useEffect, useState } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+import { useFormContext } from '../Form/FormContext'
+
+import defaultTheme from '../../lib/theme/defaultTheme'
+import styleHandler from '../../lib/theme/styleHandler'
+
+interface Props extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'size'> {
+ name?: string
+ disabled?: boolean
+ layout?: 'horizontal' | 'vertical' | 'flex'
+ error?: string
+ descriptionText?: string
+ label?: string
+ afterLabel?: string
+ beforeLabel?: string
+ labelOptional?: string
+ className?: any
+ defaultChecked?: boolean
+ checked?: boolean
+ align?: 'right' | 'left'
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ labelLayout?: 'horizontal' | 'vertical'
+ validation?: (x: any) => void
+}
+
+function Toggle({
+ disabled,
+ id = '',
+ name = '',
+ layout = 'flex',
+ error,
+ descriptionText,
+ label,
+ afterLabel,
+ beforeLabel,
+ labelOptional,
+ onChange,
+ onBlur,
+ onFocus,
+ onKeyDown,
+ defaultChecked,
+ checked,
+ className,
+ align = 'left',
+ size = 'medium',
+ validation,
+ labelLayout,
+ ...props
+}: Props) {
+ const __styles = styleHandler('toggle')
+
+ const {
+ formContextOnChange,
+ values,
+ errors,
+ handleBlur,
+ touched,
+ fieldLevelValidation,
+ } = useFormContext()
+
+ if (values && !checked) checked = values[id || name]
+
+ const [intChecked, setIntChecked] = useState(
+ (defaultChecked || checked) ?? false
+ )
+
+ // check if toggle checked is true or false
+ // if neither true or false the toggle will rely on component state internally
+ const active = checked ?? intChecked
+
+ useEffect(() => {
+ setIntChecked(active)
+ }, [])
+
+ function handleBlurEvent(e: React.FocusEvent<HTMLButtonElement>) {
+ if (handleBlur) handleBlur(e)
+ if (onBlur) onBlur(e)
+ }
+
+ if (!error) {
+ if (errors && !error) error = errors[id || name]
+ error = touched && touched[id || name] ? error : undefined
+ }
+
+ function onClick() {
+ // '`onChange` callback for this component
+
+ // @ts-ignore // issue with conflicting input/button tag being used
+ if (onChange) onChange(!active)
+
+ setIntChecked(!intChecked)
+
+ /*
+ * Create change event for formik
+ * formik expects an input change event
+ */
+ let event: any = {}
+ event.target = {
+ type: 'checkbox',
+ name: name,
+ id: id,
+ value: !active,
+ checked: !active,
+ // outerHTML: undefined,
+ // options: undefined,
+ // multiple: undefined,
+ }
+
+ // update form
+ if (formContextOnChange) formContextOnChange(event)
+ // run field level validation
+ if (validation) fieldLevelValidation(id, validation(!intChecked))
+ }
+
+ let toggleClasses = [__styles.base, __styles.handle_container[size]]
+ if (active) toggleClasses.push(__styles.active)
+
+ let handleClasses = [__styles.handle['base'], __styles.handle[size]]
+ if (active) handleClasses.push(__styles.handle_active[size])
+
+ return (
+ <FormLayout
+ className={className}
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ labelOptional={labelOptional}
+ layout={layout}
+ id={id}
+ error={error}
+ align={align}
+ descriptionText={descriptionText}
+ size={size}
+ labelLayout={labelLayout}
+ nonBoxInput
+ >
+ <button
+ type="button"
+ id={id}
+ name={name}
+ className={toggleClasses.join(' ')}
+ onClick={onClick}
+ disabled={disabled}
+ onFocus={onFocus ? (event) => onFocus(event) : undefined}
+ onBlur={handleBlurEvent}
+ onKeyDown={onKeyDown ? (event) => onKeyDown(event) : undefined}
+ {...props}
+ >
+ <span aria-hidden="true" className={handleClasses.join(' ')}></span>
+ </button>
+ </FormLayout>
+ )
+}
+
+export default Toggle
diff --git a/packages/common2/src/components/Toggle/index.tsx b/packages/common2/src/components/Toggle/index.tsx
new file mode 100644
index 00000000000..fccc0c7e875
--- /dev/null
+++ b/packages/common2/src/components/Toggle/index.tsx
@@ -0,0 +1 @@
+export { default as Toggle } from './Toggle'
diff --git a/packages/common2/src/components/Typography/Link.module.css b/packages/common2/src/components/Typography/Link.module.css
new file mode 100644
index 00000000000..afc0911abfc
--- /dev/null
+++ b/packages/common2/src/components/Typography/Link.module.css
@@ -0,0 +1,3 @@
+a.sbui-typography-link {
+ @apply text-sm text-brand-700 dark:text-brand-700 cursor-pointer;
+}
diff --git a/packages/common2/src/components/Typography/Link.tsx b/packages/common2/src/components/Typography/Link.tsx
new file mode 100644
index 00000000000..910d05b4170
--- /dev/null
+++ b/packages/common2/src/components/Typography/Link.tsx
@@ -0,0 +1,45 @@
+import { HandlerFunction } from '@storybook/addon-actions'
+import React from 'react'
+// @ts-ignore
+// import LinkStyles from './Link.module.css'
+
+interface Props {
+ children?: React.ReactNode
+ target?: '_blank' | '_self' | '_parent' | '_top' | 'framename'
+ href?: string
+ className?: string
+ style?: React.CSSProperties
+ onClick?: HandlerFunction
+}
+
+function Link({
+ children,
+ target = '_blank',
+ href,
+ className,
+ onClick,
+ style,
+}: Props) {
+ // let classes = [
+ // LinkStyles['sbui-typography'],
+ // LinkStyles['sbui-typography-link'],
+ // ]
+ // if (className) {
+ // classes.push(className)
+ // }
+
+ return (
+ <a
+ onClick={onClick}
+ // className={classes.join(' ')}
+ href={href}
+ target={target}
+ rel="noopener noreferrer"
+ style={style}
+ >
+ {children}
+ </a>
+ )
+}
+
+export default Link
diff --git a/packages/common2/src/components/Typography/Text.module.css b/packages/common2/src/components/Typography/Text.module.css
new file mode 100644
index 00000000000..263a05f367a
--- /dev/null
+++ b/packages/common2/src/components/Typography/Text.module.css
@@ -0,0 +1,75 @@
+.sbui-typography-text {
+ @apply text-sm;
+ @apply text-typography-body-light dark:text-typography-body-dark;
+}
+
+.sbui-typography-text-small {
+ @apply text-xs;
+}
+
+.sbui-typography-text-secondary {
+ @apply text-typography-body-secondary-light;
+ @apply dark:text-typography-body-secondary-dark;
+}
+
+.sbui-typography-text-success {
+ @apply text-green-500;
+ @apply dark:text-green-500;
+}
+
+.sbui-typography-text-warning {
+ @apply text-yellow-500;
+ @apply dark:text-yellow-500;
+}
+
+.sbui-typography-text-danger {
+ @apply text-red-500;
+ @apply dark:text-red-500;
+}
+
+.sbui-typography-text-disabled {
+ @apply text-gray-300;
+ @apply dark:text-gray-400;
+ /* color: rgba(0,0,0,.25); */
+ cursor: not-allowed;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.sbui-typography-text-underline {
+ @apply underline;
+}
+
+.sbui-typography-text-strikethrough {
+ @apply line-through;
+}
+
+.sbui-typography-text strong {
+ @apply text-sm;
+}
+
+mark.sbui-typography-text {
+ padding: 0;
+ background-color: #ffe58f;
+}
+
+code.sbui-typography-text {
+ /* margin: 0 .2em; */
+ padding: 0.2em 0.4em 0.1em;
+ /* font-size: 85%; */
+ background: hsla(0, 0%, 58.8%, 0.1);
+ border: 1px solid hsla(0, 0%, 39.2%, 0.2);
+ border-radius: 3px;
+}
+
+kbd.sbui-typography-text {
+ /* margin: 0 .2em; */
+ padding: 0.15em 0.4em 0.1em;
+ /* font-size: 90%; */
+ background: hsla(0, 0%, 58.8%, 0.06);
+ border: solid hsla(0, 0%, 39.2%, 0.2);
+ border-width: 1px 1px 2px;
+ border-radius: 3px;
+}
diff --git a/packages/common2/src/components/Typography/Text.tsx b/packages/common2/src/components/Typography/Text.tsx
new file mode 100644
index 00000000000..d58992eff37
--- /dev/null
+++ b/packages/common2/src/components/Typography/Text.tsx
@@ -0,0 +1,105 @@
+import React from 'react'
+// @ts-ignore
+// import TextStyles from './Text.module.css'
+
+export interface Props {
+ className?: string
+ children: any
+ style?: React.CSSProperties
+ type?: 'default' | 'secondary' | 'success' | 'warning' | 'danger'
+ disabled?: boolean
+ mark?: boolean
+ code?: boolean
+ keyboard?: boolean
+ underline?: boolean
+ strikethrough?: boolean
+ strong?: boolean
+ small?: boolean
+}
+
+function Text({
+ className,
+ children,
+ style,
+ type,
+ disabled,
+ mark,
+ code,
+ keyboard,
+ underline,
+ strikethrough,
+ strong,
+ small,
+}: Props) {
+ // let classes = [TextStyles['sbui-typography-text']]
+ // if (className) {
+ // classes.push(className)
+ // }
+
+ // if (type) {
+ // classes.push(TextStyles[`sbui-typography-text-${type}`])
+ // }
+
+ // if (disabled) {
+ // classes.push(TextStyles[`sbui-typography-text-disabled`])
+ // }
+
+ // if (underline) {
+ // classes.push(TextStyles[`sbui-typography-text-underline`])
+ // }
+
+ // if (strikethrough) {
+ // classes.push(TextStyles[`sbui-typography-text-strikethrough`])
+ // }
+
+ // if (small) {
+ // classes.push(TextStyles['sbui-typography-text-small'])
+ // }
+
+ if (code)
+ return (
+ <code
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </code>
+ )
+ if (mark)
+ return (
+ <mark
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </mark>
+ )
+ if (keyboard)
+ return (
+ <kbd
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </kbd>
+ )
+ if (strong)
+ return (
+ <strong
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </strong>
+ )
+ return (
+ <span
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </span>
+ )
+}
+
+export default Text
diff --git a/packages/common2/src/components/Typography/Title.module.css b/packages/common2/src/components/Typography/Title.module.css
new file mode 100644
index 00000000000..ac9e4afb084
--- /dev/null
+++ b/packages/common2/src/components/Typography/Title.module.css
@@ -0,0 +1,27 @@
+.sbui-typography-title {
+ @apply text-gray-900;
+ @apply dark:text-white;
+}
+
+h1.sbui-typography-title {
+ @apply text-5xl;
+}
+
+h2.sbui-typography-title {
+ @apply text-4xl;
+}
+
+h3.sbui-typography-title {
+ @apply text-2xl;
+}
+
+h4.sbui-typography-title {
+ @apply text-lg;
+}
+
+h5.sbui-typography-title {
+ @apply text-base;
+}
+/* a {
+ @apply text-blue-600 underline;
+} */
diff --git a/packages/common2/src/components/Typography/Title.tsx b/packages/common2/src/components/Typography/Title.tsx
new file mode 100644
index 00000000000..a184ca7cc9d
--- /dev/null
+++ b/packages/common2/src/components/Typography/Title.tsx
@@ -0,0 +1,29 @@
+import React from 'react'
+// @ts-ignore
+// import TitleStyles from './Title.module.css'
+
+interface Props {
+ className?: string
+ level?: 1 | 2 | 3 | 4 | 5
+ children: any
+ style?: React.CSSProperties
+}
+
+function Title({ className, level = 1, children, style }: Props) {
+ // let classes = [TitleStyles['sbui-typography-title']]
+ // if (className) {
+ // classes.push(className)
+ // }
+ const CustomTag: any = `h${level}`
+
+ return (
+ <CustomTag
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </CustomTag>
+ )
+}
+
+export default Title
diff --git a/packages/common2/src/components/Typography/Typography.module.css b/packages/common2/src/components/Typography/Typography.module.css
new file mode 100644
index 00000000000..95a20672200
--- /dev/null
+++ b/packages/common2/src/components/Typography/Typography.module.css
@@ -0,0 +1,96 @@
+/* marker fix */
+.sbui-typography li::marker {
+ display: none;
+ content: '';
+}
+
+.sbui-typography-container {
+ @apply prose prose-sm lg:prose-lg;
+}
+
+.sbui-typography {
+ @apply text-base;
+ @apply text-gray-400;
+}
+
+/* .sbui-typography--prose-sm {
+ @apply prose prose-sm;
+}
+
+.sbui-typography--prose-lg {
+ @apply prose prose-lg;
+}
+
+.sbui-typography--prose-xl {
+ @apply prose prose-xl;
+}
+
+.sbui-typography--prose-2xl {
+ @apply prose prose-2xl;
+} */
+
+.sbui-typography code {
+ padding: 0.2em 0.4em 0.1em;
+ background: hsla(0, 0%, 58.8%, 0.1);
+ border: 1px solid hsla(0, 0%, 39.2%, 0.2);
+ border-radius: 3px;
+}
+
+/*
+ dark mode styles
+
+ default styles are handled by tailwind config
+*/
+
+.dark .sbui-typography {
+ @apply text-gray-200;
+}
+
+.dark .sbui-typography h1 {
+ @apply text-white;
+}
+
+.dark .sbui-typography h2 {
+ @apply text-white;
+}
+
+.dark .sbui-typography h3 {
+ @apply text-white;
+}
+
+.dark .sbui-typography h4 {
+ @apply text-white;
+}
+
+.dark .sbui-typography h5 {
+ @apply text-white;
+}
+
+.dark .sbui-typography strong {
+ @apply text-white;
+}
+
+.dark .sbui-typography li::before {
+ @apply text-gray-300;
+}
+
+.dark .sbui-typography a {
+ @apply text-white;
+}
+
+.dark .sbui-typography blockquote {
+ @apply text-white;
+}
+
+.dark .sbui-typography code {
+ color: white;
+}
+
+.dark .sbui-typography figcaption {
+ @apply text-gray-600;
+}
+
+.dark .sbui-typography::selection {
+ /* @apply bg-brand-500; */
+ backgroundcolor: '#6f7bb635';
+}
diff --git a/packages/common2/src/components/Typography/Typography.stories.tsx b/packages/common2/src/components/Typography/Typography.stories.tsx
new file mode 100644
index 00000000000..eb3546acb53
--- /dev/null
+++ b/packages/common2/src/components/Typography/Typography.stories.tsx
@@ -0,0 +1,65 @@
+import React from 'react'
+// import { AutoForm } from 'uniforms'
+// @ts-ignore
+import MarkdownExample from './../../lib/MarkdownSample.md'
+import ReactMarkdown from 'react-markdown'
+const gfm = require('remark-gfm')
+
+import Typography from '.'
+// @ts-ignore
+import { Space } from '../../index'
+
+const { Title, Text, Link } = Typography
+
+export default {
+ title: 'General/Typography',
+ component: Typography,
+}
+
+export const article = () => (
+ <Typography tag="article">
+ <ReactMarkdown plugins={[gfm]} source={MarkdownExample} />
+ </Typography>
+)
+
+export const Titles = () => (
+ <React.Fragment>
+ <Title level={1}>Hello world</Title>
+ <Title level={2}>Hello world</Title>
+ <Title level={3}>Hello world</Title>
+ <Title level={4}>Hello world</Title>
+ <Title level={5}>Hello world</Title>
+ </React.Fragment>
+)
+
+export const Texts = () => (
+ <>
+ <Text>Supabase UI (default)</Text>
+ <br />
+ <Text type="secondary">Supabase UI (secondary)</Text>
+ <br />
+ <Text type="success">Supabase UI (success)</Text>
+ <br />
+ <Text type="warning">Supabase UI (warning)</Text>
+ <br />
+ <Text type="danger">Supabase UI (danger)</Text>
+ <br />
+ <Text disabled>Supabase UI (disabled)</Text>
+ <br />
+ <Text mark>Supabase UI (mark)</Text>
+ <br />
+ <Text code>Supabase UI (code)</Text>
+ <br />
+ <Text keyboard>Supabase UI (keyboard)</Text>
+ <br />
+ <Text underline>Supabase UI (underline)</Text>
+ <br />
+ <Text strikethrough>Supabase UI (strikethrough)</Text>
+ <br />
+ <Text strong>Supabase UI (strong)</Text>
+ <br />
+ <Link href="https://supabase.io" target="_blank">
+ Supabase (Link)
+ </Link>
+ </>
+)
diff --git a/packages/common2/src/components/Typography/Typography.tsx b/packages/common2/src/components/Typography/Typography.tsx
new file mode 100644
index 00000000000..f9dc9592d5f
--- /dev/null
+++ b/packages/common2/src/components/Typography/Typography.tsx
@@ -0,0 +1,31 @@
+import React from 'react'
+// @ts-ignore
+import TypographyStyles from './Typography.module.css'
+import Title from './Title'
+import Text from './Text'
+import Link from './Link'
+
+function Typography({ children, className, tag = 'div', style }: any) {
+ // let classes = [
+ // TypographyStyles['sbui-typography'],
+ // TypographyStyles['sbui-typography-container'],
+ // ]
+ // if (className) {
+ // classes.push(className)
+ // }
+ let CustomTag: any = `${tag}`
+ return (
+ <CustomTag
+ style={style}
+ // className={classes.join(' ')}
+ >
+ {children}
+ </CustomTag>
+ )
+}
+
+Typography.Title = Title
+Typography.Text = Text
+Typography.Link = Link
+
+export default Typography
diff --git a/packages/common2/src/components/Typography/index.tsx b/packages/common2/src/components/Typography/index.tsx
new file mode 100644
index 00000000000..3b869c1aab7
--- /dev/null
+++ b/packages/common2/src/components/Typography/index.tsx
@@ -0,0 +1,6 @@
+
+import Typography from './Typography'
+export default Typography
+export { default as Typography } from './Typography'
+
+
diff --git a/packages/common2/src/components/Upload/Upload.module.css b/packages/common2/src/components/Upload/Upload.module.css
new file mode 100644
index 00000000000..c6f6109ae27
--- /dev/null
+++ b/packages/common2/src/components/Upload/Upload.module.css
@@ -0,0 +1,7 @@
+.sbui-upload-dragger {
+ @apply cursor-pointer max-w-lg flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md;
+}
+
+.sbui-upload-dragger--dragged {
+ @apply bg-brand-100;
+}
\ No newline at end of file
diff --git a/packages/common2/src/components/Upload/Upload.stories.tsx b/packages/common2/src/components/Upload/Upload.stories.tsx
new file mode 100644
index 00000000000..34d884df7ad
--- /dev/null
+++ b/packages/common2/src/components/Upload/Upload.stories.tsx
@@ -0,0 +1,70 @@
+import React, { useState } from 'react'
+
+import Upload from '.'
+import Typography from '../Typography'
+
+export default {
+ title: 'Data Input/Upload',
+ component: Upload,
+}
+
+export const Draggable = () => {
+ const [files, setFiles] = useState<Array<File>>([])
+
+ return (
+ <Upload.Dragger
+ label="Upload CSV"
+ layout="horizontal"
+ files={files}
+ setFiles={setFiles}
+ >
+ <div className="flex flex-col gap-8 justify-evenly">
+ <div className="space-y-1 text-center">
+ <svg
+ className="mx-auto h-12 w-12 text-gray-400"
+ stroke="currentColor"
+ fill="none"
+ viewBox="0 0 48 48"
+ aria-hidden="true"
+ >
+ <path
+ d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ </svg>
+ <div className="flex text-sm text-gray-600">
+ <Typography.Text className="m-auto text-center">
+ <Typography.Link
+ style={{
+ textDecoration: 'none',
+ }}
+ >
+ Upload a file
+ </Typography.Link>
+ {' or drag and drop'}
+ </Typography.Text>
+ </div>
+ <Typography.Text small type="secondary">
+ PNG, JPG, GIF up to 10MB
+ </Typography.Text>
+ {/* <p className="text-xs text-gray-500">PNG, JPG, GIF up to 10MB</p> */}
+ </div>
+
+ {/* Previews */}
+ {files.length > 0 && (
+ <div className="grid grid-flow-row grid-cols-3 gap-8 items-center justify-evenly m-auto">
+ {files.map((file) => (
+ <img
+ className="h-32 object-cover w-full rounded-lg"
+ src={URL.createObjectURL(file)}
+ alt={file.name}
+ />
+ ))}
+ </div>
+ )}
+ </div>
+ </Upload.Dragger>
+ )
+}
diff --git a/packages/common2/src/components/Upload/Upload.tsx b/packages/common2/src/components/Upload/Upload.tsx
new file mode 100644
index 00000000000..ce4b43b6d42
--- /dev/null
+++ b/packages/common2/src/components/Upload/Upload.tsx
@@ -0,0 +1,102 @@
+import React, { useState } from 'react'
+import { FormLayout } from '../../lib/Layout/FormLayout'
+// @ts-ignore
+// import UploadStyles from './Upload.module.css'
+
+function Upload({ label, children }: any) {
+ return <h1>WIP</h1>
+}
+
+function Dragger({
+ label,
+ afterLabel,
+ beforeLabel,
+ layout,
+ children,
+ files,
+ setFiles,
+}: any) {
+ // const [classes, setClasses] = useState([UploadStyles['sbui-upload-dragger']])
+
+ // const draggedCssClass = UploadStyles['sbui-upload-dragger--dragged']
+
+ const dragOver = (e: any) => {
+ e.preventDefault()
+
+ // if (!classes.includes(draggedCssClass)) {
+ // let originalClasses = classes
+ // originalClasses.push(draggedCssClass)
+ // setClasses(originalClasses)
+ // }
+ }
+
+ const dragEnter = (e: any) => {
+ e.preventDefault()
+ // if (!classes.includes(draggedCssClass)) {
+ // let originalClasses = classes
+ // originalClasses.push(draggedCssClass)
+ // setClasses(originalClasses)
+ // }
+ }
+
+ const dragLeave = (e: any) => {
+ e.preventDefault()
+
+ // if (classes.includes(draggedCssClass)) {
+ // let newClasses = classes
+
+ // for (var i = 0; i < newClasses.length; i++) {
+ // if (newClasses[i] === draggedCssClass) {
+ // newClasses.splice(i, 1)
+ // }
+ // }
+ // setClasses(newClasses)
+ // }
+ }
+
+ const fileDrop = (e: any) => {
+ e.preventDefault()
+ const newFiles = e.dataTransfer.files
+ setFiles([...files, ...newFiles])
+ }
+
+ const fileUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
+ e.preventDefault()
+ const newFiles = e.target.files || []
+ setFiles([...files, ...newFiles])
+ }
+
+ return (
+ <div
+ onDragOver={dragOver}
+ onDragEnter={dragEnter}
+ onDragLeave={dragLeave}
+ onDrop={fileDrop}
+ >
+ <FormLayout
+ label={label}
+ afterLabel={afterLabel}
+ beforeLabel={beforeLabel}
+ layout={layout}
+ >
+ <label
+ htmlFor="file-upload"
+ // className={classes.join(' ')}
+ >
+ <input
+ id="file-upload"
+ name="file-upload"
+ type="file"
+ // className="sr-only"
+ onChange={fileUpload}
+ />
+
+ {children}
+ </label>
+ </FormLayout>
+ </div>
+ )
+}
+
+Upload.Dragger = Dragger
+export default Upload
diff --git a/packages/common2/src/components/Upload/index.tsx b/packages/common2/src/components/Upload/index.tsx
new file mode 100644
index 00000000000..5a64039fd8e
--- /dev/null
+++ b/packages/common2/src/components/Upload/index.tsx
@@ -0,0 +1,6 @@
+
+import Upload from './Upload'
+export default Upload
+export { default as Upload } from './Upload'
+
+
diff --git a/packages/common2/src/lib/Form/Form.utils.ts b/packages/common2/src/lib/Form/Form.utils.ts
new file mode 100644
index 00000000000..b167d4fac4c
--- /dev/null
+++ b/packages/common2/src/lib/Form/Form.utils.ts
@@ -0,0 +1,4 @@
+export function validator(value) {
+ const _validation = validation(_value)
+ fieldLevelValidation(id, _validation)
+}
diff --git a/packages/common2/src/lib/Hooks.js b/packages/common2/src/lib/Hooks.js
new file mode 100644
index 00000000000..934c37cb96b
--- /dev/null
+++ b/packages/common2/src/lib/Hooks.js
@@ -0,0 +1,37 @@
+import { useEffect } from 'react'
+
+/*
+ reference https://usehooks.com/useOnClickOutside/
+*/
+
+function useOnClickOutside(ref, handler) {
+ useEffect(
+ () => {
+ const listener = (event) => {
+ // Do nothing if clicking ref's element or descendent elements
+ if (!ref.current || ref.current.contains(event.target)) {
+ return
+ }
+
+ handler(event)
+ }
+
+ document.addEventListener('mousedown', listener)
+ document.addEventListener('touchstart', listener)
+
+ return () => {
+ document.removeEventListener('mousedown', listener)
+ document.removeEventListener('touchstart', listener)
+ }
+ },
+ // Add ref and handler to effect dependencies
+ // It's worth noting that because passed in handler is a new ...
+ // ... function on every render that will cause this effect ...
+ // ... callback/cleanup to run every render. It's not a big deal ...
+ // ... but to optimize you can wrap handler in useCallback before ...
+ // ... passing it into this hook.
+ [ref, handler]
+ )
+}
+
+export { useOnClickOutside }
diff --git a/packages/common2/src/lib/Layout/FormLayout/FormLayout.module.css b/packages/common2/src/lib/Layout/FormLayout/FormLayout.module.css
new file mode 100644
index 00000000000..4471eaef357
--- /dev/null
+++ b/packages/common2/src/lib/Layout/FormLayout/FormLayout.module.css
@@ -0,0 +1,104 @@
+/* .sbui-formlayout {
+ @apply grid gap-2;
+} */
+
+/* .sbui-formlayout--flex {
+ @apply flex justify-between;
+}
+
+.sbui-formlayout--flex-right div:last-child {
+ @apply text-right;
+}
+
+.sbui-formlayout--flex-left div:first-child {
+ @apply order-2;
+}
+
+.sbui-formlayout--flex-left div:last-child {
+ @apply order-1;
+} */
+
+/* .sbui-formlayout--non-responsive {
+ @apply grid grid-cols-12 gap-4;
+} */
+
+/* .sbui-formlayout--responsive {
+ @apply md:grid md:grid-cols-12 md:gap-4;
+} */
+
+/* .sbui-formlayout__label-container-horizontal {
+ @apply justify-between col-span-12;
+}
+
+.sbui-formlayout__label-container-vertical {
+ @apply col-span-4;
+}
+
+.sbui-formlayout__content-container-horizontal {
+ @apply col-span-12;
+}
+
+.sbui-formlayout__content-container-vertical {
+ @apply col-span-8;
+}
+
+.sbui-formlayout__content-container-vertical--align-right {
+ @apply text-right;
+} */
+
+/* .sbui-formlayout__label {
+ @apply block text-sm text-input-label-light dark:text-input-label-dark;
+} */
+
+/* .sbui-formlayout__label-opt,
+.sbui-formlayout__label .sbui-formlayout__label-before,
+.sbui-formlayout__label .sbui-formlayout__label-after {
+ @apply text-sm text-gray-400 dark:text-gray-300;
+} */
+
+/* .sbui-formlayout__error {
+ @apply mt-2 text-sm text-red-500;
+} */
+
+/* .sbui-formlayout__description {
+ @apply mt-2 text-sm text-gray-400 dark:text-gray-300;
+} */
+
+/* .sbui-formlayout__content-container--width-25 {
+ width:
+} */
+
+/*
+ Layout sizes
+*/
+
+/* .sbui-formlayout--tiny .sbui-formlayout__label, */
+/* .sbui-formlayout--tiny .sbui-formlayout__label-opt, */
+/* .sbui-formlayout--tiny .sbui-formlayout__error, */
+/* .sbui-formlayout--tiny .sbui-formlayout__description {
+ @apply text-xs;
+} */
+/* .sbui-formlayout--small .sbui-formlayout__label, */
+/* .sbui-formlayout--small .sbui-formlayout__label-opt, */
+/* .sbui-formlayout--small .sbui-formlayout__error, */
+/* .sbui-formlayout--small .sbui-formlayout__description {
+ @apply text-sm leading-4;
+} */
+/* .sbui-formlayout--medium .sbui-formlayout__label, */
+/* .sbui-formlayout--medium .sbui-formlayout__label-opt, */
+/* .sbui-formlayout--medium .sbui-formlayout__error, */
+/* .sbui-formlayout--medium .sbui-formlayout__description {
+ @apply text-sm;
+} */
+/* .sbui-formlayout--large .sbui-formlayout__label, */
+/* .sbui-formlayout--large .sbui-formlayout__label-opt, */
+/* .sbui-formlayout--large .sbui-formlayout__error, */
+/* .sbui-formlayout--large .sbui-formlayout__description {
+ @apply text-base;
+} */
+/* .sbui-formlayout--xlarge .sbui-formlayout__label, */
+/* .sbui-formlayout--xlarge .sbui-formlayout__label-opt, */
+/* .sbui-formlayout--xlarge .sbui-formlayout__error, */
+/* .sbui-formlayout--xlarge .sbui-formlayout__description {
+ @apply text-base;
+} */
diff --git a/packages/common2/src/lib/Layout/FormLayout/FormLayout.tsx b/packages/common2/src/lib/Layout/FormLayout/FormLayout.tsx
new file mode 100644
index 00000000000..d400ed44020
--- /dev/null
+++ b/packages/common2/src/lib/Layout/FormLayout/FormLayout.tsx
@@ -0,0 +1,228 @@
+import React, { useEffect, useState } from 'react'
+// @ts-ignore
+import defaultTheme from '../../theme/defaultTheme'
+// @ts-ignore
+// import FormLayoutStyles from './FormLayout.module.css'
+
+type Props = {
+ align?: 'left' | 'right'
+ children?: any
+ className?: string
+ descriptionText?: string | React.ReactNode
+ error?: string | React.ReactNode
+ id?: string
+ label?: string | React.ReactNode
+ labelOptional?: string | React.ReactNode
+ layout?: 'horizontal' | 'vertical' | 'flex'
+ style?: React.CSSProperties
+ // flex?: boolean
+ responsive?: boolean
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ beforeLabel?: string
+ afterLabel?: string
+ nonBoxInput?: boolean
+ labelLayout?: 'horizontal' | 'vertical'
+}
+
+export function FormLayout({
+ align = 'left',
+ children,
+ className,
+ descriptionText,
+ error,
+ id,
+ label,
+ labelOptional,
+ layout = 'vertical',
+ style,
+ // flex = false,
+ labelLayout,
+ responsive = true,
+ size = 'medium',
+ beforeLabel,
+ afterLabel,
+ nonBoxInput = label ? false : true,
+}: Props) {
+ // _error is used label && to delay the error string beind removed too soon
+ // once it has animated out, the string will be removed
+ // const [_error, _setError] = useState(error)
+
+ // useEffect(() => {
+ // if (!error) {
+ // console.log('no error')
+ // setTimeout(function () {
+ // _setError(error)
+ // }, 500)
+ // } else {
+ // console.log('has error')
+ // _setError(error)
+ // }
+ // // Update the document title using the browser API
+ // }, [error])
+
+ const __styles = defaultTheme.form_layout
+
+ const flex = layout === 'flex'
+
+ let containerClasses = []
+
+ containerClasses.push(__styles.size[size])
+
+ let labelContainerClasses = []
+ let dataInputContainerClasses = []
+
+ if (layout !== 'horizontal' && !labelLayout && !flex) {
+ labelContainerClasses.push(__styles.labels_horizontal_layout)
+ } else if (labelLayout === 'horizontal') {
+ labelContainerClasses.push(__styles.labels_horizontal_layout)
+ } else if (labelLayout === 'vertical') {
+ labelContainerClasses.push(__styles.labels_vertical_layout)
+ } else {
+ labelContainerClasses.push(__styles.labels_vertical_layout)
+ }
+
+ if (layout !== 'horizontal') {
+ dataInputContainerClasses.push(__styles.data_input_horizontal_layout)
+ } else {
+ dataInputContainerClasses.push(__styles.data_input_vertical_layout)
+ if (align === 'right') {
+ dataInputContainerClasses.push(
+ __styles.data_input_vertical_layout__align_right
+ )
+ }
+ }
+
+ if (flex) {
+ containerClasses.push(__styles.flex[align].base)
+ if (align === 'left') {
+ labelContainerClasses.push(__styles.flex.left.labels)
+ dataInputContainerClasses.push(__styles.flex.left.data_input)
+ }
+ if (align === 'right') {
+ labelContainerClasses.push(__styles.flex.right.labels)
+ dataInputContainerClasses.push(__styles.flex.right.data_input)
+ }
+ } else {
+ containerClasses.push(
+ __styles.container,
+ responsive ? __styles.responsive : __styles.non_responsive
+ )
+ }
+
+ if (className) {
+ containerClasses.push(className)
+ }
+
+ const labelled = Boolean(label || beforeLabel || afterLabel)
+
+ // console.log('error', error)
+
+ const renderError = (
+ <p
+ data-state={error ? 'show' : 'hide'}
+ className={[__styles.error.base, __styles.error.size[size]].join(' ')}
+ >
+ {error}
+ </p>
+ )
+
+ const renderDescription = descriptionText && (
+ <p
+ className={[
+ __styles.description.base,
+ __styles.description.size[size],
+ ].join(' ')}
+ id={id + '-description'}
+ >
+ {descriptionText}
+ </p>
+ )
+
+ return (
+ <div className={containerClasses.join(' ')}>
+ {flex && <div className={__styles.flex[align].content}>{children}</div>}
+ {labelled || labelOptional || layout === 'horizontal' ? (
+ <div
+ // direction={
+ // (layout && layout === 'horizontal') ||
+ // (flex && layout && layout === 'vertical')
+ // ? 'vertical'
+ // : 'horizontal'
+ // }
+ className={labelContainerClasses.join(' ')}
+ >
+ {labelled && (
+ <label
+ className={[
+ __styles.label.base,
+ __styles.label.size[size],
+ 'break-all',
+ ].join(' ')}
+ htmlFor={id}
+ >
+ {beforeLabel && (
+ <span
+ className={[
+ __styles.label_before.base,
+ __styles.label_before.size[size],
+ ].join(' ')}
+ id={id + '-before'}
+ >
+ {beforeLabel}
+ </span>
+ )}
+ {label}
+ {afterLabel && (
+ <span
+ className={[
+ __styles.label_after.base,
+ __styles.label_after.size[size],
+ ].join(' ')}
+ id={id + '-after'}
+ >
+ {afterLabel}
+ </span>
+ )}
+ </label>
+ )}
+ {labelOptional && (
+ <span
+ className={[
+ __styles.label_optional.base,
+ __styles.label_optional.size[size],
+ ].join(' ')}
+ id={id + '-optional'}
+ >
+ {labelOptional}
+ </span>
+ )}
+ {flex && (
+ <>
+ {renderDescription}
+ {renderError}
+ </>
+ )}
+ </div>
+ ) : null}
+ {!flex && (
+ <div className={dataInputContainerClasses.join(' ')} style={style}>
+ <>
+ <div
+ className={
+ nonBoxInput && label && layout === 'vertical'
+ ? __styles.non_box_data_input_spacing_vertical
+ : nonBoxInput && label && layout === 'horizontal'
+ ? __styles.non_box_data_input_spacing_horizontal
+ : ''
+ }
+ >
+ {children}
+ </div>
+ {renderError}
+ {renderDescription}
+ </>
+ </div>
+ )}
+ </div>
+ )
+}
diff --git a/packages/common2/src/lib/Layout/FormLayout/index.tsx b/packages/common2/src/lib/Layout/FormLayout/index.tsx
new file mode 100644
index 00000000000..ff2fa96f3bc
--- /dev/null
+++ b/packages/common2/src/lib/Layout/FormLayout/index.tsx
@@ -0,0 +1 @@
+export { FormLayout } from './FormLayout'
diff --git a/packages/common2/src/lib/Layout/InputErrorIcon.module.css b/packages/common2/src/lib/Layout/InputErrorIcon.module.css
new file mode 100644
index 00000000000..2cadd14536f
--- /dev/null
+++ b/packages/common2/src/lib/Layout/InputErrorIcon.module.css
@@ -0,0 +1,3 @@
+.sbui-input-error-icon {
+ @apply inset-y-0 right-3 pr-2 pl-2 flex items-center pointer-events-none;
+}
diff --git a/packages/common2/src/lib/Layout/InputErrorIcon.tsx b/packages/common2/src/lib/Layout/InputErrorIcon.tsx
new file mode 100644
index 00000000000..7cd72f2577f
--- /dev/null
+++ b/packages/common2/src/lib/Layout/InputErrorIcon.tsx
@@ -0,0 +1,24 @@
+import React from 'react'
+import styleHandler from '../theme/styleHandler'
+// @ts-ignore
+import { IconAlertCircle } from './../../../index'
+
+interface Props {
+ style?: React.CSSProperties
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+}
+
+export default function InputErrorIcon({ style, size }: Props) {
+ const __styles = styleHandler('inputErrorIcon')
+
+ return (
+ <div className={__styles.base} style={style}>
+ <IconAlertCircle
+ size={size}
+ strokeWidth={2}
+ // stroke={'#f56565'}
+ className=""
+ />
+ </div>
+ )
+}
diff --git a/packages/common2/src/lib/Layout/InputIconContainer.module.css b/packages/common2/src/lib/Layout/InputIconContainer.module.css
new file mode 100644
index 00000000000..4b0df33466a
--- /dev/null
+++ b/packages/common2/src/lib/Layout/InputIconContainer.module.css
@@ -0,0 +1,6 @@
+.sbui-input-icon-container {
+ @apply absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none;
+ /* set the default color of the icon */
+ @apply text-gray-600;
+ @apply dark:text-white;
+}
diff --git a/packages/common2/src/lib/Layout/InputIconContainer.tsx b/packages/common2/src/lib/Layout/InputIconContainer.tsx
new file mode 100644
index 00000000000..8d28954e605
--- /dev/null
+++ b/packages/common2/src/lib/Layout/InputIconContainer.tsx
@@ -0,0 +1,7 @@
+import React from 'react'
+import styleHandler from '../theme/styleHandler'
+
+export default function InputIconContainer({ icon }: any) {
+ const __styles = styleHandler('inputIconContainer')
+ return <div className={__styles.base}>{icon}</div>
+}
diff --git a/packages/common2/src/lib/MarkdownSample.md b/packages/common2/src/lib/MarkdownSample.md
new file mode 100644
index 00000000000..a37fd608d76
--- /dev/null
+++ b/packages/common2/src/lib/MarkdownSample.md
@@ -0,0 +1,204 @@
+# top level heading
+
+```html
+<p class="lead">
+ Until now, trying to style an article, document, or blog post with Tailwind has been a tedious
+ task that required a keen eye for typography and a lot of complex custom CSS.
+</p>
+```
+
+By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you _really are_ just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.
+
+We get lots of complaints about it actually, with people regularly asking us things like:
+
+> Why is Tailwind removing the default styles on my `h1` elements? How do I disable this? What do you mean I lose all the other base styles too?
+
+We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a `p` element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look _awesome_, not awful.
+
+The `@tailwindcss/typography` plugin is our attempt to give you what you _actually_ want, without any of the downsides of doing something stupid like disabling our base styles.
+
+It adds a new `prose` class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:
+
+```html
+<article class="prose">
+ <h1>Garlic bread with cheese: What the science tells us</h1>
+ <p>
+ For years parents have espoused the health benefits of eating garlic bread with cheese to their
+ children, with the food earning such an iconic status in our culture that kids will often dress
+ up as warm, cheesy loaf for Halloween.
+ </p>
+ <p>
+ But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases
+ springing up around the country.
+ </p>
+ <!-- ... -->
+</article>
+```
+
+For more information about how to use the plugin and the features it includes, [read the documentation](https://github.com/tailwindcss/typography/blob/master/README.md).
+
+---
+
+## What to expect from here on out
+
+What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
+
+It's important to cover all of these use cases for a few reasons:
+
+1. We want everything to look good out of the box.
+2. Really just the first reason, that's the whole point of the plugin.
+3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items.
+
+Now we're going to try out another header style.
+
+### Typography should be easy
+
+So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.
+
+Something a wise person once told me about typography is:
+
+> Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.
+
+It's probably important that images look okay here by default as well:
+
+```html
+<figure>
+ <img
+ src="https://images.unsplash.com/photo-1556740758-90de374c12ad?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80"
+ alt=""
+ />
+ <figcaption>
+ Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
+ classical Latin literature from 45 BC, making it over 2000 years old.
+ </figcaption>
+</figure>
+```
+
+Now I'm going to show you an example of an unordered list to make sure that looks good, too:
+
+- So here is the first item in this list.
+- In this example we're keeping the items short.
+- Later, we'll use longer, more complex list items.
+
+And that's the end of this section.
+
+## What if we stack headings?
+
+### We should make sure that looks good, too
+
+Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.
+
+### When a heading comes after a paragraph …
+
+When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.
+
+- **I often do this thing where list items have headings.**
+
+ For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.
+
+ I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.
+
+- **Since this is a list, I need at least two items.**
+
+ I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.
+
+- **It's not a bad idea to add a third item either.**
+
+ I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.
+
+After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.
+
+## Code should look okay by default
+
+I think most people are going to use [highlight.js](https://highlightjs.org/) or [Prism](https://prismjs.com/) or something if they want to style their code blocks but it wouldn't hurt to make them look _okay_ out of the box, even with no syntax highlighting.
+
+Here's what a default `tailwind.config.js` file looks like at the time of writing:
+
+```js
+module.exports = {
+ purge: [],
+ theme: {
+ extend: {},
+ },
+ variants: {},
+ plugins: [],
+}
+```
+
+Hopefully that looks good enough to you.
+
+### What about nested lists?
+
+Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.
+
+1. **Nested lists are rarely a good idea.**
+ - You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
+ - Nested navigation in UIs is a bad idea too, keep things as flat as possible.
+ - Nesting tons of folders in your source code is also not helpful.
+2. **Since we need to have more items, here's another one.**
+ - I'm not sure if we'll bother styling more than two levels deep.
+ - Two is already too much, three is guaranteed to be a bad idea.
+ - If you nest four levels deep you belong in prison.
+3. **Two items isn't really a list, three is good though.**
+ - Again please don't nest lists if you want people to actually read your content.
+ - Nobody wants to look at this.
+ - I'm upset that we even have to bother styling this.
+
+The most annoying thing about lists in Markdown is that `<li>` elements aren't given a child `<p>` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.
+
+- **For example, here's another nested list.**
+
+ But this time with a second paragraph.
+
+ - These list items won't have `<p>` tags
+ - Because they are only one line each
+
+- **But in this second top-level list item, they will.**
+
+ This is especially annoying because of the spacing on this paragraph.
+
+ - As you can see here, because I've added a second line, this list item now has a `<p>` tag.
+
+ This is the second line I'm talking about by the way.
+
+ - Finally here's another list item so it's more like a list.
+
+- A closing list item, but with no nested list, because why not?
+
+And finally a sentence to close off this section.
+
+## There are other elements we need to style
+
+I almost forgot to mention links, like [this link to the Tailwind CSS website](https://tailwindcss.com). We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.
+
+| Wrestler | Origin | Finisher |
+| ----------------------- | ------------ | ------------------ |
+| Bret "The Hitman" Hart | Calgary, AB | Sharpshooter |
+| Stone Cold Steve Austin | Austin, TX | Stone Cold Stunner |
+| Randy Savage | Sarasota, FL | Elbow Drop |
+| Vader | Boulder, CO | Vader Bomb |
+| Razor Ramon | Chuluota, FL | Razor's Edge |
+
+We also need to make sure inline code looks good, like if I wanted to talk about `<span>` elements or tell you the good news about `@tailwindcss/typography`.
+
+### Sometimes I even use `code` in headings
+
+Even though it's probably a bad idea, and historically I've had a hard time making it look good. This _"wrap the code blocks in backticks"_ trick works pretty well though really.
+
+Another thing I've done in the past is put a `code` tag inside of a link, like if I wanted to tell you about the [`tailwindcss/docs`](https://github.com/tailwindcss/docs) repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.
+
+#### We haven't used an `h4` yet
+
+But now we have. Please don't use `h5` or `h6` in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a `before` pseudo-element to scream at you if you use an `h5` or `h6`.
+
+We don't style them at all out of the box because `h4` elements are already so small that they are the same size as the body copy. What are we supposed to do with an `h5`, make it _smaller_ than the body copy? No thanks.
+
+### We still need to think about stacked headings though
+
+#### Let's make sure we don't screw that up with `h4` elements, either
+
+Phew, with any luck we have styled the headings above this text and they look pretty good.
+
+Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.
+
+What I've written here is probably long enough, but adding this final sentence can't hurt.
diff --git a/packages/common2/src/lib/Overlay/Overlay.module.css b/packages/common2/src/lib/Overlay/Overlay.module.css
new file mode 100644
index 00000000000..0800ca6d729
--- /dev/null
+++ b/packages/common2/src/lib/Overlay/Overlay.module.css
@@ -0,0 +1,75 @@
+/*
+ Overlay animations imported first as so placement styles are not affected.
+*/
+
+.sbui-overlay--enter {
+ @apply transition ease-out duration-100;
+}
+.sbui-overlay--enterFrom {
+ @apply transform opacity-0 scale-95;
+}
+.sbui-overlay--enterTo {
+ @apply transform opacity-100 scale-100;
+}
+.sbui-overlay--leave {
+ @apply transition ease-in duration-75;
+}
+.sbui-overlay--leaveFrom {
+ @apply transform opacity-100 scale-100;
+}
+.sbui-overlay--leaveTo {
+ @apply transform opacity-0 scale-95;
+}
+
+.sbui-overlay {
+ @apply relative inline-block;
+}
+
+.sbui-overlay-container {
+ @apply w-56;
+}
+
+.sbui-overlay-container--bottomRight {
+ @apply absolute origin-top-right right-0 mt-2;
+}
+
+.sbui-overlay-container--bottomLeft {
+ @apply absolute origin-top-left left-0 mt-2;
+}
+
+.sbui-overlay-container--bottomCenter {
+ margin-top: 0.5rem;
+ position: absolute;
+ transform-origin: center;
+ transform-origin: bottom center;
+ left: 50%;
+ -webkit-transform: translateX(-50%);
+ transform: translateX(-50%);
+}
+
+.sbui-overlay-container--topRight {
+ @apply origin-bottom-right;
+ margin-top: -0.5rem;
+ position: absolute;
+ left: 0;
+ transform-origin: top left;
+ transform: translatey(-100%);
+}
+
+.sbui-overlay-container--topLeft {
+ @apply origin-bottom-left;
+ margin-top: -0.5rem;
+ position: absolute;
+ right: 0;
+ transform-origin: top left;
+ transform: translatey(-100%);
+}
+
+.sbui-overlay-container--topCenter {
+ @apply origin-bottom-left;
+ margin-top: -0.5rem;
+ position: absolute;
+ left: 50%;
+ transform-origin: top left;
+ transform: translatey(-100%) translateX(-50%);
+}
diff --git a/packages/common2/src/lib/Overlay/Overlay.tsx b/packages/common2/src/lib/Overlay/Overlay.tsx
new file mode 100644
index 00000000000..c20067b9494
--- /dev/null
+++ b/packages/common2/src/lib/Overlay/Overlay.tsx
@@ -0,0 +1,103 @@
+import React, { useEffect, useRef, useState } from 'react'
+//@ts-ignore
+import { useOnClickOutside } from './../../lib/Hooks'
+import { DropdownContext } from './OverlayContext'
+import { AnimationTailwindClasses } from '../../types'
+// @ts-ignore
+import OverlayStyles from './Overlay.module.css'
+
+import { Transition } from '@headlessui/react'
+
+interface Props {
+ visible?: boolean
+ overlay?: React.ReactNode
+ children?: React.ReactNode
+ placement?:
+ | 'bottomLeft'
+ | 'bottomRight'
+ | 'bottomCenter'
+ | 'topLeft'
+ | 'topRight'
+ | 'topCenter'
+ onVisibleChange?: any
+ disabled?: boolean
+ triggerElement?: any
+ overlayStyle?: React.CSSProperties
+ overlayClassName?: string
+ transition?: AnimationTailwindClasses
+}
+
+function Overlay({
+ visible,
+ overlay,
+ children,
+ placement = 'topCenter',
+ onVisibleChange,
+ disabled,
+ triggerElement,
+ overlayStyle,
+ overlayClassName,
+ transition,
+}: Props) {
+ const ref = useRef(null)
+ const [visibleState, setVisibleState] = useState(!!visible)
+
+ let classes = [
+ OverlayStyles['sbui-overlay-container'],
+ OverlayStyles[`sbui-overlay-container--${placement}`],
+ ]
+ if (overlayClassName) classes.push(overlayClassName)
+
+ function onToggle() {
+ setVisibleState(!visibleState)
+ if (onVisibleChange) onVisibleChange(visibleState)
+ }
+
+ // allow ovveride of Dropdown
+ useEffect(() => {
+ setVisibleState(!!visible)
+ }, [visible])
+
+ // detect clicks from outside
+ useOnClickOutside(ref, () => {
+ if (visibleState) {
+ setVisibleState(!visibleState)
+ }
+ })
+
+ const TriggerElement = () => {
+ return <div onClick={onToggle}>{triggerElement}</div>
+ }
+
+ return (
+ <div ref={ref} className={OverlayStyles['sbui-overlay']}>
+ {placement === 'bottomRight' ||
+ placement === 'bottomLeft' ||
+ placement === 'bottomCenter' ? (
+ <TriggerElement />
+ ) : null}
+ <Transition
+ show={visibleState}
+ enter={OverlayStyles[`sbui-overlay--enter`]}
+ enterFrom={OverlayStyles[`sbui-overlay--enterFrom`]}
+ enterTo={OverlayStyles[`sbui-overlay--enterTo`]}
+ leave={OverlayStyles[`sbui-overlay--leave`]}
+ leaveFrom={OverlayStyles[`sbui-overlay--leaveFrom`]}
+ leaveTo={OverlayStyles[`sbui-overlay--leaveTo`]}
+ >
+ <div className={classes.join(' ')} style={overlayStyle}>
+ <DropdownContext.Provider value={{ onClick: onToggle }}>
+ {children}
+ </DropdownContext.Provider>
+ </div>
+ </Transition>
+ {placement === 'topRight' ||
+ placement === 'topLeft' ||
+ placement === 'topCenter' ? (
+ <TriggerElement />
+ ) : null}
+ </div>
+ )
+}
+
+export default Overlay
diff --git a/packages/common2/src/lib/Overlay/OverlayContext.tsx b/packages/common2/src/lib/Overlay/OverlayContext.tsx
new file mode 100644
index 00000000000..69ff55ae974
--- /dev/null
+++ b/packages/common2/src/lib/Overlay/OverlayContext.tsx
@@ -0,0 +1,7 @@
+import { createContext } from 'react'
+
+// Make sure the shape of the default value passed to
+// createContext matches the shape that the consumers expect!
+export const DropdownContext = createContext({
+ onClick: (e: any) => {},
+})
diff --git a/packages/common2/src/lib/Spinner/index.ts b/packages/common2/src/lib/Spinner/index.ts
new file mode 100644
index 00000000000..fb38c417455
--- /dev/null
+++ b/packages/common2/src/lib/Spinner/index.ts
@@ -0,0 +1,5 @@
+// export function() {
+// return (
+
+// )
+// }
diff --git a/packages/common2/src/lib/Spinner/styles.module.css b/packages/common2/src/lib/Spinner/styles.module.css
new file mode 100644
index 00000000000..0bf8d819238
--- /dev/null
+++ b/packages/common2/src/lib/Spinner/styles.module.css
@@ -0,0 +1,51 @@
+html {
+ background: #009688;
+}
+ html, body {
+ height: 100%;
+}
+ body {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+ .spin-loader {
+ border-radius: 80%;
+ display: block;
+ height: 50px;
+ width: 50px;
+ position: relative;
+ animation: spin 0.675s linear 0s infinite normal;
+ background: #26a69a;
+}
+ .spin-loader:before, .spin-loader:after {
+ content: "";
+ display: block;
+ position: absolute;
+}
+ .spin-loader:before {
+ border-radius: 0 90px 90px 0;
+ height: 50px;
+ width: 50%;
+ top: 0;
+ right: 0;
+ z-index: 1;
+ background: #005041;
+ background-image: linear-gradient(#26a69a, #005041);
+}
+ .spin-loader:after {
+ border-radius: 80%;
+ height: 40px;
+ width: 40px;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ z-index: 1;
+ background: #009688;
+}
+ @keyframes spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
\ No newline at end of file
diff --git a/packages/common2/src/lib/constants.ts b/packages/common2/src/lib/constants.ts
new file mode 100644
index 00000000000..2423d7bb86c
--- /dev/null
+++ b/packages/common2/src/lib/constants.ts
@@ -0,0 +1 @@
+export const HIDDEN_PLACEHOLDER = '**** **** **** ****'
diff --git a/packages/common2/src/lib/theme/customThemeExample.ts b/packages/common2/src/lib/theme/customThemeExample.ts
new file mode 100644
index 00000000000..284a945e2d8
--- /dev/null
+++ b/packages/common2/src/lib/theme/customThemeExample.ts
@@ -0,0 +1,41 @@
+const defaults = {
+ brandBackground: 'bg-black',
+ size: {
+ text: {
+ tiny: 'text-xs',
+ small: 'text-sm leading-4',
+ medium: 'text-sm',
+ large: 'text-base',
+ xlarge: 'text-base',
+ },
+ padding: {
+ tiny: 'px-2.5 py-1.5',
+ small: 'px-3 py-2',
+ medium: 'px-4 py-2',
+ large: 'px-4 py-2',
+ xlarge: 'px-6 py-3',
+ },
+ },
+}
+
+// simple settings
+
+// advanced settings
+
+// Compiled default used for data inputs and buttons
+
+const default__padding_and_text = {
+ tiny: `${defaults.size.text.tiny} ${defaults.size.padding.tiny}`,
+ small: `${defaults.size.text.small} ${defaults.size.padding.small}`,
+ medium: `${defaults.size.text.medium} ${defaults.size.padding.medium}`,
+ large: `${defaults.size.text.large} ${defaults.size.padding.large}`,
+ xlarge: `${defaults.size.text.xlarge} ${defaults.size.padding.xlarge}`,
+}
+
+export default {
+ button: {
+ type: {
+ primary: `${defaults.brandBackground} text-white hover:bg-brand-600 dark:hover:bg-brand-900`,
+ },
+ },
+}
diff --git a/packages/common2/src/lib/theme/defaultTheme.ts b/packages/common2/src/lib/theme/defaultTheme.ts
new file mode 100644
index 00000000000..49ea2ddfdd9
--- /dev/null
+++ b/packages/common2/src/lib/theme/defaultTheme.ts
@@ -0,0 +1,1605 @@
+/*
+ * Globlal Variables
+ *
+ */
+
+const defaults = {
+ bg: {
+ brand: {
+ primary: 'bg-purple-600',
+ secondary: 'bg-purple-200',
+ },
+ },
+ text: {
+ brand: 'text-purple-600',
+ body: 'text-scale-600 dark:text-scaleDark-200',
+ title: 'text-scale-700 dark:text-scaleDark-100',
+ },
+ border: {
+ brand: 'border-brand-600',
+ primary: 'border-scale-700',
+ secondary: 'border-scale-400',
+ alternative: 'border-scale-600 dark:border-scaleDark-200',
+ },
+ placeholder: 'placeholder-scale-800',
+ focus: `
+ outline-none
+ focus:ring-current focus:ring-2
+ `,
+ 'focus-visible': `
+ outline-none
+ transition-all
+ outline-0
+ focus-visible:outline-4
+ focus-visible:outline-offset-1
+ `,
+ size: {
+ // buttons, inputs, input labels use these sizes
+ text: {
+ tiny: 'text-xs',
+ small: 'text-sm leading-4',
+ medium: 'text-sm',
+ large: 'text-base',
+ xlarge: 'text-base',
+ },
+ // buttons, inputs, input labels use these sizes
+ padding: {
+ tiny: 'px-2.5 py-1',
+ small: 'px-3 py-2',
+ medium: 'px-4 py-2',
+ large: 'px-4 py-2',
+ xlarge: 'px-6 py-3',
+ },
+ },
+ overlay: {
+ base: `absolute inset-0 bg-scale-200 opacity-50`,
+ container: `fixed inset-0 transition-opacity`,
+ },
+}
+
+const utils = {
+ border: {
+ hover:
+ 'border-opacity-50 dark:border-opacity-50 hover:border-opacity-100 dark:hover:border-opacity-100',
+ fix: 'border-opacity-100 dark:border-opacity-100',
+ },
+}
+
+const default__padding_and_text = {
+ tiny: `${defaults.size.text.tiny} ${defaults.size.padding.tiny}`,
+ small: `${defaults.size.text.small} ${defaults.size.padding.small}`,
+ medium: `${defaults.size.text.medium} ${defaults.size.padding.medium}`,
+ large: `${defaults.size.text.large} ${defaults.size.padding.large}`,
+ xlarge: `${defaults.size.text.xlarge} ${defaults.size.padding.xlarge}`,
+}
+
+/*
+ * Animations
+ *
+ */
+
+const default___animations = {
+ accordion: {
+ enter: 'transition-max-height ease-in-out duration-700 overflow-hidden',
+ enterFrom: 'max-h-0',
+ enterTo: 'max-h-screen',
+ leave: 'transition-max-height ease-in-out duration-300 overflow-hidden',
+ leaveFrom: 'max-h-screen',
+ leaveTo: 'max-h-0',
+ },
+}
+
+/*
+ * Main tailwind utility classes output
+ *
+ */
+
+export default {
+ /*
+ * Accordion
+ *
+ */
+
+ accordion: {
+ variants: {
+ default: {
+ base: `
+ flex flex-col
+ space-y-3
+ `,
+ container: `
+ group
+ first:rounded-tl-md first:rounded-tr-md
+ last:rounded-bl-md last:rounded-br-md
+ overflow-hidden
+ `,
+ trigger: `
+ flex flex-row
+ gap-3
+ items-center
+ w-full
+ text-left
+ cursor-pointer
+
+ outline-none
+ focus-visible:ring-1
+ focus-visible:z-50
+ ring-scale-1100
+ `,
+ content: `
+ data-open:animate-slide-down
+ data-closed:animate-slide-up
+ `,
+ panel: `
+ py-3
+ `,
+ },
+ bordered: {
+ base: `
+ flex flex-col
+ -space-y-px
+ `,
+ container: `
+ group
+ border
+ border-scale-700
+
+ first:rounded-tl-md first:rounded-tr-md
+ last:rounded-bl-md last:rounded-br-md
+ `,
+ trigger: `
+ flex flex-row
+ items-center
+ px-6 py-4
+ w-full
+ text-left
+ cursor-pointer
+
+ font-medium
+ text-base
+ bg-transparent
+
+ outline-none
+ focus-visible:ring-1
+ focus-visible:z-50
+ ring-scale-1100
+
+ transition-colors
+ hover:bg-scale-200
+
+ overflow-hidden
+
+ group-first:rounded-tl-md group-first:rounded-tr-md
+ group-last:rounded-bl-md group-last:rounded-br-md
+ `,
+ content: `
+ data-open:animate-slide-down
+ data-closed:animate-slide-up
+ `,
+ panel: `
+ px-6 py-3
+ border-t border-scale-700
+ bg-scale-200
+ `,
+ },
+ },
+ justified: `justify-between`,
+ chevron: {
+ base: `
+ text-scale-900
+ rotate-0 group-state-open:rotate-180
+ duration-200
+ `,
+ align: {
+ left: 'order-first',
+ right: 'order-last',
+ },
+ },
+ animate: {
+ ...default___animations.accordion,
+ },
+ },
+
+ /*
+ * Badge
+ *
+ */
+
+ badge: {
+ base: 'inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-opacity-10',
+ size: {
+ large: 'px-3 py-0.5 rounded-full text-sm',
+ },
+ dot: '-ml-0.5 mr-1.5 h-2 w-2 rounded-full',
+ color: {
+ brand: 'bg-brand-200 text-brand-1100 border border-brand-700',
+ scale: 'bg-scale-200 text-scale-1100 border border-scale-700',
+ tomato: `bg-tomato-200 text-tomato-1100 border border-tomato-700`,
+ red: `bg-red-200 text-red-1100 border border-red-700`,
+ crimson: `bg-crimson-200 text-crimson-1100 border border-crimson-700`,
+ pink: `bg-pink-200 text-pink-1100 border border-pink-700`,
+ plum: `bg-plum-200 text-plum-1100 border border-plum-700`,
+ purple: `bg-purple-200 text-purple-1100 border border-purple-700`,
+ violet: `bg-violet-200 text-violet-1100 border border-violet-700`,
+ indigo: `bg-indigo-200 text-indigo-1100 border border-indigo-700`,
+ blue: `bg-blue-200 text-blue-1100 border border-blue-700`,
+ cyan: `bg-cyan-200 text-cyan-1100 border border-cyan-700`,
+ teal: `bg-teal-200 text-teal-1100 border border-teal-700`,
+ green: `bg-green-200 text-green-1100 border border-green-700`,
+ grass: `bg-grass-200 text-grass-1100 border border-grass-700`,
+ brown: `bg-brown-200 text-brown-1100 border border-brown-700`,
+ orange: `bg-orange-200 text-orange-1100 border border-orange-700`,
+ sky: `bg-sky-200 text-sky-1100 border border-sky-700`,
+ mint: `bg-mint-200 text-mint-1100 border border-mint-700`,
+ lime: `bg-lime-200 text-lime-1100 border border-lime-700`,
+ yellow: `bg-yellow-200 text-yellow-1100 border border-yellow-700`,
+ amber: `bg-amber-200 text-amber-1100 border border-amber-700`,
+ gold: `bg-gold-200 text-gold-1100 border border-gold-700`,
+ bronze: `bg-bronze-200 text-bronze-1100 border border-bronze-700`,
+ gray: `bg-gray-200 text-gray-1100 border border-gray-700`,
+ mauve: `bg-mauve-200 text-mauve-1100 border border-mauve-700`,
+ slate: `bg-slate-200 text-slate-1100 border border-slate-700`,
+ sage: `bg-sage-200 text-sage-1100 border border-sage-700`,
+ olive: `bg-olive-200 text-olive-1100 border border-olive-700`,
+ sand: `bg-sand-200 text-sand-1100 border border-sand-700`,
+ },
+ },
+
+ /*
+ * Alert
+ *
+ */
+
+ alert: {
+ base: `
+ relative rounded border py-4 px-6
+ flex space-x-4 items-start
+ `,
+ header: 'block text-sm font-normal mb-1',
+ description: `text-xs`,
+ variant: {
+ danger: {
+ base: `bg-red-200 dark:bg-red-100 btext-red-1200 border-red-700`,
+ icon: `text-red-900`,
+ header: `text-red-1200`,
+ description: `text-red-1100`,
+ },
+ warning: {
+ base: `bg-amber-200 dark:bg-amber-100 border-amber-700`,
+ icon: `text-amber-900`,
+ header: `text-amber-1200`,
+ description: `text-amber-1100`,
+ },
+ info: {
+ base: `bg-blue-200 dark:bg-blue-100 border-blue-700`,
+ icon: `text-blue-900`,
+ header: `text-blue-1200`,
+ description: `text-blue-1100`,
+ },
+ success: {
+ base: `bg-brand-300 dark:bg-brand-100 border-brand-700`,
+ icon: `text-brand-900`,
+ header: `text-brand-1200`,
+ description: `text-brand-1100`,
+ },
+ neutral: {
+ base: `bg-scale-300 dark:bg-scale-300 border-scale-500`,
+ icon: `text-scale-900`,
+ header: `text-scale-1200`,
+ description: `text-scale-1100`,
+ },
+ },
+ close: `
+ absolute
+ right-6 top-4
+ p-0 m-0
+ text-scale-900
+ cursor-pointer transition ease-in-out
+ bg-transparent border-transparent focus:outline-none
+ opacity-50 hover:opacity-100`,
+ },
+
+ /*
+ * Card
+ */
+
+ card: {
+ base: `
+ bg-white dark:bg-scaleDark-700
+
+ border
+ ${defaults.border.primary}
+
+ flex flex-col
+ rounded-md shadow-lg overflow-hidden relative
+ `,
+ hoverable: 'transition hover:-translate-y-1 hover:shadow-2xl',
+ head: `px-8 py-6 flex justify-between
+ border-b
+ ${defaults.border.primary} `,
+ content: 'p-8',
+ },
+
+ /*
+ * Tabs
+ */
+
+ tabs: {
+ base: `w-full justify-between space-y-4`,
+ underlined: {
+ list: `
+ flex items-center border-b
+ ${defaults.border.secondary}
+ `,
+ base: `
+ relative
+ cursor-pointer
+ text-scale-900
+ flex
+ items-center
+ space-x-2
+ text-center
+ transition
+ focus:outline-none
+ focus-visible:ring
+ focus-visible:ring-scale-700
+ focus-visible:border-scale-900
+ `,
+ inactive: `
+ hover:text-scale-1200
+ `,
+ active: `
+ text-scale-1200
+ border-b-2 border-scale-1200
+ `,
+ },
+ pills: {
+ list: 'flex space-x-1',
+ base: `
+ relative
+ cursor-pointer
+ flex
+ items-center
+ space-x-2
+ text-center
+ transition
+ shadow-sm
+ rounded
+ focus:outline-none
+ focus-visible:ring
+ focus-visible:ring-scale-700
+ focus-visible:border-scale-900
+ `,
+ inactive: `
+ bg-scale-200
+ border border-scale-700 hover:border-scale-900
+ text-scale-900 hover:text-scale-1200
+ `,
+ active: `
+ bg-scale-1200
+ text-scale-200
+ border-scale-1200
+ `,
+ },
+ block: 'w-full flex items-center justify-center',
+ size: {
+ ...default__padding_and_text,
+ },
+ scrollable: `overflow-auto whitespace-nowrap no-scrollbar mask-fadeout-right`,
+ content: `focus:outline-none focus:ring text-scale-900`,
+ },
+
+ /*
+ * Button
+ */
+
+ // button: {
+ // base : 'border border-4'
+ // }
+
+ button: {
+ base: `
+ relative
+ cursor-pointer
+ inline-flex items-center space-x-2
+ text-center
+ font-regular
+ transition ease-out duration-200
+ rounded
+ ${defaults['focus-visible']}
+
+ `,
+ label: `truncate`,
+ container: 'inline-flex font-medium',
+ type: {
+ primary: `
+ bg-brand-fixed-800 hover:bg-brand-fixed-900
+ text-lo-contrast
+ bordershadow-brand-fixed-800 hover:bordershadow-brand-fixed-1000
+ focus-visible:outline-brand-600
+ `,
+ secondary: `
+ bg-scale-1200
+ text-scale-100 hover:text-scale-800
+ focus-visible:text-scale-600
+
+ bordershadow-scale-1100 hover:bordershadow-scale-900
+
+ focus-visible:outline-scale-700
+ `,
+ default: `
+ text-scale-1200
+ bg-scale-100 hover:bg-scale-300
+ bordershadow-scale-600 hover:bordershadow-scale-700
+ dark:bordershadow-scale-700 hover:dark:bordershadow-scale-800
+ dark:bg-scale-500 dark:hover:bg-scale-600
+ focus-visible:outline-brand-600
+
+ `,
+ alternative: `
+ text-brand-1100
+ bg-brand-200 hover:bg-brand-400
+ bordershadow-brand-600 hover:bordershadow-brand-800
+ dark:bordershadow-brand-700 hover:dark:bordershadow-brand-800
+ focus-visible:border-brand-800
+ focus-visible:outline-brand-600
+ `,
+ outline: `
+ text-scale-1200
+ bg-transparent
+ bordershadow-scale-600 hover:bordershadow-scale-700
+ dark:bordershadow-scale-800 hover:dark:bordershadow-scale-900
+ focus-visible:outline-scale-700
+ `,
+ dashed: `
+ text-scale-1200
+ border
+ border-dashed
+ border-scale-700 hover:border-scale-900
+ bg-transparent
+ focus-visible:outline-scale-700
+ `,
+ link: `
+ text-brand-1100
+ border
+ border-transparent
+ hover:bg-brand-400
+ border-opacity-0
+ bg-opacity-0 dark:bg-opacity-0
+ shadow-none
+ focus-visible:outline-scale-700
+ `,
+ text: `
+ text-scale-1200
+ hover:bg-scale-500
+ shadow-none
+ focus-visible:outline-scale-700
+ `,
+ danger: `
+ text-red-1100
+ bg-red-200
+ bordershadow-red-700 hover:bordershadow-red-900
+ hover:bg-red-900
+ hover:text-lo-contrast
+ focus-visible:outline-red-700
+ `,
+ warning: `
+ text-amber-1100
+ bg-amber-200
+ bordershadow-amber-700 hover:bordershadow-amber-900
+ hover:bg-amber-900
+ hover:text-hi-contrast
+ focus-visible:outline-amber-700
+ `,
+ },
+ block: 'w-full flex items-center justify-center',
+ shadow: 'shadow-sm',
+ size: {
+ ...default__padding_and_text,
+ },
+ loading: 'animate-spin',
+ // disabled prefix is disabled (lol..) by default in tailwind
+ // so we apply normal utilities instead, however you can add disabled prefixes if you enabled them in tailwind config.
+ // see more: https://tailwindcss.com/docs/hover-focus-and-other-states#disabled
+ disabled: 'opacity-50 cursor-not-allowed pointer-events-none',
+ },
+
+ /*
+ * Input
+ */
+
+ input: {
+ base: `
+ block
+ box-border
+ w-full
+ rounded-md
+ shadow-sm
+ transition-all
+ text-scale-1200
+ border
+ focus:shadow-md
+ ${defaults.focus}
+ focus:border-scale-900
+ focus:ring-scale-400
+ ${defaults.placeholder}
+ `,
+ variants: {
+ standard: `
+ bg-scaleA-200
+ border border-scale-700
+ `,
+ error: `
+ bg-red-100
+ border border-red-700
+ focus:ring-red-500
+ placeholder:text-red-600
+ `,
+ },
+ container: 'relative',
+ with_icon: 'pl-10',
+ size: {
+ ...default__padding_and_text,
+ },
+ disabled: 'opacity-50',
+ actions_container:
+ 'absolute inset-y-0 right-0 pl-3 pr-1 flex space-x-1 items-center',
+ textarea_actions_container:
+ 'absolute inset-y-1.5 right-0 pl-3 pr-1 flex space-x-1 items-start',
+ textarea_actions_container_items: 'flex items-center',
+ },
+
+ /*
+ * Select
+ */
+
+ select: {
+ base: `
+ block
+ box-border
+ w-full
+ rounded-md
+ shadow-sm
+ transition-all
+ text-scale-1200
+ border
+ focus:shadow-md
+ ${defaults.focus}
+ focus:border-scale-900
+ focus:ring-scale-400
+ ${defaults.placeholder}
+
+ appearance-none
+ bg-none
+ `,
+ variants: {
+ standard: `
+ bg-scaleA-200
+ border border-scale-700
+ `,
+ error: `
+ bg-red-100
+ border border-red-700
+ focus:ring-red-500
+ placeholder:text-red-600
+ `,
+ },
+ container: 'relative',
+ with_icon: 'pl-10',
+ size: {
+ ...default__padding_and_text,
+ },
+ disabled: 'opacity-50',
+ actions_container:
+ 'absolute inset-y-0 right-0 pl-3 pr-1 mr-5 flex items-center',
+ chevron_container:
+ 'absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none',
+ chevron: 'h-5 w-5 text-scale-600',
+ },
+
+ /*
+ * Input Number
+ */
+
+ inputNumber: {
+ base: `
+ block
+ box-border
+ w-full
+ rounded-md
+ shadow-sm
+ transition-all
+ text-scale-1200
+ border
+ focus:shadow-md
+ ${defaults.focus}
+ focus:border-scale-900
+ focus:ring-scale-400
+ ${defaults.placeholder}
+
+ appearance-none
+ bg-none
+ `,
+ variants: {
+ standard: `
+ bg-scaleA-200
+ border border-scale-700
+ `,
+ error: `
+ bg-red-100
+ border border-red-700
+ focus:ring-red-500
+ placeholder:text-red-600
+ `,
+ },
+ disabled: 'opacity-50',
+ container: 'relative',
+ with_icon: 'pl-10',
+ size: {
+ ...default__padding_and_text,
+ },
+ actions_container:
+ 'absolute inset-y-0 right-0 pl-3 pr-1 flex space-x-1 items-center',
+ },
+
+ /*
+ * Checkbox
+ *
+ *
+ * This Checkbox requires a plugin in your config:
+
+ ```
+ // tailwind.config.js
+ module.exports = {
+ // ...
+ plugins: [
+ // ...
+ require('@tailwindcss/forms'),
+ ],
+ }
+ ```
+ *
+ *
+ */
+
+ checkbox: {
+ base: `
+ bg-transparent
+ ${defaults.focus}
+ focus:ring-scale-400
+ text-brand-900
+ border-scale-700
+ shadow-sm
+ rounded
+ cursor-pointer
+ `,
+ container: `flex cursor-pointer leading-none`,
+ size: {
+ tiny: `h-3 w-3 mt-1 mr-3`,
+ small: `h-3.5 w-3.5 mt-0.5 mr-3.5`,
+ medium: `h-4 w-4 mt-0.5 mr-3.5`,
+ large: `h-5 w-5 mt-0.5 mr-4`,
+ xlarge: `h-5 w-5 mt-0.5 mr-4`,
+ },
+ disabled: 'opacity-50',
+ label: {
+ base: `text-scale-1100 cursor-pointer`,
+ ...defaults.size.text,
+ },
+ label_before: {
+ base: 'text-scale-500',
+ ...defaults.size.text,
+ },
+ label_after: {
+ base: 'text-scale-500',
+ ...defaults.size.text,
+ },
+ description: {
+ base: `text-scale-900`,
+ ...defaults.size.text,
+ },
+ group: `space-y-3`,
+ },
+
+ /*
+ * Radio
+ *
+ *
+ * This Radio requires a plugin in your config:
+
+ ```
+ // tailwind.config.js
+ module.exports = {
+ // ...
+ plugins: [
+ // ...
+ require('@tailwindcss/forms'),
+ ],
+ }
+ ```
+ *
+ *
+ */
+
+ radio: {
+ base: `
+ absolute
+ ${defaults.focus}
+ focus:ring-brand-400
+ border-scale-700
+
+ text-brand-900
+ shadow-sm
+ cursor-pointer
+ peer
+
+ bg-scale-300
+ `,
+ hidden: `absolute opacity-0`,
+ size: {
+ tiny: `h-3 w-3`,
+ small: `h-3.5 w-3.5`,
+ medium: `h-4 w-4`,
+ large: `h-5 w-5`,
+ xlarge: `h-5 w-5`,
+ },
+ variants: {
+ cards: {
+ container: {
+ base: `relative cursor-pointer flex`,
+ align: {
+ vertical: 'flex flex-col space-y-1',
+ horizontal: 'flex flex-row space-x-2',
+ },
+ },
+ group: `-space-y-px shadow-sm`,
+ base: `
+ transition
+ border
+ first:rounded-tl-md first:rounded-tr-md
+ last:rounded-bl-md last:rounded-br-md
+ `,
+ size: {
+ tiny: `px-5 py-3`,
+ small: `px-6 py-4`,
+ medium: `px-6 py-4`,
+ large: `px-8 p-4`,
+ xlarge: `px-8 p-4`,
+ },
+ inactive: `
+ bg-scale-100 dark:bg-scale-400
+ border-scale-500 dark:border-scale-500
+ hover:border-scale-700 hover:dark:border-scale-700
+ hover:bg-scale-200 dark:hover:bg-scale-500
+ `,
+ active: `
+ bg-scale-300 dark:bg-scale-600 z-10
+ border-scale-900 dark:border-scale-900
+ border-1
+ `,
+ radio_offset: 'left-4',
+ },
+
+ 'stacked-cards': {
+ container: {
+ base: `relative cursor-pointer flex items-center justify-between`,
+ align: {
+ vertical: 'flex flex-col space-y-1',
+ horizontal: 'flex flex-row space-x-2',
+ },
+ },
+ group: `space-y-3`,
+ base: `
+ transition
+ rounded-md
+ border
+ shadow-sm
+ `,
+ size: {
+ tiny: `px-5 py-3`,
+ small: `px-6 py-4`,
+ medium: `px-6 py-4`,
+ large: `px-8 p-4`,
+ xlarge: `px-8 p-4`,
+ },
+ inactive: `
+ bg-scale-100 dark:bg-scale-400
+ border-scale-500 dark:border-scale-500
+ hover:border-scale-700 hover:dark:border-scale-700
+ hover:bg-scale-200 dark:hover:bg-scale-500
+ `,
+ active: `
+ bg-scale-300 dark:bg-scale-600 z-10
+ border-scale-900 dark:border-scale-900
+ border-1
+ `,
+ radio_offset: 'left-4',
+ },
+
+ 'small-cards': {
+ container: {
+ base: `relative cursor-pointer flex`,
+ align: {
+ vertical: 'flex flex-col space-y-1 items-center justify-center',
+ horizontal: 'flex flex-row space-x-2',
+ },
+ },
+ group: `flex flex-row gap-3`,
+ base: `
+ transition
+ border
+ rounded-lg
+ grow
+ items-center
+ flex-wrap
+ justify-center
+ shadow-sm
+ `,
+ size: {
+ tiny: `px-5 py-3`,
+ small: `px-6 py-4`,
+ medium: `px-6 py-4`,
+ large: `px-8 p-4`,
+ xlarge: `px-8 p-4`,
+ },
+ inactive: `
+ bg-scale-100 dark:bg-scale-400
+ border-scale-500 dark:border-scale-500
+ hover:border-scale-700 hover:dark:border-scale-700
+ hover:bg-scale-200 dark:hover:bg-scale-500
+ `,
+ active: `
+ bg-scale-300 dark:bg-scale-500 z-10
+ border-scale-900 dark:border-scale-900 border-1
+ `,
+ radio_offset: 'left-4',
+ },
+
+ 'large-cards': {
+ container: {
+ base: `relative cursor-pointer flex`,
+ align: {
+ vertical: 'flex flex-col space-y-1',
+ horizontal: 'flex flex-row space-x-2',
+ },
+ },
+ group: `flex flex-row gap-3`,
+ base: `
+ transition
+ border border-scale-700 hover:border-scale-900
+ shadow-sm
+ rounded-lg
+ grow
+ `,
+ size: {
+ tiny: `px-5 py-3`,
+ small: `px-6 py-4`,
+ medium: `px-6 py-4`,
+ large: `px-8 p-4`,
+ xlarge: `px-8 p-4`,
+ },
+ inactive: `
+ bg-scale-100 dark:bg-scale-400
+ border-scale-500 dark:border-scale-500
+ hover:border-scale-700 hover:dark:border-scale-700
+ hover:bg-scale-200 dark:hover:bg-scale-500
+ `,
+ active: `
+ bg-scale-300 dark:bg-scale-600 z-10
+ border-scale-900 dark:border-scale-900
+ border-1
+ `,
+ radio_offset: 'left-4',
+ },
+
+ list: {
+ container: {
+ base: `relative cursor-pointer flex`,
+ size: {
+ tiny: `pl-6`,
+ small: `pl-6`,
+ medium: `pl-7`,
+ large: `pl-10`,
+ xlarge: `pl-10`,
+ },
+ align: {
+ vertical: 'flex flex-col space-y-1',
+ horizontal: 'flex flex-row space-x-2',
+ },
+ },
+ group: `space-y-4`,
+ base: ``,
+ size: {
+ tiny: `0`,
+ small: `0`,
+ medium: `0`,
+ large: `0`,
+ xlarge: `0`,
+ },
+ active: ``,
+ radio_offset: 'left-0',
+ },
+ },
+ label: {
+ base: `text-scale-1100 cursor-pointer`,
+ ...defaults.size.text,
+ },
+ label_before: {
+ base: 'text-scale-500',
+ ...defaults.size.text,
+ },
+ label_after: {
+ base: 'text-scale-500',
+ ...defaults.size.text,
+ },
+ description: {
+ base: `text-scale-900`,
+ ...defaults.size.text,
+ },
+ optionalLabel: {
+ base: `text-scale-900`,
+ ...defaults.size.text,
+ },
+ disabled: `opacity-50 cursor-auto border-dashed`,
+ },
+
+ sidepanel: {
+ base: `
+ bg-scale-100 dark:bg-scale-300
+ flex flex-col
+ fixed
+ inset-y-0
+ max-w-full
+ h-screen
+ border-l border-overlay-border
+ shadow-xl
+ `,
+ header: `
+ space-y-1 py-4 px-4 bg-overlay-bg sm:px-6
+ border-b border-overlay-border
+ `,
+ contents: `
+ relative
+ flex-1
+ overflow-y-auto
+ `,
+ content: `
+ px-4 sm:px-6
+ `,
+ footer: `
+ flex justify-end gap-2
+ p-4 bg-overlay-bg
+ border-t border-overlay-border
+ `,
+ size: {
+ medium: `w-screen max-w-md h-full`,
+ large: `w-screen max-w-2xl h-full`,
+ },
+ align: {
+ left: `
+ left-0
+ data-open:animate-panel-slide-left-out
+ data-closed:animate-panel-slide-left-in
+ `,
+ right: `
+ right-0
+ data-open:animate-panel-slide-right-out
+ data-closed:animate-panel-slide-right-in
+ `,
+ },
+ seperator: `
+ w-full
+ h-px
+ my-2
+ bg-scale-300 dark:bg-scale-500
+ `,
+ overlay: `
+ fixed
+ bg-scale-300
+ dark:bg-scale-100
+ h-full w-full
+ left-0
+ top-0
+ opacity-75
+ data-closed:animate-fade-out-overlay-bg
+ data-open:animate-fade-in-overlay-bg
+ `,
+ // this is to reset the button
+ // it is advised not to change this
+ trigger: `
+ border-none bg-transparent p-0 focus:ring-0
+ `,
+ },
+
+ /*
+ * Toggle
+ */
+
+ toggle: {
+ base: `
+ p-0 relative
+ inline-flex flex-shrink-0
+ border-2 border-transparent
+ rounded-full
+ cursor-pointer
+ transition-colors ease-in-out duration-200
+ ${defaults.focus}
+ focus:ring-scale-400
+ bg-scale-500
+
+ hover:bg-scale-700
+ `,
+ active: `
+ bg-brand-900
+ hover:bg-brand-900
+ `,
+ handle_container: {
+ tiny: 'h-4 w-7',
+ small: 'h-6 w-11',
+ medium: 'h-6 w-11',
+ large: 'h-7 w-12',
+ xlarge: 'h-7 w-12',
+ },
+ handle: {
+ base: `
+ inline-block h-5 w-5
+ rounded-full
+ bg-scale-100
+ dark:bg-scale-900
+ shadow ring-0
+ transition
+ ease-in-out duration-200
+ `,
+ tiny: 'h-3 w-3',
+ small: 'h-5 w-5',
+ medium: 'h-5 w-5',
+ large: 'h-6 w-6',
+ xlarge: 'h-6 w-6',
+ },
+ handle_active: {
+ tiny: ' translate-x-3 dark:bg-white',
+ small: 'translate-x-5 dark:bg-white',
+ medium: 'translate-x-5 dark:bg-white',
+ large: 'translate-x-5 dark:bg-white',
+ xlarge: 'translate-x-5 dark:bg-white',
+ },
+ disabled: 'opacity-75 cursor-not-allowed',
+ },
+
+ /*
+ * Form Layout
+ */
+
+ form_layout: {
+ container: 'grid gap-2',
+
+ flex: {
+ left: {
+ base: 'flex flex-row gap-6',
+ content: ``,
+ labels: 'order-2',
+ data_input: 'order-1',
+ },
+ right: {
+ base: 'flex flex-row gap-6 justify-between',
+ content: `order-last`,
+ labels: '',
+ data_input: 'text-right',
+ },
+ },
+
+ responsive: 'md:grid md:grid-cols-12 md:gap-x-4',
+ non_responsive: 'grid grid-cols-12 gap-2',
+
+ labels_horizontal_layout:
+ 'flex flex-row space-x-2 justify-between col-span-12',
+ labels_vertical_layout: 'flex flex-col space-y-2 col-span-4',
+
+ data_input_horizontal_layout: 'col-span-12',
+
+ non_box_data_input_spacing_vertical: 'my-3',
+ non_box_data_input_spacing_horizontal: 'my-3 md:mt-0 mb-3',
+
+ data_input_vertical_layout: 'col-span-8',
+
+ data_input_vertical_layout__align_right: 'text-right',
+
+ label: {
+ base: 'block text-scale-1100',
+ size: {
+ ...defaults.size.text,
+ },
+ },
+ label_optional: {
+ base: 'text-scale-900',
+ size: {
+ ...defaults.size.text,
+ },
+ },
+ description: {
+ base: 'mt-2 text-scale-900',
+ size: {
+ ...defaults.size.text,
+ },
+ },
+ label_before: {
+ base: 'text-scale-500 ',
+ size: {
+ ...defaults.size.text,
+ },
+ },
+ label_after: {
+ base: 'text-scale-500',
+ size: {
+ ...defaults.size.text,
+ },
+ },
+ error: {
+ base: `
+ text-red-900
+ transition-all
+ data-show:mt-2
+ data-show:animate-slide-down-normal
+ data-hide:animate-slide-up-normal
+ `,
+ size: {
+ ...defaults.size.text,
+ },
+ },
+ size: {
+ tiny: 'text-xs',
+ small: 'text-sm leading-4',
+ medium: 'text-sm',
+ large: 'text-base',
+ xlarge: 'text-base',
+ },
+ },
+
+ /*
+ * Dropdown
+ */
+
+ dropdown: {
+ // root:
+ trigger: `
+ flex
+
+ border-none
+ rounded
+ bg-transparent p-0
+ outline-none
+ outline-offset-1
+ transition-all
+ focus:outline-4
+ focus:outline-scale-600
+ `,
+ item_nested: `
+ border-none
+ focus:outline-none
+ focus:bg-scale-300 dark:focus:bg-scale-500
+ focus:text-scale-1200
+ data-open:bg-scale-300 dark:data-open:bg-scale-500
+ data-open:text-scale-1200
+ `,
+ content: `
+ bg-scale-100 dark:bg-scale-300
+ border border-scale-300 dark:border-scale-500
+ rounded
+ shadow-lg
+ py-1.5
+
+ origin-dropdown
+ data-open:animate-dropdown-content-show
+ data-closed:animate-dropdown-content-hide
+ min-w-fit
+ `,
+ size: {
+ tiny: `w-40`,
+ small: `w-48`,
+ medium: `w-64`,
+ large: `w-80`,
+ xlarge: `w-96`,
+ content: `w-auto`,
+ },
+ arrow: `
+ fill-current
+ border-0 border-t
+ `,
+ item: `
+ group
+ relative
+ text-xs
+ text-scale-1100
+ px-4 py-1.5 flex items-center space-x-2
+ cursor-pointer
+ focus:bg-scale-300 dark:focus:bg-scale-500
+ focus:text-scale-1200
+ border-none
+ focus:outline-none
+ `,
+ label: `
+ text-scale-900
+ px-4 flex items-center space-x-2 py-1.5
+ text-xs
+ `,
+ seperator: `
+ w-full
+ h-px
+ my-2
+ bg-scale-300 dark:bg-scale-500
+ `,
+ misc: `
+ px-4 py-1.5
+ `,
+ check: `
+ absolute left-3
+ flex items-center
+ data-checked:text-scale-1200
+ `,
+ input: `
+ flex items-center space-x-0 pl-8 pr-4
+ `,
+ right_slot: `
+ text-scale-900
+ group-focus:text-scale-1000
+ absolute
+ -translate-y-1/2
+ right-2
+ top-1/2
+ `,
+ },
+
+ /*
+ * Popover
+ */
+
+ popover: {
+ trigger: `
+ flex
+ border-none
+
+ rounded
+ bg-transparent
+ p-0
+ outline-none
+ outline-offset-1
+ transition-all
+ focus:outline-4
+ focus:outline-scale-600
+
+ `,
+ content: `
+ bg-scale-100 dark:bg-scale-300
+ border border-scale-300 dark:border-scale-500
+ rounded
+ shadow-lg
+ data-open:animate-dropdown-content-show
+ data-closed:animate-dropdown-content-hide
+ min-w-fit
+
+ origin-popover
+ data-open:animate-dropdown-content-show
+ data-closed:animate-dropdown-content-hide
+ `,
+ size: {
+ tiny: `w-40`,
+ small: `w-48`,
+ medium: `w-64`,
+ large: `w-80`,
+ xlarge: `w-96`,
+ content: `w-auto`,
+ },
+ header: `
+ bg-scale-200 dark:bg-scale-400
+ space-y-1 py-1.5 px-3
+ border-b border-scale-300 dark:border-scale-500
+ `,
+ footer: `
+ bg-scale-200 dark:bg-scale-400
+ py-1.5 px-3
+ border-t border-scale-300 dark:border-scale-500
+ `,
+ close: `
+ transition
+ text-scale-900 hover:text-scale-1100
+ `,
+ seperator: `
+ w-full
+ h-px
+ my-2
+ bg-scale-300 dark:bg-scale-500
+ `,
+ },
+
+ /*
+ * Menu
+ */
+
+ menu: {
+ item: {
+ base: `
+ cursor-pointer
+ flex space-x-3 items-center
+ outline-none
+ focus-visible:ring-1 ring-scale-1200 focus-visible:z-10
+ group
+ `,
+ content: {
+ base: `transition truncate text-sm w-full`,
+ normal: `text-scale-1100 group-hover:text-scale-1200`,
+ active: `text-scale-1200 font-semibold`,
+ },
+ icon: {
+ base: `transition truncate text-sm`,
+ normal: `text-scale-900 group-hover:text-scale-1100`,
+ active: `text-scale-1200`,
+ },
+ variants: {
+ text: {
+ base: `
+ py-1
+ `,
+ normal: `
+ font-normal
+ border-scale-500
+ group-hover:border-scale-900`,
+ active: `
+ font-semibold
+ text-scale-900
+ z-10
+ `,
+ },
+ border: {
+ base: `
+ px-4 py-1
+ `,
+ normal: `
+ border-l
+ font-normal
+ border-scale-500
+ group-hover:border-scale-900`,
+ active: `
+ font-semibold
+
+ text-scale-900
+ z-10
+
+ border-l
+ border-brand-900
+ group-hover:border-brand-900
+ `,
+ rounded: `rounded-md`,
+ },
+ pills: {
+ base: `
+ px-3 py-1
+ `,
+ normal: `
+ font-normal
+ border-scale-500
+ group-hover:border-scale-900`,
+ active: `
+ font-semibold
+ bg-scale-400
+ dark:bg-scale-300
+ text-scale-900
+ z-10
+
+ rounded-md
+ `,
+ },
+ },
+ },
+ group: {
+ base: `
+ flex space-x-3
+ mb-2
+ font-normal
+ `,
+ icon: `text-scale-900`,
+ content: `text-sm text-scale-900 w-full`,
+ variants: {
+ text: ``,
+ pills: `px-3`,
+ border: ``,
+ },
+ },
+ },
+
+ /*
+ * modal
+ */
+ modal: {
+ base: `
+ relative
+ bg-scale-100 dark:bg-scale-300
+ my-4
+ border border-scale-300 dark:border-scale-500
+ rounded-md
+ shadow-xl
+ data-open:animate-overlay-show
+ data-closed:animate-overlay-hide
+
+ `,
+ header: `
+ bg-scale-200 dark:bg-scale-400
+ space-y-1 py-3 px-4 sm:px-5
+ border-b border-scale-300 dark:border-scale-500
+ `,
+ footer: `
+ flex justify-end gap-2
+ py-3 px-5
+ border-t border-scale-300 dark:border-scale-500
+ `,
+ size: {
+ tiny: `sm:align-middle sm:w-full sm:max-w-xs`,
+ small: `sm:align-middle sm:w-full sm:max-w-sm`,
+ medium: `sm:align-middle sm:w-full sm:max-w-lg`,
+ large: `sm:align-middle sm:w-full max-w-xl`,
+ xlarge: `sm:align-middle sm:w-full max-w-3xl`,
+ xxlarge: `sm:align-middle sm:w-full max-w-6xl`,
+ xxxlarge: `sm:align-middle sm:w-full max-w-7xl`,
+ },
+ overlay: `
+ fixed
+ bg-scale-300
+ dark:bg-scale-100
+ h-full w-full
+ left-0
+ top-0
+ opacity-75
+ data-closed:animate-fade-out-overlay-bg
+ data-open:animate-fade-in-overlay-bg
+ `,
+ scroll_overlay: `
+ fixed
+ inset-0
+ grid
+ place-items-center
+ overflow-y-auto
+ data-open:animate-overlay-show data-closed:animate-overlay-hide
+ `,
+ seperator: `
+ w-full
+ h-px
+ my-2
+ bg-scale-300 dark:bg-scale-500
+ `,
+ content: `px-5`,
+ },
+
+ // listbox
+
+ listbox: {
+ base: `
+ block
+ box-border
+ w-full
+ rounded-md
+ shadow-sm
+ text-scale-1200
+ border
+ focus:shadow-md
+ ${defaults.focus}
+ focus:border-scale-900
+ focus:ring-scale-400
+ ${defaults.placeholder}
+ indent-px
+ transition-all
+ bg-none
+ `,
+ container: 'relative',
+ label: `truncate`,
+ variants: {
+ standard: `
+ bg-scaleA-200
+ border border-scale-700
+
+ aria-expanded:border-scale-900
+ aria-expanded:ring-scale-400
+ aria-expanded:ring-2
+ `,
+ error: `
+ bg-red-100
+ border border-red-700
+ focus:ring-red-500
+ placeholder:text-red-600
+ `,
+ },
+ options_container_animate: `
+ transition
+ data-open:animate-slide-down
+ data-open:opacity-1
+ data-closed:animate-slide-up
+ data-closed:opacity-0
+ `,
+ options_container: `
+ bg-scale-100 dark:bg-scale-300
+ shadow-lg
+ border border-solid
+ border-gray-100 dark:border-gray-600 max-h-60
+ rounded-md py-1 text-base
+ sm:text-sm z-10 overflow-hidden overflow-y-scroll
+
+ origin-dropdown
+ data-open:animate-dropdown-content-show
+ data-closed:animate-dropdown-content-hide
+ `,
+ with_icon: 'pl-10',
+ addOnBefore: `
+ w-full flex flex-row items-center space-x-3
+ `,
+ size: {
+ ...default__padding_and_text,
+ },
+ disabled: `opacity-50`,
+ actions_container:
+ 'absolute inset-y-0 right-0 pl-3 pr-1 flex space-x-1 items-center',
+ chevron_container:
+ 'absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none',
+ chevron: 'h-5 w-5 text-scale-600',
+ option: `
+ w-listbox
+ transition cursor-pointer select-none relative py-2 pl-3 pr-9
+ text-scale-900
+ text-sm
+
+ focus:bg-scale-300 dark:focus:bg-scale-500
+ focus:text-scale-1200
+ border-none
+ focus:outline-none
+ `,
+ option_active: `text-scale-1200 bg-scale-600`,
+ option_disabled: `cursor-not-allowed opacity-50`,
+ option_inner: `flex items-center space-x-3`,
+ option_check: `absolute inset-y-0 right-0 flex items-center pr-3 text-brand-900`,
+ option_check_active: `text-brand-900`,
+ option_check_icon: `h-5 w-5`,
+ },
+
+ collapsible: {
+ content: `
+ data-open:animate-slide-down-normal
+ data-closed:animate-slide-up-normal
+ `,
+ },
+
+ inputErrorIcon: {
+ base: `
+ flex items-center
+ right-3 pr-2 pl-2
+ inset-y-0
+ pointer-events-none
+ text-red-900
+ `,
+ },
+
+ inputIconContainer: {
+ base: `
+ absolute inset-y-0
+ left-0 pl-3 flex
+ items-center pointer-events-none
+ text-scale-1100
+ `,
+ },
+
+ // Icon
+
+ icon: {
+ container: `flex-shrink-0 flex items-center justify-center rounded-full p-3`,
+ },
+
+ loading: {
+ base: `relative`,
+ content: {
+ base: `transition-opacity duration-300`,
+ active: `opacity-40`,
+ },
+ spinner: `
+ absolute
+ text-brand-900 animate-spin
+ inset-0
+ m-auto
+ `,
+ },
+}
diff --git a/packages/common2/src/lib/theme/styleHandler.ts b/packages/common2/src/lib/theme/styleHandler.ts
new file mode 100644
index 00000000000..e0093f1e4b8
--- /dev/null
+++ b/packages/common2/src/lib/theme/styleHandler.ts
@@ -0,0 +1,28 @@
+import { useContext } from 'react'
+import defaultTheme from './../theme/defaultTheme'
+import { ThemeContext } from './../../components/ThemeProvider/ThemeProvider'
+
+export default function styleHandler(target: string) {
+ let {
+ theme: { [target]: __styles },
+ }: any = useContext(ThemeContext)
+
+ if (!__styles) __styles = defaultTheme.button
+
+ // console.log(__styles)
+
+ // __styles.replace(/\s+/g, ' ')
+
+ // console.log('before string', __styles)
+
+ // __styles = JSON.stringify(JSON.parse(__styles))
+ __styles = JSON.stringify(__styles).replace(/\\n/g, '').replace(/\s\s+/g, ' ')
+
+ // console.log('string', __styles)
+
+ __styles = JSON.parse(__styles)
+
+ // console.log('string', __styles)
+
+ return __styles
+}
diff --git a/packages/common2/src/lib/theme/themeContext.tsx b/packages/common2/src/lib/theme/themeContext.tsx
new file mode 100644
index 00000000000..3e0fbcfc011
--- /dev/null
+++ b/packages/common2/src/lib/theme/themeContext.tsx
@@ -0,0 +1,67 @@
+import React, { useLayoutEffect, useMemo } from 'react'
+import { createContext } from 'react'
+import defaultTheme from './defaultTheme'
+
+import { mergeDeep } from '../../utils/mergeDeep'
+// import useDarkMode from './utils/useDarkMode'
+
+interface ThemeContextInterface {
+ theme?: any
+ // mode?: 'light' | 'dark'
+ // toggleMode?: any
+}
+
+export const ThemeContext = createContext<ThemeContextInterface>({
+ theme: defaultTheme,
+ // mode: 'light',
+ // toggleMode: true,
+})
+
+interface Props extends React.HTMLAttributes<HTMLDivElement> {
+ children: React.ReactNode
+ /**
+ * Defines the styles used throughout the library
+ */
+ theme?: object
+ /**
+ * Defines dark mode as the default theme
+ */
+ // dark?: boolean
+ /**
+ * Allows the change of theme, reading user's preferences and saving them
+ */
+ // usePreferences?: boolean
+}
+
+const themeWrapper: React.FC<Props> = ({
+ children,
+ theme: customTheme,
+ // dark,
+ // usePreferences = false,
+}) => {
+ const mergedTheme = mergeDeep(defaultTheme, customTheme)
+ // const [mode, setMode, toggleMode] = useDarkMode(usePreferences)
+
+ // useLayoutEffect(() => {
+ // if (dark) {
+ // if (setMode != null) {
+ // setMode('dark')
+ // }
+ // document.documentElement.classList.add(`dark`)
+ // }
+ // }, [dark])
+
+ const value = useMemo(
+ () => ({
+ theme: mergedTheme,
+ // mode,
+ // toggleMode,
+ }),
+ []
+ )
+
+ // console.log('defaultTheme', defaultTheme)
+ return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
+}
+
+export default themeWrapper
diff --git a/packages/common2/src/lib/utilities.tsx b/packages/common2/src/lib/utilities.tsx
new file mode 100644
index 00000000000..89cc8a5a1c4
--- /dev/null
+++ b/packages/common2/src/lib/utilities.tsx
@@ -0,0 +1,78 @@
+import React from 'react'
+
+// export const FormLayout = (props: any) => {
+// const {
+// align,
+// direction,
+// size,
+// label,
+// labelOptional,
+// layout,
+// children,
+// id,
+// error,
+// descriptionText,
+// className,
+// responsive
+// } = props
+
+// const spacingClass =
+// 'space-' + (direction === 'vertical' ? 'y' : 'x') + '-' + size
+
+// const responsiveClasses = responsive ? ' md:grid-cols-12' : ' grid-cols-12'
+
+// return (
+// <div className={"grid gap-2 " + className + responsiveClasses}>
+// <Space direction={layout && layout === 'horizontal' ? 'vertical' : 'horizontal'}
+// className={"" + (layout !== 'horizontal' ? ' justify-between col-span-12' : ' col-span-5')}
+// >
+// {label && (
+// <label
+// className="block text-sm font-sml text-gray-700 dark:text-gray-200 font-medium"
+// htmlFor={id}
+// >
+// {label}
+// </label>
+// )}
+// {labelOptional && (
+// <span className="text-sm text-gray-400 dark:text-gray-300" id={id + '-optional'}>
+// {labelOptional}
+// </span>
+// )}
+// </Space>
+// <div className={layout !== 'horizontal' ? 'col-span-12' : 'col-span-7' + (align === 'right' ? ' text-right' : '')}>
+// {children}
+// {error && (
+// <p className="mt-2 text-sm text-red-500" id="email-error">
+// {error}
+// </p>
+// )}
+// {descriptionText && (
+// <p className="mt-2 text-sm text-gray-400 dark:text-gray-300" id={id + '-description'}>
+// {descriptionText}
+// </p>
+// )}
+// </div>
+// </div>
+// )
+// }
+
+// export const Space = (props: any) => {
+// const { direction, size, className } = props
+
+// const spacingClass =
+// 'space-' + (direction === 'vertical' ? 'y' : 'x') + '-' + size
+
+// return (
+// <div
+// className={
+// 'flex' +
+// (className ? ' ' + className : '') +
+// (spacingClass ? ' ' + spacingClass : '') +
+// (direction === 'vertical' ? ' flex-col' : ' flex-row')
+// }
+// >
+// {props.children}
+// </div>
+// )
+// }
diff --git a/packages/common2/src/static/icons/apple-icon.svg b/packages/common2/src/static/icons/apple-icon.svg
new file mode 100644
index 00000000000..3902c024ec0
--- /dev/null
+++ b/packages/common2/src/static/icons/apple-icon.svg
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="842.32007"
+ viewBox="0 0 842.32007 1000.0001"
+ version="1.1"
+ height="1000.0001"
+ id="svg2"
+ inkscape:version="0.92.3 (2405546, 2018-03-11)"
+ sodipodi:docname="Apple_logo_black.svg">
+ <metadata
+ id="metadata10">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs8" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1366"
+ inkscape:window-height="705"
+ id="namedview6"
+ showgrid="false"
+ inkscape:zoom="0.1767767"
+ inkscape:cx="-621.03745"
+ inkscape:cy="964.94676"
+ inkscape:window-x="-8"
+ inkscape:window-y="-8"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" />
+ <path
+ d="m 824.66636,779.30363 c -15.12299,34.93724 -33.02368,67.09674 -53.7638,96.66374 -28.27076,40.3074 -51.4182,68.2078 -69.25717,83.7012 -27.65347,25.4313 -57.2822,38.4556 -89.00964,39.1963 -22.77708,0 -50.24539,-6.4813 -82.21973,-19.629 -32.07926,-13.0861 -61.55985,-19.5673 -88.51583,-19.5673 -28.27075,0 -58.59083,6.4812 -91.02193,19.5673 -32.48053,13.1477 -58.64639,19.9994 -78.65196,20.6784 -30.42501,1.29623 -60.75123,-12.0985 -91.02193,-40.2457 -19.32039,-16.8514 -43.48632,-45.7394 -72.43607,-86.6641 C 77.707522,829.30207 52.171259,778.62464 32.165691,720.84861 10.740416,658.44309 0,598.01283 0,539.50845 0,472.49197 14.481044,414.69125 43.486336,366.25444 66.28194,327.34823 96.60818,296.6578 134.5638,274.1276 c 37.95566,-22.53016 78.96676,-34.01129 123.1321,-34.74585 24.16591,0 55.85633,7.47508 95.23784,22.166 39.27042,14.74029 64.48571,22.21538 75.54091,22.21538 8.26518,0 36.27668,-8.7405 83.7629,-26.16587 44.90607,-16.16001 82.80614,-22.85118 113.85458,-20.21546 84.13326,6.78992 147.34122,39.95559 189.37699,99.70686 -75.24463,45.59122 -112.46573,109.4473 -111.72502,191.36456 0.67899,63.8067 23.82643,116.90384 69.31888,159.06309 20.61664,19.56727 43.64066,34.69027 69.2571,45.4307 -5.55531,16.11062 -11.41933,31.54225 -17.65372,46.35662 z M 631.70926,20.0057 c 0,50.01141 -18.27108,96.70693 -54.6897,139.92782 -43.94932,51.38118 -97.10817,81.07162 -154.75459,76.38659 -0.73454,-5.99983 -1.16045,-12.31444 -1.16045,-18.95003 0,-48.01091 20.9006,-99.39207 58.01678,-141.40314 C 497.65157,54.696 521.21876,37.0095 549.79815,22.90064 578.3158,9.00229 605.2903,1.31621 630.65988,0 c 0.74076,6.68575 1.04938,13.37191 1.04938,20.00505 z"
+ id="path4"
+ inkscape:connector-curvature="0"
+ style="stroke-width:0.84231985;fill:#b3b3b3;fill-opacity:1" />
+</svg>
diff --git a/packages/common2/src/static/icons/bitbucket-icon.svg b/packages/common2/src/static/icons/bitbucket-icon.svg
new file mode 100644
index 00000000000..cdf84686d93
--- /dev/null
+++ b/packages/common2/src/static/icons/bitbucket-icon.svg
@@ -0,0 +1 @@
+<svg height="2256" preserveAspectRatio="xMidYMid" width="2500" xmlns="http://www.w3.org/2000/svg" viewBox="-0.9662264221278978 -0.5824607696358868 257.93281329857973 230.8324730411935"><linearGradient id="a" x1="108.633%" x2="46.927%" y1="13.818%" y2="78.776%"><stop offset=".18" stop-color="#0052cc"/><stop offset="1" stop-color="#2684ff"/></linearGradient><g fill="none"><path d="M101.272 152.561h53.449l12.901-75.32H87.06z"/><path d="M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.202 8.202 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z" fill="#2684ff"/><path d="M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.105 11.105 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z" fill="url(#a)"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/discord-icon.svg b/packages/common2/src/static/icons/discord-icon.svg
new file mode 100644
index 00000000000..3efe1ec110f
--- /dev/null
+++ b/packages/common2/src/static/icons/discord-icon.svg
@@ -0,0 +1,10 @@
+<svg width="71" height="55" viewBox="0 0 71 55" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0)">
+<path d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z" fill="#5865F2"/>
+</g>
+<defs>
+<clipPath id="clip0">
+<rect width="71" height="55" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/packages/common2/src/static/icons/docs-illustration.svg b/packages/common2/src/static/icons/docs-illustration.svg
new file mode 100644
index 00000000000..4383eb673b7
--- /dev/null
+++ b/packages/common2/src/static/icons/docs-illustration.svg
@@ -0,0 +1,14 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ color="currentColor"
+>
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M16 4v12l-4-2-4 2V4M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"
+ />
+</svg>
diff --git a/packages/common2/src/static/icons/email-icon.svg b/packages/common2/src/static/icons/email-icon.svg
new file mode 100644
index 00000000000..8346023caa8
--- /dev/null
+++ b/packages/common2/src/static/icons/email-icon.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="white">
+ <path
+ d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"
+ />
+ <path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
+</svg>
diff --git a/packages/common2/src/static/icons/facebook-icon.svg b/packages/common2/src/static/icons/facebook-icon.svg
new file mode 100644
index 00000000000..916c8eff2b7
--- /dev/null
+++ b/packages/common2/src/static/icons/facebook-icon.svg
@@ -0,0 +1,18 @@
+
+<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="14.2222in" height="14.2222in" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
+viewBox="0 0 14222 14222"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <style type="text/css">
+ <![CDATA[
+ .fil0 {fill:#1977F3;fill-rule:nonzero}
+ .fil1 {fill:#FEFEFE;fill-rule:nonzero}
+ ]]>
+ </style>
+ </defs>
+ <g id="Layer_x0020_1">
+ <metadata id="CorelCorpID_0Corel-Layer"/>
+ <path class="fil0" d="M14222 7111c0,-3927 -3184,-7111 -7111,-7111 -3927,0 -7111,3184 -7111,7111 0,3549 2600,6491 6000,7025l0 -4969 -1806 0 0 -2056 1806 0 0 -1567c0,-1782 1062,-2767 2686,-2767 778,0 1592,139 1592,139l0 1750 -897 0c-883,0 -1159,548 -1159,1111l0 1334 1972 0 -315 2056 -1657 0 0 4969c3400,-533 6000,-3475 6000,-7025z"/>
+ <path class="fil1" d="M9879 9167l315 -2056 -1972 0 0 -1334c0,-562 275,-1111 1159,-1111l897 0 0 -1750c0,0 -814,-139 -1592,-139 -1624,0 -2686,984 -2686,2767l0 1567 -1806 0 0 2056 1806 0 0 4969c362,57 733,86 1111,86 378,0 749,-30 1111,-86l0 -4969 1657 0z"/>
+ </g>
+</svg>
diff --git a/packages/common2/src/static/icons/github-icon-dark.svg b/packages/common2/src/static/icons/github-icon-dark.svg
new file mode 100644
index 00000000000..2667c90a499
--- /dev/null
+++ b/packages/common2/src/static/icons/github-icon-dark.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.58 31.77" fill="currentColor">
+ <path
+ fill="#FFFFFF"
+ d="M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.82.15,1.11-.36,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.36,4.36,0,0,0-1.81-2.39c-1.47-1,.12-1,.12-1a3.43,3.43,0,0,1,2.49,1.68,3.48,3.48,0,0,0,4.74,1.36,3.46,3.46,0,0,1,1-2.18c-3.62-.41-7.42-1.81-7.42-8a6.3,6.3,0,0,1,1.67-4.37,5.94,5.94,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.41,15.41,0,0,1,8.16,0c3.11-2.11,4.47-1.67,4.47-1.67A5.91,5.91,0,0,1,25,11.07a6.3,6.3,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.85,3.85,0,0,1,1.11,3c0,2.18,0,3.94,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z"
+ />
+</svg>
diff --git a/packages/common2/src/static/icons/github-icon.svg b/packages/common2/src/static/icons/github-icon.svg
new file mode 100644
index 00000000000..61c01f33e16
--- /dev/null
+++ b/packages/common2/src/static/icons/github-icon.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.58 31.77" fill="currentColor">
+ <path
+ fill="currentColor"
+ d="M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.82.15,1.11-.36,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.36,4.36,0,0,0-1.81-2.39c-1.47-1,.12-1,.12-1a3.43,3.43,0,0,1,2.49,1.68,3.48,3.48,0,0,0,4.74,1.36,3.46,3.46,0,0,1,1-2.18c-3.62-.41-7.42-1.81-7.42-8a6.3,6.3,0,0,1,1.67-4.37,5.94,5.94,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.41,15.41,0,0,1,8.16,0c3.11-2.11,4.47-1.67,4.47-1.67A5.91,5.91,0,0,1,25,11.07a6.3,6.3,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.85,3.85,0,0,1,1.11,3c0,2.18,0,3.94,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z"
+ />
+</svg>
diff --git a/packages/common2/src/static/icons/gitlab-icon.svg b/packages/common2/src/static/icons/gitlab-icon.svg
new file mode 100644
index 00000000000..07da670ab19
--- /dev/null
+++ b/packages/common2/src/static/icons/gitlab-icon.svg
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 586 559" style="enable-background:new 0 0 586 559;" xml:space="preserve">
+<style type="text/css">
+ .st0{fill:#E24329;}
+ .st1{fill:#FCA326;}
+ .st2{fill:#FC6D26;}
+ .st3{display:none;}
+ .st4{display:inline;opacity:0.1;fill:#E828E3;enable-background:new ;}
+ .st5{display:inline;}
+ .st6{font-family:'ArialMT';}
+ .st7{font-size:24px;}
+</style>
+<g id="logo_art">
+ <g>
+ <path id="path50_2_" class="st0" d="M293,548.3L293,548.3l107.5-330.8H185.6L293,548.3L293,548.3z"/>
+ <path id="path66_6_" class="st1" d="M35,217.5L35,217.5L2.3,318c-3,9.1,0.2,19.2,8.1,24.9L293,548.3L35,217.5L35,217.5z"/>
+ <path id="path74_2_" class="st0" d="M35,217.5h150.6L120.8,18.3c-3.3-10.2-17.8-10.2-21.2,0L35,217.5L35,217.5z"/>
+ <path id="path82_6_" class="st1" d="M551.2,217.5L551.2,217.5L583.8,318c3,9.1-0.2,19.2-8.1,24.9L293,548.3L551.2,217.5
+ L551.2,217.5z"/>
+ <path id="path86_2_" class="st0" d="M551.2,217.5H400.6l64.7-199.2c3.3-10.2,17.8-10.2,21.2,0L551.2,217.5L551.2,217.5z"/>
+ <polygon class="st2" points="293,548.3 400.6,217.5 551.2,217.5 "/>
+ <polygon class="st2" points="293,548.3 35,217.5 185.6,217.5 "/>
+ </g>
+</g>
+<g id="spacing_guides" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" class="st3">
+ <path id="path40_18_" sketch:type="MSShapeGroup" class="st4" d="M0,0.5v124h586V0.5H0L0,0.5z"/>
+ <path id="path40_16_" sketch:type="MSShapeGroup" class="st4" d="M0,435.5v124h586v-124H0L0,435.5z"/>
+ <path id="path40_15_" sketch:type="MSShapeGroup" class="st4" d="M462.2,560h124V0h-124V560L462.2,560z"/>
+ <g class="st5">
+ <text transform="matrix(1 0 0 1 511.2881 283.3319)" class="st6 st7">1x</text>
+ </g>
+ <g class="st5">
+ <text transform="matrix(1 0 0 1 281.2881 500.9977)" class="st6 st7">1x</text>
+ </g>
+ <g class="st5">
+ <text transform="matrix(1 0 0 1 281.2881 65.998)" class="st6 st7">1x</text>
+ </g>
+ <path id="path40_5_" sketch:type="MSShapeGroup" class="st4" d="M0,560h124V0H0V560L0,560z"/>
+ <g class="st5">
+ <text transform="matrix(1 0 0 1 51.2881 283.3319)" class="st6 st7">1x</text>
+ </g>
+</g>
+</svg>
diff --git a/packages/common2/src/static/icons/google-icon.svg b/packages/common2/src/static/icons/google-icon.svg
new file mode 100644
index 00000000000..06dc52f0aa6
--- /dev/null
+++ b/packages/common2/src/static/icons/google-icon.svg
@@ -0,0 +1 @@
+<svg width="2443" height="2500" viewBox="0 0 256 262" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027" fill="#4285F4"/><path d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1" fill="#34A853"/><path d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782" fill="#FBBC05"/><path d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251" fill="#EB4335"/></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/messagebird-icon.svg b/packages/common2/src/static/icons/messagebird-icon.svg
new file mode 100644
index 00000000000..b9c98603bc7
--- /dev/null
+++ b/packages/common2/src/static/icons/messagebird-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path d="M57.425 14.726c-2.568 0-4.863 1.284-6.264 3.23l-9.454 13.228a1.9 1.9 0 0 1-1.556.817 1.91 1.91 0 0 1-1.906-1.906c0-.39.117-.778.31-1.05L46.53 17.1c.817-1.206 1.284-2.684 1.284-4.28 0-4.24-3.424-7.664-7.664-7.664H0v7.664h34.393c0 2.1-1.712 3.852-3.852 3.852H0c0 2.723.584 5.33 1.595 7.664H26.69c0 2.1-1.712 3.852-3.852 3.852H3.852a19.12 19.12 0 0 0 15.368 7.664h9.454a1.91 1.91 0 0 1 1.906 1.906 1.91 1.91 0 0 1-1.906 1.906H19.18l-12.84 19.18h23.227c10.62 0 19.647-6.925 22.8-16.496l4.32-13.11c1.4-4.24 3.968-7.976 7.314-10.816-1.323-2.218-3.774-3.696-6.575-3.696zm0 5.252c-.778 0-1.44-.66-1.44-1.44s.66-1.44 1.44-1.44 1.44.66 1.44 1.44c0 .817-.66 1.44-1.44 1.44z" fill="#2481d7"/></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/microsoft-icon.svg b/packages/common2/src/static/icons/microsoft-icon.svg
new file mode 100644
index 00000000000..5334aa7ca68
--- /dev/null
+++ b/packages/common2/src/static/icons/microsoft-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23"><path fill="#f3f3f3" d="M0 0h23v23H0z"/><path fill="#f35325" d="M1 1h10v10H1z"/><path fill="#81bc06" d="M12 1h10v10H12z"/><path fill="#05a6f0" d="M1 12h10v10H1z"/><path fill="#ffba08" d="M12 12h10v10H12z"/></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/phone-icon.svg b/packages/common2/src/static/icons/phone-icon.svg
new file mode 100644
index 00000000000..dd84e2ca79e
--- /dev/null
+++ b/packages/common2/src/static/icons/phone-icon.svg
@@ -0,0 +1,10 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-5 w-5"
+ viewBox="0 0 20 20"
+ fill="white"
+>
+ <path
+ d="M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"
+ />
+</svg>
diff --git a/packages/common2/src/static/icons/slack-icon.svg b/packages/common2/src/static/icons/slack-icon.svg
new file mode 100644
index 00000000000..69a4eb6a217
--- /dev/null
+++ b/packages/common2/src/static/icons/slack-icon.svg
@@ -0,0 +1 @@
+<svg enable-background="new 0 0 2447.6 2452.5" viewBox="0 0 2447.6 2452.5" xmlns="http://www.w3.org/2000/svg"><g clip-rule="evenodd" fill-rule="evenodd"><path d="m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z" fill="#36c5f0"/><path d="m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z" fill="#2eb67d"/><path d="m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z" fill="#ecb22e"/><path d="m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0" fill="#e01e5a"/></g></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/spotify-icon.svg b/packages/common2/src/static/icons/spotify-icon.svg
new file mode 100644
index 00000000000..41d8137620f
--- /dev/null
+++ b/packages/common2/src/static/icons/spotify-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1333.33 1333.3" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd"><path d="M666.66 0C298.48 0 0 298.47 0 666.65c0 368.19 298.48 666.65 666.66 666.65 368.22 0 666.67-298.45 666.67-666.65C1333.33 298.49 1034.88.03 666.65.03l.01-.04zm305.73 961.51c-11.94 19.58-37.57 25.8-57.16 13.77-156.52-95.61-353.57-117.26-585.63-64.24-22.36 5.09-44.65-8.92-49.75-31.29-5.12-22.37 8.84-44.66 31.26-49.75 253.95-58.02 471.78-33.04 647.51 74.35 19.59 12.02 25.8 37.57 13.77 57.16zm81.6-181.52c-15.05 24.45-47.05 32.17-71.49 17.13-179.2-110.15-452.35-142.05-664.31-77.7-27.49 8.3-56.52-7.19-64.86-34.63-8.28-27.49 7.22-56.46 34.66-64.82 242.11-73.46 543.1-37.88 748.89 88.58 24.44 15.05 32.16 47.05 17.12 71.46V780zm7.01-189.02c-214.87-127.62-569.36-139.35-774.5-77.09-32.94 9.99-67.78-8.6-77.76-41.55-9.98-32.96 8.6-67.77 41.56-77.78 235.49-71.49 626.96-57.68 874.34 89.18 29.69 17.59 39.41 55.85 21.81 85.44-17.52 29.63-55.89 39.4-85.42 21.8h-.03z" fill="#1ed760" fill-rule="nonzero"/></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/twilio-icon.svg b/packages/common2/src/static/icons/twilio-icon.svg
new file mode 100644
index 00000000000..76d12c7164a
--- /dev/null
+++ b/packages/common2/src/static/icons/twilio-icon.svg
@@ -0,0 +1 @@
+<svg fill="#F22F46" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M15 0C6.7 0 0 6.7 0 15s6.7 15 15 15 15-6.7 15-15S23.3 0 15 0zm0 26C8.9 26 4 21.1 4 15S8.9 4 15 4s11 4.9 11 11-4.9 11-11 11zm6.8-14.7c0 1.7-1.4 3.1-3.1 3.1s-3.1-1.4-3.1-3.1 1.4-3.1 3.1-3.1 3.1 1.4 3.1 3.1zm0 7.4c0 1.7-1.4 3.1-3.1 3.1s-3.1-1.4-3.1-3.1c0-1.7 1.4-3.1 3.1-3.1s3.1 1.4 3.1 3.1zm-7.4 0c0 1.7-1.4 3.1-3.1 3.1s-3.1-1.4-3.1-3.1c0-1.7 1.4-3.1 3.1-3.1s3.1 1.4 3.1 3.1zm0-7.4c0 1.7-1.4 3.1-3.1 3.1S8.2 13 8.2 11.3s1.4-3.1 3.1-3.1 3.1 1.4 3.1 3.1z"/></svg>
diff --git a/packages/common2/src/static/icons/twitch-icon.svg b/packages/common2/src/static/icons/twitch-icon.svg
new file mode 100644
index 00000000000..ee4a95fbf02
--- /dev/null
+++ b/packages/common2/src/static/icons/twitch-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path d="M5.7 0L1.4 10.985V55.88h15.284V64h8.597l8.12-8.12h12.418l16.716-16.716V0H5.7zm51.104 36.3L47.25 45.85H31.967l-8.12 8.12v-8.12H10.952V5.73h45.85V36.3zM47.25 16.716v16.716h-5.73V16.716h5.73zm-15.284 0v16.716h-5.73V16.716h5.73z" fill="#6441a4" fill-rule="evenodd"/></svg>
\ No newline at end of file
diff --git a/packages/common2/src/static/icons/twitter-icon.svg b/packages/common2/src/static/icons/twitter-icon.svg
new file mode 100644
index 00000000000..c0364cc1527
--- /dev/null
+++ b/packages/common2/src/static/icons/twitter-icon.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg width="256px" height="209px" viewBox="0 0 256 209" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M256,25.4500259 C246.580841,29.6272672 236.458451,32.4504868 225.834156,33.7202333 C236.678503,27.2198053 245.00583,16.9269929 248.927437,4.66307685 C238.779765,10.6812633 227.539325,15.0523376 215.57599,17.408298 C205.994835,7.2006971 192.34506,0.822 177.239197,0.822 C148.232605,0.822 124.716076,24.3375931 124.716076,53.3423116 C124.716076,57.4586875 125.181462,61.4673784 126.076652,65.3112644 C82.4258385,63.1210453 43.7257252,42.211429 17.821398,10.4359288 C13.3005011,18.1929938 10.710443,27.2151234 10.710443,36.8402889 C10.710443,55.061526 19.9835254,71.1374907 34.0762135,80.5557137 C25.4660961,80.2832239 17.3681846,77.9207088 10.2862577,73.9869292 C10.2825122,74.2060448 10.2825122,74.4260967 10.2825122,74.647085 C10.2825122,100.094453 28.3867003,121.322443 52.413563,126.14673 C48.0059695,127.347184 43.3661509,127.988612 38.5755734,127.988612 C35.1914554,127.988612 31.9009766,127.659938 28.694773,127.046602 C35.3777973,147.913145 54.7742053,163.097665 77.7569918,163.52185 C59.7820257,177.607983 37.1354036,186.004604 12.5289147,186.004604 C8.28987161,186.004604 4.10888474,185.75646 0,185.271409 C23.2431033,200.173139 50.8507261,208.867532 80.5109185,208.867532 C177.116529,208.867532 229.943977,128.836982 229.943977,59.4326002 C229.943977,57.1552968 229.893412,54.8901664 229.792282,52.6381454 C240.053257,45.2331635 248.958338,35.9825545 256,25.4500259" fill="#55acee"></path>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/packages/common2/src/types.ts b/packages/common2/src/types.ts
new file mode 100644
index 00000000000..0af236b4966
--- /dev/null
+++ b/packages/common2/src/types.ts
@@ -0,0 +1,8 @@
+export interface AnimationTailwindClasses {
+ enter?: string
+ enterFrom?: string
+ enterTo?: string
+ leave?: string
+ leaveFrom?: string
+ leaveTo?: string
+}
diff --git a/packages/common2/src/utils/mergeDeep.ts b/packages/common2/src/utils/mergeDeep.ts
new file mode 100644
index 00000000000..3731a7ade4f
--- /dev/null
+++ b/packages/common2/src/utils/mergeDeep.ts
@@ -0,0 +1,28 @@
+/**
+ * Check if item is Object
+ */
+export function isObject(item: any): boolean {
+ return item && typeof item === 'object' && !Array.isArray(item)
+}
+
+/**
+ * Deep merge two objects.
+ * @return merged object
+ */
+export function mergeDeep(target: any, ...sources: any[]): any {
+ if (sources.length === 0) return target
+ const source = sources.shift()
+
+ if (isObject(target) && isObject(source)) {
+ for (const key in source) {
+ if (isObject(source[key])) {
+ if (!target[key]) Object.assign(target, { [key]: {} })
+ mergeDeep(target[key], source[key])
+ } else {
+ Object.assign(target, { [key]: source[key] })
+ }
+ }
+ }
+
+ return mergeDeep(target, ...sources)
+}
diff --git a/packages/common2/src/utils/randomIdGenerator.ts b/packages/common2/src/utils/randomIdGenerator.ts
new file mode 100644
index 00000000000..be7c8071b9a
--- /dev/null
+++ b/packages/common2/src/utils/randomIdGenerator.ts
@@ -0,0 +1,14 @@
+// export default function () {
+// const randomNumber = Math.floor(Math.random() * 26) + Date.now()
+// return randomNumber.toString()
+// }
+
+export default function generateUID() {
+ // I generate the UID from two parts here
+ // to ensure the random number provide enough bits.
+ var firstPart = (Math.random() * 46656) | 0
+ var secondPart = (Math.random() * 46656) | 0
+ const newFirstPart = ('00000' + firstPart.toString(36)).slice(-3)
+ const newSecondPart = ('00000' + secondPart.toString(36)).slice(-3)
+ return newFirstPart + newSecondPart
+}
diff --git a/packages/common2/src/utils/useDarkMode.ts b/packages/common2/src/utils/useDarkMode.ts
new file mode 100644
index 00000000000..8db60d6b634
--- /dev/null
+++ b/packages/common2/src/utils/useDarkMode.ts
@@ -0,0 +1,46 @@
+// import { useEffect, useState } from 'react'
+
+// export const useDarkMode = (
+// usePreferences: boolean
+// ): [Mode, React.Dispatch<React.SetStateAction<Mode>> | null,
+// (() => void) | null
+// ] => {
+// if (!usePreferences) return [null, null, null]
+
+// const [mode, setMode] = useState<Mode>(null)
+
+// const toggleMode = () => {
+// if (mode === 'light') {
+// document.documentElement.className = ''
+// document.documentElement.classList.add('dark')
+// setMode('dark')
+// } else {
+// document.documentElement.className = ''
+// document.documentElement.classList.add('light')
+// setMode('light')
+// }
+// }
+
+// useEffect(() => {
+// const userPreference =
+// !!window.matchMedia &&
+// window.matchMedia('(prefers-color-scheme: dark)').matches
+
+// setMode(
+// // use stored theme; fallback to user preference
+// window.localStorage.getItem('theme') ||
+// (userPreference ? 'dark' : 'light')
+// )
+// }, [])
+
+// useEffect(() => {
+// if (mode) {
+// window.localStorage.setItem('theme', mode)
+// document.documentElement.classList.add(mode)
+// }
+// }, [mode])
+
+// return [mode, setMode, toggleMode]
+// }
+
+// export default useDarkMode
diff --git a/packages/common2/tailwind.config.js b/packages/common2/tailwind.config.js
new file mode 100644
index 00000000000..9c2af498997
--- /dev/null
+++ b/packages/common2/tailwind.config.js
@@ -0,0 +1 @@
+module.exports = require('config/tailwind.config')
diff --git a/packages/common2/tsconfig.json b/packages/common2/tsconfig.json
new file mode 100644
index 00000000000..cd6c94d6e8b
--- /dev/null
+++ b/packages/common2/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "extends": "tsconfig/react-library.json",
+ "include": ["."],
+ "exclude": ["dist", "build", "node_modules"]
+}
diff --git a/packages/ui/index.tsx b/packages/ui/index.tsx
new file mode 100644
index 00000000000..efb20086c4c
--- /dev/null
+++ b/packages/ui/index.tsx
@@ -0,0 +1,350 @@
+// // GENERAL
+
+export * from './src/components/Button/index'
+// export * from './src/components/Buttonaphy/index'
+// export * from './components/Icon/index'
+// // export * from './components/Image/index'
+
+// // DISPLAYS
+
+// export * from './components/Card/index'
+// export * from './components/Badge/index'
+// export * from './components/Tabs/index'
+// export * from './components/Alert/index'
+// export * from './components/Accordion/index'
+// export * from './components/Collapsible/index'
+
+// // NAV
+
+// export * from './components/Menu/index'
+
+// // OVERLAYS
+
+// export * from './components/Modal/index'
+// export * from './components/SidePanel/index'
+// export * from './components/Dropdown/index'
+// export * from './components/ContextMenu/index'
+// export * from './components/Popover/index'
+// // export * from './components/Toast/index'
+
+// // UTILITIES
+
+// export * from './components/Space/index'
+// export * from './components/Loading/index'
+// export * from './components/Divider/index'
+// export * from './components/ThemeProvider/index'
+
+// // DATA ENTRY
+
+// export * from './components/Select/index'
+// export * from './components/Listbox/index'
+// export * from './components/Checkbox/index'
+// export * from './components/Input/index'
+// export * from './components/InputNumber/index'
+// export * from './components/Radio/index'
+// export * from './components/Toggle/index'
+// export * from './components/Upload/index'
+// export * from './components/Form/index'
+
+// // config
+
+// // export { default as Config } from './../ui.config'
+
+// // ARCHIVE
+
+// // export * from './components/Textarea/index'
+
+// // AUTH
+
+// // export * from './components/Auth/index'
+
+// // ICONS
+
+// // export icons
+// export * from './components/Icon/icons/IconActivity/index'
+// export * from './components/Icon/icons/IconAirplay/index'
+// export * from './components/Icon/icons/IconAlertCircle/index'
+// export * from './components/Icon/icons/IconAlertOctagon/index'
+// export * from './components/Icon/icons/IconAlertTriangle/index'
+// export * from './components/Icon/icons/IconAlignCenter/index'
+// export * from './components/Icon/icons/IconAlignJustify/index'
+// export * from './components/Icon/icons/IconAlignLeft/index'
+// export * from './components/Icon/icons/IconAlignRight/index'
+// export * from './components/Icon/icons/IconAnchor/index'
+// export * from './components/Icon/icons/IconAperture/index'
+// export * from './components/Icon/icons/IconArchive/index'
+// export * from './components/Icon/icons/IconArrowDownCircle/index'
+// export * from './components/Icon/icons/IconArrowDownLeft/index'
+// export * from './components/Icon/icons/IconArrowDownRight/index'
+// export * from './components/Icon/icons/IconArrowDown/index'
+// export * from './components/Icon/icons/IconArrowLeftCircle/index'
+// export * from './components/Icon/icons/IconArrowLeft/index'
+// export * from './components/Icon/icons/IconArrowRightCircle/index'
+// export * from './components/Icon/icons/IconArrowRight/index'
+// export * from './components/Icon/icons/IconArrowUpCircle/index'
+// export * from './components/Icon/icons/IconArrowUpLeft/index'
+// export * from './components/Icon/icons/IconArrowUpRight/index'
+// export * from './components/Icon/icons/IconArrowUp/index'
+// export * from './components/Icon/icons/IconAtSign/index'
+// export * from './components/Icon/icons/IconAward/index'
+// export * from './components/Icon/icons/IconBarChart2/index'
+// export * from './components/Icon/icons/IconBarChart/index'
+// export * from './components/Icon/icons/IconBatteryCharging/index'
+// export * from './components/Icon/icons/IconBattery/index'
+// export * from './components/Icon/icons/IconBellOff/index'
+// export * from './components/Icon/icons/IconBell/index'
+// export * from './components/Icon/icons/IconBluetooth/index'
+// export * from './components/Icon/icons/IconBold/index'
+// export * from './components/Icon/icons/IconBookOpen/index'
+// export * from './components/Icon/icons/IconBook/index'
+// export * from './components/Icon/icons/IconBookmark/index'
+// export * from './components/Icon/icons/IconBox/index'
+// export * from './components/Icon/icons/IconBriefcase/index'
+// export * from './components/Icon/icons/IconCalendar/index'
+// export * from './components/Icon/icons/IconCameraOff/index'
+// export * from './components/Icon/icons/IconCamera/index'
+// export * from './components/Icon/icons/IconCast/index'
+// export * from './components/Icon/icons/IconCheckCircle/index'
+// export * from './components/Icon/icons/IconCheckSquare/index'
+// export * from './components/Icon/icons/IconCheck/index'
+// export * from './components/Icon/icons/IconChevronDown/index'
+// export * from './components/Icon/icons/IconChevronLeft/index'
+// export * from './components/Icon/icons/IconChevronRight/index'
+// export * from './components/Icon/icons/IconChevronUp/index'
+// export * from './components/Icon/icons/IconChevronsDown/index'
+// export * from './components/Icon/icons/IconChevronsLeft/index'
+// export * from './components/Icon/icons/IconChevronsRight/index'
+// export * from './components/Icon/icons/IconChevronsUp/index'
+// export * from './components/Icon/icons/IconChrome/index'
+// export * from './components/Icon/icons/IconCircle/index'
+// export * from './components/Icon/icons/IconClipboard/index'
+// export * from './components/Icon/icons/IconClock/index'
+// export * from './components/Icon/icons/IconCloudDrizzle/index'
+// export * from './components/Icon/icons/IconCloudLightning/index'
+// export * from './components/Icon/icons/IconCloudOff/index'
+// export * from './components/Icon/icons/IconCloudRain/index'
+// export * from './components/Icon/icons/IconCloudSnow/index'
+// export * from './components/Icon/icons/IconCloud/index'
+// export * from './components/Icon/icons/IconCode/index'
+// export * from './components/Icon/icons/IconCodepen/index'
+// export * from './components/Icon/icons/IconCodesandbox/index'
+// export * from './components/Icon/icons/IconCoffee/index'
+// export * from './components/Icon/icons/IconColumns/index'
+// export * from './components/Icon/icons/IconCommand/index'
+// export * from './components/Icon/icons/IconCompass/index'
+// export * from './components/Icon/icons/IconCopy/index'
+// export * from './components/Icon/icons/IconCornerDownLeft/index'
+// export * from './components/Icon/icons/IconCornerDownRight/index'
+// export * from './components/Icon/icons/IconCornerLeftDown/index'
+// export * from './components/Icon/icons/IconCornerLeftUp/index'
+// export * from './components/Icon/icons/IconCornerRightDown/index'
+// export * from './components/Icon/icons/IconCornerRightUp/index'
+// export * from './components/Icon/icons/IconCornerUpLeft/index'
+// export * from './components/Icon/icons/IconCornerUpRight/index'
+// export * from './components/Icon/icons/IconCpu/index'
+// export * from './components/Icon/icons/IconCreditCard/index'
+// export * from './components/Icon/icons/IconCrop/index'
+// export * from './components/Icon/icons/IconCrosshair/index'
+// export * from './components/Icon/icons/IconDatabase/index'
+// export * from './components/Icon/icons/IconDelete/index'
+// export * from './components/Icon/icons/IconDisc/index'
+// export * from './components/Icon/icons/IconDivideCircle/index'
+// export * from './components/Icon/icons/IconDivideSquare/index'
+// export * from './components/Icon/icons/IconDivide/index'
+// export * from './components/Icon/icons/IconDollarSign/index'
+// export * from './components/Icon/icons/IconDownloadCloud/index'
+// export * from './components/Icon/icons/IconDownload/index'
+// export * from './components/Icon/icons/IconDribbble/index'
+// export * from './components/Icon/icons/IconDroplet/index'
+// export * from './components/Icon/icons/IconEdit2/index'
+// export * from './components/Icon/icons/IconEdit3/index'
+// export * from './components/Icon/icons/IconEdit/index'
+// export * from './components/Icon/icons/IconExternalLink/index'
+// export * from './components/Icon/icons/IconEyeOff/index'
+// export * from './components/Icon/icons/IconEye/index'
+// export * from './components/Icon/icons/IconFacebook/index'
+// export * from './components/Icon/icons/IconFastForward/index'
+// export * from './components/Icon/icons/IconFeather/index'
+// export * from './components/Icon/icons/IconFigma/index'
+// export * from './components/Icon/icons/IconFileMinus/index'
+// export * from './components/Icon/icons/IconFilePlus/index'
+// export * from './components/Icon/icons/IconFileText/index'
+// export * from './components/Icon/icons/IconFile/index'
+// export * from './components/Icon/icons/IconFilm/index'
+// export * from './components/Icon/icons/IconFilter/index'
+// export * from './components/Icon/icons/IconFlag/index'
+// export * from './components/Icon/icons/IconFolderMinus/index'
+// export * from './components/Icon/icons/IconFolderPlus/index'
+// export * from './components/Icon/icons/IconFolder/index'
+// export * from './components/Icon/icons/IconFramer/index'
+// export * from './components/Icon/icons/IconFrown/index'
+// export * from './components/Icon/icons/IconGift/index'
+// export * from './components/Icon/icons/IconGitBranch/index'
+// export * from './components/Icon/icons/IconGitCommit/index'
+// export * from './components/Icon/icons/IconGitMerge/index'
+// export * from './components/Icon/icons/IconGitPullRequest/index'
+// export * from './components/Icon/icons/IconGitHub/index'
+// export * from './components/Icon/icons/IconGitlab/index'
+// export * from './components/Icon/icons/IconGlobe/index'
+// export * from './components/Icon/icons/IconGrid/index'
+// export * from './components/Icon/icons/IconHardDrive/index'
+// export * from './components/Icon/icons/IconHash/index'
+// export * from './components/Icon/icons/IconHeadphones/index'
+// export * from './components/Icon/icons/IconHeart/index'
+// export * from './components/Icon/icons/IconHelpCircle/index'
+// export * from './components/Icon/icons/IconHexagon/index'
+// export * from './components/Icon/icons/IconHome/index'
+// export * from './components/Icon/icons/IconImage/index'
+// export * from './components/Icon/icons/IconInbox/index'
+// export * from './components/Icon/icons/IconInfo/index'
+// export * from './components/Icon/icons/IconInstagram/index'
+// export * from './components/Icon/icons/IconItalic/index'
+// export * from './components/Icon/icons/IconKey/index'
+// export * from './components/Icon/icons/IconLayers/index'
+// export * from './components/Icon/icons/IconLayout/index'
+// export * from './components/Icon/icons/IconLifeBuoy/index'
+// export * from './components/Icon/icons/IconLink2/index'
+// export * from './components/Icon/icons/IconLink/index'
+// export * from './components/Icon/icons/IconLinkedin/index'
+// export * from './components/Icon/icons/IconList/index'
+// export * from './components/Icon/icons/IconLoader/index'
+// export * from './src/components/Icon/icons/IconLoader/index
+// export * from './components/Icon/icons/IconLogIn/index'
+// export * from './components/Icon/icons/IconLogOut/index'
+// export * from './components/Icon/icons/IconMail/index'
+// export * from './components/Icon/icons/IconMapPin/index'
+// export * from './components/Icon/icons/IconMap/index'
+// export * from './components/Icon/icons/IconMaximize2/index'
+// export * from './components/Icon/icons/IconMaximize/index'
+// export * from './components/Icon/icons/IconMeh/index'
+// export * from './components/Icon/icons/IconMenu/index'
+// export * from './components/Icon/icons/IconMessageCircle/index'
+// export * from './components/Icon/icons/IconMessageSquare/index'
+// export * from './components/Icon/icons/IconMicOff/index'
+// export * from './components/Icon/icons/IconMic/index'
+// export * from './components/Icon/icons/IconMinimize2/index'
+// export * from './components/Icon/icons/IconMinimize/index'
+// export * from './components/Icon/icons/IconMinusCircle/index'
+// export * from './components/Icon/icons/IconMinusSquare/index'
+// export * from './components/Icon/icons/IconMinus/index'
+// export * from './components/Icon/icons/IconMonitor/index'
+// export * from './components/Icon/icons/IconMoon/index'
+// export * from './components/Icon/icons/IconMoreHorizontal/index'
+// export * from './components/Icon/icons/IconMoreVertical/index'
+// export * from './components/Icon/icons/IconMousePointer/index'
+// export * from './components/Icon/icons/IconMove/index'
+// export * from './components/Icon/icons/IconMusic/index'
+// export * from './components/Icon/icons/IconNavigation2/index'
+// export * from './components/Icon/icons/IconNavigation/index'
+// export * from './components/Icon/icons/IconOctagon/index'
+// export * from './components/Icon/icons/IconPackage/index'
+// export * from './components/Icon/icons/IconPaperclip/index'
+// export * from './components/Icon/icons/IconPauseCircle/index'
+// export * from './components/Icon/icons/IconPause/index'
+// export * from './components/Icon/icons/IconPenTool/index'
+// export * from './components/Icon/icons/IconPercent/index'
+// export * from './components/Icon/icons/IconPhoneCall/index'
+// export * from './components/Icon/icons/IconPhoneForwarded/index'
+// export * from './components/Icon/icons/IconPhoneIncoming/index'
+// export * from './components/Icon/icons/IconPhoneMissed/index'
+// export * from './components/Icon/icons/IconPhoneOff/index'
+// export * from './components/Icon/icons/IconPhoneOutgoing/index'
+// export * from './components/Icon/icons/IconPhone/index'
+// export * from './components/Icon/icons/IconPieChart/index'
+// export * from './components/Icon/icons/IconPlayCircle/index'
+// export * from './components/Icon/icons/IconPlay/index'
+// export * from './components/Icon/icons/IconPlusCircle/index'
+// export * from './components/Icon/icons/IconPlusSquare/index'
+// export * from './components/Icon/icons/IconPlus/index'
+// export * from './components/Icon/icons/IconPocket/index'
+// export * from './components/Icon/icons/IconPower/index'
+// export * from './components/Icon/icons/IconPrinter/index'
+// export * from './components/Icon/icons/IconRadio/index'
+// export * from './components/Icon/icons/IconRefreshCcw/index'
+// export * from './components/Icon/icons/IconRefreshCw/index'
+// export * from './components/Icon/icons/IconRepeat/index'
+// export * from './components/Icon/icons/IconRewind/index'
+// export * from './components/Icon/icons/IconRotateCcw/index'
+// export * from './components/Icon/icons/IconRotateCw/index'
+// export * from './components/Icon/icons/IconRss/index'
+// export * from './components/Icon/icons/IconSave/index'
+// export * from './components/Icon/icons/IconScissors/index'
+// export * from './components/Icon/icons/IconSearch/index'
+// export * from './components/Icon/icons/IconSend/index'
+// export * from './components/Icon/icons/IconServer/index'
+// export * from './components/Icon/icons/IconSettings/index'
+// export * from './components/Icon/icons/IconShare2/index'
+// export * from './components/Icon/icons/IconShare/index'
+// export * from './components/Icon/icons/IconShieldOff/index'
+// export * from './components/Icon/icons/IconShield/index'
+// export * from './components/Icon/icons/IconShoppingBag/index'
+// export * from './components/Icon/icons/IconShoppingCart/index'
+// export * from './components/Icon/icons/IconShuffle/index'
+// export * from './components/Icon/icons/IconSidebar/index'
+// export * from './components/Icon/icons/IconSkipBack/index'
+// export * from './components/Icon/icons/IconSkipForward/index'
+// export * from './components/Icon/icons/IconSlack/index'
+// export * from './components/Icon/icons/IconSlash/index'
+// export * from './components/Icon/icons/IconSliders/index'
+// export * from './components/Icon/icons/IconSmartphone/index'
+// export * from './components/Icon/icons/IconSmile/index'
+// export * from './components/Icon/icons/IconSpeaker/index'
+// export * from './components/Icon/icons/IconSquare/index'
+// export * from './components/Icon/icons/IconStar/index'
+// export * from './components/Icon/icons/IconStopCircle/index'
+// export * from './components/Icon/icons/IconSun/index'
+// export * from './components/Icon/icons/IconSunrise/index'
+// export * from './components/Icon/icons/IconSunset/index'
+// export * from './components/Icon/icons/IconTablet/index'
+// export * from './components/Icon/icons/IconTag/index'
+// export * from './components/Icon/icons/IconTarget/index'
+// export * from './components/Icon/icons/IconTerminal/index'
+// export * from './components/Icon/icons/IconThermometer/index'
+// export * from './components/Icon/icons/IconThumbsDown/index'
+// export * from './components/Icon/icons/IconThumbsUp/index'
+// export * from './components/Icon/icons/IconToggleLeft/index'
+// export * from './components/Icon/icons/IconToggleRight/index'
+// export * from './components/Icon/icons/IconTool/index'
+// export * from './components/Icon/icons/IconTrash2/index'
+// export * from './components/Icon/icons/IconTrash/index'
+// export * from './components/Icon/icons/IconTrello/index'
+// export * from './components/Icon/icons/IconTrendingDown/index'
+// export * from './components/Icon/icons/IconTrendingUp/index'
+// export * from './components/Icon/icons/IconTriangle/index'
+// export * from './components/Icon/icons/IconTruck/index'
+// export * from './components/Icon/icons/IconTv/index'
+// export * from './components/Icon/icons/IconTwitch/index'
+// export * from './components/Icon/icons/IconTwitter/index'
+// export * from './components/Icon/icons/IconType/index'
+// export * from './components/Icon/icons/IconUmbrella/index'
+// export * from './components/Icon/icons/IconUnderline/index'
+// export * from './components/Icon/icons/IconUnlock/index'
+// export * from './components/Icon/icons/IconUploadCloud/index'
+// export * from './components/Icon/icons/IconUpload/index'
+// export * from './components/Icon/icons/IconUserCheck/index'
+// export * from './components/Icon/icons/IconUserMinus/index'
+// export * from './components/Icon/icons/IconUserPlus/index'
+// export * from './components/Icon/icons/IconUserX/index'
+// export * from './components/Icon/icons/IconUser/index'
+// export * from './components/Icon/icons/IconUsers/index'
+// export * from './components/Icon/icons/IconVideoOff/index'
+// export * from './components/Icon/icons/IconVideo/index'
+// export * from './components/Icon/icons/IconVoicemail/index'
+// export * from './components/Icon/icons/IconVolume1/index'
+// export * from './components/Icon/icons/IconVolume2/index'
+// export * from './components/Icon/icons/IconVolumeX/index'
+// export * from './components/Icon/icons/IconVolume/index'
+// export * from './components/Icon/icons/IconWatch/index'
+// export * from './components/Icon/icons/IconWifiOff/index'
+// export * from './components/Icon/icons/IconWifi/index'
+// export * from './components/Icon/icons/IconWind/index'
+// export * from './components/Icon/icons/IconXCircle/index'
+// export * from './components/Icon/icons/IconXOctagon/index'
+// export * from './components/Icon/icons/IconXSquare/index'
+// export * from './components/Icon/icons/IconX/index'
+// export * from './components/Icon/icons/IconYoutube/index'
+// export * from './components/Icon/icons/IconZapOff/index'
+// export * from './components/Icon/icons/IconZap/index'
+// export * from './components/Icon/icons/IconZoomIn/index'
+// export * from './components/Icon/icons/IconZoomOut/index'
+// ./src/components/Icon/IconContext
diff --git a/packages/ui/src/components/Button/Button.tsx b/packages/ui/src/components/Button/Button.tsx
index e0e85e75b42..f6d6e5a593f 100644
--- a/packages/ui/src/components/Button/Button.tsx
+++ b/packages/ui/src/components/Button/Button.tsx
@@ -1,8 +1,8 @@
import React, { forwardRef, useRef, useImperativeHandle } from 'react'
-import { IconContext } from '../Icon/IconContext'
-import { IconLoader } from '../Icon/icons/IconLoader'
+// import { IconContext } from './../Icon/IconContext'
+// import { IconLoader } from './../Icon/icons/IconLoader'
-import styleHandler from '../../lib/theme/styleHandler'
+import styleHandler from './../../lib/theme/styleHandler'
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
block?: boolean
@@ -40,7 +40,7 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
form?: string
}
-interface CustomButtonProps extends React.HTMLAttributes<HTMLOrSVGElement> {}
+interface CustomButtonProps extends React.HTMLAttributes<HTMLButtonElement> {}
export interface RefHandle {
// container: () => HTMLElement | null
@@ -126,16 +126,16 @@ const Button = forwardRef<RefHandle, ButtonProps>(
const buttonContent = (
<>
- {showIcon &&
+ {/* {showIcon &&
(loading ? (
<IconLoader size={size} className={iconLoaderClasses.join(' ')} />
) : icon ? (
<IconContext.Provider value={{ contextSize: size }}>{icon}</IconContext.Provider>
- ) : null)}
+ ) : null)} */}
{children && <span className={__styles.label}>{children}</span>}
- {iconRight && !loading && (
+ {/* {iconRight && !loading && (
<IconContext.Provider value={{ contextSize: size }}>{iconRight}</IconContext.Provider>
- )}
+ )} */}
</>
)
diff --git a/packages/ui/src/components/Icon/icons/IconLoader/IconLoader.tsx b/packages/ui/src/components/Icon/icons/IconLoader/IconLoader.tsx
index e46871d385e..30573970551 100644
--- a/packages/ui/src/components/Icon/icons/IconLoader/IconLoader.tsx
+++ b/packages/ui/src/components/Icon/icons/IconLoader/IconLoader.tsx
@@ -1,13 +1,12 @@
// DO NOT EDIT
- // this file is generated by /internals/populate-icons script
- import React from 'react'
- // @ts-ignore
- import Icon from 'react-feather/dist/icons/loader'
- import IconBase from './../../IconBase'
+// this file is generated by /internals/populate-icons script
+import React from 'react'
+// @ts-ignore
+import Icon from 'react-feather/dist/icons/loader'
+import IconBase from './../../IconBase'
- function IconLoader(props: any) {
- return <IconBase icon={Icon} {...props} />
- }
+function IconLoader(props: any) {
+ return <IconBase icon={Icon} {...props} />
+}
- export default IconLoader
-
\ No newline at end of file
+export { IconLoader }
diff --git a/packages/ui/src/components/Icon/icons/IconLoader/index.tsx b/packages/ui/src/components/Icon/icons/IconLoader/index.tsx
index daaebea734d..cfa46adf00e 100644
--- a/packages/ui/src/components/Icon/icons/IconLoader/index.tsx
+++ b/packages/ui/src/components/Icon/icons/IconLoader/index.tsx
@@ -1 +1 @@
-export { default as IconLoader } from './IconLoader'
\ No newline at end of file
+export * from './IconLoader'
diff --git a/packages/ui/src/index.tsx b/packages/ui/src/index.tsx
deleted file mode 100644
index aa8c6acf36f..00000000000
--- a/packages/ui/src/index.tsx
+++ /dev/null
@@ -1,349 +0,0 @@
-// // GENERAL
-
-export * from './components/Button/index'
-export * from './components/Typography/index'
-export * from './components/Icon/index'
-// export * from './components/Image/index'
-
-// DISPLAYS
-
-export * from './components/Card/index'
-export * from './components/Badge/index'
-export * from './components/Tabs/index'
-export * from './components/Alert/index'
-export * from './components/Accordion/index'
-export * from './components/Collapsible/index'
-
-// NAV
-
-export * from './components/Menu/index'
-
-// OVERLAYS
-
-export * from './components/Modal/index'
-export * from './components/SidePanel/index'
-export * from './components/Dropdown/index'
-export * from './components/ContextMenu/index'
-export * from './components/Popover/index'
-// export * from './components/Toast/index'
-
-// UTILITIES
-
-export * from './components/Space/index'
-export * from './components/Loading/index'
-export * from './components/Divider/index'
-export * from './components/ThemeProvider/index'
-
-// DATA ENTRY
-
-export * from './components/Select/index'
-export * from './components/Listbox/index'
-export * from './components/Checkbox/index'
-export * from './components/Input/index'
-export * from './components/InputNumber/index'
-export * from './components/Radio/index'
-export * from './components/Toggle/index'
-export * from './components/Upload/index'
-export * from './components/Form/index'
-
-// config
-
-// export { default as Config } from './../ui.config'
-
-// ARCHIVE
-
-// export * from './components/Textarea/index'
-
-// AUTH
-
-// export * from './components/Auth/index'
-
-// ICONS
-
-// export icons
-export * from './components/Icon/icons/IconActivity/index'
-export * from './components/Icon/icons/IconAirplay/index'
-export * from './components/Icon/icons/IconAlertCircle/index'
-export * from './components/Icon/icons/IconAlertOctagon/index'
-export * from './components/Icon/icons/IconAlertTriangle/index'
-export * from './components/Icon/icons/IconAlignCenter/index'
-export * from './components/Icon/icons/IconAlignJustify/index'
-export * from './components/Icon/icons/IconAlignLeft/index'
-export * from './components/Icon/icons/IconAlignRight/index'
-export * from './components/Icon/icons/IconAnchor/index'
-export * from './components/Icon/icons/IconAperture/index'
-export * from './components/Icon/icons/IconArchive/index'
-export * from './components/Icon/icons/IconArrowDownCircle/index'
-export * from './components/Icon/icons/IconArrowDownLeft/index'
-export * from './components/Icon/icons/IconArrowDownRight/index'
-export * from './components/Icon/icons/IconArrowDown/index'
-export * from './components/Icon/icons/IconArrowLeftCircle/index'
-export * from './components/Icon/icons/IconArrowLeft/index'
-export * from './components/Icon/icons/IconArrowRightCircle/index'
-export * from './components/Icon/icons/IconArrowRight/index'
-export * from './components/Icon/icons/IconArrowUpCircle/index'
-export * from './components/Icon/icons/IconArrowUpLeft/index'
-export * from './components/Icon/icons/IconArrowUpRight/index'
-export * from './components/Icon/icons/IconArrowUp/index'
-export * from './components/Icon/icons/IconAtSign/index'
-export * from './components/Icon/icons/IconAward/index'
-export * from './components/Icon/icons/IconBarChart2/index'
-export * from './components/Icon/icons/IconBarChart/index'
-export * from './components/Icon/icons/IconBatteryCharging/index'
-export * from './components/Icon/icons/IconBattery/index'
-export * from './components/Icon/icons/IconBellOff/index'
-export * from './components/Icon/icons/IconBell/index'
-export * from './components/Icon/icons/IconBluetooth/index'
-export * from './components/Icon/icons/IconBold/index'
-export * from './components/Icon/icons/IconBookOpen/index'
-export * from './components/Icon/icons/IconBook/index'
-export * from './components/Icon/icons/IconBookmark/index'
-export * from './components/Icon/icons/IconBox/index'
-export * from './components/Icon/icons/IconBriefcase/index'
-export * from './components/Icon/icons/IconCalendar/index'
-export * from './components/Icon/icons/IconCameraOff/index'
-export * from './components/Icon/icons/IconCamera/index'
-export * from './components/Icon/icons/IconCast/index'
-export * from './components/Icon/icons/IconCheckCircle/index'
-export * from './components/Icon/icons/IconCheckSquare/index'
-export * from './components/Icon/icons/IconCheck/index'
-export * from './components/Icon/icons/IconChevronDown/index'
-export * from './components/Icon/icons/IconChevronLeft/index'
-export * from './components/Icon/icons/IconChevronRight/index'
-export * from './components/Icon/icons/IconChevronUp/index'
-export * from './components/Icon/icons/IconChevronsDown/index'
-export * from './components/Icon/icons/IconChevronsLeft/index'
-export * from './components/Icon/icons/IconChevronsRight/index'
-export * from './components/Icon/icons/IconChevronsUp/index'
-export * from './components/Icon/icons/IconChrome/index'
-export * from './components/Icon/icons/IconCircle/index'
-export * from './components/Icon/icons/IconClipboard/index'
-export * from './components/Icon/icons/IconClock/index'
-export * from './components/Icon/icons/IconCloudDrizzle/index'
-export * from './components/Icon/icons/IconCloudLightning/index'
-export * from './components/Icon/icons/IconCloudOff/index'
-export * from './components/Icon/icons/IconCloudRain/index'
-export * from './components/Icon/icons/IconCloudSnow/index'
-export * from './components/Icon/icons/IconCloud/index'
-export * from './components/Icon/icons/IconCode/index'
-export * from './components/Icon/icons/IconCodepen/index'
-export * from './components/Icon/icons/IconCodesandbox/index'
-export * from './components/Icon/icons/IconCoffee/index'
-export * from './components/Icon/icons/IconColumns/index'
-export * from './components/Icon/icons/IconCommand/index'
-export * from './components/Icon/icons/IconCompass/index'
-export * from './components/Icon/icons/IconCopy/index'
-export * from './components/Icon/icons/IconCornerDownLeft/index'
-export * from './components/Icon/icons/IconCornerDownRight/index'
-export * from './components/Icon/icons/IconCornerLeftDown/index'
-export * from './components/Icon/icons/IconCornerLeftUp/index'
-export * from './components/Icon/icons/IconCornerRightDown/index'
-export * from './components/Icon/icons/IconCornerRightUp/index'
-export * from './components/Icon/icons/IconCornerUpLeft/index'
-export * from './components/Icon/icons/IconCornerUpRight/index'
-export * from './components/Icon/icons/IconCpu/index'
-export * from './components/Icon/icons/IconCreditCard/index'
-export * from './components/Icon/icons/IconCrop/index'
-export * from './components/Icon/icons/IconCrosshair/index'
-export * from './components/Icon/icons/IconDatabase/index'
-export * from './components/Icon/icons/IconDelete/index'
-export * from './components/Icon/icons/IconDisc/index'
-export * from './components/Icon/icons/IconDivideCircle/index'
-export * from './components/Icon/icons/IconDivideSquare/index'
-export * from './components/Icon/icons/IconDivide/index'
-export * from './components/Icon/icons/IconDollarSign/index'
-export * from './components/Icon/icons/IconDownloadCloud/index'
-export * from './components/Icon/icons/IconDownload/index'
-export * from './components/Icon/icons/IconDribbble/index'
-export * from './components/Icon/icons/IconDroplet/index'
-export * from './components/Icon/icons/IconEdit2/index'
-export * from './components/Icon/icons/IconEdit3/index'
-export * from './components/Icon/icons/IconEdit/index'
-export * from './components/Icon/icons/IconExternalLink/index'
-export * from './components/Icon/icons/IconEyeOff/index'
-export * from './components/Icon/icons/IconEye/index'
-export * from './components/Icon/icons/IconFacebook/index'
-export * from './components/Icon/icons/IconFastForward/index'
-export * from './components/Icon/icons/IconFeather/index'
-export * from './components/Icon/icons/IconFigma/index'
-export * from './components/Icon/icons/IconFileMinus/index'
-export * from './components/Icon/icons/IconFilePlus/index'
-export * from './components/Icon/icons/IconFileText/index'
-export * from './components/Icon/icons/IconFile/index'
-export * from './components/Icon/icons/IconFilm/index'
-export * from './components/Icon/icons/IconFilter/index'
-export * from './components/Icon/icons/IconFlag/index'
-export * from './components/Icon/icons/IconFolderMinus/index'
-export * from './components/Icon/icons/IconFolderPlus/index'
-export * from './components/Icon/icons/IconFolder/index'
-export * from './components/Icon/icons/IconFramer/index'
-export * from './components/Icon/icons/IconFrown/index'
-export * from './components/Icon/icons/IconGift/index'
-export * from './components/Icon/icons/IconGitBranch/index'
-export * from './components/Icon/icons/IconGitCommit/index'
-export * from './components/Icon/icons/IconGitMerge/index'
-export * from './components/Icon/icons/IconGitPullRequest/index'
-export * from './components/Icon/icons/IconGitHub/index'
-export * from './components/Icon/icons/IconGitlab/index'
-export * from './components/Icon/icons/IconGlobe/index'
-export * from './components/Icon/icons/IconGrid/index'
-export * from './components/Icon/icons/IconHardDrive/index'
-export * from './components/Icon/icons/IconHash/index'
-export * from './components/Icon/icons/IconHeadphones/index'
-export * from './components/Icon/icons/IconHeart/index'
-export * from './components/Icon/icons/IconHelpCircle/index'
-export * from './components/Icon/icons/IconHexagon/index'
-export * from './components/Icon/icons/IconHome/index'
-export * from './components/Icon/icons/IconImage/index'
-export * from './components/Icon/icons/IconInbox/index'
-export * from './components/Icon/icons/IconInfo/index'
-export * from './components/Icon/icons/IconInstagram/index'
-export * from './components/Icon/icons/IconItalic/index'
-export * from './components/Icon/icons/IconKey/index'
-export * from './components/Icon/icons/IconLayers/index'
-export * from './components/Icon/icons/IconLayout/index'
-export * from './components/Icon/icons/IconLifeBuoy/index'
-export * from './components/Icon/icons/IconLink2/index'
-export * from './components/Icon/icons/IconLink/index'
-export * from './components/Icon/icons/IconLinkedin/index'
-export * from './components/Icon/icons/IconList/index'
-export * from './components/Icon/icons/IconLoader/index'
-export * from './components/Icon/icons/IconLock/index'
-export * from './components/Icon/icons/IconLogIn/index'
-export * from './components/Icon/icons/IconLogOut/index'
-export * from './components/Icon/icons/IconMail/index'
-export * from './components/Icon/icons/IconMapPin/index'
-export * from './components/Icon/icons/IconMap/index'
-export * from './components/Icon/icons/IconMaximize2/index'
-export * from './components/Icon/icons/IconMaximize/index'
-export * from './components/Icon/icons/IconMeh/index'
-export * from './components/Icon/icons/IconMenu/index'
-export * from './components/Icon/icons/IconMessageCircle/index'
-export * from './components/Icon/icons/IconMessageSquare/index'
-export * from './components/Icon/icons/IconMicOff/index'
-export * from './components/Icon/icons/IconMic/index'
-export * from './components/Icon/icons/IconMinimize2/index'
-export * from './components/Icon/icons/IconMinimize/index'
-export * from './components/Icon/icons/IconMinusCircle/index'
-export * from './components/Icon/icons/IconMinusSquare/index'
-export * from './components/Icon/icons/IconMinus/index'
-export * from './components/Icon/icons/IconMonitor/index'
-export * from './components/Icon/icons/IconMoon/index'
-export * from './components/Icon/icons/IconMoreHorizontal/index'
-export * from './components/Icon/icons/IconMoreVertical/index'
-export * from './components/Icon/icons/IconMousePointer/index'
-export * from './components/Icon/icons/IconMove/index'
-export * from './components/Icon/icons/IconMusic/index'
-export * from './components/Icon/icons/IconNavigation2/index'
-export * from './components/Icon/icons/IconNavigation/index'
-export * from './components/Icon/icons/IconOctagon/index'
-export * from './components/Icon/icons/IconPackage/index'
-export * from './components/Icon/icons/IconPaperclip/index'
-export * from './components/Icon/icons/IconPauseCircle/index'
-export * from './components/Icon/icons/IconPause/index'
-export * from './components/Icon/icons/IconPenTool/index'
-export * from './components/Icon/icons/IconPercent/index'
-export * from './components/Icon/icons/IconPhoneCall/index'
-export * from './components/Icon/icons/IconPhoneForwarded/index'
-export * from './components/Icon/icons/IconPhoneIncoming/index'
-export * from './components/Icon/icons/IconPhoneMissed/index'
-export * from './components/Icon/icons/IconPhoneOff/index'
-export * from './components/Icon/icons/IconPhoneOutgoing/index'
-export * from './components/Icon/icons/IconPhone/index'
-export * from './components/Icon/icons/IconPieChart/index'
-export * from './components/Icon/icons/IconPlayCircle/index'
-export * from './components/Icon/icons/IconPlay/index'
-export * from './components/Icon/icons/IconPlusCircle/index'
-export * from './components/Icon/icons/IconPlusSquare/index'
-export * from './components/Icon/icons/IconPlus/index'
-export * from './components/Icon/icons/IconPocket/index'
-export * from './components/Icon/icons/IconPower/index'
-export * from './components/Icon/icons/IconPrinter/index'
-export * from './components/Icon/icons/IconRadio/index'
-export * from './components/Icon/icons/IconRefreshCcw/index'
-export * from './components/Icon/icons/IconRefreshCw/index'
-export * from './components/Icon/icons/IconRepeat/index'
-export * from './components/Icon/icons/IconRewind/index'
-export * from './components/Icon/icons/IconRotateCcw/index'
-export * from './components/Icon/icons/IconRotateCw/index'
-export * from './components/Icon/icons/IconRss/index'
-export * from './components/Icon/icons/IconSave/index'
-export * from './components/Icon/icons/IconScissors/index'
-export * from './components/Icon/icons/IconSearch/index'
-export * from './components/Icon/icons/IconSend/index'
-export * from './components/Icon/icons/IconServer/index'
-export * from './components/Icon/icons/IconSettings/index'
-export * from './components/Icon/icons/IconShare2/index'
-export * from './components/Icon/icons/IconShare/index'
-export * from './components/Icon/icons/IconShieldOff/index'
-export * from './components/Icon/icons/IconShield/index'
-export * from './components/Icon/icons/IconShoppingBag/index'
-export * from './components/Icon/icons/IconShoppingCart/index'
-export * from './components/Icon/icons/IconShuffle/index'
-export * from './components/Icon/icons/IconSidebar/index'
-export * from './components/Icon/icons/IconSkipBack/index'
-export * from './components/Icon/icons/IconSkipForward/index'
-export * from './components/Icon/icons/IconSlack/index'
-export * from './components/Icon/icons/IconSlash/index'
-export * from './components/Icon/icons/IconSliders/index'
-export * from './components/Icon/icons/IconSmartphone/index'
-export * from './components/Icon/icons/IconSmile/index'
-export * from './components/Icon/icons/IconSpeaker/index'
-export * from './components/Icon/icons/IconSquare/index'
-export * from './components/Icon/icons/IconStar/index'
-export * from './components/Icon/icons/IconStopCircle/index'
-export * from './components/Icon/icons/IconSun/index'
-export * from './components/Icon/icons/IconSunrise/index'
-export * from './components/Icon/icons/IconSunset/index'
-export * from './components/Icon/icons/IconTablet/index'
-export * from './components/Icon/icons/IconTag/index'
-export * from './components/Icon/icons/IconTarget/index'
-export * from './components/Icon/icons/IconTerminal/index'
-export * from './components/Icon/icons/IconThermometer/index'
-export * from './components/Icon/icons/IconThumbsDown/index'
-export * from './components/Icon/icons/IconThumbsUp/index'
-export * from './components/Icon/icons/IconToggleLeft/index'
-export * from './components/Icon/icons/IconToggleRight/index'
-export * from './components/Icon/icons/IconTool/index'
-export * from './components/Icon/icons/IconTrash2/index'
-export * from './components/Icon/icons/IconTrash/index'
-export * from './components/Icon/icons/IconTrello/index'
-export * from './components/Icon/icons/IconTrendingDown/index'
-export * from './components/Icon/icons/IconTrendingUp/index'
-export * from './components/Icon/icons/IconTriangle/index'
-export * from './components/Icon/icons/IconTruck/index'
-export * from './components/Icon/icons/IconTv/index'
-export * from './components/Icon/icons/IconTwitch/index'
-export * from './components/Icon/icons/IconTwitter/index'
-export * from './components/Icon/icons/IconType/index'
-export * from './components/Icon/icons/IconUmbrella/index'
-export * from './components/Icon/icons/IconUnderline/index'
-export * from './components/Icon/icons/IconUnlock/index'
-export * from './components/Icon/icons/IconUploadCloud/index'
-export * from './components/Icon/icons/IconUpload/index'
-export * from './components/Icon/icons/IconUserCheck/index'
-export * from './components/Icon/icons/IconUserMinus/index'
-export * from './components/Icon/icons/IconUserPlus/index'
-export * from './components/Icon/icons/IconUserX/index'
-export * from './components/Icon/icons/IconUser/index'
-export * from './components/Icon/icons/IconUsers/index'
-export * from './components/Icon/icons/IconVideoOff/index'
-export * from './components/Icon/icons/IconVideo/index'
-export * from './components/Icon/icons/IconVoicemail/index'
-export * from './components/Icon/icons/IconVolume1/index'
-export * from './components/Icon/icons/IconVolume2/index'
-export * from './components/Icon/icons/IconVolumeX/index'
-export * from './components/Icon/icons/IconVolume/index'
-export * from './components/Icon/icons/IconWatch/index'
-export * from './components/Icon/icons/IconWifiOff/index'
-export * from './components/Icon/icons/IconWifi/index'
-export * from './components/Icon/icons/IconWind/index'
-export * from './components/Icon/icons/IconXCircle/index'
-export * from './components/Icon/icons/IconXOctagon/index'
-export * from './components/Icon/icons/IconXSquare/index'
-export * from './components/Icon/icons/IconX/index'
-export * from './components/Icon/icons/IconYoutube/index'
-export * from './components/Icon/icons/IconZapOff/index'
-export * from './components/Icon/icons/IconZap/index'
-export * from './components/Icon/icons/IconZoomIn/index'
-export * from './components/Icon/icons/IconZoomOut/index'
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 5a91a18caf6..ab56ea64fd6 100644
--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -2,6 +2,7 @@ import { FC, useEffect, useState } from 'react'
import { useRouter } from 'next/router'
import Link from 'next/link'
import { partition } from 'lodash'
+// import { Button } from 'common2'
import {
Alert,
Button,
@@ -17,7 +18,7 @@ import {
Input,
Listbox,
Menu,
-} from '@supabase/ui'
+} from 'common2'
import * as Tooltip from '@radix-ui/react-tooltip'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { PostgresSchema, PostgresTable } from '@supabase/postgres-meta'
@@ -107,7 +108,7 @@ const TableEditorMenu: FC<Props> = ({
{meta.schemas.isLoading ? (
<div className="flex h-[30px] items-center space-x-3 rounded border border-gray-500 px-3">
<IconLoader className="animate-spin" size={12} />
- <span className="text-scale-900 text-xs">Loading schemas...</span>
+ <span className="text-xs text-scale-900">Loading schemas...</span>
</div>
) : (
<Listbox
@@ -131,7 +132,7 @@ const TableEditorMenu: FC<Props> = ({
label={schema.name}
addOnBefore={() => <span className="text-scale-900">schema</span>}
>
- <span className="text-scale-1200 text-sm">{schema.name}</span>
+ <span className="text-sm text-scale-1200">{schema.name}</span>
</Listbox.Option>
))}
<Listbox.Option
@@ -149,7 +150,7 @@ const TableEditorMenu: FC<Props> = ({
label={schema.name}
addOnBefore={() => <span className="text-scale-900">schema</span>}
>
- <span className="text-scale-1200 text-sm">{schema.name}</span>
+ <span className="text-sm text-scale-1200">{schema.name}</span>
</Listbox.Option>
))}
</Listbox>
@@ -184,11 +185,11 @@ const TableEditorMenu: FC<Props> = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border',
+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
+ 'border border-scale-200',
].join(' ')}
>
- <span className="text-scale-1200 text-xs">
+ <span className="text-xs text-scale-1200">
You need additional permissions to create tables
</span>
</div>
@@ -200,7 +201,7 @@ const TableEditorMenu: FC<Props> = ({
{/* Table search input */}
<div className="mb-2 block px-3">
<Input
- className="border-none table-editor-search"
+ className="table-editor-search border-none"
icon={<IconSearch className="text-scale-900" size={12} strokeWidth={1.5} />}
placeholder="Search tables"
onChange={(e) => setSearchText(e.target.value)}
@@ -276,7 +277,7 @@ const TableEditorMenu: FC<Props> = ({
</Dropdown.Item>,
]}
>
- <div className="text-scale-900 hover:text-scale-1200 transition-colors">
+ <div className="text-scale-900 transition-colors hover:text-scale-1200">
<IconChevronDown size={14} strokeWidth={2} />
</div>
</Dropdown>
@@ -320,18 +321,18 @@ const TableEditorMenu: FC<Props> = ({
)}
{searchText.length > 0 && schemaTables.length === 0 && filteredSchemaViews.length === 0 && (
- <div className="mx-3 py-3 px-4 bg-scale-300 border border-scale-400 rounded-md space-y-1">
+ <div className="mx-3 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">
<p className="text-xs">No results found</p>
- <p className="text-scale-1100 text-xs">
+ <p className="text-xs text-scale-1100">
There are no tables or views that match your search
</p>
</div>
)}
{searchText.length === 0 && schemaTables.length === 0 && filteredSchemaViews.length === 0 && (
- <div className="mx-3 py-3 px-4 bg-scale-300 border border-scale-400 rounded-md space-y-1">
+ <div className="mx-3 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">
<p className="text-xs">No tables available</p>
- <p className="text-scale-1100 text-xs">This schema has no tables available yet</p>
+ <p className="text-xs text-scale-1100">This schema has no tables available yet</p>
</div>
)}
</div>
diff --git a/studio/next.config.js b/studio/next.config.js
index fa2044a54ac..c277027e091 100644
--- a/studio/next.config.js
+++ b/studio/next.config.js
@@ -5,7 +5,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
})
// this is required to use shared packages in the packages directory
-const withTM = require('next-transpile-modules')(['ui'])
+const withTM = require('next-transpile-modules')(['ui', 'common', 'common2'])
// This file sets a custom webpack configuration to use your Next.js app
// with Sentry.
diff --git a/studio/package.json b/studio/package.json
index 69e04b37c57..5cd47dcf4f0 100644
--- a/studio/package.json
+++ b/studio/package.json
@@ -78,6 +78,8 @@
"sqlstring": "^2.3.2",
"swr": "^1.2.1",
"ui": "*",
+ "common": "*",
+ "common2": "*",
"uniforms-bootstrap4": "^3.6.2",
"uniforms-bridge-json-schema": "^3.6.2",
"uuid": "^8.3.2",