vueless 0.0.720 → 0.0.722

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.720",
3
+ "version": "0.0.722",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -86,8 +86,18 @@ export function getFormattedValue(value: string | number, options: FormatOptions
86
86
  positiveOnly: false,
87
87
  });
88
88
 
89
- const formattedValue = intlNumber
90
- .format(parseFloat(rawValue))
89
+ const [integer, fraction] = rawValue.split(rawDecimalMark);
90
+ const bigInteger = intlNumber.format(BigInt(integer));
91
+
92
+ const formattedFraction = fraction
93
+ .slice(minFractionDigits, maxFractionDigits)
94
+ .padStart(maxFractionDigits, "0");
95
+
96
+ const formattedBigInt = fraction
97
+ ? bigInteger + `${rawDecimalMark}${formattedFraction}`
98
+ : bigInteger;
99
+
100
+ const formattedValue = formattedBigInt
91
101
  .replaceAll(comma, thousandsSeparator)
92
102
  .replaceAll(rawDecimalMark, decimalSeparator);
93
103
 
@@ -1,7 +1,7 @@
1
1
  export default /*tw*/ {
2
2
  tabButton: {
3
3
  base: `
4
- {UButton} -mb-px rounded-none border-b-2 border-transparent
4
+ {UButton} -mb-px rounded-none border-0 border-b-2 border-transparent
5
5
  hover:bg-transparent dark:hover:bg-transparent
6
6
  active:bg-transparent dark:active:bg-transparent
7
7
  `,
@@ -10,7 +10,7 @@ export default /*tw*/ {
10
10
  },
11
11
  },
12
12
  tabButtonActive: {
13
- base: "{>tabButton} border-b-brand-600",
13
+ base: "{>tabButton} border-brand-600",
14
14
  defaults: {
15
15
  color: "brand",
16
16
  },
@@ -2,7 +2,9 @@ export default /*tw*/ {
2
2
  tabs: {
3
3
  base: "mb-6 flex flex-nowrap border-b border-gray-200 dark:border-gray-700",
4
4
  variants: {
5
- block: "w-full",
5
+ block: {
6
+ true: "w-full",
7
+ },
6
8
  },
7
9
  },
8
10
  tab: "{UTab}",