@jenesei-software/jenesei-kit-react 1.0.0 → 1.0.1
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/README.md +0 -1
- package/build/{area-DfCAwCiZ.js → area-3gVEQsJq.js} +20 -22
- package/build/area-3gVEQsJq.js.map +1 -0
- package/build/area-C8w6fMSn.cjs +38 -0
- package/build/area-C8w6fMSn.cjs.map +1 -0
- package/build/{area-9NUxwBGc.cjs → area-E4w7aKuZ.cjs} +2 -2
- package/build/{area-9NUxwBGc.cjs.map → area-E4w7aKuZ.cjs.map} +1 -1
- package/build/{area-BnAddPtl.js → area-EcUYP2tl.js} +2 -2
- package/build/{area-BnAddPtl.js.map → area-EcUYP2tl.js.map} +1 -1
- package/build/area-preview.cjs.js +1 -1
- package/build/area-preview.es.js +1 -1
- package/build/area-skeleton.cjs.js +1 -1
- package/build/area-skeleton.es.js +1 -1
- package/build/build-info.txt +3 -3
- package/build/{component-C2JFFh-k.js → component--cOriuv7.js} +103 -27
- package/build/component--cOriuv7.js.map +1 -0
- package/build/{component-CFMlaYj1.js → component-9m1Ib3fS.js} +2 -2
- package/build/{component-CFMlaYj1.js.map → component-9m1Ib3fS.js.map} +1 -1
- package/build/{component-CuiUpH8H.js → component-B1IQ5CfM.js} +10 -10
- package/build/component-B1IQ5CfM.js.map +1 -0
- package/build/{component-C52VCES6.cjs → component-BnYw0FvH.cjs} +21 -17
- package/build/component-BnYw0FvH.cjs.map +1 -0
- package/build/{component-nFn_uOy_.cjs → component-Bovatz78.cjs} +2 -2
- package/build/{component-nFn_uOy_.cjs.map → component-Bovatz78.cjs.map} +1 -1
- package/build/{component-UW1VzyvB.cjs → component-C0atFCun.cjs} +2 -2
- package/build/{component-UW1VzyvB.cjs.map → component-C0atFCun.cjs.map} +1 -1
- package/build/{component-DZxbW_Jz.js → component-CbPhVNw5.js} +30 -28
- package/build/component-CbPhVNw5.js.map +1 -0
- package/build/component-CbnBTIR5.cjs +2 -0
- package/build/component-CbnBTIR5.cjs.map +1 -0
- package/build/{component-xnEaYd4a.cjs → component-D7A-4DNQ.cjs} +2 -2
- package/build/{component-xnEaYd4a.cjs.map → component-D7A-4DNQ.cjs.map} +1 -1
- package/build/{component-CBshLNEf.js → component-DURhph1i.js} +3 -3
- package/build/{component-CBshLNEf.js.map → component-DURhph1i.js.map} +1 -1
- package/build/component-X4e7zEKk.cjs +90 -0
- package/build/component-X4e7zEKk.cjs.map +1 -0
- package/build/component-accordion.cjs.js +1 -1
- package/build/component-accordion.es.js +1 -1
- package/build/component-button-group.cjs.js +1 -1
- package/build/component-button-group.d.ts +5 -1
- package/build/component-button-group.es.js +1 -1
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.d.ts +6 -2
- package/build/component-button.es.js +1 -1
- package/build/component-checkbox-group.cjs.js +1 -1
- package/build/component-checkbox-group.d.ts +2 -1
- package/build/component-checkbox-group.es.js +1 -1
- package/build/component-checkbox.cjs.js +1 -1
- package/build/component-checkbox.d.ts +2 -1
- package/build/component-checkbox.es.js +1 -1
- package/build/component-date-picker.cjs.js +1 -1
- package/build/component-date-picker.d.ts +93 -70
- package/build/component-date-picker.es.js +1 -1
- package/build/component-icon.cjs.js +1 -1
- package/build/component-icon.es.js +1 -1
- package/build/component-image-button.cjs.js +1 -1
- package/build/component-image-button.d.ts +5 -1
- package/build/component-image-button.es.js +1 -1
- package/build/component-image-select.cjs.js +1 -1
- package/build/component-image-select.d.ts +5 -1
- package/build/component-image-select.es.js +1 -1
- package/build/component-image-slider.cjs.js +1 -1
- package/build/component-image-slider.es.js +1 -1
- package/build/component-image.cjs.js +1 -1
- package/build/component-image.es.js +1 -1
- package/build/component-input-otp.cjs.js +1 -1
- package/build/component-input-otp.d.ts +31 -19
- package/build/component-input-otp.es.js +1 -1
- package/build/component-input.cjs.js +1 -1
- package/build/component-input.d.ts +48 -38
- package/build/component-input.es.js +4 -4
- package/build/component-map.cjs.js +1 -1
- package/build/component-map.es.js +1 -1
- package/build/component-pagination.cjs.js +1 -1
- package/build/component-pagination.d.ts +5 -1
- package/build/component-pagination.es.js +1 -1
- package/build/component-range.cjs.js +1 -1
- package/build/component-range.d.ts +28 -18
- package/build/component-range.es.js +1 -1
- package/build/component-ripple.cjs.js +1 -1
- package/build/component-ripple.es.js +1 -1
- package/build/component-select.cjs.js +1 -1
- package/build/component-select.d.ts +125 -230
- package/build/component-select.es.js +16 -20
- package/build/component-separator.cjs.js +1 -1
- package/build/component-separator.d.ts +3 -2
- package/build/component-separator.es.js +1 -1
- package/build/component-textarea.cjs.js +1 -1
- package/build/component-textarea.d.ts +74 -53
- package/build/component-textarea.es.js +4 -8
- package/build/component-toggle.cjs.js +1 -1
- package/build/component-toggle.es.js +1 -1
- package/build/component-tooltip.cjs.js +1 -1
- package/build/component-tooltip.d.ts +9 -2
- package/build/component-tooltip.es.js +1 -1
- package/build/component-typography.cjs.js +1 -1
- package/build/component-typography.d.ts +8 -2
- package/build/component-typography.es.js +1 -1
- package/build/{component-ByY_9Ryc.js → component-vpCWcIhC.js} +2 -2
- package/build/{component-ByY_9Ryc.js.map → component-vpCWcIhC.js.map} +1 -1
- package/build/{component.components-CaR5gfQW.cjs → component.components-1kRDD3KO.cjs} +2 -2
- package/build/{component.components-CaR5gfQW.cjs.map → component.components-1kRDD3KO.cjs.map} +1 -1
- package/build/{component.components-BAAT5GTH.js → component.components-CQ3LLnFl.js} +5 -5
- package/build/{component.components-BAAT5GTH.js.map → component.components-CQ3LLnFl.js.map} +1 -1
- package/build/{component.constants-DRvp5Bez.js → component.constants-B1rq1PLe.js} +2 -2
- package/build/{component.constants-DRvp5Bez.js.map → component.constants-B1rq1PLe.js.map} +1 -1
- package/build/{component.constants-DbNhxh0k.js → component.constants-B95xyW0s.js} +211 -207
- package/build/component.constants-B95xyW0s.js.map +1 -0
- package/build/{component.constants-BeWW8Ijx.cjs → component.constants-BLHg7rcI.cjs} +2 -2
- package/build/{component.constants-BeWW8Ijx.cjs.map → component.constants-BLHg7rcI.cjs.map} +1 -1
- package/build/component.constants-Gz2mf7IF.cjs +22 -0
- package/build/component.constants-Gz2mf7IF.cjs.map +1 -0
- package/build/{component.styles-BfvB83xM.cjs → component.styles-B-ZAk_1C.cjs} +7 -7
- package/build/component.styles-B-ZAk_1C.cjs.map +1 -0
- package/build/{component.styles-Do1NYZEO.js → component.styles-BI4OuDrG.js} +32 -20
- package/build/component.styles-BI4OuDrG.js.map +1 -0
- package/build/component.styles-BLh29xwF.cjs +10 -0
- package/build/component.styles-BLh29xwF.cjs.map +1 -0
- package/build/component.styles-BnJjm_ES.js +37 -0
- package/build/component.styles-BnJjm_ES.js.map +1 -0
- package/build/{component.styles-RkQwTlwG.js → component.styles-BoBaG6sX.js} +13 -5
- package/build/component.styles-BoBaG6sX.js.map +1 -0
- package/build/component.styles-BrGPrrEb.cjs +39 -0
- package/build/component.styles-BrGPrrEb.cjs.map +1 -0
- package/build/{component.styles-ZtwHuL4x.cjs → component.styles-Bz2vyHqK.cjs} +5 -7
- package/build/component.styles-Bz2vyHqK.cjs.map +1 -0
- package/build/{component.styles-CVBpx4fw.js → component.styles-BzNkEurr.js} +13 -13
- package/build/component.styles-BzNkEurr.js.map +1 -0
- package/build/component.styles-CLn52hJD.cjs +14 -0
- package/build/component.styles-CLn52hJD.cjs.map +1 -0
- package/build/{component.styles-DOPCUXcr.js → component.styles-CRWn1pVi.js} +11 -13
- package/build/component.styles-CRWn1pVi.js.map +1 -0
- package/build/{component.styles-CmEFZfA5.js → component.styles-CccZrbSA.js} +53 -42
- package/build/component.styles-CccZrbSA.js.map +1 -0
- package/build/component.styles-CdtZm7bl.cjs +165 -0
- package/build/component.styles-CdtZm7bl.cjs.map +1 -0
- package/build/{component.styles-BapdQNhL.js → component.styles-CiGPOpxk.js} +5 -5
- package/build/component.styles-CiGPOpxk.js.map +1 -0
- package/build/component.styles-CvJK1eif.cjs +230 -0
- package/build/component.styles-CvJK1eif.cjs.map +1 -0
- package/build/component.styles-D6KuudL3.js +1372 -0
- package/build/component.styles-D6KuudL3.js.map +1 -0
- package/build/{component.styles-DyGfo9t0.cjs → component.styles-DDUGBJle.cjs} +2 -2
- package/build/{component.styles-DyGfo9t0.cjs.map → component.styles-DDUGBJle.cjs.map} +1 -1
- package/build/{component.styles-CTo5NC52.js → component.styles-DMBvhmz6.js} +4 -4
- package/build/{component.styles-CTo5NC52.js.map → component.styles-DMBvhmz6.js.map} +1 -1
- package/build/component.styles-DWoybqna.cjs +137 -0
- package/build/component.styles-DWoybqna.cjs.map +1 -0
- package/build/component.styles-DhI3n-dL.js +213 -0
- package/build/component.styles-DhI3n-dL.js.map +1 -0
- package/build/{component.styles-DxeG9Opm.cjs → component.styles-DjLSmx3e.cjs} +2 -2
- package/build/{component.styles-DxeG9Opm.cjs.map → component.styles-DjLSmx3e.cjs.map} +1 -1
- package/build/component.styles-DqTkSP8L.js +1023 -0
- package/build/component.styles-DqTkSP8L.js.map +1 -0
- package/build/{component.styles-Dok17vPl.js → component.styles-DuIrUV9k.js} +2 -2
- package/build/{component.styles-Dok17vPl.js.map → component.styles-DuIrUV9k.js.map} +1 -1
- package/build/component.styles-DwdN7mQq.cjs +99 -0
- package/build/component.styles-DwdN7mQq.cjs.map +1 -0
- package/build/{component.styles-CV7jTFCg.js → component.styles-iWM1hPGZ.js} +62 -31
- package/build/component.styles-iWM1hPGZ.js.map +1 -0
- package/build/{component.styles-CZu2m0O4.cjs → component.styles-q4ne6jV1.cjs} +2 -2
- package/build/{component.styles-CZu2m0O4.cjs.map → component.styles-q4ne6jV1.cjs.map} +1 -1
- package/build/{component.styles-C6LohBfF.js → component.styles-uPfiNBIy.js} +3 -3
- package/build/{component.styles-C6LohBfF.js.map → component.styles-uPfiNBIy.js.map} +1 -1
- package/build/component.styles-vcNQJK0U.cjs +65 -0
- package/build/component.styles-vcNQJK0U.cjs.map +1 -0
- package/build/component.styles-w3iWQMCq.cjs +13 -0
- package/build/component.styles-w3iWQMCq.cjs.map +1 -0
- package/build/consts.cjs.js.map +1 -1
- package/build/consts.es.js.map +1 -1
- package/build/context-app.cjs.js +1 -1
- package/build/context-app.es.js +1 -1
- package/build/context-dialog.cjs.js +1 -1
- package/build/context-dialog.es.js +1 -1
- package/build/context-sonner.cjs.js +1 -1
- package/build/context-sonner.es.js +1 -1
- package/build/{context.constants-DqYjo5m4.js → context.constants-BAz35AJw.js} +5 -5
- package/build/{context.constants-DqYjo5m4.js.map → context.constants-BAz35AJw.js.map} +1 -1
- package/build/{context.constants-B29-_8v3.cjs → context.constants-BJPyze-d.cjs} +2 -2
- package/build/{context.constants-B29-_8v3.cjs.map → context.constants-BJPyze-d.cjs.map} +1 -1
- package/build/{context.constants-CsZRZ7gH.js → context.constants-COR-ReeN.js} +2 -2
- package/build/{context.constants-CsZRZ7gH.js.map → context.constants-COR-ReeN.js.map} +1 -1
- package/build/{context.constants-BaD7xj_m.cjs → context.constants-fwK8ogSf.cjs} +2 -2
- package/build/{context.constants-BaD7xj_m.cjs.map → context.constants-fwK8ogSf.cjs.map} +1 -1
- package/build/{context.hooks-gyzZSaVi.js → context.hooks-Bs1dD25S.js} +4 -4
- package/build/{context.hooks-gyzZSaVi.js.map → context.hooks-Bs1dD25S.js.map} +1 -1
- package/build/{context.hooks-CTi-CVKx.cjs → context.hooks-KAyS_7Pj.cjs} +3 -3
- package/build/{context.hooks-CTi-CVKx.cjs.map → context.hooks-KAyS_7Pj.cjs.map} +1 -1
- package/build/functions.cjs.js.map +1 -1
- package/build/functions.es.js +7 -4
- package/build/functions.es.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.d.ts +1 -1
- package/build/index.cjs.js +1 -1
- package/build/index.d.ts +289 -227
- package/build/index.es.js +133 -139
- package/build/{style-CEGJOjRW.js → style-Bvt_Melk.js} +32 -12
- package/build/style-Bvt_Melk.js.map +1 -0
- package/build/{style-DeAgDHyI.js → style-DjCgiI7l.js} +3 -3
- package/build/{style-DeAgDHyI.js.map → style-DjCgiI7l.js.map} +1 -1
- package/build/style-add.cjs.js +1 -1
- package/build/style-add.d.ts +11 -1
- package/build/style-add.es.js +6 -4
- package/build/{style-CtGd1JVB.cjs → style-eIuUYu9x.cjs} +2 -2
- package/build/{style-CtGd1JVB.cjs.map → style-eIuUYu9x.cjs.map} +1 -1
- package/build/style-error.cjs.js +1 -1
- package/build/style-error.es.js +1 -1
- package/build/{style-Dm74EPGE.cjs → style-f3_KtJIt.cjs} +30 -14
- package/build/style-f3_KtJIt.cjs.map +1 -0
- package/build/style-theme.cjs.js +1 -1
- package/build/style-theme.es.js +1 -1
- package/build/{theme.global-bN9HlSWE.js → theme.global-B46v_8eu.js} +2 -1
- package/build/{theme.global-bN9HlSWE.js.map → theme.global-B46v_8eu.js.map} +1 -1
- package/build/{theme.global-D6XU05Et.cjs → theme.global-BdZkriPJ.cjs} +2 -1
- package/build/{theme.global-D6XU05Et.cjs.map → theme.global-BdZkriPJ.cjs.map} +1 -1
- package/build/{use-BVj4dgbW.js → use-B6rT81uF.js} +6 -6
- package/build/{use-BVj4dgbW.js.map → use-B6rT81uF.js.map} +1 -1
- package/build/{use-BhofoOgk.cjs → use-BnaBipTR.cjs} +2 -2
- package/build/{use-BhofoOgk.cjs.map → use-BnaBipTR.cjs.map} +1 -1
- package/build/use-C1l0O0Qo.cjs.map +1 -1
- package/build/use-DT0XgvJT.js.map +1 -1
- package/package.json +2 -12
- package/build/area-ClrrGVJG.cjs +0 -40
- package/build/area-ClrrGVJG.cjs.map +0 -1
- package/build/area-DfCAwCiZ.js.map +0 -1
- package/build/component-BnI7BIp-.cjs +0 -2
- package/build/component-BnI7BIp-.cjs.map +0 -1
- package/build/component-C2JFFh-k.js.map +0 -1
- package/build/component-C52VCES6.cjs.map +0 -1
- package/build/component-CuiUpH8H.js.map +0 -1
- package/build/component-D1NPhRuV.cjs +0 -90
- package/build/component-D1NPhRuV.cjs.map +0 -1
- package/build/component-DZxbW_Jz.js.map +0 -1
- package/build/component.constants-D9wVZ3zy.cjs +0 -22
- package/build/component.constants-D9wVZ3zy.cjs.map +0 -1
- package/build/component.constants-DbNhxh0k.js.map +0 -1
- package/build/component.styles-B1DIataj.cjs +0 -10
- package/build/component.styles-B1DIataj.cjs.map +0 -1
- package/build/component.styles-BFwkFWkd.cjs +0 -39
- package/build/component.styles-BFwkFWkd.cjs.map +0 -1
- package/build/component.styles-BSEA2Dqn.cjs +0 -8
- package/build/component.styles-BSEA2Dqn.cjs.map +0 -1
- package/build/component.styles-BapdQNhL.js.map +0 -1
- package/build/component.styles-BfvB83xM.cjs.map +0 -1
- package/build/component.styles-Bn6ylF83.js +0 -859
- package/build/component.styles-Bn6ylF83.js.map +0 -1
- package/build/component.styles-BsZIuwWJ.cjs +0 -140
- package/build/component.styles-BsZIuwWJ.cjs.map +0 -1
- package/build/component.styles-CEBh8X5q.js +0 -20
- package/build/component.styles-CEBh8X5q.js.map +0 -1
- package/build/component.styles-CPsxMKVK.cjs +0 -73
- package/build/component.styles-CPsxMKVK.cjs.map +0 -1
- package/build/component.styles-CV7jTFCg.js.map +0 -1
- package/build/component.styles-CVBpx4fw.js.map +0 -1
- package/build/component.styles-CmBcHREH.cjs +0 -13
- package/build/component.styles-CmBcHREH.cjs.map +0 -1
- package/build/component.styles-CmEFZfA5.js.map +0 -1
- package/build/component.styles-DHIw8p8e.cjs +0 -158
- package/build/component.styles-DHIw8p8e.cjs.map +0 -1
- package/build/component.styles-DOPCUXcr.js.map +0 -1
- package/build/component.styles-Dj3h7jd9.cjs +0 -165
- package/build/component.styles-Dj3h7jd9.cjs.map +0 -1
- package/build/component.styles-Do1NYZEO.js.map +0 -1
- package/build/component.styles-DpkFoWEh.cjs +0 -81
- package/build/component.styles-DpkFoWEh.cjs.map +0 -1
- package/build/component.styles-DqsBDAEo.js +0 -202
- package/build/component.styles-DqsBDAEo.js.map +0 -1
- package/build/component.styles-Du2y0R4W.js +0 -177
- package/build/component.styles-Du2y0R4W.js.map +0 -1
- package/build/component.styles-RkQwTlwG.js.map +0 -1
- package/build/component.styles-ZtwHuL4x.cjs.map +0 -1
- package/build/style-CEGJOjRW.js.map +0 -1
- package/build/style-Dm74EPGE.cjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.styles-Dj3h7jd9.cjs","sources":["../src/components/date-picker/component.tsx","../src/components/date-picker/component.styles.ts"],"sourcesContent":["import moment, { Moment } from 'moment'\nimport { Fragment, KeyboardEvent, RefObject, useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { useTheme } from 'styled-components'\n\nimport { Button } from '@local/components/button'\nimport { Ripple } from '@local/components/ripple'\nimport { SelectMonth, SelectYear } from '@local/components/select'\nimport { Stack } from '@local/components/stack'\nimport { ErrorMessage } from '@local/styles/error'\nimport { KEY_SIZE_DATA } from '@local/theme'\n\nimport {\n DateDayProps,\n DateDropdownDay,\n DateDropdownDayOfWeek,\n DateDropdownDays,\n DateDropdownList,\n DateInput,\n DateInputWrapper,\n DatePickerMode,\n DatePickerProps,\n DateWrapper,\n WeekItem\n} from '.'\nimport { Popover, usePopover } from '../popover'\n\nfunction countSevens(number: number) {\n const divisor = 7\n const count = Math.floor(number / divisor)\n const remainder = number % divisor\n\n return remainder > 0 ? count + 1 : count\n}\n\nexport const DatePicker = (props: DatePickerProps) => {\n const { onChange, onBlur } = props\n const theme = useTheme()\n\n const [valueMoment, setValueMoment] = useState<null | Moment>(null)\n\n const [currentMonth, setCurrentMonth] = useState<null | number>(null)\n const [currentYear, setCurrentYear] = useState<null | number>(null)\n const [currentDay, setCurrentDay] = useState<null | number>(null)\n\n const [inputDay, setInputDay] = useState<string | null>(null)\n const [inputMonth, setInputMonth] = useState<string | null>(null)\n const [inputYear, setInputYear] = useState<string | null>(null)\n\n const refDay = useRef<HTMLInputElement>(null)\n const refMonth = useRef<HTMLInputElement>(null)\n const refYear = useRef<HTMLInputElement>(null)\n\n const [activeSegment, setActiveSegment] = useState<'day' | 'month' | 'year' | null>(null)\n const [isError, setIsError] = useState(false)\n const dataDate = useMemo(() => {\n const mode: DatePickerMode = props.mode ?? 'DD.MM.YYYY'\n const result = {\n MM: {\n type: 'MM',\n width: '20px',\n ref: refMonth,\n value: inputMonth,\n setValue: setInputMonth,\n setActive: () => setActiveSegment('month'),\n valueInput: inputMonth,\n setValueInput: setInputMonth,\n placeholder: props.locale.inputs.month\n },\n DD: {\n type: 'DD',\n width: '20px',\n ref: refDay,\n value: inputDay,\n setValue: setInputDay,\n setActive: () => setActiveSegment('day'),\n valueInput: inputDay,\n setValueInput: setInputDay,\n placeholder: props.locale.inputs.day\n },\n YYYY: {\n type: 'YYYY',\n width: '40px',\n ref: refYear,\n value: inputYear,\n setValue: setInputYear,\n setActive: () => setActiveSegment('year'),\n valueInput: inputYear,\n setValueInput: setInputYear,\n placeholder: props.locale.inputs.year\n }\n }\n const resultSort = mode\n .split('.')\n .map(e => e.trim())\n .map(e => {\n if (e === 'DD') return result.DD\n if (e === 'MM') return result.MM\n if (e === 'YYYY') return result.YYYY\n return null\n })\n .filter(e => e !== null)\n return resultSort\n }, [\n inputDay,\n inputMonth,\n inputYear,\n props.locale.inputs.day,\n props.locale.inputs.month,\n props.locale.inputs.year,\n props.mode\n ])\n\n // const [isOpen, setIsOpen] = useState(false)\n\n const daysInWeek = useMemo(() => {\n const weekOrder: WeekItem['value'][] = ['mo', 'tu', 'we', 'th', 'fr', 'sa', 'su']\n\n return weekOrder.map((key, index) => {\n const found = props.locale.weeks.find(w => w.value === key)\n return {\n index,\n label: found?.localeShort ?? key.toUpperCase()\n }\n })\n }, [props.locale.weeks])\n\n const daysInMonth: DateDayProps[] = useMemo(() => {\n if (currentYear === null || currentMonth === null) return []\n const today = moment.utc()\n\n const startOfMonth = moment.utc().year(currentYear).month(currentMonth).startOf('month')\n const endOfMonth = moment.utc().year(currentYear).month(currentMonth).endOf('month')\n\n const days = []\n\n const startDate = props.startDate ? moment.utc(props.startDate) : null\n const endDate = props.endDate ? moment.utc(props.endDate) : null\n\n const daysToAddBefore = startOfMonth.isoWeekday() - 1\n if (daysToAddBefore > 0) {\n for (let i = daysToAddBefore; i > 0; i--) {\n const day = startOfMonth.clone().subtract(i, 'days')\n days.push({\n value: day.valueOf(),\n labelString: day.format('dd'),\n labelNumber: day.date(),\n dayOfWeek: day.isoWeekday(),\n isWeekend: day.isoWeekday() === 6 || day.isoWeekday() === 7,\n weekOfMonth: Math.ceil((days.length + 1) / 7),\n isToday: day.isSame(today, 'day'),\n isCurrentMonth: false,\n isDisabled: day.isBefore(startDate, 'day') || day.isAfter(endDate, 'day')\n })\n }\n }\n\n const currentDate = startOfMonth.clone()\n while (currentDate <= endOfMonth) {\n days.push({\n value: currentDate.valueOf(),\n labelString: currentDate.format('dd'),\n labelNumber: currentDate.date(),\n dayOfWeek: currentDate.isoWeekday(),\n isWeekend: currentDate.isoWeekday() === 6 || currentDate.isoWeekday() === 7,\n weekOfMonth: Math.ceil((days.length + 1) / 7),\n isToday: currentDate.isSame(today, 'day'),\n isCurrentMonth: true,\n isDisabled: currentDate.isBefore(startDate, 'day') || currentDate.isAfter(endDate, 'day')\n })\n currentDate.add(1, 'day')\n }\n\n const daysToAddAfter = 7 - endOfMonth.isoWeekday()\n if (daysToAddAfter > 0) {\n for (let i = 1; i <= daysToAddAfter; i++) {\n const day = endOfMonth.clone().add(i, 'days').startOf('day')\n days.push({\n value: day.valueOf(),\n labelString: day.format('dd'),\n labelNumber: day.date(),\n dayOfWeek: day.isoWeekday(),\n isWeekend: day.isoWeekday() === 6 || day.isoWeekday() === 7,\n weekOfMonth: Math.ceil((days.length + 1) / 7),\n isToday: day.isSame(today, 'day'),\n isCurrentMonth: false,\n isDisabled: day.isBefore(startDate, 'day') || day.isAfter(endDate, 'day')\n })\n }\n }\n\n days.sort((a, b) => a.value - b.value)\n return days\n }, [currentMonth, currentYear, props.endDate, props.startDate])\n\n const rows = useMemo(() => countSevens(daysInMonth.length) + 1, [daysInMonth])\n const height = useMemo(\n () => 40 + rows * 28 + (rows - 1) * 6 + KEY_SIZE_DATA[props.size].padding * 2,\n [props.size, rows]\n )\n const radius = useMemo(() => KEY_SIZE_DATA[props.size].radius, [props.size])\n\n const isBlockNextMonth = useMemo(() => {\n if (currentYear === null || currentMonth === null || currentDay === null) return true\n const nextMonth = moment\n .utc()\n .year(currentYear)\n .month(currentMonth)\n .date(currentDay)\n .add(1, 'month')\n .startOf('month')\n\n const isBeforeEndDate = props.endDate ? nextMonth.isAfter(moment.utc(props.endDate), 'month') : false\n return isBeforeEndDate\n }, [currentYear, currentMonth, currentDay, props.endDate])\n\n const isBlockPrevMonth = useMemo(() => {\n if (currentYear === null || currentMonth === null || currentDay === null) return true\n const prevMonth = moment\n .utc()\n .year(currentYear)\n .month(currentMonth)\n .date(currentDay)\n .subtract(1, 'month')\n .startOf('month')\n\n const isAfterStartDate = props.startDate ? prevMonth.isBefore(moment.utc(props.startDate), 'month') : false\n return isAfterStartDate\n }, [currentYear, currentMonth, currentDay, props.startDate])\n\n const { isOpen, close, reference, floating, floatingStyles } = usePopover({\n placement: 'bottom-start',\n offset: 8,\n mode: 'clickOpen',\n isClickOutside: true\n })\n\n const handleOnClose = useCallback(\n (isCheck?: boolean) => {\n close()\n if (isCheck)\n if (!inputDay || !inputMonth || !inputYear) {\n onChange(null)\n }\n },\n [close, inputDay, inputMonth, inputYear, onChange]\n )\n const handleKeyDown = useCallback(\n (e: KeyboardEvent<HTMLInputElement>) => {\n if (\n !/^\\d$/.test(e.key) &&\n !['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Backspace', 'Delete', 'Tab'].includes(e.key) &&\n !e.ctrlKey &&\n !e.metaKey\n ) {\n e.preventDefault()\n return\n }\n if (e.key === 'Backspace' || e.key === 'Delete') {\n if (\n (activeSegment === 'day' && (!inputDay || inputDay === '')) ||\n (activeSegment === 'month' && (!inputMonth || inputMonth === '')) ||\n (activeSegment === 'year' && (!inputYear || inputYear === ''))\n ) {\n if (activeSegment === 'day') {\n setInputDay(null)\n } else if (activeSegment === 'month') {\n setInputMonth(null)\n } else if (activeSegment === 'year') {\n setInputYear(null)\n }\n const nextSegment = activeSegment === 'day' ? 'day' : activeSegment === 'month' ? 'day' : 'month'\n setActiveSegment(nextSegment)\n e.preventDefault()\n }\n }\n if (e.key === 'ArrowLeft' || e.key === 'ArrowDown') {\n const nextSegment = activeSegment === 'day' ? 'year' : activeSegment === 'month' ? 'day' : 'month'\n setActiveSegment(nextSegment)\n e.preventDefault()\n }\n if (e.key === 'ArrowRight' || e.key === 'ArrowUp') {\n const nextSegment = activeSegment === 'day' ? 'month' : activeSegment === 'month' ? 'year' : 'day'\n setActiveSegment(nextSegment)\n e.preventDefault()\n }\n },\n [activeSegment, inputDay, inputMonth, inputYear]\n )\n\n const onChangeDate = useCallback(\n (timestamp: number, isBlur?: boolean, isChange?: boolean) => {\n const momentStartDate = props.startDate ? moment(props.startDate).utc() : null\n const momentEndDate = props.endDate ? moment(props.endDate).utc() : null\n const momentCheckDate = moment(timestamp).utc()\n let momentNewDate = moment(timestamp).utc()\n\n if (momentStartDate && momentCheckDate.isBefore(momentStartDate, 'day')) {\n momentNewDate = momentStartDate.startOf('day')\n } else if (momentEndDate && momentCheckDate.isAfter(momentEndDate, 'day')) {\n momentNewDate = momentEndDate.startOf('day')\n }\n if (valueMoment && valueMoment.isSame(momentNewDate, 'day')) return\n setValueMoment(momentNewDate)\n setCurrentDay(momentNewDate.date())\n setCurrentMonth(momentNewDate.month())\n setCurrentYear(momentNewDate.year())\n if (isChange) onChange(momentNewDate.valueOf())\n if (props.isOnClickClose && isBlur) {\n onBlur?.()\n handleOnClose()\n }\n },\n [props.startDate, props.endDate, props.isOnClickClose, valueMoment, onChange, onBlur, handleOnClose]\n )\n const onNextMonth = useCallback(() => {\n if (currentYear === null || currentMonth === null || currentDay === null) return\n const newDate = moment.utc().year(currentYear).month(currentMonth).date(currentDay).add(1, 'month')\n onChangeDate(newDate.valueOf(), false, false)\n }, [currentDay, currentMonth, currentYear, onChangeDate])\n\n const onPrevMonth = useCallback(() => {\n if (currentYear === null || currentMonth === null || currentDay === null) return\n const newDate = moment.utc().year(currentYear).month(currentMonth).date(currentDay).subtract(1, 'month')\n onChangeDate(newDate.valueOf(), false, false)\n }, [currentDay, currentMonth, currentYear, onChangeDate])\n\n useEffect(() => {\n const valueMoment = props.value ? moment(props.value).utc() : moment.utc()\n if (props.value !== null && props.value !== undefined) {\n setInputDay(fixOneToZero(valueMoment.date().toString()))\n setInputMonth(fixOneToZero((valueMoment.month() + 1).toString()))\n setInputYear(valueMoment.year().toString())\n } else {\n setInputDay(null)\n setInputMonth(null)\n setInputYear(null)\n }\n onChangeDate(valueMoment.valueOf(), false, false)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.value, isOpen])\n\n useEffect(() => {\n if (activeSegment !== null) {\n setTimeout(() => {\n if (activeSegment === 'day') {\n refDay.current?.focus()\n } else if (activeSegment === 'month') {\n refMonth.current?.focus()\n } else if (activeSegment === 'year') {\n refYear.current?.focus()\n }\n }, 0)\n }\n }, [activeSegment])\n\n useEffect(() => {\n if (isOpen) {\n setActiveSegment('day')\n } else {\n setActiveSegment(null)\n }\n }, [isOpen])\n return (\n <>\n <DateWrapper\n ref={reference as RefObject<HTMLDivElement | null>}\n $size={props.size}\n $genre={props.genre}\n $sx={props.sx}\n $isDisabled={props?.isDisabled}\n $isMinWidth={props?.isMinWidth}\n $radius={radius}\n $parentListHeight={height}\n // onFocus={event => {\n // if (props?.isDisabled) return\n // if (props.onFocus) props.onFocus?.(event)\n // // handleOnOpen()\n // }}\n >\n <DateInputWrapper\n tabIndex={0}\n $genre={props.genre}\n $size={props.size}\n $error={isError ? { isError: true } : props.error}\n $isOpen={isOpen}\n >\n {dataDate.map((date, index) => (\n <Fragment key={date.type}>\n <DateInput\n onValueChange={(values, sourceInfo) => {\n if (date.type === 'DD') {\n if (sourceInfo.source !== 'event') return\n const value = values.formattedValue\n setInputMonth(null)\n setInputYear(null)\n\n if (Number(value) && Number(value) > 31) {\n setInputDay('31')\n } else {\n setInputDay(value)\n }\n if (value !== '' && !value.includes('_')) {\n setActiveSegment('month')\n }\n } else if (date.type === 'MM') {\n if (sourceInfo.source !== 'event') return\n const value = values.formattedValue\n setInputYear(null)\n if (Number(value) > 12) {\n setInputMonth('12')\n } else {\n setInputMonth(value)\n }\n if (value !== '' && !value.includes('_')) {\n setActiveSegment('year')\n }\n } else if (date.type === 'YYYY') {\n if (sourceInfo.source !== 'event') return\n const value = values.formattedValue\n setInputYear(value)\n\n if (value !== '' && !value.includes('_')) {\n const day = inputDay ? Number(inputDay) : NaN\n const month = inputMonth ? Number(inputMonth) : NaN\n const year = value ? Number(value) : NaN\n if (!isNaN(day) && !isNaN(month) && !isNaN(year)) {\n const m = moment.utc(`${day}.${month}.${year}`, 'D.M.YYYY', true).startOf('day')\n if (m.isValid()) {\n onChangeDate(m.valueOf(), false, true)\n } else {\n setIsError(true)\n setTimeout(() => {\n setIsError(false)\n setInputDay(null)\n setInputMonth(null)\n setInputYear(null)\n setActiveSegment('day')\n }, 1000)\n }\n }\n }\n }\n }}\n $genre={props.genre}\n $size={props.size}\n getInputRef={(ref: HTMLInputElement | null) => {\n if (ref && !date.ref.current) {\n date.ref.current = ref\n }\n }}\n onFocus={e => {\n date.setActive()\n e.target.select()\n }}\n onBlur={() => {\n if (index !== dataDate.length - 1)\n if (date.valueInput && date.valueInput.includes('_'))\n date.setValueInput(fixUnderscoreToZero(date.valueInput))\n }}\n onKeyDown={handleKeyDown}\n value={date.valueInput ?? ''}\n placeholder={date.placeholder}\n format={'#'.repeat(date.type.length)}\n style={{ width: date.width }}\n readOnly={isError}\n type=\"text\"\n mask=\"_\"\n />\n {index !== dataDate.length - 1 && (\n <span style={{ width: '4px', pointerEvents: 'none', textAlign: 'center' }}>.</span>\n )}\n </Fragment>\n ))}\n </DateInputWrapper>\n </DateWrapper>\n <Popover\n sx={theme => ({\n default: {\n background: theme.colors.input[props.genre].background.rest,\n border: `solid 1px ${theme.colors.input[props.genre].border.rest}`\n }\n })}\n size={props.size}\n genre={props.genre}\n isOpen={isOpen}\n floatingStyles={floatingStyles}\n ref={floating}\n >\n <DateDropdownList $isInputEffect={props.isInputEffect} $genre={props.genre} $size={props.size}>\n <Stack\n sx={{\n default: {\n justifyContent: 'space-between',\n alignItems: 'center'\n }\n }}\n >\n <Button\n type=\"button\"\n isRadius\n icons={[\n {\n name: 'Arrow2',\n type: 'id',\n turn: 90\n }\n ]}\n isWidthAsHeight\n genre={props.genre}\n size={'small'}\n onClick={() => !isBlockPrevMonth && onPrevMonth()}\n isHidden={isBlockPrevMonth}\n />\n {currentYear !== null && currentMonth !== null && currentDay !== null ? (\n <Stack sx={{ default: { gap: '8px' } }}>\n <SelectMonth\n isShortLabel\n monthsLocale={props.locale.months}\n genre={props.genre}\n size={'small'}\n value={moment\n .utc()\n .year(currentYear)\n .month(currentMonth)\n .date(currentDay)\n .startOf('day')\n .utc()\n .valueOf()}\n onChange={(timestamp: number) => {\n onChangeDate(timestamp, false, true)\n }}\n startDate={props.startDate}\n endDate={props.endDate}\n sx={{ default: { width: '70px' } }}\n />\n <SelectYear\n genre={props.genre}\n size={'small'}\n value={moment\n .utc()\n .year(currentYear)\n .month(currentMonth)\n .date(currentDay)\n .startOf('day')\n .utc()\n .valueOf()}\n onChange={(timestamp: number) => {\n onChangeDate(timestamp, false, true)\n }}\n startDate={props.startDate}\n endDate={props.endDate}\n sx={{ default: { width: '70px' } }}\n />\n </Stack>\n ) : null}\n <Button\n type=\"button\"\n onClick={() => !isBlockNextMonth && onNextMonth()}\n isWidthAsHeight\n isRadius\n icons={[\n {\n name: 'Arrow2',\n type: 'id',\n turn: -90\n }\n ]}\n genre={props.genre}\n size={'small'}\n isHidden={isBlockNextMonth}\n />\n </Stack>\n <DateDropdownDays $rows={rows}>\n {daysInWeek.map((e, index) => (\n <DateDropdownDayOfWeek\n $isToday={false}\n $isWeekend={false}\n type=\"button\"\n $genre={props.genre}\n $size={props.size}\n $row={daysInMonth[0]?.weekOfMonth - 1}\n $column={index + 1}\n key={index}\n >\n {e.label}\n </DateDropdownDayOfWeek>\n ))}\n {daysInMonth.map(day =>\n !day.isDisabled ? (\n <DateDropdownDay\n type=\"button\"\n $genre={props.genre}\n $size={props.size}\n $row={day?.weekOfMonth + 1}\n $column={day.dayOfWeek}\n key={day.value}\n onClick={() => onChangeDate(day.value, true, true)}\n $isToday={day.isToday}\n $isWeekend={day.isWeekend}\n $isChoice={day.value === valueMoment?.valueOf()}\n $isCurrentMonth={day.isCurrentMonth}\n >\n <Ripple color={theme.colors.date[props.genre].color.rest} />\n {day.labelNumber}\n </DateDropdownDay>\n ) : null\n )}\n </DateDropdownDays>\n </DateDropdownList>\n </Popover>\n {props?.error ? <ErrorMessage {...props?.error} size={props?.error.size ?? props.size} /> : null}\n </>\n )\n}\nfunction fixUnderscoreToZero(str: string) {\n if (str.length === 2) {\n return '0' + str[0]\n }\n return str.replace(/_/g, '0')\n}\n\nfunction fixOneToZero(str: string) {\n if (str.length === 1) {\n return '0' + str[0]\n }\n return str\n}\n","import { motion } from 'framer-motion'\nimport { PatternFormat } from 'react-number-format'\nimport styled, { css } from 'styled-components'\n\nimport { InputIsInputEffect, InputPlaceholderNiceNumber } from '@local/components/input'\nimport { getFontSizeStyles } from '@local/components/typography'\nimport { addNiceNumber, addOutline, addRemoveOutline, addRemoveScrollbar, addTransition } from '@local/styles/add'\nimport { addError } from '@local/styles/error'\nimport { addSX } from '@local/styles/sx'\nimport { KEY_SIZE_DATA } from '@local/theme/theme'\nimport { IThemeSizePropertyDefault } from '@local/theme/theme.interface'\n\nimport { DateDropdownDayProps, DateDropdownListProps, DateInputProps, DateStyledListProps, DateWrapperProps } from '.'\n\nexport const DateWrapper = styled.div<DateWrapperProps>`\n width: 100%;\n position: relative;\n height: fit-content;\n ${props =>\n props.$isMinWidth &&\n css`\n width: min-content;\n `}\n ${addSX};\n ${addNiceNumber};\n`\n\nexport const DateDropdownListParent = styled(motion.div)<DateStyledListProps>`\n ${addRemoveScrollbar};\n`\n\nexport const DateDropdownList = styled.div<DateDropdownListProps>`\n list-style: none;\n\n position: relative;\n\n display: flex;\n flex-direction: column;\n overflow: hidden;\n width: 100%;\n padding-top: 6px;\n transform: translateZ(0);\n ${InputIsInputEffect};\n justify-content: flex-start;\n gap: 10px;\n`\n\nexport const DateDropdownDays = styled.div<{ $rows: number }>`\n display: grid;\n column-gap: normal;\n row-gap: normal;\n gap: 6px;\n grid-template-columns: repeat(7, 28px);\n grid-template-rows: repeat(${props => props.$rows}, 28px);\n justify-content: space-between;\n`\n\nexport const DateDropdownDaySize = css<DateDropdownDayProps>`\n ${props =>\n props.$size &&\n DateDropdownDaySizeConstructor({\n ...KEY_SIZE_DATA[props.$size]\n })};\n position: relative;\n overflow: hidden;\n isolation: isolate;\n user-select: none;\n background: ${props => props.theme.colors.date[props.$genre].background.rest};\n border-color: ${props => props.theme.colors.date[props.$genre].border.rest};\n color: ${props => props.theme.colors.date[props.$genre].color.rest};\n border: 1px solid transparent;\n grid-row: ${props => props.$row};\n grid-column: ${props => props.$column};\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n cursor: pointer;\n &:hover {\n ${props => css`\n background: ${props.theme.colors.date[props.$genre].background.hover};\n border-color: ${props.theme.colors.date[props.$genre].border.hover};\n color: ${props.theme.colors.date[props.$genre].color.hover};\n `}\n }\n ${addTransition};\n\n ${props =>\n props.$isWeekend &&\n css`\n background: ${props.theme.colors.date[props.$genre].background.weekend};\n border-color: ${props.theme.colors.date[props.$genre].border.weekend};\n color: ${props.theme.colors.date[props.$genre].color.weekend};\n `}\n ${props =>\n props.$isToday &&\n css`\n background: ${props.theme.colors.date[props.$genre].background.today};\n border-color: ${props.theme.colors.date[props.$genre].border.today};\n color: ${props.theme.colors.date[props.$genre].color.today};\n `}\n ${props =>\n props.$isChoice &&\n css`\n background: ${props.theme.colors.date[props.$genre].background.choice};\n border-color: ${props.theme.colors.date[props.$genre].border.choice};\n color: ${props.theme.colors.date[props.$genre].color.choice};\n `}\n ${props =>\n !props.$isCurrentMonth &&\n css`\n opacity: 0.5;\n `}\n ${params => getFontSizeStyles(12, 700, params.theme.font.family)};\n\n ${addOutline};\n`\nexport const DateDropdownDaySizeConstructor = (props: IThemeSizePropertyDefault) => css`\n border-radius: ${props.radius}px;\n ${params => getFontSizeStyles(12, 700, params.theme.font.family)};\n`\n\nexport const DateDropdownDay = styled.button<DateDropdownDayProps>`\n ${DateDropdownDaySize}\n`\nexport const DateDropdownDayOfWeek = styled.button<DateDropdownDayProps>`\n ${DateDropdownDaySize}\n opacity: 1;\n background-color: transparent;\n`\n\n/****************************************** Genre *************************************************/\nconst DateInputGenre = css<DateInputProps>`\n ${props => css`\n color: ${props.theme.colors.input[props.$genre].color.rest};\n &:active {\n color: ${props.theme.colors.input[props.$genre].color.rest};\n }\n &:focus-visible {\n color: ${props.theme.colors.input[props.$genre].color.rest};\n }\n `};\n`\nexport const DateInput = styled(PatternFormat)<DateInputProps>`\n resize: none;\n overflow: hidden;\n border: 0px solid;\n background: transparent;\n padding: 0px !important;\n margin: 0px !important;\n white-space: nowrap;\n text-align: left;\n ${props => getFontSizeStyles(16, 400, 'Roboto Mono', props.theme.font.lineHeight)};\n ${DateInputGenre};\n ${InputPlaceholderNiceNumber};\n ${addRemoveOutline};\n`\n\n/****************************************** Genre *************************************************/\nconst DateInputWrapperGenre = css<DateInputProps>`\n ${props => css`\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n outline: 2px solid transparent;\n outline-offset: 1px;\n &:hover {\n background: ${props.theme.colors.input[props.$genre].background.hover};\n border-color: ${props.theme.colors.input[props.$genre].border.hover};\n color: ${props.theme.colors.input[props.$genre].color.hover};\n }\n &:has(:focus-visible),\n &:has(:active) {\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n outline: 2px solid ${props => props.theme.states.focus};\n }\n ${props.$isOpen &&\n css`\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n outline: 2px solid ${props => props.theme.states.focus};\n `}\n `};\n`\n\n/****************************************** Size *************************************************/\nexport const DateInputWrapperSize = css<DateInputProps>`\n ${props => DateInputWrapperSizeConstructor(KEY_SIZE_DATA[props.$size])};\n`\nexport const DateInputWrapperSizeConstructor = (props: IThemeSizePropertyDefault) => css`\n padding: 0px ${props.padding}px;\n height: ${props.height}px;\n min-height: ${props.height}px;\n max-height: ${props.height}px;\n border-radius: ${props.radius}px;\n`\n\nexport const DateInputWrapper = styled.div<DateInputProps>`\n resize: none;\n overflow: hidden;\n width: 100%;\n border: 1px solid transparent;\n\n white-space: nowrap;\n\n display: flex;\n align-items: center;\n gap: 0px;\n\n ${DateInputWrapperSize};\n ${DateInputWrapperGenre};\n ${addTransition};\n ${addError};\n`\n"],"names":["fixOneToZero","str","length","DateWrapper","styled","div","props","$isMinWidth","css","addSX","addNiceNumber","DateDropdownListParent","motion","addRemoveScrollbar","DateDropdownList","InputIsInputEffect","DateDropdownDays","$rows","DateDropdownDaySize","$size","DateDropdownDaySizeConstructor","KEY_SIZE_DATA","theme","colors","date","$genre","background","rest","border","color","$row","$column","hover","addTransition","$isWeekend","weekend","$isToday","today","$isChoice","choice","$isCurrentMonth","params","getFontSizeStyles","font","family","addOutline","radius","DateDropdownDay","button","DateDropdownDayOfWeek","DateInputGenre","input","DateInput","PatternFormat","lineHeight","InputPlaceholderNiceNumber","addRemoveOutline","DateInputWrapperGenre","states","focus","$isOpen","DateInputWrapperSize","DateInputWrapperSizeConstructor","padding","height","DateInputWrapper","addError","onChange","onBlur","useTheme","valueMoment","setValueMoment","useState","currentMonth","setCurrentMonth","currentYear","setCurrentYear","currentDay","setCurrentDay","inputDay","setInputDay","inputMonth","setInputMonth","inputYear","setInputYear","refDay","useRef","refMonth","refYear","activeSegment","setActiveSegment","isError","setIsError","dataDate","useMemo","mode","result","MM","type","width","ref","value","setValue","setActive","valueInput","setValueInput","placeholder","locale","inputs","month","DD","day","YYYY","year","split","map","e","trim","filter","daysInWeek","key","index","found","weeks","find","w","label","localeShort","toUpperCase","daysInMonth","moment","utc","startOfMonth","startOf","endOfMonth","endOf","days","startDate","endDate","daysToAddBefore","isoWeekday","i","clone","subtract","push","valueOf","labelString","format","labelNumber","dayOfWeek","isWeekend","weekOfMonth","Math","ceil","isToday","isSame","isCurrentMonth","isDisabled","isBefore","isAfter","currentDate","add","daysToAddAfter","sort","a","b","rows","number","count","floor","countSevens","size","isBlockNextMonth","nextMonth","isBlockPrevMonth","prevMonth","isOpen","close","reference","floating","floatingStyles","usePopover","placement","offset","isClickOutside","handleOnClose","useCallback","isCheck","handleKeyDown","test","includes","ctrlKey","metaKey","preventDefault","onChangeDate","timestamp","isBlur","isChange","momentStartDate","momentEndDate","momentCheckDate","momentNewDate","isOnClickClose","onNextMonth","newDate","onPrevMonth","useEffect","toString","setTimeout","_a","current","_b","_c","jsxs","Fragment","children","jsx","genre","$sx","sx","$isDisabled","isMinWidth","$radius","$parentListHeight","tabIndex","$error","error","onValueChange","values","sourceInfo","source","formattedValue","Number","NaN","isNaN","m","isValid","getInputRef","onFocus","target","select","replace","fixUnderscoreToZero","onKeyDown","repeat","style","readOnly","mask","pointerEvents","textAlign","Popover","default","$isInputEffect","isInputEffect","Stack","justifyContent","alignItems","Button","isRadius","icons","name","turn","isWidthAsHeight","onClick","isHidden","gap","SelectMonth","isShortLabel","monthsLocale","months","SelectYear","Ripple","ErrorMessage"],"mappings":"+mBA6mBA,SAASA,EAAaC,GACpB,OAAmB,IAAfA,EAAIC,OACC,IAAMD,EAAI,GAEZA,CACT,CCpmBO,MAAME,EAAcC,EAAOC,GAAA;;;;IAI9BC,GACAA,EAAMC,aACNC,EAAAA,GAAAA;;;IAGAC;IACAC;EAGSC,EAAyBP,EAAOQ,EAAAA,OAAOP,IAAG;IACnDQ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,EACzBxH,QAASgF,EAAIsC,UAEbkH,QAAS,IAAMrE,GAAanF,EAAIV,OAAO,GAAM,GAC7CjE,SAAU2E,EAAI2C,QACdxH,WAAY6E,EAAIuC,UAChBhH,UAAWyE,EAAIV,SAAU,MAAA/B,OAAA,EAAAA,EAAa2E,WACtCzG,gBAAiBuE,EAAI6C,eAErB2D,SAAA,CAAAC,EAAAA,kBAAAA,IAACuD,EAAAA,OAAA,CAAOlP,MAAOP,EAAMC,OAAOC,KAAKlB,EAAMmN,OAAO5L,MAAMF,OACnDoF,EAAIqC,cARArC,EAAIV,uBAepB/F,WAAO4N,OAAQV,EAAAA,kBAAAA,IAACwD,EAAAA,aAAA,IAAiB,MAAA1Q,OAAA,EAAAA,EAAO4N,MAAOvD,MAAM,MAAArK,OAAA,EAAAA,EAAO4N,MAAMvD,OAAQrK,EAAMqK,OAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.styles-Do1NYZEO.js","sources":["../src/components/image/component.tsx","../src/components/image/component.styles.tsx"],"sourcesContent":["import { FC, useEffect, useState } from 'react'\n\nimport { Skeleton } from '@local/areas/skeleton'\nimport { Stack } from '@local/components/stack'\n\nimport { ImageIMG, ImageProps } from '.'\n\nexport const Image: FC<ImageProps> = props => {\n const [isPending, setIsPending] = useState(true)\n const [isError, setIsError] = useState(false)\n\n useEffect(() => {\n setIsPending(true)\n setIsError(false)\n }, [props.src])\n return (\n <Stack\n sx={theme => ({\n ...props?.sxStack,\n default: {\n position: 'relative',\n overflow: 'hidden',\n ...(props.isShowBeforeImage\n ? {\n '&::before': {\n width: '100%',\n height: '100%',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundImage: `url(${props.src})`,\n backgroundRepeat: 'no-repeat',\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n filter: 'blur(20px)',\n transform: 'scale(1.1)',\n zIndex: 0\n }\n }\n : {}),\n ...(props?.sxStack\n ? typeof props?.sxStack === 'function'\n ? props?.sxStack(theme).default\n : props?.sxStack.default\n : {})\n }\n })}\n >\n {!isError ? (\n props.componentLoading || isPending ? (\n <Skeleton\n visible\n sx={{\n default: {\n width: '100%',\n height: '100%'\n }\n }}\n />\n ) : null\n ) : null}\n {!isError && (\n <ImageIMG\n loading=\"lazy\"\n $isPending={isPending}\n src={props.src}\n alt={props.alt}\n onLoadStart={() => setIsPending(true)}\n onLoad={() => setIsPending(false)}\n onError={() => setIsError(true)}\n $sx={props.sxImage}\n />\n )}\n {isError ? props.componentFallback || null : null}\n </Stack>\n )\n}\n","import styled from 'styled-components'\n\nimport { addTransition } from '@local/styles/add'\nimport { addSX } from '@local/styles/sx'\n\nimport { ImageIMGProps } from '.'\n\nexport const ImageIMG = styled.img<ImageIMGProps>`\n position: absolute;\n width: 100%;\n height: 100%;\n object-fit: cover;\n opacity: ${props => (props.$isPending ? 0 : 1)};\n ${addTransition};\n ${addSX};\n`\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;AAOO,MAAM,QAAwB,CAAA,UAAS;AAC5C,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,IAAI;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,YAAU,MAAM;AACd,iBAAa,IAAI;AACjB,eAAW,KAAK;AAAA,EAAA,GACf,CAAC,MAAM,GAAG,CAAC;AACd,SACEA,kCAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAI,CAAA,WAAU;AAAA,QACZ,GAAG,+BAAO;AAAA,QACV,SAAS;AAAA,UACP,UAAU;AAAA,UACV,UAAU;AAAA,UACV,GAAI,MAAM,oBACN;AAAA,YACE,aAAa;AAAA,cACX,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,SAAS;AAAA,cACT,UAAU;AAAA,cACV,OAAO;AAAA,cACP,iBAAiB,OAAO,MAAM,GAAG;AAAA,cACjC,kBAAkB;AAAA,cAClB,gBAAgB;AAAA,cAChB,oBAAoB;AAAA,cACpB,QAAQ;AAAA,cACR,WAAW;AAAA,cACX,QAAQ;AAAA,YAAA;AAAA,UACV,IAEF,CAAA;AAAA,UACJ,IAAI,+BAAO,WACP,QAAO,+BAAO,aAAY,aACxB,+BAAO,QAAQ,OAAO,UACtB,+BAAO,QAAQ,UACjB,CAAA;AAAA,QAAC;AAAA,MACP;AAAA,MAGD,UAAA;AAAA,QAAA,CAAC,UACA,MAAM,oBAAoB,YACxBC,kCAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAO;AAAA,YACP,IAAI;AAAA,cACF,SAAS;AAAA,gBACP,OAAO;AAAA,gBACP,QAAQ;AAAA,cAAA;AAAA,YACV;AAAA,UACF;AAAA,QAAA,IAEA,OACF;AAAA,QACH,CAAC,WACAA,kCAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,YAAY;AAAA,YACZ,KAAK,MAAM;AAAA,YACX,KAAK,MAAM;AAAA,YACX,aAAa,MAAM,aAAa,IAAI;AAAA,YACpC,QAAQ,MAAM,aAAa,KAAK;AAAA,YAChC,SAAS,MAAM,WAAW,IAAI;AAAA,YAC9B,KAAK,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAGd,UAAU,MAAM,qBAAqB,OAAO;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGnD;ACrEO,MAAM,WAAW,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,aAKlB,CAAA,UAAU,MAAM,aAAa,IAAI,CAAE;AAAA,IAC5C,aAAa;AAAA,IACb,KAAK;AAAA;"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs"),t=require("react"),r=require("styled-components"),s=require("./style-CtGd1JVB.cjs"),o=require("./theme.global-D6XU05Et.cjs"),i=require("./component-C52VCES6.cjs"),l=require("./style-Dm74EPGE.cjs"),n=require("./style-fRZ6xrVp.cjs"),a=r.div`
|
|
2
|
-
width: max-content;
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: flex-start;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
width: 100%;
|
|
9
|
-
${n.addSX};
|
|
10
|
-
`,c=r.css`
|
|
11
|
-
&::placeholder,
|
|
12
|
-
&::-webkit-input-placeholder {
|
|
13
|
-
${e=>i.getFontSizeStyles(16,e.$isBold?500:400,e.theme.font.family,e.theme.font.lineHeight)};
|
|
14
|
-
color: ${e=>e.theme.colors.input[e.$genre].color.placeholder};
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
&:-ms-input-placeholder {
|
|
18
|
-
${e=>i.getFontSizeStyles(16,e.$isBold?500:400,e.theme.font.family,e.theme.font.lineHeight)};
|
|
19
|
-
color: ${e=>e.theme.colors.input[e.$genre].color.placeholder};
|
|
20
|
-
opacity: 1;
|
|
21
|
-
}
|
|
22
|
-
`,d=r.css`
|
|
23
|
-
${e=>r.css`
|
|
24
|
-
background: ${e.theme.colors.input[e.$genre].background.rest};
|
|
25
|
-
border-color: ${e.theme.colors.input[e.$genre].border.rest};
|
|
26
|
-
color: ${e.theme.colors.input[e.$genre].color.rest};
|
|
27
|
-
|
|
28
|
-
&:active {
|
|
29
|
-
background: ${e.theme.colors.input[e.$genre].background.rest};
|
|
30
|
-
border-color: ${e.theme.colors.input[e.$genre].border.rest};
|
|
31
|
-
color: ${e.theme.colors.input[e.$genre].color.rest};
|
|
32
|
-
}
|
|
33
|
-
&:hover {
|
|
34
|
-
background: ${e.theme.colors.input[e.$genre].background.hover};
|
|
35
|
-
border-color: ${e.theme.colors.input[e.$genre].border.hover};
|
|
36
|
-
color: ${e.theme.colors.input[e.$genre].color.hover};
|
|
37
|
-
}
|
|
38
|
-
&:focus-visible {
|
|
39
|
-
border-color: ${e.theme.colors.input[e.$genre].border.rest};
|
|
40
|
-
background: ${e.theme.colors.input[e.$genre].background.rest};
|
|
41
|
-
color: ${e.theme.colors.input[e.$genre].color.rest};
|
|
42
|
-
}
|
|
43
|
-
`};
|
|
44
|
-
`,u=r.css`
|
|
45
|
-
${e=>h(o.KEY_SIZE_DATA[e.$size])};
|
|
46
|
-
`,h=e=>r.css`
|
|
47
|
-
padding: ${e.padding-4}px ${e.padding}px ${e.padding-6}px ${e.padding}px;
|
|
48
|
-
border-radius: ${e.radius}px;
|
|
49
|
-
`,$=r.css`
|
|
50
|
-
opacity: ${e=>e.$isDisabled?.5:1};
|
|
51
|
-
`,p=r.css`
|
|
52
|
-
${e=>e.$isTextAreaEffect&&r.css`
|
|
53
|
-
box-shadow: ${e.theme.effects.input};
|
|
54
|
-
`}
|
|
55
|
-
`,g=r.css`
|
|
56
|
-
${e=>!e.$isResize&&r.css`
|
|
57
|
-
resize: none;
|
|
58
|
-
`}
|
|
59
|
-
`,x=r.css`
|
|
60
|
-
overflow-x: hidden;
|
|
61
|
-
width: 100% !important;
|
|
62
|
-
border: 1px solid;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
text-overflow: ellipsis;
|
|
65
|
-
text-wrap: auto;
|
|
66
|
-
|
|
67
|
-
${e=>i.getFontSizeStyles(16,e.$isBold?500:400,e.theme.font.family,e.theme.font.lineHeight)};
|
|
68
|
-
|
|
69
|
-
${g};
|
|
70
|
-
${u};
|
|
71
|
-
${d};
|
|
72
|
-
${c};
|
|
73
|
-
${$};
|
|
74
|
-
${p};
|
|
75
|
-
${l.addTransitionWithoutSize};
|
|
76
|
-
${l.addOutline};
|
|
77
|
-
${s.addError};
|
|
78
|
-
`,m=r.textarea`
|
|
79
|
-
${x};
|
|
80
|
-
`;exports.StyledTextArea=m,exports.StyledTextAreaCSS=x,exports.StyledTextAreaWrapper=a,exports.TextArea=i=>{const l=r.useTheme(),n=t.useCallback(e=>{var t,r;if(i.isNoSpaces){const r=e.replace(/\s+/g,"");null==(t=i.onChange)||t.call(i,r)}else null==(r=i.onChange)||r.call(i,e)},[i]),c=t.useRef(null),d=t.useCallback(e=>{if(c.current){const t=o.KEY_SIZE_DATA[i.size].height,r=Math.max(o.KEY_SIZE_DATA[i.size].height,e);c.current.style.height=`${t}px`;const s=c.current.scrollHeight;let l=e;l=i.isAutoHeight&&!i.height?Math.max(t,Math.min(s,r)):Math.max(t,e),c.current.style.height=`${l}px`,c.current.style.minHeight=`${t}px`,c.current.style.maxHeight=`${r}px`,c.current.scrollHeight>r?c.current.style.overflowY="auto":c.current.style.overflowY="hidden"}},[i.height,i.isAutoHeight,i.size]),u=t.useCallback(()=>{if(i.height)d(i.height);else if(i.maxRows){const e=l.font.sizeDefault.default*l.font.lineHeight,t=i.maxRows?e*i.maxRows:e;d(t+2*o.KEY_SIZE_DATA[i.size].padding-8)}else d(o.KEY_SIZE_DATA[i.size].height)},[d,i.height,i.maxRows,i.size,l.font.lineHeight,l.font.sizeDefault.default]);return t.useEffect(()=>{u()},[u,i.isAutoHeight,i.value]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(a,{$isTextAreaEffect:i.isTextAreaEffect,className:i.className,$isDisabled:i.isDisabled,$sx:i.sx,children:e.jsxRuntimeExports.jsx(m,{ref:c,$isResize:i.isResize,$error:i.error,$isTextAreaEffect:i.isTextAreaEffect,$isLoading:i.isLoading,$genre:i.genre,$size:i.size,$isBold:i.isBold,$isDisabled:i.isDisabled,disabled:i.isDisabled,readOnly:i.isReadOnly,required:i.isRequired,defaultValue:i.defaultValue,value:i.value??"",placeholder:i.placeholder,onChange:e=>n(e.target.value),onBlur:i.onBlur,onFocus:i.onFocus,name:i.name,id:i.id})}),(null==i?void 0:i.error)?e.jsxRuntimeExports.jsx(s.ErrorMessage,{...i.error,size:(null==i?void 0:i.error.size)??i.size}):null]})},exports.TextAreaIsTextAreaEffect=p,exports.TextAreaPlaceholder=c,exports.TextAreaSize=u,exports.TextAreaSizeConstructor=h;
|
|
81
|
-
//# sourceMappingURL=component.styles-DpkFoWEh.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.styles-DpkFoWEh.cjs","sources":["../src/components/textarea/component.styles.ts","../src/components/textarea/component.tsx"],"sourcesContent":["import styled, { css } from 'styled-components'\n\nimport { getFontSizeStyles } from '@local/components/typography'\nimport { addOutline, addTransitionWithoutSize } from '@local/styles/add'\nimport { addError } from '@local/styles/error'\nimport { addSX } from '@local/styles/sx'\nimport { IThemeSizePropertyDefault, KEY_SIZE_DATA } from '@local/theme'\n\nimport { StyledTextAreaProps, StyledTextAreaWrapperProps } from '.'\n\n/****************************************** Wrapper *************************************************/\nexport const StyledTextAreaWrapper = styled.div<StyledTextAreaWrapperProps>`\n width: max-content;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-direction: column;\n width: 100%;\n ${addSX};\n`\n\n/****************************************** Placeholder *************************************************/\nexport const TextAreaPlaceholder = css<StyledTextAreaProps>`\n &::placeholder,\n &::-webkit-input-placeholder {\n ${props => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};\n color: ${props => props.theme.colors.input[props.$genre].color.placeholder};\n opacity: 1;\n }\n &:-ms-input-placeholder {\n ${props => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};\n color: ${props => props.theme.colors.input[props.$genre].color.placeholder};\n opacity: 1;\n }\n`\n\n/****************************************** Genre *************************************************/\nconst TextAreaGenre = css<StyledTextAreaProps>`\n ${props => css`\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n\n &:active {\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n }\n &:hover {\n background: ${props.theme.colors.input[props.$genre].background.hover};\n border-color: ${props.theme.colors.input[props.$genre].border.hover};\n color: ${props.theme.colors.input[props.$genre].color.hover};\n }\n &:focus-visible {\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n background: ${props.theme.colors.input[props.$genre].background.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n }\n `};\n`\n\n/****************************************** Size *************************************************/\nexport const TextAreaSize = css<StyledTextAreaProps>`\n ${props => TextAreaSizeConstructor(KEY_SIZE_DATA[props.$size])};\n`\nexport const TextAreaSizeConstructor = (props: IThemeSizePropertyDefault) => css`\n padding: ${props.padding - 4}px ${props.padding}px ${props.padding - 6}px ${props.padding}px;\n border-radius: ${props.radius}px;\n`\n\n/****************************************** Hidden *************************************************/\nconst TextAreaHidden = css<StyledTextAreaProps>`\n opacity: ${props => (props.$isDisabled ? 0.5 : 1)};\n`\n/****************************************** is PlaystationEffect *************************************************/\nexport const TextAreaIsTextAreaEffect = css<Pick<StyledTextAreaProps, '$isTextAreaEffect'>>`\n ${props =>\n props.$isTextAreaEffect &&\n css`\n box-shadow: ${props.theme.effects.input};\n `}\n`\n\n/****************************************** is Resize *************************************************/\nconst TextAreaIsResize = css<Pick<StyledTextAreaProps, '$isResize'>>`\n ${props =>\n !props.$isResize &&\n css`\n resize: none;\n `}\n`\n/****************************************** Default *************************************************/\nexport const StyledTextAreaCSS = css<StyledTextAreaProps>`\n overflow-x: hidden;\n width: 100% !important;\n border: 1px solid;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-wrap: auto;\n\n ${props => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};\n\n ${TextAreaIsResize};\n ${TextAreaSize};\n ${TextAreaGenre};\n ${TextAreaPlaceholder};\n ${TextAreaHidden};\n ${TextAreaIsTextAreaEffect};\n ${addTransitionWithoutSize};\n ${addOutline};\n ${addError};\n`\n\nexport const StyledTextArea = styled.textarea<StyledTextAreaProps>`\n ${StyledTextAreaCSS};\n`\n\n// /****************************************** Loading *************************************************/\n// const TextAreaStyledLoadingSize = css<StyledTextAreaProps>`\n// ${props => TextAreaStyledLoadingConstructor(KEY_SIZE_DATA[props.$size])};\n// `\n// const TextAreaStyledLoadingConstructor = (props: IThemeSizePropertyDefault) => css`\n// padding: ${props.padding - 6}px ${props.padding}px ${props.padding - 4}px ${props.padding}px;\n// `\n\n// export const TextAreaStyledLoading = styled(Loading)<StyledTextAreaProps>`\n// ${TextAreaStyledLoadingSize};\n// position: absolute;\n// display: flex;\n// align-items: center;\n// right: 0px;\n// box-sizing: content-box;\n// backdrop-filter: blur(2px);\n// mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);\n// `\n","import { useCallback, useEffect, useRef } from 'react'\nimport { useTheme } from 'styled-components'\n\nimport { ErrorMessage } from '@local/styles/error'\nimport { KEY_SIZE_DATA } from '@local/theme/theme'\n\nimport { StyledTextArea, StyledTextAreaWrapper, TextAreaProps } from '.'\n\nexport const TextArea = (props: TextAreaProps) => {\n const theme = useTheme()\n const handleOnChange = useCallback(\n (value: string) => {\n if (props.isNoSpaces) {\n const valueWithoutSpaces = value.replace(/\\s+/g, '')\n props.onChange?.(valueWithoutSpaces)\n } else {\n props.onChange?.(value)\n }\n },\n [props]\n )\n\n const textareaRef = useRef<HTMLTextAreaElement>(null)\n\n const handleHeight = useCallback(\n (contentHeight: number) => {\n if (textareaRef.current) {\n const minHeight = KEY_SIZE_DATA[props.size].height\n const maxHeight = Math.max(KEY_SIZE_DATA[props.size].height, contentHeight)\n\n textareaRef.current.style.height = `${minHeight}px`\n const scrollHeight = textareaRef.current.scrollHeight\n\n let newHeight = contentHeight\n if (props.isAutoHeight && !props.height) {\n newHeight = Math.max(minHeight, Math.min(scrollHeight, maxHeight))\n } else {\n newHeight = Math.max(minHeight, contentHeight)\n }\n\n textareaRef.current.style.height = `${newHeight}px`\n textareaRef.current.style.minHeight = `${minHeight}px`\n textareaRef.current.style.maxHeight = `${maxHeight}px`\n\n if (textareaRef.current.scrollHeight > maxHeight) {\n textareaRef.current.style.overflowY = 'auto'\n } else {\n textareaRef.current.style.overflowY = 'hidden'\n }\n }\n },\n [props.height, props.isAutoHeight, props.size]\n )\n const checkHeight = useCallback(() => {\n if (props.height) {\n handleHeight(props.height)\n } else {\n if (props.maxRows) {\n const lineHeight = theme.font.sizeDefault.default * theme.font.lineHeight\n const initialHeight = props.maxRows ? lineHeight * props.maxRows : lineHeight\n handleHeight(initialHeight + KEY_SIZE_DATA[props.size].padding * 2 - 8)\n } else {\n handleHeight(KEY_SIZE_DATA[props.size].height)\n }\n }\n }, [handleHeight, props.height, props.maxRows, props.size, theme.font.lineHeight, theme.font.sizeDefault.default])\n\n useEffect(() => {\n checkHeight()\n }, [checkHeight, props.isAutoHeight, props.value])\n\n return (\n <>\n <StyledTextAreaWrapper\n $isTextAreaEffect={props.isTextAreaEffect}\n className={props.className}\n $isDisabled={props.isDisabled}\n $sx={props.sx}\n >\n <StyledTextArea\n ref={textareaRef}\n $isResize={props.isResize}\n $error={props.error}\n $isTextAreaEffect={props.isTextAreaEffect}\n $isLoading={props.isLoading}\n $genre={props.genre}\n $size={props.size}\n $isBold={props.isBold}\n $isDisabled={props.isDisabled}\n disabled={props.isDisabled}\n readOnly={props.isReadOnly}\n required={props.isRequired}\n defaultValue={props.defaultValue}\n value={props.value ?? ''}\n placeholder={props.placeholder}\n onChange={event => handleOnChange(event.target.value)}\n onBlur={props.onBlur}\n onFocus={props.onFocus}\n name={props.name}\n id={props.id}\n />\n {/* {props.isLoading && (\n <TextAreaStyledLoading\n $genre={props.genre}\n $size={props.size}\n size={props.size}\n color={theme.colors.input[props.genre].color.rest}\n />\n )} */}\n </StyledTextAreaWrapper>\n {props?.error ? <ErrorMessage {...props.error} size={props?.error.size ?? props.size} /> : null}\n </>\n )\n}\n"],"names":["StyledTextAreaWrapper","styled","div","addSX","TextAreaPlaceholder","css","props","getFontSizeStyles","$isBold","theme","font","family","lineHeight","colors","input","$genre","color","placeholder","TextAreaGenre","background","rest","border","hover","TextAreaSize","TextAreaSizeConstructor","KEY_SIZE_DATA","$size","padding","radius","TextAreaHidden","$isDisabled","TextAreaIsTextAreaEffect","$isTextAreaEffect","effects","TextAreaIsResize","$isResize","StyledTextAreaCSS","addTransitionWithoutSize","addOutline","addError","StyledTextArea","textarea","useTheme","handleOnChange","useCallback","value","isNoSpaces","valueWithoutSpaces","replace","_a","onChange","call","_b","textareaRef","useRef","handleHeight","contentHeight","current","minHeight","size","height","maxHeight","Math","max","style","scrollHeight","newHeight","isAutoHeight","min","overflowY","checkHeight","maxRows","sizeDefault","default","initialHeight","useEffect","jsxs","Fragment","children","jsx","isTextAreaEffect","className","isDisabled","$sx","sx","ref","isResize","$error","error","$isLoading","isLoading","genre","isBold","disabled","readOnly","isReadOnly","required","isRequired","defaultValue","event","target","onBlur","onFocus","name","id","ErrorMessage"],"mappings":"kSAWaA,EAAwBC,EAAOC,GAAA;;;;;;;;IAQxCC;EAISC,EAAsBC,EAAAA,GAAAA;;;MAG7BC,GAASC,oBAAkB,GAAID,EAAME,QAAU,IAAM,IAAKF,EAAMG,MAAMC,KAAKC,OAAQL,EAAMG,MAAMC,KAAKE;aAC7FN,GAASA,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQC,MAAMC;;;;MAI7DX,GAASC,oBAAkB,GAAID,EAAME,QAAU,IAAM,IAAKF,EAAMG,MAAMC,KAAKC,OAAQL,EAAMG,MAAMC,KAAKE;aAC7FN,GAASA,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQC,MAAMC;;;EAM7DC,EAAgBb,EAAAA,GAAAA;IAClBC,GAASD,EAAAA,GAAAA;kBACKC,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQI,WAAWC;oBAChDd,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQM,OAAOD;aACrDd,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQC,MAAMI;;;oBAGtCd,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQI,WAAWC;sBAChDd,EAAMG,MAAMI,OAAOC,MAAMR,EAAMS,QAAQM,OAA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,EAAAA,cAAcnB,EAAMqD,MAAMC,SAG1C,CAACL,EAAcjD,EAAMsD,OAAQtD,EAAMiE,QAASjE,EAAMqD,KAAMlD,EAAMC,KAAKE,WAAYH,EAAMC,KAAK8D,YAAYC,UAMzG,OAJAE,EAAAA,UAAU,KACRL,KACC,CAACA,EAAahE,EAAM6D,aAAc7D,EAAMuC,UAGzC+B,kBAAAA,KAAAC,6BAAA,CACEC,SAAA,GAAAC,kBAAAA,IAAC/E,EAAA,CACCgC,kBAAmB1B,EAAM0E,iBACzBC,UAAW3E,EAAM2E,UACjBnD,YAAaxB,EAAM4E,WACnBC,IAAK7E,EAAM8E,GAEXN,WAAAC,kBAAAA,IAACvC,EAAA,CACC6C,IAAKhC,EACLlB,UAAW7B,EAAMgF,SACjBC,OAAQjF,EAAMkF,MACdxD,kBAAmB1B,EAAM0E,iBACzBS,WAAYnF,EAAMoF,UAClB3E,OAAQT,EAAMqF,MACdjE,MAAOpB,EAAMqD,KACbnD,QAASF,EAAMsF,OACf9D,YAAaxB,EAAM4E,WACnBW,SAAUvF,EAAM4E,WAChBY,SAAUxF,EAAMyF,WAChBC,SAAU1F,EAAM2F,WAChBC,aAAc5F,EAAM4F,aACpBrD,MAAOvC,EAAMuC,OAAS,GACtB5B,YAAaX,EAAMW,YACnBiC,SAAUiD,GAASxD,EAAewD,EAAMC,OAAOvD,OAC/CwD,OAAQ/F,EAAM+F,OACdC,QAAShG,EAAMgG,QACfC,KAAMjG,EAAMiG,KACZC,GAAIlG,EAAMkG,cAWblG,WAAOkF,OAAQT,EAAAA,kBAAAA,IAAC0B,EAAAA,aAAA,IAAiBnG,EAAMkF,MAAO7B,MAAM,MAAArD,OAAA,EAAAA,EAAOkF,MAAM7B,OAAQrD,EAAMqD,OAAW"}
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./jsx-runtime-BrDlu8eK.js";
|
|
2
|
-
import { useCallback, useRef, useEffect } from "react";
|
|
3
|
-
import styled, { useTheme, css } from "styled-components";
|
|
4
|
-
import { b as ErrorMessage, a as addError } from "./style-DeAgDHyI.js";
|
|
5
|
-
import { K as KEY_SIZE_DATA } from "./theme.global-bN9HlSWE.js";
|
|
6
|
-
import { g as getFontSizeStyles } from "./component-C2JFFh-k.js";
|
|
7
|
-
import { c as addTransitionWithoutSize, f as addOutline } from "./style-CEGJOjRW.js";
|
|
8
|
-
import { a as addSX } from "./style-plT9Ah7t.js";
|
|
9
|
-
const TextArea = (props) => {
|
|
10
|
-
const theme = useTheme();
|
|
11
|
-
const handleOnChange = useCallback(
|
|
12
|
-
(value) => {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
if (props.isNoSpaces) {
|
|
15
|
-
const valueWithoutSpaces = value.replace(/\s+/g, "");
|
|
16
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, valueWithoutSpaces);
|
|
17
|
-
} else {
|
|
18
|
-
(_b = props.onChange) == null ? void 0 : _b.call(props, value);
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
[props]
|
|
22
|
-
);
|
|
23
|
-
const textareaRef = useRef(null);
|
|
24
|
-
const handleHeight = useCallback(
|
|
25
|
-
(contentHeight) => {
|
|
26
|
-
if (textareaRef.current) {
|
|
27
|
-
const minHeight = KEY_SIZE_DATA[props.size].height;
|
|
28
|
-
const maxHeight = Math.max(KEY_SIZE_DATA[props.size].height, contentHeight);
|
|
29
|
-
textareaRef.current.style.height = `${minHeight}px`;
|
|
30
|
-
const scrollHeight = textareaRef.current.scrollHeight;
|
|
31
|
-
let newHeight = contentHeight;
|
|
32
|
-
if (props.isAutoHeight && !props.height) {
|
|
33
|
-
newHeight = Math.max(minHeight, Math.min(scrollHeight, maxHeight));
|
|
34
|
-
} else {
|
|
35
|
-
newHeight = Math.max(minHeight, contentHeight);
|
|
36
|
-
}
|
|
37
|
-
textareaRef.current.style.height = `${newHeight}px`;
|
|
38
|
-
textareaRef.current.style.minHeight = `${minHeight}px`;
|
|
39
|
-
textareaRef.current.style.maxHeight = `${maxHeight}px`;
|
|
40
|
-
if (textareaRef.current.scrollHeight > maxHeight) {
|
|
41
|
-
textareaRef.current.style.overflowY = "auto";
|
|
42
|
-
} else {
|
|
43
|
-
textareaRef.current.style.overflowY = "hidden";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
[props.height, props.isAutoHeight, props.size]
|
|
48
|
-
);
|
|
49
|
-
const checkHeight = useCallback(() => {
|
|
50
|
-
if (props.height) {
|
|
51
|
-
handleHeight(props.height);
|
|
52
|
-
} else {
|
|
53
|
-
if (props.maxRows) {
|
|
54
|
-
const lineHeight = theme.font.sizeDefault.default * theme.font.lineHeight;
|
|
55
|
-
const initialHeight = props.maxRows ? lineHeight * props.maxRows : lineHeight;
|
|
56
|
-
handleHeight(initialHeight + KEY_SIZE_DATA[props.size].padding * 2 - 8);
|
|
57
|
-
} else {
|
|
58
|
-
handleHeight(KEY_SIZE_DATA[props.size].height);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}, [handleHeight, props.height, props.maxRows, props.size, theme.font.lineHeight, theme.font.sizeDefault.default]);
|
|
62
|
-
useEffect(() => {
|
|
63
|
-
checkHeight();
|
|
64
|
-
}, [checkHeight, props.isAutoHeight, props.value]);
|
|
65
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
66
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67
|
-
StyledTextAreaWrapper,
|
|
68
|
-
{
|
|
69
|
-
$isTextAreaEffect: props.isTextAreaEffect,
|
|
70
|
-
className: props.className,
|
|
71
|
-
$isDisabled: props.isDisabled,
|
|
72
|
-
$sx: props.sx,
|
|
73
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74
|
-
StyledTextArea,
|
|
75
|
-
{
|
|
76
|
-
ref: textareaRef,
|
|
77
|
-
$isResize: props.isResize,
|
|
78
|
-
$error: props.error,
|
|
79
|
-
$isTextAreaEffect: props.isTextAreaEffect,
|
|
80
|
-
$isLoading: props.isLoading,
|
|
81
|
-
$genre: props.genre,
|
|
82
|
-
$size: props.size,
|
|
83
|
-
$isBold: props.isBold,
|
|
84
|
-
$isDisabled: props.isDisabled,
|
|
85
|
-
disabled: props.isDisabled,
|
|
86
|
-
readOnly: props.isReadOnly,
|
|
87
|
-
required: props.isRequired,
|
|
88
|
-
defaultValue: props.defaultValue,
|
|
89
|
-
value: props.value ?? "",
|
|
90
|
-
placeholder: props.placeholder,
|
|
91
|
-
onChange: (event) => handleOnChange(event.target.value),
|
|
92
|
-
onBlur: props.onBlur,
|
|
93
|
-
onFocus: props.onFocus,
|
|
94
|
-
name: props.name,
|
|
95
|
-
id: props.id
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
(props == null ? void 0 : props.error) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { ...props.error, size: (props == null ? void 0 : props.error.size) ?? props.size }) : null
|
|
101
|
-
] });
|
|
102
|
-
};
|
|
103
|
-
const StyledTextAreaWrapper = styled.div`
|
|
104
|
-
width: max-content;
|
|
105
|
-
position: relative;
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
justify-content: flex-start;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
width: 100%;
|
|
111
|
-
${addSX};
|
|
112
|
-
`;
|
|
113
|
-
const TextAreaPlaceholder = css`
|
|
114
|
-
&::placeholder,
|
|
115
|
-
&::-webkit-input-placeholder {
|
|
116
|
-
${(props) => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};
|
|
117
|
-
color: ${(props) => props.theme.colors.input[props.$genre].color.placeholder};
|
|
118
|
-
opacity: 1;
|
|
119
|
-
}
|
|
120
|
-
&:-ms-input-placeholder {
|
|
121
|
-
${(props) => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};
|
|
122
|
-
color: ${(props) => props.theme.colors.input[props.$genre].color.placeholder};
|
|
123
|
-
opacity: 1;
|
|
124
|
-
}
|
|
125
|
-
`;
|
|
126
|
-
const TextAreaGenre = css`
|
|
127
|
-
${(props) => css`
|
|
128
|
-
background: ${props.theme.colors.input[props.$genre].background.rest};
|
|
129
|
-
border-color: ${props.theme.colors.input[props.$genre].border.rest};
|
|
130
|
-
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
131
|
-
|
|
132
|
-
&:active {
|
|
133
|
-
background: ${props.theme.colors.input[props.$genre].background.rest};
|
|
134
|
-
border-color: ${props.theme.colors.input[props.$genre].border.rest};
|
|
135
|
-
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
136
|
-
}
|
|
137
|
-
&:hover {
|
|
138
|
-
background: ${props.theme.colors.input[props.$genre].background.hover};
|
|
139
|
-
border-color: ${props.theme.colors.input[props.$genre].border.hover};
|
|
140
|
-
color: ${props.theme.colors.input[props.$genre].color.hover};
|
|
141
|
-
}
|
|
142
|
-
&:focus-visible {
|
|
143
|
-
border-color: ${props.theme.colors.input[props.$genre].border.rest};
|
|
144
|
-
background: ${props.theme.colors.input[props.$genre].background.rest};
|
|
145
|
-
color: ${props.theme.colors.input[props.$genre].color.rest};
|
|
146
|
-
}
|
|
147
|
-
`};
|
|
148
|
-
`;
|
|
149
|
-
const TextAreaSize = css`
|
|
150
|
-
${(props) => TextAreaSizeConstructor(KEY_SIZE_DATA[props.$size])};
|
|
151
|
-
`;
|
|
152
|
-
const TextAreaSizeConstructor = (props) => css`
|
|
153
|
-
padding: ${props.padding - 4}px ${props.padding}px ${props.padding - 6}px ${props.padding}px;
|
|
154
|
-
border-radius: ${props.radius}px;
|
|
155
|
-
`;
|
|
156
|
-
const TextAreaHidden = css`
|
|
157
|
-
opacity: ${(props) => props.$isDisabled ? 0.5 : 1};
|
|
158
|
-
`;
|
|
159
|
-
const TextAreaIsTextAreaEffect = css`
|
|
160
|
-
${(props) => props.$isTextAreaEffect && css`
|
|
161
|
-
box-shadow: ${props.theme.effects.input};
|
|
162
|
-
`}
|
|
163
|
-
`;
|
|
164
|
-
const TextAreaIsResize = css`
|
|
165
|
-
${(props) => !props.$isResize && css`
|
|
166
|
-
resize: none;
|
|
167
|
-
`}
|
|
168
|
-
`;
|
|
169
|
-
const StyledTextAreaCSS = css`
|
|
170
|
-
overflow-x: hidden;
|
|
171
|
-
width: 100% !important;
|
|
172
|
-
border: 1px solid;
|
|
173
|
-
white-space: nowrap;
|
|
174
|
-
text-overflow: ellipsis;
|
|
175
|
-
text-wrap: auto;
|
|
176
|
-
|
|
177
|
-
${(props) => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};
|
|
178
|
-
|
|
179
|
-
${TextAreaIsResize};
|
|
180
|
-
${TextAreaSize};
|
|
181
|
-
${TextAreaGenre};
|
|
182
|
-
${TextAreaPlaceholder};
|
|
183
|
-
${TextAreaHidden};
|
|
184
|
-
${TextAreaIsTextAreaEffect};
|
|
185
|
-
${addTransitionWithoutSize};
|
|
186
|
-
${addOutline};
|
|
187
|
-
${addError};
|
|
188
|
-
`;
|
|
189
|
-
const StyledTextArea = styled.textarea`
|
|
190
|
-
${StyledTextAreaCSS};
|
|
191
|
-
`;
|
|
192
|
-
export {
|
|
193
|
-
StyledTextAreaWrapper as S,
|
|
194
|
-
TextArea as T,
|
|
195
|
-
TextAreaPlaceholder as a,
|
|
196
|
-
TextAreaSize as b,
|
|
197
|
-
TextAreaSizeConstructor as c,
|
|
198
|
-
TextAreaIsTextAreaEffect as d,
|
|
199
|
-
StyledTextAreaCSS as e,
|
|
200
|
-
StyledTextArea as f
|
|
201
|
-
};
|
|
202
|
-
//# sourceMappingURL=component.styles-DqsBDAEo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.styles-DqsBDAEo.js","sources":["../src/components/textarea/component.tsx","../src/components/textarea/component.styles.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react'\nimport { useTheme } from 'styled-components'\n\nimport { ErrorMessage } from '@local/styles/error'\nimport { KEY_SIZE_DATA } from '@local/theme/theme'\n\nimport { StyledTextArea, StyledTextAreaWrapper, TextAreaProps } from '.'\n\nexport const TextArea = (props: TextAreaProps) => {\n const theme = useTheme()\n const handleOnChange = useCallback(\n (value: string) => {\n if (props.isNoSpaces) {\n const valueWithoutSpaces = value.replace(/\\s+/g, '')\n props.onChange?.(valueWithoutSpaces)\n } else {\n props.onChange?.(value)\n }\n },\n [props]\n )\n\n const textareaRef = useRef<HTMLTextAreaElement>(null)\n\n const handleHeight = useCallback(\n (contentHeight: number) => {\n if (textareaRef.current) {\n const minHeight = KEY_SIZE_DATA[props.size].height\n const maxHeight = Math.max(KEY_SIZE_DATA[props.size].height, contentHeight)\n\n textareaRef.current.style.height = `${minHeight}px`\n const scrollHeight = textareaRef.current.scrollHeight\n\n let newHeight = contentHeight\n if (props.isAutoHeight && !props.height) {\n newHeight = Math.max(minHeight, Math.min(scrollHeight, maxHeight))\n } else {\n newHeight = Math.max(minHeight, contentHeight)\n }\n\n textareaRef.current.style.height = `${newHeight}px`\n textareaRef.current.style.minHeight = `${minHeight}px`\n textareaRef.current.style.maxHeight = `${maxHeight}px`\n\n if (textareaRef.current.scrollHeight > maxHeight) {\n textareaRef.current.style.overflowY = 'auto'\n } else {\n textareaRef.current.style.overflowY = 'hidden'\n }\n }\n },\n [props.height, props.isAutoHeight, props.size]\n )\n const checkHeight = useCallback(() => {\n if (props.height) {\n handleHeight(props.height)\n } else {\n if (props.maxRows) {\n const lineHeight = theme.font.sizeDefault.default * theme.font.lineHeight\n const initialHeight = props.maxRows ? lineHeight * props.maxRows : lineHeight\n handleHeight(initialHeight + KEY_SIZE_DATA[props.size].padding * 2 - 8)\n } else {\n handleHeight(KEY_SIZE_DATA[props.size].height)\n }\n }\n }, [handleHeight, props.height, props.maxRows, props.size, theme.font.lineHeight, theme.font.sizeDefault.default])\n\n useEffect(() => {\n checkHeight()\n }, [checkHeight, props.isAutoHeight, props.value])\n\n return (\n <>\n <StyledTextAreaWrapper\n $isTextAreaEffect={props.isTextAreaEffect}\n className={props.className}\n $isDisabled={props.isDisabled}\n $sx={props.sx}\n >\n <StyledTextArea\n ref={textareaRef}\n $isResize={props.isResize}\n $error={props.error}\n $isTextAreaEffect={props.isTextAreaEffect}\n $isLoading={props.isLoading}\n $genre={props.genre}\n $size={props.size}\n $isBold={props.isBold}\n $isDisabled={props.isDisabled}\n disabled={props.isDisabled}\n readOnly={props.isReadOnly}\n required={props.isRequired}\n defaultValue={props.defaultValue}\n value={props.value ?? ''}\n placeholder={props.placeholder}\n onChange={event => handleOnChange(event.target.value)}\n onBlur={props.onBlur}\n onFocus={props.onFocus}\n name={props.name}\n id={props.id}\n />\n {/* {props.isLoading && (\n <TextAreaStyledLoading\n $genre={props.genre}\n $size={props.size}\n size={props.size}\n color={theme.colors.input[props.genre].color.rest}\n />\n )} */}\n </StyledTextAreaWrapper>\n {props?.error ? <ErrorMessage {...props.error} size={props?.error.size ?? props.size} /> : null}\n </>\n )\n}\n","import styled, { css } from 'styled-components'\n\nimport { getFontSizeStyles } from '@local/components/typography'\nimport { addOutline, addTransitionWithoutSize } from '@local/styles/add'\nimport { addError } from '@local/styles/error'\nimport { addSX } from '@local/styles/sx'\nimport { IThemeSizePropertyDefault, KEY_SIZE_DATA } from '@local/theme'\n\nimport { StyledTextAreaProps, StyledTextAreaWrapperProps } from '.'\n\n/****************************************** Wrapper *************************************************/\nexport const StyledTextAreaWrapper = styled.div<StyledTextAreaWrapperProps>`\n width: max-content;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-direction: column;\n width: 100%;\n ${addSX};\n`\n\n/****************************************** Placeholder *************************************************/\nexport const TextAreaPlaceholder = css<StyledTextAreaProps>`\n &::placeholder,\n &::-webkit-input-placeholder {\n ${props => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};\n color: ${props => props.theme.colors.input[props.$genre].color.placeholder};\n opacity: 1;\n }\n &:-ms-input-placeholder {\n ${props => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};\n color: ${props => props.theme.colors.input[props.$genre].color.placeholder};\n opacity: 1;\n }\n`\n\n/****************************************** Genre *************************************************/\nconst TextAreaGenre = css<StyledTextAreaProps>`\n ${props => css`\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n\n &:active {\n background: ${props.theme.colors.input[props.$genre].background.rest};\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n }\n &:hover {\n background: ${props.theme.colors.input[props.$genre].background.hover};\n border-color: ${props.theme.colors.input[props.$genre].border.hover};\n color: ${props.theme.colors.input[props.$genre].color.hover};\n }\n &:focus-visible {\n border-color: ${props.theme.colors.input[props.$genre].border.rest};\n background: ${props.theme.colors.input[props.$genre].background.rest};\n color: ${props.theme.colors.input[props.$genre].color.rest};\n }\n `};\n`\n\n/****************************************** Size *************************************************/\nexport const TextAreaSize = css<StyledTextAreaProps>`\n ${props => TextAreaSizeConstructor(KEY_SIZE_DATA[props.$size])};\n`\nexport const TextAreaSizeConstructor = (props: IThemeSizePropertyDefault) => css`\n padding: ${props.padding - 4}px ${props.padding}px ${props.padding - 6}px ${props.padding}px;\n border-radius: ${props.radius}px;\n`\n\n/****************************************** Hidden *************************************************/\nconst TextAreaHidden = css<StyledTextAreaProps>`\n opacity: ${props => (props.$isDisabled ? 0.5 : 1)};\n`\n/****************************************** is PlaystationEffect *************************************************/\nexport const TextAreaIsTextAreaEffect = css<Pick<StyledTextAreaProps, '$isTextAreaEffect'>>`\n ${props =>\n props.$isTextAreaEffect &&\n css`\n box-shadow: ${props.theme.effects.input};\n `}\n`\n\n/****************************************** is Resize *************************************************/\nconst TextAreaIsResize = css<Pick<StyledTextAreaProps, '$isResize'>>`\n ${props =>\n !props.$isResize &&\n css`\n resize: none;\n `}\n`\n/****************************************** Default *************************************************/\nexport const StyledTextAreaCSS = css<StyledTextAreaProps>`\n overflow-x: hidden;\n width: 100% !important;\n border: 1px solid;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-wrap: auto;\n\n ${props => getFontSizeStyles(16, props.$isBold ? 500 : 400, props.theme.font.family, props.theme.font.lineHeight)};\n\n ${TextAreaIsResize};\n ${TextAreaSize};\n ${TextAreaGenre};\n ${TextAreaPlaceholder};\n ${TextAreaHidden};\n ${TextAreaIsTextAreaEffect};\n ${addTransitionWithoutSize};\n ${addOutline};\n ${addError};\n`\n\nexport const StyledTextArea = styled.textarea<StyledTextAreaProps>`\n ${StyledTextAreaCSS};\n`\n\n// /****************************************** Loading *************************************************/\n// const TextAreaStyledLoadingSize = css<StyledTextAreaProps>`\n// ${props => TextAreaStyledLoadingConstructor(KEY_SIZE_DATA[props.$size])};\n// `\n// const TextAreaStyledLoadingConstructor = (props: IThemeSizePropertyDefault) => css`\n// padding: ${props.padding - 6}px ${props.padding}px ${props.padding - 4}px ${props.padding}px;\n// `\n\n// export const TextAreaStyledLoading = styled(Loading)<StyledTextAreaProps>`\n// ${TextAreaStyledLoadingSize};\n// position: absolute;\n// display: flex;\n// align-items: center;\n// right: 0px;\n// box-sizing: content-box;\n// backdrop-filter: blur(2px);\n// mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);\n// `\n"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;;;;AAQO,MAAM,WAAW,CAAC,UAAyB;AAChD,QAAM,QAAQ,SAAA;AACd,QAAM,iBAAiB;AAAA,IACrB,CAAC,UAAkB;;AACjB,UAAI,MAAM,YAAY;AACpB,cAAM,qBAAqB,MAAM,QAAQ,QAAQ,EAAE;AACnD,oBAAM,aAAN,+BAAiB;AAAA,MAAkB,OAC9B;AACL,oBAAM,aAAN,+BAAiB;AA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