@sanity/ui 3.0.0-static.28 → 3.0.0-static.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -8
- package/dist/_chunks-cjs/_visual-editing.cjs +66 -66
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +67 -67
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/{css.cjs → css/index.cjs} +47 -37
- package/dist/css/index.cjs.map +1 -0
- package/dist/css/index.css +1 -0
- package/dist/{css.d.cts → css/index.d.cts} +13 -3
- package/dist/{css.d.ts → css/index.d.ts} +13 -3
- package/dist/{css.js → css/index.js} +47 -37
- package/dist/css/index.js.map +1 -0
- package/dist/index.cjs +104 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -9
- package/dist/index.d.ts +28 -9
- package/dist/index.js +107 -51
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/core/components/autocomplete/autocomplete.tsx +3 -3
- package/src/core/components/toast/toast.tsx +13 -14
- package/src/core/components/toast/toastProvider.tsx +14 -10
- package/src/core/index.ts +1 -0
- package/src/core/primitives/root/Root.tsx +89 -0
- package/src/core/primitives/root/__workshop__/boundary.tsx +5 -0
- package/src/core/primitives/root/__workshop__/index.ts +8 -0
- package/src/core/primitives/root/index.ts +1 -0
- package/src/css/components/toast/toast.css.ts +1 -0
- package/src/css/defaultTheme.css.ts +55 -2
- package/src/css/index.ts +2 -0
- package/src/css/primitives/root/index.ts +2 -0
- package/src/css/primitives/root/root.css.ts +15 -0
- package/src/css/primitives/root/root.ts +17 -0
- package/src/css/primitives/root/types.ts +10 -0
- package/dist/css.cjs.map +0 -1
- package/dist/css.js.map +0 -1
- package/dist/index.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/css/constants.ts","../../src/css/_responsiveClassName.ts","../../src/css/props/alignItems/alignItems.ts","../../src/css/_getClassNames.ts","../../src/css/_composeClassNames.ts","../../src/css/props/border/border.ts","../../src/css/props/boxSizing/boxSizing.ts","../../src/css/props/display/display.ts","../../src/css/props/flex/flex.ts","../../src/css/props/flexDirection/flexDirection.ts","../../src/css/props/flexWrap/flexWrap.ts","../../src/css/props/font/font.ts","../../src/css/props/gap/gap.ts","../../src/css/props/gridAutoColumns/gridAutoColumns.ts","../../src/css/props/gridAutoFlow/gridAutoFlow.ts","../../src/css/props/gridAutoRows/gridAutoRows.ts","../../src/css/props/gridColumn/gridColumn.ts","../../src/css/props/gridColumnEnd/gridColumnEnd.ts","../../src/css/props/gridColumnStart/gridColumnStart.ts","../../src/css/props/gridRow/gridRow.ts","../../src/css/props/gridRowEnd/gridRowEnd.ts","../../src/css/props/gridRowStart/gridRowStart.ts","../../src/css/props/gridTemplateColumns/gridTemplateColumns.ts","../../src/css/props/gridTemplateRows/gridTemplateRows.ts","../../src/css/props/height/height.ts","../../src/css/props/inset/inset.ts","../../src/css/props/justifyContent/justifyContent.ts","../../src/css/props/margin/margin.ts","../../src/css/props/maxWidth/maxWidth.ts","../../src/css/props/minHeight/minHeight.ts","../../src/css/props/minWidth/minWidth.ts","../../src/css/props/outline/outline.ts","../../src/css/props/overflow/overflow.ts","../../src/css/props/padding/padding.ts","../../src/css/props/pointerEvents/pointerEvents.ts","../../src/css/props/position/position.ts","../../src/css/props/radius/radius.ts","../../src/css/props/shadow/shadow.ts","../../src/css/props/textAlign/textAlign.ts","../../src/css/props/textOverflow/textOverflow.ts","../../src/css/props/width/width.ts","../../src/css/primitives/_arrow/_arrow.ts","../../src/css/primitives/_input/input.ts","../../src/css/primitives/_selectable/selectable.ts","../../src/css/primitives/avatar/avatar.ts","../../src/css/primitives/badge/badge.ts","../../src/css/primitives/box/box.ts","../../src/css/primitives/button/button.ts","../../src/css/primitives/card/card.ts","../../src/css/primitives/checkbox/checkbox.ts","../../src/css/primitives/code/code.ts","../../src/css/primitives/container/container.ts","../../src/css/primitives/heading/heading.ts","../../src/css/primitives/kbd/kbd.ts","../../src/css/primitives/label/label.ts","../../src/css/primitives/popover/popover.ts","../../src/css/primitives/radio/radio.ts","../../src/css/primitives/root/root.ts","../../src/css/primitives/select/select.ts","../../src/css/primitives/spinner/spinner.ts","../../src/css/primitives/srOnly/srOnly.ts","../../src/css/primitives/stack/stack.ts","../../src/css/primitives/switch/switch.ts","../../src/css/primitives/text/text.ts","../../src/css/primitives/textArea/textArea.ts","../../src/css/primitives/textInput/textInput.ts","../../src/css/primitives/tooltip/tooltip.ts","../../src/css/components/breadcrumbs/breadcrumbs.ts","../../src/css/components/dialog/dialog.ts","../../src/css/components/menu/menu.ts","../../src/css/components/skeleton/skeleton.ts","../../src/css/components/toast/toast.ts","../../src/css/components/tree/tree.ts","../../src/css/util.ts"],"sourcesContent":["/** @public */\nexport const BREAKPOINTS = {\n 0: 0,\n 1: 360,\n 2: 600,\n 3: 900,\n 4: 1200,\n 5: 1800,\n 6: 2400,\n}\n","// import {MEDIA} from './constants'\nimport {BREAKPOINTS} from './constants'\nimport type {ResponsiveProp, ResponsiveRuleOptions} from './types'\n\nexport function _responsiveClassName<T extends string | number>(\n rules: ResponsiveRuleOptions<T>,\n _value: ResponsiveProp<T | boolean> | undefined,\n options?: {\n valueWhenTrue: T\n },\n) {\n let value = _value\n\n if (value === undefined) {\n return undefined\n }\n\n if (typeof value === 'boolean') {\n if (value && options?.valueWhenTrue) {\n value = options.valueWhenTrue\n } else {\n return undefined\n }\n }\n\n if (typeof value === 'string' || typeof value === 'number') {\n return rules[value]?.[0]\n }\n\n const classNames: string[] = []\n\n for (const _index of Object.keys(BREAKPOINTS)) {\n const index = Number(_index) as keyof typeof BREAKPOINTS\n\n const valueAtIndex = value[index]\n\n if (valueAtIndex !== undefined && valueAtIndex !== null && typeof valueAtIndex !== 'boolean') {\n const rule = rules[valueAtIndex]\n\n classNames.push(rule[index])\n }\n }\n\n return classNames.join(' ') || undefined\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './alignItems.css'\nimport type {AlignItemsStyleProps} from './types'\n\n/** @public */\nexport function alignItems(props: AlignItemsStyleProps) {\n return _responsiveClassName(options, props.alignItems)\n}\n","/** @internal */\nexport function _getClassNames(...classNames: Array<string | false | undefined>): string[] {\n return classNames\n .map((n) => typeof n === 'string' && n.trim())\n .filter(Boolean)\n .join(' ')\n .split(' ')\n .filter(Boolean)\n}\n","import {_getClassNames} from './_getClassNames'\n\n/** @internal */\nexport function _composeClassNames(\n ...classNames: Array<string | false | undefined>\n): string | undefined {\n return unique(_getClassNames(...classNames)).join(' ') || undefined\n}\n\nfunction unique<T>(array: T[]): T[] {\n return Array.from(new Set(array))\n}\n","// import {_resp} from '../../_resp'\n// import {_scopeClassNames} from '../../_scopeClassNames'\n// import type {BorderStyleProps} from './types'\n\n// /** @public */\n// export function border(props: BorderStyleProps): string | undefined {\n// return _scopeClassNames(\n// _resp('border', props.border),\n// _resp('border-t', props.borderTop),\n// _resp('border-r', props.borderRight),\n// _resp('border-b', props.borderBottom),\n// _resp('border-l', props.borderLeft),\n// )\n// }\n\nimport {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {\n borderBottomOptions,\n borderLeftOptions,\n borderOptions,\n borderRightOptions,\n borderTopOptions,\n} from './border.css'\nimport type {BorderStyleProps} from './types'\n\n/** @public */\nexport function border(props: BorderStyleProps) {\n return _composeClassNames(\n _responsiveClassName(borderOptions, props.border, {valueWhenTrue: 'solid'}),\n _responsiveClassName(borderTopOptions, props.borderTop, {valueWhenTrue: 'solid'}),\n _responsiveClassName(borderRightOptions, props.borderRight, {valueWhenTrue: 'solid'}),\n _responsiveClassName(borderBottomOptions, props.borderBottom, {valueWhenTrue: 'solid'}),\n _responsiveClassName(borderLeftOptions, props.borderLeft, {valueWhenTrue: 'solid'}),\n )\n}\n","// import {_resp} from '../../_resp'\n// import {_scopeClassNames} from '../../_scopeClassNames'\nimport {options} from './boxSizing.css'\nimport type {BoxSizingStyleProps} from './types'\n\n/** @internal */\nexport function boxSizing(props: BoxSizingStyleProps): string | undefined {\n // return _scopeClassNames(_resp('box', props.boxSizing))\n return props.boxSizing && options[props.boxSizing]\n}\n","// import {_resp} from '../../_resp'\n// import {_scopeClassNames} from '../../_scopeClassNames'\n// import type {DisplayStyleProps} from './types'\n\n// /** @internal */\n// export function display(props: DisplayStyleProps): string | undefined {\n// return _scopeClassNames(_resp(undefined, props.display))\n// }\n\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './display.css'\nimport type {DisplayStyleProps} from './types'\n\n/** @public */\nexport function display(props: DisplayStyleProps) {\n return _responsiveClassName(options, props.display)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './flex.css'\nimport type {FlexStyleProps} from './types'\n\n/** @public */\nexport function flex(props: FlexStyleProps) {\n return _responsiveClassName(options, props.flex)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './flexDirection.css'\nimport type {FlexDirectionStyleProps} from './types'\n\n/** @public */\nexport function flexDirection(props: FlexDirectionStyleProps) {\n return _responsiveClassName(options, props.flexDirection)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './flexWrap.css'\nimport type {FlexWrapStyleProps} from './types'\n\n/** @public */\nexport function flexWrap(props: FlexWrapStyleProps) {\n return _responsiveClassName(options, props.flexWrap)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root, weights} from './font.css'\nimport type {FontStyleProps} from './types'\n\n/** @public */\nexport function font(props: FontStyleProps) {\n return _composeClassNames(root, weights[props.weight ?? 'regular'])\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {gapOptions, gapXOptions, gapYOptions} from './gap.css'\nimport type {GapStyleProps} from './types'\n\n/** @public */\nexport function gap(props: GapStyleProps) {\n return _composeClassNames(\n _responsiveClassName(gapOptions, props.gap),\n _responsiveClassName(gapXOptions, props.gapX),\n _responsiveClassName(gapYOptions, props.gapY),\n )\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridAutoColumns.css'\nimport type {GridAutoColumnsStyleProps} from './types'\n\n/** @public */\nexport function gridAutoColumns(props: GridAutoColumnsStyleProps) {\n return _responsiveClassName(options, props.gridAutoColumns ?? props.autoCols)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridAutoFlow.css'\nimport type {GridAutoFlowStyleProps} from './types'\n\n/** @public */\nexport function gridAutoFlow(props: GridAutoFlowStyleProps) {\n return _responsiveClassName(options, props.gridAutoFlow ?? props.autoFlow)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridAutoRows.css'\nimport type {GridAutoRowsStyleProps} from './types'\n\n/** @public */\nexport function gridAutoRows(props: GridAutoRowsStyleProps) {\n return _responsiveClassName(options, props.gridAutoRows ?? props.autoRows)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridColumn.css'\nimport type {GridColumn, GridColumnStyleProps} from './types'\n\n/** @public */\nexport function gridColumn(props: GridColumnStyleProps) {\n return _responsiveClassName(options, props.gridColumn ?? (props.column as GridColumn))\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridColumnEnd.css'\nimport type {GridColumnEnd, GridColumnEndStyleProps} from './types'\n\n/** @public */\nexport function gridColumnEnd(props: GridColumnEndStyleProps) {\n return _responsiveClassName(options, props.gridColumnEnd ?? (props.columnEnd as GridColumnEnd))\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridColumnStart.css'\nimport type {GridColumnStart, GridColumnStartStyleProps} from './types'\n\n/** @public */\nexport function gridColumnStart(props: GridColumnStartStyleProps) {\n return _responsiveClassName(\n options,\n props.gridColumnStart ?? (props.columnStart as GridColumnStart),\n )\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridRow.css'\nimport type {GridRow, GridRowStyleProps} from './types'\n\n/** @public */\nexport function gridRow(props: GridRowStyleProps) {\n return _responsiveClassName(options, props.gridRow ?? (props.row as GridRow))\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridRowEnd.css'\nimport type {GridRowEnd, GridRowEndStyleProps} from './types'\n\n/** @public */\nexport function gridRowEnd(props: GridRowEndStyleProps) {\n return _responsiveClassName(options, props.gridRowEnd ?? (props.rowEnd as GridRowEnd))\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridRowStart.css'\nimport type {GridRowStart, GridRowStartStyleProps} from './types'\n\n/** @public */\nexport function gridRowStart(props: GridRowStartStyleProps) {\n return _responsiveClassName(options, props.gridRowStart ?? (props.rowStart as GridRowStart))\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridTemplateColumns.css'\nimport type {GridTemplateColumnsStyleProps} from './types'\n\n/** @public */\nexport function gridTemplateColumns(props: GridTemplateColumnsStyleProps) {\n return _responsiveClassName(options, props.gridTemplateColumns ?? props.columns)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './gridTemplateRows.css'\nimport type {GridTemplateRowsStyleProps} from './types'\n\n/** @public */\nexport function gridTemplateRows(props: GridTemplateRowsStyleProps) {\n return _responsiveClassName(options, props.gridTemplateRows ?? props.rows)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './height.css'\nimport type {HeightStyleProps} from './types'\n\n/** @public */\nexport function height(props: HeightStyleProps) {\n return _responsiveClassName(options, props.height)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {\n insetBottomOptions,\n insetLeftOptions,\n insetOptions,\n insetRightOptions,\n insetTopOptions,\n} from './inset.css'\nimport type {InsetStyleProps} from './types'\n\n/** @public */\nexport function inset(props: InsetStyleProps) {\n return _composeClassNames(\n _responsiveClassName(insetOptions, props.inset),\n _responsiveClassName(insetTopOptions, props.insetTop),\n _responsiveClassName(insetRightOptions, props.insetRight),\n _responsiveClassName(insetBottomOptions, props.insetBottom),\n _responsiveClassName(insetLeftOptions, props.insetLeft),\n )\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './justifyContent.css'\nimport type {JustifyContentStyleProps} from './types'\n\n/** @public */\nexport function justifyContent(props: JustifyContentStyleProps) {\n return _responsiveClassName(options, props.justifyContent)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {\n marginBottomOptions,\n marginLeftOptions,\n marginOptions,\n marginRightOptions,\n marginTopOptions,\n marginXOptions,\n marginYOptions,\n} from './margin.css'\nimport type {MarginStyleProps} from './types'\n\n/** @public */\nexport function margin(props: MarginStyleProps) {\n return _composeClassNames(\n _responsiveClassName(marginOptions, props.margin),\n _responsiveClassName(marginXOptions, props.marginX),\n _responsiveClassName(marginYOptions, props.marginY),\n _responsiveClassName(marginTopOptions, props.marginTop),\n _responsiveClassName(marginRightOptions, props.marginRight),\n _responsiveClassName(marginBottomOptions, props.marginBottom),\n _responsiveClassName(marginLeftOptions, props.marginLeft),\n )\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './maxWidth.css'\nimport type {MaxWidthStyleProps} from './types'\n\n/** @public */\nexport function maxWidth(props: MaxWidthStyleProps) {\n return _responsiveClassName(options, props.maxWidth)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './minHeight.css'\nimport type {MinHeightStyleProps} from './types'\n\n/** @public */\nexport function minHeight(props: MinHeightStyleProps) {\n return _responsiveClassName(options, props.minHeight)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './minWidth.css'\nimport type {MinWidthStyleProps} from './types'\n\n/** @public */\nexport function minWidth(props: MinWidthStyleProps) {\n return _responsiveClassName(options, props.minWidth)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './outline.css'\nimport type {OutlineStyleProps} from './types'\n\n/** @public */\nexport function outline(props: OutlineStyleProps) {\n return _responsiveClassName(options, props.outline)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './overflow.css'\nimport type {OverflowStyleProps} from './types'\n\n/** @public */\nexport function overflow(props: OverflowStyleProps) {\n return _responsiveClassName(options, props.overflow)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {\n paddingBottomOptions,\n paddingLeftOptions,\n paddingOptions,\n paddingRightOptions,\n paddingTopOptions,\n paddingXOptions,\n paddingYOptions,\n} from './padding.css'\nimport type {PaddingStyleProps} from './types'\n\n/** @public */\nexport function padding(props: PaddingStyleProps) {\n return _composeClassNames(\n _responsiveClassName(paddingOptions, props.padding),\n _responsiveClassName(paddingXOptions, props.paddingX),\n _responsiveClassName(paddingYOptions, props.paddingY),\n _responsiveClassName(paddingTopOptions, props.paddingTop),\n _responsiveClassName(paddingRightOptions, props.paddingRight),\n _responsiveClassName(paddingBottomOptions, props.paddingBottom),\n _responsiveClassName(paddingLeftOptions, props.paddingLeft),\n )\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './pointerEvents.css'\nimport type {PointerEventsStyleProps} from './types'\n\n/** @public */\nexport function pointerEvents(props: PointerEventsStyleProps) {\n return _responsiveClassName(options, props.pointerEvents)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './position.css'\nimport type {PositionStyleProps} from './types'\n\n/** @public */\nexport function position(props: PositionStyleProps) {\n return _responsiveClassName(options, props.position)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './radius.css'\nimport type {RadiusStyleProps} from './types'\n\n/** @public */\nexport function radius(props: RadiusStyleProps) {\n return _responsiveClassName(options, props.radius)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './shadow.css'\nimport type {ShadowStyleProps} from './types'\n\n/** @public */\nexport function shadow(props: ShadowStyleProps) {\n return _responsiveClassName(options, props.shadow)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './textAlign.css'\nimport type {TextAlignStyleProps} from './types'\n\n/** @public */\nexport function textAlign(props: TextAlignStyleProps) {\n return _responsiveClassName(options, props.textAlign)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport {options} from './textOverflow.css'\nimport type {TextOverflowStyleProps} from './types'\n\n/** @public */\nexport function textOverflow(props: TextOverflowStyleProps) {\n return _responsiveClassName(options, props.textOverflow)\n}\n","import {_responsiveClassName} from '../../_responsiveClassName'\nimport type {WidthStyleProps} from './types'\nimport {options} from './width.css'\n\n/** @public */\nexport function width(props: WidthStyleProps) {\n return _responsiveClassName(options, props.width)\n}\n","import {fill, root, stroke, strokeMask, svg} from './_arrow.css'\n\n/** @internal */\nexport function _arrow(): string | undefined {\n return root\n}\n\n/** @internal */\nexport function _arrowSvg(): string | undefined {\n return svg\n}\n\n/** @internal */\nexport function _arrowStroke(): string | undefined {\n return stroke\n}\n\n/** @internal */\nexport function _arrowStrokeMask(): string | undefined {\n return strokeMask\n}\n\n/** @internal */\nexport function _arrowShape(): string | undefined {\n return fill\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {radius} from '../../props/radius'\nimport {width} from '../../props/width'\nimport {border, element, fontSize, gap, padding, presentation, root} from './_input.css'\nimport type {InputStyleProps} from './types'\n\n/** @internal */\nexport function _input(props: InputStyleProps): string | undefined {\n return _composeClassNames(\n root,\n props.border && border,\n _responsiveClassName(fontSize, props.fontSize ?? 2),\n _responsiveClassName(padding, props.padding ?? 3),\n _responsiveClassName(gap, props.gap ?? 3),\n radius(props),\n width(props),\n )\n}\n\n/** @internal */\nexport function _inputElement(): string | undefined {\n return element\n}\n\n/** @internal */\nexport function _inputPresentation(): string | undefined {\n return presentation\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {radius} from '../../props/radius'\nimport {root, tones} from './_selectable.css'\nimport type {SelectableStyleProps} from './types'\n\n/** @internal */\nexport function _selectable(props: SelectableStyleProps): string | undefined {\n return _composeClassNames(props.className, root, tones[props.tone ?? 'default'], radius(props))\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {flex} from '../../props/flex'\nimport {\n arrow,\n arrowSvg,\n colors,\n counter,\n image,\n imageOutline,\n initials,\n root,\n scale,\n stack,\n} from './avatar.css'\nimport type {AvatarStyleProps} from './types'\n\n/** @public */\nexport function avatar(props: AvatarStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n colors[props.color ?? 'gray'],\n _responsiveClassName(scale, props.size ?? 1),\n flex({flex: 'none'}),\n )\n}\n\n/** @public */\nexport function avatarArrow(): string | undefined {\n return arrow\n}\n\n/** @public */\nexport function avatarArrowSvg(): string | undefined {\n return arrowSvg\n}\n\n/** @public */\nexport function avatarInitials(): string | undefined {\n return initials\n}\n\n/** @public */\nexport function avatarImage(): string | undefined {\n return image\n}\n\n/** @public */\nexport function avatarImageOutline(): string | undefined {\n return imageOutline\n}\n\n/** @public */\nexport function avatarCounter(props: {\n className?: string\n size?: AvatarStyleProps['size']\n}): string | undefined {\n return _composeClassNames(props.className, counter, _responsiveClassName(scale, props.size ?? 1))\n}\n\n/** @public */\nexport function avatarStack(props: {\n className?: string\n size?: AvatarStyleProps['size']\n}): string | undefined {\n return _composeClassNames(props.className, stack, _responsiveClassName(scale, props.size ?? 1))\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root, tones} from './badge.css'\nimport type {BadgeStyleProps} from './types'\n\n/** @public */\nexport function badge(props: BadgeStyleProps): string | undefined {\n return _composeClassNames(props.className, root, tones[props.tone ?? 'default'])\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {alignItems} from '../../props/alignItems'\nimport {border} from '../../props/border'\nimport {boxSizing} from '../../props/boxSizing'\nimport {display} from '../../props/display'\nimport {flex} from '../../props/flex'\nimport {flexDirection} from '../../props/flexDirection'\nimport {flexWrap} from '../../props/flexWrap'\nimport {gap} from '../../props/gap'\nimport {gridAutoColumns} from '../../props/gridAutoColumns'\nimport {gridAutoFlow} from '../../props/gridAutoFlow'\nimport {gridAutoRows} from '../../props/gridAutoRows'\nimport {gridColumn} from '../../props/gridColumn'\nimport {gridColumnEnd} from '../../props/gridColumnEnd'\nimport {gridColumnStart} from '../../props/gridColumnStart'\nimport {gridRow} from '../../props/gridRow'\nimport {gridRowEnd} from '../../props/gridRowEnd'\nimport {gridRowStart} from '../../props/gridRowStart'\nimport {gridTemplateColumns} from '../../props/gridTemplateColumns'\nimport {gridTemplateRows} from '../../props/gridTemplateRows'\nimport {height} from '../../props/height'\nimport {inset} from '../../props/inset'\nimport {justifyContent} from '../../props/justifyContent'\nimport {margin} from '../../props/margin'\nimport {maxWidth} from '../../props/maxWidth'\nimport {minHeight} from '../../props/minHeight'\nimport {minWidth} from '../../props/minWidth'\nimport {outline} from '../../props/outline'\nimport {overflow} from '../../props/overflow'\nimport {padding} from '../../props/padding'\nimport {pointerEvents} from '../../props/pointerEvents'\nimport {position} from '../../props/position'\nimport {radius} from '../../props/radius'\nimport {shadow} from '../../props/shadow'\nimport {textAlign} from '../../props/textAlign'\nimport {width} from '../../props/width'\nimport {muted, root} from './box.css'\nimport type {BoxStyleProps} from './types'\n\n/** @public */\nexport function box(props: BoxStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n props.muted && muted,\n alignItems(props),\n border(props),\n boxSizing({boxSizing: props.sizing}),\n display(props),\n height(props),\n flex(props),\n flexDirection(props),\n flexWrap(props),\n gap(props),\n gridAutoColumns(props),\n gridAutoFlow(props),\n gridAutoRows(props),\n gridColumn(props),\n gridColumnEnd(props),\n gridColumnStart(props),\n gridRow(props),\n gridRowEnd(props),\n gridRowStart(props),\n gridTemplateColumns(props),\n gridTemplateRows(props),\n inset(props),\n justifyContent(props),\n margin(props),\n maxWidth(props),\n minHeight(props),\n minWidth(props),\n overflow(props),\n padding(props),\n pointerEvents(props),\n position(props),\n outline(props),\n radius(props),\n shadow(props),\n textAlign(props),\n width(props),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {display} from '../../props/display'\nimport {flex} from '../../props/flex'\nimport {radius} from '../../props/radius'\nimport {width} from '../../props/width'\nimport {loadingBox, modes, root, tones} from './button.css'\nimport type {ButtonStyleProps} from './types'\n\n/** @public */\nexport function button(props: ButtonStyleProps) {\n return _composeClassNames(\n props.className,\n root,\n modes[props.mode ?? 'default'],\n tones[props.tone ?? 'default'],\n display({display: 'flex'}),\n flex(props),\n radius(props),\n width(props),\n )\n}\n\n/** @public */\nexport function buttonLoadingBox() {\n return loadingBox\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root, schemes, tones} from './card.css'\nimport type {CardStyleProps} from './types'\n\n/** @public */\nexport function card(props: CardStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n props.scheme && schemes[props.scheme],\n props.tone && props.tone !== 'inherit' && tones[props.tone],\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {input, presentation, root} from './checkbox.css'\n\n/** @public */\nexport function checkbox(props: {className?: string}) {\n return _composeClassNames(props.className, root)\n}\n\n/** @public */\nexport function checkboxInput() {\n return input\n}\n\n/** @public */\nexport function checkboxPresentation() {\n return presentation\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {display} from '../../props/display'\nimport {flex} from '../../props/flex'\nimport {font} from '../../props/font'\nimport {root, scale} from './code.css'\nimport type {CodeStyleProps} from './types'\n\n/** @public */\nexport function code(props: CodeStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n _responsiveClassName(scale, props.size ?? 1),\n display({display: 'block'}),\n flex(props),\n font(props),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {margin} from '../../props/margin'\nimport {maxWidth} from '../../props/maxWidth'\nimport {width} from '../../props/width'\nimport {root} from './container.css'\nimport type {ContainerStyleProps} from './types'\n\n/** @public */\nexport function container(props: ContainerStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n margin({marginX: 'auto'}),\n maxWidth({maxWidth: props.width}),\n width({width: 'fill'}),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {display} from '../../props/display'\nimport {flex} from '../../props/flex'\nimport {font} from '../../props/font'\nimport {textAlign} from '../../props/textAlign'\nimport {muted, root, sizes} from './heading.css'\nimport type {HeadingStyleProps} from './types'\n\n/** @public */\nexport function heading(props: HeadingStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n props.muted && muted,\n _responsiveClassName(sizes, props.size ?? 1),\n display({display: 'block'}),\n flex(props),\n font(props),\n textAlign({textAlign: props.align}),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {radius} from '../../props/radius'\nimport {root} from './kbd.css'\nimport type {KBDStyleProps} from './types'\n\n/** @public */\nexport function kbd(props: KBDStyleProps): string | undefined {\n return _composeClassNames(props.className, root, radius(props))\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {display} from '../../props/display'\nimport {flex} from '../../props/flex'\nimport {font} from '../../props/font'\nimport {textAlign} from '../../props/textAlign'\nimport {muted, root, sizes} from './label.css'\nimport type {LabelStyleProps} from './types'\n\n/** @public */\nexport function label(props: LabelStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n props.muted && muted,\n _responsiveClassName(sizes, props.size ?? 1),\n display({display: 'block'}),\n flex(props),\n font(props),\n textAlign({textAlign: props.align}),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {card, root} from './popover.css'\n\n/** @public */\nexport function popover(props: {className?: string}) {\n return _composeClassNames(props.className, root)\n}\n\n/** @public */\nexport function popoverCard() {\n return _composeClassNames(card)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {input, presentation, root} from './radio.css'\n\n/** @public */\nexport function radio(props: {className?: string}) {\n return _composeClassNames(props.className, root)\n}\n\n/** @public */\nexport function radioInput() {\n return input\n}\n\n/** @public */\nexport function radioPresentation() {\n return presentation\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {themeClassName} from '../../defaultTheme.css'\nimport {height} from '../../props/height'\nimport {card} from '../card'\nimport {_root} from './root.css'\nimport type {RootStyleProps} from './types'\n\n/** @public */\nexport function root(props: RootStyleProps) {\n return _composeClassNames(\n props.className,\n themeClassName,\n _root,\n card({scheme: props.scheme ?? 'light', tone: props.tone ?? 'transparent'}),\n height({height: props.height ?? 'fill'}),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_input, _inputPresentation} from '../_input'\nimport {presentation, root} from './select.css'\nimport type {SelectStyleProps} from './types'\n\n/** @public */\nexport function select(props: SelectStyleProps): string | undefined {\n return _composeClassNames(root, _input(props))\n}\n\n/** @public */\nexport function selectPresentation(): string | undefined {\n return _composeClassNames(presentation, _inputPresentation())\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root, spinnerIcon} from './spinner.css'\nimport type {SpinnerStyleProps} from './types'\n\n/** @public */\nexport function spinner(props: SpinnerStyleProps) {\n return _composeClassNames(props.className, root)\n}\n\n/** @public */\nexport function animatedSpinnerIcon() {\n return spinnerIcon\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root} from './srOnly.css'\n\n/** @public */\nexport function srOnly(props: {className?: string}) {\n return _composeClassNames(props.className, root)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root} from './stack.css'\n\n/** @public */\nexport function stack(props: {className?: string}) {\n return _composeClassNames(props.className, root)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {input, presentation, root, thumb, track} from './switch.css'\n\n/** @public */\nexport function _switch(props: {className?: string}): string | undefined {\n return _composeClassNames(props.className, root)\n}\n\n/** @public */\nexport function _switchElement(): string | undefined {\n return input\n}\n\n/** @public */\nexport function _switchPresentation(): string | undefined {\n return presentation\n}\n\n/** @public */\nexport function _switchThumb(): string | undefined {\n return thumb\n}\n\n/** @public */\nexport function _switchTrack(): string | undefined {\n return track\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {display} from '../../props/display'\nimport {flex} from '../../props/flex'\nimport {font} from '../../props/font'\nimport {maxWidth} from '../../props/maxWidth'\nimport {textAlign} from '../../props/textAlign'\nimport {muted, root, sizes} from './text.css'\nimport type {TextStyleProps} from './types'\n\n/** @public */\nexport function text(props: TextStyleProps): string | undefined {\n return _composeClassNames(\n props.className,\n root,\n props.muted && muted,\n _responsiveClassName(sizes, props.size ?? 1),\n display({display: 'block'}),\n flex(props),\n font(props),\n maxWidth(props),\n textAlign({textAlign: props.align}),\n )\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_input} from '../_input'\nimport {root} from './textArea.css'\nimport type {TextAreaStyleProps} from './types'\n\n/** @public */\nexport function textArea(props: TextAreaStyleProps): string | undefined {\n return _composeClassNames(props.className, root, _input(props))\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_input} from '../_input'\nimport {element, prefix, root, suffix} from './textInput.css'\nimport type {TextInputStyleProps} from './types'\n\n/** @public */\nexport function textInput(props: TextInputStyleProps): string | undefined {\n return _composeClassNames(props.className, root, _input(props))\n}\n\n/** @public */\nexport function textInputPrefix(): string | undefined {\n return prefix\n}\n\n/** @public */\nexport function textInputElement(): string | undefined {\n return element\n}\n\n/** @public */\nexport function textInputSuffix(): string | undefined {\n return suffix\n}\n","import {_composeClassNames} from '../../_composeClassNames'\n// import {_scopeClassNames} from '../../_scopeClassNames'\nimport {root} from './tooltip.css'\nimport type {TooltipStyleProps} from './types'\n\n/** @public */\nexport function tooltip(props: TooltipStyleProps): string | undefined {\n // return _scopeClassNames('tooltip')\n return _composeClassNames(props.className, root)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {root} from './breadcrumbs.css'\n\n/** @public */\nexport function breadcrumbs(props: {className?: string}): string | undefined {\n return _composeClassNames(props.className, root)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {inset} from '../../props/inset'\nimport {\n card,\n container,\n content,\n footer,\n header,\n root,\n scroller,\n scrollerShadowBottom,\n scrollerShadowTop,\n} from './dialog.css'\n\n/** @public */\nexport function dialog(props: {className?: string}): string | undefined {\n return _composeClassNames(props.className, root, inset({inset: 0}))\n}\n\n/** @public */\nexport function dialogCard(): string | undefined {\n return card\n}\n\n/** @public */\nexport function dialogContainer(): string | undefined {\n return container\n}\n\n/** @public */\nexport function dialogHeader(): string | undefined {\n return header\n}\n\n/** @public */\nexport function dialogContent(): string | undefined {\n return content\n}\n\n/** @public */\nexport function dialogScroller(): string | undefined {\n return scroller\n}\n\n/** @public */\nexport function dialogScrollerShadowTop(): string | undefined {\n return scrollerShadowTop\n}\n\n/** @public */\nexport function dialogScrollerShadowBottom(): string | undefined {\n return scrollerShadowBottom\n}\n\n/** @public */\nexport function dialogFooter(): string | undefined {\n return footer\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {divider, root} from './menu.css'\n\n/** @public */\nexport function menu(props: {className?: string}) {\n return _composeClassNames(props.className, root)\n}\n\n/** @public */\nexport function menuDivider(props: {className?: string}) {\n return _composeClassNames(props.className, divider)\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {_responsiveClassName} from '../../_responsiveClassName'\nimport {flex} from '../../props/flex'\nimport {margin} from '../../props/margin'\nimport {radius} from '../../props/radius'\nimport {codeScale, font, headingScale, labelScale, root, textScale} from './skeleton.css'\nimport type {\n CodeSkeletonStyleProps,\n HeadingSkeletonStyleProps,\n LabelSkeletonStyleProps,\n SkeletonStyleProps,\n TextSkeletonStyleProps,\n} from './types'\n\n/** @beta */\nexport function skeleton(props: SkeletonStyleProps): string | undefined {\n return _composeClassNames(props.className, root, flex(props), radius(props), margin(props))\n}\n\n/** @beta */\nexport function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined {\n return _composeClassNames(props.className, font, _responsiveClassName(codeScale, props.size))\n}\n\n/** @beta */\nexport function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined {\n return _composeClassNames(props.className, font, _responsiveClassName(headingScale, props.size))\n}\n\n/** @beta */\nexport function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined {\n return _composeClassNames(props.className, font, _responsiveClassName(labelScale, props.size))\n}\n\n/** @beta */\nexport function textSkeleton(props: TextSkeletonStyleProps): string | undefined {\n return _composeClassNames(props.className, font, _responsiveClassName(textScale, props.size))\n}\n","import {layer, root} from './toast.css'\n\n/** @public */\nexport function toastLayer() {\n return layer\n}\n\n/** @public */\nexport function toast() {\n return root\n}\n","import {_composeClassNames} from '../../_composeClassNames'\nimport {item} from './tree.css'\n\n/** @beta */\nexport function treeItem(props: {className?: string}) {\n return _composeClassNames(props.className, item)\n}\n","import {type ThemeBoxShadow} from '@sanity/ui/theme'\n\n/** @internal */\nexport function rem(value: number): string {\n if (value === 0) return '0'\n\n return `${value / 16}rem`\n}\n\n/** @internal */\nexport function px(value: number): string {\n if (value === 0) return '0'\n\n return `${value}px`\n}\n\n/** @internal */\nexport function toBoxShadow(value: ThemeBoxShadow | undefined): string {\n if (!value) return 'none'\n\n return value.map((n) => px(n)).join(' ')\n}\n"],"names":["BREAKPOINTS","_responsiveClassName","rules","_value","options","value","undefined","valueWhenTrue","classNames","_index","Object","keys","index","Number","valueAtIndex","rule","push","join","alignItems","props","_getClassNames","map","n","trim","filter","Boolean","split","_composeClassNames","unique","array","Array","from","Set","border","borderOptions","borderTopOptions","borderTop","borderRightOptions","borderRight","borderBottomOptions","borderBottom","borderLeftOptions","borderLeft","boxSizing","display","flex","flexDirection","flexWrap","font","root","weights","weight","gap","gapOptions","gapXOptions","gapX","gapYOptions","gapY","gridAutoColumns","autoCols","gridAutoFlow","autoFlow","gridAutoRows","autoRows","gridColumn","column","gridColumnEnd","columnEnd","gridColumnStart","columnStart","gridRow","row","gridRowEnd","rowEnd","gridRowStart","rowStart","gridTemplateColumns","columns","gridTemplateRows","rows","height","inset","insetOptions","insetTopOptions","insetTop","insetRightOptions","insetRight","insetBottomOptions","insetBottom","insetLeftOptions","insetLeft","justifyContent","margin","marginOptions","marginXOptions","marginX","marginYOptions","marginY","marginTopOptions","marginTop","marginRightOptions","marginRight","marginBottomOptions","marginBottom","marginLeftOptions","marginLeft","maxWidth","minHeight","minWidth","outline","overflow","padding","paddingOptions","paddingXOptions","paddingX","paddingYOptions","paddingY","paddingTopOptions","paddingTop","paddingRightOptions","paddingRight","paddingBottomOptions","paddingBottom","paddingLeftOptions","paddingLeft","pointerEvents","position","radius","shadow","textAlign","textOverflow","width","_arrow","_arrowSvg","svg","_arrowStroke","stroke","_arrowStrokeMask","strokeMask","_arrowShape","fill","_input","fontSize","_inputElement","element","_inputPresentation","presentation","_selectable","className","tones","tone","avatar","colors","color","scale","size","avatarArrow","arrow","avatarArrowSvg","arrowSvg","avatarInitials","initials","avatarImage","image","avatarImageOutline","imageOutline","avatarCounter","counter","avatarStack","stack","badge","box","muted","sizing","button","modes","mode","buttonLoadingBox","loadingBox","card","scheme","schemes","checkbox","checkboxInput","input","checkboxPresentation","code","container","heading","sizes","align","kbd","label","popover","popoverCard","radio","radioInput","radioPresentation","themeClassName","_root","select","selectPresentation","spinner","animatedSpinnerIcon","spinnerIcon","srOnly","_switch","_switchElement","_switchPresentation","_switchThumb","thumb","_switchTrack","track","text","textArea","textInput","textInputPrefix","prefix","textInputElement","textInputSuffix","suffix","tooltip","breadcrumbs","dialog","dialogCard","dialogContainer","dialogHeader","header","dialogContent","content","dialogScroller","scroller","dialogScrollerShadowTop","scrollerShadowTop","dialogScrollerShadowBottom","scrollerShadowBottom","dialogFooter","footer","menu","menuDivider","divider","skeleton","codeSkeleton","codeScale","headingSkeleton","headingScale","labelSkeleton","labelScale","textSkeleton","textScale","toastLayer","layer","toast","treeItem","item","rem","px","toBoxShadow"],"mappings":";AACO,MAAMA,cAAc;AAAA,EACzB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,E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G3P,OAAuB;AACxC,SAAIA,UAAU,IAAU,MAEjB,GAAGA,KAAK;AACjB;AAGO,SAAS4P,YAAY5P,OAA2C;AAChEA,SAAAA,QAEEA,MAAMgB,IAAKC,CAAM0O,MAAAA,GAAG1O,CAAC,CAAC,EAAEL,KAAK,GAAG,IAFpB;AAGrB;"}
|
package/dist/index.cjs
CHANGED
|
@@ -177,7 +177,7 @@ function Autocomplete(props) {
|
|
|
177
177
|
value
|
|
178
178
|
} = state, defaultRenderOption = react.useCallback(({
|
|
179
179
|
value: value_0
|
|
180
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.
|
|
180
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Selectable, { as: "button", padding: paddingProp, radius: 2, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { size: fontSize, textOverflow: "ellipsis", children: value_0 }) }), [fontSize, paddingProp]), renderOption = typeof renderOptionProp == "function" ? renderOptionProp : defaultRenderOption, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = react.useRef(null), resultsPopoverElementRef = react.useRef(null), inputElementRef = react.useRef(null), listBoxElementRef = react.useRef(null), listFocusedRef = react.useRef(!1), valueRef = react.useRef(value), valuePropRef = react.useRef(valueProp), popoverMouseWithinRef = react.useRef(!1);
|
|
181
181
|
react.useImperativeHandle(forwardedRef, () => inputElementRef.current);
|
|
182
182
|
const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : _visualEditing.EMPTY_ARRAY, padding = _visualEditing.useResponsiveProp(paddingProp), currentOption = react.useMemo(() => value !== null ? options.find((o) => o.value === value) : void 0, [options, value]), filteredOptions = react.useMemo(() => options.filter((option) => query ? filterOption(query, option) : !0), [filterOption, options, query]), filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null, handleRootBlur = react.useCallback((event) => {
|
|
183
183
|
setTimeout(() => {
|
|
@@ -743,7 +743,7 @@ function TabPanel(props) {
|
|
|
743
743
|
let t3;
|
|
744
744
|
return $[5] !== as || $[6] !== children || $[7] !== rest || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { "data-ui": "TabPanel", ...rest, as, role: "tabpanel", tabIndex: t2, children }), $[5] = as, $[6] = children, $[7] = rest, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
745
745
|
}
|
|
746
|
-
const DEFAULT_TOAST_ELEMENT = "li", ROLES = {
|
|
746
|
+
const DEFAULT_TOAST_ELEMENT = "li", LONG_ENOUGH_BUT_NOT_TOO_LONG = 1e3 * 60 * 60 * 24 * 24, ROLES = {
|
|
747
747
|
error: "alert",
|
|
748
748
|
warning: "alert",
|
|
749
749
|
success: "alert",
|
|
@@ -760,65 +760,61 @@ const DEFAULT_TOAST_ELEMENT = "li", ROLES = {
|
|
|
760
760
|
info: "neutral"
|
|
761
761
|
};
|
|
762
762
|
function Toast(props) {
|
|
763
|
-
const $ = compilerRuntime.c(
|
|
764
|
-
let closable, description, onClose, rest, status, t1, t2, title;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
...t102
|
|
777
|
-
} = t0;
|
|
778
|
-
t1 = t32, closable = t42, description = t52, onClose = t62, t2 = t72, title = t82, status = t92, rest = t102, $[0] = t0, $[1] = closable, $[2] = description, $[3] = onClose, $[4] = rest, $[5] = status, $[6] = t1, $[7] = t2, $[8] = title;
|
|
779
|
-
} else
|
|
780
|
-
closable = $[1], description = $[2], onClose = $[3], rest = $[4], status = $[5], t1 = $[6], t2 = $[7], title = $[8];
|
|
763
|
+
const $ = compilerRuntime.c(42), t0 = props;
|
|
764
|
+
let closable, description, duration, onClose, rest, status, t1, t2, title;
|
|
765
|
+
$[0] !== t0 ? ({
|
|
766
|
+
as: t1,
|
|
767
|
+
closable,
|
|
768
|
+
description,
|
|
769
|
+
duration,
|
|
770
|
+
onClose,
|
|
771
|
+
radius: t2,
|
|
772
|
+
title,
|
|
773
|
+
status,
|
|
774
|
+
...rest
|
|
775
|
+
} = t0, $[0] = t0, $[1] = closable, $[2] = description, $[3] = duration, $[4] = onClose, $[5] = rest, $[6] = status, $[7] = t1, $[8] = t2, $[9] = title) : (closable = $[1], description = $[2], duration = $[3], onClose = $[4], rest = $[5], status = $[6], t1 = $[7], t2 = $[8], title = $[9]);
|
|
781
776
|
const as = t1 === void 0 ? DEFAULT_TOAST_ELEMENT : t1, radius = t2 === void 0 ? 3 : t2, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status", visualDuration = _visualEditing.usePrefersReducedMotion() ? 0 : 0.26;
|
|
782
777
|
let t3;
|
|
783
|
-
$[
|
|
778
|
+
$[10] !== visualDuration ? (t3 = visualDuration ? {
|
|
784
779
|
type: "spring",
|
|
785
780
|
visualDuration,
|
|
786
781
|
bounce: 0.25
|
|
787
782
|
} : {
|
|
788
783
|
duration: 0
|
|
789
|
-
}, $[
|
|
790
|
-
const transition = t3;
|
|
784
|
+
}, $[10] = visualDuration, $[11] = t3) : t3 = $[11];
|
|
785
|
+
const transition = t3, hasDuration = duration && isFinite(duration) && duration < LONG_ENOUGH_BUT_NOT_TOO_LONG;
|
|
791
786
|
let t4;
|
|
792
|
-
$[
|
|
787
|
+
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t4 = ["hidden", "initial"], $[12] = t4) : t4 = $[12];
|
|
793
788
|
const initial = t4;
|
|
794
789
|
let t5;
|
|
795
|
-
$[
|
|
790
|
+
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t5 = ["visible", "slideIn"], $[13] = t5) : t5 = $[13];
|
|
796
791
|
const animate = t5;
|
|
797
792
|
let t6;
|
|
798
|
-
$[
|
|
793
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t6 = ["hidden", "slideOut"], $[14] = t6) : t6 = $[14];
|
|
799
794
|
const exit = t6;
|
|
800
795
|
let t7;
|
|
801
|
-
$[
|
|
802
|
-
|
|
803
|
-
$[15] !== title ? (t8 = title && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { size: 1, weight: "medium", children: title }), $[15] = title, $[16] = t8) : t8 = $[16];
|
|
796
|
+
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t7 = css.toast(), $[15] = t7) : t7 = $[15];
|
|
797
|
+
const t8 = hasDuration ? "" : void 0;
|
|
804
798
|
let t9;
|
|
805
|
-
$[
|
|
799
|
+
$[16] !== title ? (t9 = title && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { size: 1, weight: "medium", children: title }), $[16] = title, $[17] = t9) : t9 = $[17];
|
|
806
800
|
let t10;
|
|
807
|
-
$[
|
|
808
|
-
t8,
|
|
809
|
-
t9
|
|
810
|
-
] }) }), $[20] = t8, $[21] = t9, $[22] = t10) : t10 = $[22];
|
|
801
|
+
$[18] !== description || $[19] !== transition ? (t10 = description && /* @__PURE__ */ jsxRuntime.jsx(MotionText, { muted: !0, size: 1, variants: content, transition, children: description }), $[18] = description, $[19] = transition, $[20] = t10) : t10 = $[20];
|
|
811
802
|
let t11;
|
|
812
|
-
$[
|
|
813
|
-
|
|
814
|
-
|
|
803
|
+
$[21] !== t10 || $[22] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Flex, { flex: 1, overflowX: "auto", padding: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Stack, { gap: 3, children: [
|
|
804
|
+
t9,
|
|
805
|
+
t10
|
|
806
|
+
] }) }), $[21] = t10, $[22] = t9, $[23] = t11) : t11 = $[23];
|
|
815
807
|
let t12;
|
|
816
|
-
$[
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
] }), $[27] = t10, $[28] = t11, $[29] = transition, $[30] = t12) : t12 = $[30];
|
|
808
|
+
$[24] !== buttonTone || $[25] !== closable || $[26] !== onClose ? (t12 = closable && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { padding: 1, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Button, { as: "button", icon: icons.CloseIcon, mode: "bleed", padding: 2, tone: buttonTone, onClick: onClose, style: {
|
|
809
|
+
verticalAlign: "top"
|
|
810
|
+
} }) }), $[24] = buttonTone, $[25] = closable, $[26] = onClose, $[27] = t12) : t12 = $[27];
|
|
820
811
|
let t13;
|
|
821
|
-
|
|
812
|
+
$[28] !== t11 || $[29] !== t12 || $[30] !== transition ? (t13 = /* @__PURE__ */ jsxRuntime.jsxs(MotionFlex, { align: "flex-start", variants: content, transition, children: [
|
|
813
|
+
t11,
|
|
814
|
+
t12
|
|
815
|
+
] }), $[28] = t11, $[29] = t12, $[30] = transition, $[31] = t13) : t13 = $[31];
|
|
816
|
+
let t14;
|
|
817
|
+
return $[32] !== as || $[33] !== cardTone || $[34] !== radius || $[35] !== rest || $[36] !== role || $[37] !== t13 || $[38] !== t8 || $[39] !== transition || $[40] !== visualDuration ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(MotionCard, { as, className: t7, "data-ui": "Toast", role, ...rest, custom: visualDuration, "data-has-duration": t8, radius, shadow: 2, tone: cardTone, layout: "position", variants: container, initial, animate, exit, transition, position: "relative", children: t13 }), $[32] = as, $[33] = cardTone, $[34] = radius, $[35] = rest, $[36] = role, $[37] = t13, $[38] = t8, $[39] = transition, $[40] = visualDuration, $[41] = t14) : t14 = $[41], t14;
|
|
822
818
|
}
|
|
823
819
|
const container = {
|
|
824
820
|
initial: {
|
|
@@ -909,16 +905,19 @@ function ToastProvider(props) {
|
|
|
909
905
|
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
|
|
910
906
|
version: 0,
|
|
911
907
|
push: (params) => {
|
|
912
|
-
const id = params.id
|
|
908
|
+
const id = params.id ?? generateToastId(), duration = params.duration ?? 5e3;
|
|
913
909
|
return react.startTransition(() => {
|
|
914
910
|
setState((prevState) => {
|
|
915
911
|
if (duration === 0.01)
|
|
916
912
|
return prevState.filter((toast) => toast.id !== id);
|
|
917
|
-
const dismiss = () =>
|
|
913
|
+
const dismiss = () => {
|
|
914
|
+
react.startTransition(() => {
|
|
915
|
+
timeoutId && clearTimeout(timeoutId), setState((currentState) => currentState.filter((toast_0) => toast_0.id !== id));
|
|
916
|
+
});
|
|
917
|
+
}, timeoutId = setTimeout(dismiss, duration);
|
|
918
918
|
return [...prevState.filter((toast_1) => toast_1.id !== id), {
|
|
919
919
|
dismiss,
|
|
920
920
|
id,
|
|
921
|
-
updatedAt: Date.now(),
|
|
922
921
|
params: {
|
|
923
922
|
...params,
|
|
924
923
|
duration
|
|
@@ -941,10 +940,9 @@ function _temp$2(t0) {
|
|
|
941
940
|
const {
|
|
942
941
|
dismiss: dismiss_0,
|
|
943
942
|
id: id_0,
|
|
944
|
-
params: params_0
|
|
945
|
-
updatedAt
|
|
943
|
+
params: params_0
|
|
946
944
|
} = t0;
|
|
947
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration
|
|
945
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }, id_0);
|
|
948
946
|
}
|
|
949
947
|
function useToast() {
|
|
950
948
|
const value = react.useContext(ToastContext);
|
|
@@ -1866,6 +1864,62 @@ function Radio(props) {
|
|
|
1866
1864
|
t9
|
|
1867
1865
|
] }), $[21] = style, $[22] = t3, $[23] = t8, $[24] = t10) : t10 = $[24], t10;
|
|
1868
1866
|
}
|
|
1867
|
+
const DEFAULT_ROOT_ELEMENT = "html";
|
|
1868
|
+
function Root(props) {
|
|
1869
|
+
const $ = compilerRuntime.c(39), t0 = props;
|
|
1870
|
+
let children, className, forwardedRef, rest, t1, t2, t3, t4;
|
|
1871
|
+
$[0] !== t0 ? ({
|
|
1872
|
+
as: t1,
|
|
1873
|
+
children,
|
|
1874
|
+
className,
|
|
1875
|
+
height: t2,
|
|
1876
|
+
ref: forwardedRef,
|
|
1877
|
+
scheme: t3,
|
|
1878
|
+
tone: t4,
|
|
1879
|
+
...rest
|
|
1880
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = forwardedRef, $[4] = rest, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4) : (children = $[1], className = $[2], forwardedRef = $[3], rest = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8]);
|
|
1881
|
+
const as = t1 === void 0 ? DEFAULT_ROOT_ELEMENT : t1, height = t2 === void 0 ? "fill" : t2, scheme = t3 === void 0 ? "light" : t3, tone = t4 === void 0 ? "transparent" : t4, ref = react.useRef(null);
|
|
1882
|
+
let t5;
|
|
1883
|
+
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[9] = t5) : t5 = $[9], react.useImperativeHandle(forwardedRef, t5);
|
|
1884
|
+
const [portalElement, setPortalElement] = react.useState(null), [boundaryElement, setBoundaryElement] = react.useState(null);
|
|
1885
|
+
let t6;
|
|
1886
|
+
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t6 = (el) => {
|
|
1887
|
+
setBoundaryElement(el), ref.current = el;
|
|
1888
|
+
}, $[10] = t6) : t6 = $[10];
|
|
1889
|
+
const handleRef = t6;
|
|
1890
|
+
let t7;
|
|
1891
|
+
$[11] !== children || $[12] !== portalElement ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.PortalProvider, { element: portalElement, children }), $[11] = children, $[12] = portalElement, $[13] = t7) : t7 = $[13];
|
|
1892
|
+
let t8;
|
|
1893
|
+
$[14] !== boundaryElement || $[15] !== t7 ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(BoundaryElementProvider, { element: boundaryElement, children: t7 }), $[14] = boundaryElement, $[15] = t7, $[16] = t8) : t8 = $[16];
|
|
1894
|
+
let t9;
|
|
1895
|
+
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsxRuntime.jsx("div", { "data-portal": "", ref: setPortalElement }), $[17] = t9) : t9 = $[17];
|
|
1896
|
+
let t10;
|
|
1897
|
+
$[18] !== t8 ? (t10 = /* @__PURE__ */ jsxRuntime.jsxs(ToastProvider, { children: [
|
|
1898
|
+
t8,
|
|
1899
|
+
t9
|
|
1900
|
+
] }), $[18] = t8, $[19] = t10) : t10 = $[19];
|
|
1901
|
+
let t11;
|
|
1902
|
+
$[20] !== scheme || $[21] !== t10 || $[22] !== tone ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.LayerProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.CardProvider, { scheme, tone, children: t10 }) }), $[20] = scheme, $[21] = t10, $[22] = tone, $[23] = t11) : t11 = $[23];
|
|
1903
|
+
let node = t11;
|
|
1904
|
+
if (as === "html") {
|
|
1905
|
+
let t122;
|
|
1906
|
+
$[24] !== height ? (t122 = css.box({
|
|
1907
|
+
height,
|
|
1908
|
+
margin: 0
|
|
1909
|
+
}), $[24] = height, $[25] = t122) : t122 = $[25];
|
|
1910
|
+
let t132;
|
|
1911
|
+
$[26] !== node || $[27] !== t122 ? (t132 = /* @__PURE__ */ jsxRuntime.jsx("body", { className: t122, children: node }), $[26] = node, $[27] = t122, $[28] = t132) : t132 = $[28], node = t132;
|
|
1912
|
+
}
|
|
1913
|
+
let t12;
|
|
1914
|
+
$[29] !== className || $[30] !== height || $[31] !== scheme || $[32] !== tone ? (t12 = css.root({
|
|
1915
|
+
className,
|
|
1916
|
+
height,
|
|
1917
|
+
scheme,
|
|
1918
|
+
tone
|
|
1919
|
+
}), $[29] = className, $[30] = height, $[31] = scheme, $[32] = tone, $[33] = t12) : t12 = $[33];
|
|
1920
|
+
let t13;
|
|
1921
|
+
return $[34] !== as || $[35] !== node || $[36] !== rest || $[37] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { as, "data-ui": "Root", ...rest, className: t12, ref: handleRef, children: node }), $[34] = as, $[35] = node, $[36] = rest, $[37] = t12, $[38] = t13) : t13 = $[38], t13;
|
|
1922
|
+
}
|
|
1869
1923
|
const DEFAULT_SELECT_ELEMENT = "select";
|
|
1870
1924
|
function Select(props) {
|
|
1871
1925
|
const $ = compilerRuntime.c(38), t0 = props;
|
|
@@ -2337,6 +2391,7 @@ exports.DEFAULT_INLINE_ELEMENT = DEFAULT_INLINE_ELEMENT;
|
|
|
2337
2391
|
exports.DEFAULT_LABEL_ELEMENT = DEFAULT_LABEL_ELEMENT;
|
|
2338
2392
|
exports.DEFAULT_LABEL_SKELETON_ELEMENT = DEFAULT_LABEL_SKELETON_ELEMENT;
|
|
2339
2393
|
exports.DEFAULT_RADIO_ELEMENT = DEFAULT_RADIO_ELEMENT;
|
|
2394
|
+
exports.DEFAULT_ROOT_ELEMENT = DEFAULT_ROOT_ELEMENT;
|
|
2340
2395
|
exports.DEFAULT_SELECT_ELEMENT = DEFAULT_SELECT_ELEMENT;
|
|
2341
2396
|
exports.DEFAULT_SKELETON_ELEMENT = DEFAULT_SKELETON_ELEMENT;
|
|
2342
2397
|
exports.DEFAULT_SR_ONLY_ELEMENT = DEFAULT_SR_ONLY_ELEMENT;
|
|
@@ -2360,6 +2415,7 @@ exports.Label = Label;
|
|
|
2360
2415
|
exports.LabelSkeleton = LabelSkeleton;
|
|
2361
2416
|
exports.MenuButton = MenuButton;
|
|
2362
2417
|
exports.Radio = Radio;
|
|
2418
|
+
exports.Root = Root;
|
|
2363
2419
|
exports.Select = Select;
|
|
2364
2420
|
exports.Skeleton = Skeleton;
|
|
2365
2421
|
exports.SrOnly = SrOnly;
|