@altinn/altinn-components 0.10.4 → 0.12.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/README.md +11 -1
- package/dist/assets/Breadcrumbs.css +1 -0
- package/dist/assets/BreadcrumbsLink.css +1 -0
- package/dist/assets/FieldBase.css +1 -0
- package/dist/assets/Flex.css +1 -0
- package/dist/assets/Grid.css +1 -0
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/InputBase.css +1 -0
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/MenuItemMedia.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/Section.css +1 -1
- package/dist/assets/SnackbarBase.css +1 -1
- package/dist/assets/SnackbarItem.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/components/AccessAreaList/AccessAreaList.js +6 -5
- package/dist/components/AccessAreaList/AccessAreaListItem.js +13 -12
- package/dist/components/AccessPackageList/AccessPackageList.js +5 -4
- package/dist/components/AccessPackageList/AccessPackageListItem.js +6 -5
- package/dist/components/Autocomplete/AutocompleteItem.js +13 -12
- package/dist/components/Autocomplete/ScopeListItem.js +3 -2
- package/dist/components/Bookmarks/BookmarksListItem.js +69 -7
- package/dist/components/Bookmarks/BookmarksSection.js +33 -13
- package/dist/components/Bookmarks/QueryLabel.js +9 -9
- package/dist/components/Bookmarks/index.js +7 -9
- package/dist/components/Button/Button.js +16 -15
- package/dist/components/Button/IconButton.js +22 -10
- package/dist/components/Byline/Byline.js +4 -3
- package/dist/components/ContextMenu/ContextMenu.js +11 -10
- package/dist/components/Dialog/Dialog.js +16 -15
- package/dist/components/Dialog/DialogActions.js +3 -2
- package/dist/components/Dialog/DialogByline.js +5 -4
- package/dist/components/Dialog/DialogContent.js +8 -7
- package/dist/components/Dialog/DialogHeading.js +8 -7
- package/dist/components/Dialog/DialogHistory.js +6 -5
- package/dist/components/Dialog/DialogHistoryDetails.js +11 -10
- package/dist/components/Dialog/DialogHistoryItem.js +6 -5
- package/dist/components/Dialog/DialogList.js +3 -2
- package/dist/components/Dialog/DialogListGroup.js +8 -7
- package/dist/components/Dialog/DialogListItem.js +19 -18
- package/dist/components/Dialog/DialogMetadata.js +10 -9
- package/dist/components/Dialog/DialogSection.js +5 -4
- package/dist/components/Dialog/DialogTimeline.js +7 -6
- package/dist/components/Dialog/DialogTimelineItem.js +3 -2
- package/dist/components/Dialog/DialogTransmissions.js +3 -2
- package/dist/components/Dialog/DraftDialog.js +19 -18
- package/dist/components/Dropdown/DrawerButton.js +3 -2
- package/dist/components/Dropdown/DrawerOrDropdown.js +3 -2
- package/dist/components/Dropdown/DropdownBase.js +8 -7
- package/dist/components/GlobalMenu/AccountButton.js +3 -2
- package/dist/components/GlobalMenu/AccountMenu.js +12 -11
- package/dist/components/GlobalMenu/BackButton.js +3 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +21 -20
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/HeaderBase.js +4 -3
- package/dist/components/Icon/iconsMap.js +16960 -739
- package/dist/components/Layout/Layout.js +7 -6
- package/dist/components/LayoutAction/ActionMenu.js +4 -3
- package/dist/components/List/List.js +5 -4
- package/dist/components/List/ListItemBase.js +11 -11
- package/dist/components/List/ListItemControls.js +15 -15
- package/dist/components/List/ListItemHeader.js +49 -49
- package/dist/components/List/ListItemLabel.js +8 -8
- package/dist/components/Menu/MenuItemMedia.js +5 -5
- package/dist/components/Menu/MenuItems.js +1 -0
- package/dist/components/Menu/MenuSearch.js +5 -4
- package/dist/components/Page/Article.js +4 -4
- package/dist/components/Page/Breadcrumbs.js +23 -0
- package/dist/components/Page/BreadcrumbsLink.js +28 -0
- package/dist/components/Page/Flex.js +42 -0
- package/dist/components/Page/Grid.js +34 -0
- package/dist/components/Page/PageHeader.js +11 -9
- package/dist/components/Page/PageNav.js +21 -17
- package/dist/components/Page/Section.js +12 -40
- package/dist/components/Page/index.js +18 -14
- package/dist/components/ResourceList/ResourceList.js +3 -2
- package/dist/components/ResourceList/ResourceListItem.js +3 -2
- package/dist/components/RootProvider/RootProvider.js +13 -12
- package/dist/components/Searchbar/SearchField.js +38 -28
- package/dist/components/Searchbar/Searchbar.js +3 -2
- package/dist/components/Snackbar/Snackbar.js +17 -8
- package/dist/components/Snackbar/SnackbarBase.js +5 -21
- package/dist/components/Snackbar/SnackbarItem.js +32 -0
- package/dist/components/Snackbar/index.js +2 -6
- package/dist/components/Snackbar/useSnackbar.js +47 -0
- package/dist/components/TextField/FieldBase.js +16 -0
- package/dist/components/TextField/InputBase.js +33 -0
- package/dist/components/TextField/TextField.js +7 -0
- package/dist/components/TextField/index.js +8 -0
- package/dist/components/Timeline/TimelineSection.js +3 -2
- package/dist/components/Toolbar/ToolbarAccountMenu.js +5 -4
- package/dist/components/Toolbar/ToolbarAdd.js +6 -5
- package/dist/components/Toolbar/ToolbarDaterange.js +11 -10
- package/dist/components/Toolbar/ToolbarFilter.js +12 -11
- package/dist/components/Toolbar/ToolbarMenu.js +3 -2
- package/dist/components/Toolbar/ToolbarOptions.js +10 -9
- package/dist/components/Toolbar/ToolbarSearch.js +5 -4
- package/dist/components/Transmission/TransmissionItem.js +3 -2
- package/dist/components/Transmission/TransmissionList.js +3 -2
- package/dist/components/Typography/Heading.js +3 -3
- package/dist/components/Typography/Typography.js +8 -9
- package/dist/components/index.js +270 -266
- package/dist/footer-BI7NNFeL.js +27 -0
- package/dist/globalMenu-A9dXKjrI.js +80 -0
- package/dist/header-B7oMg4iq.js +11 -0
- package/dist/inboxMenu-DXIoTtPz.js +48 -0
- package/dist/index.js +264 -260
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +18 -2
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +2 -4
- package/dist/types/lib/components/Bookmarks/BookmarksSection.d.ts +8 -3
- package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +42 -3
- package/dist/types/lib/components/Bookmarks/index.d.ts +0 -1
- package/dist/types/lib/components/Button/Button.d.ts +2 -1
- package/dist/types/lib/components/Button/Button.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/IconButton.d.ts +2 -1
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Layout/LayoutBase.d.ts +1 -1
- package/dist/types/lib/components/LayoutAction/ActionFooter.stories.d.ts +0 -2
- package/dist/types/lib/components/List/ListItemControls.d.ts +2 -1
- package/dist/types/lib/components/List/ListItemHeader.d.ts +2 -2
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +1 -1
- package/dist/types/lib/components/Page/Article.d.ts +1 -1
- package/dist/types/lib/components/Page/Breadcrumbs.d.ts +5 -0
- package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +11 -0
- package/dist/types/lib/components/Page/{PageBase.stories.d.ts → Examples.stories.d.ts} +2 -1
- package/dist/types/lib/components/Page/Flex.d.ts +29 -0
- package/dist/types/lib/components/Page/Grid.d.ts +22 -0
- package/dist/types/lib/components/Page/PageNav.d.ts +6 -3
- package/dist/types/lib/components/Page/PageNav.stories.d.ts +2 -1
- package/dist/types/lib/components/Page/Section.d.ts +6 -26
- package/dist/types/lib/components/Page/index.d.ts +4 -2
- package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +6 -1
- package/dist/types/lib/components/Snackbar/Snackbar.d.ts +1 -16
- package/dist/types/lib/components/Snackbar/Snackbar.stories.d.ts +3 -8
- package/dist/types/lib/components/Snackbar/SnackbarBase.d.ts +6 -11
- package/dist/types/lib/components/Snackbar/SnackbarItem.d.ts +16 -0
- package/dist/types/lib/components/Snackbar/index.d.ts +2 -4
- package/dist/types/lib/components/Snackbar/useSnackbar.d.ts +39 -0
- package/dist/types/lib/components/TextField/FieldBase.d.ts +11 -0
- package/dist/types/lib/components/TextField/InputBase.d.ts +14 -0
- package/dist/types/lib/components/TextField/TextField.d.ts +7 -0
- package/dist/types/lib/components/TextField/index.d.ts +3 -0
- package/dist/types/lib/components/Typography/Heading.d.ts +2 -2
- package/dist/types/lib/components/Typography/Typography.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +1 -0
- package/dist/{useAccountMenu-ImwZYwks.js → useAccountMenu-DgXhBMw4.js} +19 -27
- package/package.json +7 -2
- package/dist/ZoomPlusFill-xyiiemTy.js +0 -17126
- package/dist/assets/ListItemMenu.css +0 -1
- package/dist/assets/SectionFooter.css +0 -1
- package/dist/assets/SnackbarLabel.css +0 -1
- package/dist/assets/SnackbarMedia.css +0 -1
- package/dist/components/Bookmarks/BookmarksList.js +0 -12
- package/dist/components/Icon/__AkselIcon.js +0 -1042
- package/dist/components/List/ListItemMenu.js +0 -8
- package/dist/components/Page/SectionFooter.js +0 -8
- package/dist/components/Page/SectionHeader.js +0 -12
- package/dist/components/Snackbar/SnackbarLabel.js +0 -7
- package/dist/components/Snackbar/SnackbarMedia.js +0 -11
- package/dist/types/lib/components/Bookmarks/BookmarksList.d.ts +0 -5
- package/dist/types/lib/components/Bookmarks/BookmarksList.stories.d.ts +0 -34
- package/dist/types/lib/components/List/ListItemMenu.d.ts +0 -8
- package/dist/types/lib/components/Page/SectionFooter.d.ts +0 -6
- package/dist/types/lib/components/Page/SectionHeader.d.ts +0 -6
- package/dist/types/lib/components/Snackbar/SnackbarLabel.d.ts +0 -5
- package/dist/types/lib/components/Snackbar/SnackbarMedia.d.ts +0 -6
package/README.md
CHANGED
|
@@ -50,4 +50,14 @@ for correct `font-family` and minimal collection of resets.
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
## Documentation
|
|
53
|
-
The documentation for the components can be found in the [Storybook](https://altinn.github.io/altinn-components)
|
|
53
|
+
The documentation for the components can be found in the [Storybook](https://altinn.github.io/altinn-components)
|
|
54
|
+
Components are decorated with tags to show the current status of the component.
|
|
55
|
+
|
|
56
|
+
The tags are:
|
|
57
|
+
- `@outdated` - The component is out of sync with latest design.
|
|
58
|
+
- `@beta` - The component is in beta and is more likely to have flaws or missing features.
|
|
59
|
+
- `@experimental` - The component is experimental and is work in progress. Recommended not to use.
|
|
60
|
+
- `@deprecated` - The component is deprecated and should not be used.
|
|
61
|
+
|
|
62
|
+
The main motivation behind having tags is relieving the pressure of having to make everything stable before releasing it for use.
|
|
63
|
+
It also allows us to get feedback on the components in an early stage.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._list_8q7kr_1{list-style:none;padding:0;margin:0;margin:.625rem 0;text-indent:0;display:flex;align-items:center;flex-wrap:wrap}._item_8q7kr_12{display:flex;align-items:center;color:var(--theme-text-subtle)}._icon_8q7kr_18{font-size:1.5rem;margin:0 .25rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._link_znbj7_1{white-space:nowrap;padding:0;margin:0;background:none;border:0;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;font-size:1rem}a._link_znbj7_1,button._link_znbj7_1{color:var(--theme-text-subtle);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px;cursor:pointer}a._link_znbj7_1:hover,button._link_znbj7_1:hover{color:var(--theme-text-default)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._field_5tnbv_1{display:flex;flex-direction:column;row-gap:.25rem}._label_5tnbv_7{color:var(--theme-text-default)}._helperText_5tnbv_11{color:var(--theme-text-subtle)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._flex_18d8p_1{display:flex}._flex_18d8p_1[data-direction=col]{flex-direction:column}._flex_18d8p_1[data-direction=row]{flex-direction:row}._flex_18d8p_1[data-align=center]{align-items:center}._flex_18d8p_1[data-align=start]{align-items:flex-start}._flex_18d8p_1[data-align=end]{align-items:flex-end}._flex_18d8p_1[data-justify=start]{justify-content:flex-start}._flex_18d8p_1[data-justify=end]{justify-content:flex-end}._flex_18d8p_1[data-justify=center]{justify-content:center}._flex_18d8p_1[data-justify=between]{justify-content:space-between}._flex_18d8p_1[data-spacing=xs]{gap:.25rem}._flex_18d8p_1[data-spacing=sm]{gap:.5rem}._flex_18d8p_1[data-spacing=md]{gap:.75rem}._flex_18d8p_1[data-spacing=lg]{gap:1rem}._flex_18d8p_1[data-spacing=xl]{gap:1.5rem}@media (max-width: 1024px){._flex_18d8p_1[data-inset=true]{margin-left:-1rem;margin-right:-1rem}}._flex_18d8p_1[data-padding=xs]{padding:.25rem}._flex_18d8p_1[data-padding=sm]{padding:.5rem}._flex_18d8p_1[data-padding=md]{padding:.75rem}._flex_18d8p_1[data-padding=lg]{padding:1rem}._flex_18d8p_1[data-padding=xl]{padding:1.5rem}@media (max-width: 1024px){._flex_18d8p_1[data-padding=xl]{padding:1.5rem 1rem}}._flex_18d8p_1[data-margin=xs]{margin:.25rem 0}._flex_18d8p_1[data-margin=sm]{margin:.5rem 0}._flex_18d8p_1[data-margin=md]{margin:.625rem 0}._flex_18d8p_1[data-margin=lg]{margin:1.125rem 0}._flex_18d8p_1[data-color=subtle]{background-color:var(--theme-background-default)}._flex_18d8p_1[data-color=surface]{background-color:var(--theme-surface-default)}._flex_18d8p_1[data-color=accent]{background-color:var(--theme-base-default)}._flex_18d8p_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._flex_18d8p_1[data-shadow=sm]{box-shadow:var(--ds-shadow-sm)}._flex_18d8p_1[data-shadow=md]{box-shadow:var(--ds-shadow-md)}._flex_18d8p_1[data-shadow=lg]{box-shadow:var(--ds-shadow-lg)}._flex_18d8p_1[data-shadow=xl]{box-shadow:var(--ds-shadow-xl)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._grid_o95ym_1{display:grid}._grid_o95ym_1[data-cols="1-2-3"]{grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 640px){._grid_o95ym_1[data-cols="1-2-3"]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){._grid_o95ym_1[data-cols="1-2-3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}._grid_o95ym_1[data-spacing=xs]{gap:.25rem}._grid_o95ym_1[data-spacing=sm]{gap:.5rem}._grid_o95ym_1[data-spacing=md]{gap:.75rem}._grid_o95ym_1[data-spacing=lg]{gap:1rem}._grid_o95ym_1[data-spacing=xl]{gap:1.5rem}
|
package/dist/assets/Heading.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._heading_mt0g8_1{margin:0}._heading_mt0g8_1[data-weight=normal]{font-weight:400}._heading_mt0g8_1[data-weight=medium]{font-weight:500}._heading_mt0g8_1[data-weight=bold]{font-weight:600}._heading_mt0g8_1[data-size=xs]{font-size:.875rem;line-height:1.5rem}._heading_mt0g8_1[data-size=sm]{font-size:1rem;line-height:1.5rem}._heading_mt0g8_1[data-size=md]{font-size:1.125rem;line-height:1.5rem}._heading_mt0g8_1[data-size=lg]{font-size:1.25rem;line-height:1.25}._heading_mt0g8_1[data-size=xl]{font-size:1.5rem;line-height:1.25}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._input_dxhtf_1{border:1px solid;border-color:transparent;margin:0;padding:0;width:100%;overflow:visible;background:transparent;text-decoration:none;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit}._input_dxhtf_1{border-color:var(--theme-border-default);border-radius:2px}._input_dxhtf_1:disabled{opacity:.5;pointer-events:none}._input_dxhtf_1:focus{border-color:var(--theme-base-active)}._input_dxhtf_1[data-size=xs]{height:1.5rem}._input_dxhtf_1[data-size=sm]{height:2.25rem;padding:0 .5rem}._input_dxhtf_1[data-size=md]{height:2.75rem;padding:0 .75rem}._input_dxhtf_1[data-size=lg]{height:3.5rem;padding:0 1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_7qmbp_1{position:relative;width:100%;display:flex;flex-direction:column}._item_7qmbp_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_7qmbp_1[data-variant=outline],._item_7qmbp_1[data-variant=dotted]{outline-color:var(--theme-base-default)}._item_7qmbp_1[data-variant=outline]{outline-style:solid}._item_7qmbp_1[data-variant=dotted]{outline-style:dashed}._item_7qmbp_1[data-color=neutral]{background-color:var(--theme-background-default)}._item_7qmbp_1[data-color=accent]{background-color:var(--theme-surface-default)}._item_7qmbp_1[data-color=accent]:hover{background-color:var(--theme-surface-hover)}._item_7qmbp_1[data-active=true]{background-color:var(--theme-surface-default)}._item_7qmbp_1[aria-expanded=true],._item_7qmbp_1[aria-selected=true]{outline:2px solid}._item_7qmbp_1:not([aria-selected=true]):hover,._item_7qmbp_1:not([aria-disabled=true]):hover{outline:2px solid var(--theme-border-strong)}._item_7qmbp_1[aria-disabled=true]{pointer-events:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_10vuh_1{position:relative;width:100%;display:flex;align-items:center}._link_10vuh_8{flex-grow:1;display:flex;align-items:center;padding:.5rem;column-gap:.5rem}._link_10vuh_8[data-size=xs]{min-height:44px}._link_10vuh_8[data-size=sm]{min-height:52px}._link_10vuh_8[data-size=md]{min-height:60px;padding:.625rem;column-gap:.625rem}._link_10vuh_8[data-size=lg]{min-height:64px;padding:.75rem;column-gap:.75rem}._link_10vuh_8[data-size=xl]{min-height:72px;padding:1rem;column-gap:1rem}._controls_10vuh_42{margin-right:.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_eum9r_3{width:100%}._label_eum9r_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_eum9r_3[data-size=sm],._label_eum9r_3[data-size=md],._label_eum9r_3[data-size=lg],._label_eum9r_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_eum9r_3[data-size=xs],._label_eum9r_3[data-size=sm],._label_eum9r_3[data-size=md]{font-size:1rem}._label_eum9r_3[data-size=lg],._label_eum9r_3[data-size=xl]{font-size:1.125rem}._title_eum9r_41{display:inline;font-size:1em;font-weight:600;line-height:1.125;margin:0}._description_eum9r_49{display:inline;font-weight:400;line-height:1.125;color:var(--theme-text-subtle);margin:0}._description_eum9r_49[data-size=xs],._description_eum9r_49[data-size=sm],._description_eum9r_49[data-size=md],._description_eum9r_49[data-size=lg],._description_eum9r_49[data-size=xl]{font-size:.875rem;line-height:1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._media_1kkjg_1{flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:5%;width:2rem;height:2rem}._media_1kkjg_1[data-size=lg]{width:44px;height:44px}._media_1kkjg_1[data-size=xs]{width:1.5rem;height:1.5rem}._media_1kkjg_1[data-size=xs] ._icon_1kkjg_21{font-size:1.25rem}._icon_1kkjg_21{font-size:1.5rem}._media_1kkjg_1[data-color=subtle]{background-color:var(--theme-background-default);color:var(--theme-text-default)}._media_1kkjg_1[data-color=surface]{background-color:var(--theme-surface-default);color:var(--theme-text-default)}._media_1kkjg_1[data-color=strong]{background-color:var(--theme-base-default);color:var(--theme-background-default)}._media_1kkjg_1[data-color=company]{background-color:var(--company-surface-default);color:var(--company-text-default)}._media_1kkjg_1[data-color=person]{background-color:var(--person-surface-default);color:var(--person-text-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1sssm_1{display:flex;flex-wrap:wrap;align-items:center;column-gap:.25rem;row-gap:.25rem}._group_1sssm_9{display:inline-flex;align-items:center;column-gap:.25rem}._plus_1sssm_15{color:var(--theme-text-subtle)}._item_1sssm_19{font-size:.875em;display:block;overflow:hidden}._item_1sssm_19[data-type=search]{background-color:transparent;font-weight:500;border-bottom:1px solid;padding:.25em 0}._item_1sssm_19[data-type=search]:before{content:"«"}._item_1sssm_19[data-type=search]:after{content:"»"}._item_1sssm_19[data-type=filter]{background-color:transparent;border:1px solid;font-weight:500;padding:.25em .5em;border-radius:2px}
|
package/dist/assets/Section.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._section_167jj_1[data-bg=subtle]{background-color:var(--theme-background-default)}._section_167jj_1[data-bg=surface]{background-color:var(--theme-surface-default)}._section_167jj_1[data-bg=accent]{background-color:var(--theme-base-default)}._section_167jj_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._section_167jj_1[data-shadow=sm]{box-shadow:var(--ds-shadow-sm)}._section_167jj_1[data-shadow=md]{box-shadow:var(--ds-shadow-md)}._section_167jj_1[data-shadow=lg]{box-shadow:var(--ds-shadow-lg)}._section_167jj_1[data-shadow=xl]{box-shadow:var(--ds-shadow-xl)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._stack_1lu9j_1{position:fixed;top:auto;right:0;bottom:0;left:0;display:flex;flex-direction:column;row-gap:.5rem;padding:1rem}@media (min-width: 1024px){._stack_1lu9j_1{align-items:center}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._item_1jw8i_1{border:none;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-user-select:none;user-select:none;border-radius:.5rem;box-shadow:var(--ds-shadow-xs)}._item_1jw8i_1{position:relative;display:flex;align-items:center;text-decoration:none;color:inherit;padding:.625rem}._media_1jw8i_23{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem}._icon_1jw8i_32{font-size:1.5rem}._content_1jw8i_36{flex-grow:1;display:flex;align-items:center;margin-left:.625rem;margin-right:1.25rem}._action_1jw8i_44{flex-shrink:0;display:flex;align-items:center;justify-content:center}._item_1jw8i_1,._item_1jw8i_1[data-color=accent]{background-color:var(--global-base-default);color:#fff}._item_1jw8i_1[data-color=accent]:hover{background-color:var(--global-base-hover)}._item_1jw8i_1[data-color=alert]{background-color:#e02e49;color:#fff}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._typography_15hc3_1{width:100%;max-width:45rem;line-height:1.5}._typography_15hc3_1[data-size=xs]{font-size:.875rem}._typography_15hc3_1[data-size=sm]{font-size:1rem}._typography_15hc3_1[data-size=md]{font-size:1.125rem}._typography_15hc3_1[data-size=lg]{font-size:1.25rem}._typography_15hc3_1[data-size=xl]{font-size:1.5rem}._typography_15hc3_1>*:first-child{margin-top:0}._typography_15hc3_1>*:last-child{margin-bottom:0}._typography_15hc3_1 strong{font-weight:500}._typography_15hc3_1 a{color:var(--theme-base-default)}._typography_15hc3_1>p{font-size:1em;margin:1em 0}._typography_15hc3_1>h2{font-size:1.25rem;font-weight:600;margin-top:1.5em;margin-bottom:0}._typography_15hc3_1>h3{font-size:1em;font-weight:600;margin:1em 0}._typography_15hc3_1>h4{font-size:1em;font-weight:600;margin:1em 0 0}._typography_15hc3_1>h5,._typography_15hc3_1>h6{font-size:.875rem;margin:1em 0 0}._typography_15hc3_1>h6{font-weight:500;color:var(--theme-text-subtle)}._typography_15hc3_1>h6{font-weight:400;color:var(--theme-text-subtle)}._typography_15hc3_1>h5+*,._typography_15hc3_1>h6+*{margin-top:0}._typography_15hc3_1>section{margin:1em 0}._typography_15hc3_1 ul:not([class]),._typography_15hc3_1 ol:not([class]){list-style-position:inside;padding-left:1rem;margin:1em 0}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { createElement as
|
|
2
|
+
import { createElement as i } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { AccessAreaListItem as e } from "./AccessAreaListItem.js";
|
|
9
|
+
import { ListBase as p } from "../List/ListBase.js";
|
|
10
|
+
const l = ({ items: t, theme: o }) => /* @__PURE__ */ m(p, { theme: o, spacing: "xs", children: t.map((r) => /* @__PURE__ */ i(e, { ...r, key: r.id, ...r })) });
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
l as AccessAreaList
|
|
12
13
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import { ListItemBase as
|
|
1
|
+
import { jsxs as n, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { ListItemBase as p } from "../List/ListItemBase.js";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { ListItemHeader as
|
|
4
|
+
import { ListItemHeader as a } from "../List/ListItemHeader.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../Icon/SvgIcon.js";
|
|
7
7
|
import "../Autocomplete/AutocompleteBase.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
10
|
import '../../assets/AccessAreaListItem.css';const l = "_content_7hk0i_1", f = {
|
|
10
11
|
content: l
|
|
11
|
-
},
|
|
12
|
+
}, A = ({
|
|
12
13
|
name: o,
|
|
13
|
-
icon:
|
|
14
|
+
icon: s,
|
|
14
15
|
size: r = "md",
|
|
15
|
-
children:
|
|
16
|
+
children: e,
|
|
16
17
|
expanded: t = !1,
|
|
17
18
|
onClick: i,
|
|
18
19
|
...c
|
|
19
|
-
}) => /* @__PURE__ */ n(
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
20
|
+
}) => /* @__PURE__ */ n(p, { size: r, expanded: t, children: [
|
|
21
|
+
/* @__PURE__ */ m(
|
|
22
|
+
a,
|
|
22
23
|
{
|
|
23
24
|
as: "button",
|
|
24
25
|
avatar: {
|
|
25
26
|
name: o,
|
|
26
|
-
imageUrl:
|
|
27
|
+
imageUrl: s,
|
|
27
28
|
type: "company"
|
|
28
29
|
},
|
|
29
30
|
title: o,
|
|
@@ -34,8 +35,8 @@ import '../../assets/AccessAreaListItem.css';const l = "_content_7hk0i_1", f = {
|
|
|
34
35
|
...c
|
|
35
36
|
}
|
|
36
37
|
),
|
|
37
|
-
t && /* @__PURE__ */
|
|
38
|
+
t && /* @__PURE__ */ m("div", { className: f.content, children: e })
|
|
38
39
|
] });
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
A as AccessAreaListItem
|
|
41
42
|
};
|
|
@@ -4,9 +4,10 @@ import "../../index-L8X2o7IH.js";
|
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { AccessPackageListItem as p } from "./AccessPackageListItem.js";
|
|
9
|
+
import { ListBase as s } from "../List/ListBase.js";
|
|
10
|
+
const x = ({ items: t, spacing: m = "sm", ...o }) => /* @__PURE__ */ e(s, { spacing: m, ...o, children: t.map((r) => /* @__PURE__ */ i(p, { ...r, key: r.id, ...r })) });
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
x as AccessPackageList
|
|
12
13
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { ListItem as p } from "../List/ListItem.js";
|
|
9
|
+
const v = ({ as: o = "button", icon: t, title: m, ...r }) => /* @__PURE__ */ i(
|
|
10
|
+
p,
|
|
10
11
|
{
|
|
11
12
|
avatar: t ? {
|
|
12
13
|
imageUrl: t,
|
|
@@ -21,5 +22,5 @@ const u = ({ as: o = "button", icon: t, title: m, ...r }) => /* @__PURE__ */ e(
|
|
|
21
22
|
}
|
|
22
23
|
);
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
v as AccessPackageListItem
|
|
25
26
|
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { BookmarksListItem as m } from "../Bookmarks/BookmarksListItem.js";
|
|
2
3
|
import "react";
|
|
3
4
|
import "../../index-L8X2o7IH.js";
|
|
4
5
|
import "../Icon/SvgIcon.js";
|
|
5
6
|
import "./AutocompleteBase.js";
|
|
6
|
-
import { ScopeListItem as
|
|
7
|
+
import { ScopeListItem as a } from "./ScopeListItem.js";
|
|
7
8
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { DialogListItem as
|
|
9
|
-
import { ListItem as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
switch (
|
|
9
|
+
import { DialogListItem as i } from "../Dialog/DialogListItem.js";
|
|
10
|
+
import { ListItem as o } from "../List/ListItem.js";
|
|
11
|
+
import "../Snackbar/useSnackbar.js";
|
|
12
|
+
const k = ({ type: e, ...t }) => {
|
|
13
|
+
switch (e) {
|
|
13
14
|
case "scope":
|
|
14
|
-
return /* @__PURE__ */ r(
|
|
15
|
+
return /* @__PURE__ */ r(a, { ...t, color: "transparent", tabIndex: -1 });
|
|
15
16
|
case "bookmark":
|
|
16
|
-
return /* @__PURE__ */ r(
|
|
17
|
+
return /* @__PURE__ */ r(m, { ...t, color: "transparent", size: "sm", tabIndex: -1 });
|
|
17
18
|
case "dialog":
|
|
18
|
-
return /* @__PURE__ */ r(
|
|
19
|
+
return /* @__PURE__ */ r(i, { ...t, color: "transparent", size: "sm", tabIndex: -1 });
|
|
19
20
|
case "information":
|
|
20
|
-
return /* @__PURE__ */ r(
|
|
21
|
+
return /* @__PURE__ */ r(o, { ...t, color: "transparent", tabIndex: -1, disabled: !0 });
|
|
21
22
|
default:
|
|
22
|
-
return /* @__PURE__ */ r(
|
|
23
|
+
return /* @__PURE__ */ r(o, { ...t, color: "transparent", size: "sm", tabIndex: -1 });
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
k as AutocompleteItem
|
|
27
28
|
};
|
|
@@ -4,10 +4,11 @@ import "react";
|
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
5
|
import "./AutocompleteBase.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import { ListItem as i } from "../List/ListItem.js";
|
|
8
9
|
import '../../assets/ScopeListItem.css';const r = "_item_1a3bc_1", e = {
|
|
9
10
|
item: r
|
|
10
|
-
},
|
|
11
|
+
}, I = ({ as: s = "a", label: t, ...m }) => /* @__PURE__ */ o(i, { className: e.item, label: t, ...m });
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
I as ScopeListItem
|
|
13
14
|
};
|
|
@@ -1,13 +1,75 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z } from "react";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
4
|
import "../Icon/SvgIcon.js";
|
|
4
|
-
import "react";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
|
-
import { QueryLabel as
|
|
6
|
+
import { QueryLabel as h } from "./QueryLabel.js";
|
|
7
|
+
import { Button as u } from "../Button/Button.js";
|
|
8
|
+
import { IconButton as C } from "../Button/IconButton.js";
|
|
7
9
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { ListItemBase as
|
|
9
|
-
import { ListItemHeader as
|
|
10
|
-
|
|
10
|
+
import { ListItemBase as I } from "../List/ListItemBase.js";
|
|
11
|
+
import { ListItemHeader as L } from "../List/ListItemHeader.js";
|
|
12
|
+
import "../Snackbar/useSnackbar.js";
|
|
13
|
+
import { Section as H } from "../Page/Section.js";
|
|
14
|
+
import { Flex as Q } from "../Page/Flex.js";
|
|
15
|
+
import { TextField as U } from "../TextField/TextField.js";
|
|
16
|
+
const X = ({
|
|
17
|
+
size: l = "sm",
|
|
18
|
+
icon: k = "bookmark",
|
|
19
|
+
expanded: t,
|
|
20
|
+
loading: o,
|
|
21
|
+
title: i,
|
|
22
|
+
titleField: a,
|
|
23
|
+
untitled: b = "Untitled bookmark",
|
|
24
|
+
params: m,
|
|
25
|
+
onToggle: n,
|
|
26
|
+
saveButton: c,
|
|
27
|
+
removeButton: e,
|
|
28
|
+
as: v,
|
|
29
|
+
...s
|
|
30
|
+
}) => {
|
|
31
|
+
const [p, j] = z({ title: i, params: m }), w = (x) => {
|
|
32
|
+
const { name: F, value: S } = x.target;
|
|
33
|
+
j((y) => ({
|
|
34
|
+
...y,
|
|
35
|
+
[F]: S
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
return t && !o ? /* @__PURE__ */ f(I, { loading: o, expanded: t, children: [
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
|
+
L,
|
|
41
|
+
{
|
|
42
|
+
size: l,
|
|
43
|
+
title: i || b,
|
|
44
|
+
loading: o,
|
|
45
|
+
icon: k,
|
|
46
|
+
onClick: n,
|
|
47
|
+
controls: /* @__PURE__ */ r(C, { variant: "outline", size: "sm", icon: "chevron-up", onClick: n }),
|
|
48
|
+
...s
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
t && /* @__PURE__ */ f(H, { padding: "lg", spacing: "lg", children: [
|
|
52
|
+
/* @__PURE__ */ r(h, { params: m }),
|
|
53
|
+
a && /* @__PURE__ */ r(U, { ...a, name: "title", value: (p == null ? void 0 : p.title) || "", onChange: w }),
|
|
54
|
+
(c || e) && /* @__PURE__ */ f(Q, { as: "footer", direction: "row", spacing: "sm", children: [
|
|
55
|
+
c && /* @__PURE__ */ r(u, { ...c }),
|
|
56
|
+
e && /* @__PURE__ */ r(u, { ...e, variant: "outline" })
|
|
57
|
+
] })
|
|
58
|
+
] })
|
|
59
|
+
] }) : /* @__PURE__ */ r(I, { ...s, loading: o, expanded: t, children: /* @__PURE__ */ r(
|
|
60
|
+
L,
|
|
61
|
+
{
|
|
62
|
+
as: v,
|
|
63
|
+
size: l,
|
|
64
|
+
title: i,
|
|
65
|
+
loading: o,
|
|
66
|
+
icon: k,
|
|
67
|
+
controls: !o && /* @__PURE__ */ r(C, { variant: "outline", size: "sm", icon: "chevron-down", onClick: n }),
|
|
68
|
+
...s,
|
|
69
|
+
children: !i && !o && /* @__PURE__ */ r(h, { params: m })
|
|
70
|
+
}
|
|
71
|
+
) });
|
|
72
|
+
};
|
|
11
73
|
export {
|
|
12
|
-
|
|
74
|
+
X as BookmarksListItem
|
|
13
75
|
};
|
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as c } from "react";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
4
|
import "../Icon/SvgIcon.js";
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
5
|
+
import { Typography as l } from "../Typography/Typography.js";
|
|
6
|
+
import { Heading as f } from "../Typography/Heading.js";
|
|
6
7
|
import "../Autocomplete/AutocompleteBase.js";
|
|
7
|
-
import {
|
|
8
|
-
import { MetaItem as p } from "../Meta/MetaItem.js";
|
|
8
|
+
import { BookmarksListItem as k } from "./BookmarksListItem.js";
|
|
9
9
|
import "../RootProvider/RootProvider.js";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import { ListBase as x } from "../List/ListBase.js";
|
|
11
|
+
import "../Snackbar/useSnackbar.js";
|
|
12
|
+
import { Section as h } from "../Page/Section.js";
|
|
13
|
+
const U = ({
|
|
14
|
+
loading: m,
|
|
15
|
+
title: p,
|
|
16
|
+
description: e,
|
|
17
|
+
items: t,
|
|
18
|
+
untitled: d = "Untitled bookmark",
|
|
19
|
+
titleField: n,
|
|
20
|
+
expandedId: s,
|
|
21
|
+
onToggle: i
|
|
22
|
+
}) => /* @__PURE__ */ a(h, { padding: "xl", color: "surface", spacing: "lg", inset: !0, children: [
|
|
23
|
+
/* @__PURE__ */ o(f, { size: "md", children: p }),
|
|
24
|
+
t.length > 0 && /* @__PURE__ */ o(x, { spacing: "xs", children: t.map((r) => /* @__PURE__ */ c(
|
|
25
|
+
k,
|
|
26
|
+
{
|
|
27
|
+
...r,
|
|
28
|
+
key: r.id,
|
|
29
|
+
loading: m || r.loading,
|
|
30
|
+
onToggle: () => i == null ? void 0 : i(r.id),
|
|
31
|
+
expanded: s === r.id,
|
|
32
|
+
untitled: d,
|
|
33
|
+
titleField: n
|
|
34
|
+
}
|
|
35
|
+
)) }),
|
|
36
|
+
/* @__PURE__ */ o(l, { size: "xs", children: e })
|
|
17
37
|
] });
|
|
18
38
|
export {
|
|
19
|
-
|
|
39
|
+
U as BookmarksSection
|
|
20
40
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/QueryLabel.css';const c = "
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/QueryLabel.css';const c = "_label_1sssm_1", m = "_group_1sssm_9", o = "_plus_1sssm_15", n = "_item_1sssm_19", l = {
|
|
3
3
|
label: c,
|
|
4
|
-
group:
|
|
5
|
-
plus:
|
|
6
|
-
item:
|
|
7
|
-
}, p = ({ type:
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
] },
|
|
4
|
+
group: m,
|
|
5
|
+
plus: o,
|
|
6
|
+
item: n
|
|
7
|
+
}, p = ({ type: s = "search", label: t }) => /* @__PURE__ */ e("mark", { className: l.item, "data-type": s, children: t }), _ = ({ params: s = [] }) => /* @__PURE__ */ e("div", { className: l.label, children: s.map((t, r) => /* @__PURE__ */ a("div", { className: l.group, children: [
|
|
8
|
+
/* @__PURE__ */ e(p, { ...t }),
|
|
9
|
+
s[r + 1] && /* @__PURE__ */ e("span", { className: l.plus, children: "+" })
|
|
10
|
+
] }, r)) });
|
|
11
11
|
export {
|
|
12
12
|
p as QueryItem,
|
|
13
13
|
_ as QueryLabel
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BookmarksSection as p } from "./BookmarksSection.js";
|
|
1
|
+
import { BookmarksListItem as e } from "./BookmarksListItem.js";
|
|
2
|
+
import { QueryItem as t, QueryLabel as k } from "./QueryLabel.js";
|
|
3
|
+
import { BookmarksSection as f } from "./BookmarksSection.js";
|
|
5
4
|
export {
|
|
6
|
-
e as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
a as QueryLabel
|
|
5
|
+
e as BookmarksListItem,
|
|
6
|
+
f as BookmarksSection,
|
|
7
|
+
t as QueryItem,
|
|
8
|
+
k as QueryLabel
|
|
11
9
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import { ButtonBase as d } from "./ButtonBase.js";
|
|
4
|
-
import { ButtonIcon as
|
|
5
|
-
import { ButtonLabel as
|
|
6
|
-
import '../../assets/Button.css';const
|
|
7
|
-
button:
|
|
4
|
+
import { ButtonIcon as _ } from "./ButtonIcon.js";
|
|
5
|
+
import { ButtonLabel as B } from "./ButtonLabel.js";
|
|
6
|
+
import '../../assets/Button.css';const h = "_button_1ysmx_1", y = "_reverse_1ysmx_8", t = {
|
|
7
|
+
button: h,
|
|
8
8
|
reverse: y
|
|
9
|
-
},
|
|
9
|
+
}, I = ({
|
|
10
10
|
variant: o = "solid",
|
|
11
11
|
color: e = "primary",
|
|
12
12
|
size: r = "md",
|
|
@@ -14,11 +14,12 @@ import '../../assets/Button.css';const B = "_button_1ysmx_1", y = "_reverse_1ysm
|
|
|
14
14
|
selected: a = !1,
|
|
15
15
|
icon: m,
|
|
16
16
|
href: l,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
label: i,
|
|
18
|
+
children: p,
|
|
19
|
+
className: b,
|
|
20
|
+
loading: f,
|
|
20
21
|
...c
|
|
21
|
-
}) =>
|
|
22
|
+
}) => f ? /* @__PURE__ */ s(
|
|
22
23
|
d,
|
|
23
24
|
{
|
|
24
25
|
variant: o,
|
|
@@ -26,12 +27,12 @@ import '../../assets/Button.css';const B = "_button_1ysmx_1", y = "_reverse_1ysm
|
|
|
26
27
|
size: r,
|
|
27
28
|
selected: a,
|
|
28
29
|
href: l,
|
|
29
|
-
className: u(t.button, { [t.reverse]: n },
|
|
30
|
+
className: u(t.button, { [t.reverse]: n }, b),
|
|
30
31
|
...c,
|
|
31
32
|
disabled: !0,
|
|
32
33
|
children: /* @__PURE__ */ s("span", { className: t.label, "data-size": r, children: /* @__PURE__ */ s("span", { className: t.loading, children: "Loading...." }) })
|
|
33
34
|
}
|
|
34
|
-
) : /* @__PURE__ */
|
|
35
|
+
) : /* @__PURE__ */ x(
|
|
35
36
|
d,
|
|
36
37
|
{
|
|
37
38
|
variant: o,
|
|
@@ -42,11 +43,11 @@ import '../../assets/Button.css';const B = "_button_1ysmx_1", y = "_reverse_1ysm
|
|
|
42
43
|
className: u(t.button, { [t.reverse]: n }),
|
|
43
44
|
...c,
|
|
44
45
|
children: [
|
|
45
|
-
m && /* @__PURE__ */ s(
|
|
46
|
-
/* @__PURE__ */ s(
|
|
46
|
+
m && /* @__PURE__ */ s(_, { size: r, icon: m }),
|
|
47
|
+
/* @__PURE__ */ s(B, { size: r, children: p || i })
|
|
47
48
|
]
|
|
48
49
|
}
|
|
49
50
|
);
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
I as Button
|
|
52
53
|
};
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { ButtonBase as
|
|
4
|
-
import { ButtonIcon as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { ButtonBase as e } from "./ButtonBase.js";
|
|
4
|
+
import { ButtonIcon as b } from "./ButtonIcon.js";
|
|
5
5
|
import '../../assets/IconButton.css';const f = "_button_1vbf2_1", p = "_icon_1vbf2_8", _ = {
|
|
6
6
|
button: f,
|
|
7
7
|
icon: p
|
|
8
|
-
},
|
|
8
|
+
}, v = ({
|
|
9
9
|
variant: n = "solid",
|
|
10
10
|
color: r = "primary",
|
|
11
|
-
size:
|
|
11
|
+
size: t = "md",
|
|
12
12
|
icon: c,
|
|
13
13
|
iconSize: s,
|
|
14
|
-
className:
|
|
15
|
-
onClick:
|
|
16
|
-
|
|
14
|
+
className: i,
|
|
15
|
+
onClick: m,
|
|
16
|
+
dataTestId: u
|
|
17
|
+
}) => /* @__PURE__ */ o(
|
|
18
|
+
e,
|
|
19
|
+
{
|
|
20
|
+
variant: n,
|
|
21
|
+
color: r,
|
|
22
|
+
size: t,
|
|
23
|
+
className: a(_.button, i),
|
|
24
|
+
onClick: m,
|
|
25
|
+
"data-testid": u,
|
|
26
|
+
children: /* @__PURE__ */ o(b, { icon: c, size: s || t })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
17
29
|
export {
|
|
18
|
-
|
|
30
|
+
v as IconButton
|
|
19
31
|
};
|
|
@@ -7,13 +7,14 @@ import { Avatar as c } from "../Avatar/Avatar.js";
|
|
|
7
7
|
import { AvatarGroup as p } from "../Avatar/AvatarGroup.js";
|
|
8
8
|
import { Skeleton as m } from "../Skeleton/Skeleton.js";
|
|
9
9
|
import "../RootProvider/RootProvider.js";
|
|
10
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
11
|
import '../../assets/Byline.css';const b = "_byline_pzenw_1", d = "_label_pzenw_7", e = {
|
|
11
12
|
byline: b,
|
|
12
13
|
label: d
|
|
13
|
-
},
|
|
14
|
+
}, k = ({ loading: r, size: t = "xs", avatar: l, avatarGroup: i, datetime: o, children: s }) => /* @__PURE__ */ n("div", { className: e.byline, "data-size": t, children: [
|
|
14
15
|
/* @__PURE__ */ a(m, { variant: "circle", className: e.avatar, loading: r, children: i ? /* @__PURE__ */ a(p, { ...i, size: t, className: e.avatar }) : l && /* @__PURE__ */ a(c, { ...l, size: t, className: e.avatar }) }),
|
|
15
|
-
/* @__PURE__ */ a("time", { "data-size": t, dateTime:
|
|
16
|
+
/* @__PURE__ */ a("time", { "data-size": t, dateTime: o, className: e.label, children: /* @__PURE__ */ a(m, { loading: r, children: s }) })
|
|
16
17
|
] });
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
k as Byline
|
|
19
20
|
};
|