From 4006f2fb5198c79adb2eae671bbdea782c02dd2d Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Mon, 9 Sep 2024 10:53:36 +0800 Subject: [PATCH] comment out failing ve properties --- .../src/components/atoms/Avatar/Avatar.tsx | 61 ++-- .../atoms/BackdropSurface/BackdropSurface.tsx | 6 +- .../src/components/atoms/Banner/Banner.tsx | 60 +-- components/src/components/atoms/Box/Box.tsx | 12 +- .../src/components/atoms/Button/Button.tsx | 172 +++++---- .../atoms/DynamicPopover/DynamicPopover.tsx | 12 +- .../src/components/atoms/Field/Field.tsx | 20 +- .../src/components/atoms/Heading/Heading.tsx | 6 +- .../atoms/RecordItem/RecordItem.tsx | 20 +- .../src/components/atoms/Spinner/Spinner.tsx | 18 +- components/src/components/atoms/Tag/Tag.tsx | 30 +- .../molecules/Checkbox/Checkbox.tsx | 30 +- .../molecules/CheckboxRow/CheckboxRow.tsx | 37 +- .../CountdownCircle/CountdownCircle.tsx | 48 ++- .../CurrencyToggle/CurrencyToggle.tsx | 34 +- .../molecules/Dropdown/Dropdown.tsx | 82 ++--- .../molecules/FieldSet/FieldSet.tsx | 2 +- .../components/molecules/Helper/Helper.tsx | 14 +- .../src/components/molecules/Input/Input.tsx | 132 +++---- .../src/components/molecules/Modal/Modal.tsx | 58 +-- .../molecules/PageButtons/PageButtons.tsx | 22 +- .../components/molecules/Profile/Profile.tsx | 101 ++++-- .../molecules/RadioButton/RadioButton.tsx | 30 +- .../RadioButtonGroup/RadioButtonGroup.tsx | 2 +- .../components/molecules/Select/Select.tsx | 105 +++--- .../utils/getValueForTransitionState.ts | 12 +- .../components/molecules/Slider/Slider.tsx | 6 +- .../molecules/Textarea/Textarea.tsx | 54 +-- .../Textarea/utils/getValueForSize.ts | 4 +- .../molecules/ThemeToggle/ThemeToggle.tsx | 26 +- .../components/molecules/Toggle/Toggle.tsx | 18 +- .../components/molecules/Tooltip/Tooltip.tsx | 140 +++---- .../components/organisms/Dialog/Dialog.tsx | 22 +- .../organisms/Dialog/DialogContent.tsx | 40 +- .../Dialog/utils/getValueForStepType.ts | 5 +- .../src/components/organisms/Toast/Toast.tsx | 48 +-- components/src/css/sprinkles.css.ts | 4 +- ....timestamp-1725815945518-422a86fef5bcc.mjs | 145 ++++++++ ....timestamp-1725815947765-fd9a4f4b2778b.mjs | 145 ++++++++ ....timestamp-1725815950293-41439afa59d5d.mjs | 145 ++++++++ ....timestamp-1725815953487-0343402bb3962.mjs | 145 ++++++++ ....timestamp-1725815955485-2158d09ba86e4.mjs | 145 ++++++++ ....timestamp-1725815957453-6837690cd0c97.mjs | 145 ++++++++ ....timestamp-1725815959897-209d1ff271053.mjs | 145 ++++++++ ....timestamp-1725815961928-15cc7176dc9d7.mjs | 145 ++++++++ ....timestamp-1725815963891-bc47058775012.mjs | 145 ++++++++ ....timestamp-1725815965900-7b4198febb1a8.mjs | 145 ++++++++ ....timestamp-1725815968105-3d7101b68d3e7.mjs | 145 ++++++++ ...s.timestamp-1725815970189-14417fc5646f.mjs | 145 ++++++++ ....timestamp-1725815972598-ae33a863f20bd.mjs | 145 ++++++++ ....timestamp-1725816181594-ce0f57870f858.mjs | 145 ++++++++ ....timestamp-1725816183711-ab395ea2a697e.mjs | 145 ++++++++ ...s.timestamp-1725816185866-f5d1a7c293ac.mjs | 145 ++++++++ ....timestamp-1725816188047-b0fee4c1cb274.mjs | 145 ++++++++ ....timestamp-1725816190370-d471cfabd3cd3.mjs | 145 ++++++++ ....timestamp-1725816193028-fbe30e11b4401.mjs | 145 ++++++++ ....timestamp-1725816195709-ca03cd171ba89.mjs | 145 ++++++++ ....timestamp-1725816198425-5a8644a384bf8.mjs | 145 ++++++++ ....timestamp-1725816200759-e00d44ed6bcb8.mjs | 145 ++++++++ ....timestamp-1725816203026-3d5ae936181ee.mjs | 145 ++++++++ ....timestamp-1725816205286-a1576679029a5.mjs | 145 ++++++++ ....timestamp-1725816207460-6f74624c2ad91.mjs | 145 ++++++++ ....timestamp-1725816209610-481d2442c221f.mjs | 145 ++++++++ docs/public/playroom/preview/index.html | 15 - .../components/PaletteRow.tsx | 8 +- docs/src/components/CodeBlock/CodeBlock.tsx | 2 +- docs/src/components/CodePreview.tsx | 10 +- docs/src/components/CopyButton.tsx | 6 +- docs/src/components/GitHubLink.tsx | 2 +- docs/src/components/Logos/Logos.tsx | 4 +- docs/src/components/MDX.tsx | 5 +- docs/src/components/NavBar.tsx | 22 +- docs/src/components/Palette/Palette.tsx | 6 +- docs/src/components/PropsTable.tsx | 7 +- docs/src/components/SearchIcons.tsx | 11 +- docs/src/components/SideBar.tsx | 8 +- docs/src/layouts/docs.tsx | 11 +- docs/src/pages/_app.tsx | 4 +- docs/src/pages/index.mdx | 4 +- docs/src/pages/index_copy.mdx | 102 ++++++ package.json | 4 + pnpm-lock.yaml | 342 +----------------- 82 files changed, 4729 insertions(+), 1107 deletions(-) create mode 100644 components/vite.config.ts.timestamp-1725815945518-422a86fef5bcc.mjs create mode 100644 components/vite.config.ts.timestamp-1725815947765-fd9a4f4b2778b.mjs create mode 100644 components/vite.config.ts.timestamp-1725815950293-41439afa59d5d.mjs create mode 100644 components/vite.config.ts.timestamp-1725815953487-0343402bb3962.mjs create mode 100644 components/vite.config.ts.timestamp-1725815955485-2158d09ba86e4.mjs create mode 100644 components/vite.config.ts.timestamp-1725815957453-6837690cd0c97.mjs create mode 100644 components/vite.config.ts.timestamp-1725815959897-209d1ff271053.mjs create mode 100644 components/vite.config.ts.timestamp-1725815961928-15cc7176dc9d7.mjs create mode 100644 components/vite.config.ts.timestamp-1725815963891-bc47058775012.mjs create mode 100644 components/vite.config.ts.timestamp-1725815965900-7b4198febb1a8.mjs create mode 100644 components/vite.config.ts.timestamp-1725815968105-3d7101b68d3e7.mjs create mode 100644 components/vite.config.ts.timestamp-1725815970189-14417fc5646f.mjs create mode 100644 components/vite.config.ts.timestamp-1725815972598-ae33a863f20bd.mjs create mode 100644 components/vite.config.ts.timestamp-1725816181594-ce0f57870f858.mjs create mode 100644 components/vite.config.ts.timestamp-1725816183711-ab395ea2a697e.mjs create mode 100644 components/vite.config.ts.timestamp-1725816185866-f5d1a7c293ac.mjs create mode 100644 components/vite.config.ts.timestamp-1725816188047-b0fee4c1cb274.mjs create mode 100644 components/vite.config.ts.timestamp-1725816190370-d471cfabd3cd3.mjs create mode 100644 components/vite.config.ts.timestamp-1725816193028-fbe30e11b4401.mjs create mode 100644 components/vite.config.ts.timestamp-1725816195709-ca03cd171ba89.mjs create mode 100644 components/vite.config.ts.timestamp-1725816198425-5a8644a384bf8.mjs create mode 100644 components/vite.config.ts.timestamp-1725816200759-e00d44ed6bcb8.mjs create mode 100644 components/vite.config.ts.timestamp-1725816203026-3d5ae936181ee.mjs create mode 100644 components/vite.config.ts.timestamp-1725816205286-a1576679029a5.mjs create mode 100644 components/vite.config.ts.timestamp-1725816207460-6f74624c2ad91.mjs create mode 100644 components/vite.config.ts.timestamp-1725816209610-481d2442c221f.mjs delete mode 100644 docs/public/playroom/preview/index.html create mode 100644 docs/src/pages/index_copy.mdx diff --git a/components/src/components/atoms/Avatar/Avatar.tsx b/components/src/components/atoms/Avatar/Avatar.tsx index 8ba9aa79..da16d924 100644 --- a/components/src/components/atoms/Avatar/Avatar.tsx +++ b/components/src/components/atoms/Avatar/Avatar.tsx @@ -1,7 +1,5 @@ import * as React from 'react' -import { rainbowSprinkles } from '@/src/css/rainbow-spinkles.css' - import { rawColorToRGBA } from '@/src/tokens/color' import { Box, type BoxProps } from '../Box/Box' @@ -42,13 +40,13 @@ const Placeholder = ({ }: PlaceholderProps & BoxProps) => ( ) @@ -67,7 +65,7 @@ export type AvatarProps = { /** An element that overlays the avatar */ checked?: boolean /** An svg to overlay over the avatar */ - icon?: React.ReactElement + icon?: React.FC /** The deconding attribute of an img element */ decoding?: NativeImgAttributes['decoding'] /** A custom sizing for the avatar */ @@ -84,7 +82,7 @@ export const Avatar: React.FC = ({ icon, checked, size, - ...props + // ...props }) => { const ref = React.useRef(null) const [showImage, setShowImage] = React.useState(!!src) @@ -115,35 +113,38 @@ export const Avatar: React.FC = ({ const isImageVisible = showImage && !!src - const { - className: imgClassName, - style: imgStyle, - otherProps: imgOtherProps, - } = rainbowSprinkles({ - display: isImageVisible ? 'block' : 'none', - position: 'absolute', - height: '100%', - objectFit: 'cover', - width: '100%', - filter: disabled ? 'grayscale(1)' : undefined, - ...props, - }) + // const { + // className: imgClassName, + // style: imgStyle, + // otherProps: imgOtherProps, + // } = rainbowSprinkles({ + // display: isImageVisible ? 'block' : 'none', + // position: 'absolute', + // height: '100%', + // objectFit: 'cover', + // width: '100%', + // filter: disabled ? 'grayscale(1)' : undefined, + // ...props, + // }) const overlay = React.useMemo(() => { if (disabled || (!icon && !checked)) return null return ( - } wh="40%" /> + ) }, [checked, disabled, icon]) @@ -157,9 +158,9 @@ export const Avatar: React.FC = ({ /> )} {label} ), ) diff --git a/components/src/components/atoms/Banner/Banner.tsx b/components/src/components/atoms/Banner/Banner.tsx index 2568d89b..3137c614 100644 --- a/components/src/components/atoms/Banner/Banner.tsx +++ b/components/src/components/atoms/Banner/Banner.tsx @@ -18,9 +18,9 @@ type BaseProps = { as?: 'a' onDismiss?: () => void actionIcon?: React.ReactNode - icon?: React.ReactNode + icon?: React.FC iconType?: IconTypes -} & NativeDivProps +} & BoxProps type WithIcon = { icon?: React.ReactNode @@ -59,11 +59,11 @@ const ContainerBox = React.forwardRef( ({ $alert, $hasAction, ...props }, ref) => ( ( position="relative" pr={$hasAction ? '8' : undefined} ref={ref} - transform={{ - base: 'translateY(0)', - hover: $hasAction ? 'translateY(-1px)' : 'translateY(0px)', - }} + // transform={{ + // base: 'translateY(0)', + // hover: $hasAction ? 'translateY(-1px)' : 'translateY(0px)', + // }} transitionDuration={150} transitionProperty="all" - transitionTimingFunction="ease-in-out" + // transitionTimingFunction="ease-in-out" width="full" {...props} /> @@ -91,9 +91,9 @@ const IconBox = ({ ...props }: BoxProps & { $alert: NonNullableAlert }) => ( @@ -134,26 +134,26 @@ const ActionButtonIconBox = ({ }: BoxProps & { $alert: NonNullableAlert, $hasAction: boolean }) => ( @@ -170,7 +170,7 @@ const ActionButton = ({ onDismiss, }: Pick & { hasHref: boolean } & WithIcon) => { if (onDismiss) { - const Icon = (icon || ) as React.ReactElement + const Icon = (icon || CrossSVG) as React.FC return ( onDismiss()}> @@ -180,7 +180,7 @@ const ActionButton = ({ ) } if (hasHref || icon) { - const Icon = (icon || ) as React.ReactElement + const Icon = (icon || UpRightArrowSVG) as React.FC return ( diff --git a/components/src/components/atoms/Box/Box.tsx b/components/src/components/atoms/Box/Box.tsx index 2cfdd08a..1f3132e8 100644 --- a/components/src/components/atoms/Box/Box.tsx +++ b/components/src/components/atoms/Box/Box.tsx @@ -1,7 +1,8 @@ import type { AllHTMLAttributes, - ElementType, - ReactElement } from 'react' + FunctionComponent, + ComponentClass, +} from 'react' import React, { forwardRef, } from 'react' @@ -18,11 +19,11 @@ type HTMLProperties = Omit< > export type BoxProps = Sprinkles & - HTMLProperties & { as?: ElementType | ReactElement } + HTMLProperties & { as?: string | FunctionComponent | ComponentClass } export const Box = forwardRef( ( - { as = 'div', className, ...props }, + { as = 'div', className, children, ...props }, ref, ) => { const atomProps: Record = {} @@ -37,12 +38,13 @@ export const Box = forwardRef( } } - const atomicCss = sprinkles(props) + const atomicCss = sprinkles(atomProps) return React.createElement(as, { className: clsx(atomicCss, className), ...nativeProps, ref, + children, }) }, ) diff --git a/components/src/components/atoms/Button/Button.tsx b/components/src/components/atoms/Button/Button.tsx index a8ecdd4e..de5fa635 100644 --- a/components/src/components/atoms/Button/Button.tsx +++ b/components/src/components/atoms/Button/Button.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { P, match } from 'ts-pattern' -import { scale, translateY } from '@/src/css/utils/common' +// import { scale, translateY } from '@/src/css/utils/common' import { removeNullishProps } from '@/src/utils/removeNullishProps' @@ -10,16 +10,17 @@ import type { ColorStyle, WithColorStyle } from './utils/withColorStyle' import { - getValueForColourStyle, +// getValueForColourStyle, } from './utils/withColorStyle' import type { Color } from './utils/getValidatedColor' -import { getValidatedColor } from './utils/getValidatedColor' +// import { getValidatedColor } from './utils/getValidatedColor' -import { getValueForSize } from './utils/getValueForSize' +// import { getValueForSize } from './utils/getValueForSize' import type { ReactNodeNoStrings } from '../../../types' -import { Spinner } from '../Spinner/Spinner' +// import { Spinner } from '../Spinner/Spinner' +const Spinner = () =>
Spinner
import type { BoxProps } from '../Box/Box' import { Box } from '../Box/Box' @@ -77,12 +78,12 @@ type WithoutAnchor = { } type ButtonBoxProps = { - $pressed: boolean - $shadow: boolean + $pressed?: boolean + $shadow?: boolean $shape?: BaseProps['shape'] $size?: BaseProps['size'] $type?: BaseProps['type'] - $colorStyle: WithColorStyle['colorStyle'] + $colorStyle?: WithColorStyle['colorStyle'] $color?: Color $hasCounter?: boolean } @@ -92,14 +93,15 @@ const ButtonBox = React.forwardRef< >( ( { - $pressed, - $shadow, - $shape = 'rectangle', - $size = 'medium', - $colorStyle = 'accentPrimary', - $hasCounter, - $color, + // $pressed, + // $shadow, + // $shape = 'rectangle', + // $size = 'medium', + // $colorStyle = 'accentPrimary', + // $hasCounter, + // $color, as, + children, ...props }, ref, @@ -107,69 +109,77 @@ const ButtonBox = React.forwardRef< ), ) const SVGBox = ({ - $size, + // $size, ...props }: BoxProps & { $size: 'small' | 'medium' | 'flexible' -}) => +}) => ( + +) const ContentBox = ({ $fullWidth, @@ -201,7 +211,8 @@ const CounterBox = (props: BoxProps) => ( const CounterIconBox = ({ $visible, - $colorStyle, + // $colorStyle, + children, ...props }: BoxProps & { $visible: boolean @@ -209,12 +220,12 @@ const CounterIconBox = ({ }) => ( ) @@ -240,8 +252,8 @@ const TooltipIndicatorBox = (props: BoxProps) => ( display="flex" justifyContent="center" position="absolute" - right="-10px" - top="-10px" + // right="-10px" + // top="-10px" wh="6" {...props} /> @@ -293,7 +305,7 @@ export const Button = React.forwardRef( .with([P._, true, P._], () => React.isValidElement(prefix) ? ( - + ) : null, ) @@ -304,7 +316,7 @@ export const Button = React.forwardRef( .with([P._, P._, true], () => React.isValidElement(suffix) ? ( - + ) : null, ) @@ -321,21 +333,21 @@ export const Button = React.forwardRef( return ( ( position="absolute" ref={ref} top={getValueForTransitionState($state.status, 'topFunc')($y)} - transform={{ - base: `translate3d(0, 0, 0) ${$mobileTranslate}`, - sm: `translate3d(0, 0, 0) ${$translate}`, - }} - transitionDuration={`${$transitionDuration}ms`} + // transform={{ + // base: `translate3d(0, 0, 0) ${$mobileTranslate}`, + // sm: `translate3d(0, 0, 0) ${$translate}`, + // }} + // transitionDuration={`${$transitionDuration}ms`} transitionProperty={getValueForTransitionState( $state.status, 'transitionProperty', )} visibility={getValueForTransitionState($state.status, 'visibility')} - width={{ xs: makeWidth($mobileWidth), sm: makeWidth($width) }} + // width={{ xs: makeWidth($mobileWidth), sm: makeWidth($width) }} zIndex={999999} /> ), diff --git a/components/src/components/atoms/Field/Field.tsx b/components/src/components/atoms/Field/Field.tsx index 44370a3c..1cc7a10b 100644 --- a/components/src/components/atoms/Field/Field.tsx +++ b/components/src/components/atoms/Field/Field.tsx @@ -45,7 +45,7 @@ export type FieldProps = FieldBaseProps & { /** The id attribute of the label element */ id?: NativeFormProps['id'] disabled?: boolean -} & Omit +} & Omit const RequiredBox = () => ( @@ -65,15 +65,15 @@ const LabelBox = ({ $required?: boolean }) => ( 'not-allowed') - .with([false, true], () => 'none') - .with([false, false], () => 'pointer') - .exhaustive()} + // cursor={match([$disabled, $readOnly]) + // .with([true, P._], () => 'not-allowed') + // .with([false, true], () => 'none') + // .with([false, false], () => 'pointer') + // .exhaustive()} display="flex" flexBasis="auto" - flexGrow="2" - flexShrink="1" + // flexGrow="2" + // flexShrink="1" overflow="hidden" position="relative" {...props} @@ -91,7 +91,7 @@ const SecondaryLabelBox = (props: React.ComponentProps) => ( ( 'row-reverse' as const) diff --git a/components/src/components/atoms/Heading/Heading.tsx b/components/src/components/atoms/Heading/Heading.tsx index 501d2f8a..e7280bfd 100644 --- a/components/src/components/atoms/Heading/Heading.tsx +++ b/components/src/components/atoms/Heading/Heading.tsx @@ -25,9 +25,9 @@ const ContainerBox = React.forwardRef< 'initial') - .otherwise(() => ($size === 'large' ? '30' : '22.5'))} + // flexBasis={match($inline) + // .with(true, () => 'initial') + // .otherwise(() => ($size === 'large' ? '30' : '22.5'))} flexGrow={0} flexShrink={0} gap="2" @@ -139,12 +139,12 @@ const PrefixSVGBox = (props: BoxProps) => ( const TrailingSVGBox = ({ $rotate, ...props -}: BoxProps & { $rotate: boolean }) => ( +}: BoxProps & { $rotate?: boolean }) => ( @@ -180,13 +180,13 @@ export const RecordItem = React.forwardRef< rel: 'nofollow noreferrer', target: '_blank', ...props, - } as NativeElementProps & NativeAnchorProps) + } as BoxProps) : ({ onClick: () => { copy(value) }, ...props, - } as NativeElementProps & NativeButtonProps) + } as BoxProps) const hasPrefix = !!icon || !!keyLabel const hasLabels = !!keyLabel || !!keySublabel @@ -236,7 +236,7 @@ export const RecordItem = React.forwardRef< {hasPrefix && ( - {icon && } + {icon && } {hasLabels && ( {KeyLabel} diff --git a/components/src/components/atoms/Spinner/Spinner.tsx b/components/src/components/atoms/Spinner/Spinner.tsx index fc3ddb40..5f248a96 100644 --- a/components/src/components/atoms/Spinner/Spinner.tsx +++ b/components/src/components/atoms/Spinner/Spinner.tsx @@ -17,22 +17,22 @@ export type SpinnerProps = { /** A tokens 'mode' color value */ color?: Color size?: Size -} & Omit +} & Omit const ContainerBox = React.forwardRef< HTMLElement, - BoxProps & { $size: Size, $color?: Color } + BoxProps & { $size?: Size, $color?: Color } >(({ $size, $color, ...props }, ref) => ( )) -const svg = ( +const svg = () => ( ( @@ -72,8 +72,8 @@ export const Spinner = React.forwardRef( diff --git a/components/src/components/atoms/Tag/Tag.tsx b/components/src/components/atoms/Tag/Tag.tsx index 428b815c..aaa76d54 100644 --- a/components/src/components/atoms/Tag/Tag.tsx +++ b/components/src/components/atoms/Tag/Tag.tsx @@ -32,29 +32,29 @@ export const Tag: React.FC = ({ & Omit< - NativeInputProps, + BoxProps, | 'size' | 'color' | 'type' @@ -66,17 +66,17 @@ const InputBox = React.forwardRef ( ')`} - maskPosition="center" - maskRepeat="no-repeat" + // maskImage={`url('data:image/svg+xml; utf8, ')`} + // maskPosition="center" + // maskRepeat="no-repeat" pointerEvents="none" position="absolute" top="0" - transition="background-color 150ms ease-in-out" + // transition="background-color 150ms ease-in-out" wh="full" /> diff --git a/components/src/components/molecules/CheckboxRow/CheckboxRow.tsx b/components/src/components/molecules/CheckboxRow/CheckboxRow.tsx index 35d6269a..f82cbdde 100644 --- a/components/src/components/molecules/CheckboxRow/CheckboxRow.tsx +++ b/components/src/components/molecules/CheckboxRow/CheckboxRow.tsx @@ -19,16 +19,16 @@ export type CheckboxRowProps = { label: string subLabel?: string colorStyle?: ColorStyle -} & React.InputHTMLAttributes +} & BoxProps const ContainerBox = ({ disabled, ...props }: BoxProps) => ( @@ -53,7 +53,7 @@ const Label = ({ {...props} alignItems="center" as="label" - backgroundColor={getValueForColorStyle($colorStyle, 'background')} + // backgroundColor={getValueForColorStyle($colorStyle, 'background')} borderColor="transparent" borderRadius="large" borderStyle="solid" @@ -62,7 +62,7 @@ const Label = ({ display="flex" gap="4" padding="4" - transition="all 0.3s ease-in-out" + // transition="all 0.3s ease-in-out" wh="full" /> ) @@ -79,7 +79,12 @@ const CircleFrame = (props: BoxProps) => ( ) const SVG = (props: BoxProps) => ( - + ) const Circle = ({ @@ -90,22 +95,22 @@ const Circle = ({ - } /> + ) diff --git a/components/src/components/molecules/CountdownCircle/CountdownCircle.tsx b/components/src/components/molecules/CountdownCircle/CountdownCircle.tsx index 5eb534b1..8d2bd422 100644 --- a/components/src/components/molecules/CountdownCircle/CountdownCircle.tsx +++ b/components/src/components/molecules/CountdownCircle/CountdownCircle.tsx @@ -21,15 +21,15 @@ const NumberBox = ({ ) @@ -43,14 +43,26 @@ const ContainerBox = React.forwardRef< >(({ $size, $color, disabled, ...props }, ref) => ( )) +const CircleIcon = () => ( + +) + const Circle = ({ $progress, disabled, @@ -66,24 +78,8 @@ const Circle = ({ return ( typeof x === 'number' && x <= 0)], - () => '0', - ) - .otherwise(() => '4')} - /> - )} - transition="all 1s linear, stroke-width 0.2s ease-in-out 1s" + as={CircleIcon} + // transition="all 1s linear, stroke-width 0.2s ease-in-out 1s" /> ) } @@ -156,7 +152,7 @@ export const CountdownCircle = React.forwardRef currentCount) .with([false, false], () => ( } + as={CheckSVG} data-testid="countdown-complete-check" display="block" id="countdown-complete-check" diff --git a/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx b/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx index 5c0bccfb..e3d9d356 100644 --- a/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx +++ b/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx @@ -15,12 +15,12 @@ export type CurrencyToggleProps = { size?: Size fiat?: string color?: Color -} & Omit, 'size'> +} & Omit const Container = (props: BoxProps) => ( @@ -40,16 +40,16 @@ const Label = ({ display="flex" fontFamily="sans" fontSize="small" - fontWeight={$size === 'extraSmall' ? '$normal' : 'bold'} - height={getValuesForKnob($size, 'height')} + // fontWeight={$size === 'extraSmall' ? '$normal' : 'bold'} + // height={getValuesForKnob($size, 'height')} justifyContent="center" left="1/2" position="absolute" top="1/2" - transform={$type === 'eth' ? 'translateX(-50%)' : 'translateX(50%)'} - transition="color 0.1s linear" - translate="-50% -50%" - width={getValuesForKnob($size, 'width')} + // transform={$type === 'eth' ? 'translateX(-50%)' : 'translateX(50%)'} + // transition="color 0.1s linear" + // translate="-50% -50%" + // width={getValuesForKnob($size, 'width')} /> ) @@ -60,15 +60,15 @@ const Checkbox = React.forwardRef( alignItems="center" as="input" backgroundColor="greySurface" - borderRadius={getValueForCheckbox($size, 'borderRadius')} + // borderRadius={getValueForCheckbox($size, 'borderRadius')} cursor={{ base: 'pointer', disabled: 'not-allowed' }} display="flex" - height={getValueForCheckbox($size, 'height')} + // height={getValueForCheckbox($size, 'height')} justifyContent="center" position="relative" ref={ref} type="checkbox" - width={getValueForCheckbox($size, 'width')} + // width={getValueForCheckbox($size, 'width')} /> ), ) @@ -80,16 +80,16 @@ const Slider = ({ }: BoxProps & { $size: Size, $color: Color }) => ( ) diff --git a/components/src/components/molecules/Dropdown/Dropdown.tsx b/components/src/components/molecules/Dropdown/Dropdown.tsx index 68b7e489..06c7b44c 100644 --- a/components/src/components/molecules/Dropdown/Dropdown.tsx +++ b/components/src/components/molecules/Dropdown/Dropdown.tsx @@ -76,7 +76,7 @@ export type DropdownProps = { responsive?: boolean /** The label for the cancel button when showing an action sheet */ cancelLabel?: string -} & NativeDivProps +} & BoxProps type PropsWithIsOpen = { isOpen: boolean @@ -99,7 +99,7 @@ type DropdownMenuProps = { direction: Direction state?: TransitionState['status'] height?: string | number -} & NativeDivProps & +} & BoxProps & PopoverProps type DropdownMenuContainerProps = { @@ -125,26 +125,26 @@ const DropdownMenuBox = React.forwardRef< opacity={1} padding="1.5" ref={ref} - transform={match([$state, $direction, $shortThrow]) - .with([P.union('entering', 'entered'), P._, P._], () => `translateY(0)`) - .with( - [P._, 'up', true], - () => `translateY(calc(${commonVars.space['2.5']}))`, - ) - .with( - [P._, 'down', true], - () => `translateY(calc(-1 * ${commonVars.space['2.5']}))`, - ) - .with( - [P._, 'up', false], - () => `translateY(calc(${commonVars.space['12']}))`, - ) - .with( - [P._, 'down', false], - () => `translateY(calc(-1 * ${commonVars.space['12']}))`, - ) - .exhaustive()} - transition="all .35s cubic-bezier(1, 0, 0.22, 1.6)" + // transform={match([$state, $direction, $shortThrow]) + // .with([P.union('entering', 'entered'), P._, P._], () => `translateY(0)`) + // .with( + // [P._, 'up', true], + // () => `translateY(calc(${commonVars.space['2.5']}))`, + // ) + // .with( + // [P._, 'down', true], + // () => `translateY(calc(-1 * ${commonVars.space['2.5']}))`, + // ) + // .with( + // [P._, 'up', false], + // () => `translateY(calc(${commonVars.space['12']}))`, + // ) + // .with( + // [P._, 'down', false], + // () => `translateY(calc(-1 * ${commonVars.space['12']}))`, + // ) + // .exhaustive()} + // transition="all .35s cubic-bezier(1, 0, 0.22, 1.6)" width="full" zIndex={1} /> @@ -152,7 +152,7 @@ const DropdownMenuBox = React.forwardRef< interface MenuButtonProps { $color?: Colors - $icon?: React.ReactElement + $icon?: React.FC $showIndicator?: boolean | Colors } @@ -163,12 +163,12 @@ const MenuButton = React.forwardRef( alignItems="center" backgroundColor={{ base: 'backgroundPrimary', hover: 'greySurface' }} borderRadius="large" - color={ - disabled ? 'textTertiary' : $color ? `$${$color}` : 'textPrimary' - } + // color={ + // disabled ? 'textTertiary' : $color ? `$${$color}` : 'textPrimary' + // } cursor={disabled ? 'not-allowed' : 'pointer'} display="flex" - filter={{ base: 'brightness(1)', active: 'brightness(0.9)' }} + // filter={{ base: 'brightness(1)', active: 'brightness(0.9)' }} fontWeight="normal" gap="2" height="12" @@ -177,17 +177,17 @@ const MenuButton = React.forwardRef( paddingRight={$showIndicator ? '6' : '3'} position="relative" ref={ref} - transform={{ base: 'translateY(0px)', active: 'translateY(0px)' }} + // transform={{ base: 'translateY(0px)', active: 'translateY(0px)' }} transitionDuration={150} - transitionProperty="color, transform, filter" - transitionTimingFunction="ease-in-out" + // transitionProperty="color, transform, filter" + // transitionTimingFunction="ease-in-out" width="full" > {$icon ? ( ( {children} {$showIndicator && ( )} @@ -343,12 +343,12 @@ const Chevron = ({ $direction, }: { $open?: boolean, $direction: Direction } & BoxProps) => ( } - fill="currentColor" + as={DownChevronSVG} + // fill="currentColor" marginLeft="1" marginRight="0.5" - transform={rotation($direction, !!$open)} - transitionDuration="200" + // transform={rotation($direction, !!$open)} + // transitionDuration="200" transitionProperty="all" transitionTimingFunction="inOut" width="3" diff --git a/components/src/components/molecules/FieldSet/FieldSet.tsx b/components/src/components/molecules/FieldSet/FieldSet.tsx index 5addb838..f2b155d9 100644 --- a/components/src/components/molecules/FieldSet/FieldSet.tsx +++ b/components/src/components/molecules/FieldSet/FieldSet.tsx @@ -63,7 +63,7 @@ export type FieldSetProps = { name: string tone: TagProps['color'] } -} & Omit +} & Omit export const FieldSet: React.FC = ({ children, diff --git a/components/src/components/molecules/Helper/Helper.tsx b/components/src/components/molecules/Helper/Helper.tsx index dd230fd8..af4bf2f0 100644 --- a/components/src/components/molecules/Helper/Helper.tsx +++ b/components/src/components/molecules/Helper/Helper.tsx @@ -13,7 +13,7 @@ type NativeDivProps = React.HTMLAttributes type Alignment = 'horizontal' | 'vertical' -export type HelperProps = NativeDivProps & { +export type HelperProps = BoxProps & { alert?: Alert alignment?: Alignment children: React.ReactNode @@ -27,8 +27,8 @@ const Container = ({ ( - + ) export const Helper: React.FC = ({ diff --git a/components/src/components/molecules/Input/Input.tsx b/components/src/components/molecules/Input/Input.tsx index f1a02f03..9531935c 100644 --- a/components/src/components/molecules/Input/Input.tsx +++ b/components/src/components/molecules/Input/Input.tsx @@ -9,7 +9,7 @@ import { scale } from '@/src/css/utils/common' import * as styles from './styles.css' -import type { FieldBaseProps } from '../../atoms/Field/Field' +import type { FieldBaseProps, FieldProps } from '../../atoms/Field/Field' import { Field } from '../../atoms/Field/Field' import type { Space } from '../../../tokens/index' import type { BoxProps } from '../../atoms/Box/Box' @@ -86,7 +86,7 @@ type BaseProps = Omit & { /** Set of styles */ // parentStyles?: BoxProps } & Omit< - NativeInputProps, + BoxProps, | 'size' | 'prefix' | 'children' @@ -115,7 +115,7 @@ type WithTypeDateTimeLocal = { export type Size = NonNullable type ContainerProps = { - $size: Size + $size?: Size $disabled?: boolean $hasError?: boolean $suffix?: boolean @@ -124,24 +124,24 @@ type ContainerProps = { $userStyles?: BoxProps } const Container = ({ - $size, + // $size, ...props }: BoxProps & ContainerProps & StatusDot) => ( ) const Label = ({ - $size, + // $size, $disabled, ...props -}: BoxProps & { $disabled?: boolean, $size: Size }) => ( +}: BoxProps & { $disabled?: boolean, $size?: Size }) => ( ) type IconBoxProps = { $icon: React.ReactElement $iconWidth?: any - $size: Size + $size?: Size } const Icon = ({ @@ -178,13 +178,13 @@ const Icon = ({ boxSizing="content-box" cursor="pointer" display="flex" - flexBasis={$iconWidth ? `$${$iconWidth}` : getValueForSize($size, 'icon')} + // flexBasis={$iconWidth ? `$${$iconWidth}` : getValueForSize($size, 'icon')} flexGrow={0} flexShrink={0} justifyContent="flex-start" - order={-1} - paddingLeft={getValueForSize($size, 'outerPadding')} - width={$iconWidth ? `$${$iconWidth}` : getValueForSize($size, 'icon')} + // order={-1} + // paddingLeft={getValueForSize($size, 'outerPadding')} + // width={$iconWidth ? `$${$iconWidth}` : getValueForSize($size, 'icon')} zIndex={1} > {$icon} @@ -195,14 +195,15 @@ const ActionButton = ({ $icon, $size, ...props -}: BoxProps & { $size: Size, $icon?: React.ReactNode }) => { - const Icon: React.ReactElement = React.isValidElement($icon) - ? ( - $icon - ) - : ( - - ) +}: BoxProps & { $size?: Size, $icon?: React.FC }) => { + // const Icon: React.FC = React.isValidElement($icon) + // ? ( + // $icon + // ) + // : ( + // + // ) + const Icon = $icon return ( ) @@ -248,7 +249,6 @@ const InputComponent = React.forwardRef ( ) -export type InputProps = BaseProps & (WithTypeEmail | WithTypeText | WithTypeDateTimeLocal) +export type InputProps = Omit & { size: Size } & (WithTypeEmail | WithTypeText | WithTypeDateTimeLocal) export const Input = React.forwardRef( ( @@ -349,7 +351,7 @@ export const Input = React.forwardRef( type = 'text', units, value, - width, + // width, onBlur, onChange, onFocus, @@ -376,7 +378,7 @@ export const Input = React.forwardRef( e.stopPropagation() if (onClickAction) { - onClickAction() + // onClickAction() return inputRef.current?.focus() } @@ -400,7 +402,7 @@ export const Input = React.forwardRef( labelSecondary={labelSecondary} readOnly={readOnly} required={required} - width={width} + // width={width} > {ids => ( ( validated, show: showDot, })} - {...{ - $size: size, - }} + // {...{ + // $size: size, + // }} > ( autoCorrect={autoCorrect} autoFocus={autoFocus} className={styles.input({ - size: size, + // size: size, showAction: alwaysShowAction, })} defaultValue={defaultValue} @@ -463,10 +465,10 @@ export const Input = React.forwardRef( aria-hidden="true" as={prefixAs} className={styles.label} - order={-2} + // order={-2} {...ids?.label} $disabled={disabled} - $size={size} + // $size={size} > {prefix} @@ -475,15 +477,15 @@ export const Input = React.forwardRef( )} {hasAction && ( e.preventDefault()} @@ -492,7 +494,7 @@ export const Input = React.forwardRef( {suffix && ( diff --git a/components/src/components/molecules/Textarea/utils/getValueForSize.ts b/components/src/components/molecules/Textarea/utils/getValueForSize.ts index f8f0fc35..4d6d0053 100644 --- a/components/src/components/molecules/Textarea/utils/getValueForSize.ts +++ b/components/src/components/molecules/Textarea/utils/getValueForSize.ts @@ -1,4 +1,6 @@ -import type { Size } from '../Textarea' +// import type { Size } from '../Textarea' + +type Size = 'small' | 'medium' type Properties = { actionSize: string diff --git a/components/src/components/molecules/ThemeToggle/ThemeToggle.tsx b/components/src/components/molecules/ThemeToggle/ThemeToggle.tsx index 16ee915a..5b5bf0e0 100644 --- a/components/src/components/molecules/ThemeToggle/ThemeToggle.tsx +++ b/components/src/components/molecules/ThemeToggle/ThemeToggle.tsx @@ -18,12 +18,12 @@ export type ThemeToggleProps = { size?: Size color?: Color mode?: Mode -} & Omit, 'size'> +} & Omit const Container = (props: BoxProps) => ( @@ -42,16 +42,16 @@ const Label = ({ cursor="pointer" display="flex" fontSize="small" - fontWeight={$size === 'extraSmall' ? '$normal' : 'bold'} + // fontWeight={$size === 'extraSmall' ? '$normal' : 'bold'} justifyContent="center" left="1/2" pointerEvents="none" position="absolute" top="1/2" - transform={$mode === 'dark' ? 'translateX(-50%)' : 'translateX(50%)'} - transition="color 0.1s linear" - translate="-50% -50%" - wh={getValueForSize($size, 'knobSize')} + // transform={$mode === 'dark' ? 'translateX(-50%)' : 'translateX(50%)'} + // transition="color 0.1s linear" + // translate="-50% -50%" + // wh={getValueForSize($size, 'knobSize')} /> ) @@ -65,12 +65,12 @@ const Checkbox = React.forwardRef( borderRadius="full" cursor={{ base: 'pointer', disabled: 'not-allowed' }} display="flex" - height={getValueForSize($size, 'height')} + // height={getValueForSize($size, 'height')} justifyContent="center" position="relative" ref={ref} type="checkbox" - width={getValueForSize($size, 'width')} + // width={getValueForSize($size, 'width')} /> ), ) @@ -82,16 +82,16 @@ const Slider = ({ }: BoxProps & { $size: Size, $color: Color }) => ( ) diff --git a/components/src/components/molecules/Toggle/Toggle.tsx b/components/src/components/molecules/Toggle/Toggle.tsx index d95a204d..44e25f05 100644 --- a/components/src/components/molecules/Toggle/Toggle.tsx +++ b/components/src/components/molecules/Toggle/Toggle.tsx @@ -12,7 +12,7 @@ export type Size = 'small' | 'medium' | 'large' export type ToggleProps = { size?: Size color?: Color -} & Omit, 'type' | 'size'> +} & Omit const CheckBox = React.forwardRef< HTMLElement, @@ -22,21 +22,21 @@ const CheckBox = React.forwardRef< {...props} alignItems="center" as="input" - backgroundColor={{ - base: 'border', - checked: getValidatedColor($color), - disabled: 'border', - }} + // backgroundColor={{ + // base: 'border', + // checked: getValidatedColor($color), + // disabled: 'border', + // }} borderRadius="full" cursor={{ base: 'pointer', disabled: 'not-allowed' }} display="flex" - height={getValueForSize($size, 'height')} + // height={getValueForSize($size, 'height')} justifyContent="center" position="relative" ref={ref} - transition="background-color 0.1s ease-in-out" + // transition="background-color 0.1s ease-in-out" type="checkbox" - width={getValueForSize($size, 'width')} + // width={getValueForSize($size, 'width')} /> )) diff --git a/components/src/components/molecules/Tooltip/Tooltip.tsx b/components/src/components/molecules/Tooltip/Tooltip.tsx index 9770b66e..756f58fd 100644 --- a/components/src/components/molecules/Tooltip/Tooltip.tsx +++ b/components/src/components/molecules/Tooltip/Tooltip.tsx @@ -17,22 +17,22 @@ import clsx from 'clsx' import type { Color } from '@/src/tokens/color' type TooltipPopoverElementProps = { - $background: Color - $placement: DynamicPopoverSide - $mobilePlacement: DynamicPopoverSide + // $background: Color + // $placement: DynamicPopoverSide + // $mobilePlacement: DynamicPopoverSide } const TooltipPopoverElement = ({ - $background = 'backgroundPrimary', - $placement, - $mobilePlacement, + // $background = 'backgroundPrimary', + // $placement, + // $mobilePlacement, children, className, ...props }: BoxProps & TooltipPopoverElementProps) => ( {children} @@ -122,9 +122,9 @@ const TooltipPopover = ({ }: TooltipPopoverProps) => { return ( {children} diff --git a/components/src/components/organisms/Dialog/Dialog.tsx b/components/src/components/organisms/Dialog/Dialog.tsx index 14413b0e..da577e10 100644 --- a/components/src/components/organisms/Dialog/Dialog.tsx +++ b/components/src/components/organisms/Dialog/Dialog.tsx @@ -12,7 +12,7 @@ import { DialogContent } from './DialogContent' import type { BoxProps } from '../../atoms/Box/Box' import { Box } from '../../atoms/Box/Box' import { getValueForAlert } from './utils/getValueForAlert' -import { getValueForStepType } from './utils/getValueForStepType' +// import { getValueForStepType } from './utils/getValueForStepType' import { Typography } from '../../atoms' import { Modal } from '../../molecules' @@ -30,13 +30,13 @@ const CloseButton = (props: BoxProps) => ( position="absolute" right="2" top="2" - transform={{ base: translateY(0), hover: translateY(-1) }} + // transform={{ base: translateY(0), hover: translateY(-1) }} transitionDuration={150} transitionProperty="all" transitionTimingFunction="inOut" wh="8" > - } color="greyPrimary" display="block" wh="4" /> + ) @@ -51,7 +51,7 @@ const StyledCard = (props: BoxProps) => ( display="flex" flexDirection="column" gap={{ xs: '4', sm: '6' }} - maxHeight={{ xs: '80vh', sm: 'min(90vh, 144)' }} + // maxHeight={{ xs: '80vh', sm: 'min(90vh, 144)' }} maxWidth={{ xs: 'unset', sm: '80vw' }} minWidth={{ xs: 'unset', sm: '64' }} overflow="hidden" @@ -64,13 +64,13 @@ const StyledCard = (props: BoxProps) => ( type NonNullableAlert = NonNullable const Icon = ({ $alert, ...props }: BoxProps & { $alert: NonNullableAlert }) => { - const Icon = ['error', 'warning'].includes($alert) ? : + const Icon = ['error', 'warning'].includes($alert) ? AlertSVG : EthSVG return ( @@ -136,11 +136,11 @@ export type StepType = 'notStarted' | 'inProgress' | 'completed' const StepItem = ({ $type, ...props }: BoxProps & { $type: StepType }) => ( ) diff --git a/components/src/components/organisms/Dialog/DialogContent.tsx b/components/src/components/organisms/Dialog/DialogContent.tsx index edc7d51f..8d9a3961 100644 --- a/components/src/components/organisms/Dialog/DialogContent.tsx +++ b/components/src/components/organisms/Dialog/DialogContent.tsx @@ -47,28 +47,28 @@ const Container = forwardRef< flexDirection="column" gap="4" justifyContent="flex-start" - margin={{ - base: $fullWidth - ? `margin: 0 -${space['4']};` - : `0 -${space[$horizontalPadding]}`, - sm: $fullWidth - ? `margin: 0 -${space['6']}` - : `0 -${space[$horizontalPadding]}`, - }} + // margin={{ + // base: $fullWidth + // ? `margin: 0 -${space['4']};` + // : `0 -${space[$horizontalPadding]}`, + // sm: $fullWidth + // ? `margin: 0 -${space['6']}` + // : `0 -${space[$horizontalPadding]}`, + // }} maxHeight="60vh" - maxWidth={{ - base: 'viewWidth', - sm: `calc(${space['128']} + 2 * ${space[$horizontalPadding]})`, - }} + // maxWidth={{ + // base: 'viewWidth', + // sm: `calc(${space['128']} + 2 * ${space[$horizontalPadding]})`, + // }} overflow="hidden" - width={{ - sm: $fullWidth - ? '80vw' - : `calc(80vw - 2 * ${space['6']} + 2 * ${space[$horizontalPadding]})`, - base: $fullWidth - ? `width: calc(100% + 2 * ${space['4']});` - : `calc(100% + 2 * ${space[$horizontalPadding]})`, - }} + // width={{ + // sm: $fullWidth + // ? '80vw' + // : `calc(80vw - 2 * ${space['6']} + 2 * ${space[$horizontalPadding]})`, + // base: $fullWidth + // ? `width: calc(100% + 2 * ${space['4']});` + // : `calc(100% + 2 * ${space[$horizontalPadding]})`, + // }} /> )) const ScrollBoxContent = ({ diff --git a/components/src/components/organisms/Dialog/utils/getValueForStepType.ts b/components/src/components/organisms/Dialog/utils/getValueForStepType.ts index c3df69e2..444c31d0 100644 --- a/components/src/components/organisms/Dialog/utils/getValueForStepType.ts +++ b/components/src/components/organisms/Dialog/utils/getValueForStepType.ts @@ -1,9 +1,8 @@ -import type { Sprinkles } from '@/src/css/rainbow-spinkles.css' - import type { StepType } from '../Dialog' type Properties = { - borderWidth: Sprinkles['borderWidth'] + // borderWidth: Sprinkles['borderWidth'] + borderWidth: string borderColor: string backgroundColor: string } diff --git a/components/src/components/organisms/Toast/Toast.tsx b/components/src/components/organisms/Toast/Toast.tsx index e48f2b33..bf5b5665 100644 --- a/components/src/components/organisms/Toast/Toast.tsx +++ b/components/src/components/organisms/Toast/Toast.tsx @@ -16,7 +16,7 @@ import type { Space } from '@/src/tokens' const CloseIcon = (props: BoxProps) => ( } + as={CrossSVG} cursor="pointer" opacity={{ base: 0.5, hover: 0.7 }} padding="1.5" @@ -48,41 +48,41 @@ const Container = React.forwardRef( 'unset') - .otherwise(() => ($bottom ? `$${$bottom}` : 'unset'))} - boxShadow="0.02" + // bottom={match($mobile) + // .with(true, () => 'unset') + // .otherwise(() => ($bottom ? `$${$bottom}` : 'unset'))} + // boxShadow="0.02" display="flex" flexDirection="column" justifyContent="center" - left={match($mobile) - .with(true, () => ($popped ? '2.5%' : '3.75%')) - .otherwise(() => ($left ? `$${$left}` : 'unset'))} - maxWidth={match($mobile) - .with(true, () => 'unset') - .otherwise(() => '112')} + // left={match($mobile) + // .with(true, () => ($popped ? '2.5%' : '3.75%')) + // .otherwise(() => ($left ? `$${$left}` : 'unset'))} + // maxWidth={match($mobile) + // .with(true, () => 'unset') + // .otherwise(() => '112')} opacity={$state.status === 'entered' ? 1 : 0} padding="4.5" position="fixed" ref={ref} - right={match($mobile) - .with(true, () => 'unset') - .otherwise(() => ($right ? `$${$right}` : 'unset'))} - top={match($mobile) - .with(true, () => 'calc(100vh / 100 * 2.5)') - .otherwise(() => ($top ? `$${$top}` : 'unset'))} - touchAction={$popped ? 'none' : 'unset'} - transform={$state.status === 'entered' ? translateY(0) : translateY(-64)} + // right={match($mobile) + // .with(true, () => 'unset') + // .otherwise(() => ($right ? `$${$right}` : 'unset'))} + // top={match($mobile) + // .with(true, () => 'calc(100vh / 100 * 2.5)') + // .otherwise(() => ($top ? `$${$top}` : 'unset'))} + // touchAction={$popped ? 'none' : 'unset'} + // transform={$state.status === 'entered' ? translateY(0) : translateY(-64)} transitionDuration={300} transitionProperty="all" transitionTimingFunction="popIn" - width={$popped ? '95%' : '92.5%'} + // width={$popped ? '95%' : '92.5%'} zIndex={10000} /> ), @@ -93,7 +93,7 @@ const Draggable = () => ( alignItems="center" display="flex" justifyContent="center" - marginBottom="calc(-1 * 0.5rem)" + // marginBottom="calc(-1 * 0.5rem)" paddingTop="3" width="full" > @@ -120,7 +120,7 @@ export type ToastProps = { right?: Space bottom?: Space variant?: 'touch' | 'desktop' -} & Omit +} & Omit type InternalProps = { state: TransitionState diff --git a/components/src/css/sprinkles.css.ts b/components/src/css/sprinkles.css.ts index ee45f3e8..d28fba93 100644 --- a/components/src/css/sprinkles.css.ts +++ b/components/src/css/sprinkles.css.ts @@ -40,8 +40,8 @@ const responsivePropeties = defineProperties({ alignSelf: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'inherit'], alignItems: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'inherit'], justifySelf: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'inherit'], - justifyContent: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'inherit'], - display: ['none', 'block', 'flex', 'inline-block', 'grid', 'table', 'inherit', 'initial'], + justifyContent: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'inherit', 'space-between'], + display: ['none', 'block', 'flex', 'inline-block', 'grid', 'table', 'inherit', 'initial', 'inline'], flexDirection: ['row', 'row-reverse', 'column', 'column-reverse', 'inherit'], flex: [1, '0 0 1px', 'auto', 'initial', 'none', 'inherit'], flexShrink: [0, 1, 2, 'inherit'], diff --git a/components/vite.config.ts.timestamp-1725815945518-422a86fef5bcc.mjs b/components/vite.config.ts.timestamp-1725815945518-422a86fef5bcc.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815945518-422a86fef5bcc.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0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0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815947765-fd9a4f4b2778b.mjs b/components/vite.config.ts.timestamp-1725815947765-fd9a4f4b2778b.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815947765-fd9a4f4b2778b.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2Nvbm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7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815950293-41439afa59d5d.mjs b/components/vite.config.ts.timestamp-1725815950293-41439afa59d5d.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815950293-41439afa59d5d.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb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xRQUFRLGdDQUFTO0FBQUEsUUFDckM7QUFBQSxRQUNBO0FBQUEsVUFDRSxNQUFNO0FBQUEsVUFDTixhQUFhLEtBQUssUUFBUSxrQ0FBVyxJQUFJO0FBQUEsUUFDM0M7QUFBQSxNQUNGO0FBQUEsSUFDRjtBQUFBLElBQ0EsU0FBUztBQUFBLE1BQ1AsY0FBYyxFQUFFLFVBQVUsQ0FBQyxlQUFlLEVBQUUsQ0FBQztBQUFBLE1BQzdDLHFCQUFxQjtBQUFBLFFBQ25CLGFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815953487-0343402bb3962.mjs b/components/vite.config.ts.timestamp-1725815953487-0343402bb3962.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815953487-0343402bb3962.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQgcGtnIGZyb20gJy4vcGFja2FnZS5qc29uJ1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCBkdHNQbHVnaW4gZnJvbSAndml0ZS1wbHVnaW4tZHRzJ1xuXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoKHsgbW9kZSB9KSA9PiB7XG4gIHJldHVybiAoe1xuICAgIHNlcnZlcjoge1xuICAgIC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M7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815955485-2158d09ba86e4.mjs b/components/vite.config.ts.timestamp-1725815955485-2158d09ba86e4.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815955485-2158d09ba86e4.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZyd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GFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815957453-6837690cd0c97.mjs b/components/vite.config.ts.timestamp-1725815957453-6837690cd0c97.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815957453-6837690cd0c97.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vuc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timestamp-1725815959897-209d1ff271053.mjs b/components/vite.config.ts.timestamp-1725815959897-209d1ff271053.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815959897-209d1ff271053.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQgcGtnIGZyb20gJy4vcGFja2FnZS5qc29uJ1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCBkdHNQbHVnaW4gZnJvbSAndml0ZS1wbHVnaW4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LFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815961928-15cc7176dc9d7.mjs b/components/vite.config.ts.timestamp-1725815961928-15cc7176dc9d7.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815961928-15cc7176dc9d7.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdH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0EsU0FBUztBQUFBLE1BQ1AsY0FBYyxFQUFFLFVBQVUsQ0FBQyxlQUFlLEVBQUUsQ0FBQztBQUFBLE1BQzdDLHFCQUFxQjtBQUFBLFFBQ25CLGFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815963891-bc47058775012.mjs b/components/vite.config.ts.timestamp-1725815963891-bc47058775012.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815963891-bc47058775012.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb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UixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815965900-7b4198febb1a8.mjs b/components/vite.config.ts.timestamp-1725815965900-7b4198febb1a8.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815965900-7b4198febb1a8.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQ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sU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815968105-3d7101b68d3e7.mjs b/components/vite.config.ts.timestamp-1725815968105-3d7101b68d3e7.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815968105-3d7101b68d3e7.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c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UFDRSxNQUFNO0FBQUEsVUFDTixhQUFhLEtBQUssUUFBUSxrQ0FBVyxJQUFJO0FBQUEsUUFDM0M7QUFBQSxNQUNGO0FBQUEsSUFDRjtBQUFBLElBQ0EsU0FBUztBQUFBLE1BQ1AsY0FBYyxFQUFFLFVBQVUsQ0FBQyxlQUFlLEVBQUUsQ0FBQztBQUFBLE1BQzdDLHFCQUFxQjtBQUFBLFFBQ25CLGFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815970189-14417fc5646f.mjs b/components/vite.config.ts.timestamp-1725815970189-14417fc5646f.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815970189-14417fc5646f.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}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QUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725815972598-ae33a863f20bd.mjs b/components/vite.config.ts.timestamp-1725815972598-ae33a863f20bd.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725815972598-ae33a863f20bd.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbS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xVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816181594-ce0f57870f858.mjs b/components/vite.config.ts.timestamp-1725816181594-ce0f57870f858.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816181594-ce0f57870f858.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3R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ea2a697e.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816183711-ab395ea2a697e.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQgcGtnIGZyb20gJy4vcGFja2FnZS5qc29uJ1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCBkdHNQbHVnaW4gZnJvbSAndml0ZS1wbHVnaW4tZHRzJ1xuXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25ma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FO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816185866-f5d1a7c293ac.mjs b/components/vite.config.ts.timestamp-1725816185866-f5d1a7c293ac.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816185866-f5d1a7c293ac.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZml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Q0FBQyxlQUFlLEVBQUUsQ0FBQztBQUFBLE1BQzdDLHFCQUFxQjtBQUFBLFFBQ25CLGFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816188047-b0fee4c1cb274.mjs b/components/vite.config.ts.timestamp-1725816188047-b0fee4c1cb274.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816188047-b0fee4c1cb274.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5q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0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816190370-d471cfabd3cd3.mjs b/components/vite.config.ts.timestamp-1725816190370-d471cfabd3cd3.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816190370-d471cfabd3cd3.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQgcGtnIGZyb20gJy4vcGFja2FnZS5qc29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QUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816193028-fbe30e11b4401.mjs b/components/vite.config.ts.timestamp-1725816193028-fbe30e11b4401.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816193028-fbe30e11b4401.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF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tBQUssUUFBUSxrQ0FBVyxJQUFJO0FBQUEsUUFDM0M7QUFBQSxNQUNGO0FBQUEsSUFDRjtBQUFBLElBQ0EsU0FBUztBQUFBLE1BQ1AsY0FBYyxFQUFFLFVBQVUsQ0FBQyxlQUFlLEVBQUUsQ0FBQztBQUFBLE1BQzdDLHFCQUFxQjtBQUFBLFFBQ25CLGFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816195709-ca03cd171ba89.mjs b/components/vite.config.ts.timestamp-1725816195709-ca03cd171ba89.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816195709-ca03cd171ba89.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogIC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BQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816198425-5a8644a384bf8.mjs b/components/vite.config.ts.timestamp-1725816198425-5a8644a384bf8.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816198425-5a8644a384bf8.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92a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BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816200759-e00d44ed6bcb8.mjs b/components/vite.config.ts.timestamp-1725816200759-e00d44ed6bcb8.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816200759-e00d44ed6bcb8.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9ma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 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816203026-3d5ae936181ee.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQgcGtnIGZyb20gJy4vcGFja2FnZS5qc29uJ1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCBkdHNQbHVnaW4gZnJvbSAndml0ZS1wbHVnaW4tZHRzJ1xuXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoKHsgbW9kZSB9KS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VUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816205286-a1576679029a5.mjs b/components/vite.config.ts.timestamp-1725816205286-a1576679029a5.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816205286-a1576679029a5.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVma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QztBQUFBLE1BQzdDLHFCQUFxQjtBQUFBLFFBQ25CLGFBQWEsU0FBUyxnQkFBZ0IsQ0FBQyxFQUFFLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSztBQUFBLE1BQ3pFLENBQUM7QUFBQSxNQUNELFVBQVU7QUFBQSxRQUFFLFdBQVcsS0FBSyxRQUFRLGdDQUFTO0FBQUEsUUFDM0MsU0FBUztBQUFBLFVBQ1A7QUFBQSxVQUNBO0FBQUEsVUFDQTtBQUFBLFFBQ0Y7QUFBQSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816207460-6f74624c2ad91.mjs b/components/vite.config.ts.timestamp-1725816207460-6f74624c2ad91.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816207460-6f74624c2ad91.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZ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BQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/components/vite.config.ts.timestamp-1725816209610-481d2442c221f.mjs b/components/vite.config.ts.timestamp-1725816209610-481d2442c221f.mjs new file mode 100644 index 00000000..05cae750 --- /dev/null +++ b/components/vite.config.ts.timestamp-1725816209610-481d2442c221f.mjs @@ -0,0 +1,145 @@ +// vite.config.ts +import { defineConfig } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vitest@2.0.5_@types+node@22.5.0_jsdom@24.1.3_terser@5.31.6/node_modules/vitest/dist/config.js"; +import { vanillaExtractPlugin } from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/@vanilla-extract+vite-plugin@3.9.5_@types+node@22.5.0_babel-plugin-macros@3.1.0_terser@5.31.6_w4mww6o2fvain4y2lypfwha27e/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.js"; +import tsconfigPaths from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-tsconfig-paths@4.0.1_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-tsconfig-paths/dist/index.mjs"; + +// package.json +var package_default = { + name: "@ensdomains/thorin", + version: "1.0.0-beta.9", + description: "A web3 native design system", + main: "./dist/index.cjs", + module: "./dist/index.js", + type: "module", + types: "./dist/types/index.d.ts", + exports: { + ".": { + import: "./dist/index.js", + require: "./dist/index.cjs", + types: "./dist/types/index.d.ts" + }, + "./style.css": { + import: "./dist/style.css", + require: "./dist/style.css" + } + }, + sideEffects: [ + "src/atoms/**/*", + "src/theme/**/*", + "*.css.ts" + ], + files: [ + "dist" + ], + repository: "ensdomains/thorin", + license: "MIT", + scripts: { + build: "vite build", + "build:watch": "vite build --watch --mode development", + lint: "eslint . -c eslint.config.mjs", + "lint:fix": "eslint . -c eslint.config.mjs --fix", + "lint:types": "tsc --noEmit", + prepack: "pnpm build", + test: "vitest run", + ver: "pnpm npm version" + }, + dependencies: { + "@vanilla-extract/sprinkles": "^1.6.3", + clsx: "^1.1.1", + "react-transition-state": "^2.1.1", + "ts-pattern": "^4.3.0" + }, + devDependencies: { + "@testing-library/dom": "^9.3.3", + "@testing-library/jest-dom": "^6.1.4", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.5.1", + "@types/node": "^22.2.0", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/testing-library__jest-dom": "^6.0.0", + "@vanilla-extract/css": "^1.13.0", + "@vanilla-extract/dynamic": "^2.0.3", + "@vanilla-extract/recipes": "^0.5.0", + "@vanilla-extract/vite-plugin": "^3.9.0", + jsdom: "^24.1.1", + react: "^18.0.0", + "react-dom": "^18.0.0", + vite: "^5.4.0", + "vite-plugin-dts": "^4.0.2", + "vite-tsconfig-paths": "^4.0.1", + vitest: "^2.0.5" + }, + peerDependencies: { + react: "^18", + "react-dom": "^18" + } +}; + +// vite.config.ts +import path from "path"; +import dtsPlugin from "file:///Users/davidchu/projects/ens/thorin/node_modules/.pnpm/vite-plugin-dts@4.0.3_@types+node@22.5.0_typescript@5.5.4_vite@5.4.2_@types+node@22.5.0_terser@5.31.6_/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_dirname = "/Users/davidchu/projects/ens/thorin/components"; +var vite_config_default = defineConfig(({ mode }) => { + return { + server: { + fs: { + allow: [".."] + } + }, + build: { + minify: false, + lib: { + entry: "./src/index.ts", + fileName: (format) => `index.${format === "cjs" ? "cjs" : "js"}`, + formats: ["es", "cjs"] + }, + rollupOptions: { + external: Object.keys(package_default.peerDependencies) + } + }, + resolve: { + alias: [ + { + find: "@", + replacement: path.resolve(__vite_injected_original_dirname) + }, + { + find: "!", + replacement: path.resolve(__vite_injected_original_dirname, "..") + } + ] + }, + plugins: [ + tsconfigPaths({ projects: ["tsconfig.json"] }), + vanillaExtractPlugin({ + identifiers: mode === "development" ? ({ hash }) => `thorin-${hash}` : "short" + }), + dtsPlugin({ + entryRoot: path.resolve(__vite_injected_original_dirname), + exclude: [ + "src/**/*.docs.mdx", + "src/**/*.snippets.tsx", + "src/**/*.test.ts*" + ], + beforeWriteFile: (filePath, content) => ({ + content: content.replace(/\/\.\.\/src/g, ""), + filePath: filePath.replace("src", "") + }), + staticImport: true, + outDir: "dist/types" + }) + ], + test: { + environment: "jsdom", + globals: true, + coverage: { + provider: "v8" + } + } + }; +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2RhdmlkY2h1L3Byb2plY3RzL2Vucy90aG9yaW4vY29tcG9uZW50cy92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvZGF2aWRjaHUvcHJvamVjdHMvZW5zL3Rob3Jpbi9jb21wb25lbnRzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZXN0L2NvbmZpZydcbmltcG9ydCB7IHZhbmlsbGFFeHRyYWN0UGx1Z2luIH0gZnJvbSAnQHZhbmlsbGEtZXh0cmFjdC92aXRlLXBsdWdpbidcbmltcG9ydCB0c2NvbmZpZ1BhdGhzIGZyb20gJ3ZpdGUtdHNjb25maWctcGF0aHMnXG5pbXBvcnQgcGtnIGZyb20gJy4vcGFja2FnZS5qc29uJ1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCdcbm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QSxRQUNBLGlCQUFpQixDQUFDLFVBQVUsYUFBYTtBQUFBLFVBQ3ZDLFNBQVMsUUFBUSxRQUFRLGdCQUFnQixFQUFFO0FBQUEsVUFDM0MsVUFBVSxTQUFTLFFBQVEsT0FBTyxFQUFFO0FBQUEsUUFDdEM7QUFBQSxRQUNBLGNBQWM7QUFBQSxRQUNkLFFBQVE7QUFBQSxNQUNWLENBQUM7QUFBQSxJQUNIO0FBQUEsSUFDQSxNQUFNO0FBQUEsTUFDSixhQUFhO0FBQUEsTUFDYixTQUFTO0FBQUEsTUFDVCxVQUFVO0FBQUEsUUFDUixVQUFVO0FBQUEsTUFDWjtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/docs/public/playroom/preview/index.html b/docs/public/playroom/preview/index.html deleted file mode 100644 index 798b0ec5..00000000 --- a/docs/public/playroom/preview/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - ENS Design - - - - - - - \ No newline at end of file diff --git a/docs/src/components/AdditionalColors/components/PaletteRow.tsx b/docs/src/components/AdditionalColors/components/PaletteRow.tsx index b7cbbeb6..36137bde 100644 --- a/docs/src/components/AdditionalColors/components/PaletteRow.tsx +++ b/docs/src/components/AdditionalColors/components/PaletteRow.tsx @@ -26,12 +26,12 @@ const PaletteCell = ({ diff --git a/docs/src/components/CodeBlock/CodeBlock.tsx b/docs/src/components/CodeBlock/CodeBlock.tsx index 45fd2270..9289ae1e 100644 --- a/docs/src/components/CodeBlock/CodeBlock.tsx +++ b/docs/src/components/CodeBlock/CodeBlock.tsx @@ -34,7 +34,7 @@ const Pre = (props: PropsWithChildren) => ( backgroundColor="greySurface" borderRadius="large" padding="4" - border="1px solid" + // border="1px solid" borderColor="border" position="relative" /> diff --git a/docs/src/components/CodePreview.tsx b/docs/src/components/CodePreview.tsx index c81d92e1..4b411eb7 100644 --- a/docs/src/components/CodePreview.tsx +++ b/docs/src/components/CodePreview.tsx @@ -59,8 +59,8 @@ const ContainerInner = React.forwardRef< backgroundColor="background" borderTopLeftRadius="2xLarge" borderTopRightRadius="2xLarge" - borderBottomLeftRadius={$expand ? '2xLarge' : 'unset'} - borderBottomRightRadius={$expand ? '2xLarge' : 'unset'} + // borderBottomLeftRadius={$expand ? '2xLarge' : 'unset'} + // borderBottomRightRadius={$expand ? '2xLarge' : 'unset'} overflow="auto" padding="4" /> @@ -74,7 +74,7 @@ const LiveEditorContainer = (props: BoxProps) => ( position="relative" padding="1.5" borderColor="transparent" - borderTopColor="border" + // borderTopColor="border" borderStyle="solid" fontFamily="mono" borderWidth="1x" @@ -151,7 +151,7 @@ export const CodePreview = ({ diff --git a/docs/src/pages/index_copy.mdx b/docs/src/pages/index_copy.mdx new file mode 100644 index 00000000..45e6eec0 --- /dev/null +++ b/docs/src/pages/index_copy.mdx @@ -0,0 +1,102 @@ +import { Header, Link } from '~/components' + +
+ Design system for ENS built with{' '} + React. + + } + title="ENS Design System (alpha)" +/> + +## Install + +```bash +pnpm i @ensdomains/thorin react-transition-state@1.1.5 +``` + +## Set Up + +Wrap the root of your app in a [`ThemeProvider`](https://styled-components.com/docs/advanced) module. Import **ThorinGlobalStyles** and declare it as a child of **ThemeProvider**. Import **lightTheme** or **darkTheme** and pass it to the **ThemeProvider**. Add [Satoshi](https://www.fontshare.com/fonts/satoshi) to your font stack. + +In this example we are adding the **lightTheme**. + +```tsx +import React, { useState } from 'react' +import { ThemeProvider } from '@ensdomains/thorin' +import 'thorin/dist/style.css' + +const App = () => { + return ( + + {children} + + ) +} +``` + +### Dark Theme + +To use the dark theme, import `darkTheme` and pass it to the `ThemeProvider`. + +```tsx +import React, { useState } from 'react' +import { ThemeProvider } from 'styled-components' +import { ThorinGlobalStyles, darkTheme } from '@ensdomains/thorin' + +const App = () => { + return ( + + + {children} + + ) +} +``` + +### Custom Themes + +To customise the theme, you can change properties on either the `lightTheme` or `darkTheme` objects, or create an entirely new one. + +```tsx +import { ThemeProvider, lightTheme } from '@ensdomains/thorin' + +const theme = { + ...lightTheme, + colors: { + ...lightTheme.colors, + foreground: 'rgba(255, 255, 255, 0.4)', + }, +} + +const App = () => { + return {children} +} +``` + +## Use Components + +```tsx +import { Button, LockSVG } from '@ensdomains/thorin' +``` + +```tsx live=true expand=true + +
+ +
+
+``` + +## Component Groups + +Thorin is organized according to the [`Atomic Design Methodology`](https://atomicdesign.bradfrost.com/chapter-2/). + +**Atoms** serve as the foundational building blocks that comprise all our user interfaces. These atoms include basic HTML elements like form labels, inputs, buttons, and others that can’t be broken down any further without ceasing to be functional. + +**Molecules** are relatively simple groups of UI elements functioning together as a unit. For example, a form label, search input, and button can join together to create a search form molecule. + +**Organisms** are relatively complex UI components composed of groups of molecules and/or atoms and/or other organisms. These organisms form distinct sections of an interface. diff --git a/package.json b/package.json index a1af3b25..e5757759 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,11 @@ "pnpm": { "overrides": { "ts-morph": "17.0.1" + } }, + "resolutions": { + "rollup": "npm:@rollup/wasm-node" + }, "packageManager": "pnpm@9.4.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d5e4dd9e..bbb41c31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,7 @@ settings: excludeLinksFromLockfile: false overrides: + rollup: npm:@rollup/wasm-node ts-morph: 17.0.1 importers: @@ -171,7 +172,7 @@ importers: version: 5.4.2(@types/node@22.5.0)(terser@5.31.6) vite-plugin-dts: specifier: ^4.0.2 - version: 4.0.3(@types/node@22.5.0)(rollup@4.21.2)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.0)(terser@5.31.6)) + version: 4.0.3(@types/node@22.5.0)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.0)(terser@5.31.6)) vite-tsconfig-paths: specifier: ^4.0.1 version: 4.0.1(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.0)(terser@5.31.6)) @@ -2357,170 +2358,15 @@ packages: resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + rollup: npm:@rollup/wasm-node peerDependenciesMeta: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.21.1': - resolution: {integrity: sha512-2thheikVEuU7ZxFXubPDOtspKn1x0yqaYQwvALVtEcvFhMifPADBrgRPyHV0TF3b+9BgvgjgagVyvA/UqPZHmg==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm-eabi@4.21.2': - resolution: {integrity: sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm64@4.21.1': - resolution: {integrity: sha512-t1lLYn4V9WgnIFHXy1d2Di/7gyzBWS8G5pQSXdZqfrdCGTwi1VasRMSS81DTYb+avDs/Zz4A6dzERki5oRYz1g==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-android-arm64@4.21.2': - resolution: {integrity: sha512-xGU5ZQmPlsjQS6tzTTGwMsnKUtu0WVbl0hYpTPauvbRAnmIvpInhJtgjj3mcuJpEiuUw4v1s4BimkdfDWlh7gA==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-darwin-arm64@4.21.1': - resolution: {integrity: sha512-AH/wNWSEEHvs6t4iJ3RANxW5ZCK3fUnmf0gyMxWCesY1AlUj8jY7GC+rQE4wd3gwmZ9XDOpL0kcFnCjtN7FXlA==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-arm64@4.21.2': - resolution: {integrity: sha512-99AhQ3/ZMxU7jw34Sq8brzXqWH/bMnf7ZVhvLk9QU2cOepbQSVTns6qoErJmSiAvU3InRqC2RRZ5ovh1KN0d0Q==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.21.1': - resolution: {integrity: sha512-dO0BIz/+5ZdkLZrVgQrDdW7m2RkrLwYTh2YMFG9IpBtlC1x1NPNSXkfczhZieOlOLEqgXOFH3wYHB7PmBtf+Bg==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.21.2': - resolution: {integrity: sha512-ZbRaUvw2iN/y37x6dY50D8m2BnDbBjlnMPotDi/qITMJ4sIxNY33HArjikDyakhSv0+ybdUxhWxE6kTI4oX26w==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-linux-arm-gnueabihf@4.21.1': - resolution: {integrity: sha512-sWWgdQ1fq+XKrlda8PsMCfut8caFwZBmhYeoehJ05FdI0YZXk6ZyUjWLrIgbR/VgiGycrFKMMgp7eJ69HOF2pQ==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm-gnueabihf@4.21.2': - resolution: {integrity: sha512-ztRJJMiE8nnU1YFcdbd9BcH6bGWG1z+jP+IPW2oDUAPxPjo9dverIOyXz76m6IPA6udEL12reYeLojzW2cYL7w==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm-musleabihf@4.21.1': - resolution: {integrity: sha512-9OIiSuj5EsYQlmwhmFRA0LRO0dRRjdCVZA3hnmZe1rEwRk11Jy3ECGGq3a7RrVEZ0/pCsYWx8jG3IvcrJ6RCew==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm-musleabihf@4.21.2': - resolution: {integrity: sha512-flOcGHDZajGKYpLV0JNc0VFH361M7rnV1ee+NTeC/BQQ1/0pllYcFmxpagltANYt8FYf9+kL6RSk80Ziwyhr7w==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm64-gnu@4.21.1': - resolution: {integrity: sha512-0kuAkRK4MeIUbzQYu63NrJmfoUVicajoRAL1bpwdYIYRcs57iyIV9NLcuyDyDXE2GiZCL4uhKSYAnyWpjZkWow==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-arm64-gnu@4.21.2': - resolution: {integrity: sha512-69CF19Kp3TdMopyteO/LJbWufOzqqXzkrv4L2sP8kfMaAQ6iwky7NoXTp7bD6/irKgknDKM0P9E/1l5XxVQAhw==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-arm64-musl@4.21.1': - resolution: {integrity: sha512-/6dYC9fZtfEY0vozpc5bx1RP4VrtEOhNQGb0HwvYNwXD1BBbwQ5cKIbUVVU7G2d5WRE90NfB922elN8ASXAJEA==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-arm64-musl@4.21.2': - resolution: {integrity: sha512-48pD/fJkTiHAZTnZwR0VzHrao70/4MlzJrq0ZsILjLW/Ab/1XlVUStYyGt7tdyIiVSlGZbnliqmult/QGA2O2w==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-powerpc64le-gnu@4.21.1': - resolution: {integrity: sha512-ltUWy+sHeAh3YZ91NUsV4Xg3uBXAlscQe8ZOXRCVAKLsivGuJsrkawYPUEyCV3DYa9urgJugMLn8Z3Z/6CeyRQ==} - cpu: [ppc64] - os: [linux] - - '@rollup/rollup-linux-powerpc64le-gnu@4.21.2': - resolution: {integrity: sha512-cZdyuInj0ofc7mAQpKcPR2a2iu4YM4FQfuUzCVA2u4HI95lCwzjoPtdWjdpDKyHxI0UO82bLDoOaLfpZ/wviyQ==} - cpu: [ppc64] - os: [linux] - - '@rollup/rollup-linux-riscv64-gnu@4.21.1': - resolution: {integrity: sha512-BggMndzI7Tlv4/abrgLwa/dxNEMn2gC61DCLrTzw8LkpSKel4o+O+gtjbnkevZ18SKkeN3ihRGPuBxjaetWzWg==} - cpu: [riscv64] - os: [linux] - - '@rollup/rollup-linux-riscv64-gnu@4.21.2': - resolution: {integrity: sha512-RL56JMT6NwQ0lXIQmMIWr1SW28z4E4pOhRRNqwWZeXpRlykRIlEpSWdsgNWJbYBEWD84eocjSGDu/XxbYeCmwg==} - cpu: [riscv64] - os: [linux] - - '@rollup/rollup-linux-s390x-gnu@4.21.1': - resolution: {integrity: sha512-z/9rtlGd/OMv+gb1mNSjElasMf9yXusAxnRDrBaYB+eS1shFm6/4/xDH1SAISO5729fFKUkJ88TkGPRUh8WSAA==} - cpu: [s390x] - os: [linux] - - '@rollup/rollup-linux-s390x-gnu@4.21.2': - resolution: {integrity: sha512-PMxkrWS9z38bCr3rWvDFVGD6sFeZJw4iQlhrup7ReGmfn7Oukrr/zweLhYX6v2/8J6Cep9IEA/SmjXjCmSbrMQ==} - cpu: [s390x] - os: [linux] - - '@rollup/rollup-linux-x64-gnu@4.21.1': - resolution: {integrity: sha512-kXQVcWqDcDKw0S2E0TmhlTLlUgAmMVqPrJZR+KpH/1ZaZhLSl23GZpQVmawBQGVhyP5WXIsIQ/zqbDBBYmxm5w==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-linux-x64-gnu@4.21.2': - resolution: {integrity: sha512-B90tYAUoLhU22olrafY3JQCFLnT3NglazdwkHyxNDYF/zAxJt5fJUB/yBoWFoIQ7SQj+KLe3iL4BhOMa9fzgpw==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-linux-x64-musl@4.21.1': - resolution: {integrity: sha512-CbFv/WMQsSdl+bpX6rVbzR4kAjSSBuDgCqb1l4J68UYsQNalz5wOqLGYj4ZI0thGpyX5kc+LLZ9CL+kpqDovZA==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-linux-x64-musl@4.21.2': - resolution: {integrity: sha512-7twFizNXudESmC9oneLGIUmoHiiLppz/Xs5uJQ4ShvE6234K0VB1/aJYU3f/4g7PhssLGKBVCC37uRkkOi8wjg==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-win32-arm64-msvc@4.21.1': - resolution: {integrity: sha512-3Q3brDgA86gHXWHklrwdREKIrIbxC0ZgU8lwpj0eEKGBQH+31uPqr0P2v11pn0tSIxHvcdOWxa4j+YvLNx1i6g==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-arm64-msvc@4.21.2': - resolution: {integrity: sha512-9rRero0E7qTeYf6+rFh3AErTNU1VCQg2mn7CQcI44vNUWM9Ze7MSRS/9RFuSsox+vstRt97+x3sOhEey024FRQ==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.21.1': - resolution: {integrity: sha512-tNg+jJcKR3Uwe4L0/wY3Ro0H+u3nrb04+tcq1GSYzBEmKLeOQF2emk1whxlzNqb6MMrQ2JOcQEpuuiPLyRcSIw==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.21.2': - resolution: {integrity: sha512-5rA4vjlqgrpbFVVHX3qkrCo/fZTj1q0Xxpg+Z7yIo3J2AilW7t2+n6Q8Jrx+4MrYpAnjttTYF8rr7bP46BPzRw==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.21.1': - resolution: {integrity: sha512-xGiIH95H1zU7naUyTKEyOA/I0aexNMUdO9qRv0bLKN3qu25bBdrxZHqA3PTJ24YNN/GdMzG4xkDcd/GvjuhfLg==} - cpu: [x64] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.21.2': - resolution: {integrity: sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA==} - cpu: [x64] - os: [win32] + '@rollup/wasm-node@4.21.2': + resolution: {integrity: sha512-AJCfdXkpe5EX+jfWOMYuFl3ZomTQyfx4V4geRmChdTwAo05FdpnobwqtYn0mo7Mf1qVN7mniI7kdG98vKDVd2g==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true '@rushstack/eslint-patch@1.10.3': resolution: {integrity: sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg==} @@ -7281,16 +7127,6 @@ packages: resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} hasBin: true - rollup@4.21.1: - resolution: {integrity: sha512-ZnYyKvscThhgd3M5+Qt3pmhO4jIRR5RGzaSovB6Q7rGNrK5cUncrtLmcTTJVSdcKXyZjW8X8MB0JMSuH9bcAJg==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - - rollup@4.21.2: - resolution: {integrity: sha512-e3TapAgYf9xjdLvKQCkQTnbTKd4a6jwlpQSJJFokHGaX2IVjoEqkIIhiQfqsi0cdwlOD+tQGuOd5AJkc5RngBw==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - rrweb-cssom@0.6.0: resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==} @@ -11166,109 +11002,17 @@ snapshots: tiny-warning: 1.0.3 tslib: 2.4.0 - '@rollup/pluginutils@5.1.0(rollup@4.21.2)': + '@rollup/pluginutils@5.1.0': dependencies: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - optionalDependencies: - rollup: 4.21.2 - - '@rollup/rollup-android-arm-eabi@4.21.1': - optional: true - - '@rollup/rollup-android-arm-eabi@4.21.2': - optional: true - - '@rollup/rollup-android-arm64@4.21.1': - optional: true - - '@rollup/rollup-android-arm64@4.21.2': - optional: true - - '@rollup/rollup-darwin-arm64@4.21.1': - optional: true - - '@rollup/rollup-darwin-arm64@4.21.2': - optional: true - '@rollup/rollup-darwin-x64@4.21.1': - optional: true - - '@rollup/rollup-darwin-x64@4.21.2': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.21.1': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.21.2': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.21.1': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.21.2': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.21.1': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.21.2': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.21.1': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.21.2': - optional: true - - '@rollup/rollup-linux-powerpc64le-gnu@4.21.1': - optional: true - - '@rollup/rollup-linux-powerpc64le-gnu@4.21.2': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.21.1': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.21.2': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.21.1': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.21.2': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.21.1': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.21.2': - optional: true - - '@rollup/rollup-linux-x64-musl@4.21.1': - optional: true - - '@rollup/rollup-linux-x64-musl@4.21.2': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.21.1': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.21.2': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.21.1': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.21.2': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.21.1': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.21.2': - optional: true + '@rollup/wasm-node@4.21.2': + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + fsevents: 2.3.3 '@rushstack/eslint-patch@1.10.3': {} @@ -14156,14 +13900,13 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@5.45.1(eslint@9.9.1)(typescript@4.9.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.29.1)(eslint@9.9.1))(eslint@9.9.1): + eslint-module-utils@2.8.1(@typescript-eslint/parser@8.3.0(eslint@9.9.1)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint@9.9.1): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 5.45.1(eslint@9.9.1)(typescript@4.9.4) + '@typescript-eslint/parser': 8.3.0(eslint@9.9.1)(typescript@5.5.4) eslint: 9.9.1 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.5.2(eslint-plugin-import@2.29.1)(eslint@9.9.1) transitivePeerDependencies: - supports-color @@ -14177,7 +13920,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.9.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@5.45.1(eslint@9.9.1)(typescript@4.9.4))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.2(eslint-plugin-import@2.29.1)(eslint@9.9.1))(eslint@9.9.1) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@8.3.0(eslint@9.9.1)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint@9.9.1) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -17480,51 +17223,6 @@ snapshots: dependencies: glob: 10.3.15 - rollup@4.21.1: - dependencies: - '@types/estree': 1.0.5 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.21.1 - '@rollup/rollup-android-arm64': 4.21.1 - '@rollup/rollup-darwin-arm64': 4.21.1 - '@rollup/rollup-darwin-x64': 4.21.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.21.1 - '@rollup/rollup-linux-arm-musleabihf': 4.21.1 - '@rollup/rollup-linux-arm64-gnu': 4.21.1 - '@rollup/rollup-linux-arm64-musl': 4.21.1 - '@rollup/rollup-linux-powerpc64le-gnu': 4.21.1 - '@rollup/rollup-linux-riscv64-gnu': 4.21.1 - '@rollup/rollup-linux-s390x-gnu': 4.21.1 - '@rollup/rollup-linux-x64-gnu': 4.21.1 - '@rollup/rollup-linux-x64-musl': 4.21.1 - '@rollup/rollup-win32-arm64-msvc': 4.21.1 - '@rollup/rollup-win32-ia32-msvc': 4.21.1 - '@rollup/rollup-win32-x64-msvc': 4.21.1 - fsevents: 2.3.3 - - rollup@4.21.2: - dependencies: - '@types/estree': 1.0.5 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.21.2 - '@rollup/rollup-android-arm64': 4.21.2 - '@rollup/rollup-darwin-arm64': 4.21.2 - '@rollup/rollup-darwin-x64': 4.21.2 - '@rollup/rollup-linux-arm-gnueabihf': 4.21.2 - '@rollup/rollup-linux-arm-musleabihf': 4.21.2 - '@rollup/rollup-linux-arm64-gnu': 4.21.2 - '@rollup/rollup-linux-arm64-musl': 4.21.2 - '@rollup/rollup-linux-powerpc64le-gnu': 4.21.2 - '@rollup/rollup-linux-riscv64-gnu': 4.21.2 - '@rollup/rollup-linux-s390x-gnu': 4.21.2 - '@rollup/rollup-linux-x64-gnu': 4.21.2 - '@rollup/rollup-linux-x64-musl': 4.21.2 - '@rollup/rollup-win32-arm64-msvc': 4.21.2 - '@rollup/rollup-win32-ia32-msvc': 4.21.2 - '@rollup/rollup-win32-x64-msvc': 4.21.2 - fsevents: 2.3.3 - optional: true - rrweb-cssom@0.6.0: {} rrweb-cssom@0.7.1: {} @@ -18706,10 +18404,10 @@ snapshots: - supports-color - terser - vite-plugin-dts@4.0.3(@types/node@22.5.0)(rollup@4.21.2)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.0)(terser@5.31.6)): + vite-plugin-dts@4.0.3(@types/node@22.5.0)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.0)(terser@5.31.6)): dependencies: '@microsoft/api-extractor': 7.47.4(@types/node@22.5.0) - '@rollup/pluginutils': 5.1.0(rollup@4.21.2) + '@rollup/pluginutils': 5.1.0 '@volar/typescript': 2.4.0 '@vue/language-core': 2.0.29(typescript@5.5.4) compare-versions: 6.1.1 @@ -18740,7 +18438,7 @@ snapshots: dependencies: esbuild: 0.21.5 postcss: 8.4.41 - rollup: 4.21.1 + rollup: '@rollup/wasm-node@4.21.2' optionalDependencies: '@types/node': 22.5.0 fsevents: 2.3.3 @@ -18750,7 +18448,7 @@ snapshots: dependencies: esbuild: 0.21.5 postcss: 8.4.41 - rollup: 4.21.1 + rollup: '@rollup/wasm-node@4.21.2' optionalDependencies: '@types/node': 22.5.2 fsevents: 2.3.3