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,353 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Dropdown",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "components",
|
|
5
|
+
"slug": "components/dropdown",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/components/dropdown",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default Dropdown",
|
|
10
|
+
"code": "import { Dropdown } from '@allxsmith/bestax-bulma';\n\nfunction Example() {\n return (\n <Dropdown label=\"Dropdown Menu\">\n <Dropdown.Item>First Item</Dropdown.Item>\n <Dropdown.Item>Second Item</Dropdown.Item>\n <Dropdown.Divider />\n <Dropdown.Item>Third Item</Dropdown.Item>\n <Dropdown.Item>Fourth Item</Dropdown.Item>\n <Dropdown.Item>Fifth Item</Dropdown.Item>\n </Dropdown>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Custom Tags (button, div, anchor)",
|
|
14
|
+
"code": "<Dropdown label=\"Custom Dropdown Content\">\n <Dropdown.Item as=\"a\" href=\"https://example.com\" target=\"_blank\">\n Anchor Item\n </Dropdown.Item>\n <Dropdown.Item as=\"div\">Div Item</Dropdown.Item>\n <Dropdown.Item as=\"button\" onClick={() => alert('Clicked!')}>\n Button Item\n </Dropdown.Item>\n</Dropdown>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Hoverable and Always Active",
|
|
18
|
+
"code": "<Dropdown label=\"Hoverable + Active\" hoverable active>\n <Dropdown.Item>Hover or Always Open</Dropdown.Item>\n <Dropdown.Item>Second</Dropdown.Item>\n <Dropdown.Divider />\n <Dropdown.Item>Another</Dropdown.Item>\n</Dropdown>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Right-Aligned Dropdown",
|
|
22
|
+
"code": "<Dropdown label=\"Dropdown Right\" right>\n <Dropdown.Item>Right 1</Dropdown.Item>\n <Dropdown.Item>Right 2</Dropdown.Item>\n</Dropdown>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Upward Dropdown",
|
|
26
|
+
"code": "<Dropdown label=\"Dropdown Up\" up>\n <Dropdown.Item>Up 1</Dropdown.Item>\n <Dropdown.Item>Up 2</Dropdown.Item>\n</Dropdown>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Controlled Dropdown Example",
|
|
30
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <Dropdown\n label=\"Controlled Dropdown\"\n active={open}\n onActiveChange={setOpen}\n >\n <Dropdown.Item>Item A</Dropdown.Item>\n <Dropdown.Item>Item B</Dropdown.Item>\n </Dropdown>\n );\n}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Compound (dot-notation) usage",
|
|
34
|
+
"code": "<Dropdown label=\"Dropdown Menu\" active>\n <Dropdown.Item>First Item</Dropdown.Item>\n <Dropdown.Item>Second Item</Dropdown.Item>\n <Dropdown.Divider />\n <Dropdown.Item>Third Item</Dropdown.Item>\n</Dropdown>"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"accessibility": "- The dropdown root is a `<div class=\"dropdown\">` with ARIA roles/attributes for menu and trigger.\n- The trigger button uses `aria-haspopup`, `aria-controls`, and `aria-expanded`.\n- Menu items are focusable and use `role=\"menuitem\"`.\n- Clicking outside closes the dropdown in most cases.\n\n:::note\nFor custom keyboard navigation or focus management, add handlers as needed.\n:::",
|
|
38
|
+
"related": ["Button", "useBulmaClasses"],
|
|
39
|
+
"storybook": "https://bestax.io/storybook/?path=/story/components-dropdown--default",
|
|
40
|
+
"summary": "The `Dropdown` component provides Bulma's versatile dropdown menu for your Bulma React UI.",
|
|
41
|
+
"import": "import { Dropdown } from '@allxsmith/bestax-bulma';",
|
|
42
|
+
"sourceFile": "bulma-ui/src/components/Dropdown.tsx",
|
|
43
|
+
"rootClass": "dropdown",
|
|
44
|
+
"parts": [
|
|
45
|
+
{
|
|
46
|
+
"path": "Dropdown",
|
|
47
|
+
"summary": "The `Dropdown` component provides Bulma's versatile dropdown menu for your Bulma React UI.",
|
|
48
|
+
"component": null,
|
|
49
|
+
"props": [
|
|
50
|
+
{
|
|
51
|
+
"name": "label",
|
|
52
|
+
"type": "React.ReactNode",
|
|
53
|
+
"default": null,
|
|
54
|
+
"description": "The dropdown button/trigger content.",
|
|
55
|
+
"required": false,
|
|
56
|
+
"inherited": false,
|
|
57
|
+
"deprecated": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "children",
|
|
61
|
+
"type": "React.ReactNode",
|
|
62
|
+
"default": null,
|
|
63
|
+
"description": "Dropdown menu items and dividers.",
|
|
64
|
+
"required": false,
|
|
65
|
+
"inherited": false,
|
|
66
|
+
"deprecated": false
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "className",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"default": null,
|
|
72
|
+
"description": "Additional CSS classes for root.",
|
|
73
|
+
"required": false,
|
|
74
|
+
"inherited": false,
|
|
75
|
+
"deprecated": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "menuClassName",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"default": null,
|
|
81
|
+
"description": "Additional CSS classes for the dropdown menu.",
|
|
82
|
+
"required": false,
|
|
83
|
+
"inherited": false,
|
|
84
|
+
"deprecated": false
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "active",
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"default": null,
|
|
90
|
+
"description": "Whether the dropdown is open (controlled).",
|
|
91
|
+
"required": false,
|
|
92
|
+
"inherited": false,
|
|
93
|
+
"deprecated": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "up",
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": "false",
|
|
99
|
+
"description": "Dropdown menu opens upward.",
|
|
100
|
+
"required": false,
|
|
101
|
+
"inherited": false,
|
|
102
|
+
"deprecated": false
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "right",
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": "false",
|
|
108
|
+
"description": "Menu is right-aligned.",
|
|
109
|
+
"required": false,
|
|
110
|
+
"inherited": false,
|
|
111
|
+
"deprecated": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "hoverable",
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"default": "false",
|
|
117
|
+
"description": "Open on hover instead of click.",
|
|
118
|
+
"required": false,
|
|
119
|
+
"inherited": false,
|
|
120
|
+
"deprecated": false
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "disabled",
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"default": "false",
|
|
126
|
+
"description": "Disables the dropdown trigger.",
|
|
127
|
+
"required": false,
|
|
128
|
+
"inherited": false,
|
|
129
|
+
"deprecated": false
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "onActiveChange",
|
|
133
|
+
"type": "(active: boolean) => void",
|
|
134
|
+
"default": null,
|
|
135
|
+
"description": "Callback when dropdown active state changes.",
|
|
136
|
+
"required": false,
|
|
137
|
+
"inherited": false,
|
|
138
|
+
"deprecated": false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "closeOnClick",
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"default": "true",
|
|
144
|
+
"description": "Close dropdown when a menu item is clicked.",
|
|
145
|
+
"required": false,
|
|
146
|
+
"inherited": false,
|
|
147
|
+
"deprecated": false
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "id",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"default": null,
|
|
153
|
+
"description": "Root element ID (for aria-controls, etc).",
|
|
154
|
+
"required": false,
|
|
155
|
+
"inherited": false,
|
|
156
|
+
"deprecated": false
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"extraProps": [],
|
|
160
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
161
|
+
"types": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"path": "Dropdown.Item",
|
|
165
|
+
"summary": "Bulma Dropdown item.",
|
|
166
|
+
"component": null,
|
|
167
|
+
"props": [
|
|
168
|
+
{
|
|
169
|
+
"name": "active",
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"default": "false",
|
|
172
|
+
"description": "Whether the item is active.",
|
|
173
|
+
"required": false,
|
|
174
|
+
"inherited": false,
|
|
175
|
+
"deprecated": false
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "className",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"default": null,
|
|
181
|
+
"description": "Additional CSS classes.",
|
|
182
|
+
"required": false,
|
|
183
|
+
"inherited": false,
|
|
184
|
+
"deprecated": false
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "as",
|
|
188
|
+
"type": "'a' | 'div' | 'button'",
|
|
189
|
+
"default": "'a'",
|
|
190
|
+
"description": "The element type to render.",
|
|
191
|
+
"required": false,
|
|
192
|
+
"inherited": false,
|
|
193
|
+
"deprecated": false
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "children",
|
|
197
|
+
"type": "React.ReactNode",
|
|
198
|
+
"default": null,
|
|
199
|
+
"description": "Item content.",
|
|
200
|
+
"required": false,
|
|
201
|
+
"inherited": false,
|
|
202
|
+
"deprecated": false
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"extraProps": [],
|
|
206
|
+
"catchAll": "All standard HTML attributes and Bulma helper props",
|
|
207
|
+
"types": []
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"path": "Dropdown.Divider",
|
|
211
|
+
"summary": "Bulma Dropdown divider.",
|
|
212
|
+
"component": null,
|
|
213
|
+
"props": [],
|
|
214
|
+
"extraProps": [],
|
|
215
|
+
"catchAll": null,
|
|
216
|
+
"types": []
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"cssVars": [
|
|
220
|
+
{
|
|
221
|
+
"css": "--bulma-dropdown-menu-min-width",
|
|
222
|
+
"sass": "$dropdown-menu-min-width",
|
|
223
|
+
"default": "12rem",
|
|
224
|
+
"scope": "component"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"css": "--bulma-dropdown-content-background-color",
|
|
228
|
+
"sass": "$dropdown-content-background-color",
|
|
229
|
+
"default": "var(--bulma-scheme-main)",
|
|
230
|
+
"scope": "component"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"css": "--bulma-dropdown-content-offset",
|
|
234
|
+
"sass": "$dropdown-content-offset",
|
|
235
|
+
"default": "0.25rem",
|
|
236
|
+
"scope": "component"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"css": "--bulma-dropdown-content-padding-bottom",
|
|
240
|
+
"sass": "$dropdown-content-padding-bottom",
|
|
241
|
+
"default": "0.5rem",
|
|
242
|
+
"scope": "component"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"css": "--bulma-dropdown-content-padding-top",
|
|
246
|
+
"sass": "$dropdown-content-padding-top",
|
|
247
|
+
"default": "0.5rem",
|
|
248
|
+
"scope": "component"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"css": "--bulma-dropdown-content-radius",
|
|
252
|
+
"sass": "$dropdown-content-radius",
|
|
253
|
+
"default": "var(--bulma-radius)",
|
|
254
|
+
"scope": "component"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"css": "--bulma-dropdown-content-shadow",
|
|
258
|
+
"sass": "$dropdown-content-shadow",
|
|
259
|
+
"default": "var(--bulma-shadow)",
|
|
260
|
+
"scope": "component"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"css": "--bulma-dropdown-content-z",
|
|
264
|
+
"sass": "$dropdown-content-z",
|
|
265
|
+
"default": "20",
|
|
266
|
+
"scope": "component"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"css": "--bulma-dropdown-item-h",
|
|
270
|
+
"sass": "$dropdown-item-h",
|
|
271
|
+
"default": "var(--bulma-scheme-h)",
|
|
272
|
+
"scope": "component"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"css": "--bulma-dropdown-item-s",
|
|
276
|
+
"sass": "$dropdown-item-s",
|
|
277
|
+
"default": "var(--bulma-scheme-s)",
|
|
278
|
+
"scope": "component"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"css": "--bulma-dropdown-item-l",
|
|
282
|
+
"sass": "$dropdown-item-l",
|
|
283
|
+
"default": "var(--bulma-scheme-main-l)",
|
|
284
|
+
"scope": "component"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"css": "--bulma-dropdown-item-background-l",
|
|
288
|
+
"sass": "$dropdown-item-background-l",
|
|
289
|
+
"default": "var(--bulma-scheme-main-l)",
|
|
290
|
+
"scope": "component"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"css": "--bulma-dropdown-item-background-l-delta",
|
|
294
|
+
"sass": "$dropdown-item-background-l-delta",
|
|
295
|
+
"default": "0%",
|
|
296
|
+
"scope": "component"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"css": "--bulma-dropdown-item-hover-background-l-delta",
|
|
300
|
+
"sass": "$dropdown-item-hover-background-l-delta",
|
|
301
|
+
"default": "var(--bulma-hover-background-l-delta)",
|
|
302
|
+
"scope": "component"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"css": "--bulma-dropdown-item-active-background-l-delta",
|
|
306
|
+
"sass": "$dropdown-item-active-background-l-delta",
|
|
307
|
+
"default": "var(--bulma-active-background-l-delta)",
|
|
308
|
+
"scope": "component"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"css": "--bulma-dropdown-item-color-l",
|
|
312
|
+
"sass": "$dropdown-item-color-l",
|
|
313
|
+
"default": "var(--bulma-text-strong-l)",
|
|
314
|
+
"scope": "component"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"css": "--bulma-dropdown-item-selected-h",
|
|
318
|
+
"sass": "$dropdown-item-selected-h",
|
|
319
|
+
"default": "var(--bulma-link-h)",
|
|
320
|
+
"scope": "component"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"css": "--bulma-dropdown-item-selected-s",
|
|
324
|
+
"sass": "$dropdown-item-selected-s",
|
|
325
|
+
"default": "var(--bulma-link-s)",
|
|
326
|
+
"scope": "component"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"css": "--bulma-dropdown-item-selected-l",
|
|
330
|
+
"sass": "$dropdown-item-selected-l",
|
|
331
|
+
"default": "var(--bulma-link-l)",
|
|
332
|
+
"scope": "component"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"css": "--bulma-dropdown-item-selected-background-l",
|
|
336
|
+
"sass": "$dropdown-item-selected-background-l",
|
|
337
|
+
"default": "var(--bulma-link-l)",
|
|
338
|
+
"scope": "component"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"css": "--bulma-dropdown-item-selected-color-l",
|
|
342
|
+
"sass": "$dropdown-item-selected-color-l",
|
|
343
|
+
"default": "var(--bulma-link-invert-l)",
|
|
344
|
+
"scope": "component"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"css": "--bulma-dropdown-divider-background-color",
|
|
348
|
+
"sass": "$dropdown-divider-background-color",
|
|
349
|
+
"default": "var(--bulma-border-weak)",
|
|
350
|
+
"scope": "component"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Emphasis",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/emphasis",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/emphasis",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default Emphasis",
|
|
10
|
+
"code": "<Emphasis>Emphasized text</Emphasis>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Colored Emphasis",
|
|
14
|
+
"code": "<Emphasis textColor=\"primary\">Primary emphasized text</Emphasis>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Info Emphasis",
|
|
18
|
+
"code": "<Emphasis textColor=\"info\">Note this important detail</Emphasis>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Emphasis with Background",
|
|
22
|
+
"code": "<Emphasis bgColor=\"light\" textColor=\"dark\" p=\"1\">\n Highlighted emphasis\n</Emphasis>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Inline with Text",
|
|
26
|
+
"code": "<Paragraph>\n This is a paragraph with <Emphasis>emphasized text</Emphasis> in the middle.\n You should <Emphasis textColor=\"info\">really</Emphasis> pay attention to this.\n</Paragraph>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "All Colors",
|
|
30
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"2\">\n <Emphasis textColor=\"primary\">Primary emphasis</Emphasis>\n <Emphasis textColor=\"link\">Link emphasis</Emphasis>\n <Emphasis textColor=\"info\">Info emphasis</Emphasis>\n <Emphasis textColor=\"success\">Success emphasis</Emphasis>\n <Emphasis textColor=\"warning\">Warning emphasis</Emphasis>\n <Emphasis textColor=\"danger\">Danger emphasis</Emphasis>\n</Block>"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Quotation Style",
|
|
34
|
+
"code": "<Paragraph>\n As the saying goes, <Emphasis>actions speak louder than words</Emphasis>.\n</Paragraph>"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Technical Terms",
|
|
38
|
+
"code": "<Paragraph>\n The <Emphasis>idempotent</Emphasis> operation can be applied multiple times\n without changing the result beyond the initial application.\n</Paragraph>"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"accessibility": "- **Stress Emphasis:** Screen readers may announce `<em>` content with a change in tone or stress.\n- **Appropriate Use:** Use `<em>` for content that requires stress emphasis, not just for visual styling.\n- **Nested Emphasis:** Multiple levels of `<em>` indicate greater degrees of emphasis.\n\n:::info\nThe `<em>` element indicates stress emphasis that subtly changes the meaning of a sentence. Compare \"I _love_ coding\" vs \"I love _coding_\".\n:::",
|
|
42
|
+
"related": ["Paragraph", "Span", "Strong", "useBulmaClasses"],
|
|
43
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-emphasis--default",
|
|
44
|
+
"summary": "The `Emphasis` component renders a styled `<em>` element with Bulma helper class integration.",
|
|
45
|
+
"import": "import { Emphasis } from '@allxsmith/bestax-bulma';",
|
|
46
|
+
"sourceFile": "bulma-ui/src/elements/Emphasis.tsx",
|
|
47
|
+
"rootClass": null,
|
|
48
|
+
"parts": [
|
|
49
|
+
{
|
|
50
|
+
"path": "Emphasis",
|
|
51
|
+
"summary": "The `Emphasis` component renders a styled `<em>` element with Bulma helper class integration.",
|
|
52
|
+
"component": null,
|
|
53
|
+
"props": [
|
|
54
|
+
{
|
|
55
|
+
"name": "className",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"default": null,
|
|
58
|
+
"description": "Additional CSS classes to apply.",
|
|
59
|
+
"required": false,
|
|
60
|
+
"inherited": false,
|
|
61
|
+
"deprecated": false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "textColor",
|
|
65
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
66
|
+
"default": null,
|
|
67
|
+
"description": "Text color helper.",
|
|
68
|
+
"required": false,
|
|
69
|
+
"inherited": false,
|
|
70
|
+
"deprecated": false,
|
|
71
|
+
"valuesRef": "helpers/valid-values"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "bgColor",
|
|
75
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
76
|
+
"default": null,
|
|
77
|
+
"description": "Background color helper.",
|
|
78
|
+
"required": false,
|
|
79
|
+
"inherited": false,
|
|
80
|
+
"deprecated": false,
|
|
81
|
+
"valuesRef": "helpers/valid-values"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "children",
|
|
85
|
+
"type": "React.ReactNode",
|
|
86
|
+
"default": null,
|
|
87
|
+
"description": "Content to render inside the em element.",
|
|
88
|
+
"required": false,
|
|
89
|
+
"inherited": false,
|
|
90
|
+
"deprecated": false
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"extraProps": [],
|
|
94
|
+
"catchAll": "All standard HTML attributes and Bulma helper props",
|
|
95
|
+
"types": []
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"cssVars": []
|
|
99
|
+
}
|