aural-ui 3.0.7 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -136,7 +136,7 @@ export const Interactive: Story = {
|
|
|
136
136
|
return (
|
|
137
137
|
<div className="space-y-4">
|
|
138
138
|
<OtpInputs length={6} onChangeOTP={setOtpValue} />
|
|
139
|
-
<p className="text-
|
|
139
|
+
<p className="text-fm-secondary text-sm">
|
|
140
140
|
Current OTP: {otpValue || "Empty"}
|
|
141
141
|
</p>
|
|
142
142
|
</div>
|
|
@@ -190,10 +190,10 @@ export const AllVariants: Story = {
|
|
|
190
190
|
return (
|
|
191
191
|
<div className="max-w-4xl space-y-8 p-6">
|
|
192
192
|
<div className="space-y-2">
|
|
193
|
-
<h2 className="text-2xl font-bold
|
|
193
|
+
<h2 className="text-fm-primary text-2xl font-bold">
|
|
194
194
|
OTP Input - All Variants
|
|
195
195
|
</h2>
|
|
196
|
-
<p className="text-
|
|
196
|
+
<p className="text-fm-secondary">
|
|
197
197
|
Comprehensive showcase of all OTP input configurations, states, and
|
|
198
198
|
use cases.
|
|
199
199
|
</p>
|
|
@@ -201,11 +201,13 @@ export const AllVariants: Story = {
|
|
|
201
201
|
|
|
202
202
|
{/* Basic Length Variants */}
|
|
203
203
|
<div className="space-y-4">
|
|
204
|
-
<h3 className="text-xl font-semibold
|
|
204
|
+
<h3 className="text-fm-primary text-xl font-semibold">
|
|
205
|
+
Length Variants
|
|
206
|
+
</h3>
|
|
205
207
|
|
|
206
208
|
<div className="space-y-3">
|
|
207
209
|
<div>
|
|
208
|
-
<label className="mb-2 block text-sm font-medium
|
|
210
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
209
211
|
4-Digit OTP (Common for SMS)
|
|
210
212
|
</label>
|
|
211
213
|
<OtpInputs
|
|
@@ -213,13 +215,13 @@ export const AllVariants: Story = {
|
|
|
213
215
|
isNumberInput={true}
|
|
214
216
|
onChangeOTP={setOtp4}
|
|
215
217
|
/>
|
|
216
|
-
<p className="mt-1 text-xs
|
|
218
|
+
<p className="text-fm-tertiary mt-1 text-xs">
|
|
217
219
|
Current: {otp4 || "Empty"}
|
|
218
220
|
</p>
|
|
219
221
|
</div>
|
|
220
222
|
|
|
221
223
|
<div>
|
|
222
|
-
<label className="mb-2 block text-sm font-medium
|
|
224
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
223
225
|
6-Digit OTP (Standard)
|
|
224
226
|
</label>
|
|
225
227
|
<OtpInputs
|
|
@@ -227,13 +229,13 @@ export const AllVariants: Story = {
|
|
|
227
229
|
isNumberInput={true}
|
|
228
230
|
onChangeOTP={setOtp6}
|
|
229
231
|
/>
|
|
230
|
-
<p className="mt-1 text-xs
|
|
232
|
+
<p className="text-fm-tertiary mt-1 text-xs">
|
|
231
233
|
Current: {otp6 || "Empty"}
|
|
232
234
|
</p>
|
|
233
235
|
</div>
|
|
234
236
|
|
|
235
237
|
<div>
|
|
236
|
-
<label className="mb-2 block text-sm font-medium
|
|
238
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
237
239
|
8-Digit OTP (Extended Security)
|
|
238
240
|
</label>
|
|
239
241
|
<OtpInputs
|
|
@@ -241,7 +243,7 @@ export const AllVariants: Story = {
|
|
|
241
243
|
isNumberInput={true}
|
|
242
244
|
onChangeOTP={setOtp8}
|
|
243
245
|
/>
|
|
244
|
-
<p className="mt-1 text-xs
|
|
246
|
+
<p className="text-fm-tertiary mt-1 text-xs">
|
|
245
247
|
Current: {otp8 || "Empty"}
|
|
246
248
|
</p>
|
|
247
249
|
</div>
|
|
@@ -250,13 +252,13 @@ export const AllVariants: Story = {
|
|
|
250
252
|
|
|
251
253
|
{/* Input Type Variants */}
|
|
252
254
|
<div className="space-y-4">
|
|
253
|
-
<h3 className="text-xl font-semibold
|
|
255
|
+
<h3 className="text-fm-primary text-xl font-semibold">
|
|
254
256
|
Input Type Variants
|
|
255
257
|
</h3>
|
|
256
258
|
|
|
257
259
|
<div className="space-y-3">
|
|
258
260
|
<div>
|
|
259
|
-
<label className="mb-2 block text-sm font-medium
|
|
261
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
260
262
|
Numeric Only (Default)
|
|
261
263
|
</label>
|
|
262
264
|
<OtpInputs
|
|
@@ -264,13 +266,13 @@ export const AllVariants: Story = {
|
|
|
264
266
|
isNumberInput={true}
|
|
265
267
|
onChangeOTP={(otp) => console.log("Numeric OTP:", otp)}
|
|
266
268
|
/>
|
|
267
|
-
<p className="mt-1 text-xs
|
|
269
|
+
<p className="text-fm-tertiary mt-1 text-xs">
|
|
268
270
|
Accepts only numbers (0-9)
|
|
269
271
|
</p>
|
|
270
272
|
</div>
|
|
271
273
|
|
|
272
274
|
<div>
|
|
273
|
-
<label className="mb-2 block text-sm font-medium
|
|
275
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
274
276
|
Alphanumeric (Letters + Numbers)
|
|
275
277
|
</label>
|
|
276
278
|
<OtpInputs
|
|
@@ -278,7 +280,7 @@ export const AllVariants: Story = {
|
|
|
278
280
|
isNumberInput={false}
|
|
279
281
|
onChangeOTP={setAlphanumericOtp}
|
|
280
282
|
/>
|
|
281
|
-
<p className="mt-1 text-xs
|
|
283
|
+
<p className="text-fm-tertiary mt-1 text-xs">
|
|
282
284
|
Current: {alphanumericOtp || "Empty"} | Accepts letters and
|
|
283
285
|
numbers
|
|
284
286
|
</p>
|
|
@@ -288,11 +290,13 @@ export const AllVariants: Story = {
|
|
|
288
290
|
|
|
289
291
|
{/* State Variants */}
|
|
290
292
|
<div className="space-y-4">
|
|
291
|
-
<h3 className="text-xl font-semibold
|
|
293
|
+
<h3 className="text-fm-primary text-xl font-semibold">
|
|
294
|
+
State Variants
|
|
295
|
+
</h3>
|
|
292
296
|
|
|
293
297
|
<div className="space-y-3">
|
|
294
298
|
<div>
|
|
295
|
-
<label className="mb-2 block text-sm font-medium
|
|
299
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
296
300
|
Enabled State (Default)
|
|
297
301
|
</label>
|
|
298
302
|
<OtpInputs
|
|
@@ -303,7 +307,7 @@ export const AllVariants: Story = {
|
|
|
303
307
|
</div>
|
|
304
308
|
|
|
305
309
|
<div>
|
|
306
|
-
<label className="mb-2 block text-sm font-medium
|
|
310
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
307
311
|
Disabled State
|
|
308
312
|
</label>
|
|
309
313
|
<OtpInputs
|
|
@@ -318,13 +322,13 @@ export const AllVariants: Story = {
|
|
|
318
322
|
|
|
319
323
|
{/* Validation States */}
|
|
320
324
|
<div className="space-y-4">
|
|
321
|
-
<h3 className="text-xl font-semibold
|
|
325
|
+
<h3 className="text-fm-primary text-xl font-semibold">
|
|
322
326
|
Validation States
|
|
323
327
|
</h3>
|
|
324
328
|
|
|
325
329
|
<div className="space-y-3">
|
|
326
330
|
<div>
|
|
327
|
-
<label className="mb-2 block text-sm font-medium
|
|
331
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
328
332
|
Neutral State (No validation)
|
|
329
333
|
</label>
|
|
330
334
|
<OtpInputs
|
|
@@ -339,7 +343,7 @@ export const AllVariants: Story = {
|
|
|
339
343
|
</div>
|
|
340
344
|
|
|
341
345
|
<div>
|
|
342
|
-
<label className="mb-2 block text-sm font-medium
|
|
346
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
343
347
|
Success State (Valid OTP)
|
|
344
348
|
</label>
|
|
345
349
|
<OtpInputs
|
|
@@ -354,7 +358,7 @@ export const AllVariants: Story = {
|
|
|
354
358
|
</div>
|
|
355
359
|
|
|
356
360
|
<div>
|
|
357
|
-
<label className="mb-2 block text-sm font-medium
|
|
361
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
358
362
|
Error State (Invalid OTP)
|
|
359
363
|
</label>
|
|
360
364
|
<OtpInputs
|
|
@@ -369,7 +373,7 @@ export const AllVariants: Story = {
|
|
|
369
373
|
</div>
|
|
370
374
|
|
|
371
375
|
<div>
|
|
372
|
-
<label className="mb-2 block text-sm font-medium
|
|
376
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
373
377
|
Interactive Validation (Try: 123456)
|
|
374
378
|
</label>
|
|
375
379
|
<OtpInputs
|
|
@@ -383,7 +387,7 @@ export const AllVariants: Story = {
|
|
|
383
387
|
error: "✗ Invalid code. Try: 123456",
|
|
384
388
|
}}
|
|
385
389
|
/>
|
|
386
|
-
<p className="mt-1 text-xs
|
|
390
|
+
<p className="text-fm-tertiary mt-1 text-xs">
|
|
387
391
|
Current: {validatedOtp || "Empty"} | Status:{" "}
|
|
388
392
|
{isValid === null
|
|
389
393
|
? "Neutral"
|
|
@@ -397,11 +401,13 @@ export const AllVariants: Story = {
|
|
|
397
401
|
|
|
398
402
|
{/* Custom Styling Examples */}
|
|
399
403
|
<div className="space-y-4">
|
|
400
|
-
<h3 className="text-xl font-semibold
|
|
404
|
+
<h3 className="text-fm-primary text-xl font-semibold">
|
|
405
|
+
Custom Styling
|
|
406
|
+
</h3>
|
|
401
407
|
|
|
402
408
|
<div className="space-y-3">
|
|
403
409
|
<div>
|
|
404
|
-
<label className="mb-2 block text-sm font-medium
|
|
410
|
+
<label className="text-fm-secondary mb-2 block text-sm font-medium">
|
|
405
411
|
Custom Input Styling
|
|
406
412
|
</label>
|
|
407
413
|
<OtpInputs
|
|
@@ -421,11 +427,15 @@ export const AllVariants: Story = {
|
|
|
421
427
|
|
|
422
428
|
{/* Usage Examples */}
|
|
423
429
|
<div className="space-y-4">
|
|
424
|
-
<h3 className="text-xl font-semibold
|
|
430
|
+
<h3 className="text-fm-primary text-xl font-semibold">
|
|
431
|
+
Common Use Cases
|
|
432
|
+
</h3>
|
|
425
433
|
|
|
426
434
|
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
|
|
427
|
-
<div className="rounded-lg
|
|
428
|
-
<h4 className="mb-2 font-medium
|
|
435
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
436
|
+
<h4 className="text-fm-primary mb-2 font-medium">
|
|
437
|
+
SMS Verification
|
|
438
|
+
</h4>
|
|
429
439
|
<OtpInputs
|
|
430
440
|
length={4}
|
|
431
441
|
isNumberInput={true}
|
|
@@ -436,8 +446,8 @@ export const AllVariants: Story = {
|
|
|
436
446
|
/>
|
|
437
447
|
</div>
|
|
438
448
|
|
|
439
|
-
<div className="rounded-lg
|
|
440
|
-
<h4 className="mb-2 font-medium
|
|
449
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
450
|
+
<h4 className="text-fm-primary mb-2 font-medium">
|
|
441
451
|
Email Verification
|
|
442
452
|
</h4>
|
|
443
453
|
<OtpInputs
|
|
@@ -450,8 +460,8 @@ export const AllVariants: Story = {
|
|
|
450
460
|
/>
|
|
451
461
|
</div>
|
|
452
462
|
|
|
453
|
-
<div className="rounded-lg
|
|
454
|
-
<h4 className="mb-2 font-medium
|
|
463
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
464
|
+
<h4 className="text-fm-primary mb-2 font-medium">
|
|
455
465
|
2FA Authentication
|
|
456
466
|
</h4>
|
|
457
467
|
<OtpInputs
|
|
@@ -464,8 +474,10 @@ export const AllVariants: Story = {
|
|
|
464
474
|
/>
|
|
465
475
|
</div>
|
|
466
476
|
|
|
467
|
-
<div className="rounded-lg
|
|
468
|
-
<h4 className="mb-2 font-medium
|
|
477
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
478
|
+
<h4 className="text-fm-primary mb-2 font-medium">
|
|
479
|
+
Alphanumeric Code
|
|
480
|
+
</h4>
|
|
469
481
|
<OtpInputs
|
|
470
482
|
length={6}
|
|
471
483
|
isNumberInput={false}
|