@1money/component-ui 0.0.43 → 0.0.45

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.
Files changed (67) hide show
  1. package/es/components/Dropdown/Dropdown.js +11 -3
  2. package/es/components/Icons/Icons.d.ts +1 -0
  3. package/es/components/Icons/Icons.js +3 -2
  4. package/es/components/Icons/SVGs.d.ts +2 -0
  5. package/es/components/Icons/SVGs.js +11 -1
  6. package/es/components/Input/FieldShell/FieldShell.css +1 -1
  7. package/es/components/Input/FieldShell/FieldShell.js +2 -3
  8. package/es/components/Select/Select.js +130 -91
  9. package/es/components/Select/SelectCustom.d.ts +6 -0
  10. package/es/components/Select/SelectCustom.js +232 -0
  11. package/es/components/Select/SelectFieldShell.d.ts +2 -0
  12. package/es/components/Select/SelectFieldShell.js +12 -4
  13. package/es/components/Select/SelectOptionContent.d.ts +8 -0
  14. package/es/components/Select/SelectOptionContent.js +20 -11
  15. package/es/components/Select/SelectSearchControl.d.ts +3 -0
  16. package/es/components/Select/SelectSearchControl.js +9 -4
  17. package/es/components/Select/index.d.ts +5 -2
  18. package/es/components/Select/index.js +8 -3
  19. package/es/components/Select/interface.d.ts +147 -1
  20. package/es/components/Select/interface.js +1 -1
  21. package/es/components/Select/style/Select.css +1 -1
  22. package/es/components/Select/useSelectShell.d.ts +34 -0
  23. package/es/components/Select/useSelectShell.js +106 -0
  24. package/es/components/Trigger/Trigger.js +33 -8
  25. package/es/components/Trigger/interface.d.ts +25 -2
  26. package/es/hooks/index.d.ts +2 -0
  27. package/es/hooks/index.js +2 -0
  28. package/es/hooks/useFloatingAnimation.d.ts +24 -0
  29. package/es/hooks/useFloatingAnimation.js +45 -0
  30. package/es/index.css +1 -1
  31. package/es/index.d.ts +1 -1
  32. package/es/index.js +1 -1
  33. package/lib/components/Dropdown/Dropdown.js +11 -3
  34. package/lib/components/Icons/Icons.d.ts +1 -0
  35. package/lib/components/Icons/Icons.js +2 -1
  36. package/lib/components/Icons/SVGs.d.ts +2 -0
  37. package/lib/components/Icons/SVGs.js +13 -3
  38. package/lib/components/Input/FieldShell/FieldShell.css +1 -1
  39. package/lib/components/Input/FieldShell/FieldShell.js +2 -3
  40. package/lib/components/Select/Select.js +129 -90
  41. package/lib/components/Select/SelectCustom.d.ts +6 -0
  42. package/lib/components/Select/SelectCustom.js +242 -0
  43. package/lib/components/Select/SelectFieldShell.d.ts +2 -0
  44. package/lib/components/Select/SelectFieldShell.js +12 -4
  45. package/lib/components/Select/SelectOptionContent.d.ts +8 -0
  46. package/lib/components/Select/SelectOptionContent.js +21 -12
  47. package/lib/components/Select/SelectSearchControl.d.ts +3 -0
  48. package/lib/components/Select/SelectSearchControl.js +9 -4
  49. package/lib/components/Select/index.d.ts +5 -2
  50. package/lib/components/Select/index.js +9 -17
  51. package/lib/components/Select/interface.d.ts +147 -1
  52. package/lib/components/Select/interface.js +1 -1
  53. package/lib/components/Select/style/Select.css +1 -1
  54. package/lib/components/Select/useSelectShell.d.ts +34 -0
  55. package/lib/components/Select/useSelectShell.js +114 -0
  56. package/lib/components/Trigger/Trigger.js +32 -7
  57. package/lib/components/Trigger/interface.d.ts +25 -2
  58. package/lib/hooks/index.d.ts +2 -0
  59. package/lib/hooks/index.js +13 -0
  60. package/lib/hooks/useFloatingAnimation.d.ts +24 -0
  61. package/lib/hooks/useFloatingAnimation.js +51 -0
  62. package/lib/index.css +1 -1
  63. package/lib/index.d.ts +1 -1
  64. package/lib/index.js +1 -1
  65. package/package.json +1 -1
  66. package/scripts/mcp-server/examples.generated.json +48 -6
  67. package/scripts/mcp-server/index.generated.json +263 -11
@@ -4518,7 +4518,7 @@
4518
4518
  "source": "readme"
4519
4519
  },
