@oaknational/oak-components 3.30.1 → 3.31.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.
@@ -4656,7 +4656,7 @@ var colorSchemes = [
4656
4656
  ];
4657
4657
  // Converted to styled-component so it can be used in '&:checked:not(:disabled) + ${StyledOakIcon}' to change svg color.
4658
4658
  var StyledOakIcon$2 = styled__default.default(OakIcon)(templateObject_1$Y || (templateObject_1$Y = tslib.__makeTemplateObject([""], [""])));
4659
- var StyledFlexBox$2 = styled__default.default(OakFlex)(templateObject_2$p || (templateObject_2$p = tslib.__makeTemplateObject(["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"])), function (props) {
4659
+ var StyledFlexBox$2 = styled__default.default(OakFlex)(templateObject_2$p || (templateObject_2$p = tslib.__makeTemplateObject(["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"])), function (props) {
4660
4660
  return parseColor(props.$colorSchemeTokens.background);
4661
4661
  }, function (props) { return parseColor(props.$colorSchemeTokens.borderColor); }, parseColor("text-primary"), function (props) {
4662
4662
  return parseColor(props.$colorSchemeTokens.disabledBackground);
@@ -24,7 +24,7 @@ var colorSchemes = [
24
24
  ];
25
25
  // Converted to styled-component so it can be used in '&:checked:not(:disabled) + ${StyledOakIcon}' to change svg color.
26
26
  var StyledOakIcon = styled(OakIcon)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
27
- var StyledFlexBox = styled(OakFlex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"])), function (props) {
27
+ var StyledFlexBox = styled(OakFlex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"])), function (props) {
28
28
  return parseColor(props.$colorSchemeTokens.background);
29
29
  }, function (props) { return parseColor(props.$colorSchemeTokens.borderColor); }, parseColor("text-primary"), function (props) {
30
30
  return parseColor(props.$colorSchemeTokens.disabledBackground);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "3.30.1",
3
+ "version": "3.31.0",
4
4
  "licence": "MIT",
5
5
  "packageManager": "pnpm@11.2.0",
6
6
  "description": "Shared components for Oak applications",