diff --git a/public/svg-icons/ColorPickerIcon.svg b/public/svg-icons/ColorPickerIcon.svg new file mode 100644 index 000000000..4ea0671d3 --- /dev/null +++ b/public/svg-icons/ColorPickerIcon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Icons/ColorPickerIcon.tsx b/src/components/Icons/ColorPickerIcon.tsx new file mode 100644 index 000000000..fe5a7db34 --- /dev/null +++ b/src/components/Icons/ColorPickerIcon.tsx @@ -0,0 +1,13 @@ +/* eslint-disable */ +import React from 'react' + +const ColorPickerIcon: React.FC> = (props) => ( + + + +) + +export default ColorPickerIcon diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx index 03df72858..9ce887425 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx @@ -19,6 +19,7 @@ import { colors } from '~/utils' import { CreateCustomNodeAttribute } from './CustomAttributesStep' import MediaOptions from './MediaOptions' import { convertAttributes, parsedObjProps, parseJson } from './utils' +import ColorPickerIcon from '~/components/Icons/ColorPickerIcon' const defaultValues = { type: '', @@ -473,7 +474,6 @@ export const Editor = ({ Select Parent - { @@ -483,23 +483,32 @@ export const Editor = ({ options={parentOptions} selectedValue={resolvedParentValue()} /> + {displayParentError && A parent type must be selected} + Type name - + + + + + + + + @@ -510,18 +519,25 @@ export const Editor = ({ Name - + + + + + + + + @@ -685,3 +701,25 @@ const HeaderText = styled(Text)` text-align: left; color: ${colors.white}; ` + +const ColorPickerIconWrapper = styled.span` + width: 36px; + height: 36px; + border-radius: 6px; + margin-left: 12px; + color: ${colors.colorPickerThing}; + background: ${colors.THING}; + display: flex; + justify-content: center; + align-items: center; +` + +const InputIconWrapper = styled(Flex)` + justify-content: space-between; + align-items: center; + flex-direction: row; +` + +const InputWrapper = styled(Flex)` + width: 320px; +` diff --git a/src/utils/colors/index.tsx b/src/utils/colors/index.tsx index 11eb9eb4c..2864808b5 100644 --- a/src/utils/colors/index.tsx +++ b/src/utils/colors/index.tsx @@ -5,6 +5,7 @@ export const colors = { bluePressState: 'rgb(57, 97, 220)', addAttributeBtn: 'rgba(107, 122, 141, 0.25)', blueTextAccent: 'rgb(130, 180, 255)', + colorPickerThing: 'rgba(255, 158, 239, 1)', body: 'rgb(21, 30, 39)', boostBg1: 'rgb(32, 63, 62)', budgetExplanationModalBg: 'rgb(21, 28, 35)',