aural-ui 4.0.1 → 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.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- 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 { GlobeIcon } from "src/ui/icons/globe-icon"
|
|
6
|
+
import { GoogleLogoIcon } from "src/ui/icons/google-logo-icon"
|
|
7
|
+
import { SiteLogoIcon } from "src/ui/icons/site-logo-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 { IndianFlagIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof IndianFlagIcon> = {
|
|
@@ -18,822 +32,75 @@ const meta: Meta<typeof IndianFlagIcon> = {
|
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) !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: var(--color-fm-icon-active) !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
-
color: var(--color-fm-secondary-500) !important;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
color: var(--color-fm-icon-active) !important;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) !important;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="from-fm-surface-primary via-fm-icon-warning/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
-
<div className="from-fm-icon-warning/10 to-fm-icon-positive/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="border-fm-icon-warning/30 from-fm-icon-warning/20 to-fm-icon-positive/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br via-transparent">
|
|
90
|
-
<IndianFlagIcon className="h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
IndianFlagIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
|
-
The Indian national flag icon representing India's
|
|
97
|
-
sovereignty, cultural identity, and national pride. Built
|
|
98
|
-
with 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-fm-icon-warning text-3xl font-bold">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-fm-tertiary text-sm">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-fm-icon-active text-3xl font-bold">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-fm-tertiary text-sm">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-fm-icon-positive text-3xl font-bold">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-fm-tertiary text-sm">
|
|
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-fm-icon-active! text-center text-3xl font-bold">
|
|
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-fm-icon-warning! text-xl font-semibold">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
|
-
{`import { IndianFlagIcon } from "@icons/indian-flag-icon"
|
|
150
|
-
|
|
151
|
-
function CountrySelector() {
|
|
152
|
-
return (
|
|
153
|
-
<div className="flex items-center gap-2">
|
|
154
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
155
|
-
<span>India</span>
|
|
156
|
-
</div>
|
|
157
|
-
)
|
|
158
|
-
}`}
|
|
159
|
-
</pre>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-fm-icon-warning! text-xl font-semibold">
|
|
165
|
-
Live Preview
|
|
166
|
-
</h3>
|
|
167
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
168
|
-
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 flex items-center gap-3 rounded-lg border px-4 py-2">
|
|
169
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
170
|
-
<span className="text-fm-icon-active">India</span>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
{/* Props Documentation */}
|
|
178
|
-
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
180
|
-
Props & Configuration
|
|
181
|
-
</h2>
|
|
182
|
-
|
|
183
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
184
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
185
|
-
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
186
|
-
Props
|
|
187
|
-
</h3>
|
|
188
|
-
</div>
|
|
189
|
-
<table className="!my-0 w-full">
|
|
190
|
-
<thead className="bg-fm-surface-secondary">
|
|
191
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
192
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
193
|
-
Prop
|
|
194
|
-
</th>
|
|
195
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
196
|
-
Type
|
|
197
|
-
</th>
|
|
198
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
|
-
Default
|
|
200
|
-
</th>
|
|
201
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
|
-
Description
|
|
203
|
-
</th>
|
|
204
|
-
</tr>
|
|
205
|
-
</thead>
|
|
206
|
-
<tbody>
|
|
207
|
-
{" "}
|
|
208
|
-
<tr className="bg-fm-surface-secondary!">
|
|
209
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
210
|
-
withAccessibility
|
|
211
|
-
</td>
|
|
212
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
213
|
-
boolean
|
|
214
|
-
</td>
|
|
215
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
216
|
-
true
|
|
217
|
-
</td>
|
|
218
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
219
|
-
Whether to wrap the icon with accessibility feature
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
223
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
224
|
-
height
|
|
225
|
-
</td>
|
|
226
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
227
|
-
number | string
|
|
228
|
-
</td>
|
|
229
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
230
|
-
15
|
|
231
|
-
</td>
|
|
232
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
233
|
-
Height of the icon in pixels
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
237
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
238
|
-
fill
|
|
239
|
-
</td>
|
|
240
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
241
|
-
string
|
|
242
|
-
</td>
|
|
243
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
244
|
-
Flag pattern
|
|
245
|
-
</td>
|
|
246
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
247
|
-
Uses embedded flag pattern
|
|
248
|
-
</td>
|
|
249
|
-
</tr>
|
|
250
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
251
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
252
|
-
className
|
|
253
|
-
</td>
|
|
254
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
255
|
-
string
|
|
256
|
-
</td>
|
|
257
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
258
|
-
-
|
|
259
|
-
</td>
|
|
260
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
261
|
-
CSS classes for styling
|
|
262
|
-
</td>
|
|
263
|
-
</tr>
|
|
264
|
-
<tr className="bg-fm-surface-secondary!">
|
|
265
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
266
|
-
...svgProps
|
|
267
|
-
</td>
|
|
268
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
|
-
SVGProps
|
|
270
|
-
</td>
|
|
271
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
272
|
-
-
|
|
273
|
-
</td>
|
|
274
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
275
|
-
All standard SVG element props
|
|
276
|
-
</td>
|
|
277
|
-
</tr>
|
|
278
|
-
</tbody>
|
|
279
|
-
</table>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
|
|
283
|
-
{/* Size Variations */}
|
|
284
|
-
<div className="!space-y-8">
|
|
285
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
286
|
-
Size Variations
|
|
287
|
-
</h2>
|
|
288
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
289
|
-
<div className="!space-y-6">
|
|
290
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
291
|
-
<div className="!space-y-4">
|
|
292
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
293
|
-
Standard Sizes
|
|
294
|
-
</h3>
|
|
295
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<IndianFlagIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
298
|
-
<span className="text-fm-tertiary text-xs">
|
|
299
|
-
12px
|
|
300
|
-
</span>
|
|
301
|
-
</div>
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<IndianFlagIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
304
|
-
<span className="text-fm-tertiary text-xs">
|
|
305
|
-
16px
|
|
306
|
-
</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<IndianFlagIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
310
|
-
<span className="text-fm-tertiary text-xs">
|
|
311
|
-
20px
|
|
312
|
-
</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<IndianFlagIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
316
|
-
<span className="text-fm-tertiary text-xs">
|
|
317
|
-
24px
|
|
318
|
-
</span>
|
|
319
|
-
</div>
|
|
320
|
-
<div className="text-center">
|
|
321
|
-
<IndianFlagIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
322
|
-
<span className="text-fm-tertiary text-xs">
|
|
323
|
-
32px
|
|
324
|
-
</span>
|
|
325
|
-
</div>
|
|
326
|
-
<div className="text-center">
|
|
327
|
-
<IndianFlagIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
328
|
-
<span className="text-fm-tertiary text-xs">
|
|
329
|
-
48px
|
|
330
|
-
</span>
|
|
331
|
-
</div>
|
|
332
|
-
</div>
|
|
333
|
-
</div>
|
|
334
|
-
|
|
335
|
-
<div className="!space-y-4">
|
|
336
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
337
|
-
Code Example
|
|
338
|
-
</h3>
|
|
339
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
340
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
341
|
-
{`// Small (16px)
|
|
342
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
343
|
-
|
|
344
|
-
// Medium (24px)
|
|
345
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
346
|
-
|
|
347
|
-
// Large (32px)
|
|
348
|
-
<IndianFlagIcon className="h-8 w-8" />
|
|
349
|
-
|
|
350
|
-
// Custom size
|
|
351
|
-
<IndianFlagIcon width={40} height={30} />`}
|
|
352
|
-
</pre>
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
|
-
</div>
|
|
357
|
-
</div>
|
|
358
|
-
</div>
|
|
359
|
-
|
|
360
|
-
{/* Color Variations */}
|
|
361
|
-
<div className="!space-y-8">
|
|
362
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
363
|
-
Color Variations
|
|
364
|
-
</h2>
|
|
365
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
366
|
-
<div className="!space-y-4">
|
|
367
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
368
|
-
Display Contexts
|
|
369
|
-
</h3>
|
|
370
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
371
|
-
<div className="flex items-center gap-4">
|
|
372
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
373
|
-
<div>
|
|
374
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
375
|
-
Original Colors
|
|
376
|
-
</div>
|
|
377
|
-
<div className="text-fm-tertiary text-xs">
|
|
378
|
-
Default flag pattern
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
<div className="flex items-center gap-4">
|
|
383
|
-
<div className="bg-fm-surface-contrast rounded p-1">
|
|
384
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
385
|
-
</div>
|
|
386
|
-
<div>
|
|
387
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
388
|
-
On White Background
|
|
389
|
-
</div>
|
|
390
|
-
<div className="text-fm-tertiary text-xs">
|
|
391
|
-
Optimal contrast
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
<div className="flex items-center gap-4">
|
|
396
|
-
<div className="bg-fm-surface-secondary rounded p-1">
|
|
397
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
398
|
-
</div>
|
|
399
|
-
<div>
|
|
400
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
401
|
-
On Light Background
|
|
402
|
-
</div>
|
|
403
|
-
<div className="text-fm-tertiary text-xs">
|
|
404
|
-
Light gray surface
|
|
405
|
-
</div>
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
<div className="flex items-center gap-4">
|
|
409
|
-
<div className="bg-fm-surface-secondary rounded p-1">
|
|
410
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
411
|
-
</div>
|
|
412
|
-
<div>
|
|
413
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
414
|
-
On Dark Background
|
|
415
|
-
</div>
|
|
416
|
-
<div className="text-fm-tertiary text-xs">
|
|
417
|
-
Dark surface
|
|
418
|
-
</div>
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
|
|
424
|
-
<div className="!space-y-4">
|
|
425
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
426
|
-
Implementation Notes
|
|
427
|
-
</h3>
|
|
428
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
429
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
430
|
-
{`// Indian flag uses embedded pattern
|
|
431
|
-
// Orange (saffron), White, Green with Ashoka Chakra
|
|
432
|
-
|
|
433
|
-
// Basic usage (maintains original colors)
|
|
434
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
435
|
-
|
|
436
|
-
// On light backgrounds (recommended)
|
|
437
|
-
<div className="bg-white p-2 rounded">
|
|
438
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
439
|
-
</div>
|
|
440
|
-
|
|
441
|
-
// Custom sizing with aspect ratio
|
|
442
|
-
<IndianFlagIcon
|
|
443
|
-
width={44}
|
|
444
|
-
height={30}
|
|
445
|
-
className="flex-shrink-0"
|
|
446
|
-
/>`}
|
|
447
|
-
</pre>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
</div>
|
|
452
|
-
|
|
453
|
-
{/* Usage Examples */}
|
|
454
|
-
<div className="!space-y-8">
|
|
455
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
456
|
-
Usage Examples
|
|
457
|
-
</h2>
|
|
458
|
-
|
|
459
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
460
|
-
{/* Country Selector */}
|
|
461
|
-
<div className="!space-y-4">
|
|
462
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
463
|
-
Country Selector
|
|
464
|
-
</h3>
|
|
465
|
-
<div className="!space-y-4">
|
|
466
|
-
<div className="flex gap-4">
|
|
467
|
-
<button className="border-fm-icon-warning/20 bg-fm-icon-warning/10 text-fm-icon-active hover:bg-fm-icon-warning/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
468
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
469
|
-
India
|
|
470
|
-
</button>
|
|
471
|
-
<div className="border-fm-divider-primary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-3 py-2">
|
|
472
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
473
|
-
<span className="text-fm-icon-active text-sm">
|
|
474
|
-
IN
|
|
475
|
-
</span>
|
|
476
|
-
</div>
|
|
477
|
-
</div>
|
|
478
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
479
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
480
|
-
{`// Country selection button
|
|
481
|
-
<button className="flex items-center gap-3 border border-orange-500/20 bg-orange-500/10 px-4 py-2 rounded-lg">
|
|
482
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
483
|
-
India
|
|
484
|
-
</button>
|
|
485
|
-
|
|
486
|
-
// Country code display
|
|
487
|
-
<div className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
488
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
489
|
-
<span className="text-sm">IN</span>
|
|
490
|
-
</div>`}
|
|
491
|
-
</pre>
|
|
492
|
-
</div>
|
|
493
|
-
</div>
|
|
494
|
-
</div>
|
|
495
|
-
|
|
496
|
-
{/* Location Display */}
|
|
497
|
-
<div className="!space-y-4">
|
|
498
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
499
|
-
Location Display
|
|
500
|
-
</h3>
|
|
501
|
-
<div className="!space-y-4">
|
|
502
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
503
|
-
<div className="flex items-center justify-between">
|
|
504
|
-
<div className="flex items-center gap-4">
|
|
505
|
-
<div className="bg-fm-icon-warning/20 flex h-10 w-10 items-center justify-center rounded-lg">
|
|
506
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
507
|
-
</div>
|
|
508
|
-
<div>
|
|
509
|
-
<div className="text-fm-icon-active font-medium">
|
|
510
|
-
Mumbai, India
|
|
511
|
-
</div>
|
|
512
|
-
<div className="text-fm-tertiary text-sm">
|
|
513
|
-
Maharashtra, IN
|
|
514
|
-
</div>
|
|
515
|
-
</div>
|
|
516
|
-
</div>
|
|
517
|
-
<div className="text-right">
|
|
518
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
519
|
-
UTC +5:30
|
|
520
|
-
</div>
|
|
521
|
-
<div className="text-fm-tertiary text-xs">IST</div>
|
|
522
|
-
</div>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
526
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
527
|
-
{`<div className="flex items-center justify-between">
|
|
528
|
-
<div className="flex items-center gap-4">
|
|
529
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-orange-500/20">
|
|
530
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
531
|
-
</div>
|
|
532
|
-
<div>
|
|
533
|
-
<div className="font-medium text-white">Mumbai, India</div>
|
|
534
|
-
<div className="text-sm text-white/60">Maharashtra, IN</div>
|
|
535
|
-
</div>
|
|
536
|
-
</div>
|
|
537
|
-
<div className="text-right">
|
|
538
|
-
<div className="text-sm font-medium text-white">UTC +5:30</div>
|
|
539
|
-
<div className="text-xs text-white/60">IST</div>
|
|
540
|
-
</div>
|
|
541
|
-
</div>`}
|
|
542
|
-
</pre>
|
|
543
|
-
</div>
|
|
544
|
-
</div>
|
|
545
|
-
</div>
|
|
546
|
-
|
|
547
|
-
{/* Language Selector */}
|
|
548
|
-
<div className="!space-y-4">
|
|
549
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
550
|
-
Language Selector
|
|
551
|
-
</h3>
|
|
552
|
-
<div className="!space-y-4">
|
|
553
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
554
|
-
<div className="space-y-3">
|
|
555
|
-
<div className="bg-fm-surface-secondary flex items-center gap-3 rounded-lg p-3">
|
|
556
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
557
|
-
<div className="flex-1">
|
|
558
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
559
|
-
हिन्दी (Hindi)
|
|
560
|
-
</div>
|
|
561
|
-
<div className="text-fm-tertiary text-xs">
|
|
562
|
-
India
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
<div className="bg-fm-icon-warning h-2 w-2 rounded-full"></div>
|
|
566
|
-
</div>
|
|
567
|
-
<div className="hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg p-3">
|
|
568
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
569
|
-
<div className="flex-1">
|
|
570
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
571
|
-
English (India)
|
|
572
|
-
</div>
|
|
573
|
-
<div className="text-fm-tertiary text-xs">
|
|
574
|
-
India
|
|
575
|
-
</div>
|
|
576
|
-
</div>
|
|
577
|
-
</div>
|
|
578
|
-
</div>
|
|
579
|
-
</div>
|
|
580
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
581
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
582
|
-
{`<div className="flex items-center gap-3 rounded-lg bg-white/5 p-3">
|
|
583
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
584
|
-
<div className="flex-1">
|
|
585
|
-
<div className="text-sm font-medium text-white">हिन्दी (Hindi)</div>
|
|
586
|
-
<div className="text-xs text-white/60">India</div>
|
|
587
|
-
</div>
|
|
588
|
-
<div className="h-2 w-2 rounded-full bg-orange-400"></div>
|
|
589
|
-
</div>`}
|
|
590
|
-
</pre>
|
|
591
|
-
</div>
|
|
592
|
-
</div>
|
|
593
|
-
</div>
|
|
594
|
-
|
|
595
|
-
{/* User Profile */}
|
|
596
|
-
<div className="!space-y-4">
|
|
597
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
598
|
-
User Profile
|
|
599
|
-
</h3>
|
|
600
|
-
<div className="!space-y-4">
|
|
601
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
602
|
-
<div className="text-center">
|
|
603
|
-
<div className="from-fm-icon-warning/20 to-fm-icon-positive/20 !mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-linear-to-br">
|
|
604
|
-
<span className="text-2xl">👤</span>
|
|
605
|
-
</div>
|
|
606
|
-
<h4 className="text-fm-icon-active! mb-2 font-medium">
|
|
607
|
-
Arjun Patel
|
|
608
|
-
</h4>
|
|
609
|
-
<div className="text-fm-secondary! flex items-center justify-center gap-2 text-sm">
|
|
610
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
611
|
-
<span>Delhi, India</span>
|
|
612
|
-
</div>
|
|
613
|
-
<button className="bg-fm-icon-warning text-fm-icon-active hover:bg-fm-icon-warning mt-4 rounded-lg px-4 py-2 text-sm transition-colors">
|
|
614
|
-
View Profile
|
|
615
|
-
</button>
|
|
616
|
-
</div>
|
|
617
|
-
</div>
|
|
618
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
619
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
620
|
-
{`<div className="text-center">
|
|
621
|
-
<div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-gradient-to-br from-orange-500/20 to-green-500/20">
|
|
622
|
-
<span className="text-2xl">👤</span>
|
|
623
|
-
</div>
|
|
624
|
-
<h4 className="mb-2 font-medium text-white">Arjun Patel</h4>
|
|
625
|
-
<div className="flex items-center justify-center gap-2 text-sm text-white/70">
|
|
626
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
627
|
-
<span>Delhi, India</span>
|
|
628
|
-
</div>
|
|
629
|
-
<button className="mt-4 bg-orange-500 hover:bg-orange-600 px-4 py-2 rounded-lg text-sm text-white">
|
|
630
|
-
View Profile
|
|
631
|
-
</button>
|
|
632
|
-
</div>`}
|
|
633
|
-
</pre>
|
|
634
|
-
</div>
|
|
635
|
-
</div>
|
|
636
|
-
</div>
|
|
637
|
-
</div>
|
|
638
|
-
</div>
|
|
639
|
-
|
|
640
|
-
{/* Accessibility */}
|
|
641
|
-
<div className="!space-y-8">
|
|
642
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
643
|
-
Accessibility Features
|
|
644
|
-
</h2>
|
|
645
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
646
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
647
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
648
|
-
✅ Built-in Features
|
|
649
|
-
</h3>
|
|
650
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
651
|
-
<li className="text-fm-secondary!">
|
|
652
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
653
|
-
</li>
|
|
654
|
-
<li className="text-fm-secondary!">
|
|
655
|
-
Provides screen reader label "Indian Flag icon"
|
|
656
|
-
</li>
|
|
657
|
-
<li className="text-fm-secondary!">
|
|
658
|
-
Supports keyboard navigation when interactive
|
|
659
|
-
</li>
|
|
660
|
-
<li className="text-fm-secondary!">
|
|
661
|
-
Maintains proper color contrast ratios
|
|
662
|
-
</li>
|
|
663
|
-
<li className="text-fm-secondary!">
|
|
664
|
-
Scales with user's font size preferences
|
|
665
|
-
</li>
|
|
666
|
-
</ul>
|
|
667
|
-
</div>
|
|
668
|
-
|
|
669
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
670
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
671
|
-
💡 Best Practices
|
|
672
|
-
</h3>
|
|
673
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
674
|
-
<li className="text-fm-secondary!">
|
|
675
|
-
Always pair with descriptive text for context
|
|
676
|
-
</li>
|
|
677
|
-
<li className="text-fm-secondary!">
|
|
678
|
-
Use light backgrounds for optimal visibility
|
|
679
|
-
</li>
|
|
680
|
-
<li className="text-fm-secondary!">
|
|
681
|
-
Ensure sufficient spacing around the flag
|
|
682
|
-
</li>
|
|
683
|
-
<li className="text-fm-secondary!">
|
|
684
|
-
Add focus states for interactive elements
|
|
685
|
-
</li>
|
|
686
|
-
<li className="text-fm-secondary!">
|
|
687
|
-
Respect flag usage guidelines and cultural sensitivity
|
|
688
|
-
</li>
|
|
689
|
-
</ul>
|
|
690
|
-
</div>
|
|
691
|
-
</div>
|
|
692
|
-
|
|
693
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
694
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
695
|
-
Custom Accessibility Label
|
|
696
|
-
</h3>
|
|
697
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
698
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
699
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
700
|
-
{`// Custom implementation with specific label
|
|
701
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
702
|
-
|
|
703
|
-
function CustomIndianFlagIcon({ label = "India", ...props }) {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="positive"
|
|
37
|
+
features={[
|
|
38
|
+
{
|
|
39
|
+
title: "National Flag",
|
|
40
|
+
description: "Indian flag identity icon",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: "Localization",
|
|
44
|
+
description: "Region and language markers",
|
|
45
|
+
},
|
|
46
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
47
|
+
]}
|
|
48
|
+
quickStart={{
|
|
49
|
+
codeExample: `import { IndianFlagIcon } from "src/ui/icons/indian-flag-icon"
|
|
50
|
+
|
|
51
|
+
function LanguageSelector() {
|
|
704
52
|
return (
|
|
705
|
-
<
|
|
706
|
-
<IndianFlagIcon
|
|
707
|
-
|
|
53
|
+
<button className="flex items-center gap-2">
|
|
54
|
+
<IndianFlagIcon className="h-5 w-5" />
|
|
55
|
+
<span>Hindi</span>
|
|
56
|
+
</button>
|
|
708
57
|
)
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
<
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
744
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
745
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
746
|
-
<span className="text-2xl">🌍</span>
|
|
747
|
-
</div>
|
|
748
|
-
<div>
|
|
749
|
-
<div className="text-fm-icon-active font-medium">
|
|
750
|
-
GlobeIcon
|
|
751
|
-
</div>
|
|
752
|
-
<div className="text-fm-tertiary text-xs">
|
|
753
|
-
Global locations
|
|
754
|
-
</div>
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
758
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
759
|
-
<span className="text-2xl">📍</span>
|
|
760
|
-
</div>
|
|
761
|
-
<div>
|
|
762
|
-
<div className="text-fm-icon-active font-medium">
|
|
763
|
-
LocationIcon
|
|
764
|
-
</div>
|
|
765
|
-
<div className="text-fm-tertiary text-xs">
|
|
766
|
-
Geographic pins
|
|
767
|
-
</div>
|
|
768
|
-
</div>
|
|
769
|
-
</div>
|
|
770
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
771
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
772
|
-
<span className="text-2xl">🗺️</span>
|
|
773
|
-
</div>
|
|
774
|
-
<div>
|
|
775
|
-
<div className="text-fm-icon-active font-medium">
|
|
776
|
-
MapIcon
|
|
777
|
-
</div>
|
|
778
|
-
<div className="text-fm-tertiary text-xs">
|
|
779
|
-
Maps and navigation
|
|
780
|
-
</div>
|
|
781
|
-
</div>
|
|
782
|
-
</div>
|
|
783
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
784
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
785
|
-
<span className="text-2xl">🌐</span>
|
|
786
|
-
</div>
|
|
787
|
-
<div>
|
|
788
|
-
<div className="text-fm-icon-active font-medium">
|
|
789
|
-
LanguageIcon
|
|
790
|
-
</div>
|
|
791
|
-
<div className="text-fm-tertiary text-xs">
|
|
792
|
-
Language selection
|
|
793
|
-
</div>
|
|
794
|
-
</div>
|
|
795
|
-
</div>
|
|
796
|
-
</div>
|
|
797
|
-
</div>
|
|
798
|
-
</div>
|
|
799
|
-
|
|
800
|
-
{/* Footer */}
|
|
801
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
802
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
803
|
-
<div className="!space-y-4 text-center">
|
|
804
|
-
<p className="text-fm-tertiary!">
|
|
805
|
-
IndianFlagIcon is part of the Aural UI icon library, built
|
|
806
|
-
with accessibility and cultural respect in mind.
|
|
807
|
-
</p>
|
|
808
|
-
<p className="text-fm-placeholder! text-sm">
|
|
809
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
810
|
-
compatibility and follow WCAG guidelines.
|
|
811
|
-
</p>
|
|
812
|
-
</div>
|
|
813
|
-
</div>
|
|
814
|
-
</div>
|
|
815
|
-
</div>
|
|
816
|
-
</>
|
|
58
|
+
}`,
|
|
59
|
+
livePreview: (
|
|
60
|
+
<button className="flex items-center gap-2">
|
|
61
|
+
<IndianFlagIcon className="h-6 w-6" />
|
|
62
|
+
</button>
|
|
63
|
+
),
|
|
64
|
+
}}
|
|
65
|
+
relatedIcons={[
|
|
66
|
+
{
|
|
67
|
+
name: "GlobeIcon",
|
|
68
|
+
description: "Globe / world icon",
|
|
69
|
+
icon: GlobeIcon,
|
|
70
|
+
accentToken: "info",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "GoogleLogoIcon",
|
|
74
|
+
description: "Google brand mark",
|
|
75
|
+
icon: GoogleLogoIcon,
|
|
76
|
+
accentToken: "positive",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "AppleLogoIcon",
|
|
80
|
+
description: "Apple brand mark",
|
|
81
|
+
icon: AppleLogoIcon,
|
|
82
|
+
accentToken: "warning",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "SiteLogoIcon",
|
|
86
|
+
description: "Pocket FM site logo",
|
|
87
|
+
icon: SiteLogoIcon,
|
|
88
|
+
accentToken: "negative",
|
|
89
|
+
},
|
|
90
|
+
]}
|
|
91
|
+
/>
|
|
817
92
|
),
|
|
818
93
|
},
|
|
819
94
|
},
|
|
820
95
|
tags: ["autodocs"],
|
|
821
96
|
argTypes: {
|
|
822
|
-
|
|
823
|
-
control:
|
|
824
|
-
description: "
|
|
97
|
+
className: {
|
|
98
|
+
control: "text",
|
|
99
|
+
description: "CSS classes for sizing",
|
|
825
100
|
},
|
|
826
101
|
withAccessibility: {
|
|
827
102
|
control: "boolean",
|
|
828
|
-
description: "
|
|
829
|
-
},
|
|
830
|
-
height: {
|
|
831
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
832
|
-
description: "Height of the icon in pixels",
|
|
833
|
-
},
|
|
834
|
-
className: {
|
|
835
|
-
control: "text",
|
|
836
|
-
description: "CSS classes for styling",
|
|
103
|
+
description: "Wrap with accessibility label",
|
|
837
104
|
},
|
|
838
105
|
},
|
|
839
106
|
}
|
|
@@ -841,242 +108,118 @@ function CustomIndianFlagIcon({ label = "India", ...props }) {
|
|
|
841
108
|
export default meta
|
|
842
109
|
type Story = StoryObj<typeof IndianFlagIcon>
|
|
843
110
|
|
|
844
|
-
// Story parameters for consistent dark theme
|
|
845
|
-
const storyParameters = {
|
|
846
|
-
backgrounds: {
|
|
847
|
-
default: "dark",
|
|
848
|
-
values: [
|
|
849
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
850
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
851
|
-
],
|
|
852
|
-
},
|
|
853
|
-
}
|
|
854
|
-
|
|
855
111
|
export const Default: Story = {
|
|
856
112
|
args: {
|
|
857
|
-
|
|
858
|
-
height: 15,
|
|
859
|
-
className: "",
|
|
113
|
+
className: "h-6 w-6",
|
|
860
114
|
withAccessibility: true,
|
|
861
115
|
},
|
|
862
|
-
parameters: storyParameters,
|
|
863
116
|
render: (args) => (
|
|
864
|
-
<
|
|
865
|
-
<
|
|
866
|
-
|
|
867
|
-
</div>
|
|
868
|
-
</div>
|
|
117
|
+
<IconDefaultCanvas>
|
|
118
|
+
<IndianFlagIcon {...args} />
|
|
119
|
+
</IconDefaultCanvas>
|
|
869
120
|
),
|
|
870
121
|
}
|
|
871
122
|
|
|
872
123
|
export const SizeVariations: Story = {
|
|
873
|
-
|
|
874
|
-
...storyParameters,
|
|
875
|
-
docs: {
|
|
876
|
-
description: {
|
|
877
|
-
story:
|
|
878
|
-
"IndianFlagIcon in different sizes, from small UI elements to large country displays.",
|
|
879
|
-
},
|
|
880
|
-
},
|
|
881
|
-
},
|
|
882
|
-
render: () => (
|
|
883
|
-
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
884
|
-
<div className="text-center">
|
|
885
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
886
|
-
<IndianFlagIcon className="h-3 w-3" />
|
|
887
|
-
</div>
|
|
888
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
889
|
-
</div>
|
|
890
|
-
<div className="text-center">
|
|
891
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
892
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
893
|
-
</div>
|
|
894
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
895
|
-
</div>
|
|
896
|
-
<div className="text-center">
|
|
897
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
898
|
-
<IndianFlagIcon className="h-5 w-5" />
|
|
899
|
-
</div>
|
|
900
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
901
|
-
</div>
|
|
902
|
-
<div className="text-center">
|
|
903
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
904
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
905
|
-
</div>
|
|
906
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
907
|
-
</div>
|
|
908
|
-
<div className="text-center">
|
|
909
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
910
|
-
<IndianFlagIcon className="h-8 w-8" />
|
|
911
|
-
</div>
|
|
912
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
913
|
-
</div>
|
|
914
|
-
<div className="text-center">
|
|
915
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-3">
|
|
916
|
-
<IndianFlagIcon className="h-12 w-12" />
|
|
917
|
-
</div>
|
|
918
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
919
|
-
</div>
|
|
920
|
-
</div>
|
|
921
|
-
),
|
|
124
|
+
render: () => <IconSizeVariations icon={IndianFlagIcon} />,
|
|
922
125
|
}
|
|
923
126
|
|
|
924
|
-
export const
|
|
925
|
-
parameters: {
|
|
926
|
-
...storyParameters,
|
|
927
|
-
docs: {
|
|
928
|
-
description: {
|
|
929
|
-
story:
|
|
930
|
-
"IndianFlagIcon shown on different backgrounds to demonstrate optimal usage contexts.",
|
|
931
|
-
},
|
|
932
|
-
},
|
|
933
|
-
},
|
|
127
|
+
export const BrandColors: Story = {
|
|
934
128
|
render: () => (
|
|
935
|
-
<
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
968
|
-
Transparent
|
|
969
|
-
</div>
|
|
970
|
-
<div className="text-fm-tertiary text-xs">Original colors</div>
|
|
971
|
-
</div>
|
|
972
|
-
</div>
|
|
129
|
+
<IconBrandColors
|
|
130
|
+
icon={IndianFlagIcon}
|
|
131
|
+
variants={[
|
|
132
|
+
{
|
|
133
|
+
label: "Contrast Background",
|
|
134
|
+
description: "Theme contrast",
|
|
135
|
+
cardClassName:
|
|
136
|
+
"border-fm-divider-secondary bg-fm-neutral-1100 h-24 w-24 border",
|
|
137
|
+
iconClassName: "h-10 w-10",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: "Surface Background",
|
|
141
|
+
description: "Theme surface",
|
|
142
|
+
cardClassName:
|
|
143
|
+
"border-fm-divider-secondary bg-fm-surface-secondary h-24 w-24 border",
|
|
144
|
+
iconClassName: "h-10 w-10",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: "Primary Surface",
|
|
148
|
+
description: "Theme surface",
|
|
149
|
+
cardClassName: "bg-fm-surface-primary h-24 w-24",
|
|
150
|
+
iconClassName: "h-10 w-10",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: "Transparent",
|
|
154
|
+
description: "Original colors",
|
|
155
|
+
cardClassName:
|
|
156
|
+
"border-fm-divider-contrast h-24 w-24 border bg-transparent",
|
|
157
|
+
iconClassName: "h-10 w-10",
|
|
158
|
+
},
|
|
159
|
+
]}
|
|
160
|
+
/>
|
|
973
161
|
),
|
|
974
162
|
}
|
|
975
163
|
|
|
976
164
|
export const UsageExamples: Story = {
|
|
977
|
-
parameters: {
|
|
978
|
-
...storyParameters,
|
|
979
|
-
docs: {
|
|
980
|
-
description: {
|
|
981
|
-
story:
|
|
982
|
-
"Real-world usage examples showing IndianFlagIcon in different country and location contexts.",
|
|
983
|
-
},
|
|
984
|
-
},
|
|
985
|
-
},
|
|
986
165
|
render: () => (
|
|
987
|
-
<
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
</
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
166
|
+
<IconUsageCanvas>
|
|
167
|
+
<IconUsageSection title="Language Selector">
|
|
168
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
|
|
169
|
+
<IndianFlagIcon className="h-5 w-5" />
|
|
170
|
+
<span className="text-fm-primary font-fm-text text-sm">Hindi</span>
|
|
171
|
+
</button>
|
|
172
|
+
</IconUsageSection>
|
|
173
|
+
|
|
174
|
+
<IconUsageSection title="Region Picker">
|
|
175
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-px overflow-hidden rounded-xl border">
|
|
176
|
+
{[
|
|
177
|
+
{ label: "India", flag: IndianFlagIcon, active: true },
|
|
178
|
+
{ label: "United States", flag: GlobeIcon, active: false },
|
|
179
|
+
].map(({ label, flag: Flag, active }) => (
|
|
180
|
+
<button
|
|
181
|
+
key={label}
|
|
182
|
+
className="border-fm-divider-secondary flex w-full items-center gap-3 border-b px-4 py-3 last:border-b-0"
|
|
183
|
+
>
|
|
184
|
+
<Flag
|
|
185
|
+
className={`h-5 w-5 ${active ? "text-fm-icon-active" : "text-fm-icon-inactive"}`}
|
|
186
|
+
/>
|
|
187
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
188
|
+
{label}
|
|
189
|
+
</span>
|
|
190
|
+
</button>
|
|
191
|
+
))}
|
|
1002
192
|
</div>
|
|
1003
|
-
</
|
|
193
|
+
</IconUsageSection>
|
|
1004
194
|
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
<div className="flex items-center gap-4">
|
|
1013
|
-
<div className="bg-fm-icon-warning/20 flex h-10 w-10 items-center justify-center rounded-lg">
|
|
1014
|
-
<IndianFlagIcon className="h-6 w-6" />
|
|
195
|
+
<IconUsageSection title="Profile Locale Badge">
|
|
196
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
197
|
+
<div className="flex items-center gap-3">
|
|
198
|
+
<div className="bg-fm-divider-secondary h-12 w-12 rounded-full" />
|
|
199
|
+
<div className="flex-1">
|
|
200
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
201
|
+
Pocket FM
|
|
1015
202
|
</div>
|
|
1016
|
-
<div>
|
|
1017
|
-
<
|
|
1018
|
-
|
|
1019
|
-
</div>
|
|
1020
|
-
<div className="text-fm-tertiary text-sm">Maharashtra, IN</div>
|
|
203
|
+
<div className="text-fm-secondary font-fm-text flex items-center gap-1 text-xs">
|
|
204
|
+
<IndianFlagIcon className="h-3.5 w-3.5" />
|
|
205
|
+
India
|
|
1021
206
|
</div>
|
|
1022
207
|
</div>
|
|
1023
|
-
<div className="text-right">
|
|
1024
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
1025
|
-
UTC +5:30
|
|
1026
|
-
</div>
|
|
1027
|
-
<div className="text-fm-tertiary text-xs">IST</div>
|
|
1028
|
-
</div>
|
|
1029
|
-
</div>
|
|
1030
|
-
</div>
|
|
1031
|
-
</div>
|
|
1032
|
-
|
|
1033
|
-
{/* User Profile */}
|
|
1034
|
-
<div className="!space-y-2">
|
|
1035
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1036
|
-
User Profile
|
|
1037
|
-
</h3>
|
|
1038
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
1039
|
-
<div className="text-center">
|
|
1040
|
-
<div className="from-fm-icon-warning/20 to-fm-icon-positive/20 !mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-linear-to-br">
|
|
1041
|
-
<span className="text-2xl">👤</span>
|
|
1042
|
-
</div>
|
|
1043
|
-
<h4 className="text-fm-icon-active mb-2 font-medium">
|
|
1044
|
-
Arjun Patel
|
|
1045
|
-
</h4>
|
|
1046
|
-
<div className="text-fm-secondary flex items-center justify-center gap-2 text-sm">
|
|
1047
|
-
<IndianFlagIcon className="h-4 w-4" />
|
|
1048
|
-
<span>Delhi, India</span>
|
|
1049
|
-
</div>
|
|
1050
|
-
<button className="bg-fm-icon-warning text-fm-icon-active hover:bg-fm-icon-warning mt-4 rounded-lg px-4 py-2 text-sm transition-colors">
|
|
1051
|
-
View Profile
|
|
1052
|
-
</button>
|
|
1053
208
|
</div>
|
|
1054
209
|
</div>
|
|
1055
|
-
</
|
|
1056
|
-
</
|
|
210
|
+
</IconUsageSection>
|
|
211
|
+
</IconUsageCanvas>
|
|
1057
212
|
),
|
|
1058
213
|
}
|
|
1059
214
|
|
|
1060
215
|
export const Playground: Story = {
|
|
1061
|
-
parameters: {
|
|
1062
|
-
...storyParameters,
|
|
1063
|
-
docs: {
|
|
1064
|
-
description: {
|
|
1065
|
-
story:
|
|
1066
|
-
"Interactive playground to experiment with different IndianFlagIcon configurations.",
|
|
1067
|
-
},
|
|
1068
|
-
},
|
|
1069
|
-
},
|
|
1070
216
|
args: {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
className: "",
|
|
217
|
+
className: "h-8 w-8",
|
|
218
|
+
withAccessibility: true,
|
|
1074
219
|
},
|
|
1075
220
|
render: (args) => (
|
|
1076
|
-
<
|
|
1077
|
-
<
|
|
1078
|
-
|
|
1079
|
-
</div>
|
|
1080
|
-
</div>
|
|
221
|
+
<IconPlaygroundCanvas>
|
|
222
|
+
<IndianFlagIcon {...args} />
|
|
223
|
+
</IconPlaygroundCanvas>
|
|
1081
224
|
),
|
|
1082
225
|
}
|