@recursica/adapter-mui-v7 1.3.2 → 1.3.4

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 (85) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -1
  3. package/dist/adapter-mui-v7.cjs +60 -60
  4. package/dist/adapter-mui-v7.cjs.map +1 -1
  5. package/dist/adapter-mui-v7.css +1 -1
  6. package/dist/adapter-mui-v7.js +3840 -3795
  7. package/dist/adapter-mui-v7.js.map +1 -1
  8. package/dist/index.d.ts +8 -5
  9. package/docs/PHILOSOPHY.md +4 -0
  10. package/package.json +4 -8
  11. package/src/components/Checkbox/CHECKBOX_IMPLEMENTATION_NOTES.md +4 -0
  12. package/src/components/Checkbox/Checkbox.module.css +1 -0
  13. package/src/components/Checkbox/Checkbox.tsx +7 -4
  14. package/src/components/Heading/HEADING_IMPLEMENTATION_NOTES.md +10 -0
  15. package/src/components/Modal/Modal.module.css +9 -2
  16. package/src/components/NativeInputA11y.dom.test.tsx +59 -0
  17. package/src/components/Panel/PANEL_IMPLEMENTATION_NOTES.md +8 -0
  18. package/src/components/Panel/Panel.tsx +51 -9
  19. package/src/components/Radio/RADIO_IMPLEMENTATION_NOTES.md +4 -0
  20. package/src/components/Radio/Radio.module.css +1 -0
  21. package/src/components/Radio/Radio.tsx +7 -4
  22. package/src/components/Switch/SWITCH_IMPLEMENTATION_NOTES.md +4 -0
  23. package/src/components/Switch/Switch.tsx +7 -3
  24. package/src/components/Text/TEXT_IMPLEMENTATION_NOTES.md +12 -0
  25. package/src/components/Text/Text.headings.dom.test.tsx +54 -0
  26. package/src/components/Text/Text.tsx +16 -0
  27. package/src/utils/useNativeInputA11y.ts +43 -0
  28. package/.storybook/commonArgTypes.ts +0 -148
  29. package/recursica_brand.json +0 -2610
  30. package/recursica_tokens.json +0 -769
  31. package/recursica_ui-kit.json +0 -9049
  32. package/recursica_variables_scoped.css +0 -6178
  33. package/src/Introduction.stories.tsx +0 -178
  34. package/src/components/Accordion/Accordion.stories.tsx +0 -198
  35. package/src/components/AssistiveElement/AssistiveElement.stories.tsx +0 -68
  36. package/src/components/AutoComplete/AutoComplete.stories.tsx +0 -336
  37. package/src/components/Avatar/Avatar.stories.tsx +0 -92
  38. package/src/components/Badge/Badge.stories.tsx +0 -78
  39. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +0 -114
  40. package/src/components/Button/Button.stories.tsx +0 -196
  41. package/src/components/Card/Card.stories.tsx +0 -132
  42. package/src/components/Checkbox/Checkbox.stories.tsx +0 -97
  43. package/src/components/Checkbox/CheckboxGroup.stories.tsx +0 -139
  44. package/src/components/Chip/Chip.stories.tsx +0 -154
  45. package/src/components/Container/Container.stories.tsx +0 -118
  46. package/src/components/DatePicker/DatePicker.stories.tsx +0 -163
  47. package/src/components/Dropdown/Dropdown.stories.tsx +0 -252
  48. package/src/components/FileInput/FileInput.stories.tsx +0 -313
  49. package/src/components/FileUpload/FileUpload.stories.tsx +0 -362
  50. package/src/components/Flex/Flex.stories.tsx +0 -128
  51. package/src/components/FormControlLayout/FormControlLayout.stories.tsx +0 -118
  52. package/src/components/FormControlWrapper/FormControlWrapper.stories.tsx +0 -129
  53. package/src/components/Group/Group.stories.tsx +0 -120
  54. package/src/components/Heading/Heading.stories.tsx +0 -112
  55. package/src/components/HoverCard/HoverCard.stories.tsx +0 -172
  56. package/src/components/Label/Label.stories.tsx +0 -131
  57. package/src/components/LayoutGrid/LayoutGrid.stories.tsx +0 -61
  58. package/src/components/Link/Link.stories.tsx +0 -58
  59. package/src/components/Loader/Loader.stories.tsx +0 -123
  60. package/src/components/Menu/Menu.stories.tsx +0 -402
  61. package/src/components/Modal/Modal.stories.tsx +0 -105
  62. package/src/components/NumberInput/NumberInput.stories.tsx +0 -96
  63. package/src/components/Pagination/Pagination.stories.tsx +0 -48
  64. package/src/components/Panel/Panel.stories.tsx +0 -227
  65. package/src/components/Popover/Popover.stories.tsx +0 -133
  66. package/src/components/Radio/Radio.stories.tsx +0 -93
  67. package/src/components/Radio/RadioGroup.stories.tsx +0 -117
  68. package/src/components/ReadOnlyField/ReadOnlyField.stories.tsx +0 -163
  69. package/src/components/SegmentedControl/SegmentedControl.stories.tsx +0 -106
  70. package/src/components/Slider/Slider.stories.tsx +0 -282
  71. package/src/components/Stack/Stack.stories.tsx +0 -108
  72. package/src/components/Stepper/Stepper.stories.tsx +0 -157
  73. package/src/components/Switch/Switch.stories.tsx +0 -114
  74. package/src/components/Switch/SwitchGroup.stories.tsx +0 -132
  75. package/src/components/Table/Table.stories.tsx +0 -154
  76. package/src/components/Tabs/Tabs.stories.tsx +0 -174
  77. package/src/components/Text/Text.stories.tsx +0 -123
  78. package/src/components/TextArea/TextArea.stories.tsx +0 -94
  79. package/src/components/TextField/TextField.stories.tsx +0 -162
  80. package/src/components/TimePicker/TimePicker.stories.tsx +0 -155
  81. package/src/components/Timeline/Timeline.stories.tsx +0 -128
  82. package/src/components/Toast/Toast.stories.tsx +0 -67
  83. package/src/components/Tooltip/Tooltip.stories.tsx +0 -165
  84. package/src/components/TransferList/TransferList.stories.tsx +0 -121
  85. package/src/components/Tree/Tree.stories.tsx +0 -104
