@bitrise/bitkit 10.1.0-alpha-breadcrumb.3 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +23 -57
- package/src/Components/Tabs/Tab.tsx +2 -24
- package/src/Old/DatePicker/DatePicker.tsx +6 -6
- package/src/Old/DatePicker/DatePickerMonth.tsx +7 -7
- package/src/Old/Dropdown/Dropdown.tsx +3 -5
- package/src/Old/Dropdown/DropdownButton.tsx +2 -16
- package/src/Old/Dropdown/DropdownMenuItem.tsx +1 -2
- package/src/Old/Dropdown/DropdownMenuItemGroup.tsx +2 -2
- package/src/Old/Input/InputLabel.tsx +5 -3
- package/src/Old/Notification/Notification.tsx +3 -4
- package/src/Old/Notification/__snapshots__/Notification.test.tsx.snap +8 -12
- package/src/Old/Ribbon/Ribbon.tsx +4 -4
- package/src/Old/Status/Status404.tsx +3 -3
- package/src/Old/Status/Status500.tsx +4 -4
- package/src/Old/Table/TableHeaderCell.tsx +1 -1
- package/src/Old/Text/TextSizes.css +0 -39
- package/src/Old/Toggle/Toggle.tsx +1 -1
- package/src/Old/hooks/index.ts +0 -1
- package/src/Old/variables.css +0 -1
- package/src/Old/variables.ts +0 -3
- package/src/index.ts +0 -3
- package/src/old.ts +0 -67
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Components/Transitions/Fade.stories.tsx +0 -26
- package/src/Components/Transitions/Fade.tsx +0 -12
- package/src/Old/AddonBeam/AddonBeam.css +0 -16
- package/src/Old/AddonBeam/AddonBeam.tsx +0 -117
- package/src/Old/AddonBeam/AddonBeamLink.tsx +0 -37
- package/src/Old/AddonFooter/AddonFooter.tsx +0 -24
- package/src/Old/AppLayout/AppLayout.css +0 -45
- package/src/Old/AppLayout/AppLayout.tsx +0 -21
- package/src/Old/AppLayout/AppLayoutBody.tsx +0 -10
- package/src/Old/AppLayout/AppLayoutHeader.tsx +0 -10
- package/src/Old/AppLayout/AppLayoutMain.tsx +0 -10
- package/src/Old/AppLayout/AppLayoutSidebar.tsx +0 -10
- package/src/Old/Avatar/Avatar.css +0 -4
- package/src/Old/Avatar/Avatar.tsx +0 -64
- package/src/Old/Avatar/avatarColors.ts +0 -26
- package/src/Old/Bounds/Bounds.tsx +0 -20
- package/src/Old/Button/Button.css +0 -249
- package/src/Old/Button/Button.test.tsx +0 -29
- package/src/Old/Button/Button.tsx +0 -55
- package/src/Old/Button/ButtonSize.ts +0 -3
- package/src/Old/Button/Buttons.test.tsx +0 -42
- package/src/Old/Button/Buttons.tsx +0 -34
- package/src/Old/Button/__snapshots__/Button.test.tsx.snap +0 -73
- package/src/Old/Button/__snapshots__/Buttons.test.tsx.snap +0 -45
- package/src/Old/ExternalLink/ExternalLink.tsx +0 -24
- package/src/Old/Hamburger/Hamburger.css +0 -55
- package/src/Old/Hamburger/Hamburger.tsx +0 -33
- package/src/Old/Icon/Icon.css +0 -4
- package/src/Old/Icon/Icon.tsx +0 -32
- package/src/Old/Icon/tsx/IconsAddOns.tsx +0 -14
- package/src/Old/Icon/tsx/IconsAddOnsColorTuorqouise.tsx +0 -20
- package/src/Old/Icon/tsx/IconsAddOnsColorViolet.tsx +0 -20
- package/src/Old/Icon/tsx/IconsAddOnsWhite.tsx +0 -20
- package/src/Old/Icon/tsx/IconsApp.tsx +0 -16
- package/src/Old/Icon/tsx/IconsArrowBack.tsx +0 -14
- package/src/Old/Icon/tsx/IconsArrowDown.tsx +0 -21
- package/src/Old/Icon/tsx/IconsArrowForward.tsx +0 -16
- package/src/Old/Icon/tsx/IconsArrowQuit.tsx +0 -14
- package/src/Old/Icon/tsx/IconsArrowUp.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBackArrow.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBell.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBitbot.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBitbotFailed.tsx +0 -18
- package/src/Old/Icon/tsx/IconsBitbucket.tsx +0 -26
- package/src/Old/Icon/tsx/IconsBitbucketFill.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBitriseCertified.tsx +0 -19
- package/src/Old/Icon/tsx/IconsBook.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBranchBranch.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBranchCommit.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBranchPull.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBranchPush.tsx +0 -21
- package/src/Old/Icon/tsx/IconsBranchTag.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBug.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuild.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBuildstatusAborted.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuildstatusAbortedSolid.tsx +0 -15
- package/src/Old/Icon/tsx/IconsBuildstatusFailed.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuildstatusFailedSolid.tsx +0 -15
- package/src/Old/Icon/tsx/IconsBuildstatusLoading.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBuildstatusLoadingAnimated.tsx +0 -31
- package/src/Old/Icon/tsx/IconsBuildstatusLoadingeeehh.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBuildstatusLoadingeeehhWhite.tsx +0 -13
- package/src/Old/Icon/tsx/IconsBuildstatusNeverbuilt.tsx +0 -14
- package/src/Old/Icon/tsx/IconsBuildstatusSuccessful.tsx +0 -16
- package/src/Old/Icon/tsx/IconsBuildstatusSuccessfulSolid.tsx +0 -15
- package/src/Old/Icon/tsx/IconsCalendar.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChain.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChangePlan.tsx +0 -14
- package/src/Old/Icon/tsx/IconsChat.tsx +0 -14
- package/src/Old/Icon/tsx/IconsChatMessage.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChevronDown.tsx +0 -13
- package/src/Old/Icon/tsx/IconsChevronLeft.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChevronRight.tsx +0 -16
- package/src/Old/Icon/tsx/IconsChevronUp.tsx +0 -15
- package/src/Old/Icon/tsx/IconsClock.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCloseSmall.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCode.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCoffee.tsx +0 -16
- package/src/Old/Icon/tsx/IconsConsole.tsx +0 -16
- package/src/Old/Icon/tsx/IconsCredit.tsx +0 -21
- package/src/Old/Icon/tsx/IconsCreditcard.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDeleteNope.tsx +0 -15
- package/src/Old/Icon/tsx/IconsDeployment.tsx +0 -14
- package/src/Old/Icon/tsx/IconsDoc.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDollars.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDownload.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDropdownArrows.tsx +0 -16
- package/src/Old/Icon/tsx/IconsDudes.tsx +0 -14
- package/src/Old/Icon/tsx/IconsDuplicate.tsx +0 -14
- package/src/Old/Icon/tsx/IconsEnterprise.tsx +0 -19
- package/src/Old/Icon/tsx/IconsErrorGeneral.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFileDoc.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFilePdf.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFilePlist.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFileZip.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFilter.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFlag.tsx +0 -13
- package/src/Old/Icon/tsx/IconsFolder.tsx +0 -16
- package/src/Old/Icon/tsx/IconsFullscreen.tsx +0 -14
- package/src/Old/Icon/tsx/IconsFullscreenExit.tsx +0 -14
- package/src/Old/Icon/tsx/IconsGauge.tsx +0 -16
- package/src/Old/Icon/tsx/IconsGithub.tsx +0 -14
- package/src/Old/Icon/tsx/IconsGitlab.tsx +0 -20
- package/src/Old/Icon/tsx/IconsGitlabFill.tsx +0 -14
- package/src/Old/Icon/tsx/IconsGlobe.tsx +0 -16
- package/src/Old/Icon/tsx/IconsGroup.tsx +0 -14
- package/src/Old/Icon/tsx/IconsHeart.tsx +0 -14
- package/src/Old/Icon/tsx/IconsHidePassword.tsx +0 -19
- package/src/Old/Icon/tsx/IconsHistory.tsx +0 -14
- package/src/Old/Icon/tsx/IconsImage.tsx +0 -14
- package/src/Old/Icon/tsx/IconsInfo.tsx +0 -14
- package/src/Old/Icon/tsx/IconsIntegrations.tsx +0 -14
- package/src/Old/Icon/tsx/IconsInteraction.tsx +0 -14
- package/src/Old/Icon/tsx/IconsInvoice.tsx +0 -16
- package/src/Old/Icon/tsx/IconsJapanese.tsx +0 -15
- package/src/Old/Icon/tsx/IconsKey.tsx +0 -14
- package/src/Old/Icon/tsx/IconsLaptop.tsx +0 -13
- package/src/Old/Icon/tsx/IconsLaptops.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLightbulb.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLock.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLogin.tsx +0 -16
- package/src/Old/Icon/tsx/IconsLogout.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMagnifier.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMail.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMenuGrid.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMenuHamburger.tsx +0 -13
- package/src/Old/Icon/tsx/IconsMessage.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMinusClose.tsx +0 -10
- package/src/Old/Icon/tsx/IconsMinusRemove.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMobile.tsx +0 -16
- package/src/Old/Icon/tsx/IconsMonitoring.tsx +0 -14
- package/src/Old/Icon/tsx/IconsMoreHorizontal.tsx +0 -13
- package/src/Old/Icon/tsx/IconsMoreVertical.tsx +0 -17
- package/src/Old/Icon/tsx/IconsNoTie.tsx +0 -14
- package/src/Old/Icon/tsx/IconsNumero.tsx +0 -16
- package/src/Old/Icon/tsx/IconsOpenInBrowser.tsx +0 -16
- package/src/Old/Icon/tsx/IconsOverview.tsx +0 -14
- package/src/Old/Icon/tsx/IconsOwner.tsx +0 -19
- package/src/Old/Icon/tsx/IconsPause.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPencil.tsx +0 -17
- package/src/Old/Icon/tsx/IconsPercent.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPerson.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsAndroid.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlatformsApple.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlatformsCordova.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsFastlane.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsFlutter.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsGo.tsx +0 -13
- package/src/Old/Icon/tsx/IconsPlatformsIonic.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsMacos.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsNodejs.tsx +0 -13
- package/src/Old/Icon/tsx/IconsPlatformsOther.tsx +0 -21
- package/src/Old/Icon/tsx/IconsPlatformsReact.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlatformsXamarin.tsx +0 -14
- package/src/Old/Icon/tsx/IconsPlay.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlusAdd.tsx +0 -16
- package/src/Old/Icon/tsx/IconsPlusOpen.tsx +0 -13
- package/src/Old/Icon/tsx/IconsPower.tsx +0 -11
- package/src/Old/Icon/tsx/IconsRefresh.tsx +0 -13
- package/src/Old/Icon/tsx/IconsRequest.tsx +0 -14
- package/src/Old/Icon/tsx/IconsResponsiveness.tsx +0 -14
- package/src/Old/Icon/tsx/IconsSave.tsx +0 -14
- package/src/Old/Icon/tsx/IconsSecurityShield.tsx +0 -16
- package/src/Old/Icon/tsx/IconsSettings.tsx +0 -16
- package/src/Old/Icon/tsx/IconsShip.tsx +0 -14
- package/src/Old/Icon/tsx/IconsShowPassword.tsx +0 -16
- package/src/Old/Icon/tsx/IconsShuffle.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStability.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStack.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStatus.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStepThirdParty.tsx +0 -16
- package/src/Old/Icon/tsx/IconsStepUpgrade.tsx +0 -10
- package/src/Old/Icon/tsx/IconsStepUpgradeCircle.tsx +0 -11
- package/src/Old/Icon/tsx/IconsStepVersionOk.tsx +0 -11
- package/src/Old/Icon/tsx/IconsSteps.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStepsColorTuorqouise.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStepsColorViolet.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStepsWhite.tsx +0 -14
- package/src/Old/Icon/tsx/IconsStopwatch.tsx +0 -16
- package/src/Old/Icon/tsx/IconsSupport.tsx +0 -16
- package/src/Old/Icon/tsx/IconsSwitch.tsx +0 -13
- package/src/Old/Icon/tsx/IconsTestFailed.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestInconclusive.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestInfo.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestSkipped.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestSuccess.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTestWarning.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTick.tsx +0 -13
- package/src/Old/Icon/tsx/IconsTime.tsx +0 -16
- package/src/Old/Icon/tsx/IconsTrace.tsx +0 -14
- package/src/Old/Icon/tsx/IconsTrash.tsx +0 -16
- package/src/Old/Icon/tsx/IconsTrigger.tsx +0 -16
- package/src/Old/Icon/tsx/IconsTwitter.tsx +0 -16
- package/src/Old/Icon/tsx/IconsValidateShield.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWarning.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWebUi.tsx +0 -17
- package/src/Old/Icon/tsx/IconsWindow.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWorkflow.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWorkflowFlow.tsx +0 -16
- package/src/Old/Icon/tsx/IconsWow.tsx +0 -16
- package/src/Old/Icon/tsx/index.ts +0 -694
- package/src/Old/Link/Link.css +0 -44
- package/src/Old/Link/Link.tsx +0 -30
- package/src/Old/Modal/Modal.css +0 -67
- package/src/Old/Modal/Modal.tsx +0 -117
- package/src/Old/Modal/ModalBody.tsx +0 -17
- package/src/Old/Modal/ModalHeader.tsx +0 -50
- package/src/Old/Modal/ModalHeaderProgress.tsx +0 -23
- package/src/Old/Modal/ModalTitle.tsx +0 -13
- package/src/Old/Progress/ProgressButtonContent.tsx +0 -35
- package/src/Old/Sidebar/Sidebar.css +0 -125
- package/src/Old/Sidebar/Sidebar.tsx +0 -25
- package/src/Old/Sidebar/SidebarHeader.tsx +0 -10
- package/src/Old/Sidebar/SidebarMenu.tsx +0 -30
- package/src/Old/Sidebar/SidebarMenuContext.ts +0 -7
- package/src/Old/Sidebar/SidebarMenuItem.tsx +0 -67
- package/src/Old/Sidebar/SidebarSubMenu.tsx +0 -33
- package/src/Old/Sidebar/SidebarSubMenuItem.tsx +0 -59
- package/src/Old/Tabs/Tab.tsx +0 -23
- package/src/Old/Tabs/Tabs.css +0 -30
- package/src/Old/Tabs/Tabs.tsx +0 -18
- package/src/Old/Tooltip/Tooltip.tsx +0 -85
- package/src/Old/hooks/useResizeObserver.ts +0 -40
package/package.json
CHANGED
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "10.1
|
|
4
|
+
"version": "10.2.1",
|
|
5
5
|
"repository": "git@github.com:bitrise-io/bitkit.git",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "yarn build:lib && yarn build:site",
|
|
10
|
-
"build:docs": "ts-node ./scripts/build-docs",
|
|
11
9
|
"build:icons": "ts-node ./scripts/build-icons.ts",
|
|
12
|
-
"build:lib": "rm -rf ./lib && yarn build:lib:cjs && yarn build:lib:esn",
|
|
13
|
-
"build:lib:esn": "tsc -p src -m esnext -t esnext --outDir lib/esn",
|
|
14
|
-
"build:lib:cjs": "tsc -p src --outDir lib/cjs",
|
|
15
|
-
"build:prepare": "rm -rf ./dist && mkdir dist && cp site/index.html dist && ln -s index.html dist/404.html",
|
|
16
|
-
"build:site": "yarn build:prepare && yarn build:docs && yarn tsc:site && yarn build:site:esbuild",
|
|
17
|
-
"tsc:site": "tsc --noEmit -p site/tsconfig.json",
|
|
18
|
-
"build:site:esbuild": "esbuild --bundle site/index.tsx --outdir=dist --target=esnext --loader:.woff2=file --loader:.woff=file --minify --sourcemap",
|
|
19
10
|
"commitlint": "commitlint",
|
|
20
|
-
"lint": "
|
|
21
|
-
"lint:js": "eslint src/**/*.tsx",
|
|
11
|
+
"lint": "eslint src/**/*.tsx",
|
|
22
12
|
"semantic-release": "semantic-release",
|
|
23
|
-
"
|
|
24
|
-
"start": "yarn build:prepare && concurrently \"yarn start:docs\" \"yarn start:esbuild\" \"yarn serve\"",
|
|
25
|
-
"start:esbuild": "esbuild --bundle site/index.tsx --watch --outdir=dist --target=esnext --loader:.woff2=file --loader:.woff=file",
|
|
26
|
-
"start:docs": "ts-node ./scripts/build-docs-watch",
|
|
13
|
+
"start": "yarn storybook",
|
|
27
14
|
"test": "jest ./src",
|
|
28
15
|
"storybook": "start-storybook -p 6006",
|
|
29
16
|
"build-storybook": "build-storybook"
|
|
@@ -33,15 +20,14 @@
|
|
|
33
20
|
"framer-motion": "./node_modules/framer-motion/dist/cjs"
|
|
34
21
|
},
|
|
35
22
|
"dependencies": {
|
|
36
|
-
"@chakra-ui/react": "^2.2.
|
|
23
|
+
"@chakra-ui/react": "^2.2.4",
|
|
37
24
|
"@emotion/react": "^11.9.3",
|
|
38
25
|
"@emotion/styled": "^11.9.3",
|
|
39
|
-
"@juggle/resize-observer": "^3.3.1",
|
|
40
26
|
"@popperjs/core": "^2.11.5",
|
|
41
27
|
"classnames": "^2.3.1",
|
|
42
28
|
"clipboard": "^2.0.11",
|
|
43
|
-
"framer-motion": "^6.
|
|
44
|
-
"luxon": "^2.
|
|
29
|
+
"framer-motion": "^6.5.1",
|
|
30
|
+
"luxon": "^2.5.0",
|
|
45
31
|
"react": "^18.2.0",
|
|
46
32
|
"react-dom": "^18.2.0",
|
|
47
33
|
"react-popper": "^2.3.0"
|
|
@@ -51,13 +37,13 @@
|
|
|
51
37
|
"react-dom": "^18.2.0"
|
|
52
38
|
},
|
|
53
39
|
"devDependencies": {
|
|
54
|
-
"@babel/core": "^7.18.
|
|
55
|
-
"@babel/parser": "^7.18.
|
|
40
|
+
"@babel/core": "^7.18.9",
|
|
41
|
+
"@babel/parser": "^7.18.9",
|
|
56
42
|
"@bitrise/eslint-plugin": "^2.2.0",
|
|
57
|
-
"@chakra-ui/cli": "^2.1.
|
|
43
|
+
"@chakra-ui/cli": "^2.1.2",
|
|
58
44
|
"@commitlint/cli": "^16.3.0",
|
|
59
45
|
"@commitlint/config-conventional": "^16.2.4",
|
|
60
|
-
"@google-cloud/storage": "^5.
|
|
46
|
+
"@google-cloud/storage": "^5.20.5",
|
|
61
47
|
"@semantic-release/changelog": "^6.0.1",
|
|
62
48
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
63
49
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -71,63 +57,43 @@
|
|
|
71
57
|
"@storybook/react": "^6.5.9",
|
|
72
58
|
"@storybook/testing-library": "^0.0.13",
|
|
73
59
|
"@storybook/theming": "^6.5.9",
|
|
74
|
-
"@svgr/
|
|
75
|
-
"@svgr/core": "^6.2.1",
|
|
60
|
+
"@svgr/core": "^6.3.0",
|
|
76
61
|
"@types/cheerio": "^0.22.31",
|
|
77
62
|
"@types/clipboard": "^2.0.1",
|
|
78
63
|
"@types/enzyme": "^3.10.12",
|
|
79
|
-
"@types/
|
|
80
|
-
"@types/
|
|
81
|
-
"@types/
|
|
82
|
-
"@types/
|
|
83
|
-
"@types/luxon": "^2.3.2",
|
|
84
|
-
"@types/prismjs": "^1.26.0",
|
|
85
|
-
"@types/react": "18.0.14",
|
|
86
|
-
"@types/react-dom": "^18.0.5",
|
|
87
|
-
"@types/react-router": "^5.1.18",
|
|
88
|
-
"@types/react-router-dom": "^5.3.3",
|
|
64
|
+
"@types/jest": "^27.5.2",
|
|
65
|
+
"@types/luxon": "^2.4.0",
|
|
66
|
+
"@types/react": "18.0.15",
|
|
67
|
+
"@types/react-dom": "^18.0.6",
|
|
89
68
|
"@types/vfile-message": "^2.0.0",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
91
|
-
"@typescript-eslint/parser": "^5.
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
70
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
92
71
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
93
72
|
"axios": "^0.27.2",
|
|
94
73
|
"babel-eslint": "^10.0.1",
|
|
95
74
|
"babel-loader": "^8.2.5",
|
|
96
75
|
"babel-plugin-polyfill-corejs2": "^0.3.1",
|
|
97
|
-
"concurrently": "^7.2.2",
|
|
98
76
|
"enzyme": "^3.11.0",
|
|
99
77
|
"enzyme-to-json": "^3.6.2",
|
|
100
|
-
"
|
|
101
|
-
"eslint": "^8.18.0",
|
|
78
|
+
"eslint": "^8.20.0",
|
|
102
79
|
"eslint-plugin-import": "^2.26.0",
|
|
103
|
-
"eslint-plugin-jest": "^26.
|
|
80
|
+
"eslint-plugin-jest": "^26.6.0",
|
|
104
81
|
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
105
|
-
"eslint-plugin-prettier": "^4.1
|
|
82
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
106
83
|
"eslint-plugin-react": "^7.30.1",
|
|
107
84
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
108
|
-
"eslint-plugin-storybook": "^0.
|
|
85
|
+
"eslint-plugin-storybook": "^0.6.1",
|
|
109
86
|
"eslint-plugin-testing-library": "^5.5.1",
|
|
110
|
-
"fscreen": "^1.2.0",
|
|
111
87
|
"glob": "^8.0.3",
|
|
112
88
|
"husky": "^7.0.4",
|
|
113
89
|
"identity-obj-proxy": "^3.0.0",
|
|
114
90
|
"jest": "^27.5.1",
|
|
115
91
|
"jsdom": "^19.0.0",
|
|
116
|
-
"lodash.sample": "^4.2.1",
|
|
117
|
-
"lodash.shuffle": "^4.2.0",
|
|
118
|
-
"node-watch": "^0.7.3",
|
|
119
92
|
"prettier": "^2.7.1",
|
|
120
|
-
"prismjs": "^1.28.0",
|
|
121
|
-
"react": "^18.2.0",
|
|
122
|
-
"react-docgen": "5.4.2",
|
|
123
|
-
"react-dom": "^18.2.0",
|
|
124
|
-
"react-router": "^5.3.1",
|
|
125
|
-
"react-router-dom": "^5.3.1",
|
|
126
93
|
"recast": "^0.21.1",
|
|
127
94
|
"semantic-release": "^19.0.3",
|
|
128
|
-
"superstatic": "^8.0.0",
|
|
129
95
|
"ts-jest": "^27.1.5",
|
|
130
|
-
"ts-node": "^10.
|
|
96
|
+
"ts-node": "^10.9.1",
|
|
131
97
|
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
132
98
|
"typescript": "^4.7.4",
|
|
133
99
|
"webpack": "^5.73.0"
|
|
@@ -153,7 +119,7 @@
|
|
|
153
119
|
},
|
|
154
120
|
"resolutions": {
|
|
155
121
|
"**/ast-types": "npm:@gkz/ast-types",
|
|
156
|
-
"ts-node": "^10.
|
|
122
|
+
"ts-node": "^10.9.1",
|
|
157
123
|
"@types/react": "17.0.40"
|
|
158
124
|
}
|
|
159
125
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Badge as ChakraBadge,
|
|
3
|
-
BadgeProps as ChakraBadgeProps,
|
|
4
2
|
Button,
|
|
5
3
|
Tab as ChakraTab,
|
|
6
4
|
TabProps as ChakraTabProps,
|
|
@@ -8,28 +6,8 @@ import {
|
|
|
8
6
|
useMultiStyleConfig,
|
|
9
7
|
useTab,
|
|
10
8
|
} from '@chakra-ui/react';
|
|
11
|
-
import
|
|
12
|
-
import { TypeIconName } from '
|
|
13
|
-
|
|
14
|
-
// TODO: separated component
|
|
15
|
-
interface BadgeProps extends ChakraBadgeProps {
|
|
16
|
-
backgroundColor?: ChakraBadgeProps['backgroundColor'];
|
|
17
|
-
children?: number | string;
|
|
18
|
-
color?: ChakraBadgeProps['color'];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const Badge = (props: BadgeProps) => {
|
|
22
|
-
const properties: ChakraBadgeProps = {
|
|
23
|
-
...props,
|
|
24
|
-
borderRadius: '4',
|
|
25
|
-
fontSize: '1',
|
|
26
|
-
lineHeight: '1',
|
|
27
|
-
paddingY: '3px',
|
|
28
|
-
paddingX: '8',
|
|
29
|
-
textTransform: 'uppercase',
|
|
30
|
-
};
|
|
31
|
-
return <ChakraBadge {...properties} />;
|
|
32
|
-
};
|
|
9
|
+
import Badge, { BadgeProps } from '../Badge/Badge';
|
|
10
|
+
import Icon, { TypeIconName } from '../Icon/Icon';
|
|
33
11
|
|
|
34
12
|
export interface TabProps extends ChakraTabProps {
|
|
35
13
|
badge?: BadgeProps;
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { DateTime } from 'luxon';
|
|
4
4
|
import { ReferenceChildrenProps } from 'react-popper';
|
|
5
5
|
import { useMediaQuery, useSyncedStateAndProps } from '../hooks';
|
|
6
|
-
import Button from '
|
|
7
|
-
import
|
|
6
|
+
import Button from '../../Components/Button/Button';
|
|
7
|
+
import ButtonGroup from '../../Components/ButtonGroup/ButtonGroup';
|
|
8
8
|
import { Props as FlexProps } from '../Flex/Flex';
|
|
9
9
|
import Placement from '../Placement/Placement';
|
|
10
10
|
import PlacementArea from '../Placement/PlacementArea';
|
|
@@ -175,15 +175,15 @@ const DatePicker: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
175
175
|
)}
|
|
176
176
|
</PlacementArea>
|
|
177
177
|
|
|
178
|
-
<
|
|
179
|
-
<Button
|
|
178
|
+
<ButtonGroup alignItems="flex-end" marginY="8" paddingX="32">
|
|
179
|
+
<Button variant="secondary" onClick={handleClose} size="small">
|
|
180
180
|
Cancel
|
|
181
181
|
</Button>
|
|
182
182
|
|
|
183
|
-
<Button
|
|
183
|
+
<Button onClick={handleApply} size="small">
|
|
184
184
|
Apply
|
|
185
185
|
</Button>
|
|
186
|
-
</
|
|
186
|
+
</ButtonGroup>
|
|
187
187
|
</PlacementArea>
|
|
188
188
|
)}
|
|
189
189
|
</Placement>
|
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { DateTime, Info } from 'luxon';
|
|
3
3
|
import Base, { Props as BaseProps } from '../Base/Base';
|
|
4
4
|
import Flex from '../Flex/Flex';
|
|
5
|
-
import Icon from '
|
|
6
|
-
import Link from '
|
|
7
|
-
import Text from '
|
|
5
|
+
import Icon from '../../Components/Icon/Icon';
|
|
6
|
+
import Link from '../../Components/Link/Link';
|
|
7
|
+
import Text from '../../Components/Text/Text';
|
|
8
8
|
import DatePickerGrid from './DatePickerGrid';
|
|
9
9
|
import DatePickerDay from './DatePickerDay';
|
|
10
10
|
|
|
@@ -40,18 +40,18 @@ const DatePickerMonth: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
40
40
|
<Flex alignChildren="middle" direction="horizontal" gap="x4" margin="x4" paddingHorizontal="x12">
|
|
41
41
|
<Flex>
|
|
42
42
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
43
|
-
<Link onClick={onPreviousMonth}>
|
|
43
|
+
<Link as="button" onClick={onPreviousMonth}>
|
|
44
44
|
<Icon name="ChevronLeft" />
|
|
45
45
|
</Link>
|
|
46
46
|
</Flex>
|
|
47
47
|
|
|
48
48
|
<Flex grow>
|
|
49
|
-
<Text align="
|
|
49
|
+
<Text align="center">{viewDate.toFormat('MMMM yyyy')}</Text>
|
|
50
50
|
</Flex>
|
|
51
51
|
|
|
52
52
|
<Flex>
|
|
53
53
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
54
|
-
<Link onClick={onNextMonth}>
|
|
54
|
+
<Link as="button" onClick={onNextMonth}>
|
|
55
55
|
<Icon name="ChevronRight" />
|
|
56
56
|
</Link>
|
|
57
57
|
</Flex>
|
|
@@ -59,7 +59,7 @@ const DatePickerMonth: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
59
59
|
|
|
60
60
|
<DatePickerGrid margin="x1">
|
|
61
61
|
{daysOfTheWeek.map((day) => (
|
|
62
|
-
<Text
|
|
62
|
+
<Text textAlign="center" key={day} paddingY="16" size="2" color="neutral.70" textTransform="uppercase">
|
|
63
63
|
{day}
|
|
64
64
|
</Text>
|
|
65
65
|
))}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import Placement from '../Placement/Placement';
|
|
3
3
|
import PlacementManager from '../Placement/PlacementManager';
|
|
4
4
|
import PlacementReference from '../Placement/PlacementReference';
|
|
5
|
-
import Text from '
|
|
5
|
+
import Text from '../../Components/Text/Text';
|
|
6
6
|
import DropdownButton, { Props as DropdownButtonProps } from './DropdownButton';
|
|
7
7
|
import DropdownMenu from './DropdownMenu';
|
|
8
8
|
import DropdownMenuItem from './DropdownMenuItem';
|
|
@@ -58,16 +58,14 @@ const Dropdown: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
58
58
|
return (
|
|
59
59
|
<PlacementManager>
|
|
60
60
|
<PlacementReference>
|
|
61
|
-
{(
|
|
61
|
+
{() => (
|
|
62
62
|
<DropdownButton
|
|
63
63
|
{...rest}
|
|
64
|
-
alignChildrenHorizontal="start"
|
|
65
|
-
innerRef={ref}
|
|
66
64
|
onClick={() => {
|
|
67
65
|
setVisible(!visible);
|
|
68
66
|
}}
|
|
69
67
|
>
|
|
70
|
-
<Text
|
|
68
|
+
<Text hasEllipsis>{children}</Text>
|
|
71
69
|
</DropdownButton>
|
|
72
70
|
)}
|
|
73
71
|
</PlacementReference>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Button, {
|
|
3
|
-
import Flex from '../Flex/Flex';
|
|
4
|
-
import Icon from '../Icon/Icon';
|
|
2
|
+
import Button, { ButtonProps } from '../../Components/Button/Button';
|
|
5
3
|
|
|
6
4
|
export type Props = Omit<ButtonProps, 'level'>;
|
|
7
5
|
|
|
@@ -10,19 +8,7 @@ export type Props = Omit<ButtonProps, 'level'>;
|
|
|
10
8
|
* standard prop configuration for a Dropdown.
|
|
11
9
|
*/
|
|
12
10
|
const DropdownButton: React.FunctionComponent<Props> = (props: Props) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<Button type="button" {...props} alignChildrenHorizontal="start" fullWidth gap="x4" level="secondary">
|
|
17
|
-
<Flex alignChildrenVertical="middle" direction="horizontal" gap="x2" grow shrink>
|
|
18
|
-
{children}
|
|
19
|
-
</Flex>
|
|
20
|
-
|
|
21
|
-
<Flex>
|
|
22
|
-
<Icon name="ChevronDown" />
|
|
23
|
-
</Flex>
|
|
24
|
-
</Button>
|
|
25
|
-
);
|
|
11
|
+
return <Button width="100%" variant="secondary" rightIconName="ChevronDown" {...props} />;
|
|
26
12
|
};
|
|
27
13
|
|
|
28
14
|
export default DropdownButton;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Icon from '
|
|
5
|
-
import { TypeIconName } from '../Icon/tsx';
|
|
4
|
+
import Icon, { TypeIconName } from '../../Components/Icon/Icon';
|
|
6
5
|
import Visibility from '../Visibility/Visibility';
|
|
7
6
|
|
|
8
7
|
export interface Props extends FlexProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Text from '
|
|
4
|
+
import Text from '../../Components/Text/Text';
|
|
5
5
|
|
|
6
6
|
export interface Props extends FlexProps {
|
|
7
7
|
text: string;
|
|
@@ -9,7 +9,7 @@ export interface Props extends FlexProps {
|
|
|
9
9
|
|
|
10
10
|
const DropdownMenuItemGroup: React.FunctionComponent<Props> = ({ text, children, className, ...rest }: Props) => (
|
|
11
11
|
<Flex className={classnames('DropdownMenu__group', className)} {...rest}>
|
|
12
|
-
<Text className="DropdownMenu__group-text" size="2"
|
|
12
|
+
<Text className="DropdownMenu__group-text" size="2" color="neutral.50">
|
|
13
13
|
{text}
|
|
14
14
|
</Text>
|
|
15
15
|
{children}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Text, {
|
|
2
|
+
import Text, { TextProps } from '../../Components/Text/Text';
|
|
3
3
|
|
|
4
|
-
export type Props =
|
|
4
|
+
export type Props = {
|
|
5
|
+
htmlFor?: string | undefined;
|
|
6
|
+
} & TextProps;
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Provides specific styling for a label that accompanies an
|
|
8
10
|
* input.
|
|
9
11
|
*/
|
|
10
12
|
const InputLabel: React.FunctionComponent<Props> = (props: Props) => {
|
|
11
|
-
return <Text {...props}
|
|
13
|
+
return <Text {...props} as="label" marginY="4" size="3" color="purple.10" fontWeight="bold" />;
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
export default InputLabel;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Icon from '
|
|
5
|
-
import
|
|
6
|
-
import Link from '../Link/Link';
|
|
4
|
+
import Icon, { TypeIconName } from '../../Components/Icon/Icon';
|
|
5
|
+
import Link from '../../Components/Link/Link';
|
|
7
6
|
import ProgressSpinner from '../Progress/ProgressSpinner';
|
|
8
7
|
import './Notification.css';
|
|
9
8
|
|
|
@@ -58,7 +57,7 @@ const Notification: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
58
57
|
{onRemove && (
|
|
59
58
|
<Flex>
|
|
60
59
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
61
|
-
<Link
|
|
60
|
+
<Link as="button" onClick={onRemove}>
|
|
62
61
|
<Icon name="CloseSmall" />
|
|
63
62
|
</Link>
|
|
64
63
|
</Flex>
|
|
@@ -9,9 +9,8 @@ exports[`Notification default icon can be overridden 1`] = `
|
|
|
9
9
|
padding="x3"
|
|
10
10
|
>
|
|
11
11
|
<Flex>
|
|
12
|
-
<
|
|
12
|
+
<ForwardRef
|
|
13
13
|
name="Bell"
|
|
14
|
-
size="1.5rem"
|
|
15
14
|
/>
|
|
16
15
|
</Flex>
|
|
17
16
|
<Flex
|
|
@@ -32,9 +31,8 @@ exports[`Notification default template 1`] = `
|
|
|
32
31
|
padding="x3"
|
|
33
32
|
>
|
|
34
33
|
<Flex>
|
|
35
|
-
<
|
|
34
|
+
<ForwardRef
|
|
36
35
|
name="ErrorGeneral"
|
|
37
|
-
size="1.5rem"
|
|
38
36
|
/>
|
|
39
37
|
</Flex>
|
|
40
38
|
<Flex
|
|
@@ -55,9 +53,8 @@ exports[`Notification with onRemove has a close icon 1`] = `
|
|
|
55
53
|
padding="x3"
|
|
56
54
|
>
|
|
57
55
|
<Flex>
|
|
58
|
-
<
|
|
56
|
+
<ForwardRef
|
|
59
57
|
name="ErrorGeneral"
|
|
60
|
-
size="1.5rem"
|
|
61
58
|
/>
|
|
62
59
|
</Flex>
|
|
63
60
|
<Flex
|
|
@@ -67,16 +64,15 @@ exports[`Notification with onRemove has a close icon 1`] = `
|
|
|
67
64
|
Content
|
|
68
65
|
</Flex>
|
|
69
66
|
<Flex>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
<ForwardRef
|
|
68
|
+
as="button"
|
|
69
|
+
isUnderlined={false}
|
|
73
70
|
onClick={[Function]}
|
|
74
71
|
>
|
|
75
|
-
<
|
|
72
|
+
<ForwardRef
|
|
76
73
|
name="CloseSmall"
|
|
77
|
-
size="1.5rem"
|
|
78
74
|
/>
|
|
79
|
-
</
|
|
75
|
+
</ForwardRef>
|
|
80
76
|
</Flex>
|
|
81
77
|
</Flex>
|
|
82
78
|
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Icon from '
|
|
5
|
-
import Link from '
|
|
4
|
+
import Icon from '../../Components/Icon/Icon';
|
|
5
|
+
import Link from '../../Components/Link/Link';
|
|
6
6
|
import './Ribbon.css';
|
|
7
7
|
import Base from '../Base/Base';
|
|
8
8
|
|
|
@@ -38,8 +38,8 @@ const Ribbon: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
38
38
|
{onRemove && (
|
|
39
39
|
<Flex>
|
|
40
40
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
41
|
-
<Link
|
|
42
|
-
<Icon name="CloseSmall"
|
|
41
|
+
<Link as="button" onClick={onRemove}>
|
|
42
|
+
<Icon name="CloseSmall" />
|
|
43
43
|
</Link>
|
|
44
44
|
</Flex>
|
|
45
45
|
)}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { useMediaQuery } from '../hooks';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
4
|
import Image from '../Image/Image';
|
|
5
|
-
import Text from '
|
|
5
|
+
import Text from '../../Components/Text/Text';
|
|
6
6
|
|
|
7
7
|
export type Props = FlexProps;
|
|
8
8
|
|
|
@@ -21,10 +21,10 @@ const Status404: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
21
21
|
gap={match('65rem') ? 'x8' : 'x4'}
|
|
22
22
|
paddingHorizontal="x6"
|
|
23
23
|
>
|
|
24
|
-
<Text align="
|
|
24
|
+
<Text align="center" size="7" fontWeight="bold">
|
|
25
25
|
404
|
|
26
26
|
</Text>
|
|
27
|
-
<Text align="
|
|
27
|
+
<Text align="center" size="6" fontWeight="bold">
|
|
28
28
|
The coordinates you are looking for do not exist
|
|
29
29
|
</Text>
|
|
30
30
|
</Flex>
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { useMediaQuery } from '../hooks';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
4
|
import Image from '../Image/Image';
|
|
5
|
-
import Text from '
|
|
5
|
+
import Text from '../../Components/Text/Text';
|
|
6
6
|
|
|
7
7
|
export type Props = FlexProps;
|
|
8
8
|
|
|
@@ -20,15 +20,15 @@ const Status500: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
20
20
|
direction={match('65rem') ? 'horizontal' : 'vertical'}
|
|
21
21
|
gap={match('65rem') ? 'x8' : 'x4'}
|
|
22
22
|
>
|
|
23
|
-
<Text align="
|
|
23
|
+
<Text align="center" size="7" fontWeight="bold">
|
|
24
24
|
500
|
|
25
25
|
</Text>
|
|
26
|
-
<Text align="
|
|
26
|
+
<Text align="center" size="2" textTransform="uppercase" fontWeight="bold">
|
|
27
27
|
Something went wrong
|
|
28
28
|
</Text>
|
|
29
29
|
</Flex>
|
|
30
30
|
|
|
31
|
-
<Text align="
|
|
31
|
+
<Text align="center" letterSpacing="8" marginY="20" size="4">
|
|
32
32
|
Everything is under control, we will be back soon. Until then keep refreshing your browser.
|
|
33
33
|
</Text>
|
|
34
34
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import Flex from '../Flex/Flex';
|
|
4
|
-
import Icon from '
|
|
4
|
+
import Icon from '../../Components/Icon/Icon';
|
|
5
5
|
import Text, { Props as TextProps } from '../Text/Text';
|
|
6
6
|
import Visibility from '../Visibility/Visibility';
|
|
7
7
|
import VisibilityContainer from '../Visibility/VisibilityContainer';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.Text--size-1 {
|
|
2
|
-
font-size: var(--fontSizes-1);
|
|
3
|
-
line-height: var(--lineHeights-1);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.Text--size-2 {
|
|
7
|
-
font-size: var(--fontSizes-2);
|
|
8
|
-
line-height: var(--lineHeights-2);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.Text--size-3 {
|
|
12
|
-
font-size: var(--fontSizes-3);
|
|
13
|
-
line-height: var(--lineHeights-3);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.Text--size-4 {
|
|
17
|
-
font-size: var(--fontSizes-4);
|
|
18
|
-
line-height: var(--lineHeights-4);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.Text--size-5 {
|
|
22
|
-
font-size: var(--fontSizes-5);
|
|
23
|
-
line-height: var(--lineHeights-5);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.Text--size-6 {
|
|
27
|
-
font-size: var(--fontSizes-6);
|
|
28
|
-
line-height: var(--lineHeights-6);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.Text--size-7 {
|
|
32
|
-
font-size: var(--fontSizes-7);
|
|
33
|
-
line-height: var(--lineHeights-7);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.Text--size-8 {
|
|
37
|
-
font-size: var(--fontSizes-8);
|
|
38
|
-
line-height: var(--lineHeights-8);
|
|
39
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Icon from '
|
|
4
|
+
import Icon from '../../Components/Icon/Icon';
|
|
5
5
|
import './Toggle.css';
|
|
6
6
|
|
|
7
7
|
export interface Props extends FlexProps {
|
package/src/Old/hooks/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as useCopyToClipboard } from './useCopyToClipboard';
|
|
2
2
|
export { default as useEventListener } from './useEventListener';
|
|
3
3
|
export { default as useMediaQuery } from './useMediaQuery';
|
|
4
|
-
export { default as useResizeObserver } from './useResizeObserver';
|
|
5
4
|
export { default as useSyncedStateAndProps } from './useSyncedStateAndProps';
|
package/src/Old/variables.css
CHANGED
package/src/Old/variables.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import colors from '../Foundations/Colors/Colors';
|
|
2
|
-
import { IconList } from './Icon/tsx';
|
|
3
2
|
|
|
4
3
|
export const colorWhite = '#FFFFFF';
|
|
5
4
|
export const colorBlack = '#222222';
|
|
@@ -292,8 +291,6 @@ export const sizeX10 = 40;
|
|
|
292
291
|
export const sizeX12 = 48;
|
|
293
292
|
export const sizeX16 = 64;
|
|
294
293
|
|
|
295
|
-
export const icons = IconList;
|
|
296
|
-
|
|
297
294
|
export const fontSize1Px = 11;
|
|
298
295
|
export const fontSize2Px = 14;
|
|
299
296
|
export const fontSize3Px = 16;
|
package/src/index.ts
CHANGED
|
@@ -98,9 +98,6 @@ export { default as DialogBody } from './Components/Dialog/DialogBody';
|
|
|
98
98
|
export type { DialogFooterProps } from './Components/Dialog/DialogFooter';
|
|
99
99
|
export { default as DialogFooter } from './Components/Dialog/DialogFooter';
|
|
100
100
|
|
|
101
|
-
export type { FadeProps } from './Components/Transitions/Fade';
|
|
102
|
-
export { default as Fade } from './Components/Transitions/Fade';
|
|
103
|
-
|
|
104
101
|
export type { PopoverProps } from './Components/Popover/Popover';
|
|
105
102
|
export { default as Popover } from './Components/Popover/Popover';
|
|
106
103
|
|