@public-ui/sample-react 2.1.7-rc.1 → 2.1.7

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 (156) hide show
  1. package/.gitignore +5 -1
  2. package/dist/1487.js +1 -1
  3. package/dist/1636.js +1 -1
  4. package/dist/1792.js +1 -1
  5. package/dist/1795.js +1 -1
  6. package/dist/2017.js +1 -1
  7. package/dist/2322.js +1 -1
  8. package/dist/2538.js +1 -1
  9. package/dist/2567.js +1 -1
  10. package/dist/263.js +1 -1
  11. package/dist/2719.js +1 -1
  12. package/dist/3064.js +1 -1
  13. package/dist/3077.js +1 -1
  14. package/dist/3238.js +1 -1
  15. package/dist/3395.js +1 -1
  16. package/dist/35.js +1 -1
  17. package/dist/3521.js +1 -1
  18. package/dist/356.js +1 -1
  19. package/dist/3714.js +1 -1
  20. package/dist/3735.js +1 -1
  21. package/dist/3766.js +1 -1
  22. package/dist/3994.js +1 -1
  23. package/dist/4025.js +1 -1
  24. package/dist/4118.js +1 -1
  25. package/dist/4182.js +1 -1
  26. package/dist/4188.js +1 -1
  27. package/dist/4262.js +2 -0
  28. package/dist/4332.js +1 -1
  29. package/dist/4402.js +1 -1
  30. package/dist/4818.js +1 -1
  31. package/dist/4892.js +1 -1
  32. package/dist/4933.js +1 -1
  33. package/dist/4943.js +1 -1
  34. package/dist/495.js +1 -1
  35. package/dist/5034.js +1 -1
  36. package/dist/5056.js +1 -1
  37. package/dist/5138.js +1 -1
  38. package/dist/5296.js +1 -1
  39. package/dist/5356.js +1 -1
  40. package/dist/5551.js +1 -1
  41. package/dist/5835.js +1 -1
  42. package/dist/5840.js +1 -1
  43. package/dist/5889.js +1 -1
  44. package/dist/5912.js +1 -1
  45. package/dist/6082.js +1 -1
  46. package/dist/6099.js +1 -1
  47. package/dist/6181.js +1 -1
  48. package/dist/619.js +1 -1
  49. package/dist/6671.js +1 -1
  50. package/dist/6775.js +1 -1
  51. package/dist/7274.js +1 -1
  52. package/dist/7795.js +1 -1
  53. package/dist/7802.js +1 -1
  54. package/dist/7860.js +1 -1
  55. package/dist/8092.js +1 -1
  56. package/dist/8111.js +1 -1
  57. package/dist/8146.js +1 -1
  58. package/dist/8427.js +1 -1
  59. package/dist/8495.js +1 -1
  60. package/dist/8672.js +1 -1
  61. package/dist/8710.js +2 -0
  62. package/dist/8737.js +1 -1
  63. package/dist/8786.js +1 -1
  64. package/dist/8796.js +1 -1
  65. package/dist/8977.js +1 -1
  66. package/dist/9333.js +2 -0
  67. package/dist/9333.js.LICENSE.txt +3 -0
  68. package/dist/9389.js +1 -1
  69. package/dist/9561.js +1 -1
  70. package/dist/9599.js +1 -1
  71. package/dist/9612.js +1 -1
  72. package/dist/9890.js +1 -1
  73. package/dist/main.css +3 -2
  74. package/dist/main.js +1 -1
  75. package/package.json +11 -6
  76. package/src/components/Sidebar.tsx +45 -43
  77. package/src/components/abbr/basic.tsx +13 -13
  78. package/src/components/accordion/basic.tsx +5 -5
  79. package/src/components/accordion/headlines.tsx +12 -12
  80. package/src/components/alert/basic.tsx +6 -6
  81. package/src/components/alert/html.tsx +3 -3
  82. package/src/components/breadcrumb/basic.tsx +11 -11
  83. package/src/components/button/access-key.tsx +5 -5
  84. package/src/components/button/aria-description.tsx +17 -0
  85. package/src/components/button/routes.ts +2 -0
  86. package/src/components/button/width.tsx +1 -1
  87. package/src/components/button-link/aria-description.tsx +17 -0
  88. package/src/components/button-link/basic.tsx +7 -7
  89. package/src/components/button-link/icons.tsx +4 -4
  90. package/src/components/button-link/image.tsx +2 -2
  91. package/src/components/button-link/routes.ts +2 -0
  92. package/src/components/drawer/basic.tsx +2 -2
  93. package/src/components/handout/basic.tsx +69 -69
  94. package/src/components/handout/table-data.ts +538 -538
  95. package/src/components/heading/badged.tsx +6 -6
  96. package/src/components/input-checkbox/partials/cases.tsx +5 -5
  97. package/src/components/input-date/partials/cases.tsx +8 -8
  98. package/src/components/input-date/reset.tsx +21 -0
  99. package/src/components/input-date/routes.ts +2 -0
  100. package/src/components/input-email/partials/cases.tsx +1 -1
  101. package/src/components/input-file/partials/cases.tsx +3 -3
  102. package/src/components/input-number/partials/cases.tsx +8 -8
  103. package/src/components/input-password/show-password.tsx +3 -3
  104. package/src/components/input-radio/partials/cases.tsx +30 -15
  105. package/src/components/input-range/partials/cases.tsx +3 -3
  106. package/src/components/input-text/partials/cases.tsx +11 -11
  107. package/src/components/input-text/routes.ts +2 -0
  108. package/src/components/input-text/text-formatter.tsx +91 -0
  109. package/src/components/link/aria-description.tsx +17 -0
  110. package/src/components/link/basic.tsx +8 -7
  111. package/src/components/link/icons.tsx +5 -5
  112. package/src/components/link/image.tsx +2 -2
  113. package/src/components/link/routes.ts +2 -0
  114. package/src/components/link-button/aria-description.tsx +17 -0
  115. package/src/components/link-button/routes.ts +2 -0
  116. package/src/components/modal/basic.tsx +37 -18
  117. package/src/components/nav/links.ts +4 -4
  118. package/src/components/select/partials/cases.tsx +9 -9
  119. package/src/components/single-select/basic.tsx +23 -0
  120. package/src/components/single-select/partials/cases.tsx +39 -0
  121. package/src/components/single-select/partials/variants.tsx +19 -0
  122. package/src/components/single-select/routes.ts +8 -0
  123. package/src/components/skip-nav/basic.tsx +4 -4
  124. package/src/components/split-button/basic.tsx +2 -2
  125. package/src/components/split-button/routes.ts +2 -0
  126. package/src/components/split-button/with-context.tsx +37 -0
  127. package/src/components/table/interactive-child-elements.tsx +105 -0
  128. package/src/components/table/render-cell.tsx +1 -1
  129. package/src/components/table/routes.ts +6 -0
  130. package/src/components/table/stateful-with-selection.tsx +7 -7
  131. package/src/components/table/stateful-with-single-selection.tsx +84 -0
  132. package/src/components/table/stateless-with-selection.tsx +9 -6
  133. package/src/components/table/stateless-with-single-selection.tsx +68 -0
  134. package/src/components/tabs/basic.tsx +13 -13
  135. package/src/components/tabs/icons-only.tsx +8 -8
  136. package/src/scenarios/appointment-form/AppointmentForm.tsx +13 -13
  137. package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +6 -6
  138. package/src/scenarios/appointment-form/DistrictForm.tsx +8 -8
  139. package/src/scenarios/appointment-form/PersonalInformationForm.tsx +16 -16
  140. package/src/scenarios/appointment-form/Summary.tsx +6 -6
  141. package/src/scenarios/focus-elements.tsx +12 -0
  142. package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +80 -0
  143. package/src/scenarios/horizontal-scrollbar-advanced/databasedata.json +317 -0
  144. package/src/scenarios/horizontal-scrollbar-advanced/index.ts +1 -0
  145. package/src/scenarios/horizontal-scrollbar-advanced/layout.css +31 -0
  146. package/src/scenarios/inputs-get-value.tsx +36 -10
  147. package/src/scenarios/routes.ts +2 -0
  148. package/src/scenarios/static-form.tsx +9 -0
  149. package/src/shares/constants.ts +2 -2
  150. package/src/shares/routes.ts +2 -0
  151. package/src/style.scss +19 -1
  152. package/tsconfig.json +1 -1
  153. package/dist/4266.js +0 -2
  154. package/dist/4817.js +0 -2
  155. /package/dist/{4266.js.LICENSE.txt → 4262.js.LICENSE.txt} +0 -0
  156. /package/dist/{4817.js.LICENSE.txt → 8710.js.LICENSE.txt} +0 -0
