@trackunit/react-components 0.0.158 → 0.0.161

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
@@ -5217,7 +5217,7 @@ const GridArea = ({
5217
5217
  const IntrinsicallyResponsiveGrid = ({
5218
5218
  children,
5219
5219
  occupation = "auto-fill",
5220
- minColumnWidth = "normal",
5220
+ minColumnWidth = "md",
5221
5221
  gap = "auto",
5222
5222
  dataTestId,
5223
5223
  className
@@ -5249,18 +5249,21 @@ const Layout$2 = tw.span`
5249
5249
  $minColumnWidth
5250
5250
  }) => {
5251
5251
  switch ($minColumnWidth) {
5252
- case "slim":
5253
- return tws`tu-layout-IntrinsicallyResponsiveGrid--slim`;
5252
+ case "xs":
5253
+ return tws`tu-layout-IntrinsicallyResponsiveGrid--xs`;
5254
5254
 
5255
- case "narrow":
5256
- return tws`tu-layout-IntrinsicallyResponsiveGrid--narrow`;
5255
+ case "sm":
5256
+ return tws`tu-layout-IntrinsicallyResponsiveGrid--sm`;
5257
5257
 
5258
- case "wide":
5259
- return tws`tu-layout-IntrinsicallyResponsiveGrid--wide`;
5258
+ case "lg":
5259
+ return tws`tu-layout-IntrinsicallyResponsiveGrid--lg`;
5260
5260
 
5261
- case "normal":
5261
+ case "xl":
5262
+ return tws`tu-layout-IntrinsicallyResponsiveGrid--xl`;
5263
+
5264
+ case "md":
5262
5265
  default:
5263
- return tws`tu-layout-IntrinsicallyResponsiveGrid--normal`;
5266
+ return tws`tu-layout-IntrinsicallyResponsiveGrid--md`;
5264
5267
  }
5265
5268
  }}
5266
5269
 
@@ -5297,7 +5300,7 @@ const Layout$2 = tw.span`
5297
5300
 
5298
5301
  case "auto":
5299
5302
  default:
5300
- return tws`gap-3 sm:gap-4 md:gap-6`;
5303
+ return tws`tu-gap-responsive`;
5301
5304
  }
5302
5305
  }};
5303
5306
  `;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonProps } from "../../common/CommonProps";
3
- declare type ColumnWidth = "slim" | "narrow" | "normal" | "wide";
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.158",
3
+ "version": "0.0.161",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {