@hybridcore/ui 1.6.19 → 1.6.20

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.
@@ -1,8 +1,8 @@
1
- import { styled as o, Box as n, FormLabel as i, Button as r, FormControl as a, InputLabel as c, Input as m, OutlinedInput as l, FilledInput as s, InputAdornment as d, IconButton as p, Dialog as y, DialogTitle as k, DialogContent as u } from "@mui/material";
2
- const G = (e) => e !== "ownerState", g = o(n, {
1
+ import { styled as o, Box as n, FormLabel as a, Button as r, FormControl as c, InputLabel as m, Input as l, OutlinedInput as s, FilledInput as d, InputAdornment as p, IconButton as y, Dialog as k, DialogTitle as g, DialogContent as u } from "@mui/material";
2
+ const i = (e) => e !== "ownerState", G = o(n, {
3
3
  name: "HCGeometryPicker",
4
4
  slot: "root"
5
- })({}), C = o(i, {
5
+ })({}), C = o(a, {
6
6
  name: "HCGeometryPicker",
7
7
  slot: "topLabel"
8
8
  })(({ theme: e }) => ({
@@ -10,25 +10,46 @@ const G = (e) => e !== "ownerState", g = o(n, {
10
10
  marginBottom: e.spacing(0.5)
11
11
  })), b = o(n, {
12
12
  name: "HCGeometryPicker",
13
- slot: "container"
13
+ slot: "header"
14
14
  })(({ theme: e }) => ({
15
- position: "relative",
16
- paddingTop: e.spacing(1),
17
- width: "100%"
15
+ display: "flex",
16
+ alignItems: "center",
17
+ justifyContent: "space-between",
18
+ gap: e.spacing(1),
19
+ marginBottom: e.spacing(0.5),
20
+ minHeight: 28,
21
+ "& > .MuiFormLabel-root": {
22
+ marginBottom: 0
23
+ }
18
24
  })), H = o(n, {
25
+ name: "HCGeometryPicker",
26
+ slot: "container",
27
+ shouldForwardProp: i
28
+ })(({ ownerState: e, theme: t }) => ({
29
+ position: "relative",
30
+ width: "100%",
31
+ paddingTop: e.labelPosition === "top" ? 0 : t.spacing(1)
32
+ })), f = o(n, {
19
33
  name: "HCGeometryPicker",
20
34
  slot: "actions",
21
- shouldForwardProp: G
35
+ shouldForwardProp: i
22
36
  })(({ ownerState: e, theme: t }) => ({
23
- position: "absolute",
24
- top: 0,
25
- right: 0,
26
- zIndex: 9,
27
- ...e.variant === "outlined" && {
28
- padding: t.spacing(0.25),
29
- top: t.spacing(-0.75),
30
- right: t.spacing(1),
31
- background: t.palette.background.default
37
+ display: "flex",
38
+ alignItems: "center",
39
+ ...e.labelPosition === "top" ? {
40
+ flexWrap: "wrap",
41
+ justifyContent: "flex-end"
42
+ } : {
43
+ position: "absolute",
44
+ top: 0,
45
+ right: 0,
46
+ zIndex: 9,
47
+ ...e.variant === "outlined" && {
48
+ padding: t.spacing(0.25),
49
+ top: t.spacing(-0.75),
50
+ right: t.spacing(1),
51
+ background: t.palette.background.default
52
+ }
32
53
  }
33
54
  })), I = o(r, {
34
55
  name: "HCGeometryPicker",
@@ -53,31 +74,31 @@ const G = (e) => e !== "ownerState", g = o(n, {
53
74
  boxShadow: e.shadows[1]
54
75
  }
55
76
  }
56
- })), B = o(a, {
77
+ })), x = o(c, {
57
78
  name: "HCGeometryPicker",
58
79
  slot: "formControl"
59
- })({}), f = o(c, {
80
+ })({}), B = o(m, {
60
81
  name: "HCGeometryPicker",
61
82
  slot: "inputLabel"
62
- })({}), x = o(m, {
83
+ })({}), h = o(l, {
63
84
  name: "HCGeometryPicker",
64
85
  slot: "input"
65
- })({}), S = o(l, {
86
+ })({}), w = o(s, {
66
87
  name: "HCGeometryPicker",
67
88
  slot: "input"
68
- })({}), T = o(s, {
89
+ })({}), L = o(d, {
69
90
  name: "HCGeometryPicker",
70
91
  slot: "input"
71
- })({}), h = o(d, {
92
+ })({}), T = o(p, {
72
93
  name: "HCGeometryPicker",
73
94
  slot: "endAdornment"
74
- })({}), w = o(p, {
95
+ })({}), A = o(y, {
75
96
  name: "HCGeometryPicker",
76
97
  slot: "endAdornmentButton"
77
- })({}), A = o(y, {
98
+ })({}), F = o(k, {
78
99
  name: "HCGeometryPicker",
79
100
  slot: "dialog"
80
- })({}), L = o(k, {
101
+ })({}), S = o(g, {
81
102
  name: "HCGeometryPicker",
82
103
  slot: "dialogTitle"
83
104
  })({}), v = o(u, {
@@ -89,7 +110,7 @@ const G = (e) => e !== "ownerState", g = o(n, {
89
110
  })(({ theme: e }) => ({
90
111
  textTransform: "none",
91
112
  marginTop: e.spacing(1)
92
- })), F = o(n, {
113
+ })), M = o(n, {
93
114
  name: "HCGeometryPicker",
94
115
  slot: "geometryMapOverlay"
95
116
  })(({ theme: e }) => ({
@@ -97,20 +118,21 @@ const G = (e) => e !== "ownerState", g = o(n, {
97
118
  }));
98
119
  export {
99
120
  I as GeometryPickerActionButton,
100
- H as GeometryPickerActions,
101
- b as GeometryPickerContainer,
121
+ f as GeometryPickerActions,
122
+ H as GeometryPickerContainer,
102
123
  D as GeometryPickerCoordinateSubmit,
103
- A as GeometryPickerDialog,
124
+ F as GeometryPickerDialog,
104
125
  v as GeometryPickerDialogContent,
105
- L as GeometryPickerDialogTitle,
106
- h as GeometryPickerEndAdornment,
107
- w as GeometryPickerEndAdornmentButton,
108
- B as GeometryPickerFormControl,
109
- F as GeometryPickerGeometryMapOverlay,
110
- T as GeometryPickerInputFilled,
111
- f as GeometryPickerInputLabel,
112
- S as GeometryPickerInputOutlined,
113
- x as GeometryPickerInputStandard,
114
- g as GeometryPickerRoot,
126
+ S as GeometryPickerDialogTitle,
127
+ T as GeometryPickerEndAdornment,
128
+ A as GeometryPickerEndAdornmentButton,
129
+ x as GeometryPickerFormControl,
130
+ M as GeometryPickerGeometryMapOverlay,
131
+ b as GeometryPickerHeader,
132
+ L as GeometryPickerInputFilled,
133
+ B as GeometryPickerInputLabel,
134
+ w as GeometryPickerInputOutlined,
135
+ h as GeometryPickerInputStandard,
136
+ G as GeometryPickerRoot,
115
137
  C as GeometryPickerTopLabel
116
138
  };
package/dist/main.d.ts CHANGED
@@ -3294,6 +3294,7 @@ declare module "@mui/material/styles" {
3294
3294
  HCGeometryPicker:
3295
3295
  | "root"
3296
3296
  | "topLabel"
3297
+ | "header"
3297
3298
  | "container"
3298
3299
  | "actions"
3299
3300
  | "actionButton"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.6.19",
4
+ "version": "1.6.20",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",