@neo4j-ndl/react 5.3.0 → 5.3.2

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 (62) hide show
  1. package/lib/LICENSES.txt +3 -3
  2. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js +0 -1
  3. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  4. package/lib/cjs/checkbox/stories/checkbox-fluid.story.js +30 -0
  5. package/lib/cjs/checkbox/stories/checkbox-fluid.story.js.map +1 -0
  6. package/lib/cjs/checkbox/stories/index.js +5 -1
  7. package/lib/cjs/checkbox/stories/index.js.map +1 -1
  8. package/lib/cjs/code/Code.js +2 -1
  9. package/lib/cjs/code/Code.js.map +1 -1
  10. package/lib/cjs/data-grid/data-grid-nav/keys.js +0 -1
  11. package/lib/cjs/data-grid/data-grid-nav/keys.js.map +1 -1
  12. package/lib/cjs/index.js +3 -4
  13. package/lib/cjs/index.js.map +1 -1
  14. package/lib/cjs/loading-bar/LoadingBar.js +2 -2
  15. package/lib/cjs/loading-bar/LoadingBar.js.map +1 -1
  16. package/lib/cjs/loading-spinner/LoadingSpinner.js +2 -2
  17. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  18. package/lib/cjs/progress-bar/ProgressBar.js +1 -1
  19. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  20. package/lib/cjs/tag-base/TagBase.js +8 -8
  21. package/lib/cjs/tag-base/TagBase.js.map +1 -1
  22. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js +0 -1
  23. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  24. package/lib/esm/checkbox/stories/checkbox-fluid.story.js +28 -0
  25. package/lib/esm/checkbox/stories/checkbox-fluid.story.js.map +1 -0
  26. package/lib/esm/checkbox/stories/index.js +3 -0
  27. package/lib/esm/checkbox/stories/index.js.map +1 -1
  28. package/lib/esm/code/Code.js +2 -1
  29. package/lib/esm/code/Code.js.map +1 -1
  30. package/lib/esm/data-grid/data-grid-nav/keys.js +0 -1
  31. package/lib/esm/data-grid/data-grid-nav/keys.js.map +1 -1
  32. package/lib/esm/index.js +1 -1
  33. package/lib/esm/index.js.map +1 -1
  34. package/lib/esm/loading-bar/LoadingBar.js +2 -2
  35. package/lib/esm/loading-bar/LoadingBar.js.map +1 -1
  36. package/lib/esm/loading-spinner/LoadingSpinner.js +2 -2
  37. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  38. package/lib/esm/progress-bar/ProgressBar.js +1 -1
  39. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  40. package/lib/esm/tag-base/TagBase.js +8 -8
  41. package/lib/esm/tag-base/TagBase.js.map +1 -1
  42. package/lib/types/ai/presence/stories/ai-presence-thinking.story.d.ts.map +1 -1
  43. package/lib/types/checkbox/stories/checkbox-fluid.story.d.ts +24 -0
  44. package/lib/types/checkbox/stories/checkbox-fluid.story.d.ts.map +1 -0
  45. package/lib/types/checkbox/stories/index.d.ts +2 -0
  46. package/lib/types/checkbox/stories/index.d.ts.map +1 -1
  47. package/lib/types/code/Code.d.ts.map +1 -1
  48. package/lib/types/data-grid/data-grid-nav/keys.d.ts +0 -1
  49. package/lib/types/data-grid/data-grid-nav/keys.d.ts.map +1 -1
  50. package/lib/types/index.d.ts +1 -1
  51. package/lib/types/index.d.ts.map +1 -1
  52. package/lib/types/loading-bar/LoadingBar.d.ts +4 -1
  53. package/lib/types/loading-bar/LoadingBar.d.ts.map +1 -1
  54. package/lib/types/loading-spinner/LoadingSpinner.d.ts +8 -1
  55. package/lib/types/loading-spinner/LoadingSpinner.d.ts.map +1 -1
  56. package/lib/types/progress-bar/ProgressBar.d.ts.map +1 -1
  57. package/package.json +6 -8
  58. package/skills/ndl-react/SKILL.md +20 -21
  59. package/skills/ndl-react/components/ai/presence.md +0 -1
  60. package/skills/ndl-react/components/loading-bar.md +18 -1
  61. package/skills/ndl-react/components/loading-spinner.md +12 -2
  62. package/skills/ndl-react/references/styling.md +9 -8
package/lib/LICENSES.txt CHANGED
@@ -116,7 +116,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
116
116
 
117
117
  ---
118
118
 
119
- The following software may be included in this product: @babel/helper-string-parser (7.27.1)
119
+ The following software may be included in this product: @babel/helper-string-parser (7.29.7)
120
120
  This software contains the following license and notice below:
121
121
 
122
122
  MIT License
@@ -144,7 +144,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
144
144
 
145
145
  ---
146
146
 
147
- The following software may be included in this product: @babel/helper-validator-identifier (7.28.5)
147
+ The following software may be included in this product: @babel/helper-validator-identifier (7.29.7)
148
148
  This software contains the following license and notice below:
149
149
 
150
150
  MIT License
@@ -281,7 +281,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
281
281
 
282
282
  ---
283
283
 
284
- The following software may be included in this product: @babel/types (7.29.0)
284
+ The following software may be included in this product: @babel/types (7.29.7)
285
285
  This software contains the following license and notice below:
286
286
 
287
287
  MIT License
@@ -23,7 +23,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
23
23
  */
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const ai_1 = require("@neo4j-ndl/react/ai");
26
- // TODO: consider this story when happo is ready
27
26
  const Component = () => {
28
27
  return (0, jsx_runtime_1.jsx)(ai_1.Presence, { isThinking: true, className: "size-token-32" });
29
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ai-presence-thinking.story.js","sourceRoot":"","sources":["../../../../../src/ai/presence/stories/ai-presence-thinking.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,gDAAgD;AAChD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,aAAQ,IAAC,UAAU,QAAC,SAAS,EAAC,eAAe,GAAG,CAAC;AAC3D,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 { Presence } from '@neo4j-ndl/react/ai';\n\n// TODO: consider this story when happo is ready\nconst Component = () => {\n return <Presence isThinking className=\"size-token-32\" />;\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"ai-presence-thinking.story.js","sourceRoot":"","sources":["../../../../../src/ai/presence/stories/ai-presence-thinking.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,aAAQ,IAAC,UAAU,QAAC,SAAS,EAAC,eAAe,GAAG,CAAC;AAC3D,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 { Presence } from '@neo4j-ndl/react/ai';\n\nconst Component = () => {\n return <Presence isThinking className=\"size-token-32\" />;\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.Checkbox, { isFluid: true, label: "Fluid checkbox" });
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=checkbox-fluid.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-fluid.story.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/checkbox-fluid.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,gBAAQ,IAAC,OAAO,QAAC,KAAK,EAAC,gBAAgB,GAAG,CAAC;AACrD,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 { Checkbox } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <Checkbox isFluid label=\"Fluid checkbox\" />;\n};\n\nexport default Component;\n"]}
@@ -23,7 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
23
  return (mod && mod.__esModule) ? mod : { "default": mod };
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.CheckboxControlledSrc = exports.CheckboxHasLabelBeforeSrc = exports.CheckboxFullSrc = exports.CheckboxDisabledSrc = exports.CheckboxNoLabelSrc = exports.CheckboxIndeterminateSrc = exports.CheckboxDefaultSrc = exports.CheckboxControlled = exports.CheckboxFull = exports.CheckboxHasLabelBefore = exports.CheckboxDisabled = exports.CheckboxNoLabel = exports.CheckboxIndeterminate = exports.CheckboxDefault = void 0;
26
+ exports.CheckboxControlledSrc = exports.CheckboxHasLabelBeforeSrc = exports.CheckboxFullSrc = exports.CheckboxFluidSrc = exports.CheckboxDisabledSrc = exports.CheckboxNoLabelSrc = exports.CheckboxIndeterminateSrc = exports.CheckboxDefaultSrc = exports.CheckboxControlled = exports.CheckboxFull = exports.CheckboxHasLabelBefore = exports.CheckboxFluid = exports.CheckboxDisabled = exports.CheckboxNoLabel = exports.CheckboxIndeterminate = exports.CheckboxDefault = void 0;
27
27
  var checkbox_default_story_1 = require("./checkbox-default.story");
28
28
  Object.defineProperty(exports, "CheckboxDefault", { enumerable: true, get: function () { return __importDefault(checkbox_default_story_1).default; } });
29
29
  var checkbox_indeterminate_story_1 = require("./checkbox-indeterminate.story");
