pixelize-design-library 1.1.33 → 1.1.35

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.
Files changed (41) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/Components/KaTable/CustomHeader.d.ts +12 -1
  3. package/dist/Components/KaTable/CustomHeader.js +38 -75
  4. package/dist/Components/KaTable/KaTable.d.ts +1 -1
  5. package/dist/Components/KaTable/KaTable.js +48 -13
  6. package/dist/Components/KaTable/KaTableProps.d.ts +4 -3
  7. package/dist/Components/KaTable/SelectionHeader.js +4 -2
  8. package/dist/Components/KaTable/ka-table.css +3 -9
  9. package/dist/Components/KaTable/useMergedChildComponents.d.ts +13 -1
  10. package/dist/Components/KaTable/useMergedChildComponents.js +53 -28
  11. package/dist/Components/SideBar/SideBar.js +58 -40
  12. package/dist/Components/Table/Components/Pagination.d.ts +15 -0
  13. package/dist/Components/Table/Components/Pagination.js +42 -0
  14. package/dist/Components/Table/Components/TableBody.d.ts +12 -0
  15. package/dist/Components/Table/Components/TableBody.js +35 -0
  16. package/dist/Components/Table/Components/TableHeader.d.ts +18 -0
  17. package/dist/Components/Table/Components/TableHeader.js +115 -0
  18. package/dist/Components/Table/Components/TableLoading.d.ts +3 -0
  19. package/dist/Components/Table/Components/TableLoading.js +31 -0
  20. package/dist/Components/Table/Table.css +29 -0
  21. package/dist/Components/Table/Table.d.ts +1 -1
  22. package/dist/Components/Table/Table.js +231 -217
  23. package/dist/Components/Table/TableProps.d.ts +20 -17
  24. package/dist/Constants/Sidebar.d.ts +15 -0
  25. package/dist/Constants/Sidebar.js +18 -0
  26. package/dist/Layout.js +5 -1
  27. package/dist/Pages/KaTableExample.js +19 -2
  28. package/dist/Pages/katable.d.ts +3 -0
  29. package/dist/Pages/katable.js +194 -0
  30. package/dist/Pages/table.d.ts +2 -0
  31. package/dist/Pages/table.js +59 -0
  32. package/dist/Theme/fonts.d.ts +1 -0
  33. package/dist/Theme/fonts.js +8 -3
  34. package/dist/Utils/common.d.ts +7 -0
  35. package/dist/Utils/common.js +64 -0
  36. package/dist/Utils/table.d.ts +9 -0
  37. package/dist/Utils/table.js +64 -0
  38. package/dist/bootstrap.js +1 -2
  39. package/package.json +2 -1
  40. package/dist/Theme/Default/fonts.d.ts +0 -35
  41. package/dist/Theme/Default/fonts.js +0 -37
@@ -87,7 +87,7 @@ var columns = [
87
87
  key: "column2",
88
88
  title: "Column 2",
89
89
  dataType: DataType.String,
90
- width: 150,
90
+ width: 250,
91
91
  // visible: false,
92
92
  },
