@neo4j-ndl/react 4.11.6 → 4.12.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.
Files changed (129) hide show
  1. package/lib/cjs/avatar/Avatar.js +2 -2
  2. package/lib/cjs/avatar/Avatar.js.map +1 -1
  3. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js +31 -0
  4. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js.map +1 -0
  5. package/lib/cjs/avatar/stories/index.js +5 -1
  6. package/lib/cjs/avatar/stories/index.js.map +1 -1
  7. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  8. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  9. package/lib/cjs/icons/generated/custom/PanelBottom.js +1 -0
  10. package/lib/cjs/icons/generated/custom/PanelBottom.js.map +1 -1
  11. package/lib/cjs/icons/generated/custom/PanelLeft.js +1 -0
  12. package/lib/cjs/icons/generated/custom/PanelLeft.js.map +1 -1
  13. package/lib/cjs/icons/generated/custom/PanelRight.js +1 -0
  14. package/lib/cjs/icons/generated/custom/PanelRight.js.map +1 -1
  15. package/lib/cjs/icons/generated/custom/ThreePanel.js +1 -0
  16. package/lib/cjs/icons/generated/custom/ThreePanel.js.map +1 -1
  17. package/lib/cjs/index.js +3 -1
  18. package/lib/cjs/index.js.map +1 -1
  19. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  20. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  21. package/lib/cjs/selectable-tag/SelectableTag.js +53 -0
  22. package/lib/cjs/selectable-tag/SelectableTag.js.map +1 -0
  23. package/lib/cjs/selectable-tag/index.js +26 -0
  24. package/lib/cjs/selectable-tag/index.js.map +1 -0
  25. package/lib/cjs/selectable-tag/stories/index.js +52 -0
  26. package/lib/cjs/selectable-tag/stories/index.js.map +1 -0
  27. package/lib/cjs/selectable-tag/stories/selectable-tag-default.story.js +32 -0
  28. package/lib/cjs/selectable-tag/stories/selectable-tag-default.story.js.map +1 -0
  29. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js +30 -0
  30. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -0
  31. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js +33 -0
  32. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -0
  33. package/lib/cjs/selectable-tag/stories/selectable-tag-truncation.story.js +33 -0
  34. package/lib/cjs/selectable-tag/stories/selectable-tag-truncation.story.js.map +1 -0
  35. package/lib/cjs/selectable-tag/stories/selectable-tag-with-badge.story.js +32 -0
  36. package/lib/cjs/selectable-tag/stories/selectable-tag-with-badge.story.js.map +1 -0
  37. package/lib/cjs/selectable-tag/stories/selectable-tag-with-leading-icon.story.js +33 -0
  38. package/lib/cjs/selectable-tag/stories/selectable-tag-with-leading-icon.story.js.map +1 -0
  39. package/lib/cjs/tag/Tag.js +2 -0
  40. package/lib/cjs/tag/Tag.js.map +1 -1
  41. package/lib/cjs/tag-base/stories/index.js +32 -0
  42. package/lib/cjs/tag-base/stories/index.js.map +1 -0
  43. package/lib/cjs/tag-base/stories/tag-variants.story.js +32 -0
  44. package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -0
  45. package/lib/esm/avatar/Avatar.js +2 -2
  46. package/lib/esm/avatar/Avatar.js.map +1 -1
  47. package/lib/esm/avatar/stories/avatar-custom-icon.story.js +29 -0
  48. package/lib/esm/avatar/stories/avatar-custom-icon.story.js.map +1 -0
  49. package/lib/esm/avatar/stories/index.js +3 -0
  50. package/lib/esm/avatar/stories/index.js.map +1 -1
  51. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  52. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  53. package/lib/esm/icons/generated/custom/PanelBottom.js +1 -0
  54. package/lib/esm/icons/generated/custom/PanelBottom.js.map +1 -1
  55. package/lib/esm/icons/generated/custom/PanelLeft.js +1 -0
  56. package/lib/esm/icons/generated/custom/PanelLeft.js.map +1 -1
  57. package/lib/esm/icons/generated/custom/PanelRight.js +1 -0
  58. package/lib/esm/icons/generated/custom/PanelRight.js.map +1 -1
  59. package/lib/esm/icons/generated/custom/ThreePanel.js +1 -0
  60. package/lib/esm/icons/generated/custom/ThreePanel.js.map +1 -1
  61. package/lib/esm/index.js +1 -0
  62. package/lib/esm/index.js.map +1 -1
  63. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  64. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  65. package/lib/esm/selectable-tag/SelectableTag.js +46 -0
  66. package/lib/esm/selectable-tag/SelectableTag.js.map +1 -0
  67. package/lib/esm/selectable-tag/index.js +22 -0
  68. package/lib/esm/selectable-tag/index.js.map +1 -0
  69. package/lib/esm/selectable-tag/stories/index.js +40 -0
  70. package/lib/esm/selectable-tag/stories/index.js.map +1 -0
  71. package/lib/esm/selectable-tag/stories/selectable-tag-default.story.js +30 -0
  72. package/lib/esm/selectable-tag/stories/selectable-tag-default.story.js.map +1 -0
  73. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js +28 -0
  74. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -0
  75. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js +31 -0
  76. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -0
  77. package/lib/esm/selectable-tag/stories/selectable-tag-truncation.story.js +31 -0
  78. package/lib/esm/selectable-tag/stories/selectable-tag-truncation.story.js.map +1 -0
  79. package/lib/esm/selectable-tag/stories/selectable-tag-with-badge.story.js +30 -0
  80. package/lib/esm/selectable-tag/stories/selectable-tag-with-badge.story.js.map +1 -0
  81. package/lib/esm/selectable-tag/stories/selectable-tag-with-leading-icon.story.js +31 -0
  82. package/lib/esm/selectable-tag/stories/selectable-tag-with-leading-icon.story.js.map +1 -0
  83. package/lib/esm/tag/Tag.js +2 -0
  84. package/lib/esm/tag/Tag.js.map +1 -1
  85. package/lib/esm/tag-base/stories/index.js +25 -0
  86. package/lib/esm/tag-base/stories/index.js.map +1 -0
  87. package/lib/esm/tag-base/stories/tag-variants.story.js +30 -0
  88. package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -0
  89. package/lib/types/avatar/Avatar.d.ts +3 -1
  90. package/lib/types/avatar/Avatar.d.ts.map +1 -1
  91. package/lib/types/avatar/stories/avatar-custom-icon.story.d.ts +24 -0
  92. package/lib/types/avatar/stories/avatar-custom-icon.story.d.ts.map +1 -0
  93. package/lib/types/avatar/stories/index.d.ts +2 -0
  94. package/lib/types/avatar/stories/index.d.ts.map +1 -1
  95. package/lib/types/icons/generated/custom/PanelBottom.d.ts +1 -0
  96. package/lib/types/icons/generated/custom/PanelBottom.d.ts.map +1 -1
  97. package/lib/types/icons/generated/custom/PanelLeft.d.ts +1 -0
  98. package/lib/types/icons/generated/custom/PanelLeft.d.ts.map +1 -1
  99. package/lib/types/icons/generated/custom/PanelRight.d.ts +1 -0
  100. package/lib/types/icons/generated/custom/PanelRight.d.ts.map +1 -1
  101. package/lib/types/icons/generated/custom/ThreePanel.d.ts +1 -0
  102. package/lib/types/icons/generated/custom/ThreePanel.d.ts.map +1 -1
  103. package/lib/types/index.d.ts +1 -0
  104. package/lib/types/index.d.ts.map +1 -1
  105. package/lib/types/selectable-tag/SelectableTag.d.ts +42 -0
  106. package/lib/types/selectable-tag/SelectableTag.d.ts.map +1 -0
  107. package/lib/types/selectable-tag/index.d.ts +22 -0
  108. package/lib/types/selectable-tag/index.d.ts.map +1 -0
  109. package/lib/types/selectable-tag/stories/index.d.ts +33 -0
  110. package/lib/types/selectable-tag/stories/index.d.ts.map +1 -0
  111. package/lib/types/selectable-tag/stories/selectable-tag-default.story.d.ts +24 -0
  112. package/lib/types/selectable-tag/stories/selectable-tag-default.story.d.ts.map +1 -0
  113. package/lib/types/selectable-tag/stories/selectable-tag-disabled.story.d.ts +24 -0
  114. package/lib/types/selectable-tag/stories/selectable-tag-disabled.story.d.ts.map +1 -0
  115. package/lib/types/selectable-tag/stories/selectable-tag-sizes.story.d.ts +24 -0
  116. package/lib/types/selectable-tag/stories/selectable-tag-sizes.story.d.ts.map +1 -0
  117. package/lib/types/selectable-tag/stories/selectable-tag-truncation.story.d.ts +24 -0
  118. package/lib/types/selectable-tag/stories/selectable-tag-truncation.story.d.ts.map +1 -0
  119. package/lib/types/selectable-tag/stories/selectable-tag-with-badge.story.d.ts +24 -0
  120. package/lib/types/selectable-tag/stories/selectable-tag-with-badge.story.d.ts.map +1 -0
  121. package/lib/types/selectable-tag/stories/selectable-tag-with-leading-icon.story.d.ts +24 -0
  122. package/lib/types/selectable-tag/stories/selectable-tag-with-leading-icon.story.d.ts.map +1 -0
  123. package/lib/types/tag/Tag.d.ts +2 -0
  124. package/lib/types/tag/Tag.d.ts.map +1 -1
  125. package/lib/types/tag-base/stories/index.d.ts +23 -0
  126. package/lib/types/tag-base/stories/index.d.ts.map +1 -0
  127. package/lib/types/tag-base/stories/tag-variants.story.d.ts +24 -0
  128. package/lib/types/tag-base/stories/tag-variants.story.d.ts.map +1 -0
  129. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ThreePanel.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/ThreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,uCAAuC;AACvC,wBAAwB;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,iBAAiB,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC5D,4BACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,0OAA0O,EAC5O,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,MAAM,aAAa,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAClD,eAAe,aAAa,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n// THIS FILE IS GENERATED BY BUILD TOOL\n// DO NOT EDIT IT MANUAL\nimport { wrapIcon } from '../../wrapIcon';\nimport { SVGProps } from 'react';\nconst SvgThreePanelBase = (props: SVGProps<SVGSVGElement>) => (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n d=\"M2 11.4933H9.55556M2 11.4933V4C2 3.4 2.35556 3 2.88889 3H9.55556M2 11.4933V20C2 20.5 2.44444 21 2.88889 21H21.1111C21.6444 21 22 20.6 22 20V11.4933M22 11.4933H9.55556M22 11.4933V4C22 3.4 21.6444 3 21.1111 3H9.55556M9.55556 11.4933V3\"\n stroke=\"currentColor\"\n strokeWidth={1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\nconst SvgThreePanel = wrapIcon(SvgThreePanelBase);\nexport default SvgThreePanel;\n"]}
