@sikka/hawa 0.30.18-next → 0.30.20-next

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.
@@ -770,20 +770,13 @@ type ScrollIndicatorProps = {
770
770
  };
771
771
  declare const ScrollIndicator: FC<ScrollIndicatorProps>;
772
772
 
773
- type CodeBlockTypes = {
773
+ type CodeBlockTypesBase = {
774
774
  /** Specifies the programming language for syntax highlighting.*/
775
775
  language?: HighlightProps["language"];
776
776
  /** Defines the width of the code block.*/
777
777
  width?: "full" | "md" | "sm";
778
- /** Array of tabs each containing a title and code content.*/
779
- tabs?: {
780
- title: string;
781
- code: string;
782
- }[];
783
778
  /** Name of the file being displayed. */
784
779
  fileName?: string;
785
- /** Code content to be displayed within the code block.*/
786
- code: string;
787
780
  /** line numbers for code block */
788
781
  lineNumbers?: boolean;
789
782
  /** Wrap text in code block */
@@ -798,6 +791,34 @@ type CodeBlockTypes = {
798
791
  codeBlockContainer?: string;
799
792
  };
800
793
  };
794
+ /**
795
+ * Type for when tabs are provided. In this case, the code property is optional.
796
+ * Do not provide the "code" prop if "tabs" exists.
797
+ */
798
+ type CodeBlockTypesWithTabs = CodeBlockTypesBase & {
799
+ /** Array of tabs each containing a title and code content.*/
800
+ tabs: {
801
+ title: string;
802
+ code: string;
803
+ }[];
804
+ /** Code content to be displayed within the code block.*/
805
+ code?: string;
806
+ };
807
+ /**
808
+ * Type for when tabs are not provided. In this case, the code property is required.
809
+ * You must provide the "code" prop if "tabs" does not exist.
810
+ */
811
+ type CodeBlockTypesWithoutTabs = CodeBlockTypesBase & {
812
+ /** Array of tabs each containing a title and code content.*/
813
+ tabs?: never;
814
+ /** Code content to be displayed within the code block.*/
815
+ code: string;
816
+ };
817
+ /**
818
+ * Either provide "tabs" prop (in which case "code" is optional),
819
+ * or do not provide "tabs" (in which case "code" is required).
820
+ */
821
+ type CodeBlockTypes = CodeBlockTypesWithTabs | CodeBlockTypesWithoutTabs;
801
822
  declare const CodeBlock: FC<CodeBlockTypes>;
802
823
 
803
824
  type CarouselProps = {
@@ -770,20 +770,13 @@ type ScrollIndicatorProps = {
770
770
  };
771
771
  declare const ScrollIndicator: FC<ScrollIndicatorProps>;
772
772
 
773
- type CodeBlockTypes = {
773
+ type CodeBlockTypesBase = {
774
774
  /** Specifies the programming language for syntax highlighting.*/
775
775
  language?: HighlightProps["language"];
776
776
  /** Defines the width of the code block.*/
777
777
  width?: "full" | "md" | "sm";
778
- /** Array of tabs each containing a title and code content.*/
779
- tabs?: {
780
- title: string;
781
- code: string;
782
- }[];
783
778
  /** Name of the file being displayed. */
784
779
  fileName?: string;
785
- /** Code content to be displayed within the code block.*/
786
- code: string;
787
780
  /** line numbers for code block */
788
781
  lineNumbers?: boolean;
789
782
  /** Wrap text in code block */
@@ -798,6 +791,34 @@ type CodeBlockTypes = {
798
791
  codeBlockContainer?: string;
799
792
  };
800
793
  };
794
+ /**
795
+ * Type for when tabs are provided. In this case, the code property is optional.
796
+ * Do not provide the "code" prop if "tabs" exists.
797
+ */
798
+ type CodeBlockTypesWithTabs = CodeBlockTypesBase & {
799
+ /** Array of tabs each containing a title and code content.*/
800
+ tabs: {
801
+ title: string;
802
+ code: string;
803
+ }[];
804
+ /** Code content to be displayed within the code block.*/
805
+ code?: string;
806
+ };
807
+ /**
808
+ * Type for when tabs are not provided. In this case, the code property is required.
809
+ * You must provide the "code" prop if "tabs" does not exist.
810
+ */
811
+ type CodeBlockTypesWithoutTabs = CodeBlockTypesBase & {
812
+ /** Array of tabs each containing a title and code content.*/
813
+ tabs?: never;
814
+ /** Code content to be displayed within the code block.*/
815
+ code: string;
816
+ };
817
+ /**
818
+ * Either provide "tabs" prop (in which case "code" is optional),
819
+ * or do not provide "tabs" (in which case "code" is required).
820
+ */
821
+ type CodeBlockTypes = CodeBlockTypesWithTabs | CodeBlockTypesWithoutTabs;
801
822
  declare const CodeBlock: FC<CodeBlockTypes>;
802
823
 
803
824
  type CarouselProps = {
@@ -1847,7 +1847,7 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
1847
1847
  },
1848
1848
  ref,
1849
1849
  className: cn(
1850
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
1850
+ "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
1851
1851
  className
1852
1852
  ),
1853
1853
  ...props
@@ -395,7 +395,7 @@ var DialogContent = React6.forwardRef(({ className, children, persist, hideClose
395
395
  },
396
396
  ref,
397
397
  className: cn(
398
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
398
+ "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
399
399
  className
400
400
  ),
401
401
  ...props
package/dist/index.d.mts CHANGED
@@ -971,20 +971,13 @@ type ScrollIndicatorProps = {
971
971
  };
972
972
  declare const ScrollIndicator: FC<ScrollIndicatorProps>;
973
973
 
974
- type CodeBlockTypes = {
974
+ type CodeBlockTypesBase = {
975
975
  /** Specifies the programming language for syntax highlighting.*/
976
976
  language?: HighlightProps["language"];
977
977
  /** Defines the width of the code block.*/
978
978
  width?: "full" | "md" | "sm";
979
- /** Array of tabs each containing a title and code content.*/
980
- tabs?: {
981
- title: string;
982
- code: string;
983
- }[];
984
979
  /** Name of the file being displayed. */
985
980
  fileName?: string;
986
- /** Code content to be displayed within the code block.*/
987
- code: string;
988
981
  /** line numbers for code block */
989
982
  lineNumbers?: boolean;
990
983
  /** Wrap text in code block */
@@ -999,6 +992,34 @@ type CodeBlockTypes = {
999
992
  codeBlockContainer?: string;
1000
993
  };
1001
994
  };
995
+ /**
996
+ * Type for when tabs are provided. In this case, the code property is optional.
997
+ * Do not provide the "code" prop if "tabs" exists.
998
+ */
999
+ type CodeBlockTypesWithTabs = CodeBlockTypesBase & {
1000
+ /** Array of tabs each containing a title and code content.*/
1001
+ tabs: {
1002
+ title: string;
1003
+ code: string;
1004
+ }[];
1005
+ /** Code content to be displayed within the code block.*/
1006
+ code?: string;
1007
+ };
1008
+ /**
1009
+ * Type for when tabs are not provided. In this case, the code property is required.
1010
+ * You must provide the "code" prop if "tabs" does not exist.
1011
+ */
1012
+ type CodeBlockTypesWithoutTabs = CodeBlockTypesBase & {
1013
+ /** Array of tabs each containing a title and code content.*/
1014
+ tabs?: never;
1015
+ /** Code content to be displayed within the code block.*/
1016
+ code: string;
1017
+ };
1018
+ /**
1019
+ * Either provide "tabs" prop (in which case "code" is optional),
1020
+ * or do not provide "tabs" (in which case "code" is required).
1021
+ */
1022
+ type CodeBlockTypes = CodeBlockTypesWithTabs | CodeBlockTypesWithoutTabs;
1002
1023
  declare const CodeBlock: FC<CodeBlockTypes>;
1003
1024
 
1004
1025
  type CarouselProps = {
package/dist/index.d.ts CHANGED
@@ -971,20 +971,13 @@ type ScrollIndicatorProps = {
971
971
  };
972
972
  declare const ScrollIndicator: FC<ScrollIndicatorProps>;
973
973
 
974
- type CodeBlockTypes = {
974
+ type CodeBlockTypesBase = {
975
975
  /** Specifies the programming language for syntax highlighting.*/
976
976
  language?: HighlightProps["language"];
977
977
  /** Defines the width of the code block.*/
978
978
  width?: "full" | "md" | "sm";
979
- /** Array of tabs each containing a title and code content.*/
980
- tabs?: {
981
- title: string;
982
- code: string;
983
- }[];
984
979
  /** Name of the file being displayed. */
985
980
  fileName?: string;
986
- /** Code content to be displayed within the code block.*/
987
- code: string;
988
981
  /** line numbers for code block */
989
982
  lineNumbers?: boolean;
990
983
  /** Wrap text in code block */
@@ -999,6 +992,34 @@ type CodeBlockTypes = {
999
992
  codeBlockContainer?: string;
1000
993
  };
1001
994
  };
995
+ /**
996
+ * Type for when tabs are provided. In this case, the code property is optional.
997
+ * Do not provide the "code" prop if "tabs" exists.
998
+ */
999
+ type CodeBlockTypesWithTabs = CodeBlockTypesBase & {
1000
+ /** Array of tabs each containing a title and code content.*/
1001
+ tabs: {
1002
+ title: string;
1003
+ code: string;
1004
+ }[];
1005
+ /** Code content to be displayed within the code block.*/
1006
+ code?: string;
1007
+ };
1008
+ /**
1009
+ * Type for when tabs are not provided. In this case, the code property is required.
1010
+ * You must provide the "code" prop if "tabs" does not exist.
1011
+ */
1012
+ type CodeBlockTypesWithoutTabs = CodeBlockTypesBase & {
1013
+ /** Array of tabs each containing a title and code content.*/
1014
+ tabs?: never;
1015
+ /** Code content to be displayed within the code block.*/
1016
+ code: string;
1017
+ };
1018
+ /**
1019
+ * Either provide "tabs" prop (in which case "code" is optional),
1020
+ * or do not provide "tabs" (in which case "code" is required).
1021
+ */
1022
+ type CodeBlockTypes = CodeBlockTypesWithTabs | CodeBlockTypesWithoutTabs;
1002
1023
  declare const CodeBlock: FC<CodeBlockTypes>;
1003
1024
 
1004
1025
  type CarouselProps = {
package/dist/index.js CHANGED
@@ -1914,7 +1914,7 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
1914
1914
  },
1915
1915
  ref,
1916
1916
  className: cn(
1917
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
1917
+ "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
1918
1918
  className
1919
1919
  ),
1920
1920
  ...props
package/dist/index.mjs CHANGED
@@ -1679,7 +1679,7 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
1679
1679
  },
1680
1680
  ref,
1681
1681
  className: cn(
1682
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
1682
+ "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
1683
1683
  className
1684
1684
  ),
1685
1685
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.30.18-next",
3
+ "version": "0.30.20-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",
@@ -65,23 +65,23 @@
65
65
  "@tanstack/table-core": "^8.13.2",
66
66
  "class-variance-authority": "^0.7.0",
67
67
  "clsx": "^2.1.0",
68
- "cmdk": "^0.2.1",
68
+ "cmdk": "^1.0.0",
69
69
  "embla-carousel-auto-height": "^8.0.0",
70
70
  "embla-carousel-react": "^8.0.0",
71
71
  "eslint": "^8.57.0",
72
- "eslint-config-next": "^14.1.2",
73
- "libphonenumber-js": "^1.10.57",
72
+ "eslint-config-next": "^14.1.3",
73
+ "libphonenumber-js": "^1.10.58",
74
74
  "prism-react-renderer": "^2.3.1",
75
75
  "prismjs": "^1.29.0",
76
76
  "react": "18.2.0",
77
77
  "react-dom": "18.2.0",
78
78
  "react-dropzone": "^14.2.3",
79
79
  "react-headless-pagination": "^1.1.5",
80
- "react-hook-form": "^7.51.0",
80
+ "react-hook-form": "^7.51.1",
81
81
  "react-select": "^5.8.0",
82
- "signature_pad": "^4.1.7",
83
- "tailwind-merge": "^2.2.1",
84
- "tailwind-variants": "^0.2.0",
82
+ "signature_pad": "^4.2.0",
83
+ "tailwind-merge": "^2.2.2",
84
+ "tailwind-variants": "^0.2.1",
85
85
  "trim-canvas": "^0.1.2",
86
86
  "zod": "^3.22.4"
87
87
  },
@@ -91,16 +91,16 @@
91
91
  "@testing-library/jest-dom": "^6.4.2",
92
92
  "@testing-library/react": "^14.2.1",
93
93
  "@types/jest": "^29.5.12",
94
- "@types/react": "^18.2.63",
95
- "@types/react-dom": "^18.2.20",
94
+ "@types/react": "^18.2.67",
95
+ "@types/react-dom": "^18.2.22",
96
96
  "autoprefixer": "^10.4.18",
97
97
  "boxen": "^7.1.1",
98
98
  "chalk": "^5.3.0",
99
99
  "embla-carousel": "8.0.0",
100
100
  "jest": "^29.7.0",
101
101
  "jest-environment-jsdom": "^29.7.0",
102
- "lucide-react": "^0.344.0",
103
- "postcss": "^8.4.35",
102
+ "lucide-react": "^0.359.0",
103
+ "postcss": "^8.4.36",
104
104
  "postcss-cli": "^11.0.0",
105
105
  "postcss-import": "^16.0.1",
106
106
  "tailwindcss": "^3.4.1",