@westpac/ui 0.36.1 → 0.37.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/CHANGELOG.md +6 -0
- package/dist/tailwind/tailwind-plugin.js +19 -4
- package/package.json +1 -1
- package/src/tailwind/tailwind-plugin.ts +20 -11
package/CHANGELOG.md
CHANGED
|
@@ -34,11 +34,26 @@ export const WestpacUIKitBasePlugin = plugin.withOptions(function(options = {})
|
|
|
34
34
|
'.select-caret': {
|
|
35
35
|
backgroundImage: "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' style='color: rgb(89,87,103);'><path fill='currentColor' d='M0 0l7 8 7-8z'/></svg>\")"
|
|
36
36
|
}
|
|
37
|
+
}, {
|
|
38
|
+
respectPrefix: true,
|
|
39
|
+
respectImportant: true
|
|
40
|
+
});
|
|
41
|
+
addComponents(generateLinearLoader(), {
|
|
42
|
+
respectPrefix: true,
|
|
43
|
+
respectImportant: true
|
|
44
|
+
});
|
|
45
|
+
addComponents(generateFontComponents(theme('typographySizes'), theme), {
|
|
46
|
+
respectPrefix: true,
|
|
47
|
+
respectImportant: true
|
|
48
|
+
});
|
|
49
|
+
addComponents(generateFormControlComponents(theme('formControl')), {
|
|
50
|
+
respectPrefix: true,
|
|
51
|
+
respectImportant: true
|
|
52
|
+
});
|
|
53
|
+
addComponents(generateDatePicker(), {
|
|
54
|
+
respectPrefix: true,
|
|
55
|
+
respectImportant: true
|
|
37
56
|
});
|
|
38
|
-
addComponents(generateLinearLoader());
|
|
39
|
-
addComponents(generateFontComponents(theme('typographySizes'), theme));
|
|
40
|
-
addComponents(generateFormControlComponents(theme('formControl')));
|
|
41
|
-
addComponents(generateDatePicker());
|
|
42
57
|
THEMES.forEach(({ name })=>{
|
|
43
58
|
addVariant(`active-theme-${name.toLowerCase()}`, [
|
|
44
59
|
`[data-theme="${name.toLowerCase()}"] &`,
|
package/package.json
CHANGED
|
@@ -39,22 +39,31 @@ export const WestpacUIKitBasePlugin = plugin.withOptions(
|
|
|
39
39
|
/**
|
|
40
40
|
* Utilities
|
|
41
41
|
*/
|
|
42
|
-
addUtilities(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
addUtilities(
|
|
43
|
+
{
|
|
44
|
+
'.focus-outline': { [`@apply ${theme('focusOutline')}`]: {} },
|
|
45
|
+
'.background-transition': { [`@apply ${theme('backgroundTransition')}`]: {} },
|
|
46
|
+
'.select-caret': {
|
|
47
|
+
backgroundImage:
|
|
48
|
+
"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' style='color: rgb(89,87,103);'><path fill='currentColor' d='M0 0l7 8 7-8z'/></svg>\")",
|
|
49
|
+
},
|
|
48
50
|
},
|
|
49
|
-
|
|
51
|
+
{ respectPrefix: true, respectImportant: true },
|
|
52
|
+
);
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
55
|
* Components
|
|
53
56
|
*/
|
|
54
|
-
addComponents(generateLinearLoader());
|
|
55
|
-
addComponents(generateFontComponents(theme('typographySizes'), theme)
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
addComponents(generateLinearLoader(), { respectPrefix: true, respectImportant: true });
|
|
58
|
+
addComponents(generateFontComponents(theme('typographySizes'), theme), {
|
|
59
|
+
respectPrefix: true,
|
|
60
|
+
respectImportant: true,
|
|
61
|
+
});
|
|
62
|
+
addComponents(generateFormControlComponents(theme('formControl')), {
|
|
63
|
+
respectPrefix: true,
|
|
64
|
+
respectImportant: true,
|
|
65
|
+
});
|
|
66
|
+
addComponents(generateDatePicker(), { respectPrefix: true, respectImportant: true });
|
|
58
67
|
|
|
59
68
|
/**
|
|
60
69
|
* Variants
|