@westpac/ui 1.2.1 → 1.3.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.
@@ -1,7 +1,7 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
  export const styles = tv({
3
3
  slots: {
4
- underlay: 'fixed inset-0 flex animate-fadeIn flex-col justify-end bg-black/50 transition-all md:items-center md:justify-center',
4
+ underlay: 'fixed inset-0 flex animate-fadeIn flex-col justify-end bg-black/65 transition-all md:items-center md:justify-center',
5
5
  motionWrapper: 'flex flex-col',
6
6
  modal: 'flex w-full flex-col'
7
7
  }
@@ -10,7 +10,7 @@ export const styles = tv({
10
10
  variants: {
11
11
  showAsBottomSheet: {
12
12
  true: {
13
- underlay: 'animate-fadeIn bg-black/20',
13
+ underlay: 'animate-fadeIn bg-black/65',
14
14
  popover: '!fixed inset-x-0 !top-auto !bottom-0 !left-0 animate-slideUp overflow-auto rounded-t-3xl px-[8%] pb-3',
15
15
  header: 'mx-[-8vw] flex items-center justify-between border-b border-b-border-muted-soft px-3.5 py-2',
16
16
  headerLabel: 'typography-body-10 text-text-body'
@@ -0,0 +1,2 @@
1
+ import { type IconProps } from '../icon.types.js';
2
+ export declare function SortIcon({ look, 'aria-label': ariaLabel, copyrightYear, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Icon } from '../icon.component.js';
3
+ export function SortIcon({ look = 'filled', 'aria-label': ariaLabel = 'Sort', copyrightYear = '2026', ...props }) {
4
+ return React.createElement(Icon, {
5
+ "aria-label": ariaLabel,
6
+ copyrightYear: copyrightYear,
7
+ ...props
8
+ }, React.createElement("path", {
9
+ d: "M18.3643 14.6367L12 21.001L5.63574 14.6367L7.0498 13.2227L12 18.1729L16.9492 13.2227L18.3643 14.6367ZM18.3643 9.36426L16.9502 10.7783L12 5.82812L7.05078 10.7783L5.63672 9.36426L12 3L18.3643 9.36426Z",
10
+ fill: "currentColor"
11
+ }));
12
+ }
@@ -210,6 +210,7 @@ export { ShoppingBasketIcon } from './components/shopping-basket-icon.js';
210
210
  export { SimCardIcon } from './components/sim-card-icon.js';
211
211
  export { SlackIcon } from './components/slack-icon.js';
212
212
  export { SmsIcon } from './components/sms-icon.js';
213
+ export { SortIcon } from './components/sort-icon.js';
213
214
  export { SpaIcon } from './components/spa-icon.js';
214
215
  export { StarHalfIcon } from './components/star-half-icon.js';
215
216
  export { StarRateIcon } from './components/star-rate-icon.js';
@@ -210,6 +210,7 @@ export { ShoppingBasketIcon } from './components/shopping-basket-icon.js';
210
210
  export { SimCardIcon } from './components/sim-card-icon.js';
211
211
  export { SlackIcon } from './components/slack-icon.js';
212
212
  export { SmsIcon } from './components/sms-icon.js';
213
+ export { SortIcon } from './components/sort-icon.js';
213
214
  export { SpaIcon } from './components/spa-icon.js';
214
215
  export { StarHalfIcon } from './components/star-half-icon.js';
215
216
  export { StarRateIcon } from './components/star-rate-icon.js';
@@ -1,7 +1,7 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
  export const styles = tv({
3
3
  slots: {
4
- base: 'fixed inset-0 flex animate-fadeIn justify-center bg-black/50 px-4',
4
+ base: 'fixed inset-0 flex animate-fadeIn justify-center bg-black/65 px-4',
5
5
  modal: 'relative top-[5vh] z-10 size-fit max-w-full animate-fadeInDown'
6
6
  },
7
7
  variants: {
@@ -1989,16 +1989,10 @@
1989
1989
  background-color: color-mix(in oklab, var(--color-black, #000) 5%, transparent);
1990
1990
  }
1991
1991
  }
1992
- .bg-black\/20 {
1993
- background-color: color-mix(in srgb, #000 20%, transparent);
1992
+ .bg-black\/65 {
1993
+ background-color: color-mix(in srgb, #000 65%, transparent);
1994
1994
  @supports (color: color-mix(in lab, red, red)) {
1995
- background-color: color-mix(in oklab, var(--color-black, #000) 20%, transparent);
1996
- }
1997
- }
1998
- .bg-black\/50 {
1999
- background-color: color-mix(in srgb, #000 50%, transparent);
2000
- @supports (color: color-mix(in lab, red, red)) {
2001
- background-color: color-mix(in oklab, var(--color-black, #000) 50%, transparent);
1995
+ background-color: color-mix(in oklab, var(--color-black, #000) 65%, transparent);
2002
1996
  }
2003
1997
  }
2004
1998
  .bg-border-danger {
@@ -1989,16 +1989,10 @@
1989
1989
  background-color: color-mix(in oklab, var(--color-black, #000) 5%, transparent);
1990
1990
  }
1991
1991
  }
1992
- .bg-black\/20 {
1993
- background-color: color-mix(in srgb, #000 20%, transparent);
1992
+ .bg-black\/65 {
1993
+ background-color: color-mix(in srgb, #000 65%, transparent);
1994
1994
  @supports (color: color-mix(in lab, red, red)) {
1995
- background-color: color-mix(in oklab, var(--color-black, #000) 20%, transparent);
1996
- }
1997
- }
1998
- .bg-black\/50 {
1999
- background-color: color-mix(in srgb, #000 50%, transparent);
2000
- @supports (color: color-mix(in lab, red, red)) {
2001
- background-color: color-mix(in oklab, var(--color-black, #000) 50%, transparent);
1995
+ background-color: color-mix(in oklab, var(--color-black, #000) 65%, transparent);
2002
1996
  }
2003
1997
  }
2004
1998
  .bg-border-danger {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@westpac/ui",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -253,10 +253,10 @@
253
253
  "typescript": "^5.5.4",
254
254
  "vite": "^7.1.12",
255
255
  "vitest": "^3.2.4",
256
+ "@westpac/eslint-config": "~1.1.0",
256
257
  "@westpac/style-config": "~1.0.2",
257
258
  "@westpac/test-config": "~0.0.0",
258
- "@westpac/ts-config": "~0.0.0",
259
- "@westpac/eslint-config": "~1.1.0"
259
+ "@westpac/ts-config": "~0.0.0"
260
260
  },
261
261
  "dependencies": {
262
262
  "@internationalized/date": "~3.10.0",
@@ -3,7 +3,7 @@ import { tv } from 'tailwind-variants';
3
3
  export const styles = tv({
4
4
  slots: {
5
5
  underlay:
6
- 'fixed inset-0 flex animate-fadeIn flex-col justify-end bg-black/50 transition-all md:items-center md:justify-center',
6
+ 'fixed inset-0 flex animate-fadeIn flex-col justify-end bg-black/65 transition-all md:items-center md:justify-center',
7
7
  motionWrapper: 'flex flex-col',
8
8
  modal: 'flex w-full flex-col',
9
9
  },
@@ -11,7 +11,7 @@ export const styles = tv({
11
11
  variants: {
12
12
  showAsBottomSheet: {
13
13
  true: {
14
- underlay: 'animate-fadeIn bg-black/20',
14
+ underlay: 'animate-fadeIn bg-black/65',
15
15
  popover:
16
16
  '!fixed inset-x-0 !top-auto !bottom-0 !left-0 animate-slideUp overflow-auto rounded-t-3xl px-[8%] pb-3',
17
17
  header: 'mx-[-8vw] flex items-center justify-between border-b border-b-border-muted-soft px-3.5 py-2',
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ import { Icon } from '../icon.component.js';
4
+ import { type IconProps } from '../icon.types.js';
5
+
6
+ export function SortIcon({
7
+ look = 'filled',
8
+ 'aria-label': ariaLabel = 'Sort',
9
+ copyrightYear = '2026',
10
+ ...props
11
+ }: IconProps) {
12
+ return (
13
+ <Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
14
+ <path
15
+ d="M18.3643 14.6367L12 21.001L5.63574 14.6367L7.0498 13.2227L12 18.1729L16.9492 13.2227L18.3643 14.6367ZM18.3643 9.36426L16.9502 10.7783L12 5.82812L7.05078 10.7783L5.63672 9.36426L12 3L18.3643 9.36426Z"
16
+ fill="currentColor"
17
+ />
18
+ </Icon>
19
+ );
20
+ }
@@ -210,6 +210,7 @@ export { ShoppingBasketIcon } from './components/shopping-basket-icon.js';
210
210
  export { SimCardIcon } from './components/sim-card-icon.js';
211
211
  export { SlackIcon } from './components/slack-icon.js';
212
212
  export { SmsIcon } from './components/sms-icon.js';
213
+ export { SortIcon } from './components/sort-icon.js';
213
214
  export { SpaIcon } from './components/spa-icon.js';
214
215
  export { StarHalfIcon } from './components/star-half-icon.js';
215
216
  export { StarRateIcon } from './components/star-rate-icon.js';
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
2
2
 
3
3
  export const styles = tv({
4
4
  slots: {
5
- base: 'fixed inset-0 flex animate-fadeIn justify-center bg-black/50 px-4',
5
+ base: 'fixed inset-0 flex animate-fadeIn justify-center bg-black/65 px-4',
6
6
  modal: 'relative top-[5vh] z-10 size-fit max-w-full animate-fadeInDown',
7
7
  },
8
8
  variants: {