@invoiceonline/ui-react 0.1.0 → 0.2.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/AGENTS.md +4 -3
- package/CHANGELOG.md +18 -0
- package/dist/components/date-picker/DatePicker.js +1 -1
- package/dist/components/field/Field.d.ts +2 -1
- package/dist/components/field/Field.js +13 -8
- package/dist/components/field-pair/FieldPair.d.ts +29 -13
- package/dist/components/field-pair/FieldPair.js +20 -6
- package/dist/components/text-field/TextField.d.ts +97 -2
- package/dist/components/text-field/TextField.js +76 -5
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/unit-field/UnitField.js +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -3
- package/dist/internal/useDateFieldTrigger.d.ts +60 -0
- package/dist/internal/useDateFieldTrigger.js +68 -16
- package/dist/internal/useFormReset.js +10 -3
- package/docs/Consuming.mdx +20 -3
- package/llms.txt +7 -13
- package/package.json +1 -5
- package/src/components/date-picker/DatePicker.mdx +18 -14
- package/src/components/date-picker/DatePicker.stories.tsx +1 -1
- package/src/components/field/Field.tsx +40 -18
- package/src/components/field-pair/FieldPair.mdx +13 -9
- package/src/components/field-pair/FieldPair.stories.tsx +11 -2
- package/src/components/field-pair/FieldPair.tsx +76 -27
- package/src/components/filter-facet/FilterFacet.tsx +1 -1
- package/src/components/subject-lookup-field/SubjectLookupField.tsx +3 -3
- package/src/components/text-field/TextField.mdx +258 -38
- package/src/components/text-field/TextField.stories.tsx +311 -3
- package/src/components/text-field/TextField.tsx +259 -5
- package/src/components/text-field/index.ts +3 -0
- package/src/components/textarea/Textarea.mdx +2 -2
- package/src/components/textarea/Textarea.tsx +1 -1
- package/src/components/unit-field/UnitField.mdx +1 -1
- package/src/components/unit-field/UnitField.tsx +1 -1
- package/src/index.ts +0 -1
- package/src/internal/useDateFieldTrigger.tsx +178 -38
- package/src/internal/useFormReset.ts +13 -3
- package/src/recipes/Form.stories.tsx +5 -0
- package/dist/components/date-field/DateField.d.ts +0 -52
- package/dist/components/date-field/DateField.js +0 -45
- package/dist/components/date-field/index.d.ts +0 -2
- package/dist/components/date-field/index.js +0 -1
- package/src/components/date-field/DateField.mdx +0 -340
- package/src/components/date-field/DateField.stories.tsx +0 -221
- package/src/components/date-field/DateField.tsx +0 -176
- package/src/components/date-field/index.ts +0 -1
package/AGENTS.md
CHANGED
|
@@ -61,7 +61,7 @@ generated.
|
|
|
61
61
|
resolves the same copy of `motion` as the package.
|
|
62
62
|
- **Portals:** Modal, Drawer, the mobile bottom sheets and the Tooltip bubble portal to
|
|
63
63
|
`document.body`; the desktop floating panels (AnchoredPanel, Menu, Select, Combobox,
|
|
64
|
-
|
|
64
|
+
`TextField type="date"`…) and the toggletip bubble go into the enclosing Modal or Drawer, else
|
|
65
65
|
`document.body`. To portal elsewhere, provide the element through `PortalContainerContext`.
|
|
66
66
|
- **Assets:** `dist/assets/` travels with `styles.css` / `shared.css` (`url()` relative to
|
|
67
67
|
the stylesheet); only PromoSurface (a background image) and PromoSticker (a CSS mask, CORS
|
|
@@ -78,8 +78,9 @@ generated.
|
|
|
78
78
|
default (Modal `closeLabel`, Pagination `labels`, Table `loadedLabel` and
|
|
79
79
|
`mobile.moreLabel`, FilterFacet `doneLabel`, FileUpload `triggerLabel`, `dropHintText`,
|
|
80
80
|
`viewLabel`, `removeLabel` and `uploadingLabel`), and number and date formatting defaults
|
|
81
|
-
to Czech (`locale` of NumberField, UnitField, FieldPair, ItemRow, FilterChip, DatePicker
|
|
82
|
-
|
|
81
|
+
to Czech (`locale` of NumberField, UnitField, FieldPair, ItemRow, FilterChip, DatePicker).
|
|
82
|
+
A date field has no default: `TextField type="date"` requires `dateFormat` + `locale`, a
|
|
83
|
+
date FieldPair `dateFormat` + `dateLocale`, both the market's. The hidden close button of the mobile bottom
|
|
83
84
|
sheets defaults to «Zavřít»; Menu, Select, Combobox, FilterFacet and SubjectLookupField
|
|
84
85
|
take its name in `sheetCloseLabel`. An app with more than one language version passes
|
|
85
86
|
every one of these from its translations on every use, including the screen-reader-only
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @invoiceonline/ui-react
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0c259d3: A date field is now `TextField type="date"` (text-field manifest 2.15.0); the separate `DateField` component and its `./date-field` export are removed.
|
|
8
|
+
|
|
9
|
+
- `TextField type="date"` takes a `Date` in `value` and reports one through `onValueChange`, never the formatted string. It renders a typeable text input, never the native date input, with the `calendar-dots` glyph in the leading slot; a click anywhere on the field opens the Single month `DatePicker`.
|
|
10
|
+
- The date format is the market's. `dateFormat` (a date-fns pattern) and `locale` (a date-fns `Locale`) are required, with no Czech default; so is `navLabels`. `minDate` / `maxDate` bound both the calendar and a typed date.
|
|
11
|
+
- `FieldPair` in `format="date"` now requires `dateFormat` and `dateLocale` as well; they no longer default to Czech.
|
|
12
|
+
- `TextField`'s `type` is limited to the manifest's types — `text`, `email`, `tel`, `url`, `search`, `password`, `numeric` and `date` — so `type="time"`, `type="number"` and the like, and `type="date"` without its required props, fail to compile. `type="numeric"` renders a right-aligned text input with the numeric keyboard (`inputMode="numeric"`), so a digit string such as an IČO keeps its leading zeros; numbers to calculate with belong in `NumberField` or `UnitField`.
|
|
13
|
+
- `TextField type="date"` also works uncontrolled: `defaultValue` takes a `Date`, the field keeps what the user typed or picked when `value` is left out, and a native form reset restores the `defaultValue` and drops a date that was typed but not yet committed; a reset the form cancels leaves the date as it was.
|
|
14
|
+
- Inside a labelled `Field` the calendar dialog is named by the field's label (`aria-labelledby`); `panelLabel` is optional and names it only when nothing visible does; without it the field's own `aria-labelledby` / `aria-label` names the dialog, and a dialog with no name at all warns in development. A `FieldPair` date cell names its dialog by the cell's label the same way.
|
|
15
|
+
- `FieldPair` with `format="date"` but without `dateFormat`, `dateLocale` or `navLabels` logs an error in development instead of silently rendering plain text cells.
|
|
16
|
+
- The Success status icon of `TextField`, `Textarea` and `UnitField` is `check-circle`, as their manifests specify, instead of the bare `check`.
|
|
17
|
+
- A typed date that does not parse, or falls outside `minDate` / `maxDate`, stays in the input when it commits (on blur, or on Enter, which now commits before a form submits) instead of being swapped back for the old date; the value becomes `undefined` (`onValueChange(undefined)`), so a form cannot submit a date the user no longer sees. `onInvalidInput(raw, reason)` on `TextField type="date"` and on a `FieldPair` date cell then reports it, with `reason` `'unparseable'` or `'out-of-range'`, so the form can show the error next to that text. A rejected text is reported once until the user edits it, or until `minDate` / `maxDate` or the format change. A `FieldPair` date cell now also drops a typed or rejected draft on a native form reset. Picking a day, a date the consumer sets, or a native form reset replaces it; text the user is still typing is never replaced by an outside value change.
|
|
18
|
+
- The calendar closes when the field turns disabled or read-only while it is open, and a read-only date field is a plain textbox, without the combobox ARIA.
|
|
19
|
+
- The date field takes an `aria-label` like any `TextField`, which `DateField` could not.
|
|
20
|
+
|
|
3
21
|
## 0.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -7,8 +7,8 @@ import { cn } from "../../internal/utils.js";
|
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { addDays, addYears, endOfMonth, endOfWeek, format, isSameDay, isWithinInterval, startOfDay, startOfMonth, startOfWeek, subDays } from "date-fns";
|
|
10
|
-
import { cs } from "date-fns/locale/cs";
|
|
11
10
|
import { DayPicker, useDayPicker } from "react-day-picker";
|
|
11
|
+
import { cs } from "date-fns/locale/cs";
|
|
12
12
|
// src/components/date-picker/DatePicker.tsx
|
|
13
13
|
/**
|
|
14
14
|
* The id of the month caption, handed from the `Month` wrapper down to the
|
|
@@ -97,8 +97,9 @@ export interface FieldProps {
|
|
|
97
97
|
}
|
|
98
98
|
interface FieldChildProps {
|
|
99
99
|
id?: string;
|
|
100
|
+
type?: string;
|
|
100
101
|
value?: string | number | readonly string[] | Date;
|
|
101
|
-
defaultValue?: string | number | readonly string[];
|
|
102
|
+
defaultValue?: string | number | readonly string[] | Date;
|
|
102
103
|
placeholder?: string;
|
|
103
104
|
disabled?: boolean;
|
|
104
105
|
readOnly?: boolean;
|
|
@@ -186,23 +186,27 @@ function hasInputAdornments(childProps) {
|
|
|
186
186
|
/**
|
|
187
187
|
* What the wrapper needs to know about a field it cannot read off the rendered
|
|
188
188
|
* element, keyed by `displayName` (the only identity a cloned child exposes).
|
|
189
|
-
* One entry per field so a new one is registered in a single place.
|
|
189
|
+
* One entry per field so a new one is registered in a single place. An entry
|
|
190
|
+
* that depends on a MODE of the field reads the child's props.
|
|
190
191
|
*/
|
|
191
192
|
const FIELD_CHILD_TRAITS = {
|
|
192
|
-
DateField: {
|
|
193
|
-
leadingIcon: "always",
|
|
194
|
-
emptyDash: "disabled-or-readonly"
|
|
195
|
-
},
|
|
196
193
|
NumberField: { autoFloating: true },
|
|
197
194
|
Select: { autoFloating: true },
|
|
198
195
|
SelectField: {
|
|
199
196
|
autoFloating: true,
|
|
200
197
|
emptyDash: "disabled"
|
|
201
198
|
},
|
|
202
|
-
TextField:
|
|
199
|
+
TextField: (childProps) => ({
|
|
200
|
+
emptyDash: "disabled-or-readonly",
|
|
201
|
+
...childProps.type === "date" ? { leadingIcon: "always" } : {}
|
|
202
|
+
}),
|
|
203
203
|
Textarea: { emptyDash: "disabled" },
|
|
204
204
|
UnitField: { autoFloating: true }
|
|
205
205
|
};
|
|
206
|
+
function resolveChildTraits(childType, childProps) {
|
|
207
|
+
const entry = FIELD_CHILD_TRAITS[childType];
|
|
208
|
+
return typeof entry === "function" ? entry(childProps) : entry ?? {};
|
|
209
|
+
}
|
|
206
210
|
const Field = ({ label, hideLabel = false, optionalLabel, helperText, error, success, size = "md", className, alwaysFloating = false, children }) => {
|
|
207
211
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
208
212
|
const [hasValue, setHasValue] = React.useState(false);
|
|
@@ -216,11 +220,12 @@ const Field = ({ label, hideLabel = false, optionalLabel, helperText, error, suc
|
|
|
216
220
|
const fieldPlaceholder = childProps.placeholder;
|
|
217
221
|
const disabled = childProps.disabled ?? childProps.state === "disabled";
|
|
218
222
|
const childType = children.type?.displayName || children.type?.name || "";
|
|
219
|
-
const childTraits =
|
|
223
|
+
const childTraits = resolveChildTraits(childType, childProps);
|
|
220
224
|
const hasAdornments = hasInputAdornments(childProps);
|
|
221
225
|
const hasLeadingIcon = Boolean(childProps.leadingIcon) || childTraits.leadingIcon === "always";
|
|
222
226
|
const shouldAutoFloat = Boolean(childTraits.autoFloating) || hasAdornments;
|
|
223
227
|
const isSelect = childType === "Select";
|
|
228
|
+
const namesPanel = childType === "Combobox" || childType === "TextField" && childProps.type === "date";
|
|
224
229
|
const isReadOnly = childProps.readOnly ?? childProps.state === "readonly";
|
|
225
230
|
const labelStatus = error || childProps.state === "error" ? "error" : success || childProps.state === "success" ? "success" : "default";
|
|
226
231
|
const hasPlaceholder = Boolean(fieldPlaceholder) && String(fieldPlaceholder).length > 0;
|
|
@@ -274,7 +279,7 @@ const Field = ({ label, hideLabel = false, optionalLabel, helperText, error, suc
|
|
|
274
279
|
state: error ? "error" : success ? "success" : childProps.state,
|
|
275
280
|
...error ? { "aria-invalid": true } : {},
|
|
276
281
|
"aria-describedby": displayHelperText && fieldId ? `${fieldId}-helper` : void 0,
|
|
277
|
-
...
|
|
282
|
+
...namesPanel && label ? { panelLabelledBy: childProps.panelLabelledBy ?? labelId } : {}
|
|
278
283
|
});
|
|
279
284
|
const labelStyle = optionalLabelWidth ? { "--optional-label-width": `${optionalLabelWidth}px` } : void 0;
|
|
280
285
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DatePickerNavLabels } from "../date-picker/DatePicker.js";
|
|
2
|
+
import { UseDateFieldTriggerOptions } from "../../internal/useDateFieldTrigger.js";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { Locale } from "date-fns";
|
|
4
5
|
import { NumberFormatValues } from "react-number-format";
|
|
@@ -38,11 +39,18 @@ export interface FieldPairCell extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
38
39
|
/**
|
|
39
40
|
* A cell in `format="date"` — the value is the `Date` itself, not the text the
|
|
40
41
|
* input shows. The cell formats and parses it exactly like a standalone
|
|
41
|
-
* `
|
|
42
|
+
* `TextField type="date"` does.
|
|
42
43
|
*/
|
|
43
44
|
export interface FieldPairDateCell extends Omit<FieldPairCell, 'value' | 'defaultValue' | 'onChange' | 'onValueChange'> {
|
|
44
45
|
value?: Date;
|
|
45
46
|
onValueChange?: (value: Date | undefined) => void;
|
|
47
|
+
/**
|
|
48
|
+
* A typed draft in this cell was rejected on commit (blur or Enter) — `'unparseable'` or
|
|
49
|
+
* `'out-of-range'` (outside this cell's `minDate` / `maxDate`). Same contract
|
|
50
|
+
* as `TextField type="date"`: the typed text stays and the cell's value
|
|
51
|
+
* becomes `undefined`.
|
|
52
|
+
*/
|
|
53
|
+
onInvalidInput?: UseDateFieldTriggerOptions['onInvalidInput'];
|
|
46
54
|
/**
|
|
47
55
|
* Per-cell selectable window. Deliberately NOT cross-wired to the sibling —
|
|
48
56
|
* spec field-pair.md § Field Segment: "no cross-field minDate/maxDate
|
|
@@ -156,9 +164,8 @@ type FieldPairValueMode = {
|
|
|
156
164
|
* condition is two-part ("Show unit=False AND the pair represents a date
|
|
157
165
|
* range"). Two things ride on the distinction: `showUnit={false}` already
|
|
158
166
|
* carries plain text and plain number ranges, which must not silently grow a
|
|
159
|
-
* calendar — and `
|
|
160
|
-
* mode is in the type
|
|
161
|
-
* and an anonymous one. The spec's date ⇒ no-unit coupling is still enforced,
|
|
167
|
+
* calendar — and `dateFormat` / `dateLocale` / `navLabels` can only be made
|
|
168
|
+
* REQUIRED when the mode is in the type. The spec's date ⇒ no-unit coupling is still enforced,
|
|
162
169
|
* one-directionally, by requiring `showUnit: false` here.
|
|
163
170
|
*/
|
|
164
171
|
type FieldPairDateMode = {
|
|
@@ -167,19 +174,28 @@ type FieldPairDateMode = {
|
|
|
167
174
|
unit?: never;
|
|
168
175
|
from: FieldPairDateCell;
|
|
169
176
|
to: FieldPairDateCell;
|
|
170
|
-
/** Display + parse pattern (date-fns), applied to BOTH cells. */
|
|
171
|
-
dateFormat?: string;
|
|
172
177
|
/**
|
|
173
|
-
* date-fns
|
|
174
|
-
*
|
|
175
|
-
*
|
|
178
|
+
* Display + parse pattern (date-fns), applied to BOTH cells — the MARKET's
|
|
179
|
+
* (e.g. `dd. MM. yyyy` CZ, `MM/dd/yyyy` US). Required, no default, the same
|
|
180
|
+
* contract as `TextField type="date"` (text-field manifest 2.15.0).
|
|
181
|
+
*/
|
|
182
|
+
dateFormat: string;
|
|
183
|
+
/**
|
|
184
|
+
* The market's date-fns Locale for both cells (parse, week start, weekday and
|
|
185
|
+
* month names). Required, no default. Named `dateLocale` because `locale` on
|
|
186
|
+
* this component is already the NUMBER formatter's locale string —
|
|
187
|
+
* harmonising the two names would collapse the union to `string | Locale`.
|
|
176
188
|
*/
|
|
177
|
-
dateLocale
|
|
189
|
+
dateLocale: Locale;
|
|
178
190
|
/**
|
|
179
|
-
*
|
|
180
|
-
*
|
|
191
|
+
* Fallback accessible name for each cell's calendar dialog. A cell with a
|
|
192
|
+
* visible `label` names its dialog with that label instead (`aria-labelledby`,
|
|
193
|
+
* the same ids that name its input — „Cena od"); this string is used only for
|
|
194
|
+
* a cell without one, before that cell's own `aria-label`. Optional — a
|
|
195
|
+
* labelled cell never reads it — and never defaulted; a dialog left without
|
|
196
|
+
* any name warns in development.
|
|
181
197
|
*/
|
|
182
|
-
panelLabel
|
|
198
|
+
panelLabel?: string;
|
|
183
199
|
/** Accessible names for the panels' navigation chevrons. */
|
|
184
200
|
navLabels: DatePickerNavLabels;
|
|
185
201
|
locale?: never;
|
|
@@ -6,9 +6,11 @@ import { FLOATING_LABEL_ENTER, FloatingLabelGhost, useFloatingLabelMotion } from
|
|
|
6
6
|
import { floatingLabelVariants, helperTextVariants } from "../field/Field.js";
|
|
7
7
|
import { textFieldValueVariants } from "../text-field/TextField.js";
|
|
8
8
|
import { NumberFormatInput } from "../../internal/NumberFormatInput.js";
|
|
9
|
+
import { useFormReset } from "../../internal/useFormReset.js";
|
|
9
10
|
import { useDateFieldTrigger } from "../../internal/useDateFieldTrigger.js";
|
|
10
11
|
import * as React from "react";
|
|
11
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { enUS } from "date-fns/locale/en-US";
|
|
12
14
|
// src/components/field-pair/FieldPair.tsx
|
|
13
15
|
const fieldPairContainerVariants = tv({
|
|
14
16
|
base: "relative flex w-full gap-px rounded-400 border-100",
|
|
@@ -57,7 +59,8 @@ const fieldSegmentLeadingIconVariants = tv({ base: "shrink-0 text-text-secondary
|
|
|
57
59
|
*/
|
|
58
60
|
const INERT_DATE_TRIGGER = {
|
|
59
61
|
enabled: false,
|
|
60
|
-
|
|
62
|
+
dateFormat: "",
|
|
63
|
+
locale: enUS,
|
|
61
64
|
navLabels: {
|
|
62
65
|
previousMonth: "",
|
|
63
66
|
nextMonth: "",
|
|
@@ -67,8 +70,15 @@ const INERT_DATE_TRIGGER = {
|
|
|
67
70
|
};
|
|
68
71
|
function FieldSegment({ size, position, inputId, describedBy, unit, format, locale, precision, fixedDecimals, date, groupLabelId, groupLabel, label, error = false, value, defaultValue, placeholder, onFocus, onBlur, onChange, onValueChange, className, id: cellId, ...inputProps }) {
|
|
69
72
|
const resolvedId = cellId ?? inputId;
|
|
73
|
+
const labelId = `${resolvedId}-label`;
|
|
74
|
+
const cellLabelledBy = groupLabelId && label ? `${groupLabelId} ${labelId}` : void 0;
|
|
75
|
+
const dateInputRef = React.useRef(null);
|
|
76
|
+
useFormReset(dateInputRef, () => trigger.clearDraft(), inputProps.form);
|
|
70
77
|
const trigger = useDateFieldTrigger(date ? {
|
|
71
78
|
...date,
|
|
79
|
+
inputRef: dateInputRef,
|
|
80
|
+
panelLabelledBy: cellLabelledBy ?? (label ? labelId : void 0),
|
|
81
|
+
panelLabel: date.panelLabel ?? inputProps["aria-label"],
|
|
72
82
|
disabled: Boolean(inputProps.disabled),
|
|
73
83
|
readOnly: Boolean(inputProps.readOnly)
|
|
74
84
|
} : INERT_DATE_TRIGGER);
|
|
@@ -78,8 +88,6 @@ function FieldSegment({ size, position, inputId, describedBy, unit, format, loca
|
|
|
78
88
|
React.useEffect(() => {
|
|
79
89
|
if (boundValue !== void 0) setHasValue(Boolean(boundValue) && String(boundValue).length > 0);
|
|
80
90
|
}, [boundValue]);
|
|
81
|
-
const labelId = `${resolvedId}-label`;
|
|
82
|
-
const cellLabelledBy = groupLabelId && label ? `${groupLabelId} ${labelId}` : void 0;
|
|
83
91
|
const unitId = unit ? `${resolvedId}-unit` : void 0;
|
|
84
92
|
const cellDescribedBy = [unitId, describedBy].filter(Boolean).join(" ") || void 0;
|
|
85
93
|
const hasPlaceholder = Boolean(placeholder) && String(placeholder).length > 0;
|
|
@@ -211,20 +219,21 @@ function FieldSegment({ size, position, inputId, describedBy, unit, format, loca
|
|
|
211
219
|
}
|
|
212
220
|
/**
|
|
213
221
|
* Split a cell into the props the segment renders and the config its trigger
|
|
214
|
-
* owns. In date mode `value` / `onValueChange` / `minDate` / `maxDate` MUST
|
|
222
|
+
* owns. In date mode `value` / `onValueChange` / `onInvalidInput` / `minDate` / `maxDate` MUST
|
|
215
223
|
* leave the segment props: a stray `value` (a Date object) would reach the
|
|
216
224
|
* native <input> and fight the trigger's own display string, freezing the field
|
|
217
225
|
* with no warning.
|
|
218
226
|
*/
|
|
219
227
|
function splitDateCell(cell, common) {
|
|
220
228
|
if (!common) return { cell };
|
|
221
|
-
const { value, onValueChange, minDate, maxDate, ...rest } = cell;
|
|
229
|
+
const { value, onValueChange, onInvalidInput, minDate, maxDate, ...rest } = cell;
|
|
222
230
|
return {
|
|
223
231
|
cell: rest,
|
|
224
232
|
date: {
|
|
225
233
|
...common,
|
|
226
234
|
value,
|
|
227
235
|
onValueChange,
|
|
236
|
+
onInvalidInput,
|
|
228
237
|
minDate,
|
|
229
238
|
maxDate
|
|
230
239
|
}
|
|
@@ -260,7 +269,12 @@ function FieldPair({ size = "md", from, to, showUnit = true, unit, format = "tex
|
|
|
260
269
|
precision,
|
|
261
270
|
fixedDecimals
|
|
262
271
|
};
|
|
263
|
-
const
|
|
272
|
+
const dateConfigComplete = Boolean(dateFormat && dateLocale && navLabels);
|
|
273
|
+
React.useEffect(() => {
|
|
274
|
+
if (process.env.NODE_ENV === "production" || format !== "date" || dateConfigComplete) return;
|
|
275
|
+
console.error("FieldPair format=\"date\": `dateFormat`, `dateLocale` and `navLabels` are required — the cells render as plain text inputs until all three are set.");
|
|
276
|
+
}, [format, dateConfigComplete]);
|
|
277
|
+
const dateCommon = format === "date" && dateFormat && dateLocale && navLabels ? {
|
|
264
278
|
dateFormat,
|
|
265
279
|
locale: dateLocale,
|
|
266
280
|
panelLabel,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { IconName } from "../../icons/icon-types.generated.js";
|
|
2
2
|
import "../icon/Icon.js";
|
|
3
|
+
import { DatePickerNavLabels } from "../date-picker/DatePicker.js";
|
|
4
|
+
import { DateInputInvalidReason } from "../../internal/useDateFieldTrigger.js";
|
|
3
5
|
import * as React from "react";
|
|
6
|
+
import { Locale } from "date-fns";
|
|
4
7
|
declare const textFieldShellVariants: import("tailwind-variants").TVReturnType<{
|
|
5
8
|
inputSize: {
|
|
6
9
|
md: string;
|
|
@@ -31,7 +34,28 @@ declare const textFieldValueVariants: import("tailwind-variants").TVReturnType<{
|
|
|
31
34
|
}, undefined, string[], undefined, undefined, undefined>;
|
|
32
35
|
export type TextFieldSize = 'md' | 'sm';
|
|
33
36
|
export type TextFieldState = 'default' | 'focused' | 'error' | 'success' | 'disabled' | 'readonly';
|
|
34
|
-
|
|
37
|
+
/**
|
|
38
|
+
* The plain field's types — text-field manifest `delivery.react` lists
|
|
39
|
+
* text / email / tel / url / search / password / numeric / date; `date` is not
|
|
40
|
+
* here because it selects the date mode (`TextFieldDateProps`). Literal names
|
|
41
|
+
* only, so `type` discriminates `TextFieldProps` and nothing outside the
|
|
42
|
+
* manifest (`time`, `color`, `checkbox` …) gets through.
|
|
43
|
+
*
|
|
44
|
+
* `numeric` is the manifest's word, not an HTML type: it renders
|
|
45
|
+
* `type="text"` + `inputMode="numeric"`, right-aligned ("numeric
|
|
46
|
+
* right-aligns", manifest `intent.whenToUse`). A digit string such as an IČO
|
|
47
|
+
* keeps its leading zeros and stays a string; numbers that are computed with
|
|
48
|
+
* belong to NumberField / UnitField, whose formatter accepts the decimal comma
|
|
49
|
+
* the native `type="number"` rejects.
|
|
50
|
+
*/
|
|
51
|
+
export type TextFieldInputType = 'text' | 'email' | 'tel' | 'url' | 'search' | 'password' | 'numeric';
|
|
52
|
+
export interface TextFieldBaseProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
|
|
53
|
+
/**
|
|
54
|
+
* Input type from the manifest's list. `"numeric"` renders a right-aligned
|
|
55
|
+
* text input with the numeric keyboard; `"date"` is not here — it selects the
|
|
56
|
+
* date mode (`TextFieldDateProps`).
|
|
57
|
+
*/
|
|
58
|
+
type?: TextFieldInputType;
|
|
35
59
|
/** Field height — md (48) standalone, sm (40) dense rows */
|
|
36
60
|
size?: TextFieldSize;
|
|
37
61
|
/** Visual state; `readonly` renders the native `readonly` attribute (not `disabled`) */
|
|
@@ -60,6 +84,77 @@ type TextFieldTrailingButton = {
|
|
|
60
84
|
onTrailingIconClick?: undefined;
|
|
61
85
|
trailingIconLabel?: undefined;
|
|
62
86
|
};
|
|
63
|
-
|
|
87
|
+
/** Text, e-mail, tel, url, search, password, numeric — the plain field. */
|
|
88
|
+
export type TextFieldTextProps = TextFieldBaseProps & TextFieldTrailingButton;
|
|
89
|
+
/**
|
|
90
|
+
* `type="date"` — a localized text input with the DS Single month Date Picker
|
|
91
|
+
* (text-field manifest delivery.react). The leading slot is forced to
|
|
92
|
+
* `calendar-dots` and there is no trailing affordance, so the glyph props are
|
|
93
|
+
* absent; the native string `value` / `defaultValue` / `onChange` give way to a
|
|
94
|
+
* `Date` in `value` and out through `onValueChange`.
|
|
95
|
+
*/
|
|
96
|
+
export interface TextFieldDateProps extends Omit<TextFieldBaseProps, 'type' | 'value' | 'defaultValue' | 'onChange' | 'leadingIcon' | 'trailingIcon'> {
|
|
97
|
+
type: 'date';
|
|
98
|
+
/**
|
|
99
|
+
* The chosen date. Controlled while it is not `undefined`; leave it out (and
|
|
100
|
+
* use `defaultValue`) for an uncontrolled field.
|
|
101
|
+
*/
|
|
102
|
+
value?: Date;
|
|
103
|
+
/** Initial date of an uncontrolled field (`value` left out). */
|
|
104
|
+
defaultValue?: Date;
|
|
105
|
+
/**
|
|
106
|
+
* The committed date — a parsed typed draft, a picked day, or `undefined` when
|
|
107
|
+
* cleared or when a typed draft is rejected.
|
|
108
|
+
*/
|
|
109
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
110
|
+
/**
|
|
111
|
+
* A typed draft was rejected on commit (blur or Enter) — `'unparseable'` (not in `dateFormat`)
|
|
112
|
+
* or `'out-of-range'` (outside `minDate` / `maxDate`). The typed text stays in
|
|
113
|
+
* the input and the value becomes `undefined` (reported through
|
|
114
|
+
* `onValueChange` first); this tells the consumer why, e.g. to show an error
|
|
115
|
+
* on the `Field` next to that text.
|
|
116
|
+
*/
|
|
117
|
+
onInvalidInput?: (raw: string, reason: DateInputInvalidReason) => void;
|
|
118
|
+
/**
|
|
119
|
+
* Display + parse pattern, date-fns syntax — the MARKET's, from the consumer
|
|
120
|
+
* (e.g. `dd. MM. yyyy` CZ, `MM/dd/yyyy` US, `dd/MM/yyyy` GB). Required, no
|
|
121
|
+
* default.
|
|
122
|
+
*/
|
|
123
|
+
dateFormat: string;
|
|
124
|
+
/** date-fns Locale of the market: the panel's week start, weekday and month names. Required, no default. */
|
|
125
|
+
locale: Locale;
|
|
126
|
+
/** Earliest / latest selectable day — bounds both the panel and a typed date. */
|
|
127
|
+
minDate?: Date;
|
|
128
|
+
maxDate?: Date;
|
|
129
|
+
/**
|
|
130
|
+
* Id of the visible text naming the calendar panel (`aria-labelledby`). `Field`
|
|
131
|
+
* injects its `<label>` id here — inside a labelled `Field` there is nothing to
|
|
132
|
+
* pass (overlay-behavior.md § Naming).
|
|
133
|
+
*/
|
|
134
|
+
panelLabelledBy?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Accessible name for the calendar panel (`role="dialog"`), used only when
|
|
137
|
+
* nothing else names it. The order: `panelLabelledBy` (a `Field` label), the
|
|
138
|
+
* field's own `aria-labelledby`, `panelLabel`, the field's own `aria-label`.
|
|
139
|
+
* Inside a labelled `Field`, or with `aria-label` on the field, there is
|
|
140
|
+
* nothing to pass. Never defaulted — the design system is locale-agnostic; a
|
|
141
|
+
* dialog left without any name warns in development.
|
|
142
|
+
*/
|
|
143
|
+
panelLabel?: string;
|
|
144
|
+
/** Accessible names for the panel's four navigation chevrons. */
|
|
145
|
+
navLabels: DatePickerNavLabels;
|
|
146
|
+
/** Applied to the trigger wrapper around the shell. */
|
|
147
|
+
className?: string;
|
|
148
|
+
leadingIcon?: never;
|
|
149
|
+
trailingIcon?: never;
|
|
150
|
+
onTrailingIconClick?: never;
|
|
151
|
+
trailingIconLabel?: never;
|
|
152
|
+
}
|
|
153
|
+
export type TextFieldProps = TextFieldTextProps | TextFieldDateProps;
|
|
154
|
+
/**
|
|
155
|
+
* Single-line text input. `type="date"` turns it into the date field (a Date in,
|
|
156
|
+
* a Date out, the market's `dateFormat` + `locale`, the DS calendar on click);
|
|
157
|
+
* every other `type` is the plain field.
|
|
158
|
+
*/
|
|
64
159
|
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
65
160
|
export { TextField, textFieldShellVariants, textFieldValueVariants };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { tv } from "../../internal/tailwind-variants.js";
|
|
3
3
|
import { Icon } from "../icon/Icon.js";
|
|
4
|
+
import { useDateFieldTrigger } from "../../internal/useDateFieldTrigger.js";
|
|
4
5
|
import { useFormReset } from "../../internal/useFormReset.js";
|
|
5
6
|
import { cn } from "../../internal/utils.js";
|
|
6
7
|
import * as React from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
// src/components/text-field/TextField.tsx
|
|
9
10
|
const textFieldShellVariants = tv({
|
|
10
11
|
base: ["flex w-full items-center gap-400 rounded-400 px-500", "min-w-[80px]"],
|
|
@@ -86,13 +87,14 @@ const STATUS_ICON = {
|
|
|
86
87
|
className: "text-status-danger"
|
|
87
88
|
},
|
|
88
89
|
success: {
|
|
89
|
-
name: "check",
|
|
90
|
+
name: "check-circle",
|
|
90
91
|
className: "text-status-success-solid"
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
|
-
const
|
|
94
|
+
const TextFieldShell = React.forwardRef(({ className, size = "md", state, leadingIcon, trailingIcon, onTrailingIconClick, trailingIconLabel, disabled, readOnly, type = "text", onChange, ...props }, ref) => {
|
|
94
95
|
const isDisabled = disabled ?? state === "disabled";
|
|
95
96
|
const isReadOnly = readOnly ?? state === "readonly";
|
|
97
|
+
const isNumeric = type === "numeric";
|
|
96
98
|
const currentState = isDisabled ? "disabled" : isReadOnly ? "readonly" : state ?? "default";
|
|
97
99
|
const iconSize = size === "sm" ? "small" : "default";
|
|
98
100
|
const [uncontrolledEmpty, setUncontrolledEmpty] = React.useState(() => isEmptyValue(props.defaultValue));
|
|
@@ -155,9 +157,10 @@ const TextField = React.forwardRef(({ className, size = "md", state, leadingIcon
|
|
|
155
157
|
}),
|
|
156
158
|
/* @__PURE__ */ jsx("input", {
|
|
157
159
|
ref: setRefs,
|
|
158
|
-
type,
|
|
160
|
+
type: isNumeric ? "text" : type,
|
|
161
|
+
inputMode: isNumeric ? "numeric" : void 0,
|
|
159
162
|
"data-fods-part": "value",
|
|
160
|
-
className: cn(textFieldValueVariants({ state: currentState }), showEmptyDash && "placeholder:text-transparent"),
|
|
163
|
+
className: cn(textFieldValueVariants({ state: currentState }), isNumeric && "text-right", showEmptyDash && "placeholder:text-transparent"),
|
|
161
164
|
disabled: isDisabled,
|
|
162
165
|
readOnly: isReadOnly,
|
|
163
166
|
"aria-invalid": currentState === "error" || void 0,
|
|
@@ -169,5 +172,73 @@ const TextField = React.forwardRef(({ className, size = "md", state, leadingIcon
|
|
|
169
172
|
]
|
|
170
173
|
});
|
|
171
174
|
});
|
|
175
|
+
TextFieldShell.displayName = "TextFieldShell";
|
|
176
|
+
const TextFieldDate = React.forwardRef(({ value: valueProp, defaultValue, onValueChange, onInvalidInput, dateFormat, locale, minDate, maxDate, panelLabelledBy, panelLabel, navLabels, className, state, disabled, readOnly, onBlur, onKeyDown, ...props }, ref) => {
|
|
177
|
+
const isDisabled = disabled ?? state === "disabled";
|
|
178
|
+
const isReadOnly = readOnly ?? state === "readonly";
|
|
179
|
+
const [innerValue, setInnerValue] = React.useState(defaultValue);
|
|
180
|
+
const isControlled = valueProp !== void 0;
|
|
181
|
+
if (isControlled && innerValue !== void 0) setInnerValue(void 0);
|
|
182
|
+
const value = isControlled ? valueProp : innerValue;
|
|
183
|
+
const handleValueChange = (next) => {
|
|
184
|
+
if (!isControlled) setInnerValue(next);
|
|
185
|
+
onValueChange?.(next);
|
|
186
|
+
};
|
|
187
|
+
const innerRef = React.useRef(null);
|
|
188
|
+
const setRefs = React.useCallback((node) => {
|
|
189
|
+
innerRef.current = node;
|
|
190
|
+
if (typeof ref === "function") ref(node);
|
|
191
|
+
else if (ref) ref.current = node;
|
|
192
|
+
}, [ref]);
|
|
193
|
+
useFormReset(innerRef, () => {
|
|
194
|
+
trigger.clearDraft();
|
|
195
|
+
if (!isControlled) setInnerValue(defaultValue);
|
|
196
|
+
}, props.form);
|
|
197
|
+
const trigger = useDateFieldTrigger({
|
|
198
|
+
value,
|
|
199
|
+
onValueChange: handleValueChange,
|
|
200
|
+
onInvalidInput,
|
|
201
|
+
dateFormat,
|
|
202
|
+
locale,
|
|
203
|
+
minDate,
|
|
204
|
+
maxDate,
|
|
205
|
+
disabled: isDisabled,
|
|
206
|
+
readOnly: isReadOnly,
|
|
207
|
+
panelLabelledBy: panelLabelledBy ?? props["aria-labelledby"],
|
|
208
|
+
panelLabel: panelLabel ?? props["aria-label"],
|
|
209
|
+
navLabels,
|
|
210
|
+
inputRef: setRefs
|
|
211
|
+
});
|
|
212
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
213
|
+
...trigger.triggerProps,
|
|
214
|
+
className: cn("w-full", className),
|
|
215
|
+
children: /* @__PURE__ */ jsx(TextFieldShell, {
|
|
216
|
+
...props,
|
|
217
|
+
ref: trigger.setInputRef,
|
|
218
|
+
type: "text",
|
|
219
|
+
state,
|
|
220
|
+
disabled: isDisabled,
|
|
221
|
+
readOnly: isReadOnly,
|
|
222
|
+
leadingIcon: "calendar-dots",
|
|
223
|
+
...trigger.getInputProps({
|
|
224
|
+
onBlur,
|
|
225
|
+
onKeyDown
|
|
226
|
+
})
|
|
227
|
+
})
|
|
228
|
+
}), trigger.panel] });
|
|
229
|
+
});
|
|
230
|
+
TextFieldDate.displayName = "TextFieldDate";
|
|
231
|
+
/**
|
|
232
|
+
* Single-line text input. `type="date"` turns it into the date field (a Date in,
|
|
233
|
+
* a Date out, the market's `dateFormat` + `locale`, the DS calendar on click);
|
|
234
|
+
* every other `type` is the plain field.
|
|
235
|
+
*/
|
|
236
|
+
const TextField = React.forwardRef((props, ref) => props.type === "date" ? /* @__PURE__ */ jsx(TextFieldDate, {
|
|
237
|
+
...props,
|
|
238
|
+
ref
|
|
239
|
+
}) : /* @__PURE__ */ jsx(TextFieldShell, {
|
|
240
|
+
...props,
|
|
241
|
+
ref
|
|
242
|
+
}));
|
|
172
243
|
TextField.displayName = "TextField";
|
|
173
244
|
export { TextField, textFieldShellVariants, textFieldValueVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextField, TextFieldProps, TextFieldSize, TextFieldState, textFieldShellVariants, textFieldValueVariants } from "./TextField.js";
|
|
2
|
-
export { TextField, type TextFieldProps, type TextFieldSize, type TextFieldState, textFieldShellVariants, textFieldValueVariants };
|
|
1
|
+
import { TextField, TextFieldDateProps, TextFieldInputType, TextFieldProps, TextFieldSize, TextFieldState, TextFieldTextProps, textFieldShellVariants, textFieldValueVariants } from "./TextField.js";
|
|
2
|
+
export { TextField, type TextFieldDateProps, type TextFieldInputType, type TextFieldProps, type TextFieldSize, type TextFieldState, type TextFieldTextProps, textFieldShellVariants, textFieldValueVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -30,11 +30,8 @@ import { ColumnHeader, ColumnHeaderAlign, ColumnHeaderProps, ColumnHeaderSort, c
|
|
|
30
30
|
import "./components/combobox-field/index.js";
|
|
31
31
|
import { ComboboxField, ComboboxFieldProps, ComboboxFieldSize, ComboboxFieldState } from "./components/combobox-field/ComboboxField.js";
|
|
32
32
|
import { Combobox, ComboboxItem, ComboboxManualEntry, ComboboxProps } from "./components/combobox-field/Combobox.js";
|
|
33
|
-
import "./components/date-field/index.js";
|
|
34
|
-
import { TextField, TextFieldProps, TextFieldSize, TextFieldState, textFieldShellVariants, textFieldValueVariants } from "./components/text-field/TextField.js";
|
|
35
|
-
import { DatePicker, DatePickerNavLabels, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DatePickerVariant, DateRange } from "./components/date-picker/DatePicker.js";
|
|
36
|
-
import { DateField, DateFieldProps } from "./components/date-field/DateField.js";
|
|
37
33
|
import "./components/date-picker/index.js";
|
|
34
|
+
import { DatePicker, DatePickerNavLabels, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DatePickerVariant, DateRange } from "./components/date-picker/DatePicker.js";
|
|
38
35
|
import "./components/divider/index.js";
|
|
39
36
|
import { Divider, DividerProps, DividerVariant, dividerVariants } from "./components/divider/Divider.js";
|
|
40
37
|
import "./components/drawer/index.js";
|
|
@@ -98,6 +95,7 @@ import { RadioGroup, RadioGroupContext, RadioGroupProps } from "./components/rad
|
|
|
98
95
|
import "./components/select/index.js";
|
|
99
96
|
import { Radio, RadioProps, radioVariants } from "./components/radio/Radio.js";
|
|
100
97
|
import "./components/select-field/index.js";
|
|
98
|
+
import { TextField, TextFieldDateProps, TextFieldInputType, TextFieldProps, TextFieldSize, TextFieldState, TextFieldTextProps, textFieldShellVariants, textFieldValueVariants } from "./components/text-field/TextField.js";
|
|
101
99
|
import { SelectField, SelectFieldProps } from "./components/select-field/SelectField.js";
|
|
102
100
|
import "./components/skeleton/index.js";
|
|
103
101
|
import "./components/split-button/index.js";
|
|
@@ -129,4 +127,4 @@ import { PortalContainerContext } from "./internal/portalContainer.js";
|
|
|
129
127
|
import { FodsProvider, FodsProviderProps } from "./internal/FodsProvider.js";
|
|
130
128
|
import { ButtonSegmentContent, ButtonSegmentPosition, ButtonSegmentSize, ButtonSegmentVariant, buttonSegmentVariants } from "./internal/buttonSegment.js";
|
|
131
129
|
import { ProgressBarItemState, progressBarItemVariants } from "./internal/progressBarItem.js";
|
|
132
|
-
export { ALERT_STATUS_ICONS, AVAILABLE_ICONS, ActionRow, type ActionRowAvatar, type ActionRowBadge, type ActionRowBadgeEmotion, type ActionRowLabels, type ActionRowProps, Alert, type AlertAction, AlertActionHelper, AlertActionLink, type AlertActionLinkProps, type AlertIconAlign, type AlertLayout, type AlertProps, type AlertStatus, type AnchoredFocusModel, AnchoredPanelWithGroup as AnchoredPanel, AnchoredPanelGroup, type AnchoredPanelGroupProps, type AnchoredPanelProps, type AnchoredPanelRole, type AnchoredPanelSize, type AnchoredWidthPolicy, BADGE_STATUS_ICONS, Badge, type BadgeAppearance, type BadgeEmotion, type BadgeProps, type BadgeShape, type BadgeSize, Banner, BannerAction, type BannerActionProps, type BannerComposition, type BannerInvoiceIllustration, type BannerInvoiceProps, type BannerMiniProps, type BannerPersonProps, type BannerPitchProps, type BannerProps, type BannerSurface, Button, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonGroupSize, type ButtonGroupVariant, type ButtonProps, type ButtonSegmentContent, type ButtonSegmentPosition, type ButtonSegmentSize, type ButtonSegmentVariant, CardSelect, type CardSelectBadgeAlign, type CardSelectFamily, CardSelectGroup, type CardSelectGroupBaseProps, CardSelectGroupContext, type CardSelectGroupContextValue, type CardSelectGroupProps, type CardSelectLayout, type CardSelectMedia, type CardSelectProps, type CardSelectSize, type CardSelectTone, Checkbox, type CheckboxProps, Chip, type ChipBaseProps, type ChipEmotion, type ChipProps, type ChipSize, type ChipType, ColumnHeader, type ColumnHeaderAlign, type ColumnHeaderProps, type ColumnHeaderSort, Combobox, ComboboxField, type ComboboxFieldProps, type ComboboxFieldSize, type ComboboxFieldState, type ComboboxItem, type ComboboxManualEntry, type ComboboxProps,
|
|
130
|
+
export { ALERT_STATUS_ICONS, AVAILABLE_ICONS, ActionRow, type ActionRowAvatar, type ActionRowBadge, type ActionRowBadgeEmotion, type ActionRowLabels, type ActionRowProps, Alert, type AlertAction, AlertActionHelper, AlertActionLink, type AlertActionLinkProps, type AlertIconAlign, type AlertLayout, type AlertProps, type AlertStatus, type AnchoredFocusModel, AnchoredPanelWithGroup as AnchoredPanel, AnchoredPanelGroup, type AnchoredPanelGroupProps, type AnchoredPanelProps, type AnchoredPanelRole, type AnchoredPanelSize, type AnchoredWidthPolicy, BADGE_STATUS_ICONS, Badge, type BadgeAppearance, type BadgeEmotion, type BadgeProps, type BadgeShape, type BadgeSize, Banner, BannerAction, type BannerActionProps, type BannerComposition, type BannerInvoiceIllustration, type BannerInvoiceProps, type BannerMiniProps, type BannerPersonProps, type BannerPitchProps, type BannerProps, type BannerSurface, Button, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonGroupSize, type ButtonGroupVariant, type ButtonProps, type ButtonSegmentContent, type ButtonSegmentPosition, type ButtonSegmentSize, type ButtonSegmentVariant, CardSelect, type CardSelectBadgeAlign, type CardSelectFamily, CardSelectGroup, type CardSelectGroupBaseProps, CardSelectGroupContext, type CardSelectGroupContextValue, type CardSelectGroupProps, type CardSelectLayout, type CardSelectMedia, type CardSelectProps, type CardSelectSize, type CardSelectTone, Checkbox, type CheckboxProps, Chip, type ChipBaseProps, type ChipEmotion, type ChipProps, type ChipSize, type ChipType, ColumnHeader, type ColumnHeaderAlign, type ColumnHeaderProps, type ColumnHeaderSort, Combobox, ComboboxField, type ComboboxFieldProps, type ComboboxFieldSize, type ComboboxFieldState, type ComboboxItem, type ComboboxManualEntry, type ComboboxProps, DatePicker, type DatePickerNavLabels, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerVariant, type DateRange, Divider, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, DropdownButton, type DropdownButtonProps, type DropdownButtonSize, type DropdownButtonVariant, FAQ, type FAQContact, type FAQItemData, type FAQProps, type FAQVariant, Field, FieldGroup, type FieldGroupProps, FieldLegend, type FieldLegendProps, FieldPair, type FieldPairCell, type FieldPairDateCell, type FieldPairProps, type FieldPairSize, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldSize, FileUpload, type FileUploadFile, type FileUploadProps, FilterChip, type FilterChipBaseProps, type FilterChipEmotion, type FilterChipFamily, type FilterChipPopup, type FilterChipProps, type FilterChipSize, type FilterChipType, FilterFacet, type FilterFacetMultipleProps, type FilterFacetOption, type FilterFacetProps, type FilterFacetSingleProps, FirmAvatar, type FirmAvatarProps, type FirmAvatarSize, FodsProvider, type FodsProviderProps, FormActions, type FormActionsProps, type FormActionsStackBelow, FormBlock, type FormBlockContent, type FormBlockContextValue, type FormBlockHeadingLevel, type FormBlockLayout, type FormBlockProps, type FormBlockSurface, type FormBlockToggleLabel, FormSection, type FormSectionBreakpoint, FormSectionCell, type FormSectionCellProps, type FormSectionCellSpan, type FormSectionCellSpanValue, type FormSectionHeader, type FormSectionHeadingLevel, FormSectionPair, type FormSectionPairProps, type FormSectionProps, FormSectionTrio, type FormSectionTrioProps, HEADING_SIZE_BY_LEVEL, Heading, HeadingGroup, type HeadingGroupAlign, type HeadingGroupPicture, type HeadingGroupProps, type HeadingLevel, type HeadingProps, type HeadingSize, Hero, type HeroActionsWidth, type HeroProps, type HeroSurface, Icon, IconButton, type IconButtonProps, type IconName, type IconProps, type IconSize, ItemRow, type ItemRowColumnSet, type ItemRowField, type ItemRowLabels, type ItemRowProps, type ItemRowValue, ListRow, type ListRowProps, Menu, type MenuCommand, type MenuEntry, type MenuProps, type MenuSeparator, Modal, type ModalProps, type ModalSize, ModalTitle, type ModalType, NavLink, type NavLinkCurrent, type NavLinkProps, NumberField, type NumberFieldProps, type NumberFieldStepperLabels, Pagination, type PaginationItemState, type PaginationLabels, type PaginationProps, PortalContainerContext, ProgressBar, type ProgressBarItemState, type ProgressBarLayout, type ProgressBarProps, type ProgressBarSize, type ProgressBarStep, type ProgressBarVariant, PromoSticker, type PromoStickerColor, type PromoStickerLayout, type PromoStickerProps, PromoSurface, type PromoSurfaceLayout, type PromoSurfaceProps, type PromoSurfaceSurface, Radio, RadioGroup, RadioGroupContext, type RadioGroupProps, type RadioProps, Select, SelectField, type SelectFieldProps, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, type SkeletonVariant, SplitButton, type SplitButtonProps, type SplitButtonSize, type SplitButtonVariant, type StatusSummaryAnnouncement, StatusSummaryBar, type StatusSummaryBarProps, type StatusSummaryFamily, type StatusSummaryItem, SubjectLookupField, type SubjectLookupFieldLabels, type SubjectLookupFieldProps, type SubjectLookupFieldState, type SubjectLookupGroup, type SubjectLookupItem, type SubjectLookupSource, Switch, type SwitchBaseProps, type SwitchProps, TABLE_DEFAULT_PAGE_SIZE, TABLE_PAGE_SIZE_OPTIONS, Table, type TableCellAlign, TableChildRowPrefix, type TableColumnMeta, type TableColumnVisibility, type TableEmptyKind, type TableEmptyProps, type TableEmptyState, type TableFeatureSet, type TableLayout, type TableMobileConfig, type TableMobileLoadMore, type TableMobileProps, type TablePagination, type TablePaginationLabels, type TableProps, type TableRowAction, type TableSelection, TextField, type TextFieldDateProps, type TextFieldInputType, type TextFieldProps, type TextFieldSize, type TextFieldState, type TextFieldTextProps, TextLink, type TextLinkElement, type TextLinkProps, type TextLinkSize, type TextLinkSurface, type TextLinkUnderline, type TextLinkVariant, Textarea, type TextareaProps, type TextareaSize, type TextareaState, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipSize, TooltipTrigger, UnitField, type UnitFieldProps, type UnitFieldSize, type UnitFieldState, type UseAnchoredPanelOptions, type UseAnchoredPanelReturn, actionRowVariants, alertVariants, badgeVariants, bannerVariants, buttonGroupContainerVariants, buttonGroupItemVariants, buttonSegmentVariants, publicButtonVariants as buttonVariants, cardSelectVariants, checkboxVariants, chipVariants, cn, columnHeaderVariants, createTableColumnHelper, dividerVariants, drawerVariants, dropdownButtonVariants, faqVariants, fieldGroupVariants, fieldLegendVariants, fieldPairContainerVariants, fieldSegmentVariants, fieldSeparatorVariants, fieldSetVariants, fileUploadVariants, filterChipVariants, firmAvatarVariants, firmInitials, floatingLabelVariants, formActionsVariants, formBlockVariants, formSectionVariants, hasOpenFloatingPanel, headingGroupVariants, headingVariants, helperTextVariants, heroVariants, iconButtonVariants, itemRowVariants, listRowVariants, modalVariants, navLinkVariants, numberFieldShellVariants, optionalLabelVariants, paginationItemVariants, paginationRange, paginationVariants, popoverBodyClass, popoverGroupClass, popoverSurfaceVariants, progressBarItemVariants, progressBarVariants, promoStickerVariants, promoSurfaceVariants, radioVariants, resolveCellSpanClasses, skeletonVariants, splitButtonContainerVariants, statusSummaryBarVariants, subjectLookupButtonVariants, subjectLookupGlyphVariants, switchVariants, tableFeatureSet, textFieldShellVariants, textFieldValueVariants, textLinkVariants, textareaCounterVariants, textareaShellVariants, textareaValueVariants, tooltipVariants, unitFieldShellVariants, useAnchoredPanel, useFormBlock, useFormBlockCloseMs, useTableLayout };
|