@@ -32,6 +32,8 @@ var checkbox_no_label_story_1 = require("./checkbox-no-label.story");
32
32
  Object.defineProperty(exports, "CheckboxNoLabel", { enumerable: true, get: function () { return __importDefault(checkbox_no_label_story_1).default; } });
33
33
  var checkbox_disabled_story_1 = require("./checkbox-disabled.story");
34
34
  Object.defineProperty(exports, "CheckboxDisabled", { enumerable: true, get: function () { return __importDefault(checkbox_disabled_story_1).default; } });
35
+ var checkbox_fluid_story_1 = require("./checkbox-fluid.story");
36
+ Object.defineProperty(exports, "CheckboxFluid", { enumerable: true, get: function () { return __importDefault(checkbox_fluid_story_1).default; } });
35
37
  var checkbox_has_label_before_story_1 = require("./checkbox-has-label-before.story");
36
38
  Object.defineProperty(exports, "CheckboxHasLabelBefore", { enumerable: true, get: function () { return __importDefault(checkbox_has_label_before_story_1).default; } });
37
39
  var checkbox_full_story_1 = require("./checkbox-full.story");
@@ -42,6 +44,7 @@ const export_stories_utils_1 = require("../../_common/export-stories-utils");
42
44
  const checkbox_controlled_story_raw_1 = __importDefault(require("./checkbox-controlled.story?raw"));
43
45
  const checkbox_default_story_raw_1 = __importDefault(require("./checkbox-default.story?raw"));
44
46
  const checkbox_disabled_story_raw_1 = __importDefault(require("./checkbox-disabled.story?raw"));
47
+ const checkbox_fluid_story_raw_1 = __importDefault(require("./checkbox-fluid.story?raw"));
45
48
  const checkbox_full_story_raw_1 = __importDefault(require("./checkbox-full.story?raw"));
46
49
  const checkbox_has_label_before_story_raw_1 = __importDefault(require("./checkbox-has-label-before.story?raw"));
47
50
  const checkbox_indeterminate_story_raw_1 = __importDefault(require("./checkbox-indeterminate.story?raw"));
@@ -50,6 +53,7 @@ exports.CheckboxDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(che
50
53
  exports.CheckboxIndeterminateSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_indeterminate_story_raw_1.default);
51
54
  exports.CheckboxNoLabelSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_no_label_story_raw_1.default);
52
55
  exports.CheckboxDisabledSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_disabled_story_raw_1.default);
56
+ exports.CheckboxFluidSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_fluid_story_raw_1.default);
53
57
  exports.CheckboxFullSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_full_story_raw_1.default);
54
58
  exports.CheckboxHasLabelBeforeSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_has_label_before_story_raw_1.default);
55
59
  exports.CheckboxControlledSrc = (0, export_stories_utils_1.removeLicenseHeader)(checkbox_controlled_story_raw_1.default);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,+EAAkF;AAAzE,sJAAA,OAAO,OAAyB;AACzC,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,qFAAsF;AAA7E,0JAAA,OAAO,OAA0B;AAC1C,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,yEAA4E;AAAnE,gJAAA,OAAO,OAAsB;AAEtC,6EAAyE;AACzE,oGAAuE;AACvE,8FAAiE;AACjE,gGAAmE;AACnE,wFAA2D;AAC3D,gHAAiF;AACjF,0GAA6E;AAC7E,gGAAkE;AAErD,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,oCAAqB,CAAC,CAAC;AAChE,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,0CAA2B,CAC5B,CAAC;AACW,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,qCAAqB,CAAC,CAAC;AAChE,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,qCAAsB,CAAC,CAAC;AAClE,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,iCAAkB,CAAC,CAAC;AAC1D,QAAA,yBAAyB,GAAG,IAAA,0CAAmB,EAC1D,6CAA4B,CAC7B,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,uCAAwB,CACzB,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 CheckboxDefault } from './checkbox-default.story';\nexport { default as CheckboxIndeterminate } from './checkbox-indeterminate.story';\nexport { default as CheckboxNoLabel } from './checkbox-no-label.story';\nexport { default as CheckboxDisabled } from './checkbox-disabled.story';\nexport { default as CheckboxHasLabelBefore } from './checkbox-has-label-before.story';\nexport { default as CheckboxFull } from './checkbox-full.story';\nexport { default as CheckboxControlled } from './checkbox-controlled.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport CheckboxControlledSrcRaw from './checkbox-controlled.story?raw';\nimport CheckboxDefaultSrcRaw from './checkbox-default.story?raw';\nimport CheckboxDisabledSrcRaw from './checkbox-disabled.story?raw';\nimport CheckboxFullSrcRaw from './checkbox-full.story?raw';\nimport CheckboxHasLabelBeforeSrcRaw from './checkbox-has-label-before.story?raw';\nimport CheckboxIndeterminateSrcRaw from './checkbox-indeterminate.story?raw';\nimport CheckboxNoLabelSrcRaw from './checkbox-no-label.story?raw';\n\nexport const CheckboxDefaultSrc = removeLicenseHeader(CheckboxDefaultSrcRaw);\nexport const CheckboxIndeterminateSrc = removeLicenseHeader(\n CheckboxIndeterminateSrcRaw,\n);\nexport const CheckboxNoLabelSrc = removeLicenseHeader(CheckboxNoLabelSrcRaw);\nexport const CheckboxDisabledSrc = removeLicenseHeader(CheckboxDisabledSrcRaw);\nexport const CheckboxFullSrc = removeLicenseHeader(CheckboxFullSrcRaw);\nexport const CheckboxHasLabelBeforeSrc = removeLicenseHeader(\n CheckboxHasLabelBeforeSrcRaw,\n);\nexport const CheckboxControlledSrc = removeLicenseHeader(\n CheckboxControlledSrcRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,+EAAkF;AAAzE,sJAAA,OAAO,OAAyB;AACzC,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,qFAAsF;AAA7E,0JAAA,OAAO,OAA0B;AAC1C,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,yEAA4E;AAAnE,gJAAA,OAAO,OAAsB;AAEtC,6EAAyE;AACzE,oGAAuE;AACvE,8FAAiE;AACjE,gGAAmE;AACnE,0FAA6D;AAC7D,wFAA2D;AAC3D,gHAAiF;AACjF,0GAA6E;AAC7E,gGAAkE;AAErD,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,oCAAqB,CAAC,CAAC;AAChE,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,0CAA2B,CAC5B,CAAC;AACW,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,qCAAqB,CAAC,CAAC;AAChE,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,qCAAsB,CAAC,CAAC;AAClE,QAAA,gBAAgB,GAAG,IAAA,0CAAmB,EAAC,kCAAmB,CAAC,CAAC;AAC5D,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,iCAAkB,CAAC,CAAC;AAC1D,QAAA,yBAAyB,GAAG,IAAA,0CAAmB,EAC1D,6CAA4B,CAC7B,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,uCAAwB,CACzB,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 CheckboxDefault } from './checkbox-default.story';\nexport { default as CheckboxIndeterminate } from './checkbox-indeterminate.story';\nexport { default as CheckboxNoLabel } from './checkbox-no-label.story';\nexport { default as CheckboxDisabled } from './checkbox-disabled.story';\nexport { default as CheckboxFluid } from './checkbox-fluid.story';\nexport { default as CheckboxHasLabelBefore } from './checkbox-has-label-before.story';\nexport { default as CheckboxFull } from './checkbox-full.story';\nexport { default as CheckboxControlled } from './checkbox-controlled.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport CheckboxControlledSrcRaw from './checkbox-controlled.story?raw';\nimport CheckboxDefaultSrcRaw from './checkbox-default.story?raw';\nimport CheckboxDisabledSrcRaw from './checkbox-disabled.story?raw';\nimport CheckboxFluidSrcRaw from './checkbox-fluid.story?raw';\nimport CheckboxFullSrcRaw from './checkbox-full.story?raw';\nimport CheckboxHasLabelBeforeSrcRaw from './checkbox-has-label-before.story?raw';\nimport CheckboxIndeterminateSrcRaw from './checkbox-indeterminate.story?raw';\nimport CheckboxNoLabelSrcRaw from './checkbox-no-label.story?raw';\n\nexport const CheckboxDefaultSrc = removeLicenseHeader(CheckboxDefaultSrcRaw);\nexport const CheckboxIndeterminateSrc = removeLicenseHeader(\n CheckboxIndeterminateSrcRaw,\n);\nexport const CheckboxNoLabelSrc = removeLicenseHeader(CheckboxNoLabelSrcRaw);\nexport const CheckboxDisabledSrc = removeLicenseHeader(CheckboxDisabledSrcRaw);\nexport const CheckboxFluidSrc = removeLicenseHeader(CheckboxFluidSrcRaw);\nexport const CheckboxFullSrc = removeLicenseHeader(CheckboxFullSrcRaw);\nexport const CheckboxHasLabelBeforeSrc = removeLicenseHeader(\n CheckboxHasLabelBeforeSrcRaw,\n);\nexport const CheckboxControlledSrc = removeLicenseHeader(\n CheckboxControlledSrcRaw,\n);\n"]}
