@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
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA8B,MAAM,EAAE,MAAM,cAAc,CAAA;AAEjE,wBAAgB,KAAK,CAAC,EACpB,UAAoC,EACpC,SAAkC,EAClC,OAA8B,EAC9B,QAAQ,EACR,OAAO,GACR,EAAE,MAAM,2CAsFR"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.tsx"],"names":[],"mappings":"AASA,OAAO,EAA8B,MAAM,EAAE,MAAM,cAAc,CAAA;AAEjE,wBAAgB,KAAK,CAAC,EACpB,UAAoC,EACpC,SAAkC,EAClC,OAA8B,EAC9B,QAAQ,EACR,OAAO,GACR,EAAE,MAAM,2CAsFR"}
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.Alert = Alert;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
- var _margin = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/margin.scss"));
11
- var _hooks = require("@papillonarts/library/hooks");
10
+ var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
12
11
  var _classnames = _interopRequireDefault(require("classnames"));
13
12
  var _react = require("react");
14
13
  var _Button = require("../Button");
@@ -29,7 +28,7 @@ function Alert(_ref) {
29
28
  variant = _ref$variant === void 0 ? _Alert2.AlertDefault.Variant : _ref$variant,
30
29
  children = _ref.children,
31
30
  consent = _ref.consent;
32
- var _useState = (0, _hooks.useState)(''),
31
+ var _useState = (0, _react.useState)(''),
33
32
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
34
33
  consentValue = _useState2[0],
35
34
  setConsentValue = _useState2[1];
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,YAAY,EAAE,aAQ1B,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,WAAW,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,YAAY,EAAE,aAU1B,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,MAAM;IACrB,UAAU,CAAC,EAAE,WAAW,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB"}
1
+ {"version":3,"file":"Alert.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Alert/Alert.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,YAAY,EAAE,aAQ1B,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,WAAW,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,YAAY,EAAE,aAU1B,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,MAAM,WAAW,MAAM;IACrB,UAAU,CAAC,EAAE,WAAW,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB"}
@@ -23,4 +23,6 @@ var AlertDefault = exports.AlertDefault = {
23
23
  ClassName: null,
24
24
  Variant: AlertVariant.Default,
25
25
  Consent: null
26
- };
26
+ };
27
+
28
+ // https://react.dev/learn/typescript#typing-children
@@ -1,111 +1,144 @@
1
- # Alert
1
+ # Features
2
2
 
3
- > Alert component all features
3
+ > Flash messages, or alerts, inform users of successful or pending actions. Use them sparingly. Don't show more than one at a time.
4
4
 
5
5
  ```
6
- # Featues
6
+ Alert all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IAlert {
13
+ dataTestId?: IDataTestId
14
+ className?: string
15
+ variant?: string
16
+ children: React.ReactNode
17
+ consent?: IAlertConsent
18
+ }
19
+ ```
20
+
21
+ ## Variants
22
+
23
+ ```
24
+ Default
25
+
26
+ DefaultMultipleParagraphs
27
+
28
+ Info
29
+
30
+ Warning
31
+
32
+ Error
33
+
34
+ Success
35
+
36
+ Full
37
+
38
+ Banner
39
+
40
+ DefaultConsentWithInput
7
41
 
8
- > Default, DefaultMultipleParagraphs
9
- > Info, Warning, Error, Success
10
- > Full, Banner
11
- > DefaultConsentWithInput, DefaultConsentWithoutInput
42
+ DefaultConsentWithoutInput
12
43
  ```
13
44
 
14
- ## Default
45
+ ### Default
15
46
 
16
- > Alert component default feature
47
+ > Alert default variant
48
+ > Flash messages start off looking decently neutral—they're just light blue rounded rectangles.
17
49
 
18
- ```jsx
50
+ ```tsx
19
51
  <Alert variant={AlertVariant.Default}>{children}</Alert>
