superdesk-ui-framework 3.1.9 → 3.1.12

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 (87) hide show
  1. package/app/styles/_helpers.scss +913 -780
  2. package/app/styles/_master-desk.scss +2 -2
  3. package/app/styles/components/_sd-collapse-box.scss +113 -0
  4. package/app/styles/components/_subnav.scss +0 -1
  5. package/app/styles/design-tokens/_design-tokens-general.scss +19 -5
  6. package/app/styles/design-tokens/_new-colors.scss +11 -1
  7. package/app-typescript/components/ToggleBox/CustomHeaderToggleBox.tsx +56 -0
  8. package/app-typescript/components/{Togglebox.tsx → ToggleBox/SimpleToggleBox.tsx} +3 -14
  9. package/app-typescript/components/ToggleBox/index.tsx +41 -0
  10. package/app-typescript/components/TreeMenu.tsx +4 -2
  11. package/app-typescript/index.ts +1 -1
  12. package/dist/components/Alerts.tsx +1 -1
  13. package/dist/components/ContentDivider.tsx +1 -1
  14. package/dist/components/DragHandleDocs.tsx +2 -2
  15. package/dist/components/Index.tsx +105 -50
  16. package/dist/components/Panel.tsx +13 -13
  17. package/dist/components/Tags.tsx +2 -2
  18. package/dist/components/Togglebox.tsx +154 -15
  19. package/dist/components/utilities/BorderRadiusUtilities.tsx +56 -0
  20. package/dist/components/utilities/BorderUtilities.tsx +170 -0
  21. package/dist/components/utilities/DisplayUtilities.tsx +116 -0
  22. package/dist/components/utilities/FlexAndGridUtilities.tsx +551 -0
  23. package/dist/components/utilities/ObjectFitUtilities.tsx +53 -0
  24. package/dist/components/utilities/ObjectPositionUtilities.tsx +68 -0
  25. package/dist/components/utilities/OpacityUtilities.tsx +64 -0
  26. package/dist/components/utilities/OverflowUtilities.tsx +93 -0
  27. package/dist/components/utilities/PositionUtilities.tsx +52 -0
  28. package/dist/components/utilities/ShadowUtilities.tsx +123 -0
  29. package/dist/components/utilities/SpacingUtilities.tsx +2 -2
  30. package/dist/components/utilities/TextUtilities.tsx +44 -4
  31. package/dist/components.html +2 -4
  32. package/dist/components_deprecated/modals.html +2 -2
  33. package/dist/components_deprecated.html +1 -0
  34. package/dist/design-patterns/Index.tsx +1 -42
  35. package/dist/design-patterns.html +2 -4
  36. package/dist/design.html +1 -0
  37. package/dist/examples.bundle.css +15 -7
  38. package/dist/examples.bundle.js +3104 -1270
  39. package/dist/main.html +1 -0
  40. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +1 -1
  41. package/dist/playgrounds/react-playgrounds/TestGround.tsx +214 -2
  42. package/dist/playgrounds.html +1 -0
  43. package/dist/superdesk-ui.bundle.css +1325 -999
  44. package/dist/superdesk-ui.bundle.js +1094 -919
  45. package/dist/vendor.bundle.js +13 -13
  46. package/examples/css/docs-page.css +15 -7
  47. package/examples/js/doc.js +13 -1
  48. package/examples/pages/components/Alerts.tsx +1 -1
  49. package/examples/pages/components/ContentDivider.tsx +1 -1
  50. package/examples/pages/components/DragHandleDocs.tsx +2 -2
  51. package/examples/pages/components/Index.tsx +105 -50
  52. package/examples/pages/components/Panel.tsx +13 -13
  53. package/examples/pages/components/Tags.tsx +2 -2
  54. package/examples/pages/components/Togglebox.tsx +154 -15
  55. package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +56 -0
  56. package/examples/pages/components/utilities/BorderUtilities.tsx +170 -0
  57. package/examples/pages/components/utilities/DisplayUtilities.tsx +116 -0
  58. package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +551 -0
  59. package/examples/pages/components/utilities/ObjectFitUtilities.tsx +53 -0
  60. package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +68 -0
  61. package/examples/pages/components/utilities/OpacityUtilities.tsx +64 -0
  62. package/examples/pages/components/utilities/OverflowUtilities.tsx +93 -0
  63. package/examples/pages/components/utilities/PositionUtilities.tsx +52 -0
  64. package/examples/pages/components/utilities/ShadowUtilities.tsx +123 -0
  65. package/examples/pages/components/utilities/SpacingUtilities.tsx +2 -2
  66. package/examples/pages/components/utilities/TextUtilities.tsx +44 -4
  67. package/examples/pages/components.html +2 -4
  68. package/examples/pages/components_deprecated/modals.html +2 -2
  69. package/examples/pages/components_deprecated.html +1 -0
  70. package/examples/pages/design-patterns/Index.tsx +1 -42
  71. package/examples/pages/design-patterns.html +2 -4
  72. package/examples/pages/design.html +1 -0
  73. package/examples/pages/main.html +1 -0
  74. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +1 -1
  75. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +214 -2
  76. package/examples/pages/playgrounds.html +1 -0
  77. package/package.json +1 -1
  78. package/react/components/ToggleBox/CustomHeaderToggleBox.d.ts +11 -0
  79. package/react/components/ToggleBox/CustomHeaderToggleBox.js +78 -0
  80. package/react/components/ToggleBox/SimpleToggleBox.d.ts +18 -0
  81. package/react/components/{Togglebox.js → ToggleBox/SimpleToggleBox.js} +7 -7
  82. package/react/components/ToggleBox/index.d.ts +26 -0
  83. package/react/components/ToggleBox/index.js +71 -0
  84. package/react/components/TreeMenu.js +4 -2
  85. package/react/index.d.ts +1 -1
  86. package/react/index.js +2 -2
  87. package/react/components/Togglebox.d.ts +0 -28
