bianic-ui 2.14.0-beta.6 → 2.14.0-beta.7

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/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # Bianic 2.0
2
-
3
- DLS designed by BIAENERGI
4
-
5
- ## Installation
6
-
7
- ### First Installation
8
-
9
- `npm i bianic-ui`
10
-
11
- ## Usage
12
-
13
- After Bianic-Ui succesfully installed, you can call the component using JSX tag declaration style ex: `<Alert />`. Futher documentation about component can be access [here](https://ristek.link/bianic-dev-docs)
14
-
15
- ## Support
16
-
17
- If you found any bug, please contact at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
18
-
19
- ## Contributing
20
-
21
- If you're interested in contributing to Bianic-Ui, please contact our team at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
22
-
23
- ## Change Log
24
-
25
- Coming soon
26
-
27
- ## Development Notes
28
-
29
- ### Code Convention
30
-
31
- - Always separate style with tsx
32
- - For style config always try to be object with one level
33
- - Separate config file and component file for more readable code
34
- - The variable name of style config must be describe what you styling not describe the parameters (or key)
35
- - Use .tsx only when defining component, just us .ts if no component defined on the file
36
- - Don't import simulation or any demo to index.ts
37
- - Update storybook for every change or new component
38
-
39
- ### Component attribute naming
40
-
41
- - Check on html documentation. Always try to use the exisiting html atribute name.
42
- - If there the attibute not listed on html documentation. You can make it on your own with rules :
43
- - Use "is" prefix for boolean
44
- - Use "on" prefix for event listener
45
-
46
- ### Another Notes
47
-
48
- - Please assign class `...-primary-black` when need black color. If not assigned system will use #000000 black.
49
- - Just discuss any concept you had. **Discuss first, Implement later**.
1
+ # Bianic 2.0
2
+
3
+ DLS designed by BIAENERGI
4
+
5
+ ## Installation
6
+
7
+ ### First Installation
8
+
9
+ `npm i bianic-ui`
10
+
11
+ ## Usage
12
+
13
+ After Bianic-Ui succesfully installed, you can call the component using JSX tag declaration style ex: `<Alert />`. Futher documentation about component can be access [here](https://ristek.link/bianic-dev-docs)
14
+
15
+ ## Support
16
+
17
+ If you found any bug, please contact at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
18
+
19
+ ## Contributing
20
+
21
+ If you're interested in contributing to Bianic-Ui, please contact our team at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
22
+
23
+ ## Change Log
24
+
25
+ Coming soon
26
+
27
+ ## Development Notes
28
+
29
+ ### Code Convention
30
+
31
+ - Always separate style with tsx
32
+ - For style config always try to be object with one level
33
+ - Separate config file and component file for more readable code
34
+ - The variable name of style config must be describe what you styling not describe the parameters (or key)
35
+ - Use .tsx only when defining component, just us .ts if no component defined on the file
36
+ - Don't import simulation or any demo to index.ts
37
+ - Update storybook for every change or new component
38
+
39
+ ### Component attribute naming
40
+
41
+ - Check on html documentation. Always try to use the exisiting html atribute name.
42
+ - If there the attibute not listed on html documentation. You can make it on your own with rules :
43
+ - Use "is" prefix for boolean
44
+ - Use "on" prefix for event listener
45
+
46
+ ### Another Notes
47
+
48
+ - Please assign class `...-primary-black` when need black color. If not assigned system will use #000000 black.
49
+ - Just discuss any concept you had. **Discuss first, Implement later**.
@@ -1,12 +1,12 @@
1
- <svg width="92" height="92" viewBox="0 0 92 92" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M32.8825 12.968C33.8187 12.0283 35.0905 11.5 36.417 11.5H66.6521C69.4074 11.5 71.641 13.7336 71.641 16.489V75.1388C71.641 77.8941 69.4074 80.1278 66.6521 80.1278H25.8327C23.0774 80.1278 20.8437 77.8875 20.8438 75.1321C20.8438 56.1849 20.8438 44.6779 20.8438 27.1159C20.8438 25.7961 21.3667 24.528 22.2982 23.593L32.8825 12.968Z" fill="#DADEEB"/>
3
- <path d="M32.8825 12.968C33.8187 12.0283 35.0905 11.5 36.417 11.5H66.6521C69.4074 11.5 71.641 13.7336 71.641 16.489V75.1388C71.641 77.8941 69.4074 80.1278 66.6521 80.1278H25.8327C23.0774 80.1278 20.8437 77.8875 20.8438 75.1321C20.8438 56.1849 20.8438 44.6779 20.8438 27.1159C20.8438 25.7961 21.3667 24.528 22.2982 23.593L32.8825 12.968Z" fill="white" fill-opacity="0.5"/>
4
- <path d="M34.3638 11.5V16.1283C34.3638 21.0391 30.3828 25.02 25.472 25.02H20.8438L34.3638 11.5Z" fill="#DADEEB"/>
5
- <rect x="28.1716" y="32.6677" width="18.7253" height="4.07072" rx="1.99559" fill="#DADEEB"/>
6
- <rect x="28.1716" y="39.9949" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
7
- <rect x="28.1716" y="47.3223" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
8
- <rect x="28.1716" y="54.6497" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
9
- <rect x="28.1716" y="61.9768" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
10
- <path d="M58.7737 63.8789C63.267 59.3856 70.5519 59.3856 75.0452 63.8789C79.5382 68.3722 79.5384 75.6572 75.0452 80.1504C70.552 84.6436 63.267 84.6434 58.7737 80.1504C54.2804 75.6571 54.2804 68.3722 58.7737 63.8789Z" stroke="#54A0F9" stroke-width="1.70457"/>
11
- <path d="M75.6475 80.1499L81.9753 86.4778" stroke="#54A0F9" stroke-width="1.70457"/>
12
- </svg>
1
+ <svg width="92" height="92" viewBox="0 0 92 92" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M32.8825 12.968C33.8187 12.0283 35.0905 11.5 36.417 11.5H66.6521C69.4074 11.5 71.641 13.7336 71.641 16.489V75.1388C71.641 77.8941 69.4074 80.1278 66.6521 80.1278H25.8327C23.0774 80.1278 20.8437 77.8875 20.8438 75.1321C20.8438 56.1849 20.8438 44.6779 20.8438 27.1159C20.8438 25.7961 21.3667 24.528 22.2982 23.593L32.8825 12.968Z" fill="#DADEEB"/>
3
+ <path d="M32.8825 12.968C33.8187 12.0283 35.0905 11.5 36.417 11.5H66.6521C69.4074 11.5 71.641 13.7336 71.641 16.489V75.1388C71.641 77.8941 69.4074 80.1278 66.6521 80.1278H25.8327C23.0774 80.1278 20.8437 77.8875 20.8438 75.1321C20.8438 56.1849 20.8438 44.6779 20.8438 27.1159C20.8438 25.7961 21.3667 24.528 22.2982 23.593L32.8825 12.968Z" fill="white" fill-opacity="0.5"/>
4
+ <path d="M34.3638 11.5V16.1283C34.3638 21.0391 30.3828 25.02 25.472 25.02H20.8438L34.3638 11.5Z" fill="#DADEEB"/>
5
+ <rect x="28.1716" y="32.6677" width="18.7253" height="4.07072" rx="1.99559" fill="#DADEEB"/>
6
+ <rect x="28.1716" y="39.9949" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
7
+ <rect x="28.1716" y="47.3223" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
8
+ <rect x="28.1716" y="54.6497" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
9
+ <rect x="28.1716" y="61.9768" width="36.6365" height="4.07072" rx="1.99559" fill="#DADEEB"/>
10
+ <path d="M58.7737 63.8789C63.267 59.3856 70.5519 59.3856 75.0452 63.8789C79.5382 68.3722 79.5384 75.6572 75.0452 80.1504C70.552 84.6436 63.267 84.6434 58.7737 80.1504C54.2804 75.6571 54.2804 68.3722 58.7737 63.8789Z" stroke="#54A0F9" stroke-width="1.70457"/>
11
+ <path d="M75.6475 80.1499L81.9753 86.4778" stroke="#54A0F9" stroke-width="1.70457"/>
12
+ </svg>
@@ -1,88 +1,88 @@
1
- Google Sans Code Variable Font
2
- ==============================
3
-
4
- This download contains Google Sans Code as both variable fonts and static fonts.
5
-
6
- Google Sans Code is a variable font with these axes:
7
- MONO
8
- wght
9
-
10
- This means all the styles are contained in these files:
11
- GoogleSansCode-VariableFont_MONO,wght.ttf
12
- GoogleSansCode-Italic-VariableFont_MONO,wght.ttf
13
-
14
- If your app fully supports variable fonts, you can now pick intermediate styles
15
- that aren’t available as static fonts. Not all apps support variable fonts, and
16
- in those cases you can use the static font files for Google Sans Code:
17
- static/GoogleSansCode_Proportional-Light.ttf
18
- static/GoogleSansCode_Proportional-Regular.ttf
19
- static/GoogleSansCode_Proportional-Medium.ttf
20
- static/GoogleSansCode_Proportional-SemiBold.ttf
21
- static/GoogleSansCode_Proportional-Bold.ttf
22
- static/GoogleSansCode_Proportional-ExtraBold.ttf
23
- static/GoogleSansCode-Light.ttf
24
- static/GoogleSansCode-Regular.ttf
25
- static/GoogleSansCode-Medium.ttf
26
- static/GoogleSansCode-SemiBold.ttf
27
- static/GoogleSansCode-Bold.ttf
28
- static/GoogleSansCode-ExtraBold.ttf
29
- static/GoogleSansCode_Proportional-LightItalic.ttf
30
- static/GoogleSansCode_Proportional-Italic.ttf
31
- static/GoogleSansCode_Proportional-MediumItalic.ttf
32
- static/GoogleSansCode_Proportional-SemiBoldItalic.ttf
33
- static/GoogleSansCode_Proportional-BoldItalic.ttf
34
- static/GoogleSansCode_Proportional-ExtraBoldItalic.ttf
35
- static/GoogleSansCode-LightItalic.ttf
36
- static/GoogleSansCode-Italic.ttf
37
- static/GoogleSansCode-MediumItalic.ttf
38
- static/GoogleSansCode-SemiBoldItalic.ttf
39
- static/GoogleSansCode-BoldItalic.ttf
40
- static/GoogleSansCode-ExtraBoldItalic.ttf
41
-
42
- Get started
43
- -----------
44
-
45
- 1. Install the font files you want to use
46
-
47
- 2. Use your app's font picker to view the font family and all the
48
- available styles
49
-
50
- Learn more about variable fonts
51
- -------------------------------
52
-
53
- https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
54
- https://variablefonts.typenetwork.com
55
- https://medium.com/variable-fonts
56
-
57
- In desktop apps
58
-
59
- https://theblog.adobe.com/can-variable-fonts-illustrator-cc
60
- https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
61
-
62
- Online
63
-
64
- https://developers.google.com/fonts/docs/getting_started
65
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
66
- https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
67
-
68
- Installing fonts
69
-
70
- MacOS: https://support.apple.com/en-us/HT201749
71
- Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
72
- Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
73
-
74
- Android Apps
75
-
76
- https://developers.google.com/fonts/docs/android
77
- https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
78
-
79
- License
80
- -------
81
- Please read the full license text (OFL.txt) to understand the permissions,
82
- restrictions and requirements for usage, redistribution, and modification.
83
-
84
- You can use them in your products & projects – print or digital,
85
- commercial or otherwise.
86
-
87
- This isn't legal advice, please consider consulting a lawyer and see the full
88
- license for all details.
1
+ Google Sans Code Variable Font
2
+ ==============================
3
+
4
+ This download contains Google Sans Code as both variable fonts and static fonts.
5
+
6
+ Google Sans Code is a variable font with these axes:
7
+ MONO
8
+ wght
9
+
10
+ This means all the styles are contained in these files:
11
+ GoogleSansCode-VariableFont_MONO,wght.ttf
12
+ GoogleSansCode-Italic-VariableFont_MONO,wght.ttf
13
+
14
+ If your app fully supports variable fonts, you can now pick intermediate styles
15
+ that aren’t available as static fonts. Not all apps support variable fonts, and
16
+ in those cases you can use the static font files for Google Sans Code:
17
+ static/GoogleSansCode_Proportional-Light.ttf
18
+ static/GoogleSansCode_Proportional-Regular.ttf
19
+ static/GoogleSansCode_Proportional-Medium.ttf
20
+ static/GoogleSansCode_Proportional-SemiBold.ttf
21
+ static/GoogleSansCode_Proportional-Bold.ttf
22
+ static/GoogleSansCode_Proportional-ExtraBold.ttf
23
+ static/GoogleSansCode-Light.ttf
24
+ static/GoogleSansCode-Regular.ttf
25
+ static/GoogleSansCode-Medium.ttf
26
+ static/GoogleSansCode-SemiBold.ttf
27
+ static/GoogleSansCode-Bold.ttf
28
+ static/GoogleSansCode-ExtraBold.ttf
29
+ static/GoogleSansCode_Proportional-LightItalic.ttf
30
+ static/GoogleSansCode_Proportional-Italic.ttf
31
+ static/GoogleSansCode_Proportional-MediumItalic.ttf
32
+ static/GoogleSansCode_Proportional-SemiBoldItalic.ttf
33
+ static/GoogleSansCode_Proportional-BoldItalic.ttf
34
+ static/GoogleSansCode_Proportional-ExtraBoldItalic.ttf
35
+ static/GoogleSansCode-LightItalic.ttf
36
+ static/GoogleSansCode-Italic.ttf
37
+ static/GoogleSansCode-MediumItalic.ttf
38
+ static/GoogleSansCode-SemiBoldItalic.ttf
39
+ static/GoogleSansCode-BoldItalic.ttf
40
+ static/GoogleSansCode-ExtraBoldItalic.ttf
41
+
42
+ Get started
43
+ -----------
44
+
45
+ 1. Install the font files you want to use
46
+
47
+ 2. Use your app's font picker to view the font family and all the
48
+ available styles
49
+
50
+ Learn more about variable fonts
51
+ -------------------------------
52
+
53
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
54
+ https://variablefonts.typenetwork.com
55
+ https://medium.com/variable-fonts
56
+
57
+ In desktop apps
58
+
59
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
60
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
61
+
62
+ Online
63
+
64
+ https://developers.google.com/fonts/docs/getting_started
65
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
66
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
67
+
68
+ Installing fonts
69
+
70
+ MacOS: https://support.apple.com/en-us/HT201749
71
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
72
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
73
+
74
+ Android Apps
75
+
76
+ https://developers.google.com/fonts/docs/android
77
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
78
+
79
+ License
80
+ -------
81
+ Please read the full license text (OFL.txt) to understand the permissions,
82
+ restrictions and requirements for usage, redistribution, and modification.
83
+
84
+ You can use them in your products & projects – print or digital,
85
+ commercial or otherwise.
86
+
87
+ This isn't legal advice, please consider consulting a lawyer and see the full
88
+ license for all details.
package/dist/cjs/index.js CHANGED
@@ -468,6 +468,14 @@ var sidePaddingConfig = {
468
468
  sm: 'px-[8px]',
469
469
  tn: 'px-[4px]',
470
470
  };
471
+ // Rounded buttons add a spacer (3px, tn 2px) plus the size gap on each side:
472
+ // side padding + spacer + gap
473
+ var roundedSidePaddingConfig = {
474
+ lg: 'px-[26px]',
475
+ md: 'px-[19px]',
476
+ sm: 'px-[16px]',
477
+ tn: 'px-[9px]',
478
+ };
471
479
  var minWidthConfig$1 = {
472
480
  lg: 'min-w-[112px]',
473
481
  md: 'min-w-[96px]',
@@ -559,7 +567,8 @@ var Button = React.forwardRef(function (_a, ref) {
559
567
  sizingRules = "".concat(sizeConfig$f[validatedSize]);
560
568
  }
561
569
  else {
562
- sizingRules = "".concat(sizeConfig$f[validatedSize], " ").concat(sidePaddingConfig[validatedSize]);
570
+ var sidePadding = radius === 'full-rounded' ? roundedSidePaddingConfig : sidePaddingConfig;
571
+ sizingRules = "".concat(sizeConfig$f[validatedSize], " ").concat(sidePadding[validatedSize]);
563
572
  }
564
573
  var hasDoubleIcon = iconRight && iconLeft;
565
574
  var isVariantLink = variant.includes('link')
@@ -2404,15 +2413,15 @@ TextInput.defaultProps = {
2404
2413
  var sizeConfig$c = {
2405
2414
  md: {
2406
2415
  checkSize: 'w-[22px] h-[22px]',
2407
- labelSize: 'text-size-base',
2416
+ labelSize: 'text-size-base font-normal',
2408
2417
  },
2409
2418
  sm: {
2410
2419
  checkSize: 'w-4 h-4',
2411
- labelSize: 'text-size-sm',
2420
+ labelSize: 'text-size-sm font-normal',
2412
2421
  },
2413
2422
  tn: {
2414
2423
  checkSize: 'w-3 h-3',
2415
- labelSize: 'text-size-sm',
2424
+ labelSize: 'text-size-sm font-normal',
2416
2425
  },
2417
2426
  };
2418
2427
 
@@ -2506,7 +2515,7 @@ var TextArea = React.forwardRef(TextAreaInner);
2506
2515
  var sizeConfig$a = {
2507
2516
  md: {
2508
2517
  checkClass: 'w-[22px] h-[22px]',
2509
- labelClass: 'text-size-base font-[350]',
2518
+ labelClass: 'text-size-base font-normal',
2510
2519
  },
2511
2520
  sm: {
2512
2521
  checkClass: 'w-4 h-4',
@@ -3358,21 +3367,21 @@ var sizeConfig$4 = {
3358
3367
  trackBorder: 'border-2',
3359
3368
  knobSize: 'size-[18px]',
3360
3369
  knobInset: 'mx-[4px]',
3361
- labelClass: 'text-size-base',
3370
+ labelClass: 'text-size-base font-normal',
3362
3371
  },
3363
3372
  sm: {
3364
3373
  containerSize: 'w-[32px] h-[20px]',
3365
3374
  trackBorder: 'border-2',
3366
3375
  knobSize: 'size-[12px]',
3367
3376
  knobInset: 'mx-[4px]',
3368
- labelClass: 'text-size-sm',
3377
+ labelClass: 'text-size-sm font-normal',
3369
3378
  },
3370
3379
  tn: {
3371
3380
  containerSize: 'w-[22.4px] h-[14px]',
3372
3381
  trackBorder: 'border-[1.5px]',
3373
3382
  knobSize: 'size-[8.4px]',
3374
3383
  knobInset: 'mx-[2.8px]',
3375
- labelClass: 'text-size-sm',
3384
+ labelClass: 'text-size-sm font-normal',
3376
3385
  },
3377
3386
  };
3378
3387
 
@@ -3385,7 +3394,7 @@ function Toggle(_a) {
3385
3394
  React.createElement("div", { className: "relative flex flex-shrink-0 cursor-pointer items-center rounded-full ".concat(containerClass), onClick: onClick },
3386
3395
  React.createElement("input", { id: id, checked: checked, disabled: disabled, className: "checkbox peer absolute h-full w-full cursor-pointer appearance-none rounded-full border-bia-grey bg-primary-white opacity-100 checked:border-bia-blue checked:bg-bia-blue hover:border-bia-blue-hover checked:hover:bg-bia-blue-hover focus:outline-none focus-visible:ring-1 focus-visible:ring-bia-blue focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:border-none disabled:bg-bia-grey-light-80 disabled:checked:bg-bia-blue-light-50 peer-hover:border-bia-blue-hover ".concat(trackBorder), type: "checkbox" }),
3387
3396
  React.createElement("div", { className: "check-icon group peer z-10 flex-shrink-0 rounded-full bg-bia-grey text-bia-grey peer-checked:bg-primary-white peer-checked:hover:bg-primary-white peer-hover:bg-bia-blue-hover peer-checked:peer-hover:bg-primary-white peer-disabled:cursor-not-allowed peer-disabled:bg-bia-grey-dark-10 peer-disabled:peer-checked:bg-bia-blue-light-90 ".concat(knobSize, " ").concat(knobInset) })),
3388
- React.createElement("label", { htmlFor: id, className: "ml-2 font-normal leading-4 text-bia-black ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
3397
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 text-bia-black ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
3389
3398
  }
3390
3399
 
3391
3400
  var isSelectedConfig = {
@@ -3509,6 +3518,10 @@ var checkDateEquals = function (date1, date2) {
3509
3518
  date1.getMonth() === date2.getMonth() &&
3510
3519
  date1.getDate() === date2.getDate());
3511
3520
  };
3521
+ // Sortable number for the calendar day only, so the time of day is ignored.
3522
+ var getDayKey = function (date) {
3523
+ return date.getFullYear() * 10000 + date.getMonth() * 100 + date.getDate();
3524
+ };
3512
3525
  var checkIsValidDate = function (dateString) {
3513
3526
  var regex = /^\d{4}-\d{2}-\d{2}$/;
3514
3527
  if (!regex.test(dateString)) {
@@ -3552,8 +3565,13 @@ var areMonthsAdjacent = function (leftMonth, leftYear, rightMonth, rightYear) {
3552
3565
  function DateDisplay(_a) {
3553
3566
  var displayDays = _a.displayDays, viewMonthValue = _a.viewMonthValue, selectedDate = _a.selectedDate, onDateSelect = _a.onDateSelect, minDateValue = _a.minDateValue, maxDateValue = _a.maxDateValue;
3554
3567
  var isRangeMode = Array.isArray(selectedDate) && selectedDate.length === 2;
3555
- var startRangeDate = isRangeMode && (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate[0]) ? new Date(selectedDate[0]) : null;
3556
- var endRangeDate = isRangeMode && (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate[1]) ? new Date(selectedDate[1]) : null;
3568
+ var firstRangeDate = isRangeMode && (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate[0]) ? new Date(selectedDate[0]) : null;
3569
+ var secondRangeDate = isRangeMode && (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate[1]) ? new Date(selectedDate[1]) : null;
3570
+ var isReversedRange = !!firstRangeDate &&
3571
+ !!secondRangeDate &&
3572
+ getDayKey(firstRangeDate) > getDayKey(secondRangeDate);
3573
+ var startRangeDate = isReversedRange ? secondRangeDate : firstRangeDate;
3574
+ var endRangeDate = isReversedRange ? firstRangeDate : secondRangeDate;
3557
3575
  return (React.createElement("div", null,
3558
3576
  React.createElement("div", { className: "bianic-datepicker-calendar-days-grid-header grid grid-cols-7 gap-[3px] pb-1.5" }, DAYS_MAP.map(function (day) { return (React.createElement("div", { key: day, className: "bianic-datepicker-calendar-day flex h-[18px] w-[31px] items-center justify-center" },
3559
3577
  React.createElement(Text, { variant: "small-text", extended: "text-bia-coolgrey" }, day.slice(0, 3)))); })),
@@ -3570,28 +3588,23 @@ function DateDisplay(_a) {
3570
3588
  : checkDateEquals(date, new Date(selectedDate));
3571
3589
  }
3572
3590
  var isBetween = isRangeMode && startRangeDate && endRangeDate
3573
- ? (function () {
3574
- var start = startRangeDate;
3575
- var end = endRangeDate;
3576
- if (start > end) {
3577
- var t = start;
3578
- start = end;
3579
- end = t;
3580
- }
3581
- return date > start && date < end;
3582
- })()
3591
+ ? getDayKey(date) > getDayKey(startRangeDate) &&
3592
+ getDayKey(date) < getDayKey(endRangeDate)
3583
3593
  : false;
3584
3594
  var isToday = checkDateEquals(date, new Date(TODAY_VALUE));
3585
3595
  var customClassname = 'w-[31px] rounded-full';
3586
3596
  if (isRangeMode && (isBetween || isStartRange || isEndRange)) {
3587
- if (isBetween) {
3597
+ if (isStartRange && isEndRange) {
3598
+ customClassname = 'w-[31px] rounded-full';
3599
+ }
3600
+ else if (isBetween) {
3588
3601
  customClassname = 'w-full';
3589
3602
  }
3590
3603
  else if (isStartRange) {
3591
3604
  customClassname = 'w-full rounded-l-full';
3592
3605
  }
3593
3606
  else {
3594
- customClassname = 'rounded-r-full';
3607
+ customClassname = 'w-full rounded-r-full';
3595
3608
  }
3596
3609
  }
3597
3610
  var dayStateClass = 'hover:bg-bia-blue-pastel';