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,444 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Modal",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "components",
|
|
5
|
+
"slug": "components/modal",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/components/modal",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Modal Card (with title and footer)",
|
|
10
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal\n active={open}\n onClose={() => setOpen(false)}\n modalCardTitle=\"Modal Card Title\"\n modalCardFoot={\n <Buttons>\n <Button color=\"success\">Save</Button>\n <Button>Cancel</Button>\n </Buttons>\n }\n >\n Modal card body content goes here...\n </Modal>\n </>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Modal Card (title only)",
|
|
14
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal\n active={open}\n onClose={() => setOpen(false)}\n modalCardTitle=\"Modal Card Title Only\"\n >\n Modal body content...\n </Modal>\n </>\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Modal Card (footer only)",
|
|
18
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal\n active={open}\n onClose={() => setOpen(false)}\n modalCardFoot={<Button color=\"success\">Save</Button>}\n >\n Modal body content...\n </Modal>\n </>\n );\n}"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Modal Content (no card title or footer)",
|
|
22
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal active={open} onClose={() => setOpen(false)}>\n <Box>\n <Title size=\"4\">Custom Content</Title>\n <Paragraph>Put any content here!</Paragraph>\n </Box>\n </Modal>\n </>\n );\n}"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Explicit Modal Types",
|
|
26
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal active={open} onClose={() => setOpen(false)} type=\"content\">\n <div>Custom content modal (forced type=\"content\")</div>\n </Modal>\n </>\n );\n}"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Explicit Modal Types",
|
|
30
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal active={open} onClose={() => setOpen(false)} type=\"card\">\n Modal card body (forced type=\"card\")\n </Modal>\n </>\n );\n}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Compound (dot-notation) usage",
|
|
34
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n const closeModal = () => setOpen(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal isActive={open}>\n <Modal.Background onClick={closeModal} />\n <Modal.Card>\n <Modal.Card.Head>\n <Modal.Card.Title>Compound Component Modal</Modal.Card.Title>\n <Modal.Close onClick={closeModal} />\n </Modal.Card.Head>\n <Modal.Card.Body>\n This modal uses the compound components API for better control and\n readability.\n </Modal.Card.Body>\n <Modal.Card.Foot>\n <Buttons>\n <Button color=\"success\" onClick={closeModal}>\n Save\n </Button>\n <Button onClick={closeModal}>Cancel</Button>\n </Buttons>\n </Modal.Card.Foot>\n </Modal.Card>\n </Modal>\n </>\n );\n}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Compound (dot-notation) usage",
|
|
38
|
+
"code": "function example() {\n const [open, setOpen] = useState(false);\n const closeModal = () => setOpen(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal isActive={open}>\n <Modal.Background onClick={closeModal} />\n <Modal.Content>\n <Box>\n <Title size=\"4\">Custom Content</Title>\n <Paragraph>Using compound components for full control!</Paragraph>\n </Box>\n </Modal.Content>\n <Modal.Close variant=\"floating\" onClick={closeModal} />\n </Modal>\n </>\n );\n}"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"accessibility": "- The modal root uses Bulma’s structure and ARIA roles for accessibility.\n- The modal background closes the modal on click (`onClose` required).\n- Close buttons are provided for both modal-card and modal-content variants.\n- Keyboard/screen reader accessibility is supported, but for focus trap or escape key handling, implement those patterns in your app as needed.\n\n:::note\nAlways provide an `onClose` handler for accessibility and to allow users to dismiss the modal.\n:::",
|
|
42
|
+
"related": ["Button", "Field", "Input", "useBulmaClasses"],
|
|
43
|
+
"storybook": "https://bestax.io/storybook/?path=/story/components-modal--modal-card",
|
|
44
|
+
"summary": "The `Modal` component provides a flexible, accessible modal dialog for your Bulma React UI.",
|
|
45
|
+
"import": "import { Modal } from '@allxsmith/bestax-bulma';",
|
|
46
|
+
"sourceFile": "bulma-ui/src/components/Modal.tsx",
|
|
47
|
+
"rootClass": "modal",
|
|
48
|
+
"parts": [
|
|
49
|
+
{
|
|
50
|
+
"path": "Modal",
|
|
51
|
+
"summary": "The `Modal` component provides a flexible, accessible modal dialog for your Bulma React UI.",
|
|
52
|
+
"component": null,
|
|
53
|
+
"props": [
|
|
54
|
+
{
|
|
55
|
+
"name": "active",
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": "false",
|
|
58
|
+
"description": "Whether the modal is open/visible.",
|
|
59
|
+
"required": false,
|
|
60
|
+
"inherited": false,
|
|
61
|
+
"deprecated": false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "isActive",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": "false",
|
|
67
|
+
"description": "Alias for `active`. Whether the modal is open/visible.",
|
|
68
|
+
"required": false,
|
|
69
|
+
"inherited": false,
|
|
70
|
+
"deprecated": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "onClose",
|
|
74
|
+
"type": "() => void",
|
|
75
|
+
"default": null,
|
|
76
|
+
"description": "Callback invoked to request modal close (background or close button).",
|
|
77
|
+
"required": false,
|
|
78
|
+
"inherited": false,
|
|
79
|
+
"deprecated": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "className",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"default": null,
|
|
85
|
+
"description": "Additional CSS classes for the modal.",
|
|
86
|
+
"required": false,
|
|
87
|
+
"inherited": false,
|
|
88
|
+
"deprecated": false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "textColor",
|
|
92
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
93
|
+
"default": null,
|
|
94
|
+
"description": "Text color for modal content.",
|
|
95
|
+
"required": false,
|
|
96
|
+
"inherited": false,
|
|
97
|
+
"deprecated": false,
|
|
98
|
+
"valuesRef": "helpers/valid-values"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "bgColor",
|
|
102
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
103
|
+
"default": null,
|
|
104
|
+
"description": "Background color for modal content.",
|
|
105
|
+
"required": false,
|
|
106
|
+
"inherited": false,
|
|
107
|
+
"deprecated": false,
|
|
108
|
+
"valuesRef": "helpers/valid-values"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "modalCardTitle",
|
|
112
|
+
"type": "React.ReactNode",
|
|
113
|
+
"default": null,
|
|
114
|
+
"description": "Title/header for modal-card variant. (Legacy API only)",
|
|
115
|
+
"required": false,
|
|
116
|
+
"inherited": false,
|
|
117
|
+
"deprecated": false
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "modalCardFoot",
|
|
121
|
+
"type": "React.ReactNode",
|
|
122
|
+
"default": null,
|
|
123
|
+
"description": "Footer for modal-card variant. (Legacy API only)",
|
|
124
|
+
"required": false,
|
|
125
|
+
"inherited": false,
|
|
126
|
+
"deprecated": false
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "type",
|
|
130
|
+
"type": "'card' | 'content'",
|
|
131
|
+
"default": "auto",
|
|
132
|
+
"description": "Modal style: `'card'` for modal-card, `'content'` for modal-content. (Legacy API only)",
|
|
133
|
+
"required": false,
|
|
134
|
+
"inherited": false,
|
|
135
|
+
"deprecated": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "children",
|
|
139
|
+
"type": "React.ReactNode",
|
|
140
|
+
"default": null,
|
|
141
|
+
"description": "Modal body/content or compound components.",
|
|
142
|
+
"required": false,
|
|
143
|
+
"inherited": false,
|
|
144
|
+
"deprecated": false
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"extraProps": [],
|
|
148
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
149
|
+
"types": []
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"path": "Modal.Background",
|
|
153
|
+
"summary": "Modal.Background - Renders the modal background overlay.",
|
|
154
|
+
"component": null,
|
|
155
|
+
"props": [
|
|
156
|
+
{
|
|
157
|
+
"name": "className",
|
|
158
|
+
"type": "string",
|
|
159
|
+
"default": null,
|
|
160
|
+
"description": "Additional CSS classes.",
|
|
161
|
+
"required": false,
|
|
162
|
+
"inherited": false,
|
|
163
|
+
"deprecated": false
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"extraProps": [],
|
|
167
|
+
"catchAll": "All standard <div> attributes",
|
|
168
|
+
"types": []
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"path": "Modal.Content",
|
|
172
|
+
"summary": "Modal.Content - Renders modal content wrapper for custom content.",
|
|
173
|
+
"component": null,
|
|
174
|
+
"props": [
|
|
175
|
+
{
|
|
176
|
+
"name": "className",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"default": null,
|
|
179
|
+
"description": "Additional CSS classes.",
|
|
180
|
+
"required": false,
|
|
181
|
+
"inherited": false,
|
|
182
|
+
"deprecated": false
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"extraProps": [],
|
|
186
|
+
"catchAll": "All standard <div> attributes",
|
|
187
|
+
"types": []
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"path": "Modal.Card",
|
|
191
|
+
"summary": "Modal.Card - Renders modal card wrapper with compound components. Use with Modal.Card.Head, Modal.Card.Title, Modal.Card.Body, and Modal.Card.Foot.",
|
|
192
|
+
"component": null,
|
|
193
|
+
"props": [
|
|
194
|
+
{
|
|
195
|
+
"name": "className",
|
|
196
|
+
"type": "string",
|
|
197
|
+
"default": null,
|
|
198
|
+
"description": "Additional CSS classes.",
|
|
199
|
+
"required": false,
|
|
200
|
+
"inherited": false,
|
|
201
|
+
"deprecated": false
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"extraProps": [],
|
|
205
|
+
"catchAll": "All standard <div> attributes",
|
|
206
|
+
"types": []
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"path": "Modal.Card.Head",
|
|
210
|
+
"summary": "Modal.Card.Head - Renders modal card header section.",
|
|
211
|
+
"component": null,
|
|
212
|
+
"props": [
|
|
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
|
+
"extraProps": [],
|
|
224
|
+
"catchAll": "All standard HTML attributes",
|
|
225
|
+
"types": []
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"path": "Modal.Card.Title",
|
|
229
|
+
"summary": "Modal.Card.Title - Renders modal card title.",
|
|
230
|
+
"component": null,
|
|
231
|
+
"props": [
|
|
232
|
+
{
|
|
233
|
+
"name": "className",
|
|
234
|
+
"type": "string",
|
|
235
|
+
"default": null,
|
|
236
|
+
"description": "Additional CSS classes.",
|
|
237
|
+
"required": false,
|
|
238
|
+
"inherited": false,
|
|
239
|
+
"deprecated": false
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"extraProps": [],
|
|
243
|
+
"catchAll": "All standard <p> attributes",
|
|
244
|
+
"types": []
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"path": "Modal.Card.Body",
|
|
248
|
+
"summary": "Modal.Card.Body - Renders modal card body section.",
|
|
249
|
+
"component": null,
|
|
250
|
+
"props": [
|
|
251
|
+
{
|
|
252
|
+
"name": "className",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"default": null,
|
|
255
|
+
"description": "Additional CSS classes.",
|
|
256
|
+
"required": false,
|
|
257
|
+
"inherited": false,
|
|
258
|
+
"deprecated": false
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"extraProps": [],
|
|
262
|
+
"catchAll": "All standard HTML attributes",
|
|
263
|
+
"types": []
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"path": "Modal.Card.Foot",
|
|
267
|
+
"summary": "Modal.Card.Foot - Renders modal card footer section.",
|
|
268
|
+
"component": null,
|
|
269
|
+
"props": [
|
|
270
|
+
{
|
|
271
|
+
"name": "className",
|
|
272
|
+
"type": "string",
|
|
273
|
+
"default": null,
|
|
274
|
+
"description": "Additional CSS classes.",
|
|
275
|
+
"required": false,
|
|
276
|
+
"inherited": false,
|
|
277
|
+
"deprecated": false
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"extraProps": [],
|
|
281
|
+
"catchAll": "All standard HTML attributes",
|
|
282
|
+
"types": []
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"path": "Modal.Close",
|
|
286
|
+
"summary": "Modal.Close - Renders modal close button with two variant styles.",
|
|
287
|
+
"component": null,
|
|
288
|
+
"props": [
|
|
289
|
+
{
|
|
290
|
+
"name": "className",
|
|
291
|
+
"type": "string",
|
|
292
|
+
"default": null,
|
|
293
|
+
"description": "Additional CSS classes.",
|
|
294
|
+
"required": false,
|
|
295
|
+
"inherited": false,
|
|
296
|
+
"deprecated": false
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "size",
|
|
300
|
+
"type": "'small' | 'medium' | 'large'",
|
|
301
|
+
"default": "'large'",
|
|
302
|
+
"description": "Size of the close button (only applies to 'floating' variant).",
|
|
303
|
+
"required": false,
|
|
304
|
+
"inherited": false,
|
|
305
|
+
"deprecated": false
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "variant",
|
|
309
|
+
"type": "'delete' | 'floating'",
|
|
310
|
+
"default": "'delete'",
|
|
311
|
+
"description": "Button variant. 'delete' (default) for modal card headers, 'floating' for overlay close button.",
|
|
312
|
+
"required": false,
|
|
313
|
+
"inherited": false,
|
|
314
|
+
"deprecated": false
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"extraProps": [],
|
|
318
|
+
"catchAll": "All standard <button> attributes",
|
|
319
|
+
"types": []
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"cssVars": [
|
|
323
|
+
{
|
|
324
|
+
"css": "--bulma-modal-z",
|
|
325
|
+
"sass": "$modal-z",
|
|
326
|
+
"default": "40",
|
|
327
|
+
"scope": "component"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"css": "--bulma-modal-background-background-color",
|
|
331
|
+
"sass": "$modal-background-background-color",
|
|
332
|
+
"default": "hsla(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-scheme-invert-l), 0.86)",
|
|
333
|
+
"scope": "component"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"css": "--bulma-modal-content-width",
|
|
337
|
+
"sass": "$modal-content-width",
|
|
338
|
+
"default": "40rem",
|
|
339
|
+
"scope": "component"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"css": "--bulma-modal-content-margin-mobile",
|
|
343
|
+
"sass": "$modal-content-margin-mobile",
|
|
344
|
+
"default": "1.25rem",
|
|
345
|
+
"scope": "component"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"css": "--bulma-modal-content-spacing-mobile",
|
|
349
|
+
"sass": "$modal-content-spacing-mobile",
|
|
350
|
+
"default": "10rem",
|
|
351
|
+
"scope": "component"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"css": "--bulma-modal-content-spacing-tablet",
|
|
355
|
+
"sass": "$modal-content-spacing-tablet",
|
|
356
|
+
"default": "2.5rem",
|
|
357
|
+
"scope": "component"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"css": "--bulma-modal-close-dimensions",
|
|
361
|
+
"sass": "$modal-close-dimensions",
|
|
362
|
+
"default": "2.5rem",
|
|
363
|
+
"scope": "component"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"css": "--bulma-modal-close-right",
|
|
367
|
+
"sass": "$modal-close-right",
|
|
368
|
+
"default": "1.25rem",
|
|
369
|
+
"scope": "component"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"css": "--bulma-modal-close-top",
|
|
373
|
+
"sass": "$modal-close-top",
|
|
374
|
+
"default": "1.25rem",
|
|
375
|
+
"scope": "component"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"css": "--bulma-modal-card-spacing",
|
|
379
|
+
"sass": "$modal-card-spacing",
|
|
380
|
+
"default": "2.5rem",
|
|
381
|
+
"scope": "component"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"css": "--bulma-modal-card-head-background-color",
|
|
385
|
+
"sass": "$modal-card-head-background-color",
|
|
386
|
+
"default": "var(--bulma-scheme-main)",
|
|
387
|
+
"scope": "component"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"css": "--bulma-modal-card-head-padding",
|
|
391
|
+
"sass": "$modal-card-head-padding",
|
|
392
|
+
"default": "2rem",
|
|
393
|
+
"scope": "component"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"css": "--bulma-modal-card-head-radius",
|
|
397
|
+
"sass": "$modal-card-head-radius",
|
|
398
|
+
"default": "var(--bulma-radius-large)",
|
|
399
|
+
"scope": "component"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"css": "--bulma-modal-card-title-color",
|
|
403
|
+
"sass": "$modal-card-title-color",
|
|
404
|
+
"default": "var(--bulma-text-strong)",
|
|
405
|
+
"scope": "component"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"css": "--bulma-modal-card-title-line-height",
|
|
409
|
+
"sass": "$modal-card-title-line-height",
|
|
410
|
+
"default": "1",
|
|
411
|
+
"scope": "component"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"css": "--bulma-modal-card-title-size",
|
|
415
|
+
"sass": "$modal-card-title-size",
|
|
416
|
+
"default": "var(--bulma-size-4)",
|
|
417
|
+
"scope": "component"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"css": "--bulma-modal-card-foot-background-color",
|
|
421
|
+
"sass": "$modal-card-foot-background-color",
|
|
422
|
+
"default": "var(--bulma-scheme-main-bis)",
|
|
423
|
+
"scope": "component"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"css": "--bulma-modal-card-foot-radius",
|
|
427
|
+
"sass": "$modal-card-foot-radius",
|
|
428
|
+
"default": "var(--bulma-radius-large)",
|
|
429
|
+
"scope": "component"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"css": "--bulma-modal-card-body-background-color",
|
|
433
|
+
"sass": "$modal-card-body-background-color",
|
|
434
|
+
"default": "var(--bulma-scheme-main)",
|
|
435
|
+
"scope": "component"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"css": "--bulma-modal-card-body-padding",
|
|
439
|
+
"sass": "$modal-card-body-padding",
|
|
440
|
+
"default": "2rem",
|
|
441
|
+
"scope": "component"
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
}
|