@bigtablet/design-system 1.3.1 → 1.4.0

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/index.css CHANGED
@@ -306,6 +306,31 @@
306
306
  .btn--ghost:active:not(:disabled) {
307
307
  transform: scale(0.95);
308
308
  }
309
+ .btn--danger {
310
+ width: 100%;
311
+ display: flex;
312
+ align-items: center;
313
+ justify-content: center;
314
+ border: none;
315
+ cursor: pointer;
316
+ transition: 0.2s ease-out;
317
+ font-weight: 500;
318
+ border-radius: 8px;
319
+ }
320
+ .btn--danger:disabled {
321
+ cursor: not-allowed;
322
+ opacity: 0.5;
323
+ }
324
+ .btn--danger {
325
+ background: #ef4444;
326
+ color: #ffffff;
327
+ }
328
+ .btn--danger:hover:not(:disabled) {
329
+ background: rgb(235.7842364532, 30.4157635468, 30.4157635468);
330
+ }
331
+ .btn--danger:active:not(:disabled) {
332
+ transform: scale(0.98);
333
+ }
309
334
  .btn--sm {
310
335
  padding: 0.5rem 1rem;
311
336
  font-size: 0.875rem;
@@ -934,36 +959,41 @@
934
959
 
935
960
  /* src/ui/navigation/pagination/style.scss */
936
961
  .pagination {
937
- display: inline-flex;
962
+ display: flex;
938
963
  align-items: center;
964
+ justify-content: center;
939
965
  gap: 0.5rem;
966
+ margin-top: 2rem;
940
967
  }
941
- .pagination__item {
968
+ .pagination_item {
942
969
  border: 1px solid #e5e5e5;
943
970
  background: #ffffff;
944
- color: #1a1a1a;
945
- border-radius: 6px;
946
- padding: 0.25rem 0.5rem;
947
- cursor: pointer;
971
+ border-radius: 8px;
972
+ padding: 6px 10px;
973
+ min-width: 36px;
948
974
  font-size: 0.875rem;
949
975
  line-height: 1.5;
976
+ color: #3B3B3B;
977
+ transition: background 0.2s ease-out, border-color 0.2s ease-out;
950
978
  }
951
- .pagination__item.is-active {
952
- background: #000000;
953
- color: #ffffff;
954
- border-color: #000000;
979
+ .pagination_item:hover:not(:disabled) {
980
+ background: #fafafa;
955
981
  }
956
- .pagination__item:disabled {
982
+ .pagination_item:disabled {
957
983
  opacity: 0.5;
958
984
  cursor: not-allowed;
959
985
  }
960
- .pagination__item:focus-visible {
986
+ .pagination_item:focus-visible {
961
987
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
962
988
  border-color: #000000;
963
989
  }
964
- .pagination__ellipsis {
965
- padding: 0 0.25rem;
966
- color: #999999;
990
+ .pagination_page {
991
+ min-width: 36px;
992
+ text-align: center;
993
+ font-size: 0.875rem;
994
+ line-height: 1.5;
995
+ font-weight: 600;
996
+ color: #1F2937;
967
997
  }
968
998
 
969
999
  /* src/ui/overlay/modal/style.scss */
package/dist/index.d.ts CHANGED
@@ -64,7 +64,7 @@ declare const useToast: () => {
64
64
  };
65
65
 
66
66
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
67
- variant?: "primary" | "secondary" | "ghost";
67
+ variant?: "primary" | "secondary" | "ghost" | "danger";
68
68
  size?: "sm" | "md" | "lg";
69
69
  style?: React.CSSProperties;
70
70
  }
@@ -140,7 +140,6 @@ declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.
140
140
  interface PaginationProps {
141
141
  page: number;
142
142
  hasNext: boolean;
143
- size?: number;
144
143
  onChange: (page: number) => void;
145
144
  }
146
145
  declare const Pagination: ({ page, hasNext, onChange }: PaginationProps) => react_jsx_runtime.JSX.Element;
package/dist/index.js CHANGED
@@ -606,20 +606,22 @@ var Pagination = ({ page, hasNext, onChange }) => {
606
606
  /* @__PURE__ */ jsx(
607
607
  "button",
608
608
  {
609
- className: "pagination__item",
610
- onClick: () => !prevDisabled && onChange(page - 1),
609
+ className: "pagination_item",
610
+ onClick: () => onChange(page - 1),
611
611
  disabled: prevDisabled,
612
- children: "Prev"
612
+ "aria-label": "Previous page",
613
+ children: "\u2039"
613
614
  }
614
615
  ),
615
- /* @__PURE__ */ jsx("span", { className: "pagination__page", children: page }),
616
+ /* @__PURE__ */ jsx("span", { className: "pagination_page", "aria-current": "page", children: page }),
616
617
  /* @__PURE__ */ jsx(
617
618
  "button",
618
619
  {
619
- className: "pagination__item",
620
- onClick: () => !nextDisabled && onChange(page + 1),
620
+ className: "pagination_item",
621
+ onClick: () => onChange(page + 1),
621
622
  disabled: nextDisabled,
622
- children: "Next"
623
+ "aria-label": "Next page",
624
+ children: "\u203A"
623
625
  }
624
626
  )
625
627
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigtablet/design-system",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Bigtablet Design System UI Components",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "conventional-changelog-conventionalcommits": "^9.1.0",
71
71
  "esbuild-sass-plugin": "^3",
72
72
  "lucide-react": "^0.552.0",
73
- "next": "16.0.1",
73
+ "next": "16.0.9",
74
74
  "react": "19.2.0",
75
75
  "react-dom": "19.2.0",
76
76
  "react-toastify": "^11.0.5",