-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/cyrinermd/kolibri into 5…
…744_Bug/appointment-form
- Loading branch information
Showing
35 changed files
with
170 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
packages/samples/react/src/components/table/horizontal-scrollbar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React, { FC, useState } from 'react'; | ||
|
||
import { KolHeading, KolInputCheckbox, KolTable } from '@public-ui/react'; | ||
import { KoliBriTableHeaders } from '@public-ui/components/src'; | ||
import { SampleDescription } from '../SampleDescription'; | ||
|
||
const DATA = [{ small: 'Small Example', large: 'Larger Example' }]; | ||
const HEADERS: KoliBriTableHeaders = { | ||
horizontal: [ | ||
[ | ||
{ label: 'Large Column', key: 'large', textAlign: 'left', width: '400px' }, | ||
{ label: 'Small Column', key: 'small', textAlign: 'left', width: '200px' }, | ||
], | ||
], | ||
}; | ||
|
||
export const TableHorizontalScrollbar: FC = () => { | ||
const [hasWidthRestriction, setHasWidthRestriction] = useState(true); | ||
|
||
return ( | ||
<> | ||
<SampleDescription> | ||
Table examples with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and to scroll it | ||
using arrow keys. | ||
</SampleDescription> | ||
|
||
<KolHeading _label="Table with scrollbar" _level={2} /> | ||
|
||
<KolTable | ||
_label="Table for demonstration purposes with horizontal scrollbar." | ||
_minWidth={hasWidthRestriction ? '600px' : 'auto'} | ||
_headers={HEADERS} | ||
_data={DATA} | ||
className="block" | ||
style={{ width: '400px' }} | ||
/> | ||
|
||
<KolInputCheckbox | ||
_checked={hasWidthRestriction} | ||
_label="Toggle width restriction" | ||
_variant="switch" | ||
_on={{ | ||
onChange: (_event, value) => { | ||
setHasWidthRestriction(Boolean(value)); | ||
}, | ||
}} | ||
></KolInputCheckbox> | ||
|
||
<KolHeading _label="Same table without scrollbar" _level={2} className="block mt-4" /> | ||
<p className="mt-0"> | ||
<i>Scrollbar appears on very small viewport sizes</i> | ||
</p> | ||
|
||
<KolTable _label="Table for demonstration purposes without horizontal scrollbar" _minWidth="600px" _headers={HEADERS} _data={DATA} className="block" /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-8 Bytes
(100%)
...s/bmf/snapshots/theme-bmf/snapshot-for-scenarios-complex-form-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1 Byte
(100%)
...s/bmf/snapshots/theme-bmf/snapshot-for-table-column-alignment-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5 Bytes
(100%)
...mf/snapshots/theme-bmf/snapshot-for-table-pagination-position-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
...s/themes/bmf/snapshots/theme-bmf/snapshot-for-table-sort-data-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
...es/bmf/snapshots/theme-bmf/snapshot-for-table-with-pagination-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+65.6 KB
(310%)
...s/bmf/snapshots/theme-bmf/snapshot-for-textarea-adjust-height-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-248 Bytes
(99%)
...es/themes/bmf/snapshots/theme-bmf/snapshot-for-textarea-basic-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-116 Bytes
(99%)
...themes/bmf/snapshots/theme-bmf/snapshot-for-textarea-disabled-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-161 Bytes
(99%)
...mes/bmf/snapshots/theme-bmf/snapshot-for-textarea-placeholder-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-155 Bytes
(99%)
...themes/bmf/snapshots/theme-bmf/snapshot-for-textarea-readonly-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-480 Bytes
(98%)
...s/themes/bmf/snapshots/theme-bmf/snapshot-for-textarea-resize-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-163 Bytes
(98%)
...es/bmf/snapshots/theme-bmf/snapshot-for-textarea-with-counter-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+811 Bytes
(100%)
...es/default/snapshots/theme-default/snapshot-for-handout-basic-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+210 Bytes
(100%)
...t/snapshots/theme-default/snapshot-for-scenarios-complex-form-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+834 Bytes
(100%)
...t/snapshots/theme-default/snapshot-for-table-column-alignment-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-407 Bytes
(100%)
...napshots/theme-default/snapshot-for-table-pagination-position-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.66 KB
(100%)
.../default/snapshots/theme-default/snapshot-for-table-sort-data-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-226 Bytes
(100%)
...lt/snapshots/theme-default/snapshot-for-table-with-pagination-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+65.6 KB
(320%)
...t/snapshots/theme-default/snapshot-for-textarea-adjust-height-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-235 Bytes
(99%)
...s/default/snapshots/theme-default/snapshot-for-textarea-basic-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-116 Bytes
(99%)
...efault/snapshots/theme-default/snapshot-for-textarea-disabled-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-160 Bytes
(99%)
...ult/snapshots/theme-default/snapshot-for-textarea-placeholder-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-154 Bytes
(99%)
...efault/snapshots/theme-default/snapshot-for-textarea-readonly-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-473 Bytes
(98%)
.../default/snapshots/theme-default/snapshot-for-textarea-resize-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-131 Bytes
(99%)
...lt/snapshots/theme-default/snapshot-for-textarea-with-counter-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters