Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/tag

Package Overview
Dependencies
Maintainers
2
Versions
616
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/tag - npm Package Compare versions

Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1

270

dist/main.js

@@ -1,6 +0,6 @@

var $dBS35$reactariagrid = require("@react-aria/grid");
var $dBS35$reactariautils = require("@react-aria/utils");
var $dBS35$reactariai18n = require("@react-aria/i18n");
var $dBS35$react = require("react");
var $dBS35$reactariainteractions = require("@react-aria/interactions");
var $fbMcw$reactariagrid = require("@react-aria/grid");
var $fbMcw$reactariautils = require("@react-aria/utils");
var $fbMcw$reactariai18n = require("@react-aria/i18n");
var $fbMcw$react = require("react");
var $fbMcw$reactariainteractions = require("@react-aria/interactions");

@@ -29,7 +29,7 @@ function $parcel$exportWildcard(dest, source) {

}
var $598514b5b81cac5f$exports = {};
var $9949860e867a4f6e$exports = {};
$parcel$export($598514b5b81cac5f$exports, "TagKeyboardDelegate", () => $598514b5b81cac5f$export$b00754732e683b92);
$parcel$export($9949860e867a4f6e$exports, "TagKeyboardDelegate", () => $9949860e867a4f6e$export$b00754732e683b92);
class $598514b5b81cac5f$export$b00754732e683b92 extends $dBS35$reactariagrid.GridKeyboardDelegate {
class $9949860e867a4f6e$export$b00754732e683b92 extends $fbMcw$reactariagrid.GridKeyboardDelegate {
getKeyRightOf(key) {

@@ -88,178 +88,178 @@ return this.direction === 'rtl' ? this.getKeyAbove(key) : this.getKeyBelow(key);

var $94a37b456b54e94c$exports = {};
var $7e6365ae3faa3ee9$exports = {};
$parcel$export($94a37b456b54e94c$exports, "useTag", () => $94a37b456b54e94c$export$3f568fff7dff2f03);
$parcel$export($7e6365ae3faa3ee9$exports, "useTag", () => $7e6365ae3faa3ee9$export$3f568fff7dff2f03);
var $8f004cf49daebca9$exports = {};
var $6eacd18bf5afcdc8$exports = {};
$6eacd18bf5afcdc8$exports = JSON.parse("{\"remove\":\"إزالة\"}");
var $dda6d49b41cc862d$exports = {};
var $00d59d3c0e1bf174$exports = {};
$00d59d3c0e1bf174$exports = JSON.parse("{\"remove\":\"إزالة\"}");
var $729bf914ff317388$exports = {};
$729bf914ff317388$exports = JSON.parse("{\"remove\":\"Премахване\"}");
var $b3aa8e3fd46e1e0f$exports = {};
$b3aa8e3fd46e1e0f$exports = JSON.parse("{\"remove\":\"Премахване\"}");
var $8be943fd4ac737bc$exports = {};
$8be943fd4ac737bc$exports = JSON.parse("{\"remove\":\"Odebrat\"}");
var $6a4390574ed99569$exports = {};
$6a4390574ed99569$exports = JSON.parse("{\"remove\":\"Odebrat\"}");
var $6151fdb05179beeb$exports = {};
$6151fdb05179beeb$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $c860f786035205ee$exports = {};
$c860f786035205ee$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $86af05a766c218c7$exports = {};
$86af05a766c218c7$exports = JSON.parse("{\"remove\":\"Entfernen\"}");
var $92855740baa37c33$exports = {};
$92855740baa37c33$exports = JSON.parse("{\"remove\":\"Entfernen\"}");
var $af3b8dae5cc6406d$exports = {};
$af3b8dae5cc6406d$exports = JSON.parse("{\"remove\":\"Κατάργηση\"}");
var $4ec9185c48c283dc$exports = {};
$4ec9185c48c283dc$exports = JSON.parse("{\"remove\":\"Κατάργηση\"}");
var $ad186745d5f62b60$exports = {};
$ad186745d5f62b60$exports = JSON.parse("{\"remove\":\"Remove\"}");
var $e9766593109de8b7$exports = {};
$e9766593109de8b7$exports = JSON.parse("{\"remove\":\"Remove\"}");
var $a9730474de94b4e1$exports = {};
$a9730474de94b4e1$exports = JSON.parse("{\"remove\":\"Quitar\"}");
var $3e9a340d092749be$exports = {};
$3e9a340d092749be$exports = JSON.parse("{\"remove\":\"Quitar\"}");
var $37ee358e14e90716$exports = {};
$37ee358e14e90716$exports = JSON.parse("{\"remove\":\"Eemalda\"}");
var $937f65b04b6d1c27$exports = {};
$937f65b04b6d1c27$exports = JSON.parse("{\"remove\":\"Eemalda\"}");
var $8ad907e0863d43a8$exports = {};
$8ad907e0863d43a8$exports = JSON.parse("{\"remove\":\"Poista\"}");
var $98695933533f6c5e$exports = {};
$98695933533f6c5e$exports = JSON.parse("{\"remove\":\"Poista\"}");
var $45c9b8ed2c94ff44$exports = {};
$45c9b8ed2c94ff44$exports = JSON.parse("{\"remove\":\"Supprimer\"}");
var $2828f2b5e1e7d438$exports = {};
$2828f2b5e1e7d438$exports = JSON.parse("{\"remove\":\"Supprimer\"}");
var $3583b7cbea9a9cfd$exports = {};
$3583b7cbea9a9cfd$exports = JSON.parse("{\"remove\":\"הסר\"}");
var $4dc535cde05fa3bc$exports = {};
$4dc535cde05fa3bc$exports = JSON.parse("{\"remove\":\"הסר\"}");
var $0c4ca9ae4d41786e$exports = {};
$0c4ca9ae4d41786e$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $728fd11ed4081031$exports = {};
$728fd11ed4081031$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $769bbe5514f2aedc$exports = {};
$769bbe5514f2aedc$exports = JSON.parse("{\"remove\":\"Eltávolítás\"}");
var $dd153ecb528d7dcb$exports = {};
$dd153ecb528d7dcb$exports = JSON.parse("{\"remove\":\"Eltávolítás\"}");
var $51f31e1b923a06ad$exports = {};
$51f31e1b923a06ad$exports = JSON.parse("{\"remove\":\"Rimuovi\"}");
var $c99b6d476ee2d095$exports = {};
$c99b6d476ee2d095$exports = JSON.parse("{\"remove\":\"Rimuovi\"}");
var $b2f17c71b54ca1ae$exports = {};
$b2f17c71b54ca1ae$exports = JSON.parse("{\"remove\":\"削除\"}");
var $b7391ca73b07feba$exports = {};
$b7391ca73b07feba$exports = JSON.parse("{\"remove\":\"削除\"}");
var $65391155ddf8e9fa$exports = {};
$65391155ddf8e9fa$exports = JSON.parse("{\"remove\":\"제거\"}");
var $c7aa1d93fda90da2$exports = {};
$c7aa1d93fda90da2$exports = JSON.parse("{\"remove\":\"제거\"}");
var $b061aa4619932dca$exports = {};
$b061aa4619932dca$exports = JSON.parse("{\"remove\":\"Pašalinti\"}");
var $8fa4d858d710a46a$exports = {};
$8fa4d858d710a46a$exports = JSON.parse("{\"remove\":\"Pašalinti\"}");
var $e5d4b1d68764ebee$exports = {};
$e5d4b1d68764ebee$exports = JSON.parse("{\"remove\":\"Noņemt\"}");
var $da1366ec97d849e7$exports = {};
$da1366ec97d849e7$exports = JSON.parse("{\"remove\":\"Noņemt\"}");
var $abd57a1e71b19e37$exports = {};
$abd57a1e71b19e37$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $75cd1a36e472769f$exports = {};
$75cd1a36e472769f$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $5b46ac78f33d3edc$exports = {};
$5b46ac78f33d3edc$exports = JSON.parse("{\"remove\":\"Verwijderen\"}");
var $cab62d7076520d69$exports = {};
$cab62d7076520d69$exports = JSON.parse("{\"remove\":\"Verwijderen\"}");
var $c90039dafbaf6f44$exports = {};
$c90039dafbaf6f44$exports = JSON.parse("{\"remove\":\"Usuń\"}");
var $9a92f8c415dcf6ea$exports = {};
$9a92f8c415dcf6ea$exports = JSON.parse("{\"remove\":\"Usuń\"}");
var $ae23cc9f3ad4a15d$exports = {};
$ae23cc9f3ad4a15d$exports = JSON.parse("{\"remove\":\"Remover\"}");
var $6ef233a41373e840$exports = {};
$6ef233a41373e840$exports = JSON.parse("{\"remove\":\"Remover\"}");
var $73eabc8bc525629e$exports = {};
$73eabc8bc525629e$exports = JSON.parse("{\"remove\":\"Eliminar\"}");
var $ee2c5edd3ce258ae$exports = {};
$ee2c5edd3ce258ae$exports = JSON.parse("{\"remove\":\"Eliminar\"}");
var $29c47dfee33d1bcd$exports = {};
$29c47dfee33d1bcd$exports = JSON.parse("{\"remove\":\"Îndepărtaţi\"}");
var $17207fe2a2fbed12$exports = {};
$17207fe2a2fbed12$exports = JSON.parse("{\"remove\":\"Îndepărtaţi\"}");
var $fad245e596bcad27$exports = {};
$fad245e596bcad27$exports = JSON.parse("{\"remove\":\"Удалить\"}");
var $1a4095afd253a9ff$exports = {};
$1a4095afd253a9ff$exports = JSON.parse("{\"remove\":\"Удалить\"}");
var $7ecfa91f11971048$exports = {};
$7ecfa91f11971048$exports = JSON.parse("{\"remove\":\"Odstrániť\"}");
var $7612e415bf6fc44b$exports = {};
$7612e415bf6fc44b$exports = JSON.parse("{\"remove\":\"Odstrániť\"}");
var $d855364c7d2f2bda$exports = {};
$d855364c7d2f2bda$exports = JSON.parse("{\"remove\":\"Odstrani\"}");
var $0fabb0019a297945$exports = {};
$0fabb0019a297945$exports = JSON.parse("{\"remove\":\"Odstrani\"}");
var $f0f9b4560ff96026$exports = {};
$f0f9b4560ff96026$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $7f10926747c4ac7e$exports = {};
$7f10926747c4ac7e$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $4a0c13b5781091ef$exports = {};
$4a0c13b5781091ef$exports = JSON.parse("{\"remove\":\"Ta bort\"}");
var $9ba98c5fd3954063$exports = {};
$9ba98c5fd3954063$exports = JSON.parse("{\"remove\":\"Ta bort\"}");
var $82b275350e4d9bfc$exports = {};
$82b275350e4d9bfc$exports = JSON.parse("{\"remove\":\"Kaldır\"}");
var $24b81d984960d760$exports = {};
$24b81d984960d760$exports = JSON.parse("{\"remove\":\"Kaldır\"}");
var $b82536962c349092$exports = {};
$b82536962c349092$exports = JSON.parse("{\"remove\":\"Видалити\"}");
var $e0b4479c9d4e997c$exports = {};
$e0b4479c9d4e997c$exports = JSON.parse("{\"remove\":\"Видалити\"}");
var $641f8b124fbaadab$exports = {};
$641f8b124fbaadab$exports = JSON.parse("{\"remove\":\"删除\"}");
var $f0e3c840ccb84798$exports = {};
$f0e3c840ccb84798$exports = JSON.parse("{\"remove\":\"删除\"}");
var $7de0f3f989045bc1$exports = {};
$7de0f3f989045bc1$exports = JSON.parse("{\"remove\":\"移除\"}");
var $c4895b7076ce24d3$exports = {};
$c4895b7076ce24d3$exports = JSON.parse("{\"remove\":\"移除\"}");
$8f004cf49daebca9$exports = {
"ar-AE": $6eacd18bf5afcdc8$exports,
"bg-BG": $729bf914ff317388$exports,
"cs-CZ": $8be943fd4ac737bc$exports,
"da-DK": $6151fdb05179beeb$exports,
"de-DE": $86af05a766c218c7$exports,
"el-GR": $af3b8dae5cc6406d$exports,
"en-US": $ad186745d5f62b60$exports,
"es-ES": $a9730474de94b4e1$exports,
"et-EE": $37ee358e14e90716$exports,
"fi-FI": $8ad907e0863d43a8$exports,
"fr-FR": $45c9b8ed2c94ff44$exports,
"he-IL": $3583b7cbea9a9cfd$exports,
"hr-HR": $0c4ca9ae4d41786e$exports,
"hu-HU": $769bbe5514f2aedc$exports,
"it-IT": $51f31e1b923a06ad$exports,
"ja-JP": $b2f17c71b54ca1ae$exports,
"ko-KR": $65391155ddf8e9fa$exports,
"lt-LT": $b061aa4619932dca$exports,
"lv-LV": $e5d4b1d68764ebee$exports,
"nb-NO": $abd57a1e71b19e37$exports,
"nl-NL": $5b46ac78f33d3edc$exports,
"pl-PL": $c90039dafbaf6f44$exports,
"pt-BR": $ae23cc9f3ad4a15d$exports,
"pt-PT": $73eabc8bc525629e$exports,
"ro-RO": $29c47dfee33d1bcd$exports,
"ru-RU": $fad245e596bcad27$exports,
"sk-SK": $7ecfa91f11971048$exports,
"sl-SI": $d855364c7d2f2bda$exports,
"sr-SP": $f0f9b4560ff96026$exports,
"sv-SE": $4a0c13b5781091ef$exports,
"tr-TR": $82b275350e4d9bfc$exports,
"uk-UA": $b82536962c349092$exports,
"zh-CN": $641f8b124fbaadab$exports,
"zh-TW": $7de0f3f989045bc1$exports
$dda6d49b41cc862d$exports = {
"ar-AE": $00d59d3c0e1bf174$exports,
"bg-BG": $b3aa8e3fd46e1e0f$exports,
"cs-CZ": $6a4390574ed99569$exports,
"da-DK": $c860f786035205ee$exports,
"de-DE": $92855740baa37c33$exports,
"el-GR": $4ec9185c48c283dc$exports,
"en-US": $e9766593109de8b7$exports,
"es-ES": $3e9a340d092749be$exports,
"et-EE": $937f65b04b6d1c27$exports,
"fi-FI": $98695933533f6c5e$exports,
"fr-FR": $2828f2b5e1e7d438$exports,
"he-IL": $4dc535cde05fa3bc$exports,
"hr-HR": $728fd11ed4081031$exports,
"hu-HU": $dd153ecb528d7dcb$exports,
"it-IT": $c99b6d476ee2d095$exports,
"ja-JP": $b7391ca73b07feba$exports,
"ko-KR": $c7aa1d93fda90da2$exports,
"lt-LT": $8fa4d858d710a46a$exports,
"lv-LV": $da1366ec97d849e7$exports,
"nb-NO": $75cd1a36e472769f$exports,
"nl-NL": $cab62d7076520d69$exports,
"pl-PL": $9a92f8c415dcf6ea$exports,
"pt-BR": $6ef233a41373e840$exports,
"pt-PT": $ee2c5edd3ce258ae$exports,
"ro-RO": $17207fe2a2fbed12$exports,
"ru-RU": $1a4095afd253a9ff$exports,
"sk-SK": $7612e415bf6fc44b$exports,
"sl-SI": $0fabb0019a297945$exports,
"sr-SP": $7f10926747c4ac7e$exports,
"sv-SE": $9ba98c5fd3954063$exports,
"tr-TR": $24b81d984960d760$exports,
"uk-UA": $e0b4479c9d4e997c$exports,
"zh-CN": $f0e3c840ccb84798$exports,
"zh-TW": $c4895b7076ce24d3$exports
};

@@ -270,10 +270,10 @@

function $94a37b456b54e94c$export$3f568fff7dff2f03(props, state) {
function $7e6365ae3faa3ee9$export$3f568fff7dff2f03(props, state) {
let { isFocused: isFocused } = props;
const { isDisabled: isDisabled , isRemovable: isRemovable , onRemove: onRemove , children: children , item: item , tagRef: tagRef , tagRowRef: tagRowRef } = props;
const formatMessage = $dBS35$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($8f004cf49daebca9$exports)));
const formatMessage = $fbMcw$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($dda6d49b41cc862d$exports)));
const removeString = formatMessage('remove');
const labelId = $dBS35$reactariautils.useId();
const buttonId = $dBS35$reactariautils.useId();
let { rowProps: rowProps } = $dBS35$reactariagrid.useGridRow({
const labelId = $fbMcw$reactariautils.useId();
const buttonId = $fbMcw$reactariautils.useId();
let { rowProps: rowProps } = $fbMcw$reactariagrid.useGridRow({
node: item

@@ -284,3 +284,3 @@ }, state, tagRowRef);

let { tabIndex: tabIndex , ...otherRowProps } = rowProps;
let { gridCellProps: gridCellProps } = $dBS35$reactariagrid.useGridCell({
let { gridCellProps: gridCellProps } = $fbMcw$reactariagrid.useGridCell({
node: [

@@ -298,8 +298,10 @@ ...item.childNodes

const pressProps = {
onPress: (e)=>onRemove?.(children, e)
onPress: (e)=>{
return onRemove === null || onRemove === void 0 ? void 0 : onRemove(children, e);
}
};
isFocused = isFocused || state.selectionManager.focusedKey === item.childNodes[0].key;
let domProps = $dBS35$reactariautils.filterDOMProps(props);
let domProps = $fbMcw$reactariautils.filterDOMProps(props);
return {
clearButtonProps: $dBS35$reactariautils.mergeProps(pressProps, {
clearButtonProps: $fbMcw$reactariautils.mergeProps(pressProps, {
'aria-label': removeString,

@@ -314,3 +316,3 @@ 'aria-labelledby': `${buttonId} ${labelId}`,

tagRowProps: otherRowProps,
tagProps: $dBS35$reactariautils.mergeProps(domProps, gridCellProps, {
tagProps: $fbMcw$reactariautils.mergeProps(domProps, gridCellProps, {
'aria-disabled': isDisabled,

@@ -330,12 +332,12 @@ 'aria-errormessage': props['aria-errormessage'],

var $f961ecc1be07564b$exports = {};
var $0bed33a3a01edef1$exports = {};
$parcel$export($f961ecc1be07564b$exports, "useTagGroup", () => $f961ecc1be07564b$export$4f8b5cda58b7e8ff);
$parcel$export($0bed33a3a01edef1$exports, "useTagGroup", () => $0bed33a3a01edef1$export$4f8b5cda58b7e8ff);
function $f961ecc1be07564b$export$4f8b5cda58b7e8ff(props, listState) {
function $0bed33a3a01edef1$export$4f8b5cda58b7e8ff(props, listState) {
let { isDisabled: isDisabled } = props;
let [isFocusWithin, setFocusWithin] = $dBS35$react.useState(false);
let { focusWithinProps: focusWithinProps } = $dBS35$reactariainteractions.useFocusWithin({
let [isFocusWithin, setFocusWithin] = $fbMcw$react.useState(false);
let { focusWithinProps: focusWithinProps } = $fbMcw$reactariainteractions.useFocusWithin({
onFocusWithinChange: setFocusWithin

@@ -348,5 +350,5 @@ });

)) isDisabled = true;
let domProps = $dBS35$reactariautils.filterDOMProps(props);
let domProps = $fbMcw$reactariautils.filterDOMProps(props);
return {
tagGroupProps: $dBS35$reactariautils.mergeProps(domProps, {
tagGroupProps: $fbMcw$reactariautils.mergeProps(domProps, {
'aria-atomic': false,

@@ -362,7 +364,7 @@ 'aria-relevant': 'additions',

$parcel$exportWildcard(module.exports, $598514b5b81cac5f$exports);
$parcel$exportWildcard(module.exports, $94a37b456b54e94c$exports);
$parcel$exportWildcard(module.exports, $f961ecc1be07564b$exports);
$parcel$exportWildcard(module.exports, $9949860e867a4f6e$exports);
$parcel$exportWildcard(module.exports, $7e6365ae3faa3ee9$exports);
$parcel$exportWildcard(module.exports, $0bed33a3a01edef1$exports);
//# sourceMappingURL=main.js.map

@@ -1,6 +0,6 @@

import {GridKeyboardDelegate as $5e9LZ$GridKeyboardDelegate, useGridRow as $5e9LZ$useGridRow, useGridCell as $5e9LZ$useGridCell} from "@react-aria/grid";
import {useId as $5e9LZ$useId, filterDOMProps as $5e9LZ$filterDOMProps, mergeProps as $5e9LZ$mergeProps} from "@react-aria/utils";
import {useMessageFormatter as $5e9LZ$useMessageFormatter} from "@react-aria/i18n";
import {useState as $5e9LZ$useState} from "react";
import {useFocusWithin as $5e9LZ$useFocusWithin} from "@react-aria/interactions";
import {GridKeyboardDelegate as $jwmN4$GridKeyboardDelegate, useGridRow as $jwmN4$useGridRow, useGridCell as $jwmN4$useGridCell} from "@react-aria/grid";
import {useId as $jwmN4$useId, filterDOMProps as $jwmN4$filterDOMProps, mergeProps as $jwmN4$mergeProps} from "@react-aria/utils";
import {useMessageFormatter as $jwmN4$useMessageFormatter} from "@react-aria/i18n";
import {useState as $jwmN4$useState} from "react";
import {useFocusWithin as $jwmN4$useFocusWithin} from "@react-aria/interactions";

@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {

}
var $5ba5871437372163$exports = {};
var $49a8b54c6d106eb7$exports = {};
$parcel$export($5ba5871437372163$exports, "TagKeyboardDelegate", () => $5ba5871437372163$export$b00754732e683b92);
$parcel$export($49a8b54c6d106eb7$exports, "TagKeyboardDelegate", () => $49a8b54c6d106eb7$export$b00754732e683b92);
class $5ba5871437372163$export$b00754732e683b92 extends $5e9LZ$GridKeyboardDelegate {
class $49a8b54c6d106eb7$export$b00754732e683b92 extends $jwmN4$GridKeyboardDelegate {
getKeyRightOf(key) {

@@ -72,178 +72,178 @@ return this.direction === 'rtl' ? this.getKeyAbove(key) : this.getKeyBelow(key);

var $b4db48365d00db9a$exports = {};
var $72adfd28c36c897c$exports = {};
$parcel$export($b4db48365d00db9a$exports, "useTag", () => $b4db48365d00db9a$export$3f568fff7dff2f03);
$parcel$export($72adfd28c36c897c$exports, "useTag", () => $72adfd28c36c897c$export$3f568fff7dff2f03);
var $e7b680695b220600$exports = {};
var $743900c2455038f6$exports = {};
$743900c2455038f6$exports = JSON.parse("{\"remove\":\"إزالة\"}");
var $9d8c899a9be9c9c5$exports = {};
var $a00b94d82a524a32$exports = {};
$a00b94d82a524a32$exports = JSON.parse("{\"remove\":\"إزالة\"}");
var $8de49871543e21de$exports = {};
$8de49871543e21de$exports = JSON.parse("{\"remove\":\"Премахване\"}");
var $5311f195733538d6$exports = {};
$5311f195733538d6$exports = JSON.parse("{\"remove\":\"Премахване\"}");
var $0ca4bb919d4f4435$exports = {};
$0ca4bb919d4f4435$exports = JSON.parse("{\"remove\":\"Odebrat\"}");
var $2a83136279c3e8be$exports = {};
$2a83136279c3e8be$exports = JSON.parse("{\"remove\":\"Odebrat\"}");
var $d1b0e85f63a72271$exports = {};
$d1b0e85f63a72271$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $dce76e6d3fb16830$exports = {};
$dce76e6d3fb16830$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $179e44d286df468c$exports = {};
$179e44d286df468c$exports = JSON.parse("{\"remove\":\"Entfernen\"}");
var $6ac119ea33375625$exports = {};
$6ac119ea33375625$exports = JSON.parse("{\"remove\":\"Entfernen\"}");
var $5922cb1bf85b11f4$exports = {};
$5922cb1bf85b11f4$exports = JSON.parse("{\"remove\":\"Κατάργηση\"}");
var $23e6f9fad90ed691$exports = {};
$23e6f9fad90ed691$exports = JSON.parse("{\"remove\":\"Κατάργηση\"}");
var $c1e37dadedf6279e$exports = {};
$c1e37dadedf6279e$exports = JSON.parse("{\"remove\":\"Remove\"}");
var $eecde5e627ef2c49$exports = {};
$eecde5e627ef2c49$exports = JSON.parse("{\"remove\":\"Remove\"}");
var $f777f016f08205c3$exports = {};
$f777f016f08205c3$exports = JSON.parse("{\"remove\":\"Quitar\"}");
var $c35a4383d94b6cdc$exports = {};
$c35a4383d94b6cdc$exports = JSON.parse("{\"remove\":\"Quitar\"}");
var $472921d27a779787$exports = {};
$472921d27a779787$exports = JSON.parse("{\"remove\":\"Eemalda\"}");
var $e9e8d9c5f6761136$exports = {};
$e9e8d9c5f6761136$exports = JSON.parse("{\"remove\":\"Eemalda\"}");
var $dbd26d6fbc866397$exports = {};
$dbd26d6fbc866397$exports = JSON.parse("{\"remove\":\"Poista\"}");
var $884138742f74c5cb$exports = {};
$884138742f74c5cb$exports = JSON.parse("{\"remove\":\"Poista\"}");
var $5e39d42bf33df8d3$exports = {};
$5e39d42bf33df8d3$exports = JSON.parse("{\"remove\":\"Supprimer\"}");
var $0afcf3f93e11533c$exports = {};
$0afcf3f93e11533c$exports = JSON.parse("{\"remove\":\"Supprimer\"}");
var $e7642eed7fd63832$exports = {};
$e7642eed7fd63832$exports = JSON.parse("{\"remove\":\"הסר\"}");
var $c3e4891cbcbee919$exports = {};
$c3e4891cbcbee919$exports = JSON.parse("{\"remove\":\"הסר\"}");
var $8e37c26f95293312$exports = {};
$8e37c26f95293312$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $71be7d1c8219977b$exports = {};
$71be7d1c8219977b$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $17cdc86f9558ed3c$exports = {};
$17cdc86f9558ed3c$exports = JSON.parse("{\"remove\":\"Eltávolítás\"}");
var $425a642f93b67a27$exports = {};
$425a642f93b67a27$exports = JSON.parse("{\"remove\":\"Eltávolítás\"}");
var $54eeb2c51646b0c1$exports = {};
$54eeb2c51646b0c1$exports = JSON.parse("{\"remove\":\"Rimuovi\"}");
var $b5ffe6186678fbfc$exports = {};
$b5ffe6186678fbfc$exports = JSON.parse("{\"remove\":\"Rimuovi\"}");
var $35fa9e31530750b7$exports = {};
$35fa9e31530750b7$exports = JSON.parse("{\"remove\":\"削除\"}");
var $8390a6db301323a6$exports = {};
$8390a6db301323a6$exports = JSON.parse("{\"remove\":\"削除\"}");
var $195fd25270b3f59a$exports = {};
$195fd25270b3f59a$exports = JSON.parse("{\"remove\":\"제거\"}");
var $f8f4f0cf3efe52a6$exports = {};
$f8f4f0cf3efe52a6$exports = JSON.parse("{\"remove\":\"제거\"}");
var $59afcb8ef0fdd255$exports = {};
$59afcb8ef0fdd255$exports = JSON.parse("{\"remove\":\"Pašalinti\"}");
var $e81888726b6b6a37$exports = {};
$e81888726b6b6a37$exports = JSON.parse("{\"remove\":\"Pašalinti\"}");
var $7090d6af1633af23$exports = {};
$7090d6af1633af23$exports = JSON.parse("{\"remove\":\"Noņemt\"}");
var $84ae7c296a6c462f$exports = {};
$84ae7c296a6c462f$exports = JSON.parse("{\"remove\":\"Noņemt\"}");
var $be07885f8b3b96a9$exports = {};
$be07885f8b3b96a9$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $0f77edeca891ffdf$exports = {};
$0f77edeca891ffdf$exports = JSON.parse("{\"remove\":\"Fjern\"}");
var $f2c0f1f0195f0354$exports = {};
$f2c0f1f0195f0354$exports = JSON.parse("{\"remove\":\"Verwijderen\"}");
var $554a04556163e439$exports = {};
$554a04556163e439$exports = JSON.parse("{\"remove\":\"Verwijderen\"}");
var $71d3ae8d8fc97727$exports = {};
$71d3ae8d8fc97727$exports = JSON.parse("{\"remove\":\"Usuń\"}");
var $e62e15e0fa1cca0f$exports = {};
$e62e15e0fa1cca0f$exports = JSON.parse("{\"remove\":\"Usuń\"}");
var $1397e7794fa0c7f3$exports = {};
$1397e7794fa0c7f3$exports = JSON.parse("{\"remove\":\"Remover\"}");
var $5f3b4cded8f01589$exports = {};
$5f3b4cded8f01589$exports = JSON.parse("{\"remove\":\"Remover\"}");
var $db8818414d5aca5a$exports = {};
$db8818414d5aca5a$exports = JSON.parse("{\"remove\":\"Eliminar\"}");
var $a478d81dda41c2db$exports = {};
$a478d81dda41c2db$exports = JSON.parse("{\"remove\":\"Eliminar\"}");
var $42a9d36f6f705fef$exports = {};
$42a9d36f6f705fef$exports = JSON.parse("{\"remove\":\"Îndepărtaţi\"}");
var $29a298eba97e0005$exports = {};
$29a298eba97e0005$exports = JSON.parse("{\"remove\":\"Îndepărtaţi\"}");
var $af153844a11ef098$exports = {};
$af153844a11ef098$exports = JSON.parse("{\"remove\":\"Удалить\"}");
var $2d92ca7756315fb7$exports = {};
$2d92ca7756315fb7$exports = JSON.parse("{\"remove\":\"Удалить\"}");
var $5cf6622ee7608622$exports = {};
$5cf6622ee7608622$exports = JSON.parse("{\"remove\":\"Odstrániť\"}");
var $1f05374736f82205$exports = {};
$1f05374736f82205$exports = JSON.parse("{\"remove\":\"Odstrániť\"}");
var $f9f5a69026a5c16f$exports = {};
$f9f5a69026a5c16f$exports = JSON.parse("{\"remove\":\"Odstrani\"}");
var $61fcf14489978bd5$exports = {};
$61fcf14489978bd5$exports = JSON.parse("{\"remove\":\"Odstrani\"}");
var $1a86645d269e1fc9$exports = {};
$1a86645d269e1fc9$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $d6491ef0daadf12a$exports = {};
$d6491ef0daadf12a$exports = JSON.parse("{\"remove\":\"Ukloni\"}");
var $167b6af1e63b05e3$exports = {};
$167b6af1e63b05e3$exports = JSON.parse("{\"remove\":\"Ta bort\"}");
var $ee3d9862bdac7e0e$exports = {};
$ee3d9862bdac7e0e$exports = JSON.parse("{\"remove\":\"Ta bort\"}");
var $b74cd31c591a8aaa$exports = {};
$b74cd31c591a8aaa$exports = JSON.parse("{\"remove\":\"Kaldır\"}");
var $361201537b98fcac$exports = {};
$361201537b98fcac$exports = JSON.parse("{\"remove\":\"Kaldır\"}");
var $397d4b29878d3d4b$exports = {};
$397d4b29878d3d4b$exports = JSON.parse("{\"remove\":\"Видалити\"}");
var $f733182630f150f2$exports = {};
$f733182630f150f2$exports = JSON.parse("{\"remove\":\"Видалити\"}");
var $5f78b636df0c01b4$exports = {};
$5f78b636df0c01b4$exports = JSON.parse("{\"remove\":\"删除\"}");
var $85ac9cb256ec7a81$exports = {};
$85ac9cb256ec7a81$exports = JSON.parse("{\"remove\":\"删除\"}");
var $601a7eb375519934$exports = {};
$601a7eb375519934$exports = JSON.parse("{\"remove\":\"移除\"}");
var $03d9c23ba8958b6c$exports = {};
$03d9c23ba8958b6c$exports = JSON.parse("{\"remove\":\"移除\"}");
$e7b680695b220600$exports = {
"ar-AE": $743900c2455038f6$exports,
"bg-BG": $8de49871543e21de$exports,
"cs-CZ": $0ca4bb919d4f4435$exports,
"da-DK": $d1b0e85f63a72271$exports,
"de-DE": $179e44d286df468c$exports,
"el-GR": $5922cb1bf85b11f4$exports,
"en-US": $c1e37dadedf6279e$exports,
"es-ES": $f777f016f08205c3$exports,
"et-EE": $472921d27a779787$exports,
"fi-FI": $dbd26d6fbc866397$exports,
"fr-FR": $5e39d42bf33df8d3$exports,
"he-IL": $e7642eed7fd63832$exports,
"hr-HR": $8e37c26f95293312$exports,
"hu-HU": $17cdc86f9558ed3c$exports,
"it-IT": $54eeb2c51646b0c1$exports,
"ja-JP": $35fa9e31530750b7$exports,
"ko-KR": $195fd25270b3f59a$exports,
"lt-LT": $59afcb8ef0fdd255$exports,
"lv-LV": $7090d6af1633af23$exports,
"nb-NO": $be07885f8b3b96a9$exports,
"nl-NL": $f2c0f1f0195f0354$exports,
"pl-PL": $71d3ae8d8fc97727$exports,
"pt-BR": $1397e7794fa0c7f3$exports,
"pt-PT": $db8818414d5aca5a$exports,
"ro-RO": $42a9d36f6f705fef$exports,
"ru-RU": $af153844a11ef098$exports,
"sk-SK": $5cf6622ee7608622$exports,
"sl-SI": $f9f5a69026a5c16f$exports,
"sr-SP": $1a86645d269e1fc9$exports,
"sv-SE": $167b6af1e63b05e3$exports,
"tr-TR": $b74cd31c591a8aaa$exports,
"uk-UA": $397d4b29878d3d4b$exports,
"zh-CN": $5f78b636df0c01b4$exports,
"zh-TW": $601a7eb375519934$exports
$9d8c899a9be9c9c5$exports = {
"ar-AE": $a00b94d82a524a32$exports,
"bg-BG": $5311f195733538d6$exports,
"cs-CZ": $2a83136279c3e8be$exports,
"da-DK": $dce76e6d3fb16830$exports,
"de-DE": $6ac119ea33375625$exports,
"el-GR": $23e6f9fad90ed691$exports,
"en-US": $eecde5e627ef2c49$exports,
"es-ES": $c35a4383d94b6cdc$exports,
"et-EE": $e9e8d9c5f6761136$exports,
"fi-FI": $884138742f74c5cb$exports,
"fr-FR": $0afcf3f93e11533c$exports,
"he-IL": $c3e4891cbcbee919$exports,
"hr-HR": $71be7d1c8219977b$exports,
"hu-HU": $425a642f93b67a27$exports,
"it-IT": $b5ffe6186678fbfc$exports,
"ja-JP": $8390a6db301323a6$exports,
"ko-KR": $f8f4f0cf3efe52a6$exports,
"lt-LT": $e81888726b6b6a37$exports,
"lv-LV": $84ae7c296a6c462f$exports,
"nb-NO": $0f77edeca891ffdf$exports,
"nl-NL": $554a04556163e439$exports,
"pl-PL": $e62e15e0fa1cca0f$exports,
"pt-BR": $5f3b4cded8f01589$exports,
"pt-PT": $a478d81dda41c2db$exports,
"ro-RO": $29a298eba97e0005$exports,
"ru-RU": $2d92ca7756315fb7$exports,
"sk-SK": $1f05374736f82205$exports,
"sl-SI": $61fcf14489978bd5$exports,
"sr-SP": $d6491ef0daadf12a$exports,
"sv-SE": $ee3d9862bdac7e0e$exports,
"tr-TR": $361201537b98fcac$exports,
"uk-UA": $f733182630f150f2$exports,
"zh-CN": $85ac9cb256ec7a81$exports,
"zh-TW": $03d9c23ba8958b6c$exports
};

@@ -254,10 +254,10 @@

function $b4db48365d00db9a$export$3f568fff7dff2f03(props, state) {
function $72adfd28c36c897c$export$3f568fff7dff2f03(props, state) {
let { isFocused: isFocused } = props;
const { isDisabled: isDisabled , isRemovable: isRemovable , onRemove: onRemove , children: children , item: item , tagRef: tagRef , tagRowRef: tagRowRef } = props;
const formatMessage = $5e9LZ$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($e7b680695b220600$exports)));
const formatMessage = $jwmN4$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($9d8c899a9be9c9c5$exports)));
const removeString = formatMessage('remove');
const labelId = $5e9LZ$useId();
const buttonId = $5e9LZ$useId();
let { rowProps: rowProps } = $5e9LZ$useGridRow({
const labelId = $jwmN4$useId();
const buttonId = $jwmN4$useId();
let { rowProps: rowProps } = $jwmN4$useGridRow({
node: item

@@ -268,3 +268,3 @@ }, state, tagRowRef);

let { tabIndex: tabIndex , ...otherRowProps } = rowProps;
let { gridCellProps: gridCellProps } = $5e9LZ$useGridCell({
let { gridCellProps: gridCellProps } = $jwmN4$useGridCell({
node: [

@@ -282,8 +282,10 @@ ...item.childNodes

const pressProps = {
onPress: (e)=>onRemove?.(children, e)
onPress: (e)=>{
return onRemove === null || onRemove === void 0 ? void 0 : onRemove(children, e);
}
};
isFocused = isFocused || state.selectionManager.focusedKey === item.childNodes[0].key;
let domProps = $5e9LZ$filterDOMProps(props);
let domProps = $jwmN4$filterDOMProps(props);
return {
clearButtonProps: $5e9LZ$mergeProps(pressProps, {
clearButtonProps: $jwmN4$mergeProps(pressProps, {
'aria-label': removeString,

@@ -298,3 +300,3 @@ 'aria-labelledby': `${buttonId} ${labelId}`,

tagRowProps: otherRowProps,
tagProps: $5e9LZ$mergeProps(domProps, gridCellProps, {
tagProps: $jwmN4$mergeProps(domProps, gridCellProps, {
'aria-disabled': isDisabled,

@@ -314,12 +316,12 @@ 'aria-errormessage': props['aria-errormessage'],

var $2aa59344625470f3$exports = {};
var $e0ac83e10cc83958$exports = {};
$parcel$export($2aa59344625470f3$exports, "useTagGroup", () => $2aa59344625470f3$export$4f8b5cda58b7e8ff);
$parcel$export($e0ac83e10cc83958$exports, "useTagGroup", () => $e0ac83e10cc83958$export$4f8b5cda58b7e8ff);
function $2aa59344625470f3$export$4f8b5cda58b7e8ff(props, listState) {
function $e0ac83e10cc83958$export$4f8b5cda58b7e8ff(props, listState) {
let { isDisabled: isDisabled } = props;
let [isFocusWithin, setFocusWithin] = $5e9LZ$useState(false);
let { focusWithinProps: focusWithinProps } = $5e9LZ$useFocusWithin({
let [isFocusWithin, setFocusWithin] = $jwmN4$useState(false);
let { focusWithinProps: focusWithinProps } = $jwmN4$useFocusWithin({
onFocusWithinChange: setFocusWithin

@@ -332,5 +334,5 @@ });

)) isDisabled = true;
let domProps = $5e9LZ$filterDOMProps(props);
let domProps = $jwmN4$filterDOMProps(props);
return {
tagGroupProps: $5e9LZ$mergeProps(domProps, {
tagGroupProps: $jwmN4$mergeProps(domProps, {
'aria-atomic': false,

@@ -348,3 +350,3 @@ 'aria-relevant': 'additions',

export {$5ba5871437372163$export$b00754732e683b92 as TagKeyboardDelegate, $b4db48365d00db9a$export$3f568fff7dff2f03 as useTag, $2aa59344625470f3$export$4f8b5cda58b7e8ff as useTagGroup};
export {$49a8b54c6d106eb7$export$b00754732e683b92 as TagKeyboardDelegate, $72adfd28c36c897c$export$3f568fff7dff2f03 as useTag, $e0ac83e10cc83958$export$4f8b5cda58b7e8ff as useTagGroup};
//# sourceMappingURL=module.js.map
{
"name": "@react-aria/tag",
"version": "3.0.0-alpha.0",
"version": "3.0.0-alpha.1",
"description": "Spectrum UI components in React",

@@ -21,10 +21,10 @@ "license": "Apache-2.0",

"@babel/runtime": "^7.6.2",
"@react-aria/grid": "^3.0.0",
"@react-aria/i18n": "^3.1.0",
"@react-aria/interactions": "^3.1.0",
"@react-aria/utils": "^3.1.0",
"@react-stately/grid": "^3.0.0",
"@react-types/grid": "^3.0.0",
"@react-types/shared": "^3.1.0",
"@react-types/tag": "3.0.0-alpha.0"
"@react-aria/grid": "^3.2.2",
"@react-aria/i18n": "^3.3.6",
"@react-aria/interactions": "^3.8.1",
"@react-aria/utils": "^3.11.2",
"@react-stately/grid": "^3.1.2",
"@react-types/grid": "^3.0.2",
"@react-types/shared": "^3.11.1",
"@react-types/tag": "3.0.0-alpha.1"
},

@@ -37,3 +37,3 @@ "peerDependencies": {

},
"gitHead": "54c2366c4f31bd4bf619126131cd583c12972acc"
"gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc