@public-ui/sample-react 2.1.4 → 2.1.5-rc.2

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 (201) hide show
  1. package/dist/1069.js +1 -1
  2. package/dist/1085.js +1 -1
  3. package/dist/1184.js +1 -1
  4. package/dist/1222.js +1 -1
  5. package/dist/1278.js +1 -1
  6. package/dist/1325.js +1 -1
  7. package/dist/1333.js +1 -1
  8. package/dist/1661.js +1 -1
  9. package/dist/1703.js +1 -1
  10. package/dist/1711.js +1 -1
  11. package/dist/1792.js +1 -1
  12. package/dist/1793.js +1 -1
  13. package/dist/1878.js +1 -1
  14. package/dist/1957.js +1 -1
  15. package/dist/2305.js +1 -1
  16. package/dist/2471.js +1 -1
  17. package/dist/2538.js +1 -1
  18. package/dist/279.js +1 -1
  19. package/dist/2830.js +1 -1
  20. package/dist/3180.js +1 -1
  21. package/dist/3332.js +1 -1
  22. package/dist/3596.js +1 -1
  23. package/dist/3714.js +1 -1
  24. package/dist/3797.js +1 -1
  25. package/dist/3974.js +1 -1
  26. package/dist/3990.js +1 -1
  27. package/dist/4014.js +1 -1
  28. package/dist/4102.js +1 -1
  29. package/dist/4218.js +1 -1
  30. package/dist/4303.js +1 -1
  31. package/dist/4404.js +1 -1
  32. package/dist/453.js +1 -1
  33. package/dist/4941.js +1 -1
  34. package/dist/500.js +1 -1
  35. package/dist/5139.js +1 -1
  36. package/dist/5164.js +1 -1
  37. package/dist/5365.js +1 -1
  38. package/dist/5540.js +1 -1
  39. package/dist/5756.js +1 -1
  40. package/dist/6393.js +1 -1
  41. package/dist/6682.js +1 -1
  42. package/dist/6781.js +1 -1
  43. package/dist/{5168.js → 6787.js} +2 -2
  44. package/dist/7100.js +1 -1
  45. package/dist/7245.js +1 -1
  46. package/dist/7263.js +1 -1
  47. package/dist/7512.js +1 -1
  48. package/dist/7856.js +1 -1
  49. package/dist/{445.js → 788.js} +2 -2
  50. package/dist/8002.js +1 -1
  51. package/dist/8189.js +1 -1
  52. package/dist/8264.js +1 -1
  53. package/dist/8384.js +1 -1
  54. package/dist/8389.js +1 -1
  55. package/dist/8515.js +1 -1
  56. package/dist/8557.js +1 -1
  57. package/dist/8588.js +1 -1
  58. package/dist/8724.js +1 -1
  59. package/dist/8791.js +1 -1
  60. package/dist/882.js +1 -1
  61. package/dist/8823.js +1 -1
  62. package/dist/895.js +1 -1
  63. package/dist/8993.js +1 -1
  64. package/dist/902.js +1 -1
  65. package/dist/9175.js +1 -1
  66. package/dist/9202.js +1 -1
  67. package/dist/9833.js +1 -1
  68. package/dist/9961.js +1 -1
  69. package/dist/index.html +2 -2
  70. package/dist/main.css +1 -1
  71. package/dist/main.js +1 -1
  72. package/package.json +4 -4
  73. package/public/index.html +2 -2
  74. package/src/components/SampleDescription.tsx +10 -6
  75. package/src/components/Sidebar.tsx +4 -4
  76. package/src/components/abbr/basic.tsx +2 -1
  77. package/src/components/accordion/basic.tsx +10 -9
  78. package/src/components/accordion/headlines.tsx +9 -9
  79. package/src/components/accordion/routes.ts +0 -2
  80. package/src/components/alert/basic.tsx +15 -10
  81. package/src/components/alert/card-msg.tsx +13 -6
  82. package/src/components/alert/html.tsx +2 -1
  83. package/src/components/avatar/basic.tsx +2 -1
  84. package/src/components/badge/basic.tsx +7 -6
  85. package/src/components/badge/button.tsx +13 -18
  86. package/src/components/breadcrumb/basic.tsx +2 -1
  87. package/src/components/button/access-key.tsx +7 -2
  88. package/src/components/button/baselined.tsx +2 -1
  89. package/src/components/button/basic.tsx +3 -1
  90. package/src/components/button/icons.tsx +2 -1
  91. package/src/components/button/partials/variants.tsx +0 -1
  92. package/src/components/button/routes.ts +0 -2
  93. package/src/components/button/width.tsx +2 -1
  94. package/src/components/button-group/basic.tsx +7 -2
  95. package/src/components/button-link/basic.tsx +28 -19
  96. package/src/components/button-link/icons.tsx +2 -1
  97. package/src/components/button-link/image.tsx +2 -1
  98. package/src/components/card/basic.tsx +11 -4
  99. package/src/components/card/routes.ts +0 -6
  100. package/src/components/combobox/basic.tsx +5 -4
  101. package/src/components/details/basic.tsx +6 -5
  102. package/src/components/drawer/basic.tsx +4 -4
  103. package/src/components/drawer/controlled.tsx +4 -4
  104. package/src/components/form/basic.tsx +5 -4
  105. package/src/components/form/error-list.tsx +6 -5
  106. package/src/components/heading/badged.tsx +4 -1
  107. package/src/components/heading/basic.tsx +8 -7
  108. package/src/components/heading/paragraph.tsx +2 -4
  109. package/src/components/heading/routes.ts +1 -1
  110. package/src/components/icon/basic.tsx +2 -1
  111. package/src/components/image/basic.tsx +2 -1
  112. package/src/components/indented-text/basic.tsx +4 -1
  113. package/src/components/input-checkbox/basic.tsx +2 -5
  114. package/src/components/input-checkbox/button.tsx +2 -6
  115. package/src/components/input-checkbox/switch.tsx +2 -7
  116. package/src/components/input-color/basic.tsx +2 -4
  117. package/src/components/input-date/basic.tsx +2 -6
  118. package/src/components/input-email/basic.tsx +2 -1
  119. package/src/components/input-file/basic.tsx +2 -4
  120. package/src/components/input-number/basic.tsx +3 -4
  121. package/src/components/input-password/basic.tsx +2 -1
  122. package/src/components/input-password/show-password.tsx +3 -2
  123. package/src/components/input-radio/basic.tsx +2 -1
  124. package/src/components/input-radio/horizontal.tsx +2 -2
  125. package/src/components/input-radio/objectValue.tsx +11 -11
  126. package/src/components/input-radio/routes.ts +0 -2
  127. package/src/components/input-range/basic.tsx +5 -1
  128. package/src/components/input-text/basic.tsx +2 -1
  129. package/src/components/input-text/hide-errors.tsx +6 -2
  130. package/src/components/input-text/routes.ts +0 -2
  131. package/src/components/kolibri/basic.tsx +3 -3
  132. package/src/components/link/basic.tsx +4 -1
  133. package/src/components/link/icons.tsx +2 -1
  134. package/src/components/link/image.tsx +4 -9
  135. package/src/components/link/target.tsx +24 -7
  136. package/src/components/link-button/basic.tsx +2 -1
  137. package/src/components/link-group/basic.tsx +6 -2
  138. package/src/components/link-group/horizontal.tsx +6 -2
  139. package/src/components/modal/basic.tsx +6 -5
  140. package/src/components/nav/aria-current.tsx +4 -4
  141. package/src/components/nav/basic.tsx +3 -2
  142. package/src/components/nav/horizontal.tsx +2 -4
  143. package/src/components/pagination/basic.tsx +8 -6
  144. package/src/components/progress/basic.tsx +2 -1
  145. package/src/components/quote/basic.tsx +2 -1
  146. package/src/components/quote/block.tsx +2 -4
  147. package/src/components/select/basic.tsx +2 -4
  148. package/src/components/skip-nav/basic.tsx +6 -8
  149. package/src/components/spin/basic.tsx +2 -1
  150. package/src/components/spin/custom.tsx +3 -2
  151. package/src/components/spin/cycle.tsx +2 -1
  152. package/src/components/split-button/basic.tsx +3 -2
  153. package/src/components/table/column-alignment.tsx +3 -1
  154. package/src/components/table/complex-headers.tsx +3 -1
  155. package/src/components/table/horizontal-scrollbar.tsx +4 -2
  156. package/src/components/table/pagination-position.tsx +4 -1
  157. package/src/components/table/render-cell.tsx +2 -1
  158. package/src/components/table/routes.ts +0 -2
  159. package/src/components/table/sort-data.tsx +1 -4
  160. package/src/components/table/stateful-with-selection.tsx +3 -1
  161. package/src/components/table/stateless-with-selection.tsx +3 -1
  162. package/src/components/table/stateless.tsx +3 -1
  163. package/src/components/table/with-footer.tsx +3 -1
  164. package/src/components/table/with-pagination.tsx +1 -4
  165. package/src/components/tabs/basic.tsx +14 -15
  166. package/src/components/tabs/icons-only.tsx +1 -1
  167. package/src/components/textarea/adjust-height.tsx +7 -10
  168. package/src/components/textarea/basic.tsx +2 -1
  169. package/src/components/textarea/counter.tsx +5 -8
  170. package/src/components/textarea/partials/cases.tsx +1 -0
  171. package/src/components/textarea/resize.tsx +8 -6
  172. package/src/components/textarea/routes.ts +0 -6
  173. package/src/components/textarea/rows.tsx +4 -1
  174. package/src/components/toast/basic.tsx +2 -1
  175. package/src/components/toolbar/basic.tsx +10 -2
  176. package/src/components/toolbar/disabled.tsx +7 -2
  177. package/src/components/tree/basic.tsx +4 -0
  178. package/src/components/version/basic.tsx +2 -1
  179. package/src/components/version/context.tsx +2 -1
  180. package/src/react.main.tsx +1 -1
  181. package/src/scenarios/appointment-form/AppointmentForm.tsx +54 -43
  182. package/src/scenarios/custom-tooltip-width.tsx +11 -1
  183. package/src/scenarios/disabled-interactive-elements.tsx +1 -0
  184. package/src/scenarios/focus-elements.tsx +10 -2
  185. package/src/scenarios/inputs-get-value.tsx +1 -1
  186. package/src/scenarios/static-form.tsx +1 -1
  187. package/dist/3454.js +0 -2
  188. package/dist/5168.js.LICENSE.txt +0 -3
  189. package/src/components/accordion/list.tsx +0 -45
  190. package/src/components/button/hide-label.tsx +0 -41
  191. package/src/components/card/confirm.tsx +0 -28
  192. package/src/components/card/flex.tsx +0 -44
  193. package/src/components/card/selection.tsx +0 -83
  194. package/src/components/input-radio/select.tsx +0 -25
  195. package/src/components/input-text/blur.tsx +0 -21
  196. package/src/components/table/badge-size.tsx +0 -66
  197. package/src/components/textarea/disabled.tsx +0 -22
  198. package/src/components/textarea/placeholder.tsx +0 -17
  199. package/src/components/textarea/readonly.tsx +0 -22
  200. /package/dist/{3454.js.LICENSE.txt → 6787.js.LICENSE.txt} +0 -0
  201. /package/dist/{445.js.LICENSE.txt → 788.js.LICENSE.txt} +0 -0
