@charcoal-ui/react 2.1.0 → 2.2.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/dist/index.js CHANGED
@@ -359,6 +359,7 @@ var RadioInput = styled5.input.attrs({ type: "radio" })`
359
359
  display: block;
360
360
  box-sizing: border-box;
361
361
 
362
+ margin: 0;
362
363
  padding: 6px;
363
364
 
364
365
  width: 20px;
@@ -366,14 +367,14 @@ var RadioInput = styled5.input.attrs({ type: "radio" })`
366
367
 
367
368
  ${({ hasError = false }) => theme((o) => [
368
369
  o.borderRadius("oval"),
369
- o.bg.text5.hover.press,
370
+ o.bg.surface1.hover.press,
370
371
  hasError && o.outline.assertive
371
372
  ])};
372
373
 
373
374
  &:not(:checked) {
374
375
  border-width: 2px;
375
376
  border-style: solid;
376
- border-color: ${({ theme: theme4 }) => theme4.color.text4};
377
+ border-color: ${({ theme: theme4 }) => theme4.color.text3};
377
378
  }
378
379
 
379
380
  &:checked {
@@ -394,7 +395,7 @@ var RadioInput = styled5.input.attrs({ type: "radio" })`
394
395
  }
395
396
  `;
396
397
  var RadioLabel = styled5.div`
397
- ${theme((o) => [o.typography(14)])}
398
+ ${theme((o) => [o.typography(14), o.font.text2])}
398
399
  `;
399
400
  var StyledRadioGroup = styled5.div`
400
401
  display: grid;
@@ -550,7 +551,7 @@ var MultiSelectRoot = styled6.label`
550
551
  var MultiSelectLabel = styled6.div`
551
552
  display: flex;
552
553
  align-items: center;
553
- ${theme((o) => [o.typography(14), o.font.text1])}
554
+ ${theme((o) => [o.typography(14), o.font.text2])}
554
555
  `;
555
556
  var MultiSelectInput = styled6.input.attrs({ type: "checkbox" })`
556
557
  &[type='checkbox'] {
@@ -672,6 +673,7 @@ function SwitchCheckbox(props) {
672
673
  var Label = styled7.label`
673
674
  display: inline-grid;
674
675
  grid-template-columns: auto 1fr;
676
+ align-items: center;
675
677
  gap: ${({ theme: theme4 }) => px3(theme4.spacing[4])};
676
678
  cursor: pointer;
677
679
  outline: 0;
@@ -683,7 +685,7 @@ var Label = styled7.label`
683
685
  }
684
686
  `;
685
687
  var LabelInner = styled7.div`
686
- ${theme((o) => o.typography(14))}
688
+ ${theme((o) => [o.typography(14), o.font.text2])}
687
689
  `;
688
690
  var SwitchInput = styled7.input.attrs({
689
691
  type: "checkbox"
@@ -1380,7 +1382,6 @@ var ModalButtons = styled11.div`
1380
1382
  `;
1381
1383
 
1382
1384
  // src/components/LoadingSpinner/index.tsx
1383
- import { transparentize } from "polished";
1384
1385
  import React13, { useImperativeHandle, useRef as useRef4 } from "react";
1385
1386
  import styled12, { keyframes } from "styled-components";
1386
1387
  function LoadingSpinner({
@@ -1397,8 +1398,11 @@ var LoadingSpinnerRoot = styled12.div.attrs({ role: "progressbar" })`
1397
1398
  font-size: ${(props) => props.size}px;
1398
1399
  width: ${(props) => props.size}px;
1399
1400
  height: ${(props) => props.size}px;
1400
- background-color: ${({ theme: theme4, transparent }) => transparent ? "transparent" : transparentize(0.32, theme4.color.background1)};
1401
- color: ${({ theme: theme4 }) => theme4.color.text4};
1401
+ opacity: 0.84;
1402
+ ${({ transparent }) => theme((o) => [
1403
+ o.font.text4,
1404
+ transparent ? o.bg.transparent : o.bg.background1
1405
+ ])}
1402
1406
  `;
1403
1407
  var scaleout = keyframes`
1404
1408
  from {
@@ -3862,6 +3866,7 @@ var OptionRoot = styled13.li`
3862
3866
  `;
3863
3867
  var OptionCheckIcon = styled13(Icon_default)`
3864
3868
  visibility: hidden;
3869
+ ${theme((o) => [o.font.text2])}
3865
3870
 
3866
3871
  ${({ isSelected }) => isSelected && css5`
3867
3872
  visibility: visible;
@@ -3869,7 +3874,7 @@ var OptionCheckIcon = styled13(Icon_default)`
3869
3874
  `;
3870
3875
  var OptionText = styled13.span`
3871
3876
  display: block;
3872
- ${theme((o) => [o.typography(14)])}
3877
+ ${theme((o) => [o.typography(14), o.font.text2])}
3873
3878
  `;
3874
3879
 
3875
3880
  // src/components/DropdownSelector/Popover.tsx
@@ -3962,7 +3967,7 @@ var DropdownSelector = ({
3962
3967
  isDisabled: disabled,
3963
3968
  autoComplete
3964
3969
  }
3965
- ), /* @__PURE__ */ React16.createElement(DropdownButtonWrapper, null, /* @__PURE__ */ React16.createElement(DropdownButton, { ...buttonProps, ref: triggerRef, invalid }, /* @__PURE__ */ React16.createElement(DropdownButtonText, { ...valueProps }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React16.createElement(Icon_default, { name: "16/Menu" })), state.isOpen && /* @__PURE__ */ React16.createElement(DropdownPopover, { open: state.isOpen, onClose: () => state.close() }, /* @__PURE__ */ React16.createElement(Listbox_default, { ...menuProps, state, mode }))), hasAssertiveText && /* @__PURE__ */ React16.createElement(
3970
+ ), /* @__PURE__ */ React16.createElement(DropdownButtonWrapper, null, /* @__PURE__ */ React16.createElement(DropdownButton, { ...buttonProps, ref: triggerRef, invalid }, /* @__PURE__ */ React16.createElement(DropdownButtonText, { ...valueProps }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React16.createElement(DropdownButtonIcon, { name: "16/Menu" })), state.isOpen && /* @__PURE__ */ React16.createElement(DropdownPopover, { open: state.isOpen, onClose: () => state.close() }, /* @__PURE__ */ React16.createElement(Listbox_default, { ...menuProps, state, mode }))), hasAssertiveText && /* @__PURE__ */ React16.createElement(
3966
3971
  AssertiveText,
3967
3972
  {
3968
3973
  invalid,
@@ -4018,11 +4023,14 @@ var DropdownButtonText = styled14.span`
4018
4023
 
4019
4024
  ${theme((o) => [o.typography(14), o.font.text2])}
4020
4025
  `;
4026
+ var DropdownButtonIcon = styled14(Icon_default)`
4027
+ ${theme((o) => [o.font.text2])}
4028
+ `;
4021
4029
  var AssertiveText = styled14.div`
4022
4030
  ${({ invalid }) => theme((o) => [
4023
4031
  o.typography(14),
4024
4032
  o.margin.top(8),
4025
- invalid && o.font.assertive
4033
+ invalid ? o.font.assertive : o.font.text2
4026
4034
  ])}
4027
4035
  `;
4028
4036
  var DropdownPopover = styled14(Popover_default)`
@@ -4236,7 +4244,7 @@ var CheckboxInputOverlay = styled16.div`
4236
4244
  ${({ checked }) => checked !== true && hiddenCss};
4237
4245
  `;
4238
4246
  var InputLabel = styled16.div`
4239
- ${theme((o) => [o.typography(14)])}
4247
+ ${theme((o) => [o.typography(14), o.font.text2])}
4240
4248
  `;
4241
4249
 
4242
4250
  // src/components/TagItem/index.tsx