@trackunit/react-components 0.0.158 → 0.0.162
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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CommonProps } from "../../common";
|
|
3
|
+
import { BaseInputProps } from "../BaseInput";
|
|
4
|
+
export interface PhoneInputProps extends BaseInputProps, CommonProps {
|
|
5
|
+
/**
|
|
6
|
+
* A flag to disable the phone button.
|
|
7
|
+
*/
|
|
8
|
+
disableAction?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A Phone Input component is used for input of the type tel.
|
|
12
|
+
*
|
|
13
|
+
* It has an ActionButton which sends an phone call to the specified number using "tel:" link.
|
|
14
|
+
*
|
|
15
|
+
* Extends props of BaseInput.
|
|
16
|
+
*
|
|
17
|
+
* A reference to the input element is provided as the `ref` prop.
|
|
18
|
+
* For specific input types make sure to use the corresponding input component.
|
|
19
|
+
*/
|
|
20
|
+
export declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<HTMLInputElement>>;
|
package/index.js
CHANGED
|
@@ -3946,6 +3946,7 @@ const useCustomComponents = (componentsProps, disabled, menuIsClosing, refMenuIs
|
|
|
3946
3946
|
};
|
|
3947
3947
|
return jsx(components.Option, Object.assign({}, props, {
|
|
3948
3948
|
innerProps: Object.assign(Object.assign({}, props.innerProps), {
|
|
3949
|
+
role: "option",
|
|
3949
3950
|
onClick: () => {}
|
|
3950
3951
|
})
|
|
3951
3952
|
}, {
|
|
@@ -5217,7 +5218,7 @@ const GridArea = ({
|
|
|
5217
5218
|
const IntrinsicallyResponsiveGrid = ({
|
|
5218
5219
|
children,
|
|
5219
5220
|
occupation = "auto-fill",
|
|
5220
|
-
minColumnWidth = "
|
|
5221
|
+
minColumnWidth = "md",
|
|
5221
5222
|
gap = "auto",
|
|
5222
5223
|
dataTestId,
|
|
5223
5224
|
className
|
|
@@ -5249,18 +5250,21 @@ const Layout$2 = tw.span`
|
|
|
5249
5250
|
$minColumnWidth
|
|
5250
5251
|
}) => {
|
|
5251
5252
|
switch ($minColumnWidth) {
|
|
5252
|
-
case "
|
|
5253
|
-
return tws`tu-layout-IntrinsicallyResponsiveGrid--
|
|
5253
|
+
case "xs":
|
|
5254
|
+
return tws`tu-layout-IntrinsicallyResponsiveGrid--xs`;
|
|
5254
5255
|
|
|
5255
|
-
case "
|
|
5256
|
-
return tws`tu-layout-IntrinsicallyResponsiveGrid--
|
|
5256
|
+
case "sm":
|
|
5257
|
+
return tws`tu-layout-IntrinsicallyResponsiveGrid--sm`;
|
|
5257
5258
|
|
|
5258
|
-
case "
|
|
5259
|
-
return tws`tu-layout-IntrinsicallyResponsiveGrid--
|
|
5259
|
+
case "lg":
|
|
5260
|
+
return tws`tu-layout-IntrinsicallyResponsiveGrid--lg`;
|
|
5260
5261
|
|
|
5261
|
-
case "
|
|
5262
|
+
case "xl":
|
|
5263
|
+
return tws`tu-layout-IntrinsicallyResponsiveGrid--xl`;
|
|
5264
|
+
|
|
5265
|
+
case "md":
|
|
5262
5266
|
default:
|
|
5263
|
-
return tws`tu-layout-IntrinsicallyResponsiveGrid--
|
|
5267
|
+
return tws`tu-layout-IntrinsicallyResponsiveGrid--md`;
|
|
5264
5268
|
}
|
|
5265
5269
|
}}
|
|
5266
5270
|
|
|
@@ -5297,7 +5301,7 @@ const Layout$2 = tw.span`
|
|
|
5297
5301
|
|
|
5298
5302
|
case "auto":
|
|
5299
5303
|
default:
|
|
5300
|
-
return tws`
|
|
5304
|
+
return tws`tu-gap-responsive`;
|
|
5301
5305
|
}
|
|
5302
5306
|
}};
|
|
5303
5307
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
-
declare type ColumnWidth = "
|
|
3
|
+
declare type ColumnWidth = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
4
|
declare type Space = "inherit" | "auto" | "none" | "tiny" | "mini" | "small" | "medium" | "large" | "giant" | "enormous";
|
|
5
5
|
declare type Occupation = "auto-fill" | "auto-fit";
|
|
6
6
|
interface IntrinsicallyResponsiveGridProps extends CommonProps {
|