@axos-web-dev/shared-components 0.0.68 → 0.0.69

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,14 +4,12 @@ export interface AccordionItemProps extends PropsWithChildren {
4
4
  id: string;
5
5
  }
6
6
  export declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
7
- export interface AccordionItemSummaryProps {
7
+ export declare const AccordionItemSummary: (props: {
8
8
  id: string;
9
9
  level: string;
10
- }
11
- export declare const AccordionItemSummary: (props: AccordionItemSummaryProps & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
+ } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
12
11
  export declare const AccordionItemContent: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
13
- export interface FaqAccordionProps {
12
+ export declare const FaqAccordion: (props: {
14
13
  header?: string;
15
14
  accordionEmbedLevel?: string;
16
- }
17
- export declare const FaqAccordion: (props: FaqAccordionProps & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
15
+ } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -95,7 +95,11 @@ const ApplicationStart = ({
95
95
  description && /* @__PURE__ */ jsx(
96
96
  "div",
97
97
  {
98
- className: `${form} ${descriptionField({ variant })} text_center`,
98
+ className: clsx(
99
+ "text_center",
100
+ form,
101
+ descriptionField({ variant })
102
+ ),
99
103
  children: description
100
104
  }
101
105
  )
@@ -90,7 +90,11 @@ const ContactCompany = ({
90
90
  description && /* @__PURE__ */ jsx(
91
91
  "div",
92
92
  {
93
- className: `${form} ${descriptionField({ variant })} text_center`,
93
+ className: clsx(
94
+ "text_center",
95
+ form,
96
+ descriptionField({ variant })
97
+ ),
94
98
  children: description
95
99
  }
96
100
  )
@@ -144,7 +144,11 @@ const ContactUsBusiness = ({
144
144
  description && /* @__PURE__ */ jsx(
145
145
  "div",
146
146
  {
147
- className: `${form} ${descriptionField({ variant })} text_center`,
147
+ className: clsx(
148
+ "text_center",
149
+ form,
150
+ descriptionField({ variant })
151
+ ),
148
152
  children: description
149
153
  }
150
154
  )
@@ -99,7 +99,11 @@ const DealerServices = ({
99
99
  description && /* @__PURE__ */ jsx(
100
100
  "div",
101
101
  {
102
- className: `${form} ${descriptionField({ variant })} text_center`,
102
+ className: clsx(
103
+ "text_center",
104
+ form,
105
+ descriptionField({ variant })
106
+ ),
103
107
  children: description
104
108
  }
105
109
  )
@@ -130,7 +130,11 @@ const EmailOnly = ({
130
130
  description && /* @__PURE__ */ jsx(
131
131
  "div",
132
132
  {
133
- className: `${form} ${descriptionField({ variant })} text_center`,
133
+ className: clsx(
134
+ "text_center",
135
+ form,
136
+ descriptionField({ variant })
137
+ ),
134
138
  children: description
135
139
  }
136
140
  )
@@ -92,7 +92,11 @@ const ScheduleCall = ({
92
92
  description && /* @__PURE__ */ jsx(
93
93
  "div",
94
94
  {
95
- className: `${form} ${descriptionField({ variant })} text_center`,
95
+ className: clsx(
96
+ "text_center",
97
+ form,
98
+ descriptionField({ variant })
99
+ ),
96
100
  children: description
97
101
  }
98
102
  )
@@ -99,7 +99,11 @@ const ScheduleCallPremier = ({
99
99
  description && /* @__PURE__ */ jsx(
100
100
  "div",
101
101
  {
102
- className: `${form} ${descriptionField({ variant })} text_center`,
102
+ className: clsx(
103
+ "text_center",
104
+ form,
105
+ descriptionField({ variant })
106
+ ),
103
107
  children: description
104
108
  }
105
109
  )
@@ -5,11 +5,9 @@ export declare const containerIconBillboard: import('@vanilla-extract/recipes').
5
5
  primary: {
6
6
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
7
7
  border: "1px solid #D4D4D4";
8
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
9
8
  };
10
9
  secondary: {
11
10
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
12
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
13
11
  };
14
12
  tertiary: {
15
13
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
2
2
  import { CellProps, RowProps, TableContainerProps, TableProps } from './Table.interface';
3
3
 
4
4
  export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, tableType, tableDescription, internalName, id, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, className, style, }: TableProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, }: TableProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const TableRow: ({ children, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const TableHead: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const TableBody: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, HtmlHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
1
+ import { HtmlHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
2
2
 
3
3
  export interface RowProps extends HtmlHTMLAttributes<HTMLTableRowElement>, PropsWithChildren {
4
4
  }
@@ -12,8 +12,6 @@ export interface TableProps extends PropsWithChildren {
12
12
  highlight?: "First Row" | "Last Row" | "First and Last Row" | undefined;
13
13
  tableType?: "Standard" | "Rate";
14
14
  alternateColorRows?: boolean;
15
- className?: string;
16
- style?: CSSProperties;
17
15
  }
18
16
  export interface TableContainerProps extends PropsWithChildren {
19
17
  id?: string;
@@ -33,21 +33,13 @@ const Table = ({
33
33
  children,
34
34
  highlight,
35
35
  tableType = "Standard",
36
- alternateColorRows = false,
37
- className,
38
- style
36
+ alternateColorRows = false
39
37
  }) => {
40
38
  return /* @__PURE__ */ jsx(
41
39
  "div",
42
40
  {
43
- className: clsx(
44
- tableWrapper({ variant: getVariant(variant) }),
45
- className
46
- ),
47
- style: {
48
- ...style,
49
- ...tableType === "Rate" && { width: "90%", border: "none" }
50
- },
41
+ className: tableWrapper({ variant: getVariant(variant) }),
42
+ style: tableType === "Rate" ? { width: "90%", border: "none" } : {},
51
43
  children: /* @__PURE__ */ jsx(
52
44
  "table",
53
45
  {
@@ -2,10 +2,10 @@
2
2
  font-weight: 600;
3
3
  opacity: 1;
4
4
  margin-bottom: 0;
5
+ padding: 0;
5
6
  text-decoration: none;
6
7
  cursor: pointer;
7
8
  font-family: var(--main-font-family);
8
- padding: 0;
9
9
  }
10
10
  ._1gp5vfo1 {
11
11
  color: var(--_1073cm86);
@@ -9,11 +9,9 @@
9
9
  ._1r4ovbu1 {
10
10
  background: var(--_1073cm81);
11
11
  border: 1px solid #D4D4D4;
12
- color: var(--_1073cm82);
13
12
  }
14
13
  ._1r4ovbu2 {
15
14
  background: var(--_1073cm88);
16
- color: var(--_1073cm89);
17
15
  }
18
16
  ._1r4ovbu3 {
19
17
  background: var(--_1073cm8f);
@@ -78,7 +76,6 @@
78
76
  flex-direction: column;
79
77
  gap: 24px;
80
78
  font-family: var(--main-font-family);
81
- width: 100%;
82
79
  }
83
80
  ._1r4ovbuf {
84
81
  display: flex;
@@ -99,7 +96,6 @@
99
96
  margin-top: auto;
100
97
  gap: 24px;
101
98
  flex-wrap: wrap;
102
- align-items: center;
103
99
  }
104
100
  ._1r4ovbui {
105
101
  margin-inline: auto;
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.68",
4
+ "version": "0.0.69",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -28,19 +28,18 @@
28
28
  "npm:link": "npm run build && npm link"
29
29
  },
30
30
  "dependencies": {
31
- "@hookform/resolvers": "^3.4.2",
32
- "@react-input/mask": "^1.2.4",
33
- "@react-input/number-format": "^1.0.26",
31
+ "@hookform/resolvers": "^3.6.0",
32
+ "@react-input/mask": "^1.2.5",
33
+ "@react-input/number-format": "^1.0.27",
34
34
  "@storybook/builder-vite": "^7.6.19",
35
35
  "@storybook/icons": "^1.2.9",
36
36
  "@storybook/preview-api": "^7.6.19",
37
37
  "@types/iframe-resizer": "3.5.13",
38
- "@vanilla-extract/css": "^1.15.2",
38
+ "@vanilla-extract/css": "^1.15.3",
39
39
  "@vanilla-extract/recipes": "^0.5.1",
40
40
  "clsx": "^2.1.1",
41
41
  "iframe-resizer": "4.3.11",
42
- "react-date-picker": "^11.0.0",
43
- "react-hook-form": "^7.51.5",
42
+ "react-hook-form": "^7.52.0",
44
43
  "react-markdown": "^9.0.1",
45
44
  "react-use": "^17.5.0",
46
45
  "typed-css-modules": "^0.9.1",
@@ -1 +0,0 @@
1
- export declare const datePicker: string;
@@ -1,6 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- var datePicker = "_1oit9ls0";
4
- export {
5
- datePicker
6
- };
@@ -1,4 +0,0 @@
1
- import { DatePickerProps } from 'react-date-picker';
2
- import { InputProps } from './InputProps';
3
-
4
- export declare const DatePickerInput: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<DatePickerProps>>;
@@ -1,40 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import DatePicker from "react-date-picker";
4
- import { wrapper, labelClassName, container, iconContainer, iconInput, helperText } from "./Input.css.js";
5
- const DatePickerInput = forwardRef(
6
- (props) => {
7
- const {
8
- disabled,
9
- label,
10
- iconLeft,
11
- iconRight,
12
- sizes,
13
- error = false,
14
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
- // skeleton = false,
16
- helperText: helper,
17
- variant
18
- // ...rest
19
- } = props;
20
- return /* @__PURE__ */ jsxs("div", { className: wrapper(), children: [
21
- label && /* @__PURE__ */ jsx(
22
- "label",
23
- {
24
- className: labelClassName({ error, variant }),
25
- htmlFor: props.name,
26
- children: label
27
- }
28
- ),
29
- /* @__PURE__ */ jsxs("div", { className: container({ size: sizes, error }), children: [
30
- iconLeft && /* @__PURE__ */ jsx("span", { className: iconContainer["left"], children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconLeft }) }),
31
- /* @__PURE__ */ jsx(DatePicker, { minDate: /* @__PURE__ */ new Date() }),
32
- iconRight && /* @__PURE__ */ jsx("span", { className: iconContainer.right, children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconRight }) })
33
- ] }),
34
- /* @__PURE__ */ jsx("span", { className: helperText({ disabled, error }), children: helper })
35
- ] });
36
- }
37
- );
38
- export {
39
- DatePickerInput
40
- };
@@ -1,86 +0,0 @@
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
- @media screen and (max-width:320px) {
75
- .react-calendar__month-view__weekdays__weekday {
76
- width: 43.5px;
77
- }
78
- .react-calendar__month-view__days__day {
79
- width: 43.5px;
80
- }
81
- }
82
- @media screen and (max-width:400px) {
83
- .react-calendar__navigation .react-calendar__navigation__prev-button, .react-calendar__navigation .react-calendar__navigation__next-button {
84
- min-width: auto;
85
- }
86
- }