@1money/component-ui 0.0.30 → 0.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1money/component-ui",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "React Components based on primereact for 1money front-end projects",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -163,6 +163,12 @@
163
163
  "source": "stories",
164
164
  "compilable": false
165
165
  },
166
+ "121fd04bd739e98c6ccc312a1be13069715c343ad66bcbd8e3b076ee2611f60a": {
167
+ "title": "Canonical usage",
168
+ "code": "import type { IconsProps } from '@1money/component-ui';",
169
+ "source": "canonical",
170
+ "compilable": true
171
+ },
166
172
  "123291e7b1b33126adc91e8204e4002c37c71a74eb5bfca67a4da71b9aec2f6a": {
167
173
  "title": "Default",
168
174
  "code": "{\n const [value, setValue] = useState<string | number | undefined>('btc');\n\n return (\n <Select\n {...args}\n value={value}\n onChange={(nextValue, option) => {\n setValue(nextValue as string | number | undefined);\n args.onChange?.(nextValue, option);\n }}\n />\n );\n }",
@@ -253,6 +259,12 @@
253
259
  "source": "readme",
254
260
  "compilable": true
255
261
  },
262
+ "21cf92888ecabc84d2f36ba71a1b5a30b1fc75a963b72b6bd4ad911c20be6142": {
263
+ "title": "Canonical usage",
264
+ "code": "import type { IconName } from '@1money/component-ui';",
265
+ "source": "canonical",
266
+ "compilable": true
267
+ },
256
268
  "21e145efeaada4cb2c7e716099dd9261f34d38e9df00905994175c1a5e9aabb5": {
257
269
  "title": "Dynamic Data",
258
270
  "code": "{\n const [count, setCount] = useState(100);\n const data = generateData(count);\n\n return (\n <div>\n <div style={{ marginBottom: 12, display: 'flex', gap: 8 }}>\n <button style={btnStyle} onClick={() => setCount((c) => c + 100)}>\n Add 100 items ({count} total)\n </button>\n <button style={btnStyle} onClick={() => setCount((c) => Math.max(0, c - 100))}>\n Remove 100 items\n </button>\n <button style={btnStyle} onClick={() => setCount(0)}>\n Clear\n </button>\n </div>\n <div style={containerStyle}>\n <VirtualList\n data={data}\n height={300}\n itemHeight={30}\n itemKey=\"id\"\n >\n {(item: Item) => (\n <div style={itemStyle(item.height)}>\n <span>Item {item.id}</span>\n </div>\n )}\n </VirtualList>\n </div>\n </div>\n );\n }",
@@ -541,6 +553,12 @@
541
553
  "source": "stories",
542
554
  "compilable": false
543
555
  },
556
+ "3c554437f7534e672da53194827c88c647b2091520a4db816184c1ffdc84c59a": {
557
+ "title": "Canonical usage",
558
+ "code": "import type { IconWrapperProps } from '@1money/component-ui';",
559
+ "source": "canonical",
560
+ "compilable": true
561
+ },
544
562
  "3c5bbd0e70d50121131f70e69229d2badab6a0c4ce56c9343804fac5db4cc85d": {
545
563
  "title": "Cell Centered",
546
564
  "code": "<div style={{ display: 'flex', gap: 12, alignItems: 'flex-start', flexWrap: 'wrap' }}>\n <Radio\n checked\n variant=\"cell\"\n size=\"large\"\n alignment=\"center\"\n icon=\"language\"\n tag=\"Tag\"\n label=\"Global account\"\n description=\"International transfers\"\n style={{ width: 200 }}\n />\n <Radio\n checked\n variant=\"cell\"\n size=\"medium\"\n alignment=\"center\"\n icon=\"usd\"\n label=\"USD1\"\n style={{ width: 200 }}\n />\n <Radio\n checked\n variant=\"cell\"\n size=\"small\"\n alignment=\"center\"\n icon=\"usd\"\n label=\"USD1\"\n style={{ width: 200 }}\n />\n </div>",
@@ -679,12 +697,6 @@
679
697
  "source": "stories",
680
698
  "compilable": false
681
699
  },
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",
686
- "compilable": true
687
- },
688
700
  "4ad4837cde91f1ebd2cad90d6f82683fd94957192e4b88fa46882aac2330b854": {
689
701
  "title": "Group Collapsible",
690
702
  "code": "<ProForm\n {...args}\n initialValues={{ name: 'Alice', bio: '', theme: 'light' }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProForm.Group title=\"Basic Info\" collapsible>\n <ProFormText name=\"name\" label=\"Name\" rules={[{ required: true }]} />\n <ProFormText name=\"bio\" label=\"Bio\" />\n </ProForm.Group>\n <ProForm.Group title=\"Preferences\" collapsible defaultCollapsed>\n <ProFormText name=\"theme\" label=\"Theme\" />\n <ProFormSwitch name=\"notifications\" label=\"Notifications\" />\n </ProForm.Group>\n </ProForm>",
@@ -721,6 +733,12 @@
721
733
  "source": "stories",
722
734
  "compilable": false
723
735
  },
