@festo-ui/react 11.0.1 → 11.1.0-dev.1008

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 (32) hide show
  1. package/dist/components/accordion/accordion-item/AccordionItem.css +3 -3
  2. package/dist/components/button/Button.js +2 -2
  3. package/dist/components/modals/AlertModal.js +2 -2
  4. package/dist/components/modals/ConfirmModal.js +1 -1
  5. package/dist/components/modals/ModalBase.js +1 -1
  6. package/dist/components/modals/Prompt.js +1 -1
  7. package/dist/components/pagination/Pagination.css +2 -2
  8. package/dist/components/pagination/Pagination.d.ts +1 -1
  9. package/dist/components/pagination/Pagination.js +54 -57
  10. package/dist/components/popovers/popover/Popover.d.ts +1 -0
  11. package/dist/components/popovers/popover/Popover.js +17 -3
  12. package/dist/components/search-input/SearchInput.js +2 -2
  13. package/dist/components/snackbar/Snackbar.d.ts +1 -1
  14. package/dist/components/snackbar/Snackbar.js +2 -2
  15. package/dist/forms/combobox/ComboBox.d.ts +2 -2
  16. package/dist/forms/combobox/ComboBox.js +2 -2
  17. package/dist/forms/multi-select/MultiSelect.d.ts +2 -2
  18. package/dist/forms/multi-select/MultiSelect.js +2 -2
  19. package/dist/forms/segment/Segment.d.ts +1 -1
  20. package/dist/forms/select/Select.css +8 -0
  21. package/dist/forms/select/Select.d.ts +2 -1
  22. package/dist/forms/select/Select.js +12 -2
  23. package/dist/forms/slider/Slider.d.ts +2 -2
  24. package/dist/forms/switch/Switch.d.ts +1 -1
  25. package/dist/forms/switch/Switch.js +1 -1
  26. package/dist/forms/text-area/TextArea.d.ts +1 -1
  27. package/dist/forms/text-input/TextInput.d.ts +1 -1
  28. package/dist/forms/text-input/TextInput.js +1 -0
  29. package/llm-doc/components.md +209 -154
  30. package/llm-doc/installation.md +3 -1
  31. package/llm-doc/patterns.md +22 -5
  32. package/package.json +1 -1
@@ -25,6 +25,7 @@ import { Button, TextInput, Select, Modal, Accordion } from '@festo-ui/react';
25
25
  ### Complete Export List
26
26
 
27
27
  **Components:**
28
+
28
29
  - `Accordion`, `AccordionHeader`, `AccordionItem`, `AccordionItemBody`, `AccordionItemHeader`
29
30
  - `BottomSheet`
30
31
  - `Breadcrumb`
@@ -45,6 +46,7 @@ import { Button, TextInput, Select, Modal, Accordion } from '@festo-ui/react';
45
46
  - `TableHeaderCell`
46
47
 
47
48
  **Forms:**
49
+
48
50
  - `Checkbox`
49
51
  - `ComboBox`
50
52
  - `MultiSelect`
@@ -67,7 +69,7 @@ The library uses CSS classes with the prefix `fwe-`. Commonly used:
67
69
  - Layout: `fwe-grid`, `fwe-col-{n}`, `fwe-container`, `fwe-d-flex`
68
70
  - Spacing: `fwe-m-{size}`, `fwe-p-{size}`, `fwe-mt-{size}`, `fwe-mb-{size}`, `fwe-mr-{size}`, `fwe-ml-{size}`, `fwe-my-{size}`, `fwe-mx-{size}`
69
71
  - Sizes: `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`
70
- - Buttons: `fwe-btn`, `fwe-btn-hero`, `fwe-btn-icon`, `fwe-btn-link`, `fwe-btn-lg`, `fwe-btn-block`
72
+ - Buttons: `fwe-btn`, `fwe-btn-primary`, `fwe-btn-icon`, `fwe-btn-tertiary`, `fwe-btn-lg`, `fwe-btn-block`
71
73
  - Colors: `fwe-bg-white`, `fwe-bg-background`, `fwe-bg-black`, `fwe-bg-gray-300`, `fwe-color-red`
72
74
  - Flex: `fwe-align-items-center`, `fwe-mr-auto`, `fwe-ml-auto`
73
75
  - Table: `fwe-table`, `fwe-tr-sm`, `fwe-tr-md`, `fwe-tr-lg`
@@ -5,7 +5,9 @@
5
5
  All form components support both modes:
6
6
 
7
7
  ### Uncontrolled (simpler)
8
+
8
9
  State is managed internally. Use `defaultValue` / `defaultChecked`:
