jcicl 0.0.189 → 0.0.191

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 (2) hide show
  1. package/Input/Input.js +64 -37
  2. package/package.json +1 -1
package/Input/Input.js CHANGED
@@ -1,44 +1,71 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { n as t } from "../.chunks/emotion-styled.browser.esm.js";
3
- import e from "../theme.js";
4
- import { T as s } from "../.chunks/TextField.js";
5
- const d = t(s, {
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { n } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as i } from "../.chunks/emotion-react.browser.esm.js";
4
+ import r from "../theme.js";
5
+ import { T as p } from "../.chunks/TextField.js";
6
+ const d = n(p, {
6
7
  shouldForwardProp: (o) => o != "borderFocusColor"
7
- })(({ borderFocusColor: o }) => ({
8
- backgroundColor: e.colors.white,
9
- borderRadius: "0",
10
- height: "18px",
11
- input: {
12
- transition: "313ms all ease-out",
13
- height: "15px",
14
- padding: "2px 0",
15
- borderRadius: "0",
16
- borderBottom: `1px solid ${e.colors.gray}`,
17
- width: "100%",
18
- "&:focus-visible": {
19
- boxShadow: `0 -5px 4px -4px ${o} inset`
8
+ })(({ borderFocusColor: o, type: e }) => ({
9
+ ...i`
10
+ background-color: ${r.colors.white};
11
+ border-radius: 0;
12
+ height: 18px;
13
+
14
+ input {
15
+ transition: 313ms all ease-out;
16
+ height: 15px;
17
+ padding: 2px 0;
18
+ border-radius: 0;
19
+ border-bottom: 1px solid ${r.colors.gray};
20
+ width: 100%;
21
+
22
+ &:focus-visible {
23
+ ${e !== "date" && i`
24
+ box-shadow: 0 -5px 4px -4px ${o} inset;
25
+ `}
26
+ }
27
+
28
+ ::-webkit-calendar-picker-indicator {
29
+ cursor: pointer;
30
+ transition: 201ms all ease-out;
31
+ outline: none !important;
32
+
33
+ &:hover,
34
+ :focus-visible {
35
+ box-shadow:
36
+ 0 -6px 4px -4px ${o} inset,
37
+ 0 5px 4px -4px ${o} inset;
38
+ }
39
+ }
20
40
  }
21
- },
22
- "&:hover, :focus-visible": {
23
- input: {
24
- boxShadow: `0 -5px 4px -4px ${o} inset`
41
+
42
+ &:hover,
43
+ :focus-visible {
44
+ input {
45
+ ${e !== "date" && i`
46
+ box-shadow: 0 -5px 4px -4px ${o} inset;
47
+ `}
48
+ }
25
49
  }
26
- },
27
- fieldset: {
28
- borderRadius: "0",
29
- border: "none"
30
- },
31
- "&.Mui-focused": {
32
- fieldset: {
33
- border: "none"
50
+
51
+ fieldset {
52
+ border-radius: 0;
53
+ border: none;
34
54
  }
35
- }
36
- })), x = ({
37
- borderFocusColor: o = e.colors.green,
55
+
56
+ &.Mui-focused {
57
+ fieldset {
58
+ border: none;
59
+ }
60
+ }
61
+ `
62
+ })), c = ({
63
+ borderFocusColor: o = r.colors.green,
38
64
  // border primary
39
- ...r
40
- }) => /* @__PURE__ */ i(d, { borderFocusColor: o, ...r });
65
+ type: e,
66
+ ...t
67
+ }) => /* @__PURE__ */ s(d, { borderFocusColor: o, type: e, ...t });
41
68
  export {
42
- x as Input,
43
- x as default
69
+ c as Input,
70
+ c as default
44
71
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.189",
4
+ "version": "0.0.191",
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",