@star-insure/sdk 2.0.1 → 2.0.3
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/dist/components/tables/TableCell.d.ts +2 -1
- package/dist/components/tables/TableHeader.d.ts +2 -1
- package/dist/sdk.cjs.development.js +13 -7
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +13 -7
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/models/quotes/QuoteRequest.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/tables/TableCell.tsx +6 -2
- package/src/components/tables/TableHeader.tsx +6 -1
- package/src/lib/quoteRequestForm.tsx +1 -0
- package/src/types/models/quotes/QuoteRequest.ts +2 -0
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
+
condensed?: true;
|
|
5
6
|
}
|
|
6
|
-
export default function TableCell({ children, className }: Props): JSX.Element;
|
|
7
|
+
export default function TableCell({ children, className, condensed }: Props): JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -4,6 +4,7 @@ interface Props {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
textAlign?: 'left' | 'right' | 'center';
|
|
6
6
|
sort?: string;
|
|
7
|
+
condensed?: true;
|
|
7
8
|
}
|
|
8
|
-
export default function TableHeader({ children, className, sort, textAlign, }: Props): JSX.Element;
|
|
9
|
+
export default function TableHeader({ children, className, sort, textAlign, condensed, }: Props): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -10,8 +10,8 @@ var React = require('react');
|
|
|
10
10
|
var React__default = _interopDefault(React);
|
|
11
11
|
var uuid = require('uuid');
|
|
12
12
|
var react$1 = require('@headlessui/react');
|
|
13
|
-
var lodash = require('lodash');
|
|
14
13
|
var cn = _interopDefault(require('classnames'));
|
|
14
|
+
var lodash = require('lodash');
|
|
15
15
|
|
|
16
16
|
function parseDate(dateString) {
|
|
17
17
|
// Make sure we've only got 10 characters
|
|
@@ -779,7 +779,8 @@ var initialData = {
|
|
|
779
779
|
referrer_id: undefined,
|
|
780
780
|
referrer_category_id: undefined,
|
|
781
781
|
pricing_expires_at: undefined,
|
|
782
|
-
follow_up_at: undefined
|
|
782
|
+
follow_up_at: undefined,
|
|
783
|
+
is_follow_up_required: true
|
|
783
784
|
};
|
|
784
785
|
var QuoteRequestFormContext = /*#__PURE__*/React__default.createContext({});
|
|
785
786
|
function QuoteRequestFormProvider(_ref) {
|
|
@@ -1489,10 +1490,12 @@ function TableBody(_ref) {
|
|
|
1489
1490
|
|
|
1490
1491
|
function TableCell(_ref) {
|
|
1491
1492
|
var children = _ref.children,
|
|
1492
|
-
|
|
1493
|
-
|
|
1493
|
+
className = _ref.className,
|
|
1494
|
+
condensed = _ref.condensed;
|
|
1494
1495
|
return React__default.createElement("td", {
|
|
1495
|
-
className: className
|
|
1496
|
+
className: cn(className, 'px-3 py-3 text-sm text-gray-500', {
|
|
1497
|
+
'w-0 whitespace-nowrap': condensed
|
|
1498
|
+
})
|
|
1496
1499
|
}, children);
|
|
1497
1500
|
}
|
|
1498
1501
|
|
|
@@ -1511,7 +1514,8 @@ function TableHeader(_ref) {
|
|
|
1511
1514
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1512
1515
|
sort = _ref.sort,
|
|
1513
1516
|
_ref$textAlign = _ref.textAlign,
|
|
1514
|
-
textAlign = _ref$textAlign === void 0 ? 'left' : _ref$textAlign
|
|
1517
|
+
textAlign = _ref$textAlign === void 0 ? 'left' : _ref$textAlign,
|
|
1518
|
+
condensed = _ref.condensed;
|
|
1515
1519
|
|
|
1516
1520
|
var _React$useState = React__default.useState(''),
|
|
1517
1521
|
sortLink = _React$useState[0],
|
|
@@ -1535,7 +1539,9 @@ function TableHeader(_ref) {
|
|
|
1535
1539
|
}, []);
|
|
1536
1540
|
var textAlignClass = textAlign === 'center' && 'text-center justify-center' || textAlign === 'right' && 'text-right justify-end' || 'text-left justify-between';
|
|
1537
1541
|
return React__default.createElement("th", {
|
|
1538
|
-
className: className
|
|
1542
|
+
className: cn(className, 'py-3.5 px-3 text-sm font-semibold text-left', {
|
|
1543
|
+
'w-0 whitespace-nowrap': condensed
|
|
1544
|
+
})
|
|
1539
1545
|
}, React__default.createElement("div", {
|
|
1540
1546
|
className: "flex items-center gap-3 " + textAlignClass
|
|
1541
1547
|
}, children, sort && React__default.createElement(react.Link, {
|