@neo4j-ndl/react 4.25.1 → 4.25.3
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.
- package/lib/cjs/accordion/Accordion.js +2 -2
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/ai/code-preview/CodePreview.js +3 -1
- package/lib/cjs/ai/code-preview/CodePreview.js.map +1 -1
- package/lib/cjs/ai/preview/Preview.js +3 -1
- package/lib/cjs/ai/preview/Preview.js.map +1 -1
- package/lib/cjs/ai/thinking/Thinking.js +3 -2
- package/lib/cjs/ai/thinking/Thinking.js.map +1 -1
- package/lib/cjs/ai/tool-call/ToolCall.js +2 -2
- package/lib/cjs/ai/tool-call/ToolCall.js.map +1 -1
- package/lib/cjs/clipboard-button/ClipboardButton.js +1 -1
- package/lib/cjs/clipboard-button/ClipboardButton.js.map +1 -1
- package/lib/cjs/code-block/CodeBlock.js +1 -1
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +2 -2
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/date-picker/DatePicker.js +5 -5
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +8 -7
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/dropzone/Dropzone.js +2 -2
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/inline-edit/InlineEdit.js +1 -1
- package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
- package/lib/cjs/inline-edit/stories/inline-edit-default.story.js +2 -1
- package/lib/cjs/inline-edit/stories/inline-edit-default.story.js.map +1 -1
- package/lib/cjs/menu/Menu.js +1 -1
- package/lib/cjs/menu/Menu.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/status-label/StatusLabel.js +1 -18
- package/lib/cjs/status-label/StatusLabel.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +1 -1
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/typography/stories/index.js +2 -1
- package/lib/cjs/typography/stories/index.js.map +1 -1
- package/lib/cjs/typography/stories/typography-anchor.story.js +2 -1
- package/lib/cjs/typography/stories/typography-anchor.story.js.map +1 -1
- package/lib/cjs/typography/stories/typography-default.story.js +2 -1
- package/lib/cjs/typography/stories/typography-default.story.js.map +1 -1
- package/lib/cjs/typography/stories/typography-variants.story.js +2 -1
- package/lib/cjs/typography/stories/typography-variants.story.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js +2 -6
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/accordion/Accordion.js +2 -2
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/ai/code-preview/CodePreview.js +3 -1
- package/lib/esm/ai/code-preview/CodePreview.js.map +1 -1
- package/lib/esm/ai/preview/Preview.js +3 -1
- package/lib/esm/ai/preview/Preview.js.map +1 -1
- package/lib/esm/ai/thinking/Thinking.js +3 -2
- package/lib/esm/ai/thinking/Thinking.js.map +1 -1
- package/lib/esm/ai/tool-call/ToolCall.js +2 -2
- package/lib/esm/ai/tool-call/ToolCall.js.map +1 -1
- package/lib/esm/clipboard-button/ClipboardButton.js +1 -1
- package/lib/esm/clipboard-button/ClipboardButton.js.map +1 -1
- package/lib/esm/code-block/CodeBlock.js +1 -1
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/data-grid/Components.js +2 -2
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/date-picker/DatePicker.js +5 -5
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +8 -7
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/dropzone/Dropzone.js +2 -2
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/inline-edit/InlineEdit.js +1 -1
- package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
- package/lib/esm/inline-edit/stories/inline-edit-default.story.js +2 -1
- package/lib/esm/inline-edit/stories/inline-edit-default.story.js.map +1 -1
- package/lib/esm/menu/Menu.js +1 -1
- package/lib/esm/menu/Menu.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +1 -1
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/status-label/StatusLabel.js +1 -18
- package/lib/esm/status-label/StatusLabel.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +1 -1
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/typography/stories/index.js +2 -1
- package/lib/esm/typography/stories/index.js.map +1 -1
- package/lib/esm/typography/stories/typography-anchor.story.js +2 -1
- package/lib/esm/typography/stories/typography-anchor.story.js.map +1 -1
- package/lib/esm/typography/stories/typography-default.story.js +2 -1
- package/lib/esm/typography/stories/typography-default.story.js.map +1 -1
- package/lib/esm/typography/stories/typography-variants.story.js +2 -1
- package/lib/esm/typography/stories/typography-variants.story.js.map +1 -1
- package/lib/esm/wizard/Wizard.js +2 -6
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/ai/code-preview/CodePreview.d.ts.map +1 -1
- package/lib/types/ai/preview/Preview.d.ts.map +1 -1
- package/lib/types/ai/thinking/Thinking.d.ts.map +1 -1
- package/lib/types/ai/tool-call/ToolCall.d.ts.map +1 -1
- package/lib/types/clipboard-button/ClipboardButton.d.ts.map +1 -1
- package/lib/types/data-grid/Components.d.ts.map +1 -1
- package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
- package/lib/types/dialog/Dialog.d.ts.map +1 -1
- package/lib/types/dropzone/Dropzone.d.ts.map +1 -1
- package/lib/types/inline-edit/stories/inline-edit-default.story.d.ts +2 -1
- package/lib/types/inline-edit/stories/inline-edit-default.story.d.ts.map +1 -1
- package/lib/types/status-label/StatusLabel.d.ts.map +1 -1
- package/lib/types/typography/stories/index.d.ts +2 -1
- package/lib/types/typography/stories/index.d.ts.map +1 -1
- package/lib/types/typography/stories/typography-anchor.story.d.ts.map +1 -1
- package/lib/types/typography/stories/typography-default.story.d.ts +2 -1
- package/lib/types/typography/stories/typography-default.story.d.ts.map +1 -1
- package/lib/types/typography/stories/typography-variants.story.d.ts +2 -1
- package/lib/types/typography/stories/typography-variants.story.d.ts.map +1 -1
- package/package.json +2 -2
- package/skills/ndl-react/SKILL.md +10 -6
- package/skills/ndl-react/references/styling.md +93 -67
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/ai/preview/Preview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWvD,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AA4BF,KAAK,kBAAkB,GAAG;IACxB,uKAAuK;IACvK,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0FAA0F;IAC1F,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAsCF,KAAK,wBAAwB,GAAG;IAC9B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iHAAiH;IACjH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC9C,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AA2DF,KAAK,gBAAgB,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mD;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AA2DF,KAAK,gBAAgB,GAAG;IACtB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,kCAAkC;IAClC,KAAK,CAAC,EAAE,eAAe,GAAG,gBAAgB,CAAC;IAC3C,sLAAsL;IACtL,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA4HF,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAuBF,eAAO,MAAM,OAAO,uEAvSjB,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC;qIAiKhC,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC;0JA7EpC,WAAW,CAAC,KAAK,EAAE,wBAAwB,CAAC;iFAqM5C,WAAW,CAAC,KAAK,EAAE,mBAAmB,CAAC;yFA5PvC,WAAW,CAAC,KAAK,EAAE,kBAAkB,CAAC;CA+QvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thinking.d.ts","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Thinking.d.ts","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,GAAI,iFAQf,WAAW,CAAC,KAAK,EAAE,aAAa,CAAC,4CAoCnC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCall.d.ts","sourceRoot":"","sources":["../../../../src/ai/tool-call/ToolCall.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,KAAK,aAAa,GAAG;IACnB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,GAAI,2EAQf,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"ToolCall.d.ts","sourceRoot":"","sources":["../../../../src/ai/tool-call/ToolCall.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,KAAK,aAAa,GAAG;IACnB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,GAAI,2EAQf,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,4CAyBpC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClipboardButton.d.ts","sourceRoot":"","sources":["../../../src/clipboard-button/ClipboardButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAuMrC;;;GAGG;AACH,UAAU,oBAAoB;IAC5B,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;IACtE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,aAAa,CAAC;CAChE;AAED,eAAO,MAAM,eAAe,GAAI,4FAQ7B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ClipboardButton.d.ts","sourceRoot":"","sources":["../../../src/clipboard-button/ClipboardButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,OAAO,EAAE,GAAG,EAAE,MA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AqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,UAAU,GACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AA2BA,OAAO,eAEN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQpE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAyEpD;;;;;;GAMG;AACH,UAAU,eAAe;IACvB,oDAAoD;IAGpD,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACxD,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;IAClE,kEAAkE;IAClE,oBAAoB,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;IACnE;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,UAAU,GAAI,8JAYxB,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AA2BA,OAAO,eAEN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,c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"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/dialog/Dialog.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAa1B,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AAiYxB,QAAA,MAAM,MAAM,qJAvUT,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC;cAiIjB,CAAC,SAAS,KAAK,CAAC,WAAW,iFAQzC,sBAAsB,CAAC,CAAC,EAAE,kBAAkB,CAAC;cA6I/B,CAAC,SAAS,KAAK,CAAC,WAAW,iFAQzC,sBAAsB,CAAC,CAAC,EAAE,kBAAkB,CAAC;kBAzC3B,CAAC,SAAS,KAAK,CAAC,WAAW,iFAQ7C,sBAAsB,CAAC,CAAC,EAAE,sBAAsB,CAAC;aAnEpC,CAAC,SAAS,KAAK,CAAC,WAAW,kFAQxC,sBAAsB,CAAC,CAAC,EAAE,iBAAiB,CAAC;+EAqH5C,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC;eA3FrB,CAAC,SAAS,KAAK,CAAC,WAAW,iFAQ1C,sBAAsB,CAAC,CAAC,EAAE,mBAAmB,CAAC;CA0G/C,CAAC;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../src/dropzone/Dropzone.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQpD;;;;;;GAMG;A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2C;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAE9B,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAwNF,QAAA,MAAM,QAAQ,wKA9LX,WAAW,CAAC,KAAK,EAAE,aAAa,CAAC;4HAgKjC,WAAW,CAAC,KAAK,EAAE,+BAA+B,CAAC;CAgCpD,CAAC;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-edit-default.story.d.ts","sourceRoot":"","sources":["../../../../src/inline-edit/stories/inline-edit-default.story.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"inline-edit-default.story.d.ts","sourceRoot":"","sources":["../../../../src/inline-edit/stories/inline-edit-default.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,QAAA,MAAM,SAAS,+CAWd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusLabel.d.ts","sourceRoot":"","sources":["../../../src/status-label/StatusLabel.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAM/D;;;;;;GAMG;AAEH,KAAK,yBAAyB,GAAG;IAC/B,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oDAAoD;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;IAE/C,8EAA8E;IAC9E,IAAI,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;IAExC,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+BAA+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../../../src/typography/stories/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAO5E,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography-anchor.story.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/typography-anchor.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typography-anchor.story.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/typography-anchor.story.tsx"],"names":[],"mappings":"AAkBA,QAAA,MAAM,SAAS,+CAQd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography-default.story.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/typography-default.story.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"typography-default.story.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/typography-default.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,QAAA,MAAM,SAAS,+CAId,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography-variants.story.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/typography-variants.story.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"typography-variants.story.d.ts","sourceRoot":"","sources":["../../../../src/typography/stories/typography-variants.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAUH,QAAA,MAAM,SAAS,+CAQd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
"@tanstack/react-table": "8.21.3",
|
|
425
425
|
"react": ">=19.0.0",
|
|
426
426
|
"react-dom": ">=19.0.0",
|
|
427
|
-
"@neo4j-ndl/base": "^4.23.
|
|
427
|
+
"@neo4j-ndl/base": "^4.23.4"
|
|
428
428
|
},
|
|
429
429
|
"dependencies": {
|
|
430
430
|
"@dnd-kit/core": "6.3.1",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: ndl-react
|
|
3
3
|
metadata:
|
|
4
4
|
package: '@neo4j-ndl/react'
|
|
5
|
-
version: '4.25.
|
|
5
|
+
version: '4.25.3'
|
|
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` v4.25.
|
|
18
|
+
> 📌 Shipped with `@neo4j-ndl/react` v4.25.3. 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.
|
|
@@ -49,8 +49,9 @@ Use Neo4j Needle components instead of hand-rolling equivalent UI.
|
|
|
49
49
|
1. **Component props** (e.g. `gap="8"`, `variant="danger"`, `size="small"`) —
|
|
50
50
|
always preferred; type-checked and token-constrained.
|
|
51
51
|
2. **`className`** — for utility classes the component doesn't cover (e.g.
|
|
52
|
-
`n-
|
|
53
|
-
every class against the stylesheet; see the class-names
|
|
52
|
+
`n-text-neutral-text-weak` or `n-body-small` on a plain element or when
|
|
53
|
+
composing). Verify every class against the stylesheet; see the class-names
|
|
54
|
+
rule below.
|
|
54
55
|
3. **`htmlAttributes`** — for native HTML attributes, `aria-*`, and `data-*`
|
|
55
56
|
the component doesn't expose as props. Valid reasons include:
|
|
56
57
|
- `id` — for `aria-controls` references, portal targets, or form label wiring
|
|
@@ -72,8 +73,11 @@ Use Neo4j Needle components instead of hand-rolling equivalent UI.
|
|
|
72
73
|
an `n-` prefix at all — depends on the consuming app, so establish that first
|
|
73
74
|
rather than assuming:
|
|
74
75
|
- No Tailwind build: only classes literally present in
|
|
75
|
-
`node_modules/@neo4j-ndl/base/lib/neo4j-ds-styles.css` apply.
|
|
76
|
-
the
|
|
76
|
+
`node_modules/@neo4j-ndl/base/lib/neo4j-ds-styles.css` apply. That means
|
|
77
|
+
the typography classes (`n-body-medium`, `n-title-1`, …) and the
|
|
78
|
+
safelisted color classes (`n-text-*`, `n-bg-*`, `n-border-*`) — no
|
|
79
|
+
layout or spacing utilities such as `n-flex` or `n-gap-token-8`. Grep it
|
|
80
|
+
for the exact class.
|
|
77
81
|
- Tailwind with the published preset and no override: the preset sets
|
|
78
82
|
`prefix: 'n-'`, so `n-flex` works and `flex` does not.
|
|
79
83
|
- Tailwind where the app's own config sets `prefix` (it overrides the preset,
|
|
@@ -16,12 +16,31 @@ When checking whether a class or custom property exists, grep the built file —
|
|
|
16
16
|
not the source `.pcss` — because Tailwind tree-shakes classes that no source
|
|
17
17
|
file uses.
|
|
18
18
|
|
|
19
|
+
### What the prebuilt stylesheet contains
|
|
20
|
+
|
|
21
|
+
Besides the `ndl-*` component classes and the CSS custom properties, the
|
|
22
|
+
prebuilt stylesheet ships only two groups of `n-` classes:
|
|
23
|
+
|
|
24
|
+
| Group | Classes | Why they ship |
|
|
25
|
+
|-------|---------|---------------|
|
|
26
|
+
| Typography | `n-display`, `n-title-1` … `n-title-4`, `n-subheading-large/medium/small`, `n-body-large/medium/small`, `n-label`, `n-code` | Defined directly in the base typography stylesheet |
|
|
27
|
+
| Semantic colors | `n-text-*`, `n-bg-*`, `n-border-*` for the color families below, plus `hover:` variants (and `active:` for `n-bg-*`) | Safelisted in the Tailwind preset |
|
|
28
|
+
|
|
29
|
+
**No other Tailwind utility is guaranteed to be in the prebuilt stylesheet.**
|
|
30
|
+
Layout, spacing, sizing, radius and shadow utilities — `n-flex`,
|
|
31
|
+
`n-items-center`, `n-gap-token-8`, `n-p-4`, `n-w-full`, `n-rounded-lg`,
|
|
32
|
+
`n-shadow-raised` and the rest — are all absent. A utility only ends up in the
|
|
33
|
+
file if Needle's own component source uses it, and component source no longer
|
|
34
|
+
uses Tailwind utilities at all. To use them, the consuming app needs its own
|
|
35
|
+
Tailwind build; see
|
|
36
|
+
[whether a utility class works](#whether-a-utility-class-works-is-a-property-of-the-app-not-the-class).
|
|
37
|
+
|
|
19
38
|
### Quick verification
|
|
20
39
|
|
|
21
40
|
```sh
|
|
22
41
|
# Does a class exist?
|
|
23
42
|
CSS=node_modules/@neo4j-ndl/base/lib/neo4j-ds-styles.css
|
|
24
|
-
grep -qE '\.n-
|
|
43
|
+
grep -qE '\.n-body-medium\b' "$CSS" && echo "exists" || echo "MISSING"
|
|
25
44
|
|
|
26
45
|
# Does a custom property exist?
|
|
27
46
|
grep -qE -- '--space-8:' "$CSS" && echo "exists" || echo "MISSING"
|
|
@@ -64,7 +83,10 @@ above resolve to the active theme automatically.
|
|
|
64
83
|
|
|
65
84
|
### Space tokens
|
|
66
85
|
|
|
67
|
-
|
|
86
|
+
The custom properties are always available. The utility classes exist only in
|
|
87
|
+
an app with its own Tailwind build — none of them are in the prebuilt CSS.
|
|
88
|
+
|
|
89
|
+
| Token | Value | Utility class (gap; also `p-`, `m-`, `w-`, …) |
|
|
68
90
|
|-------|-------|-----|
|
|
69
91
|
| `--space-2` | 2px | `n-gap-token-2` |
|
|
70
92
|
| `--space-4` | 4px | `n-gap-token-4` |
|
|
@@ -72,8 +94,8 @@ above resolve to the active theme automatically.
|
|
|
72
94
|
| `--space-8` | 8px | `n-gap-token-8` |
|
|
73
95
|
| `--space-12` | 12px | `n-gap-token-12` |
|
|
74
96
|
| `--space-16` | 16px | `n-gap-token-16` |
|
|
75
|
-
| `--space-20` | 20px | `n-gap-token-20`
|
|
76
|
-
| `--space-24` | 24px | `n-gap-token-24`
|
|
97
|
+
| `--space-20` | 20px | `n-gap-token-20` |
|
|
98
|
+
| `--space-24` | 24px | `n-gap-token-24` |
|
|
77
99
|
| `--space-32` | 32px | `n-gap-token-32` |
|
|
78
100
|
| `--space-48` | 48px | `n-gap-token-48` |
|
|
79
101
|
| `--space-64` | 64px | `n-gap-token-64` |
|
|
@@ -97,11 +119,10 @@ them multiplies the spacing you meant by four.
|
|
|
97
119
|
Two gap scales are **defined in the preset**: the token-named one
|
|
98
120
|
(`n-gap-token-2` … `n-gap-token-64`) and Tailwind's numeric one (`n-gap-1`,
|
|
99
121
|
`n-gap-1.5`, `n-gap-2`, `n-gap-3` …). Both are valid wherever Tailwind is
|
|
100
|
-
generating classes
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
is why they are preferred.
|
|
122
|
+
generating classes, and neither is in the prebuilt stylesheet — see
|
|
123
|
+
[which classes work in your app](#whether-a-utility-class-works-is-a-property-of-the-app-not-the-class).
|
|
124
|
+
`Flex` and `Box` accept token values directly (`gap="8"`, `padding="12"`) and
|
|
125
|
+
sidestep the question entirely, which is why they are preferred.
|
|
105
126
|
|
|
106
127
|
### Border-radius tokens
|
|
107
128
|
|
|
@@ -116,12 +137,13 @@ is why they are preferred.
|
|
|
116
137
|
| `--border-radius-3xl` | 24px |
|
|
117
138
|
| `--border-radius-full` | 9999px |
|
|
118
139
|
|
|
119
|
-
`Box` and `Flex` accept `borderRadius="xl"` directly.
|
|
120
|
-
`n-rounded-sm/md/lg/xl/2xl
|
|
140
|
+
`Box` and `Flex` accept `borderRadius="xl"` directly. The preset also defines
|
|
141
|
+
`n-rounded-sm/md/lg/xl/2xl`, but only an app with its own Tailwind build can use
|
|
142
|
+
them — they are not in the prebuilt CSS.
|
|
121
143
|
|
|
122
144
|
### Shadow tokens
|
|
123
145
|
|
|
124
|
-
| Token | Utility class |
|
|
146
|
+
| Token | Utility class (Tailwind build only) |
|
|
125
147
|
|-------|---------------|
|
|
126
148
|
| `--theme-shadow-raised` | `n-shadow-raised` |
|
|
127
149
|
| `--theme-shadow-overlay` | `n-shadow-overlay` |
|
|
@@ -151,7 +173,11 @@ both. Read it before writing a single class.
|
|
|
151
173
|
| | What works |
|
|
152
174
|
|---|-----------|
|
|
153
175
|
| **Yes** — it consumes the Needle preset | Any standard Tailwind utility, generated on demand: `sr-only`, `p-token-6`, `gap-3` and the rest |
|
|
154
|
-
| **No** — it only imports `@neo4j-ndl/base/lib/neo4j-ds-styles.css` | Only the classes
|
|
176
|
+
| **No** — it only imports `@neo4j-ndl/base/lib/neo4j-ds-styles.css` | Only the [typography and safelisted color classes](#what-the-prebuilt-stylesheet-contains). No layout or spacing utilities — everything else silently does nothing |
|
|
177
|
+
|
|
178
|
+
**If you need layout or spacing utilities, the app must run its own Tailwind
|
|
179
|
+
build.** That is the only setup in which a given utility is guaranteed to
|
|
180
|
+
exist.
|
|
155
181
|
|
|
156
182
|
**2. What prefix does it use?**
|
|
157
183
|
|
|
@@ -162,25 +188,33 @@ at all gets only the prebuilt stylesheet's classes, and those are `n-` prefixed.
|
|
|
162
188
|
|
|
163
189
|
Getting this wrong is invisible: a class at the wrong prefix compiles, passes
|
|
164
190
|
type-checking and renders nothing. And it can look fine by accident — in a
|
|
165
|
-
`prefix: ''` app that also imports the prebuilt CSS, `n-
|
|
166
|
-
because it
|
|
191
|
+
`prefix: ''` app that also imports the prebuilt CSS, `n-text-neutral-text-weak`
|
|
192
|
+
still renders because it is safelisted, while `n-flex` does not.
|
|
167
193
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
194
|
+
### Why the prebuilt stylesheet has no layout utilities
|
|
195
|
+
|
|
196
|
+
The prebuilt stylesheet is **not a utility library.** Tailwind only emits a
|
|
197
|
+
utility when a scanned source file uses it, and the production build scans
|
|
198
|
+
only Needle's own component source (`packages/react/src`, excluding stories and
|
|
199
|
+
Playwright specs). Component source does not use Tailwind utilities — components
|
|
200
|
+
style themselves through `ndl-*` classes, with any Tailwind applied inside the
|
|
201
|
+
component stylesheets via `@apply`. `@apply` **inlines the declarations** into
|
|
202
|
+
the component's rule rather than emitting a reusable selector, so `@apply
|
|
203
|
+
n-flex` inside a component stylesheet does not make `.n-flex` available to you.
|
|
204
|
+
|
|
205
|
+
The result is that only the typography classes and the safelisted colors are
|
|
206
|
+
guaranteed. Do not rely on any other utility being in the prebuilt CSS, even if
|
|
207
|
+
you find it in some version of the file.
|
|
173
208
|
|
|
174
209
|
This is also why a class can work in Needle's Storybook and fail in a consuming
|
|
175
|
-
app: the non-production build widens the scan to include
|
|
176
|
-
`packages/storybook/src`, so
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
rather than emitting a reusable `.n-sr-only` selector. It works in Storybook and
|
|
180
|
-
is absent from the published CSS.
|
|
210
|
+
app: the non-production build widens the scan to include stories and
|
|
211
|
+
`packages/storybook/src`, so a class written in a story is generated there.
|
|
212
|
+
`n-sr-only` is a typical example — it works in Storybook and is absent from the
|
|
213
|
+
published CSS.
|
|
181
214
|
|
|
182
|
-
If there is no `tailwind.config` in the app, treat the
|
|
183
|
-
complete set and
|
|
215
|
+
If there is no `tailwind.config` in the app, treat the typography and color
|
|
216
|
+
classes as the complete set of utilities and use component props or inline
|
|
217
|
+
styles with tokens for everything else.
|
|
184
218
|
|
|
185
219
|
An app that wants the full utility set opts into the first setup by consuming the
|
|
186
220
|
preset, which `@neo4j-ndl/base` exports from its main entry:
|
|
@@ -195,13 +229,12 @@ export default {
|
|
|
195
229
|
};
|
|
196
230
|
```
|
|
197
231
|
|
|
198
|
-
###
|
|
232
|
+
### Grep the installed copy
|
|
199
233
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
alone.
|
|
234
|
+
When checking the stylesheet, read the version from
|
|
235
|
+
`node_modules/@neo4j-ndl/base/package.json` and grep *that* copy; never a copy
|
|
236
|
+
from elsewhere on disk (a Needle checkout's `lib/` may be a non-production build
|
|
237
|
+
with Storybook's extra classes in it), and never this document alone.
|
|
205
238
|
|
|
206
239
|
### Two things that are fictional in both setups
|
|
207
240
|
|
|
@@ -218,42 +251,34 @@ been written by generated code more than once:
|
|
|
218
251
|
A `var()` with no fallback renders nothing when the property is undefined, so
|
|
219
252
|
both fail silently rather than loudly.
|
|
220
253
|
|
|
221
|
-
## Layout
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
| Gap | `n-gap-1`, `n-gap-2`, `n-gap-4`, `n-gap-6`, `n-gap-9`, `n-gap-12`; `n-gap-token-2/4/6/8/12/16/32/48/64` | `n-gap-1.5`, `n-gap-3`, `n-gap-5`, `n-gap-8`, `n-gap-16`, `n-gap-token-20`, `n-gap-token-24` |
|
|
240
|
-
| Width | `n-w-full`, `n-w-fit`, `n-w-max`, `n-w-token-32` | `n-w-1/2` and other fractional widths |
|
|
241
|
-
| Padding | `n-p-0`, `n-p-2`, `n-p-3`, `n-p-4`, `n-p-8`, `n-p-14` | `n-p-12`, and the whole `n-p-token-*` scale — prefer `Box padding="12"` |
|
|
242
|
-
| Text align | `n-text-left`, `n-text-center` | `n-text-right` |
|
|
243
|
-
|
|
244
|
-
**A class in the right-hand column compiles and renders nothing in a
|
|
245
|
-
prebuilt-CSS app** — a silent layout bug, invisible to `tsc` and to review.
|
|
246
|
-
Prefer a component prop, or an inline style with a real token.
|
|
254
|
+
## Layout without a Tailwind build
|
|
255
|
+
|
|
256
|
+
In an app that only imports the prebuilt stylesheet, **every layout utility —
|
|
257
|
+
`n-flex`, `n-items-center`, `n-justify-between`, `n-gap-*`, `n-p-*`, `n-w-*`,
|
|
258
|
+
`n-text-right` and the rest — compiles and renders nothing.** It is a silent
|
|
259
|
+
layout bug, invisible to `tsc` and to review. Use these instead:
|
|
260
|
+
|
|
261
|
+
| Need | Use |
|
|
262
|
+
|------|-----|
|
|
263
|
+
| Flex layout, alignment, gap | `<Flex flexDirection="row" alignItems="center" gap="8">` |
|
|
264
|
+
| Padding, radius | `<Box padding="12" borderRadius="xl">` |
|
|
265
|
+
| Text style | `<Typography variant="body-medium">`, or the `n-body-medium`-style classes |
|
|
266
|
+
| Text, background, border color | The safelisted color classes, e.g. `n-bg-neutral-bg-weak` |
|
|
267
|
+
| Anything else (margin, width, …) | An inline `style` using a token: `style={{ margin: 'var(--space-8)' }}` |
|
|
268
|
+
|
|
269
|
+
Check each component's doc for its exact prop names. If the app runs its own
|
|
270
|
+
Tailwind build with the Needle preset, all of these utilities are available
|
|
271
|
+
there and this section does not constrain you.
|
|
247
272
|
|
|
248
273
|
## How to verify before writing
|
|
249
274
|
|
|
250
275
|
1. **Check component props first.** `Flex`, `Box`, `Typography` accept typed
|
|
251
276
|
token values that are always correct — prefer them over utility classes or
|
|
252
277
|
`htmlAttributes`. See the customization hierarchy below.
|
|
253
|
-
2. **Check the
|
|
278
|
+
2. **Check whether the app has its own Tailwind build** and which `prefix` it
|
|
279
|
+
uses. Without one, only typography and color utilities exist.
|
|
280
|
+
3. **Check the stylesheet**: grep `neo4j-ds-styles.css` for the exact class
|
|
254
281
|
or property.
|
|
255
|
-
3. **Check the consuming app's Tailwind config** for `prefix` if you're unsure
|
|
256
|
-
whether `n-` or bare classes are in use.
|
|
257
282
|
4. **Never copy a class from another library** (MUI, Radix, Chakra, plain
|
|
258
283
|
Tailwind). They won't exist in the Needle stylesheet.
|
|
259
284
|
|
|
@@ -267,10 +292,11 @@ more error-prone than the one before it:
|
|
|
267
292
|
`variant="danger"`, `size="small"`, `isFluid`, `ariaLabel`.
|
|
268
293
|
|
|
269
294
|
2. **`className`** — for utility classes the component doesn't cover (e.g.
|
|
270
|
-
`n-
|
|
271
|
-
unchecked strings: verify every class against
|
|
272
|
-
`node_modules/@neo4j-ndl/base/lib/neo4j-ds-styles.css
|
|
273
|
-
|
|
295
|
+
`n-text-neutral-text-weak` or `n-body-small` on a plain element, or when
|
|
296
|
+
composing). These are unchecked strings: verify every class against
|
|
297
|
+
`node_modules/@neo4j-ndl/base/lib/neo4j-ds-styles.css`, or against the app's
|
|
298
|
+
own Tailwind build. Layout utilities such as `n-flex` work only with an app
|
|
299
|
+
Tailwind build. A wrong class compiles and silently renders nothing.
|
|
274
300
|
|
|
275
301
|
3. **`htmlAttributes`** — escape hatch for native HTML attributes, `aria-*`, and
|
|
276
302
|
`data-*` the component doesn't expose as props. Valid reasons, drawn from the
|