@cityofportland/components-react 1.0.0-alpha.3 → 1.0.0-alpha.5
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 +95 -0
- package/dist/alert/alert.es.js +88 -0
- package/dist/box/box.css +1 -0
- package/dist/box/box.d.ts +89 -0
- package/dist/box/box.es.js +56 -0
- package/dist/button/button.css +1 -0
- package/dist/button/button.d.ts +128 -0
- package/dist/button/button.es.js +40 -0
- package/dist/card/card.css +1 -0
- package/dist/card/card.d.ts +66 -0
- package/dist/card/card.es.js +75 -0
- package/dist/city-seal/city-seal.css +1 -0
- package/dist/city-seal/city-seal.d.ts +39 -0
- package/dist/city-seal/city-seal.es.js +17 -0
- package/dist/footer/footer.css +1 -0
- package/dist/footer/footer.d.ts +63 -0
- package/dist/footer/footer.es.js +10987 -0
- package/dist/header/header.css +1 -0
- package/dist/header/header.d.ts +85 -0
- package/dist/header/header.es.js +44 -0
- package/dist/icon/icon.css +1 -0
- package/dist/icon/icon.d.ts +31 -0
- package/dist/icon/icon.es.js +31 -0
- package/dist/index-IqW719eK.js +1484 -0
- package/dist/tag/tag.css +1 -0
- package/dist/tag/tag.d.ts +28 -0
- package/dist/tag/tag.es.js +17 -0
- package/dist/utilities/utilities.css +1 -0
- package/dist/utils-DpTd6iI4.js +7 -0
- package/package.json +9 -7
|
@@ -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,63 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Available color schemes based on design system color tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const BOX_COLORS: readonly ["default", "inverse", "primary", "secondary", "success", "danger", "warning", "info", "fixed", "disabled", "fixed"];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Available color variations based on design system tokens
|
|
10
|
+
*/
|
|
11
|
+
declare const BOX_VARIANTS: readonly ["subtle", "moderate", "emphasis", "strong", "light", "dark"];
|
|
12
|
+
|
|
13
|
+
declare type BoxColorScheme = (typeof BOX_COLORS)[number];
|
|
14
|
+
|
|
15
|
+
declare type BoxColorVariation = (typeof BOX_VARIANTS)[number];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Core box properties shared across all framework implementations
|
|
19
|
+
*/
|
|
20
|
+
declare interface BoxProps {
|
|
21
|
+
/**
|
|
22
|
+
* HTML element type to render the Box as. Defaults to 'div'.
|
|
23
|
+
* @default "div"
|
|
24
|
+
*/
|
|
25
|
+
as?: keyof HTMLElementTagNameMap;
|
|
26
|
+
/**
|
|
27
|
+
* Color scheme for background and content colors
|
|
28
|
+
*/
|
|
29
|
+
color?: BoxColorScheme;
|
|
30
|
+
/**
|
|
31
|
+
* Color variation within the chosen color scheme
|
|
32
|
+
*/
|
|
33
|
+
variant?: BoxColorVariation;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The footer component is used to display information about the website, such
|
|
38
|
+
* as contact information, social media links, and copyright information.
|
|
39
|
+
* It is typically placed at the bottom of the page.
|
|
40
|
+
*
|
|
41
|
+
* The Footer component is a wrapper around the Box component that applies
|
|
42
|
+
* the appropriate styles and structure for a footer.
|
|
43
|
+
* It also provides subcomponents for the content, navigation, menu, menu title,
|
|
44
|
+
* menu item, and copyright sections of the footer.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare const Footer: default_2.FC<ReactFooterProps>;
|
|
48
|
+
|
|
49
|
+
export declare const FooterMenu: default_2.FC<default_2.PropsWithChildren<default_2.HTMLAttributes<HTMLElement>>>;
|
|
50
|
+
|
|
51
|
+
export declare const FooterMenuItem: default_2.FC<default_2.PropsWithChildren<default_2.HTMLAttributes<HTMLElement>>>;
|
|
52
|
+
|
|
53
|
+
export declare const FooterMenuTitle: default_2.FC<default_2.PropsWithChildren<default_2.HTMLAttributes<HTMLElement>>>;
|
|
54
|
+
|
|
55
|
+
export declare const FooterNavigation: default_2.FC<default_2.PropsWithChildren<default_2.HTMLAttributes<HTMLElement>>>;
|
|
56
|
+
|
|
57
|
+
declare type FooterProps = Omit<BoxProps, "as"> & {
|
|
58
|
+
copyrightStart: number;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare type ReactFooterProps = FooterProps & default_2.PropsWithChildren<default_2.HTMLAttributes<HTMLElement>>;
|
|
62
|
+
|
|
63
|
+
export { }
|