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,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Delete",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/delete",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/delete",
|
|
7
|
+
"examples": [
|
|
8
|
+
{ "title": "Default Delete", "code": "<Delete />" },
|
|
9
|
+
{
|
|
10
|
+
"title": "Small, Medium, Large",
|
|
11
|
+
"code": "<>\n <Delete size=\"small\" />\n <Delete size=\"medium\" />\n <Delete size=\"large\" />\n</>"
|
|
12
|
+
},
|
|
13
|
+
{ "title": "Disabled", "code": "<Delete disabled />" },
|
|
14
|
+
{
|
|
15
|
+
"title": "With Custom Class",
|
|
16
|
+
"code": "<Delete className=\"custom-delete\" />"
|
|
17
|
+
},
|
|
18
|
+
{ "title": "With Text Color", "code": "<Delete textColor=\"primary\" />" },
|
|
19
|
+
{ "title": "With Background Color", "code": "<Delete bgColor=\"info\" />" },
|
|
20
|
+
{ "title": "With Margin", "code": "<Delete m=\"2\" />" },
|
|
21
|
+
{
|
|
22
|
+
"title": "In a Tag",
|
|
23
|
+
"code": "<Tag color=\"info\" size=\"medium\">\n Example Tag\n <Delete size=\"small\" textColor=\"danger\" ariaLabel=\"Remove tag\" />\n</Tag>"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "In a Notification",
|
|
27
|
+
"code": "<Notification color=\"primary\">\n <Delete bgColor=\"warning\" ariaLabel=\"Close notification\" />\n <Paragraph>This is a primary notification with a delete button.</Paragraph>\n</Notification>"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "In a Message Header",
|
|
31
|
+
"code": "<Message color=\"success\" title=\"Success Message\">\n This is a success message with a delete button in the header.\n</Message>"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"accessibility": "- **ARIA label:** Always set a meaningful `ariaLabel` for screen readers (default is `'Close'`).\n- **Keyboard:** The button is focusable and supports keyboard activation.\n- **Disabled:** Uses both `disabled` and Bulma’s `is-disabled` for proper styling and accessibility.\n\n:::tip\nFor custom close actions, use the `onClick` prop.\n:::",
|
|
35
|
+
"related": ["Message", "Notification", "Tag", "useBulmaClasses"],
|
|
36
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-delete--default",
|
|
37
|
+
"summary": "The `Delete` component provides a Bulma-styled close/delete button for dismissing modals, notifications, tags, messages, and more.",
|
|
38
|
+
"import": "import { Delete } from '@allxsmith/bestax-bulma';",
|
|
39
|
+
"sourceFile": "bulma-ui/src/elements/Delete.tsx",
|
|
40
|
+
"rootClass": "delete",
|
|
41
|
+
"parts": [
|
|
42
|
+
{
|
|
43
|
+
"path": "Delete",
|
|
44
|
+
"summary": "The `Delete` component provides a Bulma-styled close/delete button for dismissing modals, notifications, tags, messages, and more.",
|
|
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": "color",
|
|
68
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
69
|
+
"default": null,
|
|
70
|
+
"description": "Text color alias: renders `has-text-<color>`, exactly like `textColor`. Not a filled variant (no `.delete.is-<color>` CSS exists). Prefer `textColor`, which takes precedence when both are set; use `bgColor` for a colored surface.",
|
|
71
|
+
"required": false,
|
|
72
|
+
"inherited": false,
|
|
73
|
+
"deprecated": false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "bgColor",
|
|
77
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
78
|
+
"default": null,
|
|
79
|
+
"description": "Background color helper.",
|
|
80
|
+
"required": false,
|
|
81
|
+
"inherited": false,
|
|
82
|
+
"deprecated": false,
|
|
83
|
+
"valuesRef": "helpers/valid-values"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "onClick",
|
|
87
|
+
"type": "(event: React.MouseEvent<HTMLButtonElement>) => void",
|
|
88
|
+
"default": null,
|
|
89
|
+
"description": "Click handler for the button.",
|
|
90
|
+
"required": false,
|
|
91
|
+
"inherited": false,
|
|
92
|
+
"deprecated": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "size",
|
|
96
|
+
"type": "'small' | 'medium' | 'large'",
|
|
97
|
+
"default": null,
|
|
98
|
+
"description": "Size modifier for the delete button.",
|
|
99
|
+
"required": false,
|
|
100
|
+
"inherited": false,
|
|
101
|
+
"deprecated": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "ariaLabel",
|
|
105
|
+
"type": "string",
|
|
106
|
+
"default": "'Close'",
|
|
107
|
+
"description": "ARIA label for accessibility (default: 'Close').",
|
|
108
|
+
"required": false,
|
|
109
|
+
"inherited": false,
|
|
110
|
+
"deprecated": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "disabled",
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": "false",
|
|
116
|
+
"description": "Whether the button is disabled (default: false).",
|
|
117
|
+
"required": false,
|
|
118
|
+
"inherited": false,
|
|
119
|
+
"deprecated": false
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"extraProps": [],
|
|
123
|
+
"catchAll": "All standard <button> attributes and Bulma helper props",
|
|
124
|
+
"types": []
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"cssVars": [
|
|
128
|
+
{
|
|
129
|
+
"css": "--bulma-delete-dimensions",
|
|
130
|
+
"sass": null,
|
|
131
|
+
"default": "1.25rem",
|
|
132
|
+
"scope": "global"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"css": "--bulma-delete-background-l",
|
|
136
|
+
"sass": null,
|
|
137
|
+
"default": "0%",
|
|
138
|
+
"scope": "global"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"css": "--bulma-delete-background-alpha",
|
|
142
|
+
"sass": null,
|
|
143
|
+
"default": "0.5",
|
|
144
|
+
"scope": "global"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"css": "--bulma-delete-color",
|
|
148
|
+
"sass": null,
|
|
149
|
+
"default": "var(--bulma-white)",
|
|
150
|
+
"scope": "global"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Dialog",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "components",
|
|
5
|
+
"slug": "components/dialog",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/components/dialog",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Alert Dialog",
|
|
10
|
+
"code": "function example() {\n const [showDialog, setShowDialog] = useState(false);\n return (\n <Block>\n <Button color=\"info\" onClick={() => setShowDialog(true)}>\n Show Alert\n </Button>\n <Dialog\n isOpen={showDialog}\n title=\"Information\"\n message=\"Your changes have been saved successfully.\"\n type=\"success\"\n showCancel={false}\n onConfirm={() => setShowDialog(false)}\n />\n </Block>\n );\n}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Confirm Dialog",
|
|
14
|
+
"code": "function example() {\n const [showDialog, setShowDialog] = useState(false);\n const [result, setResult] = useState('');\n\n return (\n <Block>\n <Button color=\"danger\" onClick={() => setShowDialog(true)}>\n Delete Item\n </Button>\n <Paragraph mt=\"2\">Result: {result}</Paragraph>\n <Dialog\n isOpen={showDialog}\n title=\"Delete Item?\"\n message=\"This action cannot be undone. Are you sure you want to delete this item?\"\n type=\"danger\"\n confirmText=\"Delete\"\n onConfirm={() => {\n setResult('Deleted');\n setShowDialog(false);\n }}\n onCancel={() => {\n setResult('Cancelled');\n setShowDialog(false);\n }}\n />\n </Block>\n );\n}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Dialog Types",
|
|
18
|
+
"code": "function example() {\n const [dialogType, setDialogType] = useState(null);\n return (\n <Block>\n <Buttons>\n <Button color=\"success\" onClick={() => setDialogType('success')}>\n Success\n </Button>\n <Button color=\"danger\" onClick={() => setDialogType('danger')}>\n Danger\n </Button>\n <Button color=\"warning\" onClick={() => setDialogType('warning')}>\n Warning\n </Button>\n <Button color=\"info\" onClick={() => setDialogType('info')}>\n Info\n </Button>\n </Buttons>\n {dialogType && (\n <Dialog\n isOpen\n title={`${dialogType.charAt(0).toUpperCase() + dialogType.slice(1)} Dialog`}\n message={`This is a ${dialogType} dialog with an automatic icon.`}\n type={dialogType}\n onConfirm={() => setDialogType(null)}\n onCancel={() => setDialogType(null)}\n />\n )}\n </Block>\n );\n}"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "With Rich Content",
|
|
22
|
+
"code": "function example() {\n const [showDialog, setShowDialog] = useState(false);\n return (\n <Block>\n <Button onClick={() => setShowDialog(true)}>Show Terms</Button>\n <Dialog\n isOpen={showDialog}\n title=\"Terms of Service\"\n message={\n <Block>\n <Paragraph mb=\"2\">By clicking \"Accept\", you agree to:</Paragraph>\n <ul>\n <li>Our terms of service</li>\n <li>Our privacy policy</li>\n <li>Receive email notifications</li>\n </ul>\n </Block>\n }\n confirmText=\"Accept\"\n cancelText=\"Decline\"\n onConfirm={() => setShowDialog(false)}\n onCancel={() => setShowDialog(false)}\n />\n </Block>\n );\n}"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Non-cancelable Dialog",
|
|
26
|
+
"code": "function example() {\n const [showDialog, setShowDialog] = useState(false);\n return (\n <Block>\n <Button color=\"warning\" onClick={() => setShowDialog(true)}>\n Show Required Action\n </Button>\n <Dialog\n isOpen={showDialog}\n title=\"Required Action\"\n message=\"You must complete this action to continue.\"\n type=\"warning\"\n canCancel={false}\n showCancel={false}\n confirmText=\"I Understand\"\n onConfirm={() => setShowDialog(false)}\n />\n </Block>\n );\n}"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"accessibility": "- Uses `role=\"alertdialog\"` for proper screen reader announcement\n- Has `aria-modal=\"true\"` to indicate modal behavior\n- Focus is trapped within the dialog when open\n- Escape key closes the dialog (when `canCancel` is true)\n- Body scroll is prevented when dialog is open\n- Confirm/cancel buttons are keyboard accessible",
|
|
30
|
+
"related": ["Modal", "Toast"],
|
|
31
|
+
"storybook": "https://bestax.io/storybook/?path=/story/components-dialog",
|
|
32
|
+
"summary": "The `Dialog` component provides confirmation and alert dialogs with customizable actions.",
|
|
33
|
+
"import": "import { Dialog, DialogContainer, dialog } from '@allxsmith/bestax-bulma';",
|
|
34
|
+
"sourceFile": "bulma-ui/src/components/Dialog.tsx",
|
|
35
|
+
"rootClass": "dialog",
|
|
36
|
+
"parts": [
|
|
37
|
+
{
|
|
38
|
+
"path": "Dialog",
|
|
39
|
+
"summary": "The `Dialog` component provides confirmation and alert dialogs with customizable actions.",
|
|
40
|
+
"component": null,
|
|
41
|
+
"props": [
|
|
42
|
+
{
|
|
43
|
+
"name": "isOpen",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": null,
|
|
46
|
+
"description": "Whether the dialog is open (required).",
|
|
47
|
+
"required": false,
|
|
48
|
+
"inherited": false,
|
|
49
|
+
"deprecated": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "title",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": null,
|
|
55
|
+
"description": "Dialog title.",
|
|
56
|
+
"required": false,
|
|
57
|
+
"inherited": false,
|
|
58
|
+
"deprecated": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "message",
|
|
62
|
+
"type": "string | React.ReactNode",
|
|
63
|
+
"default": null,
|
|
64
|
+
"description": "Dialog message/content (required).",
|
|
65
|
+
"required": false,
|
|
66
|
+
"inherited": false,
|
|
67
|
+
"deprecated": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "type",
|
|
71
|
+
"type": "'default' | 'success' | 'danger' | 'warning' | 'info'",
|
|
72
|
+
"default": "'default'",
|
|
73
|
+
"description": "The type/color of the dialog. Default: 'default'.",
|
|
74
|
+
"required": false,
|
|
75
|
+
"inherited": false,
|
|
76
|
+
"deprecated": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "confirmText",
|
|
80
|
+
"type": "string",
|
|
81
|
+
"default": "'OK'",
|
|
82
|
+
"description": "Text for confirm button. Default: 'OK'.",
|
|
83
|
+
"required": false,
|
|
84
|
+
"inherited": false,
|
|
85
|
+
"deprecated": false
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "cancelText",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"default": "'Cancel'",
|
|
91
|
+
"description": "Text for cancel button. Default: 'Cancel'.",
|
|
92
|
+
"required": false,
|
|
93
|
+
"inherited": false,
|
|
94
|
+
"deprecated": false
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "onConfirm",
|
|
98
|
+
"type": "() => void",
|
|
99
|
+
"default": null,
|
|
100
|
+
"description": "Callback when confirm button is clicked.",
|
|
101
|
+
"required": false,
|
|
102
|
+
"inherited": false,
|
|
103
|
+
"deprecated": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "onCancel",
|
|
107
|
+
"type": "() => void",
|
|
108
|
+
"default": null,
|
|
109
|
+
"description": "Callback when cancel button is clicked or dismissed.",
|
|
110
|
+
"required": false,
|
|
111
|
+
"inherited": false,
|
|
112
|
+
"deprecated": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "showCancel",
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"default": "true",
|
|
118
|
+
"description": "Whether to show cancel button. Default: true for confirm dialogs.",
|
|
119
|
+
"required": false,
|
|
120
|
+
"inherited": false,
|
|
121
|
+
"deprecated": false
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "canCancel",
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"default": "true",
|
|
127
|
+
"description": "Whether the dialog can be dismissed. Default: true.",
|
|
128
|
+
"required": false,
|
|
129
|
+
"inherited": false,
|
|
130
|
+
"deprecated": false
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "focusCancel",
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"default": "false",
|
|
136
|
+
"description": "Focus cancel button instead of confirm. Default: false.",
|
|
137
|
+
"required": false,
|
|
138
|
+
"inherited": false,
|
|
139
|
+
"deprecated": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "icon",
|
|
143
|
+
"type": "React.ReactNode",
|
|
144
|
+
"default": null,
|
|
145
|
+
"description": "Custom icon to display.",
|
|
146
|
+
"required": false,
|
|
147
|
+
"inherited": false,
|
|
148
|
+
"deprecated": false
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"extraProps": [
|
|
152
|
+
{
|
|
153
|
+
"name": "className",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"default": null,
|
|
156
|
+
"description": "Additional CSS classes.",
|
|
157
|
+
"required": false,
|
|
158
|
+
"inherited": false,
|
|
159
|
+
"deprecated": false
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "ref",
|
|
163
|
+
"type": "React.Ref<HTMLElement>",
|
|
164
|
+
"default": null,
|
|
165
|
+
"description": "Ref forwarded to the dialog element.",
|
|
166
|
+
"required": false,
|
|
167
|
+
"inherited": false,
|
|
168
|
+
"deprecated": false
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
172
|
+
"types": []
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"cssVars": [
|
|
176
|
+
{
|
|
177
|
+
"css": "--bulma-dialog-width",
|
|
178
|
+
"sass": "$dialog-width",
|
|
179
|
+
"default": "420px",
|
|
180
|
+
"scope": "component"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"css": "--bulma-dialog-max-width",
|
|
184
|
+
"sass": "$dialog-max-width",
|
|
185
|
+
"default": "90%",
|
|
186
|
+
"scope": "component"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"css": "--bulma-dialog-radius",
|
|
190
|
+
"sass": "$dialog-radius",
|
|
191
|
+
"default": "var(--bulma-radius)",
|
|
192
|
+
"scope": "component"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"css": "--bulma-dialog-background",
|
|
196
|
+
"sass": "$dialog-background",
|
|
197
|
+
"default": "var(--bulma-scheme-main)",
|
|
198
|
+
"scope": "component"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"css": "--bulma-dialog-shadow",
|
|
202
|
+
"sass": "$dialog-shadow",
|
|
203
|
+
"default": "0 8px 24px hsla(0, 0%, 0%, 0.2)",
|
|
204
|
+
"scope": "component"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"css": "--bulma-dialog-header-padding",
|
|
208
|
+
"sass": "$dialog-header-padding",
|
|
209
|
+
"default": "1rem 1.25rem",
|
|
210
|
+
"scope": "component"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"css": "--bulma-dialog-body-padding",
|
|
214
|
+
"sass": "$dialog-body-padding",
|
|
215
|
+
"default": "1.25rem",
|
|
216
|
+
"scope": "component"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"css": "--bulma-dialog-body-color",
|
|
220
|
+
"sass": "$dialog-body-color",
|
|
221
|
+
"default": "var(--bulma-text)",
|
|
222
|
+
"scope": "component"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"css": "--bulma-dialog-body-line-height",
|
|
226
|
+
"sass": "$dialog-body-line-height",
|
|
227
|
+
"default": "1.5",
|
|
228
|
+
"scope": "component"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"css": "--bulma-dialog-footer-padding",
|
|
232
|
+
"sass": "$dialog-footer-padding",
|
|
233
|
+
"default": "1rem 1.25rem",
|
|
234
|
+
"scope": "component"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"css": "--bulma-dialog-footer-gap",
|
|
238
|
+
"sass": "$dialog-footer-gap",
|
|
239
|
+
"default": "0.75rem",
|
|
240
|
+
"scope": "component"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"css": "--bulma-dialog-border-color",
|
|
244
|
+
"sass": "$dialog-border-color",
|
|
245
|
+
"default": "var(--bulma-border)",
|
|
246
|
+
"scope": "component"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"css": "--bulma-dialog-title-size",
|
|
250
|
+
"sass": "$dialog-title-size",
|
|
251
|
+
"default": "var(--bulma-size-5)",
|
|
252
|
+
"scope": "component"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"css": "--bulma-dialog-title-weight",
|
|
256
|
+
"sass": "$dialog-title-weight",
|
|
257
|
+
"default": "var(--bulma-weight-semibold)",
|
|
258
|
+
"scope": "component"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"css": "--bulma-dialog-title-color",
|
|
262
|
+
"sass": "$dialog-title-color",
|
|
263
|
+
"default": "var(--bulma-text-strong)",
|
|
264
|
+
"scope": "component"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"css": "--bulma-dialog-icon-size",
|
|
268
|
+
"sass": "$dialog-icon-size",
|
|
269
|
+
"default": "1.5rem",
|
|
270
|
+
"scope": "component"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"css": "--bulma-dialog-icon-margin",
|
|
274
|
+
"sass": "$dialog-icon-margin",
|
|
275
|
+
"default": "0.75rem",
|
|
276
|
+
"scope": "component"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"css": "--bulma-dialog-animation-duration",
|
|
280
|
+
"sass": "$dialog-animation-duration",
|
|
281
|
+
"default": "0.2s",
|
|
282
|
+
"scope": "component"
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Divider",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/divider",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/divider",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default Divider",
|
|
10
|
+
"code": "<>\n <Block>Content above the divider</Block>\n <Divider />\n <Block>Content below the divider</Block>\n</>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "With Vertical Margin",
|
|
14
|
+
"code": "<>\n <Block>Content above</Block>\n <Divider my=\"6\" />\n <Block>Content below</Block>\n</>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "Colored Divider",
|
|
18
|
+
"code": "<>\n <Block>Content above</Block>\n <Divider bgColor=\"primary\" />\n <Block>Content below</Block>\n</>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "All Colors",
|
|
22
|
+
"code": "<>\n <Block>Default</Block>\n <Divider />\n <Block>Primary</Block>\n <Divider bgColor=\"primary\" />\n <Block>Info</Block>\n <Divider bgColor=\"info\" />\n <Block>Success</Block>\n <Divider bgColor=\"success\" />\n <Block>Warning</Block>\n <Divider bgColor=\"warning\" />\n <Block>Danger</Block>\n <Divider bgColor=\"danger\" />\n <Block>End</Block>\n</>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Separating Content Sections",
|
|
26
|
+
"code": "<>\n <Title size=\"4\">Section One</Title>\n <Paragraph>This is the first section of content.</Paragraph>\n <Divider my=\"5\" />\n <Title size=\"4\">Section Two</Title>\n <Paragraph>This is the second section of content.</Paragraph>\n <Divider my=\"5\" />\n <Title size=\"4\">Section Three</Title>\n <Paragraph>This is the third section of content.</Paragraph>\n</>"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"accessibility": "- **Visual Separation:** The `<hr>` element provides visual separation and has implicit semantic meaning as a thematic break.\n- **Screen Readers:** Screen readers typically announce `<hr>` elements, so use them meaningfully to separate distinct content sections.\n- **Decorative Use:** If the divider is purely decorative, consider using CSS borders instead.\n\n:::info\nUse dividers for thematic breaks between content sections, not just for visual spacing (use margin helpers for spacing alone).\n:::",
|
|
30
|
+
"related": ["Block", "Box", "useBulmaClasses"],
|
|
31
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-divider--default",
|
|
32
|
+
"summary": "The `Divider` component renders a styled horizontal rule (`<hr>`) element with Bulma helper class integration.",
|
|
33
|
+
"import": "import { Divider } from '@allxsmith/bestax-bulma';",
|
|
34
|
+
"sourceFile": "bulma-ui/src/elements/Divider.tsx",
|
|
35
|
+
"rootClass": null,
|
|
36
|
+
"parts": [
|
|
37
|
+
{
|
|
38
|
+
"path": "Divider",
|
|
39
|
+
"summary": "The `Divider` component renders a styled horizontal rule (`<hr>`) element with Bulma helper class integration.",
|
|
40
|
+
"component": null,
|
|
41
|
+
"props": [
|
|
42
|
+
{
|
|
43
|
+
"name": "className",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": null,
|
|
46
|
+
"description": "Additional CSS classes to apply.",
|
|
47
|
+
"required": false,
|
|
48
|
+
"inherited": false,
|
|
49
|
+
"deprecated": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "bgColor",
|
|
53
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
54
|
+
"default": null,
|
|
55
|
+
"description": "Background color helper.",
|
|
56
|
+
"required": false,
|
|
57
|
+
"inherited": false,
|
|
58
|
+
"deprecated": false,
|
|
59
|
+
"valuesRef": "helpers/valid-values"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"extraProps": [],
|
|
63
|
+
"catchAll": "All standard <hr> attributes and Bulma helper props",
|
|
64
|
+
"types": []
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"cssVars": []
|
|
68
|
+
}
|