@monolith-forensics/monolith-ui 1.8.0 → 1.8.1-dev.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.
- package/dist/Button/Button.js +9 -58
- package/dist/Calendar/Calendar.d.ts +3 -1
- package/dist/Calendar/Calendar.js +134 -33
- package/dist/Calendar/CalendarStyles.d.ts +3 -0
- package/dist/Calendar/CalendarStyles.js +92 -14
- package/dist/Calendar/calendarHelpers.d.ts +5 -1
- package/dist/Calendar/calendarHelpers.js +13 -5
- package/dist/Charts/BarChart/BarChart.d.ts +5 -0
- package/dist/Charts/BarChart/BarChart.js +549 -0
- package/dist/Charts/BarChart/BarChart.lib.d.ts +31 -0
- package/dist/Charts/BarChart/BarChart.lib.js +136 -0
- package/dist/Charts/BarChart/BarChart.styled.d.ts +51 -0
- package/dist/Charts/BarChart/BarChart.styled.js +115 -0
- package/dist/Charts/BarChart/BarChart.types.d.ts +171 -0
- package/dist/Charts/BarChart/BarChart.types.js +1 -0
- package/dist/Charts/BarChart/index.d.ts +3 -0
- package/dist/Charts/BarChart/index.js +2 -0
- package/dist/Charts/ChartPrimitives/ChartExportControl.d.ts +11 -0
- package/dist/Charts/ChartPrimitives/ChartExportControl.js +29 -0
- package/dist/Charts/ChartPrimitives/chartActions.styled.d.ts +1 -0
- package/dist/Charts/ChartPrimitives/chartActions.styled.js +8 -0
- package/dist/Charts/ChartPrimitives/chartLegend.styled.d.ts +12 -0
- package/dist/Charts/ChartPrimitives/chartLegend.styled.js +52 -0
- package/dist/Charts/ChartPrimitives/chartTooltip.styled.d.ts +19 -0
- package/dist/Charts/ChartPrimitives/chartTooltip.styled.js +61 -0
- package/dist/Charts/ChartPrimitives/index.d.ts +4 -0
- package/dist/Charts/ChartPrimitives/index.js +4 -0
- package/dist/Charts/ChartUtils/chartColors.d.ts +8 -0
- package/dist/Charts/ChartUtils/chartColors.js +65 -0
- package/dist/Charts/ChartUtils/chartExport.d.ts +47 -0
- package/dist/Charts/ChartUtils/chartExport.js +311 -0
- package/dist/Charts/ChartUtils/chartMath.d.ts +3 -0
- package/dist/Charts/ChartUtils/chartMath.js +3 -0
- package/dist/Charts/ChartUtils/index.d.ts +3 -0
- package/dist/Charts/ChartUtils/index.js +3 -0
- package/dist/Charts/HeatMap/HeatMap.d.ts +5 -0
- package/dist/Charts/HeatMap/HeatMap.js +212 -0
- package/dist/Charts/HeatMap/HeatMap.lib.d.ts +30 -0
- package/dist/Charts/HeatMap/HeatMap.lib.js +115 -0
- package/dist/Charts/HeatMap/HeatMap.styled.d.ts +37 -0
- package/dist/Charts/HeatMap/HeatMap.styled.js +91 -0
- package/dist/Charts/HeatMap/HeatMap.types.d.ts +80 -0
- package/dist/Charts/HeatMap/HeatMap.types.js +1 -0
- package/dist/Charts/HeatMap/index.d.ts +3 -0
- package/dist/Charts/HeatMap/index.js +2 -0
- package/dist/Charts/LineChart/LineChart.d.ts +5 -0
- package/dist/Charts/LineChart/LineChart.js +529 -0
- package/dist/Charts/LineChart/LineChart.lib.d.ts +24 -0
- package/dist/Charts/LineChart/LineChart.lib.js +132 -0
- package/dist/Charts/LineChart/LineChart.styled.d.ts +59 -0
- package/dist/Charts/LineChart/LineChart.styled.js +147 -0
- package/dist/Charts/LineChart/LineChart.types.d.ts +193 -0
- package/dist/Charts/LineChart/LineChart.types.js +1 -0
- package/dist/Charts/LineChart/index.d.ts +3 -0
- package/dist/Charts/LineChart/index.js +2 -0
- package/dist/Charts/PieChart/PieChart.d.ts +4 -0
- package/dist/Charts/PieChart/PieChart.js +199 -0
- package/dist/Charts/PieChart/PieChart.lib.d.ts +5 -0
- package/dist/Charts/PieChart/PieChart.lib.js +19 -0
- package/dist/Charts/PieChart/PieChart.styled.d.ts +51 -0
- package/dist/Charts/PieChart/PieChart.styled.js +163 -0
- package/dist/Charts/PieChart/PieChart.types.d.ts +100 -0
- package/dist/Charts/PieChart/PieChart.types.js +1 -0
- package/dist/Charts/PieChart/index.d.ts +2 -0
- package/dist/Charts/PieChart/index.js +1 -0
- package/dist/Charts/index.d.ts +5 -0
- package/dist/Charts/index.js +4 -0
- package/dist/CheckBox/CheckBox.js +2 -16
- package/dist/DateInput/DateInput.js +198 -143
- package/dist/DropDownMenu/components/MenuComponent.js +2 -1
- package/dist/DropDownMenu/components/MenuItem.js +5 -14
- package/dist/DropDownMenu/components/MenuItemList.js +7 -24
- package/dist/DropDownMenu/components/StyledFloatContainer.js +1 -1
- package/dist/FieldLabel/FieldLabel.js +4 -12
- package/dist/FileInputField/FileInputField.js +4 -23
- package/dist/FormSection/FormSection.js +5 -25
- package/dist/IconButton/IconButton.js +2 -16
- package/dist/Input/Input.js +7 -56
- package/dist/Pill/Pill.js +8 -79
- package/dist/Popover/Popover.context.d.ts +2 -1
- package/dist/Popover/Popover.js +5 -2
- package/dist/Popover/Popover.styles.d.ts +1 -6
- package/dist/Popover/Popover.styles.js +11 -28
- package/dist/Popover/Popover.transitions.d.ts +4 -2
- package/dist/Popover/Popover.transitions.js +23 -49
- package/dist/Popover/PopoverDropdown.js +6 -8
- package/dist/Popover/PopoverTarget.js +6 -3
- package/dist/SegmentedControl/SegmentedControl.utils.d.ts +2 -2
- package/dist/SegmentedControl/SegmentedControl.utils.js +3 -30
- package/dist/SelectBox/SelectBox.js +5 -5
- package/dist/SelectBox/select-box.styled-components.d.ts +4 -1
- package/dist/SelectBox/select-box.styled-components.js +11 -48
- package/dist/SelectBox/types.d.ts +1 -0
- package/dist/Switch/Switch.d.ts +2 -2
- package/dist/Switch/Switch.js +18 -83
- package/dist/Table/StateStorage.d.ts +4 -0
- package/dist/Table/StateStorage.js +13 -0
- package/dist/Table/Table.js +160 -12
- package/dist/Table/TableComponents.d.ts +10 -0
- package/dist/Table/TableComponents.js +57 -0
- package/dist/Table/TableDefaults.d.ts +7 -0
- package/dist/Table/TableDefaults.js +7 -0
- package/dist/Table/TableProvider.js +263 -71
- package/dist/Table/TableRow.js +15 -10
- package/dist/Table/types.d.ts +64 -0
- package/dist/TagBox/TagBox.js +18 -76
- package/dist/TextArea/TextArea.js +4 -23
- package/dist/TextInput/TextInput.js +12 -6
- package/dist/Utilities/parseTimestamp.js +11 -6
- package/dist/core/ArrowButton.d.ts +2 -0
- package/dist/core/ArrowButton.js +7 -3
- package/dist/core/ClearButton.d.ts +2 -0
- package/dist/core/ClearButton.js +7 -3
- package/dist/core/controlSizes.d.ts +34 -0
- package/dist/core/controlSizes.js +190 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export const DEFAULT_CONTROL_SIZE = "sm";
|
|
2
|
+
const CONTROL_SIZE_TOKENS = {
|
|
3
|
+
xxs: {
|
|
4
|
+
height: 24,
|
|
5
|
+
fontSize: 11,
|
|
6
|
+
labelFontSize: 11,
|
|
7
|
+
supportingFontSize: 10,
|
|
8
|
+
placeholderFontSize: 10,
|
|
9
|
+
inputPaddingX: 8,
|
|
10
|
+
buttonPaddingX: 8,
|
|
11
|
+
iconSize: 14,
|
|
12
|
+
iconGap: 4,
|
|
13
|
+
adornmentWidth: 24,
|
|
14
|
+
menuRowHeight: 24,
|
|
15
|
+
menuItemPaddingX: 8,
|
|
16
|
+
menuGroupFontSize: 10,
|
|
17
|
+
switchTrackWidth: 24,
|
|
18
|
+
switchTrackHeight: 14,
|
|
19
|
+
switchThumbSize: 10,
|
|
20
|
+
switchPadding: 2,
|
|
21
|
+
switchGap: 6,
|
|
22
|
+
checkboxIconSize: 12,
|
|
23
|
+
iconButtonPaddingX: 4,
|
|
24
|
+
pillHeight: 18,
|
|
25
|
+
pillFontSize: 9,
|
|
26
|
+
pillPaddingX: 6,
|
|
27
|
+
pillIconSize: 10,
|
|
28
|
+
pillGap: 4,
|
|
29
|
+
segmentedHeight: 22,
|
|
30
|
+
segmentedFontSize: 11,
|
|
31
|
+
sectionTitleFontSize: 12,
|
|
32
|
+
sectionIconSize: 12,
|
|
33
|
+
},
|
|
34
|
+
xs: {
|
|
35
|
+
height: 28,
|
|
36
|
+
fontSize: 12,
|
|
37
|
+
labelFontSize: 12,
|
|
38
|
+
supportingFontSize: 11,
|
|
39
|
+
placeholderFontSize: 11,
|
|
40
|
+
inputPaddingX: 10,
|
|
41
|
+
buttonPaddingX: 12,
|
|
42
|
+
iconSize: 14,
|
|
43
|
+
iconGap: 6,
|
|
44
|
+
adornmentWidth: 28,
|
|
45
|
+
menuRowHeight: 28,
|
|
46
|
+
menuItemPaddingX: 10,
|
|
47
|
+
menuGroupFontSize: 11,
|
|
48
|
+
switchTrackWidth: 28,
|
|
49
|
+
switchTrackHeight: 16,
|
|
50
|
+
switchThumbSize: 12,
|
|
51
|
+
switchPadding: 2,
|
|
52
|
+
switchGap: 8,
|
|
53
|
+
checkboxIconSize: 14,
|
|
54
|
+
iconButtonPaddingX: 4,
|
|
55
|
+
pillHeight: 20,
|
|
56
|
+
pillFontSize: 10,
|
|
57
|
+
pillPaddingX: 8,
|
|
58
|
+
pillIconSize: 12,
|
|
59
|
+
pillGap: 5,
|
|
60
|
+
segmentedHeight: 26,
|
|
61
|
+
segmentedFontSize: 12,
|
|
62
|
+
sectionTitleFontSize: 13,
|
|
63
|
+
sectionIconSize: 12,
|
|
64
|
+
},
|
|
65
|
+
sm: {
|
|
66
|
+
height: 32,
|
|
67
|
+
fontSize: 13,
|
|
68
|
+
labelFontSize: 12,
|
|
69
|
+
supportingFontSize: 11,
|
|
70
|
+
placeholderFontSize: 12,
|
|
71
|
+
inputPaddingX: 12,
|
|
72
|
+
buttonPaddingX: 14,
|
|
73
|
+
iconSize: 16,
|
|
74
|
+
iconGap: 6,
|
|
75
|
+
adornmentWidth: 32,
|
|
76
|
+
menuRowHeight: 32,
|
|
77
|
+
menuItemPaddingX: 12,
|
|
78
|
+
menuGroupFontSize: 11,
|
|
79
|
+
switchTrackWidth: 32,
|
|
80
|
+
switchTrackHeight: 18,
|
|
81
|
+
switchThumbSize: 14,
|
|
82
|
+
switchPadding: 2,
|
|
83
|
+
switchGap: 8,
|
|
84
|
+
checkboxIconSize: 16,
|
|
85
|
+
iconButtonPaddingX: 6,
|
|
86
|
+
pillHeight: 22,
|
|
87
|
+
pillFontSize: 12,
|
|
88
|
+
pillPaddingX: 10,
|
|
89
|
+
pillIconSize: 14,
|
|
90
|
+
pillGap: 5,
|
|
91
|
+
segmentedHeight: 32,
|
|
92
|
+
segmentedFontSize: 14,
|
|
93
|
+
sectionTitleFontSize: 14,
|
|
94
|
+
sectionIconSize: 14,
|
|
95
|
+
},
|
|
96
|
+
md: {
|
|
97
|
+
height: 36,
|
|
98
|
+
fontSize: 14,
|
|
99
|
+
labelFontSize: 13,
|
|
100
|
+
supportingFontSize: 12,
|
|
101
|
+
placeholderFontSize: 13,
|
|
102
|
+
inputPaddingX: 12,
|
|
103
|
+
buttonPaddingX: 16,
|
|
104
|
+
iconSize: 16,
|
|
105
|
+
iconGap: 8,
|
|
106
|
+
adornmentWidth: 36,
|
|
107
|
+
menuRowHeight: 36,
|
|
108
|
+
menuItemPaddingX: 12,
|
|
109
|
+
menuGroupFontSize: 12,
|
|
110
|
+
switchTrackWidth: 36,
|
|
111
|
+
switchTrackHeight: 20,
|
|
112
|
+
switchThumbSize: 16,
|
|
113
|
+
switchPadding: 2,
|
|
114
|
+
switchGap: 10,
|
|
115
|
+
checkboxIconSize: 18,
|
|
116
|
+
iconButtonPaddingX: 8,
|
|
117
|
+
pillHeight: 24,
|
|
118
|
+
pillFontSize: 14,
|
|
119
|
+
pillPaddingX: 12,
|
|
120
|
+
pillIconSize: 16,
|
|
121
|
+
pillGap: 5,
|
|
122
|
+
segmentedHeight: 38,
|
|
123
|
+
segmentedFontSize: 16,
|
|
124
|
+
sectionTitleFontSize: 16,
|
|
125
|
+
sectionIconSize: 18,
|
|
126
|
+
},
|
|
127
|
+
lg: {
|
|
128
|
+
height: 44,
|
|
129
|
+
fontSize: 15,
|
|
130
|
+
labelFontSize: 14,
|
|
131
|
+
supportingFontSize: 13,
|
|
132
|
+
placeholderFontSize: 14,
|
|
133
|
+
inputPaddingX: 14,
|
|
134
|
+
buttonPaddingX: 18,
|
|
135
|
+
iconSize: 18,
|
|
136
|
+
iconGap: 8,
|
|
137
|
+
adornmentWidth: 44,
|
|
138
|
+
menuRowHeight: 44,
|
|
139
|
+
menuItemPaddingX: 14,
|
|
140
|
+
menuGroupFontSize: 13,
|
|
141
|
+
switchTrackWidth: 44,
|
|
142
|
+
switchTrackHeight: 24,
|
|
143
|
+
switchThumbSize: 20,
|
|
144
|
+
switchPadding: 2,
|
|
145
|
+
switchGap: 12,
|
|
146
|
+
checkboxIconSize: 20,
|
|
147
|
+
iconButtonPaddingX: 10,
|
|
148
|
+
pillHeight: 26,
|
|
149
|
+
pillFontSize: 16,
|
|
150
|
+
pillPaddingX: 14,
|
|
151
|
+
pillIconSize: 18,
|
|
152
|
+
pillGap: 5,
|
|
153
|
+
segmentedHeight: 46,
|
|
154
|
+
segmentedFontSize: 18,
|
|
155
|
+
sectionTitleFontSize: 18,
|
|
156
|
+
sectionIconSize: 24,
|
|
157
|
+
},
|
|
158
|
+
xl: {
|
|
159
|
+
height: 52,
|
|
160
|
+
fontSize: 16,
|
|
161
|
+
labelFontSize: 15,
|
|
162
|
+
supportingFontSize: 14,
|
|
163
|
+
placeholderFontSize: 15,
|
|
164
|
+
inputPaddingX: 16,
|
|
165
|
+
buttonPaddingX: 22,
|
|
166
|
+
iconSize: 18,
|
|
167
|
+
iconGap: 10,
|
|
168
|
+
adornmentWidth: 52,
|
|
169
|
+
menuRowHeight: 52,
|
|
170
|
+
menuItemPaddingX: 16,
|
|
171
|
+
menuGroupFontSize: 14,
|
|
172
|
+
switchTrackWidth: 52,
|
|
173
|
+
switchTrackHeight: 28,
|
|
174
|
+
switchThumbSize: 24,
|
|
175
|
+
switchPadding: 2,
|
|
176
|
+
switchGap: 12,
|
|
177
|
+
checkboxIconSize: 22,
|
|
178
|
+
iconButtonPaddingX: 12,
|
|
179
|
+
pillHeight: 28,
|
|
180
|
+
pillFontSize: 18,
|
|
181
|
+
pillPaddingX: 16,
|
|
182
|
+
pillIconSize: 20,
|
|
183
|
+
pillGap: 5,
|
|
184
|
+
segmentedHeight: 56,
|
|
185
|
+
segmentedFontSize: 20,
|
|
186
|
+
sectionTitleFontSize: 20,
|
|
187
|
+
sectionIconSize: 28,
|
|
188
|
+
},
|
|
189
|
+
};
|
|
190
|
+
export const getControlSizeTokens = (size = DEFAULT_CONTROL_SIZE) => CONTROL_SIZE_TOKENS[size];
|
package/dist/core/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { default as StyledContent } from "./StyledContent";
|
|
|
2
2
|
export { default as StyledFloatContainer } from "./StyledFloatContainer";
|
|
3
3
|
export { default as ArrowButton } from "./ArrowButton";
|
|
4
4
|
export { default as ClearButton } from "./ClearButton";
|
|
5
|
+
export * from "./controlSizes";
|
|
5
6
|
export type { default as Size } from "./Types/Size";
|
|
6
7
|
export type { default as Variant } from "./Types/Variant";
|
package/dist/core/index.js
CHANGED
|
@@ -2,3 +2,4 @@ export { default as StyledContent } from "./StyledContent";
|
|
|
2
2
|
export { default as StyledFloatContainer } from "./StyledFloatContainer";
|
|
3
3
|
export { default as ArrowButton } from "./ArrowButton";
|
|
4
4
|
export { default as ClearButton } from "./ClearButton";
|
|
5
|
+
export * from "./controlSizes";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monolith-forensics/monolith-ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1-dev.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Matt Danner (Monolith Forensics LLC)",
|
|
@@ -58,6 +58,8 @@
|
|
|
58
58
|
"@tiptap/suggestion": "^2.5.9",
|
|
59
59
|
"@uiw/codemirror-theme-vscode": "^4.23.6",
|
|
60
60
|
"@uiw/react-codemirror": "^4.23.6",
|
|
61
|
+
"d3-scale": "^4.0.2",
|
|
62
|
+
"d3-shape": "^3.2.0",
|
|
61
63
|
"deepmerge": "^4.3.1",
|
|
62
64
|
"exceljs": "^4.4.0",
|
|
63
65
|
"lucide-react": "^0.469.0",
|
|
@@ -83,6 +85,8 @@
|
|
|
83
85
|
},
|
|
84
86
|
"devDependencies": {
|
|
85
87
|
"@tanstack/react-query": "5.59.16",
|
|
88
|
+
"@types/d3-scale": "^4.0.9",
|
|
89
|
+
"@types/d3-shape": "^3.1.8",
|
|
86
90
|
"@types/overlayscrollbars": "^1.12.5",
|
|
87
91
|
"@types/react-dom": "^18.3.0",
|
|
88
92
|
"@types/react-window": "^1.8.8",
|