@6thbridge/hexa 0.0.39 → 0.0.41

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.
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
2
2
 
3
- > @6thbridge/hexa@0.0.39 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
3
+ > @6thbridge/hexa@0.0.41 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
4
4
  > eslint . --max-warnings 0
5
5
 
package/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
9
9
  import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
10
10
  import * as PopoverPrimitive from '@radix-ui/react-popover';
11
11
  import { RowData, Row, Table as Table$1 } from '@tanstack/react-table';
12
- import * as dayjs from 'dayjs';
12
+ import dayjs from 'dayjs';
13
13
  import { ClassValue } from 'clsx';
14
14
 
15
15
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
@@ -212,9 +212,11 @@ declare const Popover: {
212
212
 
213
213
  interface CopyableLabelProps {
214
214
  text: string;
215
+ textToCopy?: string;
215
216
  onCopy?: () => void;
216
217
  iconsPosition?: "left" | "right";
217
218
  clampText?: boolean;
219
+ textClassName?: string;
218
220
  }
219
221
  declare const CopyableLabel: React.FC<CopyableLabelProps>;
220
222
 
@@ -274,7 +276,7 @@ declare const Status: ({ status, variant, className, }: {
274
276
  }) => react_jsx_runtime.JSX.Element;
275
277
 
276
278
  type Props = {
277
- environment: string;
279
+ environment: "staging" | "sandbox" | "production";
278
280
  branch: string;
279
281
  version: string;
280
282
  deployTime: string;
@@ -287,19 +289,19 @@ type Props = {
287
289
  declare const DevBanner: (props: Props) => react_jsx_runtime.JSX.Element | null;
288
290
 
289
291
  interface BannerTypes {
290
- type?: "normal" | "info" | "warning" | "success" | "critical";
292
+ type?: "gray" | "info" | "warning" | "success" | "danger";
291
293
  }
292
294
  interface BannerProps extends BannerTypes {
293
295
  title?: React.ReactNode;
294
296
  description?: React.ReactNode;
295
297
  showIcon?: boolean;
296
298
  showCloseButton?: boolean;
297
- bottomBlock?: React.ReactNode;
298
- sideBlock?: React.ReactNode;
299
+ bottomNode?: React.ReactNode;
300
+ sideNode?: React.ReactNode;
299
301
  open: boolean;
300
302
  onClose?: () => void;
301
303
  }
302
- declare const Banner: ({ type, title, description, open, showCloseButton, bottomBlock, sideBlock, onClose, showIcon, }: BannerProps) => react_jsx_runtime.JSX.Element | null;
304
+ declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) => react_jsx_runtime.JSX.Element | null;
303
305
 
304
306
  declare const CurrencySymbolMap: Record<string, string>;
305
307
  interface FormatCurrencyOptions {
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
9
9
  import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
10
10
  import * as PopoverPrimitive from '@radix-ui/react-popover';
11
11
  import { RowData, Row, Table as Table$1 } from '@tanstack/react-table';
12
- import * as dayjs from 'dayjs';
12
+ import dayjs from 'dayjs';
13
13
  import { ClassValue } from 'clsx';
14
14
 
15
15
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
@@ -212,9 +212,11 @@ declare const Popover: {
212
212
 
213
213
  interface CopyableLabelProps {
214
214
  text: string;
215
+ textToCopy?: string;
215
216
  onCopy?: () => void;
216
217
  iconsPosition?: "left" | "right";
217
218
  clampText?: boolean;
219
+ textClassName?: string;
218
220
  }
219
221
  declare const CopyableLabel: React.FC<CopyableLabelProps>;
220
222
 
@@ -274,7 +276,7 @@ declare const Status: ({ status, variant, className, }: {
274
276
  }) => react_jsx_runtime.JSX.Element;
275
277
 
276
278
  type Props = {
277
- environment: string;
279
+ environment: "staging" | "sandbox" | "production";
278
280
  branch: string;
279
281
  version: string;
280
282
  deployTime: string;
@@ -287,19 +289,19 @@ type Props = {
287
289
  declare const DevBanner: (props: Props) => react_jsx_runtime.JSX.Element | null;
288
290
 
289
291
  interface BannerTypes {
290
- type?: "normal" | "info" | "warning" | "success" | "critical";
292
+ type?: "gray" | "info" | "warning" | "success" | "danger";
291
293
  }
292
294
  interface BannerProps extends BannerTypes {
293
295
  title?: React.ReactNode;
294
296
  description?: React.ReactNode;
295
297
  showIcon?: boolean;
296
298
  showCloseButton?: boolean;
297
- bottomBlock?: React.ReactNode;
298
- sideBlock?: React.ReactNode;
299
+ bottomNode?: React.ReactNode;
300
+ sideNode?: React.ReactNode;
299
301
  open: boolean;
300
302
  onClose?: () => void;
301
303
  }
302
- declare const Banner: ({ type, title, description, open, showCloseButton, bottomBlock, sideBlock, onClose, showIcon, }: BannerProps) => react_jsx_runtime.JSX.Element | null;
304
+ declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) => react_jsx_runtime.JSX.Element | null;
303
305
 
304
306
  declare const CurrencySymbolMap: Record<string, string>;
305
307
  interface FormatCurrencyOptions {