@paubox/ui 1.1.0 → 1.2.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/index.esm.js CHANGED
@@ -24810,7 +24810,9 @@ function _templateObject$c() {
24810
24810
  var data = _tagged_template_literal$c([
24811
24811
  "\n ",
24812
24812
  "\n color: ",
24813
- ";\n font-family: 'Roboto', sans-serif;\n"
24813
+ ";\n font-family: 'Roboto', sans-serif;\n position: ",
24814
+ ";\n left: ",
24815
+ ";\n"
24814
24816
  ]);
24815
24817
  _templateObject$c = function _templateObject() {
24816
24818
  return data;
@@ -24823,19 +24825,27 @@ var StyledTypography = styled.div(_templateObject$c(), function(param) {
24823
24825
  }, function(param) {
24824
24826
  var $color = param.$color;
24825
24827
  return $color;
24828
+ }, function(param) {
24829
+ var $srOnly = param.$srOnly;
24830
+ return $srOnly ? 'absolute' : undefined;
24831
+ }, function(param) {
24832
+ var $srOnly = param.$srOnly;
24833
+ return $srOnly ? '-9999px' : undefined;
24826
24834
  });
24827
24835
  var Typography = function(_param) {
24828
- var variant = _param.variant, children = _param.children, _param_color = _param.color, color = _param_color === void 0 ? 'primary' : _param_color, rest = _object_without_properties$a(_param, [
24836
+ var variant = _param.variant, children = _param.children, _param_color = _param.color, color = _param_color === void 0 ? 'primary' : _param_color, _param_srOnly = _param.srOnly, srOnly = _param_srOnly === void 0 ? false : _param_srOnly, rest = _object_without_properties$a(_param, [
24829
24837
  "variant",
24830
24838
  "children",
24831
- "color"
24839
+ "color",
24840
+ "srOnly"
24832
24841
  ]);
24833
24842
  var Tag = getTagForVariant(variant);
24834
24843
  var colorString = color === 'primary' ? textPrimary : color === 'secondary' ? textSecondary : color;
24835
24844
  return /*#__PURE__*/ jsx(StyledTypography, _object_spread_props$g(_object_spread$j({
24836
24845
  as: Tag,
24837
24846
  $variant: variant,
24838
- $color: colorString
24847
+ $color: colorString,
24848
+ $srOnly: srOnly
24839
24849
  }, rest), {
24840
24850
  children: children
24841
24851
  }));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "1.1.0",
5
+ "version": "1.2.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -11,5 +11,6 @@ export type TypographyProps = {
11
11
  css?: SerializedStyles;
12
12
  as?: keyof React.JSX.IntrinsicElements;
13
13
  htmlFor?: string;
14
+ srOnly?: boolean;
14
15
  } & React.HTMLAttributes<HTMLDivElement>;
15
16
  export declare const Typography: React.FC<TypographyProps>;