736
+ "4f5fdd8a79c7852bdaed287804732ad6fa022ac45f139a22e6e5b025cba9e945": {
737
+ "title": "Basic Usage",
738
+ "code": "// Basic icon (default 24px, inherits currentColor)\n<Icons name=\"arrowRight\" />\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} />",
739
+ "source": "readme",
740
+ "compilable": true
741
+ },
724
742
  "50164c21b0b9ce491a97b9f31ca0eab4a51ce38d2496720d37242f774f78df20": {
725
743
  "title": "Canonical usage",
726
744
  "code": "import { Slider } from '@1money/components-ui';\n// or\nimport { Slider } from '@1money/components-ui/Slider';",
@@ -739,6 +757,12 @@
739
757
  "source": "readme",
740
758
  "compilable": true
741
759
  },
760
+ "5366737d28dd367f234fcb03fbbe9b966ae9baf9f4d4d05ad628e2c16c5a4e3c": {
761
+ "title": "Canonical usage",
762
+ "code": "<IconWrapper />",
763
+ "source": "canonical",
764
+ "compilable": true
765
+ },
742
766
  "5545418d49fc7cdc897ea3ab29b0c7e5326b5e6a7321eec41eece864275198a0": {
743
767
  "title": "All Variants",
744
768
  "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>",
@@ -919,6 +943,12 @@
919
943
  "source": "readme",
920
944
  "compilable": true
921
945
  },
946
+ "6d1aac6219f8d395eb9f6c5c13da9f51970c30059c74d6faeb7ddc895bc2af19": {
947
+ "title": "Canonical usage",
948
+ "code": "import type { IconHoverProps } from '@1money/component-ui';",
949
+ "source": "canonical",
950
+ "compilable": true
951
+ },
922
952
  "6dadb9a4d982338ee8398025f4cea4aa2ed33dba5303e56b6a65b1f23cb93bf0": {
923
953
  "title": "Canonical usage",
924
954
  "code": "import { Select } from '@1money/components-ui';\n// or\nimport { Select } from '@1money/components-ui/Select';",
@@ -955,12 +985,6 @@
955
985
  "source": "stories",
956
986
  "compilable": false
957
987
  },
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
- },
964
988
  "72e53f1f60724efcfebfca8207585573799139c8895777a6a6d283673008ba74": {
965
989
  "title": "Import",
966
990
  "code": "import { CoachMark } from '@1money/components-ui';\n// or\nimport { CoachMark } from '@1money/components-ui/CoachMark';",
@@ -1141,6 +1165,12 @@
1141
1165
  "source": "readme",
1142
1166
  "compilable": true
1143
1167
  },
1168
+ "8388c821f8c88d4cf800ec2b679c5ace3c46d929a152100c4d4f4eb52400039d": {
1169
+ "title": "Import",
1170
+ "code": "import { Icons, IconWrapper, IconHover } from '@1money/components-ui';\n// or\nimport { Icons, IconWrapper, IconHover } from '@1money/components-ui/Icons';\n\n// Type imports\nimport type { IconName, SortIconStatus } from '@1money/components-ui';",
1171
+ "source": "readme",
1172
+ "compilable": true
1173
+ },
1144
1174
  "83a7f14ec7ad74308dcc340c21d3a1bd3bfae1a54793a236229c65619188361f": {
1145
1175
  "title": "Canonical usage",
1146
1176
  "code": "import { Input } from '@1money/components-ui';\n// or\nimport { Input } from '@1money/components-ui/Input';",
@@ -1243,12 +1273,6 @@
1243
1273
  "source": "readme",
1244
1274
  "compilable": true
1245
1275
  },
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
- },
1252
1276
  "90bea0eac958ff92526a0901cd2515a8694e96039b3d056e709ede70bd1b4678": {
1253
1277
  "title": "Search Only Filtered",
1254
1278
  "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 }",
@@ -1663,12 +1687,6 @@
1663
1687
  "source": "stories",
1664
1688
  "compilable": true
1665
1689
  },
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';",
1669
- "source": "readme",
1670
- "compilable": true
1671
- },
1672
1690
  "c53ede8df4b95ea3a84f4272cdde631bf1281322de0a44bfa5d9f4ac16ed9618": {
1673
1691
  "title": "Canonical usage",
1674
1692
  "code": "import { Portal } from '@1money/components-ui';\n// or\nimport { Portal } from '@1money/components-ui/Portal';",
@@ -1957,6 +1975,12 @@
1957
1975
  "source": "canonical",
1958
1976
  "compilable": true
1959
1977
  },
1978
+ "e1bc6906c5f00092c88e4e750bb2591d4397c214fe2ba32646792273d03f9942": {
1979
+ "title": "Canonical usage",
1980
+ "code": "<IconHover />",
1981
+ "source": "canonical",
1982
+ "compilable": true
1983
+ },
1960
1984
  "e26c609980f32c5d66ccd1ee1a5d53d3cf09e63f85e94f7adf9acc57bfdc7276": {
1961
1985
  "title": "Canonical usage",
1962
1986
  "code": "import { Navigation, Nav } from '@1money/components-ui';\n// or\nimport { Navigation, Nav } from '@1money/components-ui/Navigation';",
@@ -4084,10 +4084,10 @@
4084
4084
  "IconsProps"
4085
4085
  ],
