@ariakit/react-core 0.4.3 → 0.4.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/CHANGELOG.md +58 -0
- package/cjs/__chunks/{7DQ2LBH2.cjs → 3HMQOCLF.cjs} +23 -5
- package/cjs/__chunks/{AJF5DT5A.cjs → AY5J25V7.cjs} +2 -2
- package/cjs/__chunks/{HFNM6QV4.cjs → DAOFDKV2.cjs} +1 -1
- package/cjs/__chunks/{GYHP7IYG.cjs → DFXPO2ED.cjs} +2 -2
- package/cjs/__chunks/{3C4RFBCG.cjs → EYZZO5IT.cjs} +1 -1
- package/cjs/__chunks/{3MKOUH5M.cjs → GZ2NNSLV.cjs} +4 -4
- package/cjs/__chunks/ISJGSS4S.cjs +16 -0
- package/cjs/__chunks/{A356CGND.cjs → JDCTLYQ4.cjs} +1 -1
- package/cjs/__chunks/{T5BWR4CB.cjs → KDTFHBKU.cjs} +2 -2
- package/cjs/__chunks/{NZSB7HSZ.cjs → LY4LCJM6.cjs} +2 -2
- package/cjs/__chunks/{DCTXNU2X.cjs → N43E53E6.cjs} +3 -3
- package/cjs/__chunks/{IHFGURUM.cjs → NRPEUNJB.cjs} +2 -2
- package/cjs/__chunks/PVLZGFP6.cjs +34 -0
- package/cjs/__chunks/{CWS5RZSU.cjs → QJDA4LG6.cjs} +28 -17
- package/cjs/__chunks/{NDVZ37O3.cjs → RG6U7KAS.cjs} +22 -4
- package/cjs/__chunks/YWAHOWYE.cjs +25 -0
- package/cjs/__chunks/{3XXW4Y4D.cjs → Z2VL7JHX.cjs} +2 -2
- package/cjs/checkbox/checkbox-check.cjs +2 -2
- package/cjs/collection/collection-renderer.d.cts +0 -2
- package/cjs/collection/collection-renderer.d.ts +0 -2
- package/cjs/combobox/combobox-cancel.cjs +4 -4
- package/cjs/combobox/combobox-disclosure.cjs +4 -4
- package/cjs/combobox/combobox-item-check.cjs +2 -2
- package/cjs/combobox/combobox-item.cjs +19 -9
- package/cjs/combobox/combobox-item.d.cts +22 -12
- package/cjs/combobox/combobox-item.d.ts +22 -12
- package/cjs/combobox/combobox-popover.cjs +41 -16
- package/cjs/combobox/combobox-provider.cjs +3 -2
- package/cjs/combobox/combobox-store.cjs +6 -2
- package/cjs/combobox/combobox-store.d.cts +12 -4
- package/cjs/combobox/combobox-store.d.ts +12 -4
- package/cjs/combobox/combobox-value.cjs +32 -0
- package/cjs/combobox/combobox-value.d.cts +41 -0
- package/cjs/combobox/combobox-value.d.ts +41 -0
- package/cjs/combobox/combobox.cjs +79 -32
- package/cjs/combobox/combobox.d.cts +20 -0
- package/cjs/combobox/combobox.d.ts +20 -0
- package/cjs/composite/composite-input.cjs +91 -6
- package/cjs/composite/composite-input.d.cts +2 -0
- package/cjs/composite/composite-input.d.ts +2 -0
- package/cjs/composite/composite-item.cjs +3 -3
- package/cjs/composite/composite-overflow-disclosure.cjs +3 -3
- package/cjs/composite/composite-overflow.cjs +12 -12
- package/cjs/composite/composite-renderer.d.cts +0 -2
- package/cjs/composite/composite-renderer.d.ts +0 -2
- package/cjs/dialog/dialog-backdrop.cjs +3 -3
- package/cjs/dialog/dialog-dismiss.cjs +2 -2
- package/cjs/dialog/dialog.cjs +11 -11
- package/cjs/dialog/dialog.d.cts +4 -0
- package/cjs/dialog/dialog.d.ts +4 -0
- package/cjs/dialog/utils/disable-tree.cjs +3 -3
- package/cjs/dialog/utils/use-prevent-body-scroll.cjs +3 -3
- package/cjs/form/form-checkbox.cjs +1 -1
- package/cjs/form/form-push.cjs +1 -1
- package/cjs/form/form-radio.cjs +4 -4
- package/cjs/hovercard/hovercard-disclosure.cjs +1 -1
- package/cjs/hovercard/hovercard-dismiss.cjs +4 -4
- package/cjs/hovercard/hovercard.cjs +13 -13
- package/cjs/menu/menu-button-arrow.cjs +2 -2
- package/cjs/menu/menu-dismiss.cjs +4 -4
- package/cjs/menu/menu-item-check.cjs +2 -2
- package/cjs/menu/menu-item-checkbox.cjs +4 -4
- package/cjs/menu/menu-item-radio.cjs +7 -7
- package/cjs/menu/menu-item.cjs +4 -4
- package/cjs/menu/menu.cjs +14 -14
- package/cjs/popover/popover-disclosure-arrow.cjs +2 -2
- package/cjs/popover/popover-dismiss.cjs +3 -3
- package/cjs/popover/popover.cjs +12 -12
- package/cjs/radio/radio.cjs +4 -4
- package/cjs/select/select-arrow.cjs +3 -3
- package/cjs/select/select-item-check.cjs +2 -2
- package/cjs/select/select-item.cjs +4 -4
- package/cjs/select/select-popover.cjs +13 -13
- package/cjs/select/select-value.d.cts +8 -7
- package/cjs/select/select-value.d.ts +8 -7
- package/cjs/select/select.cjs +4 -4
- package/cjs/tab/tab-panel.cjs +2 -2
- package/cjs/tab/tab.cjs +7 -7
- package/cjs/tag/tag-context.cjs +25 -0
- package/cjs/tag/tag-context.d.cts +21 -0
- package/cjs/tag/tag-context.d.ts +21 -0
- package/cjs/tag/tag-input.cjs +191 -0
- package/cjs/tag/tag-input.d.cts +122 -0
- package/cjs/tag/tag-input.d.ts +122 -0
- package/cjs/tag/tag-list-label.cjs +56 -0
- package/cjs/tag/tag-list-label.d.cts +55 -0
- package/cjs/tag/tag-list-label.d.ts +55 -0
- package/cjs/tag/tag-list.cjs +141 -0
- package/cjs/tag/tag-list.d.cts +58 -0
- package/cjs/tag/tag-list.d.ts +58 -0
- package/cjs/tag/tag-provider.cjs +26 -0
- package/cjs/tag/tag-provider.d.cts +29 -0
- package/cjs/tag/tag-provider.d.ts +29 -0
- package/cjs/tag/tag-remove.cjs +119 -0
- package/cjs/tag/tag-remove.d.cts +67 -0
- package/cjs/tag/tag-remove.d.ts +67 -0
- package/cjs/tag/tag-store.cjs +15 -0
- package/cjs/tag/tag-store.d.cts +49 -0
- package/cjs/tag/tag-store.d.ts +49 -0
- package/cjs/tag/tag-value.cjs +29 -0
- package/cjs/tag/tag-value.d.cts +41 -0
- package/cjs/tag/tag-value.d.ts +41 -0
- package/cjs/tag/tag-values.cjs +29 -0
- package/cjs/tag/tag-values.d.cts +52 -0
- package/cjs/tag/tag-values.d.ts +52 -0
- package/cjs/tag/tag.cjs +130 -0
- package/cjs/tag/tag.d.cts +74 -0
- package/cjs/tag/tag.d.ts +74 -0
- package/cjs/tag/utils.cjs +8 -0
- package/cjs/tag/utils.d.cts +1 -0
- package/cjs/tag/utils.d.ts +1 -0
- package/cjs/toolbar/toolbar-container.cjs +4 -4
- package/cjs/toolbar/toolbar-input.cjs +4 -8
- package/cjs/toolbar/toolbar-input.d.cts +3 -2
- package/cjs/toolbar/toolbar-input.d.ts +3 -2
- package/cjs/toolbar/toolbar-item.cjs +4 -4
- package/cjs/tooltip/tooltip.cjs +14 -14
- package/combobox/combobox-value/package.json +8 -0
- package/esm/__chunks/{LABIXQLW.js → 44PDY2W5.js} +1 -1
- package/esm/__chunks/{FYNSL2D5.js → 5H3YXAUC.js} +1 -1
- package/esm/__chunks/{6VDNHSLX.js → 65LF6MEO.js} +2 -2
- package/esm/__chunks/{X3V2DT2U.js → 6YVAEELE.js} +1 -1
- package/esm/__chunks/{JCOBPKEI.js → BY6P32UK.js} +1 -1
- package/esm/__chunks/{ZFEEEZVE.js → DLLQM6DZ.js} +22 -4
- package/esm/__chunks/{NN4HLGKS.js → F2RFUFO2.js} +1 -1
- package/esm/__chunks/{NQ4PTILT.js → FGHVVLPU.js} +29 -18
- package/esm/__chunks/{2VWKZYYT.js → H5N72W37.js} +1 -1
- package/esm/__chunks/L7IM35RU.js +16 -0
- package/esm/__chunks/{HW63KLP5.js → M354SEUF.js} +1 -1
- package/esm/__chunks/{RAKW656I.js → Q4PZFBSW.js} +1 -1
- package/esm/__chunks/QNNHZL3W.js +25 -0
- package/esm/__chunks/{C5HA76JU.js → QZJOXZKA.js} +1 -1
- package/esm/__chunks/{XK6CE2M5.js → UKDZLPKH.js} +1 -1
- package/esm/__chunks/{ONUY4D7O.js → VGORKDMQ.js} +26 -8
- package/esm/__chunks/WYDDZRWN.js +34 -0
- package/esm/checkbox/checkbox-check.js +1 -1
- package/esm/collection/collection-renderer.d.ts +0 -2
- package/esm/combobox/combobox-cancel.js +4 -4
- package/esm/combobox/combobox-disclosure.js +4 -4
- package/esm/combobox/combobox-item-check.js +1 -1
- package/esm/combobox/combobox-item.d.ts +22 -12
- package/esm/combobox/combobox-item.js +19 -9
- package/esm/combobox/combobox-popover.js +40 -15
- package/esm/combobox/combobox-provider.js +2 -1
- package/esm/combobox/combobox-store.d.ts +12 -4
- package/esm/combobox/combobox-store.js +5 -1
- package/esm/combobox/combobox-value.d.ts +41 -0
- package/esm/combobox/combobox-value.js +32 -0
- package/esm/combobox/combobox.d.ts +20 -0
- package/esm/combobox/combobox.js +80 -33
- package/esm/composite/composite-input.d.ts +2 -0
- package/esm/composite/composite-input.js +92 -7
- package/esm/composite/composite-item.js +2 -2
- package/esm/composite/composite-overflow-disclosure.js +2 -2
- package/esm/composite/composite-overflow.js +11 -11
- package/esm/composite/composite-renderer.d.ts +0 -2
- package/esm/dialog/dialog-backdrop.js +2 -2
- package/esm/dialog/dialog-dismiss.js +1 -1
- package/esm/dialog/dialog.d.ts +4 -0
- package/esm/dialog/dialog.js +10 -10
- package/esm/dialog/utils/disable-tree.js +2 -2
- package/esm/dialog/utils/use-prevent-body-scroll.js +2 -2
- package/esm/form/form-checkbox.js +1 -1
- package/esm/form/form-push.js +1 -1
- package/esm/form/form-radio.js +3 -3
- package/esm/hovercard/hovercard-disclosure.js +1 -1
- package/esm/hovercard/hovercard-dismiss.js +3 -3
- package/esm/hovercard/hovercard.js +12 -12
- package/esm/menu/menu-button-arrow.js +1 -1
- package/esm/menu/menu-dismiss.js +3 -3
- package/esm/menu/menu-item-check.js +1 -1
- package/esm/menu/menu-item-checkbox.js +3 -3
- package/esm/menu/menu-item-radio.js +5 -5
- package/esm/menu/menu-item.js +3 -3
- package/esm/menu/menu.js +12 -12
- package/esm/popover/popover-disclosure-arrow.js +1 -1
- package/esm/popover/popover-dismiss.js +2 -2
- package/esm/popover/popover.js +11 -11
- package/esm/radio/radio.js +3 -3
- package/esm/select/select-arrow.js +2 -2
- package/esm/select/select-item-check.js +1 -1
- package/esm/select/select-item.js +4 -4
- package/esm/select/select-popover.js +11 -11
- package/esm/select/select-value.d.ts +8 -7
- package/esm/select/select.js +3 -3
- package/esm/tab/tab-panel.js +3 -3
- package/esm/tab/tab.js +5 -5
- package/esm/tag/tag-context.d.ts +21 -0
- package/esm/tag/tag-context.js +25 -0
- package/esm/tag/tag-input.d.ts +122 -0
- package/esm/tag/tag-input.js +191 -0
- package/esm/tag/tag-list-label.d.ts +55 -0
- package/esm/tag/tag-list-label.js +56 -0
- package/esm/tag/tag-list.d.ts +58 -0
- package/esm/tag/tag-list.js +141 -0
- package/esm/tag/tag-provider.d.ts +29 -0
- package/esm/tag/tag-provider.js +26 -0
- package/esm/tag/tag-remove.d.ts +67 -0
- package/esm/tag/tag-remove.js +119 -0
- package/esm/tag/tag-store.d.ts +49 -0
- package/esm/tag/tag-store.js +15 -0
- package/esm/tag/tag-value.d.ts +41 -0
- package/esm/tag/tag-value.js +29 -0
- package/esm/tag/tag-values.d.ts +52 -0
- package/esm/tag/tag-values.js +29 -0
- package/esm/tag/tag.d.ts +74 -0
- package/esm/tag/tag.js +130 -0
- package/esm/tag/utils.d.ts +1 -0
- package/esm/tag/utils.js +8 -0
- package/esm/toolbar/toolbar-container.js +3 -3
- package/esm/toolbar/toolbar-input.d.ts +3 -2
- package/esm/toolbar/toolbar-input.js +3 -7
- package/esm/toolbar/toolbar-item.js +3 -3
- package/esm/tooltip/tooltip.js +12 -12
- package/package.json +86 -2
- package/tag/tag/package.json +8 -0
- package/tag/tag-context/package.json +8 -0
- package/tag/tag-input/package.json +8 -0
- package/tag/tag-list/package.json +8 -0
- package/tag/tag-list-label/package.json +8 -0
- package/tag/tag-provider/package.json +8 -0
- package/tag/tag-remove/package.json +8 -0
- package/tag/tag-store/package.json +8 -0
- package/tag/tag-value/package.json +8 -0
- package/tag/tag-values/package.json +8 -0
- package/tag/utils/package.json +8 -0
- package/cjs/__chunks/WGZQRLXV.cjs +0 -84
- package/esm/__chunks/RPGNBKKU.js +0 -84
- package/cjs/__chunks/{37BRXQN7.cjs → BX2QEIBH.cjs} +3 -3
- package/cjs/__chunks/{PVYTX5U5.cjs → SL55T4ZB.cjs} +2 -2
- package/cjs/__chunks/{TSEXNK3K.cjs → VR6GCLOV.cjs} +2 -2
- package/esm/__chunks/{PTPUIM7N.js → 3TEK3C5Q.js} +3 -3
- package/esm/__chunks/{U2L67A6K.js → BC72XE6E.js} +3 -3
- package/esm/__chunks/{GOXKZAQI.js → CMFBAHKI.js} +3 -3
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Hovercard,
|
|
4
4
|
useHovercard
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/65LF6MEO.js";
|
|
6
6
|
import "../__chunks/YMV43K4F.js";
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
10
|
-
import "../__chunks/6GXEOXGT.js";
|
|
11
|
-
import "../__chunks/PTPUIM7N.js";
|
|
12
|
-
import "../__chunks/4ZRXV5C7.js";
|
|
13
|
-
import "../__chunks/U2L67A6K.js";
|
|
14
|
-
import "../__chunks/4KKLZMKS.js";
|
|
7
|
+
import "../__chunks/6YVAEELE.js";
|
|
8
|
+
import "../__chunks/FGHVVLPU.js";
|
|
9
|
+
import "../__chunks/CMFBAHKI.js";
|
|
15
10
|
import "../__chunks/HSFE2URL.js";
|
|
16
11
|
import "../__chunks/H2NVVTJB.js";
|
|
12
|
+
import "../__chunks/6GXEOXGT.js";
|
|
17
13
|
import "../__chunks/YNKDLCEK.js";
|
|
14
|
+
import "../__chunks/3TEK3C5Q.js";
|
|
15
|
+
import "../__chunks/4ZRXV5C7.js";
|
|
16
|
+
import "../__chunks/677M2CI3.js";
|
|
18
17
|
import "../__chunks/MKDDWKFK.js";
|
|
19
18
|
import "../__chunks/5QL6BP6J.js";
|
|
20
19
|
import "../__chunks/OOBDFMJL.js";
|
|
20
|
+
import "../__chunks/BC72XE6E.js";
|
|
21
21
|
import "../__chunks/53CQGCDZ.js";
|
|
22
|
-
import "../__chunks/
|
|
22
|
+
import "../__chunks/4KKLZMKS.js";
|
|
23
23
|
import "../__chunks/UHSH3H5I.js";
|
|
24
24
|
import "../__chunks/UYRJLDVS.js";
|
|
25
|
+
import "../__chunks/XPF5GU3Q.js";
|
|
25
26
|
import "../__chunks/JPQNKTGF.js";
|
|
26
27
|
import "../__chunks/LQTCWTYB.js";
|
|
27
28
|
import "../__chunks/7452U3HH.js";
|
|
28
|
-
import "../__chunks/XPF5GU3Q.js";
|
|
29
|
-
import "../__chunks/4MFOHMLS.js";
|
|
30
29
|
import "../__chunks/KCMTTTFR.js";
|
|
30
|
+
import "../__chunks/4MFOHMLS.js";
|
|
31
31
|
import "../__chunks/5YBNH7BL.js";
|
|
32
32
|
import "../__chunks/5B3U64HV.js";
|
|
33
33
|
import "../__chunks/IWHI6Y45.js";
|
package/esm/menu/menu-dismiss.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useHovercardDismiss
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/H5N72W37.js";
|
|
5
5
|
import {
|
|
6
6
|
useMenuScopedContext
|
|
7
7
|
} from "../__chunks/3HX4ZAOG.js";
|
|
8
8
|
import "../__chunks/UY6VBRVY.js";
|
|
9
|
-
import "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
9
|
+
import "../__chunks/44PDY2W5.js";
|
|
10
|
+
import "../__chunks/BY6P32UK.js";
|
|
11
11
|
import "../__chunks/CKAOM5LG.js";
|
|
12
12
|
import "../__chunks/PJ7ERAIM.js";
|
|
13
13
|
import "../__chunks/QFI3MCMR.js";
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
import "../__chunks/ZKBA2XH4.js";
|
|
9
9
|
import {
|
|
10
10
|
useMenuItem
|
|
11
|
-
} from "../__chunks/
|
|
11
|
+
} from "../__chunks/M354SEUF.js";
|
|
12
12
|
import {
|
|
13
13
|
useMenuScopedContext
|
|
14
14
|
} from "../__chunks/3HX4ZAOG.js";
|
|
15
15
|
import "../__chunks/UY6VBRVY.js";
|
|
16
16
|
import "../__chunks/VXKKJNIF.js";
|
|
17
17
|
import "../__chunks/6XBVQI3K.js";
|
|
18
|
-
import "../__chunks/
|
|
19
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
18
|
+
import "../__chunks/VGORKDMQ.js";
|
|
20
19
|
import "../__chunks/IFMAUEA7.js";
|
|
20
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
21
21
|
import "../__chunks/3IEDWLST.js";
|
|
22
22
|
import "../__chunks/QFI3MCMR.js";
|
|
23
23
|
import "../__chunks/6LTHW2TQ.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useMenuItem
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/M354SEUF.js";
|
|
5
5
|
import {
|
|
6
6
|
MenuItemCheckedContext,
|
|
7
7
|
useMenuScopedContext
|
|
8
8
|
} from "../__chunks/3HX4ZAOG.js";
|
|
9
9
|
import "../__chunks/UY6VBRVY.js";
|
|
10
|
+
import "../__chunks/VXKKJNIF.js";
|
|
10
11
|
import {
|
|
11
12
|
useRadio
|
|
12
|
-
} from "../__chunks/
|
|
13
|
+
} from "../__chunks/QZJOXZKA.js";
|
|
13
14
|
import "../__chunks/MIIHBIKN.js";
|
|
14
|
-
import "../__chunks/
|
|
15
|
-
import "../__chunks/ONUY4D7O.js";
|
|
16
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
15
|
+
import "../__chunks/VGORKDMQ.js";
|
|
17
16
|
import "../__chunks/IFMAUEA7.js";
|
|
17
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
18
18
|
import "../__chunks/3IEDWLST.js";
|
|
19
19
|
import "../__chunks/QFI3MCMR.js";
|
|
20
20
|
import "../__chunks/6LTHW2TQ.js";
|
package/esm/menu/menu-item.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
MenuItem,
|
|
4
4
|
useMenuItem
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/M354SEUF.js";
|
|
6
6
|
import "../__chunks/3HX4ZAOG.js";
|
|
7
7
|
import "../__chunks/UY6VBRVY.js";
|
|
8
8
|
import "../__chunks/VXKKJNIF.js";
|
|
9
|
-
import "../__chunks/
|
|
10
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
9
|
+
import "../__chunks/VGORKDMQ.js";
|
|
11
10
|
import "../__chunks/IFMAUEA7.js";
|
|
11
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
12
12
|
import "../__chunks/3IEDWLST.js";
|
|
13
13
|
import "../__chunks/QFI3MCMR.js";
|
|
14
14
|
import "../__chunks/6LTHW2TQ.js";
|
package/esm/menu/menu.js
CHANGED
|
@@ -13,34 +13,34 @@ import "../__chunks/QFI3MCMR.js";
|
|
|
13
13
|
import "../__chunks/6LTHW2TQ.js";
|
|
14
14
|
import {
|
|
15
15
|
useHovercard
|
|
16
|
-
} from "../__chunks/
|
|
16
|
+
} from "../__chunks/65LF6MEO.js";
|
|
17
17
|
import "../__chunks/YMV43K4F.js";
|
|
18
|
-
import "../__chunks/
|
|
18
|
+
import "../__chunks/6YVAEELE.js";
|
|
19
19
|
import {
|
|
20
20
|
createDialogComponent
|
|
21
|
-
} from "../__chunks/
|
|
22
|
-
import "../__chunks/
|
|
23
|
-
import "../__chunks/6GXEOXGT.js";
|
|
24
|
-
import "../__chunks/PTPUIM7N.js";
|
|
25
|
-
import "../__chunks/4ZRXV5C7.js";
|
|
26
|
-
import "../__chunks/U2L67A6K.js";
|
|
27
|
-
import "../__chunks/4KKLZMKS.js";
|
|
21
|
+
} from "../__chunks/FGHVVLPU.js";
|
|
22
|
+
import "../__chunks/CMFBAHKI.js";
|
|
28
23
|
import "../__chunks/HSFE2URL.js";
|
|
29
24
|
import "../__chunks/H2NVVTJB.js";
|
|
25
|
+
import "../__chunks/6GXEOXGT.js";
|
|
30
26
|
import "../__chunks/YNKDLCEK.js";
|
|
27
|
+
import "../__chunks/3TEK3C5Q.js";
|
|
28
|
+
import "../__chunks/4ZRXV5C7.js";
|
|
29
|
+
import "../__chunks/677M2CI3.js";
|
|
31
30
|
import "../__chunks/MKDDWKFK.js";
|
|
32
31
|
import "../__chunks/5QL6BP6J.js";
|
|
33
32
|
import "../__chunks/OOBDFMJL.js";
|
|
33
|
+
import "../__chunks/BC72XE6E.js";
|
|
34
34
|
import "../__chunks/53CQGCDZ.js";
|
|
35
|
-
import "../__chunks/
|
|
35
|
+
import "../__chunks/4KKLZMKS.js";
|
|
36
36
|
import "../__chunks/UHSH3H5I.js";
|
|
37
37
|
import "../__chunks/UYRJLDVS.js";
|
|
38
|
+
import "../__chunks/XPF5GU3Q.js";
|
|
38
39
|
import "../__chunks/JPQNKTGF.js";
|
|
39
40
|
import "../__chunks/LQTCWTYB.js";
|
|
40
41
|
import "../__chunks/7452U3HH.js";
|
|
41
|
-
import "../__chunks/XPF5GU3Q.js";
|
|
42
|
-
import "../__chunks/4MFOHMLS.js";
|
|
43
42
|
import "../__chunks/KCMTTTFR.js";
|
|
43
|
+
import "../__chunks/4MFOHMLS.js";
|
|
44
44
|
import "../__chunks/5YBNH7BL.js";
|
|
45
45
|
import "../__chunks/5B3U64HV.js";
|
|
46
46
|
import "../__chunks/IWHI6Y45.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PopoverDismiss,
|
|
4
4
|
usePopoverDismiss
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
5
|
+
} from "../__chunks/44PDY2W5.js";
|
|
6
|
+
import "../__chunks/BY6P32UK.js";
|
|
7
7
|
import "../__chunks/CKAOM5LG.js";
|
|
8
8
|
import "../__chunks/PJ7ERAIM.js";
|
|
9
9
|
import "../__chunks/5B3U64HV.js";
|
package/esm/popover/popover.js
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Popover,
|
|
4
4
|
usePopover
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/6GXEOXGT.js";
|
|
9
|
-
import "../__chunks/PTPUIM7N.js";
|
|
10
|
-
import "../__chunks/4ZRXV5C7.js";
|
|
11
|
-
import "../__chunks/U2L67A6K.js";
|
|
12
|
-
import "../__chunks/4KKLZMKS.js";
|
|
5
|
+
} from "../__chunks/6YVAEELE.js";
|
|
6
|
+
import "../__chunks/FGHVVLPU.js";
|
|
7
|
+
import "../__chunks/CMFBAHKI.js";
|
|
13
8
|
import "../__chunks/HSFE2URL.js";
|
|
14
9
|
import "../__chunks/H2NVVTJB.js";
|
|
10
|
+
import "../__chunks/6GXEOXGT.js";
|
|
15
11
|
import "../__chunks/YNKDLCEK.js";
|
|
12
|
+
import "../__chunks/3TEK3C5Q.js";
|
|
13
|
+
import "../__chunks/4ZRXV5C7.js";
|
|
14
|
+
import "../__chunks/677M2CI3.js";
|
|
16
15
|
import "../__chunks/MKDDWKFK.js";
|
|
17
16
|
import "../__chunks/5QL6BP6J.js";
|
|
18
17
|
import "../__chunks/OOBDFMJL.js";
|
|
18
|
+
import "../__chunks/BC72XE6E.js";
|
|
19
19
|
import "../__chunks/53CQGCDZ.js";
|
|
20
|
-
import "../__chunks/
|
|
20
|
+
import "../__chunks/4KKLZMKS.js";
|
|
21
21
|
import "../__chunks/UHSH3H5I.js";
|
|
22
22
|
import "../__chunks/UYRJLDVS.js";
|
|
23
|
+
import "../__chunks/XPF5GU3Q.js";
|
|
23
24
|
import "../__chunks/JPQNKTGF.js";
|
|
24
25
|
import "../__chunks/LQTCWTYB.js";
|
|
25
26
|
import "../__chunks/7452U3HH.js";
|
|
26
|
-
import "../__chunks/XPF5GU3Q.js";
|
|
27
|
-
import "../__chunks/4MFOHMLS.js";
|
|
28
27
|
import "../__chunks/KCMTTTFR.js";
|
|
28
|
+
import "../__chunks/4MFOHMLS.js";
|
|
29
29
|
import "../__chunks/5B3U64HV.js";
|
|
30
30
|
import "../__chunks/IWHI6Y45.js";
|
|
31
31
|
import "../__chunks/RG6J4TID.js";
|
package/esm/radio/radio.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Radio,
|
|
4
4
|
useRadio
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/QZJOXZKA.js";
|
|
6
6
|
import "../__chunks/MIIHBIKN.js";
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
7
|
+
import "../__chunks/VGORKDMQ.js";
|
|
9
8
|
import "../__chunks/IFMAUEA7.js";
|
|
9
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
10
10
|
import "../__chunks/3IEDWLST.js";
|
|
11
11
|
import "../__chunks/QFI3MCMR.js";
|
|
12
12
|
import "../__chunks/6LTHW2TQ.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SelectArrow,
|
|
4
4
|
useSelectArrow
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
5
|
+
} from "../__chunks/5H3YXAUC.js";
|
|
6
|
+
import "../__chunks/F2RFUFO2.js";
|
|
7
7
|
import "../__chunks/SYZHUNAU.js";
|
|
8
8
|
import "../__chunks/QFI3MCMR.js";
|
|
9
9
|
import "../__chunks/6LTHW2TQ.js";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
useCompositeHover
|
|
4
4
|
} from "../__chunks/VXKKJNIF.js";
|
|
5
|
-
import {
|
|
6
|
-
useCompositeItem
|
|
7
|
-
} from "../__chunks/ONUY4D7O.js";
|
|
8
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
9
5
|
import {
|
|
10
6
|
SelectItemCheckedContext,
|
|
11
7
|
useSelectScopedContext
|
|
12
8
|
} from "../__chunks/SYZHUNAU.js";
|
|
9
|
+
import {
|
|
10
|
+
useCompositeItem
|
|
11
|
+
} from "../__chunks/VGORKDMQ.js";
|
|
13
12
|
import "../__chunks/IFMAUEA7.js";
|
|
13
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
14
14
|
import "../__chunks/3IEDWLST.js";
|
|
15
15
|
import "../__chunks/QFI3MCMR.js";
|
|
16
16
|
import "../__chunks/6LTHW2TQ.js";
|
|
@@ -12,32 +12,32 @@ import "../__chunks/QFI3MCMR.js";
|
|
|
12
12
|
import "../__chunks/6LTHW2TQ.js";
|
|
13
13
|
import {
|
|
14
14
|
usePopover
|
|
15
|
-
} from "../__chunks/
|
|
15
|
+
} from "../__chunks/6YVAEELE.js";
|
|
16
16
|
import {
|
|
17
17
|
createDialogComponent
|
|
18
|
-
} from "../__chunks/
|
|
19
|
-
import "../__chunks/
|
|
20
|
-
import "../__chunks/6GXEOXGT.js";
|
|
21
|
-
import "../__chunks/PTPUIM7N.js";
|
|
22
|
-
import "../__chunks/4ZRXV5C7.js";
|
|
23
|
-
import "../__chunks/U2L67A6K.js";
|
|
24
|
-
import "../__chunks/4KKLZMKS.js";
|
|
18
|
+
} from "../__chunks/FGHVVLPU.js";
|
|
19
|
+
import "../__chunks/CMFBAHKI.js";
|
|
25
20
|
import "../__chunks/HSFE2URL.js";
|
|
26
21
|
import "../__chunks/H2NVVTJB.js";
|
|
22
|
+
import "../__chunks/6GXEOXGT.js";
|
|
27
23
|
import "../__chunks/YNKDLCEK.js";
|
|
24
|
+
import "../__chunks/3TEK3C5Q.js";
|
|
25
|
+
import "../__chunks/4ZRXV5C7.js";
|
|
26
|
+
import "../__chunks/677M2CI3.js";
|
|
28
27
|
import "../__chunks/MKDDWKFK.js";
|
|
29
28
|
import "../__chunks/5QL6BP6J.js";
|
|
30
29
|
import "../__chunks/OOBDFMJL.js";
|
|
30
|
+
import "../__chunks/BC72XE6E.js";
|
|
31
31
|
import "../__chunks/53CQGCDZ.js";
|
|
32
|
-
import "../__chunks/
|
|
32
|
+
import "../__chunks/4KKLZMKS.js";
|
|
33
33
|
import "../__chunks/UHSH3H5I.js";
|
|
34
34
|
import "../__chunks/UYRJLDVS.js";
|
|
35
|
+
import "../__chunks/XPF5GU3Q.js";
|
|
35
36
|
import "../__chunks/JPQNKTGF.js";
|
|
36
37
|
import "../__chunks/LQTCWTYB.js";
|
|
37
38
|
import "../__chunks/7452U3HH.js";
|
|
38
|
-
import "../__chunks/XPF5GU3Q.js";
|
|
39
|
-
import "../__chunks/4MFOHMLS.js";
|
|
40
39
|
import "../__chunks/KCMTTTFR.js";
|
|
40
|
+
import "../__chunks/4MFOHMLS.js";
|
|
41
41
|
import "../__chunks/5B3U64HV.js";
|
|
42
42
|
import "../__chunks/IWHI6Y45.js";
|
|
43
43
|
import "../__chunks/RG6J4TID.js";
|
|
@@ -7,16 +7,17 @@ type Value = SelectStoreValue;
|
|
|
7
7
|
* [`value`](https://ariakit.org/reference/use-select-store#value) state in the
|
|
8
8
|
* [select store](https://ariakit.org/reference/use-select-store).
|
|
9
9
|
*
|
|
10
|
-
* As a
|
|
11
|
-
*
|
|
10
|
+
* As a value component, it doesn't render any DOM elements and therefore
|
|
11
|
+
* doesn't accept HTML props. It can optionally accept a
|
|
12
12
|
* [`fallback`](https://ariakit.org/reference/select-value#fallback) prop to use
|
|
13
13
|
* as a default value if the store's
|
|
14
14
|
* [`value`](https://ariakit.org/reference/use-select-store#value) is
|
|
15
15
|
* `undefined`.
|
|
16
16
|
*
|
|
17
|
-
* Additionally, it takes a
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* Additionally, it takes a
|
|
18
|
+
* [`children`](https://ariakit.org/reference/select-value#children) function
|
|
19
|
+
* that gets called with the current value as an argument. This is handy for
|
|
20
|
+
* rendering the value in a custom way.
|
|
20
21
|
* @see https://ariakit.org/components/select
|
|
21
22
|
* @example
|
|
22
23
|
* ```jsx {3}
|
|
@@ -71,8 +72,8 @@ export interface SelectValueProps<T extends Value = Value> {
|
|
|
71
72
|
*/
|
|
72
73
|
fallback?: T;
|
|
73
74
|
/**
|
|
74
|
-
* A function that gets called with the current value as an argument. This
|
|
75
|
-
*
|
|
75
|
+
* A function that gets called with the current value as an argument. This is
|
|
76
|
+
* handy for rendering the value in a custom way.
|
|
76
77
|
*/
|
|
77
78
|
children?: (value: ToPrimitive<T>) => ReactNode;
|
|
78
79
|
}
|
package/esm/select/select.js
CHANGED
|
@@ -8,16 +8,16 @@ import "../__chunks/DYQUE3V3.js";
|
|
|
8
8
|
import "../__chunks/CKAOM5LG.js";
|
|
9
9
|
import {
|
|
10
10
|
SelectArrow
|
|
11
|
-
} from "../__chunks/
|
|
12
|
-
import "../__chunks/
|
|
11
|
+
} from "../__chunks/5H3YXAUC.js";
|
|
12
|
+
import "../__chunks/F2RFUFO2.js";
|
|
13
13
|
import {
|
|
14
14
|
useCompositeTypeahead
|
|
15
15
|
} from "../__chunks/QRAMDWD7.js";
|
|
16
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
17
16
|
import {
|
|
18
17
|
SelectScopedContextProvider,
|
|
19
18
|
useSelectProviderContext
|
|
20
19
|
} from "../__chunks/SYZHUNAU.js";
|
|
20
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
21
21
|
import "../__chunks/3IEDWLST.js";
|
|
22
22
|
import "../__chunks/QFI3MCMR.js";
|
|
23
23
|
import "../__chunks/6LTHW2TQ.js";
|
package/esm/tab/tab-panel.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useCollectionItem
|
|
4
|
-
} from "../__chunks/IFMAUEA7.js";
|
|
5
2
|
import {
|
|
6
3
|
TabScopedContextProvider,
|
|
7
4
|
useTabProviderContext
|
|
8
5
|
} from "../__chunks/VFICFWOQ.js";
|
|
6
|
+
import {
|
|
7
|
+
useCollectionItem
|
|
8
|
+
} from "../__chunks/IFMAUEA7.js";
|
|
9
9
|
import "../__chunks/QFI3MCMR.js";
|
|
10
10
|
import "../__chunks/6LTHW2TQ.js";
|
|
11
11
|
import {
|
package/esm/tab/tab.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useTabScopedContext
|
|
4
|
+
} from "../__chunks/VFICFWOQ.js";
|
|
2
5
|
import {
|
|
3
6
|
CompositeItem,
|
|
4
7
|
useCompositeItem
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/PJ7ERAIM.js";
|
|
8
|
+
} from "../__chunks/VGORKDMQ.js";
|
|
7
9
|
import "../__chunks/IFMAUEA7.js";
|
|
8
|
-
import
|
|
9
|
-
useTabScopedContext
|
|
10
|
-
} from "../__chunks/VFICFWOQ.js";
|
|
10
|
+
import "../__chunks/PJ7ERAIM.js";
|
|
11
11
|
import "../__chunks/3IEDWLST.js";
|
|
12
12
|
import "../__chunks/QFI3MCMR.js";
|
|
13
13
|
import "../__chunks/6LTHW2TQ.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TagStore } from "./tag-store.js";
|
|
2
|
+
export declare const TagValueContext: import("react").Context<string | null>;
|
|
3
|
+
export declare const TagRemoveIdContext: import("react").Context<((id?: string) => void) | null>;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the tag store from the nearest tag container.
|
|
6
|
+
* @example
|
|
7
|
+
* function Tag() {
|
|
8
|
+
* const store = useTagContext();
|
|
9
|
+
*
|
|
10
|
+
* if (!store) {
|
|
11
|
+
* throw new Error("Tag must be wrapped in TagProvider");
|
|
12
|
+
* }
|
|
13
|
+
*
|
|
14
|
+
* // Use the store...
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
export declare const useTagContext: () => TagStore | undefined;
|
|
18
|
+
export declare const useTagScopedContext: (onlyScoped?: boolean) => TagStore | undefined;
|
|
19
|
+
export declare const useTagProviderContext: () => TagStore | undefined;
|
|
20
|
+
export declare const TagContextProvider: (props: import("react").ProviderProps<TagStore | undefined>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const TagScopedContextProvider: (props: import("react").ProviderProps<TagStore | undefined>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
TagContextProvider,
|
|
4
|
+
TagRemoveIdContext,
|
|
5
|
+
TagScopedContextProvider,
|
|
6
|
+
TagValueContext,
|
|
7
|
+
useTagContext,
|
|
8
|
+
useTagProviderContext,
|
|
9
|
+
useTagScopedContext
|
|
10
|
+
} from "../__chunks/WYDDZRWN.js";
|
|
11
|
+
import "../__chunks/QFI3MCMR.js";
|
|
12
|
+
import "../__chunks/6LTHW2TQ.js";
|
|
13
|
+
import "../__chunks/GUCZNEAD.js";
|
|
14
|
+
import "../__chunks/WOWUAP42.js";
|
|
15
|
+
import "../__chunks/XM66DUTO.js";
|
|
16
|
+
import "../__chunks/4R3V3JGP.js";
|
|
17
|
+
export {
|
|
18
|
+
TagContextProvider,
|
|
19
|
+
TagRemoveIdContext,
|
|
20
|
+
TagScopedContextProvider,
|
|
21
|
+
TagValueContext,
|
|
22
|
+
useTagContext,
|
|
23
|
+
useTagProviderContext,
|
|
24
|
+
useTagScopedContext
|
|
25
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { ChangeEvent, ClipboardEvent, ElementType, KeyboardEvent, SyntheticEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { CompositeItemOptions } from "../composite/composite-item.js";
|
|
4
|
+
import type { Props } from "../utils/types.js";
|
|
5
|
+
import type { TagStore } from "./tag-store.js";
|
|
6
|
+
declare const TagName = "input";
|
|
7
|
+
type TagName = typeof TagName;
|
|
8
|
+
type EventWithValues<T extends SyntheticEvent> = T & {
|
|
9
|
+
values: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Returns props to create a `TagInput` component.
|
|
13
|
+
* @see https://ariakit.org/components/tag
|
|
14
|
+
* @example
|
|
15
|
+
* ```jsx
|
|
16
|
+
* const props = useTagInput();
|
|
17
|
+
* <Role.input {...props} />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useTagInput: import("../utils/types.js").Hook<"input", TagInputOptions<"input">>;
|
|
21
|
+
/**
|
|
22
|
+
* Renders an input element within a
|
|
23
|
+
* [`TagList`](https://ariakit.org/reference/tag-list) component. This component
|
|
24
|
+
* lets users input tag values that are added to the store when the input value
|
|
25
|
+
* changes or when the user pastes text into the input element, based on the
|
|
26
|
+
* [`delimiter`](https://ariakit.org/reference/tag-input#delimiter) prop.
|
|
27
|
+
*
|
|
28
|
+
* This component can be combined with a
|
|
29
|
+
* [`Combobox`](https://ariakit.org/reference/combobox) component using the
|
|
30
|
+
* [`render`](https://ariakit.org/reference/tag-input#render) prop to create a
|
|
31
|
+
* tag input with suggestions.
|
|
32
|
+
* @see https://ariakit.org/components/tag
|
|
33
|
+
* @example
|
|
34
|
+
* ```jsx {14}
|
|
35
|
+
* <TagProvider>
|
|
36
|
+
* <TagListLabel>Invitees</TagListLabel>
|
|
37
|
+
* <TagList>
|
|
38
|
+
* <TagValues>
|
|
39
|
+
* {(values) =>
|
|
40
|
+
* values.map((value) => (
|
|
41
|
+
* <Tag key={value} value={value}>
|
|
42
|
+
* {value}
|
|
43
|
+
* <TagRemove />
|
|
44
|
+
* </Tag>
|
|
45
|
+
* ))
|
|
46
|
+
* }
|
|
47
|
+
* </TagValues>
|
|
48
|
+
* <TagInput />
|
|
49
|
+
* </TagList>
|
|
50
|
+
* </TagProvider>
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare const TagInput: (props: TagInputProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
54
|
+
export interface TagInputOptions<T extends ElementType = TagName> extends CompositeItemOptions<T> {
|
|
55
|
+
/**
|
|
56
|
+
* Object returned by the
|
|
57
|
+
* [`useTagStore`](https://ariakit.org/reference/use-tag-store) hook. If not
|
|
58
|
+
* provided, the closest
|
|
59
|
+
* [`TagProvider`](https://ariakit.org/reference/tag-provider) component's
|
|
60
|
+
* context will be used.
|
|
61
|
+
*/
|
|
62
|
+
store?: TagStore;
|
|
63
|
+
/**
|
|
64
|
+
* The string or pattern employed to break the input value into multiple tags.
|
|
65
|
+
* This could be a string, a regular expression, an array of strings and
|
|
66
|
+
* regular expressions, or `null` to prevent splitting on input.
|
|
67
|
+
*
|
|
68
|
+
* When an array is given, the input value is split by the first matching
|
|
69
|
+
* delimiter. All other delimiters are disregarded for the same input event.
|
|
70
|
+
* For example, if the delimiters are `["\n", ","]` and the user pastes text
|
|
71
|
+
* containing commas and newlines, the text will be split solely by newlines.
|
|
72
|
+
* The commas will be preserved in the tag values. If you want to split by
|
|
73
|
+
* both commas and newlines, you should use a regular expression that matches
|
|
74
|
+
* both characters (e.g., `/[\n,]/`).
|
|
75
|
+
* @default ["\n", ";", ",", /\s/]
|
|
76
|
+
*/
|
|
77
|
+
delimiter?: string | RegExp | null | (string | RegExp)[];
|
|
78
|
+
/**
|
|
79
|
+
* Determines if tag values should be added to the store when the input value
|
|
80
|
+
* is pasted. The values are extracted from the clipboard text and
|
|
81
|
+
* automatically processed with the
|
|
82
|
+
* [`delimiter`](https://ariakit.org/reference/tag-input#delimiter) prop.
|
|
83
|
+
*
|
|
84
|
+
* This can be either a boolean or a callback that receives an event with an
|
|
85
|
+
* extra `values` property and should return a boolean.
|
|
86
|
+
* @default true
|
|
87
|
+
*/
|
|
88
|
+
addValueOnPaste?: BooleanOrCallback<EventWithValues<ClipboardEvent<HTMLElement>>>;
|
|
89
|
+
/**
|
|
90
|
+
* Determines if the tag value should be added to the store when the input
|
|
91
|
+
* value changes. The tag value is automatically processed with the
|
|
92
|
+
* [`delimiter`](https://ariakit.org/reference/tag-input#delimiter) prop.
|
|
93
|
+
*
|
|
94
|
+
* This can be either a boolean or a callback that receives an event with an
|
|
95
|
+
* extra `values` property and should return a boolean.
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
addValueOnChange?: BooleanOrCallback<EventWithValues<ChangeEvent<HTMLElement>>>;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the tag
|
|
101
|
+
* [`value`](https://ariakit.org/reference/tag-provider#value) state
|
|
102
|
+
* should be updated when the input value changes. This is useful if you want
|
|
103
|
+
* to customize how the store
|
|
104
|
+
* [`value`](https://ariakit.org/reference/tag-provider#value) is updated
|
|
105
|
+
* based on the input element's value.
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
setValueOnChange?: BooleanOrCallback<ChangeEvent<HTMLElement>>;
|
|
109
|
+
/**
|
|
110
|
+
* Determines whether the last tag value should be removed from the store when
|
|
111
|
+
* the `Backspace` key is pressed and the cursor is at the start of the input
|
|
112
|
+
* value.
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
removeOnBackspace?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
|
|
116
|
+
/**
|
|
117
|
+
* @default true
|
|
118
|
+
*/
|
|
119
|
+
tabbable?: CompositeItemOptions<T>["tabbable"];
|
|
120
|
+
}
|
|
121
|
+
export type TagInputProps<T extends ElementType = TagName> = Props<T, TagInputOptions<T>>;
|
|
122
|
+
export {};
|