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
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof PageTextIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -47,59 +47,59 @@ const meta: Meta<typeof PageTextIcon> = {
|
|
|
47
47
|
background: transparent !important;
|
|
48
48
|
}
|
|
49
49
|
body {
|
|
50
|
-
background:
|
|
50
|
+
background: var(--color-fm-surface-primary) !important;
|
|
51
51
|
}
|
|
52
52
|
#storybook-docs {
|
|
53
|
-
background:
|
|
53
|
+
background: var(--color-fm-surface-primary) !important;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-preview {
|
|
56
56
|
background: transparent !important;
|
|
57
57
|
border: none !important;
|
|
58
58
|
}
|
|
59
59
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
60
|
-
color:
|
|
60
|
+
color: var(--color-fm-icon-active) !important;
|
|
61
61
|
}
|
|
62
62
|
.sbdocs-p, .sbdocs-li {
|
|
63
|
-
color:
|
|
63
|
+
color: var(--color-fm-secondary) !important;
|
|
64
64
|
}
|
|
65
65
|
.sbdocs-code {
|
|
66
|
-
background:
|
|
67
|
-
color:
|
|
68
|
-
border: 1px solid
|
|
66
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
67
|
+
color: var(--color-fm-secondary-500) !important;
|
|
68
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
69
69
|
}
|
|
70
70
|
.sbdocs-pre {
|
|
71
|
-
background:
|
|
72
|
-
border: 1px solid
|
|
71
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
72
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
73
73
|
}
|
|
74
74
|
.sbdocs-table {
|
|
75
|
-
background:
|
|
76
|
-
border: 1px solid
|
|
75
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
76
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
77
77
|
}
|
|
78
78
|
.sbdocs-table th {
|
|
79
|
-
background:
|
|
80
|
-
color:
|
|
81
|
-
border-bottom: 1px solid
|
|
79
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
80
|
+
color: var(--color-fm-icon-active) !important;
|
|
81
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
82
82
|
}
|
|
83
83
|
.sbdocs-table td {
|
|
84
|
-
color:
|
|
85
|
-
border-bottom: 1px solid
|
|
84
|
+
color: var(--color-fm-secondary) !important;
|
|
85
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
86
86
|
}
|
|
87
87
|
`}
|
|
88
88
|
</style>
|
|
89
89
|
|
|
90
|
-
<div className="
|
|
90
|
+
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
91
91
|
{/* Header */}
|
|
92
|
-
<div className="relative overflow-hidden border-b
|
|
93
|
-
<div className="absolute inset-0 bg-
|
|
92
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
93
|
+
<div className="from-fm-icon-info/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
94
94
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
95
95
|
<div className="!space-y-6 text-center">
|
|
96
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
97
|
-
<PageTextIcon className="h-12 w-12
|
|
96
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
97
|
+
<PageTextIcon className="text-fm-icon-info h-12 w-12" />
|
|
98
98
|
</div>
|
|
99
|
-
<h1 className="text-5xl font-bold
|
|
99
|
+
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
100
100
|
PageTextIcon
|
|
101
101
|
</h1>
|
|
102
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
102
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
103
103
|
A page icon with text lines representing document pages and
|
|
104
104
|
text content. Perfect for document interfaces, text editors,
|
|
105
105
|
and content management systems.
|
|
@@ -108,24 +108,28 @@ const meta: Meta<typeof PageTextIcon> = {
|
|
|
108
108
|
{/* Stats */}
|
|
109
109
|
<div className="mx-auto flex items-center justify-center gap-8">
|
|
110
110
|
<div className="text-center">
|
|
111
|
-
<div className="text-3xl font-bold
|
|
111
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
112
112
|
Page
|
|
113
113
|
</div>
|
|
114
|
-
<div className="text-
|
|
114
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
115
|
+
Document page
|
|
116
|
+
</div>
|
|
115
117
|
</div>
|
|
116
|
-
<div className="h-8 w-px
|
|
118
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
117
119
|
<div className="text-center">
|
|
118
|
-
<div className="text-3xl font-bold
|
|
120
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
119
121
|
Text
|
|
120
122
|
</div>
|
|
121
|
-
<div className="text-
|
|
123
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
124
|
+
Text content
|
|
125
|
+
</div>
|
|
122
126
|
</div>
|
|
123
|
-
<div className="h-8 w-px
|
|
127
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
124
128
|
<div className="text-center">
|
|
125
|
-
<div className="text-3xl font-bold
|
|
129
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
126
130
|
Accessible
|
|
127
131
|
</div>
|
|
128
|
-
<div className="text-
|
|
132
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
129
133
|
Screen reader support
|
|
130
134
|
</div>
|
|
131
135
|
</div>
|
|
@@ -138,34 +142,34 @@ const meta: Meta<typeof PageTextIcon> = {
|
|
|
138
142
|
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
139
143
|
{/* Features */}
|
|
140
144
|
<div className="!space-y-8">
|
|
141
|
-
<h3 className="text-center text-2xl font-bold
|
|
145
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
142
146
|
Key Features
|
|
143
147
|
</h3>
|
|
144
148
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
145
|
-
<div className="space-y-4 rounded-lg border
|
|
149
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
146
150
|
<div className="text-3xl">📄</div>
|
|
147
|
-
<h4 className="text-lg font-semibold
|
|
151
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
148
152
|
Page Icon
|
|
149
153
|
</h4>
|
|
150
|
-
<p className="text-
|
|
154
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
151
155
|
Clear representation of document pages with text lines
|
|
152
156
|
</p>
|
|
153
157
|
</div>
|
|
154
|
-
<div className="space-y-4 rounded-lg border
|
|
158
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
155
159
|
<div className="text-3xl">♿</div>
|
|
156
|
-
<h4 className="text-lg font-semibold
|
|
160
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
157
161
|
Accessibility
|
|
158
162
|
</h4>
|
|
159
|
-
<p className="text-
|
|
163
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
160
164
|
Built with screen reader support
|
|
161
165
|
</p>
|
|
162
166
|
</div>
|
|
163
|
-
<div className="space-y-4 rounded-lg border
|
|
167
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
164
168
|
<div className="text-3xl">🎨</div>
|
|
165
|
-
<h4 className="text-lg font-semibold
|
|
169
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
166
170
|
Customizable
|
|
167
171
|
</h4>
|
|
168
|
-
<p className="text-
|
|
172
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
169
173
|
Flexible styling options
|
|
170
174
|
</p>
|
|
171
175
|
</div>
|
|
@@ -174,43 +178,45 @@ const meta: Meta<typeof PageTextIcon> = {
|
|
|
174
178
|
|
|
175
179
|
{/* API Reference */}
|
|
176
180
|
<div className="!space-y-8">
|
|
177
|
-
<h3 className="text-center text-2xl font-bold
|
|
181
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
178
182
|
API Reference
|
|
179
183
|
</h3>
|
|
180
|
-
<div className="overflow-hidden rounded-lg border
|
|
181
|
-
<div className="bg-
|
|
182
|
-
<h4 className="text-lg font-semibold
|
|
184
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
185
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
186
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
187
|
+
Props
|
|
188
|
+
</h4>
|
|
183
189
|
</div>
|
|
184
190
|
<table className="!my-0 w-full">
|
|
185
|
-
<thead className="bg-
|
|
186
|
-
<tr className="border-
|
|
187
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
191
|
+
<thead className="bg-fm-surface-secondary">
|
|
192
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
193
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
188
194
|
Prop
|
|
189
195
|
</th>
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
196
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
191
197
|
Type
|
|
192
198
|
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
199
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
194
200
|
Default
|
|
195
201
|
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
202
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
197
203
|
Description
|
|
198
204
|
</th>
|
|
199
205
|
</tr>
|
|
200
206
|
</thead>
|
|
201
207
|
<tbody>
|
|
202
208
|
{" "}
|
|
203
|
-
<tr className="
|
|
204
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
209
|
+
<tr className="bg-fm-surface-secondary!">
|
|
210
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
205
211
|
withAccessibility
|
|
206
212
|
</td>
|
|
207
|
-
<td className="px-6 py-4 text-sm
|
|
213
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
208
214
|
boolean
|
|
209
215
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm
|
|
216
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
211
217
|
true
|
|
212
218
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm
|
|
219
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
214
220
|
Whether to wrap the icon with accessibility feature
|
|
215
221
|
</td>
|
|
216
222
|
</tr>
|
|
@@ -221,17 +227,17 @@ const meta: Meta<typeof PageTextIcon> = {
|
|
|
221
227
|
|
|
222
228
|
{/* Usage Examples */}
|
|
223
229
|
<div className="!space-y-8">
|
|
224
|
-
<h3 className="text-center text-2xl font-bold
|
|
230
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
225
231
|
Usage Examples
|
|
226
232
|
</h3>
|
|
227
233
|
|
|
228
234
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
229
235
|
<div className="space-y-4">
|
|
230
|
-
<h4 className="text-lg font-semibold
|
|
236
|
+
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
231
237
|
Basic Usage
|
|
232
238
|
</h4>
|
|
233
|
-
<div className="rounded-lg
|
|
234
|
-
<pre className="overflow-x-auto text-sm
|
|
239
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
240
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
235
241
|
{`import { PageTextIcon } from "@/components/ui/icons/page-text-icon"
|
|
236
242
|
|
|
237
243
|
function DocumentButton() {
|
|
@@ -247,12 +253,12 @@ function DocumentButton() {
|
|
|
247
253
|
</div>
|
|
248
254
|
|
|
249
255
|
<div className="space-y-4">
|
|
250
|
-
<h4 className="text-lg font-semibold
|
|
256
|
+
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
251
257
|
Live Preview
|
|
252
258
|
</h4>
|
|
253
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
254
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
255
|
-
<PageTextIcon className="h-4 w-4
|
|
259
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
260
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
261
|
+
<PageTextIcon className="text-fm-icon-info h-4 w-4" />
|
|
256
262
|
<span>View Page</span>
|
|
257
263
|
</button>
|
|
258
264
|
</div>
|
|
@@ -262,50 +268,62 @@ function DocumentButton() {
|
|
|
262
268
|
|
|
263
269
|
{/* Size Examples */}
|
|
264
270
|
<div className="!space-y-8">
|
|
265
|
-
<h3 className="text-center text-2xl font-bold
|
|
271
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
266
272
|
Size Examples
|
|
267
273
|
</h3>
|
|
268
|
-
<div className="rounded-lg border
|
|
274
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
269
275
|
<div className="!space-y-6">
|
|
270
276
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
271
277
|
<div className="!space-y-4">
|
|
272
|
-
<h3 className="text-lg font-semibold
|
|
278
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
273
279
|
Standard Sizes
|
|
274
280
|
</h3>
|
|
275
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
281
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
276
282
|
<div className="text-center">
|
|
277
|
-
<PageTextIcon className="!mx-auto mb-2 h-3 w-3
|
|
278
|
-
<span className="text-
|
|
283
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
284
|
+
<span className="text-fm-tertiary text-xs">
|
|
285
|
+
12px
|
|
286
|
+
</span>
|
|
279
287
|
</div>
|
|
280
288
|
<div className="text-center">
|
|
281
|
-
<PageTextIcon className="!mx-auto mb-2 h-4 w-4
|
|
282
|
-
<span className="text-
|
|
289
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
290
|
+
<span className="text-fm-tertiary text-xs">
|
|
291
|
+
16px
|
|
292
|
+
</span>
|
|
283
293
|
</div>
|
|
284
294
|
<div className="text-center">
|
|
285
|
-
<PageTextIcon className="!mx-auto mb-2 h-5 w-5
|
|
286
|
-
<span className="text-
|
|
295
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
296
|
+
<span className="text-fm-tertiary text-xs">
|
|
297
|
+
20px
|
|
298
|
+
</span>
|
|
287
299
|
</div>
|
|
288
300
|
<div className="text-center">
|
|
289
|
-
<PageTextIcon className="!mx-auto mb-2 h-6 w-6
|
|
290
|
-
<span className="text-
|
|
301
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
302
|
+
<span className="text-fm-tertiary text-xs">
|
|
303
|
+
24px
|
|
304
|
+
</span>
|
|
291
305
|
</div>
|
|
292
306
|
<div className="text-center">
|
|
293
|
-
<PageTextIcon className="!mx-auto mb-2 h-8 w-8
|
|
294
|
-
<span className="text-
|
|
307
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
308
|
+
<span className="text-fm-tertiary text-xs">
|
|
309
|
+
32px
|
|
310
|
+
</span>
|
|
295
311
|
</div>
|
|
296
312
|
<div className="text-center">
|
|
297
|
-
<PageTextIcon className="!mx-auto mb-2 h-12 w-12
|
|
298
|
-
<span className="text-
|
|
313
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
314
|
+
<span className="text-fm-tertiary text-xs">
|
|
315
|
+
48px
|
|
316
|
+
</span>
|
|
299
317
|
</div>
|
|
300
318
|
</div>
|
|
301
319
|
</div>
|
|
302
320
|
|
|
303
321
|
<div className="!space-y-4">
|
|
304
|
-
<h3 className="text-lg font-semibold
|
|
322
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
305
323
|
Code Example
|
|
306
324
|
</h3>
|
|
307
|
-
<div className="rounded-lg
|
|
308
|
-
<pre className="overflow-x-auto text-sm
|
|
325
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
326
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
309
327
|
{`// Small (16px)
|
|
310
328
|
<PageTextIcon className="h-4 w-4 text-indigo-400" />
|
|
311
329
|
|
|
@@ -331,34 +349,34 @@ function DocumentButton() {
|
|
|
331
349
|
|
|
332
350
|
{/* Common Use Cases */}
|
|
333
351
|
<div className="!space-y-8">
|
|
334
|
-
<h3 className="text-center text-2xl font-bold
|
|
352
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
335
353
|
Common Use Cases
|
|
336
354
|
</h3>
|
|
337
355
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
338
|
-
<div className="space-y-3 rounded-lg border
|
|
356
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
339
357
|
<div className="text-2xl">📄</div>
|
|
340
|
-
<h4 className="text-lg font-semibold
|
|
358
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
341
359
|
Document Pages
|
|
342
360
|
</h4>
|
|
343
|
-
<p className="text-
|
|
361
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
344
362
|
Page navigation and document views
|
|
345
363
|
</p>
|
|
346
364
|
</div>
|
|
347
|
-
<div className="space-y-3 rounded-lg border
|
|
365
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
348
366
|
<div className="text-2xl">📝</div>
|
|
349
|
-
<h4 className="text-lg font-semibold
|
|
367
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
350
368
|
Text Editors
|
|
351
369
|
</h4>
|
|
352
|
-
<p className="text-
|
|
370
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
353
371
|
Text editing interfaces
|
|
354
372
|
</p>
|
|
355
373
|
</div>
|
|
356
|
-
<div className="space-y-3 rounded-lg border
|
|
374
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
357
375
|
<div className="text-2xl">📚</div>
|
|
358
|
-
<h4 className="text-lg font-semibold
|
|
376
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
359
377
|
Content Management
|
|
360
378
|
</h4>
|
|
361
|
-
<p className="text-
|
|
379
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
362
380
|
Content organization systems
|
|
363
381
|
</p>
|
|
364
382
|
</div>
|
|
@@ -367,50 +385,50 @@ function DocumentButton() {
|
|
|
367
385
|
|
|
368
386
|
{/* Best Practices */}
|
|
369
387
|
<div className="!space-y-8">
|
|
370
|
-
<h3 className="text-center text-2xl font-bold
|
|
388
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
371
389
|
Best Practices
|
|
372
390
|
</h3>
|
|
373
391
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
374
|
-
<div className="space-y-4 rounded-lg border
|
|
375
|
-
<h4 className="text-lg font-semibold
|
|
392
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
393
|
+
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
376
394
|
✅ Do
|
|
377
395
|
</h4>
|
|
378
|
-
<ul className="space-y-2 text-sm
|
|
379
|
-
<li className="
|
|
396
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
397
|
+
<li className="text-fm-icon-active!/80">
|
|
380
398
|
Use appropriate sizes for different contexts
|
|
381
399
|
</li>
|
|
382
|
-
<li className="
|
|
400
|
+
<li className="text-fm-icon-active!/80">
|
|
383
401
|
Choose colors that match your UI theme
|
|
384
402
|
</li>
|
|
385
|
-
<li className="
|
|
403
|
+
<li className="text-fm-icon-active!/80">
|
|
386
404
|
Provide clear labels for icon buttons
|
|
387
405
|
</li>
|
|
388
|
-
<li className="
|
|
406
|
+
<li className="text-fm-icon-active!/80">
|
|
389
407
|
Use consistent styling across your app
|
|
390
408
|
</li>
|
|
391
|
-
<li className="
|
|
409
|
+
<li className="text-fm-icon-active!/80">
|
|
392
410
|
Consider accessibility in all implementations
|
|
393
411
|
</li>
|
|
394
412
|
</ul>
|
|
395
413
|
</div>
|
|
396
|
-
<div className="space-y-4 rounded-lg border
|
|
397
|
-
<h4 className="text-lg font-semibold
|
|
414
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
415
|
+
<h4 className="text-fm-icon-negative! text-lg font-semibold">
|
|
398
416
|
❌ Don't
|
|
399
417
|
</h4>
|
|
400
|
-
<ul className="space-y-2 text-sm
|
|
401
|
-
<li className="
|
|
418
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
419
|
+
<li className="text-fm-icon-active!/80">
|
|
402
420
|
Use multiple icon styles in the same view
|
|
403
421
|
</li>
|
|
404
|
-
<li className="
|
|
422
|
+
<li className="text-fm-icon-active!/80">
|
|
405
423
|
Overuse the icon in navigation
|
|
406
424
|
</li>
|
|
407
|
-
<li className="
|
|
425
|
+
<li className="text-fm-icon-active!/80">
|
|
408
426
|
Use inappropriate sizes for the context
|
|
409
427
|
</li>
|
|
410
|
-
<li className="
|
|
428
|
+
<li className="text-fm-icon-active!/80">
|
|
411
429
|
Forget to add hover states
|
|
412
430
|
</li>
|
|
413
|
-
<li className="
|
|
431
|
+
<li className="text-fm-icon-active!/80">
|
|
414
432
|
Ignore accessibility requirements
|
|
415
433
|
</li>
|
|
416
434
|
</ul>
|
|
@@ -420,14 +438,14 @@ function DocumentButton() {
|
|
|
420
438
|
</div>
|
|
421
439
|
|
|
422
440
|
{/* Footer */}
|
|
423
|
-
<div className="border-
|
|
441
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
424
442
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
425
443
|
<div className="!space-y-4 text-center">
|
|
426
|
-
<p className="
|
|
444
|
+
<p className="text-fm-tertiary!">
|
|
427
445
|
PageTextIcon is part of the Aural UI icon library, designed
|
|
428
446
|
for document pages and text content interfaces.
|
|
429
447
|
</p>
|
|
430
|
-
<p className="text-
|
|
448
|
+
<p className="text-fm-placeholder! text-sm">
|
|
431
449
|
Perfect for page navigation, document editors, content
|
|
432
450
|
management systems, and any interface requiring page and
|
|
433
451
|
text representation.
|
|
@@ -469,8 +487,8 @@ const storyParameters = {
|
|
|
469
487
|
backgrounds: {
|
|
470
488
|
default: "dark",
|
|
471
489
|
values: [
|
|
472
|
-
{ name: "dark", value: "
|
|
473
|
-
{ name: "darker", value: "
|
|
490
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
491
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
474
492
|
],
|
|
475
493
|
},
|
|
476
494
|
}
|
|
@@ -479,12 +497,12 @@ export const Default: Story = {
|
|
|
479
497
|
args: {
|
|
480
498
|
width: 24,
|
|
481
499
|
height: 24,
|
|
482
|
-
className: "text-
|
|
500
|
+
className: "text-fm-icon-info",
|
|
483
501
|
withAccessibility: true,
|
|
484
502
|
},
|
|
485
503
|
parameters: storyParameters,
|
|
486
504
|
render: (args) => (
|
|
487
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
505
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
488
506
|
<PageTextIcon {...args} />
|
|
489
507
|
</div>
|
|
490
508
|
),
|
|
@@ -501,30 +519,30 @@ export const SizeVariations: Story = {
|
|
|
501
519
|
},
|
|
502
520
|
},
|
|
503
521
|
render: () => (
|
|
504
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
522
|
+
<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">
|
|
505
523
|
<div className="text-center">
|
|
506
|
-
<PageTextIcon className="!mx-auto mb-2 h-3 w-3
|
|
507
|
-
<span className="text-
|
|
524
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
525
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
508
526
|
</div>
|
|
509
527
|
<div className="text-center">
|
|
510
|
-
<PageTextIcon className="!mx-auto mb-2 h-4 w-4
|
|
511
|
-
<span className="text-
|
|
528
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
529
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
512
530
|
</div>
|
|
513
531
|
<div className="text-center">
|
|
514
|
-
<PageTextIcon className="!mx-auto mb-2 h-5 w-5
|
|
515
|
-
<span className="text-
|
|
532
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
533
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
516
534
|
</div>
|
|
517
535
|
<div className="text-center">
|
|
518
|
-
<PageTextIcon className="!mx-auto mb-2 h-6 w-6
|
|
519
|
-
<span className="text-
|
|
536
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
537
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
520
538
|
</div>
|
|
521
539
|
<div className="text-center">
|
|
522
|
-
<PageTextIcon className="!mx-auto mb-2 h-8 w-8
|
|
523
|
-
<span className="text-
|
|
540
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
541
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
524
542
|
</div>
|
|
525
543
|
<div className="text-center">
|
|
526
|
-
<PageTextIcon className="!mx-auto mb-2 h-12 w-12
|
|
527
|
-
<span className="text-
|
|
544
|
+
<PageTextIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
545
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
528
546
|
</div>
|
|
529
547
|
</div>
|
|
530
548
|
),
|
|
@@ -541,96 +559,116 @@ export const ColorVariations: Story = {
|
|
|
541
559
|
},
|
|
542
560
|
},
|
|
543
561
|
render: () => (
|
|
544
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
562
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
545
563
|
<div className="!space-y-4">
|
|
546
|
-
<h3 className="text-center text-lg font-semibold
|
|
564
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
547
565
|
Standard Colors
|
|
548
566
|
</h3>
|
|
549
567
|
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
550
568
|
<div className="text-center">
|
|
551
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
552
|
-
<PageTextIcon className="h-8 w-8
|
|
569
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
570
|
+
<PageTextIcon className="text-fm-icon-info h-8 w-8" />
|
|
571
|
+
</div>
|
|
572
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
573
|
+
Indigo
|
|
553
574
|
</div>
|
|
554
|
-
<div className="text-
|
|
555
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
575
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
556
576
|
</div>
|
|
557
577
|
<div className="text-center">
|
|
558
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
559
|
-
<PageTextIcon className="h-8 w-8
|
|
578
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
579
|
+
<PageTextIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
580
|
+
</div>
|
|
581
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
582
|
+
Purple
|
|
583
|
+
</div>
|
|
584
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
585
|
+
text-fm-secondary-600
|
|
560
586
|
</div>
|
|
561
|
-
<div className="text-sm font-medium text-white">Purple</div>
|
|
562
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
563
587
|
</div>
|
|
564
588
|
<div className="text-center">
|
|
565
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
566
|
-
<PageTextIcon className="h-8 w-8
|
|
589
|
+
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
590
|
+
<PageTextIcon className="text-fm-icon-positive h-8 w-8" />
|
|
591
|
+
</div>
|
|
592
|
+
<div className="text-fm-icon-active text-sm font-medium">Green</div>
|
|
593
|
+
<div className="text-fm-icon-positive text-xs">
|
|
594
|
+
text-fm-icon-positive
|
|
567
595
|
</div>
|
|
568
|
-
<div className="text-sm font-medium text-white">Green</div>
|
|
569
|
-
<div className="text-xs text-green-400">text-green-400</div>
|
|
570
596
|
</div>
|
|
571
597
|
<div className="text-center">
|
|
572
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
573
|
-
<PageTextIcon className="h-8 w-8
|
|
598
|
+
<div className="border-fm-icon-negative/30 bg-fm-icon-negative/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
599
|
+
<PageTextIcon className="text-fm-icon-negative h-8 w-8" />
|
|
600
|
+
</div>
|
|
601
|
+
<div className="text-fm-icon-active text-sm font-medium">Red</div>
|
|
602
|
+
<div className="text-fm-icon-negative text-xs">
|
|
603
|
+
text-fm-icon-negative
|
|
574
604
|
</div>
|
|
575
|
-
<div className="text-sm font-medium text-white">Red</div>
|
|
576
|
-
<div className="text-xs text-red-400">text-red-400</div>
|
|
577
605
|
</div>
|
|
578
606
|
<div className="text-center">
|
|
579
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
580
|
-
<PageTextIcon className="h-8 w-8
|
|
607
|
+
<div className="border-fm-icon-warning/30 bg-fm-icon-warning/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
608
|
+
<PageTextIcon className="text-fm-icon-warning h-8 w-8" />
|
|
609
|
+
</div>
|
|
610
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
611
|
+
Yellow
|
|
612
|
+
</div>
|
|
613
|
+
<div className="text-fm-icon-warning text-xs">
|
|
614
|
+
text-fm-icon-warning
|
|
581
615
|
</div>
|
|
582
|
-
<div className="text-sm font-medium text-white">Yellow</div>
|
|
583
|
-
<div className="text-xs text-yellow-400">text-yellow-400</div>
|
|
584
616
|
</div>
|
|
585
617
|
<div className="text-center">
|
|
586
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
587
|
-
<PageTextIcon className="h-8 w-8
|
|
618
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
619
|
+
<PageTextIcon className="text-fm-icon-info h-8 w-8" />
|
|
588
620
|
</div>
|
|
589
|
-
<div className="text-sm font-medium
|
|
590
|
-
<div className="text-
|
|
621
|
+
<div className="text-fm-icon-active text-sm font-medium">Blue</div>
|
|
622
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
591
623
|
</div>
|
|
592
624
|
<div className="text-center">
|
|
593
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
594
|
-
<PageTextIcon className="h-8 w-8
|
|
625
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
626
|
+
<PageTextIcon className="text-fm-icon-info h-8 w-8" />
|
|
595
627
|
</div>
|
|
596
|
-
<div className="text-sm font-medium
|
|
597
|
-
<div className="text-
|
|
628
|
+
<div className="text-fm-icon-active text-sm font-medium">Cyan</div>
|
|
629
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
598
630
|
</div>
|
|
599
631
|
<div className="text-center">
|
|
600
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
601
|
-
<PageTextIcon className="h-8 w-8
|
|
632
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
633
|
+
<PageTextIcon className="text-fm-icon-active h-8 w-8" />
|
|
602
634
|
</div>
|
|
603
|
-
<div className="text-sm font-medium
|
|
604
|
-
<div className="text-
|
|
635
|
+
<div className="text-fm-icon-active text-sm font-medium">White</div>
|
|
636
|
+
<div className="text-fm-tertiary text-xs">text-fm-icon-active</div>
|
|
605
637
|
</div>
|
|
606
638
|
</div>
|
|
607
639
|
</div>
|
|
608
640
|
<div className="!space-y-4">
|
|
609
|
-
<h3 className="text-center text-lg font-semibold
|
|
641
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
610
642
|
Design System Colors
|
|
611
643
|
</h3>
|
|
612
644
|
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
613
645
|
<div className="text-center">
|
|
614
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
646
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
615
647
|
<PageTextIcon className="text-fm-primary h-8 w-8" />
|
|
616
648
|
</div>
|
|
617
|
-
<div className="text-sm font-medium
|
|
649
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
650
|
+
Primary
|
|
651
|
+
</div>
|
|
618
652
|
<div className="text-fm-primary text-xs">text-fm-primary</div>
|
|
619
653
|
</div>
|
|
620
654
|
<div className="text-center">
|
|
621
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
655
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
622
656
|
<PageTextIcon className="text-fm-secondary-500 h-8 w-8" />
|
|
623
657
|
</div>
|
|
624
|
-
<div className="text-sm font-medium
|
|
658
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
659
|
+
Secondary
|
|
660
|
+
</div>
|
|
625
661
|
<div className="text-fm-secondary-500 text-xs">
|
|
626
662
|
text-fm-secondary-500
|
|
627
663
|
</div>
|
|
628
664
|
</div>
|
|
629
665
|
<div className="text-center">
|
|
630
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
666
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
631
667
|
<PageTextIcon className="text-fm-neutral-800 h-8 w-8" />
|
|
632
668
|
</div>
|
|
633
|
-
<div className="text-sm font-medium
|
|
669
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
670
|
+
Neutral
|
|
671
|
+
</div>
|
|
634
672
|
<div className="text-fm-neutral-800 text-xs">
|
|
635
673
|
text-fm-neutral-800
|
|
636
674
|
</div>
|
|
@@ -652,69 +690,69 @@ export const UsageExamples: Story = {
|
|
|
652
690
|
},
|
|
653
691
|
},
|
|
654
692
|
render: () => (
|
|
655
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
693
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
656
694
|
<div className="!space-y-4">
|
|
657
|
-
<h3 className="text-center text-lg font-semibold
|
|
695
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
658
696
|
Action Buttons
|
|
659
697
|
</h3>
|
|
660
698
|
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
661
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
662
|
-
<PageTextIcon className="h-4 w-4
|
|
699
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
700
|
+
<PageTextIcon className="text-fm-icon-info h-4 w-4" />
|
|
663
701
|
<span>View Page</span>
|
|
664
702
|
</button>
|
|
665
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
666
|
-
<PageTextIcon className="h-4 w-4
|
|
703
|
+
<button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
704
|
+
<PageTextIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
667
705
|
<span>Edit Page</span>
|
|
668
706
|
</button>
|
|
669
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
670
|
-
<PageTextIcon className="h-4 w-4
|
|
707
|
+
<button className="border-fm-icon-positive/20 bg-fm-icon-positive/10 text-fm-icon-active hover:bg-fm-icon-positive/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
708
|
+
<PageTextIcon className="text-fm-icon-positive h-4 w-4" />
|
|
671
709
|
<span>Save Page</span>
|
|
672
710
|
</button>
|
|
673
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
674
|
-
<PageTextIcon className="h-4 w-4
|
|
711
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
712
|
+
<PageTextIcon className="text-fm-icon-info h-4 w-4" />
|
|
675
713
|
<span>New Page</span>
|
|
676
714
|
</button>
|
|
677
715
|
</div>
|
|
678
716
|
</div>
|
|
679
717
|
<div className="!space-y-4">
|
|
680
|
-
<h3 className="text-center text-lg font-semibold
|
|
718
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
681
719
|
Page List Items
|
|
682
720
|
</h3>
|
|
683
721
|
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
684
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
685
|
-
<PageTextIcon className="h-4 w-4
|
|
686
|
-
<span className="text-
|
|
722
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
723
|
+
<PageTextIcon className="text-fm-icon-positive h-4 w-4" />
|
|
724
|
+
<span className="text-fm-icon-active/80">Page 1</span>
|
|
687
725
|
</div>
|
|
688
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
689
|
-
<PageTextIcon className="h-4 w-4
|
|
690
|
-
<span className="text-
|
|
726
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
727
|
+
<PageTextIcon className="text-fm-icon-info h-4 w-4" />
|
|
728
|
+
<span className="text-fm-icon-active/80">Page 2</span>
|
|
691
729
|
</div>
|
|
692
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
693
|
-
<PageTextIcon className="h-4 w-4
|
|
694
|
-
<span className="text-
|
|
730
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
731
|
+
<PageTextIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
732
|
+
<span className="text-fm-icon-active/80">Page 3</span>
|
|
695
733
|
</div>
|
|
696
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
697
|
-
<PageTextIcon className="h-4 w-4
|
|
698
|
-
<span className="text-
|
|
734
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
735
|
+
<PageTextIcon className="text-fm-icon-warning h-4 w-4" />
|
|
736
|
+
<span className="text-fm-icon-active/80">Page 4</span>
|
|
699
737
|
</div>
|
|
700
738
|
</div>
|
|
701
739
|
</div>
|
|
702
740
|
<div className="!space-y-4">
|
|
703
|
-
<h3 className="text-center text-lg font-semibold
|
|
741
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
704
742
|
Status Indicators
|
|
705
743
|
</h3>
|
|
706
744
|
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
707
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
708
|
-
<PageTextIcon className="h-5 w-5
|
|
709
|
-
<span className="text-
|
|
745
|
+
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
746
|
+
<PageTextIcon className="text-fm-icon-positive h-5 w-5" />
|
|
747
|
+
<span className="text-fm-icon-active">Published</span>
|
|
710
748
|
</div>
|
|
711
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
712
|
-
<PageTextIcon className="h-5 w-5
|
|
713
|
-
<span className="text-
|
|
749
|
+
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
750
|
+
<PageTextIcon className="text-fm-icon-warning h-5 w-5" />
|
|
751
|
+
<span className="text-fm-icon-active">Draft</span>
|
|
714
752
|
</div>
|
|
715
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
716
|
-
<PageTextIcon className="h-5 w-5
|
|
717
|
-
<span className="text-
|
|
753
|
+
<div className="border-fm-icon-negative/20 bg-fm-icon-negative/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
754
|
+
<PageTextIcon className="text-fm-icon-negative h-5 w-5" />
|
|
755
|
+
<span className="text-fm-icon-active">Archived</span>
|
|
718
756
|
</div>
|
|
719
757
|
</div>
|
|
720
758
|
</div>
|
|
@@ -735,11 +773,11 @@ export const Playground: Story = {
|
|
|
735
773
|
args: {
|
|
736
774
|
width: 32,
|
|
737
775
|
height: 32,
|
|
738
|
-
className: "text-
|
|
776
|
+
className: "text-fm-icon-info",
|
|
739
777
|
},
|
|
740
778
|
render: (args) => (
|
|
741
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
742
|
-
<div className="rounded-lg border
|
|
779
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
780
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
743
781
|
<PageTextIcon {...args} />
|
|
744
782
|
</div>
|
|
745
783
|
</div>
|