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

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 (45) hide show
  1. package/dist/alert/alert.css +1 -1
  2. package/dist/alert/alert.d.ts +95 -11
  3. package/dist/alert/alert.es.js +72 -3456
  4. package/dist/box/box.css +1 -0
  5. package/dist/box/box.d.ts +89 -51
  6. package/dist/box/box.es.js +1 -1
  7. package/dist/box-1tl08xTv.js +57 -0
  8. package/dist/button/button.css +1 -1
  9. package/dist/button/button.d.ts +128 -9
  10. package/dist/button/button.es.js +2 -32
  11. package/dist/button-CF_WgNBC.js +38 -0
  12. package/dist/card/card.css +1 -0
  13. package/dist/card/card.d.ts +66 -0
  14. package/dist/card/card.es.js +76 -0
  15. package/dist/city-seal/city-seal.css +1 -1
  16. package/dist/city-seal/city-seal.d.ts +39 -18
  17. package/dist/city-seal/city-seal.es.js +2 -20
  18. package/dist/city-seal-D1o5dRUd.js +18 -0
  19. package/dist/footer/footer.d.ts +63 -19
  20. package/dist/footer/footer.es.js +745 -744
  21. package/dist/header/header.css +1 -1
  22. package/dist/header/header.d.ts +85 -19
  23. package/dist/header/header.es.js +27 -25
  24. package/dist/icon/icon.css +1 -0
  25. package/dist/icon/icon.d.ts +31 -0
  26. package/dist/icon/icon.es.js +4 -0
  27. package/dist/icon-CzVwiUJU.js +32 -0
  28. package/dist/tag/tag.css +1 -1
  29. package/dist/tag/tag.d.ts +28 -7
  30. package/dist/tag/tag.es.js +7 -5
  31. package/dist/utilities/utilities.css +1 -0
  32. package/dist/utils-DpTd6iI4.js +7 -0
  33. package/package.json +5 -4
  34. package/dist/alert/index.d.ts +0 -1
  35. package/dist/box/index.d.ts +0 -1
  36. package/dist/button/index.d.ts +0 -1
  37. package/dist/city-seal/index.d.ts +0 -1
  38. package/dist/footer/footer.test.d.ts +0 -1
  39. package/dist/footer/index.d.ts +0 -1
  40. package/dist/header/index.d.ts +0 -1
  41. package/dist/index/index.css +0 -1
  42. package/dist/index-C4cFhgXK.js +0 -68
  43. package/dist/index-IqW719eK.js +0 -1484
  44. package/dist/tag/index.d.ts +0 -1
  45. package/dist/utils.d.ts +0 -3
