@cityofportland/components-react 1.0.0-alpha.6 → 1.0.0-alpha.7

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.
Files changed (63) hide show
  1. package/dist/alert/alert.lib.css +2 -0
  2. package/dist/alert/{alert.d.ts → alert.lib.d.ts} +29 -15
  3. package/dist/alert/alert.lib.es.js +64 -0
  4. package/dist/box/{box.css → box.lib.css} +1 -0
  5. package/dist/box/{box.d.ts → box.lib.d.ts} +17 -17
  6. package/dist/box/box.lib.es.js +4 -0
  7. package/dist/box-B8x1KDnE.js +45 -0
  8. package/dist/button/button.lib.css +2 -0
  9. package/dist/button/{button.d.ts → button.lib.d.ts} +15 -46
  10. package/dist/button/button.lib.es.js +4 -0
  11. package/dist/button-rc1SIqSI.js +16 -0
  12. package/dist/card/card.lib.css +2 -0
  13. package/dist/card/card.lib.d.ts +134 -0
  14. package/dist/card/card.lib.es.js +44 -0
  15. package/dist/city-seal/{city-seal.css → city-seal.lib.css} +1 -0
  16. package/dist/city-seal/city-seal.lib.es.js +4 -0
  17. package/dist/city-seal-7i9vWvJO.js +11 -0
  18. package/dist/collection/collection.lib.css +2 -0
  19. package/dist/collection/collection.lib.d.ts +81 -0
  20. package/dist/collection/collection.lib.es.js +25 -0
  21. package/dist/footer/footer.lib.css +2 -0
  22. package/dist/footer/{footer.d.ts → footer.lib.d.ts} +3 -3
  23. package/dist/footer/footer.lib.es.js +2615 -0
  24. package/dist/header/header.lib.css +2 -0
  25. package/dist/header/{header.d.ts → header.lib.d.ts} +23 -23
  26. package/dist/header/header.lib.es.js +44 -0
  27. package/dist/icon/icon.lib.css +2 -0
  28. package/dist/icon/icon.lib.es.js +4 -0
  29. package/dist/icon-Du3bCwWr.js +21 -0
  30. package/dist/input/input.lib.css +2 -0
  31. package/dist/input/input.lib.d.ts +142 -0
  32. package/dist/input/input.lib.es.js +46 -0
  33. package/dist/tag/tag.lib.css +2 -0
  34. package/dist/tag/tag.lib.es.js +17 -0
  35. package/dist/utilities/utilities.lib.css +2 -0
  36. package/dist/utils-D8EDUGI1.js +7 -0
  37. package/package.json +40 -38
  38. package/dist/alert/alert.css +0 -1
  39. package/dist/alert/alert.es.js +0 -89
  40. package/dist/box/box.es.js +0 -4
  41. package/dist/box-1tl08xTv.js +0 -57
  42. package/dist/button/button.css +0 -1
  43. package/dist/button/button.es.js +0 -4
  44. package/dist/button-CF_WgNBC.js +0 -38
  45. package/dist/card/card.css +0 -1
  46. package/dist/card/card.d.ts +0 -66
  47. package/dist/card/card.es.js +0 -76
  48. package/dist/city-seal/city-seal.es.js +0 -4
  49. package/dist/city-seal-D1o5dRUd.js +0 -18
  50. package/dist/footer/footer.css +0 -1
  51. package/dist/footer/footer.es.js +0 -10988
  52. package/dist/header/header.css +0 -1
  53. package/dist/header/header.es.js +0 -45
  54. package/dist/icon/icon.css +0 -1
  55. package/dist/icon/icon.es.js +0 -4
  56. package/dist/icon-CzVwiUJU.js +0 -32
  57. package/dist/tag/tag.css +0 -1
  58. package/dist/tag/tag.es.js +0 -18
  59. package/dist/utilities/utilities.css +0 -1
  60. package/dist/utils-DpTd6iI4.js +0 -7
  61. /package/dist/city-seal/{city-seal.d.ts → city-seal.lib.d.ts} +0 -0
  62. /package/dist/icon/{icon.d.ts → icon.lib.d.ts} +0 -0
  63. /package/dist/tag/{tag.d.ts → tag.lib.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}@layer components{.collection{gap:var(--spacing-lg,1.25rem);grid-template-columns:repeat(1,minmax(0,1fr));display:grid}.collection.collection--divided>:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:var(--border-width-sm,.0625rem)}.collection .collection__item{padding-bottom:var(--spacing-lg,1.25rem);grid-template-columns:repeat(1,minmax(0,1fr));display:grid}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
