@papillonarts/components 0.38.0 → 0.40.0

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 (76) hide show
  1. package/build/Legacy/Alert/Alert.d.ts.map +1 -1
  2. package/build/Legacy/Alert/Alert.js +2 -3
  3. package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
  4. package/build/Legacy/Alert/Alert.type.js +3 -1
  5. package/build/Legacy/Alert/__tests__/Alert.doc.md +74 -41
  6. package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +60 -22
  7. package/build/Legacy/BranchName/branch-name.scss +2 -2
  8. package/build/Legacy/Breadcrumb/Breadcrumb.js +1 -1
  9. package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +39 -13
  10. package/build/Legacy/Button/Button.js +3 -3
  11. package/build/Legacy/Button/Button.scss +4 -4
  12. package/build/Legacy/Button/ButtonGroup.scss +2 -2
  13. package/build/Legacy/Button/__tests__/Button.doc.md +339 -0
  14. package/build/Legacy/Button/misc.scss +2 -2
  15. package/build/Legacy/Dropdown/Dropdown.js +6 -6
  16. package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +54 -0
  17. package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
  18. package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +33 -0
  19. package/build/Legacy/Form/Checkbox/Checkbox.js +1 -1
  20. package/build/Legacy/Form/Checkbox/__tests__/Checkbox.doc.md +87 -0
  21. package/build/Legacy/Form/Input/__tests__/Input.doc.md +84 -0
  22. package/build/Legacy/Form/Radio/Radio.js +1 -1
  23. package/build/Legacy/Form/Radio/__tests__/Radio.doc.md +66 -0
  24. package/build/Legacy/Form/form-control.scss +4 -4
  25. package/build/Legacy/Form/form-select.scss +4 -4
  26. package/build/Legacy/Grid/DisplayTable/DisplayTable.js +5 -5
  27. package/build/Legacy/Grid/DisplayTable/__tests__/DisplayTable.doc.md +34 -0
  28. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
  29. package/build/Legacy/Grid/FlexGrid/FlexGrid.js +12 -15
  30. package/build/Legacy/Grid/FlexGrid/__tests__/FlexGrid.doc.md +158 -0
  31. package/build/Legacy/Icon/__tests__/Icon.doc.md +58 -0
  32. package/build/Legacy/Label/Label.js +1 -1
  33. package/build/Legacy/Label/__tests__/Label.doc.md +33 -0
  34. package/build/Legacy/Label/mixins.scss +3 -3
  35. package/build/Legacy/Layout/container.scss +1 -1
  36. package/build/Legacy/Layout/grid-offset.scss +1 -1
  37. package/build/Legacy/Layout/grid.scss +2 -2
  38. package/build/Legacy/Loader/Loader.js +2 -2
  39. package/build/Legacy/Loader/__tests__/Loader.doc.md +61 -0
  40. package/build/Legacy/Markdown/__tests__/Markdown.doc.md +28 -13
  41. package/build/Legacy/Navigation/Menu/Menu.js +2 -2
  42. package/build/Legacy/Navigation/Menu/__tests__/Menu.doc.md +53 -0
  43. package/build/Legacy/Navigation/TabNav/__tests__/TabNav.doc.md +99 -0
  44. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  45. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.js +1 -2
  46. package/build/Legacy/Navigation/UnderlineNav/__tests__/UnderlineNav.doc.md +106 -0
  47. package/build/Legacy/Pagination/PreviousNext/PreviousNext.js +1 -1
  48. package/build/Legacy/Pagination/PreviousNext/PreviousNext.scss +2 -2
  49. package/build/Legacy/Pagination/PreviousNext/__tests__/PreviousNext.doc.md +57 -0
  50. package/build/Legacy/Popover/Popover.js +5 -5
  51. package/build/Legacy/Popover/__tests__/Popover.doc.md +260 -0
  52. package/build/Legacy/Progress/Progress.js +1 -1
  53. package/build/Legacy/Progress/__tests__/Progress.doc.md +51 -0
  54. package/build/Legacy/Select/Select.js +1 -1
  55. package/build/Legacy/Select/Select.scss +2 -2
  56. package/build/Legacy/Select/__tests__/Select.doc.md +54 -0
  57. package/build/Legacy/SelectMenu/SelectMenu.js +5 -5
  58. package/build/Legacy/SelectMenu/SelectMenu.scss +4 -4
  59. package/build/Legacy/SelectMenu/__tests__/SelectMenu.doc.md +35 -0
  60. package/build/Legacy/Subhead/Subhead.scss +3 -3
  61. package/build/Legacy/Subhead/__tests__/Subhead.doc.md +43 -0
  62. package/build/Legacy/SyntaxHighlighter/__tests__/SyntaxHighlighter.doc.md +45 -21
  63. package/build/Legacy/Toast/Toast.js +1 -1
  64. package/build/Legacy/Toast/Toast.scss +3 -3
  65. package/build/Legacy/Toast/__tests__/Toast.doc.md +73 -0
  66. package/build/Legacy/index.d.ts +1 -1
  67. package/build/Legacy/index.d.ts.map +1 -1
  68. package/build/Legacy/index.js +1 -1
  69. package/build/Modern/Flash/__tests__/Flash.doc.md +151 -6
  70. package/build/Modern/Link/__tests__/Link.doc.md +91 -5
  71. package/build/Modern/Pagination/__tests__/Pagination.doc.md +89 -7
  72. package/build/Modern/index.d.ts +1 -1
  73. package/build/Modern/index.d.ts.map +1 -1
  74. package/build/Modern/index.js +1 -1
  75. package/build/__tests__/README.md +159 -0
  76. package/package.json +4 -4
