Skip to content

Releases: aws-amplify/amplify-ui

@aws-amplify/[email protected]

06 Sep 22:49
38b4dc4

Choose a tag to compare

Patch Changes

@aws-amplify/[email protected]

06 Sep 22:49
38b4dc4

Choose a tag to compare

Patch Changes

@aws-amplify/[email protected]

06 Sep 22:49
38b4dc4

Choose a tag to compare

Patch Changes

@aws-amplify/[email protected]

30 Aug 22:16
64561ae

Choose a tag to compare

Patch Changes

@aws-amplify/[email protected]

30 Aug 22:16
64561ae

Choose a tag to compare

Patch Changes

  • #2459 8350d36e2 Thanks @jacoblogan! - Angular: Add amplify-dialcodeselect class which contains the previous countrycodeselect styles
    Vue: Add amplify-dialcodeselect class which contains the previous countrycodeselect styles
    React: Added 'dialCode' versions of all 'countryCode' props so that users can begin migrating away from the deprecated countryCode.

    countryCodeLabel => dialCodeLabel
    countryCodeName => dialCodeName
    onCountryCodeChange => onDialCodeChange
    countryCodeRef => dialCodeRef
    defaultCountryCode => defaultDialCode
    
  • Updated dependencies [b60fec2c4]:

@aws-amplify/[email protected]

30 Aug 22:16
64561ae

Choose a tag to compare

Minor Changes

  • #2459 8350d36e2 Thanks @jacoblogan! - Angular: Add amplify-dialcodeselect class which contains the previous countrycodeselect styles
    Vue: Add amplify-dialcodeselect class which contains the previous countrycodeselect styles
    React: Added 'dialCode' versions of all 'countryCode' props so that users can begin migrating away from the deprecated countryCode.

    countryCodeLabel => dialCodeLabel
    countryCodeName => dialCodeName
    onCountryCodeChange => onDialCodeChange
    countryCodeRef => dialCodeRef
    defaultCountryCode => defaultDialCode
    

Patch Changes

@aws-amplify/[email protected]

30 Aug 22:16
64561ae

Choose a tag to compare

Patch Changes

  • #2459 8350d36e2 Thanks @jacoblogan! - Angular: Add amplify-dialcodeselect class which contains the previous countrycodeselect styles
    Vue: Add amplify-dialcodeselect class which contains the previous countrycodeselect styles
    React: Added 'dialCode' versions of all 'countryCode' props so that users can begin migrating away from the deprecated countryCode.

    countryCodeLabel => dialCodeLabel
    countryCodeName => dialCodeName
    onCountryCodeChange => onDialCodeChange
    countryCodeRef => dialCodeRef
    defaultCountryCode => defaultDialCode
    
  • Updated dependencies [b60fec2c4]:

@aws-amplify/[email protected]

16 Aug 21:53
ffba713

Choose a tag to compare

Patch Changes

@aws-amplify/[email protected]

11 Aug 21:48
c3435af

Choose a tag to compare

Minor Changes

  • #2300 eae79ae15 Thanks @zchenwei! - feat: adding indeterminate state checkbox

    Users can create an indeterminate CheckboxField by setting isIndeterminate prop to true.

    Example

    import * as React from 'react';
    
    import { CheckboxField, Flex, View } from '@aws-amplify/ui-react';
    
    export const CheckboxFieldIndeterminateExample = () => {
      const [checkedItems, setCheckedItems] = React.useState([false, false]);
      const checkedItemsRef = React.useRef(null);
      const allChecked = checkedItems.every(Boolean);
      const isIndeterminate = checkedItems.some(Boolean) && !allChecked;
    
      if (isIndeterminate) {
        checkedItemsRef.current = [...checkedItems];
      }
      const handleAllPetsChange = () => {
        if (isIndeterminate) {
          setCheckedItems([true, true]);
        } else if (allChecked) {
          setCheckedItems([false, false]);
        } else if (checkedItemsRef.current) {
          setCheckedItems(checkedItemsRef.current);
        } else {
          setCheckedItems([true, true]);
        }
      };
    
      const handleCatChange = (e) => {
        const newCheckedItems = [e.target.checked, checkedItems[1]];
        if (!newCheckedItems.some(Boolean) || newCheckedItems.every(Boolean)) {
          checkedItemsRef.current = null;
        }
        setCheckedItems(newCheckedItems);
      };
    
      const handleDogChange = (e) => {
        const newCheckedItems = [checkedItems[0], e.target.checked];
        if (!newCheckedItems.some(Boolean) || newCheckedItems.every(Boolean)) {
          checkedItemsRef.current = null;
        }
        setCheckedItems(newCheckedItems);
      };
    
      return (
        <Flex direction="column" gap="0">
          <CheckboxField
            name="all-pets"
            label="All Pets"
            value="allPets"
            checked={allChecked}
            isIndeterminate={isIndeterminate}
            onChange={handleAllPetsChange}
          />
          <View paddingLeft="25px">
            <CheckboxField
              name="cat"
              label="Cat"
              value="cat"
              checked={checkedItems[0]}
              onChange={handleCatChange}
            />
            <CheckboxField
              name="dog"
              label="Dog"
              value="dog"
              checked={checkedItems[1]}
              onChange={handleDogChange}
            />
          </View>
        </Flex>
      );
    };

Patch Changes

@aws-amplify/[email protected]

11 Aug 21:48
c3435af

Choose a tag to compare

Patch Changes