@@ -0,0 +1,81 @@
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<As = string> {
21
+ /**
22
+ * Element type to render the Box as, supplied by each framework implementation.
23
+ * @default "div"
24
+ */
25
+ as?: As;
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
+ export declare function Collection({ as, divider, children, className, ...props }: ReactCollectionProps<default_2.ElementType>): default_2.JSX.Element;
37
+
38
+ export declare function CollectionItem<E extends default_2.ElementType = "li">(props: ReactCollectionItemProps<E>): default_2.ReactNode;
39
+
40
+ /**
41
+ * Core collection properties shared across all framework implementations
42
+ */
43
+ declare interface CollectionProps extends BoxProps {
44
+ /**
45
+ * Whether the collection has a divider between items
46
+ * @default false
47
+ */
48
+ divider?: boolean;
49
+ }
50
+
51
+ /**
52
+ * Default HTML element type for the Box component
53
+ */
54
+ declare type DefaultElementType = "div";
55
+
56
+ /**
57
+ * Props handled by Box regardless of the rendered element or component
58
+ */
59
+ declare type ReactBoxOwnProps<E extends default_2.ElementType, SharedProps> = default_2.PropsWithChildren<Omit<SharedProps, keyof BoxProps> & BoxProps<E> & {
60
+ className?: string;
61
+ }>;
62
+
63
+ /**
64
+ * Polymorphic Box props that merge own props with the element's native props
65
+ * Replaces shared Box fields with React's element-aware fields, then adds native
66
+ * props and refs. Component-specific shared props take priority over native props.
67
+ * NoInfer ensures that only `as` selects the element type.
68
+ *
69
+ * @example
70
+ * type ReactCardProps<E extends React.ElementType = "article"> =
71
+ * ReactBoxProps<E, CardProps>;
72
+ */
73
+ declare type ReactBoxProps<E extends default_2.ElementType = DefaultElementType, SharedProps = BoxProps> = ReactBoxOwnProps<E, SharedProps> & Omit<default_2.ComponentPropsWithRef<NoInfer<E>>, keyof ReactBoxOwnProps<E, SharedProps>>;
74
+
75
+ export declare type ReactCollectionItemProps<E extends default_2.ElementType = "li"> = ReactBoxProps<E>;
76
+
77
+ export declare type ReactCollectionProps<E extends default_2.ElementType = "ul"> = ReactBoxProps<E, CollectionProps> & {
78
+ children: default_2.ReactNode;
79
+ };
80
+
81
+ export { }
@@ -0,0 +1,25 @@
1
+ import { t as c } from "../box-B8x1KDnE.js";
2
+ import { t as i } from "../utils-D8EDUGI1.js";
3
+ import "react";
4
+ import { jsx as s } from "react/jsx-runtime";
5
+ function d({ as: o = "ul", divider: t = !1, children: e = null, className: l, ...r }) {
6
+ const m = i("collection", t && "collection--divided", l);
7
+ return /* @__PURE__ */ s(c, {
8
+ as: o,
9
+ className: m,
10
+ ...r,
11
+ children: e
12
+ });
13
+ }
14
+ function x({ as: o = "li", children: t, className: e, ...l }) {
15
+ return /* @__PURE__ */ s(c, {
16
+ as: o,
17
+ className: i("collection__item", e),
18
+ ...l,
19
+ children: t
20
+ });
21
+ }
22
+ export {
23
+ d as Collection,
24
+ x as CollectionItem
25
+ };
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::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:auto}.footer .footer__navigation{gap:var(--spacing-xl,1.5rem);grid-template-columns:repeat(1,minmax(0,1fr));display:grid}@media (width>=30rem){.footer .footer__navigation{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=55rem){.footer .footer__navigation{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (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 (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}
@@ -17,12 +17,12 @@ declare type BoxColorVariation = (typeof BOX_VARIANTS)[number];
17
17
  /**
18
18
  * Core box properties shared across all framework implementations
19
19
  */
20
- declare interface BoxProps {
20
+ declare interface BoxProps<As = string> {
21
21
  /**
22
- * HTML element type to render the Box as. Defaults to 'div'.
22
+ * Element type to render the Box as, supplied by each framework implementation.
23
23
  * @default "div"
24
24
  */
25
- as?: keyof HTMLElementTagNameMap;
25
+ as?: As;
26
26
  /**
27
27
  * Color scheme for background and content colors
28
28
  */