@aragon/gov-ui-kit 1.0.74 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,14 +1,23 @@
1
- # Changelog
1
+ # @aragon/gov-ui-kit
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ## 1.1.0
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
6
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ ### Minor Changes
7
6
 
8
- ## [Unreleased]
7
+ - [`8413957`](https://github.com/aragon/gov-ui-kit/commit/84139578d63eede344d90a725bf76f33f8964089) Thanks [@cgero-eth](https://github.com/cgero-eth)! - Update release workflow, implement snapshot and preview workflows
8
+
9
+ - [#448](https://github.com/aragon/gov-ui-kit/pull/448) [`a71a873`](https://github.com/aragon/gov-ui-kit/commit/a71a87330452bdb5eb602a6f186e053c3bcf5144) Thanks [@cgero-eth](https://github.com/cgero-eth)! - Update minor and patch NPM dependencies
10
+
11
+ ## [1.0.75] - 2025-04-02
12
+
13
+ ### Fixed
14
+
15
+ - Remove 'overflow-auto' from <DialogRoot /> causing issue with content scroll
9
16
 
10
17
  ## [1.0.74] - 2025-04-02
11
18
 
19
+ ### Changed
20
+
12
21
  - **BREAKING**: Update implementation of `AlertCard` component:
13
22
  - Remove `description` property from the `AlertCard` component in favour of `children` property
14
23
 
@@ -46,8 +55,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
46
55
  ### Changed
47
56
 
48
57
  - Bump `@babel/runtime-corejs3` to 7.26.10
49
- - Update DAO name vertical alignment in `<DaoDataListItem.Structure />` component to be centered in the case when no
50
- address is provided
58
+ - Update DAO name vertical alignment in `<DaoDataListItem.Structure />` component to be centered in the case when no address is provided
51
59
 
52
60
  ### Fixed
53
61
 
@@ -146,13 +154,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
146
154
 
147
155
  ### Changed
148
156
 
149
- - Update `InputFileAvatar` core component to remove `onFileSelect` and `onFileError` properties and use `value` and
150
- `onChange` properties instead
157
+ - Update `InputFileAvatar` core component to remove `onFileSelect` and `onFileError` properties and use `value` and `onChange` properties instead
151
158
  - Update `IProposalActionUpdateMetadataDaoMetadata` interface `logo` property to `avatar` to better align with actions
152
159
  - Bump `softprops/action-gh-release` from 2.2.0 to 2.2.1
153
160
  - Update minor and patch NPM dependencies
154
- - Update `<ProposalDataListItem />` module component to include `statusContext` property and support `ADVANCEABLE`
155
- status
161
+ - Update `<ProposalDataListItem />` module component to include `statusContext` property and support `ADVANCEABLE` status
156
162
  - Remove `<MajorityVotingResult />` and `<ApprovalThresholdResult />` sub-components for `<ProposalDataListItem />`
157
163
 
158
164
  ## [1.0.62] - 2025-01-08
@@ -191,8 +197,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
191
197
  - Bump `softprops/action-gh-release` from 2.1.0 to 2.2.0
192
198
  - Bump `@rollup/plugin-node-resolve` from 15.3.0 to 16.0.0
193
199
  - Update minor and patch NPM dependencies
194
- - Update `AssetDataListItemStructure` module component to remove the `priceChange` property and related logic for
195
- calculating percentage change
200
+ - Update `AssetDataListItemStructure` module component to remove the `priceChange` property and related logic for calculating percentage change
196
201
 
197
202
  ## [1.0.59] - 2024-12-11
198
203
 
@@ -201,8 +206,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
201
206
  - Fix color of body name on `<ProposalVoting.BodyContext />` module component
202
207
  - Fix re-render issue on `<AddressInput />` module component when `onAccept` prop changes on every render
203
208
  - Update `<CheckboxCard />` core component to set full-width to `children` property wrapper
204
- - Update `<ProposalActions.Item />` module component to display correct feedback for actions with data and value and
205
- disable decoded view for actions without parameters
209
+ - Update `<ProposalActions.Item />` module component to display correct feedback for actions with data and value and disable decoded view for actions without parameters
206
210
 
207
211
  ### Changed
208
212
 
@@ -215,8 +219,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
215
219
 
216
220
  ### Added
217
221
 
218
- - Update `ProposalActions` module component to improve rendering of decoded parameters and support and "edit" mode
219
- through the `editMode` property
222
+ - Update `ProposalActions` module component to improve rendering of decoded parameters and support and "edit" mode through the `editMode` property
220
223
 
221
224
  ### Changed
222
225
 
@@ -227,14 +230,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
227
230
 
228
231
  ### Added
229
232
 
230
- - Add new `ProposalVoting` module components (`ProposalVotingBodyContent`, `ProposalVotingBodySummary`,
231
- `ProposalVotingBodySummaryList` and `ProposalVotingBodySummaryListItem`)
233
+ - Add new `ProposalVoting` module components (`ProposalVotingBodyContent`, `ProposalVotingBodySummary`, `ProposalVotingBodySummaryList` and `ProposalVotingBodySummaryListItem`)
232
234
  - Add story and export `ProposalVotingProgress` module component
233
235
 
234
236
  ### Changed
235
237
 
236
- - Update `ProposalVotingStage` module component to accept new optional `bodyList` prop and update rendering logic to
237
- handle multi body proposals per stage.
238
+ - Update `ProposalVotingStage` module component to accept new optional `bodyList` prop and update rendering logic to handle multi body proposals per stage.
238
239
 
239
240
  ## [1.0.56] - 2024-11-26
240
241
 
@@ -259,14 +260,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
259
260
 
260
261
  ### Added
261
262
 
262
- - Update `VoteDataListItem` component to add "Voted" string and possibility to customise it through the
263
- `confirmationLabel` property
263
+ - Update `VoteDataListItem` component to add "Voted" string and possibility to customise it through the `confirmationLabel` property
264
264
  - Update `formatterUtils` documentation to add number formatting examples
265
265
 
266
266
  ### Fixed
267
267
 
268
- - Update layout of `DataListItem` core component and layouts of components using it (Asset, Dao, Member, Proposal,
269
- Transaction, Vote)
268
+ - Update layout of `DataListItem` core component and layouts of components using it (Asset, Dao, Member, Proposal, Transaction, Vote)
270
269
  - Update implementation of `DataListItem` skeleton components for better parity and no layout shift
271
270
  - Improve responsiveness for `DefinitionList` container and items for middle breakpoints
272
271
  - Update `DaoAvatar` to correctly set text size depending on `size` property
@@ -299,8 +298,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
299
298
 
300
299
  ### Fixed
301
300
 
302
- - Update `ProposalVoting.Container` module component to make stages accordion controlled and support updating the
303
- current active stage programmatically
301
+ - Update `ProposalVoting.Container` module component to make stages accordion controlled and support updating the current active stage programmatically
304
302
  - Fix `VoteProposalDataListItem` module component to truncate long proposal IDs
305
303
 
306
304
  ### Changed
@@ -347,15 +345,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
347
345
 
348
346
  ### Added
349
347
 
350
- - Add optional `children` property to `RadioCard` and `CheckboxCard` core components displayed only when component is
351
- selected
348
+ - Add optional `children` property to `RadioCard` and `CheckboxCard` core components displayed only when component is selected
352
349
 
353
350
  ### Changed
354
351
 
355
- - Update `RadioCard` and `CheckboxCard` core components to have optional description property, fix alignment when no
356
- description provided
357
- - Update `<ProposalDataListItem.Structure >` module component to make proposal type property optional and support custom
358
- proposal results
352
+ - Update `RadioCard` and `CheckboxCard` core components to have optional description property, fix alignment when no description provided
353
+ - Update `<ProposalDataListItem.Structure >` module component to make proposal type property optional and support custom proposal results
359
354
  - Bump `actions/checkout` from 4.2.0 to 4.2.1
360
355
  - Update minor and patch NPM dependencies
361
356
 
@@ -364,8 +359,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
364
359
  ### Added
365
360
 
366
361
  - Update `Tabs` core component to handle disabled tab trigger state
367
- - Support `forceMount` property on `Accordion` core component and `ProposalVotingStage` module component to correctly
368
- render dynamic content on proposal stages
362
+ - Support `forceMount` property on `Accordion` core component and `ProposalVotingStage` module component to correctly render dynamic content on proposal stages
369
363
 
370
364
  ### Fixed
371
365
 
@@ -374,8 +368,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
374
368
 
375
369
  ### Changed
376
370
 
377
- - Update `<ProposalVotingTabs />` module component to disable `Breakdown` and `Votes` tabs when voting status is not
378
- active
371
+ - Update `<ProposalVotingTabs />` module component to disable `Breakdown` and `Votes` tabs when voting status is not active
379
372
  - Bump `actions/setup-node` from 4.0.3 to 4.0.4
380
373
  - Bump `actions/checkout` from 4.1.7 to 4.2.0
381
374
  - Update minor and patch NPM dependencies
@@ -385,8 +378,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
385
378
 
386
379
  ### Added
387
380
 
388
- - Add optional `confirmationLabel` prop to the `VoteProposalDataListItem` component in order to pass a custom string
389
- when needed
381
+ - Add optional `confirmationLabel` prop to the `VoteProposalDataListItem` component in order to pass a custom string when needed
390
382
  - Add new `xs` size for core `Avatar` component
391
383
 
392
384
  ## [1.0.46] - 2024-09-21
@@ -396,18 +388,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
396
388
  - Add `IconType.BLOCKCHAIN_WALLETCONNECT` and associated asset
397
389
  - Add `EmptyState` fallback to ProposalActions when no actions provided
398
390
  - Support `dropdownItems` property on `ProposalActions` module component to display custom actions
399
- - Update `ProposalActions` component to support `actionKey` property and forward `index` property to sub action
400
- components
391
+ - Update `ProposalActions` component to support `actionKey` property and forward `index` property to sub action components
401
392
 
402
393
  ### Changed
403
394
 
404
395
  - Update layout of `EmptyState` for centering
405
396
  - Update `AccordionItem` border classes for usage within bordered containers
406
- - Update `ProposalAction` to handle an `EmptyState` fallback for no actions passed, improve layout of children with
407
- "Expand all" (eg. 'Execute actions' button, etc)
397
+ - Update `ProposalAction` to handle an `EmptyState` fallback for no actions passed, improve layout of children with "Expand all" (eg. 'Execute actions' button, etc)
408
398
  - Update `DataListItem` component to support button rendering and standalone usage
409
- - Make `IProposalAction` type generic on ProposalAction module component to support actions with additional parameters
410
- when used inside a form (e.g. actions with an additional `index` parameter)
399
+ - 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)
411
400
  - Update minor and patch versions of NPM dependencies
412
401
  - Bump `micromatch` from 4.0.7 to 4.0.8
413
402
  - Bump `webpack` from 5.91.0 to 5.94.0
@@ -425,8 +414,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
425
414
 
426
415
  - Update illustration SVGs with custom CSS color customizations
427
416
  - Add `isLoading` property to `<Spinner />` core component to render static spinners
428
- - Update the interfaces of the `<Dialog.Footer />` and `<DialogAlert.Footer />` core components to support the
429
- `disabled` and `isLoading` properties for the footer buttons
417
+ - Update the interfaces of the `<Dialog.Footer />` and `<DialogAlert.Footer />` core components to support the `disabled` and `isLoading` properties for the footer buttons
430
418
 
431
419
  ### Fixed
432
420
 
@@ -438,15 +426,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
438
426
 
439
427
  - Implement `useRandomId` hook and update fields components to use it
440
428
  - Update `<TextAreaRichText />` core component to expose `immediatelyRender` property for SSR usage
441
- - Update `<RadioGroup />`, `<CheckboxGroup />` and `<Switch />` core components to render the `InputContainer` component
442
- and support the label, helpText, alert and isOptional properties.
429
+ - Update `<RadioGroup />`, `<CheckboxGroup />` and `<Switch />` core components to render the `InputContainer` component and support the label, helpText, alert and isOptional properties.
443
430
 
444
431
  ### Fixed
445
432
 
446
- - Update `<Wallet />` module component to correctly propagate custom `chainId` and `wagmi` configs to `<MemberAvatar />`
447
- component
448
- - Fix `FIAT_TOTAL_SHORT`, `FIAT_TOTAL_LONG`, `TOKEN_AMOUNT_SHORT` and `PERCENTAGE_SHORT` formats to truncate small
449
- numbers
433
+ - Update `<Wallet />` module component to correctly propagate custom `chainId` and `wagmi` configs to `<MemberAvatar />` component
434
+ - Fix `FIAT_TOTAL_SHORT`, `FIAT_TOTAL_LONG`, `TOKEN_AMOUNT_SHORT` and `PERCENTAGE_SHORT` formats to truncate small numbers
450
435
  - Hide ens loader indicator on `<Wallet />` module component for mobile devices
451
436
  - Fix Storybook stories path of `<Checkbox />` core components
452
437
  - Move `<Radio />` core components under `/forms` folder
@@ -456,8 +441,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
456
441
  ### Changed
457
442
 
458
443
  - Default `type` attribute of `<Button />` core component to `button`
459
- - Rename `label` property on `<Switch />` core component to `inlineLabel` to also support the existing `label` property
460
- from the `InputContainer` component.
444
+ - Rename `label` property on `<Switch />` core component to `inlineLabel` to also support the existing `label` property from the `InputContainer` component.
461
445
  - Update minor and patch NPM dependencies
462
446
  - Bump `elliptic` from `6.5.5` to `6.5.7`
463
447
 
@@ -471,23 +455,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
471
455
  ### Changed
472
456
 
473
457
  - Update `@typescript-eslint` packages to v8
474
- - Remove "Summary" section from `ProposalActionTokenMint` module component and update action interface to only support
475
- one receiver
458
+ - Remove "Summary" section from `ProposalActionTokenMint` module component and update action interface to only support one receiver
476
459
  - Update minor and patch NPM dependencies
477
460
 
478
461
  ## [1.0.42] - 2024-08-07
479
462
 
480
463
  ### Fixed
481
464
 
482
- - Hide minimum participation details on `ProposalVotingBreakdownToken` module component when minParticipation is set to
483
- zero
465
+ - Hide minimum participation details on `ProposalVotingBreakdownToken` module component when minParticipation is set to zero
484
466
  - Correctly forward web3 params (e.g. `chainId`) to native `ProposalActions` components
485
467
  - Fix ENS name truncation on `<Wallet />` module component
486
468
  - Update `<Wallet />` module component to only resolve user ENS name when name property is not set
487
469
  - Fix expand behaviour of `TextAreaRichText` core component when used inside a dialog and hide the input label
488
470
  - Fix `NumberInput` component to correctly update values on plus / minus buttons click
489
- - Fix `ProposalVotingBreakdownToken` module component to display correct progress variant when min-participation and
490
- support are equal to the threshold required
471
+ - Fix `ProposalVotingBreakdownToken` module component to display correct progress variant when min-participation and support are equal to the threshold required
491
472
 
492
473
  ### Added
493
474
 
@@ -511,8 +492,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
511
492
  ### Added
512
493
 
513
494
  - Export `VoteIndicator` type from `Vote` module
514
- - Update `useBlockExplorer` hook to export a `getBlockExplorer` function, update `buildEntityUrl` function to support a
515
- `chainId` parameter which overrides the `chainId` hook parameter
495
+ - Update `useBlockExplorer` hook to export a `getBlockExplorer` function, update `buildEntityUrl` function to support a `chainId` parameter which overrides the `chainId` hook parameter
516
496
 
517
497
  ### Changed
518
498
 
@@ -523,8 +503,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
523
503
  ### Added
524
504
 
525
505
  - Implement `ProposalAction` and `ProposalVoting` module components
526
- - Handle `WithdrawToken`, `ChangeMembers`, `UpdateMetadata`, `ChangeSettings` and `TokenMint` actions on
527
- `ProposalActions` module component
506
+ - Handle `WithdrawToken`, `ChangeMembers`, `UpdateMetadata`, `ChangeSettings` and `TokenMint` actions on `ProposalActions` module component
528
507
  - Add optional `hideLabelTokenVoting` and `tokenSymbol` props to the `MemberDataListItemStructure` module component
529
508
  - Implement `invariant` core utility
530
509
 
@@ -533,8 +512,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
533
512
  - Renamed `votingPower` prop to `tokenAmount` in the `MemberDataListItemStructure` module component
534
513
  - Update interface for `Accordion.Container` to expose value prop
535
514
  - Update styles on `Tabs.List` for latest spec
536
- - Rename `indicator` property of `<Progress />` core component to `thresholdIndicator` and set `data-value` property to
537
- indicator component to easier test its value
515
+ - Rename `indicator` property of `<Progress />` core component to `thresholdIndicator` and set `data-value` property to indicator component to easier test its value
538
516
  - Bump `softprops/action-gh-release` from 2.0.6 to 2.0.8
539
517
  - Bump `ws` from 7.5.9 to 7.5.10
540
518
  - Update minor and patch NPM dependencies
@@ -623,8 +601,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
623
601
 
624
602
  ### Added
625
603
 
626
- - Handle new `layoutClassnames` property on `DataList.Container` component to simplify implementation of custom
627
- `DataList` layouts
604
+ - Handle new `layoutClassnames` property on `DataList.Container` component to simplify implementation of custom `DataList` layouts
628
605
  - Create `ssrUtils` core utilities
629
606
 
630
607
  ## [1.0.33] - 2024-06-06
@@ -676,8 +653,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
676
653
 
677
654
  - Implement `DefinitionList` core component
678
655
  - Implement `TransactionDataListItem.Skeleton` module component
679
- - Implement `OdsCoreProvider`, `LinkBase` and `AvatarBase` core components to support `Link` and `Image` NextJs
680
- components.
656
+ - Implement `OdsCoreProvider`, `LinkBase` and `AvatarBase` core components to support `Link` and `Image` NextJs components.
681
657
 
682
658
  ### Changed
683
659
 
@@ -691,8 +667,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
691
667
 
692
668
  ### Added
693
669
 
694
- - Implement `MemberDataListItem.Skeleton`, `AssetDataListItem.Skeleton`, and `DaoDataListItem.Skeleton` module
695
- components
670
+ - Implement `MemberDataListItem.Skeleton`, `AssetDataListItem.Skeleton`, and `DaoDataListItem.Skeleton` module components
696
671
  - Implement `Tabs` core component
697
672
  - Custom CSS property added for `Collapsible` to adjust z-index
698
673
 
@@ -761,8 +736,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
761
736
  - Add `stageId` and `stageTitle` properties to `IApprovalThresholdResult` & `IMajorityVotingResult` interfaces
762
737
  - Add `id` and optional `tag` properties to `ProposalDataListItemStructure`
763
738
  - Remove `publisherProfileLink` and `protocolUpdate` properties from `ProposalDataListItemStructure`
764
- - Update `date` and `result` properties of `ProposalDataListItemStructure` to be optional and `publisher` to allow for
765
- multiple publishers
739
+ - Update `date` and `result` properties of `ProposalDataListItemStructure` to be optional and `publisher` to allow for multiple publishers
766
740
 
767
741
  ### Fixed
768
742
 
@@ -798,8 +772,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
798
772
 
799
773
  ### Added
800
774
 
801
- - Implement `DaoDataListItem.Structure`, `ProposalDataListItem.Structure`, `TransactionDataListItem.Structure`,
802
- `MemberDataListItem.Structure`, `AssetDataListItem.Structure`, and `AddressInput` module components
775
+ - Implement `DaoDataListItem.Structure`, `ProposalDataListItem.Structure`, `TransactionDataListItem.Structure`, `MemberDataListItem.Structure`, `AssetDataListItem.Structure`, and `AddressInput` module components
803
776
  - Implement `StatePingAnimation` core component
804
777
  - Implement `addressUtils` and `ensUtils` module utilities
805
778
  - Implement `useDebouncedValue` core hook and `clipboardUtils` core utility
@@ -816,8 +789,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
816
789
  ### Fixed
817
790
 
818
791
  - Reexport module components
819
- - Library build process to avoid bundling dependencies and peer-dependencies when using subfolders import (e.g.
820
- `wagmi/chains`)
792
+ - Library build process to avoid bundling dependencies and peer-dependencies when using subfolders import (e.g. `wagmi/chains`)
821
793
  - Formatter utility to support negative numbers
822
794
 
823
795
  ## [1.0.20] - 2024-03-13
@@ -957,8 +929,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
957
929
 
958
930
  ### Added
959
931
 
960
- - Implement `CardEmptyState`, `EmptyState`, `Checkbox`, `CheckboxGroup`, `CheckboxCard`, `RadioGroup`, `Radio`, and
961
- `RadioCard` components
932
+ - Implement `CardEmptyState`, `EmptyState`, `Checkbox`, `CheckboxGroup`, `CheckboxCard`, `RadioGroup`, `Radio`, and `RadioCard` components
962
933
  - Export all component types
963
934
  - Handle style transitions on `ActionItem`, `Button` and `Toggle` components
964
935
  - Property `defaultValue` to `ToggleGroup` component to set an initial value for uncontrolled usage