@@ -0,0 +1,53 @@
1
+ # Features
2
+
3
+ > The menu is a vertical list of navigational links. A menu's width and placement must be set by you. If you like, just use our grid columns as a parent. Otherwise, apply a custom width.
4
+
5
+ ```
6
+ Menu all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IMenu {
13
+ className?: string
14
+ heading?: string
15
+ ariaAttr: IAriaAttr
16
+ items: IItem[]
17
+ onClick: (value) => void
18
+ }
19
+ ```
20
+
21
+ ## Variants
22
+
23
+ ```
24
+ Default
25
+
26
+ WithIcons
27
+
28
+ WithHeading
29
+ ```
30
+
31
+ ### Default
32
+
33
+ > Menu default variant
34
+
35
+ ```tsx
36
+ <Menu ariaAttr={ariaAttr} items={defaultItems} onClick={action('onClick')} />
37
+ ```
38
+
39
+ ### With Icons
40
+
41
+ > Menu with icons variant
42
+
43
+ ```tsx
44
+ <Menu ariaAttr={ariaAttr} items={iconItems} onClick={action('onClick')} />
45
+ ```
46
+
47
+ ### With Heading
48
+
49
+ > Menu with heading variant
50
+
51
+ ```tsx
52
+ <Menu heading={heading} ariaAttr={ariaAttr} items={defaultItems} onClick={action('onClick')} />
53
+ ```
@@ -0,0 +1,99 @@
1
+ # Features
2
+
3
+ > When you need to toggle between different views, consider using a tabnav. It'll give you a left-aligned horizontal row of tabs.
4
+
5
+ ```
6
+ TabNav all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface ITabNav {
13
+ className?: string
14
+ ariaAttr: IAriaAttr
15
+ items: IItem[]
16
+ actions?: React.ReactNode[]
17
+ onClick: (value) => void
18
+ children?: React.ReactNode
19
+ state?: string
20
+ }
21
+ ```
22
+
23
+ ## Variants
24
+
25
+ ```
26
+ Default
27
+
28
+ WithButtonActions
29
+
30
+ WithTextActions
31
+
32
+ WithLinkActions
33
+
34
+ WithNavigation
35
+
36
+ WithMixedEnabledVisibleItems
37
+
38
+ Inactive
39
+ ```
40
+
41
+ ### Default
42
+
43
+ > TabNav default variant
44
+
45
+ ```tsx
46
+ <TabNav ariaAttr={ariaAttr} items={defaultItems} onClick={action('onClick')} />
47
+ ```
48
+
49
+ ### With Button Actions
50
+
51
+ > TabNav with button actions variant
52
+
53
+ ```tsx
54
+ <TabNav ariaAttr={ariaAttr} items={defaultItems} actions={buttonActions} onClick={action('onClick')} />
55
+ ```
56
+
57
+ ### With Text Actions
58
+
59
+ > TabNav with text actions variant
60
+
61
+ ```tsx
62
+ <TabNav ariaAttr={ariaAttr} items={defaultItems} actions={textActions} onClick={action('onClick')} />
63
+ ```
64
+
65
+ ### With Link Actions
66
+
67
+ > TabNav with link actions variant
68
+
69
+ ```tsx
70
+ <TabNav ariaAttr={ariaAttr} items={defaultItems} actions={linkActions} onClick={action('onClick')} />
71
+ ```
72
+
73
+ ### With Navigation
74
+
75
+ > TabNav with navigation variant
76
+
77
+ ```tsx
78
+ <BrowserRouter>
79
+ <TabNav ariaAttr={ariaAttr} items={navigationItems} onClick={action('onClick')} />
80
+ </BrowserRouter>
81
+ ```
82
+
83
+ ### With Mixed Enabled Visible Items
84
+
85
+ > TabNav with mixed enabled visible icons variant
86
+
87
+ ```tsx
88
+ <BrowserRouter>
89
+ <TabNav ariaAttr={ariaAttr} items={mixedEnabledVisibleItems} onClick={action('onClick')} />
90
+ </BrowserRouter>
91
+ ```
92
+
93
+ ### Inactive
94
+
95
+ > TabNav inactive variant
96
+
97
+ ```tsx
98
+ <TabNav ariaAttr={ariaAttr} items={defaultItems} onClick={action('onClick')} state={TabNavState.Inactive} />
99
+ ```
@@ -1 +1 @@
1
- {"version":3,"file":"UnderlineNav.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Navigation/UnderlineNav/UnderlineNav.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAuB,aAAa,EAAkD,MAAM,qBAAqB,CAAA;AAExH,wBAAgB,YAAY,CAAC,EAC3B,SAAyC,EACzC,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAqC,EACrC,KAAiC,EACjC,aAAiD,EACjD,OAAO,GACR,EAAE,aAAa,2CAsFf"}
1
+ {"version":3,"file":"UnderlineNav.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Navigation/UnderlineNav/UnderlineNav.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAuB,aAAa,EAAkD,MAAM,qBAAqB,CAAA;AAExH,wBAAgB,YAAY,CAAC,EAC3B,SAAyC,EACzC,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAqC,EACrC,KAAiC,EACjC,aAAiD,EACjD,OAAO,GACR,EAAE,aAAa,2CAsFf"}
@@ -8,7 +8,6 @@ exports.UnderlineNav = UnderlineNav;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _array = require("@papillonarts/library/array");
11
- var _hooks = require("@papillonarts/library/hooks");
12
11
  var _classnames = _interopRequireDefault(require("classnames"));
