@westpac/ui 0.40.0 → 0.40.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.
- package/CHANGELOG.md +12 -0
- package/dist/component-type.json +1 -1
- package/dist/components/popover/components/panel/panel.component.js +1 -1
- package/dist/components/popover/components/panel/panel.styles.js +9 -9
- package/dist/css/westpac-ui.css +38 -73
- package/dist/css/westpac-ui.min.css +38 -73
- package/package.json +3 -3
- package/src/components/popover/components/panel/panel.component.tsx +2 -1
- package/src/components/popover/components/panel/panel.styles.ts +9 -9
|
@@ -4,24 +4,24 @@ export const styles = tv(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
base: '',
|
|
7
|
-
popover: 'absolute z-[999] rounded border border-muted bg-white shadow-[0_5px_10px_rgba(0,0,0,0.2)]',
|
|
7
|
+
popover: 'absolute z-[999] rounded-[3px] border border-muted bg-white shadow-[0_5px_10px_rgba(0,0,0,0.2)]',
|
|
8
8
|
arrow: `absolute -z-10 size-0
|
|
9
|
-
before:absolute before:left-
|
|
10
|
-
after:left-
|
|
9
|
+
before:absolute before:left-[1px] before:top-[0.5px] before:size-0 before:border-x-[7px] before:border-t-[12px] before:border-x-[transparent] before:border-t-muted after:absolute
|
|
10
|
+
after:left-[1.5px] after:top-0 after:size-0 after:border-x-[6.5px] after:border-t-[11px] after:border-x-[transparent] after:border-t-white
|
|
11
11
|
`,
|
|
12
|
-
closeBtn: 'absolute right-1
|
|
13
|
-
content: 'w-[17.625rem] bg-white py-4 pl-3 pr-5',
|
|
14
|
-
heading: 'typography-body-9 mb-2 font-
|
|
12
|
+
closeBtn: 'absolute right-1 h-3 top-1 p-0 hover:opacity-80',
|
|
13
|
+
content: 'w-[17.625rem] rounded-[3px] bg-white py-4 pl-3 pr-5',
|
|
14
|
+
heading: 'typography-body-9 mb-2 font-medium text-text',
|
|
15
15
|
body: 'typography-body-10 text-text',
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
placement: {
|
|
19
19
|
top: {
|
|
20
|
-
popover: '-mt-2
|
|
21
|
-
arrow: 'top-full translate-x-[-6px] translate-y-
|
|
20
|
+
popover: '-mt-2 mb-2',
|
|
21
|
+
arrow: 'top-full translate-x-[-6px] translate-y-0',
|
|
22
22
|
},
|
|
23
23
|
bottom: {
|
|
24
|
-
popover: 'mt-2
|
|
24
|
+
popover: 'mt-2',
|
|
25
25
|
arrow: 'bottom-full translate-x-[6px] rotate-180 after:bottom-[1px]',
|
|
26
26
|
},
|
|
27
27
|
},
|