@papillonarts/components 0.16.0 → 0.18.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 (32) hide show
  1. package/build/primer/Toast/Toast.md +38 -0
  2. package/package.json +5 -10
  3. package/build/primer/Alert/Alert.mdx +0 -88
  4. package/build/primer/Blankslate/Blankslate.mdx +0 -57
  5. package/build/primer/Breadcrumb/Breadcrumb.mdx +0 -23
  6. package/build/primer/Button/Button.mdx +0 -239
  7. package/build/primer/Dropdown/Dropdown.mdx +0 -19
  8. package/build/primer/Form/Checkbox/Checkbox.mdx +0 -32
  9. package/build/primer/Form/Checkbox/__tests__/__snapshots__/Checkbox.int.test.ts.snap +0 -75
  10. package/build/primer/Form/Input/Input.mdx +0 -34
  11. package/build/primer/Form/Input/__tests__/__snapshots__/Input.int.test.ts.snap +0 -23
  12. package/build/primer/Form/Radio/Radio.mdx +0 -25
  13. package/build/primer/Form/Radio/__tests__/__snapshots__/Radio.int.test.ts.snap +0 -65
  14. package/build/primer/Grid/DisplayTable/DisplayTable.mdx +0 -14
  15. package/build/primer/Grid/DisplayTable/__tests__/__snapshots__/DisplayTable.int.test.ts.snap +0 -326
  16. package/build/primer/Grid/FlexGrid/FlexGrid.mdx +0 -106
  17. package/build/primer/Grid/FlexGrid/__tests__/__snapshots__/FlexGrid.int.test.ts.snap +0 -6247
  18. package/build/primer/Label/Label.mdx +0 -13
  19. package/build/primer/Loader/Loader.mdx +0 -31
  20. package/build/primer/Navigation/Menu/Menu.mdx +0 -25
  21. package/build/primer/Navigation/Menu/__tests__/__snapshots__/Menu.int.test.ts.snap +0 -114
  22. package/build/primer/Navigation/TabNav/TabNav.mdx +0 -56
  23. package/build/primer/Navigation/TabNav/__tests__/__snapshots__/TabNav.int.test.ts.snap +0 -164
  24. package/build/primer/Navigation/UnderlineNav/UnderlineNav.mdx +0 -65
  25. package/build/primer/Navigation/UnderlineNav/__tests__/__snapshots__/UnderlineNav.int.test.ts.snap +0 -259
  26. package/build/primer/Pagination/PreviousNext/PreviousNext.mdx +0 -20
  27. package/build/primer/Pagination/PreviousNext/__tests__/__snapshots__/PreviousNext.int.test.ts.snap +0 -63
  28. package/build/primer/Popover/Popover.mdx +0 -190
  29. package/build/primer/Progress/Progress.mdx +0 -31
  30. package/build/primer/Select/Select.mdx +0 -19
  31. package/build/primer/SelectMenu/SelectMenu.mdx +0 -13
  32. package/build/primer/Subhead/Subhead.mdx +0 -20
