@mackin.com/styleguide 8.9.2 → 8.9.5

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.
Files changed (3) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +11 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -944,6 +944,7 @@ declare const Td: (props: {
944
944
  align?: Alignment;
945
945
  style?: React.CSSProperties;
946
946
  colSpan?: number;
947
+ className?: string;
947
948
  }) => JSX.Element;
948
949
 
949
950
  declare const TdCurrency: (props: {
@@ -1139,4 +1140,4 @@ interface TabContainerProps {
1139
1140
  }
1140
1141
  declare const TabContainer: (p: TabContainerProps) => JSX.Element;
1141
1142
 
1142
- export { Accordian, AccordianProps, Alignment, Autocomplete, AutocompleteProps, AutocompleteValue, Backdrop$1 as Backdrop, Backdrop as Backdrop2, BoundMemoryPager, BoundStaticPager, Button, ButtonProps, Calendar, CalendarProps, Checkbox, CheckboxProps, ConfirmModal, ConfirmModalProps, CopyButton, DateInput, DateInputProps, Divider, ErrorModal, FileUploader, Form, FormColumnRow, FormFlexRow, FormProps, GlobalStyles, Header, Highlight, ICONS, Icon, Image, ImageProps, InfoPanel, InfoTip, InfoTipProps, Input, InputProps, ItemPager, Label, LabelProps, Link, LinkProps, List, ListItem, ListItemProps, ListProps, MackinTheme, Modal, ModalProps, Nav, NormalizeCss, NumberInput, NumberInputProps, OmniLink, OmniLinkProps, PagedResult, Pager, PagerProps, Picker, PickerOption, PickerProps, PickerValue, Popover, ProgressBar, ProgressBarProps, SearchBox, SearchBoxProps, Slider, TabContainer, TabContainerProps, TabHeader, TabHeaderProps, TabLocker, Table, Td, TdCurrency, TdNumber, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, Th, ThSort, ThemeProvider, ThemeRenderer, ToggleButton, ToggleButtonGroup, ToggleButtonGroupProps, ToggleButtonProps, TogglePasswordInput, Tr, WaitingIndicator, calcDynamicThemeProps, defaultTheme, enumToEntities, getCurrencyDisplay, getFileSizeDisplay, modalScrollFixClassName, useAccordianState, useBooleanChanged, useIgnoreMount, useMediaQuery, useScrollbarSize, useThemeSafely, useWaiting };
1143
+ export { Accordian, AccordianProps, Alignment, Autocomplete, AutocompleteProps, AutocompleteValue, Backdrop$1 as Backdrop, Backdrop as Backdrop2, BoundMemoryPager, BoundStaticPager, Button, ButtonProps, Calendar, CalendarProps, Checkbox, CheckboxProps, ConfirmModal, ConfirmModalProps, CopyButton, DateInput, DateInputProps, Divider, ErrorModal, FileUploader, Form, FormColumnRow, FormFlexRow, FormProps, GlobalStyles, Header, Highlight, ICONS, Icon, Image, ImageProps, InfoPanel, InfoTip, InfoTipProps, Input, InputProps, ItemPager, Label, LabelProps, Link, LinkProps, List, ListItem, ListItemProps, ListProps, MackinTheme, Modal, ModalProps, Nav, NormalizeCss, NumberInput, NumberInputProps, OmniLink, OmniLinkProps, PagedResult, Pager, PagerProps, Picker, PickerOption, PickerProps, PickerValue, Popover, ProgressBar, ProgressBarProps, SearchBox, SearchBoxProps, Slider, SliderProps, SliderValue, TabContainer, TabContainerProps, TabHeader, TabHeaderProps, TabLocker, Table, Td, TdCurrency, TdNumber, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, Th, ThSort, ThemeProvider, ThemeRenderer, ToggleButton, ToggleButtonGroup, ToggleButtonGroupProps, ToggleButtonProps, TogglePasswordInput, Tr, WaitingIndicator, calcDynamicThemeProps, defaultTheme, enumToEntities, getCurrencyDisplay, getFileSizeDisplay, modalScrollFixClassName, useAccordianState, useBooleanChanged, useIgnoreMount, useMediaQuery, useScrollbarSize, useThemeSafely, useWaiting };
package/index.js CHANGED
@@ -3215,6 +3215,8 @@ const OmniLink = (props) => {
3215
3215
  };
3216
3216
 
3217
3217
  const roundPxPadding = '4px';
3218
+ //TB: needs to be 2rem padding for right caret
3219
+ //TB: the generated border is bad (border: 1pxsolidrgba(0, 0, 0, 0.125);)
3218
3220
  const Picker = (props) => {
3219
3221
  const selectProps = __rest(props
3220
3222
  // if we put numbers in, we expect them out
@@ -3314,6 +3316,13 @@ const Picker = (props) => {
3314
3316
  }
3315
3317
  return React__namespace.createElement("option", { key: val, value: val }, label);
3316
3318
  })));
3319
+ let iconHeight;
3320
+ if (props.controlAlign) {
3321
+ iconHeight = `calc(100% - ${theme.controls.inputErrorMinHeight})`;
3322
+ }
3323
+ else {
3324
+ iconHeight = '100%';
3325
+ }
3317
3326
  return (React__namespace.createElement("span", { className: css.cx(css.css({
3318
3327
  label: 'PickerWrapper',
3319
3328
  position: 'relative',
@@ -3325,7 +3334,7 @@ const Picker = (props) => {
3325
3334
  !props.readOnly && (React__namespace.createElement(Icon, { id: "sortDesc", className: css.cx(css.css({
3326
3335
  position: 'absolute',
3327
3336
  right: `calc(${theme.controls.padding} + ${props.round ? roundPxPadding : '0px'})`,
3328
- height: '100%',
3337
+ height: iconHeight,
3329
3338
  pointerEvents: 'none',
3330
3339
  color: theme.colors.font
3331
3340
  }), props.iconClassName) }))));
@@ -4134,7 +4143,7 @@ const Td = (props) => {
4134
4143
  vertical-align: middle;
4135
4144
  text-align: ${(_a = props.align) !== null && _a !== void 0 ? _a : 'center'};
4136
4145
  `;
4137
- return (React__namespace.createElement("td", { colSpan: props.colSpan, style: props.style, className: css.cx('table__td', tdStyles) }, props.children));
4146
+ return (React__namespace.createElement("td", { colSpan: props.colSpan, style: props.style, className: css.cx('table__td', tdStyles, props.className) }, props.children));
4138
4147
  };
4139
4148
 
4140
4149
  const TdCurrency = (props) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "8.9.2",
3
+ "version": "8.9.5",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",