@1money/component-ui 0.0.29 → 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/Alert/Alert.js +10 -6
- package/es/components/Calendar/Calendar.js +6 -4
- package/es/components/CoachMark/CoachMark.js +4 -3
- package/es/components/Icons/Icons.d.ts +173 -8
- package/es/components/Icons/Icons.js +188 -4
- package/{lib/components/Icons/illustrations → es/components/Icons}/Illustrations.d.ts +1 -1
- package/es/components/Icons/Illustrations.js +874 -0
- package/es/components/Icons/{logos/Logo.d.ts → Logo.d.ts} +1 -1
- package/es/components/Icons/Logo.js +209 -0
- package/es/components/Icons/SVGs.d.ts +265 -0
- package/es/components/Icons/SVGs.js +1918 -0
- package/es/components/Icons/{primitives/IconWrapper.d.ts → Wrapper.d.ts} +2 -1
- package/es/components/Icons/Wrapper.js +100 -0
- package/es/components/Icons/index.d.ts +2 -5
- package/es/components/Icons/index.js +2 -6
- package/es/components/Icons/interface.d.ts +24 -9
- package/es/components/Input/Password/Password.js +6 -4
- package/es/components/Input/Search/Search.js +6 -4
- package/es/components/Navigation/NavigationLogo.js +6 -4
- package/es/components/Select/SelectFieldShell.js +4 -3
- package/es/components/Select/SelectOptionContent.js +4 -3
- package/es/components/Select/SelectSearchControl.js +4 -3
- package/es/components/Select/SelectValueContent.js +4 -3
- package/es/components/Upload/Upload.js +6 -4
- package/es/components/Upload/UploadFileBar.js +4 -3
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/lib/components/Alert/Alert.js +9 -5
- package/lib/components/Calendar/Calendar.js +5 -3
- package/lib/components/CoachMark/CoachMark.js +3 -2
- package/lib/components/Icons/Icons.d.ts +173 -8
- package/lib/components/Icons/Icons.js +183 -5
- package/{es/components/Icons/illustrations → lib/components/Icons}/Illustrations.d.ts +1 -1
- package/lib/components/Icons/Illustrations.js +881 -0
- package/lib/components/Icons/{logos/Logo.d.ts → Logo.d.ts} +1 -1
- package/lib/components/Icons/Logo.js +219 -0
- package/lib/components/Icons/SVGs.d.ts +265 -0
- package/lib/components/Icons/SVGs.js +1926 -0
- package/lib/components/Icons/{primitives/IconWrapper.d.ts → Wrapper.d.ts} +2 -1
- package/lib/components/Icons/Wrapper.js +109 -0
- package/lib/components/Icons/index.d.ts +2 -5
- package/lib/components/Icons/index.js +5 -160
- package/lib/components/Icons/interface.d.ts +24 -9
- package/lib/components/Input/Password/Password.js +5 -3
- package/lib/components/Input/Search/Search.js +5 -3
- package/lib/components/Navigation/NavigationLogo.js +5 -3
- package/lib/components/Select/SelectFieldShell.js +3 -2
- package/lib/components/Select/SelectOptionContent.js +3 -2
- package/lib/components/Select/SelectSearchControl.js +3 -2
- package/lib/components/Select/SelectValueContent.js +3 -2
- package/lib/components/Upload/Upload.js +5 -3
- package/lib/components/Upload/UploadFileBar.js +3 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -223
- package/package.json +2 -6
- package/scripts/mcp-server/examples.generated.json +288 -726
- package/scripts/mcp-server/index.generated.json +703 -3409
- package/es/components/Icons/Icon.d.ts +0 -5
- package/es/components/Icons/Icon.js +0 -19
- package/es/components/Icons/icon-set/brand.d.ts +0 -6
- package/es/components/Icons/icon-set/brand.js +0 -62
- package/es/components/Icons/icon-set/currency.d.ts +0 -7
- package/es/components/Icons/icon-set/currency.js +0 -101
- package/es/components/Icons/icon-set/dynamic.d.ts +0 -16
- package/es/components/Icons/icon-set/dynamic.js +0 -92
- package/es/components/Icons/icon-set/functional.d.ts +0 -19
- package/es/components/Icons/icon-set/functional.js +0 -286
- package/es/components/Icons/icon-set/index.d.ts +0 -10
- package/es/components/Icons/icon-set/index.js +0 -10
- package/es/components/Icons/icon-set/menu.d.ts +0 -22
- package/es/components/Icons/icon-set/menu.js +0 -372
- package/es/components/Icons/icon-set/notification.d.ts +0 -6
- package/es/components/Icons/icon-set/notification.js +0 -109
- package/es/components/Icons/icon-set/primary.d.ts +0 -14
- package/es/components/Icons/icon-set/primary.js +0 -222
- package/es/components/Icons/icon-set/registry.d.ts +0 -159
- package/es/components/Icons/icon-set/registry.js +0 -166
- package/es/components/Icons/icon-set/system.d.ts +0 -64
- package/es/components/Icons/icon-set/system.js +0 -1093
- package/es/components/Icons/illustrations/Illustrations.js +0 -874
- package/es/components/Icons/illustrations/index.d.ts +0 -2
- package/es/components/Icons/illustrations/index.js +0 -2
- package/es/components/Icons/logos/Logo.js +0 -209
- package/es/components/Icons/logos/index.d.ts +0 -2
- package/es/components/Icons/logos/index.js +0 -2
- package/es/components/Icons/primitives/IconHover.d.ts +0 -4
- package/es/components/Icons/primitives/IconHover.js +0 -28
- package/es/components/Icons/primitives/IconWrapper.js +0 -81
- package/es/components/Icons/primitives/index.d.ts +0 -5
- package/es/components/Icons/primitives/index.js +0 -5
- package/es/components/Icons/primitives/interface.d.ts +0 -25
- package/es/components/Icons/primitives/interface.js +0 -2
- package/es/components/Icons/types.d.ts +0 -3
- package/es/components/Icons/types.js +0 -2
- package/lib/components/Icons/Icon.d.ts +0 -5
- package/lib/components/Icons/Icon.js +0 -25
- package/lib/components/Icons/icon-set/brand.d.ts +0 -6
- package/lib/components/Icons/icon-set/brand.js +0 -69
- package/lib/components/Icons/icon-set/currency.d.ts +0 -7
- package/lib/components/Icons/icon-set/currency.js +0 -108
- package/lib/components/Icons/icon-set/dynamic.d.ts +0 -16
- package/lib/components/Icons/icon-set/dynamic.js +0 -99
- package/lib/components/Icons/icon-set/functional.d.ts +0 -19
- package/lib/components/Icons/icon-set/functional.js +0 -293
- package/lib/components/Icons/icon-set/index.d.ts +0 -10
- package/lib/components/Icons/icon-set/index.js +0 -783
- package/lib/components/Icons/icon-set/menu.d.ts +0 -22
- package/lib/components/Icons/icon-set/menu.js +0 -379
- package/lib/components/Icons/icon-set/notification.d.ts +0 -6
- package/lib/components/Icons/icon-set/notification.js +0 -116
- package/lib/components/Icons/icon-set/primary.d.ts +0 -14
- package/lib/components/Icons/icon-set/primary.js +0 -229
- package/lib/components/Icons/icon-set/registry.d.ts +0 -159
- package/lib/components/Icons/icon-set/registry.js +0 -172
- package/lib/components/Icons/icon-set/system.d.ts +0 -64
- package/lib/components/Icons/icon-set/system.js +0 -1100
- package/lib/components/Icons/illustrations/Illustrations.js +0 -881
- package/lib/components/Icons/illustrations/index.d.ts +0 -2
- package/lib/components/Icons/illustrations/index.js +0 -79
- package/lib/components/Icons/logos/Logo.js +0 -219
- package/lib/components/Icons/logos/index.d.ts +0 -2
- package/lib/components/Icons/logos/index.js +0 -49
- package/lib/components/Icons/primitives/IconHover.d.ts +0 -4
- package/lib/components/Icons/primitives/IconHover.js +0 -37
- package/lib/components/Icons/primitives/IconWrapper.js +0 -88
- package/lib/components/Icons/primitives/index.d.ts +0 -5
- package/lib/components/Icons/primitives/index.js +0 -25
- package/lib/components/Icons/primitives/interface.d.ts +0 -25
- package/lib/components/Icons/primitives/interface.js +0 -6
- package/lib/components/Icons/types.d.ts +0 -3
- package/lib/components/Icons/types.js +0 -8
|
@@ -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,40 +103,34 @@
|
|
|
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
|
},
|
|
154
|
-
"
|
|
155
|
-
"title": "
|
|
156
|
-
"code": "
|
|
157
|
-
"source": "
|
|
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",
|
|
158
122
|
"compilable": true
|
|
159
123
|
},
|
|
160
|
-
"
|
|
161
|
-
"title": "
|
|
162
|
-
"code": "
|
|
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>",
|
|
163
127
|
"source": "readme",
|
|
164
128
|
"compilable": true
|
|
165
129
|
},
|
|
166
|
-
"
|
|
167
|
-
"title": "
|
|
168
|
-
"code": "
|
|
169
|
-
"source": "
|
|
130
|
+
"0a72ee3d63ec85bf631eafb8407f424d82c2c3d9da1437fb18801bec174133af": {
|
|
131
|
+
"title": "Five Items",
|
|
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 />",
|
|
133
|
+
"source": "stories",
|
|
170
134
|
"compilable": true
|
|
171
135
|
},
|
|
172
136
|
"0c268f0ec6b90f7352970d3db858c53364c60f2321af3c578568fc93082425bb": {
|
|
@@ -193,24 +157,6 @@
|
|
|
193
157
|
"source": "readme",
|
|
194
158
|
"compilable": true
|
|
195
159
|
},
|
|
196
|
-
"0eccd89d4848e5f239f204a25e0a5afbc08ea70a21eb5403bc608a3da6da85ad": {
|
|
197
|
-
"title": "Canonical usage",
|
|
198
|
-
"code": "<Drawer />",
|
|
199
|
-
"source": "canonical",
|
|
200
|
-
"compilable": true
|
|
201
|
-
},
|
|
202
|
-
"0f561819e24a9b6521e16b4a9238c0250741795e0996d3dca59f7fb9a111ddf4": {
|
|
203
|
-
"title": "Canonical usage",
|
|
204
|
-
"code": "<ProFormText />",
|
|
205
|
-
"source": "canonical",
|
|
206
|
-
"compilable": true
|
|
207
|
-
},
|
|
208
|
-
"0f978c9e8cebacc672d00e70889ae1fb18b0d5a39b29dc3e53b0d53ab04aedf1": {
|
|
209
|
-
"title": "Canonical usage",
|
|
210
|
-
"code": "import type { PaginationItem } from '@1money/component-ui';",
|
|
211
|
-
"source": "canonical",
|
|
212
|
-
"compilable": true
|
|
213
|
-
},
|
|
214
160
|
"11f60c018746e51bd823c5ce8039341a2200f2e132e62e58f99f23cfe2166cbd": {
|
|
215
161
|
"title": "All Variants",
|
|
216
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>",
|
|
@@ -241,34 +187,16 @@
|
|
|
241
187
|
"source": "stories",
|
|
242
188
|
"compilable": false
|
|
243
189
|
},
|
|
244
|
-
"1549a41755f2d85818188654c648d16f6deea173c67c20999f5d5aa896204817": {
|
|
245
|
-
"title": "Canonical usage",
|
|
246
|
-
"code": "<ProFormTextArea />",
|
|
247
|
-
"source": "canonical",
|
|
248
|
-
"compilable": true
|
|
249
|
-
},
|
|
250
|
-
"159060bf345ad56b198657357005740fb6892291717bb99ada373f0a62cdcdc9": {
|
|
251
|
-
"title": "Canonical usage",
|
|
252
|
-
"code": "import type { ProgressProps } from '@1money/component-ui';",
|
|
253
|
-
"source": "canonical",
|
|
254
|
-
"compilable": true
|
|
255
|
-
},
|
|
256
190
|
"17aad2a9b23bb7f9a4768f770a9b9b5b06d74dab24c5200037505b0047ec2391": {
|
|
257
191
|
"title": "Controlled",
|
|
258
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 }",
|
|
259
193
|
"source": "stories",
|
|
260
194
|
"compilable": true
|
|
261
195
|
},
|
|
262
|
-
"
|
|
263
|
-
"title": "
|
|
264
|
-
"code": "
|
|
265
|
-
"source": "
|
|
266
|
-
"compilable": true
|
|
267
|
-
},
|
|
268
|
-
"1856eecdadbccda4468f63edff75ac60c746187efb7df1f7699540bec7ce4929": {
|
|
269
|
-
"title": "Canonical usage",
|
|
270
|
-
"code": "import type { PortalProps } from '@1money/component-ui';",
|
|
271
|
-
"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",
|
|
272
200
|
"compilable": true
|
|
273
201
|
},
|
|
274
202
|
"1ad3863a7ccae5d72cf0b223899e03501462831ed16ae711d9f497c103c00008": {
|
|
@@ -301,18 +229,18 @@
|
|
|
301
229
|
"source": "stories",
|
|
302
230
|
"compilable": false
|
|
303
231
|
},
|
|
304
|
-
"1eb0a331971caa6d8ea905cd7fb9c8e846ff5dbc535c68ea157133495806f4e7": {
|
|
305
|
-
"title": "Canonical usage",
|
|
306
|
-
"code": "import { Navigation } from '@1money/components-ui';\n// or\nimport { Navigation } from '@1money/components-ui/Navigation';",
|
|
307
|
-
"source": "canonical",
|
|
308
|
-
"compilable": true
|
|
309
|
-
},
|
|
310
232
|
"1ecd90179c2ebd2ed33c0063235f9367b50ed37a7eba1d4c6aa1973033ed554c": {
|
|
311
233
|
"title": "Multi Select",
|
|
312
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 }",
|
|
313
235
|
"source": "stories",
|
|
314
236
|
"compilable": false
|
|
315
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
|
+
},
|
|
316
244
|
"216b625401b1ee29a2c8f02427f776e18dd670858e53fd87ea414473832ba9c9": {
|
|
317
245
|
"title": "With Title",
|
|
318
246
|
"code": "<div style={ANCHOR_WRAPPER_STYLE}>\n <button id=\"tooltip-title\">Hover me</button>\n <Tooltip {...args} anchorSelect=\"#tooltip-title\" />\n </div>",
|
|
@@ -343,6 +271,12 @@
|
|
|
343
271
|
"source": "stories",
|
|
344
272
|
"compilable": false
|
|
345
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
|
+
},
|
|
346
280
|
"22701739de59f3ff8757908dd59dec110a126e3b95861d3ad523cb1552deeed7": {
|
|
347
281
|
"title": "All Variants",
|
|
348
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>",
|
|
@@ -379,12 +313,6 @@
|
|
|
379
313
|
"source": "stories",
|
|
380
314
|
"compilable": false
|
|
381
315
|
},
|
|
382
|
-
"25966efe47cbb331081aa62151a5d80e7324bfce0b4a1b82e323559d9349cd54": {
|
|
383
|
-
"title": "Canonical usage",
|
|
384
|
-
"code": "<Select />",
|
|
385
|
-
"source": "canonical",
|
|
386
|
-
"compilable": true
|
|
387
|
-
},
|
|
388
316
|
"259f23e43a9bab9ac08664151900a9dc9f3cc181adccdacc7a28bd34ab37be7e": {
|
|
389
317
|
"title": "Form Layout Patterns",
|
|
390
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>",
|
|
@@ -403,12 +331,6 @@
|
|
|
403
331
|
"source": "stories",
|
|
404
332
|
"compilable": false
|
|
405
333
|
},
|
|
406
|
-
"25f9f9086f93b5fe128992d1c388b0c9cd77df643010c4c5cc403527a80b7528": {
|
|
407
|
-
"title": "Canonical usage",
|
|
408
|
-
"code": "<QueryFilter />",
|
|
409
|
-
"source": "canonical",
|
|
410
|
-
"compilable": true
|
|
411
|
-
},
|
|
412
334
|
"26594eacf431540e6380fac7c7ff44f09d414de2052860d55187217317c0cbb1": {
|
|
413
335
|
"title": "Field Set",
|
|
414
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>",
|
|
@@ -445,46 +367,40 @@
|
|
|
445
367
|
"source": "readme",
|
|
446
368
|
"compilable": true
|
|
447
369
|
},
|
|
448
|
-
"
|
|
449
|
-
"title": "
|
|
450
|
-
"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>",
|
|
451
373
|
"source": "readme",
|
|
452
374
|
"compilable": true
|
|
453
375
|
},
|
|
454
|
-
"
|
|
455
|
-
"title": "
|
|
456
|
-
"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>",
|
|
457
379
|
"source": "readme",
|
|
458
380
|
"compilable": true
|
|
459
381
|
},
|
|
460
|
-
"
|
|
382
|
+
"29a8d3d4fdc2b1b61574ec8e8a8a2ffb57226781120cdc378f8d179d101a0032": {
|
|
461
383
|
"title": "Canonical usage",
|
|
462
|
-
"code": "import
|
|
384
|
+
"code": "import { Tour } from '@1money/components-ui';\n// or\nimport { Tour } from '@1money/components-ui/Tour';",
|
|
463
385
|
"source": "canonical",
|
|
464
386
|
"compilable": true
|
|
465
387
|
},
|
|
466
|
-
"
|
|
467
|
-
"title": "
|
|
468
|
-
"code": "
|
|
469
|
-
"source": "
|
|
470
|
-
"compilable": true
|
|
471
|
-
},
|
|
472
|
-
"2c58c83426bf77e0fd761deff8e74853f41c3213c0b293c97d142554dca062bc": {
|
|
473
|
-
"title": "Canonical usage",
|
|
474
|
-
"code": "<ResizeObserver>Label</ResizeObserver>",
|
|
475
|
-
"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",
|
|
476
392
|
"compilable": true
|
|
477
393
|
},
|
|
478
|
-
"
|
|
394
|
+
"2a00b4740e301b8a7ac79f978053cc5d0d9e28704a3496719ce12b34448697d2": {
|
|
479
395
|
"title": "Import",
|
|
480
|
-
"code": "import {
|
|
396
|
+
"code": "import { Accordion } from '@1money/components-ui';\n// or\nimport { Accordion } from '@1money/components-ui/Accordion';",
|
|
481
397
|
"source": "readme",
|
|
482
398
|
"compilable": true
|
|
483
399
|
},
|
|
484
|
-
"
|
|
485
|
-
"title": "
|
|
486
|
-
"code": "
|
|
487
|
-
"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",
|
|
488
404
|
"compilable": true
|
|
489
405
|
},
|
|
490
406
|
"2db7958f91085606312d3dea5983e6a87724bdaaaeb755893810034b5be459a2": {
|
|
@@ -493,24 +409,12 @@
|
|
|
493
409
|
"source": "readme",
|
|
494
410
|
"compilable": true
|
|
495
411
|
},
|
|
496
|
-
"2e38eb2bbde2587fea5af46f3c34d8b7b9a3bc7951fa044bcd363a4ce3812a47": {
|
|
497
|
-
"title": "Canonical usage",
|
|
498
|
-
"code": "import type { StepProps } from '@1money/component-ui';",
|
|
499
|
-
"source": "canonical",
|
|
500
|
-
"compilable": true
|
|
501
|
-
},
|
|
502
412
|
"2f65549d43490603034b9f30beadb2efd27c2c0f454242a54f434f213d051491": {
|
|
503
413
|
"title": "Omit Nil",
|
|
504
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>",
|
|
505
415
|
"source": "stories",
|
|
506
416
|
"compilable": false
|
|
507
417
|
},
|
|
508
|
-
"2f6710b655bb5d7c4adb4aa08f77909913d90ba3a32d1fea39ab8604ddc2f8f5": {
|
|
509
|
-
"title": "Canonical usage",
|
|
510
|
-
"code": "import type { SelectSingleValue } from '@1money/component-ui';",
|
|
511
|
-
"source": "canonical",
|
|
512
|
-
"compilable": true
|
|
513
|
-
},
|
|
514
418
|
"31dd5c9e926c0deeefba1a4028848b13ee819e42fbdf5ba0438329ffa1907e66": {
|
|
515
419
|
"title": "Width Presets",
|
|
516
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>",
|
|
@@ -529,10 +433,10 @@
|
|
|
529
433
|
"source": "stories",
|
|
530
434
|
"compilable": true
|
|
531
435
|
},
|
|
532
|
-
"
|
|
533
|
-
"title": "
|
|
534
|
-
"code": "
|
|
535
|
-
"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",
|
|
536
440
|
"compilable": true
|
|
537
441
|
},
|
|
538
442
|
"34536f5f5abc20bc7255387d21700a4725ea8d6f9806b09cb947375f7afde43c": {
|
|
@@ -577,6 +481,12 @@
|
|
|
577
481
|
"source": "readme",
|
|
578
482
|
"compilable": true
|
|
579
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
|
+
},
|
|
580
490
|
"36cbaf7aab4a01a5e1c94430f29c9f8881ec84e60dac84ca5c2e32cb25e14ae5": {
|
|
581
491
|
"title": "Usage",
|
|
582
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/>",
|
|
@@ -589,12 +499,6 @@
|
|
|
589
499
|
"source": "readme",
|
|
590
500
|
"compilable": true
|
|
591
501
|
},
|
|
592
|
-
"371e24636c998f789b2003ee3f8097874e1ad9274d29b7fc059202d33c4ed68e": {
|
|
593
|
-
"title": "Preferred Usage",
|
|
594
|
-
"code": "// Static JSX: preferred\n<CrossIcon size={16} />\n<LogoWithWords width={132} height={24} logoColor=\"#073387\" wordColor=\"#131313\" />\n\n// Dynamic runtime dispatch\n<Icon name=\"cross\" size={16} />\n\n// Backward-compatible wrapper\n<Icons name=\"depositFiatCrypto\" size={16} />",
|
|
595
|
-
"source": "readme",
|
|
596
|
-
"compilable": true
|
|
597
|
-
},
|
|
598
502
|
"3836a143b0bc0c3df0917e6d83e399c700a858b3e0cf7703a8417090067c3088": {
|
|
599
503
|
"title": "Default",
|
|
600
504
|
"code": "<Switch {...args} label=\"Label\" />",
|
|
@@ -619,10 +523,10 @@
|
|
|
619
523
|
"source": "stories",
|
|
620
524
|
"compilable": true
|
|
621
525
|
},
|
|
622
|
-
"
|
|
623
|
-
"title": "
|
|
624
|
-
"code": "
|
|
625
|
-
"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",
|
|
626
530
|
"compilable": true
|
|
627
531
|
},
|
|
628
532
|
"3b416ca019f27f4a1d80ae5a1bbafa8b6b9d196ebbdbf9df77bbd8d7c4118934": {
|
|
@@ -661,12 +565,6 @@
|
|
|
661
565
|
"source": "canonical",
|
|
662
566
|
"compilable": true
|
|
663
567
|
},
|
|
664
|
-
"3fed6ca7982c867ccd1b2b58023950f8365462d92b44c75722551d4d3127c8bb": {
|
|
665
|
-
"title": "Canonical usage",
|
|
666
|
-
"code": "import type { DialogSize } from '@1money/component-ui';",
|
|
667
|
-
"source": "canonical",
|
|
668
|
-
"compilable": true
|
|
669
|
-
},
|
|
670
568
|
"40a22244886d5bdbd3ed0c2eeccc5859897c73c7f35ce9d0b27a7a9547709f28": {
|
|
671
569
|
"title": "Import",
|
|
672
570
|
"code": "import { Tag } from '@1money/components-ui';\n// or\nimport { Tag } from '@1money/components-ui/Tag';",
|
|
@@ -679,24 +577,12 @@
|
|
|
679
577
|
"source": "stories",
|
|
680
578
|
"compilable": true
|
|
681
579
|
},
|
|
682
|
-
"4186c0d2b90dd549d7f6497e4b7fb0b101654305b0e3e128cd0f1d6ca78bfb2a": {
|
|
683
|
-
"title": "Canonical usage",
|
|
684
|
-
"code": "import type { ValidateStatus } from '@1money/component-ui';",
|
|
685
|
-
"source": "canonical",
|
|
686
|
-
"compilable": true
|
|
687
|
-
},
|
|
688
580
|
"41c91bf415fa7b2b7fcfbba49136e2254bcf778a33e916d12446e042629a0943": {
|
|
689
581
|
"title": "Canonical usage",
|
|
690
582
|
"code": "import { Switch } from '@1money/components-ui';\n// or\nimport { Switch } from '@1money/components-ui/Switch';",
|
|
691
583
|
"source": "canonical",
|
|
692
584
|
"compilable": true
|
|
693
585
|
},
|
|
694
|
-
"421c6af797703e115fd55a10242e5ac801283d4eb80d5409fc997c7d9c730393": {
|
|
695
|
-
"title": "Canonical usage",
|
|
696
|
-
"code": "import type { ProFormGroupProps } from '@1money/component-ui';",
|
|
697
|
-
"source": "canonical",
|
|
698
|
-
"compilable": true
|
|
699
|
-
},
|
|
700
586
|
"42d09791892e2a4de1863d920b4d11b5c83b30770a9775f63645e3291eb98416": {
|
|
701
587
|
"title": "Custom Submitter",
|
|
702
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>",
|
|
@@ -709,18 +595,6 @@
|
|
|
709
595
|
"source": "canonical",
|
|
710
596
|
"compilable": true
|
|
711
597
|
},
|
|
712
|
-
"4382388bcd674e464f60d818049720fa134a38574be7255cff59425e9d027d63": {
|
|
713
|
-
"title": "Canonical usage",
|
|
714
|
-
"code": "import type { FormSize } from '@1money/component-ui';",
|
|
715
|
-
"source": "canonical",
|
|
716
|
-
"compilable": true
|
|
717
|
-
},
|
|
718
|
-
"4389223d4dd418331dd628d1bb657512018df7b6124067044b1b577c26853c32": {
|
|
719
|
-
"title": "Canonical usage",
|
|
720
|
-
"code": "<Dialog />",
|
|
721
|
-
"source": "canonical",
|
|
722
|
-
"compilable": true
|
|
723
|
-
},
|
|
724
598
|
"43cb69594b17d8f71ddb9912efb8eea26ee52cf45990ef9f7a2212c0694b0811": {
|
|
725
599
|
"title": "Dashed",
|
|
726
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>",
|
|
@@ -733,12 +607,6 @@
|
|
|
733
607
|
"source": "canonical",
|
|
734
608
|
"compilable": true
|
|
735
609
|
},
|
|
736
|
-
"43e86173eaa57a1ad76a23b43ba3b90b40e118c2d4885e13b759adc68c95f5a8": {
|
|
737
|
-
"title": "Canonical usage",
|
|
738
|
-
"code": "import type { ProFormFormInstance } from '@1money/component-ui';",
|
|
739
|
-
"source": "canonical",
|
|
740
|
-
"compilable": true
|
|
741
|
-
},
|
|
742
610
|
"44c4b25e35236d2eaf4d26824badf330c6495194077c815a662b000591be91be": {
|
|
743
611
|
"title": "Multiple Collapsed",
|
|
744
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 }",
|
|
@@ -757,58 +625,34 @@
|
|
|
757
625
|
"source": "stories",
|
|
758
626
|
"compilable": false
|
|
759
627
|
},
|
|
760
|
-
"459fb4fed33834539f12047eb8791c8c459888b43df3cfa51c852237d244b1b1": {
|
|
761
|
-
"title": "Canonical usage",
|
|
762
|
-
"code": "createProFormField(config);",
|
|
763
|
-
"source": "canonical",
|
|
764
|
-
"compilable": true
|
|
765
|
-
},
|
|
766
628
|
"466a2cf763ac1374c62583da68c81d15d8aece066ae06417d6a4356855606954": {
|
|
767
629
|
"title": "With Badges",
|
|
768
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 />",
|
|
769
631
|
"source": "stories",
|
|
770
632
|
"compilable": true
|
|
771
633
|
},
|
|
772
|
-
"4831602e1843344ccb14281ad853e240d2d5c1c2010be19cf091cacd678e6eda": {
|
|
773
|
-
"title": "Canonical usage",
|
|
774
|
-
"code": "import type { UsePaginationOptions } from '@1money/component-ui';",
|
|
775
|
-
"source": "canonical",
|
|
776
|
-
"compilable": true
|
|
777
|
-
},
|
|
778
634
|
"4844dfaf4dff931b3d5b14135a788fc632daa05669c14237139b0a15e6d1a793": {
|
|
779
635
|
"title": "Click Trigger",
|
|
780
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>",
|
|
781
637
|
"source": "stories",
|
|
782
638
|
"compilable": false
|
|
783
639
|
},
|
|
784
|
-
"487a87a540c310c3a95d1656126aa0686d4ce8932394b10ef7be463bd2139b11": {
|
|
785
|
-
"title": "Canonical usage",
|
|
786
|
-
"code": "import type { FormLayout } from '@1money/component-ui';",
|
|
787
|
-
"source": "canonical",
|
|
788
|
-
"compilable": true
|
|
789
|
-
},
|
|
790
640
|
"48f6ebde7546d7db844b0cd43bd6e6ec6956746f93c55167fda6a2cd84599a3e": {
|
|
791
641
|
"title": "No Animation",
|
|
792
642
|
"code": "<Segment items={DEFAULT_ITEMS} animated={false} />",
|
|
793
643
|
"source": "stories",
|
|
794
644
|
"compilable": true
|
|
795
645
|
},
|
|
796
|
-
"4925f0fa31e738cbe6dcf51caa4529687907afbd4c5d75a2b6babee74973dcb6": {
|
|
797
|
-
"title": "Canonical usage",
|
|
798
|
-
"code": "import type { Rule } from '@1money/component-ui';",
|
|
799
|
-
"source": "canonical",
|
|
800
|
-
"compilable": true
|
|
801
|
-
},
|
|
802
646
|
"4946413c8eb03c3d0ed457a33ffdb8dfdef55dfe7f8f8440b878a1ae2be1c46a": {
|
|
803
647
|
"title": "With Default Value",
|
|
804
648
|
"code": "<Segment defaultValue=\"transactions\" items={DEFAULT_ITEMS} />",
|
|
805
649
|
"source": "stories",
|
|
806
650
|
"compilable": true
|
|
807
651
|
},
|
|
808
|
-
"
|
|
809
|
-
"title": "
|
|
810
|
-
"code": "
|
|
811
|
-
"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",
|
|
812
656
|
"compilable": true
|
|
813
657
|
},
|
|
814
658
|
"49ad060bce26c0a2bb20e2d9487869063f8aa30ca5cff68d8bbb108fbeef29a1": {
|
|
@@ -817,12 +661,6 @@
|
|
|
817
661
|
"source": "readme",
|
|
818
662
|
"compilable": true
|
|
819
663
|
},
|
|
820
|
-
"49c72f97a10ef34333a88507a7d9e8e5bb582173ce599c9b9a2aae31efedb1e1": {
|
|
821
|
-
"title": "Inline Loading",
|
|
822
|
-
"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>",
|
|
823
|
-
"source": "readme",
|
|
824
|
-
"compilable": true
|
|
825
|
-
},
|
|
826
664
|
"49d5f7314ab1ae951fe87a5f276d65d91c81daf6f489b93cffa522dab5fa7054": {
|
|
827
665
|
"title": "Sizes",
|
|
828
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>",
|
|
@@ -841,16 +679,10 @@
|
|
|
841
679
|
"source": "stories",
|
|
842
680
|
"compilable": false
|
|
843
681
|
},
|
|
844
|
-
"
|
|
845
|
-
"title": "
|
|
846
|
-
"code": "
|
|
847
|
-
"source": "
|
|
848
|
-
"compilable": true
|
|
849
|
-
},
|
|
850
|
-
"4aa25969f149eda32514cc530fb2b8fceabc54fcbf63b87641b7cfd13f967bda": {
|
|
851
|
-
"title": "Canonical usage",
|
|
852
|
-
"code": "<ProFormRadioGroup />",
|
|
853
|
-
"source": "canonical",
|
|
682
|
+
"4a5e5cef011be8e4312b7e27e13d519193ffe35d681413267098a0f06182c9d9": {
|
|
683
|
+
"title": "Basic Usage",
|
|
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} />",
|
|
685
|
+
"source": "readme",
|
|
854
686
|
"compilable": true
|
|
855
687
|
},
|
|
856
688
|
"4ad4837cde91f1ebd2cad90d6f82683fd94957192e4b88fa46882aac2330b854": {
|
|
@@ -865,15 +697,21 @@
|
|
|
865
697
|
"source": "stories",
|
|
866
698
|
"compilable": false
|
|
867
699
|
},
|
|
868
|
-
"
|
|
869
|
-
"title": "
|
|
870
|
-
"code": "import
|
|
871
|
-
"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",
|
|
872
710
|
"compilable": true
|
|
873
711
|
},
|
|
874
|
-
"
|
|
712
|
+
"4e47a5538f745fc8cf26d22a91bc3e95fda46600baf715b49e208804b00e3049": {
|
|
875
713
|
"title": "Canonical usage",
|
|
876
|
-
"code": "import
|
|
714
|
+
"code": "import { Table, VirtualTable } from '@1money/components-ui';\n// or\nimport { Table, VirtualTable } from '@1money/components-ui/Table';",
|
|
877
715
|
"source": "canonical",
|
|
878
716
|
"compilable": true
|
|
879
717
|
},
|
|
@@ -889,18 +727,6 @@
|
|
|
889
727
|
"source": "canonical",
|
|
890
728
|
"compilable": true
|
|
891
729
|
},
|
|
892
|
-
"528ab6afb943c07fe6e0c68fe3bda683e292529a705bd2d968f4c5dfed7e3a83": {
|
|
893
|
-
"title": "Canonical usage",
|
|
894
|
-
"code": "import type { PaginationControlItem } from '@1money/component-ui';",
|
|
895
|
-
"source": "canonical",
|
|
896
|
-
"compilable": true
|
|
897
|
-
},
|
|
898
|
-
"52b3c46129e939dcab127c033e5069b7027eeec39a253fe8741b74807b6de599": {
|
|
899
|
-
"title": "Canonical usage",
|
|
900
|
-
"code": "<ProFormPassword />",
|
|
901
|
-
"source": "canonical",
|
|
902
|
-
"compilable": true
|
|
903
|
-
},
|
|
904
730
|
"52e49c0728ddadda69ef98366ad789e66211d87acbb7ca43af959df87ec0767b": {
|
|
905
731
|
"title": "Event Shape",
|
|
906
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};",
|
|
@@ -913,12 +739,6 @@
|
|
|
913
739
|
"source": "readme",
|
|
914
740
|
"compilable": true
|
|
915
741
|
},
|
|
916
|
-
"546ef2d886471f0e410921f3ca3fa1ec2db5d4bed5ff1902bc190d0d87c75054": {
|
|
917
|
-
"title": "Canonical usage",
|
|
918
|
-
"code": "<ProFormDatePicker />",
|
|
919
|
-
"source": "canonical",
|
|
920
|
-
"compilable": true
|
|
921
|
-
},
|
|
922
742
|
"5545418d49fc7cdc897ea3ab29b0c7e5326b5e6a7321eec41eece864275198a0": {
|
|
923
743
|
"title": "All Variants",
|
|
924
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>",
|
|
@@ -943,12 +763,6 @@
|
|
|
943
763
|
"source": "stories",
|
|
944
764
|
"compilable": false
|
|
945
765
|
},
|
|
946
|
-
"57555cab23c1ab39cfa023e9e3f6cec2998ddc9537a47354aa1cf1fd14488461": {
|
|
947
|
-
"title": "Canonical usage",
|
|
948
|
-
"code": "import type { ProgressFormatContext } from '@1money/component-ui';",
|
|
949
|
-
"source": "canonical",
|
|
950
|
-
"compilable": true
|
|
951
|
-
},
|
|
952
766
|
"57e5a7e81ccfa1d876cf40e95b6165f9d630fe343bc29dbb15c3fe546e689e62": {
|
|
953
767
|
"title": "Default",
|
|
954
768
|
"code": "<div style={wrapperStyle}>\n <Step {...args} />\n </div>",
|
|
@@ -961,16 +775,10 @@
|
|
|
961
775
|
"source": "stories",
|
|
962
776
|
"compilable": false
|
|
963
777
|
},
|
|
964
|
-
"
|
|
965
|
-
"title": "
|
|
966
|
-
"code": "<
|
|
967
|
-
"source": "
|
|
968
|
-
"compilable": true
|
|
969
|
-
},
|
|
970
|
-
"5a9b5ddd9a26199701d3d3f2307a6ad3b964f66d5fdbfd30efdbbf8aba0c2c80": {
|
|
971
|
-
"title": "Canonical usage",
|
|
972
|
-
"code": "<ProFormSlider />",
|
|
973
|
-
"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",
|
|
974
782
|
"compilable": true
|
|
975
783
|
},
|
|
976
784
|
"5b6b616e8d95d382632b332591de2af84de98f77720ee5b0628d3a44feff076a": {
|
|
@@ -979,18 +787,18 @@
|
|
|
979
787
|
"source": "stories",
|
|
980
788
|
"compilable": false
|
|
981
789
|
},
|
|
982
|
-
"5ba789cfffb9110e9a147117959a6e59585384a46fa350d42dedc8e0857f1821": {
|
|
983
|
-
"title": "Canonical usage",
|
|
984
|
-
"code": "<ProFormUpload />",
|
|
985
|
-
"source": "canonical",
|
|
986
|
-
"compilable": true
|
|
987
|
-
},
|
|
988
790
|
"5bbda57b2d06dfefaed853ba5ad655bb306fd8ecfbc92a6a96dee1deffc1af2f": {
|
|
989
791
|
"title": "With Content",
|
|
990
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 />",
|
|
991
793
|
"source": "stories",
|
|
992
794
|
"compilable": true
|
|
993
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
|
+
},
|
|
994
802
|
"5c8961675725144291340a7560c3c798389ce24d786783dedd6ffcac93193a0d": {
|
|
995
803
|
"title": "Batch Resize",
|
|
996
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 }",
|
|
@@ -1009,12 +817,6 @@
|
|
|
1009
817
|
"source": "stories",
|
|
1010
818
|
"compilable": true
|
|
1011
819
|
},
|
|
1012
|
-
"5eab08235fada880deb893a45f8e307f765861578cd95522dc38da0053be3353": {
|
|
1013
|
-
"title": "Canonical usage",
|
|
1014
|
-
"code": "import type { PaginationEllipsisItem } from '@1money/component-ui';",
|
|
1015
|
-
"source": "canonical",
|
|
1016
|
-
"compilable": true
|
|
1017
|
-
},
|
|
1018
820
|
"5f3b6d99f2f042d7c984a9f73cb179167b6c80cfbd3c106d1c96ecc86ba1a888": {
|
|
1019
821
|
"title": "Cell States",
|
|
1020
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>",
|
|
@@ -1033,18 +835,6 @@
|
|
|
1033
835
|
"source": "readme",
|
|
1034
836
|
"compilable": true
|
|
1035
837
|
},
|
|
1036
|
-
"5fe4eaf6d6cc1aae1c57021991c5791efa10197d77e9fee4d8d3ad0301ed09b2": {
|
|
1037
|
-
"title": "Canonical usage",
|
|
1038
|
-
"code": "const result = usePagination(options);",
|
|
1039
|
-
"source": "canonical",
|
|
1040
|
-
"compilable": true
|
|
1041
|
-
},
|
|
1042
|
-
"600b7c61c09e62351c4da01ba0451212e347f76292d57d62d472809568ab33f1": {
|
|
1043
|
-
"title": "Canonical usage",
|
|
1044
|
-
"code": "const result = useResizeObserver(enabled, getTarget);",
|
|
1045
|
-
"source": "canonical",
|
|
1046
|
-
"compilable": true
|
|
1047
|
-
},
|
|
1048
838
|
"605adda93170929ef763469422e3708f248624774e5274b6053c7aa0c53b9680": {
|
|
1049
839
|
"title": "Action And Close",
|
|
1050
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 />",
|
|
@@ -1081,6 +871,12 @@
|
|
|
1081
871
|
"source": "stories",
|
|
1082
872
|
"compilable": true
|
|
1083
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
|
+
},
|
|
1084
880
|
"66d442fc9388c014800dbcc672d9dae750c1529fd05f0b26e8f4dbf091abd20b": {
|
|
1085
881
|
"title": "Visual Spec",
|
|
1086
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>",
|
|
@@ -1105,6 +901,12 @@
|
|
|
1105
901
|
"source": "stories",
|
|
1106
902
|
"compilable": false
|
|
1107
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
|
+
},
|
|
1108
910
|
"6c73541844cb6bb287f5a4f0c9d25be0cbdd0d09518b1abd0c49b8d738ddfaa8": {
|
|
1109
911
|
"title": "Import",
|
|
1110
912
|
"code": "import { Spinner } from '@1money/components-ui';\n// or\nimport { Spinner } from '@1money/components-ui/Spinner';",
|
|
@@ -1117,22 +919,34 @@
|
|
|
1117
919
|
"source": "readme",
|
|
1118
920
|
"compilable": true
|
|
1119
921
|
},
|
|
1120
|
-
"
|
|
1121
|
-
"title": "
|
|
1122
|
-
"code": "
|
|
1123
|
-
"source": "
|
|
1124
|
-
"compilable":
|
|
1125
|
-
},
|
|
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
|
+
},
|
|
934
|
+
"6f2b7da00479a6033fdaca36f0646a924c61cbf09cd0e07da6948a884af98a61": {
|
|
935
|
+
"title": "Dependency",
|
|
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>",
|
|
937
|
+
"source": "stories",
|
|
938
|
+
"compilable": false
|
|
939
|
+
},
|
|
1126
940
|
"701f468e63d72f0fe836f011aae7941f7202835fe80f43ae13f529a130c5a505": {
|
|
1127
941
|
"title": "Semantic Tags",
|
|
1128
942
|
"code": "<div style={STORY_LAYOUT_STYLE}>\n <Typography.Display size=\"sm\" as=\"h1\">\n Display rendered as h1\n </Typography.Display>\n <Typography.Headline size=\"md\" as=\"h2\">\n Headline rendered as h2\n </Typography.Headline>\n <Typography.Title size=\"lg\" as=\"h3\">\n Title rendered as h3\n </Typography.Title>\n <Typography.Body size=\"md\" as=\"p\">\n Body rendered as p for longer narrative content.\n </Typography.Body>\n <Typography.Label size=\"sm\" htmlFor=\"typography-story-input\">\n Email address\n </Typography.Label>\n <input id=\"typography-story-input\" placeholder=\"Input target for label\" />\n </div>",
|
|
1129
943
|
"source": "stories",
|
|
1130
944
|
"compilable": true
|
|
1131
945
|
},
|
|
1132
|
-
"
|
|
1133
|
-
"title": "
|
|
1134
|
-
"code": "
|
|
1135
|
-
"source": "
|
|
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",
|
|
1136
950
|
"compilable": true
|
|
1137
951
|
},
|
|
1138
952
|
"71f7aeb8fd7bb546bc7d562a717683681d8eccf7f2beeee86e3196121d6656f1": {
|
|
@@ -1141,6 +955,12 @@
|
|
|
1141
955
|
"source": "stories",
|
|
1142
956
|
"compilable": false
|
|
1143
957
|
},
|
|
958
|
+
"724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5": {
|
|
959
|
+
"title": "Canonical usage",
|
|
960
|
+
"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';",
|
|
961
|
+
"source": "canonical",
|
|
962
|
+
"compilable": true
|
|
963
|
+
},
|
|
1144
964
|
"72e53f1f60724efcfebfca8207585573799139c8895777a6a6d283673008ba74": {
|
|
1145
965
|
"title": "Import",
|
|
1146
966
|
"code": "import { CoachMark } from '@1money/components-ui';\n// or\nimport { CoachMark } from '@1money/components-ui/CoachMark';",
|
|
@@ -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} />",
|
|
@@ -1477,18 +1243,18 @@
|
|
|
1477
1243
|
"source": "readme",
|
|
1478
1244
|
"compilable": true
|
|
1479
1245
|
},
|
|
1246
|
+
"90952e793cfea81bc8613eaed2e1b60208c06b4e98ce6f0cc5a254619af9e93f": {
|
|
1247
|
+
"title": "Illustrations",
|
|
1248
|
+
"code": "// Old (still works)\nimport { Deprecated } from '@1money/components-ui';\n<Deprecated name=\"old-icon-name\" />\n\n// New (recommended)\nimport { Icons } from '@1money/components-ui';\n<Icons name=\"new-icon-name\" />",
|
|
1249
|
+
"source": "readme",
|
|
1250
|
+
"compilable": true
|
|
1251
|
+
},
|
|
1480
1252
|
"90bea0eac958ff92526a0901cd2515a8694e96039b3d056e709ede70bd1b4678": {
|
|
1481
1253
|
"title": "Search Only Filtered",
|
|
1482
1254
|
"code": "{\n const [value, setValue] = useState<string | number | undefined>(undefined);\n const [searchValue, setSearchValue] = useState('');\n\n const trimmed = searchValue.trim().toLowerCase();\n const filteredOptions = trimmed\n ? ASSET_OPTIONS.filter((option) => {\n const label = String(option.label).toLowerCase();\n const description = String(option.description ?? '').toLowerCase();\n const optionValue = String(option.value).toLowerCase();\n return (\n label.includes(trimmed) ||\n description.includes(trimmed) ||\n optionValue.includes(trimmed)\n );\n })\n : [];\n\n return (\n <div style={storyContainerStyle}>\n <Select\n {...args}\n value={value}\n options={filteredOptions}\n searchValue={searchValue}\n emptyContent={trimmed ? 'No matches' : 'Type to search assets'}\n onSearchChange={(next) => {\n setSearchValue(next);\n args.onSearchChange?.(next);\n }}\n onChange={(nextValue, option) => {\n setValue(nextValue as string | number | undefined);\n args.onChange?.(nextValue, option);\n }}\n />\n </div>\n );\n }",
|
|
1483
1255
|
"source": "stories",
|
|
1484
1256
|
"compilable": false
|
|
1485
1257
|
},
|
|
1486
|
-
"92884b0ad016e0b0699fc547bc92043837674393d2d601ebe0fc0aa31ced6498": {
|
|
1487
|
-
"title": "Canonical usage",
|
|
1488
|
-
"code": "<Tour open steps={[]} onClose={() => {}} />",
|
|
1489
|
-
"source": "canonical",
|
|
1490
|
-
"compilable": true
|
|
1491
|
-
},
|
|
1492
1258
|
"92d700fd2da1bf06587fe4c86118bff9b3b4b42eb3ec5a4c9a790f7ac8950ff6": {
|
|
1493
1259
|
"title": "Illustrations",
|
|
1494
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 }",
|
|
@@ -1501,12 +1267,6 @@
|
|
|
1501
1267
|
"source": "canonical",
|
|
1502
1268
|
"compilable": true
|
|
1503
1269
|
},
|
|
1504
|
-
"93b1291462e3499dc53cfc59ff3a287c0beb68213b4eb563c88cc64ce2158ba8": {
|
|
1505
|
-
"title": "Canonical usage",
|
|
1506
|
-
"code": "import type { ProFormColProps } from '@1money/component-ui';",
|
|
1507
|
-
"source": "canonical",
|
|
1508
|
-
"compilable": true
|
|
1509
|
-
},
|
|
1510
1270
|
"93b8b9acce6685bc6f00a21f857fc812e41fb754d3e946d7576e2543f056f1c0": {
|
|
1511
1271
|
"title": "Canonical usage",
|
|
1512
1272
|
"code": "import { Upload, UploadFileBar } from '@1money/components-ui';\n// or\nimport { Upload, UploadFileBar } from '@1money/components-ui/Upload';",
|
|
@@ -1555,18 +1315,6 @@
|
|
|
1555
1315
|
"source": "stories",
|
|
1556
1316
|
"compilable": false
|
|
1557
1317
|
},
|
|
1558
|
-
"96f9cfe7a3579cf1c7ff57afe66be83040e23794844ce4d35758cae32e1c7cdb": {
|
|
1559
|
-
"title": "Usage",
|
|
1560
|
-
"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/>",
|
|
1561
|
-
"source": "readme",
|
|
1562
|
-
"compilable": true
|
|
1563
|
-
},
|
|
1564
|
-
"97683a3f5c99b99a2b9a054edbee9d66d751fcb9ce9361898434af338708d3c9": {
|
|
1565
|
-
"title": "Canonical usage",
|
|
1566
|
-
"code": "<Step items={[]} />",
|
|
1567
|
-
"source": "canonical",
|
|
1568
|
-
"compilable": true
|
|
1569
|
-
},
|
|
1570
1318
|
"97c44f1fee50bdc6a2d6a8cb4b7c56c51a2997d2ea78b3647cce7b0c249f6f8c": {
|
|
1571
1319
|
"title": "Import",
|
|
1572
1320
|
"code": "import { Tooltip } from '@1money/components-ui';\n// or\nimport { Tooltip } from '@1money/components-ui/Tooltip';",
|
|
@@ -1579,6 +1327,12 @@
|
|
|
1579
1327
|
"source": "readme",
|
|
1580
1328
|
"compilable": true
|
|
1581
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
|
+
},
|
|
1582
1336
|
"9856c3fcdf26046e1e631b2aeb36d7da1f1f316ddb5a33f17c71a0434111aea0": {
|
|
1583
1337
|
"title": "Default",
|
|
1584
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 }",
|
|
@@ -1603,12 +1357,6 @@
|
|
|
1603
1357
|
"source": "readme",
|
|
1604
1358
|
"compilable": true
|
|
1605
1359
|
},
|
|
1606
|
-
"9a5aa0a4875e686c1a64a1085ed22b25ebf5849ebf8bf0cd0fb6376c887729ab": {
|
|
1607
|
-
"title": "Canonical usage",
|
|
1608
|
-
"code": "<DrawerForm />",
|
|
1609
|
-
"source": "canonical",
|
|
1610
|
-
"compilable": true
|
|
1611
|
-
},
|
|
1612
1360
|
"9a6b2f4b0ce1fdea4c73f1f9ea0d1471dc97d3dd7783c798b6b99ddc7f3bf15c": {
|
|
1613
1361
|
"title": "Import",
|
|
1614
1362
|
"code": "import { Skeleton } from '@1money/components-ui';\n// or\nimport { Skeleton } from '@1money/components-ui/Skeleton';",
|
|
@@ -1621,16 +1369,10 @@
|
|
|
1621
1369
|
"source": "stories",
|
|
1622
1370
|
"compilable": true
|
|
1623
1371
|
},
|
|
1624
|
-
"
|
|
1625
|
-
"title": "
|
|
1626
|
-
"code": "
|
|
1627
|
-
"source": "
|
|
1628
|
-
"compilable": true
|
|
1629
|
-
},
|
|
1630
|
-
"9c4b5f475fd76261b4364f04f169997152a1ceea87575298d7a413fd0a551085": {
|
|
1631
|
-
"title": "Canonical usage",
|
|
1632
|
-
"code": "import type { FormCoreInstance } from '@1money/component-ui';",
|
|
1633
|
-
"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",
|
|
1634
1376
|
"compilable": true
|
|
1635
1377
|
},
|
|
1636
1378
|
"9d095c31abb7ac97c40b817bfca40bcb706f8b8572f9a6af7218643f08b7464b": {
|
|
@@ -1639,6 +1381,12 @@
|
|
|
1639
1381
|
"source": "readme",
|
|
1640
1382
|
"compilable": true
|
|
1641
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
|
+
},
|
|
1642
1390
|
"9eae41b47da6d3b07d6bfdb98fe407b6be85aa68db3fe695699cf9588b65eda8": {
|
|
1643
1391
|
"title": "Placements",
|
|
1644
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 }",
|
|
@@ -1657,12 +1405,6 @@
|
|
|
1657
1405
|
"source": "stories",
|
|
1658
1406
|
"compilable": true
|
|
1659
1407
|
},
|
|
1660
|
-
"a0db5e8a8634435b7717e8162c8d43cd1a6918c73fb73a44d76d56fa6d532de2": {
|
|
1661
|
-
"title": "Canonical usage",
|
|
1662
|
-
"code": "import type { ProgressState } from '@1money/component-ui';",
|
|
1663
|
-
"source": "canonical",
|
|
1664
|
-
"compilable": true
|
|
1665
|
-
},
|
|
1666
1408
|
"a0eaa77614f8bc2563173aa4c68d578c2a7d2957ec1696516c9656d43737f7e2": {
|
|
1667
1409
|
"title": "Import",
|
|
1668
1410
|
"code": "import { Segment } from '@1money/components-ui';\n// or\nimport { Segment } from '@1money/components-ui/Segment';",
|
|
@@ -1705,34 +1447,22 @@
|
|
|
1705
1447
|
"source": "stories",
|
|
1706
1448
|
"compilable": true
|
|
1707
1449
|
},
|
|
1708
|
-
"a5ae14150d1724de4984c10921713734e86d15771efe397f3015a01c77d13676": {
|
|
1709
|
-
"title": "Canonical usage",
|
|
1710
|
-
"code": "import { Cell } from '@1money/component-ui';\n// or\nimport { Cell } from '@1money/component-ui/Cell';",
|
|
1711
|
-
"source": "canonical",
|
|
1712
|
-
"compilable": true
|
|
1713
|
-
},
|
|
1714
1450
|
"a823300963fcf8c4ccf8e531c42aa78d7ab59841b405c471d5c0c0d6ac0b9b22": {
|
|
1715
1451
|
"title": "Text Area",
|
|
1716
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 }",
|
|
1717
1453
|
"source": "stories",
|
|
1718
1454
|
"compilable": true
|
|
1719
1455
|
},
|
|
1720
|
-
"a95b0ad034e07b035fd0d4b861b4bb29fe68e7e04c8f0d3541178f4e15b7b0d1": {
|
|
1721
|
-
"title": "Canonical usage",
|
|
1722
|
-
"code": "import type { CreateProFormFieldConfig } from '@1money/component-ui';",
|
|
1723
|
-
"source": "canonical",
|
|
1724
|
-
"compilable": true
|
|
1725
|
-
},
|
|
1726
1456
|
"aa0e9842f54e521f7ff371e51003e26ed69263bef1d5d37baaa5fd6fa189e32c": {
|
|
1727
1457
|
"title": "Split Example",
|
|
1728
1458
|
"code": "<Space split={<span>|</span>} size={SPACE_SIZE.small}>\n <span>Alpha</span>\n <span>Beta</span>\n <span>Gamma</span>\n</Space>",
|
|
1729
1459
|
"source": "readme",
|
|
1730
1460
|
"compilable": true
|
|
1731
1461
|
},
|
|
1732
|
-
"
|
|
1733
|
-
"title": "
|
|
1734
|
-
"code": "import
|
|
1735
|
-
"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",
|
|
1736
1466
|
"compilable": true
|
|
1737
1467
|
},
|
|
1738
1468
|
"ab9c2b8dec3865ef9826586aa69c01790a48073272eb97a2006323577fbf2550": {
|
|
@@ -1759,22 +1489,16 @@
|
|
|
1759
1489
|
"source": "readme",
|
|
1760
1490
|
"compilable": true
|
|
1761
1491
|
},
|
|
1762
|
-
"aeb5b3145a02eaf5de7b756aa71f963aac5ab51ac00f7f76dbc2599ab7634b3a": {
|
|
1763
|
-
"title": "Canonical usage",
|
|
1764
|
-
"code": "import type { VirtualListProps } from '@1money/component-ui';",
|
|
1765
|
-
"source": "canonical",
|
|
1766
|
-
"compilable": true
|
|
1767
|
-
},
|
|
1768
1492
|
"af6172fd099200e93181aeb231c5d69c5b4b4d057a1f32935aa2f35ed86ffebe": {
|
|
1769
1493
|
"title": "Search",
|
|
1770
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 }",
|
|
1771
1495
|
"source": "stories",
|
|
1772
1496
|
"compilable": false
|
|
1773
1497
|
},
|
|
1774
|
-
"
|
|
1775
|
-
"title": "
|
|
1776
|
-
"code": "
|
|
1777
|
-
"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",
|
|
1778
1502
|
"compilable": true
|
|
1779
1503
|
},
|
|
1780
1504
|
"b01e2ee6d41091e4a6c12c9a96eb56c7c35c717754ac47bc643756c276654869": {
|
|
@@ -1801,6 +1525,12 @@
|
|
|
1801
1525
|
"source": "stories",
|
|
1802
1526
|
"compilable": true
|
|
1803
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
|
+
},
|
|
1804
1534
|
"b1c6f9400c9b8e40e5ce950447b02ac670b68a1e55242b16a8dc86249f792a7f": {
|
|
1805
1535
|
"title": "Canonical usage",
|
|
1806
1536
|
"code": "<p>Above</p>\n<Divider />\n<p>Below</p>",
|
|
@@ -1813,46 +1543,16 @@
|
|
|
1813
1543
|
"source": "stories",
|
|
1814
1544
|
"compilable": false
|
|
1815
1545
|
},
|
|
1816
|
-
"b5058892460d3456a042642b413b9da4a784488bd7e21f991f40aea1d5d14a93": {
|
|
1817
|
-
"title": "Canonical usage",
|
|
1818
|
-
"code": "import type { LabelAlign } from '@1money/component-ui';",
|
|
1819
|
-
"source": "canonical",
|
|
1820
|
-
"compilable": true
|
|
1821
|
-
},
|
|
1822
|
-
"b5122ab00632d0b9f9f205345094b8cc87d3de0e265bfa06f77f8c0538a72a4a": {
|
|
1823
|
-
"title": "Import",
|
|
1824
|
-
"code": "import { Link } from '@1money/component-ui';\n// or\nimport { Link } from '@1money/component-ui/Link';",
|
|
1825
|
-
"source": "readme",
|
|
1826
|
-
"compilable": true
|
|
1827
|
-
},
|
|
1828
1546
|
"b53d16f186c5371a04bc88eb4e5f48d69652f711a0b9596a5b520eea56fd12b7": {
|
|
1829
1547
|
"title": "Usage",
|
|
1830
1548
|
"code": "<Link href=\"https://docs.1money.com\" target=\"_blank\">\n Documentation\n</Link>",
|
|
1831
1549
|
"source": "readme",
|
|
1832
1550
|
"compilable": true
|
|
1833
1551
|
},
|
|
1834
|
-
"
|
|
1835
|
-
"title": "
|
|
1836
|
-
"code": "<
|
|
1837
|
-
"source": "
|
|
1838
|
-
"compilable": true
|
|
1839
|
-
},
|
|
1840
|
-
"b5c565a619ca8c6ea6be3771a025e08245ee1157433a0f25341df72da8c82c84": {
|
|
1841
|
-
"title": "Canonical usage",
|
|
1842
|
-
"code": "import type { VirtualListRef } from '@1money/component-ui';",
|
|
1843
|
-
"source": "canonical",
|
|
1844
|
-
"compilable": true
|
|
1845
|
-
},
|
|
1846
|
-
"b5cf05bb6a8f45cfcd470fe1172b358fbd92178d3eece19d966999aa3f077105": {
|
|
1847
|
-
"title": "Canonical usage",
|
|
1848
|
-
"code": "import { Link } from '@1money/component-ui';\n// or\nimport { Link } from '@1money/component-ui/Link';",
|
|
1849
|
-
"source": "canonical",
|
|
1850
|
-
"compilable": true
|
|
1851
|
-
},
|
|
1852
|
-
"b669352c8c48a5998e787d52dcf642775655517e1ea3c28da5047402bfb8f815": {
|
|
1853
|
-
"title": "Canonical usage",
|
|
1854
|
-
"code": "import type { ResizeObserverSizeInfo } from '@1money/component-ui';",
|
|
1855
|
-
"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",
|
|
1856
1556
|
"compilable": true
|
|
1857
1557
|
},
|
|
1858
1558
|
"b6bf8d1eebcfbb2bb8d4eef7f3fbb26233d5abe1febad432c6cb4d4af6ad7a79": {
|
|
@@ -1879,10 +1579,10 @@
|
|
|
1879
1579
|
"source": "stories",
|
|
1880
1580
|
"compilable": false
|
|
1881
1581
|
},
|
|
1882
|
-
"
|
|
1883
|
-
"title": "
|
|
1884
|
-
"code": "
|
|
1885
|
-
"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",
|
|
1886
1586
|
"compilable": true
|
|
1887
1587
|
},
|
|
1888
1588
|
"bda0a33c638ce6212b4a0c6a592ef4de615a792af4360935f5c256a31d3c2bfc": {
|
|
@@ -1897,24 +1597,6 @@
|
|
|
1897
1597
|
"source": "stories",
|
|
1898
1598
|
"compilable": false
|
|
1899
1599
|
},
|
|
1900
|
-
"bea04481c1d6a537bdee648094a468c0153ef005defd5762fd0568a7312f0b71": {
|
|
1901
|
-
"title": "Canonical usage",
|
|
1902
|
-
"code": "<ProFormItem />",
|
|
1903
|
-
"source": "canonical",
|
|
1904
|
-
"compilable": true
|
|
1905
|
-
},
|
|
1906
|
-
"bea3fd79a9ce5be5ed4038daa57612f962de2b1b334870a215966790b6a5c1f5": {
|
|
1907
|
-
"title": "Usage",
|
|
1908
|
-
"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/>",
|
|
1909
|
-
"source": "readme",
|
|
1910
|
-
"compilable": true
|
|
1911
|
-
},
|
|
1912
|
-
"bec858e374183c180f6a8c8157e1d6204faf444043aa0bfe7145fdff1fb35c29": {
|
|
1913
|
-
"title": "Canonical usage",
|
|
1914
|
-
"code": "import type { QueryFilterProps } from '@1money/component-ui';",
|
|
1915
|
-
"source": "canonical",
|
|
1916
|
-
"compilable": true
|
|
1917
|
-
},
|
|
1918
1600
|
"bfa365023d672d8f94c08d4bf7dba03404964ed3489949e44748853da10be22b": {
|
|
1919
1601
|
"title": "Dialog Form Story",
|
|
1920
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>",
|
|
@@ -1933,16 +1615,10 @@
|
|
|
1933
1615
|
"source": "stories",
|
|
1934
1616
|
"compilable": false
|
|
1935
1617
|
},
|
|
1936
|
-
"
|
|
1937
|
-
"title": "
|
|
1938
|
-
"code": "
|
|
1939
|
-
"source": "
|
|
1940
|
-
"compilable": true
|
|
1941
|
-
},
|
|
1942
|
-
"c145e8864a44d06820814a82b0d0e2e486e772f015830b8cc626831e2e025878": {
|
|
1943
|
-
"title": "Canonical usage",
|
|
1944
|
-
"code": "<Portal />",
|
|
1945
|
-
"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",
|
|
1946
1622
|
"compilable": true
|
|
1947
1623
|
},
|
|
1948
1624
|
"c196d3703b8f7605b2cf3ba5d441a3c20a72992b82874261716187376e93e86e": {
|
|
@@ -1957,12 +1633,24 @@
|
|
|
1957
1633
|
"source": "stories",
|
|
1958
1634
|
"compilable": false
|
|
1959
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
|
+
},
|
|
1960
1642
|
"c303f66164ebe41cd2a3afd4f3f393f888ada9d6806d059d56b47f502825f2f7": {
|
|
1961
1643
|
"title": "OTP",
|
|
1962
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 }",
|
|
1963
1645
|
"source": "stories",
|
|
1964
1646
|
"compilable": false
|
|
1965
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
|
+
},
|
|
1966
1654
|
"c3aaf0098db4c77ba5af727f8c2eb70a9969be6ea15dcba309d583137cfe6e21": {
|
|
1967
1655
|
"title": "Nested List",
|
|
1968
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>",
|
|
@@ -1975,33 +1663,15 @@
|
|
|
1975
1663
|
"source": "stories",
|
|
1976
1664
|
"compilable": true
|
|
1977
1665
|
},
|
|
1978
|
-
"
|
|
1979
|
-
"title": "
|
|
1980
|
-
"code": "
|
|
1981
|
-
"source": "canonical",
|
|
1982
|
-
"compilable": true
|
|
1983
|
-
},
|
|
1984
|
-
"c539c466c34edf9adf7a91c4b2d933518b120bce2cce74457c78e0579e6f91b5": {
|
|
1985
|
-
"title": "Canonical usage",
|
|
1986
|
-
"code": "import type { DropdownProps } from '@1money/component-ui';",
|
|
1987
|
-
"source": "canonical",
|
|
1988
|
-
"compilable": true
|
|
1989
|
-
},
|
|
1990
|
-
"c5c8294cf8e64c0260dadcf294fe23c8dc5b054d7780988addeb5f5bfa8f6658": {
|
|
1991
|
-
"title": "Page Loading Overlay",
|
|
1992
|
-
"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};",
|
|
1666
|
+
"c5260837fe7728fca505a762c48a8ede3b34d472c53b2be29b29a49de267418d": {
|
|
1667
|
+
"title": "Import",
|
|
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": "<Pagination />",
|
|
1999
|
-
"source": "canonical",
|
|
2000
|
-
"compilable": true
|
|
2001
|
-
},
|
|
2002
|
-
"c61edd4d5f5113671afbb2b5ce72b88a70f64bf63d8e320cd21c669831574cd1": {
|
|
1672
|
+
"c53ede8df4b95ea3a84f4272cdde631bf1281322de0a44bfa5d9f4ac16ed9618": {
|
|
2003
1673
|
"title": "Canonical usage",
|
|
2004
|
-
"code": "
|
|
1674
|
+
"code": "import { Portal } from '@1money/components-ui';\n// or\nimport { Portal } from '@1money/components-ui/Portal';",
|
|
2005
1675
|
"source": "canonical",
|
|
2006
1676
|
"compilable": true
|
|
2007
1677
|
},
|
|
@@ -2029,12 +1699,24 @@
|
|
|
2029
1699
|
"source": "readme",
|
|
2030
1700
|
"compilable": true
|
|
2031
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
|
+
},
|
|
2032
1708
|
"c7dcba25848c3c668f4be990f07f1a6cc8b5b3687bb3533b277bf10074bbbd74": {
|
|
2033
1709
|
"title": "Mode Update",
|
|
2034
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>",
|
|
2035
1711
|
"source": "stories",
|
|
2036
1712
|
"compilable": false
|
|
2037
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
|
+
},
|
|
2038
1720
|
"c9055581e81ec06997b903da8cf3dc5446cb9767423cb2fd80762ede31063176": {
|
|
2039
1721
|
"title": "Disabled",
|
|
2040
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 }",
|
|
@@ -2047,27 +1729,15 @@
|
|
|
2047
1729
|
"source": "stories",
|
|
2048
1730
|
"compilable": false
|
|
2049
1731
|
},
|
|
2050
|
-
"ca3b9b0ee348c09e621b11cf2534f5d42546ed5004f5f00f042b20c9ca6a7548": {
|
|
2051
|
-
"title": "Canonical usage",
|
|
2052
|
-
"code": "import type { DialogFooterRender } from '@1money/component-ui';",
|
|
2053
|
-
"source": "canonical",
|
|
2054
|
-
"compilable": true
|
|
2055
|
-
},
|
|
2056
1732
|
"ca70d69f9d217bc2fb7464ca43a6e4014c47f608128b31fcaef0dce251e15ea4": {
|
|
2057
1733
|
"title": "With Disabled",
|
|
2058
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 />",
|
|
2059
1735
|
"source": "stories",
|
|
2060
1736
|
"compilable": true
|
|
2061
1737
|
},
|
|
2062
|
-
"
|
|
1738
|
+
"cb112d23d742e359bb073b630230b53ccd7362c90ce29f033223143742f4687a": {
|
|
2063
1739
|
"title": "Canonical usage",
|
|
2064
|
-
"code": "import
|
|
2065
|
-
"source": "canonical",
|
|
2066
|
-
"compilable": true
|
|
2067
|
-
},
|
|
2068
|
-
"cc02e88440947a6233796037b3d5c91a08dccc0fbd6048c0d19e0c449e82dc73": {
|
|
2069
|
-
"title": "Canonical usage",
|
|
2070
|
-
"code": "import type { DropdownContentContext } from '@1money/component-ui';",
|
|
1740
|
+
"code": "import { Drawer } from '@1money/components-ui';\n// or\nimport { Drawer } from '@1money/components-ui/Drawer';",
|
|
2071
1741
|
"source": "canonical",
|
|
2072
1742
|
"compilable": true
|
|
2073
1743
|
},
|
|
@@ -2083,12 +1753,6 @@
|
|
|
2083
1753
|
"source": "stories",
|
|
2084
1754
|
"compilable": true
|
|
2085
1755
|
},
|
|
2086
|
-
"cd8832b40b359a75929b8e7f17192a66cbf85c7fdc424c4d1b3fd2cb736bb5ce": {
|
|
2087
|
-
"title": "Entry Points",
|
|
2088
|
-
"code": "<div style={{ display: 'grid', gap: 16 }}>\n <div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>\n <CrossIcon size={20} />\n <Icon name=\"cross\" size={20} />\n <Icons name=\"depositFiatCrypto\" size={20} />\n </div>\n <div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>\n <LogoWithWords width={132} height={24} logoColor=\"#073387\" wordColor=\"#131313\" />\n <IconHover>\n <CrossIcon size={16} />\n </IconHover>\n </div>\n </div>",
|
|
2089
|
-
"source": "stories",
|
|
2090
|
-
"compilable": true
|
|
2091
|
-
},
|
|
2092
1756
|
"ce3412158804bef977933a6f68163249822402fcf44facae20470ccfd61de718": {
|
|
2093
1757
|
"title": "Import",
|
|
2094
1758
|
"code": "import { Calendar } from '@1money/components-ui';\n// or\nimport { Calendar } from '@1money/components-ui/Calendar';",
|
|
@@ -2101,12 +1765,6 @@
|
|
|
2101
1765
|
"source": "stories",
|
|
2102
1766
|
"compilable": false
|
|
2103
1767
|
},
|
|
2104
|
-
"cef06a2fa9ec150e4ab25d3ca42529946e43096750463d7e09e45104bfe938a9": {
|
|
2105
|
-
"title": "Canonical usage",
|
|
2106
|
-
"code": "import type { SelectSize } from '@1money/component-ui';",
|
|
2107
|
-
"source": "canonical",
|
|
2108
|
-
"compilable": true
|
|
2109
|
-
},
|
|
2110
1768
|
"cf77657b10de8590abb4f91c96d5208ef8e88c19ca770632f85ea70ebd3f41f2": {
|
|
2111
1769
|
"title": "Debounce Field",
|
|
2112
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>",
|
|
@@ -2119,24 +1777,6 @@
|
|
|
2119
1777
|
"source": "stories",
|
|
2120
1778
|
"compilable": false
|
|
2121
1779
|
},
|
|
2122
|
-
"d04fb66d67c8ae60bbd4a4937cb198b9b91ef7835b27f5766f421c864efdf891": {
|
|
2123
|
-
"title": "Canonical usage",
|
|
2124
|
-
"code": "<VirtualList />",
|
|
2125
|
-
"source": "canonical",
|
|
2126
|
-
"compilable": true
|
|
2127
|
-
},
|
|
2128
|
-
"d07754a416050437d6b99b5541fa4eb847f75facc92eb9f9427194d138408140": {
|
|
2129
|
-
"title": "Canonical usage",
|
|
2130
|
-
"code": "import type { DialogProps } from '@1money/component-ui';",
|
|
2131
|
-
"source": "canonical",
|
|
2132
|
-
"compilable": true
|
|
2133
|
-
},
|
|
2134
|
-
"d0b89ae2fa1043346a2874d6f6ab1231cc0e830f16e1f70fd5614d322a61b044": {
|
|
2135
|
-
"title": "Canonical usage",
|
|
2136
|
-
"code": "import type { SelectValue } from '@1money/component-ui';",
|
|
2137
|
-
"source": "canonical",
|
|
2138
|
-
"compilable": true
|
|
2139
|
-
},
|
|
2140
1780
|
"d17ae919d30d1b43236c52018609c72e725c0e22e47938fa2bed04cae70b2542": {
|
|
2141
1781
|
"title": "Usage",
|
|
2142
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\" />",
|
|
@@ -2149,6 +1789,12 @@
|
|
|
2149
1789
|
"source": "stories",
|
|
2150
1790
|
"compilable": false
|
|
2151
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
|
+
},
|
|
2152
1798
|
"d2edd9eacbc07e5e229da3827b202d5da1fe8f4ca569e59c8162ce3927cbf36e": {
|
|
2153
1799
|
"title": "Import",
|
|
2154
1800
|
"code": "import { Input } from '@1money/components-ui';\n// or\nimport { Input } from '@1money/components-ui/Input';",
|
|
@@ -2167,15 +1813,9 @@
|
|
|
2167
1813
|
"source": "readme",
|
|
2168
1814
|
"compilable": true
|
|
2169
1815
|
},
|
|
2170
|
-
"
|
|
1816
|
+
"d7d5f601f2bc6d68fdd1f9092792a1ead79d09392794c0de5c6a6f08ae2fcd2b": {
|
|
2171
1817
|
"title": "Canonical usage",
|
|
2172
|
-
"code": "import
|
|
2173
|
-
"source": "canonical",
|
|
2174
|
-
"compilable": true
|
|
2175
|
-
},
|
|
2176
|
-
"d6d63abfec53aafed291131ef3a163dafcf0b09dbf5655a9457e4a8c5e75868e": {
|
|
2177
|
-
"title": "Canonical usage",
|
|
2178
|
-
"code": "<Dropdown />",
|
|
1818
|
+
"code": "import { ResizeObserver, useResizeObserver } from '@1money/components-ui';\n// or\nimport { ResizeObserver, useResizeObserver } from '@1money/components-ui/ResizeObserver';",
|
|
2179
1819
|
"source": "canonical",
|
|
2180
1820
|
"compilable": true
|
|
2181
1821
|
},
|
|
@@ -2191,6 +1831,12 @@
|
|
|
2191
1831
|
"source": "canonical",
|
|
2192
1832
|
"compilable": true
|
|
2193
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
|
+
},
|
|
2194
1840
|
"d9882ee38a2bc32f9e2590509a569226bc8b174cfe3c16f5a1bdfbbc7662bf62": {
|
|
2195
1841
|
"title": "Placement",
|
|
2196
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 }",
|
|
@@ -2227,9 +1873,9 @@
|
|
|
2227
1873
|
"source": "stories",
|
|
2228
1874
|
"compilable": true
|
|
2229
1875
|
},
|
|
2230
|
-
"
|
|
1876
|
+
"dba235303ebe08452940ff868113324fc00c1a8ed5461ca69aaf6113382b9f6b": {
|
|
2231
1877
|
"title": "Canonical usage",
|
|
2232
|
-
"code": "import
|
|
1878
|
+
"code": "import { Pagination, usePagination } from '@1money/components-ui';\n// or\nimport { Pagination, usePagination } from '@1money/components-ui/Pagination';",
|
|
2233
1879
|
"source": "canonical",
|
|
2234
1880
|
"compilable": true
|
|
2235
1881
|
},
|
|
@@ -2257,10 +1903,10 @@
|
|
|
2257
1903
|
"source": "stories",
|
|
2258
1904
|
"compilable": true
|
|
2259
1905
|
},
|
|
2260
|
-
"
|
|
2261
|
-
"title": "
|
|
2262
|
-
"code": "import
|
|
2263
|
-
"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",
|
|
2264
1910
|
"compilable": true
|
|
2265
1911
|
},
|
|
2266
1912
|
"dda0f285741a298f3e8cd24f768a9faf10789e206854eb6555fc79970dcb9c2d": {
|
|
@@ -2305,10 +1951,16 @@
|
|
|
2305
1951
|
"source": "stories",
|
|
2306
1952
|
"compilable": false
|
|
2307
1953
|
},
|
|
2308
|
-
"
|
|
2309
|
-
"title": "
|
|
2310
|
-
"code": "import {
|
|
2311
|
-
"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",
|
|
2312
1964
|
"compilable": true
|
|
2313
1965
|
},
|
|
2314
1966
|
"e2d97535c3a577c0c337fa59b2a6832e6337e4a07486d72339fb65ecb4899382": {
|
|
@@ -2317,10 +1969,10 @@
|
|
|
2317
1969
|
"source": "readme",
|
|
2318
1970
|
"compilable": true
|
|
2319
1971
|
},
|
|
2320
|
-
"
|
|
2321
|
-
"title": "
|
|
2322
|
-
"code": "<
|
|
2323
|
-
"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",
|
|
2324
1976
|
"compilable": true
|
|
2325
1977
|
},
|
|
2326
1978
|
"e45470810804263c8bc829534812b03b22c7885a5d86df48dfecce21f3ab3a2f": {
|
|
@@ -2365,72 +2017,36 @@
|
|
|
2365
2017
|
"source": "canonical",
|
|
2366
2018
|
"compilable": true
|
|
2367
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
|
+
},
|
|
2368
2026
|
"e9f60d4e278ffd41098f4db04f41855ffd8a9cb7a16f51dc8f8e99f4295effaa": {
|
|
2369
2027
|
"title": "Disabled",
|
|
2370
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>",
|
|
2371
2029
|
"source": "stories",
|
|
2372
2030
|
"compilable": false
|
|
2373
2031
|
},
|
|
2374
|
-
"ead69923c50561a8b08e90c7dc7f2b6f0d3e3b1d3aa61f06af6f26303aeacc90": {
|
|
2375
|
-
"title": "Canonical usage",
|
|
2376
|
-
"code": "import type { ProFormProps } from '@1money/component-ui';",
|
|
2377
|
-
"source": "canonical",
|
|
2378
|
-
"compilable": true
|
|
2379
|
-
},
|
|
2380
2032
|
"eb427461f9033ecdecd7f9fbecd2c65d93d6a9f081ee8af32cd9665d94095ec9": {
|
|
2381
2033
|
"title": "Semantic Scale",
|
|
2382
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>",
|
|
2383
2035
|
"source": "stories",
|
|
2384
2036
|
"compilable": true
|
|
2385
2037
|
},
|
|
2386
|
-
"ec48d516a07ba5085b42c5936ddd4094b99978b593ccd77f2840587b3c15fe54": {
|
|
2387
|
-
"title": "Canonical usage",
|
|
2388
|
-
"code": "import type { PaginationPageItem } from '@1money/component-ui';",
|
|
2389
|
-
"source": "canonical",
|
|
2390
|
-
"compilable": true
|
|
2391
|
-
},
|
|
2392
|
-
"ed5d62cfe73db00a5d655c4947110558ed0c81b0173fdfa5086ec53117f33525": {
|
|
2393
|
-
"title": "Canonical usage",
|
|
2394
|
-
"code": "import {\n CrossIcon,\n Icon,\n Icons,\n IconHover,\n IconWrapper,\n LogoWithWords,\n} from '@1money/components-ui';\n\nimport type { IconName, IconsProps } from '@1money/components-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
|
}
|