@estiva-app/ui 0.91.1 → 0.91.2
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/LinkParts.d.ts.map +1 -1
- package/dist/Select.d.ts +7 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/eslint/index.js +1 -1
- package/dist/eslint/index.js.map +2 -2
- package/dist/index.js +7 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/registry.json +26 -10
- package/src/LinkParts.tsx +3 -0
- package/src/Select.mdx +4 -0
- package/src/Select.stories.tsx +11 -1
- package/src/Select.tsx +10 -2
- package/src/eslint/no-restyled-part.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -2927,7 +2927,7 @@ import { Select as BaseSelect } from "@base-ui/react/select";
|
|
|
2927
2927
|
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2928
2928
|
var GAP4 = 4;
|
|
2929
2929
|
var VIEWPORT_PAD4 = 8;
|
|
2930
|
-
function Select({ value, onChange, options, size = "default", ariaLabel, placeholder = "Select\u2026", disabled, disabledReason, className, ...aria }) {
|
|
2930
|
+
function Select({ value, onChange, options, size = "default", fill = "field", ariaLabel, placeholder = "Select\u2026", disabled, disabledReason, className, ...aria }) {
|
|
2931
2931
|
const selected = options.find((o) => o.value === value);
|
|
2932
2932
|
const held = Boolean(disabledReason);
|
|
2933
2933
|
const trigger = (
|
|
@@ -2947,7 +2947,9 @@ function Select({ value, onChange, options, size = "default", ariaLabel, placeho
|
|
|
2947
2947
|
* `truncate` from ever engaging; in a block container max-w-full is
|
|
2948
2948
|
* the cap. Full-width callers are unaffected.
|
|
2949
2949
|
*/
|
|
2950
|
-
"flex w-full min-w-0 max-w-full items-center justify-between gap-2 rounded-lg border
|
|
2950
|
+
"flex w-full min-w-0 max-w-full items-center justify-between gap-2 rounded-lg border text-left",
|
|
2951
|
+
// Leaf's fields are white, raised on their shadow, and stay so on a card: they never read as a hole (Katerina, 30 Oct).
|
|
2952
|
+
fill === "wash" ? "bg-bg-wash leaf:bg-bg-field leaf:shadow-field" : "bg-bg-field shadow-field",
|
|
2951
2953
|
"border-border-field outline-none transition-colors",
|
|
2952
2954
|
FIELD_TEXT_CLASSES,
|
|
2953
2955
|
// The focused border survives a hover: hover alone strengthens the
|
|
@@ -4407,6 +4409,7 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
|
|
|
4407
4409
|
const ownerWords = owner && (readOnly || !owner.onChange);
|
|
4408
4410
|
return (
|
|
4409
4411
|
// As words, 16px apart, so the status and the person read as two things; as boxed pickers their borders already part them (Katerina, 29 Oct).
|
|
4412
|
+
// Boxed, they are see-through as the card they sit in is: a field's fill was a dark hole on a selected message (Katerina, 30 Oct).
|
|
4410
4413
|
/* @__PURE__ */ jsxs41("span", { className: cn("flex h-6 min-w-0 items-center text-caption text-text-secondary", statusWords || ownerWords ? "gap-4" : "gap-2"), children: [
|
|
4411
4414
|
status && (statusWords ? /* @__PURE__ */ jsxs41("span", { className: "inline-flex shrink-0 items-center gap-1", children: [
|
|
4412
4415
|
statusNow?.colour && /* @__PURE__ */ jsx60(StatusIcon, { colour: statusNow.colour }),
|
|
@@ -4415,6 +4418,7 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
|
|
|
4415
4418
|
Select,
|
|
4416
4419
|
{
|
|
4417
4420
|
size: "small",
|
|
4421
|
+
fill: "wash",
|
|
4418
4422
|
className: "w-auto",
|
|
4419
4423
|
value: status.value ?? "",
|
|
4420
4424
|
onChange: (value) => status.onChange?.(value),
|
|
@@ -4429,6 +4433,7 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
|
|
|
4429
4433
|
Select,
|
|
4430
4434
|
{
|
|
4431
4435
|
size: "small",
|
|
4436
|
+
fill: "wash",
|
|
4432
4437
|
className: "w-auto",
|
|
4433
4438
|
value: owner.value ?? "",
|
|
4434
4439
|
placeholder: "Unassigned",
|