@happeouikit/form-elements 2.4.2 → 2.4.3
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.
- package/dist/Tag.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/Tag.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export default Tag;
|
|
2
|
-
declare function Tag({ text, closeCallback, isUppercase, ...props }: {
|
|
2
|
+
declare function Tag({ text, closeCallback, isUppercase, closeIconAriaLabel, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
text: any;
|
|
5
5
|
closeCallback: any;
|
|
6
6
|
isUppercase: any;
|
|
7
|
+
closeIconAriaLabel: any;
|
|
7
8
|
}): false | import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
declare namespace Tag {
|
|
9
10
|
namespace propTypes {
|
package/dist/index.cjs.js
CHANGED
|
@@ -650,7 +650,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
650
650
|
opacity: 0.4;
|
|
651
651
|
}
|
|
652
652
|
`}
|
|
653
|
-
`,ms=({text:e,closeCallback:t,isUppercase:r,...
|
|
653
|
+
`,ms=({text:e,closeCallback:t,isUppercase:r,closeIconAriaLabel:n,...a})=>{const[i,o]=m.useState(!0),s=()=>{o(!1),t&&t()},u=l=>{(l.key==="Enter"||l.key===" ")&&s()};return i&&m.createElement(yh,{...a},m.createElement(xh,{bold:!0,uppercase:r},e),m.createElement(Ih,{onClick:s,role:"button",tabIndex:"0",onKeyDown:u,"aria-label":n||"Close tag"},m.createElement(Ae.IconClose,{width:"16px",height:"16px"})))};ms.propTypes={text:B.node.isRequired,closeCallback:B.func,isUppercase:B.bool};const yh=S.div`
|
|
654
654
|
display: inline;
|
|
655
655
|
background: ${W.active};
|
|
656
656
|
height: 24px;
|