@stll/workspace-ui 0.15.8 → 0.17.0
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/conditions/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CONDITION_OPERATORS, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./logic.js";
|
|
2
1
|
import { ConditionBuilder } from "./builder.js";
|
|
2
|
+
import { CONDITION_OPERATORS, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./logic.js";
|
|
3
3
|
export { CONDITION_OPERATORS, ConditionBuilder, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor };
|
|
@@ -65,7 +65,7 @@ const PreviewTaskCard = ({ task, locale }) => {
|
|
|
65
65
|
/* @__PURE__ */ jsxs("div", {
|
|
66
66
|
className: "text-muted-foreground flex min-w-0 items-center gap-1.5 leading-none",
|
|
67
67
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
68
|
-
className: "bg-muted/60 flex min-w-0 items-center gap-1 rounded px-1.5 py-0.5 whitespace-nowrap tabular-nums",
|
|
68
|
+
className: "bg-muted/60 flex min-w-0 items-center gap-1 rounded-sm px-1.5 py-0.5 whitespace-nowrap tabular-nums",
|
|
69
69
|
children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "size-3 shrink-0" }), formatPreviewDate({
|
|
70
70
|
locale,
|
|
71
71
|
date: task.due,
|
package/dist/field-value.d.ts
CHANGED
|
@@ -73,5 +73,5 @@ type PendingSkeletonProps = {
|
|
|
73
73
|
};
|
|
74
74
|
export declare const PendingSkeleton: ({ contentType }: PendingSkeletonProps) => import("react").JSX.Element;
|
|
75
75
|
export declare const getSelectPropertyColor: (property: GenericProperty, option: string | null) => import("@stll/ui/option-color").ColorVariants | undefined;
|
|
76
|
-
export declare const getIntClassName: (variant: FieldValueVariant) => "block max-w-full min-w-0 truncate text-start tabular-nums" | "block min-w-0 max-w-full truncate text-start text-sm tabular-nums" | "text-muted-foreground bg-muted/60 rounded px-1.5 py-0.5 text-xs leading-none tabular-nums";
|
|
76
|
+
export declare const getIntClassName: (variant: FieldValueVariant) => "block max-w-full min-w-0 truncate text-start tabular-nums" | "block min-w-0 max-w-full truncate text-start text-sm tabular-nums" | "text-muted-foreground bg-muted/60 rounded-sm px-1.5 py-0.5 text-xs leading-none tabular-nums";
|
|
77
77
|
export {};
|
package/dist/field-value.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useFormatter, useFormattingLocale } from "./formatting.js";
|
|
2
1
|
import { emptyColor, resolveOptionColor } from "./colors.js";
|
|
3
2
|
import { getClipFieldValueLabel, summarizeRecordField } from "./field-value-logic.js";
|
|
3
|
+
import { useFormatter, useFormattingLocale } from "./formatting.js";
|
|
4
4
|
import { Result, panic } from "better-result";
|
|
5
5
|
import { formatMoneyCents } from "@stll/money";
|
|
6
6
|
import { SquareMinusIcon } from "@stll/ui/icons";
|
|
@@ -136,7 +136,7 @@ const MoneyFieldValue = ({ content, variant }) => {
|
|
|
136
136
|
};
|
|
137
137
|
const PersonFieldValue = ({ content, variant }) => {
|
|
138
138
|
return /* @__PURE__ */ jsxs("span", {
|
|
139
|
-
className: cn("flex max-w-full min-w-0 items-center truncate", (variant ?? "default") === "kanban" ? "text-muted-foreground bg-muted/60 gap-1 rounded px-1.5 py-0.5 text-xs leading-none" : "gap-1.5 text-sm"),
|
|
139
|
+
className: cn("flex max-w-full min-w-0 items-center truncate", (variant ?? "default") === "kanban" ? "text-muted-foreground bg-muted/60 gap-1 rounded-sm px-1.5 py-0.5 text-xs leading-none" : "gap-1.5 text-sm"),
|
|
140
140
|
children: [/* @__PURE__ */ jsx(PersonAvatar, {
|
|
141
141
|
image: content.image,
|
|
142
142
|
name: content.name
|
|
@@ -263,7 +263,7 @@ const DateFieldValue = ({ content, property, variant }) => {
|
|
|
263
263
|
timeZone: "UTC"
|
|
264
264
|
});
|
|
265
265
|
if (variant === "kanban") return /* @__PURE__ */ jsx("span", {
|
|
266
|
-
className: "text-muted-foreground bg-muted/60 rounded px-1.5 py-0.5 text-xs leading-none",
|
|
266
|
+
className: "text-muted-foreground bg-muted/60 rounded-sm px-1.5 py-0.5 text-xs leading-none",
|
|
267
267
|
children: formatted
|
|
268
268
|
});
|
|
269
269
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -276,7 +276,7 @@ const SelectFieldValue = ({ property, value, variant }) => {
|
|
|
276
276
|
const color = getSelectPropertyColor(property, value);
|
|
277
277
|
if (variant === "kanban") return /* @__PURE__ */ jsx(BidiText, {
|
|
278
278
|
as: "span",
|
|
279
|
-
className: "max-w-full truncate rounded px-1.5 py-0.5 text-xs leading-none font-medium",
|
|
279
|
+
className: "max-w-full truncate rounded-sm px-1.5 py-0.5 text-xs leading-none font-medium",
|
|
280
280
|
style: {
|
|
281
281
|
backgroundColor: color?.background,
|
|
282
282
|
color: color?.foreground
|
|
@@ -284,7 +284,7 @@ const SelectFieldValue = ({ property, value, variant }) => {
|
|
|
284
284
|
children: value ?? t("common.empty")
|
|
285
285
|
});
|
|
286
286
|
return /* @__PURE__ */ jsxs("span", {
|
|
287
|
-
className: variant === "table" ? "flex max-w-full items-center gap-x-1 rounded px-1 py-0.25 font-medium" : "flex w-max max-w-full items-center gap-x-1 rounded px-1 py-0.25 text-sm font-medium",
|
|
287
|
+
className: variant === "table" ? "flex max-w-full items-center gap-x-1 rounded-sm px-1 py-0.25 font-medium" : "flex w-max max-w-full items-center gap-x-1 rounded-sm px-1 py-0.25 text-sm font-medium",
|
|
288
288
|
style: {
|
|
289
289
|
backgroundColor: color?.background,
|
|
290
290
|
color: color?.foreground
|
|
@@ -321,7 +321,7 @@ const ClipFieldValue = ({ content, variant }) => {
|
|
|
321
321
|
});
|
|
322
322
|
if (variant === "kanban") return /* @__PURE__ */ jsx(BidiText, {
|
|
323
323
|
as: "span",
|
|
324
|
-
className: "text-muted-foreground bg-muted/60 truncate rounded px-1.5 py-0.5 text-xs leading-none",
|
|
324
|
+
className: "text-muted-foreground bg-muted/60 truncate rounded-sm px-1.5 py-0.5 text-xs leading-none",
|
|
325
325
|
children: value
|
|
326
326
|
});
|
|
327
327
|
return /* @__PURE__ */ jsx(BidiText, {
|
|
@@ -352,7 +352,7 @@ const getSelectPropertyColor = (property, option) => {
|
|
|
352
352
|
return resolveOptionColor(color);
|
|
353
353
|
};
|
|
354
354
|
const getIntClassName = (variant) => {
|
|
355
|
-
if (variant === "kanban") return "text-muted-foreground bg-muted/60 rounded px-1.5 py-0.5 text-xs leading-none tabular-nums";
|
|
355
|
+
if (variant === "kanban") return "text-muted-foreground bg-muted/60 rounded-sm px-1.5 py-0.5 text-xs leading-none tabular-nums";
|
|
356
356
|
if (variant === "table") return "block max-w-full min-w-0 truncate text-start tabular-nums";
|
|
357
357
|
return "block min-w-0 max-w-full truncate text-start text-sm tabular-nums";
|
|
358
358
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { CalculationKindPicker, CalculationPicker, CalculationSummary, ColumnCalculation, useCalculation } from "./calculations.js";
|
|
1
2
|
import { formatCalculationResult } from "./calculation-format.js";
|
|
2
3
|
import { applyCalculationSelection } from "./calculation-selection.js";
|
|
3
|
-
import { WorkspaceUiFormattingProvider } from "./formatting.js";
|
|
4
|
-
import { CalculationKindPicker, CalculationPicker, CalculationSummary, ColumnCalculation, useCalculation } from "./calculations.js";
|
|
5
4
|
import { emptyColor, optionColors, resolveOptionColor } from "./colors.js";
|
|
6
|
-
import { getClipFieldValueLabel } from "./field-value-logic.js";
|
|
7
|
-
import { FieldValue, IntFieldValue, MoneyFieldValue, PersonFieldValue } from "./field-value.js";
|
|
8
|
-
import { CONDITION_OPERATORS, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./conditions/logic.js";
|
|
9
5
|
import { ConditionBuilder } from "./conditions/builder.js";
|
|
6
|
+
import { CONDITION_OPERATORS, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./conditions/logic.js";
|
|
7
|
+
import { FieldValue, IntFieldValue, MoneyFieldValue, PersonFieldValue } from "./field-value.js";
|
|
8
|
+
import { getClipFieldValueLabel } from "./field-value-logic.js";
|
|
9
|
+
import { WorkspaceUiFormattingProvider } from "./formatting.js";
|
|
10
10
|
import { PropertyIcon } from "./property-icon.js";
|
|
11
11
|
import { SortChips } from "./sorts.js";
|
|
12
12
|
import { TableSkeletonRows } from "./table-skeleton-rows.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/workspace-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Reusable workspace presentation components and view helpers for Stella.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calculations",
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
"test:property": "bun test --preload @stll/property-testing/preload $(grep -rlE 'fc\\.assert|assertProperty' src --include='*.test.ts')"
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@stll/calculations": "^0.1.
|
|
130
|
+
"@stll/calculations": "^0.1.4",
|
|
131
131
|
"@stll/conditions": "^0.4.0",
|
|
132
|
-
"@stll/money": "^0.
|
|
133
|
-
"@stll/ui": "^0.
|
|
132
|
+
"@stll/money": "^0.4.0",
|
|
133
|
+
"@stll/ui": "^0.68.0",
|
|
134
134
|
"better-result": "3.0.1",
|
|
135
|
-
"temporal-polyfill": "1.0.
|
|
135
|
+
"temporal-polyfill": "1.0.6",
|
|
136
136
|
"use-intl": "4.14.9"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
"react": "^19.3.1",
|
|
150
150
|
"react-dom": "^19.3.1",
|
|
151
151
|
"tailwindcss": "4.3.3",
|
|
152
|
-
"tsdown": "0.23.
|
|
153
|
-
"tsrs": "0.
|
|
152
|
+
"tsdown": "0.23.4",
|
|
153
|
+
"tsrs": "0.20.1-ts7.1.0-beta"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|
|
156
156
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|