ixia-ui-react 1.1.0 → 1.2.0

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.mjs CHANGED
@@ -8,7 +8,7 @@ import { AlertDialog as AlertDialog$1, Button as Button$1, Checkbox as Checkbox$
8
8
  import React, { Children, createContext, createElement, isValidElement, useContext, useEffect, useId, useRef, useState } from "react";
9
9
  import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
10
10
  import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
11
- import { DayPicker, getDefaultClassNames, isDateRange } from "@daypicker/react";
11
+ import { DayPicker, getDefaultClassNames, isDateRange, labelDayButton } from "@daypicker/react";
12
12
  import { Select as Select$1 } from "@base-ui/react/select";
13
13
  import { Legend, ResponsiveContainer, Tooltip as Tooltip$1 } from "recharts";
14
14
  import { Checkbox as Checkbox$2 } from "@base-ui/react/checkbox";
@@ -1817,6 +1817,10 @@ function getRangeSelected(selectedDates) {
1817
1817
  function getSingleSelected(selectedDates) {
1818
1818
  if (selectedDates instanceof Date) return selectedDates;
1819
1819
  }
1820
+ function labelDayButtonWithVisibleText(...args) {
1821
+ const [date, modifiers, options, dateLib] = args;
1822
+ return `${dateLib?.format(date, "d") ?? String(date.getDate())}, ${labelDayButton(date, modifiers, options, dateLib)}`;
1823
+ }
1820
1824
  const defaultClassNames = getDefaultClassNames();
1821
1825
  const calendarClassNames = {
1822
1826
  caption_label: "style-text-strong-0",
@@ -1849,6 +1853,7 @@ function CalendarPicker({ className, mode = "single", selected, onSelect, ...pro
1849
1853
  className,
1850
1854
  classNames: calendarClassNames,
1851
1855
  components: calendarComponents,
1856
+ labels: { labelDayButton: labelDayButtonWithVisibleText },
1852
1857
  ...props
1853
1858
  };
1854
1859
  switch (mode) {
@@ -3254,7 +3259,7 @@ function InputGroupInput({ size = "medium", className, ref, ...props }) {
3254
3259
  if (ref && typeof ref === "object") Object.assign(ref, { current: node });
3255
3260
  };
3256
3261
  return /* @__PURE__ */ jsxs("button", {
3257
- "aria-label": "Open color picker",
3262
+ "aria-label": `${colorValue}, open color picker`,
3258
3263
  className: cn("relative flex size-full items-center justify-start hover:cursor-pointer", className),
3259
3264
  disabled: props.disabled,
3260
3265
  onClick: () => inputRef.current?.click(),
@@ -3273,7 +3278,7 @@ function InputGroupInput({ size = "medium", className, ref, ...props }) {
3273
3278
  ...colorProps
3274
3279
  }),
3275
3280
  /* @__PURE__ */ jsx("p", {
3276
- className: cn("text-left", size === "small" && "pr-xs pl-lg style-text-default--1", size === "medium" && "pl-[calc(var(--dawn-spacing-lg)+6px)] style-text-default-0", size === "large" && "pl-2xl style-text-default-1"),
3281
+ className: cn("text-left", size === "small" && "pr-xs pl-lg style-text-default--1", size === "medium" && "pl-[calc(var(--ixia-spacing-lg)+6px)] style-text-default-0", size === "large" && "pl-2xl style-text-default-1"),
3277
3282
  children: colorValue
3278
3283
  })
3279
3284
  ]
@@ -5202,7 +5207,7 @@ function Input({ fileUploadButtonIcon = defaultFileUploadButtonIcon, fileUploadB
5202
5207
  })]
5203
5208
  });
5204
5209
  return /* @__PURE__ */ jsxs("button", {
5205
- "aria-label": "Open color picker",
5210
+ "aria-label": `${colorValue}, open color picker`,
5206
5211
  className: cn("relative flex hover:cursor-pointer", inputVariants({
5207
5212
  size,
5208
5213
  variant