@trackunit/react-components 0.0.64 → 0.0.66-alpha-5162616e1.0

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.
@@ -16,7 +16,4 @@ export interface TipProps extends CommonProps {
16
16
  * @param {TipProps} props - The props for the Tip component
17
17
  * @returns {JSX.Element} Tip component
18
18
  */
19
- export declare const Tip: {
20
- ({ children, iconProps, tooltipProps, dataTestId, ...rest }: TipProps): JSX.Element;
21
- displayName: string;
22
- };
19
+ export declare const Tip: ({ children, iconProps, tooltipProps, dataTestId, ...rest }: TipProps) => JSX.Element;
package/index.js CHANGED
@@ -249,7 +249,6 @@ const StyledButton$1 = tw.button`
249
249
  const StyledSpinner = tw(Spinner)`
250
250
  button__spinner
251
251
  `;
252
- Button.displayName = "Button";
253
252
 
254
253
  const IconButton = React.forwardRef((_a, ref) => {
255
254
  var {
@@ -272,7 +271,6 @@ const IconButton = React.forwardRef((_a, ref) => {
272
271
  children: loading ? jsx(Spinner, {}) : icon
273
272
  }));
274
273
  });
275
- IconButton.displayName = "IconButton";
276
274
  const StyledButton = tw(Button)`
277
275
  ${p => p.$circular ? tws`button--rounded` : null}
278
276
  `;
@@ -928,7 +926,6 @@ const InputContainer = tw.div`
928
926
  $fieldSize
929
927
  }) => $fieldSize === "small" ? tws`input--small` : null}
930
928
  `;
931
- BaseInput.displayName = "BaseInput";
932
929
 
933
930
  const ROLE_CARD = "region";
934
931
  /**
@@ -1517,7 +1514,6 @@ const Checkbox = React.forwardRef((_a, ref) => {
1517
1514
  })), children]
1518
1515
  }));
1519
1516
  });
1520
- Checkbox.displayName = "Checkbox";
1521
1517
  const StyledCheckIcon = tw(CheckIcon)`
1522
1518
  checkbox--icon
1523
1519
  `;
@@ -1910,7 +1906,6 @@ const AnimatedPopover = React.forwardRef(({
1910
1906
  }))]
1911
1907
  });
1912
1908
  });
1913
- AnimatedPopover.displayName = "AnimatedPopover";
1914
1909
  const Backdrop$1 = tw.div`
1915
1910
  fixed
1916
1911
  inset-0
