@festo-ui/react 11.0.0-dev.962 → 11.0.0-dev.964
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/dist/components/button/Button.js +1 -1
- package/dist/components/modals/AlertModal.js +1 -1
- package/dist/components/modals/ConfirmModal.js +1 -1
- package/dist/components/modals/Prompt.js +1 -1
- package/llm-doc/components.md +2 -2
- package/llm-doc/installation.md +1 -1
- package/llm-doc/patterns.md +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ const Button = /*#__PURE__*/ forwardRef(({ icon, type = 'button', disabled = fal
|
|
|
8
8
|
}, {
|
|
9
9
|
'fwe-disabled': disabled
|
|
10
10
|
}, {
|
|
11
|
-
'fwe-btn-
|
|
11
|
+
'fwe-btn-primary': primary && !tertiary
|
|
12
12
|
}, {
|
|
13
13
|
'fwe-btn-tertiary': tertiary && !primary
|
|
14
14
|
}, {
|
|
@@ -42,7 +42,7 @@ const AlertModal = /*#__PURE__*/ forwardRef(({ title, subtitle, alertType, stron
|
|
|
42
42
|
type: "button",
|
|
43
43
|
"aria-label": "Ok",
|
|
44
44
|
className: classnames('fwe-btn fwe-btn-lg', {
|
|
45
|
-
'fwe-btn-
|
|
45
|
+
'fwe-btn-primary': !strong
|
|
46
46
|
}),
|
|
47
47
|
onClick: onOk,
|
|
48
48
|
children: ok
|
|
@@ -36,7 +36,7 @@ const ConfirmModal = /*#__PURE__*/ forwardRef(({ title, subtitle, cancel, ok, on
|
|
|
36
36
|
ok && /*#__PURE__*/ jsx("button", {
|
|
37
37
|
type: "button",
|
|
38
38
|
"aria-label": "Ok",
|
|
39
|
-
className: "fwe-btn fwe-btn-
|
|
39
|
+
className: "fwe-btn fwe-btn-primary fwe-btn-lg",
|
|
40
40
|
onClick: onOk,
|
|
41
41
|
children: ok
|
|
42
42
|
})
|
|
@@ -49,7 +49,7 @@ const Prompt = /*#__PURE__*/ forwardRef(({ title, subtitle, hint, label, value,
|
|
|
49
49
|
ok && /*#__PURE__*/ jsx("button", {
|
|
50
50
|
type: "button",
|
|
51
51
|
"aria-label": "Ok",
|
|
52
|
-
className: "fwe-btn fwe-btn-
|
|
52
|
+
className: "fwe-btn fwe-btn-primary fwe-btn-lg",
|
|
53
53
|
onClick: ()=>onOk(innerValue),
|
|
54
54
|
children: ok
|
|
55
55
|
})
|
package/llm-doc/components.md
CHANGED
|
@@ -191,7 +191,7 @@ Card component with header, body, and notifications.
|
|
|
191
191
|
action={<button className="fwe-btn fwe-btn-icon">...</button>}
|
|
192
192
|
/>
|
|
193
193
|
<CardBody text="Card text">
|
|
194
|
-
<button className="fwe-btn fwe-btn-
|
|
194
|
+
<button className="fwe-btn fwe-btn-primary fwe-btn-block">Action</button>
|
|
195
195
|
</CardBody>
|
|
196
196
|
<CardNotification className="fwe-bg-orange" title="Warning" message="Details" />
|
|
197
197
|
</Card>
|
|
@@ -386,7 +386,7 @@ Freely customizable dialog.
|
|
|
386
386
|
<button type="button" className="fwe-btn fwe-btn-lg" onClick={() => setOpen(false)}>
|
|
387
387
|
Cancel
|
|
388
388
|
</button>
|
|
389
|
-
<button className="fwe-btn fwe-btn-lg fwe-btn-
|
|
389
|
+
<button className="fwe-btn fwe-btn-lg fwe-btn-primary" type="submit">
|
|
390
390
|
Submit
|
|
391
391
|
</button>
|
|
392
392
|
</div>
|
package/llm-doc/installation.md
CHANGED
|
@@ -69,7 +69,7 @@ The library uses CSS classes with the prefix `fwe-`. Commonly used:
|
|
|
69
69
|
- Layout: `fwe-grid`, `fwe-col-{n}`, `fwe-container`, `fwe-d-flex`
|
|
70
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}`
|
|
71
71
|
- Sizes: `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`
|
|
72
|
-
- Buttons: `fwe-btn`, `fwe-btn-
|
|
72
|
+
- Buttons: `fwe-btn`, `fwe-btn-primary`, `fwe-btn-icon`, `fwe-btn-tertiary`, `fwe-btn-lg`, `fwe-btn-block`
|
|
73
73
|
- Colors: `fwe-bg-white`, `fwe-bg-background`, `fwe-bg-black`, `fwe-bg-gray-300`, `fwe-color-red`
|
|
74
74
|
- Flex: `fwe-align-items-center`, `fwe-mr-auto`, `fwe-ml-auto`
|
|
75
75
|
- Table: `fwe-table`, `fwe-tr-sm`, `fwe-tr-md`, `fwe-tr-lg`
|
package/llm-doc/patterns.md
CHANGED
|
@@ -60,7 +60,7 @@ function handleSubmit(event) {
|
|
|
60
60
|
<MultiSelect name="categories" label="Categories" options={catOptions} />
|
|
61
61
|
<TimePicker name="meetingTime">Time</TimePicker>
|
|
62
62
|
<Slider name="volume" min={0} max={100} value={50} label="Volume" />
|
|
63
|
-
<button className="fwe-btn fwe-btn-
|
|
63
|
+
<button className="fwe-btn fwe-btn-primary" type="submit">
|
|
64
64
|
Submit
|
|
65
65
|
</button>
|
|
66
66
|
</form>;
|
|
@@ -128,7 +128,7 @@ Many components support `hint` for help text:
|
|
|
128
128
|
|
|
129
129
|
```tsx
|
|
130
130
|
<button className="fwe-btn">Default</button>
|
|
131
|
-
<button className="fwe-btn fwe-btn-
|
|
131
|
+
<button className="fwe-btn fwe-btn-primary">Primary</button>
|
|
132
132
|
<button className="fwe-btn fwe-btn-lg">Large</button>
|
|
133
133
|
<button className="fwe-btn fwe-btn-block">Full width</button>
|
|
134
134
|
<button className="fwe-btn fwe-btn-icon"><Icon /></button>
|
package/package.json
CHANGED