@noya-app/noya-designsystem 0.1.37 → 0.1.39
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +12 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +343 -23
- package/dist/index.d.ts +343 -23
- package/dist/index.js +401 -137
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +405 -138
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +1 -1
- package/src/components/Checkbox.tsx +6 -8
- package/src/components/Chip.tsx +15 -8
- package/src/components/DraggableMenuButton.tsx +3 -2
- package/src/components/FillPreviewBackground.tsx +10 -9
- package/src/components/FloatingWindow.tsx +5 -6
- package/src/components/IconButton.tsx +5 -1
- package/src/components/InputField.tsx +95 -68
- package/src/components/InspectorContainer.tsx +2 -2
- package/src/components/InspectorPrimitives.tsx +19 -9
- package/src/components/Label.tsx +1 -1
- package/src/components/ListView.tsx +19 -32
- package/src/components/RadioGroup.tsx +1 -1
- package/src/components/SelectMenu.tsx +3 -3
- package/src/components/Switch.tsx +1 -1
- package/src/components/Text.tsx +20 -7
- package/src/components/TextArea.tsx +1 -1
- package/src/components/Tooltip.tsx +1 -1
- package/src/components/WorkspaceLayout.tsx +4 -3
- package/src/components/internal/TextInput.tsx +1 -0
- package/src/index.css +12 -2
- package/src/index.tsx +0 -1
- package/src/theme/index.ts +6 -3
- package/src/theme/themeUtils.ts +72 -0
- package/src/utils/tailwind.ts +4 -12
- package/tailwind.config.ts +16 -3
package/dist/index.js
CHANGED
|
@@ -1458,6 +1458,7 @@ __export(src_exports, {
|
|
|
1458
1458
|
WorkspaceLayout: () => WorkspaceLayout,
|
|
1459
1459
|
cn: () => cn,
|
|
1460
1460
|
createSectionedMenu: () => createSectionedMenu,
|
|
1461
|
+
cssVars: () => cssVars,
|
|
1461
1462
|
fuzzyFilter: () => fuzzyFilter,
|
|
1462
1463
|
fuzzyScore: () => fuzzyScore,
|
|
1463
1464
|
fuzzyTokenize: () => fuzzyTokenize,
|
|
@@ -1496,12 +1497,12 @@ var import_react = __toESM(require("react"));
|
|
|
1496
1497
|
|
|
1497
1498
|
// ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
1498
1499
|
var CLASS_PART_SEPARATOR = "-";
|
|
1499
|
-
var createClassGroupUtils = (
|
|
1500
|
-
const classMap = createClassMap(
|
|
1500
|
+
var createClassGroupUtils = (config2) => {
|
|
1501
|
+
const classMap = createClassMap(config2);
|
|
1501
1502
|
const {
|
|
1502
1503
|
conflictingClassGroups,
|
|
1503
1504
|
conflictingClassGroupModifiers
|
|
1504
|
-
} =
|
|
1505
|
+
} = config2;
|
|
1505
1506
|
const getClassGroupId = (className) => {
|
|
1506
1507
|
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
1507
1508
|
if (classParts[0] === "" && classParts.length !== 1) {
|
|
@@ -1549,22 +1550,22 @@ var getGroupIdForArbitraryProperty = (className) => {
|
|
|
1549
1550
|
}
|
|
1550
1551
|
}
|
|
1551
1552
|
};
|
|
1552
|
-
var createClassMap = (
|
|
1553
|
+
var createClassMap = (config2) => {
|
|
1553
1554
|
const {
|
|
1554
|
-
theme
|
|
1555
|
+
theme,
|
|
1555
1556
|
prefix
|
|
1556
|
-
} =
|
|
1557
|
+
} = config2;
|
|
1557
1558
|
const classMap = {
|
|
1558
1559
|
nextPart: /* @__PURE__ */ new Map(),
|
|
1559
1560
|
validators: []
|
|
1560
1561
|
};
|
|
1561
|
-
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(
|
|
1562
|
+
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config2.classGroups), prefix);
|
|
1562
1563
|
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
|
|
1563
|
-
processClassesRecursively(classGroup, classMap, classGroupId,
|
|
1564
|
+
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
1564
1565
|
});
|
|
1565
1566
|
return classMap;
|
|
1566
1567
|
};
|
|
1567
|
-
var processClassesRecursively = (classGroup, classPartObject, classGroupId,
|
|
1568
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
1568
1569
|
classGroup.forEach((classDefinition) => {
|
|
1569
1570
|
if (typeof classDefinition === "string") {
|
|
1570
1571
|
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
@@ -1573,7 +1574,7 @@ var processClassesRecursively = (classGroup, classPartObject, classGroupId, them
|
|
|
1573
1574
|
}
|
|
1574
1575
|
if (typeof classDefinition === "function") {
|
|
1575
1576
|
if (isThemeGetter(classDefinition)) {
|
|
1576
|
-
processClassesRecursively(classDefinition(
|
|
1577
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
1577
1578
|
return;
|
|
1578
1579
|
}
|
|
1579
1580
|
classPartObject.validators.push({
|
|
@@ -1583,7 +1584,7 @@ var processClassesRecursively = (classGroup, classPartObject, classGroupId, them
|
|
|
1583
1584
|
return;
|
|
1584
1585
|
}
|
|
1585
1586
|
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
1586
|
-
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId,
|
|
1587
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
1587
1588
|
});
|
|
1588
1589
|
});
|
|
1589
1590
|
};
|
|
@@ -1659,11 +1660,11 @@ var createLruCache = (maxCacheSize) => {
|
|
|
1659
1660
|
};
|
|
1660
1661
|
};
|
|
1661
1662
|
var IMPORTANT_MODIFIER = "!";
|
|
1662
|
-
var createParseClassName = (
|
|
1663
|
+
var createParseClassName = (config2) => {
|
|
1663
1664
|
const {
|
|
1664
1665
|
separator,
|
|
1665
1666
|
experimentalParseClassName
|
|
1666
|
-
} =
|
|
1667
|
+
} = config2;
|
|
1667
1668
|
const isSeparatorSingleCharacter = separator.length === 1;
|
|
1668
1669
|
const firstSeparatorCharacter = separator[0];
|
|
1669
1670
|
const separatorLength = separator.length;
|
|
@@ -1728,10 +1729,10 @@ var sortModifiers = (modifiers) => {
|
|
|
1728
1729
|
sortedModifiers.push(...unsortedModifiers.sort());
|
|
1729
1730
|
return sortedModifiers;
|
|
1730
1731
|
};
|
|
1731
|
-
var createConfigUtils = (
|
|
1732
|
-
cache: createLruCache(
|
|
1733
|
-
parseClassName: createParseClassName(
|
|
1734
|
-
...createClassGroupUtils(
|
|
1732
|
+
var createConfigUtils = (config2) => ({
|
|
1733
|
+
cache: createLruCache(config2.cacheSize),
|
|
1734
|
+
parseClassName: createParseClassName(config2),
|
|
1735
|
+
...createClassGroupUtils(config2)
|
|
1735
1736
|
});
|
|
1736
1737
|
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
1737
1738
|
var mergeClassList = (classList, configUtils) => {
|
|
@@ -1818,8 +1819,8 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
|
1818
1819
|
let cacheSet;
|
|
1819
1820
|
let functionToCall = initTailwindMerge;
|
|
1820
1821
|
function initTailwindMerge(classList) {
|
|
1821
|
-
const
|
|
1822
|
-
configUtils = createConfigUtils(
|
|
1822
|
+
const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
1823
|
+
configUtils = createConfigUtils(config2);
|
|
1823
1824
|
cacheGet = configUtils.cache.get;
|
|
1824
1825
|
cacheSet = configUtils.cache.set;
|
|
1825
1826
|
functionToCall = tailwindMerge;
|
|
@@ -1839,7 +1840,7 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
|
1839
1840
|
};
|
|
1840
1841
|
}
|
|
1841
1842
|
var fromTheme = (key) => {
|
|
1842
|
-
const themeGetter = (
|
|
1843
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
1843
1844
|
themeGetter.isThemeGetter = true;
|
|
1844
1845
|
return themeGetter;
|
|
1845
1846
|
};
|
|
@@ -3956,9 +3957,6 @@ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
|
3956
3957
|
|
|
3957
3958
|
// src/utils/tailwind.ts
|
|
3958
3959
|
var cn = (...classes) => twMerge(classes.filter(Boolean));
|
|
3959
|
-
function camelCaseToKebabCase(string) {
|
|
3960
|
-
return string.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
3961
|
-
}
|
|
3962
3960
|
|
|
3963
3961
|
// src/components/ActivityIndicator.tsx
|
|
3964
3962
|
var ActivityIndicator = (0, import_react.memo)(function ActivityIndicator2({
|
|
@@ -4056,6 +4054,30 @@ var import_react4 = __toESM(require("react"));
|
|
|
4056
4054
|
|
|
4057
4055
|
// src/components/Text.tsx
|
|
4058
4056
|
var import_react3 = __toESM(require("react"));
|
|
4057
|
+
|
|
4058
|
+
// src/theme/themeUtils.ts
|
|
4059
|
+
function camelToKebabCase(str) {
|
|
4060
|
+
return str.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
4061
|
+
}
|
|
4062
|
+
function kebabToCamelCase(str) {
|
|
4063
|
+
return str.replace(
|
|
4064
|
+
/-([a-z])/g,
|
|
4065
|
+
(_, letter) => letter.toUpperCase()
|
|
4066
|
+
);
|
|
4067
|
+
}
|
|
4068
|
+
function convertKebabToCamelCase(obj) {
|
|
4069
|
+
if (Array.isArray(obj) || obj instanceof Set || obj instanceof Map) {
|
|
4070
|
+
return obj;
|
|
4071
|
+
}
|
|
4072
|
+
const result = {};
|
|
4073
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
4074
|
+
const camelKey = kebabToCamelCase(key);
|
|
4075
|
+
result[camelKey] = value && typeof value === "object" && !Array.isArray(value) && !(value instanceof Set) && !(value instanceof Map) ? convertKebabToCamelCase(value) : value;
|
|
4076
|
+
}
|
|
4077
|
+
return result;
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
// src/components/Text.tsx
|
|
4059
4081
|
var elements = {
|
|
4060
4082
|
title: "h1",
|
|
4061
4083
|
subtitle: "h1",
|
|
@@ -4102,7 +4124,7 @@ var Text = (0, import_react3.forwardRef)(function Text2({
|
|
|
4102
4124
|
Component3,
|
|
4103
4125
|
{
|
|
4104
4126
|
ref: forwardedRef,
|
|
4105
|
-
className: `${textStyles[variant]} text-${
|
|
4127
|
+
className: `${textStyles[variant]} text-${camelToKebabCase(String(color)) ?? "text"} ${className ?? ""}`,
|
|
4106
4128
|
style: style5,
|
|
4107
4129
|
tabIndex,
|
|
4108
4130
|
onClick,
|
|
@@ -4153,7 +4175,7 @@ var Tooltip = (0, import_react4.memo)(function Tooltip2({ children: children2, c
|
|
|
4153
4175
|
align: "center",
|
|
4154
4176
|
sideOffset: 2,
|
|
4155
4177
|
collisionPadding: 8,
|
|
4156
|
-
className: `${textStyles.small} text-text rounded-[3px] py-small px-medium bg-popover-background shadow-[
|
|
4178
|
+
className: `${textStyles.small} text-text rounded-[3px] py-small px-medium bg-popover-background shadow-[0_2px_4px_rgba(0,0,0,0.2)_0_0_12px_rgba(0,0,0,0.1)] border border-solid border-divider-strong`
|
|
4157
4179
|
},
|
|
4158
4180
|
content
|
|
4159
4181
|
))));
|
|
@@ -4198,7 +4220,7 @@ var Button = (0, import_react5.forwardRef)(function Button2({
|
|
|
4198
4220
|
{
|
|
4199
4221
|
ref: forwardedRef,
|
|
4200
4222
|
id,
|
|
4201
|
-
className: `no-underline leading-[1] relative border-0 outline-none select-none text-left rounded flex items-center justify-center [&>*]:pointer-events-none [-webkit-app-region:no-drag] focus:ring-2 focus:ring-primary focus:
|
|
4223
|
+
className: `no-underline leading-[1] relative border-0 outline-none select-none text-left rounded flex items-center justify-center [&>*]:pointer-events-none [-webkit-app-region:no-drag] focus:ring-2 focus:ring-primary focus:shadow-[0_0_0_1px_var(--popover-background)_inset] ${disabled ? "opacity-25" : ""} ${!className?.includes("flex") ? "flex-none" : ""} ${active ? "bg-primary text-white hover:bg-primary-light active:bg-primary" : variantStyles[variant]} ${sizeStyles[variant === "thin" ? "thin" : variant === "floating" && size3 !== "small" ? "floating" : variant === "none" ? "none" : size3]} ${className ?? ""}`,
|
|
4202
4224
|
style: style5,
|
|
4203
4225
|
tabIndex,
|
|
4204
4226
|
disabled,
|
|
@@ -4228,11 +4250,12 @@ var colorSchemeStyles = {
|
|
|
4228
4250
|
secondary: "text-secondary"
|
|
4229
4251
|
};
|
|
4230
4252
|
var Checkbox = (0, import_react6.memo)(
|
|
4231
|
-
(0, import_react6.forwardRef)(function Checkbox2({ className, colorScheme = "secondary", ...props }, ref) {
|
|
4253
|
+
(0, import_react6.forwardRef)(function Checkbox2({ className, style: style5, colorScheme = "secondary", ...props }, ref) {
|
|
4232
4254
|
return /* @__PURE__ */ import_react6.default.createElement(
|
|
4233
4255
|
"div",
|
|
4234
4256
|
{
|
|
4235
|
-
className: `relative inline-flex w-[19px] h-[19px] ${colorSchemeStyles[colorScheme]} ${className ?? ""}
|
|
4257
|
+
className: `relative inline-flex w-[19px] h-[19px] ${colorSchemeStyles[colorScheme]} ${className ?? ""}`,
|
|
4258
|
+
style: style5
|
|
4236
4259
|
},
|
|
4237
4260
|
/* @__PURE__ */ import_react6.default.createElement(
|
|
4238
4261
|
"input",
|
|
@@ -4244,6 +4267,7 @@ var Checkbox = (0, import_react6.memo)(
|
|
|
4244
4267
|
h-full
|
|
4245
4268
|
peer
|
|
4246
4269
|
appearance-none
|
|
4270
|
+
m-0
|
|
4247
4271
|
rounded
|
|
4248
4272
|
bg-input-background
|
|
4249
4273
|
transition-colors
|
|
@@ -4254,11 +4278,8 @@ var Checkbox = (0, import_react6.memo)(
|
|
|
4254
4278
|
focus:ring-2
|
|
4255
4279
|
focus:ring-primary
|
|
4256
4280
|
focus:ring-offset-1
|
|
4281
|
+
focus:z-interactable
|
|
4257
4282
|
`,
|
|
4258
|
-
style: {
|
|
4259
|
-
width: "27px",
|
|
4260
|
-
...props.style
|
|
4261
|
-
},
|
|
4262
4283
|
...props
|
|
4263
4284
|
}
|
|
4264
4285
|
),
|
|
@@ -4274,10 +4295,9 @@ var Checkbox = (0, import_react6.memo)(
|
|
|
4274
4295
|
stroke-white
|
|
4275
4296
|
opacity-0
|
|
4276
4297
|
peer-checked:opacity-100
|
|
4298
|
+
z-label
|
|
4299
|
+
stroke-[1.3px]
|
|
4277
4300
|
`,
|
|
4278
|
-
style: {
|
|
4279
|
-
strokeWidth: "1.3"
|
|
4280
|
-
},
|
|
4281
4301
|
viewBox: "0 0 16 16",
|
|
4282
4302
|
fill: "none",
|
|
4283
4303
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -4396,6 +4416,244 @@ function useHover(props = {}) {
|
|
|
4396
4416
|
};
|
|
4397
4417
|
}
|
|
4398
4418
|
|
|
4419
|
+
// tailwind.config.ts
|
|
4420
|
+
var config = {
|
|
4421
|
+
content: ["./src/**/*.{ts,tsx}"],
|
|
4422
|
+
corePlugins: {
|
|
4423
|
+
// disables @tailwind base global styles
|
|
4424
|
+
preflight: false
|
|
4425
|
+
},
|
|
4426
|
+
theme: {
|
|
4427
|
+
extend: {
|
|
4428
|
+
colors: {
|
|
4429
|
+
"logo-fill": "var(--logo-fill)",
|
|
4430
|
+
"logo-highlight": "var(--logo-highlight)",
|
|
4431
|
+
background: "var(--background)",
|
|
4432
|
+
text: "var(--text)",
|
|
4433
|
+
"text-muted": "var(--text-muted)",
|
|
4434
|
+
"text-subtle": "var(--text-subtle)",
|
|
4435
|
+
"text-disabled": "var(--text-disabled)",
|
|
4436
|
+
"text-decorative-light": "var(--text-decorative-light)",
|
|
4437
|
+
"divider-subtle": "var(--divider-subtle)",
|
|
4438
|
+
divider: "var(--divider)",
|
|
4439
|
+
"divider-strong": "var(--divider-strong)",
|
|
4440
|
+
primary: "var(--primary)",
|
|
4441
|
+
"primary-light": "var(--primary-light)",
|
|
4442
|
+
"primary-pastel": "var(--primary-pastel)",
|
|
4443
|
+
secondary: "var(--secondary)",
|
|
4444
|
+
"secondary-light": "var(--secondary-light)",
|
|
4445
|
+
"secondary-pastel": "var(--secondary-pastel)",
|
|
4446
|
+
"secondary-bright": "var(--secondary-bright)",
|
|
4447
|
+
"input-background": "var(--input-background)",
|
|
4448
|
+
"input-background-light": "var(--input-background-light)",
|
|
4449
|
+
"code-background": "var(--code-background)",
|
|
4450
|
+
"code-background-dark": "var(--code-background-dark)",
|
|
4451
|
+
"selected-background": "var(--selected-background)",
|
|
4452
|
+
"breadcrumb-text": "var(--breadcrumb-text)",
|
|
4453
|
+
"breadcrumb-text-hover": "var(--breadcrumb-text-hover)",
|
|
4454
|
+
"breadcrumb-icon": "var(--breadcrumb-icon)",
|
|
4455
|
+
"canvas-background": "var(--canvas-background)",
|
|
4456
|
+
"canvas-grid": "var(--canvas-grid)",
|
|
4457
|
+
"sidebar-background": "var(--sidebar-background)",
|
|
4458
|
+
"sidebar-background-transparent": "var(--sidebar-background-transparent)",
|
|
4459
|
+
"popover-background": "var(--popover-background)",
|
|
4460
|
+
"popover-divider": "var(--popover-divider)",
|
|
4461
|
+
"listview-raised-background": "var(--listview-raised-background)",
|
|
4462
|
+
"listview-editing-background": "var(--listview-editing-background)",
|
|
4463
|
+
"slider-background": "var(--slider-background)",
|
|
4464
|
+
"slider-border": "var(--slider-border)",
|
|
4465
|
+
"radio-group-background": "var(--radio-group-background)",
|
|
4466
|
+
mask: "var(--mask)",
|
|
4467
|
+
"transparent-checker": "var(--transparent-checker)",
|
|
4468
|
+
scrollbar: "var(--scrollbar)",
|
|
4469
|
+
"placeholder-dots": "var(--placeholder-dots)",
|
|
4470
|
+
"drag-outline": "var(--drag-outline)",
|
|
4471
|
+
"active-background": "var(--active-background)",
|
|
4472
|
+
"thumbnail-background": "var(--thumbnail-background)",
|
|
4473
|
+
"thumbnail-shadow": "var(--thumbnail-shadow)",
|
|
4474
|
+
"inline-code-text": "var(--inline-code-text)",
|
|
4475
|
+
"inline-code-background": "var(--inline-code-background)",
|
|
4476
|
+
"text-link": "var(--text-link)",
|
|
4477
|
+
"text-link-focused": "var(--text-link-focused)",
|
|
4478
|
+
icon: "var(--icon)",
|
|
4479
|
+
"icon-selected": "var(--icon-selected)",
|
|
4480
|
+
warning: "var(--warning)",
|
|
4481
|
+
"radio-group-item": "var(--radio-group-item)",
|
|
4482
|
+
dot: "var(--dot)",
|
|
4483
|
+
"row-highlight": "var(--row-highlight)",
|
|
4484
|
+
"table-row-background": "var(--table-row-background)",
|
|
4485
|
+
"chip-primary-bg": "var(--chip-primary-bg)",
|
|
4486
|
+
"chip-secondary-bg": "var(--chip-secondary-bg)",
|
|
4487
|
+
"chip-error-bg": "var(--chip-error-bg)",
|
|
4488
|
+
"chip-default-bg": "var(--chip-default-bg)",
|
|
4489
|
+
"chip-primary-shadow": "var(--chip-primary-shadow)",
|
|
4490
|
+
"chip-secondary-shadow": "var(--chip-secondary-shadow)",
|
|
4491
|
+
"chip-error-shadow": "var(--chip-error-shadow)",
|
|
4492
|
+
"chip-default-shadow": "var(--chip-default-shadow)"
|
|
4493
|
+
},
|
|
4494
|
+
fontFamily: {
|
|
4495
|
+
sans: [
|
|
4496
|
+
"__Inter_6b0edc",
|
|
4497
|
+
"__Inter_Fallback_6b0edc",
|
|
4498
|
+
"-apple-system",
|
|
4499
|
+
"BlinkMacSystemFont",
|
|
4500
|
+
"Helvetica Neue",
|
|
4501
|
+
"Segoe UI",
|
|
4502
|
+
"Roboto",
|
|
4503
|
+
"Helvetica",
|
|
4504
|
+
"Arial",
|
|
4505
|
+
"sans-serif"
|
|
4506
|
+
],
|
|
4507
|
+
mono: ["Menlo", "Monaco", "Consolas", "Courier New", "monospace"]
|
|
4508
|
+
},
|
|
4509
|
+
// Type scale
|
|
4510
|
+
// The last one, 0.85, I just eyeballed
|
|
4511
|
+
// old: typeScale = [3.052, 2.441, 1.953, 1.563, 1.25, 1, 0.85]; // Major third
|
|
4512
|
+
fontSize: {
|
|
4513
|
+
title: [
|
|
4514
|
+
"3.052rem",
|
|
4515
|
+
{
|
|
4516
|
+
lineHeight: "1.4",
|
|
4517
|
+
letterSpacing: "-0.05em"
|
|
4518
|
+
}
|
|
4519
|
+
],
|
|
4520
|
+
subtitle: [
|
|
4521
|
+
"1.563rem",
|
|
4522
|
+
{
|
|
4523
|
+
lineHeight: "1.75",
|
|
4524
|
+
letterSpacing: "-0.05em"
|
|
4525
|
+
}
|
|
4526
|
+
],
|
|
4527
|
+
heading1: [
|
|
4528
|
+
"1.953rem",
|
|
4529
|
+
{
|
|
4530
|
+
lineHeight: "1.6",
|
|
4531
|
+
letterSpacing: "-0.025em"
|
|
4532
|
+
}
|
|
4533
|
+
],
|
|
4534
|
+
heading2: [
|
|
4535
|
+
"1.563rem",
|
|
4536
|
+
{
|
|
4537
|
+
lineHeight: "1.5",
|
|
4538
|
+
letterSpacing: "-0.025em"
|
|
4539
|
+
}
|
|
4540
|
+
],
|
|
4541
|
+
heading3: [
|
|
4542
|
+
"1.25rem",
|
|
4543
|
+
{
|
|
4544
|
+
lineHeight: "1.4",
|
|
4545
|
+
letterSpacing: "-0.025em"
|
|
4546
|
+
}
|
|
4547
|
+
],
|
|
4548
|
+
heading4: [
|
|
4549
|
+
"1rem",
|
|
4550
|
+
{
|
|
4551
|
+
lineHeight: "1.4"
|
|
4552
|
+
}
|
|
4553
|
+
],
|
|
4554
|
+
heading5: [
|
|
4555
|
+
"0.85rem",
|
|
4556
|
+
{
|
|
4557
|
+
lineHeight: "1.4"
|
|
4558
|
+
}
|
|
4559
|
+
],
|
|
4560
|
+
body: [
|
|
4561
|
+
"1",
|
|
4562
|
+
{
|
|
4563
|
+
lineHeight: "1.4"
|
|
4564
|
+
}
|
|
4565
|
+
],
|
|
4566
|
+
small: [
|
|
4567
|
+
"1",
|
|
4568
|
+
{
|
|
4569
|
+
lineHeight: "19px"
|
|
4570
|
+
}
|
|
4571
|
+
],
|
|
4572
|
+
code: [
|
|
4573
|
+
"90%",
|
|
4574
|
+
{
|
|
4575
|
+
lineHeight: "1.5"
|
|
4576
|
+
}
|
|
4577
|
+
],
|
|
4578
|
+
button: [
|
|
4579
|
+
"0.8rem",
|
|
4580
|
+
{
|
|
4581
|
+
lineHeight: "1.4",
|
|
4582
|
+
letterSpacing: "-0.2px"
|
|
4583
|
+
}
|
|
4584
|
+
],
|
|
4585
|
+
label: [
|
|
4586
|
+
"0.62rem",
|
|
4587
|
+
{
|
|
4588
|
+
lineHeight: "19px",
|
|
4589
|
+
letterSpacing: "-0.3px"
|
|
4590
|
+
}
|
|
4591
|
+
]
|
|
4592
|
+
},
|
|
4593
|
+
spacing: {
|
|
4594
|
+
nano: "2px",
|
|
4595
|
+
micro: "4px",
|
|
4596
|
+
small: "8px",
|
|
4597
|
+
medium: "16px",
|
|
4598
|
+
large: "32px",
|
|
4599
|
+
xlarge: "64px",
|
|
4600
|
+
xxlarge: "128px",
|
|
4601
|
+
"inset-top": "var(--inset-top)",
|
|
4602
|
+
"sidebar-width": "var(--sidebar-width)",
|
|
4603
|
+
"toolbar-height": "var(--toolbar-height)",
|
|
4604
|
+
"toolbar-separator": "var(--toolbar-separator)",
|
|
4605
|
+
"inspector-h-separator": "var(--inspector-h-separator)",
|
|
4606
|
+
"inspector-v-separator": "var(--inspector-v-separator)",
|
|
4607
|
+
"dialog-padding": "var(--dialog-padding)"
|
|
4608
|
+
},
|
|
4609
|
+
keyframes: {
|
|
4610
|
+
spin: {
|
|
4611
|
+
"0%": { transform: "rotate(0deg)" },
|
|
4612
|
+
"100%": { transform: "rotate(360deg)" }
|
|
4613
|
+
},
|
|
4614
|
+
shimmer: {
|
|
4615
|
+
"0%": {
|
|
4616
|
+
backgroundPosition: "-200% 0"
|
|
4617
|
+
},
|
|
4618
|
+
"100%": {
|
|
4619
|
+
backgroundPosition: "200% 0"
|
|
4620
|
+
}
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
4623
|
+
animation: {
|
|
4624
|
+
spin: "spin 1s linear infinite",
|
|
4625
|
+
shimmer: "shimmer 6s infinite linear"
|
|
4626
|
+
},
|
|
4627
|
+
zIndex: {
|
|
4628
|
+
interactable: "var(--interactable-z-index)",
|
|
4629
|
+
label: "var(--label-z-index)"
|
|
4630
|
+
}
|
|
4631
|
+
}
|
|
4632
|
+
},
|
|
4633
|
+
safelist: [
|
|
4634
|
+
"group",
|
|
4635
|
+
"group-hover:flex",
|
|
4636
|
+
"bg-row-highlight",
|
|
4637
|
+
"left-5",
|
|
4638
|
+
"right-6",
|
|
4639
|
+
"m-[0_-24px_0_-20px]",
|
|
4640
|
+
"p-[0_24px_0_20px]",
|
|
4641
|
+
"left-0",
|
|
4642
|
+
"border-divider-strong",
|
|
4643
|
+
"decoration-text-decorative-light",
|
|
4644
|
+
"underline",
|
|
4645
|
+
"-left-2.5",
|
|
4646
|
+
"-mr-2",
|
|
4647
|
+
"border-gray-200",
|
|
4648
|
+
"gap-1.5",
|
|
4649
|
+
"gap-toolbar-separator"
|
|
4650
|
+
]
|
|
4651
|
+
};
|
|
4652
|
+
var tailwind_config_default = config;
|
|
4653
|
+
|
|
4654
|
+
// src/theme/index.ts
|
|
4655
|
+
var cssVars = convertKebabToCamelCase(tailwind_config_default.theme.extend);
|
|
4656
|
+
|
|
4399
4657
|
// src/components/Chip.tsx
|
|
4400
4658
|
function getChipStyles({
|
|
4401
4659
|
$colorScheme,
|
|
@@ -4416,27 +4674,33 @@ function getChipStyles({
|
|
|
4416
4674
|
small: "text-[9px] p-[0px_4px]"
|
|
4417
4675
|
}[$size];
|
|
4418
4676
|
const fontStyles = $monospace ? "font-mono" : "";
|
|
4677
|
+
const shadowStyles = {
|
|
4678
|
+
primary: "shadow-[0_0_0_1px_var(--chip-primary-shadow)_inset]",
|
|
4679
|
+
secondary: "shadow-[0_0_0_1px_var(--chip-secondary-shadow)_inset]",
|
|
4680
|
+
error: "shadow-[0_0_0_1px_var(--chip-error-shadow)_inset]",
|
|
4681
|
+
default: "shadow-[0_0_0_1px_var(--chip-default-shadow)_inset]"
|
|
4682
|
+
};
|
|
4419
4683
|
const variantStyles2 = (() => {
|
|
4420
4684
|
const colors = {
|
|
4421
4685
|
primary: {
|
|
4422
4686
|
text: "text-primary",
|
|
4423
4687
|
bg: "bg-primary-pastel",
|
|
4424
|
-
subtle: "bg-[
|
|
4688
|
+
subtle: "bg-[var(--chip-primary-bg)]"
|
|
4425
4689
|
},
|
|
4426
4690
|
secondary: {
|
|
4427
4691
|
text: "text-secondary",
|
|
4428
4692
|
bg: "bg-secondary-pastel",
|
|
4429
|
-
subtle: "bg-[
|
|
4693
|
+
subtle: "bg-[var(--chip-secondary-bg)]"
|
|
4430
4694
|
},
|
|
4431
4695
|
error: {
|
|
4432
4696
|
text: "text-text",
|
|
4433
4697
|
bg: "bg-[rgb(255,219,219)]",
|
|
4434
|
-
subtle: "bg-[
|
|
4698
|
+
subtle: "bg-[var(--chip-error-bg)]"
|
|
4435
4699
|
},
|
|
4436
4700
|
default: {
|
|
4437
4701
|
text: "text-text",
|
|
4438
4702
|
bg: "bg-input-background",
|
|
4439
|
-
subtle: "bg-[
|
|
4703
|
+
subtle: "bg-[var(--chip-default-bg)]"
|
|
4440
4704
|
}
|
|
4441
4705
|
}[$colorScheme ?? "default"];
|
|
4442
4706
|
if ($variant === "solid") {
|
|
@@ -4445,7 +4709,7 @@ function getChipStyles({
|
|
|
4445
4709
|
if ($variant === "outlined") {
|
|
4446
4710
|
return `
|
|
4447
4711
|
${colors.text} bg-transparent
|
|
4448
|
-
|
|
4712
|
+
${shadowStyles[$colorScheme ?? "default"]}
|
|
4449
4713
|
hover:${colors.subtle} hover:shadow-none
|
|
4450
4714
|
`;
|
|
4451
4715
|
}
|
|
@@ -4498,7 +4762,7 @@ var Chip = (0, import_react7.memo)(
|
|
|
4498
4762
|
onHoverChange: onHoverDeleteChange
|
|
4499
4763
|
});
|
|
4500
4764
|
const handleClick = !children2 && !deletable && addable ? onAdd : onClick;
|
|
4501
|
-
const color = colorScheme === "primary" ?
|
|
4765
|
+
const color = colorScheme === "primary" ? cssVars.colors.primary : colorScheme === "secondary" ? cssVars.colors.secondary : cssVars.colors.text;
|
|
4502
4766
|
return /* @__PURE__ */ import_react7.default.createElement(
|
|
4503
4767
|
"span",
|
|
4504
4768
|
{
|
|
@@ -4612,7 +4876,7 @@ var IconButton = (0, import_react10.memo)(
|
|
|
4612
4876
|
return /* @__PURE__ */ import_react10.default.createElement(Button, { ref: forwardedRef, ...props, variant: "none", contentStyle: style5 }, /* @__PURE__ */ import_react10.default.createElement(
|
|
4613
4877
|
Icon,
|
|
4614
4878
|
{
|
|
4615
|
-
color: color ?? (selected ?
|
|
4879
|
+
color: color ?? (selected ? cssVars.colors.iconSelected : cssVars.colors.icon),
|
|
4616
4880
|
...size3 && { width: size3, height: size3 }
|
|
4617
4881
|
}
|
|
4618
4882
|
));
|
|
@@ -5266,7 +5530,8 @@ var ReadOnlyTextInput = (0, import_react31.forwardRef)(function ReadOnlyTextInpu
|
|
|
5266
5530
|
...rest,
|
|
5267
5531
|
value,
|
|
5268
5532
|
onKeyDown,
|
|
5269
|
-
readOnly: true
|
|
5533
|
+
readOnly: true,
|
|
5534
|
+
className: "focus:z-interactable"
|
|
5270
5535
|
}
|
|
5271
5536
|
);
|
|
5272
5537
|
});
|
|
@@ -5504,31 +5769,35 @@ var InputFieldContext = (0, import_react33.createContext)({
|
|
|
5504
5769
|
onFocusChange: () => {
|
|
5505
5770
|
}
|
|
5506
5771
|
});
|
|
5507
|
-
var LabelContainer = (0, import_react33.forwardRef)(
|
|
5508
|
-
|
|
5509
|
-
|
|
5772
|
+
var LabelContainer = (0, import_react33.forwardRef)(function LabelContainer2({
|
|
5773
|
+
labelPosition: $labelPosition,
|
|
5774
|
+
hasDropdown: $hasDropdown,
|
|
5775
|
+
size: $size,
|
|
5776
|
+
className,
|
|
5777
|
+
style: style5,
|
|
5778
|
+
...props
|
|
5779
|
+
}, ref) {
|
|
5780
|
+
const memoizedStyles = (0, import_react33.useMemo)(
|
|
5781
|
+
() => ({
|
|
5510
5782
|
left: $labelPosition === "start" ? $size === "large" ? "6px" : $size === "medium" ? "2px" : "0px" : "",
|
|
5511
|
-
right: $labelPosition === "end" ? $size === "large" ? "6px" : $size === "medium" ? "2px" : "0px" : ""
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
}
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5783
|
+
right: $labelPosition === "end" ? $size === "large" ? "6px" : $size === "medium" ? "2px" : "0px" : "",
|
|
5784
|
+
...style5
|
|
5785
|
+
}),
|
|
5786
|
+
[$labelPosition, $size, style5]
|
|
5787
|
+
);
|
|
5788
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
|
5789
|
+
"label",
|
|
5790
|
+
{
|
|
5791
|
+
ref,
|
|
5792
|
+
className: `absolute top-0 bottom-0 flex items-center font-sans text-label font-bold uppercase text-text-disabled select-none z-label pointer-events-none ${$labelPosition === "start" ? `justify-start pl-[6px]` : $labelPosition === "end" ? `justify-end ${$hasDropdown ? "pr-[16px]" : "pr-[6px]"}` : ""} ${className ?? ""}`,
|
|
5793
|
+
style: memoizedStyles,
|
|
5794
|
+
...props
|
|
5795
|
+
}
|
|
5796
|
+
);
|
|
5797
|
+
});
|
|
5524
5798
|
var InputFieldLabel = (0, import_react33.memo)(
|
|
5525
|
-
(0, import_react33.forwardRef)(function InputFieldLabel2({
|
|
5526
|
-
|
|
5527
|
-
pointerEvents = "none",
|
|
5528
|
-
style: style5,
|
|
5529
|
-
className
|
|
5530
|
-
}, forwardedRef) {
|
|
5531
|
-
const { labelPosition, hasDropdown, setLabelWidth, size: size3 } = (0, import_react33.useContext)(InputFieldContext);
|
|
5799
|
+
(0, import_react33.forwardRef)(function InputFieldLabel2(props, forwardedRef) {
|
|
5800
|
+
const { labelPosition, hasDropdown, setLabelWidth, size: size3, id } = (0, import_react33.useContext)(InputFieldContext);
|
|
5532
5801
|
const ref = (0, import_react33.useRef)(null);
|
|
5533
5802
|
(0, import_react33.useLayoutEffect)(() => {
|
|
5534
5803
|
if (!setLabelWidth) return;
|
|
@@ -5539,18 +5808,16 @@ var InputFieldLabel = (0, import_react33.memo)(
|
|
|
5539
5808
|
return /* @__PURE__ */ import_react33.default.createElement(
|
|
5540
5809
|
LabelContainer,
|
|
5541
5810
|
{
|
|
5542
|
-
$size: size3,
|
|
5543
5811
|
ref: (element) => {
|
|
5544
5812
|
ref.current = element;
|
|
5545
5813
|
assignRef(forwardedRef, element);
|
|
5546
5814
|
},
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
}
|
|
5553
|
-
children2
|
|
5815
|
+
size: size3,
|
|
5816
|
+
labelPosition,
|
|
5817
|
+
hasDropdown,
|
|
5818
|
+
htmlFor: id,
|
|
5819
|
+
...props
|
|
5820
|
+
}
|
|
5554
5821
|
);
|
|
5555
5822
|
})
|
|
5556
5823
|
);
|
|
@@ -5655,10 +5922,13 @@ var InputElement = (0, import_react33.forwardRef)(
|
|
|
5655
5922
|
}, ref) => {
|
|
5656
5923
|
const paddingLeft = ($size === "large" ? 10 : $size === "medium" ? 6 : 4) + ($labelSize && $labelPosition === "start" ? 6 + $labelSize : 0);
|
|
5657
5924
|
const paddingRight = ($size === "large" ? 10 : $size === "medium" ? 6 : 1) + ($labelSize && $labelPosition === "end" ? 6 + $labelSize : 0) + ($hasDropdown ? 11 : 0);
|
|
5658
|
-
const memoizedStyles = (0, import_react33.useMemo)(
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5925
|
+
const memoizedStyles = (0, import_react33.useMemo)(
|
|
5926
|
+
() => ({
|
|
5927
|
+
paddingLeft: `${paddingLeft}px`,
|
|
5928
|
+
paddingRight: `${paddingRight}px`
|
|
5929
|
+
}),
|
|
5930
|
+
[paddingLeft, paddingRight]
|
|
5931
|
+
);
|
|
5662
5932
|
return /* @__PURE__ */ import_react33.default.createElement(
|
|
5663
5933
|
TextInput_default,
|
|
5664
5934
|
{
|
|
@@ -5666,7 +5936,7 @@ var InputElement = (0, import_react33.forwardRef)(
|
|
|
5666
5936
|
onSubmit: onSubmit ?? (() => {
|
|
5667
5937
|
}),
|
|
5668
5938
|
ref,
|
|
5669
|
-
className: `flex w-0 flex-[1_1_0px] relative border-0 outline-none min-w-0 self-stretch rounded bg-input-background focus:ring-2 focus:ring-primary
|
|
5939
|
+
className: `flex w-0 flex-[1_1_0px] relative border-0 outline-none min-w-0 self-stretch rounded bg-input-background focus:ring-2 focus:ring-primary placeholder:text-text-disabled ${readOnly ? "text-text-muted" : disabled ? "text-text-disabled" : "text-text"} font-sans font-normal ${$textAlign && `text-${$textAlign}`} ${$size === "small" ? "text-[11px] leading-[19px] py-[1px]" : $size === "large" ? "py-[10px] text-heading5" : $size === "medium" ? "py-1 text-heading5" : $variant === "bare" && "p-1 -m-1"} ${className ?? ""}`,
|
|
5670
5940
|
style: memoizedStyles,
|
|
5671
5941
|
...props
|
|
5672
5942
|
}
|
|
@@ -5681,7 +5951,8 @@ var InputFieldInput = (0, import_react33.forwardRef)(function InputFieldInput2({
|
|
|
5681
5951
|
buttonSize,
|
|
5682
5952
|
size: size3,
|
|
5683
5953
|
onFocusChange,
|
|
5684
|
-
setInputRef
|
|
5954
|
+
setInputRef,
|
|
5955
|
+
id
|
|
5685
5956
|
} = (0, import_react33.useContext)(InputFieldContext);
|
|
5686
5957
|
const handleFocusChange = (0, import_react33.useCallback)(
|
|
5687
5958
|
(isFocused) => {
|
|
@@ -5703,6 +5974,7 @@ var InputFieldInput = (0, import_react33.forwardRef)(function InputFieldInput2({
|
|
|
5703
5974
|
$variant: variant,
|
|
5704
5975
|
$textAlign: textAlign,
|
|
5705
5976
|
onFocusChange: handleFocusChange,
|
|
5977
|
+
id,
|
|
5706
5978
|
...rest
|
|
5707
5979
|
}
|
|
5708
5980
|
);
|
|
@@ -5817,6 +6089,7 @@ function InputFieldRoot({
|
|
|
5817
6089
|
className
|
|
5818
6090
|
}) {
|
|
5819
6091
|
const childrenArray = import_react33.Children.toArray(children2);
|
|
6092
|
+
const randomId = (0, import_react33.useId)();
|
|
5820
6093
|
const hasDropdown = childrenArray.some(
|
|
5821
6094
|
(child) => (0, import_react33.isValidElement)(child) && child.type === InputFieldDropdownMenu
|
|
5822
6095
|
);
|
|
@@ -5851,7 +6124,8 @@ function InputFieldRoot({
|
|
|
5851
6124
|
inputRef,
|
|
5852
6125
|
setInputRef,
|
|
5853
6126
|
setLabelWidth: setMeasuredLabelSize,
|
|
5854
|
-
setButtonWidth: setMeasuredButtonSize
|
|
6127
|
+
setButtonWidth: setMeasuredButtonSize,
|
|
6128
|
+
id: id ?? randomId
|
|
5855
6129
|
}),
|
|
5856
6130
|
[
|
|
5857
6131
|
labelPosition,
|
|
@@ -5862,13 +6136,14 @@ function InputFieldRoot({
|
|
|
5862
6136
|
size3,
|
|
5863
6137
|
isFocused,
|
|
5864
6138
|
handleFocusChange,
|
|
5865
|
-
inputRef
|
|
6139
|
+
inputRef,
|
|
6140
|
+
id,
|
|
6141
|
+
randomId
|
|
5866
6142
|
]
|
|
5867
6143
|
);
|
|
5868
6144
|
const rootElement = /* @__PURE__ */ import_react33.default.createElement(
|
|
5869
6145
|
RootContainer,
|
|
5870
6146
|
{
|
|
5871
|
-
id,
|
|
5872
6147
|
$width: width,
|
|
5873
6148
|
$flex: flex,
|
|
5874
6149
|
style: style5,
|
|
@@ -5903,7 +6178,7 @@ var PrimitiveInputField = ({
|
|
|
5903
6178
|
}) => /* @__PURE__ */ import_react33.default.createElement(
|
|
5904
6179
|
"input",
|
|
5905
6180
|
{
|
|
5906
|
-
className: `flex w-0 flex-1 relative border-none outline-none min-w-0 self-stretch rounded py-1 px-1.5 bg-input-background select-all pointer-events-[all] focus:ring-2 focus:ring-primary
|
|
6181
|
+
className: `flex w-0 flex-1 relative border-none outline-none min-w-0 self-stretch rounded py-1 px-1.5 bg-input-background select-all pointer-events-[all] focus:ring-2 focus:ring-primary font-sans font-normal text-heading5 placeholder:text-text-disabled focus:z-interactable ${readOnly ? "text-text-muted" : disabled ? "text-text-disabled" : "text-text"} ${className ?? ""}`,
|
|
5907
6182
|
...props
|
|
5908
6183
|
}
|
|
5909
6184
|
);
|
|
@@ -6435,13 +6710,13 @@ var DraggableMenuButton = (0, import_react41.memo)(function DraggableMenuButton2
|
|
|
6435
6710
|
/* @__PURE__ */ import_react41.default.createElement(Trigger5, null, /* @__PURE__ */ import_react41.default.createElement(
|
|
6436
6711
|
import_noya_icons5.DragHandleDots2Icon,
|
|
6437
6712
|
{
|
|
6438
|
-
color: isVisible || open ?
|
|
6713
|
+
color: isVisible || open ? cssVars.colors.icon : "transparent"
|
|
6439
6714
|
}
|
|
6440
6715
|
))
|
|
6441
6716
|
) : /* @__PURE__ */ import_react41.default.createElement(
|
|
6442
6717
|
import_noya_icons5.DragHandleDots2Icon,
|
|
6443
6718
|
{
|
|
6444
|
-
color: isVisible || open ?
|
|
6719
|
+
color: isVisible || open ? cssVars.colors.icon : "transparent"
|
|
6445
6720
|
}
|
|
6446
6721
|
)
|
|
6447
6722
|
);
|
|
@@ -6857,7 +7132,9 @@ var dotsHorizontalSvg = (fillColor) => `
|
|
|
6857
7132
|
<path d='M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z'></path>
|
|
6858
7133
|
</svg>
|
|
6859
7134
|
`;
|
|
6860
|
-
var Background = (0, import_react44.memo)(function Background2({
|
|
7135
|
+
var Background = (0, import_react44.memo)(function Background2({
|
|
7136
|
+
background: background2
|
|
7137
|
+
}) {
|
|
6861
7138
|
return /* @__PURE__ */ import_react44.default.createElement(
|
|
6862
7139
|
"span",
|
|
6863
7140
|
{
|
|
@@ -6914,17 +7191,12 @@ var GradientPreviewBackground = (0, import_react44.memo)(function GradientPrevie
|
|
|
6914
7191
|
return /* @__PURE__ */ import_react44.default.createElement(Background, { background: background2 });
|
|
6915
7192
|
});
|
|
6916
7193
|
var background = `center url("data:image/svg+xml;utf8,${dotsHorizontalSvg(
|
|
6917
|
-
|
|
7194
|
+
cssVars.colors.placeholderDots
|
|
6918
7195
|
)}") no-repeat`;
|
|
6919
7196
|
var FillPreviewBackground = (0, import_react44.memo)(function FillPreviewBackground2({
|
|
6920
7197
|
value
|
|
6921
7198
|
}) {
|
|
6922
|
-
if (!value) return /* @__PURE__ */ import_react44.default.createElement(
|
|
6923
|
-
Background,
|
|
6924
|
-
{
|
|
6925
|
-
background
|
|
6926
|
-
}
|
|
6927
|
-
);
|
|
7199
|
+
if (!value) return /* @__PURE__ */ import_react44.default.createElement(Background, { background });
|
|
6928
7200
|
switch (value._class) {
|
|
6929
7201
|
case "color":
|
|
6930
7202
|
return /* @__PURE__ */ import_react44.default.createElement(ColorPreviewBackground, { color: value });
|
|
@@ -7196,8 +7468,8 @@ var FloatingWindow = ({
|
|
|
7196
7468
|
left: position.x,
|
|
7197
7469
|
width: size3.width,
|
|
7198
7470
|
height: size3.height,
|
|
7199
|
-
outline: `1px solid
|
|
7200
|
-
backgroundColor:
|
|
7471
|
+
outline: `1px solid ${cssVars.colors.divider}`,
|
|
7472
|
+
backgroundColor: cssVars.colors.canvasBackground
|
|
7201
7473
|
}
|
|
7202
7474
|
},
|
|
7203
7475
|
/* @__PURE__ */ import_react46.default.createElement(
|
|
@@ -7205,7 +7477,7 @@ var FloatingWindow = ({
|
|
|
7205
7477
|
{
|
|
7206
7478
|
style: {
|
|
7207
7479
|
...styles2.toolbar,
|
|
7208
|
-
backgroundColor:
|
|
7480
|
+
backgroundColor: cssVars.colors.sidebarBackground
|
|
7209
7481
|
},
|
|
7210
7482
|
onMouseDown: handleMouseDown
|
|
7211
7483
|
},
|
|
@@ -15004,21 +15276,6 @@ function getPositionMargin(marginType) {
|
|
|
15004
15276
|
bottom: marginType === "bottom" || marginType === "vertical" ? 8 : 0
|
|
15005
15277
|
};
|
|
15006
15278
|
}
|
|
15007
|
-
var theme = {
|
|
15008
|
-
colors: {
|
|
15009
|
-
textMuted: "var(--text-muted)",
|
|
15010
|
-
listView: {
|
|
15011
|
-
raisedBackground: "var(--listview-raised-background)"
|
|
15012
|
-
},
|
|
15013
|
-
secondary: "var(--secondary)",
|
|
15014
|
-
primary: "var(--primary)",
|
|
15015
|
-
textDisabled: "var(--text-disabled)",
|
|
15016
|
-
primaryLight: "var(--primary-light)",
|
|
15017
|
-
secondaryLight: "var(--secondary-light)",
|
|
15018
|
-
activeBackground: "var(--active-background)",
|
|
15019
|
-
dividerSubtle: "var(--divider-subtle)"
|
|
15020
|
-
}
|
|
15021
|
-
};
|
|
15022
15279
|
var RowContainer = (0, import_react51.forwardRef)(
|
|
15023
15280
|
({
|
|
15024
15281
|
className,
|
|
@@ -15036,6 +15293,8 @@ var RowContainer = (0, import_react51.forwardRef)(
|
|
|
15036
15293
|
$gap,
|
|
15037
15294
|
$backgroundColor,
|
|
15038
15295
|
style: style5,
|
|
15296
|
+
"aria-describedby": _,
|
|
15297
|
+
// Causes hydration warning
|
|
15039
15298
|
...props
|
|
15040
15299
|
}, ref) => {
|
|
15041
15300
|
const margin = getPositionMargin($marginType);
|
|
@@ -15063,19 +15322,19 @@ var RowContainer = (0, import_react51.forwardRef)(
|
|
|
15063
15322
|
marginBottom: `${margin.bottom}px`
|
|
15064
15323
|
}
|
|
15065
15324
|
},
|
|
15066
|
-
color:
|
|
15325
|
+
color: cssVars.colors.textMuted,
|
|
15067
15326
|
...$isSectionHeader && {
|
|
15068
|
-
backgroundColor:
|
|
15327
|
+
backgroundColor: cssVars.colors.listviewRaisedBackground,
|
|
15069
15328
|
...$sectionHeaderVariant === "label" && {
|
|
15070
|
-
color:
|
|
15329
|
+
color: cssVars.colors.textDisabled
|
|
15071
15330
|
}
|
|
15072
15331
|
},
|
|
15073
15332
|
...$disabled && {
|
|
15074
|
-
color:
|
|
15333
|
+
color: cssVars.colors.textDisabled
|
|
15075
15334
|
},
|
|
15076
15335
|
...$selected && {
|
|
15077
15336
|
color: "white",
|
|
15078
|
-
backgroundColor:
|
|
15337
|
+
backgroundColor: cssVars.colors[$colorScheme]
|
|
15079
15338
|
},
|
|
15080
15339
|
display: "flex",
|
|
15081
15340
|
alignItems: "center",
|
|
@@ -15089,15 +15348,15 @@ var RowContainer = (0, import_react51.forwardRef)(
|
|
|
15089
15348
|
},
|
|
15090
15349
|
position: "relative",
|
|
15091
15350
|
...$hovered && {
|
|
15092
|
-
boxShadow: `0 0 0 1px ${
|
|
15351
|
+
boxShadow: `0 0 0 1px ${cssVars.colors[$colorScheme]} inset`
|
|
15093
15352
|
},
|
|
15094
15353
|
...$showsActiveState && {
|
|
15095
15354
|
"&:active": {
|
|
15096
|
-
backgroundColor: $selected ? $colorScheme === "secondary" ?
|
|
15355
|
+
backgroundColor: $selected ? $colorScheme === "secondary" ? cssVars.colors.secondaryLight : cssVars.colors.primaryLight : cssVars.colors.activeBackground
|
|
15097
15356
|
}
|
|
15098
15357
|
},
|
|
15099
15358
|
...$divider && {
|
|
15100
|
-
borderBottom: `1px solid ${
|
|
15359
|
+
borderBottom: `1px solid ${cssVars.colors.dividerSubtle}`
|
|
15101
15360
|
},
|
|
15102
15361
|
...$backgroundColor && {
|
|
15103
15362
|
backgroundColor: $backgroundColor,
|
|
@@ -15137,14 +15396,14 @@ var ListViewDragIndicatorElement = (0, import_react51.forwardRef)(
|
|
|
15137
15396
|
borderRadius: "3px",
|
|
15138
15397
|
...$relativeDropPosition === "inside" ? {
|
|
15139
15398
|
inset: 2,
|
|
15140
|
-
boxShadow: `0 0 0 1px
|
|
15399
|
+
boxShadow: `0 0 0 1px ${cssVars.colors.sidebarBackground}, 0 0 0 3px ${$colorScheme === "secondary" ? cssVars.colors.secondary : cssVars.colors.dragOutline}`
|
|
15141
15400
|
} : {
|
|
15142
15401
|
top: $relativeDropPosition === "above" ? -(3 + $gap / 2) : void 0,
|
|
15143
15402
|
bottom: $relativeDropPosition === "below" ? -(3 + $gap / 2) : void 0,
|
|
15144
15403
|
left: $offsetLeft,
|
|
15145
15404
|
right: 0,
|
|
15146
15405
|
height: 6,
|
|
15147
|
-
backgroundColor: $colorScheme === "secondary" ?
|
|
15406
|
+
backgroundColor: $colorScheme === "secondary" ? cssVars.colors.secondary : cssVars.colors.primary,
|
|
15148
15407
|
border: `2px solid white`,
|
|
15149
15408
|
boxShadow: "0 0 2px rgba(0,0,0,0.5)"
|
|
15150
15409
|
},
|
|
@@ -15978,7 +16237,7 @@ var InspectorContainer = (0, import_react53.memo)(
|
|
|
15978
16237
|
display: "flex",
|
|
15979
16238
|
flexDirection: "column",
|
|
15980
16239
|
position: "relative",
|
|
15981
|
-
background:
|
|
16240
|
+
background: cssVars.colors.sidebarBackground,
|
|
15982
16241
|
...style5
|
|
15983
16242
|
}
|
|
15984
16243
|
},
|
|
@@ -15996,7 +16255,7 @@ var Label = (0, import_react54.memo)(
|
|
|
15996
16255
|
"label",
|
|
15997
16256
|
{
|
|
15998
16257
|
ref,
|
|
15999
|
-
className: `font-sans text-label uppercase flex items-center leading-[19px] select-none font-bold text-text-muted ${className ?? ""}`,
|
|
16258
|
+
className: `font-sans text-label uppercase flex items-center leading-[19px] select-none font-bold text-text-muted z-label ${className ?? ""}`,
|
|
16000
16259
|
...props
|
|
16001
16260
|
}
|
|
16002
16261
|
);
|
|
@@ -16142,7 +16401,7 @@ var ToggleGroupItem = (0, import_react57.forwardRef)(function ToggleGroupItem2({
|
|
|
16142
16401
|
ref: forwardedRef,
|
|
16143
16402
|
value,
|
|
16144
16403
|
disabled,
|
|
16145
|
-
className: `font-sans text-heading5 font-normal relative flex-1 appearance-none border-none bg-none text-radio-group-item p-0 m-0 rounded inline-flex items-center justify-center align-middle focus:outline-none focus:shadow-[0_0_0_1px_var(--sidebar-background),0_0_0_3px_${colorScheme === "secondary" ? "var(--secondary)" : "var(--primary)"}] aria-checked:bg-${colorScheme ? colorScheme : "radio-group-background"} aria-checked:text-${colorScheme ? "radio-group-background" : "text"} aria-checked:shadow-${colorScheme ? "none" : "0_1px_1px_rgba(0,0,0,0.1)"}`
|
|
16404
|
+
className: `font-sans text-heading5 font-normal relative flex-1 appearance-none border-none bg-none text-radio-group-item p-0 m-0 rounded inline-flex items-center justify-center align-middle focus:outline-none focus:shadow-[0_0_0_1px_var(--sidebar-background),0_0_0_3px_${colorScheme === "secondary" ? "var(--secondary)" : "var(--primary)"}] aria-checked:bg-${colorScheme ? colorScheme : "radio-group-background"} aria-checked:text-${colorScheme ? "radio-group-background" : "text"} aria-checked:shadow-${colorScheme ? "none" : "0_1px_1px_rgba(0,0,0,0.1)"} focus:z-interactable`
|
|
16146
16405
|
},
|
|
16147
16406
|
children2
|
|
16148
16407
|
);
|
|
@@ -16193,7 +16452,7 @@ var readOnlyStyle = {
|
|
|
16193
16452
|
justifyContent: "flex-start",
|
|
16194
16453
|
textAlign: "left"
|
|
16195
16454
|
};
|
|
16196
|
-
var labelStyles = `font-sans text-label uppercase text-text-disabled leading-[19px] font-bold text-[60%] pointer-events-none flex items-center mr-1.5`;
|
|
16455
|
+
var labelStyles = `font-sans text-label uppercase text-text-disabled leading-[19px] font-bold text-[60%] pointer-events-none flex items-center mr-1.5 z-label`;
|
|
16197
16456
|
var scrollButtonStyles = `
|
|
16198
16457
|
flex
|
|
16199
16458
|
items-center
|
|
@@ -16227,7 +16486,7 @@ var SelectMenu = (0, import_react58.memo)(function SelectMenu2({
|
|
|
16227
16486
|
id,
|
|
16228
16487
|
style: style5,
|
|
16229
16488
|
contentStyle: readOnlyStyle,
|
|
16230
|
-
className: `${className ?? ""} flex-1`,
|
|
16489
|
+
className: `${className ?? ""} flex-1 focus:z-interactable`,
|
|
16231
16490
|
disabled
|
|
16232
16491
|
},
|
|
16233
16492
|
icon && /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, renderIcon(icon), /* @__PURE__ */ import_react58.default.createElement(Spacer.Horizontal, { inline: true, size: 6 })),
|
|
@@ -16241,7 +16500,7 @@ var SelectMenu = (0, import_react58.memo)(function SelectMenu2({
|
|
|
16241
16500
|
{
|
|
16242
16501
|
id,
|
|
16243
16502
|
style: style5,
|
|
16244
|
-
className: `${className ?? "w-full"} flex-1`,
|
|
16503
|
+
className: `${className ?? "w-full"} flex-1 focus:z-interactable`,
|
|
16245
16504
|
disabled
|
|
16246
16505
|
},
|
|
16247
16506
|
icon && /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, renderIcon(icon), /* @__PURE__ */ import_react58.default.createElement(Spacer.Horizontal, { inline: true, size: 6 })),
|
|
@@ -16337,7 +16596,7 @@ var Switch = function Switch2({
|
|
|
16337
16596
|
onCheckedChange: (newValue) => {
|
|
16338
16597
|
onChange(newValue);
|
|
16339
16598
|
},
|
|
16340
|
-
className: `all-unset w-8 h-[19px] bg-active-background rounded-full relative cursor-pointer [webkit-tap-highlight-color:rgba(0,0,0,0)] focus:ring-2 focus:ring-primary focus:ring-offset-[1px] outline-none data-[state=checked]:bg-primary ${colorScheme === "secondary" && "data-[state=checked]:bg-secondary"}`
|
|
16599
|
+
className: `all-unset w-8 h-[19px] bg-active-background rounded-full relative cursor-pointer [webkit-tap-highlight-color:rgba(0,0,0,0)] focus:ring-2 focus:ring-primary focus:ring-offset-[1px] outline-none data-[state=checked]:bg-primary ${colorScheme === "secondary" && "data-[state=checked]:bg-secondary"} focus:z-interactable`
|
|
16341
16600
|
},
|
|
16342
16601
|
/* @__PURE__ */ import_react60.default.createElement(SwitchPrimitive.Thumb, { className: "block w-[15px] h-[15px] bg-white rounded-full transition-transform translate-x-[2px] data-[state=checked]:translate-x-[15px]" })
|
|
16343
16602
|
);
|
|
@@ -16376,7 +16635,7 @@ var AutoResizingTextArea = (0, import_react61.memo)(
|
|
|
16376
16635
|
return /* @__PURE__ */ import_react61.default.createElement(
|
|
16377
16636
|
"textarea",
|
|
16378
16637
|
{
|
|
16379
|
-
className: `font-sans text-heading5 font-normal text-text bg-input-background w-0 flex-1 py-1 px-1.5 border-none outline-none h-[100px] rounded-4 resize-none placeholder:text-text-disabled focus:ring-2 focus:ring-primary
|
|
16638
|
+
className: `font-sans text-heading5 font-normal text-text bg-input-background w-0 flex-1 py-1 px-1.5 border-none outline-none h-[100px] rounded-4 resize-none placeholder:text-text-disabled focus:ring-2 focus:ring-primary read-only:text-text-disabled focus:z-interactable ${className ?? ""}`,
|
|
16380
16639
|
ref: handleRef,
|
|
16381
16640
|
...rest,
|
|
16382
16641
|
onChange: handleChange,
|
|
@@ -16658,7 +16917,7 @@ var WorkspaceLayoutWithTheme = (0, import_react65.forwardRef)(function Workspace
|
|
|
16658
16917
|
id,
|
|
16659
16918
|
className,
|
|
16660
16919
|
style: {
|
|
16661
|
-
backgroundColor:
|
|
16920
|
+
backgroundColor: cssVars.colors.canvasBackground,
|
|
16662
16921
|
display: "flex",
|
|
16663
16922
|
flexDirection: "row",
|
|
16664
16923
|
...style5
|
|
@@ -16697,7 +16956,7 @@ var WorkspaceLayoutWithTheme = (0, import_react65.forwardRef)(function Workspace
|
|
|
16697
16956
|
cursor: "col-resize",
|
|
16698
16957
|
width: "1px",
|
|
16699
16958
|
height: "100%",
|
|
16700
|
-
backgroundColor:
|
|
16959
|
+
backgroundColor: cssVars.colors.divider
|
|
16701
16960
|
}
|
|
16702
16961
|
}
|
|
16703
16962
|
)),
|
|
@@ -16723,7 +16982,7 @@ var WorkspaceLayoutWithTheme = (0, import_react65.forwardRef)(function Workspace
|
|
|
16723
16982
|
cursor: "col-resize",
|
|
16724
16983
|
width: "1px",
|
|
16725
16984
|
height: "100%",
|
|
16726
|
-
backgroundColor:
|
|
16985
|
+
backgroundColor: cssVars.colors.divider
|
|
16727
16986
|
}
|
|
16728
16987
|
}
|
|
16729
16988
|
), /* @__PURE__ */ import_react65.default.createElement(
|
|
@@ -16906,7 +17165,7 @@ var Checkbox3 = (0, import_react68.forwardRef)(({ className, ...props }, ref) =>
|
|
|
16906
17165
|
{
|
|
16907
17166
|
ref,
|
|
16908
17167
|
type: "checkbox",
|
|
16909
|
-
className: cn("m-0", className),
|
|
17168
|
+
className: cn("m-0 focus:z-interactable", className),
|
|
16910
17169
|
...props
|
|
16911
17170
|
}
|
|
16912
17171
|
));
|
|
@@ -16920,12 +17179,16 @@ var Text3 = (0, import_react68.forwardRef)(({ className, ...props }, ref) => /*
|
|
|
16920
17179
|
));
|
|
16921
17180
|
var VerticalSeparator = () => /* @__PURE__ */ import_react68.default.createElement(Spacer.Vertical, { size: "inspector-v-separator" });
|
|
16922
17181
|
var HorizontalSeparator = () => /* @__PURE__ */ import_react68.default.createElement(Spacer.Horizontal, { size: "inspector-h-separator" });
|
|
16923
|
-
var RowLabel = (0, import_react68.forwardRef)(function RowLabel2({
|
|
17182
|
+
var RowLabel = (0, import_react68.forwardRef)(function RowLabel2({
|
|
17183
|
+
className,
|
|
17184
|
+
$textStyle,
|
|
17185
|
+
...props
|
|
17186
|
+
}, ref) {
|
|
16924
17187
|
return /* @__PURE__ */ import_react68.default.createElement(
|
|
16925
|
-
"
|
|
17188
|
+
"label",
|
|
16926
17189
|
{
|
|
16927
17190
|
ref,
|
|
16928
|
-
className: `font-sans text-label uppercase flex items-center leading-[19px] font-bold text-text-subtle ${$textStyle
|
|
17191
|
+
className: `font-sans text-label uppercase flex items-center leading-[19px] font-bold text-text-subtle z-label ${$textStyle ? textStyles[$textStyle] : ""} ${className ?? ""}`,
|
|
16929
17192
|
...props
|
|
16930
17193
|
}
|
|
16931
17194
|
);
|
|
@@ -17011,6 +17274,7 @@ var LabeledRow = (0, import_react68.memo)(function LabeledRow2({
|
|
|
17011
17274
|
WorkspaceLayout,
|
|
17012
17275
|
cn,
|
|
17013
17276
|
createSectionedMenu,
|
|
17277
|
+
cssVars,
|
|
17014
17278
|
fuzzyFilter,
|
|
17015
17279
|
fuzzyScore,
|
|
17016
17280
|
fuzzyTokenize,
|