@sanity/ui 3.0.0-static.19 → 3.0.0-static.20
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/_chunks-cjs/_visual-editing.cjs +109 -112
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-cjs/buildCommand.cjs +30 -24
- package/dist/_chunks-cjs/buildCommand.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +110 -113
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/css.cjs +379 -358
- package/dist/css.cjs.map +1 -1
- package/dist/css.d.cts +45 -10
- package/dist/css.d.ts +45 -10
- package/dist/css.js +379 -358
- package/dist/css.js.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/theme.cjs +89 -64
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +28 -2
- package/dist/theme.d.ts +28 -2
- package/dist/theme.js +89 -64
- package/dist/theme.js.map +1 -1
- package/dist/ui-system.css +1236 -801
- package/dist/ui-system.min.css +1 -1
- package/dist/ui-theme.css +413 -82
- package/dist/ui-theme.min.css +1 -1
- package/dist/ui.css +1649 -883
- package/dist/ui.min.css +1 -1
- package/exports/_visual-editing.ts +0 -1
- package/package.json +6 -6
- package/src/cli/buildCommand.ts +48 -41
- package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/custom.tsx +12 -11
- package/src/core/components/autocomplete/__workshop__/example.tsx +13 -12
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +53 -54
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -2
- package/src/core/components/dialog/__workshop__/autoFocus.tsx +2 -2
- package/src/core/components/dialog/__workshop__/onScroll.tsx +16 -4
- package/src/core/components/dialog/__workshop__/position.tsx +3 -3
- package/src/core/components/dialog/__workshop__/props.tsx +6 -6
- package/src/core/components/menu/__workshop__/menuButton.tsx +3 -3
- package/src/core/components/menu/__workshop__/tones.tsx +3 -3
- package/src/core/components/skeleton/__workshop__/delay.tsx +2 -2
- package/src/core/components/skeleton/__workshop__/skeleton.tsx +2 -2
- package/src/core/components/tab/__workshop__/example.tsx +1 -1
- package/src/core/components/toast/__workshop__/toast.tsx +5 -5
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/stack.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
- package/src/core/primitives/badge/__workshop__/props.tsx +5 -8
- package/src/core/primitives/box/__workshop__/props.tsx +2 -2
- package/src/core/primitives/box/box.tsx +2 -0
- package/src/core/primitives/button/__workshop__/props.tsx +17 -19
- package/src/core/primitives/button/__workshop__/stacked.tsx +12 -12
- package/src/core/primitives/card/__workshop__/asButton.tsx +1 -1
- package/src/core/primitives/card/__workshop__/interactive.tsx +2 -2
- package/src/core/primitives/card/__workshop__/props.tsx +11 -11
- package/src/core/primitives/card/__workshop__/selected.tsx +2 -2
- package/src/core/primitives/checkbox/__workshop__/props.tsx +5 -5
- package/src/core/primitives/code/__workshop__/props.tsx +4 -7
- package/src/core/primitives/code/code.tsx +1 -1
- package/src/core/primitives/container/__workshop__/example.tsx +2 -2
- package/src/core/primitives/flex/__workshop__/example.tsx +2 -2
- package/src/core/primitives/heading/__workshop__/plain.tsx +11 -7
- package/src/core/primitives/heading/heading.tsx +1 -1
- package/src/core/primitives/inline/__workshop__/plain.tsx +2 -5
- package/src/core/primitives/label/__workshop__/plain.tsx +7 -8
- package/src/core/primitives/label/label.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +6 -6
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +3 -3
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +3 -1
- package/src/core/primitives/radio/__workshop__/example.tsx +2 -2
- package/src/core/primitives/radio/__workshop__/plain.tsx +3 -3
- package/src/core/primitives/select/__workshop__/plain.tsx +5 -8
- package/src/core/primitives/spinner/__workshop__/Props.tsx +3 -3
- package/src/core/primitives/stack/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/text/__workshop__/colored.tsx +2 -2
- package/src/core/primitives/text/__workshop__/example.tsx +8 -11
- package/src/core/primitives/textArea/__workshop__/plain.tsx +11 -12
- package/src/core/primitives/textArea/textArea.tsx +10 -7
- package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/plain.tsx +30 -18
- package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/typed.tsx +2 -2
- package/src/core/primitives/textInput/textInput.tsx +11 -20
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +3 -3
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/props.tsx +4 -4
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/tooltipLayer.tsx +1 -3
- package/src/css/_system.style.ts +2 -0
- package/src/css/aspects/font/font.style.ts +9 -8
- package/src/css/aspects/index.ts +1 -0
- package/src/css/aspects/margin/margin.style.ts +13 -0
- package/src/css/aspects/margin/types.ts +12 -7
- package/src/css/aspects/minHeight/index.ts +2 -0
- package/src/css/aspects/minHeight/minHeight.style.ts +9 -0
- package/src/css/aspects/minHeight/minHeight.ts +8 -0
- package/src/css/aspects/minHeight/types.ts +9 -0
- package/src/css/components/skeleton/skeleton.style.ts +7 -10
- package/src/css/primitives/_input/_input.style.ts +30 -51
- package/src/css/primitives/_selectable/_selectable.style.ts +2 -3
- package/src/css/primitives/box/box.style.ts +0 -3
- package/src/css/primitives/box/box.ts +2 -0
- package/src/css/primitives/box/types.ts +2 -0
- package/src/css/primitives/card/card.style.ts +3 -0
- package/src/css/primitives/code/code.style.ts +1 -0
- package/src/css/primitives/heading/heading.style.ts +1 -0
- package/src/css/primitives/label/label.style.ts +1 -0
- package/src/css/primitives/text/text.style.ts +1 -0
- package/src/css/primitives/textArea/textArea.style.ts +1 -3
- package/src/css/primitives/textInput/textInput.style.ts +10 -18
- package/src/css/primitives/textInput/textInput.ts +15 -0
- package/src/css/primitives/tooltip/tooltip.style.ts +0 -13
- package/src/css/primitives/tooltip/tooltip.ts +0 -5
- package/src/css/theme/resolveTheme.ts +29 -18
- package/src/theme/v0/font.ts +0 -1
- package/src/theme/v2/defaults/fonts.ts +0 -1
- package/src/theme/v3/_parseColorToken.ts +0 -5
- package/src/theme/v3/buildTheme_v3.ts +2 -2
- package/src/theme/v3/defaultFonts.ts +250 -0
- package/src/theme/v3/defaultTokens.ts +39 -35
- package/src/theme/v3/types.ts +35 -2
- package/src/theme/versioning/v3_v2.ts +1 -0
- package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
- package/src/css/primitives/_input/__workshop__/index.ts +0 -14
- /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/apiStore.ts +0 -0
- /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/countries.ts +0 -0
|
@@ -7,59 +7,65 @@ var cssnano__default = /* @__PURE__ */ _interopDefaultCompat(cssnano), fs__defau
|
|
|
7
7
|
async function buildCommand(options) {
|
|
8
8
|
const cwd = options.cwd ?? process.cwd(), outDir = options.outDir ?? path__default.default.resolve(cwd, "dist");
|
|
9
9
|
await buildTheme({
|
|
10
|
+
cwd,
|
|
10
11
|
outDir
|
|
11
12
|
}), await buildSystem({
|
|
13
|
+
cwd,
|
|
12
14
|
outDir
|
|
13
15
|
}), await buildAll({
|
|
16
|
+
cwd,
|
|
14
17
|
outDir
|
|
15
18
|
});
|
|
16
19
|
}
|
|
17
|
-
async function minify(css2) {
|
|
18
|
-
return postcss__default.default([cssnano__default.default()]).process(css2, {
|
|
19
|
-
from: void 0
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
async function prettify(css2) {
|
|
23
|
-
const options = await prettier.resolveConfig(__dirname);
|
|
24
|
-
if (!options)
|
|
25
|
-
throw new Error("Prettier config not found");
|
|
26
|
-
return prettier.format(css2, {
|
|
27
|
-
...options,
|
|
28
|
-
filepath: "index.css",
|
|
29
|
-
printWidth: 9999
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function prettySize(str) {
|
|
33
|
-
return `${prettyBytes__default.default(str.length)} / ${prettyBytes__default.default(gzipSize.gzipSizeSync(str))}`;
|
|
34
|
-
}
|
|
35
20
|
async function buildTheme(options) {
|
|
36
21
|
const {
|
|
22
|
+
cwd,
|
|
37
23
|
outDir
|
|
38
|
-
} = options, css$1 = await prettify(css._compileTheme()), minified = await minify(css$1), prettified = await prettify(css$1);
|
|
24
|
+
} = options, css$1 = await prettify(css._compileTheme()), minified = await minify(css$1), prettified = await prettify(css$1), cssFile = path__default.default.resolve(outDir, "ui-theme.css"), minCssFile = path__default.default.resolve(outDir, "ui-theme.min.css");
|
|
39
25
|
await fs__default.default.mkdir(outDir, {
|
|
40
26
|
recursive: !0
|
|
41
|
-
}), await fs__default.default.writeFile(
|
|
27
|
+
}), await fs__default.default.writeFile(cssFile, prettified, "utf-8"), await fs__default.default.writeFile(minCssFile, minified.css, "utf-8"), console.log(`- built ${path__default.default.relative(cwd, cssFile)} (${prettySize(prettified)})`), console.log(`- built ${path__default.default.relative(cwd, minCssFile)} (${prettySize(minified.css)})`);
|
|
42
28
|
}
|
|
43
29
|
async function buildSystem(options) {
|
|
44
30
|
const {
|
|
31
|
+
cwd,
|
|
45
32
|
outDir
|
|
46
|
-
} = options, css$1 = await prettify(css._compileSystem()), minified = await minify(css$1), prettified = await prettify(css$1);
|
|
33
|
+
} = options, css$1 = await prettify(css._compileSystem()), minified = await minify(css$1), prettified = await prettify(css$1), cssFile = path__default.default.resolve(outDir, "ui-system.css"), minCssFile = path__default.default.resolve(outDir, "ui-system.min.css");
|
|
47
34
|
await fs__default.default.mkdir(outDir, {
|
|
48
35
|
recursive: !0
|
|
49
|
-
}), await fs__default.default.writeFile(
|
|
36
|
+
}), await fs__default.default.writeFile(cssFile, prettified, "utf-8"), await fs__default.default.writeFile(minCssFile, minified.css, "utf-8"), console.log(`- built ${path__default.default.relative(cwd, cssFile)} (${prettySize(prettified)})`), console.log(`- built ${path__default.default.relative(cwd, minCssFile)} (${prettySize(minified.css)})`);
|
|
50
37
|
}
|
|
51
38
|
async function buildAll(options) {
|
|
52
39
|
const {
|
|
40
|
+
cwd,
|
|
53
41
|
outDir
|
|
54
42
|
} = options, css$1 = await prettify([`/* @sanity/ui/ui-theme.css */
|
|
55
43
|
`, css._compileTheme(), `
|
|
56
44
|
|
|
57
45
|
/* @sanity/ui/ui-system.css */
|
|
58
46
|
`, css._compileSystem(), `
|
|
59
|
-
`].join("")), minified = await minify(css$1), prettified = await prettify(css$1);
|
|
47
|
+
`].join("")), minified = await minify(css$1), prettified = await prettify(css$1), cssFile = path__default.default.resolve(outDir, "ui.css"), minCssFile = path__default.default.resolve(outDir, "ui.min.css");
|
|
60
48
|
await fs__default.default.mkdir(outDir, {
|
|
61
49
|
recursive: !0
|
|
62
|
-
}), await fs__default.default.writeFile(
|
|
50
|
+
}), await fs__default.default.writeFile(cssFile, prettified, "utf-8"), await fs__default.default.writeFile(minCssFile, minified.css, "utf-8"), console.log(`- built ${path__default.default.relative(cwd, cssFile)} (${prettySize(prettified)})`), console.log(`- built ${path__default.default.relative(cwd, minCssFile)} (${prettySize(minified.css)})`);
|
|
51
|
+
}
|
|
52
|
+
async function minify(css2) {
|
|
53
|
+
return postcss__default.default([cssnano__default.default()]).process(css2, {
|
|
54
|
+
from: void 0
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async function prettify(css2) {
|
|
58
|
+
const options = await prettier.resolveConfig(__dirname);
|
|
59
|
+
if (!options)
|
|
60
|
+
throw new Error("Prettier config not found");
|
|
61
|
+
return prettier.format(css2, {
|
|
62
|
+
...options,
|
|
63
|
+
filepath: "index.css",
|
|
64
|
+
printWidth: 9999
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function prettySize(str) {
|
|
68
|
+
return `${prettyBytes__default.default(str.length)} / ${prettyBytes__default.default(gzipSize.gzipSizeSync(str))}`;
|
|
63
69
|
}
|
|
64
70
|
exports.buildCommand = buildCommand;
|
|
65
71
|
//# sourceMappingURL=buildCommand.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildCommand.cjs","sources":["../../src/cli/buildCommand.ts"],"sourcesContent":["/* eslint-disable no-console */\n\nimport {_compileSystem, _compileTheme} from '@sanity/ui/css'\nimport cssnano from 'cssnano'\nimport fs from 'fs/promises'\nimport {gzipSizeSync} from 'gzip-size'\nimport path from 'path'\nimport postcss from 'postcss'\nimport {format, resolveConfig} from 'prettier'\nimport prettyBytes from 'pretty-bytes'\n\nexport async function buildCommand(options: {cwd?: string; outDir?: string}): Promise<void> {\n const cwd = options.cwd ?? process.cwd()\n const outDir = options.outDir ?? path.resolve(cwd, 'dist')\n\n await buildTheme({outDir})\n await buildSystem({outDir})\n await buildAll({
|
|
1
|
+
{"version":3,"file":"buildCommand.cjs","sources":["../../src/cli/buildCommand.ts"],"sourcesContent":["/* eslint-disable no-console */\n\nimport {_compileSystem, _compileTheme} from '@sanity/ui/css'\nimport cssnano from 'cssnano'\nimport fs from 'fs/promises'\nimport {gzipSizeSync} from 'gzip-size'\nimport path from 'path'\nimport postcss from 'postcss'\nimport {format, resolveConfig} from 'prettier'\nimport prettyBytes from 'pretty-bytes'\n\nexport async function buildCommand(options: {cwd?: string; outDir?: string}): Promise<void> {\n const cwd = options.cwd ?? process.cwd()\n const outDir = options.outDir ?? path.resolve(cwd, 'dist')\n\n await buildTheme({cwd, outDir})\n await buildSystem({cwd, outDir})\n await buildAll({cwd, outDir})\n}\n\n// @sanity/ui/ui-theme.css\nasync function buildTheme(options: {cwd: string; outDir: string}) {\n const {cwd, outDir} = options\n const css = await prettify(_compileTheme())\n const minified = await minify(css)\n const prettified = await prettify(css)\n\n const cssFile = path.resolve(outDir, 'ui-theme.css')\n const minCssFile = path.resolve(outDir, 'ui-theme.min.css')\n\n await fs.mkdir(outDir, {recursive: true})\n await fs.writeFile(cssFile, prettified, 'utf-8')\n await fs.writeFile(minCssFile, minified.css, 'utf-8')\n\n console.log(`- built ${path.relative(cwd, cssFile)} (${prettySize(prettified)})`)\n console.log(`- built ${path.relative(cwd, minCssFile)} (${prettySize(minified.css)})`)\n}\n\n// @sanity/ui/ui-system.css\nasync function buildSystem(options: {cwd: string; outDir: string}) {\n const {cwd, outDir} = options\n const css = await prettify(_compileSystem())\n const minified = await minify(css)\n const prettified = await prettify(css)\n\n const cssFile = path.resolve(outDir, 'ui-system.css')\n const minCssFile = path.resolve(outDir, 'ui-system.min.css')\n\n await fs.mkdir(outDir, {recursive: true})\n await fs.writeFile(cssFile, prettified, 'utf-8')\n await fs.writeFile(minCssFile, minified.css, 'utf-8')\n\n console.log(`- built ${path.relative(cwd, cssFile)} (${prettySize(prettified)})`)\n console.log(`- built ${path.relative(cwd, minCssFile)} (${prettySize(minified.css)})`)\n}\n\n// @sanity/ui/ui.css\nasync function buildAll(options: {cwd: string; outDir: string}) {\n const {cwd, outDir} = options\n const css = await prettify(\n [\n `/* @sanity/ui/ui-theme.css */\\n`,\n _compileTheme(),\n `\\n\\n/* @sanity/ui/ui-system.css */\\n`,\n _compileSystem(),\n `\\n`,\n ].join(''),\n )\n\n const minified = await minify(css)\n const prettified = await prettify(css)\n\n const cssFile = path.resolve(outDir, 'ui.css')\n const minCssFile = path.resolve(outDir, 'ui.min.css')\n\n await fs.mkdir(outDir, {recursive: true})\n await fs.writeFile(cssFile, prettified, 'utf-8')\n await fs.writeFile(minCssFile, minified.css, 'utf-8')\n\n console.log(`- built ${path.relative(cwd, cssFile)} (${prettySize(prettified)})`)\n console.log(`- built ${path.relative(cwd, minCssFile)} (${prettySize(minified.css)})`)\n}\n\nasync function minify(css: string) {\n return postcss([cssnano()]).process(css, {from: undefined})\n}\n\nasync function prettify(css: string) {\n const options = await resolveConfig(__dirname)\n\n if (!options) {\n throw new Error('Prettier config not found')\n }\n\n return format(css, {...options, filepath: 'index.css', printWidth: 9999})\n}\n\nfunction prettySize(str: string) {\n return `${prettyBytes(str.length)} / ${prettyBytes(gzipSizeSync(str))}`\n}\n"],"names":["buildCommand","options","cwd","process","outDir","path","resolve","buildTheme","buildSystem","buildAll","css","prettify","_compileTheme","minified","minify","prettified","cssFile","minCssFile","fs","mkdir","recursive","writeFile","console","log","relative","prettySize","_compileSystem","join","postcss","cssnano","from","undefined","resolveConfig","__dirname","Error","format","filepath","printWidth","str","prettyBytes","length","gzipSizeSync"],"mappings":"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"}
|
|
@@ -3,7 +3,7 @@ import { c } from "react-compiler-runtime";
|
|
|
3
3
|
import { getScopedTheme, getTheme_v2 } from "@sanity/ui/theme";
|
|
4
4
|
import { createContext, useContext, useState, useEffect, useDebugValue, useSyncExternalStore, Children, isValidElement, cloneElement, useRef, useImperativeHandle, lazy, Suspense, useMemo, useCallback, useId, useLayoutEffect } from "react";
|
|
5
5
|
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1 } from "styled-components";
|
|
6
|
-
import { BREAKPOINTS, _composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStrokeMask, _arrowStroke, _arrowShape, varNames, srOnly, vars, popoverCard, radio, select, _inputElement, selectPresentation, stack, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, textInput,
|
|
6
|
+
import { BREAKPOINTS, _composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStrokeMask, _arrowStroke, _arrowShape, varNames, srOnly, vars, popoverCard, radio, select, _inputElement, selectPresentation, stack, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, textInput, textInputPrefix, textInputElement, textInputSuffix, tooltip, menu, menuDivider, _selectable } from "@sanity/ui/css";
|
|
7
7
|
import { isValidElementType } from "react-is";
|
|
8
8
|
import { SpinnerIcon, CheckmarkIcon, RemoveIcon, ChevronDownIcon, CloseIcon, ChevronRightIcon } from "@sanity/icons";
|
|
9
9
|
import { detectOverflow, flip, offset, shift, arrow, hide, useFloating, autoUpdate } from "@floating-ui/react-dom";
|
|
@@ -363,8 +363,8 @@ function _temp$5() {
|
|
|
363
363
|
}
|
|
364
364
|
const DEFAULT_BOX_ELEMENT = "div";
|
|
365
365
|
function Box(props) {
|
|
366
|
-
const $ = c(
|
|
367
|
-
let align, autoCols, autoFlow, autoRows, borderBottom, borderLeft, borderRight, borderTop, children, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, outline, overflow, overflowX, overflowY, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, rest, row, rowEnd, rowStart, rows, t1, t2, t3, t4, t5, t6, t7, textAlign, width, wrap;
|
|
366
|
+
const $ = c(130), t0 = props;
|
|
367
|
+
let align, autoCols, autoFlow, autoRows, borderBottom, borderLeft, borderRight, borderTop, children, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, outline, overflow, overflowX, overflowY, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, rest, row, rowEnd, rowStart, rows, t1, t2, t3, t4, t5, t6, t7, t8, textAlign, width, wrap;
|
|
368
368
|
$[0] !== t0 ? ({
|
|
369
369
|
align,
|
|
370
370
|
as: t1,
|
|
@@ -403,13 +403,14 @@ function Box(props) {
|
|
|
403
403
|
marginBottom,
|
|
404
404
|
marginLeft,
|
|
405
405
|
maxWidth,
|
|
406
|
-
|
|
406
|
+
minHeight: t5,
|
|
407
|
+
minWidth: t6,
|
|
407
408
|
muted,
|
|
408
409
|
outline,
|
|
409
410
|
overflow,
|
|
410
411
|
overflowX,
|
|
411
412
|
overflowY,
|
|
412
|
-
padding:
|
|
413
|
+
padding: t7,
|
|
413
414
|
paddingX,
|
|
414
415
|
paddingY,
|
|
415
416
|
paddingTop,
|
|
@@ -423,15 +424,15 @@ function Box(props) {
|
|
|
423
424
|
rows,
|
|
424
425
|
rowStart,
|
|
425
426
|
rowEnd,
|
|
426
|
-
sizing:
|
|
427
|
+
sizing: t8,
|
|
427
428
|
textAlign,
|
|
428
429
|
width,
|
|
429
430
|
wrap,
|
|
430
431
|
...rest
|
|
431
|
-
} = t0, $[0] = t0, $[1] = align, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = borderBottom, $[6] = borderLeft, $[7] = borderRight, $[8] = borderTop, $[9] = children, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = direction, $[16] = flex, $[17] = gap, $[18] = gapX, $[19] = gapY, $[20] = height, $[21] = inset, $[22] = insetBottom, $[23] = insetLeft, $[24] = insetRight, $[25] = insetTop, $[26] = justify, $[27] = marginBottom, $[28] = marginLeft, $[29] = marginRight, $[30] = marginTop, $[31] = marginX, $[32] = marginY, $[33] = maxWidth, $[34] = muted, $[35] = outline, $[36] = overflow, $[37] = overflowX, $[38] = overflowY, $[39] = paddingBottom, $[40] = paddingLeft, $[41] = paddingRight, $[42] = paddingTop, $[43] = paddingX, $[44] = paddingY, $[45] = pointerEvents, $[46] = position, $[47] = radius, $[48] = rest, $[49] = row, $[50] = rowEnd, $[51] = rowStart, $[52] = rows, $[53] = t1, $[54] = t2, $[55] = t3, $[56] = t4, $[57] = t5, $[58] = t6, $[59] = t7, $[60] =
|
|
432
|
-
const Element2 = t1 === void 0 ? DEFAULT_BOX_ELEMENT : t1, border = t2 === void 0 ? !1 : t2, display = t3 === void 0 ? "block" : t3, margin = t4 === void 0 ? 0 : t4,
|
|
433
|
-
let
|
|
434
|
-
$[
|
|
432
|
+
} = t0, $[0] = t0, $[1] = align, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = borderBottom, $[6] = borderLeft, $[7] = borderRight, $[8] = borderTop, $[9] = children, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = direction, $[16] = flex, $[17] = gap, $[18] = gapX, $[19] = gapY, $[20] = height, $[21] = inset, $[22] = insetBottom, $[23] = insetLeft, $[24] = insetRight, $[25] = insetTop, $[26] = justify, $[27] = marginBottom, $[28] = marginLeft, $[29] = marginRight, $[30] = marginTop, $[31] = marginX, $[32] = marginY, $[33] = maxWidth, $[34] = muted, $[35] = outline, $[36] = overflow, $[37] = overflowX, $[38] = overflowY, $[39] = paddingBottom, $[40] = paddingLeft, $[41] = paddingRight, $[42] = paddingTop, $[43] = paddingX, $[44] = paddingY, $[45] = pointerEvents, $[46] = position, $[47] = radius, $[48] = rest, $[49] = row, $[50] = rowEnd, $[51] = rowStart, $[52] = rows, $[53] = t1, $[54] = t2, $[55] = t3, $[56] = t4, $[57] = t5, $[58] = t6, $[59] = t7, $[60] = t8, $[61] = textAlign, $[62] = width, $[63] = wrap) : (align = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], borderBottom = $[5], borderLeft = $[6], borderRight = $[7], borderTop = $[8], children = $[9], className = $[10], column = $[11], columnEnd = $[12], columnStart = $[13], columns = $[14], direction = $[15], flex = $[16], gap = $[17], gapX = $[18], gapY = $[19], height = $[20], inset = $[21], insetBottom = $[22], insetLeft = $[23], insetRight = $[24], insetTop = $[25], justify = $[26], marginBottom = $[27], marginLeft = $[28], marginRight = $[29], marginTop = $[30], marginX = $[31], marginY = $[32], maxWidth = $[33], muted = $[34], outline = $[35], overflow = $[36], overflowX = $[37], overflowY = $[38], paddingBottom = $[39], paddingLeft = $[40], paddingRight = $[41], paddingTop = $[42], paddingX = $[43], paddingY = $[44], pointerEvents = $[45], position = $[46], radius = $[47], rest = $[48], row = $[49], rowEnd = $[50], rowStart = $[51], rows = $[52], t1 = $[53], t2 = $[54], t3 = $[55], t4 = $[56], t5 = $[57], t6 = $[58], t7 = $[59], t8 = $[60], textAlign = $[61], width = $[62], wrap = $[63]);
|
|
433
|
+
const Element2 = t1 === void 0 ? DEFAULT_BOX_ELEMENT : t1, border = t2 === void 0 ? !1 : t2, display = t3 === void 0 ? "block" : t3, margin = t4 === void 0 ? 0 : t4, minHeight = t5 === void 0 ? 0 : t5, minWidth = t6 === void 0 ? 0 : t6, padding = t7 === void 0 ? 0 : t7, sizing = t8 === void 0 ? "border" : t8;
|
|
434
|
+
let t9;
|
|
435
|
+
$[64] !== align || $[65] !== autoCols || $[66] !== autoFlow || $[67] !== autoRows || $[68] !== border || $[69] !== borderBottom || $[70] !== borderLeft || $[71] !== borderRight || $[72] !== borderTop || $[73] !== className || $[74] !== column || $[75] !== columnEnd || $[76] !== columnStart || $[77] !== columns || $[78] !== direction || $[79] !== display || $[80] !== flex || $[81] !== gap || $[82] !== gapX || $[83] !== gapY || $[84] !== height || $[85] !== inset || $[86] !== insetBottom || $[87] !== insetLeft || $[88] !== insetRight || $[89] !== insetTop || $[90] !== justify || $[91] !== margin || $[92] !== marginBottom || $[93] !== marginLeft || $[94] !== marginRight || $[95] !== marginTop || $[96] !== marginX || $[97] !== marginY || $[98] !== maxWidth || $[99] !== minHeight || $[100] !== minWidth || $[101] !== muted || $[102] !== outline || $[103] !== overflow || $[104] !== overflowX || $[105] !== overflowY || $[106] !== padding || $[107] !== paddingBottom || $[108] !== paddingLeft || $[109] !== paddingRight || $[110] !== paddingTop || $[111] !== paddingX || $[112] !== paddingY || $[113] !== pointerEvents || $[114] !== position || $[115] !== radius || $[116] !== row || $[117] !== rowEnd || $[118] !== rowStart || $[119] !== rows || $[120] !== sizing || $[121] !== textAlign || $[122] !== width || $[123] !== wrap ? (t9 = _composeClassNames(className, box({
|
|
435
436
|
align,
|
|
436
437
|
autoCols,
|
|
437
438
|
autoFlow,
|
|
@@ -466,6 +467,7 @@ function Box(props) {
|
|
|
466
467
|
marginBottom,
|
|
467
468
|
marginLeft,
|
|
468
469
|
maxWidth,
|
|
470
|
+
minHeight,
|
|
469
471
|
minWidth,
|
|
470
472
|
muted,
|
|
471
473
|
outline,
|
|
@@ -490,9 +492,9 @@ function Box(props) {
|
|
|
490
492
|
textAlign,
|
|
491
493
|
width,
|
|
492
494
|
wrap
|
|
493
|
-
})), $[
|
|
494
|
-
let
|
|
495
|
-
return $[
|
|
495
|
+
})), $[64] = align, $[65] = autoCols, $[66] = autoFlow, $[67] = autoRows, $[68] = border, $[69] = borderBottom, $[70] = borderLeft, $[71] = borderRight, $[72] = borderTop, $[73] = className, $[74] = column, $[75] = columnEnd, $[76] = columnStart, $[77] = columns, $[78] = direction, $[79] = display, $[80] = flex, $[81] = gap, $[82] = gapX, $[83] = gapY, $[84] = height, $[85] = inset, $[86] = insetBottom, $[87] = insetLeft, $[88] = insetRight, $[89] = insetTop, $[90] = justify, $[91] = margin, $[92] = marginBottom, $[93] = marginLeft, $[94] = marginRight, $[95] = marginTop, $[96] = marginX, $[97] = marginY, $[98] = maxWidth, $[99] = minHeight, $[100] = minWidth, $[101] = muted, $[102] = outline, $[103] = overflow, $[104] = overflowX, $[105] = overflowY, $[106] = padding, $[107] = paddingBottom, $[108] = paddingLeft, $[109] = paddingRight, $[110] = paddingTop, $[111] = paddingX, $[112] = paddingY, $[113] = pointerEvents, $[114] = position, $[115] = radius, $[116] = row, $[117] = rowEnd, $[118] = rowStart, $[119] = rows, $[120] = sizing, $[121] = textAlign, $[122] = width, $[123] = wrap, $[124] = t9) : t9 = $[124];
|
|
496
|
+
let t10;
|
|
497
|
+
return $[125] !== Element2 || $[126] !== children || $[127] !== rest || $[128] !== t9 ? (t10 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Box", ...rest, className: t9, children }), $[125] = Element2, $[126] = children, $[127] = rest, $[128] = t9, $[129] = t10) : t10 = $[129], t10;
|
|
496
498
|
}
|
|
497
499
|
Box.displayName = "Box";
|
|
498
500
|
const DEFAULT_LABEL_ELEMENT = "div";
|
|
@@ -511,7 +513,7 @@ function Label(props) {
|
|
|
511
513
|
weight: t3,
|
|
512
514
|
...rest
|
|
513
515
|
} = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = children, $[4] = className, $[5] = rest, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp) : (accent = $[1], align = $[2], children = $[3], className = $[4], rest = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10]);
|
|
514
|
-
const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "
|
|
516
|
+
const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "regular" : t3;
|
|
515
517
|
let t4;
|
|
516
518
|
$[11] !== accent || $[12] !== align || $[13] !== className || $[14] !== muted || $[15] !== size2 || $[16] !== weight ? (t4 = _composeClassNames(className, label({
|
|
517
519
|
accent,
|
|
@@ -917,30 +919,30 @@ Checkbox.displayName = "Checkbox";
|
|
|
917
919
|
const LazyRefractor = lazy(() => import("./refractor.js")), DEFAULT_CODE_ELEMENT = "pre";
|
|
918
920
|
function Code(props) {
|
|
919
921
|
const $ = c(25), t0 = props;
|
|
920
|
-
let children, className, languageProp, rest, t1, t2,
|
|
922
|
+
let children, className, languageProp, rest, t1, t2, t3;
|
|
921
923
|
$[0] !== t0 ? ({
|
|
922
924
|
as: t1,
|
|
923
925
|
children,
|
|
924
926
|
className,
|
|
925
927
|
language: languageProp,
|
|
926
928
|
size: t2,
|
|
927
|
-
weight,
|
|
929
|
+
weight: t3,
|
|
928
930
|
...rest
|
|
929
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = rest, $[5] = t1, $[6] = t2, $[7] =
|
|
930
|
-
const Element2 = t1 === void 0 ? DEFAULT_CODE_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
931
|
-
let
|
|
932
|
-
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (
|
|
931
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = rest, $[5] = t1, $[6] = t2, $[7] = t3) : (children = $[1], className = $[2], languageProp = $[3], rest = $[4], t1 = $[5], t2 = $[6], t3 = $[7]);
|
|
932
|
+
const Element2 = t1 === void 0 ? DEFAULT_CODE_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, weight = t3 === void 0 ? "regular" : t3, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
933
|
+
let t4;
|
|
934
|
+
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (t4 = _composeClassNames(className, code({
|
|
933
935
|
size: size2,
|
|
934
936
|
weight
|
|
935
|
-
})), $[8] = className, $[9] = size2, $[10] = weight, $[11] =
|
|
936
|
-
let t4;
|
|
937
|
-
$[12] !== children ? (t4 = /* @__PURE__ */ jsx("code", { children }), $[12] = children, $[13] = t4) : t4 = $[13];
|
|
937
|
+
})), $[8] = className, $[9] = size2, $[10] = weight, $[11] = t4) : t4 = $[11];
|
|
938
938
|
let t5;
|
|
939
|
-
$[
|
|
939
|
+
$[12] !== children ? (t5 = /* @__PURE__ */ jsx("code", { children }), $[12] = children, $[13] = t5) : t5 = $[13];
|
|
940
940
|
let t6;
|
|
941
|
-
$[
|
|
941
|
+
$[14] !== children || $[15] !== language ? (t6 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[14] = children, $[15] = language, $[16] = t6) : t6 = $[16];
|
|
942
942
|
let t7;
|
|
943
|
-
|
|
943
|
+
$[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(Suspense, { fallback: t5, children: t6 }), $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19];
|
|
944
|
+
let t8;
|
|
945
|
+
return $[20] !== Element2 || $[21] !== rest || $[22] !== t4 || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[20] = Element2, $[21] = rest, $[22] = t4, $[23] = t7, $[24] = t8) : t8 = $[24], t8;
|
|
944
946
|
}
|
|
945
947
|
Code.displayName = "Code";
|
|
946
948
|
const DEFAULT_CONTAINER_ELEMENT = "div";
|
|
@@ -993,7 +995,7 @@ Grid.displayName = "Grid";
|
|
|
993
995
|
const DEFAULT_HEADING_ELEMENT = "div";
|
|
994
996
|
function Heading(props) {
|
|
995
997
|
const $ = c(30), t0 = props;
|
|
996
|
-
let align, children, className, flex, rest, t1, t2, t3, t4,
|
|
998
|
+
let align, children, className, flex, rest, t1, t2, t3, t4, t5, textOverflowProp;
|
|
997
999
|
$[0] !== t0 ? ({
|
|
998
1000
|
accent: t1,
|
|
999
1001
|
align,
|
|
@@ -1004,27 +1006,27 @@ function Heading(props) {
|
|
|
1004
1006
|
muted: t3,
|
|
1005
1007
|
size: t4,
|
|
1006
1008
|
textOverflow: textOverflowProp,
|
|
1007
|
-
weight,
|
|
1009
|
+
weight: t5,
|
|
1008
1010
|
...rest
|
|
1009
|
-
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] =
|
|
1010
|
-
const accent = t1 === void 0 ? !1 : t1, Element2 = t2 === void 0 ? DEFAULT_HEADING_ELEMENT : t2, muted = t3 === void 0 ? !1 : t3, size2 = t4 === void 0 ? 2 : t4;
|
|
1011
|
-
let
|
|
1012
|
-
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (
|
|
1011
|
+
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = t5, $[11] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], t5 = $[10], textOverflowProp = $[11]);
|
|
1012
|
+
const accent = t1 === void 0 ? !1 : t1, Element2 = t2 === void 0 ? DEFAULT_HEADING_ELEMENT : t2, muted = t3 === void 0 ? !1 : t3, size2 = t4 === void 0 ? 2 : t4, weight = t5 === void 0 ? "regular" : t5;
|
|
1013
|
+
let t6;
|
|
1014
|
+
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t6 = _composeClassNames(className, heading({
|
|
1013
1015
|
accent,
|
|
1014
1016
|
align,
|
|
1015
1017
|
flex,
|
|
1016
1018
|
muted,
|
|
1017
1019
|
size: size2,
|
|
1018
1020
|
weight
|
|
1019
|
-
})), $[12] = accent, $[13] = align, $[14] = className, $[15] = flex, $[16] = muted, $[17] = size2, $[18] = weight, $[19] =
|
|
1020
|
-
let t6;
|
|
1021
|
-
$[20] !== textOverflowProp ? (t6 = textOverflow({
|
|
1022
|
-
textOverflow: textOverflowProp
|
|
1023
|
-
}), $[20] = textOverflowProp, $[21] = t6) : t6 = $[21];
|
|
1021
|
+
})), $[12] = accent, $[13] = align, $[14] = className, $[15] = flex, $[16] = muted, $[17] = size2, $[18] = weight, $[19] = t6) : t6 = $[19];
|
|
1024
1022
|
let t7;
|
|
1025
|
-
$[
|
|
1023
|
+
$[20] !== textOverflowProp ? (t7 = textOverflow({
|
|
1024
|
+
textOverflow: textOverflowProp
|
|
1025
|
+
}), $[20] = textOverflowProp, $[21] = t7) : t7 = $[21];
|
|
1026
1026
|
let t8;
|
|
1027
|
-
|
|
1027
|
+
$[22] !== children || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx("span", { className: t7, children }), $[22] = children, $[23] = t7, $[24] = t8) : t8 = $[24];
|
|
1028
|
+
let t9;
|
|
1029
|
+
return $[25] !== Element2 || $[26] !== rest || $[27] !== t6 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t6, children: t8 }), $[25] = Element2, $[26] = rest, $[27] = t6, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
1028
1030
|
}
|
|
1029
1031
|
Heading.displayName = "Heading";
|
|
1030
1032
|
const DEFAULT_INLINE_ELEMENT = "div";
|
|
@@ -2024,52 +2026,48 @@ function Switch(props) {
|
|
|
2024
2026
|
Switch.displayName = "Switch";
|
|
2025
2027
|
const DEFAULT_TEXT_AREA_ELEMENT = "textarea";
|
|
2026
2028
|
function TextArea(props) {
|
|
2027
|
-
const $ = c(
|
|
2028
|
-
let customValidity, forwardedRef, gap, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
...t19
|
|
2045
|
-
} = t0;
|
|
2046
|
-
t1 = t82, t2 = t92, customValidity = t102, t3 = t112, t4 = t122, gap = t132, t5 = t142, t6 = t152, readOnly = t162, forwardedRef = t17, t7 = t18, rest = t19, $[0] = t0, $[1] = customValidity, $[2] = forwardedRef, $[3] = gap, $[4] = readOnly, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = t5, $[11] = t6, $[12] = t7;
|
|
2047
|
-
} else
|
|
2048
|
-
customValidity = $[1], forwardedRef = $[2], gap = $[3], readOnly = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], t5 = $[10], t6 = $[11], t7 = $[12];
|
|
2029
|
+
const $ = c(34), t0 = props;
|
|
2030
|
+
let __unstable_disableFocusRing, customValidity, forwardedRef, gap, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
|
|
2031
|
+
$[0] !== t0 ? ({
|
|
2032
|
+
__unstable_disableFocusRing,
|
|
2033
|
+
as: t1,
|
|
2034
|
+
border: t2,
|
|
2035
|
+
customValidity,
|
|
2036
|
+
disabled: t3,
|
|
2037
|
+
fontSize: t4,
|
|
2038
|
+
gap,
|
|
2039
|
+
padding: t5,
|
|
2040
|
+
radius: t6,
|
|
2041
|
+
readOnly,
|
|
2042
|
+
ref: forwardedRef,
|
|
2043
|
+
space: t7,
|
|
2044
|
+
...rest
|
|
2045
|
+
} = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = forwardedRef, $[4] = gap, $[5] = readOnly, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = t6, $[13] = t7) : (__unstable_disableFocusRing = $[1], customValidity = $[2], forwardedRef = $[3], gap = $[4], readOnly = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], t6 = $[12], t7 = $[13]);
|
|
2049
2046
|
const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 2 : t6, space = t7 === void 0 ? 3 : t7, ref = useRef(null);
|
|
2050
2047
|
let t8;
|
|
2051
|
-
$[
|
|
2048
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[14] = t8) : t8 = $[14], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
|
|
2052
2049
|
const t9 = gap ?? space;
|
|
2053
2050
|
let t10;
|
|
2054
|
-
$[
|
|
2051
|
+
$[15] !== border || $[16] !== fontSize || $[17] !== padding || $[18] !== radius || $[19] !== t9 ? (t10 = textArea({
|
|
2055
2052
|
border,
|
|
2056
2053
|
fontSize,
|
|
2057
2054
|
padding,
|
|
2058
2055
|
radius,
|
|
2059
2056
|
gap: t9
|
|
2060
|
-
}), $[
|
|
2057
|
+
}), $[15] = border, $[16] = fontSize, $[17] = padding, $[18] = radius, $[19] = t9, $[20] = t10) : t10 = $[20];
|
|
2061
2058
|
const t11 = customValidity ? "" : void 0, t12 = !disabled && readOnly ? "" : void 0;
|
|
2062
2059
|
let t13;
|
|
2063
|
-
$[
|
|
2064
|
-
|
|
2065
|
-
$[21] !== Element2 || $[22] !== disabled || $[23] !== readOnly || $[24] !== rest ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t13, disabled, readOnly, ref }), $[21] = Element2, $[22] = disabled, $[23] = readOnly, $[24] = rest, $[25] = t14) : t14 = $[25];
|
|
2060
|
+
$[21] === Symbol.for("react.memo_cache_sentinel") ? (t13 = _inputElement(), $[21] = t13) : t13 = $[21];
|
|
2061
|
+
const t14 = __unstable_disableFocusRing ? "" : void 0;
|
|
2066
2062
|
let t15;
|
|
2067
|
-
$[26]
|
|
2063
|
+
$[22] !== Element2 || $[23] !== disabled || $[24] !== readOnly || $[25] !== rest || $[26] !== t14 ? (t15 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t13, "data-no-focus-ring": t14, disabled, readOnly, ref }), $[22] = Element2, $[23] = disabled, $[24] = readOnly, $[25] = rest, $[26] = t14, $[27] = t15) : t15 = $[27];
|
|
2068
2064
|
let t16;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2065
|
+
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[28] = t16) : t16 = $[28];
|
|
2066
|
+
let t17;
|
|
2067
|
+
return $[29] !== t10 || $[30] !== t11 || $[31] !== t12 || $[32] !== t15 ? (t17 = /* @__PURE__ */ jsxs("span", { className: t10, "data-invalid": t11, "data-read-only": t12, "data-ui": "TextArea", children: [
|
|
2068
|
+
t15,
|
|
2069
|
+
t16
|
|
2070
|
+
] }), $[29] = t10, $[30] = t11, $[31] = t12, $[32] = t15, $[33] = t17) : t17 = $[33], t17;
|
|
2073
2071
|
}
|
|
2074
2072
|
TextArea.displayName = "TextArea";
|
|
2075
2073
|
const DEFAULT_TEXT_INPUT_ELEMENT = "input", CLEAR_BUTTON_BOX_STYLE = {
|
|
@@ -2079,7 +2077,7 @@ const DEFAULT_TEXT_INPUT_ELEMENT = "input", CLEAR_BUTTON_BOX_STYLE = {
|
|
|
2079
2077
|
zIndex: 2
|
|
2080
2078
|
};
|
|
2081
2079
|
function TextInput(props) {
|
|
2082
|
-
const $ = c(
|
|
2080
|
+
const $ = c(89), t0 = props;
|
|
2083
2081
|
let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, forwardedRef, gap, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
|
|
2084
2082
|
if ($[0] !== t0) {
|
|
2085
2083
|
const {
|
|
@@ -2139,51 +2137,53 @@ function TextInput(props) {
|
|
|
2139
2137
|
})), $[30] = border, $[31] = className, $[32] = fontSize, $[33] = padding, $[34] = radius, $[35] = t16, $[36] = width, $[37] = t17) : t17 = $[37];
|
|
2140
2138
|
const t18 = IconComponent ? "" : void 0, t19 = IconRightComponent ? "" : void 0, t20 = customValidity ? "" : void 0, t21 = prefix ? "" : void 0, t22 = !disabled && readOnly ? "" : void 0, t23 = suffix ? "" : void 0;
|
|
2141
2139
|
let t24;
|
|
2142
|
-
$[38] !== prefix ? (t24 = prefix && /* @__PURE__ */ jsx(Box, {
|
|
2140
|
+
$[38] !== prefix ? (t24 = prefix && /* @__PURE__ */ jsx(Box, { className: textInputPrefix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[38] = prefix, $[39] = t24) : t24 = $[39];
|
|
2143
2141
|
let t25;
|
|
2144
|
-
$[40] === Symbol.for("react.memo_cache_sentinel") ? (t25 =
|
|
2142
|
+
$[40] === Symbol.for("react.memo_cache_sentinel") ? (t25 = textInputElement(), $[40] = t25) : t25 = $[40];
|
|
2145
2143
|
let t26;
|
|
2146
|
-
$[41]
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2144
|
+
$[41] === Symbol.for("react.memo_cache_sentinel") ? (t26 = _inputElement(), $[41] = t26) : t26 = $[41];
|
|
2145
|
+
const t27 = __unstable_disableFocusRing ? "" : void 0;
|
|
2146
|
+
let t28;
|
|
2147
|
+
$[42] !== Element2 || $[43] !== disabled || $[44] !== readOnly || $[45] !== rest || $[46] !== t27 || $[47] !== type ? (t28 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t26, "data-no-focus-ring": t27, disabled, readOnly, ref, type }), $[42] = Element2, $[43] = disabled, $[44] = readOnly, $[45] = rest, $[46] = t27, $[47] = type, $[48] = t28) : t28 = $[48];
|
|
2150
2148
|
let t29;
|
|
2151
|
-
$[
|
|
2149
|
+
$[49] === Symbol.for("react.memo_cache_sentinel") ? (t29 = _inputPresentation(), $[49] = t29) : t29 = $[49];
|
|
2150
|
+
let t30;
|
|
2151
|
+
$[50] !== IconComponent || $[51] !== fontSize || $[52] !== padding ? (t30 = IconComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", style: {
|
|
2152
2152
|
top: 0,
|
|
2153
2153
|
left: 0
|
|
2154
2154
|
}, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
|
|
2155
2155
|
isValidElement(IconComponent) && IconComponent,
|
|
2156
2156
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
2157
|
-
] }) }), $[
|
|
2158
|
-
let
|
|
2159
|
-
$[
|
|
2157
|
+
] }) }), $[50] = IconComponent, $[51] = fontSize, $[52] = padding, $[53] = t30) : t30 = $[53];
|
|
2158
|
+
let t31;
|
|
2159
|
+
$[54] !== IconRightComponent || $[55] !== fontSize || $[56] !== padding || $[57] !== withClearButton ? (t31 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", style: {
|
|
2160
2160
|
top: 0,
|
|
2161
2161
|
right: 0
|
|
2162
2162
|
}, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
|
|
2163
2163
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
2164
2164
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
2165
|
-
] }) }), $[
|
|
2166
|
-
let t31;
|
|
2167
|
-
$[57] !== t28 || $[58] !== t29 || $[59] !== t30 ? (t31 = /* @__PURE__ */ jsxs(Box, { as: "span", className: t27, "data-disable-focus-ring": t28, position: "absolute", children: [
|
|
2168
|
-
t29,
|
|
2169
|
-
t30
|
|
2170
|
-
] }), $[57] = t28, $[58] = t29, $[59] = t30, $[60] = t31) : t31 = $[60];
|
|
2165
|
+
] }) }), $[54] = IconRightComponent, $[55] = fontSize, $[56] = padding, $[57] = withClearButton, $[58] = t31) : t31 = $[58];
|
|
2171
2166
|
let t32;
|
|
2172
|
-
$[
|
|
2167
|
+
$[59] !== t30 || $[60] !== t31 ? (t32 = /* @__PURE__ */ jsxs(Box, { className: t29, position: "absolute", children: [
|
|
2168
|
+
t30,
|
|
2169
|
+
t31
|
|
2170
|
+
] }), $[59] = t30, $[60] = t31, $[61] = t32) : t32 = $[61];
|
|
2173
2171
|
let t33;
|
|
2174
|
-
$[
|
|
2175
|
-
t26,
|
|
2176
|
-
t31,
|
|
2177
|
-
t32
|
|
2178
|
-
] }), $[71] = t26, $[72] = t31, $[73] = t32, $[74] = t33) : t33 = $[74];
|
|
2172
|
+
$[62] !== clearButton || $[63] !== clearButtonBoxPadding || $[64] !== clearButtonPadding || $[65] !== clearButtonProps || $[66] !== disabled || $[67] !== fontSize || $[68] !== handleClearClick || $[69] !== radius || $[70] !== readOnly ? (t33 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { padding: clearButtonBoxPadding, position: "absolute", style: CLEAR_BUTTON_BOX_STYLE, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[62] = clearButton, $[63] = clearButtonBoxPadding, $[64] = clearButtonPadding, $[65] = clearButtonProps, $[66] = disabled, $[67] = fontSize, $[68] = handleClearClick, $[69] = radius, $[70] = readOnly, $[71] = t33) : t33 = $[71];
|
|
2179
2173
|
let t34;
|
|
2180
|
-
$[
|
|
2174
|
+
$[72] !== t28 || $[73] !== t32 || $[74] !== t33 ? (t34 = /* @__PURE__ */ jsxs(Box, { className: t25, flex: 1, position: "relative", children: [
|
|
2175
|
+
t28,
|
|
2176
|
+
t32,
|
|
2177
|
+
t33
|
|
2178
|
+
] }), $[72] = t28, $[73] = t32, $[74] = t33, $[75] = t34) : t34 = $[75];
|
|
2181
2179
|
let t35;
|
|
2182
|
-
|
|
2180
|
+
$[76] !== suffix ? (t35 = suffix && /* @__PURE__ */ jsx(Box, { className: textInputSuffix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[76] = suffix, $[77] = t35) : t35 = $[77];
|
|
2181
|
+
let t36;
|
|
2182
|
+
return $[78] !== t17 || $[79] !== t18 || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22 || $[84] !== t23 || $[85] !== t24 || $[86] !== t34 || $[87] !== t35 ? (t36 = /* @__PURE__ */ jsxs(Box, { align: "center", className: t17, "data-icon-left": t18, "data-icon-right": t19, "data-invalid": t20, "data-prefix": t21, "data-read-only": t22, "data-suffix": t23, "data-ui": "TextInput", display: "flex", children: [
|
|
2183
2183
|
t24,
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
] }), $[
|
|
2184
|
+
t34,
|
|
2185
|
+
t35
|
|
2186
|
+
] }), $[78] = t17, $[79] = t18, $[80] = t19, $[81] = t20, $[82] = t21, $[83] = t22, $[84] = t23, $[85] = t24, $[86] = t34, $[87] = t35, $[88] = t36) : t36 = $[88], t36;
|
|
2187
2187
|
}
|
|
2188
2188
|
function _temp3(v_0) {
|
|
2189
2189
|
return v_0 === 0 || v_0 === 1 ? 0 : v_0 === 2 ? 1 : typeof v_0 == "number" ? v_0 - 1 : 0;
|
|
@@ -2252,7 +2252,7 @@ function useTooltipDelayGroup() {
|
|
|
2252
2252
|
return useContext(TooltipDelayGroupContext);
|
|
2253
2253
|
}
|
|
2254
2254
|
function TooltipLayer(props) {
|
|
2255
|
-
const $ = c(
|
|
2255
|
+
const $ = c(50);
|
|
2256
2256
|
let animate, arrow2, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, rest, scheme, shadow, style, t0;
|
|
2257
2257
|
$[0] !== props ? ({
|
|
2258
2258
|
animate,
|
|
@@ -2292,23 +2292,20 @@ function TooltipLayer(props) {
|
|
|
2292
2292
|
right: void 0,
|
|
2293
2293
|
bottom: void 0
|
|
2294
2294
|
}, $[22] = t5, $[23] = t6, $[24] = t7) : t7 = $[24], t4 = t7;
|
|
2295
|
-
const arrowStyle = t4;
|
|
2296
|
-
let
|
|
2297
|
-
$[25]
|
|
2298
|
-
const t9 = animate ? "" : void 0;
|
|
2295
|
+
const arrowStyle = t4, t8 = animate ? "" : void 0;
|
|
2296
|
+
let t9;
|
|
2297
|
+
$[25] !== animate ? (t9 = animate ? ["hidden", "initial"] : void 0, $[25] = animate, $[26] = t9) : t9 = $[26];
|
|
2299
2298
|
let t10;
|
|
2300
|
-
$[
|
|
2299
|
+
$[27] !== animate ? (t10 = animate ? ["visible", "scaleIn"] : void 0, $[27] = animate, $[28] = t10) : t10 = $[28];
|
|
2301
2300
|
let t11;
|
|
2302
|
-
$[
|
|
2301
|
+
$[29] !== animate ? (t11 = animate ? ["hidden", "scaleOut"] : void 0, $[29] = animate, $[30] = t11) : t11 = $[30];
|
|
2303
2302
|
let t12;
|
|
2304
|
-
$[
|
|
2303
|
+
$[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t12) : t12 = $[34];
|
|
2305
2304
|
let t13;
|
|
2306
|
-
$[
|
|
2307
|
-
let t14;
|
|
2308
|
-
return $[36] !== children || $[37] !== padding || $[38] !== placement || $[39] !== radius || $[40] !== rest || $[41] !== rootStyle || $[42] !== scheme || $[43] !== shadow || $[44] !== t10 || $[45] !== t11 || $[46] !== t12 || $[47] !== t13 || $[48] !== t9 || $[49] !== tone ? (t14 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__card", ...rest, as: motion.div, className: t8, "data-animate": t9, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, tone, children: [
|
|
2305
|
+
return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t8, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t9, animate: t10, exit: t11, tone, children: [
|
|
2309
2306
|
children,
|
|
2310
|
-
|
|
2311
|
-
] }), $[
|
|
2307
|
+
t12
|
|
2308
|
+
] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t11, $[45] = t12, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t13) : t13 = $[49], t13;
|
|
2312
2309
|
}
|
|
2313
2310
|
TooltipLayer.displayName = "TooltipLayer";
|
|
2314
2311
|
const DEFAULT_TOOLTIP_ELEMENT = "div";
|