@undevy-org/tablewright 0.1.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.
Files changed (170) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +262 -0
  3. package/dist/es/components/dashboard/ReportSummaryCard.js +67 -0
  4. package/dist/es/components/data-table/AppliedStateChips.js +113 -0
  5. package/dist/es/components/data-table/ColumnFilterPopover.js +548 -0
  6. package/dist/es/components/data-table/ColumnHeaderMenu.js +144 -0
  7. package/dist/es/components/data-table/CompoundFilterPopover.js +508 -0
  8. package/dist/es/components/data-table/CopyButton.js +35 -0
  9. package/dist/es/components/data-table/CopyableText.js +26 -0
  10. package/dist/es/components/data-table/DataTableShell.js +145 -0
  11. package/dist/es/components/data-table/DrawerActionGroup.js +59 -0
  12. package/dist/es/components/data-table/DrawerEntityCard.js +21 -0
  13. package/dist/es/components/data-table/DrawerField.js +10 -0
  14. package/dist/es/components/data-table/DrawerFlagItem.js +20 -0
  15. package/dist/es/components/data-table/DrawerSection.js +26 -0
  16. package/dist/es/components/data-table/DrawerShell.js +141 -0
  17. package/dist/es/components/data-table/DrawerSummaryCard.js +11 -0
  18. package/dist/es/components/data-table/EmptyState.js +14 -0
  19. package/dist/es/components/data-table/ExpiryTimestampCell.js +43 -0
  20. package/dist/es/components/data-table/FilterChip.js +47 -0
  21. package/dist/es/components/data-table/FilterFormPanel.js +357 -0
  22. package/dist/es/components/data-table/FilterFormToggle.js +77 -0
  23. package/dist/es/components/data-table/FilterPopoverFooter.js +19 -0
  24. package/dist/es/components/data-table/FilterToolbar.js +131 -0
  25. package/dist/es/components/data-table/FlatColumnToggle.js +46 -0
  26. package/dist/es/components/data-table/GapIndicator.js +29 -0
  27. package/dist/es/components/data-table/GroupedColumnToggle.js +112 -0
  28. package/dist/es/components/data-table/RowActionsMenu.js +74 -0
  29. package/dist/es/components/data-table/RowControlCell.js +104 -0
  30. package/dist/es/components/data-table/SortableHeader.js +102 -0
  31. package/dist/es/components/data-table/TableFooter.js +132 -0
  32. package/dist/es/components/data-table/TableLayout.js +14 -0
  33. package/dist/es/components/data-table/TimestampCell.js +16 -0
  34. package/dist/es/components/data-table/TwoPanelMenu.js +64 -0
  35. package/dist/es/components/data-table/ViewChip.js +25 -0
  36. package/dist/es/components/data-table/cells/AmountCell.js +127 -0
  37. package/dist/es/components/data-table/cells/ConfirmedAmountCell.js +115 -0
  38. package/dist/es/components/data-table/cells/CurrencyAmountCell.js +26 -0
  39. package/dist/es/components/data-table/cells/DualLineCell.js +59 -0
  40. package/dist/es/components/data-table/cells/EnumBadgeCell.js +9 -0
  41. package/dist/es/components/data-table/cells/MonoIdCell.js +31 -0
  42. package/dist/es/components/data-table/hooks/use-column-resize.js +39 -0
  43. package/dist/es/components/data-table/hooks/use-row-drag.js +40 -0
  44. package/dist/es/components/data-table/hooks/use-table-pagination.js +14 -0
  45. package/dist/es/components/data-table/hooks/use-table-sort.js +35 -0
  46. package/dist/es/components/data-table/managed-filters.js +34 -0
  47. package/dist/es/components/data-table/sticky-utils.js +25 -0
  48. package/dist/es/components/layout/AppShell.js +113 -0
  49. package/dist/es/components/layout/Sidebar.js +128 -0
  50. package/dist/es/components/layout/SidebarAccountMenu.js +129 -0
  51. package/dist/es/components/layout/SidebarUser.js +38 -0
  52. package/dist/es/components/layout/TopBar.js +25 -0
  53. package/dist/es/components/layout/app-shell-context.js +9 -0
  54. package/dist/es/components/ui/badge.js +31 -0
  55. package/dist/es/components/ui/button-footer.js +25 -0
  56. package/dist/es/components/ui/button.js +44 -0
  57. package/dist/es/components/ui/checkbox.js +24 -0
  58. package/dist/es/components/ui/combobox.js +179 -0
  59. package/dist/es/components/ui/dialog.js +80 -0
  60. package/dist/es/components/ui/dropdown-menu.js +66 -0
  61. package/dist/es/components/ui/input.js +24 -0
  62. package/dist/es/components/ui/popover.js +33 -0
  63. package/dist/es/components/ui/segmented-control.js +60 -0
  64. package/dist/es/components/ui/select.js +66 -0
  65. package/dist/es/components/ui/tabs.js +41 -0
  66. package/dist/es/components/ui/theme-switch.js +47 -0
  67. package/dist/es/constants/drawer.js +4 -0
  68. package/dist/es/context/drawer-expand-context.js +10 -0
  69. package/dist/es/context/portal-container-context.js +10 -0
  70. package/dist/es/hooks/table-orchestration-store.js +165 -0
  71. package/dist/es/hooks/use-scroll-activity.js +33 -0
  72. package/dist/es/hooks/useRowDragOverride.js +18 -0
  73. package/dist/es/hooks/useTableOrchestration.js +452 -0
  74. package/dist/es/index.js +199 -0
  75. package/dist/es/lib/column-gaps.js +23 -0
  76. package/dist/es/lib/filter-stats.js +67 -0
  77. package/dist/es/lib/format-enum.js +6 -0
  78. package/dist/es/lib/format-timestamp.js +37 -0
  79. package/dist/es/lib/style-scope.js +4 -0
  80. package/dist/es/lib/utils.js +8 -0
  81. package/dist/fonts.css +5 -0
  82. package/dist/preflight.css +502 -0
  83. package/dist/styles.css +1731 -0
  84. package/dist/tablewright.cjs +5473 -0
  85. package/dist/tablewright.css +1579 -0
  86. package/dist/tokens.css +150 -0
  87. package/dist/types/components/dashboard/ReportSummaryCard.d.ts +15 -0
  88. package/dist/types/components/data-table/AppliedStateChips.d.ts +28 -0
  89. package/dist/types/components/data-table/ColumnFilterPopover.d.ts +14 -0
  90. package/dist/types/components/data-table/ColumnHeaderMenu.d.ts +27 -0
  91. package/dist/types/components/data-table/CompoundFilterPopover.d.ts +14 -0
  92. package/dist/types/components/data-table/CopyButton.d.ts +8 -0
  93. package/dist/types/components/data-table/CopyableText.d.ts +10 -0
  94. package/dist/types/components/data-table/DataTableShell.d.ts +30 -0
  95. package/dist/types/components/data-table/DrawerActionGroup.d.ts +8 -0
  96. package/dist/types/components/data-table/DrawerEntityCard.d.ts +13 -0
  97. package/dist/types/components/data-table/DrawerField.d.ts +7 -0
  98. package/dist/types/components/data-table/DrawerFlagItem.d.ts +10 -0
  99. package/dist/types/components/data-table/DrawerSection.d.ts +8 -0
  100. package/dist/types/components/data-table/DrawerShell.d.ts +33 -0
  101. package/dist/types/components/data-table/DrawerSummaryCard.d.ts +7 -0
  102. package/dist/types/components/data-table/EmptyState.d.ts +6 -0
  103. package/dist/types/components/data-table/ExpiryTimestampCell.d.ts +6 -0
  104. package/dist/types/components/data-table/FilterChip.d.ts +8 -0
  105. package/dist/types/components/data-table/FilterFormPanel.d.ts +34 -0
  106. package/dist/types/components/data-table/FilterFormToggle.d.ts +18 -0
  107. package/dist/types/components/data-table/FilterPopoverFooter.d.ts +9 -0
  108. package/dist/types/components/data-table/FilterToolbar.d.ts +29 -0
  109. package/dist/types/components/data-table/FlatColumnToggle.d.ts +10 -0
  110. package/dist/types/components/data-table/GapIndicator.d.ts +11 -0
  111. package/dist/types/components/data-table/GroupedColumnToggle.d.ts +12 -0
  112. package/dist/types/components/data-table/RowActionsMenu.d.ts +10 -0
  113. package/dist/types/components/data-table/RowControlCell.d.ts +16 -0
  114. package/dist/types/components/data-table/SortableHeader.d.ts +16 -0
  115. package/dist/types/components/data-table/TableFooter.d.ts +31 -0
  116. package/dist/types/components/data-table/TableLayout.d.ts +12 -0
  117. package/dist/types/components/data-table/TimestampCell.d.ts +3 -0
  118. package/dist/types/components/data-table/TwoPanelMenu.d.ts +22 -0
  119. package/dist/types/components/data-table/ViewChip.d.ts +6 -0
  120. package/dist/types/components/data-table/cells/AmountCell.d.ts +11 -0
  121. package/dist/types/components/data-table/cells/ConfirmedAmountCell.d.ts +10 -0
  122. package/dist/types/components/data-table/cells/CurrencyAmountCell.d.ts +8 -0
  123. package/dist/types/components/data-table/cells/DualLineCell.d.ts +44 -0
  124. package/dist/types/components/data-table/cells/EnumBadgeCell.d.ts +9 -0
  125. package/dist/types/components/data-table/cells/MonoIdCell.d.ts +19 -0
  126. package/dist/types/components/data-table/filter-types.d.ts +79 -0
  127. package/dist/types/components/data-table/hooks/use-column-resize.d.ts +7 -0
  128. package/dist/types/components/data-table/hooks/use-row-drag.d.ts +14 -0
  129. package/dist/types/components/data-table/hooks/use-table-pagination.d.ts +10 -0
  130. package/dist/types/components/data-table/hooks/use-table-sort.d.ts +6 -0
  131. package/dist/types/components/data-table/managed-filters.d.ts +18 -0
  132. package/dist/types/components/data-table/sticky-utils.d.ts +4 -0
  133. package/dist/types/components/data-table/types.d.ts +35 -0
  134. package/dist/types/components/layout/AppShell.d.ts +23 -0
  135. package/dist/types/components/layout/Sidebar.d.ts +16 -0
  136. package/dist/types/components/layout/SidebarAccountMenu.d.ts +20 -0
  137. package/dist/types/components/layout/SidebarUser.d.ts +8 -0
  138. package/dist/types/components/layout/TopBar.d.ts +7 -0
  139. package/dist/types/components/layout/app-shell-context.d.ts +8 -0
  140. package/dist/types/components/layout/index.d.ts +10 -0
  141. package/dist/types/components/layout/types.d.ts +11 -0
  142. package/dist/types/components/ui/badge.d.ts +9 -0
  143. package/dist/types/components/ui/button-footer.d.ts +7 -0
  144. package/dist/types/components/ui/button.d.ts +11 -0
  145. package/dist/types/components/ui/checkbox.d.ts +4 -0
  146. package/dist/types/components/ui/combobox.d.ts +92 -0
  147. package/dist/types/components/ui/dialog.d.ts +15 -0
  148. package/dist/types/components/ui/dropdown-menu.d.ts +10 -0
  149. package/dist/types/components/ui/input.d.ts +6 -0
  150. package/dist/types/components/ui/popover.d.ts +7 -0
  151. package/dist/types/components/ui/segmented-control.d.ts +17 -0
  152. package/dist/types/components/ui/select.d.ts +8 -0
  153. package/dist/types/components/ui/tabs.d.ts +10 -0
  154. package/dist/types/components/ui/theme-switch.d.ts +12 -0
  155. package/dist/types/constants/drawer.d.ts +1 -0
  156. package/dist/types/context/drawer-expand-context.d.ts +7 -0
  157. package/dist/types/context/portal-container-context.d.ts +14 -0
  158. package/dist/types/hooks/table-orchestration-store.d.ts +75 -0
  159. package/dist/types/hooks/use-scroll-activity.d.ts +1 -0
  160. package/dist/types/hooks/useDemoTheme.d.ts +8 -0
  161. package/dist/types/hooks/useRowDragOverride.d.ts +6 -0
  162. package/dist/types/hooks/useTableOrchestration.d.ts +115 -0
  163. package/dist/types/index.d.ts +107 -0
  164. package/dist/types/lib/column-gaps.d.ts +3 -0
  165. package/dist/types/lib/filter-stats.d.ts +2 -0
  166. package/dist/types/lib/format-enum.d.ts +1 -0
  167. package/dist/types/lib/format-timestamp.d.ts +4 -0
  168. package/dist/types/lib/style-scope.d.ts +19 -0
  169. package/dist/types/lib/utils.d.ts +2 -0
  170. package/package.json +114 -0
