aural-ui 2.1.18 → 2.1.19

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.
@@ -0,0 +1,32 @@
1
+ import React from "react"
2
+ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
+
4
+ export interface PageTextIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const PageTextIcon = (props: PageTextIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
12
+ <svg
13
+ viewBox="0 0 16 20"
14
+ fill="none"
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ {...svgProps}
17
+ >
18
+ <path
19
+ d="M4.75 4.75H11.25M4.75 8.75H11.25M4.75 12.75H7.25M0.75 0.75H15.25V19.25H0.75V0.75Z"
20
+ stroke="currentColor"
21
+ strokeWidth="1.5"
22
+ strokeLinecap="square"
23
+ />
24
+ </svg>
25
+ )
26
+
27
+ if (withAccessibility) {
28
+ return <AccessibleIcon label="Page Text icon">{svg}</AccessibleIcon>
29
+ }
30
+
31
+ return svg
32
+ }
@@ -0,0 +1,8 @@
1
+ export const meta = {
2
+ dependencies: {
3
+ "@radix-ui/react-accessible-icon": "^1.1.7",
4
+ },
5
+ devDependencies: {},
6
+ internalDependencies: [],
7
+ tokens: [],
8
+ }