@neo4j-ndl/react 4.3.5 → 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 (36) hide show
  1. package/lib/cjs/text-input/TextInput.js +33 -2
  2. package/lib/cjs/text-input/TextInput.js.map +1 -1
  3. package/lib/cjs/text-input/stories/index.js +9 -1
  4. package/lib/cjs/text-input/stories/index.js.map +1 -1
  5. package/lib/cjs/text-input/stories/text-input-clearable.story.js +30 -0
  6. package/lib/cjs/text-input/stories/text-input-clearable.story.js.map +1 -0
  7. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js +31 -0
  8. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js.map +1 -0
  9. package/lib/cjs/text-input/stories/text-input-with-icons.story.js +1 -3
  10. package/lib/cjs/text-input/stories/text-input-with-icons.story.js.map +1 -1
  11. package/lib/cjs/text-input/stories/text-input.stories.js +61 -35
  12. package/lib/cjs/text-input/stories/text-input.stories.js.map +1 -1
  13. package/lib/esm/text-input/TextInput.js +35 -4
  14. package/lib/esm/text-input/TextInput.js.map +1 -1
  15. package/lib/esm/text-input/stories/index.js +6 -0
  16. package/lib/esm/text-input/stories/index.js.map +1 -1
  17. package/lib/esm/text-input/stories/text-input-clearable.story.js +28 -0
  18. package/lib/esm/text-input/stories/text-input-clearable.story.js.map +1 -0
  19. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js +29 -0
  20. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js.map +1 -0
  21. package/lib/esm/text-input/stories/text-input-with-icons.story.js +3 -5
  22. package/lib/esm/text-input/stories/text-input-with-icons.story.js.map +1 -1
  23. package/lib/esm/text-input/stories/text-input.stories.js +61 -35
  24. package/lib/esm/text-input/stories/text-input.stories.js.map +1 -1
  25. package/lib/types/text-input/TextInput.d.ts +5 -1
  26. package/lib/types/text-input/TextInput.d.ts.map +1 -1
  27. package/lib/types/text-input/stories/index.d.ts +4 -0
  28. package/lib/types/text-input/stories/index.d.ts.map +1 -1
  29. package/lib/types/text-input/stories/text-input-clearable.story.d.ts +24 -0
  30. package/lib/types/text-input/stories/text-input-clearable.story.d.ts.map +1 -0
  31. package/lib/types/text-input/stories/text-input-loading-spinner.story.d.ts +24 -0
  32. package/lib/types/text-input/stories/text-input-loading-spinner.story.d.ts.map +1 -0
  33. package/lib/types/text-input/stories/text-input-with-icons.story.d.ts.map +1 -1
  34. package/lib/types/text-input/stories/text-input.stories.d.ts +3 -1
  35. package/lib/types/text-input/stories/text-input.stories.d.ts.map +1 -1
  36. package/package.json +2 -2
@@ -21,200 +21,226 @@
21
21
 
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  import { TextInput } from '../../index';
24
- import { TextInputDefault, TextInputDefaultSource, TextInputDisabled, TextInputDisabledSource, TextInputEmail, TextInputEmailSource, TextInputError, TextInputErrorSource, TextInputFull, TextInputFullSource, TextInputInformationIcon, TextInputInformationIconSource, TextInputLoading, TextInputLoadingSource, TextInputNumber, TextInputNumberSource, TextInputOptional, TextInputOptionalSource, TextInputPassword, TextInputPasswordSource, TextInputReadonly, TextInputReadonlySource, TextInputRequired, TextInputRequiredSource, TextInputSizes, TextInputSizesSource, TextInputWithIcons, TextInputWithIconsSource, } from '.';
24
+ import { TextInputClearable, TextInputClearableSource, TextInputDefault, TextInputDefaultSource, TextInputDisabled, TextInputDisabledSource, TextInputEmail, TextInputEmailSource, TextInputError, TextInputErrorSource, TextInputFull, TextInputFullSource, TextInputInformationIcon, TextInputInformationIconSource, TextInputLoading, TextInputLoadingSource, TextInputLoadingSpinner, TextInputLoadingSpinnerSource, TextInputNumber, TextInputNumberSource, TextInputOptional, TextInputOptionalSource, TextInputPassword, TextInputPasswordSource, TextInputReadonly, TextInputReadonlySource, TextInputRequired, TextInputRequiredSource, TextInputSizes, TextInputSizesSource, TextInputWithIcons, TextInputWithIconsSource, } from '.';
25
25
  const componentMeta = {
26
- title: 'Components/TextInput',
27
- id: 'components-text-input',
28
26
  component: TextInput,
29
- tags: ['docsPage'],
30
- parameters: {
31
- controls: { disable: true },
32
- },
33
27
  decorators: [
34
28
  (Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) })),