4086
4086
  "searchTags": [],
4087
- "canonicalUsage": "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';",
4087
+ "canonicalUsage": "<IconHover />",
4088
4088
  "examples": [
4089
4089
  {
4090
- "hash": "724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5",
4090
+ "hash": "e1bc6906c5f00092c88e4e750bb2591d4397c214fe2ba32646792273d03f9942",
4091
4091
  "source": "canonical"
4092
4092
  }
4093
4093
  ]
@@ -4112,10 +4112,10 @@
4112
4112
  ],
4113
4113
  "searchTags": [],
4114
4114
  "typeText": "interface IconHoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'prefix'> { ... }",
4115
- "canonicalUsage": "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';",
4115
+ "canonicalUsage": "import type { IconHoverProps } from '@1money/component-ui';",
4116
4116
  "examples": [
4117
4117
  {
4118
- "hash": "724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5",
4118
+ "hash": "6d1aac6219f8d395eb9f6c5c13da9f51970c30059c74d6faeb7ddc895bc2af19",
4119
4119
  "source": "canonical"
4120
4120
  }
4121
4121
  ]
@@ -4140,10 +4140,10 @@
4140
4140
  ],
4141
4141
  "searchTags": [],
4142
4142
  "typeText": "keyof typeof IconList",
4143
- "canonicalUsage": "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';",
4143
+ "canonicalUsage": "import type { IconName } from '@1money/component-ui';",
4144
4144
  "examples": [
4145
4145
  {
4146
- "hash": "724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5",
4146
+ "hash": "21cf92888ecabc84d2f36ba71a1b5a30b1fc75a963b72b6bd4ad911c20be6142",
4147
4147
  "source": "canonical"
4148
4148
  }
4149
4149
  ]
@@ -4296,10 +4296,10 @@
4296
4296
  "IconsProps"
4297
4297
  ],
4298
4298
  "searchTags": [],
4299
- "canonicalUsage": "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';",
4299
+ "canonicalUsage": "<IconWrapper />",
4300
4300
  "examples": [
4301
4301
  {
4302
- "hash": "724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5",
4302
+ "hash": "5366737d28dd367f234fcb03fbbe9b966ae9baf9f4d4d05ad628e2c16c5a4e3c",
4303
4303
  "source": "canonical"
4304
4304
  }
4305
4305
  ]
@@ -4324,10 +4324,10 @@
4324
4324
  ],
4325
4325
  "searchTags": [],
4326
4326
  "typeText": "interface IconWrapperProps { ... }",
4327
- "canonicalUsage": "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';",
4327
+ "canonicalUsage": "import type { IconWrapperProps } from '@1money/component-ui';",
4328
4328
  "examples": [
4329
4329
  {
4330
- "hash": "724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5",
4330
+ "hash": "3c554437f7534e672da53194827c88c647b2091520a4db816184c1ffdc84c59a",
4331
4331
  "source": "canonical"
4332
4332
  }
4333
4333
  ]
@@ -4358,15 +4358,11 @@
4358
4358
  "memberMap": {},
4359
4359
  "examples": [
4360
4360
  {
4361
- "hash": "c5260837fe7728fca505a762c48a8ede3b34d472c53b2be29b29a49de267418d",
4361
+ "hash": "8388c821f8c88d4cf800ec2b679c5ace3c46d929a152100c4d4f4eb52400039d",
4362
4362
  "source": "readme"
4363
4363
  },
4364
4364
  {
4365
- "hash": "4a5e5cef011be8e4312b7e27e13d519193ffe35d681413267098a0f06182c9d9",
4366
- "source": "readme"
4367
- },
4368
- {
4369
- "hash": "90952e793cfea81bc8613eaed2e1b60208c06b4e98ce6f0cc5a254619af9e93f",
4365
+ "hash": "4f5fdd8a79c7852bdaed287804732ad6fa022ac45f139a22e6e5b025cba9e945",
4370
4366
  "source": "readme"
4371
4367
  },
4372
4368
  {
@@ -4411,10 +4407,10 @@
4411
4407
  ],
4412
4408
  "searchTags": [],
4413
4409
  "typeText": "interface IconsProps extends IconWrapperProps { ... }",
4414
- "canonicalUsage": "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';",
4410
+ "canonicalUsage": "import type { IconsProps } from '@1money/component-ui';",
4415
4411
  "examples": [
4416
4412
  {
4417
- "hash": "724f2c2f5081ae9ec1b8b50f385cd5773c50b6ba6c8a9835738b3cd5184d59e5",
4413
+ "hash": "121fd04bd739e98c6ccc312a1be13069715c343ad66bcbd8e3b076ee2611f60a",
4418
4414
  "source": "canonical"
4419
4415
  }
4420
4416
  ]