superdesk-ui-framework 3.1.9 → 3.1.13
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/app/styles/_helpers.scss +926 -776
- package/app/styles/_master-desk.scss +2 -2
- package/app/styles/_toggle-box.scss +45 -28
- package/app/styles/components/_sd-collapse-box.scss +113 -0
- package/app/styles/components/_subnav.scss +0 -1
- package/app/styles/design-tokens/_design-tokens-general.scss +19 -5
- package/app/styles/design-tokens/_new-colors.scss +11 -1
- package/app/styles/form-elements/_inputs.scss +14 -0
- package/app/styles/grids/_grid-layout.scss +3 -0
- package/app-typescript/components/DatePicker.tsx +6 -0
- package/app-typescript/components/Layouts/LayoutContainer.tsx +7 -1
- package/app-typescript/components/Layouts/PageLayout.tsx +2 -1
- package/app-typescript/components/TimePickerV2.tsx +222 -0
- package/app-typescript/components/ToggleBox/CustomHeaderToggleBox.tsx +61 -0
- package/app-typescript/components/{Togglebox.tsx → ToggleBox/SimpleToggleBox.tsx} +13 -34
- package/app-typescript/components/ToggleBox/index.tsx +43 -0
- package/app-typescript/components/TreeMenu.tsx +12 -7
- package/app-typescript/components/TreeSelect/TreeSelect.tsx +13 -12
- package/app-typescript/components/TreeSelect/TreeSelectItem.tsx +11 -1
- package/app-typescript/index.ts +2 -1
- package/dist/components/Alerts.tsx +1 -1
- package/dist/components/ContentDivider.tsx +1 -1
- package/dist/components/DragHandleDocs.tsx +2 -2
- package/dist/components/Index.tsx +105 -50
- package/dist/components/Panel.tsx +13 -13
- package/dist/components/Tags.tsx +2 -2
- package/dist/components/TimePicker.tsx +43 -1
- package/dist/components/Togglebox.tsx +171 -17
- package/dist/components/TreeMenu.tsx +2 -0
- package/dist/components/utilities/BorderRadiusUtilities.tsx +56 -0
- package/dist/components/utilities/BorderUtilities.tsx +170 -0
- package/dist/components/utilities/DisplayUtilities.tsx +116 -0
- package/dist/components/utilities/FlexAndGridUtilities.tsx +551 -0
- package/dist/components/utilities/ObjectFitUtilities.tsx +53 -0
- package/dist/components/utilities/ObjectPositionUtilities.tsx +68 -0
- package/dist/components/utilities/OpacityUtilities.tsx +64 -0
- package/dist/components/utilities/OverflowUtilities.tsx +93 -0
- package/dist/components/utilities/PositionUtilities.tsx +52 -0
- package/dist/components/utilities/ShadowUtilities.tsx +123 -0
- package/dist/components/utilities/SpacingUtilities.tsx +2 -2
- package/dist/components/utilities/TextUtilities.tsx +83 -4
- package/dist/components.html +2 -4
- package/dist/components_deprecated/modals.html +2 -2
- package/dist/components_deprecated.html +1 -0
- package/dist/design-patterns/Index.tsx +1 -42
- package/dist/design-patterns/ThreePaneLayoutPattern.tsx +1 -1
- package/dist/design-patterns.html +2 -4
- package/dist/design.html +1 -0
- package/dist/examples.bundle.css +15 -7
- package/dist/examples.bundle.js +4283 -2189
- package/dist/main.html +1 -0
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +1 -1
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +214 -2
- package/dist/playgrounds.html +1 -0
- package/dist/superdesk-ui.bundle.css +1397 -1019
- package/dist/superdesk-ui.bundle.js +2039 -1653
- package/dist/vendor.bundle.js +16 -16
- package/examples/css/docs-page.css +15 -7
- package/examples/js/doc.js +13 -1
- package/examples/pages/components/Alerts.tsx +1 -1
- package/examples/pages/components/ContentDivider.tsx +1 -1
- package/examples/pages/components/DragHandleDocs.tsx +2 -2
- package/examples/pages/components/Index.tsx +105 -50
- package/examples/pages/components/Panel.tsx +13 -13
- package/examples/pages/components/Tags.tsx +2 -2
- package/examples/pages/components/TimePicker.tsx +43 -1
- package/examples/pages/components/Togglebox.tsx +171 -17
- package/examples/pages/components/TreeMenu.tsx +2 -0
- package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +56 -0
- package/examples/pages/components/utilities/BorderUtilities.tsx +170 -0
- package/examples/pages/components/utilities/DisplayUtilities.tsx +116 -0
- package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +551 -0
- package/examples/pages/components/utilities/ObjectFitUtilities.tsx +53 -0
- package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +68 -0
- package/examples/pages/components/utilities/OpacityUtilities.tsx +64 -0
- package/examples/pages/components/utilities/OverflowUtilities.tsx +93 -0
- package/examples/pages/components/utilities/PositionUtilities.tsx +52 -0
- package/examples/pages/components/utilities/ShadowUtilities.tsx +123 -0
- package/examples/pages/components/utilities/SpacingUtilities.tsx +2 -2
- package/examples/pages/components/utilities/TextUtilities.tsx +83 -4
- package/examples/pages/components.html +2 -4
- package/examples/pages/components_deprecated/modals.html +2 -2
- package/examples/pages/components_deprecated.html +1 -0
- package/examples/pages/design-patterns/Index.tsx +1 -42
- package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +1 -1
- package/examples/pages/design-patterns.html +2 -4
- package/examples/pages/design.html +1 -0
- package/examples/pages/main.html +1 -0
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +1 -1
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +214 -2
- package/examples/pages/playgrounds.html +1 -0
- package/package.json +1 -1
- package/react/components/DatePicker.d.ts +3 -0
- package/react/components/DatePicker.js +2 -2
- package/react/components/Layouts/LayoutContainer.d.ts +1 -0
- package/react/components/Layouts/LayoutContainer.js +8 -1
- package/react/components/Layouts/PageLayout.d.ts +1 -0
- package/react/components/Layouts/PageLayout.js +1 -1
- package/react/components/TimePickerV2.d.ts +28 -0
- package/react/components/TimePickerV2.js +189 -0
- package/react/components/ToggleBox/CustomHeaderToggleBox.d.ts +12 -0
- package/react/components/ToggleBox/CustomHeaderToggleBox.js +81 -0
- package/react/components/ToggleBox/SimpleToggleBox.d.ts +18 -0
- package/react/components/{Togglebox.js → ToggleBox/SimpleToggleBox.js} +15 -13
- package/react/components/ToggleBox/index.d.ts +27 -0
- package/react/components/ToggleBox/index.js +71 -0
- package/react/components/TreeMenu.js +9 -7
- package/react/components/TreeSelect/TreeSelect.js +9 -11
- package/react/components/TreeSelect/TreeSelectItem.d.ts +1 -0
- package/react/components/TreeSelect/TreeSelectItem.js +7 -4
- package/react/index.d.ts +2 -1
- package/react/index.js +7 -5
- package/react/components/Togglebox.d.ts +0 -28
@@ -1,48 +1,202 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import * as Markup from "../../js/react";
|
3
|
-
import {
|
3
|
+
import { PropsList, Prop, Badge, Icon, Label, AvatarGroup, ContentDivider, FormLabel, Text } from "../../../app-typescript";
|
4
|
+
import {ToggleBox} from './../../../app-typescript/components/ToggleBox/index';
|
5
|
+
import {IAvatarInGroup} from '../../../app-typescript/components/avatar/avatar-group';
|
6
|
+
|
7
|
+
const avatars: Array<IAvatarInGroup> = [
|
8
|
+
{
|
9
|
+
imageUrl: null,
|
10
|
+
initials: "VS",
|
11
|
+
displayName: 'Vladimir Stefanovic',
|
12
|
+
icon:{name: 'text', color: 'var(--sd-colour-highlight)'},
|
13
|
+
},
|
14
|
+
{
|
15
|
+
imageUrl: null,
|
16
|
+
initials: "JL",
|
17
|
+
displayName: 'Jeffrey Lebowski',
|
18
|
+
icon:{name: 'photo', color: 'var(--sd-colour-highlight)'}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
imageUrl: null,
|
22
|
+
initials: "WS",
|
23
|
+
displayName: 'Walter Sobchak',
|
24
|
+
icon:{name: 'video', color: 'var(--sd-colour-highlight)'}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
imageUrl: null,
|
28
|
+
initials: "ML",
|
29
|
+
displayName: 'Maude Lebowski',
|
30
|
+
icon:{name: 'file', color: 'var(--sd-colour-highlight)'}
|
31
|
+
},
|
32
|
+
];
|
4
33
|
|
5
|
-
const ToggleboxDocs = () => {
|
6
|
-
const toggleRef = React.useRef();
|
7
34
|
|
35
|
+
const ToggleboxDocs = () => {
|
8
36
|
return (
|
9
37
|
<section className="docs-page__container">
|
10
38
|
<h2 className="docs-page__h2">Togglebox</h2>
|
11
|
-
<p className="docs-page__paragraph">Simple toggle box element. It provides toggle() function that can be used with React's ref functionality and control close/open state from outside. Arrow left, Arrow right and Enter are supported keyboard events.</p>
|
12
39
|
<Markup.ReactMarkupCodePreview>{`
|
13
|
-
<ToggleBox title="togglebox title">togglebox content</ToggleBox>
|
40
|
+
<ToggleBox variant="simple" title="togglebox title">togglebox content</ToggleBox>
|
14
41
|
`}
|
15
42
|
</Markup.ReactMarkupCodePreview>
|
43
|
+
<p className="docs-page__paragraph">Simple ToggleBox:</p>
|
44
|
+
<Markup.ReactMarkup>
|
45
|
+
<Markup.ReactMarkupPreview>
|
46
|
+
<div style={{ marginTop: "2em" }}>
|
47
|
+
<ToggleBox variant="simple" title="Simple togglebox">Togglebox content</ToggleBox>
|
48
|
+
<ToggleBox variant='simple' title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
|
49
|
+
<ToggleBox variant='simple' title="Togglebox - circled chevron" circledChevron={true}>Togglebox content</ToggleBox>
|
50
|
+
<ToggleBox variant='simple' title="Large title" largeTitle={true} circledChevron={true}>
|
51
|
+
<div className="px-4 text-sm line-height-lg">
|
52
|
+
<p className="mb-2">Maecenas sed diam eget risus varius blandit sit amet non magna. Nulla vitae elit libero, a pharetra augue.
|
53
|
+
Donec id elit non mi porta gravida at eget metus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
|
54
|
+
Curabitur blandit tempus porttitor.</p>
|
55
|
+
|
56
|
+
<p className="mb-2">Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Nullam quis risus eget urna mollis ornare vel eu leo.
|
57
|
+
Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit. Integer posuere
|
58
|
+
erat a ante venenatis dapibus posuere velit aliquet.</p>
|
59
|
+
|
60
|
+
<p className="">Aenean lacinia bibendum nulla sed consectetur. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Vestibulum id
|
61
|
+
ligula porta felis euismod semper. Cras justo odio, dapibus ac facilisis in, egestas eget quam.</p>
|
62
|
+
</div>
|
63
|
+
</ToggleBox>
|
64
|
+
</div>
|
65
|
+
</Markup.ReactMarkupPreview>
|
66
|
+
<Markup.ReactMarkupCode>{`
|
67
|
+
<ToggleBox variant='simple' title="Simple togglebox">Togglebox content</ToggleBox>
|
68
|
+
<ToggleBox variant='simple' title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
|
69
|
+
<ToggleBox variant='simple' title="Togglebox - circled chevron" className="toggle-box--circle">Togglebox content</ToggleBox>
|
70
|
+
`}</Markup.ReactMarkupCode>
|
71
|
+
</Markup.ReactMarkup>
|
72
|
+
|
73
|
+
<p className="docs-page__paragraph">Custom header ToggleBox:</p>
|
16
74
|
<Markup.ReactMarkup>
|
17
75
|
<Markup.ReactMarkupPreview>
|
18
|
-
<Button text="Toggle programatically" onClick={() => { toggleRef.current.toggle() }} />
|
19
76
|
<div style={{ marginTop: "2em" }}>
|
20
|
-
<ToggleBox
|
21
|
-
|
22
|
-
|
23
|
-
|
77
|
+
<ToggleBox
|
78
|
+
variant='custom-header'
|
79
|
+
header={
|
80
|
+
<div role="listitem" className="sd-list-item sd-list-item--no-hover">
|
81
|
+
<div className="sd-list-item__border sd-list-item__border--locked"></div>
|
82
|
+
<div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
|
83
|
+
<Icon type='primary' name='calendar' scale='1.5x' ariaHidden={true} />
|
84
|
+
</div>
|
85
|
+
<div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
|
86
|
+
<div className="sd-list-item__row">
|
87
|
+
<span className="sd-list-item__slugline">Planning Slugline</span>
|
88
|
+
</div>
|
89
|
+
<div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
|
90
|
+
<Label text='draft' style='translucent'/>
|
91
|
+
<span className="sd-margin-s--auto">
|
92
|
+
<AvatarGroup
|
93
|
+
size="x-small"
|
94
|
+
items={avatars}
|
95
|
+
/>
|
96
|
+
</span>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
}
|
101
|
+
toggleButtonLabel={'show more'}
|
102
|
+
onToggle={(isOpen) => false}
|
103
|
+
>
|
104
|
+
<div>
|
105
|
+
<FormLabel text='Name'/>
|
106
|
+
<Text size='small' weight='medium'>Australian Open 2024</Text>
|
107
|
+
</div>
|
108
|
+
<ContentDivider type="dashed" margin='x-small' />
|
109
|
+
<div>
|
110
|
+
<FormLabel text='Current Date'/>
|
111
|
+
<Text size='small' weight='medium'>05.02.2024 @ 10:00</Text>
|
112
|
+
</div>
|
113
|
+
<ContentDivider type="dashed" margin='x-small' />
|
114
|
+
<div>
|
115
|
+
<FormLabel text='Current Repeat Summary'/>
|
116
|
+
<Text size='small' weight='medium'>Every 1 day(s) until CET 28 Feb 2024</Text>
|
117
|
+
</div>
|
118
|
+
<ContentDivider type="dashed" margin='x-small' />
|
119
|
+
<div>
|
120
|
+
<FormLabel text='No. of events'/>
|
121
|
+
<Text size='small' weight='medium'>1</Text>
|
122
|
+
</div>
|
123
|
+
</ToggleBox>
|
24
124
|
</div>
|
25
125
|
</Markup.ReactMarkupPreview>
|
26
126
|
<Markup.ReactMarkupCode>{`
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
127
|
+
<ToggleBox
|
128
|
+
variant='custom-header'
|
129
|
+
header={
|
130
|
+
<div role="listitem" className="sd-list-item sd-list-item--no-hover">
|
131
|
+
<div className="sd-list-item__border sd-list-item__border--locked"></div>
|
132
|
+
<div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
|
133
|
+
<Icon type='primary' name='calendar' scale='1.5x' ariaHidden={true} />
|
134
|
+
</div>
|
135
|
+
<div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
|
136
|
+
<div className="sd-list-item__row">
|
137
|
+
<span className="sd-list-item__slugline">Planning Slugline</span>
|
138
|
+
</div>
|
139
|
+
<div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
|
140
|
+
<Label text='draft' style='translucent'/>
|
141
|
+
<span className="sd-margin-s--auto">
|
142
|
+
<AvatarGroup
|
143
|
+
size="x-small"
|
144
|
+
items={avatars}
|
145
|
+
/>
|
146
|
+
</span>
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
}
|
151
|
+
onToggle={() => false}
|
152
|
+
>
|
153
|
+
<div>
|
154
|
+
<FormLabel text='Name'/>
|
155
|
+
<Text size='small' weight='medium'>Australian Open 2024</Text>
|
156
|
+
</div>
|
157
|
+
<ContentDivider type="dashed" margin='x-small' />
|
158
|
+
<div>
|
159
|
+
<FormLabel text='Current Date'/>
|
160
|
+
<Text size='small' weight='medium'>05.02.2024 @ 10:00</Text>
|
161
|
+
</div>
|
162
|
+
<ContentDivider type="dashed" margin='x-small' />
|
163
|
+
<div>
|
164
|
+
<FormLabel text='Current Repeat Summary'/>
|
165
|
+
<Text size='small' weight='medium'>Every 1 day(s) until CET 28 Feb 2024</Text>
|
166
|
+
</div>
|
167
|
+
<ContentDivider type="dashed" margin='x-small' />
|
168
|
+
<div>
|
169
|
+
<FormLabel text='No. of events'/>
|
170
|
+
<Text size='small' weight='medium'>1</Text>
|
171
|
+
</div>
|
172
|
+
</ToggleBox>
|
33
173
|
`}</Markup.ReactMarkupCode>
|
34
174
|
</Markup.ReactMarkup>
|
35
175
|
|
36
176
|
<h3 className="docs-page__h3">Props</h3>
|
177
|
+
<PropsList>
|
178
|
+
<Prop name='variant' isRequired={true} type='simple | custom header' default='null' description='Type of component.' />
|
179
|
+
</PropsList>
|
180
|
+
|
181
|
+
<h3 className="docs-page__h3">Props: variant: 'simple'</h3>
|
37
182
|
<PropsList>
|
38
183
|
<Prop name='title' isRequired={true} type='string' default='null' description='Togglebox title' />
|
39
184
|
<Prop name='badge' isRequired={false} type='JSX.Element' default='null' description='Badge' />
|
40
|
-
<Prop name='hideUsingCSS' isRequired={false} type='boolean' default='false' description='Usefull when working with forms. Content of togglebox will be hidden but remain rendered.' />
|
41
185
|
<Prop name='initiallyOpen' isRequired={false} type='boolean' default='false' description='Opens togglebox on initial render' />
|
42
186
|
<Prop name='className' isRequired={false} type='string' default='null' description='Style class of the component' />
|
43
187
|
<Prop name='margin' isRequired={false} type='none | small | normal | large' default='normal' description='Defines the bottom margin of the toggle box.' />
|
44
188
|
<Prop name='onOpen' isRequired={false} type='function' default='null' description='Callback on open event' />
|
45
189
|
<Prop name='onClose' isRequired={false} type='function' default='null' description='Callback on close event' />
|
190
|
+
<Prop name='circledChevron' isRequired={false} type='boolean' default='false' description='Adds a light, circle-shaped background around the chevron.' />
|
191
|
+
<Prop name='largeTitle' isRequired={false} type='boolean' default='false' description='This option will increase the size of the title. Always use a circled chevron (circledChevron) in combination with this option.' />
|
192
|
+
</PropsList>
|
193
|
+
|
194
|
+
<h3 className="docs-page__h3">Props: variant: 'custom-header'</h3>
|
195
|
+
<PropsList>
|
196
|
+
<Prop name='header' isRequired={true} type='JSX.Component' default='null' description='Always visible part of component.' />
|
197
|
+
<Prop name='children' isRequired={false} type='JSX.Component' default='null' description='Appear on clicking the button.' />
|
198
|
+
<Prop name='initiallyOpen' isRequired={false} type='boolean' default='false' description='Opens togglebox on initial render.' />
|
199
|
+
<Prop name='onClose' isRequired={false} type='function' default='null' description='Callback on toggle.' />
|
46
200
|
</PropsList>
|
47
201
|
</section>
|
48
202
|
)
|
@@ -176,6 +176,7 @@ export class TreeMenuDocs extends React.Component<{}, {}> {
|
|
176
176
|
<Markup.ReactMarkupPreview>
|
177
177
|
<div className='docs-page__content-row docs-page__content-row--no-margin'>
|
178
178
|
<TreeMenu
|
179
|
+
searchPlaceholder='Search...'
|
179
180
|
getOptions={() => options}
|
180
181
|
getId={(item) => item.name}
|
181
182
|
getLabel={(item) => item.name}
|
@@ -208,6 +209,7 @@ export class TreeMenuDocs extends React.Component<{}, {}> {
|
|
208
209
|
<Markup.ReactMarkupPreview>
|
209
210
|
<div className='docs-page__content-row docs-page__content-row--no-margin'>
|
210
211
|
<TreeMenu
|
212
|
+
searchPlaceholder='Search...'
|
211
213
|
getOptions={() => options2}
|
212
214
|
getId={(item) => item.name}
|
213
215
|
getLabel={(item) => item.name}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import * as Markup from '../../../js/react';
|
3
|
+
|
4
|
+
class BorderRadiusUtilitiesDoc extends React.Component {
|
5
|
+
render() {
|
6
|
+
return (
|
7
|
+
<section className="docs-page__container">
|
8
|
+
<h2 className="docs-page__h2">Border Radius</h2>
|
9
|
+
<p className="docs-page__paragraph">
|
10
|
+
Utility classes for controlling the border radius of an element.
|
11
|
+
</p>
|
12
|
+
<div className='docs-page__container-block--position'>
|
13
|
+
<div className="utilities-table__container">
|
14
|
+
<table className="table utilities-table">
|
15
|
+
<thead>
|
16
|
+
<tr>
|
17
|
+
<th>Class</th>
|
18
|
+
<th>Properties</th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
<tr>
|
23
|
+
<td>radius-xs</td>
|
24
|
+
<td>{'border-radius: var(--b-radius--x-small);'} <span className="doc-text--highlight">/* 2px */</span></td>
|
25
|
+
</tr>
|
26
|
+
<tr>
|
27
|
+
<td>radius-sm</td>
|
28
|
+
<td>{'border-radius: var(--b-radius--small);'} <span className="doc-text--highlight">/* 3px */</span></td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td>radius-md</td>
|
32
|
+
<td>{'border-radius: var(--b-radius--medium);'} <span className="doc-text--highlight">/* 4px */</span></td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td>radius-lg</td>
|
36
|
+
<td>{'border-radius: var(--b-radius--large);'} <span className="doc-text--highlight">/* 6px */</span></td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td>radius-xl</td>
|
40
|
+
<td>{'border-radius: var(--b-radius--x-large);'} <span className="doc-text--highlight">/* 8px */</span></td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td>radius-full</td>
|
44
|
+
<td>{'border-radius: var(--b-radius--full);'} <span className="doc-text--highlight">/* 9999px */</span></td>
|
45
|
+
</tr>
|
46
|
+
</tbody>
|
47
|
+
</table>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</section>
|
52
|
+
)
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
export { BorderRadiusUtilitiesDoc };
|
@@ -0,0 +1,170 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import * as Markup from '../../../js/react';
|
3
|
+
|
4
|
+
class BorderUtilitiesDoc extends React.Component {
|
5
|
+
render() {
|
6
|
+
return (
|
7
|
+
<section className="docs-page__container">
|
8
|
+
<h2 className="docs-page__h2">Border</h2>
|
9
|
+
<p className="docs-page__paragraph">
|
10
|
+
Utility classes for controlling the borders of an element..
|
11
|
+
</p>
|
12
|
+
<div className='docs-page__container-block--border'>
|
13
|
+
<h3 className="docs-page__h3">Basic Border with neutral color</h3>
|
14
|
+
<p className='docs-page__paragraph'>
|
15
|
+
Utilities classes for adding a neutral 1px solid border to an element.
|
16
|
+
</p>
|
17
|
+
<div className="utilities-table__container">
|
18
|
+
<table className="table utilities-table">
|
19
|
+
<thead>
|
20
|
+
<tr>
|
21
|
+
<th>Class</th>
|
22
|
+
<th>Properties</th>
|
23
|
+
<th></th>
|
24
|
+
</tr>
|
25
|
+
</thead>
|
26
|
+
<tbody>
|
27
|
+
<tr>
|
28
|
+
<td>sd-border--x-light</td>
|
29
|
+
<td>{'border: 1px solid var(--sd-colour-line--x-light);'}</td>
|
30
|
+
<td><div className='border-example-box sd-border--x-light'></div></td>
|
31
|
+
</tr>
|
32
|
+
<tr>
|
33
|
+
<td>sd-border--light</td>
|
34
|
+
<td>{'border: 1px solid var(--sd-colour-line--light);'}</td>
|
35
|
+
<td><div className='border-example-box sd-border--light'></div></td>
|
36
|
+
</tr>
|
37
|
+
<tr>
|
38
|
+
<td>sd-border--medium</td>
|
39
|
+
<td>{'border: 1px solid var(--sd-colour-line--medium);'}</td>
|
40
|
+
<td><div className='border-example-box sd-border--medium'></div></td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td>sd-border--strong</td>
|
44
|
+
<td>{'border: 1px solid var(--sd-colour-line--strong);'}</td>
|
45
|
+
<td><div className='border-example-box sd-border--strong'></div></td>
|
46
|
+
</tr>
|
47
|
+
</tbody>
|
48
|
+
</table>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<div className='docs-page__container-block--border-width'>
|
53
|
+
<h3 className="docs-page__h3">Border Width</h3>
|
54
|
+
<p className='docs-page__paragraph'>
|
55
|
+
Utilities classes for overriding the border width of an element. Options are limited to common use cases.
|
56
|
+
</p>
|
57
|
+
<div className="utilities-table__container utilities-table__container--no-height">
|
58
|
+
<table className="table utilities-table">
|
59
|
+
<thead>
|
60
|
+
<tr>
|
61
|
+
<th>Class</th>
|
62
|
+
<th>Properties</th>
|
63
|
+
</tr>
|
64
|
+
</thead>
|
65
|
+
<tbody>
|
66
|
+
<tr>
|
67
|
+
<td>border-0</td>
|
68
|
+
<td>{'border-width: 0px;'}</td>
|
69
|
+
</tr>
|
70
|
+
<tr>
|
71
|
+
<td>border-1</td>
|
72
|
+
<td>{'border-width: 1px;'}</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td>border-2</td>
|
76
|
+
<td>{'border-width: 2px;'}</td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td>border-3</td>
|
80
|
+
<td>{'border-width: 2px;'}</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td>border-4</td>
|
84
|
+
<td>{'border-width: 4px;'}</td>
|
85
|
+
</tr>
|
86
|
+
<tr>
|
87
|
+
<td>border-x-0</td>
|
88
|
+
<td>
|
89
|
+
{'border-inline-start-width: 0px;'}<br />
|
90
|
+
{'border-inline-end-width: 0px;'}
|
91
|
+
|
92
|
+
</td>
|
93
|
+
</tr>
|
94
|
+
<tr>
|
95
|
+
<td>border-y-0</td>
|
96
|
+
<td>
|
97
|
+
{'border-block-start-width: 0px;'}<br />
|
98
|
+
{'border-block-end-width: 0px;'}
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
<tr>
|
102
|
+
<td>border-s-0</td>
|
103
|
+
<td>
|
104
|
+
{'border-inline-start-width: 0px;'}
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
<tr>
|
108
|
+
<td>border-e-0</td>
|
109
|
+
<td>
|
110
|
+
{'border-inline-end-width: 0px;'}
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
<tr>
|
114
|
+
<td>border-t-0</td>
|
115
|
+
<td>
|
116
|
+
{'border-top: 0px;'}
|
117
|
+
</td>
|
118
|
+
</tr>
|
119
|
+
<tr>
|
120
|
+
<td>border-b-0</td>
|
121
|
+
<td>
|
122
|
+
{'border-bottom: 0px;'}
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
</tbody>
|
126
|
+
</table>
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div className='docs-page__container-block--border-style'>
|
131
|
+
<h3 className="docs-page__h3">Border Style</h3>
|
132
|
+
<p className='docs-page__paragraph'>
|
133
|
+
Utilities classes for overriding the border style of an element.
|
134
|
+
</p>
|
135
|
+
<div className="utilities-table__container utilities-table__container--no-height">
|
136
|
+
<table className="table utilities-table">
|
137
|
+
<thead>
|
138
|
+
<tr>
|
139
|
+
<th>Class</th>
|
140
|
+
<th>Properties</th>
|
141
|
+
</tr>
|
142
|
+
</thead>
|
143
|
+
<tbody>
|
144
|
+
<tr>
|
145
|
+
<td>border-solid</td>
|
146
|
+
<td>{'border-style: solid;'}</td>
|
147
|
+
</tr>
|
148
|
+
<tr>
|
149
|
+
<td>border-dotted</td>
|
150
|
+
<td>{'border-style: dotted;'}</td>
|
151
|
+
</tr>
|
152
|
+
<tr>
|
153
|
+
<td>border-dashed</td>
|
154
|
+
<td>{'border-style: dashed;'}</td>
|
155
|
+
</tr>
|
156
|
+
<tr>
|
157
|
+
<td>border-double</td>
|
158
|
+
<td>{'border-style: double;'}</td>
|
159
|
+
</tr>
|
160
|
+
</tbody>
|
161
|
+
</table>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
</section>
|
166
|
+
)
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
export { BorderUtilitiesDoc };
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import * as Markup from '../../../js/react';
|
3
|
+
|
4
|
+
class DisplayUtilitiesDoc extends React.Component {
|
5
|
+
render() {
|
6
|
+
return (
|
7
|
+
<section className="docs-page__container">
|
8
|
+
<h2 className="docs-page__h2">Display</h2>
|
9
|
+
<p className="docs-page__paragraph">
|
10
|
+
Utility classes for controlling the display box type of an element.
|
11
|
+
</p>
|
12
|
+
<div className='docs-page__container-block--display'>
|
13
|
+
<div className="utilities-table__container utilities-table__container--no-height">
|
14
|
+
<table className="table utilities-table">
|
15
|
+
<thead>
|
16
|
+
<tr>
|
17
|
+
<th>Class</th>
|
18
|
+
<th>Properties</th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
<tr>
|
23
|
+
<td>d-block</td>
|
24
|
+
<td>{'display: auto !important;'}</td>
|
25
|
+
</tr>
|
26
|
+
<tr>
|
27
|
+
<td>d-inline-block</td>
|
28
|
+
<td>{'display: inline-block !important;'}</td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td>d-inline</td>
|
32
|
+
<td>{'display: inline !important;'}</td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td>d-flex</td>
|
36
|
+
<td>{'display: flex !important;'}</td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td>d-inline-flex</td>
|
40
|
+
<td>{'display: inline-flex !important;'}</td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td>d-grid</td>
|
44
|
+
<td>{'display: grid !important;'}</td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td>d-inline-grid</td>
|
48
|
+
<td>{'display: inline-grid !important;'}</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td>d-contents</td>
|
52
|
+
<td>{'display: contents !important;'}</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<td>d-none</td>
|
56
|
+
<td>{'display: none !important;'}</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<td>d-flow-root</td>
|
60
|
+
<td>{'display: flow-root !important;'}</td>
|
61
|
+
</tr>
|
62
|
+
<tr>
|
63
|
+
<td>d-list-item</td>
|
64
|
+
<td>{'display: list-item !important;'}</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td>d-table</td>
|
68
|
+
<td>{'display: table;'}</td>
|
69
|
+
</tr>
|
70
|
+
<tr>
|
71
|
+
<td>d-inline-table</td>
|
72
|
+
<td>{'display: inline-table;'}</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td>d-table-caption</td>
|
76
|
+
<td>{'display: table-caption;'}</td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td>d-table-cell</td>
|
80
|
+
<td>{'display: table-cell;'}</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td>d-table-column</td>
|
84
|
+
<td>{'display: table-column;'}</td>
|
85
|
+
</tr>
|
86
|
+
<tr>
|
87
|
+
<td>d-table-column-group</td>
|
88
|
+
<td>{'display: table-column-group;'}</td>
|
89
|
+
</tr>
|
90
|
+
<tr>
|
91
|
+
<td>d-table-footer-group</td>
|
92
|
+
<td>{'display: table-footer-group;'}</td>
|
93
|
+
</tr>
|
94
|
+
<tr>
|
95
|
+
<td>d-table-header-group</td>
|
96
|
+
<td>{'display: table-header-group;'}</td>
|
97
|
+
</tr>
|
98
|
+
<tr>
|
99
|
+
<td>d-table-row</td>
|
100
|
+
<td>{'display: table-row;'}</td>
|
101
|
+
</tr>
|
102
|
+
<tr>
|
103
|
+
<td>d-table-row-group</td>
|
104
|
+
<td>{'display: table-row-group;'}</td>
|
105
|
+
</tr>
|
106
|
+
</tbody>
|
107
|
+
</table>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
</section>
|
112
|
+
)
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
export { DisplayUtilitiesDoc };
|