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 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-describedby"]||console.warn("The `aria-describedby` 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.")
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-describedby":"string"==typeof r?r:void 0,
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-describedby"]||console.warn("The `aria-describedby` 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.")
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-describedby":"string"==typeof r?r:void 0,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.25",
3
+ "version": "2.0.0-beta.27",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.25",
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": "^7.6.17",
44
- "@storybook/addon-interactions": "^7.6.17",
45
- "@storybook/addon-links": "^7.6.17",
46
- "@storybook/addon-onboarding": "^1.0.11",
47
- "@storybook/blocks": "^7.6.17",
48
- "@storybook/preset-create-react-app": "^7.6.17",
49
- "@storybook/preview-api": "^7.6.17",
50
- "@storybook/react": "^7.6.17",
51
- "@storybook/react-webpack5": "^7.6.17",
52
- "@storybook/testing-library": "^0.2.2",
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": "^7.6.17",
74
+ "storybook": "^8.0.0",
75
75
  "webpack": "^5.90.3"
76
76
  },
77
77
  "scripts": {