@@ -42,6 +42,7 @@ const tooltip_1 = require("../tooltip");
42
42
  const Code = (_a) => {
43
43
  var { children, className, isDisabled = false, style, isRunnable = false, description, onClick, as, ref, htmlAttributes } = _a, restProps = __rest(_a, ["children", "className", "isDisabled", "style", "isRunnable", "description", "onClick", "as", "ref", "htmlAttributes"]);
44
44
  const Component = as !== null && as !== void 0 ? as : (onClick ? 'button' : 'span');
45
+ const isButton = Component === 'button';
45
46
  const classes = (0, classnames_1.default)('ndl-code', {
46
47
  'ndl-disabled': isDisabled,
47
48
  'ndl-runnable': isRunnable,
@@ -53,7 +54,7 @@ const Code = (_a) => {
53
54
  }
54
55
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
55
56
  };
56
- return ((0, jsx_runtime_1.jsx)(conditional_wrap_1.ConditionalWrap, { shouldWrap: Boolean(description) === true, wrap: (children) => ((0, jsx_runtime_1.jsxs)(tooltip_1.Tooltip, { type: "simple", children: [(0, jsx_runtime_1.jsx)(tooltip_1.Tooltip.Trigger, { hasButtonWrapper: Component === 'button', children: children }), (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip.Content, { children: description })] })), children: (0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, style: style, onClick: handleClick, disabled: isDisabled, ref: ref }, restProps, htmlAttributes, { children: (0, jsx_runtime_1.jsx)("code", { children: children }) })) }));
57
+ return ((0, jsx_runtime_1.jsx)(conditional_wrap_1.ConditionalWrap, { shouldWrap: Boolean(description) === true, wrap: (children) => ((0, jsx_runtime_1.jsxs)(tooltip_1.Tooltip, { type: "simple", children: [(0, jsx_runtime_1.jsx)(tooltip_1.Tooltip.Trigger, { hasButtonWrapper: Component === 'button', children: children }), (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip.Content, { children: description })] })), children: (0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, style: style, onClick: handleClick, disabled: isButton ? isDisabled : undefined, "aria-disabled": !isButton && isDisabled ? true : undefined, ref: ref }, restProps, htmlAttributes, { children: (0, jsx_runtime_1.jsx)("code", { children: children }) })) }));
57
58
  };
58
59
  exports.Code = Code;
59
60
  //# sourceMappingURL=Code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Code.js","sourceRoot":"","sources":["../../../src/code/Code.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4DAAoC;AAGpC,0DAAsD;AACtD,wCAAqC;AAmB9B,MAAM,IAAI,GAAG,CAAyC,EAYtB,EAAE,EAAE;QAZkB,EAC3D,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,WAAW,EACX,OAAO,EACP,EAAE,EACF,GAAG,EACH,cAAc,OAEuB,EADlC,SAAS,cAX+C,uHAY5D,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,OAAO,GAAG,IAAA,oBAAU,EACxB,UAAU,EACV;QACE,cAAc,EAAE,UAAU;QAC1B,cAAc,EAAE,UAAU;KAC3B,EACD,SAAS,CACV,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,KAAgD,EAAE,EAAE;QACvE,IAAI,UAAU,EAAE,CAAC;YACf,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,kCAAe,IACd,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,EACzC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAClB,wBAAC,iBAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,uBAAC,iBAAO,CAAC,OAAO,IAAC,gBAAgB,EAAE,SAAS,KAAK,QAAQ,YACtD,QAAQ,GACO,EAClB,uBAAC,iBAAO,CAAC,OAAO,cAAE,WAAW,GAAmB,IACxC,CACX,YAED,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAElB,2CAAO,QAAQ,GAAQ,IACb,GACI,CACnB,CAAC;AACJ,CAAC,CAAC;AA1DW,QAAA,IAAI,QA0Df","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 classNames from 'classnames';\n\nimport { type PolymorphicCommonProps } from '../_common/types';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { Tooltip } from '../tooltip';\n\ntype CodeProps = {\n /** The content of the code */\n children?: React.ReactNode;\n /** Whether the code is disabled */\n isDisabled?: boolean;\n /** Whether the code is runnable */\n isRunnable?: boolean;\n /** The description of the code, will be displayed in a tooltip */\n description?: string;\n /** The callback function triggered when the inline code is clicked */\n onClick?: (\n event:\n | React.MouseEvent<HTMLElement, MouseEvent>\n | React.KeyboardEvent<HTMLElement>,\n ) => void;\n};\n\nexport const Code = <T extends React.ElementType = 'button'>({\n children,\n className,\n isDisabled = false,\n style,\n isRunnable = false,\n description,\n onClick,\n as,\n ref,\n htmlAttributes,\n ...restProps\n}: PolymorphicCommonProps<T, CodeProps>) => {\n const Component: React.ElementType = as ?? (onClick ? 'button' : 'span');\n\n const classes = classNames(\n 'ndl-code',\n {\n 'ndl-disabled': isDisabled,\n 'ndl-runnable': isRunnable,\n },\n className,\n );\n\n const handleClick = (event: React.MouseEvent<HTMLElement, MouseEvent>) => {\n if (isDisabled) {\n event.preventDefault();\n return;\n }\n\n onClick?.(event);\n };\n\n return (\n <ConditionalWrap\n shouldWrap={Boolean(description) === true}\n wrap={(children) => (\n <Tooltip type=\"simple\">\n <Tooltip.Trigger hasButtonWrapper={Component === 'button'}>\n {children}\n </Tooltip.Trigger>\n <Tooltip.Content>{description}</Tooltip.Content>\n </Tooltip>\n )}\n >\n <Component\n className={classes}\n style={style}\n onClick={handleClick}\n disabled={isDisabled}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n <code>{children}</code>\n </Component>\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,GACO,EAClB,uBAAC,iBAAO,CAAC,OAAO,cAAE,WAAW,GAAmB,IACxC,CACX,YAED,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,mBAC5B,CAAC,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EACzD,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAElB,2CAAO,QAAQ,GAAQ,IACb,GACI,CACnB,CAAC;AACJ,CAAC,CAAC;AA7DW,QAAA,IAAI,QA6Df","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 classNames from 'classnames';\n\nimport { type PolymorphicCommonProps } from '../_common/types';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { Tooltip } from '../tooltip';\n\ntype CodeProps = {\n /** The content of the code */\n children?: React.ReactNode;\n /** Whether the code is disabled */\n isDisabled?: boolean;\n /** Whether the code is runnable */\n isRunnable?: boolean;\n /** The description of the code, will be displayed in a tooltip */\n description?: string;\n /** The callback function triggered when the inline code is clicked */\n onClick?: (\n event:\n | React.MouseEvent<HTMLElement, MouseEvent>\n | React.KeyboardEvent<HTMLElement>,\n ) => void;\n};\n\nexport const Code = <T extends React.ElementType = 'button'>({\n children,\n className,\n isDisabled = false,\n style,\n isRunnable = false,\n description,\n onClick,\n as,\n ref,\n htmlAttributes,\n ...restProps\n}: PolymorphicCommonProps<T, CodeProps>) => {\n const Component: React.ElementType = as ?? (onClick ? 'button' : 'span');\n\n const isButton = Component === 'button';\n\n const classes = classNames(\n 'ndl-code',\n {\n 'ndl-disabled': isDisabled,\n 'ndl-runnable': isRunnable,\n },\n className,\n );\n\n const handleClick = (event: React.MouseEvent<HTMLElement, MouseEvent>) => {\n if (isDisabled) {\n event.preventDefault();\n return;\n }\n\n onClick?.(event);\n };\n\n return (\n <ConditionalWrap\n shouldWrap={Boolean(description) === true}\n wrap={(children) => (\n <Tooltip type=\"simple\">\n <Tooltip.Trigger hasButtonWrapper={Component === 'button'}>\n {children}\n </Tooltip.Trigger>\n <Tooltip.Content>{description}</Tooltip.Content>\n </Tooltip>\n )}\n >\n <Component\n className={classes}\n style={style}\n onClick={handleClick}\n disabled={isButton ? isDisabled : undefined}\n aria-disabled={!isButton && isDisabled ? true : undefined}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n <code>{children}</code>\n </Component>\n </ConditionalWrap>\n );\n};\n"]}
