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,534 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Slider",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "form",
|
|
5
|
+
"slug": "form/slider",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/form/slider",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Basic Slider",
|
|
10
|
+
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider value={value} onChange={setValue} />\n <Paragraph mt=\"2\">Value: {value}</Paragraph>\n </Block>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "With Output Display",
|
|
14
|
+
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider value={value} onChange={setValue} showOutput color=\"primary\" />\n <Paragraph mt=\"4\">Value: {value}</Paragraph>\n </Block>\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Color Variants",
|
|
18
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"5\">\n <Slider defaultValue={50} color=\"primary\" showOutput />\n <Slider defaultValue={50} color=\"success\" showOutput />\n <Slider defaultValue={50} color=\"info\" showOutput />\n <Slider defaultValue={50} color=\"warning\" showOutput />\n <Slider defaultValue={50} color=\"danger\" showOutput />\n</Block>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Size Variants",
|
|
22
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"5\">\n <Block>\n <Paragraph mb=\"1\">Small</Paragraph>\n <Slider defaultValue={50} size=\"small\" color=\"primary\" />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Normal</Paragraph>\n <Slider defaultValue={50} color=\"primary\" />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Medium</Paragraph>\n <Slider defaultValue={50} size=\"medium\" color=\"primary\" />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Large</Paragraph>\n <Slider defaultValue={50} size=\"large\" color=\"primary\" />\n </Block>\n</Block>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Rounded and Circle",
|
|
26
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"5\">\n <Block>\n <Paragraph mb=\"1\">Rounded</Paragraph>\n <Slider defaultValue={50} isRounded color=\"info\" showOutput />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Circle Thumb</Paragraph>\n <Slider defaultValue={50} isCircle color=\"success\" showOutput />\n </Block>\n <Block>\n <Paragraph mb=\"1\">Both</Paragraph>\n <Slider defaultValue={50} isRounded isCircle color=\"warning\" showOutput />\n </Block>\n</Block>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Custom Range",
|
|
30
|
+
"code": "function example() {\n const [value, setValue] = useState(500);\n return (\n <Block>\n <Slider\n value={value}\n onChange={setValue}\n min={0}\n max={1000}\n step={50}\n showOutput\n color=\"primary\"\n />\n <Paragraph mt=\"4\">Value: ${value}</Paragraph>\n </Block>\n );\n}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Custom Output Format",
|
|
34
|
+
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider\n value={value}\n onChange={setValue}\n showOutput\n color=\"success\"\n formatOutput={v => `${v}%`}\n />\n <Paragraph mt=\"4\">Progress: {value}%</Paragraph>\n </Block>\n );\n}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Disabled Slider",
|
|
38
|
+
"code": "<Slider defaultValue={30} disabled color=\"primary\" />"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Context-Aware Rendering",
|
|
42
|
+
"code": "<Slider label=\"Volume\" defaultValue={50} color=\"primary\" />"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Context-Aware Rendering",
|
|
46
|
+
"code": "function example() {\n return (\n <Field horizontal label=\"Volume\">\n <Field.Body>\n <Field>\n <Slider defaultValue={50} color=\"primary\" />\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "Context-Aware Rendering",
|
|
50
|
+
"code": "function example() {\n return (\n <Field horizontal label=\"Volume\">\n <Field.Body>\n <Field>\n <Control iconLeftName=\"volume-up\">\n <Slider defaultValue={50} color=\"primary\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"accessibility": "- Uses native `<input type=\"range\">` element\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- Fully keyboard accessible with arrow keys\n- Focus states clearly visible",
|
|
54
|
+
"related": ["Numberinput", "Progress"],
|
|
55
|
+
"storybook": "https://bestax.io/storybook/?path=/story/form-slider",
|
|
56
|
+
"summary": "The `Slider` component provides a range slider input for selecting values within a range.",
|
|
57
|
+
"import": "import { Slider } from '@allxsmith/bestax-bulma';",
|
|
58
|
+
"sourceFile": "bulma-ui/src/form/Slider.tsx",
|
|
59
|
+
"rootClass": "slider",
|
|
60
|
+
"parts": [
|
|
61
|
+
{
|
|
62
|
+
"path": "Slider",
|
|
63
|
+
"summary": "The `Slider` component provides a range slider input for selecting values within a range.",
|
|
64
|
+
"component": null,
|
|
65
|
+
"props": [
|
|
66
|
+
{
|
|
67
|
+
"name": "range",
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"default": "false",
|
|
70
|
+
"description": "Enables range mode with two thumbs.",
|
|
71
|
+
"required": false,
|
|
72
|
+
"inherited": true,
|
|
73
|
+
"deprecated": false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "value",
|
|
77
|
+
"type": "number | [number, number]",
|
|
78
|
+
"default": null,
|
|
79
|
+
"description": "Controlled value.",
|
|
80
|
+
"required": false,
|
|
81
|
+
"inherited": true,
|
|
82
|
+
"deprecated": false
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "defaultValue",
|
|
86
|
+
"type": "number | [number, number]",
|
|
87
|
+
"default": "0",
|
|
88
|
+
"description": "Default value for uncontrolled usage.",
|
|
89
|
+
"required": false,
|
|
90
|
+
"inherited": true,
|
|
91
|
+
"deprecated": false
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "onChange",
|
|
95
|
+
"type": "(value: number) => void | (value: [number, number]) => void",
|
|
96
|
+
"default": null,
|
|
97
|
+
"description": "Callback when value changes.",
|
|
98
|
+
"required": false,
|
|
99
|
+
"inherited": true,
|
|
100
|
+
"deprecated": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "minDistance",
|
|
104
|
+
"type": "number",
|
|
105
|
+
"default": "0",
|
|
106
|
+
"description": "Minimum distance between thumbs in range mode.",
|
|
107
|
+
"required": false,
|
|
108
|
+
"inherited": true,
|
|
109
|
+
"deprecated": false
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "ariaLabel",
|
|
113
|
+
"type": "string | [string, string]",
|
|
114
|
+
"default": null,
|
|
115
|
+
"description": "ARIA label(s) for the slider thumb(s).",
|
|
116
|
+
"required": false,
|
|
117
|
+
"inherited": true,
|
|
118
|
+
"deprecated": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "nameLow",
|
|
122
|
+
"type": "string",
|
|
123
|
+
"default": null,
|
|
124
|
+
"description": "Form field name for the low thumb. Use this in range mode so each thumb submits with its own name.",
|
|
125
|
+
"required": false,
|
|
126
|
+
"inherited": true,
|
|
127
|
+
"deprecated": false
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "nameHigh",
|
|
131
|
+
"type": "string",
|
|
132
|
+
"default": null,
|
|
133
|
+
"description": "Form field name for the high thumb.",
|
|
134
|
+
"required": false,
|
|
135
|
+
"inherited": true,
|
|
136
|
+
"deprecated": false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "label",
|
|
140
|
+
"type": "React.ReactNode",
|
|
141
|
+
"default": null,
|
|
142
|
+
"description": "Field label. Automatically associated with the slider input via `htmlFor` — uses your `id` when provided, otherwise a generated one. In range mode the label targets the low (minimum) thumb. Dropped inside an outer `Field` (label that `Field` yourself).",
|
|
143
|
+
"required": false,
|
|
144
|
+
"inherited": true,
|
|
145
|
+
"deprecated": false
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "labelProps",
|
|
149
|
+
"type": "React.LabelHTMLAttributes<HTMLLabelElement> & { [key: string]: unknown; }",
|
|
150
|
+
"default": null,
|
|
151
|
+
"description": "Props for the label element. An explicit `htmlFor` here overrides the automatic association (no id is generated then).",
|
|
152
|
+
"required": false,
|
|
153
|
+
"inherited": true,
|
|
154
|
+
"deprecated": false
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "min",
|
|
158
|
+
"type": "number",
|
|
159
|
+
"default": "0",
|
|
160
|
+
"description": "Minimum value.",
|
|
161
|
+
"required": false,
|
|
162
|
+
"inherited": true,
|
|
163
|
+
"deprecated": false
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "max",
|
|
167
|
+
"type": "number",
|
|
168
|
+
"default": "100",
|
|
169
|
+
"description": "Maximum value.",
|
|
170
|
+
"required": false,
|
|
171
|
+
"inherited": true,
|
|
172
|
+
"deprecated": false
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "step",
|
|
176
|
+
"type": "number",
|
|
177
|
+
"default": "1",
|
|
178
|
+
"description": "Step increment (default: 1).",
|
|
179
|
+
"required": false,
|
|
180
|
+
"inherited": true,
|
|
181
|
+
"deprecated": false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "size",
|
|
185
|
+
"type": "'small' | 'medium' | 'large'",
|
|
186
|
+
"default": null,
|
|
187
|
+
"description": "Size variant.",
|
|
188
|
+
"required": false,
|
|
189
|
+
"inherited": true,
|
|
190
|
+
"deprecated": false
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "color",
|
|
194
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
195
|
+
"default": null,
|
|
196
|
+
"description": "Color variant.",
|
|
197
|
+
"required": false,
|
|
198
|
+
"inherited": true,
|
|
199
|
+
"deprecated": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "isRounded",
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"default": "false",
|
|
205
|
+
"description": "Use rounded track ends.",
|
|
206
|
+
"required": false,
|
|
207
|
+
"inherited": true,
|
|
208
|
+
"deprecated": false
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "isCircle",
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"default": "false",
|
|
214
|
+
"description": "Use circular thumb.",
|
|
215
|
+
"required": false,
|
|
216
|
+
"inherited": true,
|
|
217
|
+
"deprecated": false
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "showOutput",
|
|
221
|
+
"type": "boolean",
|
|
222
|
+
"default": "false",
|
|
223
|
+
"description": "Show current value tooltip.",
|
|
224
|
+
"required": false,
|
|
225
|
+
"inherited": true,
|
|
226
|
+
"deprecated": false
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "tooltip",
|
|
230
|
+
"type": "'auto' | 'always' | 'hidden'",
|
|
231
|
+
"default": null,
|
|
232
|
+
"description": "Controls tooltip visibility on the thumb.",
|
|
233
|
+
"required": false,
|
|
234
|
+
"inherited": true,
|
|
235
|
+
"deprecated": false
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "ticks",
|
|
239
|
+
"type": "boolean",
|
|
240
|
+
"default": "false",
|
|
241
|
+
"description": "Shows tick marks along the track.",
|
|
242
|
+
"required": false,
|
|
243
|
+
"inherited": true,
|
|
244
|
+
"deprecated": false
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "marks",
|
|
248
|
+
"type": "{ value: number; label?: React.ReactNode }[]",
|
|
249
|
+
"default": null,
|
|
250
|
+
"description": "Custom labeled marks along the track. Each mark has `{ value: number; label?: ReactNode }`.",
|
|
251
|
+
"required": false,
|
|
252
|
+
"inherited": true,
|
|
253
|
+
"deprecated": false
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "orientation",
|
|
257
|
+
"type": "'horizontal' | 'vertical'",
|
|
258
|
+
"default": "'horizontal'",
|
|
259
|
+
"description": "Orientation of the slider.",
|
|
260
|
+
"required": false,
|
|
261
|
+
"inherited": true,
|
|
262
|
+
"deprecated": false
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "scale",
|
|
266
|
+
"type": "(value: number) => number",
|
|
267
|
+
"default": null,
|
|
268
|
+
"description": "Function to scale the displayed value.",
|
|
269
|
+
"required": false,
|
|
270
|
+
"inherited": true,
|
|
271
|
+
"deprecated": false
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "getAriaValueText",
|
|
275
|
+
"type": "(value: number) => string",
|
|
276
|
+
"default": null,
|
|
277
|
+
"description": "Function to generate the `aria-valuetext` attribute.",
|
|
278
|
+
"required": false,
|
|
279
|
+
"inherited": true,
|
|
280
|
+
"deprecated": false
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "formatOutput",
|
|
284
|
+
"type": "(value: number) => string",
|
|
285
|
+
"default": null,
|
|
286
|
+
"description": "Format function for output display.",
|
|
287
|
+
"required": false,
|
|
288
|
+
"inherited": true,
|
|
289
|
+
"deprecated": false
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "labelSize",
|
|
293
|
+
"type": "'small' | 'normal' | 'medium' | 'large'",
|
|
294
|
+
"default": null,
|
|
295
|
+
"description": "Size for the label (used in horizontal layouts).",
|
|
296
|
+
"required": false,
|
|
297
|
+
"inherited": true,
|
|
298
|
+
"deprecated": false
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "horizontal",
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"default": "false",
|
|
304
|
+
"description": "Horizontal field layout.",
|
|
305
|
+
"required": false,
|
|
306
|
+
"inherited": true,
|
|
307
|
+
"deprecated": false
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "message",
|
|
311
|
+
"type": "React.ReactNode",
|
|
312
|
+
"default": null,
|
|
313
|
+
"description": "Help/validation message below the input.",
|
|
314
|
+
"required": false,
|
|
315
|
+
"inherited": true,
|
|
316
|
+
"deprecated": false
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "messageColor",
|
|
320
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
321
|
+
"default": null,
|
|
322
|
+
"description": "Bulma color for the message.",
|
|
323
|
+
"required": false,
|
|
324
|
+
"inherited": true,
|
|
325
|
+
"deprecated": false
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "fieldClassName",
|
|
329
|
+
"type": "string",
|
|
330
|
+
"default": null,
|
|
331
|
+
"description": "Additional CSS classes for the Field wrapper.",
|
|
332
|
+
"required": false,
|
|
333
|
+
"inherited": true,
|
|
334
|
+
"deprecated": false
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"extraProps": [
|
|
338
|
+
{
|
|
339
|
+
"name": "disabled",
|
|
340
|
+
"type": "boolean",
|
|
341
|
+
"default": "false",
|
|
342
|
+
"description": "Whether the slider is disabled.",
|
|
343
|
+
"required": false,
|
|
344
|
+
"inherited": false,
|
|
345
|
+
"deprecated": false
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "className",
|
|
349
|
+
"type": "string",
|
|
350
|
+
"default": null,
|
|
351
|
+
"description": "Additional CSS classes.",
|
|
352
|
+
"required": false,
|
|
353
|
+
"inherited": false,
|
|
354
|
+
"deprecated": false
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "ref",
|
|
358
|
+
"type": "React.Ref<HTMLElement>",
|
|
359
|
+
"default": null,
|
|
360
|
+
"description": "Ref forwarded to the input element.",
|
|
361
|
+
"required": false,
|
|
362
|
+
"inherited": false,
|
|
363
|
+
"deprecated": false
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"catchAll": "All standard <input> attributes and Bulma helper props",
|
|
367
|
+
"types": []
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"cssVars": [
|
|
371
|
+
{
|
|
372
|
+
"css": "--bulma-slider-track-height",
|
|
373
|
+
"sass": "$slider-track-height",
|
|
374
|
+
"default": "0.5rem",
|
|
375
|
+
"scope": "component"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"css": "--bulma-slider-track-height-small",
|
|
379
|
+
"sass": "$slider-track-height-small",
|
|
380
|
+
"default": "0.375rem",
|
|
381
|
+
"scope": "component"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"css": "--bulma-slider-track-height-medium",
|
|
385
|
+
"sass": "$slider-track-height-medium",
|
|
386
|
+
"default": "0.625rem",
|
|
387
|
+
"scope": "component"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"css": "--bulma-slider-track-height-large",
|
|
391
|
+
"sass": "$slider-track-height-large",
|
|
392
|
+
"default": "0.75rem",
|
|
393
|
+
"scope": "component"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"css": "--bulma-slider-thumb-size",
|
|
397
|
+
"sass": "$slider-thumb-size",
|
|
398
|
+
"default": "1.25rem",
|
|
399
|
+
"scope": "component"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"css": "--bulma-slider-thumb-size-small",
|
|
403
|
+
"sass": "$slider-thumb-size-small",
|
|
404
|
+
"default": "1rem",
|
|
405
|
+
"scope": "component"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"css": "--bulma-slider-thumb-size-medium",
|
|
409
|
+
"sass": "$slider-thumb-size-medium",
|
|
410
|
+
"default": "1.5rem",
|
|
411
|
+
"scope": "component"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"css": "--bulma-slider-thumb-size-large",
|
|
415
|
+
"sass": "$slider-thumb-size-large",
|
|
416
|
+
"default": "1.75rem",
|
|
417
|
+
"scope": "component"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"css": "--bulma-slider-track-color",
|
|
421
|
+
"sass": "$slider-track-color",
|
|
422
|
+
"default": "var(--bulma-border)",
|
|
423
|
+
"scope": "component"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"css": "--bulma-slider-fill-color",
|
|
427
|
+
"sass": "$slider-fill-color",
|
|
428
|
+
"default": "var(--bulma-primary)",
|
|
429
|
+
"scope": "component"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"css": "--bulma-slider-thumb-color",
|
|
433
|
+
"sass": "$slider-thumb-color",
|
|
434
|
+
"default": "var(--bulma-scheme-main)",
|
|
435
|
+
"scope": "component"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"css": "--bulma-slider-thumb-border",
|
|
439
|
+
"sass": "$slider-thumb-border",
|
|
440
|
+
"default": "var(--bulma-border)",
|
|
441
|
+
"scope": "component"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"css": "--bulma-slider-thumb-shadow",
|
|
445
|
+
"sass": "$slider-thumb-shadow",
|
|
446
|
+
"default": "0 2px 4px rgba(0, 0, 0, 0.1)",
|
|
447
|
+
"scope": "component"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"css": "--bulma-slider-radius",
|
|
451
|
+
"sass": "$slider-radius",
|
|
452
|
+
"default": "var(--bulma-radius)",
|
|
453
|
+
"scope": "component"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"css": "--bulma-slider-disabled-opacity",
|
|
457
|
+
"sass": "$slider-disabled-opacity",
|
|
458
|
+
"default": "0.5",
|
|
459
|
+
"scope": "component"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"css": "--bulma-slider-transition-duration",
|
|
463
|
+
"sass": "$slider-transition-duration",
|
|
464
|
+
"default": "var(--bulma-duration)",
|
|
465
|
+
"scope": "component"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"css": "--bulma-slider-output-background",
|
|
469
|
+
"sass": "$slider-output-background",
|
|
470
|
+
"default": "var(--bulma-slider-fill-color)",
|
|
471
|
+
"scope": "component"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"css": "--bulma-slider-output-color",
|
|
475
|
+
"sass": "$slider-output-color",
|
|
476
|
+
"default": "var(--bulma-scheme-main)",
|
|
477
|
+
"scope": "component"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"css": "--bulma-slider-output-font-size",
|
|
481
|
+
"sass": "$slider-output-font-size",
|
|
482
|
+
"default": "var(--bulma-size-small)",
|
|
483
|
+
"scope": "component"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"css": "--bulma-slider-output-font-weight",
|
|
487
|
+
"sass": "$slider-output-font-weight",
|
|
488
|
+
"default": "var(--bulma-weight-medium)",
|
|
489
|
+
"scope": "component"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"css": "--bulma-slider-tick-width",
|
|
493
|
+
"sass": "$slider-tick-width",
|
|
494
|
+
"default": "2px",
|
|
495
|
+
"scope": "component"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"css": "--bulma-slider-tick-height",
|
|
499
|
+
"sass": "$slider-tick-height",
|
|
500
|
+
"default": "1rem",
|
|
501
|
+
"scope": "component"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"css": "--bulma-slider-tick-color",
|
|
505
|
+
"sass": "$slider-tick-color",
|
|
506
|
+
"default": "var(--bulma-grey-light)",
|
|
507
|
+
"scope": "component"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"css": "--bulma-slider-tick-opacity",
|
|
511
|
+
"sass": "$slider-tick-opacity",
|
|
512
|
+
"default": "0.5",
|
|
513
|
+
"scope": "component"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"css": "--bulma-slider-tick-label-font-size",
|
|
517
|
+
"sass": "$slider-tick-label-font-size",
|
|
518
|
+
"default": "0.75rem",
|
|
519
|
+
"scope": "component"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"css": "--bulma-slider-tick-label-color",
|
|
523
|
+
"sass": "$slider-tick-label-color",
|
|
524
|
+
"default": "var(--bulma-text-light)",
|
|
525
|
+
"scope": "component"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"css": "--bulma-slider-vertical-height",
|
|
529
|
+
"sass": "$slider-vertical-height",
|
|
530
|
+
"default": "200px",
|
|
531
|
+
"scope": "component"
|
|
532
|
+
}
|
|
533
|
+
]
|
|
534
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Span",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/span",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/span",
|
|
7
|
+
"examples": [
|
|
8
|
+
{ "title": "Default Span", "code": "<Span>Default Span</Span>" },
|
|
9
|
+
{
|
|
10
|
+
"title": "Primary Color Span",
|
|
11
|
+
"code": "<Span textColor=\"primary\">Primary Text</Span>"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"title": "Success Color Span",
|
|
15
|
+
"code": "<Span textColor=\"success\">Success Text</Span>"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"title": "Span with Background",
|
|
19
|
+
"code": "<Span bgColor=\"warning\" p=\"2\">\n Highlighted Text\n</Span>"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"title": "Large Text Span",
|
|
23
|
+
"code": "<Span textSize=\"3\">Large Span</Span>"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Bold Span",
|
|
27
|
+
"code": "<Span textWeight=\"bold\">Bold Span</Span>"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "All Colors",
|
|
31
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"2\">\n <Span textColor=\"primary\">Primary Span</Span>\n <Span textColor=\"link\">Link Span</Span>\n <Span textColor=\"info\">Info Span</Span>\n <Span textColor=\"success\">Success Span</Span>\n <Span textColor=\"warning\">Warning Span</Span>\n <Span textColor=\"danger\">Danger Span</Span>\n</Block>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "Inline with Text",
|
|
35
|
+
"code": "<Paragraph>\n This paragraph contains a <Span textColor=\"primary\">colored span</Span> and a{' '}\n <Span textWeight=\"bold\">bold span</Span> for emphasis.\n</Paragraph>"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "Highlighted Text",
|
|
39
|
+
"code": "<Paragraph>\n This sentence has{' '}\n <Span bgColor=\"warning\" textColor=\"dark\" p=\"1\">\n highlighted text\n </Span>{' '}\n to draw attention.\n</Paragraph>"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"accessibility": "- **Semantic Meaning:** The `<span>` element has no semantic meaning. Use it only for styling purposes.\n- **Color Contrast:** Ensure sufficient contrast between text and background colors for readability.\n- **Screen Readers:** Content inside spans is read normally by screen readers.\n\n:::info\nFor text that has semantic importance, consider using `<strong>` (Strong) or `<em>` (Emphasis) components instead.\n:::",
|
|
43
|
+
"related": ["Emphasis", "Paragraph", "Strong", "useBulmaClasses"],
|
|
44
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-span--default",
|
|
45
|
+
"summary": "The `Span` component renders a styled inline `<span>` element with Bulma helper class integration.",
|
|
46
|
+
"import": "import { Span } from '@allxsmith/bestax-bulma';",
|
|
47
|
+
"sourceFile": "bulma-ui/src/elements/Span.tsx",
|
|
48
|
+
"rootClass": null,
|
|
49
|
+
"parts": [
|
|
50
|
+
{
|
|
51
|
+
"path": "Span",
|
|
52
|
+
"summary": "The `Span` component renders a styled inline `<span>` element with Bulma helper class integration.",
|
|
53
|
+
"component": null,
|
|
54
|
+
"props": [
|
|
55
|
+
{
|
|
56
|
+
"name": "className",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": null,
|
|
59
|
+
"description": "Additional CSS classes to apply.",
|
|
60
|
+
"required": false,
|
|
61
|
+
"inherited": false,
|
|
62
|
+
"deprecated": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "textColor",
|
|
66
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
67
|
+
"default": null,
|
|
68
|
+
"description": "Text color helper.",
|
|
69
|
+
"required": false,
|
|
70
|
+
"inherited": false,
|
|
71
|
+
"deprecated": false,
|
|
72
|
+
"valuesRef": "helpers/valid-values"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "bgColor",
|
|
76
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
77
|
+
"default": null,
|
|
78
|
+
"description": "Background color helper.",
|
|
79
|
+
"required": false,
|
|
80
|
+
"inherited": false,
|
|
81
|
+
"deprecated": false,
|
|
82
|
+
"valuesRef": "helpers/valid-values"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "children",
|
|
86
|
+
"type": "React.ReactNode",
|
|
87
|
+
"default": null,
|
|
88
|
+
"description": "Content to render inside the span.",
|
|
89
|
+
"required": false,
|
|
90
|
+
"inherited": false,
|
|
91
|
+
"deprecated": false
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"extraProps": [],
|
|
95
|
+
"catchAll": "All standard <span> attributes and Bulma helper props",
|
|
96
|
+
"types": []
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"cssVars": []
|
|
100
|
+
}
|