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,107 @@
1
+ {
2
+ "name": "Paragraph",
3
+ "kind": "component",
4
+ "category": "elements",
5
+ "slug": "elements/paragraph",
6
+ "docsUrl": "https://bestax.io/docs/api/elements/paragraph",
7
+ "examples": [
8
+ {
9
+ "title": "Default Paragraph",
10
+ "code": "<Paragraph>\n This is a default paragraph. It contains some sample text to demonstrate the\n component.\n</Paragraph>"
11
+ },
12
+ {
13
+ "title": "Primary Color Paragraph",
14
+ "code": "<Paragraph textColor=\"primary\">\n This paragraph has primary colored text.\n</Paragraph>"
15
+ },
16
+ {
17
+ "title": "Centered Text",
18
+ "code": "<Paragraph textAlign=\"centered\">This paragraph is centered.</Paragraph>"
19
+ },
20
+ {
21
+ "title": "Paragraph with Background",
22
+ "code": "<Paragraph bgColor=\"dark\" textColor=\"white\" p=\"3\">\n This paragraph has a dark background.\n</Paragraph>"
23
+ },
24
+ {
25
+ "title": "Large Text",
26
+ "code": "<Paragraph textSize=\"3\">This is a large paragraph.</Paragraph>"
27
+ },
28
+ {
29
+ "title": "Small Text",
30
+ "code": "<Paragraph textSize=\"7\">This is a small paragraph.</Paragraph>"
31
+ },
32
+ {
33
+ "title": "Justified Text",
34
+ "code": "<Block style={{ maxWidth: '400px' }}>\n <Paragraph textAlign=\"justified\">\n This paragraph has justified text alignment. Lorem ipsum dolor sit amet,\n consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et\n dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation\n ullamco laboris.\n </Paragraph>\n</Block>"
35
+ },
36
+ {
37
+ "title": "All Colors",
38
+ "code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"2\">\n <Paragraph textColor=\"primary\">Primary paragraph</Paragraph>\n <Paragraph textColor=\"link\">Link paragraph</Paragraph>\n <Paragraph textColor=\"info\">Info paragraph</Paragraph>\n <Paragraph textColor=\"success\">Success paragraph</Paragraph>\n <Paragraph textColor=\"warning\">Warning paragraph</Paragraph>\n <Paragraph textColor=\"danger\">Danger paragraph</Paragraph>\n</Block>"
39
+ },
40
+ {
41
+ "title": "Stacked Paragraphs",
42
+ "code": "<Content style={{ maxWidth: '500px' }}>\n <Paragraph>\n First paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n </Paragraph>\n <Paragraph>\n Second paragraph. Sed do eiusmod tempor incididunt ut labore et dolore magna\n aliqua.\n </Paragraph>\n <Paragraph>\n Third paragraph. Ut enim ad minim veniam, quis nostrud exercitation.\n </Paragraph>\n</Content>"
43
+ },
44
+ {
45
+ "title": "Highlighted Paragraph",
46
+ "code": "<Paragraph bgColor=\"dark\" textColor=\"white\" p=\"4\">\n This is a highlighted paragraph with dark background.\n</Paragraph>"
47
+ }
48
+ ],
49
+ "accessibility": "- **Semantic Structure:** Use paragraphs to wrap distinct blocks of text for proper document structure.\n- **Color Contrast:** Ensure sufficient contrast between text and background colors for readability.\n- **Heading Order:** Paragraphs should follow proper heading hierarchy in your document.\n\n:::info\nFor semantic emphasis within paragraphs, use `<strong>` (Strong) or `<em>` (Emphasis) components.\n:::",
50
+ "related": ["Content", "Emphasis", "Span", "Strong", "useBulmaClasses"],
51
+ "storybook": "https://bestax.io/storybook/?path=/story/elements-paragraph--default",
52
+ "summary": "The `Paragraph` component renders a styled `<p>` element with Bulma helper class integration.",
53
+ "import": "import { Paragraph } from '@allxsmith/bestax-bulma';",
54
+ "sourceFile": "bulma-ui/src/elements/Paragraph.tsx",
55
+ "rootClass": null,
56
+ "parts": [
57
+ {
58
+ "path": "Paragraph",
59
+ "summary": "The `Paragraph` component renders a styled `<p>` element with Bulma helper class integration.",
60
+ "component": null,
61
+ "props": [
62
+ {
63
+ "name": "className",
64
+ "type": "string",
65
+ "default": null,
66
+ "description": "Additional CSS classes to apply.",
67
+ "required": false,
68
+ "inherited": false,
69
+ "deprecated": false
70
+ },
71
+ {
72
+ "name": "textColor",
73
+ "type": "Bulma color | 'inherit' | 'current'",
74
+ "default": null,
75
+ "description": "Text color helper.",
76
+ "required": false,
77
+ "inherited": false,
78
+ "deprecated": false,
79
+ "valuesRef": "helpers/valid-values"
80
+ },
81
+ {
82
+ "name": "bgColor",
83
+ "type": "Bulma color | 'inherit' | 'current'",
84
+ "default": null,
85
+ "description": "Background color helper.",
86
+ "required": false,
87
+ "inherited": false,
88
+ "deprecated": false,
89
+ "valuesRef": "helpers/valid-values"
90
+ },
91
+ {
92
+ "name": "children",
93
+ "type": "React.ReactNode",
94
+ "default": null,
95
+ "description": "Content to render inside the paragraph.",
96
+ "required": false,
97
+ "inherited": false,
98
+ "deprecated": false
99
+ }
100
+ ],
101
+ "extraProps": [],
102
+ "catchAll": "All standard <p> attributes and Bulma helper props",
103
+ "types": []
104
+ }
105
+ ],
106
+ "cssVars": []
107
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "name": "Pre",
3
+ "kind": "component",
4
+ "category": "elements",
5
+ "slug": "elements/pre",
6
+ "docsUrl": "https://bestax.io/docs/api/elements/pre",
7
+ "examples": [
8
+ {
9
+ "title": "Default Pre",
10
+ "code": "<Pre>{`function hello() {\n console.log(\"Hello, World!\");\n}`}</Pre>"
11
+ },
12
+ {
13
+ "title": "With Code Element",
14
+ "code": "<Pre>\n <Code>{`const greeting = \"Hello\";\nconst name = \"World\";\nconsole.log(\\`\\${greeting}, \\${name}!\\`);`}</Code>\n</Pre>"
15
+ },
16
+ {
17
+ "title": "Dark Background",
18
+ "code": "<Pre bgColor=\"dark\" textColor=\"white\" p=\"4\">{`pnpm add @allxsmith/bestax-bulma\npnpm build`}</Pre>"
19
+ },
20
+ {
21
+ "title": "Light Background",
22
+ "code": "<Pre bgColor=\"light\" p=\"4\">{`{\n \"name\": \"my-app\",\n \"version\": \"1.0.0\"\n}`}</Pre>"
23
+ },
24
+ {
25
+ "title": "Terminal Output",
26
+ "code": "<Pre bgColor=\"dark\" textColor=\"success\" p=\"4\">{`$ pnpm build\n> @allxsmith/bestax-bulma@2.0.0 build\n> tsc && vite build\n\nvite v6.0.0 building for production...\n✓ 123 modules transformed.\ndist/index.js 45.23 kB\n✓ built in 2.34s`}</Pre>"
27
+ },
28
+ {
29
+ "title": "Multiple Code Blocks",
30
+ "code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"4\">\n <Pre bgColor=\"light\" p=\"3\">\n <Code>{`// JavaScript\nconst add = (a, b) => a + b;`}</Code>\n </Pre>\n <Pre bgColor=\"light\" p=\"3\">\n <Code>{`// TypeScript\nconst add = (a: number, b: number): number => a + b;`}</Code>\n </Pre>\n</Block>"
31
+ },
32
+ {
33
+ "title": "Primary Accent",
34
+ "code": "<Pre textColor=\"primary\" p=\"3\">{`// Important configuration\nconst config = {\n debug: true,\n verbose: true\n};`}</Pre>"
35
+ }
36
+ ],
37
+ "accessibility": "- **Whitespace Preservation:** The `<pre>` element preserves all whitespace, which is important for code formatting.\n- **Scrolling:** Consider horizontal scrolling for long lines to prevent layout issues.\n- **Screen Readers:** Preformatted text is typically announced as such by screen readers.\n\n:::info\nFor code blocks, wrap content in both `<Pre>` and `<Code>` for proper semantics: `<Pre><Code>...</Code></Pre>`.\n:::",
38
+ "related": ["Code", "Figure", "useBulmaClasses"],
39
+ "storybook": "https://bestax.io/storybook/?path=/story/elements-pre--default",
40
+ "summary": "The `Pre` component renders a styled `<pre>` element with Bulma helper class integration.",
41
+ "import": "import { Pre, Code } from '@allxsmith/bestax-bulma';",
42
+ "sourceFile": "bulma-ui/src/elements/Pre.tsx",
43
+ "rootClass": null,
44
+ "parts": [
45
+ {
46
+ "path": "Pre",
47
+ "summary": "The `Pre` component renders a styled `<pre>` element with Bulma helper class integration.",
48
+ "component": null,
49
+ "props": [
50
+ {
51
+ "name": "className",
52
+ "type": "string",
53
+ "default": null,
54
+ "description": "Additional CSS classes to apply.",
55
+ "required": false,
56
+ "inherited": false,
57
+ "deprecated": false
58
+ },
59
+ {
60
+ "name": "textColor",
61
+ "type": "Bulma color | 'inherit' | 'current'",
62
+ "default": null,
63
+ "description": "Text color helper.",
64
+ "required": false,
65
+ "inherited": false,
66
+ "deprecated": false,
67
+ "valuesRef": "helpers/valid-values"
68
+ },
69
+ {
70
+ "name": "bgColor",
71
+ "type": "Bulma color | 'inherit' | 'current'",
72
+ "default": null,
73
+ "description": "Background color helper.",
74
+ "required": false,
75
+ "inherited": false,
76
+ "deprecated": false,
77
+ "valuesRef": "helpers/valid-values"
78
+ },
79
+ {
80
+ "name": "children",
81
+ "type": "React.ReactNode",
82
+ "default": null,
83
+ "description": "Preformatted content to render.",
84
+ "required": false,
85
+ "inherited": false,
86
+ "deprecated": false
87
+ }
88
+ ],
89
+ "extraProps": [],
90
+ "catchAll": "All standard <pre> attributes and Bulma helper props",
91
+ "types": []
92
+ }
93
+ ],
94
+ "cssVars": [
95
+ {
96
+ "css": "--bulma-pre-font-size",
97
+ "sass": "$pre-font-size",
98
+ "default": "0.875em",
99
+ "scope": "global"
100
+ },
101
+ {
102
+ "css": "--bulma-pre-padding",
103
+ "sass": "$pre-padding",
104
+ "default": "1.25rem 1.5rem",
105
+ "scope": "global"
106
+ },
107
+ {
108
+ "css": "--bulma-pre-code-font-size",
109
+ "sass": "$pre-code-font-size",
110
+ "default": "1em",
111
+ "scope": "global"
112
+ }
113
+ ]
114
+ }
@@ -0,0 +1,137 @@
1
+ {
2
+ "name": "Progress",
3
+ "kind": "component",
4
+ "category": "elements",
5
+ "slug": "elements/progress",
6
+ "docsUrl": "https://bestax.io/docs/api/elements/progress",
7
+ "examples": [
8
+ {
9
+ "title": "Default Progress",
10
+ "code": "<Progress value={50} max={100} />"
11
+ },
12
+ {
13
+ "title": "Colored Progress",
14
+ "code": "<>\n <Progress color=\"primary\" value={75} max={100} />\n <Progress color=\"success\" value={90} max={100} />\n <Progress color=\"warning\" value={30} max={100} />\n <Progress color=\"danger\" value={10} max={100} />\n <Progress color=\"info\" value={60} max={100} />\n <Progress color=\"link\" value={80} max={100} />\n</>"
15
+ },
16
+ {
17
+ "title": "Sizing",
18
+ "code": "<>\n <Progress size=\"small\" value={50} max={100} />\n <Progress size=\"medium\" value={50} max={100} />\n <Progress size=\"large\" value={50} max={100} />\n</>"
19
+ },
20
+ {
21
+ "title": "With Margin",
22
+ "code": "<Progress value={50} max={100} m=\"4\" />"
23
+ },
24
+ {
25
+ "title": "Indeterminate Progress",
26
+ "code": "<Progress color=\"primary\" max={100} />"
27
+ },
28
+ {
29
+ "title": "Custom Content",
30
+ "code": "<Progress value={50} max={100}>\n 50% Complete\n</Progress>"
31
+ },
32
+ {
33
+ "title": "Multiple Indeterminate",
34
+ "code": "<>\n <Progress size=\"small\" color=\"primary\" max={100} />\n <Progress color=\"danger\" max={100} />\n <Progress size=\"medium\" color=\"dark\" max={100} />\n <Progress size=\"large\" color=\"info\" max={100} />\n</>"
35
+ }
36
+ ],
37
+ "accessibility": "- **Role:** The `<progress>` element is natively accessible.\n- **Labeling:** Always provide context for screen readers (e.g., with `aria-label` or visible text).\n- **Indeterminate:** Omit the `value` prop for indeterminate progress bars.\n\n:::warning\nEnsure your progress bars have sufficient color contrast for users with visual impairments.\n:::",
38
+ "related": ["useBulmaClasses"],
39
+ "storybook": "https://bestax.io/storybook/?path=/story/elements-progress--default",
40
+ "summary": "The `Progress` component displays a Bulma-styled progress bar.",
41
+ "import": "import { Progress } from '@allxsmith/bestax-bulma';",
42
+ "sourceFile": "bulma-ui/src/elements/Progress.tsx",
43
+ "rootClass": "progress",
44
+ "parts": [
45
+ {
46
+ "path": "Progress",
47
+ "summary": "The `Progress` component displays a Bulma-styled progress bar.",
48
+ "component": null,
49
+ "props": [
50
+ {
51
+ "name": "className",
52
+ "type": "string",
53
+ "default": null,
54
+ "description": "Additional CSS classes to apply.",
55
+ "required": false,
56
+ "inherited": false,
57
+ "deprecated": false
58
+ },
59
+ {
60
+ "name": "color",
61
+ "type": "Bulma color",
62
+ "default": null,
63
+ "description": "Bulma color modifier for the progress bar (renders `is-<color>`). Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`, `white`, `light`, and `dark` have shipped CSS for `.progress`. The other accepted values (`black-bis`, `black-ter`, `grey-darker`, `grey-dark`, `grey`, `grey-light`, `grey-lighter`) emit a class no CSS rule matches, so the bar renders unstyled; they log a console warning in development and will be removed from this union in the next major version.",
64
+ "required": false,
65
+ "inherited": false,
66
+ "deprecated": false,
67
+ "valuesRef": "helpers/valid-values"
68
+ },
69
+ {
70
+ "name": "size",
71
+ "type": "'small' | 'medium' | 'large'",
72
+ "default": null,
73
+ "description": "Size modifier for the progress bar.",
74
+ "required": false,
75
+ "inherited": false,
76
+ "deprecated": false
77
+ },
78
+ {
79
+ "name": "value",
80
+ "type": "number",
81
+ "default": null,
82
+ "description": "Current value of the progress bar.",
83
+ "required": false,
84
+ "inherited": false,
85
+ "deprecated": false
86
+ },
87
+ {
88
+ "name": "max",
89
+ "type": "number",
90
+ "default": null,
91
+ "description": "Maximum value of the progress bar.",
92
+ "required": false,
93
+ "inherited": false,
94
+ "deprecated": false
95
+ },
96
+ {
97
+ "name": "children",
98
+ "type": "React.ReactNode",
99
+ "default": null,
100
+ "description": "Optional custom content inside the progress bar.",
101
+ "required": false,
102
+ "inherited": false,
103
+ "deprecated": false
104
+ }
105
+ ],
106
+ "extraProps": [],
107
+ "catchAll": "All standard <progress> attributes and Bulma helper props",
108
+ "types": []
109
+ }
110
+ ],
111
+ "cssVars": [
112
+ {
113
+ "css": "--bulma-progress-border-radius",
114
+ "sass": "$progress-border-radius",
115
+ "default": "var(--bulma-radius-rounded)",
116
+ "scope": "component"
117
+ },
118
+ {
119
+ "css": "--bulma-progress-bar-background-color",
120
+ "sass": "$progress-bar-background-color",
121
+ "default": "var(--bulma-border-weak)",
122
+ "scope": "component"
123
+ },
124
+ {
125
+ "css": "--bulma-progress-value-background-color",
126
+ "sass": "$progress-value-background-color",
127
+ "default": "var(--bulma-text)",
128
+ "scope": "component"
129
+ },
130
+ {
131
+ "css": "--bulma-progress-indeterminate-duration",
132
+ "sass": "$progress-indeterminate-duration",
133
+ "default": "1.5s",
134
+ "scope": "component"
135
+ }
136
+ ]
137
+ }
@@ -0,0 +1,164 @@
1
+ {
2
+ "name": "Radio",
3
+ "kind": "component",
4
+ "category": "form",
5
+ "slug": "form/radio",
6
+ "docsUrl": "https://bestax.io/docs/api/form/radio",
7
+ "examples": [
8
+ {
9
+ "title": "Mutually Exclusive Radios (Only One Can Be Selected)",
10
+ "code": "<Control>\n <Radio name=\"mutuallyExclusive\"> Yes </Radio>\n <Radio name=\"mutuallyExclusive\"> No </Radio>\n <Radio name=\"mutuallyExclusive\"> Maybe </Radio>\n</Control>"
11
+ },
12
+ {
13
+ "title": "Default Selected Radio",
14
+ "code": "<Control>\n <Radio name=\"pet\"> Cat </Radio>\n <Radio name=\"pet\" defaultChecked>\n {' '}\n Dog{' '}\n </Radio>\n</Control>"
15
+ },
16
+ {
17
+ "title": "Disabled Radios",
18
+ "code": "<Control>\n <Radio name=\"response\" disabled>\n {' '}\n Attend{' '}\n </Radio>\n <Radio name=\"response\" disabled>\n {' '}\n Decline{' '}\n </Radio>\n <Radio name=\"response\" disabled>\n {' '}\n Tentative{' '}\n </Radio>\n</Control>"
19
+ },
20
+ {
21
+ "title": "List of Radios (Grouped with the `Radios` Wrapper)",
22
+ "code": "<Radios>\n <Radio name=\"event\" disabled>\n {' '}\n Attend{' '}\n </Radio>\n <Radio name=\"event\" disabled>\n {' '}\n Decline{' '}\n </Radio>\n <Radio name=\"event\" disabled>\n {' '}\n Tentative{' '}\n </Radio>\n</Radios>"
23
+ }
24
+ ],
25
+ "accessibility": "- Each `Radio` is rendered as a `<label>` wrapping an `<input type=\"radio\">` and the label text, for optimal accessibility.\n- Use the same `name` prop for a group of radios to ensure only one can be selected.",
26
+ "related": ["Field", "Radios", "useBulmaClasses"],
27
+ "storybook": "https://bestax.io/storybook/?path=/story/form-radio--mutuallyexclusive",
28
+ "summary": "The `Radio` component provides a Bulma-styled radio button input with flexible labels and helper classes.",
29
+ "import": "import { Radio, Radios, Control } from '@allxsmith/bestax-bulma';",
30
+ "sourceFile": "bulma-ui/src/form/Radio.tsx",
31
+ "rootClass": "styled-radio",
32
+ "parts": [
33
+ {
34
+ "path": "Radio",
35
+ "summary": "The `Radio` component provides a Bulma-styled radio button input with flexible labels and helper classes.",
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 radio button.",
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 radio button.",
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 radio 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 radio.",
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-radio-size",
111
+ "sass": "$radio-size",
112
+ "default": "1.25em",
113
+ "scope": "component"
114
+ },
115
+ {
116
+ "css": "--bulma-radio-border-width",
117
+ "sass": "$radio-border-width",
118
+ "default": "2px",
119
+ "scope": "component"
120
+ },
121
+ {
122
+ "css": "--bulma-radio-border-color",
123
+ "sass": "$radio-border-color",
124
+ "default": "var(--bulma-border)",
125
+ "scope": "component"
126
+ },
127
+ {
128
+ "css": "--bulma-radio-background",
129
+ "sass": "$radio-background",
130
+ "default": "transparent",
131
+ "scope": "component"
132
+ },
133
+ {
134
+ "css": "--bulma-radio-dot-color",
135
+ "sass": "$radio-dot-color",
136
+ "default": "var(--bulma-scheme-main)",
137
+ "scope": "component"
138
+ },
139
+ {
140
+ "css": "--bulma-radio-active-color",
141
+ "sass": "$radio-active-color",
142
+ "default": "var(--bulma-primary)",
143
+ "scope": "component"
144
+ },
145
+ {
146
+ "css": "--bulma-radio-label-gap",
147
+ "sass": "$radio-label-gap",
148
+ "default": "0.5em",
149
+ "scope": "component"
150
+ },
151
+ {
152
+ "css": "--bulma-radio-focus-shadow-size",
153
+ "sass": "$radio-focus-shadow-size",
154
+ "default": "0 0 0 0.125em",
155
+ "scope": "component"
156
+ },
157
+ {
158
+ "css": "--bulma-radio-transition-duration",
159
+ "sass": "$radio-transition-duration",
160
+ "default": "var(--bulma-duration)",
161
+ "scope": "component"
162
+ }
163
+ ]
164
+ }