@tipp/ui 1.4.1 → 1.4.3

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
1
  import {
2
2
  FieldErrorWrapper
3
- } from "../chunk-DJN2IEY6.js";
4
- import "../chunk-25HMMI7R.js";
3
+ } from "../chunk-QDZS4B6A.js";
5
4
  import "../chunk-52MVZ6AN.js";
5
+ import "../chunk-25HMMI7R.js";
6
6
  import "../chunk-N552FDTV.js";
7
7
  export {
8
8
  FieldErrorWrapper
@@ -1,4 +1,23 @@
1
1
  import "../chunk-76JGDATZ.js";
2
+ import {
3
+ TextArea
4
+ } from "../chunk-ILRUXI2E.js";
5
+ import {
6
+ TextField
7
+ } from "../chunk-JPIZP2PZ.js";
8
+ import {
9
+ ToastContainer,
10
+ toast
11
+ } from "../chunk-CYYWMYE7.js";
12
+ import {
13
+ Select
14
+ } from "../chunk-3JRNKBMN.js";
15
+ import {
16
+ Separator
17
+ } from "../chunk-HYITAA4J.js";
18
+ import {
19
+ Skeleton
20
+ } from "../chunk-5H3YPCZK.js";
2
21
  import {
3
22
  Spinner
4
23
  } from "../chunk-FR2GDOU2.js";
@@ -15,15 +34,14 @@ import {
15
34
  Tabs
16
35
  } from "../chunk-5ZITU5L7.js";
17
36
  import {
18
- TextArea
19
- } from "../chunk-ILRUXI2E.js";
37
+ Progress
38
+ } from "../chunk-365QMK4D.js";
20
39
  import {
21
- TextField
22
- } from "../chunk-JPIZP2PZ.js";
40
+ Quote
41
+ } from "../chunk-YO3BQW6S.js";
23
42
  import {
24
- ToastContainer,
25
- toast
26
- } from "../chunk-CYYWMYE7.js";
43
+ RadioCards
44
+ } from "../chunk-6IVCARWS.js";
27
45
  import {
28
46
  RadioGroup
29
47
  } from "../chunk-6DJOIRMF.js";
@@ -40,14 +58,8 @@ import {
40
58
  SegmentedControl
41
59
  } from "../chunk-TVDKGMBI.js";
42
60
  import {
43
- Select
44
- } from "../chunk-3JRNKBMN.js";
45
- import {
46
- Separator
47
- } from "../chunk-HYITAA4J.js";
48
- import {
49
- Skeleton
50
- } from "../chunk-5H3YPCZK.js";
61
+ HoverCard
62
+ } from "../chunk-O3T3TM3V.js";
51
63
  import {
52
64
  Inset
53
65
  } from "../chunk-XQOL7UBI.js";
@@ -59,22 +71,31 @@ import {
59
71
  } from "../chunk-SIM6HKVI.js";
60
72
  import {
61
73
  Pagination
62
- } from "../chunk-5X3BCQPR.js";
74
+ } from "../chunk-IM7DSIK2.js";
75
+ import {
76
+ IconButton
77
+ } from "../chunk-O3DNDMV3.js";
63
78
  import {
64
79
  Popover
65
80
  } from "../chunk-5AVBYDPB.js";
66
81
  import {
67
- Progress
68
- } from "../chunk-365QMK4D.js";
82
+ DropdownMenu
83
+ } from "../chunk-4WFMOFN2.js";
69
84
  import {
70
- Quote
71
- } from "../chunk-YO3BQW6S.js";
85
+ EllipsisTooltip
86
+ } from "../chunk-WKFZ5MMN.js";
72
87
  import {
73
- RadioCards
74
- } from "../chunk-6IVCARWS.js";
88
+ Tooltip
89
+ } from "../chunk-ACVANQJ4.js";
90
+ import {
91
+ Em
92
+ } from "../chunk-2DZ2Y3JI.js";
75
93
  import {
76
94
  FieldErrorWrapper
77
- } from "../chunk-DJN2IEY6.js";
95
+ } from "../chunk-QDZS4B6A.js";
96
+ import {
97
+ Typo
98
+ } from "../chunk-52MVZ6AN.js";
78
99
  import {
79
100
  Flex
80
101
  } from "../chunk-25HMMI7R.js";
@@ -88,11 +109,14 @@ import {
88
109
  Heading
89
110
  } from "../chunk-HK224ADT.js";
90
111
  import {
91
- HoverCard
92
- } from "../chunk-O3T3TM3V.js";
112
+ CheckboxGroup
113
+ } from "../chunk-IQEEPHOY.js";
93
114
  import {
94
- IconButton
95
- } from "../chunk-O3DNDMV3.js";
115
+ Checkbox
116
+ } from "../chunk-LHCDPZ5E.js";
117
+ import {
118
+ Code
119
+ } from "../chunk-OHMOP5PV.js";
96
120
  import {
97
121
  Collapse
98
122
  } from "../chunk-LZJR77Q2.js";
@@ -112,20 +136,14 @@ import {
112
136
  Trigger
113
137
  } from "../chunk-3IZQ2PIQ.js";
114
138
  import {
115
- DropdownMenu
116
- } from "../chunk-4WFMOFN2.js";
117
- import {
118
- EllipsisTooltip
119
- } from "../chunk-WKFZ5MMN.js";
120
- import {
121
- Tooltip
122
- } from "../chunk-ACVANQJ4.js";
139
+ Avatar
140
+ } from "../chunk-3SSSCLJ5.js";
123
141
  import {
124
- Typo
125
- } from "../chunk-52MVZ6AN.js";
142
+ Badge
143
+ } from "../chunk-EWD4AO5N.js";
126
144
  import {
127
- Em
128
- } from "../chunk-2DZ2Y3JI.js";
145
+ Blockquote
146
+ } from "../chunk-YGL6SWKN.js";
129
147
  import {
130
148
  Box
131
149
  } from "../chunk-4Y5BEXVN.js";
@@ -141,15 +159,6 @@ import {
141
159
  import {
142
160
  CheckboxCards
143
161
  } from "../chunk-MIMJ7LON.js";
144
- import {
145
- CheckboxGroup
146
- } from "../chunk-IQEEPHOY.js";
147
- import {
148
- Checkbox
149
- } from "../chunk-LHCDPZ5E.js";
150
- import {
151
- Code
152
- } from "../chunk-OHMOP5PV.js";
153
162
  import "../chunk-66C4U3BG.js";
154
163
  import {
155
164
  AlertDialog
@@ -160,15 +169,6 @@ import {
160
169
  import {
161
170
  AutoSizingInput
162
171
  } from "../chunk-YJCCE5WP.js";
163
- import {
164
- Avatar
165
- } from "../chunk-3SSSCLJ5.js";
166
- import {
167
- Badge
168
- } from "../chunk-EWD4AO5N.js";
169
- import {
170
- Blockquote
171
- } from "../chunk-YGL6SWKN.js";
172
172
  import "../chunk-N552FDTV.js";
173
173
  export {
174
174
  AlertDialog,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Pagination
3
- } from "../chunk-5X3BCQPR.js";
4
- import "../chunk-25HMMI7R.js";
3
+ } from "../chunk-IM7DSIK2.js";
5
4
  import "../chunk-O3DNDMV3.js";
6
5
  import "../chunk-52MVZ6AN.js";
6
+ import "../chunk-25HMMI7R.js";
7
7
  import "../chunk-66C4U3BG.js";
8
8
  import "../chunk-N552FDTV.js";
9
9
  export {
@@ -0,0 +1,19 @@
1
+ // src/utils/get-cell-align.ts
2
+ var getCellAlign = (type) => {
3
+ switch (type) {
4
+ case "number":
5
+ case "date":
6
+ case "time":
7
+ return "right";
8
+ case "string":
9
+ case "button":
10
+ return "left";
11
+ default:
12
+ return type;
13
+ }
14
+ };
15
+
16
+ export {
17
+ getCellAlign
18
+ };
19
+ //# sourceMappingURL=chunk-2BPFXK4L.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/get-cell-align.ts"],"sourcesContent":["export type CellAlign = 'left' | 'center' | 'right';\n\nexport type CellDataType =\n | 'number'\n | 'date'\n | 'time'\n | 'string'\n | 'button'\n | CellAlign;\n\nexport const getCellAlign = (type: CellDataType): CellAlign => {\n switch (type) {\n case 'number':\n case 'date':\n case 'time':\n return 'right';\n case 'string':\n case 'button':\n return 'left';\n default:\n return type;\n }\n};\n"],"mappings":";AAUO,IAAM,eAAe,CAAC,SAAkC;AAC7D,UAAQ,MAAM;AAAA,IACZ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;","names":[]}
package/dist/index.cjs CHANGED
@@ -2230,16 +2230,17 @@ var EchartDefaultProps = {
2230
2230
  };
2231
2231
 
2232
2232
  // src/utils/get-cell-align.ts
2233
- var getCellAlign = (arg) => {
2234
- const { dataType } = arg;
2235
- switch (dataType) {
2233
+ var getCellAlign = (type) => {
2234
+ switch (type) {
2236
2235
  case "number":
2237
2236
  case "date":
2238
2237
  case "time":
2239
2238
  return "right";
2240
2239
  case "string":
2241
- default:
2240
+ case "button":
2242
2241
  return "left";
2242
+ default:
2243
+ return type;
2243
2244
  }
2244
2245
  };
2245
2246