@1money/component-ui 0.1.0 → 0.1.2

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.1.0",
3
+ "version": "0.1.2",
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",
@@ -859,6 +859,12 @@
859
859
  "source": "stories",
860
860
  "compilable": true
861
861
  },
862
+ "47356f7bc719de8fefb76c03a044f67cac06562b7a37404173ebfed7332039cb": {
863
+ "title": "Logo",
864
+ "code": "{\n const handleCopy = (el: string) => {\n copy(el);\n };\n\n return <div style={{\n display: 'grid', flexDirection: 'row', gap: 24, flexWrap: 'wrap', gridTemplateColumns: 'repeat(auto-fill, minmax(222px, 1fr))'\n }}>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logo' />\")}>\n <Icons {...args} name='logo' />\n <span>logo</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWord' />\")}>\n <Icons {...args} name='logoWord' width={150} height={30} />\n <span>logoWord</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoNetwork' />\")}>\n <Icons {...args} name='logoNetwork' width={150} height={30} />\n <span>logoNetwork</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithWords' />\")}>\n <Icons {...args} name='logoWithWords' width={180} height={36} />\n <span>logoWithWords</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithWords' networkLogo />\")}>\n <Icons {...args} name='logoWithWords' width={320} height={30} networkLogo />\n <span>logoWithWordsAndNetwork</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoBg' />\")}>\n <Icons {...args} name='logoBg' width={56} height={57} />\n <span>logoBg</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoBeta' />\")}>\n <Icons {...args} name='logoBeta' width={30} height={9} />\n <span>logoBeta</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithBeta' />\")}>\n <Icons {...args} name='logoWithBeta' width={152} height={22} />\n <span>logoWithBeta</span>\n </CopyIconBox>\n {/* Sized at the artwork's own 389:32 ratio. The part widths are fractions\n of `width` while the pinwheel is sized off `height`, so an arbitrary\n pair skews the spacing — the same assumption the three-part lockups\n above already make. */}\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithBeta' networkLogo />\")}>\n <Icons {...args} name='logoWithBeta' width={389} height={32} networkLogo />\n <span>logoWithBetaAndNetwork</span>\n </CopyIconBox>\n </div>;\n }",
865
+ "source": "stories",
866
+ "compilable": false
867
+ },
862
868
  "4844dfaf4dff931b3d5b14135a788fc632daa05669c14237139b0a15e6d1a793": {
863
869
  "title": "Click Trigger",
864
870
  "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>",
@@ -1957,12 +1963,6 @@
1957
1963
  "source": "stories",
1958
1964
  "compilable": false
1959
1965
  },
1960
- "a56b698411c5aa0624871fc60a5699dc1b9226f3ce9553b8fc9f1bbe7a3e4be7": {
1961
- "title": "Logo",
1962
- "code": "{\n const handleCopy = (el: string) => {\n copy(el);\n };\n\n return <div style={{\n display: 'grid', flexDirection: 'row', gap: 24, flexWrap: 'wrap', gridTemplateColumns: 'repeat(auto-fill, minmax(222px, 1fr))'\n }}>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logo' />\")}>\n <Icons {...args} name='logo' />\n <span>logo</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWord' />\")}>\n <Icons {...args} name='logoWord' width={150} height={30} />\n <span>logoWord</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoNetwork' />\")}>\n <Icons {...args} name='logoNetwork' width={150} height={30} />\n <span>logoNetwork</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithWords' />\")}>\n <Icons {...args} name='logoWithWords' width={180} height={36} />\n <span>logoWithWords</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithWords' networkLogo />\")}>\n <Icons {...args} name='logoWithWords' width={320} height={30} networkLogo />\n <span>logoWithWordsAndNetwork</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoBg' />\")}>\n <Icons {...args} name='logoBg' width={56} height={57} />\n <span>logoBg</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoBeta' />\")}>\n <Icons {...args} name='logoBeta' width={30} height={9} />\n <span>logoBeta</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='logoWithBeta' />\")}>\n <Icons {...args} name='logoWithBeta' width={152} height={22} />\n <span>logoWithBeta</span>\n </CopyIconBox>\n </div>;\n }",
1963
- "source": "stories",
1964
- "compilable": false
1965
- },
1966
1966
  "a5a04f0b0f7ad14c2ae616df4f7820ea44171f7317f4ba0ab23f15985159dc24": {
1967
1967
  "title": "Group Directions",
1968
1968
  "code": "{\n const [verticalValue, setVerticalValue] = React.useState<string | number>('a');\n const [horizontalValue, setHorizontalValue] = React.useState<string | number>('a');\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>\n <h3 style={{ marginBottom: 12 }}>Direction Vertical</h3>\n <RadioGroup value={verticalValue} onChange={handleVerticalChange} direction=\"vertical\">\n <Radio value=\"a\" label=\"Option A\" />\n <Radio value=\"b\" label=\"Option B\" />\n <Radio value=\"c\" label=\"Option C\" />\n </RadioGroup>\n </div>\n <div>\n <h3 style={{ marginBottom: 12 }}>Direction Horizontal</h3>\n <RadioGroup value={horizontalValue} onChange={handleHorizontalChange} direction=\"horizontal\">\n <Radio value=\"a\" label=\"Option A\" />\n <Radio value=\"b\" label=\"Option B\" />\n <Radio value=\"c\" label=\"Option C\" />\n </RadioGroup>\n </div>\n </div>\n );\n }",
@@ -5609,7 +5609,7 @@
5609
5609
  "source": "stories"
5610
5610
  },
5611
5611
  {
5612
- "hash": "a56b698411c5aa0624871fc60a5699dc1b9226f3ce9553b8fc9f1bbe7a3e4be7",
5612
+ "hash": "47356f7bc719de8fefb76c03a044f67cac06562b7a37404173ebfed7332039cb",
5613
5613
  "source": "stories"
5614
5614
  },
5615
5615
  {