feat(dashboard): Regions domain (#6534)

**What**
- Implements new Region domain design
- Adds new SplitView component for managing adding nested relations in FocusModals, eg. adding countries to a region.
- Adds new Combobox component for multi select fields in forms

**medusajs/ui**
- Fix styling of RadioGroup.Choicebox component

CLOSES CORE-1650, CORE-1671
This commit is contained in:
Kasper Fabricius Kristensen
2024-02-29 13:16:14 +00:00
committed by GitHub
parent 0b9fcb6324
commit 44a5567d0d
46 changed files with 3163 additions and 885 deletions
@@ -0,0 +1,12 @@
/**
* Providers only have an ID to identify them. This function formats the ID
* into a human-readable string.
* @param id - The ID of the provider
* @returns A formatted string
*/
export const formatProvider = (id: string) => {
return id
.split("-")
.map((s) => s.charAt(0).toUpperCase() + s.slice(1))
.join(" ")
}