@antscorp/ui 0.1.3 → 0.1.5
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/README.md +25 -1
- package/dist/atoms/AddButton.d.ts +3 -5
- package/dist/atoms/Chip.d.ts +3 -3
- package/dist/atoms/Chip.js +1 -1
- package/dist/atoms/RemoveButton.d.ts +3 -5
- package/dist/atoms/TextAction.d.ts +3 -3
- package/dist/docs.json +1 -1
- package/dist/lib/forwardable.d.ts +8 -0
- package/dist/lib/iso.d.ts +2 -2
- package/dist/lib/iso.js +16 -8
- package/dist/lib/tokenEditorExtensions.js +1 -1
- package/dist/molecules/AccentCard.js +2 -2
- package/dist/molecules/CheckGroup.d.ts +2 -1
- package/dist/molecules/CheckRow.d.ts +3 -5
- package/dist/molecules/ChoiceTiles.js +1 -1
- package/dist/molecules/CommitTextField.d.ts +2 -19
- package/dist/molecules/CommitTextField.js +21 -18
- package/dist/molecules/ConfirmDialog.d.ts +3 -7
- package/dist/molecules/DateTimeInput.d.ts +7 -3
- package/dist/molecules/DateTimeInput.js +82 -73
- package/dist/molecules/DurationInput.d.ts +2 -1
- package/dist/molecules/PercentRow.d.ts +2 -1
- package/dist/molecules/RemovableRow.js +32 -32
- package/dist/molecules/RevealRadioGroup.d.ts +3 -9
- package/dist/molecules/RevealSwitch.d.ts +3 -7
- package/dist/molecules/Select.d.ts +8 -23
- package/dist/molecules/Select.js +26 -20
- package/dist/molecules/StatusButton.d.ts +3 -7
- package/dist/molecules/ToggleGrid.d.ts +2 -1
- package/dist/molecules/TokenTextField.d.ts +2 -1
- package/dist/molecules/TreeOptions.d.ts +3 -2
- package/dist/molecules/TreeOptions.js +67 -44
- package/dist/organisms/HourOfDayRow.js +2 -2
- package/dist/organisms/HourOfWeekGrid.js +2 -2
- package/dist/organisms/TokenPickerDialog.d.ts +2 -1
- package/dist/organisms/TransferPicker.d.ts +2 -1
- package/dist/organisms/TreeSearchPanel.js +50 -47
- package/dist/theme/AntsomiTheme.d.ts +3 -2
- package/dist/theme/AntsomiTheme.js +8 -7
- package/dist/ui.css +1 -1
- package/package.json +23 -17
- package/src/atoms/AddButton.tsx +3 -6
- package/src/atoms/Chip.tsx +6 -5
- package/src/atoms/RemoveButton.tsx +4 -6
- package/src/atoms/TextAction.tsx +4 -4
- package/src/lib/forwardable.ts +8 -0
- package/src/lib/iso.ts +15 -3
- package/src/lib/tokenEditorExtensions.ts +1 -1
- package/src/molecules/AccentCard.tsx +4 -2
- package/src/molecules/CheckGroup.tsx +3 -3
- package/src/molecules/CheckRow.tsx +3 -6
- package/src/molecules/ChoiceTiles.tsx +3 -1
- package/src/molecules/CommitTextField.tsx +18 -20
- package/src/molecules/ConfirmDialog.tsx +6 -8
- package/src/molecules/DateTimeInput.tsx +87 -68
- package/src/molecules/DurationInput.tsx +4 -1
- package/src/molecules/PercentRow.tsx +3 -2
- package/src/molecules/RemovableRow.tsx +1 -1
- package/src/molecules/RevealRadioGroup.tsx +5 -10
- package/src/molecules/RevealSwitch.tsx +4 -8
- package/src/molecules/Select.tsx +25 -22
- package/src/molecules/StatusButton.tsx +4 -8
- package/src/molecules/ToggleGrid.tsx +3 -3
- package/src/molecules/TokenTextField.tsx +3 -3
- package/src/molecules/TreeOptions.tsx +86 -62
- package/src/organisms/HourOfDayRow.tsx +4 -2
- package/src/organisms/HourOfWeekGrid.tsx +4 -2
- package/src/organisms/TokenPickerDialog.tsx +2 -1
- package/src/organisms/TransferPicker.tsx +3 -3
- package/src/organisms/TreeSearchPanel.tsx +1 -1
- package/src/theme/AntsomiTheme.tsx +9 -3
- package/dist/atoms/AddButton.doc.d.ts +0 -21
- package/dist/atoms/AddGlyph.doc.d.ts +0 -16
- package/dist/atoms/Chip.doc.d.ts +0 -29
- package/dist/atoms/ChipSkeletons.doc.d.ts +0 -21
- package/dist/atoms/FieldHeading.doc.d.ts +0 -15
- package/dist/atoms/HoverSwap.doc.d.ts +0 -25
- package/dist/atoms/InfoTip.doc.d.ts +0 -25
- package/dist/atoms/JointLabel.doc.d.ts +0 -15
- package/dist/atoms/LabeledDivider.doc.d.ts +0 -21
- package/dist/atoms/LogoImage.doc.d.ts +0 -21
- package/dist/atoms/PanelSearchInput.doc.d.ts +0 -25
- package/dist/atoms/PathMark.doc.d.ts +0 -16
- package/dist/atoms/RemoveButton.doc.d.ts +0 -16
- package/dist/atoms/RowSkeletons.doc.d.ts +0 -25
- package/dist/atoms/TextAction.doc.d.ts +0 -25
- package/dist/atoms/TruncatedOption.doc.d.ts +0 -24
- package/dist/atoms/TruncatedText.doc.d.ts +0 -15
- package/dist/molecules/AccentCard.doc.d.ts +0 -25
- package/dist/molecules/CheckGroup.doc.d.ts +0 -25
- package/dist/molecules/CheckRow.doc.d.ts +0 -25
- package/dist/molecules/ChoiceDialog.doc.d.ts +0 -21
- package/dist/molecules/ChoiceTiles.doc.d.ts +0 -21
- package/dist/molecules/CommitTextField.doc.d.ts +0 -29
- package/dist/molecules/ConfirmDialog.doc.d.ts +0 -21
- package/dist/molecules/DateTimeInput.doc.d.ts +0 -25
- package/dist/molecules/DurationInput.doc.d.ts +0 -25
- package/dist/molecules/FieldGroup.doc.d.ts +0 -25
- package/dist/molecules/FieldRow.doc.d.ts +0 -24
- package/dist/molecules/FieldSkeleton.doc.d.ts +0 -25
- package/dist/molecules/FrequencyLimitRow.doc.d.ts +0 -25
- package/dist/molecules/InlineEditableText.doc.d.ts +0 -25
- package/dist/molecules/LoadMoreRow.doc.d.ts +0 -21
- package/dist/molecules/LoadState.doc.d.ts +0 -21
- package/dist/molecules/MetaTable.doc.d.ts +0 -25
- package/dist/molecules/PercentRow.doc.d.ts +0 -25
- package/dist/molecules/PhoneFrame.doc.d.ts +0 -21
- package/dist/molecules/ProblemsButton.doc.d.ts +0 -25
- package/dist/molecules/RemovableRow.doc.d.ts +0 -25
- package/dist/molecules/RevealRadioGroup.doc.d.ts +0 -25
- package/dist/molecules/RevealSwitch.doc.d.ts +0 -25
- package/dist/molecules/RuleRow.doc.d.ts +0 -25
- package/dist/molecules/Select.doc.d.ts +0 -30
- package/dist/molecules/SideLabelRow.doc.d.ts +0 -20
- package/dist/molecules/SplitButton.doc.d.ts +0 -25
- package/dist/molecules/StatusButton.doc.d.ts +0 -25
- package/dist/molecules/TagSelect.doc.d.ts +0 -25
- package/dist/molecules/ToggleGrid.doc.d.ts +0 -25
- package/dist/molecules/TokenTextField.doc.d.ts +0 -29
- package/dist/molecules/TransferLayout.doc.d.ts +0 -25
- package/dist/molecules/TreeOptions.doc.d.ts +0 -25
- package/dist/organisms/ChipListAddPopover.doc.d.ts +0 -25
- package/dist/organisms/HourOfDayRow.doc.d.ts +0 -25
- package/dist/organisms/HourOfWeekGrid.doc.d.ts +0 -25
- package/dist/organisms/RepeatableList.doc.d.ts +0 -21
- package/dist/organisms/ResizableDrawer.doc.d.ts +0 -25
- package/dist/organisms/RuleGroups.doc.d.ts +0 -21
- package/dist/organisms/RuleList.doc.d.ts +0 -25
- package/dist/organisms/SearchableGroupedList.doc.d.ts +0 -25
- package/dist/organisms/TokenPickerDialog.doc.d.ts +0 -21
- package/dist/organisms/TransferPicker.doc.d.ts +0 -29
- package/dist/organisms/TreeSearchPanel.doc.d.ts +0 -25
- package/dist/organisms/TreeSelect.doc.d.ts +0 -29
- package/dist/theme/AntsomiTheme.doc.d.ts +0 -15
- package/dist/theme/AntsomiTheme.doc.js +0 -22
- package/src/atoms/AddButton.doc.ts +0 -36
- package/src/atoms/AddGlyph.doc.ts +0 -26
- package/src/atoms/Chip.doc.ts +0 -45
- package/src/atoms/ChipSkeletons.doc.ts +0 -31
- package/src/atoms/FieldHeading.doc.ts +0 -22
- package/src/atoms/HoverSwap.doc.ts +0 -39
- package/src/atoms/InfoTip.doc.ts +0 -37
- package/src/atoms/JointLabel.doc.ts +0 -23
- package/src/atoms/LabeledDivider.doc.ts +0 -35
- package/src/atoms/LogoImage.doc.ts +0 -42
- package/src/atoms/PanelSearchInput.doc.ts +0 -41
- package/src/atoms/PathMark.doc.ts +0 -25
- package/src/atoms/RemoveButton.doc.ts +0 -26
- package/src/atoms/RowSkeletons.doc.ts +0 -43
- package/src/atoms/TextAction.doc.ts +0 -40
- package/src/atoms/TruncatedOption.doc.ts +0 -39
- package/src/atoms/TruncatedText.doc.ts +0 -22
- package/src/molecules/AccentCard.doc.ts +0 -43
- package/src/molecules/CheckGroup.doc.ts +0 -40
- package/src/molecules/CheckRow.doc.ts +0 -43
- package/src/molecules/ChoiceDialog.doc.ts +0 -48
- package/src/molecules/ChoiceTiles.doc.ts +0 -42
- package/src/molecules/CommitTextField.doc.ts +0 -41
- package/src/molecules/ConfirmDialog.doc.ts +0 -43
- package/src/molecules/DateTimeInput.doc.ts +0 -48
- package/src/molecules/DurationInput.doc.ts +0 -36
- package/src/molecules/FieldGroup.doc.ts +0 -41
- package/src/molecules/FieldRow.doc.ts +0 -36
- package/src/molecules/FieldSkeleton.doc.ts +0 -38
- package/src/molecules/FrequencyLimitRow.doc.ts +0 -48
- package/src/molecules/InlineEditableText.doc.ts +0 -41
- package/src/molecules/LoadMoreRow.doc.ts +0 -36
- package/src/molecules/LoadState.doc.ts +0 -42
- package/src/molecules/MetaTable.doc.ts +0 -46
- package/src/molecules/PercentRow.doc.ts +0 -48
- package/src/molecules/PhoneFrame.doc.ts +0 -46
- package/src/molecules/ProblemsButton.doc.ts +0 -41
- package/src/molecules/RemovableRow.doc.ts +0 -48
- package/src/molecules/RevealRadioGroup.doc.ts +0 -41
- package/src/molecules/RevealSwitch.doc.ts +0 -38
- package/src/molecules/RuleRow.doc.ts +0 -43
- package/src/molecules/Select.doc.ts +0 -62
- package/src/molecules/SideLabelRow.doc.ts +0 -35
- package/src/molecules/SplitButton.doc.ts +0 -41
- package/src/molecules/StatusButton.doc.ts +0 -39
- package/src/molecules/TagSelect.doc.ts +0 -41
- package/src/molecules/ToggleGrid.doc.ts +0 -43
- package/src/molecules/TokenTextField.doc.ts +0 -41
- package/src/molecules/TransferLayout.doc.ts +0 -42
- package/src/molecules/TreeOptions.doc.ts +0 -38
- package/src/organisms/ChipListAddPopover.doc.ts +0 -54
- package/src/organisms/HourOfDayRow.doc.ts +0 -43
- package/src/organisms/HourOfWeekGrid.doc.ts +0 -48
- package/src/organisms/RepeatableList.doc.ts +0 -49
- package/src/organisms/ResizableDrawer.doc.ts +0 -48
- package/src/organisms/RuleGroups.doc.ts +0 -49
- package/src/organisms/RuleList.doc.ts +0 -43
- package/src/organisms/SearchableGroupedList.doc.ts +0 -49
- package/src/organisms/TokenPickerDialog.doc.ts +0 -54
- package/src/organisms/TransferPicker.doc.ts +0 -69
- package/src/organisms/TreeSearchPanel.doc.ts +0 -43
- package/src/organisms/TreeSelect.doc.ts +0 -56
- package/src/theme/AntsomiTheme.doc.ts +0 -23
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props taken from another component (`Pick`/`Omit`) whose optional ones also accept `undefined`,
|
|
3
|
+
* as the kit's own props do, so a host under `exactOptionalPropertyTypes` can forward its own
|
|
4
|
+
* optional value (`isDisabled={props.isDisabled}`). Required props stay as they are.
|
|
5
|
+
*/
|
|
6
|
+
export type Forwardable<T> = {
|
|
7
|
+
[K in keyof T]: Partial<Pick<T, K>> extends Pick<T, K> ? T[K] | undefined : T[K];
|
|
8
|
+
};
|
package/dist/lib/iso.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { type ISODateString, type ISOTimeString } from "@astryxdesign/core/utils
|
|
|
3
3
|
export declare function timeValue(time: string): {
|
|
4
4
|
readonly value?: ISOTimeString;
|
|
5
5
|
};
|
|
6
|
-
/** Spread into a date input: `{ value }`
|
|
6
|
+
/** Spread into a date input: `{ value }` for a valid calendar date in `YYYY-MM-DD`, `{}` otherwise. */
|
|
7
7
|
export declare function dateValue(date: string): {
|
|
8
8
|
readonly value?: ISODateString;
|
|
9
9
|
};
|
|
10
|
-
/** Spread into a date input: `{ min }`
|
|
10
|
+
/** Spread into a date input: `{ min }` for a valid calendar date in `YYYY-MM-DD`, `{}` otherwise. */
|
|
11
11
|
export declare function minDate(min: string | undefined): {
|
|
12
12
|
readonly min?: ISODateString;
|
|
13
13
|
};
|
package/dist/lib/iso.js
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { createISOTimeString as e } from "@astryxdesign/core/utils";
|
|
1
|
+
import { createISOTimeString as e, parseISO as t } from "@astryxdesign/core/utils";
|
|
2
2
|
// src/lib/iso.ts
|
|
3
|
-
function
|
|
3
|
+
function n(t) {
|
|
4
4
|
let n = e(t);
|
|
5
5
|
return n === null ? {} : { value: n };
|
|
6
6
|
}
|
|
7
|
-
var
|
|
8
|
-
function r(e) {
|
|
9
|
-
return n(e) ? { value: e } : {};
|
|
10
|
-
}
|
|
7
|
+
var r = (e) => /^\d{4}-\d{2}-\d{2}$/u.test(e);
|
|
11
8
|
function i(e) {
|
|
12
|
-
|
|
9
|
+
if (!r(e)) return !1;
|
|
10
|
+
try {
|
|
11
|
+
return t(e), !0;
|
|
12
|
+
} catch {
|
|
13
|
+
return !1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function a(e) {
|
|
17
|
+
return i(e) ? { value: e } : {};
|
|
18
|
+
}
|
|
19
|
+
function o(e) {
|
|
20
|
+
return e !== void 0 && i(e) ? { min: e } : {};
|
|
13
21
|
}
|
|
14
|
-
export {
|
|
22
|
+
export { a as dateValue, o as minDate, n as timeValue };
|
|
@@ -187,7 +187,7 @@ var h = r.theme({
|
|
|
187
187
|
font: "inherit",
|
|
188
188
|
fontSize: "12px",
|
|
189
189
|
borderRadius: "50%",
|
|
190
|
-
color: "var(--
|
|
190
|
+
color: "var(--color-icon-accent)",
|
|
191
191
|
cursor: "pointer"
|
|
192
192
|
},
|
|
193
193
|
".cm-token:hover .cm-token-remove, .cm-token:focus-within .cm-token-remove": { opacity: "1" }
|
|
@@ -41,7 +41,7 @@ function u(u) {
|
|
|
41
41
|
}) : /* @__PURE__ */ n(e, {
|
|
42
42
|
label: p,
|
|
43
43
|
size: "sm",
|
|
44
|
-
isDisabled: u.isDisabled,
|
|
44
|
+
isDisabled: u.isDisabled ?? !1,
|
|
45
45
|
onClick: u.onClose
|
|
46
46
|
})), f[9] = p, f[10] = h, f[11] = m, f[12] = u.isDisabled, f[13] = u.onClose, f[14] = S) : S = f[14];
|
|
47
47
|
let C;
|
|
@@ -95,7 +95,7 @@ var d = {
|
|
|
95
95
|
$$css: !0
|
|
96
96
|
},
|
|
97
97
|
banner: {
|
|
98
|
-
kWkggS: "
|
|
98
|
+
kWkggS: "aui1jxocwm",
|
|
99
99
|
kMwMTN: "aui17wrial",
|
|
100
100
|
kP9fke: "auitvhhri",
|
|
101
101
|
$$css: !0
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
2
3
|
import { type FieldGroupProps } from "./FieldGroup.js";
|
|
3
4
|
/** One checkbox of a `CheckGroup`. */
|
|
4
5
|
export type CheckGroupOption<V extends string> = {
|
|
@@ -8,7 +9,7 @@ export type CheckGroupOption<V extends string> = {
|
|
|
8
9
|
readonly label: string;
|
|
9
10
|
};
|
|
10
11
|
/** What `CheckGroup` takes. */
|
|
11
|
-
export type CheckGroupProps<V extends string> = Pick<FieldGroupProps, "label" | "isDisabled" | "error"
|
|
12
|
+
export type CheckGroupProps<V extends string> = Forwardable<Pick<FieldGroupProps, "label" | "isDisabled" | "error">> & {
|
|
12
13
|
/** The checkboxes, in order. */
|
|
13
14
|
readonly options: readonly CheckGroupOption<V>[];
|
|
14
15
|
/** The picked values. */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { type CheckboxInputProps } from "@astryxdesign/core/CheckboxInput";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
2
4
|
/** What `CheckRow` takes. */
|
|
3
|
-
export type CheckRowProps = {
|
|
5
|
+
export type CheckRowProps = Forwardable<Pick<CheckboxInputProps, "isDisabled" | "isReadOnly">> & {
|
|
4
6
|
/** The row's text and the checkbox's name; one line, the whole text in a tooltip when cut. */
|
|
5
7
|
readonly label: string;
|
|
6
8
|
/** A second line under the text, such as an id under a name; one line too. */
|
|
@@ -16,10 +18,6 @@ export type CheckRowProps = {
|
|
|
16
18
|
* link to the item; the two share one place, so nothing moves. None without it.
|
|
17
19
|
*/
|
|
18
20
|
readonly hoverContent?: ReactNode;
|
|
19
|
-
/** Dims the box and blocks it; nothing is hidden. */
|
|
20
|
-
readonly isDisabled?: boolean | undefined;
|
|
21
|
-
/** Shows the box's state, not dimmed, and blocks it. */
|
|
22
|
-
readonly isReadOnly?: boolean | undefined;
|
|
23
21
|
};
|
|
24
22
|
/**
|
|
25
23
|
* One row of a list to tick: a checkbox (md, as every checkbox), the row's text on one line (and
|
|
@@ -1,33 +1,20 @@
|
|
|
1
1
|
import { type TextInputProps } from "@astryxdesign/core/TextInput";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
3
4
|
/** What `CommitTextField` takes. */
|
|
4
|
-
export type CommitTextFieldProps = {
|
|
5
|
-
/** The field's label; also its accessible name when hidden. */
|
|
6
|
-
readonly label: string;
|
|
5
|
+
export type CommitTextFieldProps = Forwardable<Pick<TextInputProps, "label" | "isDisabled" | "isReadOnly" | "isLabelHidden" | "placeholder" | "description" | "isRequired" | "width" | "controlXstyle" | "containerXstyle">> & {
|
|
7
6
|
/** The committed text. A new value from outside (an agent, undo) replaces the draft. */
|
|
8
7
|
readonly value: string;
|
|
9
8
|
/** Called with the draft on blur or Enter, only when it differs from `value`. */
|
|
10
9
|
readonly onCommit: (value: string) => void;
|
|
11
10
|
/** The input's height, `md` by default. */
|
|
12
11
|
readonly size?: "sm" | "md";
|
|
13
|
-
/** Dims the field and blocks typing. */
|
|
14
|
-
readonly isDisabled?: boolean;
|
|
15
|
-
/** Shows the text, not dimmed, and blocks typing. */
|
|
16
|
-
readonly isReadOnly?: boolean;
|
|
17
|
-
/** Keeps the label for screen readers only. */
|
|
18
|
-
readonly isLabelHidden?: boolean;
|
|
19
|
-
/** Shown while the field is empty. */
|
|
20
|
-
readonly placeholder?: string;
|
|
21
|
-
/** Help under the label. */
|
|
22
|
-
readonly description?: string;
|
|
23
12
|
/** A problem with the value, already in the user's language. */
|
|
24
13
|
readonly error?: string | undefined;
|
|
25
14
|
/** A text area instead of a single line; Enter then adds a line. */
|
|
26
15
|
readonly isMultiline?: boolean;
|
|
27
16
|
/** For `isMultiline`: how many rows the text area shows, `4` by default. */
|
|
28
17
|
readonly rows?: number;
|
|
29
|
-
/** Marks the field as required. */
|
|
30
|
-
readonly isRequired?: boolean;
|
|
31
18
|
/**
|
|
32
19
|
* `false` (default): after a commit the draft goes back to `value`, so a refused text does not
|
|
33
20
|
* stay in the field. `true` keeps the typed text until `value` changes from outside.
|
|
@@ -37,10 +24,6 @@ export type CommitTextFieldProps = {
|
|
|
37
24
|
readonly maxLength?: number;
|
|
38
25
|
/** Fresh global pattern for whole tokens, counted as one character even in plain text. */
|
|
39
26
|
readonly pattern?: () => RegExp;
|
|
40
|
-
/** For a single line: the field's width, in pixels or any CSS length such as `"100%"`. */
|
|
41
|
-
readonly width?: number | string;
|
|
42
|
-
/** For a single line: StyleX styles for the input's box, e.g. to make it read as plain text. */
|
|
43
|
-
readonly controlXstyle?: TextInputProps["controlXstyle"];
|
|
44
27
|
};
|
|
45
28
|
/**
|
|
46
29
|
* Text that stays a local draft while typing and commits on blur or Enter, so a word typed is one
|
|
@@ -7,7 +7,7 @@ import { TextArea as a } from "@astryxdesign/core/TextArea";
|
|
|
7
7
|
import { TextInput as o } from "@astryxdesign/core/TextInput";
|
|
8
8
|
// src/molecules/CommitTextField.tsx
|
|
9
9
|
function s(s) {
|
|
10
|
-
let c = r(
|
|
10
|
+
let c = r(46), { value: l, onCommit: u, isMultiline: d, error: f, maxLength: p, isDraftKeptOnCommit: m } = s, h = d !== void 0 && d, g = m !== void 0 && m, _;
|
|
11
11
|
c[0] === u ? _ = c[1] : (_ = (e) => {
|
|
12
12
|
u(e ?? "");
|
|
13
13
|
}, c[0] = u, c[1] = _);
|
|
@@ -24,9 +24,13 @@ function s(s) {
|
|
|
24
24
|
let j;
|
|
25
25
|
c[14] === s.description ? j = c[15] : (j = s.description === void 0 ? {} : { description: s.description }, c[14] = s.description, c[15] = j);
|
|
26
26
|
let M;
|
|
27
|
-
c[16] ===
|
|
27
|
+
c[16] === s.controlXstyle ? M = c[17] : (M = s.controlXstyle === void 0 ? {} : { controlXstyle: s.controlXstyle }, c[16] = s.controlXstyle, c[17] = M);
|
|
28
28
|
let N;
|
|
29
|
-
c[18]
|
|
29
|
+
c[18] === s.containerXstyle ? N = c[19] : (N = s.containerXstyle === void 0 ? {} : { containerXstyle: s.containerXstyle }, c[18] = s.containerXstyle, c[19] = N);
|
|
30
|
+
let P;
|
|
31
|
+
c[20] === f ? P = c[21] : (P = e(f), c[20] = f, c[21] = P);
|
|
32
|
+
let F;
|
|
33
|
+
c[22] !== S || c[23] !== v || c[24] !== s.label || c[25] !== k || c[26] !== A || c[27] !== j || c[28] !== M || c[29] !== N || c[30] !== P || c[31] !== w || c[32] !== T || c[33] !== E || c[34] !== D || c[35] !== O ? (F = {
|
|
30
34
|
label: C,
|
|
31
35
|
value: v,
|
|
32
36
|
onChange: w,
|
|
@@ -38,26 +42,25 @@ function s(s) {
|
|
|
38
42
|
isRequired: k,
|
|
39
43
|
...A,
|
|
40
44
|
...j,
|
|
41
|
-
...M
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
...M,
|
|
46
|
+
...N,
|
|
47
|
+
...P
|
|
48
|
+
}, c[22] = S, c[23] = v, c[24] = s.label, c[25] = k, c[26] = A, c[27] = j, c[28] = M, c[29] = N, c[30] = P, c[31] = w, c[32] = T, c[33] = E, c[34] = D, c[35] = O, c[36] = F) : F = c[36];
|
|
49
|
+
let I = F;
|
|
44
50
|
if (h) {
|
|
45
51
|
let e = s.rows ?? 4, t;
|
|
46
|
-
return c[
|
|
47
|
-
...
|
|
52
|
+
return c[37] !== I || c[38] !== e ? (t = /* @__PURE__ */ i(a, {
|
|
53
|
+
...I,
|
|
48
54
|
rows: e
|
|
49
|
-
}), c[
|
|
55
|
+
}), c[37] = I, c[38] = e, c[39] = t) : t = c[39], t;
|
|
50
56
|
}
|
|
51
|
-
let F;
|
|
52
|
-
c[34] === s.width ? F = c[35] : (F = s.width === void 0 ? {} : { width: s.width }, c[34] = s.width, c[35] = F);
|
|
53
|
-
let I;
|
|
54
|
-
c[36] === s.controlXstyle ? I = c[37] : (I = s.controlXstyle === void 0 ? {} : { controlXstyle: s.controlXstyle }, c[36] = s.controlXstyle, c[37] = I);
|
|
55
57
|
let L;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
c[40] === s.width ? L = c[41] : (L = s.width === void 0 ? {} : { width: s.width }, c[40] = s.width, c[41] = L);
|
|
59
|
+
let R;
|
|
60
|
+
return c[42] !== S || c[43] !== I || c[44] !== L ? (R = /* @__PURE__ */ i(o, {
|
|
61
|
+
...I,
|
|
58
62
|
onEnter: S,
|
|
59
|
-
...
|
|
60
|
-
|
|
61
|
-
}), c[38] = S, c[39] = P, c[40] = F, c[41] = I, c[42] = L) : L = c[42], L;
|
|
63
|
+
...L
|
|
64
|
+
}), c[42] = S, c[43] = I, c[44] = L, c[45] = R) : R = c[45], R;
|
|
62
65
|
}
|
|
63
66
|
export { s as CommitTextField };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
+
import { type AlertDialogProps } from "@astryxdesign/core/AlertDialog";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
2
4
|
/** What `ConfirmDialog` takes. */
|
|
3
|
-
export type ConfirmDialogProps = {
|
|
4
|
-
/** Open while a change waits for an answer. */
|
|
5
|
-
readonly isOpen: boolean;
|
|
6
|
-
/** The question, e.g. "Remove these rows?". */
|
|
7
|
-
readonly title: string;
|
|
8
|
-
/** What the change does. */
|
|
9
|
-
readonly description: string;
|
|
5
|
+
export type ConfirmDialogProps = Forwardable<Pick<AlertDialogProps, "isOpen" | "title" | "description">> & {
|
|
10
6
|
/** The texts of the two buttons; the host translates them. */
|
|
11
7
|
readonly labels: {
|
|
12
8
|
/** The confirming button, e.g. "Remove". */
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type TimeInputProps } from "@astryxdesign/core/TimeInput";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
2
4
|
import { type FieldGroupProps } from "./FieldGroup.js";
|
|
3
5
|
/** What `DateTimeInput` takes. */
|
|
4
|
-
export type DateTimeInputProps = Pick<FieldGroupProps, "isDisabled"
|
|
6
|
+
export type DateTimeInputProps = Forwardable<Pick<FieldGroupProps, "isDisabled">> & Forwardable<Pick<TimeInputProps, "hourFormat">> & {
|
|
5
7
|
/** The group's label, e.g. "Start date"; it names the group and is not shown. */
|
|
6
8
|
readonly label: string;
|
|
7
9
|
/** The texts the inputs show; the host translates them. */
|
|
@@ -17,7 +19,7 @@ export type DateTimeInputProps = Pick<FieldGroupProps, "isDisabled"> & {
|
|
|
17
19
|
readonly value: string;
|
|
18
20
|
/** The inputs' size, `md` by default. */
|
|
19
21
|
readonly size?: "sm" | "md" | undefined;
|
|
20
|
-
/** Shows
|
|
22
|
+
/** Shows readable date and time fields at full opacity, without clear or picker actions. */
|
|
21
23
|
readonly isReadOnly?: boolean | undefined;
|
|
22
24
|
/** A problem with the date-time, already in the user's language. */
|
|
23
25
|
readonly error?: string | undefined;
|
|
@@ -36,7 +38,7 @@ export type DateTimeInputProps = Pick<FieldGroupProps, "isDisabled"> & {
|
|
|
36
38
|
readonly isRequired?: boolean;
|
|
37
39
|
/** The time input stays disabled until a date is picked. */
|
|
38
40
|
readonly isTimeLockedWithoutDate?: boolean;
|
|
39
|
-
/** The earliest
|
|
41
|
+
/** The earliest valid calendar date (`YYYY-MM-DD`); an absent or invalid minimum leaves dates unconstrained. */
|
|
40
42
|
readonly min?: string | undefined;
|
|
41
43
|
/** Called with the new date-time; a part not picked yet is empty, a new date starts at 00:00:00. */
|
|
42
44
|
readonly onChange: (value: string) => void;
|
|
@@ -45,5 +47,7 @@ export type DateTimeInputProps = Pick<FieldGroupProps, "isDisabled"> & {
|
|
|
45
47
|
* A date and a time of day under one label. It composes `DateInput` and `TimeInput` rather than
|
|
46
48
|
* using Astryx's `DateTimeInput`, which holds only a complete value: here a date or a time may be
|
|
47
49
|
* set alone while the other is still empty.
|
|
50
|
+
* `hourFormat` defaults to `12h`; choose `24h` for a 24-hour clock. Calendar and clear text use
|
|
51
|
+
* the facade's `InternationalizationProvider`, alongside host-translated `label` and `labels`.
|
|
48
52
|
*/
|
|
49
53
|
export declare function DateTimeInput(props: DateTimeInputProps): ReactNode;
|
|
@@ -5,94 +5,103 @@ import { c as a } from "react/compiler-runtime";
|
|
|
5
5
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
import { HStack as c } from "@astryxdesign/core/HStack";
|
|
7
7
|
import { Text as l } from "@astryxdesign/core/Text";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { TextInput as u } from "@astryxdesign/core/TextInput";
|
|
9
|
+
import { DateInput as d } from "@astryxdesign/core/DateInput";
|
|
10
|
+
import { TimeInput as f } from "@astryxdesign/core/TimeInput";
|
|
10
11
|
// src/molecules/DateTimeInput.tsx
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
let
|
|
45
|
-
|
|
46
|
-
label:
|
|
47
|
-
size:
|
|
48
|
-
isLabelHidden:
|
|
49
|
-
|
|
12
|
+
function p(p) {
|
|
13
|
+
let m = a(52), { label: h, isDisabled: g, isReadOnly: _, error: v, hasTime: y, frame: b } = p, x = g !== void 0 && g, S = _ !== void 0 && _, C = y === void 0 || y, w = p.size ?? "md", T = b === "none", E, D, O;
|
|
14
|
+
if (m[0] !== v || m[1] !== C || m[2] !== x || m[3] !== T || m[4] !== S || m[5] !== p || m[6] !== w) {
|
|
15
|
+
let [r, i] = p.value.split(" ");
|
|
16
|
+
E = r === void 0 ? "" : r, O = i === void 0 ? "" : i;
|
|
17
|
+
let a = !T, s = p.isRequired ?? !1, c;
|
|
18
|
+
m[10] !== T || m[11] !== p.description ? (c = T && p.description !== void 0 ? { description: p.description } : {}, m[10] = T, m[11] = p.description, m[12] = c) : c = m[12];
|
|
19
|
+
let l;
|
|
20
|
+
m[13] !== v || m[14] !== T ? (l = T ? e(v) : {}, m[13] = v, m[14] = T, m[15] = l) : l = m[15];
|
|
21
|
+
let f;
|
|
22
|
+
m[16] !== p.labels.date || m[17] !== w || m[18] !== a || m[19] !== s || m[20] !== c || m[21] !== l ? (f = {
|
|
23
|
+
label: p.labels.date,
|
|
24
|
+
size: w,
|
|
25
|
+
isLabelHidden: a,
|
|
26
|
+
isRequired: s,
|
|
27
|
+
...c,
|
|
28
|
+
...l
|
|
29
|
+
}, m[16] = p.labels.date, m[17] = w, m[18] = a, m[19] = s, m[20] = c, m[21] = l, m[22] = f) : f = m[22];
|
|
30
|
+
let h = f;
|
|
31
|
+
D = S ? /* @__PURE__ */ o(u, {
|
|
32
|
+
...h,
|
|
33
|
+
value: E,
|
|
34
|
+
isReadOnly: !0
|
|
35
|
+
}) : /* @__PURE__ */ o(d, {
|
|
36
|
+
...h,
|
|
37
|
+
isDisabled: x,
|
|
38
|
+
...t(E),
|
|
39
|
+
...n(p.min),
|
|
40
|
+
onChange: (e) => {
|
|
41
|
+
p.onChange(C ? [e, O === "" ? "00:00:00" : O].join(" ") : e ?? "");
|
|
42
|
+
}
|
|
43
|
+
}), m[0] = v, m[1] = C, m[2] = x, m[3] = T, m[4] = S, m[5] = p, m[6] = w, m[7] = E, m[8] = D, m[9] = O;
|
|
44
|
+
} else E = m[7], D = m[8], O = m[9];
|
|
45
|
+
let k = D, A = !T, j = w === "sm" ? 150 : 168, M;
|
|
46
|
+
m[23] !== p.labels.time || m[24] !== w || m[25] !== A || m[26] !== j ? (M = {
|
|
47
|
+
label: p.labels.time,
|
|
48
|
+
size: w,
|
|
49
|
+
isLabelHidden: A,
|
|
50
|
+
width: j
|
|
51
|
+
}, m[23] = p.labels.time, m[24] = w, m[25] = A, m[26] = j, m[27] = M) : M = m[27];
|
|
52
|
+
let N = M, P;
|
|
53
|
+
m[28] !== E || m[29] !== C || m[30] !== x || m[31] !== S || m[32] !== p || m[33] !== O || m[34] !== N ? (P = C && (S ? /* @__PURE__ */ o(u, {
|
|
54
|
+
...N,
|
|
55
|
+
value: O,
|
|
56
|
+
isReadOnly: !0
|
|
57
|
+
}) : /* @__PURE__ */ o(f, {
|
|
58
|
+
...N,
|
|
59
|
+
hourFormat: p.hourFormat ?? "12h",
|
|
50
60
|
hasSeconds: !0,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
...r(F),
|
|
61
|
+
isDisabled: x || p.isTimeLockedWithoutDate === !0 && E === "",
|
|
62
|
+
...r(O),
|
|
54
63
|
onChange: (e) => {
|
|
55
|
-
|
|
64
|
+
p.onChange([E, e?.length === 5 ? `${e}:00` : e].join(" "));
|
|
56
65
|
}
|
|
57
|
-
}),
|
|
58
|
-
let
|
|
59
|
-
|
|
66
|
+
})), m[28] = E, m[29] = C, m[30] = x, m[31] = S, m[32] = p, m[33] = O, m[34] = N, m[35] = P) : P = m[35];
|
|
67
|
+
let F = P, I;
|
|
68
|
+
m[36] === p.labels.timezone ? I = m[37] : (I = p.labels.timezone !== void 0 && /* @__PURE__ */ o(l, {
|
|
60
69
|
type: "supporting",
|
|
61
|
-
children:
|
|
62
|
-
}),
|
|
63
|
-
let
|
|
64
|
-
if (
|
|
65
|
-
if (!
|
|
70
|
+
children: p.labels.timezone
|
|
71
|
+
}), m[36] = p.labels.timezone, m[37] = I);
|
|
72
|
+
let L = I;
|
|
73
|
+
if (T) {
|
|
74
|
+
if (!C) return k;
|
|
66
75
|
let e;
|
|
67
|
-
return
|
|
76
|
+
return m[38] !== k || m[39] !== F || m[40] !== L ? (e = /* @__PURE__ */ s(c, {
|
|
68
77
|
gap: 2,
|
|
69
78
|
wrap: "wrap",
|
|
70
79
|
align: "start",
|
|
71
80
|
children: [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
k,
|
|
82
|
+
F,
|
|
83
|
+
L
|
|
75
84
|
]
|
|
76
|
-
}),
|
|
85
|
+
}), m[38] = k, m[39] = F, m[40] = L, m[41] = e) : e = m[41], e;
|
|
77
86
|
}
|
|
78
|
-
let
|
|
79
|
-
|
|
87
|
+
let R = x && !S, z;
|
|
88
|
+
m[42] !== k || m[43] !== F || m[44] !== L ? (z = /* @__PURE__ */ s(c, {
|
|
80
89
|
gap: 2,
|
|
81
90
|
wrap: "wrap",
|
|
82
91
|
align: "center",
|
|
83
92
|
children: [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
k,
|
|
94
|
+
F,
|
|
95
|
+
L
|
|
87
96
|
]
|
|
88
|
-
}),
|
|
89
|
-
let
|
|
90
|
-
return
|
|
91
|
-
label:
|
|
92
|
-
description:
|
|
93
|
-
isDisabled:
|
|
94
|
-
error:
|
|
95
|
-
children:
|
|
96
|
-
}),
|
|
97
|
+
}), m[42] = k, m[43] = F, m[44] = L, m[45] = z) : z = m[45];
|
|
98
|
+
let B;
|
|
99
|
+
return m[46] !== v || m[47] !== h || m[48] !== p.description || m[49] !== z || m[50] !== R ? (B = /* @__PURE__ */ o(i, {
|
|
100
|
+
label: h,
|
|
101
|
+
description: p.description,
|
|
102
|
+
isDisabled: R,
|
|
103
|
+
error: v,
|
|
104
|
+
children: z
|
|
105
|
+
}), m[46] = v, m[47] = h, m[48] = p.description, m[49] = z, m[50] = R, m[51] = B) : B = m[51], B;
|
|
97
106
|
}
|
|
98
|
-
export {
|
|
107
|
+
export { p as DateTimeInput };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
2
3
|
import { type FieldGroupProps } from "./FieldGroup.js";
|
|
3
4
|
declare const PARTS: readonly ["days", "hours", "minutes", "seconds"];
|
|
4
5
|
type Part = (typeof PARTS)[number];
|
|
5
6
|
/** A length of time as stored: whole days, hours, minutes and seconds, each optional. */
|
|
6
7
|
export type DurationValue = Readonly<Partial<Record<Part, number>>>;
|
|
7
8
|
/** What `DurationInput` takes. */
|
|
8
|
-
export type DurationInputProps = Pick<FieldGroupProps, "label" | "isDisabled" | "error"
|
|
9
|
+
export type DurationInputProps = Forwardable<Pick<FieldGroupProps, "label" | "isDisabled" | "error">> & {
|
|
9
10
|
/**
|
|
10
11
|
* The unit of each part, already in the user's language, e.g. "day(s)": shown after its input
|
|
11
12
|
* and naming it for assistive tech.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type NumberInputProps } from "@astryxdesign/core/NumberInput";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
3
4
|
import { type FieldRowProps } from "./FieldRow.js";
|
|
4
5
|
/** What `PercentRow` takes. */
|
|
5
|
-
export type PercentRowProps = Pick<FieldRowProps, "label" | "labelWidth"
|
|
6
|
+
export type PercentRowProps = Forwardable<Pick<FieldRowProps, "label" | "labelWidth">> & Forwardable<Pick<NumberInputProps, "isDisabled" | "isReadOnly" | "disabledMessage">> & {
|
|
6
7
|
/** The controls' accessible name and the optional remove button's name. */
|
|
7
8
|
readonly labels: {
|
|
8
9
|
readonly share: string;
|
|
@@ -12,29 +12,29 @@ import { VStack as u } from "@astryxdesign/core/VStack";
|
|
|
12
12
|
import { FieldStatus as d } from "@astryxdesign/core/FieldStatus";
|
|
13
13
|
// src/molecules/RemovableRow.tsx
|
|
14
14
|
function f(f) {
|
|
15
|
-
let m = i(29), h = f.isFramed ?? !1, g;
|
|
16
|
-
m[0] !== f.
|
|
15
|
+
let m = i(29), h = f.isFramed ?? !1, g = f.isDisabled ?? !1, _;
|
|
16
|
+
m[0] !== f.isReadOnly || m[1] !== f.labels.remove || m[2] !== f.onRemove || m[3] !== f.size || m[4] !== g ? (_ = /* @__PURE__ */ o(e, {
|
|
17
17
|
label: f.labels.remove,
|
|
18
18
|
size: f.size,
|
|
19
|
-
isDisabled:
|
|
19
|
+
isDisabled: g,
|
|
20
20
|
isReadOnly: f.isReadOnly,
|
|
21
21
|
onClick: f.onRemove
|
|
22
|
-
}), m[0] = f.
|
|
23
|
-
let
|
|
24
|
-
m[6] === h ?
|
|
25
|
-
let
|
|
26
|
-
m[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
22
|
+
}), m[0] = f.isReadOnly, m[1] = f.labels.remove, m[2] = f.onRemove, m[3] = f.size, m[4] = g, m[5] = _) : _ = m[5];
|
|
23
|
+
let v = _, y;
|
|
24
|
+
m[6] === h ? y = m[7] : (y = h && { padding: 2 }, m[6] = h, m[7] = y);
|
|
25
|
+
let b;
|
|
26
|
+
m[8] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
27
27
|
"aui-default-marker": "aui-default-marker",
|
|
28
28
|
$$css: !0
|
|
29
|
-
}, m[8] =
|
|
30
|
-
let
|
|
31
|
-
m[9] !==
|
|
32
|
-
y,
|
|
29
|
+
}, m[8] = b) : b = m[8];
|
|
30
|
+
let x = h && p.frame, S = h && f.error !== void 0 && p.frameError, C;
|
|
31
|
+
m[9] !== x || m[10] !== S ? (C = [
|
|
33
32
|
b,
|
|
34
|
-
x
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
x,
|
|
34
|
+
S
|
|
35
|
+
], m[9] = x, m[10] = S, m[11] = C) : C = m[11];
|
|
36
|
+
let w;
|
|
37
|
+
m[12] !== h || m[13] !== f.description || m[14] !== f.error || m[15] !== f.label ? (w = h ? /* @__PURE__ */ s(u, {
|
|
38
38
|
xstyle: p.text,
|
|
39
39
|
children: [/* @__PURE__ */ s(c, {
|
|
40
40
|
gap: 1,
|
|
@@ -69,28 +69,28 @@ function f(f) {
|
|
|
69
69
|
message: f.error
|
|
70
70
|
})
|
|
71
71
|
]
|
|
72
|
-
}), m[12] = h, m[13] = f.description, m[14] = f.error, m[15] = f.label, m[16] =
|
|
73
|
-
let
|
|
74
|
-
m[17] !== f.endContent || m[18] !== f.hoverContent || m[19] !==
|
|
75
|
-
hoverContent: /* @__PURE__ */ s(a, { children: [f.hoverContent,
|
|
72
|
+
}), m[12] = h, m[13] = f.description, m[14] = f.error, m[15] = f.label, m[16] = w) : w = m[16];
|
|
73
|
+
let T = h && p.end, E;
|
|
74
|
+
m[17] !== f.endContent || m[18] !== f.hoverContent || m[19] !== v ? (E = f.hoverContent === void 0 ? /* @__PURE__ */ s(a, { children: [f.endContent, v] }) : /* @__PURE__ */ o(t, {
|
|
75
|
+
hoverContent: /* @__PURE__ */ s(a, { children: [f.hoverContent, v] }),
|
|
76
76
|
children: f.endContent
|
|
77
|
-
}), m[17] = f.endContent, m[18] = f.hoverContent, m[19] =
|
|
78
|
-
let
|
|
79
|
-
m[21] !==
|
|
77
|
+
}), m[17] = f.endContent, m[18] = f.hoverContent, m[19] = v, m[20] = E) : E = m[20];
|
|
78
|
+
let D;
|
|
79
|
+
m[21] !== T || m[22] !== E ? (D = /* @__PURE__ */ o(c, {
|
|
80
80
|
gap: 1.5,
|
|
81
81
|
align: "center",
|
|
82
|
-
xstyle:
|
|
83
|
-
children:
|
|
84
|
-
}), m[21] =
|
|
85
|
-
let
|
|
86
|
-
return m[24] !==
|
|
82
|
+
xstyle: T,
|
|
83
|
+
children: E
|
|
84
|
+
}), m[21] = T, m[22] = E, m[23] = D) : D = m[23];
|
|
85
|
+
let O;
|
|
86
|
+
return m[24] !== D || m[25] !== y || m[26] !== C || m[27] !== w ? (O = /* @__PURE__ */ s(c, {
|
|
87
87
|
gap: 1.5,
|
|
88
88
|
align: "center",
|
|
89
89
|
justify: "between",
|
|
90
|
-
...
|
|
91
|
-
xstyle:
|
|
92
|
-
children: [
|
|
93
|
-
}), m[24] =
|
|
90
|
+
...y,
|
|
91
|
+
xstyle: C,
|
|
92
|
+
children: [w, D]
|
|
93
|
+
}), m[24] = D, m[25] = y, m[26] = C, m[27] = w, m[28] = O) : O = m[28], O;
|
|
94
94
|
}
|
|
95
95
|
var p = {
|
|
96
96
|
text: {
|