1
+ {"version":3,"file":"ThreePanel.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/ThreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,uCAAuC;AACvC,wBAAwB;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,iBAAiB,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC5D,4BACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,0OAA0O,EAC5O,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,yDAAyD;AACzD,MAAM,aAAa,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAClD,eAAe,aAAa,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n// THIS FILE IS GENERATED BY BUILD TOOL\n// DO NOT EDIT IT MANUAL\nimport { wrapIcon } from '../../wrapIcon';\nimport { SVGProps } from 'react';\nconst SvgThreePanelBase = (props: SVGProps<SVGSVGElement>) => (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n d=\"M2 11.4933H9.55556M2 11.4933V4C2 3.4 2.35556 3 2.88889 3H9.55556M2 11.4933V20C2 20.5 2.44444 21 2.88889 21H21.1111C21.6444 21 22 20.6 22 20V11.4933M22 11.4933H9.55556M22 11.4933V4C22 3.4 21.6444 3 21.1111 3H9.55556M9.55556 11.4933V3\"\n stroke=\"currentColor\"\n strokeWidth={1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n/** @deprecated Use `LayoutThreeSectionsIcon` instead. */\nconst SvgThreePanel = wrapIcon(SvgThreePanelBase);\nexport default SvgThreePanel;\n"]}
package/lib/esm/index.js CHANGED
@@ -79,4 +79,5 @@ export { Kbd } from './kbd';
79
79
  export { SelectIconButton } from './select-icon-button';
80
80
  export { ReadOnlyTag } from './read-only-tag';
81
81
  export { DismissibleTag } from './dismissible-tag';
82
+ export { SelectableTag } from './selectable-tag';
82
83
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,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]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { Accordion } from './accordion';\nexport { StatusLabel } from './status-label';\nexport { Banner } from './banner';\nexport { Checkbox } from './checkbox';\nexport { Switch } from './switch';\nexport { Radio } from './radio';\nexport { Menu } from './menu';\nexport { DatePicker } from './date-picker';\nexport { Dialog } from './dialog';\nexport { LoadingSpinner } from './loading-spinner';\nexport { Tabs } from './tabs';\nexport { SegmentedControl } from './segmented-control';\nexport { Popover } from './popover';\nexport { ProgressBar } from './progress-bar';\nexport { Dropzone } from './dropzone';\nexport {\n DataGrid,\n useDataGridContext,\n useTableNav,\n dataGridUtils,\n DataGridNav,\n} from './data-grid';\nexport { TextInput } from './text-input';\nexport { TextArea } from './text-area';\nexport { TextLink } from './text-link';\nexport { Select } from './select';\nexport { Tag } from './tag';\nexport * from './theme';\nexport { Wizard } from './wizard';\nexport { GraphLabel } from './graph-label';\nexport { CodeBlock } from './code-block';\nexport { StatusIndicator } from './status-indicator';\nexport { SideNavigation } from './side-navigation';\nexport { Typography } from './typography';\nexport { Drawer } from './drawer';\nexport { Breadcrumbs } from './breadcrumbs';\nexport * from './hooks';\nexport { Box } from './box';\nexport { Flex } from './flex';\nexport { Avatar } from './avatar';\nexport { Logo } from './logo';\nexport { ClipboardButton } from './clipboard-button';\nexport { Slider } from './slider';\nexport { InlineEdit } from './inline-edit';\nexport { DropdownButton } from './dropdown-button';\nexport { Divider } from './divider';\nexport * from './tree-view';\nexport { ToasterControlled, Toaster, toast, type ToastId } from './toast';\nexport { Tooltip } from './tooltip';\nexport { Skeleton } from './skeleton';\nexport { TimePicker, NeedleTime } from './time-picker';\nexport { TimeZonePicker } from './timezone-picker';\nexport {\n Spotlight,\n SpotlightProvider,\n SpotlightTarget,\n SpotlightTour,\n useSpotlightContext,\n} from './spotlight';\nexport { LoadingBar } from './loading-bar';\nexport { IconButton } from './icon-button';\nexport { CleanIconButton } from './clean-icon-button';\nexport { IconButtonArray } from './icon-button-array';\nexport { ConditionalWrap } from './conditional-wrap';\nexport { ColorPicker } from './color-picker';\nexport { OutlinedButton } from './outlined-button';\nexport { FilledButton } from './filled-button';\nexport { TextButton } from './text-button';\nexport { Code } from './code';\nexport { Kbd } from './kbd';\nexport { SelectIconButton } from './select-icon-button';\nexport { ReadOnlyTag } from './read-only-tag';\nexport { DismissibleTag } from './dismissible-tag';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,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O,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { Accordion } from './accordion';\nexport { StatusLabel } from './status-label';\nexport { Banner } from './banner';\nexport { Checkbox } from './checkbox';\nexport { Switch } from './switch';\nexport { Radio } from './radio';\nexport { Menu } from './menu';\nexport { DatePicker } from './date-picker';\nexport { Dialog } from './dialog';\nexport { LoadingSpinner } from './loading-spinner';\nexport { Tabs } from './tabs';\nexport { SegmentedControl } from './segmented-control';\nexport { Popover } from './popover';\nexport { ProgressBar } from './progress-bar';\nexport { Dropzone } from './dropzone';\nexport {\n DataGrid,\n useDataGridContext,\n useTableNav,\n dataGridUtils,\n DataGridNav,\n} from './data-grid';\nexport { TextInput } from './text-input';\nexport { TextArea } from './text-area';\nexport { TextLink } from './text-link';\nexport { Select } from './select';\nexport { Tag } from './tag';\nexport * from './theme';\nexport { Wizard } from './wizard';\nexport { GraphLabel } from './graph-label';\nexport { CodeBlock } from './code-block';\nexport { StatusIndicator } from './status-indicator';\nexport { SideNavigation } from './side-navigation';\nexport { Typography } from './typography';\nexport { Drawer } from './drawer';\nexport { Breadcrumbs } from './breadcrumbs';\nexport * from './hooks';\nexport { Box } from './box';\nexport { Flex } from './flex';\nexport { Avatar } from './avatar';\nexport { Logo } from './logo';\nexport { ClipboardButton } from './clipboard-button';\nexport { Slider } from './slider';\nexport { InlineEdit } from './inline-edit';\nexport { DropdownButton } from './dropdown-button';\nexport { Divider } from './divider';\nexport * from './tree-view';\nexport { ToasterControlled, Toaster, toast, type ToastId } from './toast';\nexport { Tooltip } from './tooltip';\nexport { Skeleton } from './skeleton';\nexport { TimePicker, NeedleTime } from './time-picker';\nexport { TimeZonePicker } from './timezone-picker';\nexport {\n Spotlight,\n SpotlightProvider,\n SpotlightTarget,\n SpotlightTour,\n useSpotlightContext,\n} from './spotlight';\nexport { LoadingBar } from './loading-bar';\nexport { IconButton } from './icon-button';\nexport { CleanIconButton } from './clean-icon-button';\nexport { IconButtonArray } from './icon-button-array';\nexport { ConditionalWrap } from './conditional-wrap';\nexport { ColorPicker } from './color-picker';\nexport { OutlinedButton } from './outlined-button';\nexport { FilledButton } from './filled-button';\nexport { TextButton } from './text-button';\nexport { Code } from './code';\nexport { Kbd } from './kbd';\nexport { SelectIconButton } from './select-icon-button';\nexport { ReadOnlyTag } from './read-only-tag';\nexport { DismissibleTag } from './dismissible-tag';\nexport { SelectableTag } from './selectable-tag';\n"]}
@@ -22,7 +22,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { ReadOnlyTag } from '@neo4j-ndl/react';
24
24
  const Component = () => {
25
- return (_jsxs("div", { className: "n-flex n-gap-token-16 n-items-start", children: [_jsx(ReadOnlyTag, { size: "x-small", children: "X-Small" }), _jsx(ReadOnlyTag, { size: "small", children: "Small" }), _jsx(ReadOnlyTag, { size: "medium", children: "Medium" }), _jsx(ReadOnlyTag, { size: "large", children: "Large" })] }));
25
+ return (_jsxs("div", { className: "n-flex n-flex-row n-gap-token-8", children: [_jsx(ReadOnlyTag, { size: "x-small", children: "X-Small" }), _jsx(ReadOnlyTag, { size: "small", children: "Small" }), _jsx(ReadOnlyTag, { size: "medium", children: "Medium" }), _jsx(ReadOnlyTag, { size: "large", children: "Large" })] }));
26
26
  };
27
27
  export default Component;
28
28
  //# sourceMappingURL=read-only-tag-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"read-only-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,qCAAqC,aAClD,KAAC,WAAW,IAAC,IAAI,EAAC,SAAS,wBAAsB,EACjD,KAAC,WAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,EAC7C,KAAC,WAAW,IAAC,IAAI,EAAC,QAAQ,uBAAqB,EAC/C,KAAC,WAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,IACzC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { ReadOnlyTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-gap-token-16 n-items-start\">\n <ReadOnlyTag size=\"x-small\">X-Small</ReadOnlyTag>\n <ReadOnlyTag size=\"small\">Small</ReadOnlyTag>\n <ReadOnlyTag size=\"medium\">Medium</ReadOnlyTag>\n <ReadOnlyTag size=\"large\">Large</ReadOnlyTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"read-only-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,WAAW,IAAC,IAAI,EAAC,SAAS,wBAAsB,EACjD,KAAC,WAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,EAC7C,KAAC,WAAW,IAAC,IAAI,EAAC,QAAQ,uBAAqB,EAC/C,KAAC,WAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,IACzC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { ReadOnlyTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-row n-gap-token-8\">\n <ReadOnlyTag size=\"x-small\">X-Small</ReadOnlyTag>\n <ReadOnlyTag size=\"small\">Small</ReadOnlyTag>\n <ReadOnlyTag size=\"medium\">Medium</ReadOnlyTag>\n <ReadOnlyTag size=\"large\">Large</ReadOnlyTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,46 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import classNames from 'classnames';