13
12
  var _react = require("react");
14
13
  var _uuid = require("uuid");
@@ -32,7 +31,7 @@ function UnderlineNav(_ref) {
32
31
  _ref$fullContainer = _ref.fullContainer,
33
32
  fullContainer = _ref$fullContainer === void 0 ? _UnderlineNav2.UnderlineNavDefault.FullContainer : _ref$fullContainer,
34
33
  _onClick = _ref.onClick;
35
- var _useState = (0, _hooks.useState)((0, _array.getIndexItems)(items)),
34
+ var _useState = (0, _react.useState)((0, _array.getIndexItems)(items)),
36
35
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
37
36
  indexItems = _useState2[0],
38
37
  setIndexItems = _useState2[1];
@@ -0,0 +1,106 @@
1
+ # Features
2
+
3
+ > Use UnderlineNav to style navigation with a minimal underlined selected state, typically used for navigation placed at the top of the page. This component comes with variations to accommodate icons, containers and other content.
4
+
5
+ ```
6
+ UnderlineNav all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IUnderlineNav {
13
+ className?: string
14
+ ariaAttr: IAriaAttr
15
+ items: IItem[]
16
+ itemType: string
17
+ actions?: React.ReactNode[]
18
+ align?: string
19
+ fullContainer?: boolean
20
+ onClick: (value) => void
21
+ }
22
+ ```
23
+
24
+ ## Variants
25
+
26
+ ```
27
+ Default
28
+
29
+ WithActions
30
+
31
+ RightAligned
32
+
33
+ RightAlignedWithActions
34
+
35
+ WithIcons
36
+
37
+ FullContainer
38
+ ```
39
+
40
+ ### Default
41
+
42
+ > UnderlineNav default variant
43
+
44
+ ```tsx
45
+ <UnderlineNav ariaAttr={ariaAttr} items={buttonItems} itemType={UnderlineNavItemType.Button} onClick={action('onClick')} />
46
+ ```
47
+
48
+ ### With Actions
49
+
50
+ > UnderlineNav with actions variant
51
+
52
+ ```tsx
53
+ <UnderlineNav ariaAttr={ariaAttr} items={anchorItems} itemType={UnderlineNavItemType.A} actions={actions} onClick={action('onClick')} />
54
+ ```
55
+
56
+ ### Right Aligned
57
+
58
+ > UnderlineNav right aligned variant
59
+
60
+ ```tsx
61
+ <UnderlineNav
62
+ ariaAttr={ariaAttr}
63
+ items={anchorItems}
64
+ itemType={UnderlineNavItemType.A}
65
+ align={UnderlineNavAlignmentType.Right}
66
+ onClick={action('onClick')}
67
+ />
68
+ ```
69
+
70
+ ### Right Aligned With Actions
71
+
72
+ > UnderlineNav right aligned with actions variant
73
+
74
+ ```tsx
75
+ <UnderlineNav
76
+ ariaAttr={ariaAttr}
77
+ items={anchorItems}
78
+ itemType={UnderlineNavItemType.A}
79
+ align={UnderlineNavAlignmentType.Right}
80
+ actions={actions}
81
+ onClick={action('onClick')}
82
+ />
83
+ ```
84
+
85
+ ### With Icons
86
+
87
+ > UnderlineNav with icons variant
88
+
89
+ ```tsx
90
+ <UnderlineNav ariaAttr={ariaAttr} items={iconItems} itemType={UnderlineNavItemType.A} onClick={action('onClick')} />
91
+ ```
92
+
93
+ ### Full Container
94
+
95
+ > UnderlineNav full container variant
96
+
97
+ ```tsx
98
+ <UnderlineNav
99
+ ariaAttr={ariaAttr}
100
+ items={fullContainerItems}
101
+ itemType={UnderlineNavItemType.A}
102
+ actions={actions}
103
+ fullContainer
104
+ onClick={action('onClick')}
105
+ />
106
+ ```
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.PreviousNext = PreviousNext;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/visibility-display.scss"));
9
+ var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/utilities/visibility-display.scss"));
10
10
  var _pagination = require("@papillonarts/library/pagination");
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _PreviousNext = _interopRequireDefault(require("./PreviousNext.scss"));
@@ -1,5 +1,5 @@
1
- @import '@papillonarts/css/build/primer/support/mixins/layout.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/misc.scss';
1
+ @import '@papillonarts/css/support/mixins/layout.scss';
2
+ @import '@papillonarts/css/support/variables/misc.scss';
3
3
 
4
4
  // stylelint-disable custom-property-pattern
5
5
 
@@ -0,0 +1,57 @@
1
+ # Features
2
+
3
+ > Use the pagination component to apply button styles to a connected set of links that go to related pages (for example, previous, next, or page numbers).
4
+
5
+ > You can make a very simple pagination container with just the Previous and Next buttons. Add the aria-disabled="true" attribute to the Previous button if there isn't a preceding page, or to the Next button if there isn't a succeeding page.
6
+
7
+ ```
8
+ PreviousNext all props and variants
9
+ ```
10
+
11
+ ## Props
12
+
13
+ ```typescript
14
+ export interface IPreviousNext {
15
+ className?: string
16
+ ariaAttr: IAriaAttr
17
+ currentPage: ICurrentPageType
18
+ previous?: IPreviousNextType
19
+ next?: IPreviousNextType
20
+ onClick: (value) => void
21
+ state?: string
22
+ }
23
+ ```
24
+
25
+ ## Variants
26
+
27
+ ```
28
+ Default
29
+
30
+ Active
31
+
32
+ Inactive
33
+ ```
34
+
35
+ ### Default
36
+
37
+ > PreviousNext default variant
38
+
39
+ ```tsx
40
+ <PreviousNext ariaAttr={ariaAttr} currentPage={currentPage} onClick={action('onClick')} />
41
+ ```
42
+
43
+ ### Active
44
+
45
+ > PreviousNext active variant
46
+
47
+ ```tsx
48
+ <PreviousNext ariaAttr={ariaAttr} currentPage={currentPage} onClick={action('onClick')} state={PreviousNextState.Active} />
49
+ ```
50
+
51
+ ### Inactive
52
+
53
+ > PreviousNext inactive variant
54
+
55
+ ```tsx
56
+ <PreviousNext ariaAttr={ariaAttr} currentPage={currentPage} onClick={action('onClick')} state={PreviousNextState.Inactive} />
57
+ ```
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Popover = Popover;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _boxShadow = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/box-shadow.scss"));
10
- var _layout = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/layout.scss"));
11
- var _margin = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/margin.scss"));
12
- var _padding = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/padding.scss"));
13
- var _typography = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/typography.scss"));
9
+ var _boxShadow = _interopRequireDefault(require("@papillonarts/css/utilities/box-shadow.scss"));
10
+ var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
11
+ var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
12
+ var _padding = _interopRequireDefault(require("@papillonarts/css/utilities/padding.scss"));
13
+ var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/typography.scss"));
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
  var _box = _interopRequireDefault(require("../Box/box.scss"));
16
16
  var _Button = require("../Button");
@@ -0,0 +1,260 @@
1
+ # Features
2
+
3
+ > Popovers are used to bring attention to specific user interface elements, typically to suggest an action or to guide users through a new experience.
4
+
5
+ ```
6
+ Popover all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IPopover {
13
+ className?: string
14
+ variant?: string
15
+ size?: string
16
+ intro: string
17
+ heading: string
18
+ message: string
19
+ acknowledge: string
20
+ introOnClick: (value) => void
21
+ acknowledgeOnClick: (value) => void
22
+ }
23
+ ```
24
+
25
+ ## Variants
26
+
27
+ ```
28
+ Default
29
+
30
+ DefaultLarge
31
+
32
+ Bottom
33
+
34
+ BottomRight
35
+
36
+ BottomLeft
37
+
38
+ Left
39
+
40
+ LeftBottom
41
+
42
+ LeftTop
43
+
44
+ Right
45
+
46
+ RightBottom
47
+
48
+ RightTop
49
+
50
+ TopLeft
51
+
52
+ TopRight
53
+ ```
54
+
55
+ ### Default
56
+
57
+ > Popover default variant
58
+
59
+ ```tsx
60
+ <Popover
61
+ intro={intro}
62
+ heading={heading}
63
+ message={message}
64
+ acknowledge={acknowledge}
65
+ introOnClick={action('introOnClick')}
66
+ acknowledgeOnClick={action('acknowledgeOnClick')}
67
+ />
68
+ ```
69
+
70
+ ### Default Large
71
+
72
+ > Popover default large variant
73
+
74
+ ```tsx
75
+ <Popover
76
+ intro={intro}
77
+ heading={heading}
78
+ message={message}
79
+ acknowledge={acknowledge}
80
+ size={PopoverSize.Large}
81
+ introOnClick={action('introOnClick')}
82
+ acknowledgeOnClick={action('acknowledgeOnClick')}
83
+ />
84
+ ```
85
+
86
+ ### Bottom
87
+
88
+ > Popover bottom variant
89
+
90
+ ```tsx
91
+ <Popover
92
+ intro={intro}
93
+ heading={heading}
94
+ message={message}
95
+ acknowledge={acknowledge}
96
+ variant={PopoverVariant.Bottom}
97
+ introOnClick={action('introOnClick')}
98
+ acknowledgeOnClick={action('acknowledgeOnClick')}
99
+ />
100
+ ```
101
+
102
+ ### Bottom Right
103
+
104
+ > Popover bottom right variant
105
+
106
+ ```tsx
107
+ <Popover
108
+ intro={intro}
109
+ heading={heading}
110
+ message={message}
111
+ acknowledge={acknowledge}
112
+ variant={PopoverVariant.BottomRight}
113
+ introOnClick={action('introOnClick')}
114
+ acknowledgeOnClick={action('acknowledgeOnClick')}
115
+ />
116
+ ```
117
+
118
+ ### Bottom Left
119
+
120
+ > Popover bottom left variant
121
+
122
+ ```tsx
123
+ <Popover
124
+ intro={intro}
125
+ heading={heading}
126
+ message={message}
127
+ acknowledge={acknowledge}
128
+ variant={PopoverVariant.BottomLeft}
129
+ introOnClick={action('introOnClick')}
130
+ acknowledgeOnClick={action('acknowledgeOnClick')}
131
+ />
132
+ ```
133
+
134
+ ### Left
135
+
136
+ > Popover left variant
137
+
138
+ ```tsx
139
+ <Popover
140
+ intro={intro}
141
+ heading={heading}
142
+ message={message}
143
+ acknowledge={acknowledge}
144
+ variant={PopoverVariant.Left}
145
+ introOnClick={action('introOnClick')}
146
+ acknowledgeOnClick={action('acknowledgeOnClick')}
147
+ />
148
+ ```
149
+
150
+ ### Left Bottom
151
+
152
+ > Popover left bottom variant
153
+
154
+ ```tsx
155
+ <Popover
156
+ intro={intro}
157
+ heading={heading}
158
+ message={message}
159
+ acknowledge={acknowledge}
160
+ variant={PopoverVariant.LeftBottom}
161
+ introOnClick={action('introOnClick')}
162
+ acknowledgeOnClick={action('acknowledgeOnClick')}
163
+ />
164
+ ```
165
+
166
+ ### Left Top
167
+
168
+ > Popover left top variant
169
+
170
+ ```tsx
171
+ <Popover
172
+ intro={intro}
173
+ heading={heading}
174
+ message={message}
175
+ acknowledge={acknowledge}
176
+ variant={PopoverVariant.LeftTop}
177
+ introOnClick={action('introOnClick')}
178
+ acknowledgeOnClick={action('acknowledgeOnClick')}
179
+ />
180
+ ```
181
+
182
+ ### Right
183
+
184
+ > Popover right variant
185
+
186
+ ```tsx
187
+ <Popover
188
+ intro={intro}
189
+ heading={heading}
190
+ message={message}
191
+ acknowledge={acknowledge}
192
+ variant={PopoverVariant.Right}
193
+ introOnClick={action('introOnClick')}
194
+ acknowledgeOnClick={action('acknowledgeOnClick')}
195
+ />
196
+ ```
197
+
198
+ ### Right Bottom
199
+
200
+ > Popover right bottom variant
201
+
202
+ ```tsx
203
+ <Popover
204
+ intro={intro}
205
+ heading={heading}
206
+ message={message}
207
+ acknowledge={acknowledge}
208
+ variant={PopoverVariant.RightBottom}
209
+ introOnClick={action('introOnClick')}
210
+ acknowledgeOnClick={action('acknowledgeOnClick')}
211
+ />
212
+ ```
213
+
214
+ ### Right Top
215
+
216
+ > Popover right top variant
217
+
218
+ ```tsx
219
+ <Popover
220
+ intro={intro}
221
+ heading={heading}
222
+ message={message}
223
+ acknowledge={acknowledge}
224
+ variant={PopoverVariant.RightTop}
225
+ introOnClick={action('introOnClick')}
226
+ acknowledgeOnClick={action('acknowledgeOnClick')}
227
+ />
228
+ ```
229
+
230
+ ### Top Left
231
+
232
+ > Popover top left variant
233
+
234
+ ```tsx
235
+ <Popover
236
+ intro={intro}
237
+ heading={heading}
238
+ message={message}
239
+ acknowledge={acknowledge}
240
+ variant={PopoverVariant.TopLeft}
241
+ introOnClick={action('introOnClick')}
242
+ acknowledgeOnClick={action('acknowledgeOnClick')}
243
+ />
244
+ ```
245
+
246
+ ### Top Right
247
+
248
+ > Popover top right variant
249
+
250
+ ```tsx
251
+ <Popover
252
+ intro={intro}
253
+ heading={heading}
254
+ message={message}
255
+ acknowledge={acknowledge}
256
+ variant={PopoverVariant.TopRight}
257
+ introOnClick={action('introOnClick')}
258
+ acknowledgeOnClick={action('acknowledgeOnClick')}
259
+ />
260
+ ```
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Progress = Progress;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
9
+ var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _Progress = _interopRequireDefault(require("./Progress.scss"));
12
12
  var _Progress2 = require("./Progress.type");
@@ -0,0 +1,51 @@
1
+ # Features
2
+
3
+ > Use progress components to visualize task completion. The Progress class adds a background color and aligns its children horizontally with flexbox. The children (Progress-item) should be individually colored with background utilities and sized with inline width styles in percentages. Overflow is hidden, so children that overflow will be clipped.
4
+
5
+ ```
6
+ Progress all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IProgress {
13
+ className?: string
14
+ variant?: string
15
+ percentage: number
16
+ }
17
+ ```
18
+
19
+ ## Variants
20
+
21
+ ```
22
+ Normal
23
+
24
+ Large
25
+
26
+ Small
27
+ ```
28
+
29
+ ### Normal
30
+
31
+ > Progress normal variant
32
+
33
+ ```tsx
34
+ <Progress variant={ProgressVariant.Normal} percentage={50} />
35
+ ```
36
+
37
+ ### Large
38
+
39
+ > Progress large variant
40
+
41
+ ```tsx
42
+ <Progress variant={ProgressVariant.Large} percentage={50} />
43
+ ```
44
+
45
+ ### Small
46
+
47
+ > Progress small variant
48
+
49
+ ```tsx
50
+ <Progress variant={ProgressVariant.Small} percentage={50} />
51
+ ```
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Select = Select;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _layout = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/layout.scss"));
9
+ var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
10
10
  var _array = require("@papillonarts/library/array");
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _uuid = require("uuid");