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.
Files changed (144) hide show
  1. package/README.md +90 -0
  2. package/data/catalog.json +1869 -0
  3. package/data/components/Autocomplete.json +604 -0
  4. package/data/components/Avatar.json +220 -0
  5. package/data/components/Avatars.json +294 -0
  6. package/data/components/Badge.json +261 -0
  7. package/data/components/Block.json +105 -0
  8. package/data/components/Box.json +157 -0
  9. package/data/components/Breadcrumb.json +155 -0
  10. package/data/components/Button.json +599 -0
  11. package/data/components/Buttons.json +533 -0
  12. package/data/components/Card.json +506 -0
  13. package/data/components/Carousel.json +512 -0
  14. package/data/components/Cell.json +154 -0
  15. package/data/components/Checkbox.json +176 -0
  16. package/data/components/Checkboxes.json +240 -0
  17. package/data/components/Code.json +128 -0
  18. package/data/components/Collapse.json +218 -0
  19. package/data/components/Column.json +284 -0
  20. package/data/components/Columns.json +542 -0
  21. package/data/components/ConfigProvider.json +16 -0
  22. package/data/components/Container.json +149 -0
  23. package/data/components/Content.json +228 -0
  24. package/data/components/Control.json +484 -0
  25. package/data/components/DateInput.json +872 -0
  26. package/data/components/DateTimeInput.json +952 -0
  27. package/data/components/Delete.json +153 -0
  28. package/data/components/Dialog.json +285 -0
  29. package/data/components/Divider.json +68 -0
  30. package/data/components/Dropdown.json +353 -0
  31. package/data/components/Emphasis.json +99 -0
  32. package/data/components/Field.json +539 -0
  33. package/data/components/Figure.json +143 -0
  34. package/data/components/File.json +403 -0
  35. package/data/components/Footer.json +109 -0
  36. package/data/components/Grid.json +357 -0
  37. package/data/components/Hero.json +340 -0
  38. package/data/components/Icon.json +232 -0
  39. package/data/components/IconText.json +307 -0
  40. package/data/components/Image.json +166 -0
  41. package/data/components/Input.json +583 -0
  42. package/data/components/Level.json +332 -0
  43. package/data/components/Link.json +154 -0
  44. package/data/components/LinkButton.json +247 -0
  45. package/data/components/ListItem.json +101 -0
  46. package/data/components/Loading.json +323 -0
  47. package/data/components/Media.json +345 -0
  48. package/data/components/Menu.json +317 -0
  49. package/data/components/Message.json +303 -0
  50. package/data/components/Modal.json +444 -0
  51. package/data/components/Navbar.json +996 -0
  52. package/data/components/Notification.json +165 -0
  53. package/data/components/Numberinput.json +364 -0
  54. package/data/components/OrderedList.json +189 -0
  55. package/data/components/Pagination.json +619 -0
  56. package/data/components/Panel.json +582 -0
  57. package/data/components/Paragraph.json +107 -0
  58. package/data/components/Pre.json +114 -0
  59. package/data/components/Progress.json +137 -0
  60. package/data/components/Radio.json +164 -0
  61. package/data/components/Radios.json +240 -0
  62. package/data/components/Rate.json +466 -0
  63. package/data/components/Reveal.json +177 -0
  64. package/data/components/Section.json +123 -0
  65. package/data/components/Select.json +526 -0
  66. package/data/components/Sidebar.json +488 -0
  67. package/data/components/Skeleton.json +162 -0
  68. package/data/components/Slider.json +534 -0
  69. package/data/components/Span.json +100 -0
  70. package/data/components/Steps.json +452 -0
  71. package/data/components/Strong.json +105 -0
  72. package/data/components/SubTitle.json +233 -0
  73. package/data/components/Switch.json +291 -0
  74. package/data/components/Table.json +490 -0
  75. package/data/components/Tabs.json +592 -0
  76. package/data/components/Tag.json +197 -0
  77. package/data/components/Taginput.json +587 -0
  78. package/data/components/Tags.json +181 -0
  79. package/data/components/TextArea.json +483 -0
  80. package/data/components/Theme.json +65 -0
  81. package/data/components/TimeInput.json +906 -0
  82. package/data/components/Title.json +240 -0
  83. package/data/components/Toast.json +308 -0
  84. package/data/components/Tooltip.json +212 -0
  85. package/data/components/UnorderedList.json +149 -0
  86. package/data/components/Valid value constants.json +16 -0
  87. package/data/components/classNames.json +65 -0
  88. package/data/components/useBulmaClasses.json +169 -0
  89. package/data/components/usePrefixedClassNames.json +25 -0
  90. package/data/skills/bestax-custom-component/SKILL.md +196 -0
  91. package/data/skills/bestax-custom-component/examples/stat-card.tsx +105 -0
  92. package/data/skills/bestax-custom-component/references/api.md +90 -0
  93. package/data/skills/bestax-custom-component/references/component-catalog.md +149 -0
  94. package/data/skills/bestax-custom-component/references/library-contributor.md +395 -0
  95. package/data/skills/bestax-custom-component/references/patterns.md +136 -0
  96. package/data/skills/bestax-form/SKILL.md +254 -0
  97. package/data/skills/bestax-form/references/api.md +103 -0
  98. package/data/skills/bestax-form/references/patterns.md +210 -0
  99. package/data/skills/bestax-icons/SKILL.md +80 -0
  100. package/data/skills/bestax-icons/examples/icon-usage.tsx +80 -0
  101. package/data/skills/bestax-icons/references/icon-libraries.md +131 -0
  102. package/data/skills/bestax-layout-scaffold/SKILL.md +196 -0
  103. package/data/skills/bestax-layout-scaffold/examples/app-shell.tsx +86 -0
  104. package/data/skills/bestax-layout-scaffold/examples/card-grid.tsx +106 -0
  105. package/data/skills/bestax-layout-scaffold/examples/centered.tsx +56 -0
  106. package/data/skills/bestax-layout-scaffold/examples/content-page.tsx +90 -0
  107. package/data/skills/bestax-layout-scaffold/examples/landing.tsx +122 -0
  108. package/data/skills/bestax-layout-scaffold/references/archetypes.md +246 -0
  109. package/data/skills/bestax-layout-scaffold/references/layout-components.md +269 -0
  110. package/data/skills/bestax-migrate/SKILL.md +78 -0
  111. package/data/skills/bestax-migrate/references/component-map.md +91 -0
  112. package/data/skills/bestax-migrate/references/css-migration.md +100 -0
  113. package/data/skills/bestax-migrate/references/prop-map.md +48 -0
  114. package/data/skills/bestax-migrate/references/unmappables.md +124 -0
  115. package/data/skills/bestax-optimize/SKILL.md +131 -0
  116. package/data/skills/bestax-optimize/references/modular-build.md +173 -0
  117. package/data/skills/bestax-theming/SKILL.md +117 -0
  118. package/data/skills/bestax-theming/examples/dark-mode.tsx +38 -0
  119. package/data/skills/bestax-theming/examples/theme-config.tsx +60 -0
  120. package/data/skills/bestax-theming/references/css-variables.md +466 -0
  121. package/data/skills/bestax-theming/references/themeable-components.md +119 -0
  122. package/data/skills.json +148 -0
  123. package/dist/data.d.ts +131 -0
  124. package/dist/data.d.ts.map +1 -0
  125. package/dist/data.js +111 -0
  126. package/dist/format.d.ts +37 -0
  127. package/dist/format.d.ts.map +1 -0
  128. package/dist/format.js +178 -0
  129. package/dist/helper-props.d.ts +57 -0
  130. package/dist/helper-props.d.ts.map +1 -0
  131. package/dist/helper-props.js +249 -0
  132. package/dist/index.d.ts +3 -0
  133. package/dist/index.d.ts.map +1 -0
  134. package/dist/index.js +18 -0
  135. package/dist/search.d.ts +32 -0
  136. package/dist/search.d.ts.map +1 -0
  137. package/dist/search.js +194 -0
  138. package/dist/server.d.ts +28 -0
  139. package/dist/server.d.ts.map +1 -0
  140. package/dist/server.js +616 -0
  141. package/dist/version.d.ts +29 -0
  142. package/dist/version.d.ts.map +1 -0
  143. package/dist/version.js +147 -0
  144. package/package.json +70 -0
