dibk-design 0.4.45 → 0.4.48

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 (102) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +3 -3
  3. package/dist/components/Accordion.md +15 -15
  4. package/dist/components/Accordion.module.scss +205 -205
  5. package/dist/components/Button.md +75 -75
  6. package/dist/components/Button.module.scss +232 -232
  7. package/dist/components/CheckBoxIcon.md +38 -38
  8. package/dist/components/CheckBoxIcon.module.scss +62 -62
  9. package/dist/components/CheckBoxInput.md +58 -58
  10. package/dist/components/CheckBoxInput.module.scss +24 -24
  11. package/dist/components/CheckBoxListItem.md +82 -82
  12. package/dist/components/CheckBoxListItem.module.scss +71 -71
  13. package/dist/components/Container.js +64 -0
  14. package/dist/components/Container.md +7 -0
  15. package/dist/components/Container.module.scss +10 -0
  16. package/dist/components/ContentBox.md +46 -46
  17. package/dist/components/ContentBox.module.scss +116 -116
  18. package/dist/components/Dialog.md +5 -5
  19. package/dist/components/Dialog.module.scss +78 -78
  20. package/dist/components/DragAndDropFileInput.js +8 -4
  21. package/dist/components/DragAndDropFileInput.md +13 -13
  22. package/dist/components/DragAndDropFileInput.module.scss +36 -45
  23. package/dist/components/ErrorMessage.js +80 -0
  24. package/dist/components/ErrorMessage.md +15 -0
  25. package/dist/components/ErrorMessage.module.scss +16 -0
  26. package/dist/components/Footer.js +3 -3
  27. package/dist/components/Footer.md +7 -7
  28. package/dist/components/Footer.module.scss +20 -11
  29. package/dist/components/Header.md +11 -11
  30. package/dist/components/Header.module.scss +64 -64
  31. package/dist/components/InputField.js +6 -11
  32. package/dist/components/InputField.md +41 -41
  33. package/dist/components/InputField.module.scss +81 -95
  34. package/dist/components/Label.md +9 -9
  35. package/dist/components/Label.module.scss +16 -16
  36. package/dist/components/List.md +10 -10
  37. package/dist/components/List.module.scss +18 -18
  38. package/dist/components/LoadingAnimation.md +5 -5
  39. package/dist/components/LoadingAnimation.module.scss +26 -26
  40. package/dist/components/NavigationBar.md +42 -42
  41. package/dist/components/NavigationBar.module.scss +176 -176
  42. package/dist/components/NavigationBarListItem.md +15 -15
  43. package/dist/components/Paper.md +9 -9
  44. package/dist/components/Paper.module.scss +18 -18
  45. package/dist/components/ProgressBar.js +31 -0
  46. package/dist/components/ProgressBar.md +13 -0
  47. package/dist/components/ProgressBar.module.scss +37 -0
  48. package/dist/components/RadioButtonIcon.js +101 -101
  49. package/dist/components/RadioButtonIcon.md +41 -41
  50. package/dist/components/RadioButtonIcon.module.scss +44 -44
  51. package/dist/components/RadioButtonInput.js +97 -97
  52. package/dist/components/RadioButtonInput.md +32 -32
  53. package/dist/components/RadioButtonInput.module.scss +26 -26
  54. package/dist/components/RadioButtonListItem.md +70 -70
  55. package/dist/components/RadioButtonListItem.module.scss +71 -71
  56. package/dist/components/Select.js +6 -11
  57. package/dist/components/Select.md +28 -28
  58. package/dist/components/Select.module.scss +86 -100
  59. package/dist/components/Textarea.js +6 -11
  60. package/dist/components/Textarea.md +27 -27
  61. package/dist/components/Textarea.module.scss +58 -72
  62. package/dist/components/Theme.md +12 -12
  63. package/dist/components/Theme.module.scss +76 -76
  64. package/dist/components/WizardNavigation/Step.module.scss +75 -75
  65. package/dist/components/WizardNavigation.md +84 -84
  66. package/dist/components/WizardNavigation.module.scss +3 -3
  67. package/dist/fonts/Altis-Light.svg +326 -326
  68. package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
  69. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
  70. package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
  71. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
  72. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
  73. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
  74. package/dist/images/dibk-logo-mobile.svg +91 -91
  75. package/dist/images/dibk-logo.svg +991 -991
  76. package/dist/images/spinner.svg +56 -56
  77. package/dist/index.js +24 -0
  78. package/dist/style/abstracts/_all.scss +1 -1
  79. package/dist/style/abstracts/mixins/_all.scss +12 -12
  80. package/dist/style/abstracts/mixins/_animation.scss +6 -6
  81. package/dist/style/abstracts/mixins/_appearance.scss +5 -5
  82. package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
  83. package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
  84. package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
  85. package/dist/style/abstracts/mixins/_calc.scss +5 -5
  86. package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
  87. package/dist/style/abstracts/mixins/_opacity.scss +5 -5
  88. package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
  89. package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
  90. package/dist/style/abstracts/mixins/_transform.scss +6 -6
  91. package/dist/style/abstracts/mixins/_transition.scss +34 -34
  92. package/dist/style/abstracts/variables/_all.scss +2 -2
  93. package/dist/style/abstracts/variables/_colors.scss +28 -29
  94. package/dist/style/abstracts/variables/_typography.scss +1 -1
  95. package/dist/style/abstracts/variables/_viewports.scss +14 -14
  96. package/dist/style/base/_all.scss +1 -1
  97. package/dist/style/base/_reset.scss +15 -15
  98. package/dist/style/base/_typography.scss +6 -6
  99. package/dist/style/base/fonts.css +95 -95
  100. package/dist/style/global.scss +3 -3
  101. package/dist/style/layout/_containers.scss +9 -9
  102. package/package.json +43 -43
@@ -1,9 +1,9 @@
1
- Labels example:
2
-
3
- ```js
4
- <Label>Default label</Label>
5
- <Label>Default label 2</Label>
6
- <Label inline>Inline label </Label>
7
- <Label inline>Inline label 2</Label>
8
- <Label normalCursor>Normal cursor label</Label>
9
- ```
1
+ Labels example:
2
+
3
+ ```js
4
+ <Label>Default label</Label>
5
+ <Label>Default label 2</Label>
6
+ <Label inline>Inline label </Label>
7
+ <Label inline>Inline label 2</Label>
8
+ <Label normalCursor>Normal cursor label</Label>
9
+ ```
@@ -1,16 +1,16 @@
1
- :local(.label) {
2
- color: #000;
3
- display: block;
4
- font-size: 1rem;
5
- font-weight: bold;
6
- line-height: 1.2;
7
- margin-bottom: 2px;
8
- font-family: "Open Sans", sans-serif;
9
- overflow-wrap: break-word;
10
- &:local(.inline) {
11
- display: inline-block;
12
- }
13
- &:not(:local(.normalCursor)) {
14
- cursor: pointer;
15
- }
16
- }
1
+ :local(.label) {
2
+ color: #000;
3
+ display: block;
4
+ font-size: 1rem;
5
+ font-weight: bold;
6
+ line-height: 1.2;
7
+ margin-bottom: 2px;
8
+ font-family: "Open Sans", sans-serif;
9
+ overflow-wrap: break-word;
10
+ &:local(.inline) {
11
+ display: inline-block;
12
+ }
13
+ &:not(:local(.normalCursor)) {
14
+ cursor: pointer;
15
+ }
16
+ }
@@ -1,10 +1,10 @@
1
- Unordered List example:
2
-
3
- ```js
4
- <List listItems={['item 1', 'item 2', 'item 3']} />
5
- ```
6
-
7
- Ordered List example:
8
- ```js
9
- <List listItems={['item 1', 'item 2', 'item 3']} ordered={true} />
10
- ```
1
+ Unordered List example:
2
+
3
+ ```js
4
+ <List listItems={['item 1', 'item 2', 'item 3']} />
5
+ ```
6
+
7
+ Ordered List example:
8
+ ```js
9
+ <List listItems={['item 1', 'item 2', 'item 3']} ordered={true} />
10
+ ```
@@ -1,19 +1,19 @@
1
- :local(.list) {
2
- margin: 0;
3
- margin-left: 20px;
4
- padding: 0;
5
- margin-bottom: 20px;
6
- list-style-position: outside;
7
- font-size: 16px;
8
- li {
9
- line-height: 1.6;
10
- }
11
- }
12
-
13
- :local(ul.list) {
14
- list-style: disc;
15
- }
16
-
17
- :local(ol.list) {
18
- list-style: decimal;
1
+ :local(.list) {
2
+ margin: 0;
3
+ margin-left: 20px;
4
+ padding: 0;
5
+ margin-bottom: 20px;
6
+ list-style-position: outside;
7
+ font-size: 16px;
8
+ li {
9
+ line-height: 1.6;
10
+ }
11
+ }
12
+
13
+ :local(ul.list) {
14
+ list-style: disc;
15
+ }
16
+
17
+ :local(ol.list) {
18
+ list-style: decimal;
19
19
  }
@@ -1,5 +1,5 @@
1
- LoadingAnimation example:
2
-
3
- ```js
4
- <LoadingAnimation message="Loading..." />
5
- ```
1
+ LoadingAnimation example:
2
+
3
+ ```js
4
+ <LoadingAnimation message="Loading..." />
5
+ ```
@@ -1,26 +1,26 @@
1
- @import "../style/global.scss";
2
-
3
- :local(.loadingAnimation){
4
- @include box-shadow(0 8px 17px 0 rgba(0,0,0,.2));
5
- z-index: 6;
6
- background-repeat: no-repeat;
7
- background-position: 50% 15px;
8
- background-color: #fff;
9
- height: auto;
10
- width: 200px;
11
- border: 1px solid #ddd;
12
- padding: 15px;
13
- color: #666;
14
- display: block;
15
- text-align: center;
16
- &:local(.fixed) {
17
- @include calc(left, '50% - 100px');
18
- top: 40%;
19
- margin: auto;
20
- position: fixed;
21
- }
22
- &:before {
23
- content: url(../images/spinner.svg);
24
- display: block;
25
- }
26
- }
1
+ @import "../style/global.scss";
2
+
3
+ :local(.loadingAnimation){
4
+ @include box-shadow(0 8px 17px 0 rgba(0,0,0,.2));
5
+ z-index: 6;
6
+ background-repeat: no-repeat;
7
+ background-position: 50% 15px;
8
+ background-color: #fff;
9
+ height: auto;
10
+ width: 200px;
11
+ border: 1px solid #ddd;
12
+ padding: 15px;
13
+ color: #666;
14
+ display: block;
15
+ text-align: center;
16
+ &:local(.fixed) {
17
+ @include calc(left, '50% - 100px');
18
+ top: 40%;
19
+ margin: auto;
20
+ position: fixed;
21
+ }
22
+ &:before {
23
+ content: url(../images/spinner.svg);
24
+ display: block;
25
+ }
26
+ }
@@ -1,42 +1,42 @@
1
- NavigationBar example:
2
-
3
- ```js
4
- <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
5
- ```
6
-
7
-
8
- NavigationBar without list items example
9
- ```js
10
- <NavigationBar />
11
- ```
12
-
13
- NavigationBar with logo link
14
- ```js
15
- <NavigationBar logoLink="https://dibk.no/" />
16
- ```
17
-
18
- NavigationBar with logo link that opens in new tab
19
- ```js
20
- <NavigationBar logoLink="https://dibk.no/" openLogoLinkInNewTab />
21
- ```
22
-
23
- NavigationBar with child elements
24
- ```js
25
- <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} >
26
- Content here
27
- </NavigationBar>
28
- ```
29
-
30
-
31
- NavigationBar with child elements and without list items example
32
- ```js
33
- <NavigationBar>
34
- Content here
35
- </NavigationBar>
36
- ```
37
-
38
- Themed NavigationBar example:
39
- ```js
40
- import customTheme from 'data/customTheme';
41
- <NavigationBar theme={customTheme} primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
42
- ```
1
+ NavigationBar example:
2
+
3
+ ```js
4
+ <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
5
+ ```
6
+
7
+
8
+ NavigationBar without list items example
9
+ ```js
10
+ <NavigationBar />
11
+ ```
12
+
13
+ NavigationBar with logo link
14
+ ```js
15
+ <NavigationBar logoLink="https://dibk.no/" />
16
+ ```
17
+
18
+ NavigationBar with logo link that opens in new tab
19
+ ```js
20
+ <NavigationBar logoLink="https://dibk.no/" openLogoLinkInNewTab />
21
+ ```
22
+
23
+ NavigationBar with child elements
24
+ ```js
25
+ <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} >
26
+ Content here
27
+ </NavigationBar>
28
+ ```
29
+
30
+
31
+ NavigationBar with child elements and without list items example
32
+ ```js
33
+ <NavigationBar>
34
+ Content here
35
+ </NavigationBar>
36
+ ```
37
+
38
+ Themed NavigationBar example:
39
+ ```js
40
+ import customTheme from 'data/customTheme';
41
+ <NavigationBar theme={customTheme} primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
42
+ ```
@@ -1,176 +1,176 @@
1
- @import "../style/global.scss";
2
-
3
- :local(.isPresent) {
4
- @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
5
- position: relative;
6
- z-index: 1;
7
- :local(.navigationBar) {
8
- background-color: $color-dark-blue;
9
- height: 54px;
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- @media only screen and (min-width: $screen-sm) {
14
- height: 73px;
15
- }
16
- }
17
-
18
- :local(.logoContainer) {
19
- width: 200px;
20
- height: 54px;
21
- display: inline-block;
22
- img {
23
- height: 54px;
24
- max-width: none;
25
- }
26
- @media only screen and (min-width: $screen-sm) {
27
- width: 270px;
28
- height: 73px;
29
- img {
30
- height: 73px;
31
- }
32
- }
33
- }
34
-
35
- :local(.childElements) {
36
- display: block;
37
- color: #fff;
38
- flex: 1;
39
- }
40
-
41
- :local(.dropdownOverlay) {
42
- @media only screen and (max-width: $screen-lg) and (min-width: $screen-sm) {
43
- @include transition(all 0.1s ease-out);
44
- content: "";
45
- position: absolute;
46
- top: 73px;
47
- right: 0;
48
- bottom: 0;
49
- left: 0;
50
- z-index: 1;
51
- visibility: hidden;
52
- opacity: 0;
53
- background: transparent;
54
- &:local(.active) {
55
- opacity: 1;
56
- background: rgba(0, 0, 0, 0.5);
57
- visibility: visible;
58
- }
59
- }
60
- }
61
-
62
- :local(.menuToggle) {
63
- @include appearance(none);
64
- @include transition(background-color 300ms ease-out);
65
- border: none;
66
- cursor: pointer;
67
- position: relative;
68
- background-color: transparent;
69
- float: right;
70
- margin: 0 12px;
71
- :local(.hamburgerIcon) {
72
- width: 30px;
73
- display: block;
74
- :local(.line) {
75
- background-color: #fff;
76
- height: 2px;
77
- margin: 6px 0;
78
- display: block;
79
- }
80
- }
81
- @media only screen and (min-width: $screen-sm) {
82
- margin: 0 21px;
83
- }
84
- }
85
-
86
- :local(.dropdownContainer) {
87
- @include transition(max-height 0.15s ease-out);
88
- max-height: 0;
89
- overflow: hidden;
90
- &:local(.active) {
91
- @include transition(max-height 0.15s ease-out);
92
- max-height: 500px;
93
- }
94
- }
95
-
96
- :local(.dropdown) {
97
- @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
98
- background-color: $color-dark-blue;
99
- z-index: 2;
100
- > :local(ul.primaryList) {
101
- list-style: none;
102
- padding: 20px;
103
- margin: 0;
104
- li {
105
- a,
106
- span {
107
- color: #fff;
108
- text-transform: uppercase;
109
- text-decoration: none;
110
- font-family: "Open Sans";
111
- padding: 10px 0;
112
- display: block;
113
- border-bottom: 1px solid $color-primary;
114
- font-size: 14px;
115
- line-height: 1.6;
116
- }
117
- > :local(ul.primaryList) {
118
- list-style: none;
119
- padding: 0;
120
- li {
121
- a,
122
- span {
123
- color: #fff;
124
- text-transform: none;
125
- text-decoration: none;
126
- font-family: "Open Sans";
127
- padding: 10px 0;
128
- margin-left: 20px;
129
- display: block;
130
- border-bottom: 1px solid #1b3a48;
131
- font-size: 14px;
132
- line-height: 1.6;
133
- }
134
- }
135
- }
136
- }
137
- }
138
- > :local(ul.secondaryList) {
139
- list-style: none;
140
- padding: 20px;
141
- margin: 0;
142
-
143
- li {
144
- a,
145
- span {
146
- color: #fff;
147
- text-decoration: underline;
148
- font-family: "Arial";
149
- font-size: 14px;
150
- padding: 10px 0;
151
- line-height: 1;
152
- }
153
- }
154
- }
155
- }
156
-
157
- @media only screen and (min-width: $screen-sm) {
158
- :local(.dropdownContainer) {
159
- position: relative;
160
- overflow: visible;
161
- :local(.dropdown) {
162
- @include transition(max-height 0.15s ease-out);
163
- width: 300px;
164
- position: absolute;
165
- right: 0;
166
- max-height: 0;
167
- overflow: hidden;
168
- }
169
- &:local(.active) {
170
- :local(.dropdown) {
171
- max-height: 500px;
172
- }
173
- }
174
- }
175
- }
176
- }
1
+ @import "../style/global.scss";
2
+
3
+ :local(.isPresent) {
4
+ @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
5
+ position: relative;
6
+ z-index: 1;
7
+ :local(.navigationBar) {
8
+ background-color: $color-dark-blue;
9
+ height: 54px;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ @media only screen and (min-width: $screen-sm) {
14
+ height: 73px;
15
+ }
16
+ }
17
+
18
+ :local(.logoContainer) {
19
+ width: 200px;
20
+ height: 54px;
21
+ display: inline-block;
22
+ img {
23
+ height: 54px;
24
+ max-width: none;
25
+ }
26
+ @media only screen and (min-width: $screen-sm) {
27
+ width: 270px;
28
+ height: 73px;
29
+ img {
30
+ height: 73px;
31
+ }
32
+ }
33
+ }
34
+
35
+ :local(.childElements) {
36
+ display: block;
37
+ color: #fff;
38
+ flex: 1;
39
+ }
40
+
41
+ :local(.dropdownOverlay) {
42
+ @media only screen and (max-width: $screen-lg) and (min-width: $screen-sm) {
43
+ @include transition(all 0.1s ease-out);
44
+ content: "";
45
+ position: absolute;
46
+ top: 73px;
47
+ right: 0;
48
+ bottom: 0;
49
+ left: 0;
50
+ z-index: 1;
51
+ visibility: hidden;
52
+ opacity: 0;
53
+ background: transparent;
54
+ &:local(.active) {
55
+ opacity: 1;
56
+ background: rgba(0, 0, 0, 0.5);
57
+ visibility: visible;
58
+ }
59
+ }
60
+ }
61
+
62
+ :local(.menuToggle) {
63
+ @include appearance(none);
64
+ @include transition(background-color 300ms ease-out);
65
+ border: none;
66
+ cursor: pointer;
67
+ position: relative;
68
+ background-color: transparent;
69
+ float: right;
70
+ margin: 0 12px;
71
+ :local(.hamburgerIcon) {
72
+ width: 30px;
73
+ display: block;
74
+ :local(.line) {
75
+ background-color: #fff;
76
+ height: 2px;
77
+ margin: 6px 0;
78
+ display: block;
79
+ }
80
+ }
81
+ @media only screen and (min-width: $screen-sm) {
82
+ margin: 0 21px;
83
+ }
84
+ }
85
+
86
+ :local(.dropdownContainer) {
87
+ @include transition(max-height 0.15s ease-out);
88
+ max-height: 0;
89
+ overflow: hidden;
90
+ &:local(.active) {
91
+ @include transition(max-height 0.15s ease-out);
92
+ max-height: 500px;
93
+ }
94
+ }
95
+
96
+ :local(.dropdown) {
97
+ @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
98
+ background-color: $color-dark-blue;
99
+ z-index: 2;
100
+ > :local(ul.primaryList) {
101
+ list-style: none;
102
+ padding: 20px;
103
+ margin: 0;
104
+ li {
105
+ a,
106
+ span {
107
+ color: #fff;
108
+ text-transform: uppercase;
109
+ text-decoration: none;
110
+ font-family: "Open Sans";
111
+ padding: 10px 0;
112
+ display: block;
113
+ border-bottom: 1px solid $color-primary;
114
+ font-size: 14px;
115
+ line-height: 1.6;
116
+ }
117
+ > :local(ul.primaryList) {
118
+ list-style: none;
119
+ padding: 0;
120
+ li {
121
+ a,
122
+ span {
123
+ color: #fff;
124
+ text-transform: none;
125
+ text-decoration: none;
126
+ font-family: "Open Sans";
127
+ padding: 10px 0;
128
+ margin-left: 20px;
129
+ display: block;
130
+ border-bottom: 1px solid #1b3a48;
131
+ font-size: 14px;
132
+ line-height: 1.6;
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ > :local(ul.secondaryList) {
139
+ list-style: none;
140
+ padding: 20px;
141
+ margin: 0;
142
+
143
+ li {
144
+ a,
145
+ span {
146
+ color: #fff;
147
+ text-decoration: underline;
148
+ font-family: "Arial";
149
+ font-size: 14px;
150
+ padding: 10px 0;
151
+ line-height: 1;
152
+ }
153
+ }
154
+ }
155
+ }
156
+
157
+ @media only screen and (min-width: $screen-sm) {
158
+ :local(.dropdownContainer) {
159
+ position: relative;
160
+ overflow: visible;
161
+ :local(.dropdown) {
162
+ @include transition(max-height 0.15s ease-out);
163
+ width: 300px;
164
+ position: absolute;
165
+ right: 0;
166
+ max-height: 0;
167
+ overflow: hidden;
168
+ }
169
+ &:local(.active) {
170
+ :local(.dropdown) {
171
+ max-height: 500px;
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
@@ -1,16 +1,16 @@
1
- NavigationBarListItem example:
2
- ```js
3
- <ul>
4
- <NavigationBarListItem listItem='Primary item 1' />
5
- <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} />
6
- </ul>
7
- ```
8
-
9
- Themed NavigationBarListItem example:
10
- ```js
11
- import customTheme from 'data/customTheme';
12
- <ul>
13
- <NavigationBarListItem listItem='Primary item 1' theme={customTheme} />
14
- <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} theme={customTheme} />
15
- </ul>
1
+ NavigationBarListItem example:
2
+ ```js
3
+ <ul>
4
+ <NavigationBarListItem listItem='Primary item 1' />
5
+ <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} />
6
+ </ul>
7
+ ```
8
+
9
+ Themed NavigationBarListItem example:
10
+ ```js
11
+ import customTheme from 'data/customTheme';
12
+ <ul>
13
+ <NavigationBarListItem listItem='Primary item 1' theme={customTheme} />
14
+ <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} theme={customTheme} />
15
+ </ul>
16
16
  ```
@@ -1,9 +1,9 @@
1
- Paper example:
2
-
3
- ```js
4
- <Paper />
5
- <Paper>Paper with content</Paper>
6
- <Paper noPadding>Paper with no padding</Paper>
7
- <Paper noMargin>Paper with no margin</Paper>
8
- <Paper noMargin noPadding>Paper with no margin or padding</Paper>
9
- ```
1
+ Paper example:
2
+
3
+ ```js
4
+ <Paper />
5
+ <Paper>Paper with content</Paper>
6
+ <Paper noPadding>Paper with no padding</Paper>
7
+ <Paper noMargin>Paper with no margin</Paper>
8
+ <Paper noMargin noPadding>Paper with no margin or padding</Paper>
9
+ ```