jcicl 1.0.46 → 1.0.47

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.
@@ -1,5 +1,6 @@
1
1
  import { ForwardRefExoticComponent } from 'react';
2
2
  import { ButtonProps as MuiButtonProps } from '@mui/material/Button/Button';
3
+ import { CSSObject } from '@emotion/react';
3
4
  import { LucideProps } from 'lucide-react';
4
5
  export interface WelcomeCardProps extends WelcomeCardStylesProps {
5
6
  icon: ForwardRefExoticComponent<Omit<LucideProps, 'ref'>>;
@@ -9,6 +10,7 @@ interface WelcomeCardStylesProps extends Omit<MuiButtonProps, 'color'> {
9
10
  textColor?: string;
10
11
  shadowColor?: string;
11
12
  orientation?: 'vertical' | 'horizontal';
13
+ styles: CSSObject;
12
14
  }
13
15
  declare const WelcomeCard: React.FC<WelcomeCardProps & {
14
16
  children: React.ReactNode;
@@ -1,13 +1,13 @@
1
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
- import { B as h } from "../.chunks/Button.js";
3
- import { c as p } from "../.chunks/emotion-react.browser.esm.js";
4
- import { isTablet as f } from "../utils.js";
5
- import { Flex as u } from "../Flex/Flex.js";
6
- import { useThemeColors as g } from "../ThemeContext.js";
7
- import { s as x } from "../.chunks/DefaultPropsProvider.js";
8
- const b = x(h)(
9
- ({ iconColor: e, textColor: i, shadowColor: c, orientation: t }) => ({
10
- ...p`
1
+ import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
+ import { B as p } from "../.chunks/Button.js";
3
+ import { c as f } from "../.chunks/emotion-react.browser.esm.js";
4
+ import { isTablet as u } from "../utils.js";
5
+ import { Flex as g } from "../Flex/Flex.js";
6
+ import { useThemeColors as x } from "../ThemeContext.js";
7
+ import { s as b } from "../.chunks/DefaultPropsProvider.js";
8
+ const C = b(p)(
9
+ ({ iconColor: r, textColor: i, shadowColor: c, orientation: t, styles: e }) => ({
10
+ ...f`
11
11
  text-transform: none;
12
12
  transition: all 0.3s ease;
13
13
  font-size: 1.3rem;
@@ -55,50 +55,54 @@ const b = x(h)(
55
55
  width: 6rem;
56
56
  height: 6rem;
57
57
  transition: all 0.3s ease;
58
- background-color: ${e}22;
58
+ background-color: ${r}22;
59
59
  border-radius: 50%;
60
60
  }
61
61
 
62
62
  .icon {
63
63
  transition: all 0.3s ease;
64
- color: ${e};
64
+ color: ${r};
65
65
  }
66
66
 
67
67
  .MuiTouchRipple-child {
68
- background-color: ${e};
68
+ background-color: ${r};
69
69
  }
70
+
71
+ ${e}
70
72
  `
71
73
  })
72
- ), k = ({
73
- iconColor: e,
74
+ ), T = ({
75
+ iconColor: r,
74
76
  textColor: i,
75
77
  shadowColor: c,
76
78
  icon: t,
77
- orientation: r,
79
+ orientation: e,
78
80
  onClick: s,
79
81
  children: l,
80
- ...n
82
+ styles: n,
83
+ ...m
81
84
  }) => {
82
- const a = g(), m = f();
83
- return r || (r = m ? "horizontal" : "vertical"), /* @__PURE__ */ o(
84
- b,
85
+ const a = x(), d = u();
86
+ return e || (e = d ? "horizontal" : "vertical"), /* @__PURE__ */ o(
87
+ C,
85
88
  {
86
89
  className: "jcWelcomeCard",
87
- iconColor: e || a.themeColor,
90
+ iconColor: r || a.themeColor,
88
91
  textColor: i,
89
92
  shadowColor: c || a.themeShadowA,
90
93
  onClick: s,
91
94
  disabled: !s,
92
- orientation: r,
93
- ...n,
94
- children: /* @__PURE__ */ d(
95
- u,
95
+ orientation: e,
96
+ styles: n,
97
+ ...m,
98
+ children: /* @__PURE__ */ h(
99
+ g,
96
100
  {
97
101
  className: "jcWelcomeCardContent",
98
- column: r === "vertical",
102
+ column: e === "vertical",
99
103
  alignItems: "center",
100
104
  gap: "20px",
101
- styles: { marginRight: r === "vertical" ? 0 : "4%" },
105
+ styles: { marginRight: e === "vertical" ? 0 : "4%" },
102
106
  children: [
103
107
  /* @__PURE__ */ o("div", { className: "iconContainer", children: /* @__PURE__ */ o("div", { className: "iconCircle", children: /* @__PURE__ */ o(t, { className: "icon", size: 40 }) }) }),
104
108
  /* @__PURE__ */ o("span", { children: l })
@@ -109,5 +113,5 @@ const b = x(h)(
109
113
  );
110
114
  };
111
115
  export {
112
- k as default
116
+ T as default
113
117
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "1.0.46",
4
+ "version": "1.0.47",
5
5
  "description": "Component library for the websites of Johnson County Iowa",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",