@@ -0,0 +1 @@
1
+ @layer components{.box{background-color:var(--box-background-color);color:var(--box-text-color);border-color:var(--box-border-color);outline-color:var(--box-outline-color);--tw-ring-color:var(--box-ring-color);--tw-inset-ring-color:var(--box-ring-color)}.box.box--default.box--subtle{--box-background-color:var(--background-color-standard-default-subtle,#fff);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-standard-default-subtle,#dfe1e2);--box-outline-color:var(--outline-color-standard-default-subtle,#dfe1e2);--box-ring-color:var(--ring-color-standard-default-subtle,#dfe1e2)}.box.box--default.box--moderate{--box-background-color:var(--background-color-standard-default-moderate,#f7f9fa);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-standard-default-subtle,#dfe1e2);--box-outline-color:var(--outline-color-standard-default-subtle,#dfe1e2);--box-ring-color:var(--ring-color-standard-default-subtle,#dfe1e2)}.box.box--default.box--emphasis{--box-background-color:var(--background-color-standard-default-emphasis,#dfe1e2);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-standard-default-emphasis,#71767a);--box-outline-color:var(--outline-color-standard-default-emphasis,#71767a);--box-ring-color:var(--ring-color-standard-default-emphasis,#71767a)}.box.box--default.box--strong{--box-background-color:var(--background-color-standard-default-strong,#a9aeb1);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-standard-default-emphasis,#71767a);--box-outline-color:var(--outline-color-standard-default-emphasis,#71767a);--box-ring-color:var(--ring-color-standard-default-emphasis,#71767a)}.box.box--inverse.box--subtle{--box-background-color:var(--background-color-standard-inverse-subtle,#070708);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-standard-inverse-subtle,#71767a);--box-outline-color:var(--outline-color-standard-inverse-subtle,#71767a);--box-ring-color:var(--ring-color-standard-inverse-subtle,#71767a)}.box.box--inverse.box--moderate{--box-background-color:var(--background-color-standard-inverse-moderate,#1c1d1f);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-standard-inverse-subtle,#71767a);--box-outline-color:var(--outline-color-standard-inverse-subtle,#71767a);--box-ring-color:var(--ring-color-standard-inverse-subtle,#71767a)}.box.box--inverse.box--emphasis{--box-background-color:var(--background-color-standard-inverse-emphasis,#565c65);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-standard-inverse-emphasis,#1c1d1f);--box-outline-color:var(--outline-color-standard-inverse-emphasis,#1c1d1f);--box-ring-color:var(--ring-color-standard-inverse-emphasis,#1c1d1f)}.box.box--inverse.box--strong{--box-background-color:var(--background-color-standard-inverse-strong,#a9aeb1);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-standard-inverse-emphasis,#1c1d1f);--box-outline-color:var(--outline-color-standard-inverse-emphasis,#1c1d1f);--box-ring-color:var(--ring-color-standard-inverse-emphasis,#1c1d1f)}.box.box--primary.box--subtle{--box-background-color:var(--background-color-primary-subtle,#d9e8f6);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-primary-subtle,#aacdec);--box-outline-color:var(--outline-color-primary-subtle,#aacdec);--box-ring-color:var(--ring-color-primary-subtle,#aacdec)}.box.box--primary.box--moderate{--box-background-color:var(--background-color-primary-moderate,#005ea2);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-primary-subtle,#aacdec);--box-outline-color:var(--outline-color-primary-subtle,#aacdec);--box-ring-color:var(--ring-color-primary-subtle,#aacdec)}.box.box--primary.box--emphasis{--box-background-color:var(--background-color-primary-emphasis,#274863);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-primary-strong,#1f303e);--box-outline-color:var(--outline-color-primary-strong,#1f303e);--box-ring-color:var(--ring-color-primary-strong,#1f303e)}.box.box--primary.box--strong{--box-background-color:var(--background-color-primary-strong,#1f303e);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-primary-emphasis,#274863);--box-outline-color:var(--outline-color-primary-emphasis,#274863);--box-ring-color:var(--ring-color-primary-emphasis,#274863)}.box.box--secondary.box--subtle{--box-background-color:var(--background-color-secondary-subtle,#f7f9fa);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-secondary-subtle,#a9aeb1);--box-outline-color:var(--outline-color-secondary-subtle,#a9aeb1);--box-ring-color:var(--ring-color-secondary-subtle,#a9aeb1)}.box.box--secondary.box--moderate{--box-background-color:var(--background-color-secondary-moderate,#dfe1e2);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-secondary-subtle,#a9aeb1);--box-outline-color:var(--outline-color-secondary-subtle,#a9aeb1);--box-ring-color:var(--ring-color-secondary-subtle,#a9aeb1)}.box.box--secondary.box--emphasis{--box-background-color:var(--background-color-secondary-emphasis,#a9aeb1);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-secondary-emphasis,#3d4551);--box-outline-color:var(--outline-color-secondary-emphasis,#3d4551);--box-ring-color:var(--ring-color-secondary-emphasis,#3d4551)}.box.box--secondary.box--strong{--box-background-color:var(--background-color-secondary-strong,#71767a);--box-text-color:var(--text-color-standard-fixed-light,#fff);--box-border-color:var(--border-color-secondary-emphasis,#3d4551);--box-outline-color:var(--outline-color-secondary-emphasis,#3d4551);--box-ring-color:var(--ring-color-secondary-emphasis,#3d4551)}.box.box--success.box--subtle{--box-background-color:var(--background-color-success-subtle,#eaf4dd);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-success-subtle,#b8d293);--box-outline-color:var(--outline-color-success-subtle,#b8d293);--box-ring-color:var(--ring-color-success-subtle,#b8d293)}.box.box--success.box--moderate{--box-background-color:var(--background-color-success-moderate,#b8d293);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-success-moderate,#719f2a);--box-outline-color:var(--outline-color-success-moderate,#719f2a);--box-ring-color:var(--ring-color-success-moderate,#719f2a)}.box.box--success.box--emphasis{--box-background-color:var(--background-color-success-emphasis,#719f2a);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-success-emphasis,#466c04);--box-outline-color:var(--outline-color-success-emphasis,#466c04);--box-ring-color:var(--ring-color-success-emphasis,#466c04)}.box.box--success.box--strong{--box-background-color:var(--background-color-success-strong,#466c04);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-success-strong,#243413);--box-outline-color:var(--outline-color-success-strong,#243413);--box-ring-color:var(--ring-color-success-strong,#243413)}.box.box--danger.box--subtle{--box-background-color:var(--background-color-danger-subtle,#f3e1e4);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-danger-subtle,#fd8ba0);--box-outline-color:var(--outline-color-danger-subtle,#fd8ba0);--box-ring-color:var(--ring-color-danger-subtle,#fd8ba0)}.box.box--danger.box--moderate{--box-background-color:var(--background-color-danger-moderate,#fd8ba0);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-danger-moderate,#b41d39);--box-outline-color:var(--outline-color-danger-moderate,#b41d39);--box-ring-color:var(--ring-color-danger-moderate,#b41d39)}.box.box--danger.box--emphasis{--box-background-color:var(--background-color-danger-emphasis,#b41d39);--box-text-color:var(--text-color-standard-fixed-light,#fff);--box-border-color:var(--border-color-danger-emphasis,#832133);--box-outline-color:var(--outline-color-danger-emphasis,#832133);--box-ring-color:var(--ring-color-danger-emphasis,#832133)}.box.box--danger.box--strong{--box-background-color:var(--background-color-danger-strong,#4f1c24);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-danger-strong,#832133);--box-outline-color:var(--outline-color-danger-strong,#832133);--box-ring-color:var(--ring-color-danger-strong,#832133)}.box.box--warning.box--subtle{--box-background-color:var(--background-color-warning-subtle,#fef0c8);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-warning-moderate,#ffbe2e);--box-outline-color:var(--outline-color-warning-moderate,#ffbe2e);--box-ring-color:var(--ring-color-warning-moderate,#ffbe2e)}.box.box--warning.box--moderate{--box-background-color:var(--background-color-warning-moderate,#ffe396);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-warning-moderate,#ffbe2e);--box-outline-color:var(--outline-color-warning-moderate,#ffbe2e);--box-ring-color:var(--ring-color-warning-moderate,#ffbe2e)}.box.box--warning.box--emphasis{--box-background-color:var(--background-color-warning-emphasis,#ffbe2e);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-warning-emphasis,#c2850c);--box-outline-color:var(--outline-color-warning-emphasis,#c2850c);--box-ring-color:var(--ring-color-warning-emphasis,#c2850c)}.box.box--warning.box--strong{--box-background-color:var(--background-color-warning-strong,#3b2b15);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-warning-strong,#7a591a);--box-outline-color:var(--outline-color-warning-strong,#7a591a);--box-ring-color:var(--ring-color-warning-strong,#7a591a)}.box.box--info.box--subtle{--box-background-color:var(--background-color-info-subtle,#e7f6f8);--box-text-color:var(--text-color-standard-default-strong,#070708);--box-border-color:var(--border-color-info-subtle,#99deea);--box-outline-color:var(--outline-color-info-subtle,#99deea);--box-ring-color:var(--ring-color-info-subtle,#99deea)}.box.box--info.box--moderate{--box-background-color:var(--background-color-info-moderate,#99deea);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-info-emphasis,#449dac);--box-outline-color:var(--outline-color-info-emphasis,#449dac);--box-ring-color:var(--ring-color-info-emphasis,#449dac)}.box.box--info.box--emphasis{--box-background-color:var(--background-color-info-emphasis,#5dc0d1);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-info-emphasis,#449dac);--box-outline-color:var(--outline-color-info-emphasis,#449dac);--box-ring-color:var(--ring-color-info-emphasis,#449dac)}.box.box--info.box--strong{--box-background-color:var(--background-color-info-strong,#168092);--box-text-color:var(--text-color-standard-inverse-subtle,#fff);--box-border-color:var(--border-color-info-moderate,#5dc0d1);--box-outline-color:var(--outline-color-info-moderate,#5dc0d1);--box-ring-color:var(--ring-color-info-moderate,#5dc0d1)}.box.box--disabled.box--subtle{--box-background-color:var(--background-color-disabled-subtle,#f7f9fa);--box-text-color:var(--text-color-disabled-strong,#2d2e2f);--box-border-color:var(--border-color-disabled-subtle,#dfe1e2);--box-outline-color:var(--outline-color-disabled-subtle,#dfe1e2);--box-ring-color:var(--ring-color-disabled-subtle,#dfe1e2)}.box.box--disabled.box--moderate{--box-background-color:var(--background-color-disabled-moderate,#dfe1e2);--box-text-color:var(--text-color-disabled-strong,#2d2e2f);--box-border-color:var(--border-color-disabled-moderate,#a9aeb1);--box-outline-color:var(--outline-color-disabled-moderate,#a9aeb1);--box-ring-color:var(--ring-color-disabled-moderate,#a9aeb1)}.box.box--disabled.box--emphasis{--box-background-color:var(--background-color-disabled-emphasis,#a9aeb1);--box-text-color:var(--text-color-disabled-strong,#2d2e2f);--box-border-color:var(--border-color-disabled-emphasis,#8d9297);--box-outline-color:var(--outline-color-disabled-emphasis,#8d9297);--box-ring-color:var(--ring-color-disabled-emphasis,#8d9297)}.box.box--disabled.box--strong{--box-background-color:var(--background-color-disabled-strong,#565c65);--box-text-color:var(--text-color-disabled-subtle,#dfe1e2);--box-border-color:var(--border-color-disabled-emphasis,#8d9297);--box-outline-color:var(--outline-color-disabled-emphasis,#8d9297);--box-ring-color:var(--ring-color-disabled-emphasis,#8d9297)}.box.box--fixed.box--light{--box-background-color:var(--background-color-fixed-light,#fff);--box-text-color:var(--text-color-standard-fixed-dark,#070708);--box-border-color:var(--border-color-fixed-light,#fff);--box-outline-color:var(--outline-color-fixed-light,#fff);--box-ring-color:var(--ring-color-fixed-light,#fff)}.box.box--fixed.box--dark{--box-background-color:var(--background-color-fixed-dark,#070708);--box-text-color:var(--text-color-standard-fixed-light,#fff);--box-border-color:var(--border-color-fixed-dark,#070708);--box-outline-color:var(--outline-color-fixed-dark,#070708);--box-ring-color:var(--ring-color-fixed-dark,#070708)}}
package/dist/box/box.d.ts CHANGED
@@ -1,51 +1,89 @@
1
- import { BoxProps } from '@cityofportland/types/box';
2
- import { default as React } from 'react';
3
- /**
4
- * Default HTML element type for the Box component
5
- */
6
- type DefaultElementType = "div";
7
- /**
8
- * Props that are specific to the React implementation
9
- */
10
- type ReactBoxOwnProps<E extends React.ElementType = DefaultElementType> = BoxProps & {
11
- /**
12
- * The HTML element or React component to render as
13
- * @default "div"
14
- */
15
- as?: E | string;
16
- };
17
- /**
18
- * Polymorphic Box props that merge own props with the element's native props
19
- * Omits props that are defined in our own props to avoid conflicts
20
- */
21
- export type ReactBoxProps<E extends React.ElementType = DefaultElementType> = ReactBoxOwnProps<E> & Omit<React.ComponentPropsWithoutRef<E>, keyof ReactBoxOwnProps<E>>;
22
- /**
23
- * Generic Box component type for use with forwardRef
24
- */
25
- export type BoxComponent = <E extends React.ElementType = DefaultElementType>(props: ReactBoxProps<E> & {
26
- ref?: React.Ref<HTMLElement> | undefined;
27
- }) => React.ReactNode;
28
- /**
29
- * A polymorphic Box component that allows users to customize the element tag
30
- * and apply design token-based color schemes and variations.
31
- *
32
- * @example
33
- * // Default div with primary color scheme
34
- * <Box color="primary" variant="subtle">
35
- * Content here
36
- * </Box>
37
- *
38
- * @example
39
- * // As a section element
40
- * <Box as="section" color="info">
41
- * Section content
42
- * </Box>
43
- *
44
- * @example
45
- * // With generic type for custom components
46
- * <Box as={MyCustomComponent} color="success" myProp="value">
47
- * Custom component content
48
- * </Box>
49
- */
50
- export declare const Box: BoxComponent;
51
- export {};
1
+ import { default as default_2 } from 'react';
2
+
3
+ /**
4
+ * A polymorphic Box component that allows users to customize the element tag
5
+ * and apply design token-based color schemes and variations.
6
+ *
7
+ * @example
8
+ * // Default div with primary color scheme
9
+ * <Box color="primary" variant="subtle">
10
+ * Content here
11
+ * </Box>
12
+ *
13
+ * @example
14
+ * // As a section element
15
+ * <Box as="section" color="info">
16
+ * Section content
17
+ * </Box>
18
+ *
19
+ * @example
20
+ * // With generic type for custom components
21
+ * <Box as={MyCustomComponent} color="success" myProp="value">
22
+ * Custom component content
23
+ * </Box>
24
+ */
25
+ export declare const Box: BoxComponent;
26
+
27
+ /**
28
+ * Available color schemes based on design system color tokens
29
+ */
30
+ declare const BOX_COLORS: readonly ["default", "inverse", "primary", "secondary", "success", "danger", "warning", "info", "fixed", "disabled", "fixed"];
31
+
32
+ /**
33
+ * Available color variations based on design system tokens
34
+ */
35
+ declare const BOX_VARIANTS: readonly ["subtle", "moderate", "emphasis", "strong", "light", "dark"];
36
+
37
+ declare type BoxColorScheme = (typeof BOX_COLORS)[number];
38
+
39
+ declare type BoxColorVariation = (typeof BOX_VARIANTS)[number];
40
+
41
+ /**
42
+ * Generic Box component type for use with forwardRef
43
+ */
44
+ export declare type BoxComponent = <E extends default_2.ElementType = DefaultElementType>(props: ReactBoxProps<E> & {
45
+ ref?: default_2.Ref<HTMLElement> | undefined;
46
+ }) => default_2.ReactNode;
47
+
48
+ /**
49
+ * Core box properties shared across all framework implementations
50
+ */
51
+ declare interface BoxProps {
52
+ /**
53
+ * HTML element type to render the Box as. Defaults to 'div'.
54
+ * @default "div"
55
+ */
56
+ as?: keyof HTMLElementTagNameMap;
57
+ /**
58
+ * Color scheme for background and content colors
59
+ */
60
+ color?: BoxColorScheme;
61
+ /**
62
+ * Color variation within the chosen color scheme
63
+ */
64
+ variant?: BoxColorVariation;
65
+ }
66
+
67
+ /**
68
+ * Default HTML element type for the Box component
69
+ */
70
+ declare type DefaultElementType = "div";
71
+
72
+ /**
73
+ * Props that are specific to the React implementation
74
+ */
75
+ declare type ReactBoxOwnProps<E extends default_2.ElementType = DefaultElementType> = Omit<BoxProps, "as"> & {
76
+ /**
77
+ * The HTML element or React component to render as
78
+ * @default "div"
79
+ */
80
+ as?: E;
81
+ };
82
+
83
+ /**
84
+ * Polymorphic Box props that merge own props with the element's native props
85
+ * Omits props that are defined in our own props to avoid conflicts
86
+ */
87
+ export declare type ReactBoxProps<E extends default_2.ElementType = DefaultElementType> = ReactBoxOwnProps<E> & Omit<default_2.ComponentPropsWithoutRef<E>, keyof ReactBoxOwnProps<E>>;
88
+
89
+ export { }
@@ -1,4 +1,4 @@
1
- import { B as x } from "../index-C4cFhgXK.js";
1
+ import { B as x } from "../box-1tl08xTv.js";
2
2
  export {
3
3
  x as Box
4
4
  };
@@ -0,0 +1,57 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { m as l } from "./utils-DpTd6iI4.js";
4
+ const o = [
5
+ "subtle",
6
+ "moderate",
7
+ "emphasis",
8
+ "strong"
9
+ ], i = /* @__PURE__ */ new Map([
10
+ ["default", o],
11
+ ["inverse", o],
12
+ ["primary", o],
13
+ ["secondary", o],
14
+ ["success", o],
15
+ ["danger", o],
16
+ ["warning", o],
17
+ ["info", o],
18
+ ["disabled", o],
19
+ ["fixed", ["dark", "light"]]
20
+ ]), x = (e, n) => {
21
+ const s = [e, n];
22
+ return !e || !n ? [void 0, void 0] : i.has(e) ? i.get(e)?.includes(n) ? s : (console.error(`[Box component] '${n}' is not a valid variant for color '${e}'.`), [void 0, void 0]) : (console.error(`[Box component] '${e}' is not a valid box color.`), [void 0, void 0]);
23
+ };
24
+ function p({
25
+ className: e = "",
26
+ color: n,
27
+ variant: s
28
+ }) {
29
+ const t = ["box"];
30
+ return n && s && t.push(
31
+ n ? `box--${n}` : "",
32
+ s ? `box--${s}` : ""
33
+ ), l(...t, e);
34
+ }
35
+ const A = c.forwardRef(
36
+ ({ as: e, children: n, color: s, variant: t, className: r, ...f }, u) => {
37
+ const a = e || "div";
38
+ [s, t] = x(s, t);
39
+ const d = p({
40
+ className: r,
41
+ color: s,
42
+ variant: t
43
+ });
44
+ return /* @__PURE__ */ m(
45
+ a,
46
+ {
47
+ ref: u,
48
+ className: d.length ? d : void 0,
49
+ ...f,
50
+ children: n
51
+ }
52
+ );
53
+ }
54
+ );
55
+ export {
56
+ A as B
57
+ };
@@ -1 +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-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}::backdrop{--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer components{.button{--button-action-factor:.85}@media(prefers-color-scheme:dark){.button{--button-action-factor:1.15}}.button{--button-action-color:oklch(from var(--box-background-color) calc(l * var(--button-action-factor)) calc(c * var(--button-action-factor)) h);justify-content:center;align-items:center;gap:var(--spacing-xs,.5rem);overflow-wrap:anywhere;cursor:pointer;max-width:100%;transition-property:background-color,box-shadow,--tw-ring-offset-color,--tw-ring-offset-width;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s);--tw-duration:.2s;--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-offset-color:var(--box-background-color);transition-duration:.2s;display:inline-flex}.button:focus{outline-style:var(--tw-outline-style);outline-width:var(--outline-width-lg,.25rem);outline-offset:var(--outline-offset-2xs,.25rem)}.button:focus-visible{outline-style:var(--tw-outline-style);outline-width:var(--outline-width-lg,.25rem);outline-offset:var(--outline-offset-2xs,.25rem)}.button.button--disabled,.button:disabled{background-color:var(--background-color-disabled-moderate,#dfe1e2);color:var(--text-color-disabled-emphasis,#a9aeb1);cursor:not-allowed}.button:not(:-webkit-any(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}@media(hover:hover){.button:not(:-webkit-any(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-webkit-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button:not(:-moz-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button:not(:is(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}}.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}@media(hover:hover){.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:is(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}}.button.button--outline{color:inherit;--tw-inset-ring-color:var(--box-background-color);--tw-ring-offset-color:var(--box-background-color);background-color:#0000}.button.button--outline:active{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-inset-ring-color:var(--button-action-color)}.button.button--outline.button--disabled,.button.button--outline:disabled{background-color:var(--background-color-disabled-moderate,#dfe1e2);color:var(--text-color-disabled-emphasis,#a9aeb1);cursor:not-allowed}.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.button.button--outline:not(:is(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:is(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button.button--outline:not(:is(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}}.button.button--3xs{padding-inline:var(--spacing-3xs,.125rem)}.button.button--2xs{padding-inline:var(--spacing-2xs,.25rem)}.button.button--xs{padding-inline:var(--spacing-xs,.5rem);padding-block:var(--spacing-3xs,.125rem)}.button.button--sm{padding-inline:var(--spacing-sm,.75rem);padding-block:var(--spacing-2xs,.25rem)}.button.button--md{padding-inline:var(--spacing-md,1rem);padding-block:var(--spacing-xs,.5rem)}.button.button--lg{padding-inline:var(--spacing-lg,1.25rem);padding-block:var(--spacing-sm,.75rem)}.button.button--xl{padding-inline:var(--spacing-xl,1.5rem);padding-block:var(--spacing-md,1rem)}.button.button--2xl{padding-inline:var(--spacing-2xl,2rem);padding-block:var(--spacing-lg,1.25rem)}.button.button--3xl{padding-inline:var(--spacing-3xl,2.5rem);padding-block:var(--spacing-xl,1.5rem)}.button.button--4xl{padding-inline:var(--spacing-4xl,3.5rem);padding-block:var(--spacing-2xl,2rem)}.button.button--5xl{padding-inline:var(--spacing-5xl,4rem);padding-block:var(--spacing-3xl,2.5rem)}}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
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-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}::backdrop{--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer components{.button{--button-action-factor:.85}@media(prefers-color-scheme:dark){.button{--button-action-factor:1.15}}.button{--button-action-color:oklch(from var(--box-background-color) calc(l * var(--button-action-factor)) calc(c * var(--button-action-factor)) h);justify-content:center;align-items:center;gap:var(--spacing-xs,.5rem);overflow-wrap:anywhere;vertical-align:bottom;cursor:pointer;max-width:100%;transition-property:background-color,box-shadow,--tw-ring-offset-color,--tw-ring-offset-width;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s);--tw-duration:.2s;--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-offset-color:var(--box-background-color);transition-duration:.2s;display:inline-flex}.button:focus{outline-style:var(--tw-outline-style);outline-width:var(--outline-width-lg,.25rem);outline-offset:var(--outline-offset-2xs,.25rem)}.button:focus-visible{outline-style:var(--tw-outline-style);outline-width:var(--outline-width-lg,.25rem);outline-offset:var(--outline-offset-2xs,.25rem)}.button.button--disabled,.button:disabled{background-color:var(--background-color-disabled-moderate,#dfe1e2);color:var(--text-color-disabled-emphasis,#a9aeb1);cursor:not-allowed}.button:not(:-webkit-any(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}@media(hover:hover){.button:not(:-webkit-any(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):hover{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--button-action-color)}.button:not(:-webkit-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button:not(:-moz-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button:not(:is(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}}.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline){--tw-ring-color:var(--button-action-color)}.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline):active{background-color:var(--button-action-color)}@media(hover:hover){.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:-webkit-any(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:-moz-any(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}.button:not(:is(.button--disabled,:disabled)):not(.button--outline):hover,.button:not(:is(.button--disabled,:disabled)):not(.button--outline):hover:active{background-color:var(--button-action-color)}}.button.button--outline{color:inherit;--tw-inset-ring-color:var(--box-background-color);--tw-ring-offset-color:var(--box-background-color);background-color:#0000}.button.button--outline:active{--tw-ring-offset-width:var(--ring-offset-width-3xs,.125rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-inset-ring-color:var(--button-action-color)}.button.button--outline.button--disabled,.button.button--outline:disabled{background-color:var(--background-color-disabled-moderate,#dfe1e2);color:var(--text-color-disabled-emphasis,#a9aeb1);cursor:not-allowed}.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.button.button--outline:not(:is(.button--disabled,:disabled)){--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:is(.button--disabled,:disabled)):hover{--tw-inset-ring-color:var(--button-action-color)}.button.button--outline:not(:-webkit-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button.button--outline:not(:-moz-any(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button.button--outline:not(:is(.button--disabled,:disabled)):hover:active{--tw-ring-offset-width:var(--ring-offset-width-2xs,.25rem);--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}}.button.button--3xs{padding-inline:var(--spacing-3xs,.125rem)}.button.button--2xs{padding-inline:var(--spacing-2xs,.25rem)}.button.button--xs{padding-inline:var(--spacing-xs,.5rem);padding-block:var(--spacing-3xs,.125rem)}.button.button--sm{padding-inline:var(--spacing-sm,.75rem);padding-block:var(--spacing-2xs,.25rem)}.button.button--md{padding-inline:var(--spacing-md,1rem);padding-block:var(--spacing-xs,.5rem)}.button.button--lg{padding-inline:var(--spacing-lg,1.25rem);padding-block:var(--spacing-sm,.75rem)}.button.button--xl{padding-inline:var(--spacing-xl,1.5rem);padding-block:var(--spacing-md,1rem)}.button.button--2xl{padding-inline:var(--spacing-2xl,2rem);padding-block:var(--spacing-lg,1.25rem)}.button.button--3xl{padding-inline:var(--spacing-3xl,2.5rem);padding-block:var(--spacing-xl,1.5rem)}.button.button--4xl{padding-inline:var(--spacing-4xl,3.5rem);padding-block:var(--spacing-2xl,2rem)}.button.button--5xl{padding-inline:var(--spacing-5xl,4rem);padding-block:var(--spacing-3xl,2.5rem)}}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
@@ -1,9 +1,128 @@
1
- import { ButtonProps } from '@cityofportland/types/button';
2
- import { default as React } from 'react';
3
- import { ReactBoxProps } from '../box';
4
- type ButtonElementType = "button" | "a";
5
- declare const DefaultElementType: ButtonElementType;
6
- type ButtonOwnProps = Omit<ButtonProps, keyof ReactBoxProps>;
7
- export type ReactButtonProps<T extends ButtonElementType = typeof DefaultElementType> = React.PropsWithChildren<ButtonOwnProps & ReactBoxProps<T>>;
8
- export declare const Button: <T extends ButtonElementType = typeof DefaultElementType>({ as, children, size, outline, disabled, className, ...props }: ReactButtonProps<T>) => React.JSX.Element;
9
- export {};
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 schemes based on design system color tokens
10
+ */
11
+ declare const BOX_COLORS_2: readonly ["default", "inverse", "primary", "secondary", "success", "danger", "warning", "info", "fixed", "disabled", "fixed"];
12
+
13
+ /**
14
+ * Available color variations based on design system tokens
15
+ */
16
+ declare const BOX_VARIANTS: readonly ["subtle", "moderate", "emphasis", "strong", "light", "dark"];
17
+
18
+ /**
19
+ * Available color variations based on design system tokens
20
+ */
21
+ declare const BOX_VARIANTS_2: readonly ["subtle", "moderate", "emphasis", "strong", "light", "dark"];
22
+
23
+ declare type BoxColorScheme = (typeof BOX_COLORS)[number];
24
+
25
+ declare type BoxColorScheme_2 = (typeof BOX_COLORS_2)[number];
26
+
27
+ declare type BoxColorVariation = (typeof BOX_VARIANTS)[number];
28
+
29
+ declare type BoxColorVariation_2 = (typeof BOX_VARIANTS_2)[number];
30
+
31
+ /**
32
+ * Core box properties shared across all framework implementations
33
+ */
34
+ declare interface BoxProps {
35
+ /**
36
+ * HTML element type to render the Box as. Defaults to 'div'.
37
+ * @default "div"
38
+ */
39
+ as?: keyof HTMLElementTagNameMap;
40
+ /**
41
+ * Color scheme for background and content colors
42
+ */
43
+ color?: BoxColorScheme;
44
+ /**
45
+ * Color variation within the chosen color scheme
46
+ */
47
+ variant?: BoxColorVariation;
48
+ }
49
+
50
+ /**
51
+ * Core box properties shared across all framework implementations
52
+ */
53
+ declare interface BoxProps_2 {
54
+ /**
55
+ * HTML element type to render the Box as. Defaults to 'div'.
56
+ * @default "div"
57
+ */
58
+ as?: keyof HTMLElementTagNameMap;
59
+ /**
60
+ * Color scheme for background and content colors
61
+ */
62
+ color?: BoxColorScheme_2;
63
+ /**
64
+ * Color variation within the chosen color scheme
65
+ */
66
+ variant?: BoxColorVariation_2;
67
+ }
68
+
69
+ export declare const Button: <T extends ButtonElementType = typeof DefaultElementType>({ as, children, size, outline, disabled, className, ...props }: ReactButtonProps<T>) => default_2.JSX.Element;
70
+
71
+ declare type ButtonElementType = "button" | "a";
72
+
73
+ declare type ButtonOwnProps = Omit<ButtonProps, keyof ReactBoxProps>;
74
+
75
+ /**
76
+ * Core button properties shared across all framework implementations
77
+ */
78
+ declare interface ButtonProps extends BoxProps {
79
+ /**
80
+ * Size of the button
81
+ * @default "md"
82
+ */
83
+ size?: ButtonSize;
84
+ /**
85
+ * Whether the button should have an outline style
86
+ * @default false
87
+ */
88
+ outline?: boolean;
89
+ /**
90
+ * Whether the button is disabled
91
+ * @default false
92
+ */
93
+ disabled?: boolean;
94
+ }
95
+
96
+ declare type ButtonSize = Spacing;
97
+
98
+ declare const DefaultElementType: ButtonElementType;
99
+
100
+ /**
101
+ * Default HTML element type for the Box component
102
+ */
103
+ declare type DefaultElementType_2 = "div";
104
+
105
+ /**
106
+ * Props that are specific to the React implementation
107
+ */
108
+ declare type ReactBoxOwnProps<E extends default_2.ElementType = DefaultElementType_2> = Omit<BoxProps_2, "as"> & {
109
+ /**
110
+ * The HTML element or React component to render as
111
+ * @default "div"
112
+ */
113
+ as?: E;
114
+ };
115
+
116
+ /**
117
+ * Polymorphic Box props that merge own props with the element's native props
118
+ * Omits props that are defined in our own props to avoid conflicts
119
+ */
120
+ declare type ReactBoxProps<E extends default_2.ElementType = DefaultElementType_2> = ReactBoxOwnProps<E> & Omit<default_2.ComponentPropsWithoutRef<E>, keyof ReactBoxOwnProps<E>>;
121
+
122
+ export declare type ReactButtonProps<T extends ButtonElementType = typeof DefaultElementType> = default_2.PropsWithChildren<ButtonOwnProps & ReactBoxProps<T>>;
123
+
124
+ declare const SPACING: readonly ["3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl"];
125
+
126
+ declare type Spacing = (typeof SPACING)[number];
127
+
128
+ export { }
@@ -1,34 +1,4 @@
1
- import { j as r } from "../index-IqW719eK.js";
2
- import { B as m, m as b } from "../index-C4cFhgXK.js";
3
- const f = "button", c = ({
4
- as: o,
5
- children: s = null,
6
- size: e,
7
- outline: n = !1,
8
- disabled: t = !1,
9
- className: a,
10
- ...u
11
- }) => {
12
- const l = o ?? f;
13
- return /* @__PURE__ */ r.jsx(
14
- m,
15
- {
16
- as: l,
17
- className: b(
18
- "button",
19
- e && `button--${e}`,
20
- t && "button--disabled",
21
- n && "button--outline",
22
- a
23
- ),
24
- disabled: t,
25
- "aria-disabled": t ? "true" : "false",
26
- role: "button",
27
- ...u,
28
- children: s
29
- }
30
- );
31
- };
1
+ import { B as r } from "../button-CF_WgNBC.js";
32
2
  export {
33
- c as Button
3
+ r as Button
34
4
  };
@@ -0,0 +1,38 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import "react";
3
+ import { m } from "./utils-DpTd6iI4.js";
4
+ import { B as u } from "./box-1tl08xTv.js";
5
+ const f = "button", x = ({
6
+ as: o,
7
+ children: n = null,
8
+ size: e,
9
+ outline: s = !1,
10
+ disabled: t = !1,
11
+ className: r,
12
+ ...a
13
+ }) => (
14
+ //@ts-expect-error Impossible to dynamically determine the set of valid properties.
15
+ // Would need to know what the "as" property is at type checking time.
16
+ // Users of this component will get valid type-checking
17
+ /* @__PURE__ */ l(
18
+ u,
19
+ {
20
+ as: o ?? f,
21
+ className: m(
22
+ "button",
23
+ e && `button--${e}`,
24
+ t && "button--disabled",
25
+ s && "button--outline",
26
+ r
27
+ ),
28
+ disabled: t,
29
+ "aria-disabled": t ? "true" : "false",
30
+ role: "button",
31
+ ...a,
32
+ children: n
33
+ }
34
+ )
35
+ );
36
+ export {
37
+ x as B
38
+ };
@@ -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-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial}::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial}}}@layer components{.card{border-radius:var(--radius-lg,.5rem);gap:var(--spacing-lg,1.25rem);flex-direction:column;display:flex}.card.card--bordered{--tw-inset-ring-shadow:inset 0 0 0 var(--ring-width-md,.125rem) var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);padding:var(--spacing-md,1rem)}.card:not(.card--bordered){--box-background-color:revert!important;--box-text-color:revert!important;--box-border-color:revert!important;--box-outline-color:revert!important;--box-ring-color:revert!important}.card .card__body{gap:var(--spacing-sm,.75rem);flex-direction:column;flex-grow:1;align-self:stretch;display:flex}.card .card__body .card__description{flex:auto}.card .card__body .card__footer{margin-top:auto}.card .card__body .card__title{font-size:var(--text-heading-md,.976875rem);--tw-leading:var(--leading-heading-md,1.5rem);line-height:var(--leading-heading-md,1.5rem);--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);--tw-tracking:0%;letter-spacing:0%}.card .card__media{flex:none;display:flex}.card .card__media>img,.card .card__media video{border-radius:var(--radius-lg,.5rem);object-fit:cover;object-position:center;aspect-ratio:2;width:100%;max-width:100%;height:auto;max-height:100%}@container (width>=30rem){.card.card--horizontal{flex-direction:row;align-items:flex-start}.card.card--horizontal:not(.card--bordered) .card__body{padding-top:var(--spacing-xs,.5rem)}.card.card--horizontal:not(.card--bordered):has(.card__media--left) .card__body{padding-left:var(--spacing-none,0)}.card.card--horizontal:not(.card--bordered):has(.card__media--right) .card__body{padding-right:var(--spacing-none,0)}.card.card--horizontal .card__media{max-width:33.3333%}.card.card--horizontal .card__media>img,.card.card--horizontal .card__media>video{aspect-ratio:4/3}.card.card--horizontal .card__media.card__media--left{order:-9999}.card.card--horizontal .card__media.card__media--right{order:9999}}.card.card--vertical{flex-direction:column}.card.card--vertical .card__media>img,.card.card--vertical .card__media video{aspect-ratio:2}}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}
@@ -0,0 +1,66 @@
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
+ export declare const Card: ({ as, layout, border, children, className, ...props }: ReactCardProps) => default_2.JSX.Element;
37
+
38
+ /**
39
+ * Available card layouts based on design system layout options
40
+ */
41
+ declare const CARD_LAYOUTS: readonly ["horizontal", "vertical"];
42
+
43
+ declare type CardLayout = (typeof CARD_LAYOUTS)[number];
44
+
45
+ /**
46
+ * Core card properties shared across all framework implementations
47
+ */
48
+ declare interface CardProps extends BoxProps {
49
+ /**
50
+ * Whether the card has a border or not
51
+ * @default true
52
+ */
53
+ border?: boolean;
54
+ /**
55
+ * Layout of the card
56
+ * @default "vertical"
57
+ */
58
+ layout?: CardLayout;
59
+ }
60
+
61
+ export declare type ReactCardProps = CardProps & {
62
+ children: default_2.ReactNode;
63
+ className?: string;
64
+ };
65
+
66
+ export { }
@@ -0,0 +1,76 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import "react";
3
+ import { B as o } from "../box-1tl08xTv.js";
4
+ import { m as c } from "../utils-DpTd6iI4.js";
5
+ /* empty css */
6
+ const f = ({
7
+ as: a = "article",
8
+ layout: r = "vertical",
9
+ border: s = !0,
10
+ children: d = null,
11
+ className: t,
12
+ ...i
13
+ }) => {
14
+ const m = c(
15
+ "card",
16
+ `card--${r}`,
17
+ s && "card--bordered",
18
+ t
19
+ );
20
+ return /* @__PURE__ */ e(o, { as: a, className: m, ...i, children: d });
21
+ }, N = ({
22
+ children: a,
23
+ className: r,
24
+ position: s,
25
+ ...d
26
+ }) => /* @__PURE__ */ e(
27
+ o,
28
+ {
29
+ ...d,
30
+ as: "figure",
31
+ className: c(
32
+ "card__media",
33
+ `card__media--${s}`,
34
+ r
35
+ ),
36
+ children: a
37
+ }
38
+ ), u = ({
39
+ children: a,
40
+ className: r,
41
+ ...s
42
+ }) => /* @__PURE__ */ e(o, { className: c("card__body", r), ...s, children: a }), B = ({
43
+ children: a,
44
+ className: r,
45
+ ...s
46
+ }) => /* @__PURE__ */ e(
47
+ o,
48
+ {
49
+ className: c("card__title", "heading-md", r),
50
+ ...s,
51
+ children: a
52
+ }
53
+ ), g = ({
54
+ children: a,
55
+ className: r,
56
+ ...s
57
+ }) => /* @__PURE__ */ e(o, { className: c("card__description", r), ...s, children: a }), x = ({
58
+ children: a,
59
+ className: r,
60
+ ...s
61
+ }) => /* @__PURE__ */ e(
62
+ o,
63
+ {
64
+ className: ["card__footer", r].filter(Boolean).join(" "),
65
+ ...s,
66
+ children: a
67
+ }
68
+ );
69
+ export {
70
+ f as Card,
71
+ u as CardBody,
72
+ g as CardDescription,
73
+ x as CardFooter,
74
+ N as CardMedia,
75
+ B as CardTitle
76
+ };