@@ -25,7 +25,6 @@ var Keys;
25
25
  (function (Keys) {
26
26
  Keys["Enter"] = "Enter";
27
27
  Keys["Escape"] = "Escape";
28
- Keys["Shift"] = "Shift";
29
28
  Keys["Control"] = "Control";
30
29
  Keys["Home"] = "Home";
31
30
  Keys["End"] = "End";
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/data-grid/data-grid-nav/keys.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,IAAY,IAgBX;AAhBD,WAAY,IAAI;IACd,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,uBAAe,CAAA;IACf,2BAAmB,CAAA;IACnB,qBAAa,CAAA;IACb,mBAAW,CAAA;IACX,gBAAgB;IAChB,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,iBAAiB;IACjB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,iCAAyB,CAAA;IACzB,+BAAuB,CAAA;IACvB,iBAAS,CAAA;AACX,CAAC,EAhBW,IAAI,oBAAJ,IAAI,QAgBf","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 */\nexport enum Keys {\n Enter = 'Enter',\n Escape = 'Escape',\n Shift = 'Shift',\n Control = 'Control',\n Home = 'Home',\n End = 'End',\n /** Page Keys */\n PageUp = 'PageUp',\n PageDown = 'PageDown',\n /** Arrow Keys */\n ArrowLeft = 'ArrowLeft',\n ArrowUp = 'ArrowUp',\n ArrowRight = 'ArrowRight',\n ArrowDown = 'ArrowDown',\n F2 = 'F2',\n}\n"]}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/data-grid/data-grid-nav/keys.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,IAAY,IAeX;AAfD,WAAY,IAAI;IACd,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,2BAAmB,CAAA;IACnB,qBAAa,CAAA;IACb,mBAAW,CAAA;IACX,gBAAgB;IAChB,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,iBAAiB;IACjB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,iCAAyB,CAAA;IACzB,+BAAuB,CAAA;IACvB,iBAAS,CAAA;AACX,CAAC,EAfW,IAAI,oBAAJ,IAAI,QAef","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 */\nexport enum Keys {\n Enter = 'Enter',\n Escape = 'Escape',\n Control = 'Control',\n Home = 'Home',\n End = 'End',\n /** Page Keys */\n PageUp = 'PageUp',\n PageDown = 'PageDown',\n /** Arrow Keys */\n ArrowLeft = 'ArrowLeft',\n ArrowUp = 'ArrowUp',\n ArrowRight = 'ArrowRight',\n ArrowDown = 'ArrowDown',\n F2 = 'F2',\n}\n"]}
package/lib/cjs/index.js CHANGED
@@ -34,8 +34,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
34
34
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Spotlight = 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.Dropzone = exports.ProgressBar = exports.Popover = exports.SegmentedControl = exports.Tabs = exports.LoadingSpinner = exports.Dialog = exports.DatePicker = exports.Menu = exports.RadioGroup = exports.Radio = exports.Switch = exports.Fieldset = exports.CheckboxGroup = exports.Checkbox = exports.AnnouncementBanner = exports.Banner = exports.StatusLabel = exports.Accordion = void 0;
38
- exports.OperationalTag = exports.SelectableTag = 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 = void 0;
37
+ exports.SpotlightProvider = exports.Spotlight = 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.Dropzone = exports.ProgressBar = exports.SegmentedControl = exports.Tabs = exports.LoadingSpinner = exports.Dialog = exports.DatePicker = exports.Menu = exports.RadioGroup = exports.Radio = exports.Switch = exports.Fieldset = exports.CheckboxGroup = exports.Checkbox = exports.AnnouncementBanner = exports.Banner = exports.StatusLabel = exports.Accordion = void 0;
38
+ exports.OperationalTag = exports.SelectableTag = 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 = 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");
@@ -68,8 +68,7 @@ var tabs_1 = require("./tabs");
68
68
  Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return tabs_1.Tabs; } });
69
69
  var segmented_control_1 = require("./segmented-control");
70
70
  Object.defineProperty(exports, "SegmentedControl", { enumerable: true, get: function () { return segmented_control_1.SegmentedControl; } });
71
- var popover_1 = require("./popover");
72
- Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return popover_1.Popover; } });
71
+ __exportStar(require("./popover"), exports);
73
72
  var progress_bar_1 = require("./progress-bar");
74
73
  Object.defineProperty(exports, "ProgressBar", { enumerable: true, get: function () { return progress_bar_1.ProgressBar; } });
75
74
  var dropzone_1 = require("./dropzone");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,+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AAK,OAAA;AAC1C,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,6CAAuD;AAA9C,yGAAA,UAAU,OAAA;AAAE,yGAAA,UAAU,OAAA;AAC/B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,yCAMqB;AALnB,sGAAA,SAAS,OAAA;AACT,8GAAA,iBAAiB,OAAA;AACjB,4GAAA,eAAe,OAAA;AACf,0GAAA,aAAa,OAAA;AACb,gHAAA,mBAAmB,OAAA;AAErB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,iDAA8C;AAArC,4GAAA,WAAW,OAAA;AACpB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,6CAA2B","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 { AnnouncementBanner } from './announcement-banner';\nexport { Checkbox } from './checkbox';\nexport { CheckboxGroup } from './checkbox-group';\nexport { Fieldset } from './fieldset';\nexport { Switch } from './switch';\nexport { Radio } from './radio';\nexport { RadioGroup } from './radio-group';\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 * 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';\nexport { OperationalTag } from './operational-tag';\nexport * from './combobox';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,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uD;AAA9C,yGAAA,UAAU,OAAA;AAAE,yGAAA,UAAU,OAAA;AAC/B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,yCAMqB;AALnB,sGAAA,SAAS,OAAA;AACT,8GAAA,iBAAiB,OAAA;AACjB,4GAAA,eAAe,OAAA;AACf,0GAAA,aAAa,OAAA;AACb,gHAAA,mBAAmB,OAAA;AAErB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,iDAA8C;AAArC,4GAAA,WAAW,OAAA;AACpB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,6CAA2B","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 { AnnouncementBanner } from './announcement-banner';\nexport { Checkbox } from './checkbox';\nexport { CheckboxGroup } from './checkbox-group';\nexport { Fieldset } from './fieldset';\nexport { Switch } from './switch';\nexport { Radio } from './radio';\nexport { RadioGroup } from './radio-group';\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 * from './popover';\nexport { ProgressBar } from './progress-bar';\nexport { Dropzone } from './dropzone';\nexport * 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';\nexport { OperationalTag } from './operational-tag';\nexport * from './combobox';\n"]}
@@ -38,12 +38,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
38
38
  */
39
39
  const classnames_1 = __importDefault(require("classnames"));
40
40
  const LoadingBar = (_a) => {
41
- var { as, hasRail = false, className, htmlAttributes, style, ref } = _a, restProps = __rest(_a, ["as", "hasRail", "className", "htmlAttributes", "style", "ref"]);
41
+ var { as, hasRail = false, loadingMessage = 'Loading', className, htmlAttributes, style, ref } = _a, restProps = __rest(_a, ["as", "hasRail", "loadingMessage", "className", "htmlAttributes", "style", "ref"]);
42
42
  const Component = as !== null && as !== void 0 ? as : 'div';
43
43
  const classes = (0, classnames_1.default)('ndl-loading-bar', className, {
44
44
  'ndl-loading-bar-rail': hasRail,
45
45
  });
46
- return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, ref: ref, role: "status", style: style }, restProps, htmlAttributes)));
46
+ return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, ref: ref, role: "status", style: style }, restProps, htmlAttributes, { children: (0, jsx_runtime_1.jsx)("span", { className: "ndl-loading-bar-text", children: loadingMessage }) })));
47
47
  };
48
48
  exports.LoadingBar = LoadingBar;
