@neo4j-ndl/react 4.3.4 → 4.3.6

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 (48) hide show
  1. package/lib/cjs/_common/utils.js +9 -1
  2. package/lib/cjs/_common/utils.js.map +1 -1
  3. package/lib/cjs/text-input/TextInput.js +33 -2
  4. package/lib/cjs/text-input/TextInput.js.map +1 -1
  5. package/lib/cjs/text-input/stories/index.js +9 -1
  6. package/lib/cjs/text-input/stories/index.js.map +1 -1
  7. package/lib/cjs/text-input/stories/text-input-clearable.story.js +30 -0
  8. package/lib/cjs/text-input/stories/text-input-clearable.story.js.map +1 -0
  9. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js +31 -0
  10. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js.map +1 -0
  11. package/lib/cjs/text-input/stories/text-input-with-icons.story.js +1 -3
  12. package/lib/cjs/text-input/stories/text-input-with-icons.story.js.map +1 -1
  13. package/lib/cjs/text-input/stories/text-input.stories.js +61 -35
  14. package/lib/cjs/text-input/stories/text-input.stories.js.map +1 -1
  15. package/lib/cjs/text-link/TextLink.js +3 -4
  16. package/lib/cjs/text-link/TextLink.js.map +1 -1
  17. package/lib/esm/_common/utils.js +7 -0
  18. package/lib/esm/_common/utils.js.map +1 -1
  19. package/lib/esm/text-input/TextInput.js +35 -4
  20. package/lib/esm/text-input/TextInput.js.map +1 -1
  21. package/lib/esm/text-input/stories/index.js +6 -0
  22. package/lib/esm/text-input/stories/index.js.map +1 -1
  23. package/lib/esm/text-input/stories/text-input-clearable.story.js +28 -0
  24. package/lib/esm/text-input/stories/text-input-clearable.story.js.map +1 -0
  25. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js +29 -0
  26. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js.map +1 -0
  27. package/lib/esm/text-input/stories/text-input-with-icons.story.js +3 -5
  28. package/lib/esm/text-input/stories/text-input-with-icons.story.js.map +1 -1
  29. package/lib/esm/text-input/stories/text-input.stories.js +61 -35
  30. package/lib/esm/text-input/stories/text-input.stories.js.map +1 -1
  31. package/lib/esm/text-link/TextLink.js +3 -4
  32. package/lib/esm/text-link/TextLink.js.map +1 -1
  33. package/lib/types/_common/utils.d.ts +1 -0
  34. package/lib/types/_common/utils.d.ts.map +1 -1
  35. package/lib/types/text-input/TextInput.d.ts +5 -1
  36. package/lib/types/text-input/TextInput.d.ts.map +1 -1
  37. package/lib/types/text-input/stories/index.d.ts +4 -0
  38. package/lib/types/text-input/stories/index.d.ts.map +1 -1
  39. package/lib/types/text-input/stories/text-input-clearable.story.d.ts +24 -0
  40. package/lib/types/text-input/stories/text-input-clearable.story.d.ts.map +1 -0
  41. package/lib/types/text-input/stories/text-input-loading-spinner.story.d.ts +24 -0
  42. package/lib/types/text-input/stories/text-input-loading-spinner.story.d.ts.map +1 -0
  43. package/lib/types/text-input/stories/text-input-with-icons.story.d.ts.map +1 -1
  44. package/lib/types/text-input/stories/text-input.stories.d.ts +3 -1
  45. package/lib/types/text-input/stories/text-input.stories.d.ts.map +1 -1
  46. package/lib/types/text-link/TextLink.d.ts +1 -1
  47. package/lib/types/text-link/TextLink.d.ts.map +1 -1
  48. package/package.json +3 -2
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=text-input-clearable.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input-clearable.story.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-clearable.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAId,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=text-input-loading-spinner.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input-loading-spinner.story.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-loading-spinner.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,QAAA,MAAM,SAAS,+CAyBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-input-with-icons.story.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-with-icons.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AASjD,QAAA,MAAM,SAAS,+CAuBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"text-input-with-icons.story.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-with-icons.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAMjD,QAAA,MAAM,SAAS,+CAYd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -35,6 +35,8 @@ export declare const Number: Story;
35
35
  export declare const WithIcons: Story;
36
36
  export declare const Password: Story;
37
37
  export declare const Sizes: Story;
38
- export declare const Loading: Story;
38
+ export declare const SkeletonLoading: Story;
39
39
  export declare const Full: Story;
40
+ export declare const Clearable: Story;
41
+ export declare const Loading: Story;
40
42
  //# sourceMappingURL=text-input.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.stories.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAgCxC,QAAA,MAAM,aAAa,EAAE,IAAI,CAAC,OAAO,SAAS,CAezC,CAAC;AAEF,eAAe,aAAa,CAAC;AAC7B,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,M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eAAO,MAAM,MAAM,EAAE,KAYpB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAYlB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC"}
@@ -37,7 +37,7 @@ type TextLinkProps = {
37
37
  */
38
38
  type?: TextLinkType;
39
39
  /** Specifies where to open the linked document. If omitted and `type` is `"external"` it defaults to `"_blank"`. */
40
- target?: string;
40
+ target?: HTMLAnchorElement['target'];
41
41
  /** Additional class name */
42
42
  className?: string;
43
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../../src/text-link/TextLink.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,KAAK,YAAY,GACb,UAAU,GACV,oBAAoB,GACpB,eAAe,GACf,UAAU,CAAC;AAEf,KAAK,aAAa,GAAG;IACnB,4CAA4C;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,oHAAoH;IACpH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,2FAWzD,sBAAsB,CAAC,CAAC,EAAE,aAAa,CAAC,4CA8B1C,CAAC"}
1
+ {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../../src/text-link/TextLink.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,KAAK,YAAY,GACb,UAAU,GACV,oBAAoB,GACpB,eAAe,GACf,UAAU,CAAC;AAEf,KAAK,aAAa,GAAG;IACnB,4CAA4C;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,oHAAoH;IACpH,MAAM,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAErC,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,2FAWzD,sBAAsB,CAAC,CAAC,EAAE,aAAa,CAAC,4CA4B1C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.3.4",
3
+ "version": "4.3.6",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -66,6 +66,7 @@
66
66
  "@types/tinycolor2": "1.4.6",
67
67
  "@types/yargs": "17.0.33",
68
68
  "@vitejs/plugin-react": "5.0.2",
69
+ "a11y-contrast-color": "1.1.0",
69
70
  "ajv": "8.17.1",
70
71
  "chromatic": "13.3.0",
71
72
  "happo": "6.2.0",
@@ -84,7 +85,7 @@
84
85
  "@tanstack/react-table": "8.21.3",
85
86
  "react": ">=19.0.0",
86
87
  "react-dom": ">=19.0.0",
87
- "@neo4j-ndl/base": "^4.3.3"
88
+ "@neo4j-ndl/base": "^4.3.4"
88
89
  },
89
90
  "dependencies": {
90
91
  "@dnd-kit/core": "6.3.1",