@1money/component-ui 0.0.28 → 0.0.30
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/README.md +56 -8
- package/es/components/Calendar/Calendar.js +2 -2
- package/es/index.css +1 -1
- package/lib/components/Calendar/Calendar.js +4 -4
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/scripts/mcp-server/examples.generated.json +265 -703
- package/scripts/mcp-server/index.generated.json +397 -285
|
@@ -55,12 +55,6 @@
|
|
|
55
55
|
"source": "stories",
|
|
56
56
|
"compilable": true
|
|
57
57
|
},
|
|
58
|
-
"03d4e0cef5922bd9d1c1934b5b1c8af440c30f7e1ae1f7f31d755dd518639b6c": {
|
|
59
|
-
"title": "Canonical usage",
|
|
60
|
-
"code": "import type { DialogFormProps } from '@1money/component-ui';",
|
|
61
|
-
"source": "canonical",
|
|
62
|
-
"compilable": true
|
|
63
|
-
},
|
|
64
58
|
"03db5f06b9d053c3b514bf4bd85fdb3c21604f60d3b598d6de714a98a3a17713": {
|
|
65
59
|
"title": "Usage",
|
|
66
60
|
"code": "<Slider\n label=\"Price\"\n description=\"Set your budget\"\n valuePrefix=\"$\"\n defaultValue={40}\n min={0}\n max={100}\n onChange={(value) => console.log(value)}\n/>",
|
|
@@ -73,9 +67,9 @@
|
|
|
73
67
|
"source": "stories",
|
|
74
68
|
"compilable": false
|
|
75
69
|
},
|
|
76
|
-
"
|
|
70
|
+
"0438a4317a7d7a552850cb51936a9650a74930e6c8b9e8a6f8c36de31ab885a0": {
|
|
77
71
|
"title": "Canonical usage",
|
|
78
|
-
"code": "import
|
|
72
|
+
"code": "import { Trigger } from '@1money/components-ui';\n// or\nimport { Trigger } from '@1money/components-ui/Trigger';",
|
|
79
73
|
"source": "canonical",
|
|
80
74
|
"compilable": true
|
|
81
75
|
},
|
|
@@ -85,36 +79,12 @@
|
|
|
85
79
|
"source": "stories",
|
|
86
80
|
"compilable": true
|
|
87
81
|
},
|
|
88
|
-
"04e9dc127df402e09fdd97b4e5a8113b98bd6e4cc73a657077883081e9a0b8f2": {
|
|
89
|
-
"title": "Canonical usage",
|
|
90
|
-
"code": "import type { StepStatus } from '@1money/component-ui';",
|
|
91
|
-
"source": "canonical",
|
|
92
|
-
"compilable": true
|
|
93
|
-
},
|
|
94
|
-
"05717fb84522993ea86a1295a654c812fe4de71b24eacb8657ec875518efde6a": {
|
|
95
|
-
"title": "Usage",
|
|
96
|
-
"code": "<Alert\n status=\"info\"\n title=\"Information\"\n body=\"This is an informational message.\"\n link={{ label: 'Learn more', href: '/docs' }}\n onClose={() => console.log('closed')}\n/>",
|
|
97
|
-
"source": "readme",
|
|
98
|
-
"compilable": true
|
|
99
|
-
},
|
|
100
|
-
"069beba30456db7a61ea657851e695df2a417f06c69fdf677a0d60c1a7af3de9": {
|
|
101
|
-
"title": "Canonical usage",
|
|
102
|
-
"code": "import type { ProFormValueType } from '@1money/component-ui';",
|
|
103
|
-
"source": "canonical",
|
|
104
|
-
"compilable": true
|
|
105
|
-
},
|
|
106
82
|
"06b3a8e6513382a6e7d5bd530b625d83a008bbb52aa5f05cb2812e54e8854b3a": {
|
|
107
83
|
"title": "Api Examples",
|
|
108
84
|
"code": "<div style={DEMO_SECTION_STYLE}>\n <Row\n gutter={GRID_GUTTER_SPACED}\n align={GRID_ALIGN.middle}\n justify={GRID_JUSTIFY.spaceBetween}\n wrap={WRAP_DISABLED}\n prefixCls={GRID_ROW_PREFIX}\n >\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}><div style={DEMO_BOX_STYLE}>Span</div></Col>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}><div style={DEMO_BOX_STYLE}>Span</div></Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_COMPACT} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_QUARTER} offset={OFFSET_SMALL} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Offset</div>\n </Col>\n <Col span={SPAN_QUARTER} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Offset</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_COMPACT} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_QUARTER} push={PUSH_SMALL} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Push</div>\n </Col>\n <Col span={SPAN_QUARTER} pull={PULL_SMALL} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Pull</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_RESPONSIVE} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Responsive Gutter</div>\n </Col>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Responsive Gutter</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_REM} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>String Gutter</div>\n </Col>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>String Gutter</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_COMPACT} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_QUARTER} order={ORDER_LAST} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Order</div>\n </Col>\n <Col span={SPAN_QUARTER} order={ORDER_FIRST} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Order</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_COMPACT} prefixCls={GRID_ROW_PREFIX}>\n <Col flex={FLEX_ONE} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Flex 1</div>\n </Col>\n <Col flex={FLEX_TWO} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Flex 2</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_SPACED} wrap={WRAP_ENABLED} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_BASE} sm={SPAN_SM} md={{ span: SPAN_MD, offset: OFFSET_SMALL }} lg={SPAN_LG} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Responsive</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_SPACED} justify={JUSTIFY_RESPONSIVE} prefixCls={GRID_ROW_PREFIX}>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Justify Responsive</div>\n </Col>\n <Col span={SPAN_HALF} prefixCls={GRID_COL_PREFIX}>\n <div style={DEMO_BOX_STYLE}>Justify Responsive</div>\n </Col>\n </Row>\n\n </div>",
|
|
109
85
|
"source": "stories",
|
|
110
86
|
"compilable": true
|
|
111
87
|
},
|
|
112
|
-
"06fe88ad0e8ab0eb5303e6d550234af6433a3b3e5f18fcddba351e64fab26e13": {
|
|
113
|
-
"title": "Canonical usage",
|
|
114
|
-
"code": "import type { SelectOptionValue } from '@1money/component-ui';",
|
|
115
|
-
"source": "canonical",
|
|
116
|
-
"compilable": true
|
|
117
|
-
},
|
|
118
88
|
"0716e5e5fffc542e7b028181c93a5655fb3738281657fc43abb5eb99a95b3e8b": {
|
|
119
89
|
"title": "Custom Icon",
|
|
120
90
|
"code": "<Alert\n {...args}\n status=\"info\"\n title=\"Manual review queued\"\n body=\"This alert uses a custom icon to reflect a workflow-specific state instead of the default status glyph.\"\n icon={<Icons name=\"notificationWarning\" size={32} />}\n link={{ label: 'Open queue', onClick: fn() }}\n />",
|
|
@@ -133,36 +103,36 @@
|
|
|
133
103
|
"source": "stories",
|
|
134
104
|
"compilable": true
|
|
135
105
|
},
|
|
136
|
-
"079ea5a6232196a5bc2822e0a2466a32b0fbfa7bfa8b3a800a5e3d65b6226e42": {
|
|
137
|
-
"title": "Canonical usage",
|
|
138
|
-
"code": "import type { ProgressColor } from '@1money/component-ui';",
|
|
139
|
-
"source": "canonical",
|
|
140
|
-
"compilable": true
|
|
141
|
-
},
|
|
142
106
|
"07a4236cc3c96aa1a14a8ab647fef5e00704b05042314ec5815451b3dd3b5ba0": {
|
|
143
107
|
"title": "Usage",
|
|
144
108
|
"code": "<Typography.Display size=\"lg\">Account Overview</Typography.Display>\n\n<Typography.Headline size=\"md\">Settlement Timeline</Typography.Headline>\n\n<Typography.Title size=\"sm\" strong>\n Customer Details\n</Typography.Title>\n\n<Typography.Body size=\"md\" as=\"p\">\n Semantic body copy keeps product text aligned with the shared typography scale.\n</Typography.Body>\n\n<Typography.Body size=\"md\" ellipsis={{ tooltip: true }} copyable>\n 0x814f0d3a9b2c7e1f5d6a8b4c3e2f1a0d9c8b7a6f749f\n</Typography.Body>\n\n<Typography.Label size=\"sm\" htmlFor=\"email\">\n Email\n</Typography.Label>\n\n<Typography.Link size=\"md\" href=\"https://ant.design/components/typography/\" target=\"_blank\">\n Typography reference\n</Typography.Link>",
|
|
145
109
|
"source": "readme",
|
|
146
110
|
"compilable": true
|
|
147
111
|
},
|
|
148
|
-
"
|
|
112
|
+
"08af6791ed777b4f8ea419b22b1309470e98f6762ccd1ac6fc23e09d6676587b": {
|
|
149
113
|
"title": "Canonical usage",
|
|
150
|
-
"code": "import
|
|
114
|
+
"code": "import { Progress } from '@1money/components-ui';\n// or\nimport { Progress } from '@1money/components-ui/Progress';",
|
|
151
115
|
"source": "canonical",
|
|
152
116
|
"compilable": true
|
|
153
117
|
},
|
|
118
|
+
"08d86e1e9a9ccea86e7168af88595e9da0ef259cf44907a5be70520cdb1e4a4a": {
|
|
119
|
+
"title": "Import",
|
|
120
|
+
"code": "import { Link } from '@1money/components-ui';\n// or\nimport { Link } from '@1money/components-ui/Link';",
|
|
121
|
+
"source": "readme",
|
|
122
|
+
"compilable": true
|
|
123
|
+
},
|
|
124
|
+
"09067b9f75756404a5faa16038cb05754515fa2db3b4df4eb1afdc37fbedc9ba": {
|
|
125
|
+
"title": "Usage",
|
|
126
|
+
"code": "<VirtualList\n data={items}\n height={300}\n itemHeight={32}\n itemKey=\"id\"\n>\n {(item, index, { style }) => (\n <div style={style}>{item.label}</div>\n )}\n</VirtualList>",
|
|
127
|
+
"source": "readme",
|
|
128
|
+
"compilable": true
|
|
129
|
+
},
|
|
154
130
|
"0a72ee3d63ec85bf631eafb8407f424d82c2c3d9da1437fb18801bec174133af": {
|
|
155
131
|
"title": "Five Items",
|
|
156
132
|
"code": "<Segment\n items={[\n { value: 'tab1', label: 'Label' },\n { value: 'tab2', label: 'Label' },\n { value: 'tab3', label: 'Label' },\n { value: 'tab4', label: 'Label' },\n { value: 'tab5', label: 'Label' },\n ]}\n />",
|
|
157
133
|
"source": "stories",
|
|
158
134
|
"compilable": true
|
|
159
135
|
},
|
|
160
|
-
"0c0afbe2548cd54cf225af79ea0be88e179d1592672834759ce9d5c4dd0d7476": {
|
|
161
|
-
"title": "Canonical usage",
|
|
162
|
-
"code": "import type { ValidateTrigger } from '@1money/component-ui';",
|
|
163
|
-
"source": "canonical",
|
|
164
|
-
"compilable": true
|
|
165
|
-
},
|
|
166
136
|
"0c268f0ec6b90f7352970d3db858c53364c60f2321af3c578568fc93082425bb": {
|
|
167
137
|
"title": "Canonical usage",
|
|
168
138
|
"code": "import { Tabs } from '@1money/components-ui';\n// or\nimport { Tabs } from '@1money/components-ui/Tabs';",
|
|
@@ -187,24 +157,6 @@
|
|
|
187
157
|
"source": "readme",
|
|
188
158
|
"compilable": true
|
|
189
159
|
},
|
|
190
|
-
"0eccd89d4848e5f239f204a25e0a5afbc08ea70a21eb5403bc608a3da6da85ad": {
|
|
191
|
-
"title": "Canonical usage",
|
|
192
|
-
"code": "<Drawer />",
|
|
193
|
-
"source": "canonical",
|
|
194
|
-
"compilable": true
|
|
195
|
-
},
|
|
196
|
-
"0f561819e24a9b6521e16b4a9238c0250741795e0996d3dca59f7fb9a111ddf4": {
|
|
197
|
-
"title": "Canonical usage",
|
|
198
|
-
"code": "<ProFormText />",
|
|
199
|
-
"source": "canonical",
|
|
200
|
-
"compilable": true
|
|
201
|
-
},
|
|
202
|
-
"0f978c9e8cebacc672d00e70889ae1fb18b0d5a39b29dc3e53b0d53ab04aedf1": {
|
|
203
|
-
"title": "Canonical usage",
|
|
204
|
-
"code": "import type { PaginationItem } from '@1money/component-ui';",
|
|
205
|
-
"source": "canonical",
|
|
206
|
-
"compilable": true
|
|
207
|
-
},
|
|
208
160
|
"11f60c018746e51bd823c5ce8039341a2200f2e132e62e58f99f23cfe2166cbd": {
|
|
209
161
|
"title": "All Variants",
|
|
210
162
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 32 }}>\n {PROGRESS_COLORS.map(color => (\n <div key={color} style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>\n <h3 style={{ margin: 0 }}>{color}</h3>\n {PROGRESS_PLACEMENTS.map(placement => (\n <div key={`${color}-${placement}`} style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>\n <h4 style={{ margin: 0 }}>{placement}</h4>\n {PROGRESS_STATES.map(state => (\n <Progress\n {...args}\n key={`${color}-${placement}-${state}`}\n color={color}\n placement={placement}\n state={state}\n percent={state === 'success' ? 100 : state === 'not-started' ? 0 : 25}\n feedback={state === 'error' ? 'Feedback' : undefined}\n />\n ))}\n </div>\n ))}\n </div>\n ))}\n </div>",
|
|
@@ -235,34 +187,16 @@
|
|
|
235
187
|
"source": "stories",
|
|
236
188
|
"compilable": false
|
|
237
189
|
},
|
|
238
|
-
"1549a41755f2d85818188654c648d16f6deea173c67c20999f5d5aa896204817": {
|
|
239
|
-
"title": "Canonical usage",
|
|
240
|
-
"code": "<ProFormTextArea />",
|
|
241
|
-
"source": "canonical",
|
|
242
|
-
"compilable": true
|
|
243
|
-
},
|
|
244
|
-
"159060bf345ad56b198657357005740fb6892291717bb99ada373f0a62cdcdc9": {
|
|
245
|
-
"title": "Canonical usage",
|
|
246
|
-
"code": "import type { ProgressProps } from '@1money/component-ui';",
|
|
247
|
-
"source": "canonical",
|
|
248
|
-
"compilable": true
|
|
249
|
-
},
|
|
250
190
|
"17aad2a9b23bb7f9a4768f770a9b9b5b06d74dab24c5200037505b0047ec2391": {
|
|
251
191
|
"title": "Controlled",
|
|
252
192
|
"code": "{\n const [open, setOpen] = useState(false);\n return (\n <div style={ANCHOR_WRAPPER_STYLE}>\n <button id=\"tooltip-controlled\">Anchor</button>\n <div style={CONTROL_ROW_STYLE}>\n <button onClick={() => setOpen(true)}>Open</button>\n <button onClick={() => setOpen(false)}>Close</button>\n <button onClick={() => setOpen((v) => !v)}>Toggle</button>\n </div>\n <Tooltip\n anchorSelect=\"#tooltip-controlled\"\n title=\"Controlled\"\n body=\"This tooltip is controlled externally.\"\n open={open}\n onOpenChange={setOpen}\n />\n </div>\n );\n }",
|
|
253
193
|
"source": "stories",
|
|
254
194
|
"compilable": true
|
|
255
195
|
},
|
|
256
|
-
"
|
|
257
|
-
"title": "
|
|
258
|
-
"code": "
|
|
259
|
-
"source": "
|
|
260
|
-
"compilable": true
|
|
261
|
-
},
|
|
262
|
-
"1856eecdadbccda4468f63edff75ac60c746187efb7df1f7699540bec7ce4929": {
|
|
263
|
-
"title": "Canonical usage",
|
|
264
|
-
"code": "import type { PortalProps } from '@1money/component-ui';",
|
|
265
|
-
"source": "canonical",
|
|
196
|
+
"17d01f6082f650280e29a5b298a6dbc9c559c171c16751739adb36ea024afcfe": {
|
|
197
|
+
"title": "Usage",
|
|
198
|
+
"code": "// Default ring spinner\n<Spinner />\n\n// Custom size\n<Spinner size={48} />\n\n// Brand Lottie spinner\n<Spinner type=\"brand\" />\n\n// Brand spinner with title and body text\n<Spinner type=\"brand\" title=\"Loading\" body=\"Please wait a moment\" />\n\n// Brand spinner with gradient background\n<Spinner type=\"brand-bg\" size={64} title=\"Setting up your account\" />",
|
|
199
|
+
"source": "readme",
|
|
266
200
|
"compilable": true
|
|
267
201
|
},
|
|
268
202
|
"1ad3863a7ccae5d72cf0b223899e03501462831ed16ae711d9f497c103c00008": {
|
|
@@ -295,18 +229,18 @@
|
|
|
295
229
|
"source": "stories",
|
|
296
230
|
"compilable": false
|
|
297
231
|
},
|
|
298
|
-
"1eb0a331971caa6d8ea905cd7fb9c8e846ff5dbc535c68ea157133495806f4e7": {
|
|
299
|
-
"title": "Canonical usage",
|
|
300
|
-
"code": "import { Navigation } from '@1money/components-ui';\n// or\nimport { Navigation } from '@1money/components-ui/Navigation';",
|
|
301
|
-
"source": "canonical",
|
|
302
|
-
"compilable": true
|
|
303
|
-
},
|
|
304
232
|
"1ecd90179c2ebd2ed33c0063235f9367b50ed37a7eba1d4c6aa1973033ed554c": {
|
|
305
233
|
"title": "Multi Select",
|
|
306
234
|
"code": "{\n const [selected, setSelected] = useState<string[]>(['Apple', 'Cherry', 'Fig']);\n\n const toggle = (item: string) => {\n setSelected((prev) =>\n prev.includes(item) ? prev.filter((v) => v !== item) : [...prev, item],\n );\n };\n\n return (\n <Dropdown\n {...args}\n overlayStyle={{ minWidth: 260 }}\n content={\n <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>\n {selected.length > 0 && (\n <div style={selectedBarStyle}>\n <span style={{ fontSize: 14, fontWeight: 500, color: '#131313' }}>\n {selected.length} selected\n </span>\n <button\n type=\"button\"\n style={clearAllBtnStyle}\n onClick={() => setSelected([])}\n >\n <Icons name=\"cross\" size={16} color=\"#ae0000\" />\n Clear all\n </button>\n </div>\n )}\n <div style={{ display: 'flex', flexDirection: 'column' }}>\n {SIMPLE_ITEMS.map((item) => (\n <DropdownItem\n key={item}\n title={item}\n selected={selected.includes(item)}\n onClick={() => toggle(item)}\n />\n ))}\n </div>\n </div>\n }\n >\n <Button>\n {selected.length > 0 ? `${selected.length} selected` : 'Select items'}\n </Button>\n </Dropdown>\n );\n }",
|
|
307
235
|
"source": "stories",
|
|
308
236
|
"compilable": false
|
|
309
237
|
},
|
|
238
|
+
"1f944ea3bc1de41179d6d298524b5c3604ace798b878bacd31dc65416b264e80": {
|
|
239
|
+
"title": "Brand Spinner with Message",
|
|
240
|
+
"code": "<Spinner\n type=\"brand\"\n size={56}\n title=\"Hang tight\"\n body=\"We're processing your request\"\n/>",
|
|
241
|
+
"source": "readme",
|
|
242
|
+
"compilable": true
|
|
243
|
+
},
|
|
310
244
|
"216b625401b1ee29a2c8f02427f776e18dd670858e53fd87ea414473832ba9c9": {
|
|
311
245
|
"title": "With Title",
|
|
312
246
|
"code": "<div style={ANCHOR_WRAPPER_STYLE}>\n <button id=\"tooltip-title\">Hover me</button>\n <Tooltip {...args} anchorSelect=\"#tooltip-title\" />\n </div>",
|
|
@@ -337,6 +271,12 @@
|
|
|
337
271
|
"source": "stories",
|
|
338
272
|
"compilable": false
|
|
339
273
|
},
|
|
274
|
+
"226ab361064aae3c8c8f47bb5d32f8dd315bb5427d7c7a1e8cf5d4f10a0d325c": {
|
|
275
|
+
"title": "Canonical usage",
|
|
276
|
+
"code": "import { VirtualList } from '@1money/components-ui';\n// or\nimport { VirtualList } from '@1money/components-ui/VirtualList';",
|
|
277
|
+
"source": "canonical",
|
|
278
|
+
"compilable": true
|
|
279
|
+
},
|
|
340
280
|
"22701739de59f3ff8757908dd59dec110a126e3b95861d3ad523cb1552deeed7": {
|
|
341
281
|
"title": "All Variants",
|
|
342
282
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 32 }}>\n {VARIANTS.map((variant) => (\n <div key={variant}>\n <h3 style={{ marginBottom: 12 }}>{variant}</h3>\n <Empty {...args} variant={variant} />\n </div>\n ))}\n </div>",
|
|
@@ -373,12 +313,6 @@
|
|
|
373
313
|
"source": "stories",
|
|
374
314
|
"compilable": false
|
|
375
315
|
},
|
|
376
|
-
"25966efe47cbb331081aa62151a5d80e7324bfce0b4a1b82e323559d9349cd54": {
|
|
377
|
-
"title": "Canonical usage",
|
|
378
|
-
"code": "<Select />",
|
|
379
|
-
"source": "canonical",
|
|
380
|
-
"compilable": true
|
|
381
|
-
},
|
|
382
316
|
"259f23e43a9bab9ac08664151900a9dc9f3cc181adccdacc7a28bd34ab37be7e": {
|
|
383
317
|
"title": "Form Layout Patterns",
|
|
384
318
|
"code": "<div style={DEMO_PAGE_STYLE}>\n <Row gutter={GRID_GUTTER_SPACED}>\n <Col span={12}>\n <div style={DEMO_HEADER_BLOCK_STYLE}>Form Header</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_SPACED}>\n <Col span={12} md={3}>\n <div style={DEMO_FORM_LABEL_STYLE}>Label: Company Name</div>\n </Col>\n <Col span={12} md={9}>\n <div style={DEMO_FORM_FIELD_STYLE}>Input Field (span 9)</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_SPACED}>\n <Col span={12} md={3}>\n <div style={DEMO_FORM_LABEL_STYLE}>Label: Email</div>\n </Col>\n <Col span={12} md={9}>\n <div style={DEMO_FORM_FIELD_STYLE}>Input Field (span 9)</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_SPACED}>\n <Col span={12} md={{ span: 9, offset: 3 }}>\n <div style={DEMO_FORM_FIELD_STYLE}>Inline Help / Validation Message (offset 3)</div>\n </Col>\n </Row>\n\n <Row gutter={GRID_GUTTER_SPACED}>\n <Col span={12} md={{ span: 9, offset: 3 }}>\n <Row gutter={GRID_GUTTER_COMPACT} justify={GRID_JUSTIFY.end}>\n <Col span={6} md={4} lg={3}>\n <div style={DEMO_FORM_ACTION_STYLE}>Secondary Action</div>\n </Col>\n <Col span={6} md={4} lg={3}>\n <div style={DEMO_FORM_ACTION_STYLE}>Primary Action</div>\n </Col>\n </Row>\n </Col>\n </Row>\n </div>",
|
|
@@ -397,12 +331,6 @@
|
|
|
397
331
|
"source": "stories",
|
|
398
332
|
"compilable": false
|
|
399
333
|
},
|
|
400
|
-
"25f9f9086f93b5fe128992d1c388b0c9cd77df643010c4c5cc403527a80b7528": {
|
|
401
|
-
"title": "Canonical usage",
|
|
402
|
-
"code": "<QueryFilter />",
|
|
403
|
-
"source": "canonical",
|
|
404
|
-
"compilable": true
|
|
405
|
-
},
|
|
406
334
|
"26594eacf431540e6380fac7c7ff44f09d414de2052860d55187217317c0cbb1": {
|
|
407
335
|
"title": "Field Set",
|
|
408
336
|
"code": "<ProForm\n {...args}\n initialValues={{ phone: ['+1', '555-0100'] }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProForm.FieldSet name=\"phone\" label=\"Phone Number\" gap={8}>\n <Input placeholder=\"Area code\" style={{ width: 80 }} />\n <Input placeholder=\"Number\" style={{ width: 200 }} />\n </ProForm.FieldSet>\n <ProFormText name=\"email\" label=\"Email\" />\n </ProForm>",
|
|
@@ -439,46 +367,40 @@
|
|
|
439
367
|
"source": "readme",
|
|
440
368
|
"compilable": true
|
|
441
369
|
},
|
|
442
|
-
"
|
|
443
|
-
"title": "
|
|
444
|
-
"code": "<
|
|
370
|
+
"28a4918e2bb83aaa273cf3846c84c67dca51a5280decbef71e82f997dda9baac": {
|
|
371
|
+
"title": "Usage",
|
|
372
|
+
"code": "<ResizeObserver\n onResize={(size, element) => {\n console.log(size.width, element);\n }}\n>\n <div>Measured content</div>\n</ResizeObserver>",
|
|
445
373
|
"source": "readme",
|
|
446
374
|
"compilable": true
|
|
447
375
|
},
|
|
448
|
-
"
|
|
449
|
-
"title": "
|
|
450
|
-
"code": "
|
|
376
|
+
"28dcbb40d407a6c3c48dcdb51a06d11466a26d831324f8c583ab6b877bc5eb7d": {
|
|
377
|
+
"title": "Vertical Layout",
|
|
378
|
+
"code": "<Space direction={SPACE_DIRECTION.vertical} size={SPACE_SIZE.large}>\n <div>Top</div>\n <div>Bottom</div>\n</Space>",
|
|
451
379
|
"source": "readme",
|
|
452
380
|
"compilable": true
|
|
453
381
|
},
|
|
454
|
-
"
|
|
382
|
+
"29a8d3d4fdc2b1b61574ec8e8a8a2ffb57226781120cdc378f8d179d101a0032": {
|
|
455
383
|
"title": "Canonical usage",
|
|
456
|
-
"code": "import
|
|
384
|
+
"code": "import { Tour } from '@1money/components-ui';\n// or\nimport { Tour } from '@1money/components-ui/Tour';",
|
|
457
385
|
"source": "canonical",
|
|
458
386
|
"compilable": true
|
|
459
387
|
},
|
|
460
|
-
"
|
|
461
|
-
"title": "
|
|
462
|
-
"code": "
|
|
463
|
-
"source": "
|
|
464
|
-
"compilable": true
|
|
465
|
-
},
|
|
466
|
-
"2c58c83426bf77e0fd761deff8e74853f41c3213c0b293c97d142554dca062bc": {
|
|
467
|
-
"title": "Canonical usage",
|
|
468
|
-
"code": "<ResizeObserver>Label</ResizeObserver>",
|
|
469
|
-
"source": "canonical",
|
|
388
|
+
"29e2310b26c2aecedef7a08fdce046f6fada2887312516d227bf0467d9691185": {
|
|
389
|
+
"title": "Import",
|
|
390
|
+
"code": "import {\n ProForm,\n ProFormText,\n ProFormSelect,\n DialogForm,\n QueryFilter,\n} from '@1money/components-ui';\n// or\nimport { ProForm, ProFormText } from '@1money/components-ui/ProForm';",
|
|
391
|
+
"source": "readme",
|
|
470
392
|
"compilable": true
|
|
471
393
|
},
|
|
472
|
-
"
|
|
394
|
+
"2a00b4740e301b8a7ac79f978053cc5d0d9e28704a3496719ce12b34448697d2": {
|
|
473
395
|
"title": "Import",
|
|
474
|
-
"code": "import {
|
|
396
|
+
"code": "import { Accordion } from '@1money/components-ui';\n// or\nimport { Accordion } from '@1money/components-ui/Accordion';",
|
|
475
397
|
"source": "readme",
|
|
476
398
|
"compilable": true
|
|
477
399
|
},
|
|
478
|
-
"
|
|
479
|
-
"title": "
|
|
480
|
-
"code": "
|
|
481
|
-
"source": "
|
|
400
|
+
"2b97ea480bdd9e78ecabd54bc4c254a48c281f6121a50a054418593c9c9d8f5c": {
|
|
401
|
+
"title": "Middle Ellipsis",
|
|
402
|
+
"code": "<div style={{ ...STORY_LAYOUT_STYLE, maxWidth: 480 }}>\n <div style={ROW_STYLE}>\n <Typography.Label size=\"md\" color=\"default-secondary\">Sender ID</Typography.Label>\n <div style={CONSTRAINED_STYLE}>\n <Typography.Body size=\"md\" ellipsis={{ tooltip: true }} copyable>\n {SENDER_ID}\n </Typography.Body>\n </div>\n </div>\n <div style={ROW_STYLE}>\n <Typography.Label size=\"md\" color=\"default-secondary\">Recipient name</Typography.Label>\n <Typography.Body size=\"md\">Apextech LLC</Typography.Body>\n </div>\n <div style={ROW_STYLE}>\n <Typography.Label size=\"md\" color=\"default-secondary\">Recipient ID</Typography.Label>\n <div style={CONSTRAINED_STYLE}>\n <Typography.Body size=\"md\" ellipsis={{ tooltip: true }} copyable>\n {RECIPIENT_ID}\n </Typography.Body>\n </div>\n </div>\n </div>",
|
|
403
|
+
"source": "stories",
|
|
482
404
|
"compilable": true
|
|
483
405
|
},
|
|
484
406
|
"2db7958f91085606312d3dea5983e6a87724bdaaaeb755893810034b5be459a2": {
|
|
@@ -487,24 +409,12 @@
|
|
|
487
409
|
"source": "readme",
|
|
488
410
|
"compilable": true
|
|
489
411
|
},
|
|
490
|
-
"2e38eb2bbde2587fea5af46f3c34d8b7b9a3bc7951fa044bcd363a4ce3812a47": {
|
|
491
|
-
"title": "Canonical usage",
|
|
492
|
-
"code": "import type { StepProps } from '@1money/component-ui';",
|
|
493
|
-
"source": "canonical",
|
|
494
|
-
"compilable": true
|
|
495
|
-
},
|
|
496
412
|
"2f65549d43490603034b9f30beadb2efd27c2c0f454242a54f434f213d051491": {
|
|
497
413
|
"title": "Omit Nil",
|
|
498
414
|
"code": "<ProForm\n {...args}\n omitNil\n initialValues={{ name: '', email: '', note: null }}\n onFinish={(values) => {\n alert('Nil values stripped:\\n' + JSON.stringify(values, null, 2));\n }}\n >\n <ProFormText name=\"name\" label=\"Name (leave empty to omit)\" />\n <ProFormText name=\"email\" label=\"Email (leave empty to omit)\" />\n <ProFormText name=\"note\" label=\"Note (null → omitted)\" />\n </ProForm>",
|
|
499
415
|
"source": "stories",
|
|
500
416
|
"compilable": false
|
|
501
417
|
},
|
|
502
|
-
"2f6710b655bb5d7c4adb4aa08f77909913d90ba3a32d1fea39ab8604ddc2f8f5": {
|
|
503
|
-
"title": "Canonical usage",
|
|
504
|
-
"code": "import type { SelectSingleValue } from '@1money/component-ui';",
|
|
505
|
-
"source": "canonical",
|
|
506
|
-
"compilable": true
|
|
507
|
-
},
|
|
508
418
|
"31dd5c9e926c0deeefba1a4028848b13ee819e42fbdf5ba0438329ffa1907e66": {
|
|
509
419
|
"title": "Width Presets",
|
|
510
420
|
"code": "<ProForm {...args}>\n <ProFormText name=\"sm\" label=\"Small (sm = 160px)\" width=\"sm\" />\n <ProFormText name=\"md\" label=\"Medium (md = 240px)\" width=\"md\" />\n <ProFormText name=\"lg\" label=\"Large (lg = 320px)\" width=\"lg\" />\n <ProFormText name=\"xl\" label=\"XL (xl = 420px)\" width=\"xl\" />\n <ProFormText name=\"custom\" label=\"Custom (200px)\" width={200} />\n </ProForm>",
|
|
@@ -523,10 +433,10 @@
|
|
|
523
433
|
"source": "stories",
|
|
524
434
|
"compilable": true
|
|
525
435
|
},
|
|
526
|
-
"
|
|
527
|
-
"title": "
|
|
528
|
-
"code": "
|
|
529
|
-
"source": "
|
|
436
|
+
"341d33a3398e2a18e0d6bd76c9602a448d9a775132d0ccb1e3591038cec0fa5c": {
|
|
437
|
+
"title": "Usage",
|
|
438
|
+
"code": "<Dialog\n open={open}\n title=\"Confirm transfer\"\n description=\"Review the details before submitting.\"\n onCancel={() => setOpen(false)}\n onOk={handleSubmit}\n/>",
|
|
439
|
+
"source": "readme",
|
|
530
440
|
"compilable": true
|
|
531
441
|
},
|
|
532
442
|
"34536f5f5abc20bc7255387d21700a4725ea8d6f9806b09cb947375f7afde43c": {
|
|
@@ -571,6 +481,12 @@
|
|
|
571
481
|
"source": "readme",
|
|
572
482
|
"compilable": true
|
|
573
483
|
},
|
|
484
|
+
"36b6b20f42395f39098061f501edd80895fcbc554523f70a876a7e3a2be50f6f": {
|
|
485
|
+
"title": "Import",
|
|
486
|
+
"code": "import { Tour } from '@1money/components-ui';\n// or\nimport { Tour } from '@1money/components-ui/Tour';",
|
|
487
|
+
"source": "readme",
|
|
488
|
+
"compilable": true
|
|
489
|
+
},
|
|
574
490
|
"36cbaf7aab4a01a5e1c94430f29c9f8881ec84e60dac84ca5c2e32cb25e14ae5": {
|
|
575
491
|
"title": "Usage",
|
|
576
492
|
"code": "// Basic usage with icon name\n<Empty\n icon=\"transactions\"\n title=\"No record found\"\n description=\"Try adjusting your filters to find the record you are looking for\"\n/>\n\n// With custom icon component\n<Empty\n icon={<MyCustomIcon />}\n description=\"No data available\"\n/>\n\n// With action button\n<Empty\n variant=\"stroke\"\n icon=\"bank\"\n description=\"You don't have any bank accounts linked\"\n action={<Button>Add new bank account</Button>}\n/>",
|
|
@@ -607,10 +523,10 @@
|
|
|
607
523
|
"source": "stories",
|
|
608
524
|
"compilable": true
|
|
609
525
|
},
|
|
610
|
-
"
|
|
611
|
-
"title": "
|
|
612
|
-
"code": "
|
|
613
|
-
"source": "
|
|
526
|
+
"398c56e66e36d3ab3b61b257b2bc0522eb642f46f8bcb939b5c59ff543449dc7": {
|
|
527
|
+
"title": "Usage",
|
|
528
|
+
"code": "<Input label=\"Amount\" placeholder=\"Value\" />\n\n<Input.Password label=\"Password\" />\n\n<Input.Search label=\"Search\" onSearch={(value) => console.log(value)} />\n\n<Input.TextArea label=\"Memo\" rows={4} />\n\n<Input.OTP length={6} />\n\n<Input.Trade currencySymbol=\"$\" currencyUnit=\"USD\" />\n\n<Input.Amount currencyLabel=\"USDC\" />\n\n<Input.Mask mask=\"999-99-9999\" />",
|
|
529
|
+
"source": "readme",
|
|
614
530
|
"compilable": true
|
|
615
531
|
},
|
|
616
532
|
"3b416ca019f27f4a1d80ae5a1bbafa8b6b9d196ebbdbf9df77bbd8d7c4118934": {
|
|
@@ -649,12 +565,6 @@
|
|
|
649
565
|
"source": "canonical",
|
|
650
566
|
"compilable": true
|
|
651
567
|
},
|
|
652
|
-
"3fed6ca7982c867ccd1b2b58023950f8365462d92b44c75722551d4d3127c8bb": {
|
|
653
|
-
"title": "Canonical usage",
|
|
654
|
-
"code": "import type { DialogSize } from '@1money/component-ui';",
|
|
655
|
-
"source": "canonical",
|
|
656
|
-
"compilable": true
|
|
657
|
-
},
|
|
658
568
|
"40a22244886d5bdbd3ed0c2eeccc5859897c73c7f35ce9d0b27a7a9547709f28": {
|
|
659
569
|
"title": "Import",
|
|
660
570
|
"code": "import { Tag } from '@1money/components-ui';\n// or\nimport { Tag } from '@1money/components-ui/Tag';",
|
|
@@ -667,24 +577,12 @@
|
|
|
667
577
|
"source": "stories",
|
|
668
578
|
"compilable": true
|
|
669
579
|
},
|
|
670
|
-
"4186c0d2b90dd549d7f6497e4b7fb0b101654305b0e3e128cd0f1d6ca78bfb2a": {
|
|
671
|
-
"title": "Canonical usage",
|
|
672
|
-
"code": "import type { ValidateStatus } from '@1money/component-ui';",
|
|
673
|
-
"source": "canonical",
|
|
674
|
-
"compilable": true
|
|
675
|
-
},
|
|
676
580
|
"41c91bf415fa7b2b7fcfbba49136e2254bcf778a33e916d12446e042629a0943": {
|
|
677
581
|
"title": "Canonical usage",
|
|
678
582
|
"code": "import { Switch } from '@1money/components-ui';\n// or\nimport { Switch } from '@1money/components-ui/Switch';",
|
|
679
583
|
"source": "canonical",
|
|
680
584
|
"compilable": true
|
|
681
585
|
},
|
|
682
|
-
"421c6af797703e115fd55a10242e5ac801283d4eb80d5409fc997c7d9c730393": {
|
|
683
|
-
"title": "Canonical usage",
|
|
684
|
-
"code": "import type { ProFormGroupProps } from '@1money/component-ui';",
|
|
685
|
-
"source": "canonical",
|
|
686
|
-
"compilable": true
|
|
687
|
-
},
|
|
688
586
|
"42d09791892e2a4de1863d920b4d11b5c83b30770a9775f63645e3291eb98416": {
|
|
689
587
|
"title": "Custom Submitter",
|
|
690
588
|
"code": "<ProForm\n {...args}\n submitter={{\n submitText: 'Save Changes',\n resetText: 'Discard',\n render: (props, dom) => (\n <div style={{ display: 'flex', gap: 8, justifyContent: 'center' }}>\n {dom}\n </div>\n ),\n }}\n >\n <ProFormText name=\"title\" label=\"Title\" rules={[{ required: true }]} />\n <ProFormTextArea name=\"content\" label=\"Content\" />\n </ProForm>",
|
|
@@ -697,18 +595,6 @@
|
|
|
697
595
|
"source": "canonical",
|
|
698
596
|
"compilable": true
|
|
699
597
|
},
|
|
700
|
-
"4382388bcd674e464f60d818049720fa134a38574be7255cff59425e9d027d63": {
|
|
701
|
-
"title": "Canonical usage",
|
|
702
|
-
"code": "import type { FormSize } from '@1money/component-ui';",
|
|
703
|
-
"source": "canonical",
|
|
704
|
-
"compilable": true
|
|
705
|
-
},
|
|
706
|
-
"4389223d4dd418331dd628d1bb657512018df7b6124067044b1b577c26853c32": {
|
|
707
|
-
"title": "Canonical usage",
|
|
708
|
-
"code": "<Dialog />",
|
|
709
|
-
"source": "canonical",
|
|
710
|
-
"compilable": true
|
|
711
|
-
},
|
|
712
598
|
"43cb69594b17d8f71ddb9912efb8eea26ee52cf45990ef9f7a2212c0694b0811": {
|
|
713
599
|
"title": "Dashed",
|
|
714
600
|
"code": "<div>\n <p>Lorem ipsum dolor sit amet.</p>\n <Divider variant=\"dashed\" />\n <p>Lorem ipsum dolor sit amet.</p>\n <Divider variant=\"dashed\">Dashed</Divider>\n <p>Lorem ipsum dolor sit amet.</p>\n </div>",
|
|
@@ -721,12 +607,6 @@
|
|
|
721
607
|
"source": "canonical",
|
|
722
608
|
"compilable": true
|
|
723
609
|
},
|
|
724
|
-
"43e86173eaa57a1ad76a23b43ba3b90b40e118c2d4885e13b759adc68c95f5a8": {
|
|
725
|
-
"title": "Canonical usage",
|
|
726
|
-
"code": "import type { ProFormFormInstance } from '@1money/component-ui';",
|
|
727
|
-
"source": "canonical",
|
|
728
|
-
"compilable": true
|
|
729
|
-
},
|
|
730
610
|
"44c4b25e35236d2eaf4d26824badf330c6495194077c815a662b000591be91be": {
|
|
731
611
|
"title": "Multiple Collapsed",
|
|
732
612
|
"code": "{\n const [value, setValue] = useState<Array<string | number>>([\n 'btc',\n 'eth',\n 'usdt',\n 'usdc',\n 'sol',\n 'doge',\n ]);\n\n return (\n <div style={{ width: 320 }}>\n <Select\n {...args}\n multiple\n value={value}\n onChange={(nextValue, option) => {\n setValue((nextValue as Array<string | number>) ?? []);\n args.onChange?.(nextValue, option);\n }}\n />\n </div>\n );\n }",
|
|
@@ -745,58 +625,34 @@
|
|
|
745
625
|
"source": "stories",
|
|
746
626
|
"compilable": false
|
|
747
627
|
},
|
|
748
|
-
"459fb4fed33834539f12047eb8791c8c459888b43df3cfa51c852237d244b1b1": {
|
|
749
|
-
"title": "Canonical usage",
|
|
750
|
-
"code": "createProFormField(config);",
|
|
751
|
-
"source": "canonical",
|
|
752
|
-
"compilable": true
|
|
753
|
-
},
|
|
754
628
|
"466a2cf763ac1374c62583da68c81d15d8aece066ae06417d6a4356855606954": {
|
|
755
629
|
"title": "With Badges",
|
|
756
630
|
"code": "<Tabs\n items={[\n { key: 'tab1', label: 'Overview', badge: 5 },\n { key: 'tab2', label: 'Transactions', badge: 12 },\n { key: 'tab3', label: 'Analytics' },\n { key: 'tab4', label: 'Settings', badge: 3 },\n ]}\n />",
|
|
757
631
|
"source": "stories",
|
|
758
632
|
"compilable": true
|
|
759
633
|
},
|
|
760
|
-
"4831602e1843344ccb14281ad853e240d2d5c1c2010be19cf091cacd678e6eda": {
|
|
761
|
-
"title": "Canonical usage",
|
|
762
|
-
"code": "import type { UsePaginationOptions } from '@1money/component-ui';",
|
|
763
|
-
"source": "canonical",
|
|
764
|
-
"compilable": true
|
|
765
|
-
},
|
|
766
634
|
"4844dfaf4dff931b3d5b14135a788fc632daa05669c14237139b0a15e6d1a793": {
|
|
767
635
|
"title": "Click Trigger",
|
|
768
636
|
"code": "<div style={ANCHOR_WRAPPER_STYLE}>\n <button id=\"tooltip-click\">Click me</button>\n <Tooltip\n {...args}\n anchorSelect=\"#tooltip-click\"\n openEvents={{ click: true, mouseover: false, mouseenter: false, focus: false }}\n closeEvents={{ click: true, mouseleave: false, mouseout: false, blur: false }}\n />\n </div>",
|
|
769
637
|
"source": "stories",
|
|
770
638
|
"compilable": false
|
|
771
639
|
},
|
|
772
|
-
"487a87a540c310c3a95d1656126aa0686d4ce8932394b10ef7be463bd2139b11": {
|
|
773
|
-
"title": "Canonical usage",
|
|
774
|
-
"code": "import type { FormLayout } from '@1money/component-ui';",
|
|
775
|
-
"source": "canonical",
|
|
776
|
-
"compilable": true
|
|
777
|
-
},
|
|
778
640
|
"48f6ebde7546d7db844b0cd43bd6e6ec6956746f93c55167fda6a2cd84599a3e": {
|
|
779
641
|
"title": "No Animation",
|
|
780
642
|
"code": "<Segment items={DEFAULT_ITEMS} animated={false} />",
|
|
781
643
|
"source": "stories",
|
|
782
644
|
"compilable": true
|
|
783
645
|
},
|
|
784
|
-
"4925f0fa31e738cbe6dcf51caa4529687907afbd4c5d75a2b6babee74973dcb6": {
|
|
785
|
-
"title": "Canonical usage",
|
|
786
|
-
"code": "import type { Rule } from '@1money/component-ui';",
|
|
787
|
-
"source": "canonical",
|
|
788
|
-
"compilable": true
|
|
789
|
-
},
|
|
790
646
|
"4946413c8eb03c3d0ed457a33ffdb8dfdef55dfe7f8f8440b878a1ae2be1c46a": {
|
|
791
647
|
"title": "With Default Value",
|
|
792
648
|
"code": "<Segment defaultValue=\"transactions\" items={DEFAULT_ITEMS} />",
|
|
793
649
|
"source": "stories",
|
|
794
650
|
"compilable": true
|
|
795
651
|
},
|
|
796
|
-
"
|
|
797
|
-
"title": "
|
|
798
|
-
"code": "
|
|
799
|
-
"source": "
|
|
652
|
+
"49816d6fc0869e92e95bd824c8fbdeda626454b12a4f44f0b0aa6da23976ea1e": {
|
|
653
|
+
"title": "Usage",
|
|
654
|
+
"code": "{/* Basic usage */}\n<Progress percent={40} />\n\n{/* Explicit state */}\n<Progress percent={100} state=\"success\" />\n<Progress percent={60} state=\"error\" feedback=\"Upload failed. Please try again.\" />\n\n{/* White color variant (e.g. on a dark background) */}\n<Progress percent={70} color=\"white\" />\n\n{/* Custom info formatter */}\n<Progress\n percent={55}\n format={(percent) => `${percent} of 100 steps complete`}\n/>\n\n{/* Info row on the right */}\n<Progress percent={30} placement=\"right\" />\n\n{/* Hide info row */}\n<Progress percent={50} showInfo={false} />",
|
|
655
|
+
"source": "readme",
|
|
800
656
|
"compilable": true
|
|
801
657
|
},
|
|
802
658
|
"49ad060bce26c0a2bb20e2d9487869063f8aa30ca5cff68d8bbb108fbeef29a1": {
|
|
@@ -805,12 +661,6 @@
|
|
|
805
661
|
"source": "readme",
|
|
806
662
|
"compilable": true
|
|
807
663
|
},
|
|
808
|
-
"49c72f97a10ef34333a88507a7d9e8e5bb582173ce599c9b9a2aae31efedb1e1": {
|
|
809
|
-
"title": "Inline Loading",
|
|
810
|
-
"code": "<button disabled={loading}>\n {loading ? (\n <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>\n <Spinner style={{ width: '16px', height: '16px' }} />\n <span>Loading...</span>\n </div>\n ) : (\n 'Submit'\n )}\n</button>",
|
|
811
|
-
"source": "readme",
|
|
812
|
-
"compilable": true
|
|
813
|
-
},
|
|
814
664
|
"49d5f7314ab1ae951fe87a5f276d65d91c81daf6f489b93cffa522dab5fa7054": {
|
|
815
665
|
"title": "Sizes",
|
|
816
666
|
"code": "<div style={{ display: 'flex', gap: 24, alignItems: 'center' }}>\n {LINK_SIZES.map((size) => (\n <Link {...args} key={size} size={size}>\n {size}\n </Link>\n ))}\n </div>",
|
|
@@ -829,24 +679,12 @@
|
|
|
829
679
|
"source": "stories",
|
|
830
680
|
"compilable": false
|
|
831
681
|
},
|
|
832
|
-
"4a0586bd3c33f563c7de439b2edc169e9d921c2f9f7fb0c72e411af2d0637fa5": {
|
|
833
|
-
"title": "Canonical usage",
|
|
834
|
-
"code": "import type { ProFormFieldTransformFn } from '@1money/component-ui';",
|
|
835
|
-
"source": "canonical",
|
|
836
|
-
"compilable": true
|
|
837
|
-
},
|
|
838
682
|
"4a5e5cef011be8e4312b7e27e13d519193ffe35d681413267098a0f06182c9d9": {
|
|
839
683
|
"title": "Basic Usage",
|
|
840
684
|
"code": "// Basic icon (default 24px, color #131313)\n<Icons name=\"arrowRight\" />\nimport { Icons, IconWrapper, Logo } from '@1money/components-ui';\n\n// Custom size and color\n<Icons name=\"settings\" size={32} color=\"#3D73F2\" />\n\n// With explicit width/height\n<Icons name=\"search\" width={20} height={20} />\n\n// Icon with hover container\n<IconHover>\n <Icons name=\"more\" />\n</IconHover>\n\n// Disabled hover container\n<IconHover disabled>\n <Icons name=\"settings\" />\n</IconHover>\n\n// Logo\n<Icons name=\"logo\" size={40} />",
|
|
841
685
|
"source": "readme",
|
|
842
686
|
"compilable": true
|
|
843
687
|
},
|
|
844
|
-
"4aa25969f149eda32514cc530fb2b8fceabc54fcbf63b87641b7cfd13f967bda": {
|
|
845
|
-
"title": "Canonical usage",
|
|
846
|
-
"code": "<ProFormRadioGroup />",
|
|
847
|
-
"source": "canonical",
|
|
848
|
-
"compilable": true
|
|
849
|
-
},
|
|
850
688
|
"4ad4837cde91f1ebd2cad90d6f82683fd94957192e4b88fa46882aac2330b854": {
|
|
851
689
|
"title": "Group Collapsible",
|
|
852
690
|
"code": "<ProForm\n {...args}\n initialValues={{ name: 'Alice', bio: '', theme: 'light' }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProForm.Group title=\"Basic Info\" collapsible>\n <ProFormText name=\"name\" label=\"Name\" rules={[{ required: true }]} />\n <ProFormText name=\"bio\" label=\"Bio\" />\n </ProForm.Group>\n <ProForm.Group title=\"Preferences\" collapsible defaultCollapsed>\n <ProFormText name=\"theme\" label=\"Theme\" />\n <ProFormSwitch name=\"notifications\" label=\"Notifications\" />\n </ProForm.Group>\n </ProForm>",
|
|
@@ -859,15 +697,21 @@
|
|
|
859
697
|
"source": "stories",
|
|
860
698
|
"compilable": false
|
|
861
699
|
},
|
|
862
|
-
"
|
|
863
|
-
"title": "
|
|
864
|
-
"code": "import
|
|
865
|
-
"source": "
|
|
700
|
+
"4cc41ff919669138b7ad66655a256cd5a3885bd739764784d8a5de068b87beb3": {
|
|
701
|
+
"title": "Import",
|
|
702
|
+
"code": "import { Drawer } from '@1money/components-ui';\n// or\nimport { Drawer } from '@1money/components-ui/Drawer';",
|
|
703
|
+
"source": "readme",
|
|
704
|
+
"compilable": true
|
|
705
|
+
},
|
|
706
|
+
"4d9f3593600e6013d369532a23201039bffa9c7463d467180f93c3e95fc48c1b": {
|
|
707
|
+
"title": "Inline Button Loading",
|
|
708
|
+
"code": "<button disabled={loading}>\n {loading ? (\n <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>\n <Spinner size={16} />\n <span>Submitting…</span>\n </div>\n ) : (\n 'Submit'\n )}\n</button>",
|
|
709
|
+
"source": "readme",
|
|
866
710
|
"compilable": true
|
|
867
711
|
},
|
|
868
|
-
"
|
|
712
|
+
"4e47a5538f745fc8cf26d22a91bc3e95fda46600baf715b49e208804b00e3049": {
|
|
869
713
|
"title": "Canonical usage",
|
|
870
|
-
"code": "import
|
|
714
|
+
"code": "import { Table, VirtualTable } from '@1money/components-ui';\n// or\nimport { Table, VirtualTable } from '@1money/components-ui/Table';",
|
|
871
715
|
"source": "canonical",
|
|
872
716
|
"compilable": true
|
|
873
717
|
},
|
|
@@ -883,18 +727,6 @@
|
|
|
883
727
|
"source": "canonical",
|
|
884
728
|
"compilable": true
|
|
885
729
|
},
|
|
886
|
-
"528ab6afb943c07fe6e0c68fe3bda683e292529a705bd2d968f4c5dfed7e3a83": {
|
|
887
|
-
"title": "Canonical usage",
|
|
888
|
-
"code": "import type { PaginationControlItem } from '@1money/component-ui';",
|
|
889
|
-
"source": "canonical",
|
|
890
|
-
"compilable": true
|
|
891
|
-
},
|
|
892
|
-
"52b3c46129e939dcab127c033e5069b7027eeec39a253fe8741b74807b6de599": {
|
|
893
|
-
"title": "Canonical usage",
|
|
894
|
-
"code": "<ProFormPassword />",
|
|
895
|
-
"source": "canonical",
|
|
896
|
-
"compilable": true
|
|
897
|
-
},
|
|
898
730
|
"52e49c0728ddadda69ef98366ad789e66211d87acbb7ca43af959df87ec0767b": {
|
|
899
731
|
"title": "Event Shape",
|
|
900
732
|
"code": "type RadioChangeEvent = {\n nativeEvent: Event;\n preventDefault: () => void;\n stopPropagation: () => void;\n target: {\n checked: boolean;\n disabled: boolean;\n id?: string;\n name?: string;\n type: 'radio';\n value?: string | number;\n };\n};",
|
|
@@ -907,12 +739,6 @@
|
|
|
907
739
|
"source": "readme",
|
|
908
740
|
"compilable": true
|
|
909
741
|
},
|
|
910
|
-
"546ef2d886471f0e410921f3ca3fa1ec2db5d4bed5ff1902bc190d0d87c75054": {
|
|
911
|
-
"title": "Canonical usage",
|
|
912
|
-
"code": "<ProFormDatePicker />",
|
|
913
|
-
"source": "canonical",
|
|
914
|
-
"compilable": true
|
|
915
|
-
},
|
|
916
742
|
"5545418d49fc7cdc897ea3ab29b0c7e5326b5e6a7321eec41eece864275198a0": {
|
|
917
743
|
"title": "All Variants",
|
|
918
744
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 48 }}>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <h3>Default</h3>\n <div style={{ display: 'flex', gap: 24, alignItems: 'center' }}>\n <Spinner size={20} />\n <Spinner size={32} />\n <Spinner size={48} />\n </div>\n </div>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <h3>Brand</h3>\n <Spinner type=\"brand\" size={32} title=\"Loading\" />\n </div>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <h3>Brand + BG</h3>\n <Spinner type=\"brand-bg\" size={74} title=\"Loading\" body=\"Body text\" />\n </div>\n </div>",
|
|
@@ -937,12 +763,6 @@
|
|
|
937
763
|
"source": "stories",
|
|
938
764
|
"compilable": false
|
|
939
765
|
},
|
|
940
|
-
"57555cab23c1ab39cfa023e9e3f6cec2998ddc9537a47354aa1cf1fd14488461": {
|
|
941
|
-
"title": "Canonical usage",
|
|
942
|
-
"code": "import type { ProgressFormatContext } from '@1money/component-ui';",
|
|
943
|
-
"source": "canonical",
|
|
944
|
-
"compilable": true
|
|
945
|
-
},
|
|
946
766
|
"57e5a7e81ccfa1d876cf40e95b6165f9d630fe343bc29dbb15c3fe546e689e62": {
|
|
947
767
|
"title": "Default",
|
|
948
768
|
"code": "<div style={wrapperStyle}>\n <Step {...args} />\n </div>",
|
|
@@ -955,16 +775,10 @@
|
|
|
955
775
|
"source": "stories",
|
|
956
776
|
"compilable": false
|
|
957
777
|
},
|
|
958
|
-
"
|
|
959
|
-
"title": "
|
|
960
|
-
"code": "<
|
|
961
|
-
"source": "
|
|
962
|
-
"compilable": true
|
|
963
|
-
},
|
|
964
|
-
"5a9b5ddd9a26199701d3d3f2307a6ad3b964f66d5fdbfd30efdbbf8aba0c2c80": {
|
|
965
|
-
"title": "Canonical usage",
|
|
966
|
-
"code": "<ProFormSlider />",
|
|
967
|
-
"source": "canonical",
|
|
778
|
+
"59a4bace5950d3f3aaef19cc61af7ddab1440a4220c81a0f60b0276728d5ab88": {
|
|
779
|
+
"title": "Usage",
|
|
780
|
+
"code": "<Dropdown\n content={({ close }) => (\n <button type=\"button\" onClick={close}>\n Close\n </button>\n )}\n placement=\"bottom-start\"\n>\n <Button>Open menu</Button>\n</Dropdown>",
|
|
781
|
+
"source": "readme",
|
|
968
782
|
"compilable": true
|
|
969
783
|
},
|
|
970
784
|
"5b6b616e8d95d382632b332591de2af84de98f77720ee5b0628d3a44feff076a": {
|
|
@@ -973,18 +787,18 @@
|
|
|
973
787
|
"source": "stories",
|
|
974
788
|
"compilable": false
|
|
975
789
|
},
|
|
976
|
-
"5ba789cfffb9110e9a147117959a6e59585384a46fa350d42dedc8e0857f1821": {
|
|
977
|
-
"title": "Canonical usage",
|
|
978
|
-
"code": "<ProFormUpload />",
|
|
979
|
-
"source": "canonical",
|
|
980
|
-
"compilable": true
|
|
981
|
-
},
|
|
982
790
|
"5bbda57b2d06dfefaed853ba5ad655bb306fd8ecfbc92a6a96dee1deffc1af2f": {
|
|
983
791
|
"title": "With Content",
|
|
984
792
|
"code": "<Tabs\n defaultActiveKey=\"tab1\"\n items={[\n { key: 'tab1', label: 'Overview', children: <div>Overview content goes here</div> },\n { key: 'tab2', label: 'Transactions', children: <div>Transactions content goes here</div> },\n { key: 'tab3', label: 'Analytics', children: <div>Analytics content goes here</div> },\n ]}\n />",
|
|
985
793
|
"source": "stories",
|
|
986
794
|
"compilable": true
|
|
987
795
|
},
|
|
796
|
+
"5c2d27af4dbbbbbab8df84b3717712bc8ef7522b3f93eb8d20540a1db723e8e9": {
|
|
797
|
+
"title": "Import",
|
|
798
|
+
"code": "import { VirtualList } from '@1money/components-ui';\n// or\nimport { VirtualList } from '@1money/components-ui/VirtualList';",
|
|
799
|
+
"source": "readme",
|
|
800
|
+
"compilable": true
|
|
801
|
+
},
|
|
988
802
|
"5c8961675725144291340a7560c3c798389ce24d786783dedd6ffcac93193a0d": {
|
|
989
803
|
"title": "Batch Resize",
|
|
990
804
|
"code": "{\n const [batchInfo, setBatchInfo] = useState<string>('');\n\n return (\n <div>\n <p style={{ marginBottom: 8, color: '#666' }}>\n Collection batches resize events from multiple children into a single callback:\n </p>\n <ResizeObserver.Collection\n onBatchResize={(infos) => {\n setBatchInfo(\n `Batch: ${infos.length} resize(s) — ${infos.map((i) => `${i.data}: ${i.size.width}×${i.size.height}`).join(', ')}`,\n );\n }}\n >\n <div style={{ display: 'flex', gap: 16 }}>\n {['First', 'Second'].map((name) => (\n <ResizeObserver key={name} data={name}>\n <div style={{ ...boxStyle, minWidth: 150 }}>\n {name}\n </div>\n </ResizeObserver>\n ))}\n </div>\n </ResizeObserver.Collection>\n {batchInfo && <div style={infoStyle}>{batchInfo}</div>}\n </div>\n );\n }",
|
|
@@ -1003,12 +817,6 @@
|
|
|
1003
817
|
"source": "stories",
|
|
1004
818
|
"compilable": true
|
|
1005
819
|
},
|
|
1006
|
-
"5eab08235fada880deb893a45f8e307f765861578cd95522dc38da0053be3353": {
|
|
1007
|
-
"title": "Canonical usage",
|
|
1008
|
-
"code": "import type { PaginationEllipsisItem } from '@1money/component-ui';",
|
|
1009
|
-
"source": "canonical",
|
|
1010
|
-
"compilable": true
|
|
1011
|
-
},
|
|
1012
820
|
"5f3b6d99f2f042d7c984a9f73cb179167b6c80cfbd3c106d1c96ecc86ba1a888": {
|
|
1013
821
|
"title": "Cell States",
|
|
1014
822
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <Radio\n checked\n variant=\"cell\"\n size=\"large\"\n alignment=\"left\"\n icon=\"swift\"\n label=\"Checked\"\n description=\"Primary selection\"\n style={{ width: 300 }}\n />\n <Radio\n checked\n variant=\"cell\"\n size=\"medium\"\n alignment=\"left\"\n icon=\"swift\"\n label=\"Medium\"\n style={{ width: 180 }}\n />\n <Radio\n checked\n variant=\"cell\"\n size=\"small\"\n alignment=\"left\"\n icon=\"swift\"\n label=\"Small\"\n style={{ width: 180 }}\n />\n <Radio\n checked\n disabled\n variant=\"cell\"\n size=\"large\"\n alignment=\"left\"\n icon=\"swift\"\n label=\"Disabled checked\"\n description=\"Disabled state\"\n style={{ width: 300 }}\n />\n </div>",
|
|
@@ -1027,18 +835,6 @@
|
|
|
1027
835
|
"source": "readme",
|
|
1028
836
|
"compilable": true
|
|
1029
837
|
},
|
|
1030
|
-
"5fe4eaf6d6cc1aae1c57021991c5791efa10197d77e9fee4d8d3ad0301ed09b2": {
|
|
1031
|
-
"title": "Canonical usage",
|
|
1032
|
-
"code": "const result = usePagination(options);",
|
|
1033
|
-
"source": "canonical",
|
|
1034
|
-
"compilable": true
|
|
1035
|
-
},
|
|
1036
|
-
"600b7c61c09e62351c4da01ba0451212e347f76292d57d62d472809568ab33f1": {
|
|
1037
|
-
"title": "Canonical usage",
|
|
1038
|
-
"code": "const result = useResizeObserver(enabled, getTarget);",
|
|
1039
|
-
"source": "canonical",
|
|
1040
|
-
"compilable": true
|
|
1041
|
-
},
|
|
1042
838
|
"605adda93170929ef763469422e3708f248624774e5274b6053c7aa0c53b9680": {
|
|
1043
839
|
"title": "Action And Close",
|
|
1044
840
|
"code": "<Alert\n {...args}\n status=\"warning\"\n title=\"New compliance checklist\"\n body=\"A new checklist item is required before the next outbound transfer can be approved.\"\n link={{ label: 'Open checklist', onClick: fn() }}\n action={<Button onClick={fn()}>Review now</Button>}\n closable\n onClose={fn()}\n />",
|
|
@@ -1075,6 +871,12 @@
|
|
|
1075
871
|
"source": "stories",
|
|
1076
872
|
"compilable": true
|
|
1077
873
|
},
|
|
874
|
+
"65c3343037038d0c10d4369de3281ebadf175b42ba5afe9bf9ae5c490d587003": {
|
|
875
|
+
"title": "Import",
|
|
876
|
+
"code": "import { Pagination, usePagination } from '@1money/components-ui';\n// or\nimport { Pagination, usePagination } from '@1money/components-ui/Pagination';",
|
|
877
|
+
"source": "readme",
|
|
878
|
+
"compilable": true
|
|
879
|
+
},
|
|
1078
880
|
"66d442fc9388c014800dbcc672d9dae750c1529fd05f0b26e8f4dbf091abd20b": {
|
|
1079
881
|
"title": "Visual Spec",
|
|
1080
882
|
"code": "<div style={PREVIEW_GRID_STYLE}>\n <TooltipPreviewCard label=\"Title + body / left aligned\" title=\"Title\" body=\"Body text\" />\n <TooltipPreviewCard label=\"Minimum width 48px\" body=\"Hi\" />\n <TooltipPreviewCard label=\"Maximum width 400px on web\" title=\"Long title\" body={LONG_BODY} />\n </div>",
|
|
@@ -1099,6 +901,12 @@
|
|
|
1099
901
|
"source": "stories",
|
|
1100
902
|
"compilable": false
|
|
1101
903
|
},
|
|
904
|
+
"6c0a39263e45288c6f9a62e5fb3169389da1c8d69bd0092467335b58cf40b2ab": {
|
|
905
|
+
"title": "Canonical usage",
|
|
906
|
+
"code": "import { Link } from '@1money/components-ui';\n// or\nimport { Link } from '@1money/components-ui/Link';",
|
|
907
|
+
"source": "canonical",
|
|
908
|
+
"compilable": true
|
|
909
|
+
},
|
|
1102
910
|
"6c73541844cb6bb287f5a4f0c9d25be0cbdd0d09518b1abd0c49b8d738ddfaa8": {
|
|
1103
911
|
"title": "Import",
|
|
1104
912
|
"code": "import { Spinner } from '@1money/components-ui';\n// or\nimport { Spinner } from '@1money/components-ui/Spinner';",
|
|
@@ -1111,6 +919,18 @@
|
|
|
1111
919
|
"source": "readme",
|
|
1112
920
|
"compilable": true
|
|
1113
921
|
},
|
|
922
|
+
"6dadb9a4d982338ee8398025f4cea4aa2ed33dba5303e56b6a65b1f23cb93bf0": {
|
|
923
|
+
"title": "Canonical usage",
|
|
924
|
+
"code": "import { Select } from '@1money/components-ui';\n// or\nimport { Select } from '@1money/components-ui/Select';",
|
|
925
|
+
"source": "canonical",
|
|
926
|
+
"compilable": true
|
|
927
|
+
},
|
|
928
|
+
"6e80043b40836c60acfd06f4f79316dc3655e1d82fbc77f8f04b8126862001af": {
|
|
929
|
+
"title": "Canonical usage",
|
|
930
|
+
"code": "import {\n ProForm,\n ProFormText,\n ProFormSelect,\n DialogForm,\n QueryFilter,\n} from '@1money/components-ui';\n// or\nimport { ProForm, ProFormText } from '@1money/components-ui/ProForm';",
|
|
931
|
+
"source": "canonical",
|
|
932
|
+
"compilable": true
|
|
933
|
+
},
|
|
1114
934
|
"6f2b7da00479a6033fdaca36f0646a924c61cbf09cd0e07da6948a884af98a61": {
|
|
1115
935
|
"title": "Dependency",
|
|
1116
936
|
"code": "<ProForm\n {...args}\n initialValues={{ hasAccount: false, accountType: '' }}\n >\n <ProFormSwitch name=\"hasAccount\" label=\"Has Account\" />\n <ProFormDependency name={['hasAccount']}>\n {({ hasAccount }) =>\n hasAccount ? (\n <>\n <ProFormText\n name=\"accountId\"\n label=\"Account ID\"\n rules={[{ required: true }]}\n />\n <ProFormText name=\"accountName\" label=\"Account Name\" />\n </>\n ) : null\n }\n </ProFormDependency>\n </ProForm>",
|
|
@@ -1123,11 +943,11 @@
|
|
|
1123
943
|
"source": "stories",
|
|
1124
944
|
"compilable": true
|
|
1125
945
|
},
|
|
1126
|
-
"
|
|
1127
|
-
"title": "
|
|
1128
|
-
"code": "
|
|
1129
|
-
"source": "
|
|
1130
|
-
"compilable": true
|
|
946
|
+
"71d241ed07b5a8c1aaa432bcff2fb9f72af207e1c7f5aa4023ac2359f926be9e": {
|
|
947
|
+
"title": "Usage",
|
|
948
|
+
"code": "<Drawer\n open={open}\n title=\"Transfer details\"\n placement=\"right\"\n onClose={() => setOpen(false)}\n footer={<Button onClick={() => setOpen(false)}>Done</Button>}\n>\n Drawer content\n</Drawer>",
|
|
949
|
+
"source": "readme",
|
|
950
|
+
"compilable": true
|
|
1131
951
|
},
|
|
1132
952
|
"71f7aeb8fd7bb546bc7d562a717683681d8eccf7f2beeee86e3196121d6656f1": {
|
|
1133
953
|
"title": "With Icon Start",
|
|
@@ -1159,6 +979,12 @@
|
|
|
1159
979
|
"source": "readme",
|
|
1160
980
|
"compilable": true
|
|
1161
981
|
},
|
|
982
|
+
"74d07705c09b8ab5e12d5fb5cdcae6d3bbc2c3517d298289faa91e00deb2ff9a": {
|
|
983
|
+
"title": "With file list",
|
|
984
|
+
"code": "const [files, setFiles] = useState<File[]>([]);\n\n<Upload\n label=\"Attachments\"\n onSelect={(fileList) => {\n if (fileList) setFiles(Array.from(fileList));\n }}\n>\n {files.map((file) => (\n <UploadFileBar\n key={file.name}\n fileName={file.name}\n onRemove={() => setFiles((prev) => prev.filter((f) => f !== file))}\n />\n ))}\n</Upload>",
|
|
985
|
+
"source": "readme",
|
|
986
|
+
"compilable": true
|
|
987
|
+
},
|
|
1162
988
|
"74f28ec19da10ee7a3cecb129f444ca1e9b9bfa6a44bda5422d89c70a079ddc3": {
|
|
1163
989
|
"title": "Validation",
|
|
1164
990
|
"code": "<ProForm\n {...args}\n initialValues={{}}\n onFinish={(values) => alert('Success: ' + JSON.stringify(values))}\n >\n <ProFormText\n name=\"username\"\n label=\"Username\"\n rules={[\n { required: true, message: 'Username is required' },\n { min: 3, message: 'At least 3 characters' },\n { max: 20, message: 'At most 20 characters' },\n ]}\n />\n <ProFormText\n name=\"email\"\n label=\"Email\"\n rules={[\n { required: true, message: 'Email is required' },\n { pattern: /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/, message: 'Invalid email' },\n ]}\n />\n <ProFormPassword\n name=\"password\"\n label=\"Password\"\n rules={[\n { required: true },\n { min: 8, message: 'At least 8 characters' },\n ]}\n />\n <ProFormCheckbox\n name=\"terms\"\n label=\"I accept the terms\"\n rules={[\n {\n validator: (value) => {\n if (!value) return 'You must accept the terms';\n return true;\n },\n },\n ]}\n />\n </ProForm>",
|
|
@@ -1189,34 +1015,16 @@
|
|
|
1189
1015
|
"source": "readme",
|
|
1190
1016
|
"compilable": true
|
|
1191
1017
|
},
|
|
1192
|
-
"77b3bac4d9e36462c300020fa400a7cfe5bc7aa77bd896162f48c5d77a0ada23": {
|
|
1193
|
-
"title": "Canonical usage",
|
|
1194
|
-
"code": "import type { DrawerPlacement } from '@1money/component-ui';",
|
|
1195
|
-
"source": "canonical",
|
|
1196
|
-
"compilable": true
|
|
1197
|
-
},
|
|
1198
|
-
"784dd70341f79c53f5d9474c553dbaa803f65c317904a95d6b511fd57dcff804": {
|
|
1199
|
-
"title": "Canonical usage",
|
|
1200
|
-
"code": "<ProFormGroup />",
|
|
1201
|
-
"source": "canonical",
|
|
1202
|
-
"compilable": true
|
|
1203
|
-
},
|
|
1204
1018
|
"7880909af758a291affc6ba2a56af087c012f00945684528454d55e9faffbb53": {
|
|
1205
1019
|
"title": "Sidebar Content Layout",
|
|
1206
1020
|
"code": "<div style={DEMO_PAGE_STYLE}>\n <Flex gap={GAP_MIDDLE} align={FLEX_ALIGN.start} justify={FLEX_JUSTIFY.start} wrap={WRAP_DISABLED}>\n <Flex vertical gap={GAP_SMALL} style={{ ...DEMO_PANEL_STYLE, minWidth: 220 }}>\n <div style={DEMO_ITEM_STYLE}>Menu Group A</div>\n <div style={DEMO_ITEM_STYLE}>Menu Group B</div>\n <div style={DEMO_ITEM_STYLE}>Menu Group C</div>\n </Flex>\n\n <Flex vertical gap={GAP_MIDDLE} style={{ ...DEMO_PANEL_STYLE, flex: 1 }}>\n <Flex align={FLEX_ALIGN.center} justify={FLEX_JUSTIFY.spaceBetween}>\n <div style={DEMO_ITEM_STYLE}>Page Title</div>\n <Flex gap={GAP_SMALL}>\n <div style={DEMO_ITEM_STYLE}>Export</div>\n <div style={DEMO_ITEM_STYLE}>Create</div>\n </Flex>\n </Flex>\n <div style={DEMO_PANEL_STYLE}>Main Content</div>\n <Flex align={FLEX_ALIGN.center} justify={FLEX_JUSTIFY.end} gap={GAP_SMALL}>\n <div style={DEMO_ITEM_STYLE}>Cancel</div>\n <div style={DEMO_ITEM_STYLE}>Save</div>\n </Flex>\n </Flex>\n </Flex>\n </div>",
|
|
1207
1021
|
"source": "stories",
|
|
1208
1022
|
"compilable": true
|
|
1209
1023
|
},
|
|
1210
|
-
"
|
|
1211
|
-
"title": "
|
|
1212
|
-
"code": "
|
|
1213
|
-
"source": "
|
|
1214
|
-
"compilable": true
|
|
1215
|
-
},
|
|
1216
|
-
"79d6736104fbd2a0cdb0081045a650f31fb2cdc051f7170c185c73b5a70c2bf0": {
|
|
1217
|
-
"title": "Canonical usage",
|
|
1218
|
-
"code": "import type { TriggerAction } from '@1money/component-ui';",
|
|
1219
|
-
"source": "canonical",
|
|
1024
|
+
"79558ccf329b5a0a64542b9d04634e06f6c86aacf2756dd972da85a7a6d9dda7": {
|
|
1025
|
+
"title": "Usage",
|
|
1026
|
+
"code": "<Pagination\n total={125}\n pageSize={10}\n defaultCurrent={1}\n onChange={(page, pageSize) => console.log(page, pageSize)}\n/>",
|
|
1027
|
+
"source": "readme",
|
|
1220
1028
|
"compilable": true
|
|
1221
1029
|
},
|
|
1222
1030
|
"7a3a92935f0b863855900ffe5295cb58ad8e6a2f83cdf8ae82ea0a93ff8b829b": {
|
|
@@ -1225,12 +1033,6 @@
|
|
|
1225
1033
|
"source": "stories",
|
|
1226
1034
|
"compilable": false
|
|
1227
1035
|
},
|
|
1228
|
-
"7ae894e8181a0534204e98888ca38826cde3925bb26787a732a0829c181669a3": {
|
|
1229
|
-
"title": "Canonical usage",
|
|
1230
|
-
"code": "import type { TourStep } from '@1money/component-ui';",
|
|
1231
|
-
"source": "canonical",
|
|
1232
|
-
"compilable": true
|
|
1233
|
-
},
|
|
1234
1036
|
"7aff0837c66402bc8bfd244cefc96957343db1dc910f9d19c3fd5a4d38936448": {
|
|
1235
1037
|
"title": "Horizontal Scroll",
|
|
1236
1038
|
"code": "<div style={{ ...containerStyle, width: 400 }}>\n <VirtualList\n data={data1000}\n height={300}\n itemHeight={30}\n itemKey=\"id\"\n scrollWidth={800}\n >\n {(item: Item, _index, { style, offsetX }) => (\n <div\n style={{\n ...itemStyle(30),\n ...style,\n transform: `translateX(-${offsetX}px)`,\n width: 800,\n }}\n >\n <span>Item {item.id}</span>\n <span style={{ color: '#999', fontSize: 12 }}>Wide content here →</span>\n <span style={{ marginLeft: 200 }}>End</span>\n </div>\n )}\n </VirtualList>\n </div>",
|
|
@@ -1285,16 +1087,22 @@
|
|
|
1285
1087
|
"source": "stories",
|
|
1286
1088
|
"compilable": false
|
|
1287
1089
|
},
|
|
1090
|
+
"7fa92e052831cae87c3f0b935466ebe2f827bd696b626583810266f584e63167": {
|
|
1091
|
+
"title": "Page Loading Overlay",
|
|
1092
|
+
"code": "const PageLoader = ({ isLoading }: { isLoading: boolean }) => {\n if (!isLoading) return null;\n\n return (\n <div className=\"page-loader-overlay\">\n <Spinner size={48} />\n </div>\n );\n};",
|
|
1093
|
+
"source": "readme",
|
|
1094
|
+
"compilable": true
|
|
1095
|
+
},
|
|
1288
1096
|
"7fcff23beb3f8649dd3c8e6b827035a4838bd0ceb71aec2a6debfbd16fc7d1f8": {
|
|
1289
1097
|
"title": "Basic",
|
|
1290
1098
|
"code": "<DrawerLauncher {...args} />",
|
|
1291
1099
|
"source": "stories",
|
|
1292
1100
|
"compilable": false
|
|
1293
1101
|
},
|
|
1294
|
-
"
|
|
1295
|
-
"title": "
|
|
1296
|
-
"code": "import type {
|
|
1297
|
-
"source": "
|
|
1102
|
+
"8129a087395157c8e93b214d9f280f542658a37d2d8aa6ea5e2561bf7d128925": {
|
|
1103
|
+
"title": "Navigation (sidebar with collapse)",
|
|
1104
|
+
"code": "import { useRef } from 'react';\nimport type { NavigationHandlers } from '@1money/components-ui';\n\nconst ref = useRef<NavigationHandlers>(null);\n\n<Navigation\n ref={ref}\n items={[\n { key: 'home', label: 'Home', icon: 'home', active: true },\n { key: 'portfolio', label: 'Portfolio', icon: 'portfolio' },\n {\n key: 'transactions',\n label: 'Transactions',\n icon: 'transactions',\n children: [\n { key: 'deposits', label: 'Deposits' },\n { key: 'withdrawals', label: 'Withdrawals' },\n ],\n },\n ]}\n collapsible\n onCollapse={(collapsed) => console.log(collapsed)}\n selector={<CompanySelector />}\n>\n {/* rendered at the bottom of the sidebar */}\n <SettingsLink />\n</Navigation>\n\n// Imperative control\nref.current?.toggle();\nref.current?.collapse(true);",
|
|
1105
|
+
"source": "readme",
|
|
1298
1106
|
"compilable": true
|
|
1299
1107
|
},
|
|
1300
1108
|
"81fa795ca4a1acae4ec31efda3c21167df7e3f24ad1461056a90469ff70b835a": {
|
|
@@ -1303,12 +1111,6 @@
|
|
|
1303
1111
|
"source": "stories",
|
|
1304
1112
|
"compilable": false
|
|
1305
1113
|
},
|
|
1306
|
-
"8217407dd420ce682fb91f9e1bba564e90bed8d67c39533ac62c057b69593987": {
|
|
1307
|
-
"title": "Usage",
|
|
1308
|
-
"code": "<Input label=\"Amount\" placeholder=\"Value\" />\n\n<Input.Password label=\"Password\" />\n\n<Input.Search label=\"Search\" onSearch={(value) => console.log(value)} />\n\n<Input.TextArea label=\"Memo\" rows={4} />\n\n<Input.OTP length={6} />",
|
|
1309
|
-
"source": "readme",
|
|
1310
|
-
"compilable": true
|
|
1311
|
-
},
|
|
1312
1114
|
"829d1add076b11f67d3d30e761c7861b952e35bb1ae8a1c71c99a97bbf5318a9": {
|
|
1313
1115
|
"title": "All States",
|
|
1314
1116
|
"code": "<div style={previewStackStyle}>\n <Cell {...args}>Authenticator app</Cell>\n <Cell {...args} className=\"om-component-ui-cell-hovered\">\n Authenticator app\n </Cell>\n <Cell {...args} active>\n Authenticator app\n </Cell>\n <Cell {...args} disabled>\n Authenticator app\n </Cell>\n </div>",
|
|
@@ -1345,12 +1147,6 @@
|
|
|
1345
1147
|
"source": "canonical",
|
|
1346
1148
|
"compilable": true
|
|
1347
1149
|
},
|
|
1348
|
-
"83f9c4b31401922ddc84d60264badd258d516373ccfc2b81813bf57f5c7a1e5a": {
|
|
1349
|
-
"title": "Canonical usage",
|
|
1350
|
-
"code": "<ProFormFieldSet />",
|
|
1351
|
-
"source": "canonical",
|
|
1352
|
-
"compilable": true
|
|
1353
|
-
},
|
|
1354
1150
|
"842244e70f89e2aaf6941718de836ab3a6e08d642a4d4bb2e80cee160158470f": {
|
|
1355
1151
|
"title": "Default",
|
|
1356
1152
|
"code": "{\n const sizes = ['large', 'small'] as const;\n const statuses = ['default', 'error'] as const;\n const valueTypes = ['Placeholder', 'Filled'] as const;\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 40 }}>\n {sizes.map((size) => (\n <div key={size}>\n <h3 style={{ margin: '0 0 16px', textTransform: 'capitalize' }}>{size}</h3>\n <div style={{ display: 'flex', gap: 24, flexWrap: 'wrap' }}>\n {statuses.map((status) =>\n valueTypes.map((vt) => (\n <div key={`${status}-${vt}`} style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>\n {status} / {vt}\n </p>\n <Input\n size={size}\n status={status}\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={status === 'error' ? <Icons name=\"error\" size={16} /> : <Icons name=\"info\" size={16} />}\n placeholder=\"Value\"\n allowClear\n defaultValue={vt === 'Filled' ? 'Input value' : undefined}\n />\n </div>\n )),\n )}\n {/* Read-Only */}\n {valueTypes.map((vt) => (\n <div key={`readonly-${vt}`} style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>\n read-only / {vt}\n </p>\n <Input\n size={size}\n readOnly\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n placeholder=\"Value\"\n defaultValue={vt === 'Filled' ? 'Read-only value' : undefined}\n />\n </div>\n ))}\n {/* Disabled */}\n {valueTypes.map((vt) => (\n <div key={`disabled-${vt}`} style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>\n disabled / {vt}\n </p>\n <Input\n size={size}\n disabled\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n placeholder=\"Value\"\n defaultValue={vt === 'Filled' ? 'Disabled value' : undefined}\n />\n </div>\n ))}\n </div>\n </div>\n ))}\n\n {/* ── With Prefix / Suffix ── */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>With Prefix / Suffix</h3>\n <div style={{ display: 'flex', gap: 24, flexWrap: 'wrap' }}>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>Prefix + Suffix</p>\n <Input\n label=\"Label\"\n defaultValue=\"100\"\n prefix={<span>USD</span>}\n suffix={<span>Max</span>}\n allowClear\n />\n </div>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>Prefix only</p>\n <Input\n label=\"Label\"\n placeholder=\"Enter amount\"\n prefix={<span>$</span>}\n allowClear\n />\n </div>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>Suffix only</p>\n <Input\n label=\"Label\"\n placeholder=\"Enter email\"\n suffix={<span>@gmail.com</span>}\n />\n </div>\n </div>\n </div>\n\n {/* ── Required / Info ── */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>Required / Info</h3>\n <div style={{ display: 'flex', gap: 24, flexWrap: 'wrap' }}>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>Required</p>\n <Input\n label=\"Label\"\n required\n placeholder=\"Required field\"\n />\n </div>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>Optional (required=false)</p>\n <Input\n label=\"Label\"\n required={false}\n placeholder=\"Optional field\"\n />\n </div>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>With Info</p>\n <Input\n label=\"Label\"\n info=\"Optional hint\"\n placeholder=\"Value\"\n />\n </div>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>With Tip</p>\n <Input\n label=\"Label\"\n tip=\"This is a helpful tooltip\"\n placeholder=\"Value\"\n />\n </div>\n <div style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>Optional + Info + Tip</p>\n <Input\n label=\"Label\"\n required={false}\n info=\"Optional hint\"\n tip=\"This is a helpful tooltip\"\n placeholder=\"Value\"\n />\n </div>\n </div>\n </div>\n </div>\n );\n }",
|
|
@@ -1363,12 +1159,6 @@
|
|
|
1363
1159
|
"source": "readme",
|
|
1364
1160
|
"compilable": true
|
|
1365
1161
|
},
|
|
1366
|
-
"85bd84178bbfcd56c92db6d690a33530c91f2485e3d9d27441e33fdf838e377f": {
|
|
1367
|
-
"title": "Canonical usage",
|
|
1368
|
-
"code": "<ProFormList name=\"name\" />",
|
|
1369
|
-
"source": "canonical",
|
|
1370
|
-
"compilable": true
|
|
1371
|
-
},
|
|
1372
1162
|
"8635e5203dcc0ffc85bde3edc3cafc477676635bb31ab8c71a82f13a90c00b5d": {
|
|
1373
1163
|
"title": "Error",
|
|
1374
1164
|
"code": "<div style={wrapperStyle}>\n <Step\n {...args}\n items={[\n {\n key: STEP_ITEM_KEYS.start,\n title: STEP_SAMPLE_COPY.title,\n description: STEP_SAMPLE_COPY.description,\n status: STEP_STATUS.error,\n tag: STEP_SAMPLE_COPY.tag,\n },\n {\n key: STEP_ITEM_KEYS.complete,\n title: STEP_SAMPLE_COPY.title,\n description: STEP_SAMPLE_COPY.description,\n status: STEP_STATUS.error,\n tag: STEP_SAMPLE_COPY.tag,\n },\n {\n key: STEP_ITEM_KEYS.error,\n title: STEP_SAMPLE_COPY.title,\n description: STEP_SAMPLE_COPY.description,\n status: STEP_STATUS.default,\n tag: STEP_SAMPLE_COPY.tag,\n },\n ]}\n />\n </div>",
|
|
@@ -1381,36 +1171,12 @@
|
|
|
1381
1171
|
"source": "canonical",
|
|
1382
1172
|
"compilable": true
|
|
1383
1173
|
},
|
|
1384
|
-
"87119f77a8e04ec0f07dec55f2ef7985b167400772592d70172ee644167c1ebe": {
|
|
1385
|
-
"title": "Canonical usage",
|
|
1386
|
-
"code": "<ProFormSwitch />",
|
|
1387
|
-
"source": "canonical",
|
|
1388
|
-
"compilable": true
|
|
1389
|
-
},
|
|
1390
1174
|
"87b1990f73c96b7555165d59c2646f36d1db7d9f27712298b04b46ac63020d03": {
|
|
1391
1175
|
"title": "Controlled",
|
|
1392
1176
|
"code": "{\n const [open, setOpen] = useState(false);\n\n return (\n <div style={POPCONFIRM_STORY_STYLE.controlledWrapper}>\n <Popconfirm\n {...args}\n open={open}\n onOpenChange={(nextOpen) => {\n setOpen(nextOpen);\n args.onOpenChange?.(nextOpen);\n }}\n onCancel={(event, context) => {\n args.onCancel?.(event, context);\n setOpen(false);\n }}\n onConfirm={(event, context) => {\n args.onConfirm?.(event, context);\n setOpen(false);\n }}\n >\n <Button>{POPCONFIRM_DEMO_COPY.controlledTriggerText}</Button>\n </Popconfirm>\n <Button\n size={BUTTON_SIZE.small}\n color={BUTTON_COLOR.grey}\n onClick={() => setOpen((prev) => !prev)}\n >\n {POPCONFIRM_DEMO_COPY.toggleText}: {open\n ? POPCONFIRM_DEMO_COPY.openStateText\n : POPCONFIRM_DEMO_COPY.closedStateText}\n </Button>\n </div>\n );\n }",
|
|
1393
1177
|
"source": "stories",
|
|
1394
1178
|
"compilable": false
|
|
1395
1179
|
},
|
|
1396
|
-
"87dd752d00210f310d98413fe703cdc2d1dd610bd62efc974185675ea4f82d78": {
|
|
1397
|
-
"title": "Canonical usage",
|
|
1398
|
-
"code": "import type { DrawerFormProps } from '@1money/component-ui';",
|
|
1399
|
-
"source": "canonical",
|
|
1400
|
-
"compilable": true
|
|
1401
|
-
},
|
|
1402
|
-
"87df6d0f746b9be426eb490a25c877d56ac0252bcbdc0d69fa90260397387d4c": {
|
|
1403
|
-
"title": "Canonical usage",
|
|
1404
|
-
"code": "import type { DrawerProps } from '@1money/component-ui';",
|
|
1405
|
-
"source": "canonical",
|
|
1406
|
-
"compilable": true
|
|
1407
|
-
},
|
|
1408
|
-
"88336a196e8322974055de2b8c590f70ade08e176b0eac3f8cd6b72800b1b63a": {
|
|
1409
|
-
"title": "Canonical usage",
|
|
1410
|
-
"code": "import type { ProFormListProps } from '@1money/component-ui';",
|
|
1411
|
-
"source": "canonical",
|
|
1412
|
-
"compilable": true
|
|
1413
|
-
},
|
|
1414
1180
|
"88a98229b741820a7e0d61f5e3e8e51340ac8d1cc2eb5332be8189a42f43b6ff": {
|
|
1415
1181
|
"title": "No Animation",
|
|
1416
1182
|
"code": "<Tabs items={DEFAULT_ITEMS} animated={false} />",
|
|
@@ -1489,12 +1255,6 @@
|
|
|
1489
1255
|
"source": "stories",
|
|
1490
1256
|
"compilable": false
|
|
1491
1257
|
},
|
|
1492
|
-
"92884b0ad016e0b0699fc547bc92043837674393d2d601ebe0fc0aa31ced6498": {
|
|
1493
|
-
"title": "Canonical usage",
|
|
1494
|
-
"code": "<Tour open steps={[]} onClose={() => {}} />",
|
|
1495
|
-
"source": "canonical",
|
|
1496
|
-
"compilable": true
|
|
1497
|
-
},
|
|
1498
1258
|
"92d700fd2da1bf06587fe4c86118bff9b3b4b42eb3ec5a4c9a790f7ac8950ff6": {
|
|
1499
1259
|
"title": "Illustrations",
|
|
1500
1260
|
"code": "{\n const handleCopy = (el: string) => {\n copy(el);\n };\n\n return <div style={{ display: 'grid', gap: 24, gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))' }}>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusChecked' />\")}>\n <Icons {...args} name='illusChecked' />\n <span>illusChecked</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusEmailError' />\")}>\n <Icons {...args} name='illusEmailError' />\n <span>illusEmailError</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusLinkExpired' />\")}>\n <Icons {...args} name='illusLinkExpired' />\n <span>illusLinkExpired</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illus2FA' />\")}>\n <Icons {...args} name='illus2FA' />\n <span>illus2FA</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusLocked' />\")}>\n <Icons {...args} name='illusLocked' />\n <span>illusLocked</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusError' />\")}>\n <Icons {...args} name='illusError' />\n <span>illusError</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusRegionNotSupported' />\")}>\n <Icons {...args} name='illusRegionNotSupported' />\n <span>illusRegionNotSupported</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusID' />\")}>\n <Icons {...args} name='illusID' />\n <span>illusID</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusVerification' />\")}>\n <Icons {...args} name='illusVerification' />\n <span>illusVerification</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusPending' />\")}>\n <Icons {...args} name='illusPending' color='#F4C600' />\n <span>illusPending</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusPasskey' />\")}>\n <Icons {...args} name='illusPasskey' />\n <span>illusPasskey</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusAddAccount' />\")}>\n <Icons {...args} name='illusAddAccount' />\n <span>illusAddAccount</span>\n </CopyIconBox>\n </div>;\n }",
|
|
@@ -1507,12 +1267,6 @@
|
|
|
1507
1267
|
"source": "canonical",
|
|
1508
1268
|
"compilable": true
|
|
1509
1269
|
},
|
|
1510
|
-
"93b1291462e3499dc53cfc59ff3a287c0beb68213b4eb563c88cc64ce2158ba8": {
|
|
1511
|
-
"title": "Canonical usage",
|
|
1512
|
-
"code": "import type { ProFormColProps } from '@1money/component-ui';",
|
|
1513
|
-
"source": "canonical",
|
|
1514
|
-
"compilable": true
|
|
1515
|
-
},
|
|
1516
1270
|
"93b8b9acce6685bc6f00a21f857fc812e41fb754d3e946d7576e2543f056f1c0": {
|
|
1517
1271
|
"title": "Canonical usage",
|
|
1518
1272
|
"code": "import { Upload, UploadFileBar } from '@1money/components-ui';\n// or\nimport { Upload, UploadFileBar } from '@1money/components-ui/Upload';",
|
|
@@ -1561,18 +1315,6 @@
|
|
|
1561
1315
|
"source": "stories",
|
|
1562
1316
|
"compilable": false
|
|
1563
1317
|
},
|
|
1564
|
-
"96f9cfe7a3579cf1c7ff57afe66be83040e23794844ce4d35758cae32e1c7cdb": {
|
|
1565
|
-
"title": "Usage",
|
|
1566
|
-
"code": "<Navigation\n items={[\n { key: 'home', label: 'Home', icon: 'home', active: true },\n { key: 'portfolio', label: 'Portfolio', icon: 'portfolio' },\n { key: 'transactions', label: 'Transactions', icon: 'transactions', children: [\n { key: 'deposits', label: 'Deposits' },\n { key: 'withdrawals', label: 'Withdrawals' },\n ]},\n ]}\n collapsible\n onCollapse={(collapsed) => console.log(collapsed)}\n/>",
|
|
1567
|
-
"source": "readme",
|
|
1568
|
-
"compilable": true
|
|
1569
|
-
},
|
|
1570
|
-
"97683a3f5c99b99a2b9a054edbee9d66d751fcb9ce9361898434af338708d3c9": {
|
|
1571
|
-
"title": "Canonical usage",
|
|
1572
|
-
"code": "<Step items={[]} />",
|
|
1573
|
-
"source": "canonical",
|
|
1574
|
-
"compilable": true
|
|
1575
|
-
},
|
|
1576
1318
|
"97c44f1fee50bdc6a2d6a8cb4b7c56c51a2997d2ea78b3647cce7b0c249f6f8c": {
|
|
1577
1319
|
"title": "Import",
|
|
1578
1320
|
"code": "import { Tooltip } from '@1money/components-ui';\n// or\nimport { Tooltip } from '@1money/components-ui/Tooltip';",
|
|
@@ -1585,6 +1327,12 @@
|
|
|
1585
1327
|
"source": "readme",
|
|
1586
1328
|
"compilable": true
|
|
1587
1329
|
},
|
|
1330
|
+
"981f2b8a3640a8ce952c89b517bddfce5736957f28636f94c17265c8ed5b575e": {
|
|
1331
|
+
"title": "Usage",
|
|
1332
|
+
"code": "<Tour\n open={open}\n onClose={() => setOpen(false)}\n steps={[\n {\n target: '#dashboard-card',\n placement: 'bottom',\n heading: 'Dashboard',\n body: 'Track your account activity here.',\n },\n ]}\n/>",
|
|
1333
|
+
"source": "readme",
|
|
1334
|
+
"compilable": true
|
|
1335
|
+
},
|
|
1588
1336
|
"9856c3fcdf26046e1e631b2aeb36d7da1f1f316ddb5a33f17c71a0434111aea0": {
|
|
1589
1337
|
"title": "Default",
|
|
1590
1338
|
"code": "{\n const [open, setOpen] = useState(false);\n const uploadRef = useRef<HTMLButtonElement>(null);\n const saveRef = useRef<HTMLButtonElement>(null);\n const moreRef = useRef<HTMLButtonElement>(null);\n\n return (\n <div>\n <Button color=\"primary\" onClick={() => setOpen(true)}>\n Begin Tour\n </Button>\n\n <div style={{ display: 'flex', flexDirection: 'column', gap: 48, marginTop: 40, width: 500 }}>\n <div style={{ alignSelf: 'flex-start' }}>\n <Button ref={uploadRef} variant=\"text\">Upload</Button>\n </div>\n <div style={{ alignSelf: 'center' }}>\n <Button ref={saveRef} color=\"primary\">Save</Button>\n </div>\n <div style={{ alignSelf: 'flex-end' }}>\n <Button ref={moreRef} variant=\"text\">···</Button>\n </div>\n </div>\n\n <Tour\n open={open}\n onClose={() => setOpen(false)}\n steps={[\n {\n target: uploadRef,\n placement: 'bottom',\n heading: 'Upload File',\n body: 'Click to upload your files.',\n },\n {\n target: saveRef,\n placement: 'bottom',\n heading: 'Save',\n body: 'Save your changes.',\n },\n {\n target: moreRef,\n placement: 'bottom',\n heading: 'More',\n body: 'Click for more options.',\n },\n ]}\n />\n </div>\n );\n }",
|
|
@@ -1609,12 +1357,6 @@
|
|
|
1609
1357
|
"source": "readme",
|
|
1610
1358
|
"compilable": true
|
|
1611
1359
|
},
|
|
1612
|
-
"9a5aa0a4875e686c1a64a1085ed22b25ebf5849ebf8bf0cd0fb6376c887729ab": {
|
|
1613
|
-
"title": "Canonical usage",
|
|
1614
|
-
"code": "<DrawerForm />",
|
|
1615
|
-
"source": "canonical",
|
|
1616
|
-
"compilable": true
|
|
1617
|
-
},
|
|
1618
1360
|
"9a6b2f4b0ce1fdea4c73f1f9ea0d1471dc97d3dd7783c798b6b99ddc7f3bf15c": {
|
|
1619
1361
|
"title": "Import",
|
|
1620
1362
|
"code": "import { Skeleton } from '@1money/components-ui';\n// or\nimport { Skeleton } from '@1money/components-ui/Skeleton';",
|
|
@@ -1627,16 +1369,10 @@
|
|
|
1627
1369
|
"source": "stories",
|
|
1628
1370
|
"compilable": true
|
|
1629
1371
|
},
|
|
1630
|
-
"
|
|
1631
|
-
"title": "
|
|
1632
|
-
"code": "
|
|
1633
|
-
"source": "
|
|
1634
|
-
"compilable": true
|
|
1635
|
-
},
|
|
1636
|
-
"9c4b5f475fd76261b4364f04f169997152a1ceea87575298d7a413fd0a551085": {
|
|
1637
|
-
"title": "Canonical usage",
|
|
1638
|
-
"code": "import type { FormCoreInstance } from '@1money/component-ui';",
|
|
1639
|
-
"source": "canonical",
|
|
1372
|
+
"9c99f80f5636ab539416d2c5c60a083a9d43acd5938644b959803204f9470ac1": {
|
|
1373
|
+
"title": "Import",
|
|
1374
|
+
"code": "import { Portal } from '@1money/components-ui';\n// or\nimport { Portal } from '@1money/components-ui/Portal';",
|
|
1375
|
+
"source": "readme",
|
|
1640
1376
|
"compilable": true
|
|
1641
1377
|
},
|
|
1642
1378
|
"9d095c31abb7ac97c40b817bfca40bcb706f8b8572f9a6af7218643f08b7464b": {
|
|
@@ -1645,6 +1381,12 @@
|
|
|
1645
1381
|
"source": "readme",
|
|
1646
1382
|
"compilable": true
|
|
1647
1383
|
},
|
|
1384
|
+
"9d9e13198adcfe9df9f475bcf7d1fcef492fbd98892daaddb28d65ca2e213a74": {
|
|
1385
|
+
"title": "Import",
|
|
1386
|
+
"code": "import { ResizeObserver, useResizeObserver } from '@1money/components-ui';\n// or\nimport { ResizeObserver, useResizeObserver } from '@1money/components-ui/ResizeObserver';",
|
|
1387
|
+
"source": "readme",
|
|
1388
|
+
"compilable": true
|
|
1389
|
+
},
|
|
1648
1390
|
"9eae41b47da6d3b07d6bfdb98fe407b6be85aa68db3fe695699cf9588b65eda8": {
|
|
1649
1391
|
"title": "Placements",
|
|
1650
1392
|
"code": "{\n const placements: Placement[] = [\n 'top',\n 'top-start',\n 'top-end',\n 'bottom',\n 'bottom-start',\n 'bottom-end',\n 'left',\n 'left-start',\n 'left-end',\n 'right',\n 'right-start',\n 'right-end',\n ];\n\n return (\n <div\n style={{\n display: 'flex',\n flexWrap: 'wrap',\n gap: 12,\n padding: 120,\n justifyContent: 'center',\n }}\n >\n {placements.map((placement) => (\n <Dropdown\n {...args}\n key={placement}\n placement={placement}\n content={\n <div style={{ padding: 8, fontSize: 13, whiteSpace: 'nowrap' }}>\n {placement}\n </div>\n }\n >\n <Button size=\"small\">{placement}</Button>\n </Dropdown>\n ))}\n </div>\n );\n }",
|
|
@@ -1663,12 +1405,6 @@
|
|
|
1663
1405
|
"source": "stories",
|
|
1664
1406
|
"compilable": true
|
|
1665
1407
|
},
|
|
1666
|
-
"a0db5e8a8634435b7717e8162c8d43cd1a6918c73fb73a44d76d56fa6d532de2": {
|
|
1667
|
-
"title": "Canonical usage",
|
|
1668
|
-
"code": "import type { ProgressState } from '@1money/component-ui';",
|
|
1669
|
-
"source": "canonical",
|
|
1670
|
-
"compilable": true
|
|
1671
|
-
},
|
|
1672
1408
|
"a0eaa77614f8bc2563173aa4c68d578c2a7d2957ec1696516c9656d43737f7e2": {
|
|
1673
1409
|
"title": "Import",
|
|
1674
1410
|
"code": "import { Segment } from '@1money/components-ui';\n// or\nimport { Segment } from '@1money/components-ui/Segment';",
|
|
@@ -1711,34 +1447,22 @@
|
|
|
1711
1447
|
"source": "stories",
|
|
1712
1448
|
"compilable": true
|
|
1713
1449
|
},
|
|
1714
|
-
"a5ae14150d1724de4984c10921713734e86d15771efe397f3015a01c77d13676": {
|
|
1715
|
-
"title": "Canonical usage",
|
|
1716
|
-
"code": "import { Cell } from '@1money/component-ui';\n// or\nimport { Cell } from '@1money/component-ui/Cell';",
|
|
1717
|
-
"source": "canonical",
|
|
1718
|
-
"compilable": true
|
|
1719
|
-
},
|
|
1720
1450
|
"a823300963fcf8c4ccf8e531c42aa78d7ab59841b405c471d5c0c0d6ac0b9b22": {
|
|
1721
1451
|
"title": "Text Area",
|
|
1722
1452
|
"code": "{\n const states = ['default', 'error'] as const;\n const valueTypes = ['Placeholder', 'Filled'] as const;\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 40 }}>\n {/* ── Large ── */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>Large</h3>\n <div style={{ display: 'flex', gap: 24, flexWrap: 'wrap' }}>\n {states.map((status) =>\n valueTypes.map((vt) => (\n <div key={`${status}-${vt}`} style={{ width: 400 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>\n {status} / {vt}\n </p>\n <Input.TextArea\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={status === 'error' ? <Icons name=\"error\" size={16} /> : <Icons name=\"info\" size={16} />}\n status={status}\n placeholder=\"Value\"\n defaultValue={vt === 'Filled' ? 'Longer memo value that spans multiple lines to demonstrate the filled state of the textarea component' : undefined}\n rows={4}\n showCount\n maxLength={250}\n />\n </div>\n )),\n )}\n {/* Disabled */}\n {valueTypes.map((vt) => (\n <div key={`disabled-${vt}`} style={{ width: 400 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>\n disabled / {vt}\n </p>\n <Input.TextArea\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n disabled\n placeholder=\"Value\"\n defaultValue={vt === 'Filled' ? 'Disabled filled value' : undefined}\n rows={4}\n showCount\n maxLength={250}\n />\n </div>\n ))}\n </div>\n </div>\n\n {/* ── Small ── */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>Small</h3>\n <div style={{ display: 'flex', gap: 24, flexWrap: 'wrap' }}>\n <div style={{ width: 400 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>default / Placeholder</p>\n <Input.TextArea\n size=\"small\"\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n placeholder=\"Value\"\n rows={3}\n showCount\n maxLength={250}\n />\n </div>\n <div style={{ width: 400 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>default / Filled</p>\n <Input.TextArea\n size=\"small\"\n label=\"Label\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n placeholder=\"Value\"\n defaultValue=\"Small filled value\"\n rows={3}\n showCount\n maxLength={250}\n />\n </div>\n </div>\n </div>\n </div>\n );\n }",
|
|
1723
1453
|
"source": "stories",
|
|
1724
1454
|
"compilable": true
|
|
1725
1455
|
},
|
|
1726
|
-
"a95b0ad034e07b035fd0d4b861b4bb29fe68e7e04c8f0d3541178f4e15b7b0d1": {
|
|
1727
|
-
"title": "Canonical usage",
|
|
1728
|
-
"code": "import type { CreateProFormFieldConfig } from '@1money/component-ui';",
|
|
1729
|
-
"source": "canonical",
|
|
1730
|
-
"compilable": true
|
|
1731
|
-
},
|
|
1732
1456
|
"aa0e9842f54e521f7ff371e51003e26ed69263bef1d5d37baaa5fd6fa189e32c": {
|
|
1733
1457
|
"title": "Split Example",
|
|
1734
1458
|
"code": "<Space split={<span>|</span>} size={SPACE_SIZE.small}>\n <span>Alpha</span>\n <span>Beta</span>\n <span>Gamma</span>\n</Space>",
|
|
1735
1459
|
"source": "readme",
|
|
1736
1460
|
"compilable": true
|
|
1737
1461
|
},
|
|
1738
|
-
"
|
|
1739
|
-
"title": "
|
|
1740
|
-
"code": "import
|
|
1741
|
-
"source": "
|
|
1462
|
+
"aa61ebf1b90fbb562c6110d57bc34506cb6448c179bb745b3c3106a7f6cc9e74": {
|
|
1463
|
+
"title": "Import",
|
|
1464
|
+
"code": "import { Progress } from '@1money/components-ui';\n// or\nimport { Progress } from '@1money/components-ui/Progress';",
|
|
1465
|
+
"source": "readme",
|
|
1742
1466
|
"compilable": true
|
|
1743
1467
|
},
|
|
1744
1468
|
"ab9c2b8dec3865ef9826586aa69c01790a48073272eb97a2006323577fbf2550": {
|
|
@@ -1765,22 +1489,16 @@
|
|
|
1765
1489
|
"source": "readme",
|
|
1766
1490
|
"compilable": true
|
|
1767
1491
|
},
|
|
1768
|
-
"aeb5b3145a02eaf5de7b756aa71f963aac5ab51ac00f7f76dbc2599ab7634b3a": {
|
|
1769
|
-
"title": "Canonical usage",
|
|
1770
|
-
"code": "import type { VirtualListProps } from '@1money/component-ui';",
|
|
1771
|
-
"source": "canonical",
|
|
1772
|
-
"compilable": true
|
|
1773
|
-
},
|
|
1774
1492
|
"af6172fd099200e93181aeb231c5d69c5b4b4d057a1f32935aa2f35ed86ffebe": {
|
|
1775
1493
|
"title": "Search",
|
|
1776
1494
|
"code": "{\n const onSearch = fn();\n const sizes = ['large', 'small'] as const;\n const columns = [\n { label: 'Default', props: {} },\n { label: 'Disabled', props: { disabled: true } },\n ];\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 40 }}>\n {sizes.map((size) => (\n <div key={size}>\n <h3 style={{ margin: '0 0 16px', textTransform: 'capitalize' }}>{size}</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>\n {/* Placeholder row */}\n <div>\n <p style={{ margin: '0 0 8px', color: '#666', fontSize: 13 }}>Placeholder</p>\n <div style={{ display: 'flex', gap: 16, flexWrap: 'wrap' }}>\n {columns.map((col) => (\n <div key={col.label} style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>{col.label}</p>\n <Input.Search\n size={size}\n placeholder=\"Search\"\n onSearch={onSearch}\n {...col.props}\n />\n </div>\n ))}\n </div>\n </div>\n {/* Filled row */}\n <div>\n <p style={{ margin: '0 0 8px', color: '#666', fontSize: 13 }}>Filled</p>\n <div style={{ display: 'flex', gap: 16, flexWrap: 'wrap' }}>\n {columns.map((col) => (\n <div key={col.label} style={{ width: 310 }}>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>{col.label}</p>\n <Input.Search\n size={size}\n placeholder=\"Search\"\n defaultValue=\"Search\"\n allowClear\n onSearch={onSearch}\n {...col.props}\n />\n </div>\n ))}\n </div>\n </div>\n </div>\n </div>\n ))}\n {/* Loading */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>Loading</h3>\n <div style={{ display: 'flex', gap: 16 }}>\n <div style={{ width: 310 }}>\n <Input.Search\n placeholder=\"Search\"\n defaultValue=\"Search\"\n loading\n onSearch={onSearch}\n />\n </div>\n </div>\n </div>\n </div>\n );\n }",
|
|
1777
1495
|
"source": "stories",
|
|
1778
1496
|
"compilable": false
|
|
1779
1497
|
},
|
|
1780
|
-
"
|
|
1781
|
-
"title": "
|
|
1782
|
-
"code": "
|
|
1783
|
-
"source": "
|
|
1498
|
+
"af64339337cb6c9e4dfce14392faeb67ee7ab5b4fd60c434ee58ce8db56705c2": {
|
|
1499
|
+
"title": "Import",
|
|
1500
|
+
"code": "import { Navigation, Nav } from '@1money/components-ui';\n// or\nimport { Navigation, Nav } from '@1money/components-ui/Navigation';",
|
|
1501
|
+
"source": "readme",
|
|
1784
1502
|
"compilable": true
|
|
1785
1503
|
},
|
|
1786
1504
|
"b01e2ee6d41091e4a6c12c9a96eb56c7c35c717754ac47bc643756c276654869": {
|
|
@@ -1807,6 +1525,12 @@
|
|
|
1807
1525
|
"source": "stories",
|
|
1808
1526
|
"compilable": true
|
|
1809
1527
|
},
|
|
1528
|
+
"b14da4d622a544459d2811d8e446450f5581cecc1aa78d0da413b1bbaba9df9d": {
|
|
1529
|
+
"title": "Usage",
|
|
1530
|
+
"code": "<Upload\n label=\"Attach document\"\n description=\"PDF or PNG, up to 10 MB\"\n buttonLabel=\"Upload file\"\n accept=\".pdf,.png\"\n onSelect={(files) => console.log(files)}\n/>",
|
|
1531
|
+
"source": "readme",
|
|
1532
|
+
"compilable": true
|
|
1533
|
+
},
|
|
1810
1534
|
"b1c6f9400c9b8e40e5ce950447b02ac670b68a1e55242b16a8dc86249f792a7f": {
|
|
1811
1535
|
"title": "Canonical usage",
|
|
1812
1536
|
"code": "<p>Above</p>\n<Divider />\n<p>Below</p>",
|
|
@@ -1819,46 +1543,16 @@
|
|
|
1819
1543
|
"source": "stories",
|
|
1820
1544
|
"compilable": false
|
|
1821
1545
|
},
|
|
1822
|
-
"b5058892460d3456a042642b413b9da4a784488bd7e21f991f40aea1d5d14a93": {
|
|
1823
|
-
"title": "Canonical usage",
|
|
1824
|
-
"code": "import type { LabelAlign } from '@1money/component-ui';",
|
|
1825
|
-
"source": "canonical",
|
|
1826
|
-
"compilable": true
|
|
1827
|
-
},
|
|
1828
|
-
"b5122ab00632d0b9f9f205345094b8cc87d3de0e265bfa06f77f8c0538a72a4a": {
|
|
1829
|
-
"title": "Import",
|
|
1830
|
-
"code": "import { Link } from '@1money/component-ui';\n// or\nimport { Link } from '@1money/component-ui/Link';",
|
|
1831
|
-
"source": "readme",
|
|
1832
|
-
"compilable": true
|
|
1833
|
-
},
|
|
1834
1546
|
"b53d16f186c5371a04bc88eb4e5f48d69652f711a0b9596a5b520eea56fd12b7": {
|
|
1835
1547
|
"title": "Usage",
|
|
1836
1548
|
"code": "<Link href=\"https://docs.1money.com\" target=\"_blank\">\n Documentation\n</Link>",
|
|
1837
1549
|
"source": "readme",
|
|
1838
1550
|
"compilable": true
|
|
1839
1551
|
},
|
|
1840
|
-
"
|
|
1841
|
-
"title": "
|
|
1842
|
-
"code": "<
|
|
1843
|
-
"source": "
|
|
1844
|
-
"compilable": true
|
|
1845
|
-
},
|
|
1846
|
-
"b5c565a619ca8c6ea6be3771a025e08245ee1157433a0f25341df72da8c82c84": {
|
|
1847
|
-
"title": "Canonical usage",
|
|
1848
|
-
"code": "import type { VirtualListRef } from '@1money/component-ui';",
|
|
1849
|
-
"source": "canonical",
|
|
1850
|
-
"compilable": true
|
|
1851
|
-
},
|
|
1852
|
-
"b5cf05bb6a8f45cfcd470fe1172b358fbd92178d3eece19d966999aa3f077105": {
|
|
1853
|
-
"title": "Canonical usage",
|
|
1854
|
-
"code": "import { Link } from '@1money/component-ui';\n// or\nimport { Link } from '@1money/component-ui/Link';",
|
|
1855
|
-
"source": "canonical",
|
|
1856
|
-
"compilable": true
|
|
1857
|
-
},
|
|
1858
|
-
"b669352c8c48a5998e787d52dcf642775655517e1ea3c28da5047402bfb8f815": {
|
|
1859
|
-
"title": "Canonical usage",
|
|
1860
|
-
"code": "import type { ResizeObserverSizeInfo } from '@1money/component-ui';",
|
|
1861
|
-
"source": "canonical",
|
|
1552
|
+
"b5ac338b8dae79ebaa6977ba835eec80689422de45f275287959a9a88f1ecce7": {
|
|
1553
|
+
"title": "Usage",
|
|
1554
|
+
"code": "<Select\n label=\"Currency\"\n placeholder=\"Select currency\"\n options={[\n { label: 'USD', value: 'USD' },\n { label: 'EUR', value: 'EUR', disabled: true },\n ]}\n onChange={(value, option) => console.log(value, option)}\n/>",
|
|
1555
|
+
"source": "readme",
|
|
1862
1556
|
"compilable": true
|
|
1863
1557
|
},
|
|
1864
1558
|
"b6bf8d1eebcfbb2bb8d4eef7f3fbb26233d5abe1febad432c6cb4d4af6ad7a79": {
|
|
@@ -1885,10 +1579,10 @@
|
|
|
1885
1579
|
"source": "stories",
|
|
1886
1580
|
"compilable": false
|
|
1887
1581
|
},
|
|
1888
|
-
"
|
|
1889
|
-
"title": "
|
|
1890
|
-
"code": "
|
|
1891
|
-
"source": "
|
|
1582
|
+
"bad68aaa47c4d8c9f976f817b5edbef7ff8573f469f9a1bc5bc53482ff65b38e": {
|
|
1583
|
+
"title": "Usage",
|
|
1584
|
+
"code": "<Alert\n status=\"info\"\n title=\"Information\"\n body=\"This is an informational message.\"\n link={{ label: 'Learn more', href: '/docs' }}\n closable\n onClose={() => console.log('closed')}\n/>",
|
|
1585
|
+
"source": "readme",
|
|
1892
1586
|
"compilable": true
|
|
1893
1587
|
},
|
|
1894
1588
|
"bda0a33c638ce6212b4a0c6a592ef4de615a792af4360935f5c256a31d3c2bfc": {
|
|
@@ -1903,24 +1597,6 @@
|
|
|
1903
1597
|
"source": "stories",
|
|
1904
1598
|
"compilable": false
|
|
1905
1599
|
},
|
|
1906
|
-
"bea04481c1d6a537bdee648094a468c0153ef005defd5762fd0568a7312f0b71": {
|
|
1907
|
-
"title": "Canonical usage",
|
|
1908
|
-
"code": "<ProFormItem />",
|
|
1909
|
-
"source": "canonical",
|
|
1910
|
-
"compilable": true
|
|
1911
|
-
},
|
|
1912
|
-
"bea3fd79a9ce5be5ed4038daa57612f962de2b1b334870a215966790b6a5c1f5": {
|
|
1913
|
-
"title": "Usage",
|
|
1914
|
-
"code": "<CoachMark\n heading=\"Welcome to Dashboard\"\n body=\"Here you can see an overview of your finances.\"\n steps={4}\n defaultActiveStep={0}\n placement=\"top\"\n icon={<Icons name=\"dashboard\" size={24} />}\n onFinish={() => console.log('Tour complete')}\n onDismiss={() => console.log('Tour dismissed')}\n/>",
|
|
1915
|
-
"source": "readme",
|
|
1916
|
-
"compilable": true
|
|
1917
|
-
},
|
|
1918
|
-
"bec858e374183c180f6a8c8157e1d6204faf444043aa0bfe7145fdff1fb35c29": {
|
|
1919
|
-
"title": "Canonical usage",
|
|
1920
|
-
"code": "import type { QueryFilterProps } from '@1money/component-ui';",
|
|
1921
|
-
"source": "canonical",
|
|
1922
|
-
"compilable": true
|
|
1923
|
-
},
|
|
1924
1600
|
"bfa365023d672d8f94c08d4bf7dba03404964ed3489949e44748853da10be22b": {
|
|
1925
1601
|
"title": "Dialog Form Story",
|
|
1926
1602
|
"code": "<DialogForm\n {...args}\n title=\"Create User\"\n trigger={<Button color=\"primary\">Open Dialog Form</Button>}\n onFinish={async (values) => {\n alert(JSON.stringify(values, null, 2));\n }}\n >\n <ProFormText name=\"name\" label=\"Name\" rules={[{ required: true }]} />\n <ProFormText name=\"email\" label=\"Email\" rules={[{ required: true }]} />\n <ProFormSwitch name=\"active\" label=\"Active\" />\n </DialogForm>",
|
|
@@ -1939,16 +1615,10 @@
|
|
|
1939
1615
|
"source": "stories",
|
|
1940
1616
|
"compilable": false
|
|
1941
1617
|
},
|
|
1942
|
-
"
|
|
1943
|
-
"title": "
|
|
1944
|
-
"code": "
|
|
1945
|
-
"source": "
|
|
1946
|
-
"compilable": true
|
|
1947
|
-
},
|
|
1948
|
-
"c145e8864a44d06820814a82b0d0e2e486e772f015830b8cc626831e2e025878": {
|
|
1949
|
-
"title": "Canonical usage",
|
|
1950
|
-
"code": "<Portal />",
|
|
1951
|
-
"source": "canonical",
|
|
1618
|
+
"c1047979ec6d13e1fe99d24583dd1657985cf01fbfbda4dbeeb51919a33a743d": {
|
|
1619
|
+
"title": "Usage",
|
|
1620
|
+
"code": "<Portal>\n <div>Rendered in document.body</div>\n</Portal>\n\n<Portal disablePortal>\n <div>Rendered in place</div>\n</Portal>",
|
|
1621
|
+
"source": "readme",
|
|
1952
1622
|
"compilable": true
|
|
1953
1623
|
},
|
|
1954
1624
|
"c196d3703b8f7605b2cf3ba5d441a3c20a72992b82874261716187376e93e86e": {
|
|
@@ -1963,12 +1633,24 @@
|
|
|
1963
1633
|
"source": "stories",
|
|
1964
1634
|
"compilable": false
|
|
1965
1635
|
},
|
|
1636
|
+
"c2ed4afd7f4c04998bfad81cb58b67b4a475835fbd8784a832e1a785e11eb50e": {
|
|
1637
|
+
"title": "Brand Spinner on Gradient Background",
|
|
1638
|
+
"code": "<Spinner\n type=\"brand-bg\"\n size={80}\n title=\"Setting up your account\"\n/>",
|
|
1639
|
+
"source": "readme",
|
|
1640
|
+
"compilable": true
|
|
1641
|
+
},
|
|
1966
1642
|
"c303f66164ebe41cd2a3afd4f3f393f888ada9d6806d059d56b47f502825f2f7": {
|
|
1967
1643
|
"title": "OTP",
|
|
1968
1644
|
"code": "{\n const onComplete = fn();\n const onChange = fn();\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 40 }}>\n {/* ── Large ── */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>Large</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>default / Empty</p>\n <Input.OTP\n label=\"Verification Code\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n length={6}\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>default / Partial</p>\n <Input.OTP\n label=\"Verification Code\"\n feedback=\"Feedback\"\n feedbackIcon={<Icons name=\"info\" size={16} />}\n length={6}\n defaultValue=\"123\"\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>error</p>\n <Input.OTP\n label=\"Verification Code\"\n status=\"error\"\n feedback=\"Invalid code\"\n feedbackIcon={<Icons name=\"error\" size={16} />}\n length={6}\n defaultValue=\"999999\"\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>disabled</p>\n <Input.OTP\n label=\"Verification Code\"\n disabled\n length={6}\n defaultValue=\"123456\"\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>mask (password style)</p>\n <Input.OTP\n label=\"PIN Code\"\n length={6}\n defaultValue=\"1234\"\n mask\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n </div>\n </div>\n\n {/* ── Small ── */}\n <div>\n <h3 style={{ margin: '0 0 16px' }}>Small</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>default / Empty</p>\n <Input.OTP\n size=\"small\"\n label=\"Code\"\n length={6}\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n <div>\n <p style={{ margin: '0 0 4px', fontSize: 12, color: '#999' }}>4-digit code</p>\n <Input.OTP\n size=\"small\"\n label=\"PIN\"\n length={4}\n defaultValue=\"12\"\n onComplete={onComplete}\n onChange={onChange}\n />\n </div>\n </div>\n </div>\n </div>\n );\n }",
|
|
1969
1645
|
"source": "stories",
|
|
1970
1646
|
"compilable": false
|
|
1971
1647
|
},
|
|
1648
|
+
"c37dda6e47f4681c24203fbf4f154801673c331d4394707e6c12c5b07eb3953b": {
|
|
1649
|
+
"title": "Import",
|
|
1650
|
+
"code": "import { Cell } from '@1money/components-ui';\n// or\nimport { Cell } from '@1money/components-ui/Cell';",
|
|
1651
|
+
"source": "readme",
|
|
1652
|
+
"compilable": true
|
|
1653
|
+
},
|
|
1972
1654
|
"c3aaf0098db4c77ba5af727f8c2eb70a9969be6ea15dcba309d583137cfe6e21": {
|
|
1973
1655
|
"title": "Nested List",
|
|
1974
1656
|
"code": "<ProForm\n {...args}\n initialValues={{\n groups: [\n { title: 'Group A', items: [{ name: 'Item 1' }] },\n ],\n }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProFormList name=\"groups\" label=\"Groups\">\n {(fields) =>\n fields.map(({ name, key }) => (\n <div key={key} style={{ border: '1px solid #eee', padding: 12, marginBottom: 8, borderRadius: 4 }}>\n <ProFormText name={`${name}.title`} label=\"Group Title\" />\n <ProFormList name=\"items\" label=\"Items\">\n {(subFields) =>\n subFields.map((sf) => (\n <ProFormText key={sf.key} name={`${sf.name}.name`} label=\"Item Name\" />\n ))\n }\n </ProFormList>\n </div>\n ))\n }\n </ProFormList>\n </ProForm>",
|
|
@@ -1981,39 +1663,15 @@
|
|
|
1981
1663
|
"source": "stories",
|
|
1982
1664
|
"compilable": true
|
|
1983
1665
|
},
|
|
1984
|
-
"c4fb3c20755ba50100856ee70fc3b85038d8c04bef80a4aec58734e95995d8a8": {
|
|
1985
|
-
"title": "Canonical usage",
|
|
1986
|
-
"code": "<ProFormCheckboxGroup />",
|
|
1987
|
-
"source": "canonical",
|
|
1988
|
-
"compilable": true
|
|
1989
|
-
},
|
|
1990
1666
|
"c5260837fe7728fca505a762c48a8ede3b34d472c53b2be29b29a49de267418d": {
|
|
1991
1667
|
"title": "Import",
|
|
1992
1668
|
"code": "import { Icons, IconWrapper, IconHover } from '@1money/components-ui';\n// or\nimport { Icons, IconWrapper, IconHover } from '@1money/components-ui/Icons';\n\n// Type import\nimport type { IconName } from '@1money/components-ui';",
|
|
1993
1669
|
"source": "readme",
|
|
1994
1670
|
"compilable": true
|
|
1995
1671
|
},
|
|
1996
|
-
"
|
|
1997
|
-
"title": "Canonical usage",
|
|
1998
|
-
"code": "import type { DropdownProps } from '@1money/component-ui';",
|
|
1999
|
-
"source": "canonical",
|
|
2000
|
-
"compilable": true
|
|
2001
|
-
},
|
|
2002
|
-
"c5c8294cf8e64c0260dadcf294fe23c8dc5b054d7780988addeb5f5bfa8f6658": {
|
|
2003
|
-
"title": "Page Loading Overlay",
|
|
2004
|
-
"code": "const PageLoader = ({ isLoading }) => {\n if (!isLoading) return null;\n\n return (\n <div className=\"page-loader-overlay\">\n <Spinner\n style={{ width: '50px', height: '50px' }}\n strokeWidth=\"3\"\n />\n <p>Loading your data...</p>\n </div>\n );\n};",
|
|
2005
|
-
"source": "readme",
|
|
2006
|
-
"compilable": true
|
|
2007
|
-
},
|
|
2008
|
-
"c614ee8b96a68d951bd7d9eb5c0f2a5c3be262fa670d2d245894f0a91deb000d": {
|
|
1672
|
+
"c53ede8df4b95ea3a84f4272cdde631bf1281322de0a44bfa5d9f4ac16ed9618": {
|
|
2009
1673
|
"title": "Canonical usage",
|
|
2010
|
-
"code": "
|
|
2011
|
-
"source": "canonical",
|
|
2012
|
-
"compilable": true
|
|
2013
|
-
},
|
|
2014
|
-
"c61edd4d5f5113671afbb2b5ce72b88a70f64bf63d8e320cd21c669831574cd1": {
|
|
2015
|
-
"title": "Canonical usage",
|
|
2016
|
-
"code": "<ProFormDependency name={[]}>{() => {}}</ProFormDependency>",
|
|
1674
|
+
"code": "import { Portal } from '@1money/components-ui';\n// or\nimport { Portal } from '@1money/components-ui/Portal';",
|
|
2017
1675
|
"source": "canonical",
|
|
2018
1676
|
"compilable": true
|
|
2019
1677
|
},
|
|
@@ -2041,12 +1699,24 @@
|
|
|
2041
1699
|
"source": "readme",
|
|
2042
1700
|
"compilable": true
|
|
2043
1701
|
},
|
|
1702
|
+
"c7adce2c978836debb618dc91c44c12df9f50836e6ff9994fe3822dd48caef5a": {
|
|
1703
|
+
"title": "Nav (flat / grouped navigation)",
|
|
1704
|
+
"code": "<Nav\n items={[\n {\n key: 'group-accounts',\n label: 'Accounts',\n icon: 'wallet',\n children: [\n { key: 'checking', label: 'Checking', active: true },\n { key: 'savings', label: 'Savings' },\n ],\n },\n { key: 'settings', label: 'Settings' },\n ]}\n/>",
|
|
1705
|
+
"source": "readme",
|
|
1706
|
+
"compilable": true
|
|
1707
|
+
},
|
|
2044
1708
|
"c7dcba25848c3c668f4be990f07f1a6cc8b5b3687bb3533b277bf10074bbbd74": {
|
|
2045
1709
|
"title": "Mode Update",
|
|
2046
1710
|
"code": "<ProForm\n {...args}\n mode=\"update\"\n initialValues={{ id: 'USR-001', name: 'Alice', email: 'alice@example.com' }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProFormText name=\"id\" label=\"ID\" mode=\"read\" />\n <ProFormText name=\"name\" label=\"Name\" rules={[{ required: true }]} />\n <ProFormText name=\"email\" label=\"Email\" />\n </ProForm>",
|
|
2047
1711
|
"source": "stories",
|
|
2048
1712
|
"compilable": false
|
|
2049
1713
|
},
|
|
1714
|
+
"c87555ab10e8a41bf2ce44d458d0c8d8df9f58151f64bb7a4c1edcec5ae0dbcd": {
|
|
1715
|
+
"title": "Canonical usage",
|
|
1716
|
+
"code": "import { Cell } from '@1money/components-ui';\n// or\nimport { Cell } from '@1money/components-ui/Cell';",
|
|
1717
|
+
"source": "canonical",
|
|
1718
|
+
"compilable": true
|
|
1719
|
+
},
|
|
2050
1720
|
"c9055581e81ec06997b903da8cf3dc5446cb9767423cb2fd80762ede31063176": {
|
|
2051
1721
|
"title": "Disabled",
|
|
2052
1722
|
"code": "{\n const [disabled, setDisabled] = useState(false);\n const [resizeCount, setResizeCount] = useState(0);\n\n return (\n <div>\n <div style={{ marginBottom: 12 }}>\n <label>\n <input\n type=\"checkbox\"\n checked={disabled}\n onChange={(e) => setDisabled(e.target.checked)}\n />\n {' '}Disable observer\n </label>\n <span style={{ marginLeft: 12, color: '#666' }}>\n Resize events received: {resizeCount}\n </span>\n </div>\n <ResizeObserver\n disabled={disabled}\n onResize={() => setResizeCount((c) => c + 1)}\n >\n <div style={boxStyle}>\n {disabled ? 'Observer disabled — resize events paused' : 'Resize me to trigger events'}\n </div>\n </ResizeObserver>\n </div>\n );\n }",
|
|
@@ -2059,27 +1729,15 @@
|
|
|
2059
1729
|
"source": "stories",
|
|
2060
1730
|
"compilable": false
|
|
2061
1731
|
},
|
|
2062
|
-
"ca3b9b0ee348c09e621b11cf2534f5d42546ed5004f5f00f042b20c9ca6a7548": {
|
|
2063
|
-
"title": "Canonical usage",
|
|
2064
|
-
"code": "import type { DialogFooterRender } from '@1money/component-ui';",
|
|
2065
|
-
"source": "canonical",
|
|
2066
|
-
"compilable": true
|
|
2067
|
-
},
|
|
2068
1732
|
"ca70d69f9d217bc2fb7464ca43a6e4014c47f608128b31fcaef0dce251e15ea4": {
|
|
2069
1733
|
"title": "With Disabled",
|
|
2070
1734
|
"code": "<Segment\n items={[\n { value: 'tab1', label: 'Overview' },\n { value: 'tab2', label: 'Transactions' },\n { value: 'tab3', label: 'Analytics', disabled: true },\n { value: 'tab4', label: 'Settings' },\n ]}\n />",
|
|
2071
1735
|
"source": "stories",
|
|
2072
1736
|
"compilable": true
|
|
2073
1737
|
},
|
|
2074
|
-
"
|
|
2075
|
-
"title": "Canonical usage",
|
|
2076
|
-
"code": "import type { SelectRenderOptionMeta } from '@1money/component-ui';",
|
|
2077
|
-
"source": "canonical",
|
|
2078
|
-
"compilable": true
|
|
2079
|
-
},
|
|
2080
|
-
"cc02e88440947a6233796037b3d5c91a08dccc0fbd6048c0d19e0c449e82dc73": {
|
|
1738
|
+
"cb112d23d742e359bb073b630230b53ccd7362c90ce29f033223143742f4687a": {
|
|
2081
1739
|
"title": "Canonical usage",
|
|
2082
|
-
"code": "import
|
|
1740
|
+
"code": "import { Drawer } from '@1money/components-ui';\n// or\nimport { Drawer } from '@1money/components-ui/Drawer';",
|
|
2083
1741
|
"source": "canonical",
|
|
2084
1742
|
"compilable": true
|
|
2085
1743
|
},
|
|
@@ -2107,12 +1765,6 @@
|
|
|
2107
1765
|
"source": "stories",
|
|
2108
1766
|
"compilable": false
|
|
2109
1767
|
},
|
|
2110
|
-
"cef06a2fa9ec150e4ab25d3ca42529946e43096750463d7e09e45104bfe938a9": {
|
|
2111
|
-
"title": "Canonical usage",
|
|
2112
|
-
"code": "import type { SelectSize } from '@1money/component-ui';",
|
|
2113
|
-
"source": "canonical",
|
|
2114
|
-
"compilable": true
|
|
2115
|
-
},
|
|
2116
1768
|
"cf77657b10de8590abb4f91c96d5208ef8e88c19ca770632f85ea70ebd3f41f2": {
|
|
2117
1769
|
"title": "Debounce Field",
|
|
2118
1770
|
"code": "<ProForm\n {...args}\n onValuesChange={(changed) => {\n console.log('onValuesChange (debounced):', changed);\n }}\n >\n <ProFormText\n name=\"search\"\n label=\"Search (300ms debounce — check console)\"\n debounceTime={300}\n placeholder=\"Type fast...\"\n />\n <ProFormText name=\"instant\" label=\"Instant (no debounce)\" placeholder=\"Type fast...\" />\n </ProForm>",
|
|
@@ -2125,24 +1777,6 @@
|
|
|
2125
1777
|
"source": "stories",
|
|
2126
1778
|
"compilable": false
|
|
2127
1779
|
},
|
|
2128
|
-
"d04fb66d67c8ae60bbd4a4937cb198b9b91ef7835b27f5766f421c864efdf891": {
|
|
2129
|
-
"title": "Canonical usage",
|
|
2130
|
-
"code": "<VirtualList />",
|
|
2131
|
-
"source": "canonical",
|
|
2132
|
-
"compilable": true
|
|
2133
|
-
},
|
|
2134
|
-
"d07754a416050437d6b99b5541fa4eb847f75facc92eb9f9427194d138408140": {
|
|
2135
|
-
"title": "Canonical usage",
|
|
2136
|
-
"code": "import type { DialogProps } from '@1money/component-ui';",
|
|
2137
|
-
"source": "canonical",
|
|
2138
|
-
"compilable": true
|
|
2139
|
-
},
|
|
2140
|
-
"d0b89ae2fa1043346a2874d6f6ab1231cc0e830f16e1f70fd5614d322a61b044": {
|
|
2141
|
-
"title": "Canonical usage",
|
|
2142
|
-
"code": "import type { SelectValue } from '@1money/component-ui';",
|
|
2143
|
-
"source": "canonical",
|
|
2144
|
-
"compilable": true
|
|
2145
|
-
},
|
|
2146
1780
|
"d17ae919d30d1b43236c52018609c72e725c0e22e47938fa2bed04cae70b2542": {
|
|
2147
1781
|
"title": "Usage",
|
|
2148
1782
|
"code": "<Tag label=\"Active\" color=\"success\" />\n<Tag label=\"Warning\" color=\"warning\" icon=\"add\" removable onRemove={() => {}} />\n<Tag label=\"Medium\" size=\"medium\" color=\"recommended\" />\n<Tag label=\"Small\" size=\"small\" color=\"negative\" />",
|
|
@@ -2155,6 +1789,12 @@
|
|
|
2155
1789
|
"source": "stories",
|
|
2156
1790
|
"compilable": false
|
|
2157
1791
|
},
|
|
1792
|
+
"d2d7be30524d06f99a66b1ee9375fa33501fcff7421d697bce934b4c6a79e4c1": {
|
|
1793
|
+
"title": "Canonical usage",
|
|
1794
|
+
"code": "import { Dropdown } from '@1money/components-ui';\n// or\nimport { Dropdown } from '@1money/components-ui/Dropdown';",
|
|
1795
|
+
"source": "canonical",
|
|
1796
|
+
"compilable": true
|
|
1797
|
+
},
|
|
2158
1798
|
"d2edd9eacbc07e5e229da3827b202d5da1fe8f4ca569e59c8162ce3927cbf36e": {
|
|
2159
1799
|
"title": "Import",
|
|
2160
1800
|
"code": "import { Input } from '@1money/components-ui';\n// or\nimport { Input } from '@1money/components-ui/Input';",
|
|
@@ -2173,15 +1813,9 @@
|
|
|
2173
1813
|
"source": "readme",
|
|
2174
1814
|
"compilable": true
|
|
2175
1815
|
},
|
|
2176
|
-
"
|
|
1816
|
+
"d7d5f601f2bc6d68fdd1f9092792a1ead79d09392794c0de5c6a6f08ae2fcd2b": {
|
|
2177
1817
|
"title": "Canonical usage",
|
|
2178
|
-
"code": "import
|
|
2179
|
-
"source": "canonical",
|
|
2180
|
-
"compilable": true
|
|
2181
|
-
},
|
|
2182
|
-
"d6d63abfec53aafed291131ef3a163dafcf0b09dbf5655a9457e4a8c5e75868e": {
|
|
2183
|
-
"title": "Canonical usage",
|
|
2184
|
-
"code": "<Dropdown />",
|
|
1818
|
+
"code": "import { ResizeObserver, useResizeObserver } from '@1money/components-ui';\n// or\nimport { ResizeObserver, useResizeObserver } from '@1money/components-ui/ResizeObserver';",
|
|
2185
1819
|
"source": "canonical",
|
|
2186
1820
|
"compilable": true
|
|
2187
1821
|
},
|
|
@@ -2197,6 +1831,12 @@
|
|
|
2197
1831
|
"source": "canonical",
|
|
2198
1832
|
"compilable": true
|
|
2199
1833
|
},
|
|
1834
|
+
"d928a76793b3297d721487249b48aafd40ba72f0698c1706a33e4291c542d9ba": {
|
|
1835
|
+
"title": "Canonical usage",
|
|
1836
|
+
"code": "import { Step } from '@1money/components-ui';\n// or\nimport { Step } from '@1money/components-ui/Step';",
|
|
1837
|
+
"source": "canonical",
|
|
1838
|
+
"compilable": true
|
|
1839
|
+
},
|
|
2200
1840
|
"d9882ee38a2bc32f9e2590509a569226bc8b174cfe3c16f5a1bdfbbc7662bf62": {
|
|
2201
1841
|
"title": "Placement",
|
|
2202
1842
|
"code": "{\n const [open, setOpen] = useState(false);\n const [placement, setPlacement] = useState<DrawerPlacement>('right');\n\n const openDrawer = (p: DrawerPlacement) => {\n setPlacement(p);\n setOpen(true);\n };\n\n return (\n <div style={{ display: 'flex', gap: 8 }}>\n <Button onClick={() => openDrawer('top')}>Top</Button>\n <Button onClick={() => openDrawer('right')}>Right</Button>\n <Button onClick={() => openDrawer('bottom')}>Bottom</Button>\n <Button onClick={() => openDrawer('left')}>Left</Button>\n <Drawer\n open={open}\n placement={placement}\n title={`${placement} drawer`}\n onClose={() => setOpen(false)}\n width={360}\n height={300}\n >\n <p>Drawer slides in from the {placement}.</p>\n </Drawer>\n </div>\n );\n }",
|
|
@@ -2233,9 +1873,9 @@
|
|
|
2233
1873
|
"source": "stories",
|
|
2234
1874
|
"compilable": true
|
|
2235
1875
|
},
|
|
2236
|
-
"
|
|
1876
|
+
"dba235303ebe08452940ff868113324fc00c1a8ed5461ca69aaf6113382b9f6b": {
|
|
2237
1877
|
"title": "Canonical usage",
|
|
2238
|
-
"code": "import
|
|
1878
|
+
"code": "import { Pagination, usePagination } from '@1money/components-ui';\n// or\nimport { Pagination, usePagination } from '@1money/components-ui/Pagination';",
|
|
2239
1879
|
"source": "canonical",
|
|
2240
1880
|
"compilable": true
|
|
2241
1881
|
},
|
|
@@ -2263,10 +1903,10 @@
|
|
|
2263
1903
|
"source": "stories",
|
|
2264
1904
|
"compilable": true
|
|
2265
1905
|
},
|
|
2266
|
-
"
|
|
2267
|
-
"title": "
|
|
2268
|
-
"code": "import
|
|
2269
|
-
"source": "
|
|
1906
|
+
"dd93657d7534b2334888be68dade1a1eb682df7f98475406bbe3c8f36ca64ba0": {
|
|
1907
|
+
"title": "Import",
|
|
1908
|
+
"code": "import { Select } from '@1money/components-ui';\n// or\nimport { Select } from '@1money/components-ui/Select';",
|
|
1909
|
+
"source": "readme",
|
|
2270
1910
|
"compilable": true
|
|
2271
1911
|
},
|
|
2272
1912
|
"dda0f285741a298f3e8cd24f768a9faf10789e206854eb6555fc79970dcb9c2d": {
|
|
@@ -2311,10 +1951,16 @@
|
|
|
2311
1951
|
"source": "stories",
|
|
2312
1952
|
"compilable": false
|
|
2313
1953
|
},
|
|
2314
|
-
"
|
|
2315
|
-
"title": "
|
|
2316
|
-
"code": "import {
|
|
2317
|
-
"source": "
|
|
1954
|
+
"e12204d81d25fedea606df0af41590ad6f951ad6a9c87fbb04b46d113a83c01c": {
|
|
1955
|
+
"title": "Canonical usage",
|
|
1956
|
+
"code": "import { Dialog } from '@1money/components-ui';\n// or\nimport { Dialog } from '@1money/components-ui/Dialog';",
|
|
1957
|
+
"source": "canonical",
|
|
1958
|
+
"compilable": true
|
|
1959
|
+
},
|
|
1960
|
+
"e26c609980f32c5d66ccd1ee1a5d53d3cf09e63f85e94f7adf9acc57bfdc7276": {
|
|
1961
|
+
"title": "Canonical usage",
|
|
1962
|
+
"code": "import { Navigation, Nav } from '@1money/components-ui';\n// or\nimport { Navigation, Nav } from '@1money/components-ui/Navigation';",
|
|
1963
|
+
"source": "canonical",
|
|
2318
1964
|
"compilable": true
|
|
2319
1965
|
},
|
|
2320
1966
|
"e2d97535c3a577c0c337fa59b2a6832e6337e4a07486d72339fb65ecb4899382": {
|
|
@@ -2323,10 +1969,10 @@
|
|
|
2323
1969
|
"source": "readme",
|
|
2324
1970
|
"compilable": true
|
|
2325
1971
|
},
|
|
2326
|
-
"
|
|
2327
|
-
"title": "
|
|
2328
|
-
"code": "<
|
|
2329
|
-
"source": "
|
|
1972
|
+
"e3b3197749176ad9a73173f5d1928f15b52b030d41a28e61ef40deaabbc9a554": {
|
|
1973
|
+
"title": "Usage",
|
|
1974
|
+
"code": "<Step\n items={[\n { key: 'start', title: 'Start', description: 'Create the request', status: 'completed' },\n { key: 'review', title: 'Review', tag: { label: 'Pending' } },\n { key: 'done', title: 'Complete' },\n ]}\n/>",
|
|
1975
|
+
"source": "readme",
|
|
2330
1976
|
"compilable": true
|
|
2331
1977
|
},
|
|
2332
1978
|
"e45470810804263c8bc829534812b03b22c7885a5d86df48dfecce21f3ab3a2f": {
|
|
@@ -2371,66 +2017,36 @@
|
|
|
2371
2017
|
"source": "canonical",
|
|
2372
2018
|
"compilable": true
|
|
2373
2019
|
},
|
|
2020
|
+
"e95a0d0355599d90e5a8f3e2157c5f59f2ee97f9c77cde6b856ca73e439ba89d": {
|
|
2021
|
+
"title": "Usage",
|
|
2022
|
+
"code": "<ProForm\n initialValues={{ name: '' }}\n onFinish={(values) => console.log(values)}\n>\n <ProForm.Text\n name=\"name\"\n label=\"Name\"\n rules={[{ required: true, message: 'Name is required' }]}\n />\n <ProForm.Select\n name=\"currency\"\n label=\"Currency\"\n fieldProps={{ options: [{ label: 'USD', value: 'USD' }] }}\n />\n</ProForm>",
|
|
2023
|
+
"source": "readme",
|
|
2024
|
+
"compilable": true
|
|
2025
|
+
},
|
|
2374
2026
|
"e9f60d4e278ffd41098f4db04f41855ffd8a9cb7a16f51dc8f8e99f4295effaa": {
|
|
2375
2027
|
"title": "Disabled",
|
|
2376
2028
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>\n <Switch {...args} label=\"Unchecked disabled\" disabled />\n <Switch {...args} label=\"Checked disabled\" disabled defaultChecked />\n </div>",
|
|
2377
2029
|
"source": "stories",
|
|
2378
2030
|
"compilable": false
|
|
2379
2031
|
},
|
|
2380
|
-
"ead69923c50561a8b08e90c7dc7f2b6f0d3e3b1d3aa61f06af6f26303aeacc90": {
|
|
2381
|
-
"title": "Canonical usage",
|
|
2382
|
-
"code": "import type { ProFormProps } from '@1money/component-ui';",
|
|
2383
|
-
"source": "canonical",
|
|
2384
|
-
"compilable": true
|
|
2385
|
-
},
|
|
2386
2032
|
"eb427461f9033ecdecd7f9fbecd2c65d93d6a9f081ee8af32cd9665d94095ec9": {
|
|
2387
2033
|
"title": "Semantic Scale",
|
|
2388
2034
|
"code": "<div style={STORY_LAYOUT_STYLE}>\n <div style={STORY_SECTION_STYLE}>\n {TYPOGRAPHY_DISPLAY_SIZES.map(size => (\n <Typography.Display key={size} size={size}>\n Display {size}\n </Typography.Display>\n ))}\n </div>\n\n <div style={STORY_SECTION_STYLE}>\n {TYPOGRAPHY_HEADLINE_SIZES.map(size => (\n <Typography.Headline key={size} size={size}>\n Headline {size}\n </Typography.Headline>\n ))}\n </div>\n\n <div style={STORY_SECTION_STYLE}>\n {TYPOGRAPHY_TITLE_SIZES.map(size => (\n <Typography.Title key={size} size={size}>\n Title {size}\n </Typography.Title>\n ))}\n </div>\n\n <div style={STORY_SECTION_STYLE}>\n {TYPOGRAPHY_BODY_SIZES.map(size => (\n <Typography.Body key={size} size={size}>\n Body {size} brings readable, content-first copy into forms, lists, and dense product surfaces.\n </Typography.Body>\n ))}\n </div>\n\n <div style={STORY_SECTION_STYLE}>\n {TYPOGRAPHY_LABEL_SIZES.map(size => (\n <Typography.Label key={size} size={size}>\n Label {size}\n </Typography.Label>\n ))}\n </div>\n\n <div style={STORY_SECTION_STYLE}>\n {TYPOGRAPHY_LINK_SIZES.map(size => (\n <Typography.Link key={size} size={size} href=\"https://ant.design/components/typography/\" target=\"_blank\">\n Link {size}\n </Typography.Link>\n ))}\n </div>\n </div>",
|
|
2389
2035
|
"source": "stories",
|
|
2390
2036
|
"compilable": true
|
|
2391
2037
|
},
|
|
2392
|
-
"ec48d516a07ba5085b42c5936ddd4094b99978b593ccd77f2840587b3c15fe54": {
|
|
2393
|
-
"title": "Canonical usage",
|
|
2394
|
-
"code": "import type { PaginationPageItem } from '@1money/component-ui';",
|
|
2395
|
-
"source": "canonical",
|
|
2396
|
-
"compilable": true
|
|
2397
|
-
},
|
|
2398
2038
|
"ede4a5629c02420f621373a9169c9671b906cc09439931df34b222da85911147": {
|
|
2399
2039
|
"title": "With Action",
|
|
2400
2040
|
"code": "<Alert\n {...args}\n status=\"info\"\n title=\"Payment instruction ready\"\n body=\"Share the deposit instruction with your treasury team or copy it directly.\"\n link={{ label: 'Preview instruction', onClick: fn() }}\n action={<Button onClick={fn()}>Copy details</Button>}\n closable={false}\n />",
|
|
2401
2041
|
"source": "stories",
|
|
2402
2042
|
"compilable": false
|
|
2403
2043
|
},
|
|
2404
|
-
"eded2f3304b55730029801800edc5a3c7449e2643b4b52dbc06d117d3fa78b9c": {
|
|
2405
|
-
"title": "Canonical usage",
|
|
2406
|
-
"code": "import type { DropdownTrigger } from '@1money/component-ui';",
|
|
2407
|
-
"source": "canonical",
|
|
2408
|
-
"compilable": true
|
|
2409
|
-
},
|
|
2410
|
-
"ee2bdbb626c56a393f970bf1d78c39af26d41db0d878c1454242d504dadfb8c5": {
|
|
2411
|
-
"title": "Usage",
|
|
2412
|
-
"code": "// Basic spinner\n<Spinner />\n\n// Custom size\n<Spinner style={{ width: '20px', height: '20px' }} />\n\n// Custom animation duration\n<Spinner animationDuration=\"1s\" />\n\n// Custom stroke width\n<Spinner strokeWidth=\"3\" />\n\n// Custom fill\n<Spinner style={{ width: '60px', height: '60px' }} fill=\"#E8F5E8\" />",
|
|
2413
|
-
"source": "readme",
|
|
2414
|
-
"compilable": true
|
|
2415
|
-
},
|
|
2416
2044
|
"ee930a68e587cff54897859095b7846cd2ee864a89a0d0e9fd833dbd1db85b82": {
|
|
2417
2045
|
"title": "All Variants",
|
|
2418
2046
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 32 }}>\n <div>\n <h3 style={{ marginBottom: 12 }}>Label Left (Default)</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>\n <Switch {...args} label=\"Label\" description=\"Description\" />\n <Switch {...args} label=\"Label\" description=\"Description\" defaultChecked />\n <Switch {...args} label=\"Label\" description=\"Description\" disabled />\n <Switch {...args} label=\"Label\" description=\"Description\" disabled defaultChecked />\n </div>\n </div>\n <div>\n <h3 style={{ marginBottom: 12 }}>Label Right</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>\n <Switch {...args} label=\"Label\" description=\"Description\" labelPlacement=\"right\" />\n <Switch {...args} label=\"Label\" description=\"Description\" labelPlacement=\"right\" defaultChecked />\n <Switch {...args} label=\"Label\" description=\"Description\" labelPlacement=\"right\" disabled />\n <Switch {...args} label=\"Label\" description=\"Description\" labelPlacement=\"right\" disabled defaultChecked />\n </div>\n </div>\n </div>",
|
|
2419
2047
|
"source": "stories",
|
|
2420
2048
|
"compilable": false
|
|
2421
2049
|
},
|
|
2422
|
-
"eebcc41c1f2c8421eb9925d8e4befdff5d0d9a0ac7ce205ace525ed07ee9f647": {
|
|
2423
|
-
"title": "Canonical usage",
|
|
2424
|
-
"code": "import type { PaginationProps } from '@1money/component-ui';",
|
|
2425
|
-
"source": "canonical",
|
|
2426
|
-
"compilable": true
|
|
2427
|
-
},
|
|
2428
|
-
"ef4db8ac914fd8f1b7ba6beb4ffdee91eb4c6541f40cad46d0d74c3e00a5d0e1": {
|
|
2429
|
-
"title": "Canonical usage",
|
|
2430
|
-
"code": "import type { SelectOption } from '@1money/component-ui';",
|
|
2431
|
-
"source": "canonical",
|
|
2432
|
-
"compilable": true
|
|
2433
|
-
},
|
|
2434
2050
|
"ef6129271a1cc811da6f293b9cb03f5514e410a9c60c0abec3e045e6376745b1": {
|
|
2435
2051
|
"title": "Canonical usage",
|
|
2436
2052
|
"code": "import { Empty } from '@1money/components-ui';\n// or\nimport { Empty } from '@1money/components-ui/Empty';",
|
|
@@ -2455,24 +2071,6 @@
|
|
|
2455
2071
|
"source": "stories",
|
|
2456
2072
|
"compilable": false
|
|
2457
2073
|
},
|
|
2458
|
-
"f02ed49d7825c626c3191734244f3e88dfbf48e8a2720ddd268229fe063b846a": {
|
|
2459
|
-
"title": "Canonical usage",
|
|
2460
|
-
"code": "import type { StepTagConfig } from '@1money/component-ui';",
|
|
2461
|
-
"source": "canonical",
|
|
2462
|
-
"compilable": true
|
|
2463
|
-
},
|
|
2464
|
-
"f065597d223dc1f13a2322f8264117765b4ffe077f96a1224d73320e187354ec": {
|
|
2465
|
-
"title": "Canonical usage",
|
|
2466
|
-
"code": "import type { SubmitterProps } from '@1money/component-ui';",
|
|
2467
|
-
"source": "canonical",
|
|
2468
|
-
"compilable": true
|
|
2469
|
-
},
|
|
2470
|
-
"f1fd9c22aed7f64f20f92113407cac7aeb1750a0623e511784dda6813e00b67e": {
|
|
2471
|
-
"title": "Canonical usage",
|
|
2472
|
-
"code": "Trigger();",
|
|
2473
|
-
"source": "canonical",
|
|
2474
|
-
"compilable": true
|
|
2475
|
-
},
|
|
2476
2074
|
"f2c3b9fe0a35d0f3e87ed98754d67b66bdf140128496a16d3ebc5ba4819068cc": {
|
|
2477
2075
|
"title": "All Variants",
|
|
2478
2076
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 32 }}>\n <div>\n <h3 style={{ marginBottom: 12 }}>Default</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <Radio label=\"Unchecked\" />\n <Radio label=\"Checked\" checked />\n <Radio label=\"Disabled unchecked\" disabled />\n <Radio label=\"Disabled checked\" checked disabled />\n </div>\n </div>\n <div>\n <h3 style={{ marginBottom: 12 }}>With Description</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <Radio label=\"Unchecked\" description=\"Helper text\" />\n <Radio label=\"Checked\" description=\"Helper text\" checked />\n <Radio\n label=\"Disabled unchecked\"\n description=\"Helper text\"\n disabled\n />\n <Radio\n label=\"Disabled checked\"\n description=\"Helper text\"\n checked\n disabled\n />\n </div>\n </div>\n <div>\n <h3 style={{ marginBottom: 12 }}>Label Placement: Right</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <Radio label=\"Unchecked\" labelPlacement=\"right\" />\n <Radio label=\"Checked\" labelPlacement=\"right\" checked />\n <Radio\n label=\"With description\"\n description=\"Helper text\"\n labelPlacement=\"right\"\n />\n </div>\n </div>\n <div>\n <h3 style={{ marginBottom: 12 }}>Cell</h3>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>\n <Radio\n checked\n variant=\"cell\"\n size=\"large\"\n alignment=\"left\"\n icon=\"swift\"\n label=\"Wire transfer\"\n description=\"Receive via SWIFT\"\n style={{ width: 320 }}\n />\n <Radio\n variant=\"cell\"\n size=\"medium\"\n alignment=\"left\"\n icon=\"usd\"\n label=\"USD1\"\n style={{ width: 180 }}\n />\n <Radio\n checked\n variant=\"cell\"\n size=\"large\"\n alignment=\"center\"\n icon=\"language\"\n tag=\"Popular\"\n label=\"Global account\"\n description=\"Use for international settlement\"\n style={{ width: 220 }}\n />\n </div>\n </div>\n </div>",
|
|
@@ -2485,12 +2083,6 @@
|
|
|
2485
2083
|
"source": "stories",
|
|
2486
2084
|
"compilable": true
|
|
2487
2085
|
},
|
|
2488
|
-
"f3e3e35db28e26c2e5f1870c2e23d646f593f798d99eda835808ea9652ed85d7": {
|
|
2489
|
-
"title": "Canonical usage",
|
|
2490
|
-
"code": "import type { TourProps } from '@1money/component-ui';",
|
|
2491
|
-
"source": "canonical",
|
|
2492
|
-
"compilable": true
|
|
2493
|
-
},
|
|
2494
2086
|
"f4820b22bbba91a3284238e73606be5b7825b28d6c345dcc4dde9b0681f61efd": {
|
|
2495
2087
|
"title": "Group Cell Directions",
|
|
2496
2088
|
"code": "{\n const [verticalValue, setVerticalValue] = React.useState<string | number>('swift');\n const [horizontalValue, setHorizontalValue] = React.useState<string | number>('swift');\n\n const options = [\n {\n value: 'swift',\n label: 'SWIFT',\n description: 'Receive via bank rails',\n icon: 'swift',\n },\n {\n value: 'global',\n label: 'Global account',\n description: 'International settlement',\n icon: 'language',\n },\n ];\n\n const handleVerticalChange = (event: RadioChangeEvent) => {\n if (event.target.value !== undefined) {\n setVerticalValue(event.target.value);\n }\n };\n\n const handleHorizontalChange = (event: RadioChangeEvent) => {\n if (event.target.value !== undefined) {\n setHorizontalValue(event.target.value);\n }\n };\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>\n <div style={{ width: 320 }}>\n <h3 style={{ marginBottom: 12 }}>Cell Direction Vertical</h3>\n <RadioGroup\n value={verticalValue}\n variant=\"cell\"\n size=\"large\"\n alignment=\"left\"\n direction=\"vertical\"\n onChange={handleVerticalChange}\n options={options}\n />\n </div>\n <div>\n <h3 style={{ marginBottom: 12 }}>Cell Direction Horizontal</h3>\n <RadioGroup\n value={horizontalValue}\n variant=\"cell\"\n size=\"large\"\n alignment=\"left\"\n direction=\"horizontal\"\n onChange={handleHorizontalChange}\n options={options}\n />\n </div>\n </div>\n );\n }",
|
|
@@ -2515,12 +2107,6 @@
|
|
|
2515
2107
|
"source": "stories",
|
|
2516
2108
|
"compilable": false
|
|
2517
2109
|
},
|
|
2518
|
-
"f54ff3b0b6680cdec37c94acb43bf7f58648670a16b6c7be3cd82ca792d177fd": {
|
|
2519
|
-
"title": "Canonical usage",
|
|
2520
|
-
"code": "import type { DropdownContent } from '@1money/component-ui';",
|
|
2521
|
-
"source": "canonical",
|
|
2522
|
-
"compilable": true
|
|
2523
|
-
},
|
|
2524
2110
|
"f573e24b6bb2a0cf68e3dba916cbc777330e61e503cca982f2c5c5633a8d0b7a": {
|
|
2525
2111
|
"title": "Usage",
|
|
2526
2112
|
"code": "// Rectangle (default)\n<Skeleton />\n<Skeleton width=\"10rem\" />\n<Skeleton width=\"10rem\" height=\"4rem\" />\n\n// Rounded\n<Skeleton borderRadius=\"16px\" />\n\n// Square\n<Skeleton size=\"3rem\" />\n\n// Circle\n<Skeleton shape=\"circle\" size=\"4rem\" />\n\n// No animation\n<Skeleton animation=\"none\" />",
|
|
@@ -2545,22 +2131,16 @@
|
|
|
2545
2131
|
"source": "stories",
|
|
2546
2132
|
"compilable": true
|
|
2547
2133
|
},
|
|
2548
|
-
"f6add1649c4e02d141bd89c9cedf782cf9bf66c617de71226b13802729c7a205": {
|
|
2549
|
-
"title": "Usage",
|
|
2550
|
-
"code": "<Upload\n mode=\"basic\"\n chooseOptions={{ label: 'Upload file', icon: () => <></> }}\n onUpload={(e) => console.log(e.files)}\n/>",
|
|
2551
|
-
"source": "readme",
|
|
2552
|
-
"compilable": true
|
|
2553
|
-
},
|
|
2554
2134
|
"f7b16782ec97c865cee1e4efd85132f308a13cf49fb00e7e75113b8db2f00476": {
|
|
2555
2135
|
"title": "Mode Edit",
|
|
2556
2136
|
"code": "<ProForm\n {...args}\n mode=\"edit\"\n initialValues={{ name: '', email: '' }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProFormText name=\"name\" label=\"Name\" rules={[{ required: true }]} />\n <ProFormText name=\"email\" label=\"Email\" />\n </ProForm>",
|
|
2557
2137
|
"source": "stories",
|
|
2558
2138
|
"compilable": false
|
|
2559
2139
|
},
|
|
2560
|
-
"
|
|
2561
|
-
"title": "
|
|
2562
|
-
"code": "import
|
|
2563
|
-
"source": "
|
|
2140
|
+
"f7c2c0a63e93844f526a49d62cfd4f5ced951213730b19e88cb69c559c39a367": {
|
|
2141
|
+
"title": "Import",
|
|
2142
|
+
"code": "import { Step } from '@1money/components-ui';\n// or\nimport { Step } from '@1money/components-ui/Step';",
|
|
2143
|
+
"source": "readme",
|
|
2564
2144
|
"compilable": true
|
|
2565
2145
|
},
|
|
2566
2146
|
"f7f96c74f982e37eb075e6bd5affd0bbcf3d63faca5bb60a1175fe7725dad87b": {
|
|
@@ -2569,16 +2149,10 @@
|
|
|
2569
2149
|
"source": "stories",
|
|
2570
2150
|
"compilable": false
|
|
2571
2151
|
},
|
|
2572
|
-
"
|
|
2573
|
-
"title": "
|
|
2574
|
-
"code": "import
|
|
2575
|
-
"source": "
|
|
2576
|
-
"compilable": true
|
|
2577
|
-
},
|
|
2578
|
-
"fa1715f659ca9bd453db3ccb6d40b47193e9dc838467b79a6a453d0b8b5aaed5": {
|
|
2579
|
-
"title": "Canonical usage",
|
|
2580
|
-
"code": "import type { ProFormValueEnumObj } from '@1money/component-ui';",
|
|
2581
|
-
"source": "canonical",
|
|
2152
|
+
"faa015d00f4f1ec9d43a4988251943c30d43285aadf14ee9d2c82d7fa4b0024f": {
|
|
2153
|
+
"title": "Import",
|
|
2154
|
+
"code": "import { Dialog } from '@1money/components-ui';\n// or\nimport { Dialog } from '@1money/components-ui/Dialog';",
|
|
2155
|
+
"source": "readme",
|
|
2582
2156
|
"compilable": true
|
|
2583
2157
|
},
|
|
2584
2158
|
"fbd87569f46a26241c78761898d378521f9b220ad8c158ad1b3f619a9043f07d": {
|
|
@@ -2587,10 +2161,10 @@
|
|
|
2587
2161
|
"source": "stories",
|
|
2588
2162
|
"compilable": false
|
|
2589
2163
|
},
|
|
2590
|
-
"
|
|
2591
|
-
"title": "
|
|
2592
|
-
"code": "
|
|
2593
|
-
"source": "
|
|
2164
|
+
"fc9a7422a1bd65a99442277ecc3a078de35b6d7347c17ebe9cd83cdf379e54a7": {
|
|
2165
|
+
"title": "Usage",
|
|
2166
|
+
"code": "const steps = [\n {\n icon: <Icons name=\"dashboard\" size={24} />,\n heading: 'Welcome to Dashboard',\n body: 'Here you can see an overview of your finances.',\n },\n {\n heading: 'Track Your Spending',\n body: 'Use the charts to monitor transactions by category.',\n },\n {\n heading: \"You're all set!\",\n body: 'Explore the rest of the app at your own pace.',\n },\n];\n\n<CoachMark\n steps={steps}\n defaultActiveStep={0}\n placement=\"top\"\n onFinish={() => console.log('Tour complete')}\n onDismiss={() => console.log('Tour dismissed')}\n/>",
|
|
2167
|
+
"source": "readme",
|
|
2594
2168
|
"compilable": true
|
|
2595
2169
|
},
|
|
2596
2170
|
"fca476fdc8a8454562178330e2ef42b7cb756bb782574109179b48b0b5f2dfcb": {
|
|
@@ -2611,12 +2185,6 @@
|
|
|
2611
2185
|
"source": "stories",
|
|
2612
2186
|
"compilable": true
|
|
2613
2187
|
},
|
|
2614
|
-
"fd353a0cfce510dee427ac20924a2b4af00ee7928140326c422816b303a11ad9": {
|
|
2615
|
-
"title": "Canonical usage",
|
|
2616
|
-
"code": "import type { SelectRenderValueMeta } from '@1money/component-ui';",
|
|
2617
|
-
"source": "canonical",
|
|
2618
|
-
"compilable": true
|
|
2619
|
-
},
|
|
2620
2188
|
"fdf213199dc6788118e3f64a9156e33557e5611b1ca721d8b7c388245959d211": {
|
|
2621
2189
|
"title": "Import",
|
|
2622
2190
|
"code": "import { Button } from '@1money/components-ui';\n// or\nimport { Button } from '@1money/components-ui/Button';",
|
|
@@ -2629,12 +2197,6 @@
|
|
|
2629
2197
|
"source": "canonical",
|
|
2630
2198
|
"compilable": true
|
|
2631
2199
|
},
|
|
2632
|
-
"fe831014a074368cace22558725ed6a61ffdfa556cec55c5284d20d0357f8e2e": {
|
|
2633
|
-
"title": "Canonical usage",
|
|
2634
|
-
"code": "import type { ProgressPlacement } from '@1money/component-ui';",
|
|
2635
|
-
"source": "canonical",
|
|
2636
|
-
"compilable": true
|
|
2637
|
-
},
|
|
2638
2200
|
"fe9b007dfbadb99c5e9b23715cac072ae441727d20418766456554881470ea68": {
|
|
2639
2201
|
"title": "Canonical usage",
|
|
2640
2202
|
"code": "import { Calendar } from '@1money/components-ui';\n// or\nimport { Calendar } from '@1money/components-ui/Calendar';",
|
|
@@ -2647,10 +2209,10 @@
|
|
|
2647
2209
|
"source": "stories",
|
|
2648
2210
|
"compilable": false
|
|
2649
2211
|
},
|
|
2650
|
-
"
|
|
2651
|
-
"title": "
|
|
2652
|
-
"code": "import
|
|
2653
|
-
"source": "
|
|
2212
|
+
"ffcdb76bb3216c346fc3ce624448bb8e51a3677f3fd96c8ed18c264f52ed6e31": {
|
|
2213
|
+
"title": "Import",
|
|
2214
|
+
"code": "import { Dropdown } from '@1money/components-ui';\n// or\nimport { Dropdown } from '@1money/components-ui/Dropdown';",
|
|
2215
|
+
"source": "readme",
|
|
2654
2216
|
"compilable": true
|
|
2655
2217
|
}
|
|
2656
2218
|
}
|