@bekk-basen/neutral-ui-do-not-use 0.0.0-dev.09f4177 → 0.0.0-dev.56e05f9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/components/button/button.tsx","../src/components/text/text.tsx","../src/components/form/checkbox/checkbox.tsx","../node_modules/@base-ui/utils/esm/error.js","../node_modules/@base-ui/utils/esm/useControlled.js","../node_modules/@base-ui/utils/esm/useRefWithInit.js","../node_modules/@base-ui/utils/esm/useStableCallback.js","../node_modules/@base-ui/utils/esm/empty.js","../node_modules/@base-ui/utils/esm/safeReact.js","../node_modules/@base-ui/utils/esm/useId.js","../node_modules/@base-ui/react/esm/internals/useBaseUiId.js","../node_modules/@base-ui/utils/esm/formatErrorMessage.js","../node_modules/@base-ui/utils/esm/useMergedRefs.js","../node_modules/@base-ui/utils/esm/reactVersion.js","../node_modules/@base-ui/utils/esm/getReactElementRef.js","../node_modules/@base-ui/utils/esm/mergeObjects.js","../node_modules/@base-ui/utils/esm/warn.js","../node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js","../node_modules/@base-ui/react/esm/utils/resolveClassName.js","../node_modules/@base-ui/react/esm/utils/resolveStyle.js","../node_modules/@base-ui/react/esm/merge-props/mergeProps.js","../node_modules/@base-ui/react/esm/internals/useRenderElement.js","../node_modules/@base-ui/react/esm/checkbox-group/CheckboxGroupContext.js","../node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js","../node_modules/@base-ui/react/esm/internals/field-constants/constants.js","../node_modules/@base-ui/react/esm/internals/field-root-context/FieldRootContext.js","../node_modules/@base-ui/utils/esm/useIsoLayoutEffect.js","../node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js","../node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js","../node_modules/@base-ui/utils/esm/visuallyHidden.js","../node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootDataAttributes.js","../node_modules/@base-ui/react/esm/checkbox/utils/useStateAttributesMapping.js","../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js","../node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js","../node_modules/@base-ui/react/esm/internals/use-button/useButton.js","../node_modules/@base-ui/react/esm/field/item/FieldItemContext.js","../node_modules/@base-ui/react/esm/internals/form-context/FormContext.js","../node_modules/@base-ui/react/esm/internals/labelable-provider/useAriaLabelledBy.js","../node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootContext.js","../node_modules/@base-ui/react/esm/internals/reason-parts.js","../node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js","../node_modules/@base-ui/react/esm/internals/useValueChanged.js","../node_modules/@base-ui/react/esm/checkbox/root/CheckboxRoot.js","../node_modules/@base-ui/react/esm/checkbox-group/useCheckboxGroupParent.js","../node_modules/@base-ui/react/esm/internals/areArraysEqual.js","../node_modules/@base-ui/react/esm/checkbox-group/CheckboxGroup.js","../src/components/form/checkbox-group/checkbox-group.tsx","../src/components/form/icons-toggle/icons-toggle.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./button.module.css\"\n\nconst buttonVariants = cva(styles.base, {\n variants: {\n variant: {\n primary: styles.primary,\n secondary: styles.secondary,\n },\n size: {\n lg: styles.lg,\n sm: styles.sm,\n },\n iconOnly: {\n true: styles.iconOnly,\n false: \"\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"sm\",\n iconOnly: false,\n },\n})\n\ntype ButtonProps = Omit<ButtonPrimitive.Props, \"disabled\"> &\n VariantProps<typeof buttonVariants> & {\n isPending?: boolean\n /** @deprecated Avoid disabled buttons — they hurt accessibility and discoverability. Prefer `isPending` for in-flight actions, or keep the button enabled and show validation/error feedback. */\n disabled?: ButtonPrimitive.Props[\"disabled\"]\n }\n\n/**\n * @param variant - `\"primary\"` (default) or `\"secondary\"`\n *\n * @param size - `\"sm\"` (default) or `\"lg\"`.\n *\n * @param iconOnly - `true` if button contains only an icon. Always provide an `aria-label` when using this.\n *\n * @param isPending - `true` to show a centered spinner and block interaction. The button width is unchanged.\n *\n * @param disabled - **Deprecated.** Avoid disabled buttons — prefer `isPending` for in-flight actions, or keep the button enabled and show validation feedback.\n *\n * @example\n * <Button variant=\"primary\" size=\"sm\">Click me</Button>\n *\n * @example\n * <Button iconOnly><Info /></Button>\n *\n * @example\n * <Button isPending>Saving…</Button>\n */\nfunction Button({\n className,\n variant,\n size,\n iconOnly,\n isPending,\n disabled,\n children,\n ...props\n}: ButtonProps) {\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n disabled={isPending || disabled}\n aria-busy={isPending}\n className={clsx(\n buttonVariants({ variant, size, iconOnly }),\n isPending && styles.pending,\n className\n )}\n {...props}\n >\n {isPending ? (\n <>\n <span className={styles.content}>{children}</span>\n <span className={styles.spinner} aria-hidden=\"true\" />\n </>\n ) : (\n children\n )}\n </ButtonPrimitive>\n )\n}\n\nexport { Button, buttonVariants }\nexport type { ButtonProps }\n","import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./text.module.css\"\n\nconst textVariants = cva(\"\", {\n variants: {\n variant: {\n headline: styles.headline,\n \"headline-sm\": styles[\"headline-sm\"],\n \"headline-xs\": styles[\"headline-xs\"],\n button: styles.button,\n \"body-bold\": styles[\"body-bold\"],\n body: styles.body,\n \"body-sm-bold\": styles[\"body-sm-bold\"],\n \"body-sm\": styles[\"body-sm\"],\n description: styles.description,\n },\n color: {\n default: styles[\"color-default\"],\n white: styles[\"color-white\"],\n background: styles[\"color-background\"],\n surface: styles[\"color-surface\"],\n \"divider-dark\": styles[\"color-divider-dark\"],\n informative: styles[\"color-informative\"],\n error: styles[\"color-error\"],\n warning: styles[\"color-warning\"],\n success: styles[\"color-success\"],\n info: styles[\"color-info\"],\n interactive: styles[\"color-interactive\"],\n inherit: \"\",\n },\n },\n defaultVariants: {\n variant: \"body\",\n color: \"default\",\n },\n})\n\nconst DEFAULT_ELEMENTS = {\n headline: \"h1\",\n \"headline-sm\": \"h2\",\n \"headline-xs\": \"h3\",\n body: \"p\",\n \"body-bold\": \"p\",\n \"body-sm\": \"p\",\n \"body-sm-bold\": \"p\",\n description: \"p\",\n button: \"span\",\n} as const\n\ntype TextVariant = NonNullable<VariantProps<typeof textVariants>[\"variant\"]>\ntype TextColor = NonNullable<VariantProps<typeof textVariants>[\"color\"]>\n\ntype TextOwnProps<E extends React.ElementType> = {\n variant?: TextVariant\n color?: TextColor\n as?: E\n className?: string\n children?: React.ReactNode\n}\n\ntype TextProps<E extends React.ElementType> = TextOwnProps<E> &\n Omit<React.ComponentPropsWithoutRef<E>, keyof TextOwnProps<E>>\n\nfunction Text<E extends React.ElementType = \"p\">({\n variant = \"body\",\n color,\n as,\n className,\n ...props\n}: TextProps<E>) {\n const Component = (as ?? DEFAULT_ELEMENTS[variant]) as React.ElementType\n return (\n <Component\n data-slot=\"text\"\n className={clsx(textVariants({ variant, color, className }))}\n {...props}\n />\n )\n}\n\nexport { Text, textVariants }\n","import { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\"\nimport { Check } from \"lucide-react\"\nimport type { ReactNode } from \"react\"\n\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox.module.css\"\n\ntype CheckboxProps = Omit<\n CheckboxPrimitive.Root.Props,\n \"disabled\" | \"indeterminate\"\n> & {\n label?: ReactNode\n}\n\n/**\n * @param label - Label rendered next to the checkbox. Accepts any `ReactNode`.\n *\n * @example\n * <Checkbox label=\"Jeg godtar vilkår og betingelser\" />\n *\n * @example\n * <Checkbox\n * label={\n * <>\n * Jeg godtar <Link href=\"#\">vilkår og betingelser</Link>\n * </>\n * }\n * />\n */\nfunction Checkbox({ className, label, ...props }: CheckboxProps) {\n const box = (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={clsx(styles.checkbox, className)}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className={styles.indicator}\n >\n <Check className={styles.check} />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n\n if (label === undefined) return box\n\n return (\n <label className={styles.label}>\n {box}\n <Text variant=\"body\" as=\"span\">\n {label}\n </Text>\n </label>\n )\n}\n\nexport { Checkbox }\nexport type { CheckboxProps }\n","let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function error(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.error(`Base UI: ${messageKey}`);\n }\n }\n}\nexport function reset() {\n set?.clear();\n}","'use client';\n\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nimport { error } from \"./error.js\";\nexport function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n error([`A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && serializeToDevModeString(defaultValue) !== serializeToDevModeString(defaultProp)) {\n error([`A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [defaultProp]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}\nfunction serializeToDevModeString(input) {\n let nextId = 0;\n const seen = new WeakMap();\n try {\n const result = JSON.stringify(input, function replacer(key, value) {\n if (key === '_owner' && this != null && typeof this === 'object' && '$$typeof' in this) {\n return undefined;\n }\n if (typeof value === 'bigint') {\n return `__bigint__:${value}`;\n }\n if (value !== null && typeof value === 'object') {\n const id = seen.get(value);\n if (id !== undefined) {\n return `__object__:${id}`;\n }\n seen.set(value, nextId);\n nextId += 1;\n }\n return value;\n });\n return result ?? `__top__:${typeof input}`;\n } catch {\n return '__unserializable__';\n }\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useRefWithInit(sortColumns, columns)\n */\n\nexport function useRefWithInit(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nimport { useRefWithInit } from \"./useRefWithInit.js\";\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nconst useInsertionEffect = React[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)];\nconst useSafeInsertionEffect =\n// React 17 doesn't have useInsertionEffect.\nuseInsertionEffect &&\n// Preact replaces useInsertionEffect with useLayoutEffect and fires too late.\nuseInsertionEffect !== React.useLayoutEffect ? useInsertionEffect : fn => fn();\n/**\n * Stabilizes the function passed so it's always the same between renders.\n *\n * The function becomes non-reactive to any values it captures.\n * It can safely be passed as a dependency of `React.useMemo` and `React.useEffect` without re-triggering them if its captured values change.\n *\n * The function must only be called inside effects and event handlers, never during render (which throws an error).\n *\n * This hook is a more permissive version of React 19.2's `React.useEffectEvent` in that it can be passed through contexts and called in event handler props, not just effects.\n */\nexport function useStableCallback(callback) {\n const stable = useRefWithInit(createStableCallback).current;\n stable.next = callback;\n useSafeInsertionEffect(stable.effect);\n return stable.trampoline;\n}\nfunction createStableCallback() {\n const stable = {\n next: undefined,\n callback: assertNotCalled,\n trampoline: (...args) => stable.callback?.(...args),\n effect: () => {\n stable.callback = stable.next;\n }\n };\n return stable;\n}\nfunction assertNotCalled() {\n if (process.env.NODE_ENV !== 'production') {\n throw /* minify-error-disabled */new Error('Base UI: Cannot call an event handler while rendering.');\n }\n}","export function NOOP() {}\nexport const EMPTY_ARRAY = Object.freeze([]);\nexport const EMPTY_OBJECT = Object.freeze({});","import * as React from 'react';\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nexport const SafeReact = {\n ...React\n};","'use client';\n\nimport * as React from 'react';\nimport { SafeReact } from \"./safeReact.js\";\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride, prefix = 'mui') {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`${prefix}-${globalId}`);\n }\n }, [defaultId, prefix]);\n return id;\n}\nconst maybeReactUseId = SafeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride, prefix) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride, prefix);\n}","'use client';\n\nimport { useId } from '@base-ui/utils/useId';\n\n/**\n * Wraps `useId` and prefixes generated `id`s with `base-ui-`\n * @param {string | undefined} idOverride overrides the generated id when provided\n * @returns {string | undefined}\n */\nexport function useBaseUiId(idOverride) {\n return useId(idOverride, 'base-ui');\n}","/**\n * Creates a formatErrorMessage function with a custom URL and prefix.\n * @param baseUrl - The base URL for the error page (e.g., 'https://base-ui.com/production-error')\n * @param prefix - The prefix for the error message (e.g., 'Base UI')\n * @returns A function that formats error messages with the given URL and prefix\n */\nexport function createFormatErrorMessage(baseUrl, prefix) {\n return function formatErrorMessage(code, ...args) {\n const url = new URL(baseUrl);\n url.searchParams.set('code', code.toString());\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `${prefix} error #${code}; visit ${url} for the full message.`;\n };\n}\n\n/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n */\nconst formatErrorMessage = createFormatErrorMessage('https://base-ui.com/production-error', 'Base UI');\nexport default formatErrorMessage;","import { useRefWithInit } from \"./useRefWithInit.js\";\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n * This makes sure multiple refs are updated together and have the same value.\n *\n * This function accepts up to four refs. If you need to merge more, or have an unspecified number of refs to merge,\n * use `useMergedRefsN` instead.\n */\n\nexport function useMergedRefs(a, b, c, d) {\n const forkRef = useRefWithInit(createForkRef).current;\n if (didChange(forkRef, a, b, c, d)) {\n update(forkRef, [a, b, c, d]);\n }\n return forkRef.callback;\n}\n\n/**\n * Merges an array of refs into a single memoized callback ref or `null`.\n *\n * If you need to merge a fixed number (up to four) of refs, use `useMergedRefs` instead for better performance.\n */\nexport function useMergedRefsN(refs) {\n const forkRef = useRefWithInit(createForkRef).current;\n if (didChangeN(forkRef, refs)) {\n update(forkRef, refs);\n }\n return forkRef.callback;\n}\nfunction createForkRef() {\n return {\n callback: null,\n cleanup: null,\n refs: []\n };\n}\nfunction didChange(forkRef, a, b, c, d) {\n // prettier-ignore\n return forkRef.refs[0] !== a || forkRef.refs[1] !== b || forkRef.refs[2] !== c || forkRef.refs[3] !== d;\n}\nfunction didChangeN(forkRef, newRefs) {\n return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index) => ref !== newRefs[index]);\n}\nfunction update(forkRef, refs) {\n forkRef.refs = refs;\n if (refs.every(ref => ref == null)) {\n forkRef.callback = null;\n return;\n }\n forkRef.callback = instance => {\n if (forkRef.cleanup) {\n forkRef.cleanup();\n forkRef.cleanup = null;\n }\n if (instance != null) {\n const cleanupCallbacks = Array(refs.length).fill(null);\n for (let i = 0; i < refs.length; i += 1) {\n const ref = refs[i];\n if (ref == null) {\n continue;\n }\n switch (typeof ref) {\n case 'function':\n {\n const refCleanup = ref(instance);\n if (typeof refCleanup === 'function') {\n cleanupCallbacks[i] = refCleanup;\n }\n break;\n }\n case 'object':\n {\n ref.current = instance;\n break;\n }\n default:\n }\n }\n forkRef.cleanup = () => {\n for (let i = 0; i < refs.length; i += 1) {\n const ref = refs[i];\n if (ref == null) {\n continue;\n }\n switch (typeof ref) {\n case 'function':\n {\n const cleanupCallback = cleanupCallbacks[i];\n if (typeof cleanupCallback === 'function') {\n cleanupCallback();\n } else {\n ref(null);\n }\n break;\n }\n case 'object':\n {\n ref.current = null;\n break;\n }\n default:\n }\n }\n };\n }\n };\n}","import * as React from 'react';\nconst majorVersion = parseInt(React.version, 10);\nexport function isReactVersionAtLeast(reactVersionToCheck) {\n return majorVersion >= reactVersionToCheck;\n}","import * as React from 'react';\nimport { isReactVersionAtLeast } from \"./reactVersion.js\";\n\n/**\n * Extracts the `ref` from a React element, handling different React versions.\n */\nexport function getReactElementRef(element) {\n if (! /*#__PURE__*/React.isValidElement(element)) {\n return null;\n }\n const reactElement = element;\n const propsWithRef = reactElement.props;\n return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;\n}","export function mergeObjects(a, b) {\n if (a && !b) {\n return a;\n }\n if (!a && b) {\n return b;\n }\n if (a || b) {\n return {\n ...a,\n ...b\n };\n }\n return undefined;\n}","let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function warn(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.warn(`Base UI: ${messageKey}`);\n }\n }\n}","export function getStateAttributesProps(state, customMapping) {\n const props = {};\n\n /* eslint-disable-next-line guard-for-in */\n for (const key in state) {\n const value = state[key];\n if (customMapping?.hasOwnProperty(key)) {\n const customProps = customMapping[key](value);\n if (customProps != null) {\n Object.assign(props, customProps);\n }\n continue;\n }\n if (value === true) {\n props[`data-${key.toLowerCase()}`] = '';\n } else if (value) {\n props[`data-${key.toLowerCase()}`] = value.toString();\n }\n }\n return props;\n}","/**\n * If the provided className is a string, it will be returned as is.\n * Otherwise, the function will call the className function with the state as the first argument.\n *\n * @param className\n * @param state\n */\nexport function resolveClassName(className, state) {\n return typeof className === 'function' ? className(state) : className;\n}","/**\n * If the provided style is an object, it will be returned as is.\n * Otherwise, the function will call the style function with the state as the first argument.\n *\n * @param style\n * @param state\n */\nexport function resolveStyle(style, state) {\n return typeof style === 'function' ? style(state) : style;\n}","import { mergeObjects } from '@base-ui/utils/mergeObjects';\nconst EMPTY_PROPS = {};\n\n/* eslint-disable id-denylist */\n/**\n * Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite\n * the conflicting ones from others. This doesn't apply to event handlers, `className` and `style` props.\n *\n * Event handlers are merged and called in right-to-left order (rightmost handler executes first, leftmost last).\n * For React synthetic events, the rightmost handler can prevent prior (left-positioned) handlers from executing\n * by calling `event.preventBaseUIHandler()`. For non-synthetic events (custom events with primitive/object values),\n * all handlers always execute without prevention capability.\n *\n * The `className` prop is merged by concatenating classes in right-to-left order (rightmost class appears first in the string).\n * The `style` prop is merged with rightmost styles overwriting the prior ones.\n *\n * Props can either be provided as objects or as functions that take the previous props as an argument.\n * The function will receive the merged props up to that point (going from left to right):\n * so in the case of `(obj1, obj2, fn, obj3)`, `fn` will receive the merged props of `obj1` and `obj2`.\n * The function is responsible for chaining event handlers if needed (that is, we don't run the merge logic).\n *\n * Event handlers returned by the functions are not automatically prevented when `preventBaseUIHandler` is called.\n * They must check `event.baseUIHandlerPrevented` themselves and bail out if it's true.\n *\n * @important **`ref` is not merged.**\n * @param a Props object to merge.\n * @param b Props object to merge. The function will overwrite conflicting props from `a`.\n * @param c Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param d Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param e Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @returns The merged props.\n * @public\n */\n\nexport function mergeProps(a, b, c, d, e) {\n if (!c && !d && !e && !a) {\n return createInitialMergedProps(b);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(a);\n if (b) {\n merged = mergeInto(merged, b);\n }\n if (c) {\n merged = mergeInto(merged, c);\n }\n if (d) {\n merged = mergeInto(merged, d);\n }\n if (e) {\n merged = mergeInto(merged, e);\n }\n return merged;\n}\n/* eslint-enable id-denylist */\n\n/**\n * Merges an arbitrary number of React props using the same logic as {@link mergeProps}.\n * This function accepts an array of props instead of individual arguments.\n *\n * This has slightly lower performance than {@link mergeProps} due to accepting an array\n * instead of a fixed number of arguments. Prefer {@link mergeProps} when merging 5 or\n * fewer prop sets for better performance.\n *\n * @param props Array of props to merge.\n * @returns The merged props.\n * @see mergeProps\n * @public\n */\nexport function mergePropsN(props) {\n if (props.length === 0) {\n return EMPTY_PROPS;\n }\n if (props.length === 1) {\n return createInitialMergedProps(props[0]);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(props[0]);\n for (let i = 1; i < props.length; i += 1) {\n merged = mergeInto(merged, props[i]);\n }\n return merged;\n}\nfunction createInitialMergedProps(inputProps) {\n if (isPropsGetter(inputProps)) {\n // Getter-returned handlers intentionally keep their existing semantics.\n return {\n ...resolvePropsGetter(inputProps, EMPTY_PROPS)\n };\n }\n return copyInitialProps(inputProps);\n}\nfunction mergeInto(merged, inputProps) {\n if (isPropsGetter(inputProps)) {\n return resolvePropsGetter(inputProps, merged);\n }\n return mutablyMergeInto(merged, inputProps);\n}\nfunction copyInitialProps(inputProps) {\n const copiedProps = {\n ...inputProps\n };\n\n // `copiedProps` is our fresh own-object copy, so iterating with `for...in` is safe here.\n // eslint-disable-next-line guard-for-in\n for (const propName in copiedProps) {\n const propValue = copiedProps[propName];\n if (isEventHandler(propName, propValue)) {\n copiedProps[propName] = wrapEventHandler(propValue);\n }\n }\n return copiedProps;\n}\n\n/**\n * Merges two sets of props. In case of conflicts, the external props take precedence.\n */\nfunction mutablyMergeInto(mergedProps, externalProps) {\n if (!externalProps) {\n return mergedProps;\n }\n\n // eslint-disable-next-line guard-for-in\n for (const propName in externalProps) {\n const externalPropValue = externalProps[propName];\n switch (propName) {\n case 'style':\n {\n mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);\n break;\n }\n case 'className':\n {\n mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);\n break;\n }\n default:\n {\n if (isEventHandler(propName, externalPropValue)) {\n mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);\n } else {\n mergedProps[propName] = externalPropValue;\n }\n }\n }\n }\n return mergedProps;\n}\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const code0 = key.charCodeAt(0);\n const code1 = key.charCodeAt(1);\n const code2 = key.charCodeAt(2);\n return code0 === 111 /* o */ && code1 === 110 /* n */ && code2 >= 65 /* A */ && code2 <= 90 /* Z */ && (typeof value === 'function' || typeof value === 'undefined');\n}\nfunction isPropsGetter(inputProps) {\n return typeof inputProps === 'function';\n}\nfunction resolvePropsGetter(inputProps, previousProps) {\n if (isPropsGetter(inputProps)) {\n return inputProps(previousProps);\n }\n return inputProps ?? EMPTY_PROPS;\n}\nfunction mergeEventHandlers(ourHandler, theirHandler) {\n if (!theirHandler) {\n return ourHandler;\n }\n if (!ourHandler) {\n return wrapEventHandler(theirHandler);\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n const baseUIEvent = event;\n makeEventPreventable(baseUIEvent);\n const result = theirHandler(...args);\n if (!baseUIEvent.baseUIHandlerPrevented) {\n ourHandler?.(...args);\n }\n return result;\n }\n const result = theirHandler(...args);\n ourHandler?.(...args);\n return result;\n };\n}\nfunction wrapEventHandler(handler) {\n if (!handler) {\n return handler;\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n makeEventPreventable(event);\n }\n return handler(...args);\n };\n}\nexport function makeEventPreventable(event) {\n event.preventBaseUIHandler = () => {\n event.baseUIHandlerPrevented = true;\n };\n return event;\n}\nexport function mergeClassNames(ourClassName, theirClassName) {\n if (theirClassName) {\n if (ourClassName) {\n // eslint-disable-next-line prefer-template\n return theirClassName + ' ' + ourClassName;\n }\n return theirClassName;\n }\n return ourClassName;\n}\nfunction isSyntheticEvent(event) {\n return event != null && typeof event === 'object' && 'nativeEvent' in event;\n}","import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.js\";\nimport { resolveClassName } from \"../utils/resolveClassName.js\";\nimport { resolveStyle } from \"../utils/resolveStyle.js\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.js\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n const renderProp = componentProps.render;\n const outProps = useRenderElementProps(componentProps, params);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params = {}) {\n const {\n className: classNameProp,\n style: styleProp,\n render: renderProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/facebook/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n let newElement = render;\n\n // Workaround for https://github.com/facebook/react/issues/32392\n // This works because the toArray() logic unwrap lazy element type in\n // https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\n if (newElement?.$$typeof === REACT_LAZY_TYPE) {\n const children = React.Children.toArray(render);\n newElement = children[0];\n }\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(newElement)) {\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(newElement, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CheckboxGroupContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CheckboxGroupContext.displayName = \"CheckboxGroupContext\";\nexport function useCheckboxGroupContext(optional = true) {\n const context = React.useContext(CheckboxGroupContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.' : _formatErrorMessage(3));\n }\n return context;\n}","export let FieldControlDataAttributes = /*#__PURE__*/function (FieldControlDataAttributes) {\n /**\n * Present when the field is disabled.\n */\n FieldControlDataAttributes[\"disabled\"] = \"data-disabled\";\n /**\n * Present when the field is in a valid state.\n */\n FieldControlDataAttributes[\"valid\"] = \"data-valid\";\n /**\n * Present when the field is in an invalid state.\n */\n FieldControlDataAttributes[\"invalid\"] = \"data-invalid\";\n /**\n * Present when the field has been touched.\n */\n FieldControlDataAttributes[\"touched\"] = \"data-touched\";\n /**\n * Present when the field's value has changed.\n */\n FieldControlDataAttributes[\"dirty\"] = \"data-dirty\";\n /**\n * Present when the field is filled.\n */\n FieldControlDataAttributes[\"filled\"] = \"data-filled\";\n /**\n * Present when the field control is focused.\n */\n FieldControlDataAttributes[\"focused\"] = \"data-focused\";\n return FieldControlDataAttributes;\n}({});","import { FieldControlDataAttributes } from \"../../field/control/FieldControlDataAttributes.js\";\nexport const DEFAULT_VALIDITY_STATE = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: null,\n valueMissing: false\n};\nexport const DEFAULT_FIELD_STATE_ATTRIBUTES = {\n valid: null,\n touched: false,\n dirty: false,\n filled: false,\n focused: false\n};\nexport const DEFAULT_FIELD_ROOT_STATE = {\n disabled: false,\n ...DEFAULT_FIELD_STATE_ATTRIBUTES\n};\nexport const fieldValidityMapping = {\n valid(value) {\n if (value === null) {\n return null;\n }\n if (value) {\n return {\n [FieldControlDataAttributes.valid]: ''\n };\n }\n return {\n [FieldControlDataAttributes.invalid]: ''\n };\n }\n};","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { NOOP } from \"../noop.js\";\nimport { DEFAULT_FIELD_ROOT_STATE, DEFAULT_FIELD_STATE_ATTRIBUTES, DEFAULT_VALIDITY_STATE } from \"../field-constants/constants.js\";\nexport const FieldRootContext = /*#__PURE__*/React.createContext({\n invalid: undefined,\n name: undefined,\n validityData: {\n state: DEFAULT_VALIDITY_STATE,\n errors: [],\n error: '',\n value: '',\n initialValue: null\n },\n setValidityData: NOOP,\n disabled: undefined,\n touched: DEFAULT_FIELD_STATE_ATTRIBUTES.touched,\n setTouched: NOOP,\n dirty: DEFAULT_FIELD_STATE_ATTRIBUTES.dirty,\n setDirty: NOOP,\n filled: DEFAULT_FIELD_STATE_ATTRIBUTES.filled,\n setFilled: NOOP,\n focused: DEFAULT_FIELD_STATE_ATTRIBUTES.focused,\n setFocused: NOOP,\n validate: () => null,\n validationMode: 'onSubmit',\n validationDebounceTime: 0,\n shouldValidateOnChange: () => false,\n state: DEFAULT_FIELD_ROOT_STATE,\n markedDirtyRef: {\n current: false\n },\n registerFieldControl: NOOP,\n validation: {\n getValidationProps: (props = EMPTY_OBJECT) => props,\n getInputValidationProps: (props = EMPTY_OBJECT) => props,\n inputRef: {\n current: null\n },\n commit: async () => {}\n }\n});\nif (process.env.NODE_ENV !== \"production\") FieldRootContext.displayName = \"FieldRootContext\";\nexport function useFieldRootContext(optional = true) {\n const context = React.useContext(FieldRootContext);\n if (context.setValidityData === NOOP && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.' : _formatErrorMessage(28));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nconst noop = () => {};\nexport const useIsoLayoutEffect = typeof document !== 'undefined' ? React.useLayoutEffect : noop;","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFieldRootContext } from \"../field-root-context/FieldRootContext.js\";\nexport function useRegisterFieldControl(controlRef, params) {\n const {\n enabled = true,\n getValue,\n id,\n value\n } = params;\n const {\n registerFieldControl\n } = useFieldRootContext();\n const sourceRef = React.useRef(null);\n if (!sourceRef.current) {\n sourceRef.current = Symbol();\n }\n useIsoLayoutEffect(() => {\n const source = sourceRef.current;\n if (!source || !enabled) {\n return undefined;\n }\n registerFieldControl(source, {\n controlRef,\n getValue,\n id,\n value\n });\n return () => {\n registerFieldControl(source, undefined);\n };\n }, [controlRef, enabled, getValue, id, registerFieldControl, value]);\n}","'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.js\";\n/**\n * A context for providing [labelable elements](https://html.spec.whatwg.org/multipage/forms.html#category-label)\\\n * with an accessible name (label) and description.\n */\nexport const LabelableContext = /*#__PURE__*/React.createContext({\n controlId: undefined,\n registerControlId: NOOP,\n labelId: undefined,\n setLabelId: NOOP,\n messageIds: [],\n setMessageIds: NOOP,\n getDescriptionProps: externalProps => externalProps\n});\nif (process.env.NODE_ENV !== \"production\") LabelableContext.displayName = \"LabelableContext\";\nexport function useLabelableContext() {\n return React.useContext(LabelableContext);\n}","const visuallyHiddenBase = {\n clipPath: 'inset(50%)',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n border: 0,\n padding: 0,\n width: 1,\n height: 1,\n margin: -1\n};\nexport const visuallyHidden = {\n ...visuallyHiddenBase,\n position: 'fixed',\n top: 0,\n left: 0\n};\nexport const visuallyHiddenInput = {\n ...visuallyHiddenBase,\n position: 'absolute'\n};","export let CheckboxRootDataAttributes = /*#__PURE__*/function (CheckboxRootDataAttributes) {\n /**\n * Present when the checkbox is checked.\n */\n CheckboxRootDataAttributes[\"checked\"] = \"data-checked\";\n /**\n * Present when the checkbox is not checked.\n */\n CheckboxRootDataAttributes[\"unchecked\"] = \"data-unchecked\";\n /**\n * Present when the checkbox is in an indeterminate state.\n */\n CheckboxRootDataAttributes[\"indeterminate\"] = \"data-indeterminate\";\n /**\n * Present when the checkbox is disabled.\n */\n CheckboxRootDataAttributes[\"disabled\"] = \"data-disabled\";\n /**\n * Present when the checkbox is readonly.\n */\n CheckboxRootDataAttributes[\"readonly\"] = \"data-readonly\";\n /**\n * Present when the checkbox is required.\n */\n CheckboxRootDataAttributes[\"required\"] = \"data-required\";\n /**\n * Present when the checkbox is in a valid state (when wrapped in Field.Root).\n */\n CheckboxRootDataAttributes[\"valid\"] = \"data-valid\";\n /**\n * Present when the checkbox is in an invalid state (when wrapped in Field.Root).\n */\n CheckboxRootDataAttributes[\"invalid\"] = \"data-invalid\";\n /**\n * Present when the checkbox has been touched (when wrapped in Field.Root).\n */\n CheckboxRootDataAttributes[\"touched\"] = \"data-touched\";\n /**\n * Present when the checkbox's value has changed (when wrapped in Field.Root).\n */\n CheckboxRootDataAttributes[\"dirty\"] = \"data-dirty\";\n /**\n * Present when the checkbox is checked (when wrapped in Field.Root).\n */\n CheckboxRootDataAttributes[\"filled\"] = \"data-filled\";\n /**\n * Present when the checkbox is focused (when wrapped in Field.Root).\n */\n CheckboxRootDataAttributes[\"focused\"] = \"data-focused\";\n return CheckboxRootDataAttributes;\n}({});","'use client';\n\nimport * as React from 'react';\nimport { CheckboxRootDataAttributes } from \"../root/CheckboxRootDataAttributes.js\";\nimport { fieldValidityMapping } from \"../../internals/field-constants/constants.js\";\nexport function useStateAttributesMapping(state) {\n return React.useMemo(() => ({\n checked(value) {\n if (state.indeterminate) {\n // `data-indeterminate` is already handled by the `indeterminate` prop.\n return {};\n }\n if (value) {\n return {\n [CheckboxRootDataAttributes.checked]: ''\n };\n }\n return {\n [CheckboxRootDataAttributes.unchecked]: ''\n };\n },\n ...fieldValidityMapping\n }), [state.indeterminate]);\n}","function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n try {\n if (element.matches(':popover-open')) {\n return true;\n }\n } catch (_e) {\n // no-op\n }\n try {\n return element.matches(':modal');\n } catch (_e) {\n return false;\n }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (isWebKitValue == null) {\n isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n }\n return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n } else {\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n }\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CompositeRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CompositeRootContext.displayName = \"CompositeRootContext\";\nexport function useCompositeRootContext(optional = false) {\n const context = React.useContext(CompositeRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.' : _formatErrorMessage(16));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nexport function useFocusableWhenDisabled(parameters) {\n const {\n focusableWhenDisabled,\n disabled,\n composite = false,\n tabIndex: tabIndexProp = 0,\n isNativeButton\n } = parameters;\n const isFocusableComposite = composite && focusableWhenDisabled !== false;\n const isNonFocusableComposite = composite && focusableWhenDisabled === false;\n\n // we can't explicitly assign `undefined` to any of these props because it\n // would otherwise prevent subsequently merged props from setting them\n const props = React.useMemo(() => {\n const additionalProps = {\n // allow Tabbing away from focusableWhenDisabled elements\n onKeyDown(event) {\n if (disabled && focusableWhenDisabled && event.key !== 'Tab') {\n event.preventDefault();\n }\n }\n };\n if (!composite) {\n additionalProps.tabIndex = tabIndexProp;\n if (!isNativeButton && disabled) {\n additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1;\n }\n }\n if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled) {\n additionalProps['aria-disabled'] = disabled;\n }\n if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) {\n additionalProps.disabled = disabled;\n }\n return additionalProps;\n }, [composite, disabled, focusableWhenDisabled, isFocusableComposite, isNonFocusableComposite, isNativeButton, tabIndexProp]);\n return {\n props\n };\n}","'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.js\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.js\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.js\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n const type = isNativeButton ? 'button' : undefined;\n return mergeProps({\n type,\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n if (isLink || isNativeButton && isButton) {\n currentTarget.click();\n event.preventBaseUIHandler();\n } else if (shouldClick) {\n externalOnClick?.(event);\n event.preventBaseUIHandler();\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (shouldClick) {\n if (!isNativeButton && (isSpaceKey || isEnterKey)) {\n event.preventDefault();\n }\n if (!isNativeButton && isEnterKey) {\n externalOnClick?.(event);\n }\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && event.key === ' ') {\n externalOnClick?.(event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, !isNativeButton ? {\n role: 'button'\n } : undefined, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return Boolean(elem?.tagName === 'A' && elem?.href);\n}","'use client';\n\nimport * as React from 'react';\nexport const FieldItemContext = /*#__PURE__*/React.createContext({\n disabled: false\n});\nif (process.env.NODE_ENV !== \"production\") FieldItemContext.displayName = \"FieldItemContext\";\nexport function useFieldItemContext() {\n const context = React.useContext(FieldItemContext);\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.js\";\nexport const FormContext = /*#__PURE__*/React.createContext({\n formRef: {\n current: {\n fields: new Map()\n }\n },\n errors: {},\n clearErrors: NOOP,\n validationMode: 'onSubmit',\n submitAttemptedRef: {\n current: false\n }\n});\nif (process.env.NODE_ENV !== \"production\") FormContext.displayName = \"FormContext\";\nexport function useFormContext() {\n return React.useContext(FormContext);\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useBaseUiId } from \"../useBaseUiId.js\";\n\n/**\n * @internal\n */\nexport function useAriaLabelledBy(explicitAriaLabelledBy, labelId, labelSourceRef, enableFallback = true, labelSourceId) {\n const [fallbackAriaLabelledBy, setFallbackAriaLabelledBy] = React.useState();\n const generatedLabelId = useBaseUiId(labelSourceId ? `${labelSourceId}-label` : undefined);\n const ariaLabelledBy = explicitAriaLabelledBy ?? labelId ?? fallbackAriaLabelledBy;\n\n // Fallback for <span> controls labelled by wrapping/sibling native <label>.\n // Run after every commit so DOM association changes (e.g. label mount/unmount)\n // are reflected even when props/state deps are unchanged.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useIsoLayoutEffect(() => {\n const nextAriaLabelledBy = explicitAriaLabelledBy || labelId || !enableFallback ? undefined : getAriaLabelledBy(labelSourceRef.current, generatedLabelId);\n if (fallbackAriaLabelledBy !== nextAriaLabelledBy) {\n setFallbackAriaLabelledBy(nextAriaLabelledBy);\n }\n });\n return ariaLabelledBy;\n}\nfunction getAriaLabelledBy(labelSource, generatedLabelId) {\n const label = findAssociatedLabel(labelSource);\n if (!label) {\n return undefined;\n }\n if (!label.id && generatedLabelId) {\n label.id = generatedLabelId;\n }\n return label.id || undefined;\n}\nfunction findAssociatedLabel(labelSource) {\n if (!labelSource) {\n return undefined;\n }\n\n // Fast path before the expensive `.labels` read.\n const parent = labelSource.parentElement;\n if (parent && parent.tagName === 'LABEL') {\n return parent;\n }\n const controlId = labelSource.id;\n if (controlId) {\n const nextSibling = labelSource.nextElementSibling;\n if (nextSibling && nextSibling.htmlFor === controlId) {\n return nextSibling;\n }\n }\n const labels = labelSource.labels;\n return labels && labels[0];\n}","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CheckboxRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CheckboxRootContext.displayName = \"CheckboxRootContext\";\nexport function useCheckboxRootContext() {\n const context = React.useContext(CheckboxRootContext);\n if (context === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.' : _formatErrorMessage(14));\n }\n return context;\n}","export const none = 'none';\nexport const triggerPress = 'trigger-press';\nexport const triggerHover = 'trigger-hover';\nexport const triggerFocus = 'trigger-focus';\nexport const outsidePress = 'outside-press';\nexport const itemPress = 'item-press';\nexport const closePress = 'close-press';\nexport const linkPress = 'link-press';\nexport const clearPress = 'clear-press';\nexport const chipRemovePress = 'chip-remove-press';\nexport const trackPress = 'track-press';\nexport const incrementPress = 'increment-press';\nexport const decrementPress = 'decrement-press';\nexport const inputChange = 'input-change';\nexport const inputClear = 'input-clear';\nexport const inputBlur = 'input-blur';\nexport const inputPaste = 'input-paste';\nexport const inputPress = 'input-press';\nexport const focusOut = 'focus-out';\nexport const escapeKey = 'escape-key';\nexport const closeWatcher = 'close-watcher';\nexport const listNavigation = 'list-navigation';\nexport const keyboard = 'keyboard';\nexport const pointer = 'pointer';\nexport const drag = 'drag';\nexport const wheel = 'wheel';\nexport const scrub = 'scrub';\nexport const cancelOpen = 'cancel-open';\nexport const siblingOpen = 'sibling-open';\nexport const disabled = 'disabled';\nexport const imperativeAction = 'imperative-action';\nexport const swipe = 'swipe';\nexport const windowResize = 'window-resize';","import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { REASONS } from \"./reasons.js\";\n\n/**\n * Maps a change `reason` string to the corresponding native event type.\n */\n\n/**\n * Details of custom change events emitted by Base UI components.\n */\n\n/**\n * Details of custom generic events emitted by Base UI components.\n */\n\n/**\n * Creates a Base UI event details object with the given reason and utilities\n * for preventing Base UI's internal event handling.\n */\nexport function createChangeEventDetails(reason, event, trigger, customProperties) {\n let canceled = false;\n let allowPropagation = false;\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n cancel() {\n canceled = true;\n },\n allowPropagation() {\n allowPropagation = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return allowPropagation;\n },\n trigger,\n ...custom\n };\n return details;\n}\nexport function createGenericEventDetails(reason, event, customProperties) {\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n ...custom\n };\n return details;\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}","'use client';\n\nimport * as React from 'react';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { visuallyHidden, visuallyHiddenInput } from '@base-ui/utils/visuallyHidden';\nimport { NOOP } from \"../../internals/noop.js\";\nimport { useStateAttributesMapping } from \"../utils/useStateAttributesMapping.js\";\nimport { useRenderElement } from \"../../internals/useRenderElement.js\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.js\";\nimport { mergeProps } from \"../../merge-props/index.js\";\nimport { useButton } from \"../../internals/use-button/useButton.js\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.js\";\nimport { useRegisterFieldControl } from \"../../internals/field-register-control/useRegisterFieldControl.js\";\nimport { useFieldItemContext } from \"../../field/item/FieldItemContext.js\";\nimport { useFormContext } from \"../../internals/form-context/FormContext.js\";\nimport { useLabelableContext } from \"../../internals/labelable-provider/LabelableContext.js\";\nimport { useAriaLabelledBy } from \"../../internals/labelable-provider/useAriaLabelledBy.js\";\nimport { useCheckboxGroupContext } from \"../../checkbox-group/CheckboxGroupContext.js\";\nimport { CheckboxRootContext } from \"./CheckboxRootContext.js\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.js\";\nimport { REASONS } from \"../../internals/reasons.js\";\nimport { useValueChanged } from \"../../internals/useValueChanged.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PARENT_CHECKBOX = 'data-parent';\n\n/**\n * Represents the checkbox itself.\n * Renders a `<span>` element and a hidden `<input>` beside.\n *\n * Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)\n */\nexport const CheckboxRoot = /*#__PURE__*/React.forwardRef(function CheckboxRoot(componentProps, forwardedRef) {\n const {\n checked: checkedProp,\n className,\n defaultChecked = false,\n 'aria-labelledby': ariaLabelledByProp,\n disabled: disabledProp = false,\n form,\n id: idProp,\n indeterminate = false,\n inputRef: inputRefProp,\n name: nameProp,\n onCheckedChange: onCheckedChangeProp,\n parent = false,\n readOnly = false,\n render,\n required = false,\n uncheckedValue,\n value: valueProp,\n nativeButton = false,\n style,\n ...elementProps\n } = componentProps;\n const {\n clearErrors\n } = useFormContext();\n const {\n disabled: rootDisabled,\n name: fieldName,\n setDirty,\n setFilled,\n setFocused,\n setTouched,\n state: fieldState,\n validationMode,\n validityData,\n shouldValidateOnChange,\n validation: localValidation\n } = useFieldRootContext();\n const fieldItemContext = useFieldItemContext();\n const {\n labelId,\n controlId,\n registerControlId,\n getDescriptionProps\n } = useLabelableContext();\n const groupContext = useCheckboxGroupContext();\n const parentContext = groupContext?.parent;\n const isGroupedWithParent = parentContext && groupContext.allValues;\n const disabled = rootDisabled || fieldItemContext.disabled || groupContext?.disabled || disabledProp;\n const name = fieldName ?? nameProp;\n const value = valueProp ?? name;\n const id = useBaseUiId();\n const parentId = useBaseUiId();\n let inputId = controlId;\n if (isGroupedWithParent) {\n inputId = parent ? parentId : `${parentContext.id}-${value}`;\n } else if (idProp) {\n inputId = idProp;\n }\n let groupProps = {};\n if (isGroupedWithParent) {\n if (parent) {\n groupProps = groupContext.parent.getParentProps();\n } else if (value) {\n groupProps = groupContext.parent.getChildProps(value);\n }\n }\n const onCheckedChange = useStableCallback(onCheckedChangeProp);\n const {\n checked: groupChecked = checkedProp,\n indeterminate: groupIndeterminate = indeterminate,\n onCheckedChange: groupOnChange,\n ...otherGroupProps\n } = groupProps;\n const groupValue = groupContext?.value;\n const setGroupValue = groupContext?.setValue;\n const defaultGroupValue = groupContext?.defaultValue;\n const controlRef = React.useRef(null);\n const controlSourceRef = useRefWithInit(() => Symbol('checkbox-control'));\n const hasRegisteredRef = React.useRef(false);\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const validation = groupContext?.validation ?? localValidation;\n const [checked, setCheckedState] = useControlled({\n controlled: value && groupValue && !parent ? groupValue.includes(value) : groupChecked,\n default: value && defaultGroupValue && !parent ? defaultGroupValue.includes(value) : defaultChecked,\n name: 'Checkbox',\n state: 'checked'\n });\n\n // can't use useLabelableId because of optional groupContext and/or parent\n useIsoLayoutEffect(() => {\n if (registerControlId === NOOP) {\n return undefined;\n }\n hasRegisteredRef.current = true;\n registerControlId(controlSourceRef.current, inputId);\n return undefined;\n }, [inputId, groupContext, registerControlId, parent, controlSourceRef]);\n React.useEffect(() => {\n const controlSource = controlSourceRef.current;\n return () => {\n if (!hasRegisteredRef.current || registerControlId === NOOP) {\n return;\n }\n hasRegisteredRef.current = false;\n registerControlId(controlSource, undefined);\n };\n }, [registerControlId, controlSourceRef]);\n useRegisterFieldControl(controlRef, {\n enabled: !groupContext,\n id,\n value: checked\n });\n const inputRef = React.useRef(null);\n const mergedInputRef = useMergedRefs(inputRefProp, inputRef, validation.inputRef);\n const ariaLabelledBy = useAriaLabelledBy(ariaLabelledByProp, labelId, inputRef, !nativeButton, inputId ?? undefined);\n useIsoLayoutEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = groupIndeterminate;\n if (checked) {\n setFilled(true);\n }\n }\n }, [checked, groupIndeterminate, setFilled]);\n useValueChanged(checked, () => {\n if (groupContext && !parent) {\n return;\n }\n clearErrors(name);\n setFilled(checked);\n setDirty(checked !== validityData.initialValue);\n if (shouldValidateOnChange()) {\n validation.commit(checked);\n } else {\n validation.commit(checked, true);\n }\n });\n const inputProps = mergeProps({\n checked,\n disabled,\n form,\n // parent checkboxes unset `name` to be excluded from form submission\n name: parent ? undefined : name,\n // Set `id` to stop Chrome warning about an unassociated input.\n // When using a native button, the `id` is applied to the button instead.\n id: nativeButton ? undefined : inputId ?? undefined,\n required,\n ref: mergedInputRef,\n style: name ? visuallyHiddenInput : visuallyHidden,\n tabIndex: -1,\n type: 'checkbox',\n 'aria-hidden': true,\n onChange(event) {\n // Workaround for https://github.com/facebook/react/issues/9023\n if (event.nativeEvent.defaultPrevented) {\n return;\n }\n if (readOnly) {\n event.preventDefault();\n return;\n }\n const nextChecked = event.currentTarget.checked;\n const details = createChangeEventDetails(REASONS.none, event.nativeEvent);\n groupOnChange?.(nextChecked, details);\n onCheckedChange(nextChecked, details);\n if (details.isCanceled) {\n return;\n }\n setCheckedState(nextChecked);\n if (value && groupValue && setGroupValue && !parent && !isGroupedWithParent) {\n const nextGroupValue = nextChecked ? [...groupValue, value] : groupValue.filter(item => item !== value);\n setGroupValue(nextGroupValue, details);\n }\n },\n onFocus() {\n controlRef.current?.focus();\n }\n },\n // React <19 sets an empty value if `undefined` is passed explicitly\n // To avoid this, we only set the value if it's defined\n valueProp !== undefined ? {\n value: (groupContext ? checked && valueProp : valueProp) || ''\n } : EMPTY_OBJECT, getDescriptionProps, groupContext ? validation.getValidationProps : validation.getInputValidationProps);\n const computedChecked = isGroupedWithParent ? Boolean(groupChecked) : checked;\n const computedIndeterminate = isGroupedWithParent ? groupIndeterminate || indeterminate : indeterminate;\n React.useEffect(() => {\n if (!parentContext || !value) {\n return undefined;\n }\n const disabledStates = parentContext.disabledStatesRef.current;\n disabledStates.set(value, disabled);\n return () => {\n disabledStates.delete(value);\n };\n }, [parentContext, disabled, value]);\n const state = React.useMemo(() => ({\n ...fieldState,\n checked: computedChecked,\n disabled,\n readOnly,\n required,\n indeterminate: computedIndeterminate\n }), [fieldState, computedChecked, disabled, readOnly, required, computedIndeterminate]);\n const stateAttributesMapping = useStateAttributesMapping(state);\n const element = useRenderElement('span', componentProps, {\n state,\n ref: [buttonRef, controlRef, forwardedRef, groupContext?.registerControlRef],\n props: [{\n id: nativeButton ? inputId ?? undefined : id,\n role: 'checkbox',\n 'aria-checked': groupIndeterminate ? 'mixed' : checked,\n 'aria-readonly': readOnly || undefined,\n 'aria-required': required || undefined,\n 'aria-labelledby': ariaLabelledBy,\n [PARENT_CHECKBOX]: parent ? '' : undefined,\n onFocus() {\n setFocused(true);\n },\n onBlur() {\n const inputEl = inputRef.current;\n if (!inputEl) {\n return;\n }\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(groupContext ? groupValue : inputEl.checked);\n }\n },\n onClick(event) {\n if (readOnly || disabled) {\n return;\n }\n event.preventDefault();\n inputRef.current?.dispatchEvent(new PointerEvent('click', {\n bubbles: true,\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n altKey: event.altKey,\n metaKey: event.metaKey\n }));\n }\n }, getDescriptionProps, validation.getValidationProps, elementProps, otherGroupProps, getButtonProps],\n stateAttributesMapping\n });\n return /*#__PURE__*/_jsxs(CheckboxRootContext.Provider, {\n value: state,\n children: [element, !checked && !groupContext && name && !parent && uncheckedValue !== undefined && /*#__PURE__*/_jsx(\"input\", {\n type: \"hidden\",\n form: form,\n name: name,\n value: uncheckedValue\n }), /*#__PURE__*/_jsx(\"input\", {\n ...inputProps,\n suppressHydrationWarning: true\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") CheckboxRoot.displayName = \"CheckboxRoot\";","'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useBaseUiId } from \"../internals/useBaseUiId.js\";\nconst EMPTY = [];\nexport function useCheckboxGroupParent(params) {\n const {\n allValues = EMPTY,\n value = EMPTY,\n onValueChange: onValueChangeProp\n } = params;\n const uncontrolledStateRef = React.useRef(value);\n const disabledStatesRef = React.useRef(new Map());\n const [status, setStatus] = React.useState('mixed');\n const id = useBaseUiId();\n const checked = value.length === allValues.length;\n const indeterminate = value.length !== allValues.length && value.length > 0;\n const onValueChange = useStableCallback(onValueChangeProp);\n const getParentProps = React.useCallback(() => ({\n id,\n indeterminate,\n checked,\n // TODO: custom `id` on child checkboxes breaks this\n // https://github.com/mui/base-ui/issues/2691\n 'aria-controls': allValues.map(v => `${id}-${v}`).join(' '),\n onCheckedChange(_, eventDetails) {\n const uncontrolledState = uncontrolledStateRef.current;\n\n // None except the disabled ones that are checked, which can't be changed.\n const none = allValues.filter(v => disabledStatesRef.current.get(v) && uncontrolledState.includes(v));\n // \"All\" that are valid:\n // - any that aren't disabled\n // - disabled ones that are checked\n const all = allValues.filter(v => !disabledStatesRef.current.get(v) || disabledStatesRef.current.get(v) && uncontrolledState.includes(v));\n const allOnOrOff = uncontrolledState.length === all.length || uncontrolledState.length === 0;\n if (allOnOrOff) {\n if (value.length === all.length) {\n onValueChange(none, eventDetails);\n } else {\n onValueChange(all, eventDetails);\n }\n return;\n }\n if (status === 'mixed') {\n onValueChange(all, eventDetails);\n setStatus('on');\n } else if (status === 'on') {\n onValueChange(none, eventDetails);\n setStatus('off');\n } else if (status === 'off') {\n onValueChange(uncontrolledState, eventDetails);\n setStatus('mixed');\n }\n }\n }), [allValues, checked, id, indeterminate, onValueChange, status, value.length]);\n const getChildProps = React.useCallback(childValue => ({\n checked: value.includes(childValue),\n onCheckedChange(nextChecked, eventDetails) {\n const newValue = value.slice();\n if (nextChecked) {\n newValue.push(childValue);\n } else {\n newValue.splice(newValue.indexOf(childValue), 1);\n }\n uncontrolledStateRef.current = newValue;\n onValueChange(newValue, eventDetails);\n setStatus('mixed');\n }\n }), [onValueChange, value]);\n return React.useMemo(() => ({\n id,\n indeterminate,\n getParentProps,\n getChildProps,\n disabledStatesRef\n }), [id, indeterminate, getParentProps, getChildProps]);\n}","export function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {\n return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));\n}","'use client';\n\nimport * as React from 'react';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { EMPTY_ARRAY } from '@base-ui/utils/empty';\nimport { useBaseUiId } from \"../internals/useBaseUiId.js\";\nimport { useRenderElement } from \"../internals/useRenderElement.js\";\nimport { CheckboxGroupContext } from \"./CheckboxGroupContext.js\";\nimport { useFieldRootContext } from \"../internals/field-root-context/FieldRootContext.js\";\nimport { useRegisterFieldControl } from \"../internals/field-register-control/useRegisterFieldControl.js\";\nimport { useLabelableContext } from \"../internals/labelable-provider/LabelableContext.js\";\nimport { fieldValidityMapping } from \"../internals/field-constants/constants.js\";\nimport { PARENT_CHECKBOX } from \"../checkbox/root/CheckboxRoot.js\";\nimport { useCheckboxGroupParent } from \"./useCheckboxGroupParent.js\";\nimport { useFormContext } from \"../internals/form-context/FormContext.js\";\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\nimport { areArraysEqual } from \"../internals/areArraysEqual.js\";\n\n/**\n * Provides a shared state to a series of checkboxes.\n *\n * Documentation: [Base UI Checkbox Group](https://base-ui.com/react/components/checkbox-group)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const CheckboxGroup = /*#__PURE__*/React.forwardRef(function CheckboxGroup(componentProps, forwardedRef) {\n const {\n allValues,\n className,\n defaultValue: defaultValueProp,\n disabled: disabledProp = false,\n id: idProp,\n onValueChange,\n render,\n value: externalValue,\n style,\n ...elementProps\n } = componentProps;\n const {\n disabled: fieldDisabled,\n name: fieldName,\n state: fieldState,\n validation,\n setFilled,\n setDirty,\n shouldValidateOnChange,\n validityData\n } = useFieldRootContext();\n const {\n labelId,\n getDescriptionProps\n } = useLabelableContext();\n const {\n clearErrors\n } = useFormContext();\n const disabled = fieldDisabled || disabledProp;\n const defaultValue = React.useMemo(() => {\n if (externalValue === undefined) {\n return defaultValueProp ?? [];\n }\n return undefined;\n }, [externalValue, defaultValueProp]);\n const [value, setValueUnwrapped] = useControlled({\n controlled: externalValue,\n default: defaultValue,\n name: 'CheckboxGroup',\n state: 'value'\n });\n const setValue = useStableCallback((v, eventDetails) => {\n onValueChange?.(v, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setValueUnwrapped(v);\n });\n const parent = useCheckboxGroupParent({\n allValues,\n value,\n onValueChange: setValue\n });\n const id = useBaseUiId(idProp);\n const controlRef = React.useRef(null);\n const registerControlRef = React.useCallback(element => {\n if (controlRef.current == null && element != null && !element.hasAttribute(PARENT_CHECKBOX)) {\n controlRef.current = element;\n }\n }, []);\n useRegisterFieldControl(controlRef, {\n enabled: !!fieldName,\n id,\n value\n });\n const resolvedValue = value ?? EMPTY_ARRAY;\n useValueChanged(resolvedValue, () => {\n if (fieldName) {\n clearErrors(fieldName);\n }\n const initialValue = Array.isArray(validityData.initialValue) ? validityData.initialValue : EMPTY_ARRAY;\n setFilled(resolvedValue.length > 0);\n setDirty(!areArraysEqual(resolvedValue, initialValue));\n if (shouldValidateOnChange()) {\n validation.commit(resolvedValue);\n } else {\n validation.commit(resolvedValue, true);\n }\n });\n const state = {\n ...fieldState,\n disabled\n };\n const contextValue = React.useMemo(() => ({\n allValues,\n value,\n defaultValue,\n setValue,\n parent,\n disabled,\n validation,\n registerControlRef\n }), [allValues, value, defaultValue, setValue, parent, disabled, validation, registerControlRef]);\n const element = useRenderElement('div', componentProps, {\n state,\n ref: forwardedRef,\n props: [{\n role: 'group',\n 'aria-labelledby': labelId\n }, getDescriptionProps, elementProps],\n stateAttributesMapping: fieldValidityMapping\n });\n return /*#__PURE__*/_jsx(CheckboxGroupContext.Provider, {\n value: contextValue,\n children: element\n });\n});\nif (process.env.NODE_ENV !== \"production\") CheckboxGroup.displayName = \"CheckboxGroup\";","import { CheckboxGroup as CheckboxGroupPrimitive } from \"@base-ui/react/checkbox-group\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox-group.module.css\"\n\ntype CheckboxGroupProps = Omit<CheckboxGroupPrimitive.Props, \"disabled\"> & {\n orientation?: \"row\" | \"column\"\n}\n\nfunction CheckboxGroup({\n className,\n orientation = \"row\",\n ...props\n}: CheckboxGroupProps) {\n return (\n <CheckboxGroupPrimitive\n data-slot=\"checkbox-group\"\n className={clsx(\n styles.group,\n orientation === \"column\" ? styles.column : styles.row,\n className\n )}\n {...props}\n />\n )\n}\n\nexport { CheckboxGroup }\nexport type { CheckboxGroupProps }\n","import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { clsx } from \"clsx\"\nimport { type ReactNode, useState } from \"react\"\n\nimport styles from \"./icons-toggle.module.css\"\n\n/**\n * A pill-shaped toggle with two icon options. Clicking anywhere on the toggle\n * switches to the other option. Exactly one option is always active.\n *\n * @param options Pair of `{ value, icon, label }` objects.\n *\n * @param variant `\"filled\"` (default) — active item has a solid background.\n * `\"stroked\"` — outlined border style.\n *\n * @param name When set, renders a hidden `<input>` so the active value is\n * included in the nearest `<form>`'s submit data.\n *\n * @example — uncontrolled\n * <IconsToggle\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — uncontrolled in a form\n * <IconsToggle\n * name=\"view\"\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — controlled\n * const [view, setView] = useState<\"grid\" | \"list\">(\"grid\")\n * <IconsToggle\n * options={[...]}\n * value={view}\n * onValueChange={setView}\n * />\n */\nfunction IconsToggle<A extends string, B extends string>({\n options,\n title,\n variant = \"filled\",\n value: controlledValue,\n defaultValue,\n onValueChange,\n name,\n className,\n}: IconsToggleProps<A, B>) {\n const [internalValue, setInternalValue] = useState<A | B>(\n defaultValue ?? options[0].value\n )\n\n const activeValue = controlledValue ?? internalValue\n const activeIndex = options[0].value === activeValue ? 0 : 1\n const activeOption = options[activeIndex]\n const inactiveOption = options[activeIndex === 0 ? 1 : 0]\n\n function handleClick() {\n const nextValue = inactiveOption.value\n if (controlledValue === undefined) setInternalValue(nextValue)\n onValueChange?.(nextValue)\n }\n\n return (\n <>\n {name && <input type=\"hidden\" name={name} value={activeValue} />}\n <ButtonPrimitive\n onClick={handleClick}\n aria-label={`Bytt ${title} mellom ${activeOption.label} og ${inactiveOption.label}, valgt: ${activeOption.label}`}\n className={clsx(\n iconsToggleVariants({ variant }),\n activeIndex === 1 && styles.hasSelectedSecondOption,\n className\n )}\n >\n {options.map((option) => {\n const isActive = option.value === activeValue\n return (\n <span\n key={option.value}\n aria-hidden=\"true\"\n className={clsx(styles.option, isActive && styles.selectedOption)}\n >\n {option.icon}\n </span>\n )\n })}\n </ButtonPrimitive>\n </>\n )\n}\n\nexport { IconsToggle }\n\nconst iconsToggleVariants = cva(styles.root, {\n variants: {\n variant: {\n filled: styles.filled,\n stroked: styles.stroked,\n },\n },\n defaultVariants: {\n variant: \"filled\",\n },\n})\n\ninterface IconsToggleOption<Value extends string> {\n /** Unique identifier of this option */\n value: Value\n /** Icon displayed inside the toggle for this option. Can be any React node, but must be equal\n * in width to the other option's icon */\n icon: ReactNode\n /** Accessible label for this option */\n label: string\n}\n\ninterface IconsToggleBaseProps<\n A extends string,\n B extends string,\n> extends VariantProps<typeof iconsToggleVariants> {\n options: [IconsToggleOption<A>, IconsToggleOption<B>]\n title: string\n /** The identifier for the control in a form */\n name?: string\n className?: string\n}\n\ninterface IconsToggleControlledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value: A | B\n defaultValue?: never\n onValueChange: (value: A | B) => void\n}\n\ninterface IconsToggleUncontrolledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value?: never\n defaultValue?: A | B\n onValueChange?: (value: A | B) => void\n}\n\nexport type IconsToggleProps<A extends string, B extends string> =\n | IconsToggleControlledProps<A, B>\n | IconsToggleUncontrolledProps<A, B>\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","iconOnly","isPending","disabled","children","props","jsx","ButtonPrimitive","clsx","jsxs","Fragment","textVariants","DEFAULT_ELEMENTS","Text","color","as","Component","Checkbox","label","box","CheckboxPrimitive","Check","set","error","messages","messageKey","useControlled","controlled","defaultProp","name","state","isControlled","React","valueState","setValue","value","defaultValue","serializeToDevModeString","setValueIfUncontrolled","newValue","input","nextId","seen","key","id","UNINITIALIZED","useRefWithInit","init","initArg","ref","useInsertionEffect","useSafeInsertionEffect","fn","useStableCallback","callback","stable","createStableCallback","assertNotCalled","args","NOOP","EMPTY_ARRAY","EMPTY_OBJECT","SafeReact","globalId","useGlobalId","idOverride","prefix","defaultId","setDefaultId","maybeReactUseId","useId","reactId","useBaseUiId","createFormatErrorMessage","baseUrl","code","url","arg","formatErrorMessage","useMergedRefs","a","b","c","d","forkRef","createForkRef","didChange","update","useMergedRefsN","refs","didChangeN","newRefs","index","instance","cleanupCallbacks","i","refCleanup","cleanupCallback","majorVersion","isReactVersionAtLeast","reactVersionToCheck","getReactElementRef","element","reactElement","propsWithRef","mergeObjects","warn","getStateAttributesProps","customMapping","customProps","resolveClassName","resolveStyle","style","EMPTY_PROPS","mergeProps","e","createInitialMergedProps","merged","mergeInto","mergePropsN","inputProps","isPropsGetter","resolvePropsGetter","copyInitialProps","mutablyMergeInto","copiedProps","propName","propValue","isEventHandler","wrapEventHandler","mergedProps","externalProps","externalPropValue","mergeClassNames","mergeEventHandlers","code0","code1","code2","previousProps","ourHandler","theirHandler","event","isSyntheticEvent","baseUIEvent","makeEventPreventable","result","handler","ourClassName","theirClassName","useRenderElement","componentProps","params","renderProp","outProps","useRenderElementProps","evaluateRenderProp","classNameProp","styleProp","stateAttributesMapping","enabled","stateProps","resolvedProps","resolveRenderFunctionProps","REACT_LAZY_TYPE","COMPONENT_IDENTIFIER_PATTERN","LOWERCASE_CHARACTER_PATTERN","render","warnIfRenderPropLooksLikeComponent","newElement","renderTag","_formatErrorMessage","renderFn","functionName","Tag","_createElement","CheckboxGroupContext","useCheckboxGroupContext","optional","context","FieldControlDataAttributes","DEFAULT_VALIDITY_STATE","DEFAULT_FIELD_STATE_ATTRIBUTES","DEFAULT_FIELD_ROOT_STATE","fieldValidityMapping","FieldRootContext","useFieldRootContext","noop","useIsoLayoutEffect","useRegisterFieldControl","controlRef","getValue","registerFieldControl","sourceRef","source","LabelableContext","useLabelableContext","visuallyHiddenBase","visuallyHidden","visuallyHiddenInput","CheckboxRootDataAttributes","useStateAttributesMapping","hasWindow","getWindow","node","_node$ownerDocument","isHTMLElement","CompositeRootContext","useCompositeRootContext","useFocusableWhenDisabled","parameters","focusableWhenDisabled","composite","tabIndexProp","isNativeButton","isFocusableComposite","isNonFocusableComposite","additionalProps","useButton","tabIndex","compositeProp","elementRef","compositeRootContext","isCompositeItem","focusableWhenDisabledProps","isButtonTag","isButtonElement","ownerStackMessage","updateDisabled","getButtonProps","externalOnClick","externalOnMouseDown","externalOnKeyUp","externalOnKeyDown","externalOnPointerDown","otherExternalProps","isCurrentTarget","currentTarget","isButton","isLink","isValidLinkElement","shouldClick","isEnterKey","isSpaceKey","role","isTextNavigationRole","buttonRef","elem","FieldItemContext","useFieldItemContext","FormContext","useFormContext","useAriaLabelledBy","explicitAriaLabelledBy","labelId","labelSourceRef","enableFallback","labelSourceId","fallbackAriaLabelledBy","setFallbackAriaLabelledBy","generatedLabelId","ariaLabelledBy","nextAriaLabelledBy","getAriaLabelledBy","labelSource","findAssociatedLabel","parent","controlId","nextSibling","labels","CheckboxRootContext","none","createChangeEventDetails","reason","trigger","customProperties","canceled","allowPropagation","custom","useValueChanged","onChange","valueRef","onChangeCallback","PARENT_CHECKBOX","CheckboxRoot","forwardedRef","checkedProp","defaultChecked","ariaLabelledByProp","disabledProp","form","idProp","indeterminate","inputRefProp","nameProp","onCheckedChangeProp","readOnly","required","uncheckedValue","valueProp","nativeButton","elementProps","clearErrors","rootDisabled","fieldName","setDirty","setFilled","setFocused","setTouched","fieldState","validationMode","validityData","shouldValidateOnChange","localValidation","fieldItemContext","registerControlId","getDescriptionProps","groupContext","parentContext","isGroupedWithParent","parentId","inputId","groupProps","onCheckedChange","groupChecked","groupIndeterminate","groupOnChange","otherGroupProps","groupValue","setGroupValue","defaultGroupValue","controlSourceRef","hasRegisteredRef","validation","checked","setCheckedState","controlSource","inputRef","mergedInputRef","nextChecked","details","REASONS.none","nextGroupValue","item","computedChecked","computedIndeterminate","disabledStates","inputEl","_jsxs","_jsx","EMPTY","useCheckboxGroupParent","allValues","onValueChangeProp","uncontrolledStateRef","disabledStatesRef","status","setStatus","onValueChange","getParentProps","v","_","eventDetails","uncontrolledState","all","getChildProps","childValue","areArraysEqual","array1","array2","itemComparer","CheckboxGroup","defaultValueProp","externalValue","fieldDisabled","setValueUnwrapped","registerControlRef","resolvedValue","initialValue","contextValue","orientation","CheckboxGroupPrimitive","IconsToggle","options","title","controlledValue","internalValue","setInternalValue","useState","activeValue","activeIndex","activeOption","inactiveOption","handleClick","nextValue","iconsToggleVariants","option","isActive"],"mappings":";;;;;;;;;;;;;;;;;;GAMMA,KAAiBC,GAAIC,EAAO,MAAM;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,IAAA;AAAA,IAEpB,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,UAAU;AAAA,MACR,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAEd,CAAC;AA6BD,SAASC,GAAO;AAAA,EACd,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AACd,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,UAAUL,KAAaC;AAAA,MACvB,aAAWD;AAAA,MACX,WAAWM;AAAA,QACTd,GAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,UAAAC,GAAU;AAAA,QAC1CC,KAAaN,EAAO;AAAA,QACpBE;AAAA,MAAA;AAAA,MAED,GAAGO;AAAA,MAEH,cACC,gBAAAI,GAAAC,IAAA,EACE,UAAA;AAAA,QAAA,gBAAAJ,EAAC,QAAA,EAAK,WAAWV,EAAO,SAAU,UAAAQ,GAAS;AAAA,0BAC1C,QAAA,EAAK,WAAWR,EAAO,SAAS,eAAY,OAAA,CAAO;AAAA,MAAA,EAAA,CACtD,IAEAQ;AAAA,IAAA;AAAA,EAAA;AAIR;;;;;;;;;;;;;;;;;;;;;;GClFMO,KAAehB,GAAI,IAAI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AQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;","x_google_ignoreList":[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]}
1
+ {"version":3,"file":"index.js","sources":["../src/components/button/button.tsx","../src/components/form/field/field-context.ts","../src/components/text/text.tsx","../src/components/form/checkbox/checkbox.tsx","../src/components/form/checkbox-group/checkbox-group.tsx","../src/components/form/textarea/textarea.tsx","../src/components/form/field/field.tsx","../src/components/form/form/form.tsx","../src/components/form/icons-toggle/icons-toggle.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./button.module.css\"\n\nconst buttonVariants = cva(styles.base, {\n variants: {\n variant: {\n primary: styles.primary,\n secondary: styles.secondary,\n },\n size: {\n lg: styles.lg,\n sm: styles.sm,\n },\n iconOnly: {\n true: styles.iconOnly,\n false: \"\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"sm\",\n iconOnly: false,\n },\n})\n\ntype ButtonProps = Omit<ButtonPrimitive.Props, \"disabled\"> &\n VariantProps<typeof buttonVariants> & {\n isPending?: boolean\n /** @deprecated Avoid disabled buttons — they hurt accessibility and discoverability. Prefer `isPending` for in-flight actions, or keep the button enabled and show validation/error feedback. */\n disabled?: ButtonPrimitive.Props[\"disabled\"]\n }\n\n/**\n * @param variant - `\"primary\"` (default) or `\"secondary\"`\n *\n * @param size - `\"sm\"` (default) or `\"lg\"`.\n *\n * @param iconOnly - `true` if button contains only an icon. Always provide an `aria-label` when using this.\n *\n * @param isPending - `true` to show a centered spinner and block interaction. The button width is unchanged.\n *\n * @param disabled - **Deprecated.** Avoid disabled buttons — prefer `isPending` for in-flight actions, or keep the button enabled and show validation feedback.\n *\n * @example\n * <Button variant=\"primary\" size=\"sm\">Click me</Button>\n *\n * @example\n * <Button iconOnly><Info /></Button>\n *\n * @example\n * <Button isPending>Saving…</Button>\n */\nfunction Button({\n className,\n variant,\n size,\n iconOnly,\n isPending,\n disabled,\n children,\n ...props\n}: ButtonProps) {\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n disabled={isPending || disabled}\n aria-busy={isPending}\n className={clsx(\n buttonVariants({ variant, size, iconOnly }),\n isPending && styles.pending,\n className\n )}\n {...props}\n >\n {isPending ? (\n <>\n <span className={styles.content}>{children}</span>\n <span className={styles.spinner} aria-hidden=\"true\" />\n </>\n ) : (\n children\n )}\n </ButtonPrimitive>\n )\n}\n\nexport { Button, buttonVariants }\nexport type { ButtonProps }\n","import { createContext } from \"react\"\n\n/**\n * True when rendered inside our `Field`. Base UI's `Field.Item` / `Field.Label`\n * throw without a `Field.Root` ancestor, so controls that want to use them must\n * check first and fall back to plain markup.\n */\nconst InsideFieldContext = createContext(false)\n\nexport { InsideFieldContext }\n","import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./text.module.css\"\n\nconst textVariants = cva(\"\", {\n variants: {\n variant: {\n headline: styles.headline,\n \"headline-sm\": styles[\"headline-sm\"],\n \"headline-xs\": styles[\"headline-xs\"],\n button: styles.button,\n \"body-bold\": styles[\"body-bold\"],\n body: styles.body,\n \"body-sm-bold\": styles[\"body-sm-bold\"],\n \"body-sm\": styles[\"body-sm\"],\n description: styles.description,\n },\n color: {\n default: styles[\"color-default\"],\n white: styles[\"color-white\"],\n background: styles[\"color-background\"],\n surface: styles[\"color-surface\"],\n \"divider-dark\": styles[\"color-divider-dark\"],\n informative: styles[\"color-informative\"],\n error: styles[\"color-error\"],\n warning: styles[\"color-warning\"],\n success: styles[\"color-success\"],\n info: styles[\"color-info\"],\n interactive: styles[\"color-interactive\"],\n inherit: \"\",\n },\n },\n defaultVariants: {\n variant: \"body\",\n color: \"default\",\n },\n})\n\nconst DEFAULT_ELEMENTS = {\n headline: \"h1\",\n \"headline-sm\": \"h2\",\n \"headline-xs\": \"h3\",\n body: \"p\",\n \"body-bold\": \"p\",\n \"body-sm\": \"p\",\n \"body-sm-bold\": \"p\",\n description: \"p\",\n button: \"span\",\n} as const\n\ntype TextVariant = NonNullable<VariantProps<typeof textVariants>[\"variant\"]>\ntype TextColor = NonNullable<VariantProps<typeof textVariants>[\"color\"]>\n\ntype TextOwnProps<E extends React.ElementType> = {\n variant?: TextVariant\n color?: TextColor\n as?: E\n className?: string\n children?: React.ReactNode\n}\n\ntype TextProps<E extends React.ElementType> = TextOwnProps<E> &\n Omit<React.ComponentPropsWithoutRef<E>, keyof TextOwnProps<E>>\n\nfunction Text<E extends React.ElementType = \"p\">({\n variant = \"body\",\n color,\n as,\n className,\n ...props\n}: TextProps<E>) {\n const Component = (as ?? DEFAULT_ELEMENTS[variant]) as React.ElementType\n return (\n <Component\n data-slot=\"text\"\n className={clsx(textVariants({ variant, color, className }))}\n {...props}\n />\n )\n}\n\nexport { Text, textVariants }\n","import { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\"\nimport { Field as FieldPrimitive } from \"@base-ui/react/field\"\nimport { Check } from \"lucide-react\"\nimport { use, type ReactNode } from \"react\"\n\nimport { InsideFieldContext } from \"@/components/form/field/field-context\"\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox.module.css\"\n\ntype CheckboxProps = Omit<\n CheckboxPrimitive.Root.Props,\n \"disabled\" | \"indeterminate\"\n> & {\n label?: ReactNode\n}\n\n/**\n * @param label - Label rendered next to the checkbox. Accepts any `ReactNode`.\n *\n * @example\n * <Checkbox label=\"Jeg godtar vilkår og betingelser\" />\n *\n * @example\n * <Checkbox\n * label={\n * <>\n * Jeg godtar <Link href=\"#\">vilkår og betingelser</Link>\n * </>\n * }\n * />\n */\nfunction Checkbox({ className, label, ...props }: CheckboxProps) {\n const insideField = use(InsideFieldContext)\n\n const box = (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={clsx(styles.checkbox, className)}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className={styles.indicator}\n >\n <Check className={styles.check} />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n\n if (label === undefined) return box\n\n const labelContent = (\n <>\n {box}\n <Text variant=\"body\" as=\"span\">\n {label}\n </Text>\n </>\n )\n\n if (!insideField) {\n return <label className={styles.label}>{labelContent}</label>\n }\n\n return (\n <FieldPrimitive.Item className={styles.item}>\n <FieldPrimitive.Label className={styles.label}>\n {labelContent}\n </FieldPrimitive.Label>\n </FieldPrimitive.Item>\n )\n}\n\nexport { Checkbox }\nexport type { CheckboxProps }\n","import { CheckboxGroup as CheckboxGroupPrimitive } from \"@base-ui/react/checkbox-group\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox-group.module.css\"\n\ntype CheckboxGroupProps = Omit<CheckboxGroupPrimitive.Props, \"disabled\"> & {\n orientation?: \"row\" | \"column\"\n}\n\nfunction CheckboxGroup({\n className,\n orientation = \"row\",\n ...props\n}: CheckboxGroupProps) {\n return (\n <CheckboxGroupPrimitive\n data-slot=\"checkbox-group\"\n className={clsx(\n styles.group,\n orientation === \"column\" ? styles.column : styles.row,\n className\n )}\n {...props}\n />\n )\n}\n\nexport { CheckboxGroup }\nexport type { CheckboxGroupProps }\n","import { Field } from \"@base-ui/react/field\"\nimport { cva } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./textarea.module.css\"\n\nconst textareaVariants = cva(styles.textarea)\n\ntype TextareaProps = Omit<Field.Control.Props, \"render\"> & {\n className?: string\n}\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <Field.Control\n data-slot=\"textarea\"\n render={<textarea />}\n className={clsx(textareaVariants(), className)}\n {...props}\n />\n )\n}\n\nexport { Textarea, textareaVariants }\nexport type { TextareaProps }\n","import { Field as FieldPrimitive } from \"@base-ui/react/field\"\n\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport { InsideFieldContext } from \"./field-context\"\nimport styles from \"./field.module.css\"\n\ntype FieldProps = FieldPrimitive.Root.Props\n\nfunction Field({ className, ...props }: FieldProps) {\n return (\n <InsideFieldContext value={true}>\n <FieldPrimitive.Root\n data-slot=\"field\"\n className={clsx(styles.container, className)}\n {...props}\n />\n </InsideFieldContext>\n )\n}\n\ntype FieldLabelProps = Omit<FieldPrimitive.Label.Props, \"render\">\n\nfunction FieldLabel({\n children,\n nativeLabel = true,\n ...props\n}: FieldLabelProps) {\n return (\n <FieldPrimitive.Label\n data-slot=\"field-label\"\n nativeLabel={nativeLabel}\n render={\n <Text variant=\"body-sm\" as={nativeLabel ? \"label\" : \"span\"}>\n {children}\n </Text>\n }\n {...props}\n />\n )\n}\n\ntype FieldDescriptionProps = Omit<FieldPrimitive.Description.Props, \"render\">\n\nfunction FieldDescription({ children, ...props }: FieldDescriptionProps) {\n return (\n <FieldPrimitive.Description\n data-slot=\"field-description\"\n render={\n <Text variant=\"description\" color=\"informative\">\n {children}\n </Text>\n }\n {...props}\n />\n )\n}\n\ntype FieldErrorProps = Omit<FieldPrimitive.Error.Props, \"render\">\n\nfunction FieldError({ children, className, ...props }: FieldErrorProps) {\n return (\n <FieldPrimitive.Error\n data-slot=\"field-error\"\n className={clsx(styles.error, className)}\n // `message` is the validation message Base UI resolved (the `validate`\n // result, or the native one). Own children win when provided.\n render={({ children: message, ...errorProps }) => (\n <div {...errorProps}>\n <span aria-hidden className={styles.errorDot} />\n <Text variant=\"description\" as=\"div\">\n {children ?? message}\n </Text>\n </div>\n )}\n {...props}\n />\n )\n}\n\nexport { Field, FieldLabel, FieldDescription, FieldError }\nexport type {\n FieldProps,\n FieldLabelProps,\n FieldDescriptionProps,\n FieldErrorProps,\n}\n","import { Form as FormPrimitive } from \"@base-ui/react/form\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./form.module.css\"\n\ntype FormProps = FormPrimitive.Props\n\nfunction Form({ className, ...props }: FormProps) {\n return (\n <FormPrimitive\n data-slot=\"form\"\n className={clsx(styles.form, className)}\n {...props}\n />\n )\n}\n\nexport { Form }\nexport type { FormProps }\n","import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { clsx } from \"clsx\"\nimport { type ReactNode, useState } from \"react\"\n\nimport styles from \"./icons-toggle.module.css\"\n\n/**\n * A pill-shaped toggle with two icon options. Clicking anywhere on the toggle\n * switches to the other option. Exactly one option is always active.\n *\n * @param options Pair of `{ value, icon, label }` objects.\n *\n * @param variant `\"filled\"` (default) — active item has a solid background.\n * `\"stroked\"` — outlined border style.\n *\n * @param name When set, renders a hidden `<input>` so the active value is\n * included in the nearest `<form>`'s submit data.\n *\n * @example — uncontrolled\n * <IconsToggle\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — uncontrolled in a form\n * <IconsToggle\n * name=\"view\"\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — controlled\n * const [view, setView] = useState<\"grid\" | \"list\">(\"grid\")\n * <IconsToggle\n * options={[...]}\n * value={view}\n * onValueChange={setView}\n * />\n */\nfunction IconsToggle<A extends string, B extends string>({\n options,\n title,\n variant = \"filled\",\n value: controlledValue,\n defaultValue,\n onValueChange,\n name,\n className,\n}: IconsToggleProps<A, B>) {\n const [internalValue, setInternalValue] = useState<A | B>(\n defaultValue ?? options[0].value\n )\n\n const activeValue = controlledValue ?? internalValue\n const activeIndex = options[0].value === activeValue ? 0 : 1\n const activeOption = options[activeIndex]\n const inactiveOption = options[activeIndex === 0 ? 1 : 0]\n\n function handleClick() {\n const nextValue = inactiveOption.value\n if (controlledValue === undefined) setInternalValue(nextValue)\n onValueChange?.(nextValue)\n }\n\n return (\n <>\n {name && <input type=\"hidden\" name={name} value={activeValue} />}\n <ButtonPrimitive\n onClick={handleClick}\n aria-label={`Bytt ${title} mellom ${activeOption.label} og ${inactiveOption.label}, valgt: ${activeOption.label}`}\n className={clsx(\n iconsToggleVariants({ variant }),\n activeIndex === 1 && styles.hasSelectedSecondOption,\n className\n )}\n >\n {options.map((option) => {\n const isActive = option.value === activeValue\n return (\n <span\n key={option.value}\n aria-hidden=\"true\"\n className={clsx(styles.option, isActive && styles.selectedOption)}\n >\n {option.icon}\n </span>\n )\n })}\n </ButtonPrimitive>\n </>\n )\n}\n\nexport { IconsToggle }\n\nconst iconsToggleVariants = cva(styles.root, {\n variants: {\n variant: {\n filled: styles.filled,\n stroked: styles.stroked,\n },\n },\n defaultVariants: {\n variant: \"filled\",\n },\n})\n\ninterface IconsToggleOption<Value extends string> {\n /** Unique identifier of this option */\n value: Value\n /** Icon displayed inside the toggle for this option. Can be any React node, but must be equal\n * in width to the other option's icon */\n icon: ReactNode\n /** Accessible label for this option */\n label: string\n}\n\ninterface IconsToggleBaseProps<\n A extends string,\n B extends string,\n> extends VariantProps<typeof iconsToggleVariants> {\n options: [IconsToggleOption<A>, IconsToggleOption<B>]\n title: string\n /** The identifier for the control in a form */\n name?: string\n className?: string\n}\n\ninterface IconsToggleControlledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value: A | B\n defaultValue?: never\n onValueChange: (value: A | B) => void\n}\n\ninterface IconsToggleUncontrolledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value?: never\n defaultValue?: A | B\n onValueChange?: (value: A | B) => void\n}\n\nexport type IconsToggleProps<A extends string, B extends string> =\n | IconsToggleControlledProps<A, B>\n | IconsToggleUncontrolledProps<A, B>\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","iconOnly","isPending","disabled","children","props","jsx","ButtonPrimitive","clsx","jsxs","Fragment","InsideFieldContext","createContext","textVariants","DEFAULT_ELEMENTS","Text","color","as","Component","Checkbox","label","insideField","use","box","CheckboxPrimitive","Check","labelContent","FieldPrimitive","CheckboxGroup","orientation","CheckboxGroupPrimitive","textareaVariants","Textarea","Field","FieldLabel","nativeLabel","FieldDescription","FieldError","message","errorProps","Form","FormPrimitive","IconsToggle","options","title","controlledValue","defaultValue","onValueChange","name","internalValue","setInternalValue","useState","activeValue","activeIndex","activeOption","inactiveOption","handleClick","nextValue","iconsToggleVariants","option","isActive"],"mappings":";;;;;;;;;;;;;;;;;;;;GAMMA,IAAiBC,EAAIC,EAAO,MAAM;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,IAAA;AAAA,IAEpB,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,UAAU;AAAA,MACR,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAEd,CAAC;AA6BD,SAASC,GAAO;AAAA,EACd,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AACd,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,UAAUL,KAAaC;AAAA,MACvB,aAAWD;AAAA,MACX,WAAWM;AAAA,QACTd,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,UAAAC,GAAU;AAAA,QAC1CC,KAAaN,EAAO;AAAA,QACpBE;AAAA,MAAA;AAAA,MAED,GAAGO;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AAAA,MACP,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;"}
package/dist/styles.css CHANGED
@@ -1,4 +1,4 @@
1
1
  @layer bnui {
2
- :root{--color-neutral-0: #000000;--color-neutral-10: #1a1a1a;--color-neutral-20: #353535;--color-neutral-30: #595959;--color-neutral-40: #757575;--color-neutral-50: #a0a0a0;--color-neutral-60: #c4c4c4;--color-neutral-70: #dedede;--color-neutral-80: #eaeaea;--color-neutral-90: #f4f4f4;--color-neutral-95: #f9f9f9;--color-neutral-98: #fbfbfb;--color-neutral-100: #ffffff;--color-info-0: #000000;--color-info-10: #032345;--color-info-20: #00315d;--color-info-30: #00468e;--color-info-40: #004e95;--color-info-50: #0062ba;--color-info-60: #1a72c1;--color-info-70: #3381c8;--color-info-80: #66a1d6;--color-info-90: #80b1dd;--color-info-95: #b3d0ea;--color-info-98: #e6eff8;--color-info-100: #ffffff;--color-success-0: #000000;--color-success-10: #03381c;--color-success-20: #084826;--color-success-30: #0c6536;--color-success-40: #118849;--color-success-50: #189f59;--color-success-60: #15b560;--color-success-70: #2ece7a;--color-success-80: #5dd997;--color-success-90: #8be4b5;--color-success-95: #d1f4e1;--color-success-98: #e8faf0;--color-success-100: #ffffff;--color-warning-0: #000000;--color-warning-10: #522d02;--color-warning-20: #663802;--color-warning-30: #874b06;--color-warning-40: #a45800;--color-warning-50: #dd7e10;--color-warning-60: #f29305;--color-warning-70: #faa322;--color-warning-80: #ffb240;--color-warning-90: #ffcc80;--color-warning-95: #ffe8cd;--color-warning-98: #fff3e0;--color-warning-100: #ffffff;--color-error-0: #000000;--color-error-10: #480e17;--color-error-20: #5a121d;--color-error-30: #7f091a;--color-error-40: #9c0f0f;--color-error-50: #ae1616;--color-error-60: #c62828;--color-error-70: #dc2f2f;--color-error-80: #ef5350;--color-error-90: #ef9a9a;--color-error-95: #ffcdd2;--color-error-98: #ffebee;--color-error-100: #ffffff;--color-interactive-0: #000000;--color-interactive-10: #15143c;--color-interactive-20: #292878;--color-interactive-30: #3e3bb4;--color-interactive-40: #524ff0;--color-interactive-50: #615efc;--color-interactive-60: #7471ff;--color-interactive-70: #8987ff;--color-interactive-80: #a2a0ff;--color-interactive-90: #bebcff;--color-interactive-95: #dddcff;--color-interactive-98: #ededff;--color-interactive-100: #ffffff;--font-sans: Arial, Helvetica, "Helvetica Neue", system-ui, -apple-system, sans-serif;--font-america-gt: "GT America Expanded", var(--font-sans);--color-blue: #0042fe;--color-rebel-0: #000000;--color-rebel-10: #030400;--color-rebel-20: #121900;--color-rebel-30: #273300;--color-rebel-40: #3e5000;--color-rebel-50: #566f00;--color-rebel-60: #708e00;--color-rebel-70: #8baf00;--color-rebel-80: #a8d100;--color-rebel-90: #c3e835;--color-rebel-95: #d3ff27;--color-rebel-98: #f0ffc9;--color-rebel-100: #ffffff;--radius-4: .25rem;--radius-8: .5rem;--radius-full: 9999px;--spacing-4: .25rem;--spacing-8: .5rem;--spacing-12: .75rem;--spacing-16: 1rem;--spacing-24: 1.5rem;--spacing-32: 2rem;--spacing-40: 2.5rem;--spacing-64: 4rem;--spacing-80: 5rem;--icon-size-lg: 1.375rem;--icon-stroke-width-lg: 1.5;--icon-size-sm: 1.125rem;--icon-stroke-width-sm: 1.5}:root{--background: var(--color-neutral-100);--text-background: var(--color-neutral-0);--surface: var(--color-neutral-90);--text-surface: var(--color-neutral-0);--divider-dark: var(--color-neutral-20);--text-divider-dark: var(--color-neutral-100);--border-divider: var(--color-neutral-50);--border-divider-light: var(--color-neutral-70);--text-informative: var(--color-neutral-30);--error: var(--color-error-40);--background-error: var(--color-error-98);--text-error: var(--color-error-10);--warning: var(--color-warning-60);--background-warning: var(--color-warning-98);--text-warning: var(--color-warning-10);--success: var(--color-success-30);--background-success: var(--color-success-98);--text-success: var(--color-success-10);--info: var(--color-info-40);--background-info: var(--color-info-98);--text-info: var(--color-info-10);--interactive: var(--color-interactive-50);--background-interactive: var(--color-interactive-98);--text-interactive: var(--color-interactive-10);--color-black: var(--color-neutral-10);--color-white: var(--color-neutral-100);--font-default: var(--font-sans);--text-headline-size: 2rem;--text-headline-line-height: 1.2;--text-headline-weight: 700;--text-headline-sm-size: 1.375rem;--text-headline-sm-line-height: 1.2;--text-headline-sm-weight: 700;--text-headline-xs-size: 1.125rem;--text-headline-xs-line-height: 1.2;--text-headline-xs-weight: 700;--text-button-size: 1.125rem;--text-button-line-height: 1.2;--text-button-weight: 400;--text-body-bold-size: 1rem;--text-body-bold-line-height: 1.2;--text-body-bold-weight: 700;--text-body-size: 1rem;--text-body-line-height: 1.2;--text-body-weight: 400;--text-body-sm-bold-size: .875rem;--text-body-sm-bold-line-height: 1.2;--text-body-sm-bold-weight: 700;--text-body-sm-size: .875rem;--text-body-sm-line-height: 1.2;--text-body-sm-weight: 400;--text-description-size: .75rem;--text-description-line-height: 1.2;--text-description-weight: 400}.bnui-base-wpVVq{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--radius-4);outline:none;background-color:transparent;font-family:var(--font-sans);font-size:var(--text-button-size);font-weight:var(--text-button-weight);line-height:var(--text-button-line-height);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.bnui-base-wpVVq:focus-visible{box-shadow:0 0 0 2px var(--color-interactive-40)}.bnui-base-wpVVq:disabled{pointer-events:none}.bnui-base-wpVVq svg{flex-shrink:0;width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:var(--icon-stroke-width-lg)}.bnui-primary-OKCHe{background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-primary-OKCHe:hover{background-color:var(--color-interactive-40)}.bnui-primary-OKCHe:disabled{background-color:var(--color-neutral-30)}.bnui-secondary-dazFR{border-color:var(--color-neutral-10);color:var(--color-neutral-10)}.bnui-secondary-dazFR:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98);color:var(--color-interactive-10)}.bnui-secondary-dazFR:disabled{border-color:var(--color-neutral-30);color:var(--color-neutral-30);background-color:var(--color-neutral-90)}.bnui-lg-WgiKr{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16)}.bnui-sm-0Kb5B{gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-12)}.bnui-sm-0Kb5B svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}.bnui-iconOnly-LsvO8{gap:0}.bnui-content-q0g4H{display:inline-flex;align-items:center;gap:inherit}.bnui-pending-xP-rH{position:relative}.bnui-pending-xP-rH .bnui-content-q0g4H{visibility:hidden}.bnui-spinner-jLkEm{position:absolute;top:50%;left:50%;width:1rem;height:1rem;margin:-.5rem 0 0 -.5rem;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:bnui-button-spin--7o11 2s linear infinite}@keyframes bnui-button-spin--7o11{to{transform:rotate(360deg)}}.bnui-headline-6c9bn{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-size);line-height:var(--text-headline-line-height);font-weight:var(--text-headline-weight)}.bnui-headline-sm-eesRr{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-sm-size);line-height:var(--text-headline-sm-line-height);font-weight:var(--text-headline-sm-weight)}.bnui-headline-xs-bBHXL{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-xs-size);line-height:var(--text-headline-xs-line-height);font-weight:var(--text-headline-xs-weight)}.bnui-button-lekqm{margin:0;font-family:var(--font-sans);font-size:var(--text-button-size);line-height:var(--text-button-line-height);font-weight:var(--text-button-weight)}.bnui-body-bold-0cir6{margin:0;font-family:var(--font-sans);font-size:var(--text-body-bold-size);line-height:var(--text-body-bold-line-height);font-weight:var(--text-body-bold-weight)}.bnui-body-2BdnA{margin:0;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);font-weight:var(--text-body-weight)}.bnui-body-sm-bold-9SPZK{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-bold-size);line-height:var(--text-body-sm-bold-line-height);font-weight:var(--text-body-sm-bold-weight)}.bnui-body-sm-MOXMI{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-size);line-height:var(--text-body-sm-line-height);font-weight:var(--text-body-sm-weight)}.bnui-description-6roeu{margin:0;font-family:var(--font-sans);font-size:var(--text-description-size);line-height:var(--text-description-line-height);font-weight:var(--text-description-weight)}.bnui-color-default-38dch{color:var(--color-neutral-10)}.bnui-color-white-d9q0c{color:var(--color-neutral-100)}.bnui-color-background-Flq4G{color:var(--text-background)}.bnui-color-surface-80oSA{color:var(--text-surface)}.bnui-color-divider-dark-lGQki{color:var(--text-divider-dark)}.bnui-color-informative-xAFpg{color:var(--text-informative)}.bnui-color-error-jEnPS{color:var(--text-error)}.bnui-color-warning-6lm-Z{color:var(--text-warning)}.bnui-color-success-ThRnA{color:var(--text-success)}.bnui-color-info-PtkS-{color:var(--text-info)}.bnui-color-interactive-b9cqS{color:var(--text-interactive)}.bnui-checkbox-mTFTt{display:inline-flex;box-sizing:border-box;width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-4);border:1px solid transparent;background-color:transparent;padding:0;font-family:var(--font-sans);color:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease;outline:none}.bnui-checkbox-mTFTt:focus-visible{outline:2px solid var(--color-interactive-40);outline-offset:2px}.bnui-checkbox-mTFTt[data-checked]{border-width:2px;border-color:var(--color-neutral-10);background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-checkbox-mTFTt[data-checked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-checked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-40)}.bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-neutral-50)}.bnui-checkbox-mTFTt[data-unchecked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-indicator-VOiAE{display:inline-flex;align-items:center;justify-content:center}.bnui-check-6pYVz{width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:2}.bnui-label-JOyrO{display:inline-flex;cursor:pointer;align-items:center;gap:var(--spacing-8);font-family:var(--font-sans);-webkit-user-select:none;user-select:none}.bnui-group-76ZZz{display:inline-flex;box-sizing:border-box}.bnui-column-ev6Qg{flex-direction:column;align-items:flex-start;gap:var(--spacing-8)}.bnui-row-K6-hO{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--spacing-16)}.bnui-root-oLVBN{--pill-padding: .1875rem;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:var(--radius-full);padding:var(--pill-padding);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.bnui-root-oLVBN:before{content:"";position:absolute;top:var(--pill-padding);left:var(--pill-padding);width:calc(50% - var(--pill-padding));bottom:var(--pill-padding);border-radius:var(--radius-full);pointer-events:none;transition:transform .15s ease}.bnui-root-oLVBN:focus-visible{outline:2px solid var(--color-interactive-50)}.bnui-hasSelectedSecondOption-LfH49:before{transform:translate(100%)}.bnui-filled-L-AUH{background-color:var(--color-neutral-90)}.bnui-filled-L-AUH:hover{background-color:var(--color-interactive-50)}.bnui-filled-L-AUH:before{background-color:var(--color-neutral-100)}.bnui-stroked-wRb92{background-color:var(--color-neutral-100);border-color:var(--color-neutral-10)}.bnui-stroked-wRb92:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-stroked-wRb92:before{background-color:var(--color-neutral-10)}.bnui-option-Hou7J{position:relative;z-index:1;display:flex;place-items:center;padding:var(--spacing-4);flex-grow:1;transition:color .15s ease}.bnui-filled-L-AUH:hover .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-white)}.bnui-filled-L-AUH .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-neutral-50)}.bnui-filled-L-AUH .bnui-selectedOption-twuTF{color:var(--color-neutral-10)}.bnui-stroked-wRb92 .bnui-selectedOption-twuTF{color:var(--color-neutral-100)}.bnui-option-Hou7J svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}
2
+ :root{--color-neutral-0: #000000;--color-neutral-10: #1a1a1a;--color-neutral-20: #353535;--color-neutral-30: #595959;--color-neutral-40: #757575;--color-neutral-50: #a0a0a0;--color-neutral-60: #c4c4c4;--color-neutral-70: #dedede;--color-neutral-80: #eaeaea;--color-neutral-90: #f4f4f4;--color-neutral-95: #f9f9f9;--color-neutral-98: #fbfbfb;--color-neutral-100: #ffffff;--color-info-0: #000000;--color-info-10: #032345;--color-info-20: #00315d;--color-info-30: #00468e;--color-info-40: #004e95;--color-info-50: #0062ba;--color-info-60: #1a72c1;--color-info-70: #3381c8;--color-info-80: #66a1d6;--color-info-90: #80b1dd;--color-info-95: #b3d0ea;--color-info-98: #e6eff8;--color-info-100: #ffffff;--color-success-0: #000000;--color-success-10: #03381c;--color-success-20: #084826;--color-success-30: #0c6536;--color-success-40: #118849;--color-success-50: #189f59;--color-success-60: #15b560;--color-success-70: #2ece7a;--color-success-80: #5dd997;--color-success-90: #8be4b5;--color-success-95: #d1f4e1;--color-success-98: #e8faf0;--color-success-100: #ffffff;--color-warning-0: #000000;--color-warning-10: #522d02;--color-warning-20: #663802;--color-warning-30: #874b06;--color-warning-40: #a45800;--color-warning-50: #dd7e10;--color-warning-60: #f29305;--color-warning-70: #faa322;--color-warning-80: #ffb240;--color-warning-90: #ffcc80;--color-warning-95: #ffe8cd;--color-warning-98: #fff3e0;--color-warning-100: #ffffff;--color-error-0: #000000;--color-error-10: #480e17;--color-error-20: #5a121d;--color-error-30: #7f091a;--color-error-40: #9c0f0f;--color-error-50: #ae1616;--color-error-60: #c62828;--color-error-70: #dc2f2f;--color-error-80: #ef5350;--color-error-90: #ef9a9a;--color-error-95: #ffcdd2;--color-error-98: #ffebee;--color-error-100: #ffffff;--color-interactive-0: #000000;--color-interactive-10: #15143c;--color-interactive-20: #292878;--color-interactive-30: #3e3bb4;--color-interactive-40: #524ff0;--color-interactive-50: #615efc;--color-interactive-60: #7471ff;--color-interactive-70: #8987ff;--color-interactive-80: #a2a0ff;--color-interactive-90: #bebcff;--color-interactive-95: #dddcff;--color-interactive-98: #ededff;--color-interactive-100: #ffffff;--font-sans: Arial, Helvetica, "Helvetica Neue", system-ui, -apple-system, sans-serif;--font-america-gt: "GT America Expanded", var(--font-sans);--color-blue: #0042fe;--color-rebel-0: #000000;--color-rebel-10: #030400;--color-rebel-20: #121900;--color-rebel-30: #273300;--color-rebel-40: #3e5000;--color-rebel-50: #566f00;--color-rebel-60: #708e00;--color-rebel-70: #8baf00;--color-rebel-80: #a8d100;--color-rebel-90: #c3e835;--color-rebel-95: #d3ff27;--color-rebel-98: #f0ffc9;--color-rebel-100: #ffffff;--radius-4: .25rem;--radius-8: .5rem;--radius-full: 9999px;--spacing-4: .25rem;--spacing-8: .5rem;--spacing-12: .75rem;--spacing-16: 1rem;--spacing-24: 1.5rem;--spacing-32: 2rem;--spacing-40: 2.5rem;--spacing-64: 4rem;--spacing-80: 5rem;--icon-size-lg: 1.375rem;--icon-stroke-width-lg: 1.5;--icon-size-sm: 1.125rem;--icon-stroke-width-sm: 1.5}:root{--background: var(--color-neutral-100);--text-background: var(--color-neutral-0);--surface: var(--color-neutral-90);--text-surface: var(--color-neutral-0);--divider-dark: var(--color-neutral-20);--text-divider-dark: var(--color-neutral-100);--border-divider: var(--color-neutral-50);--border-divider-light: var(--color-neutral-70);--text-informative: var(--color-neutral-30);--error: var(--color-error-40);--background-error: var(--color-error-98);--text-error: var(--color-error-10);--warning: var(--color-warning-60);--background-warning: var(--color-warning-98);--text-warning: var(--color-warning-10);--success: var(--color-success-30);--background-success: var(--color-success-98);--text-success: var(--color-success-10);--info: var(--color-info-40);--background-info: var(--color-info-98);--text-info: var(--color-info-10);--interactive: var(--color-interactive-50);--background-interactive: var(--color-interactive-98);--text-interactive: var(--color-interactive-10);--color-black: var(--color-neutral-10);--color-white: var(--color-neutral-100);--font-default: var(--font-sans);--text-headline-size: 2rem;--text-headline-line-height: 1.2;--text-headline-weight: 700;--text-headline-sm-size: 1.375rem;--text-headline-sm-line-height: 1.2;--text-headline-sm-weight: 700;--text-headline-xs-size: 1.125rem;--text-headline-xs-line-height: 1.2;--text-headline-xs-weight: 700;--text-button-size: 1.125rem;--text-button-line-height: 1.2;--text-button-weight: 400;--text-body-bold-size: 1rem;--text-body-bold-line-height: 1.2;--text-body-bold-weight: 700;--text-body-size: 1rem;--text-body-line-height: 1.2;--text-body-weight: 400;--text-body-sm-bold-size: .875rem;--text-body-sm-bold-line-height: 1.2;--text-body-sm-bold-weight: 700;--text-body-sm-size: .875rem;--text-body-sm-line-height: 1.2;--text-body-sm-weight: 400;--text-description-size: .75rem;--text-description-line-height: 1.2;--text-description-weight: 400}.bnui-base-wpVVq{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--radius-4);outline:none;background-color:transparent;font-family:var(--font-sans);font-size:var(--text-button-size);font-weight:var(--text-button-weight);line-height:var(--text-button-line-height);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.bnui-base-wpVVq:focus-visible{box-shadow:0 0 0 2px var(--color-interactive-40)}.bnui-base-wpVVq:disabled{pointer-events:none}.bnui-base-wpVVq svg{flex-shrink:0;width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:var(--icon-stroke-width-lg)}.bnui-primary-OKCHe{background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-primary-OKCHe:hover{background-color:var(--color-interactive-40)}.bnui-primary-OKCHe:disabled{background-color:var(--color-neutral-30)}.bnui-secondary-dazFR{border-color:var(--color-neutral-10);color:var(--color-neutral-10)}.bnui-secondary-dazFR:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98);color:var(--color-interactive-10)}.bnui-secondary-dazFR:disabled{border-color:var(--color-neutral-30);color:var(--color-neutral-30);background-color:var(--color-neutral-90)}.bnui-lg-WgiKr{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16)}.bnui-sm-0Kb5B{gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-12)}.bnui-sm-0Kb5B svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}.bnui-iconOnly-LsvO8{gap:0}.bnui-content-q0g4H{display:inline-flex;align-items:center;gap:inherit}.bnui-pending-xP-rH{position:relative}.bnui-pending-xP-rH .bnui-content-q0g4H{visibility:hidden}.bnui-spinner-jLkEm{position:absolute;top:50%;left:50%;width:1rem;height:1rem;margin:-.5rem 0 0 -.5rem;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:bnui-button-spin--7o11 2s linear infinite}@keyframes bnui-button-spin--7o11{to{transform:rotate(360deg)}}.bnui-headline-6c9bn{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-size);line-height:var(--text-headline-line-height);font-weight:var(--text-headline-weight)}.bnui-headline-sm-eesRr{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-sm-size);line-height:var(--text-headline-sm-line-height);font-weight:var(--text-headline-sm-weight)}.bnui-headline-xs-bBHXL{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-xs-size);line-height:var(--text-headline-xs-line-height);font-weight:var(--text-headline-xs-weight)}.bnui-button-lekqm{margin:0;font-family:var(--font-sans);font-size:var(--text-button-size);line-height:var(--text-button-line-height);font-weight:var(--text-button-weight)}.bnui-body-bold-0cir6{margin:0;font-family:var(--font-sans);font-size:var(--text-body-bold-size);line-height:var(--text-body-bold-line-height);font-weight:var(--text-body-bold-weight)}.bnui-body-2BdnA{margin:0;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);font-weight:var(--text-body-weight)}.bnui-body-sm-bold-9SPZK{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-bold-size);line-height:var(--text-body-sm-bold-line-height);font-weight:var(--text-body-sm-bold-weight)}.bnui-body-sm-MOXMI{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-size);line-height:var(--text-body-sm-line-height);font-weight:var(--text-body-sm-weight)}.bnui-description-6roeu{margin:0;font-family:var(--font-sans);font-size:var(--text-description-size);line-height:var(--text-description-line-height);font-weight:var(--text-description-weight)}.bnui-color-default-38dch{color:var(--color-neutral-10)}.bnui-color-white-d9q0c{color:var(--color-neutral-100)}.bnui-color-background-Flq4G{color:var(--text-background)}.bnui-color-surface-80oSA{color:var(--text-surface)}.bnui-color-divider-dark-lGQki{color:var(--text-divider-dark)}.bnui-color-informative-xAFpg{color:var(--text-informative)}.bnui-color-error-jEnPS{color:var(--text-error)}.bnui-color-warning-6lm-Z{color:var(--text-warning)}.bnui-color-success-ThRnA{color:var(--text-success)}.bnui-color-info-PtkS-{color:var(--text-info)}.bnui-color-interactive-b9cqS{color:var(--text-interactive)}.bnui-checkbox-mTFTt{display:inline-flex;box-sizing:border-box;width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-4);border:1px solid transparent;background-color:transparent;padding:0;font-family:var(--font-sans);color:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease;outline:none}.bnui-checkbox-mTFTt:focus-visible{outline:2px solid var(--color-interactive-40);outline-offset:2px}.bnui-checkbox-mTFTt[data-checked]{border-width:2px;border-color:var(--color-neutral-10);background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-checkbox-mTFTt[data-checked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-checked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-40)}.bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-neutral-50)}.bnui-checkbox-mTFTt[data-unchecked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-checkbox-mTFTt[data-invalid],.bnui-checkbox-mTFTt[data-invalid]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-invalid]{border-color:var(--color-error-40)}.bnui-indicator-VOiAE{display:inline-flex;align-items:center;justify-content:center}.bnui-check-6pYVz{width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:2}.bnui-item-qNsgX{display:contents}.bnui-label-JOyrO{display:inline-flex;cursor:pointer;align-items:center;gap:var(--spacing-8);font-family:var(--font-sans);-webkit-user-select:none;user-select:none}.bnui-group-76ZZz{display:inline-flex;box-sizing:border-box}.bnui-column-ev6Qg{flex-direction:column;align-items:flex-start;gap:var(--spacing-8)}.bnui-row-K6-hO{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--spacing-16)}.bnui-textarea-6uYeG{display:block;box-sizing:border-box;min-height:6rem;min-width:20rem;width:100%;border-radius:var(--radius-4);border:1px solid var(--color-neutral-50);background-color:var(--color-neutral-100);padding:var(--spacing-8);resize:none;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-10);outline:none;field-sizing:content;overflow:hidden}.bnui-textarea-6uYeG::placeholder{color:var(--color-neutral-40)}.bnui-textarea-6uYeG:hover{box-shadow:inset 0 0 0 1px var(--color-neutral-50)}.bnui-textarea-6uYeG:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG[data-invalid]{border-color:var(--color-error-40)}.bnui-textarea-6uYeG[data-invalid]:hover{box-shadow:none}.bnui-textarea-6uYeG[data-invalid]:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG:disabled{cursor:not-allowed;opacity:.5}.bnui-container-GujCE{display:flex;box-sizing:border-box;width:100%;flex-direction:column;gap:var(--spacing-4);font-family:var(--font-sans)}.bnui-error-9Pli1{display:flex;align-items:center;gap:var(--spacing-4)}.bnui-errorDot-mVjXf{display:inline-block;width:.5rem;height:.5rem;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-error-40)}.bnui-form-9QnXK{display:flex;box-sizing:border-box;width:100%;flex-direction:column;gap:var(--spacing-24);margin:0;font-family:var(--font-sans)}.bnui-root-oLVBN{--pill-padding: .1875rem;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:var(--radius-full);padding:var(--pill-padding);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.bnui-root-oLVBN:before{content:"";position:absolute;top:var(--pill-padding);left:var(--pill-padding);width:calc(50% - var(--pill-padding));bottom:var(--pill-padding);border-radius:var(--radius-full);pointer-events:none;transition:transform .15s ease}.bnui-root-oLVBN:focus-visible{outline:2px solid var(--color-interactive-50)}.bnui-hasSelectedSecondOption-LfH49:before{transform:translate(100%)}.bnui-filled-L-AUH{background-color:var(--color-neutral-90)}.bnui-filled-L-AUH:hover{background-color:var(--color-interactive-50)}.bnui-filled-L-AUH:before{background-color:var(--color-neutral-100)}.bnui-stroked-wRb92{background-color:var(--color-neutral-100);border-color:var(--color-neutral-10)}.bnui-stroked-wRb92:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-stroked-wRb92:before{background-color:var(--color-neutral-10)}.bnui-option-Hou7J{position:relative;z-index:1;display:flex;place-items:center;padding:var(--spacing-4);flex-grow:1;transition:color .15s ease}.bnui-filled-L-AUH:hover .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-white)}.bnui-filled-L-AUH .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-neutral-50)}.bnui-filled-L-AUH .bnui-selectedOption-twuTF{color:var(--color-neutral-10)}.bnui-stroked-wRb92 .bnui-selectedOption-twuTF{color:var(--color-neutral-100)}.bnui-option-Hou7J svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}
3
3
 
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bekk-basen/neutral-ui-do-not-use",
3
- "version": "0.0.0-dev.09f4177",
3
+ "version": "0.0.0-dev.56e05f9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/bekk/bekk-neutral-ui"
@@ -39,7 +39,7 @@
39
39
  "preview": "vite preview"
40
40
  },
41
41
  "dependencies": {
42
- "@base-ui/react": "1.4.1",
42
+ "@base-ui/react": "1.7.0",
43
43
  "class-variance-authority": "0.7.1",
44
44
  "clsx": "2.1.1",
45
45
  "date-fns": "4.1.0",
@@ -47,8 +47,8 @@
47
47
  "react-day-picker": "10.0.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "react": "^18.0.0 || ^19.0.0",
51
- "react-dom": "^18.0.0 || ^19.0.0"
50
+ "react": "^19.0.0",
51
+ "react-dom": "^19.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@eslint/js": "9.39.4",