@sikka/hawa 0.7.15-next → 0.7.16-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.
package/dist/index.d.mts CHANGED
@@ -220,8 +220,9 @@ declare const Radio: FC<RadioTypes>;
220
220
  interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
221
221
  className?: string;
222
222
  animation?: "none" | "pulse" | "shimmer";
223
+ content?: any;
223
224
  }
224
- declare function Skeleton({ className, animation, ...props }: SkeletonProps): React__default.JSX.Element;
225
+ declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
225
226
 
226
227
  type TChipTypes = {
227
228
  /** The text inside the chip */
@@ -1124,6 +1125,10 @@ declare const FeedbackEmoji: FC<ComponentTypes>;
1124
1125
 
1125
1126
  type FeedbackFormType = {
1126
1127
  onSubmit: (e: any) => void;
1128
+ requestTypes?: {
1129
+ label: string;
1130
+ value: any;
1131
+ }[];
1127
1132
  texts: {
1128
1133
  requestType?: string;
1129
1134
  requestTypeRequired?: string;
package/dist/index.d.ts CHANGED
@@ -220,8 +220,9 @@ declare const Radio: FC<RadioTypes>;
220
220
  interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
221
221
  className?: string;
222
222
  animation?: "none" | "pulse" | "shimmer";
223
+ content?: any;
223
224
  }
224
- declare function Skeleton({ className, animation, ...props }: SkeletonProps): React__default.JSX.Element;
225
+ declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
225
226
 
226
227
  type TChipTypes = {
227
228
  /** The text inside the chip */
@@ -1124,6 +1125,10 @@ declare const FeedbackEmoji: FC<ComponentTypes>;
1124
1125
 
1125
1126
  type FeedbackFormType = {
1126
1127
  onSubmit: (e: any) => void;
1128
+ requestTypes?: {
1129
+ label: string;
1130
+ value: any;
1131
+ }[];
1127
1132
  texts: {
1128
1133
  requestType?: string;
1129
1134
  requestTypeRequired?: string;
package/dist/index.js CHANGED
@@ -1854,8 +1854,9 @@ var Radio = function(_param) {
1854
1854
  // components/elements/Skeleton.tsx
1855
1855
  var import_react11 = __toESM(require("react"));
1856
1856
  function Skeleton(_param) {
1857
- var className = _param.className, _param_animation = _param.animation, animation = _param_animation === void 0 ? "pulse" : _param_animation, props = _object_without_properties(_param, [
1857
+ var className = _param.className, content = _param.content, _param_animation = _param.animation, animation = _param_animation === void 0 ? "pulse" : _param_animation, props = _object_without_properties(_param, [
1858
1858
  "className",
1859
+ "content",
1859
1860
  "animation"
1860
1861
  ]);
1861
1862
  var animationStyles = {
@@ -1867,8 +1868,9 @@ function Skeleton(_param) {
1867
1868
  className: cn(animationStyles[animation], // animation === "pulse"
1868
1869
  // ? "hawa-animate-pulse hawa-rounded hawa-bg-muted"
1869
1870
  // : "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10",
1870
- className)
1871
- }, props));
1871
+ // "hawa-justify-center hawa-items-center hawa-text-center",
1872
+ content && "hawa-flex hawa-flex-col hawa-justify-center hawa-items-center", className)
1873
+ }, props), content && content);
1872
1874
  }
1873
1875
  {}// components/elements/Chip.tsx
1874
1876
  var import_react12 = __toESM(require("react"));
@@ -7872,24 +7874,7 @@ var FeedbackForm = function(props) {
7872
7874
  onChange: function(option) {
7873
7875
  return field.onChange(option.value);
7874
7876
  },
7875
- options: [
7876
- {
7877
- label: "Bug",
7878
- value: "bug"
7879
- },
7880
- {
7881
- label: "Feature",
7882
- value: "feature"
7883
- },
7884
- {
7885
- label: "Complain",
7886
- value: "complain"
7887
- },
7888
- {
7889
- label: "Support",
7890
- value: "support"
7891
- }
7892
- ],
7877
+ options: props.requestTypes,
7893
7878
  helperText: formState.errors.requestType && ((_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : _formState_errors_requestType.message)
7894
7879
  }));
7895
7880
  }
package/dist/index.mjs CHANGED
@@ -1282,7 +1282,12 @@ var Radio = ({
1282
1282
 
1283
1283
  // components/elements/Skeleton.tsx
1284
1284
  import React17 from "react";
1285
- function Skeleton({ className, animation = "pulse", ...props }) {
1285
+ function Skeleton({
1286
+ className,
1287
+ content,
1288
+ animation = "pulse",
1289
+ ...props
1290
+ }) {
1286
1291
  const animationStyles = {
1287
1292
  none: "hawa-rounded hawa-bg-muted",
1288
1293
  pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
@@ -1296,10 +1301,13 @@ function Skeleton({ className, animation = "pulse", ...props }) {
1296
1301
  // animation === "pulse"
1297
1302
  // ? "hawa-animate-pulse hawa-rounded hawa-bg-muted"
1298
1303
  // : "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10",
1304
+ // "hawa-justify-center hawa-items-center hawa-text-center",
1305
+ content && "hawa-flex hawa-flex-col hawa-justify-center hawa-items-center",
1299
1306
  className
1300
1307
  ),
1301
1308
  ...props
1302
- }
1309
+ },
1310
+ content && content
1303
1311
  );
1304
1312
  }
1305
1313
  {
@@ -7722,24 +7730,7 @@ var FeedbackForm = (props) => {
7722
7730
  {
7723
7731
  ...field,
7724
7732
  onChange: (option) => field.onChange(option.value),
7725
- options: [
7726
- {
7727
- label: "Bug",
7728
- value: "bug"
7729
- },
7730
- {
7731
- label: "Feature",
7732
- value: "feature"
7733
- },
7734
- {
7735
- label: "Complain",
7736
- value: "complain"
7737
- },
7738
- {
7739
- label: "Support",
7740
- value: "support"
7741
- }
7742
- ],
7733
+ options: props.requestTypes,
7743
7734
  helperText: formState.errors.requestType && formState.errors.requestType?.message
7744
7735
  }
7745
7736
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.7.15-next",
3
+ "version": "0.7.16-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {