@neo4j-ndl/react 4.9.47 → 4.10.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 (103) hide show
  1. package/lib/cjs/dismissible-tag/DismissibleTag.js +46 -0
  2. package/lib/cjs/dismissible-tag/DismissibleTag.js.map +1 -0
  3. package/lib/cjs/dismissible-tag/index.js +26 -0
  4. package/lib/cjs/dismissible-tag/index.js.map +1 -0
  5. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js +33 -0
  6. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -0
  7. package/lib/cjs/dismissible-tag/stories/dismissible-tag-default.story.js +30 -0
  8. package/lib/cjs/dismissible-tag/stories/dismissible-tag-default.story.js.map +1 -0
  9. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +33 -0
  10. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -0
  11. package/lib/cjs/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.js +31 -0
  12. package/lib/cjs/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.js.map +1 -0
  13. package/lib/cjs/dismissible-tag/stories/index.js +44 -0
  14. package/lib/cjs/dismissible-tag/stories/index.js.map +1 -0
  15. package/lib/cjs/index.js +5 -1
  16. package/lib/cjs/index.js.map +1 -1
  17. package/lib/cjs/read-only-tag/ReadOnlyTag.js +43 -0
  18. package/lib/cjs/read-only-tag/ReadOnlyTag.js.map +1 -0
  19. package/lib/cjs/read-only-tag/index.js +26 -0
  20. package/lib/cjs/read-only-tag/index.js.map +1 -0
  21. package/lib/cjs/read-only-tag/stories/index.js +44 -0
  22. package/lib/cjs/read-only-tag/stories/index.js.map +1 -0
  23. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js +30 -0
  24. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -0
  25. package/lib/cjs/read-only-tag/stories/read-only-tag-default.story.js +30 -0
  26. package/lib/cjs/read-only-tag/stories/read-only-tag-default.story.js.map +1 -0
  27. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +30 -0
  28. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -0
  29. package/lib/cjs/read-only-tag/stories/read-only-tag-with-leading-icon.story.js +31 -0
  30. package/lib/cjs/read-only-tag/stories/read-only-tag-with-leading-icon.story.js.map +1 -0
  31. package/lib/cjs/tag-base/TagBase.js +98 -0
  32. package/lib/cjs/tag-base/TagBase.js.map +1 -0
  33. package/lib/cjs/tag-base/index.js +38 -0
  34. package/lib/cjs/tag-base/index.js.map +1 -0
  35. package/lib/esm/dismissible-tag/DismissibleTag.js +42 -0
  36. package/lib/esm/dismissible-tag/DismissibleTag.js.map +1 -0
  37. package/lib/esm/dismissible-tag/index.js +22 -0
  38. package/lib/esm/dismissible-tag/index.js.map +1 -0
  39. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js +31 -0
  40. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -0
  41. package/lib/esm/dismissible-tag/stories/dismissible-tag-default.story.js +28 -0
  42. package/lib/esm/dismissible-tag/stories/dismissible-tag-default.story.js.map +1 -0
  43. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +31 -0
  44. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -0
  45. package/lib/esm/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.js +29 -0
  46. package/lib/esm/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.js.map +1 -0
  47. package/lib/esm/dismissible-tag/stories/index.js +34 -0
  48. package/lib/esm/dismissible-tag/stories/index.js.map +1 -0
  49. package/lib/esm/index.js +2 -0
  50. package/lib/esm/index.js.map +1 -1
  51. package/lib/esm/read-only-tag/ReadOnlyTag.js +39 -0
  52. package/lib/esm/read-only-tag/ReadOnlyTag.js.map +1 -0
  53. package/lib/esm/read-only-tag/index.js +22 -0
  54. package/lib/esm/read-only-tag/index.js.map +1 -0
  55. package/lib/esm/read-only-tag/stories/index.js +34 -0
  56. package/lib/esm/read-only-tag/stories/index.js.map +1 -0
  57. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js +28 -0
  58. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -0
  59. package/lib/esm/read-only-tag/stories/read-only-tag-default.story.js +28 -0
  60. package/lib/esm/read-only-tag/stories/read-only-tag-default.story.js.map +1 -0
  61. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +28 -0
  62. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -0
  63. package/lib/esm/read-only-tag/stories/read-only-tag-with-leading-icon.story.js +29 -0
  64. package/lib/esm/read-only-tag/stories/read-only-tag-with-leading-icon.story.js.map +1 -0
  65. package/lib/esm/tag-base/TagBase.js +91 -0
  66. package/lib/esm/tag-base/TagBase.js.map +1 -0
  67. package/lib/esm/tag-base/index.js +22 -0
  68. package/lib/esm/tag-base/index.js.map +1 -0
  69. package/lib/types/dismissible-tag/DismissibleTag.d.ts +38 -0
  70. package/lib/types/dismissible-tag/DismissibleTag.d.ts.map +1 -0
  71. package/lib/types/dismissible-tag/index.d.ts +22 -0
  72. package/lib/types/dismissible-tag/index.d.ts.map +1 -0
  73. package/lib/types/dismissible-tag/stories/dismissible-tag-colors.story.d.ts +24 -0
  74. package/lib/types/dismissible-tag/stories/dismissible-tag-colors.story.d.ts.map +1 -0
  75. package/lib/types/dismissible-tag/stories/dismissible-tag-default.story.d.ts +24 -0
  76. package/lib/types/dismissible-tag/stories/dismissible-tag-default.story.d.ts.map +1 -0
  77. package/lib/types/dismissible-tag/stories/dismissible-tag-sizes.story.d.ts +24 -0
  78. package/lib/types/dismissible-tag/stories/dismissible-tag-sizes.story.d.ts.map +1 -0
  79. package/lib/types/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.d.ts +24 -0
  80. package/lib/types/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.d.ts.map +1 -0
  81. package/lib/types/dismissible-tag/stories/index.d.ts +29 -0
  82. package/lib/types/dismissible-tag/stories/index.d.ts.map +1 -0
  83. package/lib/types/index.d.ts +2 -0
  84. package/lib/types/index.d.ts.map +1 -1
  85. package/lib/types/read-only-tag/ReadOnlyTag.d.ts +36 -0
  86. package/lib/types/read-only-tag/ReadOnlyTag.d.ts.map +1 -0
  87. package/lib/types/read-only-tag/index.d.ts +22 -0
  88. package/lib/types/read-only-tag/index.d.ts.map +1 -0
  89. package/lib/types/read-only-tag/stories/index.d.ts +29 -0
  90. package/lib/types/read-only-tag/stories/index.d.ts.map +1 -0
  91. package/lib/types/read-only-tag/stories/read-only-tag-colors.story.d.ts +24 -0
  92. package/lib/types/read-only-tag/stories/read-only-tag-colors.story.d.ts.map +1 -0
  93. package/lib/types/read-only-tag/stories/read-only-tag-default.story.d.ts +24 -0
  94. package/lib/types/read-only-tag/stories/read-only-tag-default.story.d.ts.map +1 -0
  95. package/lib/types/read-only-tag/stories/read-only-tag-sizes.story.d.ts +24 -0
  96. package/lib/types/read-only-tag/stories/read-only-tag-sizes.story.d.ts.map +1 -0
  97. package/lib/types/read-only-tag/stories/read-only-tag-with-leading-icon.story.d.ts +24 -0
  98. package/lib/types/read-only-tag/stories/read-only-tag-with-leading-icon.story.d.ts.map +1 -0
  99. package/lib/types/tag-base/TagBase.d.ts +46 -0
  100. package/lib/types/tag-base/TagBase.d.ts.map +1 -0
  101. package/lib/types/tag-base/index.d.ts +22 -0
  102. package/lib/types/tag-base/index.d.ts.map +1 -0
  103. package/package.json +2 -2
