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 ColumnWideAddIcon> = {
|
|
|
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: {
|
|
@@ -40,59 +40,59 @@ const meta: Meta<typeof ColumnWideAddIcon> = {
|
|
|
40
40
|
background: transparent !important;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) !important;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) !important;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent !important;
|
|
50
50
|
border: none !important;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) !important;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) !important;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
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
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
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
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) !important;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
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-info/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
88
|
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
90
|
-
<ColumnWideAddIcon className="h-12 w-12
|
|
89
|
+
<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">
|
|
90
|
+
<ColumnWideAddIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
ColumnWideAddIcon
|
|
94
94
|
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
95
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
96
|
A column-wide add icon for representing column addition
|
|
97
97
|
actions, layout expansion, and content insertion. Perfect
|
|
98
98
|
for table controls, layout management, and UI configuration
|
|
@@ -103,26 +103,28 @@ const meta: Meta<typeof ColumnWideAddIcon> = {
|
|
|
103
103
|
{/* Stats */}
|
|
104
104
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
105
105
|
<div className="text-center">
|
|
106
|
-
<div className="text-3xl font-bold
|
|
106
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
107
107
|
Add
|
|
108
108
|
</div>
|
|
109
|
-
<div className="text-
|
|
109
|
+
<div className="text-fm-tertiary text-sm">
|
|
110
110
|
Column insertion
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
113
|
-
<div className="h-8 w-px
|
|
113
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
114
114
|
<div className="text-center">
|
|
115
|
-
<div className="text-3xl font-bold
|
|
115
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
116
116
|
Expand
|
|
117
117
|
</div>
|
|
118
|
-
<div className="text-
|
|
118
|
+
<div className="text-fm-tertiary text-sm">
|
|
119
|
+
Layout growth
|
|
120
|
+
</div>
|
|
119
121
|
</div>
|
|
120
|
-
<div className="h-8 w-px
|
|
122
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
121
123
|
<div className="text-center">
|
|
122
|
-
<div className="text-3xl font-bold
|
|
124
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
123
125
|
Flexible
|
|
124
126
|
</div>
|
|
125
|
-
<div className="text-
|
|
127
|
+
<div className="text-fm-tertiary text-sm">
|
|
126
128
|
Customizable styling
|
|
127
129
|
</div>
|
|
128
130
|
</div>
|
|
@@ -135,16 +137,16 @@ const meta: Meta<typeof ColumnWideAddIcon> = {
|
|
|
135
137
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
136
138
|
{/* Quick Usage */}
|
|
137
139
|
<div className="!space-y-8">
|
|
138
|
-
<h2 className="text-center text-3xl font-bold
|
|
140
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
139
141
|
Quick Start
|
|
140
142
|
</h2>
|
|
141
143
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
142
144
|
<div className="!space-y-4">
|
|
143
|
-
<h3 className="text-xl font-semibold
|
|
145
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
144
146
|
Basic Usage
|
|
145
147
|
</h3>
|
|
146
|
-
<div className="rounded-lg
|
|
147
|
-
<pre className="overflow-x-auto text-sm
|
|
148
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
149
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
148
150
|
{`import { ColumnWideAddIcon } from "@icons/column-wide-add-icon"
|
|
149
151
|
|
|
150
152
|
function TableToolbar() {
|
|
@@ -160,13 +162,13 @@ function TableToolbar() {
|
|
|
160
162
|
</div>
|
|
161
163
|
|
|
162
164
|
<div className="!space-y-4">
|
|
163
|
-
<h3 className="text-xl font-semibold
|
|
165
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
164
166
|
Live Preview
|
|
165
167
|
</h3>
|
|
166
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
167
|
-
<button className="flex items-center gap-3 rounded-lg border
|
|
168
|
-
<ColumnWideAddIcon className="h-5 w-5
|
|
169
|
-
<span className="text-
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
169
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
170
|
+
<ColumnWideAddIcon className="text-fm-icon-info h-5 w-5" />
|
|
171
|
+
<span className="text-fm-icon-active">Add Column</span>
|
|
170
172
|
</button>
|
|
171
173
|
</div>
|
|
172
174
|
</div>
|
|
@@ -175,94 +177,102 @@ function TableToolbar() {
|
|
|
175
177
|
|
|
176
178
|
{/* Props Documentation */}
|
|
177
179
|
<div className="!space-y-8">
|
|
178
|
-
<h2 className="text-center text-3xl font-bold
|
|
180
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
179
181
|
Props & Configuration
|
|
180
182
|
</h2>
|
|
181
183
|
|
|
182
|
-
<div className="overflow-hidden rounded-lg border
|
|
183
|
-
<div className="bg-
|
|
184
|
-
<h3 className="text-xl 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
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
187
|
+
Props
|
|
188
|
+
</h3>
|
|
185
189
|
</div>
|
|
186
190
|
<table className="!my-0 w-full">
|
|
187
|
-
<thead className="bg-
|
|
188
|
-
<tr className="border-
|
|
189
|
-
<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">
|
|
190
194
|
Prop
|
|
191
195
|
</th>
|
|
192
|
-
<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">
|
|
193
197
|
Type
|
|
194
198
|
</th>
|
|
195
|
-
<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">
|
|
196
200
|
Default
|
|
197
201
|
</th>
|
|
198
|
-
<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">
|
|
199
203
|
Description
|
|
200
204
|
</th>
|
|
201
205
|
</tr>
|
|
202
206
|
</thead>
|
|
203
207
|
<tbody>
|
|
204
208
|
{" "}
|
|
205
|
-
<tr className="
|
|
206
|
-
<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">
|
|
207
211
|
withAccessibility
|
|
208
212
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm
|
|
213
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
210
214
|
boolean
|
|
211
215
|
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm
|
|
216
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
213
217
|
true
|
|
214
218
|
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm
|
|
219
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
216
220
|
Whether to wrap the icon with accessibility feature
|
|
217
221
|
</td>
|
|
218
222
|
</tr>
|
|
219
|
-
<tr className="border-
|
|
220
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
223
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
224
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
221
225
|
height
|
|
222
226
|
</td>
|
|
223
|
-
<td className="px-6 py-4 text-sm
|
|
227
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
224
228
|
number | string
|
|
225
229
|
</td>
|
|
226
|
-
<td className="px-6 py-4 text-sm
|
|
227
|
-
|
|
230
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
231
|
+
56
|
|
232
|
+
</td>
|
|
233
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
228
234
|
Height of the icon in pixels
|
|
229
235
|
</td>
|
|
230
236
|
</tr>
|
|
231
|
-
<tr className="border-
|
|
232
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
237
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
238
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
233
239
|
fill
|
|
234
240
|
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm
|
|
241
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
236
242
|
string
|
|
237
243
|
</td>
|
|
238
|
-
<td className="px-6 py-4 text-sm
|
|
244
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
239
245
|
currentColor
|
|
240
246
|
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm
|
|
247
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
242
248
|
Fill color of the icon
|
|
243
249
|
</td>
|
|
244
250
|
</tr>
|
|
245
|
-
<tr className="border-
|
|
246
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
251
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
252
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
247
253
|
className
|
|
248
254
|
</td>
|
|
249
|
-
<td className="px-6 py-4 text-sm
|
|
255
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
250
256
|
string
|
|
251
257
|
</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm
|
|
253
|
-
|
|
258
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
259
|
+
-
|
|
260
|
+
</td>
|
|
261
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
254
262
|
CSS classes for styling
|
|
255
263
|
</td>
|
|
256
264
|
</tr>
|
|
257
|
-
<tr className="
|
|
258
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
265
|
+
<tr className="bg-fm-surface-secondary!">
|
|
266
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
259
267
|
...svgProps
|
|
260
268
|
</td>
|
|
261
|
-
<td className="px-6 py-4 text-sm
|
|
269
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
262
270
|
SVGProps
|
|
263
271
|
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm
|
|
265
|
-
|
|
272
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
273
|
+
-
|
|
274
|
+
</td>
|
|
275
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
266
276
|
All standard SVG element props
|
|
267
277
|
</td>
|
|
268
278
|
</tr>
|
|
@@ -273,42 +283,50 @@ function TableToolbar() {
|
|
|
273
283
|
|
|
274
284
|
{/* Size Variations */}
|
|
275
285
|
<div className="!space-y-8">
|
|
276
|
-
<h2 className="text-center text-3xl font-bold
|
|
286
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
277
287
|
Size Variations
|
|
278
288
|
</h2>
|
|
279
|
-
<div className="rounded-lg border
|
|
289
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
280
290
|
<div className="!space-y-6">
|
|
281
291
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
282
292
|
<div className="!space-y-4">
|
|
283
|
-
<h3 className="text-lg font-semibold
|
|
293
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
284
294
|
Standard Sizes
|
|
285
295
|
</h3>
|
|
286
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
296
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
287
297
|
<div className="text-center">
|
|
288
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-6 w-6
|
|
289
|
-
<span className="text-
|
|
298
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
299
|
+
<span className="text-fm-tertiary text-xs">
|
|
300
|
+
24px
|
|
301
|
+
</span>
|
|
290
302
|
</div>
|
|
291
303
|
<div className="text-center">
|
|
292
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-8 w-8
|
|
293
|
-
<span className="text-
|
|
304
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
305
|
+
<span className="text-fm-tertiary text-xs">
|
|
306
|
+
32px
|
|
307
|
+
</span>
|
|
294
308
|
</div>
|
|
295
309
|
<div className="text-center">
|
|
296
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-12 w-12
|
|
297
|
-
<span className="text-
|
|
310
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
311
|
+
<span className="text-fm-tertiary text-xs">
|
|
312
|
+
48px
|
|
313
|
+
</span>
|
|
298
314
|
</div>
|
|
299
315
|
<div className="text-center">
|
|
300
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-14 w-14
|
|
301
|
-
<span className="text-
|
|
316
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-14 w-14" />
|
|
317
|
+
<span className="text-fm-tertiary text-xs">
|
|
318
|
+
56px
|
|
319
|
+
</span>
|
|
302
320
|
</div>
|
|
303
321
|
</div>
|
|
304
322
|
</div>
|
|
305
323
|
|
|
306
324
|
<div className="!space-y-4">
|
|
307
|
-
<h3 className="text-lg font-semibold
|
|
325
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
308
326
|
Code Example
|
|
309
327
|
</h3>
|
|
310
|
-
<div className="rounded-lg
|
|
311
|
-
<pre className="overflow-x-auto text-sm
|
|
328
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
329
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
312
330
|
{`// Small (24px)
|
|
313
331
|
<ColumnWideAddIcon className="h-6 w-6" />
|
|
314
332
|
|
|
@@ -330,56 +348,56 @@ function TableToolbar() {
|
|
|
330
348
|
|
|
331
349
|
{/* Color Variations */}
|
|
332
350
|
<div className="!space-y-8">
|
|
333
|
-
<h2 className="text-center text-3xl font-bold
|
|
351
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
334
352
|
Color Variations
|
|
335
353
|
</h2>
|
|
336
354
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
337
355
|
<div className="!space-y-4">
|
|
338
|
-
<h3 className="text-lg font-semibold
|
|
356
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
339
357
|
Semantic Colors
|
|
340
358
|
</h3>
|
|
341
|
-
<div className="space-y-4! rounded-lg border
|
|
359
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4! rounded-lg border p-6">
|
|
342
360
|
<div className="flex items-center gap-4">
|
|
343
|
-
<ColumnWideAddIcon className="h-6 w-6
|
|
361
|
+
<ColumnWideAddIcon className="text-fm-icon-info h-6 w-6" />
|
|
344
362
|
<div>
|
|
345
|
-
<div className="text-sm font-medium
|
|
363
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
346
364
|
Primary
|
|
347
365
|
</div>
|
|
348
|
-
<div className="text-
|
|
349
|
-
text-
|
|
366
|
+
<div className="text-fm-tertiary text-xs">
|
|
367
|
+
text-fm-icon-info
|
|
350
368
|
</div>
|
|
351
369
|
</div>
|
|
352
370
|
</div>
|
|
353
371
|
<div className="flex items-center gap-4">
|
|
354
|
-
<ColumnWideAddIcon className="h-6 w-6
|
|
372
|
+
<ColumnWideAddIcon className="text-fm-placeholder h-6 w-6" />
|
|
355
373
|
<div>
|
|
356
|
-
<div className="text-sm font-medium
|
|
374
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
357
375
|
Secondary
|
|
358
376
|
</div>
|
|
359
|
-
<div className="text-
|
|
360
|
-
text-
|
|
377
|
+
<div className="text-fm-tertiary text-xs">
|
|
378
|
+
text-fm-placeholder
|
|
361
379
|
</div>
|
|
362
380
|
</div>
|
|
363
381
|
</div>
|
|
364
382
|
<div className="flex items-center gap-4">
|
|
365
|
-
<ColumnWideAddIcon className="h-6 w-6
|
|
383
|
+
<ColumnWideAddIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
366
384
|
<div>
|
|
367
|
-
<div className="text-sm font-medium
|
|
385
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
368
386
|
Accent
|
|
369
387
|
</div>
|
|
370
|
-
<div className="text-
|
|
371
|
-
text-
|
|
388
|
+
<div className="text-fm-tertiary text-xs">
|
|
389
|
+
text-fm-secondary-600
|
|
372
390
|
</div>
|
|
373
391
|
</div>
|
|
374
392
|
</div>
|
|
375
393
|
<div className="flex items-center gap-4">
|
|
376
|
-
<ColumnWideAddIcon className="h-6 w-6
|
|
394
|
+
<ColumnWideAddIcon className="text-fm-icon-positive h-6 w-6" />
|
|
377
395
|
<div>
|
|
378
|
-
<div className="text-sm font-medium
|
|
396
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
379
397
|
Success
|
|
380
398
|
</div>
|
|
381
|
-
<div className="text-
|
|
382
|
-
text-
|
|
399
|
+
<div className="text-fm-tertiary text-xs">
|
|
400
|
+
text-fm-icon-positive
|
|
383
401
|
</div>
|
|
384
402
|
</div>
|
|
385
403
|
</div>
|
|
@@ -387,11 +405,11 @@ function TableToolbar() {
|
|
|
387
405
|
</div>
|
|
388
406
|
|
|
389
407
|
<div className="!space-y-4">
|
|
390
|
-
<h3 className="text-lg font-semibold
|
|
408
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
391
409
|
Custom Colors
|
|
392
410
|
</h3>
|
|
393
|
-
<div className="rounded-lg
|
|
394
|
-
<pre className="overflow-x-auto text-sm
|
|
411
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
412
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
395
413
|
{`// Using Tailwind classes
|
|
396
414
|
<ColumnWideAddIcon className="h-6 w-6 text-blue-400" />
|
|
397
415
|
<ColumnWideAddIcon className="h-6 w-6 text-purple-500" />
|
|
@@ -416,28 +434,28 @@ function TableToolbar() {
|
|
|
416
434
|
|
|
417
435
|
{/* Usage Examples */}
|
|
418
436
|
<div className="space-y-8!">
|
|
419
|
-
<h2 className="text-center text-3xl font-bold
|
|
437
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
420
438
|
Usage Examples
|
|
421
439
|
</h2>
|
|
422
440
|
|
|
423
441
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
424
442
|
{/* Table Toolbar */}
|
|
425
443
|
<div className="!space-y-4">
|
|
426
|
-
<h3 className="text-lg font-semibold
|
|
444
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
427
445
|
Table Toolbar
|
|
428
446
|
</h3>
|
|
429
447
|
<div className="!space-y-4">
|
|
430
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
431
|
-
<button className="flex items-center gap-2 rounded border
|
|
448
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-4">
|
|
449
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded border px-3 py-1.5">
|
|
432
450
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
433
451
|
<span className="text-sm">Add Column</span>
|
|
434
452
|
</button>
|
|
435
|
-
<button className="flex items-center gap-2 rounded border
|
|
453
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-1.5">
|
|
436
454
|
<span className="text-sm">Delete</span>
|
|
437
455
|
</button>
|
|
438
456
|
</div>
|
|
439
|
-
<div className="rounded-lg
|
|
440
|
-
<pre className="overflow-x-auto text-sm
|
|
457
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
458
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
441
459
|
{`// Table toolbar with add column button
|
|
442
460
|
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-3 py-1.5 rounded text-blue-200">
|
|
443
461
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
@@ -450,30 +468,32 @@ function TableToolbar() {
|
|
|
450
468
|
|
|
451
469
|
{/* Spreadsheet Controls */}
|
|
452
470
|
<div className="!space-y-4">
|
|
453
|
-
<h3 className="text-lg font-semibold
|
|
471
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
454
472
|
Spreadsheet Controls
|
|
455
473
|
</h3>
|
|
456
474
|
<div className="!space-y-4">
|
|
457
|
-
<div className="rounded-lg border
|
|
475
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
458
476
|
<div className="mb-3 flex items-center justify-between">
|
|
459
|
-
<h4 className="font-medium
|
|
460
|
-
|
|
477
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
478
|
+
Columns
|
|
479
|
+
</h4>
|
|
480
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-1.5">
|
|
461
481
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
462
482
|
</button>
|
|
463
483
|
</div>
|
|
464
484
|
<div className="!space-y-2">
|
|
465
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
485
|
+
<div className="text-fm-tertiary flex items-center gap-2 rounded px-2 py-1">
|
|
466
486
|
<span className="text-xs">A</span>
|
|
467
487
|
<span className="text-sm">Name</span>
|
|
468
488
|
</div>
|
|
469
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
489
|
+
<div className="text-fm-tertiary flex items-center gap-2 rounded px-2 py-1">
|
|
470
490
|
<span className="text-xs">B</span>
|
|
471
491
|
<span className="text-sm">Email</span>
|
|
472
492
|
</div>
|
|
473
493
|
</div>
|
|
474
494
|
</div>
|
|
475
|
-
<div className="rounded-lg
|
|
476
|
-
<pre className="overflow-x-auto text-sm
|
|
495
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
496
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
477
497
|
{`// Column header with add button
|
|
478
498
|
<div className="flex items-center justify-between">
|
|
479
499
|
<h4 className="font-medium text-white">Columns</h4>
|
|
@@ -488,23 +508,25 @@ function TableToolbar() {
|
|
|
488
508
|
|
|
489
509
|
{/* Layout Configuration */}
|
|
490
510
|
<div className="!space-y-4">
|
|
491
|
-
<h3 className="text-lg font-semibold
|
|
511
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
492
512
|
Layout Configuration
|
|
493
513
|
</h3>
|
|
494
514
|
<div className="!space-y-4">
|
|
495
|
-
<div className="flex items-center justify-between rounded-lg border
|
|
496
|
-
<h4 className="font-medium
|
|
515
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
|
|
516
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
517
|
+
Grid Layout
|
|
518
|
+
</h4>
|
|
497
519
|
<div className="flex items-center gap-1">
|
|
498
|
-
<button className="
|
|
520
|
+
<button className="bg-fm-icon-info/20 text-fm-icon-info rounded p-1.5">
|
|
499
521
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
500
522
|
</button>
|
|
501
|
-
<button className="rounded p-1.5
|
|
523
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-1.5">
|
|
502
524
|
<span className="text-xs">Remove</span>
|
|
503
525
|
</button>
|
|
504
526
|
</div>
|
|
505
527
|
</div>
|
|
506
|
-
<div className="rounded-lg
|
|
507
|
-
<pre className="overflow-x-auto text-sm
|
|
528
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
529
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
508
530
|
{`// Layout configuration panel
|
|
509
531
|
<div className="flex items-center justify-between">
|
|
510
532
|
<h4 className="font-medium text-white">Grid Layout</h4>
|
|
@@ -521,28 +543,28 @@ function TableToolbar() {
|
|
|
521
543
|
|
|
522
544
|
{/* Data Table Header */}
|
|
523
545
|
<div className="!space-y-4">
|
|
524
|
-
<h3 className="text-lg font-semibold
|
|
546
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
525
547
|
Data Table Header
|
|
526
548
|
</h3>
|
|
527
549
|
<div className="!space-y-4">
|
|
528
|
-
<div className="rounded-lg border
|
|
529
|
-
<div className="mb-3 flex items-center justify-between border-b
|
|
530
|
-
<h4 className="font-medium
|
|
550
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
551
|
+
<div className="border-fm-divider-secondary mb-3 flex items-center justify-between border-b pb-3">
|
|
552
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
531
553
|
Data Table
|
|
532
554
|
</h4>
|
|
533
|
-
<button className="flex items-center gap-2 rounded border
|
|
555
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded border px-2 py-1">
|
|
534
556
|
<ColumnWideAddIcon className="h-3 w-3" />
|
|
535
557
|
<span className="text-xs">New Column</span>
|
|
536
558
|
</button>
|
|
537
559
|
</div>
|
|
538
|
-
<div className="grid grid-cols-3 gap-2 text-xs
|
|
560
|
+
<div className="text-fm-tertiary grid grid-cols-3 gap-2 text-xs">
|
|
539
561
|
<div>Column 1</div>
|
|
540
562
|
<div>Column 2</div>
|
|
541
563
|
<div>Column 3</div>
|
|
542
564
|
</div>
|
|
543
565
|
</div>
|
|
544
|
-
<div className="rounded-lg
|
|
545
|
-
<pre className="overflow-x-auto text-sm
|
|
566
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
567
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
546
568
|
{`// Table header with add column
|
|
547
569
|
<div className="flex items-center justify-between border-b pb-3 mb-3">
|
|
548
570
|
<h4 className="font-medium text-white">Data Table</h4>
|
|
@@ -560,64 +582,64 @@ function TableToolbar() {
|
|
|
560
582
|
|
|
561
583
|
{/* Accessibility */}
|
|
562
584
|
<div className="!space-y-8">
|
|
563
|
-
<h2 className="text-center text-3xl font-bold
|
|
585
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
564
586
|
Accessibility Features
|
|
565
587
|
</h2>
|
|
566
588
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
567
|
-
<div className="!space-y-4 rounded-lg border
|
|
568
|
-
<h3 className="text-lg font-semibold
|
|
589
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
590
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
569
591
|
✅ Built-in Features
|
|
570
592
|
</h3>
|
|
571
|
-
<ul className="!space-y-2 text-sm
|
|
572
|
-
<li className="
|
|
593
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
594
|
+
<li className="text-fm-secondary!">
|
|
573
595
|
Uses Radix UI AccessibleIcon wrapper
|
|
574
596
|
</li>
|
|
575
|
-
<li className="
|
|
597
|
+
<li className="text-fm-secondary!">
|
|
576
598
|
Provides screen reader label "Column Wide Add Icon"
|
|
577
599
|
</li>
|
|
578
|
-
<li className="
|
|
600
|
+
<li className="text-fm-secondary!">
|
|
579
601
|
Supports keyboard navigation when interactive
|
|
580
602
|
</li>
|
|
581
|
-
<li className="
|
|
603
|
+
<li className="text-fm-secondary!">
|
|
582
604
|
Maintains proper color contrast ratios
|
|
583
605
|
</li>
|
|
584
|
-
<li className="
|
|
606
|
+
<li className="text-fm-secondary!">
|
|
585
607
|
Scales with user's font size preferences
|
|
586
608
|
</li>
|
|
587
609
|
</ul>
|
|
588
610
|
</div>
|
|
589
611
|
|
|
590
|
-
<div className="!space-y-4 rounded-lg border
|
|
591
|
-
<h3 className="text-lg font-semibold
|
|
612
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
613
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
592
614
|
💡 Best Practices
|
|
593
615
|
</h3>
|
|
594
|
-
<ul className="!space-y-2 text-sm
|
|
595
|
-
<li className="
|
|
616
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
617
|
+
<li className="text-fm-secondary!">
|
|
596
618
|
Always pair with descriptive text labels
|
|
597
619
|
</li>
|
|
598
|
-
<li className="
|
|
620
|
+
<li className="text-fm-secondary!">
|
|
599
621
|
Use consistent placement for column actions
|
|
600
622
|
</li>
|
|
601
|
-
<li className="
|
|
623
|
+
<li className="text-fm-secondary!">
|
|
602
624
|
Ensure sufficient click/touch target sizes
|
|
603
625
|
</li>
|
|
604
|
-
<li className="
|
|
626
|
+
<li className="text-fm-secondary!">
|
|
605
627
|
Add focus states for keyboard navigation
|
|
606
628
|
</li>
|
|
607
|
-
<li className="
|
|
629
|
+
<li className="text-fm-secondary!">
|
|
608
630
|
Provide clear feedback on column addition
|
|
609
631
|
</li>
|
|
610
632
|
</ul>
|
|
611
633
|
</div>
|
|
612
634
|
</div>
|
|
613
635
|
|
|
614
|
-
<div className="rounded-lg border
|
|
615
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
636
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
637
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
616
638
|
Custom Accessibility Implementation
|
|
617
639
|
</h3>
|
|
618
640
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
619
|
-
<div className="rounded-lg
|
|
620
|
-
<pre className="overflow-x-auto text-sm
|
|
641
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
642
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
621
643
|
{`// Add column button with proper ARIA
|
|
622
644
|
<button
|
|
623
645
|
aria-label="Add new column to table"
|
|
@@ -652,13 +674,13 @@ function TableToolbar() {
|
|
|
652
674
|
</pre>
|
|
653
675
|
</div>
|
|
654
676
|
<div className="!space-y-4">
|
|
655
|
-
<p className="text-
|
|
677
|
+
<p className="text-fm-secondary! text-sm">
|
|
656
678
|
When using ColumnWideAddIcon for column addition,
|
|
657
679
|
provide clear context about where the column will be
|
|
658
680
|
added and any related actions.
|
|
659
681
|
</p>
|
|
660
|
-
<div className="
|
|
661
|
-
<div className="flex items-center gap-2 text-sm
|
|
682
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
683
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
662
684
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
663
685
|
<span>
|
|
664
686
|
This approach gives screen readers clear context
|
|
@@ -673,48 +695,58 @@ function TableToolbar() {
|
|
|
673
695
|
|
|
674
696
|
{/* Related Icons */}
|
|
675
697
|
<div className="!space-y-8">
|
|
676
|
-
<h2 className="text-center text-3xl font-bold
|
|
698
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
677
699
|
Related Icons
|
|
678
700
|
</h2>
|
|
679
701
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
680
|
-
<div className="!space-y-3 rounded-lg border
|
|
681
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
702
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
703
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
682
704
|
<span className="text-2xl">➕</span>
|
|
683
705
|
</div>
|
|
684
706
|
<div>
|
|
685
|
-
<div className="font-medium
|
|
686
|
-
|
|
707
|
+
<div className="text-fm-icon-active font-medium">
|
|
708
|
+
PlusIcon
|
|
709
|
+
</div>
|
|
710
|
+
<div className="text-fm-tertiary text-xs">Add items</div>
|
|
687
711
|
</div>
|
|
688
712
|
</div>
|
|
689
|
-
<div className="!space-y-3 rounded-lg border
|
|
690
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
713
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
714
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
691
715
|
<span className="text-2xl">📊</span>
|
|
692
716
|
</div>
|
|
693
717
|
<div>
|
|
694
|
-
<div className="font-medium
|
|
718
|
+
<div className="text-fm-icon-active font-medium">
|
|
695
719
|
LayoutColumnIcon
|
|
696
720
|
</div>
|
|
697
|
-
<div className="text-
|
|
721
|
+
<div className="text-fm-tertiary text-xs">
|
|
698
722
|
Column layouts
|
|
699
723
|
</div>
|
|
700
724
|
</div>
|
|
701
725
|
</div>
|
|
702
|
-
<div className="!space-y-3 rounded-lg border
|
|
703
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
726
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
727
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
704
728
|
<span className="text-2xl">📋</span>
|
|
705
729
|
</div>
|
|
706
730
|
<div>
|
|
707
|
-
<div className="font-medium
|
|
708
|
-
|
|
731
|
+
<div className="text-fm-icon-active font-medium">
|
|
732
|
+
TableIcon
|
|
733
|
+
</div>
|
|
734
|
+
<div className="text-fm-tertiary text-xs">
|
|
735
|
+
Table views
|
|
736
|
+
</div>
|
|
709
737
|
</div>
|
|
710
738
|
</div>
|
|
711
|
-
<div className="!space-y-3 rounded-lg border
|
|
712
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
739
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
740
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
713
741
|
<span className="text-2xl">⚙️</span>
|
|
714
742
|
</div>
|
|
715
743
|
<div>
|
|
716
|
-
<div className="font-medium
|
|
717
|
-
|
|
744
|
+
<div className="text-fm-icon-active font-medium">
|
|
745
|
+
SettingIcon
|
|
746
|
+
</div>
|
|
747
|
+
<div className="text-fm-tertiary text-xs">
|
|
748
|
+
Configuration
|
|
749
|
+
</div>
|
|
718
750
|
</div>
|
|
719
751
|
</div>
|
|
720
752
|
</div>
|
|
@@ -722,14 +754,14 @@ function TableToolbar() {
|
|
|
722
754
|
</div>
|
|
723
755
|
|
|
724
756
|
{/* Footer */}
|
|
725
|
-
<div className="border-
|
|
757
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
726
758
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
727
759
|
<div className="!space-y-4 text-center">
|
|
728
|
-
<p className="
|
|
760
|
+
<p className="text-fm-tertiary!">
|
|
729
761
|
ColumnWideAddIcon is part of the Aural UI icon library,
|
|
730
762
|
built for column addition and layout management.
|
|
731
763
|
</p>
|
|
732
|
-
<p className="text-
|
|
764
|
+
<p className="text-fm-placeholder! text-sm">
|
|
733
765
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
734
766
|
compatibility and follow WCAG guidelines for interactive
|
|
735
767
|
elements.
|
|
@@ -775,8 +807,8 @@ const storyParameters = {
|
|
|
775
807
|
backgrounds: {
|
|
776
808
|
default: "dark",
|
|
777
809
|
values: [
|
|
778
|
-
{ name: "dark", value: "
|
|
779
|
-
{ name: "darker", value: "
|
|
810
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
811
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
780
812
|
],
|
|
781
813
|
},
|
|
782
814
|
}
|
|
@@ -785,12 +817,12 @@ export const Default: Story = {
|
|
|
785
817
|
args: {
|
|
786
818
|
width: 56,
|
|
787
819
|
height: 56,
|
|
788
|
-
className: "text-
|
|
820
|
+
className: "text-fm-icon-info",
|
|
789
821
|
withAccessibility: true,
|
|
790
822
|
},
|
|
791
823
|
parameters: storyParameters,
|
|
792
824
|
render: (args) => (
|
|
793
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
825
|
+
<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">
|
|
794
826
|
<ColumnWideAddIcon {...args} />
|
|
795
827
|
</div>
|
|
796
828
|
),
|
|
@@ -807,22 +839,22 @@ export const SizeVariations: Story = {
|
|
|
807
839
|
},
|
|
808
840
|
},
|
|
809
841
|
render: () => (
|
|
810
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
842
|
+
<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">
|
|
811
843
|
<div className="text-center">
|
|
812
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-6 w-6
|
|
813
|
-
<span className="text-
|
|
844
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
845
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
814
846
|
</div>
|
|
815
847
|
<div className="text-center">
|
|
816
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-8 w-8
|
|
817
|
-
<span className="text-
|
|
848
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
849
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
818
850
|
</div>
|
|
819
851
|
<div className="text-center">
|
|
820
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-12 w-12
|
|
821
|
-
<span className="text-
|
|
852
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
853
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
822
854
|
</div>
|
|
823
855
|
<div className="text-center">
|
|
824
|
-
<ColumnWideAddIcon className="!mx-auto mb-2 h-14 w-14
|
|
825
|
-
<span className="text-
|
|
856
|
+
<ColumnWideAddIcon className="text-fm-icon-info !mx-auto mb-2 h-14 w-14" />
|
|
857
|
+
<span className="text-fm-tertiary text-xs">56px</span>
|
|
826
858
|
</div>
|
|
827
859
|
</div>
|
|
828
860
|
),
|
|
@@ -839,34 +871,38 @@ export const ColorVariations: Story = {
|
|
|
839
871
|
},
|
|
840
872
|
},
|
|
841
873
|
render: () => (
|
|
842
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
874
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
843
875
|
<div className="text-center">
|
|
844
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
845
|
-
<ColumnWideAddIcon className="h-12 w-12
|
|
876
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
877
|
+
<ColumnWideAddIcon className="text-fm-icon-info h-12 w-12" />
|
|
846
878
|
</div>
|
|
847
|
-
<div className="text-sm font-medium
|
|
848
|
-
<div className="text-
|
|
879
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
880
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
849
881
|
</div>
|
|
850
882
|
<div className="text-center">
|
|
851
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
852
|
-
<ColumnWideAddIcon className="h-12 w-12
|
|
883
|
+
<div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
884
|
+
<ColumnWideAddIcon className="text-fm-placeholder h-12 w-12" />
|
|
853
885
|
</div>
|
|
854
|
-
<div className="text-sm font-medium
|
|
855
|
-
<div className="text-
|
|
886
|
+
<div className="text-fm-icon-active text-sm font-medium">Secondary</div>
|
|
887
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
856
888
|
</div>
|
|
857
889
|
<div className="text-center">
|
|
858
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
859
|
-
<ColumnWideAddIcon className="h-12 w-12
|
|
890
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
891
|
+
<ColumnWideAddIcon className="text-fm-secondary-600 h-12 w-12" />
|
|
892
|
+
</div>
|
|
893
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
894
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
895
|
+
text-fm-secondary-600
|
|
860
896
|
</div>
|
|
861
|
-
<div className="text-sm font-medium text-white">Accent</div>
|
|
862
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
863
897
|
</div>
|
|
864
898
|
<div className="text-center">
|
|
865
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
866
|
-
<ColumnWideAddIcon className="h-12 w-12
|
|
899
|
+
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
900
|
+
<ColumnWideAddIcon className="text-fm-icon-positive h-12 w-12" />
|
|
901
|
+
</div>
|
|
902
|
+
<div className="text-fm-icon-active text-sm font-medium">Success</div>
|
|
903
|
+
<div className="text-fm-icon-positive text-xs">
|
|
904
|
+
text-fm-icon-positive
|
|
867
905
|
</div>
|
|
868
|
-
<div className="text-sm font-medium text-white">Success</div>
|
|
869
|
-
<div className="text-xs text-emerald-400">text-emerald-400</div>
|
|
870
906
|
</div>
|
|
871
907
|
</div>
|
|
872
908
|
),
|
|
@@ -883,16 +919,18 @@ export const UsageExamples: Story = {
|
|
|
883
919
|
},
|
|
884
920
|
},
|
|
885
921
|
render: () => (
|
|
886
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
922
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
887
923
|
{/* Table Toolbar */}
|
|
888
924
|
<div className="!space-y-2">
|
|
889
|
-
<h3 className="text-sm font-medium
|
|
890
|
-
|
|
891
|
-
|
|
925
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
926
|
+
Table Toolbar
|
|
927
|
+
</h3>
|
|
928
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-4">
|
|
929
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded border px-3 py-1.5">
|
|
892
930
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
893
931
|
<span className="text-sm">Add Column</span>
|
|
894
932
|
</button>
|
|
895
|
-
<button className="flex items-center gap-2 rounded border
|
|
933
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-1.5">
|
|
896
934
|
<span className="text-sm">Delete</span>
|
|
897
935
|
</button>
|
|
898
936
|
</div>
|
|
@@ -900,20 +938,22 @@ export const UsageExamples: Story = {
|
|
|
900
938
|
|
|
901
939
|
{/* Spreadsheet Controls */}
|
|
902
940
|
<div className="!space-y-2">
|
|
903
|
-
<h3 className="text-sm font-medium
|
|
904
|
-
|
|
941
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
942
|
+
Spreadsheet Controls
|
|
943
|
+
</h3>
|
|
944
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
905
945
|
<div className="mb-3 flex items-center justify-between">
|
|
906
|
-
<h4 className="font-medium
|
|
907
|
-
<button className="
|
|
946
|
+
<h4 className="text-fm-icon-active font-medium">Columns</h4>
|
|
947
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-1.5">
|
|
908
948
|
<ColumnWideAddIcon className="h-4 w-4" />
|
|
909
949
|
</button>
|
|
910
950
|
</div>
|
|
911
951
|
<div className="!space-y-2">
|
|
912
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
952
|
+
<div className="text-fm-tertiary flex items-center gap-2 rounded px-2 py-1">
|
|
913
953
|
<span className="text-xs">A</span>
|
|
914
954
|
<span className="text-sm">Name</span>
|
|
915
955
|
</div>
|
|
916
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
956
|
+
<div className="text-fm-tertiary flex items-center gap-2 rounded px-2 py-1">
|
|
917
957
|
<span className="text-xs">B</span>
|
|
918
958
|
<span className="text-sm">Email</span>
|
|
919
959
|
</div>
|
|
@@ -923,16 +963,18 @@ export const UsageExamples: Story = {
|
|
|
923
963
|
|
|
924
964
|
{/* Data Table Header */}
|
|
925
965
|
<div className="!space-y-2">
|
|
926
|
-
<h3 className="text-sm font-medium
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
966
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
967
|
+
Data Table Header
|
|
968
|
+
</h3>
|
|
969
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
970
|
+
<div className="border-fm-divider-secondary mb-3 flex items-center justify-between border-b pb-3">
|
|
971
|
+
<h4 className="text-fm-icon-active font-medium">Data Table</h4>
|
|
972
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded border px-2 py-1">
|
|
931
973
|
<ColumnWideAddIcon className="h-3 w-3" />
|
|
932
974
|
<span className="text-xs">New Column</span>
|
|
933
975
|
</button>
|
|
934
976
|
</div>
|
|
935
|
-
<div className="grid grid-cols-3 gap-2 text-xs
|
|
977
|
+
<div className="text-fm-tertiary grid grid-cols-3 gap-2 text-xs">
|
|
936
978
|
<div>Column 1</div>
|
|
937
979
|
<div>Column 2</div>
|
|
938
980
|
<div>Column 3</div>
|
|
@@ -956,11 +998,11 @@ export const Playground: Story = {
|
|
|
956
998
|
args: {
|
|
957
999
|
width: 56,
|
|
958
1000
|
height: 56,
|
|
959
|
-
className: "text-
|
|
1001
|
+
className: "text-fm-icon-info",
|
|
960
1002
|
},
|
|
961
1003
|
render: (args) => (
|
|
962
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
963
|
-
<div className="rounded-lg border
|
|
1004
|
+
<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">
|
|
1005
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
964
1006
|
<ColumnWideAddIcon {...args} />
|
|
965
1007
|
</div>
|
|
966
1008
|
</div>
|