aural-ui 2.0.7 → 2.0.9
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/components/switch/Switch.stories.tsx +18 -0
- package/dist/components/switch/index.tsx +32 -12
- package/dist/components/tabs/Tabs.stories.tsx +179 -2
- package/dist/components/tabs/index.tsx +70 -22
- package/dist/icons/index.ts +2 -0
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +591 -0
- package/dist/icons/moon-icon/index.tsx +21 -0
- package/dist/icons/moon-icon/meta.ts +8 -0
- package/dist/icons/sun-icon/SunIcon.stories.tsx +886 -0
- package/dist/icons/sun-icon/index.tsx +34 -0
- package/dist/icons/sun-icon/meta.ts +8 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
|
+
|
|
4
|
+
export const SunIcon = (
|
|
5
|
+
props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
|
6
|
+
) => {
|
|
7
|
+
return (
|
|
8
|
+
<AccessibleIcon label="Sun icon">
|
|
9
|
+
<svg
|
|
10
|
+
width="16"
|
|
11
|
+
height="16"
|
|
12
|
+
viewBox="0 0 512 512"
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
{...props}
|
|
16
|
+
>
|
|
17
|
+
<path
|
|
18
|
+
d="M256,144c-61.75,0-112,50.25-112,112s50.25,112,112,112s112-50.25,112-112S317.75,144,256,144z M256,336
|
|
19
|
+
c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c44.188,0,80,35.812,80,80C336,300.188,300.188,336,256,336z M256,112
|
|
20
|
+
c8.833,0,16-7.167,16-16V64c0-8.833-7.167-16-16-16s-16,7.167-16,16v32C240,104.833,247.167,112,256,112z M256,400
|
|
21
|
+
c-8.833,0-16,7.167-16,16v32c0,8.833,7.167,16,16,16s16-7.167,16-16v-32C272,407.167,264.833,400,256,400z M380.438,154.167
|
|
22
|
+
l22.625-22.625c6.25-6.25,6.25-16.375,0-22.625s-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625
|
|
23
|
+
S374.188,160.417,380.438,154.167z M131.562,357.834l-22.625,22.625c-6.25,6.249-6.25,16.374,0,22.624s16.375,6.25,22.625,0
|
|
24
|
+
l22.625-22.624c6.25-6.271,6.25-16.376,0-22.625C147.938,351.583,137.812,351.562,131.562,357.834z M112,256
|
|
25
|
+
c0-8.833-7.167-16-16-16H64c-8.833,0-16,7.167-16,16s7.167,16,16,16h32C104.833,272,112,264.833,112,256z M448,240h-32
|
|
26
|
+
c-8.833,0-16,7.167-16,16s7.167,16,16,16h32c8.833,0,16-7.167,16-16S456.833,240,448,240z M131.541,154.167
|
|
27
|
+
c6.251,6.25,16.376,6.25,22.625,0c6.251-6.25,6.251-16.375,0-22.625l-22.625-22.625c-6.25-6.25-16.374-6.25-22.625,0
|
|
28
|
+
c-6.25,6.25-6.25,16.375,0,22.625L131.541,154.167z M380.459,357.812c-6.271-6.25-16.376-6.25-22.625,0
|
|
29
|
+
c-6.251,6.25-6.271,16.375,0,22.625l22.625,22.625c6.249,6.25,16.374,6.25,22.624,0s6.25-16.375,0-22.625L380.459,357.812z"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
</AccessibleIcon>
|
|
33
|
+
)
|
|
34
|
+
}
|