@westpac/ui 0.53.1 → 0.53.2

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.
@@ -33,7 +33,7 @@ export const styles = tv({
33
33
  base: 'border border-borderDark bg-light text-muted hover:bg-white active:bg-white'
34
34
  },
35
35
  link: {
36
- base: 'text-link underline px-0'
36
+ base: 'px-0 text-link underline'
37
37
  },
38
38
  unstyled: {
39
39
  base: 'p-0 text-left'
@@ -11,7 +11,7 @@ export function CalendarGrid({ state, weekdayStyle = 'short', ...props }) {
11
11
  ...gridProps
12
12
  }, React.createElement("thead", headerProps, React.createElement("tr", null, weekDays.map((day, index)=>React.createElement("th", {
13
13
  key: index,
14
- className: "text-text size-6 text-center text-[0.75rem] font-semibold leading-9"
14
+ className: "size-6 text-center text-[0.75rem] font-semibold leading-9 text-text"
15
15
  }, day.toUpperCase().slice(0, 2))))), React.createElement("tbody", null, [
16
16
  ...new Array(weeksInMonth).keys()
17
17
  ].map((weekIndex)=>React.createElement("tr", {
@@ -18,7 +18,7 @@ export const styles = tv({
18
18
  },
19
19
  false: {
20
20
  underlay: '',
21
- closeButton: 'border-border pointer-events-none absolute right-0 top-0 size-5 -translate-y-1/2 translate-x-1/2 touch-none rounded-full border bg-white opacity-0 focus:pointer-events-auto focus:touch-auto focus:opacity-100',
21
+ closeButton: 'pointer-events-none absolute right-0 top-0 size-5 -translate-y-1/2 translate-x-1/2 touch-none rounded-full border border-border bg-white opacity-0 focus:pointer-events-auto focus:touch-auto focus:opacity-100',
22
22
  headerLabel: 'hidden',
23
23
  popover: 'absolute mt-1 scale-100 animate-fadeIn rounded border border-border bg-white opacity-100 shadow-[0_5px_10px_rgba(0,0,0,0.2)]'
24
24
  }
@@ -1,4 +1,5 @@
1
1
  'use client';
2
+ import { clsx } from 'clsx';
2
3
  import React, { Children, cloneElement, isValidElement, useCallback, useId, useMemo } from 'react';
3
4
  import { ErrorMessage, Hint, Label } from '../index.js';
4
5
  import { InputGroupSupportingText } from './components/index.js';
@@ -79,7 +80,7 @@ export function InputGroup({ label, hideLabel, size = 'medium', hint, errorMessa
79
80
  ...width !== 'full' ? {
80
81
  width: width
81
82
  } : {},
82
- className: 'focus:z-10'
83
+ className: clsx(child.props.className, 'focus:z-10')
83
84
  });
84
85
  }
85
86
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@westpac/ui",
3
- "version": "0.53.1",
3
+ "version": "0.53.2",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -256,8 +256,8 @@
256
256
  "vite": "^7.0.5",
257
257
  "vitest": "^3.2.4",
258
258
  "@westpac/eslint-config": "~1.0.1",
259
- "@westpac/ts-config": "~0.0.0",
260
- "@westpac/test-config": "~0.0.0"
259
+ "@westpac/test-config": "~0.0.0",
260
+ "@westpac/ts-config": "~0.0.0"
261
261
  },
262
262
  "dependencies": {
263
263
  "@duetds/date-picker": "~1.4.0",
@@ -33,7 +33,7 @@ export const styles = tv(
33
33
  },
34
34
  hero: { base: 'border border-hero bg-hero text-white hover:bg-hero-70 active:bg-hero-50' },
35
35
  faint: { base: 'border border-borderDark bg-light text-muted hover:bg-white active:bg-white' },
36
- link: { base: 'text-link underline px-0' },
36
+ link: { base: 'px-0 text-link underline' },
37
37
  unstyled: { base: 'p-0 text-left' },
38
38
  },
39
39
  soft: {
@@ -16,7 +16,7 @@ export function CalendarGrid({ state, weekdayStyle = 'short', ...props }: Calend
16
16
  <thead {...headerProps}>
17
17
  <tr>
18
18
  {weekDays.map((day, index) => (
19
- <th key={index} className="text-text size-6 text-center text-[0.75rem] font-semibold leading-9">
19
+ <th key={index} className="size-6 text-center text-[0.75rem] font-semibold leading-9 text-text">
20
20
  {day.toUpperCase().slice(0, 2)}
21
21
  </th>
22
22
  ))}
@@ -22,7 +22,7 @@ export const styles = tv(
22
22
  false: {
23
23
  underlay: '',
24
24
  closeButton:
25
- 'border-border pointer-events-none absolute right-0 top-0 size-5 -translate-y-1/2 translate-x-1/2 touch-none rounded-full border bg-white opacity-0 focus:pointer-events-auto focus:touch-auto focus:opacity-100',
25
+ 'pointer-events-none absolute right-0 top-0 size-5 -translate-y-1/2 translate-x-1/2 touch-none rounded-full border border-border bg-white opacity-0 focus:pointer-events-auto focus:touch-auto focus:opacity-100',
26
26
  headerLabel: 'hidden',
27
27
  popover:
28
28
  'absolute mt-1 scale-100 animate-fadeIn rounded border border-border bg-white opacity-100 shadow-[0_5px_10px_rgba(0,0,0,0.2)]',
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import { clsx } from 'clsx';
3
4
  import React, {
4
5
  Attributes,
5
6
  Children,
@@ -96,7 +97,8 @@ export function InputGroup({
96
97
  'aria-describedby': ariaDescribedBy || ariaDescribedByValue,
97
98
  'aria-label': ariaLabel,
98
99
  ...(width !== 'full' ? { width: width } : {}),
99
- className: 'focus:z-10', // for focus ring visibility
100
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-argument
101
+ className: clsx(child.props.className, 'focus:z-10'), // for focus ring visibility
100
102
  } as Partial<unknown> & Attributes);
101
103
  }
102
104
  });