@@ -0,0 +1,67 @@
1
+ function getField(row, fieldName) {
2
+ return row[fieldName];
3
+ }
4
+ function computeColumnStats(rows, fieldName, config) {
5
+ switch (config.type) {
6
+ case "number-range": {
7
+ let min = Infinity;
8
+ let max = -Infinity;
9
+ for (const row of rows) {
10
+ const val = getField(row, fieldName);
11
+ if (typeof val === "number" && Number.isFinite(val)) {
12
+ if (val < min) min = val;
13
+ if (val > max) max = val;
14
+ }
15
+ }
16
+ if (!Number.isFinite(min) || !Number.isFinite(max)) return null;
17
+ return { type: "number-range", min, max };
18
+ }
19
+ case "text": {
20
+ const seen = /* @__PURE__ */ new Set();
21
+ const samples = [];
22
+ for (const row of rows) {
23
+ const val = getField(row, fieldName);
24
+ if (typeof val === "string" && val.length > 0) {
25
+ if (!seen.has(val)) {
26
+ seen.add(val);
27
+ if (samples.length < 3) samples.push(val);
28
+ }
29
+ }
30
+ }
31
+ if (seen.size === 0) return null;
32
+ return { type: "text", samples, totalUnique: seen.size };
33
+ }
34
+ case "date": {
35
+ const valueField = `${fieldName}Value`;
36
+ let min = Infinity;
37
+ let max = -Infinity;
38
+ for (const row of rows) {
39
+ const val = getField(row, valueField);
40
+ if (typeof val === "number" && val > 0) {
41
+ if (val < min) min = val;
42
+ if (val > max) max = val;
43
+ }
44
+ }
45
+ if (!Number.isFinite(min) || !Number.isFinite(max)) return null;
46
+ const toDateStr = (ts) => new Date(ts).toISOString().slice(0, 10);
47
+ return { type: "date", min: toDateStr(min), max: toDateStr(max) };
48
+ }
49
+ case "enum": {
50
+ const counts = {};
51
+ if (config.options) {
52
+ for (const opt of config.options) counts[opt.value] = 0;
53
+ }
54
+ for (const row of rows) {
55
+ const val = getField(row, fieldName);
56
+ const key = typeof val === "boolean" ? String(val) : typeof val === "string" ? val : null;
57
+ if (key !== null && key in counts) counts[key]++;
58
+ }
59
+ return { type: "enum", counts };
60
+ }
61
+ default:
62
+ return null;
63
+ }
64
+ }
65
+ export {
66
+ computeColumnStats
67
+ };
@@ -0,0 +1,6 @@
1
+ function formatEnumLabel(value) {
2
+ return value.replace(/^(BALANCE_|TRAFFIC_|TX_)/, "").replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase()).replace(/\B\w+/g, (w) => w.toLowerCase());
3
+ }
4
+ export {
5
+ formatEnumLabel
6
+ };
@@ -0,0 +1,37 @@
1
+ const displayTimeZone = "UTC";
2
+ function formatDateParts(date) {
3
+ const parts = new Intl.DateTimeFormat("en-GB", {
4
+ timeZone: displayTimeZone,
5
+ year: "numeric",
6
+ month: "2-digit",
7
+ day: "2-digit",
8
+ hour: "2-digit",
9
+ minute: "2-digit",
10
+ second: "2-digit",
11
+ hour12: false
12
+ }).formatToParts(date);
13
+ const get = (type) => parts.find((part) => part.type === type)?.value ?? "";
14
+ return `${get("day")}.${get("month")}.${get("year")} ${get("hour")}:${get("minute")}:${get("second")}`;
15
+ }
16
+ function parsePossibleTimestamp(value) {
17
+ if (!value || value === "0") return null;
18
+ if (/^\d+$/.test(value)) {
19
+ const numeric = Number(value);
20
+ if (!Number.isFinite(numeric) || numeric <= 0) return null;
21
+ const milliseconds = value.length > 10 ? numeric : numeric * 1e3;
22
+ const numericDate = new Date(milliseconds);
23
+ return Number.isNaN(numericDate.getTime()) ? null : numericDate;
24
+ }
25
+ const parsed = new Date(value);
26
+ return Number.isNaN(parsed.getTime()) ? null : parsed;
27
+ }
28
+ function formatLiveTimestamp(value) {
29
+ const date = parsePossibleTimestamp(value);
30
+ return date ? formatDateParts(date) : null;
31
+ }
32
+ export {
33
+ displayTimeZone,
34
+ formatDateParts,
35
+ formatLiveTimestamp,
36
+ parsePossibleTimestamp
37
+ };
@@ -0,0 +1,4 @@
1
+ const STYLE_SCOPE = "tablewright";
2
+ export {
3
+ STYLE_SCOPE
4
+ };
@@ -0,0 +1,8 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
6
+ export {
7
+ cn
8
+ };
package/dist/fonts.css ADDED
@@ -0,0 +1,5 @@
1
+ /* Optional web fonts. Not loaded by tablewright.css — a library should not
2
+ * make a network request on the host's behalf. Import explicitly, or serve
3
+ * Inter / JetBrains Mono yourself. */
4
+
5
+ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
@@ -0,0 +1,502 @@
1
+ /* @undevy-org/tablewright — Tailwind preflight, opt-in. Generated by scripts/build-css.mjs; do not edit. */
2
+ *, ::before, ::after {
3
+ --tw-border-spacing-x: 0;
4
+ --tw-border-spacing-y: 0;
5
+ --tw-translate-x: 0;
6
+ --tw-translate-y: 0;
7
+ --tw-rotate: 0;
8
+ --tw-skew-x: 0;
9
+ --tw-skew-y: 0;
10
+ --tw-scale-x: 1;
11
+ --tw-scale-y: 1;
12
+ --tw-pan-x: ;
13
+ --tw-pan-y: ;
14
+ --tw-pinch-zoom: ;
15
+ --tw-scroll-snap-strictness: proximity;
16
+ --tw-gradient-from-position: ;
17
+ --tw-gradient-via-position: ;
18
+ --tw-gradient-to-position: ;
19
+ --tw-ordinal: ;
20
+ --tw-slashed-zero: ;
21
+ --tw-numeric-figure: ;
22
+ --tw-numeric-spacing: ;
23
+ --tw-numeric-fraction: ;
24
+ --tw-ring-inset: ;
25
+ --tw-ring-offset-width: 0px;
26
+ --tw-ring-offset-color: #fff;
27
+ --tw-ring-color: rgb(59 130 246 / 0.5);
28
+ --tw-ring-offset-shadow: 0 0 #0000;
29
+ --tw-ring-shadow: 0 0 #0000;
30
+ --tw-shadow: 0 0 #0000;
31
+ --tw-shadow-colored: 0 0 #0000;
32
+ --tw-blur: ;
33
+ --tw-brightness: ;
34
+ --tw-contrast: ;
35
+ --tw-grayscale: ;
36
+ --tw-hue-rotate: ;
37
+ --tw-invert: ;
38
+ --tw-saturate: ;
39
+ --tw-sepia: ;
40
+ --tw-drop-shadow: ;
41
+ --tw-backdrop-blur: ;
42
+ --tw-backdrop-brightness: ;
43
+ --tw-backdrop-contrast: ;
44
+ --tw-backdrop-grayscale: ;
45
+ --tw-backdrop-hue-rotate: ;
46
+ --tw-backdrop-invert: ;
47
+ --tw-backdrop-opacity: ;
48
+ --tw-backdrop-saturate: ;
49
+ --tw-backdrop-sepia: ;
50
+ --tw-contain-size: ;
51
+ --tw-contain-layout: ;
52
+ --tw-contain-paint: ;
53
+ --tw-contain-style: ;
54
+ }
55
+
56
+ ::backdrop {
57
+ --tw-border-spacing-x: 0;
58
+ --tw-border-spacing-y: 0;
59
+ --tw-translate-x: 0;
60
+ --tw-translate-y: 0;
61
+ --tw-rotate: 0;
62
+ --tw-skew-x: 0;
63
+ --tw-skew-y: 0;
64
+ --tw-scale-x: 1;
65
+ --tw-scale-y: 1;
66
+ --tw-pan-x: ;
67
+ --tw-pan-y: ;
68
+ --tw-pinch-zoom: ;
69
+ --tw-scroll-snap-strictness: proximity;
70
+ --tw-gradient-from-position: ;
71
+ --tw-gradient-via-position: ;
72
+ --tw-gradient-to-position: ;
73
+ --tw-ordinal: ;
74
+ --tw-slashed-zero: ;
75
+ --tw-numeric-figure: ;
76
+ --tw-numeric-spacing: ;
77
+ --tw-numeric-fraction: ;
78
+ --tw-ring-inset: ;
79
+ --tw-ring-offset-width: 0px;
80
+ --tw-ring-offset-color: #fff;
81
+ --tw-ring-color: rgb(59 130 246 / 0.5);
82
+ --tw-ring-offset-shadow: 0 0 #0000;
83
+ --tw-ring-shadow: 0 0 #0000;
84
+ --tw-shadow: 0 0 #0000;
85
+ --tw-shadow-colored: 0 0 #0000;
86
+ --tw-blur: ;
87
+ --tw-brightness: ;
88
+ --tw-contrast: ;
89
+ --tw-grayscale: ;
90
+ --tw-hue-rotate: ;
91
+ --tw-invert: ;
92
+ --tw-saturate: ;
93
+ --tw-sepia: ;
94
+ --tw-drop-shadow: ;
95
+ --tw-backdrop-blur: ;
96
+ --tw-backdrop-brightness: ;
97
+ --tw-backdrop-contrast: ;
98
+ --tw-backdrop-grayscale: ;
99
+ --tw-backdrop-hue-rotate: ;
100
+ --tw-backdrop-invert: ;
101
+ --tw-backdrop-opacity: ;
102
+ --tw-backdrop-saturate: ;
103
+ --tw-backdrop-sepia: ;
104
+ --tw-contain-size: ;
105
+ --tw-contain-layout: ;
106
+ --tw-contain-paint: ;
107
+ --tw-contain-style: ;
108
+ }/*
109
+ ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
110
+ *//*
111
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
112
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
113
+ */
114
+
115
+ *,
116
+ ::before,
117
+ ::after {
118
+ box-sizing: border-box; /* 1 */
119
+ border-width: 0; /* 2 */
120
+ border-style: solid; /* 2 */
121
+ border-color: #e5e7eb; /* 2 */
122
+ }
123
+
124
+ ::before,
125
+ ::after {
126
+ --tw-content: '';
127
+ }
128
+
129
+ /*
130
+ 1. Use a consistent sensible line-height in all browsers.
131
+ 2. Prevent adjustments of font size after orientation changes in iOS.
132
+ 3. Use a more readable tab size.
133
+ 4. Use the user's configured `sans` font-family by default.
134
+ 5. Use the user's configured `sans` font-feature-settings by default.
135
+ 6. Use the user's configured `sans` font-variation-settings by default.
136
+ 7. Disable tap highlights on iOS
137
+ */
138
+
139
+ html,
140
+ :host {
141
+ line-height: 1.5; /* 1 */
142
+ -webkit-text-size-adjust: 100%; /* 2 */
143
+ -moz-tab-size: 4; /* 3 */
144
+ -o-tab-size: 4;
145
+ tab-size: 4; /* 3 */
146
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
147
+ font-feature-settings: normal; /* 5 */
148
+ font-variation-settings: normal; /* 6 */
149
+ -webkit-tap-highlight-color: transparent; /* 7 */
150
+ }
151
+
152
+ /*
153
+ 1. Remove the margin in all browsers.
154
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
155
+ */
156
+
157
+ body {
158
+ margin: 0; /* 1 */
159
+ line-height: inherit; /* 2 */
160
+ }
161
+
162
+ /*
163
+ 1. Add the correct height in Firefox.
164
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
165
+ 3. Ensure horizontal rules are visible by default.
166
+ */
167
+
168
+ hr {
169
+ height: 0; /* 1 */
170
+ color: inherit; /* 2 */
171
+ border-top-width: 1px; /* 3 */
172
+ }
173
+
174
+ /*
175
+ Add the correct text decoration in Chrome, Edge, and Safari.
176
+ */
177
+
178
+ abbr:where([title]) {
179
+ -webkit-text-decoration: underline dotted;
180
+ text-decoration: underline dotted;
181
+ }
182
+
183
+ /*
184
+ Remove the default font size and weight for headings.
185
+ */
186
+
187
+ h1,
188
+ h2,
189
+ h3,
190
+ h4,
191
+ h5,
192
+ h6 {
193
+ font-size: inherit;
194
+ font-weight: inherit;
195
+ }
196
+
197
+ /*
198
+ Reset links to optimize for opt-in styling instead of opt-out.
199
+ */
200
+
201
+ a {
202
+ color: inherit;
203
+ text-decoration: inherit;
204
+ }
205
+
206
+ /*
207
+ Add the correct font weight in Edge and Safari.
208
+ */
209
+
210
+ b,
211
+ strong {
212
+ font-weight: bolder;
213
+ }
214
+
215
+ /*
216
+ 1. Use the user's configured `mono` font-family by default.
217
+ 2. Use the user's configured `mono` font-feature-settings by default.
218
+ 3. Use the user's configured `mono` font-variation-settings by default.
219
+ 4. Correct the odd `em` font sizing in all browsers.
220
+ */
221
+
222
+ code,
223
+ kbd,
224
+ samp,
225
+ pre {
226
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
227
+ font-feature-settings: normal; /* 2 */
228
+ font-variation-settings: normal; /* 3 */
229
+ font-size: 1em; /* 4 */
230
+ }
231
+
232
+ /*
233
+ Add the correct font size in all browsers.
234
+ */
235
+
236
+ small {
237
+ font-size: 80%;
238
+ }
239
+
240
+ /*
241
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
242
+ */
243
+
244
+ sub,
245
+ sup {
246
+ font-size: 75%;
247
+ line-height: 0;
248
+ position: relative;
249
+ vertical-align: baseline;
250
+ }
251
+
252
+ sub {
253
+ bottom: -0.25em;
254
+ }
255
+
256
+ sup {
257
+ top: -0.5em;
258
+ }
259
+
260
+ /*
261
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
262
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
263
+ 3. Remove gaps between table borders by default.
264
+ */
265
+
266
+ table {
267
+ text-indent: 0; /* 1 */
268
+ border-color: inherit; /* 2 */
269
+ border-collapse: collapse; /* 3 */
270
+ }
271
+
272
+ /*
273
+ 1. Change the font styles in all browsers.
274
+ 2. Remove the margin in Firefox and Safari.
275
+ 3. Remove default padding in all browsers.
276
+ */
277
+
278
+ button,
279
+ input,
280
+ optgroup,
281
+ select,
282
+ textarea {
283
+ font-family: inherit; /* 1 */
284
+ font-feature-settings: inherit; /* 1 */
285
+ font-variation-settings: inherit; /* 1 */
286
+ font-size: 100%; /* 1 */
287
+ font-weight: inherit; /* 1 */
288
+ line-height: inherit; /* 1 */
289
+ letter-spacing: inherit; /* 1 */
290
+ color: inherit; /* 1 */
291
+ margin: 0; /* 2 */
292
+ padding: 0; /* 3 */
293
+ }
294
+
295
+ /*
296
+ Remove the inheritance of text transform in Edge and Firefox.
297
+ */
298
+
299
+ button,
300
+ select {
301
+ text-transform: none;
302
+ }
303
+
304
+ /*
305
+ 1. Correct the inability to style clickable types in iOS and Safari.
306
+ 2. Remove default button styles.
307
+ */
308
+
309
+ button,
310
+ input:where([type='button']),
311
+ input:where([type='reset']),
312
+ input:where([type='submit']) {
313
+ -webkit-appearance: button; /* 1 */
314
+ background-color: transparent; /* 2 */
315
+ background-image: none; /* 2 */
316
+ }
317
+
318
+ /*
319
+ Use the modern Firefox focus style for all focusable elements.
320
+ */
321
+
322
+ :-moz-focusring {
323
+ outline: auto;
324
+ }
325
+
326
+ /*
327
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
328
+ */
329
+
330
+ :-moz-ui-invalid {
331
+ box-shadow: none;
332
+ }
333
+
334
+ /*
335
+ Add the correct vertical alignment in Chrome and Firefox.
336
+ */
337
+
338
+ progress {
339
+ vertical-align: baseline;
340
+ }
341
+
342
+ /*
343
+ Correct the cursor style of increment and decrement buttons in Safari.
344
+ */
345
+
346
+ ::-webkit-inner-spin-button,
347
+ ::-webkit-outer-spin-button {
348
+ height: auto;
349
+ }
350
+
351
+ /*
352
+ 1. Correct the odd appearance in Chrome and Safari.
353
+ 2. Correct the outline style in Safari.
354
+ */
355
+
356
+ [type='search'] {
357
+ -webkit-appearance: textfield; /* 1 */
358
+ outline-offset: -2px; /* 2 */
359
+ }
360
+
361
+ /*
362
+ Remove the inner padding in Chrome and Safari on macOS.
363
+ */
364
+
365
+ ::-webkit-search-decoration {
366
+ -webkit-appearance: none;
367
+ }
368
+
369
+ /*
370
+ 1. Correct the inability to style clickable types in iOS and Safari.
371
+ 2. Change font properties to `inherit` in Safari.
372
+ */
373
+
374
+ ::-webkit-file-upload-button {
375
+ -webkit-appearance: button; /* 1 */
376
+ font: inherit; /* 2 */
377
+ }
378
+
379
+ /*
380
+ Add the correct display in Chrome and Safari.
381
+ */
382
+
383
+ summary {
384
+ display: list-item;
385
+ }
386
+
387
+ /*
388
+ Removes the default spacing and border for appropriate elements.
389
+ */
390
+
391
+ blockquote,
392
+ dl,
393
+ dd,
394
+ h1,
395
+ h2,
396
+ h3,
397
+ h4,
398
+ h5,
399
+ h6,
400
+ hr,
401
+ figure,
402
+ p,
403
+ pre {
404
+ margin: 0;
405
+ }
406
+
407
+ fieldset {
408
+ margin: 0;
409
+ padding: 0;
410
+ }
411
+
412
+ legend {
413
+ padding: 0;
414
+ }
415
+
416
+ ol,
417
+ ul,
418
+ menu {
419
+ list-style: none;
420
+ margin: 0;
421
+ padding: 0;
422
+ }
423
+
424
+ /*
425
+ Reset default styling for dialogs.
426
+ */
427
+ dialog {
428
+ padding: 0;
429
+ }
430
+
431
+ /*
432
+ Prevent resizing textareas horizontally by default.
433
+ */
434
+
435
+ textarea {
436
+ resize: vertical;
437
+ }
438
+
439
+ /*
440
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
441
+ 2. Set the default placeholder color to the user's configured gray 400 color.
442
+ */
443
+
444
+ input::-moz-placeholder, textarea::-moz-placeholder {
445
+ opacity: 1; /* 1 */
446
+ color: #9ca3af; /* 2 */
447
+ }
448
+
449
+ input::placeholder,
450
+ textarea::placeholder {
451
+ opacity: 1; /* 1 */
452
+ color: #9ca3af; /* 2 */
453
+ }
454
+
455
+ /*
456
+ Set the default cursor for buttons.
457
+ */
458
+
459
+ button,
460
+ [role="button"] {
461
+ cursor: pointer;
462
+ }
463
+
464
+ /*
465
+ Make sure disabled buttons don't get the pointer cursor.
466
+ */
467
+ :disabled {
468
+ cursor: default;
469
+ }
470
+
471
+ /*
472
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
473
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
474
+ This can trigger a poorly considered lint error in some tools but is included by design.
475
+ */
476
+
477
+ img,
478
+ svg,
479
+ video,
480
+ canvas,
481
+ audio,
482
+ iframe,
483
+ embed,
484
+ object {
485
+ display: block; /* 1 */
486
+ vertical-align: middle; /* 2 */
487
+ }
488
+
489
+ /*
490
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
491
+ */
492
+
493
+ img,
494
+ video {
495
+ max-width: 100%;
496
+ height: auto;
497
+ }
498
+
499
+ /* Make elements with the HTML hidden attribute stay hidden by default */
500
+ [hidden]:where(:not([hidden="until-found"])) {
501
+ display: none;
502
+ }