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,452 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Steps",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "components",
|
|
5
|
+
"slug": "components/steps",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/components/steps",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Basic Steps",
|
|
10
|
+
"code": "<Steps\n value={1}\n items={[{ label: 'Account' }, { label: 'Profile' }, { label: 'Complete' }]}\n/>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Clickable Steps",
|
|
14
|
+
"code": "function example() {\n const [step, setStep] = useState(1);\n return (\n <Block>\n <Steps\n value={step}\n items={[\n { label: 'Account', clickable: true },\n { label: 'Profile', clickable: true },\n { label: 'Review', clickable: true },\n { label: 'Complete', clickable: true },\n ]}\n onStepClick={setStep}\n color=\"primary\"\n />\n <Paragraph mt=\"4\">Current step: {step + 1}</Paragraph>\n </Block>\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Color Variants",
|
|
18
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"5\">\n <Steps\n value={1}\n color=\"primary\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n color=\"success\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n color=\"info\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n color=\"warning\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n color=\"danger\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n</Block>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Size Variants",
|
|
22
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"5\">\n <Steps\n value={1}\n size=\"small\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n size=\"medium\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n <Steps\n value={1}\n size=\"large\"\n items={[{ label: 'Step 1' }, { label: 'Step 2' }, { label: 'Step 3' }]}\n />\n</Block>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "With Icons",
|
|
26
|
+
"code": "<Steps\n value={1}\n color=\"info\"\n items={[\n { label: 'Cart', icon: <Icon name=\"shopping-cart\" variant=\"solid\" /> },\n { label: 'Shipping', icon: <Icon name=\"truck\" variant=\"solid\" /> },\n { label: 'Payment', icon: <Icon name=\"credit-card\" variant=\"solid\" /> },\n { label: 'Done', icon: <Icon name=\"check\" variant=\"solid\" /> },\n ]}\n/>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Vertical Layout",
|
|
30
|
+
"code": "<Steps\n value={1}\n vertical\n color=\"primary\"\n items={[\n { label: 'Create Account' },\n { label: 'Set Up Profile' },\n { label: 'Choose Plan' },\n { label: 'Start Using' },\n ]}\n/>"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Rounded Markers",
|
|
34
|
+
"code": "<Steps\n value={2}\n rounded\n color=\"success\"\n items={[\n { label: 'Order Placed' },\n { label: 'Processing' },\n { label: 'Shipped' },\n { label: 'Delivered' },\n ]}\n/>"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Checkout Flow Example",
|
|
38
|
+
"code": "function example() {\n const [step, setStep] = useState(0);\n const steps = ['Cart', 'Shipping', 'Payment', 'Confirm'];\n\n return (\n <Block>\n <Steps\n value={step}\n items={steps.map((label, i) => ({ label, clickable: i <= step }))}\n onStepClick={s => s <= step && setStep(s)}\n color=\"primary\"\n />\n <Box mt=\"4\" p=\"4\">\n <Title size=\"5\">{steps[step]}</Title>\n <Paragraph>Content for the {steps[step]} step goes here.</Paragraph>\n </Box>\n <Buttons mt=\"4\">\n <Button\n onClick={() => setStep(Math.max(0, step - 1))}\n disabled={step === 0}\n >\n Previous\n </Button>\n <Button\n color=\"primary\"\n onClick={() => setStep(Math.min(3, step + 1))}\n disabled={step === 3}\n >\n {step === 2 ? 'Place Order' : 'Next'}\n </Button>\n </Buttons>\n </Block>\n );\n}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Compound (dot-notation) usage",
|
|
42
|
+
"code": "<Steps value={1}>\n <Steps.Step label=\"Account\" />\n <Steps.Step label=\"Profile\" />\n <Steps.Step label=\"Complete\" />\n</Steps>"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"accessibility": "- Steps use `aria-current=\"step\"` on the active step\n- Clickable steps are keyboard navigable with proper focus indicators\n- Use descriptive labels for each step\n- The step markers show completion state with checkmarks",
|
|
46
|
+
"related": ["Progress"],
|
|
47
|
+
"storybook": "https://bestax.io/storybook/?path=/story/components-steps",
|
|
48
|
+
"summary": "The `Steps` component provides a multi-step progress indicator for wizard flows, checkout processes, or any multi-step workflow.",
|
|
49
|
+
"import": "import { Steps } from '@allxsmith/bestax-bulma';",
|
|
50
|
+
"sourceFile": "bulma-ui/src/components/Steps.tsx",
|
|
51
|
+
"rootClass": "steps",
|
|
52
|
+
"parts": [
|
|
53
|
+
{
|
|
54
|
+
"path": "Steps",
|
|
55
|
+
"summary": "The `Steps` component provides a multi-step progress indicator for wizard flows, checkout processes, or any multi-step workflow.",
|
|
56
|
+
"component": null,
|
|
57
|
+
"props": [
|
|
58
|
+
{
|
|
59
|
+
"name": "value",
|
|
60
|
+
"type": "number",
|
|
61
|
+
"default": "0",
|
|
62
|
+
"description": "Current active step (0-indexed).",
|
|
63
|
+
"required": false,
|
|
64
|
+
"inherited": false,
|
|
65
|
+
"deprecated": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "items",
|
|
69
|
+
"type": "StepItemProps[]",
|
|
70
|
+
"default": null,
|
|
71
|
+
"description": "Array of step items.",
|
|
72
|
+
"required": false,
|
|
73
|
+
"inherited": false,
|
|
74
|
+
"deprecated": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "size",
|
|
78
|
+
"type": "'small' | 'medium' | 'large'",
|
|
79
|
+
"default": null,
|
|
80
|
+
"description": "Size of the steps.",
|
|
81
|
+
"required": false,
|
|
82
|
+
"inherited": false,
|
|
83
|
+
"deprecated": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "color",
|
|
87
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
88
|
+
"default": null,
|
|
89
|
+
"description": "Color variant.",
|
|
90
|
+
"required": false,
|
|
91
|
+
"inherited": false,
|
|
92
|
+
"deprecated": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "hasMarker",
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"default": "true",
|
|
98
|
+
"description": "Show step markers. Default: true.",
|
|
99
|
+
"required": false,
|
|
100
|
+
"inherited": false,
|
|
101
|
+
"deprecated": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "animated",
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": "true",
|
|
107
|
+
"description": "Enable animations. Default: true.",
|
|
108
|
+
"required": false,
|
|
109
|
+
"inherited": false,
|
|
110
|
+
"deprecated": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "rounded",
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": "true",
|
|
116
|
+
"description": "Use rounded markers. Default: true.",
|
|
117
|
+
"required": false,
|
|
118
|
+
"inherited": false,
|
|
119
|
+
"deprecated": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "vertical",
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"default": "false",
|
|
125
|
+
"description": "Vertical layout.",
|
|
126
|
+
"required": false,
|
|
127
|
+
"inherited": false,
|
|
128
|
+
"deprecated": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "labelPosition",
|
|
132
|
+
"type": "'bottom' | 'right' | 'left'",
|
|
133
|
+
"default": "'bottom'",
|
|
134
|
+
"description": "Position of labels.",
|
|
135
|
+
"required": false,
|
|
136
|
+
"inherited": false,
|
|
137
|
+
"deprecated": false
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "mobileMode",
|
|
141
|
+
"type": "'minimal' | 'compact' | 'right'",
|
|
142
|
+
"default": null,
|
|
143
|
+
"description": "Mobile display mode.",
|
|
144
|
+
"required": false,
|
|
145
|
+
"inherited": false,
|
|
146
|
+
"deprecated": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "showStepNumbers",
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"default": "true",
|
|
152
|
+
"description": "Displays step numbers in the markers.",
|
|
153
|
+
"required": false,
|
|
154
|
+
"inherited": false,
|
|
155
|
+
"deprecated": false
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "hasNavigation",
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"default": "false",
|
|
161
|
+
"description": "Shows previous/next navigation buttons.",
|
|
162
|
+
"required": false,
|
|
163
|
+
"inherited": false,
|
|
164
|
+
"deprecated": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "prevLabel",
|
|
168
|
+
"type": "string",
|
|
169
|
+
"default": null,
|
|
170
|
+
"description": "Label for the previous button.",
|
|
171
|
+
"required": false,
|
|
172
|
+
"inherited": false,
|
|
173
|
+
"deprecated": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "nextLabel",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"default": null,
|
|
179
|
+
"description": "Label for the next button.",
|
|
180
|
+
"required": false,
|
|
181
|
+
"inherited": false,
|
|
182
|
+
"deprecated": false
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "onPrev",
|
|
186
|
+
"type": "() => void",
|
|
187
|
+
"default": null,
|
|
188
|
+
"description": "Callback when previous button is clicked.",
|
|
189
|
+
"required": false,
|
|
190
|
+
"inherited": false,
|
|
191
|
+
"deprecated": false
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "onNext",
|
|
195
|
+
"type": "() => void",
|
|
196
|
+
"default": null,
|
|
197
|
+
"description": "Callback when next button is clicked.",
|
|
198
|
+
"required": false,
|
|
199
|
+
"inherited": false,
|
|
200
|
+
"deprecated": false
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "onStepClick",
|
|
204
|
+
"type": "(step: number) => void",
|
|
205
|
+
"default": null,
|
|
206
|
+
"description": "Callback when a step is clicked.",
|
|
207
|
+
"required": false,
|
|
208
|
+
"inherited": false,
|
|
209
|
+
"deprecated": false
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"extraProps": [
|
|
213
|
+
{
|
|
214
|
+
"name": "children",
|
|
215
|
+
"type": "React.ReactNode",
|
|
216
|
+
"default": null,
|
|
217
|
+
"description": "Step children (alternative to items).",
|
|
218
|
+
"required": false,
|
|
219
|
+
"inherited": false,
|
|
220
|
+
"deprecated": false
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "className",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"default": null,
|
|
226
|
+
"description": "Additional CSS classes.",
|
|
227
|
+
"required": false,
|
|
228
|
+
"inherited": false,
|
|
229
|
+
"deprecated": false
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
233
|
+
"types": []
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"path": "Steps.Step",
|
|
237
|
+
"summary": "Individual Step component for use inside Steps.",
|
|
238
|
+
"component": null,
|
|
239
|
+
"props": [
|
|
240
|
+
{
|
|
241
|
+
"name": "isActive",
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"default": "false",
|
|
244
|
+
"description": "Whether this step is active",
|
|
245
|
+
"required": false,
|
|
246
|
+
"inherited": false,
|
|
247
|
+
"deprecated": false
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "isCompleted",
|
|
251
|
+
"type": "boolean",
|
|
252
|
+
"default": "false",
|
|
253
|
+
"description": "Whether this step is completed",
|
|
254
|
+
"required": false,
|
|
255
|
+
"inherited": false,
|
|
256
|
+
"deprecated": false
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "label",
|
|
260
|
+
"type": "React.ReactNode",
|
|
261
|
+
"default": null,
|
|
262
|
+
"description": "Step label/title",
|
|
263
|
+
"required": false,
|
|
264
|
+
"inherited": false,
|
|
265
|
+
"deprecated": false
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "icon",
|
|
269
|
+
"type": "React.ReactNode",
|
|
270
|
+
"default": null,
|
|
271
|
+
"description": "Icon for the step marker",
|
|
272
|
+
"required": false,
|
|
273
|
+
"inherited": false,
|
|
274
|
+
"deprecated": false
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "clickable",
|
|
278
|
+
"type": "boolean",
|
|
279
|
+
"default": "false",
|
|
280
|
+
"description": "Whether this step is clickable",
|
|
281
|
+
"required": false,
|
|
282
|
+
"inherited": false,
|
|
283
|
+
"deprecated": false
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "onClick",
|
|
287
|
+
"type": "() => void",
|
|
288
|
+
"default": null,
|
|
289
|
+
"description": "Click handler",
|
|
290
|
+
"required": false,
|
|
291
|
+
"inherited": false,
|
|
292
|
+
"deprecated": false
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "stepNumber",
|
|
296
|
+
"type": "number",
|
|
297
|
+
"default": null,
|
|
298
|
+
"description": "Step number to display in marker (1-indexed)",
|
|
299
|
+
"required": false,
|
|
300
|
+
"inherited": false,
|
|
301
|
+
"deprecated": false
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "completedIcon",
|
|
305
|
+
"type": "React.ReactNode",
|
|
306
|
+
"default": "'✓'",
|
|
307
|
+
"description": "Icon shown when the step is completed.",
|
|
308
|
+
"required": false,
|
|
309
|
+
"inherited": false,
|
|
310
|
+
"deprecated": false
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "className",
|
|
314
|
+
"type": "string",
|
|
315
|
+
"default": null,
|
|
316
|
+
"description": "Additional CSS classes.",
|
|
317
|
+
"required": false,
|
|
318
|
+
"inherited": false,
|
|
319
|
+
"deprecated": false
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "children",
|
|
323
|
+
"type": "React.ReactNode",
|
|
324
|
+
"default": null,
|
|
325
|
+
"description": "Content rendered inside the component.",
|
|
326
|
+
"required": false,
|
|
327
|
+
"inherited": false,
|
|
328
|
+
"deprecated": false
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"extraProps": [],
|
|
332
|
+
"catchAll": "All standard <li> attributes and Bulma helper props",
|
|
333
|
+
"types": []
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"cssVars": [
|
|
337
|
+
{
|
|
338
|
+
"css": "--bulma-steps-marker-size",
|
|
339
|
+
"sass": "$steps-marker-size",
|
|
340
|
+
"default": "2rem",
|
|
341
|
+
"scope": "component"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"css": "--bulma-steps-marker-size-small",
|
|
345
|
+
"sass": "$steps-marker-size-small",
|
|
346
|
+
"default": "1.5rem",
|
|
347
|
+
"scope": "component"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"css": "--bulma-steps-marker-size-medium",
|
|
351
|
+
"sass": "$steps-marker-size-medium",
|
|
352
|
+
"default": "2.5rem",
|
|
353
|
+
"scope": "component"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"css": "--bulma-steps-marker-size-large",
|
|
357
|
+
"sass": "$steps-marker-size-large",
|
|
358
|
+
"default": "3rem",
|
|
359
|
+
"scope": "component"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"css": "--bulma-steps-divider-height",
|
|
363
|
+
"sass": "$steps-divider-height",
|
|
364
|
+
"default": "0.2em",
|
|
365
|
+
"scope": "component"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"css": "--bulma-steps-default-color",
|
|
369
|
+
"sass": "$steps-default-color",
|
|
370
|
+
"default": "var(--bulma-grey-light)",
|
|
371
|
+
"scope": "component"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"css": "--bulma-steps-marker-background",
|
|
375
|
+
"sass": "$steps-marker-background",
|
|
376
|
+
"default": "var(--bulma-scheme-main)",
|
|
377
|
+
"scope": "component"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"css": "--bulma-steps-marker-font-size",
|
|
381
|
+
"sass": "$steps-marker-font-size",
|
|
382
|
+
"default": "var(--bulma-size-small)",
|
|
383
|
+
"scope": "component"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"css": "--bulma-steps-marker-font-weight",
|
|
387
|
+
"sass": "$steps-marker-font-weight",
|
|
388
|
+
"default": "var(--bulma-weight-bold)",
|
|
389
|
+
"scope": "component"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"css": "--bulma-steps-title-size",
|
|
393
|
+
"sass": "$steps-title-size",
|
|
394
|
+
"default": "var(--bulma-size-small)",
|
|
395
|
+
"scope": "component"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"css": "--bulma-steps-title-weight",
|
|
399
|
+
"sass": "$steps-title-weight",
|
|
400
|
+
"default": "var(--bulma-weight-medium)",
|
|
401
|
+
"scope": "component"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"css": "--bulma-steps-title-color",
|
|
405
|
+
"sass": "$steps-title-color",
|
|
406
|
+
"default": "var(--bulma-text-weak)",
|
|
407
|
+
"scope": "component"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"css": "--bulma-steps-title-active-color",
|
|
411
|
+
"sass": "$steps-title-active-color",
|
|
412
|
+
"default": "var(--bulma-text-strong)",
|
|
413
|
+
"scope": "component"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"css": "--bulma-steps-title-active-weight",
|
|
417
|
+
"sass": "$steps-title-active-weight",
|
|
418
|
+
"default": "var(--bulma-weight-semibold)",
|
|
419
|
+
"scope": "component"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"css": "--bulma-steps-content-margin-top",
|
|
423
|
+
"sass": "$steps-content-margin-top",
|
|
424
|
+
"default": "0.5rem",
|
|
425
|
+
"scope": "component"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"css": "--bulma-steps-vertical-padding",
|
|
429
|
+
"sass": "$steps-vertical-padding",
|
|
430
|
+
"default": "1.5rem",
|
|
431
|
+
"scope": "component"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"css": "--bulma-steps-vertical-content-margin-left",
|
|
435
|
+
"sass": "$steps-vertical-content-margin-left",
|
|
436
|
+
"default": "1rem",
|
|
437
|
+
"scope": "component"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"css": "--bulma-steps-animation-duration",
|
|
441
|
+
"sass": "$steps-animation-duration",
|
|
442
|
+
"default": "0.3s",
|
|
443
|
+
"scope": "component"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"css": "--bulma-steps-navigation-margin-top",
|
|
447
|
+
"sass": "$steps-navigation-margin-top",
|
|
448
|
+
"default": "1rem",
|
|
449
|
+
"scope": "component"
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Strong",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/strong",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/strong",
|
|
7
|
+
"examples": [
|
|
8
|
+
{ "title": "Default Strong", "code": "<Strong>Important text</Strong>" },
|
|
9
|
+
{
|
|
10
|
+
"title": "Colored Strong",
|
|
11
|
+
"code": "<Strong textColor=\"primary\">Primary strong text</Strong>"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"title": "Danger Strong",
|
|
15
|
+
"code": "<Strong textColor=\"danger\">Important warning!</Strong>"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"title": "Strong with Background",
|
|
19
|
+
"code": "<Strong bgColor=\"warning\" p=\"1\">\n Highlighted strong text\n</Strong>"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"title": "Inline with Text",
|
|
23
|
+
"code": "<Paragraph>\n This is a paragraph with <Strong>strong text</Strong> in the middle. The\n strong text indicates <Strong textColor=\"primary\">important</Strong> content.\n</Paragraph>"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "All Colors",
|
|
27
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"2\">\n <Strong textColor=\"primary\">Primary strong</Strong>\n <Strong textColor=\"link\">Link strong</Strong>\n <Strong textColor=\"info\">Info strong</Strong>\n <Strong textColor=\"success\">Success strong</Strong>\n <Strong textColor=\"warning\">Warning strong</Strong>\n <Strong textColor=\"danger\">Danger strong</Strong>\n</Block>"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "Callout Pattern",
|
|
31
|
+
"code": "<Paragraph>\n <Strong>Note:</Strong> This is a pattern commonly used for callouts where the\n lead word is strong to draw attention.\n</Paragraph>"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"accessibility": "- **Semantic Importance:** Screen readers typically announce `<strong>` content with additional emphasis.\n- **Appropriate Use:** Use `<strong>` for content that is truly important, not just for visual styling.\n- **Color Contrast:** When adding color, ensure sufficient contrast for readability.\n\n:::info\nThe `<strong>` element indicates strong importance. For visual-only bold styling, use CSS or the `Span` component with `textWeight=\"bold\"`.\n:::",
|
|
35
|
+
"related": ["Emphasis", "Paragraph", "Span", "useBulmaClasses"],
|
|
36
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-strong--default",
|
|
37
|
+
"summary": "The `Strong` component renders a styled `<strong>` element with Bulma helper class integration.",
|
|
38
|
+
"import": "import { Strong } from '@allxsmith/bestax-bulma';",
|
|
39
|
+
"sourceFile": "bulma-ui/src/elements/Strong.tsx",
|
|
40
|
+
"rootClass": null,
|
|
41
|
+
"parts": [
|
|
42
|
+
{
|
|
43
|
+
"path": "Strong",
|
|
44
|
+
"summary": "The `Strong` component renders a styled `<strong>` element with Bulma helper class integration.",
|
|
45
|
+
"component": null,
|
|
46
|
+
"props": [
|
|
47
|
+
{
|
|
48
|
+
"name": "className",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"default": null,
|
|
51
|
+
"description": "Additional CSS classes to apply.",
|
|
52
|
+
"required": false,
|
|
53
|
+
"inherited": false,
|
|
54
|
+
"deprecated": false
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "textColor",
|
|
58
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
59
|
+
"default": null,
|
|
60
|
+
"description": "Text color helper.",
|
|
61
|
+
"required": false,
|
|
62
|
+
"inherited": false,
|
|
63
|
+
"deprecated": false,
|
|
64
|
+
"valuesRef": "helpers/valid-values"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "bgColor",
|
|
68
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
69
|
+
"default": null,
|
|
70
|
+
"description": "Background color helper.",
|
|
71
|
+
"required": false,
|
|
72
|
+
"inherited": false,
|
|
73
|
+
"deprecated": false,
|
|
74
|
+
"valuesRef": "helpers/valid-values"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "children",
|
|
78
|
+
"type": "React.ReactNode",
|
|
79
|
+
"default": null,
|
|
80
|
+
"description": "Content to render inside the strong element.",
|
|
81
|
+
"required": false,
|
|
82
|
+
"inherited": false,
|
|
83
|
+
"deprecated": false
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"extraProps": [],
|
|
87
|
+
"catchAll": "All standard HTML attributes and Bulma helper props",
|
|
88
|
+
"types": []
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"cssVars": [
|
|
92
|
+
{
|
|
93
|
+
"css": "--bulma-strong-color",
|
|
94
|
+
"sass": "$strong-color",
|
|
95
|
+
"default": "var(--bulma-text-strong)",
|
|
96
|
+
"scope": "global"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"css": "--bulma-strong-weight",
|
|
100
|
+
"sass": "$strong-weight",
|
|
101
|
+
"default": "var(--bulma-weight-semibold)",
|
|
102
|
+
"scope": "global"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|