@sanity/ui 0.37.16 → 0.37.19
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/lib/dts/src/primitives/textArea/textArea.d.ts.map +1 -1
- package/lib/dts/src/theme/studioTheme/color.d.ts.map +1 -1
- package/lib/sanity-ui.js +24 -20
- package/lib/sanity-ui.js.map +1 -1
- package/lib/{sanity-ui.modern.mjs → sanity-ui.modern.js} +25 -21
- package/lib/sanity-ui.modern.js.map +1 -0
- package/lib/sanity-ui.module.js +24 -20
- package/lib/sanity-ui.module.js.map +1 -1
- package/package.json +5 -5
- package/src/components/dialog/styles.ts +1 -1
- package/src/primitives/textArea/textArea.tsx +2 -0
- package/src/theme/studioTheme/color.ts +15 -14
- package/lib/sanity-ui.modern.mjs.map +0 -1
|
@@ -1884,18 +1884,20 @@ const color = createColorTheme({
|
|
|
1884
1884
|
name
|
|
1885
1885
|
}) => {
|
|
1886
1886
|
if (name === 'default') {
|
|
1887
|
-
const
|
|
1887
|
+
const _tints = hues.gray;
|
|
1888
|
+
|
|
1889
|
+
const _skeletonFrom = dark ? _tints[900].hex : _tints[100].hex;
|
|
1888
1890
|
|
|
1889
1891
|
return {
|
|
1890
1892
|
fg: dark ? white$1.hex : black$1.hex,
|
|
1891
1893
|
bg: dark ? black$1.hex : white$1.hex,
|
|
1892
|
-
border:
|
|
1894
|
+
border: _tints[dark ? 800 : 200].hex,
|
|
1893
1895
|
focusRing: hues.blue[dark ? 500 : 500].hex,
|
|
1894
1896
|
shadow: {
|
|
1895
|
-
outline: rgba(
|
|
1896
|
-
umbra:
|
|
1897
|
-
penumbra:
|
|
1898
|
-
ambient:
|
|
1897
|
+
outline: rgba(_tints[500].hex, 0.4),
|
|
1898
|
+
umbra: dark ? rgba(_tints[950].hex, 0.4) : rgba(_tints[500].hex, 0.2),
|
|
1899
|
+
penumbra: dark ? rgba(_tints[950].hex, 0.28) : rgba(_tints[500].hex, 0.14),
|
|
1900
|
+
ambient: dark ? rgba(_tints[950].hex, 0.24) : rgba(_tints[500].hex, 0.12)
|
|
1899
1901
|
},
|
|
1900
1902
|
skeleton: {
|
|
1901
1903
|
from: _skeletonFrom,
|
|
@@ -1905,18 +1907,18 @@ const color = createColorTheme({
|
|
|
1905
1907
|
}
|
|
1906
1908
|
|
|
1907
1909
|
if (name === 'transparent') {
|
|
1908
|
-
const
|
|
1909
|
-
const _skeletonFrom2 =
|
|
1910
|
+
const _tints2 = tones.default;
|
|
1911
|
+
const _skeletonFrom2 = _tints2[dark ? 800 : 200].hex;
|
|
1910
1912
|
return {
|
|
1911
|
-
fg:
|
|
1912
|
-
bg:
|
|
1913
|
-
border:
|
|
1913
|
+
fg: _tints2[dark ? 100 : 900].hex,
|
|
1914
|
+
bg: _tints2[dark ? 950 : 50].hex,
|
|
1915
|
+
border: _tints2[dark ? 800 : 300].hex,
|
|
1914
1916
|
focusRing: hues.blue[500].hex,
|
|
1915
1917
|
shadow: {
|
|
1916
|
-
outline: rgba(
|
|
1917
|
-
umbra:
|
|
1918
|
-
penumbra:
|
|
1919
|
-
ambient:
|
|
1918
|
+
outline: rgba(_tints2[500].hex, 0.4),
|
|
1919
|
+
umbra: dark ? rgba(_tints2[900].hex, 0.4) : rgba(_tints2[500].hex, 0.2),
|
|
1920
|
+
penumbra: dark ? rgba(_tints2[900].hex, 0.28) : rgba(_tints2[500].hex, 0.14),
|
|
1921
|
+
ambient: dark ? rgba(_tints2[900].hex, 0.24) : rgba(_tints2[500].hex, 0.12)
|
|
1920
1922
|
},
|
|
1921
1923
|
skeleton: {
|
|
1922
1924
|
from: _skeletonFrom2,
|
|
@@ -1933,10 +1935,10 @@ const color = createColorTheme({
|
|
|
1933
1935
|
border: tints[dark ? 800 : 200].hex,
|
|
1934
1936
|
focusRing: tints[500].hex,
|
|
1935
1937
|
shadow: {
|
|
1936
|
-
outline: rgba(tints[500].hex,
|
|
1937
|
-
umbra:
|
|
1938
|
-
penumbra:
|
|
1939
|
-
ambient:
|
|
1938
|
+
outline: rgba(tints[500].hex, 0.4),
|
|
1939
|
+
umbra: dark ? rgba(tints[900].hex, 0.4) : rgba(tints[500].hex, 0.2),
|
|
1940
|
+
penumbra: dark ? rgba(tints[900].hex, 0.28) : rgba(tints[500].hex, 0.14),
|
|
1941
|
+
ambient: dark ? rgba(tints[900].hex, 0.24) : rgba(tints[500].hex, 0.12)
|
|
1940
1942
|
},
|
|
1941
1943
|
skeleton: {
|
|
1942
1944
|
from: skeletonFrom,
|
|
@@ -7524,6 +7526,7 @@ const TextArea = /*#__PURE__*/forwardRef(function TextArea(props, forwardedRef)
|
|
|
7524
7526
|
"data-ui": "TextArea"
|
|
7525
7527
|
}, /*#__PURE__*/React.createElement(InputRoot$1, null, /*#__PURE__*/React.createElement(Input$1, _extends({
|
|
7526
7528
|
"data-as": "textarea",
|
|
7529
|
+
"data-scheme": rootTheme.scheme,
|
|
7527
7530
|
"data-tone": rootTheme.tone
|
|
7528
7531
|
}, restProps, {
|
|
7529
7532
|
"$fontSize": useArrayProp(fontSize),
|
|
@@ -7539,6 +7542,7 @@ const TextArea = /*#__PURE__*/forwardRef(function TextArea(props, forwardedRef)
|
|
|
7539
7542
|
"$radius": useArrayProp(radius),
|
|
7540
7543
|
"$scheme": rootTheme.scheme,
|
|
7541
7544
|
"$tone": rootTheme.tone,
|
|
7545
|
+
"data-scheme": rootTheme.scheme,
|
|
7542
7546
|
"data-tone": rootTheme.tone
|
|
7543
7547
|
})));
|
|
7544
7548
|
});
|
|
@@ -8718,7 +8722,7 @@ function dialogStyle({
|
|
|
8718
8722
|
alignItems: 'center',
|
|
8719
8723
|
justifyContent: 'center',
|
|
8720
8724
|
outline: 'none',
|
|
8721
|
-
background: color.shadow.
|
|
8725
|
+
background: color.shadow.umbra
|
|
8722
8726
|
};
|
|
8723
8727
|
}
|
|
8724
8728
|
function responsiveDialogPositionStyle(props) {
|
|
@@ -11103,4 +11107,4 @@ const TreeItem = /*#__PURE__*/memo(function TreeItem(props) {
|
|
|
11103
11107
|
});
|
|
11104
11108
|
|
|
11105
11109
|
export { Autocomplete, Avatar, AvatarCounter, AvatarStack, Badge, BoundaryElementProvider, Box, Breadcrumbs, Button, Card, Checkbox, Code, CodeSkeleton, Container, Dialog, DialogContext, DialogProvider, ElementQuery, ErrorBoundary, Flex, Grid, Heading, HeadingSkeleton, Hotkeys, Inline, KBD, Label, LabelSkeleton, Layer, LayerProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuItem, Popover, Portal, PortalProvider, Radio, Select, Skeleton, Spinner, SrOnly, Stack, Switch, Tab, TabList, TabPanel, Text, TextArea, TextInput, TextSkeleton, ThemeColorProvider, ThemeProvider, Toast, ToastProvider, Tooltip, Tree, TreeItem, VirtualList, _ResizeObserver, _elementSizeObserver, _fillCSSObject, _getArrayProp, _getResponsiveSpace, _hasFocus, _isEnterToClickElement, _isScrollable, _raf, _raf2, _responsive, attemptFocus, createColorTheme, focusFirstDescendant, focusLastDescendant, hexToRgb, hslToRgb, isFocusable, isHTMLAnchorElement, isHTMLButtonElement, isHTMLElement, isHTMLInputElement, isHTMLSelectElement, isHTMLTextAreaElement, multiply$1 as multiply, parseColor, rem, responsiveCodeFontStyle, responsiveHeadingFont, responsiveLabelFont, responsiveTextAlignStyle, responsiveTextFont, rgbToHex, rgbToHsl, rgba, screen$1 as screen, studioTheme, useArrayProp, useBoundaryElement, useClickOutside, useCustomValidity, useDialog, useElementRect, useElementSize, useForwardedRef, useGlobalKeyDown, useLayer, useMediaIndex, usePortal, usePrefersDark, useRootTheme, useTheme, useToast, useTree };
|
|
11106
|
-
//# sourceMappingURL=sanity-ui.modern.
|
|
11110
|
+
//# sourceMappingURL=sanity-ui.modern.js.map
|