@@ -1,39 +1,170 @@
1
1
  import * as React from "react";
2
2
  import * as Markup from "../../js/react";
3
- import { ToggleBox, PropsList, Prop, Button, Badge } from "../../../app-typescript";
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
40
  <ToggleBox 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" className="toggle-box--circle">Togglebox content</ToggleBox>
50
+ </div>
51
+ </Markup.ReactMarkupPreview>
52
+ <Markup.ReactMarkupCode>{`
53
+ <ToggleBox variant='simple' title="Simple togglebox">Togglebox content</ToggleBox>
54
+ <ToggleBox variant='simple' title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
55
+ <ToggleBox variant='simple' title="Togglebox - circled chevron" className="toggle-box--circle">Togglebox content</ToggleBox>
56
+ `}</Markup.ReactMarkupCode>
57
+ </Markup.ReactMarkup>
58
+
59
+ <p className="docs-page__paragraph">Custom header ToggleBox:</p>
16
60
  <Markup.ReactMarkup>
17
61
  <Markup.ReactMarkupPreview>
18
- <Button text="Toggle programatically" onClick={() => { toggleRef.current.toggle() }} />
19
62
  <div style={{ marginTop: "2em" }}>
20
- <ToggleBox title="Simple togglebox" ref={toggleRef} initiallyOpen={true}>Togglebox content</ToggleBox>
21
- <ToggleBox title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
22
- <ToggleBox title="With different badge" badge={<Badge text='!' type='alert' shape='square' />}>Togglebox content</ToggleBox>
23
- <ToggleBox title="Togglebox - circled chevron" className="toggle-box--circle">Togglebox content</ToggleBox>
63
+ <ToggleBox
64
+ variant='custom-header'
65
+ header={
66
+ <div role="listitem" className="sd-list-item sd-list-item--no-hover">
67
+ <div className="sd-list-item__border sd-list-item__border--locked"></div>
68
+ <div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
69
+ <Icon type='primary' name='calendar' scale='1.5x' ariaHidden={true} />
70
+ </div>
71
+ <div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
72
+ <div className="sd-list-item__row">
73
+ <span className="sd-list-item__slugline">Planning Slugline</span>
74
+ </div>
75
+ <div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
76
+ <Label text='draft' style='translucent'/>
77
+ <span className="sd-margin-s--auto">
78
+ <AvatarGroup
79
+ size="x-small"
80
+ items={avatars}
81
+ />
82
+ </span>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ }
87
+ toggleButtonLabel={'show more'}
88
+ onToggle={(isOpen) => false}
89
+ >
90
+ <div>
91
+ <FormLabel text='Name'/>
92
+ <Text size='small' weight='medium'>Australian Open 2024</Text>
93
+ </div>
94
+ <ContentDivider type="dashed" margin='x-small' />
95
+ <div>
96
+ <FormLabel text='Current Date'/>
97
+ <Text size='small' weight='medium'>05.02.2024 @ 10:00</Text>
98
+ </div>
99
+ <ContentDivider type="dashed" margin='x-small' />
100
+ <div>
101
+ <FormLabel text='Current Repeat Summary'/>
102
+ <Text size='small' weight='medium'>Every 1 day(s) until CET 28 Feb 2024</Text>
103
+ </div>
104
+ <ContentDivider type="dashed" margin='x-small' />
105
+ <div>
106
+ <FormLabel text='No. of events'/>
107
+ <Text size='small' weight='medium'>1</Text>
108
+ </div>
109
+ </ToggleBox>
24
110
  </div>
