nitro_sg 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/components/Avatar/Avatar.jsx +96 -0
  3. data/components/Avatar/styles.scss +54 -0
  4. data/components/Avatar/styles.scss.flow +14 -0
  5. data/components/Badge/Badge.jsx +40 -0
  6. data/components/Badge/badges.scss +167 -0
  7. data/components/Badge/labels.scss +121 -0
  8. data/components/Badge/styles.scss +4 -0
  9. data/components/Badge/styles.scss.flow +38 -0
  10. data/components/Banner/Banner.jsx +54 -0
  11. data/components/Banner/styles.scss +75 -0
  12. data/components/Banner/styles.scss.flow +19 -0
  13. data/components/Button/Button.jsx +75 -0
  14. data/components/Card/Card.jsx +44 -0
  15. data/components/CircleButton/CircleButton.jsx +51 -0
  16. data/components/CircleButton/CircleButtonStory.jsx +25 -0
  17. data/components/CircleButton/styles.scss +33 -0
  18. data/components/CircleButton/styles.scss.flow +6 -0
  19. data/components/CollapsibleCard/CollapsibleCard.jsx +108 -0
  20. data/components/Color/Color.jsx +55 -0
  21. data/components/Color/styles.scss +6 -0
  22. data/components/Color/styles.scss.flow +5 -0
  23. data/components/ColorPickerInput/ColorPickerInput.jsx +99 -0
  24. data/components/ColorPickerInput/colorPickerInput.scss +10 -0
  25. data/components/ColorPickerInput/colorPickerInput.scss.flow +6 -0
  26. data/components/DOBInput/index.jsx +35 -0
  27. data/components/DOBInput/story.jsx +20 -0
  28. data/components/DOBInput/styles.scss +11 -0
  29. data/components/DOBInput/styles.scss.flow +7 -0
  30. data/components/DatePicker/DatePicker.jsx +156 -0
  31. data/components/DatePicker/styles.scss +6 -0
  32. data/components/DatePicker/styles.scss.flow +5 -0
  33. data/components/DateTimePicker/DateTimePicker.jsx +109 -0
  34. data/components/DateTimePicker/story-styles.scss +3 -0
  35. data/components/DateTimePicker/story-styles.scss.flow +5 -0
  36. data/components/DateTimePicker/styles.scss +1 -0
  37. data/components/DateTimePicker/styles.scss.flow +5 -0
  38. data/components/Errors/Errors.jsx +38 -0
  39. data/components/FileCard/FileCard.jsx +183 -0
  40. data/components/FileCard/styles.scss +81 -0
  41. data/components/FileCard/styles.scss.flow +12 -0
  42. data/components/Flip/Flip.jsx +50 -0
  43. data/components/Flip/styles.scss +41 -0
  44. data/components/Flip/styles.scss.flow +11 -0
  45. data/components/FlyoutPanel/FlyoutPanel.jsx +34 -0
  46. data/components/FlyoutPanel/flyout_panel.scss +33 -0
  47. data/components/FlyoutPanel/flyout_panel.scss.flow +11 -0
  48. data/components/Grade/Grade.jsx +55 -0
  49. data/components/Grade/grade.scss +39 -0
  50. data/components/Grade/grade.scss.flow +6 -0
  51. data/components/Highlight/Highlight.jsx +39 -0
  52. data/components/Highlight/styles.scss +24 -0
  53. data/components/Highlight/styles.scss.flow +17 -0
  54. data/components/Icon/Icon.jsx +54 -0
  55. data/components/IconToggle/IconToggle.jsx +56 -0
  56. data/components/Milestones/MilestoneItem.jsx +47 -0
  57. data/components/Milestones/Milestones.jsx +51 -0
  58. data/components/Milestones/milestones.scss +19 -0
  59. data/components/Milestones/milestones.scss.flow +7 -0
  60. data/components/Milestones/milestones_item.scss +157 -0
  61. data/components/Milestones/milestones_item.scss.flow +13 -0
  62. data/components/Milestones/milestones_variables.scss +11 -0
  63. data/components/MonogramAvatar/MonogramAvatar.jsx +91 -0
  64. data/components/MonogramAvatar/monogram_avatar.scss +54 -0
  65. data/components/MonogramAvatar/monogram_avatar.scss.flow +10 -0
  66. data/components/Panel/Panel.jsx +159 -0
  67. data/components/Panel/panel.scss +32 -0
  68. data/components/Panel/panel.scss.flow +12 -0
  69. data/components/PanelGroup/PanelGroup.jsx +121 -0
  70. data/components/PanelGroup/PanelGroup.scss +96 -0
  71. data/components/PanelGroup/PanelGroup.scss.flow +6 -0
  72. data/components/SearchCollectionSelect/SearchCollectionSelect.jsx +29 -0
  73. data/components/SearchCollectionSelect/searchCollectionSelect.scss +0 -0
  74. data/components/Spinner/Spinner.jsx +80 -0
  75. data/components/Spinner/spinner.scss +6 -0
  76. data/components/Spinner/spinner.scss.flow +5 -0
  77. data/components/StepMeter/StepMeter.jsx +75 -0
  78. data/components/StepMeter/step_meter.scss +120 -0
  79. data/components/StepMeter/step_meter.scss.flow +9 -0
  80. data/components/Survey/Survey.jsx +190 -0
  81. data/components/Survey/survey.scss +75 -0
  82. data/components/Survey/survey.scss.flow +11 -0
  83. data/components/Tab/Tab.jsx +70 -0
  84. data/components/Tab/tab.scss +25 -0
  85. data/components/Tab/tab.scss.flow +6 -0
  86. data/components/TabList/TabList.jsx +35 -0
  87. data/components/TabList/tabList.scss +5 -0
  88. data/components/TabList/tabList.scss.flow +5 -0
  89. data/components/Text/Text.jsx +53 -0
  90. data/components/Text/styles.scss +3 -0
  91. data/components/Text/styles.scss.flow +123 -0
  92. data/components/Text/text.scss +35 -0
  93. data/components/TextInput/TextInput.jsx +95 -0
  94. data/components/TextInput/form-control.scss +96 -0
  95. data/components/TextInput/styles.scss +3 -0
  96. data/components/TextInput/styles.scss.flow +7 -0
  97. data/components/TimePicker/TimePicker.jsx +218 -0
  98. data/components/TimePicker/styles.scss +1 -0
  99. data/components/TimePicker/styles.scss.flow +5 -0
  100. data/components/ToggleButton/ToggleButton.jsx +68 -0
  101. data/components/ToggleButton/toggleButton.scss +70 -0
  102. data/components/ToggleButton/toggleButton.scss.flow +14 -0
  103. data/components/UserStamp/UserStamp.jsx +40 -0
  104. data/components/UserStamp/styles.scss +6 -0
  105. data/components/UserStamp/styles.scss.flow +7 -0
  106. data/components/Wip/Wip.jsx +34 -0
  107. data/components/index.js +33 -0
  108. data/components/types.js +21 -0
  109. data/lib/nitro_sg/version.rb +1 -1
  110. metadata +108 -1
