freemium-ui 2.0.0-beta.25 → 2.0.0-beta.27
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/dist/index.cjs.js +3 -3
- package/dist/index.js +3 -3
- package/dist/package.json +1 -1
- package/package.json +12 -12
package/dist/index.cjs.js
CHANGED
|
@@ -742,9 +742,9 @@ height:"24px",size:"12px"},normal:{height:"32px",size:"14px"}},er=on.button`
|
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
744
|
`,tr=({size:t="normal",variant:n="primary",children:r="",loading:a=!1,inline:o=!0,...i})=>(e.useEffect((()=>{
|
|
745
|
-
"string"==typeof r||i["aria-
|
|
745
|
+
"string"==typeof r||i["aria-label"]||console.warn("The `aria-label` prop is required when the children of the Button are not a string. This is to ensure that assistive technologies can announce the content of the button. Please provide a valid `aria-describedby` prop to the Button component.")
|
|
746
746
|
}),[]),e.createElement(er,{size:t,variant:n,inline:o,disabled:i.disabled||a,
|
|
747
|
-
"aria-disabled":i.disabled||a,"aria-
|
|
747
|
+
"aria-disabled":i.disabled||a,"aria-label":"string"==typeof r?r:void 0,
|
|
748
748
|
role:"button",...i
|
|
749
749
|
},a?e.createElement(nr,null):r)),nr=()=>e.createElement(e.Fragment,null,"..."),rr=t=>e.createElement("svg",{
|
|
750
750
|
width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",
|
|
@@ -1686,7 +1686,7 @@ const{isOpen:n,trigger:r,closeMenuCallback:a,idAccessor:o="id",nameAccessor:i="n
|
|
|
1686
1686
|
side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:v,avoidCollisions:g,
|
|
1687
1687
|
className:"DropdownMenuContent"},u.map((t=>c?c(t,{disabled:t?.disabled,
|
|
1688
1688
|
className:"DropdownMenuItem",key:t?.[o],onSelect:()=>l?.(t),
|
|
1689
|
-
isSelected:d?.[o]===t?.[o]}):e.createElement(Pl,{disabled:t?.disabled,
|
|
1689
|
+
isSelected:d?.[o]===t?.[o]}):e.createElement(Pl,{id:t?.[o],disabled:t?.disabled,
|
|
1690
1690
|
className:"DropdownMenuItem",key:t?.[o],onSelect:()=>l?.(t),
|
|
1691
1691
|
isSelected:d?.[o]===t?.[o]},t?.[i]))),s&&e.createElement(Tl,{
|
|
1692
1692
|
className:"DropdownMenuArrow"}))))};function Ol(t){const n=e.useRef({value:t,
|
package/dist/index.js
CHANGED
|
@@ -751,9 +751,9 @@ height:"32px",size:"14px"}},Cr=En.button`
|
|
|
751
751
|
);
|
|
752
752
|
}
|
|
753
753
|
`,zr=({size:e="normal",variant:n="primary",children:r="",loading:a=!1,inline:o=!0,...i})=>(t.useEffect((()=>{
|
|
754
|
-
"string"==typeof r||i["aria-
|
|
754
|
+
"string"==typeof r||i["aria-label"]||console.warn("The `aria-label` prop is required when the children of the Button are not a string. This is to ensure that assistive technologies can announce the content of the button. Please provide a valid `aria-describedby` prop to the Button component.")
|
|
755
755
|
}),[]),t.createElement(Cr,{size:e,variant:n,inline:o,disabled:i.disabled||a,
|
|
756
|
-
"aria-disabled":i.disabled||a,"aria-
|
|
756
|
+
"aria-disabled":i.disabled||a,"aria-label":"string"==typeof r?r:void 0,
|
|
757
757
|
role:"button",...i
|
|
758
758
|
},a?t.createElement(Mr,null):r)),Mr=()=>t.createElement(t.Fragment,null,"..."),xr=e=>t.createElement("svg",{
|
|
759
759
|
width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",
|
|
@@ -1668,7 +1668,7 @@ const{isOpen:n,trigger:r,closeMenuCallback:a,idAccessor:o="id",nameAccessor:i="n
|
|
|
1668
1668
|
side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:v,avoidCollisions:g,
|
|
1669
1669
|
className:"DropdownMenuContent"},u.map((e=>c?c(e,{disabled:e?.disabled,
|
|
1670
1670
|
className:"DropdownMenuItem",key:e?.[o],onSelect:()=>l?.(e),
|
|
1671
|
-
isSelected:d?.[o]===e?.[o]}):t.createElement(rc,{disabled:e?.disabled,
|
|
1671
|
+
isSelected:d?.[o]===e?.[o]}):t.createElement(rc,{id:e?.[o],disabled:e?.disabled,
|
|
1672
1672
|
className:"DropdownMenuItem",key:e?.[o],onSelect:()=>l?.(e),
|
|
1673
1673
|
isSelected:d?.[o]===e?.[o]},e?.[i]))),s&&t.createElement(tc,{
|
|
1674
1674
|
className:"DropdownMenuArrow"}))))
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freemium-ui",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.27",
|
|
4
4
|
"description": "React Ui Components for Freemium Apps",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
41
41
|
"@rollup/plugin-terser": "^0.4.4",
|
|
42
42
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
43
|
-
"@storybook/addon-essentials": "^
|
|
44
|
-
"@storybook/addon-interactions": "^
|
|
45
|
-
"@storybook/addon-links": "^
|
|
46
|
-
"@storybook/addon-onboarding": "^
|
|
47
|
-
"@storybook/blocks": "^
|
|
48
|
-
"@storybook/preset-create-react-app": "^
|
|
49
|
-
"@storybook/preview-api": "^
|
|
50
|
-
"@storybook/react": "^
|
|
51
|
-
"@storybook/react-webpack5": "^
|
|
52
|
-
"@storybook/
|
|
43
|
+
"@storybook/addon-essentials": "^8.0.0",
|
|
44
|
+
"@storybook/addon-interactions": "^8.0.0",
|
|
45
|
+
"@storybook/addon-links": "^8.0.0",
|
|
46
|
+
"@storybook/addon-onboarding": "^8.0.0",
|
|
47
|
+
"@storybook/blocks": "^8.0.0",
|
|
48
|
+
"@storybook/preset-create-react-app": "^8.0.0",
|
|
49
|
+
"@storybook/preview-api": "^8.0.0",
|
|
50
|
+
"@storybook/react": "^8.0.0",
|
|
51
|
+
"@storybook/react-webpack5": "^8.0.0",
|
|
52
|
+
"@storybook/test": "^8.0.0",
|
|
53
53
|
"@testing-library/jest-dom": "^5.17.0",
|
|
54
54
|
"@testing-library/react": "^13.4.0",
|
|
55
55
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"rollup-plugin-dts": "^6.1.0",
|
|
72
72
|
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
73
73
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
74
|
-
"storybook": "^
|
|
74
|
+
"storybook": "^8.0.0",
|
|
75
75
|
"webpack": "^5.90.3"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|