@axos-web-dev/shared-components 0.0.133 → 0.0.135

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.
@@ -4,12 +4,14 @@ export interface SalesforceFields {
4
4
  branch: string;
5
5
  subBranch: string;
6
6
  leadSourceDetail: string;
7
+ otherLeadSource: string;
7
8
  }
8
9
  export interface SalesforceInputs {
9
10
  Brand_SFDC2__c: string;
10
11
  Branch_SFDC2__c: string;
11
12
  Sub_Branch_SFDC2__c: string;
12
13
  Lead_Source_Detail_SFDC2__c: string;
14
+ Other_Lead_Source__c: string;
13
15
  lead_source: string;
14
16
  Web_Source__c: string;
15
17
  Marketing_Source__c: string;
@@ -24,6 +26,7 @@ export declare const SalesforceSchema: z.ZodObject<{
24
26
  Branch_SFDC2__c: z.ZodOptional<z.ZodString>;
25
27
  Sub_Branch_SFDC2__c: z.ZodOptional<z.ZodString>;
26
28
  Lead_Source_Detail_SFDC2__c: z.ZodOptional<z.ZodString>;
29
+ Other_Lead_Source__c: z.ZodOptional<z.ZodString>;
27
30
  lead_source: z.ZodOptional<z.ZodString>;
28
31
  Web_Source__c: z.ZodOptional<z.ZodString>;
29
32
  Marketing_Source__c: z.ZodOptional<z.ZodString>;
@@ -37,6 +40,7 @@ export declare const SalesforceSchema: z.ZodObject<{
37
40
  Branch_SFDC2__c?: string | undefined;
38
41
  Sub_Branch_SFDC2__c?: string | undefined;
39
42
  Lead_Source_Detail_SFDC2__c?: string | undefined;
43
+ Other_Lead_Source__c?: string | undefined;
40
44
  lead_source?: string | undefined;
41
45
  Web_Source__c?: string | undefined;
42
46
  Marketing_Source__c?: string | undefined;
@@ -50,6 +54,7 @@ export declare const SalesforceSchema: z.ZodObject<{
50
54
  Branch_SFDC2__c?: string | undefined;
51
55
  Sub_Branch_SFDC2__c?: string | undefined;
52
56
  Lead_Source_Detail_SFDC2__c?: string | undefined;
57
+ Other_Lead_Source__c?: string | undefined;
53
58
  lead_source?: string | undefined;
54
59
  Web_Source__c?: string | undefined;
55
60
  Marketing_Source__c?: string | undefined;
@@ -12,6 +12,7 @@ const SalesforceSchema = z.object({
12
12
  // this configurable
13
13
  Lead_Source_Detail_SFDC2__c: z.string().optional(),
14
14
  //this
15
+ Other_Lead_Source__c: z.string().optional(),
15
16
  lead_source: z.string().optional(),
16
17
  // web RMI
17
18
  Web_Source__c: z.string().optional(),
@@ -67,6 +68,15 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
67
68
  })
68
69
  }
69
70
  ),
71
+ /* @__PURE__ */ jsx(
72
+ "input",
73
+ {
74
+ type: "hidden",
75
+ ...register("Other_Lead_Source__c", {
76
+ value: salesforceFields?.otherLeadSource
77
+ })
78
+ }
79
+ ),
70
80
  /* @__PURE__ */ jsx("input", { type: "hidden", ...register("lead_source", { value: "Web RMI" }) }),
71
81
  /* @__PURE__ */ jsx(
72
82
  "input",
@@ -0,0 +1 @@
1
+ export declare const datePicker: string;
@@ -0,0 +1,6 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ var datePicker = "_1oit9ls0";
4
+ export {
5
+ datePicker
6
+ };
@@ -0,0 +1,3 @@
1
+ import { DatepickerInputProps } from './InputProps';
2
+
3
+ export declare const DatePickerInput: (props: DatepickerInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import DatePicker from "react-date-picker";
5
+ import { wrapper, labelClassName, container, iconContainer, iconInput, helperText } from "./Input.css.js";
6
+ const DatePickerInput = (props) => {
7
+ const {
8
+ disabled,
9
+ label,
10
+ iconLeft,
11
+ iconRight,
12
+ sizes,
13
+ error = false,
14
+ helperText: helper,
15
+ variant
16
+ } = props;
17
+ const [value, onChange] = useState();
18
+ return /* @__PURE__ */ jsxs("div", { className: wrapper(), children: [
19
+ label && /* @__PURE__ */ jsx(
20
+ "label",
21
+ {
22
+ className: labelClassName({ error, variant }),
23
+ htmlFor: props.name,
24
+ children: label
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsxs("div", { className: container({ size: sizes, error }), children: [
28
+ iconLeft && /* @__PURE__ */ jsx("span", { className: iconContainer["left"], children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconLeft }) }),
29
+ /* @__PURE__ */ jsx(
30
+ DatePicker,
31
+ {
32
+ dayPlaceholder: "dd",
33
+ monthPlaceholder: "mm",
34
+ yearPlaceholder: "yyyy",
35
+ minDate: /* @__PURE__ */ new Date(),
36
+ onChange,
37
+ value
38
+ }
39
+ ),
40
+ iconRight && /* @__PURE__ */ jsx("span", { className: iconContainer.right, children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconRight }) })
41
+ ] }),
42
+ /* @__PURE__ */ jsx("span", { className: helperText({ disabled, error }), children: helper })
43
+ ] });
44
+ };
45
+ export {
46
+ DatePickerInput
47
+ };
@@ -0,0 +1,6 @@
1
+ export declare const calendarContainer: string;
2
+ export declare const calendarIcon: string;
3
+ export declare const inputDate: string;
4
+ export declare const verticalCenter: string;
5
+ export declare const calendar: string;
6
+ export declare const headerCalendar: string;
@@ -0,0 +1,15 @@
1
+ /* empty css */
2
+ var calendarContainer = "skzved0";
3
+ var calendarIcon = "skzved1";
4
+ var inputDate = "skzved2";
5
+ var verticalCenter = "skzved3";
6
+ var calendar = "skzved4";
7
+ var headerCalendar = "skzved5";
8
+ export {
9
+ calendar,
10
+ calendarContainer,
11
+ calendarIcon,
12
+ headerCalendar,
13
+ inputDate,
14
+ verticalCenter
15
+ };
@@ -0,0 +1,3 @@
1
+ import { DatepickerInputProps } from './InputProps';
2
+
3
+ export declare const InputDate: (props: DatepickerInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import DatePicker from "react-date-picker";
5
+ import { wrapper, labelClassName, container, iconContainer, iconInput, helperText } from "./Input.css.js";
6
+ const InputDate = (props) => {
7
+ const {
8
+ disabled,
9
+ label,
10
+ iconLeft,
11
+ iconRight,
12
+ sizes,
13
+ error = false,
14
+ helperText: helper,
15
+ variant
16
+ } = props;
17
+ const [value, onChange] = useState();
18
+ return /* @__PURE__ */ jsxs("div", { className: wrapper(), children: [
19
+ label && /* @__PURE__ */ jsx(
20
+ "label",
21
+ {
22
+ className: labelClassName({ error, variant }),
23
+ htmlFor: props.name,
24
+ children: label
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsxs("div", { className: container({ size: sizes, error }), children: [
28
+ iconLeft && /* @__PURE__ */ jsx("span", { className: iconContainer["left"], children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconLeft }) }),
29
+ /* @__PURE__ */ jsx(
30
+ DatePicker,
31
+ {
32
+ dayPlaceholder: "dd",
33
+ monthPlaceholder: "mm",
34
+ yearPlaceholder: "yyyy",
35
+ minDate: /* @__PURE__ */ new Date(),
36
+ onChange,
37
+ value
38
+ }
39
+ ),
40
+ iconRight && /* @__PURE__ */ jsx("span", { className: iconContainer.right, children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconRight }) })
41
+ ] }),
42
+ /* @__PURE__ */ jsx("span", { className: helperText({ disabled, error }), children: helper })
43
+ ] });
44
+ };
45
+ export {
46
+ InputDate
47
+ };
@@ -36,3 +36,9 @@ export interface RadioButtonProps extends InputProps {
36
36
  value: string | number;
37
37
  groupName: string;
38
38
  }
39
+ export interface DatepickerInputProps extends InputProps {
40
+ month?: string;
41
+ selected?: string;
42
+ show?: boolean;
43
+ onDateChange: (day: string) => void;
44
+ }
@@ -15,13 +15,11 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
15
15
  suppressContentEditableWarning?: boolean | undefined;
16
16
  suppressHydrationWarning?: boolean | undefined;
17
17
  accessKey?: string | undefined;
18
- autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
19
18
  autoFocus?: boolean | undefined;
20
19
  contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
21
20
  contextMenu?: string | undefined;
22
21
  dir?: string | undefined;
23
22
  draggable?: (boolean | "false" | "true") | undefined;
24
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
25
23
  hidden?: boolean | undefined;
26
24
  id?: string | undefined;
27
25
  lang?: string | undefined;
@@ -45,6 +43,7 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
45
43
  rev?: string | undefined;
46
44
  typeof?: string | undefined;
47
45
  vocab?: string | undefined;
46
+ autoCapitalize?: string | undefined;
48
47
  autoCorrect?: string | undefined;
49
48
  autoSave?: string | undefined;
50
49
  color?: string | undefined;
@@ -1,50 +1,48 @@
1
- ._fdic_callout_1kihd_1 {
1
+ ._fdic_callout_1f6md_1 {
2
2
  background-color: #000;
3
3
  color: #fff;
4
4
  }
5
5
 
6
- ._inner_container_1kihd_6 {
6
+ ._inner_container_1f6md_6 {
7
7
  margin-left: auto;
8
8
  margin-right: auto;
9
9
  width: calc(100% - 90px);
10
10
  }
11
11
 
12
- ._fdic_callout_1kihd_1 svg {
13
- margin-right: 8px;
14
- }
15
-
16
- ._fdic_callout_1kihd_1 .flex {
12
+ ._fdic_callout_1f6md_1 .flex {
17
13
  min-height: 32px;
18
14
  }
19
15
 
20
- ._fdic_callout_1kihd_1 p {
21
- font-size: 12px;
22
- line-height: 1;
23
- font-style: italic;
16
+ ._fdic_callout_1f6md_1 img {
17
+ padding-block: 8px;
24
18
  }
25
19
 
26
20
  @media (max-width: 1280px) and (min-width: 1024px) {
27
- ._inner_container_1kihd_6 {
21
+ ._inner_container_1f6md_6 {
28
22
  width: calc(100% - 40px);
29
23
  }
30
24
  }
31
25
 
32
26
  @media (max-width: 769px) {
33
- ._inner_container_1kihd_6 {
27
+ ._inner_container_1f6md_6 {
34
28
  width: calc(100% - 60px);
35
29
  }
36
30
  }
37
31
 
38
32
  @media (max-width: 603px) {
39
- ._fdic_callout_1kihd_1 .flex {
40
- min-height: 24px;
33
+ ._fdic_callout_1f6md_1 .flex {
34
+ min-height: 28px;
41
35
  }
42
- ._fdic_callout_1kihd_1 p {
43
- font-size: 8px;
44
- line-height: 1.3;
36
+ }
37
+
38
+ @media (max-width: 470px) {
39
+ ._fdic_callout_1f6md_1 img {
40
+ padding-block: 5px;
45
41
  }
46
- ._fdic_callout_1kihd_1 svg {
47
- min-width: 32px;
48
- height: auto;
42
+ }
43
+
44
+ @media (max-width: 400px) {
45
+ ._inner_container_1f6md_6 {
46
+ width: calc(100% - 20px);
49
47
  }
50
48
  }
@@ -0,0 +1,95 @@
1
+ .react-date-picker {
2
+ width: 100%;
3
+ }
4
+ .react-date-picker__wrapper {
5
+ border: none !important;
6
+ }
7
+ .react-calendar__month-view__weekdays__weekday {
8
+ width: 45px;
9
+ height: 22px;
10
+ margin: 0;
11
+ display: inline-flex;
12
+ align-items: center;
13
+ font-family: var(--main-font-family);
14
+ font-weight: 500;
15
+ letter-spacing: 0.2px;
16
+ justify-content: center;
17
+ }
18
+ .react-calendar__month-view__weekdays__weekday {
19
+ font-size: 12px;
20
+ line-height: 16;
21
+ color: #2F5B88;
22
+ }
23
+ .react-calendar__month-view__weekdays__weekday > abbr {
24
+ text-decoration: none;
25
+ }
26
+ .react-calendar__month-view__days__day {
27
+ width: 49px;
28
+ height: 49px;
29
+ margin: 0;
30
+ display: inline-flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ }
34
+ .react-calendar__month-view__days__day > abbr {
35
+ font-family: var(--main-font-family) !important;
36
+ font-weight: 500;
37
+ letter-spacing: 0.2px;
38
+ color: #051A3F;
39
+ }
40
+ .react-date-picker__inputGroup__input, .react-date-picker__inputGroup__divider {
41
+ color: #5E6A74 !important;
42
+ }
43
+ .react-date-picker__clear-button {
44
+ display: none;
45
+ }
46
+ .react-calendar__navigation__label__labelText {
47
+ font-weight: 600;
48
+ font-size: 24px;
49
+ line-height: 36px;
50
+ letter-spacing: 0.2px;
51
+ color: #1E3860;
52
+ font-family: var(--header-font-family);
53
+ }
54
+ .react-datepicker-popper {
55
+ transform: translateY(40px)!important;
56
+ }
57
+ .react-calendar__month-view__days__day--neighboringMonth {
58
+ background-color: #F4F4F4 !important;
59
+ opacity: 50%;
60
+ }
61
+ .react-calendar__month-view__days__day--neighboringMonth > abbr {
62
+ color: #5E6A74;
63
+ }
64
+ .react-calendar__tile--active > abbr {
65
+ color: white;
66
+ }
67
+ .react-calendar {
68
+ border: 12px solid #FFFFFF4D !important;
69
+ border-radius: 4px;
70
+ }
71
+ .react-calendar__navigation__prev2-button, .react-calendar__navigation__next2-button {
72
+ display: none;
73
+ }
74
+ .react-date-picker__calendar {
75
+ max-width: 100% !important;
76
+ }
77
+ .react-date-picker__inputGroup__input:focus-visible {
78
+ outline: none;
79
+ }
80
+ .react-date-picker__inputGroup__input:invalid {
81
+ background: transparent !important;
82
+ }
83
+ @media screen and (max-width:320px) {
84
+ .react-calendar__month-view__weekdays__weekday {
85
+ width: 43.5px;
86
+ }
87
+ .react-calendar__month-view__days__day {
88
+ width: 43.5px;
89
+ }
90
+ }
91
+ @media screen and (max-width:400px) {
92
+ .react-calendar__navigation .react-calendar__navigation__prev-button, .react-calendar__navigation .react-calendar__navigation__next-button {
93
+ min-width: auto;
94
+ }
95
+ }
@@ -0,0 +1,39 @@
1
+ .skzved0 {
2
+ position: relative;
3
+ }
4
+ .skzved1 {
5
+ position: relative;
6
+ top: 5px;
7
+ left: 5px;
8
+ }
9
+ .skzved2 {
10
+ width: 100px;
11
+ padding-left: 5px;
12
+ padding-right: 5px;
13
+ line-height: 28px;
14
+ font-size: 14pt;
15
+ }
16
+ .skzved3 {
17
+ display: flex;
18
+ justify-content: center;
19
+ align-items: center;
20
+ }
21
+ .skzved4 {
22
+ display: block;
23
+ background: #FFFFFF;
24
+ width: 300px;
25
+ border: solid 1px #CCCCCC;
26
+ margin: 10px auto;
27
+ box-shadow: 0 0 15px 0 #C0C0C0;
28
+ font-size: 1.3rem;
29
+ text-align: center;
30
+ z-index: 999;
31
+ }
32
+ .skzved4 .skzved5 {
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ color: #FFFFFF;
37
+ cursor: default;
38
+ font-weight: bold;
39
+ }
@@ -310,12 +310,14 @@ main > div:nth-last-child(2) > ._1nivbwe0 {
310
310
  tr:has(> :last-child:nth-child(-n + 3)) td {
311
311
  font-size: 14px;
312
312
  min-width: unset;
313
+ padding: 16px 12px;
313
314
  }
314
315
  ._1nivbwe13 tr:has(> :last-child:nth-child(-n + 3)) th {
315
316
  width: 30%;
316
317
  }
317
318
  tr:has(> :last-child:nth-child(-n + 3)) th {
318
319
  min-width: unset;
320
+ padding: 16px 8px;
319
321
  }
320
322
  tr:has(> :last-child:nth-child(-n + 3)) td:first-child {
321
323
  box-shadow: none;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "0.0.133",
4
+ "version": "0.0.135",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",