@@ -0,0 +1,46 @@
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
+
22
+ "use strict";
23
+ var __rest = (this && this.__rest) || function (s, e) {
24
+ var t = {};
25
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
26
+ t[p] = s[p];
27
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
28
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
29
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
30
+ t[p[i]] = s[p[i]];
31
+ }
32
+ return t;
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.DismissibleTag = void 0;
36
+ const jsx_runtime_1 = require("react/jsx-runtime");
37
+ const react_1 = require("react");
38
+ const icons_1 = require("../icons");
39
+ const tag_base_1 = require("../tag-base");
40
+ const DismissibleTag = (_a) => {
41
+ var { size = 'medium', color, children, htmlAttributes, leadingVisual, onRemove } = _a, restProps = __rest(_a, ["size", "color", "children", "htmlAttributes", "leadingVisual", "onRemove"]);
42
+ const contentId = (0, react_1.useId)();
43
+ return ((0, jsx_runtime_1.jsx)(tag_base_1.TagBase, Object.assign({ color: color, contentId: contentId, htmlAttributes: htmlAttributes, leadingVisual: leadingVisual, size: size, trailingContent: (0, jsx_runtime_1.jsx)("button", { type: "button", className: "ndl-remove-icon", onClick: onRemove, "aria-describedby": contentId, "aria-label": "Remove", children: (0, jsx_runtime_1.jsx)(icons_1.XMarkIconOutline, {}) }) }, restProps, { children: children })));
44
+ };
45
+ exports.DismissibleTag = DismissibleTag;
46
+ //# sourceMappingURL=DismissibleTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DismissibleTag.js","sourceRoot":"","sources":["../../../src/dismissible-tag/DismissibleTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqBA,iCAA8B;AAG9B,oCAA4C;AAE5C,0CAAsC;AAe/B,MAAM,cAAc,GAAG,CAAC,EAQW,EAAE,EAAE;QARf,EAC7B,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,QAAQ,EACR,cAAc,EACd,aAAa,EACb,QAAQ,OAEgC,EADrC,SAAS,cAPiB,4EAQ9B,CADa;IAEZ,MAAM,SAAS,GAAG,IAAA,aAAK,GAAE,CAAC;IAE1B,OAAO,CACL,uBAAC,kBAAO,kBACN,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI,EACV,eAAe,EACb,mCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,QAAQ,sBACC,SAAS,gBAChB,QAAQ,YAEnB,uBAAC,wBAAgB,KAAG,GACb,IAEP,SAAS,cAEZ,QAAQ,IACD,CACX,CAAC;AACJ,CAAC,CAAC;AAlCW,QAAA,cAAc,kBAkCzB","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 type React from 'react';\nimport { useId } from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport { XMarkIconOutline } from '../icons';\nimport type { TagColor, TagSize } from '../tag-base';\nimport { TagBase } from '../tag-base';\n\ninterface DismissibleTagProps {\n /** Categorical color for the background */\n color?: TagColor;\n /** The content of the tag */\n children?: React.ReactNode;\n /** Icon to display before the content */\n leadingVisual?: React.ReactNode;\n /** Size of the tag */\n size?: TagSize;\n /** Callback function triggered when tag should be removed. */\n onRemove: React.MouseEventHandler<HTMLButtonElement>;\n}\n\nexport const DismissibleTag = ({\n size = 'medium',\n color,\n children,\n htmlAttributes,\n leadingVisual,\n onRemove,\n ...restProps\n}: CommonProps<'div', DismissibleTagProps>) => {\n const contentId = useId();\n\n return (\n <TagBase\n color={color}\n contentId={contentId}\n htmlAttributes={htmlAttributes}\n leadingVisual={leadingVisual}\n size={size}\n trailingContent={\n <button\n type=\"button\"\n className=\"ndl-remove-icon\"\n onClick={onRemove}\n aria-describedby={contentId}\n aria-label=\"Remove\"\n >\n <XMarkIconOutline />\n </button>\n }\n {...restProps}\n >\n {children}\n </TagBase>\n );\n};\n"]}
@@ -0,0 +1,26 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.DismissibleTag = void 0;
24
+ var DismissibleTag_1 = require("./DismissibleTag");
25
+ Object.defineProperty(exports, "DismissibleTag", { enumerable: true, get: function () { return DismissibleTag_1.DismissibleTag; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dismissible-tag/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,mDAAkD;AAAzC,gHAAA,cAAc,OAAA","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 { DismissibleTag } from './DismissibleTag';\n"]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ const handleRemove = () => {
28
+ console.info('onRemove was called');
29
+ };
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "1", onRemove: handleRemove, children: "Categorical color 1" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "2", onRemove: handleRemove, children: "Categorical color 2" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "3", onRemove: handleRemove, children: "Categorical color 3" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "4", onRemove: handleRemove, children: "Categorical color 4" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "5", onRemove: handleRemove, children: "Categorical color 5" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "6", onRemove: handleRemove, children: "Categorical color 6" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "7", onRemove: handleRemove, children: "Categorical color 7" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { color: "8", onRemove: handleRemove, children: "Categorical color 8" })] }));
31
+ };
32
+ exports.default = Component;
33
+ //# sourceMappingURL=dismissible-tag-colors.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dismissible-tag-colors.story.js","sourceRoot":"","sources":["../../../../src/dismissible-tag/stories/dismissible-tag-colors.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkD;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,EACjB,uBAAC,sBAAc,IAAC,KAAK,EAAC,GAAG,EAAC,QAAQ,EAAE,YAAY,oCAE/B,IACb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,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 } from '@neo4j-ndl/react';\n\nconst Component = () => {\n const handleRemove = () => {\n console.info('onRemove was called');\n };\n\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <DismissibleTag color=\"1\" onRemove={handleRemove}>\n Categorical color 1\n </DismissibleTag>\n <DismissibleTag color=\"2\" onRemove={handleRemove}>\n Categorical color 2\n </DismissibleTag>\n <DismissibleTag color=\"3\" onRemove={handleRemove}>\n Categorical color 3\n </DismissibleTag>\n <DismissibleTag color=\"4\" onRemove={handleRemove}>\n Categorical color 4\n </DismissibleTag>\n <DismissibleTag color=\"5\" onRemove={handleRemove}>\n Categorical color 5\n </DismissibleTag>\n <DismissibleTag color=\"6\" onRemove={handleRemove}>\n Categorical color 6\n </DismissibleTag>\n <DismissibleTag color=\"7\" onRemove={handleRemove}>\n Categorical color 7\n </DismissibleTag>\n <DismissibleTag color=\"8\" onRemove={handleRemove}>\n Categorical color 8\n </DismissibleTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { onRemove: () => console.info('onRemove was called'), children: "Dismissible Tag" }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=dismissible-tag-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dismissible-tag-default.story.js","sourceRoot":"","sources":["../../../../src/dismissible-tag/stories/dismissible-tag-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkD;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,sBAAc,IAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,gCAElD,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,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 } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <DismissibleTag onRemove={() => console.info('onRemove was called')}>\n Dismissible Tag\n </DismissibleTag>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ const handleRemove = () => {
28
+ console.info('onRemove was called');
29
+ };
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { size: "x-small", onRemove: handleRemove, children: "X-Small" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { size: "small", onRemove: handleRemove, children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { size: "medium", onRemove: handleRemove, children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { size: "large", onRemove: handleRemove, children: "Large" })] }));
31
+ };
32
+ exports.default = Component;
33
+ //# sourceMappingURL=dismissible-tag-sizes.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dismissible-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/dismissible-tag/stories/dismissible-tag-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkD;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,sBAAc,IAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAE,YAAY,wBAEpC,EACjB,uBAAC,sBAAc,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,YAAY,sBAElC,EACjB,uBAAC,sBAAc,IAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,YAAY,uBAEnC,EACjB,uBAAC,sBAAc,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,YAAY,sBAElC,IACb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,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 } from '@neo4j-ndl/react';\n\nconst Component = () => {\n const handleRemove = () => {\n console.info('onRemove was called');\n };\n\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <DismissibleTag size=\"x-small\" onRemove={handleRemove}>\n X-Small\n </DismissibleTag>\n <DismissibleTag size=\"small\" onRemove={handleRemove}>\n Small\n </DismissibleTag>\n <DismissibleTag size=\"medium\" onRemove={handleRemove}>\n Medium\n </DismissibleTag>\n <DismissibleTag size=\"large\" onRemove={handleRemove}>\n Large\n </DismissibleTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const icons_1 = require("@neo4j-ndl/react/icons");
27
+ const Component = () => {
28
+ return ((0, jsx_runtime_1.jsx)(react_1.DismissibleTag, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabasePlusIcon, {}), onRemove: () => console.info('onRemove was called'), children: "Dismissible Tag with leading icon" }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=dismissible-tag-with-leading-icon.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dismissible-tag-with-leading-icon.story.js","sourceRoot":"","sources":["../../../../src/dismissible-tag/stories/dismissible-tag-with-leading-icon.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkD;AAClD,kDAA0D;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,sBAAc,IACb,aAAa,EAAE,uBAAC,wBAAgB,KAAG,EACnC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,kDAGpC,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,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 } from '@neo4j-ndl/react';\nimport { DatabasePlusIcon } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <DismissibleTag\n leadingVisual={<DatabasePlusIcon />}\n onRemove={() => console.info('onRemove was called')}\n >\n Dismissible Tag with leading icon\n </DismissibleTag>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,44 @@
1
+ "use strict";
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.DismissibleTagWithLeadingIconSrc = exports.DismissibleTagColorsSrc = exports.DismissibleTagSizesSrc = exports.DismissibleTagDefaultSrc = exports.DismissibleTagColors = exports.DismissibleTagWithLeadingIcon = exports.DismissibleTagSizes = exports.DismissibleTagDefault = void 0;
27
+ var dismissible_tag_default_story_1 = require("./dismissible-tag-default.story");
28
+ Object.defineProperty(exports, "DismissibleTagDefault", { enumerable: true, get: function () { return __importDefault(dismissible_tag_default_story_1).default; } });
29
+ var dismissible_tag_sizes_story_1 = require("./dismissible-tag-sizes.story");
30
+ Object.defineProperty(exports, "DismissibleTagSizes", { enumerable: true, get: function () { return __importDefault(dismissible_tag_sizes_story_1).default; } });
31
+ var dismissible_tag_with_leading_icon_story_1 = require("./dismissible-tag-with-leading-icon.story");
32
+ Object.defineProperty(exports, "DismissibleTagWithLeadingIcon", { enumerable: true, get: function () { return __importDefault(dismissible_tag_with_leading_icon_story_1).default; } });
33
+ var dismissible_tag_colors_story_1 = require("./dismissible-tag-colors.story");
34
+ Object.defineProperty(exports, "DismissibleTagColors", { enumerable: true, get: function () { return __importDefault(dismissible_tag_colors_story_1).default; } });
35
+ const export_stories_utils_1 = require("../../_common/export-stories-utils");
36
+ const dismissible_tag_colors_story_raw_1 = __importDefault(require("./dismissible-tag-colors.story?raw"));
37
+ const dismissible_tag_default_story_raw_1 = __importDefault(require("./dismissible-tag-default.story?raw"));
38
+ const dismissible_tag_sizes_story_raw_1 = __importDefault(require("./dismissible-tag-sizes.story?raw"));
39
+ const dismissible_tag_with_leading_icon_story_raw_1 = __importDefault(require("./dismissible-tag-with-leading-icon.story?raw"));
40
+ exports.DismissibleTagDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(dismissible_tag_default_story_raw_1.default);
41
+ exports.DismissibleTagSizesSrc = (0, export_stories_utils_1.removeLicenseHeader)(dismissible_tag_sizes_story_raw_1.default);
42
+ exports.DismissibleTagColorsSrc = (0, export_stories_utils_1.removeLicenseHeader)(dismissible_tag_colors_story_raw_1.default);
43
+ exports.DismissibleTagWithLeadingIconSrc = (0, export_stories_utils_1.removeLicenseHeader)(dismissible_tag_with_leading_icon_story_raw_1.default);
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dismissible-tag/stories/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,6EAA+E;AAAtE,mJAAA,OAAO,OAAuB;AACvC,qGAAqG;AAA5F,yKAAA,OAAO,OAAiC;AACjD,+EAAiF;AAAxE,qJAAA,OAAO,OAAwB;AAExC,6EAAyE;AACzE,0GAA4E;AAC5E,4GAA8E;AAC9E,wGAA0E;AAC1E,gIAAgG;AAEnF,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,2CAA2B,CAC5B,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,yCAAyB,CAC1B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,0CAA0B,CAC3B,CAAC;AACW,QAAA,gCAAgC,GAAG,IAAA,0CAAmB,EACjE,qDAAmC,CACpC,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 DismissibleTagDefault } from './dismissible-tag-default.story';\nexport { default as DismissibleTagSizes } from './dismissible-tag-sizes.story';\nexport { default as DismissibleTagWithLeadingIcon } from './dismissible-tag-with-leading-icon.story';\nexport { default as DismissibleTagColors } from './dismissible-tag-colors.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport DismissibleTagColorsSrcRaw from './dismissible-tag-colors.story?raw';\nimport DismissibleTagDefaultSrcRaw from './dismissible-tag-default.story?raw';\nimport DismissibleTagSizesSrcRaw from './dismissible-tag-sizes.story?raw';\nimport DismissibleTagWithLeadingIconSrcRaw from './dismissible-tag-with-leading-icon.story?raw';\n\nexport const DismissibleTagDefaultSrc = removeLicenseHeader(\n DismissibleTagDefaultSrcRaw,\n);\nexport const DismissibleTagSizesSrc = removeLicenseHeader(\n DismissibleTagSizesSrcRaw,\n);\nexport const DismissibleTagColorsSrc = removeLicenseHeader(\n DismissibleTagColorsSrcRaw,\n);\nexport const DismissibleTagWithLeadingIconSrc = removeLicenseHeader(\n DismissibleTagWithLeadingIconSrcRaw,\n);\n"]}
package/lib/cjs/index.js CHANGED
@@ -35,7 +35,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TimeZonePicker = exports.NeedleTime = exports.TimePicker = exports.Skeleton = exports.Tooltip = exports.toast = exports.Toaster = exports.ToasterControlled = exports.Divider = exports.DropdownButton = exports.InlineEdit = exports.Slider = exports.ClipboardButton = exports.Logo = exports.Avatar = exports.Flex = exports.Box = exports.Breadcrumbs = exports.Drawer = exports.Typography = exports.SideNavigation = exports.StatusIndicator = exports.CodeBlock = exports.GraphLabel = exports.Wizard = exports.Tag = exports.Select = exports.TextLink = exports.TextArea = exports.TextInput = exports.DataGridNav = exports.dataGridUtils = exports.useTableNav = exports.useDataGridContext = exports.DataGrid = exports.Dropzone = exports.ProgressBar = exports.Popover = exports.SegmentedControl = exports.Tabs = exports.LoadingSpinner = exports.Dialog = exports.DatePicker = exports.Menu = exports.Radio = exports.Switch = exports.Checkbox = exports.Banner = exports.StatusLabel = exports.Accordion = void 0;
38
- exports.SelectIconButton = exports.Kbd = exports.Code = exports.TextButton = exports.FilledButton = exports.OutlinedButton = exports.ColorPicker = exports.ConditionalWrap = exports.IconButtonArray = exports.CleanIconButton = exports.IconButton = exports.LoadingBar = exports.useSpotlightContext = exports.SpotlightTour = exports.SpotlightTarget = exports.SpotlightProvider = exports.Spotlight = void 0;
38
+ exports.DismissibleTag = exports.ReadOnlyTag = exports.SelectIconButton = exports.Kbd = exports.Code = exports.TextButton = exports.FilledButton = exports.OutlinedButton = exports.ColorPicker = exports.ConditionalWrap = exports.IconButtonArray = exports.CleanIconButton = exports.IconButton = exports.LoadingBar = exports.useSpotlightContext = exports.SpotlightTour = exports.SpotlightTarget = exports.SpotlightProvider = exports.Spotlight = void 0;
39
39
  var accordion_1 = require("./accordion");