49
49
  //# sourceMappingURL=LoadingBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingBar.js","sourceRoot":"","sources":["../../../src/loading-bar/LoadingBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAS7B,MAAM,UAAU,GAAG,CAAsC,EAQnB,EAAE,EAAE;QARe,EAC9D,EAAE,EACF,OAAO,GAAG,KAAK,EACf,SAAS,EACT,cAAc,EACd,KAAK,EACL,GAAG,OAEwC,EADxC,SAAS,cAPkD,gEAQ/D,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,iBAAiB,EAAE,SAAS,EAAE;QACvD,sBAAsB,EAAE,OAAO;KAChC,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,EAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,UAAU,cAwBrB","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 PolymorphicCommonProps } from '../_common/types';\n\ntype LoadingBarProps = {\n hasRail?: boolean;\n};\n\nexport const LoadingBar = <T extends React.ElementType = 'div'>({\n as,\n hasRail = false,\n className,\n htmlAttributes,\n style,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, LoadingBarProps>) => {\n const Component: React.ElementType = as ?? 'div';\n const classes = classNames('ndl-loading-bar', className, {\n 'ndl-loading-bar-rail': hasRail,\n });\n\n return (\n <Component\n className={classes}\n ref={ref}\n role=\"status\"\n style={style}\n {...restProps}\n {...htmlAttributes}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"LoadingBar.js","sourceRoot":"","sources":["../../../src/loading-bar/LoadingBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAY7B,MAAM,UAAU,GAAG,CAAsC,EASnB,EAAE,EAAE;QATe,EAC9D,EAAE,EACF,OAAO,GAAG,KAAK,EACf,cAAc,GAAG,SAAS,EAC1B,SAAS,EACT,cAAc,EACd,KAAK,EACL,GAAG,OAEwC,EADxC,SAAS,cARkD,kFAS/D,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,iBAAiB,EAAE,SAAS,EAAE;QACvD,sBAAsB,EAAE,OAAO;KAChC,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,cAElB,iCAAM,SAAS,EAAC,sBAAsB,YAAE,cAAc,GAAQ,IACpD,CACb,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,UAAU,cA2BrB","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 PolymorphicCommonProps } from '../_common/types';\n\ntype LoadingBarProps = {\n /** Visually hidden message for screen readers, for example \"Loading search results\". */\n loadingMessage?: string;\n /** Whether the loading bar has a background rail */\n hasRail?: boolean;\n};\n\nexport const LoadingBar = <T extends React.ElementType = 'div'>({\n as,\n hasRail = false,\n loadingMessage = 'Loading',\n className,\n htmlAttributes,\n style,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, LoadingBarProps>) => {\n const Component: React.ElementType = as ?? 'div';\n const classes = classNames('ndl-loading-bar', className, {\n 'ndl-loading-bar-rail': hasRail,\n });\n\n return (\n <Component\n className={classes}\n ref={ref}\n role=\"status\"\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <span className=\"ndl-loading-bar-text\">{loadingMessage}</span>\n </Component>\n );\n};\n"]}
@@ -45,14 +45,14 @@ const classnames_1 = __importDefault(require("classnames"));
45
45
  *
46
46
  */
47
47
  const LoadingSpinner = (_a) => {
48
- var { as, size = 'small', className, htmlAttributes, ref } = _a, restProps = __rest(_a, ["as", "size", "className", "htmlAttributes", "ref"]);
48
+ var { as, loadingMessage = 'Loading content', size = 'small', className, htmlAttributes, ref } = _a, restProps = __rest(_a, ["as", "loadingMessage", "size", "className", "htmlAttributes", "ref"]);
49
49
  const Component = as || 'div';
50
50
  const classes = (0, classnames_1.default)('ndl-spin-wrapper', className, {
51
51
  'ndl-large': size === 'large',
52
52
  'ndl-medium': size === 'medium',
53
53
  'ndl-small': size === 'small',
54
54
  });
55
- return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: ref }, restProps, htmlAttributes, { children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-spin" }) })));
55
+ return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, role: "status", "aria-label": loadingMessage, "aria-live": "polite", ref: ref }, restProps, htmlAttributes, { children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-spin" }) })));
56
56
  };
57
57
  exports.LoadingSpinner = LoadingSpinner;
58
58
  //# sourceMappingURL=LoadingSpinner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAiBpC;;;;;;GAMG;AAEI,MAAM,cAAc,GAAG,CAAsC,EAOnB,EAAE,EAAE;QAPe,EAClE,EAAE,EACF,IAAI,GAAG,OAAO,EACd,SAAS,EACT,cAAc,EACd,GAAG,OAE4C,EAD5C,SAAS,cANsD,oDAOnE,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,IAAI,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,kBAAkB,EAAE,SAAS,EAAE;QACxD,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,IAAI,EAAC,QAAQ,gBACF,iBAAiB,eAClB,QAAQ,EAClB,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAElB,gCAAK,SAAS,EAAC,UAAU,GAAG,IAClB,CACb,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,cAAc,kBA4BzB","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 PolymorphicCommonProps } from '../_common/types';\n\n/**\n *\n *\n * Types\n *\n *\n */\n\ntype LoadingSpinnerProps = {\n size?: 'small' | 'medium' | 'large';\n};\n\n/**\n *\n *\n * LoadingSpinner Component\n *\n *\n */\n\nexport const LoadingSpinner = <T extends React.ElementType = 'div'>({\n as,\n size = 'small',\n className,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, LoadingSpinnerProps>) => {\n const Component: React.ElementType = as || 'div';\n const classes = classNames('ndl-spin-wrapper', className, {\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n });\n\n return (\n <Component\n className={classes}\n role=\"status\"\n aria-label=\"Loading content\"\n aria-live=\"polite\"\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-spin\" />\n </Component>\n );\n};\n"]}
1
+ {"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAyBpC;;;;;;GAMG;AAEI,MAAM,cAAc,GAAG,CAAsC,EAQnB,EAAE,EAAE;QARe,EAClE,EAAE,EACF,cAAc,GAAG,iBAAiB,EAClC,IAAI,GAAG,OAAO,EACd,SAAS,EACT,cAAc,EACd,GAAG,OAE4C,EAD5C,SAAS,cAPsD,sEAQnE,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,IAAI,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,kBAAkB,EAAE,SAAS,EAAE;QACxD,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,IAAI,EAAC,QAAQ,gBACD,cAAc,eAChB,QAAQ,EAClB,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAElB,gCAAK,SAAS,EAAC,UAAU,GAAG,IAClB,CACb,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,cAAc,kBA6BzB","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 PolymorphicCommonProps } from '../_common/types';\n\n/**\n *\n *\n * Types\n *\n *\n */\n\ntype LoadingSpinnerProps = {\n // TODO v6: Change default text to \"Loading\" and implement as a hidden text element instead of aria-label\n /**\n * The aria label for the loading spinner. If not provided, defaults to \"Loading content\".\n */\n loadingMessage?: string;\n /**\n * The size of the loading spinner.\n */\n size?: 'small' | 'medium' | 'large';\n};\n\n/**\n *\n *\n * LoadingSpinner Component\n *\n *\n */\n\nexport const LoadingSpinner = <T extends React.ElementType = 'div'>({\n as,\n loadingMessage = 'Loading content',\n size = 'small',\n className,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, LoadingSpinnerProps>) => {\n const Component: React.ElementType = as || 'div';\n const classes = classNames('ndl-spin-wrapper', className, {\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n });\n\n return (\n <Component\n className={classes}\n role=\"status\"\n aria-label={loadingMessage}\n aria-live=\"polite\"\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-spin\" />\n </Component>\n );\n};\n"]}
@@ -44,7 +44,7 @@ const ProgressBar = (_a) => {
44
44
  'ndl-small': size === 'small',
45
45
  });
46
46
  const Component = as !== null && as !== void 0 ? as : 'div';
