@neo4j-ndl/react 5.4.3 → 5.4.4

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 (141) hide show
  1. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js +0 -1
  2. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  3. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js +0 -1
  4. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  5. package/lib/cjs/select/stories/select-async.story.js +1 -3
  6. package/lib/cjs/select/stories/select-async.story.js.map +1 -1
  7. package/lib/cjs/select/stories/select-clean.story.js +1 -3
  8. package/lib/cjs/select/stories/select-clean.story.js.map +1 -1
  9. package/lib/cjs/select/stories/select-controlled.story.js +1 -3
  10. package/lib/cjs/select/stories/select-controlled.story.js.map +1 -1
  11. package/lib/cjs/select/stories/select-creatable.story.js +1 -3
  12. package/lib/cjs/select/stories/select-creatable.story.js.map +1 -1
  13. package/lib/cjs/select/stories/select-custom-label.story.js +1 -3
  14. package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -1
  15. package/lib/cjs/select/stories/select-default.story.js +1 -3
  16. package/lib/cjs/select/stories/select-default.story.js.map +1 -1
  17. package/lib/cjs/select/stories/select-disabled.story.js +1 -3
  18. package/lib/cjs/select/stories/select-disabled.story.js.map +1 -1
  19. package/lib/cjs/select/stories/select-empty.story.js +1 -3
  20. package/lib/cjs/select/stories/select-empty.story.js.map +1 -1
  21. package/lib/cjs/select/stories/select-error-state.story.js +1 -3
  22. package/lib/cjs/select/stories/select-error-state.story.js.map +1 -1
  23. package/lib/cjs/select/stories/select-inside-dialog.story.js +1 -3
  24. package/lib/cjs/select/stories/select-inside-dialog.story.js.map +1 -1
  25. package/lib/cjs/select/stories/select-menu-positionings.story.js +1 -5
  26. package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -1
  27. package/lib/cjs/select/stories/select-multi.story.js +1 -3
  28. package/lib/cjs/select/stories/select-multi.story.js.map +1 -1
  29. package/lib/cjs/select/stories/select-sizes.story.js +1 -5
  30. package/lib/cjs/select/stories/select-sizes.story.js.map +1 -1
  31. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +2 -9
  32. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  33. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +3 -9
  34. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  35. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +2 -8
  36. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  37. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +2 -9
  38. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  39. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +2 -9
  40. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  41. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +2 -9
  42. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  43. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +2 -9
  44. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  45. package/lib/cjs/timezone-picker/TimeZonePicker.js +6 -5
  46. package/lib/cjs/timezone-picker/TimeZonePicker.js.map +1 -1
  47. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js +0 -1
  48. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  49. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js +0 -1
  50. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  51. package/lib/esm/select/stories/select-async.story.js +1 -3
  52. package/lib/esm/select/stories/select-async.story.js.map +1 -1
  53. package/lib/esm/select/stories/select-clean.story.js +1 -3
  54. package/lib/esm/select/stories/select-clean.story.js.map +1 -1
  55. package/lib/esm/select/stories/select-controlled.story.js +1 -3
  56. package/lib/esm/select/stories/select-controlled.story.js.map +1 -1
  57. package/lib/esm/select/stories/select-creatable.story.js +1 -3
  58. package/lib/esm/select/stories/select-creatable.story.js.map +1 -1
  59. package/lib/esm/select/stories/select-custom-label.story.js +1 -3
  60. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -1
  61. package/lib/esm/select/stories/select-default.story.js +1 -3
  62. package/lib/esm/select/stories/select-default.story.js.map +1 -1
  63. package/lib/esm/select/stories/select-disabled.story.js +1 -3
  64. package/lib/esm/select/stories/select-disabled.story.js.map +1 -1
  65. package/lib/esm/select/stories/select-empty.story.js +1 -3
  66. package/lib/esm/select/stories/select-empty.story.js.map +1 -1
  67. package/lib/esm/select/stories/select-error-state.story.js +1 -3
  68. package/lib/esm/select/stories/select-error-state.story.js.map +1 -1
  69. package/lib/esm/select/stories/select-inside-dialog.story.js +1 -3
  70. package/lib/esm/select/stories/select-inside-dialog.story.js.map +1 -1
  71. package/lib/esm/select/stories/select-menu-positionings.story.js +1 -5
  72. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -1
  73. package/lib/esm/select/stories/select-multi.story.js +1 -3
  74. package/lib/esm/select/stories/select-multi.story.js.map +1 -1
  75. package/lib/esm/select/stories/select-sizes.story.js +1 -5
  76. package/lib/esm/select/stories/select-sizes.story.js.map +1 -1
  77. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +2 -9
  78. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  79. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +4 -10
  80. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  81. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +3 -9
  82. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  83. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +2 -9
  84. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  85. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +2 -9
  86. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  87. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +2 -9
  88. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  89. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +2 -9
  90. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  91. package/lib/esm/timezone-picker/TimeZonePicker.js +6 -5
  92. package/lib/esm/timezone-picker/TimeZonePicker.js.map +1 -1
  93. package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts +0 -3
  94. package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts.map +1 -1
  95. package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts +0 -3
  96. package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts.map +1 -1
  97. package/lib/types/select/stories/select-async.story.d.ts +1 -2
  98. package/lib/types/select/stories/select-async.story.d.ts.map +1 -1
  99. package/lib/types/select/stories/select-clean.story.d.ts +1 -2
  100. package/lib/types/select/stories/select-clean.story.d.ts.map +1 -1
  101. package/lib/types/select/stories/select-controlled.story.d.ts +2 -2
  102. package/lib/types/select/stories/select-controlled.story.d.ts.map +1 -1
  103. package/lib/types/select/stories/select-creatable.story.d.ts +1 -2
  104. package/lib/types/select/stories/select-creatable.story.d.ts.map +1 -1
  105. package/lib/types/select/stories/select-custom-label.story.d.ts +1 -2
  106. package/lib/types/select/stories/select-custom-label.story.d.ts.map +1 -1
  107. package/lib/types/select/stories/select-default.story.d.ts +1 -2
  108. package/lib/types/select/stories/select-default.story.d.ts.map +1 -1
  109. package/lib/types/select/stories/select-disabled.story.d.ts +1 -2
  110. package/lib/types/select/stories/select-disabled.story.d.ts.map +1 -1
  111. package/lib/types/select/stories/select-empty.story.d.ts +1 -2
  112. package/lib/types/select/stories/select-empty.story.d.ts.map +1 -1
  113. package/lib/types/select/stories/select-error-state.story.d.ts +1 -2
  114. package/lib/types/select/stories/select-error-state.story.d.ts.map +1 -1
  115. package/lib/types/select/stories/select-inside-dialog.story.d.ts +1 -2
  116. package/lib/types/select/stories/select-inside-dialog.story.d.ts.map +1 -1
  117. package/lib/types/select/stories/select-menu-positionings.story.d.ts +1 -2
  118. package/lib/types/select/stories/select-menu-positionings.story.d.ts.map +1 -1
  119. package/lib/types/select/stories/select-multi.story.d.ts +1 -2
  120. package/lib/types/select/stories/select-multi.story.d.ts.map +1 -1
  121. package/lib/types/select/stories/select-sizes.story.d.ts +1 -2
  122. package/lib/types/select/stories/select-sizes.story.d.ts.map +1 -1
  123. package/lib/types/spotlight/stories/spotlight-fixed-positioning.story.d.ts +1 -3
  124. package/lib/types/spotlight/stories/spotlight-fixed-positioning.story.d.ts.map +1 -1
  125. package/lib/types/spotlight/stories/spotlight-in-dialog.story.d.ts +1 -3
  126. package/lib/types/spotlight/stories/spotlight-in-dialog.story.d.ts.map +1 -1
  127. package/lib/types/spotlight/stories/spotlight-in-side-nav.story.d.ts +1 -3
  128. package/lib/types/spotlight/stories/spotlight-in-side-nav.story.d.ts.map +1 -1
  129. package/lib/types/spotlight/stories/spotlight-with-icon.story.d.ts +1 -3
  130. package/lib/types/spotlight/stories/spotlight-with-icon.story.d.ts.map +1 -1
  131. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts +1 -3
  132. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts.map +1 -1
  133. package/lib/types/spotlight/stories/spotlight-with-label.story.d.ts +1 -3
  134. package/lib/types/spotlight/stories/spotlight-with-label.story.d.ts.map +1 -1
  135. package/lib/types/spotlight/stories/spotlight-with-pointer.story.d.ts +1 -3
  136. package/lib/types/spotlight/stories/spotlight-with-pointer.story.d.ts.map +1 -1
  137. package/lib/types/timezone-picker/TimeZonePicker.d.ts.map +1 -1
  138. package/package.json +1 -2
  139. package/skills/ndl-react/SKILL.md +2 -2
  140. package/skills/ndl-react/components/select.md +13 -30
  141. package/skills/ndl-react/components/spotlight.md +11 -75
@@ -1 +1 @@
1
- {"version":3,"file":"spotlight-with-label.story.d.ts","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-label.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAajD,QAAA,MAAM,SAAS,GAAI,OAAO;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,4CAgDjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"spotlight-with-label.story.d.ts","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-label.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAYjD,QAAA,MAAM,SAAS,+CAwCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -19,8 +19,6 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
- declare const Component: (props: {
23
- isChromatic: boolean;
24
- }) => import("react/jsx-runtime").JSX.Element;
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
25
23
  export default Component;
26
24
  //# sourceMappingURL=spotlight-with-pointer.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spotlight-with-pointer.story.d.ts","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-pointer.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAYjD,QAAA,MAAM,SAAS,GAAI,OAAO;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,4CAgDjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"spotlight-with-pointer.story.d.ts","sourceRoot":"","sources":["../../../../src/spotlight/stories/spotlight-with-pointer.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAWjD,QAAA,MAAM,SAAS,+CAwCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TimeZonePicker.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/TimeZonePicker.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,2HAA2H;IAC3H,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACxC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,qOAqB5B,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,4CAihB3C,CAAC"}
1
+ {"version":3,"file":"TimeZonePicker.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/TimeZonePicker.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,2HAA2H;IAC3H,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACxC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,qOAqB5B,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,4CAkhB3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "5.4.3",
3
+ "version": "5.4.4",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -411,7 +411,6 @@
411
411
  "@vitejs/plugin-react": "5.1.4",
412
412
  "@vitest/coverage-v8": "4.1.10",
413
413
  "a11y-contrast-color": "1.1.0",
414
- "chromatic": "13.3.5",
415
414
  "jsdom": "26.1.0",
416
415
  "leva": "0.10.1",
417
416
  "react": "19.2.5",
@@ -2,7 +2,7 @@
2
2
  name: ndl-react
3
3
  metadata:
4
4
  package: '@neo4j-ndl/react'
5
- version: '5.4.3'
5
+ version: '5.4.4'
6
6
  description: >-
7
7
  Build and edit UI with the Neo4j Needle React design system
8
8
  (@neo4j-ndl/react). Use when adding, composing, or modifying Needle components
@@ -15,7 +15,7 @@ description: >-
15
15
 
16
16
  # Neo4j Needle (@neo4j-ndl/react)
17
17
 
18
- > 📌 Shipped with `@neo4j-ndl/react` v5.4.3. Once installed into your repo (e.g. via
18
+ > 📌 Shipped with `@neo4j-ndl/react` v5.4.4. Once installed into your repo (e.g. via
19
19
  > `npx skills add`) this folder is detached from the package — the installed
20
20
  > package (TypeScript types in `node_modules/@neo4j-ndl/react`) is the source of
21
21
  > truth.
@@ -51,14 +51,13 @@ const EXAMPLE_OPTIONS = [
51
51
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
52
52
  ];
53
53
 
54
- const Component = (props: React.ComponentProps<typeof Select>) => {
54
+ const Component = () => {
55
55
  return (
56
56
  <Select
57
57
  label="Select an option"
58
58
  helpText="Help text"
59
59
  type="select"
60
60
  selectProps={{
61
- menuIsOpen: props.selectProps?.menuIsOpen,
62
61
  options: EXAMPLE_OPTIONS,
63
62
  }}
64
63
  />
@@ -93,7 +92,7 @@ const loadOptions = (inputValue: string) => {
93
92
  });
94
93
  };
95
94
 
96
- const Component = (props: React.ComponentProps<typeof Select>) => {
95
+ const Component = () => {
97
96
  return (
98
97
  <Select
99
98
  label="Label"
@@ -104,7 +103,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
104
103
  defaultOptions: true,
105
104
  isClearable: true,
106
105
  loadOptions,
107
- menuIsOpen: props.selectProps?.menuIsOpen,
108
106
  placeholder: 'Type to search...',
109
107
  }}
110
108
  />
@@ -128,7 +126,7 @@ const EXAMPLE_OPTIONS = [
128
126
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
129
127
  ];
130
128
 
131
- const Component = (props: React.ComponentProps<typeof Select>) => {
129
+ const Component = () => {
132
130
  return (
133
131
  <Select
134
132
  label="Label"
@@ -136,7 +134,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
136
134
  isClean={true}
137
135
  isFluid={false}
138
136
  selectProps={{
139
- menuIsOpen: props.selectProps?.menuIsOpen,
140
137
  options: EXAMPLE_OPTIONS,
141
138
  }}
142
139
  />
@@ -159,7 +156,7 @@ const EXAMPLE_OPTIONS = [
159
156
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
160
157
  ];
161
158
 
162
- const Component = (props: React.ComponentProps<typeof Select>) => {
159
+ const Component = () => {
163
160
  const [value, setValue] = useState<(typeof EXAMPLE_OPTIONS)[number]>(
164
161
  EXAMPLE_OPTIONS[0],
165
162
  );
@@ -171,7 +168,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
171
168
  type="select"
172
169
  selectProps={{
173
170
  isMulti: false,
174
- menuIsOpen: props.selectProps?.menuIsOpen,
175
171
  menuPortalTarget: document.querySelector('body'),
176
172
  onChange: (newValue) => newValue && setValue(newValue),
177
173
  options: EXAMPLE_OPTIONS,
@@ -202,7 +198,7 @@ const EXAMPLE_OPTIONS = [
202
198
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
203
199
  ];
204
200
 
205
- const Component = (props: React.ComponentProps<typeof Select>) => {
201
+ const Component = () => {
206
202
  return (
207
203
  <Select
208
204
  label="Label"
@@ -210,7 +206,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
210
206
  type="creatable"
211
207
  selectProps={{
212
208
  isClearable: true,
213
- menuIsOpen: props.selectProps?.menuIsOpen,
214
209
  options: EXAMPLE_OPTIONS,
215
210
  }}
216
211
  />
@@ -234,7 +229,7 @@ const EXAMPLE_OPTIONS = [
234
229
  { label: 'Graph Databases', value: 'graph-database' },
235
230
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
236
231
  ];
237
- const Component = (props: React.ComponentProps<typeof Select>) => {
232
+ const Component = () => {
238
233
  return (
239
234
  <Select
240
235
  label={
@@ -247,7 +242,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
247
242
  type="select"
248
243
  selectProps={{
249
244
  defaultValue: EXAMPLE_OPTIONS[1],
250
- menuIsOpen: props.selectProps?.menuIsOpen,
251
245
  options: EXAMPLE_OPTIONS,
252
246
  }}
253
247
  />
@@ -271,14 +265,13 @@ const EXAMPLE_OPTIONS = [
271
265
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
272
266
  ];
273
267
 
274
- const Component = (props: React.ComponentProps<typeof Select>) => {
268
+ const Component = () => {
275
269
  return (
276
270
  <Select
277
271
  label="Label"
278
272
  type="select"
279
273
  selectProps={{
280
274
  isDisabled: true,
281
- menuIsOpen: props.selectProps?.menuIsOpen,
282
275
  options: EXAMPLE_OPTIONS,
283
276
  }}
284
277
  />
@@ -295,14 +288,13 @@ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
295
288
 
296
289
  import { Select } from '@neo4j-ndl/react';
297
290
 
298
- const Component = (props: React.ComponentProps<typeof Select>) => {
291
+ const Component = () => {
299
292
  return (
300
293
  <Select
301
294
  label="Label"
302
295
  helpText="Help text"
303
296
  type="select"
304
297
  selectProps={{
305
- menuIsOpen: props.selectProps?.menuIsOpen,
306
298
  options: [],
307
299
  }}
308
300
  />
@@ -326,14 +318,13 @@ const EXAMPLE_OPTIONS = [
326
318
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
327
319
  ];
328
320
 
329
- const Component = (props: React.ComponentProps<typeof Select>) => {
321
+ const Component = () => {
330
322
  return (
331
323
  <Select
332
324
  label="Label"
333
325
  errorText="Validate that your selection is correct"
334
326
  type="select"
335
327
  selectProps={{
336
- menuIsOpen: props.selectProps?.menuIsOpen,
337
328
  options: EXAMPLE_OPTIONS,
338
329
  }}
339
330
  />
@@ -358,7 +349,7 @@ const EXAMPLE_OPTIONS = [
358
349
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
359
350
  ];
360
351
 
361
- const Component = (props: React.ComponentProps<typeof Select>) => {
352
+ const Component = () => {
362
353
  const ref = useRef<HTMLDivElement | null>(null);
363
354
  const [isOpen, setIsOpen] = useState<boolean>(false);
364
355
 
@@ -389,7 +380,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
389
380
  type="select"
390
381
  selectProps={{
391
382
  defaultValue: EXAMPLE_OPTIONS[1],
392
- menuIsOpen: props.selectProps?.menuIsOpen,
393
383
  options: EXAMPLE_OPTIONS,
394
384
  }}
395
385
  />
@@ -414,14 +404,13 @@ const EXAMPLE_OPTIONS = [
414
404
  { label: 'Needle 🪡', value: 'needle' },
415
405
  ];
416
406
 
417
- const Component = (props: React.ComponentProps<typeof Select>) => {
407
+ const Component = () => {
418
408
  return (
419
409
  <div className="flex gap-token-16 pt-token-64">
420
410
  <Select
421
411
  label="Automatic menu placement"
422
412
  type="select"
423
413
  selectProps={{
424
- menuIsOpen: props.selectProps?.menuIsOpen,
425
414
  menuPlacement: 'auto',
426
415
  options: EXAMPLE_OPTIONS,
427
416
  }}
@@ -430,7 +419,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
430
419
  label="Bottom menu placement"
431
420
  type="select"
432
421
  selectProps={{
433
- menuIsOpen: props.selectProps?.menuIsOpen,
434
422
  menuPlacement: 'bottom',
435
423
  options: EXAMPLE_OPTIONS,
436
424
  }}
@@ -439,7 +427,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
439
427
  label="Top menu placement"
440
428
  type="select"
441
429
  selectProps={{
442
- menuIsOpen: props.selectProps?.menuIsOpen,
443
430
  menuPlacement: 'top',
444
431
  options: EXAMPLE_OPTIONS,
445
432
  }}
@@ -465,7 +452,7 @@ const EXAMPLE_OPTIONS = [
465
452
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
466
453
  ];
467
454
 
468
- const Component = (props: React.ComponentProps<typeof Select>) => {
455
+ const Component = () => {
469
456
  return (
470
457
  <Select
471
458
  label="Label"
@@ -474,7 +461,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
474
461
  defaultValue: EXAMPLE_OPTIONS[1],
475
462
  isClearable: true,
476
463
  isMulti: true,
477
- menuIsOpen: props.selectProps?.menuIsOpen,
478
464
  options: EXAMPLE_OPTIONS,
479
465
  }}
480
466
  />
@@ -538,7 +524,7 @@ const EXAMPLE_OPTIONS = [
538
524
  { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
539
525
  ];
540
526
 
541
- const Component = (props: React.ComponentProps<typeof Select>) => {
527
+ const Component = () => {
542
528
  return (
543
529
  <div className="flex gap-token-16">
544
530
  <Select
@@ -546,7 +532,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
546
532
  type="select"
547
533
  size="small"
548
534
  selectProps={{
549
- menuIsOpen: props.selectProps?.menuIsOpen,
550
535
  options: EXAMPLE_OPTIONS,
551
536
  }}
552
537
  />
@@ -555,7 +540,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
555
540
  type="select"
556
541
  size="medium"
557
542
  selectProps={{
558
- menuIsOpen: props.selectProps?.menuIsOpen,
559
543
  options: EXAMPLE_OPTIONS,
560
544
  }}
561
545
  />
@@ -564,7 +548,6 @@ const Component = (props: React.ComponentProps<typeof Select>) => {
564
548
  type="select"
565
549
  size="large"
566
550
  selectProps={{
567
- menuIsOpen: props.selectProps?.menuIsOpen,
568
551
  options: EXAMPLE_OPTIONS,
569
552
  }}
570
553
  />
@@ -86,21 +86,13 @@ import {
86
86
  useNeedleTheme,
87
87
  useSpotlightContext,
88
88
  } from '@neo4j-ndl/react';
89
- import { useEffect } from 'react';
90
89
 
91
- const Component = (props: { isChromatic: boolean }) => {
90
+ const Component = () => {
92
91
  const { themeClassName } = useNeedleTheme();
93
92
  const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
94
93
 
95
94
  const targetId = `test-target-${themeClassName}`;
96
95
 
97
- useEffect(() => {
98
- if (props.isChromatic) {
99
- setActiveSpotlight(targetId);
100
- setIsOpen(true);
101
- }
102
- }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
103
-
104
96
  return (
105
97
  <div className="flex justify-center gap-token-64 h-[100px]">
106
98
  <FilledButton onClick={() => setActiveSpotlight(targetId)}>
@@ -109,7 +101,6 @@ const Component = (props: { isChromatic: boolean }) => {
109
101
  <div className="left-[auto] top-[110px] fixed">
110
102
  <SpotlightTarget
111
103
  id={targetId}
112
- hasPulse={!props.isChromatic}
113
104
  shouldRenderAsChild
114
105
  indicatorVariant="border"
115
106
  indicatorPlacement="middle-middle"
@@ -158,22 +149,15 @@ import {
158
149
  useNeedleTheme,
159
150
  useSpotlightContext,
160
151
  } from '@neo4j-ndl/react';
161
- import { useEffect, useState } from 'react';
152
+ import { useState } from 'react';
162
153
 
163
- const Component = (props: { isChromatic: boolean }) => {
154
+ const Component = () => {
164
155
  const { themeClassName } = useNeedleTheme();
165
156
  const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
166
157
 
167
- const [isModalOpen, setIsModalOpen] = useState<boolean>(props.isChromatic);
158
+ const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
168
159
  const targetId = `test-target-${themeClassName}`;
169
160
 
170
- useEffect(() => {
171
- if (props.isChromatic && isModalOpen) {
172
- setActiveSpotlight(targetId);
173
- setIsOpen(true);
174
- }
175
- }, [isModalOpen, setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
176
-
177
161
  return (
178
162
  <div className="flex justify-center gap-token-64">
179
163
  <FilledButton onClick={() => setIsModalOpen(true)}>
@@ -198,7 +182,6 @@ const Component = (props: { isChromatic: boolean }) => {
198
182
  </FilledButton>
199
183
  <SpotlightTarget
200
184
  id={targetId}
201
- hasPulse={!props.isChromatic}
202
185
  shouldRenderAsChild
203
186
  indicatorVariant="border"
204
187
  >
@@ -247,9 +230,9 @@ import {
247
230
  useNeedleTheme,
248
231
  useSpotlightContext,
249
232
  } from '@neo4j-ndl/react';
250
- import { useEffect, useState } from 'react';
233
+ import { useState } from 'react';
251
234
 
252
- const Component = (props: { isChromatic: boolean }) => {
235
+ const Component = () => {
253
236
  const { themeClassName } = useNeedleTheme();
254
237
  const { setActiveSpotlight, setIsOpen } = useSpotlightContext();
255
238
 
@@ -262,13 +245,6 @@ const Component = (props: { isChromatic: boolean }) => {
262
245
  setIsSelected(item);
263
246
  };
264
247
 
265
- useEffect(() => {
266
- if (props.isChromatic) {
267
- setActiveSpotlight(targetId);
268
- setIsOpen(true);
269
- }
270
- }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
271
-
272
248
  return (
273
249
  <div className="h-[500px] flex">
274
250
  <SideNavigation isExpanded={true} ariaLabel="Main side navigation">
@@ -297,7 +273,6 @@ const Component = (props: { isChromatic: boolean }) => {
297
273
  <SideNavigation.ListItem>
298
274
  <SpotlightTarget
299
275
  id={targetId}
300
- hasPulse={!props.isChromatic}
301
276
  borderRadius={4}
302
277
  indicatorVariant="point"
303
278
  indicatorPlacement="top-right"
@@ -548,21 +523,13 @@ import {
548
523
  useSpotlightContext,
549
524
  } from '@neo4j-ndl/react';
550
525
  import { FingerPrintIconOutline } from '@neo4j-ndl/react/icons';
551
- import { useEffect } from 'react';
552
526
 
553
- const Component = (props: { isChromatic: boolean }) => {
527
+ const Component = () => {
554
528
  const { themeClassName } = useNeedleTheme();
555
529
  const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
556
530
 
557
531
  const targetId = `test-target-${themeClassName}`;
558
532
 
559
- useEffect(() => {
560
- if (props.isChromatic) {
561
- setActiveSpotlight(targetId);
562
- setIsOpen(true);
563
- }
564
- }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
565
-
566
533
  return (
567
534
  <div className="flex justify-center gap-token-64">
568
535
  <FilledButton onClick={() => setActiveSpotlight(targetId)}>
@@ -570,7 +537,6 @@ const Component = (props: { isChromatic: boolean }) => {
570
537
  </FilledButton>
571
538
  <SpotlightTarget
572
539
  id={targetId}
573
- hasPulse={!props.isChromatic}
574
540
  indicatorVariant="border"
575
541
  shouldRenderAsChild
576
542
  >
@@ -619,31 +585,19 @@ import {
619
585
  useNeedleTheme,
620
586
  useSpotlightContext,
621
587
  } from '@neo4j-ndl/react';
622
- import { useEffect } from 'react';
623
588
 
624
- const Component = (props: { isChromatic: boolean }) => {
589
+ const Component = () => {
625
590
  const { themeClassName } = useNeedleTheme();
626
591
  const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
627
592
 
628
593
  const targetId = `test-target-${themeClassName}`;
629
594
 
630
- useEffect(() => {
631
- if (props.isChromatic) {
632
- setActiveSpotlight(targetId);
633
- setIsOpen(true);
634
- }
635
- }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
636
-
637
595
  return (
638
596
  <div className="flex justify-center gap-token-64">
639
597
  <FilledButton onClick={() => setActiveSpotlight(targetId)}>
640
598
  Activate Spotlight
641
599
  </FilledButton>
642
- <SpotlightTarget
643
- id={targetId}
644
- hasPulse={!props.isChromatic}
645
- shouldRenderAsChild
646
- >
600
+ <SpotlightTarget id={targetId} shouldRenderAsChild>
647
601
  <TextButton onClick={() => alert('Target button clicked')}>
648
602
  Target
649
603
  </TextButton>
@@ -690,21 +644,13 @@ import {
690
644
  useNeedleTheme,
691
645
  useSpotlightContext,
692
646
  } from '@neo4j-ndl/react';
693
- import { useEffect } from 'react';
694
647
 
695
- const Component = (props: { isChromatic: boolean }) => {
648
+ const Component = () => {
696
649
  const { themeClassName } = useNeedleTheme();
697
650
  const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
698
651
 
699
652
  const targetId = `test-target-${themeClassName}`;
700
653
 
701
- useEffect(() => {
702
- if (props.isChromatic) {
703
- setActiveSpotlight(targetId);
704
- setIsOpen(true);
705
- }
706
- }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
707
-
708
654
  return (
709
655
  <div className="flex justify-center gap-token-64">
710
656
  <FilledButton onClick={() => setActiveSpotlight(targetId)}>
@@ -712,7 +658,6 @@ const Component = (props: { isChromatic: boolean }) => {
712
658
  </FilledButton>
713
659
  <SpotlightTarget
714
660
  id={targetId}
715
- hasPulse={!props.isChromatic}
716
661
  indicatorVariant="border"
717
662
  shouldRenderAsChild
718
663
  >
@@ -758,21 +703,13 @@ import {
758
703
  useNeedleTheme,
759
704
  useSpotlightContext,
760
705
  } from '@neo4j-ndl/react';
761
- import { useEffect } from 'react';
762
706
 
763
- const Component = (props: { isChromatic: boolean }) => {
707
+ const Component = () => {
764
708
  const { themeClassName } = useNeedleTheme();
765
709
  const { setIsOpen, setActiveSpotlight } = useSpotlightContext();
766
710
 
767
711
  const targetId = `test-target-${themeClassName}`;
768
712
 
769
- useEffect(() => {
770
- if (props.isChromatic) {
771
- setActiveSpotlight(targetId);
772
- setIsOpen(true);
773
- }
774
- }, [setActiveSpotlight, setIsOpen, targetId, props.isChromatic]);
775
-
776
713
  return (
777
714
  <div className="flex justify-center gap-token-64">
778
715
  <FilledButton onClick={() => setActiveSpotlight(targetId)}>
@@ -780,7 +717,6 @@ const Component = (props: { isChromatic: boolean }) => {
780
717
  </FilledButton>
781
718
  <SpotlightTarget
782
719
  id={targetId}
783
- hasPulse={!props.isChromatic}
784
720
  shouldRenderAsChild
785
721
  indicatorVariant="point"
786
722
  indicatorPlacement="top-right"