@arthurzakharov/ui-kit 1.0.10 → 1.0.11

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.
@@ -0,0 +1 @@
1
+ ._Footer_1d9p0_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;white-space:nowrap;gap:var(--rm-ui-padding-md)}._FooterCopyright_1d9p0_11{font-family:var(--rm-ui-font-family-light),sans-serif;font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}._FooterLinks_1d9p0_18{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--rm-ui-padding-md)}._FooterLink_1d9p0_18{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center}._FooterButton_1d9p0_36{cursor:pointer;border:none;background-color:transparent;padding:0;outline-offset:2px;outline-color:var(--rm-ui-color-focus);font-family:var(--rm-ui-font-family-light),sans-serif;font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}._FooterSeparator_1d9p0_49{display:none}@media screen and (min-width:768px){._Footer_1d9p0_1{flex-direction:row-reverse;justify-content:space-between}._FooterLinks_1d9p0_18{gap:0}._FooterLink_1d9p0_18:last-of-type ._FooterSeparator_1d9p0_49{display:none}._FooterSeparator_1d9p0_49{display:flex;border-right:1px solid var(--rm-ui-color-text-secondary);margin-right:var(--rm-ui-padding-xs);margin-left:var(--rm-ui-padding-xs);height:16px}}
@@ -0,0 +1,10 @@
1
+ interface FooterLink {
2
+ text: string;
3
+ onClick: () => void;
4
+ }
5
+ export interface FooterProps {
6
+ name: string;
7
+ links: () => FooterLink[];
8
+ }
9
+ export declare const Footer: (props: FooterProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,32 @@
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
+ import '../../assets/footer-C0KnXuGM.css';const i = "_Footer_1d9p0_1", p = "_FooterCopyright_1d9p0_11", _ = "_FooterLinks_1d9p0_18", l = "_FooterLink_1d9p0_18", d = "_FooterButton_1d9p0_36", u = "_FooterSeparator_1d9p0_49", t = {
3
+ Footer: i,
4
+ FooterCopyright: p,
5
+ FooterLinks: _,
6
+ FooterLink: l,
7
+ FooterButton: d,
8
+ FooterSeparator: u
9
+ }, k = (n) => {
10
+ const { name: s = "", links: a = () => [] } = n, c = (o) => o ? `© ${(/* @__PURE__ */ new Date()).getFullYear()} ${o}` : "";
11
+ return /* @__PURE__ */ e("footer", { className: t.Footer, children: [
12
+ /* @__PURE__ */ r("span", { "data-testid": "footer-copyright", className: t.FooterCopyright, children: c(s) }),
13
+ /* @__PURE__ */ r("ul", { className: t.FooterLinks, children: a().map((o) => /* @__PURE__ */ e("li", { className: t.FooterLink, children: [
14
+ /* @__PURE__ */ r(
15
+ "button",
16
+ {
17
+ "data-testid": "footer-button",
18
+ type: "button",
19
+ className: t.FooterButton,
20
+ onClick: (F) => {
21
+ F.currentTarget.blur(), o.onClick();
22
+ },
23
+ children: o.text
24
+ }
25
+ ),
26
+ /* @__PURE__ */ r("div", { className: t.FooterSeparator })
27
+ ] }, o.text)) })
28
+ ] });
29
+ };
30
+ export {
31
+ k as Footer
32
+ };
package/dist/main.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { Certifications, type CertificationsProps } from './components/certifications/certifications.component';
2
2
  export { Control } from './components/control/control.component';
3
+ export { Footer, type FooterProps } from './components/footer/footer.component';
3
4
  export { Header, type HeaderProps } from './components/header/header.component';
package/dist/main.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import { Certifications as e } from "./components/certifications/certifications.component.js";
2
2
  import { Control as f } from "./components/control/control.component.js";
3
- import { Header as m } from "./components/header/header.component.js";
3
+ import { Footer as p } from "./components/footer/footer.component.js";
4
+ import { Header as i } from "./components/header/header.component.js";
4
5
  import './assets/main-BgL82qFL.css';export {
5
6
  e as Certifications,
6
7
  f as Control,
7
- m as Header
8
+ p as Footer,
9
+ i as Header
8
10
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",