@star-insure/sdk 5.0.0 → 5.0.1

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.
@@ -1348,7 +1348,7 @@ function Button(_ref) {
1348
1348
  _ref$small = _ref.small,
1349
1349
  small = _ref$small === void 0 ? false : _ref$small;
1350
1350
  var baseClasses = small ? 'font-bold text-sm inline-flex items-center gap-3 justify-center text-white text-center px-3 py-1 rounded min-w-[80px] transition-all hover:brightness-110' : 'font-black inline-flex items-center gap-3 justify-center text-white text-center px-5 py-2 rounded-md min-w-[120px] transition-all hover:brightness-110';
1351
- var statusClass = status === 'primary' && 'bg-primary' || status === 'danger' && 'bg-red-500' || status === 'warning' && 'bg-yellow-400' || status === 'info' && 'bg-blue-400' || 'bg-gray-600';
1351
+ var statusClass = status === 'primary' && 'bg-accent' || status === 'danger' && 'bg-red-500' || status === 'warning' && 'bg-yellow-400' || status === 'info' && 'bg-blue-400' || 'bg-gray-600';
1352
1352
  var classes = (className != null ? className : '') + " " + baseClasses + " " + statusClass;
1353
1353
 
1354
1354
  if (_onClick) {
@@ -1607,7 +1607,7 @@ function ToastItem(_ref) {
1607
1607
  removeToast = _useToast.removeToast;
1608
1608
 
1609
1609
  var defaultClasses = 'w-full min-w-[250px] p-4 shadow flex justify-between items-center font-black rounded-md not:';
1610
- var statusClasses = status === 'success' && 'bg-primary text-white' || status === 'error' && 'bg-red-500 text-white' || status === 'warning' && 'bg-yellow-400 text-white' || 'bg-white text-secondary';
1610
+ var statusClasses = status === 'success' && 'bg-accent text-white' || status === 'error' && 'bg-red-500 text-white' || status === 'warning' && 'bg-yellow-400 text-white' || 'bg-white text-primary';
1611
1611
  var classes = defaultClasses + " " + statusClasses;
1612
1612
 
1613
1613
  function handleClick() {
@@ -1696,7 +1696,7 @@ function Modal(_ref) {
1696
1696
  }, React__default.createElement("div", {
1697
1697
  className: className + " w-full align-start inline-block bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-7xl sm:p-6 " + width
1698
1698
  }, React__default.createElement("div", {
1699
- className: "flex gap-4 mb-4 text-secondary " + (title ? 'border-b-2 border-secondary pb-4' : '')
1699
+ className: "flex gap-4 mb-4 text-primary " + (title ? 'border-b-2 border-primary pb-4' : '')
1700
1700
  }, title && React__default.createElement("h3", {
1701
1701
  className: "font-black text-lg"
1702
1702
  }, title), React__default.createElement("button", {
@@ -1727,7 +1727,7 @@ function Table(_ref) {
1727
1727
  }, React__default.createElement("div", {
1728
1728
  className: "inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"
1729
1729
  }, React__default.createElement("div", {
1730
- className: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"
1730
+ className: "overflow-hidden shadow ring-1 ring-gray-300 ring-opacity-5 md:rounded-lg"
1731
1731
  }, React__default.createElement("table", Object.assign({}, props, {
1732
1732
  className: "min-w-full divide-y divide-gray-300"
1733
1733
  }), children))));
@@ -1774,7 +1774,7 @@ function TableHead(_ref) {
1774
1774
  props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
1775
1775
 
1776
1776
  return React__default.createElement("thead", Object.assign({}, props, {
1777
- className: cn(className, 'px-3 py-4 text-sm text-white bg-table-header-background')
1777
+ className: cn(className, 'px-3 py-4 text-sm text-white bg-gray-600')
1778
1778
  }), children);
1779
1779
  }
1780
1780
 
@@ -1841,7 +1841,7 @@ function TableRow(_ref) {
1841
1841
  _onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
1842
1842
  props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1843
1843
 
1844
- var bgClass = className.includes('bg') ? '' : 'bg-white even:bg-table-row-alternative-background';
1844
+ var bgClass = className.includes('bg') ? '' : 'bg-white even:bg-gray-50';
1845
1845
  return React__default.createElement("tr", Object.assign({}, props, {
1846
1846
  className: cn(className, bgClass, 'hover:bg-gray-100'),
1847
1847
  onClick: function onClick(e) {
@@ -1984,7 +1984,7 @@ function MoneyField(_ref) {
1984
1984
 
1985
1985
  var displayValue = formatMoney(value, 0);
1986
1986
  return React__default.createElement("div", {
1987
- className: className + " flex items-center gap-2 pl-4 rounded-md border border-gray-300 transition-all focus-within:border-primary focus-within:outline-none focus-within:ring focus-within:ring-primary focus-within:ring-opacity-50"
1987
+ className: className + " flex items-center gap-2 pl-4 rounded-md border border-gray-300 transition-all focus-within:border-accent focus-within:outline-none focus-within:ring focus-within:ring-accent focus-within:ring-opacity-50"
1988
1988
  }, React__default.createElement("span", {
1989
1989
  className: "font-bold pr-2"
1990
1990
  }, "$"), React__default.createElement("input", {
@@ -2214,7 +2214,7 @@ function RegistrationSearchField(_ref) {
2214
2214
  type: "button",
2215
2215
  onClick: handleSearch,
2216
2216
  disabled: status === 'processing',
2217
- className: cn(searchBtnClassName, "bg-primary px-4 py-3 rounded-md transition-all")
2217
+ className: cn(searchBtnClassName, "bg-accent px-4 py-3 rounded-md transition-all")
2218
2218
  }, React__default.createElement("span", {
2219
2219
  className: "sr-only"
2220
2220
  }, "Search"), React__default.createElement("svg", {
@@ -2488,7 +2488,7 @@ function BackButton(_ref) {
2488
2488
  }, [breadcrumbs]);
2489
2489
  return React__default.createElement(react.Link, {
2490
2490
  href: backUrl || '/',
2491
- className: cn(className, 'flex items-center justify-center text-back-button-text hover:text-primary transition-all')
2491
+ className: cn(className, 'flex items-center justify-center text-primary hover:text-accent transition-all')
2492
2492
  }, React__default.createElement(hi2.HiArrowLeft, {
2493
2493
  className: "h-5 w-5 stroke-[1.25]"
2494
2494
  }));
@@ -2579,12 +2579,12 @@ function SearchBar(_ref) {
2579
2579
  onClick: function onClick() {
2580
2580
  return onActive(true);
2581
2581
  },
2582
- className: "flex items-center justify-center rounded-full hover:text-primary p-1 hover:bg-gray-100"
2582
+ className: "flex items-center justify-center rounded-full hover:text-accent p-1 hover:bg-gray-100"
2583
2583
  }, React__default.createElement(hi2.HiMagnifyingGlass, {
2584
2584
  className: "h-5 w-5 stroke-[1.25]"
2585
2585
  })), active && React__default.createElement("form", {
2586
2586
  onSubmit: handleSearch,
2587
- className: "group flex items-center gap-2 rounded-full bg-white pr-4 pl-1 shadow transition-all focus-within:outline-none focus-within:ring-1 focus-within:ring-primary"
2587
+ className: "group flex items-center gap-2 rounded-full bg-white pr-4 pl-1 shadow transition-all focus-within:outline-none focus-within:ring-1 focus-within:ring-accent"
2588
2588
  }, React__default.createElement("input", {
2589
2589
  type: "text",
2590
2590
  name: "search",
@@ -3001,8 +3001,8 @@ function FilterItem(_ref) {
3001
3001
  onClick: function onClick() {
3002
3002
  return handleClick();
3003
3003
  },
3004
- className: cn('flex rounded-2xl border hover:cursor-pointer hover:border-primary bg-gray-600 px-2 py-1 items-center justify-between shrink-0 gap-2 text-xs text-white hover:bg-primary transition-colors', {
3005
- '!bg-primary border-primary': hasFilters
3004
+ className: cn('flex rounded-2xl border hover:cursor-pointer hover:border-accent bg-gray-600 px-2 py-1 items-center justify-between shrink-0 gap-2 text-xs text-white hover:bg-accent transition-colors', {
3005
+ '!bg-accent border-accent': hasFilters
3006
3006
  })
3007
3007
  }, React__default.createElement("p", {
3008
3008
  className: "whitespace-nowrap"
@@ -3276,17 +3276,17 @@ function PageHeader(_ref) {
3276
3276
  className: cn('col-span-full flex items-center gap-2 max-w-full rounded-lg bg-white p-2 shadow', className)
3277
3277
  }, back && React__default.createElement(BackButton, {
3278
3278
  back: back,
3279
- className: "bg-back-button-background h-[60px] w-[60px] rounded"
3279
+ className: "bg-primary-100 h-[60px] w-[60px] rounded"
3280
3280
  }), React__default.createElement("div", {
3281
- className: cn('w-full grid grid-cols-[auto_1fr_auto_auto] h-[60px] rounded bg-page-header-background p-3 gap-4', innerClassName)
3281
+ className: cn('w-full grid grid-cols-[auto_1fr_auto_auto] h-[60px] rounded bg-primary-100 p-3 gap-4', innerClassName)
3282
3282
  }, React__default.createElement("button", {
3283
3283
  type: "button",
3284
3284
  disabled: !search,
3285
3285
  onClick: function onClick() {
3286
3286
  return setSearchActive(true);
3287
3287
  },
3288
- className: cn('mr-auto flex items-center gap-4 transition-colors pr-6 pl-1 disabled:opacity-100 text-page-header-text', {
3289
- 'hover:text-primary': search && !isSearchActive
3288
+ className: cn('mr-auto flex items-center gap-4 transition-colors pr-6 pl-1 disabled:opacity-100 text-primary', {
3289
+ 'hover:text-accent': search && !isSearchActive
3290
3290
  })
3291
3291
  }, search && React__default.createElement(SearchBar, {
3292
3292
  search: search,
@@ -3295,7 +3295,7 @@ function PageHeader(_ref) {
3295
3295
  placeholder: "Search " + title + "...",
3296
3296
  focusSearchShortcut: focusSearchShortcut
3297
3297
  }), !isSearchActive && React__default.createElement("h1", {
3298
- className: "text-base text-page-header-text font-black"
3298
+ className: "text-base text-primary font-black"
3299
3299
  }, title)), React__default.createElement("div", {
3300
3300
  className: "flex items-center ml-auto gap-2 h-full min-w-0 max-w-full"
3301
3301
  }, filterOptions.length > 0 && React__default.createElement(React__default.Fragment, null, React__default.createElement("button", {
@@ -3318,7 +3318,7 @@ function PageHeader(_ref) {
3318
3318
  onClick: clickRight,
3319
3319
  className: "w-5 h-5 text-gray-400 stroke-[1.25]"
3320
3320
  }))), filteredActions.length > 0 && React__default.createElement("div", {
3321
- className: "flex items-center gap-3 bg-page-header-background"
3321
+ className: "flex items-center gap-3 bg-primary-100"
3322
3322
  }, filterOptions.length > 0 && React__default.createElement("div", {
3323
3323
  className: "w-[1px] h-full bg-gray-300"
3324
3324
  }), React__default.createElement("nav", {