@domphy/ui 0.21.1 → 0.21.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/CHANGELOG.md +12 -0
- package/dist/core-theme-ui.global.js +6 -6
- package/dist/core-theme-ui.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -29
- package/dist/index.d.ts +43 -29
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -458,6 +458,10 @@ declare function empty(props?: {
|
|
|
458
458
|
* caught. Errors during static construction propagate normally — those are
|
|
459
459
|
* programming errors, not runtime data errors.
|
|
460
460
|
*
|
|
461
|
+
* `reset()` restores the original children (including a reactive children
|
|
462
|
+
* function) so the next evaluation runs again — it does not leave the host
|
|
463
|
+
* empty.
|
|
464
|
+
*
|
|
461
465
|
* @hostTag any
|
|
462
466
|
* @param props.fallback - Fallback element or factory `(error, reset) => element`. Defaults to a plain error message div.
|
|
463
467
|
* @param props.onError - Optional callback for logging/telemetry.
|
|
@@ -613,7 +617,7 @@ declare function inputCheckbox(props?: {
|
|
|
613
617
|
/**
|
|
614
618
|
* Styles a native color picker swatch with themed padding, rounded swatch and
|
|
615
619
|
* disabled styling. Apply to an `<input>` element of type `color` (the patch
|
|
616
|
-
*
|
|
620
|
+
* default is `type: "color"`; a native `type` wins).
|
|
617
621
|
*
|
|
618
622
|
* @hostTag input
|
|
619
623
|
* @param props.color - Optional theme color tone used for the disabled state (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -629,7 +633,7 @@ type InputDateTimeMode = "date" | "time" | "week" | "month" | "datetime-local";
|
|
|
629
633
|
/**
|
|
630
634
|
* Styles a native date/time input with themed border, padding, hover, focus,
|
|
631
635
|
* invalid and disabled states. The `mode` selects the input `type`. Apply to
|
|
632
|
-
* an `<input>` element (the patch
|
|
636
|
+
* an `<input>` element (the patch default `type` is the chosen `mode`; a native `type` wins).
|
|
633
637
|
*
|
|
634
638
|
* @hostTag input
|
|
635
639
|
* @param props.mode - Input mode selecting the host `type`: `"date" | "time" | "week" | "month" | "datetime-local"`. Defaults to `"datetime-local"`.
|
|
@@ -646,7 +650,7 @@ declare function inputDateTime(props?: {
|
|
|
646
650
|
/**
|
|
647
651
|
* Styles a native file input with a themed upload button, border, hover, focus
|
|
648
652
|
* and disabled states. Apply to an `<input>` element of type `file` (the patch
|
|
649
|
-
*
|
|
653
|
+
* default is `type: "file"`; a native `type` wins).
|
|
650
654
|
*
|
|
651
655
|
* @hostTag input
|
|
652
656
|
* @param props.color - Optional theme color tone for text/border and the upload button (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -661,7 +665,7 @@ declare function inputFile(props?: {
|
|
|
661
665
|
/**
|
|
662
666
|
* Styles a native number input with themed border, padding, visible spin
|
|
663
667
|
* buttons, hover, focus and disabled states. Apply to an `<input>` element of
|
|
664
|
-
* type `number` (the patch
|
|
668
|
+
* type `number` (the patch default is `type: "number"`; a native `type` wins).
|
|
665
669
|
*
|
|
666
670
|
* @hostTag input
|
|
667
671
|
* @param props.color - Optional theme color tone for text/border (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -687,16 +691,32 @@ declare function inputOTP(): PartialElement;
|
|
|
687
691
|
/**
|
|
688
692
|
* Password input wrapper: a styled `<div>` that inserts an `<input type="password">`
|
|
689
693
|
* and a show/hide toggle button. The outer div carries the focus-ring outline via
|
|
690
|
-
* `:focus-within`. Apply to an empty `<div>`.
|
|
694
|
+
* `:focus-within`. Apply to an empty `<div>`. Host `value`/`name`/`onInput`/
|
|
695
|
+
* `disabled`/`required` are forwarded onto the real input so the field
|
|
696
|
+
* participates in FormData.
|
|
691
697
|
*
|
|
692
698
|
* @hostTag div
|
|
693
699
|
* @param props.color - Base color tone for border/background/text. Defaults to `"neutral"`.
|
|
694
700
|
* @param props.accentColor - Accent outline color on focus-within. Defaults to `"primary"`.
|
|
695
|
-
* @
|
|
701
|
+
* @param props.value - Forwarded onto the inner input. Optional.
|
|
702
|
+
* @param props.name - Forwarded onto the inner input (FormData key). Optional.
|
|
703
|
+
* @param props.onInput - Forwarded onto the inner input. Optional.
|
|
704
|
+
* @param props.disabled - Forwarded onto the inner input. Optional.
|
|
705
|
+
* @param props.required - Forwarded onto the inner input. Optional.
|
|
706
|
+
* @param props.autocomplete - Native autocomplete token. Defaults to `"current-password"`.
|
|
707
|
+
* @param props.ariaLabel - Accessible name for the inner input. Defaults to `"Password"`.
|
|
708
|
+
* @example { div: null, name: "password", $: [inputPassword()] }
|
|
696
709
|
*/
|
|
697
710
|
declare function inputPassword(props?: {
|
|
698
711
|
color?: ValueOrState<ThemeColor>;
|
|
699
712
|
accentColor?: ValueOrState<ThemeColor>;
|
|
713
|
+
value?: ValueOrState<string>;
|
|
714
|
+
name?: string;
|
|
715
|
+
onInput?: (event: Event) => void;
|
|
716
|
+
disabled?: ValueOrState<boolean>;
|
|
717
|
+
required?: boolean;
|
|
718
|
+
autocomplete?: string;
|
|
719
|
+
ariaLabel?: string;
|
|
700
720
|
}): PartialElement;
|
|
701
721
|
|
|
702
722
|
/**
|
|
@@ -732,7 +752,7 @@ declare function inputRange(props?: {
|
|
|
732
752
|
/**
|
|
733
753
|
* Styles a search input with themed border, padding, placeholder color, native
|
|
734
754
|
* search decorations, hover, focus and disabled states. Apply to an `<input>`
|
|
735
|
-
* element of type `search` (the patch
|
|
755
|
+
* element of type `search` (the patch default is `type: "search"`; a native `type` wins).
|
|
736
756
|
*
|
|
737
757
|
* @hostTag input
|
|
738
758
|
* @param props.color - Optional theme color tone for text/border/placeholder (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -845,7 +865,7 @@ declare function linkButton(props?: {
|
|
|
845
865
|
* @param props.color - Surface color tone. Optional `ThemeColor`, defaults to `"neutral"`.
|
|
846
866
|
* @example { ul: [...], $: [list()] }
|
|
847
867
|
*/
|
|
848
|
-
declare function list(
|
|
868
|
+
declare function list(props?: {
|
|
849
869
|
color?: ThemeColor;
|
|
850
870
|
}): PartialElement;
|
|
851
871
|
/**
|
|
@@ -1094,11 +1114,22 @@ declare function progress(props?: {
|
|
|
1094
1114
|
accentColor?: ValueOrState<ThemeColor>;
|
|
1095
1115
|
}): PartialElement;
|
|
1096
1116
|
|
|
1117
|
+
type RatingProps = {
|
|
1118
|
+
value?: ValueOrState<number>;
|
|
1119
|
+
max?: number;
|
|
1120
|
+
onChange?: (value: number) => void;
|
|
1121
|
+
readOnly?: boolean;
|
|
1122
|
+
color?: ThemeColor;
|
|
1123
|
+
};
|
|
1097
1124
|
/**
|
|
1098
1125
|
* Interactive star rating applied to a container `<div>`. Manages its own star
|
|
1099
1126
|
* children: click to set, Arrow keys to adjust, hover to preview. In `readOnly`
|
|
1100
1127
|
* mode stars are non-interactive. Apply to a `<div>` element.
|
|
1101
1128
|
*
|
|
1129
|
+
* Star insert runs in `_onInit` (SSR markup). `onChange`/`readOnly`/`max` and
|
|
1130
|
+
* a plain-number `value` stay live via `behavior()` `update()` so a reused
|
|
1131
|
+
* node picks up the latest factory props.
|
|
1132
|
+
*
|
|
1102
1133
|
* @hostTag div
|
|
1103
1134
|
* @param props.value - Current rating (0 – max). `ValueOrState<number>`, defaults to `0`.
|
|
1104
1135
|
* @param props.max - Total number of stars. Optional `number`, defaults to `5`.
|
|
@@ -1107,13 +1138,7 @@ declare function progress(props?: {
|
|
|
1107
1138
|
* @param props.color - Star color tone. Optional `ThemeColor`, defaults to `"warning"`.
|
|
1108
1139
|
* @example { div: null, $: [rating({ value: ratingState, onChange: (v) => ratingState.set(v) })] }
|
|
1109
1140
|
*/
|
|
1110
|
-
declare function rating(props?:
|
|
1111
|
-
value?: ValueOrState<number>;
|
|
1112
|
-
max?: number;
|
|
1113
|
-
onChange?: (value: number) => void;
|
|
1114
|
-
readOnly?: boolean;
|
|
1115
|
-
color?: ThemeColor;
|
|
1116
|
-
}): PartialElement;
|
|
1141
|
+
declare function rating(props?: RatingProps): PartialElement;
|
|
1117
1142
|
|
|
1118
1143
|
/**
|
|
1119
1144
|
* Circular ring progress indicator rendered via CSS `conic-gradient` and a
|
|
@@ -1350,17 +1375,6 @@ declare function splitter(props?: {
|
|
|
1350
1375
|
min?: number;
|
|
1351
1376
|
max?: number;
|
|
1352
1377
|
}): PartialElement;
|
|
1353
|
-
/**
|
|
1354
|
-
* The resizable panel inside a `splitter`. Reads the `splitter` context and binds its
|
|
1355
|
-
* width (horizontal) or height (vertical) to the context `size` state, updating reactively as
|
|
1356
|
-
* the handle is dragged. Intended for exactly two panels either side of one `splitterHandle`:
|
|
1357
|
-
* the first `splitterPanel` mounted takes `size`%, and the second takes the complementary
|
|
1358
|
-
* `100 - size`% — so the pair always sums to the full width/height instead of both tracking
|
|
1359
|
-
* the same number (which would make them grow and shrink together instead of trading space).
|
|
1360
|
-
* Warns if used outside a `splitter`. Takes no props.
|
|
1361
|
-
*
|
|
1362
|
-
* @example { div: [...], $: [splitterPanel()] }
|
|
1363
|
-
*/
|
|
1364
1378
|
declare function splitterPanel(): PartialElement;
|
|
1365
1379
|
/**
|
|
1366
1380
|
* The draggable divider inside a `splitter`. Reads the `splitter` context, shows the
|
|
@@ -1488,11 +1502,11 @@ declare function tabs(props?: {
|
|
|
1488
1502
|
/**
|
|
1489
1503
|
* Styles an inline chip/tag (rounded, bordered, optional remove button).
|
|
1490
1504
|
* No host tag check; typically applied to a `<span>`. When `removable` is true,
|
|
1491
|
-
* a close button is inserted that removes the host node on click.
|
|
1505
|
+
* a close button is inserted that removes the host node on click or Enter/Space.
|
|
1492
1506
|
*
|
|
1493
1507
|
* @hostTag span
|
|
1494
1508
|
* @param props.color - Theme color for the chip background/border/text. Optional, accepts a value or state. Defaults to `"neutral"`.
|
|
1495
|
-
* @param props.removable - When true, renders a remove (x) button that removes the tag on click. Optional. Defaults to `false`.
|
|
1509
|
+
* @param props.removable - When true, renders a remove (x) button that removes the tag on click or Enter/Space. Optional. Defaults to `false`.
|
|
1496
1510
|
* @example { span: "Label", $: [tag({ removable: true })] }
|
|
1497
1511
|
*/
|
|
1498
1512
|
declare function tag(props?: {
|
|
@@ -1507,7 +1521,7 @@ declare function tag(props?: {
|
|
|
1507
1521
|
* @hostTag textarea
|
|
1508
1522
|
* @param props.color - Theme color for the border and text. Optional, accepts a value or state. Defaults to `"neutral"`.
|
|
1509
1523
|
* @param props.accentColor - Theme color for hover/focus outline. Optional, accepts a value or state. Defaults to `"primary"`.
|
|
1510
|
-
* @param props.autoResize - When true, grows the textarea height to fit its content on input. Optional. Defaults to `false`.
|
|
1524
|
+
* @param props.autoResize - When true, grows the textarea height to fit its content on input and when `value` updates. Optional. Defaults to `false`.
|
|
1511
1525
|
* @example { textarea: null, $: [textarea({ autoResize: true })] }
|
|
1512
1526
|
*/
|
|
1513
1527
|
declare function textarea(props?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -458,6 +458,10 @@ declare function empty(props?: {
|
|
|
458
458
|
* caught. Errors during static construction propagate normally — those are
|
|
459
459
|
* programming errors, not runtime data errors.
|
|
460
460
|
*
|
|
461
|
+
* `reset()` restores the original children (including a reactive children
|
|
462
|
+
* function) so the next evaluation runs again — it does not leave the host
|
|
463
|
+
* empty.
|
|
464
|
+
*
|
|
461
465
|
* @hostTag any
|
|
462
466
|
* @param props.fallback - Fallback element or factory `(error, reset) => element`. Defaults to a plain error message div.
|
|
463
467
|
* @param props.onError - Optional callback for logging/telemetry.
|
|
@@ -613,7 +617,7 @@ declare function inputCheckbox(props?: {
|
|
|
613
617
|
/**
|
|
614
618
|
* Styles a native color picker swatch with themed padding, rounded swatch and
|
|
615
619
|
* disabled styling. Apply to an `<input>` element of type `color` (the patch
|
|
616
|
-
*
|
|
620
|
+
* default is `type: "color"`; a native `type` wins).
|
|
617
621
|
*
|
|
618
622
|
* @hostTag input
|
|
619
623
|
* @param props.color - Optional theme color tone used for the disabled state (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -629,7 +633,7 @@ type InputDateTimeMode = "date" | "time" | "week" | "month" | "datetime-local";
|
|
|
629
633
|
/**
|
|
630
634
|
* Styles a native date/time input with themed border, padding, hover, focus,
|
|
631
635
|
* invalid and disabled states. The `mode` selects the input `type`. Apply to
|
|
632
|
-
* an `<input>` element (the patch
|
|
636
|
+
* an `<input>` element (the patch default `type` is the chosen `mode`; a native `type` wins).
|
|
633
637
|
*
|
|
634
638
|
* @hostTag input
|
|
635
639
|
* @param props.mode - Input mode selecting the host `type`: `"date" | "time" | "week" | "month" | "datetime-local"`. Defaults to `"datetime-local"`.
|
|
@@ -646,7 +650,7 @@ declare function inputDateTime(props?: {
|
|
|
646
650
|
/**
|
|
647
651
|
* Styles a native file input with a themed upload button, border, hover, focus
|
|
648
652
|
* and disabled states. Apply to an `<input>` element of type `file` (the patch
|
|
649
|
-
*
|
|
653
|
+
* default is `type: "file"`; a native `type` wins).
|
|
650
654
|
*
|
|
651
655
|
* @hostTag input
|
|
652
656
|
* @param props.color - Optional theme color tone for text/border and the upload button (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -661,7 +665,7 @@ declare function inputFile(props?: {
|
|
|
661
665
|
/**
|
|
662
666
|
* Styles a native number input with themed border, padding, visible spin
|
|
663
667
|
* buttons, hover, focus and disabled states. Apply to an `<input>` element of
|
|
664
|
-
* type `number` (the patch
|
|
668
|
+
* type `number` (the patch default is `type: "number"`; a native `type` wins).
|
|
665
669
|
*
|
|
666
670
|
* @hostTag input
|
|
667
671
|
* @param props.color - Optional theme color tone for text/border (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -687,16 +691,32 @@ declare function inputOTP(): PartialElement;
|
|
|
687
691
|
/**
|
|
688
692
|
* Password input wrapper: a styled `<div>` that inserts an `<input type="password">`
|
|
689
693
|
* and a show/hide toggle button. The outer div carries the focus-ring outline via
|
|
690
|
-
* `:focus-within`. Apply to an empty `<div>`.
|
|
694
|
+
* `:focus-within`. Apply to an empty `<div>`. Host `value`/`name`/`onInput`/
|
|
695
|
+
* `disabled`/`required` are forwarded onto the real input so the field
|
|
696
|
+
* participates in FormData.
|
|
691
697
|
*
|
|
692
698
|
* @hostTag div
|
|
693
699
|
* @param props.color - Base color tone for border/background/text. Defaults to `"neutral"`.
|
|
694
700
|
* @param props.accentColor - Accent outline color on focus-within. Defaults to `"primary"`.
|
|
695
|
-
* @
|
|
701
|
+
* @param props.value - Forwarded onto the inner input. Optional.
|
|
702
|
+
* @param props.name - Forwarded onto the inner input (FormData key). Optional.
|
|
703
|
+
* @param props.onInput - Forwarded onto the inner input. Optional.
|
|
704
|
+
* @param props.disabled - Forwarded onto the inner input. Optional.
|
|
705
|
+
* @param props.required - Forwarded onto the inner input. Optional.
|
|
706
|
+
* @param props.autocomplete - Native autocomplete token. Defaults to `"current-password"`.
|
|
707
|
+
* @param props.ariaLabel - Accessible name for the inner input. Defaults to `"Password"`.
|
|
708
|
+
* @example { div: null, name: "password", $: [inputPassword()] }
|
|
696
709
|
*/
|
|
697
710
|
declare function inputPassword(props?: {
|
|
698
711
|
color?: ValueOrState<ThemeColor>;
|
|
699
712
|
accentColor?: ValueOrState<ThemeColor>;
|
|
713
|
+
value?: ValueOrState<string>;
|
|
714
|
+
name?: string;
|
|
715
|
+
onInput?: (event: Event) => void;
|
|
716
|
+
disabled?: ValueOrState<boolean>;
|
|
717
|
+
required?: boolean;
|
|
718
|
+
autocomplete?: string;
|
|
719
|
+
ariaLabel?: string;
|
|
700
720
|
}): PartialElement;
|
|
701
721
|
|
|
702
722
|
/**
|
|
@@ -732,7 +752,7 @@ declare function inputRange(props?: {
|
|
|
732
752
|
/**
|
|
733
753
|
* Styles a search input with themed border, padding, placeholder color, native
|
|
734
754
|
* search decorations, hover, focus and disabled states. Apply to an `<input>`
|
|
735
|
-
* element of type `search` (the patch
|
|
755
|
+
* element of type `search` (the patch default is `type: "search"`; a native `type` wins).
|
|
736
756
|
*
|
|
737
757
|
* @hostTag input
|
|
738
758
|
* @param props.color - Optional theme color tone for text/border/placeholder (`ValueOrState<ThemeColor>`). Defaults to `"neutral"`.
|
|
@@ -845,7 +865,7 @@ declare function linkButton(props?: {
|
|
|
845
865
|
* @param props.color - Surface color tone. Optional `ThemeColor`, defaults to `"neutral"`.
|
|
846
866
|
* @example { ul: [...], $: [list()] }
|
|
847
867
|
*/
|
|
848
|
-
declare function list(
|
|
868
|
+
declare function list(props?: {
|
|
849
869
|
color?: ThemeColor;
|
|
850
870
|
}): PartialElement;
|
|
851
871
|
/**
|
|
@@ -1094,11 +1114,22 @@ declare function progress(props?: {
|
|
|
1094
1114
|
accentColor?: ValueOrState<ThemeColor>;
|
|
1095
1115
|
}): PartialElement;
|
|
1096
1116
|
|
|
1117
|
+
type RatingProps = {
|
|
1118
|
+
value?: ValueOrState<number>;
|
|
1119
|
+
max?: number;
|
|
1120
|
+
onChange?: (value: number) => void;
|
|
1121
|
+
readOnly?: boolean;
|
|
1122
|
+
color?: ThemeColor;
|
|
1123
|
+
};
|
|
1097
1124
|
/**
|
|
1098
1125
|
* Interactive star rating applied to a container `<div>`. Manages its own star
|
|
1099
1126
|
* children: click to set, Arrow keys to adjust, hover to preview. In `readOnly`
|
|
1100
1127
|
* mode stars are non-interactive. Apply to a `<div>` element.
|
|
1101
1128
|
*
|
|
1129
|
+
* Star insert runs in `_onInit` (SSR markup). `onChange`/`readOnly`/`max` and
|
|
1130
|
+
* a plain-number `value` stay live via `behavior()` `update()` so a reused
|
|
1131
|
+
* node picks up the latest factory props.
|
|
1132
|
+
*
|
|
1102
1133
|
* @hostTag div
|
|
1103
1134
|
* @param props.value - Current rating (0 – max). `ValueOrState<number>`, defaults to `0`.
|
|
1104
1135
|
* @param props.max - Total number of stars. Optional `number`, defaults to `5`.
|
|
@@ -1107,13 +1138,7 @@ declare function progress(props?: {
|
|
|
1107
1138
|
* @param props.color - Star color tone. Optional `ThemeColor`, defaults to `"warning"`.
|
|
1108
1139
|
* @example { div: null, $: [rating({ value: ratingState, onChange: (v) => ratingState.set(v) })] }
|
|
1109
1140
|
*/
|
|
1110
|
-
declare function rating(props?:
|
|
1111
|
-
value?: ValueOrState<number>;
|
|
1112
|
-
max?: number;
|
|
1113
|
-
onChange?: (value: number) => void;
|
|
1114
|
-
readOnly?: boolean;
|
|
1115
|
-
color?: ThemeColor;
|
|
1116
|
-
}): PartialElement;
|
|
1141
|
+
declare function rating(props?: RatingProps): PartialElement;
|
|
1117
1142
|
|
|
1118
1143
|
/**
|
|
1119
1144
|
* Circular ring progress indicator rendered via CSS `conic-gradient` and a
|
|
@@ -1350,17 +1375,6 @@ declare function splitter(props?: {
|
|
|
1350
1375
|
min?: number;
|
|
1351
1376
|
max?: number;
|
|
1352
1377
|
}): PartialElement;
|
|
1353
|
-
/**
|
|
1354
|
-
* The resizable panel inside a `splitter`. Reads the `splitter` context and binds its
|
|
1355
|
-
* width (horizontal) or height (vertical) to the context `size` state, updating reactively as
|
|
1356
|
-
* the handle is dragged. Intended for exactly two panels either side of one `splitterHandle`:
|
|
1357
|
-
* the first `splitterPanel` mounted takes `size`%, and the second takes the complementary
|
|
1358
|
-
* `100 - size`% — so the pair always sums to the full width/height instead of both tracking
|
|
1359
|
-
* the same number (which would make them grow and shrink together instead of trading space).
|
|
1360
|
-
* Warns if used outside a `splitter`. Takes no props.
|
|
1361
|
-
*
|
|
1362
|
-
* @example { div: [...], $: [splitterPanel()] }
|
|
1363
|
-
*/
|
|
1364
1378
|
declare function splitterPanel(): PartialElement;
|
|
1365
1379
|
/**
|
|
1366
1380
|
* The draggable divider inside a `splitter`. Reads the `splitter` context, shows the
|
|
@@ -1488,11 +1502,11 @@ declare function tabs(props?: {
|
|
|
1488
1502
|
/**
|
|
1489
1503
|
* Styles an inline chip/tag (rounded, bordered, optional remove button).
|
|
1490
1504
|
* No host tag check; typically applied to a `<span>`. When `removable` is true,
|
|
1491
|
-
* a close button is inserted that removes the host node on click.
|
|
1505
|
+
* a close button is inserted that removes the host node on click or Enter/Space.
|
|
1492
1506
|
*
|
|
1493
1507
|
* @hostTag span
|
|
1494
1508
|
* @param props.color - Theme color for the chip background/border/text. Optional, accepts a value or state. Defaults to `"neutral"`.
|
|
1495
|
-
* @param props.removable - When true, renders a remove (x) button that removes the tag on click. Optional. Defaults to `false`.
|
|
1509
|
+
* @param props.removable - When true, renders a remove (x) button that removes the tag on click or Enter/Space. Optional. Defaults to `false`.
|
|
1496
1510
|
* @example { span: "Label", $: [tag({ removable: true })] }
|
|
1497
1511
|
*/
|
|
1498
1512
|
declare function tag(props?: {
|
|
@@ -1507,7 +1521,7 @@ declare function tag(props?: {
|
|
|
1507
1521
|
* @hostTag textarea
|
|
1508
1522
|
* @param props.color - Theme color for the border and text. Optional, accepts a value or state. Defaults to `"neutral"`.
|
|
1509
1523
|
* @param props.accentColor - Theme color for hover/focus outline. Optional, accepts a value or state. Defaults to `"primary"`.
|
|
1510
|
-
* @param props.autoResize - When true, grows the textarea height to fit its content on input. Optional. Defaults to `false`.
|
|
1524
|
+
* @param props.autoResize - When true, grows the textarea height to fit its content on input and when `value` updates. Optional. Defaults to `false`.
|
|
1511
1525
|
* @example { textarea: null, $: [textarea({ autoResize: true })] }
|
|
1512
1526
|
*/
|
|
1513
1527
|
declare function textarea(props?: {
|