@@ -0,0 +1,34 @@
1
+ /* @flow */
2
+
3
+ import React from 'react'
4
+
5
+ type Props = {
6
+ branch: string,
7
+ children: Array<React.Component>,
8
+ prNumber: number,
9
+ }
10
+
11
+ export default class Wip extends React.Component<Props> {
12
+ props: Props
13
+ render() {
14
+ const {
15
+ branch,
16
+ children,
17
+ prNumber,
18
+ } = this.props
19
+
20
+ return (
21
+ <div>
22
+ <div className="alert alert-warning">
23
+ {`W.I.P. see `}
24
+ <a
25
+ href={`https://github.com/powerhome/nitro-storybook/pull/${prNumber}`}
26
+ >
27
+ {branch}
28
+ </a>
29
+ </div>
30
+ {children}
31
+ </div>
32
+ )
33
+ }
34
+ }
@@ -0,0 +1,33 @@
1
+ export Avatar from './Avatar/Avatar'
2
+ export Badge from './Badge/Badge'
3
+ export Banner from './Banner/Banner'
4
+ export Button from './Button/Button'
5
+ export DatePicker from './DatePicker/DatePicker'
6
+ export DateTimePicker from './DateTimePicker/DateTimePicker'
7
+ export DOBInput from './DOBInput'
8
+ export Errors from './Errors/Errors'
9
+ export Icon from './Icon/Icon'
10
+ export Milestones from './Milestones/Milestones'
11
+ export Panel from './Panel/Panel'
12
+ export PanelGroup from './PanelGroup/PanelGroup'
13
+ export SearchCollectionSelect from './SearchCollectionSelect/SearchCollectionSelect'
14
+ export Tab from './Tab/Tab.jsx'
15
+ export TabList from './TabList/TabList.jsx'
16
+ export Text from './Text/Text.jsx'
17
+ export TextInput from './TextInput/TextInput.jsx'
18
+ export ToggleButton from './ToggleButton/ToggleButton.jsx'
19
+ export Grade from './Grade/Grade.jsx'
20
+ export StepMeter from './StepMeter/StepMeter.jsx'
21
+ export Survey from './Survey/Survey.jsx'
22
+ export MonogramAvatar from './MonogramAvatar/MonogramAvatar'
23
+ export FileCard from './FileCard/FileCard.jsx'
24
+ export FlyoutPanel from './FlyoutPanel/FlyoutPanel'
25
+ export Spinner from './Spinner/Spinner'
26
+ export TimePicker from './TimePicker/TimePicker'
27
+ export UserStamp from './UserStamp/UserStamp'
28
+ export Flip from './Flip/Flip'
29
+ export Highlight from './Highlight/Highlight'
30
+ export Card from './Card/Card.jsx'
31
+ export CollapsibleCard from './CollapsibleCard/CollapsibleCard.jsx'
32
+ export IconToggle from './IconToggle/IconToggle.jsx'
33
+ export CircleButton from './CircleButton/CircleButton.jsx'
@@ -0,0 +1,21 @@
1
+ /* @flow */
2
+
3
+ export type SurveyQuestions = [
4
+ {
5
+ question: string,
6
+ answers: [{
7
+ label: string,
8
+ value: string | number | Object,
9
+ }],
10
+ }
11
+ ]
12
+
13
+ export type IconType = {
14
+ className: string,
15
+ name: string,
16
+ label: string,
17
+ onClick: () => mixed,
18
+ size: string,
19
+ spin: boolean,
20
+ title: string,
21
+ }
@@ -1,3 +1,3 @@
1
1
  module NitroSg