4520
4520
  {
4521
- "hash": "25c5df1e3c4d654a48016148beb792280ff11859280c9f51c6c226b15ab3becf",
4521
+ "hash": "b2c3325448f12418ef1b7e0fdabadbd1b6d8eb991cfd3c0b126919566721c209",
4522
4522
  "source": "stories"
4523
4523
  },
4524
4524
  {
@@ -11481,12 +11481,12 @@
11481
11481
  },
11482
11482
  {
11483
11483
  "name": "Select",
11484
- "kind": "component",
11484
+ "kind": "module",
11485
11485
  "category": "input",
11486
11486
  "summary": "",
11487
11487
  "importPath": "@1money/component-ui",
11488
11488
  "subpathImport": "@1money/component-ui/Select",
11489
- "sourceFile": "src/components/Select/Select.tsx",
11489
+ "sourceFile": "src/components/Select/index.ts",
11490
11490
  "props": [
11491
11491
  {
11492
11492
  "name": "ref",
@@ -11616,6 +11616,22 @@
11616
11616
  "description": "",
11617
11617
  "inheritedFrom": null
11618
11618
  },
11619
+ {
11620
+ "name": "readOnly",
11621
+ "type": "boolean",
11622
+ "optional": true,
11623
+ "default": null,
11624
+ "description": "",
11625
+ "inheritedFrom": null
11626
+ },
11627
+ {
11628
+ "name": "loading",
11629
+ "type": "boolean",
11630
+ "optional": true,
11631
+ "default": null,
11632
+ "description": "",
11633
+ "inheritedFrom": null
11634
+ },
11619
11635
  {
11620
11636
  "name": "multiple",
11621
11637
  "type": "boolean",
@@ -11664,6 +11680,14 @@
11664
11680
  "description": "",
11665
11681
  "inheritedFrom": null
11666
11682
  },
11683
+ {
11684
+ "name": "filterInputAutoFocus",
11685
+ "type": "boolean",
11686
+ "optional": true,
11687
+ "default": "true",
11688
+ "description": "Whether to auto-focus the search input when the panel opens (only when `searchable` is true).",
11689
+ "inheritedFrom": null
11690
+ },
11667
11691
  {
11668
11692
  "name": "label",
11669
11693
  "type": "ReactNode",
@@ -11744,6 +11768,38 @@
11744
11768
  "description": "",
11745
11769
  "inheritedFrom": null
11746
11770
  },
11771
+ {
11772
+ "name": "portal",
11773
+ "type": "boolean",
11774
+ "optional": true,
11775
+ "default": null,
11776
+ "description": "",
11777
+ "inheritedFrom": null
11778
+ },
11779
+ {
11780
+ "name": "allowDeselect",
11781
+ "type": "boolean",
11782
+ "optional": true,
11783
+ "default": null,
11784
+ "description": "",
11785
+ "inheritedFrom": null
11786
+ },
11787
+ {
11788
+ "name": "panelClassName",
11789
+ "type": "string",
11790
+ "optional": true,
11791
+ "default": null,
11792
+ "description": "",
11793
+ "inheritedFrom": null
11794
+ },
11795
+ {
11796
+ "name": "optionClassName",
11797
+ "type": "string",
11798
+ "optional": true,
11799
+ "default": null,
11800
+ "description": "",
11801
+ "inheritedFrom": null
11802
+ },
11747
11803
  {
11748
11804
  "name": "listMaxHeight",
11749
11805
  "type": "number",
@@ -11752,9 +11808,25 @@
11752
11808
  "description": "",
11753
11809
  "inheritedFrom": null
11754
11810
  },
11811
+ {
11812
+ "name": "offset",
11813
+ "type": "SelectOffset",
11814
+ "optional": true,
11815
+ "default": "0",
11816
+ "description": "Gap between panel and trigger.",
11817
+ "inheritedFrom": null
11818
+ },
11819
+ {
11820
+ "name": "animation",
11821
+ "type": "FloatingAnimation",
11822
+ "optional": true,
11823
+ "default": null,
11824
+ "description": "Open/close animation.",
11825
+ "inheritedFrom": null
11826
+ },
11755
11827
  {
11756
11828
  "name": "onChange",
11757
- "type": "(value: SelectValue, option?: SelectOption | SelectOption[]) => void",
11829
+ "type": "(\n value: SelectValue,\n option?: SelectOption | SelectOption[],\n /** Echoes back the `name` prop so a single handler can route updates by field. */\n name?: string,\n ) => void",
11758
11830
  "optional": true,
11759
11831
  "default": null,
11760
11832
  "description": "",
@@ -11797,7 +11869,15 @@
11797
11869
  "type": "(option: SelectOption, meta: SelectRenderOptionMeta) => ReactNode",
11798
11870
  "optional": true,
11799
11871
  "default": null,
11800
- "description": "",
11872
+ "description": "Fully replace an option's rendering, including the trailing selected check.",
11873
+ "inheritedFrom": null
11874
+ },
11875
+ {
11876
+ "name": "renderOptionContent",
11877
+ "type": "(option: SelectOption, meta: SelectRenderOptionMeta) => ReactNode",
11878
+ "optional": true,
11879
+ "default": null,
11880
+ "description": "Replace only the content portion of an option; the default selected check is still rendered by the component.",
11801
11881
  "inheritedFrom": null
11802
11882
  },
11803
11883
  {
@@ -11813,6 +11893,9 @@
11813
11893
  "Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onBlur' | 'onChange' | 'prefix'>"
11814
11894
  ],
11815
11895
  "relatedSymbols": [
11896
+ "SelectCustomPanelContext",
11897
+ "SelectCustomProps",
11898
+ "SelectCustomTriggerContext",
11816
11899
  "SelectMultipleValue",
11817
11900
  "SelectOption",
11818
11901
  "SelectOptionValue",
@@ -11828,12 +11911,10 @@
11828
11911
  "dropdown",
11829
11912
  "select"
11830
11913
  ],
11831
- "canonicalUsage": "import { Select } from '@1money/component-ui';\n// or\nimport { Select } from '@1money/component-ui/Select';",
11914
+ "memberMap": {
11915
+ "Custom": "$local:SelectCustom"
11916
+ },
11832
11917
  "examples": [
11833
- {
11834
- "hash": "ce52fe36100d5fa98b9745a1baf1b08d615fed812bf0a8c9022f4e95e68f2f13",
11835
- "source": "canonical"
11836
- },
11837
11918
  {
11838
11919
  "hash": "ce159c0e7bfe1dd2cc4a5af7ae9f34a34970888e35d8d9350afa752f3b6ee2b6",
11839
11920
  "source": "readme"
@@ -11846,6 +11927,18 @@
11846
11927
  "hash": "123291e7b1b33126adc91e8204e4002c37c71a74eb5bfca67a4da71b9aec2f6a",
11847
11928
  "source": "stories"
11848
11929
  },
11930
+ {
11931
+ "hash": "17a413d259fae192ca2f0c09fc23af856852b5f5ca65c1efa9dcb95480776ede",
11932
+ "source": "stories"
11933
+ },
11934
+ {
11935
+ "hash": "e4c665e871b8546f38972172c483114d1eef73a4fc2b83e6ad929d359c408796",
11936
+ "source": "stories"
11937
+ },
11938
+ {
11939
+ "hash": "20ec463b0b6df55a2fa2c5df4836735067151eb22ca13e76ea7b7795465b3141",
11940
+ "source": "stories"
11941
+ },
11849
11942
  {
11850
11943
  "hash": "9532a16e360ac90c4955a5d2fb7dbfd364a470857fe111e7c0f76c886afe2153",
11851
11944
  "source": "stories"
@@ -11870,9 +11963,130 @@
11870
11963
  "hash": "7f9b721c6811ebeeeda10ed23eb590ad0f0d00b3e64ce2aedb8a6e3b12179071",
11871
11964
  "source": "stories"
11872
11965
  },
11966
+ {
11967
+ "hash": "72f524de604ba1db3308d0b8f5131b0204abf6a3e411be78f4f61d0fc2081eb7",
11968
+ "source": "stories"
11969
+ },
11873
11970
  {
11874
11971
  "hash": "90bea0eac958ff92526a0901cd2515a8694e96039b3d056e709ede70bd1b4678",
11875
11972
  "source": "stories"
11973
+ },
11974
+ {
11975
+ "hash": "388bcf7888091d287918f2abfe24285c3cfff0239bf53bd18a57521a4d44c8e1",
11976
+ "source": "stories"
11977
+ },
11978
+ {
11979
+ "hash": "41af856d1d6a822e2c95f25c337807c0d18d1e445d318d07621beba85ce3e926",
11980
+ "source": "stories"
11981
+ },
11982
+ {
11983
+ "hash": "1cc244bf13712c43e79b378e25198234696ed488d0a147473327f0eb16c461bc",
11984
+ "source": "stories"
11985
+ }
11986
+ ]
11987
+ },
11988
+ {
11989
+ "name": "SelectCustomPanelContext",
11990
+ "kind": "type",
11991
+ "category": "input",
11992
+ "summary": "",
11993
+ "importPath": "@1money/component-ui",
11994
+ "subpathImport": "@1money/component-ui/Select",
11995
+ "sourceFile": "src/components/Select/interface.ts",
11996
+ "props": [],
11997
+ "extends": [],
11998
+ "relatedSymbols": [
11999
+ "Select",
12000
+ "SelectCustomProps",
12001
+ "SelectCustomTriggerContext",
12002
+ "SelectMultipleValue",
12003
+ "SelectOption",
12004
+ "SelectOptionValue",
12005
+ "SelectProps",
12006
+ "SelectRenderOptionMeta",
12007
+ "SelectRenderValueMeta",
12008
+ "SelectSingleValue",
12009
+ "SelectSize",
12010
+ "SelectStatus",
12011
+ "SelectValue"
12012
+ ],
12013
+ "searchTags": [],
12014
+ "typeText": "interface SelectCustomPanelContext { ... }",
12015
+ "canonicalUsage": "import { Select } from '@1money/component-ui';\n// or\nimport { Select } from '@1money/component-ui/Select';",
12016
+ "examples": [
12017
+ {
12018
+ "hash": "ce52fe36100d5fa98b9745a1baf1b08d615fed812bf0a8c9022f4e95e68f2f13",
12019
+ "source": "canonical"
12020
+ }
12021
+ ]
12022
+ },
12023
+ {
12024
+ "name": "SelectCustomProps",
12025
+ "kind": "type",
12026
+ "category": "input",
12027
+ "summary": "",
12028
+ "importPath": "@1money/component-ui",
12029
+ "subpathImport": "@1money/component-ui/Select",
12030
+ "sourceFile": "src/components/Select/interface.ts",
12031
+ "props": [],
12032
+ "extends": [],
12033
+ "relatedSymbols": [
12034
+ "Select",
12035
+ "SelectCustomPanelContext",
12036
+ "SelectCustomTriggerContext",
12037
+ "SelectMultipleValue",
12038
+ "SelectOption",
12039
+ "SelectOptionValue",
12040
+ "SelectProps",
12041
+ "SelectRenderOptionMeta",
12042
+ "SelectRenderValueMeta",
12043
+ "SelectSingleValue",
12044
+ "SelectSize",
12045
+ "SelectStatus",
12046
+ "SelectValue"
12047
+ ],
12048
+ "searchTags": [],
12049
+ "typeText": "interface SelectCustomProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onBlur' | 'prefix'> { ... }",
12050
+ "canonicalUsage": "import { Select } from '@1money/component-ui';\n// or\nimport { Select } from '@1money/component-ui/Select';",
12051
+ "examples": [
12052
+ {
12053
+ "hash": "ce52fe36100d5fa98b9745a1baf1b08d615fed812bf0a8c9022f4e95e68f2f13",
12054
+ "source": "canonical"
12055
+ }
12056
+ ]
12057
+ },
12058
+ {
12059
+ "name": "SelectCustomTriggerContext",
12060
+ "kind": "type",
12061
+ "category": "input",
12062
+ "summary": "",
12063
+ "importPath": "@1money/component-ui",
12064
+ "subpathImport": "@1money/component-ui/Select",
12065
+ "sourceFile": "src/components/Select/interface.ts",
12066
+ "props": [],
12067
+ "extends": [],
12068
+ "relatedSymbols": [
12069
+ "Select",
12070
+ "SelectCustomPanelContext",
12071
+ "SelectCustomProps",
12072
+ "SelectMultipleValue",
12073
+ "SelectOption",
12074
+ "SelectOptionValue",
12075
+ "SelectProps",
12076
+ "SelectRenderOptionMeta",
12077
+ "SelectRenderValueMeta",
12078
+ "SelectSingleValue",
12079
+ "SelectSize",
12080
+ "SelectStatus",
12081
+ "SelectValue"
12082
+ ],
12083
+ "searchTags": [],
12084
+ "typeText": "interface SelectCustomTriggerContext { ... }",
12085
+ "canonicalUsage": "import { Select } from '@1money/component-ui';\n// or\nimport { Select } from '@1money/component-ui/Select';",
12086
+ "examples": [
12087
+ {
12088
+ "hash": "ce52fe36100d5fa98b9745a1baf1b08d615fed812bf0a8c9022f4e95e68f2f13",
12089
+ "source": "canonical"
11876
12090
  }
11877
12091
  ]
11878
12092
  },
@@ -11888,6 +12102,9 @@
11888
12102
  "extends": [],
11889
12103
  "relatedSymbols": [
11890
12104
  "Select",
12105
+ "SelectCustomPanelContext",
12106
+ "SelectCustomProps",
12107
+ "SelectCustomTriggerContext",
11891
12108
  "SelectOption",
11892
12109
  "SelectOptionValue",
11893
12110
  "SelectProps",
@@ -11920,6 +12137,9 @@
11920
12137
  "extends": [],
11921
12138
  "relatedSymbols": [
11922
12139
  "Select",
12140
+ "SelectCustomPanelContext",
12141
+ "SelectCustomProps",
12142
+ "SelectCustomTriggerContext",
11923
12143
  "SelectMultipleValue",
11924
12144
  "SelectOptionValue",
11925
12145
  "SelectProps",
@@ -11952,6 +12172,9 @@
11952
12172
  "extends": [],
11953
12173
  "relatedSymbols": [
11954
12174
  "Select",
12175
+ "SelectCustomPanelContext",
12176
+ "SelectCustomProps",
12177
+ "SelectCustomTriggerContext",
11955
12178
  "SelectMultipleValue",
11956
12179
  "SelectOption",
11957
12180
  "SelectProps",
@@ -11984,6 +12207,9 @@
11984
12207
  "extends": [],
11985
12208
  "relatedSymbols": [
11986
12209
  "Select",
12210
+ "SelectCustomPanelContext",
12211
+ "SelectCustomProps",
12212
+ "SelectCustomTriggerContext",
11987
12213
  "SelectMultipleValue",
11988
12214
  "SelectOption",
11989
12215
  "SelectOptionValue",
@@ -12016,6 +12242,9 @@
12016
12242
  "extends": [],
12017
12243
  "relatedSymbols": [
12018
12244
  "Select",
12245
+ "SelectCustomPanelContext",
12246
+ "SelectCustomProps",
12247
+ "SelectCustomTriggerContext",
12019
12248
  "SelectMultipleValue",
12020
12249
  "SelectOption",
12021
12250
  "SelectOptionValue",
@@ -12048,6 +12277,9 @@
12048
12277
  "extends": [],
12049
12278
  "relatedSymbols": [
12050
12279
  "Select",
12280
+ "SelectCustomPanelContext",
12281
+ "SelectCustomProps",
12282
+ "SelectCustomTriggerContext",
12051
12283
  "SelectMultipleValue",
12052
12284
  "SelectOption",
12053
12285
  "SelectOptionValue",
@@ -12080,6 +12312,9 @@
12080
12312
  "extends": [],
12081
12313
  "relatedSymbols": [
12082
12314
  "Select",
12315
+ "SelectCustomPanelContext",
12316
+ "SelectCustomProps",
12317
+ "SelectCustomTriggerContext",
12083
12318
  "SelectMultipleValue",
12084
12319
  "SelectOption",
12085
12320
  "SelectOptionValue",
@@ -12112,6 +12347,9 @@
12112
12347
  "extends": [],
12113
12348
  "relatedSymbols": [
12114
12349
  "Select",
12350
+ "SelectCustomPanelContext",
12351
+ "SelectCustomProps",
12352
+ "SelectCustomTriggerContext",
12115
12353
  "SelectMultipleValue",
12116
12354
  "SelectOption",
12117
12355
  "SelectOptionValue",
@@ -12144,6 +12382,9 @@
12144
12382
  "extends": [],
12145
12383
  "relatedSymbols": [
12146
12384
  "Select",
12385
+ "SelectCustomPanelContext",
12386
+ "SelectCustomProps",
12387
+ "SelectCustomTriggerContext",
12147
12388
  "SelectMultipleValue",
12148
12389
  "SelectOption",
12149
12390
  "SelectOptionValue",
@@ -12176,6 +12417,9 @@
12176
12417
  "extends": [],
12177
12418
  "relatedSymbols": [
12178
12419
  "Select",
12420
+ "SelectCustomPanelContext",
12421
+ "SelectCustomProps",
12422
+ "SelectCustomTriggerContext",
12179
12423
  "SelectMultipleValue",
12180
12424
  "SelectOption",
12181
12425
  "SelectOptionValue",
@@ -18344,6 +18588,9 @@
18344
18588
  {
18345
18589
  "name": "document"
18346
18590
  },
18591
+ {
18592
+ "name": "downloadReport"
18593
+ },
18347
18594
  {
18348
18595
  "name": "earn"
18349
18596
  },
@@ -18679,6 +18926,11 @@
18679
18926
  }
18680
18927
  ],
18681
18928
  "diagnostics": {
18682
- "canonical": []
18929
+ "canonical": [
18930
+ {
18931
+ "symbolName": "Select",
18932
+ "reason": "module has no canonical.md; manual curation required"
18933
+ }
18934
+ ]
18683
18935
  }
18684
18936
  }