@cityofportland/components-react 1.0.0-alpha.2 → 1.0.0-alpha.4
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/README.md +30 -259
- package/dist/alert/alert.css +1 -0
- package/dist/alert/alert.d.ts +11 -0
- package/dist/alert/alert.es.js +3473 -0
- package/dist/alert/index.d.ts +1 -0
- package/dist/box/box.d.ts +51 -0
- package/dist/box/box.es.js +4 -0
- package/dist/box/index.d.ts +1 -0
- package/dist/button/button.css +1 -0
- package/dist/button/button.d.ts +9 -0
- package/dist/button/button.es.js +34 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/city-seal/city-seal.css +1 -0
- package/dist/city-seal/city-seal.d.ts +18 -0
- package/dist/city-seal/city-seal.es.js +22 -0
- package/dist/city-seal/index.d.ts +1 -0
- package/dist/footer/footer.css +1 -0
- package/dist/footer/footer.d.ts +19 -0
- package/dist/footer/footer.es.js +10987 -0
- package/dist/footer/footer.test.d.ts +1 -0
- package/dist/footer/index.d.ts +1 -0
- package/dist/header/header.css +1 -0
- package/dist/header/header.d.ts +19 -0
- package/dist/header/header.es.js +43 -0
- package/dist/header/index.d.ts +1 -0
- package/dist/index/index.css +1 -0
- package/dist/index-C4cFhgXK.js +68 -0
- package/dist/index-IqW719eK.js +1484 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/tag.css +1 -0
- package/dist/tag/tag.d.ts +7 -0
- package/dist/tag/tag.es.js +16 -0
- package/dist/utils.d.ts +3 -0
- package/package.json +8 -7
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CitySealProps } from '@cityofportland/types/city-seal';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface ReactCitySealProps extends CitySealProps {
|
|
4
|
+
size?: CitySealProps["size"];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* CitySeal component with two size variations (large and small). The component is
|
|
9
|
+
* designed to be flexible, allowing you to add custom CSS classes via the
|
|
10
|
+
* `className` prop. This enables you to easily customize the appearance of the
|
|
11
|
+
* City Seal by adding your own styles or utility classes as needed.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Large City Seal with a custom class
|
|
15
|
+
* <CitySeal className="my-custom-class" size="lg" />
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare const CitySeal: React.FC<ReactCitySealProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as r } from "../index-IqW719eK.js";
|
|
2
|
+
function l({
|
|
3
|
+
className: t = "",
|
|
4
|
+
size: i = "lg"
|
|
5
|
+
}) {
|
|
6
|
+
const s = /* @__PURE__ */ new Set(["city-seal"]);
|
|
7
|
+
return s.add(`city-seal--${i}`), t && t.split(" ").forEach((a) => s.add(a)), Array.from(s).join(" ");
|
|
8
|
+
}
|
|
9
|
+
const e = ({
|
|
10
|
+
size: t = "lg",
|
|
11
|
+
className: i,
|
|
12
|
+
...s
|
|
13
|
+
}) => {
|
|
14
|
+
const a = l({
|
|
15
|
+
className: i,
|
|
16
|
+
size: t
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ r.jsx("img", { className: a, alt: "", ...s });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as CitySeal
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './city-seal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-font-weight:initial}::backdrop{--tw-font-weight:initial}}}@layer components{.footer{gap:var(--spacing-2xl,2rem);padding:var(--spacing-xl,1.5rem);grid-template-columns:repeat(1,minmax(0,1fr));display:grid}.footer>*{overflow-wrap:break-word;width:100%;margin-inline-start:auto;margin-inline-end:auto}.footer .footer__navigation{gap:var(--spacing-xl,1.5rem);grid-template-columns:repeat(1,minmax(0,1fr));display:grid}@media(min-width:30rem){.footer .footer__navigation{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:55rem){.footer .footer__navigation{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:64rem){.footer .footer__navigation{grid-template-columns:repeat(4,minmax(0,1fr))}}.footer .footer__menu{gap:var(--spacing-md,1rem);flex-direction:column;flex:1;display:flex}.footer .footer__menu .footer__menu-title{font-size:var(--text-heading-md,.976875rem);--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}.footer .footer__copyright{align-items:center;gap:var(--spacing-xs,.5rem);display:flex}.footer .footer__copyright .footer__copyright-text{flex-direction:column;display:flex}@media(min-width:40rem){.footer .footer__copyright .footer__copyright-text{align-items:center;gap:var(--spacing-xs,.5rem);flex-direction:row}}.footer .footer__copyright .footer__copyright-text h2{font-size:var(--text-heading-md,.976875rem);--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}}@property --tw-font-weight{syntax:"*";inherits:false}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FooterProps } from '@cityofportland/types/footer';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type ReactFooterProps = FooterProps & React.PropsWithChildren<React.HTMLAttributes<HTMLElement>>;
|
|
4
|
+
export declare const FooterNavigation: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLElement>>>;
|
|
5
|
+
export declare const FooterMenu: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLElement>>>;
|
|
6
|
+
export declare const FooterMenuTitle: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLElement>>>;
|
|
7
|
+
export declare const FooterMenuItem: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLElement>>>;
|
|
8
|
+
/**
|
|
9
|
+
* The footer component is used to display information about the website, such
|
|
10
|
+
* as contact information, social media links, and copyright information.
|
|
11
|
+
* It is typically placed at the bottom of the page.
|
|
12
|
+
*
|
|
13
|
+
* The Footer component is a wrapper around the Box component that applies
|
|
14
|
+
* the appropriate styles and structure for a footer.
|
|
15
|
+
* It also provides subcomponents for the content, navigation, menu, menu title,
|
|
16
|
+
* menu item, and copyright sections of the footer.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare const Footer: React.FC<ReactFooterProps>;
|