baseui 0.0.0-next-a48c2fd → 0.0.0-next-90efe07

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.
@@ -32,7 +32,10 @@ var StyledRoot = (0, _styles.styled)('div', function (_ref) {
32
32
  gridColumnGap: $theme.sizing.scale600,
33
33
  gridTemplateColumns: 'min-content auto min-content',
34
34
  gridTemplateRows: 'auto min-content',
35
- margin: $theme.sizing.scale600
35
+ marginTop: $theme.sizing.scale600,
36
+ marginRight: $theme.sizing.scale600,
37
+ marginBottom: $theme.sizing.scale600,
38
+ marginLeft: $theme.sizing.scale600
36
39
  };
37
40
  });
38
41
  exports.StyledRoot = StyledRoot;
@@ -247,6 +247,8 @@ function getBorderRadiiStyles(_ref9) {
247
247
  }
248
248
  } else if ($shape === _constants.SHAPE.circle || $shape === _constants.SHAPE.round) {
249
249
  value = '50%';
250
+ } else if ($size === _constants.SIZE.mini) {
251
+ value = $theme.borders.radius200;
250
252
  }
251
253
 
252
254
  return {
@@ -198,6 +198,8 @@ function getBorderRadiiStyles({ $theme, $size, $shape }) {
198
198
  }
199
199
  } else if ($shape === SHAPE.circle || $shape === SHAPE.round) {
200
200
  value = '50%';
201
+ } else if ($size === SIZE.mini) {
202
+ value = $theme.borders.radius200;
201
203
  }
202
204
 