10
+
9
11
  ```tsx
10
12
  <TextInput label="Name" defaultValue="Max" />
11
13
  <Checkbox defaultChecked>Option</Checkbox>
@@ -14,13 +16,16 @@ State is managed internally. Use `defaultValue` / `defaultChecked`:
14
16
  ```
15
17
 
16
18
  ### Controlled (full control)
19
+
17
20
  State is managed externally. Use `value` + `onChange`:
21
+
18
22
  ```tsx
19
23
  const [value, setValue] = useState('');
20
- <TextInput label="Name" value={value} onChange={setValue} />
24
+ <TextInput label="Name" value={value} onChange={setValue} />;
21
25
  ```
22
26
 
23
27
  **Note:** The `onChange` signature varies by component:
28
+
24
29
  - `TextInput`, `TextArea`: `(value: string, event) => void`
25
30
  - `Select`, `ComboBox`: `(value: T) => void`
26
31
  - `MultiSelect`: `(value: T[]) => void`
@@ -55,8 +60,10 @@ function handleSubmit(event) {
55
60
  <MultiSelect name="categories" label="Categories" options={catOptions} />
56
61
  <TimePicker name="meetingTime">Time</TimePicker>
57
62
  <Slider name="volume" min={0} max={100} value={50} label="Volume" />
58
- <button className="fwe-btn fwe-btn-hero" type="submit">Submit</button>
59
- </form>
63
+ <button className="fwe-btn fwe-btn-primary" type="submit">
64
+ Submit
65
+ </button>
66
+ </form>;
60
67
  ```
61
68
 
62
69
  ---
@@ -64,7 +71,9 @@ function handleSubmit(event) {
64
71
  ## Validation
65
72
 
66
73
  ### Error display
74
+
67
75
  Most form components have an `error` prop:
76
+
68
77
  ```tsx
69
78
  <TextInput label="Email" error="Invalid email address" />
70
79
  <Select label="Selection" error="Please select" options={options} />
@@ -72,12 +81,14 @@ Most form components have an `error` prop:
72
81
  ```
73
82
 
74
83
  ### HTML5 validation
84
+
75
85
  ```tsx
76
86
  <TextInput label="Name" required minLength={3} />
77
87
  <TextArea label="Text" required maxLength={500} />
78
88
  ```
79
89
 
80
90
  ### Checkbox validation
91
+
81
92
  ```tsx
82
93
  <Checkbox valid={false}>Invalid option</Checkbox>
83
94
  ```
@@ -87,6 +98,7 @@ Most form components have an `error` prop:
87
98
  ## Hint Texts
88
99
 
89
100
  Many components support `hint` for help text:
101
+
90
102
  ```tsx
91
103
  <TextInput label="Email" hint="e.g. max@example.com" />
92
104
  <Select label="Role" hint="Choose your primary role" options={options} />
@@ -98,6 +110,7 @@ Many components support `hint` for help text:
98
110
  ## CSS Classes for Layout
99
111
 
100
112
  ### Grid System
113
+
101
114
  ```tsx
102
115
  <div className="fwe-grid">
103
116
  <div className="fwe-col-4">1/3 width</div>
@@ -106,22 +119,26 @@ Many components support `hint` for help text:
106
119
  ```
107
120
 
108
121
  ### Container
122
+
109
123
  ```tsx
110
124
  <div className="fwe-container">Centered container</div>
111
125
  ```
112
126
 
113
127
  ### Buttons with CSS classes (alternative to Button component)
128
+
114
129
  ```tsx
115
130
  <button className="fwe-btn">Default</button>
116
- <button className="fwe-btn fwe-btn-hero">Primary</button>
131
+ <button className="fwe-btn fwe-btn-primary">Primary</button>
117
132
  <button className="fwe-btn fwe-btn-lg">Large</button>
118
133
  <button className="fwe-btn fwe-btn-block">Full width</button>
119
134
  <button className="fwe-btn fwe-btn-icon"><Icon /></button>
120
- <button className="fwe-btn fwe-btn-link fwe-dark">Link</button>
135
+ <button className="fwe-btn fwe-btn-tertiary fwe-dark">Link</button>
121
136
  ```
122
137
 
123
138
  ### Spacing
139
+
124
140
  Prefix `fwe-m-` (margin) and `fwe-p-` (padding), suffixes:
141
+
125
142
  - Direction: `t` (top), `b` (bottom), `l` (left), `r` (right), `x` (horizontal), `y` (vertical)
126
143
  - Sizes: `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`
127
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "11.0.1",
3
+ "version": "11.1.0-dev.1008",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "copyright": "Copyright (c) 2025 Festo SE & Co. KG. All rights reserved.",
6
6
  "license": "apache-2.0",