@uppsala-designsystem/ui 1.5.0 → 1.5.1
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/cjs/index.js +89 -89
- package/dist/esm/components/ErrorSummary/ErrorSummary.js +1 -1
- package/dist/esm/components/Suggestion/Suggestion.js +1 -1
- package/dist/esm/components/Tabs/Tabs.js +1 -1
- package/dist/esm/index.js +33 -33
- package/dist/types/components/Popover/index.d.ts +1 -1
- package/package.json +22 -22
- package/LICENSE +0 -7
package/dist/cjs/index.js
CHANGED
|
@@ -6,88 +6,93 @@ var Avatar = require('./components/Avatar/Avatar.js');
|
|
|
6
6
|
var index = require('./components/Badge/index.js');
|
|
7
7
|
var BadgePosition = require('./components/Badge/BadgePosition.js');
|
|
8
8
|
var index$1 = require('./components/Breadcrumbs/index.js');
|
|
9
|
-
var BreadcrumbsList = require('./components/Breadcrumbs/BreadcrumbsList.js');
|
|
10
9
|
var BreadcrumbsItem = require('./components/Breadcrumbs/BreadcrumbsItem.js');
|
|
11
10
|
var BreadcrumbsLink = require('./components/Breadcrumbs/BreadcrumbsLink.js');
|
|
11
|
+
var BreadcrumbsList = require('./components/Breadcrumbs/BreadcrumbsList.js');
|
|
12
12
|
var Button = require('./components/Button/Button.js');
|
|
13
13
|
var index$2 = require('./components/Card/index.js');
|
|
14
14
|
var CardBlock = require('./components/Card/CardBlock.js');
|
|
15
15
|
var Checkbox = require('./components/Checkbox/Checkbox.js');
|
|
16
16
|
var index$3 = require('./components/Chip/index.js');
|
|
17
17
|
var Chips = require('./components/Chip/Chips.js');
|
|
18
|
+
var Container = require('./layouts/Container/Container.js');
|
|
18
19
|
var index$4 = require('./components/Details/index.js');
|
|
19
20
|
var DetailsContent = require('./components/Details/DetailsContent.js');
|
|
20
21
|
var DetailsSummary = require('./components/Details/DetailsSummary.js');
|
|
21
22
|
var index$5 = require('./components/Dialog/index.js');
|
|
22
23
|
var DialogBlock = require('./components/Dialog/DialogBlock.js');
|
|
23
|
-
var DialogTriggerContext = require('./components/Dialog/DialogTriggerContext.js');
|
|
24
24
|
var DialogTrigger = require('./components/Dialog/DialogTrigger.js');
|
|
25
|
+
var DialogTriggerContext = require('./components/Dialog/DialogTriggerContext.js');
|
|
25
26
|
var Divider = require('./components/Divider/Divider.js');
|
|
26
27
|
var index$6 = require('./components/Dropdown/index.js');
|
|
27
|
-
var
|
|
28
|
-
var DropdownList = require('./components/Dropdown/DropdownList.js');
|
|
28
|
+
var DropdownButton = require('./components/Dropdown/DropdownButton.js');
|
|
29
29
|
var DropdownHeading = require('./components/Dropdown/DropdownHeading.js');
|
|
30
30
|
var DropdownItem = require('./components/Dropdown/DropdownItem.js');
|
|
31
|
-
var
|
|
31
|
+
var DropdownList = require('./components/Dropdown/DropdownList.js');
|
|
32
32
|
var DropdownTrigger = require('./components/Dropdown/DropdownTrigger.js');
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var DropdownTriggerContext = require('./components/Dropdown/DropdownTriggerContext.js');
|
|
34
|
+
var index$7 = require('./components/Suggestion/index.js');
|
|
35
|
+
var SuggestionChips = require('./components/Suggestion/SuggestionChips.js');
|
|
36
|
+
var SuggestionClear = require('./components/Suggestion/SuggestionClear.js');
|
|
37
|
+
var SuggestionEmpty = require('./components/Suggestion/SuggestionEmpty.js');
|
|
38
|
+
var SuggestionInput = require('./components/Suggestion/SuggestionInput.js');
|
|
39
|
+
var SuggestionList = require('./components/Suggestion/SuggestionList.js');
|
|
40
|
+
var SuggestionOption = require('./components/Suggestion/SuggestionOption.js');
|
|
41
|
+
var index$8 = require('./components/ErrorSummary/index.js');
|
|
35
42
|
var ErrorSummaryHeading = require('./components/ErrorSummary/ErrorSummaryHeading.js');
|
|
36
|
-
var
|
|
43
|
+
var ErrorSummaryItem = require('./components/ErrorSummary/ErrorSummaryItem.js');
|
|
37
44
|
var ErrorSummaryLink = require('./components/ErrorSummary/ErrorSummaryLink.js');
|
|
38
|
-
var
|
|
39
|
-
var
|
|
45
|
+
var ErrorSummaryList = require('./components/ErrorSummary/ErrorSummaryList.js');
|
|
46
|
+
var index$9 = require('./components/Field/index.js');
|
|
40
47
|
var FieldAffix = require('./components/Field/FieldAffix.js');
|
|
41
48
|
var FieldCounter = require('./components/Field/FieldCounter.js');
|
|
42
|
-
var
|
|
43
|
-
var
|
|
49
|
+
var FieldDescription = require('./components/Field/FieldDescription.js');
|
|
50
|
+
var index$a = require('./components/Fieldset/index.js');
|
|
44
51
|
var FieldsetDescription = require('./components/Fieldset/FieldsetDescription.js');
|
|
52
|
+
var FieldsetLegend = require('./components/Fieldset/FieldsetLegend.js');
|
|
53
|
+
var GridCol = require('./layouts/Grid/GridCol.js');
|
|
54
|
+
var GridRow = require('./layouts/Grid/GridRow.js');
|
|
45
55
|
var Heading = require('./components/Heading/Heading.js');
|
|
46
56
|
var InfoCard = require('./components/InfoCard/InfoCard.js');
|
|
47
57
|
var Input = require('./components/Input/Input.js');
|
|
48
58
|
var Label = require('./components/Label/Label.js');
|
|
49
59
|
var Link = require('./components/Link/Link.js');
|
|
50
|
-
var index$
|
|
51
|
-
var Lists = require('./components/List/Lists.js');
|
|
60
|
+
var index$b = require('./components/List/index.js');
|
|
52
61
|
var ListItem = require('./components/List/ListItem.js');
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var PaginationItem = require('./components/Pagination/PaginationItem.js');
|
|
62
|
+
var Lists = require('./components/List/Lists.js');
|
|
63
|
+
var index$c = require('./components/Pagination/index.js');
|
|
56
64
|
var PaginationButton = require('./components/Pagination/PaginationButton.js');
|
|
65
|
+
var PaginationItem = require('./components/Pagination/PaginationItem.js');
|
|
66
|
+
var PaginationList = require('./components/Pagination/PaginationList.js');
|
|
57
67
|
var Paragraph = require('./components/Paragraph/Paragraph.js');
|
|
58
|
-
var index$
|
|
59
|
-
var PopoverTriggerContext = require('./components/Popover/PopoverTriggerContext.js');
|
|
68
|
+
var index$d = require('./components/Popover/index.js');
|
|
60
69
|
var PopoverTrigger = require('./components/Popover/PopoverTrigger.js');
|
|
70
|
+
var PopoverTriggerContext = require('./components/Popover/PopoverTriggerContext.js');
|
|
61
71
|
var Radio = require('./components/Radio/Radio.js');
|
|
62
|
-
var
|
|
72
|
+
var RovingFocusItem = require('./utilities/RovingFocus/RovingFocusItem.js');
|
|
73
|
+
var RovingFocusRoot = require('./utilities/RovingFocus/RovingFocusRoot.js');
|
|
74
|
+
var index$e = require('./components/Search/index.js');
|
|
63
75
|
var SearchButton = require('./components/Search/SearchButton.js');
|
|
76
|
+
var SearchClear = require('./components/Search/SearchClear.js');
|
|
64
77
|
var SearchInput = require('./components/Search/SearchInput.js');
|
|
65
|
-
var index$
|
|
66
|
-
var index$e = require('./components/Select/index.js');
|
|
67
|
-
var SelectOption = require('./components/Select/SelectOption.js');
|
|
78
|
+
var index$f = require('./components/Select/index.js');
|
|
68
79
|
var SelectOptgroup = require('./components/Select/SelectOptgroup.js');
|
|
80
|
+
var SelectOption = require('./components/Select/SelectOption.js');
|
|
69
81
|
var Skeleton = require('./components/Skeleton/Skeleton.js');
|
|
70
82
|
var SkipLink = require('./components/SkipLink/SkipLink.js');
|
|
71
83
|
var Spinner = require('./components/Spinner/Spinner.js');
|
|
72
|
-
var index$f = require('./components/Suggestion/index.js');
|
|
73
|
-
var SuggestionList = require('./components/Suggestion/SuggestionList.js');
|
|
74
|
-
var SuggestionInput = require('./components/Suggestion/SuggestionInput.js');
|
|
75
|
-
var SuggestionEmpty = require('./components/Suggestion/SuggestionEmpty.js');
|
|
76
|
-
var SuggestionOption = require('./components/Suggestion/SuggestionOption.js');
|
|
77
|
-
var SuggestionClear = require('./components/Suggestion/SuggestionClear.js');
|
|
78
|
-
var SuggestionChips = require('./components/Suggestion/SuggestionChips.js');
|
|
79
84
|
var Switch = require('./components/Switch/Switch.js');
|
|
80
85
|
var index$g = require('./components/Table/index.js');
|
|
81
|
-
var TableHead = require('./components/Table/TableHead.js');
|
|
82
86
|
var TableBody = require('./components/Table/TableBody.js');
|
|
83
|
-
var TableRow = require('./components/Table/TableRow.js');
|
|
84
87
|
var TableCell = require('./components/Table/TableCell.js');
|
|
85
|
-
var TableHeaderCell = require('./components/Table/TableHeaderCell.js');
|
|
86
88
|
var TableFoot = require('./components/Table/TableFoot.js');
|
|
89
|
+
var TableHead = require('./components/Table/TableHead.js');
|
|
90
|
+
var TableHeaderCell = require('./components/Table/TableHeaderCell.js');
|
|
91
|
+
var TableRow = require('./components/Table/TableRow.js');
|
|
87
92
|
var index$h = require('./components/Tabs/index.js');
|
|
88
|
-
var TabsTab = require('./components/Tabs/TabsTab.js');
|
|
89
93
|
var TabsList = require('./components/Tabs/TabsList.js');
|
|
90
94
|
var TabsPanel = require('./components/Tabs/TabsPanel.js');
|
|
95
|
+
var TabsTab = require('./components/Tabs/TabsTab.js');
|
|
91
96
|
var Tag = require('./components/Tag/Tag.js');
|
|
92
97
|
var Textarea = require('./components/Textarea/Textarea.js');
|
|
93
98
|
var Textfield = require('./components/Textfield/Textfield.js');
|
|
@@ -97,9 +102,6 @@ var index$j = require('./components/ToggleGroup/index.js');
|
|
|
97
102
|
var ToggleGroupItem = require('./components/ToggleGroup/ToggleGroupItem.js');
|
|
98
103
|
var Tooltip = require('./components/Tooltip/Tooltip.js');
|
|
99
104
|
var ValidationMessage = require('./components/ValidationMessage/ValidationMessage.js');
|
|
100
|
-
var Container = require('./layouts/Container/Container.js');
|
|
101
|
-
var GridCol = require('./layouts/Grid/GridCol.js');
|
|
102
|
-
var GridRow = require('./layouts/Grid/GridRow.js');
|
|
103
105
|
var omit = require('./utilities/omit/omit.js');
|
|
104
106
|
var useCheckboxGroup = require('./utilities/hooks/useCheckboxGroup/useCheckboxGroup.js');
|
|
105
107
|
var useDebounceCallback = require('./utilities/hooks/useDebounceCallback/useDebounceCallback.js');
|
|
@@ -108,10 +110,8 @@ var useMediaQuery = require('./utilities/hooks/useMediaQuery/useMediaQuery.js');
|
|
|
108
110
|
var useMergeRefs = require('./utilities/hooks/useMergeRefs/useMergeRefs.js');
|
|
109
111
|
var usePagination = require('./utilities/hooks/usePagination/usePagination.js');
|
|
110
112
|
var useRadioGroup = require('./utilities/hooks/useRadioGroup/useRadioGroup.js');
|
|
111
|
-
var useSynchronizedAnimation = require('./utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.js');
|
|
112
|
-
var RovingFocusRoot = require('./utilities/RovingFocus/RovingFocusRoot.js');
|
|
113
113
|
var useRovingFocus = require('./utilities/RovingFocus/useRovingFocus.js');
|
|
114
|
-
var
|
|
114
|
+
var useSynchronizedAnimation = require('./utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.js');
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
|
|
@@ -120,9 +120,9 @@ exports.Avatar = Avatar.Avatar;
|
|
|
120
120
|
exports.Badge = index.Badge;
|
|
121
121
|
exports.BadgePosition = BadgePosition.BadgePosition;
|
|
122
122
|
exports.Breadcrumbs = index$1.Breadcrumbs;
|
|
123
|
-
exports.BreadcrumbsList = BreadcrumbsList.BreadcrumbsList;
|
|
124
123
|
exports.BreadcrumbsItem = BreadcrumbsItem.BreadcrumbsItem;
|
|
125
124
|
exports.BreadcrumbsLink = BreadcrumbsLink.BreadcrumbsLink;
|
|
125
|
+
exports.BreadcrumbsList = BreadcrumbsList.BreadcrumbsList;
|
|
126
126
|
exports.Button = Button.Button;
|
|
127
127
|
exports.Card = index$2.Card;
|
|
128
128
|
exports.CardBlock = CardBlock.CardBlock;
|
|
@@ -132,88 +132,95 @@ exports.ChipButton = Chips.ChipButton;
|
|
|
132
132
|
exports.ChipCheckbox = Chips.ChipCheckbox;
|
|
133
133
|
exports.ChipRadio = Chips.ChipRadio;
|
|
134
134
|
exports.ChipRemovable = Chips.ChipRemovable;
|
|
135
|
+
exports.Container = Container.Container;
|
|
135
136
|
exports.Details = index$4.Details;
|
|
136
137
|
exports.DetailsContent = DetailsContent.DetailsContent;
|
|
137
138
|
exports.DetailsSummary = DetailsSummary.DetailsSummary;
|
|
138
139
|
exports.Dialog = index$5.Dialog;
|
|
139
140
|
exports.DialogBlock = DialogBlock.DialogBlock;
|
|
140
|
-
exports.DialogTriggerContext = DialogTriggerContext.DialogTriggerContext;
|
|
141
141
|
exports.DialogTrigger = DialogTrigger.DialogTrigger;
|
|
142
|
+
exports.DialogTriggerContext = DialogTriggerContext.DialogTriggerContext;
|
|
142
143
|
exports.Divider = Divider.Divider;
|
|
143
144
|
exports.Dropdown = index$6.Dropdown;
|
|
144
|
-
exports.
|
|
145
|
-
exports.DropdownList = DropdownList.DropdownList;
|
|
145
|
+
exports.DropdownButton = DropdownButton.DropdownButton;
|
|
146
146
|
exports.DropdownHeading = DropdownHeading.DropdownHeading;
|
|
147
147
|
exports.DropdownItem = DropdownItem.DropdownItem;
|
|
148
|
-
exports.
|
|
148
|
+
exports.DropdownList = DropdownList.DropdownList;
|
|
149
149
|
exports.DropdownTrigger = DropdownTrigger.DropdownTrigger;
|
|
150
|
-
exports.
|
|
151
|
-
exports.
|
|
150
|
+
exports.DropdownTriggerContext = DropdownTriggerContext.DropdownTriggerContext;
|
|
151
|
+
exports.EXPERIMENTAL_Suggestion = index$7.EXPERIMENTAL_Suggestion;
|
|
152
|
+
exports.Suggestion = index$7.Suggestion;
|
|
153
|
+
exports.EXPERIMENTAL_SuggestionChips = SuggestionChips.SuggestionChips;
|
|
154
|
+
exports.SuggestionChips = SuggestionChips.SuggestionChips;
|
|
155
|
+
exports.EXPERIMENTAL_SuggestionClear = SuggestionClear.SuggestionClear;
|
|
156
|
+
exports.SuggestionClear = SuggestionClear.SuggestionClear;
|
|
157
|
+
exports.EXPERIMENTAL_SuggestionEmpty = SuggestionEmpty.SuggestionEmpty;
|
|
158
|
+
exports.SuggestionEmpty = SuggestionEmpty.SuggestionEmpty;
|
|
159
|
+
exports.EXPERIMENTAL_SuggestionInput = SuggestionInput.SuggestionInput;
|
|
160
|
+
exports.SuggestionInput = SuggestionInput.SuggestionInput;
|
|
161
|
+
exports.EXPERIMENTAL_SuggestionList = SuggestionList.SuggestionList;
|
|
162
|
+
exports.SuggestionList = SuggestionList.SuggestionList;
|
|
163
|
+
exports.EXPERIMENTAL_SuggestionOption = SuggestionOption.SuggestionOption;
|
|
164
|
+
exports.SuggestionOption = SuggestionOption.SuggestionOption;
|
|
165
|
+
exports.ErrorSummary = index$8.ErrorSummary;
|
|
152
166
|
exports.ErrorSummaryHeading = ErrorSummaryHeading.ErrorSummaryHeading;
|
|
153
|
-
exports.
|
|
167
|
+
exports.ErrorSummaryItem = ErrorSummaryItem.ErrorSummaryItem;
|
|
154
168
|
exports.ErrorSummaryLink = ErrorSummaryLink.ErrorSummaryLink;
|
|
155
|
-
exports.
|
|
156
|
-
exports.
|
|
169
|
+
exports.ErrorSummaryList = ErrorSummaryList.ErrorSummaryList;
|
|
170
|
+
exports.Field = index$9.Field;
|
|
157
171
|
exports.FieldAffix = FieldAffix.FieldAffix;
|
|
158
172
|
exports.FieldAffixes = FieldAffix.FieldAffixes;
|
|
159
173
|
exports.FieldCounter = FieldCounter.FieldCounter;
|
|
160
|
-
exports.
|
|
161
|
-
exports.
|
|
174
|
+
exports.FieldDescription = FieldDescription.FieldDescription;
|
|
175
|
+
exports.Fieldset = index$a.Fieldset;
|
|
162
176
|
exports.FieldsetDescription = FieldsetDescription.FieldsetDescription;
|
|
177
|
+
exports.FieldsetLegend = FieldsetLegend.FieldsetLegend;
|
|
178
|
+
exports.GridCol = GridCol.GridCol;
|
|
179
|
+
exports.GridRow = GridRow.GridRow;
|
|
163
180
|
exports.Heading = Heading.Heading;
|
|
164
181
|
exports.InfoCard = InfoCard.InfoCard;
|
|
165
182
|
exports.Input = Input.Input;
|
|
166
183
|
exports.Label = Label.Label;
|
|
167
184
|
exports.Link = Link.Link;
|
|
168
|
-
exports.List = index$
|
|
185
|
+
exports.List = index$b.List;
|
|
186
|
+
exports.ListItem = ListItem.ListItem;
|
|
169
187
|
exports.ListOrdered = Lists.ListOrdered;
|
|
170
188
|
exports.ListUnordered = Lists.ListUnordered;
|
|
171
|
-
exports.
|
|
172
|
-
exports.Pagination = index$b.Pagination;
|
|
173
|
-
exports.PaginationList = PaginationList.PaginationList;
|
|
174
|
-
exports.PaginationItem = PaginationItem.PaginationItem;
|
|
189
|
+
exports.Pagination = index$c.Pagination;
|
|
175
190
|
exports.PaginationButton = PaginationButton.PaginationButton;
|
|
191
|
+
exports.PaginationItem = PaginationItem.PaginationItem;
|
|
192
|
+
exports.PaginationList = PaginationList.PaginationList;
|
|
176
193
|
exports.Paragraph = Paragraph.Paragraph;
|
|
177
|
-
exports.Popover = index$
|
|
178
|
-
exports.PopoverTriggerContext = PopoverTriggerContext.PopoverTriggerContext;
|
|
194
|
+
exports.Popover = index$d.Popover;
|
|
179
195
|
exports.PopoverTrigger = PopoverTrigger.PopoverTrigger;
|
|
196
|
+
exports.PopoverTriggerContext = PopoverTriggerContext.PopoverTriggerContext;
|
|
180
197
|
exports.Radio = Radio.Radio;
|
|
181
|
-
exports.
|
|
198
|
+
exports.RovingFocusItem = RovingFocusItem.RovingFocusItem;
|
|
199
|
+
exports.getNextFocusableValue = RovingFocusItem.getNextFocusableValue;
|
|
200
|
+
exports.getPrevFocusableValue = RovingFocusItem.getPrevFocusableValue;
|
|
201
|
+
exports.RovingFocusRoot = RovingFocusRoot.RovingFocusRoot;
|
|
202
|
+
exports.Search = index$e.Search;
|
|
182
203
|
exports.SearchButton = SearchButton.SearchButton;
|
|
204
|
+
exports.SearchClear = SearchClear.SearchClear;
|
|
183
205
|
exports.SearchInput = SearchInput.SearchInput;
|
|
184
|
-
exports.
|
|
185
|
-
exports.Select = index$e.Select;
|
|
186
|
-
exports.SelectOption = SelectOption.SelectOption;
|
|
206
|
+
exports.Select = index$f.Select;
|
|
187
207
|
exports.SelectOptgroup = SelectOptgroup.SelectOptgroup;
|
|
208
|
+
exports.SelectOption = SelectOption.SelectOption;
|
|
188
209
|
exports.Skeleton = Skeleton.Skeleton;
|
|
189
210
|
exports.SkipLink = SkipLink.SkipLink;
|
|
190
211
|
exports.Spinner = Spinner.Spinner;
|
|
191
|
-
exports.EXPERIMENTAL_Suggestion = index$f.EXPERIMENTAL_Suggestion;
|
|
192
|
-
exports.Suggestion = index$f.Suggestion;
|
|
193
|
-
exports.EXPERIMENTAL_SuggestionList = SuggestionList.SuggestionList;
|
|
194
|
-
exports.SuggestionList = SuggestionList.SuggestionList;
|
|
195
|
-
exports.EXPERIMENTAL_SuggestionInput = SuggestionInput.SuggestionInput;
|
|
196
|
-
exports.SuggestionInput = SuggestionInput.SuggestionInput;
|
|
197
|
-
exports.EXPERIMENTAL_SuggestionEmpty = SuggestionEmpty.SuggestionEmpty;
|
|
198
|
-
exports.SuggestionEmpty = SuggestionEmpty.SuggestionEmpty;
|
|
199
|
-
exports.EXPERIMENTAL_SuggestionOption = SuggestionOption.SuggestionOption;
|
|
200
|
-
exports.SuggestionOption = SuggestionOption.SuggestionOption;
|
|
201
|
-
exports.EXPERIMENTAL_SuggestionClear = SuggestionClear.SuggestionClear;
|
|
202
|
-
exports.SuggestionClear = SuggestionClear.SuggestionClear;
|
|
203
|
-
exports.EXPERIMENTAL_SuggestionChips = SuggestionChips.SuggestionChips;
|
|
204
|
-
exports.SuggestionChips = SuggestionChips.SuggestionChips;
|
|
205
212
|
exports.Switch = Switch.Switch;
|
|
206
213
|
exports.Table = index$g.Table;
|
|
207
|
-
exports.TableHead = TableHead.TableHead;
|
|
208
214
|
exports.TableBody = TableBody.TableBody;
|
|
209
|
-
exports.TableRow = TableRow.TableRow;
|
|
210
215
|
exports.TableCell = TableCell.TableCell;
|
|
211
|
-
exports.TableHeaderCell = TableHeaderCell.TableHeaderCell;
|
|
212
216
|
exports.TableFoot = TableFoot.TableFoot;
|
|
217
|
+
exports.TableHead = TableHead.TableHead;
|
|
218
|
+
exports.TableHeaderCell = TableHeaderCell.TableHeaderCell;
|
|
219
|
+
exports.TableRow = TableRow.TableRow;
|
|
213
220
|
exports.Tabs = index$h.Tabs;
|
|
214
|
-
exports.TabsTab = TabsTab.TabsTab;
|
|
215
221
|
exports.TabsList = TabsList.TabsList;
|
|
216
222
|
exports.TabsPanel = TabsPanel.TabsPanel;
|
|
223
|
+
exports.TabsTab = TabsTab.TabsTab;
|
|
217
224
|
exports.Tag = Tag.Tag;
|
|
218
225
|
exports.Textarea = Textarea.Textarea;
|
|
219
226
|
exports.Textfield = Textfield.Textfield;
|
|
@@ -223,9 +230,6 @@ exports.ToggleGroup = index$j.ToggleGroup;
|
|
|
223
230
|
exports.ToggleGroupItem = ToggleGroupItem.ToggleGroupItem;
|
|
224
231
|
exports.Tooltip = Tooltip.Tooltip;
|
|
225
232
|
exports.ValidationMessage = ValidationMessage.ValidationMessage;
|
|
226
|
-
exports.Container = Container.Container;
|
|
227
|
-
exports.GridCol = GridCol.GridCol;
|
|
228
|
-
exports.GridRow = GridRow.GridRow;
|
|
229
233
|
exports.omit = omit.omit;
|
|
230
234
|
exports.useCheckboxGroup = useCheckboxGroup.useCheckboxGroup;
|
|
231
235
|
exports.useDebounceCallback = useDebounceCallback.useDebounceCallback;
|
|
@@ -234,9 +238,5 @@ exports.useMediaQuery = useMediaQuery.useMediaQuery;
|
|
|
234
238
|
exports.useMergeRefs = useMergeRefs.useMergeRefs;
|
|
235
239
|
exports.usePagination = usePagination.usePagination;
|
|
236
240
|
exports.useRadioGroup = useRadioGroup.useRadioGroup;
|
|
237
|
-
exports.useSynchronizedAnimation = useSynchronizedAnimation.useSynchronizedAnimation;
|
|
238
|
-
exports.RovingFocusRoot = RovingFocusRoot.RovingFocusRoot;
|
|
239
241
|
exports.useRovingFocus = useRovingFocus.useRovingFocus;
|
|
240
|
-
exports.
|
|
241
|
-
exports.getNextFocusableValue = RovingFocusItem.getNextFocusableValue;
|
|
242
|
-
exports.getPrevFocusableValue = RovingFocusItem.getPrevFocusableValue;
|
|
242
|
+
exports.useSynchronizedAnimation = useSynchronizedAnimation.useSynchronizedAnimation;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import cl from 'clsx/lite';
|
|
5
|
-
import { forwardRef,
|
|
5
|
+
import { forwardRef, useId, useState, createContext } from 'react';
|
|
6
6
|
|
|
7
7
|
const ErrorSummaryContext = createContext({
|
|
8
8
|
headingId: 'heading',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef,
|
|
3
|
+
import { forwardRef, useRef, useId, useState, useEffect, useCallback, createContext } from 'react';
|
|
4
4
|
import '@u-elements/u-combobox';
|
|
5
5
|
import cl from 'clsx/lite';
|
|
6
6
|
import { Chip } from '../Chip/index.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -4,88 +4,93 @@ export { Avatar } from './components/Avatar/Avatar.js';
|
|
|
4
4
|
export { Badge } from './components/Badge/index.js';
|
|
5
5
|
export { BadgePosition } from './components/Badge/BadgePosition.js';
|
|
6
6
|
export { Breadcrumbs } from './components/Breadcrumbs/index.js';
|
|
7
|
-
export { BreadcrumbsList } from './components/Breadcrumbs/BreadcrumbsList.js';
|
|
8
7
|
export { BreadcrumbsItem } from './components/Breadcrumbs/BreadcrumbsItem.js';
|
|
9
8
|
export { BreadcrumbsLink } from './components/Breadcrumbs/BreadcrumbsLink.js';
|
|
9
|
+
export { BreadcrumbsList } from './components/Breadcrumbs/BreadcrumbsList.js';
|
|
10
10
|
export { Button } from './components/Button/Button.js';
|
|
11
11
|
export { Card } from './components/Card/index.js';
|
|
12
12
|
export { CardBlock } from './components/Card/CardBlock.js';
|
|
13
13
|
export { Checkbox } from './components/Checkbox/Checkbox.js';
|
|
14
14
|
export { Chip } from './components/Chip/index.js';
|
|
15
15
|
export { ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from './components/Chip/Chips.js';
|
|
16
|
+
export { Container } from './layouts/Container/Container.js';
|
|
16
17
|
export { Details } from './components/Details/index.js';
|
|
17
18
|
export { DetailsContent } from './components/Details/DetailsContent.js';
|
|
18
19
|
export { DetailsSummary } from './components/Details/DetailsSummary.js';
|
|
19
20
|
export { Dialog } from './components/Dialog/index.js';
|
|
20
21
|
export { DialogBlock } from './components/Dialog/DialogBlock.js';
|
|
21
|
-
export { DialogTriggerContext } from './components/Dialog/DialogTriggerContext.js';
|
|
22
22
|
export { DialogTrigger } from './components/Dialog/DialogTrigger.js';
|
|
23
|
+
export { DialogTriggerContext } from './components/Dialog/DialogTriggerContext.js';
|
|
23
24
|
export { Divider } from './components/Divider/Divider.js';
|
|
24
25
|
export { Dropdown } from './components/Dropdown/index.js';
|
|
25
|
-
export {
|
|
26
|
-
export { DropdownList } from './components/Dropdown/DropdownList.js';
|
|
26
|
+
export { DropdownButton } from './components/Dropdown/DropdownButton.js';
|
|
27
27
|
export { DropdownHeading } from './components/Dropdown/DropdownHeading.js';
|
|
28
28
|
export { DropdownItem } from './components/Dropdown/DropdownItem.js';
|
|
29
|
-
export {
|
|
29
|
+
export { DropdownList } from './components/Dropdown/DropdownList.js';
|
|
30
30
|
export { DropdownTrigger } from './components/Dropdown/DropdownTrigger.js';
|
|
31
|
+
export { DropdownTriggerContext } from './components/Dropdown/DropdownTriggerContext.js';
|
|
32
|
+
export { EXPERIMENTAL_Suggestion, Suggestion } from './components/Suggestion/index.js';
|
|
33
|
+
export { SuggestionChips as EXPERIMENTAL_SuggestionChips, SuggestionChips } from './components/Suggestion/SuggestionChips.js';
|
|
34
|
+
export { SuggestionClear as EXPERIMENTAL_SuggestionClear, SuggestionClear } from './components/Suggestion/SuggestionClear.js';
|
|
35
|
+
export { SuggestionEmpty as EXPERIMENTAL_SuggestionEmpty, SuggestionEmpty } from './components/Suggestion/SuggestionEmpty.js';
|
|
36
|
+
export { SuggestionInput as EXPERIMENTAL_SuggestionInput, SuggestionInput } from './components/Suggestion/SuggestionInput.js';
|
|
37
|
+
export { SuggestionList as EXPERIMENTAL_SuggestionList, SuggestionList } from './components/Suggestion/SuggestionList.js';
|
|
38
|
+
export { SuggestionOption as EXPERIMENTAL_SuggestionOption, SuggestionOption } from './components/Suggestion/SuggestionOption.js';
|
|
31
39
|
export { ErrorSummary } from './components/ErrorSummary/index.js';
|
|
32
|
-
export { ErrorSummaryItem } from './components/ErrorSummary/ErrorSummaryItem.js';
|
|
33
40
|
export { ErrorSummaryHeading } from './components/ErrorSummary/ErrorSummaryHeading.js';
|
|
34
|
-
export {
|
|
41
|
+
export { ErrorSummaryItem } from './components/ErrorSummary/ErrorSummaryItem.js';
|
|
35
42
|
export { ErrorSummaryLink } from './components/ErrorSummary/ErrorSummaryLink.js';
|
|
43
|
+
export { ErrorSummaryList } from './components/ErrorSummary/ErrorSummaryList.js';
|
|
36
44
|
export { Field } from './components/Field/index.js';
|
|
37
|
-
export { FieldDescription } from './components/Field/FieldDescription.js';
|
|
38
45
|
export { FieldAffix, FieldAffixes } from './components/Field/FieldAffix.js';
|
|
39
46
|
export { FieldCounter } from './components/Field/FieldCounter.js';
|
|
47
|
+
export { FieldDescription } from './components/Field/FieldDescription.js';
|
|
40
48
|
export { Fieldset } from './components/Fieldset/index.js';
|
|
41
|
-
export { FieldsetLegend } from './components/Fieldset/FieldsetLegend.js';
|
|
42
49
|
export { FieldsetDescription } from './components/Fieldset/FieldsetDescription.js';
|
|
50
|
+
export { FieldsetLegend } from './components/Fieldset/FieldsetLegend.js';
|
|
51
|
+
export { GridCol } from './layouts/Grid/GridCol.js';
|
|
52
|
+
export { GridRow } from './layouts/Grid/GridRow.js';
|
|
43
53
|
export { Heading } from './components/Heading/Heading.js';
|
|
44
54
|
export { InfoCard } from './components/InfoCard/InfoCard.js';
|
|
45
55
|
export { Input } from './components/Input/Input.js';
|
|
46
56
|
export { Label } from './components/Label/Label.js';
|
|
47
57
|
export { Link } from './components/Link/Link.js';
|
|
48
58
|
export { List } from './components/List/index.js';
|
|
49
|
-
export { ListOrdered, ListUnordered } from './components/List/Lists.js';
|
|
50
59
|
export { ListItem } from './components/List/ListItem.js';
|
|
60
|
+
export { ListOrdered, ListUnordered } from './components/List/Lists.js';
|
|
51
61
|
export { Pagination } from './components/Pagination/index.js';
|
|
52
|
-
export { PaginationList } from './components/Pagination/PaginationList.js';
|
|
53
|
-
export { PaginationItem } from './components/Pagination/PaginationItem.js';
|
|
54
62
|
export { PaginationButton } from './components/Pagination/PaginationButton.js';
|
|
63
|
+
export { PaginationItem } from './components/Pagination/PaginationItem.js';
|
|
64
|
+
export { PaginationList } from './components/Pagination/PaginationList.js';
|
|
55
65
|
export { Paragraph } from './components/Paragraph/Paragraph.js';
|
|
56
66
|
export { Popover } from './components/Popover/index.js';
|
|
57
|
-
export { PopoverTriggerContext } from './components/Popover/PopoverTriggerContext.js';
|
|
58
67
|
export { PopoverTrigger } from './components/Popover/PopoverTrigger.js';
|
|
68
|
+
export { PopoverTriggerContext } from './components/Popover/PopoverTriggerContext.js';
|
|
59
69
|
export { Radio } from './components/Radio/Radio.js';
|
|
60
|
-
export {
|
|
70
|
+
export { RovingFocusItem, getNextFocusableValue, getPrevFocusableValue } from './utilities/RovingFocus/RovingFocusItem.js';
|
|
71
|
+
export { RovingFocusRoot } from './utilities/RovingFocus/RovingFocusRoot.js';
|
|
72
|
+
export { Search } from './components/Search/index.js';
|
|
61
73
|
export { SearchButton } from './components/Search/SearchButton.js';
|
|
74
|
+
export { SearchClear } from './components/Search/SearchClear.js';
|
|
62
75
|
export { SearchInput } from './components/Search/SearchInput.js';
|
|
63
|
-
export { Search } from './components/Search/index.js';
|
|
64
76
|
export { Select } from './components/Select/index.js';
|
|
65
|
-
export { SelectOption } from './components/Select/SelectOption.js';
|
|
66
77
|
export { SelectOptgroup } from './components/Select/SelectOptgroup.js';
|
|
78
|
+
export { SelectOption } from './components/Select/SelectOption.js';
|
|
67
79
|
export { Skeleton } from './components/Skeleton/Skeleton.js';
|
|
68
80
|
export { SkipLink } from './components/SkipLink/SkipLink.js';
|
|
69
81
|
export { Spinner } from './components/Spinner/Spinner.js';
|
|
70
|
-
export { EXPERIMENTAL_Suggestion, Suggestion } from './components/Suggestion/index.js';
|
|
71
|
-
export { SuggestionList as EXPERIMENTAL_SuggestionList, SuggestionList } from './components/Suggestion/SuggestionList.js';
|
|
72
|
-
export { SuggestionInput as EXPERIMENTAL_SuggestionInput, SuggestionInput } from './components/Suggestion/SuggestionInput.js';
|
|
73
|
-
export { SuggestionEmpty as EXPERIMENTAL_SuggestionEmpty, SuggestionEmpty } from './components/Suggestion/SuggestionEmpty.js';
|
|
74
|
-
export { SuggestionOption as EXPERIMENTAL_SuggestionOption, SuggestionOption } from './components/Suggestion/SuggestionOption.js';
|
|
75
|
-
export { SuggestionClear as EXPERIMENTAL_SuggestionClear, SuggestionClear } from './components/Suggestion/SuggestionClear.js';
|
|
76
|
-
export { SuggestionChips as EXPERIMENTAL_SuggestionChips, SuggestionChips } from './components/Suggestion/SuggestionChips.js';
|
|
77
82
|
export { Switch } from './components/Switch/Switch.js';
|
|
78
83
|
export { Table } from './components/Table/index.js';
|
|
79
|
-
export { TableHead } from './components/Table/TableHead.js';
|
|
80
84
|
export { TableBody } from './components/Table/TableBody.js';
|
|
81
|
-
export { TableRow } from './components/Table/TableRow.js';
|
|
82
85
|
export { TableCell } from './components/Table/TableCell.js';
|
|
83
|
-
export { TableHeaderCell } from './components/Table/TableHeaderCell.js';
|
|
84
86
|
export { TableFoot } from './components/Table/TableFoot.js';
|
|
87
|
+
export { TableHead } from './components/Table/TableHead.js';
|
|
88
|
+
export { TableHeaderCell } from './components/Table/TableHeaderCell.js';
|
|
89
|
+
export { TableRow } from './components/Table/TableRow.js';
|
|
85
90
|
export { Tabs } from './components/Tabs/index.js';
|
|
86
|
-
export { TabsTab } from './components/Tabs/TabsTab.js';
|
|
87
91
|
export { TabsList } from './components/Tabs/TabsList.js';
|
|
88
92
|
export { TabsPanel } from './components/Tabs/TabsPanel.js';
|
|
93
|
+
export { TabsTab } from './components/Tabs/TabsTab.js';
|
|
89
94
|
export { Tag } from './components/Tag/Tag.js';
|
|
90
95
|
export { Textarea } from './components/Textarea/Textarea.js';
|
|
91
96
|
export { Textfield } from './components/Textfield/Textfield.js';
|
|
@@ -95,9 +100,6 @@ export { ToggleGroup } from './components/ToggleGroup/index.js';
|
|
|
95
100
|
export { ToggleGroupItem } from './components/ToggleGroup/ToggleGroupItem.js';
|
|
96
101
|
export { Tooltip } from './components/Tooltip/Tooltip.js';
|
|
97
102
|
export { ValidationMessage } from './components/ValidationMessage/ValidationMessage.js';
|
|
98
|
-
export { Container } from './layouts/Container/Container.js';
|
|
99
|
-
export { GridCol } from './layouts/Grid/GridCol.js';
|
|
100
|
-
export { GridRow } from './layouts/Grid/GridRow.js';
|
|
101
103
|
export { omit } from './utilities/omit/omit.js';
|
|
102
104
|
export { useCheckboxGroup } from './utilities/hooks/useCheckboxGroup/useCheckboxGroup.js';
|
|
103
105
|
export { useDebounceCallback } from './utilities/hooks/useDebounceCallback/useDebounceCallback.js';
|
|
@@ -106,7 +108,5 @@ export { useMediaQuery } from './utilities/hooks/useMediaQuery/useMediaQuery.js'
|
|
|
106
108
|
export { useMergeRefs } from './utilities/hooks/useMergeRefs/useMergeRefs.js';
|
|
107
109
|
export { usePagination } from './utilities/hooks/usePagination/usePagination.js';
|
|
108
110
|
export { useRadioGroup } from './utilities/hooks/useRadioGroup/useRadioGroup.js';
|
|
109
|
-
export { useSynchronizedAnimation } from './utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.js';
|
|
110
|
-
export { RovingFocusRoot } from './utilities/RovingFocus/RovingFocusRoot.js';
|
|
111
111
|
export { useRovingFocus } from './utilities/RovingFocus/useRovingFocus.js';
|
|
112
|
-
export {
|
|
112
|
+
export { useSynchronizedAnimation } from './utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.js';
|
|
@@ -13,7 +13,7 @@ import { PopoverTriggerContext } from './PopoverTriggerContext';
|
|
|
13
13
|
*/
|
|
14
14
|
declare const Popover: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLDivElement>, "id" | "data-color" | "variant" | "asChild" | "open" | "placement" | "onClose" | "onOpen" | "autoPlacement"> & {
|
|
15
15
|
id?: string;
|
|
16
|
-
placement?: import("@floating-ui/
|
|
16
|
+
placement?: import("@floating-ui/dom").Placement;
|
|
17
17
|
open?: boolean;
|
|
18
18
|
variant?: "default" | "tinted";
|
|
19
19
|
'data-color'?: import("../../colors").Color | import("../../colors").SeverityColors;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uppsala-designsystem/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"description": "React components for Designsystemet",
|
|
6
6
|
"author": "Uppsala kommun",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/UppsalaKommun/designsystemet"
|
|
9
|
+
"url": "git+https://github.com/UppsalaKommun/designsystemet.git"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/UppsalaKommun/designsystemet/tree/main/packages/ui",
|
|
12
12
|
"license": "MIT",
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
"dist/**",
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",
|
|
34
|
+
"clean": "rimraf dist && rimraf tsc-build && rimraf --glob \"*.tsbuildinfo\"",
|
|
35
|
+
"copy-css-to-build": "copyfiles -u 1 ./src/**/*.css ./tsc-build/",
|
|
36
|
+
"types": "tsc --noEmit",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"test:coverage": "vitest --coverage"
|
|
39
|
+
},
|
|
32
40
|
"peerDependencies": {
|
|
33
41
|
"react": ">=19.0.0",
|
|
34
42
|
"react-dom": ">=19.0.0"
|
|
@@ -39,7 +47,7 @@
|
|
|
39
47
|
},
|
|
40
48
|
"dependencies": {
|
|
41
49
|
"@floating-ui/dom": "1.6.10",
|
|
42
|
-
"@floating-ui/react": "0.
|
|
50
|
+
"@floating-ui/react": "0.27.19",
|
|
43
51
|
"@navikt/aksel-icons": "7.20.0",
|
|
44
52
|
"@radix-ui/react-slot": "1.1.1",
|
|
45
53
|
"@tanstack/react-virtual": "3.11.2",
|
|
@@ -49,35 +57,27 @@
|
|
|
49
57
|
"clsx": "2.1.1"
|
|
50
58
|
},
|
|
51
59
|
"devDependencies": {
|
|
60
|
+
"@repo/typescript-config": "workspace:*",
|
|
52
61
|
"@rollup/plugin-commonjs": "28.0.2",
|
|
53
62
|
"@rollup/plugin-node-resolve": "16.0.0",
|
|
54
|
-
"@storybook/addon-docs": "10.1
|
|
63
|
+
"@storybook/addon-docs": "10.4.1",
|
|
55
64
|
"@testing-library/dom": "10.4.0",
|
|
56
65
|
"@testing-library/jest-dom": "6.6.3",
|
|
57
|
-
"@testing-library/react": "16.2
|
|
66
|
+
"@testing-library/react": "16.3.2",
|
|
58
67
|
"@testing-library/user-event": "14.6.0",
|
|
59
68
|
"@types/react": "19.1.13",
|
|
60
69
|
"@types/react-dom": "19.1.9",
|
|
61
|
-
"@vitest/coverage-v8": "
|
|
62
|
-
"@vitest/ui": "
|
|
70
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
71
|
+
"@vitest/ui": "^4.1.7",
|
|
63
72
|
"copyfiles": "2.4.1",
|
|
64
|
-
"
|
|
65
|
-
"react": "19.
|
|
66
|
-
"react-dom": "19.
|
|
73
|
+
"happy-dom": "^20.9.0",
|
|
74
|
+
"react": "19.2.6",
|
|
75
|
+
"react-dom": "19.2.6",
|
|
67
76
|
"rimraf": "6.0.1",
|
|
68
|
-
"rollup": "4.
|
|
77
|
+
"rollup": "^4.60.4",
|
|
69
78
|
"rollup-plugin-copy": "3.5.0",
|
|
70
79
|
"tsconfck": "3.1.6",
|
|
71
80
|
"typescript": "5.8.3",
|
|
72
|
-
"vitest": "
|
|
73
|
-
"@repo/typescript-config": "0.0.0"
|
|
74
|
-
},
|
|
75
|
-
"scripts": {
|
|
76
|
-
"build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",
|
|
77
|
-
"clean": "rimraf dist && rimraf tsc-build && rimraf --glob \"*.tsbuildinfo\"",
|
|
78
|
-
"copy-css-to-build": "copyfiles -u 1 ./src/**/*.css ./tsc-build/",
|
|
79
|
-
"types": "tsc --noEmit",
|
|
80
|
-
"test": "vitest",
|
|
81
|
-
"test:coverage": "vitest --coverage"
|
|
81
|
+
"vitest": "^4.1.7"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright 2024 Digitaliseringsdirektoratet (Digdir)
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|