bestax-mcp 0.0.0
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/README.md +90 -0
- package/data/catalog.json +1869 -0
- package/data/components/Autocomplete.json +604 -0
- package/data/components/Avatar.json +220 -0
- package/data/components/Avatars.json +294 -0
- package/data/components/Badge.json +261 -0
- package/data/components/Block.json +105 -0
- package/data/components/Box.json +157 -0
- package/data/components/Breadcrumb.json +155 -0
- package/data/components/Button.json +599 -0
- package/data/components/Buttons.json +533 -0
- package/data/components/Card.json +506 -0
- package/data/components/Carousel.json +512 -0
- package/data/components/Cell.json +154 -0
- package/data/components/Checkbox.json +176 -0
- package/data/components/Checkboxes.json +240 -0
- package/data/components/Code.json +128 -0
- package/data/components/Collapse.json +218 -0
- package/data/components/Column.json +284 -0
- package/data/components/Columns.json +542 -0
- package/data/components/ConfigProvider.json +16 -0
- package/data/components/Container.json +149 -0
- package/data/components/Content.json +228 -0
- package/data/components/Control.json +484 -0
- package/data/components/DateInput.json +872 -0
- package/data/components/DateTimeInput.json +952 -0
- package/data/components/Delete.json +153 -0
- package/data/components/Dialog.json +285 -0
- package/data/components/Divider.json +68 -0
- package/data/components/Dropdown.json +353 -0
- package/data/components/Emphasis.json +99 -0
- package/data/components/Field.json +539 -0
- package/data/components/Figure.json +143 -0
- package/data/components/File.json +403 -0
- package/data/components/Footer.json +109 -0
- package/data/components/Grid.json +357 -0
- package/data/components/Hero.json +340 -0
- package/data/components/Icon.json +232 -0
- package/data/components/IconText.json +307 -0
- package/data/components/Image.json +166 -0
- package/data/components/Input.json +583 -0
- package/data/components/Level.json +332 -0
- package/data/components/Link.json +154 -0
- package/data/components/LinkButton.json +247 -0
- package/data/components/ListItem.json +101 -0
- package/data/components/Loading.json +323 -0
- package/data/components/Media.json +345 -0
- package/data/components/Menu.json +317 -0
- package/data/components/Message.json +303 -0
- package/data/components/Modal.json +444 -0
- package/data/components/Navbar.json +996 -0
- package/data/components/Notification.json +165 -0
- package/data/components/Numberinput.json +364 -0
- package/data/components/OrderedList.json +189 -0
- package/data/components/Pagination.json +619 -0
- package/data/components/Panel.json +582 -0
- package/data/components/Paragraph.json +107 -0
- package/data/components/Pre.json +114 -0
- package/data/components/Progress.json +137 -0
- package/data/components/Radio.json +164 -0
- package/data/components/Radios.json +240 -0
- package/data/components/Rate.json +466 -0
- package/data/components/Reveal.json +177 -0
- package/data/components/Section.json +123 -0
- package/data/components/Select.json +526 -0
- package/data/components/Sidebar.json +488 -0
- package/data/components/Skeleton.json +162 -0
- package/data/components/Slider.json +534 -0
- package/data/components/Span.json +100 -0
- package/data/components/Steps.json +452 -0
- package/data/components/Strong.json +105 -0
- package/data/components/SubTitle.json +233 -0
- package/data/components/Switch.json +291 -0
- package/data/components/Table.json +490 -0
- package/data/components/Tabs.json +592 -0
- package/data/components/Tag.json +197 -0
- package/data/components/Taginput.json +587 -0
- package/data/components/Tags.json +181 -0
- package/data/components/TextArea.json +483 -0
- package/data/components/Theme.json +65 -0
- package/data/components/TimeInput.json +906 -0
- package/data/components/Title.json +240 -0
- package/data/components/Toast.json +308 -0
- package/data/components/Tooltip.json +212 -0
- package/data/components/UnorderedList.json +149 -0
- package/data/components/Valid value constants.json +16 -0
- package/data/components/classNames.json +65 -0
- package/data/components/useBulmaClasses.json +169 -0
- package/data/components/usePrefixedClassNames.json +25 -0
- package/data/skills/bestax-custom-component/SKILL.md +196 -0
- package/data/skills/bestax-custom-component/examples/stat-card.tsx +105 -0
- package/data/skills/bestax-custom-component/references/api.md +90 -0
- package/data/skills/bestax-custom-component/references/component-catalog.md +149 -0
- package/data/skills/bestax-custom-component/references/library-contributor.md +395 -0
- package/data/skills/bestax-custom-component/references/patterns.md +136 -0
- package/data/skills/bestax-form/SKILL.md +254 -0
- package/data/skills/bestax-form/references/api.md +103 -0
- package/data/skills/bestax-form/references/patterns.md +210 -0
- package/data/skills/bestax-icons/SKILL.md +80 -0
- package/data/skills/bestax-icons/examples/icon-usage.tsx +80 -0
- package/data/skills/bestax-icons/references/icon-libraries.md +131 -0
- package/data/skills/bestax-layout-scaffold/SKILL.md +196 -0
- package/data/skills/bestax-layout-scaffold/examples/app-shell.tsx +86 -0
- package/data/skills/bestax-layout-scaffold/examples/card-grid.tsx +106 -0
- package/data/skills/bestax-layout-scaffold/examples/centered.tsx +56 -0
- package/data/skills/bestax-layout-scaffold/examples/content-page.tsx +90 -0
- package/data/skills/bestax-layout-scaffold/examples/landing.tsx +122 -0
- package/data/skills/bestax-layout-scaffold/references/archetypes.md +246 -0
- package/data/skills/bestax-layout-scaffold/references/layout-components.md +269 -0
- package/data/skills/bestax-migrate/SKILL.md +78 -0
- package/data/skills/bestax-migrate/references/component-map.md +91 -0
- package/data/skills/bestax-migrate/references/css-migration.md +100 -0
- package/data/skills/bestax-migrate/references/prop-map.md +48 -0
- package/data/skills/bestax-migrate/references/unmappables.md +124 -0
- package/data/skills/bestax-optimize/SKILL.md +131 -0
- package/data/skills/bestax-optimize/references/modular-build.md +173 -0
- package/data/skills/bestax-theming/SKILL.md +117 -0
- package/data/skills/bestax-theming/examples/dark-mode.tsx +38 -0
- package/data/skills/bestax-theming/examples/theme-config.tsx +60 -0
- package/data/skills/bestax-theming/references/css-variables.md +466 -0
- package/data/skills/bestax-theming/references/themeable-components.md +119 -0
- package/data/skills.json +148 -0
- package/dist/data.d.ts +131 -0
- package/dist/data.d.ts.map +1 -0
- package/dist/data.js +111 -0
- package/dist/format.d.ts +37 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +178 -0
- package/dist/helper-props.d.ts +57 -0
- package/dist/helper-props.d.ts.map +1 -0
- package/dist/helper-props.js +249 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/search.d.ts +32 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +194 -0
- package/dist/server.d.ts +28 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +616 -0
- package/dist/version.d.ts +29 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +147 -0
- package/package.json +70 -0
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Autocomplete",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "form",
|
|
5
|
+
"slug": "form/autocomplete",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/form/autocomplete",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Basic Autocomplete",
|
|
10
|
+
"code": "function example() {\n const [selected, setSelected] = useState(null);\n const fruits = [\n 'Apple',\n 'Banana',\n 'Cherry',\n 'Date',\n 'Elderberry',\n 'Fig',\n 'Grape',\n ];\n\n return (\n <Block>\n <Autocomplete\n data={fruits}\n placeholder=\"Search fruit...\"\n onSelect={setSelected}\n />\n {selected && <Paragraph mt=\"2\">Selected: {selected}</Paragraph>}\n </Block>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Open on Focus",
|
|
14
|
+
"code": "function example() {\n const [selected, setSelected] = useState(null);\n const countries = [\n 'United States',\n 'United Kingdom',\n 'Canada',\n 'Australia',\n 'Germany',\n 'France',\n ];\n\n return (\n <Autocomplete\n data={countries}\n placeholder=\"Select a country...\"\n openOnFocus\n onSelect={setSelected}\n />\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "With Clear Button",
|
|
18
|
+
"code": "function example() {\n const [selected, setSelected] = useState(null);\n const options = ['Option 1', 'Option 2', 'Option 3', 'Option 4'];\n\n return (\n <Autocomplete\n data={options}\n placeholder=\"Search options...\"\n clearable\n onSelect={setSelected}\n />\n );\n}"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Color and Size Variants",
|
|
22
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"4\">\n <Autocomplete\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Primary small\"\n color=\"primary\"\n size=\"small\"\n />\n <Autocomplete\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Info normal\"\n color=\"info\"\n />\n <Autocomplete\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Success medium\"\n color=\"success\"\n size=\"medium\"\n />\n <Autocomplete\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Danger large\"\n color=\"danger\"\n size=\"large\"\n />\n</Block>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "With Object Data",
|
|
26
|
+
"code": "function example() {\n const [selected, setSelected] = useState(null);\n const users = [\n { value: '1', label: 'John Doe', email: 'john@example.com' },\n { value: '2', label: 'Jane Smith', email: 'jane@example.com' },\n { value: '3', label: 'Bob Johnson', email: 'bob@example.com' },\n ];\n\n return (\n <Block>\n <Autocomplete\n data={users}\n field=\"label\"\n placeholder=\"Search users...\"\n openOnFocus\n onSelect={setSelected}\n />\n {selected && (\n <Paragraph mt=\"2\">\n Selected: {selected.label} ({selected.email})\n </Paragraph>\n )}\n </Block>\n );\n}"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Custom Item Template",
|
|
30
|
+
"code": "function example() {\n const [selected, setSelected] = useState(null);\n const users = [\n { value: '1', label: 'John Doe', role: 'Admin' },\n { value: '2', label: 'Jane Smith', role: 'Editor' },\n { value: '3', label: 'Bob Johnson', role: 'Viewer' },\n ];\n\n return (\n <Autocomplete\n data={users}\n field=\"label\"\n placeholder=\"Search users...\"\n openOnFocus\n onSelect={setSelected}\n itemTemplate={item => (\n <Block display=\"flex\" justifyContent=\"space-between\">\n <Span>{item.label}</Span>\n <Tag color=\"info\" light>\n {item.role}\n </Tag>\n </Block>\n )}\n />\n );\n}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "With Empty State",
|
|
34
|
+
"code": "function example() {\n const options = ['Apple', 'Banana', 'Cherry'];\n\n return (\n <Autocomplete\n data={options}\n placeholder=\"Try searching 'xyz'...\"\n empty={\n <Paragraph textColor=\"grey\">\n <Icon name=\"search\" variant=\"solid\" mr=\"2\" />\n No results found\n </Paragraph>\n }\n />\n );\n}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Loading State",
|
|
38
|
+
"code": "<Autocomplete data={[]} placeholder=\"Loading...\" loading />"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Keep First Highlighted",
|
|
42
|
+
"code": "function example() {\n const fruits = [\n 'Apple',\n 'Apricot',\n 'Avocado',\n 'Banana',\n 'Blackberry',\n 'Blueberry',\n ];\n\n return (\n <Autocomplete data={fruits} placeholder=\"Type to filter...\" keepFirst />\n );\n}"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Context-Aware Rendering",
|
|
46
|
+
"code": "<Autocomplete\n label=\"Fruit\"\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Search fruit...\"\n/>"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "Context-Aware Rendering",
|
|
50
|
+
"code": "function example() {\n return (\n <Field horizontal label=\"Fruit\">\n <Field.Body>\n <Field>\n <Autocomplete\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Search fruit...\"\n />\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"title": "Context-Aware Rendering",
|
|
54
|
+
"code": "function example() {\n return (\n <Field horizontal label=\"Fruit\">\n <Field.Body>\n <Field>\n <Control iconLeftName=\"search\">\n <Autocomplete\n data={['Apple', 'Banana', 'Cherry']}\n placeholder=\"Search fruit...\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"accessibility": "- The `label` prop is automatically associated with the inner text input (`htmlFor` plus a generated `id`, or your own `id` if you pass one), so clicking the label focuses the input and assistive technology announces it.\n- A user-supplied `id` is applied to the inner input (the labellable control), not the wrapper div.\n- Uses `role=\"combobox\"` with `aria-expanded`\n- Has `aria-haspopup=\"listbox\"` and `aria-autocomplete=\"list\"`\n- Dropdown items use `role=\"option\"` with `aria-selected`\n- Disabled items have `aria-disabled`\n- Full keyboard navigation support",
|
|
58
|
+
"related": ["Input", "Select", "Taginput"],
|
|
59
|
+
"storybook": "https://bestax.io/storybook/?path=/story/form-autocomplete",
|
|
60
|
+
"summary": "The `Autocomplete` component provides an input field with dropdown suggestions that filter based on user input.",
|
|
61
|
+
"import": "import { Autocomplete } from '@allxsmith/bestax-bulma';",
|
|
62
|
+
"sourceFile": "bulma-ui/src/form/Autocomplete.tsx",
|
|
63
|
+
"rootClass": "autocomplete",
|
|
64
|
+
"parts": [
|
|
65
|
+
{
|
|
66
|
+
"path": "Autocomplete",
|
|
67
|
+
"summary": "The `Autocomplete` component provides an input field with dropdown suggestions that filter based on user input.",
|
|
68
|
+
"component": null,
|
|
69
|
+
"props": [
|
|
70
|
+
{
|
|
71
|
+
"name": "label",
|
|
72
|
+
"type": "React.ReactNode",
|
|
73
|
+
"default": null,
|
|
74
|
+
"description": "Field label. Automatically associated with the text input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Dropped inside an outer `Field` (label that `Field` yourself).",
|
|
75
|
+
"required": false,
|
|
76
|
+
"inherited": false,
|
|
77
|
+
"deprecated": false
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "labelProps",
|
|
81
|
+
"type": "React.LabelHTMLAttributes<HTMLLabelElement> & { [key: string]: unknown; }",
|
|
82
|
+
"default": null,
|
|
83
|
+
"description": "Props for the label element. An explicit `htmlFor` here overrides the automatic association (no id is generated then).",
|
|
84
|
+
"required": false,
|
|
85
|
+
"inherited": false,
|
|
86
|
+
"deprecated": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "id",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"default": null,
|
|
92
|
+
"description": "Applied to the inner text input (the labellable control), not the wrapper div.",
|
|
93
|
+
"required": false,
|
|
94
|
+
"inherited": false,
|
|
95
|
+
"deprecated": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "data",
|
|
99
|
+
"type": "AutocompleteItem[] | string[]",
|
|
100
|
+
"default": "[]",
|
|
101
|
+
"description": "The options data to display (required).",
|
|
102
|
+
"required": false,
|
|
103
|
+
"inherited": false,
|
|
104
|
+
"deprecated": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "value",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"default": null,
|
|
110
|
+
"description": "The current input value (controlled).",
|
|
111
|
+
"required": false,
|
|
112
|
+
"inherited": false,
|
|
113
|
+
"deprecated": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "selected",
|
|
117
|
+
"type": "AutocompleteItem | string | null",
|
|
118
|
+
"default": null,
|
|
119
|
+
"description": "The selected item (controlled).",
|
|
120
|
+
"required": false,
|
|
121
|
+
"inherited": false,
|
|
122
|
+
"deprecated": false
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "placeholder",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"default": null,
|
|
128
|
+
"description": "Placeholder text for the input.",
|
|
129
|
+
"required": false,
|
|
130
|
+
"inherited": false,
|
|
131
|
+
"deprecated": false
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "field",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"default": "'label'",
|
|
137
|
+
"description": "Object property to use as the display field.",
|
|
138
|
+
"required": false,
|
|
139
|
+
"inherited": false,
|
|
140
|
+
"deprecated": false
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "clearable",
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"default": "false",
|
|
146
|
+
"description": "Whether to show a clear button.",
|
|
147
|
+
"required": false,
|
|
148
|
+
"inherited": false,
|
|
149
|
+
"deprecated": false
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "openOnFocus",
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"default": "false",
|
|
155
|
+
"description": "Open dropdown when input is focused.",
|
|
156
|
+
"required": false,
|
|
157
|
+
"inherited": false,
|
|
158
|
+
"deprecated": false
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "keepFirst",
|
|
162
|
+
"type": "boolean",
|
|
163
|
+
"default": "false",
|
|
164
|
+
"description": "Keep first option highlighted.",
|
|
165
|
+
"required": false,
|
|
166
|
+
"inherited": false,
|
|
167
|
+
"deprecated": false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "keepOpen",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": "false",
|
|
173
|
+
"description": "Keep dropdown open after selection.",
|
|
174
|
+
"required": false,
|
|
175
|
+
"inherited": false,
|
|
176
|
+
"deprecated": false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "selectOnClickOutside",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"default": "false",
|
|
182
|
+
"description": "Select highlighted item on click outside.",
|
|
183
|
+
"required": false,
|
|
184
|
+
"inherited": false,
|
|
185
|
+
"deprecated": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "maxHeight",
|
|
189
|
+
"type": "number",
|
|
190
|
+
"default": "200",
|
|
191
|
+
"description": "Maximum dropdown height in pixels.",
|
|
192
|
+
"required": false,
|
|
193
|
+
"inherited": false,
|
|
194
|
+
"deprecated": false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "dropdown",
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"default": "false",
|
|
200
|
+
"description": "Render as dropdown style.",
|
|
201
|
+
"required": false,
|
|
202
|
+
"inherited": false,
|
|
203
|
+
"deprecated": false
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "loading",
|
|
207
|
+
"type": "boolean",
|
|
208
|
+
"default": "false",
|
|
209
|
+
"description": "Show loading state.",
|
|
210
|
+
"required": false,
|
|
211
|
+
"inherited": false,
|
|
212
|
+
"deprecated": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "disabled",
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"default": "false",
|
|
218
|
+
"description": "Whether the input is disabled.",
|
|
219
|
+
"required": false,
|
|
220
|
+
"inherited": false,
|
|
221
|
+
"deprecated": false
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "checkInfiniteScroll",
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"default": "false",
|
|
227
|
+
"description": "Enables infinite scroll detection in the dropdown.",
|
|
228
|
+
"required": false,
|
|
229
|
+
"inherited": false,
|
|
230
|
+
"deprecated": false
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "infiniteScrollDistance",
|
|
234
|
+
"type": "number",
|
|
235
|
+
"default": "50",
|
|
236
|
+
"description": "Distance in pixels from the bottom to trigger `onInfiniteScroll`.",
|
|
237
|
+
"required": false,
|
|
238
|
+
"inherited": false,
|
|
239
|
+
"deprecated": false
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "color",
|
|
243
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
244
|
+
"default": null,
|
|
245
|
+
"description": "Input color variant.",
|
|
246
|
+
"required": false,
|
|
247
|
+
"inherited": false,
|
|
248
|
+
"deprecated": false
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "size",
|
|
252
|
+
"type": "'small' | 'medium' | 'large'",
|
|
253
|
+
"default": null,
|
|
254
|
+
"description": "Size variant.",
|
|
255
|
+
"required": false,
|
|
256
|
+
"inherited": false,
|
|
257
|
+
"deprecated": false
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "name",
|
|
261
|
+
"type": "string",
|
|
262
|
+
"default": null,
|
|
263
|
+
"description": "Form field name. Forwarded to the inner `<input>`.",
|
|
264
|
+
"required": false,
|
|
265
|
+
"inherited": false,
|
|
266
|
+
"deprecated": false
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "form",
|
|
270
|
+
"type": "string",
|
|
271
|
+
"default": null,
|
|
272
|
+
"description": "Optional id of the form the input belongs to.",
|
|
273
|
+
"required": false,
|
|
274
|
+
"inherited": false,
|
|
275
|
+
"deprecated": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "required",
|
|
279
|
+
"type": "boolean",
|
|
280
|
+
"default": "false",
|
|
281
|
+
"description": "Marks the field as required for native HTML form validation.",
|
|
282
|
+
"required": false,
|
|
283
|
+
"inherited": false,
|
|
284
|
+
"deprecated": false
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "onInput",
|
|
288
|
+
"type": "(value: string) => void",
|
|
289
|
+
"default": null,
|
|
290
|
+
"description": "Callback when input value changes.",
|
|
291
|
+
"required": false,
|
|
292
|
+
"inherited": false,
|
|
293
|
+
"deprecated": false
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "onSelect",
|
|
297
|
+
"type": "(item: AutocompleteItem | string | null) => void",
|
|
298
|
+
"default": null,
|
|
299
|
+
"description": "Callback when item is selected.",
|
|
300
|
+
"required": false,
|
|
301
|
+
"inherited": false,
|
|
302
|
+
"deprecated": false
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "onActiveChange",
|
|
306
|
+
"type": "(active: boolean) => void",
|
|
307
|
+
"default": null,
|
|
308
|
+
"description": "Callback when dropdown active state changes.",
|
|
309
|
+
"required": false,
|
|
310
|
+
"inherited": false,
|
|
311
|
+
"deprecated": false
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "onInfiniteScroll",
|
|
315
|
+
"type": "() => void",
|
|
316
|
+
"default": null,
|
|
317
|
+
"description": "Callback when scrolled to bottom (infinite scroll).",
|
|
318
|
+
"required": false,
|
|
319
|
+
"inherited": false,
|
|
320
|
+
"deprecated": false
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "itemTemplate",
|
|
324
|
+
"type": "(item: AutocompleteItem | string) => React.ReactNode",
|
|
325
|
+
"default": null,
|
|
326
|
+
"description": "Custom render for items.",
|
|
327
|
+
"required": false,
|
|
328
|
+
"inherited": false,
|
|
329
|
+
"deprecated": false
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "header",
|
|
333
|
+
"type": "React.ReactNode",
|
|
334
|
+
"default": null,
|
|
335
|
+
"description": "Custom header in dropdown.",
|
|
336
|
+
"required": false,
|
|
337
|
+
"inherited": false,
|
|
338
|
+
"deprecated": false
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "footer",
|
|
342
|
+
"type": "React.ReactNode",
|
|
343
|
+
"default": null,
|
|
344
|
+
"description": "Custom footer in dropdown.",
|
|
345
|
+
"required": false,
|
|
346
|
+
"inherited": false,
|
|
347
|
+
"deprecated": false
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "empty",
|
|
351
|
+
"type": "React.ReactNode",
|
|
352
|
+
"default": null,
|
|
353
|
+
"description": "Content to show when no results.",
|
|
354
|
+
"required": false,
|
|
355
|
+
"inherited": false,
|
|
356
|
+
"deprecated": false
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "labelSize",
|
|
360
|
+
"type": "'small' | 'normal' | 'medium' | 'large'",
|
|
361
|
+
"default": null,
|
|
362
|
+
"description": "Size for the label (used in horizontal layouts).",
|
|
363
|
+
"required": false,
|
|
364
|
+
"inherited": true,
|
|
365
|
+
"deprecated": false
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "horizontal",
|
|
369
|
+
"type": "boolean",
|
|
370
|
+
"default": "false",
|
|
371
|
+
"description": "Horizontal field layout.",
|
|
372
|
+
"required": false,
|
|
373
|
+
"inherited": true,
|
|
374
|
+
"deprecated": false
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "message",
|
|
378
|
+
"type": "React.ReactNode",
|
|
379
|
+
"default": null,
|
|
380
|
+
"description": "Help/validation message below the input.",
|
|
381
|
+
"required": false,
|
|
382
|
+
"inherited": true,
|
|
383
|
+
"deprecated": false
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "messageColor",
|
|
387
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
388
|
+
"default": null,
|
|
389
|
+
"description": "Bulma color for the message.",
|
|
390
|
+
"required": false,
|
|
391
|
+
"inherited": true,
|
|
392
|
+
"deprecated": false
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "fieldClassName",
|
|
396
|
+
"type": "string",
|
|
397
|
+
"default": null,
|
|
398
|
+
"description": "Additional CSS classes for the Field wrapper.",
|
|
399
|
+
"required": false,
|
|
400
|
+
"inherited": true,
|
|
401
|
+
"deprecated": false
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"extraProps": [
|
|
405
|
+
{
|
|
406
|
+
"name": "className",
|
|
407
|
+
"type": "string",
|
|
408
|
+
"default": null,
|
|
409
|
+
"description": "Additional CSS classes.",
|
|
410
|
+
"required": false,
|
|
411
|
+
"inherited": false,
|
|
412
|
+
"deprecated": false
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "ref",
|
|
416
|
+
"type": "React.Ref<HTMLInputElement>",
|
|
417
|
+
"default": null,
|
|
418
|
+
"description": "Ref forwarded to the input element.",
|
|
419
|
+
"required": false,
|
|
420
|
+
"inherited": false,
|
|
421
|
+
"deprecated": false
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
425
|
+
"types": []
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"cssVars": [
|
|
429
|
+
{
|
|
430
|
+
"css": "--bulma-autocomplete-dropdown-z-index",
|
|
431
|
+
"sass": "$autocomplete-dropdown-z-index",
|
|
432
|
+
"default": "20",
|
|
433
|
+
"scope": "component"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"css": "--bulma-autocomplete-dropdown-offset",
|
|
437
|
+
"sass": "$autocomplete-dropdown-offset",
|
|
438
|
+
"default": "4px",
|
|
439
|
+
"scope": "component"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"css": "--bulma-autocomplete-dropdown-background",
|
|
443
|
+
"sass": "$autocomplete-dropdown-background",
|
|
444
|
+
"default": "var(--bulma-scheme-main)",
|
|
445
|
+
"scope": "component"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"css": "--bulma-autocomplete-dropdown-radius",
|
|
449
|
+
"sass": "$autocomplete-dropdown-radius",
|
|
450
|
+
"default": "var(--bulma-radius)",
|
|
451
|
+
"scope": "component"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"css": "--bulma-autocomplete-dropdown-shadow",
|
|
455
|
+
"sass": "$autocomplete-dropdown-shadow",
|
|
456
|
+
"default": "var(--bulma-shadow)",
|
|
457
|
+
"scope": "component"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"css": "--bulma-autocomplete-dropdown-padding-y",
|
|
461
|
+
"sass": "$autocomplete-dropdown-padding-y",
|
|
462
|
+
"default": "0.5rem",
|
|
463
|
+
"scope": "component"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"css": "--bulma-autocomplete-item-padding",
|
|
467
|
+
"sass": "$autocomplete-item-padding",
|
|
468
|
+
"default": "0.375rem 1rem",
|
|
469
|
+
"scope": "component"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"css": "--bulma-autocomplete-item-color",
|
|
473
|
+
"sass": "$autocomplete-item-color",
|
|
474
|
+
"default": "var(--bulma-text)",
|
|
475
|
+
"scope": "component"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"css": "--bulma-autocomplete-item-hover-background",
|
|
479
|
+
"sass": "$autocomplete-item-hover-background",
|
|
480
|
+
"default": "hsla(0, 0%, 50%, 0.13)",
|
|
481
|
+
"scope": "component"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"css": "--bulma-autocomplete-item-hover-color",
|
|
485
|
+
"sass": "$autocomplete-item-hover-color",
|
|
486
|
+
"default": "var(--bulma-text-strong)",
|
|
487
|
+
"scope": "component"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"css": "--bulma-autocomplete-item-disabled-color",
|
|
491
|
+
"sass": "$autocomplete-item-disabled-color",
|
|
492
|
+
"default": "var(--bulma-text-weak)",
|
|
493
|
+
"scope": "component"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"css": "--bulma-autocomplete-item-disabled-opacity",
|
|
497
|
+
"sass": "$autocomplete-item-disabled-opacity",
|
|
498
|
+
"default": "0.5",
|
|
499
|
+
"scope": "component"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"css": "--bulma-autocomplete-header-footer-padding",
|
|
503
|
+
"sass": "$autocomplete-header-footer-padding",
|
|
504
|
+
"default": "0.5rem 1rem",
|
|
505
|
+
"scope": "component"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"css": "--bulma-autocomplete-header-footer-color",
|
|
509
|
+
"sass": "$autocomplete-header-footer-color",
|
|
510
|
+
"default": "var(--bulma-text-weak)",
|
|
511
|
+
"scope": "component"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"css": "--bulma-autocomplete-header-footer-size",
|
|
515
|
+
"sass": "$autocomplete-header-footer-size",
|
|
516
|
+
"default": "var(--bulma-size-small)",
|
|
517
|
+
"scope": "component"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"css": "--bulma-autocomplete-border-color",
|
|
521
|
+
"sass": "$autocomplete-border-color",
|
|
522
|
+
"default": "var(--bulma-border)",
|
|
523
|
+
"scope": "component"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"css": "--bulma-autocomplete-border-hover-color",
|
|
527
|
+
"sass": "$autocomplete-border-hover-color",
|
|
528
|
+
"default": "var(--bulma-border-hover)",
|
|
529
|
+
"scope": "component"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"css": "--bulma-autocomplete-icon-hover-color",
|
|
533
|
+
"sass": "$autocomplete-icon-hover-color",
|
|
534
|
+
"default": "var(--bulma-text-strong)",
|
|
535
|
+
"scope": "component"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"css": "--bulma-autocomplete-loader-border-color",
|
|
539
|
+
"sass": "$autocomplete-loader-border-color",
|
|
540
|
+
"default": "var(--bulma-border)",
|
|
541
|
+
"scope": "component"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"css": "--bulma-autocomplete-loader-active-color",
|
|
545
|
+
"sass": "$autocomplete-loader-active-color",
|
|
546
|
+
"default": "var(--bulma-primary)",
|
|
547
|
+
"scope": "component"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"css": "--bulma-autocomplete-loader-duration",
|
|
551
|
+
"sass": "$autocomplete-loader-duration",
|
|
552
|
+
"default": "0.6s",
|
|
553
|
+
"scope": "component"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"css": "--bulma-autocomplete-empty-color",
|
|
557
|
+
"sass": "$autocomplete-empty-color",
|
|
558
|
+
"default": "var(--bulma-text-weak)",
|
|
559
|
+
"scope": "component"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"css": "--bulma-autocomplete-scrollbar-width",
|
|
563
|
+
"sass": "$autocomplete-scrollbar-width",
|
|
564
|
+
"default": "8px",
|
|
565
|
+
"scope": "component"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"css": "--bulma-autocomplete-scrollbar-track",
|
|
569
|
+
"sass": "$autocomplete-scrollbar-track",
|
|
570
|
+
"default": "var(--bulma-scheme-main-bis)",
|
|
571
|
+
"scope": "component"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"css": "--bulma-autocomplete-scrollbar-thumb",
|
|
575
|
+
"sass": "$autocomplete-scrollbar-thumb",
|
|
576
|
+
"default": "var(--bulma-border)",
|
|
577
|
+
"scope": "component"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"css": "--bulma-autocomplete-scrollbar-thumb-hover",
|
|
581
|
+
"sass": "$autocomplete-scrollbar-thumb-hover",
|
|
582
|
+
"default": "var(--bulma-border-hover)",
|
|
583
|
+
"scope": "component"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"css": "--bulma-autocomplete-item-small-padding",
|
|
587
|
+
"sass": "$autocomplete-item-small-padding",
|
|
588
|
+
"default": "0.25rem 0.75rem",
|
|
589
|
+
"scope": "component"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"css": "--bulma-autocomplete-item-medium-padding",
|
|
593
|
+
"sass": "$autocomplete-item-medium-padding",
|
|
594
|
+
"default": "0.5rem 1.25rem",
|
|
595
|
+
"scope": "component"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"css": "--bulma-autocomplete-item-large-padding",
|
|
599
|
+
"sass": "$autocomplete-item-large-padding",
|
|
600
|
+
"default": "0.625rem 1.5rem",
|
|
601
|
+
"scope": "component"
|
|
602
|
+
}
|
|
603
|
+
]
|
|
604
|
+
}
|