@@ -48,18 +48,18 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
48
48
  asTd: true,
49
49
  },
50
50
  {
51
- label: 'Werktage',
51
+ label: 'Workdays',
52
52
  colSpan: 5,
53
53
  },
54
54
  {
55
- label: 'Wochenende',
55
+ label: 'Weekend',
56
56
  colSpan: 2,
57
57
  },
58
58
  ],
59
59
  [
60
60
  {
61
- key: 'montag',
62
- label: 'Montag',
61
+ key: 'monday',
62
+ label: 'Monday',
63
63
  render: (el, cell) => {
64
64
  const renderElement = document.createElement('div');
65
65
  renderElement.setAttribute('role', 'presentation');
@@ -69,10 +69,10 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
69
69
  },
70
70
  sort: (data) => {
71
71
  return data.sort((first, second) => {
72
- if ((first as TableDataType).montag < (second as TableDataType).montag) {
72
+ if ((first as TableDataType).monday < (second as TableDataType).monday) {
73
73
  return -1;
74
74
  }
75
- if ((first as TableDataType).montag > (second as TableDataType).montag) {
75
+ if ((first as TableDataType).monday > (second as TableDataType).monday) {
76
76
  return 1;
77
77
  }
78
78
  return 0;
@@ -82,8 +82,8 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
82
82
  textAlign: 'right',
83
83
  },
84
84
  {
85
- key: 'dienstag',
86
- label: 'Dienstag',
85
+ key: 'tuesday',
86
+ label: 'Tuesday',
87
87
  render: (el, cell) => {
88
88
  const renderElement = document.createElement('div');
89
89
  renderElement.setAttribute('role', 'presentation');
@@ -93,10 +93,10 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
93
93
  },
94
94
  sort: (data) => {
95
95
  return data.sort((first, second) => {
96
- if ((first as TableDataType).dienstag < (second as TableDataType).dienstag) {
96
+ if ((first as TableDataType).tuesday < (second as TableDataType).tuesday) {
97
97
  return -1;
98
98
  }
99
- if ((first as TableDataType).dienstag > (second as TableDataType).dienstag) {
99
+ if ((first as TableDataType).tuesday > (second as TableDataType).tuesday) {
100
100
  return 1;
101
101
  }
102
102
  return 0;
@@ -105,8 +105,8 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
105
105
  sortDirection: 'DESC',
106
106
  },
107
107
  {
108
- key: 'mittwoch',
109
- label: 'Mittwoch',
108
+ key: 'wednesday',
109
+ label: 'Wednesday',
110
110
  render: (el, cell) => {
111
111
  const renderElement = document.createElement('div');
112
112
  renderElement.setAttribute('role', 'presentation');
@@ -116,8 +116,8 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
116
116
  },
117
117
  },
118
118
  {
119
- key: 'donnerstag',
120
- label: 'Donnerstag',
119
+ key: 'thursday',
120
+ label: 'Thursday',
121
121
  render: (el, cell) => {
122
122
  const renderElement = document.createElement('div');
123
123
  renderElement.setAttribute('role', 'presentation');
@@ -127,8 +127,8 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
127
127
  },
128
128
  },
129
129
  {
130
- key: 'freitag',
131
- label: 'Freitag',
130
+ key: 'friday',
131
+ label: 'Friday',
132
132
  render: (el, cell) => {
133
133
  const renderElement = document.createElement('div');
134
134
  renderElement.setAttribute('role', 'presentation');
@@ -138,8 +138,8 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
138
138
  },
139
139
  },
140
140
  {
141
- key: 'samstag',
142
- label: 'Samstag',
141
+ key: 'saturday',
142
+ label: 'Saturday',
143
143
  render: (el, cell) => {
144
144
  const renderElement = document.createElement('div');
145
145
  renderElement.setAttribute('role', 'presentation');
@@ -149,8 +149,8 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
149
149
  },
150
150
  },
151
151
  {
152
- key: 'sonntag',
153
- label: 'Sonntag',
152
+ key: 'sunday',
153
+ label: 'Sunday',
154
154
  render: (el, cell) => {
155
155
  const renderElement = document.createElement('div');
156
156
  renderElement.setAttribute('role', 'presentation');
@@ -164,16 +164,16 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
164
164
  vertical: [
165
165
  [
166
166
  {
167
- label: 'Früh',
167
+ label: 'Early',
168
168
  },
169
169
  {
170
- label: 'Mittag',
170
+ label: 'Noon',
171
171
  },
172
172
  {
173
- label: 'Abend',
173
+ label: 'Evening',
174
174
  },
175
175
  {
176
- label: 'Nacht',
176
+ label: 'Night',
177
177
  },
178
178
  ],
179
179
  ],
@@ -199,13 +199,13 @@ export const HandoutBasic: FC = () => (
199
199
  <div className="grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12">
200
200
  <KolCard className="col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2" _label="Heading" _level={2}>
201
201
  <div slot="" className="grid gap-2 p-2">
202
- <KolHeading _label="Überschrift Stufe 1" _level={1}></KolHeading>
203
- <KolHeading _label="Überschrift Stufe 2" _level={2}></KolHeading>
204
- <KolHeading _label="Überschrift Stufe 3" _level={3}></KolHeading>
205
- <KolHeading _label="Überschrift Stufe 4" _level={4}></KolHeading>
206
- <KolHeading _label="Überschrift Stufe 5" _level={5}></KolHeading>
207
- <KolHeading _label="Überschrift Stufe 6" _level={6}></KolHeading>
208
- <KolHeading _label="Überschrift Stufe 6" _secondaryHeadline="Unterüberricht" _level={6}></KolHeading>
202
+ <KolHeading _label="Heading Level 1" _level={1}></KolHeading>
203
+ <KolHeading _label="Heading Level 2" _level={2}></KolHeading>
204
+ <KolHeading _label="Heading Level 3" _level={3}></KolHeading>
205
+ <KolHeading _label="Heading Level 4" _level={4}></KolHeading>
206
+ <KolHeading _label="Heading Level 5" _level={5}></KolHeading>
207
+ <KolHeading _label="Heading Level 6" _level={6}></KolHeading>
208
+ <KolHeading _label="Heading Level 6" _secondaryHeadline="Lessons" _level={6}></KolHeading>
209
209
  </div>
210
210
  </KolCard>
211
211
  {/* <KolCard className="col-span-3" _label="Accordion" _level={2}>
@@ -233,32 +233,32 @@ export const HandoutBasic: FC = () => (
233
233
  <KolCard className="col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2" _label="Abbreviation and Progress" _level={2}>
234
234
  <div slot="" className="grid gap-2 p-2">
235
235
  <p>
236
- Ich bin eine{' '}
237
- <KolAbbr _label="Ausführliche Beschreibung" _tooltipAlign="top">
236
+ I am a{' '}
237
+ <KolAbbr _label="Detailed description" _tooltipAlign="top">
238
238
  ABB
239
239
  </KolAbbr>{' '}
240
- mit Tooltip oben
240
+ with tooltip at the top
241
241
  </p>
242
242
  <p>
243
- Ich bin eine{' '}
244
- <KolAbbr _label="Ausführliche Beschreibung" _tooltipAlign="right">
243
+ I am a{' '}
244
+ <KolAbbr _label="Detailed description" _tooltipAlign="right">
245
245
  ABB
246
246
  </KolAbbr>{' '}
247
- mit Tooltip rechts
247
+ with tooltip on the right
248
248
  </p>
249
249
  <p>
250
- Ich bin eine{' '}
251
- <KolAbbr _label="Ausführliche Beschreibung" _tooltipAlign="bottom">
250
+ I am a{' '}
251
+ <KolAbbr _label="Detailed description" _tooltipAlign="bottom">
252
252
  ABB
253
253
  </KolAbbr>{' '}
254
- mit Tooltip unten
254
+ with tooltip at the bottom
255
255
  </p>
256
256
  <p>
257
- Ich bin eine{' '}
258
- <KolAbbr _label="Ausführliche Beschreibung" _tooltipAlign="left">
257
+ I am a{' '}
258
+ <KolAbbr _label="Detailed description" _tooltipAlign="left">
259
259
  ABB
260
260
  </KolAbbr>{' '}
261
- mit Tooltip links
261
+ with tooltip on the left
262
262
  </p>
263
263
  <div className="grid grid-cols-2 items-center">
264
264
  <KolProgress _variant="bar" _max={100} _value={33} _label="Progress" />
@@ -330,22 +330,22 @@ export const HandoutBasic: FC = () => (
330
330
  <div slot="" className="grid gap-2 p-2">
331
331
  <KolAccordion _label="Links" _level={3} _open>
332
332
  <div className="grid gap-2" slot="">
333
- <KolLink _href="#/back-page" _label="Linktext"></KolLink>
334
- <KolLink _href="#/back-page" _icons="codicon codicon-home" _label="Linktext mit Icon"></KolLink>
335
- <KolLink _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="Linktext nur mit Icon"></KolLink>
336
- <KolLink _href="/" _label="Besuchter Link"></KolLink>
333
+ <KolLink _href="#/back-page" _label="Link text"></KolLink>
334
+ <KolLink _href="#/back-page" _icons="codicon codicon-home" _label="Link text with icon"></KolLink>
335
+ <KolLink _href="#/back-page" _icons="codicon codicon-home" _hideLabel _label="Link text with icon only"></KolLink>
336
+ <KolLink _href="/" _label="Visited link"></KolLink>
337
337
  <p>
338
- Ich bin ein <KolLink _href="#/back-page" _label="externer Link" _target="w3c"></KolLink> im Fließtext.
338
+ I am a <KolLink _href="#/back-page" _label="externer Link" _target="w3c"></KolLink> in the running text.
339
339
  </p>
340
340
  </div>
341
341
  </KolAccordion>
342
342
  <KolAccordion _label="ButtonLinks" _level={3}>
343
343
  <div className="grid gap-2" slot="">
344
- <KolButtonLink _label="Linktext"></KolButtonLink>
345
- <KolButtonLink _icons="codicon codicon-home" _label="Linktext mit Icon"></KolButtonLink>
346
- <KolButtonLink _icons="codicon codicon-home" _hideLabel _label="Linktext nur mit Icon"></KolButtonLink>
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
347
  <p>
348
- Ich bin ein <KolButtonLink _label="Link"></KolButtonLink> im Fließtext.
348
+ I am a <KolButtonLink _label="Link"></KolButtonLink> in the running text.
349
349
  </p>
350
350
  <KolButtonLink
351
351
  _icons={{
@@ -437,10 +437,10 @@ export const HandoutBasic: FC = () => (
437
437
  <KolBreadcrumb
438
438
  _label="Breadcrumb aus Text-Links"
439
439
  _links={[
440
- { _label: 'Startseite', _href: '#/back-page' },
441
- { _label: 'Unterseite der Startseite', _href: '#/back-page' },
440
+ { _label: 'Homepage', _href: '#/back-page' },
441
+ { _label: 'Bottom of the homepage', _href: '#/back-page' },
442
442
  {
443
- _label: 'Unterseite der Unterseite',
443
+ _label: 'Underside of the underside',
444
444
  _href: '#/back-page',
445
445
  },
446
446
  ]}
@@ -451,25 +451,25 @@ export const HandoutBasic: FC = () => (
451
451
  <KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Input" _level={2}>
452
452
  <KolForm slot="">
453
453
  <div className="grid gap-4 grid-cols-3 p-2">
454
- <KolInputColor _label={`Farbe`} />
455
- <KolInputFile _label={`Datei hochladen`} />
456
- <KolInputNumber _label={`Zahleneingabe`} />
457
- <KolInputDate _type="date" _label={`Datum`} />
454
+ <KolInputColor _label={`Color`} />
455
+ <KolInputFile _label={`Upload file`} />
456
+ <KolInputNumber _label={`Number input`} />
457
+ <KolInputDate _type="date" _label={`Date`} />
458
458
  <KolInputEmail
459
459
  _icons="{'left': 'codicon codicon-home'}"
460
- _msg={{ _type: 'error', _description: 'Test einer Fehlermeldung' }}
460
+ _msg={{ _type: 'error', _description: 'Test of an error message' }}
461
461
  _touched
462
- _label={`E-Mail-Adresse`}
462
+ _label={`E-mail address`}
463
463
  />
464
- <KolInputText _hint="Ich bin ein Hinweis." _label={`Vorname`} />
465
- <KolInputPassword _label={`Passwort`} />
466
- <KolSelect _options="[{'label':'Herr','value':0},{'label':'Frau','value':1}]" _label={`Stimmung`} />
467
- <KolInputRange _min={0} _max={50} _value={25} _label={`Schieberegler`} />
468
- <KolInputRadio className="herr-frau" _options="[{'label':'Herr','value':0},{'label':'Frau','value':1}]" _value="1" _label={`Anrede`} />
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
469
  <div className="grid gap-4">
470
- <KolInputRadio _orientation="horizontal" _options="[{'label':'Herr','value':0},{'label':'Frau','value':1}]" _value="0" _label={`Anrede`} />
470
+ <KolInputRadio _orientation="horizontal" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="0" _label={`Salutation`} />
471
471
  <KolInputCheckbox _label="">
472
- Ich akzeptiere die <KolAbbr _label="Allgemeine Geschäftsbedingungen">AGB</KolAbbr>.
472
+ I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
473
473
  </KolInputCheckbox>
474
474
  </div>
475
475
  <KolTextarea _rows={4} _label={`Textarea`} />
@@ -478,7 +478,7 @@ export const HandoutBasic: FC = () => (
478
478
  </KolCard>
479
479
  <KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
480
480
  <div slot="" className="grid gap-2 p-2">
481
- <KolTable _label="Tabelle" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTable>
481
+ <KolTable _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTable>
482
482
  </div>
483
483
  </KolCard>
484
484
  </div>