athameui 0.0.10 → 0.0.11

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/athameui.mjs CHANGED
@@ -2159,7 +2159,8 @@ const buttonVariants = {
2159
2159
  outline: "ath-button-outline",
2160
2160
  ghost: "ath-button-ghost"
2161
2161
  },
2162
- dark: "ath-button-dark"
2162
+ dark: "ath-button-dark",
2163
+ wrap: "ath-button-wrap"
2163
2164
  };
2164
2165
 
2165
2166
  const Button = /*#__PURE__*/forwardRef(({
@@ -2174,6 +2175,7 @@ const Button = /*#__PURE__*/forwardRef(({
2174
2175
  type = "button",
2175
2176
  textPosition = "center",
2176
2177
  variant = "secondary",
2178
+ wrap = false,
2177
2179
  onBlur,
2178
2180
  onClick,
2179
2181
  onFocus,
@@ -2182,8 +2184,9 @@ const Button = /*#__PURE__*/forwardRef(({
2182
2184
  onMouseLeave,
2183
2185
  ...other
2184
2186
  }, ref) => {
2187
+ console.log(sx);
2185
2188
  const isIconOnly = icon && !children;
2186
- const sharedClasses = cx("ath-button", buttonVariants.size[size], buttonVariants.variant[variant], isIconOnly ? "ath-button-icon-only" : "", dark ? buttonVariants.dark : "");
2189
+ const sharedClasses = cx("ath-button", buttonVariants.size[size], buttonVariants.variant[variant], isIconOnly ? "ath-button-icon-only" : "", dark ? buttonVariants.dark : "", wrap ? buttonVariants.wrap : "");
2187
2190
  const buttonClasses = cx(sharedClasses, buttonVariants.textPosition[textPosition], typeof className === "object" && className !== null ? className.button : className);
2188
2191
  const onClickHandler = e => {
2189
2192
  onClick?.(e);
@@ -3199,6 +3202,24 @@ const breakpoints = {
3199
3202
  "3xl": 1280,
3200
3203
  "4xl": 1536
3201
3204
  };
3205
+ const minWidth = width => `@media (min-width: ${width}px)`;
3206
+ const maxWidth = width => `@media (max-width: ${width - 1}px)`;
3207
+ const minXs = minWidth(breakpoints.xs);
3208
+ const minSm = minWidth(breakpoints.sm);
3209
+ const minMd = minWidth(breakpoints.md);
3210
+ const minLg = minWidth(breakpoints.lg);
3211
+ const minXl = minWidth(breakpoints.xl);
3212
+ const min2xl = minWidth(breakpoints["2xl"]);
3213
+ const min3xl = minWidth(breakpoints["3xl"]);
3214
+ const min4xl = minWidth(breakpoints["4xl"]);
3215
+ const maxXs = maxWidth(breakpoints.xs);
3216
+ const maxSm = maxWidth(breakpoints.sm);
3217
+ const maxMd = maxWidth(breakpoints.md);
3218
+ const maxLg = maxWidth(breakpoints.lg);
3219
+ const maxXl = maxWidth(breakpoints.xl);
3220
+ const max2xl = maxWidth(breakpoints["2xl"]);
3221
+ const max3xl = maxWidth(breakpoints["3xl"]);
3222
+ const max4xl = maxWidth(breakpoints["4xl"]);
3202
3223
 
3203
3224
  const tokens = {
3204
3225
  font: {
@@ -3370,5 +3391,5 @@ const tokens = {
3370
3391
  }
3371
3392
  };
3372
3393
 
3373
- export { Accordion, AccordionItem, Avatar, Block, Button, ButtonGroup, Carousel, ContainerScalingText, Dropdown, Footer, FormField, FormLabel, FormTextInput, Header, List, ListItem, Main, Modal, ScrollToTopButton, Search, SlideOut, breakpoints, cx, tokens };
3394
+ export { Accordion, AccordionItem, Avatar, Block, Button, ButtonGroup, Carousel, ContainerScalingText, Dropdown, Footer, FormField, FormLabel, FormTextInput, Header, List, ListItem, Main, Modal, ScrollToTopButton, Search, SlideOut, breakpoints, cx, max2xl, max3xl, max4xl, maxLg, maxMd, maxSm, maxXl, maxXs, min2xl, min3xl, min4xl, minLg, minMd, minSm, minXl, minXs, tokens };
3374
3395
  //# sourceMappingURL=athameui.mjs.map