@scripso-homepad/ui 0.4.36 → 0.4.38
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/{chunk-AOBKWDGW.js → chunk-4FBZM62E.js} +3 -3
- package/dist/chunk-4FBZM62E.js.map +1 -0
- package/dist/index.cjs +25 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -12
- package/dist/index.js.map +1 -1
- package/dist/web/index.cjs +55 -41
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +6 -2
- package/dist/web/index.d.ts +6 -2
- package/dist/web/index.js +56 -42
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +5 -1
- package/src/components/PhoneInput.tsx +5 -0
- package/src/components/Select.tsx +1 -0
- package/src/theme/select.ts +9 -1
- package/src/web/components/Drawer.tsx +2 -2
- package/src/web/components/Pagination.tsx +62 -58
- package/src/web/components/table/DataTable.tsx +2 -1
- package/src/web/components/table/TableScrollArea.tsx +1 -1
- package/src/web/layout/DashboardLayout.stories.tsx +2 -1
- package/src/web/layout/DashboardLayout.tsx +3 -3
- package/src/web/layout/Sidebar.stories.tsx +1 -0
- package/src/web/layout/Sidebar.tsx +33 -23
- package/src/web/layout/SidebarMobileHeader.stories.tsx +20 -0
- package/src/web/layout/SidebarMobileHeader.tsx +8 -3
- package/dist/chunk-AOBKWDGW.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { spacing, colors, fontWeight, fontSize, fonts, radii, INPUT_HEIGHT, INPUT_OUTLINE_WIDTH, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-
|
|
2
|
-
export { Button, Input, Label, announcementStatusBadge, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale } from './chunk-
|
|
1
|
+
import { spacing, colors, fontWeight, fontSize, fonts, radii, INPUT_HEIGHT, INPUT_OUTLINE_WIDTH, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-4FBZM62E.js';
|
|
2
|
+
export { Button, Input, Label, announcementStatusBadge, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale } from './chunk-4FBZM62E.js';
|
|
3
3
|
import { createContext, useRef, useState, useMemo, useEffect, useLayoutEffect, useContext, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import { Platform, StyleSheet, Animated, Easing, View, Pressable, Text, Modal, ScrollView, Image, TextInput, Dimensions } from 'react-native';
|
|
5
5
|
import Svg2, { Path } from 'react-native-svg';
|
|
@@ -107,7 +107,10 @@ function getSelectFieldStyles(state) {
|
|
|
107
107
|
borderColor: colors.stormGray50,
|
|
108
108
|
backgroundColor: colors.stormGray50
|
|
109
109
|
},
|
|
110
|
-
value: {
|
|
110
|
+
value: {
|
|
111
|
+
...valueBase,
|
|
112
|
+
color: colors.stormGray300
|
|
113
|
+
},
|
|
111
114
|
placeholder: colors.stormGray300,
|
|
112
115
|
icon: colors.stormGray150
|
|
113
116
|
};
|
|
@@ -161,7 +164,8 @@ var selectFieldMetrics = StyleSheet.create({
|
|
|
161
164
|
padding: SELECT_PADDING,
|
|
162
165
|
gap: SELECT_INNER_GAP,
|
|
163
166
|
...Platform.OS === "web" ? {
|
|
164
|
-
boxSizing: "border-box"
|
|
167
|
+
boxSizing: "border-box",
|
|
168
|
+
cursor: "pointer"
|
|
165
169
|
} : null
|
|
166
170
|
},
|
|
167
171
|
value: {
|
|
@@ -173,7 +177,8 @@ var selectFieldMetrics = StyleSheet.create({
|
|
|
173
177
|
margin: 0,
|
|
174
178
|
...Platform.OS === "android" ? { includeFontPadding: false } : null,
|
|
175
179
|
...Platform.OS === "web" ? {
|
|
176
|
-
outlineStyle: "none"
|
|
180
|
+
outlineStyle: "none",
|
|
181
|
+
cursor: "pointer"
|
|
177
182
|
} : null
|
|
178
183
|
}
|
|
179
184
|
});
|
|
@@ -184,7 +189,8 @@ var selectDropdownMetrics = StyleSheet.create({
|
|
|
184
189
|
borderColor: colors.stormGray50,
|
|
185
190
|
backgroundColor: colors.white,
|
|
186
191
|
padding: SELECT_DROPDOWN_PADDING,
|
|
187
|
-
overflow: "hidden"
|
|
192
|
+
overflow: "hidden",
|
|
193
|
+
...Platform.OS === "web" ? { cursor: "pointer" } : null
|
|
188
194
|
},
|
|
189
195
|
option: {
|
|
190
196
|
width: "100%",
|
|
@@ -196,7 +202,8 @@ var selectDropdownMetrics = StyleSheet.create({
|
|
|
196
202
|
paddingBottom: 12,
|
|
197
203
|
paddingLeft: spacing.sm,
|
|
198
204
|
justifyContent: "center",
|
|
199
|
-
alignItems: "flex-start"
|
|
205
|
+
alignItems: "flex-start",
|
|
206
|
+
...Platform.OS === "web" ? { cursor: "pointer" } : null
|
|
200
207
|
},
|
|
201
208
|
optionLabel: {
|
|
202
209
|
fontFamily: fonts.sans,
|
|
@@ -206,7 +213,8 @@ var selectDropdownMetrics = StyleSheet.create({
|
|
|
206
213
|
letterSpacing: 0,
|
|
207
214
|
textAlign: "left",
|
|
208
215
|
color: colors.slateBlue,
|
|
209
|
-
width: "100%"
|
|
216
|
+
width: "100%",
|
|
217
|
+
...Platform.OS === "web" ? { cursor: "pointer" } : null
|
|
210
218
|
},
|
|
211
219
|
optionLabelSelected: {
|
|
212
220
|
fontWeight: fontWeight.medium,
|
|
@@ -777,7 +785,8 @@ var styles = StyleSheet.create({
|
|
|
777
785
|
...Platform.OS === "web" ? {
|
|
778
786
|
overflow: "hidden",
|
|
779
787
|
textOverflow: "ellipsis",
|
|
780
|
-
whiteSpace: "nowrap"
|
|
788
|
+
whiteSpace: "nowrap",
|
|
789
|
+
cursor: "pointer"
|
|
781
790
|
} : null
|
|
782
791
|
},
|
|
783
792
|
optionLabelDisabled: {
|
|
@@ -1254,12 +1263,15 @@ function PhoneInput({
|
|
|
1254
1263
|
var styles4 = StyleSheet.create({
|
|
1255
1264
|
wrapper: {
|
|
1256
1265
|
width: "100%",
|
|
1266
|
+
minWidth: 0,
|
|
1257
1267
|
gap: spacing.sm
|
|
1258
1268
|
},
|
|
1259
1269
|
row: {
|
|
1260
1270
|
flexDirection: "row",
|
|
1261
1271
|
alignItems: "center",
|
|
1262
|
-
gap: INPUT_ICON_GAP
|
|
1272
|
+
gap: INPUT_ICON_GAP,
|
|
1273
|
+
minWidth: 0,
|
|
1274
|
+
width: "100%"
|
|
1263
1275
|
},
|
|
1264
1276
|
countryOutline: {
|
|
1265
1277
|
flexShrink: 0
|
|
@@ -1268,10 +1280,12 @@ var styles4 = StyleSheet.create({
|
|
|
1268
1280
|
flexShrink: 0
|
|
1269
1281
|
},
|
|
1270
1282
|
phoneOutline: {
|
|
1271
|
-
flex: 1
|
|
1283
|
+
flex: 1,
|
|
1284
|
+
minWidth: 0
|
|
1272
1285
|
},
|
|
1273
1286
|
phoneField: {
|
|
1274
|
-
flex: 1
|
|
1287
|
+
flex: 1,
|
|
1288
|
+
minWidth: 0
|
|
1275
1289
|
},
|
|
1276
1290
|
error: {
|
|
1277
1291
|
fontSize: 12,
|