@canonical/react-ds-global 0.44.1 → 0.45.0

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.
@@ -10,7 +10,7 @@ const componentCssClassName = "ds modal-footer";
10
10
  *
11
11
  * @implements ds:global.subcomponent.modal-footer
12
12
  */
13
- const Footer = ({ children, className, ...props }) => (_jsx("footer", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: children }));
13
+ const Footer = ({ children, className, ...props }) => (_jsx("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: children }));
14
14
  Footer.displayName = "Modal.Footer";
15
15
  export default Footer;
16
16
  //# sourceMappingURL=Footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE,CAAC,CACrC,iBACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,QAAQ,GACF,CACV,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,cAAc,CAAC;AAEpC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE,CAAC,CACrC,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,cAAc,CAAC;AAEpC,eAAe,MAAM,CAAC"}
@@ -20,7 +20,7 @@ const componentCssClassName = "ds modal-header";
20
20
  */
21
21
  const Header = ({ children, titleId, undismissible = false, dismissLabel = "Close", onDismiss, className, ...props }) => {
22
22
  const modal = useModalContext();
23
- return (_jsxs("header", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [_jsx("span", { className: "title", id: titleId ?? modal.titleId, children: children }), !undismissible && (_jsx(Button, { type: "button", className: "close", importance: "tertiary", icon: "close", "aria-label": dismissLabel, onClick: onDismiss ?? modal.onDismiss }))] }));
23
+ return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [_jsx("span", { className: "title", id: titleId ?? modal.titleId, children: children }), !undismissible && (_jsx(Button, { type: "button", className: "close", importance: "tertiary", icon: "close", "aria-label": dismissLabel, onClick: onDismiss ?? modal.onDismiss }))] }));
24
24
  };
25
25
  Header.displayName = "Modal.Header";
26
26
  export default Header;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Header/Header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,OAAO,EACP,aAAa,GAAG,KAAK,EACrB,YAAY,GAAG,OAAO,EACtB,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE;IACpC,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,CACL,kBACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,eAAM,SAAS,EAAC,OAAO,EAAC,EAAE,EAAE,OAAO,IAAI,KAAK,CAAC,OAAO,YACjD,QAAQ,GACJ,EACN,CAAC,aAAa,IAAI,CACjB,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,OAAO,EACjB,UAAU,EAAC,UAAU,EACrB,IAAI,EAAC,OAAO,gBACA,YAAY,EACxB,OAAO,EAAE,SAAS,IAAI,KAAK,CAAC,SAAS,GACrC,CACH,IACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,cAAc,CAAC;AAEpC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Header/Header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,OAAO,EACP,aAAa,GAAG,KAAK,EACrB,YAAY,GAAG,OAAO,EACtB,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE;IACpC,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,eAAM,SAAS,EAAC,OAAO,EAAC,EAAE,EAAE,OAAO,IAAI,KAAK,CAAC,OAAO,YACjD,QAAQ,GACJ,EACN,CAAC,aAAa,IAAI,CACjB,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,OAAO,EACjB,UAAU,EAAC,UAAU,EACrB,IAAI,EAAC,OAAO,gBACA,YAAY,EACxB,OAAO,EAAE,SAAS,IAAI,KAAK,CAAC,SAAS,GACrC,CACH,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,cAAc,CAAC;AAEpC,eAAe,MAAM,CAAC"}
@@ -11,6 +11,6 @@ type OwnProps = {
11
11
  *
12
12
  * @implements ds:global.subcomponent.modal-footer
13
13
  */
14
- export type FooterProps = OwnProps & Omit<ComponentProps<"footer">, keyof OwnProps>;
14
+ export type FooterProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
15
15
  export {};
16
16
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -31,6 +31,6 @@ type OwnProps = {
31
31
  *
32
32
  * @implements ds:global.subcomponent.modal-header
33
33
  */
34
- export type HeaderProps = OwnProps & Omit<ComponentProps<"header">, keyof OwnProps>;
34
+ export type HeaderProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
35
35
  export {};
36
36
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-global",
3
- "version": "0.44.1",
3
+ "version": "0.45.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -53,25 +53,25 @@
53
53
  "test:vitest:watch": "vitest"
54
54
  },
55
55
  "dependencies": {
56
- "@canonical/design-tokens": "0.43.0",
57
- "@canonical/ds-assets": "^0.44.1",
58
- "@canonical/ds-utils": "^0.44.1",
59
- "@canonical/react-hooks": "^0.44.1",
60
- "@canonical/storybook-config": "^0.44.1",
61
- "@canonical/styles": "^0.44.1",
56
+ "@canonical/ds-assets": "^0.45.0",
57
+ "@canonical/ds-utils": "^0.45.0",
58
+ "@canonical/react-hooks": "^0.45.0",
59
+ "@canonical/storybook-config": "^0.45.0",
60
+ "@canonical/styles": "^0.45.0",
62
61
  "react": "^19.2.4",
63
62
  "react-dom": "^19.2.4"
64
63
  },
65
64
  "devDependencies": {
66
65
  "@biomejs/biome": "2.5.15",
67
66
  "@canonical/biome-config": "0.43.0",
68
- "@canonical/ds-types": "^0.44.1",
69
- "@canonical/router-core": "^0.44.1",
70
- "@canonical/router-react": "^0.44.1",
71
- "@canonical/storybook-addon-utils": "^0.44.1",
72
- "@canonical/storybook-helpers": "^0.44.1",
73
- "@canonical/typescript-config-react": "^0.44.1",
74
- "@canonical/vitest-config-react": "^0.44.1",
67
+ "@canonical/design-tokens": "0.43.0",
68
+ "@canonical/ds-types": "^0.45.0",
69
+ "@canonical/router-core": "^0.45.0",
70
+ "@canonical/router-react": "^0.45.0",
71
+ "@canonical/storybook-addon-utils": "^0.45.0",
72
+ "@canonical/storybook-helpers": "^0.45.0",
73
+ "@canonical/typescript-config-react": "^0.45.0",
74
+ "@canonical/vitest-config-react": "^0.45.0",
75
75
  "@canonical/webarchitect": "0.43.0",
76
76
  "@chromatic-com/storybook": "^5.0.1",
77
77
  "@storybook/addon-docs": "^10.6.0",
@@ -90,5 +90,5 @@
90
90
  "vite": "^8.0.1",
91
91
  "vitest": "^5.0.0"
92
92
  },
93
- "gitHead": "81ed283dd7509fb5de86dfe39021c62de3e31b5e"
93
+ "gitHead": "f8c2473f9aa92d14c24f0976f2f02ebc4944f32f"
94
94
  }