@okta/odyssey-react-mui 1.24.0 → 1.24.1
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 +10 -0
- package/dist/index.scss +1 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +71 -16
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/theme/components.tsx +92 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.24.1](https://github.com/okta/odyssey/compare/v1.24.0...v1.24.1) (2024-10-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **odyssey-react-mui:** add back margin removed in error ([e36cb89](https://github.com/okta/odyssey/commit/e36cb89d20daf7eb68cbc58d8391ea7cf512b281))
|
|
11
|
+
- **odyssey-react-mui:** add back no children styling ([2a07fa3](https://github.com/okta/odyssey/commit/2a07fa37130d48206939aa94c42add4a3f105157))
|
|
12
|
+
- **odyssey-react-mui:** add back size and full width styling ([11552fd](https://github.com/okta/odyssey/commit/11552fd7818d232535eb89c86d04c3ccc15896b3))
|
|
13
|
+
- **odyssey-react-mui:** fix margin start ([478e20e](https://github.com/okta/odyssey/commit/478e20ef320ee26c1fd96e93a1dabb7131808d6f))
|
|
14
|
+
- **odyssey-storybook:** add back floatingAction styles ([0b84954](https://github.com/okta/odyssey/commit/0b8495484de11e35e2959c2e3b6dba80394b6a3e))
|
|
15
|
+
|
|
6
16
|
## [1.24.0](https://github.com/okta/odyssey/compare/v1.20.0...v1.24.0) (2024-10-01)
|
|
7
17
|
|
|
8
18
|
### Features
|
package/dist/index.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAwC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AASvC,eAAO,MAAM,UAAU,4DAIpB;IACD,aAAa,EAAE,YAAY,CAAC;IAC5B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACjC,KAAG,YAAY,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAwC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AASvC,eAAO,MAAM,UAAU,4DAIpB;IACD,aAAa,EAAE,YAAY,CAAC;IAC5B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACjC,KAAG,YAAY,CAAC,YAAY,CA4jG5B,CAAC"}
|
package/dist/theme/components.js
CHANGED
|
@@ -561,6 +561,25 @@ export const components = ({
|
|
|
561
561
|
fontSize: `${odysseyTokens.TypographyLineHeightUi}em`
|
|
562
562
|
}
|
|
563
563
|
},
|
|
564
|
+
...(ownerState.size === "small" && {
|
|
565
|
+
height: odysseyTokens.Spacing6,
|
|
566
|
+
paddingBlock: odysseyTokens.Spacing2,
|
|
567
|
+
paddingInline: odysseyTokens.Spacing3,
|
|
568
|
+
fontSize: odysseyTokens.TypographySizeBody
|
|
569
|
+
}),
|
|
570
|
+
...(ownerState.size === "large" && {
|
|
571
|
+
height: odysseyTokens.Spacing8,
|
|
572
|
+
paddingBlock: odysseyTokens.Spacing4,
|
|
573
|
+
paddingInline: odysseyTokens.Spacing4
|
|
574
|
+
}),
|
|
575
|
+
...(ownerState.fullWidth === true && {
|
|
576
|
+
width: "100%",
|
|
577
|
+
marginBlock: "0",
|
|
578
|
+
marginInline: "0",
|
|
579
|
+
"&:not(:last-child)": {
|
|
580
|
+
marginBlockEnd: odysseyTokens.Spacing4
|
|
581
|
+
}
|
|
582
|
+
}),
|
|
564
583
|
...(ownerState.variant === "primary" && {
|
|
565
584
|
color: odysseyTokens.HueNeutralWhite,
|
|
566
585
|
backgroundColor: odysseyTokens.PalettePrimaryMain,
|
|
@@ -649,29 +668,65 @@ export const components = ({
|
|
|
649
668
|
backgroundColor: "transparent",
|
|
650
669
|
color: odysseyTokens.TypographyColorDisabled
|
|
651
670
|
}
|
|
671
|
+
}),
|
|
672
|
+
...(ownerState.variant === "floatingAction" && {
|
|
673
|
+
backgroundColor: "transparent",
|
|
674
|
+
color: odysseyTokens.TypographyColorAction,
|
|
675
|
+
"&:hover": {
|
|
676
|
+
backgroundColor: odysseyTokens.HueNeutral100
|
|
677
|
+
},
|
|
678
|
+
"&:active": {
|
|
679
|
+
backgroundColor: odysseyTokens.HueNeutral200
|
|
680
|
+
},
|
|
681
|
+
"&:disabled": {
|
|
682
|
+
backgroundColor: "transparent",
|
|
683
|
+
color: odysseyTokens.TypographyColorDisabled
|
|
684
|
+
}
|
|
685
|
+
}),
|
|
686
|
+
...(ownerState.children === "" && {
|
|
687
|
+
minWidth: "auto",
|
|
688
|
+
padding: odysseyTokens.Spacing3,
|
|
689
|
+
[`.${buttonClasses.endIcon}, .${buttonClasses.startIcon}`]: {
|
|
690
|
+
margin: "0"
|
|
691
|
+
},
|
|
692
|
+
...(ownerState.size === "large" && {
|
|
693
|
+
padding: odysseyTokens.Spacing4
|
|
694
|
+
}),
|
|
695
|
+
...(ownerState.size === "small" && {
|
|
696
|
+
padding: odysseyTokens.Spacing2
|
|
697
|
+
}),
|
|
698
|
+
...(ownerState.size === "large" && {
|
|
699
|
+
padding: odysseyTokens.Spacing4
|
|
700
|
+
})
|
|
652
701
|
})
|
|
653
702
|
};
|
|
654
703
|
},
|
|
655
704
|
endIcon: ({
|
|
656
705
|
ownerState
|
|
657
|
-
}) =>
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
marginInlineStart:
|
|
663
|
-
|
|
664
|
-
|
|
706
|
+
}) => {
|
|
707
|
+
const hasNoChildren = ownerState.children === "" || ownerState.children === undefined || ownerState.children === null;
|
|
708
|
+
return {
|
|
709
|
+
display: "inline-flex",
|
|
710
|
+
margin: 0,
|
|
711
|
+
marginInlineStart: odysseyTokens.Spacing2,
|
|
712
|
+
...(hasNoChildren && {
|
|
713
|
+
marginInlineStart: 0
|
|
714
|
+
})
|
|
715
|
+
};
|
|
716
|
+
},
|
|
665
717
|
startIcon: ({
|
|
666
718
|
ownerState
|
|
667
|
-
}) =>
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
marginInlineEnd:
|
|
673
|
-
|
|
674
|
-
|
|
719
|
+
}) => {
|
|
720
|
+
const hasNoChildren = ownerState.children === "" || ownerState.children === undefined || ownerState.children === null;
|
|
721
|
+
return {
|
|
722
|
+
display: "inline-flex",
|
|
723
|
+
margin: 0,
|
|
724
|
+
marginInlineEnd: odysseyTokens.Spacing2,
|
|
725
|
+
...(hasNoChildren && {
|
|
726
|
+
marginInlineEnd: 0
|
|
727
|
+
})
|
|
728
|
+
};
|
|
729
|
+
}
|
|
675
730
|
}
|
|
676
731
|
},
|
|
677
732
|
MuiButtonBase: {
|