@drivenets/design-system 0.7.0 → 0.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drivenets/design-system",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.cts",
@@ -50,7 +50,6 @@
50
50
  "@radix-ui/react-slot": "^1.2.4",
51
51
  "@radix-ui/react-tooltip": "^1.2.8",
52
52
  "@radix-ui/react-visually-hidden": "^1.2.4",
53
- "@tanstack/react-router": "^1.163.3",
54
53
  "@tanstack/react-table": "^8.21.3",
55
54
  "@tanstack/react-virtual": "^3.13.19",
56
55
  "@zag-js/react": "^1.35.2",
@@ -59,6 +58,7 @@
59
58
  },
60
59
  "peerDependencies": {
61
60
  "@internationalized/date": "^3.0.0",
61
+ "@tanstack/react-router": "^1.0.0",
62
62
  "react": "^19",
63
63
  "react-dom": "^19"
64
64
  },
@@ -27,6 +27,7 @@ const DsDateInput = ({
27
27
  style,
28
28
  className,
29
29
  disablePortal = false,
30
+ hideClearButton = false,
30
31
  onValueChange,
31
32
  onOpenChange,
32
33
  value: _value,
@@ -100,7 +101,8 @@ const DsDateInput = ({
100
101
  onValueChange?.(dateValuesToStrings(parsedValue, range) as never);
101
102
  };
102
103
 
103
- const showClearButton = !disabled && !readOnly && !!(value.length > 0 ? value : defaultValue).length;
104
+ const showClearButton =
105
+ !hideClearButton && !disabled && !readOnly && !!(value.length > 0 ? value : defaultValue).length;
104
106
  const Wrapper = disablePortal ? Fragment : Portal;
105
107
 
106
108
  return (
@@ -96,6 +96,12 @@ type DsDateInputBaseProps = Pick<
96
96
  * @default false
97
97
  */
98
98
  disablePortal?: boolean;
99
+
100
+ /**
101
+ * Whether to hide the clear button
102
+ * @default false
103
+ */
104
+ hideClearButton?: boolean;
99
105
  };
100
106
 
101
107
  /**
@@ -24,6 +24,7 @@ export const FileUpload: React.FC<FileUploadProps> = ({
24
24
  dropzoneText = 'Drag and drop files here or ',
25
25
  triggerText = 'Select file...',
26
26
  hideProgress = false,
27
+ hideInfoText = false,
27
28
  disableDrop = false,
28
29
  onFileAccept,
29
30
  onFileReject,
@@ -68,7 +69,7 @@ export const FileUpload: React.FC<FileUploadProps> = ({
68
69
  </ArkUiFileUpload.Trigger>
69
70
  </ArkUiFileUpload.Dropzone>
70
71
 
71
- {infoText && !disabled && !errorText && (
72
+ {infoText && !hideInfoText && !disabled && !errorText && (
72
73
  <DsTypography className={styles.infoText} variant="body-xs-reg">
73
74
  {infoText}
74
75
  </DsTypography>
@@ -21,6 +21,11 @@ export interface FileUploadProps {
21
21
  * @default false
22
22
  */
23
23
  hideProgress?: boolean;
24
+ /**
25
+ * Whether to hide the info text (file types, size limits, etc.)
26
+ * @default false
27
+ */
28
+ hideInfoText?: boolean;
24
29
  /**
25
30
  * Whether to disable drag and drop functionality
26
31
  * @default false