Skip to content

Releases: aragon/gov-ui-kit

v1.0.47

23 Sep 10:02
Compare
Choose a tag to compare

Added

  • Add optional confirmationLabel prop to the VoteProposalDataListItem component in order to pass a custom string
    when needed.
  • Add new xs size for core Avatar component

v1.0.46

21 Sep 09:13
Compare
Choose a tag to compare

Added

  • Add IconType.BLOCKCHAIN_WALLETCONNECT and associated asset
  • Add EmptyState fallback to ProposalActions when no actions provided
  • Support dropdownItems property on ProposalActions module component to display custom actions
  • Update ProposalActions component to support actionKey property and forward index property to sub action
    components

Changed

  • Update layout of EmptyState for centering
  • Update AccordionItem border classes for usage within bordered containers
  • Update ProposalAction to handle an EmptyState fallback for no actions passed, improve layout of children with
    "Expand all" (eg. 'Execute actions' button, etc)
  • Update DataListItem component to support button rendering and standalone usage
  • Make IProposalAction type generic on ProposalAction module component to support actions with additional parameters
    when used inside a form (e.g. actions with an additional index parameter)
  • Update minor and patch versions of NPM dependencies
  • Bump micromatch from 4.0.7 to 4.0.8
  • Bump webpack from 5.91.0 to 5.94.0
  • Bump actions/setup-python from 5.1.1 to 5.2.0
  • Bump express from 4.19.2 to 4.21.0

Fixed

  • Fix the TextAreaRichText core component to expose empty string as default value instead of empty paragraph
  • Update DropdownItem style to correctly render items with icons aligned on the left

v1.0.45

23 Aug 14:02
Compare
Choose a tag to compare

Added

  • Update illustration SVGs with custom CSS color customizations
  • Add isLoading property to <Spinner /> core component to render static spinners
  • Update the interfaces of the <Dialog.Footer /> and <DialogAlert.Footer /> core components to support the
    disabled and isLoading properties for the footer buttons

Fixed

  • Use correct percentage formatting on <AssetDataListItem /> module component

v1.0.44

20 Aug 10:09
Compare
Choose a tag to compare

Added

  • Implement useRandomId hook and update fields components to use it
  • Update <TextAreaRichText /> core component to expose immediatelyRender property for SSR usage
  • Update <RadioGroup />, <CheckboxGroup /> and <Switch /> core components to render the InputContainer component and support the label, helpText, alert and isOptional properties.

Fixed

  • Update <Wallet /> module component to correctly propagate custom chainId and wagmi configs to <MemberAvatar /> component
  • Fix FIAT_TOTAL_SHORT, FIAT_TOTAL_LONG, TOKEN_AMOUNT_SHORT and PERCENTAGE_SHORT formats to truncate small numbers
  • Hide ens loader indicator on <Wallet /> module component for mobile devices
  • Fix Storybook stories path of <Checkbox /> core components
  • Move <Radio /> core components under /forms folder
  • Fix <InputFileAvatar /> props interface to only expose supported props
  • Fix customisation of z-index property on <TextAreaRichText /> core component

Changed

  • Default type attribute of <Button /> core component to button
  • Rename label property on <Switch /> core component to inlineLabel to also support the existing label property from the InputContainer component.
  • Update minor and patch NPM dependencies
  • Bump elliptic from 6.5.5 to 6.5.7

v1.0.43

13 Aug 13:25
Compare
Choose a tag to compare

Added

  • Add Aragon logo, remove dark background options and create custom theme using Aragon branding for ODS storybook
  • Update OdsModulesProvider to support wagmiInitialState configuration for Wagmi provider

Changed

  • Update @typescript-eslint packages to v8
  • Remove "Summary" section from ProposalActionTokenMint module component and update action interface to only support one receiver
  • Update minor and patch NPM dependencies

v1.0.42

07 Aug 16:42
Compare
Choose a tag to compare

Fixed

  • Hide minimum participation details on ProposalVotingBreakdownToken module component when minParticipation is set to zero
  • Correctly forward web3 params (e.g. chainId) to native ProposalActions components
  • Fix ENS name truncation on <Wallet /> module component
  • Update <Wallet /> module component to only resolve user ENS name when name property is not set
  • Fix expand behaviour of TextAreaRichText core component when used inside a dialog and hide the input label
  • Fix NumberInput component to correctly update values on plus / minus buttons click
  • Fix ProposalVotingBreakdownToken module component to display correct progress variant when min-participation and support are equal to the threshold required

Added

  • Update <Wallet /> module component to support custom chainId and wagmi configurations
  • Add z-index property customisation for TextAreaRichText core component when expanded
  • Handle useFocusTrap property on dialog components to support disabling default focus-trap behaviour
  • Add AlertCard to ProposalActionsAction to alert user when action will send native currency
  • Update ICompositeAddress interface and components using it to support custom avatar
  • Make ProposalStatus strings customisable
  • Implement and export proposalStatusToVotingStatus utility
  • Add 'Raw' and 'Decoded' views to ProposalActions module component

Changed

  • Update minor and patch NPM dependencies
  • Bump postcss from 8.4.40 to 8.4.41
  • Update ProposalStatus type to enum to align it with ProposalVotingStatus enum

v1.0.41

30 Jul 08:05
Compare
Choose a tag to compare

Added

  • Export VoteIndicator type from Vote module.
  • Update useBlockExplorer hook to export a getBlockExplorer function, update buildEntityUrl function to support a chainId parameter which overrides the chainId hook parameter.

Changed

  • Update minor and patch NPM dependencies

v1.0.40

26 Jul 11:17
Compare
Choose a tag to compare

Added

  • Implement ProposalAction and ProposalVoting module components
  • Handle WithdrawToken, ChangeMembers, UpdateMetadata, ChangeSettings and TokenMint actions on ProposalActions module component
  • Add optional hideLabelTokenVoting and tokenSymbol props to the MemberDataListItemStructure module component
  • Implement invariant core utility

Changed

  • Renamed votingPower prop to tokenAmount in the MemberDataListItemStructure module component
  • Update interface for Accordion.Container to expose value prop
  • Update styles on Tabs.List for latest spec
  • Rename indicator property of <Progress /> core component to thresholdIndicator and set data-value property to indicator component to easier test its value
  • Bump softprops/action-gh-release from 2.0.6 to 2.0.8
  • Bump ws from 7.5.9 to 7.5.10
  • Update minor and patch NPM dependencies

Fixed

  • Update ProposalDataListItem module component to avoid showing null when date property is not defined
  • Fix DURATION date format to use the date locale set on the formatter

v1.0.39

16 Jul 13:50
Compare
Choose a tag to compare

Changed

  • Update minor and patch NPM dependencies
  • Update useBlockExplorer hook to return information about the block explorer

v1.0.38

16 Jul 08:04
Compare
Choose a tag to compare

Added

  • Add new variant prop to core Progress component, which defaults to primary
  • Add new optional indicator prop to core Progress component
  • Add reset filter functionality to DataListFilter core component

Fixed

  • Remove fixed width from EmptyState core component
  • Center CardEmptyState core component
  • Truncate long strings on DaoDataListItem, AssetDataListItem, VoteDataListItem module components
  • Fix errors and warnings thrown on component tests

Changed

  • Bump prettier-plugin-organize-imports to 4.0.0
  • Update minor and patch NPM dependencies
  • Update minor and patch Github workflow dependencies