2
- VERSION = "3.0.1".freeze
2
+ VERSION = "3.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nitro_sg
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nitro Developers
@@ -160,6 +160,113 @@ files:
160
160
  - app/assets/images/siding_power_p.svg
161
161
  - app/assets/images/solar_power_p.svg
162
162
  - app/assets/images/windows_power_p.svg
163
+ - components/Avatar/Avatar.jsx
164
+ - components/Avatar/styles.scss
165
+ - components/Avatar/styles.scss.flow
166
+ - components/Badge/Badge.jsx
167
+ - components/Badge/badges.scss
168
+ - components/Badge/labels.scss
169
+ - components/Badge/styles.scss
170
+ - components/Badge/styles.scss.flow
171
+ - components/Banner/Banner.jsx
172
+ - components/Banner/styles.scss
173
+ - components/Banner/styles.scss.flow
174
+ - components/Button/Button.jsx
175
+ - components/Card/Card.jsx
176
+ - components/CircleButton/CircleButton.jsx
177
+ - components/CircleButton/CircleButtonStory.jsx
178
+ - components/CircleButton/styles.scss
179
+ - components/CircleButton/styles.scss.flow
180
+ - components/CollapsibleCard/CollapsibleCard.jsx
181
+ - components/Color/Color.jsx
182
+ - components/Color/styles.scss
183
+ - components/Color/styles.scss.flow
184
+ - components/ColorPickerInput/ColorPickerInput.jsx
185
+ - components/ColorPickerInput/colorPickerInput.scss
186
+ - components/ColorPickerInput/colorPickerInput.scss.flow
187
+ - components/DOBInput/index.jsx
188
+ - components/DOBInput/story.jsx
189
+ - components/DOBInput/styles.scss
190
+ - components/DOBInput/styles.scss.flow
191
+ - components/DatePicker/DatePicker.jsx
192
+ - components/DatePicker/styles.scss
193
+ - components/DatePicker/styles.scss.flow
194
+ - components/DateTimePicker/DateTimePicker.jsx
195
+ - components/DateTimePicker/story-styles.scss
196
+ - components/DateTimePicker/story-styles.scss.flow
197
+ - components/DateTimePicker/styles.scss
198
+ - components/DateTimePicker/styles.scss.flow
199
+ - components/Errors/Errors.jsx
200
+ - components/FileCard/FileCard.jsx
201
+ - components/FileCard/styles.scss
202
+ - components/FileCard/styles.scss.flow
203
+ - components/Flip/Flip.jsx
204
+ - components/Flip/styles.scss
205
+ - components/Flip/styles.scss.flow
206
+ - components/FlyoutPanel/FlyoutPanel.jsx
207
+ - components/FlyoutPanel/flyout_panel.scss
208
+ - components/FlyoutPanel/flyout_panel.scss.flow
209
+ - components/Grade/Grade.jsx
210
+ - components/Grade/grade.scss
211
+ - components/Grade/grade.scss.flow
212
+ - components/Highlight/Highlight.jsx
213
+ - components/Highlight/styles.scss
214
+ - components/Highlight/styles.scss.flow
215
+ - components/Icon/Icon.jsx
216
+ - components/IconToggle/IconToggle.jsx
217
+ - components/Milestones/MilestoneItem.jsx
218
+ - components/Milestones/Milestones.jsx
219
+ - components/Milestones/milestones.scss
220
+ - components/Milestones/milestones.scss.flow
221
+ - components/Milestones/milestones_item.scss
222
+ - components/Milestones/milestones_item.scss.flow
223
+ - components/Milestones/milestones_variables.scss
224
+ - components/MonogramAvatar/MonogramAvatar.jsx
225
+ - components/MonogramAvatar/monogram_avatar.scss
226
+ - components/MonogramAvatar/monogram_avatar.scss.flow
227
+ - components/Panel/Panel.jsx
228
+ - components/Panel/panel.scss
229
+ - components/Panel/panel.scss.flow
230
+ - components/PanelGroup/PanelGroup.jsx
231
+ - components/PanelGroup/PanelGroup.scss
232
+ - components/PanelGroup/PanelGroup.scss.flow
233
+ - components/SearchCollectionSelect/SearchCollectionSelect.jsx
234
+ - components/SearchCollectionSelect/searchCollectionSelect.scss
235
+ - components/Spinner/Spinner.jsx
236
+ - components/Spinner/spinner.scss
237
+ - components/Spinner/spinner.scss.flow
238
+ - components/StepMeter/StepMeter.jsx
239
+ - components/StepMeter/step_meter.scss
240
+ - components/StepMeter/step_meter.scss.flow
241
+ - components/Survey/Survey.jsx
242
+ - components/Survey/survey.scss
243
+ - components/Survey/survey.scss.flow
244
+ - components/Tab/Tab.jsx
245
+ - components/Tab/tab.scss
246
+ - components/Tab/tab.scss.flow
247
+ - components/TabList/TabList.jsx
248
+ - components/TabList/tabList.scss
249
+ - components/TabList/tabList.scss.flow
250
+ - components/Text/Text.jsx
251
+ - components/Text/styles.scss
252
+ - components/Text/styles.scss.flow
253
+ - components/Text/text.scss
254
+ - components/TextInput/TextInput.jsx
255
+ - components/TextInput/form-control.scss
256
+ - components/TextInput/styles.scss
257
+ - components/TextInput/styles.scss.flow
258
+ - components/TimePicker/TimePicker.jsx
259
+ - components/TimePicker/styles.scss
260
+ - components/TimePicker/styles.scss.flow
261
+ - components/ToggleButton/ToggleButton.jsx
262
+ - components/ToggleButton/toggleButton.scss
263
+ - components/ToggleButton/toggleButton.scss.flow
264
+ - components/UserStamp/UserStamp.jsx
265
+ - components/UserStamp/styles.scss
266
+ - components/UserStamp/styles.scss.flow
267
+ - components/Wip/Wip.jsx
268
+ - components/index.js
269
+ - components/types.js
163
270
  - fonts/fontawesome.js
164
271
  - fonts/regular.js
165
272
  - lib/nitro_sg.rb