@@ -2391,7 +2386,6 @@ const Tip = _a => {
2391
2386
  const TipContainer = tw.span`
2392
2387
  tip
2393
2388
  `;
2394
- Tip.displayName = "Tip";
2395
2389
 
2396
2390
  /**
2397
2391
  * The FormGroup component should be used to wrap any Input element that needs a label.
@@ -3252,7 +3246,6 @@ const NumberInput = forwardRef((props, ref) => jsx(BaseInput, Object.assign({
3252
3246
  ref: ref,
3253
3247
  type: "number"
3254
3248
  }, props)));
3255
- NumberInput.displayName = "NumberInput";
3256
3249
 
3257
3250
  /**
3258
3251
  * The number field component is used for entering numeric values and includes controls for incrementally increasing or decreasing the value.
@@ -3297,7 +3290,6 @@ const NumberField = forwardRef((_a, ref) => {
3297
3290
  }))
3298
3291
  }));
3299
3292
  });
3300
- NumberField.displayName = "NumberField";
3301
3293
 
3302
3294
  const GetSpacerHeight = () => ({
3303
3295
  minHeight
@@ -3860,7 +3852,6 @@ const SkeletonLines = memo(({
3860
3852
  const SkeletonLine = tw.div`
3861
3853
  skeleton-line
3862
3854
  `;
3863
- SkeletonLines.displayName = "SkeletonLines";
3864
3855
 
3865
3856
  /**
3866
3857
  * Tags allow users to enter information and filter content.
@@ -3900,7 +3891,7 @@ const Tag = _a => {
3900
3891
  style: {
3901
3892
  "-webkit-transition": "-webkit-transform 0.150s"
3902
3893
  },
3903
- className: size === "default" ? tws`tag__icon` : tws`tag__icon tag__icon--small`
3894
+ className: size === "default" ? tws`tu-tag__icon` : tws`tu-tag__icon tu-tag__icon--small`
3904
3895
  })
3905
3896
  }))]
3906
3897
  }));
@@ -3911,8 +3902,8 @@ const getSizeModifierClass = () => ({
3911
3902
  $withXIcon
3912
3903
  }) => {
3913
3904
  const tagSizeModifierClass = {
3914
- default: $withXIcon ? tws`tag--withIcon ` : tws` `,
3915
- small: $withXIcon ? tws`tag--small tag--withIcon` : tws`tag--small`
3905
+ default: $withXIcon ? tws`tu-tag--withIcon ` : tws` `,
3906
+ small: $withXIcon ? tws`tu-tag--small tu-tag--withIcon` : tws`tu-tag--small`
3916
3907
  };
3917
3908
  return tagSizeModifierClass[$size];
3918
3909
  };
@@ -3921,26 +3912,26 @@ const getColorModifierClass = () => ({
3921
3912
  $color
3922
3913
  }) => {
3923
3914
  const colorClasses = {
3924
- primary: tws`tag--primary`,
3925
- accent: tws`tag--accent`,
3926
- success: tws`tag--success`,
3927
- danger: tws`tag--danger`,
3928
- warning: tws`tag--warning`,
3929
- info: tws`tag--info`,
3930
- neutral: tws`tag--neutral`,
3931
- good: tws`tag--good`,
3932
- low: tws`tag--low`,
3933
- critical: tws`tag--critical`,
3934
- working: tws`tag--working`,
3935
- idle: tws`tag--idle`,
3936
- stopped: tws`tag--stopped`,
3937
- unknown: tws`tag--unknown`
3915
+ primary: tws`tu-tag--primary`,
3916
+ accent: tws`tu-tag--accent`,
3917
+ success: tws`tu-tag--success`,
3918
+ danger: tws`tu-tag--danger`,
3919
+ warning: tws`tu-tag--warning`,
3920
+ info: tws`tu-tag--info`,
3921
+ neutral: tws`tu-tag--neutral`,
3922
+ good: tws`tu-tag--good`,
3923
+ low: tws`tu-tag--low`,
3924
+ critical: tws`tu-tag--critical`,
3925
+ working: tws`tu-tag--working`,
3926
+ idle: tws`tu-tag--idle`,
3927
+ stopped: tws`tu-tag--stopped`,
3928
+ unknown: tws`tu-tag--unknown`
3938
3929
  };
3939
3930
  return colorClasses[$color];
3940
3931
  };
3941
3932
 
3942
3933
  const StyledText = tw.text`
3943
- tag
3934
+ tu-tag
3944
3935
  ${getSizeModifierClass()}
3945
3936
  ${getColorModifierClass()}
3946
3937
  `;
@@ -4007,7 +3998,6 @@ const TextArea = React.forwardRef(({
4007
3998
  }))]
4008
3999
  }));
4009
4000
  });
4010
- TextArea.displayName = "TextArea";
4011
4001
  const TextAreaContainer = tw.div``;
4012
4002
  const StyledTextArea = tw.textarea`
4013
4003
  input
@@ -4069,7 +4059,6 @@ const TextInput = forwardRef((props, ref) => jsx(BaseInput, Object.assign({
4069
4059
  ref: ref,
4070
4060
  type: "text"
4071
4061
  }, props)));
4072
- TextInput.displayName = "TextInput";
4073
4062
 
4074
4063
  /**
4075
4064
  * The TextLengthIndicator component shows a `{length}/{maxLength}` label.
@@ -4147,7 +4136,6 @@ const TextField = React.forwardRef((_a, ref) => {
4147
4136
  }))
4148
4137
  }));
4149
4138
  });
4150
- TextField.displayName = "TextField";
4151
4139
 
4152
4140
  const Toggle = React.forwardRef(({
4153
4141
  toggled = false,
@@ -4194,7 +4182,6 @@ const Toggle = React.forwardRef(({
4194
4182
  }))]
4195
4183
  });
4196
4184
  });
4197
- Toggle.displayName = "Toggle";
4198
4185
  const Switch = tw.span`
4199
4186
  rounded-full
4200
4187
  bg-white
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.64",
3
+ "version": "0.0.66-alpha-5162616e1.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
- "license": "MIT",
5
+ "license": "UNLICENSED",
6
6
  "dependencies": {
7
- "@trackunit/css-core": "0.0.42",
8
- "@trackunit/tailwind-styled-components": "0.0.38",
7
+ "@trackunit/css-core": "0.0.43-alpha-5162616e1.0",
8
+ "@trackunit/tailwind-styled-components": "0.0.39-alpha-5162616e1.0",
9
9
  "react": "17.0.1",
10
- "@trackunit/ui-design-tokens": "0.0.37",
10
+ "@trackunit/ui-design-tokens": "0.0.38-alpha-5162616e1.0",
11
11
  "echarts-for-react": "^3.0.2",
12
12
  "uuid": "^8.3.2",
13
13
  "@react-spring/web": "^9.4.4",
14
14
  "react-use": "^17.3.2",
15
15
  "react-day-picker": "^8.0.3",
16
16
  "date-fns": "^2.28.0",
17
- "@trackunit/ui-icons": "0.0.39",
17
+ "@trackunit/ui-icons": "0.0.40-alpha-5162616e1.0",
18
18
  "react-useportal": "^1.0.16",
19
19
  "react-helmet": "^6.1.0",
20
20
  "@popperjs/core": "^2.11.4",