20
52
  ```
21
53
 
22
- ## DefaultMultipleParagraphs
54
+ ### Default Multiple Paragraphs
23
55
 
24
- > Alert component default multiple paragraphs feature
56
+ > Alert default multiple paragraphs variant
57
+ > You can put multiple paragraphs of text in a flash message—the last paragraph's bottom margin will be automatically override.
25
58
 
26
- ```jsx
59
+ ```tsx
27
60
  <Alert variant={AlertVariant.Default}>
28
61
  <p>
29
- This is a longer flash message in it's own paragraph. It ends up looking something like this. If we keep adding more text, it will
62
+ This is a longer flash message in it's own paragraph. It ends up looking something like this. If we keep adding more text, it'll
30
63
  eventually wrap to a new line.
31
64
  </p>
32
65
  <p>And this is another paragraph.</p>
33
66
  </Alert>
34
67
  ```
35
68
 
36
- ## Info
69
+ ### Info
37
70
 
38
- > Alert component info feature
71
+ > Alert info variant
39
72
 
40
- ```jsx
73
+ ```tsx
41
74
  <Alert variant={AlertVariant.Info}>{children}</Alert>
42
75
  ```
43
76
 
44
- ## Warning
77
+ ### Warning
45
78
 
46
- > Alert component warning feature
79
+ > Alert warning variant
47
80
 
48
- ```jsx
81
+ ```tsx
49
82
  <Alert variant={AlertVariant.Warning}>{children}</Alert>
50
83
  ```
51
84
 
52
- ## Error
85
+ ### Error
53
86
 
54
- > Alert component error feature
87
+ > Alert error variant
55
88
 
56
- ```jsx
89
+ ```tsx
57
90
  <Alert variant={AlertVariant.Error}>{children}</Alert>
58
91
  ```
59
92
 
60
- ## Success
93
+ ### Success
61
94
 
62
- > Alert component success feature
95
+ > Alert success variant
63
96
 
64
- ```jsx
97
+ ```tsx
65
98
  <Alert variant={AlertVariant.Success}>{children}</Alert>
66
99
  ```
67
100
 
68
- ## Full
101
+ ### Full
69
102
 
70
- > Alert component full feature
103
+ > Alert full variant
71
104
 
72
- ```jsx
105
+ ```tsx
73
106
  <Alert variant={AlertVariant.Full}>{children}</Alert>
74
107
  ```
75
108
 
76
- ## Banner
109
+ ### Banner
77
110
 
78
- > Alert component banner feature
111
+ > Alert banner variant
79
112
 
80
- ```jsx
113
+ ```tsx
81
114
  <Alert variant={AlertVariant.Banner}>{children}</Alert>
82
115
  ```
83
116
 
84
- ## DefaultConsentWithInput
117
+ ### Default Consent With Input
85
118
 
86
- > Alert component default consent with input feature
119
+ > Alert default consent with input variant
87
120
 
88
- ```jsx
121
+ ```tsx
89
122
  <Alert variant={AlertVariant.Default} consent={getConsent({ hasInput: true })}>
90
123
  {children}
91
124
  </Alert>
92
125
  ```
93
126
 
94
- ## DefaultConsentWithoutInput
127
+ ### Default Consent Without Input
95
128
 
96
- > Alert component default consent without input feature
129
+ > Alert default consent without input variant
97
130
 
98
- ```jsx
131
+ ```tsx
99
132
  <Alert variant={AlertVariant.Default} consent={getConsent({ hasInput: false })}>
100
133
  {children}
101
134
  </Alert>
102
135
  ```
103
136
 
104
- ## DefaultConsentCustom
137
+ ### DefaultConsentCustom
105
138
 
106
- > Alert component default consent custom feature
139
+ > Alert default consent custom variant
107
140
 
108
- ```jsx
141
+ ```tsx
109
142
  <Alert variant={AlertVariant.Default} consent={consent}>
110
143
  {children}
111
144
  </Alert>
@@ -1,57 +1,95 @@
1
- # Blankslate
1
+ # Features
2
2
 
