@lolmath/ui 3.1.0 → 3.1.1
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.cjs +11 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var tv = createTV({
|
|
|
44
44
|
// src/components/button.tsx
|
|
45
45
|
import { jsx } from "react/jsx-runtime";
|
|
46
46
|
var buttonBorder = tv({
|
|
47
|
-
base: "bg-gradient-to-t outline-none transition-colors duration-200",
|
|
47
|
+
base: "bg-gradient-to-t p-0.5 outline-none transition-colors duration-200",
|
|
48
48
|
variants: {
|
|
49
49
|
preset: {
|
|
50
50
|
primary: "",
|
|
@@ -72,6 +72,9 @@ var buttonBorder = tv({
|
|
|
72
72
|
},
|
|
73
73
|
isFocusVisible: {
|
|
74
74
|
true: ""
|
|
75
|
+
},
|
|
76
|
+
thin: {
|
|
77
|
+
true: "p-px"
|
|
75
78
|
}
|
|
76
79
|
},
|
|
77
80
|
compoundVariants: [
|
|
@@ -121,7 +124,7 @@ var buttonBorder = tv({
|
|
|
121
124
|
]
|
|
122
125
|
});
|
|
123
126
|
var button = tv({
|
|
124
|
-
base: "text-lol-gold-300 font-beaufort block font-bold uppercase tracking-wide transition-colors duration-200",
|
|
127
|
+
base: "text-lol-gold-300 font-beaufort block h-full w-full font-bold uppercase tracking-wide transition-colors duration-200",
|
|
125
128
|
variants: {
|
|
126
129
|
preset: {
|
|
127
130
|
primary: "from-lol-gold-600 via-lol-gold-600 to-lol-gold-700 bg-gradient-to-b",
|
|
@@ -149,9 +152,6 @@ var button = tv({
|
|
|
149
152
|
round: "rounded-full",
|
|
150
153
|
square: "",
|
|
151
154
|
normal: ""
|
|
152
|
-
},
|
|
153
|
-
thin: {
|
|
154
|
-
true: ""
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
compoundVariants: [
|
|
@@ -163,16 +163,6 @@ var button = tv({
|
|
|
163
163
|
preset: ["primary", "secondary", "hextech"],
|
|
164
164
|
class: "bg-lol-grey-300"
|
|
165
165
|
},
|
|
166
|
-
{
|
|
167
|
-
preset: ["primary", "secondary", "hextech", "dimmed"],
|
|
168
|
-
thin: true,
|
|
169
|
-
class: "m-px"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
preset: ["primary", "secondary", "hextech", "dimmed"],
|
|
173
|
-
thin: false,
|
|
174
|
-
class: "m-0.5"
|
|
175
|
-
},
|
|
176
166
|
{
|
|
177
167
|
preset: ["hextech"],
|
|
178
168
|
isHovered: true,
|
|
@@ -229,6 +219,7 @@ function _Button({
|
|
|
229
219
|
className: resolveClassName(className, values),
|
|
230
220
|
preset,
|
|
231
221
|
shape,
|
|
222
|
+
thin,
|
|
232
223
|
...values
|
|
233
224
|
});
|
|
234
225
|
},
|
|
@@ -240,7 +231,6 @@ function _Button({
|
|
|
240
231
|
className: resolveClassName(innerClassName, values),
|
|
241
232
|
preset,
|
|
242
233
|
shape,
|
|
243
|
-
thin,
|
|
244
234
|
...values
|
|
245
235
|
}),
|
|
246
236
|
children: typeof children === "function" ? children(values) : children
|
|
@@ -1604,7 +1594,7 @@ import {
|
|
|
1604
1594
|
} from "react-aria-components";
|
|
1605
1595
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1606
1596
|
var toggleButtonBorder = tv({
|
|
1607
|
-
base: "bg-gradient-to-t outline-none transition-colors duration-200",
|
|
1597
|
+
base: "bg-gradient-to-t p-0.5 outline-none transition-colors duration-200",
|
|
1608
1598
|
variants: {
|
|
1609
1599
|
preset: {
|
|
1610
1600
|
gold: "",
|
|
@@ -1633,6 +1623,9 @@ var toggleButtonBorder = tv({
|
|
|
1633
1623
|
},
|
|
1634
1624
|
isSelected: {
|
|
1635
1625
|
true: ""
|
|
1626
|
+
},
|
|
1627
|
+
thin: {
|
|
1628
|
+
true: "p-px"
|
|
1636
1629
|
}
|
|
1637
1630
|
},
|
|
1638
1631
|
compoundVariants: [
|
|
@@ -1719,9 +1712,6 @@ var toggleButton = tv({
|
|
|
1719
1712
|
round: "rounded-full",
|
|
1720
1713
|
square: "",
|
|
1721
1714
|
normal: ""
|
|
1722
|
-
},
|
|
1723
|
-
thin: {
|
|
1724
|
-
true: ""
|
|
1725
1715
|
}
|
|
1726
1716
|
},
|
|
1727
1717
|
compoundVariants: [
|
|
@@ -1729,16 +1719,6 @@ var toggleButton = tv({
|
|
|
1729
1719
|
preset: ["gold", "hextech", "dimmed"],
|
|
1730
1720
|
class: "px-4 py-2"
|
|
1731
1721
|
},
|
|
1732
|
-
{
|
|
1733
|
-
preset: ["gold", "hextech", "dimmed"],
|
|
1734
|
-
thin: true,
|
|
1735
|
-
class: "m-px"
|
|
1736
|
-
},
|
|
1737
|
-
{
|
|
1738
|
-
preset: ["gold", "hextech", "dimmed"],
|
|
1739
|
-
thin: false,
|
|
1740
|
-
class: "m-0.5"
|
|
1741
|
-
},
|
|
1742
1722
|
{
|
|
1743
1723
|
preset: ["hextech"],
|
|
1744
1724
|
isHovered: true,
|
|
@@ -1777,6 +1757,7 @@ function ToggleButton({
|
|
|
1777
1757
|
...values,
|
|
1778
1758
|
preset,
|
|
1779
1759
|
shape,
|
|
1760
|
+
thin,
|
|
1780
1761
|
className: resolveClassName(className, values)
|
|
1781
1762
|
}),
|
|
1782
1763
|
children: (values) => /* @__PURE__ */ jsx18(
|
|
@@ -1787,7 +1768,6 @@ function ToggleButton({
|
|
|
1787
1768
|
...values,
|
|
1788
1769
|
preset,
|
|
1789
1770
|
shape,
|
|
1790
|
-
thin,
|
|
1791
1771
|
className: resolveClassName(innerProps.className, values)
|
|
1792
1772
|
}),
|
|
1793
1773
|
style: {
|