@diceui/tags-input 0.3.0 → 0.5.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 +10 -10
- package/dist/index.js +10 -10
- package/package.json +5 -5
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 ? "" : undefined,
|
|
337
|
+
"data-invalid": isInvalidInput ? "" : undefined,
|
|
338
|
+
"data-readonly": readOnly ? "" : undefined,
|
|
339
339
|
dir,
|
|
340
340
|
...rootProps,
|
|
341
341
|
ref: composedRef,
|
|
@@ -432,10 +432,10 @@ var TagsInputItem = React__namespace.forwardRef(
|
|
|
432
432
|
"aria-current": isHighlighted,
|
|
433
433
|
"aria-disabled": itemDisabled,
|
|
434
434
|
"data-state": isHighlighted ? "active" : "inactive",
|
|
435
|
-
"data-highlighted": isHighlighted ? "" :
|
|
436
|
-
"data-editing": isEditing ? "" :
|
|
437
|
-
"data-editable": context.editable ? "" :
|
|
438
|
-
"data-disabled": itemDisabled ? "" :
|
|
435
|
+
"data-highlighted": isHighlighted ? "" : undefined,
|
|
436
|
+
"data-editing": isEditing ? "" : undefined,
|
|
437
|
+
"data-editable": context.editable ? "" : undefined,
|
|
438
|
+
"data-disabled": itemDisabled ? "" : undefined,
|
|
439
439
|
id,
|
|
440
440
|
...itemProps,
|
|
441
441
|
ref,
|
|
@@ -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 ? "" : undefined,
|
|
532
532
|
dir: context.dir,
|
|
533
533
|
disabled: context.disabled,
|
|
534
534
|
readOnly: context.readOnly,
|
|
@@ -598,7 +598,7 @@ var TagsInputItemDelete = React__namespace.forwardRef((props, ref) => {
|
|
|
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 ? "" : undefined,
|
|
602
602
|
...props,
|
|
603
603
|
ref,
|
|
604
604
|
onClick: shared.composeEventHandlers(props.onClick, () => {
|
|
@@ -684,7 +684,7 @@ var TagsInputClear = React__namespace.forwardRef(
|
|
|
684
684
|
type: "button",
|
|
685
685
|
"aria-disabled": context.disabled,
|
|
686
686
|
"data-state": context.value.length > 0 ? "visible" : "invisible",
|
|
687
|
-
"data-disabled": context.disabled ? "" :
|
|
687
|
+
"data-disabled": context.disabled ? "" : undefined,
|
|
688
688
|
...clearProps,
|
|
689
689
|
ref,
|
|
690
690
|
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 ? "" : undefined,
|
|
315
|
+
"data-invalid": isInvalidInput ? "" : undefined,
|
|
316
|
+
"data-readonly": readOnly ? "" : undefined,
|
|
317
317
|
dir,
|
|
318
318
|
...rootProps,
|
|
319
319
|
ref: composedRef,
|
|
@@ -410,10 +410,10 @@ var TagsInputItem = React.forwardRef(
|
|
|
410
410
|
"aria-current": isHighlighted,
|
|
411
411
|
"aria-disabled": itemDisabled,
|
|
412
412
|
"data-state": isHighlighted ? "active" : "inactive",
|
|
413
|
-
"data-highlighted": isHighlighted ? "" :
|
|
414
|
-
"data-editing": isEditing ? "" :
|
|
415
|
-
"data-editable": context.editable ? "" :
|
|
416
|
-
"data-disabled": itemDisabled ? "" :
|
|
413
|
+
"data-highlighted": isHighlighted ? "" : undefined,
|
|
414
|
+
"data-editing": isEditing ? "" : undefined,
|
|
415
|
+
"data-editable": context.editable ? "" : undefined,
|
|
416
|
+
"data-disabled": itemDisabled ? "" : undefined,
|
|
417
417
|
id,
|
|
418
418
|
...itemProps,
|
|
419
419
|
ref,
|
|
@@ -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 ? "" : undefined,
|
|
510
510
|
dir: context.dir,
|
|
511
511
|
disabled: context.disabled,
|
|
512
512
|
readOnly: context.readOnly,
|
|
@@ -576,7 +576,7 @@ var TagsInputItemDelete = React.forwardRef((props, ref) => {
|
|
|
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 ? "" : undefined,
|
|
580
580
|
...props,
|
|
581
581
|
ref,
|
|
582
582
|
onClick: composeEventHandlers(props.onClick, () => {
|
|
@@ -662,7 +662,7 @@ var TagsInputClear = React.forwardRef(
|
|
|
662
662
|
type: "button",
|
|
663
663
|
"aria-disabled": context.disabled,
|
|
664
664
|
"data-state": context.value.length > 0 ? "visible" : "invisible",
|
|
665
|
-
"data-disabled": context.disabled ? "" :
|
|
665
|
+
"data-disabled": context.disabled ? "" : undefined,
|
|
666
666
|
...clearProps,
|
|
667
667
|
ref,
|
|
668
668
|
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.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"keywords": [
|
|
9
9
|
"tags-input",
|
|
10
10
|
"tag-input",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"react-tags-input",
|
|
12
|
+
"tags"
|
|
13
13
|
],
|
|
14
14
|
"author": "Sadman Sakib",
|
|
15
15
|
"license": "MIT",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.3.5",
|
|
52
|
-
"typescript": "^5.7.
|
|
52
|
+
"typescript": "^5.7.3"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@diceui/shared": "0.
|
|
55
|
+
"@diceui/shared": "0.8.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "tsup --watch",
|