@@ -1,83 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolButton, KolCard, KolInputCheckbox } from '@public-ui/react';
4
-
5
- import type { FC } from 'react';
6
- import { SampleDescription } from '../SampleDescription';
7
-
8
- const STYLE = {
9
- display: 'flex',
10
- justifyContent: 'space-between',
11
- alignItems: 'center',
12
- gap: '.5rem',
13
- };
14
-
15
- export const CardSelection: FC = () => (
16
- <>
17
- <SampleDescription>
18
- <p>Hier werden drei Beispielbilder nach klicken auf &apos;Öffnen&apos; angezeigt. Die Checkboxen &apos;Auswählen&apos; können an und abgewählt werden.</p>
19
- </SampleDescription>
20
- <div className="flex flex-wrap gap-2">
21
- <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
22
- <div>
23
- <div>
24
- TeCorp Endplatte
25
- <br />
26
- VZTA
27
- </div>
28
- <div>
29
- <div>
30
- <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
31
- </div>
32
- </div>
33
- <div>
34
- <div style={STYLE}>
35
- <KolInputCheckbox _label={`Auswählen`} />
36
- <KolButton _variant="primary" _label="Öffnen"></KolButton>
37
- </div>
38
- </div>
39
- </div>
40
- </KolCard>
41
- <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
42
- <div>
43
- <div>
44
- TeCorp Endplatte
45
- <br />
46
- VZTA
47
- </div>
48
- <div>
49
- <div>
50
- <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
51
- </div>
52
- </div>
53
- <div>
54
- <div style={STYLE}>
55
- <KolInputCheckbox _label={`Auswählen`} />
56
- <KolButton _variant="primary" _label="Öffnen"></KolButton>
57
- </div>
58
- </div>
59
- </div>
60
- </KolCard>
61
- <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
62
- <div>
63
- <div>
64
- TeCorp Endplatte
65
- <br />
66
- VZTA
67
- </div>
68
- <div>
69
- <div>
70
- <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
71
- </div>
72
- </div>
73
- <div>
74
- <div style={STYLE}>
75
- <KolInputCheckbox _label={`Auswählen`} />
76
- <KolButton _variant="primary" _label="Öffnen"></KolButton>
77
- </div>
78
- </div>
79
- </div>
80
- </KolCard>
81
- </div>
82
- </>
83
- );
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolForm, KolInputRadio } from '@public-ui/react';
4
-
5
- import { ERROR_MSG } from '../../shares/constants';
6
- import { SampleDescription } from '../SampleDescription';
7
-
8
- import type { FC } from 'react';
9
-
10
- const options = [
11
- { label: 'Frau', value: 'Frau' },
12
- { disabled: true, label: 'Herr (disabled)', value: 'Herr' },
13
- { label: 'Firma', value: 'Firma' },
14
- ];
15
-
16
- export const InputRadioSelect: FC = () => (
17
- <>
18
- <SampleDescription>
19
- <p>Hier ist ein Beispiel Radio-Button. Nur eine gleichzeitige Auswahl ist möglich. </p>
20
- </SampleDescription>
21
- <KolForm className="grid gap-4">
22
- <KolInputRadio _msg={{ _type: 'error', _description: ERROR_MSG }} _options={options} _label="Anrede" />
23
- </KolForm>
24
- </>
25
- );
@@ -1,21 +0,0 @@
1
- import { KolForm, KolInputText } from '@public-ui/react';
2
- import React from 'react';
3
- import { SampleDescription } from '../SampleDescription';
4
- import type { FC } from 'react';
5
-
6
- export const InputTextBlur: FC = () => (
7
- <>
8
- <SampleDescription>
9
- <p>Hier ist ein Freitexteingabefeld. </p>
10
- </SampleDescription>
11
- <KolForm>
12
- <KolInputText
13
- _on={{
14
- onBlur: console.log,
15
- }}
16
- _type="search"
17
- _label="Suche"
18
- />
19
- </KolForm>
20
- </>
21
- );
@@ -1,66 +0,0 @@
1
- import type { FC } from 'react';
2
- import React from 'react';
3
-
4
- import { KolBadge, KolTable } from '@public-ui/react';
5
-
6
- import { getRoot } from '../../shares/react-roots';
7
- import type { Data } from './test-data';
8
- import { DATA } from './test-data';
9
- import { SampleDescription } from '../SampleDescription';
10
-
11
- import type { KoliBriTableHeaders } from '@public-ui/components';
12
-
13
- const DATE_FORMATTER = Intl.DateTimeFormat('de-DE', {
14
- day: '2-digit',
15
- month: '2-digit',
16
- year: 'numeric',
17
- });
18
-
19
- const HEADERS: KoliBriTableHeaders = {
20
- horizontal: [
21
- [
22
- { label: 'order', key: 'order', textAlign: 'center', width: '10em' },
23
- {
24
- label: 'date',
25
- key: 'date',
26
- textAlign: 'center',
27
- width: '20em',
28
- render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
29
- sort: (data) =>
30
- data.sort((data0, data1) => {
31
- if ((data0 as Data).date < (data1 as Data).date) return -1;
32
- else if ((data1 as Data).date < (data0 as Data).date) return 1;
33
- else return 0;
34
- }),
35
- },
36
- {
37
- label: 'Aktion',
38
- key: 'order',
39
- render: (el) => {
40
- getRoot(el).render(
41
- <KolBadge
42
- style={{
43
- backgroundColor: 'red',
44
- width: '80%',
45
- }}
46
- _icons="codicon codicon-location"
47
- _label={'Speichern'}
48
- />,
49
- );
50
- },
51
- },
52
- ],
53
- ],
54
- };
55
-
56
- export const TableBadgeSize: FC = () => (
57
- <>
58
- <SampleDescription>
59
- <p>
60
- Hier ist eine Tabelle, die durch anklicken des Knopfes sortiert werden kann. Entweder nach der Reihenfolge, nach dem ältesten Datum oder nach dem
61
- jüngsten Datum.
62
- </p>
63
- </SampleDescription>
64
- <KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block min-w-75em" />
65
- </>
66
- );
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolForm, KolTextarea } from '@public-ui/react';
4
-
5
- import type { FC } from 'react';
6
- import { SampleDescription } from '../SampleDescription';
7
-
8
- export const TextareaDisabled: FC = () => (
9
- <>
10
- <SampleDescription>
11
- <p>Hier ist ein Beispiel für ein deaktiviertes Textfeld.</p>
12
- </SampleDescription>
13
- <KolForm>
14
- <KolTextarea
15
- _disabled
16
- _msg={{ _type: 'error', _description: 'Es ist ein Fehler aufgetreten' }}
17
- _value="Kleiner Text im Eingabefeld ..."
18
- _label="Texteingabe"
19
- />
20
- </KolForm>
21
- </>
22
- );
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolForm, KolTextarea } from '@public-ui/react';
4
-
5
- import type { FC } from 'react';
6
- import { SampleDescription } from '../SampleDescription';
7
-
8
- export const TextareaPlaceholder: FC = () => (
9
- <>
10
- <SampleDescription>
11
- <p>Hier ist ein Beispiel für ein Freitextfeld mit Platzhaltertext.</p>
12
- </SampleDescription>
13
- <KolForm>
14
- <KolTextarea _placeholder="Hier steht ein Platzhaltertext" _label="Texteingabe" />
15
- </KolForm>
16
- </>
17
- );
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolForm, KolTextarea } from '@public-ui/react';
4
-
5
- import type { FC } from 'react';
6
- import { SampleDescription } from '../SampleDescription';
7
-
8
- export const TextareaReadOnly: FC = () => (
9
- <>
10
- <SampleDescription>
11
- <p>Hier ist ein Beispiel für ein Textfeld, in das nicht geschrieben werden kann.</p>
12
- </SampleDescription>
13
- <KolForm>
14
- <KolTextarea
15
- _msg={{ _type: 'error', _description: 'Es ist ein Fehler aufgetreten' }}
16
- _readOnly
17
- _value="Kleiner Text im Eingabefeld ..."
18
- _label="Texteingabe"
19
- />
20
- </KolForm>
21
- </>
22
- );
File without changes