aural-ui 3.0.7 → 4.1.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 (183) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
  2. package/dist/components/avatar/Avatar.stories.tsx +235 -237
  3. package/dist/components/badge/Badge.stories.tsx +379 -116
  4. package/dist/components/banner/Banner.stories.tsx +445 -391
  5. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  6. package/dist/components/button/Button.stories.tsx +585 -230
  7. package/dist/components/button/index.tsx +7 -7
  8. package/dist/components/card/Card.stories.tsx +619 -301
  9. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  10. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  11. package/dist/components/chip/Chip.stories.tsx +362 -168
  12. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
  13. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  14. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  15. package/dist/components/command/Command.stories.tsx +533 -856
  16. package/dist/components/dialog/Dialog.stories.tsx +505 -949
  17. package/dist/components/divider/Divider.stories.tsx +265 -502
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -993
  20. package/dist/components/drawer/index.tsx +3 -3
  21. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
  22. package/dist/components/form/Form.stories.tsx +560 -274
  23. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  24. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
  25. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  26. package/dist/components/if-else/if-else.stories.tsx +370 -83
  27. package/dist/components/input/Input.stories.tsx +436 -368
  28. package/dist/components/label/Label.stories.tsx +156 -154
  29. package/dist/components/list/List.stories.tsx +485 -822
  30. package/dist/components/marquee/Marquee.stories.tsx +356 -694
  31. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
  32. package/dist/components/overlay/Overlay.stories.tsx +452 -818
  33. package/dist/components/overlay/index.tsx +4 -4
  34. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  35. package/dist/components/popover/Popover.stories.tsx +484 -873
  36. package/dist/components/radio/Radio.stories.tsx +432 -124
  37. package/dist/components/resizable/Resizable.stories.tsx +496 -752
  38. package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
  39. package/dist/components/search/Search.stories.tsx +314 -575
  40. package/dist/components/select/Select.stories.tsx +684 -787
  41. package/dist/components/sheet/Sheet.stories.tsx +671 -936
  42. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  43. package/dist/components/slider/Slider.stories.tsx +384 -737
  44. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  45. package/dist/components/switch/Switch.stories.tsx +461 -208
  46. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  47. package/dist/components/table/Table.stories.tsx +770 -914
  48. package/dist/components/tabs/Tabs.stories.tsx +459 -1400
  49. package/dist/components/tag/Tag.stories.tsx +714 -542
  50. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  51. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
  52. package/dist/components/toast/Toast.stories.tsx +452 -1333
  53. package/dist/components/toggle/Toggle.stories.tsx +488 -909
  54. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
  55. package/dist/components/typography/Typography.stories.tsx +406 -89
  56. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  57. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  58. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  59. package/dist/icons/Icons.stories.tsx +0 -12
  60. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
  61. package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
  62. package/dist/icons/all-icons.tsx +124 -87
  63. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
  64. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
  65. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
  66. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
  67. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
  68. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
  69. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
  70. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
  71. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
  72. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
  73. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
  74. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
  75. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
  76. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
  77. package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
  78. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
  79. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
  80. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
  81. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
  82. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
  83. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
  84. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
  85. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
  86. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
  87. package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
  88. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
  89. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
  90. package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
  91. package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
  92. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
  93. package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
  94. package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
  95. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
  96. package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
  97. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
  98. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
  99. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
  100. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
  101. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
  102. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
  103. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
  104. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
  105. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
  106. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
  107. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
  108. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
  109. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
  110. package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
  111. package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
  112. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
  113. package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
  114. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
  115. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
  116. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
  117. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
  118. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
  119. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
  120. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
  121. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
  122. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
  123. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
  124. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
  125. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
  126. package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
  127. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
  128. package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
  129. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
  130. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
  131. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
  132. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
  133. package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
  134. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
  135. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
  136. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
  137. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
  138. package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
  139. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
  140. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
  141. package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
  142. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
  143. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
  144. package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
  145. package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
  146. package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
  147. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
  148. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
  149. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
  150. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
  151. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
  152. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
  153. package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
  154. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
  155. package/dist/icons/spinner-solid-icon/index.tsx +6 -1
  156. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
  157. package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
  158. package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
  159. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
  160. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
  161. package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
  162. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
  163. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
  164. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
  165. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
  166. package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
  167. package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
  168. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
  169. package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
  170. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
  171. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
  172. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
  173. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
  174. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
  175. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
  176. package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
  177. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
  178. package/dist/index.cjs +84 -84
  179. package/dist/index.js +84 -84
  180. package/dist/styles/aural-all-theme.css +1222 -0
  181. package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
  182. package/dist/styles/aural-light-theme.css +1047 -0
  183. package/package.json +1 -1
@@ -1,6 +1,20 @@
1
1
  import React from "react"
2
2
  import type { Meta, StoryObj } from "@storybook/react-vite"
3
3
 
4
+ import { CircularPlayIcon } from "src/ui/icons/circular-play-icon"
5
+ import { EditBigIcon } from "src/ui/icons/edit-big-icon"
6
+ import { ImageIcon } from "src/ui/icons/image-icon"
7
+ import { VideoPlaylistIcon } from "src/ui/icons/video-play-list-icon"
8
+ import {
9
+ IconColorVariations,
10
+ IconDefaultCanvas,
11
+ IconPlaygroundCanvas,
12
+ IconSizeVariations,
13
+ IconUsageCanvas,
14
+ IconUsageSection,
15
+ } from "src/ui/story-spec/icons/icon-story-canvas"
16
+ import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
17
+
4
18
  import { CameraIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof CameraIcon> = {
@@ -11,1073 +25,79 @@ const meta: Meta<typeof CameraIcon> = {
11
25
  backgrounds: {
12
26
  default: "dark",
13
27
  values: [
14
- { name: "dark", value: "#0a0a0a" },
15
- { name: "darker", value: "#000000" },
16
- { name: "light", value: "#ffffff" },
28
+ { name: "dark", value: "var(--color-fm-surface-primary)" },
29
+ { name: "darker", value: "var(--color-fm-neutral-0)" },
30
+ { name: "light", value: "var(--color-fm-neutral-1100)" },
17
31
  ],
18
32
  },
19
33
  docs: {
20
34
  page: () => (
21
- <>
22
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 ;
27
- max-width: none ;
28
- background: transparent ;
29
- }
30
- .sbdocs-content {
31
- max-width: none ;
32
- padding: 0 ;
33
- margin: 0 ;
34
- background: transparent ;
35
- }
36
- .docs-story {
37
- background: transparent ;
38
- }
39
- .sbdocs {
40
- background: transparent ;
41
- }
42
- body {
43
- background: #0a0a0a ;
44
- }
45
- #storybook-docs {
46
- background: #0a0a0a ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: white ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: rgba(255, 255, 255, 0.7) ;
57
- }
58
- .sbdocs-code {
59
- background: rgba(255, 255, 255, 0.1) ;
60
- color: rgba(168, 85, 247, 1) ;
61
- border: 1px solid rgba(255, 255, 255, 0.1) ;
62
- }
63
- .sbdocs-pre {
64
- background: rgba(0, 0, 0, 0.4) ;
65
- border: 1px solid rgba(255, 255, 255, 0.1) ;
66
- }
67
- .sbdocs-table {
68
- background: rgba(255, 255, 255, 0.05) ;
69
- border: 1px solid rgba(255, 255, 255, 0.1) ;
70
- }
71
- .sbdocs-table th {
72
- background: rgba(255, 255, 255, 0.05) ;
73
- color: white ;
74
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
75
- }
76
- .sbdocs-table td {
77
- color: rgba(255, 255, 255, 0.7) ;
78
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="min-h-screen bg-gradient-to-br from-gray-900 via-indigo-900/20 to-gray-900">
84
- {/* Header */}
85
- <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
86
- <div className="absolute inset-0 bg-gradient-to-r from-indigo-500/10 via-transparent to-blue-500/10" />
87
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
- <div className="!space-y-6 text-center">
89
- <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-indigo-500/30 bg-gradient-to-br from-indigo-500/20 to-blue-500/20">
90
- <CameraIcon className="h-12 w-12 text-indigo-400" />
91
- </div>
92
- <h1 className="text-5xl font-bold !text-white">CameraIcon</h1>
93
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
94
- A versatile video camera icon featuring a sleek recording
95
- device design. Essential for video conferencing
96
- applications, streaming platforms, content creation tools,
97
- and any interface where video recording, livestreaming, or
98
- camera controls are needed.
99
- </p>
100
-
101
- {/* Stats */}
102
- <div className="flex items-center justify-center gap-8 pt-8">
103
- <div className="text-center">
104
- <div className="text-3xl font-bold text-indigo-300">
105
- Video Recording
106
- </div>
107
- <div className="text-sm text-white/60">
108
- Content creation
109
- </div>
110
- </div>
111
- <div className="h-8 w-px bg-white/20" />
112
- <div className="text-center">
113
- <div className="text-3xl font-bold text-blue-300">
114
- Live Streaming
115
- </div>
116
- <div className="text-sm text-white/60">
117
- Broadcasting ready
118
- </div>
119
- </div>
120
- <div className="h-8 w-px bg-white/20" />
121
- <div className="text-center">
122
- <div className="text-3xl font-bold text-cyan-300">
123
- Professional
124
- </div>
125
- <div className="text-sm text-white/60">
126
- Studio quality design
127
- </div>
128
- </div>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
-
134
- {/* Content */}
135
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
136
- {/* Quick Usage */}
137
- <div className="!space-y-8">
138
- <h2 className="text-center text-3xl font-bold !text-white">
139
- Quick Start
140
- </h2>
141
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
142
- <div className="!space-y-4">
143
- <h3 className="text-xl font-semibold !text-indigo-300">
144
- Basic Usage
145
- </h3>
146
- <div className="rounded-lg bg-black/40 p-4">
147
- <pre className="overflow-x-auto text-sm !text-green-300">
148
- {`import { CameraIcon } from "@icons/camera-icon"
149
-
150
- function VideoCall() {
35
+ <AuralIconDocsPage
36
+ accentToken="info"
37
+ features={[
38
+ {
39
+ title: "Media Capture",
40
+ description: "Camera / photo input icon",
41
+ },
42
+ { title: "Profile Photo", description: "Avatar upload trigger" },
43
+ { title: "Accessible", description: "ARIA-ready by default" },
44
+ ]}
45
+ quickStart={{
46
+ codeExample: `import { CameraIcon } from "src/ui/icons/camera-icon"
47
+
48
+ function UploadPhoto() {
151
49
  return (
152
- <button
153
- onClick={toggleCamera}
154
- className="p-3 hover:bg-white/10 rounded-lg"
155
- aria-label="Toggle camera"
156
- >
157
- <CameraIcon className="h-6 w-6 text-indigo-400" />
50
+ <button className="flex items-center gap-2">
51
+ <CameraIcon className="h-5 w-5 text-fm-icon-active" />
52
+ <span>Upload photo</span>
158
53
  </button>
159
54
  )
160
- }`}
161
- </pre>
162
- </div>
163
- </div>
164
-
165
- <div className="!space-y-4">
166
- <h3 className="text-xl font-semibold !text-indigo-300">
167
- Live Preview
168
- </h3>
169
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
170
- <button className="rounded-lg border border-indigo-500/20 bg-indigo-500/10 p-3 transition-colors hover:bg-indigo-500/20">
171
- <CameraIcon className="h-6 w-6 text-indigo-400" />
172
- </button>
173
- </div>
174
- </div>
175
- </div>
176
- </div>
177
-
178
- {/* Props Documentation */}
179
- <div className="!space-y-8">
180
- <h2 className="text-center text-3xl font-bold !text-white">
181
- Props & Configuration
182
- </h2>
183
-
184
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
185
- <div className="bg-white/5 p-4">
186
- <h3 className="text-xl font-semibold !text-white">Props</h3>
187
- </div>
188
- <table className="!my-0 w-full">
189
- <thead className="bg-white/5">
190
- <tr className="border-b border-white/10">
191
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
192
- Prop
193
- </th>
194
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
195
- Type
196
- </th>
197
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
198
- Default
199
- </th>
200
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
201
- Description
202
- </th>
203
- </tr>
204
- </thead>
205
- <tbody>
206
- {" "}
207
- <tr className="!bg-black/10">
208
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
209
- withAccessibility
210
- </td>
211
- <td className="px-6 py-4 text-sm !text-white/70">
212
- boolean
213
- </td>
214
- <td className="px-6 py-4 text-sm !text-white/50">
215
- true
216
- </td>
217
- <td className="px-6 py-4 text-sm !text-white/70">
218
- Whether to wrap the icon with accessibility feature
219
- </td>
220
- </tr>
221
- <tr className="border-b border-white/5 !bg-black/10">
222
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
223
- height
224
- </td>
225
- <td className="px-6 py-4 text-sm !text-white/70">
226
- number | string
227
- </td>
228
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
229
- <td className="px-6 py-4 text-sm !text-white/70">
230
- Height of the icon in pixels
231
- </td>
232
- </tr>
233
- <tr className="border-b border-white/5">
234
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
235
- stroke
236
- </td>
237
- <td className="px-6 py-4 text-sm !text-white/70">
238
- string
239
- </td>
240
- <td className="px-6 py-4 text-sm !text-white/50">
241
- currentColor
242
- </td>
243
- <td className="px-6 py-4 text-sm !text-white/70">
244
- Stroke color of the icon
245
- </td>
246
- </tr>
247
- <tr className="border-b border-white/5 !bg-black/10">
248
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
249
- strokeWidth
250
- </td>
251
- <td className="px-6 py-4 text-sm !text-white/70">
252
- string | number
253
- </td>
254
- <td className="px-6 py-4 text-sm !text-white/50">
255
- 1.5
256
- </td>
257
- <td className="px-6 py-4 text-sm !text-white/70">
258
- Width of the stroke
259
- </td>
260
- </tr>
261
- <tr className="border-b border-white/5">
262
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
263
- strokeLinecap
264
- </td>
265
- <td className="px-6 py-4 text-sm !text-white/70">
266
- string
267
- </td>
268
- <td className="px-6 py-4 text-sm !text-white/50">
269
- round
270
- </td>
271
- <td className="px-6 py-4 text-sm !text-white/70">
272
- Style of line endings (round for smooth appearance)
273
- </td>
274
- </tr>
275
- <tr className="border-b border-white/5 !bg-black/10">
276
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
277
- className
278
- </td>
279
- <td className="px-6 py-4 text-sm !text-white/70">
280
- string
281
- </td>
282
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
283
- <td className="px-6 py-4 text-sm !text-white/70">
284
- CSS classes for styling (use for overrides)
285
- </td>
286
- </tr>
287
- <tr className="!bg-black/10">
288
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
289
- ...svgProps
290
- </td>
291
- <td className="px-6 py-4 text-sm !text-white/70">
292
- SVGProps
293
- </td>
294
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
295
- <td className="px-6 py-4 text-sm !text-white/70">
296
- All standard SVG element props
297
- </td>
298
- </tr>
299
- </tbody>
300
- </table>
301
- </div>
302
- </div>
303
-
304
- {/* Size Variations */}
305
- <div className="!space-y-8">
306
- <h2 className="text-center text-3xl font-bold !text-white">
307
- Size Variations
308
- </h2>
309
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
310
- <div className="!space-y-6">
311
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
312
- <div className="!space-y-4">
313
- <h3 className="text-lg font-semibold !text-indigo-300">
314
- Standard Sizes
315
- </h3>
316
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
317
- <div className="text-center">
318
- <CameraIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
319
- <span className="text-xs text-white/60">12px</span>
320
- </div>
321
- <div className="text-center">
322
- <CameraIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
323
- <span className="text-xs text-white/60">16px</span>
324
- </div>
325
- <div className="text-center">
326
- <CameraIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
327
- <span className="text-xs text-white/60">20px</span>
328
- </div>
329
- <div className="text-center">
330
- <CameraIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
331
- <span className="text-xs text-white/60">24px</span>
332
- </div>
333
- <div className="text-center">
334
- <CameraIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
335
- <span className="text-xs text-white/60">32px</span>
336
- </div>
337
- <div className="text-center">
338
- <CameraIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
339
- <span className="text-xs text-white/60">48px</span>
340
- </div>
341
- </div>
342
- </div>
343
-
344
- <div className="!space-y-4">
345
- <h3 className="text-lg font-semibold !text-indigo-300">
346
- Code Example
347
- </h3>
348
- <div className="rounded-lg bg-black/40 p-4">
349
- <pre className="overflow-x-auto text-sm !text-cyan-300">
350
- {`// Small (16px) - compact controls
351
- <CameraIcon className="h-4 w-4" />
352
-
353
- // Medium (24px) - standard interface
354
- <CameraIcon className="h-6 w-6" />
355
-
356
- // Large (32px) - prominent displays
357
- <CameraIcon className="h-8 w-8" />
358
-
359
- // Custom size
360
- <CameraIcon width={40} height={40} />`}
361
- </pre>
362
- </div>
363
- </div>
364
- </div>
365
- </div>
366
- </div>
367
- </div>
368
-
369
- {/* Color Variations */}
370
- <div className="!space-y-8">
371
- <h2 className="text-center text-3xl font-bold !text-white">
372
- Color Variations
373
- </h2>
374
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
375
- <div className="!space-y-4">
376
- <h3 className="text-lg font-semibold !text-indigo-300">
377
- Semantic Colors
378
- </h3>
379
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
380
- <div className="flex items-center gap-4">
381
- <CameraIcon className="h-6 w-6 text-indigo-400" />
382
- <div>
383
- <div className="text-sm font-medium text-white">
384
- Video Call
385
- </div>
386
- <div className="text-xs text-white/60">
387
- text-indigo-400
388
- </div>
389
- </div>
390
- </div>
391
- <div className="flex items-center gap-4">
392
- <CameraIcon className="h-6 w-6 text-blue-400" />
393
- <div>
394
- <div className="text-sm font-medium text-white">
395
- Live Stream
396
- </div>
397
- <div className="text-xs text-white/60">
398
- text-blue-400
399
- </div>
400
- </div>
401
- </div>
402
- <div className="flex items-center gap-4">
403
- <CameraIcon className="h-6 w-6 text-emerald-400" />
404
- <div>
405
- <div className="text-sm font-medium text-white">
406
- Recording Active
407
- </div>
408
- <div className="text-xs text-white/60">
409
- text-emerald-400
410
- </div>
411
- </div>
412
- </div>
413
- <div className="flex items-center gap-4">
414
- <CameraIcon className="h-6 w-6 text-red-400" />
415
- <div>
416
- <div className="text-sm font-medium text-white">
417
- Camera Off
418
- </div>
419
- <div className="text-xs text-white/60">
420
- text-red-400
421
- </div>
422
- </div>
423
- </div>
424
- </div>
425
- </div>
426
-
427
- <div className="!space-y-4">
428
- <h3 className="text-lg font-semibold !text-indigo-300">
429
- Custom Colors
430
- </h3>
431
- <div className="rounded-lg bg-black/40 p-4">
432
- <pre className="overflow-x-auto text-sm !text-green-300">
433
- {`// Using Tailwind classes
434
- <CameraIcon className="h-6 w-6 text-indigo-400" />
435
- <CameraIcon className="h-6 w-6 text-blue-500" />
436
-
437
- // Using CSS custom properties
438
- <CameraIcon
439
- className="h-6 w-6"
440
- style={{ color: 'var(--color-camera)' }}
441
- />
442
-
443
- // Direct stroke prop
444
- <CameraIcon
445
- width={24}
446
- height={24}
447
- stroke="#6366f1"
448
- />`}
449
- </pre>
450
- </div>
451
- </div>
452
- </div>
453
- </div>
454
-
455
- {/* Usage Examples */}
456
- <div className="!space-y-8">
457
- <h2 className="text-center text-3xl font-bold !text-white">
458
- Usage Examples
459
- </h2>
460
-
461
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
462
- {/* Video Call Interface */}
463
- <div className="!space-y-4">
464
- <h3 className="text-lg font-semibold !text-indigo-300">
465
- Video Call Interface
466
- </h3>
467
- <div className="!space-y-4">
468
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
469
- <div className="relative mb-4 aspect-video overflow-hidden rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
470
- <div className="absolute inset-4 rounded-lg border border-white/10 bg-gray-800">
471
- <div className="absolute top-4 left-4 flex items-center gap-2">
472
- <div className="h-3 w-3 animate-pulse rounded-full bg-emerald-500"></div>
473
- <span className="text-xs text-white/60">
474
- Live
475
- </span>
476
- </div>
477
- <div className="absolute inset-0 flex items-center justify-center">
478
- <div className="flex h-16 w-16 items-center justify-center rounded-full bg-white/10">
479
- <span className="text-2xl">👤</span>
480
- </div>
481
- </div>
482
- </div>
483
- <div className="absolute bottom-4 left-1/2 -translate-x-1/2">
484
- <div className="flex items-center gap-3 rounded-lg bg-black/60 p-3">
485
- <button className="rounded-lg border border-indigo-500/30 bg-indigo-500/20 p-2 transition-colors hover:bg-indigo-500/30">
486
- <CameraIcon className="h-5 w-5 text-indigo-400" />
487
- </button>
488
- <button className="rounded-lg border border-white/20 bg-white/10 p-2 transition-colors hover:bg-white/20">
489
- <div className="relative h-5 w-5">
490
- <div className="absolute inset-0 rounded-full bg-white"></div>
491
- <div className="absolute top-1 left-1 h-3 w-3 rounded-full bg-gray-800"></div>
492
- </div>
493
- </button>
494
- <button className="rounded-lg border border-red-500/30 bg-red-500/20 p-2 transition-colors hover:bg-red-500/30">
495
- <div className="relative h-5 w-5">
496
- <div className="absolute inset-0 rotate-45 border-2 border-red-400"></div>
497
- <div className="absolute inset-0 -rotate-45 border-2 border-red-400"></div>
498
- </div>
499
- </button>
500
- </div>
501
- </div>
502
- </div>
503
- <div className="text-center">
504
- <div className="text-sm font-medium text-white">
505
- "Team Standup Meeting"
506
- </div>
507
- <div className="text-xs text-white/60">
508
- Camera enabled for video call
509
- </div>
510
- </div>
511
- </div>
512
- <div className="rounded-lg bg-black/40 p-4">
513
- <pre className="overflow-x-auto text-sm !text-green-300">
514
- {`// Video call interface with camera controls
515
- <div className="video-call-interface">
516
- <div className="video-container">
517
- <VideoStream />
518
- <div className="call-status">
519
- <LiveIndicator />
520
- <span>Live</span>
521
- </div>
522
- </div>
523
- <div className="call-controls">
524
- <button
525
- onClick={toggleCamera}
526
- className={cameraEnabled ? 'camera-on' : 'camera-off'}
527
- aria-label={cameraEnabled ? 'Turn off camera' : 'Turn on camera'}
528
- >
529
- <CameraIcon className="h-5 w-5 text-indigo-400" />
530
- </button>
531
- <MicrophoneButton />
532
- <EndCallButton />
533
- </div>
534
- </div>`}
535
- </pre>
536
- </div>
537
- </div>
538
- </div>
539
-
540
- {/* Streaming Dashboard */}
541
- <div className="!space-y-4">
542
- <h3 className="text-lg font-semibold !text-indigo-300">
543
- Live Streaming Dashboard
544
- </h3>
545
- <div className="!space-y-4">
546
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
547
- <div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
548
- <div className="flex items-center justify-between border-b border-white/10 bg-white/5 p-4">
549
- <div className="flex items-center gap-3">
550
- <div className="flex items-center gap-2">
551
- <div className="h-3 w-3 animate-pulse rounded-full bg-red-500"></div>
552
- <span className="text-sm text-white">LIVE</span>
553
- </div>
554
- <span className="text-sm text-white/60">•</span>
555
- <span className="text-sm text-white/60">
556
- 1,247 viewers
557
- </span>
558
- </div>
559
- <div className="flex items-center gap-2">
560
- <button className="rounded border border-indigo-500/30 bg-indigo-500/20 p-2 transition-colors hover:bg-indigo-500/30">
561
- <CameraIcon className="h-4 w-4 text-indigo-400" />
562
- </button>
563
- <button className="rounded border border-white/20 bg-white/10 p-2 transition-colors hover:bg-white/20">
564
- <span className="text-xs">⚙️</span>
565
- </button>
566
- </div>
567
- </div>
568
- <div className="p-6">
569
- <div className="mb-4 grid grid-cols-2 gap-4">
570
- <div className="rounded-lg bg-black/30 p-4 text-center">
571
- <div className="text-lg font-bold text-emerald-400">
572
- 1080p
573
- </div>
574
- <div className="text-xs text-white/60">
575
- Video Quality
576
- </div>
577
- </div>
578
- <div className="rounded-lg bg-black/30 p-4 text-center">
579
- <div className="text-lg font-bold text-blue-400">
580
- 60fps
581
- </div>
582
- <div className="text-xs text-white/60">
583
- Frame Rate
584
- </div>
585
- </div>
586
- </div>
587
- <div className="text-center">
588
- <div className="text-sm font-medium text-white">
589
- Stream Status: Active
590
- </div>
591
- <div className="text-xs text-white/60">
592
- Camera feed broadcasting
593
- </div>
594
- </div>
595
- </div>
596
- </div>
597
- </div>
598
- <div className="rounded-lg bg-black/40 p-4">
599
- <pre className="overflow-x-auto text-sm !text-green-300">
600
- {`// Live streaming dashboard
601
- <div className="streaming-dashboard">
602
- <div className="stream-header">
603
- <div className="live-status">
604
- <LiveIndicator />
605
- <span>LIVE</span>
606
- <ViewerCount count={1247} />
607
- </div>
608
- <div className="stream-controls">
609
- <button
610
- onClick={toggleStreamCamera}
611
- className="camera-control"
612
- aria-label="Toggle stream camera"
613
- >
614
- <CameraIcon className="h-4 w-4 text-indigo-400" />
615
- </button>
616
- <StreamSettingsButton />
617
- </div>
618
- </div>
619
- <div className="stream-metrics">
620
- <QualityIndicator quality="1080p" />
621
- <FrameRateIndicator fps={60} />
622
- </div>
623
- </div>`}
624
- </pre>
625
- </div>
626
- </div>
627
- </div>
628
-
629
- {/* Content Creation Studio */}
630
- <div className="!space-y-4">
631
- <h3 className="text-lg font-semibold !text-indigo-300">
632
- Content Creation Studio
633
- </h3>
634
- <div className="!space-y-4">
635
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
636
- <div className="rounded-lg border border-white/20 bg-black/50 p-6">
637
- <div className="mb-6 flex items-start justify-between">
638
- <div>
639
- <h4 className="text-lg font-semibold text-white">
640
- Recording Studio
641
- </h4>
642
- <p className="text-sm text-white/60">
643
- Professional video production
644
- </p>
645
- </div>
646
- <div className="flex items-center gap-2">
647
- <span className="rounded border border-red-500/30 bg-red-500/20 px-2 py-1 text-xs text-red-400">
648
- REC
649
- </span>
650
- </div>
651
- </div>
652
- <div className="mb-6 grid grid-cols-3 gap-4">
653
- <div className="rounded-lg bg-white/5 p-4 text-center">
654
- <CameraIcon className="mx-auto mb-2 h-8 w-8 text-indigo-400" />
655
- <div className="text-sm font-medium text-white">
656
- Main Camera
657
- </div>
658
- <div className="text-xs text-emerald-400">
659
- Active
660
- </div>
661
- </div>
662
- <div className="rounded-lg bg-white/5 p-4 text-center">
663
- <CameraIcon className="mx-auto mb-2 h-8 w-8 text-white/40" />
664
- <div className="text-sm font-medium text-white">
665
- Side Angle
666
- </div>
667
- <div className="text-xs text-white/40">
668
- Standby
669
- </div>
670
- </div>
671
- <div className="rounded-lg bg-white/5 p-4 text-center">
672
- <CameraIcon className="mx-auto mb-2 h-8 w-8 text-white/40" />
673
- <div className="text-sm font-medium text-white">
674
- Overhead
675
- </div>
676
- <div className="text-xs text-white/40">
677
- Standby
678
- </div>
679
- </div>
680
- </div>
681
- <div className="flex items-center justify-between">
682
- <div className="flex items-center gap-3">
683
- <button className="rounded border border-red-500/30 bg-red-500/20 px-4 py-2 text-red-400 transition-colors hover:bg-red-500/30">
684
- Stop Recording
685
- </button>
686
- <button className="rounded border border-white/20 bg-white/10 px-4 py-2 text-white transition-colors hover:bg-white/20">
687
- Pause
688
- </button>
689
- </div>
690
- <div className="text-sm text-white/60">
691
- Recording: 12:34
692
- </div>
693
- </div>
694
- </div>
695
- </div>
696
- <div className="rounded-lg bg-black/40 p-4">
697
- <pre className="overflow-x-auto text-sm !text-green-300">
698
- {`// Multi-camera content creation studio
699
- <div className="recording-studio">
700
- <div className="studio-header">
701
- <div className="studio-info">
702
- <h3>Recording Studio</h3>
703
- <p>Professional video production</p>
704
- </div>
705
- <RecordingIndicator isRecording={true} />
706
- </div>
707
- <div className="camera-grid">
708
- {cameras.map((camera, index) => (
709
- <div key={camera.id} className="camera-feed">
710
- <CameraIcon
711
- className={camera.active ? 'h-8 w-8 text-indigo-400' : 'h-8 w-8 text-white/40'}
712
- />
713
- <div className="camera-label">{camera.name}</div>
714
- <div className="camera-status">{camera.status}</div>
715
- </div>
716
- ))}
717
- </div>
718
- <div className="recording-controls">
719
- <RecordingControls />
720
- <TimerDisplay duration={recordingDuration} />
721
- </div>
722
- </div>`}
723
- </pre>
724
- </div>
725
- </div>
726
- </div>
727
-
728
- {/* Security Camera System */}
729
- <div className="!space-y-4">
730
- <h3 className="text-lg font-semibold !text-indigo-300">
731
- Security Camera System
732
- </h3>
733
- <div className="!space-y-4">
734
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
735
- <div className="rounded-lg bg-black/30 p-4">
736
- <div className="mb-4 flex items-center justify-between">
737
- <h4 className="text-sm font-semibold text-white">
738
- Security Monitor
739
- </h4>
740
- <div className="flex items-center gap-2">
741
- <div className="h-2 w-2 animate-pulse rounded-full bg-emerald-500"></div>
742
- <span className="text-xs text-white/60">
743
- All systems operational
744
- </span>
745
- </div>
746
- </div>
747
- <div className="grid grid-cols-2 gap-3">
748
- <div className="rounded border border-white/10 bg-black/50 p-3">
749
- <div className="mb-2 flex items-center justify-between">
750
- <span className="text-xs text-white/60">
751
- Camera 01
752
- </span>
753
- <CameraIcon className="h-3 w-3 text-emerald-400" />
754
- </div>
755
- <div className="flex aspect-video items-center justify-center rounded-sm bg-gray-800">
756
- <span className="text-xs text-white/40">
757
- Front Entrance
758
- </span>
759
- </div>
760
- </div>
761
- <div className="rounded border border-white/10 bg-black/50 p-3">
762
- <div className="mb-2 flex items-center justify-between">
763
- <span className="text-xs text-white/60">
764
- Camera 02
765
- </span>
766
- <CameraIcon className="h-3 w-3 text-emerald-400" />
767
- </div>
768
- <div className="flex aspect-video items-center justify-center rounded-sm bg-gray-800">
769
- <span className="text-xs text-white/40">
770
- Parking Lot
771
- </span>
772
- </div>
773
- </div>
774
- <div className="rounded border border-white/10 bg-black/50 p-3">
775
- <div className="mb-2 flex items-center justify-between">
776
- <span className="text-xs text-white/60">
777
- Camera 03
778
- </span>
779
- <CameraIcon className="h-3 w-3 text-red-400" />
780
- </div>
781
- <div className="flex aspect-video items-center justify-center rounded-sm bg-gray-800">
782
- <span className="text-xs text-red-400">
783
- Offline
784
- </span>
785
- </div>
786
- </div>
787
- <div className="rounded border border-white/10 bg-black/50 p-3">
788
- <div className="mb-2 flex items-center justify-between">
789
- <span className="text-xs text-white/60">
790
- Camera 04
791
- </span>
792
- <CameraIcon className="h-3 w-3 text-emerald-400" />
793
- </div>
794
- <div className="flex aspect-video items-center justify-center rounded-sm bg-gray-800">
795
- <span className="text-xs text-white/40">
796
- Back Exit
797
- </span>
798
- </div>
799
- </div>
800
- </div>
801
- </div>
802
- </div>
803
- <div className="rounded-lg bg-black/40 p-4">
804
- <pre className="overflow-x-auto text-sm !text-green-300">
805
- {`// Security camera monitoring system
806
- <div className="security-monitor">
807
- <div className="monitor-header">
808
- <h3>Security Monitor</h3>
809
- <SystemStatus status="operational" />
810
- </div>
811
- <div className="camera-grid">
812
- {securityCameras.map((camera) => (
813
- <div key={camera.id} className="camera-feed">
814
- <div className="camera-header">
815
- <span className="camera-label">{camera.name}</span>
816
- <CameraIcon
817
- className={
818
- camera.status === 'online'
819
- ? 'h-3 w-3 text-emerald-400'
820
- : 'h-3 w-3 text-red-400'
821
- }
822
- />
823
- </div>
824
- <VideoFeed
825
- src={camera.stream}
826
- status={camera.status}
55
+ }`,
56
+ livePreview: (
57
+ <button className="flex items-center gap-2">
58
+ <CameraIcon className="text-fm-icon-active h-6 w-6" />
59
+ </button>
60
+ ),
61
+ }}
62
+ relatedIcons={[
63
+ {
64
+ name: "ImageIcon",
65
+ description: "Image / media placeholder",
66
+ icon: ImageIcon,
67
+ accentToken: "info",
68
+ },
69
+ {
70
+ name: "EditBigIcon",
71
+ description: "Edit / modify action icon",
72
+ icon: EditBigIcon,
73
+ accentToken: "positive",
74
+ },
75
+ {
76
+ name: "VideoPlaylistIcon",
77
+ description: "Video playlist / queue icon",
78
+ icon: VideoPlaylistIcon,
79
+ accentToken: "warning",
80
+ },
81
+ {
82
+ name: "CircularPlayIcon",
83
+ description: "Circular play button icon",
84
+ icon: CircularPlayIcon,
85
+ accentToken: "negative",
86
+ },
87
+ ]}
827
88
  />
828
- </div>
829
- ))}
830
- </div>
831
- </div>`}
832
- </pre>
833
- </div>
834
- </div>
835
- </div>
836
- </div>
837
- </div>
838
-
839
- {/* Accessibility */}
840
- <div className="!space-y-8">
841
- <h2 className="text-center text-3xl font-bold !text-white">
842
- Accessibility Features
843
- </h2>
844
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
845
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
846
- <h3 className="text-lg font-semibold !text-green-300">
847
- ✅ Built-in Features
848
- </h3>
849
- <ul className="!space-y-2 text-sm !text-white/70">
850
- <li className="!text-white/70">
851
- Uses Radix UI AccessibleIcon wrapper
852
- </li>
853
- <li className="!text-white/70">
854
- Provides screen reader label "Camera icon"
855
- </li>
856
- <li className="!text-white/70">
857
- Supports keyboard navigation when interactive
858
- </li>
859
- <li className="!text-white/70">
860
- Maintains proper color contrast ratios
861
- </li>
862
- <li className="!text-white/70">
863
- Uses round strokeLinecap for smooth visual appearance
864
- </li>
865
- </ul>
866
- </div>
867
-
868
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
869
- <h3 className="text-lg font-semibold !text-indigo-300">
870
- 💡 Best Practices
871
- </h3>
872
- <ul className="!space-y-2 text-sm text-white/70">
873
- <li className="!text-white/70">
874
- Always provide descriptive aria-labels for camera
875
- controls
876
- </li>
877
- <li className="!text-white/70">
878
- Use color coding to indicate camera status (green=on,
879
- red=off)
880
- </li>
881
- <li className="!text-white/70">
882
- Ensure sufficient touch target size (44px minimum)
883
- </li>
884
- <li className="!text-white/70">
885
- Provide visual feedback for camera state changes
886
- </li>
887
- <li className="!text-white/70">
888
- Consider privacy notifications when camera is active
889
- </li>
890
- </ul>
891
- </div>
892
- </div>
893
-
894
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
895
- <h3 className="mb-4 text-lg font-semibold !text-blue-300">
896
- Proper ARIA Implementation
897
- </h3>
898
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
899
- <div className="rounded-lg bg-black/40 p-4">
900
- <pre className="overflow-x-auto text-sm !text-cyan-300">
901
- {`// Video call camera toggle
902
- <button
903
- aria-label={cameraEnabled ? 'Turn off camera' : 'Turn on camera'}
904
- aria-pressed={cameraEnabled}
905
- onClick={toggleCamera}
906
- className={cameraEnabled ? 'camera-on' : 'camera-off'}
907
- >
908
- <CameraIcon className="h-5 w-5 text-indigo-400" />
909
- </button>
910
-
911
- // Live streaming camera control
912
- <button
913
- aria-label="Toggle streaming camera"
914
- aria-describedby="stream-status"
915
- onClick={toggleStreamCamera}
916
- >
917
- <CameraIcon className="h-4 w-4 text-indigo-400" />
918
- </button>
919
- <div id="stream-status" className="sr-only">
920
- Camera is currently {isStreaming ? 'broadcasting' : 'offline'}
921
- </div>
922
-
923
- // Security camera feed
924
- <div
925
- role="img"
926
- aria-label={camera.name + ' security feed'}
927
- aria-describedby={camera.id + '-status'}
928
- >
929
- <CameraIcon
930
- className={camera.online ? 'text-emerald-400' : 'text-red-400'}
931
- />
932
- </div>
933
- <div id={camera.id + '-status'} className="sr-only">
934
- Camera status: {camera.online ? 'online' : 'offline'}
935
- </div>
936
-
937
- // Recording studio camera selection
938
- <button
939
- aria-label={camera.name + ' camera'}
940
- aria-pressed={camera.active}
941
- aria-describedby="camera-controls-hint"
942
- onClick={() => selectCamera(camera.id)}
943
- >
944
- <CameraIcon className="h-8 w-8 text-indigo-400" />
945
- </button>
946
- <div id="camera-controls-hint" className="sr-only">
947
- Press to activate this camera feed
948
- </div>`}
949
- </pre>
950
- </div>
951
- <div className="!space-y-4">
952
- <p className="text-sm !text-white/70">
953
- When using CameraIcon for video controls, always provide
954
- clear context about the camera's current state and what
955
- action the control will perform.
956
- </p>
957
- <div className="rounded-lg border border-indigo-500/20 bg-indigo-500/10 p-4">
958
- <div className="flex items-center gap-2 text-sm text-indigo-200">
959
- <CameraIcon className="h-4 w-4" />
960
- <span>
961
- Consider privacy indicators when camera is active
962
- </span>
963
- </div>
964
- </div>
965
- </div>
966
- </div>
967
- </div>
968
- </div>
969
-
970
- {/* Related Icons */}
971
- <div className="!space-y-8">
972
- <h2 className="text-center text-3xl font-bold !text-white">
973
- Related Icons
974
- </h2>
975
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
976
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
977
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
978
- <span className="!text-2xl !text-white">🎙️</span>
979
- </div>
980
- <div>
981
- <div className="font-medium text-white">
982
- MicrophoneIcon
983
- </div>
984
- <div className="text-xs text-white/60">
985
- Audio recording
986
- </div>
987
- </div>
988
- </div>
989
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
990
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
991
- <span className="!text-2xl !text-white">⏺️</span>
992
- </div>
993
- <div>
994
- <div className="font-medium text-white">RecordIcon</div>
995
- <div className="text-xs text-white/60">
996
- Start recording
997
- </div>
998
- </div>
999
- </div>
1000
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1001
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
1002
- <span className="!text-2xl !text-white">📹</span>
1003
- </div>
1004
- <div>
1005
- <div className="font-medium text-white">VideoIcon</div>
1006
- <div className="text-xs text-white/60">Video file</div>
1007
- </div>
1008
- </div>
1009
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1010
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
1011
- <span className="!text-2xl !text-white">📡</span>
1012
- </div>
1013
- <div>
1014
- <div className="font-medium text-white">
1015
- BroadcastIcon
1016
- </div>
1017
- <div className="text-xs text-white/60">
1018
- Live streaming
1019
- </div>
1020
- </div>
1021
- </div>
1022
- </div>
1023
- </div>
1024
- </div>
1025
-
1026
- {/* Footer */}
1027
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
1028
- <div className="!mx-auto max-w-7xl px-6 py-8">
1029
- <div className="!space-y-4 text-center">
1030
- <p className="!text-white/60">
1031
- CameraIcon is part of the Aural UI icon library, built with
1032
- accessibility and video production best practices in mind.
1033
- </p>
1034
- <p className="text-sm !text-white/40">
1035
- All icons use Radix UI's AccessibleIcon for screen reader
1036
- compatibility and follow WCAG guidelines for media controls
1037
- and privacy considerations.
1038
- </p>
1039
- </div>
1040
- </div>
1041
- </div>
1042
- </div>
1043
- </>
1044
89
  ),
1045
90
  },
1046
91
  },
1047
92
  tags: ["autodocs"],
1048
93
  argTypes: {
1049
- width: {
1050
- control: { type: "range", min: 8, max: 96, step: 2 },
1051
- description: "Width of the icon in pixels",
1052
- },
1053
- withAccessibility: {
1054
- control: "boolean",
1055
- description: "Whether to wrap the icon with accessibility features",
1056
- },
1057
- height: {
1058
- control: { type: "range", min: 8, max: 96, step: 2 },
1059
- description: "Height of the icon in pixels",
1060
- },
1061
- stroke: {
1062
- control: "color",
1063
- description: "Stroke color of the icon",
1064
- },
1065
- strokeWidth: {
1066
- control: { type: "range", min: 0.5, max: 4, step: 0.5 },
1067
- description: "Width of the stroke",
1068
- },
1069
- strokeLinecap: {
1070
- control: { type: "select" },
1071
- options: ["round", "square", "butt"],
1072
- description: "Style of line endings",
1073
- },
1074
94
  className: {
1075
95
  control: "text",
1076
- description: "CSS classes for styling (use for overrides)",
96
+ description: "CSS classes including color token",
1077
97
  },
1078
- onClick: {
1079
- action: "clicked",
1080
- description: "Click handler for interactive use",
98
+ withAccessibility: {
99
+ control: "boolean",
100
+ description: "Wrap with accessibility label",
1081
101
  },
1082
102
  },
1083
103
  }
@@ -1085,195 +105,74 @@ function VideoCall() {
1085
105
  export default meta
1086
106
  type Story = StoryObj<typeof CameraIcon>
1087
107
 
1088
- // Story parameters for consistent dark theme
1089
- const storyParameters = {
1090
- backgrounds: {
1091
- default: "dark",
1092
- values: [
1093
- { name: "dark", value: "#0a0a0a" },
1094
- { name: "darker", value: "#000000" },
1095
- ],
1096
- },
1097
- }
1098
-
1099
108
  export const Default: Story = {
1100
109
  args: {
1101
- className: "h-8 w-8 text-indigo-400",
110
+ className: "h-6 w-6 text-fm-icon-active",
1102
111
  withAccessibility: true,
1103
112
  },
1104
- parameters: storyParameters,
1105
113
  render: (args) => (
1106
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
114
+ <IconDefaultCanvas>
1107
115
  <CameraIcon {...args} />
1108
- </div>
116
+ </IconDefaultCanvas>
1109
117
  ),
1110
118
  }
1111
119
 
1112
120
  export const SizeVariations: Story = {
1113
- parameters: {
1114
- ...storyParameters,
1115
- docs: {
1116
- description: {
1117
- story:
1118
- "CameraIcon in different sizes, from small video call controls to large content creation interfaces.",
1119
- },
1120
- },
1121
- },
1122
- render: () => (
1123
- <div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1124
- <div className="text-center">
1125
- <CameraIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
1126
- <span className="text-xs text-white/60">12px</span>
1127
- </div>
1128
- <div className="text-center">
1129
- <CameraIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
1130
- <span className="text-xs text-white/60">16px</span>
1131
- </div>
1132
- <div className="text-center">
1133
- <CameraIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
1134
- <span className="text-xs text-white/60">20px</span>
1135
- </div>
1136
- <div className="text-center">
1137
- <CameraIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
1138
- <span className="text-xs text-white/60">24px</span>
1139
- </div>
1140
- <div className="text-center">
1141
- <CameraIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
1142
- <span className="text-xs text-white/60">32px</span>
1143
- </div>
1144
- <div className="text-center">
1145
- <CameraIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
1146
- <span className="text-xs text-white/60">48px</span>
1147
- </div>
1148
- </div>
1149
- ),
121
+ render: () => <IconSizeVariations icon={CameraIcon} />,
1150
122
  }
1151
123
 
1152
124
  export const ColorVariations: Story = {
1153
- parameters: {
1154
- ...storyParameters,
1155
- docs: {
1156
- description: {
1157
- story:
1158
- "CameraIcon in different semantic colors for various video and camera applications.",
1159
- },
1160
- },
1161
- },
1162
- render: () => (
1163
- <div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
1164
- <div className="text-center">
1165
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
1166
- <CameraIcon className="h-8 w-8 text-indigo-400" />
1167
- </div>
1168
- <div className="text-sm font-medium text-white">Video Call</div>
1169
- <div className="text-xs text-indigo-400">text-indigo-400</div>
1170
- </div>
1171
- <div className="text-center">
1172
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
1173
- <CameraIcon className="h-8 w-8 text-blue-400" />
1174
- </div>
1175
- <div className="text-sm font-medium text-white">Live Stream</div>
1176
- <div className="text-xs text-blue-400">text-blue-400</div>
1177
- </div>
1178
- <div className="text-center">
1179
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
1180
- <CameraIcon className="h-8 w-8 text-emerald-400" />
1181
- </div>
1182
- <div className="text-sm font-medium text-white">Recording Active</div>
1183
- <div className="text-xs text-emerald-400">text-emerald-400</div>
1184
- </div>
1185
- <div className="text-center">
1186
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-red-500/30 bg-red-500/20">
1187
- <CameraIcon className="h-8 w-8 text-red-400" />
1188
- </div>
1189
- <div className="text-sm font-medium text-white">Camera Off</div>
1190
- <div className="text-xs text-red-400">text-red-400</div>
1191
- </div>
1192
- </div>
1193
- ),
125
+ render: () => <IconColorVariations icon={CameraIcon} />,
1194
126
  }
1195
127
 
1196
128
  export const UsageExamples: Story = {
1197
- parameters: {
1198
- ...storyParameters,
1199
- docs: {
1200
- description: {
1201
- story:
1202
- "Real-world usage examples showing CameraIcon in different video and streaming contexts.",
1203
- },
1204
- },
1205
- },
1206
129
  render: () => (
1207
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1208
- {/* Video Call */}
1209
- <div className="!space-y-2">
1210
- <h3 className="text-sm font-medium text-white">Video Call Interface</h3>
1211
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1212
- <div className="flex items-center gap-3 rounded-lg bg-black/60 p-3">
1213
- <button className="rounded-lg border border-indigo-500/30 bg-indigo-500/20 p-2 transition-colors hover:bg-indigo-500/30">
1214
- <CameraIcon className="h-5 w-5 text-indigo-400" />
1215
- </button>
1216
- <button className="rounded-lg border border-white/20 bg-white/10 p-2 transition-colors hover:bg-white/20">
1217
- <div className="relative h-5 w-5">
1218
- <div className="absolute inset-0 rounded-full bg-white"></div>
1219
- <div className="absolute top-1 left-1 h-3 w-3 rounded-full bg-gray-800"></div>
1220
- </div>
1221
- </button>
1222
- <button className="rounded-lg border border-red-500/30 bg-red-500/20 p-2 transition-colors hover:bg-red-500/30">
1223
- <div className="relative h-5 w-5">
1224
- <div className="absolute inset-0 rotate-45 border-2 border-red-400"></div>
1225
- <div className="absolute inset-0 -rotate-45 border-2 border-red-400"></div>
1226
- </div>
130
+ <IconUsageCanvas>
131
+ <IconUsageSection title="Profile Photo Upload">
132
+ <div className="flex flex-col items-center gap-3">
133
+ <div className="bg-fm-divider-secondary relative h-20 w-20 rounded-full">
134
+ <button className="bg-fm-surface-primary border-fm-divider-secondary absolute right-0 bottom-0 flex h-7 w-7 items-center justify-center rounded-full border">
135
+ <CameraIcon className="text-fm-icon-active h-4 w-4" />
1227
136
  </button>
1228
137
  </div>
138
+ <span className="text-fm-secondary font-fm-text text-xs">
139
+ Tap to change photo
140
+ </span>
1229
141
  </div>
1230
- </div>
1231
-
1232
- {/* Streaming Dashboard */}
1233
- <div className="!space-y-2">
1234
- <h3 className="text-sm font-medium text-white">
1235
- Live Streaming Dashboard
1236
- </h3>
1237
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1238
- <div className="flex items-center justify-between rounded bg-white/5 p-3">
1239
- <div className="flex items-center gap-3">
1240
- <div className="h-3 w-3 animate-pulse rounded-full bg-red-500"></div>
1241
- <span className="text-sm text-white">LIVE</span>
1242
- <span className="text-sm text-white/60">1,247 viewers</span>
1243
- </div>
1244
- <div className="flex items-center gap-2">
1245
- <button className="rounded border border-indigo-500/30 bg-indigo-500/20 p-2 transition-colors hover:bg-indigo-500/30">
1246
- <CameraIcon className="h-4 w-4 text-indigo-400" />
1247
- </button>
1248
- </div>
1249
- </div>
142
+ </IconUsageSection>
143
+
144
+ <IconUsageSection title="Media Input Button">
145
+ <button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
146
+ <CameraIcon className="text-fm-icon-active h-4 w-4" />
147
+ <span className="text-fm-primary font-fm-text text-sm">
148
+ Add photo or video
149
+ </span>
150
+ </button>
151
+ </IconUsageSection>
152
+
153
+ <IconUsageSection title="Toolbar Icons">
154
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-xl border px-4 py-2">
155
+ {[CameraIcon, ImageIcon, VideoPlaylistIcon].map((Icon, i) => (
156
+ <button key={i}>
157
+ <Icon
158
+ className={`h-5 w-5 ${i === 0 ? "text-fm-icon-active" : "text-fm-icon-inactive"}`}
159
+ />
160
+ </button>
161
+ ))}
1250
162
  </div>
1251
- </div>
1252
- </div>
163
+ </IconUsageSection>
164
+ </IconUsageCanvas>
1253
165
  ),
1254
166
  }
1255
167
 
1256
168
  export const Playground: Story = {
1257
- parameters: {
1258
- ...storyParameters,
1259
- docs: {
1260
- description: {
1261
- story:
1262
- "Interactive playground to experiment with different CameraIcon configurations.",
1263
- },
1264
- },
1265
- },
1266
169
  args: {
1267
- width: 24,
1268
- height: 24,
1269
- className: "text-indigo-400",
1270
- strokeLinecap: "round",
170
+ className: "h-8 w-8 text-fm-icon-active",
171
+ withAccessibility: true,
1271
172
  },
1272
173
  render: (args) => (
1273
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1274
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1275
- <CameraIcon {...args} />
1276
- </div>
1277
- </div>
174
+ <IconPlaygroundCanvas>
175
+ <CameraIcon {...args} />
176
+ </IconPlaygroundCanvas>
1278
177
  ),
1279
178
  }