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,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Media",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "layout",
|
|
5
|
+
"slug": "layout/media",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/layout/media",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default Media",
|
|
10
|
+
"code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"https://bulma.io/assets/images/placeholders/128x128.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Alexander Hamilton</Strong> <small>@hamilton</small>{' '}\n <small>31m</small>\n <br />\n If men were angels, no government would be necessary. If angels were to\n govern men, neither external nor internal controls on government would\n be necessary.\n </Paragraph>\n </Content>\n <Level isMobile>\n <Level.Left>\n <Level.Item as=\"a\">\n <Icon name=\"reply\" variant=\"solid\" size=\"small\" />\n </Level.Item>\n <Level.Item as=\"a\">\n <Icon name=\"retweet\" variant=\"solid\" size=\"small\" />\n </Level.Item>\n <Level.Item as=\"a\">\n <Icon name=\"heart\" variant=\"solid\" size=\"small\" />\n </Level.Item>\n </Level.Left>\n </Level>\n </Media.Content>\n <Media.Right>\n <Delete aria-label=\"delete\" />\n </Media.Right>\n</Media>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Media With Inputs",
|
|
14
|
+
"code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"https://bulma.io/assets/images/placeholders/128x128.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Field>\n <Control as=\"p\">\n <TextArea placeholder=\"Add a comment...\" />\n </Control>\n </Field>\n <Level>\n <Level.Left>\n <Level.Item>\n <Button as=\"a\" color=\"info\">\n Submit\n </Button>\n </Level.Item>\n </Level.Left>\n <Level.Right>\n <Level.Item>\n <Checkbox>Press enter to submit</Checkbox>\n </Level.Item>\n </Level.Right>\n </Level>\n </Media.Content>\n</Media>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Nested Media",
|
|
18
|
+
"code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"https://bulma.io/assets/images/placeholders/128x128.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>John Jay</Strong>\n <br />\n The people, in their collective capacity, are the ultimate authority.\n The Union is essential to the security of the people of America against\n foreign danger.\n <br />\n <small>\n <a>Like</a> · <a>Reply</a> · 3 hrs\n </small>\n </Paragraph>\n </Content>\n {/* First nested media */}\n <Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"48x48\"\n src=\"https://bulma.io/assets/images/placeholders/96x96.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>James Madison</Strong>\n <br />\n The accumulation of all powers, legislative, executive, and\n judiciary, in the same hands, may justly be pronounced the very\n definition of tyranny.\n <br />\n <small>\n <a>Like</a> · <a>Reply</a> · 2 hrs\n </small>\n </Paragraph>\n </Content>\n {/* 2nd nested media (two siblings) */}\n <Media>\n Experience has taught mankind the necessity of auxiliary precautions.\n </Media>\n <Media>Ambition must be made to counteract ambition.</Media>\n </Media.Content>\n </Media>\n {/* Second nested media */}\n <Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"48x48\"\n src=\"https://bulma.io/assets/images/placeholders/96x96.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Alexander Hamilton</Strong>\n <br />\n Safety from external danger is the most powerful director of\n national conduct. The desire for respect and security will always\n influence the policy of nations.\n <br />\n <small>\n <a>Like</a> · <a>Reply</a> · 2 hrs\n </small>\n </Paragraph>\n </Content>\n </Media.Content>\n </Media>\n </Media.Content>\n</Media>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Media With Button Below",
|
|
22
|
+
"code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"https://bulma.io/assets/images/placeholders/128x128.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Field>\n <Control as=\"p\">\n <TextArea placeholder=\"Add a comment...\" />\n </Control>\n </Field>\n <Field>\n <Control as=\"p\">\n <Button>Post comment</Button>\n </Control>\n </Field>\n </Media.Content>\n</Media>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Compound (dot-notation) usage",
|
|
26
|
+
"code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"https://bulma.io/assets/images/placeholders/128x128.png\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <p>\n <strong>John Smith</strong> <small>@johnsmith</small>\n <br />\n Composed entirely from the single Media import via dot notation.\n </p>\n </Content>\n </Media.Content>\n <Media.Right>\n <Button as=\"a\" size=\"small\">\n Reply\n </Button>\n </Media.Right>\n</Media>"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"accessibility": "- The Media root renders as a semantic `<article>` by default. Use `as=\"div\"` for a generic container.\n- The left section is commonly used for avatars (as `<figure>`) and is screen-reader accessible.\n- Use clear and descriptive text in content and actions for best accessibility.\n\n:::note\nWhen using only icons or controls, provide `aria-label` or screen-reader-only content as appropriate.\n:::",
|
|
30
|
+
"related": [
|
|
31
|
+
"Button",
|
|
32
|
+
"Checkbox",
|
|
33
|
+
"Image",
|
|
34
|
+
"Level",
|
|
35
|
+
"TextArea",
|
|
36
|
+
"useBulmaClasses"
|
|
37
|
+
],
|
|
38
|
+
"storybook": "https://bestax.io/storybook/?path=/story/layout-media--default",
|
|
39
|
+
"summary": "The `Media` component implements Bulma’s powerful media object layout for React.",
|
|
40
|
+
"import": "import { Media } from '@allxsmith/bestax-bulma';",
|
|
41
|
+
"sourceFile": "bulma-ui/src/layout/Media.tsx",
|
|
42
|
+
"rootClass": "media",
|
|
43
|
+
"parts": [
|
|
44
|
+
{
|
|
45
|
+
"path": "Media",
|
|
46
|
+
"summary": "The `Media` component implements Bulma’s powerful media object layout for React.",
|
|
47
|
+
"component": null,
|
|
48
|
+
"props": [
|
|
49
|
+
{
|
|
50
|
+
"name": "as",
|
|
51
|
+
"type": "'article' | 'div'",
|
|
52
|
+
"default": "'article'",
|
|
53
|
+
"description": "Element type for the root Media container.",
|
|
54
|
+
"required": false,
|
|
55
|
+
"inherited": false,
|
|
56
|
+
"deprecated": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "color",
|
|
60
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
61
|
+
"default": null,
|
|
62
|
+
"description": "Bulma color modifier.",
|
|
63
|
+
"required": false,
|
|
64
|
+
"inherited": false,
|
|
65
|
+
"deprecated": false,
|
|
66
|
+
"valuesRef": "helpers/valid-values"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "bgColor",
|
|
70
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
71
|
+
"default": null,
|
|
72
|
+
"description": "Bulma background color helper.",
|
|
73
|
+
"required": false,
|
|
74
|
+
"inherited": false,
|
|
75
|
+
"deprecated": false,
|
|
76
|
+
"valuesRef": "helpers/valid-values"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "textColor",
|
|
80
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
81
|
+
"default": null,
|
|
82
|
+
"description": "Bulma text color helper.",
|
|
83
|
+
"required": false,
|
|
84
|
+
"inherited": false,
|
|
85
|
+
"deprecated": false,
|
|
86
|
+
"valuesRef": "helpers/valid-values"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "className",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"default": null,
|
|
92
|
+
"description": "Additional CSS classes.",
|
|
93
|
+
"required": false,
|
|
94
|
+
"inherited": false,
|
|
95
|
+
"deprecated": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "children",
|
|
99
|
+
"type": "React.ReactNode",
|
|
100
|
+
"default": null,
|
|
101
|
+
"description": "Content inside the media container.",
|
|
102
|
+
"required": false,
|
|
103
|
+
"inherited": false,
|
|
104
|
+
"deprecated": false
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"extraProps": [],
|
|
108
|
+
"catchAll": "All standard HTML attributes and Bulma helper props",
|
|
109
|
+
"types": []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"path": "Media.Left",
|
|
113
|
+
"summary": "For avatars, thumbnails, icons (renders as `figure` or `div`)",
|
|
114
|
+
"component": null,
|
|
115
|
+
"props": [
|
|
116
|
+
{
|
|
117
|
+
"name": "as",
|
|
118
|
+
"type": "'figure' | 'div'",
|
|
119
|
+
"default": "'figure'",
|
|
120
|
+
"description": "Element type to render.",
|
|
121
|
+
"required": false,
|
|
122
|
+
"inherited": false,
|
|
123
|
+
"deprecated": false
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "color",
|
|
127
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
128
|
+
"default": null,
|
|
129
|
+
"description": "Bulma color modifier.",
|
|
130
|
+
"required": false,
|
|
131
|
+
"inherited": false,
|
|
132
|
+
"deprecated": false,
|
|
133
|
+
"valuesRef": "helpers/valid-values"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "bgColor",
|
|
137
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
138
|
+
"default": null,
|
|
139
|
+
"description": "Background color.",
|
|
140
|
+
"required": false,
|
|
141
|
+
"inherited": false,
|
|
142
|
+
"deprecated": false,
|
|
143
|
+
"valuesRef": "helpers/valid-values"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "textColor",
|
|
147
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
148
|
+
"default": null,
|
|
149
|
+
"description": "Text color.",
|
|
150
|
+
"required": false,
|
|
151
|
+
"inherited": false,
|
|
152
|
+
"deprecated": false,
|
|
153
|
+
"valuesRef": "helpers/valid-values"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "className",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"default": null,
|
|
159
|
+
"description": "Additional CSS classes.",
|
|
160
|
+
"required": false,
|
|
161
|
+
"inherited": false,
|
|
162
|
+
"deprecated": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "children",
|
|
166
|
+
"type": "React.ReactNode",
|
|
167
|
+
"default": null,
|
|
168
|
+
"description": "Content.",
|
|
169
|
+
"required": false,
|
|
170
|
+
"inherited": false,
|
|
171
|
+
"deprecated": false
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"extraProps": [],
|
|
175
|
+
"catchAll": "All standard HTML attributes and Bulma helper props",
|
|
176
|
+
"types": []
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"path": "Media.Content",
|
|
180
|
+
"summary": "Main content (renders as `div`)",
|
|
181
|
+
"component": null,
|
|
182
|
+
"props": [
|
|
183
|
+
{
|
|
184
|
+
"name": "color",
|
|
185
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
186
|
+
"default": null,
|
|
187
|
+
"description": "Bulma color modifier.",
|
|
188
|
+
"required": false,
|
|
189
|
+
"inherited": false,
|
|
190
|
+
"deprecated": false,
|
|
191
|
+
"valuesRef": "helpers/valid-values"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "bgColor",
|
|
195
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
196
|
+
"default": null,
|
|
197
|
+
"description": "Background color.",
|
|
198
|
+
"required": false,
|
|
199
|
+
"inherited": false,
|
|
200
|
+
"deprecated": false,
|
|
201
|
+
"valuesRef": "helpers/valid-values"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "textColor",
|
|
205
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
206
|
+
"default": null,
|
|
207
|
+
"description": "Text color.",
|
|
208
|
+
"required": false,
|
|
209
|
+
"inherited": false,
|
|
210
|
+
"deprecated": false,
|
|
211
|
+
"valuesRef": "helpers/valid-values"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "className",
|
|
215
|
+
"type": "string",
|
|
216
|
+
"default": null,
|
|
217
|
+
"description": "Additional CSS classes.",
|
|
218
|
+
"required": false,
|
|
219
|
+
"inherited": false,
|
|
220
|
+
"deprecated": false
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "children",
|
|
224
|
+
"type": "React.ReactNode",
|
|
225
|
+
"default": null,
|
|
226
|
+
"description": "Content.",
|
|
227
|
+
"required": false,
|
|
228
|
+
"inherited": false,
|
|
229
|
+
"deprecated": false
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"extraProps": [],
|
|
233
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
234
|
+
"types": []
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"path": "Media.Right",
|
|
238
|
+
"summary": "Actions or controls (renders as `div`)",
|
|
239
|
+
"component": null,
|
|
240
|
+
"props": [
|
|
241
|
+
{
|
|
242
|
+
"name": "color",
|
|
243
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
244
|
+
"default": null,
|
|
245
|
+
"description": "Bulma color modifier.",
|
|
246
|
+
"required": false,
|
|
247
|
+
"inherited": false,
|
|
248
|
+
"deprecated": false,
|
|
249
|
+
"valuesRef": "helpers/valid-values"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "bgColor",
|
|
253
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
254
|
+
"default": null,
|
|
255
|
+
"description": "Background color.",
|
|
256
|
+
"required": false,
|
|
257
|
+
"inherited": false,
|
|
258
|
+
"deprecated": false,
|
|
259
|
+
"valuesRef": "helpers/valid-values"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "textColor",
|
|
263
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
264
|
+
"default": null,
|
|
265
|
+
"description": "Text color.",
|
|
266
|
+
"required": false,
|
|
267
|
+
"inherited": false,
|
|
268
|
+
"deprecated": false,
|
|
269
|
+
"valuesRef": "helpers/valid-values"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "className",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"default": null,
|
|
275
|
+
"description": "Additional CSS classes.",
|
|
276
|
+
"required": false,
|
|
277
|
+
"inherited": false,
|
|
278
|
+
"deprecated": false
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "children",
|
|
282
|
+
"type": "React.ReactNode",
|
|
283
|
+
"default": null,
|
|
284
|
+
"description": "Content.",
|
|
285
|
+
"required": false,
|
|
286
|
+
"inherited": false,
|
|
287
|
+
"deprecated": false
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"extraProps": [],
|
|
291
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
292
|
+
"types": []
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"cssVars": [
|
|
296
|
+
{
|
|
297
|
+
"css": "--bulma-media-border-color",
|
|
298
|
+
"sass": "$media-border-color",
|
|
299
|
+
"default": "hsla(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-border-l), 0.5)",
|
|
300
|
+
"scope": "component"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"css": "--bulma-media-border-size",
|
|
304
|
+
"sass": "$media-border-size",
|
|
305
|
+
"default": "1px",
|
|
306
|
+
"scope": "component"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"css": "--bulma-media-spacing",
|
|
310
|
+
"sass": "$media-spacing",
|
|
311
|
+
"default": "1rem",
|
|
312
|
+
"scope": "component"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"css": "--bulma-media-spacing-large",
|
|
316
|
+
"sass": "$media-spacing-large",
|
|
317
|
+
"default": "1.5rem",
|
|
318
|
+
"scope": "component"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"css": "--bulma-media-content-spacing",
|
|
322
|
+
"sass": "$media-content-spacing",
|
|
323
|
+
"default": "0.75rem",
|
|
324
|
+
"scope": "component"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"css": "--bulma-media-level-1-spacing",
|
|
328
|
+
"sass": "$media-level-1-spacing",
|
|
329
|
+
"default": "0.75rem",
|
|
330
|
+
"scope": "component"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"css": "--bulma-media-level-1-content-spacing",
|
|
334
|
+
"sass": "$media-level-1-content-spacing",
|
|
335
|
+
"default": "0.5rem",
|
|
336
|
+
"scope": "component"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"css": "--bulma-media-level-2-spacing",
|
|
340
|
+
"sass": "$media-level-2-spacing",
|
|
341
|
+
"default": "0.5rem",
|
|
342
|
+
"scope": "component"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Menu",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "components",
|
|
5
|
+
"slug": "components/menu",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/components/menu",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Basic Menu with Nested Lists",
|
|
10
|
+
"code": "<Menu style={{ maxWidth: 300 }}>\n <Menu.Label>General</Menu.Label>\n <Menu.List>\n <Menu.Item>Dashboard</Menu.Item>\n <Menu.Item>Customers</Menu.Item>\n </Menu.List>\n <Menu.Label>Administration</Menu.Label>\n <Menu.List>\n <Menu.Item>Team Settings</Menu.Item>\n <Menu.Item active>\n Manage Your Team\n <Menu.List>\n <Menu.Item>Members</Menu.Item>\n <Menu.Item>Plugins</Menu.Item>\n <Menu.Item>Add a member</Menu.Item>\n </Menu.List>\n </Menu.Item>\n <Menu.Item>Invitations</Menu.Item>\n <Menu.Item>Cloud Storage Environment Settings</Menu.Item>\n <Menu.Item>Authentication</Menu.Item>\n </Menu.List>\n <Menu.Label>Transactions</Menu.Label>\n <Menu.List>\n <Menu.Item>Payments</Menu.Item>\n <Menu.Item>Transfers</Menu.Item>\n <Menu.Item>Balance</Menu.Item>\n </Menu.List>\n</Menu>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Custom Link Component",
|
|
14
|
+
"code": "// import { Link } from 'react-router-dom';\nfunction example() {\n const Link = props => <a>{props.children}</a>;\n return (\n <Menu>\n <Menu.Label>App</Menu.Label>\n <Menu.List>\n <Menu.Item as={Link} to=\"/dashboard\">\n Dashboard\n </Menu.Item>\n <Menu.Item as={Link} to=\"/settings\">\n Settings\n </Menu.Item>\n </Menu.List>\n </Menu>\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Active Menu Item",
|
|
18
|
+
"code": "<Menu>\n <Menu.Label>Active Example</Menu.Label>\n <Menu.List>\n <Menu.Item>Overview</Menu.Item>\n <Menu.Item active>Current Page</Menu.Item>\n <Menu.Item>Other</Menu.Item>\n </Menu.List>\n</Menu>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Deeply Nested Menu",
|
|
22
|
+
"code": "<Menu>\n <Menu.Label>Levels</Menu.Label>\n <Menu.List>\n <Menu.Item>\n Level 1\n <Menu.List>\n <Menu.Item>\n Level 2\n <Menu.List>\n <Menu.Item>Level 3</Menu.Item>\n </Menu.List>\n </Menu.Item>\n </Menu.List>\n </Menu.Item>\n </Menu.List>\n</Menu>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Compound (dot-notation) usage",
|
|
26
|
+
"code": "<Menu>\n <Menu.Label>General</Menu.Label>\n <Menu.List>\n <Menu.Item active>Dashboard</Menu.Item>\n <Menu.Item>Customers</Menu.Item>\n </Menu.List>\n</Menu>"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"accessibility": "- The root `Menu` renders as `<aside class=\"menu\">`.\n- Use semantic nesting (`Menu.List` inside `Menu.Item`) for submenus.\n- Ensure each item is focusable and accessible if interactive.\n\n:::note\nFor router integrations, pass the correct `as` and `to`/`href` props to `Menu.Item`.\n:::",
|
|
30
|
+
"related": ["Panel", "Sidebar", "useBulmaClasses"],
|
|
31
|
+
"storybook": "https://bestax.io/storybook/?path=/story/components-menu--basic",
|
|
32
|
+
"summary": "The `Menu` component provides Bulma's vertical navigation menu: a simple, accessible sidebar or section menu for your Bulma React UI.",
|
|
33
|
+
"import": "import { Menu } from '@allxsmith/bestax-bulma';",
|
|
34
|
+
"sourceFile": "bulma-ui/src/components/Menu.tsx",
|
|
35
|
+
"rootClass": "menu",
|
|
36
|
+
"parts": [
|
|
37
|
+
{
|
|
38
|
+
"path": "Menu",
|
|
39
|
+
"summary": "The `Menu` component provides Bulma's vertical navigation menu: a simple, accessible sidebar or section menu for your Bulma React UI.",
|
|
40
|
+
"component": null,
|
|
41
|
+
"props": [
|
|
42
|
+
{
|
|
43
|
+
"name": "className",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": null,
|
|
46
|
+
"description": "Additional CSS classes.",
|
|
47
|
+
"required": false,
|
|
48
|
+
"inherited": false,
|
|
49
|
+
"deprecated": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "children",
|
|
53
|
+
"type": "React.ReactNode",
|
|
54
|
+
"default": null,
|
|
55
|
+
"description": "Menu content (labels, lists, items, etc).",
|
|
56
|
+
"required": false,
|
|
57
|
+
"inherited": false,
|
|
58
|
+
"deprecated": false
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"extraProps": [],
|
|
62
|
+
"catchAll": "All standard HTML attributes and Bulma helper props",
|
|
63
|
+
"types": []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "Menu.Label",
|
|
67
|
+
"summary": "Bulma Menu label component.",
|
|
68
|
+
"component": null,
|
|
69
|
+
"props": [
|
|
70
|
+
{
|
|
71
|
+
"name": "className",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": null,
|
|
74
|
+
"description": "Additional CSS classes.",
|
|
75
|
+
"required": false,
|
|
76
|
+
"inherited": false,
|
|
77
|
+
"deprecated": false
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "children",
|
|
81
|
+
"type": "React.ReactNode",
|
|
82
|
+
"default": null,
|
|
83
|
+
"description": "Label content.",
|
|
84
|
+
"required": false,
|
|
85
|
+
"inherited": false,
|
|
86
|
+
"deprecated": false
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"extraProps": [],
|
|
90
|
+
"catchAll": "All standard <p> attributes and Bulma helper props",
|
|
91
|
+
"types": []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "Menu.List",
|
|
95
|
+
"summary": "MenuList applies `menu-list` class only at the top level (not for nested lists).",
|
|
96
|
+
"component": null,
|
|
97
|
+
"props": [
|
|
98
|
+
{
|
|
99
|
+
"name": "className",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"default": null,
|
|
102
|
+
"description": "Additional CSS classes.",
|
|
103
|
+
"required": false,
|
|
104
|
+
"inherited": false,
|
|
105
|
+
"deprecated": false
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "children",
|
|
109
|
+
"type": "React.ReactNode",
|
|
110
|
+
"default": null,
|
|
111
|
+
"description": "List items.",
|
|
112
|
+
"required": false,
|
|
113
|
+
"inherited": false,
|
|
114
|
+
"deprecated": false
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"extraProps": [],
|
|
118
|
+
"catchAll": "All standard <ul> attributes and Bulma helper props",
|
|
119
|
+
"types": []
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"path": "Menu.Item",
|
|
123
|
+
"summary": "MenuItem supports `as` prop for custom link components, e.g., react-router-dom Link.",
|
|
124
|
+
"component": null,
|
|
125
|
+
"props": [
|
|
126
|
+
{
|
|
127
|
+
"name": "className",
|
|
128
|
+
"type": "string",
|
|
129
|
+
"default": null,
|
|
130
|
+
"description": "Additional CSS classes.",
|
|
131
|
+
"required": false,
|
|
132
|
+
"inherited": false,
|
|
133
|
+
"deprecated": false
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "children",
|
|
137
|
+
"type": "React.ReactNode",
|
|
138
|
+
"default": null,
|
|
139
|
+
"description": "Item content and optional nested MenuList.",
|
|
140
|
+
"required": false,
|
|
141
|
+
"inherited": false,
|
|
142
|
+
"deprecated": false
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "active",
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"default": "false",
|
|
148
|
+
"description": "Highlight item as active.",
|
|
149
|
+
"required": false,
|
|
150
|
+
"inherited": false,
|
|
151
|
+
"deprecated": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "href",
|
|
155
|
+
"type": "string",
|
|
156
|
+
"default": null,
|
|
157
|
+
"description": "Href for link items (if rendered as `<a>`).",
|
|
158
|
+
"required": false,
|
|
159
|
+
"inherited": false,
|
|
160
|
+
"deprecated": false
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "as",
|
|
164
|
+
"type": "React.ElementType",
|
|
165
|
+
"default": "'a'",
|
|
166
|
+
"description": "Custom link component (e.g. `Link` from router).",
|
|
167
|
+
"required": false,
|
|
168
|
+
"inherited": false,
|
|
169
|
+
"deprecated": false
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"extraProps": [],
|
|
173
|
+
"catchAll": "All standard <li> attributes and Bulma helper props",
|
|
174
|
+
"types": []
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"cssVars": [
|
|
178
|
+
{
|
|
179
|
+
"css": "--bulma-menu-item-h",
|
|
180
|
+
"sass": "$menu-item-h",
|
|
181
|
+
"default": "var(--bulma-scheme-h)",
|
|
182
|
+
"scope": "component"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"css": "--bulma-menu-item-s",
|
|
186
|
+
"sass": "$menu-item-s",
|
|
187
|
+
"default": "var(--bulma-scheme-s)",
|
|
188
|
+
"scope": "component"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"css": "--bulma-menu-item-l",
|
|
192
|
+
"sass": "$menu-item-l",
|
|
193
|
+
"default": "var(--bulma-scheme-main-l)",
|
|
194
|
+
"scope": "component"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"css": "--bulma-menu-item-background-l",
|
|
198
|
+
"sass": "$menu-item-background-l",
|
|
199
|
+
"default": "var(--bulma-scheme-main-l)",
|
|
200
|
+
"scope": "component"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"css": "--bulma-menu-item-background-l-delta",
|
|
204
|
+
"sass": "$menu-item-background-l-delta",
|
|
205
|
+
"default": "0%",
|
|
206
|
+
"scope": "component"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"css": "--bulma-menu-item-hover-background-l-delta",
|
|
210
|
+
"sass": "$menu-item-hover-background-l-delta",
|
|
211
|
+
"default": "var(--bulma-hover-background-l-delta)",
|
|
212
|
+
"scope": "component"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"css": "--bulma-menu-item-active-background-l-delta",
|
|
216
|
+
"sass": "$menu-item-active-background-l-delta",
|
|
217
|
+
"default": "var(--bulma-active-background-l-delta)",
|
|
218
|
+
"scope": "component"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"css": "--bulma-menu-item-color-l",
|
|
222
|
+
"sass": "$menu-item-color-l",
|
|
223
|
+
"default": "var(--bulma-text-l)",
|
|
224
|
+
"scope": "component"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"css": "--bulma-menu-item-radius",
|
|
228
|
+
"sass": "$menu-item-radius",
|
|
229
|
+
"default": "var(--bulma-radius-small)",
|
|
230
|
+
"scope": "component"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"css": "--bulma-menu-item-selected-h",
|
|
234
|
+
"sass": "$menu-item-selected-h",
|
|
235
|
+
"default": "var(--bulma-link-h)",
|
|
236
|
+
"scope": "component"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"css": "--bulma-menu-item-selected-s",
|
|
240
|
+
"sass": "$menu-item-selected-s",
|
|
241
|
+
"default": "var(--bulma-link-s)",
|
|
242
|
+
"scope": "component"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"css": "--bulma-menu-item-selected-l",
|
|
246
|
+
"sass": "$menu-item-selected-l",
|
|
247
|
+
"default": "var(--bulma-link-l)",
|
|
248
|
+
"scope": "component"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"css": "--bulma-menu-item-selected-background-l",
|
|
252
|
+
"sass": "$menu-item-selected-background-l",
|
|
253
|
+
"default": "var(--bulma-link-l)",
|
|
254
|
+
"scope": "component"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"css": "--bulma-menu-item-selected-color-l",
|
|
258
|
+
"sass": "$menu-item-selected-color-l",
|
|
259
|
+
"default": "var(--bulma-link-invert-l)",
|
|
260
|
+
"scope": "component"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"css": "--bulma-menu-list-border-left",
|
|
264
|
+
"sass": "$menu-list-border-left",
|
|
265
|
+
"default": "1px solid var(--bulma-border)",
|
|
266
|
+
"scope": "component"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"css": "--bulma-menu-list-line-height",
|
|
270
|
+
"sass": "$menu-list-line-height",
|
|
271
|
+
"default": "1.25",
|
|
272
|
+
"scope": "component"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"css": "--bulma-menu-list-link-padding",
|
|
276
|
+
"sass": "$menu-list-link-padding",
|
|
277
|
+
"default": "0.5em 0.75em",
|
|
278
|
+
"scope": "component"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"css": "--bulma-menu-nested-list-margin",
|
|
282
|
+
"sass": "$menu-nested-list-margin",
|
|
283
|
+
"default": "0.75em",
|
|
284
|
+
"scope": "component"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"css": "--bulma-menu-nested-list-padding-left",
|
|
288
|
+
"sass": "$menu-nested-list-padding-left",
|
|
289
|
+
"default": "0.75em",
|
|
290
|
+
"scope": "component"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"css": "--bulma-menu-label-color",
|
|
294
|
+
"sass": "$menu-label-color",
|
|
295
|
+
"default": "var(--bulma-text-weak)",
|
|
296
|
+
"scope": "component"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"css": "--bulma-menu-label-font-size",
|
|
300
|
+
"sass": "$menu-label-font-size",
|
|
301
|
+
"default": "0.75em",
|
|
302
|
+
"scope": "component"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"css": "--bulma-menu-label-letter-spacing",
|
|
306
|
+
"sass": "$menu-label-letter-spacing",
|
|
307
|
+
"default": "0.1em",
|
|
308
|
+
"scope": "component"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"css": "--bulma-menu-label-spacing",
|
|
312
|
+
"sass": "$menu-label-spacing",
|
|
313
|
+
"default": "1em",
|
|
314
|
+
"scope": "component"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
}
|