@@ -1,148 +0,0 @@
1
- /**
2
- * commonArgTypes.ts
3
- *
4
- * This file centralizes the standard Storybook Controls (ArgTypes) for all UI Kit
5
- * components that natively wrap or extend the `FormControlWrapper`.
6
- *
7
- * PHILOSOPHY:
8
- * Recursica ensures strict unified design boundaries across all form inputs (TextField,
9
- * CheckboxGroup, Dropdown, etc.). Because they all share the exact same label structures,
10
- * layout variants (stacked vs side-by-side), and assistive text bindings natively supplied
11
- * by the `FormControlWrapper`, their Storybook experiences should be exactly identical.
12
- *
13
- * USAGE:
14
- * Rather than recreating these controls inside every `Component.stories.tsx` file,
15
- * developers must spread this object directly into the `argTypes` of their story default block:
16
- *
17
- * ```tsx
18
- * import { formControlArgTypes } from "../../.storybook/commonArgTypes";
19
- *
20
- * export default {
21
- * component: TextField,
22
- * argTypes: {
23
- * ...formControlArgTypes,
24
- * // Component-specific argTypes below...
25
- * }
26
- * }
27
- * ```
28
- */
29
- import type { ArgTypes } from "@storybook/react";
30
-
31
- export const formControlArgTypes: Partial<ArgTypes> = {
32
- formLayout: {
33
- control: "inline-radio",
34
- options: ["stacked", "side-by-side"],
35
- description:
36
- "Determines the structural flow layout of the Label relative to the Input.",
37
- table: {
38
- category: "Form Layout",
39
- },
40
- },
41
- labelSize: {
42
- control: "inline-radio",
43
- options: ["default", "small"],
44
- description:
45
- "Adjusts the typographical boundaries bounding the Label section.",
46
- table: {
47
- category: "Form Layout",
48
- },
49
- },
50
- labelAlignment: {
51
- control: "inline-radio",
52
- options: ["left", "right"],
53
- description:
54
- "Adjusts the explicit text alignment axis exclusively evaluating side-by-side structures.",
55
- table: {
56
- category: "Form Layout",
57
- },
58
- },
59
- labelOptionalText: {
60
- control: "text",
61
- description:
62
- "Optional secondary stylistic text injected alongside the primary Label node.",
63
- table: {
64
- category: "Form Layout",
65
- },
66
- },
67
- labelWithEditIcon: {
68
- control: "boolean",
69
- description:
70
- "Dynamically toggles interactivity hooks revealing the Edit context icon.",
71
- table: {
72
- category: "Form Layout",
73
- },
74
- },
75
- description: {
76
- table: {
77
- disable: true,
78
- },
79
- },
80
- assistiveText: {
81
- control: "text",
82
- description:
83
- "Helper instructions safely dynamically anchored below the input box natively outperforming description.",
84
- table: {
85
- category: "Form Layout",
86
- },
87
- },
88
- assistiveWithIcon: {
89
- control: "boolean",
90
- description:
91
- "Toggles native Recursica Info-styling rendering universally alongside the assistive block.",
92
- table: {
93
- category: "Form Layout",
94
- },
95
- },
96
- error: {
97
- control: "text",
98
- description:
99
- "Dynamically maps error feedback validation strings rendering explicit error states.",
100
- table: {
101
- category: "Form State",
102
- },
103
- },
104
- required: {
105
- control: "boolean",
106
- description:
107
- "Native DOM compliance flag explicitly marking the field as required natively.",
108
- table: {
109
- category: "Form State",
110
- },
111
- },
112
- disabled: {
113
- control: "boolean",
114
- description:
115
- "Globally disables interactive components bounding all click and focus logic natively.",
116
- table: {
117
- category: "Form State",
118
- },
119
- },
120
- withAsterisk: {
121
- control: "boolean",
122
- description:
123
- "Visually forces the mandatory asterisk presence completely independent of logical 'required' attribute properties.",
124
- table: {
125
- category: "Form State",
126
- },
127
- },
128
- labelActionArea: {
129
- table: {
130
- disable: true,
131
- },
132
- },
133
- onLabelEditClick: {
134
- table: {
135
- disable: true,
136
- },
137
- },
138
- controlMaxWidth: {
139
- table: {
140
- disable: true,
141
- },
142
- },
143
- controlMinWidth: {
144
- table: {
145
- disable: true,
146
- },
147
- },
148
- };