34
+ export const SelectableTag = (_a) => {
35
+ var { children, className, htmlAttributes, isSelected, badgeCount, leadingVisual, onClick, ref, isDisabled = false, size = 'medium', style } = _a, restProps = __rest(_a, ["children", "className", "htmlAttributes", "isSelected", "badgeCount", "leadingVisual", "onClick", "ref", "isDisabled", "size", "style"]);
36
+ const classes = classNames('ndl-tag-selectable', className, {
37
+ 'ndl-disabled': isDisabled,
38
+ 'ndl-large': size === 'large',
39
+ 'ndl-medium': size === 'medium',
40
+ 'ndl-small': size === 'small',
41
+ 'ndl-tag-selected': isSelected,
42
+ 'ndl-x-small': size === 'x-small',
43
+ });
44
+ return (_jsxs("button", Object.assign({ type: "button", "aria-pressed": isSelected, className: classes, disabled: isDisabled, onClick: onClick, ref: ref, style: style }, htmlAttributes, restProps, { children: [Boolean(leadingVisual) && (_jsx("span", { className: "ndl-selectable-tag-leading-visual", children: leadingVisual })), _jsx("span", { className: "ndl-selectable-tag-content", children: children }), badgeCount !== undefined && (_jsx("span", { className: "ndl-selectable-tag-badge", children: badgeCount }))] })));
45
+ };
46
+ //# sourceMappingURL=SelectableTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectableTag.js","sourceRoot":"","sources":["../../../src/selectable-tag/SelectableTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,UAAU,MAAM,YAAY,CAAC;AAuBpC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAac,EAAE,EAAE;QAblB,EAC5B,QAAQ,EACR,SAAS,EACT,cAAc,EACd,UAAU,EACV,UAAU,EACV,aAAa,EACb,OAAO,EACP,GAAG,EACH,UAAU,GAAG,KAAK,EAClB,IAAI,GAAG,QAAQ,EACf,KAAK,OAEqC,EADvC,SAAS,cAZgB,yIAa7B,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,EAAE,SAAS,EAAE;QAC1D,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,kBAAkB,EAAE,UAAU;QAC9B,aAAa,EAAE,IAAI,KAAK,SAAS;KAClC,CAAC,CAAC;IAEH,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,kBACC,UAAU,EACxB,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,IACR,cAAc,EACd,SAAS,eAEZ,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,eAAM,SAAS,EAAC,mCAAmC,YAChD,aAAa,GACT,CACR,EACD,eAAM,SAAS,EAAC,4BAA4B,YAAE,QAAQ,GAAQ,EAC7D,UAAU,KAAK,SAAS,IAAI,CAC3B,eAAM,SAAS,EAAC,0BAA0B,YAAE,UAAU,GAAQ,CAC/D,KACM,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport type { TagSize } from '../tag-base';\n\nexport interface SelectableTagProps {\n /** The content of the tag */\n children?: React.ReactNode;\n /** Whether the tag is disabled */\n isDisabled?: boolean;\n /** Whether the tag is selected */\n isSelected: boolean;\n /** Number displayed in a badge after the content */\n badgeCount?: number;\n /** Icon to display before the content */\n leadingVisual?: React.ReactNode;\n /** Size of the tag */\n size?: TagSize;\n /** Callback fired when the tag is clicked */\n onClick: React.MouseEventHandler<HTMLButtonElement>;\n}\n\nexport const SelectableTag = ({\n children,\n className,\n htmlAttributes,\n isSelected,\n badgeCount,\n leadingVisual,\n onClick,\n ref,\n isDisabled = false,\n size = 'medium',\n style,\n ...restProps\n}: CommonProps<'button', SelectableTagProps>) => {\n const classes = classNames('ndl-tag-selectable', className, {\n 'ndl-disabled': isDisabled,\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n 'ndl-tag-selected': isSelected,\n 'ndl-x-small': size === 'x-small',\n });\n\n return (\n <button\n type=\"button\"\n aria-pressed={isSelected}\n className={classes}\n disabled={isDisabled}\n onClick={onClick}\n ref={ref}\n style={style}\n {...htmlAttributes}\n {...restProps}\n >\n {Boolean(leadingVisual) && (\n <span className=\"ndl-selectable-tag-leading-visual\">\n {leadingVisual}\n </span>\n )}\n <span className=\"ndl-selectable-tag-content\">{children}</span>\n {badgeCount !== undefined && (\n <span className=\"ndl-selectable-tag-badge\">{badgeCount}</span>\n )}\n </button>\n );\n};\n"]}
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { SelectableTag } from './SelectableTag';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/selectable-tag/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { SelectableTag } from './SelectableTag';\n"]}
@@ -0,0 +1,40 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { default as SelectableTagDefault } from './selectable-tag-default.story';
22
+ export { default as SelectableTagDisabled } from './selectable-tag-disabled.story';
23
+ export { default as SelectableTagSizes } from './selectable-tag-sizes.story';
24
+ export { default as SelectableTagTruncation } from './selectable-tag-truncation.story';
25
+ export { default as SelectableTagWithLeadingIcon } from './selectable-tag-with-leading-icon.story';
26
+ export { default as SelectableTagWithBadge } from './selectable-tag-with-badge.story';
27
+ import { removeLicenseHeader } from '../../_common/export-stories-utils';
28
+ import SelectableTagDefaultSrcRaw from './selectable-tag-default.story?raw';
29
+ import SelectableTagDisabledSrcRaw from './selectable-tag-disabled.story?raw';
30
+ import SelectableTagSizesSrcRaw from './selectable-tag-sizes.story?raw';
31
+ import SelectableTagTruncationSrcRaw from './selectable-tag-truncation.story?raw';
32
+ import SelectableTagWithBadgeSrcRaw from './selectable-tag-with-badge.story?raw';
33
+ import SelectableTagWithLeadingIconSrcRaw from './selectable-tag-with-leading-icon.story?raw';
34
+ export const SelectableTagDefaultSrc = removeLicenseHeader(SelectableTagDefaultSrcRaw);
35
+ export const SelectableTagDisabledSrc = removeLicenseHeader(SelectableTagDisabledSrcRaw);
36
+ export const SelectableTagSizesSrc = removeLicenseHeader(SelectableTagSizesSrcRaw);
37
+ export const SelectableTagTruncationSrc = removeLicenseHeader(SelectableTagTruncationSrcRaw);
38
+ export const SelectableTagWithLeadingIconSrc = removeLicenseHeader(SelectableTagWithLeadingIconSrcRaw);
39
+ export const SelectableTagWithBadgeSrc = removeLicenseHeader(SelectableTagWithBadgeSrcRaw);
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,0BAA0B,MAAM,oCAAoC,CAAC;AAC5E,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAC9E,OAAO,wBAAwB,MAAM,kCAAkC,CAAC;AACxE,OAAO,6BAA6B,MAAM,uCAAuC,CAAC;AAClF,OAAO,4BAA4B,MAAM,uCAAuC,CAAC;AACjF,OAAO,kCAAkC,MAAM,8CAA8C,CAAC;AAE9F,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAC3D,6BAA6B,CAC9B,CAAC;AACF,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAChE,kCAAkC,CACnC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAC1D,4BAA4B,CAC7B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as SelectableTagDefault } from './selectable-tag-default.story';\nexport { default as SelectableTagDisabled } from './selectable-tag-disabled.story';\nexport { default as SelectableTagSizes } from './selectable-tag-sizes.story';\nexport { default as SelectableTagTruncation } from './selectable-tag-truncation.story';\nexport { default as SelectableTagWithLeadingIcon } from './selectable-tag-with-leading-icon.story';\nexport { default as SelectableTagWithBadge } from './selectable-tag-with-badge.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport SelectableTagDefaultSrcRaw from './selectable-tag-default.story?raw';\nimport SelectableTagDisabledSrcRaw from './selectable-tag-disabled.story?raw';\nimport SelectableTagSizesSrcRaw from './selectable-tag-sizes.story?raw';\nimport SelectableTagTruncationSrcRaw from './selectable-tag-truncation.story?raw';\nimport SelectableTagWithBadgeSrcRaw from './selectable-tag-with-badge.story?raw';\nimport SelectableTagWithLeadingIconSrcRaw from './selectable-tag-with-leading-icon.story?raw';\n\nexport const SelectableTagDefaultSrc = removeLicenseHeader(\n SelectableTagDefaultSrcRaw,\n);\nexport const SelectableTagDisabledSrc = removeLicenseHeader(\n SelectableTagDisabledSrcRaw,\n);\nexport const SelectableTagSizesSrc = removeLicenseHeader(\n SelectableTagSizesSrcRaw,\n);\nexport const SelectableTagTruncationSrc = removeLicenseHeader(\n SelectableTagTruncationSrcRaw,\n);\nexport const SelectableTagWithLeadingIconSrc = removeLicenseHeader(\n SelectableTagWithLeadingIconSrcRaw,\n);\nexport const SelectableTagWithBadgeSrc = removeLicenseHeader(\n SelectableTagWithBadgeSrcRaw,\n);\n"]}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { SelectableTag } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const Component = () => {
26
+ const [isSelected, setIsSelected] = useState(false);
27
+ return (_jsx(SelectableTag, { isSelected: isSelected, onClick: () => setIsSelected(!isSelected), children: "Selectable Tag" }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=selectable-tag-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-default.story.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,KAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,+BAG3B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { SelectableTag } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isSelected, setIsSelected] = useState(false);\n\n return (\n <SelectableTag\n isSelected={isSelected}\n onClick={() => setIsSelected(!isSelected)}\n >\n Selectable Tag\n </SelectableTag>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { SelectableTag } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-gap-token-8 n-items-center", children: [_jsx(SelectableTag, { isSelected: false, isDisabled: true, onClick: () => null, children: "Disabled unselected tag" }), _jsx(SelectableTag, { isSelected: true, isDisabled: true, onClick: () => null, children: "Disabled selected tag" })] }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=selectable-tag-disabled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-disabled.story.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,qCAAqC,aAClD,KAAC,aAAa,IAAC,UAAU,EAAE,KAAK,EAAE,UAAU,QAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,wCAEhD,EAChB,KAAC,aAAa,IAAC,UAAU,EAAE,IAAI,EAAE,UAAU,QAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,sCAE/C,IACZ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { SelectableTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-gap-token-8 n-items-center\">\n <SelectableTag isSelected={false} isDisabled onClick={() => null}>\n Disabled unselected tag\n </SelectableTag>\n <SelectableTag isSelected={true} isDisabled onClick={() => null}>\n Disabled selected tag\n </SelectableTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { SelectableTag } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const Component = () => {
26
+ var _a, _b, _c, _d;
27
+ const [selected, setSelected] = useState({});
28
+ return (_jsxs("div", { className: "n-flex n-flex-row n-gap-token-8", children: [_jsx(SelectableTag, { size: "x-small", isSelected: (_a = selected['x-small']) !== null && _a !== void 0 ? _a : false, onClick: () => setSelected((s) => (Object.assign(Object.assign({}, s), { ['x-small']: !s['x-small'] }))), children: "X-Small" }), _jsx(SelectableTag, { size: "small", isSelected: (_b = selected['small']) !== null && _b !== void 0 ? _b : false, onClick: () => setSelected((s) => (Object.assign(Object.assign({}, s), { ['small']: !s['small'] }))), children: "Small" }), _jsx(SelectableTag, { size: "medium", isSelected: (_c = selected['medium']) !== null && _c !== void 0 ? _c : false, onClick: () => setSelected((s) => (Object.assign(Object.assign({}, s), { ['medium']: !s['medium'] }))), children: "Medium" }), _jsx(SelectableTag, { size: "large", isSelected: (_d = selected['large']) !== null && _d !== void 0 ? _d : false, onClick: () => setSelected((s) => (Object.assign(Object.assign({}, s), { ['large']: !s['large'] }))), children: "Large" })] }));
29
+ };
30
+ export default Component;
31
+ //# sourceMappingURL=selectable-tag-sizes.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;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CAAC,mCAAI,KAAK,EACtC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAM,CAAC,KAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAG,CAAC,sBAGvD,IACZ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { SelectableTag } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<Record<string, boolean>>({});\n\n return (\n <div className=\"n-flex n-flex-row n-gap-token-8\">\n <SelectableTag\n size=\"x-small\"\n isSelected={selected['x-small'] ?? false}\n onClick={() =>\n setSelected((s) => ({ ...s, ['x-small']: !s['x-small'] }))\n }\n >\n X-Small\n </SelectableTag>\n <SelectableTag\n size=\"small\"\n isSelected={selected['small'] ?? false}\n onClick={() => setSelected((s) => ({ ...s, ['small']: !s['small'] }))}\n >\n Small\n </SelectableTag>\n <SelectableTag\n size=\"medium\"\n isSelected={selected['medium'] ?? false}\n onClick={() => setSelected((s) => ({ ...s, ['medium']: !s['medium'] }))}\n >\n Medium\n </SelectableTag>\n <SelectableTag\n size=\"large\"\n isSelected={selected['large'] ?? false}\n onClick={() => setSelected((s) => ({ ...s, ['large']: !s['large'] }))}\n >\n Large\n </SelectableTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { SelectableTag, Tooltip } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const label = 'This is a very very very long tag label that should be truncated';
26
+ const Component = () => {
27
+ const [isSelected, setIsSelected] = useState(false);
28
+ return (_jsx("div", { style: { maxWidth: 200 }, children: _jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(SelectableTag, { isSelected: isSelected, onClick: () => setIsSelected(!isSelected), badgeCount: 8, children: label }) }), _jsx(Tooltip.Content, { children: label })] }) }));
29
+ };
30
+ export default Component;
31
+ //# sourceMappingURL=selectable-tag-truncation.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-truncation.story.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-truncation.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,KAAK,GACT,kEAAkE,CAAC;AAErE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,YAC3B,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,EACzC,UAAU,EAAE,CAAC,YAEZ,KAAK,GACQ,GACA,EAClB,KAAC,OAAO,CAAC,OAAO,cAAE,KAAK,GAAmB,IAClC,GACN,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { SelectableTag, Tooltip } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst label =\n 'This is a very very very long tag label that should be truncated';\n\nconst Component = () => {\n const [isSelected, setIsSelected] = useState(false);\n\n return (\n <div style={{ maxWidth: 200 }}>\n <Tooltip type=\"simple\">\n <Tooltip.Trigger hasButtonWrapper>\n <SelectableTag\n isSelected={isSelected}\n onClick={() => setIsSelected(!isSelected)}\n badgeCount={8}\n >\n {label}\n </SelectableTag>\n </Tooltip.Trigger>\n <Tooltip.Content>{label}</Tooltip.Content>\n </Tooltip>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { SelectableTag } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const Component = () => {
26
+ const [isSelected, setIsSelected] = useState(false);
27
+ return (_jsx(SelectableTag, { badgeCount: 8, isSelected: isSelected, onClick: () => setIsSelected(!isSelected), children: "Selectable Tag with badge" }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=selectable-tag-with-badge.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-with-badge.story.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-with-badge.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,KAAC,aAAa,IACZ,UAAU,EAAE,CAAC,EACb,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,0CAG3B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { SelectableTag } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isSelected, setIsSelected] = useState(false);\n\n return (\n <SelectableTag\n badgeCount={8}\n isSelected={isSelected}\n onClick={() => setIsSelected(!isSelected)}\n >\n Selectable Tag with badge\n </SelectableTag>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { SelectableTag } from '@neo4j-ndl/react';
24
+ import { DatabasePlusIcon } from '@neo4j-ndl/react/icons';
25
+ import { useState } from 'react';
26
+ const Component = () => {
27
+ const [isSelected, setIsSelected] = useState(false);
28
+ return (_jsx(SelectableTag, { isSelected: isSelected, leadingVisual: _jsx(DatabasePlusIcon, {}), onClick: () => setIsSelected(!isSelected), children: "Selectable Tag with leading icon" }));
29
+ };
30
+ export default Component;
31
+ //# sourceMappingURL=selectable-tag-with-leading-icon.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-with-leading-icon.story.js","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-with-leading-icon.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,KAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,KAAC,gBAAgB,KAAG,EACnC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,iDAG3B,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { SelectableTag } from '@neo4j-ndl/react';\nimport { DatabasePlusIcon } from '@neo4j-ndl/react/icons';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isSelected, setIsSelected] = useState(false);\n\n return (\n <SelectableTag\n isSelected={isSelected}\n leadingVisual={<DatabasePlusIcon />}\n onClick={() => setIsSelected(!isSelected)}\n >\n Selectable Tag with leading icon\n </SelectableTag>\n );\n};\n\nexport default Component;\n"]}
@@ -34,6 +34,8 @@ import classNames from 'classnames';
34
34
  import { ConditionalWrap } from '../conditional-wrap';
35
35
  import { XMarkIconOutline } from '../icons';
36
36
  /**
37
+ * @deprecated Use `ReadOnlyTag`, `DismissibleTag`, or `SelectableTag` instead. This component will be removed in v5.
38
+ *
37
39
  * Tag component is a small visual element that represents a tag.
38
40
  * A tag is always removable. If you want a non removable tag, use the StatusLabel component instead.
39
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,UAAU,MAAM,YAAY,CAAC;AAIpC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAa5C;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAUW,EAAE,EAAE;QAVf,EAClB,QAAQ,EACR,IAAI,GAAG,SAAS,EAChB,IAAI,GAAG,QAAQ,EACf,OAAO,EACP,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAE0B,EAD1B,SAAS,cATM,sFAUnB,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE;QAC/C,iBAAiB,EAAE,IAAI,KAAK,aAAa;QACzC,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,6BACE,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,eAElB,KAAC,eAAe,IACd,UAAU,EAAE,IAAI,KAAK,aAAa,EAClC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAClB,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,YACnC,QAAQ,GACF,CACV,YAED,eAAM,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAQ,GACnC,EACjB,IAAI,KAAK,aAAa,IAAI,CACzB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,OAAO,gBACL,YAAY,YAEvB,KAAC,gBAAgB,KAAG,GACb,CACV,KACG,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { XMarkIconOutline } from '../icons';\n\ninterface TagProps {\n /** The content of the tag */\n children: React.ReactNode;\n /** Type of the tag */\n type?: 'destructive' | 'default';\n /** Size of the tag */\n size?: 'small' | 'medium' | 'large';\n /** Callback function triggered when tag should be removed */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n}\n\n/**\n * Tag component is a small visual element that represents a tag.\n * A tag is always removable. If you want a non removable tag, use the StatusLabel component instead.\n */\nexport const Tag = ({\n children,\n type = 'default',\n size = 'medium',\n onClick,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'div', TagProps>) => {\n const classes = classNames(`ndl-tag`, className, {\n 'ndl-destructive': type === 'destructive',\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n });\n\n return (\n <div\n className={classes}\n ref={ref}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <ConditionalWrap\n shouldWrap={type === 'destructive'}\n wrap={(children) => (\n <button type=\"button\" onClick={onClick}>\n {children}\n </button>\n )}\n >\n <span className=\"ndl-tag-content\">{children}</span>\n </ConditionalWrap>\n {type !== 'destructive' && (\n <button\n type=\"button\"\n className=\"ndl-remove-icon\"\n onClick={onClick}\n aria-label=\"Remove tag\"\n >\n <XMarkIconOutline />\n </button>\n )}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/tag/Tag.tsx"],"names":[],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c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { XMarkIconOutline } from '../icons';\n\ninterface TagProps {\n /** The content of the tag */\n children: React.ReactNode;\n /** Type of the tag */\n type?: 'destructive' | 'default';\n /** Size of the tag */\n size?: 'small' | 'medium' | 'large';\n /** Callback function triggered when tag should be removed */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n}\n\n/**\n * @deprecated Use `ReadOnlyTag`, `DismissibleTag`, or `SelectableTag` instead. This component will be removed in v5.\n *\n * Tag component is a small visual element that represents a tag.\n * A tag is always removable. If you want a non removable tag, use the StatusLabel component instead.\n */\nexport const Tag = ({\n children,\n type = 'default',\n size = 'medium',\n onClick,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'div', TagProps>) => {\n const classes = classNames(`ndl-tag`, className, {\n 'ndl-destructive': type === 'destructive',\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n });\n\n return (\n <div\n className={classes}\n ref={ref}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <ConditionalWrap\n shouldWrap={type === 'destructive'}\n wrap={(children) => (\n <button type=\"button\" onClick={onClick}>\n {children}\n </button>\n )}\n >\n <span className=\"ndl-tag-content\">{children}</span>\n </ConditionalWrap>\n {type !== 'destructive' && (\n <button\n type=\"button\"\n className=\"ndl-remove-icon\"\n onClick={onClick}\n aria-label=\"Remove tag\"\n >\n <XMarkIconOutline />\n </button>\n )}\n </div>\n );\n};\n"]}
@@ -0,0 +1,25 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { default as TagVariants } from './tag-variants.story';
22
+ import { removeLicenseHeader } from '../../_common/export-stories-utils';
23
+ import TagVariantsSourceRaw from './tag-variants.story?raw';
24
+ export const TagVariantsSource = removeLicenseHeader(TagVariantsSourceRaw);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tag-base/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAE5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as TagVariants } from './tag-variants.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TagVariantsSourceRaw from './tag-variants.story?raw';\n\nexport const TagVariantsSource = removeLicenseHeader(TagVariantsSourceRaw);\n"]}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { DismissibleTag, ReadOnlyTag, SelectableTag } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const Component = () => {
26
+ const [isSelected, setIsSelected] = useState(false);
27
+ return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-8 n-items-start", children: [_jsx(ReadOnlyTag, { children: "Read-only" }), _jsx(DismissibleTag, { onRemove: () => console.info('DismissibleTag onRemove was called'), children: "Dismissible" }), _jsx(SelectableTag, { isSelected: isSelected, onClick: () => setIsSelected(!isSelected), children: "Selectable" })] }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=tag-variants.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-variants.story.js","sourceRoot":"","sources":["../../../../src/tag-base/stories/tag-variants.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,eAAK,SAAS,EAAC,+CAA+C,aAC5D,KAAC,WAAW,4BAAwB,EACpC,KAAC,cAAc,IACb,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,CAAC,4BAGnD,EACjB,KAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,2BAG3B,IACZ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { DismissibleTag, ReadOnlyTag, SelectableTag } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isSelected, setIsSelected] = useState(false);\n\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8 n-items-start\">\n <ReadOnlyTag>Read-only</ReadOnlyTag>\n <DismissibleTag\n onRemove={() => console.info('DismissibleTag onRemove was called')}\n >\n Dismissible\n </DismissibleTag>\n <SelectableTag\n isSelected={isSelected}\n onClick={() => setIsSelected(!isSelected)}\n >\n Selectable\n </SelectableTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -38,12 +38,14 @@ type AvatarProps = {
38
38
  status?: 'offline' | 'online' | 'unknown';
39
39
  /** The type of avatar content. If `type="image"` and no source is provided, automatically falls back to `icon` */
40
40
  type?: 'icon' | 'image' | 'letters';
41
+ /** Custom icon to display when `type` is `"icon"`. Defaults to `UserIconOutline` */
42
+ icon?: React.ReactNode;
41
43
  } & ({
42
44
  as: 'button';
43
45
  onClick: () => void;
44
46
  } | {
45
47
  as?: React.ElementType;
46
48
  });
47
- export declare const Avatar: <T extends React.ElementType = "div">({ as, hasStatus, isDisabled, name, shape, size, source, status, type: initialType, className, style, htmlAttributes, ref, ...restProps }: PolymorphicCommonProps<T, AvatarProps>) => import("react/jsx-runtime").JSX.Element;
49
+ export declare const Avatar: <T extends React.ElementType = "div">({ as, hasStatus, icon, isDisabled, name, shape, size, source, status, type: initialType, className, style, htmlAttributes, ref, ...restProps }: PolymorphicCommonProps<T, AvatarProps>) => import("react/jsx-runtime").JSX.Element;
48
50
  export {};
49
51
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,s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