2023-05-19 18:37:06 +00:00
|
|
|
// TODO (tanvi): Figure out why this file is still here and if it's safe to delete it.
|
|
|
|
|
|
chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
## Description
This PR upgrades Prettier to v2 + enforces TypeScript’s [`import
type`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export)
syntax where applicable. It’s submitted as a separate PR so we can merge
it easily.
As a part of this PR, we reformat the codebase heavily:
- add `import type` everywhere where it’s required, and
- re-format the code to account for Prettier 2’s breaking changes:
https://prettier.io/blog/2020/03/21/2.0.0.html#breaking-changes
This PR is submitted against `release` to make sure all new code by team
members will adhere to new formatting standards, and we’ll have fewer
conflicts when merging `bundle-optimizations` into `release`. (I’ll
merge `release` back into `bundle-optimizations` once this PR is
merged.)
### Why is this needed?
This PR is needed because, for the Lodash optimization from
https://github.com/appsmithorg/appsmith/commit/7cbb12af886621256224be0c93e6a465dd710ad3,
we need to use `import type`. Otherwise, `babel-plugin-lodash` complains
that `LoDashStatic` is not a lodash function.
However, just using `import type` in the current codebase will give you
this:
<img width="962" alt="Screenshot 2023-03-08 at 17 45 59"
src="https://user-images.githubusercontent.com/2953267/223775744-407afa0c-e8b9-44a1-90f9-b879348da57f.png">
That’s because Prettier 1 can’t parse `import type` at all. To parse it,
we need to upgrade to Prettier 2.
### Why enforce `import type`?
Apart from just enabling `import type` support, this PR enforces
specifying `import type` everywhere it’s needed. (Developers will get
immediate TypeScript and ESLint errors when they forget to do so.)
I’m doing this because I believe `import type` improves DX and makes
refactorings easier.
Let’s say you had a few imports like below. Can you tell which of these
imports will increase the bundle size? (Tip: it’s not all of them!)
```ts
// app/client/src/workers/Linting/utils.ts
import { Position } from "codemirror";
import { LintError as JSHintError, LintOptions } from "jshint";
import { get, isEmpty, isNumber, keys, last, set } from "lodash";
```
It’s pretty hard, right?
What about now?
```ts
// app/client/src/workers/Linting/utils.ts
import type { Position } from "codemirror";
import type { LintError as JSHintError, LintOptions } from "jshint";
import { get, isEmpty, isNumber, keys, last, set } from "lodash";
```
Now, it’s clear that only `lodash` will be bundled.
This helps developers to see which imports are problematic, but it
_also_ helps with refactorings. Now, if you want to see where
`codemirror` is bundled, you can just grep for `import \{.*\} from
"codemirror"` – and you won’t get any type-only imports.
This also helps (some) bundlers. Upon transpiling, TypeScript erases
type-only imports completely. In some environment (not ours), this makes
the bundle smaller, as the bundler doesn’t need to bundle type-only
imports anymore.
## Type of change
- Chore (housekeeping or task changes that don't impact user perception)
## How Has This Been Tested?
This was tested to not break the build.
### Test Plan
> Add Testsmith test cases links that relate to this PR
### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
---------
Co-authored-by: Satish Gandham <hello@satishgandham.com>
Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2023-03-16 11:41:47 +00:00
|
|
|
import type { JSXElementConstructor } from "react";
|
|
|
|
|
import React from "react";
|
2023-05-11 05:26:03 +00:00
|
|
|
import { importRemixIcon, importSvg } from "design-system-old";
|
chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
## Description
This PR upgrades Prettier to v2 + enforces TypeScript’s [`import
type`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export)
syntax where applicable. It’s submitted as a separate PR so we can merge
it easily.
As a part of this PR, we reformat the codebase heavily:
- add `import type` everywhere where it’s required, and
- re-format the code to account for Prettier 2’s breaking changes:
https://prettier.io/blog/2020/03/21/2.0.0.html#breaking-changes
This PR is submitted against `release` to make sure all new code by team
members will adhere to new formatting standards, and we’ll have fewer
conflicts when merging `bundle-optimizations` into `release`. (I’ll
merge `release` back into `bundle-optimizations` once this PR is
merged.)
### Why is this needed?
This PR is needed because, for the Lodash optimization from
https://github.com/appsmithorg/appsmith/commit/7cbb12af886621256224be0c93e6a465dd710ad3,
we need to use `import type`. Otherwise, `babel-plugin-lodash` complains
that `LoDashStatic` is not a lodash function.
However, just using `import type` in the current codebase will give you
this:
<img width="962" alt="Screenshot 2023-03-08 at 17 45 59"
src="https://user-images.githubusercontent.com/2953267/223775744-407afa0c-e8b9-44a1-90f9-b879348da57f.png">
That’s because Prettier 1 can’t parse `import type` at all. To parse it,
we need to upgrade to Prettier 2.
### Why enforce `import type`?
Apart from just enabling `import type` support, this PR enforces
specifying `import type` everywhere it’s needed. (Developers will get
immediate TypeScript and ESLint errors when they forget to do so.)
I’m doing this because I believe `import type` improves DX and makes
refactorings easier.
Let’s say you had a few imports like below. Can you tell which of these
imports will increase the bundle size? (Tip: it’s not all of them!)
```ts
// app/client/src/workers/Linting/utils.ts
import { Position } from "codemirror";
import { LintError as JSHintError, LintOptions } from "jshint";
import { get, isEmpty, isNumber, keys, last, set } from "lodash";
```
It’s pretty hard, right?
What about now?
```ts
// app/client/src/workers/Linting/utils.ts
import type { Position } from "codemirror";
import type { LintError as JSHintError, LintOptions } from "jshint";
import { get, isEmpty, isNumber, keys, last, set } from "lodash";
```
Now, it’s clear that only `lodash` will be bundled.
This helps developers to see which imports are problematic, but it
_also_ helps with refactorings. Now, if you want to see where
`codemirror` is bundled, you can just grep for `import \{.*\} from
"codemirror"` – and you won’t get any type-only imports.
This also helps (some) bundlers. Upon transpiling, TypeScript erases
type-only imports completely. In some environment (not ours), this makes
the bundle smaller, as the bundler doesn’t need to bundle type-only
imports anymore.
## Type of change
- Chore (housekeeping or task changes that don't impact user perception)
## How Has This Been Tested?
This was tested to not break the build.
### Test Plan
> Add Testsmith test cases links that relate to this PR
### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
---------
Co-authored-by: Satish Gandham <hello@satishgandham.com>
Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2023-03-16 11:41:47 +00:00
|
|
|
import type { IconProps } from "constants/IconConstants";
|
|
|
|
|
import { IconWrapper } from "constants/IconConstants";
|
2020-07-03 07:12:28 +00:00
|
|
|
import PlayIcon from "assets/icons/control/play-icon.png";
|
2023-05-11 05:26:03 +00:00
|
|
|
|
2023-10-09 13:54:06 +00:00
|
|
|
const DeleteIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/delete.svg"),
|
|
|
|
|
);
|
|
|
|
|
const MoveIcon = importSvg(async () => import("assets/icons/control/move.svg"));
|
|
|
|
|
const EditIcon = importSvg(async () => import("assets/icons/control/edit.svg"));
|
|
|
|
|
const ViewIcon = importSvg(async () => import("assets/icons/control/view.svg"));
|
2023-05-11 05:26:03 +00:00
|
|
|
const MoreVerticalIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/more-vertical.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const OverflowMenuIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/menu/overflow-menu.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const JsToggleIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/js-toggle.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const IncreaseIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/increase.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const DecreaseIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/decrease.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const DraggableIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/draggable.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const CloseCircleIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/close-circle.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const AddCircleIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/add-circle.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
2023-10-09 13:54:06 +00:00
|
|
|
const HelpIcon = importSvg(async () => import("assets/icons/control/help.svg"));
|
2023-05-11 05:26:03 +00:00
|
|
|
const CollapseIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/collapse.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const PickMyLocationSelectedIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/pick-location-selected.svg"),
|
|
|
|
|
);
|
|
|
|
|
const RemoveIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/remove.svg"),
|
|
|
|
|
);
|
|
|
|
|
const DragIcon = importSvg(async () => import("assets/icons/control/drag.svg"));
|
|
|
|
|
const SortIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/sort-icon.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const EditWhiteIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/edit-white.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
2023-10-09 13:54:06 +00:00
|
|
|
const LaunchIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/launch.svg"),
|
|
|
|
|
);
|
|
|
|
|
const BackIcon = importSvg(async () => import("assets/icons/control/back.svg"));
|
2023-05-11 05:26:03 +00:00
|
|
|
const DeleteColumnIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/delete-column.svg"),
|
|
|
|
|
);
|
|
|
|
|
const BoldFontIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/bold.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const UnderlineIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/underline.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const ItalicsFontIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/italics.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const LeftAlignIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/left-align.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const CenterAlignIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/center-align.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const RightAlignIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/right-align.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const VerticalAlignRight = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/align_right.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const VerticalAlignLeft = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/align_left.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const VerticalAlignBottom = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/vertical_align_bottom.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const VerticalAlignCenter = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/vertical_align_center.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const VerticalAlignTop = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/vertical_align_top.svg"),
|
|
|
|
|
);
|
|
|
|
|
const Copy2Icon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/copy2.svg"),
|
|
|
|
|
);
|
|
|
|
|
const CutIcon = importSvg(async () => import("assets/icons/control/cut.svg"));
|
|
|
|
|
const GroupIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/group.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const HeadingOneIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/heading_1.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const HeadingTwoIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/heading_2.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const HeadingThreeIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/heading_3.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const ParagraphIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/paragraph.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const ParagraphTwoIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/paragraph_2.svg"),
|
|
|
|
|
);
|
|
|
|
|
const BulletsIcon = importSvg(
|
|
|
|
|
async () => import("assets/icons/control/bullets.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const DividerCapRightIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/divider_cap_right.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const DividerCapLeftIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/divider_cap_left.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const DividerCapAllIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/divider_cap_all.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const TrendingFlat = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/ads/trending-flat.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const AlignLeftIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/align_left.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const AlignRightIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/align_right.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BorderRadiusSharpIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/border-radius-sharp.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BorderRadiusRoundedIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/border-radius-rounded.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BorderRadiusCircleIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/border-radius-circle.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BoxShadowNoneIcon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/box-shadow-none.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BoxShadowVariant1Icon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/box-shadow-variant1.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BoxShadowVariant2Icon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/box-shadow-variant2.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BoxShadowVariant3Icon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/box-shadow-variant3.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BoxShadowVariant4Icon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/box-shadow-variant4.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const BoxShadowVariant5Icon = importSvg(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("assets/icons/control/box-shadow-variant5.svg"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const IncreaseV2Icon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/AddLineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const PinIcon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/Pushpin2LineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const CopyIcon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/FileCopyLineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const QuestionIcon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/QuestionLineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const SettingsIcon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/Settings5LineIcon"),
|
|
|
|
|
);
|
|
|
|
|
const EyeIcon = importRemixIcon(
|
|
|
|
|
async () => import("remixicon-react/EyeLineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const EyeOffIcon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/EyeOffLineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
|
|
|
|
const CloseIcon = importRemixIcon(
|
2023-10-09 13:54:06 +00:00
|
|
|
async () => import("remixicon-react/CloseLineIcon"),
|
2023-05-11 05:26:03 +00:00
|
|
|
);
|
2020-06-10 17:31:20 +00:00
|
|
|
|
2019-09-30 20:04:03 +00:00
|
|
|
/* eslint-disable react/display-name */
|
|
|
|
|
|
|
|
|
|
export const ControlIcons: {
|
2023-05-11 05:26:03 +00:00
|
|
|
[id: string]: JSXElementConstructor<
|
|
|
|
|
IconProps & React.HTMLAttributes<HTMLDivElement>
|
|
|
|
|
>;
|
2019-09-30 20:04:03 +00:00
|
|
|
} = {
|
2023-05-11 05:26:03 +00:00
|
|
|
DELETE_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2019-09-30 20:04:03 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DeleteIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
MOVE_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2019-09-30 20:04:03 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<MoveIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
EDIT_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2019-10-21 11:40:24 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<EditIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
VIEW_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2019-11-07 04:59:40 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ViewIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
MORE_VERTICAL_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2019-11-21 10:52:49 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<MoreVerticalIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
MORE_HORIZONTAL_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2020-01-24 09:54:40 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<OverflowMenuIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
JS_TOGGLE: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-02-26 12:44:56 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<JsToggleIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
INCREASE_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2020-04-15 11:42:11 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<IncreaseIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DECREASE_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2020-04-15 11:42:11 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DecreaseIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DRAGGABLE_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2020-04-15 11:42:11 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DraggableIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
CLOSE_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-03-27 09:02:11 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CloseIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
CLOSE_CIRCLE_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-20 05:18:58 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CloseCircleIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
ADD_CIRCLE_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-20 05:18:58 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<AddCircleIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
PICK_MY_LOCATION_SELECTED_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2020-04-15 11:42:11 +00:00
|
|
|
<IconWrapper {...props}>
|
2020-05-20 11:57:02 +00:00
|
|
|
<PickMyLocationSelectedIcon />
|
2020-04-15 11:42:11 +00:00
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
SETTINGS_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2020-05-22 11:03:35 +00:00
|
|
|
<IconWrapper {...props}>
|
2020-06-10 17:31:20 +00:00
|
|
|
<SettingsIcon />
|
2020-05-22 11:03:35 +00:00
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
HELP_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-05-28 18:10:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<HelpIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
PLAY_VIDEO: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-06-22 13:46:19 +00:00
|
|
|
<IconWrapper {...props}>
|
2020-07-03 07:12:28 +00:00
|
|
|
<img
|
2021-04-28 10:28:39 +00:00
|
|
|
alt="Datasource"
|
2020-07-03 07:12:28 +00:00
|
|
|
src={PlayIcon}
|
|
|
|
|
style={{ height: "30px", width: "30px" }}
|
|
|
|
|
/>
|
2020-06-22 13:46:19 +00:00
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
REMOVE_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-08-10 11:16:13 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<RemoveIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DRAG_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-07-29 09:01:17 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DragIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
COLLAPSE_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CollapseIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
SORT_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-08-10 06:45:31 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<SortIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
EDIT_WHITE: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-08-18 06:40:11 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<EditWhiteIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
LAUNCH_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-08-18 06:40:11 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<LaunchIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BACK_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BackIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
SHOW_COLUMN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
2021-10-04 15:34:37 +00:00
|
|
|
<EyeIcon />
|
2021-02-16 10:29:08 +00:00
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
HIDE_COLUMN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
2021-10-04 15:34:37 +00:00
|
|
|
<EyeOffIcon />
|
2021-02-16 10:29:08 +00:00
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DELETE_COLUMN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DeleteColumnIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOLD_FONT: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoldFontIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
UNDERLINE: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-09-06 07:06:15 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<UnderlineIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
ITALICS_FONT: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ItalicsFontIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
LEFT_ALIGN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<LeftAlignIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
CENTER_ALIGN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CenterAlignIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
RIGHT_ALIGN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<RightAlignIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
VERTICAL_RIGHT: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2022-02-10 19:00:20 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<VerticalAlignRight />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
VERTICAL_LEFT: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2022-02-10 19:00:20 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<VerticalAlignLeft />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
VERTICAL_TOP: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<VerticalAlignTop />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
VERTICAL_CENTER: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<VerticalAlignCenter />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
VERTICAL_BOTTOM: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<VerticalAlignBottom />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
COPY_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2020-09-16 10:28:01 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CopyIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
COPY2_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-07-08 06:30:19 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<Copy2Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
CUT_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-07-08 06:30:19 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CutIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
GROUP_CONTROL: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-07-08 06:30:19 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<GroupIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
HEADING_ONE: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<HeadingOneIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
HEADING_TWO: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<HeadingTwoIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
HEADING_THREE: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<HeadingThreeIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
PARAGRAPH: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ParagraphIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
PARAGRAPH_TWO: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ParagraphTwoIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BULLETS: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-02-16 10:29:08 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BulletsIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DIVIDER_CAP_RIGHT: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-07 09:30:06 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DividerCapRightIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DIVIDER_CAP_LEFT: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-07 09:30:06 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DividerCapLeftIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
DIVIDER_CAP_ALL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-07 09:30:06 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DividerCapAllIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BIND_DATA_CONTROL: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-26 16:44:10 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<TrendingFlat />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
ICON_ALIGN_LEFT: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-13 08:05:09 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<AlignLeftIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
ICON_ALIGN_RIGHT: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-07-13 08:05:09 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<AlignRightIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BORDER_RADIUS_SHARP: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BorderRadiusSharpIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BORDER_RADIUS_ROUNDED: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BorderRadiusRoundedIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BORDER_RADIUS_CIRCLE: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BorderRadiusCircleIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOX_SHADOW_NONE: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoxShadowNoneIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOX_SHADOW_VARIANT1: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoxShadowVariant1Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOX_SHADOW_VARIANT2: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoxShadowVariant2Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOX_SHADOW_VARIANT3: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoxShadowVariant3Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOX_SHADOW_VARIANT4: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoxShadowVariant4Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
BOX_SHADOW_VARIANT5: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-08-05 11:16:26 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<BoxShadowVariant5Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
INCREASE_CONTROL_V2: (
|
|
|
|
|
props: IconProps & React.HTMLAttributes<HTMLDivElement>,
|
|
|
|
|
) => (
|
2021-10-04 15:34:37 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<IncreaseV2Icon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
QUESTION: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2021-10-04 15:34:37 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<QuestionIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2023-05-11 05:26:03 +00:00
|
|
|
PIN: (props: IconProps & React.HTMLAttributes<HTMLDivElement>) => (
|
2023-02-15 11:42:46 +00:00
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<PinIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-09-30 20:04:03 +00:00
|
|
|
};
|
2019-11-21 10:52:49 +00:00
|
|
|
|
|
|
|
|
export type ControlIconName = keyof typeof ControlIcons;
|