How to use the @kiwicom/orbit-design-tokens.defaultTokens.colorIconSecondary function in @kiwicom/orbit-design-tokens

To help you get started, we’ve selected a few @kiwicom/orbit-design-tokens examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kiwicom / margarita / apps / core / components / sectorInfo / SectorInfo.js View on Github external
const SectorInfo = (props: Props) => {
  if (props.data == null) {
    return null;
  }
  return (
    <>
      
        
      
      
    
  );
};
github kiwicom / margarita / src / TagsInput / components / DeleteButton.js View on Github external
render() {
    const { onPress, disabled, style } = this.props;
    return (
      
        
      
    );
  }
}
github kiwicom / margarita / packages / universal-components / src / TextInput / TextInput.js View on Github external
const prefix = React.Children.map(children, child => {
    if (React.isValidElement(child)) {
      let iconColor = defaultTokens.colorIconInput;

      if (Platform.OS !== 'web') {
        if (status === 'warning') {
          iconColor = defaultTokens.colorIconCritical;
        } else if (status === 'success') {
          iconColor = defaultTokens.colorIconSuccess;
        } else iconColor = defaultTokens.colorIconSecondary;
      }

      return React.cloneElement(child, {
        color: iconColor,
        size,
      });
    }
    return child;
  });
github kiwicom / margarita / packages / components / src / tripInput / TripInput.js View on Github external
export default function TripInput({
  style,
  icon,
  label,
  value,
  placeholder,
  onPress,
}: Props) {
  const inputIcon = React.cloneElement(icon, {
    color: defaultTokens.colorIconSecondary,
  });
  const hasValue = value.length > 0;
  return (
github kiwicom / margarita / packages / universal-components / src / TextInput / TextInput.js View on Github external
const ClearButton = ({ onPress, focused, value }) => {
  if (focused && value) {
    return (
      
        
      
    );
  }
  return null;
};
github kiwicom / margarita / packages / components / src / passengersButton / PassengersButton.native.js View on Github external
export default function PassengersButton({ onPress, adults, infants }: Props) {
  return (
    
      
    
  );
}
github kiwicom / margarita / src / Stepper / Stepper.js View on Github external
onDecrement,
  number,
  showNumber = true,
  numberStyle,
  min,
  max,
  disableDecrement: originalDisableDecrement,
  disableIncrement: originalDisableIncrement,
}: Props) {
  const belowMin = min != null && number <= min;
  const aboveMax = max != null && number >= max;
  const disableDecrement = belowMin ?? originalDisableDecrement;
  const disableIncrement = aboveMax ?? originalDisableIncrement;

  const iconProps = {
    color: defaultTokens.colorIconSecondary,
    size: 'small',
  };

  let numberDisplayed = number;
  if (belowMin) {
    numberDisplayed = min;
  }
  if (aboveMax) {
    numberDisplayed = max;
  }

  return (
github kiwicom / margarita / packages / components / src / tripTypeButton / TripTypeButton.js View on Github external
render() {
    const { onPress, icon, label } = this.props;
    return (
      
        
      
    );
  }
}