{"version":3,"file":"DateInput.jsx","names":["memo","TextBox","DateInput","props","$","_c","t0","type","t1"],"sources":["../src/DateInput.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport TextBox, { type TextBoxProps } from \"./TextBox\";\n\nexport interface DateInputProps\n\textends Omit<TextBoxProps, \"type\" | \"min\" | \"max\"> {\n\t/**\n\t * ISO 8601 date string (YYYY-MM-DD).\n\t * @remarks Prefer ISO strings to avoid re-renders due to date-object re-creation.\n\t */\n\tmin?: string;\n\n\t/**\n\t * ISO 8601 date string (YYYY-MM-DD).\n\t * @remarks Prefer ISO strings to avoid re-renders due to date-object re-creation.\n\t */\n\tmax?: string;\n\n\ttype?: \"date\" | \"datetime-local\";\n}\n\n/**\n * This component is a separate component by intention. We may use a different component in the future.\n * Currently, it's just a styled textbox with a date type, so we can have native input capabilities on mobile devices.\n */\nexport default memo(function DateInput(props: DateInputProps) {\n\treturn <TextBox {...props} type={props.type ?? \"date\"} />;\n});\n"],"mappings":";AAAA,SAASA,IAAI,QAAQ,OAAO;AAE5B,OAAOC,OAAO,MAA6B,WAAW;AAmBtD;AACA;AACA;AACA;AACA,eAAeD,IAAI,CAAC,SAAAE,UAAAC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EACc,MAAAC,EAAA,GAAAH,KAAK,CAAAI,IAAA,IAAS,MAAM;EAAA,IAAAC,EAAA;EAAA,IAAAJ,CAAA,QAAAD,KAAA,IAAAC,CAAA,QAAAE,EAAA;IAA9CE,EAAA,IAAC,OAAO,KAAKL,KAAK,EAAQ,IAAoB,CAApB,CAAAG,EAAmB,CAAC,GAAI;IAAAF,CAAA,MAAAD,KAAA;IAAAC,CAAA,MAAAE,EAAA;IAAAF,CAAA,MAAAI,EAAA;EAAA;IAAAA,EAAA,GAAAJ,CAAA;EAAA;EAAA,OAAlDI,EAAkD;AAAA,CACzD,CAAC","ignoreList":[]}