@scripso-homepad/ui 0.4.6 → 0.4.8
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/README.md +1 -1
- package/dist/{chunk-Y7I7LA2K.js → chunk-DAOLVE64.js} +19 -23
- package/dist/chunk-DAOLVE64.js.map +1 -0
- package/dist/index.cjs +51 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -32
- package/dist/index.d.ts +34 -32
- package/dist/index.js +37 -15
- package/dist/index.js.map +1 -1
- package/dist/web/index.cjs +10 -14
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.js +5 -5
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Select.tsx +43 -13
- package/src/icons/ArrowUpRightIcon.tsx +1 -1
- package/src/icons/ArrowUpRightIcon.web.tsx +1 -1
- package/src/theme/input.ts +4 -9
- package/src/theme/select.ts +20 -6
- package/src/theme/tokens.ts +14 -14
- package/src/web/components/TableActionsMenu.tsx +2 -2
- package/src/web/icons/TableMenuInfoIcon.tsx +2 -2
- package/dist/chunk-Y7I7LA2K.js.map +0 -1
package/dist/web/index.cjs
CHANGED
|
@@ -28574,8 +28574,8 @@ var stormGray = {
|
|
|
28574
28574
|
"3": "#8f9aa3",
|
|
28575
28575
|
"4": "#6a7984"};
|
|
28576
28576
|
var navy = {
|
|
28577
|
-
"0.5": "#
|
|
28578
|
-
"5": "#
|
|
28577
|
+
"0.5": "#dee5eb",
|
|
28578
|
+
"5": "#082640"};
|
|
28579
28579
|
var rubyRed = {
|
|
28580
28580
|
"0.5": "#f7dddf",
|
|
28581
28581
|
"5": "#ae0011"};
|
|
@@ -28625,8 +28625,7 @@ var INPUT_HEIGHT = 52;
|
|
|
28625
28625
|
var INPUT_ICON_SIZE = 20;
|
|
28626
28626
|
var INPUT_ICON_GAP = 10;
|
|
28627
28627
|
var INPUT_OUTLINE_WIDTH = 2;
|
|
28628
|
-
var
|
|
28629
|
-
var INPUT_WEB_INNER_LINE_HEIGHT = 22;
|
|
28628
|
+
var INPUT_TEXT_LINE_HEIGHT = 19;
|
|
28630
28629
|
var INPUT_WEB_VERTICAL_PADDING = 14;
|
|
28631
28630
|
function resolveInputVisualState({
|
|
28632
28631
|
focused = false,
|
|
@@ -28651,8 +28650,8 @@ function createOutlineStyle(ringColor) {
|
|
|
28651
28650
|
};
|
|
28652
28651
|
}
|
|
28653
28652
|
var defaultOutline = {
|
|
28654
|
-
borderRadius: radii.lg,
|
|
28655
|
-
borderWidth:
|
|
28653
|
+
borderRadius: radii.lg + INPUT_OUTLINE_WIDTH,
|
|
28654
|
+
borderWidth: INPUT_OUTLINE_WIDTH,
|
|
28656
28655
|
borderColor: colors.transparent,
|
|
28657
28656
|
padding: 0,
|
|
28658
28657
|
backgroundColor: colors.transparent,
|
|
@@ -28725,8 +28724,6 @@ var inputFieldMetrics = reactNative.StyleSheet.create({
|
|
|
28725
28724
|
flexDirection: "row",
|
|
28726
28725
|
alignItems: "center",
|
|
28727
28726
|
height: INPUT_HEIGHT,
|
|
28728
|
-
minHeight: INPUT_HEIGHT,
|
|
28729
|
-
maxHeight: INPUT_HEIGHT,
|
|
28730
28727
|
borderRadius: radii.lg,
|
|
28731
28728
|
padding: 16,
|
|
28732
28729
|
gap: INPUT_ICON_GAP,
|
|
@@ -28742,7 +28739,7 @@ var inputFieldMetrics = reactNative.StyleSheet.create({
|
|
|
28742
28739
|
fontFamily: fonts.sans,
|
|
28743
28740
|
fontSize: fontSize.md,
|
|
28744
28741
|
fontWeight: fontWeight.medium,
|
|
28745
|
-
lineHeight:
|
|
28742
|
+
lineHeight: INPUT_TEXT_LINE_HEIGHT,
|
|
28746
28743
|
paddingVertical: 0,
|
|
28747
28744
|
paddingHorizontal: 0,
|
|
28748
28745
|
margin: 0,
|
|
@@ -28751,7 +28748,6 @@ var inputFieldMetrics = reactNative.StyleSheet.create({
|
|
|
28751
28748
|
...reactNative.Platform.OS === "android" ? { includeFontPadding: false } : null,
|
|
28752
28749
|
...reactNative.Platform.OS === "web" ? {
|
|
28753
28750
|
alignSelf: "center",
|
|
28754
|
-
lineHeight: INPUT_WEB_INNER_LINE_HEIGHT,
|
|
28755
28751
|
outlineStyle: "none"
|
|
28756
28752
|
} : {
|
|
28757
28753
|
alignSelf: "stretch"
|
|
@@ -29844,8 +29840,8 @@ function TableMenuInfoIcon({ className }) {
|
|
|
29844
29840
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
29845
29841
|
"path",
|
|
29846
29842
|
{
|
|
29847
|
-
d: "
|
|
29848
|
-
stroke: "
|
|
29843
|
+
d: "M10.0013 13.3337V10.0003M10.0013 6.66699H10.0096M18.3346 10.0003C18.3346 14.6027 14.6037 18.3337 10.0013 18.3337C5.39893 18.3337 1.66797 14.6027 1.66797 10.0003C1.66797 5.39795 5.39893 1.66699 10.0013 1.66699C14.6037 1.66699 18.3346 5.39795 18.3346 10.0003Z",
|
|
29844
|
+
stroke: "currentColor",
|
|
29849
29845
|
strokeWidth: "2",
|
|
29850
29846
|
strokeLinecap: "round",
|
|
29851
29847
|
strokeLinejoin: "round"
|
|
@@ -30482,12 +30478,12 @@ function TableActionsMenu({
|
|
|
30482
30478
|
item.onSelect();
|
|
30483
30479
|
},
|
|
30484
30480
|
className: cn(
|
|
30485
|
-
"flex w-full cursor-pointer items-center gap-2.5 px-3
|
|
30481
|
+
"flex h-[51px] w-full cursor-pointer items-center gap-2.5 px-3 text-left font-sans text-sm font-medium leading-none text-storm-gray-900 transition-colors hover:bg-storm-gray-0",
|
|
30486
30482
|
index > 0 && "border-t border-storm-gray-50",
|
|
30487
30483
|
item.disabled && "cursor-not-allowed opacity-50"
|
|
30488
30484
|
),
|
|
30489
30485
|
children: [
|
|
30490
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex size-5 shrink-0 items-center justify-center", children: icon }) : null,
|
|
30486
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex size-5 shrink-0 items-center justify-center text-storm-gray-200", children: icon }) : null,
|
|
30491
30487
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
|
|
30492
30488
|
]
|
|
30493
30489
|
},
|