@feathery/react 2.12.0 → 2.12.2
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.
- package/dist/cjs/elements/fields/AddressLine1Field/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/ButtonGroupField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/CheckboxField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/ColorPickerField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DropdownField/tests/test-utils.d.ts +0 -2
- package/dist/cjs/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DropdownMultiField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/MatrixField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/PasswordField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/PhoneField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/PinInputField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/RatingField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/SliderField/tests/test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/shared/tests/field-test-utils.d.ts +0 -1
- package/dist/cjs/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
- package/dist/cjs/{fthry_FormControl.CD7ZX9HS.js → fthry_FormControl.C6Rjgaho.js} +1 -1
- package/dist/cjs/{fthry_InlineTooltip.CoBn0AOC.js → fthry_InlineTooltip.7d1XAj6X.js} +2 -2
- package/dist/cjs/{fthry_Overlay.CshBlW3v.js → fthry_Overlay.Bw-JWkvN.js} +1 -1
- package/dist/cjs/{fthry_PaymentMethodField.ClmgrMDW.js → fthry_PaymentMethodField.DFPieFTd.js} +4 -4
- package/dist/cjs/{fthry_Placeholder.CL_PBAhS.js → fthry_Placeholder.DExePn4A.js} +1 -1
- package/dist/cjs/{fthry_ShowEyeIcon.DQYOkuGq.js → fthry_ShowEyeIcon.UMZgA8E5.js} +1 -1
- package/dist/cjs/fthry_floating-ui.utils.D2KLOgYj.js +155 -0
- package/dist/cjs/{fthry_index.CpIBnF75.js → fthry_index.B6Z5Lnk8.js} +1 -1
- package/dist/cjs/{fthry_index.CpHzsH9n.js → fthry_index.BnwtRb9Y.js} +63 -90
- package/dist/cjs/{fthry_index.CcgrLEuS.js → fthry_index.BsqXL16P.js} +5 -5
- package/dist/cjs/{fthry_index.C8jtezTq.js → fthry_index.Bz0SR10h.js} +2 -2
- package/dist/cjs/{fthry_index.CVGTkuBu.js → fthry_index.C1oeAVTE.js} +5 -5
- package/dist/cjs/{fthry_index.DM58Cupo.js → fthry_index.CJZrrJii.js} +1 -1
- package/dist/cjs/{fthry_index.DBr9A2ZJ.js → fthry_index.C_3RykNd.js} +1 -1
- package/dist/cjs/{fthry_index.x3WPDwFM.js → fthry_index.Cd5vLcwa.js} +1 -1
- package/dist/cjs/{fthry_index.B8m8NcYS.js → fthry_index.CioaVxCu.js} +1 -1
- package/dist/cjs/{fthry_index.D94gkYbC.js → fthry_index.D1qaLv6Z.js} +8 -8
- package/dist/cjs/{fthry_index.Ce9wiHSK.js → fthry_index.DE7MeZLB.js} +5 -5
- package/dist/cjs/{fthry_index.BpPVWOqt.js → fthry_index.DMvOdp_W.js} +4 -4
- package/dist/cjs/{fthry_index.BrzbrcQa.js → fthry_index.DX-1RJ2S.js} +6 -6
- package/dist/cjs/{fthry_index.iaUi_vwz.js → fthry_index.DZF8XXGF.js} +4 -4
- package/dist/cjs/{fthry_index.BMq3dBRB.js → fthry_index.Di_2sd1H.js} +489 -613
- package/dist/cjs/{fthry_index.CX0W0jE1.js → fthry_index.KdnS_mBc.js} +2 -2
- package/dist/cjs/{fthry_index.R9WKq_P8.js → fthry_index.NNL4lQSw.js} +1 -1
- package/dist/cjs/{fthry_index.CuICsq3u.js → fthry_index.RgU7Oxrf.js} +266 -953
- package/dist/cjs/{fthry_index.CdGAa2gf.js → fthry_index.S5WoB9-i.js} +4 -4
- package/dist/cjs/{fthry_index.e1NDYANz.js → fthry_index.YNi32Ez7.js} +6 -6
- package/dist/cjs/{fthry_index.CxZygKnY.js → fthry_index.vmA_xfxy.js} +71 -205
- package/dist/cjs/{fthry_index.CRJbToBF.js → fthry_index.wQoLwNSA.js} +3 -3
- package/dist/cjs/{fthry_index.CmHODiIC.js → fthry_index.xtJFp2c_.js} +3 -3
- package/dist/cjs/{fthry_input.xxDrXTUh.js → fthry_input.DWFkBuAl.js} +1 -1
- package/dist/cjs/fthry_objectWithoutPropertiesLoose.BeCY0BVl.js +32 -0
- package/dist/cjs/{fthry_script.rT4Hk6hO.js → fthry_script.BVLKs7Gs.js} +1 -1
- package/dist/cjs/{fthry_styles.CBznbkq1.js → fthry_styles.B-tC_Abq.js} +1 -1
- package/dist/cjs/{fthry_useElementSize.BtewtYuf.js → fthry_useElementSize.BepGSP1Z.js} +1 -1
- package/dist/cjs/{fthry_useSalesforceSync.CuD01OZB.js → fthry_useSalesforceSync.DuaHbK7s.js} +1 -1
- package/dist/cjs/{fthry_webfontloader.BpYY6eaS.js → fthry_webfontloader.D1tv1rM2.js} +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/error.d.ts +5 -0
- package/dist/cjs/utils/error.d.ts.map +1 -1
- package/dist/cjs/utils/featheryClient/index.d.ts +20 -12
- package/dist/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/cjs/utils/featheryClient/integrationClient.d.ts +8 -2
- package/dist/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/cjs/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/cjs/utils/formContext.d.ts +1 -2
- package/dist/cjs/utils/formContext.d.ts.map +1 -1
- package/dist/cjs/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/cjs/utils/internalState.d.ts +12 -1
- package/dist/cjs/utils/internalState.d.ts.map +1 -1
- package/dist/esm/elements/fields/AddressLine1Field/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/ButtonGroupField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/CheckboxField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/ColorPickerField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/DropdownField/tests/test-utils.d.ts +0 -2
- package/dist/esm/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/DropdownMultiField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/MatrixField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/PasswordField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/PhoneField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/PinInputField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/RatingField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/SliderField/tests/test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/shared/tests/field-test-utils.d.ts +0 -1
- package/dist/esm/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
- package/dist/esm/{fthry_FormControl.CJgP5gkl.js → fthry_FormControl.D8Kuyg4Y.js} +1 -1
- package/dist/esm/{fthry_InlineTooltip.C6FcOG7t.js → fthry_InlineTooltip.DLMOu2tO.js} +2 -2
- package/dist/esm/{fthry_Overlay.OaYtZbBy.js → fthry_Overlay.BaulbPVG.js} +1 -1
- package/dist/esm/{fthry_PaymentMethodField.w3gN7Laz.js → fthry_PaymentMethodField.E2VJPyju.js} +4 -4
- package/dist/esm/{fthry_Placeholder.B8o3b6LD.js → fthry_Placeholder.CY1XAzRf.js} +1 -1
- package/dist/esm/{fthry_ShowEyeIcon.CTL96Xla.js → fthry_ShowEyeIcon.CCRFpPxr.js} +1 -1
- package/dist/esm/fthry_floating-ui.utils.tNaL8PGX.js +136 -0
- package/dist/esm/{fthry_index.D2sLtI7z.js → fthry_index.2Gc_lB8n.js} +488 -613
- package/dist/esm/{fthry_index.DfQXHyGI.js → fthry_index.6qFATni4.js} +214 -901
- package/dist/esm/{fthry_index._VpRor3C.js → fthry_index.7vZjIPEz.js} +4 -4
- package/dist/esm/{fthry_index.yOjuSCdP.js → fthry_index.B5ePXkSN.js} +6 -6
- package/dist/esm/{fthry_index.DVcP5-xw.js → fthry_index.BBB2dAwJ.js} +3 -3
- package/dist/esm/{fthry_index.q1Cc80ox.js → fthry_index.BU4BxoWO.js} +2 -2
- package/dist/esm/{fthry_index.f0EL1oG0.js → fthry_index.BeT6gsM_.js} +6 -6
- package/dist/esm/{fthry_index.B3p8f_0T.js → fthry_index.BgIsKSTD.js} +3 -3
- package/dist/esm/{fthry_index.DjBNWso3.js → fthry_index.C90mmtNU.js} +4 -4
- package/dist/esm/{fthry_index.DhAebwSP.js → fthry_index.Ca-06RMU.js} +1 -1
- package/dist/esm/{fthry_index.BrukVpyc.js → fthry_index.Citw-wko.js} +1 -1
- package/dist/esm/{fthry_index.Bwx-PVUc.js → fthry_index.CugnxSkX.js} +2 -29
- package/dist/esm/{fthry_index.CX_yIpjx.js → fthry_index.DIZWok9O.js} +5 -5
- package/dist/esm/{fthry_index.W81Z3_36.js → fthry_index.DbMs4N3L.js} +2 -2
- package/dist/esm/{fthry_index.BG0CKa54.js → fthry_index.DeT3UyJj.js} +1 -1
- package/dist/esm/{fthry_index.Dh6l3Gzh.js → fthry_index.DjW847uR.js} +1 -1
- package/dist/esm/{fthry_index.BmTsB6Yu.js → fthry_index.Ds7JOYLz.js} +4 -4
- package/dist/esm/{fthry_index.BJfTO9uE.js → fthry_index.DsroTnQH.js} +5 -5
- package/dist/esm/{fthry_index.rA0-tPwD.js → fthry_index.Dy33g5mc.js} +8 -8
- package/dist/esm/{fthry_index.xPB4gauQ.js → fthry_index.T_eziOjU.js} +1 -1
- package/dist/esm/{fthry_index._Vy4-Wu1.js → fthry_index.nmBpjSD2.js} +1 -1
- package/dist/esm/{fthry_index.D5EZxrPq.js → fthry_index.wAyXRBo5.js} +27 -161
- package/dist/esm/{fthry_index.xmk6gHHa.js → fthry_index.xfj1t0cY.js} +5 -5
- package/dist/esm/{fthry_input.IXRyP1Bj.js → fthry_input.Csm0akqb.js} +1 -1
- package/dist/esm/fthry_objectWithoutPropertiesLoose.BBpbdDOs.js +29 -0
- package/dist/esm/{fthry_script.BM2vGrj6.js → fthry_script.CTK4wksM.js} +1 -1
- package/dist/esm/{fthry_styles.DfbJMfa4.js → fthry_styles.BsiM2KXa.js} +1 -1
- package/dist/esm/{fthry_useElementSize.9TQixaBM.js → fthry_useElementSize.BVooPdxW.js} +1 -1
- package/dist/esm/{fthry_useSalesforceSync.kfFiE0MN.js → fthry_useSalesforceSync.DwvbAGUy.js} +1 -1
- package/dist/esm/{fthry_webfontloader.Bg-Ggiji.js → fthry_webfontloader.oZvuZxan.js} +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/error.d.ts +5 -0
- package/dist/esm/utils/error.d.ts.map +1 -1
- package/dist/esm/utils/featheryClient/index.d.ts +20 -12
- package/dist/esm/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/esm/utils/featheryClient/integrationClient.d.ts +8 -2
- package/dist/esm/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/esm/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/esm/utils/formContext.d.ts +1 -2
- package/dist/esm/utils/formContext.d.ts.map +1 -1
- package/dist/esm/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/esm/utils/internalState.d.ts +12 -1
- package/dist/esm/utils/internalState.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/utils/error.d.ts +5 -0
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts +20 -12
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/utils/featheryClient/integrationClient.d.ts +8 -2
- package/dist/utils/featheryClient/integrationClient.d.ts.map +1 -1
- package/dist/utils/featheryClient/utils.d.ts.map +1 -1
- package/dist/utils/formContext.d.ts +1 -2
- package/dist/utils/formContext.d.ts.map +1 -1
- package/dist/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +12 -1
- package/dist/utils/internalState.d.ts.map +1 -1
- package/package.json +1 -2
- package/umd/{277.94ae8bf6190836d1dceb.js → 277.eceeb3ccb6328228b829.js} +1 -1
- package/umd/{466.e3456c8b3407ad04ba56.js → 466.2b6f52440bf8a6ee4f4d.js} +1 -1
- package/umd/509.f3c5235d7877c09fa946.js +2 -0
- package/umd/{509.f9d0245d6c94d15722a0.js.LICENSE.txt → 509.f3c5235d7877c09fa946.js.LICENSE.txt} +0 -5
- package/umd/529.be48502b696e9179c151.js +1 -0
- package/umd/{598.ca92da6595afad37b511.js → 598.5c0785560cad57f12159.js} +2 -2
- package/umd/{664.42541009d1fcb121cc49.js → 664.cce2aa2291d3323521b2.js} +1 -1
- package/umd/{94.825cd88111c75098af1f.js → 94.3c0a220601820412e21e.js} +1 -1
- package/umd/{AddressField.3523efd23175117d47a5.js → AddressField.a7ec587f13a326e233de.js} +1 -1
- package/umd/{ButtonGroupField.33cf9c939c8e82cc6c83.js → ButtonGroupField.8a9cf493f8fb36ce3e85.js} +1 -1
- package/umd/{CheckboxField.76c36941e86a62ec518d.js → CheckboxField.c4971d72024558868b02.js} +1 -1
- package/umd/{CheckboxGroupField.b15705b46268e1142782.js → CheckboxGroupField.e5319cd7f814f9b626d7.js} +1 -1
- package/umd/ColorPickerField.38edc699a89e4266e489.js +1 -0
- package/umd/{CustomField.a5b2965922f2d170b9b5.js → CustomField.bf00bb9bdcd732c13171.js} +1 -1
- package/umd/{DateSelectorField.00f321e0b1972feb9d69.js → DateSelectorField.c193445e11fe4694b07a.js} +1 -1
- package/umd/{DropdownField.856b041871278f98e687.js → DropdownField.7081f67b0a39c49f1f3f.js} +1 -1
- package/umd/{DropdownMultiField.898572b300ad673a38c9.js → DropdownMultiField.d2dc345e7bd0e32e76a7.js} +1 -1
- package/umd/{FileUploadField.ea0067dd62b0454b7c2e.js → FileUploadField.f51a675776b2947e79fa.js} +1 -1
- package/umd/{MatrixField.f8624f3e59b21e04f368.js → MatrixField.007d30b45d438c773db7.js} +1 -1
- package/umd/{PasswordField.1358356d6fbc6880f12a.js → PasswordField.2147c784135a9369040c.js} +1 -1
- package/umd/{PaymentMethodField.9a8e934f7450eb141217.js → PaymentMethodField.a84c467c428712681821.js} +1 -1
- package/umd/{PhoneField.f52b5de44614b445feeb.js → PhoneField.d43a22b1a4d92c618614.js} +1 -1
- package/umd/{PinInputField.b1aee0ef9d3c9f9a1933.js → PinInputField.0f9ca456b79a9cdf2506.js} +1 -1
- package/umd/{QRScanner.3c22391de30dba001f13.js → QRScanner.5865f88b4a09f5e78c5b.js} +1 -1
- package/umd/{RadioButtonGroupField.38d62523106149c48f2e.js → RadioButtonGroupField.7d81efb2ddc169916443.js} +1 -1
- package/umd/{RatingField.eeeb0ac499c308c120ba.js → RatingField.104fa779291cd91ca8bc.js} +1 -1
- package/umd/{SignatureField.1b502b1edb19e4af3b64.js → SignatureField.2cd57db4b52690a9650b.js} +1 -1
- package/umd/{SliderField.a5ab58e4b89fa67d6ac6.js → SliderField.b99f5928f7c1eaa08c3d.js} +1 -1
- package/umd/{TextArea.f566845d458d4c00e0e7.js → TextArea.0b440106b5f5a341ed74.js} +1 -1
- package/umd/{TextField.5a5296fe3ea60c4459f2.js → TextField.9238b4371b974d4defd4.js} +1 -1
- package/umd/index.js +1 -1
- package/umd/509.f9d0245d6c94d15722a0.js +0 -2
- package/umd/529.2bfdaee9e2bdc6d6c340.js +0 -1
- package/umd/ColorPickerField.f6740bb7c4c20a520db5.js +0 -1
- /package/umd/{598.ca92da6595afad37b511.js.LICENSE.txt → 598.5c0785560cad57f12159.js.LICENSE.txt} +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./fthry_index.
|
|
3
|
+
var index$1 = require('./fthry_index.Di_2sd1H.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var InlineTooltip = require('./fthry_InlineTooltip.
|
|
6
|
-
var Placeholder$2 = require('./fthry_Placeholder.
|
|
7
|
-
var useSalesforceSync = require('./fthry_useSalesforceSync.
|
|
8
|
-
var Overlay = require('./fthry_Overlay.
|
|
5
|
+
var InlineTooltip = require('./fthry_InlineTooltip.7d1XAj6X.js');
|
|
6
|
+
var Placeholder$2 = require('./fthry_Placeholder.DExePn4A.js');
|
|
7
|
+
var useSalesforceSync = require('./fthry_useSalesforceSync.DuaHbK7s.js');
|
|
8
|
+
var Overlay = require('./fthry_Overlay.Bw-JWkvN.js');
|
|
9
|
+
var objectWithoutPropertiesLoose = require('./fthry_objectWithoutPropertiesLoose.BeCY0BVl.js');
|
|
9
10
|
var ReactDOM = require('react-dom');
|
|
11
|
+
var floatingUi_utils = require('./fthry_floating-ui.utils.D2KLOgYj.js');
|
|
10
12
|
require('react/jsx-runtime');
|
|
11
13
|
require('react-dom/client');
|
|
12
14
|
require('jszip');
|
|
@@ -111,7 +113,9 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
111
113
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
112
114
|
if (Object(_i) !== _i) return;
|
|
113
115
|
_n = !1;
|
|
114
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
116
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
117
|
+
;
|
|
118
|
+
}
|
|
115
119
|
} catch (err) {
|
|
116
120
|
_d = true, _e = err;
|
|
117
121
|
} finally {
|
|
@@ -127,7 +131,9 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
127
131
|
|
|
128
132
|
function _arrayLikeToArray(arr, len) {
|
|
129
133
|
if (len == null || len > arr.length) len = arr.length;
|
|
130
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
134
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
135
|
+
arr2[i] = arr[i];
|
|
136
|
+
}
|
|
131
137
|
return arr2;
|
|
132
138
|
}
|
|
133
139
|
|
|
@@ -148,22 +154,9 @@ function _slicedToArray(arr, i) {
|
|
|
148
154
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
149
155
|
}
|
|
150
156
|
|
|
151
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
152
|
-
if (source == null) return {};
|
|
153
|
-
var target = {};
|
|
154
|
-
var sourceKeys = Object.keys(source);
|
|
155
|
-
var key, i;
|
|
156
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
157
|
-
key = sourceKeys[i];
|
|
158
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
159
|
-
target[key] = source[key];
|
|
160
|
-
}
|
|
161
|
-
return target;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
157
|
function _objectWithoutProperties(source, excluded) {
|
|
165
158
|
if (source == null) return {};
|
|
166
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
159
|
+
var target = objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(source, excluded);
|
|
167
160
|
var key, i;
|
|
168
161
|
if (Object.getOwnPropertySymbols) {
|
|
169
162
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -244,21 +237,6 @@ function useStateManager(_ref) {
|
|
|
244
237
|
});
|
|
245
238
|
}
|
|
246
239
|
|
|
247
|
-
function _extends() {
|
|
248
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
249
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
250
|
-
var source = arguments[i];
|
|
251
|
-
for (var key in source) {
|
|
252
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
253
|
-
target[key] = source[key];
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
return target;
|
|
258
|
-
};
|
|
259
|
-
return _extends.apply(this, arguments);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
240
|
function _classCallCheck(instance, Constructor) {
|
|
263
241
|
if (!(instance instanceof Constructor)) {
|
|
264
242
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -374,175 +352,7 @@ function _toConsumableArray(arr) {
|
|
|
374
352
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
375
353
|
}
|
|
376
354
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
Based off glamor's StyleSheet, thanks Sunil ❤️
|
|
380
|
-
|
|
381
|
-
high performance StyleSheet for css-in-js systems
|
|
382
|
-
|
|
383
|
-
- uses multiple style tags behind the scenes for millions of rules
|
|
384
|
-
- uses `insertRule` for appending in production for *much* faster performance
|
|
385
|
-
|
|
386
|
-
// usage
|
|
387
|
-
|
|
388
|
-
import { StyleSheet } from '@emotion/sheet'
|
|
389
|
-
|
|
390
|
-
let styleSheet = new StyleSheet({ key: '', container: document.head })
|
|
391
|
-
|
|
392
|
-
styleSheet.insert('#box { border: 1px solid red; }')
|
|
393
|
-
- appends a css rule into the stylesheet
|
|
394
|
-
|
|
395
|
-
styleSheet.flush()
|
|
396
|
-
- empties the stylesheet of all its contents
|
|
397
|
-
|
|
398
|
-
*/
|
|
399
|
-
// $FlowFixMe
|
|
400
|
-
function sheetForTag(tag) {
|
|
401
|
-
if (tag.sheet) {
|
|
402
|
-
// $FlowFixMe
|
|
403
|
-
return tag.sheet;
|
|
404
|
-
} // this weirdness brought to you by firefox
|
|
405
|
-
|
|
406
|
-
/* istanbul ignore next */
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
410
|
-
if (document.styleSheets[i].ownerNode === tag) {
|
|
411
|
-
// $FlowFixMe
|
|
412
|
-
return document.styleSheets[i];
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
function createStyleElement(options) {
|
|
418
|
-
var tag = document.createElement('style');
|
|
419
|
-
tag.setAttribute('data-emotion', options.key);
|
|
420
|
-
|
|
421
|
-
if (options.nonce !== undefined) {
|
|
422
|
-
tag.setAttribute('nonce', options.nonce);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
tag.appendChild(document.createTextNode(''));
|
|
426
|
-
tag.setAttribute('data-s', '');
|
|
427
|
-
return tag;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
var StyleSheet = /*#__PURE__*/function () {
|
|
431
|
-
// Using Node instead of HTMLElement since container may be a ShadowRoot
|
|
432
|
-
function StyleSheet(options) {
|
|
433
|
-
var _this = this;
|
|
434
|
-
|
|
435
|
-
this._insertTag = function (tag) {
|
|
436
|
-
var before;
|
|
437
|
-
|
|
438
|
-
if (_this.tags.length === 0) {
|
|
439
|
-
if (_this.insertionPoint) {
|
|
440
|
-
before = _this.insertionPoint.nextSibling;
|
|
441
|
-
} else if (_this.prepend) {
|
|
442
|
-
before = _this.container.firstChild;
|
|
443
|
-
} else {
|
|
444
|
-
before = _this.before;
|
|
445
|
-
}
|
|
446
|
-
} else {
|
|
447
|
-
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
_this.container.insertBefore(tag, before);
|
|
451
|
-
|
|
452
|
-
_this.tags.push(tag);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
|
|
456
|
-
this.tags = [];
|
|
457
|
-
this.ctr = 0;
|
|
458
|
-
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
459
|
-
|
|
460
|
-
this.key = options.key;
|
|
461
|
-
this.container = options.container;
|
|
462
|
-
this.prepend = options.prepend;
|
|
463
|
-
this.insertionPoint = options.insertionPoint;
|
|
464
|
-
this.before = null;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
var _proto = StyleSheet.prototype;
|
|
468
|
-
|
|
469
|
-
_proto.hydrate = function hydrate(nodes) {
|
|
470
|
-
nodes.forEach(this._insertTag);
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
_proto.insert = function insert(rule) {
|
|
474
|
-
// the max length is how many rules we have per style tag, it's 65000 in speedy mode
|
|
475
|
-
// it's 1 in dev because we insert source maps that map a single rule to a location
|
|
476
|
-
// and you can only have one source map per style tag
|
|
477
|
-
if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
|
|
478
|
-
this._insertTag(createStyleElement(this));
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
var tag = this.tags[this.tags.length - 1];
|
|
482
|
-
|
|
483
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
484
|
-
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
485
|
-
|
|
486
|
-
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
487
|
-
// this would only cause problem in speedy mode
|
|
488
|
-
// but we don't want enabling speedy to affect the observable behavior
|
|
489
|
-
// so we report this error at all times
|
|
490
|
-
console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
|
|
491
|
-
}
|
|
492
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
if (this.isSpeedy) {
|
|
496
|
-
var sheet = sheetForTag(tag);
|
|
497
|
-
|
|
498
|
-
try {
|
|
499
|
-
// this is the ultrafast version, works across browsers
|
|
500
|
-
// the big drawback is that the css won't be editable in devtools
|
|
501
|
-
sheet.insertRule(rule, sheet.cssRules.length);
|
|
502
|
-
} catch (e) {
|
|
503
|
-
if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
504
|
-
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
} else {
|
|
508
|
-
tag.appendChild(document.createTextNode(rule));
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
this.ctr++;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
_proto.flush = function flush() {
|
|
515
|
-
// $FlowFixMe
|
|
516
|
-
this.tags.forEach(function (tag) {
|
|
517
|
-
return tag.parentNode && tag.parentNode.removeChild(tag);
|
|
518
|
-
});
|
|
519
|
-
this.tags = [];
|
|
520
|
-
this.ctr = 0;
|
|
521
|
-
|
|
522
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
523
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
return StyleSheet;
|
|
528
|
-
}();
|
|
529
|
-
|
|
530
|
-
var weakMemoize = function weakMemoize(func) {
|
|
531
|
-
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
532
|
-
var cache = new WeakMap();
|
|
533
|
-
return function (arg) {
|
|
534
|
-
if (cache.has(arg)) {
|
|
535
|
-
// $FlowFixMe
|
|
536
|
-
return cache.get(arg);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
var ret = func(arg);
|
|
540
|
-
cache.set(arg, ret);
|
|
541
|
-
return ret;
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
function memoize$1(fn) {
|
|
355
|
+
function memoize(fn) {
|
|
546
356
|
var cache = Object.create(null);
|
|
547
357
|
return function (arg) {
|
|
548
358
|
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
@@ -550,6 +360,8 @@ function memoize$1(fn) {
|
|
|
550
360
|
};
|
|
551
361
|
}
|
|
552
362
|
|
|
363
|
+
var isBrowser$3 = typeof document !== 'undefined';
|
|
364
|
+
|
|
553
365
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
554
366
|
var previous = 0;
|
|
555
367
|
var character = 0;
|
|
@@ -674,114 +486,6 @@ var removeLabel = function removeLabel(element) {
|
|
|
674
486
|
}
|
|
675
487
|
}
|
|
676
488
|
};
|
|
677
|
-
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
678
|
-
|
|
679
|
-
var isIgnoringComment = function isIgnoringComment(element) {
|
|
680
|
-
return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
684
|
-
return function (element, index, children) {
|
|
685
|
-
if (element.type !== 'rule' || cache.compat) return;
|
|
686
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
687
|
-
|
|
688
|
-
if (unsafePseudoClasses) {
|
|
689
|
-
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
|
690
|
-
//
|
|
691
|
-
// considering this input:
|
|
692
|
-
// .a {
|
|
693
|
-
// .b /* comm */ {}
|
|
694
|
-
// color: hotpink;
|
|
695
|
-
// }
|
|
696
|
-
// we get output corresponding to this:
|
|
697
|
-
// .a {
|
|
698
|
-
// & {
|
|
699
|
-
// /* comm */
|
|
700
|
-
// color: hotpink;
|
|
701
|
-
// }
|
|
702
|
-
// .b {}
|
|
703
|
-
// }
|
|
704
|
-
|
|
705
|
-
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
|
706
|
-
children;
|
|
707
|
-
|
|
708
|
-
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
709
|
-
var node = commentContainer[i];
|
|
710
|
-
|
|
711
|
-
if (node.line < element.line) {
|
|
712
|
-
break;
|
|
713
|
-
} // it is quite weird but comments are *usually* put at `column: element.column - 1`
|
|
714
|
-
// so we seek *from the end* for the node that is earlier than the rule's `element` and check that
|
|
715
|
-
// this will also match inputs like this:
|
|
716
|
-
// .a {
|
|
717
|
-
// /* comm */
|
|
718
|
-
// .b {}
|
|
719
|
-
// }
|
|
720
|
-
//
|
|
721
|
-
// but that is fine
|
|
722
|
-
//
|
|
723
|
-
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
|
724
|
-
// .a {
|
|
725
|
-
// .b { /* comm */ }
|
|
726
|
-
// }
|
|
727
|
-
// with such inputs we wouldn't have to search for the comment at all
|
|
728
|
-
// TODO: consider changing this comment placement in the next major version
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
if (node.column < element.column) {
|
|
732
|
-
if (isIgnoringComment(node)) {
|
|
733
|
-
return;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
break;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
741
|
-
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
var isImportRule = function isImportRule(element) {
|
|
748
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
752
|
-
for (var i = index - 1; i >= 0; i--) {
|
|
753
|
-
if (!isImportRule(children[i])) {
|
|
754
|
-
return true;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
return false;
|
|
759
|
-
}; // use this to remove incorrect elements from further processing
|
|
760
|
-
// so they don't get handed to the `sheet` (or anything else)
|
|
761
|
-
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
var nullifyElement = function nullifyElement(element) {
|
|
765
|
-
element.type = '';
|
|
766
|
-
element.value = '';
|
|
767
|
-
element["return"] = '';
|
|
768
|
-
element.children = '';
|
|
769
|
-
element.props = '';
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
773
|
-
if (!isImportRule(element)) {
|
|
774
|
-
return;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
if (element.parent) {
|
|
778
|
-
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
779
|
-
nullifyElement(element);
|
|
780
|
-
} else if (isPrependedWithRegularRules(index, children)) {
|
|
781
|
-
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
782
|
-
nullifyElement(element);
|
|
783
|
-
}
|
|
784
|
-
};
|
|
785
489
|
|
|
786
490
|
/* eslint-disable no-fallthrough */
|
|
787
491
|
|
|
@@ -995,9 +699,22 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
995
699
|
}
|
|
996
700
|
};
|
|
997
701
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
702
|
+
/* import type { StylisPlugin } from './types' */
|
|
703
|
+
|
|
704
|
+
/*
|
|
705
|
+
export type Options = {
|
|
706
|
+
nonce?: string,
|
|
707
|
+
stylisPlugins?: StylisPlugin[],
|
|
708
|
+
key: string,
|
|
709
|
+
container?: HTMLElement,
|
|
710
|
+
speedy?: boolean,
|
|
711
|
+
prepend?: boolean,
|
|
712
|
+
insertionPoint?: HTMLElement
|
|
713
|
+
}
|
|
714
|
+
*/
|
|
715
|
+
|
|
716
|
+
var getServerStylisCache = isBrowser$3 ? undefined : index$1.weakMemoize(function () {
|
|
717
|
+
return memoize(function () {
|
|
1001
718
|
var cache = {};
|
|
1002
719
|
return function (name) {
|
|
1003
720
|
return cache[name];
|
|
@@ -1006,20 +723,22 @@ var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
|
|
|
1006
723
|
});
|
|
1007
724
|
var defaultStylisPlugins = [prefixer];
|
|
1008
725
|
|
|
1009
|
-
var createCache = function
|
|
726
|
+
var createCache = function
|
|
727
|
+
/*: EmotionCache */
|
|
728
|
+
createCache(options
|
|
729
|
+
/*: Options */
|
|
730
|
+
) {
|
|
1010
731
|
var key = options.key;
|
|
1011
732
|
|
|
1012
|
-
if (
|
|
1013
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
if (isBrowser$4 && key === 'css') {
|
|
733
|
+
if (isBrowser$3 && key === 'css') {
|
|
1017
734
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
1018
735
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
1019
736
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
1020
737
|
// that creating a cache works inside of render of a React component
|
|
1021
738
|
|
|
1022
|
-
Array.prototype.forEach.call(ssrStyles, function (node
|
|
739
|
+
Array.prototype.forEach.call(ssrStyles, function (node
|
|
740
|
+
/*: HTMLStyleElement */
|
|
741
|
+
) {
|
|
1023
742
|
// we want to only move elements which have a space in the data-emotion attribute value
|
|
1024
743
|
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
|
1025
744
|
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
|
@@ -1031,6 +750,7 @@ var createCache = function createCache(options) {
|
|
|
1031
750
|
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
1032
751
|
return;
|
|
1033
752
|
}
|
|
753
|
+
|
|
1034
754
|
document.head.appendChild(node);
|
|
1035
755
|
node.setAttribute('data-s', '');
|
|
1036
756
|
});
|
|
@@ -1038,23 +758,20 @@ var createCache = function createCache(options) {
|
|
|
1038
758
|
|
|
1039
759
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
1040
760
|
|
|
1041
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1042
|
-
// $FlowFixMe
|
|
1043
|
-
if (/[^a-z-]/.test(key)) {
|
|
1044
|
-
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
761
|
var inserted = {};
|
|
1049
762
|
var container;
|
|
763
|
+
/* : Node */
|
|
764
|
+
|
|
1050
765
|
var nodesToHydrate = [];
|
|
1051
766
|
|
|
1052
|
-
if (isBrowser$
|
|
767
|
+
if (isBrowser$3) {
|
|
1053
768
|
container = options.container || document.head;
|
|
1054
769
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
1055
770
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1056
|
-
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
|
1057
|
-
|
|
771
|
+
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
|
772
|
+
/*: HTMLStyleElement */
|
|
773
|
+
) {
|
|
774
|
+
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
1058
775
|
|
|
1059
776
|
for (var i = 1; i < attrib.length; i++) {
|
|
1060
777
|
inserted[attrib[i]] = true;
|
|
@@ -1065,31 +782,19 @@ var createCache = function createCache(options) {
|
|
|
1065
782
|
}
|
|
1066
783
|
|
|
1067
784
|
var _insert;
|
|
785
|
+
/*: (
|
|
786
|
+
selector: string,
|
|
787
|
+
serialized: SerializedStyles,
|
|
788
|
+
sheet: StyleSheet,
|
|
789
|
+
shouldCache: boolean
|
|
790
|
+
) => string | void */
|
|
1068
791
|
|
|
1069
|
-
var omnipresentPlugins = [compat, removeLabel];
|
|
1070
|
-
|
|
1071
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1072
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
1073
|
-
get compat() {
|
|
1074
|
-
return cache.compat;
|
|
1075
|
-
}
|
|
1076
792
|
|
|
1077
|
-
|
|
1078
|
-
}
|
|
793
|
+
var omnipresentPlugins = [compat, removeLabel];
|
|
1079
794
|
|
|
1080
|
-
if (isBrowser$
|
|
795
|
+
if (isBrowser$3) {
|
|
1081
796
|
var currentSheet;
|
|
1082
|
-
var finalizingPlugins = [index$1.stringify,
|
|
1083
|
-
if (!element.root) {
|
|
1084
|
-
if (element["return"]) {
|
|
1085
|
-
currentSheet.insert(element["return"]);
|
|
1086
|
-
} else if (element.value && element.type !== index$1.COMMENT) {
|
|
1087
|
-
// insert empty rule in non-production environments
|
|
1088
|
-
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
1089
|
-
currentSheet.insert(element.value + "{}");
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
} : index$1.rulesheet(function (rule) {
|
|
797
|
+
var finalizingPlugins = [index$1.stringify, index$1.rulesheet(function (rule) {
|
|
1093
798
|
currentSheet.insert(rule);
|
|
1094
799
|
})];
|
|
1095
800
|
var serializer = index$1.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -1098,17 +803,19 @@ var createCache = function createCache(options) {
|
|
|
1098
803
|
return index$1.serialize(index$1.compile(styles), serializer);
|
|
1099
804
|
};
|
|
1100
805
|
|
|
1101
|
-
_insert = function
|
|
806
|
+
_insert = function
|
|
807
|
+
/*: void */
|
|
808
|
+
insert(selector
|
|
809
|
+
/*: string */
|
|
810
|
+
, serialized
|
|
811
|
+
/*: SerializedStyles */
|
|
812
|
+
, sheet
|
|
813
|
+
/*: StyleSheet */
|
|
814
|
+
, shouldCache
|
|
815
|
+
/*: boolean */
|
|
816
|
+
) {
|
|
1102
817
|
currentSheet = sheet;
|
|
1103
818
|
|
|
1104
|
-
if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
|
|
1105
|
-
currentSheet = {
|
|
1106
|
-
insert: function insert(rule) {
|
|
1107
|
-
sheet.insert(rule + serialized.map);
|
|
1108
|
-
}
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
819
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
1113
820
|
|
|
1114
821
|
if (shouldCache) {
|
|
@@ -1122,12 +829,17 @@ var createCache = function createCache(options) {
|
|
|
1122
829
|
|
|
1123
830
|
var _stylis = function _stylis(styles) {
|
|
1124
831
|
return index$1.serialize(index$1.compile(styles), _serializer);
|
|
1125
|
-
};
|
|
1126
|
-
|
|
832
|
+
};
|
|
1127
833
|
|
|
1128
834
|
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
1129
835
|
|
|
1130
|
-
var getRules = function
|
|
836
|
+
var getRules = function
|
|
837
|
+
/*: string */
|
|
838
|
+
getRules(selector
|
|
839
|
+
/*: string */
|
|
840
|
+
, serialized
|
|
841
|
+
/*: SerializedStyles */
|
|
842
|
+
) {
|
|
1131
843
|
var name = serialized.name;
|
|
1132
844
|
|
|
1133
845
|
if (serverStylisCache[name] === undefined) {
|
|
@@ -1137,7 +849,17 @@ var createCache = function createCache(options) {
|
|
|
1137
849
|
return serverStylisCache[name];
|
|
1138
850
|
};
|
|
1139
851
|
|
|
1140
|
-
_insert = function
|
|
852
|
+
_insert = function
|
|
853
|
+
/*: string | void */
|
|
854
|
+
_insert(selector
|
|
855
|
+
/*: string */
|
|
856
|
+
, serialized
|
|
857
|
+
/*: SerializedStyles */
|
|
858
|
+
, sheet
|
|
859
|
+
/*: StyleSheet */
|
|
860
|
+
, shouldCache
|
|
861
|
+
/*: boolean */
|
|
862
|
+
) {
|
|
1141
863
|
var name = serialized.name;
|
|
1142
864
|
var rules = getRules(selector, serialized);
|
|
1143
865
|
|
|
@@ -1149,12 +871,6 @@ var createCache = function createCache(options) {
|
|
|
1149
871
|
cache.inserted[name] = true;
|
|
1150
872
|
}
|
|
1151
873
|
|
|
1152
|
-
if ( // using === development instead of !== production
|
|
1153
|
-
// because if people do ssr in tests, the source maps showing up would be annoying
|
|
1154
|
-
process.env.NODE_ENV === 'development' && serialized.map !== undefined) {
|
|
1155
|
-
return rules + serialized.map;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
874
|
return rules;
|
|
1159
875
|
} else {
|
|
1160
876
|
// in compat mode, we put the styles on the inserted cache so
|
|
@@ -1173,9 +889,11 @@ var createCache = function createCache(options) {
|
|
|
1173
889
|
};
|
|
1174
890
|
}
|
|
1175
891
|
|
|
1176
|
-
var cache
|
|
892
|
+
var cache
|
|
893
|
+
/*: EmotionCache */
|
|
894
|
+
= {
|
|
1177
895
|
key: key,
|
|
1178
|
-
sheet: new StyleSheet({
|
|
896
|
+
sheet: new index$1.StyleSheet({
|
|
1179
897
|
key: key,
|
|
1180
898
|
container: container,
|
|
1181
899
|
nonce: options.nonce,
|
|
@@ -1192,7 +910,8 @@ var createCache = function createCache(options) {
|
|
|
1192
910
|
return cache;
|
|
1193
911
|
};
|
|
1194
912
|
|
|
1195
|
-
var isBrowser$
|
|
913
|
+
var isBrowser$2 = typeof document !== 'undefined';
|
|
914
|
+
|
|
1196
915
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1197
916
|
var rawClassName = '';
|
|
1198
917
|
classNames.split(' ').forEach(function (className) {
|
|
@@ -1216,7 +935,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
|
1216
935
|
// in node since emotion-server relies on whether a style is in
|
|
1217
936
|
// the registered cache to know whether a style is global or not
|
|
1218
937
|
// also, note that this check will be dead code eliminated in the browser
|
|
1219
|
-
isBrowser$
|
|
938
|
+
isBrowser$2 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
|
1220
939
|
cache.registered[className] = serialized.styles;
|
|
1221
940
|
}
|
|
1222
941
|
};
|
|
@@ -1231,14 +950,14 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
1231
950
|
do {
|
|
1232
951
|
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
1233
952
|
|
|
1234
|
-
if (!isBrowser$
|
|
953
|
+
if (!isBrowser$2 && maybeStyles !== undefined) {
|
|
1235
954
|
stylesForSSR += maybeStyles;
|
|
1236
955
|
}
|
|
1237
956
|
|
|
1238
957
|
current = current.next;
|
|
1239
958
|
} while (current !== undefined);
|
|
1240
959
|
|
|
1241
|
-
if (!isBrowser$
|
|
960
|
+
if (!isBrowser$2 && stylesForSSR.length !== 0) {
|
|
1242
961
|
return stylesForSSR;
|
|
1243
962
|
}
|
|
1244
963
|
}
|
|
@@ -1348,16 +1067,6 @@ var unitlessKeys = {
|
|
|
1348
1067
|
strokeWidth: 1
|
|
1349
1068
|
};
|
|
1350
1069
|
|
|
1351
|
-
function memoize(fn) {
|
|
1352
|
-
var cache = Object.create(null);
|
|
1353
|
-
return function (arg) {
|
|
1354
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
1355
|
-
return cache[arg];
|
|
1356
|
-
};
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
|
|
1360
|
-
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
|
1361
1070
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1362
1071
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1363
1072
|
|
|
@@ -1398,47 +1107,16 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
1398
1107
|
return value;
|
|
1399
1108
|
};
|
|
1400
1109
|
|
|
1401
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1402
|
-
var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
1403
|
-
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
1404
|
-
var oldProcessStyleValue = processStyleValue;
|
|
1405
|
-
var msPattern = /^-ms-/;
|
|
1406
|
-
var hyphenPattern = /-(.)/g;
|
|
1407
|
-
var hyphenatedCache = {};
|
|
1408
|
-
|
|
1409
|
-
processStyleValue = function processStyleValue(key, value) {
|
|
1410
|
-
if (key === 'content') {
|
|
1411
|
-
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
1412
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
var processed = oldProcessStyleValue(key, value);
|
|
1417
|
-
|
|
1418
|
-
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
1419
|
-
hyphenatedCache[key] = true;
|
|
1420
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
|
1421
|
-
return _char.toUpperCase();
|
|
1422
|
-
}) + "?");
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
return processed;
|
|
1426
|
-
};
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
1430
|
-
|
|
1431
1110
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1432
1111
|
if (interpolation == null) {
|
|
1433
1112
|
return '';
|
|
1434
1113
|
}
|
|
1435
1114
|
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
}
|
|
1115
|
+
var componentSelector = interpolation;
|
|
1116
|
+
|
|
1117
|
+
if (componentSelector.__emotion_styles !== undefined) {
|
|
1440
1118
|
|
|
1441
|
-
return
|
|
1119
|
+
return componentSelector;
|
|
1442
1120
|
}
|
|
1443
1121
|
|
|
1444
1122
|
switch (typeof interpolation) {
|
|
@@ -1449,17 +1127,21 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1449
1127
|
|
|
1450
1128
|
case 'object':
|
|
1451
1129
|
{
|
|
1452
|
-
|
|
1130
|
+
var keyframes = interpolation;
|
|
1131
|
+
|
|
1132
|
+
if (keyframes.anim === 1) {
|
|
1453
1133
|
cursor = {
|
|
1454
|
-
name:
|
|
1455
|
-
styles:
|
|
1134
|
+
name: keyframes.name,
|
|
1135
|
+
styles: keyframes.styles,
|
|
1456
1136
|
next: cursor
|
|
1457
1137
|
};
|
|
1458
|
-
return
|
|
1138
|
+
return keyframes.name;
|
|
1459
1139
|
}
|
|
1460
1140
|
|
|
1461
|
-
|
|
1462
|
-
|
|
1141
|
+
var serializedStyles = interpolation;
|
|
1142
|
+
|
|
1143
|
+
if (serializedStyles.styles !== undefined) {
|
|
1144
|
+
var next = serializedStyles.next;
|
|
1463
1145
|
|
|
1464
1146
|
if (next !== undefined) {
|
|
1465
1147
|
// not the most efficient thing ever but this is a pretty rare case
|
|
@@ -1474,11 +1156,7 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1474
1156
|
}
|
|
1475
1157
|
}
|
|
1476
1158
|
|
|
1477
|
-
var styles =
|
|
1478
|
-
|
|
1479
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
|
|
1480
|
-
styles += interpolation.map;
|
|
1481
|
-
}
|
|
1159
|
+
var styles = serializedStyles.styles + ";";
|
|
1482
1160
|
|
|
1483
1161
|
return styles;
|
|
1484
1162
|
}
|
|
@@ -1493,37 +1171,18 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1493
1171
|
var result = interpolation(mergedProps);
|
|
1494
1172
|
cursor = previousCursor;
|
|
1495
1173
|
return handleInterpolation(mergedProps, registered, result);
|
|
1496
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
|
1497
|
-
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
|
1498
1174
|
}
|
|
1499
1175
|
|
|
1500
1176
|
break;
|
|
1501
1177
|
}
|
|
1502
|
-
|
|
1503
|
-
case 'string':
|
|
1504
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1505
|
-
var matched = [];
|
|
1506
|
-
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
1507
|
-
var fakeVarName = "animation" + matched.length;
|
|
1508
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
1509
|
-
return "${" + fakeVarName + "}";
|
|
1510
|
-
});
|
|
1511
|
-
|
|
1512
|
-
if (matched.length) {
|
|
1513
|
-
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
break;
|
|
1518
1178
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
1519
1179
|
|
|
1520
1180
|
|
|
1521
|
-
|
|
1522
|
-
return interpolation;
|
|
1523
|
-
}
|
|
1181
|
+
var asString = interpolation;
|
|
1524
1182
|
|
|
1525
|
-
|
|
1526
|
-
|
|
1183
|
+
{
|
|
1184
|
+
return asString;
|
|
1185
|
+
}
|
|
1527
1186
|
}
|
|
1528
1187
|
|
|
1529
1188
|
function createStringFromObject(mergedProps, registered, obj) {
|
|
@@ -1534,44 +1193,38 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1534
1193
|
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
1535
1194
|
}
|
|
1536
1195
|
} else {
|
|
1537
|
-
for (var
|
|
1538
|
-
var value = obj[
|
|
1196
|
+
for (var key in obj) {
|
|
1197
|
+
var value = obj[key];
|
|
1539
1198
|
|
|
1540
1199
|
if (typeof value !== 'object') {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
string += processStyleName(
|
|
1200
|
+
var asString = value;
|
|
1201
|
+
|
|
1202
|
+
if (isProcessableValue(asString)) {
|
|
1203
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
1545
1204
|
}
|
|
1546
1205
|
} else {
|
|
1547
|
-
if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
|
|
1548
|
-
throw new Error(noComponentSelectorMessage);
|
|
1549
|
-
}
|
|
1550
1206
|
|
|
1551
|
-
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null
|
|
1207
|
+
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null)) {
|
|
1552
1208
|
for (var _i = 0; _i < value.length; _i++) {
|
|
1553
1209
|
if (isProcessableValue(value[_i])) {
|
|
1554
|
-
string += processStyleName(
|
|
1210
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
1555
1211
|
}
|
|
1556
1212
|
}
|
|
1557
1213
|
} else {
|
|
1558
1214
|
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
1559
1215
|
|
|
1560
|
-
switch (
|
|
1216
|
+
switch (key) {
|
|
1561
1217
|
case 'animation':
|
|
1562
1218
|
case 'animationName':
|
|
1563
1219
|
{
|
|
1564
|
-
string += processStyleName(
|
|
1220
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
1565
1221
|
break;
|
|
1566
1222
|
}
|
|
1567
1223
|
|
|
1568
1224
|
default:
|
|
1569
1225
|
{
|
|
1570
|
-
if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
|
|
1571
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
1572
|
-
}
|
|
1573
1226
|
|
|
1574
|
-
string +=
|
|
1227
|
+
string += key + "{" + interpolated + "}";
|
|
1575
1228
|
}
|
|
1576
1229
|
}
|
|
1577
1230
|
}
|
|
@@ -1583,16 +1236,11 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1583
1236
|
}
|
|
1584
1237
|
|
|
1585
1238
|
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
1586
|
-
var sourceMapPattern;
|
|
1587
|
-
|
|
1588
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1589
|
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
1590
|
-
} // this is the cursor for keyframes
|
|
1591
1239
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
1592
1240
|
|
|
1593
1241
|
|
|
1594
1242
|
var cursor;
|
|
1595
|
-
|
|
1243
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
1596
1244
|
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
|
1597
1245
|
return args[0];
|
|
1598
1246
|
}
|
|
@@ -1606,11 +1254,9 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1606
1254
|
stringMode = false;
|
|
1607
1255
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
1608
1256
|
} else {
|
|
1609
|
-
|
|
1610
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1611
|
-
}
|
|
1257
|
+
var asTemplateStringsArr = strings;
|
|
1612
1258
|
|
|
1613
|
-
styles +=
|
|
1259
|
+
styles += asTemplateStringsArr[0];
|
|
1614
1260
|
} // we start at 1 since we've already handled the first arg
|
|
1615
1261
|
|
|
1616
1262
|
|
|
@@ -1618,69 +1264,45 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1618
1264
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
1619
1265
|
|
|
1620
1266
|
if (stringMode) {
|
|
1621
|
-
|
|
1622
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1623
|
-
}
|
|
1267
|
+
var templateStringsArr = strings;
|
|
1624
1268
|
|
|
1625
|
-
styles +=
|
|
1269
|
+
styles += templateStringsArr[i];
|
|
1626
1270
|
}
|
|
1627
1271
|
}
|
|
1628
1272
|
|
|
1629
|
-
var sourceMap;
|
|
1630
|
-
|
|
1631
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1632
|
-
styles = styles.replace(sourceMapPattern, function (match) {
|
|
1633
|
-
sourceMap = match;
|
|
1634
|
-
return '';
|
|
1635
|
-
});
|
|
1636
|
-
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
1637
|
-
|
|
1638
1273
|
|
|
1639
1274
|
labelPattern.lastIndex = 0;
|
|
1640
1275
|
var identifierName = '';
|
|
1641
1276
|
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
|
1642
1277
|
|
|
1643
1278
|
while ((match = labelPattern.exec(styles)) !== null) {
|
|
1644
|
-
identifierName += '-' +
|
|
1645
|
-
match[1];
|
|
1279
|
+
identifierName += '-' + match[1];
|
|
1646
1280
|
}
|
|
1647
1281
|
|
|
1648
1282
|
var name = murmur2(styles) + identifierName;
|
|
1649
1283
|
|
|
1650
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1651
|
-
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
1652
|
-
return {
|
|
1653
|
-
name: name,
|
|
1654
|
-
styles: styles,
|
|
1655
|
-
map: sourceMap,
|
|
1656
|
-
next: cursor,
|
|
1657
|
-
toString: function toString() {
|
|
1658
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1659
|
-
}
|
|
1660
|
-
};
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
1284
|
return {
|
|
1664
1285
|
name: name,
|
|
1665
1286
|
styles: styles,
|
|
1666
1287
|
next: cursor
|
|
1667
1288
|
};
|
|
1668
|
-
}
|
|
1289
|
+
}
|
|
1669
1290
|
|
|
1670
|
-
var isBrowser$
|
|
1291
|
+
var isBrowser$1 = typeof document !== 'undefined';
|
|
1671
1292
|
|
|
1672
1293
|
var syncFallback = function syncFallback(create) {
|
|
1673
1294
|
return create();
|
|
1674
1295
|
};
|
|
1675
1296
|
|
|
1676
1297
|
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
|
1677
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$
|
|
1678
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect;
|
|
1298
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
1679
1299
|
|
|
1680
|
-
var isBrowser
|
|
1681
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
1300
|
+
var isBrowser = typeof document !== 'undefined';
|
|
1682
1301
|
|
|
1683
|
-
|
|
1302
|
+
/* import { type EmotionCache } from '@emotion/utils' */
|
|
1303
|
+
var EmotionCacheContext
|
|
1304
|
+
/*: React.Context<EmotionCache | null> */
|
|
1305
|
+
= /* #__PURE__ */React__namespace.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1684
1306
|
// because this module is primarily intended for the browser and node
|
|
1685
1307
|
// but it's also required in react native and similar environments sometimes
|
|
1686
1308
|
// and we could have a special build just for that
|
|
@@ -1690,24 +1312,37 @@ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
|
1690
1312
|
key: 'css'
|
|
1691
1313
|
}) : null);
|
|
1692
1314
|
|
|
1693
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1694
|
-
EmotionCacheContext.displayName = 'EmotionCacheContext';
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
1315
|
EmotionCacheContext.Provider;
|
|
1698
1316
|
|
|
1699
|
-
var withEmotionCache = function withEmotionCache
|
|
1700
|
-
|
|
1701
|
-
|
|
1317
|
+
var withEmotionCache = function withEmotionCache
|
|
1318
|
+
/* <Props, Ref: React.Ref<*>> */
|
|
1319
|
+
(func
|
|
1320
|
+
/*: (props: Props, cache: EmotionCache, ref: Ref) => React.Node */
|
|
1321
|
+
)
|
|
1322
|
+
/*: React.AbstractComponent<Props> */
|
|
1323
|
+
{
|
|
1324
|
+
return /*#__PURE__*/React.forwardRef(function (props
|
|
1325
|
+
/*: Props */
|
|
1326
|
+
, ref
|
|
1327
|
+
/*: Ref */
|
|
1328
|
+
) {
|
|
1702
1329
|
// the cache will never be null in the browser
|
|
1703
1330
|
var cache = React.useContext(EmotionCacheContext);
|
|
1704
1331
|
return func(props, cache, ref);
|
|
1705
1332
|
});
|
|
1706
1333
|
};
|
|
1707
1334
|
|
|
1708
|
-
if (!isBrowser
|
|
1709
|
-
withEmotionCache = function withEmotionCache
|
|
1710
|
-
|
|
1335
|
+
if (!isBrowser) {
|
|
1336
|
+
withEmotionCache = function withEmotionCache
|
|
1337
|
+
/* <Props> */
|
|
1338
|
+
(func
|
|
1339
|
+
/*: (props: Props, cache: EmotionCache) => React.Node */
|
|
1340
|
+
)
|
|
1341
|
+
/*: React.StatelessFunctionalComponent<Props> */
|
|
1342
|
+
{
|
|
1343
|
+
return function (props
|
|
1344
|
+
/*: Props */
|
|
1345
|
+
) {
|
|
1711
1346
|
var cache = React.useContext(EmotionCacheContext);
|
|
1712
1347
|
|
|
1713
1348
|
if (cache === null) {
|
|
@@ -1731,81 +1366,31 @@ if (!isBrowser$1) {
|
|
|
1731
1366
|
|
|
1732
1367
|
var ThemeContext = /* #__PURE__ */React__namespace.createContext({});
|
|
1733
1368
|
|
|
1734
|
-
|
|
1735
|
-
ThemeContext.displayName = 'EmotionThemeContext';
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
var getLastPart = function getLastPart(functionName) {
|
|
1739
|
-
// The match may be something like 'Object.createEmotionProps' or
|
|
1740
|
-
// 'Loader.prototype.render'
|
|
1741
|
-
var parts = functionName.split('.');
|
|
1742
|
-
return parts[parts.length - 1];
|
|
1743
|
-
};
|
|
1744
|
-
|
|
1745
|
-
var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
|
|
1746
|
-
// V8
|
|
1747
|
-
var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
|
|
1748
|
-
if (match) return getLastPart(match[1]); // Safari / Firefox
|
|
1749
|
-
|
|
1750
|
-
match = /^([A-Za-z0-9$.]+)@/.exec(line);
|
|
1751
|
-
if (match) return getLastPart(match[1]);
|
|
1752
|
-
return undefined;
|
|
1753
|
-
};
|
|
1754
|
-
|
|
1755
|
-
var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
|
|
1756
|
-
// identifiers, thus we only need to replace what is a valid character for JS,
|
|
1757
|
-
// but not for CSS.
|
|
1758
|
-
|
|
1759
|
-
var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
|
|
1760
|
-
return identifier.replace(/\$/g, '-');
|
|
1761
|
-
};
|
|
1762
|
-
|
|
1763
|
-
var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
|
|
1764
|
-
if (!stackTrace) return undefined;
|
|
1765
|
-
var lines = stackTrace.split('\n');
|
|
1766
|
-
|
|
1767
|
-
for (var i = 0; i < lines.length; i++) {
|
|
1768
|
-
var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
|
|
1769
|
-
|
|
1770
|
-
if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
|
|
1771
|
-
|
|
1772
|
-
if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
|
|
1773
|
-
// uppercase letter
|
|
1774
|
-
|
|
1775
|
-
if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
return undefined;
|
|
1779
|
-
};
|
|
1369
|
+
var hasOwn = {}.hasOwnProperty;
|
|
1780
1370
|
|
|
1781
1371
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
1782
|
-
var
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
}
|
|
1372
|
+
var createEmotionProps = function createEmotionProps(type
|
|
1373
|
+
/*: React.ElementType */
|
|
1374
|
+
, props
|
|
1375
|
+
/*: Object */
|
|
1376
|
+
) {
|
|
1788
1377
|
|
|
1789
|
-
var newProps
|
|
1378
|
+
var newProps
|
|
1379
|
+
/*: any */
|
|
1380
|
+
= {};
|
|
1790
1381
|
|
|
1791
1382
|
for (var key in props) {
|
|
1792
|
-
if (
|
|
1383
|
+
if (hasOwn.call(props, key)) {
|
|
1793
1384
|
newProps[key] = props[key];
|
|
1794
1385
|
}
|
|
1795
1386
|
}
|
|
1796
1387
|
|
|
1797
|
-
newProps[typePropName] = type; //
|
|
1798
|
-
// the label hasn't already been computed
|
|
1799
|
-
|
|
1800
|
-
if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
|
|
1801
|
-
var label = getLabelFromStackTrace(new Error().stack);
|
|
1802
|
-
if (label) newProps[labelPropName] = label;
|
|
1803
|
-
}
|
|
1388
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
1804
1389
|
|
|
1805
1390
|
return newProps;
|
|
1806
1391
|
};
|
|
1807
1392
|
|
|
1808
|
-
var Insertion
|
|
1393
|
+
var Insertion = function Insertion(_ref) {
|
|
1809
1394
|
var cache = _ref.cache,
|
|
1810
1395
|
serialized = _ref.serialized,
|
|
1811
1396
|
isStringTag = _ref.isStringTag;
|
|
@@ -1814,7 +1399,7 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
1814
1399
|
return insertStyles(cache, serialized, isStringTag);
|
|
1815
1400
|
});
|
|
1816
1401
|
|
|
1817
|
-
if (!isBrowser
|
|
1402
|
+
if (!isBrowser && rules !== undefined) {
|
|
1818
1403
|
var _ref2;
|
|
1819
1404
|
|
|
1820
1405
|
var serializedNames = serialized.name;
|
|
@@ -1833,7 +1418,9 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
1833
1418
|
return null;
|
|
1834
1419
|
};
|
|
1835
1420
|
|
|
1836
|
-
var Emotion = /* #__PURE__ */withEmotionCache(
|
|
1421
|
+
var Emotion = /* #__PURE__ */withEmotionCache(
|
|
1422
|
+
/* <any, any> */
|
|
1423
|
+
function (props, cache, ref) {
|
|
1837
1424
|
var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
|
|
1838
1425
|
// not passing the registered cache to serializeStyles because it would
|
|
1839
1426
|
// make certain babel optimisations not possible
|
|
@@ -1854,46 +1441,42 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
1854
1441
|
|
|
1855
1442
|
var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext));
|
|
1856
1443
|
|
|
1857
|
-
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
1858
|
-
var labelFromStack = props[labelPropName];
|
|
1859
|
-
|
|
1860
|
-
if (labelFromStack) {
|
|
1861
|
-
serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
1444
|
className += cache.key + "-" + serialized.name;
|
|
1866
1445
|
var newProps = {};
|
|
1867
1446
|
|
|
1868
1447
|
for (var key in props) {
|
|
1869
|
-
if (
|
|
1448
|
+
if (hasOwn.call(props, key) && key !== 'css' && key !== typePropName && (true )) {
|
|
1870
1449
|
newProps[key] = props[key];
|
|
1871
1450
|
}
|
|
1872
1451
|
}
|
|
1873
1452
|
|
|
1874
|
-
newProps.ref = ref;
|
|
1875
1453
|
newProps.className = className;
|
|
1876
|
-
|
|
1454
|
+
|
|
1455
|
+
if (ref) {
|
|
1456
|
+
newProps.ref = ref;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
|
|
1877
1460
|
cache: cache,
|
|
1878
1461
|
serialized: serialized,
|
|
1879
1462
|
isStringTag: typeof WrappedComponent === 'string'
|
|
1880
1463
|
}), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
|
|
1881
1464
|
});
|
|
1882
1465
|
|
|
1883
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1884
|
-
Emotion.displayName = 'EmotionCssPropInternal';
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
1466
|
var Emotion$1 = Emotion;
|
|
1888
1467
|
|
|
1889
|
-
var
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1468
|
+
var jsx
|
|
1469
|
+
/*: typeof React.createElement */
|
|
1470
|
+
= function jsx
|
|
1471
|
+
/*: typeof React.createElement */
|
|
1472
|
+
(type
|
|
1473
|
+
/*: React.ElementType */
|
|
1474
|
+
, props
|
|
1475
|
+
/*: Object */
|
|
1476
|
+
) {
|
|
1893
1477
|
var args = arguments;
|
|
1894
1478
|
|
|
1895
|
-
if (props == null || !
|
|
1896
|
-
// $FlowFixMe
|
|
1479
|
+
if (props == null || !hasOwn.call(props, 'css')) {
|
|
1897
1480
|
return React__namespace.createElement.apply(undefined, args);
|
|
1898
1481
|
}
|
|
1899
1482
|
|
|
@@ -1904,123 +1487,16 @@ var jsx = function jsx(type, props) {
|
|
|
1904
1487
|
|
|
1905
1488
|
for (var i = 2; i < argsLength; i++) {
|
|
1906
1489
|
createElementArgArray[i] = args[i];
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1490
|
+
}
|
|
1909
1491
|
|
|
1910
1492
|
return React__namespace.createElement.apply(null, createElementArgArray);
|
|
1911
1493
|
};
|
|
1912
1494
|
|
|
1913
|
-
|
|
1914
|
-
// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
|
|
1915
|
-
// initial client-side render from SSR, use place of hydrating tag
|
|
1916
|
-
|
|
1917
|
-
var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
1918
|
-
if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
|
|
1919
|
-
// probably using the custom createElement which
|
|
1920
|
-
// means it will be turned into a className prop
|
|
1921
|
-
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
1922
|
-
props.className || props.css)) {
|
|
1923
|
-
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
|
1924
|
-
warnedAboutCssPropForGlobal = true;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
var styles = props.styles;
|
|
1928
|
-
var serialized = serializeStyles([styles], undefined, React__namespace.useContext(ThemeContext));
|
|
1929
|
-
|
|
1930
|
-
if (!isBrowser$1) {
|
|
1931
|
-
var _ref;
|
|
1932
|
-
|
|
1933
|
-
var serializedNames = serialized.name;
|
|
1934
|
-
var serializedStyles = serialized.styles;
|
|
1935
|
-
var next = serialized.next;
|
|
1936
|
-
|
|
1937
|
-
while (next !== undefined) {
|
|
1938
|
-
serializedNames += ' ' + next.name;
|
|
1939
|
-
serializedStyles += next.styles;
|
|
1940
|
-
next = next.next;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
var shouldCache = cache.compat === true;
|
|
1944
|
-
var rules = cache.insert("", {
|
|
1945
|
-
name: serializedNames,
|
|
1946
|
-
styles: serializedStyles
|
|
1947
|
-
}, cache.sheet, shouldCache);
|
|
1948
|
-
|
|
1949
|
-
if (shouldCache) {
|
|
1950
|
-
return null;
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
return /*#__PURE__*/React__namespace.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
|
|
1954
|
-
__html: rules
|
|
1955
|
-
}, _ref.nonce = cache.sheet.nonce, _ref));
|
|
1956
|
-
} // yes, i know these hooks are used conditionally
|
|
1957
|
-
// but it is based on a constant that will never change at runtime
|
|
1958
|
-
// it's effectively like having two implementations and switching them out
|
|
1959
|
-
// so it's not actually breaking anything
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
var sheetRef = React__namespace.useRef();
|
|
1963
|
-
useInsertionEffectWithLayoutFallback(function () {
|
|
1964
|
-
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
1965
|
-
|
|
1966
|
-
var sheet = new cache.sheet.constructor({
|
|
1967
|
-
key: key,
|
|
1968
|
-
nonce: cache.sheet.nonce,
|
|
1969
|
-
container: cache.sheet.container,
|
|
1970
|
-
speedy: cache.sheet.isSpeedy
|
|
1971
|
-
});
|
|
1972
|
-
var rehydrating = false; // $FlowFixMe
|
|
1973
|
-
|
|
1974
|
-
var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
|
|
1975
|
-
|
|
1976
|
-
if (cache.sheet.tags.length) {
|
|
1977
|
-
sheet.before = cache.sheet.tags[0];
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
if (node !== null) {
|
|
1981
|
-
rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
|
|
1982
|
-
|
|
1983
|
-
node.setAttribute('data-emotion', key);
|
|
1984
|
-
sheet.hydrate([node]);
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
sheetRef.current = [sheet, rehydrating];
|
|
1988
|
-
return function () {
|
|
1989
|
-
sheet.flush();
|
|
1990
|
-
};
|
|
1991
|
-
}, [cache]);
|
|
1992
|
-
useInsertionEffectWithLayoutFallback(function () {
|
|
1993
|
-
var sheetRefCurrent = sheetRef.current;
|
|
1994
|
-
var sheet = sheetRefCurrent[0],
|
|
1995
|
-
rehydrating = sheetRefCurrent[1];
|
|
1996
|
-
|
|
1997
|
-
if (rehydrating) {
|
|
1998
|
-
sheetRefCurrent[1] = false;
|
|
1999
|
-
return;
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
if (serialized.next !== undefined) {
|
|
2003
|
-
// insert keyframes
|
|
2004
|
-
insertStyles(cache, serialized.next, true);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
if (sheet.tags.length) {
|
|
2008
|
-
// if this doesn't exist then it will be null so the style element will be appended
|
|
2009
|
-
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
2010
|
-
sheet.before = element;
|
|
2011
|
-
sheet.flush();
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
cache.insert("", serialized, sheet, false);
|
|
2015
|
-
}, [cache, serialized.name]);
|
|
2016
|
-
return null;
|
|
2017
|
-
});
|
|
2018
|
-
|
|
2019
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2020
|
-
Global.displayName = 'EmotionGlobal';
|
|
2021
|
-
}
|
|
1495
|
+
/* import type { Interpolation, SerializedStyles } from '@emotion/utils' */
|
|
2022
1496
|
|
|
2023
|
-
function css$2()
|
|
1497
|
+
function css$2()
|
|
1498
|
+
/*: SerializedStyles */
|
|
1499
|
+
{
|
|
2024
1500
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2025
1501
|
args[_key] = arguments[_key];
|
|
2026
1502
|
}
|
|
@@ -2028,10 +1504,20 @@ function css$2() {
|
|
|
2028
1504
|
return serializeStyles(args);
|
|
2029
1505
|
}
|
|
2030
1506
|
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
1507
|
+
/*
|
|
1508
|
+
type Keyframes = {|
|
|
1509
|
+
name: string,
|
|
1510
|
+
styles: string,
|
|
1511
|
+
anim: 1,
|
|
1512
|
+
toString: () => string
|
|
1513
|
+
|} & string
|
|
1514
|
+
*/
|
|
2034
1515
|
|
|
1516
|
+
var keyframes = function
|
|
1517
|
+
/*: Keyframes */
|
|
1518
|
+
keyframes() {
|
|
1519
|
+
var insertable = css$2.apply(void 0, arguments);
|
|
1520
|
+
var name = "animation-" + insertable.name;
|
|
2035
1521
|
return {
|
|
2036
1522
|
name: name,
|
|
2037
1523
|
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
@@ -2042,169 +1528,6 @@ var keyframes = function keyframes() {
|
|
|
2042
1528
|
};
|
|
2043
1529
|
};
|
|
2044
1530
|
|
|
2045
|
-
var classnames = function classnames(args) {
|
|
2046
|
-
var len = args.length;
|
|
2047
|
-
var i = 0;
|
|
2048
|
-
var cls = '';
|
|
2049
|
-
|
|
2050
|
-
for (; i < len; i++) {
|
|
2051
|
-
var arg = args[i];
|
|
2052
|
-
if (arg == null) continue;
|
|
2053
|
-
var toAdd = void 0;
|
|
2054
|
-
|
|
2055
|
-
switch (typeof arg) {
|
|
2056
|
-
case 'boolean':
|
|
2057
|
-
break;
|
|
2058
|
-
|
|
2059
|
-
case 'object':
|
|
2060
|
-
{
|
|
2061
|
-
if (Array.isArray(arg)) {
|
|
2062
|
-
toAdd = classnames(arg);
|
|
2063
|
-
} else {
|
|
2064
|
-
if (process.env.NODE_ENV !== 'production' && arg.styles !== undefined && arg.name !== undefined) {
|
|
2065
|
-
console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
toAdd = '';
|
|
2069
|
-
|
|
2070
|
-
for (var k in arg) {
|
|
2071
|
-
if (arg[k] && k) {
|
|
2072
|
-
toAdd && (toAdd += ' ');
|
|
2073
|
-
toAdd += k;
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
break;
|
|
2079
|
-
}
|
|
2080
|
-
|
|
2081
|
-
default:
|
|
2082
|
-
{
|
|
2083
|
-
toAdd = arg;
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
if (toAdd) {
|
|
2088
|
-
cls && (cls += ' ');
|
|
2089
|
-
cls += toAdd;
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
return cls;
|
|
2094
|
-
};
|
|
2095
|
-
|
|
2096
|
-
function merge(registered, css, className) {
|
|
2097
|
-
var registeredStyles = [];
|
|
2098
|
-
var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
2099
|
-
|
|
2100
|
-
if (registeredStyles.length < 2) {
|
|
2101
|
-
return className;
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
return rawClassName + css(registeredStyles);
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
var Insertion = function Insertion(_ref) {
|
|
2108
|
-
var cache = _ref.cache,
|
|
2109
|
-
serializedArr = _ref.serializedArr;
|
|
2110
|
-
var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
|
|
2111
|
-
var rules = '';
|
|
2112
|
-
|
|
2113
|
-
for (var i = 0; i < serializedArr.length; i++) {
|
|
2114
|
-
var res = insertStyles(cache, serializedArr[i], false);
|
|
2115
|
-
|
|
2116
|
-
if (!isBrowser$1 && res !== undefined) {
|
|
2117
|
-
rules += res;
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
if (!isBrowser$1) {
|
|
2122
|
-
return rules;
|
|
2123
|
-
}
|
|
2124
|
-
});
|
|
2125
|
-
|
|
2126
|
-
if (!isBrowser$1 && rules.length !== 0) {
|
|
2127
|
-
var _ref2;
|
|
2128
|
-
|
|
2129
|
-
return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
|
|
2130
|
-
return serialized.name;
|
|
2131
|
-
}).join(' '), _ref2.dangerouslySetInnerHTML = {
|
|
2132
|
-
__html: rules
|
|
2133
|
-
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
|
-
return null;
|
|
2137
|
-
};
|
|
2138
|
-
|
|
2139
|
-
var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
2140
|
-
var hasRendered = false;
|
|
2141
|
-
var serializedArr = [];
|
|
2142
|
-
|
|
2143
|
-
var css = function css() {
|
|
2144
|
-
if (hasRendered && process.env.NODE_ENV !== 'production') {
|
|
2145
|
-
throw new Error('css can only be used during render');
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2149
|
-
args[_key] = arguments[_key];
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
var serialized = serializeStyles(args, cache.registered);
|
|
2153
|
-
serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`
|
|
2154
|
-
|
|
2155
|
-
registerStyles(cache, serialized, false);
|
|
2156
|
-
return cache.key + "-" + serialized.name;
|
|
2157
|
-
};
|
|
2158
|
-
|
|
2159
|
-
var cx = function cx() {
|
|
2160
|
-
if (hasRendered && process.env.NODE_ENV !== 'production') {
|
|
2161
|
-
throw new Error('cx can only be used during render');
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
2165
|
-
args[_key2] = arguments[_key2];
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
return merge(cache.registered, css, classnames(args));
|
|
2169
|
-
};
|
|
2170
|
-
|
|
2171
|
-
var content = {
|
|
2172
|
-
css: css,
|
|
2173
|
-
cx: cx,
|
|
2174
|
-
theme: React__namespace.useContext(ThemeContext)
|
|
2175
|
-
};
|
|
2176
|
-
var ele = props.children(content);
|
|
2177
|
-
hasRendered = true;
|
|
2178
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
|
|
2179
|
-
cache: cache,
|
|
2180
|
-
serializedArr: serializedArr
|
|
2181
|
-
}), ele);
|
|
2182
|
-
});
|
|
2183
|
-
|
|
2184
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2185
|
-
ClassNames.displayName = 'EmotionClassNames';
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2189
|
-
var isBrowser = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
|
|
2190
|
-
|
|
2191
|
-
var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';
|
|
2192
|
-
|
|
2193
|
-
if (isBrowser && !isTestEnv) {
|
|
2194
|
-
// globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
|
|
2195
|
-
var globalContext = // $FlowIgnore
|
|
2196
|
-
typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
|
|
2197
|
-
: isBrowser ? window : global;
|
|
2198
|
-
var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
|
|
2199
|
-
|
|
2200
|
-
if (globalContext[globalKey]) {
|
|
2201
|
-
console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
globalContext[globalKey] = true;
|
|
2205
|
-
}
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
1531
|
function _taggedTemplateLiteral(strings, raw) {
|
|
2209
1532
|
if (!raw) {
|
|
2210
1533
|
raw = strings.slice(0);
|
|
@@ -2216,16 +1539,6 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
2216
1539
|
}));
|
|
2217
1540
|
}
|
|
2218
1541
|
|
|
2219
|
-
function rectToClientRect(rect) {
|
|
2220
|
-
return {
|
|
2221
|
-
...rect,
|
|
2222
|
-
top: rect.y,
|
|
2223
|
-
left: rect.x,
|
|
2224
|
-
right: rect.x + rect.width,
|
|
2225
|
-
bottom: rect.y + rect.height
|
|
2226
|
-
};
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
1542
|
function getWindow(node) {
|
|
2230
1543
|
var _node$ownerDocument;
|
|
2231
1544
|
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
@@ -2387,7 +1700,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
2387
1700
|
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
2388
1701
|
}
|
|
2389
1702
|
}
|
|
2390
|
-
return rectToClientRect({
|
|
1703
|
+
return floatingUi_utils.rectToClientRect({
|
|
2391
1704
|
width,
|
|
2392
1705
|
height,
|
|
2393
1706
|
x,
|
|
@@ -3100,7 +2413,7 @@ var Menu = function Menu(props) {
|
|
|
3100
2413
|
var children = props.children,
|
|
3101
2414
|
innerRef = props.innerRef,
|
|
3102
2415
|
innerProps = props.innerProps;
|
|
3103
|
-
return jsx("div", _extends({}, getStyleProps(props, 'menu', {
|
|
2416
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'menu', {
|
|
3104
2417
|
menu: true
|
|
3105
2418
|
}), {
|
|
3106
2419
|
ref: innerRef
|
|
@@ -3131,7 +2444,7 @@ var MenuList = function MenuList(props) {
|
|
|
3131
2444
|
innerProps = props.innerProps,
|
|
3132
2445
|
innerRef = props.innerRef,
|
|
3133
2446
|
isMulti = props.isMulti;
|
|
3134
|
-
return jsx("div", _extends({}, getStyleProps(props, 'menuList', {
|
|
2447
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'menuList', {
|
|
3135
2448
|
'menu-list': true,
|
|
3136
2449
|
'menu-list--is-multi': isMulti
|
|
3137
2450
|
}), {
|
|
@@ -3161,7 +2474,7 @@ var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
|
3161
2474
|
children = _ref6$children === void 0 ? 'No options' : _ref6$children,
|
|
3162
2475
|
innerProps = _ref6.innerProps,
|
|
3163
2476
|
restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
3164
|
-
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
2477
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
3165
2478
|
children: children,
|
|
3166
2479
|
innerProps: innerProps
|
|
3167
2480
|
}), 'noOptionsMessage', {
|
|
@@ -3174,7 +2487,7 @@ var LoadingMessage = function LoadingMessage(_ref7) {
|
|
|
3174
2487
|
children = _ref7$children === void 0 ? 'Loading...' : _ref7$children,
|
|
3175
2488
|
innerProps = _ref7.innerProps,
|
|
3176
2489
|
restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
3177
|
-
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
2490
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
3178
2491
|
children: children,
|
|
3179
2492
|
innerProps: innerProps
|
|
3180
2493
|
}), 'loadingMessage', {
|
|
@@ -3259,7 +2572,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
3259
2572
|
if (!appendTo && menuPosition !== 'fixed' || !computedPosition) return null;
|
|
3260
2573
|
|
|
3261
2574
|
// same wrapper element whether fixed or portalled
|
|
3262
|
-
var menuWrapper = jsx("div", _extends({
|
|
2575
|
+
var menuWrapper = jsx("div", objectWithoutPropertiesLoose._extends({
|
|
3263
2576
|
ref: setMenuPortalElement
|
|
3264
2577
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
3265
2578
|
offset: computedPosition.offset,
|
|
@@ -3293,7 +2606,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
3293
2606
|
innerProps = props.innerProps,
|
|
3294
2607
|
isDisabled = props.isDisabled,
|
|
3295
2608
|
isRtl = props.isRtl;
|
|
3296
|
-
return jsx("div", _extends({}, getStyleProps(props, 'container', {
|
|
2609
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'container', {
|
|
3297
2610
|
'--is-disabled': isDisabled,
|
|
3298
2611
|
'--is-rtl': isRtl
|
|
3299
2612
|
}), innerProps), children);
|
|
@@ -3325,7 +2638,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
3325
2638
|
innerProps = props.innerProps,
|
|
3326
2639
|
isMulti = props.isMulti,
|
|
3327
2640
|
hasValue = props.hasValue;
|
|
3328
|
-
return jsx("div", _extends({}, getStyleProps(props, 'valueContainer', {
|
|
2641
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'valueContainer', {
|
|
3329
2642
|
'value-container': true,
|
|
3330
2643
|
'value-container--is-multi': isMulti,
|
|
3331
2644
|
'value-container--has-value': hasValue
|
|
@@ -3347,7 +2660,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
|
|
3347
2660
|
var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
3348
2661
|
var children = props.children,
|
|
3349
2662
|
innerProps = props.innerProps;
|
|
3350
|
-
return jsx("div", _extends({}, getStyleProps(props, 'indicatorsContainer', {
|
|
2663
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'indicatorsContainer', {
|
|
3351
2664
|
indicators: true
|
|
3352
2665
|
}), innerProps), children);
|
|
3353
2666
|
};
|
|
@@ -3372,7 +2685,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
3372
2685
|
var Svg = function Svg(_ref) {
|
|
3373
2686
|
var size = _ref.size,
|
|
3374
2687
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3375
|
-
return jsx("svg", _extends({
|
|
2688
|
+
return jsx("svg", objectWithoutPropertiesLoose._extends({
|
|
3376
2689
|
height: size,
|
|
3377
2690
|
width: size,
|
|
3378
2691
|
viewBox: "0 0 20 20",
|
|
@@ -3382,14 +2695,14 @@ var Svg = function Svg(_ref) {
|
|
|
3382
2695
|
}, props));
|
|
3383
2696
|
};
|
|
3384
2697
|
var CrossIcon = function CrossIcon(props) {
|
|
3385
|
-
return jsx(Svg, _extends({
|
|
2698
|
+
return jsx(Svg, objectWithoutPropertiesLoose._extends({
|
|
3386
2699
|
size: 20
|
|
3387
2700
|
}, props), jsx("path", {
|
|
3388
2701
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
3389
2702
|
}));
|
|
3390
2703
|
};
|
|
3391
2704
|
var DownChevron = function DownChevron(props) {
|
|
3392
|
-
return jsx(Svg, _extends({
|
|
2705
|
+
return jsx(Svg, objectWithoutPropertiesLoose._extends({
|
|
3393
2706
|
size: 20
|
|
3394
2707
|
}, props), jsx("path", {
|
|
3395
2708
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -3421,7 +2734,7 @@ var dropdownIndicatorCSS = baseCSS;
|
|
|
3421
2734
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
3422
2735
|
var children = props.children,
|
|
3423
2736
|
innerProps = props.innerProps;
|
|
3424
|
-
return jsx("div", _extends({}, getStyleProps(props, 'dropdownIndicator', {
|
|
2737
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'dropdownIndicator', {
|
|
3425
2738
|
indicator: true,
|
|
3426
2739
|
'dropdown-indicator': true
|
|
3427
2740
|
}), innerProps), children || jsx(DownChevron, null));
|
|
@@ -3430,7 +2743,7 @@ var clearIndicatorCSS = baseCSS;
|
|
|
3430
2743
|
var ClearIndicator = function ClearIndicator(props) {
|
|
3431
2744
|
var children = props.children,
|
|
3432
2745
|
innerProps = props.innerProps;
|
|
3433
|
-
return jsx("div", _extends({}, getStyleProps(props, 'clearIndicator', {
|
|
2746
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'clearIndicator', {
|
|
3434
2747
|
indicator: true,
|
|
3435
2748
|
'clear-indicator': true
|
|
3436
2749
|
}), innerProps), children || jsx(CrossIcon, null));
|
|
@@ -3457,7 +2770,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4, unstyled) {
|
|
|
3457
2770
|
};
|
|
3458
2771
|
var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
3459
2772
|
var innerProps = props.innerProps;
|
|
3460
|
-
return jsx("span", _extends({}, innerProps, getStyleProps(props, 'indicatorSeparator', {
|
|
2773
|
+
return jsx("span", objectWithoutPropertiesLoose._extends({}, innerProps, getStyleProps(props, 'indicatorSeparator', {
|
|
3461
2774
|
'indicator-separator': true
|
|
3462
2775
|
})));
|
|
3463
2776
|
};
|
|
@@ -3510,7 +2823,7 @@ var LoadingIndicator = function LoadingIndicator(_ref7) {
|
|
|
3510
2823
|
_ref7$size = _ref7.size,
|
|
3511
2824
|
size = _ref7$size === void 0 ? 4 : _ref7$size,
|
|
3512
2825
|
restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
3513
|
-
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
2826
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
3514
2827
|
innerProps: innerProps,
|
|
3515
2828
|
isRtl: isRtl,
|
|
3516
2829
|
size: size
|
|
@@ -3566,7 +2879,7 @@ var Control$1 = function Control(props) {
|
|
|
3566
2879
|
innerRef = props.innerRef,
|
|
3567
2880
|
innerProps = props.innerProps,
|
|
3568
2881
|
menuIsOpen = props.menuIsOpen;
|
|
3569
|
-
return jsx("div", _extends({
|
|
2882
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({
|
|
3570
2883
|
ref: innerRef
|
|
3571
2884
|
}, getStyleProps(props, 'control', {
|
|
3572
2885
|
control: true,
|
|
@@ -3598,9 +2911,9 @@ var Group = function Group(props) {
|
|
|
3598
2911
|
label = props.label,
|
|
3599
2912
|
theme = props.theme,
|
|
3600
2913
|
selectProps = props.selectProps;
|
|
3601
|
-
return jsx("div", _extends({}, getStyleProps(props, 'group', {
|
|
2914
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'group', {
|
|
3602
2915
|
group: true
|
|
3603
|
-
}), innerProps), jsx(Heading, _extends({}, headingProps, {
|
|
2916
|
+
}), innerProps), jsx(Heading, objectWithoutPropertiesLoose._extends({}, headingProps, {
|
|
3604
2917
|
selectProps: selectProps,
|
|
3605
2918
|
theme: theme,
|
|
3606
2919
|
getStyles: getStyles,
|
|
@@ -3630,7 +2943,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
3630
2943
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
3631
2944
|
_cleanCommonProps.data;
|
|
3632
2945
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
3633
|
-
return jsx("div", _extends({}, getStyleProps(props, 'groupHeading', {
|
|
2946
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'groupHeading', {
|
|
3634
2947
|
'group-heading': true
|
|
3635
2948
|
}), innerProps));
|
|
3636
2949
|
};
|
|
@@ -3693,11 +3006,11 @@ var Input = function Input(props) {
|
|
|
3693
3006
|
isHidden = _cleanCommonProps.isHidden,
|
|
3694
3007
|
inputClassName = _cleanCommonProps.inputClassName,
|
|
3695
3008
|
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$5);
|
|
3696
|
-
return jsx("div", _extends({}, getStyleProps(props, 'input', {
|
|
3009
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'input', {
|
|
3697
3010
|
'input-container': true
|
|
3698
3011
|
}), {
|
|
3699
3012
|
"data-value": value || ''
|
|
3700
|
-
}), jsx("input", _extends({
|
|
3013
|
+
}), jsx("input", objectWithoutPropertiesLoose._extends({
|
|
3701
3014
|
className: cx({
|
|
3702
3015
|
input: true
|
|
3703
3016
|
}, inputClassName),
|
|
@@ -3770,7 +3083,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
3770
3083
|
function MultiValueRemove(_ref5) {
|
|
3771
3084
|
var children = _ref5.children,
|
|
3772
3085
|
innerProps = _ref5.innerProps;
|
|
3773
|
-
return jsx("div", _extends({
|
|
3086
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({
|
|
3774
3087
|
role: "button"
|
|
3775
3088
|
}, innerProps), children || jsx(CrossIcon, {
|
|
3776
3089
|
size: 14
|
|
@@ -3844,7 +3157,7 @@ var Option = function Option(props) {
|
|
|
3844
3157
|
isSelected = props.isSelected,
|
|
3845
3158
|
innerRef = props.innerRef,
|
|
3846
3159
|
innerProps = props.innerProps;
|
|
3847
|
-
return jsx("div", _extends({}, getStyleProps(props, 'option', {
|
|
3160
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'option', {
|
|
3848
3161
|
option: true,
|
|
3849
3162
|
'option--is-disabled': isDisabled,
|
|
3850
3163
|
'option--is-focused': isFocused,
|
|
@@ -3872,7 +3185,7 @@ var placeholderCSS = function placeholderCSS(_ref, unstyled) {
|
|
|
3872
3185
|
var Placeholder = function Placeholder(props) {
|
|
3873
3186
|
var children = props.children,
|
|
3874
3187
|
innerProps = props.innerProps;
|
|
3875
|
-
return jsx("div", _extends({}, getStyleProps(props, 'placeholder', {
|
|
3188
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'placeholder', {
|
|
3876
3189
|
placeholder: true
|
|
3877
3190
|
}), innerProps), children);
|
|
3878
3191
|
};
|
|
@@ -3900,7 +3213,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
3900
3213
|
var children = props.children,
|
|
3901
3214
|
isDisabled = props.isDisabled,
|
|
3902
3215
|
innerProps = props.innerProps;
|
|
3903
|
-
return jsx("div", _extends({}, getStyleProps(props, 'singleValue', {
|
|
3216
|
+
return jsx("div", objectWithoutPropertiesLoose._extends({}, getStyleProps(props, 'singleValue', {
|
|
3904
3217
|
'single-value': true,
|
|
3905
3218
|
'single-value--is-disabled': isDisabled
|
|
3906
3219
|
}), innerProps), children);
|
|
@@ -4001,7 +3314,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
4001
3314
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
4002
3315
|
};
|
|
4003
3316
|
var A11yText = function A11yText(props) {
|
|
4004
|
-
return jsx("span", _extends({
|
|
3317
|
+
return jsx("span", objectWithoutPropertiesLoose._extends({
|
|
4005
3318
|
css: _ref
|
|
4006
3319
|
}, props));
|
|
4007
3320
|
};
|
|
@@ -4518,7 +3831,7 @@ function DummyInput(_ref) {
|
|
|
4518
3831
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
4519
3832
|
// Remove animation props not meant for HTML elements
|
|
4520
3833
|
var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
|
|
4521
|
-
return jsx("input", _extends({
|
|
3834
|
+
return jsx("input", objectWithoutPropertiesLoose._extends({
|
|
4522
3835
|
ref: innerRef
|
|
4523
3836
|
}, filteredProps, {
|
|
4524
3837
|
css: /*#__PURE__*/css$2({
|
|
@@ -6094,7 +5407,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6094
5407
|
});
|
|
6095
5408
|
if (!isSearchable) {
|
|
6096
5409
|
// use a dummy input to maintain focus/blur functionality
|
|
6097
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends({
|
|
5410
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, objectWithoutPropertiesLoose._extends({
|
|
6098
5411
|
id: id,
|
|
6099
5412
|
innerRef: this.getInputRef,
|
|
6100
5413
|
onBlur: this.onInputBlur,
|
|
@@ -6107,7 +5420,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6107
5420
|
value: ""
|
|
6108
5421
|
}, ariaAttributes));
|
|
6109
5422
|
}
|
|
6110
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends({}, commonProps, {
|
|
5423
|
+
return /*#__PURE__*/React__namespace.createElement(Input, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6111
5424
|
autoCapitalize: "none",
|
|
6112
5425
|
autoComplete: "off",
|
|
6113
5426
|
autoCorrect: "off",
|
|
@@ -6148,7 +5461,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6148
5461
|
focusedValue = _this$state5.focusedValue,
|
|
6149
5462
|
isFocused = _this$state5.isFocused;
|
|
6150
5463
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
6151
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends({}, commonProps, {
|
|
5464
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6152
5465
|
key: "placeholder",
|
|
6153
5466
|
isDisabled: isDisabled,
|
|
6154
5467
|
isFocused: isFocused,
|
|
@@ -6161,7 +5474,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6161
5474
|
return selectValue.map(function (opt, index) {
|
|
6162
5475
|
var isOptionFocused = opt === focusedValue;
|
|
6163
5476
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
6164
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends({}, commonProps, {
|
|
5477
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6165
5478
|
components: {
|
|
6166
5479
|
Container: MultiValueContainer,
|
|
6167
5480
|
Label: MultiValueLabel,
|
|
@@ -6190,7 +5503,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6190
5503
|
return null;
|
|
6191
5504
|
}
|
|
6192
5505
|
var singleValue = selectValue[0];
|
|
6193
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends({}, commonProps, {
|
|
5506
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6194
5507
|
data: singleValue,
|
|
6195
5508
|
isDisabled: isDisabled
|
|
6196
5509
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -6213,7 +5526,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6213
5526
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
6214
5527
|
'aria-hidden': 'true'
|
|
6215
5528
|
};
|
|
6216
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends({}, commonProps, {
|
|
5529
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6217
5530
|
innerProps: innerProps,
|
|
6218
5531
|
isFocused: isFocused
|
|
6219
5532
|
}));
|
|
@@ -6232,7 +5545,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6232
5545
|
var innerProps = {
|
|
6233
5546
|
'aria-hidden': 'true'
|
|
6234
5547
|
};
|
|
6235
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends({}, commonProps, {
|
|
5548
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6236
5549
|
innerProps: innerProps,
|
|
6237
5550
|
isDisabled: isDisabled,
|
|
6238
5551
|
isFocused: isFocused
|
|
@@ -6250,7 +5563,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6250
5563
|
var commonProps = this.commonProps;
|
|
6251
5564
|
var isDisabled = this.props.isDisabled;
|
|
6252
5565
|
var isFocused = this.state.isFocused;
|
|
6253
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends({}, commonProps, {
|
|
5566
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6254
5567
|
isDisabled: isDisabled,
|
|
6255
5568
|
isFocused: isFocused
|
|
6256
5569
|
}));
|
|
@@ -6269,7 +5582,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6269
5582
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
6270
5583
|
'aria-hidden': 'true'
|
|
6271
5584
|
};
|
|
6272
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends({}, commonProps, {
|
|
5585
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6273
5586
|
innerProps: innerProps,
|
|
6274
5587
|
isDisabled: isDisabled,
|
|
6275
5588
|
isFocused: isFocused
|
|
@@ -6334,7 +5647,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6334
5647
|
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
6335
5648
|
};
|
|
6336
5649
|
|
|
6337
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends({}, commonProps, {
|
|
5650
|
+
return /*#__PURE__*/React__namespace.createElement(Option, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6338
5651
|
innerProps: innerProps,
|
|
6339
5652
|
data: data,
|
|
6340
5653
|
isDisabled: isDisabled,
|
|
@@ -6356,7 +5669,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6356
5669
|
groupIndex = item.index;
|
|
6357
5670
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
6358
5671
|
var headingId = "".concat(groupId, "-heading");
|
|
6359
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends({}, commonProps, {
|
|
5672
|
+
return /*#__PURE__*/React__namespace.createElement(Group, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6360
5673
|
key: groupId,
|
|
6361
5674
|
data: _data,
|
|
6362
5675
|
options: options,
|
|
@@ -6393,12 +5706,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6393
5706
|
menuPosition: menuPosition,
|
|
6394
5707
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
6395
5708
|
};
|
|
6396
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
5709
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, objectWithoutPropertiesLoose._extends({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
6397
5710
|
var ref = _ref4.ref,
|
|
6398
5711
|
_ref4$placerProps = _ref4.placerProps,
|
|
6399
5712
|
placement = _ref4$placerProps.placement,
|
|
6400
5713
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
6401
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends({}, commonProps, menuPlacementProps, {
|
|
5714
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, objectWithoutPropertiesLoose._extends({}, commonProps, menuPlacementProps, {
|
|
6402
5715
|
innerRef: ref,
|
|
6403
5716
|
innerProps: {
|
|
6404
5717
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -6412,7 +5725,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6412
5725
|
onBottomArrive: onMenuScrollToBottom,
|
|
6413
5726
|
lockEnabled: menuShouldBlockScroll
|
|
6414
5727
|
}, function (scrollTargetRef) {
|
|
6415
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends({}, commonProps, {
|
|
5728
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6416
5729
|
innerRef: function innerRef(instance) {
|
|
6417
5730
|
_this4.getMenuListRef(instance);
|
|
6418
5731
|
scrollTargetRef(instance);
|
|
@@ -6432,7 +5745,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6432
5745
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
6433
5746
|
// so we use the same component. the actual portalling logic is forked
|
|
6434
5747
|
// within the component based on `menuPosition`
|
|
6435
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends({}, commonProps, {
|
|
5748
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6436
5749
|
appendTo: menuPortalTarget,
|
|
6437
5750
|
controlElement: this.controlRef,
|
|
6438
5751
|
menuPlacement: menuPlacement,
|
|
@@ -6502,7 +5815,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6502
5815
|
isFocused = _this$state6.isFocused,
|
|
6503
5816
|
selectValue = _this$state6.selectValue;
|
|
6504
5817
|
var focusableOptions = this.getFocusableOptions();
|
|
6505
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion$1, _extends({}, commonProps, {
|
|
5818
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion$1, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6506
5819
|
id: this.getElementId('live-region'),
|
|
6507
5820
|
ariaSelection: ariaSelection,
|
|
6508
5821
|
focusedOption: focusedOption,
|
|
@@ -6528,7 +5841,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6528
5841
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
6529
5842
|
var isFocused = this.state.isFocused;
|
|
6530
5843
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
6531
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends({}, commonProps, {
|
|
5844
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6532
5845
|
className: className,
|
|
6533
5846
|
innerProps: {
|
|
6534
5847
|
id: id,
|
|
@@ -6536,7 +5849,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6536
5849
|
},
|
|
6537
5850
|
isDisabled: isDisabled,
|
|
6538
5851
|
isFocused: isFocused
|
|
6539
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends({}, commonProps, {
|
|
5852
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6540
5853
|
innerRef: this.getControlRef,
|
|
6541
5854
|
innerProps: {
|
|
6542
5855
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -6545,9 +5858,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6545
5858
|
isDisabled: isDisabled,
|
|
6546
5859
|
isFocused: isFocused,
|
|
6547
5860
|
menuIsOpen: menuIsOpen
|
|
6548
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends({}, commonProps, {
|
|
5861
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6549
5862
|
isDisabled: isDisabled
|
|
6550
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends({}, commonProps, {
|
|
5863
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, objectWithoutPropertiesLoose._extends({}, commonProps, {
|
|
6551
5864
|
isDisabled: isDisabled
|
|
6552
5865
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
6553
5866
|
}
|
|
@@ -6619,7 +5932,7 @@ Select.defaultProps = defaultProps;
|
|
|
6619
5932
|
|
|
6620
5933
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6621
5934
|
var baseSelectProps = useStateManager(props);
|
|
6622
|
-
return /*#__PURE__*/React__namespace.createElement(Select, _extends({
|
|
5935
|
+
return /*#__PURE__*/React__namespace.createElement(Select, objectWithoutPropertiesLoose._extends({
|
|
6623
5936
|
ref: ref
|
|
6624
5937
|
}, baseSelectProps));
|
|
6625
5938
|
});
|
|
@@ -6906,7 +6219,7 @@ function useCreatable(_ref) {
|
|
|
6906
6219
|
var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6907
6220
|
var creatableProps = useStateManager(props);
|
|
6908
6221
|
var selectProps = useCreatable(creatableProps);
|
|
6909
|
-
return /*#__PURE__*/React__namespace.createElement(Select, _extends({
|
|
6222
|
+
return /*#__PURE__*/React__namespace.createElement(Select, objectWithoutPropertiesLoose._extends({
|
|
6910
6223
|
ref: ref
|
|
6911
6224
|
}, selectProps));
|
|
6912
6225
|
});
|