@diceui/tags-input 0.6.0 → 0.7.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/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -333,9 +333,9 @@ var TagsInputRoot = React__namespace.forwardRef((props, ref) => {
|
|
|
333
333
|
shared.Primitive.div,
|
|
334
334
|
{
|
|
335
335
|
id,
|
|
336
|
-
"data-disabled": disabled ? "" :
|
|
337
|
-
"data-invalid": isInvalidInput ? "" :
|
|
338
|
-
"data-readonly": readOnly ? "" :
|
|
336
|
+
"data-disabled": disabled ? "" : void 0,
|
|
337
|
+
"data-invalid": isInvalidInput ? "" : void 0,
|
|
338
|
+
"data-readonly": readOnly ? "" : void 0,
|
|
339
339
|
dir,
|
|
340
340
|
...rootProps,
|
|
341
341
|
ref: composedRef,
|
|
@@ -433,10 +433,10 @@ var TagsInputItem = React__namespace.forwardRef(
|
|
|
433
433
|
"aria-disabled": itemDisabled,
|
|
434
434
|
...{ [shared.DATA_ITEM_ATTR]: "" },
|
|
435
435
|
"data-state": isHighlighted ? "active" : "inactive",
|
|
436
|
-
"data-highlighted": isHighlighted ? "" :
|
|
437
|
-
"data-editing": isEditing ? "" :
|
|
438
|
-
"data-editable": context.editable ? "" :
|
|
439
|
-
"data-disabled": itemDisabled ? "" :
|
|
436
|
+
"data-highlighted": isHighlighted ? "" : void 0,
|
|
437
|
+
"data-editing": isEditing ? "" : void 0,
|
|
438
|
+
"data-editable": context.editable ? "" : void 0,
|
|
439
|
+
"data-disabled": itemDisabled ? "" : void 0,
|
|
440
440
|
...itemProps,
|
|
441
441
|
ref,
|
|
442
442
|
onClick: shared.composeEventHandlers(itemProps.onClick, (event) => {
|
|
@@ -528,7 +528,7 @@ var TagsInputInput = React__namespace.forwardRef(
|
|
|
528
528
|
autoFocus,
|
|
529
529
|
"aria-labelledby": context.labelId,
|
|
530
530
|
"aria-readonly": context.readOnly,
|
|
531
|
-
"data-invalid": context.isInvalidInput ? "" :
|
|
531
|
+
"data-invalid": context.isInvalidInput ? "" : void 0,
|
|
532
532
|
dir: context.dir,
|
|
533
533
|
disabled: context.disabled,
|
|
534
534
|
readOnly: context.readOnly,
|
|
@@ -593,12 +593,12 @@ var TagsInputItemDelete = React__namespace.forwardRef((props, ref) => {
|
|
|
593
593
|
shared.Primitive.button,
|
|
594
594
|
{
|
|
595
595
|
type: "button",
|
|
596
|
-
tabIndex: disabled ?
|
|
596
|
+
tabIndex: disabled ? void 0 : -1,
|
|
597
597
|
"aria-labelledby": itemContext.textId,
|
|
598
598
|
"aria-controls": itemContext.id,
|
|
599
599
|
"aria-current": itemContext.isHighlighted,
|
|
600
600
|
"data-state": itemContext.isHighlighted ? "active" : "inactive",
|
|
601
|
-
"data-disabled": disabled ? "" :
|
|
601
|
+
"data-disabled": disabled ? "" : void 0,
|
|
602
602
|
...props,
|
|
603
603
|
ref,
|
|
604
604
|
onClick: shared.composeEventHandlers(props.onClick, () => {
|
|
@@ -707,7 +707,7 @@ var TagsInputClear = React__namespace.forwardRef(
|
|
|
707
707
|
type: "button",
|
|
708
708
|
"aria-disabled": context.disabled,
|
|
709
709
|
"data-state": context.value.length > 0 ? "visible" : "invisible",
|
|
710
|
-
"data-disabled": context.disabled ? "" :
|
|
710
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
711
711
|
...clearProps,
|
|
712
712
|
ref,
|
|
713
713
|
onClick: shared.composeEventHandlers(props.onClick, () => {
|
package/dist/index.js
CHANGED
|
@@ -311,9 +311,9 @@ var TagsInputRoot = React.forwardRef((props, ref) => {
|
|
|
311
311
|
Primitive.div,
|
|
312
312
|
{
|
|
313
313
|
id,
|
|
314
|
-
"data-disabled": disabled ? "" :
|
|
315
|
-
"data-invalid": isInvalidInput ? "" :
|
|
316
|
-
"data-readonly": readOnly ? "" :
|
|
314
|
+
"data-disabled": disabled ? "" : void 0,
|
|
315
|
+
"data-invalid": isInvalidInput ? "" : void 0,
|
|
316
|
+
"data-readonly": readOnly ? "" : void 0,
|
|
317
317
|
dir,
|
|
318
318
|
...rootProps,
|
|
319
319
|
ref: composedRef,
|
|
@@ -411,10 +411,10 @@ var TagsInputItem = React.forwardRef(
|
|
|
411
411
|
"aria-disabled": itemDisabled,
|
|
412
412
|
...{ [DATA_ITEM_ATTR]: "" },
|
|
413
413
|
"data-state": isHighlighted ? "active" : "inactive",
|
|
414
|
-
"data-highlighted": isHighlighted ? "" :
|
|
415
|
-
"data-editing": isEditing ? "" :
|
|
416
|
-
"data-editable": context.editable ? "" :
|
|
417
|
-
"data-disabled": itemDisabled ? "" :
|
|
414
|
+
"data-highlighted": isHighlighted ? "" : void 0,
|
|
415
|
+
"data-editing": isEditing ? "" : void 0,
|
|
416
|
+
"data-editable": context.editable ? "" : void 0,
|
|
417
|
+
"data-disabled": itemDisabled ? "" : void 0,
|
|
418
418
|
...itemProps,
|
|
419
419
|
ref,
|
|
420
420
|
onClick: composeEventHandlers(itemProps.onClick, (event) => {
|
|
@@ -506,7 +506,7 @@ var TagsInputInput = React.forwardRef(
|
|
|
506
506
|
autoFocus,
|
|
507
507
|
"aria-labelledby": context.labelId,
|
|
508
508
|
"aria-readonly": context.readOnly,
|
|
509
|
-
"data-invalid": context.isInvalidInput ? "" :
|
|
509
|
+
"data-invalid": context.isInvalidInput ? "" : void 0,
|
|
510
510
|
dir: context.dir,
|
|
511
511
|
disabled: context.disabled,
|
|
512
512
|
readOnly: context.readOnly,
|
|
@@ -571,12 +571,12 @@ var TagsInputItemDelete = React.forwardRef((props, ref) => {
|
|
|
571
571
|
Primitive.button,
|
|
572
572
|
{
|
|
573
573
|
type: "button",
|
|
574
|
-
tabIndex: disabled ?
|
|
574
|
+
tabIndex: disabled ? void 0 : -1,
|
|
575
575
|
"aria-labelledby": itemContext.textId,
|
|
576
576
|
"aria-controls": itemContext.id,
|
|
577
577
|
"aria-current": itemContext.isHighlighted,
|
|
578
578
|
"data-state": itemContext.isHighlighted ? "active" : "inactive",
|
|
579
|
-
"data-disabled": disabled ? "" :
|
|
579
|
+
"data-disabled": disabled ? "" : void 0,
|
|
580
580
|
...props,
|
|
581
581
|
ref,
|
|
582
582
|
onClick: composeEventHandlers(props.onClick, () => {
|
|
@@ -685,7 +685,7 @@ var TagsInputClear = React.forwardRef(
|
|
|
685
685
|
type: "button",
|
|
686
686
|
"aria-disabled": context.disabled,
|
|
687
687
|
"data-state": context.value.length > 0 ? "visible" : "invisible",
|
|
688
|
-
"data-disabled": context.disabled ? "" :
|
|
688
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
689
689
|
...clearProps,
|
|
690
690
|
ref,
|
|
691
691
|
onClick: composeEventHandlers(props.onClick, () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diceui/tags-input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"tsup": "^8.3.
|
|
51
|
+
"tsup": "^8.3.6",
|
|
52
52
|
"typescript": "^5.7.3"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@diceui/shared": "0.
|
|
55
|
+
"@diceui/shared": "0.10.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "tsup --watch",
|