From 102811e6f15dc88eef6829afea5d88c5864ad28e Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Thu, 22 Jul 2021 06:14:19 -0700 Subject: [PATCH] WIP --- packages/components/src/input/backdrop.tsx | 23 ++ packages/components/src/input/component.tsx | 268 ++++++++++++++++++ packages/components/src/input/index.ts | 1 + .../components/src/input/reducer/actions.ts | 61 ++++ .../components/src/input/reducer/reducer.ts | 245 ++++++++++++++++ .../components/src/input/reducer/state.ts | 36 +++ .../components/src/input/stories/index.js | 13 + packages/components/src/input/styles.tsx | 234 +++++++++++++++ packages/components/src/input/types.ts | 30 ++ packages/components/src/input/utils.ts | 60 ++++ packages/components/src/ui/color-picker | 0 packages/components/src/utils/rtl.js | 2 +- 12 files changed, 972 insertions(+), 1 deletion(-) create mode 100644 packages/components/src/input/backdrop.tsx create mode 100644 packages/components/src/input/component.tsx create mode 100644 packages/components/src/input/index.ts create mode 100644 packages/components/src/input/reducer/actions.ts create mode 100644 packages/components/src/input/reducer/reducer.ts create mode 100644 packages/components/src/input/reducer/state.ts create mode 100644 packages/components/src/input/stories/index.js create mode 100644 packages/components/src/input/styles.tsx create mode 100644 packages/components/src/input/types.ts create mode 100644 packages/components/src/input/utils.ts create mode 100644 packages/components/src/ui/color-picker diff --git a/packages/components/src/input/backdrop.tsx b/packages/components/src/input/backdrop.tsx new file mode 100644 index 0000000000000..6b728306ced6e --- /dev/null +++ b/packages/components/src/input/backdrop.tsx @@ -0,0 +1,23 @@ +/** + * WordPress dependencies + */ +import { memo } from '@wordpress/element'; +/** + * Internal dependencies + */ +import { BackdropUI } from './styles'; + +function Backdrop( { disabled = false, isFocused = false } ) { + return ( +