Drop more traces of popovers

This commit is contained in:
Mark Eibes 2022-04-25 18:03:45 +02:00
parent ff8b3b5e12
commit 813237a248
3 changed files with 1 additions and 15 deletions

View File

@ -5,7 +5,6 @@ You can edit this file as you like.
{ name = "ry-blocks"
, dependencies =
[ "aff"
, "aff-promise"
, "arrays"
, "colors"
, "console"
@ -26,7 +25,6 @@ You can edit this file as you like.
, "heterogeneous"
, "integers"
, "interpolate"
, "lists"
, "literals"
, "maybe"
, "newtype"
@ -36,7 +34,6 @@ You can edit this file as you like.
, "partial"
, "prelude"
, "profunctor-lenses"
, "psci-support"
, "random"
, "react-basic"
, "react-basic-dom"
@ -45,8 +42,6 @@ You can edit this file as you like.
, "react-testing-library"
, "record"
, "record-extra"
, "routing"
, "routing-duplex"
, "spec"
, "spec-discovery"
, "strings"
@ -61,7 +56,6 @@ You can edit this file as you like.
, "web-dom"
, "web-events"
, "web-html"
, "web-uievents"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]

View File

@ -128,12 +128,7 @@ input = do
$ Input.component
</>
{ type: if hidePassword then HTMLInput.Password else HTMLInput.Text
, trailing:
Block.tooltip
</>
{ target: passwordIcon </> { hidePassword, modifyHidePassword }
, theTip: R.text if hidePassword then "Show Password" else "Hide Password"
}
, trailing: passwordIcon </> { hidePassword, modifyHidePassword }
, value: password
, onChange: handler targetValue (traverse_ setPassword)
, label: nes (Proxy ∷ _ "Password")

View File

@ -35,7 +35,6 @@ import Data.Newtype (un)
import Data.String as String
import Data.String.NonEmpty (NonEmptyString)
import Data.Traversable (traverse)
import Effect.Uncurried (mkEffectFn1)
import Effect.Unsafe (unsafePerformEffect)
import Foreign.Object (Object)
import Foreign.Object as Object
@ -761,7 +760,6 @@ sortableArray { label, addLabel, defaultValue, editor } =
} <-
Dnd.useSortable { id: props.id }
showMenu /\ setShowMenu <- Hooks.useState' false
referenceElement /\ setReferenceElement <- Hooks.useState' nullRef
let
style =
R.css
@ -843,7 +841,6 @@ sortableArray { label, addLabel, defaultValue, editor } =
{ right: E.str "calc(var(--s-1) + var(--s-1) + var(--s2) + var(--s-3))"
}
, onClick: handler_ (setShowMenu (not showMenu))
, ref: unsafeCoerce $ mkEffectFn1 setReferenceElement
}
menuIcon = Block.icon </> { icon: Icons.ellipsis, size: E.str "var(--s1)", colour: E.str colour.text }
menuButton = if props.readOnly then empty else R.div' </* menuButtonAttrs /> [ menuIcon ]