3
- > Blankslate component all features
3
+ > Blankslates are for when there is a lack of content within a page or section. Use them as placeholders to tell users why something isn't there. Be sure to provide an action to add content as well.
4
4
 
5
5
  ```
6
- # Featues
6
+ Blankslate all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IBlankslate {
13
+ className?: string
14
+ heading: string
15
+ text: string
16
+ variant?: string
17
+ hasCleanBackground?: boolean
18
+ }
19
+ ```
20
+
21
+ ## Variants
7
22
 
8
- > Default, Narrow, Capped, Spacious, Large, CleanBackground
9
23
  ```
24
+ Default
10
25
 
11
- ## Default
26
+ Narrow
12
27
 
13
- > Blankslate component default feature
28
+ Capped
29
+
30
+ Spacious
31
+
32
+ Large
33
+
34
+ CleanBackground
35
+ ```
14
36
 
15
- ```jsx
37
+ ### Default
38
+
39
+ > Blankslate default feature
40
+
41
+ > Wrap some content in the outer .blankslate wrapper to give it the blankslate appearance.
42
+
43
+ ```tsx
16
44
  <Blankslate variant={BlankslateVariant.Default} heading={heading} text={text} />
17
45
  ```
18
46
 
19
- ## Narrow
47
+ ### Narrow
48
+
49
+ > Blankslate narrow feature
20
50
 
21
- > Blankslate component narrow feature
51
+ > Narrows the blankslate container to not occupy the entire available width.
22
52
 
23
- ```jsx
53
+ ```tsx
24
54
  <Blankslate variant={BlankslateVariant.Narrow} heading={heading} text={text} />
25
55
  ```
26
56
 
27
- ## Capped
57
+ ### Capped
28
58
 
29
- > Blankslate component capped feature
59
+ > Blankslate capped feature
30
60
 
31
- ```jsx
61
+ > Removes the border-radius on the top corners.
62
+
63
+ ```tsx
32
64
  <Blankslate variant={BlankslateVariant.Capped} heading={heading} text={text} />
33
65
  ```
34
66
 
35
- ## Spacious
67
+ ### Spacious
68
+
69
+ > Blankslate spacious feature
36
70
 
37
- > Blankslate component spacious feature
71
+ > Significantly increases the vertical padding.
38
72
 
39
- ```jsx
73
+ ```tsx
40
74
  <Blankslate variant={BlankslateVariant.Spacious} heading={heading} text={text} />
41
75
  ```
42
76
 
43
- ## Large
77
+ ### Large
44
78
 
45
- > Blankslate component large feature
79
+ > Blankslate large feature
46
80
 
47
- ```jsx
81
+ > Increases the size of the text in the blankslate
82
+
83
+ ```tsx
48
84
  <Blankslate variant={BlankslateVariant.Large} heading={heading} text={text} />
49
85
  ```
50
86
 
51
- ## CleanBackground
87
+ ### Clean Background
88
+
89
+ > Blankslate cleanBackground feature
52
90
 
53
- > Blankslate component cleanBackground feature
91
+ > Removes the background-color and border.
54
92
 
55
- ```jsx
93
+ ```tsx
56
94
  <Blankslate hasCleanBackground={true} heading={heading} text={text} />
57
95
  ```
@@ -1,5 +1,5 @@
1
- @import '@papillonarts/css/build/primer/support/variables/typography.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/misc.scss';
1
+ @import '@papillonarts/css/support/variables/typography.scss';
2
+ @import '@papillonarts/css/support/variables/misc.scss';
3
3
 
4
4
  // stylelint-disable custom-property-pattern
5
5
  // stylelint-disable selector-max-type, selector-no-qualifying-type
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Breadcrumb = Breadcrumb;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _typography = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/typography.scss"));
9
+ var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/typography.scss"));
10
10
  var _array = require("@papillonarts/library/array");
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _uuid = require("uuid");
@@ -1,33 +1,59 @@
1
- # Breadcrumb
1
+ # Features
2
2
 
