@clubmed/trident-ui 1.1.0-rc.1 → 1.1.0-rc.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # ClubMed React UI components changelog
2
2
 
3
+ # [1.1.0-rc.2](https://scm.clubmed.com/clubmed/cm-trident-ui/compare/v1.1.0-rc.1...v1.1.0-rc.2) (2024-10-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **molecules:** add w-full on ButtonContent ([45b7dcb](https://scm.clubmed.com/clubmed/cm-trident-ui/-/commit/45b7dcb24124953697a351c92a585f221113104d))
9
+
3
10
  # [1.1.0-rc.1](https://scm.clubmed.com/clubmed/cm-trident-ui/compare/v1.0.1...v1.1.0-rc.1) (2024-10-17)
4
11
 
5
12
 
@@ -1,12 +1,12 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import { Icon as p } from "../../atoms/Icons/Icon.js";
3
3
  import "../../atoms/Icons/contexts/IconsContext.js";
4
- const x = ({ showLabel: r, label: t, children: s, icon: e, iconType: o }) => /* @__PURE__ */ m("span", { className: "flex items-center justify-center gap-x-8", children: [
4
+ const l = ({ showLabel: r, label: t, children: s, icon: e, iconType: o }) => /* @__PURE__ */ m("span", { className: "flex items-center justify-center gap-x-8 w-full", children: [
5
5
  r ? t : /* @__PURE__ */ n("span", { className: "sr-only", children: t }),
6
6
  s,
7
7
  e && /* @__PURE__ */ n(p, { width: "24px", name: e, type: o })
8
8
  ] });
9
9
  export {
10
- x as ButtonContent
10
+ l as ButtonContent
11
11
  };
12
12
  //# sourceMappingURL=ButtonContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonContent.js","sources":["../../../lib/molecules/Buttons/ButtonContent.tsx"],"sourcesContent":["import { FunctionComponent, ReactNode } from 'react';\n\nimport { Icon, IconicNames, IconicTypes } from '@/atoms/Icons';\n\nexport const ButtonContent: FunctionComponent<{\n showLabel: boolean;\n label?: string;\n children?: ReactNode;\n icon?: IconicNames;\n iconType?: IconicTypes;\n}> = ({ showLabel, label, children, icon, iconType }) => {\n return (\n <span className=\"flex items-center justify-center gap-x-8\">\n {showLabel ? label : <span className=\"sr-only\">{label}</span>}\n {children}\n {icon && <Icon width=\"24px\" name={icon} type={iconType} />}\n </span>\n );\n};\n"],"names":["ButtonContent","showLabel","label","children","icon","iconType","jsxs","jsx","Icon"],"mappings":";;;AAIa,MAAAA,IAMR,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,MAAAC,GAAM,UAAAC,QAEtC,gBAAAC,EAAC,QAAK,EAAA,WAAU,4CACb,UAAA;AAAA,EAAAL,IAAYC,IAAQ,gBAAAK,EAAC,QAAK,EAAA,WAAU,WAAW,UAAML,GAAA;AAAA,EACrDC;AAAA,EACAC,uBAASI,GAAK,EAAA,OAAM,QAAO,MAAMJ,GAAM,MAAMC,GAAU;AAC1D,EAAA,CAAA;"}
1
+ {"version":3,"file":"ButtonContent.js","sources":["../../../lib/molecules/Buttons/ButtonContent.tsx"],"sourcesContent":["import { FunctionComponent, ReactNode } from 'react';\n\nimport { Icon, IconicNames, IconicTypes } from '@/atoms/Icons';\n\nexport const ButtonContent: FunctionComponent<{\n showLabel: boolean;\n label?: string;\n children?: ReactNode;\n icon?: IconicNames;\n iconType?: IconicTypes;\n}> = ({ showLabel, label, children, icon, iconType }) => {\n return (\n <span className=\"flex items-center justify-center gap-x-8 w-full\">\n {showLabel ? label : <span className=\"sr-only\">{label}</span>}\n {children}\n {icon && <Icon width=\"24px\" name={icon} type={iconType} />}\n </span>\n );\n};\n"],"names":["ButtonContent","showLabel","label","children","icon","iconType","jsxs","jsx","Icon"],"mappings":";;;AAIa,MAAAA,IAMR,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,MAAAC,GAAM,UAAAC,QAEtC,gBAAAC,EAAC,QAAK,EAAA,WAAU,mDACb,UAAA;AAAA,EAAAL,IAAYC,IAAQ,gBAAAK,EAAC,QAAK,EAAA,WAAU,WAAW,UAAML,GAAA;AAAA,EACrDC;AAAA,EACAC,uBAASI,GAAK,EAAA,OAAM,QAAO,MAAMJ,GAAM,MAAMC,GAAU;AAC1D,EAAA,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clubmed/trident-ui",
3
- "version": "1.1.0-rc.1",
3
+ "version": "1.1.0-rc.2",
4
4
  "type": "module",
5
5
  "description": "Shared ClubMed React UI components",
6
6
  "keywords": [
@@ -31,16 +31,16 @@
31
31
  "import": "./atoms/Icons/index.js",
32
32
  "default": "./atoms/Icons/index.js"
33
33
  },
34
- "./atoms/Icons/svg-use": {
35
- "types": "./atoms/Icons/svg-use/index.d.ts",
36
- "import": "./atoms/Icons/svg-use/index.js",
37
- "default": "./atoms/Icons/svg-use/index.js"
38
- },
39
34
  "./atoms/Icons/svg": {
40
35
  "types": "./atoms/Icons/svg/index.d.ts",
41
36
  "import": "./atoms/Icons/svg/index.js",
42
37
  "default": "./atoms/Icons/svg/index.js"
43
38
  },
39
+ "./atoms/Icons/svg-use": {
40
+ "types": "./atoms/Icons/svg-use/index.d.ts",
41
+ "import": "./atoms/Icons/svg-use/index.js",
42
+ "default": "./atoms/Icons/svg-use/index.js"
43
+ },
44
44
  "./molecules/Tabs": {
45
45
  "types": "./molecules/Tabs/index.d.ts",
46
46
  "import": "./molecules/Tabs/index.js",