@rio-cloud/uikit-mcp 1.1.8 → 1.1.10
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/README.md +17 -7
- package/dist/doc-metadata.json +325 -85
- package/dist/docs/components/accentBar.md +110 -116
- package/dist/docs/components/activity.md +1 -1
- package/dist/docs/components/analyticsAnalysisOverlay.md +628 -0
- package/dist/docs/components/animatedNumber.md +2 -2
- package/dist/docs/components/animatedTextReveal.md +53 -55
- package/dist/docs/components/animations.md +22 -22
- package/dist/docs/components/appHeader.md +27 -38
- package/dist/docs/components/appLayout.md +38 -42
- package/dist/docs/components/appNavigationBar.md +1 -1
- package/dist/docs/components/areaCharts.md +57 -63
- package/dist/docs/components/aspectRatioPlaceholder.md +1 -1
- package/dist/docs/components/assetTree.md +200 -167
- package/dist/docs/components/autosuggests.md +1 -1
- package/dist/docs/components/avatar.md +1 -1
- package/dist/docs/components/banner.md +2 -2
- package/dist/docs/components/barCharts.md +531 -417
- package/dist/docs/components/barList.md +9 -9
- package/dist/docs/components/basicMap.md +60 -39
- package/dist/docs/components/bottomSheet.md +2 -2
- package/dist/docs/components/button.md +8 -2
- package/dist/docs/components/buttonToolbar.md +1 -1
- package/dist/docs/components/calendarStripe.md +57 -65
- package/dist/docs/components/card.md +1 -1
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +1 -3
- package/dist/docs/components/chartsGettingStarted.md +1 -3
- package/dist/docs/components/chat.md +2 -2
- package/dist/docs/components/checkbox.md +15 -12
- package/dist/docs/components/circularProgress.md +8 -8
- package/dist/docs/components/clearableInput.md +1 -1
- package/dist/docs/components/collapse.md +2 -4
- package/dist/docs/components/composedCharts.md +63 -53
- package/dist/docs/components/contentLoader.md +1 -1
- package/dist/docs/components/dataTabs.md +33 -33
- package/dist/docs/components/datepickers.md +693 -687
- package/dist/docs/components/dayPicker.md +5574 -0
- package/dist/docs/components/dayPickerCalendar.md +5269 -0
- package/dist/docs/components/dialogs.md +17 -19
- package/dist/docs/components/divider.md +1 -1
- package/dist/docs/components/dropdowns.md +3252 -3276
- package/dist/docs/components/editableContent.md +91 -91
- package/dist/docs/components/expander.md +4 -1
- package/dist/docs/components/fade.md +1 -1
- package/dist/docs/components/fadeExpander.md +1 -1
- package/dist/docs/components/fadeUp.md +32 -36
- package/dist/docs/components/feedback.md +1 -1
- package/dist/docs/components/filePickers.md +1 -1
- package/dist/docs/components/formLabel.md +29 -31
- package/dist/docs/components/groupedItemList.md +3 -7
- package/dist/docs/components/htmlTable.md +5074 -0
- package/dist/docs/components/iconList.md +4 -4
- package/dist/docs/components/imagePreloader.md +1 -1
- package/dist/docs/components/labeledElement.md +1 -1
- package/dist/docs/components/licensePlate.md +1 -1
- package/dist/docs/components/lineCharts.md +172 -172
- package/dist/docs/components/listMenu.md +15 -12
- package/dist/docs/components/loadMore.md +4 -2
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +10 -1
- package/dist/docs/components/mapCluster.md +23 -1
- package/dist/docs/components/mapContext.md +12 -4
- package/dist/docs/components/mapDraggableMarker.md +12 -1
- package/dist/docs/components/mapGettingStarted.md +1 -1
- package/dist/docs/components/mapInfoBubble.md +129 -2
- package/dist/docs/components/mapLayerGroup.md +10 -1
- package/dist/docs/components/mapMarker.md +10 -3
- package/dist/docs/components/mapPolygon.md +288 -85
- package/dist/docs/components/mapRoute.md +262 -172
- package/dist/docs/components/mapRouteGenerator.md +1 -1
- package/dist/docs/components/mapSettings.md +23 -1
- package/dist/docs/components/mapUtils.md +1 -1
- package/dist/docs/components/multiselects.md +211 -18
- package/dist/docs/components/noData.md +1 -1
- package/dist/docs/components/notifications.md +2 -2
- package/dist/docs/components/numbercontrol.md +15 -15
- package/dist/docs/components/onboarding.md +1 -1
- package/dist/docs/components/page.md +1 -1
- package/dist/docs/components/pager.md +1 -1
- package/dist/docs/components/pieCharts.md +237 -213
- package/dist/docs/components/popover.md +1 -1
- package/dist/docs/components/position.md +1 -1
- package/dist/docs/components/radialBarCharts.md +446 -400
- package/dist/docs/components/radioCardGroup.md +1 -1
- package/dist/docs/components/radiobutton.md +96 -98
- package/dist/docs/components/releaseNotes.md +1 -1
- package/dist/docs/components/resizer.md +1 -3
- package/dist/docs/components/responsiveColumnStripe.md +1 -3
- package/dist/docs/components/responsiveVideo.md +1 -1
- package/dist/docs/components/rioglyph.md +1 -1
- package/dist/docs/components/rules.md +41 -47
- package/dist/docs/components/saveableInput.md +252 -252
- package/dist/docs/components/selects.md +165 -111
- package/dist/docs/components/sidebar.md +1 -1
- package/dist/docs/components/sliders.md +1 -1
- package/dist/docs/components/smoothScrollbars.md +19 -15
- package/dist/docs/components/spinners.md +1 -1
- package/dist/docs/components/states.md +1 -1
- package/dist/docs/components/statsWidgets.md +1 -1
- package/dist/docs/components/statusBar.md +1 -1
- package/dist/docs/components/stepButton.md +1 -1
- package/dist/docs/components/steppedProgressBars.md +9 -11
- package/dist/docs/components/subNavigation.md +1 -1
- package/dist/docs/components/supportMarker.md +1 -1
- package/dist/docs/components/svgImage.md +1 -1
- package/dist/docs/components/switch.md +3 -1
- package/dist/docs/components/table.md +19584 -0
- package/dist/docs/components/tableControls.md +982 -0
- package/dist/docs/components/tagManager.md +1 -1
- package/dist/docs/components/tags.md +1 -1
- package/dist/docs/components/teaser.md +1 -3
- package/dist/docs/components/textTruncateMiddle.md +1 -1
- package/dist/docs/components/timeline.md +1 -1
- package/dist/docs/components/timepicker.md +1 -1
- package/dist/docs/components/toggleButton.md +3 -1
- package/dist/docs/components/tooltip.md +4 -2
- package/dist/docs/components/tracker.md +1 -1
- package/dist/docs/components/virtualList.md +56 -56
- package/dist/docs/foundations.md +640 -3122
- package/dist/docs/start/changelog.md +53 -3
- package/dist/docs/start/goodtoknow.md +2 -4
- package/dist/docs/start/guidelines/color-combinations.md +1 -1
- package/dist/docs/start/guidelines/custom-css.md +1 -1
- package/dist/docs/start/guidelines/custom-rioglyph.md +1 -1
- package/dist/docs/start/guidelines/formatting.md +1 -3
- package/dist/docs/start/guidelines/iframe.md +17 -19
- package/dist/docs/start/guidelines/obfuscate-data.md +2 -4
- package/dist/docs/start/guidelines/print-css.md +1 -1
- package/dist/docs/start/guidelines/spinner.md +1 -1
- package/dist/docs/start/guidelines/state-in-url.md +1 -1
- package/dist/docs/start/guidelines/supported-browsers.md +1 -1
- package/dist/docs/start/guidelines/writing.md +1 -1
- package/dist/docs/start/howto.md +12 -20
- package/dist/docs/start/intro.md +1 -1
- package/dist/docs/start/responsiveness.md +1 -3
- package/dist/docs/templates/ai-assistant.md +311 -0
- package/dist/docs/templates/common-table.md +814 -0
- package/dist/docs/templates/detail-views.md +846 -0
- package/dist/docs/templates/expandable-details.md +214 -0
- package/dist/docs/templates/feature-cards.md +479 -0
- package/dist/docs/templates/form-summary.md +179 -0
- package/dist/docs/templates/form-toggle.md +329 -0
- package/dist/docs/templates/list-blocks.md +872 -0
- package/dist/docs/templates/loading-progress.md +100 -0
- package/dist/docs/templates/options-panel.md +132 -0
- package/dist/docs/templates/panel-variants.md +137 -0
- package/dist/docs/templates/progress-cards.md +541 -0
- package/dist/docs/templates/progress-success.md +125 -0
- package/dist/docs/templates/settings-form.md +401 -0
- package/dist/docs/templates/stats-blocks.md +1245 -0
- package/dist/docs/templates/table-panel.md +310 -0
- package/dist/docs/templates/usage-cards.md +199 -0
- package/dist/docs/utilities/classNames.md +1 -1
- package/dist/docs/utilities/deviceUtils.md +2 -2
- package/dist/docs/utilities/featureToggles.md +1 -1
- package/dist/docs/utilities/fuelTypeUtils.md +27 -29
- package/dist/docs/utilities/getTrackingAttributes.md +277 -0
- package/dist/docs/utilities/routeUtils.md +2 -2
- package/dist/docs/utilities/useAfterMount.md +1 -1
- package/dist/docs/utilities/useAutoAnimate.md +1 -1
- package/dist/docs/utilities/useAverage.md +1 -1
- package/dist/docs/utilities/useClickOutside.md +1 -1
- package/dist/docs/utilities/useClipboard.md +2 -2
- package/dist/docs/utilities/useCookies.md +1 -1
- package/dist/docs/utilities/useCount.md +1 -1
- package/dist/docs/utilities/useDarkMode.md +5 -4
- package/dist/docs/utilities/useDebugInfo.md +3 -3
- package/dist/docs/utilities/useDraggableElement.md +281 -0
- package/dist/docs/utilities/useEffectOnce.md +1 -1
- package/dist/docs/utilities/useElapsedTime.md +1 -1
- package/dist/docs/utilities/useElementSize.md +1 -1
- package/dist/docs/utilities/useEsc.md +1 -1
- package/dist/docs/utilities/useEvent.md +1 -1
- package/dist/docs/utilities/useFocusTrap.md +1 -1
- package/dist/docs/utilities/useFullscreen.md +1 -1
- package/dist/docs/utilities/useHover.md +1 -1
- package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
- package/dist/docs/utilities/useInterval.md +1 -1
- package/dist/docs/utilities/useIsFocusWithin.md +1 -1
- package/dist/docs/utilities/useKey.md +8 -10
- package/dist/docs/utilities/useLocalStorage.md +1 -1
- package/dist/docs/utilities/useLocationSuggestions.md +1 -1
- package/dist/docs/utilities/useMax.md +1 -1
- package/dist/docs/utilities/useMin.md +1 -1
- package/dist/docs/utilities/useMutationObserver.md +1 -1
- package/dist/docs/utilities/useOnScreen.md +1 -1
- package/dist/docs/utilities/useOnlineStatus.md +1 -1
- package/dist/docs/utilities/usePostMessage.md +2 -2
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +2 -4
- package/dist/docs/utilities/useResizeObserver.md +35 -15
- package/dist/docs/utilities/useRioCookieConsent.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +3 -6
- package/dist/docs/utilities/useSearch.md +1 -3
- package/dist/docs/utilities/useSearchHighlight.md +1 -1
- package/dist/docs/utilities/useSorting.md +370 -239
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +364 -288
- package/dist/docs/utilities/useTableSelection.md +88 -92
- package/dist/docs/utilities/useTimeout.md +1 -1
- package/dist/docs/utilities/useToggle.md +1 -1
- package/dist/docs/utilities/useUrlState.md +1 -1
- package/dist/docs/utilities/useWindowResize.md +1 -1
- package/dist/index.mjs +2 -8
- package/dist/search-synonyms.json +2 -2
- package/dist/version.json +2 -2
- package/package.json +15 -9
- package/dist/docs/components/tables.md +0 -8
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
# Form toggle
|
|
2
|
+
|
|
3
|
+
*Category:* Templates
|
|
4
|
+
*Section:* Forms
|
|
5
|
+
*Source:* https://uikit.developers.rio.cloud/#/templates/form-toggle
|
|
6
|
+
*Captured:* 2026-04-20T12:55:45.127Z
|
|
7
|
+
|
|
8
|
+
## Form toggle
|
|
9
|
+
|
|
10
|
+
### Example: Example 1
|
|
11
|
+
|
|
12
|
+
Size by form-group
|
|
13
|
+
Note
|
|
14
|
+
Different form-group sizes come with different bottom spacing
|
|
15
|
+
|
|
16
|
+
Wrapped by sized form-groups
|
|
17
|
+
form-group-sm + form-group-not-editable Lorem Ipsum Dolor
|
|
18
|
+
|
|
19
|
+
form-group + form-group-not-editable Lorem Ipsum Dolor
|
|
20
|
+
|
|
21
|
+
form-group-lg + form-group-not-editable Lorem Ipsum Dolor
|
|
22
|
+
|
|
23
|
+
Edit
|
|
24
|
+
|
|
25
|
+
Size by input-group
|
|
26
|
+
Note
|
|
27
|
+
No form-group size results in the same bottom spacing
|
|
28
|
+
|
|
29
|
+
Wrapped only by form-group
|
|
30
|
+
input-group-sm input-group-not-editable Lorem Ipsum Dolor
|
|
31
|
+
|
|
32
|
+
input-group input-group-not-editable Lorem Ipsum Dolor
|
|
33
|
+
|
|
34
|
+
input-group-lg input-group-not-editable Lorem Ipsum Dolor
|
|
35
|
+
|
|
36
|
+
Edit
|
|
37
|
+
|
|
38
|
+
#### React (tsx)
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
import { useState } from 'react';
|
|
42
|
+
|
|
43
|
+
import { Note } from '../../../components/Note';
|
|
44
|
+
|
|
45
|
+
import Button from '@rio-cloud/rio-uikit/Button';
|
|
46
|
+
import Card from '@rio-cloud/rio-uikit/Card';
|
|
47
|
+
import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
|
|
48
|
+
|
|
49
|
+
type FormGroupProps = {
|
|
50
|
+
size?: 'sm' | 'lg';
|
|
51
|
+
value: string;
|
|
52
|
+
editMode: boolean;
|
|
53
|
+
onChange: VoidFunction;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const FormGroup = ({ size, value, editMode, onChange }: FormGroupProps) => (
|
|
57
|
+
<div className={`form-group ${size ? `form-group-${size}` : ''} ${!editMode ? 'form-group-not-editable' : ''}`}>
|
|
58
|
+
<FormLabel htmlFor='input1'>{`form-group${size ? `-${size}` : ''} ${
|
|
59
|
+
!editMode ? '+ form-group-not-editable' : ''
|
|
60
|
+
}`}</FormLabel>
|
|
61
|
+
{editMode ? (
|
|
62
|
+
<div className='input-group'>
|
|
63
|
+
<input id='input1' className='form-control' type='text' defaultValue={value} onChange={onChange} />
|
|
64
|
+
<span className='input-group-btn'>
|
|
65
|
+
<Button
|
|
66
|
+
iconOnly
|
|
67
|
+
iconName='rioglyph-trash'
|
|
68
|
+
bsSize={size}
|
|
69
|
+
className={!editMode ? 'form-group-not-editable' : ''}
|
|
70
|
+
/>
|
|
71
|
+
</span>
|
|
72
|
+
</div>
|
|
73
|
+
) : (
|
|
74
|
+
<div>{value}</div>
|
|
75
|
+
)}
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
type InputGroupProps = {
|
|
80
|
+
size?: 'sm' | 'lg';
|
|
81
|
+
value: string;
|
|
82
|
+
editMode: boolean;
|
|
83
|
+
onChange: VoidFunction;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const InputGroup = ({ size, value, editMode, onChange }: InputGroupProps) => (
|
|
87
|
+
<>
|
|
88
|
+
<FormLabel htmlFor='input2'>{`input-group${size ? `-${size}` : ''} ${
|
|
89
|
+
!editMode ? 'input-group-not-editable' : ''
|
|
90
|
+
}`}</FormLabel>
|
|
91
|
+
<div
|
|
92
|
+
className={`input-group ${size ? `input-group-${size}` : ''} ${
|
|
93
|
+
!editMode ? '+ input-group-not-editable' : ''
|
|
94
|
+
}`}
|
|
95
|
+
>
|
|
96
|
+
{editMode ? (
|
|
97
|
+
<>
|
|
98
|
+
<input id='input2' className='form-control' type='text' defaultValue={value} onChange={onChange} />
|
|
99
|
+
<span className='input-group-btn'>
|
|
100
|
+
<Button
|
|
101
|
+
iconOnly
|
|
102
|
+
iconName='rioglyph-trash'
|
|
103
|
+
bsSize={size}
|
|
104
|
+
className={!editMode ? 'form-group-not-editable' : ''}
|
|
105
|
+
/>
|
|
106
|
+
</span>
|
|
107
|
+
</>
|
|
108
|
+
) : (
|
|
109
|
+
<div>{value}</div>
|
|
110
|
+
)}
|
|
111
|
+
</div>
|
|
112
|
+
</>
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
export default () => {
|
|
116
|
+
const [editModes, setEditModes] = useState<Record<string, boolean>>({
|
|
117
|
+
formGroupEditMode: false,
|
|
118
|
+
inputGroupEditMode: false,
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const [hasFormGroupExampleChanged, setHasFormGroupExampleChanged] = useState(false);
|
|
122
|
+
const [hasInputGroupExampleChanged, setHasInputGroupExampleChanged] = useState(false);
|
|
123
|
+
|
|
124
|
+
const handleFormInputChange = () => setHasFormGroupExampleChanged(true);
|
|
125
|
+
const handleInputChange = () => setHasInputGroupExampleChanged(true);
|
|
126
|
+
|
|
127
|
+
const handleChange = (key: string) => {
|
|
128
|
+
const newState = !editModes[key];
|
|
129
|
+
|
|
130
|
+
setEditModes({
|
|
131
|
+
...editModes,
|
|
132
|
+
[key]: newState,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
setHasFormGroupExampleChanged(false);
|
|
136
|
+
setHasInputGroupExampleChanged(false);
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const { formGroupEditMode, inputGroupEditMode } = editModes;
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
<div className='display-grid gap-25 grid-cols-1 grid-cols-2-sm'>
|
|
143
|
+
<Card className='display-flex flex-column justify-content-between' padding={25}>
|
|
144
|
+
<div>
|
|
145
|
+
<div className='text-medium text-size-18 margin-bottom-5'>Size by form-group</div>
|
|
146
|
+
<Note>Different form-group sizes come with different bottom spacing</Note>
|
|
147
|
+
<hr className='margin-top-20 margin-bottom-15' />
|
|
148
|
+
|
|
149
|
+
<div className='h5'>Wrapped by sized form-groups</div>
|
|
150
|
+
<FormGroup
|
|
151
|
+
onChange={handleFormInputChange}
|
|
152
|
+
editMode={formGroupEditMode}
|
|
153
|
+
size='sm'
|
|
154
|
+
value='Lorem Ipsum Dolor'
|
|
155
|
+
/>
|
|
156
|
+
<FormGroup
|
|
157
|
+
onChange={handleFormInputChange}
|
|
158
|
+
editMode={formGroupEditMode}
|
|
159
|
+
value='Lorem Ipsum Dolor'
|
|
160
|
+
/>
|
|
161
|
+
<FormGroup
|
|
162
|
+
onChange={handleFormInputChange}
|
|
163
|
+
editMode={formGroupEditMode}
|
|
164
|
+
size='lg'
|
|
165
|
+
value='Lorem Ipsum Dolor'
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<div className={`margin-top-25 display-flex ${formGroupEditMode ? 'justify-content-end' : ''}`}>
|
|
170
|
+
{!formGroupEditMode && (
|
|
171
|
+
<Button iconName='rioglyph-pencil' onClick={() => handleChange('formGroupEditMode')}>
|
|
172
|
+
Edit
|
|
173
|
+
</Button>
|
|
174
|
+
)}
|
|
175
|
+
{formGroupEditMode && (
|
|
176
|
+
<div className='btn-toolbar'>
|
|
177
|
+
<Button onClick={() => handleChange('formGroupEditMode')}>Cancel</Button>
|
|
178
|
+
<Button
|
|
179
|
+
bsStyle='primary'
|
|
180
|
+
disabled={!hasFormGroupExampleChanged}
|
|
181
|
+
onClick={() => handleChange('formGroupEditMode')}
|
|
182
|
+
>
|
|
183
|
+
Save changes
|
|
184
|
+
</Button>
|
|
185
|
+
</div>
|
|
186
|
+
)}
|
|
187
|
+
</div>
|
|
188
|
+
</Card>
|
|
189
|
+
|
|
190
|
+
<Card className='display-flex flex-column justify-content-between' padding={25}>
|
|
191
|
+
<div>
|
|
192
|
+
<div className='text-medium text-size-18 margin-bottom-5'>Size by input-group</div>
|
|
193
|
+
<Note>No form-group size results in the same bottom spacing</Note>
|
|
194
|
+
<hr className='margin-top-20 margin-bottom-15' />
|
|
195
|
+
<div className='h5'>Wrapped only by form-group</div>
|
|
196
|
+
<div className='form-group'>
|
|
197
|
+
<InputGroup
|
|
198
|
+
onChange={handleInputChange}
|
|
199
|
+
editMode={inputGroupEditMode}
|
|
200
|
+
size='sm'
|
|
201
|
+
value='Lorem Ipsum Dolor'
|
|
202
|
+
/>
|
|
203
|
+
</div>
|
|
204
|
+
<div className='form-group'>
|
|
205
|
+
<InputGroup
|
|
206
|
+
onChange={handleInputChange}
|
|
207
|
+
editMode={inputGroupEditMode}
|
|
208
|
+
value='Lorem Ipsum Dolor'
|
|
209
|
+
/>
|
|
210
|
+
</div>
|
|
211
|
+
<div className='form-group'>
|
|
212
|
+
<InputGroup
|
|
213
|
+
onChange={handleInputChange}
|
|
214
|
+
editMode={inputGroupEditMode}
|
|
215
|
+
size='lg'
|
|
216
|
+
value='Lorem Ipsum Dolor'
|
|
217
|
+
/>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<div className={`margin-top-25 display-flex ${inputGroupEditMode ? 'justify-content-end' : ''}`}>
|
|
222
|
+
{!inputGroupEditMode && (
|
|
223
|
+
<Button iconName='rioglyph-pencil' onClick={() => handleChange('inputGroupEditMode')}>
|
|
224
|
+
Edit
|
|
225
|
+
</Button>
|
|
226
|
+
)}
|
|
227
|
+
{inputGroupEditMode && (
|
|
228
|
+
<div className='btn-toolbar'>
|
|
229
|
+
<Button onClick={() => handleChange('inputGroupEditMode')}>Cancel</Button>
|
|
230
|
+
<Button
|
|
231
|
+
bsStyle='primary'
|
|
232
|
+
disabled={!hasInputGroupExampleChanged}
|
|
233
|
+
onClick={() => handleChange('inputGroupEditMode')}
|
|
234
|
+
>
|
|
235
|
+
Save changes
|
|
236
|
+
</Button>
|
|
237
|
+
</div>
|
|
238
|
+
)}
|
|
239
|
+
</div>
|
|
240
|
+
</Card>
|
|
241
|
+
</div>
|
|
242
|
+
);
|
|
243
|
+
};
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
#### HTML (html)
|
|
247
|
+
|
|
248
|
+
```html
|
|
249
|
+
<div class="display-grid gap-25 grid-cols-1 grid-cols-2-sm">
|
|
250
|
+
<div class="bg-white rounded border shadow-default padding-25 display-flex flex-column justify-content-between">
|
|
251
|
+
<div>
|
|
252
|
+
<div class="text-medium text-size-18 margin-bottom-5">Size by form-group</div>
|
|
253
|
+
<div class="display-flex gap-10 max-width-1000 margin-bottom-10 last-child-margin-bottom-0">
|
|
254
|
+
<div>
|
|
255
|
+
<span class="label label-info label-condensed label-filled">Note</span>
|
|
256
|
+
</div>
|
|
257
|
+
<div class="width-100pct children-first-margin-top-0 children-last-margin-bottom-0 padding-top-1">Different form-group sizes come with different bottom spacing</div>
|
|
258
|
+
</div>
|
|
259
|
+
<hr class="margin-top-20 margin-bottom-15">
|
|
260
|
+
<div class="h5">Wrapped by sized form-groups</div>
|
|
261
|
+
<div class="form-group form-group-sm form-group-not-editable">
|
|
262
|
+
<label for="input1" class="display-inline-block">
|
|
263
|
+
<span>form-group-sm + form-group-not-editable</span>
|
|
264
|
+
</label>
|
|
265
|
+
<div>Lorem Ipsum Dolor</div>
|
|
266
|
+
</div>
|
|
267
|
+
<div class="form-group form-group-not-editable">
|
|
268
|
+
<label for="input1" class="display-inline-block">
|
|
269
|
+
<span>form-group + form-group-not-editable</span>
|
|
270
|
+
</label>
|
|
271
|
+
<div>Lorem Ipsum Dolor</div>
|
|
272
|
+
</div>
|
|
273
|
+
<div class="form-group form-group-lg form-group-not-editable">
|
|
274
|
+
<label for="input1" class="display-inline-block">
|
|
275
|
+
<span>form-group-lg + form-group-not-editable</span>
|
|
276
|
+
</label>
|
|
277
|
+
<div>Lorem Ipsum Dolor</div>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
<div class="margin-top-25 display-flex ">
|
|
281
|
+
<button type="button" class="btn btn-default btn-component" tabindex="0">
|
|
282
|
+
<span class="rioglyph rioglyph-pencil">
|
|
283
|
+
</span>Edit</button>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
<div class="bg-white rounded border shadow-default padding-25 display-flex flex-column justify-content-between">
|
|
287
|
+
<div>
|
|
288
|
+
<div class="text-medium text-size-18 margin-bottom-5">Size by input-group</div>
|
|
289
|
+
<div class="display-flex gap-10 max-width-1000 margin-bottom-10 last-child-margin-bottom-0">
|
|
290
|
+
<div>
|
|
291
|
+
<span class="label label-info label-condensed label-filled">Note</span>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="width-100pct children-first-margin-top-0 children-last-margin-bottom-0 padding-top-1">No form-group size results in the same bottom spacing</div>
|
|
294
|
+
</div>
|
|
295
|
+
<hr class="margin-top-20 margin-bottom-15">
|
|
296
|
+
<div class="h5">Wrapped only by form-group</div>
|
|
297
|
+
<div class="form-group">
|
|
298
|
+
<label for="input2" class="display-inline-block">
|
|
299
|
+
<span>input-group-sm input-group-not-editable</span>
|
|
300
|
+
</label>
|
|
301
|
+
<div class="input-group input-group-sm + input-group-not-editable">
|
|
302
|
+
<div>Lorem Ipsum Dolor</div>
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
<div class="form-group">
|
|
306
|
+
<label for="input2" class="display-inline-block">
|
|
307
|
+
<span>input-group input-group-not-editable</span>
|
|
308
|
+
</label>
|
|
309
|
+
<div class="input-group + input-group-not-editable">
|
|
310
|
+
<div>Lorem Ipsum Dolor</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
<div class="form-group">
|
|
314
|
+
<label for="input2" class="display-inline-block">
|
|
315
|
+
<span>input-group-lg input-group-not-editable</span>
|
|
316
|
+
</label>
|
|
317
|
+
<div class="input-group input-group-lg + input-group-not-editable">
|
|
318
|
+
<div>Lorem Ipsum Dolor</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
<div class="margin-top-25 display-flex ">
|
|
323
|
+
<button type="button" class="btn btn-default btn-component" tabindex="0">
|
|
324
|
+
<span class="rioglyph rioglyph-pencil">
|
|
325
|
+
</span>Edit</button>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
```
|