visits-style 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/visits-style.cjs.development.js +45 -93
- package/dist/visits-style.cjs.development.js.map +1 -1
- package/dist/visits-style.cjs.production.min.js +1 -1
- package/dist/visits-style.cjs.production.min.js.map +1 -1
- package/dist/visits-style.esm.js +46 -94
- package/dist/visits-style.esm.js.map +1 -1
- package/package.json +9 -7
- package/dist/hooks/usePopper.d.ts +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visits-style.cjs.production.min.js","sources":["../src/forms/Field/index.tsx","../src/utils/findColorInvert.ts","../src/utils/hambuger.ts","../src/utils/boxShadow.ts","../src/utils/setSize.ts","../src/utils/media.ts","../src/utils/disabledColor.ts","../src/forms/HelpMessage.tsx","../src/forms/TextInput/index.tsx","../src/forms/Textarea/index.tsx","../src/utils/isClient.ts","../src/hooks/useIsomorphicLayoutEffect.ts","../src/forms/Checkbox/index.tsx","../src/elements/Icons/ArrowDown.tsx","../src/forms/Select/index.tsx","../src/forms/Radio/index.tsx","../src/forms/Switch/index.tsx","../src/components/Accordion/index.tsx","../src/utils/setAlign.ts","../src/components/AppBar/index.tsx","../src/components/Portal/index.tsx","../src/hooks/usePopper.ts","../src/utils/wrapEvent.ts","../src/components/Tooltip/index.tsx","../src/elements/Box/index.tsx","../src/components/Card/index.tsx","../src/components/Popover/index.tsx","../src/hooks/useScrollFix.ts","../src/components/Modal/index.tsx","../src/elements/Icons/Close.tsx","../src/components/Toast/index.tsx","../src/components/Spinner/index.tsx","../src/elements/Grid/Container.ts","../src/elements/Grid/Row.ts","../src/elements/Grid/Col.ts","../src/elements/Content/index.ts","../src/elements/Placeholder/index.tsx","../src/elements/Button/index.ts","../src/elements/Button/TextButton.tsx","../src/elements/Button/ButtonGroup.ts","../src/elements/Table/index.ts","../src/elements/Progress/index.tsx","../src/elements/Divider/index.ts","../src/elements/Tag/index.tsx","../src/styles/normalize.ts","../src/elements/Icons/Approved.tsx","../src/elements/Icons/ChevronLeftRound.tsx","../src/elements/Icons/ChevronRightRound.tsx","../src/elements/Icons/FileRound.tsx","../src/elements/Icons/Pencil.tsx","../src/elements/Icons/PencilSimple.tsx","../src/elements/Icons/Plus.tsx","../src/elements/Icons/Refresh.tsx","../src/elements/Icons/User.tsx","../src/utils/arrow.ts","../src/theme.ts"],"sourcesContent":["import React, { ReactNode, HTMLAttributes } from 'react';\nimport styled from 'styled-components';\n\nconst Wrapper = styled.div`\n display: block;\n margin: 1.5rem 0;\n`;\n\nconst Label = styled.h5`\n display: block;\n font-size: 1rem;\n font-weight: normal;\n margin-bottom: 0.625rem;\n text-align: left;\n color: ${({ theme }) => theme.textStrong};\n\n & > i {\n color: ${({ theme }) => theme.primary};\n margin-left: 0.325rem;\n }\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n label?: string;\n children: ReactNode;\n required?: boolean;\n}\n\nexport default function Field({ label, children, required, ...rest }: Props) {\n return (\n <Wrapper {...rest}>\n {label && (\n <Label>\n {label}\n {required && (<i>*</i>)}\n </Label>\n )}\n {children}\n </Wrapper>\n );\n}\n","import { getLuminance } from 'polished';\nimport { ThemeType } from '../types';\n\nexport default function findColorInvert({ black, white }: ThemeType, color: string) {\n if (!color || getLuminance(color) > 0.55) {\n return black;\n }\n return white;\n}\n","import { css } from 'styled-components';\n\nexport default function hamburger(size: string) {\n return css`\n display: block;\n position: relative;\n height: ${size};\n width: ${size};\n\n cursor: pointer;\n span {\n background-color: currentColor;\n display: block;\n height: 1px;\n left: calc(50% - 8px);\n position: absolute;\n transform-origin: center;\n transition-duration: 100ms;\n transition-property: background-color, opacity, transform;\n transition-timing-function: ease-out;\n width: 16px;\n\n &:nth-child(1) {\n top: calc(50% - 6px);\n }\n &:nth-child(2) {\n top: calc(50% - 1px);\n }\n &:nth-child(3) {\n top: calc(50% + 4px);\n }\n\n &:hover {\n background-color: rgba(black, 0.05);\n }\n }\n\n &.active span {\n &:nth-child(1) {\n transform: translateY(5px) rotate(45deg);\n }\n &:nth-child(2) {\n opacity: 0;\n }\n &:nth-child(3) {\n transform: translateY(-5px) rotate(-45deg);\n }\n }\n `;\n}\n","import { css } from 'styled-components';\nimport { transparentize } from 'polished';\n\nexport default function boxShadow(size: string, color: string, amount?: number) {\n const shadowColor = amount ? transparentize(amount, color) : color;\n return css`box-shadow: 0 0 0 ${size} ${shadowColor};`;\n}\n","import { SizeType } from '../types';\n\ntype SizePropsNameType = 'font-size' | 'height';\n\nexport default function setSize(name: SizePropsNameType, size?: SizeType) {\n switch (size) {\n case 'small':\n return `${name}: 0.75rem;`;\n case 'medium':\n return `${name}: 1.25rem;`;\n case 'large':\n return `${name}: 1.5rem;`;\n default:\n return `${name}: 1rem;`;\n }\n}\n","import { ThemeType } from '../types';\n\ninterface Props {\n theme: ThemeType;\n}\n\nexport function mediaMobile({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.mobile})`;\n}\n\nexport function mediaTablet({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.tablet})`;\n}\n\nexport function mediaDesktop({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.desktop})`;\n}\n\nexport function mediaFullHD({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.fullhd})`;\n}\n\nexport function mediaUntilFullHD({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (min-width: ${theme.media.fullhd})`;\n}\n","import { css } from 'styled-components';\nimport { transparentize } from 'polished';\nimport { ThemeType } from '../types';\n\nexport default function disabledColor(theme: ThemeType) {\n const textColor = transparentize(0.15, theme.textDark);\n const backColor = transparentize(0.55, theme.border);\n return css`\n pointer-events: none;\n box-shadow: none;\n color: ${textColor};\n background-color: ${backColor};\n `;\n}\n","import React from 'react';\nimport styled from 'styled-components';\n\ninterface MsgProps {\n error?: boolean;\n}\n\nconst Message = styled.small<MsgProps>`\n font-size: 0.8rem;\n color: ${({ error, theme }) => (error ? theme.danger : theme.textLight)};\n`;\n\ninterface Props {\n help?: string;\n error?: string;\n noErrorMessage?: boolean;\n}\n\nexport default function HelpMessage({ help, error, noErrorMessage }: Props) {\n if (error && !noErrorMessage) return (<Message error>{error}</Message>);\n if (help) return (<Message>{help}</Message>);\n return null;\n}\n","import React, { InputHTMLAttributes, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport { setSize } from '../../utils';\nimport disabledColor from '../../utils/disabledColor';\nimport HelpMessage from '../HelpMessage';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n placeholder?: string;\n /**\n * 'text' | 'number' | 'password' | 'email' | 'tel' | 'search'\n * @default 'text'\n */\n type?: 'text' | 'number' | 'password' | 'email' | 'tel' | 'search';\n /** エラーの発生時の表示テキスト */\n error?: string | any;\n /** 捕捉テキスト */\n help?: string | any;\n /** ボックス系のデザインでする */\n outline?: boolean;\n /** 左側のアイコン */\n leftIcon?: any;\n /** 右側のアイコン */\n rightIcon?: any;\n /** エラーが発生しても、エラーメッセージを出さないようにする */\n noErrorMessage?: boolean;\n}\n\nfunction TextInput({\n className, outline, error, style, help, leftIcon, rightIcon, type = 'text', maxLength = 255,\n noErrorMessage, innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n return (\n <Wrapper\n className={className}\n outline={outline}\n error={error}\n style={style}\n disabled={rest.disabled}\n >\n {leftIcon && (<Icon>{leftIcon}</Icon>)}\n {rightIcon && (<Icon right>{rightIcon}</Icon>)}\n <input type={type} maxLength={maxLength} ref={innerRef} {...rest} />\n <HelpMessage help={help} error={error} noErrorMessage={noErrorMessage} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <TextInput {...props} innerRef={ref} />);\n\nconst rightIcon = css`\n right: 0.375em;\n & ~ input {\n padding-right: 1.555em !important;\n }\n`;\n\nconst leftIcon = css`\n left: 0.375em;\n & ~ input {\n padding-left: 1.55em !important;\n }\n`;\n\nconst Icon = styled.span<{ right?: boolean }>`\n position: absolute;\n top: 0.375em;\n bottom: 0;\n z-index: 1;\n color: ${({ theme }) => theme.border};\n ${({ right }) => (right ? rightIcon : leftIcon)}\n\n svg, img {\n height: 1em;\n width: 1em;\n }\n`;\n\nconst Wrapper = styled.span<{ outline?: boolean, error?: any, disabled?: boolean }>`\n position: relative;\n display: block;\n\n input {\n max-width: 100%;\n width: 100%;\n height: 100%;\n position: relative;\n display: block;\n outline: none;\n box-shadow: none;\n appearance: none;\n text-align: left;\n color: inherit;\n\n padding: ${({ theme }) => theme.formPadding};\n border: 1px solid ${({ error, theme }) => (error ? theme.danger : theme.border)};\n ${({ outline, theme }) => (outline\n ? { borderRadius: theme.radius }\n : { borderRadius: 0, borderWidth: 0, borderBottomWidth: '1px' })}\n ${setSize('font-size')}\n\n transition-property: box-shadow;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n\n &:focus {\n border-color: ${({ error, theme }) => (error ? theme.danger : theme.primary)};\n box-shadow: ${({ theme, outline, error }) => (outline\n ? `0 0 0 0.1em ${(error ? theme.danger : theme.primary)}`\n : `0 0.1em ${(error ? theme.danger : theme.primary)}`)};\n }\n\n &:disabled, [disabled] {\n resize: none;\n }\n\n &::placeholder {\n color: ${({ theme }) => theme.placeholder};\n }\n }\n\n &:hover {\n input:not(:disabled):not(:focus):not(:active) {\n border-color: ${({ theme }) => theme.borderHover};\n }\n ${Icon} {\n color: ${({ theme }) => theme.borderHover};\n }\n }\n\n ${({ disabled, theme }) => (disabled\n ? css`\n input {\n ${disabledColor(theme)}\n border-style: dashed;\n }\n `\n : undefined)}\n`;\n","import React, { TextareaHTMLAttributes, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport boxShadow from '../../utils/boxShadow';\nimport setSize from '../../utils/setSize';\nimport disabledColor from '../../utils/disabledColor';\nimport HelpMessage from '../HelpMessage';\n\ninterface Props extends TextareaHTMLAttributes<HTMLTextAreaElement> {\n /** エラーの発生時の表示テキスト */\n error?: string | any;\n /** 捕捉テキスト */\n help?: string | any;\n /** エラーが発生しても、エラーメッセージを出さないようにする */\n noErrorMessage?: boolean;\n}\n\nfunction Textarea({\n className, help, error, style, innerRef, noErrorMessage, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n return (\n <Wrapper className={className} error={!!error} style={style} disabled={rest.disabled}>\n <textarea {...rest} ref={innerRef} />\n <HelpMessage help={help} error={error} noErrorMessage={noErrorMessage} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Textarea {...props} innerRef={ref} />);\n\nconst Wrapper = styled.span<{ error?: boolean, disabled?: boolean }>`\n display: block;\n position: relative;\n\n textarea {\n max-width: 100%;\n width: 100%;\n height: 100%;\n padding: 0.625em;\n resize: vertical;\n appearance: none;\n overflow: auto;\n outline: none;\n text-align: left;\n color: inherit;\n\n border-radius: ${({ theme }) => theme.radius};\n border: 1px solid ${({ theme, error }) => (error ? theme.danger : theme.border)};\n\n transition-property: box-shadow;\n transition-duration: 0.15s;\n transition-timing-function: ease-in-out;\n\n ${setSize('font-size')}\n\n &:focus {\n border-color: ${({ theme, error }) => (error ? theme.danger : theme.primary)};\n ${({ theme, error }) => boxShadow('0.1em', error ? theme.danger : theme.primary)}\n }\n\n &:disabled, [disabled], &:readonly {\n ${({ theme }) => disabledColor(theme)}\n }\n\n &:disabled, [disabled] {\n resize: none;\n }\n\n &::placeholder {\n color: ${({ theme }) => theme.placeholder};\n }\n }\n\n &:hover {\n textarea:not(:disabled):not(:focus) {\n border-color: ${({ theme }) => theme.borderHover};\n }\n }\n\n${({ disabled, theme }) => (disabled\n ? css`\n textarea {\n ${disabledColor(theme)}\n border-style: dashed;\n }\n `\n : undefined)}\n`;\n","export default (\n typeof window !== 'undefined'\n && typeof window.document !== 'undefined'\n && typeof window.document.createElement !== 'undefined'\n);\n","import { useEffect, useLayoutEffect } from 'react';\nimport isClient from '../utils/isClient';\n\nexport default isClient ? useLayoutEffect : useEffect;\n","import React, {\n useMemo, InputHTMLAttributes, forwardRef, useRef, useImperativeHandle,\n} from 'react';\nimport { transparentize } from 'polished';\nimport styled from 'styled-components';\n\nimport useIsomorphicLayoutEffect from '../../hooks/useIsomorphicLayoutEffect';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n children?: any;\n checked?: boolean;\n indeterminate?: boolean;\n}\n\nfunction Approved() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n viewBox=\"0 0 30 30\"\n >\n <path d=\"M11.5 18.5l-3.9-4L6 16l5.6 5.6 11.6-11.5-1.7-1.6z\" fill=\"currentColor\" />\n </svg>\n );\n}\n\nfunction Indeterminate() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n viewBox=\"0 0 30 30\"\n >\n <rect width=\"20\" height=\"4\" y=\"13\" x=\"4.5\" fill=\"currentColor\" stroke=\"none\" rx=\"2\" />\n </svg>\n );\n}\n\nconst Checkbox = forwardRef<HTMLInputElement| null, Props>(\n ({ className, children, indeterminate, ...rest }, ref) => {\n const innerRef = useRef<HTMLInputElement>(null);\n const id = `checkbox_${rest.name}_${rest.value}`;\n const innerClass = useMemo(() => {\n const arr = [];\n if (rest.checked || indeterminate) arr.push('checked');\n if (rest.disabled) arr.push('disabled');\n return arr.join(' ');\n }, [rest.checked, rest.disabled, indeterminate]);\n\n // @ts-ignore\n useImperativeHandle(ref, () => innerRef.current);\n\n useIsomorphicLayoutEffect(() => {\n if (innerRef.current) {\n // @ts-ignore\n innerRef.current.indeterminate = indeterminate;\n }\n }, [indeterminate]);\n\n return (\n <Wrapper className={className}>\n <input type=\"checkbox\" id={id} {...rest} ref={innerRef} />\n <label htmlFor={id}>\n <Shape className={innerClass}>\n {indeterminate ? <Indeterminate /> : <Approved />}\n </Shape>\n {children}\n </label>\n </Wrapper>\n );\n },\n);\n\nCheckbox.displayName = 'Checkbox';\n\nexport default Checkbox;\n\nconst Shape = styled.div`\n display: inline-flex;\n margin: 0.5rem;\n width: 1.25em;\n height: 1.25em;\n background: transparent;\n border: 0.1em solid ${({ theme }) => theme.border};\n border-radius: ${({ theme }) => theme.radius};\n justify-content: center;\n align-items: center;\n\n will-change: background-color;\n transition: background-color 150ms ease-out;\n\n svg {\n opacity: 0;\n stroke-width: 0.1em;\n stroke: currentColor;\n }\n\n &.checked {\n border-color: ${({ theme }) => theme.primary};\n background-color: ${({ theme }) => theme.primary};\n color: ${({ theme }) => theme.white};\n svg {\n opacity: 1;\n }\n\n &.disabled {\n color: ${({ theme }) => transparentize(0.15, theme.textDark)};\n }\n }\n\n &.disabled {\n background: ${({ theme }) => transparentize(0.55, theme.border)};\n border-color: ${({ theme }) => theme.border};\n }\n`;\n\nconst Wrapper = styled.span`\n display: block;\n position: relative;\n width: auto;\n\n label {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding-left: 0.625em;\n max-width: 100%;\n width: 100%;\n line-height: 1.25;\n margin-right: 0.625rem;\n }\n\n input {\n display: none;\n &:disabled + label {\n color: ${({ theme }) => transparentize(0.25, theme.textDark)};\n }\n }\n`;\n","import React, { SVGAttributes } from 'react';\n\nexport default function ChevronDown(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M10.6 0L6 4.6 1.4 0 0 1.4l6 6 6-6L10.6 0z\" fill=\"currentColor\" />\n </svg>\n );\n}\n","import React, { SelectHTMLAttributes, useMemo, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport setSize from '../../utils/setSize';\nimport HelpMessage from '../HelpMessage';\nimport { SizeType } from '../../types';\nimport disabledColor from '../../utils/disabledColor';\nimport IconArrowDown from '../../elements/Icons/ArrowDown';\n\ntype ItemType =\n | { id: string | number; name: string; [key: string]: any }\n | string;\n\ninterface Props extends SelectHTMLAttributes<HTMLSelectElement> {\n placeholder?: string;\n /** { id: string | number, name: string, ...rest } | string */\n options: ItemType[];\n outline?: boolean;\n /** エラーの発生時の表示テキスト */\n error?: string | any;\n /** 捕捉テキスト */\n help?: string | any;\n /** selectのサイズ */\n inputSize?: SizeType;\n /** optionのカスタムrender */\n render?: (label: string) => any;\n /** placehoderを選択可能にする */\n optional?: boolean;\n /** エラーが発生しても、エラーメッセージを出さないようにする */\n noErrorMessage?: boolean;\n}\n\nfunction Select({\n options = [], placeholder, render, help, error, className, inputSize, outline, optional,\n noErrorMessage, innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n const list = useMemo(() => options.map((item) => (\n typeof item === 'string'\n ? (<option key={item} value={item}>{render ? render(item) : item}</option>)\n : (<option key={item.id} value={item.id}>{render ? render(item.name) : item.name}</option>)\n )), [options, render]);\n\n return (\n <InputWrapper\n className={className}\n inputSize={inputSize}\n outline={outline}\n error={!!error}\n disabled={rest.disabled}\n >\n <select {...rest} ref={innerRef}>\n {placeholder && (<option value=\"\" disabled={!optional}>{placeholder}</option>)}\n {list}\n </select>\n <IconArrowDown />\n <HelpMessage help={help} error={error} noErrorMessage={noErrorMessage} />\n </InputWrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Select {...props} innerRef={ref} />);\n\nconst InputWrapper = styled.span<Pick<Props, 'inputSize'|'outline'> & { error: boolean, disabled?: boolean }>`\n position: relative;\n display: block;\n\n select {\n display: block;\n cursor: pointer;\n appearance: none;\n outline: none;\n max-width: 100%;\n width: 100%;\n height: 100%;\n background-color: transparent;\n padding: ${({ theme }) => theme.formPadding};\n padding-right: 1.85rem;\n text-align: left;\n color: inherit;\n\n ${({ inputSize }) => setSize('font-size', inputSize)}\n\n border: 1px solid ${({ error, theme }) => (error ? theme.danger : theme.border)};\n ${({ outline, theme }) => (\n outline ? css`\n border-radius: ${theme.radius};\n ` : css`\n border-width: 0;\n border-radius: 0;\n border-bottom-width: 1px;\n `)}\n\n will-change: box-shadow;\n transition-property: box-shadow;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n\n &:hover {\n border-color: ${({ theme }) => theme.borderHover};\n }\n\n &:focus {\n border-color: ${({ error, theme }) => (error ? theme.danger : theme.primary)};\n box-shadow: ${({ theme, outline, error }) => (outline\n ? `0 0 0 0.1em ${(error ? theme.danger : theme.primary)}`\n : `0 0.1em ${(error ? theme.danger : theme.primary)}`)};\n }\n\n &::-ms-expand {\n display: none;\n }\n &:-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #000;\n }\n\n &:invalid {\n color: ${({ theme }) => theme.placeholder};\n }\n }\n\n svg {\n position: absolute;\n right: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n color: ${({ theme }) => theme.border};\n }\n\n select:hover + svg {\n color: ${({ theme }) => theme.borderHover};\n }\n\n ${({ disabled, theme }) => (disabled ? css`\n select {\n ${disabledColor(theme)}\n border-style: dashed;\n }\n svg {\n display: none;\n }\n ` : undefined)}\n`;\n","import React, { useMemo, InputHTMLAttributes, forwardRef } from 'react';\nimport { transparentize } from 'polished';\nimport styled from 'styled-components';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n value: string | number;\n children?: any;\n checked?: boolean;\n}\n\nfunction Radio({\n className, style, children, innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n const id = `radio_${rest.name}_${rest.value}`;\n const innerClass = useMemo(() => {\n const arr = [];\n if (rest.checked) arr.push('checked');\n if (rest.disabled) arr.push('disabled');\n return arr.join(' ');\n }, [rest.checked, rest.disabled]);\n\n return (\n <Wrapper className={className} style={style}>\n <label htmlFor={id}>\n <Shape className={innerClass}>\n <i />\n </Shape>\n {children}\n </label>\n <input id={id} type=\"radio\" {...rest} ref={innerRef} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Radio {...props} innerRef={ref} />);\n\nconst Shape = styled.div`\n display: inline-flex;\n margin: 0.5rem;\n width: 1.25em;\n height: 1.25em;\n background: transparent;\n border: 0.1em solid ${({ theme }) => theme.border};\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n\n will-change: background-color, border-color;\n transition-property: background-color, border-color;\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n\n &.checked {\n border-color: ${({ theme }) => theme.primary};\n & > i {\n transform: scale(1);\n }\n\n &.disabled > i {\n background-color: ${({ theme }) => transparentize(0.15, theme.textDark)};\n }\n }\n\n &.disabled {\n background: ${({ theme }) => transparentize(0.55, theme.border)};\n border-color: ${({ theme }) => theme.border};\n }\n\n & > i {\n display: block;\n width: 0.5em;\n height: 0.5em;\n background: ${({ theme }) => theme.primary};\n border: none;\n transform: scale(0);\n border-radius: 50%;\n\n will-change: transform;\n transition: transform 150ms ease-out;\n }\n`;\n\nconst Wrapper = styled.span`\n display: block;\n width: auto;\n\n label {\n cursor: pointer;\n max-width: 100%;\n width: 100%;\n line-height: 1.25;\n margin-right: 0.625rem;\n display: flex;\n align-items: center;\n\n &:hover > div:not(.checked):not(.disabled) {\n border-color: ${({ theme }) => theme.borderHover};\n }\n }\n\n input {\n display: none;\n }\n`;\n","import React, { InputHTMLAttributes, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport findColorInvert from '../../utils/findColorInvert';\nimport disabledColor from '../../utils/disabledColor';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n /** trueの場合にON/OFFのラベルを表示します */\n showLabel?: boolean;\n /** ONの時に、色を指定します。 */\n background?: string;\n /** 丸の色を設定します。 */\n anchorColor?: string;\n /**\n * ONになるときのラベル\n * @default 'ON'\n */\n onLabel?: string;\n /**\n * OFFになるときのラベル\n * @default 'OFF'\n */\n offLabel?: string;\n}\n\nfunction Switch({\n className, showLabel, background, anchorColor,\n onLabel = 'ON', offLabel = 'OFF', innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n const id = `switch_${rest.name}`;\n return (\n <Wrapper\n className={className}\n showLabel={showLabel}\n background={background}\n anchorColor={anchorColor}\n labelTextOn={onLabel}\n labelTextOff={offLabel}\n disabled={rest.disabled}\n >\n <input id={id} type=\"checkbox\" {...rest} ref={innerRef} />\n <label htmlFor={id} aria-label={id} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Switch {...props} innerRef={ref} />);\n\nconst labelStyle = css`\n label:before {\n position: absolute;\n display: block;\n content: '${({ offLabel }: any) => offLabel}';\n top: 0.5rem;\n right: 0.6875rem;\n font-size: 0.825rem;\n line-height: 0.825rem;\n color: ${({ theme }: any) => theme.textLight};\n }\n\n input:checked ~ label:before {\n content: '${({ onLabel }: any) => onLabel}';\n right: unset;\n left: 0.6875rem;\n color: ${({ theme }: any) => findColorInvert(theme, theme.primary)};\n }\n`;\n\nconst Wrapper = styled.span<Pick<Props, 'anchorColor'|'background'|'showLabel'|'disabled'> & { labelTextOn: string; labelTextOff: string }>`\n display: inline-block;\n cursor: pointer;\n line-height: 1.25;\n position: relative;\n\n input {\n display: none;\n }\n\n label {\n position: relative;\n display: block;\n height: 1.875rem;\n min-width: 5rem;\n background: transparent;\n border: 1px solid ${({ theme }) => theme.border};\n border-radius: 1.25rem;\n cursor: pointer;\n will-change: background-color;\n transition: background-color 300ms ease;\n box-shadow: inset 0 0.25rem 0.25rem rgba(0,0,0,0.05);\n\n &:after {\n position: absolute;\n display: block;\n left: 0.375rem;\n top: 0.2rem;\n width: 1.375rem;\n height: 1.375rem;\n border-radius: 100%;\n background: ${({ theme, anchorColor }) => anchorColor || theme.white};\n content: '';\n text-align: right;\n border: 1px solid ${({ theme }) => theme.border};\n will-change: left;\n transition: left 300ms ease;\n box-shadow: 0 0 0.375rem rgba(0,0,0,0.1);\n }\n }\n\n input:checked ~ label {\n background: ${({ theme, background }) => (background || theme.primary)};\n box-shadow: inset 0 0.25rem 0.25rem rgba(0,0,0,0.15);\n &:after {\n left: calc(100% - 1.75rem);\n box-shadow: 0 0 0.375rem rgba(0,0,0,0.15);\n }\n }\n\n ${({ showLabel }) => (showLabel ? labelStyle : undefined)}\n ${({ disabled, theme }) => (disabled\n ? css`\n cursor: default;\n\n label {\n ${disabledColor(theme)}\n\n &:after {\n background: ${theme.disabled};\n }\n }\n\n input:checked ~ label {\n background: ${theme.grey};\n }\n `\n : undefined)}\n`;\n","import React, { HTMLAttributes, useRef, useEffect } from 'react';\nimport styled from 'styled-components';\n\nimport useIsomorphicLayoutEffect from '../../hooks/useIsomorphicLayoutEffect';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** ボタンなどの表示するラベル */\n header: any;\n show: boolean;\n /**\n * アニメーションの時間\n * @default 300\n */\n timeout?: number;\n}\n\nexport default function Accordion({ header, show, children, timeout = 300, ...rest }: Props) {\n const ref = useRef<HTMLDivElement | null>(null);\n const prevHeight = useRef<number>(0);\n const timeoutRef = useRef<number>(0);\n const init = useRef(true);\n\n useEffect(() => { timeoutRef.current = timeout; }, [timeout]);\n\n useIsomorphicLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.overflow = 'hidden';\n ref.current.style.opacity = '1';\n\n if (init.current) {\n init.current = false;\n ref.current.style.height = show ? 'auto' : '0px';\n if (show) {\n // cache prev calculated height after 1 frame draw\n requestAnimationFrame(() => {\n if (ref.current) {\n prevHeight.current = ref.current.offsetHeight;\n }\n });\n } else {\n // explicitly calculate auto height\n requestAnimationFrame(() => {\n if (ref.current) {\n ref.current.style.height = 'auto';\n prevHeight.current = ref.current.offsetHeight;\n ref.current.style.height = '0px';\n }\n });\n ref.current.style.opacity = '0';\n }\n return;\n }\n\n if (!show) {\n ref.current.style.height = `${prevHeight.current}px`;\n }\n\n const frameIds = [] as number[];\n frameIds[0] = requestAnimationFrame(() => {\n frameIds[1] = requestAnimationFrame(() => {\n if (!ref.current) return;\n ref.current.style.height = `${show ? prevHeight.current : 0}px`;\n ref.current.style.opacity = show ? '1' : '0';\n });\n });\n\n const timeoutId = setTimeout(() => {\n if (!ref.current) return;\n if (show) {\n ref.current.style.height = 'auto';\n ref.current.style.overflow = '';\n ref.current.style.opacity = '';\n\n // cache prev calculated height after 1 frame draw\n requestAnimationFrame(() => {\n if (ref.current) {\n prevHeight.current = ref.current.offsetHeight;\n }\n });\n } else {\n ref.current.style.height = '0px';\n }\n }, timeoutRef.current);\n\n return () => {\n frameIds.forEach(cancelAnimationFrame);\n clearTimeout(timeoutId);\n };\n }, [show]);\n\n return (\n <div {...rest}>\n {header}\n <AnimatedContent\n aria-hidden={!show}\n ref={ref}\n style={{ transitionDuration: `${timeout}ms` }}\n >\n {children}\n </AnimatedContent>\n </div>\n );\n}\n\nconst AnimatedContent = styled.div`\n will-change: opacity, height, transform;\n transition-property: opacity, height, transform;\n transition-timing-function: ease-in-out;\n`;\n","export default function setAlign({ align }: { align?: 'left' | 'right' | 'center' }) {\n switch (align) {\n case 'left':\n return 'flex-start';\n case 'right':\n return 'flex-end';\n case 'center':\n return 'center';\n default:\n return 'space-evenly';\n }\n}\n","import React, { HTMLAttributes, useState } from 'react';\nimport { transparentize } from 'polished';\nimport styled, { css } from 'styled-components';\nimport findColorInvert from '../../utils/findColorInvert';\nimport hambuger from '../../utils/hambuger';\nimport setAlign from '../../utils/setAlign';\nimport { mediaTablet, mediaMobile } from '../../utils/media';\nimport { ColorType, ThemeType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** background色 */\n color?: ColorType;\n /** ロゴのイメージ、プロジェクト名など */\n brand?: React.ReactElement<any> | string;\n /** 定義された位置を固定にする */\n fixed?: boolean;\n /** (IE11不可)画面がスクロールされても上で貼り付けいるようにする */\n sticky?: boolean;\n /** 中央並びから自動幅で表示します */\n fluid?: boolean;\n /** 背景がblurされます(safari専用、他は透明度) */\n backdrop?: boolean;\n /** childrenに定義するElementの並び順を指定します。未定義は自動並び */\n align?: 'left' | 'right';\n}\n\nexport default function AppBar({ children, align, brand, ...rest }: Props) {\n const [show, setShow] = useState(false);\n const toggleMenu = () => setShow(!show);\n\n return (\n <NavBar\n role=\"navigation\"\n {...rest}\n >\n <nav>\n {brand}\n {children && (\n <Burger className={show ? 'active' : undefined} onClick={toggleMenu}>\n <span />\n <span />\n <span />\n </Burger>\n )}\n <NavContent className={show ? 'active' : undefined} align={align}>\n {children}\n </NavContent>\n </nav>\n </NavBar>\n );\n}\n\nfunction setColor(\n { color, theme, backdrop }: { color?: ColorType, theme: ThemeType, backdrop?: boolean },\n) {\n const backgroundColor = color ? theme[color] : 'transparent';\n const textColor = findColorInvert(\n theme, backgroundColor === 'transparent' ? theme.background : backgroundColor,\n );\n\n if (backdrop) {\n const backColor = transparentize(\n 0.2, (backgroundColor === 'transparent' ? theme.white : backgroundColor),\n );\n\n return css`\n background-color: ${backColor};\n color: ${textColor};\n `;\n }\n\n return css`background-color: ${backgroundColor}; color: ${textColor};`;\n}\n\nconst NavBar = styled.header<Props>`\n position: ${({ fixed, sticky }) => {\n if (sticky) return 'sticky';\n if (fixed) return 'fixed';\n return 'relative';\n }};\n display: flex;\n top: -1px;\n min-height: 3.25rem;\n width: 100%;\n z-index: 30;\n\n padding: ${({ fluid }) => (fluid ? '0 0.75rem' : '0 5%')};\n\n & > nav {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n flex: 1 0 auto;\n }\n\n ${setColor}\n\n a { color: inherit; }\n\n ${mediaTablet} {\n padding: ${({ fluid }) => (fluid ? '0 0.5rem' : '0 3%')};\n }\n`;\n\nconst Burger = styled.button`\n ${hambuger('3.25rem')}\n display: none;\n margin-left: auto;\n border: none;\n background-color: transparent;\n color: inherit;\n\n outline: none;\n\n &:hover{\n background-color: rgba(0, 0, 0, .05);\n }\n\n ${mediaMobile} {\n display: block;\n }\n`;\n\nconst NavContent = styled.div<Pick<Props, 'color'|'align'> & { show?: boolean }>`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n flex-basis: auto;\n flex-grow: 1;\n height: 100%;\n\n & > ul {\n display: flex;\n flex-direction: row;\n list-style: none;\n flex-grow: 1;\n flex-basis: 100%;\n height: inherit;\n align-items: center;\n justify-content: ${setAlign};\n\n li {\n padding: 0.85rem;\n }\n }\n\n & > div, & > span, & > form {\n display: flex;\n ${({ color }) => (color ? `color: ${color};` : '')}\n }\n\n ${mediaMobile} {\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n height: auto;\n\n padding-bottom: 0.5rem;\n\n &:not(.active) {\n display:none;\n }\n\n & > ul {\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n flex-basis: auto;\n li {\n padding: .5rem 0;\n }\n }\n\n & > div, & > span, & > form {\n padding: .5rem 0;\n width: 100%;\n }\n }\n`;\n","import React, { useState } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport useIsomorphicLayoutEffect from '../../hooks/useIsomorphicLayoutEffect';\n\ninterface Props {\n children: React.ReactNode;\n container?: HTMLElement;\n disabled?: boolean;\n}\n\nconst Portal = React.forwardRef(({ children, container, disabled }: Props, ref) => {\n const [mountNode, setMountNode] = useState<Element | null>(null);\n\n useIsomorphicLayoutEffect(() => {\n if (disabled) {\n setMountNode(null);\n return;\n }\n if (!container) {\n let dom = document.getElementById('visits-style-portals');\n if (!dom) {\n dom = document.createElement('div');\n dom.id = 'visits-style-portals';\n document.body.appendChild(dom);\n }\n setMountNode(dom);\n return;\n }\n setMountNode(container);\n }, [container, disabled]);\n\n return mountNode ? createPortal(children, mountNode) : mountNode;\n});\nPortal.displayName = 'Portal';\n\nexport default Portal;\n","import { useRef, useMemo, useCallback, MutableRefObject } from 'react';\nimport {\n Options as PopperOptions,\n VirtualElement,\n Instance,\n Placement,\n PositioningStrategy,\n createPopper,\n} from '@popperjs/core';\n\nimport useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';\n\ninterface Options {\n placement?: Placement;\n strategy?: PositioningStrategy;\n offset?: { x: number; y: number; };\n}\n\nexport default function usePopper(\n referenceElement: Element | MutableRefObject<Element | null> | VirtualElement | null,\n popperElement: HTMLElement | MutableRefObject<HTMLElement | null> | null,\n options: Partial<Options> = {},\n) {\n const instance = useRef<Instance | null>(null);\n\n const popperOptions = useMemo(() => ({\n placement: options.placement || 'bottom',\n strategy: options.strategy || 'absolute',\n modifiers: [\n { name: 'preventOverflow', enabled: true },\n (options.offset && {\n name: 'offset',\n options: { offset: [options.offset.x, options.offset.y] },\n }),\n ].filter(Boolean),\n } as PopperOptions), [\n options.placement,\n options.strategy,\n options.offset,\n ]);\n\n useIsomorphicLayoutEffect(() => {\n if (instance.current) {\n instance.current.setOptions(popperOptions);\n }\n }, [popperOptions]);\n\n useIsomorphicLayoutEffect(() => () => {\n if (instance.current) {\n instance.current.destroy();\n instance.current = null;\n }\n }, []);\n\n const open = useCallback(() => {\n if (instance.current) {\n instance.current.destroy();\n instance.current = null;\n }\n\n if (referenceElement == null || popperElement == null) {\n return;\n }\n\n const refEl = (\n // @ts-ignore\n 'current' in referenceElement ? referenceElement.current : referenceElement\n );\n // @ts-ignore\n const pEl = 'current' in popperElement ? popperElement.current : popperElement;\n\n if (refEl === null || pEl === null) return;\n\n instance.current = createPopper(\n refEl,\n pEl,\n popperOptions,\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [popperOptions]);\n\n const close = useCallback(() => {\n if (instance.current) {\n instance.current.destroy();\n instance.current = null;\n }\n }, []);\n\n return [open, close];\n}\n","import React from 'react';\n\nexport default function wrapEvent(\n child: React.ReactElement,\n handlerName: string,\n ourHandler: React.EventHandler<any>,\n) {\n return (event: any) => {\n if (typeof child !== 'string' && child.props[handlerName]) {\n child.props[handlerName](event);\n }\n\n if (!event.defaultPrevented) {\n return ourHandler(event);\n }\n };\n}\n","/* eslint-disable no-param-reassign */\nimport React, { Children, cloneElement, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { Placement } from '@popperjs/core';\n\nimport Portal from '../Portal';\nimport usePopper from '../../hooks/usePopper';\nimport { ColorType } from '../../types';\nimport wrapEvent from '../../utils/wrapEvent';\n\ninterface TooltipProps {\n /** 吹き出しとして表示したい内容 */\n label: React.ReactNode;\n /** マウスオーバーの対象になるelement */\n children: React.ReactElement;\n /** 吹き出しの背景色の指定 */\n color?: ColorType;\n /**\n * 表示される場所\n * @default 'bottom'\n */\n position?: Placement;\n\n /**\n * ツールチップが表示される間隔, 単位はpx\n * @default '{ x: 0, y: 6 }'\n */\n offset?: { x: number; y: number; };\n\n className?: string;\n}\n\nexport default function Tooltip({\n children, position = 'bottom',\n label, color, className = '',\n offset = { x: 0, y: 6 },\n}: TooltipProps) {\n const parent = useRef<HTMLDivElement | null>(null);\n const tooltip = useRef<HTMLDivElement | null>(null);\n const [open, setOpen] = useState(false);\n\n const [openPopper, closePopper] = usePopper(\n parent,\n tooltip,\n {\n placement: position,\n offset,\n },\n );\n\n const handleOpen = () => {\n setOpen(true);\n requestAnimationFrame(openPopper);\n };\n\n const handleClose = () => {\n setOpen(false);\n closePopper();\n };\n\n const child = typeof children === 'string' ? <span>{children}</span> : children;\n\n return (\n <>\n {cloneElement(Children.only(child), {\n ref: parent,\n onMouseEnter: wrapEvent(child, 'onMouseEnter', handleOpen),\n onMouseLeave: wrapEvent(child, 'onMouseLeave', handleClose),\n onFocus: wrapEvent(child, 'onFocus', handleOpen),\n onBlur: wrapEvent(child, 'onBlur', handleClose),\n })}\n {open && (\n <Portal>\n <TooltipWrapper\n className={className}\n ref={tooltip}\n role=\"tooltip\"\n color={color}\n >\n {label}\n </TooltipWrapper>\n </Portal>\n )}\n </>\n );\n}\n\nconst TooltipWrapper = styled.div<Pick<TooltipProps, 'color'> & { show?: boolean }>`\n position: relative;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n z-index: 9999;\n padding: 0.375rem 0.625rem;\n cursor: default;\n white-space: pre;\n font-size: 0.85rem;\n z-index: 9999;\n\n background-color: ${({ color, theme }) => (color ? (theme[color] || theme.background) : theme.background)};\n`;\n","import { HTMLAttributes } from 'react';\nimport styled from 'styled-components';\nimport findColorInvert from '../../utils/findColorInvert';\nimport { ColorType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** 色指定 */\n color?: ColorType;\n /** borderを非表示する */\n borderless?: boolean;\n}\n\nexport default styled.div<Props>`\n position: relative;\n display: flex;\n flex-direction: column;\n border: ${({ borderless, theme }) => (borderless ? 'none' : `1px solid ${theme.border}`)};\n border-radius: ${({ theme }) => theme.radius};\n width: 100%;\n\n min-width: 0;\n word-wrap: break-word;\n\n ${(({ color, theme }) => {\n if (!color) return undefined;\n const target = theme[color] || color;\n const invertColor = findColorInvert(theme, target);\n return {\n backgroundColor: target,\n color: invertColor,\n };\n })}\n`;\n","import React, { HTMLAttributes, useMemo } from 'react';\nimport styled from 'styled-components';\nimport Box from '../../elements/Box';\nimport { ColorType } from '../../types';\n\nconst CardBody = styled.div`\n padding: 1.25rem;\n margin: 0;\n`;\n\nconst CardHeader = styled.header`\n display: flex;\n padding: 0.5rem 1.5rem;\n min-height: 3.5rem;\n border-bottom: 1px solid ${({ theme }) => theme.border};\n align-items: center;\n justify-content: space-between;\n`;\n\nconst CardFooter = styled.footer`\n display: flex;\n padding: 0.5rem 1.5rem;\n min-height: 3.5rem;\n border-top: 1px solid ${({ theme }) => theme.border};\n align-items: center;\n justify-content: space-between;\n`;\n\nconst CardImage = styled.a`\n width: 100%;\n\n img {\n width: 100%;\n padding: 0;\n margin: 0;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n }\n`;\n\nconst CardImageHorizontal = styled.a<{ url?: string }>`\n flex: 0 0 30%;\n min-width: 5rem;\n width: 30%;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px;\n\n background: no-repeat center/cover;\n ${({ url }) => (url ? { backgroundImage: `url(${url})` } : undefined)}\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** レスポンシブなイメージを追加する */\n image?: string;\n /** タイトル */\n title?: string;\n /** ヘッダーの右側に追加する */\n headerOptions?: any;\n /** header部分(イメージ)を横並びにする */\n horizontal?: boolean;\n /** footer */\n footer?: any;\n /** 色の指定 */\n color?: ColorType;\n}\n\nexport default function Card({\n image, title, children, horizontal, footer, color, style = {}, ...rest\n}: Props) {\n const header = useMemo(() => {\n if (image && !horizontal) return (<CardImage><img src={image} alt=\"\" /></CardImage>);\n if (image && horizontal) return (<CardImageHorizontal url={image} />);\n if (title && !horizontal) return (<CardHeader><h3>{title}</h3></CardHeader>);\n return null;\n }, [image, title, horizontal]);\n\n const styles: any = useMemo(\n () => ({ flexDirection: horizontal ? 'row' : 'column', ...style }),\n [style, horizontal],\n );\n\n return (\n <Box color={color} {...rest} style={styles}>\n {header}\n <CardBody>\n {children}\n </CardBody>\n {footer && (<CardFooter>{React.Children.only(footer)}</CardFooter>)}\n </Box>\n );\n}\n","/* eslint-disable no-param-reassign, no-unused-expressions */\nimport React, {\n Children, cloneElement, useState, useRef, HTMLAttributes, useEffect,\n forwardRef, useImperativeHandle,\n} from 'react';\nimport styled from 'styled-components';\nimport { Placement } from '@popperjs/core';\n\nimport Portal from '../Portal';\nimport Box from '../../elements/Box';\nimport usePopper from '../../hooks/usePopper';\nimport wrapEvent from '../../utils/wrapEvent';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** ボタンの内容 */\n label: React.ReactElement;\n /** 内容のリスト */\n children?: React.ReactNode;\n /**\n * 吹き出しの背景色\n * @default 'background'\n */\n color?: string;\n /** 右の基準でリストを表示する */\n right?: boolean;\n /**\n * 表示される場所\n * @default 'bottom-end'\n */\n position?: Placement;\n\n /**\n * ツールチップが表示される間隔\n * @default '{ x: 0, y: 6 }'\n */\n offset?: { x: number; y: number; };\n\n /** 閉じた場合のコールバック */\n onClose?: () => void;\n /** 開けた場合のコールバック */\n onOpen?: () => void;\n /** コンテンツを出さない */\n disabled?: boolean;\n}\n\nexport interface PopoverRef {\n open: () => void;\n close: () => void;\n}\n\nfunction stopPropagation(e?: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) {\n if (!e) return;\n e.stopPropagation();\n}\n\nconst Popover = forwardRef(({\n position, label, children, color = 'background',\n onOpen, onClose, disabled, className = '',\n offset = { x: 0, y: 6 },\n ...rest\n}: Props, ref: React.Ref<PopoverRef>) => {\n const parent = useRef<HTMLDivElement | null>(null);\n const popover = useRef<HTMLDivElement | null>(null);\n const [open, setOpen] = useState(false);\n\n const [openPopper, closePopper] = usePopper(\n parent,\n popover,\n {\n placement: position,\n offset,\n },\n );\n\n const handleFocus = (e?: React.MouseEvent<HTMLButtonElement>) => {\n stopPropagation(e);\n setOpen(true);\n requestAnimationFrame(openPopper);\n if (onOpen) onOpen();\n };\n\n const handleBlur = (e?: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => {\n stopPropagation(e);\n closePopper();\n setOpen(false);\n if (onClose) onClose();\n };\n\n useEffect(() => {\n if (disabled && open) {\n closePopper();\n setOpen(false);\n }\n }, [disabled, open, closePopper]);\n\n useImperativeHandle(ref, () => ({\n open: handleFocus,\n close: handleBlur,\n }));\n\n return (\n <>\n {cloneElement(Children.only(label), {\n ref: parent,\n tabIndex: 0,\n role: 'button',\n onClick: wrapEvent(label, 'onClick', handleFocus),\n disabled,\n })}\n {open && (\n <Portal>\n <Tooltip\n role=\"tooltip\"\n className={className}\n ref={popover}\n color={color}\n onClick={stopPropagation}\n {...rest}\n >\n {children}\n </Tooltip>\n <Shadow onClick={handleBlur} data-testid=\"visits-style-shadow\" />\n </Portal>\n )}\n </>\n );\n});\nPopover.displayName = 'Popover';\n\nexport default Popover;\n\nconst Tooltip = styled(Box)`\n display: flex;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n padding: 0.5rem 0;\n width: auto;\n height: auto;\n cursor: auto;\n z-index: 40;\n`;\n\nconst Shadow = styled.div`\n position: fixed;\n z-index: 38;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n`;\n","import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';\n\nlet fixedNum = 0;\n\nexport default function useScrollFix(show?: boolean) {\n useIsomorphicLayoutEffect(() => {\n if (show) {\n document.body.style.overflowY = 'hidden';\n fixedNum += 1;\n return () => {\n if (fixedNum <= 1) {\n document.body.style.overflowY = 'auto';\n fixedNum = 0;\n } else {\n fixedNum -= 1;\n }\n };\n }\n return undefined;\n }, [show]);\n}\n","import React, { HTMLAttributes } from 'react';\nimport styled from 'styled-components';\nimport { Transition } from 'react-transition-group';\nimport useScrollFix from '../../hooks/useScrollFix';\nimport Box from '../../elements/Box';\nimport Portal from '../Portal';\nimport { ColorType } from '../../types';\n\n// const ESC_KEY = 27;\n\nconst Shadow = styled.div`\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n`;\n\nconst Wrapper = styled(Shadow)`\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index: 9997;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: ${({ theme }) => theme.backdrop};\n padding: 0.85rem;\n`;\n\nconst AnimatedBox = styled(Box)`\n width: auto;\n margin: auto;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: auto;\n z-index: 100;\n\n will-change: transform, opacity;\n transition-property: transform, opacity;\n transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-duration: 200ms;\n\n opacity: 0;\n transform: scale(0.8);\n\n &.entered {\n opacity: 1;\n transform: scale(1);\n }\n\n &.entering, &.exiting, &.exited {\n opacity: 0;\n transform: scale(0.8);\n }\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** trueの場合、モーダルを表示します。 */\n show?: boolean;\n /** モーダルのbodyに入れる内容 */\n children?: React.ReactNode;\n /**\n * モーダルのbackground色\n * @default 'background'\n */\n color?: ColorType;\n /** モーダルを閉じる処理 */\n closeModal: () => void;\n /** オーバーレイのクリックでモーダルクローズ */\n closeOnOverlay?: boolean;\n /** escボタンでクローズ */\n closeOnEsc?: boolean;\n /**\n * モーダルの表示・非表示のアニメーション速度\n * @default 200\n */\n timeout?: number;\n /** モーダル外に表示するElements */\n external?: React.ReactNode;\n /** モーダルのtransition exitが完了した時に発火されるcallback */\n onExited?: () => void;\n}\n\nexport default function Modal({\n show, children, timeout = 200,\n color = 'background', closeModal, external,\n className, closeOnOverlay, closeOnEsc, onExited,\n ...rest\n}: Props) {\n useScrollFix(show);\n return (\n <Portal>\n <Transition\n in={show}\n timeout={timeout!}\n onExited={onExited}\n unmountOnExit\n mountOnEnter\n >\n {(state) => (\n <Wrapper\n role=\"dialog\"\n className={className}\n >\n <Shadow onClick={closeOnOverlay ? closeModal : undefined} data-testid=\"vs-modal-overlay\" />\n <AnimatedBox className={state} color={color} borderless {...rest} role=\"document\">\n {children}\n </AnimatedBox>\n {external}\n </Wrapper>\n )}\n </Transition>\n </Portal>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function Close(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\">\n <path d=\"M25.999 26l-12.5-12.5L25.999 1\" />\n <path d=\"M1 26l12.5-12.5L1 1\" />\n </g>\n </svg>\n );\n}\n","import React, { useEffect, HTMLAttributes, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { Transition, TransitionGroup } from 'react-transition-group';\n\nimport Portal from '../Portal';\nimport Close from '../../elements/Icons/Close';\nimport Box from '../../elements/Box';\nimport { ColorType } from '../../types';\n\ntype PositionType = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';\n\ninterface ToastProps extends HTMLAttributes<HTMLDivElement> {\n /** 認識ID */\n id: string;\n /** 表示する内容 */\n message?: React.ReactNode;\n /** 背景の色 */\n color?: ColorType;\n /**\n * 表示される時間 nullの場合は自動で閉じられません\n * @default 5000\n */\n duration?: number | null;\n /** 押したら閉じられる */\n clearOnClick?: boolean;\n}\n\nconst Wrapper = styled(Box)<{ clear?: boolean }>`\n position: relative;\n padding: 0.375em 0.75em;\n max-width: 100%;\n margin-bottom: 1rem;\n z-index: 9999;\n width: fit-content;\n\n transition-property: transform, opacity;\n transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-duration: 250ms;\n\n &.entering {\n opacity: 0.01;\n transform: scale(0.8);\n }\n &.entered {\n opacity: 1;\n transform: scale(1);\n }\n &.exiting {\n opacity: 0.01;\n transform: scale(0.8);\n }\n\n ${({ clear }) => (clear ? { paddingRight: '2.25rem' } : undefined)}\n`;\n\nconst ClearButton = styled.button`\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n padding: 0;\n border: none;\n background: transparent;\n color: inherit;\n cursor: pointer;\n width: 2rem;\n\n svg {\n width: 1rem;\n height: 1rem;\n }\n\n &:hover {\n background: rgba(0,0,0,0.15);\n }\n`;\n\ninterface ToastItemProps extends ToastProps {\n clear: (id: string) => void;\n}\n\nfunction ToastItem(\n {\n color, message, duration = 5000, clear, clearOnClick, id, ...rest\n }: ToastItemProps,\n) {\n const onClear = useCallback(() => clear(id), [clear, id]);\n\n useEffect(() => {\n if (duration) {\n const timeout = setTimeout(onClear, duration);\n return () => clearTimeout(timeout);\n }\n return undefined;\n }, [onClear, duration]);\n\n return (\n <Wrapper\n color={color}\n clear={clearOnClick}\n data-testid=\"toast-item\"\n borderless\n {...rest}\n >\n {message}\n {clearOnClick && <ClearButton onClick={onClear}><Close /></ClearButton>}\n </Wrapper>\n );\n}\n\ninterface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n /** 表示するToastのリスト */\n toasts: ToastProps[];\n /** toastを消すタイミングのコールバック */\n clear: (id: string) => void;\n /**\n * toastの表示される場所の指定\n * top, top-right, top-left, bottom, bottom-right, bottom-left\n * @default 'top-right'\n */\n position?: PositionType;\n /**\n * margin\n * @default '1rem'\n */\n margin?: string;\n /** スクロールしても固定として表示する */\n fixed?: boolean;\n}\n\nexport default function Toast(\n { toasts, clear, fixed, style, margin = '1rem', position, ...rest }: ContainerProps,\n) {\n return (\n <Portal>\n <Container\n {...rest}\n pos={position}\n margin={margin}\n style={{ position: (fixed ? 'fixed' : 'absolute'), ...style }}\n >\n <TransitionGroup component={null}>\n {toasts.map((props) => (\n <Transition key={props.id} timeout={250} in unmountOnExit>\n {(state) => (\n <ToastItem\n {...props}\n className={state}\n key={props.id}\n clear={clear}\n />\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </Container>\n </Portal>\n );\n}\n\nconst Container = styled.div<{ pos: ContainerProps['position'], margin: ContainerProps['margin'] }>`\n display: flex;\n flex-direction: column;\n\n ${({ pos, margin }) => {\n switch (pos) {\n case 'bottom': {\n return { bottom: margin, left: '50%', alignItems: 'center', transform: 'translateX(-50%)' };\n }\n case 'bottom-left': {\n return { bottom: margin, left: margin, alignItems: 'flex-start' };\n }\n case 'bottom-right': {\n return { bottom: margin, right: margin, alignItems: 'flex-end' };\n }\n case 'top': {\n return { top: margin, left: '50%', alignItems: 'center', transform: 'translateX(-50%)' };\n }\n case 'top-right': {\n return { top: margin, right: margin, alignItems: 'flex-end' };\n }\n default: {\n return { top: margin, left: margin, alignItems: 'flex-start' };\n }\n }\n }}\n`;\n","import { HTMLAttributes } from 'react';\nimport styled, { css, keyframes } from 'styled-components';\nimport { ColorType, ThemeType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLDivElement>{\n /** 色の指定 */\n color?: ColorType;\n /** サイズ */\n size?: string;\n /** spinnerの太さ */\n borderSize?: string;\n}\n\nfunction getColor({ theme, color }: { theme: ThemeType, color?: ColorType }) {\n const value = (!color || color === 'light') ? theme.background : theme[color];\n\n return css`\n border-color: ${value};\n border-right-color: ${theme.border};\n border-top-color: ${theme.border};\n `;\n}\n\nconst spin = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n`;\n\nconst Spinner = styled.div<Props>`\n display: inline-block;\n width: ${({ size }) => (size || '100%')};\n height: ${({ size }) => (size || '100%')};\n margin: 0;\n padding: 0;\n position: relative;\n\n &:after {\n display: block;\n top: 0;\n left: 0;\n animation: ${spin} 750ms infinite linear;\n border: ${({ borderSize }) => borderSize} solid;\n border-radius: 100%;\n ${getColor}\n content: \"\";\n height: 100%;\n width: 100%;\n position: absolute;\n }\n`;\nSpinner.defaultProps = {\n borderSize: '2px',\n};\n\nexport default Spinner;\n","import styled, { css } from 'styled-components';\nimport { mediaUntilFullHD, mediaDesktop, mediaMobile, mediaTablet } from '../../utils/media';\n\ninterface Props {\n /** */\n fluid?: boolean;\n}\n\nfunction setGap(width: string, gap: number) {\n return parseInt(width.replace('px', ''), 10) - (2 * gap);\n}\n\nfunction setResponsive({ fluid }: Props): any {\n if (fluid) {\n return css`\n padding-right: 0.75rem;\n padding-left: 0.75rem;\n ${mediaTablet} {\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n }\n `;\n }\n\n return css`\n margin-right: auto;\n margin-left: auto;\n\n ${mediaUntilFullHD} {\n max-width: ${({ theme }) => setGap(theme.media.fullhd, theme.gutter)}px;\n }\n ${mediaDesktop} {\n max-width: ${({ theme }) => setGap(theme.media.desktop, theme.gutter)}px;\n }\n ${mediaTablet} {\n max-width: ${({ theme }) => setGap(theme.media.tablet, theme.smallGutter)}px;\n }\n ${mediaMobile} {\n max-width: ${({ theme }) => setGap(theme.media.mobile, theme.smallGutter)}px;\n }\n `;\n}\nexport default styled.div<Props>`\n position: relative;\n width: 100%;\n\n ${setResponsive}\n`;\n","import { HTMLAttributes } from 'react';\nimport styled from 'styled-components';\nimport { mediaTablet } from '../../utils/media';\n\nexport default styled.div<HTMLAttributes<HTMLDivElement>>`\n display: flex;\n flex: 0 1 auto;\n flex-direction: row;\n flex-wrap: wrap;\n margin: -${({ theme }) => theme.gutter / 2}px;\n padding: ${({ theme }) => theme.gutter / 2}px;\n\n ${mediaTablet} {\n margin: -${({ theme }) => theme.smallGutter / 2}px;\n padding: ${({ theme }) => theme.smallGutter / 2}px;\n }\n`;\n","import styled, { css } from 'styled-components';\nimport { mediaTablet, mediaDesktop, mediaMobile } from '../../utils/media';\nimport { ColSizeType } from '../../types';\n\ninterface ColProps {\n /** 1-12のサイズ */\n size?: ColSizeType;\n /** 1-12の左のoffset */\n offset?: ColSizeType;\n /** 1-12基準のサイズを画面サイズのよって可変にする */\n auto?: boolean;\n}\n\nconst sizes = [\n 'auto',\n '8.3333333%',\n '16.666667%',\n '25%',\n '33.333333%',\n '41.666667%',\n '50%',\n '58.333333%',\n '66.666667%',\n '75%',\n '83.333333%',\n '91.666667%',\n '100%',\n];\n\nfunction setAutoSize({ size, auto }: ColProps) {\n if (!auto || !size) return undefined;\n const mobileSize = size >= 4 ? sizes[12] : sizes[Math.round(size * 3)];\n const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];\n return css`\n ${mediaDesktop} {\n flex-basis: ${desktopSize};\n max-width: ${desktopSize};\n }\n ${mediaMobile} {\n flex-basis: ${mobileSize};\n max-width: ${mobileSize};\n }\n `;\n}\n\nconst Col = styled.div<ColProps>`\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n flex-wrap: wrap;\n padding: ${({ theme }) => theme.gutter / 2}px;\n\n ${({ size }) => (\n size\n ? { flexBasis: sizes[size], maxWidth: sizes[size] }\n : { flexGrow: 1, flexBasis: 0, maxWidth: '100%' }\n )}\n\n ${({ offset }) => (offset ? { marginLeft: sizes[offset] } : undefined)}\n\n ${mediaTablet} {\n padding: ${({ theme }) => theme.smallGutter / 2}px;\n }\n ${setAutoSize}\n`;\nCol.defaultProps = {\n size: 0,\n offset: 0,\n};\n\nexport default Col;\n","import styled from 'styled-components';\n\nexport default styled.div`\n color: ${({ theme }) => theme.text};\n line-height: 1.5;\n\n li + li {\n margin-top: 0.25em;\n }\n\n p,\n dl,\n ol,\n ul,\n blockquote,\n pre,\n table {\n &:not(:last-child) {\n margin-bottom: 1em;\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: 1.125;\n }\n\n h1 {\n font-size: 2rem;\n margin-bottom: 0.5em;\n }\n\n h2 {\n font-size: 1.75em;\n margin-bottom: 0.5714em;\n\n &:not(:first-child) {\n margin-top: 1.1428em;\n }\n }\n\n h3 {\n font-size: 1.5em;\n margin-bottom: 0.6666em;\n\n &:not(:first-child) {\n margin-top: 1.3333em;\n }\n }\n\n h4 {\n font-size: 1.25em;\n margin-bottom: 0.8em;\n }\n\n h5 {\n font-size: 1.125em;\n margin-bottom: 0.8888em;\n }\n\n h6 {\n font-size: 1em;\n margin-bottom: 1em;\n }\n\n ol {\n list-style: decimal outside;\n margin-left: 2em;\n margin-top: 1em;\n }\n\n ul {\n list-style: disc outside;\n margin-left: 2em;\n margin-top: 1em;\n ul {\n list-style-type: circle;\n margin-top: 0.5em;\n ul {\n list-style-type: square;\n }\n }\n }\n\n dd {\n margin-left: 2em;\n }\n\n table {\n width: 100%;\n\n td, th {\n border: 1px solid ${({ theme }) => theme.border};\n border-width: 0 0 1px;\n padding: 0.5em 0.75em;\n vertical-align: top;\n }\n\n th {\n color: ${({ theme }) => theme.text};\n text-align: left;\n }\n\n thead {\n td, th {\n border-width: 0 0 2px;\n color: ${({ theme }) => theme.text};\n }\n }\n\n tfoot {\n td, th {\n border-width: 2px 0 0;\n color: ${({ theme }) => theme.text};\n }\n }\n\n tbody > tr:last-child{\n td, th {\n border-bottom-width: 0;\n }\n }\n }\n`;\n","import styled, { keyframes } from 'styled-components';\n\nconst setAnimation = ({ theme }: any) => keyframes`\n 0% { background-color: ${theme.greyLighter}; }\n 50% { background-color: ${theme.grey}; }\n 100% { background-color: ${theme.greyLighter}; }\n`;\n\nexport default styled.span`\n display: inline-block;\n height: 1rem;\n width: 100%;\n animation: ${setAnimation} 3.5s ease infinite;\n border-radius: ${({ theme }) => theme.radius};\n opacity: 0.125;\n`;\n","import styled, { css } from 'styled-components';\nimport { HTMLAttributes } from 'react';\nimport { darken } from 'polished';\nimport findColorInvert from '../../utils/findColorInvert';\nimport boxShadow from '../../utils/boxShadow';\nimport setSize from '../../utils/setSize';\nimport disabledColor from '../../utils/disabledColor';\nimport { ColorType, ThemeType, SizeType } from '../../types';\n\ninterface Props {\n theme: ThemeType;\n color?: ColorType;\n outline?: boolean;\n disabled?: boolean;\n}\n\nfunction setColor({ theme, color, outline, disabled }: Props) {\n if (disabled) {\n return disabledColor(theme);\n }\n if (!color) {\n return css`\n border-color: ${theme.border};\n color: ${theme.text};\n\n &:hover {\n border-color: ${theme.borderHover};\n }\n\n &:active {\n border-color: ${theme.borderActive};\n }\n `;\n }\n const target = theme[color] || color;\n const invertColor = findColorInvert(theme, target);\n if (outline) {\n return css`\n background-color: transparent;\n border-color: ${target};\n color: ${target};\n\n &:hover {\n background-color: ${target};\n color: ${invertColor};\n }\n\n &:active {\n background-color: ${darken(0.1, target)};\n }\n\n &:focus:not(:active) {\n ${boxShadow('0.1rem', target, 0.5)}\n }\n `;\n }\n\n return css`\n background-color: ${target};\n border-color: transparent;\n color: ${invertColor};\n box-shadow: none;\n\n &:hover {\n color: ${invertColor};\n background-color: ${darken(0.05, target)};\n }\n\n &:active {\n background-color: ${darken(0.1, target)};\n }\n\n &:focus:not(:active) {\n ${boxShadow('0.1rem', target, 0.5)}\n }\n `;\n}\n\ninterface ButtonProps extends HTMLAttributes<HTMLButtonElement> {\n /** ボタンの色 */\n color?: ColorType;\n /** ボタンのサイズ */\n size?: SizeType;\n /** 背景が透明なボタンでする */\n outline?: boolean;\n /** 丸いボタンで表示する */\n round?: boolean;\n /** アイコンボタンとしてpaddingを同じにする */\n icon?: boolean;\n}\n\nexport default styled.button<ButtonProps>`\n position: relative;\n outline: none;\n appearance: none;\n box-sizing: border-box;\n display: inline-block;\n text-align: center;\n white-space: nowrap;\n cursor: pointer;\n justify-content: center;\n vertical-align: middle;\n user-select: none;\n background: transparent;\n border: 1px solid transparent;\n border-radius: ${({ round, theme }) => (round ? '2456189px' : theme.radius)};\n padding: ${({ icon }) => (icon ? '0.375em' : '0.375em 0.75em')};\n line-height: ${({ icon }) => (icon ? 1 : 1.5)};\n\n ${setColor}\n ${({ size }) => setSize('font-size', size)}\n`;\n","import { HTMLAttributes } from 'react';\nimport styled, { css } from 'styled-components';\nimport { transparentize } from 'polished';\nimport setSize from '../../utils/setSize';\nimport { ColorType, SizeType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLButtonElement> {\n /** ボタンの色 */\n color?: ColorType;\n /** ボタンのサイズ */\n size?: SizeType;\n /** ボタン的な幅を全部無くしてテキストのように表示する */\n pure?: boolean;\n /** マウスオーバーするとテキストにunderlineが付く */\n underline?: boolean;\n /** 丸いボタンで表示する */\n round?: boolean;\n /** アイコンボタンとしてpaddingを同じにする */\n icon?: boolean;\n}\n\nexport default styled.button<Props>`\n background-color: transparent;\n border: none;\n cursor: pointer;\n display: inline;\n margin: 0;\n border-radius: ${({ round, theme }) => (round ? '2456189px' : theme.radius)};\n padding: ${({ pure, icon }) => {\n if (pure) return '0';\n if (icon) return '0.375em';\n return '0.375em 0.75em';\n }};\n line-height: ${({ icon }) => (icon ? 1 : 1.5)};\n color: ${({ color, theme }) => (color ? theme[color] : theme.text)};\n ${({ size }) => setSize('font-size', size)}\n\n &:hover, &:focus {\n ${({ underline }) => (underline ? { textDecoration: 'underline' } : undefined)}\n ${({ pure, theme, color }) => (\n pure\n ? undefined\n : { background: transparentize(0.9, color ? (theme[color] || theme.text) : theme.text) }\n )}\n }\n\n &:focus, &:active {\n outline: none;\n }\n\n &:active {\n ${({ pure, theme, color }) => (\n pure\n ? undefined\n : { background: transparentize(0.8, color ? (theme[color] || theme.text) : theme.text) }\n )}\n }\n\n ${({ disabled, theme }) => (disabled ? css`\n color: ${transparentize(0.75, theme.textDark)};\n cursor: default;\n &:hover {\n background: transparent;\n text-decoration: none;\n }\n ` : undefined)}\n`;\n","import styled from 'styled-components';\nimport Button from '.';\n\nexport default styled.div`\n display: inline-block;\n\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n\n ${Button} {\n margin: 0;\n border-radius: 0;\n\n &:hover {\n z-index: 1;\n }\n\n &:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n }\n\n &:not(:first-child) {\n margin-left: -1px;\n }\n\n &:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n }\n`;\n","import styled, { css } from 'styled-components';\nimport { SizeType } from '../../types';\n\nconst stripedStyle = css`\n tbody > tr:nth-child(odd) {\n background-color: rgba(0, 0, 0, 0.02);\n }\n`;\n\nconst hoverStyle = css`\n tbody > tr:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n`;\n\ninterface Props {\n size?: SizeType;\n full?: boolean;\n headerStyle?: any;\n bordered?: boolean;\n striped?: boolean;\n hover?: boolean;\n}\n\nexport default styled.table<Props>`\n ${({ full }) => (full ? css`width: 100%;` : undefined)}\n max-width: 100%;\n margin-bottom: 1rem;\n background-color: transparent;\n\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n\n td, th {\n vertical-align: top;\n padding: 0.75rem;\n ${({ theme, bordered }) => (bordered ? css`\n border: 1px solid ${theme.border};\n ` : undefined)}\n border-width: 0 0 1px;\n }\n\n th { white-space: nowrap; }\n\n ${({ striped }) => (striped ? stripedStyle : undefined)}\n ${({ hover }) => (hover ? hoverStyle : undefined)}\n\n ${({ headerStyle }) => (headerStyle ? css`\n th {\n ${headerStyle}\n }\n ` : undefined)}\n`;\n","import React, { HTMLAttributes, useMemo } from 'react';\nimport styled from 'styled-components';\nimport setSize from '../../utils/setSize';\nimport { ColorType, SizeType } from '../../types';\n\ninterface ProgressProps extends HTMLAttributes<HTMLDivElement>{\n /** 現状の進捗 */\n value: number;\n /** 進捗の最大値 */\n max: number;\n /** バーのサイズ */\n size?: SizeType;\n /** sizeを使わないときの縦幅を指定する */\n height?: string;\n /**\n * バーの色\n * @default 'primary'\n */\n color?: ColorType;\n}\n\nexport default function Progress(\n { value, max, color = 'primary', ...rest }: ProgressProps,\n) {\n const percent = useMemo(() => (value ? Math.round((value / max) * 100) : 0), [value, max]);\n return (\n <Wrapper color={color} {...rest}>\n <div\n role=\"progressbar\"\n aria-label=\"progress\"\n className={value !== max ? 'in-progress' : undefined}\n style={{ width: `${percent > 100 ? 100 : percent}%` }}\n />\n </Wrapper>\n );\n}\n\nconst Wrapper = styled.div<Pick<ProgressProps, 'size'|'height'>>`\n position: relative;\n display: block;\n width: 100%;\n border-radius: ${({ theme }) => theme.radius};\n background-color: ${({ theme }) => theme.background};\n\n ${({ size, height }) => height || setSize('height', size)}\n\n & > div[role=\"progressbar\"] {\n position: relative;\n height: 100%;\n border-radius: ${({ theme }) => theme.radius};\n background-color: ${({ color, theme }) => (theme[color!] || color)};\n\n &.in-progress {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n }\n\n will-change: width;\n\n transition-property: width;\n transition-duration: 350ms;\n transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n z-index: 1;\n }\n`;\n","import styled from 'styled-components';\n\nexport default styled.hr`\n border: none;\n height: 1px;\n margin: 0;\n flex-shrink: 0;\n background-color: ${({ theme }) => theme.border};\n`;\n","import React, { HTMLAttributes } from 'react';\nimport styled, { css } from 'styled-components';\nimport TextButton from '../Button/TextButton';\nimport Close from '../Icons/Close';\nimport findColorInvert from '../../utils/findColorInvert';\nimport { ColorType, ThemeType } from '../../types';\n\nfunction getColor(theme: ThemeType, color?: ColorType) {\n return (!color || color === 'light') ? theme.background : theme[color];\n}\n\nconst closeCss = css`\n padding-right: 1.625rem;\n\n ${TextButton} {\n display: flex;\n position: absolute;\n align-items: center;\n color: inherit;\n top: 0;\n right: 0;\n bottom: 0;\n padding: 0 0.35rem;\n\n svg {\n width: 0.625rem;\n height: 0.625rem;\n }\n\n &:hover {\n background-color: rgba(0,0,0,0.15);\n }\n }\n`;\n\nconst Wrapper = styled.div<Pick<Props, 'color'|'round'> & { close: boolean; }>`\n display: inline-flex;\n position: relative;\n font-size: 0.75rem;\n cursor: default;\n padding: 0.325rem 0.5rem;\n align-items: center;\n justify-content: center;\n height: 1.5rem;\n border-radius: ${({ theme, round }) => (round ? '50rem' : theme.radius)};\n white-space: nowrap;\n\n ${({ color, theme }) => {\n const target = getColor(theme, color);\n const invertColor = findColorInvert(theme, target);\n\n return css`\n color: ${invertColor};\n background-color: ${target};\n\n a, span {\n color: ${invertColor};\n }\n `;\n }}\n\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n\n ${TextButton} {\n border-radius: 0;\n border-top-right-radius: ${({ theme, round }) => (round ? '50rem' : theme.radius)};\n border-bottom-right-radius: ${({ theme, round }) => (round ? '50rem' : theme.radius)};\n }\n\n ${({ close }) => (close ? closeCss : undefined)}\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** タグの内容 */\n children: any;\n /** Xボタンの追加+クリック時のイベントハンドラー */\n onClose?: () => void;\n /** クリック時のイベントハンドラー */\n onClick?: () => void;\n /** 色の指定 */\n color?: ColorType;\n /** 丸くする */\n round?: boolean;\n}\n\nexport default function Tag({ children, onClose, ...rest }: Props) {\n return (\n <Wrapper close={!!onClose} {...rest}>\n {children}\n {onClose && (<TextButton onClick={onClose} pure><Close /></TextButton>)}\n </Wrapper>\n );\n}\n","import { css } from 'styled-components';\n\n/*! based on normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */\nconst normalized: any = css`\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n html {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n }\n\n body {\n margin: 0;\n font-family: ${({ theme }: any) => (theme ? theme.fontFamily : 'sans-serif')};\n font-size: ${({ theme }: any) => (theme ? theme.fontSize : '16px')};\n text-align: left;\n }\n\n h1 {\n font-size: 2em;\n margin: .67em 0;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre {\n font-family: monospace,monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: ${({ theme }: any) => theme.link};\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n text-decoration: underline dotted;\n }\n\n b,strong {\n font-weight: bolder;\n }\n\n code,kbd,samp {\n font-family: monospace,monospace;\n font-size: 1em;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -.25em;\n }\n\n sup {\n top: -.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,input,optgroup,select,textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,input {\n overflow: visible;\n }\n\n button,select {\n text-transform: none;\n }\n\n [type=button],[type=reset],[type=submit],button {\n -webkit-appearance: button;\n }\n\n [type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n [type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring {\n outline: 1px dotted ButtonText;\n }\n\n input[type=date],\n input[type=time],\n input[type=datetime-local],\n input[type=month] {\n -webkit-appearance: listbox;\n }\n\n fieldset {\n padding: .35em .75em .625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n resize: vertical;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type=checkbox],[type=radio] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button {\n height: auto;\n }\n\n [type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n blockquote, body, dd, dl, dt, fieldset, figure, h1, h2, h3, h4, h5, h6, hr, html, iframe, legend, li, ol, p, pre, textarea, ul {\n margin: 0;\n padding: 0;\n }\n\n button {\n font-size: inherit;\n }\n\n article, aside, figure,\n footer, header, hgroup, section {\n display: block;\n }\n\n input[type=\"checkbox\"], input[type=\"radio\"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n a {\n cursor: pointer;\n text-decoration: none;\n color: #3273dc;\n\n &:hover {\n color: currentColor;\n }\n }\n\n img {\n vertical-align: middle;\n border-style: none;\n }\n\n svg {\n overflow: hidden;\n vertical-align: middle;\n }\n\n small {\n font-size: .875em;\n }\n\n span {\n font-style: inherit;\n font-weight: inherit;\n }\n\n strong {\n color: #363636;\n font-weight: 700;\n }\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n th {\n text-align: inherit;\n }\n\n ul {\n list-style-type: none;\n }\n`;\n\nexport default normalized;\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function Approved(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z\" />\n <path d=\"M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z\" fill=\"currentColor\" />\n </g>\n <path d=\"M11.515 18.466l-3.878-3.985L6 16.005l5.59 5.59 11.562-11.533-1.7-1.595z\" fill=\"currentColor\" />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function ChevronLeftRound(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z\" />\n <path\n d=\"M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z\"\n fill=\"currentColor\"\n />\n </g>\n <path\n d=\"M18.066 8.5l-7.567 6.731 7.567 6.2\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function ChevronRightRound(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1z\" />\n <path\n d=\"M15 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28m0 2C6.716 30 0 23.284 0 15 0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15z\"\n fill=\"currentColor\"\n />\n </g>\n <path\n d=\"M11.934 21.5l7.567-6.731-7.567-6.2\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function FileRound(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z\" />\n <path\n d=\"M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z\"\n fill=\"currentColor\"\n />\n </g>\n <g transform=\"translate(9 7)\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <rect width=\"12\" height=\"16\" rx=\"1\" stroke=\"none\" />\n <path d=\"M1 1h10v14H1z\" />\n </g>\n <path\n fill=\"currentColor\"\n d=\"M13 11h4v1.3h-4zM13 14h4v1.3h-4zM13 17h4v1.3h-4z\"\n />\n </svg>\n );\n}\n","import React, { SVGAttributes } from 'react';\n\nexport default function Pencil(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"17.796\" height=\"17.908\" viewBox=\"0 0 17.796 17.908\" {...props}>\n <path\n d=\"M1.254 12.674L.5 17.408l4.726-.8L17.3 4.472 13.281.5zM1.375 12.766l3.851 3.838M10.949 2.959l3.836 3.801\"\n fill=\"none\"\n stroke=\"currentColor\"\n />\n </svg>\n );\n}\n","import React, { SVGAttributes } from 'react';\n\nexport default function PencilSimple(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M9.97.22a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-9.75 9.75a.75.75 0 01-.53.22H.75a.75.75 0 01-.75-.75V10.5a.75.75 0 01.22-.53L9.97.22zM1.5 10.81v2.69h2.69l9-9-2.69-2.69-9 9z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n","import React, { SVGAttributes } from 'react';\n\nexport default function Plus(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg width=\"21\" height=\"21\" viewBox=\"0 0 21 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M9 0v9H0v3h9v9h3v-9h9V9h-9V0H9z\" fill=\"currentColor\" />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function Refresh(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <path\n d=\"M15.065 0A15.069 15.069 0 00.142 13.105a1.256 1.256 0 102.478.406c0-.027.008-.055.01-.082a12.52 12.52 0 0121.3-7.226l-2.584 2.584 7.532 1.255-1.255-7.532-1.92 1.92A15 15 0 0015.065 0zm13.7 15.589A1.255 1.255 0 0027.5 16.7a12.512 12.512 0 01-21.893 6.569l1.927-1.927L0 20.086l1.255 7.532 2.572-2.572a15.02 15.02 0 0026.16-8.023 1.256 1.256 0 00-1.064-1.423 1.273 1.273 0 00-.16-.011z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function User(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <circle cx=\"15\" cy=\"15\" r=\"15\" stroke=\"none\" />\n <circle cx=\"15\" cy=\"15\" r=\"14\" />\n </g>\n <path\n d=\"M8 23a6.018 6.018 0 016-6h2a6.018 6.018 0 016 6zm2.6-2h8.9a4.033 4.033 0 00-3.5-2h-1.9a4.035 4.035 0 00-3.5 2zm.4-9v-1a4.012 4.012 0 014-4 4.012 4.012 0 014 4v1a4.012 4.012 0 01-4 4 4.012 4.012 0 01-4-4zm2-1v1a2.006 2.006 0 002 2 2.006 2.006 0 002-2v-1a2.006 2.006 0 00-2-2 2.006 2.006 0 00-2 2z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n","import { css } from 'styled-components';\n\nexport default function Arrow(color: string) {\n return css`\n position: absolute;\n border: 3px solid ${color};\n border-radius: 2px;\n border-right: 0;\n border-top: 0;\n content: \" \";\n display: block;\n height: 0.625em;\n margin-top: -0.625em;\n pointer-events: none;\n top: 50%;\n transform: rotate(-45deg);\n transform-origin: center;\n width: 0.625em;\n `;\n}\n","import { ThemeType } from './types';\n\nconst theme: ThemeType = {\n fontFamily: '-apple-system BlinkMacSystemFont, Meiryo, system-ui, sans-serif',\n fontSize: '16px',\n gutter: 24,\n smallGutter: 16,\n media: {\n mobile: '576px',\n tablet: '769px',\n desktop: '960px',\n fullhd: '1344px',\n },\n radius: '4px',\n timeout: 250,\n formPadding: '0.75rem 0.625rem',\n\n primary: '#37B151',\n link: '#578ba9',\n info: '#209cee',\n success: '#0fa886',\n warning: '#f2b541',\n danger: '#f3575a',\n dark: '#363636',\n light: '#9b9b9b',\n\n black: '#0a0a0a',\n blackBis: '#121212',\n blackTer: '#242424',\n\n white: '#ffffff',\n whiteBis: '#fafafa',\n whiteTer: '#f5f5f5',\n\n grey: '#7a7a7a',\n greyLight: '#9b9b9b',\n greyLighter: '#dbdbdb',\n\n text: '#4a4a4a',\n textDark: '#4a4a4a',\n textLight: '#7a7a7a',\n textStrong: '#4a4a4a',\n\n background: '#f5f5f5',\n\n border: '#dbdbdb',\n borderHover: '#9b9b9b',\n borderActive: '#4a4a4a',\n\n placeholder: '#7a7a7a',\n backdrop: 'rgba(10,10,10,0.25)',\n responsive: true,\n};\n\nexport default theme;\n"],"names":["Wrapper","styled","div","_taggedTemplateLiteralLoose","Label","h5","theme","textStrong","primary","findColorInvert","color","black","white","getLuminance","hamburger","size","css","boxShadow","amount","shadowColor","transparentize","setSize","name","mediaMobile","responsive","media","mobile","mediaTablet","tablet","mediaDesktop","desktop","mediaUntilFullHD","fullhd","disabledColor","textColor","textDark","backColor","border","Message","small","error","danger","textLight","HelpMessage","help","noErrorMessage","TextInput","className","outline","style","leftIcon","rightIcon","type","maxLength","innerRef","rest","disabled","Icon","right","ref","forwardRef","props","span","formPadding","borderRadius","radius","borderWidth","borderBottomWidth","placeholder","borderHover","undefined","Textarea","window","document","createElement","useLayoutEffect","useEffect","Approved","xmlns","width","height","viewBox","d","fill","Indeterminate","y","x","stroke","rx","Checkbox","children","indeterminate","useRef","id","value","innerClass","useMemo","arr","checked","push","join","useImperativeHandle","current","useIsomorphicLayoutEffect","htmlFor","Shape","displayName","ChevronDown","Select","options","render","inputSize","optional","list","map","item","key","InputWrapper","IconArrowDown","Radio","Switch","showLabel","background","anchorColor","onLabel","offLabel","labelTextOn","labelTextOff","labelStyle","grey","AnimatedContent","setAlign","align","setColor","backdrop","backgroundColor","NavBar","header","sticky","fixed","fluid","Burger","button","hambuger","NavContent","Portal","React","container","useState","mountNode","setMountNode","dom","getElementById","body","appendChild","createPortal","usePopper","referenceElement","popperElement","instance","popperOptions","placement","strategy","modifiers","enabled","offset","filter","Boolean","setOptions","destroy","useCallback","refEl","pEl","createPopper","wrapEvent","child","handlerName","ourHandler","event","defaultPrevented","TooltipWrapper","borderless","target","CardBody","CardHeader","CardFooter","footer","CardImage","a","CardImageHorizontal","url","backgroundImage","stopPropagation","e","Popover","position","label","onOpen","onClose","parent","popover","open","setOpen","openPopper","closePopper","handleFocus","requestAnimationFrame","handleBlur","close","cloneElement","Children","only","tabIndex","role","onClick","Tooltip","Shadow","Box","fixedNum","AnimatedBox","Close","strokeWidth","strokeLinecap","clear","paddingRight","ClearButton","ToastItem","message","duration","clearOnClick","onClear","timeout","setTimeout","clearTimeout","Container","margin","pos","bottom","left","alignItems","transform","top","getColor","spin","keyframes","Spinner","borderSize","setGap","gap","parseInt","replace","setResponsive","gutter","smallGutter","defaultProps","sizes","setAutoSize","auto","mobileSize","Math","round","desktopSize","Col","flexBasis","maxWidth","flexGrow","marginLeft","text","setAnimation","greyLighter","borderActive","invertColor","darken","icon","pure","underline","textDecoration","Button","stripedStyle","hoverStyle","table","full","bordered","striped","hover","headerStyle","hr","closeCss","TextButton","normalized","fontFamily","fontSize","link","show","prevHeight","timeoutRef","init","overflow","opacity","offsetHeight","frameIds","timeoutId","forEach","cancelAnimationFrame","transitionDuration","brand","setShow","image","title","horizontal","src","alt","styles","flexDirection","required","cx","cy","r","closeModal","external","closeOnOverlay","closeOnEsc","onExited","overflowY","useScrollFix","Transition","unmountOnExit","mountOnEnter","state","max","percent","toasts","TransitionGroup","component","tooltip","handleOpen","handleClose","onMouseEnter","onMouseLeave","onFocus","onBlur","info","success","warning","dark","light","blackBis","blackTer","whiteBis","whiteTer","greyLight"],"mappings":"20DAGMA,EAAUC,EAAOC,UAAVC,oDAKPC,EAAQH,EAAOI,SAAVF,0MAMA,qBAAGG,MAAkBC,cAGnB,qBAAGD,MAAkBE,oBCdVC,IAA6CC,OAA3BC,IAAAA,MAAOC,IAAAA,aAC1CF,GAASG,eAAaH,GAAS,IAC3BC,EAEFC,WCLeE,EAAUC,UACzBC,i/BAGKD,EACDA,YCJWE,EAAUF,EAAcL,EAAeQ,OACvDC,EAAcD,EAASE,iBAAeF,EAAQR,GAASA,SACtDM,+CAAwBD,EAAQI,YCDjBE,EAAQC,EAAyBP,UAC/CA,OACD,eACOO,mBACP,gBACOA,mBACP,eACOA,6BAEAA,sBCPAC,SAAcjB,IAAAA,aACvBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMC,WADtB,iCAIhBC,SAAcrB,IAAAA,aACvBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMG,WADtB,iCAIhBC,SAAevB,IAAAA,aACxBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMK,YADtB,iCAShBC,SAAmBzB,IAAAA,aAC5BA,EAAMkB,4CAC6BlB,EAAMmB,MAAMO,WADtB,iCCvBRC,EAAc3B,OAC9B4B,EAAYd,iBAAe,IAAMd,EAAM6B,UACvCC,EAAYhB,iBAAe,IAAMd,EAAM+B,eACtCrB,wHAGIkB,EACWE,GCJxB,cAAME,EAAUrC,EAAOsC,YAAVpC,iDAEF,gBAAUG,IAAAA,eAAPkC,MAA4BlC,EAAMmC,OAASnC,EAAMoC,sBASvCC,SAAcC,IAAAA,KAAMJ,IAAAA,aACtCA,MAD6CK,+BACVP,GAAQE,UAAOA,GAClDI,kBAAeN,OAASM,GACrB,gICMT,SAASE,SACPC,IAAAA,UAAWC,IAAAA,QAASR,IAAAA,MAAOS,IAAAA,MAAOL,IAAAA,KAAMM,IAAAA,SAAUC,I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sK,QAAS,IACTxK,YAAa,mBAEbvD,QAAS,UACT4R,KAAM,UACNiD,KAAM,UACNC,QAAS,UACTC,QAAS,UACT9S,OAAQ,UACR+S,KAAM,UACNC,MAAO,UAEP9U,MAAO,UACP+U,SAAU,UACVC,SAAU,UAEV/U,MAAO,UACPgV,SAAU,UACVC,SAAU,UAEV5N,KAAM,UACN6N,UAAW,UACXjF,YAAa,UAEbF,KAAM,UACNxO,SAAU,UACVO,UAAW,UACXnC,WAAY,UAEZmH,WAAY,UAEZrF,OAAQ,UACRgC,YAAa,UACbyM,aAAc,UAEd1M,YAAa,UACbkE,SAAU,sBACV9G,YAAY,2GlD9BgBlB,IAAAA,aACvBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMO,WADtB"}
|
|
1
|
+
{"version":3,"file":"visits-style.cjs.production.min.js","sources":["../src/forms/Field/index.tsx","../src/utils/findColorInvert.ts","../src/utils/hambuger.ts","../src/utils/boxShadow.ts","../src/utils/setSize.ts","../src/utils/media.ts","../src/utils/disabledColor.ts","../src/forms/HelpMessage.tsx","../src/forms/TextInput/index.tsx","../src/forms/Textarea/index.tsx","../src/utils/isClient.ts","../src/hooks/useIsomorphicLayoutEffect.ts","../src/forms/Checkbox/index.tsx","../src/elements/Icons/ArrowDown.tsx","../src/forms/Select/index.tsx","../src/forms/Radio/index.tsx","../src/forms/Switch/index.tsx","../src/components/Accordion/index.tsx","../src/utils/setAlign.ts","../src/components/AppBar/index.tsx","../src/components/Portal/index.tsx","../src/utils/wrapEvent.ts","../src/components/Tooltip/index.tsx","../src/elements/Box/index.tsx","../src/components/Card/index.tsx","../src/components/Popover/index.tsx","../src/hooks/useScrollFix.ts","../src/components/Modal/index.tsx","../src/elements/Icons/Close.tsx","../src/components/Toast/index.tsx","../src/components/Spinner/index.tsx","../src/elements/Grid/Container.ts","../src/elements/Grid/Row.ts","../src/elements/Grid/Col.ts","../src/elements/Content/index.ts","../src/elements/Placeholder/index.tsx","../src/elements/Button/index.ts","../src/elements/Button/TextButton.tsx","../src/elements/Button/ButtonGroup.ts","../src/elements/Table/index.ts","../src/elements/Progress/index.tsx","../src/elements/Divider/index.ts","../src/elements/Tag/index.tsx","../src/styles/normalize.ts","../src/elements/Icons/Approved.tsx","../src/elements/Icons/ChevronLeftRound.tsx","../src/elements/Icons/ChevronRightRound.tsx","../src/elements/Icons/FileRound.tsx","../src/elements/Icons/Pencil.tsx","../src/elements/Icons/PencilSimple.tsx","../src/elements/Icons/Plus.tsx","../src/elements/Icons/Refresh.tsx","../src/elements/Icons/User.tsx","../src/utils/arrow.ts","../src/theme.ts"],"sourcesContent":["import React, { ReactNode, HTMLAttributes } from 'react';\nimport styled from 'styled-components';\n\nconst Wrapper = styled.div`\n display: block;\n margin: 1.5rem 0;\n`;\n\nconst Label = styled.h5`\n display: block;\n font-size: 1rem;\n font-weight: normal;\n margin-bottom: 0.625rem;\n text-align: left;\n color: ${({ theme }) => theme.textStrong};\n\n & > i {\n color: ${({ theme }) => theme.primary};\n margin-left: 0.325rem;\n }\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n label?: string;\n children: ReactNode;\n required?: boolean;\n}\n\nexport default function Field({ label, children, required, ...rest }: Props) {\n return (\n <Wrapper {...rest}>\n {label && (\n <Label>\n {label}\n {required && (<i>*</i>)}\n </Label>\n )}\n {children}\n </Wrapper>\n );\n}\n","import { getLuminance } from 'polished';\nimport { ThemeType } from '../types';\n\nexport default function findColorInvert({ black, white }: ThemeType, color: string) {\n if (!color || getLuminance(color) > 0.55) {\n return black;\n }\n return white;\n}\n","import { css } from 'styled-components';\n\nexport default function hamburger(size: string) {\n return css`\n display: block;\n position: relative;\n height: ${size};\n width: ${size};\n\n cursor: pointer;\n span {\n background-color: currentColor;\n display: block;\n height: 1px;\n left: calc(50% - 8px);\n position: absolute;\n transform-origin: center;\n transition-duration: 100ms;\n transition-property: background-color, opacity, transform;\n transition-timing-function: ease-out;\n width: 16px;\n\n &:nth-child(1) {\n top: calc(50% - 6px);\n }\n &:nth-child(2) {\n top: calc(50% - 1px);\n }\n &:nth-child(3) {\n top: calc(50% + 4px);\n }\n\n &:hover {\n background-color: rgba(black, 0.05);\n }\n }\n\n &.active span {\n &:nth-child(1) {\n transform: translateY(5px) rotate(45deg);\n }\n &:nth-child(2) {\n opacity: 0;\n }\n &:nth-child(3) {\n transform: translateY(-5px) rotate(-45deg);\n }\n }\n `;\n}\n","import { css } from 'styled-components';\nimport { transparentize } from 'polished';\n\nexport default function boxShadow(size: string, color: string, amount?: number) {\n const shadowColor = amount ? transparentize(amount, color) : color;\n return css`box-shadow: 0 0 0 ${size} ${shadowColor};`;\n}\n","import { SizeType } from '../types';\n\ntype SizePropsNameType = 'font-size' | 'height';\n\nexport default function setSize(name: SizePropsNameType, size?: SizeType) {\n switch (size) {\n case 'small':\n return `${name}: 0.75rem;`;\n case 'medium':\n return `${name}: 1.25rem;`;\n case 'large':\n return `${name}: 1.5rem;`;\n default:\n return `${name}: 1rem;`;\n }\n}\n","import { ThemeType } from '../types';\n\ninterface Props {\n theme: ThemeType;\n}\n\nexport function mediaMobile({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.mobile})`;\n}\n\nexport function mediaTablet({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.tablet})`;\n}\n\nexport function mediaDesktop({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.desktop})`;\n}\n\nexport function mediaFullHD({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (max-width: ${theme.media.fullhd})`;\n}\n\nexport function mediaUntilFullHD({ theme }: Props) {\n if (!theme.responsive) return '@media (max-width: 0)';\n return `@media screen and (min-width: ${theme.media.fullhd})`;\n}\n","import { css } from 'styled-components';\nimport { transparentize } from 'polished';\nimport { ThemeType } from '../types';\n\nexport default function disabledColor(theme: ThemeType) {\n const textColor = transparentize(0.15, theme.textDark);\n const backColor = transparentize(0.55, theme.border);\n return css`\n pointer-events: none;\n box-shadow: none;\n color: ${textColor};\n background-color: ${backColor};\n `;\n}\n","import React from 'react';\nimport styled from 'styled-components';\n\ninterface MsgProps {\n error?: boolean;\n}\n\nconst Message = styled.small<MsgProps>`\n font-size: 0.8rem;\n color: ${({ error, theme }) => (error ? theme.danger : theme.textLight)};\n`;\n\ninterface Props {\n help?: string;\n error?: string;\n noErrorMessage?: boolean;\n}\n\nexport default function HelpMessage({ help, error, noErrorMessage }: Props) {\n if (error && !noErrorMessage) return (<Message error>{error}</Message>);\n if (help) return (<Message>{help}</Message>);\n return null;\n}\n","import React, { InputHTMLAttributes, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport { setSize } from '../../utils';\nimport disabledColor from '../../utils/disabledColor';\nimport HelpMessage from '../HelpMessage';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n placeholder?: string;\n /**\n * 'text' | 'number' | 'password' | 'email' | 'tel' | 'search'\n * @default 'text'\n */\n type?: 'text' | 'number' | 'password' | 'email' | 'tel' | 'search';\n /** エラーの発生時の表示テキスト */\n error?: string | any;\n /** 捕捉テキスト */\n help?: string | any;\n /** ボックス系のデザインでする */\n outline?: boolean;\n /** 左側のアイコン */\n leftIcon?: any;\n /** 右側のアイコン */\n rightIcon?: any;\n /** エラーが発生しても、エラーメッセージを出さないようにする */\n noErrorMessage?: boolean;\n}\n\nfunction TextInput({\n className, outline, error, style, help, leftIcon, rightIcon, type = 'text', maxLength = 255,\n noErrorMessage, innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n return (\n <Wrapper\n className={className}\n outline={outline}\n error={error}\n style={style}\n disabled={rest.disabled}\n >\n {leftIcon && (<Icon>{leftIcon}</Icon>)}\n {rightIcon && (<Icon right>{rightIcon}</Icon>)}\n <input type={type} maxLength={maxLength} ref={innerRef} {...rest} />\n <HelpMessage help={help} error={error} noErrorMessage={noErrorMessage} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <TextInput {...props} innerRef={ref} />);\n\nconst rightIcon = css`\n right: 0.375em;\n & ~ input {\n padding-right: 1.555em !important;\n }\n`;\n\nconst leftIcon = css`\n left: 0.375em;\n & ~ input {\n padding-left: 1.55em !important;\n }\n`;\n\nconst Icon = styled.span<{ right?: boolean }>`\n position: absolute;\n top: 0.375em;\n bottom: 0;\n z-index: 1;\n color: ${({ theme }) => theme.border};\n ${({ right }) => (right ? rightIcon : leftIcon)}\n\n svg, img {\n height: 1em;\n width: 1em;\n }\n`;\n\nconst Wrapper = styled.span<{ outline?: boolean, error?: any, disabled?: boolean }>`\n position: relative;\n display: block;\n\n input {\n max-width: 100%;\n width: 100%;\n height: 100%;\n position: relative;\n display: block;\n outline: none;\n box-shadow: none;\n appearance: none;\n text-align: left;\n color: inherit;\n\n padding: ${({ theme }) => theme.formPadding};\n border: 1px solid ${({ error, theme }) => (error ? theme.danger : theme.border)};\n ${({ outline, theme }) => (outline\n ? { borderRadius: theme.radius }\n : { borderRadius: 0, borderWidth: 0, borderBottomWidth: '1px' })}\n ${setSize('font-size')}\n\n transition-property: box-shadow;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n\n &:focus {\n border-color: ${({ error, theme }) => (error ? theme.danger : theme.primary)};\n box-shadow: ${({ theme, outline, error }) => (outline\n ? `0 0 0 0.1em ${(error ? theme.danger : theme.primary)}`\n : `0 0.1em ${(error ? theme.danger : theme.primary)}`)};\n }\n\n &:disabled, [disabled] {\n resize: none;\n }\n\n &::placeholder {\n color: ${({ theme }) => theme.placeholder};\n }\n }\n\n &:hover {\n input:not(:disabled):not(:focus):not(:active) {\n border-color: ${({ theme }) => theme.borderHover};\n }\n ${Icon} {\n color: ${({ theme }) => theme.borderHover};\n }\n }\n\n ${({ disabled, theme }) => (disabled\n ? css`\n input {\n ${disabledColor(theme)}\n border-style: dashed;\n }\n `\n : undefined)}\n`;\n","import React, { TextareaHTMLAttributes, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport boxShadow from '../../utils/boxShadow';\nimport setSize from '../../utils/setSize';\nimport disabledColor from '../../utils/disabledColor';\nimport HelpMessage from '../HelpMessage';\n\ninterface Props extends TextareaHTMLAttributes<HTMLTextAreaElement> {\n /** エラーの発生時の表示テキスト */\n error?: string | any;\n /** 捕捉テキスト */\n help?: string | any;\n /** エラーが発生しても、エラーメッセージを出さないようにする */\n noErrorMessage?: boolean;\n}\n\nfunction Textarea({\n className, help, error, style, innerRef, noErrorMessage, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n return (\n <Wrapper className={className} error={!!error} style={style} disabled={rest.disabled}>\n <textarea {...rest} ref={innerRef} />\n <HelpMessage help={help} error={error} noErrorMessage={noErrorMessage} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Textarea {...props} innerRef={ref} />);\n\nconst Wrapper = styled.span<{ error?: boolean, disabled?: boolean }>`\n display: block;\n position: relative;\n\n textarea {\n max-width: 100%;\n width: 100%;\n height: 100%;\n padding: 0.625em;\n resize: vertical;\n appearance: none;\n overflow: auto;\n outline: none;\n text-align: left;\n color: inherit;\n\n border-radius: ${({ theme }) => theme.radius};\n border: 1px solid ${({ theme, error }) => (error ? theme.danger : theme.border)};\n\n transition-property: box-shadow;\n transition-duration: 0.15s;\n transition-timing-function: ease-in-out;\n\n ${setSize('font-size')}\n\n &:focus {\n border-color: ${({ theme, error }) => (error ? theme.danger : theme.primary)};\n ${({ theme, error }) => boxShadow('0.1em', error ? theme.danger : theme.primary)}\n }\n\n &:disabled, [disabled], &:readonly {\n ${({ theme }) => disabledColor(theme)}\n }\n\n &:disabled, [disabled] {\n resize: none;\n }\n\n &::placeholder {\n color: ${({ theme }) => theme.placeholder};\n }\n }\n\n &:hover {\n textarea:not(:disabled):not(:focus) {\n border-color: ${({ theme }) => theme.borderHover};\n }\n }\n\n${({ disabled, theme }) => (disabled\n ? css`\n textarea {\n ${disabledColor(theme)}\n border-style: dashed;\n }\n `\n : undefined)}\n`;\n","export default (\n typeof window !== 'undefined'\n && typeof window.document !== 'undefined'\n && typeof window.document.createElement !== 'undefined'\n);\n","import { useEffect, useLayoutEffect } from 'react';\nimport isClient from '../utils/isClient';\n\nexport default isClient ? useLayoutEffect : useEffect;\n","import React, {\n useMemo, InputHTMLAttributes, forwardRef, useRef, useImperativeHandle,\n} from 'react';\nimport { transparentize } from 'polished';\nimport styled from 'styled-components';\n\nimport useIsomorphicLayoutEffect from '../../hooks/useIsomorphicLayoutEffect';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n children?: any;\n checked?: boolean;\n indeterminate?: boolean;\n}\n\nfunction Approved() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n viewBox=\"0 0 30 30\"\n >\n <path d=\"M11.5 18.5l-3.9-4L6 16l5.6 5.6 11.6-11.5-1.7-1.6z\" fill=\"currentColor\" />\n </svg>\n );\n}\n\nfunction Indeterminate() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n viewBox=\"0 0 30 30\"\n >\n <rect width=\"20\" height=\"4\" y=\"13\" x=\"4.5\" fill=\"currentColor\" stroke=\"none\" rx=\"2\" />\n </svg>\n );\n}\n\nconst Checkbox = forwardRef<HTMLInputElement| null, Props>(\n ({ className, children, indeterminate, ...rest }, ref) => {\n const innerRef = useRef<HTMLInputElement>(null);\n const id = `checkbox_${rest.name}_${rest.value}`;\n const innerClass = useMemo(() => {\n const arr = [];\n if (rest.checked || indeterminate) arr.push('checked');\n if (rest.disabled) arr.push('disabled');\n return arr.join(' ');\n }, [rest.checked, rest.disabled, indeterminate]);\n\n // @ts-ignore\n useImperativeHandle(ref, () => innerRef.current);\n\n useIsomorphicLayoutEffect(() => {\n if (innerRef.current) {\n // @ts-ignore\n innerRef.current.indeterminate = indeterminate;\n }\n }, [indeterminate]);\n\n return (\n <Wrapper className={className}>\n <input type=\"checkbox\" id={id} {...rest} ref={innerRef} />\n <label htmlFor={id}>\n <Shape className={innerClass}>\n {indeterminate ? <Indeterminate /> : <Approved />}\n </Shape>\n {children}\n </label>\n </Wrapper>\n );\n },\n);\n\nCheckbox.displayName = 'Checkbox';\n\nexport default Checkbox;\n\nconst Shape = styled.div`\n display: inline-flex;\n margin: 0.5rem;\n width: 1.25em;\n height: 1.25em;\n background: transparent;\n border: 0.1em solid ${({ theme }) => theme.border};\n border-radius: ${({ theme }) => theme.radius};\n justify-content: center;\n align-items: center;\n\n will-change: background-color;\n transition: background-color 150ms ease-out;\n\n svg {\n opacity: 0;\n stroke-width: 0.1em;\n stroke: currentColor;\n }\n\n &.checked {\n border-color: ${({ theme }) => theme.primary};\n background-color: ${({ theme }) => theme.primary};\n color: ${({ theme }) => theme.white};\n svg {\n opacity: 1;\n }\n\n &.disabled {\n color: ${({ theme }) => transparentize(0.15, theme.textDark)};\n }\n }\n\n &.disabled {\n background: ${({ theme }) => transparentize(0.55, theme.border)};\n border-color: ${({ theme }) => theme.border};\n }\n`;\n\nconst Wrapper = styled.span`\n display: block;\n position: relative;\n width: auto;\n\n label {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding-left: 0.625em;\n max-width: 100%;\n width: 100%;\n line-height: 1.25;\n margin-right: 0.625rem;\n }\n\n input {\n display: none;\n &:disabled + label {\n color: ${({ theme }) => transparentize(0.25, theme.textDark)};\n }\n }\n`;\n","import React, { SVGAttributes } from 'react';\n\nexport default function ChevronDown(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg width=\"12\" height=\"8\" viewBox=\"0 0 12 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M10.6 0L6 4.6 1.4 0 0 1.4l6 6 6-6L10.6 0z\" fill=\"currentColor\" />\n </svg>\n );\n}\n","import React, { SelectHTMLAttributes, useMemo, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport setSize from '../../utils/setSize';\nimport HelpMessage from '../HelpMessage';\nimport { SizeType } from '../../types';\nimport disabledColor from '../../utils/disabledColor';\nimport IconArrowDown from '../../elements/Icons/ArrowDown';\n\ntype ItemType =\n | { id: string | number; name: string; [key: string]: any }\n | string;\n\ninterface Props extends SelectHTMLAttributes<HTMLSelectElement> {\n placeholder?: string;\n /** { id: string | number, name: string, ...rest } | string */\n options: ItemType[];\n outline?: boolean;\n /** エラーの発生時の表示テキスト */\n error?: string | any;\n /** 捕捉テキスト */\n help?: string | any;\n /** selectのサイズ */\n inputSize?: SizeType;\n /** optionのカスタムrender */\n render?: (label: string) => any;\n /** placehoderを選択可能にする */\n optional?: boolean;\n /** エラーが発生しても、エラーメッセージを出さないようにする */\n noErrorMessage?: boolean;\n}\n\nfunction Select({\n options = [], placeholder, render, help, error, className, inputSize, outline, optional,\n noErrorMessage, innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n const list = useMemo(() => options.map((item) => (\n typeof item === 'string'\n ? (<option key={item} value={item}>{render ? render(item) : item}</option>)\n : (<option key={item.id} value={item.id}>{render ? render(item.name) : item.name}</option>)\n )), [options, render]);\n\n return (\n <InputWrapper\n className={className}\n inputSize={inputSize}\n outline={outline}\n error={!!error}\n disabled={rest.disabled}\n >\n <select {...rest} ref={innerRef}>\n {placeholder && (<option value=\"\" disabled={!optional}>{placeholder}</option>)}\n {list}\n </select>\n <IconArrowDown />\n <HelpMessage help={help} error={error} noErrorMessage={noErrorMessage} />\n </InputWrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Select {...props} innerRef={ref} />);\n\nconst InputWrapper = styled.span<Pick<Props, 'inputSize'|'outline'> & { error: boolean, disabled?: boolean }>`\n position: relative;\n display: block;\n\n select {\n display: block;\n cursor: pointer;\n appearance: none;\n outline: none;\n max-width: 100%;\n width: 100%;\n height: 100%;\n background-color: transparent;\n padding: ${({ theme }) => theme.formPadding};\n padding-right: 1.85rem;\n text-align: left;\n color: inherit;\n\n ${({ inputSize }) => setSize('font-size', inputSize)}\n\n border: 1px solid ${({ error, theme }) => (error ? theme.danger : theme.border)};\n ${({ outline, theme }) => (\n outline ? css`\n border-radius: ${theme.radius};\n ` : css`\n border-width: 0;\n border-radius: 0;\n border-bottom-width: 1px;\n `)}\n\n will-change: box-shadow;\n transition-property: box-shadow;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n\n &:hover {\n border-color: ${({ theme }) => theme.borderHover};\n }\n\n &:focus {\n border-color: ${({ error, theme }) => (error ? theme.danger : theme.primary)};\n box-shadow: ${({ theme, outline, error }) => (outline\n ? `0 0 0 0.1em ${(error ? theme.danger : theme.primary)}`\n : `0 0.1em ${(error ? theme.danger : theme.primary)}`)};\n }\n\n &::-ms-expand {\n display: none;\n }\n &:-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #000;\n }\n\n &:invalid {\n color: ${({ theme }) => theme.placeholder};\n }\n }\n\n svg {\n position: absolute;\n right: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n color: ${({ theme }) => theme.border};\n }\n\n select:hover + svg {\n color: ${({ theme }) => theme.borderHover};\n }\n\n ${({ disabled, theme }) => (disabled ? css`\n select {\n ${disabledColor(theme)}\n border-style: dashed;\n }\n svg {\n display: none;\n }\n ` : undefined)}\n`;\n","import React, { useMemo, InputHTMLAttributes, forwardRef } from 'react';\nimport { transparentize } from 'polished';\nimport styled from 'styled-components';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n value: string | number;\n children?: any;\n checked?: boolean;\n}\n\nfunction Radio({\n className, style, children, innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n const id = `radio_${rest.name}_${rest.value}`;\n const innerClass = useMemo(() => {\n const arr = [];\n if (rest.checked) arr.push('checked');\n if (rest.disabled) arr.push('disabled');\n return arr.join(' ');\n }, [rest.checked, rest.disabled]);\n\n return (\n <Wrapper className={className} style={style}>\n <label htmlFor={id}>\n <Shape className={innerClass}>\n <i />\n </Shape>\n {children}\n </label>\n <input id={id} type=\"radio\" {...rest} ref={innerRef} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Radio {...props} innerRef={ref} />);\n\nconst Shape = styled.div`\n display: inline-flex;\n margin: 0.5rem;\n width: 1.25em;\n height: 1.25em;\n background: transparent;\n border: 0.1em solid ${({ theme }) => theme.border};\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n\n will-change: background-color, border-color;\n transition-property: background-color, border-color;\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n\n &.checked {\n border-color: ${({ theme }) => theme.primary};\n & > i {\n transform: scale(1);\n }\n\n &.disabled > i {\n background-color: ${({ theme }) => transparentize(0.15, theme.textDark)};\n }\n }\n\n &.disabled {\n background: ${({ theme }) => transparentize(0.55, theme.border)};\n border-color: ${({ theme }) => theme.border};\n }\n\n & > i {\n display: block;\n width: 0.5em;\n height: 0.5em;\n background: ${({ theme }) => theme.primary};\n border: none;\n transform: scale(0);\n border-radius: 50%;\n\n will-change: transform;\n transition: transform 150ms ease-out;\n }\n`;\n\nconst Wrapper = styled.span`\n display: block;\n width: auto;\n\n label {\n cursor: pointer;\n max-width: 100%;\n width: 100%;\n line-height: 1.25;\n margin-right: 0.625rem;\n display: flex;\n align-items: center;\n\n &:hover > div:not(.checked):not(.disabled) {\n border-color: ${({ theme }) => theme.borderHover};\n }\n }\n\n input {\n display: none;\n }\n`;\n","import React, { InputHTMLAttributes, forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport findColorInvert from '../../utils/findColorInvert';\nimport disabledColor from '../../utils/disabledColor';\n\ninterface Props extends InputHTMLAttributes<HTMLInputElement> {\n /** trueの場合にON/OFFのラベルを表示します */\n showLabel?: boolean;\n /** ONの時に、色を指定します。 */\n background?: string;\n /** 丸の色を設定します。 */\n anchorColor?: string;\n /**\n * ONになるときのラベル\n * @default 'ON'\n */\n onLabel?: string;\n /**\n * OFFになるときのラベル\n * @default 'OFF'\n */\n offLabel?: string;\n}\n\nfunction Switch({\n className, showLabel, background, anchorColor,\n onLabel = 'ON', offLabel = 'OFF', innerRef, ...rest\n}: Props & { innerRef: React.Ref<any> }) {\n const id = `switch_${rest.name}`;\n return (\n <Wrapper\n className={className}\n showLabel={showLabel}\n background={background}\n anchorColor={anchorColor}\n labelTextOn={onLabel}\n labelTextOff={offLabel}\n disabled={rest.disabled}\n >\n <input id={id} type=\"checkbox\" {...rest} ref={innerRef} />\n <label htmlFor={id} aria-label={id} />\n </Wrapper>\n );\n}\nexport default forwardRef<any, Props>((props, ref) => <Switch {...props} innerRef={ref} />);\n\nconst labelStyle = css`\n label:before {\n position: absolute;\n display: block;\n content: '${({ offLabel }: any) => offLabel}';\n top: 0.5rem;\n right: 0.6875rem;\n font-size: 0.825rem;\n line-height: 0.825rem;\n color: ${({ theme }: any) => theme.textLight};\n }\n\n input:checked ~ label:before {\n content: '${({ onLabel }: any) => onLabel}';\n right: unset;\n left: 0.6875rem;\n color: ${({ theme }: any) => findColorInvert(theme, theme.primary)};\n }\n`;\n\nconst Wrapper = styled.span<Pick<Props, 'anchorColor'|'background'|'showLabel'|'disabled'> & { labelTextOn: string; labelTextOff: string }>`\n display: inline-block;\n cursor: pointer;\n line-height: 1.25;\n position: relative;\n\n input {\n display: none;\n }\n\n label {\n position: relative;\n display: block;\n height: 1.875rem;\n min-width: 5rem;\n background: transparent;\n border: 1px solid ${({ theme }) => theme.border};\n border-radius: 1.25rem;\n cursor: pointer;\n will-change: background-color;\n transition: background-color 300ms ease;\n box-shadow: inset 0 0.25rem 0.25rem rgba(0,0,0,0.05);\n\n &:after {\n position: absolute;\n display: block;\n left: 0.375rem;\n top: 0.2rem;\n width: 1.375rem;\n height: 1.375rem;\n border-radius: 100%;\n background: ${({ theme, anchorColor }) => anchorColor || theme.white};\n content: '';\n text-align: right;\n border: 1px solid ${({ theme }) => theme.border};\n will-change: left;\n transition: left 300ms ease;\n box-shadow: 0 0 0.375rem rgba(0,0,0,0.1);\n }\n }\n\n input:checked ~ label {\n background: ${({ theme, background }) => (background || theme.primary)};\n box-shadow: inset 0 0.25rem 0.25rem rgba(0,0,0,0.15);\n &:after {\n left: calc(100% - 1.75rem);\n box-shadow: 0 0 0.375rem rgba(0,0,0,0.15);\n }\n }\n\n ${({ showLabel }) => (showLabel ? labelStyle : undefined)}\n ${({ disabled, theme }) => (disabled\n ? css`\n cursor: default;\n\n label {\n ${disabledColor(theme)}\n\n &:after {\n background: ${theme.disabled};\n }\n }\n\n input:checked ~ label {\n background: ${theme.grey};\n }\n `\n : undefined)}\n`;\n","import React, { HTMLAttributes, useRef, useEffect } from 'react';\nimport styled from 'styled-components';\n\nimport useIsomorphicLayoutEffect from '../../hooks/useIsomorphicLayoutEffect';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** ボタンなどの表示するラベル */\n header: any;\n show: boolean;\n /**\n * アニメーションの時間\n * @default 300\n */\n timeout?: number;\n}\n\nexport default function Accordion({ header, show, children, timeout = 300, ...rest }: Props) {\n const ref = useRef<HTMLDivElement | null>(null);\n const prevHeight = useRef<number>(0);\n const timeoutRef = useRef<number>(0);\n const init = useRef(true);\n\n useEffect(() => { timeoutRef.current = timeout; }, [timeout]);\n\n useIsomorphicLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.overflow = 'hidden';\n ref.current.style.opacity = '1';\n\n if (init.current) {\n init.current = false;\n ref.current.style.height = show ? 'auto' : '0px';\n if (show) {\n // cache prev calculated height after 1 frame draw\n requestAnimationFrame(() => {\n if (ref.current) {\n prevHeight.current = ref.current.offsetHeight;\n }\n });\n } else {\n // explicitly calculate auto height\n requestAnimationFrame(() => {\n if (ref.current) {\n ref.current.style.height = 'auto';\n prevHeight.current = ref.current.offsetHeight;\n ref.current.style.height = '0px';\n }\n });\n ref.current.style.opacity = '0';\n }\n return;\n }\n\n if (!show) {\n ref.current.style.height = `${prevHeight.current}px`;\n }\n\n const frameIds = [] as number[];\n frameIds[0] = requestAnimationFrame(() => {\n frameIds[1] = requestAnimationFrame(() => {\n if (!ref.current) return;\n ref.current.style.height = `${show ? prevHeight.current : 0}px`;\n ref.current.style.opacity = show ? '1' : '0';\n });\n });\n\n const timeoutId = setTimeout(() => {\n if (!ref.current) return;\n if (show) {\n ref.current.style.height = 'auto';\n ref.current.style.overflow = '';\n ref.current.style.opacity = '';\n\n // cache prev calculated height after 1 frame draw\n requestAnimationFrame(() => {\n if (ref.current) {\n prevHeight.current = ref.current.offsetHeight;\n }\n });\n } else {\n ref.current.style.height = '0px';\n }\n }, timeoutRef.current);\n\n return () => {\n frameIds.forEach(cancelAnimationFrame);\n clearTimeout(timeoutId);\n };\n }, [show]);\n\n return (\n <div {...rest}>\n {header}\n <AnimatedContent\n aria-hidden={!show}\n ref={ref}\n style={{ transitionDuration: `${timeout}ms` }}\n >\n {children}\n </AnimatedContent>\n </div>\n );\n}\n\nconst AnimatedContent = styled.div`\n will-change: opacity, height, transform;\n transition-property: opacity, height, transform;\n transition-timing-function: ease-in-out;\n`;\n","export default function setAlign({ align }: { align?: 'left' | 'right' | 'center' }) {\n switch (align) {\n case 'left':\n return 'flex-start';\n case 'right':\n return 'flex-end';\n case 'center':\n return 'center';\n default:\n return 'space-evenly';\n }\n}\n","import React, { HTMLAttributes, useState } from 'react';\nimport { transparentize } from 'polished';\nimport styled, { css } from 'styled-components';\nimport findColorInvert from '../../utils/findColorInvert';\nimport hambuger from '../../utils/hambuger';\nimport setAlign from '../../utils/setAlign';\nimport { mediaTablet, mediaMobile } from '../../utils/media';\nimport { ColorType, ThemeType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** background色 */\n color?: ColorType;\n /** ロゴのイメージ、プロジェクト名など */\n brand?: React.ReactElement<any> | string;\n /** 定義された位置を固定にする */\n fixed?: boolean;\n /** (IE11不可)画面がスクロールされても上で貼り付けいるようにする */\n sticky?: boolean;\n /** 中央並びから自動幅で表示します */\n fluid?: boolean;\n /** 背景がblurされます(safari専用、他は透明度) */\n backdrop?: boolean;\n /** childrenに定義するElementの並び順を指定します。未定義は自動並び */\n align?: 'left' | 'right';\n}\n\nexport default function AppBar({ children, align, brand, ...rest }: Props) {\n const [show, setShow] = useState(false);\n const toggleMenu = () => setShow(!show);\n\n return (\n <NavBar\n role=\"navigation\"\n {...rest}\n >\n <nav>\n {brand}\n {children && (\n <Burger className={show ? 'active' : undefined} onClick={toggleMenu}>\n <span />\n <span />\n <span />\n </Burger>\n )}\n <NavContent className={show ? 'active' : undefined} align={align}>\n {children}\n </NavContent>\n </nav>\n </NavBar>\n );\n}\n\nfunction setColor(\n { color, theme, backdrop }: { color?: ColorType, theme: ThemeType, backdrop?: boolean },\n) {\n const backgroundColor = color ? theme[color] : 'transparent';\n const textColor = findColorInvert(\n theme, backgroundColor === 'transparent' ? theme.background : backgroundColor,\n );\n\n if (backdrop) {\n const backColor = transparentize(\n 0.2, (backgroundColor === 'transparent' ? theme.white : backgroundColor),\n );\n\n return css`\n background-color: ${backColor};\n color: ${textColor};\n `;\n }\n\n return css`background-color: ${backgroundColor}; color: ${textColor};`;\n}\n\nconst NavBar = styled.header<Props>`\n position: ${({ fixed, sticky }) => {\n if (sticky) return 'sticky';\n if (fixed) return 'fixed';\n return 'relative';\n }};\n display: flex;\n top: -1px;\n min-height: 3.25rem;\n width: 100%;\n z-index: 30;\n\n padding: ${({ fluid }) => (fluid ? '0 0.75rem' : '0 5%')};\n\n & > nav {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n flex: 1 0 auto;\n }\n\n ${setColor}\n\n a { color: inherit; }\n\n ${mediaTablet} {\n padding: ${({ fluid }) => (fluid ? '0 0.5rem' : '0 3%')};\n }\n`;\n\nconst Burger = styled.button`\n ${hambuger('3.25rem')}\n display: none;\n margin-left: auto;\n border: none;\n background-color: transparent;\n color: inherit;\n\n outline: none;\n\n &:hover{\n background-color: rgba(0, 0, 0, .05);\n }\n\n ${mediaMobile} {\n display: block;\n }\n`;\n\nconst NavContent = styled.div<Pick<Props, 'color'|'align'> & { show?: boolean }>`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n flex-basis: auto;\n flex-grow: 1;\n height: 100%;\n\n & > ul {\n display: flex;\n flex-direction: row;\n list-style: none;\n flex-grow: 1;\n flex-basis: 100%;\n height: inherit;\n align-items: center;\n justify-content: ${setAlign};\n\n li {\n padding: 0.85rem;\n }\n }\n\n & > div, & > span, & > form {\n display: flex;\n ${({ color }) => (color ? `color: ${color};` : '')}\n }\n\n ${mediaMobile} {\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n height: auto;\n\n padding-bottom: 0.5rem;\n\n &:not(.active) {\n display:none;\n }\n\n & > ul {\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n flex-basis: auto;\n li {\n padding: .5rem 0;\n }\n }\n\n & > div, & > span, & > form {\n padding: .5rem 0;\n width: 100%;\n }\n }\n`;\n","import React, { useState } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport useIsomorphicLayoutEffect from '../../hooks/useIsomorphicLayoutEffect';\n\ninterface Props {\n children: React.ReactNode;\n container?: HTMLElement;\n disabled?: boolean;\n}\n\nconst Portal = React.forwardRef(({ children, container, disabled }: Props, ref) => {\n const [mountNode, setMountNode] = useState<Element | null>(null);\n\n useIsomorphicLayoutEffect(() => {\n if (disabled) {\n setMountNode(null);\n return;\n }\n if (!container) {\n let dom = document.getElementById('visits-style-portals');\n if (!dom) {\n dom = document.createElement('div');\n dom.id = 'visits-style-portals';\n document.body.appendChild(dom);\n }\n setMountNode(dom);\n return;\n }\n setMountNode(container);\n }, [container, disabled]);\n\n return mountNode ? createPortal(children, mountNode) : mountNode;\n});\nPortal.displayName = 'Portal';\n\nexport default Portal;\n","import React from 'react';\n\nexport default function wrapEvent(\n child: React.ReactElement,\n handlerName: string,\n ourHandler: React.EventHandler<any>,\n) {\n return (event: any) => {\n if (typeof child !== 'string' && child.props[handlerName]) {\n child.props[handlerName](event);\n }\n\n if (!event.defaultPrevented) {\n return ourHandler(event);\n }\n };\n}\n","import React, { Children, cloneElement, useState } from 'react';\nimport styled from 'styled-components';\nimport { useFloating, shift, offset as offsetUi, flip, autoUpdate } from '@floating-ui/react-dom';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport { Placement } from '@floating-ui/core';\n\nimport Portal from '../Portal';\nimport { ColorType } from '../../types';\nimport wrapEvent from '../../utils/wrapEvent';\n\ninterface TooltipProps {\n /** 吹き出しとして表示したい内容 */\n label: React.ReactNode;\n /** マウスオーバーの対象になるelement */\n children: React.ReactElement;\n /** 吹き出しの背景色の指定 */\n color?: ColorType;\n /**\n * 表示される場所\n * @default 'bottom'\n */\n position?: Placement;\n\n /**\n * ツールチップが表示される間隔, 単位はpx\n * @default '{ x: 0, y: 6 }'\n */\n offset?: { x: number; y: number; };\n\n className?: string;\n}\n\nexport default function Tooltip({\n children, position = 'bottom',\n label, color, className = '',\n offset = { x: 0, y: 6 },\n}: TooltipProps) {\n const { reference, floating, strategy, x, y } = useFloating({\n placement: position,\n middleware: [\n shift(),\n flip(),\n offsetUi({ mainAxis: offset.y, crossAxis: offset.x }),\n ],\n whileElementsMounted: autoUpdate,\n });\n const [open, setOpen] = useState(false);\n\n const handleOpen = () => {\n setOpen(true);\n };\n\n const handleClose = () => {\n setOpen(false);\n };\n\n const child = typeof children === 'string' ? <span>{children}</span> : children;\n\n return (\n <>\n {cloneElement(Children.only(child), {\n ref: reference,\n onMouseEnter: wrapEvent(child, 'onMouseEnter', handleOpen),\n onMouseLeave: wrapEvent(child, 'onMouseLeave', handleClose),\n onFocus: wrapEvent(child, 'onFocus', handleOpen),\n onBlur: wrapEvent(child, 'onBlur', handleClose),\n })}\n {open && (\n <Portal>\n <TooltipWrapper\n className={className}\n ref={floating}\n role=\"tooltip\"\n color={color}\n style={{\n position: strategy,\n top: y || 0,\n left: x || 0,\n }}\n >\n {label}\n </TooltipWrapper>\n </Portal>\n )}\n </>\n );\n}\n\nconst TooltipWrapper = styled.div<Pick<TooltipProps, 'color'> & { show?: boolean }>`\n position: relative;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n z-index: 9999;\n padding: 0.375rem 0.625rem;\n cursor: default;\n white-space: pre;\n font-size: 0.85rem;\n z-index: 9999;\n\n background-color: ${({ color, theme }) => (color ? (theme[color] || theme.background) : theme.background)};\n`;\n","import { HTMLAttributes } from 'react';\nimport styled from 'styled-components';\nimport findColorInvert from '../../utils/findColorInvert';\nimport { ColorType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** 色指定 */\n color?: ColorType;\n /** borderを非表示する */\n borderless?: boolean;\n}\n\nexport default styled.div<Props>`\n position: relative;\n display: flex;\n flex-direction: column;\n border: ${({ borderless, theme }) => (borderless ? 'none' : `1px solid ${theme.border}`)};\n border-radius: ${({ theme }) => theme.radius};\n width: 100%;\n\n min-width: 0;\n word-wrap: break-word;\n\n ${(({ color, theme }) => {\n if (!color) return undefined;\n const target = theme[color] || color;\n const invertColor = findColorInvert(theme, target);\n return {\n backgroundColor: target,\n color: invertColor,\n };\n })}\n`;\n","import React, { HTMLAttributes, useMemo } from 'react';\nimport styled from 'styled-components';\nimport Box from '../../elements/Box';\nimport { ColorType } from '../../types';\n\nconst CardBody = styled.div`\n padding: 1.25rem;\n margin: 0;\n`;\n\nconst CardHeader = styled.header`\n display: flex;\n padding: 0.5rem 1.5rem;\n min-height: 3.5rem;\n border-bottom: 1px solid ${({ theme }) => theme.border};\n align-items: center;\n justify-content: space-between;\n`;\n\nconst CardFooter = styled.footer`\n display: flex;\n padding: 0.5rem 1.5rem;\n min-height: 3.5rem;\n border-top: 1px solid ${({ theme }) => theme.border};\n align-items: center;\n justify-content: space-between;\n`;\n\nconst CardImage = styled.a`\n width: 100%;\n\n img {\n width: 100%;\n padding: 0;\n margin: 0;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n }\n`;\n\nconst CardImageHorizontal = styled.a<{ url?: string }>`\n flex: 0 0 30%;\n min-width: 5rem;\n width: 30%;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px;\n\n background: no-repeat center/cover;\n ${({ url }) => (url ? { backgroundImage: `url(${url})` } : undefined)}\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** レスポンシブなイメージを追加する */\n image?: string;\n /** タイトル */\n title?: string;\n /** ヘッダーの右側に追加する */\n headerOptions?: any;\n /** header部分(イメージ)を横並びにする */\n horizontal?: boolean;\n /** footer */\n footer?: any;\n /** 色の指定 */\n color?: ColorType;\n}\n\nexport default function Card({\n image, title, children, horizontal, footer, color, style = {}, ...rest\n}: Props) {\n const header = useMemo(() => {\n if (image && !horizontal) return (<CardImage><img src={image} alt=\"\" /></CardImage>);\n if (image && horizontal) return (<CardImageHorizontal url={image} />);\n if (title && !horizontal) return (<CardHeader><h3>{title}</h3></CardHeader>);\n return null;\n }, [image, title, horizontal]);\n\n const styles: any = useMemo(\n () => ({ flexDirection: horizontal ? 'row' : 'column', ...style }),\n [style, horizontal],\n );\n\n return (\n <Box color={color} {...rest} style={styles}>\n {header}\n <CardBody>\n {children}\n </CardBody>\n {footer && (<CardFooter>{React.Children.only(footer)}</CardFooter>)}\n </Box>\n );\n}\n","/* eslint-disable no-param-reassign, no-unused-expressions */\nimport React, {\n Children, cloneElement, useState, HTMLAttributes, useEffect,\n forwardRef, useImperativeHandle,\n} from 'react';\nimport styled from 'styled-components';\nimport { useFloating, shift, offset as offsetUi, flip, autoUpdate } from '@floating-ui/react-dom';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport { Placement } from '@floating-ui/core';\n\nimport Portal from '../Portal';\nimport Box from '../../elements/Box';\nimport wrapEvent from '../../utils/wrapEvent';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** ボタンの内容 */\n label: React.ReactElement;\n /** 内容のリスト */\n children?: React.ReactNode;\n /**\n * 吹き出しの背景色\n * @default 'background'\n */\n color?: string;\n /** 右の基準でリストを表示する */\n right?: boolean;\n /**\n * 表示される場所\n * @default 'bottom-end'\n */\n position?: Placement;\n\n /**\n * ツールチップが表示される間隔\n * @default '{ x: 0, y: 6 }'\n */\n offset?: { x: number; y: number; };\n\n /** 閉じた場合のコールバック */\n onClose?: () => void;\n /** 開けた場合のコールバック */\n onOpen?: () => void;\n /** コンテンツを出さない */\n disabled?: boolean;\n}\n\nexport interface PopoverRef {\n open: () => void;\n close: () => void;\n}\n\nfunction stopPropagation(e?: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) {\n if (!e) return;\n e.stopPropagation();\n}\n\nconst Popover = forwardRef(({\n position, label, children, color = 'background',\n onOpen, onClose, disabled, className = '',\n offset = { x: 0, y: 6 },\n ...rest\n}: Props, ref: React.Ref<PopoverRef>) => {\n const [open, setOpen] = useState(false);\n const { reference, floating, strategy, x, y } = useFloating({\n placement: position,\n middleware: [\n shift(),\n flip(),\n offsetUi({ mainAxis: offset.y, crossAxis: offset.x }),\n ],\n whileElementsMounted: autoUpdate,\n });\n\n const handleFocus = (e?: React.MouseEvent<HTMLButtonElement>) => {\n stopPropagation(e);\n setOpen(true);\n if (onOpen) onOpen();\n };\n\n const handleBlur = (e?: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => {\n stopPropagation(e);\n setOpen(false);\n if (onClose) onClose();\n };\n\n useEffect(() => {\n if (disabled && open) {\n setOpen(false);\n }\n }, [disabled, open]);\n\n useImperativeHandle(ref, () => ({\n open: handleFocus,\n close: handleBlur,\n }));\n\n return (\n <>\n {cloneElement(Children.only(label), {\n ref: reference,\n tabIndex: 0,\n role: 'button',\n onClick: wrapEvent(label, 'onClick', handleFocus),\n disabled,\n })}\n {open && (\n <Portal>\n <Tooltip\n role=\"tooltip\"\n className={className}\n ref={floating}\n color={color}\n onClick={stopPropagation}\n style={{\n position: strategy,\n top: y || 0,\n left: x || 0,\n }}\n {...rest}\n >\n {children}\n </Tooltip>\n <Shadow onClick={handleBlur} data-testid=\"visits-style-shadow\" />\n </Portal>\n )}\n </>\n );\n});\nPopover.displayName = 'Popover';\n\nexport default Popover;\n\nconst Tooltip = styled(Box)`\n display: flex;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n padding: 0.5rem 0;\n width: auto;\n height: auto;\n cursor: auto;\n z-index: 40;\n`;\n\nconst Shadow = styled.div`\n position: fixed;\n z-index: 38;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n`;\n","import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';\n\nlet fixedNum = 0;\n\nexport default function useScrollFix(show?: boolean) {\n useIsomorphicLayoutEffect(() => {\n if (show) {\n document.body.style.overflowY = 'hidden';\n fixedNum += 1;\n return () => {\n if (fixedNum <= 1) {\n document.body.style.overflowY = 'auto';\n fixedNum = 0;\n } else {\n fixedNum -= 1;\n }\n };\n }\n return undefined;\n }, [show]);\n}\n","import React, { HTMLAttributes } from 'react';\nimport styled from 'styled-components';\nimport { Transition } from 'react-transition-group';\nimport useScrollFix from '../../hooks/useScrollFix';\nimport Box from '../../elements/Box';\nimport Portal from '../Portal';\nimport { ColorType } from '../../types';\n\n// const ESC_KEY = 27;\n\nconst Shadow = styled.div`\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n`;\n\nconst Wrapper = styled(Shadow)`\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index: 9997;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: ${({ theme }) => theme.backdrop};\n padding: 0.85rem;\n`;\n\nconst AnimatedBox = styled(Box)`\n width: auto;\n margin: auto;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: auto;\n z-index: 100;\n\n will-change: transform, opacity;\n transition-property: transform, opacity;\n transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-duration: 200ms;\n\n opacity: 0;\n transform: scale(0.8);\n\n &.entered {\n opacity: 1;\n transform: scale(1);\n }\n\n &.entering, &.exiting, &.exited {\n opacity: 0;\n transform: scale(0.8);\n }\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** trueの場合、モーダルを表示します。 */\n show?: boolean;\n /** モーダルのbodyに入れる内容 */\n children?: React.ReactNode;\n /**\n * モーダルのbackground色\n * @default 'background'\n */\n color?: ColorType;\n /** モーダルを閉じる処理 */\n closeModal: () => void;\n /** オーバーレイのクリックでモーダルクローズ */\n closeOnOverlay?: boolean;\n /** escボタンでクローズ */\n closeOnEsc?: boolean;\n /**\n * モーダルの表示・非表示のアニメーション速度\n * @default 200\n */\n timeout?: number;\n /** モーダル外に表示するElements */\n external?: React.ReactNode;\n /** モーダルのtransition exitが完了した時に発火されるcallback */\n onExited?: () => void;\n}\n\nexport default function Modal({\n show, children, timeout = 200,\n color = 'background', closeModal, external,\n className, closeOnOverlay, closeOnEsc, onExited,\n ...rest\n}: Props) {\n useScrollFix(show);\n return (\n <Portal>\n <Transition\n in={show}\n timeout={timeout!}\n onExited={onExited}\n unmountOnExit\n mountOnEnter\n >\n {(state) => (\n <Wrapper\n role=\"dialog\"\n className={className}\n >\n <Shadow onClick={closeOnOverlay ? closeModal : undefined} data-testid=\"vs-modal-overlay\" />\n <AnimatedBox className={state} color={color} borderless {...rest} role=\"document\">\n {children}\n </AnimatedBox>\n {external}\n </Wrapper>\n )}\n </Transition>\n </Portal>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function Close(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\">\n <path d=\"M25.999 26l-12.5-12.5L25.999 1\" />\n <path d=\"M1 26l12.5-12.5L1 1\" />\n </g>\n </svg>\n );\n}\n","import React, { useEffect, HTMLAttributes, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { Transition, TransitionGroup } from 'react-transition-group';\n\nimport Portal from '../Portal';\nimport Close from '../../elements/Icons/Close';\nimport Box from '../../elements/Box';\nimport { ColorType } from '../../types';\n\ntype PositionType = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';\n\ninterface ToastProps extends HTMLAttributes<HTMLDivElement> {\n /** 認識ID */\n id: string;\n /** 表示する内容 */\n message?: React.ReactNode;\n /** 背景の色 */\n color?: ColorType;\n /**\n * 表示される時間 nullの場合は自動で閉じられません\n * @default 5000\n */\n duration?: number | null;\n /** 押したら閉じられる */\n clearOnClick?: boolean;\n}\n\nconst Wrapper = styled(Box)<{ clear?: boolean }>`\n position: relative;\n padding: 0.375em 0.75em;\n max-width: 100%;\n margin-bottom: 1rem;\n z-index: 9999;\n width: fit-content;\n\n transition-property: transform, opacity;\n transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-duration: 250ms;\n\n &.entering {\n opacity: 0.01;\n transform: scale(0.8);\n }\n &.entered {\n opacity: 1;\n transform: scale(1);\n }\n &.exiting {\n opacity: 0.01;\n transform: scale(0.8);\n }\n\n ${({ clear }) => (clear ? { paddingRight: '2.25rem' } : undefined)}\n`;\n\nconst ClearButton = styled.button`\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n padding: 0;\n border: none;\n background: transparent;\n color: inherit;\n cursor: pointer;\n width: 2rem;\n\n svg {\n width: 1rem;\n height: 1rem;\n }\n\n &:hover {\n background: rgba(0,0,0,0.15);\n }\n`;\n\ninterface ToastItemProps extends ToastProps {\n clear: (id: string) => void;\n}\n\nfunction ToastItem(\n {\n color, message, duration = 5000, clear, clearOnClick, id, ...rest\n }: ToastItemProps,\n) {\n const onClear = useCallback(() => clear(id), [clear, id]);\n\n useEffect(() => {\n if (duration) {\n const timeout = setTimeout(onClear, duration);\n return () => clearTimeout(timeout);\n }\n return undefined;\n }, [onClear, duration]);\n\n return (\n <Wrapper\n color={color}\n clear={clearOnClick}\n data-testid=\"toast-item\"\n borderless\n {...rest}\n >\n {message}\n {clearOnClick && <ClearButton onClick={onClear}><Close /></ClearButton>}\n </Wrapper>\n );\n}\n\ninterface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n /** 表示するToastのリスト */\n toasts: ToastProps[];\n /** toastを消すタイミングのコールバック */\n clear: (id: string) => void;\n /**\n * toastの表示される場所の指定\n * top, top-right, top-left, bottom, bottom-right, bottom-left\n * @default 'top-right'\n */\n position?: PositionType;\n /**\n * margin\n * @default '1rem'\n */\n margin?: string;\n /** スクロールしても固定として表示する */\n fixed?: boolean;\n}\n\nexport default function Toast(\n { toasts, clear, fixed, style, margin = '1rem', position, ...rest }: ContainerProps,\n) {\n return (\n <Portal>\n <Container\n {...rest}\n pos={position}\n margin={margin}\n style={{ position: (fixed ? 'fixed' : 'absolute'), ...style }}\n >\n <TransitionGroup component={null}>\n {toasts.map((props) => (\n <Transition key={props.id} timeout={250} in unmountOnExit>\n {(state) => (\n <ToastItem\n {...props}\n className={state}\n key={props.id}\n clear={clear}\n />\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </Container>\n </Portal>\n );\n}\n\nconst Container = styled.div<{ pos: ContainerProps['position'], margin: ContainerProps['margin'] }>`\n display: flex;\n flex-direction: column;\n\n ${({ pos, margin }) => {\n switch (pos) {\n case 'bottom': {\n return { bottom: margin, left: '50%', alignItems: 'center', transform: 'translateX(-50%)' };\n }\n case 'bottom-left': {\n return { bottom: margin, left: margin, alignItems: 'flex-start' };\n }\n case 'bottom-right': {\n return { bottom: margin, right: margin, alignItems: 'flex-end' };\n }\n case 'top': {\n return { top: margin, left: '50%', alignItems: 'center', transform: 'translateX(-50%)' };\n }\n case 'top-right': {\n return { top: margin, right: margin, alignItems: 'flex-end' };\n }\n default: {\n return { top: margin, left: margin, alignItems: 'flex-start' };\n }\n }\n }}\n`;\n","import { HTMLAttributes } from 'react';\nimport styled, { css, keyframes } from 'styled-components';\nimport { ColorType, ThemeType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLDivElement>{\n /** 色の指定 */\n color?: ColorType;\n /** サイズ */\n size?: string;\n /** spinnerの太さ */\n borderSize?: string;\n}\n\nfunction getColor({ theme, color }: { theme: ThemeType, color?: ColorType }) {\n const value = (!color || color === 'light') ? theme.background : theme[color];\n\n return css`\n border-color: ${value};\n border-right-color: ${theme.border};\n border-top-color: ${theme.border};\n `;\n}\n\nconst spin = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n`;\n\nconst Spinner = styled.div<Props>`\n display: inline-block;\n width: ${({ size }) => (size || '100%')};\n height: ${({ size }) => (size || '100%')};\n margin: 0;\n padding: 0;\n position: relative;\n\n &:after {\n display: block;\n top: 0;\n left: 0;\n animation: ${spin} 750ms infinite linear;\n border: ${({ borderSize }) => borderSize} solid;\n border-radius: 100%;\n ${getColor}\n content: \"\";\n height: 100%;\n width: 100%;\n position: absolute;\n }\n`;\nSpinner.defaultProps = {\n borderSize: '2px',\n};\n\nexport default Spinner;\n","import styled, { css } from 'styled-components';\nimport { mediaUntilFullHD, mediaDesktop, mediaMobile, mediaTablet } from '../../utils/media';\n\ninterface Props {\n /** */\n fluid?: boolean;\n}\n\nfunction setGap(width: string, gap: number) {\n return parseInt(width.replace('px', ''), 10) - (2 * gap);\n}\n\nfunction setResponsive({ fluid }: Props): any {\n if (fluid) {\n return css`\n padding-right: 0.75rem;\n padding-left: 0.75rem;\n ${mediaTablet} {\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n }\n `;\n }\n\n return css`\n margin-right: auto;\n margin-left: auto;\n\n ${mediaUntilFullHD} {\n max-width: ${({ theme }) => setGap(theme.media.fullhd, theme.gutter)}px;\n }\n ${mediaDesktop} {\n max-width: ${({ theme }) => setGap(theme.media.desktop, theme.gutter)}px;\n }\n ${mediaTablet} {\n max-width: ${({ theme }) => setGap(theme.media.tablet, theme.smallGutter)}px;\n }\n ${mediaMobile} {\n max-width: ${({ theme }) => setGap(theme.media.mobile, theme.smallGutter)}px;\n }\n `;\n}\nexport default styled.div<Props>`\n position: relative;\n width: 100%;\n\n ${setResponsive}\n`;\n","import { HTMLAttributes } from 'react';\nimport styled from 'styled-components';\nimport { mediaTablet } from '../../utils/media';\n\nexport default styled.div<HTMLAttributes<HTMLDivElement>>`\n display: flex;\n flex: 0 1 auto;\n flex-direction: row;\n flex-wrap: wrap;\n margin: -${({ theme }) => theme.gutter / 2}px;\n padding: ${({ theme }) => theme.gutter / 2}px;\n\n ${mediaTablet} {\n margin: -${({ theme }) => theme.smallGutter / 2}px;\n padding: ${({ theme }) => theme.smallGutter / 2}px;\n }\n`;\n","import styled, { css } from 'styled-components';\nimport { mediaTablet, mediaDesktop, mediaMobile } from '../../utils/media';\nimport { ColSizeType } from '../../types';\n\ninterface ColProps {\n /** 1-12のサイズ */\n size?: ColSizeType;\n /** 1-12の左のoffset */\n offset?: ColSizeType;\n /** 1-12基準のサイズを画面サイズのよって可変にする */\n auto?: boolean;\n}\n\nconst sizes = [\n 'auto',\n '8.3333333%',\n '16.666667%',\n '25%',\n '33.333333%',\n '41.666667%',\n '50%',\n '58.333333%',\n '66.666667%',\n '75%',\n '83.333333%',\n '91.666667%',\n '100%',\n];\n\nfunction setAutoSize({ size, auto }: ColProps) {\n if (!auto || !size) return undefined;\n const mobileSize = size >= 4 ? sizes[12] : sizes[Math.round(size * 3)];\n const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];\n return css`\n ${mediaDesktop} {\n flex-basis: ${desktopSize};\n max-width: ${desktopSize};\n }\n ${mediaMobile} {\n flex-basis: ${mobileSize};\n max-width: ${mobileSize};\n }\n `;\n}\n\nconst Col = styled.div<ColProps>`\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n flex-wrap: wrap;\n padding: ${({ theme }) => theme.gutter / 2}px;\n\n ${({ size }) => (\n size\n ? { flexBasis: sizes[size], maxWidth: sizes[size] }\n : { flexGrow: 1, flexBasis: 0, maxWidth: '100%' }\n )}\n\n ${({ offset }) => (offset ? { marginLeft: sizes[offset] } : undefined)}\n\n ${mediaTablet} {\n padding: ${({ theme }) => theme.smallGutter / 2}px;\n }\n ${setAutoSize}\n`;\nCol.defaultProps = {\n size: 0,\n offset: 0,\n};\n\nexport default Col;\n","import styled from 'styled-components';\n\nexport default styled.div`\n color: ${({ theme }) => theme.text};\n line-height: 1.5;\n\n li + li {\n margin-top: 0.25em;\n }\n\n p,\n dl,\n ol,\n ul,\n blockquote,\n pre,\n table {\n &:not(:last-child) {\n margin-bottom: 1em;\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: 1.125;\n }\n\n h1 {\n font-size: 2rem;\n margin-bottom: 0.5em;\n }\n\n h2 {\n font-size: 1.75em;\n margin-bottom: 0.5714em;\n\n &:not(:first-child) {\n margin-top: 1.1428em;\n }\n }\n\n h3 {\n font-size: 1.5em;\n margin-bottom: 0.6666em;\n\n &:not(:first-child) {\n margin-top: 1.3333em;\n }\n }\n\n h4 {\n font-size: 1.25em;\n margin-bottom: 0.8em;\n }\n\n h5 {\n font-size: 1.125em;\n margin-bottom: 0.8888em;\n }\n\n h6 {\n font-size: 1em;\n margin-bottom: 1em;\n }\n\n ol {\n list-style: decimal outside;\n margin-left: 2em;\n margin-top: 1em;\n }\n\n ul {\n list-style: disc outside;\n margin-left: 2em;\n margin-top: 1em;\n ul {\n list-style-type: circle;\n margin-top: 0.5em;\n ul {\n list-style-type: square;\n }\n }\n }\n\n dd {\n margin-left: 2em;\n }\n\n table {\n width: 100%;\n\n td, th {\n border: 1px solid ${({ theme }) => theme.border};\n border-width: 0 0 1px;\n padding: 0.5em 0.75em;\n vertical-align: top;\n }\n\n th {\n color: ${({ theme }) => theme.text};\n text-align: left;\n }\n\n thead {\n td, th {\n border-width: 0 0 2px;\n color: ${({ theme }) => theme.text};\n }\n }\n\n tfoot {\n td, th {\n border-width: 2px 0 0;\n color: ${({ theme }) => theme.text};\n }\n }\n\n tbody > tr:last-child{\n td, th {\n border-bottom-width: 0;\n }\n }\n }\n`;\n","import styled, { keyframes } from 'styled-components';\n\nconst setAnimation = ({ theme }: any) => keyframes`\n 0% { background-color: ${theme.greyLighter}; }\n 50% { background-color: ${theme.grey}; }\n 100% { background-color: ${theme.greyLighter}; }\n`;\n\nexport default styled.span`\n display: inline-block;\n height: 1rem;\n width: 100%;\n animation: ${setAnimation} 3.5s ease infinite;\n border-radius: ${({ theme }) => theme.radius};\n opacity: 0.125;\n`;\n","import styled, { css } from 'styled-components';\nimport { HTMLAttributes } from 'react';\nimport { darken } from 'polished';\nimport findColorInvert from '../../utils/findColorInvert';\nimport boxShadow from '../../utils/boxShadow';\nimport setSize from '../../utils/setSize';\nimport disabledColor from '../../utils/disabledColor';\nimport { ColorType, ThemeType, SizeType } from '../../types';\n\ninterface Props {\n theme: ThemeType;\n color?: ColorType;\n outline?: boolean;\n disabled?: boolean;\n}\n\nfunction setColor({ theme, color, outline, disabled }: Props) {\n if (disabled) {\n return disabledColor(theme);\n }\n if (!color) {\n return css`\n border-color: ${theme.border};\n color: ${theme.text};\n\n &:hover {\n border-color: ${theme.borderHover};\n }\n\n &:active {\n border-color: ${theme.borderActive};\n }\n `;\n }\n const target = theme[color] || color;\n const invertColor = findColorInvert(theme, target);\n if (outline) {\n return css`\n background-color: transparent;\n border-color: ${target};\n color: ${target};\n\n &:hover {\n background-color: ${target};\n color: ${invertColor};\n }\n\n &:active {\n background-color: ${darken(0.1, target)};\n }\n\n &:focus:not(:active) {\n ${boxShadow('0.1rem', target, 0.5)}\n }\n `;\n }\n\n return css`\n background-color: ${target};\n border-color: transparent;\n color: ${invertColor};\n box-shadow: none;\n\n &:hover {\n color: ${invertColor};\n background-color: ${darken(0.05, target)};\n }\n\n &:active {\n background-color: ${darken(0.1, target)};\n }\n\n &:focus:not(:active) {\n ${boxShadow('0.1rem', target, 0.5)}\n }\n `;\n}\n\ninterface ButtonProps extends HTMLAttributes<HTMLButtonElement> {\n /** ボタンの色 */\n color?: ColorType;\n /** ボタンのサイズ */\n size?: SizeType;\n /** 背景が透明なボタンでする */\n outline?: boolean;\n /** 丸いボタンで表示する */\n round?: boolean;\n /** アイコンボタンとしてpaddingを同じにする */\n icon?: boolean;\n}\n\nexport default styled.button<ButtonProps>`\n position: relative;\n outline: none;\n appearance: none;\n box-sizing: border-box;\n display: inline-block;\n text-align: center;\n white-space: nowrap;\n cursor: pointer;\n justify-content: center;\n vertical-align: middle;\n user-select: none;\n background: transparent;\n border: 1px solid transparent;\n border-radius: ${({ round, theme }) => (round ? '2456189px' : theme.radius)};\n padding: ${({ icon }) => (icon ? '0.375em' : '0.375em 0.75em')};\n line-height: ${({ icon }) => (icon ? 1 : 1.5)};\n\n ${setColor}\n ${({ size }) => setSize('font-size', size)}\n`;\n","import { HTMLAttributes } from 'react';\nimport styled, { css } from 'styled-components';\nimport { transparentize } from 'polished';\nimport setSize from '../../utils/setSize';\nimport { ColorType, SizeType } from '../../types';\n\ninterface Props extends HTMLAttributes<HTMLButtonElement> {\n /** ボタンの色 */\n color?: ColorType;\n /** ボタンのサイズ */\n size?: SizeType;\n /** ボタン的な幅を全部無くしてテキストのように表示する */\n pure?: boolean;\n /** マウスオーバーするとテキストにunderlineが付く */\n underline?: boolean;\n /** 丸いボタンで表示する */\n round?: boolean;\n /** アイコンボタンとしてpaddingを同じにする */\n icon?: boolean;\n}\n\nexport default styled.button<Props>`\n background-color: transparent;\n border: none;\n cursor: pointer;\n display: inline;\n margin: 0;\n border-radius: ${({ round, theme }) => (round ? '2456189px' : theme.radius)};\n padding: ${({ pure, icon }) => {\n if (pure) return '0';\n if (icon) return '0.375em';\n return '0.375em 0.75em';\n }};\n line-height: ${({ icon }) => (icon ? 1 : 1.5)};\n color: ${({ color, theme }) => (color ? theme[color] : theme.text)};\n ${({ size }) => setSize('font-size', size)}\n\n &:hover, &:focus {\n ${({ underline }) => (underline ? { textDecoration: 'underline' } : undefined)}\n ${({ pure, theme, color }) => (\n pure\n ? undefined\n : { background: transparentize(0.9, color ? (theme[color] || theme.text) : theme.text) }\n )}\n }\n\n &:focus, &:active {\n outline: none;\n }\n\n &:active {\n ${({ pure, theme, color }) => (\n pure\n ? undefined\n : { background: transparentize(0.8, color ? (theme[color] || theme.text) : theme.text) }\n )}\n }\n\n ${({ disabled, theme }) => (disabled ? css`\n color: ${transparentize(0.75, theme.textDark)};\n cursor: default;\n &:hover {\n background: transparent;\n text-decoration: none;\n }\n ` : undefined)}\n`;\n","import styled from 'styled-components';\nimport Button from '.';\n\nexport default styled.div`\n display: inline-block;\n\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n\n ${Button} {\n margin: 0;\n border-radius: 0;\n\n &:hover {\n z-index: 1;\n }\n\n &:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n }\n\n &:not(:first-child) {\n margin-left: -1px;\n }\n\n &:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n }\n }\n`;\n","import styled, { css } from 'styled-components';\nimport { SizeType } from '../../types';\n\nconst stripedStyle = css`\n tbody > tr:nth-child(odd) {\n background-color: rgba(0, 0, 0, 0.02);\n }\n`;\n\nconst hoverStyle = css`\n tbody > tr:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n`;\n\ninterface Props {\n size?: SizeType;\n full?: boolean;\n headerStyle?: any;\n bordered?: boolean;\n striped?: boolean;\n hover?: boolean;\n}\n\nexport default styled.table<Props>`\n ${({ full }) => (full ? css`width: 100%;` : undefined)}\n max-width: 100%;\n margin-bottom: 1rem;\n background-color: transparent;\n\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n\n td, th {\n vertical-align: top;\n padding: 0.75rem;\n ${({ theme, bordered }) => (bordered ? css`\n border: 1px solid ${theme.border};\n ` : undefined)}\n border-width: 0 0 1px;\n }\n\n th { white-space: nowrap; }\n\n ${({ striped }) => (striped ? stripedStyle : undefined)}\n ${({ hover }) => (hover ? hoverStyle : undefined)}\n\n ${({ headerStyle }) => (headerStyle ? css`\n th {\n ${headerStyle}\n }\n ` : undefined)}\n`;\n","import React, { HTMLAttributes, useMemo } from 'react';\nimport styled from 'styled-components';\nimport setSize from '../../utils/setSize';\nimport { ColorType, SizeType } from '../../types';\n\ninterface ProgressProps extends HTMLAttributes<HTMLDivElement>{\n /** 現状の進捗 */\n value: number;\n /** 進捗の最大値 */\n max: number;\n /** バーのサイズ */\n size?: SizeType;\n /** sizeを使わないときの縦幅を指定する */\n height?: string;\n /**\n * バーの色\n * @default 'primary'\n */\n color?: ColorType;\n}\n\nexport default function Progress(\n { value, max, color = 'primary', ...rest }: ProgressProps,\n) {\n const percent = useMemo(() => (value ? Math.round((value / max) * 100) : 0), [value, max]);\n return (\n <Wrapper color={color} {...rest}>\n <div\n role=\"progressbar\"\n aria-label=\"progress\"\n className={value !== max ? 'in-progress' : undefined}\n style={{ width: `${percent > 100 ? 100 : percent}%` }}\n />\n </Wrapper>\n );\n}\n\nconst Wrapper = styled.div<Pick<ProgressProps, 'size'|'height'>>`\n position: relative;\n display: block;\n width: 100%;\n border-radius: ${({ theme }) => theme.radius};\n background-color: ${({ theme }) => theme.background};\n\n ${({ size, height }) => height || setSize('height', size)}\n\n & > div[role=\"progressbar\"] {\n position: relative;\n height: 100%;\n border-radius: ${({ theme }) => theme.radius};\n background-color: ${({ color, theme }) => (theme[color!] || color)};\n\n &.in-progress {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n }\n\n will-change: width;\n\n transition-property: width;\n transition-duration: 350ms;\n transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n z-index: 1;\n }\n`;\n","import styled from 'styled-components';\n\nexport default styled.hr`\n border: none;\n height: 1px;\n margin: 0;\n flex-shrink: 0;\n background-color: ${({ theme }) => theme.border};\n`;\n","import React, { HTMLAttributes } from 'react';\nimport styled, { css } from 'styled-components';\nimport TextButton from '../Button/TextButton';\nimport Close from '../Icons/Close';\nimport findColorInvert from '../../utils/findColorInvert';\nimport { ColorType, ThemeType } from '../../types';\n\nfunction getColor(theme: ThemeType, color?: ColorType) {\n return (!color || color === 'light') ? theme.background : theme[color];\n}\n\nconst closeCss = css`\n padding-right: 1.625rem;\n\n ${TextButton} {\n display: flex;\n position: absolute;\n align-items: center;\n color: inherit;\n top: 0;\n right: 0;\n bottom: 0;\n padding: 0 0.35rem;\n\n svg {\n width: 0.625rem;\n height: 0.625rem;\n }\n\n &:hover {\n background-color: rgba(0,0,0,0.15);\n }\n }\n`;\n\nconst Wrapper = styled.div<Pick<Props, 'color'|'round'> & { close: boolean; }>`\n display: inline-flex;\n position: relative;\n font-size: 0.75rem;\n cursor: default;\n padding: 0.325rem 0.5rem;\n align-items: center;\n justify-content: center;\n height: 1.5rem;\n border-radius: ${({ theme, round }) => (round ? '50rem' : theme.radius)};\n white-space: nowrap;\n\n ${({ color, theme }) => {\n const target = getColor(theme, color);\n const invertColor = findColorInvert(theme, target);\n\n return css`\n color: ${invertColor};\n background-color: ${target};\n\n a, span {\n color: ${invertColor};\n }\n `;\n }}\n\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n\n ${TextButton} {\n border-radius: 0;\n border-top-right-radius: ${({ theme, round }) => (round ? '50rem' : theme.radius)};\n border-bottom-right-radius: ${({ theme, round }) => (round ? '50rem' : theme.radius)};\n }\n\n ${({ close }) => (close ? closeCss : undefined)}\n`;\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n /** タグの内容 */\n children: any;\n /** Xボタンの追加+クリック時のイベントハンドラー */\n onClose?: () => void;\n /** クリック時のイベントハンドラー */\n onClick?: () => void;\n /** 色の指定 */\n color?: ColorType;\n /** 丸くする */\n round?: boolean;\n}\n\nexport default function Tag({ children, onClose, ...rest }: Props) {\n return (\n <Wrapper close={!!onClose} {...rest}>\n {children}\n {onClose && (<TextButton onClick={onClose} pure><Close /></TextButton>)}\n </Wrapper>\n );\n}\n","import { css } from 'styled-components';\n\n/*! based on normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */\nconst normalized: any = css`\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n html {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n }\n\n body {\n margin: 0;\n font-family: ${({ theme }: any) => (theme ? theme.fontFamily : 'sans-serif')};\n font-size: ${({ theme }: any) => (theme ? theme.fontSize : '16px')};\n text-align: left;\n }\n\n h1 {\n font-size: 2em;\n margin: .67em 0;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre {\n font-family: monospace,monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: ${({ theme }: any) => theme.link};\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n text-decoration: underline dotted;\n }\n\n b,strong {\n font-weight: bolder;\n }\n\n code,kbd,samp {\n font-family: monospace,monospace;\n font-size: 1em;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -.25em;\n }\n\n sup {\n top: -.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,input,optgroup,select,textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,input {\n overflow: visible;\n }\n\n button,select {\n text-transform: none;\n }\n\n [type=button],[type=reset],[type=submit],button {\n -webkit-appearance: button;\n }\n\n [type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n [type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring {\n outline: 1px dotted ButtonText;\n }\n\n input[type=date],\n input[type=time],\n input[type=datetime-local],\n input[type=month] {\n -webkit-appearance: listbox;\n }\n\n fieldset {\n padding: .35em .75em .625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n resize: vertical;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type=checkbox],[type=radio] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button {\n height: auto;\n }\n\n [type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n blockquote, body, dd, dl, dt, fieldset, figure, h1, h2, h3, h4, h5, h6, hr, html, iframe, legend, li, ol, p, pre, textarea, ul {\n margin: 0;\n padding: 0;\n }\n\n button {\n font-size: inherit;\n }\n\n article, aside, figure,\n footer, header, hgroup, section {\n display: block;\n }\n\n input[type=\"checkbox\"], input[type=\"radio\"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n a {\n cursor: pointer;\n text-decoration: none;\n color: #3273dc;\n\n &:hover {\n color: currentColor;\n }\n }\n\n img {\n vertical-align: middle;\n border-style: none;\n }\n\n svg {\n overflow: hidden;\n vertical-align: middle;\n }\n\n small {\n font-size: .875em;\n }\n\n span {\n font-style: inherit;\n font-weight: inherit;\n }\n\n strong {\n color: #363636;\n font-weight: 700;\n }\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n th {\n text-align: inherit;\n }\n\n ul {\n list-style-type: none;\n }\n`;\n\nexport default normalized;\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function Approved(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z\" />\n <path d=\"M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z\" fill=\"currentColor\" />\n </g>\n <path d=\"M11.515 18.466l-3.878-3.985L6 16.005l5.59 5.59 11.562-11.533-1.7-1.595z\" fill=\"currentColor\" />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function ChevronLeftRound(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z\" />\n <path\n d=\"M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z\"\n fill=\"currentColor\"\n />\n </g>\n <path\n d=\"M18.066 8.5l-7.567 6.731 7.567 6.2\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function ChevronRightRound(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1z\" />\n <path\n d=\"M15 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28m0 2C6.716 30 0 23.284 0 15 0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15z\"\n fill=\"currentColor\"\n />\n </g>\n <path\n d=\"M11.934 21.5l7.567-6.731-7.567-6.2\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function FileRound(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\">\n <path d=\"M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z\" />\n <path\n d=\"M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z\"\n fill=\"currentColor\"\n />\n </g>\n <g transform=\"translate(9 7)\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <rect width=\"12\" height=\"16\" rx=\"1\" stroke=\"none\" />\n <path d=\"M1 1h10v14H1z\" />\n </g>\n <path\n fill=\"currentColor\"\n d=\"M13 11h4v1.3h-4zM13 14h4v1.3h-4zM13 17h4v1.3h-4z\"\n />\n </svg>\n );\n}\n","import React, { SVGAttributes } from 'react';\n\nexport default function Pencil(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"17.796\" height=\"17.908\" viewBox=\"0 0 17.796 17.908\" {...props}>\n <path\n d=\"M1.254 12.674L.5 17.408l4.726-.8L17.3 4.472 13.281.5zM1.375 12.766l3.851 3.838M10.949 2.959l3.836 3.801\"\n fill=\"none\"\n stroke=\"currentColor\"\n />\n </svg>\n );\n}\n","import React, { SVGAttributes } from 'react';\n\nexport default function PencilSimple(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M9.97.22a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-9.75 9.75a.75.75 0 01-.53.22H.75a.75.75 0 01-.75-.75V10.5a.75.75 0 01.22-.53L9.97.22zM1.5 10.81v2.69h2.69l9-9-2.69-2.69-9 9z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n","import React, { SVGAttributes } from 'react';\n\nexport default function Plus(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg width=\"21\" height=\"21\" viewBox=\"0 0 21 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M9 0v9H0v3h9v9h3v-9h9V9h-9V0H9z\" fill=\"currentColor\" />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function Refresh(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <path\n d=\"M15.065 0A15.069 15.069 0 00.142 13.105a1.256 1.256 0 102.478.406c0-.027.008-.055.01-.082a12.52 12.52 0 0121.3-7.226l-2.584 2.584 7.532 1.255-1.255-7.532-1.92 1.92A15 15 0 0015.065 0zm13.7 15.589A1.255 1.255 0 0027.5 16.7a12.512 12.512 0 01-21.893 6.569l1.927-1.927L0 20.086l1.255 7.532 2.572-2.572a15.02 15.02 0 0026.16-8.023 1.256 1.256 0 00-1.064-1.423 1.273 1.273 0 00-.16-.011z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n","/* tslint:disable max-line-length */\nimport React, { SVGAttributes } from 'react';\n\nexport default function User(props: SVGAttributes<SVGSVGElement>) {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" {...props}>\n <g fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <circle cx=\"15\" cy=\"15\" r=\"15\" stroke=\"none\" />\n <circle cx=\"15\" cy=\"15\" r=\"14\" />\n </g>\n <path\n d=\"M8 23a6.018 6.018 0 016-6h2a6.018 6.018 0 016 6zm2.6-2h8.9a4.033 4.033 0 00-3.5-2h-1.9a4.035 4.035 0 00-3.5 2zm.4-9v-1a4.012 4.012 0 014-4 4.012 4.012 0 014 4v1a4.012 4.012 0 01-4 4 4.012 4.012 0 01-4-4zm2-1v1a2.006 2.006 0 002 2 2.006 2.006 0 002-2v-1a2.006 2.006 0 00-2-2 2.006 2.006 0 00-2 2z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n","import { css } from 'styled-components';\n\nexport default function Arrow(color: string) {\n return css`\n position: absolute;\n border: 3px solid ${color};\n border-radius: 2px;\n border-right: 0;\n border-top: 0;\n content: \" \";\n display: block;\n height: 0.625em;\n margin-top: -0.625em;\n pointer-events: none;\n top: 50%;\n transform: rotate(-45deg);\n transform-origin: center;\n width: 0.625em;\n `;\n}\n","import { ThemeType } from './types';\n\nconst theme: ThemeType = {\n fontFamily: '-apple-system BlinkMacSystemFont, Meiryo, system-ui, sans-serif',\n fontSize: '16px',\n gutter: 24,\n smallGutter: 16,\n media: {\n mobile: '576px',\n tablet: '769px',\n desktop: '960px',\n fullhd: '1344px',\n },\n radius: '4px',\n timeout: 250,\n formPadding: '0.75rem 0.625rem',\n\n primary: '#37B151',\n link: '#578ba9',\n info: '#209cee',\n success: '#0fa886',\n warning: '#f2b541',\n danger: '#f3575a',\n dark: '#363636',\n light: '#9b9b9b',\n\n black: '#0a0a0a',\n blackBis: '#121212',\n blackTer: '#242424',\n\n white: '#ffffff',\n whiteBis: '#fafafa',\n whiteTer: '#f5f5f5',\n\n grey: '#7a7a7a',\n greyLight: '#9b9b9b',\n greyLighter: '#dbdbdb',\n\n text: '#4a4a4a',\n textDark: '#4a4a4a',\n textLight: '#7a7a7a',\n textStrong: '#4a4a4a',\n\n background: '#f5f5f5',\n\n border: '#dbdbdb',\n borderHover: '#9b9b9b',\n borderActive: '#4a4a4a',\n\n placeholder: '#7a7a7a',\n backdrop: 'rgba(10,10,10,0.25)',\n responsive: true,\n};\n\nexport default theme;\n"],"names":["Wrapper","styled","div","_taggedTemplateLiteralLoose","Label","h5","theme","textStrong","primary","findColorInvert","color","black","white","getLuminance","hamburger","size","css","boxShadow","amount","shadowColor","transparentize","setSize","name","mediaMobile","responsive","media","mobile","mediaTablet","tablet","mediaDesktop","desktop","mediaUntilFullHD","fullhd","disabledColor","textColor","textDark","backColor","border","Message","small","error","danger","textLight","HelpMessage","help","noErrorMessage","TextInput","className","outline","style","leftIcon","rightIcon","type","maxLength","innerRef","rest","disabled","Icon","right","ref","forwardRef","props","span","formPadding","borderRadius","radius","borderWidth","borderBottomWidth","placeholder","borderHover","undefined","Textarea","window","document","createElement","useLayoutEffect","useEffect","Approved","xmlns","width","height","viewBox","d","fill","Indeterminate","y","x","stroke","rx","Checkbox","children","indeterminate","useRef","id","value","innerClass","useMemo","arr","checked","push","join","useImperativeHandle","current","useIsomorphicLayoutEffect","htmlFor","Shape","displayName","ChevronDown","Select","options","render","inputSize","optional","list","map","item","key","InputWrapper","IconArrowDown","Radio","Switch","showLabel","background","anchorColor","onLabel","offLabel","labelTextOn","labelTextOff","labelStyle","grey","AnimatedContent","setAlign","align","setColor","backdrop","backgroundColor","NavBar","header","sticky","fixed","fluid","Burger","button","hambuger","NavContent","Portal","React","container","useState","mountNode","setMountNode","dom","getElementById","body","appendChild","createPortal","wrapEvent","child","handlerName","ourHandler","event","defaultPrevented","TooltipWrapper","borderless","target","CardBody","CardHeader","CardFooter","footer","CardImage","a","CardImageHorizontal","url","backgroundImage","stopPropagation","e","Popover","position","label","onOpen","onClose","offset","open","setOpen","useFloating","placement","middleware","shift","flip","offsetUi","mainAxis","crossAxis","whileElementsMounted","autoUpdate","reference","floating","strategy","handleFocus","handleBlur","close","cloneElement","Children","only","tabIndex","role","onClick","Tooltip","top","left","Shadow","Box","fixedNum","AnimatedBox","Close","strokeWidth","strokeLinecap","clear","paddingRight","ClearButton","ToastItem","message","duration","clearOnClick","onClear","useCallback","timeout","setTimeout","clearTimeout","Container","margin","pos","bottom","alignItems","transform","getColor","spin","keyframes","Spinner","borderSize","setGap","gap","parseInt","replace","setResponsive","gutter","smallGutter","defaultProps","sizes","setAutoSize","auto","mobileSize","Math","round","desktopSize","Col","flexBasis","maxWidth","flexGrow","marginLeft","text","setAnimation","greyLighter","borderActive","invertColor","darken","icon","pure","underline","textDecoration","Button","stripedStyle","hoverStyle","table","full","bordered","striped","hover","headerStyle","hr","closeCss","TextButton","normalized","fontFamily","fontSize","link","show","prevHeight","timeoutRef","init","overflow","opacity","requestAnimationFrame","offsetHeight","frameIds","timeoutId","forEach","cancelAnimationFrame","transitionDuration","brand","setShow","image","title","horizontal","src","alt","styles","flexDirection","required","cx","cy","r","closeModal","external","closeOnOverlay","closeOnEsc","onExited","overflowY","useScrollFix","Transition","unmountOnExit","mountOnEnter","state","max","percent","toasts","TransitionGroup","component","handleOpen","handleClose","onMouseEnter","onMouseLeave","onFocus","onBlur","info","success","warning","dark","light","blackBis","blackTer","whiteBis","whiteTer","greyLight"],"mappings":"m1DAGMA,EAAUC,EAAOC,UAAVC,oDAKPC,EAAQH,EAAOI,SAAVF,0MAMA,qBAAGG,MAAkBC,cAGnB,qBAAGD,MAAkBE,oBCdVC,IAA6CC,OAA3BC,IAAAA,MAAOC,IAAAA,aAC1CF,GAASG,eAAaH,GAAS,IAC3BC,EAEFC,WCLeE,EAAUC,UACzBC,i/BAGKD,EACDA,YCJWE,EAAUF,EAAcL,EAAeQ,OACvDC,EAAcD,EAASE,iBAAeF,EAAQR,GAASA,SACtDM,+CAAwBD,EAAQI,YCDjBE,EAAQC,EAAyBP,UAC/CA,OACD,eACOO,mBACP,gBACOA,mBACP,eACOA,6BAEAA,sBCPAC,SAAcjB,IAAAA,aACvBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMC,WADtB,iCAIhBC,SAAcrB,IAAAA,aACvBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMG,WADtB,iCAIhBC,SAAevB,IAAAA,aACxBA,EAAMkB,4CAC6BlB,EAAMmB,MAAMK,YADtB,iCAShBC,SAAmBzB,IAAAA,aAC5BA,EAAMkB,4CAC6BlB,EAAMmB,MAAMO,WADtB,iCCvBRC,EAAc3B,OAC9B4B,EAAYd,iBAAe,IAAMd,EAAM6B,UACvCC,EAAYhB,iBAAe,IAAMd,EAAM+B,eACtCrB,wHAGIkB,EACWE,GCJxB,cAAME,EAAUrC,EAAOsC,YAAVpC,iDAEF,gBAAUG,IAAAA,eAAPkC,MAA4BlC,EAAMmC,OAASnC,EAA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