@nearform/quantum 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -10
- package/dist/{chunk-RRXNHXUN.mjs → chunk-MJFCAXIN.mjs} +29 -15
- package/dist/chunk-MJFCAXIN.mjs.map +1 -0
- package/dist/colors/index.js +28 -14
- package/dist/colors/index.js.map +1 -1
- package/dist/colors/index.mjs +1 -1
- package/dist/global.css +1042 -249
- package/dist/global.css.map +1 -1
- package/dist/index.d.mts +686 -32
- package/dist/index.d.ts +686 -32
- package/dist/index.js +3883 -696
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3990 -817
- package/dist/index.mjs.map +1 -1
- package/dist/tailwind-plugin.js +88 -84
- package/dist/tailwind-plugin.js.map +1 -1
- package/dist/tailwind-plugin.mjs +35 -45
- package/dist/tailwind-plugin.mjs.map +1 -1
- package/package.json +58 -48
- package/dist/chunk-RRXNHXUN.mjs.map +0 -1
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/components/Accordion/index.tsx","../src/assets/index.ts","../src/assets/build/open-source.icon.tsx","../src/lib/utils.ts","../src/components/Button/index.tsx","../src/components/ButtonGroup/index.tsx","../src/components/Calendar/index.tsx","../src/components/Checkbox/index.tsx","../src/components/Chip/index.tsx","../src/components/ControlLabel/index.tsx","../src/components/Label/index.tsx","../src/components/Input/index.tsx","../src/components/Link/index.tsx","../src/components/Modal/index.tsx","../src/components/Pagination/index.tsx","../src/components/Password/index.tsx","../src/components/Popover/index.tsx","../src/components/Radio/RadioGroup.tsx","../src/components/Radio/RadioGroupItem.tsx","../src/components/Select/index.tsx","../src/components/StepsIndicator/Step.tsx","../src/components/StepsIndicator/StepsIndicator.tsx","../src/components/Switch/index.tsx","../src/components/Table/index.tsx","../src/components/Textarea/index.tsx","../src/components/Tooltip/index.tsx","../src/components/WebsiteFooter/index.tsx"],"sourcesContent":["export { default as colors } from './colors'\nexport * from './components'\nexport * from './assets'\n","'use client'\n\nimport * as AccordionPrimitive from '@radix-ui/react-accordion'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { BsChevronDown } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst sizeVariants = cva('', {\n variants: {\n size: {\n sm: ['text-sm'],\n md: ['text-base'],\n lg: ['text-lg']\n }\n },\n defaultVariants: {\n size: 'md'\n }\n})\n\ntype AccordionProps = React.ComponentPropsWithoutRef<\n typeof AccordionPrimitive.Root\n> &\n VariantProps<typeof sizeVariants>\n\nconst Accordion = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Root>,\n AccordionProps\n>(({ children, className, size, ...props }, ref) => (\n <AccordionPrimitive.Root\n className={cn(\n sizeVariants({ size }),\n 'dark:bg-grey-900 bg-white w-[206px] rounded-md shadow-[0_2px_10px] shadow-black/5',\n className\n )}\n {...props}\n ref={ref}\n >\n {children}\n </AccordionPrimitive.Root>\n))\nAccordion.displayName = AccordionPrimitive.Root.displayName\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Item\n className={cn(\n 'overflow-hidden first:mt-0 first:rounded-t last:rounded-b border-b border-grey-200 dark:border-grey-700 last:border-0',\n className\n )}\n {...props}\n ref={ref}\n >\n {children}\n </AccordionPrimitive.Item>\n))\nAccordionItem.displayName = AccordionPrimitive.Item.displayName\n\nconst AccordionHeader = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Header>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Header>\n>(({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Header\n className={cn('flex font-semibold', className)}\n {...props}\n ref={ref}\n >\n {children}\n </AccordionPrimitive.Header>\n))\nAccordionHeader.displayName = AccordionPrimitive.Header.displayName\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ children, className, ...props }, ref) => (\n <AccordionHeader>\n <AccordionPrimitive.Trigger\n className={cn(\n 'px-4 py-4 dark:bg-grey-900 dark:text-white group flex flex-1 cursor-pointer items-center justify-between bg-white leading-none',\n 'focus-visible:outline-hidden focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen-10',\n className\n )}\n {...props}\n ref={ref}\n >\n {children}\n <BsChevronDown\n className=\"ease-[cubic-bezier(0.87,_0,_0.13,_1)] transition-transform duration-300 group-data-[state=open]:rotate-180 w-3 h-3 text-gray-800\"\n aria-hidden\n />\n </AccordionPrimitive.Trigger>\n </AccordionHeader>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Content\n className={cn(\n 'dark:text-white data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden',\n className\n )}\n {...props}\n ref={ref}\n >\n <div className=\"pb-3 px-4\">{children}</div>\n </AccordionPrimitive.Content>\n))\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger\n}\n","/**\n * The Quantum project uses [Bootstrap Icons](https://icons.getbootstrap.com/)\n * provided by the [react-icons library](https://react-icons.github.io/react-icons/icons/bs/),\n * plus some custom icons stored in the \"build\" subfolder.\n *\n * The `react-icons` library provides React icon components of many famous icon libraries.\n * Here we are importing all the Bootstrap (\"bs\") ones.\n *\n * All these icons start with the \"Bs\" prefix (e.g. BsChevronDown, BsSearch, BsCircleFill, etc.).\n */\n\nexport type { IconType } from 'react-icons'\n\nexport * from 'react-icons/bs'\nexport * from './build/open-source.icon'\n","import { IconType } from 'react-icons'\n\nexport const OpenSourceIcon: IconType = props => (\n <svg viewBox=\"0 0 25 26\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g id=\"open-source\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12.25 0.0669873C12.4047 -0.0223291 12.5953 -0.0223291 12.75 0.0669873L24.2391 6.70019C24.3938 6.7895 24.4891 6.95457 24.4891 7.1332V20.3996C24.4891 20.5782 24.3938 20.7433 24.2391 20.8326L15.4062 25.9322V19.0104L18.3695 17.2995C18.4469 17.2548 18.4945 17.1723 18.4945 17.083V10.4498C18.4945 10.3605 18.4469 10.278 18.3695 10.2333L12.625 6.91669C12.5477 6.87204 12.4524 6.87204 12.375 6.91669L6.63051 10.2333C6.55316 10.278 6.50551 10.3605 6.50551 10.4498V17.083C6.50551 17.1723 6.55316 17.2548 6.63051 17.2995L9.65625 19.0464V25.9683L0.760986 20.8326C0.606286 20.7433 0.510986 20.5782 0.510986 20.3996V7.1332C0.510986 6.95457 0.606286 6.7895 0.760986 6.70019L12.25 0.0669873Z\"\n fill=\"currentColor\"\n />\n </g>\n </svg>\n)\n","import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from 'react'\nimport { Slot, Slottable } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst buttonVariants = cva(\n [\n 'inline-flex items-center justify-center',\n 'rounded-lg',\n 'transition-colors',\n 'focus-visible:outline-hidden',\n 'disabled:pointer-events-none',\n 'cursor-pointer',\n 'disabled:cursor-default'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'border-0',\n 'bg-button-primary',\n 'text-white',\n 'border-button-primary',\n 'hover:bg-button-primary-hover',\n 'hover:border-button-primary-hover',\n 'focus:bg-button-primary-focus',\n 'focus:shadow-brandGreen',\n 'active:border-transparent',\n 'active:shadow-none',\n 'disabled:bg-button-primary-disabled',\n 'disabled:text-foreground-subtle',\n 'disabled:border-button-primary-disabled',\n 'selected:text-foreground-selected',\n 'dark:bg-button-primary-dark',\n 'dark:border-button-primary-dark',\n 'dark:text-foreground-inverse-dark',\n 'dark:hover:bg-button-primary-hover-dark',\n 'dark:hover:border-button-primary-hover-dark',\n 'dark:focus:bg-button-primary-dark',\n 'dark:focus:border-brandGreen-30',\n 'dark:active:border-transparent',\n 'dark:disabled:bg-button-primary-disabled-dark',\n 'dark:disabled:text-foreground-subtle',\n 'dark:disabled:border-button-primary-disabled-dark'\n ],\n secondary: [\n 'border-2',\n 'bg-white',\n 'text-grey-900',\n 'border-border',\n 'hover:bg-button-secondary-hover',\n 'hover:border-button-secondary-border-hover',\n 'focus:shadow-brandGreen',\n 'active:border-border',\n 'active:shadow-none',\n 'disabled:bg-button-secondary-disabled',\n 'disabled:border-button-secondary-border-disabled',\n 'disabled:text-foreground-subtle',\n 'dark:bg-button-secondary-dark',\n 'dark:border-button-secondary-border-dark',\n 'dark:text-white',\n 'dark:hover:bg-button-secondary-hover-dark',\n 'dark:hover:border-button-secondary-border-hover-dark',\n 'dark:focus:bg-button-secondary-dark',\n 'dark:focus:shadow-brandGreen10',\n 'dark:active:border-button-secondary-border-dark',\n 'dark:active:shadow-none',\n 'dark:disabled:bg-button-secondary-disabled-dark',\n 'dark:disabled:text-foreground-subtle-dark',\n 'dark:disabled:border-button-secondary-disabled-dark'\n ],\n tertiary: [\n 'bg-transparent border-transparent',\n 'text-foreground',\n 'dark:text-white',\n 'hover:bg-button-tertiary-hover',\n 'hover:dark:text-button-tertiary-hover-dark',\n 'focus:bg-button-tertiary-focus',\n 'focus:shadow-brandGreen',\n 'active:bg-button-tertiary-hover',\n 'active:shadow-none',\n 'disabled:text-foreground-subtle'\n ],\n success: [\n 'bg-button-success',\n 'text-white',\n 'hover:bg-button-success-hover',\n 'focus:bg-button-success-focus',\n 'focus:shadow-green',\n 'active:shadow-none',\n 'disabled:bg-button-success-disabled',\n 'disabled:text-foreground-subtle'\n ],\n danger: [\n 'bg-button-danger',\n 'text-white',\n 'hover:bg-button-danger-hover',\n 'focus:bg-button-danger',\n 'focus:shadow-red',\n 'active:shadow-none',\n 'disabled:bg-button-danger-disabled',\n 'disabled:text-foreground-subtle'\n ]\n },\n size: {\n lg: ['px-4', 'py-3', 'text-base'],\n md: ['p-2.5', 'text-sm'],\n sm: ['px-2.5', 'py-2', 'text-sm'],\n xs: ['px-2', 'py-2.5', 'text-xs']\n }\n },\n compoundVariants: [\n { variant: 'secondary', size: 'lg', class: 'py-2.5' },\n { variant: 'secondary', size: 'md', class: 'py-2' },\n { variant: 'secondary', size: 'sm', class: 'py-1.5' },\n { variant: 'secondary', size: 'xs', class: 'py-2' }\n ],\n defaultVariants: {\n variant: 'primary',\n size: 'md'\n }\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n leftSideChild?: React.ReactNode\n rightSideChild?: React.ReactNode\n leftSideClassName?: string\n rightSideClassName?: string\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n children: any\n asChild?: boolean\n onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant,\n children,\n size,\n leftSideChild,\n rightSideChild,\n leftSideClassName,\n rightSideClassName,\n disabled = false,\n asChild = false,\n onClick,\n ...props\n },\n ref\n ) => {\n const sideChildClassed =\n 'inline-flex items-center justify-center text-inherit text-justify'\n\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n className={cn(buttonVariants({ variant, size }), className)}\n ref={ref}\n disabled={disabled}\n onClick={e => {\n if (onClick) onClick(e)\n }}\n {...props}\n >\n {leftSideChild ? (\n <div className={cn(sideChildClassed, 'mr-3', leftSideClassName)}>\n {leftSideChild}\n </div>\n ) : (\n <></>\n )}\n <Slottable>{asChild ? children : <div>{children}</div>}</Slottable>\n {rightSideChild ? (\n <div className={cn(sideChildClassed, 'ml-3', rightSideClassName)}>\n {rightSideChild}\n </div>\n ) : (\n <></>\n )}\n </Comp>\n )\n }\n)\n\nButton.displayName = 'Button'\n\nexport { Button, buttonVariants }\n","import React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\n\nconst buttonGroupVariants = cva(\n [\n 'inline-flex',\n '[&>*]:flex',\n '[&>*]:rounded-none',\n 'p-0',\n '[&>*]:gap-[10px]',\n '[&>*]:items-center',\n '[&>*]:justify-center',\n '[&>*]:px-3',\n '[&>*:focus]:shadow-none',\n '[&>*]:outline-hidden',\n '[&>*:focus-visible]:outline-2',\n '[&>*:focus-visible]:-outline-offset-2',\n '[&>*:focus-visible]:outline-current',\n 'items-start',\n 'rounded-lg',\n 'overflow-hidden'\n ],\n {\n variants: {\n variant: {\n primary: [\n '[&>*:focus]:bg-secondary-100',\n '[&>*:focus]:text-foreground',\n 'dark:[&>*]:bg-button-primary-dark',\n 'dark:[&>*]:text-foreground-inverse-dark',\n 'dark:[&>*:hover]:bg-button-primary-hover',\n 'dark:[&>*:hover]:text-foreground-dark',\n 'dark:[&>*:focus]:bg-button-primary-focus',\n 'dark:[&>*:focus]:text-foreground-dark'\n ],\n secondary: [\n 'bg-background',\n '[&>*]:bg-white [&>*]:text-grey-900',\n '[&>*:focus]:bg-button-secondary-focus',\n '[&>*:hover]:bg-button-secondary-hover',\n 'dark:[&>*:hover]:bg-button-secondary-hover-dark',\n 'dark:[&>*:hover]:text-foreground-dark',\n 'dark:[&>*:focus]:bg-button-secondary-focus-dark',\n 'dark:[&>*:focus]:text-foreground-dark',\n '[&>*:disabled]:bg-button-secondary-disabled [&>*:disabled]:border-button-secondary-border-disabled [&>*:disabled]:text-foreground-subtle'\n ]\n },\n orientation: {\n horizontal: ['inline-flex'],\n vertical: ['flex-col', '[&>*]:self-stretch']\n },\n size: {\n md: ['[&>*]:py-2.5'],\n sm: ['[&>*]:py-2']\n }\n },\n defaultVariants: {\n orientation: 'horizontal',\n variant: 'primary',\n size: 'md'\n }\n }\n)\n\ninterface ButtonGroupProps\n extends React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof buttonGroupVariants> {}\n\nconst ButtonGroup = React.forwardRef<HTMLDivElement, ButtonGroupProps>(\n (\n { className, orientation, variant, size, role = 'group', ...props },\n ref\n ) => {\n return (\n <div\n role={role}\n className={cn(\n buttonGroupVariants({ orientation, variant, size }),\n className\n )}\n {...props}\n ref={ref}\n ></div>\n )\n }\n)\nButtonGroup.displayName = 'ButtonGroup'\nexport { ButtonGroup, type ButtonGroupProps }\n","'use client'\n\nimport * as React from 'react'\nimport { Chevron, DayPicker } from 'react-day-picker'\nimport { cn } from '@/lib/utils'\nimport { BsArrowLeft, BsArrowRight } from '@/assets'\nimport { cva } from 'class-variance-authority'\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>\n\n/**\n * Keys match react-day-picker v9's `UI`, `DayFlag` and `SelectionState` enums.\n * v9 moved the day modifiers (`selected`, `outside`, the range states, ...)\n * onto the `<td>` that `day` styles, and introduced `day_button` for the\n * `<button>` inside it — so the selection surface lives on `day`'s element and\n * `day_button` only carries sizing, typography and focus.\n */\nconst calendarVariants = cva([], {\n variants: {\n component: {\n months: ['relative', 'flex', 'flex-row', 'gap-4'],\n month: ['flex', 'w-full', 'flex-col', 'gap-2'],\n month_caption: ['flex', 'h-7', 'items-center', 'justify-center'],\n caption_label: ['text-sm', 'font-medium'],\n // v9 renders `nav` as a sibling of the months rather than inside the\n // caption, so it is positioned over the caption row of `months` here.\n nav: [\n 'absolute',\n 'inset-x-0',\n 'top-0',\n 'z-10',\n 'flex',\n 'h-7',\n 'items-center',\n 'justify-between',\n 'bg-transparent',\n 'dark:text-foreground-muted-dark'\n ],\n nav_button: [\n 'flex',\n 'h-7',\n 'w-7',\n 'items-center',\n 'justify-center',\n 'rounded-lg',\n 'bg-transparent',\n 'p-0',\n 'outline-hidden',\n 'focus-visible:shadow-blue',\n 'aria-disabled:opacity-50'\n ],\n weekday: [\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'px-1',\n 'py-2',\n 'w-9',\n 'font-semibold',\n 'text-xs',\n 'h-[34px]'\n ],\n day: [\n [\n 'w-9',\n 'p-0',\n 'flex',\n 'flex-col',\n 'items-center',\n 'text-center',\n 'gap-1',\n 'text-sm',\n 'relative',\n 'rounded-lg'\n ],\n ['focus-within:relative', 'focus-within:z-20']\n ],\n day_button: [\n 'rounded-lg',\n 'px-1',\n 'w-full',\n 'py-2',\n 'h-[34px]',\n 'flex',\n 'flex-col',\n 'justify-center',\n 'text-sm',\n 'font-bold',\n 'items-center',\n 'shrink-0',\n 'focus-visible:shadow-blue',\n 'outline-hidden',\n 'disabled:cursor-not-allowed'\n ],\n selected: [\n 'bg-accent',\n 'text-foreground-inverse',\n 'dark:bg-brandGreen-100',\n 'dark:text-foreground-inverse-dark'\n ],\n outside: ['text-foreground-muted', 'dark:text-foreground-muted-dark'],\n disabled: [\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'opacity-50'\n ]\n }\n }\n})\n\n/**\n * Range days always carry `selected` as well, and both sets land on the same\n * `<td>`. `!` pins the range surface above `selected`'s rather than leaving the\n * winner to the order Tailwind happens to emit the two backgrounds in.\n */\nconst rangeEdge = [\n 'bg-accent!',\n 'text-foreground-inverse!',\n 'dark:bg-blue-400!',\n 'dark:text-foreground-inverse-dark!'\n]\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\n 'p-4 rounded-lg bg-background-alt dark:bg-background-alt-dark dark:text-foreground-inverse shadow-[0_4px_6px_0px_rgba(0,0,0,0.08)] flex w-fit',\n className\n )}\n classNames={{\n months: calendarVariants({ component: 'months' }),\n month: calendarVariants({ component: 'month' }),\n month_caption: calendarVariants({ component: 'month_caption' }),\n caption_label: calendarVariants({ component: 'caption_label' }),\n nav: calendarVariants({ component: 'nav' }),\n button_previous: calendarVariants({ component: 'nav_button' }),\n button_next: calendarVariants({ component: 'nav_button' }),\n month_grid: 'w-full border-collapse',\n weekdays: 'flex',\n weekday: calendarVariants({ component: 'weekday' }),\n week: 'flex w-full',\n day: calendarVariants({ component: 'day' }),\n day_button: calendarVariants({ component: 'day_button' }),\n selected: calendarVariants({ component: 'selected' }),\n range_start: cn(rangeEdge, 'rounded-l-full! rounded-r-none!'),\n range_end: cn(rangeEdge, 'rounded-r-full! rounded-l-none!'),\n range_middle:\n 'rounded-none! bg-grey-400! text-grey-900! dark:bg-accent-alt! dark:text-foreground-inverse!',\n outside: calendarVariants({ component: 'outside' }),\n disabled: calendarVariants({ component: 'disabled' }),\n hidden: 'invisible',\n ...classNames\n }}\n components={{\n Chevron: props => {\n switch (props.orientation) {\n case 'left':\n return (\n <BsArrowLeft className=\"h-5 w-5 fill-current stroke-current\" />\n )\n case 'right':\n return (\n <BsArrowRight className=\"h-5 w-5 fill-current stroke-current\" />\n )\n default:\n return <Chevron {...props} />\n }\n }\n }}\n {...props}\n />\n )\n}\nCalendar.displayName = 'Calendar'\n\nexport { Calendar }\n","import * as React from 'react'\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { cn } from '@/lib/utils'\nimport { BsCheck, BsDash } from '@/assets'\nimport { cva } from 'class-variance-authority'\nconst checkboxVariants = cva([\n [\n 'peer',\n 'h-5 w-5',\n 'p-0.5',\n 'shrink-0',\n 'gap-0',\n 'rounded',\n 'border',\n 'border-border',\n 'bg-background-alt',\n 'disabled:cursor-not-allowed',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n [\n 'data-[state=checked]:border-border',\n 'data-[state=checked]:bg-border',\n 'data-[state=checked]:text-foreground-inverse',\n 'data-[state=indeterminate]:bg-border',\n 'data-[state=indeterminate]:text-foreground-inverse'\n ],\n [\n 'dark:data-[state=unchecked]:bg-background-alt-dark',\n 'dark:data-[state=unchecked]:border-border-dark',\n 'dark:data-[state=checked]:border-border-dark',\n 'dark:data-[state=checked]:bg-border-dark'\n ]\n])\n\ninterface CheckboxProps\n extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {}\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(checkboxVariants(), className)}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-inherit')}\n >\n {(props.checked === true || props.checked === undefined) && (\n <BsCheck className=\"text-inherit stroke-current stroke-1 fill-current\" />\n )}\n {props.checked === 'indeterminate' && (\n <BsDash className=\"text-inherit stroke-current stroke-1 fill-current\" />\n )}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox, type CheckboxProps }\n","import React from 'react'\nimport { cva, VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { BsPlus } from '@/assets'\n\nconst chipVariants = cva(\n [\n [\n 'inline-flex',\n 'rounded-full',\n 'shrink-0',\n 'items-center',\n 'justify-center',\n 'border border-2',\n 'font-semibold',\n 'leading-normal',\n 'text-foreground',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-blue'\n ],\n [\n 'disabled:border-none',\n 'disabled:text-foreground-subtle',\n 'disabled:bg-background-subtle',\n 'dark:disabled:bg-background-subtle-dark',\n 'dark:disabled:text-foreground-subtle-dark'\n ],\n [\n 'data-[active]:bg-foreground',\n 'data-[active]:border-none',\n 'data-[active]:text-foreground-inverse',\n 'dark:data-[active]:bg-foreground-dark',\n 'dark:data-[active]:text-foreground-inverse-dark'\n ]\n ],\n {\n variants: {\n variant: {\n default: [\n 'bg-background',\n 'border-border-subtle',\n 'dark:bg-background-dark',\n 'dark:border-border-subtle-dark',\n 'dark:text-foreground-dark'\n ],\n warning: ['bg-yellow-50', 'border-feedback-yellow'],\n success: ['bg-green-50', 'border-feedback-green'],\n error: ['bg-red-50', 'border-feedback-red'],\n info: ['bg-blue-50', 'border-primary-30', 'dark:border-primary-30']\n },\n size: {\n default: ['text-xs', 'px-2.5', 'py-2 h-[26px]', 'gap-1'],\n lg: ['text-sm', 'pl-4', 'pr-3', 'py-1.5', 'h-[33px]', 'gap-1.5']\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'default'\n }\n }\n)\n\ninterface ChipProps\n extends React.ComponentPropsWithRef<'button'>,\n VariantProps<typeof chipVariants> {\n active?: boolean\n}\n\nconst Chip = React.forwardRef<HTMLButtonElement, ChipProps>(\n (\n { variant, size, children, disabled, onClick, active, type, ...props },\n ref\n ) => {\n return (\n <button\n type={type ?? 'button'}\n onClick={onClick}\n data-active={active || undefined}\n aria-pressed={active === undefined ? undefined : active}\n className={cn(chipVariants({ variant, size }))}\n disabled={disabled}\n ref={ref}\n {...props}\n >\n {children}\n <div\n aria-hidden=\"true\"\n className=\"flex items-center justify-center w-6 h-6 p-2.5\"\n >\n <BsPlus\n className={cn(size == 'lg' ? 'h-4 w-4' : 'h-3 w-3', [\n 'stroke-current',\n 'shrink-0'\n ])}\n />\n </div>\n </button>\n )\n }\n)\n\nChip.displayName = 'Chip'\n\nexport { Chip, ChipProps }\n","import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { Label, type LabelProps } from '../Label'\n\nconst verticalAlignVariants = cva('', {\n variants: {\n varticalAlign: {\n top: 'items-start',\n middle: 'items-center',\n bottom: 'items-end'\n }\n },\n defaultVariants: {\n varticalAlign: 'top'\n }\n})\n\ntype Props = Omit<LabelProps, 'children' | 'align'> &\n VariantProps<typeof verticalAlignVariants> &\n React.PropsWithChildren<{\n label: string\n position?: 'left' | 'right'\n varticalAlign?: 'top' | 'middle' | 'bottom'\n }>\n\nconst ControlLabel: React.FC<Props> = ({\n label,\n position = 'right',\n varticalAlign,\n children,\n htmlFor,\n ...labelProps\n}) => {\n const generatedId = React.useId()\n const onlyChild = React.isValidElement<{ id?: string }>(children)\n ? children\n : null\n const childId = onlyChild?.props.id\n const controlId = htmlFor ?? childId ?? (onlyChild ? generatedId : undefined)\n const control =\n onlyChild && !childId && controlId\n ? React.cloneElement(onlyChild, { id: controlId })\n : children\n\n const labelElement = (align: 'left' | 'right') => (\n <Label {...labelProps} htmlFor={controlId} align={align}>\n {label}\n </Label>\n )\n\n return (\n <div\n className={cn(\n verticalAlignVariants({\n varticalAlign\n }),\n 'flex space-x-2'\n )}\n >\n {position === 'left' && labelElement('right')}\n {control}\n {position === 'right' && labelElement('left')}\n </div>\n )\n}\n\nexport { ControlLabel }\n","'use client'\n\nimport * as React from 'react'\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst labelVariants = cva(\n 'font-medium leading-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-foreground-inverse',\n {\n variants: {\n size: {\n lg: 'text-lg',\n md: 'text-md',\n sm: 'text-sm',\n xs: 'text-xs',\n xl: 'text-xl'\n }\n },\n defaultVariants: {\n size: 'sm'\n }\n }\n)\n\nconst alignVariants = cva('', {\n variants: {\n align: {\n left: 'text-left',\n right: 'text-right'\n }\n },\n defaultVariants: {\n align: 'left'\n }\n})\n\ninterface LabelProps\n extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>,\n VariantProps<typeof labelVariants> {\n hintText?: string\n align?: 'left' | 'right'\n}\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n LabelProps\n>(({ className, size, hintText, align, ...props }, ref) => {\n const label = (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(\n labelVariants({ size }),\n alignVariants({ align }),\n className\n )}\n {...props}\n />\n )\n\n if (hintText) {\n return (\n <div className=\"flex flex-col\">\n {label}\n <div\n className={cn(\n alignVariants({ align }),\n 'font-semibold\ttext-xs text-foreground-muted dark:text-foreground-muted-dark'\n )}\n >\n {hintText}\n </div>\n </div>\n )\n }\n\n return label\n})\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label, LabelProps }\n","import React from 'react'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\nimport { BsX, BsSearch } from '@/assets'\n\nconst leftSideVariants = cva(['flex', 'items-center', 'text-inherit'])\n\nconst rightSideVariants = cva([\n 'flex',\n 'self-center text-inherit',\n 'rounded-xs',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-2',\n 'focus-visible:outline-current'\n])\n\nconst formVariants = cva(\n [\n 'flex',\n 'border',\n 'border-2',\n 'rounded-lg',\n 'overflow-hidden',\n 'p-3',\n 'items-center',\n 'gap-1.5',\n '[&:has(:disabled)]:border-none'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'border-border-subtle',\n 'dark:border-border-subtle-dark',\n 'bg-background-alt',\n 'dark:bg-background-alt-dark',\n 'hover:border-border-hover',\n 'hover:focus-within:border-border-focus',\n 'dark:hover:focus-within:border-border-focus-dark',\n 'focus-within:shadow-brandGreen',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'dark:focus-within:shadow-brandGreen-10'\n ],\n error: [\n 'border-feedback-red',\n 'text-feedback-red',\n 'bg-red-50',\n 'hover:border-red-700',\n 'focus-within:shadow-red'\n ],\n success: [\n 'border-feedback-green',\n 'text-feedback-green',\n 'bg-green-50',\n 'hover:border-green-700',\n 'focus-within:shadow-green'\n ]\n }\n }\n }\n)\n\nconst inputVariants = cva(\n ['flex', 'flex-grow', 'items-center', 'outline-hidden', 'bg-transparent'],\n {\n variants: {\n variant: {\n primary: ['text-foreground', 'dark:text-foreground-dark'],\n error: ['text-feedback-red'],\n success: ['text-green-700']\n }\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n)\n\ntype InputType =\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'month'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week'\n // eslint-disable-next-line @typescript-eslint/ban-types\n | (string & {})\n\ninterface InputProps extends React.HTMLProps<HTMLInputElement> {\n variant: 'primary' | 'error' | 'success'\n type: InputType\n formClassName?: string\n leftSideClassName?: string\n leftSideChild?: React.ReactNode\n rightSideChild?: React.ReactNode\n labelText?: string\n helpText?: string\n clearLabel?: string\n onClear: () => void\n}\n\nconst convertTypeToLeftComponent = (type: InputType) => {\n const mapping: Partial<Record<InputType, React.ReactNode>> = {\n search: <BsSearch aria-hidden=\"true\" />\n }\n return mapping[type] ?? null\n}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n type,\n id,\n className,\n formClassName,\n leftSideClassName,\n variant,\n leftSideChild,\n rightSideChild,\n labelText,\n helpText,\n clearLabel = 'Clear input',\n onClear,\n 'aria-describedby': ariaDescribedby,\n ...props\n },\n ref\n ) => {\n const generatedId = React.useId()\n const inputId = id ?? generatedId\n const helpTextId = `${inputId}-helptext`\n const describedBy =\n [ariaDescribedby, helpText ? helpTextId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n const leftSideComponent = leftSideChild ?? convertTypeToLeftComponent(type)\n const rightSideComponent = rightSideChild ?? (\n <BsX strokeWidth={0.6} aria-hidden=\"true\" />\n )\n\n const field = (\n <div className={cn(formVariants({ variant }), formClassName)}>\n {leftSideComponent && (\n <div className={cn(leftSideVariants(), leftSideClassName)}>\n {leftSideComponent}\n </div>\n )}\n <input\n id={inputId}\n type={type}\n className={cn(inputVariants({ variant }), className)}\n ref={ref}\n aria-describedby={describedBy}\n {...props}\n />\n <div className=\"input-right-side\"></div>\n <button\n type=\"button\"\n onClick={onClear}\n aria-label={clearLabel}\n className={rightSideVariants()}\n >\n {rightSideComponent}\n </button>\n </div>\n )\n\n if (!labelText && !helpText) {\n return field\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n htmlFor={inputId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n {field}\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nInput.displayName = 'Input'\n\nexport { Input, InputProps, formVariants }\n","import React from 'react'\nimport { cn } from '@/lib/utils'\nimport { IconType } from '@/assets'\n\ninterface Props extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n selected?: boolean\n icon?: IconType\n}\n\nconst Link = React.forwardRef<HTMLAnchorElement, Props>(\n (\n {\n className,\n onClick,\n selected = false,\n children,\n icon: Icon,\n 'aria-current': ariaCurrent,\n ...props\n },\n ref\n ) => {\n const selectedClasses =\n 'cursor-default text-white dark:text-foreground-inverse-dark bg-background-inverse dark:bg-background-inverse-dark'\n const hoverClasses =\n 'hover:bg-grey-100 hover:underline dark:hover:bg-grey-700'\n const focusClasses =\n 'focus:shadow-brandGreen focus:underline dark:focus:shadow-brandGreen-10'\n const unselectedFocusClasses = 'focus:bg-grey-100 dark:focus:bg-grey-700'\n\n return (\n <a\n className={cn(\n 'flex items-center space-x-3',\n 'py-1 px-1.5',\n 'rounded',\n 'cursor-pointer',\n 'outline-hidden',\n 'dark:text-white',\n focusClasses,\n selected\n ? selectedClasses\n : `${hoverClasses} ${unselectedFocusClasses}`,\n className\n )}\n ref={ref}\n aria-current={ariaCurrent ?? (selected ? 'page' : undefined)}\n onClick={e => {\n if (selected) {\n e.preventDefault()\n } else {\n onClick && onClick(e)\n }\n }}\n {...props}\n >\n {Icon ? <Icon className=\"mr-1\" aria-hidden=\"true\" /> : null}\n {children}\n </a>\n )\n }\n)\n\nLink.displayName = 'Link'\n\nexport { Link }\n","'use client'\n\nimport * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { BsXLg } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst Modal = DialogPrimitive.Root\n\nconst ModalTrigger = DialogPrimitive.Trigger\n\nconst ModalPortal = DialogPrimitive.Portal\n\nconst ModalCloseFooter = DialogPrimitive.Close\n\nconst ModalOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn('fixed inset-0 z-50 bg-background/80', className)}\n {...props}\n />\n))\nModalOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst ModalContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <ModalPortal>\n <ModalOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 shadow-lg bg-background dark:bg-foreground duration-200 sm:rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n </ModalPortal>\n))\nModalContent.displayName = DialogPrimitive.Content.displayName\n\nconst headerVariants = cva(\n [\n 'flex',\n 'items-center',\n 'justify-between',\n 'p-6',\n 'space-y-1.5',\n 'text-center',\n 'sm:text-left',\n 'border-border-subtle',\n 'dark:border-border-subtle-dark'\n ],\n {\n variants: {\n variant: {\n default: ['border-b'],\n form: ['pb-0', 'border-b-0']\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nconst ModalHeader = ({\n className,\n variant,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof headerVariants>) => (\n <div className={cn(headerVariants({ variant, className }))} {...props} />\n)\n\nModalHeader.displayName = 'ModalHeader'\n\nconst ModalFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col p-6 pt-0 gap-2.5', className)} {...props} />\n)\nModalFooter.displayName = 'ModalFooter'\n\nconst ModalTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight text-foreground dark:text-foreground-inverse',\n className\n )}\n {...props}\n />\n))\nModalTitle.displayName = DialogPrimitive.Title.displayName\n\nconst ModalClose = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Close>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Close\n ref={ref}\n className={cn(\n 'rounded-xs opacity-70 ring-offset-background transition-opacity disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted',\n 'hover:opacity-100 focus-visible:opacity-100',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current',\n className\n )}\n {...props}\n >\n <div\n aria-hidden=\"true\"\n className=\"text-foreground dark:text-foreground-inverse\"\n >\n <BsXLg className=\"w-5 h-5\" strokeWidth={0.833} />\n </div>\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n))\nModalClose.displayName = 'ModalClose'\n\nconst descriptionVariants = cva(\n [\n 'text-sm',\n 'text-foreground-muted',\n 'border-border-subtle',\n 'dark:border-border-subtle-dark'\n ],\n {\n variants: {\n variant: {\n default: ['border-b'],\n form: ['border-b-0']\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nconst ModalDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> &\n VariantProps<typeof descriptionVariants>\n>(({ className, variant, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(descriptionVariants({ variant, className }))}\n {...props}\n />\n))\nModalDescription.displayName = 'ModalDescription'\n\nexport {\n Modal,\n ModalPortal,\n ModalOverlay,\n ModalClose,\n ModalCloseFooter,\n ModalTrigger,\n ModalContent,\n ModalHeader,\n ModalFooter,\n ModalTitle,\n ModalDescription\n}\n","import React, { useState, useEffect } from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { BsChevronLeft, BsChevronRight } from '@/assets'\n\ninterface PaginationProps {\n currentPage: number\n setCurrentPage: React.Dispatch<React.SetStateAction<number>>\n numberOfItemsPerPage: number\n totalNumberOfFilteredItems: number\n label?: string\n previousLabel?: string\n nextLabel?: string\n pageLabel?: (page: number) => string\n}\n\nconst PaginationVariants = cva([\n '[&>*]:flex',\n '[&>*]:items-center',\n '[&>*]:justify-center',\n 'w-fit'\n])\n\nconst PageNumberStyles = cva([\n 'min-w-40',\n 'max-w-40',\n 'h-10',\n 'px-4',\n 'py-2',\n 'rounded-xs',\n 'text-foreground-muted',\n 'active:bg-accent',\n 'active:text-primary-10',\n 'dark:hover:bg-background-dark',\n 'dark:active:bg-primary-30',\n 'dark:active:text-grey-900'\n])\n\nconst PageNumberActiveStyles = cva([\n 'bg-accent',\n 'text-primary-10',\n 'hover:bg-accent',\n 'hover:text-primary-10',\n 'dark:bg-primary-30',\n 'dark:text-grey-900',\n 'dark:hover:bg-primary-30',\n 'dark:hover:text-grey-900'\n])\n\ninterface PaginationProps\n extends React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof PaginationVariants> {}\n\nexport const Pagination = React.forwardRef<HTMLDivElement, PaginationProps>(\n (\n {\n className,\n currentPage,\n setCurrentPage,\n numberOfItemsPerPage,\n totalNumberOfFilteredItems,\n label = 'Pagination',\n previousLabel = 'Go to previous page',\n nextLabel = 'Go to next page',\n pageLabel = page => `Go to page ${page}`,\n ...props\n },\n ref\n ) => {\n const currentRowsLength = totalNumberOfFilteredItems ?? 0\n\n const totalPages = React.useMemo(() => {\n return Math.ceil(\n currentRowsLength > 0 ? currentRowsLength / numberOfItemsPerPage : 0\n )\n }, [currentRowsLength, numberOfItemsPerPage])\n\n const allPages = [...Array(totalPages + 1).keys()].slice(1)\n const [pageNumbers, setPageNumbers] = useState(allPages)\n const [showLeftDots, setShowLeftDots] = useState(false)\n const [showRightDots, setShowRightDots] = useState(false)\n const noOfSiblings = 1\n const noOfPagesShown = noOfSiblings * 2 + 5\n\n useEffect(() => {\n if (totalPages <= noOfPagesShown) {\n setPageNumbers(allPages)\n setShowRightDots(false)\n setShowLeftDots(false)\n } else if (currentPage <= noOfPagesShown - 3) {\n const pages = allPages.slice(0, noOfPagesShown - 2)\n pages.push(totalPages)\n setPageNumbers(pages)\n setShowRightDots(true)\n setShowLeftDots(false)\n } else if (\n noOfPagesShown - 3 < currentPage &&\n currentPage < totalPages - 3\n ) {\n const pages = [1]\n const start = Math.max(2, currentPage - noOfSiblings)\n const end = Math.min(totalPages - 1, currentPage + noOfSiblings)\n for (let i = start; i <= end; i++) {\n pages.push(i)\n }\n pages.push(totalPages)\n setPageNumbers(pages)\n setShowRightDots(true)\n setShowLeftDots(true)\n } else if (currentPage >= totalPages - 3) {\n const pages = allPages.slice(-noOfPagesShown + 2)\n pages.unshift(1)\n setPageNumbers(pages)\n setShowRightDots(false)\n setShowLeftDots(true)\n }\n }, [currentPage, totalPages])\n\n const goToNextPage = () => {\n if (currentPage !== totalPages) setCurrentPage(currentPage + 1)\n }\n\n const goToPrevPage = () => {\n if (currentPage !== 1) setCurrentPage(currentPage - 1)\n }\n return (\n <nav\n aria-label={label}\n className={cn(PaginationVariants(), className)}\n ref={ref}\n {...props}\n >\n <ul>\n <li className=\"hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs\">\n <button\n type=\"button\"\n aria-label={previousLabel}\n onClick={goToPrevPage}\n disabled={currentPage === 1 || totalPages === 0}\n >\n <BsChevronLeft\n aria-hidden=\"true\"\n className={\n 'w-3 h-9 pt-3 pb-3 -mb-1 text-foreground dark:text-foreground-dark'\n }\n />\n </button>\n </li>\n\n {pageNumbers.map(pgNumber => (\n <React.Fragment key={pgNumber}>\n {pgNumber === totalPages && showRightDots ? (\n <li\n aria-hidden=\"true\"\n className=\"flex items-center px-4 min-w-40 max-w-40 text-foreground-muted\"\n >\n ...\n </li>\n ) : null}\n\n <li>\n <button\n type=\"button\"\n aria-label={pageLabel(pgNumber)}\n aria-current={currentPage === pgNumber ? 'page' : undefined}\n onClick={() => setCurrentPage(pgNumber)}\n className={cn(\n PageNumberStyles(),\n currentPage === pgNumber && PageNumberActiveStyles()\n )}\n >\n <div className=\"text-sm\">{pgNumber}</div>\n </button>\n </li>\n\n {pgNumber === 1 && showLeftDots ? (\n <li\n aria-hidden=\"true\"\n className=\"flex items-center px-4 max-w-40 min-w-40 text-foreground-muted\"\n >\n ...\n </li>\n ) : null}\n </React.Fragment>\n ))}\n\n <li className=\"hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs\">\n <button\n type=\"button\"\n aria-label={nextLabel}\n onClick={goToNextPage}\n disabled={currentPage === totalPages || totalPages === 0}\n >\n <BsChevronRight\n aria-hidden=\"true\"\n className={\n 'w-3 h-9 py-3 -mb-1 text-foreground dark:text-foreground-dark'\n }\n />\n </button>\n </li>\n </ul>\n </nav>\n )\n }\n)\n\nPagination.displayName = 'Pagination'\n","import React, { useState } from 'react'\nimport { cva } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\nimport { BsEye, BsEyeSlash } from '@/assets'\n\nimport { formVariants } from '../Input'\n\nconst toggleMaskVariants = cva([\n 'flex',\n 'self-center text-inherit',\n 'rounded-xs',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-2',\n 'focus-visible:outline-current'\n])\n\nconst passwordVariants = cva(\n ['flex', 'flex-grow', 'items-center', 'outline-hidden', 'bg-transparent'],\n {\n variants: {\n variant: {\n primary: ['text-foreground', 'dark:text-foreground-dark'],\n error: ['text-feedback-red'],\n success: ['text-green-700']\n }\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n)\n\ninterface PasswordProps extends React.HTMLProps<HTMLInputElement> {\n formClassName?: string\n variant?: 'primary' | 'error' | 'success'\n toggleMask?: boolean\n labelText?: string\n helpText?: string\n showLabel?: string\n hideLabel?: string\n}\n\nconst Password = React.forwardRef<HTMLInputElement, PasswordProps>(\n (\n {\n id,\n className,\n formClassName,\n variant = 'primary',\n toggleMask = true,\n labelText,\n helpText,\n showLabel = 'Show password',\n hideLabel = 'Hide password',\n 'aria-describedby': ariaDescribedby,\n ...props\n },\n ref\n ) => {\n const [isMaskOn, setIsMaskOn] = useState(true)\n\n const generatedId = React.useId()\n const inputId = id ?? generatedId\n const helpTextId = `${inputId}-helptext`\n const describedBy =\n [ariaDescribedby, helpText ? helpTextId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n const onToggleMask = () => setIsMaskOn(isMaskOn => !isMaskOn)\n\n const field = (\n <div className={cn(formVariants({ variant }), formClassName)}>\n <input\n id={inputId}\n type={isMaskOn ? 'password' : 'text'}\n className={cn(passwordVariants({ variant }), className)}\n ref={ref}\n aria-describedby={describedBy}\n {...props}\n />\n <div className=\"input-right-side\"></div>\n {toggleMask && (\n <button\n type=\"button\"\n onClick={onToggleMask}\n aria-label={isMaskOn ? showLabel : hideLabel}\n aria-pressed={!isMaskOn}\n aria-controls={inputId}\n className={toggleMaskVariants()}\n >\n {isMaskOn ? (\n <BsEye aria-hidden=\"true\" />\n ) : (\n <BsEyeSlash aria-hidden=\"true\" />\n )}\n </button>\n )}\n </div>\n )\n\n if (!labelText && !helpText) {\n return field\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n htmlFor={inputId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n {field}\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nPassword.displayName = 'Password'\n\nexport { Password, PasswordProps }\n","'use client'\n\nimport * as React from 'react'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\nimport * as ScrollArea from '@radix-ui/react-scroll-area'\n\nimport { cn } from '@/lib/utils'\n\nconst popoverVariants = cva([\n 'z-50',\n 'border border-2 border-border-subtle dark:border-border-dark',\n 'rounded-lg',\n 'bg-background dark:bg-background-dark',\n 'text-foreground text-sm font-normal dark:text-white',\n 'shadow',\n 'outline-hidden',\n 'min-w-72',\n 'pl-2 pr-[20px] py-3'\n])\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverClose = PopoverPrimitive.Close\n\nexport interface PopoverProps\n extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>,\n VariantProps<typeof popoverVariants> {}\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(\n (\n { className, align = 'center', sideOffset = 4, children, ...props },\n ref\n ) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(popoverVariants(), className)}\n {...props}\n >\n {children}\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n )\n)\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\ntype PopoverScrollAreaProps = React.PropsWithChildren<{\n className?: string\n}>\n\nconst PopoverScrollArea: React.FC<PopoverScrollAreaProps> = ({\n className,\n children\n}) => {\n return (\n <ScrollArea.Root className={cn('w-full h-full', className)} type=\"auto\">\n <ScrollArea.Viewport className=\"w-full h-full\">\n {children}\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar\n orientation=\"vertical\"\n className=\"w-3 pr-1 py-2 -mr-[20px]\"\n >\n <ScrollArea.Thumb className=\"bg-grey-200 w-2 rounded-lg\" />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n )\n}\n\ninterface PopoverSeparatorProps\n extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {\n fullLength?: boolean\n}\n\nconst PopoverSeparator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n PopoverSeparatorProps\n>(\n (\n { className, orientation = 'horizontal', fullLength = false, ...props },\n ref\n ) => (\n <div className=\"w-full\">\n <SeparatorPrimitive.Root\n ref={ref}\n decorative\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-border-subtle dark:bg-border-dark',\n orientation === 'horizontal' ? 'h-[1px] w-fill' : 'h-fill w-[1px]',\n fullLength && orientation === 'horizontal' ? '-ml-2 -mr-[20px]' : '',\n className\n )}\n {...props}\n />\n </div>\n )\n)\nPopoverSeparator.displayName = SeparatorPrimitive.Root.displayName\n\ntype PopoverHeaderProps = React.PropsWithChildren<{\n className?: string\n}>\n\nconst PopoverHeader: React.FC<PopoverHeaderProps> = ({\n className,\n children\n}) => {\n return (\n <>\n <div className={cn('w-full pb-4', className)}>{children}</div>\n <PopoverSeparator fullLength />\n </>\n )\n}\n\ntype PopoverFooterProps = React.PropsWithChildren<{\n className?: string\n}>\n\nconst PopoverFooter: React.FC<PopoverFooterProps> = ({\n className,\n children\n}) => {\n return (\n <div className=\"w-full -mb-3\">\n <PopoverSeparator fullLength />\n <div className={cn('py-2', className)}>{children}</div>\n </div>\n )\n}\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverScrollArea,\n PopoverHeader,\n PopoverFooter,\n PopoverSeparator,\n PopoverClose\n}\n","import * as React from 'react'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\n\nimport { cn } from '@/lib/utils'\n\ntype RadioGroupProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n>\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n RadioGroupProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn('flex flex-col space-y-3', className)}\n {...props}\n ref={ref}\n />\n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nexport { RadioGroup, type RadioGroupProps }\n","import * as React from 'react'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\nimport { BsCircleFill } from '@/assets'\n\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n>\n\nconst radioVariant = cva([\n [\n 'h-5 w-5',\n 'rounded-full',\n 'border-[0.533px]',\n 'border-border',\n 'bg-background-alt',\n 'disabled:opacity-50',\n 'disabled:cursor-not-allowed',\n 'text-foreground-inverse',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n ['data-[state=checked]:border-border', 'data-[state=checked]:bg-border'],\n [\n 'dark:bg-background-alt-dark',\n 'dark:border-border-dark',\n 'dark:data-[state=checked]:bg-border-dark'\n ]\n])\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n RadioGroupItemProps\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(radioVariant(), className)}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <BsCircleFill\n size=\"8\"\n className=\"text-inherit stroke-current stroke-1 fill-current\"\n />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroupItem as Radio, RadioGroupItemProps }\n","'use client'\n\nimport * as React from 'react'\nimport * as SelectPrimitive from '@radix-ui/react-select'\n\nimport { cn } from '@/lib/utils'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport { BsChevronDown } from '@/assets'\nimport * as ScrollArea from '@radix-ui/react-scroll-area'\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectPortal = SelectPrimitive.Portal\n\nconst triggerVariants = cva(\n [\n [\n 'flex',\n 'w-full',\n 'border border-[2px]',\n 'text-foreground',\n 'items-center',\n 'justify-between',\n 'rounded-lg',\n 'px-3',\n 'py-2',\n 'text-sm',\n 'focus:outline-hidden',\n 'focus-visible:shadow-blue',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n '[&>span]:line-clamp-1'\n ]\n ],\n {\n variants: {\n variant: {\n default: [\n 'text-foreground',\n 'border-border-subtle',\n 'bg-grey-100',\n 'hover:border-border-hover',\n 'hover:text-foreground',\n 'focus-visible:shadow-brandGreen',\n 'dark:bg-background-alt-dark',\n 'dark:border-border-subtle-dark',\n 'dark:text-foreground-muted-dark',\n 'data-[placeholder]:text-foreground-muted',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n error: [\n 'bg-red-50',\n 'border-feedback-red',\n 'hover:border-red-700',\n 'focus-visible:shadow-red',\n 'text-red-700'\n ],\n success: [\n 'bg-green-50',\n 'border-feedback-green',\n 'hover:border-green-700',\n 'focus-visible:shadow-green',\n 'text-green-700'\n ]\n },\n size: {\n sm: ['h-[37px]'],\n lg: ['h-[42px]']\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'sm'\n }\n }\n)\n\nexport interface TriggerProps\n extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>,\n VariantProps<typeof triggerVariants> {}\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n TriggerProps\n>(({ variant, size, className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(triggerVariants({ variant, size }), className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild className=\"ml-6\">\n <BsChevronDown className=\"h-2 w-2\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst contentVariants = cva([\n 'relative',\n 'z-50',\n 'min-w-[8rem]',\n 'bg-background',\n 'rounded-lg',\n 'border border-[2px]',\n 'border-border-subtle',\n 'text-foreground',\n 'shadow',\n 'data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2',\n 'data-[side=top]:slide-in-from-bottom-2',\n 'dark:bg-background-dark',\n 'dark:border-border-subtle-dark',\n 'dark:text-foreground-dark'\n])\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n contentVariants(),\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n {...props}\n >\n <ScrollArea.Root className=\"w-full h-full\" type=\"auto\">\n <SelectPrimitive.Viewport\n asChild\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'max-h-[var(--radix-select-content-available-height)] w-full min-w-[var(--radix-select-trigger-width)]'\n )}\n >\n <ScrollArea.Viewport\n className=\"w-full h-full\"\n style={{ overflowY: 'auto' }}\n >\n {children}\n </ScrollArea.Viewport>\n </SelectPrimitive.Viewport>\n <ScrollArea.Scrollbar orientation=\"vertical\" className=\"w-3 pr-1 py-2\">\n <ScrollArea.Thumb className=\"bg-grey-200 w-2 rounded-lg\" />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-2 px-4 text-sm font-semibold', className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst itemVariants = cva([\n [\n 'relative',\n 'flex',\n 'w-full',\n 'cursor-default',\n 'select-none',\n 'items-center',\n 'py-2',\n 'px-4',\n 'text-sm',\n 'outline-hidden',\n 'data-[disabled]:pointer-events-none',\n 'data-[disabled]:opacity-50',\n 'hover:bg-background-alt',\n 'data-[highlighted]:bg-background-alt',\n 'data-[highlighted]:outline-2',\n 'data-[highlighted]:-outline-offset-2',\n 'data-[highlighted]:outline-current',\n 'focus-visible:shadow-brandGreen'\n ],\n [\n 'dark:focus-visible:shadow-brandGreen-10',\n 'dark:hover:bg-background-alt-dark',\n 'dark:data-[highlighted]:bg-background-alt-dark'\n ]\n])\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(itemVariants(), className)}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\n '-mx-1 my-1 h-px bg-border-subtle dark:bg-border-subtle-dark',\n className\n )}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectPortal\n}\n","import { BsCircleFill } from '@/assets'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\ninterface StepProps {\n selected: 'true' | 'false'\n className?: string\n}\n\nconst stepVariant = cva([\n 'text-inherit',\n 'fill-current',\n 'text-accent-alt',\n 'dark:text-accent-alt-dark',\n 'hover:text-foreground-subtle',\n 'dark:hover:text-foreground-subtle-dark',\n 'active:text-foreground-muted',\n 'dark:active:text-foreground-muted-dark',\n 'data-[selected=true]:text-secondary-100',\n 'dark:data-[selected=true]:text-accent-dark'\n])\n\nconst Step = ({ selected, className }: StepProps) => {\n return (\n <BsCircleFill\n size=\"8\"\n aria-hidden=\"true\"\n data-selected={selected}\n className={cn(stepVariant(), className)}\n />\n )\n}\n\nexport { Step, type StepProps }\n","import * as React from 'react'\nimport { cva } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { Step } from './Step'\n\nconst stepsVariant = cva([\n 'flex',\n 'text-accent-alt',\n 'space-x-1 ',\n 'content-center items-center'\n])\n\nconst stepButtonVariant = cva([\n 'flex h-6 w-6 items-center justify-center m-0',\n 'rounded-full',\n 'outline-hidden',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-1',\n 'focus-visible:outline-current'\n])\n\ninterface StepsIndicatorProp {\n selectedIndex?: number\n length?: number\n props?: React.DetailedHTMLProps<\n React.HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n >\n name?: string\n onClick?: (i: number) => void\n label?: string\n stepLabel?: (step: number, total: number) => string\n}\n\nconst StepsIndicator = React.forwardRef<HTMLDivElement, StepsIndicatorProp>(\n (\n {\n name = '',\n selectedIndex = 0,\n length = 1,\n onClick,\n label = 'Progress',\n stepLabel = (step, total) => `Step ${step} of ${total}`,\n props\n },\n ref\n ) => {\n const Steps = Array(length)\n .fill(null)\n .map((_, i) => {\n const selected = i === selectedIndex\n return (\n <button\n key={`${i}-step-${name}`}\n type=\"button\"\n aria-label={stepLabel(i + 1, length)}\n aria-current={selected ? 'step' : undefined}\n className={stepButtonVariant()}\n onClick={() => onClick?.(i)}\n >\n <Step selected={selected ? 'true' : 'false'} />\n </button>\n )\n })\n return (\n <div\n ref={ref}\n role=\"group\"\n aria-label={label}\n className={cn(stepsVariant())}\n {...props}\n >\n {Steps}\n </div>\n )\n }\n)\n\nStepsIndicator.displayName = 'StepsIndicator'\n\nexport { StepsIndicator, StepsIndicatorProp }\n","import * as React from 'react'\nimport * as SwitchPrimitives from '@radix-ui/react-switch'\n\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\nconst switchVariants = cva([\n [\n 'peer',\n 'inline-flex',\n 'h-5',\n 'py-0.5',\n 'w-10',\n 'gap-[8px]',\n 'shrink-0',\n 'cursor-pointer',\n 'items-center',\n 'rounded-full',\n 'border-none',\n 'transition-colors ',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'disabled:cursor-not-allowed'\n ],\n [\n 'dark:enabled:data-[state=checked]:bg-accent-dark',\n 'dark:enabled:bg-foreground-subtle-dark',\n 'dark:disabled:bg-grey-200',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n [\n 'enabled:data-[state=checked]:bg-accent',\n 'enabled:bg-foreground-subtle',\n 'disabled:bg-grey-200'\n ]\n])\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(switchVariants(), className)}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn([\n 'pointer-events-none',\n 'block',\n 'h-4',\n 'w-4',\n 'rounded-full',\n 'bg-background',\n 'ring-0',\n 'transition-transform ',\n 'data-[state=checked]:translate-x-[22px]',\n 'data-[state=unchecked]:translate-x-[2px]',\n 'data-[disabled]:bg-grey-300',\n 'dark:bg-black',\n 'dark:data-[disabled]:bg-grey-300'\n ])}\n />\n </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n","import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { VariantProps } from 'class-variance-authority'\nimport { cva } from 'class-variance-authority'\n\nconst tableBodyVariants = cva('bg-background dark:bg-grey-900', {\n variants: {\n variant: {\n zebra: [\n '[&>*:nth-child(even)]:bg-background-subtle',\n 'dark:[&>*:nth-child(even)]:bg-background-subtle-dark'\n ]\n }\n }\n})\n\ninterface TableProps extends React.HTMLAttributes<HTMLTableElement> {\n containerClassName?: string\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n ({ className, containerClassName, ...props }, ref) => (\n <div\n tabIndex={0}\n className={cn(\n 'relative w-full overflow-auto',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current',\n containerClassName\n )}\n >\n <table\n ref={ref}\n className={cn('caption-bottom text-sm dark:text-white', className)}\n {...props}\n />\n </div>\n )\n)\nTable.displayName = 'Table'\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn(\n 'bg-background-subtle dark:bg-background-subtle-dark text-left',\n className\n )}\n {...props}\n />\n))\nTableHeader.displayName = 'TableHeader'\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn('px-4 py-5 leading-[21px] font-bold', className)}\n {...props}\n />\n))\nTableHead.displayName = 'TableHead'\ninterface TableBodyProps\n extends React.HTMLAttributes<HTMLTableSectionElement>,\n VariantProps<typeof tableBodyVariants> {}\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, variant, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(tableBodyVariants({ variant }), className)}\n {...props}\n />\n )\n)\nTableBody.displayName = 'TableBody'\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'h-[50px] border-b-[1px] border-accent-alt dark:border-grey-500 self-stretch items-center gap-2 font-normal text-left',\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = 'TableRow'\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td ref={ref} className={cn('p-4', className)} {...props} />\n))\nTableCell.displayName = 'TableCell'\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4', className)} {...props} />\n))\nTableCaption.displayName = 'TableCaption'\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('bg-primary text-primary-foreground', className)}\n {...props}\n />\n))\nTableFooter.displayName = 'TableFooter'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption\n}\nexport type { TableBodyProps, TableProps }\n","import React from 'react'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\nconst textareaVariants = cva(\n [\n 'flex',\n 'flex-grow',\n 'outline-hidden',\n 'resize-none',\n 'border',\n 'border-2',\n 'rounded-lg',\n 'field-sizing-content',\n 'p-3',\n 'gap-1.5',\n '[&:has(:disabled)]:border-none'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'border-border-subtle',\n 'dark:border-border-subtle-dark',\n 'bg-background-alt',\n 'dark:bg-background-alt-dark',\n 'hover:border-border-hover',\n 'hover:focus-within:shadow-brandGreen',\n 'dark:hover:focus-within:border-border-focus-dark',\n 'focus-within:shadow-brandGreen',\n 'text-foreground',\n 'dark:text-foreground-dark',\n 'dark:focus-within:shadow-brandGreen-10'\n ],\n error: [\n 'border-feedback-red',\n 'text-feedback-red',\n 'bg-red-50',\n 'hover:border-red-700',\n 'focus-within:shadow-red'\n ],\n success: [\n 'border-feedback-green',\n 'text-green-700',\n 'bg-green-50',\n 'hover:border-green-700',\n 'focus-within:shadow-green'\n ],\n disabled: [\n 'bg-background-subtle',\n 'dark:bg-background-subtle-dark',\n 'cursor-not-allowed',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark'\n ]\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n }\n)\n\ninterface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {\n variant: 'primary' | 'error' | 'success' | 'disabled'\n labelText?: string\n helpText?: string\n id?: string\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n className,\n variant,\n labelText,\n helpText,\n id,\n 'aria-describedby': ariaDescribedby,\n ...props\n },\n ref\n ) => {\n const generatedId = React.useId()\n const textareaId = id ?? generatedId\n const helpTextId = `${textareaId}-helptext`\n const describedBy =\n [ariaDescribedby, helpText ? helpTextId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n id={`${textareaId}-label`}\n htmlFor={textareaId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n <textarea\n id={textareaId}\n className={cn(textareaVariants({ variant }), className)}\n ref={ref}\n aria-describedby={describedBy}\n {...props}\n />\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nTextarea.displayName = 'Textarea'\n\nexport { Textarea, TextareaProps, textareaVariants }\n","import * as React from 'react'\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\nconst tooltipVariants = cva([\n [\n 'fill-accent',\n 'bg-accent',\n 'z-50',\n 'overflow-hidden',\n 'rounded',\n 'p-2',\n 'text-xs',\n 'text-center',\n 'text-foreground-inverse',\n 'font-semibold'\n ],\n [\n 'dark:text-foreground-inverse-dark',\n 'dark:bg-accent-dark',\n 'dark:fill-accent-dark'\n ]\n])\n\ninterface TooltipProps {\n children?: React.ReactNode\n side?: TooltipPrimitive.TooltipContentProps['side']\n content?: React.ReactNode\n sideOffset?: number\n}\n\nconst Tooltip = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n TooltipProps\n>(({ children, side, content, sideOffset }, ref) => {\n return (\n <TooltipPrimitive.Provider>\n <TooltipPrimitive.Root delayDuration={100}>\n <TooltipPrimitive.Trigger asChild={React.isValidElement(children)}>\n {children}\n </TooltipPrimitive.Trigger>\n <TooltipPrimitive.Content\n side={side ?? 'top'}\n sideOffset={sideOffset ?? 4}\n className={cn(tooltipVariants())}\n ref={ref}\n >\n {content}\n <TooltipPrimitive.Arrow className={'fill-inherit'} />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Root>\n </TooltipPrimitive.Provider>\n )\n})\n\nTooltip.displayName = 'Tooltip'\n\nexport { Tooltip }\nexport type { TooltipProps }\n","import { cn } from '@/lib/utils'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport React from 'react'\n\nconst websiteFooterVariants = cva(\n ['flex', 'flex-col', 'w-full', 'items-center', 'px-16', 'py-4'],\n {\n variants: {\n size: {\n standard: ['sm:[&>div]:flex-row', '[&>div]:flex-col'],\n sm: [\n '[&>div]:flex-col',\n '[&>div]:items-center',\n '[&>div]:[&>div]:items-center'\n ]\n }\n },\n defaultVariants: { size: 'standard' }\n }\n)\n\nconst footerStatementVariants = cva(\n [\n 'flex',\n 'flex-col',\n 'gap-1',\n 'items-center',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'py-4',\n 'text-sm'\n ],\n {\n variants: {\n size: {\n standard: ['sm:py-8', 'sm:text-base'],\n sm: []\n }\n },\n defaultVariants: { size: 'standard' }\n }\n)\n\nconst linkRowVariants = cva([\n 'flex',\n 'w-full',\n 'justify-between',\n '[&>div]:text-xl',\n '[&>*]:font-normal',\n '[&>*]:text-sm'\n])\n\nconst linkColumnVariants = cva(\n [\n 'flex',\n 'flex-col',\n 'px-8',\n 'pb-6',\n 'gap-2',\n 'dark:text-white',\n '[&>div]:font-semibold',\n '[&>div]:mb-2',\n '[&>div]:text-xl',\n '[&>*]:font-normal',\n '[&>*]:text-sm',\n 'items-center'\n ],\n {\n variants: {\n size: {\n lg: [\n 'sm:gap-3',\n 'sm:[&>div]:text-2xl',\n 'sm:[&>*]:font-normal',\n 'sm:[&>*]:text-sm',\n 'sm:pb-0',\n 'sm:items-start'\n ],\n md: ['sm:items-start', 'sm:pb-0'],\n sm: []\n }\n },\n defaultVariants: {\n size: 'lg'\n }\n }\n)\n\ninterface WebsiteFooterProps\n extends React.ComponentPropsWithoutRef<'footer'>,\n VariantProps<typeof websiteFooterVariants> {}\n\nconst WebsiteFooter = React.forwardRef<HTMLElement, WebsiteFooterProps>(\n ({ className, size, ...props }, ref) => (\n <footer\n className={cn(websiteFooterVariants({ size }), className)}\n {...props}\n ref={ref}\n ></footer>\n )\n)\n\ninterface FooterStatementProps\n extends React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof footerStatementVariants> {}\n\nconst FooterStatement = React.forwardRef<HTMLDivElement, FooterStatementProps>(\n ({ className, size, ...props }, ref) => (\n <div>\n <div\n className={cn(footerStatementVariants({ size }), className)}\n {...props}\n ref={ref}\n ></div>\n </div>\n )\n)\n\ninterface LinkRowProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst LinkRow = React.forwardRef<HTMLDivElement, LinkRowProps>(\n ({ className, ...props }, ref) => (\n <div\n className={cn(linkRowVariants(), className)}\n {...props}\n ref={ref}\n ></div>\n )\n)\n\ninterface LinkColumnProps\n extends React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof linkColumnVariants> {}\n\nconst LinkColumn = React.forwardRef<HTMLDivElement, LinkColumnProps>(\n ({ className, size, title, children, ...props }, ref) => (\n <div\n className={cn(linkColumnVariants({ size }), className)}\n {...props}\n ref={ref}\n >\n {title && <div>{title}</div>}\n {children}\n </div>\n )\n)\n\nexport {\n WebsiteFooter,\n FooterStatement,\n LinkColumn,\n LinkRow,\n type WebsiteFooterProps,\n type FooterStatementProps,\n type LinkColumnProps,\n type LinkRowProps\n}\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,YAAY,wBAAwB;AACpC,SAAS,WAA8B;AACvC,YAAY,WAAW;;;ACJvB;AAAA;AAAA;AAAA;AAaA;AAAA,yBAAc;;;ACRR;AAHC,IAAM,iBAA2B,WACtC,oBAAC,sCAAI,SAAQ,aAAY,OAAM,gCAAiC,QAA/D,EACC,8BAAC,OAAE,IAAG,eACJ;AAAA,EAAC;AAAA;AAAA,IACC,aAAU;AAAA,IACV,aAAU;AAAA,IACV,GAAE;AAAA,IACF,MAAK;AAAA;AACP,GACF,IACF;;;ACZF,SAAS,YAA6B;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;AH0BE,gBAAAA,MAkDE,YAlDF;AAtBF,IAAM,eAAe,IAAI,IAAI;AAAA,EAC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B/IA,0BAAc;","names":["jsx","React","cva","jsx","jsxs","cva","React","cva","jsx","cva","React","cva","jsx","cva","props","React","cva","jsx","jsxs","cva","React","cva","jsx","jsxs","cva","React","React","cva","React","cva","jsx","jsxs","cva","jsx","jsxs","cva","_a","React","cva","jsx","jsxs","cva","React","React","jsx","jsxs","React","Icon","React","cva","jsx","jsxs","cva","React","cva","jsx","jsxs","cva","React","React","useState","cva","jsx","jsxs","cva","React","useState","isMaskOn","React","cva","Fragment","jsx","jsxs","cva","React","jsx","React","RadioGroupPrimitive","cva","jsx","cva","React","cva","ScrollArea","jsx","jsxs","cva","cva","jsx","React","cva","jsx","cva","React","cva","jsx","cva","React","cva","jsx","cva","React","cva","jsx","jsxs","cva","React","React","cva","jsx","jsxs","cva","React","jsx","jsxs","cva","React"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/Accordion/index.tsx","../src/assets/index.ts","../src/assets/build/open-source.icon.tsx","../src/lib/utils.ts","../src/components/Avatar/index.tsx","../src/components/BackLink/index.tsx","../src/components/Breadcrumb/index.tsx","../src/components/Badge/index.tsx","../src/components/Button/index.tsx","../src/components/ButtonGroup/index.tsx","../src/components/Calendar/index.tsx","../src/components/Card/index.tsx","../src/components/Checkbox/index.tsx","../src/components/IconButton/index.tsx","../src/components/Switch/index.tsx","../src/components/CheckboxGroup/CheckboxGroup.tsx","../src/components/choice-group.tsx","../src/components/FormGroup/index.tsx","../src/components/Label/index.tsx","../src/components/CheckboxGroup/CheckboxGroupItem.tsx","../src/components/CodeBlock/index.tsx","../src/components/DateInput/index.tsx","../src/components/Input/index.tsx","../src/components/Chip/index.tsx","../src/components/ControlLabel/index.tsx","../src/components/Link/index.tsx","../src/components/Modal/index.tsx","../src/components/PageHeader/index.tsx","../src/components/Pagination/index.tsx","../src/components/Password/index.tsx","../src/components/Popover/index.tsx","../src/components/Radio/RadioGroup.tsx","../src/components/Radio/RadioGroupItem.tsx","../src/components/Select/index.tsx","../src/components/SortAndShow/index.tsx","../src/components/SplitButton/index.tsx","../src/components/Stats/index.tsx","../src/components/Stepper/index.tsx","../src/components/StepsIndicator/Step.tsx","../src/components/StepsIndicator/StepsIndicator.tsx","../src/components/Subnav/index.tsx","../src/components/Table/index.tsx","../src/components/Tabs/index.tsx","../src/components/Textarea/index.tsx","../src/components/Toast/index.tsx","../src/components/ToggleList/index.tsx","../src/components/Tooltip/index.tsx","../src/components/WebsiteFooter/index.tsx"],"sourcesContent":["export { default as colors } from './colors'\nexport * from './components'\nexport * from './assets'\n","'use client'\n\nimport * as AccordionPrimitive from '@radix-ui/react-accordion'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { BsChevronDown } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst sizeVariants = cva('', {\n variants: {\n size: {\n sm: ['text-sm'],\n md: ['text-base'],\n lg: ['text-lg']\n }\n },\n defaultVariants: {\n size: 'md'\n }\n})\n\ntype AccordionProps = React.ComponentPropsWithoutRef<\n typeof AccordionPrimitive.Root\n> &\n VariantProps<typeof sizeVariants>\n\nconst Accordion = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Root>,\n AccordionProps\n>(({ children, className, size, ...props }, ref) => (\n <AccordionPrimitive.Root\n className={cn(\n sizeVariants({ size }),\n 'dark:bg-grey-900 bg-white w-[206px] rounded-md shadow-[0_2px_10px] shadow-black/5',\n className\n )}\n {...props}\n ref={ref}\n >\n {children}\n </AccordionPrimitive.Root>\n))\nAccordion.displayName = AccordionPrimitive.Root.displayName\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Item\n className={cn(\n 'overflow-hidden first:mt-0 first:rounded-t last:rounded-b border-b border-grey-200 dark:border-grey-700 last:border-0',\n className\n )}\n {...props}\n ref={ref}\n >\n {children}\n </AccordionPrimitive.Item>\n))\nAccordionItem.displayName = AccordionPrimitive.Item.displayName\n\nconst AccordionHeader = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Header>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Header>\n>(({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Header\n className={cn('flex font-semibold', className)}\n {...props}\n ref={ref}\n >\n {children}\n </AccordionPrimitive.Header>\n))\nAccordionHeader.displayName = AccordionPrimitive.Header.displayName\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ children, className, ...props }, ref) => (\n <AccordionHeader>\n <AccordionPrimitive.Trigger\n className={cn(\n 'px-4 py-4 dark:bg-grey-900 dark:text-white group flex flex-1 cursor-pointer items-center justify-between bg-white leading-none',\n 'focus-visible:outline-hidden focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen-10',\n className\n )}\n {...props}\n ref={ref}\n >\n {children}\n <BsChevronDown\n className=\"ease-[cubic-bezier(0.87,_0,_0.13,_1)] transition-transform duration-300 group-data-[state=open]:rotate-180 w-3 h-3 text-gray-800\"\n aria-hidden\n />\n </AccordionPrimitive.Trigger>\n </AccordionHeader>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Content\n className={cn(\n 'dark:text-white data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden',\n className\n )}\n {...props}\n ref={ref}\n >\n <div className=\"pb-3 px-4\">{children}</div>\n </AccordionPrimitive.Content>\n))\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger\n}\n","/**\n * The Quantum project uses [Bootstrap Icons](https://icons.getbootstrap.com/)\n * provided by the [react-icons library](https://react-icons.github.io/react-icons/icons/bs/),\n * plus some custom icons stored in the \"build\" subfolder.\n *\n * The `react-icons` library provides React icon components of many famous icon libraries.\n * Here we are importing all the Bootstrap (\"bs\") ones.\n *\n * All these icons start with the \"Bs\" prefix (e.g. BsChevronDown, BsSearch, BsCircleFill, etc.).\n */\n\nexport type { IconType } from 'react-icons'\n\nexport * from 'react-icons/bs'\nexport * from './build/open-source.icon'\n","import { IconType } from 'react-icons'\n\nexport const OpenSourceIcon: IconType = props => (\n <svg viewBox=\"0 0 25 26\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g id=\"open-source\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12.25 0.0669873C12.4047 -0.0223291 12.5953 -0.0223291 12.75 0.0669873L24.2391 6.70019C24.3938 6.7895 24.4891 6.95457 24.4891 7.1332V20.3996C24.4891 20.5782 24.3938 20.7433 24.2391 20.8326L15.4062 25.9322V19.0104L18.3695 17.2995C18.4469 17.2548 18.4945 17.1723 18.4945 17.083V10.4498C18.4945 10.3605 18.4469 10.278 18.3695 10.2333L12.625 6.91669C12.5477 6.87204 12.4524 6.87204 12.375 6.91669L6.63051 10.2333C6.55316 10.278 6.50551 10.3605 6.50551 10.4498V17.083C6.50551 17.1723 6.55316 17.2548 6.63051 17.2995L9.65625 19.0464V25.9683L0.760986 20.8326C0.606286 20.7433 0.510986 20.5782 0.510986 20.3996V7.1332C0.510986 6.95457 0.606286 6.7895 0.760986 6.70019L12.25 0.0669873Z\"\n fill=\"currentColor\"\n />\n </g>\n </svg>\n)\n","import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n\n/** Every value React accepts for the `aria-invalid` attribute. */\nexport type AriaInvalid =\n boolean | 'false' | 'true' | 'grammar' | 'spelling' | undefined\n\n/**\n * Whether an `aria-invalid` value asserts that the control is invalid.\n *\n * `aria-invalid=\"false\"` is the attribute's default and reads identically to\n * its absence in the accessibility tree, so a control carrying it has asserted\n * nothing. Every other value is a real assertion, including `grammar` and\n * `spelling`, which say more than a bare `true` would. `FormGroup` draws the\n * same line for the same reason, and the controls that style themselves from\n * this attribute have to draw it in exactly the same place -- otherwise a\n * control can announce one state and render the other.\n */\nexport const assertsInvalid = (value: AriaInvalid) =>\n value !== undefined && value !== false && value !== 'false'\n","import React from 'react'\nimport { cva, VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { BsPersonFill } from '@/assets'\n\nconst avatarVariants = cva(\n [\n [\n 'relative',\n 'inline-flex',\n 'shrink-0',\n 'items-center',\n 'justify-center',\n 'overflow-hidden',\n 'select-none',\n 'font-semibold',\n 'uppercase'\n ],\n ['bg-background-alt', 'text-foreground'],\n ['dark:bg-background-alt-dark', 'dark:text-foreground-dark']\n ],\n {\n variants: {\n size: {\n xs: ['h-6', 'w-6', 'text-[10px]'],\n sm: ['h-8', 'w-8', 'text-xs'],\n default: ['h-10', 'w-10', 'text-sm'],\n lg: ['h-12', 'w-12', 'text-base'],\n xl: ['h-16', 'w-16', 'text-xl']\n },\n shape: {\n circle: 'rounded-full',\n square: 'rounded-lg'\n }\n },\n defaultVariants: {\n size: 'default',\n shape: 'circle'\n }\n }\n)\n\nconst iconVariants = cva('shrink-0', {\n variants: {\n size: {\n xs: ['h-3.5', 'w-3.5'],\n sm: ['h-4', 'w-4'],\n default: ['h-5', 'w-5'],\n lg: ['h-6', 'w-6'],\n xl: ['h-8', 'w-8']\n }\n },\n defaultVariants: {\n size: 'default'\n }\n})\n\n/**\n * First letter of the first word plus first letter of the last word, so\n * \"Ada Lovelace\" reads \"AL\" and a mononym reads a single letter.\n *\n * Split with `Array.from` rather than `[0]`: indexing a string walks UTF-16\n * code units, so a name starting outside the BMP — an emoji, or one of the\n * supplementary-plane scripts — would yield half a surrogate pair and render\n * as a replacement character.\n */\nconst initialsFrom = (name: string) => {\n const words = name.trim().split(/\\s+/).filter(Boolean)\n\n if (words.length === 0) return ''\n\n const first = Array.from(words[0])[0]\n const last = words.length > 1 ? Array.from(words[words.length - 1])[0] : ''\n\n return `${first}${last}`\n}\n\ninterface AvatarProps\n extends\n Omit<React.ComponentPropsWithoutRef<'span'>, 'children' | 'onError'>,\n VariantProps<typeof avatarVariants> {\n /**\n * Image to show. Until it loads — and permanently, if it fails to load — the\n * initials or the icon show in its place.\n */\n src?: string\n /** Who the avatar stands for: names it, and seeds the initials. */\n name?: string\n /** Initials to render instead of the ones derived from `name`. */\n initials?: string\n /** Accessible name to use instead of `name`, for the image and the fallback alike. */\n alt?: string\n /** Icon to render instead of the default person glyph when there are no initials. */\n icon?: React.ReactNode\n}\n\n/**\n * The image sits on top of the fallback rather than replacing it, so the\n * initials cover the gap while it loads instead of the avatar flashing empty.\n * Only one of the two is ever exposed to assistive technology: the `<img>`\n * carries the accessible name whenever it is rendered, and the fallback layer\n * is `aria-hidden` throughout.\n */\nconst Avatar = React.forwardRef<HTMLSpanElement, AvatarProps>(\n (\n { className, size, shape, src, name, initials, alt, icon, role, ...props },\n ref\n ) => {\n // Keyed by the URL that failed rather than a boolean, so a new `src` is\n // retried instead of inheriting the previous one's failure.\n const [failedSrc, setFailedSrc] = React.useState<string>()\n const showImage = Boolean(src) && src !== failedSrc\n\n const label = alt ?? name\n const text = initials ?? (name ? initialsFrom(name) : '')\n\n /**\n * `role=\"img\"` and the name that goes with it are emitted as a pair: the\n * label is there to name that role and nothing else. So a caller who\n * supplies a `role` of their own takes the name with it, rather than\n * finding ours still attached to their role — `role=\"presentation\"`\n * carrying an `aria-label` is a contradiction the browser resolves by\n * re-exposing the element, which is the opposite of what suppressing the\n * role asked for.\n */\n const named = !showImage && Boolean(label) && role === undefined\n\n return (\n <span\n ref={ref}\n className={cn(avatarVariants({ size, shape }), className)}\n role={role ?? (named ? 'img' : undefined)}\n aria-label={named ? label : undefined}\n // An avatar with no name to announce is decorative: whoever renders it\n // already has the person's name in the surrounding text.\n aria-hidden={showImage || label ? undefined : true}\n {...props}\n >\n <span\n aria-hidden=\"true\"\n className=\"flex h-full w-full items-center justify-center\"\n >\n {text || icon || (\n <BsPersonFill className={cn(iconVariants({ size }))} />\n )}\n </span>\n {showImage && (\n <img\n src={src}\n alt={label ?? ''}\n onError={() => setFailedSrc(src)}\n className=\"absolute inset-0 h-full w-full object-cover\"\n />\n )}\n </span>\n )\n }\n)\n\nAvatar.displayName = 'Avatar'\n\nexport { Avatar, AvatarProps }\n","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { BsArrowLeft } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst backLinkVariants = cva(\n [\n 'inline-flex items-center gap-1.5',\n 'rounded-sm',\n 'text-sm font-semibold leading-normal',\n 'text-foreground dark:text-foreground-dark',\n 'cursor-pointer',\n 'hover:underline',\n 'focus-visible:outline-hidden focus-visible:underline',\n 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10'\n ],\n {\n variants: {\n size: {\n md: 'px-2 py-1',\n sm: 'p-1.5'\n }\n },\n defaultVariants: {\n size: 'md'\n }\n }\n)\n\ninterface BackLinkProps\n extends\n React.AnchorHTMLAttributes<HTMLAnchorElement>,\n VariantProps<typeof backLinkVariants> {}\n\nconst BackLink = React.forwardRef<HTMLAnchorElement, BackLinkProps>(\n ({ className, size, children = 'Back', ...props }, ref) => (\n <a\n ref={ref}\n className={cn(backLinkVariants({ size }), className)}\n {...props}\n >\n <BsArrowLeft className=\"h-3 w-3 shrink-0\" aria-hidden=\"true\" />\n <span className={size === 'sm' ? 'sr-only' : undefined}>{children}</span>\n </a>\n )\n)\nBackLink.displayName = 'BackLink'\n\nexport { BackLink, backLinkVariants, type BackLinkProps }\n","import * as React from 'react'\nimport { Slot, Slottable } from '@radix-ui/react-slot'\n\nimport { BsChevronRight, type IconType } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst Breadcrumb = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement>\n>(({ 'aria-label': ariaLabel = 'Breadcrumb', ...props }, ref) => (\n <nav ref={ref} aria-label={ariaLabel} {...props} />\n))\nBreadcrumb.displayName = 'Breadcrumb'\n\nconst BreadcrumbList = React.forwardRef<\n HTMLOListElement,\n React.OlHTMLAttributes<HTMLOListElement>\n>(({ className, ...props }, ref) => (\n <ol\n ref={ref}\n className={cn(\n 'flex flex-wrap items-center gap-2',\n 'text-xs leading-normal',\n 'text-foreground-muted dark:text-foreground-muted-dark',\n className\n )}\n {...props}\n />\n))\nBreadcrumbList.displayName = 'BreadcrumbList'\n\nconst BreadcrumbItem = React.forwardRef<\n HTMLLIElement,\n React.LiHTMLAttributes<HTMLLIElement>\n>(({ className, ...props }, ref) => (\n <li\n ref={ref}\n className={cn('inline-flex items-center gap-2', className)}\n {...props}\n />\n))\nBreadcrumbItem.displayName = 'BreadcrumbItem'\n\ninterface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean\n icon?: IconType\n}\n\nconst BreadcrumbLink = React.forwardRef<HTMLAnchorElement, BreadcrumbLinkProps>(\n ({ className, asChild = false, icon: Icon, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a'\n return (\n <Comp\n ref={ref}\n className={cn(\n 'inline-flex items-center gap-2',\n 'rounded-sm',\n 'underline underline-offset-2',\n 'cursor-pointer',\n 'hover:text-foreground dark:hover:text-foreground-dark',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10',\n className\n )}\n {...props}\n >\n {Icon ? (\n <Icon\n className=\"h-3.5 w-3.5 shrink-0 text-foreground dark:text-foreground-dark\"\n aria-hidden=\"true\"\n />\n ) : null}\n <Slottable>{children}</Slottable>\n </Comp>\n )\n }\n)\nBreadcrumbLink.displayName = 'BreadcrumbLink'\n\nconst BreadcrumbPage = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n aria-current=\"page\"\n className={cn(\n 'font-semibold text-foreground dark:text-foreground-dark',\n className\n )}\n {...props}\n />\n))\nBreadcrumbPage.displayName = 'BreadcrumbPage'\n\nconst BreadcrumbSeparator = React.forwardRef<\n HTMLLIElement,\n React.LiHTMLAttributes<HTMLLIElement>\n>(({ className, children, ...props }, ref) => (\n <li\n ref={ref}\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\n 'inline-flex items-center',\n 'text-foreground dark:text-foreground-dark',\n '[&>svg]:h-3 [&>svg]:w-3',\n className\n )}\n {...props}\n >\n {children ?? <BsChevronRight />}\n </li>\n))\nBreadcrumbSeparator.displayName = 'BreadcrumbSeparator'\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n type BreadcrumbLinkProps\n}\n","import React from 'react'\nimport { cva, VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\n\n/**\n * Badge wears the same clothes as `Chip`: a 2px coloured border around a `-50`\n * fill, with the text in near-black `foreground` rather than a tint of the\n * hue. The two are siblings in the design file and share the fills exactly, so\n * they share the tokens here too.\n *\n * Putting the colour in the border rather than the text is what makes the\n * whole set comfortably accessible -- `foreground` on any of the `-50` fills\n * is 16:1 or better, so there is no per-hue weight to tune and no ramp that\n * has to be treated as a special case.\n *\n * Dark mode is not in the design file, so it is derived: the fill drops to the\n * page background, the border takes the dark half of its descriptor, and the\n * border goes on carrying the meaning. Tinting the fill instead would have\n * been prettier and would have hidden the border in it -- `feedback-error` on\n * `red-900` is 1.85:1, which would leave error and success telling themselves\n * apart by fill alone.\n */\nconst badgeVariants = cva(\n [\n [\n 'inline-flex',\n 'shrink-0',\n 'items-center',\n 'justify-center',\n 'border-2',\n 'font-semibold',\n 'whitespace-nowrap'\n ],\n ['text-foreground', 'dark:text-foreground-dark', 'dark:bg-background-dark']\n ],\n {\n variants: {\n variant: {\n default: [\n 'bg-background',\n 'border-border-subtle',\n 'dark:border-border-subtle-dark'\n ],\n info: ['bg-blue-50', 'border-blue-500'],\n success: [\n 'bg-green-50',\n 'border-feedback-success',\n 'dark:border-feedback-success-dark'\n ],\n warning: [\n 'bg-yellow-50',\n 'border-feedback-warning',\n 'dark:border-feedback-warning-dark'\n ],\n error: [\n 'bg-red-50',\n 'border-feedback-error',\n 'dark:border-feedback-error-dark'\n ],\n // The two flat variants keep `border-2` and paint it out rather than\n // dropping it, so they stay exactly the same size as the bordered ones\n // and a row of mixed badges still lines up.\n active: [\n 'bg-foreground',\n 'border-transparent',\n 'text-foreground-inverse',\n 'dark:bg-foreground-dark',\n 'dark:text-foreground-inverse-dark'\n ],\n disabled: [\n 'bg-background-subtle',\n 'border-transparent',\n 'text-foreground-subtle',\n 'dark:bg-background-subtle-dark',\n 'dark:text-foreground-subtle-dark'\n ]\n },\n // `min-w` matches the height, so a badge holding a single digit is a\n // square or a circle rather than a letterbox, and longer text grows out\n // of it from there.\n size: {\n sm: ['text-[10px]', 'h-5', 'min-w-5', 'px-1.5', 'gap-1'],\n default: ['text-xs', 'h-6', 'min-w-6', 'px-2', 'gap-1.5'],\n lg: ['text-sm', 'h-7', 'min-w-7', 'px-2.5', 'gap-1.5']\n },\n shape: {\n rounded: 'rounded-md',\n circle: 'rounded-full'\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n shape: 'rounded'\n }\n }\n)\n\nconst dotVariants = cva(['shrink-0', 'rounded-full', 'bg-current'], {\n variants: {\n size: {\n sm: ['h-1.5', 'w-1.5'],\n default: ['h-2', 'w-2'],\n lg: ['h-2.5', 'w-2.5']\n }\n },\n defaultVariants: {\n size: 'default'\n }\n})\n\ninterface BadgeProps\n extends\n React.ComponentPropsWithoutRef<'span'>,\n VariantProps<typeof badgeVariants> {\n /** Decorative icon shown before the text. */\n icon?: React.ReactNode\n /** Shows a filled dot before the text, in the badge's own colour. */\n dot?: boolean\n}\n\n/**\n * A badge labels the thing beside it -- a count, a status, a category. It is\n * static: nothing about it responds to a click, and a badge that needs to be\n * pressed or removed is a `Chip`. `disabled` is an appearance only, for a\n * badge attached to a control that is itself disabled; it does not disable\n * anything, because there is nothing here to disable.\n *\n * The text inside is the label, so it is left in the accessibility tree as\n * ordinary content. A badge whose text does not say enough on its own -- a\n * bare `3` -- takes an `aria-label`, and with it `role=\"img\"`, which is what\n * makes that label reach a screen reader at all: `aria-label` on a plain\n * `<span>` has no role to name and most screen readers drop it. The badge\n * never carries that role without a name to go in it, however the role\n * arrived.\n */\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(\n (\n { className, variant, size, shape, icon, dot, children, role, ...props },\n ref\n ) => {\n // Empty rather than absent is checked deliberately: `role=\"img\"` with no\n // accessible name is itself a violation, so an `aria-label=\"\"` has to\n // leave the badge as the plain text it already was.\n const labelled = Boolean(props['aria-label'] || props['aria-labelledby'])\n\n // `role=\"img\"` swaps the badge's text for its accessible name, so a badge\n // with no name to swap in must not carry the role: it fails 4.1.2 and puts\n // the text out of reach at the same time. That holds whoever asked for the\n // role. Ours is only generated when there is a label; a caller's is\n // dropped when there is not, rather than forwarding an element we would\n // never have produced ourselves and whose only possible reading is a\n // mistake. Every other role is passed through untouched -- `role=\"status\"`\n // on a badge that changes while the page is open is the point of the\n // override.\n const requested = role ?? (labelled ? 'img' : undefined)\n const resolved = requested === 'img' && !labelled ? undefined : requested\n\n return (\n <span\n ref={ref}\n className={cn(badgeVariants({ variant, size, shape }), className)}\n role={resolved}\n {...props}\n >\n {dot && (\n <span aria-hidden=\"true\" className={cn(dotVariants({ size }))} />\n )}\n {icon && (\n <span aria-hidden=\"true\" className=\"flex shrink-0 items-center\">\n {icon}\n </span>\n )}\n {children}\n </span>\n )\n }\n)\n\nBadge.displayName = 'Badge'\n\nexport { Badge, BadgeProps }\n","import * as React from 'react'\nimport { Slot, Slottable } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst buttonVariants = cva(\n [\n 'inline-flex items-center justify-center',\n 'rounded-lg',\n 'transition-colors',\n 'focus-visible:outline-hidden',\n 'disabled:pointer-events-none',\n 'cursor-pointer',\n 'disabled:cursor-default'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'border-0',\n 'bg-button-primary',\n 'text-white',\n 'border-button-primary',\n 'hover:bg-button-primary-hover',\n 'hover:border-button-primary-hover',\n 'focus:bg-button-primary-focus',\n 'focus:shadow-brandGreen',\n 'active:border-transparent',\n 'active:shadow-none',\n 'disabled:bg-button-primary-disabled',\n 'disabled:text-foreground-subtle',\n 'disabled:border-button-primary-disabled',\n 'selected:text-foreground-selected',\n 'dark:bg-button-primary-dark',\n 'dark:border-button-primary-dark',\n 'dark:text-foreground-inverse-dark',\n 'dark:hover:bg-button-primary-hover-dark',\n 'dark:hover:border-button-primary-hover-dark',\n 'dark:focus:bg-button-primary-dark',\n 'dark:focus:border-brandGreen-30',\n 'dark:active:border-transparent',\n 'dark:disabled:bg-button-primary-disabled-dark',\n 'dark:disabled:text-foreground-subtle',\n 'dark:disabled:border-button-primary-disabled-dark'\n ],\n secondary: [\n 'border-2',\n 'bg-white',\n 'text-grey-900',\n 'border-border',\n 'hover:bg-button-secondary-hover',\n 'hover:border-button-secondary-border-hover',\n 'focus:shadow-brandGreen',\n 'active:border-border',\n 'active:shadow-none',\n 'disabled:bg-button-secondary-disabled',\n 'disabled:border-button-secondary-border-disabled',\n 'disabled:text-foreground-subtle',\n 'dark:bg-button-secondary-dark',\n 'dark:border-button-secondary-border-dark',\n 'dark:text-white',\n 'dark:hover:bg-button-secondary-hover-dark',\n 'dark:hover:border-button-secondary-border-hover-dark',\n 'dark:focus:bg-button-secondary-dark',\n 'dark:focus:shadow-brandGreen10',\n 'dark:active:border-button-secondary-border-dark',\n 'dark:active:shadow-none',\n 'dark:disabled:bg-button-secondary-disabled-dark',\n 'dark:disabled:text-foreground-subtle-dark',\n 'dark:disabled:border-button-secondary-disabled-dark'\n ],\n /**\n * The dark half of this variant was a text colour standing in for the\n * surfaces underneath it (#86). `hover:bg-button-tertiary-hover` and\n * `focus:bg-button-tertiary-focus` carried no `dark:` counterpart, so\n * in dark mode they painted their light values -- `grey-50` and white\n * -- and the button lit up as a pale chip on a black page. The text\n * was then darkened to `button-tertiary-hover-dark` on hover to stay\n * legible against that, which is a background token worn as a\n * foreground one, and it only covered hover: focus left white text on\n * the white background, at 1:1.\n *\n * The palette has held `button-tertiary-hover-dark` (`grey-800`) and\n * `button-tertiary-focus-dark` (`blue-900`) since the states were\n * drawn -- nothing here was reaching for them. So each state takes its\n * own dark surface and the text goes back to `foreground-dark`\n * throughout, which is what Input, Textarea, Select, Badge and Chip\n * all write their dark text as: 14.54:1 on hover and active, 18.75:1\n * on focus. `__tests__/button-dark-mode.test.tsx` is\n * what keeps a light-mode-only background from being added back.\n */\n tertiary: [\n 'bg-transparent border-transparent',\n 'text-foreground',\n 'dark:text-foreground-dark',\n 'hover:bg-button-tertiary-hover',\n 'dark:hover:bg-button-tertiary-hover-dark',\n 'focus:bg-button-tertiary-focus',\n 'focus:shadow-brandGreen',\n 'dark:focus:bg-button-tertiary-focus-dark',\n 'active:bg-button-tertiary-hover',\n 'dark:active:bg-button-tertiary-hover-dark',\n 'active:shadow-none',\n 'disabled:text-foreground-subtle'\n ],\n success: [\n 'bg-button-success',\n 'text-white',\n 'hover:bg-button-success-hover',\n 'focus:bg-button-success-focus',\n 'focus:shadow-green',\n 'active:shadow-none',\n 'disabled:bg-button-success-disabled',\n 'disabled:text-foreground-subtle',\n 'dark:disabled:bg-button-success-disabled-dark'\n ],\n danger: [\n 'bg-button-danger',\n 'text-white',\n 'hover:bg-button-danger-hover',\n 'focus:bg-button-danger',\n 'focus:shadow-red',\n 'active:shadow-none',\n 'disabled:bg-button-danger-disabled',\n 'disabled:text-foreground-subtle',\n 'dark:disabled:bg-button-danger-disabled-dark'\n ]\n },\n size: {\n lg: ['px-4', 'py-3', 'text-base'],\n md: ['p-2.5', 'text-sm'],\n sm: ['px-2.5', 'py-2', 'text-sm'],\n xs: ['px-2', 'py-2.5', 'text-xs']\n }\n },\n compoundVariants: [\n { variant: 'secondary', size: 'lg', class: 'py-2.5' },\n { variant: 'secondary', size: 'md', class: 'py-2' },\n { variant: 'secondary', size: 'sm', class: 'py-1.5' },\n { variant: 'secondary', size: 'xs', class: 'py-2' }\n ],\n defaultVariants: {\n variant: 'primary',\n size: 'md'\n }\n }\n)\n\nexport interface ButtonProps\n extends\n React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n leftSideChild?: React.ReactNode\n rightSideChild?: React.ReactNode\n leftSideClassName?: string\n rightSideClassName?: string\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n children: any\n asChild?: boolean\n onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant,\n children,\n size,\n leftSideChild,\n rightSideChild,\n leftSideClassName,\n rightSideClassName,\n disabled = false,\n asChild = false,\n onClick,\n ...props\n },\n ref\n ) => {\n const sideChildClassed =\n 'inline-flex items-center justify-center text-inherit text-justify'\n\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n className={cn(buttonVariants({ variant, size }), className)}\n ref={ref}\n disabled={disabled}\n onClick={e => {\n if (onClick) onClick(e)\n }}\n {...props}\n >\n {leftSideChild ? (\n <div className={cn(sideChildClassed, 'mr-3', leftSideClassName)}>\n {leftSideChild}\n </div>\n ) : (\n <></>\n )}\n <Slottable>{asChild ? children : <div>{children}</div>}</Slottable>\n {rightSideChild ? (\n <div className={cn(sideChildClassed, 'ml-3', rightSideClassName)}>\n {rightSideChild}\n </div>\n ) : (\n <></>\n )}\n </Comp>\n )\n }\n)\n\nButton.displayName = 'Button'\n\nexport { Button, buttonVariants }\n","import React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\n\nconst buttonGroupVariants = cva(\n [\n 'inline-flex',\n 'items-start',\n 'p-0',\n 'rounded-lg',\n '[&>*]:flex',\n '[&>*]:items-center',\n '[&>*]:justify-center',\n '[&>*]:gap-[10px]',\n '[&>*]:px-3',\n '[&>*]:outline-hidden',\n '[&>*:focus]:shadow-brandGreen',\n '[&>*:focus]:z-10'\n ],\n {\n variants: {\n variant: {\n primary: [\n '[&>*]:bg-button-primary',\n '[&>*]:text-white',\n '[&>*:hover]:bg-button-primary-hover',\n '[&>*:focus]:bg-button-primary-focus',\n '[&>*:disabled]:bg-button-primary-disabled',\n '[&>*:disabled]:text-foreground-subtle',\n 'dark:[&>*]:bg-button-primary-dark',\n 'dark:[&>*]:text-foreground-inverse-dark',\n 'dark:[&>*:hover]:bg-button-primary-hover-dark',\n 'dark:[&>*:focus]:bg-button-primary-dark',\n 'dark:[&>*:disabled]:bg-button-primary-disabled-dark',\n 'dark:[&>*:disabled]:text-foreground-subtle'\n ],\n secondary: [\n '[&>*]:bg-white',\n '[&>*]:text-grey-900',\n '[&>*:hover]:bg-button-secondary-hover',\n '[&>*:disabled]:bg-button-secondary-disabled',\n '[&>*:disabled]:border-button-secondary-border-disabled',\n '[&>*:disabled]:text-foreground-subtle',\n 'dark:[&>*]:bg-button-secondary-dark',\n 'dark:[&>*]:text-foreground-dark',\n 'dark:[&>*:hover]:bg-button-secondary-hover-dark',\n 'dark:[&>*:focus]:shadow-brandGreen10',\n 'dark:[&>*:disabled]:bg-button-secondary-disabled-dark',\n 'dark:[&>*:disabled]:border-button-secondary-disabled-dark',\n 'dark:[&>*:disabled]:text-foreground-subtle-dark'\n ]\n },\n orientation: {\n horizontal: [\n 'inline-flex',\n '[&>*:first-child]:rounded-l-lg',\n '[&>*:last-child]:rounded-r-lg',\n '[&>*:not(:first-child)]:rounded-l-none',\n '[&>*:not(:last-child)]:rounded-r-none'\n ],\n vertical: [\n 'flex-col',\n '[&>*]:self-stretch',\n '[&>*:first-child]:rounded-t-lg',\n '[&>*:last-child]:rounded-b-lg',\n '[&>*:not(:first-child)]:rounded-t-none',\n '[&>*:not(:last-child)]:rounded-b-none'\n ]\n },\n size: {\n md: ['[&>*]:py-2.5'],\n sm: ['[&>*]:py-2']\n }\n },\n defaultVariants: {\n orientation: 'horizontal',\n variant: 'primary',\n size: 'md'\n }\n }\n)\n\ninterface ButtonGroupProps\n extends\n React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof buttonGroupVariants> {}\n\nconst ButtonGroup = React.forwardRef<HTMLDivElement, ButtonGroupProps>(\n (\n { className, orientation, variant, size, role = 'group', ...props },\n ref\n ) => {\n return (\n <div\n role={role}\n className={cn(\n buttonGroupVariants({ orientation, variant, size }),\n className\n )}\n {...props}\n ref={ref}\n ></div>\n )\n }\n)\nButtonGroup.displayName = 'ButtonGroup'\nexport { ButtonGroup, type ButtonGroupProps }\n","'use client'\n\nimport * as React from 'react'\nimport { Chevron, DayPicker } from 'react-day-picker'\nimport { cn } from '@/lib/utils'\nimport { BsArrowLeft, BsArrowRight } from '@/assets'\nimport { cva } from 'class-variance-authority'\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>\n\n/**\n * Keys match react-day-picker v9's `UI`, `DayFlag` and `SelectionState` enums.\n * v9 moved the day modifiers (`selected`, `outside`, the range states, ...)\n * onto the `<td>` that `day` styles, and introduced `day_button` for the\n * `<button>` inside it — so the selection surface lives on `day`'s element and\n * `day_button` only carries sizing, typography and focus.\n */\nconst calendarVariants = cva([], {\n variants: {\n component: {\n months: ['relative', 'flex', 'flex-row', 'gap-4'],\n month: ['flex', 'w-full', 'flex-col', 'gap-2'],\n month_caption: ['flex', 'h-7', 'items-center', 'justify-center'],\n caption_label: ['text-sm', 'font-medium'],\n // v9 renders `nav` as a sibling of the months rather than inside the\n // caption, so it is positioned over the caption row of `months` here.\n nav: [\n 'absolute',\n 'inset-x-0',\n 'top-0',\n 'z-10',\n 'flex',\n 'h-7',\n 'items-center',\n 'justify-between',\n 'bg-transparent',\n 'dark:text-foreground-muted-dark'\n ],\n nav_button: [\n 'flex',\n 'h-7',\n 'w-7',\n 'items-center',\n 'justify-center',\n 'rounded-lg',\n 'bg-transparent',\n 'p-0',\n 'outline-hidden',\n 'focus-visible:shadow-blue',\n 'aria-disabled:opacity-50'\n ],\n weekday: [\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'px-1',\n 'py-2',\n 'w-9',\n 'font-semibold',\n 'text-xs',\n 'h-[34px]'\n ],\n day: [\n [\n 'w-9',\n 'p-0',\n 'flex',\n 'flex-col',\n 'items-center',\n 'text-center',\n 'gap-1',\n 'text-sm',\n 'relative',\n 'rounded-lg'\n ],\n ['focus-within:relative', 'focus-within:z-20']\n ],\n day_button: [\n 'rounded-lg',\n 'px-1',\n 'w-full',\n 'py-2',\n 'h-[34px]',\n 'flex',\n 'flex-col',\n 'justify-center',\n 'text-sm',\n 'font-bold',\n 'items-center',\n 'shrink-0',\n 'focus-visible:shadow-blue',\n 'outline-hidden',\n 'disabled:cursor-not-allowed'\n ],\n selected: [\n 'bg-accent',\n 'text-foreground-inverse',\n 'dark:bg-brandGreen-100',\n 'dark:text-foreground-inverse-dark'\n ],\n outside: ['text-foreground-muted', 'dark:text-foreground-muted-dark'],\n disabled: [\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'opacity-50'\n ]\n }\n }\n})\n\n/**\n * Range days always carry `selected` as well, and both sets land on the same\n * `<td>`. `!` pins the range surface above `selected`'s rather than leaving the\n * winner to the order Tailwind happens to emit the two backgrounds in.\n */\nconst rangeEdge = [\n 'bg-accent!',\n 'text-foreground-inverse!',\n 'dark:bg-blue-400!',\n 'dark:text-foreground-inverse-dark!'\n]\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\n 'p-4 rounded-lg bg-background-alt dark:bg-background-alt-dark dark:text-foreground-inverse shadow-[0_4px_6px_0px_rgba(0,0,0,0.08)] flex w-fit',\n className\n )}\n classNames={{\n months: calendarVariants({ component: 'months' }),\n month: calendarVariants({ component: 'month' }),\n month_caption: calendarVariants({ component: 'month_caption' }),\n caption_label: calendarVariants({ component: 'caption_label' }),\n nav: calendarVariants({ component: 'nav' }),\n button_previous: calendarVariants({ component: 'nav_button' }),\n button_next: calendarVariants({ component: 'nav_button' }),\n month_grid: 'w-full border-collapse',\n weekdays: 'flex',\n weekday: calendarVariants({ component: 'weekday' }),\n week: 'flex w-full',\n day: calendarVariants({ component: 'day' }),\n day_button: calendarVariants({ component: 'day_button' }),\n selected: calendarVariants({ component: 'selected' }),\n range_start: cn(rangeEdge, 'rounded-l-full! rounded-r-none!'),\n range_end: cn(rangeEdge, 'rounded-r-full! rounded-l-none!'),\n range_middle:\n 'rounded-none! bg-grey-400! text-grey-900! dark:bg-accent-alt! dark:text-foreground-inverse!',\n outside: calendarVariants({ component: 'outside' }),\n disabled: calendarVariants({ component: 'disabled' }),\n hidden: 'invisible',\n ...classNames\n }}\n components={{\n Chevron: props => {\n switch (props.orientation) {\n case 'left':\n return (\n <BsArrowLeft className=\"h-5 w-5 fill-current stroke-current\" />\n )\n case 'right':\n return (\n <BsArrowRight className=\"h-5 w-5 fill-current stroke-current\" />\n )\n default:\n return <Chevron {...props} />\n }\n }\n }}\n {...props}\n />\n )\n}\nCalendar.displayName = 'Calendar'\n\nexport { Calendar }\n","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { BsTrash } from '@/assets'\nimport { Checkbox } from '@/components/Checkbox'\nimport { IconButton } from '@/components/IconButton'\nimport { Switch } from '@/components/Switch'\nimport { cn } from '@/lib/utils'\n\nconst selectedClasses = [\n 'border-brandGreen-100',\n 'outline-1',\n '-outline-offset-2',\n 'outline-brandGreen-100',\n 'dark:border-brandGreen-100'\n]\n\nconst checkedClasses = [\n 'has-[[data-state=checked]]:border-brandGreen-100',\n 'has-[[data-state=checked]]:outline-1',\n 'has-[[data-state=checked]]:-outline-offset-2',\n 'has-[[data-state=checked]]:outline-brandGreen-100',\n 'dark:has-[[data-state=checked]]:border-brandGreen-100'\n]\n\nconst cardVariants = cva(\n ['rounded-lg', 'border', 'text-foreground', 'dark:text-foreground-dark'],\n {\n variants: {\n variant: {\n outline: [\n 'bg-background',\n 'border-border',\n 'dark:bg-grey-900',\n 'dark:border-grey-700'\n ],\n filled: [\n 'bg-blue-50',\n 'border-transparent',\n 'dark:bg-brandMidnight-100'\n ]\n },\n interactive: {\n true: [\n 'cursor-pointer',\n 'transition-colors',\n 'hover:border-border-hover',\n 'dark:hover:border-grey-400',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen10'\n ],\n false: ''\n },\n selected: {\n true: selectedClasses,\n false: ''\n }\n },\n compoundVariants: [\n {\n interactive: true,\n selected: true,\n class: [\n 'hover:border-brandGreen-100',\n 'dark:hover:border-brandGreen-100'\n ]\n }\n ],\n defaultVariants: {\n variant: 'outline',\n interactive: false,\n selected: false\n }\n }\n)\n\ninterface CardProps\n extends\n React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof cardVariants> {}\n\nconst Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ className, variant, interactive, selected, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n cardVariants({ variant, interactive, selected }),\n 'p-4',\n className\n )}\n {...props}\n />\n )\n)\nCard.displayName = 'Card'\n\nconst CardTitle = React.forwardRef<\n HTMLHeadingElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn('text-lg font-medium leading-normal', className)}\n {...props}\n />\n))\nCardTitle.displayName = 'CardTitle'\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn(\n 'text-xs text-foreground-muted dark:text-foreground-muted-dark',\n className\n )}\n {...props}\n />\n))\nCardDescription.displayName = 'CardDescription'\n\ntype CheckboxRootProps = React.ComponentPropsWithoutRef<typeof Checkbox>\n\ninterface SelectableCardProps extends Omit<\n CheckboxRootProps,\n 'title' | 'children' | 'asChild'\n> {\n title: React.ReactNode\n description?: React.ReactNode\n}\n\nconst SelectableCard = React.forwardRef<\n React.ElementRef<typeof Checkbox>,\n SelectableCardProps\n>(({ className, title, description, id, disabled, ...props }, ref) => {\n const generatedId = React.useId()\n const checkboxId = id ?? generatedId\n const titleId = `${checkboxId}-title`\n const descriptionId = `${checkboxId}-description`\n\n return (\n <label\n htmlFor={checkboxId}\n className={cn(\n cardVariants({ interactive: !disabled }),\n 'flex items-start gap-2 px-4 py-3',\n checkedClasses,\n 'has-[:focus-visible]:shadow-brandGreen',\n 'dark:has-[:focus-visible]:shadow-brandGreen10',\n disabled && 'cursor-not-allowed opacity-50',\n className\n )}\n >\n <Checkbox\n ref={ref}\n id={checkboxId}\n disabled={disabled}\n aria-labelledby={titleId}\n aria-describedby={description ? descriptionId : undefined}\n {...props}\n />\n <span className=\"flex flex-col gap-0.5\">\n <span id={titleId} className=\"text-sm font-medium leading-normal\">\n {title}\n </span>\n {description && (\n <span\n id={descriptionId}\n className=\"text-xs text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {description}\n </span>\n )}\n </span>\n </label>\n )\n})\nSelectableCard.displayName = 'SelectableCard'\n\ntype SwitchRootProps = React.ComponentPropsWithoutRef<typeof Switch>\n\ninterface SwitchCardProps extends Omit<\n SwitchRootProps,\n 'children' | 'asChild'\n> {\n label: React.ReactNode\n onRemove?: () => void\n removeLabel?: string\n}\n\nconst SwitchCard = React.forwardRef<\n React.ElementRef<typeof Switch>,\n SwitchCardProps\n>(\n (\n {\n className,\n label,\n onRemove,\n removeLabel = 'Remove',\n id,\n disabled,\n ...props\n },\n ref\n ) => {\n const generatedId = React.useId()\n const switchId = id ?? generatedId\n\n return (\n <div\n className={cn(\n cardVariants(),\n 'flex items-center gap-2 px-2 py-1',\n checkedClasses,\n disabled && 'opacity-50',\n className\n )}\n >\n <Switch ref={ref} id={switchId} disabled={disabled} {...props} />\n <label\n htmlFor={switchId}\n className={cn(\n 'flex-1 text-xs font-medium',\n disabled ? 'cursor-not-allowed' : 'cursor-pointer'\n )}\n >\n {label}\n </label>\n {onRemove && (\n <IconButton\n variant=\"tertiary\"\n size=\"xs\"\n label={removeLabel}\n icon={<BsTrash />}\n disabled={disabled}\n onClick={onRemove}\n className=\"h-7 w-7\"\n />\n )}\n </div>\n )\n }\n)\nSwitchCard.displayName = 'SwitchCard'\n\nexport {\n Card,\n CardTitle,\n CardDescription,\n SelectableCard,\n SwitchCard,\n cardVariants,\n type CardProps,\n type SelectableCardProps,\n type SwitchCardProps\n}\n","import * as React from 'react'\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { assertsInvalid, cn } from '@/lib/utils'\nimport { BsCheck, BsDash } from '@/assets'\nimport { cva } from 'class-variance-authority'\n\n/**\n * The border colour is a variant rather than a set of `aria-[invalid=true]:`\n * rules layered over the default one, because layering them would leave the\n * outcome to the cascade: `data-[state=checked]:border-border` and an\n * `aria-[invalid=true]:` rule have the same specificity, so which one a ticked\n * invalid box actually draws would come down to the order Tailwind happens to\n * emit the two variants in. A variant emits one of the two sets and not the\n * other, so there is nothing to resolve.\n */\nconst checkboxVariants = cva(\n [\n [\n 'peer',\n 'h-5 w-5',\n 'p-0.5',\n 'shrink-0',\n 'inline-flex items-center justify-center gap-0',\n 'align-middle',\n 'rounded',\n 'border',\n 'bg-background-alt',\n // The same dimming `Radio` has always had. Without it a disabled box was\n // indistinguishable from a live one -- only its label dimmed, which\n // reads as the label being disabled rather than the control.\n 'disabled:opacity-50',\n 'disabled:cursor-not-allowed',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n [\n 'data-[state=checked]:bg-border',\n 'data-[state=checked]:text-foreground-inverse',\n 'data-[state=indeterminate]:bg-border',\n 'data-[state=indeterminate]:text-foreground-inverse'\n ],\n [\n 'dark:data-[state=unchecked]:bg-background-alt-dark',\n 'dark:data-[state=checked]:bg-border-dark'\n ]\n ],\n {\n variants: {\n /**\n * Driven by the box's own `aria-invalid` rather than by a prop of its\n * own, so the box that announces itself as invalid is the box that looks\n * it and the two cannot drift apart.\n *\n * `red-400` in dark mode: `feedback-error` is 3.66:1 on the dark page\n * background, and a border owes 3:1 under 1.4.11 on every surface a\n * group can sit on. Not `FieldError`'s `red-300`, which the message\n * takes because text owes 4.5:1 -- at 20px across, that weight reads as\n * pale grey rather than as red, and the border's whole job is to say\n * \"this one\". `red-400` is 4.14:1 at its worst, which is the dark\n * surface a card puts under it.\n */\n invalid: {\n true: ['border-feedback-error', 'dark:border-red-400'],\n false: [\n 'border-border',\n 'data-[state=checked]:border-border',\n 'dark:data-[state=unchecked]:border-border-dark',\n 'dark:data-[state=checked]:border-border-dark'\n ]\n }\n },\n defaultVariants: {\n invalid: false\n }\n }\n)\n\ntype CheckboxProps = React.ComponentPropsWithoutRef<\n typeof CheckboxPrimitive.Root\n>\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n checkboxVariants({ invalid: assertsInvalid(props['aria-invalid']) }),\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-inherit')}\n >\n {(props.checked === true || props.checked === undefined) && (\n <BsCheck className=\"text-inherit stroke-current stroke-1 fill-current\" />\n )}\n {props.checked === 'indeterminate' && (\n <BsDash className=\"text-inherit stroke-current stroke-1 fill-current\" />\n )}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox, type CheckboxProps }\n","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { buttonVariants } from '@/components/Button'\nimport { cn } from '@/lib/utils'\n\n/**\n * An icon button is a `Button` with the label taken out, so it takes its\n * colours from `buttonVariants` rather than restating them. That import is\n * the point rather than an economy: the two sit beside each other in a\n * toolbar, so a variant that gained a hover state or a focus ring in one and\n * not the other would be visible in the gap between them.\n *\n * `size: null` is how cva is told to skip a variant *and* its default, so\n * `Button`'s padding and text sizes are left off entirely and the square\n * below is the only thing setting the box.\n *\n * Which is the other half of the borrowing: a `Button`'s height is arithmetic\n * -- padding plus line box plus border, with compound variants putting\n * `secondary`'s 2px back -- and there is no line box here to add up, because\n * there is no text. So the height is set outright, as `Input` sets its own,\n * and `border-box` absorbs `secondary`'s border rather than a compound\n * variant having to. The numbers are `Button`'s, measured: an icon button\n * belongs in a row with one.\n */\nconst iconButtonVariants = cva(['shrink-0', '[&>svg]:shrink-0'], {\n variants: {\n /**\n * The box is square and matches the `Button` of the same name, so the two\n * line up in a row. `xs` and `sm` are the same 36px box there as well --\n * what separates them is the size of what is inside, `text-xs` against\n * `text-sm` in `Button` and a 14px icon against a 16px one here.\n *\n * The icon is sized from here rather than left to the caller, so a row of\n * them agrees without each one repeating an `h-4 w-4` and an icon drawn\n * at some other size cannot set the row's height. `[&>svg]` is the same\n * selector `Input` and `Password` size their own icons with. Being a\n * selector it also outranks a class on the icon itself, so the override\n * is `[&>svg]:h-6 [&>svg]:w-6` in the button's `className`, which\n * `tailwind-merge` takes as replacing this rather than joining it.\n */\n size: {\n lg: ['h-12', 'w-12', '[&>svg]:h-5', '[&>svg]:w-5'],\n md: ['h-10', 'w-10', '[&>svg]:h-4', '[&>svg]:w-4'],\n sm: ['h-9', 'w-9', '[&>svg]:h-4', '[&>svg]:w-4'],\n xs: ['h-9', 'w-9', '[&>svg]:h-3.5', '[&>svg]:w-3.5']\n },\n shape: {\n // `Button`'s own corner, so a square icon button beside a text one is\n // the same shape.\n rounded: 'rounded-lg',\n circle: 'rounded-full'\n }\n },\n defaultVariants: {\n size: 'md',\n shape: 'rounded'\n }\n})\n\n/**\n * Whether the unnamed-button warning has already gone out in this pass.\n *\n * `StrictMode` invokes a component body twice in development to surface impure\n * renders, and both invocations reach the `console.error` below, so one button\n * prints the message twice.\n *\n * `useRef` is the obvious guard and does not work: React rebuilds the hook\n * state for the second invocation, so the ref arrives fresh with `current`\n * false and both passes warn. Measured rather than assumed --\n * `__tests__/icon-button-strict-mode.test.tsx` mounts one under `StrictMode`\n * and counts, and it counts two without this. `useEffect` would dedupe and is\n * worse: effects do not run on the server, so the warning would vanish from\n * every server render and from the rest of this suite, which is where it is\n * most likely to be seen.\n *\n * So a module-level flag, cleared on a microtask rather than never. Both of\n * `StrictMode`'s invocations are synchronous and land in the same pass, so\n * they collapse into one message, while a re-render in some later task warns\n * again. That last part is the reason for the microtask: a warning that fires\n * once per session and then goes quiet cannot be told apart from a warning you\n * have fixed.\n */\nlet warnedThisPass = false\n\nconst warnUnnamed = () => {\n if (warnedThisPass) return\n warnedThisPass = true\n queueMicrotask(() => {\n warnedThisPass = false\n })\n\n console.error(\n 'IconButton: `label` is required and cannot be empty. This button has ' +\n 'rendered with no accessible name, and a screen reader will announce ' +\n 'it as \"button\" and nothing more. Pass a label saying what the button ' +\n 'does -- \"Delete article\", not \"bin\".'\n )\n}\n\ninterface IconButtonProps\n extends\n Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'title'>,\n VariantProps<typeof iconButtonVariants> {\n /** The icon. It is the whole of the button's content. */\n icon: React.ReactNode\n /**\n * What the button does, in words -- \"Close\", \"Add to basket\", not \"cross\"\n * or \"plus\". Required, because there is no text for a screen reader to fall\n * back on.\n */\n label: string\n variant?: VariantProps<typeof buttonVariants>['variant']\n}\n\n/**\n * A button whose content is an icon and nothing else: the close on a dialog,\n * the actions at the end of a table row, a toolbar.\n *\n * `label` is required and has no default, which is the one way this differs\n * from every other prop here. An icon button with no accessible name is a\n * control a screen reader announces as \"button\" and nothing more, and unlike\n * a missing colour it is invisible to everyone who is not affected by it.\n * There is no name that could be guessed from an icon, so the type asks for\n * one rather than inventing it (WCAG 4.1.2).\n *\n * The icon is left out of the accessibility tree by `aria-label` itself,\n * which replaces an element's contents when the name is computed, so the icon\n * needs no `aria-hidden` of its own. What the icon must not carry is a\n * `title`, which would put a browser tooltip on it that the button's own\n * `Tooltip` did not put there. That one is unreachable from here: `icon` is a\n * `ReactNode`, so there is nothing to type-check.\n *\n * `title` is off the button as well, which is the one prop of a `<button>`\n * this component takes away. It is not that it competes for the name --\n * `title` is the last resort in the naming order, behind both `aria-label`\n * and the contents, so while there is a label it never wins. It is that every\n * reason to reach for it here is already served by something better, and\n * served properly: a tooltip is `Tooltip`, which is reachable by keyboard and\n * by touch as a native one is not, and a name is `label`. What is left is a\n * second tooltip doubling up with the first, and a name that appears out of\n * nowhere in the one case where `label` resolved empty. Neither is worth a\n * prop, so the type stops it at the point where it can still be changed\n * cheaply.\n *\n * Only the type stops it. A `title` arriving through an untyped spread is\n * passed to the element like any other attribute, because deleting an\n * attribute a caller explicitly set is a worse surprise than rendering it.\n *\n * `type` defaults to `\"button\"`. A bare `<button>` inside a form is a submit\n * button, and an icon button is most often a close or a remove -- the one\n * place that default does the most damage.\n */\nconst IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(\n (\n {\n className,\n variant,\n size,\n shape,\n icon,\n label,\n type = 'button',\n 'aria-label': ariaLabel,\n ...props\n },\n ref\n ) => {\n // An `aria-label` of the caller's own wins, and an empty one falls back\n // rather than being spread over the top of `label` -- a button holding a\n // required name and then blanking it has only one reading, and it is not\n // the one where the name goes away silently. `aria-labelledby` is not\n // weighed against either: it beats them both wherever it is passed, which\n // is the naming order in the specification rather than anything decided\n // here.\n //\n // Trimmed, because the name-computation algorithm trims before it decides\n // whether a label is empty, so a `label` of `\" \"` is exactly as unnamed as\n // one of `\"\"` -- and `label` is typed `string`, which stops neither. The\n // type is the guard against a name being forgotten; this is the guard\n // against one being supplied and empty, which the type cannot express.\n //\n // Nothing is invented when both are empty. There is no name that could be\n // guessed from an icon, and a placeholder would be worse than none: it\n // would silence the failure with something untrue. So the attribute comes\n // off entirely instead of going on empty. The computed name is the same\n // either way -- an empty `aria-label` is skipped and the algorithm falls\n // through to the contents, which are an icon and say nothing -- but the\n // markup is not. `aria-label=\"\"` reads as a deliberate suppression, and\n // linters and reviewers take it for one. A button with no `aria-label` at\n // all is plainly unnamed, and axe's `button-name` rule says so in the\n // consumer's own CI rather than the component quietly asserting a name it\n // does not have.\n const name = ariaLabel?.trim() || label?.trim() || undefined\n\n // ...and says so in development, where the person who can fix it is\n // looking, rather than leaving it for a consumer's axe run to find.\n //\n // No other component here warns, and the line between them is worth\n // stating rather than assuming. What the others cannot express is\n // contextual -- whether the page holds a second `ButtonGroup`, whether a\n // heading above a `RadioGroup` already carries its name -- so they cannot\n // know they are wrong and would have to guess. This one knows. An icon\n // button with no accessible name has no valid reading at all, whatever\n // surrounds it, so the certainty is what earns the warning and it does not\n // generalise to a convention for the rest of the library.\n //\n // `aria-labelledby` is exempt: it names the button from text already on\n // the page and beats `aria-label` wherever both appear, so a caller using\n // it has named the button and only fallen foul of the type. It is read\n // from `props` rather than destructured so that it still reaches the\n // element through the spread.\n if (\n process.env.NODE_ENV !== 'production' &&\n !name &&\n !props['aria-labelledby']\n ) {\n warnUnnamed()\n }\n\n return (\n <button\n ref={ref}\n type={type}\n aria-label={name}\n className={cn(\n buttonVariants({ variant, size: null }),\n iconButtonVariants({ size, shape }),\n className\n )}\n {...props}\n >\n {icon}\n </button>\n )\n }\n)\n\nIconButton.displayName = 'IconButton'\n\nexport { IconButton, iconButtonVariants, type IconButtonProps }\n","import * as React from 'react'\nimport * as SwitchPrimitives from '@radix-ui/react-switch'\n\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\nconst switchVariants = cva([\n [\n 'peer',\n 'inline-flex',\n 'h-5',\n 'py-0.5',\n 'w-10',\n 'gap-[8px]',\n 'shrink-0',\n 'cursor-pointer',\n 'items-center',\n 'rounded-full',\n 'border-none',\n 'transition-colors ',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'disabled:cursor-not-allowed'\n ],\n [\n 'dark:enabled:data-[state=checked]:bg-accent-dark',\n 'dark:enabled:bg-foreground-subtle-dark',\n 'dark:disabled:bg-grey-200',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n [\n 'enabled:data-[state=checked]:bg-accent',\n 'enabled:bg-foreground-subtle',\n 'disabled:bg-grey-200'\n ]\n])\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(switchVariants(), className)}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn([\n 'pointer-events-none',\n 'block',\n 'h-4',\n 'w-4',\n 'rounded-full',\n 'bg-background',\n 'ring-0',\n 'transition-transform ',\n 'data-[state=checked]:translate-x-[22px]',\n 'data-[state=unchecked]:translate-x-[2px]',\n 'data-[disabled]:bg-grey-300',\n 'dark:bg-black',\n 'dark:data-[disabled]:bg-grey-300'\n ])}\n />\n </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n","import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport {\n ChoiceGroupContext,\n ChoiceGroupFieldset,\n choiceGroupItemsVariants,\n type ChoiceGroupFieldsetProps\n} from '../choice-group'\n\ninterface CheckboxGroupContextValue {\n /** The values of the boxes that are currently ticked. */\n value: string[]\n toggle: (value: string, checked: boolean) => void\n /** Shared by every box in the group, so the set submits as one field. */\n name?: string\n}\n\nconst CheckboxGroupContext =\n React.createContext<CheckboxGroupContextValue | null>(null)\n\n/**\n * The group's selection, for a `CheckboxGroupItem` to read. `null` outside a\n * group, where an item is an ordinary checkbox that keeps its own state.\n */\nconst useCheckboxGroup = () => React.useContext(CheckboxGroupContext)\n\ninterface CheckboxGroupProps extends Omit<\n ChoiceGroupFieldsetProps,\n 'defaultValue' | 'onChange'\n> {\n /** Ticked values. Supply it for a controlled group, with `onValueChange`. */\n value?: string[]\n /** Ticked values at first render, for a group that keeps its own state. */\n defaultValue?: string[]\n onValueChange?: (value: string[]) => void\n /** Given to every box, so the group submits as one multi-valued field. */\n name?: string\n /** Lays the options out in a column or in a wrapping row. */\n orientation?: 'vertical' | 'horizontal'\n /** Which side of its control each label sits on. */\n labelPosition?: 'left' | 'right'\n /**\n * Marks the options invalid independently of `error`, and wins over it in\n * both directions -- the same split `FormGroup` draws, for the same reason:\n * `error` is what the group says, `invalid` is what it claims about itself.\n */\n invalid?: boolean\n}\n\n/**\n * A set of checkboxes that belong to one question.\n *\n * ```tsx\n * <CheckboxGroup\n * legend=\"How should we contact you?\"\n * description=\"Select all that apply\"\n * name=\"contact\"\n * defaultValue={['email']}\n * >\n * <CheckboxGroupItem value=\"email\" label=\"Email\" />\n * <CheckboxGroupItem value=\"phone\" label=\"Phone\" description=\"Weekdays only\" />\n * </CheckboxGroup>\n * ```\n *\n * The group owns the selection and the items read it, rather than each box\n * holding a boolean of its own: \"which of these are ticked\" is one piece of\n * state and one `onValueChange`, and a group that submits under one `name` is\n * one field on the server too.\n *\n * There is no `required`. A checkbox group's rule is almost always \"at least\n * one\", and HTML's `required` on a checkbox means that box in particular, so\n * forwarding it to the options would demand every one of them; `aria-required`\n * on each box says the same thing to a screen reader. The rule belongs to the\n * form, and what it produces is an `error`.\n */\nconst CheckboxGroup = React.forwardRef<HTMLFieldSetElement, CheckboxGroupProps>(\n (\n {\n value,\n defaultValue,\n onValueChange,\n name,\n orientation = 'vertical',\n labelPosition = 'right',\n invalid,\n error,\n disabled,\n className,\n children,\n ...props\n },\n ref\n ) => {\n const [uncontrolled, setUncontrolled] = React.useState(defaultValue ?? [])\n const controlled = value !== undefined\n const selection = controlled ? value : uncontrolled\n\n const toggle = React.useCallback(\n (itemValue: string, checked: boolean) => {\n const next = checked\n ? selection.includes(itemValue)\n ? selection\n : [...selection, itemValue]\n : selection.filter(current => current !== itemValue)\n\n if (!controlled) setUncontrolled(next)\n onValueChange?.(next)\n },\n [controlled, onValueChange, selection]\n )\n\n const selectionContext = React.useMemo(\n () => ({ value: selection, toggle, name }),\n [selection, toggle, name]\n )\n\n const isInvalid = invalid ?? Boolean(error)\n const groupContext = React.useMemo(\n () => ({ invalid: isInvalid, labelPosition, disabled }),\n [isInvalid, labelPosition, disabled]\n )\n\n return (\n <ChoiceGroupFieldset\n ref={ref}\n error={error}\n disabled={disabled}\n className={className}\n {...props}\n >\n <ChoiceGroupContext.Provider value={groupContext}>\n <CheckboxGroupContext.Provider value={selectionContext}>\n <div\n className={cn(\n choiceGroupItemsVariants({ orientation, labelPosition })\n )}\n >\n {children}\n </div>\n </CheckboxGroupContext.Provider>\n </ChoiceGroupContext.Provider>\n </ChoiceGroupFieldset>\n )\n }\n)\nCheckboxGroup.displayName = 'CheckboxGroup'\n\nexport { CheckboxGroup, useCheckboxGroup, type CheckboxGroupProps }\n","import * as React from 'react'\nimport { cva } from 'class-variance-authority'\n\nimport { assertsInvalid, cn, type AriaInvalid } from '@/lib/utils'\nimport { FieldError } from './FormGroup'\nimport { Label } from './Label'\n\n/**\n * The parts a group of checkboxes and a group of radios have in common: the\n * `<fieldset>` and `<legend>` that give the options one name, the hint under\n * that name, the validation message under the options, and the row that pairs\n * one control with its own label and hint.\n *\n * Not exported from the package. `CheckboxGroup` and `RadioGroup` are the two\n * components this exists for, and a third group shape would be a third\n * component rather than a configuration of this one.\n */\n\n/**\n * Hint text, on the group and on a single option.\n *\n * The same weights as `FieldDescription`, deliberately not that component:\n * a field's hint stands down while its error is showing, because the two share\n * one line under one control. A group's hint is instructions for reading the\n * options -- \"Select all that apply\" -- it sits above them rather than under\n * them, and an error appearing below is not a reason to take the instructions\n * away.\n */\nconst choiceHintVariants = cva([\n 'text-xs',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark'\n])\n\n/**\n * How the options sit relative to each other. Vertical is the default because\n * it is the arrangement that stays readable at any label length; horizontal\n * wraps rather than overflowing, so a group that outgrows its container\n * becomes two rows instead of a scrollbar.\n *\n * `items-end` on a vertical group with its labels on the left is what lines\n * the controls up in a column: without it each row is only as wide as its own\n * label and the controls sit at a different x per row. It is scoped to that\n * one combination -- on a horizontal group the same class would align the rows\n * along their baseline-ish bottom edge instead, which is not the same request.\n */\nconst choiceGroupItemsVariants = cva('flex', {\n variants: {\n orientation: {\n vertical: ['flex-col', 'gap-3'],\n horizontal: ['flex-row', 'flex-wrap', 'gap-x-6', 'gap-y-3']\n },\n labelPosition: {\n left: '',\n right: ''\n }\n },\n compoundVariants: [\n { orientation: 'vertical', labelPosition: 'left', class: 'items-end' }\n ],\n defaultVariants: {\n orientation: 'vertical',\n labelPosition: 'right'\n }\n})\n\ninterface ChoiceGroupContextValue {\n /** Whether the group's controls should be marked `aria-invalid`. */\n invalid: boolean\n labelPosition: 'left' | 'right'\n /**\n * Whether the group as a whole is disabled. Published because an option's\n * label has to dim with its control, and a radio disabled by its group is\n * disabled by Radix's own context rather than by a prop the item can see.\n */\n disabled?: boolean\n}\n\nconst ChoiceGroupContext = React.createContext<ChoiceGroupContextValue | null>(\n null\n)\n\n/**\n * Read by `CheckboxGroupItem` and by `Radio`, so a single option picks up the\n * group's invalid state and label side without either being passed down by\n * hand. `null` outside a group, where a control is on its own and both\n * questions are the caller's.\n */\nconst useChoiceGroup = () => React.useContext(ChoiceGroupContext)\n\n/**\n * What an option's `aria-invalid` should end up as, given the group's state\n * and whatever the caller asked for.\n *\n * The group wins over `aria-invalid={false}` and only over that, which is the\n * line `FormGroup` already draws: `false` is the attribute's default and reads\n * identically to its absence, so an option carrying it has asserted nothing,\n * and letting it suppress the group's error would render an option that is\n * visibly invalid inside a group showing an error message while telling a\n * screen reader it is fine. Every other value is a real assertion and is kept.\n *\n * Returning the value the attribute will actually carry, rather than a\n * boolean, is what keeps the styling and the announcement in step -- both are\n * derived from this one result.\n */\nconst resolveAriaInvalid = (own: AriaInvalid, groupInvalid: boolean) =>\n assertsInvalid(own) ? own : groupInvalid || undefined\n\ninterface ChoiceGroupFieldsetProps extends React.ComponentPropsWithoutRef<'fieldset'> {\n /** The group's name, rendered as its `<legend>`. */\n legend?: React.ReactNode\n /** Hint under the legend, reached through the fieldset's `aria-describedby`. */\n description?: React.ReactNode\n /** Validation message under the options, reached the same way. */\n error?: React.ReactNode\n /**\n * Dims the legend along with the options. Deliberately not rendered as the\n * `<fieldset disabled>` attribute, which the browser applies to every\n * control inside the element with no way for one of them to opt back in: a\n * group disabled that way could not leave a single option live, and an item\n * that had asked to stay enabled would render as enabled and refuse to be\n * clicked. Every control is given `disabled` in its own right instead.\n */\n disabled?: boolean\n}\n\n/**\n * The fieldset around a set of options, with its legend and its two messages.\n *\n * Both messages are published to the group rather than to the controls\n * inside it: a screen reader announces a fieldset's description when focus\n * first enters the group, which is where \"Select all that apply\" and \"Choose\n * at least one\" are useful, and announcing either of them again on every\n * option would be five copies of one sentence. The per-control half of the\n * error is `aria-invalid`, which `useChoiceGroup()` hands to the options.\n */\nconst ChoiceGroupFieldset = React.forwardRef<\n HTMLFieldSetElement,\n ChoiceGroupFieldsetProps\n>(\n (\n {\n legend,\n description,\n error,\n disabled,\n className,\n children,\n 'aria-describedby': ariaDescribedBy,\n ...props\n },\n ref\n ) => {\n const id = React.useId()\n const descriptionId = `${id}-description`\n const errorId = `${id}-error`\n\n // The caller's own tokens first: the group's own messages are the most\n // specific thing said about it, and the most specific thing reads last.\n const describedBy =\n [\n ariaDescribedBy,\n description ? descriptionId : undefined,\n error ? errorId : undefined\n ]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <fieldset\n ref={ref}\n // `min-inline-size: min-content` is a fieldset UA style that Tailwind's\n // preflight leaves alone, and it stops the element from shrinking\n // inside a flex or grid parent -- a group of long labels then pushes\n // the layout wider instead of wrapping.\n className={cn('min-w-0 border-0 p-0', className)}\n aria-describedby={describedBy}\n {...props}\n >\n {/*\n The legend has to be the fieldset's own first child. Nested one\n element deeper -- inside the wrapper that would make this spacing\n easier to write -- it stops being the fieldset's caption and becomes\n a run of bold text that names nothing, and the group goes unlabelled\n with nothing on screen to show for it. `Label asChild` is what keeps\n its type identical to the labels on the options below it.\n */}\n {legend && (\n <Label asChild>\n <legend\n className={cn(\n 'p-0',\n description ? 'mb-1' : 'mb-3',\n disabled && 'opacity-70'\n )}\n >\n {legend}\n </legend>\n </Label>\n )}\n {description && (\n <p id={descriptionId} className={cn(choiceHintVariants(), 'mb-3')}>\n {description}\n </p>\n )}\n {children}\n {error && (\n <FieldError id={errorId} className=\"mt-2\">\n {error}\n </FieldError>\n )}\n </fieldset>\n )\n }\n)\nChoiceGroupFieldset.displayName = 'ChoiceGroupFieldset'\n\ninterface ChoiceItemProps {\n /** The control's id, which the label's `htmlFor` points at. */\n controlId: string\n /** Where the hint is published, if there is one. */\n descriptionId: string\n label?: React.ReactNode\n description?: React.ReactNode\n disabled?: boolean\n labelPosition: 'left' | 'right'\n /** The checkbox or radio itself. */\n children: React.ReactNode\n}\n\n/**\n * One option: the control, its label, and the hint that belongs to that option\n * alone.\n *\n * The hint is wired to the control with `aria-describedby` by whoever renders\n * this, rather than being left as text that happens to sit nearby. A hint that\n * distinguishes one option from another -- \"Delivered the next working day\" --\n * is the difference between the two choices, and a reader who only hears the\n * labels has not been told what they are choosing between.\n *\n * `items-start` rather than centring: the control is a fixed 20px and the\n * label is however many lines its text needs, so centring a two-line label\n * would drift the control into the gap between the lines.\n */\nconst ChoiceItem: React.FC<ChoiceItemProps> = ({\n controlId,\n descriptionId,\n label,\n description,\n disabled,\n labelPosition,\n children\n}) => {\n if (!label && !description) return <>{children}</>\n\n const text = (\n <div\n className={cn(\n 'grid gap-0.5',\n labelPosition === 'left' && 'justify-items-end'\n )}\n >\n {label && (\n <Label\n htmlFor={controlId}\n align={labelPosition === 'left' ? 'right' : 'left'}\n // The library's disabled label treatment, applied here rather than\n // left to `Label`'s own `peer-disabled:`, which needs the control to\n // be the label's previous sibling -- here it is a sibling of this\n // wrapper. The hint below is deliberately not dimmed with it: at 70%\n // `foreground-muted` is 3.5:1, and on a disabled option the hint is\n // usually the reason it is disabled, which is the one line that has\n // to stay readable.\n className={cn(disabled && 'opacity-70')}\n >\n {label}\n </Label>\n )}\n {description && (\n <p\n id={descriptionId}\n className={cn(\n choiceHintVariants(),\n labelPosition === 'left' && 'text-right'\n )}\n >\n {description}\n </p>\n )}\n </div>\n )\n\n return (\n <div className=\"flex items-start gap-2\">\n {labelPosition === 'left' && text}\n {children}\n {labelPosition === 'right' && text}\n </div>\n )\n}\n\nexport {\n ChoiceGroupContext,\n ChoiceGroupFieldset,\n ChoiceItem,\n choiceGroupItemsVariants,\n resolveAriaInvalid,\n useChoiceGroup,\n type ChoiceGroupFieldsetProps\n}\n","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\nimport { Label } from '../Label'\n\n/**\n * A field is three things that have to agree with each other: a label, a\n * control, and a message below it. Getting them to agree is entirely id\n * plumbing -- the label's `htmlFor` has to match the control's `id`, the\n * message's `id` has to appear in the control's `aria-describedby`, and the\n * control has to be marked `aria-invalid` when the message is an error. That\n * is what `FormGroup` does; the layout is the smaller half of the job.\n *\n * The plumbing is done by cloning the children rather than by having the\n * children read a context, so the group works with anything that takes the\n * props every form control already takes -- our `Input` and `Select`, a bare\n * `<input>`, a control from somewhere else. The only requirement is that they\n * are direct children, which is the arrangement the design file draws.\n */\nconst formGroupVariants = cva('grid', {\n variants: {\n orientation: {\n // One column, so the children simply stack in source order.\n vertical: ['grid-cols-1', 'gap-y-2'],\n // The label takes as much width as its text and the control takes the\n // rest; the message sits under the control rather than under the label,\n // which is the indent the design shows. There is no `gap-x` because an\n // empty first column would still occupy it -- the label carries its own\n // trailing space instead, so a group with no label has none.\n horizontal: ['grid-cols-[auto_minmax(0,1fr)]', 'items-center', 'gap-y-1']\n }\n },\n defaultVariants: {\n orientation: 'vertical'\n }\n})\n\ninterface FormGroupContextValue {\n /** Shown by `FieldDescription` unless it is given children of its own. */\n description?: React.ReactNode\n /** Shown by `FieldError` unless it is given children of its own. */\n error?: React.ReactNode\n descriptionId: string\n errorId: string\n /** Whether a `FieldError` in this group has something to render. */\n errorShown: boolean\n}\n\nconst FormGroupContext = React.createContext<FormGroupContextValue | null>(null)\n\n/**\n * The group's messages and the ids they are published under. `null` outside a\n * `FormGroup`, which is what lets `FieldError` and `FieldDescription` be\n * rendered on their own.\n *\n * Useful for a control the group cannot reach -- one nested inside a wrapper\n * of your own, say -- which can take `errorId` from here and put it in its own\n * `aria-describedby`.\n */\nconst useFormGroup = () => React.useContext(FormGroupContext)\n\nconst messageVariants = cva(['text-xs'], {\n variants: {\n tone: {\n description: ['text-foreground-muted', 'dark:text-foreground-muted-dark'],\n error: [\n 'font-medium',\n 'text-feedback-error',\n 'dark:text-feedback-error-dark'\n ]\n }\n },\n defaultVariants: {\n tone: 'description'\n }\n})\n\ntype FieldMessageProps = React.ComponentPropsWithoutRef<'p'>\n\n/**\n * The hint under the control. Takes its text from the group's `description`,\n * or from its own children when you would rather write it inline.\n *\n * Stands down while the group's `FieldError` has something to say, so the two\n * can be written side by side once and the field shows one message at a time\n * rather than growing a second line as it is validated. The error is the more\n * urgent of the two and it takes the place, not the space below it. A field\n * that genuinely needs both messages at once wants a second element of its\n * own rather than this one.\n */\nconst FieldDescription = React.forwardRef<\n HTMLParagraphElement,\n FieldMessageProps\n>(({ className, children, ...props }, ref) => {\n const group = useFormGroup()\n const content = group?.errorShown\n ? undefined\n : (children ?? group?.description)\n\n if (!content) return null\n\n return (\n <p\n ref={ref}\n id={group?.descriptionId}\n className={cn(messageVariants({ tone: 'description' }), className)}\n {...props}\n >\n {content}\n </p>\n )\n})\nFieldDescription.displayName = 'FieldDescription'\n\n/**\n * The validation message under the control, and the thing that puts the group\n * in its error state: a `FormGroup` whose `error` is set marks its control\n * `aria-invalid` whether or not a `FieldError` is there to render it.\n *\n * `role=\"alert\"` is what announces a message that appears after the page has\n * loaded -- an element carrying it is read out when it enters the DOM, and\n * this one is not rendered at all until there is something to say. The\n * `aria-describedby` link the group sets up covers the other direction: a\n * message that was already on screen is read when focus reaches the control.\n */\nconst FieldError = React.forwardRef<HTMLParagraphElement, FieldMessageProps>(\n ({ className, children, ...props }, ref) => {\n const group = useFormGroup()\n const content = children ?? group?.error\n\n if (!content) return null\n\n return (\n <p\n ref={ref}\n id={group?.errorId}\n role=\"alert\"\n className={cn(messageVariants({ tone: 'error' }), className)}\n {...props}\n >\n {content}\n </p>\n )\n }\n)\nFieldError.displayName = 'FieldError'\n\ninterface FormGroupProps\n extends\n Omit<React.ComponentPropsWithoutRef<'div'>, 'id'>,\n VariantProps<typeof formGroupVariants> {\n /** Given to the control and to the label's `htmlFor`. Generated when omitted. */\n controlId?: string\n /** Hint text, rendered wherever `<FieldDescription />` is placed. */\n description?: React.ReactNode\n /**\n * Validation message, rendered wherever `<FieldError />` is placed. Setting\n * it marks the control invalid.\n */\n error?: React.ReactNode\n /**\n * Marks the control invalid independently of `error`, and wins over it in\n * both directions -- `invalid` alone flags a control with no message to\n * show, and `invalid={false}` alongside an `error` renders the message\n * without the flag. The two are deliberately separate: `error` is what the\n * field says, `invalid` is what it claims about itself, and a field can\n * reasonably carry a message it does not want treated as a validation\n * failure. Leave it unset and the error decides.\n */\n invalid?: boolean\n /** Passed to the control, for the whole field to be disabled in one place. */\n disabled?: boolean\n /** Passed to the control, for the whole field to be required in one place. */\n required?: boolean\n}\n\n/**\n * `disabled` and `required` are real attributes rather than styling, so they\n * are only forwarded to something that can hold them. React renders an unknown\n * attribute on a host element verbatim and warns about it, so\n * `<div disabled=\"true\">` is both a console warning and markup a browser\n * ignores. A component is trusted with them -- what it does with them is its\n * own business.\n */\nconst ATTRIBUTE_HOLDERS = new Set([\n 'button',\n 'fieldset',\n 'input',\n 'select',\n 'textarea'\n])\n\nconst takesFormAttributes = (element: React.ReactElement) =>\n typeof element.type !== 'string' || ATTRIBUTE_HOLDERS.has(element.type)\n\ntype Slot = 'label' | 'description' | 'error' | 'control'\n\nconst slotOf = (node: React.ReactNode): Slot | null => {\n if (!React.isValidElement(node)) return null\n if (node.type === Label || node.type === 'label') return 'label'\n if (node.type === FieldDescription) return 'description'\n if (node.type === FieldError) return 'error'\n return 'control'\n}\n\n/**\n * Wraps a label, a control and its messages into one field, wiring them\n * together and laying them out in either orientation.\n *\n * ```tsx\n * <FormGroup orientation=\"vertical\" error=\"Pick a date in the future\">\n * <Label>Start date</Label>\n * <Input type=\"date\" variant=\"error\" onClear={clear} />\n * <FieldError />\n * </FormGroup>\n * ```\n *\n * The label, the messages and the control are recognised by what they are, so\n * they can be written in any order -- though writing them in the order they\n * appear is what makes the vertical layout need no placement rules at all.\n * Anything that is not a `Label`, a `FieldDescription` or a `FieldError` is\n * taken to be the control; only the first one is wired, since an id can only\n * belong to one element.\n *\n * Nothing is overwritten. A child that already has an `htmlFor`, an\n * `aria-describedby`, a `disabled` or a `required` keeps it, and its own\n * `className` is applied after the group's. A control that already has an `id`\n * keeps that too, and the label and the messages are built around it --\n * `controlId` is the one way to override it, since a group asked for a\n * specific id has been asked by the only party above both of them.\n *\n * `aria-invalid=\"false\"` is the single exception, because it is the only one\n * of these that says nothing by being there: it is the attribute's default\n * and reads identically to its absence. See the guard below.\n */\nconst FormGroup = React.forwardRef<HTMLDivElement, FormGroupProps>(\n (\n {\n className,\n orientation = 'vertical',\n controlId,\n description,\n error,\n invalid,\n disabled,\n required,\n children,\n ...props\n },\n ref\n ) => {\n const generatedId = React.useId()\n const horizontal = orientation === 'horizontal'\n\n const items = React.Children.toArray(children)\n const slots = items.map(slotOf)\n const controlIndex = slots.indexOf('control')\n\n /**\n * A control that arrived with an `id` keeps it, and the rest of the field\n * is built around that instead: the label points at the id the control\n * actually has, and the messages are published under ids derived from it.\n * Overwriting it would break whatever put it there -- a form library's\n * `register`, or an `aria-controls` elsewhere on the page.\n */\n const ownControlId =\n controlIndex === -1\n ? undefined\n : (items[controlIndex] as React.ReactElement<{ id?: string }>).props.id\n\n const fieldId = controlId ?? ownControlId ?? generatedId\n const descriptionId = `${fieldId}-description`\n const errorId = `${fieldId}-error`\n\n /**\n * A message element with children of its own renders them instead of the\n * group's, so \"is there a message\" is a question about both. Reading the\n * child's props during render rather than having it register itself keeps\n * `aria-invalid` correct on the very first render, including on the\n * server, where an effect would not have run.\n */\n const contentOf = (slot: Slot, fallback: React.ReactNode) => {\n const index = slots.indexOf(slot)\n if (index === -1) return undefined\n const own = (items[index] as React.ReactElement<React.PropsWithChildren>)\n .props.children\n return own ?? fallback\n }\n\n const shownError = contentOf('error', error)\n const errorShown = Boolean(shownError)\n // The error replaces the hint rather than joining it, so on an invalid\n // field there is no hint left to describe the control with.\n const descriptionShown =\n !errorShown && Boolean(contentOf('description', description))\n const isInvalid = invalid ?? Boolean(error || shownError)\n\n /**\n * The group owns its two message ids outright: it strips them from\n * whatever the control arrived with and puts them back only while the\n * message they name is on the page. Everything else the control points at\n * is left exactly as it was.\n *\n * Owning them in both directions is what matters. Only adding them would\n * leave a caller who pre-wired `aria-describedby=\"<id>-error\"` -- which\n * `useFormGroup()` invites, since it hands out these very ids -- pointing\n * at a removed element the moment the error cleared, because the group\n * would have stopped appending the id while the caller's copy stayed put.\n * A dangling idref announces nothing at all, which is the failure this\n * component exists to prevent.\n */\n const managedIds = new Set([descriptionId, errorId])\n\n const describedBy = (existing?: string) =>\n [\n ...new Set(\n [\n ...(existing?.split(/\\s+/) ?? []).filter(\n token => token && !managedIds.has(token)\n ),\n descriptionShown ? descriptionId : undefined,\n errorShown ? errorId : undefined\n ].filter(Boolean)\n )\n ].join(' ') || undefined\n\n let controlWired = false\n\n const wire = (element: React.ReactElement, slot: Slot) => {\n const own = element.props as Record<string, unknown> & {\n className?: string\n }\n\n if (slot === 'label') {\n return React.cloneElement(element, {\n htmlFor: own.htmlFor ?? fieldId,\n className: cn(\n horizontal && 'col-start-1 row-start-1 pe-3',\n disabled && 'opacity-70',\n own.className\n )\n } as Partial<typeof own>)\n }\n\n if (slot !== 'control') {\n return React.cloneElement(element, {\n className: cn(horizontal && 'col-start-2', own.className)\n } as Partial<typeof own>)\n }\n\n // Read before the flag is set, not inside `place` -- `place` runs after\n // the assignment below, so a closure over `controlWired` would see\n // `true` for the first control as well and never anchor it to the\n // label's row.\n const isFirstControl = !controlWired\n controlWired = true\n\n // Every control is wrapped in horizontal mode rather than given the\n // placement classes directly: a control's `className` does not\n // necessarily land on its outermost element -- `Input` puts it on the\n // `<input>` inside its border -- so it is not a reliable way to position\n // one in a grid.\n //\n // The first control is pinned to row 1 rather than left to\n // auto-placement, which would happen to put it there only while the\n // children are written in the order they are drawn in. A group whose\n // `FieldError` comes first would otherwise give row 1 to the message and\n // push the control below its own label.\n const place = (node: React.ReactNode) =>\n horizontal ? (\n <div\n key={element.key}\n className={cn(\n 'min-w-0',\n 'col-start-2',\n isFirstControl && 'row-start-1'\n )}\n >\n {node}\n </div>\n ) : (\n node\n )\n\n if (!isFirstControl) return place(element)\n\n const wiring: Record<string, unknown> = {\n // Already the control's own id unless `controlId` overrode it.\n id: fieldId,\n 'aria-describedby': describedBy(own['aria-describedby'] as string)\n }\n\n /**\n * The one place the group overrules the control, and only because\n * `aria-invalid=\"false\"` is indistinguishable from no attribute at all\n * in the accessibility tree. It is the attribute's default, so a control\n * carrying it has asserted nothing, and treating it as a considered\n * \"this field is valid\" would let a template that ships\n * `aria-invalid={false}` -- a common enough default -- sit inside a\n * group with an error and render a field that is visibly invalid,\n * announces an error message, and tells a screen reader it is fine.\n *\n * Every other value is an assertion and is kept, including `grammar`\n * and `spelling`, which say more than the group's `true` would.\n */\n const ownInvalid = own['aria-invalid']\n const assertsValidity =\n ownInvalid !== undefined &&\n ownInvalid !== false &&\n ownInvalid !== 'false'\n\n if (isInvalid && !assertsValidity) {\n wiring['aria-invalid'] = true\n }\n\n if (takesFormAttributes(element)) {\n if (disabled !== undefined && own.disabled === undefined) {\n wiring.disabled = disabled\n }\n if (required !== undefined && own.required === undefined) {\n wiring.required = required\n }\n }\n\n return place(React.cloneElement(element, wiring as Partial<typeof own>))\n }\n\n const context = React.useMemo(\n () => ({ description, error, descriptionId, errorId, errorShown }),\n [description, error, descriptionId, errorId, errorShown]\n )\n\n return (\n <FormGroupContext.Provider value={context}>\n <div\n ref={ref}\n className={cn(formGroupVariants({ orientation }), className)}\n {...props}\n >\n {items.map((child, index) => {\n const slot = slots[index]\n return slot === null\n ? child\n : wire(child as React.ReactElement, slot)\n })}\n </div>\n </FormGroupContext.Provider>\n )\n }\n)\nFormGroup.displayName = 'FormGroup'\n\nexport {\n FormGroup,\n FormGroupProps,\n FieldDescription,\n FieldError,\n FieldMessageProps,\n useFormGroup\n}\n","'use client'\n\nimport * as React from 'react'\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst labelVariants = cva(\n 'font-medium leading-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-foreground-inverse',\n {\n variants: {\n size: {\n lg: 'text-lg',\n md: 'text-md',\n sm: 'text-sm',\n xs: 'text-xs',\n xl: 'text-xl'\n }\n },\n defaultVariants: {\n size: 'sm'\n }\n }\n)\n\nconst alignVariants = cva('', {\n variants: {\n align: {\n left: 'text-left',\n right: 'text-right'\n }\n },\n defaultVariants: {\n align: 'left'\n }\n})\n\ninterface LabelProps\n extends\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>,\n VariantProps<typeof labelVariants> {\n hintText?: string\n align?: 'left' | 'right'\n}\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n LabelProps\n>(({ className, size, hintText, align, ...props }, ref) => {\n const label = (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(\n labelVariants({ size }),\n alignVariants({ align }),\n className\n )}\n {...props}\n />\n )\n\n if (hintText) {\n return (\n <div className=\"flex flex-col\">\n {label}\n <div\n className={cn(\n alignVariants({ align }),\n 'font-semibold\ttext-xs text-foreground-muted dark:text-foreground-muted-dark'\n )}\n >\n {hintText}\n </div>\n </div>\n )\n }\n\n return label\n})\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label, LabelProps }\n","import * as React from 'react'\n\nimport { Checkbox, type CheckboxProps } from '../Checkbox'\nimport { ChoiceItem, resolveAriaInvalid, useChoiceGroup } from '../choice-group'\nimport { useCheckboxGroup } from './CheckboxGroup'\n\ninterface CheckboxGroupItemProps extends Omit<\n CheckboxProps,\n 'checked' | 'defaultChecked' | 'value'\n> {\n /** What this box contributes to the group's value when it is ticked. */\n value: string\n label?: React.ReactNode\n /** Hint for this option alone, announced with the box it belongs to. */\n description?: React.ReactNode\n}\n\n/**\n * One box in a `CheckboxGroup`, with the label and hint that belong to it.\n *\n * Whether it is ticked comes from the group, so `checked` is not a prop here;\n * `onCheckedChange` still is, for the caller who wants to know about this one\n * box as well as about the group. Rendered outside a group it is an ordinary\n * uncontrolled checkbox that happens to come with its label wired up.\n */\nconst CheckboxGroupItem = React.forwardRef<\n React.ElementRef<typeof Checkbox>,\n CheckboxGroupItemProps\n>(\n (\n {\n value,\n label,\n description,\n disabled,\n id,\n name,\n onCheckedChange,\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ownAriaInvalid,\n ...props\n },\n ref\n ) => {\n const group = useCheckboxGroup()\n const choiceGroup = useChoiceGroup()\n const generatedId = React.useId()\n const controlId = id ?? generatedId\n const descriptionId = `${controlId}-description`\n\n const isDisabled = disabled ?? choiceGroup?.disabled\n // `Checkbox` derives its border from this same attribute, so resolving it\n // here keeps what the box announces and what it draws in step.\n const ariaInvalid = resolveAriaInvalid(\n ownAriaInvalid,\n Boolean(choiceGroup?.invalid)\n )\n const describedBy =\n [ariaDescribedBy, description ? descriptionId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <ChoiceItem\n controlId={controlId}\n descriptionId={descriptionId}\n label={label}\n description={description}\n disabled={isDisabled}\n labelPosition={choiceGroup?.labelPosition ?? 'right'}\n >\n <Checkbox\n ref={ref}\n id={controlId}\n value={value}\n name={name ?? group?.name}\n disabled={isDisabled}\n checked={group ? group.value.includes(value) : undefined}\n onCheckedChange={checked => {\n group?.toggle(value, checked === true)\n onCheckedChange?.(checked)\n }}\n aria-describedby={describedBy}\n aria-invalid={ariaInvalid}\n {...props}\n />\n </ChoiceItem>\n )\n }\n)\nCheckboxGroupItem.displayName = 'CheckboxGroupItem'\n\nexport { CheckboxGroupItem, type CheckboxGroupItemProps }\n","import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\ninterface CodeBlockProps extends React.HTMLAttributes<HTMLElement> {\n label?: React.ReactNode\n language?: string\n}\n\nconst CodeBlock = React.forwardRef<HTMLElement, CodeBlockProps>(\n ({ className, label, language, children, ...props }, ref) => (\n <figure\n ref={ref}\n className={cn(\n 'flex flex-col gap-2 text-foreground dark:text-foreground-dark',\n className\n )}\n {...props}\n >\n {label != null && typeof label !== 'boolean' && (\n <figcaption className=\"text-xs font-medium leading-normal\">\n {label}\n </figcaption>\n )}\n <pre\n tabIndex={0}\n className={cn(\n 'overflow-auto rounded-sm p-3',\n 'bg-background-subtle dark:bg-background-subtle-dark',\n 'font-mono text-xs leading-normal',\n 'focus-visible:outline-hidden focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen10'\n )}\n >\n <code\n className={language ? `language-${language}` : undefined}\n data-language={language}\n >\n {children}\n </code>\n </pre>\n </figure>\n )\n)\nCodeBlock.displayName = 'CodeBlock'\n\nexport { CodeBlock, type CodeBlockProps }\n","'use client'\n\nimport * as React from 'react'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\nimport { cva } from 'class-variance-authority'\nimport { format as formatDate, isValid, parse, startOfDay } from 'date-fns'\nimport type { Matcher } from 'react-day-picker'\n\nimport { cn } from '@/lib/utils'\nimport { BsCalendar3 } from '@/assets'\n\nimport { Calendar } from '../Calendar'\nimport { formVariants } from '../Input'\n\nconst calendarTriggerVariants = cva([\n 'flex',\n 'h-6',\n 'w-6',\n 'shrink-0',\n '-mr-1',\n 'items-center',\n 'justify-center',\n 'self-center text-inherit',\n 'rounded-xs',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-2',\n 'focus-visible:outline-current',\n 'disabled:cursor-not-allowed',\n '[&>svg]:h-4',\n '[&>svg]:w-4'\n])\n\nconst dateInputVariants = cva(\n [\n 'flex',\n 'flex-grow',\n 'min-w-0',\n 'items-center',\n 'outline-hidden',\n 'bg-transparent',\n 'disabled:cursor-not-allowed'\n ],\n {\n variants: {\n variant: {\n primary: ['text-foreground', 'dark:text-foreground-dark'],\n error: ['text-feedback-error', 'dark:text-feedback-error-dark'],\n success: ['text-green-700', 'dark:text-feedback-success-dark']\n }\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n)\n\nconst ISO_FORMAT = 'yyyy-MM-dd'\n\nconst withinBounds = (date: Date, min?: Date, max?: Date) => {\n const day = startOfDay(date)\n return !(min && day < startOfDay(min)) && !(max && day > startOfDay(max))\n}\n\ntype DateInputInvalidReason = 'format' | 'range'\n\ninterface ReadDate {\n date: Date | null\n reason: DateInputInvalidReason | null\n}\n\nconst readDate = (\n text: string,\n pattern: string,\n min?: Date,\n max?: Date\n): ReadDate => {\n const trimmed = text.trim()\n if (!trimmed) {\n return { date: null, reason: null }\n }\n const date = parse(trimmed, pattern, new Date())\n if (!isValid(date)) {\n return { date: null, reason: 'format' }\n }\n if (date.getFullYear() < 1000 && formatDate(date, pattern) !== trimmed) {\n return { date: null, reason: 'format' }\n }\n return withinBounds(date, min, max)\n ? { date, reason: null }\n : { date: null, reason: 'range' }\n}\n\nconst describeRange = (pattern: string, min?: Date, max?: Date) => {\n if (min && max) {\n return `Enter a date from ${formatDate(min, pattern)} to ${formatDate(max, pattern)}`\n }\n if (min) {\n return `Enter a date on or after ${formatDate(min, pattern)}`\n }\n if (max) {\n return `Enter a date on or before ${formatDate(max, pattern)}`\n }\n return ''\n}\n\nconst validOrNull = (date: Date | null | undefined) =>\n date && isValid(date) ? date : null\n\nconst dayOf = (date: Date | null) => (date ? startOfDay(date).getTime() : null)\n\nconst sameDay = (a: Date | null, b: Date | null) =>\n a === b || (!!a && !!b && a.toDateString() === b.toDateString())\n\ninterface DateInputValueDetails {\n text: string\n invalid: boolean\n reason: DateInputInvalidReason | null\n}\n\ninterface DateInputProps extends Omit<\n React.ComponentPropsWithoutRef<'input'>,\n 'size' | 'type' | 'value' | 'defaultValue' | 'min' | 'max'\n> {\n value?: Date | null\n defaultValue?: Date | null\n onValueChange?: (date: Date | null, details: DateInputValueDetails) => void\n format?: string\n formatHint?: string\n min?: Date\n max?: Date\n variant?: 'primary' | 'error' | 'success'\n size?: 'sm' | 'default' | 'lg'\n formClassName?: string\n labelText?: string\n helpText?: string\n calendarLabel?: string\n invalidMessage?: string\n rangeMessage?: string\n}\n\nconst DateInput = React.forwardRef<HTMLInputElement, DateInputProps>(\n (\n {\n id,\n name,\n className,\n formClassName,\n variant = 'primary',\n size,\n value,\n defaultValue = null,\n onValueChange,\n format = 'dd/MM/yyyy',\n formatHint,\n min,\n max,\n labelText,\n helpText,\n calendarLabel = 'Choose date',\n invalidMessage = 'Enter a valid date',\n rangeMessage,\n disabled,\n readOnly,\n form,\n placeholder,\n onChange,\n onBlur,\n 'aria-describedby': ariaDescribedby,\n 'aria-invalid': ariaInvalid,\n ...props\n },\n ref\n ) => {\n const isControlled = value !== undefined\n const [internalValue, setInternalValue] = React.useState(defaultValue)\n const selected = validOrNull(isControlled ? value : internalValue)\n const selectedDay = dayOf(selected)\n\n const [text, setText] = React.useState(() =>\n selected ? formatDate(selected, format) : ''\n )\n const [open, setOpen] = React.useState(false)\n const [showInvalid, setShowInvalid] = React.useState(false)\n\n const minTime = validOrNull(min)?.getTime()\n const maxTime = validOrNull(max)?.getTime()\n const lower = minTime === undefined ? undefined : new Date(minTime)\n const upper = maxTime === undefined ? undefined : new Date(maxTime)\n\n const shown = readDate(text, format, lower, upper)\n const { reason } = shown\n const invalid = reason !== null\n const shownDay = dayOf(shown.date)\n const declined = shownDay !== null && shownDay !== selectedDay\n\n const report = (\n date: Date | null,\n nextText: string,\n nextReason: DateInputInvalidReason | null\n ) => {\n if (!isControlled) {\n setInternalValue(date)\n }\n onValueChange?.(date, {\n text: nextText,\n invalid: nextReason !== null,\n reason: nextReason\n })\n }\n\n const commit = (\n date: Date | null,\n nextText: string,\n nextReason: DateInputInvalidReason | null\n ) => {\n if (dayOf(date) === shownDay && nextReason === reason) {\n return\n }\n report(date, nextText, nextReason)\n }\n\n React.useEffect(() => {\n setText(current => {\n const parsed = readDate(current, format, lower, upper).date\n if (selected) {\n return sameDay(parsed, selected)\n ? current\n : formatDate(selected, format)\n }\n return parsed ? '' : current\n })\n }, [selectedDay, format, minTime, maxTime])\n\n React.useEffect(() => {\n if (selected && !withinBounds(selected, lower, upper)) {\n report(null, formatDate(selected, format), 'range')\n setShowInvalid(true)\n }\n }, [selectedDay, format, minTime, maxTime])\n\n const inputRef = React.useRef<HTMLInputElement | null>(null)\n const setRefs = (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof ref === 'function') {\n ref(node)\n } else if (ref) {\n ref.current = node\n }\n }\n\n const validityMessage =\n reason === 'range'\n ? (rangeMessage ?? describeRange(format, lower, upper))\n : reason === 'format' || declined\n ? invalidMessage\n : ''\n\n React.useEffect(() => {\n inputRef.current?.setCustomValidity(validityMessage)\n }, [validityMessage])\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const nextText = event.target.value\n const next = readDate(nextText, format, lower, upper)\n setText(nextText)\n commit(next.date, nextText, next.reason)\n if (next.reason === null) {\n setShowInvalid(false)\n }\n onChange?.(event)\n }\n\n const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {\n if (declined) {\n setText(selected ? formatDate(selected, format) : '')\n setShowInvalid(false)\n } else {\n if (shown.date) {\n setText(formatDate(shown.date, format))\n }\n setShowInvalid(invalid)\n }\n onBlur?.(event)\n }\n\n const handleSelect = (next: Date) => {\n const nextText = formatDate(next, format)\n setText(nextText)\n commit(next, nextText, null)\n setShowInvalid(false)\n setOpen(false)\n }\n\n const flagged = showInvalid && invalid\n const shownVariant = flagged ? 'error' : variant\n\n const hint = formatHint ?? format.toUpperCase()\n\n const generatedId = React.useId()\n const inputId = id ?? generatedId\n const helpTextId = `${inputId}-helptext`\n const formatHintId = `${inputId}-format`\n const describedBy = [\n ariaDescribedby,\n formatHintId,\n helpText ? helpTextId : undefined\n ]\n .filter(Boolean)\n .join(' ')\n\n const disabledDays: Matcher[] = []\n if (lower) {\n disabledDays.push({ before: startOfDay(lower) })\n }\n if (upper) {\n disabledDays.push({ after: startOfDay(upper) })\n }\n\n const field = (\n <PopoverPrimitive.Root open={open} onOpenChange={setOpen}>\n <PopoverPrimitive.Anchor asChild>\n <div\n className={cn(\n formVariants({ variant: shownVariant, size }),\n formClassName\n )}\n >\n <input\n id={inputId}\n type=\"text\"\n autoComplete=\"off\"\n className={cn(\n dateInputVariants({ variant: shownVariant }),\n className\n )}\n ref={setRefs}\n form={form}\n value={text}\n onChange={handleChange}\n onBlur={handleBlur}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={placeholder ?? hint}\n aria-describedby={describedBy}\n aria-invalid={\n ariaInvalid ?? (shownVariant === 'error' || undefined)\n }\n {...props}\n />\n <span id={formatHintId} className=\"sr-only\">\n {hint}\n </span>\n <PopoverPrimitive.Trigger\n type=\"button\"\n disabled={disabled || readOnly}\n aria-label={calendarLabel}\n className={calendarTriggerVariants()}\n >\n <BsCalendar3 aria-hidden=\"true\" />\n </PopoverPrimitive.Trigger>\n </div>\n </PopoverPrimitive.Anchor>\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n align=\"start\"\n sideOffset={4}\n aria-label={calendarLabel}\n className=\"z-50 outline-hidden\"\n onOpenAutoFocus={event => event.preventDefault()}\n >\n <Calendar\n mode=\"single\"\n required\n autoFocus\n selected={selected ?? undefined}\n onSelect={handleSelect}\n defaultMonth={selected ?? undefined}\n startMonth={lower}\n endMonth={upper}\n disabled={disabledDays}\n />\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n {name && (\n <input\n type=\"hidden\"\n name={name}\n form={form}\n disabled={disabled}\n value={selected ? formatDate(selected, ISO_FORMAT) : ''}\n />\n )}\n </PopoverPrimitive.Root>\n )\n\n if (!labelText && !helpText) {\n return field\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n htmlFor={inputId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n {field}\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nDateInput.displayName = 'DateInput'\n\nexport {\n DateInput,\n DateInputProps,\n DateInputValueDetails,\n DateInputInvalidReason\n}\n","import React from 'react'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\nimport { BsX, BsSearch } from '@/assets'\n\n/**\n * The design draws the leading icon at 16x16, so the size is set here rather\n * than left to the icon that is passed in. `react-icons` renders at `1em`,\n * which ties every glyph to whatever font size the field inherits -- a search\n * icon and a caller's own icon then come out at different sizes in the same\n * form, and both move when the surrounding text does.\n */\nconst leftSideVariants = cva([\n 'flex',\n 'shrink-0',\n 'items-center',\n 'text-inherit',\n '[&>svg]:h-4',\n '[&>svg]:w-4'\n])\n\n/**\n * The clear control is a 24x24 target around a 12x12 glyph: the cross is drawn\n * at 12, and 24 is the smallest target WCAG 2.5.8 accepts. The negative margin\n * is half the difference between the two -- the padding the target gains on\n * the right is taken back out of the field's own padding, so the target grows\n * around the cross rather than pushing it inwards, and the cross stays exactly\n * where the design puts it.\n */\nconst rightSideVariants = cva([\n 'flex',\n 'h-6',\n 'w-6',\n 'shrink-0',\n '-mr-1.5',\n 'items-center',\n 'justify-center',\n 'self-center text-inherit',\n 'rounded-xs',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-2',\n 'focus-visible:outline-current',\n '[&>svg]:h-3',\n '[&>svg]:w-3'\n])\n\nconst formVariants = cva(\n [\n 'flex',\n 'border',\n 'border-2',\n 'rounded-lg',\n 'overflow-hidden',\n 'px-3',\n 'items-center',\n 'gap-1.5',\n '[&:has(:disabled)]:border-none'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'border-border-subtle',\n 'dark:border-border-subtle-dark',\n 'bg-background-alt',\n 'dark:bg-background-alt-dark',\n 'hover:border-border-hover',\n 'hover:focus-within:border-border-focus',\n 'dark:hover:focus-within:border-border-focus-dark',\n 'focus-within:shadow-brandGreen',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'dark:focus-within:shadow-brandGreen-10'\n ],\n error: [\n 'border-feedback-error',\n 'text-feedback-error',\n 'bg-red-50',\n 'hover:border-red-700',\n 'focus-within:shadow-red',\n 'dark:border-feedback-error-dark',\n 'dark:text-feedback-error-dark',\n 'dark:bg-background-alt-dark'\n ],\n success: [\n 'border-feedback-success',\n 'text-feedback-success',\n 'bg-green-50',\n 'hover:border-green-700',\n 'focus-within:shadow-green',\n 'dark:border-feedback-success-dark',\n 'dark:text-feedback-success-dark',\n 'dark:bg-background-alt-dark'\n ]\n },\n /**\n * `sm` and `default` are the two heights the design file specifies, and\n * the field had neither: its height was a 12px padding plus whatever\n * line box the inherited font produced, which was 40px when #264 was\n * filed and is 52px today. The design has no size that follows the text\n * like that.\n *\n * So they are heights rather than a padding that adds up to one. That\n * also fixes the disabled field, which drops its 2px border and was 4px\n * shorter than every other field because of it.\n *\n * The two of them match `Select`'s `sm` and `lg` to the pixel, which is\n * what lets a select and an input sit next to each other in a row. The\n * names do not match, and cannot: 42px is the size the design calls\n * regular, so it is the default here, and `Select` had already spent\n * `lg` on it.\n *\n * `lg` is not in the design file. It is 48px because that is the height\n * of a large `Button` -- both of its variants, which is what the\n * compound variants in `Button` are there to line up -- so a large field\n * and the button that submits it are the same height.\n */\n size: {\n sm: ['h-[37px]'],\n default: ['h-[42px]'],\n lg: ['h-[48px]']\n }\n },\n defaultVariants: {\n size: 'default'\n }\n }\n)\n\nconst inputVariants = cva(\n ['flex', 'flex-grow', 'items-center', 'outline-hidden', 'bg-transparent'],\n {\n variants: {\n variant: {\n primary: ['text-foreground', 'dark:text-foreground-dark'],\n error: ['text-feedback-error', 'dark:text-feedback-error-dark'],\n success: ['text-green-700', 'dark:text-feedback-success-dark']\n }\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n)\n\ntype InputType =\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'month'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week'\n | (string & {})\n\n/**\n * `size` is the field's height rather than the HTML attribute of that name,\n * which is omitted. The attribute asks for a width in characters, and the\n * `<input>` here is `flex-grow` inside the field, so it was already being\n * overruled by the layout before it could mean anything.\n */\ninterface InputProps extends Omit<React.HTMLProps<HTMLInputElement>, 'size'> {\n variant: 'primary' | 'error' | 'success'\n size?: 'sm' | 'default' | 'lg'\n type: InputType\n formClassName?: string\n leftSideClassName?: string\n leftSideChild?: React.ReactNode\n rightSideChild?: React.ReactNode\n labelText?: string\n helpText?: string\n clearLabel?: string\n onClear: () => void\n}\n\nconst convertTypeToLeftComponent = (type: InputType) => {\n const mapping: Partial<Record<InputType, React.ReactNode>> = {\n search: <BsSearch aria-hidden=\"true\" />\n }\n return mapping[type] ?? null\n}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n type,\n id,\n className,\n formClassName,\n leftSideClassName,\n variant,\n size,\n leftSideChild,\n rightSideChild,\n labelText,\n helpText,\n clearLabel = 'Clear input',\n onClear,\n 'aria-describedby': ariaDescribedby,\n ...props\n },\n ref\n ) => {\n const generatedId = React.useId()\n const inputId = id ?? generatedId\n const helpTextId = `${inputId}-helptext`\n const describedBy =\n [ariaDescribedby, helpText ? helpTextId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n const leftSideComponent = leftSideChild ?? convertTypeToLeftComponent(type)\n const rightSideComponent = rightSideChild ?? (\n <BsX strokeWidth={0.6} aria-hidden=\"true\" />\n )\n\n const field = (\n <div className={cn(formVariants({ variant, size }), formClassName)}>\n {leftSideComponent && (\n <div className={cn(leftSideVariants(), leftSideClassName)}>\n {leftSideComponent}\n </div>\n )}\n <input\n id={inputId}\n type={type}\n className={cn(inputVariants({ variant }), className)}\n ref={ref}\n aria-describedby={describedBy}\n {...props}\n />\n <button\n type=\"button\"\n onClick={onClear}\n aria-label={clearLabel}\n className={rightSideVariants()}\n >\n {rightSideComponent}\n </button>\n </div>\n )\n\n if (!labelText && !helpText) {\n return field\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n htmlFor={inputId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n {field}\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nInput.displayName = 'Input'\n\nexport { Input, InputProps, formVariants }\n","import React from 'react'\nimport { cva, VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { BsPlus } from '@/assets'\n\nconst chipVariants = cva(\n [\n [\n 'inline-flex',\n 'rounded-full',\n 'shrink-0',\n 'items-center',\n 'justify-center',\n 'border border-2',\n 'font-semibold',\n 'leading-normal',\n 'text-foreground',\n 'dark:text-foreground-dark',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-blue'\n ],\n [\n 'disabled:border-none',\n 'disabled:text-foreground-subtle',\n 'disabled:bg-background-subtle',\n 'dark:disabled:bg-background-subtle-dark',\n 'dark:disabled:text-foreground-subtle-dark'\n ],\n [\n 'data-[active]:bg-foreground',\n 'data-[active]:border-none',\n 'data-[active]:text-foreground-inverse',\n 'dark:data-[active]:bg-foreground-dark',\n 'dark:data-[active]:text-foreground-inverse-dark'\n ]\n ],\n {\n variants: {\n variant: {\n default: [\n 'bg-background',\n 'border-border-subtle',\n 'dark:bg-background-dark',\n 'dark:border-border-subtle-dark'\n ],\n warning: [\n 'bg-yellow-50',\n 'border-feedback-warning',\n 'dark:bg-background-dark',\n 'dark:border-feedback-warning-dark'\n ],\n success: [\n 'bg-green-50',\n 'border-feedback-success',\n 'dark:bg-background-dark',\n 'dark:border-feedback-success-dark'\n ],\n error: [\n 'bg-red-50',\n 'border-feedback-error',\n 'dark:bg-background-dark',\n 'dark:border-feedback-error-dark'\n ],\n info: [\n 'bg-blue-50',\n 'border-primary-30',\n 'dark:bg-background-dark',\n 'dark:border-primary-30'\n ]\n },\n size: {\n default: ['text-xs', 'px-2.5', 'py-2 h-[26px]', 'gap-1'],\n lg: ['text-sm', 'pl-4', 'pr-3', 'py-1.5', 'h-[33px]', 'gap-1.5']\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'default'\n }\n }\n)\n\ninterface ChipProps\n extends\n React.ComponentPropsWithRef<'button'>,\n VariantProps<typeof chipVariants> {\n active?: boolean\n}\n\nconst Chip = React.forwardRef<HTMLButtonElement, ChipProps>(\n (\n { variant, size, children, disabled, onClick, active, type, ...props },\n ref\n ) => {\n return (\n <button\n type={type ?? 'button'}\n onClick={onClick}\n data-active={active || undefined}\n aria-pressed={active === undefined ? undefined : active}\n className={cn(chipVariants({ variant, size }))}\n disabled={disabled}\n ref={ref}\n {...props}\n >\n {children}\n <div\n aria-hidden=\"true\"\n className=\"flex items-center justify-center w-6 h-6 p-2.5\"\n >\n <BsPlus\n className={cn(size == 'lg' ? 'h-4 w-4' : 'h-3 w-3', [\n 'stroke-current',\n 'shrink-0'\n ])}\n />\n </div>\n </button>\n )\n }\n)\n\nChip.displayName = 'Chip'\n\nexport { Chip, ChipProps }\n","import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { Label, type LabelProps } from '../Label'\n\nconst verticalAlignVariants = cva('', {\n variants: {\n varticalAlign: {\n top: 'items-start',\n middle: 'items-center',\n bottom: 'items-end'\n }\n },\n defaultVariants: {\n varticalAlign: 'top'\n }\n})\n\ntype Props = Omit<LabelProps, 'children' | 'align'> &\n VariantProps<typeof verticalAlignVariants> &\n React.PropsWithChildren<{\n label: string\n position?: 'left' | 'right'\n varticalAlign?: 'top' | 'middle' | 'bottom'\n }>\n\nconst ControlLabel: React.FC<Props> = ({\n label,\n position = 'right',\n varticalAlign,\n children,\n htmlFor,\n ...labelProps\n}) => {\n const generatedId = React.useId()\n const onlyChild = React.isValidElement<{ id?: string }>(children)\n ? children\n : null\n const childId = onlyChild?.props.id\n const controlId = htmlFor ?? childId ?? (onlyChild ? generatedId : undefined)\n const control =\n onlyChild && !childId && controlId\n ? React.cloneElement(onlyChild, { id: controlId })\n : children\n\n const labelElement = (align: 'left' | 'right') => (\n <Label {...labelProps} htmlFor={controlId} align={align}>\n {label}\n </Label>\n )\n\n return (\n <div\n className={cn(\n verticalAlignVariants({\n varticalAlign\n }),\n 'flex space-x-2'\n )}\n >\n {position === 'left' && labelElement('right')}\n {control}\n {position === 'right' && labelElement('left')}\n </div>\n )\n}\n\nexport { ControlLabel }\n","import React from 'react'\nimport { cn } from '@/lib/utils'\nimport { IconType } from '@/assets'\n\ninterface Props extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n selected?: boolean\n icon?: IconType\n}\n\nconst Link = React.forwardRef<HTMLAnchorElement, Props>(\n (\n {\n className,\n onClick,\n selected = false,\n children,\n icon: Icon,\n 'aria-current': ariaCurrent,\n ...props\n },\n ref\n ) => {\n const selectedClasses =\n 'cursor-default text-white dark:text-foreground-inverse-dark bg-background-inverse dark:bg-background-inverse-dark'\n const hoverClasses =\n 'hover:bg-grey-100 hover:underline dark:hover:bg-grey-700'\n const focusClasses =\n 'focus:shadow-brandGreen focus:underline dark:focus:shadow-brandGreen-10'\n const unselectedFocusClasses = 'focus:bg-grey-100 dark:focus:bg-grey-700'\n\n return (\n <a\n className={cn(\n 'flex items-center space-x-3',\n 'py-1 px-1.5',\n 'rounded',\n 'cursor-pointer',\n 'outline-hidden',\n 'dark:text-white',\n focusClasses,\n selected\n ? selectedClasses\n : `${hoverClasses} ${unselectedFocusClasses}`,\n className\n )}\n ref={ref}\n aria-current={ariaCurrent ?? (selected ? 'page' : undefined)}\n onClick={e => {\n if (selected) {\n e.preventDefault()\n } else {\n onClick?.(e)\n }\n }}\n {...props}\n >\n {Icon ? <Icon className=\"mr-1\" aria-hidden=\"true\" /> : null}\n {children}\n </a>\n )\n }\n)\n\nLink.displayName = 'Link'\n\nexport { Link }\n","'use client'\n\nimport * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { BsXLg } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst Modal = DialogPrimitive.Root\n\nconst ModalTrigger = DialogPrimitive.Trigger\n\nconst ModalPortal = DialogPrimitive.Portal\n\nconst ModalCloseFooter = DialogPrimitive.Close\n\nconst ModalOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn('fixed inset-0 z-50 bg-background/80', className)}\n {...props}\n />\n))\nModalOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst ModalContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <ModalPortal>\n <ModalOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 shadow-lg bg-background dark:bg-foreground duration-200 sm:rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n </ModalPortal>\n))\nModalContent.displayName = DialogPrimitive.Content.displayName\n\nconst headerVariants = cva(\n [\n 'flex',\n 'items-center',\n 'justify-between',\n 'p-6',\n 'space-y-1.5',\n 'text-center',\n 'sm:text-left',\n 'border-border-subtle',\n 'dark:border-border-subtle-dark'\n ],\n {\n variants: {\n variant: {\n default: ['border-b'],\n form: ['pb-0', 'border-b-0']\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nconst ModalHeader = ({\n className,\n variant,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof headerVariants>) => (\n <div className={cn(headerVariants({ variant, className }))} {...props} />\n)\n\nModalHeader.displayName = 'ModalHeader'\n\nconst ModalFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col p-6 pt-0 gap-2.5', className)} {...props} />\n)\nModalFooter.displayName = 'ModalFooter'\n\nconst ModalTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight text-foreground dark:text-foreground-inverse',\n className\n )}\n {...props}\n />\n))\nModalTitle.displayName = DialogPrimitive.Title.displayName\n\nconst ModalClose = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Close>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Close\n ref={ref}\n className={cn(\n 'rounded-xs opacity-70 ring-offset-background transition-opacity disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted',\n 'hover:opacity-100 focus-visible:opacity-100',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current',\n className\n )}\n {...props}\n >\n <div\n aria-hidden=\"true\"\n className=\"text-foreground dark:text-foreground-inverse\"\n >\n <BsXLg className=\"w-5 h-5\" strokeWidth={0.833} />\n </div>\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n))\nModalClose.displayName = 'ModalClose'\n\nconst descriptionVariants = cva(\n [\n 'text-sm',\n 'text-foreground-muted',\n 'border-border-subtle',\n 'dark:border-border-subtle-dark'\n ],\n {\n variants: {\n variant: {\n default: ['border-b'],\n form: ['border-b-0']\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nconst ModalDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> &\n VariantProps<typeof descriptionVariants>\n>(({ className, variant, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(descriptionVariants({ variant, className }))}\n {...props}\n />\n))\nModalDescription.displayName = 'ModalDescription'\n\nexport {\n Modal,\n ModalPortal,\n ModalOverlay,\n ModalClose,\n ModalCloseFooter,\n ModalTrigger,\n ModalContent,\n ModalHeader,\n ModalFooter,\n ModalTitle,\n ModalDescription\n}\n","import * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\ntype PageHeaderSize = 'md' | 'sm'\n\nconst PageHeaderContext = React.createContext<PageHeaderSize>('md')\n\nconst pageHeaderVariants = cva(\n [\n 'flex flex-wrap items-center justify-between gap-x-6 gap-y-2',\n 'rounded-lg bg-background dark:bg-background-dark',\n 'text-foreground dark:text-foreground-dark'\n ],\n {\n variants: {\n size: {\n md: 'min-h-14 px-4 py-2',\n sm: 'min-h-11 px-3 py-1.5'\n }\n },\n defaultVariants: {\n size: 'md'\n }\n }\n)\n\ninterface PageHeaderProps\n extends\n React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof pageHeaderVariants> {}\n\nconst PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(\n ({ className, size, ...props }, ref) => (\n <PageHeaderContext.Provider value={size ?? 'md'}>\n <div\n ref={ref}\n className={cn(pageHeaderVariants({ size }), className)}\n {...props}\n />\n </PageHeaderContext.Provider>\n )\n)\nPageHeader.displayName = 'PageHeader'\n\ninterface PageHeaderTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {\n asChild?: boolean\n count?: React.ReactNode\n}\n\nconst PageHeaderTitle = React.forwardRef<\n HTMLHeadingElement,\n PageHeaderTitleProps\n>(({ className, asChild = false, count, ...props }, ref) => {\n const size = React.useContext(PageHeaderContext)\n const Comp = asChild ? Slot : 'h1'\n\n return (\n <div className=\"flex min-w-0 items-baseline gap-2\">\n <Comp\n ref={ref}\n className={cn(\n 'min-w-0 font-semibold leading-tight',\n size === 'sm' ? 'text-sm' : 'text-xl',\n className\n )}\n {...props}\n />\n {count !== undefined && count !== null && count !== false && (\n <span className=\"shrink-0 text-xs text-foreground-muted dark:text-foreground-muted-dark\">\n {count}\n </span>\n )}\n </div>\n )\n})\nPageHeaderTitle.displayName = 'PageHeaderTitle'\n\nconst PageHeaderActions = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'ml-auto flex flex-wrap items-center gap-x-6 gap-y-2',\n className\n )}\n {...props}\n />\n))\nPageHeaderActions.displayName = 'PageHeaderActions'\n\nexport {\n PageHeader,\n PageHeaderActions,\n PageHeaderTitle,\n pageHeaderVariants,\n type PageHeaderProps,\n type PageHeaderTitleProps\n}\n","import React, { useState, useEffect } from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { BsChevronLeft, BsChevronRight } from '@/assets'\n\ninterface PaginationProps {\n currentPage: number\n setCurrentPage: React.Dispatch<React.SetStateAction<number>>\n numberOfItemsPerPage: number\n totalNumberOfFilteredItems: number\n label?: string\n previousLabel?: string\n nextLabel?: string\n pageLabel?: (page: number) => string\n}\n\nconst PaginationVariants = cva([\n '[&>*]:flex',\n '[&>*]:items-center',\n '[&>*]:justify-center',\n 'w-fit'\n])\n\nconst PageNumberStyles = cva([\n 'min-w-40',\n 'max-w-40',\n 'h-10',\n 'px-4',\n 'py-2',\n 'rounded-xs',\n 'text-foreground-muted',\n 'active:bg-accent',\n 'active:text-primary-10',\n 'dark:hover:bg-background-dark',\n 'dark:active:bg-primary-30',\n 'dark:active:text-grey-900'\n])\n\nconst PageNumberActiveStyles = cva([\n 'bg-accent',\n 'text-primary-10',\n 'hover:bg-accent',\n 'hover:text-primary-10',\n 'dark:bg-primary-30',\n 'dark:text-grey-900',\n 'dark:hover:bg-primary-30',\n 'dark:hover:text-grey-900'\n])\n\ninterface PaginationProps\n extends\n React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof PaginationVariants> {}\n\nexport const Pagination = React.forwardRef<HTMLDivElement, PaginationProps>(\n (\n {\n className,\n currentPage,\n setCurrentPage,\n numberOfItemsPerPage,\n totalNumberOfFilteredItems,\n label = 'Pagination',\n previousLabel = 'Go to previous page',\n nextLabel = 'Go to next page',\n pageLabel = page => `Go to page ${page}`,\n ...props\n },\n ref\n ) => {\n const currentRowsLength = totalNumberOfFilteredItems ?? 0\n\n const totalPages = React.useMemo(() => {\n return Math.ceil(\n currentRowsLength > 0 ? currentRowsLength / numberOfItemsPerPage : 0\n )\n }, [currentRowsLength, numberOfItemsPerPage])\n\n const allPages = [...Array(totalPages + 1).keys()].slice(1)\n const [pageNumbers, setPageNumbers] = useState(allPages)\n const [showLeftDots, setShowLeftDots] = useState(false)\n const [showRightDots, setShowRightDots] = useState(false)\n const noOfSiblings = 1\n const noOfPagesShown = noOfSiblings * 2 + 5\n\n useEffect(() => {\n if (totalPages <= noOfPagesShown) {\n setPageNumbers(allPages)\n setShowRightDots(false)\n setShowLeftDots(false)\n } else if (currentPage <= noOfPagesShown - 3) {\n const pages = allPages.slice(0, noOfPagesShown - 2)\n pages.push(totalPages)\n setPageNumbers(pages)\n setShowRightDots(true)\n setShowLeftDots(false)\n } else if (\n noOfPagesShown - 3 < currentPage &&\n currentPage < totalPages - 3\n ) {\n const pages = [1]\n const start = Math.max(2, currentPage - noOfSiblings)\n const end = Math.min(totalPages - 1, currentPage + noOfSiblings)\n for (let i = start; i <= end; i++) {\n pages.push(i)\n }\n pages.push(totalPages)\n setPageNumbers(pages)\n setShowRightDots(true)\n setShowLeftDots(true)\n } else if (currentPage >= totalPages - 3) {\n const pages = allPages.slice(-noOfPagesShown + 2)\n pages.unshift(1)\n setPageNumbers(pages)\n setShowRightDots(false)\n setShowLeftDots(true)\n }\n }, [currentPage, totalPages])\n\n const goToNextPage = () => {\n if (currentPage !== totalPages) setCurrentPage(currentPage + 1)\n }\n\n const goToPrevPage = () => {\n if (currentPage !== 1) setCurrentPage(currentPage - 1)\n }\n return (\n <nav\n aria-label={label}\n className={cn(PaginationVariants(), className)}\n ref={ref}\n {...props}\n >\n <ul>\n <li className=\"hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs\">\n <button\n type=\"button\"\n aria-label={previousLabel}\n onClick={goToPrevPage}\n disabled={currentPage === 1 || totalPages === 0}\n >\n <BsChevronLeft\n aria-hidden=\"true\"\n className={\n 'w-3 h-9 pt-3 pb-3 -mb-1 text-foreground dark:text-foreground-dark'\n }\n />\n </button>\n </li>\n\n {pageNumbers.map(pgNumber => (\n <React.Fragment key={pgNumber}>\n {pgNumber === totalPages && showRightDots ? (\n <li\n aria-hidden=\"true\"\n className=\"flex items-center px-4 min-w-40 max-w-40 text-foreground-muted\"\n >\n ...\n </li>\n ) : null}\n\n <li>\n <button\n type=\"button\"\n aria-label={pageLabel(pgNumber)}\n aria-current={currentPage === pgNumber ? 'page' : undefined}\n onClick={() => setCurrentPage(pgNumber)}\n className={cn(\n PageNumberStyles(),\n currentPage === pgNumber && PageNumberActiveStyles()\n )}\n >\n <div className=\"text-sm\">{pgNumber}</div>\n </button>\n </li>\n\n {pgNumber === 1 && showLeftDots ? (\n <li\n aria-hidden=\"true\"\n className=\"flex items-center px-4 max-w-40 min-w-40 text-foreground-muted\"\n >\n ...\n </li>\n ) : null}\n </React.Fragment>\n ))}\n\n <li className=\"hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs\">\n <button\n type=\"button\"\n aria-label={nextLabel}\n onClick={goToNextPage}\n disabled={currentPage === totalPages || totalPages === 0}\n >\n <BsChevronRight\n aria-hidden=\"true\"\n className={\n 'w-3 h-9 py-3 -mb-1 text-foreground dark:text-foreground-dark'\n }\n />\n </button>\n </li>\n </ul>\n </nav>\n )\n }\n)\n\nPagination.displayName = 'Pagination'\n","import React, { useState } from 'react'\nimport { cva } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\nimport { BsEye, BsEyeSlash } from '@/assets'\n\nimport { formVariants } from '../Input'\n\n/**\n * A 24x24 target around the 16x16 eye, for the same reason `Input`'s clear\n * control has one: 24 is the smallest target WCAG 2.5.8 accepts. The negative\n * margin is half the difference between the two, so the target grows around\n * the eye rather than pushing it in from the edge of the field.\n */\nconst toggleMaskVariants = cva([\n 'flex',\n 'h-6',\n 'w-6',\n 'shrink-0',\n '-mr-1',\n 'items-center',\n 'justify-center',\n 'self-center text-inherit',\n 'rounded-xs',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-2',\n 'focus-visible:outline-current',\n '[&>svg]:h-4',\n '[&>svg]:w-4'\n])\n\nconst passwordVariants = cva(\n ['flex', 'flex-grow', 'items-center', 'outline-hidden', 'bg-transparent'],\n {\n variants: {\n variant: {\n primary: ['text-foreground', 'dark:text-foreground-dark'],\n error: ['text-feedback-error', 'dark:text-feedback-error-dark'],\n success: ['text-green-700', 'dark:text-feedback-success-dark']\n }\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n)\n\n/**\n * `size` is the field's height, and is passed through to the same variants\n * `Input` uses so the two line up in a form. As there, it displaces the HTML\n * attribute of that name, which the `flex-grow` input was overruling anyway.\n */\ninterface PasswordProps extends Omit<\n React.HTMLProps<HTMLInputElement>,\n 'size'\n> {\n formClassName?: string\n variant?: 'primary' | 'error' | 'success'\n size?: 'sm' | 'default' | 'lg'\n toggleMask?: boolean\n labelText?: string\n helpText?: string\n showLabel?: string\n hideLabel?: string\n}\n\nconst Password = React.forwardRef<HTMLInputElement, PasswordProps>(\n (\n {\n id,\n className,\n formClassName,\n variant = 'primary',\n size,\n toggleMask = true,\n labelText,\n helpText,\n showLabel = 'Show password',\n hideLabel = 'Hide password',\n 'aria-describedby': ariaDescribedby,\n ...props\n },\n ref\n ) => {\n const [isMaskOn, setIsMaskOn] = useState(true)\n\n const generatedId = React.useId()\n const inputId = id ?? generatedId\n const helpTextId = `${inputId}-helptext`\n const describedBy =\n [ariaDescribedby, helpText ? helpTextId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n const onToggleMask = () => setIsMaskOn(isMaskOn => !isMaskOn)\n\n const field = (\n <div className={cn(formVariants({ variant, size }), formClassName)}>\n <input\n id={inputId}\n type={isMaskOn ? 'password' : 'text'}\n className={cn(passwordVariants({ variant }), className)}\n ref={ref}\n aria-describedby={describedBy}\n {...props}\n />\n {toggleMask && (\n <button\n type=\"button\"\n onClick={onToggleMask}\n aria-label={isMaskOn ? showLabel : hideLabel}\n aria-pressed={!isMaskOn}\n aria-controls={inputId}\n className={toggleMaskVariants()}\n >\n {isMaskOn ? (\n <BsEye aria-hidden=\"true\" />\n ) : (\n <BsEyeSlash aria-hidden=\"true\" />\n )}\n </button>\n )}\n </div>\n )\n\n if (!labelText && !helpText) {\n return field\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n htmlFor={inputId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n {field}\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nPassword.displayName = 'Password'\n\nexport { Password, PasswordProps }\n","'use client'\n\nimport * as React from 'react'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\nimport * as ScrollArea from '@radix-ui/react-scroll-area'\n\nimport { cn } from '@/lib/utils'\n\nconst popoverVariants = cva([\n 'z-50',\n 'border border-2 border-border-subtle dark:border-border-dark',\n 'rounded-lg',\n 'bg-background dark:bg-background-dark',\n 'text-foreground text-sm font-normal dark:text-white',\n 'shadow',\n 'outline-hidden',\n 'min-w-72',\n 'pl-2 pr-[20px] py-3'\n])\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverClose = PopoverPrimitive.Close\n\nexport interface PopoverProps\n extends\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>,\n VariantProps<typeof popoverVariants> {}\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(\n (\n { className, align = 'center', sideOffset = 4, children, ...props },\n ref\n ) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(popoverVariants(), className)}\n {...props}\n >\n {children}\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n )\n)\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\ntype PopoverScrollAreaProps = React.PropsWithChildren<{\n className?: string\n}>\n\nconst PopoverScrollArea: React.FC<PopoverScrollAreaProps> = ({\n className,\n children\n}) => {\n return (\n <ScrollArea.Root className={cn('w-full h-full', className)} type=\"auto\">\n <ScrollArea.Viewport className=\"w-full h-full\">\n {children}\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar\n orientation=\"vertical\"\n className=\"w-3 pr-1 py-2 -mr-[20px]\"\n >\n <ScrollArea.Thumb className=\"bg-grey-200 w-2 rounded-lg\" />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n )\n}\n\ninterface PopoverSeparatorProps extends React.ComponentPropsWithoutRef<\n typeof SeparatorPrimitive.Root\n> {\n fullLength?: boolean\n}\n\nconst PopoverSeparator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n PopoverSeparatorProps\n>(\n (\n { className, orientation = 'horizontal', fullLength = false, ...props },\n ref\n ) => (\n <div className=\"w-full\">\n <SeparatorPrimitive.Root\n ref={ref}\n decorative\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-border-subtle dark:bg-border-dark',\n orientation === 'horizontal' ? 'h-[1px] w-fill' : 'h-fill w-[1px]',\n fullLength && orientation === 'horizontal' ? '-ml-2 -mr-[20px]' : '',\n className\n )}\n {...props}\n />\n </div>\n )\n)\nPopoverSeparator.displayName = SeparatorPrimitive.Root.displayName\n\ntype PopoverHeaderProps = React.PropsWithChildren<{\n className?: string\n}>\n\nconst PopoverHeader: React.FC<PopoverHeaderProps> = ({\n className,\n children\n}) => {\n return (\n <>\n <div className={cn('w-full pb-4', className)}>{children}</div>\n <PopoverSeparator fullLength />\n </>\n )\n}\n\ntype PopoverFooterProps = React.PropsWithChildren<{\n className?: string\n}>\n\nconst PopoverFooter: React.FC<PopoverFooterProps> = ({\n className,\n children\n}) => {\n return (\n <div className=\"w-full -mb-3\">\n <PopoverSeparator fullLength />\n <div className={cn('py-2', className)}>{children}</div>\n </div>\n )\n}\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverScrollArea,\n PopoverHeader,\n PopoverFooter,\n PopoverSeparator,\n PopoverClose\n}\n","import * as React from 'react'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\n\nimport { cn } from '@/lib/utils'\nimport {\n ChoiceGroupContext,\n ChoiceGroupFieldset,\n choiceGroupItemsVariants\n} from '../choice-group'\n\ninterface RadioGroupProps extends React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Root\n> {\n /** The group's name, rendered as its `<legend>`. */\n legend?: React.ReactNode\n /** Hint under the legend, announced when focus enters the group. */\n description?: React.ReactNode\n /** Validation message under the options, announced the same way. */\n error?: React.ReactNode\n /**\n * Marks the options invalid independently of `error`, and wins over it in\n * both directions -- the same split `FormGroup` and `CheckboxGroup` draw.\n */\n invalid?: boolean\n /** Which side of its control each label sits on. */\n labelPosition?: 'left' | 'right'\n /** Classes for the `<fieldset>` the group renders. */\n className?: string\n}\n\n/**\n * A set of radios that belong to one question, of which exactly one can be\n * chosen.\n *\n * ```tsx\n * <RadioGroup legend=\"Delivery\" defaultValue=\"standard\" name=\"delivery\">\n * <Radio value=\"standard\" label=\"Standard\" description=\"3-5 working days\" />\n * <Radio value=\"express\" label=\"Express\" description=\"Next working day\" />\n * </RadioGroup>\n * ```\n *\n * `orientation` now lays the options out as well as setting which arrow keys\n * move between them -- it used to do only the second, which meant a horizontal\n * group was a column you navigated with the left and right arrows. The two\n * were never independent in practice: a reader arrows in the direction the\n * options are drawn.\n *\n * `className` lands on the `<fieldset>`, which is the group's outermost\n * element and the one to size or space. Spacing between the options is\n * `orientation`'s job.\n */\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n RadioGroupProps\n>(\n (\n {\n legend,\n description,\n error,\n invalid,\n labelPosition = 'right',\n orientation = 'vertical',\n className,\n ...props\n },\n ref\n ) => {\n const isInvalid = invalid ?? Boolean(error)\n const groupContext = React.useMemo(\n () => ({ invalid: isInvalid, labelPosition, disabled: props.disabled }),\n [isInvalid, labelPosition, props.disabled]\n )\n\n return (\n <ChoiceGroupFieldset\n legend={legend}\n description={description}\n error={error}\n disabled={props.disabled}\n className={className}\n >\n <ChoiceGroupContext.Provider value={groupContext}>\n <RadioGroupPrimitive.Root\n className={cn(\n choiceGroupItemsVariants({ orientation, labelPosition })\n )}\n orientation={orientation}\n {...props}\n ref={ref}\n />\n </ChoiceGroupContext.Provider>\n </ChoiceGroupFieldset>\n )\n }\n)\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nexport { RadioGroup, type RadioGroupProps }\n","import * as React from 'react'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { assertsInvalid, cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\nimport { BsCircleFill } from '@/assets'\nimport { ChoiceItem, resolveAriaInvalid, useChoiceGroup } from '../choice-group'\n\ninterface RadioGroupItemProps extends React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n> {\n label?: React.ReactNode\n /** Hint for this option alone, announced with the radio it belongs to. */\n description?: React.ReactNode\n}\n\n/**\n * The border colour is a variant rather than a set of `aria-[invalid=true]:`\n * rules layered over the default one, for the reason `Checkbox` spells out:\n * layered, which rule a selected invalid radio draws would be decided by the\n * order Tailwind emits two equally specific variants in.\n */\nconst radioVariant = cva(\n [\n [\n 'h-5 w-5',\n 'rounded-full',\n 'border-[0.533px]',\n 'bg-background-alt',\n 'disabled:opacity-50',\n 'disabled:cursor-not-allowed',\n 'text-foreground-inverse',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n ['data-[state=checked]:bg-border'],\n ['dark:bg-background-alt-dark', 'dark:data-[state=checked]:bg-border-dark']\n ],\n {\n variants: {\n /** Driven by the radio's own `aria-invalid`. See `Checkbox`. */\n invalid: {\n true: ['border-feedback-error', 'dark:border-red-400'],\n false: [\n 'border-border',\n 'data-[state=checked]:border-border',\n 'dark:border-border-dark'\n ]\n }\n },\n defaultVariants: {\n invalid: false\n }\n }\n)\n\n/**\n * One radio in a `RadioGroup`, with the label and hint that belong to it.\n *\n * Without a `label` it renders as the bare control it always has, for the\n * `ControlLabel` pairing the stories used to show; with one it brings its own\n * label, and the hint is wired to the control rather than left as text beside\n * it.\n */\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n RadioGroupItemProps\n>(\n (\n {\n className,\n label,\n description,\n id,\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ownAriaInvalid,\n ...props\n },\n ref\n ) => {\n const group = useChoiceGroup()\n const generatedId = React.useId()\n const controlId = id ?? generatedId\n const descriptionId = `${controlId}-description`\n\n // One resolved value behind both the attribute and the border, so an\n // option cannot announce one state and render the other.\n const ariaInvalid = resolveAriaInvalid(\n ownAriaInvalid,\n Boolean(group?.invalid)\n )\n const describedBy =\n [ariaDescribedBy, description ? descriptionId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <ChoiceItem\n controlId={controlId}\n descriptionId={descriptionId}\n label={label}\n description={description}\n disabled={props.disabled ?? group?.disabled}\n labelPosition={group?.labelPosition ?? 'right'}\n >\n <RadioGroupPrimitive.Item\n ref={ref}\n id={controlId}\n className={cn(\n radioVariant({ invalid: assertsInvalid(ariaInvalid) }),\n className\n )}\n aria-describedby={describedBy}\n aria-invalid={ariaInvalid}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <BsCircleFill\n size=\"8\"\n className=\"text-inherit stroke-current stroke-1 fill-current\"\n />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n </ChoiceItem>\n )\n }\n)\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroupItem as Radio, RadioGroupItemProps }\n","'use client'\n\nimport * as React from 'react'\nimport * as SelectPrimitive from '@radix-ui/react-select'\n\nimport { cn } from '@/lib/utils'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport { BsChevronDown } from '@/assets'\nimport * as ScrollArea from '@radix-ui/react-scroll-area'\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectPortal = SelectPrimitive.Portal\n\nconst triggerVariants = cva(\n [\n [\n 'flex',\n 'w-full',\n 'border border-[2px]',\n 'text-foreground',\n 'items-center',\n 'justify-between',\n 'rounded-lg',\n 'px-3',\n 'py-2',\n 'text-sm',\n 'focus:outline-hidden',\n 'focus-visible:shadow-blue',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n '[&>span]:line-clamp-1'\n ]\n ],\n {\n variants: {\n variant: {\n default: [\n 'text-foreground',\n 'border-border-subtle',\n 'bg-grey-100',\n 'hover:border-border-hover',\n 'hover:text-foreground',\n 'focus-visible:shadow-brandGreen',\n 'dark:bg-background-alt-dark',\n 'dark:border-border-subtle-dark',\n 'dark:text-foreground-muted-dark',\n 'data-[placeholder]:text-foreground-muted',\n 'dark:focus-visible:shadow-brandGreen-10'\n ],\n error: [\n 'bg-red-50',\n 'border-feedback-error',\n 'hover:border-red-700',\n 'focus-visible:shadow-red',\n 'text-red-700',\n 'dark:bg-background-alt-dark',\n 'dark:border-feedback-error-dark',\n 'dark:text-feedback-error-dark'\n ],\n success: [\n 'bg-green-50',\n 'border-feedback-success',\n 'hover:border-green-700',\n 'focus-visible:shadow-green',\n 'text-green-700',\n 'dark:bg-background-alt-dark',\n 'dark:border-feedback-success-dark',\n 'dark:text-feedback-success-dark'\n ]\n },\n size: {\n sm: ['h-[37px]'],\n lg: ['h-[42px]']\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'sm'\n }\n }\n)\n\nexport interface TriggerProps\n extends\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>,\n VariantProps<typeof triggerVariants> {}\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n TriggerProps\n>(({ variant, size, className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(triggerVariants({ variant, size }), className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild className=\"ml-6\">\n <BsChevronDown className=\"h-2 w-2\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst contentVariants = cva([\n 'relative',\n 'z-50',\n 'min-w-[8rem]',\n 'bg-background',\n 'rounded-lg',\n 'border border-[2px]',\n 'border-border-subtle',\n 'text-foreground',\n 'shadow',\n 'data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2',\n 'data-[side=top]:slide-in-from-bottom-2',\n 'dark:bg-background-dark',\n 'dark:border-border-subtle-dark',\n 'dark:text-foreground-dark'\n])\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n contentVariants(),\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n {...props}\n >\n <ScrollArea.Root className=\"w-full h-full\" type=\"auto\">\n <SelectPrimitive.Viewport\n asChild\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'max-h-[var(--radix-select-content-available-height)] w-full min-w-[var(--radix-select-trigger-width)]'\n )}\n >\n <ScrollArea.Viewport\n className=\"w-full h-full\"\n style={{ overflowY: 'auto' }}\n >\n {children}\n </ScrollArea.Viewport>\n </SelectPrimitive.Viewport>\n <ScrollArea.Scrollbar orientation=\"vertical\" className=\"w-3 pr-1 py-2\">\n <ScrollArea.Thumb className=\"bg-grey-200 w-2 rounded-lg\" />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-2 px-4 text-sm font-semibold', className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst itemVariants = cva([\n [\n 'relative',\n 'flex',\n 'w-full',\n 'cursor-default',\n 'select-none',\n 'items-center',\n 'py-2',\n 'px-4',\n 'text-sm',\n 'outline-hidden',\n 'data-[disabled]:pointer-events-none',\n 'data-[disabled]:opacity-50',\n 'hover:bg-background-alt',\n 'data-[highlighted]:bg-background-alt',\n 'data-[highlighted]:outline-2',\n 'data-[highlighted]:-outline-offset-2',\n 'data-[highlighted]:outline-current',\n 'focus-visible:shadow-brandGreen'\n ],\n [\n 'dark:focus-visible:shadow-brandGreen-10',\n 'dark:hover:bg-background-alt-dark',\n 'dark:data-[highlighted]:bg-background-alt-dark'\n ]\n])\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(itemVariants(), className)}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\n '-mx-1 my-1 h-px bg-border-subtle dark:bg-border-subtle-dark',\n className\n )}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectPortal\n}\n","'use client'\n\nimport * as React from 'react'\nimport * as SelectPrimitive from '@radix-ui/react-select'\n\nimport { BsChevronDown } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nimport { SelectContent, SelectItem } from '../Select'\n\nconst SortAndShow = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex flex-wrap items-center gap-x-6 gap-y-2 px-4 py-3',\n 'rounded-lg bg-background dark:bg-background-dark',\n className\n )}\n {...props}\n />\n))\nSortAndShow.displayName = 'SortAndShow'\n\ninterface SortAndShowOption {\n value: string\n label: React.ReactNode\n disabled?: boolean\n}\n\ninterface SortAndShowControlProps extends Omit<\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>,\n 'children'\n> {\n label: React.ReactNode\n options: SortAndShowOption[]\n className?: string\n}\n\nconst SortAndShowControl = React.forwardRef<\n HTMLButtonElement,\n SortAndShowControlProps\n>(({ label, options, className, ...props }, ref) => {\n const labelId = React.useId()\n\n return (\n <div\n className={cn(\n 'inline-flex items-center gap-2 text-xs leading-normal',\n className\n )}\n >\n <span\n id={labelId}\n className=\"font-semibold text-foreground dark:text-foreground-dark\"\n >\n {label}\n </span>\n <SelectPrimitive.Root {...props}>\n <SelectPrimitive.Trigger\n ref={ref}\n aria-labelledby={labelId}\n className={cn(\n 'inline-flex min-h-6 items-center gap-1.5 rounded px-1 -mx-1',\n 'text-foreground dark:text-foreground-dark',\n 'cursor-pointer outline-hidden',\n 'hover:bg-background-alt dark:hover:bg-background-alt-dark',\n 'data-[state=open]:bg-background-alt dark:data-[state=open]:bg-background-alt-dark',\n 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10',\n 'disabled:cursor-not-allowed disabled:opacity-50'\n )}\n >\n <SelectPrimitive.Value />\n <SelectPrimitive.Icon asChild>\n <BsChevronDown className=\"h-2.5 w-2.5 shrink-0\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n <SelectContent align=\"start\">\n {options.map(option => (\n <SelectItem\n key={option.value}\n value={option.value}\n disabled={option.disabled}\n className=\"text-xs\"\n >\n {option.label}\n </SelectItem>\n ))}\n </SelectContent>\n </SelectPrimitive.Root>\n </div>\n )\n})\nSortAndShowControl.displayName = 'SortAndShowControl'\n\nexport {\n SortAndShow,\n SortAndShowControl,\n type SortAndShowControlProps,\n type SortAndShowOption\n}\n","'use client'\n\nimport * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\nimport { BsChevronDown } from '@/assets'\n\nconst splitButtonVariants = cva(\n [\n 'inline-flex',\n 'items-stretch',\n 'overflow-hidden',\n 'rounded-lg',\n 'transition-shadow',\n 'has-[:focus-visible]:shadow-brandGreen'\n ],\n {\n variants: {\n variant: {\n primary: [],\n secondary: [\n 'border',\n 'border-border',\n 'hover:border-button-secondary-border-hover',\n 'has-[:disabled]:border-button-secondary-border-disabled',\n 'dark:border-button-secondary-border-dark',\n 'dark:hover:border-button-secondary-border-hover-dark',\n 'dark:has-[:focus-visible]:shadow-brandGreen10',\n 'dark:has-[:disabled]:border-button-secondary-disabled-dark'\n ]\n }\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n)\n\nconst splitButtonSegmentVariants = cva(\n [\n 'relative',\n 'inline-flex',\n 'items-center',\n 'justify-center',\n 'transition-colors',\n 'outline-hidden',\n 'cursor-pointer',\n 'disabled:cursor-default',\n 'disabled:pointer-events-none'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'bg-button-primary',\n 'text-white',\n 'hover:bg-button-primary-hover',\n 'focus-visible:bg-button-primary-focus',\n 'active:bg-button-primary-focus',\n 'data-[state=open]:bg-button-primary-focus',\n 'disabled:bg-button-primary-disabled',\n 'disabled:text-foreground-subtle',\n 'dark:bg-button-primary-dark',\n 'dark:text-foreground-inverse-dark',\n 'dark:hover:bg-button-primary-hover-dark',\n 'dark:focus-visible:bg-button-primary-dark',\n 'dark:active:bg-button-primary-dark',\n 'dark:data-[state=open]:bg-button-primary-dark',\n 'dark:disabled:bg-button-primary-disabled-dark',\n 'dark:disabled:text-foreground-subtle'\n ],\n secondary: [\n 'bg-white',\n 'text-grey-900',\n 'hover:bg-button-secondary-hover',\n 'focus-visible:bg-white',\n 'active:bg-button-secondary-focus',\n 'data-[state=open]:bg-button-secondary-focus',\n 'disabled:bg-button-secondary-disabled',\n 'disabled:text-foreground-subtle',\n 'dark:bg-button-secondary-dark',\n 'dark:text-foreground-dark',\n 'dark:hover:bg-button-secondary-hover-dark',\n 'dark:focus-visible:bg-button-secondary-dark',\n 'dark:active:bg-button-secondary-focus-dark',\n 'dark:data-[state=open]:bg-button-secondary-focus-dark',\n 'dark:disabled:bg-button-secondary-disabled-dark',\n 'dark:disabled:text-foreground-subtle-dark'\n ]\n },\n segment: {\n action: [],\n trigger: [\n 'before:absolute',\n 'before:left-0',\n 'before:inset-y-2',\n 'before:w-px',\n 'before:bg-current',\n 'before:opacity-40'\n ]\n },\n size: {\n md: ['text-sm'],\n sm: ['text-sm']\n }\n },\n compoundVariants: [\n { segment: 'action', size: 'md', class: 'px-4' },\n { segment: 'action', size: 'sm', class: 'px-3' },\n { segment: 'trigger', size: 'md', class: 'px-3' },\n { segment: 'trigger', size: 'sm', class: 'px-2.5' },\n { variant: 'primary', size: 'md', class: 'py-2.5' },\n { variant: 'primary', size: 'sm', class: 'py-2' },\n { variant: 'secondary', size: 'md', class: 'py-[9px]' },\n { variant: 'secondary', size: 'sm', class: 'py-[7px]' }\n ],\n defaultVariants: {\n variant: 'primary',\n segment: 'action',\n size: 'md'\n }\n }\n)\n\nconst splitButtonMenuVariants = cva([\n 'z-50',\n 'min-w-40',\n 'p-1',\n 'rounded-lg',\n 'border-2',\n 'border-border-subtle',\n 'bg-background',\n 'text-sm',\n 'text-foreground',\n 'shadow',\n 'outline-hidden',\n 'dark:border-border-dark',\n 'dark:bg-background-dark',\n 'dark:text-foreground-dark'\n])\n\nconst splitButtonItemVariants = cva([\n 'flex',\n 'items-center',\n 'gap-2',\n 'px-3',\n 'py-2',\n 'rounded-md',\n 'cursor-pointer',\n 'select-none',\n 'outline-hidden',\n 'data-[highlighted]:bg-button-tertiary-hover',\n 'dark:data-[highlighted]:bg-button-tertiary-hover-dark',\n 'data-[disabled]:pointer-events-none',\n 'data-[disabled]:text-foreground-subtle',\n 'dark:data-[disabled]:text-foreground-subtle-dark'\n])\n\ninterface SplitButtonProps\n extends\n Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>,\n VariantProps<typeof splitButtonVariants>,\n Pick<VariantProps<typeof splitButtonSegmentVariants>, 'size'> {\n label: React.ReactNode\n children: React.ReactNode\n menuLabel?: string\n open?: boolean\n defaultOpen?: boolean\n onOpenChange?: (open: boolean) => void\n align?: DropdownMenuPrimitive.DropdownMenuContentProps['align']\n menuClassName?: string\n}\n\nconst SplitButton = React.forwardRef<HTMLButtonElement, SplitButtonProps>(\n (\n {\n className,\n variant,\n size,\n label,\n children,\n menuLabel = 'More options',\n open,\n defaultOpen,\n onOpenChange,\n align = 'end',\n menuClassName,\n disabled = false,\n type = 'button',\n ...props\n },\n ref\n ) => (\n <DropdownMenuPrimitive.Root\n open={open}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n modal={false}\n >\n <div className={cn(splitButtonVariants({ variant }), className)}>\n <button\n ref={ref}\n type={type}\n disabled={disabled}\n className={splitButtonSegmentVariants({\n variant,\n size,\n segment: 'action'\n })}\n {...props}\n >\n {label}\n </button>\n <DropdownMenuPrimitive.Trigger\n disabled={disabled}\n aria-label={menuLabel}\n className={splitButtonSegmentVariants({\n variant,\n size,\n segment: 'trigger'\n })}\n >\n <BsChevronDown aria-hidden=\"true\" className=\"h-3 w-3\" />\n </DropdownMenuPrimitive.Trigger>\n </div>\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align={align}\n sideOffset={4}\n className={cn(splitButtonMenuVariants(), menuClassName)}\n >\n {children}\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n </DropdownMenuPrimitive.Root>\n )\n)\nSplitButton.displayName = 'SplitButton'\n\nconst SplitButtonItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(splitButtonItemVariants(), className)}\n {...props}\n />\n))\nSplitButtonItem.displayName = 'SplitButtonItem'\n\nconst SplitButtonSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\n '-mx-1 my-1 h-px bg-border-subtle dark:bg-border-dark',\n className\n )}\n {...props}\n />\n))\nSplitButtonSeparator.displayName = 'SplitButtonSeparator'\n\nexport {\n SplitButton,\n SplitButtonItem,\n SplitButtonSeparator,\n splitButtonVariants,\n splitButtonSegmentVariants,\n type SplitButtonProps\n}\n","import * as React from 'react'\n\nimport { type IconType } from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst Stats = React.forwardRef<\n HTMLDListElement,\n React.HTMLAttributes<HTMLDListElement>\n>(({ className, ...props }, ref) => (\n <dl\n ref={ref}\n className={cn('flex flex-wrap items-center gap-x-4', className)}\n {...props}\n />\n))\nStats.displayName = 'Stats'\n\ninterface StatProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n 'children'\n> {\n label: React.ReactNode\n value: React.ReactNode\n icon?: IconType\n}\n\nconst Stat = React.forwardRef<HTMLDivElement, StatProps>(\n ({ className, label, value, icon: Icon, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'inline-flex min-h-6 items-center gap-1.5 py-1',\n 'text-xs leading-normal',\n className\n )}\n {...props}\n >\n <dt className=\"inline-flex items-center gap-1 text-foreground-muted dark:text-foreground-muted-dark\">\n {Icon ? <Icon className=\"h-3 w-3 shrink-0\" aria-hidden=\"true\" /> : null}\n {label}\n </dt>\n <dd className=\"font-semibold text-foreground dark:text-foreground-dark\">\n {value}\n </dd>\n </div>\n )\n)\nStat.displayName = 'Stat'\n\nexport { Stats, Stat, type StatProps }\n","import * as React from 'react'\nimport { cva } from 'class-variance-authority'\n\nimport { BsChevronLeft, BsChevronRight } from '@/assets'\nimport { StepsIndicator } from '@/components/StepsIndicator'\nimport { cn } from '@/lib/utils'\n\ntype StepStatus = 'complete' | 'current' | 'upcoming'\n\ninterface StepperItemContextValue {\n step: number\n status: StepStatus\n last: boolean\n}\n\nconst StepperItemContext = React.createContext<StepperItemContextValue | null>(\n null\n)\n\nconst flattenSteps = (\n children: React.ReactNode,\n keyPrefix = ''\n): Array<{ key: string; element: React.ReactElement }> =>\n React.Children.toArray(children).flatMap(child => {\n if (!React.isValidElement(child)) return []\n const key = `${keyPrefix}${child.key}`\n if (child.type === React.Fragment) {\n return flattenSteps(\n (child.props as { children?: React.ReactNode }).children,\n key\n )\n }\n return [{ key, element: child }]\n })\n\ninterface StepperProps extends React.OlHTMLAttributes<HTMLOListElement> {\n currentStep?: number\n}\n\nconst Stepper = React.forwardRef<HTMLOListElement, StepperProps>(\n ({ className, currentStep = 0, children, ...props }, ref) => {\n const items = flattenSteps(children)\n const current = Math.min(\n Number.isFinite(currentStep) ? Math.max(0, Math.floor(currentStep)) : 0,\n Math.max(0, items.length - 1)\n )\n\n return (\n <ol\n ref={ref}\n role=\"list\"\n className={cn('flex min-w-0 items-center gap-2', className)}\n {...props}\n >\n {items.map(({ key, element }, index) => (\n <StepperItemContext.Provider\n key={key}\n value={{\n step: index + 1,\n status:\n index < current\n ? 'complete'\n : index === current\n ? 'current'\n : 'upcoming',\n last: index === items.length - 1\n }}\n >\n {element}\n </StepperItemContext.Provider>\n ))}\n </ol>\n )\n }\n)\nStepper.displayName = 'Stepper'\n\nconst stepperNumberVariants = cva(\n [\n 'flex h-6 w-6 shrink-0 items-center justify-center rounded-sm',\n 'text-[10px] font-semibold leading-none'\n ],\n {\n variants: {\n status: {\n complete: [\n 'bg-background-subtle text-foreground',\n 'dark:bg-background-subtle-dark dark:text-foreground-dark'\n ],\n current: [\n 'bg-background-inverse text-foreground-inverse',\n 'dark:bg-background-dark dark:text-foreground-dark'\n ],\n upcoming: [\n 'bg-background-subtle text-foreground-muted',\n 'dark:bg-background-subtle-dark dark:text-foreground-muted-dark'\n ]\n }\n }\n }\n)\n\nconst stepperTitleVariants = cva('text-xs leading-normal', {\n variants: {\n status: {\n complete: 'text-foreground dark:text-foreground-dark',\n current: 'font-semibold text-foreground dark:text-foreground-dark',\n upcoming: 'text-foreground-muted dark:text-foreground-muted-dark'\n }\n }\n})\n\ninterface StepperItemProps extends Omit<\n React.LiHTMLAttributes<HTMLLIElement>,\n 'title'\n> {\n title: React.ReactNode\n description?: React.ReactNode\n}\n\nconst StepperItem = React.forwardRef<HTMLLIElement, StepperItemProps>(\n ({ className, title, description, ...props }, ref) => {\n const context = React.useContext(StepperItemContext)\n if (!context) {\n throw new Error('StepperItem must be rendered inside a Stepper')\n }\n const { step, status, last } = context\n\n return (\n <li\n ref={ref}\n aria-current={status === 'current' ? 'step' : undefined}\n data-status={status}\n className={cn(\n 'flex min-w-0 items-center gap-2',\n last ? 'flex-initial' : 'flex-auto',\n className\n )}\n {...props}\n >\n <span aria-hidden=\"true\" className={stepperNumberVariants({ status })}>\n {step}\n </span>\n <span className=\"flex min-w-0 flex-col break-words\">\n <span className={stepperTitleVariants({ status })}>{title}</span>\n {description != null && description !== false ? (\n <span className=\"text-[10px] leading-normal text-foreground-muted dark:text-foreground-muted-dark\">\n {description}\n </span>\n ) : null}\n </span>\n {last ? null : (\n <span\n aria-hidden=\"true\"\n className=\"h-px min-w-4 flex-1 bg-border dark:bg-border-dark\"\n />\n )}\n </li>\n )\n }\n)\nStepperItem.displayName = 'StepperItem'\n\nconst stepperNavButtonVariants = cva([\n 'inline-flex min-h-6 items-center gap-1.5 rounded-sm px-2 py-1',\n 'text-xs leading-normal',\n 'text-foreground dark:text-foreground-dark',\n 'cursor-pointer',\n 'hover:underline',\n 'focus-visible:outline-hidden focus-visible:underline',\n 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10',\n 'disabled:cursor-not-allowed disabled:no-underline',\n 'disabled:text-foreground-subtle dark:disabled:text-foreground-subtle-dark'\n])\n\ninterface StepperNavProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n 'children'\n> {\n currentStep: number\n totalSteps: number\n onStepChange?: (step: number) => void\n indicator?: 'dots' | 'counter'\n label?: string\n backLabel?: React.ReactNode\n nextLabel?: React.ReactNode\n stepLabel?: (step: number, total: number) => string\n}\n\nconst StepperNav = React.forwardRef<HTMLDivElement, StepperNavProps>(\n (\n {\n className,\n currentStep,\n totalSteps,\n onStepChange,\n indicator = 'dots',\n label = 'Steps',\n backLabel = 'Back',\n nextLabel = 'Next',\n stepLabel = (step, total) => `Step ${step} of ${total}`,\n ...props\n },\n ref\n ) => {\n const total = Number.isFinite(totalSteps)\n ? Math.max(0, Math.floor(totalSteps))\n : 0\n const step = Math.min(Math.max(0, currentStep), Math.max(0, total - 1))\n\n return (\n <div\n ref={ref}\n role=\"group\"\n aria-label={label}\n className={cn('flex items-center gap-6', className)}\n {...props}\n >\n <button\n type=\"button\"\n className={stepperNavButtonVariants()}\n disabled={total === 0 || step <= 0}\n onClick={() => onStepChange?.(step - 1)}\n >\n <BsChevronLeft className=\"h-3 w-3 shrink-0\" aria-hidden=\"true\" />\n {backLabel}\n </button>\n {total === 0 ? null : indicator === 'dots' ? (\n <StepsIndicator\n length={total}\n selectedIndex={step}\n onClick={onStepChange}\n stepLabel={stepLabel}\n />\n ) : (\n <span\n aria-live=\"polite\"\n className=\"text-xs leading-normal text-foreground dark:text-foreground-dark\"\n >\n <span aria-hidden=\"true\">\n {step + 1}/{total}\n </span>\n <span className=\"sr-only\">{stepLabel(step + 1, total)}</span>\n </span>\n )}\n <button\n type=\"button\"\n className={stepperNavButtonVariants()}\n disabled={total === 0 || step >= total - 1}\n onClick={() => onStepChange?.(step + 1)}\n >\n {nextLabel}\n <BsChevronRight className=\"h-3 w-3 shrink-0\" aria-hidden=\"true\" />\n </button>\n </div>\n )\n }\n)\nStepperNav.displayName = 'StepperNav'\n\nexport {\n Stepper,\n StepperItem,\n StepperNav,\n type StepperProps,\n type StepperItemProps,\n type StepperNavProps,\n type StepStatus\n}\n","import { BsCircleFill } from '@/assets'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\ninterface StepProps {\n selected: 'true' | 'false'\n className?: string\n}\n\nconst stepVariant = cva([\n 'text-inherit',\n 'fill-current',\n 'text-accent-alt',\n 'dark:text-accent-alt-dark',\n 'hover:text-foreground-subtle',\n 'dark:hover:text-foreground-subtle-dark',\n 'active:text-foreground-muted',\n 'dark:active:text-foreground-muted-dark',\n 'data-[selected=true]:text-secondary-100',\n 'dark:data-[selected=true]:text-accent-dark'\n])\n\nconst Step = ({ selected, className }: StepProps) => {\n return (\n <BsCircleFill\n size=\"8\"\n aria-hidden=\"true\"\n data-selected={selected}\n className={cn(stepVariant(), className)}\n />\n )\n}\n\nexport { Step, type StepProps }\n","import * as React from 'react'\nimport { cva } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { Step } from './Step'\n\nconst stepsVariant = cva([\n 'flex',\n 'text-accent-alt',\n 'space-x-1 ',\n 'content-center items-center'\n])\n\nconst stepButtonVariant = cva([\n 'flex h-6 w-6 items-center justify-center m-0',\n 'rounded-full',\n 'outline-hidden',\n 'focus-visible:outline-2',\n 'focus-visible:outline-offset-1',\n 'focus-visible:outline-current'\n])\n\ninterface StepsIndicatorProp {\n selectedIndex?: number\n length?: number\n props?: React.DetailedHTMLProps<\n React.HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n >\n name?: string\n onClick?: (i: number) => void\n label?: string\n stepLabel?: (step: number, total: number) => string\n}\n\nconst StepsIndicator = React.forwardRef<HTMLDivElement, StepsIndicatorProp>(\n (\n {\n name = '',\n selectedIndex = 0,\n length = 1,\n onClick,\n label = 'Progress',\n stepLabel = (step, total) => `Step ${step} of ${total}`,\n props\n },\n ref\n ) => {\n const Steps = Array(length)\n .fill(null)\n .map((_, i) => {\n const selected = i === selectedIndex\n return (\n <button\n key={`${i}-step-${name}`}\n type=\"button\"\n aria-label={stepLabel(i + 1, length)}\n aria-current={selected ? 'step' : undefined}\n className={stepButtonVariant()}\n onClick={() => onClick?.(i)}\n >\n <Step selected={selected ? 'true' : 'false'} />\n </button>\n )\n })\n return (\n <div\n ref={ref}\n role=\"group\"\n aria-label={label}\n className={cn(stepsVariant())}\n {...props}\n >\n {Steps}\n </div>\n )\n }\n)\n\nStepsIndicator.displayName = 'StepsIndicator'\n\nexport { StepsIndicator, StepsIndicatorProp }\n","import * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { cn } from '@/lib/utils'\n\nconst SubnavContext = React.createContext<\n React.Dispatch<React.SetStateAction<string | undefined>> | undefined\n>(undefined)\n\nconst Subnav = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>(\n (\n {\n className,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n ...props\n },\n ref\n ) => {\n const [headingId, setHeadingId] = React.useState<string>()\n return (\n <SubnavContext.Provider value={setHeadingId}>\n <nav\n ref={ref}\n aria-label={ariaLabel}\n aria-labelledby={\n ariaLabelledBy ?? (ariaLabel ? undefined : headingId)\n }\n className={cn(\n 'flex flex-col gap-4',\n 'bg-background dark:bg-background-dark',\n 'text-foreground dark:text-foreground-dark',\n className\n )}\n {...props}\n />\n </SubnavContext.Provider>\n )\n }\n)\nSubnav.displayName = 'Subnav'\n\ninterface SubnavHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {\n asChild?: boolean\n}\n\nconst SubnavHeading = React.forwardRef<HTMLHeadingElement, SubnavHeadingProps>(\n ({ className, asChild = false, id, children, ...props }, ref) => {\n const generatedId = React.useId()\n const childId =\n asChild && React.isValidElement<{ id?: string }>(children)\n ? children.props.id\n : undefined\n const headingId = childId ?? id ?? generatedId\n const setHeadingId = React.useContext(SubnavContext)\n\n React.useEffect(() => {\n setHeadingId?.(headingId)\n return () => setHeadingId?.(undefined)\n }, [setHeadingId, headingId])\n\n const Comp = asChild ? Slot : 'h2'\n return (\n <Comp\n ref={ref}\n id={headingId}\n className={cn('text-sm font-semibold leading-normal', className)}\n {...props}\n >\n {children}\n </Comp>\n )\n }\n)\nSubnavHeading.displayName = 'SubnavHeading'\n\nconst SubnavList = React.forwardRef<\n HTMLUListElement,\n React.HTMLAttributes<HTMLUListElement>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-col gap-2 text-xs leading-normal', className)}\n {...props}\n />\n))\nSubnavList.displayName = 'SubnavList'\n\nconst SubnavItem = React.forwardRef<\n HTMLLIElement,\n React.LiHTMLAttributes<HTMLLIElement>\n>((props, ref) => <li ref={ref} {...props} />)\nSubnavItem.displayName = 'SubnavItem'\n\ninterface SubnavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean\n active?: boolean\n}\n\nconst SubnavLink = React.forwardRef<HTMLAnchorElement, SubnavLinkProps>(\n (\n {\n className,\n asChild = false,\n active = false,\n 'aria-current': ariaCurrent,\n ...props\n },\n ref\n ) => {\n const Comp = asChild ? Slot : 'a'\n return (\n <Comp\n ref={ref}\n aria-current={ariaCurrent ?? (active ? 'page' : undefined)}\n className={cn(\n 'inline-flex py-0.5',\n 'rounded-sm',\n 'cursor-pointer',\n 'underline-offset-2 hover:underline',\n 'aria-[current=page]:font-semibold',\n 'focus-visible:outline-hidden',\n 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10',\n className\n )}\n {...props}\n />\n )\n }\n)\nSubnavLink.displayName = 'SubnavLink'\n\nexport {\n Subnav,\n SubnavHeading,\n SubnavList,\n SubnavItem,\n SubnavLink,\n type SubnavHeadingProps,\n type SubnavLinkProps\n}\n","import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { VariantProps } from 'class-variance-authority'\nimport { cva } from 'class-variance-authority'\n\nconst tableBodyVariants = cva('bg-background dark:bg-grey-900', {\n variants: {\n variant: {\n zebra: [\n '[&>*:nth-child(even)]:bg-background-subtle',\n 'dark:[&>*:nth-child(even)]:bg-background-subtle-dark'\n ]\n }\n }\n})\n\ninterface TableProps extends React.HTMLAttributes<HTMLTableElement> {\n containerClassName?: string\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n ({ className, containerClassName, ...props }, ref) => (\n <div\n tabIndex={0}\n className={cn(\n 'relative w-full overflow-auto rounded-2xl',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current',\n containerClassName\n )}\n >\n <table\n ref={ref}\n className={cn('caption-bottom text-sm dark:text-white', className)}\n {...props}\n />\n </div>\n )\n)\nTable.displayName = 'Table'\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn(\n 'bg-background-subtle dark:bg-background-subtle-dark text-left',\n className\n )}\n {...props}\n />\n))\nTableHeader.displayName = 'TableHeader'\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn('px-4 py-5 leading-[21px] font-bold', className)}\n {...props}\n />\n))\nTableHead.displayName = 'TableHead'\ninterface TableBodyProps\n extends\n React.HTMLAttributes<HTMLTableSectionElement>,\n VariantProps<typeof tableBodyVariants> {}\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, variant, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(tableBodyVariants({ variant }), className)}\n {...props}\n />\n )\n)\nTableBody.displayName = 'TableBody'\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'h-[50px] self-stretch items-center gap-2 font-normal text-left',\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = 'TableRow'\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td ref={ref} className={cn('p-4', className)} {...props} />\n))\nTableCell.displayName = 'TableCell'\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4', className)} {...props} />\n))\nTableCaption.displayName = 'TableCaption'\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('bg-primary text-primary-foreground', className)}\n {...props}\n />\n))\nTableFooter.displayName = 'TableFooter'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption\n}\nexport type { TableBodyProps, TableProps }\n","'use client'\n\nimport * as React from 'react'\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\nimport { Slottable } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst tabsVariants = cva([\n 'flex',\n 'gap-4',\n 'data-[orientation=horizontal]:flex-col',\n 'data-[orientation=vertical]:flex-row'\n])\n\nconst tabsListVariants = cva([\n 'inline-flex',\n 'gap-1',\n 'data-[orientation=horizontal]:flex-row',\n 'data-[orientation=horizontal]:items-center',\n 'data-[orientation=vertical]:flex-col',\n 'data-[orientation=vertical]:items-stretch'\n])\n\nconst tabsTriggerVariants = cva(\n [\n 'group',\n 'inline-flex',\n 'items-center',\n 'gap-2',\n 'rounded-lg',\n 'font-semibold',\n 'whitespace-nowrap',\n 'transition-colors',\n 'outline-hidden',\n 'cursor-pointer',\n 'data-[orientation=vertical]:justify-start',\n 'text-foreground',\n 'hover:bg-background-subtle',\n 'focus-visible:bg-background-subtle',\n 'focus-visible:shadow-brandGreen',\n 'data-[state=active]:bg-accent',\n 'data-[state=active]:text-foreground-inverse',\n 'disabled:cursor-default',\n 'disabled:pointer-events-none',\n 'disabled:text-foreground-subtle',\n 'dark:text-foreground-dark',\n 'dark:hover:bg-background-subtle-dark',\n 'dark:focus-visible:bg-background-subtle-dark',\n 'dark:focus-visible:shadow-brandGreen10',\n 'dark:data-[state=active]:bg-accent-dark',\n 'dark:data-[state=active]:text-foreground-inverse-dark',\n 'dark:disabled:text-foreground-subtle-dark',\n '[&_svg]:shrink-0'\n ],\n {\n variants: {\n size: {\n md: ['px-4', 'py-2', 'text-sm', '[&_svg]:size-4'],\n sm: ['px-3', 'py-1.5', 'text-xs', '[&_svg]:size-3.5']\n }\n },\n defaultVariants: {\n size: 'md'\n }\n }\n)\n\nconst tabsCountVariants = cva(\n [\n 'inline-flex',\n 'items-center',\n 'justify-center',\n 'rounded-full',\n 'border',\n 'border-border-subtle',\n 'bg-background',\n 'text-foreground',\n 'font-semibold',\n 'tabular-nums',\n 'dark:border-transparent',\n 'dark:group-data-[state=active]:bg-background-dark',\n 'dark:group-data-[state=active]:text-foreground-dark'\n ],\n {\n variants: {\n size: {\n md: ['min-w-5', 'h-5', 'px-1.5', 'text-xs'],\n sm: ['min-w-4', 'h-4', 'px-1', 'text-[10px]']\n }\n },\n defaultVariants: {\n size: 'md'\n }\n }\n)\n\nconst tabsContentVariants = cva([\n 'flex-1',\n 'rounded-lg',\n 'outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen10'\n])\n\nconst Tabs = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Root\n ref={ref}\n className={cn(tabsVariants(), className)}\n {...props}\n />\n))\nTabs.displayName = 'Tabs'\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(tabsListVariants(), className)}\n {...props}\n />\n))\nTabsList.displayName = 'TabsList'\n\ninterface TabsTriggerProps\n extends\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>,\n VariantProps<typeof tabsTriggerVariants> {\n count?: React.ReactNode\n}\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n TabsTriggerProps\n>(({ className, size, count, children, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(tabsTriggerVariants({ size }), className)}\n {...props}\n >\n <Slottable>{children}</Slottable>\n {count != null && typeof count !== 'boolean' && (\n <span className={tabsCountVariants({ size })}>{count}</span>\n )}\n </TabsPrimitive.Trigger>\n))\nTabsTrigger.displayName = 'TabsTrigger'\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(tabsContentVariants(), className)}\n {...props}\n />\n))\nTabsContent.displayName = 'TabsContent'\n\nexport {\n Tabs,\n TabsList,\n TabsTrigger,\n TabsContent,\n tabsVariants,\n tabsListVariants,\n tabsTriggerVariants,\n type TabsTriggerProps\n}\n","import React from 'react'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\nconst textareaVariants = cva(\n [\n 'flex',\n 'flex-grow',\n 'outline-hidden',\n 'resize-none',\n 'border',\n 'border-2',\n 'rounded-lg',\n 'field-sizing-content',\n 'p-3',\n 'gap-1.5',\n '[&:has(:disabled)]:border-none'\n ],\n {\n variants: {\n variant: {\n primary: [\n 'border-border-subtle',\n 'dark:border-border-subtle-dark',\n 'bg-background-alt',\n 'dark:bg-background-alt-dark',\n 'hover:border-border-hover',\n 'hover:focus-within:shadow-brandGreen',\n 'dark:hover:focus-within:border-border-focus-dark',\n 'focus-within:shadow-brandGreen',\n 'text-foreground',\n 'dark:text-foreground-dark',\n 'dark:focus-within:shadow-brandGreen-10'\n ],\n error: [\n 'border-feedback-error',\n 'text-feedback-error',\n 'bg-red-50',\n 'hover:border-red-700',\n 'focus-within:shadow-red',\n 'dark:border-feedback-error-dark',\n 'dark:text-feedback-error-dark',\n 'dark:bg-background-alt-dark'\n ],\n success: [\n 'border-feedback-success',\n 'text-green-700',\n 'bg-green-50',\n 'hover:border-green-700',\n 'focus-within:shadow-green',\n 'dark:border-feedback-success-dark',\n 'dark:text-feedback-success-dark',\n 'dark:bg-background-alt-dark'\n ],\n disabled: [\n 'bg-background-subtle',\n 'dark:bg-background-subtle-dark',\n 'cursor-not-allowed',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark'\n ]\n },\n defaultVariants: {\n variant: 'primary'\n }\n }\n }\n)\n\ninterface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {\n variant: 'primary' | 'error' | 'success' | 'disabled'\n labelText?: string\n helpText?: string\n id?: string\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n className,\n variant,\n labelText,\n helpText,\n id,\n 'aria-describedby': ariaDescribedby,\n ...props\n },\n ref\n ) => {\n const generatedId = React.useId()\n const textareaId = id ?? generatedId\n const helpTextId = `${textareaId}-helptext`\n const describedBy =\n [ariaDescribedby, helpText ? helpTextId : undefined]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <div className=\"flex flex-col gap-3\">\n {labelText && (\n <label\n id={`${textareaId}-label`}\n htmlFor={textareaId}\n className=\"text-m text-foreground dark:text-foreground-dark\"\n >\n {labelText}\n </label>\n )}\n <textarea\n id={textareaId}\n className={cn(textareaVariants({ variant }), className)}\n ref={ref}\n aria-describedby={describedBy}\n {...props}\n />\n {helpText && (\n <span\n id={helpTextId}\n className=\"text-sm text-foreground-muted dark:text-foreground-muted-dark\"\n >\n {helpText}\n </span>\n )}\n </div>\n )\n }\n)\n\nTextarea.displayName = 'Textarea'\n\nexport { Textarea, TextareaProps, textareaVariants }\n","'use client'\n\nimport * as React from 'react'\nimport * as ToastPrimitive from '@radix-ui/react-toast'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport {\n BsCheckCircleFill,\n BsExclamationCircleFill,\n BsInfoCircleFill,\n BsQuestionCircleFill,\n BsXLg,\n type IconType\n} from '@/assets'\nimport { cn } from '@/lib/utils'\n\nconst focusClasses = [\n 'outline-hidden',\n 'focus-visible:shadow-brandGreen',\n 'dark:focus-visible:shadow-brandGreen10'\n]\n\nconst ToastProvider = ToastPrimitive.Provider\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Viewport\n ref={ref}\n className={cn(\n 'pointer-events-none',\n 'fixed',\n 'bottom-0',\n 'right-0',\n 'z-[100]',\n 'flex',\n 'max-h-screen',\n 'w-full',\n 'max-w-md',\n 'flex-col',\n 'items-end',\n 'gap-3',\n 'p-4',\n 'outline-hidden',\n className\n )}\n {...props}\n />\n))\nToastViewport.displayName = ToastPrimitive.Viewport.displayName\n\nconst toastVariants = cva(\n [\n 'pointer-events-auto',\n 'grid',\n 'grid-cols-[auto_minmax(0,1fr)_auto_auto]',\n 'w-fit',\n 'max-w-full',\n 'items-center',\n 'rounded-sm',\n 'border',\n 'px-2',\n 'py-1.5',\n 'text-xs',\n 'text-foreground',\n 'shadow-sm',\n 'data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x)',\n 'data-[swipe=cancel]:translate-x-0',\n 'data-[swipe=cancel]:transition-transform',\n 'data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x)',\n ...focusClasses\n ],\n {\n variants: {\n variant: {\n success: ['bg-green-50', 'border-feedback-success'],\n error: ['bg-red-50', 'border-feedback-error'],\n warning: ['bg-yellow-50', 'border-feedback-warning'],\n info: ['bg-blue-50', 'border-border', 'dark:bg-background']\n }\n },\n defaultVariants: {\n variant: 'info'\n }\n }\n)\n\ntype ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>\n\nconst toastIcons: Record<ToastVariant, { icon: IconType; className: string }> =\n {\n success: { icon: BsCheckCircleFill, className: 'text-feedback-success' },\n error: { icon: BsExclamationCircleFill, className: 'text-feedback-error' },\n warning: { icon: BsQuestionCircleFill, className: 'text-orange-400' },\n info: { icon: BsInfoCircleFill, className: 'text-blue-600' }\n }\n\ninterface ToastProps\n extends\n React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root>,\n VariantProps<typeof toastVariants> {\n /** Replaces the variant's icon. Pass `null` to show no icon. */\n icon?: React.ReactNode\n}\n\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Root>,\n ToastProps\n>(({ className, variant, icon, type, children, ...props }, ref) => {\n const resolved = variant ?? 'info'\n const { icon: Icon, className: iconClassName } = toastIcons[resolved]\n\n return (\n <ToastPrimitive.Root\n ref={ref}\n type={type ?? (resolved === 'error' ? 'foreground' : 'background')}\n className={cn(toastVariants({ variant: resolved }), className)}\n {...props}\n >\n {icon !== null && (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'col-start-1',\n 'row-start-1',\n 'mr-2',\n 'flex',\n 'shrink-0',\n 'items-center',\n '[&>svg]:h-3',\n '[&>svg]:w-3',\n iconClassName\n )}\n >\n {icon ?? <Icon />}\n </span>\n )}\n {children}\n </ToastPrimitive.Root>\n )\n})\nToast.displayName = ToastPrimitive.Root.displayName\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Title\n ref={ref}\n className={cn('col-start-2', 'row-start-1', 'font-medium', className)}\n {...props}\n />\n))\nToastTitle.displayName = ToastPrimitive.Title.displayName\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Description\n ref={ref}\n className={cn(\n 'col-start-2',\n 'row-start-2',\n 'text-foreground-muted',\n className\n )}\n {...props}\n />\n))\nToastDescription.displayName = ToastPrimitive.Description.displayName\n\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Action\n ref={ref}\n className={cn(\n 'col-start-3',\n 'row-start-1',\n 'ml-4',\n 'shrink-0',\n 'cursor-pointer',\n 'rounded-xs',\n 'font-medium',\n 'underline',\n 'underline-offset-2',\n 'hover:no-underline',\n ...focusClasses,\n className\n )}\n {...props}\n />\n))\nToastAction.displayName = ToastPrimitive.Action.displayName\n\ninterface ToastCloseProps extends React.ComponentPropsWithoutRef<\n typeof ToastPrimitive.Close\n> {\n /** Accessible name for the close button. */\n label?: string\n}\n\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Close>,\n ToastCloseProps\n>(({ className, label = 'Close', children, ...props }, ref) => (\n <ToastPrimitive.Close\n ref={ref}\n aria-label={label}\n className={cn(\n 'col-start-4',\n 'row-start-1',\n 'ml-1',\n 'flex',\n 'h-5',\n 'w-5',\n 'shrink-0',\n 'cursor-pointer',\n 'items-center',\n 'justify-center',\n 'rounded-xs',\n 'hover:bg-foreground/10',\n '[&>svg]:h-3',\n '[&>svg]:w-3',\n ...focusClasses,\n className\n )}\n {...props}\n >\n {children ?? <BsXLg aria-hidden=\"true\" />}\n </ToastPrimitive.Close>\n))\nToastClose.displayName = ToastPrimitive.Close.displayName\n\nexport {\n Toast,\n ToastAction,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport\n}\nexport type { ToastCloseProps, ToastProps, ToastVariant }\n","import * as React from 'react'\n\nimport { BsTrash } from '@/assets'\nimport { IconButton } from '@/components/IconButton'\nimport { Switch } from '@/components/Switch'\nimport { cn } from '@/lib/utils'\n\nconst ToggleList = React.forwardRef<\n HTMLUListElement,\n React.HTMLAttributes<HTMLUListElement>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n role=\"list\"\n className={cn('flex flex-col gap-0.5', className)}\n {...props}\n />\n))\nToggleList.displayName = 'ToggleList'\n\ntype SwitchRootProps = React.ComponentPropsWithoutRef<typeof Switch>\n\ntype ToggleListItemRemoveProps =\n | { onRemove?: undefined; removeLabel?: undefined }\n | { onRemove: () => void; label: string; removeLabel?: string }\n | { onRemove: () => void; removeLabel: string }\n\ntype ToggleListItemProps = Omit<SwitchRootProps, 'children' | 'asChild'> & {\n label: React.ReactNode\n} & ToggleListItemRemoveProps\n\nconst ToggleListItem = React.forwardRef<\n React.ElementRef<typeof Switch>,\n ToggleListItemProps\n>(\n (\n { className, label, onRemove, removeLabel, id, disabled, ...props },\n ref\n ) => {\n const generatedId = React.useId()\n const switchId = id ?? generatedId\n\n return (\n <li\n className={cn(\n 'flex min-h-9 items-center gap-2 rounded-md px-2 py-1',\n 'bg-background-subtle text-foreground',\n 'dark:bg-background-subtle-dark dark:text-foreground-dark',\n disabled && 'opacity-50',\n className\n )}\n >\n <Switch ref={ref} id={switchId} disabled={disabled} {...props} />\n <label\n htmlFor={switchId}\n className={cn(\n 'flex-1 text-xs',\n disabled ? 'cursor-not-allowed' : 'cursor-pointer'\n )}\n >\n {label}\n </label>\n {onRemove && (\n <IconButton\n variant=\"tertiary\"\n size=\"xs\"\n label={\n removeLabel ??\n (typeof label === 'string' ? `Remove ${label}` : 'Remove')\n }\n icon={<BsTrash />}\n disabled={disabled}\n onClick={onRemove}\n className=\"h-7 w-7\"\n />\n )}\n </li>\n )\n }\n)\nToggleListItem.displayName = 'ToggleListItem'\n\nexport { ToggleList, ToggleListItem, type ToggleListItemProps }\n","import * as React from 'react'\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport { cn } from '@/lib/utils'\nimport { cva } from 'class-variance-authority'\n\nconst tooltipVariants = cva([\n [\n 'fill-accent',\n 'bg-accent',\n 'z-50',\n 'overflow-hidden',\n 'rounded',\n 'p-2',\n 'text-xs',\n 'text-center',\n 'text-foreground-inverse',\n 'font-semibold'\n ],\n [\n 'dark:text-foreground-inverse-dark',\n 'dark:bg-accent-dark',\n 'dark:fill-accent-dark'\n ]\n])\n\ninterface TooltipProps {\n children?: React.ReactNode\n side?: TooltipPrimitive.TooltipContentProps['side']\n content?: React.ReactNode\n sideOffset?: number\n}\n\nconst Tooltip = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n TooltipProps\n>(({ children, side, content, sideOffset }, ref) => {\n return (\n <TooltipPrimitive.Provider>\n <TooltipPrimitive.Root delayDuration={100}>\n <TooltipPrimitive.Trigger asChild={React.isValidElement(children)}>\n {children}\n </TooltipPrimitive.Trigger>\n <TooltipPrimitive.Content\n side={side ?? 'top'}\n sideOffset={sideOffset ?? 4}\n className={cn(tooltipVariants())}\n ref={ref}\n >\n {content}\n <TooltipPrimitive.Arrow className={'fill-inherit'} />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Root>\n </TooltipPrimitive.Provider>\n )\n})\n\nTooltip.displayName = 'Tooltip'\n\nexport { Tooltip }\nexport type { TooltipProps }\n","import { cn } from '@/lib/utils'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport React from 'react'\n\nconst websiteFooterVariants = cva(\n ['flex', 'flex-col', 'w-full', 'items-center', 'px-16', 'py-4'],\n {\n variants: {\n size: {\n standard: ['sm:[&>div]:flex-row', '[&>div]:flex-col'],\n sm: [\n '[&>div]:flex-col',\n '[&>div]:items-center',\n '[&>div]:[&>div]:items-center'\n ]\n }\n },\n defaultVariants: { size: 'standard' }\n }\n)\n\nconst footerStatementVariants = cva(\n [\n 'flex',\n 'flex-col',\n 'gap-1',\n 'items-center',\n 'text-foreground-muted',\n 'dark:text-foreground-muted-dark',\n 'py-4',\n 'text-sm'\n ],\n {\n variants: {\n size: {\n standard: ['sm:py-8', 'sm:text-base'],\n sm: []\n }\n },\n defaultVariants: { size: 'standard' }\n }\n)\n\nconst linkRowVariants = cva([\n 'flex',\n 'w-full',\n 'justify-between',\n '[&>div]:text-xl',\n '[&>*]:font-normal',\n '[&>*]:text-sm'\n])\n\nconst linkColumnVariants = cva(\n [\n 'flex',\n 'flex-col',\n 'px-8',\n 'pb-6',\n 'gap-2',\n 'dark:text-white',\n '[&>div]:font-semibold',\n '[&>div]:mb-2',\n '[&>div]:text-xl',\n '[&>*]:font-normal',\n '[&>*]:text-sm',\n 'items-center'\n ],\n {\n variants: {\n size: {\n lg: [\n 'sm:gap-3',\n 'sm:[&>div]:text-2xl',\n 'sm:[&>*]:font-normal',\n 'sm:[&>*]:text-sm',\n 'sm:pb-0',\n 'sm:items-start'\n ],\n md: ['sm:items-start', 'sm:pb-0'],\n sm: []\n }\n },\n defaultVariants: {\n size: 'lg'\n }\n }\n)\n\ninterface WebsiteFooterProps\n extends\n React.ComponentPropsWithoutRef<'footer'>,\n VariantProps<typeof websiteFooterVariants> {}\n\nconst WebsiteFooter = React.forwardRef<HTMLElement, WebsiteFooterProps>(\n ({ className, size, ...props }, ref) => (\n <footer\n className={cn(websiteFooterVariants({ size }), className)}\n {...props}\n ref={ref}\n ></footer>\n )\n)\n\ninterface FooterStatementProps\n extends\n React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof footerStatementVariants> {}\n\nconst FooterStatement = React.forwardRef<HTMLDivElement, FooterStatementProps>(\n ({ className, size, ...props }, ref) => (\n <div>\n <div\n className={cn(footerStatementVariants({ size }), className)}\n {...props}\n ref={ref}\n ></div>\n </div>\n )\n)\n\ntype LinkRowProps = React.ComponentPropsWithoutRef<'div'>\n\nconst LinkRow = React.forwardRef<HTMLDivElement, LinkRowProps>(\n ({ className, ...props }, ref) => (\n <div\n className={cn(linkRowVariants(), className)}\n {...props}\n ref={ref}\n ></div>\n )\n)\n\ninterface LinkColumnProps\n extends\n React.ComponentPropsWithoutRef<'div'>,\n VariantProps<typeof linkColumnVariants> {}\n\nconst LinkColumn = React.forwardRef<HTMLDivElement, LinkColumnProps>(\n ({ className, size, title, children, ...props }, ref) => (\n <div\n className={cn(linkColumnVariants({ size }), className)}\n {...props}\n ref={ref}\n >\n {title && <div>{title}</div>}\n {children}\n </div>\n )\n)\n\nexport {\n WebsiteFooter,\n FooterStatement,\n LinkColumn,\n LinkRow,\n type WebsiteFooterProps,\n type FooterStatementProps,\n type LinkColumnProps,\n type LinkRowProps\n}\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,YAAY,wBAAwB;AACpC,SAAS,WAA8B;AACvC,YAAY,WAAW;;;ACJvB;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AFL;AAAA,QAGC;AAAA;AAAA,IACD,GACH;AAAA;AAEJ;AAIA,IAAM,UAAUG,QAAM;AAAA,EACpB,CAAC,IAAyB,QAAK;AAA9B,iBAAE,YA3HL,IA2HG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,2BAAAH;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,gBAAgB,GAAG,SAAS;AAAA,SACtC,QAFL;AAAA,QAGC;AAAA;AAAA,IACD;AAAA;AAEL;AAOA,IAAM,aAAaG,QAAM;AAAA,EACvB,CAAC,IAAgD,QAAK;AAArD,iBAAE,aAAW,MAAM,OAAO,SA1I7B,IA0IG,IAAuC,kBAAvC,IAAuC,CAArC,aAAW,QAAM,SAAO;AACzB,2BAAAF;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,mBAAmB,EAAE,KAAK,CAAC,GAAG,SAAS;AAAA,SACjD,QAFL;AAAA,QAGC;AAAA,QAEC;AAAA,mBAAS,gBAAAD,MAAC,SAAK,iBAAM;AAAA,UACrB;AAAA;AAAA;AAAA,IACH;AAAA;AAEJ;;;AhDlJA,0BAAc;","names":["jsx","React","cva","jsx","jsxs","cva","React","React","cva","jsx","jsxs","cva","React","jsx","jsxs","Icon","React","cva","jsx","jsxs","cva","React","React","Slot","Slottable","cva","jsx","jsxs","cva","Slot","Slottable","React","cva","jsx","cva","React","cva","jsx","cva","props","React","cva","React","cva","jsx","jsxs","cva","React","cva","jsx","cva","React","cva","jsx","cva","jsx","jsxs","cva","React","React","cva","React","cva","React","cva","jsx","jsxs","cva","jsx","cva","_a","Fragment","jsx","jsxs","cva","jsx","React","jsx","_a","React","jsx","jsxs","React","cva","React","cva","jsx","jsxs","cva","React","jsx","jsxs","cva","_a","_b","React","cva","jsx","jsxs","cva","React","React","cva","jsx","jsxs","cva","_a","React","jsx","jsxs","React","Icon","selectedClasses","focusClasses","React","cva","jsx","jsxs","cva","React","Slot","cva","jsx","jsxs","cva","Slot","React","useState","useEffect","cva","jsx","jsxs","cva","React","useState","useEffect","React","useState","cva","jsx","jsxs","cva","React","useState","isMaskOn","React","PopoverPrimitive","cva","Fragment","jsx","jsxs","cva","React","jsx","React","RadioGroupPrimitive","cva","jsx","cva","_a","_b","React","cva","ScrollArea","jsx","jsxs","cva","React","SelectPrimitive","jsx","jsxs","React","cva","jsx","jsxs","cva","React","jsx","jsxs","Icon","React","cva","cva","jsx","React","cva","jsx","cva","jsx","jsxs","cva","React","Slot","jsx","_a","Slot","React","cva","jsx","cva","React","Slottable","cva","jsx","jsxs","cva","Slottable","React","cva","jsx","jsxs","cva","React","React","cva","jsx","jsxs","cva","Icon","React","jsx","jsxs","React","cva","jsx","jsxs","cva","React","jsx","jsxs","cva","React"]}
|