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,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Notification",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/notification",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/notification",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default Notification",
|
|
10
|
+
"code": "<Notification>This is a default notification.</Notification>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Primary Notification",
|
|
14
|
+
"code": "<Notification color=\"primary\">This is a primary notification.</Notification>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Light Variant",
|
|
18
|
+
"code": "<Notification color=\"primary\" isLight>\n This is a light primary notification.\n</Notification>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Success, Warning, Danger, Info, and Link",
|
|
22
|
+
"code": "<>\n <Notification color=\"success\">This is a success notification.</Notification>\n <Notification color=\"warning\">This is a warning notification.</Notification>\n <Notification color=\"danger\">This is a danger notification.</Notification>\n <Notification color=\"info\">This is an info notification.</Notification>\n <Notification color=\"link\">This is a link notification.</Notification>\n</>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "With Dismiss Button",
|
|
26
|
+
"code": "function example() {\n const [visible, setVisible] = React.useState(true);\n\n return (\n <>\n {visible && (\n <Notification hasDelete onDelete={() => setVisible(false)}>\n Click the delete button to dismiss this notification.\n </Notification>\n )}\n </>\n );\n}"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "With Margin",
|
|
30
|
+
"code": "<Notification m=\"4\">This notification has a margin.</Notification>"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Custom Content",
|
|
34
|
+
"code": "<Notification color=\"warning\">\n <Strong>Warning!</Strong> This notification contains{' '}\n <Link href=\"#\">custom content</Link>.\n</Notification>"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"accessibility": "- **Delete button:** Includes `aria-label=\"Close notification\"` for screen readers.\n- **Keyboard:** The delete button is focusable and can be activated by keyboard.\n- **Content:** Use semantic HTML within the notification for best accessibility.\n\n:::tip\nAlways provide clear, actionable text inside notifications.\n:::",
|
|
38
|
+
"related": ["Delete", "useBulmaClasses"],
|
|
39
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-notification--default",
|
|
40
|
+
"summary": "The `Notification` component is a Bulma-styled alert/message area for providing feedback, warnings, or information to users.",
|
|
41
|
+
"import": "import { Notification } from '@allxsmith/bestax-bulma';",
|
|
42
|
+
"sourceFile": "bulma-ui/src/elements/Notification.tsx",
|
|
43
|
+
"rootClass": "notification",
|
|
44
|
+
"parts": [
|
|
45
|
+
{
|
|
46
|
+
"path": "Notification",
|
|
47
|
+
"summary": "The `Notification` component is a Bulma-styled alert/message area for providing feedback, warnings, or information to users.",
|
|
48
|
+
"component": null,
|
|
49
|
+
"props": [
|
|
50
|
+
{
|
|
51
|
+
"name": "className",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"default": null,
|
|
54
|
+
"description": "Additional CSS classes to apply.",
|
|
55
|
+
"required": false,
|
|
56
|
+
"inherited": false,
|
|
57
|
+
"deprecated": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "color",
|
|
61
|
+
"type": "Bulma color",
|
|
62
|
+
"default": null,
|
|
63
|
+
"description": "Bulma color modifier for the notification (renders `is-<color>`). Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`, `white`, `light`, and `dark` have shipped CSS for `.notification`. The other accepted values (`black-bis`, `black-ter`, `grey-darker`, `grey-dark`, `grey`, `grey-light`, `grey-lighter`) emit a class no CSS rule matches, so the notification renders unstyled; they log a console warning in development and will be removed from this union in the next major version.",
|
|
64
|
+
"required": false,
|
|
65
|
+
"inherited": false,
|
|
66
|
+
"deprecated": false,
|
|
67
|
+
"valuesRef": "helpers/valid-values"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "textColor",
|
|
71
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
72
|
+
"default": null,
|
|
73
|
+
"description": "Text color helper.",
|
|
74
|
+
"required": false,
|
|
75
|
+
"inherited": false,
|
|
76
|
+
"deprecated": false,
|
|
77
|
+
"valuesRef": "helpers/valid-values"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "isLight",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": "false",
|
|
83
|
+
"description": "Use the light color variant.",
|
|
84
|
+
"required": false,
|
|
85
|
+
"inherited": false,
|
|
86
|
+
"deprecated": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "hasDelete",
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"default": "false",
|
|
92
|
+
"description": "Shows a close (delete) button in the notification.",
|
|
93
|
+
"required": false,
|
|
94
|
+
"inherited": false,
|
|
95
|
+
"deprecated": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "onDelete",
|
|
99
|
+
"type": "() => void",
|
|
100
|
+
"default": null,
|
|
101
|
+
"description": "Callback fired when the delete button is clicked.",
|
|
102
|
+
"required": false,
|
|
103
|
+
"inherited": false,
|
|
104
|
+
"deprecated": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "children",
|
|
108
|
+
"type": "React.ReactNode",
|
|
109
|
+
"default": null,
|
|
110
|
+
"description": "Content inside the notification.",
|
|
111
|
+
"required": false,
|
|
112
|
+
"inherited": false,
|
|
113
|
+
"deprecated": false
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"extraProps": [],
|
|
117
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
118
|
+
"types": []
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"cssVars": [
|
|
122
|
+
{
|
|
123
|
+
"css": "--bulma-notification-h",
|
|
124
|
+
"sass": null,
|
|
125
|
+
"default": "var(--bulma-scheme-h)",
|
|
126
|
+
"scope": "component"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"css": "--bulma-notification-s",
|
|
130
|
+
"sass": null,
|
|
131
|
+
"default": "var(--bulma-scheme-s)",
|
|
132
|
+
"scope": "component"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"css": "--bulma-notification-background-l",
|
|
136
|
+
"sass": null,
|
|
137
|
+
"default": "var(--bulma-background-l)",
|
|
138
|
+
"scope": "component"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"css": "--bulma-notification-color-l",
|
|
142
|
+
"sass": null,
|
|
143
|
+
"default": "var(--bulma-text-strong-l)",
|
|
144
|
+
"scope": "component"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"css": "--bulma-notification-code-background-color",
|
|
148
|
+
"sass": "$notification-code-background-color",
|
|
149
|
+
"default": "var(--bulma-scheme-main)",
|
|
150
|
+
"scope": "component"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"css": "--bulma-notification-radius",
|
|
154
|
+
"sass": "$notification-radius",
|
|
155
|
+
"default": "var(--bulma-radius)",
|
|
156
|
+
"scope": "component"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"css": "--bulma-notification-padding",
|
|
160
|
+
"sass": "$notification-padding",
|
|
161
|
+
"default": "1.375em 1.5em",
|
|
162
|
+
"scope": "component"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Numberinput",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "form",
|
|
5
|
+
"slug": "form/numberinput",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/form/numberinput",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Basic Numberinput",
|
|
10
|
+
"code": "function example() {\n const [value, setValue] = useState(5);\n return (\n <Block>\n <Numberinput value={value} onChange={setValue} />\n <Paragraph mt=\"2\">Value: {value}</Paragraph>\n </Block>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "With Min and Max",
|
|
14
|
+
"code": "function example() {\n const [quantity, setQuantity] = useState(1);\n return (\n <Block>\n <Paragraph mb=\"2\">Quantity (1-10):</Paragraph>\n <Numberinput\n value={quantity}\n onChange={setQuantity}\n min={1}\n max={10}\n color=\"primary\"\n />\n </Block>\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Color Variants",
|
|
18
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"4\">\n <Numberinput defaultValue={5} color=\"primary\" />\n <Numberinput defaultValue={5} color=\"success\" />\n <Numberinput defaultValue={5} color=\"info\" />\n <Numberinput defaultValue={5} color=\"warning\" />\n <Numberinput defaultValue={5} color=\"danger\" />\n</Block>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Size Variants",
|
|
22
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"4\">\n <Numberinput defaultValue={5} size=\"small\" color=\"primary\" />\n <Numberinput defaultValue={5} color=\"primary\" />\n <Numberinput defaultValue={5} size=\"medium\" color=\"primary\" />\n <Numberinput defaultValue={5} size=\"large\" color=\"primary\" />\n</Block>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Controls Position",
|
|
26
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"4\">\n <Block>\n <Paragraph mb=\"1\">Both sides (default)</Paragraph>\n <Numberinput defaultValue={5} controlsPosition=\"both\" color=\"primary\" />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Left only</Paragraph>\n <Numberinput defaultValue={5} controlsPosition=\"left\" color=\"info\" />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Right only</Paragraph>\n <Numberinput defaultValue={5} controlsPosition=\"right\" color=\"success\" />\n </Block>\n</Block>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Rounded Buttons",
|
|
30
|
+
"code": "<Numberinput defaultValue={5} controlsRounded color=\"primary\" />"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Custom Step",
|
|
34
|
+
"code": "function example() {\n const [value, setValue] = useState(0);\n return (\n <Block>\n <Paragraph mb=\"2\">Step by 10:</Paragraph>\n <Numberinput\n value={value}\n onChange={setValue}\n step={10}\n min={0}\n max={100}\n color=\"info\"\n />\n <Paragraph mt=\"2\">Value: {value}</Paragraph>\n </Block>\n );\n}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Read-only Input",
|
|
38
|
+
"code": "<Numberinput defaultValue={5} editable={false} color=\"primary\" />"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Disabled State",
|
|
42
|
+
"code": "<Numberinput defaultValue={5} disabled />"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Context-Aware Rendering",
|
|
46
|
+
"code": "<Numberinput\n label=\"Quantity\"\n defaultValue={1}\n min={1}\n max={10}\n color=\"primary\"\n/>"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "Context-Aware Rendering",
|
|
50
|
+
"code": "function example() {\n return (\n <Field horizontal label=\"Quantity\">\n <Field.Body>\n <Field>\n <Numberinput defaultValue={1} min={1} max={10} color=\"primary\" />\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=\"Quantity\">\n <Field.Body>\n <Field>\n <Control iconLeftName=\"hashtag\">\n <Numberinput defaultValue={1} min={1} max={10} color=\"primary\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"accessibility": "- Uses native number input element\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- +/- buttons have `aria-label` for screen readers\n- Arrow keys increment/decrement the value\n- Buttons are disabled at min/max boundaries",
|
|
58
|
+
"related": ["Input", "Slider"],
|
|
59
|
+
"storybook": "https://bestax.io/storybook/?path=/story/form-numberinput",
|
|
60
|
+
"summary": "The `Numberinput` component provides a number input with increment/decrement buttons.",
|
|
61
|
+
"import": "import { Numberinput } from '@allxsmith/bestax-bulma';",
|
|
62
|
+
"sourceFile": "bulma-ui/src/form/Numberinput.tsx",
|
|
63
|
+
"rootClass": "numberinput",
|
|
64
|
+
"parts": [
|
|
65
|
+
{
|
|
66
|
+
"path": "Numberinput",
|
|
67
|
+
"summary": "The `Numberinput` component provides a number input with increment/decrement buttons.",
|
|
68
|
+
"component": null,
|
|
69
|
+
"props": [
|
|
70
|
+
{
|
|
71
|
+
"name": "label",
|
|
72
|
+
"type": "React.ReactNode",
|
|
73
|
+
"default": null,
|
|
74
|
+
"description": "Field label. Automatically associated with the number input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Not wired when no Field wrapper is rendered (inside a `Field`, or plusminus `bare`).",
|
|
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": "value",
|
|
90
|
+
"type": "number",
|
|
91
|
+
"default": null,
|
|
92
|
+
"description": "Controlled value.",
|
|
93
|
+
"required": false,
|
|
94
|
+
"inherited": false,
|
|
95
|
+
"deprecated": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "defaultValue",
|
|
99
|
+
"type": "number",
|
|
100
|
+
"default": null,
|
|
101
|
+
"description": "Default value for uncontrolled usage.",
|
|
102
|
+
"required": false,
|
|
103
|
+
"inherited": false,
|
|
104
|
+
"deprecated": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "min",
|
|
108
|
+
"type": "number",
|
|
109
|
+
"default": null,
|
|
110
|
+
"description": "Minimum allowed value.",
|
|
111
|
+
"required": false,
|
|
112
|
+
"inherited": false,
|
|
113
|
+
"deprecated": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "max",
|
|
117
|
+
"type": "number",
|
|
118
|
+
"default": null,
|
|
119
|
+
"description": "Maximum allowed value.",
|
|
120
|
+
"required": false,
|
|
121
|
+
"inherited": false,
|
|
122
|
+
"deprecated": false
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "step",
|
|
126
|
+
"type": "number",
|
|
127
|
+
"default": "1",
|
|
128
|
+
"description": "Step increment (default: 1).",
|
|
129
|
+
"required": false,
|
|
130
|
+
"inherited": false,
|
|
131
|
+
"deprecated": false
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "size",
|
|
135
|
+
"type": "'small' | 'medium' | 'large'",
|
|
136
|
+
"default": null,
|
|
137
|
+
"description": "Size variant.",
|
|
138
|
+
"required": false,
|
|
139
|
+
"inherited": false,
|
|
140
|
+
"deprecated": false
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "color",
|
|
144
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'light' | 'dark'",
|
|
145
|
+
"default": null,
|
|
146
|
+
"description": "Color variant for buttons.",
|
|
147
|
+
"required": false,
|
|
148
|
+
"inherited": false,
|
|
149
|
+
"deprecated": false
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "inputColor",
|
|
153
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
154
|
+
"default": null,
|
|
155
|
+
"description": "Color of the input field itself.",
|
|
156
|
+
"required": false,
|
|
157
|
+
"inherited": false,
|
|
158
|
+
"deprecated": false
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "controlsPosition",
|
|
162
|
+
"type": "'left' | 'right' | 'both'",
|
|
163
|
+
"default": "'both'",
|
|
164
|
+
"description": "Position of +/- buttons.",
|
|
165
|
+
"required": false,
|
|
166
|
+
"inherited": false,
|
|
167
|
+
"deprecated": false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "controlsRounded",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": "false",
|
|
173
|
+
"description": "Use rounded buttons.",
|
|
174
|
+
"required": false,
|
|
175
|
+
"inherited": false,
|
|
176
|
+
"deprecated": false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "compact",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"default": "false",
|
|
182
|
+
"description": "Uses compact button spacing.",
|
|
183
|
+
"required": false,
|
|
184
|
+
"inherited": false,
|
|
185
|
+
"deprecated": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "bare",
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"default": "false",
|
|
191
|
+
"description": "Removes button borders and background.",
|
|
192
|
+
"required": false,
|
|
193
|
+
"inherited": false,
|
|
194
|
+
"deprecated": false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "variant",
|
|
198
|
+
"type": "'plusminus' | 'stepper'",
|
|
199
|
+
"default": "'plusminus'",
|
|
200
|
+
"description": "Style variant for the control buttons.",
|
|
201
|
+
"required": false,
|
|
202
|
+
"inherited": false,
|
|
203
|
+
"deprecated": false
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "disabled",
|
|
207
|
+
"type": "boolean",
|
|
208
|
+
"default": "false",
|
|
209
|
+
"description": "Whether the input is disabled.",
|
|
210
|
+
"required": false,
|
|
211
|
+
"inherited": false,
|
|
212
|
+
"deprecated": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "editable",
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"default": "true",
|
|
218
|
+
"description": "Whether the input can be typed in.",
|
|
219
|
+
"required": false,
|
|
220
|
+
"inherited": false,
|
|
221
|
+
"deprecated": false
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "isLoading",
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"default": "false",
|
|
227
|
+
"description": "Shows a loading state.",
|
|
228
|
+
"required": false,
|
|
229
|
+
"inherited": false,
|
|
230
|
+
"deprecated": false
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "exponential",
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"default": "false",
|
|
236
|
+
"description": "Enables exponential step increments when holding buttons.",
|
|
237
|
+
"required": false,
|
|
238
|
+
"inherited": false,
|
|
239
|
+
"deprecated": false
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "onChange",
|
|
243
|
+
"type": "(value: number) => void",
|
|
244
|
+
"default": null,
|
|
245
|
+
"description": "Callback when value changes.",
|
|
246
|
+
"required": false,
|
|
247
|
+
"inherited": false,
|
|
248
|
+
"deprecated": false
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "labelSize",
|
|
252
|
+
"type": "'small' | 'normal' | 'medium' | 'large'",
|
|
253
|
+
"default": null,
|
|
254
|
+
"description": "Size for the label (used in horizontal layouts).",
|
|
255
|
+
"required": false,
|
|
256
|
+
"inherited": true,
|
|
257
|
+
"deprecated": false
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "horizontal",
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"default": "false",
|
|
263
|
+
"description": "Horizontal field layout.",
|
|
264
|
+
"required": false,
|
|
265
|
+
"inherited": true,
|
|
266
|
+
"deprecated": false
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "message",
|
|
270
|
+
"type": "React.ReactNode",
|
|
271
|
+
"default": null,
|
|
272
|
+
"description": "Help/validation message below the input.",
|
|
273
|
+
"required": false,
|
|
274
|
+
"inherited": true,
|
|
275
|
+
"deprecated": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "messageColor",
|
|
279
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
280
|
+
"default": null,
|
|
281
|
+
"description": "Bulma color for the message.",
|
|
282
|
+
"required": false,
|
|
283
|
+
"inherited": true,
|
|
284
|
+
"deprecated": false
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "fieldClassName",
|
|
288
|
+
"type": "string",
|
|
289
|
+
"default": null,
|
|
290
|
+
"description": "Additional CSS classes for the Field wrapper.",
|
|
291
|
+
"required": false,
|
|
292
|
+
"inherited": true,
|
|
293
|
+
"deprecated": false
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"extraProps": [
|
|
297
|
+
{
|
|
298
|
+
"name": "className",
|
|
299
|
+
"type": "string",
|
|
300
|
+
"default": null,
|
|
301
|
+
"description": "Additional CSS classes.",
|
|
302
|
+
"required": false,
|
|
303
|
+
"inherited": false,
|
|
304
|
+
"deprecated": false
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "ref",
|
|
308
|
+
"type": "React.Ref<HTMLElement>",
|
|
309
|
+
"default": null,
|
|
310
|
+
"description": "Ref forwarded to the input element.",
|
|
311
|
+
"required": false,
|
|
312
|
+
"inherited": false,
|
|
313
|
+
"deprecated": false
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"catchAll": "All standard <input> attributes and Bulma helper props",
|
|
317
|
+
"types": []
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"cssVars": [
|
|
321
|
+
{
|
|
322
|
+
"css": "--bulma-numberinput-stepper-width",
|
|
323
|
+
"sass": "$numberinput-stepper-width",
|
|
324
|
+
"default": "2.5em",
|
|
325
|
+
"scope": "component"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"css": "--bulma-numberinput-stepper-border-color",
|
|
329
|
+
"sass": "$numberinput-stepper-border-color",
|
|
330
|
+
"default": "var(--bulma-border)",
|
|
331
|
+
"scope": "component"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"css": "--bulma-numberinput-stepper-button-color",
|
|
335
|
+
"sass": "$numberinput-stepper-button-color",
|
|
336
|
+
"default": "var(--bulma-text-weak)",
|
|
337
|
+
"scope": "component"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"css": "--bulma-numberinput-stepper-button-hover-color",
|
|
341
|
+
"sass": "$numberinput-stepper-button-hover-color",
|
|
342
|
+
"default": "var(--bulma-text-strong)",
|
|
343
|
+
"scope": "component"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"css": "--bulma-numberinput-stepper-button-hover-bg",
|
|
347
|
+
"sass": "$numberinput-stepper-button-hover-bg",
|
|
348
|
+
"default": "var(--bulma-background)",
|
|
349
|
+
"scope": "component"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"css": "--bulma-numberinput-disabled-opacity",
|
|
353
|
+
"sass": "$numberinput-disabled-opacity",
|
|
354
|
+
"default": "0.5",
|
|
355
|
+
"scope": "component"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"css": "--bulma-numberinput-rounded-button-size",
|
|
359
|
+
"sass": "$numberinput-rounded-button-size",
|
|
360
|
+
"default": "2.5em",
|
|
361
|
+
"scope": "component"
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|