93
93
  {
@@ -95,12 +95,28 @@ var columns = [
95
95
  title: "Column 3",
96
96
  dataType: DataType.Number,
97
97
  width: 150,
98
+ filter: true,
99
+ menu: [
100
+ {
101
+ label: "Filter",
102
+ onClick: function () { return console.log("MENU Filter clicks"); },
103
+ submenu: [
104
+ {
105
+ label: "Filter by Date",
106
+ onClick: function () { return console.log("SUBMENU Date clicks"); },
107
+ },
108
+ { label: "Filter by Name" },
109
+ // { label: "Filter by Status", action: "Filter by Status" },
110
+ ],
111
+ },
112
+ ],
98
113
  },
99
114
  {
100
115
  key: "column4",
101
116
  title: "Column 4",
102
117
  dataType: DataType.Number,
103
118
  width: 150,
119
+ sortable: true,
104
120
  },
105
121
  {
106
122
  key: "column5",
@@ -119,6 +135,7 @@ var columns = [
119
135
  title: "Column 7",
120
136
  dataType: DataType.Number,
121
137
  width: 150,
138
+ sortable: true,
122
139
  },
123
140
  {
124
141
  key: "column8",
@@ -222,7 +239,7 @@ var KaTableExample = function () {
222
239
  console.log("Row clicked", rowKeyValue);
223
240
  }, selected: selectedRows, onSelectionChange: function (selectedRows) {
224
241
  handleCheckSelect(selectedRows);
225
- }, columnVisibility: true, menuItems: menuItems,
242
+ }, columnVisibility: true,
226
243
  // onSortChange={handleSortChange}
227
244
  // onMenuItemClick={handleMenuItemClick}
228
245
  // format={kaTableFormat}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const katable: () => React.JSX.Element;
3
+ export default katable;
@@ -0,0 +1,194 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var react_1 = __importDefault(require("react"));
18
+ var KaTable_1 = __importDefault(require("../Components/KaTable/KaTable"));
19
+ var KaTable_2 = require("../Components/KaTable/KaTable");
20
+ var icons_1 = require("@chakra-ui/icons");
21
+ var katable = function () {
22
+ var DataType = KaTable_2.TableEnums.DataType;
23
+ var dataArray = Array(50)
24
+ .fill(undefined)
25
+ .map(function (_, index) { return ({
26
+ column1: index % 2 === 0,
27
+ column2: "column:2 row:".concat(index + 1),
28
+ column3: index + 5,
29
+ column4: index + 10,
30
+ column5: index + 15,
31
+ column6: index + 20,
32
+ column7: index + 25,
33
+ column8: index + 30,
34
+ column9: index + 35,
35
+ column10: index + 40,
36
+ column11: index + 45,
37
+ column12: index + 50,
38
+ column13: index + 55,
39
+ column14: index + 60,
40
+ column15: new Date(2022, 11, index),
41
+ id: index + 1,
42
+ }); });
43
+ var columns = [
44
+ {
45
+ key: "column1",
46
+ title: "Column 1",
47
+ dataType: DataType.Boolean,
48
+ width: 150,
49
+ columnFreeze: true,
50
+ customHeader: false,
51
+ },
52
+ {
53
+ key: "column2",
54
+ title: "Column 2",
55
+ dataType: DataType.String,
56
+ width: 150,
57
+ },
58
+ {
59
+ key: "column3",
60
+ title: "Column 3",
61
+ dataType: DataType.Number,
62
+ width: 150,
63
+ },
64
+ {
65
+ key: "column4",
66
+ title: "Column 4",
67
+ dataType: DataType.Number,
68
+ width: 150,
69
+ },
70
+ {
71
+ key: "column5",
72
+ title: "Column 5",
73
+ dataType: DataType.Number,
74
+ width: 150,
75
+ },
76
+ {
77
+ key: "column6",
78
+ title: "Column 6",
79
+ dataType: DataType.Number,
80
+ width: 150,
81
+ },
82
+ {
83
+ key: "column7",
84
+ title: "Column 7",
85
+ dataType: DataType.Number,
86
+ width: 150,
87
+ },
88
+ {
89
+ key: "column8",
90
+ title: "Column 8",
91
+ dataType: DataType.Number,
92
+ width: 150,
93
+ },
94
+ {
95
+ key: "column9",
96
+ title: "Column 9",
97
+ dataType: DataType.Number,
98
+ width: 150,
99
+ },
100
+ {
101
+ key: "column10",
102
+ title: "Column 10",
103
+ dataType: DataType.Number,
104
+ width: 150,
105
+ },
106
+ {
107
+ key: "column11",
108
+ title: "Column 11",
109
+ dataType: DataType.Number,
110
+ width: 150,
111
+ },
112
+ {
113
+ key: "column12",
114
+ title: "Column 12",
115
+ dataType: DataType.Number,
116
+ width: 150,
117
+ },
118
+ {
119
+ key: "column13",
120
+ title: "Column 13",
121
+ dataType: DataType.Number,
122
+ width: 150,
123
+ },
124
+ {
125
+ key: "column14",
126
+ title: "Column 14",
127
+ dataType: DataType.Number,
128
+ width: 150,
129
+ },
130
+ {
131
+ key: "column15",
132
+ title: "Column 15",
133
+ dataType: DataType.Date,
134
+ width: 150,
135
+ },
136
+ {
137
+ key: "editColumn",
138
+ width: 80,
139
+ customHeader: false,
140
+ },
141
+ ];
142
+ var kaTableFormat = function (props) {
143
+ if (props.column.dataType === DataType.Date) {
144
+ return (props.value &&
145
+ props.value.toLocaleDateString("en", {
146
+ month: "2-digit",
147
+ day: "2-digit",
148
+ year: "numeric",
149
+ }));
150
+ }
151
+ };
152
+ var EditButton = function (_a) {
153
+ var dispatch = _a.dispatch, rowKeyValue = _a.rowKeyValue;
154
+ return (react_1.default.createElement("div", { className: "edit-cell-button" },
155
+ react_1.default.createElement(icons_1.EditIcon, null),
156
+ react_1.default.createElement(icons_1.DeleteIcon, null)));
157
+ };
158
+ var handleSortChange = function (newSortState, columnName) {
159
+ console.log("Sort state for ".concat(columnName, " changed to:"), newSortState);
160
+ };
161
+ var handleMenuItemClick = function (action, columnName) {
162
+ console.log("Menu item clicked for ".concat(columnName, ":"), action);
163
+ };
164
+ var menuItems = [
165
+ { label: "Sort", action: "Sort" },
166
+ { label: "Hide column", action: "Hide column" },
167
+ {
168
+ label: "Filter",
169
+ submenu: [
170
+ { label: "Filter by Date", action: "Filter by Date" },
171
+ { label: "Filter by Name", action: "Filter by Name" },
172
+ { label: "Filter by Status", action: "Filter by Status" },
173
+ ],
174
+ },
175
+ ];
176
+ return (react_1.default.createElement("div", null,
177
+ react_1.default.createElement(KaTable_1.default, { data: dataArray, columns: columns, checkSelect: true, onRowClick: function (rowKeyValue) {
178
+ console.log("Row clicked", rowKeyValue);
179
+ }, onSelectionChange: function (selectedRows) {
180
+ console.log("Selected rows:", selectedRows);
181
+ }, menuItems: menuItems, onSortChange: handleSortChange, onMenuItemClick: handleMenuItemClick, format: kaTableFormat, childComponents: {
182
+ cellText: {
183
+ content: function (props) {
184
+ if (props.column.key === "editColumn") {
185
+ return react_1.default.createElement(EditButton, __assign({}, props));
186
+ }
187
+ },
188
+ },
189
+ }, loading: {
190
+ enabled: false,
191
+ text: "Loading data",
192
+ } })));
193
+ };
194
+ exports.default = katable;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const TableExample: () => React.JSX.Element;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TableExample = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var Table_1 = __importDefault(require("../Components/Table/Table"));
9
+ var tableData = [
10
+ {
11
+ id: 1,
12
+ name: "John Doe",
13
+ age: 30,
14
+ gender: "Male",
15
+ },
16
+ {
17
+ id: 2,
18
+ name: "Jane Doe",
19
+ age: 25,
20
+ gender: "Female",
21
+ },
22
+ {
23
+ id: 3,
24
+ name: "Bob Smith",
25
+ age: 40,
26
+ gender: "Male",
27
+ },
28
+ ];
29
+ var column = [
30
+ {
31
+ label: "Name",
32
+ id: "name",
33
+ isFreeze: true,
34
+ isSort: true,
35
+ },
36
+ {
37
+ label: "Age",
38
+ id: "age",
39
+ isFreeze: false,
40
+ isSort: true,
41
+ },
42
+ {
43
+ label: "Gender",
44
+ id: "gender",
45
+ },
46
+ {
47
+ label: "Action",
48
+ id: "action",
49
+ isVisiblity: true,
50
+ node: function (props) {
51
+ return props.name;
52
+ },
53
+ },
54
+ ];
55
+ var TableExample = function () {
56
+ return (react_1.default.createElement("div", null,
57
+ react_1.default.createElement(Table_1.default, { columns: column, data: tableData, isCheckbox: true, isVisiblity: false, isLoading: false, noBorders: false, onSelection: function (dd) { return console.log(dd); } })));
58
+ };
59
+ exports.TableExample = TableExample;
@@ -1,4 +1,5 @@
1
1
  import "@fontsource/ubuntu-sans";
2
+ import "@fontsource-variable/inter";
2
3
  declare const fonts: {
3
4
  fonts: {
4
5
  body: string;
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  require("@fontsource/ubuntu-sans");
4
+ // Supports weights 100-900
5
+ require("@fontsource-variable/inter");
4
6
  var fonts = {
5
7
  fonts: {
6
- body: "Ubuntu Sans, serif",
7
- heading: "Ubuntu Sans, serif",
8
- mono: "Ubuntu Sans, monospace",
8
+ body: "Inter Variable, sans-serif",
9
+ heading: "Inter Variable, sans-serif",
10
+ mono: "Inter Variable, sans-serif",
11
+ // body: "Ubuntu Sans, serif",
12
+ // heading: "Ubuntu Sans, serif",
13
+ // mono: "Ubuntu Sans, monospace",
9
14
  },
10
15
  fontSizes: {
11
16
  xs: "0.75rem",
@@ -0,0 +1,7 @@
1
+ export declare function SortMultiColumnData(data: Record<string, any>[], sortConfig: {
2
+ column: string;
3
+ direction: string;
4
+ }[]): Record<string, any>[];
5
+ export declare const getPreviousColumnWidth: (columns: any, key: any) => any;
6
+ export declare const getFieldType: (header: string, data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
7
+ export declare const calculateLeftOffset: (columns: number[], index: number) => number;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.calculateLeftOffset = exports.getFieldType = exports.getPreviousColumnWidth = exports.SortMultiColumnData = void 0;
13
+ function SortMultiColumnData(data, sortConfig) {
14
+ if (!sortConfig.length)
15
+ return data;
16
+ return __spreadArray([], data, true).sort(function (a, b) {
17
+ for (var _i = 0, sortConfig_1 = sortConfig; _i < sortConfig_1.length; _i++) {
18
+ var _a = sortConfig_1[_i], column = _a.column, direction = _a.direction;
19
+ if (direction === "none") {
20
+ continue;
21
+ }
22
+ var dirMultiplier = direction === "asc" ? 1 : -1;
23
+ // Compare values for the current column
24
+ if (a[column] < b[column])
25
+ return -1 * dirMultiplier;
26
+ if (a[column] > b[column])
27
+ return 1 * dirMultiplier;
28
+ // If values are equal, continue to the next sorting rule
29
+ }
30
+ return 0; // Return 0 if all sort conditions are equal
31
+ });
32
+ }
33
+ exports.SortMultiColumnData = SortMultiColumnData;
34
+ var getPreviousColumnWidth = function (columns, key) {
35
+ var index = columns === null || columns === void 0 ? void 0 : columns.findIndex(function (column) { return column.key === key; });
36
+ if (index > 0) {
37
+ return columns[index - 1].width;
38
+ }
39
+ return 0;
40
+ };
41
+ exports.getPreviousColumnWidth = getPreviousColumnWidth;
42
+ // export function calculateLeftOffset(columns: any, currentIndex: number) {
43
+ // let offset = 0;
44
+ // for (let i = 0; i < currentIndex; i++) {
45
+ // if (columns[i].isFreeze) {
46
+ // offset += columns[i].width || 100;
47
+ // }
48
+ // }
49
+ // return offset;
50
+ // }
51
+ var getFieldType = function (header, data) {
52
+ for (var _i = 0, data_1 = data; _i < data_1.length; _i++) {
53
+ var row = data_1[_i];
54
+ if (row[header] !== null) {
55
+ return typeof row[header];
56
+ }
57
+ }
58
+ return "string";
59
+ };
60
+ exports.getFieldType = getFieldType;
61
+ var calculateLeftOffset = function (columns, index) {
62
+ return columns.slice(0, index).reduce(function (sum, width) { return sum + width; }, 0);
63
+ };
64
+ exports.calculateLeftOffset = calculateLeftOffset;
@@ -0,0 +1,9 @@
1
+ import { KaTableProps } from "../Components/KaTable/KaTableProps";
2
+ import { DataObject } from "../Components/Table/TableProps";
3
+ export declare function SortMultiColumnData(data: Record<string, string | number>[], sortConfig: {
4
+ column: string;
5
+ direction: string;
6
+ }[]): Record<string, string | number>[];
7
+ export declare const getPreviousColumnWidth: (columns: KaTableProps["columns"], key: string) => any;
8
+ export declare const getFieldType: (header: string, data: DataObject[]) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
9
+ export declare const calculateLeftOffset: (columns: number[], index: number) => number;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.calculateLeftOffset = exports.getFieldType = exports.getPreviousColumnWidth = exports.SortMultiColumnData = void 0;
13
+ function SortMultiColumnData(data, sortConfig) {
14
+ if (!sortConfig.length)
15
+ return data;
16
+ return __spreadArray([], data, true).sort(function (a, b) {
17
+ for (var _i = 0, sortConfig_1 = sortConfig; _i < sortConfig_1.length; _i++) {
18
+ var _a = sortConfig_1[_i], column = _a.column, direction = _a.direction;
19
+ if (direction === "none") {
20
+ continue;
21
+ }
22
+ var dirMultiplier = direction === "asc" ? 1 : -1;
23
+ // Compare values for the current column
24
+ if (a[column] < b[column])
25
+ return -1 * dirMultiplier;
26
+ if (a[column] > b[column])
27
+ return 1 * dirMultiplier;
28
+ // If values are equal, continue to the next sorting rule
29
+ }
30
+ return 0; // Return 0 if all sort conditions are equal
31
+ });
32
+ }
33
+ exports.SortMultiColumnData = SortMultiColumnData;
34
+ var getPreviousColumnWidth = function (columns, key) {
35
+ var index = columns === null || columns === void 0 ? void 0 : columns.findIndex(function (column) { return column.key === key; });
36
+ if (index > 0) {
37
+ return columns[index - 1].width;
38
+ }
39
+ return 0;
40
+ };
41
+ exports.getPreviousColumnWidth = getPreviousColumnWidth;
42
+ // export function calculateLeftOffset(columns: any, currentIndex: number) {
43
+ // let offset = 0;
44
+ // for (let i = 0; i < currentIndex; i++) {
45
+ // if (columns[i].isFreeze) {
46
+ // offset += columns[i].width || 100;
47
+ // }
48
+ // }
49
+ // return offset;
50
+ // }
51
+ var getFieldType = function (header, data) {
52
+ for (var _i = 0, data_1 = data; _i < data_1.length; _i++) {
53
+ var row = data_1[_i];
54
+ if (row[header] !== null) {
55
+ return typeof row[header];
56
+ }
57
+ }
58
+ return "string";
59
+ };
60
+ exports.getFieldType = getFieldType;
61
+ var calculateLeftOffset = function (columns, index) {
62
+ return columns.slice(0, index).reduce(function (sum, width) { return sum + width; }, 0);
63
+ };
64
+ exports.calculateLeftOffset = calculateLeftOffset;
package/dist/bootstrap.js CHANGED
@@ -7,8 +7,7 @@ var react_1 = __importDefault(require("react"));
7
7
  var client_1 = __importDefault(require("react-dom/client"));
8
8
  var App_1 = __importDefault(require("./App"));
9
9
  var withTheme_1 = __importDefault(require("./withTheme"));
10
- var Theme_1 = require("./Theme");
11
10
  var root = client_1.default.createRoot(document.getElementById("root"));
12
- var ThemeApp = (0, withTheme_1.default)(App_1.default, Theme_1.meadow);
11
+ var ThemeApp = (0, withTheme_1.default)(App_1.default);
13
12
  root.render(react_1.default.createElement(react_1.default.StrictMode, null,
14
13
  react_1.default.createElement(ThemeApp, null)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -11,6 +11,7 @@
11
11
  "@chakra-ui/react": "^2.8.2",
12
12
  "@emotion/react": "^11.11.4",
13
13
  "@emotion/styled": "^11.11.5",
14
+ "@fontsource-variable/inter": "^5.1.0",
14
15
  "@fontsource/ubuntu-sans": "^5.1.0",
15
16
  "@testing-library/jest-dom": "^5.17.0",
16
17
  "@testing-library/react": "^13.4.0",
@@ -1,35 +0,0 @@
1
- import "@fontsource/ubuntu-sans";
2
- declare const fontOptions: {
3
- fonts: {
4
- body: string;
5
- heading: string;
6
- mono: string;
7
- };
8
- fontSizes: {
9
- xs: string;
10
- sm: string;
11
- md: string;
12
- lg: string;
13
- xl: string;
14
- "2xl": string;
15
- "3xl": string;
16
- "4xl": string;
17
- "5xl": string;
18
- "6xl": string;
19
- "7xl": string;
20
- "8xl": string;
21
- "9xl": string;
22
- };
23
- fontWeights: {
24
- hairline: number;
25
- thin: number;
26
- light: number;
27
- normal: number;
28
- medium: number;
29
- semibold: number;
30
- bold: number;
31
- extrabold: number;
32
- black: number;
33
- };
34
- };
35
- export default fontOptions;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@fontsource/ubuntu-sans");
4
- var fontOptions = {
5
- fonts: {
6
- body: "Ubuntu Sans, serif",
7
- heading: "Ubuntu Sans, serif",
8
- mono: "Ubuntu Sans, monospace",
9
- },
10
- fontSizes: {
11
- xs: "0.75rem",
12
- sm: "0.875rem",
13
- md: "1rem",
14
- lg: "1.125rem",
15
- xl: "1.25rem",
16
- "2xl": "1.5rem",
17
- "3xl": "1.875rem",
18
- "4xl": "2.25rem",
19
- "5xl": "3rem",
20
- "6xl": "3.75rem",
21
- "7xl": "4.5rem",
22
- "8xl": "6rem",
23
- "9xl": "8rem",
24
- },
25
- fontWeights: {
26
- hairline: 100,
27
- thin: 200,
28
- light: 300,
29
- normal: 400,
30
- medium: 500,
31
- semibold: 600,
32
- bold: 700,
33
- extrabold: 800,
34
- black: 900,
35
- },
36
- };
37
- exports.default = fontOptions;