40
40
  Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return accordion_1.Accordion; } });
41
41
  var status_label_1 = require("./status-label");
@@ -162,4 +162,8 @@ var kbd_1 = require("./kbd");
162
162
  Object.defineProperty(exports, "Kbd", { enumerable: true, get: function () { return kbd_1.Kbd; } });
163
163
  var select_icon_button_1 = require("./select-icon-button");
164
164
  Object.defineProperty(exports, "SelectIconButton", { enumerable: true, get: function () { return select_icon_button_1.SelectIconButton; } });
165
+ var read_only_tag_1 = require("./read-only-tag");
166
+ Object.defineProperty(exports, "ReadOnlyTag", { enumerable: true, get: function () { return read_only_tag_1.ReadOnlyTag; } });
167
+ var dismissible_tag_1 = require("./dismissible-tag");
168
+ Object.defineProperty(exports, "DismissibleTag", { enumerable: true, get: function () { return dismissible_tag_1.DismissibleTag; } });
165
169
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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","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';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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","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';\n"]}
@@ -0,0 +1,43 @@
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
+
22
+ "use strict";
23
+ var __rest = (this && this.__rest) || function (s, e) {
24
+ var t = {};
25
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
26
+ t[p] = s[p];
27
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
28
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
29
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
30
+ t[p[i]] = s[p[i]];
31
+ }
32
+ return t;
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.ReadOnlyTag = void 0;
36
+ const jsx_runtime_1 = require("react/jsx-runtime");
37
+ const tag_base_1 = require("../tag-base");
38
+ const ReadOnlyTag = (_a) => {
39
+ var { color, children, htmlAttributes, leadingVisual, size } = _a, restProps = __rest(_a, ["color", "children", "htmlAttributes", "leadingVisual", "size"]);
40
+ return ((0, jsx_runtime_1.jsx)(tag_base_1.TagBase, Object.assign({ color: color, htmlAttributes: htmlAttributes, leadingVisual: leadingVisual, size: size }, restProps, { children: children })));
41
+ };
42
+ exports.ReadOnlyTag = ReadOnlyTag;
43
+ //# sourceMappingURL=ReadOnlyTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadOnlyTag.js","sourceRoot":"","sources":["../../../src/read-only-tag/ReadOnlyTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwBA,0CAAsC;AAa/B,MAAM,WAAW,GAAG,CAAC,EAOW,EAAE,EAAE;QAPf,EAC1B,KAAK,EACL,QAAQ,EACR,cAAc,EACd,aAAa,EACb,IAAI,OAEiC,EADlC,SAAS,cANc,gEAO3B,CADa;IAEZ,OAAO,CACL,uBAAC,kBAAO,kBACN,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI,IACN,SAAS,cAEZ,QAAQ,IACD,CACX,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,WAAW,eAmBtB","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 type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport type { TagColor, TagSize } from '../tag-base';\nimport { TagBase } from '../tag-base';\n\ninterface ReadOnlyTagProps {\n /** Categorical color for the background */\n color?: TagColor;\n /** The content of the tag */\n children?: React.ReactNode;\n /** Icon to display before the content */\n leadingVisual?: React.ReactNode;\n /** Size of the tag */\n size?: TagSize;\n}\n\nexport const ReadOnlyTag = ({\n color,\n children,\n htmlAttributes,\n leadingVisual,\n size,\n ...restProps\n}: CommonProps<'div', ReadOnlyTagProps>) => {\n return (\n <TagBase\n color={color}\n htmlAttributes={htmlAttributes}\n leadingVisual={leadingVisual}\n size={size}\n {...restProps}\n >\n {children}\n </TagBase>\n );\n};\n"]}
@@ -0,0 +1,26 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.ReadOnlyTag = void 0;
24
+ var ReadOnlyTag_1 = require("./ReadOnlyTag");
25
+ Object.defineProperty(exports, "ReadOnlyTag", { enumerable: true, get: function () { return ReadOnlyTag_1.ReadOnlyTag; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/read-only-tag/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,6CAA4C;AAAnC,0GAAA,WAAW,OAAA","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 { ReadOnlyTag } from './ReadOnlyTag';\n"]}
@@ -0,0 +1,44 @@
1
+ "use strict";
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ReadOnlyTagWithLeadingIconSrc = exports.ReadOnlyTagColorsSrc = exports.ReadOnlyTagSizesSrc = exports.ReadOnlyTagDefaultSrc = exports.ReadOnlyTagColors = exports.ReadOnlyTagWithLeadingIcon = exports.ReadOnlyTagSizes = exports.ReadOnlyTagDefault = void 0;
27
+ var read_only_tag_default_story_1 = require("./read-only-tag-default.story");
28
+ Object.defineProperty(exports, "ReadOnlyTagDefault", { enumerable: true, get: function () { return __importDefault(read_only_tag_default_story_1).default; } });
29
+ var read_only_tag_sizes_story_1 = require("./read-only-tag-sizes.story");
30
+ Object.defineProperty(exports, "ReadOnlyTagSizes", { enumerable: true, get: function () { return __importDefault(read_only_tag_sizes_story_1).default; } });
31
+ var read_only_tag_with_leading_icon_story_1 = require("./read-only-tag-with-leading-icon.story");
32
+ Object.defineProperty(exports, "ReadOnlyTagWithLeadingIcon", { enumerable: true, get: function () { return __importDefault(read_only_tag_with_leading_icon_story_1).default; } });
33
+ var read_only_tag_colors_story_1 = require("./read-only-tag-colors.story");
34
+ Object.defineProperty(exports, "ReadOnlyTagColors", { enumerable: true, get: function () { return __importDefault(read_only_tag_colors_story_1).default; } });
35
+ const export_stories_utils_1 = require("../../_common/export-stories-utils");
36
+ const read_only_tag_colors_story_raw_1 = __importDefault(require("./read-only-tag-colors.story?raw"));
37
+ const read_only_tag_default_story_raw_1 = __importDefault(require("./read-only-tag-default.story?raw"));
38
+ const read_only_tag_sizes_story_raw_1 = __importDefault(require("./read-only-tag-sizes.story?raw"));
39
+ const read_only_tag_with_leading_icon_story_raw_1 = __importDefault(require("./read-only-tag-with-leading-icon.story?raw"));
40
+ exports.ReadOnlyTagDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(read_only_tag_default_story_raw_1.default);
41
+ exports.ReadOnlyTagSizesSrc = (0, export_stories_utils_1.removeLicenseHeader)(read_only_tag_sizes_story_raw_1.default);
42
+ exports.ReadOnlyTagColorsSrc = (0, export_stories_utils_1.removeLicenseHeader)(read_only_tag_colors_story_raw_1.default);
43
+ exports.ReadOnlyTagWithLeadingIconSrc = (0, export_stories_utils_1.removeLicenseHeader)(read_only_tag_with_leading_icon_story_raw_1.default);
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,6EAA8E;AAArE,kJAAA,OAAO,OAAsB;AACtC,yEAA0E;AAAjE,8IAAA,OAAO,OAAoB;AACpC,iGAAgG;AAAvF,oKAAA,OAAO,OAA8B;AAC9C,2EAA4E;AAAnE,gJAAA,OAAO,OAAqB;AAErC,6EAAyE;AACzE,sGAAuE;AACvE,wGAAyE;AACzE,oGAAqE;AACrE,4HAA2F;AAE9E,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,yCAAwB,CACzB,CAAC;AACW,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,uCAAsB,CAAC,CAAC;AAClE,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,wCAAuB,CACxB,CAAC;AACW,QAAA,6BAA6B,GAAG,IAAA,0CAAmB,EAC9D,mDAAgC,CACjC,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 ReadOnlyTagDefault } from './read-only-tag-default.story';\nexport { default as ReadOnlyTagSizes } from './read-only-tag-sizes.story';\nexport { default as ReadOnlyTagWithLeadingIcon } from './read-only-tag-with-leading-icon.story';\nexport { default as ReadOnlyTagColors } from './read-only-tag-colors.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport ReadOnlyTagColorsSrcRaw from './read-only-tag-colors.story?raw';\nimport ReadOnlyTagDefaultSrcRaw from './read-only-tag-default.story?raw';\nimport ReadOnlyTagSizesSrcRaw from './read-only-tag-sizes.story?raw';\nimport ReadOnlyTagWithLeadingIconSrcRaw from './read-only-tag-with-leading-icon.story?raw';\n\nexport const ReadOnlyTagDefaultSrc = removeLicenseHeader(\n ReadOnlyTagDefaultSrcRaw,\n);\nexport const ReadOnlyTagSizesSrc = removeLicenseHeader(ReadOnlyTagSizesSrcRaw);\nexport const ReadOnlyTagColorsSrc = removeLicenseHeader(\n ReadOnlyTagColorsSrcRaw,\n);\nexport const ReadOnlyTagWithLeadingIconSrc = removeLicenseHeader(\n ReadOnlyTagWithLeadingIconSrcRaw,\n);\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "1", children: "Categorical color 1" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "2", children: "Categorical color 2" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "3", children: "Categorical color 3" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "4", children: "Categorical color 4" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "5", children: "Categorical color 5" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "6", children: "Categorical color 6" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "7", children: "Categorical color 7" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "8", children: "Categorical color 8" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=read-only-tag-colors.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-only-tag-colors.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-colors.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,IACpD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,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-col n-gap-token-16\">\n <ReadOnlyTag color=\"1\">Categorical color 1</ReadOnlyTag>\n <ReadOnlyTag color=\"2\">Categorical color 2</ReadOnlyTag>\n <ReadOnlyTag color=\"3\">Categorical color 3</ReadOnlyTag>\n <ReadOnlyTag color=\"4\">Categorical color 4</ReadOnlyTag>\n <ReadOnlyTag color=\"5\">Categorical color 5</ReadOnlyTag>\n <ReadOnlyTag color=\"6\">Categorical color 6</ReadOnlyTag>\n <ReadOnlyTag color=\"7\">Categorical color 7</ReadOnlyTag>\n <ReadOnlyTag color=\"8\">Categorical color 8</ReadOnlyTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { children: "Read-only Tag" });
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=read-only-tag-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-only-tag-default.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,mBAAW,gCAA4B,CAAC;AAClD,CAAC,CAAC;AAEF,kBAAe,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 <ReadOnlyTag>Read-only Tag</ReadOnlyTag>;\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-16 n-items-start", children: [(0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "x-small", children: "X-Small" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "small", children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "medium", children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "large", children: "Large" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=read-only-tag-sizes.story.js.map