@@ -1,259 +0,0 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
-
3
- exports[`<UnderlineNav /> Render must match fullContainer() 1`] = `
4
- <div>
5
- <nav
6
- aria-label="Foo bar"
7
- class="UnderlineNav UnderlineNav--full"
8
- >
9
- <div
10
- class="container-lg UnderlineNav-container"
11
- >
12
- <div
13
- class="UnderlineNav-body"
14
- role="tablist"
15
- >
16
- <a
17
- aria-current="page"
18
- class="UnderlineNav-item"
19
- >
20
- Item 1
21
- </a>
22
- <a
23
- class="UnderlineNav-item"
24
- >
25
- Item 2
26
- </a>
27
- <a
28
- class="UnderlineNav-item"
29
- >
30
- Item 3
31
- </a>
32
- <a
33
- class="UnderlineNav-item"
34
- >
35
- Item 4
36
- </a>
37
- </div>
38
- <div
39
- class="UnderlineNav-actions"
40
- >
41
- <a
42
- class="btn"
43
- href="#url"
44
- >
45
- Button
46
- </a>
47
- </div>
48
- </div>
49
- </nav>
50
- </div>
51
- `;
52
-
53
- exports[`<UnderlineNav /> Render must match regular() 1`] = `
54
- <div>
55
- <nav
56
- aria-label="Foo bar"
57
- class="UnderlineNav"
58
- >
59
- <div
60
- class="UnderlineNav-body"
61
- role="tablist"
62
- >
63
- <button
64
- aria-selected="true"
65
- class="UnderlineNav-item"
66
- role="tab"
67
- type="button"
68
- >
69
- Item 1
70
- </button>
71
- <button
72
- class="UnderlineNav-item"
73
- role="tab"
74
- type="button"
75
- >
76
- Item 2
77
- </button>
78
- <button
79
- class="UnderlineNav-item"
80
- role="tab"
81
- type="button"
82
- >
83
- Item 3
84
- </button>
85
- <button
86
- class="UnderlineNav-item"
87
- role="tab"
88
- type="button"
89
- >
90
- Item 4
91
- </button>
92
- </div>
93
- </nav>
94
- </div>
95
- `;
96
-
97
- exports[`<UnderlineNav /> Render must match rightAligned() 1`] = `
98
- <div>
99
- <nav
100
- aria-label="Foo bar"
101
- class="UnderlineNav UnderlineNav--right"
102
- >
103
- <div
104
- class="UnderlineNav-body"
105
- role="tablist"
106
- >
107
- <a
108
- aria-current="page"
109
- class="UnderlineNav-item"
110
- >
111
- Item 1
112
- </a>
113
- <a
114
- class="UnderlineNav-item"
115
- >
116
- Item 2
117
- </a>
118
- <a
119
- class="UnderlineNav-item"
120
- >
121
- Item 3
122
- </a>
123
- <a
124
- class="UnderlineNav-item"
125
- >
126
- Item 4
127
- </a>
128
- </div>
129
- </nav>
130
- </div>
131
- `;
132
-
133
- exports[`<UnderlineNav /> Render must match rightAlignedWithActions() 1`] = `
134
- <div>
135
- <nav
136
- aria-label="Foo bar"
137
- class="UnderlineNav UnderlineNav--right"
138
- >
139
- <div
140
- class="UnderlineNav-actions"
141
- >
142
- <a
143
- class="btn"
144
- href="#url"
145
- >
146
- Button
147
- </a>
148
- </div>
149
- <div
150
- class="UnderlineNav-body"
151
- role="tablist"
152
- >
153
- <a
154
- aria-current="page"
155
- class="UnderlineNav-item"
156
- >
157
- Item 1
158
- </a>
159
- <a
160
- class="UnderlineNav-item"
161
- >
162
- Item 2
163
- </a>
164
- <a
165
- class="UnderlineNav-item"
166
- >
167
- Item 3
168
- </a>
169
- <a
170
- class="UnderlineNav-item"
171
- >
172
- Item 4
173
- </a>
174
- </div>
175
- </nav>
176
- </div>
177
- `;
178
-
179
- exports[`<UnderlineNav /> Render must match withActions() 1`] = `
180
- <div>
181
- <nav
182
- aria-label="Foo bar"
183
- class="UnderlineNav"
184
- >
185
- <div
186
- class="UnderlineNav-body"
187
- role="tablist"
188
- >
189
- <a
190
- aria-current="page"
191
- class="UnderlineNav-item"
192
- >
193
- Item 1
194
- </a>
195
- <a
196
- class="UnderlineNav-item"
197
- >
198
- Item 2
199
- </a>
200
- <a
201
- class="UnderlineNav-item"
202
- >
203
- Item 3
204
- </a>
205
- <a
206
- class="UnderlineNav-item"
207
- >
208
- Item 4
209
- </a>
210
- </div>
211
- <div
212
- class="UnderlineNav-actions"
213
- >
214
- <a
215
- class="btn"
216
- href="#url"
217
- >
218
- Button
219
- </a>
220
- </div>
221
- </nav>
222
- </div>
223
- `;
224
-
225
- exports[`<UnderlineNav /> Render must match withIcons() 1`] = `
226
- <div>
227
- <nav
228
- aria-label="Foo bar"
229
- class="UnderlineNav"
230
- >
231
- <div
232
- class="UnderlineNav-body"
233
- role="tablist"
234
- >
235
- <a
236
- aria-current="page"
237
- class="UnderlineNav-item"
238
- >
239
- Item 1
240
- </a>
241
- <a
242
- class="UnderlineNav-item"
243
- >
244
- Item 2
245
- </a>
246
- <a
247
- class="UnderlineNav-item"
248
- >
249
- Item 3
250
- </a>
251
- <a
252
- class="UnderlineNav-item"
253
- >
254
- Item 4
255
- </a>
256
- </div>
257
- </nav>
258
- </div>
259
- `;
@@ -1,20 +0,0 @@
1
- # PreviousNext
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
- > 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.
5
-
6
- # Variants
7
-
8
- > - Default, Inactive
9
-
10
- ## Default
11
-
12
- ```jsx
13
- <PreviousNext ariaAttr={ariaAttr} currentPage={currentPage} onClick={action('onClick')} />
14
- ```
15
-
16
- ## Inactive
17
-
18
- ```jsx
19
- <PreviousNext ariaAttr={ariaAttr} currentPage={currentPage} onClick={action('onClick')} state={previousNextState.inactive} />
20
- ```
@@ -1,63 +0,0 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
-
3
- exports[`<PreviousNext /> Render must match inactive() 1`] = `
4
- <div>
5
- <nav
6
- aria-label="Pagination"
7
- class="paginate-container previousnext-inactive"
8
- >
9
- <div
10
- class="pagination d-flex"
11
- >
12
- <a
13
- aria-label="Previous"
14
- href="#url"
15
- rel="previous"
16
- >
17
- &lt;
18
- </a>
19
- <span>
20
- Viewing 3 to 7
21
- </span>
22
- <a
23
- aria-label="Next"
24
- href="#url"
25
- rel="next"
26
- >
27
- &gt;
28
- </a>
29
- </div>
30
- </nav>
31
- </div>
32
- `;
33
-
34
- exports[`<PreviousNext /> Render must match regular() 1`] = `
35
- <div>
36
- <nav
37
- aria-label="Pagination"
38
- class="paginate-container"
39
- >
40
- <div
41
- class="pagination d-flex"
42
- >
43
- <a
44
- aria-label="Previous"
45
- href="#url"
46
- rel="previous"
47
- >
48
- &lt;
49
- </a>
50
- <span>
51
- Viewing 3 to 7
52
- </span>
53
- <a
54
- aria-label="Next"
55
- href="#url"
56
- rel="next"
57
- >
58
- &gt;
59
- </a>
60
- </div>
61
- </nav>
62
- </div>
63
- `;
@@ -1,190 +0,0 @@
1
- # Popover
2
-
3
- - Default, DefaultLarge
4
- - Bottom, BottomRight, BottomLeft
5
- - Left, LeftBottom, LeftTop
6
- - Right, RightBottom, RightTop
7
- - TopLeft, TopRight
8
-
9
- > Popovers are used to bring attention to specific user interface elements, typically to suggest an action or to guide users through a new experience.
10
-
11
- ## Default
12
-
13
- ```jsx
14
- <Popover
15
- intro={intro}
16
- heading={heading}
17
- message={message}
18
- acknowledge={acknowledge}
19
- introOnClick={action('introOnClick')}
20
- acknowledgeOnClick={action('acknowledgeOnClick')}
21
- />
22
- ```
23
-
24
- ## DefaultLarge
25
-
26
- ```jsx
27
- <Popover
28
- intro={intro}
29
- heading={heading}
30
- message={message}
31
- acknowledge={acknowledge}
32
- size={popoverSize.large}
33
- introOnClick={action('introOnClick')}
34
- acknowledgeOnClick={action('acknowledgeOnClick')}
35
- />
36
- ```
37
-
38
- ## Bottom
39
-
40
- ```jsx
41
- <Popover
42
- intro={intro}
43
- heading={heading}
44
- message={message}
45
- acknowledge={acknowledge}
46
- variant={popoverVariant.bottom}
47
- introOnClick={action('introOnClick')}
48
- acknowledgeOnClick={action('acknowledgeOnClick')}
49
- />
50
- ```
51
-
52
- ## BottomRight
53
-
54
- ```jsx
55
- <Popover
56
- intro={intro}
57
- heading={heading}
58
- message={message}
59
- acknowledge={acknowledge}
60
- variant={popoverVariant.bottomRight}
61
- introOnClick={action('introOnClick')}
62
- acknowledgeOnClick={action('acknowledgeOnClick')}
63
- />
64
- ```
65
-
66
- ## BottomLeft
67
-
68
- ```jsx
69
- <Popover
70
- intro={intro}
71
- heading={heading}
72
- message={message}
73
- acknowledge={acknowledge}
74
- variant={popoverVariant.bottomLeft}
75
- introOnClick={action('introOnClick')}
76
- acknowledgeOnClick={action('acknowledgeOnClick')}
77
- />
78
- ```
79
-
80
- ## Left
81
-
82
- ```jsx
83
- <Popover
84
- intro={intro}
85
- heading={heading}
86
- message={message}
87
- acknowledge={acknowledge}
88
- variant={popoverVariant.left}
89
- introOnClick={action('introOnClick')}
90
- acknowledgeOnClick={action('acknowledgeOnClick')}
91
- />
92
- ```
93
-
94
- ## LeftBottom
95
-
96
- ```jsx
97
- <Popover
98
- intro={intro}
99
- heading={heading}
100
- message={message}
101
- acknowledge={acknowledge}
102
- variant={popoverVariant.leftBottom}
103
- introOnClick={action('introOnClick')}
104
- acknowledgeOnClick={action('acknowledgeOnClick')}
105
- />
106
- ```
107
-
108
- ## LeftTop
109
-
110
- ```jsx
111
- <Popover
112
- intro={intro}
113
- heading={heading}
114
- message={message}
115
- acknowledge={acknowledge}
116
- variant={popoverVariant.leftTop}
117
- introOnClick={action('introOnClick')}
118
- acknowledgeOnClick={action('acknowledgeOnClick')}
119
- />
120
- ```
121
-
122
- ## Right
123
-
124
- ```jsx
125
- <Popover
126
- intro={intro}
127
- heading={heading}
128
- message={message}
129
- acknowledge={acknowledge}
130
- variant={popoverVariant.right}
131
- introOnClick={action('introOnClick')}
132
- acknowledgeOnClick={action('acknowledgeOnClick')}
133
- />
134
- ```
135
-
136
- ## RightBottom
137
-
138
- ```jsx
139
- <Popover
140
- intro={intro}
141
- heading={heading}
142
- message={message}
143
- acknowledge={acknowledge}
144
- variant={popoverVariant.rightBottom}
145
- introOnClick={action('introOnClick')}
146
- acknowledgeOnClick={action('acknowledgeOnClick')}
147
- />
148
- ```
149
-
150
- ## RightTop
151
-
152
- ```jsx
153
- <Popover
154
- intro={intro}
155
- heading={heading}
156
- message={message}
157
- acknowledge={acknowledge}
158
- variant={popoverVariant.rightTop}
159
- introOnClick={action('introOnClick')}
160
- acknowledgeOnClick={action('acknowledgeOnClick')}
161
- />
162
- ```
163
-
164
- ## TopLeft
165
-
166
- ```jsx
167
- <Popover
168
- intro={intro}
169
- heading={heading}
170
- message={message}
171
- acknowledge={acknowledge}
172
- variant={popoverVariant.topLeft}
173
- introOnClick={action('introOnClick')}
174
- acknowledgeOnClick={action('acknowledgeOnClick')}
175
- />
176
- ```
177
-
178
- ## TopRight
179
-
180
- ```jsx
181
- <Popover
182
- intro={intro}
183
- heading={heading}
184
- message={message}
185
- acknowledge={acknowledge}
186
- variant={popoverVariant.topRight}
187
- introOnClick={action('introOnClick')}
188
- acknowledgeOnClick={action('acknowledgeOnClick')}
189
- />
190
- ```
@@ -1,31 +0,0 @@
1
- # Progress
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
- # Variants
6
-
7
- > - Normal, Large, Small
8
-
9
- ## Normal
10
-
11
- > Normal progress bars have default height.
12
-
13
- ```jsx
14
- <Progress variant={progressVariant.normal} percentage={50} />
15
- ```
16
-
17
- ## Large
18
-
19
- > Large progress bars are slightly taller than the default.
20
-
21
- ```jsx
22
- <Progress variant={progressVariant.large} percentage={50} />
23
- ```
24
-
25
- ## Small
26
-
27
- > Small progress bars are shorter than the default.
28
-
29
- ```jsx
30
- <Progress variant={progressVariant.small} percentage={50} />
31
- ```
@@ -1,19 +0,0 @@
1
- # Select
2
-
3
- > Selects are lightweight context menus for housing navigation and actions. They're great for instances where you don't need the full power (and code) of the select menu.
4
-
5
- # Variants
6
-
7
- > - Regular, Inactive
8
-
9
- ## Regular
10
-
11
- ```jsx
12
- <Select selectedText={selectedText} items={items} onChange={action('onChange')} />
13
- ```
14
-
15
- ## Inactive
16
-
17
- ```jsx
18
- <Select selectedText={selectedText} items={items} onChange={action('onChange')} state={selectState.inactive} />
19
- ```
@@ -1,13 +0,0 @@
1
- # SelectMenu
2
-
3
- > The SelectMenu component provides advanced support for navigation, filtering, and more. Any menu can make use of JavaScript-enabled live filtering, selected states, tabbed lists, and keyboard navigation with a bit of markup.
4
-
5
- # Variants
6
-
7
- > - Default
8
-
9
- ## Default
10
-
11
- ```jsx
12
- <SelectMenu summary={summary} icon={iconName.ChevronDown16} title={title} ariaAttr={ariaAttr} items={items} onClick={action('onClick')} />
13
- ```
@@ -1,20 +0,0 @@
1
- # Subhead
2
-
3
- > The basic Subhead consists of a .Subhead container, which has a light gray bottom border. Use .Subhead-heading for the heading itself. It's an `<h2>` sized heading with normal font-weight.
4
- > Use a heading element whenever possible as they can be used as navigation for assistive technologies, and avoid skipping levels.
5
-
6
- # Variants
7
-
8
- > - Plain, Spacious
9
-
10
- ## Plain
11
-
12
- ```jsx
13
- <Subhead heading="Plain subhead" />
14
- ```
15
-
16
- ## Spacious
17
-
18
- ```jsx
19
- <Subhead heading="Spacious subhead" isSpacious={true} />
20
- ```