@public-ui/sample-react 2.1.7 → 2.1.8
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/1487.js +1 -1
- package/dist/1636.js +1 -1
- package/dist/1792.js +1 -1
- package/dist/1795.js +1 -1
- package/dist/2017.js +1 -1
- package/dist/2322.js +1 -1
- package/dist/2538.js +1 -1
- package/dist/2567.js +1 -1
- package/dist/263.js +1 -1
- package/dist/2719.js +1 -1
- package/dist/3064.js +1 -1
- package/dist/3077.js +1 -1
- package/dist/3238.js +1 -1
- package/dist/3301.js +2 -0
- package/dist/3395.js +1 -1
- package/dist/35.js +1 -1
- package/dist/3521.js +1 -1
- package/dist/356.js +1 -1
- package/dist/3714.js +1 -1
- package/dist/3735.js +1 -1
- package/dist/3766.js +1 -1
- package/dist/3994.js +1 -1
- package/dist/4025.js +1 -1
- package/dist/4065.js +2 -0
- package/dist/4118.js +1 -1
- package/dist/4182.js +1 -1
- package/dist/4188.js +1 -1
- package/dist/4332.js +1 -1
- package/dist/4402.js +1 -1
- package/dist/4795.js +2 -0
- package/dist/4818.js +1 -1
- package/dist/4892.js +1 -1
- package/dist/4933.js +1 -1
- package/dist/4943.js +1 -1
- package/dist/495.js +1 -1
- package/dist/5034.js +1 -1
- package/dist/5056.js +1 -1
- package/dist/5138.js +1 -1
- package/dist/5296.js +1 -1
- package/dist/5356.js +1 -1
- package/dist/5551.js +1 -1
- package/dist/5835.js +1 -1
- package/dist/5840.js +1 -1
- package/dist/5889.js +1 -1
- package/dist/5912.js +1 -1
- package/dist/6082.js +1 -1
- package/dist/6099.js +1 -1
- package/dist/6181.js +1 -1
- package/dist/619.js +1 -1
- package/dist/6671.js +1 -1
- package/dist/6775.js +1 -1
- package/dist/7274.js +1 -1
- package/dist/7440.js +2 -0
- package/dist/7795.js +1 -1
- package/dist/7802.js +1 -1
- package/dist/7860.js +1 -1
- package/dist/8092.js +1 -1
- package/dist/8111.js +1 -1
- package/dist/8146.js +1 -1
- package/dist/8427.js +1 -1
- package/dist/8495.js +1 -1
- package/dist/8672.js +1 -1
- package/dist/8737.js +1 -1
- package/dist/8786.js +1 -1
- package/dist/8796.js +1 -1
- package/dist/8977.js +1 -1
- package/dist/9333.js +1 -1
- package/dist/9389.js +1 -1
- package/dist/9561.js +1 -1
- package/dist/9599.js +1 -1
- package/dist/9612.js +1 -1
- package/dist/9890.js +1 -1
- package/dist/index.html +1 -1
- package/dist/main.css +3 -3
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +16 -16
- package/public/index.html +1 -1
- package/src/@shared/_mixins.scss +3 -0
- package/src/App.tsx +1 -1
- package/src/components/FormWrap.tsx +1 -1
- package/src/components/Navigation.tsx +63 -0
- package/src/components/Sidebar.tsx +5 -41
- package/src/components/abbr/basic.tsx +12 -12
- package/src/components/alert/card-msg.tsx +3 -1
- package/src/components/alert/html.tsx +4 -2
- package/src/components/button/access-key.tsx +34 -25
- package/src/components/button/aria-description.tsx +20 -11
- package/src/components/button/baselined.tsx +22 -13
- package/src/components/button/icons.tsx +33 -26
- package/src/components/button/partials/cases.tsx +13 -6
- package/src/components/button/partials/variants.tsx +15 -17
- package/src/components/button/width.tsx +33 -28
- package/src/components/button-group/basic.tsx +25 -16
- package/src/components/button-link/basic.tsx +3 -3
- package/src/components/button-link/image.tsx +0 -1
- package/src/components/card/basic.tsx +1 -1
- package/src/components/combobox/partials/variants.tsx +1 -1
- package/src/components/details/basic.tsx +2 -2
- package/src/components/form/basic.tsx +1 -1
- package/src/components/form/error-list.tsx +1 -0
- package/src/components/handout/basic.tsx +304 -279
- package/src/components/input-checkbox/partials/variants.tsx +22 -10
- package/src/components/input-date/reset.tsx +1 -1
- package/src/components/input-password/show-password.tsx +1 -1
- package/src/components/input-text/partials/cases.tsx +1 -1
- package/src/components/input-text/routes.ts +2 -0
- package/src/components/input-text/smart-button.tsx +33 -0
- package/src/components/input-text/text-formatter.tsx +98 -45
- package/src/components/link/image.tsx +0 -1
- package/src/components/link/target.tsx +1 -1
- package/src/components/modal/basic.tsx +1 -1
- package/src/components/nav/basic.tsx +23 -12
- package/src/components/nav/horizontal.tsx +12 -3
- package/src/components/nav/links.ts +36 -0
- package/src/components/table/column-alignment.tsx +64 -62
- package/src/components/table/complex-headers.tsx +80 -78
- package/src/components/table/horizontal-scrollbar.tsx +30 -28
- package/src/components/table/interactive-child-elements.tsx +81 -69
- package/src/components/table/pagination-position.tsx +15 -13
- package/src/components/table/render-cell.tsx +14 -3
- package/src/components/table/sort-data.tsx +11 -8
- package/src/components/table/stateful-with-selection.tsx +47 -27
- package/src/components/table/stateful-with-single-selection.tsx +47 -27
- package/src/components/table/stateless-with-selection.tsx +37 -17
- package/src/components/table/stateless-with-single-selection.tsx +37 -17
- package/src/components/table/stateless.tsx +29 -27
- package/src/components/table/with-footer.tsx +1 -0
- package/src/components/table/with-pagination.tsx +1 -1
- package/src/components/tabs/behavior.tsx +61 -0
- package/src/components/tabs/routes.ts +2 -0
- package/src/components/textarea/adjust-height.tsx +1 -1
- package/src/components/textarea/counter.tsx +4 -1
- package/src/components/textarea/resize.tsx +1 -1
- package/src/components/textarea/rows.tsx +1 -1
- package/src/components/toast/basic.tsx +13 -11
- package/src/hooks/useToasterService.ts +21 -0
- package/src/react.main.tsx +6 -1
- package/src/scenarios/appointment-form/AppointmentForm.tsx +1 -0
- package/src/scenarios/custom-tooltip-width.tsx +26 -11
- package/src/scenarios/disabled-interactive-elements.tsx +123 -114
- package/src/scenarios/focus-elements.tsx +21 -16
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +1 -1
- package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +19 -0
- package/src/scenarios/input-group-with-error.tsx +41 -0
- package/src/scenarios/inputs-get-value.tsx +121 -119
- package/src/scenarios/routes.ts +4 -2
- package/src/scenarios/static-form.tsx +65 -62
- package/src/style.scss +10 -13
- package/tsconfig.json +1 -2
- package/unocss.config.ts +213 -0
- package/dist/3171.js +0 -2
- package/dist/4262.js +0 -2
- package/dist/479.js +0 -2
- package/dist/8710.js +0 -2
- package/src/scenarios/horizontal-scrollbar-advanced/layout.css +0 -31
- /package/dist/{3171.js.LICENSE.txt → 3301.js.LICENSE.txt} +0 -0
- /package/dist/{4262.js.LICENSE.txt → 4065.js.LICENSE.txt} +0 -0
- /package/dist/{479.js.LICENSE.txt → 4795.js.LICENSE.txt} +0 -0
- /package/dist/{8710.js.LICENSE.txt → 7440.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
1
|
+
import type { ButtonProps, KoliBriTableHeaders } from '@public-ui/components';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import {
|
|
@@ -38,6 +38,17 @@ import {
|
|
|
38
38
|
import { getTheme, getThemeName } from '../../shares/store';
|
|
39
39
|
import { getRoot } from '../../shares/react-roots';
|
|
40
40
|
import { TABLE_DATA, type TableDataType } from './table-data';
|
|
41
|
+
import { useToasterService } from '../../hooks/useToasterService';
|
|
42
|
+
|
|
43
|
+
function KolButtonWrapper({ _on, ...other }: ButtonProps & { style: Record<string, unknown> }) {
|
|
44
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
45
|
+
|
|
46
|
+
const dummyEventHandler = {
|
|
47
|
+
onClick: dummyClickEventHandler,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
return <KolButton {...other} _on={dummyEventHandler} />;
|
|
51
|
+
}
|
|
41
52
|
|
|
42
53
|
const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
43
54
|
horizontal: [
|
|
@@ -65,7 +76,7 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
|
65
76
|
renderElement.setAttribute('role', 'presentation');
|
|
66
77
|
el.innerHTML = '';
|
|
67
78
|
el.appendChild(renderElement);
|
|
68
|
-
getRoot(renderElement).render(<
|
|
79
|
+
getRoot(renderElement).render(<KolButtonWrapper _label={cell.label} style={{ fontSize: '75%' }} data-theme="default" />);
|
|
69
80
|
},
|
|
70
81
|
sort: (data) => {
|
|
71
82
|
return data.sort((first, second) => {
|
|
@@ -179,36 +190,43 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
|
179
190
|
],
|
|
180
191
|
};
|
|
181
192
|
|
|
182
|
-
export const HandoutBasic: FC = () =>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
<
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
193
|
+
export const HandoutBasic: FC = () => {
|
|
194
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
195
|
+
|
|
196
|
+
const dummyEventHandler = {
|
|
197
|
+
onClick: dummyClickEventHandler,
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
return (
|
|
201
|
+
<div className="grid gap-4">
|
|
202
|
+
<div className="grid gap-4 grid-cols-[auto_1fr_1fr] items-center">
|
|
203
|
+
<KolKolibri className="block w-75px" _labeled={false}></KolKolibri>
|
|
204
|
+
<KolHeading _label="" _level={1}>
|
|
205
|
+
<span slot="expert">
|
|
206
|
+
Kolibri-Handout <small>for {getThemeName(getTheme())}</small>
|
|
207
|
+
</span>
|
|
208
|
+
</KolHeading>
|
|
209
|
+
<KolDetails _label="Abstract" _open>
|
|
210
|
+
The handout shows a selection of KoliBri components in the style of <strong>{getThemeName(getTheme())}</strong>. Since KoliBri offers self-contained,
|
|
211
|
+
accessible web components that can be customized to your own corporate design using theming, you don't have to develop these components yourself.
|
|
212
|
+
For more information read our documentation and follow us (
|
|
213
|
+
<KolLink _label="https://github.com/public-ui/kolibri" _href="https://github.com/public-ui/kolibri" _target="_blank" />
|
|
214
|
+
).
|
|
215
|
+
</KolDetails>
|
|
216
|
+
</div>
|
|
217
|
+
<div className="grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12">
|
|
218
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2" _label="Heading" _level={2}>
|
|
219
|
+
<div slot="" className="grid gap-2 p-2">
|
|
220
|
+
<KolHeading _label="Heading Level 1" _level={1}></KolHeading>
|
|
221
|
+
<KolHeading _label="Heading Level 2" _level={2}></KolHeading>
|
|
222
|
+
<KolHeading _label="Heading Level 3" _level={3}></KolHeading>
|
|
223
|
+
<KolHeading _label="Heading Level 4" _level={4}></KolHeading>
|
|
224
|
+
<KolHeading _label="Heading Level 5" _level={5}></KolHeading>
|
|
225
|
+
<KolHeading _label="Heading Level 6" _level={6}></KolHeading>
|
|
226
|
+
<KolHeading _label="Heading Level 6" _secondaryHeadline="Lessons" _level={6}></KolHeading>
|
|
227
|
+
</div>
|
|
228
|
+
</KolCard>
|
|
229
|
+
{/* <KolCard className="col-span-3" _label="Accordion" _level={2}>
|
|
212
230
|
<div slot="" className="grid gap-2 p-2">
|
|
213
231
|
<KolAccordion _label="Überschrift Level 1" _level={1} _open>
|
|
214
232
|
<div slot="">Inhalt Accordion Tab 1</div>
|
|
@@ -230,261 +248,268 @@ export const HandoutBasic: FC = () => (
|
|
|
230
248
|
</KolAccordion>
|
|
231
249
|
</div>
|
|
232
250
|
</KolCard> */}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</KolCard>
|
|
269
|
-
<KolCard className="col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3" _label="Button, LinkButton and Tab" _level={2}>
|
|
270
|
-
<div slot="" className="grid gap-2 p-2">
|
|
271
|
-
<KolTabs _label="" _selected={0} _tabs={[{ _label: 'Button' }, { _label: 'LinkButton' }, { _label: 'Disabled Tab', _disabled: true }]}>
|
|
272
|
-
<div className="grid gap-2 py-2">
|
|
273
|
-
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
274
|
-
<KolButton _icons={{ left: 'codicon codicon-arrow-left' }} _label="primary" _variant="primary"></KolButton>
|
|
275
|
-
<KolButton _disabled _icons={{ left: 'codicon codicon-arrow-left' }} _label="primary" _variant="primary"></KolButton>
|
|
276
|
-
<KolButton _hideLabel _icons="codicon codicon-arrow-left" _label="primary" _variant="primary"></KolButton>
|
|
277
|
-
</div>
|
|
278
|
-
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
279
|
-
<KolButton _icons={{ right: 'codicon codicon-arrow-right' }} _label="secondary" _variant="secondary"></KolButton>
|
|
280
|
-
<KolButton _disabled _icons={{ right: 'codicon codicon-arrow-right' }} _label="secondary" _variant="secondary"></KolButton>
|
|
281
|
-
<KolButton _hideLabel _icons="codicon codicon-arrow-right" _label="secondary" _variant="secondary"></KolButton>
|
|
282
|
-
</div>
|
|
283
|
-
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
284
|
-
<KolButton _icons={{ top: 'codicon codicon-arrow-up' }} _label="danger" _variant="danger"></KolButton>
|
|
285
|
-
<KolButton _disabled _icons={{ top: 'codicon codicon-arrow-up' }} _label="danger" _variant="danger"></KolButton>
|
|
286
|
-
<KolButton _hideLabel _icons="codicon codicon-arrow-up" _label="danger" _variant="danger"></KolButton>
|
|
287
|
-
</div>
|
|
288
|
-
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
289
|
-
<KolButton _icons={{ bottom: 'codicon codicon-arrow-down' }} _label="normal" _variant="normal"></KolButton>
|
|
290
|
-
<KolButton _disabled _icons={{ bottom: 'codicon codicon-arrow-down' }} _label="normal" _variant="normal"></KolButton>
|
|
291
|
-
<KolButton _hideLabel _icons="codicon codicon-arrow-down" _label="normal" _variant="normal"></KolButton>
|
|
292
|
-
</div>
|
|
293
|
-
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
294
|
-
<KolButton _label="ghost" _variant="ghost"></KolButton>
|
|
295
|
-
<KolButton _disabled _label="ghost" _variant="ghost"></KolButton>
|
|
296
|
-
<KolButton _icons="codicon codicon-home" _hideLabel _label="ghost" _variant="ghost"></KolButton>
|
|
297
|
-
</div>
|
|
251
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2" _label="Abbreviation and Progress" _level={2}>
|
|
252
|
+
<div slot="" className="grid gap-2 p-2">
|
|
253
|
+
<p>
|
|
254
|
+
I am a{' '}
|
|
255
|
+
<KolAbbr _label="Detailed description" _tooltipAlign="top">
|
|
256
|
+
ABB
|
|
257
|
+
</KolAbbr>{' '}
|
|
258
|
+
with tooltip at the top
|
|
259
|
+
</p>
|
|
260
|
+
<p>
|
|
261
|
+
I am a{' '}
|
|
262
|
+
<KolAbbr _label="Detailed description" _tooltipAlign="right">
|
|
263
|
+
ABB
|
|
264
|
+
</KolAbbr>{' '}
|
|
265
|
+
with tooltip on the right
|
|
266
|
+
</p>
|
|
267
|
+
<p>
|
|
268
|
+
I am a{' '}
|
|
269
|
+
<KolAbbr _label="Detailed description" _tooltipAlign="bottom">
|
|
270
|
+
ABB
|
|
271
|
+
</KolAbbr>{' '}
|
|
272
|
+
with tooltip at the bottom
|
|
273
|
+
</p>
|
|
274
|
+
<p>
|
|
275
|
+
I am a{' '}
|
|
276
|
+
<KolAbbr _label="Detailed description" _tooltipAlign="left">
|
|
277
|
+
ABB
|
|
278
|
+
</KolAbbr>{' '}
|
|
279
|
+
with tooltip on the left
|
|
280
|
+
</p>
|
|
281
|
+
<div className="grid grid-cols-2 items-center">
|
|
282
|
+
<KolProgress _variant="bar" _max={100} _value={33} _label="Progress" />
|
|
283
|
+
<KolProgress _variant="cycle" _max={100} _value={66} _label="Progress" />
|
|
298
284
|
</div>
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
285
|
+
</div>
|
|
286
|
+
</KolCard>
|
|
287
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3" _label="Button, LinkButton and Tab" _level={2}>
|
|
288
|
+
<div slot="" className="grid gap-2 p-2">
|
|
289
|
+
<KolTabs _label="" _selected={0} _tabs={[{ _label: 'Button' }, { _label: 'LinkButton' }, { _label: 'Disabled Tab', _disabled: true }]}>
|
|
290
|
+
<div className="grid gap-2 py-2">
|
|
291
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
292
|
+
<KolButton _icons={{ left: 'codicon codicon-arrow-left' }} _label="primary" _variant="primary" _on={dummyEventHandler}></KolButton>
|
|
293
|
+
<KolButton _disabled _icons={{ left: 'codicon codicon-arrow-left' }} _label="primary" _variant="primary" _on={dummyEventHandler}></KolButton>
|
|
294
|
+
<KolButton _hideLabel _icons="codicon codicon-arrow-left" _label="primary" _variant="primary" _on={dummyEventHandler}></KolButton>
|
|
295
|
+
</div>
|
|
296
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
297
|
+
<KolButton _icons={{ right: 'codicon codicon-arrow-right' }} _label="secondary" _variant="secondary" _on={dummyEventHandler}></KolButton>
|
|
298
|
+
<KolButton
|
|
299
|
+
_disabled
|
|
300
|
+
_icons={{ right: 'codicon codicon-arrow-right' }}
|
|
301
|
+
_label="secondary"
|
|
302
|
+
_variant="secondary"
|
|
303
|
+
_on={dummyEventHandler}
|
|
304
|
+
></KolButton>
|
|
305
|
+
<KolButton _hideLabel _icons="codicon codicon-arrow-right" _label="secondary" _variant="secondary" _on={dummyEventHandler}></KolButton>
|
|
306
|
+
</div>
|
|
307
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
308
|
+
<KolButton _icons={{ top: 'codicon codicon-arrow-up' }} _label="danger" _variant="danger" _on={dummyEventHandler}></KolButton>
|
|
309
|
+
<KolButton _disabled _icons={{ top: 'codicon codicon-arrow-up' }} _label="danger" _variant="danger" _on={dummyEventHandler}></KolButton>
|
|
310
|
+
<KolButton _hideLabel _icons="codicon codicon-arrow-up" _label="danger" _variant="danger" _on={dummyEventHandler}></KolButton>
|
|
311
|
+
</div>
|
|
312
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
313
|
+
<KolButton _icons={{ bottom: 'codicon codicon-arrow-down' }} _label="normal" _variant="normal" _on={dummyEventHandler}></KolButton>
|
|
314
|
+
<KolButton _disabled _icons={{ bottom: 'codicon codicon-arrow-down' }} _label="normal" _variant="normal" _on={dummyEventHandler}></KolButton>
|
|
315
|
+
<KolButton _hideLabel _icons="codicon codicon-arrow-down" _label="normal" _variant="normal" _on={dummyEventHandler}></KolButton>
|
|
316
|
+
</div>
|
|
317
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
318
|
+
<KolButton _label="ghost" _variant="ghost"></KolButton>
|
|
319
|
+
<KolButton _disabled _label="ghost" _variant="ghost"></KolButton>
|
|
320
|
+
<KolButton _icons="codicon codicon-home" _hideLabel _label="ghost" _variant="ghost" _on={dummyEventHandler}></KolButton>
|
|
321
|
+
</div>
|
|
309
322
|
</div>
|
|
310
|
-
<div className="grid gap-2
|
|
311
|
-
<
|
|
312
|
-
|
|
313
|
-
|
|
323
|
+
<div className="grid gap-2 py-2">
|
|
324
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
325
|
+
<KolLinkButton _href="#/back-page" _icons={{ left: 'codicon codicon-arrow-left' }} _label="primary" _variant="primary"></KolLinkButton>
|
|
326
|
+
<KolLinkButton _href="#/back-page" _icons={{ left: 'codicon codicon-arrow-left' }} _label="primary" _variant="primary"></KolLinkButton>
|
|
327
|
+
<KolLinkButton _href="#/back-page" _hideLabel _icons="codicon codicon-arrow-left" _label="primary" _variant="primary"></KolLinkButton>
|
|
328
|
+
</div>
|
|
329
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
330
|
+
<KolLinkButton _href="#/back-page" _icons={{ right: 'codicon codicon-arrow-right' }} _label="secondary" _variant="secondary"></KolLinkButton>
|
|
331
|
+
<KolLinkButton _href="#/back-page" _icons={{ right: 'codicon codicon-arrow-right' }} _label="secondary" _variant="secondary"></KolLinkButton>
|
|
332
|
+
<KolLinkButton _href="#/back-page" _hideLabel _icons="codicon codicon-arrow-right" _label="secondary" _variant="secondary"></KolLinkButton>
|
|
333
|
+
</div>
|
|
334
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
335
|
+
<KolLinkButton _href="#/back-page" _icons={{ top: 'codicon codicon-arrow-up' }} _label="danger" _variant="danger"></KolLinkButton>
|
|
336
|
+
<KolLinkButton _href="#/back-page" _icons={{ top: 'codicon codicon-arrow-up' }} _label="danger" _variant="danger"></KolLinkButton>
|
|
337
|
+
<KolLinkButton _href="#/back-page" _hideLabel _icons="codicon codicon-arrow-up" _label="danger" _variant="danger"></KolLinkButton>
|
|
338
|
+
</div>
|
|
339
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
340
|
+
<KolLinkButton _href="#/back-page" _icons={{ bottom: 'codicon codicon-arrow-down' }} _label="normal" _variant="normal"></KolLinkButton>
|
|
341
|
+
<KolLinkButton _href="#/back-page" _icons={{ bottom: 'codicon codicon-arrow-down' }} _label="normal" _variant="normal"></KolLinkButton>
|
|
342
|
+
<KolLinkButton _href="#/back-page" _hideLabel _icons="codicon codicon-arrow-down" _label="normal" _variant="normal"></KolLinkButton>
|
|
343
|
+
</div>
|
|
344
|
+
<div className="grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center">
|
|
345
|
+
<KolLinkButton _href="#/back-page" _label="ghost" _variant="ghost"></KolLinkButton>
|
|
346
|
+
<KolLinkButton _href="#/back-page" _label="ghost" _variant="ghost"></KolLinkButton>
|
|
347
|
+
<KolLinkButton _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="ghost" _variant="ghost"></KolLinkButton>
|
|
348
|
+
</div>
|
|
314
349
|
</div>
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
350
|
+
</KolTabs>
|
|
351
|
+
</div>
|
|
352
|
+
</KolCard>
|
|
353
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2" _label="Accordion, Link and ButtonLink" _level={2}>
|
|
354
|
+
<div slot="" className="grid gap-2 p-2">
|
|
355
|
+
<KolAccordion _label="Links" _level={3} _open>
|
|
356
|
+
<div className="grid gap-2" slot="">
|
|
357
|
+
<KolLink _href="#/back-page" _label="Link text"></KolLink>
|
|
358
|
+
<KolLink _href="#/back-page" _icons="codicon codicon-home" _label="Link text with icon"></KolLink>
|
|
359
|
+
<KolLink _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="Link text with icon only"></KolLink>
|
|
360
|
+
<KolLink _href="/" _label="Visited link"></KolLink>
|
|
361
|
+
<p>
|
|
362
|
+
I am a <KolLink _href="#/back-page" _label="externer Link" _target="w3c"></KolLink> in the running text.
|
|
363
|
+
</p>
|
|
319
364
|
</div>
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
<
|
|
365
|
+
</KolAccordion>
|
|
366
|
+
<KolAccordion _label="ButtonLinks" _level={3}>
|
|
367
|
+
<div className="grid gap-2" slot="">
|
|
368
|
+
<KolButtonLink _label="Link text"></KolButtonLink>
|
|
369
|
+
<KolButtonLink _icons="codicon codicon-home" _label="Link text with icon"></KolButtonLink>
|
|
370
|
+
<KolButtonLink _icons="codicon codicon-home" _hideLabel _label="Link text with icon only"></KolButtonLink>
|
|
371
|
+
<p>
|
|
372
|
+
I am a <KolButtonLink _label="Link"></KolButtonLink> in the running text.
|
|
373
|
+
</p>
|
|
374
|
+
<KolButtonLink
|
|
375
|
+
_icons={{
|
|
376
|
+
left: 'codicon codicon-arrow-left',
|
|
377
|
+
right: 'codicon codicon-arrow-right',
|
|
378
|
+
top: 'codicon codicon-arrow-up',
|
|
379
|
+
bottom: 'codicon codicon-arrow-down',
|
|
380
|
+
}}
|
|
381
|
+
_label="Icons"
|
|
382
|
+
></KolButtonLink>
|
|
324
383
|
</div>
|
|
384
|
+
</KolAccordion>
|
|
385
|
+
</div>
|
|
386
|
+
</KolCard>
|
|
387
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3" _label="Alert" _level={2}>
|
|
388
|
+
<div slot="" className="grid gap-2 p-2">
|
|
389
|
+
<KolAlert _label="Default message" _type="default">
|
|
390
|
+
This is the text of the alert.
|
|
391
|
+
</KolAlert>
|
|
392
|
+
<KolAlert _type="success">Success message text</KolAlert>
|
|
393
|
+
<KolAlert _type="error" _hasCloser>
|
|
394
|
+
This is a error message text.
|
|
395
|
+
</KolAlert>
|
|
396
|
+
<KolAlert _label="Info card" _type="info" _variant="card">
|
|
397
|
+
This is the text of the alert.
|
|
398
|
+
</KolAlert>
|
|
399
|
+
<KolAlert _label="Warning card" _type="warning" _hasCloser _variant="card">
|
|
400
|
+
This is the text of the alert.
|
|
401
|
+
</KolAlert>
|
|
402
|
+
</div>
|
|
403
|
+
</KolCard>
|
|
404
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2" _label="Nav and Breadcrumb" _level={2}>
|
|
405
|
+
<div slot="" className="grid gap-2 p-2">
|
|
406
|
+
<div>
|
|
407
|
+
<KolNav
|
|
408
|
+
_label="Main navigation"
|
|
409
|
+
_links={[
|
|
410
|
+
{
|
|
411
|
+
_label: 'Homepage',
|
|
412
|
+
_icons: 'codicon codicon-home',
|
|
413
|
+
_href: '#/back-page',
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
_label: '2 Navigation point',
|
|
417
|
+
_icons: 'codicon codicon-home',
|
|
418
|
+
_href: '#/back-page',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
_active: true,
|
|
422
|
+
_label: '3 Navigation point',
|
|
423
|
+
_href: '#/back-page',
|
|
424
|
+
_icons: 'codicon codicon-home',
|
|
425
|
+
_children: [
|
|
426
|
+
{
|
|
427
|
+
_label: '3.1 Navigation point',
|
|
428
|
+
_icons: 'codicon codicon-home',
|
|
429
|
+
_href: '#/back-page',
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
_label: '3.2 External navigation point',
|
|
433
|
+
_icons: 'codicon codicon-home',
|
|
434
|
+
_href: '#/back-page',
|
|
435
|
+
_target: '_blank',
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
_label: '3.3 Navigation point',
|
|
439
|
+
_href: '#/back-page',
|
|
440
|
+
_icons: 'codicon codicon-home',
|
|
441
|
+
_children: [
|
|
442
|
+
{
|
|
443
|
+
_active: true,
|
|
444
|
+
_label: '3.3.1 Navigation point (active)',
|
|
445
|
+
_icons: 'codicon codicon-home',
|
|
446
|
+
_href: '#/back-page',
|
|
447
|
+
},
|
|
448
|
+
{ _label: '3.3.2 Navigation point', _icons: 'codicon codicon-home', _href: '#/back-page' },
|
|
449
|
+
],
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
},
|
|
453
|
+
{ _label: '3 Navigation point', _icons: 'codicon codicon-home', _href: '#/back-page' },
|
|
454
|
+
]}
|
|
455
|
+
_hasCompactButton
|
|
456
|
+
/>
|
|
325
457
|
</div>
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
</div>
|
|
341
|
-
</KolAccordion>
|
|
342
|
-
<KolAccordion _label="ButtonLinks" _level={3}>
|
|
343
|
-
<div className="grid gap-2" slot="">
|
|
344
|
-
<KolButtonLink _label="Link text"></KolButtonLink>
|
|
345
|
-
<KolButtonLink _icons="codicon codicon-home" _label="Link text with icon"></KolButtonLink>
|
|
346
|
-
<KolButtonLink _icons="codicon codicon-home" _hideLabel _label="Link text with icon only"></KolButtonLink>
|
|
347
|
-
<p>
|
|
348
|
-
I am a <KolButtonLink _label="Link"></KolButtonLink> in the running text.
|
|
349
|
-
</p>
|
|
350
|
-
<KolButtonLink
|
|
351
|
-
_icons={{
|
|
352
|
-
left: 'codicon codicon-arrow-left',
|
|
353
|
-
right: 'codicon codicon-arrow-right',
|
|
354
|
-
top: 'codicon codicon-arrow-up',
|
|
355
|
-
bottom: 'codicon codicon-arrow-down',
|
|
356
|
-
}}
|
|
357
|
-
_label="Icons"
|
|
358
|
-
></KolButtonLink>
|
|
458
|
+
{/* <KolSkipNav></KolSkipNav> */}
|
|
459
|
+
{/* <KolLinkGroup _label=""></KolLinkGroup> */}
|
|
460
|
+
<div>
|
|
461
|
+
<KolBreadcrumb
|
|
462
|
+
_label="Breadcrumb aus Text-Links"
|
|
463
|
+
_links={[
|
|
464
|
+
{ _label: 'Homepage', _href: '#/back-page' },
|
|
465
|
+
{ _label: 'Bottom of the homepage', _href: '#/back-page' },
|
|
466
|
+
{
|
|
467
|
+
_label: 'Underside of the underside',
|
|
468
|
+
_href: '#/back-page',
|
|
469
|
+
},
|
|
470
|
+
]}
|
|
471
|
+
></KolBreadcrumb>
|
|
359
472
|
</div>
|
|
360
|
-
</KolAccordion>
|
|
361
|
-
</div>
|
|
362
|
-
</KolCard>
|
|
363
|
-
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3" _label="Alert" _level={2}>
|
|
364
|
-
<div slot="" className="grid gap-2 p-2">
|
|
365
|
-
<KolAlert _label="Default message" _type="default">
|
|
366
|
-
This is the text of the alert.
|
|
367
|
-
</KolAlert>
|
|
368
|
-
<KolAlert _type="success">Success message text</KolAlert>
|
|
369
|
-
<KolAlert _type="error" _hasCloser>
|
|
370
|
-
This is a error message text.
|
|
371
|
-
</KolAlert>
|
|
372
|
-
<KolAlert _label="Info card" _type="info" _variant="card">
|
|
373
|
-
This is the text of the alert.
|
|
374
|
-
</KolAlert>
|
|
375
|
-
<KolAlert _label="Warning card" _type="warning" _hasCloser _variant="card">
|
|
376
|
-
This is the text of the alert.
|
|
377
|
-
</KolAlert>
|
|
378
|
-
</div>
|
|
379
|
-
</KolCard>
|
|
380
|
-
<KolCard className="col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2" _label="Nav and Breadcrumb" _level={2}>
|
|
381
|
-
<div slot="" className="grid gap-2 p-2">
|
|
382
|
-
<div>
|
|
383
|
-
<KolNav
|
|
384
|
-
_label="Main navigation"
|
|
385
|
-
_links={[
|
|
386
|
-
{
|
|
387
|
-
_label: 'Homepage',
|
|
388
|
-
_icons: 'codicon codicon-home',
|
|
389
|
-
_href: '#/back-page',
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
_label: '2 Navigation point',
|
|
393
|
-
_icons: 'codicon codicon-home',
|
|
394
|
-
_href: '#/back-page',
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
_active: true,
|
|
398
|
-
_label: '3 Navigation point',
|
|
399
|
-
_href: '#/back-page',
|
|
400
|
-
_icons: 'codicon codicon-home',
|
|
401
|
-
_children: [
|
|
402
|
-
{
|
|
403
|
-
_label: '3.1 Navigation point',
|
|
404
|
-
_icons: 'codicon codicon-home',
|
|
405
|
-
_href: '#/back-page',
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
_label: '3.2 External navigation point',
|
|
409
|
-
_icons: 'codicon codicon-home',
|
|
410
|
-
_href: '#/back-page',
|
|
411
|
-
_target: '_blank',
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
_label: '3.3 Navigation point',
|
|
415
|
-
_href: '#/back-page',
|
|
416
|
-
_icons: 'codicon codicon-home',
|
|
417
|
-
_children: [
|
|
418
|
-
{
|
|
419
|
-
_active: true,
|
|
420
|
-
_label: '3.3.1 Navigation point (active)',
|
|
421
|
-
_icons: 'codicon codicon-home',
|
|
422
|
-
_href: '#/back-page',
|
|
423
|
-
},
|
|
424
|
-
{ _label: '3.3.2 Navigation point', _icons: 'codicon codicon-home', _href: '#/back-page' },
|
|
425
|
-
],
|
|
426
|
-
},
|
|
427
|
-
],
|
|
428
|
-
},
|
|
429
|
-
{ _label: '3 Navigation point', _icons: 'codicon codicon-home', _href: '#/back-page' },
|
|
430
|
-
]}
|
|
431
|
-
_hasCompactButton
|
|
432
|
-
/>
|
|
433
473
|
</div>
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
<
|
|
437
|
-
<
|
|
438
|
-
_label=
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
_msg={{ _type: 'error', _description: 'Test of an error message' }}
|
|
461
|
-
_touched
|
|
462
|
-
_label={`E-mail address`}
|
|
463
|
-
/>
|
|
464
|
-
<KolInputText _hint="I am a hint." _label={`First name`} />
|
|
465
|
-
<KolInputPassword _label={`password`} />
|
|
466
|
-
<KolSelect _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _label={`Stimmung`} />
|
|
467
|
-
<KolInputRange _min={0} _max={50} _value={25} _label={`Slider`} />
|
|
468
|
-
<KolInputRadio className="herr-frau" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="1" _label={`Salutation`} />
|
|
469
|
-
<div className="grid gap-4">
|
|
470
|
-
<KolInputRadio _orientation="horizontal" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="0" _label={`Salutation`} />
|
|
471
|
-
<KolInputCheckbox _label="">
|
|
472
|
-
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
|
|
473
|
-
</KolInputCheckbox>
|
|
474
|
+
</KolCard>
|
|
475
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Input" _level={2}>
|
|
476
|
+
<KolForm slot="">
|
|
477
|
+
<div className="grid gap-4 grid-cols-3 p-2">
|
|
478
|
+
<KolInputColor _label={`Color`} />
|
|
479
|
+
<KolInputFile _label={`Upload file`} />
|
|
480
|
+
<KolInputNumber _label={`Number input`} />
|
|
481
|
+
<KolInputDate _type="date" _label={`Date`} />
|
|
482
|
+
<KolInputEmail
|
|
483
|
+
_icons="{'left': 'codicon codicon-home'}"
|
|
484
|
+
_msg={{ _type: 'error', _description: 'Test of an error message' }}
|
|
485
|
+
_touched
|
|
486
|
+
_label={`E-mail address`}
|
|
487
|
+
/>
|
|
488
|
+
<KolInputText _hint="I am a hint." _label={`First name`} />
|
|
489
|
+
<KolInputPassword _label={`password`} />
|
|
490
|
+
<KolSelect _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _label={`Stimmung`} />
|
|
491
|
+
<KolInputRange _min={0} _max={50} _value={25} _label={`Slider`} />
|
|
492
|
+
<KolInputRadio className="herr-frau" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="1" _label={`Salutation`} />
|
|
493
|
+
<div className="grid gap-4">
|
|
494
|
+
<KolInputRadio _orientation="horizontal" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="0" _label={`Salutation`} />
|
|
495
|
+
<KolInputCheckbox _label="">
|
|
496
|
+
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
|
|
497
|
+
</KolInputCheckbox>
|
|
498
|
+
</div>
|
|
499
|
+
<KolTextarea _rows={4} _label={`Textarea`} />
|
|
474
500
|
</div>
|
|
475
|
-
|
|
501
|
+
</KolForm>
|
|
502
|
+
</KolCard>
|
|
503
|
+
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
|
|
504
|
+
<div slot="" className="grid gap-2 p-2">
|
|
505
|
+
<KolTable _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTable>
|
|
476
506
|
</div>
|
|
477
|
-
</
|
|
478
|
-
</
|
|
479
|
-
<
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
</KolCard>
|
|
507
|
+
</KolCard>
|
|
508
|
+
</div>
|
|
509
|
+
<KolVersion _label="5.0.2-test.2"></KolVersion>
|
|
510
|
+
{/* <KolImage _src="abgrenzung.jpg" _alt="KoliBri Darstellung"></KolImage> */}
|
|
511
|
+
{/* <KolIndentedText></KolIndentedText> */}
|
|
512
|
+
{/* <KolQuote></KolQuote> */}
|
|
484
513
|
</div>
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
{/* <KolIndentedText></KolIndentedText> */}
|
|
488
|
-
{/* <KolQuote></KolQuote> */}
|
|
489
|
-
</div>
|
|
490
|
-
);
|
|
514
|
+
);
|
|
515
|
+
};
|