3
- > Breadcrumb component all features
3
+ > Breadcrumbs are used to show taxonomical context on pages that are many levels deep in a site’s hierarchy. Breadcrumbs show and link to parent, grandparent, and sometimes great-grandparent pages. Breadcrumbs are most appropriate on pages that:
4
+
5
+ > Are many levels deep on a site
6
+
7
+ > Do not have a section>level navigation
8
+
9
+ > May need the ability to quickly go back to the previous (parent) page
4
10
 
5
11
  ```
6
- # Featues
12
+ Breadcrumb all props and variants
13
+ ```
14
+
15
+ ## Props
16
+
17
+ ```typescript
18
+ export interface IBreadcrumb {
19
+ className?: string
20
+ ariaAttr: IAriaAttr
21
+ items: IItem[]
22
+ onClick: (value) => void
23
+ state?: string
24
+ }
25
+ ```
26
+
27
+ ## Variants
28
+
29
+ ```
30
+ Default
31
+
32
+ Active
7
33
 
8
- > Default, Active, Inactive
34
+ Inactive
9
35
  ```
10
36
 
11
- ## Default
37
+ ### Default
12
38
 
13
- > Breadcrumb component default feature
39
+ > Breadcrumb default variant
14
40
 
15
- ```jsx
41
+ ```tsx
16
42
  <Breadcrumb ariaAttr={ariaAttr} items={items} onClick={action('onClick')} />
17
43
  ```
18
44
 
19
- ## Active
45
+ ### Active
20
46
 
21
- > Breadcrumb component active feature
47
+ > Breadcrumb active variant
22
48
 
23
- ```jsx
49
+ ```tsx
24
50
  <Breadcrumb ariaAttr={ariaAttr} items={items} onClick={action('onClick')} state={BreadcrumbState.Active} />
25
51
  ```
26
52
 
27
- ## Inactive
53
+ ### Inactive
28
54
 
29
- > Breadcrumb component inactive feature
55
+ > Breadcrumb inactive variant
30
56
 
31
- ```jsx
57
+ ```tsx
32
58
  <Breadcrumb ariaAttr={ariaAttr} items={items} onClick={action('onClick')} state={BreadcrumbState.Inactive} />
33
59
  ```
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Button = Button;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _margin = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/margin.scss"));
10
- var _hooks = require("@papillonarts/library/hooks");
9
+ var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
11
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
+ var _react = require("react");
12
12
  var _Icon = require("../Icon");
13
13
  var _Button = _interopRequireDefault(require("./Button.scss"));
14
14
  var _Button2 = require("./Button.type");
@@ -44,7 +44,7 @@ function Button(_ref) {
44
44
  disabled: true,
45
45
  'aria-disabled': true
46
46
  }) : null;
47
- var fileInputRef = (0, _hooks.useRef)(null);
47
+ var fileInputRef = (0, _react.useRef)(null);
48
48
  if (element === _Button2.ButtonElement.Button) {
49
49
  return (
50
50
  /*#__PURE__*/
@@ -1,7 +1,7 @@
1
- @import '@papillonarts/css/build/primer/support/variables/typography.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/misc.scss';
3
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
4
- @import '@papillonarts/css/build/primer/support/mixins/misc.scss';
1
+ @import '@papillonarts/css/support/variables/typography.scss';
2
+ @import '@papillonarts/css/support/variables/misc.scss';
3
+ @import '@papillonarts/css/support/variables/layout.scss';
4
+ @import '@papillonarts/css/support/mixins/misc.scss';
5
5
 
6
6
  // stylelint-disable custom-property-pattern
7
7
  // stylelint-disable no-descending-specificity
@@ -1,5 +1,5 @@
1
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/misc.scss';
1
+ @import '@papillonarts/css/support/variables/layout.scss';
2
+ @import '@papillonarts/css/support/variables/misc.scss';
3
3
 
4
4
  // stylelint-disable no-descending-specificity
5
5