@@ -0,0 +1,154 @@
1
+ {
2
+ "name": "Cell",
3
+ "kind": "component",
4
+ "category": "grid",
5
+ "slug": "grid/cell",
6
+ "docsUrl": "https://bestax.io/docs/api/grid/cell",
7
+ "examples": [
8
+ {
9
+ "title": "Basic Usage",
10
+ "code": "<Grid>\n <Cell>\n <Notification color=\"primary\">Basic Cell</Notification>\n </Cell>\n <Cell>\n <Notification color=\"info\">Another Cell</Notification>\n </Cell>\n</Grid>"
11
+ },
12
+ {
13
+ "title": "Column Start",
14
+ "code": "<Grid isFixed fixedCols={4}>\n <Cell>\n <Notification>Cell 1</Notification>\n </Cell>\n <Cell colStart={3}>\n <Notification color=\"primary\">Cell 2</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 3</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 4</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 5</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 6</Notification>\n </Cell>\n</Grid>"
15
+ },
16
+ {
17
+ "title": "Column From End",
18
+ "code": "<Grid isFixed fixedCols={4}>\n <Cell>\n <Notification>Cell 1</Notification>\n </Cell>\n <Cell colFromEnd={2}>\n <Notification color=\"primary\">Cell 2</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 3</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 4</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 5</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 6</Notification>\n </Cell>\n</Grid>"
19
+ },
20
+ {
21
+ "title": "Column Span",
22
+ "code": "<Grid isFixed fixedCols={4}>\n <Cell>\n <Notification>Cell 1</Notification>\n </Cell>\n <Cell colSpan={2}>\n <Notification color=\"primary\">Cell 2</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 3</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 4</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 5</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 6</Notification>\n </Cell>\n</Grid>"
23
+ },
24
+ {
25
+ "title": "Row Start",
26
+ "code": "<Grid isFixed fixedCols={4}>\n <Cell>\n <Notification>Cell 1</Notification>\n </Cell>\n <Cell rowStart={3}>\n <Notification color=\"primary\">Cell 2</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 3</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 4</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 5</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 6</Notification>\n </Cell>\n</Grid>"
27
+ },
28
+ {
29
+ "title": "Row Span",
30
+ "code": "<Grid isFixed fixedCols={4}>\n <Cell>\n <Notification>Cell 1</Notification>\n </Cell>\n <Cell rowSpan={2}>\n <Notification color=\"primary\" fullHeight>\n Cell 2\n </Notification>\n </Cell>\n <Cell>\n <Notification>Cell 3</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 4</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 5</Notification>\n </Cell>\n <Cell>\n <Notification>Cell 6</Notification>\n </Cell>\n</Grid>"
31
+ }
32
+ ],
33
+ "accessibility": null,
34
+ "related": [],
35
+ "storybook": null,
36
+ "summary": "The `Cell` component provides a single Bulma grid cell for use inside the [`Grid`](./grid.md) component.",
37
+ "import": "import { Cell } from '@allxsmith/bestax-bulma';",
38
+ "sourceFile": "bulma-ui/src/grid/Cell.tsx",
39
+ "rootClass": "cell",
40
+ "parts": [
41
+ {
42
+ "path": "Cell",
43
+ "summary": "The `Cell` component provides a single Bulma grid cell for use inside the [`Grid`](./grid.md) component.",
44
+ "component": null,
45
+ "props": [
46
+ {
47
+ "name": "colStart",
48
+ "type": "number",
49
+ "default": null,
50
+ "description": "Which column the cell starts at (Bulma: `is-col-start-x`).",
51
+ "required": false,
52
+ "inherited": false,
53
+ "deprecated": false
54
+ },
55
+ {
56
+ "name": "colFromEnd",
57
+ "type": "number",
58
+ "default": null,
59
+ "description": "Which column the cell ends at, counting from the end (Bulma: `is-col-from-end-x`).",
60
+ "required": false,
61
+ "inherited": false,
62
+ "deprecated": false
63
+ },
64
+ {
65
+ "name": "colSpan",
66
+ "type": "number",
67
+ "default": null,
68
+ "description": "How many columns the cell will span (Bulma: `is-col-span-x`).",
69
+ "required": false,
70
+ "inherited": false,
71
+ "deprecated": false
72
+ },
73
+ {
74
+ "name": "rowStart",
75
+ "type": "number",
76
+ "default": null,
77
+ "description": "Which row the cell starts at (Bulma: `is-row-start-x`).",
78
+ "required": false,
79
+ "inherited": false,
80
+ "deprecated": false
81
+ },
82
+ {
83
+ "name": "rowFromEnd",
84
+ "type": "number",
85
+ "default": null,
86
+ "description": "Which row the cell ends at, counting from the end (Bulma: `is-row-from-end-x`).",
87
+ "required": false,
88
+ "inherited": false,
89
+ "deprecated": false
90
+ },
91
+ {
92
+ "name": "rowSpan",
93
+ "type": "number",
94
+ "default": null,
95
+ "description": "How many rows the cell will span (Bulma: `is-row-span-x`).",
96
+ "required": false,
97
+ "inherited": false,
98
+ "deprecated": false
99
+ },
100
+ {
101
+ "name": "className",
102
+ "type": "string",
103
+ "default": null,
104
+ "description": "Additional CSS class names.",
105
+ "required": false,
106
+ "inherited": false,
107
+ "deprecated": false
108
+ },
109
+ {
110
+ "name": "textColor",
111
+ "type": "Bulma color | 'inherit' | 'current'",
112
+ "default": null,
113
+ "description": "Text color.",
114
+ "required": false,
115
+ "inherited": false,
116
+ "deprecated": false,
117
+ "valuesRef": "helpers/valid-values"
118
+ },
119
+ {
120
+ "name": "color",
121
+ "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
122
+ "default": null,
123
+ "description": "Bulma color modifier for the cell.",
124
+ "required": false,
125
+ "inherited": false,
126
+ "deprecated": false
127
+ },
128
+ {
129
+ "name": "bgColor",
130
+ "type": "Bulma color | 'inherit' | 'current'",
131
+ "default": null,
132
+ "description": "Background color.",
133
+ "required": false,
134
+ "inherited": false,
135
+ "deprecated": false,
136
+ "valuesRef": "helpers/valid-values"
137
+ },
138
+ {
139
+ "name": "children",
140
+ "type": "React.ReactNode",
141
+ "default": null,
142
+ "description": "Content to render inside the cell.",
143
+ "required": false,
144
+ "inherited": false,
145
+ "deprecated": false
146
+ }
147
+ ],
148
+ "extraProps": [],
149
+ "catchAll": "All standard <div> attributes and Bulma helper props",
150
+ "types": []
151
+ }
152
+ ],
153
+ "cssVars": []
154
+ }
@@ -0,0 +1,176 @@
1
+ {
2
+ "name": "Checkbox",
3
+ "kind": "component",
4
+ "category": "form",
5
+ "slug": "form/checkbox",
6
+ "docsUrl": "https://bestax.io/docs/api/form/checkbox",
7
+ "examples": [
8
+ {
9
+ "title": "Basic Checkbox",
10
+ "code": "<Checkbox> Stay Signed In </Checkbox>"
11
+ },
12
+ {
13
+ "title": "Checkbox With Link",
14
+ "code": "<Checkbox>\n I have read and agree to the\n <a href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">\n terms and conditions\n </a>\n .\n</Checkbox>"
15
+ },
16
+ {
17
+ "title": "Disabled Checkbox",
18
+ "code": "<Checkbox disabled> Stay Signed In </Checkbox>"
19
+ },
20
+ {
21
+ "title": "Group/List of Checkboxes",
22
+ "code": "<Checkboxes>\n <Checkbox> Make the bed </Checkbox>\n <Checkbox> Brush teeth </Checkbox>\n <Checkbox> Do homework </Checkbox>\n <Checkbox> Feed the pet </Checkbox>\n <Checkbox> Take out the trash </Checkbox>\n <Checkbox> Clean your room </Checkbox>\n <Checkbox> Set the table </Checkbox>\n <Checkbox> Help with dishes </Checkbox>\n <Checkbox> Water the plants </Checkbox>\n <Checkbox> Put away toys </Checkbox>\n</Checkboxes>"
23
+ }
24
+ ],
25
+ "accessibility": "- Each `Checkbox` is rendered as a `<label>` wrapping an `<input type=\"checkbox\">` and the label text, for optimal accessibility.\n- The clickable area includes both box and label by default.",
26
+ "related": ["Checkboxes", "Field", "useBulmaClasses"],
27
+ "storybook": "https://bestax.io/storybook/?path=/story/form-checkbox--default",
28
+ "summary": "The `Checkbox` component provides a Bulma-styled checkbox input.",
29
+ "import": "import { Checkboxes, Checkbox } from '@allxsmith/bestax-bulma';",
30
+ "sourceFile": "bulma-ui/src/form/Checkbox.tsx",
31
+ "rootClass": "styled-checkbox",
32
+ "parts": [
33
+ {
34
+ "path": "Checkbox",
35
+ "summary": "The `Checkbox` component provides a Bulma-styled checkbox input.",
36
+ "component": null,
37
+ "props": [
38
+ {
39
+ "name": "color",
40
+ "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
41
+ "default": null,
42
+ "description": "Color of the checkbox.",
43
+ "required": false,
44
+ "inherited": false,
45
+ "deprecated": false
46
+ },
47
+ {
48
+ "name": "size",
49
+ "type": "'small' | 'normal' | 'medium' | 'large'",
50
+ "default": null,
51
+ "description": "Size of the checkbox.",
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": "disabled",
68
+ "type": "boolean",
69
+ "default": "false",
70
+ "description": "Whether the checkbox is disabled.",
71
+ "required": false,
72
+ "inherited": false,
73
+ "deprecated": false
74
+ },
75
+ {
76
+ "name": "className",
77
+ "type": "string",
78
+ "default": null,
79
+ "description": "Additional CSS classes to apply.",
80
+ "required": false,
81
+ "inherited": false,
82
+ "deprecated": false
83
+ },
84
+ {
85
+ "name": "children",
86
+ "type": "React.ReactNode",
87
+ "default": null,
88
+ "description": "The label/content for the checkbox.",
89
+ "required": false,
90
+ "inherited": false,
91
+ "deprecated": false
92
+ },
93
+ {
94
+ "name": "ref",
95
+ "type": "React.Ref<HTMLInputElement>",
96
+ "default": null,
97
+ "description": "Forwarded to the underlying element.",
98
+ "required": false,
99
+ "inherited": false,
100
+ "deprecated": false
101
+ }
102
+ ],
103
+ "extraProps": [],
104
+ "catchAll": "All standard <input> attributes and Bulma helper props",
105
+ "types": []
106
+ }
107
+ ],
108
+ "cssVars": [
109
+ {
110
+ "css": "--bulma-checkbox-size",
111
+ "sass": "$checkbox-size",
112
+ "default": "1.25em",
113
+ "scope": "component"
114
+ },
115
+ {
116
+ "css": "--bulma-checkbox-border-width",
117
+ "sass": "$checkbox-border-width",
118
+ "default": "2px",
119
+ "scope": "component"
120
+ },
121
+ {
122
+ "css": "--bulma-checkbox-radius",
123
+ "sass": "$checkbox-radius",
124
+ "default": "var(--bulma-radius-small)",
125
+ "scope": "component"
126
+ },
127
+ {
128
+ "css": "--bulma-checkbox-border-color",
129
+ "sass": "$checkbox-border-color",
130
+ "default": "var(--bulma-border)",
131
+ "scope": "component"
132
+ },
133
+ {
134
+ "css": "--bulma-checkbox-background",
135
+ "sass": "$checkbox-background",
136
+ "default": "transparent",
137
+ "scope": "component"
138
+ },
139
+ {
140
+ "css": "--bulma-checkbox-check-color",
141
+ "sass": "$checkbox-check-color",
142
+ "default": "var(--bulma-scheme-invert)",
143
+ "scope": "component"
144
+ },
145
+ {
146
+ "css": "--bulma-checkbox-active-color",
147
+ "sass": "$checkbox-active-color",
148
+ "default": "var(--bulma-primary)",
149
+ "scope": "component"
150
+ },
151
+ {
152
+ "css": "--bulma-checkbox-label-gap",
153
+ "sass": "$checkbox-label-gap",
154
+ "default": "0.5em",
155
+ "scope": "component"
156
+ },
157
+ {
158
+ "css": "--bulma-checkbox-focus-shadow-size",
159
+ "sass": "$checkbox-focus-shadow-size",
160
+ "default": "0 0 0 0.125em",
161
+ "scope": "component"
162
+ },
163
+ {
164
+ "css": "--bulma-checkbox-transition-duration",
165
+ "sass": "$checkbox-transition-duration",
166
+ "default": "var(--bulma-duration)",
167
+ "scope": "component"
168
+ },
169
+ {
170
+ "css": "--bulma-checkbox-indeterminate-color",
171
+ "sass": "$checkbox-indeterminate-color",
172
+ "default": "var(--bulma-primary)",
173
+ "scope": "component"
174
+ }
175
+ ]
176
+ }
@@ -0,0 +1,240 @@
1
+ {
2
+ "name": "Checkboxes",
3
+ "kind": "component",
4
+ "category": "form",
5
+ "slug": "form/checkboxes",
6
+ "docsUrl": "https://bestax.io/docs/api/form/checkboxes",
7
+ "examples": [
8
+ {
9
+ "title": "Grouped Checkboxes",
10
+ "code": "<Checkboxes>\n <Checkbox> Make the bed </Checkbox>\n <Checkbox> Brush teeth </Checkbox>\n <Checkbox> Do homework </Checkbox>\n <Checkbox> Feed the pet </Checkbox>\n <Checkbox> Take out the trash </Checkbox>\n <Checkbox> Clean your room </Checkbox>\n <Checkbox> Set the table </Checkbox>\n <Checkbox> Help with dishes </Checkbox>\n <Checkbox> Water the plants </Checkbox>\n <Checkbox> Put away toys </Checkbox>\n</Checkboxes>"
11
+ },
12
+ {
13
+ "title": "Context-Aware Rendering",
14
+ "code": "<Checkboxes label=\"Chores\">\n <Checkbox> Make the bed </Checkbox>\n <Checkbox> Brush teeth </Checkbox>\n <Checkbox> Do homework </Checkbox>\n</Checkboxes>"
15
+ },
16
+ {
17
+ "title": "Context-Aware Rendering",
18
+ "code": "function example() {\n return (\n <Field horizontal label=\"Chores\">\n <Field.Body>\n <Field>\n <Checkboxes>\n <Checkbox> Make the bed </Checkbox>\n <Checkbox> Brush teeth </Checkbox>\n <Checkbox> Do homework </Checkbox>\n </Checkboxes>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
19
+ },
20
+ {
21
+ "title": "Context-Aware Rendering",
22
+ "code": "function example() {\n return (\n <Field horizontal label=\"Chores\">\n <Field.Body>\n <Field>\n <Control>\n <Checkboxes>\n <Checkbox> Make the bed </Checkbox>\n <Checkbox> Brush teeth </Checkbox>\n <Checkbox> Do homework </Checkbox>\n </Checkboxes>\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
23
+ },
24
+ {
25
+ "title": "Compound (dot-notation) usage",
26
+ "code": "<Checkboxes name=\"frameworks\" label=\"Frameworks\">\n <Checkboxes.Checkbox value=\"react\">React</Checkboxes.Checkbox>\n <Checkboxes.Checkbox value=\"vue\">Vue</Checkboxes.Checkbox>\n</Checkboxes>"
27
+ }
28
+ ],
29
+ "accessibility": "- The group is rendered as a `<div class=\"checkboxes\" role=\"group\">` containing labeled checkboxes.\n- The `label` prop names the whole group: the rendered `<label>` gets an id (yours via `labelProps.id`, or a generated one) and the group points at it with `aria-labelledby`.\n- Each child should be a `Checkbox` for proper labeling and accessibility.",
30
+ "related": ["Checkbox", "Field"],
31
+ "storybook": "https://bestax.io/storybook/?path=/story/form-checkbox--listofcheckboxes",
32
+ "summary": "The `Checkboxes` component wraps multiple `Checkbox` components in a Bulma-styled group.",
33
+ "import": "import { Checkboxes, Checkbox } from '@allxsmith/bestax-bulma';",
34
+ "sourceFile": "bulma-ui/src/form/Checkboxes.tsx",
35
+ "rootClass": "checkboxes",
36
+ "parts": [
37
+ {
38
+ "path": "Checkboxes",
39
+ "summary": "The `Checkboxes` component wraps multiple `Checkbox` components in a Bulma-styled group.",
40
+ "component": null,
41
+ "props": [
42
+ {
43
+ "name": "label",
44
+ "type": "React.ReactNode",
45
+ "default": null,
46
+ "description": "Field label naming the whole group. Automatically associated via `aria-labelledby` on the `role=\"group\"` wrapper — uses your `labelProps.id` when provided, otherwise a generated one. Dropped inside an outer `Field` (label that `Field` yourself).",
47
+ "required": false,
48
+ "inherited": false,
49
+ "deprecated": false
50
+ },
51
+ {
52
+ "name": "labelProps",
53
+ "type": "React.LabelHTMLAttributes<HTMLLabelElement> & { [key: string]: unknown; }",
54
+ "default": null,
55
+ "description": "Props for the label element. An explicit `id` here is used as the `aria-labelledby` target instead of a generated one; any `htmlFor` is ignored (a group label names the group, never a single control).",
56
+ "required": false,
57
+ "inherited": false,
58
+ "deprecated": false
59
+ },
60
+ {
61
+ "name": "className",
62
+ "type": "string",
63
+ "default": null,
64
+ "description": "Additional CSS classes to apply.",
65
+ "required": false,
66
+ "inherited": false,
67
+ "deprecated": false
68
+ },
69
+ {
70
+ "name": "name",
71
+ "type": "string",
72
+ "default": null,
73
+ "description": "Form field name shared by every Checkbox in the group (via context).",
74
+ "required": false,
75
+ "inherited": false,
76
+ "deprecated": false
77
+ },
78
+ {
79
+ "name": "value",
80
+ "type": "string[]",
81
+ "default": null,
82
+ "description": "Currently-selected values (controlled mode).",
83
+ "required": false,
84
+ "inherited": false,
85
+ "deprecated": false
86
+ },
87
+ {
88
+ "name": "defaultValue",
89
+ "type": "string[]",
90
+ "default": null,
91
+ "description": "Initial selected values (uncontrolled mode).",
92
+ "required": false,
93
+ "inherited": false,
94
+ "deprecated": false
95
+ },
96
+ {
97
+ "name": "onChange",
98
+ "type": "(values: string[]) => void",
99
+ "default": null,
100
+ "description": "Fires when the selection changes; receives the new array.",
101
+ "required": false,
102
+ "inherited": false,
103
+ "deprecated": false
104
+ },
105
+ {
106
+ "name": "children",
107
+ "type": "React.ReactNode",
108
+ "default": null,
109
+ "description": "Checkbox elements to render in the group.",
110
+ "required": false,
111
+ "inherited": false,
112
+ "deprecated": false
113
+ },
114
+ {
115
+ "name": "labelSize",
116
+ "type": "'small' | 'normal' | 'medium' | 'large'",
117
+ "default": null,
118
+ "description": "Size for the label (used in horizontal layouts).",
119
+ "required": false,
120
+ "inherited": true,
121
+ "deprecated": false
122
+ },
123
+ {
124
+ "name": "horizontal",
125
+ "type": "boolean",
126
+ "default": "false",
127
+ "description": "Horizontal field layout.",
128
+ "required": false,
129
+ "inherited": true,
130
+ "deprecated": false
131
+ },
132
+ {
133
+ "name": "message",
134
+ "type": "React.ReactNode",
135
+ "default": null,
136
+ "description": "Help/validation message below the input.",
137
+ "required": false,
138
+ "inherited": true,
139
+ "deprecated": false
140
+ },
141
+ {
142
+ "name": "messageColor",
143
+ "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
144
+ "default": null,
145
+ "description": "Bulma color for the message.",
146
+ "required": false,
147
+ "inherited": true,
148
+ "deprecated": false
149
+ },
150
+ {
151
+ "name": "fieldClassName",
152
+ "type": "string",
153
+ "default": null,
154
+ "description": "Additional CSS classes for the Field wrapper.",
155
+ "required": false,
156
+ "inherited": true,
157
+ "deprecated": false
158
+ }
159
+ ],
160
+ "extraProps": [],
161
+ "catchAll": "Bulma helper props",
162
+ "types": []
163
+ },
164
+ {
165
+ "path": "Checkboxes.Checkbox",
166
+ "summary": "The `Checkbox` component provides a Bulma-styled checkbox input.",
167
+ "component": "Checkbox",
168
+ "props": [
169
+ {
170
+ "name": "color",
171
+ "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
172
+ "default": null,
173
+ "description": "Color of the checkbox.",
174
+ "required": false,
175
+ "inherited": false,
176
+ "deprecated": false
177
+ },
178
+ {
179
+ "name": "size",
180
+ "type": "'small' | 'normal' | 'medium' | 'large'",
181
+ "default": null,
182
+ "description": "Size of the checkbox.",
183
+ "required": false,
184
+ "inherited": false,
185
+ "deprecated": false
186
+ },
187
+ {
188
+ "name": "textColor",
189
+ "type": "Bulma color | 'inherit' | 'current'",
190
+ "default": null,
191
+ "description": "Text color helper.",
192
+ "required": false,
193
+ "inherited": false,
194
+ "deprecated": false,
195
+ "valuesRef": "helpers/valid-values"
196
+ },
197
+ {
198
+ "name": "disabled",
199
+ "type": "boolean",
200
+ "default": "false",
201
+ "description": "Whether the checkbox is disabled.",
202
+ "required": false,
203
+ "inherited": false,
204
+ "deprecated": false
205
+ },
206
+ {
207
+ "name": "className",
208
+ "type": "string",
209
+ "default": null,
210
+ "description": "Additional CSS classes to apply.",
211
+ "required": false,
212
+ "inherited": false,
213
+ "deprecated": false
214
+ },
215
+ {
216
+ "name": "children",
217
+ "type": "React.ReactNode",
218
+ "default": null,
219
+ "description": "The label/content for the checkbox.",
220
+ "required": false,
221
+ "inherited": false,
222
+ "deprecated": false
223
+ },
224
+ {
225
+ "name": "ref",
226
+ "type": "React.Ref<HTMLInputElement>",
227
+ "default": null,
228
+ "description": "Forwarded to the underlying element.",
229
+ "required": false,
230
+ "inherited": false,
231
+ "deprecated": false
232
+ }
233
+ ],
234
+ "extraProps": [],
235
+ "catchAll": "All standard <input> attributes and Bulma helper props",
236
+ "types": []
237
+ }
238
+ ],
239
+ "cssVars": []
240
+ }