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 { AppleLogoIcon } from "src/ui/icons/apple-logo-icon"
5
+ import { LinkedInIcon } from "src/ui/icons/linked-in-icon"
6
+ import { TwitterXIcon } from "src/ui/icons/twitter-x-icon"
7
+ import { YoutubeIcon } from "src/ui/icons/youtube-icon"
8
+ import {
9
+ IconBrandColors,
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 { GoogleLogoIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof GoogleLogoIcon> = {
@@ -11,777 +25,77 @@ const meta: Meta<typeof GoogleLogoIcon> = {
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 !important;
27
- max-width: none !important;
28
- background: transparent !important;
29
- }
30
- .sbdocs-content {
31
- max-width: none !important;
32
- padding: 0 !important;
33
- margin: 0 !important;
34
- background: transparent !important;
35
- }
36
- .docs-story {
37
- background: transparent !important;
38
- }
39
- .sbdocs {
40
- background: transparent !important;
41
- }
42
- body {
43
- background: #0a0a0a !important;
44
- }
45
- #storybook-docs {
46
- background: #0a0a0a !important;
47
- }
48
- .sbdocs-preview {
49
- background: transparent !important;
50
- border: none !important;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: white !important;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: rgba(255, 255, 255, 0.7) !important;
57
- }
58
- .sbdocs-code {
59
- background: rgba(255, 255, 255, 0.1) !important;
60
- color: rgba(168, 85, 247, 1) !important;
61
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
62
- }
63
- .sbdocs-pre {
64
- background: rgba(0, 0, 0, 0.4) !important;
65
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
66
- }
67
- .sbdocs-table {
68
- background: rgba(255, 255, 255, 0.05) !important;
69
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
70
- }
71
- .sbdocs-table th {
72
- background: rgba(255, 255, 255, 0.05) !important;
73
- color: white !important;
74
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
75
- }
76
- .sbdocs-table td {
77
- color: rgba(255, 255, 255, 0.7) !important;
78
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="min-h-screen bg-gradient-to-br from-gray-900 via-red-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-red-500/10 via-yellow-500/10 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-gray-500/30 bg-gradient-to-br from-red-500/20 via-yellow-500/20 to-blue-500/20">
90
- <GoogleLogoIcon className="h-12 w-12" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- GoogleLogoIcon
94
- </h1>
95
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
- The iconic Google logo for authentication, platform
97
- integration, and service identification. Built with
98
- accessibility in mind using Radix UI's AccessibleIcon
99
- wrapper for seamless screen reader support.
100
- </p>
101
-
102
- {/* Stats */}
103
- <div className="flex items-center justify-center gap-8 pt-8">
104
- <div className="text-center">
105
- <div className="text-3xl font-bold text-red-300">
106
- Accessible
107
- </div>
108
- <div className="text-sm text-white/60">
109
- Screen reader friendly
110
- </div>
111
- </div>
112
- <div className="h-8 w-px bg-white/20" />
113
- <div className="text-center">
114
- <div className="text-3xl font-bold text-yellow-300">
115
- Scalable
116
- </div>
117
- <div className="text-sm text-white/60">
118
- Any size needed
119
- </div>
120
- </div>
121
- <div className="h-8 w-px bg-white/20" />
122
- <div className="text-center">
123
- <div className="text-3xl font-bold text-blue-300">
124
- Flexible
125
- </div>
126
- <div className="text-sm text-white/60">
127
- Customizable styling
128
- </div>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
-
135
- {/* Content */}
136
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
137
- {/* Quick Usage */}
138
- <div className="!space-y-8">
139
- <h2 className="text-center text-3xl font-bold !text-white">
140
- Quick Start
141
- </h2>
142
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
- <div className="!space-y-4">
144
- <h3 className="text-xl font-semibold !text-red-300">
145
- Basic Usage
146
- </h3>
147
- <div className="rounded-lg bg-black/40 p-4">
148
- <pre className="overflow-x-auto text-sm !text-green-300">
149
- {`import { GoogleLogoIcon } from "@icons/google-logo-icon"
150
-
151
- function LoginPage() {
35
+ <AuralIconDocsPage
36
+ accentToken="info"
37
+ features={[
38
+ { title: "Brand Colors", description: "Official Google palette" },
39
+ { title: "Auth Icon", description: "Sign-in with Google" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { GoogleLogoIcon } from "src/ui/icons/google-logo-icon"
44
+
45
+ function GoogleSignIn() {
152
46
  return (
153
- <button className="flex items-center gap-3">
47
+ <button className="flex items-center gap-2 border rounded-lg px-4 py-2">
154
48
  <GoogleLogoIcon className="h-5 w-5" />
155
- <span>Sign in with Google</span>
49
+ Continue with Google
156
50
  </button>
157
51
  )
158
- }`}
159
- </pre>
160
- </div>
161
- </div>
162
-
163
- <div className="!space-y-4">
164
- <h3 className="text-xl font-semibold !text-red-300">
165
- Live Preview
166
- </h3>
167
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
168
- <button className="flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-6 py-3 text-gray-700 transition-colors hover:bg-gray-50">
169
- <GoogleLogoIcon className="h-5 w-5" />
170
- <span>Sign in with Google</span>
171
- </button>
172
- </div>
173
- </div>
174
- </div>
175
- </div>
176
-
177
- {/* Props Documentation */}
178
- <div className="!space-y-8">
179
- <h2 className="text-center text-3xl font-bold !text-white">
180
- Props & Configuration
181
- </h2>
182
-
183
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
184
- <div className="bg-white/5 p-4">
185
- <h3 className="text-xl font-semibold !text-white">Props</h3>
186
- </div>
187
- <table className="!my-0 w-full">
188
- <thead className="bg-white/5">
189
- <tr className="border-b border-white/10">
190
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
191
- Prop
192
- </th>
193
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
194
- Type
195
- </th>
196
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
197
- Default
198
- </th>
199
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
200
- Description
201
- </th>
202
- </tr>
203
- </thead>
204
- <tbody>
205
- {" "}
206
- <tr className="!bg-black/10">
207
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
208
- withAccessibility
209
- </td>
210
- <td className="px-6 py-4 text-sm !text-white/70">
211
- boolean
212
- </td>
213
- <td className="px-6 py-4 text-sm !text-white/50">
214
- true
215
- </td>
216
- <td className="px-6 py-4 text-sm !text-white/70">
217
- Whether to wrap the icon with accessibility feature
218
- </td>
219
- </tr>
220
- <tr className="border-b border-white/5 !bg-black/10">
221
- <td className="px-6 py-4 font-mono text-sm !text-red-300">
222
- height
223
- </td>
224
- <td className="px-6 py-4 text-sm !text-white/70">
225
- number | string
226
- </td>
227
- <td className="px-6 py-4 text-sm !text-white/50">20</td>
228
- <td className="px-6 py-4 text-sm !text-white/70">
229
- Height of the icon in pixels
230
- </td>
231
- </tr>
232
- <tr className="border-b border-white/5">
233
- <td className="px-6 py-4 font-mono text-sm !text-red-300">
234
- fill
235
- </td>
236
- <td className="px-6 py-4 text-sm !text-white/70">
237
- string
238
- </td>
239
- <td className="px-6 py-4 text-sm !text-white/50">
240
- Google colors
241
- </td>
242
- <td className="px-6 py-4 text-sm !text-white/70">
243
- Fill color of the icon paths
244
- </td>
245
- </tr>
246
- <tr className="border-b border-white/5 !bg-black/10">
247
- <td className="px-6 py-4 font-mono text-sm !text-red-300">
248
- className
249
- </td>
250
- <td className="px-6 py-4 text-sm !text-white/70">
251
- string
252
- </td>
253
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
254
- <td className="px-6 py-4 text-sm !text-white/70">
255
- CSS classes for styling
256
- </td>
257
- </tr>
258
- <tr className="!bg-black/10">
259
- <td className="px-6 py-4 font-mono text-sm !text-red-300">
260
- ...svgProps
261
- </td>
262
- <td className="px-6 py-4 text-sm !text-white/70">
263
- SVGProps
264
- </td>
265
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
266
- <td className="px-6 py-4 text-sm !text-white/70">
267
- All standard SVG element props
268
- </td>
269
- </tr>
270
- </tbody>
271
- </table>
272
- </div>
273
- </div>
274
-
275
- {/* Size Variations */}
276
- <div className="!space-y-8">
277
- <h2 className="text-center text-3xl font-bold !text-white">
278
- Size Variations
279
- </h2>
280
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
281
- <div className="!space-y-6">
282
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
283
- <div className="!space-y-4">
284
- <h3 className="text-lg font-semibold !text-red-300">
285
- Standard Sizes
286
- </h3>
287
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
288
- <div className="text-center">
289
- <GoogleLogoIcon className="!mx-auto mb-2 h-3 w-3" />
290
- <span className="text-xs text-white/60">12px</span>
291
- </div>
292
- <div className="text-center">
293
- <GoogleLogoIcon className="!mx-auto mb-2 h-4 w-4" />
294
- <span className="text-xs text-white/60">16px</span>
295
- </div>
296
- <div className="text-center">
297
- <GoogleLogoIcon className="!mx-auto mb-2 h-5 w-5" />
298
- <span className="text-xs text-white/60">20px</span>
299
- </div>
300
- <div className="text-center">
301
- <GoogleLogoIcon className="!mx-auto mb-2 h-6 w-6" />
302
- <span className="text-xs text-white/60">24px</span>
303
- </div>
304
- <div className="text-center">
305
- <GoogleLogoIcon className="!mx-auto mb-2 h-8 w-8" />
306
- <span className="text-xs text-white/60">32px</span>
307
- </div>
308
- <div className="text-center">
309
- <GoogleLogoIcon className="!mx-auto mb-2 h-12 w-12" />
310
- <span className="text-xs text-white/60">48px</span>
311
- </div>
312
- </div>
313
- </div>
314
-
315
- <div className="!space-y-4">
316
- <h3 className="text-lg font-semibold !text-red-300">
317
- Code Example
318
- </h3>
319
- <div className="rounded-lg bg-black/40 p-4">
320
- <pre className="overflow-x-auto text-sm !text-blue-300">
321
- {`// Small (16px)
322
- <GoogleLogoIcon className="h-4 w-4" />
323
-
324
- // Medium (24px)
325
- <GoogleLogoIcon className="h-6 w-6" />
326
-
327
- // Large (32px)
328
- <GoogleLogoIcon className="h-8 w-8" />
329
-
330
- // Custom size
331
- <GoogleLogoIcon width={40} height={40} />`}
332
- </pre>
333
- </div>
334
- </div>
335
- </div>
336
- </div>
337
- </div>
338
- </div>
339
-
340
- {/* Color Variations */}
341
- <div className="!space-y-8">
342
- <h2 className="text-center text-3xl font-bold !text-white">
343
- Color Variations
344
- </h2>
345
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
346
- <div className="!space-y-4">
347
- <h3 className="text-lg font-semibold !text-red-300">
348
- Brand Colors
349
- </h3>
350
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
351
- <div className="flex items-center gap-4">
352
- <GoogleLogoIcon className="h-6 w-6" />
353
- <div>
354
- <div className="text-sm font-medium text-white">
355
- Original Google Colors
356
- </div>
357
- <div className="text-xs text-white/60">
358
- Default multicolor
359
- </div>
360
- </div>
361
- </div>
362
- <div className="flex items-center gap-4">
363
- <div className="flex h-6 w-6 items-center justify-center rounded bg-white">
364
- <GoogleLogoIcon className="h-5 w-5" />
365
- </div>
366
- <div>
367
- <div className="text-sm font-medium text-white">
368
- On White Background
369
- </div>
370
- <div className="text-xs text-white/60">
371
- Optimal contrast
372
- </div>
373
- </div>
374
- </div>
375
- <div className="flex items-center gap-4">
376
- <div className="flex h-6 w-6 items-center justify-center rounded bg-gray-100">
377
- <GoogleLogoIcon className="h-5 w-5" />
378
- </div>
379
- <div>
380
- <div className="text-sm font-medium text-white">
381
- On Light Background
382
- </div>
383
- <div className="text-xs text-white/60">
384
- Light gray surface
385
- </div>
386
- </div>
387
- </div>
388
- <div className="flex items-center gap-4">
389
- <div className="flex h-6 w-6 items-center justify-center rounded bg-gray-800">
390
- <GoogleLogoIcon className="h-5 w-5" />
391
- </div>
392
- <div>
393
- <div className="text-sm font-medium text-white">
394
- On Dark Background
395
- </div>
396
- <div className="text-xs text-white/60">
397
- Dark surface adaptation
398
- </div>
399
- </div>
400
- </div>
401
- </div>
402
- </div>
403
-
404
- <div className="!space-y-4">
405
- <h3 className="text-lg font-semibold !text-red-300">
406
- Implementation Notes
407
- </h3>
408
- <div className="rounded-lg bg-black/40 p-4">
409
- <pre className="overflow-x-auto text-sm !text-green-300">
410
- {`// Google logo uses specific brand colors
411
- // Red: #E94335, Green: #34A753
412
- // Blue: #4285F3, Yellow: #FABB04
413
-
414
- // Basic usage (maintains Google colors)
415
- <GoogleLogoIcon className="h-6 w-6" />
416
-
417
- // On white backgrounds (recommended)
418
- <div className="bg-white p-4 rounded">
419
- <GoogleLogoIcon className="h-6 w-6" />
420
- </div>
421
-
422
- // Custom sizing
423
- <GoogleLogoIcon
424
- width={32}
425
- height={32}
426
- className="flex-shrink-0"
427
- />`}
428
- </pre>
429
- </div>
430
- </div>
431
- </div>
432
- </div>
433
-
434
- {/* Usage Examples */}
435
- <div className="!space-y-8">
436
- <h2 className="text-center text-3xl font-bold !text-white">
437
- Usage Examples
438
- </h2>
439
-
440
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
441
- {/* Authentication Button */}
442
- <div className="!space-y-4">
443
- <h3 className="text-lg font-semibold !text-red-300">
444
- Authentication Button
445
- </h3>
446
- <div className="!space-y-4">
447
- <div className="flex gap-4">
448
- <button className="flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-6 py-3 text-gray-700 transition-colors hover:bg-gray-50">
449
- <GoogleLogoIcon className="h-5 w-5" />
450
- Sign in with Google
451
- </button>
452
- <button className="flex items-center gap-3 rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-white transition-colors hover:bg-white/10">
453
- <GoogleLogoIcon className="h-4 w-4" />
454
- Continue
455
- </button>
456
- </div>
457
- <div className="rounded-lg bg-black/40 p-4">
458
- <pre className="overflow-x-auto text-sm !text-green-300">
459
- {`// Primary Google authentication button
460
- <button className="flex items-center gap-3 bg-white border border-gray-300 px-6 py-3 rounded-lg text-gray-700">
461
- <GoogleLogoIcon className="h-5 w-5" />
462
- Sign in with Google
463
- </button>
464
-
465
- // Secondary continue button
466
- <button className="flex items-center gap-3 bg-white/5 border border-white/20 px-4 py-2 rounded-lg">
467
- <GoogleLogoIcon className="h-4 w-4" />
468
- Continue
469
- </button>`}
470
- </pre>
471
- </div>
472
- </div>
473
- </div>
474
-
475
- {/* Service Integration */}
476
- <div className="!space-y-4">
477
- <h3 className="text-lg font-semibold !text-red-300">
478
- Service Integration
479
- </h3>
480
- <div className="!space-y-4">
481
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
482
- <div className="flex items-center justify-between">
483
- <div className="flex items-center gap-4">
484
- <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-white">
485
- <GoogleLogoIcon className="h-6 w-6" />
486
- </div>
487
- <div>
488
- <div className="font-medium text-white">
489
- Google Drive
490
- </div>
491
- <div className="text-sm text-white/60">
492
- Connected to your account
493
- </div>
494
- </div>
495
- </div>
496
- <div className="h-2 w-2 rounded-full bg-green-400"></div>
497
- </div>
498
- </div>
499
- <div className="rounded-lg bg-black/40 p-4">
500
- <pre className="overflow-x-auto text-sm !text-green-300">
501
- {`<div className="flex items-center justify-between">
502
- <div className="flex items-center gap-4">
503
- <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-white">
504
- <GoogleLogoIcon className="h-6 w-6" />
505
- </div>
506
- <div>
507
- <div className="font-medium text-white">Google Drive</div>
508
- <div className="text-sm text-white/60">Connected to your account</div>
509
- </div>
510
- </div>
511
- <div className="h-2 w-2 rounded-full bg-green-400"></div>
512
- </div>`}
513
- </pre>
514
- </div>
515
- </div>
516
- </div>
517
-
518
- {/* Account Selector */}
519
- <div className="!space-y-4">
520
- <h3 className="text-lg font-semibold !text-red-300">
521
- Account Selector
522
- </h3>
523
- <div className="!space-y-4">
524
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
525
- <div className="space-y-3">
526
- <div className="flex items-center gap-3 rounded-lg bg-white/5 p-3">
527
- <GoogleLogoIcon className="h-5 w-5" />
528
- <div className="flex-1">
529
- <div className="text-sm font-medium text-white">
530
- john@gmail.com
531
- </div>
532
- <div className="text-xs text-white/60">
533
- Personal account
534
- </div>
535
- </div>
536
- <div className="h-2 w-2 rounded-full bg-blue-400"></div>
537
- </div>
538
- </div>
539
- </div>
540
- <div className="rounded-lg bg-black/40 p-4">
541
- <pre className="overflow-x-auto text-sm !text-green-300">
542
- {`<div className="flex items-center gap-3 rounded-lg bg-white/5 p-3">
543
- <GoogleLogoIcon className="h-5 w-5" />
544
- <div className="flex-1">
545
- <div className="text-sm font-medium text-white">john@gmail.com</div>
546
- <div className="text-xs text-white/60">Personal account</div>
547
- </div>
548
- <div className="h-2 w-2 rounded-full bg-blue-400"></div>
549
- </div>`}
550
- </pre>
551
- </div>
552
- </div>
553
- </div>
554
-
555
- {/* Integration Card */}
556
- <div className="!space-y-4">
557
- <h3 className="text-lg font-semibold !text-red-300">
558
- Integration Card
559
- </h3>
560
- <div className="!space-y-4">
561
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
562
- <div className="!space-y-4 text-center">
563
- <div className="!mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-white">
564
- <GoogleLogoIcon className="h-8 w-8" />
565
- </div>
566
- <div className="!space-y-2">
567
- <h4 className="font-medium !text-white">
568
- Connect Google Workspace
569
- </h4>
570
- <p className="text-sm !text-white/70">
571
- Sync your Google Calendar, Drive, and Gmail
572
- </p>
573
- </div>
574
- <button className="rounded-lg bg-blue-500 px-4 py-2 text-sm text-white transition-colors hover:bg-blue-600">
575
- Connect Now
576
- </button>
577
- </div>
578
- </div>
579
- <div className="rounded-lg bg-black/40 p-4">
580
- <pre className="overflow-x-auto text-sm !text-green-300">
581
- {`<div className="text-center">
582
- <div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-lg bg-white">
583
- <GoogleLogoIcon className="h-8 w-8" />
584
- </div>
585
- <h4 className="mb-2 font-medium text-white">Connect Google Workspace</h4>
586
- <p className="mb-4 text-sm text-white/60">
587
- Sync your Google Calendar, Drive, and Gmail
588
- </p>
589
- <button className="bg-blue-500 hover:bg-blue-600 px-4 py-2 rounded-lg text-sm text-white">
590
- Connect Now
591
- </button>
592
- </div>`}
593
- </pre>
594
- </div>
595
- </div>
596
- </div>
597
- </div>
598
- </div>
599
-
600
- {/* Accessibility */}
601
- <div className="!space-y-8">
602
- <h2 className="text-center text-3xl font-bold !text-white">
603
- Accessibility Features
604
- </h2>
605
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
606
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
607
- <h3 className="text-lg font-semibold !text-green-300">
608
- ✅ Built-in Features
609
- </h3>
610
- <ul className="!space-y-2 text-sm !text-white/70">
611
- <li className="!text-white/70">
612
- Uses Radix UI AccessibleIcon wrapper
613
- </li>
614
- <li className="!text-white/70">
615
- Provides screen reader label "Google logo"
616
- </li>
617
- <li className="!text-white/70">
618
- Supports keyboard navigation when interactive
619
- </li>
620
- <li className="!text-white/70">
621
- Maintains proper color contrast ratios
622
- </li>
623
- <li className="!text-white/70">
624
- Scales with user's font size preferences
625
- </li>
626
- </ul>
627
- </div>
628
-
629
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
630
- <h3 className="text-lg font-semibold !text-red-300">
631
- 💡 Best Practices
632
- </h3>
633
- <ul className="!space-y-2 text-sm text-white/70">
634
- <li className="!text-white/70">
635
- Always pair with descriptive text for actions
636
- </li>
637
- <li className="!text-white/70">
638
- Use white backgrounds for optimal contrast
639
- </li>
640
- <li className="!text-white/70">
641
- Ensure sufficient spacing around the logo
642
- </li>
643
- <li className="!text-white/70">
644
- Add focus states for interactive elements
645
- </li>
646
- <li className="!text-white/70">
647
- Follow Google's brand guidelines for usage
648
- </li>
649
- </ul>
650
- </div>
651
- </div>
652
-
653
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
654
- <h3 className="mb-4 text-lg font-semibold !text-purple-300">
655
- Custom Accessibility Label
656
- </h3>
657
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
658
- <div className="rounded-lg bg-black/40 p-4">
659
- <pre className="overflow-x-auto text-sm !text-blue-300">
660
- {`// Custom implementation with specific label
661
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
662
-
663
- function CustomGoogleIcon({ label = "Google", ...props }) {
664
- return (
665
- <AccessibleIcon label={label}>
666
- <GoogleLogoIcon {...props} />
667
- </AccessibleIcon>
668
- )
669
- }
670
-
671
- // Usage with specific context
672
- <CustomGoogleIcon
673
- label="Sign in with Google"
674
- className="h-5 w-5"
675
- />`}
676
- </pre>
677
- </div>
678
- <div className="!space-y-4">
679
- <p className="text-sm !text-white/70">
680
- For specific contexts, you can wrap the GoogleLogoIcon
681
- with a custom AccessibleIcon component that provides
682
- more descriptive labels for authentication or service
683
- integration.
684
- </p>
685
- <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
686
- <div className="flex items-center gap-2 text-sm text-red-200">
687
- <GoogleLogoIcon className="h-4 w-4" />
688
- <span>
689
- This approach gives screen readers more context
690
- </span>
691
- </div>
692
- </div>
693
- </div>
694
- </div>
695
- </div>
696
- </div>
697
-
698
- {/* Related Icons */}
699
- <div className="!space-y-8">
700
- <h2 className="text-center text-3xl font-bold !text-white">
701
- Related Icons
702
- </h2>
703
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
704
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
705
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
706
- <span className="text-2xl">🔐</span>
707
- </div>
708
- <div>
709
- <div className="font-medium text-white">LoginIcon</div>
710
- <div className="text-xs text-white/60">
711
- Authentication
712
- </div>
713
- </div>
714
- </div>
715
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
716
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
717
- <span className="text-2xl">👤</span>
718
- </div>
719
- <div>
720
- <div className="font-medium text-white">UserIcon</div>
721
- <div className="text-xs text-white/60">User profile</div>
722
- </div>
723
- </div>
724
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
725
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
726
- <span className="text-2xl">☁️</span>
727
- </div>
728
- <div>
729
- <div className="font-medium text-white">CloudIcon</div>
730
- <div className="text-xs text-white/60">
731
- Cloud services
732
- </div>
733
- </div>
734
- </div>
735
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
736
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
737
- <span className="text-2xl">🔗</span>
738
- </div>
739
- <div>
740
- <div className="font-medium text-white">LinkIcon</div>
741
- <div className="text-xs text-white/60">Integration</div>
742
- </div>
743
- </div>
744
- </div>
745
- </div>
746
- </div>
747
-
748
- {/* Footer */}
749
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
750
- <div className="!mx-auto max-w-7xl px-6 py-8">
751
- <div className="!space-y-4 text-center">
752
- <p className="!text-white/60">
753
- GoogleLogoIcon is part of the Aural UI icon library, built
754
- with accessibility and brand consistency in mind.
755
- </p>
756
- <p className="text-sm !text-white/40">
757
- All icons use Radix UI's AccessibleIcon for screen reader
758
- compatibility and follow WCAG guidelines.
759
- </p>
760
- </div>
761
- </div>
762
- </div>
763
- </div>
764
- </>
52
+ }`,
53
+ livePreview: (
54
+ <button className="border-fm-divider-secondary text-fm-primary font-fm-text flex items-center gap-2 rounded-lg border px-4 py-2 text-sm">
55
+ <GoogleLogoIcon className="h-5 w-5" />
56
+ Continue with Google
57
+ </button>
58
+ ),
59
+ }}
60
+ relatedIcons={[
61
+ {
62
+ name: "AppleLogoIcon",
63
+ description: "Sign in with Apple",
64
+ icon: AppleLogoIcon,
65
+ accentToken: "info",
66
+ },
67
+ {
68
+ name: "LinkedInIcon",
69
+ description: "LinkedIn brand mark",
70
+ icon: LinkedInIcon,
71
+ accentToken: "positive",
72
+ },
73
+ {
74
+ name: "TwitterXIcon",
75
+ description: "X (Twitter) brand mark",
76
+ icon: TwitterXIcon,
77
+ accentToken: "warning",
78
+ },
79
+ {
80
+ name: "YoutubeIcon",
81
+ description: "YouTube brand mark",
82
+ icon: YoutubeIcon,
83
+ accentToken: "negative",
84
+ },
85
+ ]}
86
+ />
765
87
  ),
766
88
  },
767
89
  },
768
90
  tags: ["autodocs"],
769
91
  argTypes: {
770
- width: {
771
- control: { type: "range", min: 8, max: 96, step: 2 },
772
- description: "Width of the icon in pixels",
92
+ className: {
93
+ control: "text",
94
+ description: "CSS classes for the SVG element",
773
95
  },
774
96
  withAccessibility: {
775
97
  control: "boolean",
776
- description: "Whether to wrap the icon with accessibility features",
777
- },
778
- height: {
779
- control: { type: "range", min: 8, max: 96, step: 2 },
780
- description: "Height of the icon in pixels",
781
- },
782
- className: {
783
- control: "text",
784
- description: "CSS classes for styling",
98
+ description: "Wrap with accessibility label",
785
99
  },
786
100
  },
787
101
  }
@@ -789,224 +103,115 @@ function CustomGoogleIcon({ label = "Google", ...props }) {
789
103
  export default meta
790
104
  type Story = StoryObj<typeof GoogleLogoIcon>
791
105
 
792
- // Story parameters for consistent dark theme
793
- const storyParameters = {
794
- backgrounds: {
795
- default: "dark",
796
- values: [
797
- { name: "dark", value: "#0a0a0a" },
798
- { name: "darker", value: "#000000" },
799
- ],
800
- },
801
- }
802
-
803
106
  export const Default: Story = {
804
107
  args: {
805
- width: 21,
806
- height: 20,
807
- className: "",
108
+ className: "h-6 w-6",
808
109
  withAccessibility: true,
809
110
  },
810
- parameters: storyParameters,
811
111
  render: (args) => (
812
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
813
- <div className="rounded-lg bg-white p-4">
814
- <GoogleLogoIcon {...args} />
815
- </div>
816
- </div>
112
+ <IconDefaultCanvas>
113
+ <GoogleLogoIcon {...args} />
114
+ </IconDefaultCanvas>
817
115
  ),
818
116
  }
819
117
 
820
118
  export const SizeVariations: Story = {
821
- parameters: {
822
- ...storyParameters,
823
- docs: {
824
- description: {
825
- story:
826
- "GoogleLogoIcon in different sizes, from small UI elements to large brand displays.",
827
- },
828
- },
829
- },
830
- render: () => (
831
- <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">
832
- <div className="text-center">
833
- <div className="!mx-auto mb-2 rounded bg-white p-2">
834
- <GoogleLogoIcon className="h-3 w-3" />
835
- </div>
836
- <span className="text-xs text-white/60">12px</span>
837
- </div>
838
- <div className="text-center">
839
- <div className="!mx-auto mb-2 rounded bg-white p-2">
840
- <GoogleLogoIcon className="h-4 w-4" />
841
- </div>
842
- <span className="text-xs text-white/60">16px</span>
843
- </div>
844
- <div className="text-center">
845
- <div className="!mx-auto mb-2 rounded bg-white p-2">
846
- <GoogleLogoIcon className="h-5 w-5" />
847
- </div>
848
- <span className="text-xs text-white/60">20px</span>
849
- </div>
850
- <div className="text-center">
851
- <div className="!mx-auto mb-2 rounded bg-white p-2">
852
- <GoogleLogoIcon className="h-6 w-6" />
853
- </div>
854
- <span className="text-xs text-white/60">24px</span>
855
- </div>
856
- <div className="text-center">
857
- <div className="!mx-auto mb-2 rounded bg-white p-2">
858
- <GoogleLogoIcon className="h-8 w-8" />
859
- </div>
860
- <span className="text-xs text-white/60">32px</span>
861
- </div>
862
- <div className="text-center">
863
- <div className="!mx-auto mb-2 rounded bg-white p-3">
864
- <GoogleLogoIcon className="h-12 w-12" />
865
- </div>
866
- <span className="text-xs text-white/60">48px</span>
867
- </div>
868
- </div>
869
- ),
119
+ render: () => <IconSizeVariations icon={GoogleLogoIcon} />,
870
120
  }
871
121
 
872
- export const ColorVariations: Story = {
873
- parameters: {
874
- ...storyParameters,
875
- docs: {
876
- description: {
877
- story:
878
- "GoogleLogoIcon shown on different backgrounds to demonstrate optimal usage contexts.",
879
- },
880
- },
881
- },
122
+ export const BrandColors: Story = {
882
123
  render: () => (
883
- <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">
884
- <div className="text-center">
885
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-white">
886
- <GoogleLogoIcon className="h-8 w-8" />
887
- </div>
888
- <div className="text-sm font-medium text-white">White Background</div>
889
- <div className="text-xs text-white/60">Recommended</div>
890
- </div>
891
- <div className="text-center">
892
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-100">
893
- <GoogleLogoIcon className="h-8 w-8" />
894
- </div>
895
- <div className="text-sm font-medium text-white">Light Background</div>
896
- <div className="text-xs text-gray-400">Good contrast</div>
897
- </div>
898
- <div className="text-center">
899
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-800">
900
- <GoogleLogoIcon className="h-8 w-8" />
901
- </div>
902
- <div className="text-sm font-medium text-white">Dark Background</div>
903
- <div className="text-xs text-gray-400">Acceptable</div>
904
- </div>
905
- <div className="text-center">
906
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-transparent">
907
- <GoogleLogoIcon className="h-8 w-8" />
908
- </div>
909
- <div className="text-sm font-medium text-white">Transparent</div>
910
- <div className="text-xs text-white/60">Original colors</div>
911
- </div>
912
- </div>
124
+ <IconBrandColors
125
+ icon={GoogleLogoIcon}
126
+ variants={[
127
+ {
128
+ label: "Contrast Background",
129
+ description: "Theme contrast",
130
+ cardClassName:
131
+ "border-fm-divider-secondary bg-fm-neutral-1100 h-24 w-24 border",
132
+ iconClassName: "h-8 w-8",
133
+ },
134
+ {
135
+ label: "Secondary Surface",
136
+ description: "Theme surface",
137
+ cardClassName: "bg-fm-surface-secondary h-24 w-24",
138
+ iconClassName: "h-8 w-8",
139
+ },
140
+ {
141
+ label: "Primary Surface",
142
+ description: "Theme surface",
143
+ cardClassName: "bg-fm-surface-primary h-24 w-24",
144
+ iconClassName: "h-8 w-8",
145
+ },
146
+ {
147
+ label: "Transparent",
148
+ description: "Original colors",
149
+ cardClassName:
150
+ "border-fm-divider-contrast h-24 w-24 border bg-transparent",
151
+ iconClassName: "h-8 w-8",
152
+ },
153
+ ]}
154
+ />
913
155
  ),
914
156
  }
915
157
 
916
158
  export const UsageExamples: Story = {
917
- parameters: {
918
- ...storyParameters,
919
- docs: {
920
- description: {
921
- story:
922
- "Real-world usage examples showing GoogleLogoIcon in different authentication and integration contexts.",
923
- },
924
- },
925
- },
926
159
  render: () => (
927
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
928
- {/* Authentication Buttons */}
929
- <div className="!space-y-2">
930
- <h3 className="text-sm font-medium text-white">Authentication</h3>
931
- <div className="flex gap-4">
932
- <button className="flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-6 py-3 text-gray-700 transition-colors hover:bg-gray-50">
160
+ <IconUsageCanvas>
161
+ <IconUsageSection title="Sign In with Google">
162
+ <button className="border-fm-divider-secondary bg-fm-surface-secondary text-fm-primary font-fm-text flex w-full max-w-sm items-center justify-center gap-3 rounded-xl border px-4 py-3 text-sm font-medium">
163
+ <GoogleLogoIcon className="h-5 w-5" />
164
+ Continue with Google
165
+ </button>
166
+ </IconUsageSection>
167
+
168
+ <IconUsageSection title="Auth Provider List">
169
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
170
+ <button className="border-fm-divider-secondary flex w-full items-center gap-3 rounded-lg border px-3 py-2.5">
933
171
  <GoogleLogoIcon className="h-5 w-5" />
934
- Sign in with Google
172
+ <span className="text-fm-primary font-fm-text text-sm">
173
+ Continue with Google
174
+ </span>
935
175
  </button>
936
- <button className="flex items-center gap-3 rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-white transition-colors hover:bg-white/10">
937
- <GoogleLogoIcon className="h-4 w-4" />
938
- Continue
176
+ <button className="border-fm-divider-secondary flex w-full items-center gap-3 rounded-lg border px-3 py-2.5">
177
+ <AppleLogoIcon className="text-fm-icon-active h-5 w-5" />
178
+ <span className="text-fm-primary font-fm-text text-sm">
179
+ Continue with Apple
180
+ </span>
939
181
  </button>
940
182
  </div>
941
- </div>
183
+ </IconUsageSection>
942
184
 
943
- {/* Service Integration */}
944
- <div className="!space-y-2">
945
- <h3 className="text-sm font-medium text-white">Service Integration</h3>
946
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
947
- <div className="flex items-center justify-between">
948
- <div className="flex items-center gap-4">
949
- <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-white">
950
- <GoogleLogoIcon className="h-6 w-6" />
185
+ <IconUsageSection title="Connected Account">
186
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
187
+ <div className="flex items-center gap-3">
188
+ <GoogleLogoIcon className="h-5 w-5" />
189
+ <div>
190
+ <div className="text-fm-primary font-fm-text text-sm font-medium">
191
+ Google
951
192
  </div>
952
- <div>
953
- <div className="font-medium text-white">Google Drive</div>
954
- <div className="text-sm text-white/60">
955
- Connected to your account
956
- </div>
193
+ <div className="text-fm-secondary font-fm-text text-xs">
194
+ user@gmail.com
957
195
  </div>
958
196
  </div>
959
- <div className="h-2 w-2 rounded-full bg-green-400"></div>
960
- </div>
961
- </div>
962
- </div>
963
-
964
- {/* Integration Card */}
965
- <div className="!space-y-2">
966
- <h3 className="text-sm font-medium text-white">Integration Card</h3>
967
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
968
- <div className="!space-y-4 text-center">
969
- <div className="!mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-white">
970
- <GoogleLogoIcon className="h-8 w-8" />
971
- </div>
972
- <div className="!space-y-2">
973
- <h4 className="font-medium !text-white">
974
- Connect Google Workspace
975
- </h4>
976
- <p className="text-sm !text-white/70">
977
- Sync your Google Calendar, Drive, and Gmail
978
- </p>
979
- </div>
980
- <button className="rounded-lg bg-blue-500 px-4 py-2 text-sm text-white transition-colors hover:bg-blue-600">
981
- Connect Now
982
- </button>
983
197
  </div>
198
+ <span className="text-fm-icon-positive font-fm-text text-xs">
199
+ Connected
200
+ </span>
984
201
  </div>
985
- </div>
986
- </div>
202
+ </IconUsageSection>
203
+ </IconUsageCanvas>
987
204
  ),
988
205
  }
989
206
 
990
207
  export const Playground: Story = {
991
- parameters: {
992
- ...storyParameters,
993
- docs: {
994
- description: {
995
- story:
996
- "Interactive playground to experiment with different GoogleLogoIcon configurations.",
997
- },
998
- },
999
- },
1000
208
  args: {
1001
- width: 32,
1002
- height: 32,
1003
- className: "",
209
+ className: "h-8 w-8",
210
+ withAccessibility: true,
1004
211
  },
1005
212
  render: (args) => (
1006
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1007
- <div className="rounded-lg border border-white/10 bg-white p-8">
1008
- <GoogleLogoIcon {...args} />
1009
- </div>
1010
- </div>
213
+ <IconPlaygroundCanvas>
214
+ <GoogleLogoIcon {...args} />
215
+ </IconPlaygroundCanvas>
1011
216
  ),
1012
217
  }