@altinn/altinn-components 0.14.2 → 0.15.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 +16 -4
- package/dist/altinn-theme.css +3 -0
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/AvatarGroup.css +1 -1
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/ButtonLabel.css +1 -1
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/Grid.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/LayoutBody.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemControls.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLink.css +1 -1
- package/dist/assets/ListItemSelect.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/MenuItemIcon.css +1 -0
- package/dist/assets/MenuItemLabel.css +1 -1
- package/dist/assets/PageTabs.css +1 -0
- package/dist/components/AccessAreaList/AccessAreaListItem.js +29 -32
- package/dist/components/AccessPackageList/AccessPackageListItem.js +7 -7
- package/dist/components/Attachment/AttachmentLink.js +14 -10
- package/dist/components/Autocomplete/AutocompleteItem.js +20 -11
- package/dist/components/Avatar/Avatar.js +27 -27
- package/dist/components/Avatar/AvatarGroup.js +17 -16
- package/dist/components/Badge/Badge.js +5 -12
- package/dist/components/Button/Button.js +29 -27
- package/dist/components/Button/ButtonIcon.js +9 -5
- package/dist/components/Button/ButtonLabel.js +4 -4
- package/dist/components/Dialog/Dialog.js +3 -3
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogContent.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- package/dist/components/Dialog/DialogListGroup.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +80 -72
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DraftDialog.js +1 -1
- package/dist/components/GlobalMenu/AccountButton.js +4 -4
- package/dist/components/GlobalMenu/AccountMenu.js +27 -16
- package/dist/components/GlobalMenu/BackButton.js +2 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +21 -21
- package/dist/components/GlobalMenu/GlobalMenuBase.js +9 -9
- package/dist/components/Header/HeaderButton.js +21 -17
- package/dist/components/Icon/Icon.js +10 -9
- package/dist/components/Icon/IconOrAvatar.js +27 -0
- package/dist/components/Icon/index.js +8 -6
- package/dist/components/Layout/LayoutBody.js +1 -1
- package/dist/components/LayoutAction/ActionHeader.js +1 -1
- package/dist/components/List/ListBase.js +3 -3
- package/dist/components/List/ListItem.js +90 -51
- package/dist/components/List/ListItemBase.js +63 -29
- package/dist/components/List/ListItemControls.js +8 -17
- package/dist/components/List/ListItemHeader.js +85 -59
- package/dist/components/List/ListItemIcon.js +25 -0
- package/dist/components/List/ListItemLabel.js +6 -6
- package/dist/components/List/ListItemLink.js +29 -27
- package/dist/components/List/ListItemSelect.js +11 -11
- package/dist/components/List/index.js +8 -8
- package/dist/components/Menu/Menu.js +18 -16
- package/dist/components/Menu/MenuBase.js +6 -6
- package/dist/components/Menu/MenuItem.js +64 -51
- package/dist/components/Menu/MenuItemBase.js +26 -26
- package/dist/components/Menu/MenuItemIcon.js +27 -0
- package/dist/components/Menu/MenuItemLabel.js +7 -7
- package/dist/components/Menu/MenuItems.js +32 -29
- package/dist/components/Menu/MenuOption.js +3 -3
- package/dist/components/Menu/index.js +14 -14
- package/dist/components/Meta/MetaItemMedia.js +13 -8
- package/dist/components/Page/Flex.js +14 -14
- package/dist/components/Page/Grid.js +1 -1
- package/dist/components/Page/PageHeader.js +33 -12
- package/dist/components/Page/PageMenu.js +5 -5
- package/dist/components/Page/PageTabs.js +16 -0
- package/dist/components/Page/index.js +14 -12
- package/dist/components/RootProvider/RootProvider.js +3 -3
- package/dist/components/Searchbar/SearchField.js +19 -16
- package/dist/components/Toolbar/Toolbar.js +7 -7
- package/dist/components/Transmission/TransmissionItem.js +1 -1
- package/dist/components/index.js +181 -177
- package/dist/{globalMenu-XcVgsnCz.js → globalMenu-C6osDiF4.js} +1 -0
- package/dist/index.js +181 -177
- package/dist/types/lib/components/AccessPackageList/AccessPackageList.d.ts +1 -1
- package/dist/types/lib/components/Avatar/AvatarGroup.stories.d.ts +6 -2
- package/dist/types/lib/components/Avatar/avatar.stories.d.ts +3 -1
- package/dist/types/lib/components/Badge/Badge.d.ts +4 -4
- package/dist/types/lib/components/Badge/Badge.stories.d.ts +1 -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/ContextMenu/ContextMenu.stories.d.ts +3 -23
- package/dist/types/lib/components/Icon/Icon.d.ts +3 -3
- package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +12 -0
- package/dist/types/lib/components/Icon/index.d.ts +1 -0
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +0 -1
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +3 -15
- package/dist/types/lib/components/List/List.d.ts +1 -1
- package/dist/types/lib/components/List/ListBase.d.ts +8 -4
- package/dist/types/lib/components/{Header/HeaderLogo.stories.d.ts → List/ListBase.stories.d.ts} +4 -2
- package/dist/types/lib/components/List/ListItem.d.ts +5 -10
- package/dist/types/lib/components/List/ListItem.stories.d.ts +14 -9
- package/dist/types/lib/components/List/ListItemBase.d.ts +8 -2
- package/dist/types/lib/components/List/ListItemControls.d.ts +1 -8
- package/dist/types/lib/components/List/ListItemHeader.d.ts +5 -15
- package/dist/types/lib/components/List/ListItemIcon.d.ts +13 -0
- package/dist/types/lib/components/List/ListItemLink.d.ts +2 -1
- package/dist/types/lib/components/List/MultilevelList.stories.d.ts +5 -0
- package/dist/types/lib/components/List/Specimens.stories.d.ts +13 -0
- package/dist/types/lib/components/List/index.d.ts +1 -1
- package/dist/types/lib/components/Menu/Menu.d.ts +1 -1
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +4 -27
- package/dist/types/lib/components/Menu/MenuBase.d.ts +4 -3
- package/dist/types/lib/components/Menu/MenuItem.d.ts +7 -7
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItemIcon.d.ts +8 -0
- package/dist/types/lib/components/Menu/MenuItems.d.ts +6 -4
- package/dist/types/lib/components/Menu/Patterns.stories.d.ts +72 -0
- package/dist/types/lib/components/Menu/index.d.ts +1 -1
- package/dist/types/lib/components/Page/PageHeader.d.ts +7 -2
- package/dist/types/lib/components/Page/PageHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/PageMenu.stories.d.ts +3 -15
- package/dist/types/lib/components/Page/PageTabs.d.ts +8 -0
- package/dist/types/lib/components/Page/index.d.ts +1 -0
- package/dist/types/lib/types/color.d.ts +1 -1
- package/package.json +27 -26
- package/dist/assets/ListItemMedia.css +0 -1
- package/dist/assets/MenuItemMedia.css +0 -1
- package/dist/components/List/ListItemMedia.js +0 -39
- package/dist/components/Menu/MenuItemMedia.js +0 -50
- package/dist/types/lib/components/Layout/LayoutBase.stories.d.ts +0 -11
- package/dist/types/lib/components/Layout/LayoutBody.stories.d.ts +0 -11
- package/dist/types/lib/components/Layout/LayoutContent.stories.d.ts +0 -11
- package/dist/types/lib/components/Layout/LayoutSidebar.stories.d.ts +0 -11
- package/dist/types/lib/components/List/ListItemHeader.stories.d.ts +0 -23
- package/dist/types/lib/components/List/ListItemMedia.d.ts +0 -13
- package/dist/types/lib/components/Menu/MenuItem.stories.d.ts +0 -25
- package/dist/types/lib/components/Menu/MenuItemMedia.d.ts +0 -14
package/README.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
# altinn-components
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
|
|
3
|
+
The next frontend of altinn.no is developed by multiple product teams, all working toward the shared goal of delivering a seamless, unified experience for the end users — ensuring they perceive it as a single and robust product.
|
|
4
|
+
This package represents a collaborative effort between designers and developers across these teams, consolidating solutions to shared challenges.
|
|
5
|
+
It provides Altinn-specific React components tailored to address the common UI needs of these specific teams.
|
|
6
|
+
|
|
7
|
+
Today these teams are [Team Arbeidsflate](https://github.com/digdir/dialogporten-frontend), [Team authorization](https://github.com/Altinn/altinn-access-management-frontend), and Team Portal.
|
|
8
|
+
|
|
9
|
+
Note that this package is specifically designed to meet the unique needs of the aforementioned teams and is not intended to serve as a general-purpose library.
|
|
10
|
+
We already have the amazing [Norwegian public sector's Design System](https://designsystemet.no/), and we aim to incorporate its elements wherever it makes sense, ensuring alignment and leveraging its strengths while adapting to the specific requirements of Altinn.
|
|
11
|
+
|
|
12
|
+
Currently, we do not use components from the design system _directly_ but rely on its token structure and continue to explore opportunities for deeper integration.
|
|
13
|
+
This approach helps us align with brand guidelines and the broader vision of a unified Altinn product.
|
|
14
|
+
|
|
15
|
+
## Feedback and questions
|
|
16
|
+
Keep in mind that this package is a work in progress and will be updated continuously.
|
|
17
|
+
If you have any feedback or questions, please reach out to us on Github.
|
|
6
18
|
|
|
7
19
|
## Installation
|
|
8
20
|
To install the package, run the following command:
|
package/dist/altinn-theme.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
background-color: var(--ds-color-background-subtle);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
[data-theme="surface"],
|
|
9
10
|
[data-theme="surface-default"] {
|
|
10
11
|
background-color: var(--ds-color-surface-default);
|
|
11
12
|
}
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
background-color: var(--ds-color-surface-active);
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
[data-theme="border"],
|
|
21
23
|
[data-theme="border-subtle"] {
|
|
22
24
|
background-color: var(--ds-color-border-subtle);
|
|
23
25
|
}
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
background-color: var(--ds-color-border-strong);
|
|
31
33
|
}
|
|
32
34
|
|
|
35
|
+
[data-theme="base"],
|
|
33
36
|
[data-theme="base-default"] {
|
|
34
37
|
background-color: var(--ds-color-base-default);
|
|
35
38
|
color: var(--ds-color-contrast-default);
|
package/dist/assets/Avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._avatar_vbrzn_1{flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;--avatar-font-size-xs: .75rem;--avatar-font-size-sm: .875rem;--avatar-font-size-md: 1.125rem;--avatar-font-size-lg: 1.25rem;--avatar-font-size-xl: 1.5rem}._circle_vbrzn_15{border-radius:50%}._square_vbrzn_19{border-radius:5%}._outline_vbrzn_23{outline:1px solid #ffffff;box-sizing:border-box}._xs_vbrzn_28{font-size:var(--avatar-font-size-xs);width:20px;height:20px}._sm_vbrzn_34{font-size:var(--avatar-font-size-sm);width:24px;height:24px}._md_vbrzn_40{font-size:var(--avatar-font-size-md);width:32px;height:32px}._lg_vbrzn_46{font-size:var(--avatar-font-size-lg);width:36px;height:36px}._xl_vbrzn_52{font-size:var(--avatar-font-size-xl);width:44px;height:44px}._image_vbrzn_58{width:100%;height:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._group_1ks00_1{flex-shrink:0;display:flex}._reset_1ks00_6{margin:0;padding:0;text-indent:0;list-style-type:none}._item_1ks00_13{position:relative}._xs_1ks00_17{min-width:32px}._xs_1ks00_17[data-count="1"]{min-width:20px}._xs_1ks00_17[data-count="2"] *+*{margin-left:-8px}._xs_1ks00_17[data-count="3"] *+*{margin-left:-14px}._xs_1ks00_17[data-count="4"] *+*{margin-left:-16px}._sm_1ks00_37{min-width:42px}._sm_1ks00_37[data-count="1"]{min-width:24px}._sm_1ks00_37[data-count="2"] *+*{margin-left:-6px}._sm_1ks00_37[data-count="3"] *+*{margin-left:-15px}._sm_1ks00_37[data-count="4"] *+*{margin-left:-18px}._md_1ks00_57{min-width:54px}._md_1ks00_57[data-count="1"]{min-width:30px}._md_1ks00_57[data-count="2"] *+*{margin-left:-6px}._md_1ks00_57[data-count="3"] *+*{margin-left:-18px}._md_1ks00_57[data-count="4"] *+*{margin-left:-22px}._lg_1ks00_77{min-width:66px}._lg_1ks00_77[data-count="1"]{min-width:36px}._lg_1ks00_77[data-count="2"] *+*{margin-left:-6px}._lg_1ks00_77[data-count="3"] *+*{margin-left:-21px}._lg_1ks00_77[data-count="4"] *+*{margin-left:-26px}._xl_1ks00_97{min-width:80px}._xl_1ks00_97[data-count="1"]{min-width:44px}._xl_1ks00_97[data-count="2"] *+*{margin-left:-8px}._xl_1ks00_97[data-count="3"] *+*{margin-left:-26px}._xl_1ks00_97[data-count="4"] *+*{margin-left:-32px}
|
package/dist/assets/Badge.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._badge_vjhmt_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0}._badge_vjhmt_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_vjhmt_1[data-size=xs] ._label_vjhmt_16{color:transparent;width:100%;height:100%}._badge_vjhmt_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_vjhmt_1[data-variant=subtle]{background-color:var(--ds-color-surface-default);color:var(--ds-color-text-subtle)}._badge_vjhmt_1[data-variant=strong]{background-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1ahnm_1{line-height:1;font-weight:500;padding:0 .25em;white-space:nowrap}._label_1ahnm_1[data-size=xs]{font-size:.75rem;padding:0 .5em}._label_1ahnm_1[data-size=sm]{font-size:.875rem}._label_1ahnm_1[data-size=md]{font-size:1rem}._label_1ahnm_1[data-size=lg]{font-size:1.125rem}
|
package/dist/assets/Flex.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._flex_yqbrl_1{display:flex}._flex_yqbrl_1[data-direction=col]{flex-direction:column}._flex_yqbrl_1[data-direction=row]{flex-direction:row}._flex_yqbrl_1[data-align=center]{align-items:center}._flex_yqbrl_1[data-align=start]{align-items:flex-start}._flex_yqbrl_1[data-align=end]{align-items:flex-end}._flex_yqbrl_1[data-justify=start]{justify-content:flex-start}._flex_yqbrl_1[data-justify=end]{justify-content:flex-end}._flex_yqbrl_1[data-justify=center]{justify-content:center}._flex_yqbrl_1[data-justify=between]{justify-content:space-between}@media (max-width: 1023px){._flex_yqbrl_1[data-bleed=true]{margin-left:-1rem;margin-right:-1rem}}._flex_yqbrl_1[data-padding=page]{padding:var(--ds-spacing-6)}@media (max-width: 1023px){._flex_yqbrl_1[data-padding=page]{padding-left:var(--ds-spacing-4);padding-right:var(--ds-spacing-4)}}._flex_yqbrl_1[data-spacing=xs]{gap:.125rem}._flex_yqbrl_1[data-margin=section]{margin:.625rem 0}._flex_yqbrl_1[data-margin=page]{margin:1.125rem 0}
|
package/dist/assets/Grid.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._grid_5zqvf_1{display:grid}._grid_5zqvf_1[data-cols="1-2-3"]{grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 640px){._grid_5zqvf_1[data-cols="1-2-3"]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){._grid_5zqvf_1[data-cols="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}._grid_5zqvf_1[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}._grid_5zqvf_1[data-cols="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}._grid_5zqvf_1[data-cols="1-2-3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}._grid_5zqvf_1[data-padding=page]{padding:var(--ds-spacing-6)}@media (max-width: 1023px){._grid_5zqvf_1[data-padding=page]{padding-left:var(--ds-spacing-4);padding-right:var(--ds-spacing-4)}}._grid_5zqvf_1[data-spacing=xs]{gap:.125rem}._grid_5zqvf_1[data-margin=section]{margin:.625rem 0}._grid_5zqvf_1[data-margin=page]{margin:1.125rem 0}
|
package/dist/assets/Icon.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_3p8he_1{border-radius:5%;display:flex;align-items:center;justify-content:center;height:1em;width:1em}._icon_3p8he_1[data-size=xs]{font-size:1rem;min-width:20px;height:20px}._icon_3p8he_1[data-size=sm]{font-size:1.25rem;min-width:24px;height:24px}._icon_3p8he_1[data-size=md]{font-size:1.5rem;min-width:32px;height:32px}._icon_3p8he_1[data-size=lg]{font-size:1.75rem;min-width:36px;height:36px}._icon_3p8he_1[data-size=xl]{font-size:1.75rem;min-width:44px;height:44px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._body_18zk9_1{flex-grow:1;width:100%;max-width:1280px;margin:0 auto;padding:0 1rem;display:flex;column-gap:2em}@media (min-width: 1024px){._body_18zk9_1{padding:0 1rem}}@media (max-width: 1023px){._body_18zk9_1[data-current-id=menu]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_1slti_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;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;position:relative;width:100%;display:flex;flex-direction:column}._item_1slti_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_1slti_1[data-variant=outline],._item_1slti_1[data-variant=dotted]{outline-color:var(--ds-color-base-default)}._item_1slti_1[data-variant=outline]{outline-style:solid}._item_1slti_1[data-variant=dotted]{outline-color:var(--ds-color-border-subtle);outline-style:dashed}._item_1slti_1[data-theme=default]{background-color:var(--ds-color-background-default)}._item_1slti_1[data-theme=subtle]{background-color:var(--ds-color-background-subtle)}._interactive_1slti_53[data-theme=subtle]:hover,._item_1slti_1[data-theme=surface]{background-color:var(--ds-color-surface-hover)}._interactive_1slti_53[data-theme=surface]:hover{background-color:var(--ds-color-surface-active)}._item_1slti_1[data-theme=base]{background-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._interactive_1slti_53[data-theme=base]:hover{background-color:var(--ds-color-base-hover);color:var(--ds-color-contrast-default)}._item_1slti_1[data-active=true]{background-color:var(--ds-color-surface-default)}._item_1slti_1[aria-expanded=true],._item_1slti_1[aria-selected=true]{outline:2px solid}._item_1slti_1[aria-disabled=true]{pointer-events:none}._interactive_1slti_53:not([aria-selected=true]){cursor:pointer}._interactive_1slti_53:not([aria-expanded=true]):not([data-theme=transparent]):hover,._interactive_1slti_53:not([aria-selected=true]):not([data-theme=transparent]):hover,._interactive_1slti_53:not([aria-disabled=true]):not([data-theme=transparent]):hover{outline:2px solid var(--ds-color-border-strong)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._controls_1schy_1{display:flex;align-items:center;white-space:nowrap;flex-wrap:nowrap;gap:.625rem}._controls_1schy_1:empty{display:none}._linkText_1schy_13{font-size:.875rem;white-space:nowrap}._linkIcon_1schy_18{font-size:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_13dzg_1{position:relative;width:100%;display:flex;align-items:center;justify-content:space-between}._header_13dzg_1[data-size=xs]{min-height:44px;padding:.5rem .625rem;column-gap:.5rem}._header_13dzg_1[data-size=sm]{min-height:52px;padding:.5rem .625rem;column-gap:.5rem}._header_13dzg_1[data-size=md]{min-height:64px;padding:.875rem;column-gap:.625rem}._header_13dzg_1[data-size=lg]{min-height:72px;padding:1rem;column-gap:.75rem}._header_13dzg_1[data-size=xl]{min-height:72px;padding:1.5rem;column-gap:1rem}._link_13dzg_39{display:flex;align-items:center;column-gap:inherit}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_g93r9_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;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}._link_g93r9_1[aria-disabled=true]{pointer-events:none}._interactive_g93r9_22:not([aria-disabled=true]){cursor:pointer}._interactive_g93r9_22:not([aria-disabled=true]):hover h2{text-decoration:underline}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_l4npz_1{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background-color:transparent;border-radius:50%;border:0}._label_l4npz_1:hover{background-color:var(--ds-color-surface-default)}._input_l4npz_15{position:absolute;opacity:0}._icon_l4npz_20{color:var(--ds-color-base-default)}._icon_l4npz_20 [data-hover=true]{opacity:0}._label_l4npz_1:hover [data-hover=true]{opacity:1}._label_l4npz_1[data-size=xs]{width:24px;height:24px;margin:-2px}._label_l4npz_1[data-size=xs] ._icon_l4npz_20{width:12px}._label_l4npz_1[data-size=sm]{width:28px;height:28px;margin:-2px}._label_l4npz_1[data-size=sm] ._icon_l4npz_20{width:14px;height:14px}._label_l4npz_1[data-size=md]{width:36px;height:36px;margin:-2px}._label_l4npz_1[data-size=md] ._icon_l4npz_20{width:16px;height:16px}._label_l4npz_1[data-size=lg]{width:44px;height:44px;margin:-4px}._label_l4npz_1[data-size=lg] ._icon_l4npz_20{width:20px;height:20px}._label_l4npz_1[data-size=xl]{width:52px;height:52px;margin:-4px}._label_l4npz_1[data-size=xl] ._icon_l4npz_20{width:24px;height:24px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_18cbi_1{padding:0;border:0;color:inherit;font:inherit;text-align:inherit;text-decoration:none;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;cursor:pointer;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_18cbi_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_18cbi_1[data-size=md]{min-height:56px}._item_18cbi_1[data-size=md]{min-height:44px}._item_18cbi_1[data-size=sm]{min-height:40px}._content_18cbi_45{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_18cbi_53{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_18cbi_60{font-size:.875rem;white-space:nowrap}._linkIcon_18cbi_65{font-size:1.5rem}._item_18cbi_1,._item_18cbi_1[data-theme]{background-color:transparent}[data-theme=subtle] ._item_18cbi_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_18cbi_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_18cbi_1[aria-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_18cbi_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_18cbi_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_18cbi_1[aria-selected=true]{background-color:var(--ds-color-background-subtle)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._icon_14zf3_1{position:relative;display:flex;justify-content:center;align-items:center}._badge_14zf3_8{position:absolute;top:0;right:0;margin-top:-.25em;margin-right:-.25em;outline:1px solid white}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1ejxp_1{display:flex;flex-direction:column;padding:0 .25rem}._title_1ejxp_7[data-size=lg]{font-size:1.125rem;line-height:1.25;font-weight:500}._title_1ejxp_7[data-size=md],._title_1ejxp_7[data-size=sm]{font-size:1rem;line-height:1.25;font-weight:400}._description_1ejxp_25{font-size:.875rem;color:var(--ds-color-text-subtle)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._menu_vbqbk_1{padding:0 .5rem;border-radius:.375rem}._list_vbqbk_6{display:flex;row-gap:.5rem;flex-direction:column;list-style:none;padding:0;margin:0}@media (min-width: 1024px){._list_vbqbk_6{flex-direction:row;align-items:center;justify-content:start;column-gap:.5rem;width:auto}}._item_vbqbk_25{margin:0;border-top:2px solid;border-bottom:2px solid;border-color:transparent}._item_vbqbk_25[aria-selected=true]{border-bottom-color:var(--ds-color-base-default)}
|
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListItemBase as p } from "../List/ListItemBase.js";
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
2
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { ListItemHeader as a } from "../List/ListItemHeader.js";
|
|
5
3
|
import "react";
|
|
4
|
+
import "../Icon/SvgIcon.js";
|
|
6
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
7
6
|
import "../RootProvider/RootProvider.js";
|
|
8
7
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import "../
|
|
10
|
-
import '../../assets/AccessAreaListItem.css';const
|
|
11
|
-
content:
|
|
8
|
+
import { ListItem as n } from "../List/ListItem.js";
|
|
9
|
+
import '../../assets/AccessAreaListItem.css';const p = "_content_7hk0i_1", a = {
|
|
10
|
+
content: p
|
|
12
11
|
}, A = ({
|
|
13
|
-
name:
|
|
14
|
-
icon:
|
|
15
|
-
size:
|
|
16
|
-
children:
|
|
17
|
-
expanded:
|
|
18
|
-
onClick:
|
|
12
|
+
name: t,
|
|
13
|
+
icon: e,
|
|
14
|
+
size: i = "md",
|
|
15
|
+
children: m,
|
|
16
|
+
expanded: o = !1,
|
|
17
|
+
onClick: s,
|
|
19
18
|
...c
|
|
20
|
-
}) => /* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
t && /* @__PURE__ */ m("div", { className: f.content, children: e })
|
|
39
|
-
] });
|
|
19
|
+
}) => /* @__PURE__ */ r(
|
|
20
|
+
n,
|
|
21
|
+
{
|
|
22
|
+
as: "button",
|
|
23
|
+
avatar: {
|
|
24
|
+
name: t,
|
|
25
|
+
imageUrl: e,
|
|
26
|
+
type: "company"
|
|
27
|
+
},
|
|
28
|
+
title: t,
|
|
29
|
+
size: i,
|
|
30
|
+
collapsible: !0,
|
|
31
|
+
expanded: o,
|
|
32
|
+
onClick: s,
|
|
33
|
+
...c,
|
|
34
|
+
children: o && /* @__PURE__ */ r("div", { className: a.content, children: m })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
40
37
|
export {
|
|
41
38
|
A as AccessAreaListItem
|
|
42
39
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } 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
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { ListItem as
|
|
9
|
-
const
|
|
10
|
-
|
|
8
|
+
import { ListItem as i } from "../List/ListItem.js";
|
|
9
|
+
const g = ({ as: r = "button", icon: t, title: m, ...o }) => /* @__PURE__ */ e(
|
|
10
|
+
i,
|
|
11
11
|
{
|
|
12
12
|
avatar: t ? {
|
|
13
13
|
imageUrl: t,
|
|
14
14
|
type: "company",
|
|
15
15
|
name: m || ""
|
|
16
16
|
} : void 0,
|
|
17
|
-
as:
|
|
17
|
+
as: r,
|
|
18
18
|
size: "sm",
|
|
19
19
|
color: "accent",
|
|
20
20
|
title: m,
|
|
21
|
-
...
|
|
21
|
+
...o
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
g as AccessPackageListItem
|
|
26
26
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as s } from "../Icon/Icon.js";
|
|
3
3
|
import "../Icon/SvgIcon.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import "react";
|
|
6
|
+
import "../Autocomplete/AutocompleteBase.js";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
8
|
+
import { Typography as a } from "../Typography/Typography.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
|
+
import '../../assets/AttachmentLink.css';const c = "_link_196mu_1", e = "_label_196mu_12", p = "_icon_196mu_18", o = {
|
|
11
|
+
link: c,
|
|
12
|
+
label: e,
|
|
9
13
|
icon: p
|
|
10
|
-
},
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
14
|
+
}, d = ({ size: n = "lg", icon: l = "file", href: m, label: t }) => /* @__PURE__ */ r(a, { as: "a", href: m, size: n, className: o.link, children: [
|
|
15
|
+
/* @__PURE__ */ i(s, { name: l, className: o.icon }),
|
|
16
|
+
/* @__PURE__ */ i("span", { className: o.label, children: t })
|
|
13
17
|
] });
|
|
14
18
|
export {
|
|
15
|
-
|
|
19
|
+
d as AttachmentLink
|
|
16
20
|
};
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { BookmarksListItem as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { BookmarksListItem as r } from "../Bookmarks/BookmarksListItem.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "../Icon/SvgIcon.js";
|
|
6
6
|
import "./AutocompleteBase.js";
|
|
7
|
-
import { ScopeListItem as
|
|
7
|
+
import { ScopeListItem as a } from "./ScopeListItem.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
9
|
import { DialogListItem as i } from "../Dialog/DialogListItem.js";
|
|
10
|
-
import { ListItem as
|
|
10
|
+
import { ListItem as o } from "../List/ListItem.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
const
|
|
12
|
+
const x = ({ type: m, ...e }) => {
|
|
13
13
|
switch (m) {
|
|
14
14
|
case "scope":
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ t(a, { ...e, theme: "default", shadow: "none", tabIndex: -1 });
|
|
16
16
|
case "bookmark":
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t(
|
|
18
|
+
r,
|
|
19
|
+
{
|
|
20
|
+
...e,
|
|
21
|
+
theme: "default",
|
|
22
|
+
shadow: "none",
|
|
23
|
+
size: "sm",
|
|
24
|
+
tabIndex: -1
|
|
25
|
+
}
|
|
26
|
+
);
|
|
18
27
|
case "dialog":
|
|
19
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ t(i, { ...e, theme: "default", shadow: "none", size: "sm", tabIndex: -1 });
|
|
20
29
|
case "information":
|
|
21
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", tabIndex: -1, disabled: !0 });
|
|
22
31
|
default:
|
|
23
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", size: "sm", tabIndex: -1 });
|
|
24
33
|
}
|
|
25
34
|
};
|
|
26
35
|
export {
|
|
27
|
-
|
|
36
|
+
x as AutocompleteItem
|
|
28
37
|
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { c as f } from "../../index-L8X2o7IH.js";
|
|
4
|
-
import { useState as
|
|
5
|
-
import { fromStringToColor as
|
|
6
|
-
import '../../assets/Avatar.css';const
|
|
7
|
-
avatar:
|
|
8
|
-
circle:
|
|
9
|
-
square:
|
|
10
|
-
outline:
|
|
11
|
-
xs:
|
|
12
|
-
sm:
|
|
13
|
-
md:
|
|
14
|
-
lg:
|
|
15
|
-
xl:
|
|
16
|
-
image:
|
|
4
|
+
import { useState as x } from "react";
|
|
5
|
+
import { fromStringToColor as h } from "./color.js";
|
|
6
|
+
import '../../assets/Avatar.css';const q = "_avatar_vbrzn_1", C = "_circle_vbrzn_15", E = "_square_vbrzn_19", I = "_outline_vbrzn_23", S = "_xs_vbrzn_28", k = "_sm_vbrzn_34", y = "_md_vbrzn_40", A = "_lg_vbrzn_46", N = "_xl_vbrzn_52", j = "_image_vbrzn_58", r = {
|
|
7
|
+
avatar: q,
|
|
8
|
+
circle: C,
|
|
9
|
+
square: E,
|
|
10
|
+
outline: I,
|
|
11
|
+
xs: S,
|
|
12
|
+
sm: k,
|
|
13
|
+
md: y,
|
|
14
|
+
lg: A,
|
|
15
|
+
xl: N,
|
|
16
|
+
image: j
|
|
17
17
|
}, D = ({
|
|
18
|
-
type:
|
|
19
|
-
size:
|
|
20
|
-
name:
|
|
18
|
+
type: n = "person",
|
|
19
|
+
size: e = "sm",
|
|
20
|
+
name: t = "Avatar",
|
|
21
21
|
outline: c = !1,
|
|
22
22
|
imageUrl: o,
|
|
23
23
|
imageUrlAlt: l,
|
|
24
24
|
customLabel: i,
|
|
25
25
|
className: _
|
|
26
26
|
}) => {
|
|
27
|
-
const [m,
|
|
28
|
-
backgroundColor:
|
|
29
|
-
color:
|
|
27
|
+
const [m, v] = x(!1), u = n === "person" ? "circle" : "square", g = n === "person" ? "light" : "dark", { backgroundColor: d, foregroundColor: b } = h(t, g), p = (t[0] ?? "").toUpperCase(), a = o && !m, z = a ? void 0 : {
|
|
28
|
+
backgroundColor: d,
|
|
29
|
+
color: b
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ s(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
|
-
className: f(
|
|
35
|
-
style:
|
|
34
|
+
className: f(r.avatar, r[u], r[e], { [r.outline]: c }, _),
|
|
35
|
+
style: z,
|
|
36
36
|
"aria-hidden": !0,
|
|
37
|
-
children:
|
|
37
|
+
children: a ? /* @__PURE__ */ s(
|
|
38
38
|
"img",
|
|
39
39
|
{
|
|
40
40
|
src: o,
|
|
41
|
-
className:
|
|
41
|
+
className: r.image,
|
|
42
42
|
alt: l || o,
|
|
43
43
|
onError: () => {
|
|
44
|
-
|
|
44
|
+
v(!0);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
) : /* @__PURE__ */
|
|
47
|
+
) : /* @__PURE__ */ s("span", { children: i || p })
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
};
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import { useMemo as p } from "react";
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import '../../assets/AvatarGroup.css';const
|
|
7
|
-
group:
|
|
8
|
-
reset:
|
|
5
|
+
import { Avatar as d } from "./Avatar.js";
|
|
6
|
+
import '../../assets/AvatarGroup.css';const k = "_group_1ks00_1", f = "_reset_1ks00_6", h = "_item_1ks00_13", x = "_xs_1ks00_17", A = "_sm_1ks00_37", U = "_md_1ks00_57", y = "_lg_1ks00_77", L = "_xl_1ks00_97", s = {
|
|
7
|
+
group: k,
|
|
8
|
+
reset: f,
|
|
9
9
|
item: h,
|
|
10
|
-
xs:
|
|
10
|
+
xs: x,
|
|
11
11
|
sm: A,
|
|
12
12
|
md: U,
|
|
13
|
-
lg: y
|
|
14
|
-
|
|
13
|
+
lg: y,
|
|
14
|
+
xl: L
|
|
15
|
+
}, j = ({
|
|
15
16
|
items: t = [],
|
|
16
17
|
maxItemsCount: r = 4,
|
|
17
18
|
defaultType: m,
|
|
18
|
-
size:
|
|
19
|
+
size: n = "sm",
|
|
19
20
|
className: _
|
|
20
21
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
return t.length === 0 ? /* @__PURE__ */
|
|
22
|
+
const o = p(() => t.slice(0, r), [t, r]);
|
|
23
|
+
return t.length === 0 ? /* @__PURE__ */ l("div", { className: s.avatarGroup }) : /* @__PURE__ */ l("ul", { className: c(s.reset, s.group, s[n], _), "data-count": o == null ? void 0 : o.length, children: o.map((e, i) => {
|
|
23
24
|
const g = i === r - 1, u = e.customLabel || g ? t.length.toString() : void 0;
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
25
|
+
return /* @__PURE__ */ l("li", { className: c(s.reset, s.item), children: /* @__PURE__ */ l(
|
|
26
|
+
d,
|
|
26
27
|
{
|
|
27
28
|
name: e.name,
|
|
28
29
|
customLabel: u,
|
|
29
30
|
imageUrl: e.imageUrl,
|
|
30
31
|
imageUrlAlt: e.imageUrlAlt,
|
|
31
32
|
type: (e == null ? void 0 : e.type) || m,
|
|
32
|
-
size:
|
|
33
|
+
size: n,
|
|
33
34
|
outline: !0
|
|
34
35
|
}
|
|
35
36
|
) }, e.name);
|
|
36
37
|
}) });
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
j as AvatarGroup
|
|
40
41
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/Badge.css';const
|
|
4
|
-
badge:
|
|
2
|
+
import { c as m } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/Badge.css';const r = "_badge_vjhmt_1", b = "_label_vjhmt_16", e = {
|
|
4
|
+
badge: r,
|
|
5
5
|
label: b
|
|
6
|
-
},
|
|
7
|
-
label: s,
|
|
8
|
-
color: l = "neutral",
|
|
9
|
-
variant: t = "subtle",
|
|
10
|
-
size: d = "sm",
|
|
11
|
-
className: r,
|
|
12
|
-
children: c
|
|
13
|
-
}) => /* @__PURE__ */ a("span", { className: n(e.badge, r), "data-color": l, "data-variant": t, "data-size": d, children: /* @__PURE__ */ a("span", { className: e.label, children: s || c }) });
|
|
6
|
+
}, g = ({ label: s, color: t, theme: l = "subtle", size: c = "sm", className: o, children: d }) => /* @__PURE__ */ a("span", { className: m(e.badge, o), "data-color": t, "data-theme": l, "data-size": c, children: /* @__PURE__ */ a("span", { className: e.label, children: s || d }) });
|
|
14
7
|
export {
|
|
15
|
-
|
|
8
|
+
g as Badge
|
|
16
9
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c
|
|
1
|
+
import { jsx as s, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { c } 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 B } from "./ButtonIcon.js";
|
|
5
|
+
import { ButtonLabel as h } from "./ButtonLabel.js";
|
|
6
|
+
import '../../assets/Button.css';const y = "_button_1ysmx_1", N = "_reverse_1ysmx_8", t = {
|
|
7
|
+
button: y,
|
|
8
8
|
reverse: N
|
|
9
|
-
},
|
|
10
|
-
variant:
|
|
11
|
-
color:
|
|
12
|
-
size:
|
|
9
|
+
}, k = ({
|
|
10
|
+
variant: e = "solid",
|
|
11
|
+
color: o,
|
|
12
|
+
size: r = "md",
|
|
13
13
|
reverse: n = !1,
|
|
14
14
|
selected: a = !1,
|
|
15
15
|
icon: m,
|
|
@@ -18,36 +18,38 @@ import '../../assets/Button.css';const h = "_button_1ysmx_1", N = "_reverse_1ysm
|
|
|
18
18
|
children: b,
|
|
19
19
|
className: p,
|
|
20
20
|
loading: f,
|
|
21
|
-
...
|
|
22
|
-
|
|
21
|
+
loadingText: x = "Loading ...",
|
|
22
|
+
...u
|
|
23
|
+
}) => f ? /* @__PURE__ */ s(
|
|
23
24
|
d,
|
|
24
25
|
{
|
|
25
|
-
variant:
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
variant: e,
|
|
27
|
+
"aria-busy": !0,
|
|
28
|
+
color: o,
|
|
29
|
+
size: r,
|
|
28
30
|
selected: a,
|
|
29
31
|
href: l,
|
|
30
|
-
className:
|
|
31
|
-
...
|
|
32
|
+
className: c(t.button, { [t.reverse]: n }, p),
|
|
33
|
+
...u,
|
|
32
34
|
disabled: !0,
|
|
33
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ s("span", { className: t.label, "data-size": r, children: /* @__PURE__ */ s("span", { className: t.loading, children: x }) })
|
|
34
36
|
}
|
|
35
|
-
) : /* @__PURE__ */
|
|
37
|
+
) : /* @__PURE__ */ _(
|
|
36
38
|
d,
|
|
37
39
|
{
|
|
38
|
-
variant:
|
|
39
|
-
color:
|
|
40
|
-
size:
|
|
40
|
+
variant: e,
|
|
41
|
+
color: o,
|
|
42
|
+
size: r,
|
|
41
43
|
selected: a,
|
|
42
44
|
href: l,
|
|
43
|
-
className:
|
|
44
|
-
...
|
|
45
|
+
className: c(t.button, { [t.reverse]: n }),
|
|
46
|
+
...u,
|
|
45
47
|
children: [
|
|
46
|
-
m && /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
+
m && /* @__PURE__ */ s(B, { size: r, icon: m }),
|
|
49
|
+
/* @__PURE__ */ s(h, { size: r, children: b || i })
|
|
48
50
|
]
|
|
49
51
|
}
|
|
50
52
|
);
|
|
51
53
|
export {
|
|
52
|
-
|
|
54
|
+
k as Button
|
|
53
55
|
};
|