25
111
  </Markup.ReactMarkupPreview>
26
112
  <Markup.ReactMarkupCode>{`
27
- <Button text="Toggle programatically" onClick={() => { toggleRef.current.toggle() }} />
28
-
29
- <ToggleBox title="Simple togglebox" ref={toggleRef} initiallyOpen={true}>Togglebox content</ToggleBox>
30
- <ToggleBox title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
31
- <ToggleBox title="With different badge" badge={<Badge text='!' type='alert' shape='square' />}>Togglebox content</ToggleBox>
32
- <ToggleBox title="Togglebox - circled chevron" className="toggle-box--circle">Togglebox content</ToggleBox>
113
+ <ToggleBox
114
+ variant='custom-header'
115
+ header={
116
+ <div role="listitem" className="sd-list-item sd-list-item--no-hover">
117
+ <div className="sd-list-item__border sd-list-item__border--locked"></div>
118
+ <div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
119
+ <Icon type='primary' name='calendar' scale='1.5x' ariaHidden={true} />
120
+ </div>
121
+ <div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
122
+ <div className="sd-list-item__row">
123
+ <span className="sd-list-item__slugline">Planning Slugline</span>
124
+ </div>
125
+ <div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
126
+ <Label text='draft' style='translucent'/>
127
+ <span className="sd-margin-s--auto">
128
+ <AvatarGroup
129
+ size="x-small"
130
+ items={avatars}
131
+ />
132
+ </span>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ }
137
+ onToggle={() => false}
138
+ >
139
+ <div>
140
+ <FormLabel text='Name'/>
141
+ <Text size='small' weight='medium'>Australian Open 2024</Text>
142
+ </div>
143
+ <ContentDivider type="dashed" margin='x-small' />
144
+ <div>
145
+ <FormLabel text='Current Date'/>
146
+ <Text size='small' weight='medium'>05.02.2024 @ 10:00</Text>
147
+ </div>
148
+ <ContentDivider type="dashed" margin='x-small' />
149
+ <div>
150
+ <FormLabel text='Current Repeat Summary'/>
151
+ <Text size='small' weight='medium'>Every 1 day(s) until CET 28 Feb 2024</Text>
152
+ </div>
153
+ <ContentDivider type="dashed" margin='x-small' />
154
+ <div>
155
+ <FormLabel text='No. of events'/>
156
+ <Text size='small' weight='medium'>1</Text>
157
+ </div>
158
+ </ToggleBox>
33
159
  `}</Markup.ReactMarkupCode>
34
160
  </Markup.ReactMarkup>
35
161
 
36
162
  <h3 className="docs-page__h3">Props</h3>
163
+ <PropsList>
164
+ <Prop name='variant' isRequired={true} type='simple | custom header' default='null' description='Type of component.' />
165
+ </PropsList>
166
+
167
+ <h3 className="docs-page__h3">Props: variant: 'simple'</h3>
37
168
  <PropsList>
38
169
  <Prop name='title' isRequired={true} type='string' default='null' description='Togglebox title' />
39
170
  <Prop name='badge' isRequired={false} type='JSX.Element' default='null' description='Badge' />
@@ -44,6 +175,14 @@ const ToggleboxDocs = () => {
44
175
  <Prop name='onOpen' isRequired={false} type='function' default='null' description='Callback on open event' />
45
176
  <Prop name='onClose' isRequired={false} type='function' default='null' description='Callback on close event' />
46
177
  </PropsList>
178
+
179
+ <h3 className="docs-page__h3">Props: variant: 'custom-header'</h3>
180
+ <PropsList>
181
+ <Prop name='header' isRequired={true} type='JSX.Component' default='null' description='Always visible part of component.' />
182
+ <Prop name='children' isRequired={false} type='JSX.Component' default='null' description='Appear on clicking the button.' />
183
+ <Prop name='initiallyOpen' isRequired={false} type='boolean' default='false' description='Opens togglebox on initial render.' />
184
+ <Prop name='onClose' isRequired={false} type='function' default='null' description='Callback on toggle.' />
185
+ </PropsList>
47
186
  </section>
48
187
  )
49
188
  }
@@ -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 };