35
29
  ],
30
+ id: 'components-text-input',
31
+ parameters: {
32
+ controls: { disable: true },
33
+ },
34
+ tags: ['docsPage'],
35
+ title: 'Components/TextInput',
36
36
  };
37
37
  export default componentMeta;
38
38
  export const Default = {
39
39
  args: {},
40
- render: TextInputDefault,
41
40
  parameters: {
42
41
  docs: {
43
42
  source: {
43
+ code: TextInputDefaultSource,
44
44
  language: 'tsx',
45
45
  type: 'code',
46
- code: TextInputDefaultSource,
47
46
  },
48
47
  },
49
48
  },
49
+ render: TextInputDefault,
50
50
  };
51
51
  export const Required = {
52
52
  args: {},
53
- render: TextInputRequired,
54
53
  parameters: {
55
54
  docs: {
56
55
  source: {
56
+ code: TextInputRequiredSource,
57
57
  language: 'tsx',
58
58
  type: 'code',
59
- code: TextInputRequiredSource,
60
59
  },
61
60
  },
62
61
  },
62
+ render: TextInputRequired,
63
63
  };
64
64
  export const Optional = {
65
65
  args: {},
66
- render: TextInputOptional,
67
66
  parameters: {
68
67
  docs: {
69
68
  source: {
69
+ code: TextInputOptionalSource,
70
70
  language: 'tsx',
71
71
  type: 'code',
72
- code: TextInputOptionalSource,
73
72
  },
74
73
  },
75
74
  },
75
+ render: TextInputOptional,
76
76
  };
77
77
  export const Disabled = {
78
78
  args: {},
79
- render: TextInputDisabled,
80
79
  parameters: {
81
80
  docs: {
82
81
  source: {
82
+ code: TextInputDisabledSource,
83
83
  language: 'tsx',
84
84
  type: 'code',
85
- code: TextInputDisabledSource,
86
85
  },
87
86
  },
88
87
  },
88
+ render: TextInputDisabled,
89
89
  };
90
90
  export const Readonly = {
91
91
  args: {},
92
- render: TextInputReadonly,
93
92
  parameters: {
94
93
  docs: {
95
94
  source: {
95
+ code: TextInputReadonlySource,
96
96
  language: 'tsx',
97
97
  type: 'code',
98
- code: TextInputReadonlySource,
99
98
  },
100
99
  },
101
100
  },
101
+ render: TextInputReadonly,
102
102
  };
103
103
  export const Error = {
104
104
  args: {},
105
- render: TextInputError,
106
105
  parameters: {
107
106
  docs: {
108
107
  source: {
108
+ code: TextInputErrorSource,
109
109
  language: 'tsx',
110
110
  type: 'code',
111
- code: TextInputErrorSource,
112
111
  },
113
112
  },
114
113
  },
114
+ render: TextInputError,
115
115
  };
116
116
  export const InformationIcon = {
117
117
  args: {},
118
- render: TextInputInformationIcon,
119
118
  parameters: {
120
119
  docs: {
121
120
  source: {
121
+ code: TextInputInformationIconSource,
122
122
  language: 'tsx',
123
123
  type: 'code',
124
- code: TextInputInformationIconSource,
125
124
  },
126
125
  },
127
126
  },
127
+ render: TextInputInformationIcon,
128
128
  };
129
129
  export const Email = {
130
130
  args: {},
131
- render: TextInputEmail,
132
131
  parameters: {
133
132
  docs: {
134
133
  source: {
134
+ code: TextInputEmailSource,
135
135
  language: 'tsx',
136
136
  type: 'code',
137
- code: TextInputEmailSource,
138
137
  },
139
138
  },
140
139
  },
140
+ render: TextInputEmail,
141
141
  };
142
142
  export const Number = {
143
143
  args: {},
144
- render: TextInputNumber,
145
144
  parameters: {
146
145
  docs: {
147
146
  source: {
147
+ code: TextInputNumberSource,
148
148
  language: 'tsx',
149
149
  type: 'code',
150
- code: TextInputNumberSource,
151
150
  },
152
151
  },
153
152
  },
153
+ render: TextInputNumber,
154
154
  };