203
205
  return {
@@ -24,7 +24,10 @@ export const StyledRoot = styled('div', ({
24
24
  gridColumnGap: $theme.sizing.scale600,
25
25
  gridTemplateColumns: 'min-content auto min-content',
26
26
  gridTemplateRows: 'auto min-content',
27
- margin: $theme.sizing.scale600
27
+ marginTop: $theme.sizing.scale600,
28
+ marginRight: $theme.sizing.scale600,
29
+ marginBottom: $theme.sizing.scale600,
30
+ marginLeft: $theme.sizing.scale600
28
31
  };
29
32
  });
30
33
  StyledRoot.displayName = "StyledRoot";
@@ -244,6 +244,8 @@ function getBorderRadiiStyles({
244
244
  }
245
245
  } else if ($shape === SHAPE.circle || $shape === SHAPE.round) {
246
246
  value = '50%';
247
+ } else if ($size === SIZE.mini) {
248
+ value = $theme.borders.radius200;
247
249
  }
248
250
 
249
251
  return {
@@ -113,6 +113,7 @@ export const StyledListItemElement = styled('li', props => {
113
113
  $size
114
114
  } = props;
115
115
  return { ...($size === OPTION_LIST_SIZE.compact ? $theme.typography.font100 : $theme.typography.font200),
116
+ boxSizing: 'border-box',
116
117
  position: 'relative',
117
118
  display: 'block',
118
119
  color: getFontColor(props),
@@ -26,7 +26,7 @@ class TimezonePicker extends React.Component {
26
26
  });
27
27
 
28
28
  _defineProperty(this, "buildTimezones", compareDate => {
29
- const timezones = [];
29
+ let timezones = [];
30
30
 
31
31
  for (const zoneName of zones) {
32
32
  try {
@@ -55,6 +55,10 @@ class TimezonePicker extends React.Component {
55
55
  // Ignores timezones that are not available within a user's browser/operating system
56
56
  console.error(`failed to format zone name ${zoneName}`);
57
57
  }
58
+ }
59
+
60
+ if (this.props.additionalTimezones) {
61
+ timezones = timezones.concat(this.props.additionalTimezones);
58
62
  } // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
59
63
 
60
64
 
@@ -23,7 +23,10 @@ export var StyledRoot = styled('div', function (_ref) {
23
23
  gridColumnGap: $theme.sizing.scale600,
24
24
  gridTemplateColumns: 'min-content auto min-content',
25
25
  gridTemplateRows: 'auto min-content',
26
- margin: $theme.sizing.scale600
26
+ marginTop: $theme.sizing.scale600,
27
+ marginRight: $theme.sizing.scale600,
28
+ marginBottom: $theme.sizing.scale600,
29
+ marginLeft: $theme.sizing.scale600
27
30
  };
28
31
  });
29
32
  StyledRoot.displayName = "StyledRoot";
@@ -239,6 +239,8 @@ function getBorderRadiiStyles(_ref9) {
239
239
  }
240
240
  } else if ($shape === SHAPE.circle || $shape === SHAPE.round) {
241
241
  value = '50%';
242
+ } else if ($size === SIZE.mini) {
243
+ value = $theme.borders.radius200;
242
244
  }
243
245
 
244
246
  return {
@@ -120,6 +120,7 @@ export var StyledListItemElement = styled('li', function (props) {
120
120
  $theme = props.$theme,
121
121
  $size = props.$size;
122
122
  return _objectSpread(_objectSpread({}, $size === OPTION_LIST_SIZE.compact ? $theme.typography.font100 : $theme.typography.font200), {}, {
123
+ boxSizing: 'border-box',
123
124
  position: 'relative',
124
125
  display: 'block',
125
126
  color: getFontColor(props),
@@ -109,14 +109,18 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
109
109
  // Ignores timezones that are not available within a user's browser/operating system
110
110
  console.error("failed to format zone name ".concat(zoneName));
111
111
  }
112
- } // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
113
-
112
+ }
114
113
  } catch (err) {
115
114
  _iterator.e(err);
116
115
  } finally {
117
116
  _iterator.f();
118
117
  }
119
118
 
119
+ if (_this.props.additionalTimezones) {
120
+ timezones = timezones.concat(_this.props.additionalTimezones);
121
+ } // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
122
+
123
+
120
124
  return timezones.sort(function (a, b) {
121
125
  var offsetDelta = b.offset - a.offset;
122
126
  if (offsetDelta !== 0) return offsetDelta;
@@ -64,7 +64,7 @@ export declare type BadgePosition = {
64
64
  export declare type FixedMarkerProps = {
65
65
  size?: PinHeadSize;
66
66
  needle?: NeedleSize;
67
- label?: string;
67
+ label?: React.ReactNode;
68
68
  startEnhancer?: React.ComponentType<{
69
69
  size: number;
70
70
  }>;
@@ -92,7 +92,7 @@ export declare type FloatingMarkerOverrides = {
92
92
  LabelEnhancerContainer?: Override;
93
93
  };
94
94
  export declare type FloatingMarkerProps = {
95
- label?: string;
95
+ label?: React.ReactNode;
96
96
  anchor?: AnchorPositions;
97
97
  endEnhancer?: React.ComponentType<{
98
98
  size: number;
@@ -106,7 +106,7 @@ export declare type FloatingMarkerProps = {
106
106
  };
107
107
  export declare type PinHeadProps = {
108
108
  size?: PinHeadSize;
109
- label?: string;
109
+ label?: React.ReactNode;
110
110
  endEnhancer?: React.ComponentType<{
111
111
  size: number;
112
112
  }>;
@@ -102,7 +102,7 @@ export type BadgePositionT = {
102
102
  export type FixedMarkerPropsT = {|
103
103
  size?: PinHeadSizeT,
104
104
  needle?: NeedleSizeT,
105
- label?: string,
105
+ label?: React.Node,
106
106
  startEnhancer?: React.AbstractComponent<{| size: number |}>,
107
107
  endEnhancer?: React.AbstractComponent<{| size: number |}>,
108
108
  kind?: KindT,
@@ -130,7 +130,7 @@ export type FloatingMarkerOverridesT = {
130
130
  };
131
131
 
132
132
  export type FloatingMarkerPropsT = {
133
- label?: string,
133
+ label?: React.Node,
134
134
  anchor?: AnchorPositionsT,
135
135
  endEnhancer?: React.AbstractComponent<{| size: number |}>,
136
136
  startEnhancer?: React.AbstractComponent<{| size: number |}>,
@@ -141,7 +141,7 @@ export type FloatingMarkerPropsT = {
141
141
 
142
142
  export type PinHeadPropsT = {
143
143
  size?: PinHeadSizeT,
144
- label?: string,
144
+ label?: React.Node,
145
145
  endEnhancer?: React.AbstractComponent<{| size: number |}>,
146
146
  startEnhancer?: React.AbstractComponent<{| size: number |}>,
147
147
  color: string,
@@ -134,6 +134,7 @@ var StyledListItemElement = (0, _styles.styled)('li', function (props) {
134
134
  $theme = props.$theme,
135
135
  $size = props.$size;
136
136
  return _objectSpread(_objectSpread({}, $size === _constants.OPTION_LIST_SIZE.compact ? $theme.typography.font100 : $theme.typography.font200), {}, {
137
+ boxSizing: 'border-box',
137
138
  position: 'relative',
138
139
  display: 'block',
139
140
  color: getFontColor(props),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-a48c2fd",
3
+ "version": "0.0.0-next-90efe07",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",
@@ -118,14 +118,18 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
118
118
  // Ignores timezones that are not available within a user's browser/operating system
119
119
  console.error("failed to format zone name ".concat(zoneName));
120
120
  }
121
- } // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
122
-
121
+ }
123
122
  } catch (err) {
124
123
  _iterator.e(err);
125
124
  } finally {
126
125
  _iterator.f();
127
126
  }
128
127
 
128
+ if (_this.props.additionalTimezones) {
129
+ timezones = timezones.concat(_this.props.additionalTimezones);
130
+ } // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
131
+
132
+
129
133
  return timezones.sort(function (a, b) {
130
134
  var offsetDelta = b.offset - a.offset;
131
135
  if (offsetDelta !== 0) return offsetDelta;
@@ -21,6 +21,7 @@ export declare type TimezonePickerOverrides = {
21
21
  Select?: Override;
22
22
  };
23
23
  export declare type TimezonePickerProps = {
24
+ additionalTimezones?: Timezone[];
24
25
  /**
25
26
  * If not provided, defaults to new Date(). Important to note that the timezone picker only
26
27
  * displays options related to the provided date. Take Pacific Time for example. On March 9th,
@@ -30,6 +30,7 @@ export type TimezoneT = {
30
30
  offset: number,
31
31
  };
32
32
  export type TimezonePickerPropsT = {
33
+ additionalTimezones?: TimezoneT[],
33
34
  /**
34
35
  * If not provided, defaults to new Date(). Important to note that the timezone picker only
35
36
  * displays options related to the provided date. Take Pacific Time for example. On March 9th,