jcicl 0.0.335 → 0.0.337
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/CircularIconButton/CircularIconButton.d.ts +14 -0
- package/CircularIconButton/CircularIconButton.js +42 -0
- package/CircularIconButton/index.d.ts +1 -0
- package/CircularIconButton/index.js +4 -0
- package/Pill/Pill.d.ts +8 -0
- package/Pill/Pill.js +24 -0
- package/Pill/index.d.ts +1 -0
- package/Pill/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { LucideProps } from 'lucide-react';
|
|
3
|
+
export type CircularIconButtonProps = CircularIconWrapperProps & {
|
|
4
|
+
icon: ForwardRefExoticComponent<Omit<LucideProps, 'ref'>>;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
size?: number;
|
|
7
|
+
};
|
|
8
|
+
interface CircularIconWrapperProps {
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const CircularIconButton: React.FC<CircularIconButtonProps>;
|
|
14
|
+
export default CircularIconButton;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { n as c } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as a } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import n from "../theme.js";
|
|
5
|
+
const l = c("div")(({ backgroundColor: t, size: r, color: o }) => ({
|
|
6
|
+
...a`
|
|
7
|
+
background-color: ${t};
|
|
8
|
+
color: ${o};
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
width: ${r}px;
|
|
11
|
+
height: ${r}px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
transition: all 0.21s ease;
|
|
17
|
+
transform: scale(1);
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
filter: brightness(92%);
|
|
21
|
+
transform: scale(1.1);
|
|
22
|
+
}
|
|
23
|
+
`
|
|
24
|
+
})), d = ({
|
|
25
|
+
color: t = n.colors.white,
|
|
26
|
+
backgroundColor: r = n.colors.green,
|
|
27
|
+
size: o = 20,
|
|
28
|
+
onClick: s,
|
|
29
|
+
icon: i
|
|
30
|
+
}) => /* @__PURE__ */ e(
|
|
31
|
+
l,
|
|
32
|
+
{
|
|
33
|
+
color: t,
|
|
34
|
+
backgroundColor: r,
|
|
35
|
+
size: o * 1.2,
|
|
36
|
+
onClick: s,
|
|
37
|
+
children: /* @__PURE__ */ e(i, { size: o * 0.8 })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
export {
|
|
41
|
+
d as default
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type CircularIconButtonProps } from './CircularIconButton';
|
package/Pill/Pill.d.ts
ADDED
package/Pill/Pill.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { n as l } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import o from "../theme.js";
|
|
5
|
+
const i = l("span")(
|
|
6
|
+
({ backgroundColor: r = o.colors.whiteGreen, textColor: t = o.colors.darkGreen }) => ({
|
|
7
|
+
...c`
|
|
8
|
+
font-family: ${o.fonts.roboto};
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
color: ${t};
|
|
12
|
+
background-color: ${r};
|
|
13
|
+
padding: 3px 13px;
|
|
14
|
+
border-radius: 21px;
|
|
15
|
+
`
|
|
16
|
+
})
|
|
17
|
+
), m = (r) => {
|
|
18
|
+
const { backgroundColor: t = o.colors.green, textColor: e = o.colors.white, children: n } = r;
|
|
19
|
+
return /* @__PURE__ */ s(i, { backgroundColor: t, textColor: e, children: n });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
m as Pill,
|
|
23
|
+
m as default
|
|
24
|
+
};
|
package/Pill/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type PillProps } from './Pill';
|
package/Pill/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.337",
|
|
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",
|