@artsy/palette 40.0.0-canary.1408.31244.0 → 40.0.0-canary.1408.31249.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterInput.js","names":["React","_interopRequireWildcard","require","_CloseStrokeIcon","_interopRequireDefault","_SearchIcon","_LabeledInput","_Clickable","_FilterSelectContext","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","FilterInput","props","_useFilterSelectConte","useFilterSelectContext","query","setQuery","placeholder","ref","useRef","handleChange","event","value","handleClick","_ref$current","current","focus","createElement","LabeledInput","role","label","Clickable","display","onClick","style","pointerEvents","onChange","exports","displayName"],"sources":["../../../../src/elements/FilterSelect/Components/FilterInput.tsx"],"sourcesContent":["import * as React from \"react\"\nimport CloseStrokeIcon from \"@artsy/icons/CloseStrokeIcon\"\nimport SearchIcon from \"@artsy/icons/SearchIcon\"\nimport { InputProps } from \"../../Input\"\nimport { LabeledInput } from \"../../LabeledInput\"\nimport { Clickable } from \"../../Clickable\"\nimport { useRef } from \"react\"\nimport { useFilterSelectContext } from \"./FilterSelectContext\"\n\nexport type FilterInputProps = InputProps\n\nexport const FilterInput: React.FC<React.PropsWithChildren<InputProps>> = (props) => {\n const { query, setQuery, placeholder } = useFilterSelectContext()\n const ref = useRef<HTMLInputElement | null>(null)\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setQuery(event.target.value)\n }\n\n const handleClick = () => {\n setQuery(\"\")\n ref.current?.focus()\n }\n\n return (\n
|
|
1
|
+
{"version":3,"file":"FilterInput.js","names":["React","_interopRequireWildcard","require","_CloseStrokeIcon","_interopRequireDefault","_SearchIcon","_LabeledInput","_Clickable","_FilterSelectContext","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","FilterInput","props","_useFilterSelectConte","useFilterSelectContext","query","setQuery","placeholder","ref","useRef","handleChange","event","value","handleClick","_ref$current","current","focus","createElement","LabeledInput","role","label","Clickable","display","onClick","style","pointerEvents","onChange","exports","displayName"],"sources":["../../../../src/elements/FilterSelect/Components/FilterInput.tsx"],"sourcesContent":["import * as React from \"react\"\nimport CloseStrokeIcon from \"@artsy/icons/CloseStrokeIcon\"\nimport SearchIcon from \"@artsy/icons/SearchIcon\"\nimport { InputProps } from \"../../Input\"\nimport { LabeledInput } from \"../../LabeledInput\"\nimport { Clickable } from \"../../Clickable\"\nimport { useRef } from \"react\"\nimport { useFilterSelectContext } from \"./FilterSelectContext\"\n\nexport type FilterInputProps = InputProps\n\nexport const FilterInput: React.FC<React.PropsWithChildren<InputProps>> = (\n props\n) => {\n const { query, setQuery, placeholder } = useFilterSelectContext()\n const ref = useRef<HTMLInputElement | null>(null)\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setQuery(event.target.value)\n }\n\n const handleClick = () => {\n setQuery(\"\")\n ref.current?.focus()\n }\n\n return (\n <LabeledInput\n ref={ref}\n role=\"search\"\n label={\n query !== \"\" ? (\n // Active state\n <Clickable\n display=\"flex\"\n onClick={handleClick}\n aria-label=\"Clear search input\"\n >\n <CloseStrokeIcon />\n </Clickable>\n ) : (\n // Resting state\n <SearchIcon style={{ pointerEvents: \"none\" }} />\n )\n }\n onChange={handleChange}\n value={query}\n placeholder={placeholder}\n {...props}\n />\n )\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF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yD,aAAA,CAACnD,aAAA,CAAAoD,YAAY,EAAA1B,QAAA;IACXgB,GAAG,EAAEA,GAAI;IACTW,IAAI,EAAC,QAAQ;IACbC,KAAK,EACHf,KAAK,KAAK,EAAE;IAAA;IACV;IACA7C,KAAA,CAAAyD,aAAA,CAAClD,UAAA,CAAAsD,SAAS;MACRC,OAAO,EAAC,MAAM;MACdC,OAAO,EAAEV,WAAY;MACrB,cAAW;IAAoB,gBAE/BrD,KAAA,CAAAyD,aAAA,CAACtD,gBAAA,CAAAQ,OAAe,OAAG,CACT;IAAA;IAEZ;IACAX,KAAA,CAAAyD,aAAA,CAACpD,WAAA,CAAAM,OAAU;MAACqD,KAAK,EAAE;QAAEC,aAAa,EAAE;MAAO;IAAE,EAEhD;IACDC,QAAQ,EAAEhB,YAAa;IACvBE,KAAK,EAAEP,KAAM;IACbE,WAAW,EAAEA;EAAY,GACrBL,KAAK,EACT;AAEN,CAAC;AAAAyB,OAAA,CAAA1B,WAAA,GAAAA,WAAA;AAxCYA,WAA0D,CAAA2B,WAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/palette",
|
|
3
|
-
"version": "40.0.0-canary.1408.
|
|
3
|
+
"version": "40.0.0-canary.1408.31249.0",
|
|
4
4
|
"description": "Design system library for react components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -189,5 +189,5 @@
|
|
|
189
189
|
"url": "http://localhost"
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
"gitHead": "
|
|
192
|
+
"gitHead": "7599458425887c23621510ead8bce0d517a6c5e5"
|
|
193
193
|
}
|