athameui 0.0.10 → 0.0.12

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,
@@ -2183,7 +2185,7 @@ const Button = /*#__PURE__*/forwardRef(({
2183
2185
  ...other
2184
2186
  }, ref) => {
2185
2187
  const isIconOnly = icon && !children;
2186
- const sharedClasses = cx("ath-button", buttonVariants.size[size], buttonVariants.variant[variant], isIconOnly ? "ath-button-icon-only" : "", dark ? buttonVariants.dark : "");
2188
+ const sharedClasses = cx("ath-button", buttonVariants.size[size], buttonVariants.variant[variant], isIconOnly ? "ath-button-icon-only" : "", dark ? buttonVariants.dark : "", wrap ? buttonVariants.wrap : "");
2187
2189
  const buttonClasses = cx(sharedClasses, buttonVariants.textPosition[textPosition], typeof className === "object" && className !== null ? className.button : className);
2188
2190
  const onClickHandler = e => {
2189
2191
  onClick?.(e);
@@ -2562,7 +2564,7 @@ const ButtonGroup = ({
2562
2564
  const Carousel = ({
2563
2565
  children,
2564
2566
  className,
2565
- emptyMessage,
2567
+ emptyMessage = "Nothing here yet",
2566
2568
  sx
2567
2569
  }) => {
2568
2570
  const [isHovered, setIsHovered] = useState(false);
@@ -2608,7 +2610,10 @@ const Carousel = ({
2608
2610
  icon: Qt,
2609
2611
  size: 36
2610
2612
  })
2611
- }), hasItems ? children : emptyMessage, jsx(Button, {
2613
+ }), hasItems ? children : jsx("div", {
2614
+ className: "ath-carousel-empty",
2615
+ children: emptyMessage
2616
+ }), jsx(Button, {
2612
2617
  className: {
2613
2618
  button: "ath-carousel-arrow ath-carousel-right-arrow"
2614
2619
  },
@@ -2748,7 +2753,7 @@ const FormField = ({
2748
2753
  ...other
2749
2754
  }) => {
2750
2755
  const textAreaRef = useRef(null);
2751
- const containerClasses = cx("ath-form-input-container", (labelPosition === "left" || labelPosition === "right") && "ath-form-input-container-horizontal", className?.container ? className.container : "");
2756
+ const containerClasses = cx("ath-form-input-container", readOnly && "ath-form-input-container-readonly", (labelPosition === "left" || labelPosition === "right") && "ath-form-input-container-horizontal", className?.container ? className.container : "");
2752
2757
  const inputSharedClasses = cx(`ath-form-input-${size}`, disabled && "ath-form-input-shared-disabled", readOnly && "ath-form-input-shared-readonly", dark && "ath-form-input-shared-dark", className?.input ? className.input : "");
2753
2758
  const inputClasses = cx("ath-form-input", inputSharedClasses, error && "ath-form-input-error");
2754
2759
  const textAreaClasses = cx("ath-form-textarea", inputSharedClasses, autoResize && "ath-form-textarea-auto-resize", error && "ath-form-textarea-error");
@@ -3199,6 +3204,24 @@ const breakpoints = {
3199
3204
  "3xl": 1280,
3200
3205
  "4xl": 1536
3201
3206
  };
3207
+ const minWidth = width => `@media (min-width: ${width}px)`;
3208
+ const maxWidth = width => `@media (max-width: ${width - 1}px)`;
3209
+ const minXs = minWidth(breakpoints.xs);
3210
+ const minSm = minWidth(breakpoints.sm);
3211
+ const minMd = minWidth(breakpoints.md);
3212
+ const minLg = minWidth(breakpoints.lg);
3213
+ const minXl = minWidth(breakpoints.xl);
3214
+ const min2xl = minWidth(breakpoints["2xl"]);
3215
+ const min3xl = minWidth(breakpoints["3xl"]);
3216
+ const min4xl = minWidth(breakpoints["4xl"]);
3217
+ const maxXs = maxWidth(breakpoints.xs);
3218
+ const maxSm = maxWidth(breakpoints.sm);
3219
+ const maxMd = maxWidth(breakpoints.md);
3220
+ const maxLg = maxWidth(breakpoints.lg);
3221
+ const maxXl = maxWidth(breakpoints.xl);
3222
+ const max2xl = maxWidth(breakpoints["2xl"]);
3223
+ const max3xl = maxWidth(breakpoints["3xl"]);
3224
+ const max4xl = maxWidth(breakpoints["4xl"]);
3202
3225
 
3203
3226
  const tokens = {
3204
3227
  font: {
@@ -3370,5 +3393,5 @@ const tokens = {
3370
3393
  }
3371
3394
  };
3372
3395
 
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 };
3396
+ 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
3397
  //# sourceMappingURL=athameui.mjs.map