155
155
  export const WithIcons = {
156
156
  args: {},
157
- render: TextInputWithIcons,
158
157
  parameters: {
159
158
  docs: {
160
159
  source: {
160
+ code: TextInputWithIconsSource,
161
161
  language: 'tsx',
162
162
  type: 'code',
163
- code: TextInputWithIconsSource,
164
163
  },
165
164
  },
166
165
  },
166
+ render: TextInputWithIcons,
167
167
  };
168
168
  export const Password = {
169
169
  args: {},
170
- render: TextInputPassword,
171
170
  parameters: {
172
171
  docs: {
173
172
  source: {
173
+ code: TextInputPasswordSource,
174
174
  language: 'tsx',
175
175
  type: 'code',
176
- code: TextInputPasswordSource,
177
176
  },
178
177
  },
179
178
  },
179
+ render: TextInputPassword,
180
180
  };
181
181
  export const Sizes = {
182
182
  args: {},
183
- render: TextInputSizes,
184
183
  parameters: {
185
184
  docs: {
186
185
  source: {
186
+ code: TextInputSizesSource,
187
187
  language: 'tsx',
188
188
  type: 'code',
189
- code: TextInputSizesSource,
190
189
  },
191
190
  },
192
191
  },
192
+ render: TextInputSizes,
193
193
  };
194
- export const Loading = {
194
+ export const SkeletonLoading = {
195
195
  args: {},
196
- render: TextInputLoading,
197
196
  parameters: {
198
197
  docs: {
199
198
  source: {
199
+ code: TextInputLoadingSource,
200
200
  language: 'tsx',
201
201
  type: 'code',
202
- code: TextInputLoadingSource,
203
202
  },
204
203
  },
205
204
  },
205
+ render: TextInputLoading,
206
206
  };
207
207
  export const Full = {
208
208
  args: {},
209
+ parameters: {
210
+ docs: {
211
+ source: {
212
+ code: TextInputFullSource,
213
+ language: 'tsx',
214
+ type: 'code',
215
+ },
216
+ },
217
+ },
209
218
  render: TextInputFull,
219
+ };
220
+ export const Clearable = {
221
+ args: {},
210
222
  parameters: {
211
223
  docs: {
212
224
  source: {
225
+ code: TextInputClearableSource,
226
+ language: 'tsx',
227
+ type: 'code',
228
+ },
229
+ },
230
+ },
231
+ render: TextInputClearable,
232
+ };
233
+ export const Loading = {
234
+ args: {},
235
+ parameters: {
236
+ docs: {
237
+ source: {
238
+ code: TextInputLoadingSpinnerSource,
213
239
  language: 'tsx',
214
240
  type: 'code',
215
- code: TextInputFullSource,
216
241
  },
217
242
  },
218
243
  },
244
+ render: TextInputLoadingSpinner,
219
245
  };
220
246
  //# sourceMappingURL=text-input.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.stories.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input.stories.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,iBA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OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,sBAAsB;aAC7B;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,aAAa;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,mBAAmB;aAC1B;SACF;KACF;CACF,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 { type Meta, type StoryObj } from '@storybook/react-vite';\n\nimport { TextInput } from '../../index';\nimport {\n TextInputDefault,\n TextInputDefaultSource,\n TextInputDisabled,\n TextInputDisabledSource,\n TextInputEmail,\n TextInputEmailSource,\n TextInputError,\n TextInputErrorSource,\n TextInputFull,\n TextInputFullSource,\n TextInputInformationIcon,\n TextInputInformationIconSource,\n TextInputLoading,\n TextInputLoadingSource,\n TextInputNumber,\n TextInputNumberSource,\n TextInputOptional,\n TextInputOptionalSource,\n TextInputPassword,\n TextInputPasswordSource,\n TextInputReadonly,\n TextInputReadonlySource,\n TextInputRequired,\n TextInputRequiredSource,\n TextInputSizes,\n TextInputSizesSource,\n TextInputWithIcons,\n TextInputWithIconsSource,\n} from '.';\n\nconst componentMeta: Meta<typeof TextInput> = {\n title: 'Components/TextInput',\n id: 'components-text-input',\n component: TextInput,\n tags: ['docsPage'],\n parameters: {\n controls: { disable: true },\n },\n decorators: [\n (Story) => (\n <div className=\"n-flex n-justify-center\">\n <Story />\n </div>\n ),\n ],\n};\n\nexport default componentMeta;\ntype Story = StoryObj<typeof TextInput>;\n\nexport const Default: Story = {\n args: {},\n render: TextInputDefault,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputDefaultSource,\n },\n },\n },\n};\n\nexport const Required: Story = {\n args: {},\n render: TextInputRequired,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputRequiredSource,\n },\n },\n },\n};\n\nexport const Optional: Story = {\n args: {},\n render: TextInputOptional,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputOptionalSource,\n },\n },\n },\n};\n\nexport const Disabled: Story = {\n args: {},\n render: TextInputDisabled,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputDisabledSource,\n },\n },\n },\n};\n\nexport const Readonly: Story = {\n args: {},\n render: TextInputReadonly,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputReadonlySource,\n },\n },\n },\n};\n\nexport const Error: Story = {\n args: {},\n render: TextInputError,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputErrorSource,\n },\n },\n },\n};\n\nexport const InformationIcon: Story = {\n args: {},\n render: TextInputInformationIcon,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputInformationIconSource,\n },\n },\n },\n};\n\nexport const Email: Story = {\n args: {},\n render: TextInputEmail,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputEmailSource,\n },\n },\n },\n};\n\nexport const Number: Story = {\n args: {},\n render: TextInputNumber,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputNumberSource,\n },\n },\n },\n};\n\nexport const WithIcons: Story = {\n args: {},\n render: TextInputWithIcons,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputWithIconsSource,\n },\n },\n },\n};\n\nexport const Password: Story = {\n args: {},\n render: TextInputPassword,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputPasswordSource,\n },\n },\n },\n};\n\nexport const Sizes: Story = {\n args: {},\n render: TextInputSizes,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputSizesSource,\n },\n },\n },\n};\n\nexport const Loading: Story = {\n args: {},\n render: TextInputLoading,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputLoadingSource,\n },\n },\n },\n};\n\nexport const Full: Story = {\n args: {},\n render: TextInputFull,\n parameters: {\n docs: {\n source: {\n language: 'tsx',\n type: 'code',\n code: TextInputFullSource,\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"text-input.stories.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input.stories.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,c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;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,mBAAmB;gBACzB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,wBAAwB;gBAC9B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAA6B;gBACnC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,uBAAuB;CAChC,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 { type Meta, type StoryObj } from '@storybook/react-vite';\n\nimport { TextInput } from '../../index';\nimport {\n TextInputClearable,\n TextInputClearableSource,\n TextInputDefault,\n TextInputDefaultSource,\n TextInputDisabled,\n TextInputDisabledSource,\n TextInputEmail,\n TextInputEmailSource,\n TextInputError,\n TextInputErrorSource,\n TextInputFull,\n TextInputFullSource,\n TextInputInformationIcon,\n TextInputInformationIconSource,\n TextInputLoading,\n TextInputLoadingSource,\n TextInputLoadingSpinner,\n TextInputLoadingSpinnerSource,\n TextInputNumber,\n TextInputNumberSource,\n TextInputOptional,\n TextInputOptionalSource,\n TextInputPassword,\n TextInputPasswordSource,\n TextInputReadonly,\n TextInputReadonlySource,\n TextInputRequired,\n TextInputRequiredSource,\n TextInputSizes,\n TextInputSizesSource,\n TextInputWithIcons,\n TextInputWithIconsSource,\n} from '.';\n\nconst componentMeta: Meta<typeof TextInput> = {\n component: TextInput,\n decorators: [\n (Story) => (\n <div className=\"n-flex n-justify-center\">\n <Story />\n </div>\n ),\n ],\n id: 'components-text-input',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/TextInput',\n};\n\nexport default componentMeta;\ntype Story = StoryObj<typeof TextInput>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputDefault,\n};\n\nexport const Required: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputRequiredSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputRequired,\n};\n\nexport const Optional: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputOptionalSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputOptional,\n};\n\nexport const Disabled: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputDisabledSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputDisabled,\n};\n\nexport const Readonly: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputReadonlySource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputReadonly,\n};\n\nexport const Error: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputErrorSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputError,\n};\n\nexport const InformationIcon: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputInformationIconSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputInformationIcon,\n};\n\nexport const Email: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputEmailSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputEmail,\n};\n\nexport const Number: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputNumberSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputNumber,\n};\n\nexport const WithIcons: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputWithIconsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputWithIcons,\n};\n\nexport const Password: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputPasswordSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputPassword,\n};\n\nexport const Sizes: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputSizesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputSizes,\n};\n\nexport const SkeletonLoading: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputLoadingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputLoading,\n};\n\nexport const Full: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputFullSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputFull,\n};\n\nexport const Clearable: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputClearableSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputClearable,\n};\n\nexport const Loading: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TextInputLoadingSpinnerSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TextInputLoadingSpinner,\n};\n"]}
@@ -62,6 +62,10 @@ type TextInputProps = {
62
62
  isSkeletonLoading?: boolean;
63
63
  /** Additional props forwarded to the underlying Skeleton components */
64
64
  skeletonProps?: React.ComponentProps<typeof Skeleton>;
65
+ /** Whether to show the clear button */
66
+ isClearable?: boolean;
67
+ /** Whether to show the loading spinner */
68
+ isLoading?: boolean;
65
69
  };
66
70
  /**
67
71
  *
@@ -70,6 +74,6 @@ type TextInputProps = {
70
74
  *
71
75
  *
72
76
  */
73
- export declare const TextInput: ({ label, isFluid, errorText, helpText, leadingElement, trailingElement, showRequiredOrOptionalLabel, moreInformationText, size, placeholder, value, tooltipProps, htmlAttributes, isDisabled, isReadOnly, isRequired, onChange, className, style, isSkeletonLoading, skeletonProps, ref, ...restProps }: CommonProps<"input", TextInputProps>) => import("react/jsx-runtime").JSX.Element;
77
+ export declare const TextInput: ({ label, isFluid, errorText, helpText, leadingElement, trailingElement, showRequiredOrOptionalLabel, moreInformationText, size, placeholder, value, tooltipProps, htmlAttributes, isDisabled, isReadOnly, isRequired, onChange, isClearable, className, style, isSkeletonLoading, isLoading, skeletonProps, ref, ...restProps }: CommonProps<"input", TextInputProps>) => import("react/jsx-runtime").JSX.Element;
74
78
  export {};
75
79
  //# sourceMappingURL=TextInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/text-input/TextInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM7E,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,KAAK,cAAc,GAAG;IACpB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,8GAA8G;IAC9G,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,gDAAgD;IAChD,cAAc,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IAEtC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAEjC,mEAAmE;IACnE,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAElC,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,uEAAuE;IACvE,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;IAEtD,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,SAAS,GAAI,iUA0BvB,WAAW,CAAC,OAAO,EAAE,cAAc,CAAC,4CAiPtC,CAAC"}
@@ -32,6 +32,8 @@ export { default as TextInputPassword } from './text-input-password.story';
32
32
  export { default as TextInputSizes } from './text-input-sizes.story';
33
33
  export { default as TextInputLoading } from './text-input-loading.story';
34
34
  export { default as TextInputFull } from './text-input-full.story';
35
+ export { default as TextInputClearable } from './text-input-clearable.story';
36
+ export { default as TextInputLoadingSpinner } from './text-input-loading-spinner.story';
35
37
  export declare const TextInputDefaultSource: string;
36
38
  export declare const TextInputRequiredSource: string;
37
39
  export declare const TextInputOptionalSource: string;
@@ -46,4 +48,6 @@ export declare const TextInputPasswordSource: string;
46
48
  export declare const TextInputSizesSource: string;
47
49
  export declare const TextInputLoadingSource: string;
48
50
  export declare const TextInputFullSource: string;
51
+ export declare const TextInputClearableSource: string;
52
+ export declare const TextInputLoadingSpinnerSource: string;
49
53
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,O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E,OAAO,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAoBxF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,8BAA8B,QAE1C,CAAC;AACF,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAA8C,CAAC;AAC/E,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,6BAA6B,QAEzC,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-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,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO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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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -85,7 +85,7 @@
85
85
  "@tanstack/react-table": "8.21.3",
86
86
  "react": ">=19.0.0",
87
87
  "react-dom": ">=19.0.0",
88
- "@neo4j-ndl/base": "^4.3.3"
88
+ "@neo4j-ndl/base": "^4.3.4"
89
89
  },
90
90
  "dependencies": {
91
91
  "@dnd-kit/core": "6.3.1",