@strapi/design-system 1.5.0 → 1.6.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/dist/Accordion/Accordion.cjs +8 -8
- package/dist/Accordion/Accordion.js +73 -67
- package/dist/Accordion/AccordionContent.cjs +1 -1
- package/dist/Accordion/AccordionContent.js +20 -17
- package/dist/Accordion/AccordionContext.cjs +1 -1
- package/dist/Accordion/AccordionContext.js +10 -4
- package/dist/Accordion/AccordionGroup.cjs +20 -20
- package/dist/Accordion/AccordionGroup.js +98 -59
- package/dist/Accordion/AccordionToggle.cjs +3 -3
- package/dist/Accordion/AccordionToggle.js +108 -89
- package/dist/Accordion/utils.cjs +1 -1
- package/dist/Accordion/utils.js +4 -4
- package/dist/Alert/Alert.cjs +7 -7
- package/dist/Alert/Alert.js +92 -85
- package/dist/Avatar/Avatar.cjs +6 -6
- package/dist/Avatar/Avatar.js +68 -67
- package/dist/Avatar/constants.cjs +1 -1
- package/dist/Avatar/constants.js +1 -1
- package/dist/Badge/Badge.cjs +4 -4
- package/dist/Badge/Badge.js +37 -37
- package/dist/BaseButton/BaseButton.cjs +3 -3
- package/dist/BaseButton/BaseButton.js +39 -27
- package/dist/BaseCheckbox/BaseCheckbox.cjs +6 -6
- package/dist/BaseCheckbox/BaseCheckbox.js +77 -59
- package/dist/BaseLink/BaseLink.cjs +2 -2
- package/dist/BaseLink/BaseLink.js +20 -27
- package/dist/BaseRadio/BaseRadio.cjs +7 -7
- package/dist/BaseRadio/BaseRadio.js +55 -35
- package/dist/BaseRadio/RadioGroup.cjs +1 -1
- package/dist/BaseRadio/RadioGroup.js +31 -28
- package/dist/BaseRadio/context.cjs +1 -1
- package/dist/BaseRadio/context.js +8 -4
- package/dist/BaseRadio/utils.cjs +1 -1
- package/dist/BaseRadio/utils.js +1 -1
- package/dist/Box/Box.cjs +31 -32
- package/dist/Box/Box.js +182 -59
- package/dist/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.js +50 -39
- package/dist/Button/Button.cjs +20 -20
- package/dist/Button/Button.js +83 -74
- package/dist/Button/utils.cjs +23 -23
- package/dist/Button/utils.js +15 -15
- package/dist/Card/Card.cjs +1 -1
- package/dist/Card/Card.js +28 -29
- package/dist/Card/CardAction.cjs +4 -4
- package/dist/Card/CardAction.js +12 -6
- package/dist/Card/CardAsset.cjs +4 -4
- package/dist/Card/CardAsset.js +32 -26
- package/dist/Card/CardBadge.cjs +3 -3
- package/dist/Card/CardBadge.js +14 -10
- package/dist/Card/CardBody.cjs +1 -1
- package/dist/Card/CardBody.js +11 -10
- package/dist/Card/CardCheckbox.cjs +1 -1
- package/dist/Card/CardCheckbox.js +16 -13
- package/dist/Card/CardContent.cjs +2 -2
- package/dist/Card/CardContent.js +11 -11
- package/dist/Card/CardContext.cjs +1 -1
- package/dist/Card/CardContext.js +3 -1
- package/dist/Card/CardHeader.cjs +2 -2
- package/dist/Card/CardHeader.js +9 -7
- package/dist/Card/CardTimer.cjs +2 -2
- package/dist/Card/CardTimer.js +21 -16
- package/dist/Card/CardTitle.cjs +1 -1
- package/dist/Card/CardTitle.js +11 -9
- package/dist/CarouselInput/Carousel.cjs +4 -4
- package/dist/CarouselInput/Carousel.js +8 -9
- package/dist/Combobox/Combobox.cjs +1 -1
- package/dist/Combobox/Combobox.js +32 -33
- package/dist/DatePicker/DatePicker.cjs +1 -1
- package/dist/DatePicker/DatePicker.js +26 -29
- package/dist/Flex/Flex.cjs +5 -5
- package/dist/Flex/Flex.js +29 -17
- package/dist/Icon/Icon.cjs +3 -3
- package/dist/Icon/Icon.js +23 -19
- package/dist/JSONInput/JSONInput.cjs +1 -0
- package/dist/JSONInput/JSONInput.js +97 -0
- package/dist/JSONInput/JSONInputContainer.cjs +30 -0
- package/dist/JSONInput/JSONInputContainer.js +36 -0
- package/dist/JSONInput/index.cjs +1 -0
- package/dist/JSONInput/index.js +4 -0
- package/dist/JSONInput/utils/decorationExtension.cjs +1 -0
- package/dist/JSONInput/utils/decorationExtension.js +24 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -1
- package/dist/KeyboardNavigable/KeyboardNavigable.js +44 -49
- package/dist/Link/Link.cjs +5 -5
- package/dist/Link/Link.js +1 -1
- package/dist/LiveRegions/LiveRegions.cjs +1 -1
- package/dist/LiveRegions/LiveRegions.js +22 -20
- package/dist/LiveRegions/index.cjs +1 -1
- package/dist/LiveRegions/index.js +4 -2
- package/dist/MainNav/NavCondense.cjs +3 -3
- package/dist/MainNav/NavCondense.js +1 -2
- package/dist/MainNav/NavSections.cjs +3 -3
- package/dist/MainNav/NavSections.js +5 -5
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +1 -1
- package/dist/NumberInput/NumberInput.cjs +2 -2
- package/dist/NumberInput/NumberInput.js +1 -1
- package/dist/Pagination/components.cjs +6 -6
- package/dist/Pagination/components.js +16 -17
- package/dist/Searchbar/Searchbar.cjs +7 -7
- package/dist/Searchbar/Searchbar.js +7 -8
- package/dist/Select/Select.cjs +2 -2
- package/dist/Select/Select.js +4 -5
- package/dist/Select/SelectTags.cjs +3 -3
- package/dist/Select/SelectTags.js +1 -1
- package/dist/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/SimpleMenu/SimpleMenu.js +1 -1
- package/dist/Stack/Stack.cjs +5 -5
- package/dist/Stack/Stack.js +33 -33
- package/dist/SubNav/SubNavHeader.cjs +2 -2
- package/dist/SubNav/SubNavHeader.js +1 -1
- package/dist/SubNav/SubNavLink.cjs +4 -4
- package/dist/SubNav/SubNavLink.js +4 -4
- package/dist/SubNav/SubNavLinkSection.cjs +2 -2
- package/dist/SubNav/SubNavLinkSection.js +1 -1
- package/dist/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/SubNav/SubNavSectionLabel.js +1 -1
- package/dist/TextButton/TextButton.cjs +6 -6
- package/dist/TextButton/TextButton.js +51 -50
- package/dist/ThemeProvider/ThemeProvider.cjs +2 -2
- package/dist/ThemeProvider/ThemeProvider.js +12 -11
- package/dist/TimePicker/TimePicker.cjs +2 -2
- package/dist/TimePicker/TimePicker.js +1 -1
- package/dist/Typography/Typography.cjs +7 -7
- package/dist/Typography/Typography.js +28 -17
- package/dist/Typography/utils.cjs +2 -2
- package/dist/Typography/utils.js +6 -6
- package/dist/helpers/arrays.cjs +1 -0
- package/dist/helpers/arrays.js +6 -0
- package/dist/helpers/handleResponsiveValues.cjs +1 -5
- package/dist/helpers/handleResponsiveValues.js +21 -15
- package/dist/helpers/objects.cjs +1 -0
- package/dist/helpers/objects.js +26 -0
- package/dist/helpers/setOpacity.cjs +1 -1
- package/dist/helpers/setOpacity.js +1 -1
- package/dist/helpers/theme.cjs +1 -0
- package/dist/helpers/theme.js +7 -0
- package/dist/helpers/useIntersection.cjs +1 -1
- package/dist/helpers/useIntersection.js +8 -8
- package/dist/hooks/useControllableState.cjs +1 -1
- package/dist/hooks/useControllableState.js +13 -16
- package/dist/index.cjs +1 -1
- package/dist/index.js +205 -201
- package/dist/themes/extendTheme.cjs +4 -4
- package/dist/themes/extendTheme.js +13 -21
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +1 -1
- package/dist/v2/Link/Link.cjs +4 -4
- package/dist/v2/Link/Link.js +1 -1
- package/dist/v2/MainNav/NavCondense.cjs +3 -3
- package/dist/v2/MainNav/NavCondense.js +1 -2
- package/dist/v2/MainNav/NavSections.cjs +3 -3
- package/dist/v2/MainNav/NavSections.js +5 -5
- package/dist/v2/Pagination/components.cjs +7 -7
- package/dist/v2/Pagination/components.js +18 -19
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/v2/SimpleMenu/SimpleMenu.js +96 -89
- package/dist/v2/SubNav/SubNavHeader.cjs +2 -2
- package/dist/v2/SubNav/SubNavHeader.js +1 -1
- package/dist/v2/SubNav/SubNavLink.cjs +4 -4
- package/dist/v2/SubNav/SubNavLink.js +1 -1
- package/dist/v2/SubNav/SubNavLinkSection.cjs +4 -4
- package/dist/v2/SubNav/SubNavLinkSection.js +1 -1
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/v2/SubNav/SubNavSectionLabel.js +1 -1
- package/package.json +18 -15
- package/dist/Box/BoxProps.cjs +0 -1
- package/dist/Box/BoxProps.js +0 -51
- package/dist/Flex/FlexProps.cjs +0 -1
- package/dist/Flex/FlexProps.js +0 -41
- package/dist/FocusTrap/ExampleComponent.cjs +0 -1
- package/dist/FocusTrap/ExampleComponent.js +0 -71
- package/dist/LiveRegions/StoryComponent.cjs +0 -1
- package/dist/LiveRegions/StoryComponent.js +0 -18
- package/dist/Typography/TypographyProps.cjs +0 -1
- package/dist/Typography/TypographyProps.js +0 -31
- package/dist/themes/ColorButton.cjs +0 -3
- package/dist/themes/ColorButton.js +0 -25
- package/dist/themes/colors.cjs +0 -1
- package/dist/themes/colors.js +0 -49
package/dist/index.js
CHANGED
|
@@ -6,19 +6,19 @@ import { Alert as d } from "./Alert/Alert.js";
|
|
|
6
6
|
import { Avatar as l, Initials as T } from "./Avatar/Avatar.js";
|
|
7
7
|
import { AvatarGroup as c } from "./Avatar/AvatarGroup.js";
|
|
8
8
|
import { Badge as C } from "./Badge/Badge.js";
|
|
9
|
-
import { BaseButton as y, BaseButtonWrapper as
|
|
10
|
-
import { BaseCheckbox as
|
|
11
|
-
import { BaseLink as
|
|
9
|
+
import { BaseButton as y, BaseButtonWrapper as L } from "./BaseButton/BaseButton.js";
|
|
10
|
+
import { BaseCheckbox as B } from "./BaseCheckbox/BaseCheckbox.js";
|
|
11
|
+
import { BaseLink as N } from "./BaseLink/BaseLink.js";
|
|
12
12
|
import { BaseRadio as k } from "./BaseRadio/BaseRadio.js";
|
|
13
13
|
import { RadioGroup as A } from "./BaseRadio/RadioGroup.js";
|
|
14
14
|
import { Box as I } from "./Box/Box.js";
|
|
15
|
-
import { Breadcrumbs as
|
|
15
|
+
import { Breadcrumbs as M, Crumb as G } from "./Breadcrumbs/Breadcrumbs.js";
|
|
16
16
|
import { Button as D, ButtonWrapper as H } from "./Button/Button.js";
|
|
17
|
-
import { Card as
|
|
17
|
+
import { Card as E } from "./Card/Card.js";
|
|
18
18
|
import { CardAction as V } from "./Card/CardAction.js";
|
|
19
|
-
import { CardAsset as
|
|
20
|
-
import { CardBadge as
|
|
21
|
-
import { CardBody as
|
|
19
|
+
import { CardAsset as J } from "./Card/CardAsset.js";
|
|
20
|
+
import { CardBadge as U } from "./Card/CardBadge.js";
|
|
21
|
+
import { CardBody as j } from "./Card/CardBody.js";
|
|
22
22
|
import { CardCheckbox as Q } from "./Card/CardCheckbox.js";
|
|
23
23
|
import { CardContent as Y } from "./Card/CardContent.js";
|
|
24
24
|
import { CardHeader as $ } from "./Card/CardHeader.js";
|
|
@@ -31,19 +31,19 @@ import { CarouselImage as lo } from "./CarouselInput/CarouselImage.js";
|
|
|
31
31
|
import { CarouselSlide as so } from "./CarouselInput/CarouselSlide.js";
|
|
32
32
|
import { Checkbox as bo } from "./Checkbox/Checkbox.js";
|
|
33
33
|
import { Combobox as So, CreatableCombobox as yo } from "./Combobox/Combobox.js";
|
|
34
|
-
import { ComboboxOption as
|
|
34
|
+
import { ComboboxOption as vo } from "./Combobox/ComboboxOption.js";
|
|
35
35
|
import { Dialog as go } from "./Dialog/Dialog.js";
|
|
36
|
-
import { DialogBody as
|
|
36
|
+
import { DialogBody as ho } from "./Dialog/DialogBody.js";
|
|
37
37
|
import { DialogFooter as Fo } from "./Dialog/DialogFooter.js";
|
|
38
38
|
import { DismissibleLayer as Po } from "./DismissibleLayer/DismissibleLayer.js";
|
|
39
|
-
import { DatePicker as
|
|
39
|
+
import { DatePicker as Ro } from "./DatePicker/DatePicker.js";
|
|
40
40
|
import { DateTimePicker as Go } from "./DateTimePicker/DateTimePicker.js";
|
|
41
41
|
import { Divider as Do } from "./Divider/Divider.js";
|
|
42
|
-
import { EmptyStateLayout as
|
|
42
|
+
import { EmptyStateLayout as Oo } from "./EmptyStateLayout/EmptyStateLayout.js";
|
|
43
43
|
import { Field as Wo } from "./Field/Field.js";
|
|
44
44
|
import { FieldLabel as zo } from "./Field/FieldLabel.js";
|
|
45
|
-
import { FieldInput as
|
|
46
|
-
import { FieldHint as
|
|
45
|
+
import { FieldInput as Ko, InputWrapper as Uo } from "./Field/FieldInput.js";
|
|
46
|
+
import { FieldHint as jo } from "./Field/FieldHint.js";
|
|
47
47
|
import { FieldError as Qo } from "./Field/FieldError.js";
|
|
48
48
|
import { FieldContext as Yo, useField as Zo } from "./Field/FieldContext.js";
|
|
49
49
|
import { FieldAction as or } from "./Field/FieldAction.js";
|
|
@@ -52,112 +52,114 @@ import { Grid as pr } from "./Grid/Grid.js";
|
|
|
52
52
|
import { GridItem as xr } from "./Grid/GridItem.js";
|
|
53
53
|
import { Icon as ar } from "./Icon/Icon.js";
|
|
54
54
|
import { IconButton as nr, IconButtonGroup as dr } from "./IconButton/IconButton.js";
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
55
|
+
import { JSONInput as lr } from "./JSONInput/JSONInput.js";
|
|
56
|
+
import { KeyboardNavigable as sr } from "./KeyboardNavigable/KeyboardNavigable.js";
|
|
57
|
+
import { Layout as br } from "./Layout/Layout.js";
|
|
58
|
+
import { ActionLayout as Sr } from "./Layout/ActionLayout.js";
|
|
59
|
+
import { ContentLayout as Lr } from "./Layout/ContentLayout.js";
|
|
60
|
+
import { BaseHeaderLayout as Br, HeaderLayout as gr } from "./Layout/HeaderLayout.js";
|
|
61
|
+
import { TwoColsLayout as hr } from "./Layout/TwoColsLayout.js";
|
|
62
|
+
import { GridLayout as Fr } from "./Layout/GridLayout.js";
|
|
63
|
+
import { Link as Pr } from "./Link/Link.js";
|
|
64
|
+
import { LinkButton as Rr } from "./LinkButton/LinkButton.js";
|
|
65
|
+
import { useNotifyAT as Gr } from "./LiveRegions/useNotifyAT.js";
|
|
66
|
+
import { LiveRegions as Dr } from "./LiveRegions/LiveRegions.js";
|
|
67
|
+
import { Loader as Or } from "./Loader/Loader.js";
|
|
68
|
+
import { Main as Wr } from "./Main/Main.js";
|
|
69
|
+
import { SkipToContent as zr } from "./Main/SkipToContent.js";
|
|
70
|
+
import { MainNav as Kr } from "./MainNav/MainNav.js";
|
|
71
|
+
import { NavBrand as _r } from "./MainNav/NavBrand.js";
|
|
72
|
+
import { NavCondense as qr } from "./MainNav/NavCondense.js";
|
|
73
|
+
import { NavFooter as Xr } from "./MainNav/NavFooter.js";
|
|
74
|
+
import { NavLink as Zr } from "./MainNav/NavLink.js";
|
|
75
|
+
import { NavSection as oe } from "./MainNav/NavSection.js";
|
|
76
|
+
import { NavSections as ee } from "./MainNav/NavSections.js";
|
|
77
|
+
import { NavUser as pe } from "./MainNav/NavUser.js";
|
|
78
|
+
import { ModalLayout as xe } from "./ModalLayout/ModalLayout.js";
|
|
79
|
+
import { ModalHeader as ae } from "./ModalLayout/ModalHeader.js";
|
|
80
|
+
import { ModalFooter as ne } from "./ModalLayout/ModalFooter.js";
|
|
81
|
+
import { ModalBody as ue } from "./ModalLayout/ModalBody.js";
|
|
82
|
+
import { NumberInput as Te } from "./NumberInput/NumberInput.js";
|
|
83
|
+
import { Pagination as ce } from "./Pagination/Pagination.js";
|
|
84
|
+
import { Dots as Ce, NextLink as Se, PageLink as ye, PreviousLink as Le } from "./Pagination/components.js";
|
|
85
|
+
import { POPOVER_PLACEMENTS as Be, Popover as ge } from "./Popover/Popover.js";
|
|
86
|
+
import { Portal as he } from "./Portal/Portal.js";
|
|
87
|
+
import { ProgressBar as Fe } from "./ProgressBar/ProgressBar.js";
|
|
88
|
+
import { Radio as Pe } from "./Radio/Radio.js";
|
|
89
|
+
import { RawTable as Re } from "./RawTable/RawTable.js";
|
|
90
|
+
import { RawTd as Ge, RawTh as we } from "./RawTable/RawCell.js";
|
|
91
|
+
import { RawThead as He } from "./RawTable/RawThead.js";
|
|
92
|
+
import { RawTbody as Ee } from "./RawTable/RawTbody.js";
|
|
93
|
+
import { RawTr as Ve } from "./RawTable/RawTr.js";
|
|
94
|
+
import { Flex as Je } from "./Flex/Flex.js";
|
|
95
|
+
import { Searchbar as Ue } from "./Searchbar/Searchbar.js";
|
|
96
|
+
import { SearchForm as je } from "./Searchbar/SearchForm.js";
|
|
97
|
+
import { Select as Qe } from "./Select/Select.js";
|
|
98
|
+
import { Option as Ye } from "./Select/Option.js";
|
|
99
|
+
import { OptGroup as $e } from "./Select/OptGroup.js";
|
|
100
|
+
import { MultiSelectNested as rt } from "./Select/MultiSelectNested.js";
|
|
101
|
+
import { SelectList as tt } from "./Select/SelectList.js";
|
|
102
|
+
import { MenuItem as mt, SimpleMenu as xt } from "./SimpleMenu/SimpleMenu.js";
|
|
103
|
+
import { Stack as at } from "./Stack/Stack.js";
|
|
104
|
+
import { Status as nt } from "./Status/Status.js";
|
|
105
|
+
import { SubNav as ut, subNavWidth as lt } from "./SubNav/SubNav.js";
|
|
106
|
+
import { SubNavHeader as st } from "./SubNav/SubNavHeader.js";
|
|
107
|
+
import { SubNavLink as bt } from "./SubNav/SubNavLink.js";
|
|
108
|
+
import { SubNavLinkSection as St } from "./SubNav/SubNavLinkSection.js";
|
|
109
|
+
import { SubNavSection as Lt } from "./SubNav/SubNavSection.js";
|
|
110
|
+
import { SubNavSections as Bt } from "./SubNav/SubNavSections.js";
|
|
111
|
+
import { Switch as Nt } from "./Switch/Switch.js";
|
|
112
|
+
import { Tab as kt, Tabs as Ft } from "./Tabs/Tabs.js";
|
|
113
|
+
import { TabPanel as Pt, TabPanels as It } from "./Tabs/TabPanels.js";
|
|
114
|
+
import { TabGroup as Mt } from "./Tabs/TabGroup.js";
|
|
115
|
+
import { Table as wt } from "./Table/Table.js";
|
|
116
|
+
import { Tbody as Ht } from "./Table/Tbody.js";
|
|
117
|
+
import { Thead as Et } from "./Table/Thead.js";
|
|
118
|
+
import { Tr as Vt } from "./Table/Tr.js";
|
|
119
|
+
import { Td as Jt, Th as Kt } from "./Table/Cell.js";
|
|
120
|
+
import { TFooter as _t } from "./Table/TFooter.js";
|
|
121
|
+
import { Tag as qt } from "./Tag/Tag.js";
|
|
122
|
+
import { TextButton as Xt } from "./TextButton/TextButton.js";
|
|
123
|
+
import { TextInput as Zt } from "./TextInput/TextInput.js";
|
|
124
|
+
import { Textarea as op } from "./Textarea/Textarea.js";
|
|
125
|
+
import { ThemeProvider as ep } from "./ThemeProvider/ThemeProvider.js";
|
|
126
|
+
import { useTheme as pp } from "./ThemeProvider/hooks.js";
|
|
127
|
+
import { TimePicker as xp } from "./TimePicker/TimePicker.js";
|
|
128
|
+
import { ToggleCheckbox as ap } from "./ToggleCheckbox/ToggleCheckbox.js";
|
|
129
|
+
import { ToggleInput as np } from "./ToggleInput/ToggleInput.js";
|
|
130
|
+
import { Tooltip as up } from "./Tooltip/Tooltip.js";
|
|
131
|
+
import { Typography as Tp } from "./Typography/Typography.js";
|
|
132
|
+
import { VisuallyHidden as cp } from "./VisuallyHidden/VisuallyHidden.js";
|
|
133
|
+
import { lightTheme as Cp } from "./themes/lightTheme/index.js";
|
|
134
|
+
import { darkTheme as yp } from "./themes/darkTheme/index.js";
|
|
135
|
+
import { extendTheme as vp } from "./themes/extendTheme.js";
|
|
136
|
+
import { buttonFocusStyle as gp, getThemeSize as Np, inputFocusStyle as hp } from "./themes/utils.js";
|
|
135
137
|
export {
|
|
136
138
|
e as Accordion,
|
|
137
139
|
m as AccordionContent,
|
|
138
140
|
i as AccordionGroup,
|
|
139
141
|
f as AccordionToggle,
|
|
140
142
|
t as AccordionTypography,
|
|
141
|
-
|
|
143
|
+
Sr as ActionLayout,
|
|
142
144
|
d as Alert,
|
|
143
145
|
l as Avatar,
|
|
144
146
|
c as AvatarGroup,
|
|
145
147
|
C as Badge,
|
|
146
148
|
y as BaseButton,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
L as BaseButtonWrapper,
|
|
150
|
+
B as BaseCheckbox,
|
|
149
151
|
Br as BaseHeaderLayout,
|
|
150
|
-
|
|
152
|
+
N as BaseLink,
|
|
151
153
|
k as BaseRadio,
|
|
152
154
|
I as Box,
|
|
153
|
-
|
|
155
|
+
M as Breadcrumbs,
|
|
154
156
|
D as Button,
|
|
155
157
|
H as ButtonWrapper,
|
|
156
|
-
|
|
158
|
+
E as Card,
|
|
157
159
|
V as CardAction,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
J as CardAsset,
|
|
161
|
+
U as CardBadge,
|
|
162
|
+
j as CardBody,
|
|
161
163
|
Q as CardCheckbox,
|
|
162
164
|
Y as CardContent,
|
|
163
165
|
$ as CardHeader,
|
|
@@ -171,123 +173,125 @@ export {
|
|
|
171
173
|
so as CarouselSlide,
|
|
172
174
|
bo as Checkbox,
|
|
173
175
|
So as Combobox,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
vo as ComboboxOption,
|
|
177
|
+
Lr as ContentLayout,
|
|
176
178
|
yo as CreatableCombobox,
|
|
177
179
|
G as Crumb,
|
|
178
|
-
|
|
180
|
+
Ro as DatePicker,
|
|
179
181
|
Go as DateTimePicker,
|
|
180
182
|
go as Dialog,
|
|
181
|
-
|
|
183
|
+
ho as DialogBody,
|
|
182
184
|
Fo as DialogFooter,
|
|
183
185
|
Po as DismissibleLayer,
|
|
184
186
|
Do as Divider,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
Ce as Dots,
|
|
188
|
+
Oo as EmptyStateLayout,
|
|
187
189
|
Wo as Field,
|
|
188
190
|
or as FieldAction,
|
|
189
191
|
Yo as FieldContext,
|
|
190
192
|
Qo as FieldError,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
jo as FieldHint,
|
|
194
|
+
Ko as FieldInput,
|
|
193
195
|
zo as FieldLabel,
|
|
194
|
-
|
|
196
|
+
Je as Flex,
|
|
195
197
|
er as FocusTrap,
|
|
196
198
|
pr as Grid,
|
|
197
199
|
xr as GridItem,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
Fr as GridLayout,
|
|
201
|
+
gr as HeaderLayout,
|
|
200
202
|
ar as Icon,
|
|
201
203
|
nr as IconButton,
|
|
202
204
|
dr as IconButtonGroup,
|
|
203
205
|
T as Initials,
|
|
204
|
-
|
|
205
|
-
lr as
|
|
206
|
-
sr as
|
|
207
|
-
|
|
208
|
-
Pr as
|
|
209
|
-
|
|
210
|
-
Dr as
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
Xr as
|
|
223
|
-
Zr as
|
|
224
|
-
oe as
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
ye as
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
206
|
+
Uo as InputWrapper,
|
|
207
|
+
lr as JSONInput,
|
|
208
|
+
sr as KeyboardNavigable,
|
|
209
|
+
br as Layout,
|
|
210
|
+
Pr as Link,
|
|
211
|
+
Rr as LinkButton,
|
|
212
|
+
Dr as LiveRegions,
|
|
213
|
+
Or as Loader,
|
|
214
|
+
Wr as Main,
|
|
215
|
+
Kr as MainNav,
|
|
216
|
+
mt as MenuItem,
|
|
217
|
+
ue as ModalBody,
|
|
218
|
+
ne as ModalFooter,
|
|
219
|
+
ae as ModalHeader,
|
|
220
|
+
xe as ModalLayout,
|
|
221
|
+
rt as MultiSelectNested,
|
|
222
|
+
_r as NavBrand,
|
|
223
|
+
qr as NavCondense,
|
|
224
|
+
Xr as NavFooter,
|
|
225
|
+
Zr as NavLink,
|
|
226
|
+
oe as NavSection,
|
|
227
|
+
ee as NavSections,
|
|
228
|
+
pe as NavUser,
|
|
229
|
+
Se as NextLink,
|
|
230
|
+
Te as NumberInput,
|
|
231
|
+
$e as OptGroup,
|
|
232
|
+
Ye as Option,
|
|
233
|
+
Be as POPOVER_PLACEMENTS,
|
|
234
|
+
ye as PageLink,
|
|
235
|
+
ce as Pagination,
|
|
236
|
+
ge as Popover,
|
|
237
|
+
he as Portal,
|
|
238
|
+
Le as PreviousLink,
|
|
239
|
+
Fe as ProgressBar,
|
|
240
|
+
Pe as Radio,
|
|
237
241
|
A as RadioGroup,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
242
|
+
Re as RawTable,
|
|
243
|
+
Ee as RawTbody,
|
|
244
|
+
Ge as RawTd,
|
|
245
|
+
we as RawTh,
|
|
246
|
+
He as RawThead,
|
|
247
|
+
Ve as RawTr,
|
|
248
|
+
je as SearchForm,
|
|
249
|
+
Ue as Searchbar,
|
|
250
|
+
Qe as Select,
|
|
251
|
+
tt as SelectList,
|
|
252
|
+
xt as SimpleMenu,
|
|
253
|
+
zr as SkipToContent,
|
|
254
|
+
at as Stack,
|
|
255
|
+
nt as Status,
|
|
256
|
+
ut as SubNav,
|
|
257
|
+
st as SubNavHeader,
|
|
258
|
+
bt as SubNavLink,
|
|
259
|
+
St as SubNavLinkSection,
|
|
260
|
+
Lt as SubNavSection,
|
|
261
|
+
Bt as SubNavSections,
|
|
262
|
+
Nt as Switch,
|
|
263
|
+
_t as TFooter,
|
|
264
|
+
kt as Tab,
|
|
265
|
+
Mt as TabGroup,
|
|
266
|
+
Pt as TabPanel,
|
|
267
|
+
It as TabPanels,
|
|
268
|
+
wt as Table,
|
|
269
|
+
Ft as Tabs,
|
|
270
|
+
qt as Tag,
|
|
271
|
+
Ht as Tbody,
|
|
272
|
+
Jt as Td,
|
|
273
|
+
Xt as TextButton,
|
|
274
|
+
Zt as TextInput,
|
|
275
|
+
op as Textarea,
|
|
276
|
+
Kt as Th,
|
|
277
|
+
Et as Thead,
|
|
278
|
+
ep as ThemeProvider,
|
|
279
|
+
xp as TimePicker,
|
|
280
|
+
ap as ToggleCheckbox,
|
|
281
|
+
np as ToggleInput,
|
|
282
|
+
up as Tooltip,
|
|
283
|
+
Vt as Tr,
|
|
284
|
+
hr as TwoColsLayout,
|
|
285
|
+
Tp as Typography,
|
|
286
|
+
cp as VisuallyHidden,
|
|
287
|
+
gp as buttonFocusStyle,
|
|
288
|
+
yp as darkTheme,
|
|
289
|
+
vp as extendTheme,
|
|
290
|
+
Np as getThemeSize,
|
|
291
|
+
hp as inputFocusStyle,
|
|
292
|
+
Cp as lightTheme,
|
|
293
|
+
lt as subNavWidth,
|
|
290
294
|
Zo as useField,
|
|
291
|
-
|
|
292
|
-
|
|
295
|
+
Gr as useNotifyAT,
|
|
296
|
+
pp as useTheme
|
|
293
297
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
${
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../helpers/objects.cjs"),s=require("./lightTheme/index.cjs"),n=t=>`
|
|
2
|
+
${t}
|
|
3
3
|
|
|
4
4
|
The following is an example:
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ The following is an example:
|
|
|
7
7
|
import { lightTheme, extendTheme } from '@strapi/design-system';
|
|
8
8
|
|
|
9
9
|
const myCustomTheme = extendTheme(lightTheme, {
|
|
10
|
-
${Object.keys(
|
|
10
|
+
${Object.keys(s.lightTheme).map(e=>`${e}: /* put the overrides for the ${e} key */,`).join(`
|
|
11
11
|
`)}
|
|
12
12
|
})
|
|
13
|
-
`,
|
|
13
|
+
`,h=(t,e)=>{if(!r.isObject(t)){const o=n("The first argument should be an object and corresponds to the theme you want to extend.");throw new Error(o)}if(!r.isObject(e)){const o=n("The second argument should be an object and corresponds to the keys of the theme you want to override.");throw new Error(o)}return r.mergeDeep(t??{},e??{})};exports.extendTheme=h;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { isObject as r, mergeDeep as h } from "../helpers/objects.js";
|
|
2
|
+
import { lightTheme as m } from "./lightTheme/index.js";
|
|
3
|
+
const n = (t) => `
|
|
4
|
+
${t}
|
|
4
5
|
|
|
5
6
|
The following is an example:
|
|
6
7
|
|
|
@@ -8,28 +9,19 @@ The following is an example:
|
|
|
8
9
|
import { lightTheme, extendTheme } from '@strapi/design-system';
|
|
9
10
|
|
|
10
11
|
const myCustomTheme = extendTheme(lightTheme, {
|
|
11
|
-
${Object.keys(
|
|
12
|
+
${Object.keys(m).map((e) => `${e}: /* put the overrides for the ${e} key */,`).join(`
|
|
12
13
|
`)}
|
|
13
14
|
})
|
|
14
|
-
`,
|
|
15
|
-
const n = { ...e };
|
|
16
|
-
return r(e) && r(t) && Object.keys(t).forEach((o) => {
|
|
17
|
-
r(t[o]) && e.hasOwnProperty(o) ? n[o] = s(e[o], t[o]) : n[o] = t[o];
|
|
18
|
-
}), n;
|
|
19
|
-
}, a = (e, t) => {
|
|
20
|
-
if (!r(e)) {
|
|
21
|
-
const n = h(
|
|
22
|
-
"The first argument should be an object and corresponds to the theme you want to extend."
|
|
23
|
-
);
|
|
24
|
-
throw new Error(n);
|
|
25
|
-
}
|
|
15
|
+
`, a = (t, e) => {
|
|
26
16
|
if (!r(t)) {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
const o = n("The first argument should be an object and corresponds to the theme you want to extend.");
|
|
18
|
+
throw new Error(o);
|
|
19
|
+
}
|
|
20
|
+
if (!r(e)) {
|
|
21
|
+
const o = n("The second argument should be an object and corresponds to the keys of the theme you want to override.");
|
|
22
|
+
throw new Error(o);
|
|
31
23
|
}
|
|
32
|
-
return
|
|
24
|
+
return h(t ?? {}, e ?? {});
|
|
33
25
|
};
|
|
34
26
|
export {
|
|
35
27
|
a as extendTheme
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("prop-types"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("prop-types"),s=require("react"),a=require("styled-components"),c=require("@strapi/icons"),i=require("../../Button/Button.cjs"),d=require("../SimpleMenu/SimpleMenu.cjs"),u=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=u(l),n=u(s),p=u(a),f=p.default(i.Button)`
|
|
2
2
|
padding: ${({theme:e})=>`${e.spaces[1]} ${e.spaces[3]}`};
|
|
3
3
|
|
|
4
4
|
:hover,
|
|
5
5
|
:focus {
|
|
6
6
|
background-color: ${({theme:e})=>e.colors.neutral200};
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,o=({children:e,...r})=>n.default.createElement(d.SimpleMenu,{noBorder:!0,icon:n.default.createElement(c.CarretDown,null),as:f,size:"S",...r},e);o.displayName="CrumbSimpleMenu";o.propTypes={"aria-label":t.default.string.isRequired,children:t.default.oneOfType([t.default.arrayOf(t.default.node),t.default.node]).isRequired};exports.CrumbSimpleMenu=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "prop-types";
|
|
2
2
|
import o from "react";
|
|
3
3
|
import i from "styled-components";
|
|
4
|
-
import p from "@strapi/icons
|
|
4
|
+
import { CarretDown as p } from "@strapi/icons";
|
|
5
5
|
import { Button as m } from "../../Button/Button.js";
|
|
6
6
|
import { SimpleMenu as a } from "../SimpleMenu/SimpleMenu.js";
|
|
7
7
|
const l = i(m)`
|
package/dist/v2/Link/Link.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react"),y=require("prop-types"),m=require("styled-components"),g=require("@strapi/icons
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react"),y=require("prop-types"),m=require("styled-components"),g=require("@strapi/icons"),h=require("../../Typography/Typography.cjs"),v=require("../../Box/Box.cjs"),L=require("../../themes/utils.cjs"),k=require("../../BaseLink/BaseLink.cjs"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=l(f),a=l(y),u=l(m),q=u.default(k.BaseLink)`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
text-decoration: none;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
color: ${({theme:e})=>e.colors.primary800};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
${
|
|
21
|
-
`,s=u.default(
|
|
20
|
+
${L.buttonFocusStyle};
|
|
21
|
+
`,s=u.default(v.Box)`
|
|
22
22
|
display: flex;
|
|
23
|
-
`,
|
|
23
|
+
`,n=t.default.forwardRef(({children:e,href:r,disabled:i,startIcon:d,endIcon:o,...c},p)=>t.default.createElement(q,{ref:p,href:r,disabled:i,...c},d&&t.default.createElement(s,{as:"span","aria-hidden":!0,paddingRight:2},d),t.default.createElement(h.Typography,{textColor:i?"neutral600":"primary600"},e),o&&t.default.createElement(s,{as:"span","aria-hidden":!0,paddingLeft:2},o),r&&!o&&t.default.createElement(s,{as:"span","aria-hidden":!0,paddingLeft:2},t.default.createElement(g.ExternalLink,null))));n.displayName="Link";n.defaultProps={as:void 0,href:void 0,disabled:!1,startIcon:void 0,endIcon:void 0};n.propTypes={as:a.default.elementType,children:a.default.node.isRequired,disabled:a.default.bool,endIcon:a.default.element,href:a.default.string,startIcon:a.default.element};exports.Link=n;
|
package/dist/v2/Link/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "react";
|
|
2
2
|
import t from "prop-types";
|
|
3
3
|
import s from "styled-components";
|
|
4
|
-
import c from "@strapi/icons
|
|
4
|
+
import { ExternalLink as c } from "@strapi/icons";
|
|
5
5
|
import { Typography as f } from "../../Typography/Typography.js";
|
|
6
6
|
import { Box as y } from "../../Box/Box.js";
|
|
7
7
|
import { buttonFocusStyle as u } from "../../themes/utils.js";
|