47
- return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ className: classes, style: style, ref: ref }, restProps, htmlAttributes, { children: [heading && ((0, jsx_runtime_1.jsxs)("div", { className: "ndl-header", children: [(0, jsx_runtime_1.jsx)("span", { className: "ndl-heading", children: heading }), (0, jsx_runtime_1.jsx)("span", { className: "ndl-progress-number", children: `${value}%` })] })), (0, jsx_runtime_1.jsxs)("div", { className: "ndl-progress-bar-wrapper-inner", children: [(0, jsx_runtime_1.jsx)("div", { className: "ndl-progress-bar-container", role: "progressbar", title: "progress bar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value, children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-progress-bar", style: { width: `${value}%` } }) }), (0, jsx_runtime_1.jsx)("div", { className: "ndl-progress-bar-shadow", style: { width: `${value}%` } })] })] })));
47
+ return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ className: classes, style: style, ref: ref }, restProps, htmlAttributes, { children: [heading && ((0, jsx_runtime_1.jsxs)("div", { className: "ndl-header", children: [(0, jsx_runtime_1.jsx)("span", { className: "ndl-heading", children: heading }), (0, jsx_runtime_1.jsx)("span", { className: "ndl-progress-number", children: `${value}%` })] })), (0, jsx_runtime_1.jsx)("div", { className: "ndl-progress-bar-wrapper-inner", children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-progress-bar-container", role: "progressbar", title: "progress bar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value, children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-progress-bar", style: { width: `${value}%` } }) }) })] })));
48
48
  };
49
49
  exports.ProgressBar = ProgressBar;
50
50
  //# sourceMappingURL=ProgressBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../src/progress-bar/ProgressBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAqB7B,MAAM,WAAW,GAAG,CAAsC,EAUnB,EAAE,EAAE;QAVe,EAC/D,EAAE,EACF,OAAO,EACP,KAAK,EACL,IAAI,GAAG,OAAO,EACd,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEyC,EADzC,SAAS,cATmD,iFAUhE,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,0BAA0B,EAAE,SAAS,EAAE;QAChE,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IACH,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,KAAK,CAAC;IAEjD,OAAO,CACL,wBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,eAEjB,OAAO,IAAI,CACV,iCAAK,SAAS,EAAC,YAAY,aACzB,iCAAM,SAAS,EAAC,aAAa,YAAE,OAAO,GAAQ,EAC9C,iCAAM,SAAS,EAAC,qBAAqB,YAAE,GAAG,KAAK,GAAG,GAAQ,IACtD,CACP,EACD,iCAAK,SAAS,EAAC,gCAAgC,aAC7C,gCACE,SAAS,EAAC,4BAA4B,EACtC,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,cAAc,mBACL,CAAC,mBACD,GAAG,mBACH,KAAK,YAEpB,gCAAK,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,GAAI,GAC/D,EACN,gCACE,SAAS,EAAC,yBAAyB,EACnC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,GAC7B,IACE,KACI,CACb,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,WAAW,eAiDtB","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 {\n type HtmlAttributes,\n type PolymorphicCommonProps,\n} from '../_common/types';\n\ntype ProgressBarProps = {\n /** The heading displayed above the progress bar */\n heading?: string;\n /** The current progress value, should be between 0 and 100 */\n value: number;\n /** Size of the progress bar */\n size: 'small' | 'large';\n /** Additional class names */\n className?: string;\n /** Additional HTML attributes */\n htmlAttributes?: HtmlAttributes<'div'>;\n};\n\nexport const ProgressBar = <T extends React.ElementType = 'div'>({\n as,\n heading,\n value,\n size = 'small',\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, ProgressBarProps>) => {\n const classes = classNames('ndl-progress-bar-wrapper', className, {\n 'ndl-large': size === 'large',\n 'ndl-small': size === 'small',\n });\n const Component: React.ElementType = as ?? 'div';\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {heading && (\n <div className=\"ndl-header\">\n <span className=\"ndl-heading\">{heading}</span>\n <span className=\"ndl-progress-number\">{`${value}%`}</span>\n </div>\n )}\n <div className=\"ndl-progress-bar-wrapper-inner\">\n <div\n className=\"ndl-progress-bar-container\"\n role=\"progressbar\"\n title=\"progress bar\"\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={value}\n >\n <div className=\"ndl-progress-bar\" style={{ width: `${value}%` }} />\n </div>\n <div\n className=\"ndl-progress-bar-shadow\"\n style={{ width: `${value}%` }}\n />\n </div>\n </Component>\n );\n};\n"]}
1
+ {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../src/progress-bar/ProgressBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAqB7B,MAAM,WAAW,GAAG,CAAsC,EAUnB,EAAE,EAAE;QAVe,EAC/D,EAAE,EACF,OAAO,EACP,KAAK,EACL,IAAI,GAAG,OAAO,EACd,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEyC,EADzC,SAAS,cATmD,iFAUhE,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,0BAA0B,EAAE,SAAS,EAAE;QAChE,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IACH,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,KAAK,CAAC;IAEjD,OAAO,CACL,wBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,eAEjB,OAAO,IAAI,CACV,iCAAK,SAAS,EAAC,YAAY,aACzB,iCAAM,SAAS,EAAC,aAAa,YAAE,OAAO,GAAQ,EAC9C,iCAAM,SAAS,EAAC,qBAAqB,YAAE,GAAG,KAAK,GAAG,GAAQ,IACtD,CACP,EACD,gCAAK,SAAS,EAAC,gCAAgC,YAC7C,gCACE,SAAS,EAAC,4BAA4B,EACtC,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,cAAc,mBACL,CAAC,mBACD,GAAG,mBACH,KAAK,YAEpB,gCAAK,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,GAAI,GAC/D,GACF,KACI,CACb,CAAC;AACJ,CAAC,CAAC;AA7CW,QAAA,WAAW,eA6CtB","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 {\n type HtmlAttributes,\n type PolymorphicCommonProps,\n} from '../_common/types';\n\ntype ProgressBarProps = {\n /** The heading displayed above the progress bar */\n heading?: string;\n /** The current progress value, should be between 0 and 100 */\n value: number;\n /** Size of the progress bar */\n size: 'small' | 'large';\n /** Additional class names */\n className?: string;\n /** Additional HTML attributes */\n htmlAttributes?: HtmlAttributes<'div'>;\n};\n\nexport const ProgressBar = <T extends React.ElementType = 'div'>({\n as,\n heading,\n value,\n size = 'small',\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, ProgressBarProps>) => {\n const classes = classNames('ndl-progress-bar-wrapper', className, {\n 'ndl-large': size === 'large',\n 'ndl-small': size === 'small',\n });\n const Component: React.ElementType = as ?? 'div';\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {heading && (\n <div className=\"ndl-header\">\n <span className=\"ndl-heading\">{heading}</span>\n <span className=\"ndl-progress-number\">{`${value}%`}</span>\n </div>\n )}\n <div className=\"ndl-progress-bar-wrapper-inner\">\n <div\n className=\"ndl-progress-bar-container\"\n role=\"progressbar\"\n title=\"progress bar\"\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={value}\n >\n <div className=\"ndl-progress-bar\" style={{ width: `${value}%` }} />\n </div>\n </div>\n </Component>\n );\n};\n"]}
@@ -51,35 +51,35 @@ exports.CategoricalColors = [
51
51
  exports.colorMap = {
52
52
  '1': {
53
53
  '--tag-background-color': base_1.tokens.categorical[1],
54
- '--tag-text-color': base_1.tokens.palette.neutral[75],
54
+ '--tag-text-color': '#000',
55
55
  },
56
56
  '2': {
57
57
  '--tag-background-color': base_1.tokens.categorical[2],
58
- '--tag-text-color': base_1.tokens.palette.neutral[10],
58
+ '--tag-text-color': '#fff',
59
59
  },
60
60
  '3': {
61
61
  '--tag-background-color': base_1.tokens.categorical[3],
62
- '--tag-text-color': base_1.tokens.palette.neutral[75],
62
+ '--tag-text-color': '#000',
63
63
  },
64
64
  '4': {
65
65
  '--tag-background-color': base_1.tokens.categorical[4],
66
- '--tag-text-color': base_1.tokens.palette.neutral[10],
66
+ '--tag-text-color': '#000',
67
67
  },
68
68
  '5': {
69
69
  '--tag-background-color': base_1.tokens.categorical[5],
70
- '--tag-text-color': base_1.tokens.palette.neutral[75],
70
+ '--tag-text-color': '#000',
71
71
  },
72
72
  '6': {
73
73
  '--tag-background-color': base_1.tokens.categorical[6],
74
- '--tag-text-color': base_1.tokens.palette.neutral[75],
74
+ '--tag-text-color': '#000',
75
75
  },
76
76
  '7': {
77
77
  '--tag-background-color': base_1.tokens.categorical[7],
78
- '--tag-text-color': base_1.tokens.palette.neutral[10],
78
+ '--tag-text-color': '#000',
79
79
  },
80
80
  '8': {
81
81
  '--tag-background-color': base_1.tokens.categorical[8],
82
- '--tag-text-color': base_1.tokens.palette.neutral[10],
82
+ '--tag-text-color': '#fff',
83
83
  },
84
84
  };
85
85
  const TagBase = (_a) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TagBase.js","sourceRoot":"","sources":["../../../src/tag-base/TagBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,0CAAyC;AACzC,4DAAoC;AAOvB,QAAA,iBAAiB,GAAG;IAC/B,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACK,CAAC;AAmBE,QAAA,QAAQ,GAMjB;IACF,GAAG,EAAE;QACH,wBAAwB,EAAE,aAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/C,kBAAkB,EAAE,aAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;KAC/C;IACD,GAAG,EAAE;QACH,wBAAwB,EAAE,aAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/C,kBAAkB,EAAE,aAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;KAC/C;IACD,GAAG,EAAE;QACH,wBAAwB,EAAE,aAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/C,kBAAkB,EAAE,aAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;KAC/C;IACD,GAAG,EAAE;QACH,wBAAwB,EAAE,aAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/C,kBAAkB,EAAE,aAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;KAC/C;IACD,GAAG,EAAE;QACH,wBAAwB,EAAE,aAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/C,kBAAkB,EAAE,aAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;KAC/C;IACD,GAAG,EAAE;QACH,wBA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AAS,EAAC,yBAAyB,YAAE,aAAa,GAAO,CAC/D,EACD,iCAAM,SAAS,EAAC,iBAAiB,EAAC,EAAE,EAAE,SAAS,YAC5C,QAAQ,GACJ,EACN,eAAe,KACZ,CACP,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,OAAO,WA2ClB","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 { tokens } from '@neo4j-ndl/base';\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\n\nexport type TagSize = 'x-small' | 'small' | 'medium' | 'large';\n\nexport const CategoricalColors = [\n '1',\n '2',\n '3',\n '4',\n '5',\n '6',\n '7',\n '8',\n] as const;\n\nexport type TagColor = (typeof CategoricalColors)[number];\n\nexport interface TagBaseProps {\n /** Categorical color for the background */\n color?: TagColor;\n /** The content of the tag */\n children: React.ReactNode;\n /** Id applied to the content element used for aria-describedby on actions */\n contentId?: string;\n /** Icon to display before the content */\n leadingVisual?: React.ReactNode;\n /** Size of the tag */\n size?: TagSize;\n /** Trailing content rendered after the content (e.g. a remove button) */\n trailingContent?: React.ReactNode;\n}\n\nexport const colorMap: Record<\n TagColor,\n {\n '--tag-background-color': string;\n '--tag-text-color': string;\n }\n> = {\n '1': {\n '--tag-background-color': tokens.categorical[1],\n '--tag-text-color': tokens.palette.neutral[75],\n },\n '2': {\n '--tag-background-color': tokens.categorical[2],\n '--tag-text-color': tokens.palette.neutral[10],\n },\n '3': {\n '--tag-background-color': tokens.categorical[3],\n '--tag-text-color': tokens.palette.neutral[75],\n },\n '4': {\n '--tag-background-color': tokens.categorical[4],\n '--tag-text-color': tokens.palette.neutral[10],\n },\n '5': {\n '--tag-background-color': tokens.categorical[5],\n '--tag-text-color': tokens.palette.neutral[75],\n },\n '6': {\n '--tag-background-color': tokens.categorical[6],\n '--tag-text-color': tokens.palette.neutral[75],\n },\n '7': {\n '--tag-background-color': tokens.categorical[7],\n '--tag-text-color': tokens.palette.neutral[10],\n },\n '8': {\n '--tag-background-color': tokens.categorical[8],\n '--tag-text-color': tokens.palette.neutral[10],\n },\n};\n\nexport const TagBase = ({\n size = 'medium',\n color,\n children,\n className,\n contentId,\n htmlAttributes,\n leadingVisual,\n trailingContent,\n ref,\n style,\n ...restProps\n}: CommonProps<'div', TagBaseProps>) => {\n const classes = classNames('ndl-tag-new', className, {\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n 'ndl-tag-colored': Boolean(color),\n 'ndl-x-small': size === 'x-small',\n });\n\n const styles = {\n ...style,\n ...(color ? colorMap[color] : {}),\n } as React.CSSProperties;\n\n return (\n <div\n className={classes}\n ref={ref}\n style={styles}\n {...htmlAttributes}\n {...restProps}\n >\n {Boolean(leadingVisual) && (\n <div className=\"ndl-tag-leading-element\">{leadingVisual}</div>\n )}\n <span className=\"ndl-tag-content\" id={contentId}>\n {children}\n </span>\n {trailingContent}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"TagBase.js","sourceRoot":"","sources":["../../../src/tag-base/TagBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,0CAAyC;AACzC,4DAAoC;AAOvB,QAAA,iBAAiB,GAAG;IAC/B,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACK,CAAC;AAmBE,QAAA,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AK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC;QACjC,aAAa,EAAE,IAAI,KAAK,SAAS;KAClC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,gCACV,KAAK,GACL,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACX,CAAC;IAEzB,OAAO,CACL,+CACE,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,MAAM,IACT,cAAc,EACd,SAAS,eAEZ,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,gCAAK,SAAS,EAAC,yBAAyB,YAAE,aAAa,GAAO,CAC/D,EACD,iCAAM,SAAS,EAAC,iBAAiB,EAAC,EAAE,EAAE,SAAS,YAC5C,QAAQ,GACJ,EACN,eAAe,KACZ,CACP,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,OAAO,WA2ClB","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 { tokens } from '@neo4j-ndl/base';\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\n\nexport type TagSize = 'x-small' | 'small' | 'medium' | 'large';\n\nexport const CategoricalColors = [\n '1',\n '2',\n '3',\n '4',\n '5',\n '6',\n '7',\n '8',\n] as const;\n\nexport type TagColor = (typeof CategoricalColors)[number];\n\nexport interface TagBaseProps {\n /** Categorical color for the background */\n color?: TagColor;\n /** The content of the tag */\n children: React.ReactNode;\n /** Id applied to the content element used for aria-describedby on actions */\n contentId?: string;\n /** Icon to display before the content */\n leadingVisual?: React.ReactNode;\n /** Size of the tag */\n size?: TagSize;\n /** Trailing content rendered after the content (e.g. a remove button) */\n trailingContent?: React.ReactNode;\n}\n\nexport const colorMap: Record<\n TagColor,\n {\n '--tag-background-color': string;\n '--tag-text-color': string;\n }\n> = {\n '1': {\n '--tag-background-color': tokens.categorical[1],\n '--tag-text-color': '#000',\n },\n '2': {\n '--tag-background-color': tokens.categorical[2],\n '--tag-text-color': '#fff',\n },\n '3': {\n '--tag-background-color': tokens.categorical[3],\n '--tag-text-color': '#000',\n },\n '4': {\n '--tag-background-color': tokens.categorical[4],\n '--tag-text-color': '#000',\n },\n '5': {\n '--tag-background-color': tokens.categorical[5],\n '--tag-text-color': '#000',\n },\n '6': {\n '--tag-background-color': tokens.categorical[6],\n '--tag-text-color': '#000',\n },\n '7': {\n '--tag-background-color': tokens.categorical[7],\n '--tag-text-color': '#000',\n },\n '8': {\n '--tag-background-color': tokens.categorical[8],\n '--tag-text-color': '#fff',\n },\n};\n\nexport const TagBase = ({\n size = 'medium',\n color,\n children,\n className,\n contentId,\n htmlAttributes,\n leadingVisual,\n trailingContent,\n ref,\n style,\n ...restProps\n}: CommonProps<'div', TagBaseProps>) => {\n const classes = classNames('ndl-tag-new', className, {\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n 'ndl-tag-colored': Boolean(color),\n 'ndl-x-small': size === 'x-small',\n });\n\n const styles = {\n ...style,\n ...(color ? colorMap[color] : {}),\n } as React.CSSProperties;\n\n return (\n <div\n className={classes}\n ref={ref}\n style={styles}\n {...htmlAttributes}\n {...restProps}\n >\n {Boolean(leadingVisual) && (\n <div className=\"ndl-tag-leading-element\">{leadingVisual}</div>\n )}\n <span className=\"ndl-tag-content\" id={contentId}>\n {children}\n </span>\n {trailingContent}\n </div>\n );\n};\n"]}
@@ -21,7 +21,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
21
21
  */
22
22
  import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { Presence } from '@neo4j-ndl/react/ai';
24
- // TODO: consider this story when happo is ready
25
24
  const Component = () => {
26
25
  return _jsx(Presence, { isThinking: true, className: "size-token-32" });
27
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ai-presence-thinking.story.js","sourceRoot":"","sources":["../../../../../src/ai/presence/stories/ai-presence-thinking.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,gDAAgD;AAChD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,QAAQ,IAAC,UAAU,QAAC,SAAS,EAAC,eAAe,GAAG,CAAC;AAC3D,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 { Presence } from '@neo4j-ndl/react/ai';\n\n// TODO: consider this story when happo is ready\nconst Component = () => {\n return <Presence isThinking className=\"size-token-32\" />;\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"ai-presence-thinking.story.js","sourceRoot":"","sources":["../../../../../src/ai/presence/stories/ai-presence-thinking.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,QAAQ,IAAC,UAAU,QAAC,SAAS,EAAC,eAAe,GAAG,CAAC;AAC3D,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 { Presence } from '@neo4j-ndl/react/ai';\n\nconst Component = () => {\n return <Presence isThinking className=\"size-token-32\" />;\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,28 @@
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 { Checkbox } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return _jsx(Checkbox, { isFluid: true, label: "Fluid checkbox" });
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=checkbox-fluid.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-fluid.story.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/checkbox-fluid.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,QAAQ,IAAC,OAAO,QAAC,KAAK,EAAC,gBAAgB,GAAG,CAAC;AACrD,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 { Checkbox } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <Checkbox isFluid label=\"Fluid checkbox\" />;\n};\n\nexport default Component;\n"]}
@@ -22,6 +22,7 @@ export { default as CheckboxDefault } from './checkbox-default.story';
22
22
  export { default as CheckboxIndeterminate } from './checkbox-indeterminate.story';
23
23
  export { default as CheckboxNoLabel } from './checkbox-no-label.story';
24
24
  export { default as CheckboxDisabled } from './checkbox-disabled.story';
25
+ export { default as CheckboxFluid } from './checkbox-fluid.story';
25
26
  export { default as CheckboxHasLabelBefore } from './checkbox-has-label-before.story';
26
27
  export { default as CheckboxFull } from './checkbox-full.story';
27
28
  export { default as CheckboxControlled } from './checkbox-controlled.story';
@@ -29,6 +30,7 @@ import { removeLicenseHeader } from '../../_common/export-stories-utils';
29
30
  import CheckboxControlledSrcRaw from './checkbox-controlled.story?raw';
30
31
  import CheckboxDefaultSrcRaw from './checkbox-default.story?raw';
31
32
  import CheckboxDisabledSrcRaw from './checkbox-disabled.story?raw';
33
+ import CheckboxFluidSrcRaw from './checkbox-fluid.story?raw';
32
34
  import CheckboxFullSrcRaw from './checkbox-full.story?raw';
33
35
  import CheckboxHasLabelBeforeSrcRaw from './checkbox-has-label-before.story?raw';
34
36
  import CheckboxIndeterminateSrcRaw from './checkbox-indeterminate.story?raw';
@@ -37,6 +39,7 @@ export const CheckboxDefaultSrc = removeLicenseHeader(CheckboxDefaultSrcRaw);
37
39
  export const CheckboxIndeterminateSrc = removeLicenseHeader(CheckboxIndeterminateSrcRaw);
38
40
  export const CheckboxNoLabelSrc = removeLicenseHeader(CheckboxNoLabelSrcRaw);
39
41
  export const CheckboxDisabledSrc = removeLicenseHeader(CheckboxDisabledSrcRaw);
42
+ export const CheckboxFluidSrc = removeLicenseHeader(CheckboxFluidSrcRaw);
40
43
  export const CheckboxFullSrc = removeLicenseHeader(CheckboxFullSrcRaw);
41
44
  export const CheckboxHasLabelBeforeSrc = removeLicenseHeader(CheckboxHasLabelBeforeSrcRaw);
42
45
  export const CheckboxControlledSrc = removeLicenseHeader(CheckboxControlledSrcRaw);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","s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,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAC1D,4BAA4B,CAC7B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,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 CheckboxDefault } from './checkbox-default.story';\nexport { default as CheckboxIndeterminate } from './checkbox-indeterminate.story';\nexport { default as CheckboxNoLabel } from './checkbox-no-label.story';\nexport { default as CheckboxDisabled } from './checkbox-disabled.story';\nexport { default as CheckboxHasLabelBefore } from './checkbox-has-label-before.story';\nexport { default as CheckboxFull } from './checkbox-full.story';\nexport { default as CheckboxControlled } from './checkbox-controlled.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport CheckboxControlledSrcRaw from './checkbox-controlled.story?raw';\nimport CheckboxDefaultSrcRaw from './checkbox-default.story?raw';\nimport CheckboxDisabledSrcRaw from './checkbox-disabled.story?raw';\nimport CheckboxFullSrcRaw from './checkbox-full.story?raw';\nimport CheckboxHasLabelBeforeSrcRaw from './checkbox-has-label-before.story?raw';\nimport CheckboxIndeterminateSrcRaw from './checkbox-indeterminate.story?raw';\nimport CheckboxNoLabelSrcRaw from './checkbox-no-label.story?raw';\n\nexport const CheckboxDefaultSrc = removeLicenseHeader(CheckboxDefaultSrcRaw);\nexport const CheckboxIndeterminateSrc = removeLicenseHeader(\n CheckboxIndeterminateSrcRaw,\n);\nexport const CheckboxNoLabelSrc = removeLicenseHeader(CheckboxNoLabelSrcRaw);\nexport const CheckboxDisabledSrc = removeLicenseHeader(CheckboxDisabledSrcRaw);\nexport const CheckboxFullSrc = removeLicenseHeader(CheckboxFullSrcRaw);\nexport const CheckboxHasLabelBeforeSrc = removeLicenseHeader(\n CheckboxHasLabelBeforeSrcRaw,\n);\nexport const CheckboxControlledSrc = removeLicenseHeader(\n CheckboxControlledSrcRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,wBAAwB,MAAM,iCAAiC,CAAC;AACvE,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,sBAAsB,MAAM,+BAA+B,CAAC;AACnE,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAC3D,OAAO,4BAA4B,MAAM,uCAAuC,CAAC;AACjF,OAAO,2BAA2B,MAAM,oCAAoC,CAAC;AAC7E,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAC1D,4BAA4B,CAC7B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,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 CheckboxDefault } from './checkbox-default.story';\nexport { default as CheckboxIndeterminate } from './checkbox-indeterminate.story';\nexport { default as CheckboxNoLabel } from './checkbox-no-label.story';\nexport { default as CheckboxDisabled } from './checkbox-disabled.story';\nexport { default as CheckboxFluid } from './checkbox-fluid.story';\nexport { default as CheckboxHasLabelBefore } from './checkbox-has-label-before.story';\nexport { default as CheckboxFull } from './checkbox-full.story';\nexport { default as CheckboxControlled } from './checkbox-controlled.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport CheckboxControlledSrcRaw from './checkbox-controlled.story?raw';\nimport CheckboxDefaultSrcRaw from './checkbox-default.story?raw';\nimport CheckboxDisabledSrcRaw from './checkbox-disabled.story?raw';\nimport CheckboxFluidSrcRaw from './checkbox-fluid.story?raw';\nimport CheckboxFullSrcRaw from './checkbox-full.story?raw';\nimport CheckboxHasLabelBeforeSrcRaw from './checkbox-has-label-before.story?raw';\nimport CheckboxIndeterminateSrcRaw from './checkbox-indeterminate.story?raw';\nimport CheckboxNoLabelSrcRaw from './checkbox-no-label.story?raw';\n\nexport const CheckboxDefaultSrc = removeLicenseHeader(CheckboxDefaultSrcRaw);\nexport const CheckboxIndeterminateSrc = removeLicenseHeader(\n CheckboxIndeterminateSrcRaw,\n);\nexport const CheckboxNoLabelSrc = removeLicenseHeader(CheckboxNoLabelSrcRaw);\nexport const CheckboxDisabledSrc = removeLicenseHeader(CheckboxDisabledSrcRaw);\nexport const CheckboxFluidSrc = removeLicenseHeader(CheckboxFluidSrcRaw);\nexport const CheckboxFullSrc = removeLicenseHeader(CheckboxFullSrcRaw);\nexport const CheckboxHasLabelBeforeSrc = removeLicenseHeader(\n CheckboxHasLabelBeforeSrcRaw,\n);\nexport const CheckboxControlledSrc = removeLicenseHeader(\n CheckboxControlledSrcRaw,\n);\n"]}
@@ -36,6 +36,7 @@ import { Tooltip } from '../tooltip';
36
36
  export const Code = (_a) => {
37
37
  var { children, className, isDisabled = false, style, isRunnable = false, description, onClick, as, ref, htmlAttributes } = _a, restProps = __rest(_a, ["children", "className", "isDisabled", "style", "isRunnable", "description", "onClick", "as", "ref", "htmlAttributes"]);
38
38
  const Component = as !== null && as !== void 0 ? as : (onClick ? 'button' : 'span');
39
+ const isButton = Component === 'button';
39
40
  const classes = classNames('ndl-code', {
40
41
  'ndl-disabled': isDisabled,
41
42
  'ndl-runnable': isRunnable,
@@ -47,6 +48,6 @@ export const Code = (_a) => {
47
48
  }
48
49
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
49
50
  };
50
- return (_jsx(ConditionalWrap, { shouldWrap: Boolean(description) === true, wrap: (children) => (_jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: Component === 'button', children: children }), _jsx(Tooltip.Content, { children: description })] })), children: _jsx(Component, Object.assign({ className: classes, style: style, onClick: handleClick, disabled: isDisabled, ref: ref }, restProps, htmlAttributes, { children: _jsx("code", { children: children }) })) }));
51
+ return (_jsx(ConditionalWrap, { shouldWrap: Boolean(description) === true, wrap: (children) => (_jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: Component === 'button', children: children }), _jsx(Tooltip.Content, { children: description })] })), children: _jsx(Component, Object.assign({ className: classes, style: style, onClick: handleClick, disabled: isButton ? isDisabled : undefined, "aria-disabled": !isButton && isDisabled ? true : undefined, ref: ref }, restProps, htmlAttributes, { children: _jsx("code", { children: children }) })) }));
51
52
  };
52
53
  //# sourceMappingURL=Code.js.map