@sikka/hawa 0.19.34-next → 0.19.35-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.css CHANGED
@@ -4169,6 +4169,11 @@ body {
4169
4169
  top: auto;
4170
4170
  }
4171
4171
 
4172
+ .sm\:hawa-max-w-fit {
4173
+ max-width: -moz-fit-content;
4174
+ max-width: fit-content;
4175
+ }
4176
+
4172
4177
  .sm\:hawa-max-w-sm {
4173
4178
  max-width: 24rem;
4174
4179
  }
package/dist/index.d.mts CHANGED
@@ -353,13 +353,14 @@ type RadioTypes = {
353
353
  orientation?: OrientationType;
354
354
  design?: "default" | "tabs" | "cards" | "bordered";
355
355
  options: RadioOptionsTypes[];
356
- width?: "default" | "full";
356
+ width?: "default" | "full" | "none";
357
357
  onChangeTab?: any;
358
358
  defaultValue?: any;
359
359
  direction?: DirectionType;
360
360
  helperText?: string;
361
361
  labelProps?: LabelProps;
362
362
  label?: string;
363
+ tabsContainerClassName?: string;
363
364
  };
364
365
  declare const Radio: FC<RadioTypes>;
365
366
 
package/dist/index.d.ts CHANGED
@@ -353,13 +353,14 @@ type RadioTypes = {
353
353
  orientation?: OrientationType;
354
354
  design?: "default" | "tabs" | "cards" | "bordered";
355
355
  options: RadioOptionsTypes[];
356
- width?: "default" | "full";
356
+ width?: "default" | "full" | "none";
357
357
  onChangeTab?: any;
358
358
  defaultValue?: any;
359
359
  direction?: DirectionType;
360
360
  helperText?: string;
361
361
  labelProps?: LabelProps;
362
362
  label?: string;
363
+ tabsContainerClassName?: string;
363
364
  };
364
365
  declare const Radio: FC<RadioTypes>;
365
366
 
package/dist/index.js CHANGED
@@ -3610,6 +3610,7 @@ var Radio = ({
3610
3610
  width = "default",
3611
3611
  orientation = "horizontal",
3612
3612
  labelProps,
3613
+ tabsContainerClassName,
3613
3614
  ...props
3614
3615
  }) => {
3615
3616
  var _a, _b, _c;
@@ -3621,6 +3622,7 @@ var Radio = ({
3621
3622
  vertical: "hawa-flex hawa-flex-col"
3622
3623
  };
3623
3624
  let widthStyle = {
3625
+ none: "",
3624
3626
  default: "hawa-max-w-fit",
3625
3627
  full: "hawa-w-full"
3626
3628
  };
@@ -3645,8 +3647,9 @@ var Radio = ({
3645
3647
  className: cn(
3646
3648
  props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3647
3649
  "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-text-sm hawa-font-medium",
3650
+ orientationStyle[orientation],
3648
3651
  widthStyle[width],
3649
- orientationStyle[orientation]
3652
+ tabsContainerClassName
3650
3653
  )
3651
3654
  },
3652
3655
  (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react14.default.createElement(
@@ -11124,9 +11127,11 @@ var ComparingPlans = (props) => {
11124
11127
  )
11125
11128
  )
11126
11129
  );
11127
- return /* @__PURE__ */ import_react70.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full " }, /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react70.default.createElement(
11130
+ return /* @__PURE__ */ import_react70.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-flex-col hawa-gap-2 sm:hawa-flex-row hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react70.default.createElement(
11128
11131
  Radio,
11129
11132
  {
11133
+ tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
11134
+ width: "none",
11130
11135
  design: "tabs",
11131
11136
  defaultValue: props.currentCycle.value,
11132
11137
  options: props.billingCycles,
@@ -11139,6 +11144,8 @@ var ComparingPlans = (props) => {
11139
11144
  ), /* @__PURE__ */ import_react70.default.createElement(
11140
11145
  Radio,
11141
11146
  {
11147
+ tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
11148
+ width: "none",
11142
11149
  design: "tabs",
11143
11150
  defaultValue: props.currentCurrency.value,
11144
11151
  options: props.currencies,
@@ -11152,7 +11159,7 @@ var ComparingPlans = (props) => {
11152
11159
  "div",
11153
11160
  {
11154
11161
  className: cn(
11155
- "hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
11162
+ "hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
11156
11163
  "hawa-bg-primary-foreground"
11157
11164
  ),
11158
11165
  style: {
package/dist/index.mjs CHANGED
@@ -3377,6 +3377,7 @@ var Radio = ({
3377
3377
  width = "default",
3378
3378
  orientation = "horizontal",
3379
3379
  labelProps,
3380
+ tabsContainerClassName,
3380
3381
  ...props
3381
3382
  }) => {
3382
3383
  var _a, _b, _c;
@@ -3388,6 +3389,7 @@ var Radio = ({
3388
3389
  vertical: "hawa-flex hawa-flex-col"
3389
3390
  };
3390
3391
  let widthStyle = {
3392
+ none: "",
3391
3393
  default: "hawa-max-w-fit",
3392
3394
  full: "hawa-w-full"
3393
3395
  };
@@ -3412,8 +3414,9 @@ var Radio = ({
3412
3414
  className: cn(
3413
3415
  props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3414
3416
  "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-text-sm hawa-font-medium",
3417
+ orientationStyle[orientation],
3415
3418
  widthStyle[width],
3416
- orientationStyle[orientation]
3419
+ tabsContainerClassName
3417
3420
  )
3418
3421
  },
3419
3422
  (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React20.createElement(
@@ -10908,9 +10911,11 @@ var ComparingPlans = (props) => {
10908
10911
  )
10909
10912
  )
10910
10913
  );
10911
- return /* @__PURE__ */ React96.createElement("div", { id: "detailed-pricing", className: "hawa-w-full " }, /* @__PURE__ */ React96.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React96.createElement(
10914
+ return /* @__PURE__ */ React96.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React96.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-flex-col hawa-gap-2 sm:hawa-flex-row hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React96.createElement(
10912
10915
  Radio,
10913
10916
  {
10917
+ tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
10918
+ width: "none",
10914
10919
  design: "tabs",
10915
10920
  defaultValue: props.currentCycle.value,
10916
10921
  options: props.billingCycles,
@@ -10923,6 +10928,8 @@ var ComparingPlans = (props) => {
10923
10928
  ), /* @__PURE__ */ React96.createElement(
10924
10929
  Radio,
10925
10930
  {
10931
+ tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
10932
+ width: "none",
10926
10933
  design: "tabs",
10927
10934
  defaultValue: props.currentCurrency.value,
10928
10935
  options: props.currencies,
@@ -10936,7 +10943,7 @@ var ComparingPlans = (props) => {
10936
10943
  "div",
10937
10944
  {
10938
10945
  className: cn(
10939
- "hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
10946
+ "hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
10940
10947
  "hawa-bg-primary-foreground"
10941
10948
  ),
10942
10949
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.34-next",
3
+ "version": "0.19.35-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",