@grucloud/bau-ui 0.41.0 → 0.43.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 +4 -2
- package/accordion/accordion.js +32 -62
- package/accordion/index.d.ts +5 -7
- package/alert/alert.js +33 -30
- package/animate/animate.js +48 -34
- package/animate/index.d.ts +2 -3
- package/autocomplete/autocomplete.js +14 -11
- package/avatar/avatar.js +5 -2
- package/badge/index.d.ts +0 -4
- package/bau-ui.d.ts +3 -1
- package/breadcrumbs/breadcrumbs.js +2 -5
- package/button/button.js +59 -52
- package/buttonGroup/buttonGroup.js +4 -3
- package/carousel/carousel.js +105 -0
- package/carousel/index.d.ts +22 -0
- package/carousel/index.js +1 -0
- package/chip/chip.js +11 -11
- package/collapsible/collapsible.js +121 -0
- package/collapsible/index.d.ts +10 -0
- package/collapsible/index.js +1 -0
- package/constants.d.ts +8 -2
- package/constants.js +8 -1
- package/context.d.ts +2 -0
- package/context.js +5 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +22 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/functions/accordion.default.html +100 -0
- package/docs/functions/alert.default.html +97 -0
- package/docs/functions/alertStack.default.html +97 -0
- package/docs/functions/animate.default.html +93 -0
- package/docs/functions/autocomplete.default.html +97 -0
- package/docs/functions/avatar.default.html +97 -0
- package/docs/functions/badge.default.html +97 -0
- package/docs/functions/breadcrumbs.default.html +98 -0
- package/docs/functions/button.default.html +97 -0
- package/docs/functions/buttonGroup.default.html +97 -0
- package/docs/functions/calendar.default.html +97 -0
- package/docs/functions/checkbox.default.html +97 -0
- package/docs/functions/chip.default.html +97 -0
- package/docs/functions/context.createContext.html +92 -0
- package/docs/functions/drawer.default.html +97 -0
- package/docs/functions/drillDownMenu.default.html +100 -0
- package/docs/functions/fileInput.default.html +97 -0
- package/docs/functions/form.default.html +97 -0
- package/docs/functions/globalStyle.default.html +96 -0
- package/docs/functions/input.default.html +97 -0
- package/docs/functions/list.default.html +97 -0
- package/docs/functions/modal.default.html +97 -0
- package/docs/functions/paper.default.html +97 -0
- package/docs/functions/popover.default.html +97 -0
- package/docs/functions/select.default.html +97 -0
- package/docs/functions/slider.default.html +97 -0
- package/docs/functions/spinner.default.html +97 -0
- package/docs/functions/switch.default.html +97 -0
- package/docs/functions/tableContainer.default.html +96 -0
- package/docs/functions/tablePagination.default.html +97 -0
- package/docs/functions/tabs.default.html +101 -0
- package/docs/functions/themeSwitch.default.html +96 -0
- package/docs/functions/tooltip.default.html +97 -0
- package/docs/functions/treeView.default.html +100 -0
- package/docs/index.html +82 -0
- package/docs/modules/accordion.html +104 -0
- package/docs/modules/alert.html +98 -0
- package/docs/modules/alertStack.html +98 -0
- package/docs/modules/animate.html +94 -0
- package/docs/modules/autocomplete.html +98 -0
- package/docs/modules/avatar.html +98 -0
- package/docs/modules/badge.html +98 -0
- package/docs/modules/bau_ui.html +97 -0
- package/docs/modules/breadcrumbs.html +100 -0
- package/docs/modules/button.html +98 -0
- package/docs/modules/buttonGroup.html +98 -0
- package/docs/modules/calendar.html +98 -0
- package/docs/modules/checkbox.html +98 -0
- package/docs/modules/chip.html +98 -0
- package/docs/modules/constants.html +102 -0
- package/docs/modules/context.html +92 -0
- package/docs/modules/drawer.html +98 -0
- package/docs/modules/drillDownMenu.html +104 -0
- package/docs/modules/fileInput.html +98 -0
- package/docs/modules/form.html +98 -0
- package/docs/modules/globalStyle.html +96 -0
- package/docs/modules/input.html +98 -0
- package/docs/modules/list.html +98 -0
- package/docs/modules/modal.html +98 -0
- package/docs/modules/paper.html +98 -0
- package/docs/modules/popover.html +98 -0
- package/docs/modules/select.html +98 -0
- package/docs/modules/slider.html +98 -0
- package/docs/modules/spinner.html +98 -0
- package/docs/modules/switch.html +98 -0
- package/docs/modules/tableContainer.html +96 -0
- package/docs/modules/tablePagination.html +98 -0
- package/docs/modules/tabs.html +106 -0
- package/docs/modules/themeSwitch.html +96 -0
- package/docs/modules/tooltip.html +98 -0
- package/docs/modules/treeView.html +104 -0
- package/docs/types/accordion.Accordion.html +96 -0
- package/docs/types/accordion.AccordionItem.html +89 -0
- package/docs/types/accordion.AccordionItemPropBase.html +94 -0
- package/docs/types/accordion.AccordionProps.html +94 -0
- package/docs/types/accordion.Component.html +89 -0
- package/docs/types/accordion.ComponentOption.html +89 -0
- package/docs/types/accordion.DefaultDesignProps.html +89 -0
- package/docs/types/alert.AnimateProps.html +91 -0
- package/docs/types/alert.Component.html +86 -0
- package/docs/types/alert.ComponentOption.html +86 -0
- package/docs/types/alert.DefaultDesignProps.html +86 -0
- package/docs/types/alertStack.AlertStack.html +86 -0
- package/docs/types/alertStack.AlertStackProps.html +89 -0
- package/docs/types/alertStack.ComponentOption.html +86 -0
- package/docs/types/alertStack.DefaultDesignProps.html +86 -0
- package/docs/types/animate.AnimateProps.html +103 -0
- package/docs/types/animate.Component.html +84 -0
- package/docs/types/autocomplete.Autocomplete.html +125 -0
- package/docs/types/autocomplete.Component.html +86 -0
- package/docs/types/autocomplete.ComponentOption.html +86 -0
- package/docs/types/autocomplete.DefaultDesignProps.html +86 -0
- package/docs/types/avatar.AvatarProps.html +99 -0
- package/docs/types/avatar.Component.html +86 -0
- package/docs/types/avatar.ComponentOption.html +86 -0
- package/docs/types/avatar.DefaultDesignProps.html +86 -0
- package/docs/types/badge.BadgeProps.html +91 -0
- package/docs/types/badge.Component.html +86 -0
- package/docs/types/badge.ComponentOption.html +86 -0
- package/docs/types/badge.DefaultDesignProps.html +86 -0
- package/docs/types/bau_ui.ChildDom.html +87 -0
- package/docs/types/bau_ui.Component.html +111 -0
- package/docs/types/bau_ui.ComponentGeneric.html +102 -0
- package/docs/types/bau_ui.ComponentOneChild.html +109 -0
- package/docs/types/bau_ui.ComponentOption.html +92 -0
- package/docs/types/bau_ui.ComponentWithProp.html +109 -0
- package/docs/types/breadcrumbs.BreadcrumbsProps.html +94 -0
- package/docs/types/breadcrumbs.Component.html +87 -0
- package/docs/types/breadcrumbs.ComponentGeneric.html +87 -0
- package/docs/types/breadcrumbs.ComponentOption.html +87 -0
- package/docs/types/breadcrumbs.DefaultDesignProps.html +87 -0
- package/docs/types/button.ButtonProps.html +93 -0
- package/docs/types/button.Component.html +86 -0
- package/docs/types/button.ComponentOption.html +86 -0
- package/docs/types/button.DefaultDesignProps.html +86 -0
- package/docs/types/buttonGroup.ButtonGroupProps.html +89 -0
- package/docs/types/buttonGroup.Component.html +86 -0
- package/docs/types/buttonGroup.ComponentOption.html +86 -0
- package/docs/types/buttonGroup.DefaultDesignProps.html +86 -0
- package/docs/types/calendar.CalendarProps.html +89 -0
- package/docs/types/calendar.Component.html +86 -0
- package/docs/types/calendar.ComponentOption.html +86 -0
- package/docs/types/calendar.DefaultDesignProps.html +86 -0
- package/docs/types/checkbox.CheckboxProps.html +89 -0
- package/docs/types/checkbox.Component.html +86 -0
- package/docs/types/checkbox.ComponentOption.html +86 -0
- package/docs/types/checkbox.DefaultDesignProps.html +86 -0
- package/docs/types/chip.ChipProps.html +89 -0
- package/docs/types/chip.Component.html +86 -0
- package/docs/types/chip.ComponentOption.html +86 -0
- package/docs/types/chip.DefaultDesignProps.html +86 -0
- package/docs/types/constants.Color.html +88 -0
- package/docs/types/constants.DefaultDesignProps.html +97 -0
- package/docs/types/constants.Size.html +88 -0
- package/docs/types/constants.Variant.html +88 -0
- package/docs/types/context.Context.html +107 -0
- package/docs/types/drawer.Component.html +86 -0
- package/docs/types/drawer.ComponentOption.html +86 -0
- package/docs/types/drawer.DefaultDesignProps.html +86 -0
- package/docs/types/drawer.DrawerProps.html +89 -0
- package/docs/types/drillDownMenu.Component.html +89 -0
- package/docs/types/drillDownMenu.ComponentGeneric.html +89 -0
- package/docs/types/drillDownMenu.ComponentOption.html +89 -0
- package/docs/types/drillDownMenu.DefaultDesignProps.html +89 -0
- package/docs/types/drillDownMenu.Option.html +116 -0
- package/docs/types/drillDownMenu.Tree.html +96 -0
- package/docs/types/drillDownMenu.TreeViewProps.html +94 -0
- package/docs/types/fileInput.Component.html +86 -0
- package/docs/types/fileInput.ComponentOption.html +86 -0
- package/docs/types/fileInput.DefaultDesignProps.html +86 -0
- package/docs/types/fileInput.FileInputProps.html +91 -0
- package/docs/types/form.Component.html +86 -0
- package/docs/types/form.ComponentOption.html +86 -0
- package/docs/types/form.DefaultDesignProps.html +86 -0
- package/docs/types/form.FormProps.html +89 -0
- package/docs/types/globalStyle.ColorDefs.html +85 -0
- package/docs/types/globalStyle.HSL.html +94 -0
- package/docs/types/globalStyle.StyleOption.html +90 -0
- package/docs/types/input.Component.html +86 -0
- package/docs/types/input.ComponentOption.html +86 -0
- package/docs/types/input.DefaultDesignProps.html +86 -0
- package/docs/types/input.InputProps.html +89 -0
- package/docs/types/list.Component.html +86 -0
- package/docs/types/list.ComponentOption.html +86 -0
- package/docs/types/list.DefaultDesignProps.html +86 -0
- package/docs/types/list.ListProps.html +89 -0
- package/docs/types/modal.Component.html +86 -0
- package/docs/types/modal.ComponentOption.html +86 -0
- package/docs/types/modal.DefaultDesignProps.html +86 -0
- package/docs/types/modal.ModalProps.html +89 -0
- package/docs/types/paper.Component.html +86 -0
- package/docs/types/paper.ComponentOption.html +86 -0
- package/docs/types/paper.DefaultDesignProps.html +86 -0
- package/docs/types/paper.PaperProps.html +89 -0
- package/docs/types/popover.Action.html +105 -0
- package/docs/types/popover.Component.html +86 -0
- package/docs/types/popover.ComponentOption.html +86 -0
- package/docs/types/popover.PopoverProps.html +89 -0
- package/docs/types/select.Component.html +86 -0
- package/docs/types/select.ComponentOption.html +86 -0
- package/docs/types/select.DefaultDesignProps.html +86 -0
- package/docs/types/select.SelectProps.html +121 -0
- package/docs/types/slider.Component.html +86 -0
- package/docs/types/slider.ComponentOption.html +86 -0
- package/docs/types/slider.DefaultDesignProps.html +86 -0
- package/docs/types/slider.SliderProps.html +89 -0
- package/docs/types/spinner.Component.html +86 -0
- package/docs/types/spinner.ComponentOption.html +86 -0
- package/docs/types/spinner.DefaultDesignProps.html +86 -0
- package/docs/types/spinner.SpinnerProps.html +91 -0
- package/docs/types/switch.Component.html +86 -0
- package/docs/types/switch.ComponentOption.html +86 -0
- package/docs/types/switch.DefaultDesignProps.html +86 -0
- package/docs/types/switch.SwitchProps.html +89 -0
- package/docs/types/tableContainer.Component.html +85 -0
- package/docs/types/tableContainer.ComponentOption.html +85 -0
- package/docs/types/tableContainer.TableProps.html +88 -0
- package/docs/types/tablePagination.Component.html +86 -0
- package/docs/types/tablePagination.ComponentOption.html +86 -0
- package/docs/types/tablePagination.TablePaginationProps.html +99 -0
- package/docs/types/tablePagination.onPageChange.html +110 -0
- package/docs/types/tabs.Component.html +90 -0
- package/docs/types/tabs.ComponentOption.html +90 -0
- package/docs/types/tabs.ComponentTab.html +90 -0
- package/docs/types/tabs.Option.html +95 -0
- package/docs/types/tabs.Tab.html +97 -0
- package/docs/types/tabs.TabPropBase.html +101 -0
- package/docs/types/tabs.Tabs.html +90 -0
- package/docs/types/tabs.TabsProps.html +93 -0
- package/docs/types/themeSwitch.Component.html +85 -0
- package/docs/types/themeSwitch.ComponentOption.html +85 -0
- package/docs/types/themeSwitch.ThemeSwitchProps.html +88 -0
- package/docs/types/tooltip.Component.html +86 -0
- package/docs/types/tooltip.ComponentOption.html +86 -0
- package/docs/types/tooltip.DefaultDesignProps.html +86 -0
- package/docs/types/tooltip.TooltipProps.html +91 -0
- package/docs/types/treeView.Component.html +89 -0
- package/docs/types/treeView.ComponentGeneric.html +89 -0
- package/docs/types/treeView.ComponentOption.html +89 -0
- package/docs/types/treeView.DefaultDesignProps.html +89 -0
- package/docs/types/treeView.Option.html +94 -0
- package/docs/types/treeView.Tree.html +98 -0
- package/docs/types/treeView.TreeViewProps.html +94 -0
- package/docs/variables/constants.Colors.html +88 -0
- package/docs/variables/constants.Sizes.html +88 -0
- package/docs/variables/constants.Variants.html +88 -0
- package/drillDownMenu/drillDownMenu.js +120 -106
- package/drillDownMenu/index.d.ts +1 -0
- package/fileInput/fileInput.js +8 -6
- package/form/form.js +62 -0
- package/form/index.d.ts +10 -0
- package/form/index.js +1 -0
- package/globalStyle/globalStyle.js +35 -13
- package/globalStyle/index.d.ts +14 -0
- package/input/input.js +13 -13
- package/linearProgress/index.d.ts +12 -0
- package/linearProgress/index.js +1 -0
- package/linearProgress/linearProgress.js +84 -0
- package/list/list.js +3 -11
- package/loadingButton/index.d.ts +12 -0
- package/loadingButton/index.js +1 -0
- package/loadingButton/loadingButton.js +70 -0
- package/modal/modal.js +25 -27
- package/package.json +10 -5
- package/pages/login/index.d.ts +3 -6
- package/pages/login/login.js +1 -1
- package/paginationNavigation/index.d.ts +10 -0
- package/paginationNavigation/index.js +1 -0
- package/paginationNavigation/paginationNavigation.js +78 -0
- package/paper/index.d.ts +10 -0
- package/paper/index.js +1 -0
- package/paper/paper.js +51 -0
- package/popover/popover.js +14 -3
- package/radioButton/index.d.ts +15 -0
- package/radioButton/index.js +1 -0
- package/radioButton/radioButton.js +49 -0
- package/select/select.js +21 -8
- package/spinner/index.d.ts +1 -3
- package/spinner/spinner.js +98 -55
- package/stepper/index.d.ts +28 -0
- package/stepper/index.js +1 -0
- package/stepper/stepper.js +159 -0
- package/tableContainer/tableContainer.js +2 -3
- package/tableOfContent/index.d.ts +10 -0
- package/tableOfContent/index.js +1 -0
- package/tableOfContent/tableOfContent.js +159 -0
- package/tabs/tabs.js +56 -56
- package/toggle/index.d.ts +10 -0
- package/toggle/index.js +1 -0
- package/toggle/toggle.js +106 -0
- package/toggleGroup/index.d.ts +13 -0
- package/toggleGroup/index.js +1 -0
- package/toggleGroup/toggleGroup.js +94 -0
- package/tooltip/tooltip.js +2 -7
- package/treeView/treeView.js +30 -88
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Sizes | @grucloud/bau-ui</title><meta name="description" content="Documentation for @grucloud/bau-ui"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<div class="field">
|
|
6
|
+
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
+
<ul class="results">
|
|
8
|
+
<li class="state loading">Preparing search index...</li>
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@grucloud/bau-ui</a></div>
|
|
10
|
+
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
|
+
<div class="container container-main">
|
|
12
|
+
<div class="col-content">
|
|
13
|
+
<div class="tsd-page-title">
|
|
14
|
+
<ul class="tsd-breadcrumb">
|
|
15
|
+
<li><a href="../index.html">@grucloud/bau-ui</a></li>
|
|
16
|
+
<li><a href="../modules/constants.html">constants</a></li>
|
|
17
|
+
<li><a href="constants.Sizes.html">Sizes</a></li></ul>
|
|
18
|
+
<h1>Variable Sizes<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
19
|
+
<div class="tsd-signature"><span class="tsd-kind-variable">Sizes</span><span class="tsd-signature-symbol">:</span> <a href="../types/constants.Size.html" class="tsd-signature-type tsd-kind-type-alias">Size</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
|
20
|
+
<ul>
|
|
21
|
+
<li>Defined in <a href="https://github.com/grucloud/bau/blob/2d0ccd8/bau-ui/constants.d.ts#L7">constants.d.ts:7</a></li></ul></aside></div>
|
|
22
|
+
<div class="col-sidebar">
|
|
23
|
+
<div class="page-menu">
|
|
24
|
+
<div class="tsd-navigation settings">
|
|
25
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
26
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
|
|
27
|
+
<div class="tsd-accordion-details">
|
|
28
|
+
<div class="tsd-filter-visibility">
|
|
29
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
30
|
+
<ul id="tsd-filter-options">
|
|
31
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
32
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
|
|
33
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
34
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
|
|
35
|
+
<div class="tsd-theme-toggle">
|
|
36
|
+
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
37
|
+
<div class="site-menu">
|
|
38
|
+
<nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@grucloud/bau-<wbr/>ui</span></a>
|
|
39
|
+
<ul class="tsd-small-nested-navigation">
|
|
40
|
+
<li><a href="../modules/accordion.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>accordion</span></a></li>
|
|
41
|
+
<li><a href="../modules/alert.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>alert</span></a></li>
|
|
42
|
+
<li><a href="../modules/alertStack.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>alert<wbr/>Stack</span></a></li>
|
|
43
|
+
<li><a href="../modules/animate.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>animate</span></a></li>
|
|
44
|
+
<li><a href="../modules/autocomplete.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>autocomplete</span></a></li>
|
|
45
|
+
<li><a href="../modules/avatar.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>avatar</span></a></li>
|
|
46
|
+
<li><a href="../modules/badge.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>badge</span></a></li>
|
|
47
|
+
<li><a href="../modules/bau_ui.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>bau-<wbr/>ui</span></a></li>
|
|
48
|
+
<li><a href="../modules/breadcrumbs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>breadcrumbs</span></a></li>
|
|
49
|
+
<li><a href="../modules/button.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>button</span></a></li>
|
|
50
|
+
<li><a href="../modules/buttonGroup.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>button<wbr/>Group</span></a></li>
|
|
51
|
+
<li><a href="../modules/calendar.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>calendar</span></a></li>
|
|
52
|
+
<li><a href="../modules/checkbox.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>checkbox</span></a></li>
|
|
53
|
+
<li><a href="../modules/chip.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>chip</span></a></li>
|
|
54
|
+
<li>
|
|
55
|
+
<details class="tsd-index-accordion" open data-key="constants"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><a href="../modules/constants.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>constants</span></a></summary>
|
|
56
|
+
<div class="tsd-accordion-details">
|
|
57
|
+
<ul class="tsd-nested-navigation">
|
|
58
|
+
<li><a href="../types/constants.Color.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Color</span></a></li>
|
|
59
|
+
<li><a href="../types/constants.DefaultDesignProps.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Default<wbr/>Design<wbr/>Props</span></a></li>
|
|
60
|
+
<li><a href="../types/constants.Size.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Size</span></a></li>
|
|
61
|
+
<li><a href="../types/constants.Variant.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Variant</span></a></li>
|
|
62
|
+
<li><a href="constants.Colors.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g></svg><span>Colors</span></a></li>
|
|
63
|
+
<li><a href="constants.Sizes.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Sizes</span></a></li>
|
|
64
|
+
<li><a href="constants.Variants.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Variants</span></a></li></ul></div></details></li>
|
|
65
|
+
<li><a href="../modules/context.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>context</span></a></li>
|
|
66
|
+
<li><a href="../modules/drawer.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>drawer</span></a></li>
|
|
67
|
+
<li><a href="../modules/drillDownMenu.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>drill<wbr/>Down<wbr/>Menu</span></a></li>
|
|
68
|
+
<li><a href="../modules/fileInput.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>file<wbr/>Input</span></a></li>
|
|
69
|
+
<li><a href="../modules/form.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>form</span></a></li>
|
|
70
|
+
<li><a href="../modules/globalStyle.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>global<wbr/>Style</span></a></li>
|
|
71
|
+
<li><a href="../modules/input.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>input</span></a></li>
|
|
72
|
+
<li><a href="../modules/list.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>list</span></a></li>
|
|
73
|
+
<li><a href="../modules/modal.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>modal</span></a></li>
|
|
74
|
+
<li><a href="../modules/paper.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>paper</span></a></li>
|
|
75
|
+
<li><a href="../modules/popover.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>popover</span></a></li>
|
|
76
|
+
<li><a href="../modules/select.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>select</span></a></li>
|
|
77
|
+
<li><a href="../modules/slider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>slider</span></a></li>
|
|
78
|
+
<li><a href="../modules/spinner.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>spinner</span></a></li>
|
|
79
|
+
<li><a href="../modules/switch.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>switch</span></a></li>
|
|
80
|
+
<li><a href="../modules/tableContainer.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>table<wbr/>Container</span></a></li>
|
|
81
|
+
<li><a href="../modules/tablePagination.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>table<wbr/>Pagination</span></a></li>
|
|
82
|
+
<li><a href="../modules/tabs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>tabs</span></a></li>
|
|
83
|
+
<li><a href="../modules/themeSwitch.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>theme<wbr/>Switch</span></a></li>
|
|
84
|
+
<li><a href="../modules/tooltip.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>tooltip</span></a></li>
|
|
85
|
+
<li><a href="../modules/treeView.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>tree<wbr/>View</span></a></li></ul></nav></div></div></div>
|
|
86
|
+
<div class="tsd-generator">
|
|
87
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
88
|
+
<div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Variants | @grucloud/bau-ui</title><meta name="description" content="Documentation for @grucloud/bau-ui"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<div class="field">
|
|
6
|
+
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
+
<ul class="results">
|
|
8
|
+
<li class="state loading">Preparing search index...</li>
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@grucloud/bau-ui</a></div>
|
|
10
|
+
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
|
+
<div class="container container-main">
|
|
12
|
+
<div class="col-content">
|
|
13
|
+
<div class="tsd-page-title">
|
|
14
|
+
<ul class="tsd-breadcrumb">
|
|
15
|
+
<li><a href="../index.html">@grucloud/bau-ui</a></li>
|
|
16
|
+
<li><a href="../modules/constants.html">constants</a></li>
|
|
17
|
+
<li><a href="constants.Variants.html">Variants</a></li></ul>
|
|
18
|
+
<h1>Variable Variants<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
19
|
+
<div class="tsd-signature"><span class="tsd-kind-variable">Variants</span><span class="tsd-signature-symbol">:</span> <a href="../types/constants.Variant.html" class="tsd-signature-type tsd-kind-type-alias">Variant</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
|
20
|
+
<ul>
|
|
21
|
+
<li>Defined in <a href="https://github.com/grucloud/bau/blob/2d0ccd8/bau-ui/constants.d.ts#L5">constants.d.ts:5</a></li></ul></aside></div>
|
|
22
|
+
<div class="col-sidebar">
|
|
23
|
+
<div class="page-menu">
|
|
24
|
+
<div class="tsd-navigation settings">
|
|
25
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
26
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
|
|
27
|
+
<div class="tsd-accordion-details">
|
|
28
|
+
<div class="tsd-filter-visibility">
|
|
29
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
30
|
+
<ul id="tsd-filter-options">
|
|
31
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
32
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
|
|
33
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
34
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
|
|
35
|
+
<div class="tsd-theme-toggle">
|
|
36
|
+
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
37
|
+
<div class="site-menu">
|
|
38
|
+
<nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@grucloud/bau-<wbr/>ui</span></a>
|
|
39
|
+
<ul class="tsd-small-nested-navigation">
|
|
40
|
+
<li><a href="../modules/accordion.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>accordion</span></a></li>
|
|
41
|
+
<li><a href="../modules/alert.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>alert</span></a></li>
|
|
42
|
+
<li><a href="../modules/alertStack.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>alert<wbr/>Stack</span></a></li>
|
|
43
|
+
<li><a href="../modules/animate.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>animate</span></a></li>
|
|
44
|
+
<li><a href="../modules/autocomplete.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>autocomplete</span></a></li>
|
|
45
|
+
<li><a href="../modules/avatar.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>avatar</span></a></li>
|
|
46
|
+
<li><a href="../modules/badge.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>badge</span></a></li>
|
|
47
|
+
<li><a href="../modules/bau_ui.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>bau-<wbr/>ui</span></a></li>
|
|
48
|
+
<li><a href="../modules/breadcrumbs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>breadcrumbs</span></a></li>
|
|
49
|
+
<li><a href="../modules/button.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>button</span></a></li>
|
|
50
|
+
<li><a href="../modules/buttonGroup.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>button<wbr/>Group</span></a></li>
|
|
51
|
+
<li><a href="../modules/calendar.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>calendar</span></a></li>
|
|
52
|
+
<li><a href="../modules/checkbox.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>checkbox</span></a></li>
|
|
53
|
+
<li><a href="../modules/chip.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>chip</span></a></li>
|
|
54
|
+
<li>
|
|
55
|
+
<details class="tsd-index-accordion" open data-key="constants"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><a href="../modules/constants.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>constants</span></a></summary>
|
|
56
|
+
<div class="tsd-accordion-details">
|
|
57
|
+
<ul class="tsd-nested-navigation">
|
|
58
|
+
<li><a href="../types/constants.Color.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Color</span></a></li>
|
|
59
|
+
<li><a href="../types/constants.DefaultDesignProps.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Default<wbr/>Design<wbr/>Props</span></a></li>
|
|
60
|
+
<li><a href="../types/constants.Size.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Size</span></a></li>
|
|
61
|
+
<li><a href="../types/constants.Variant.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Variant</span></a></li>
|
|
62
|
+
<li><a href="constants.Colors.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g></svg><span>Colors</span></a></li>
|
|
63
|
+
<li><a href="constants.Sizes.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Sizes</span></a></li>
|
|
64
|
+
<li><a href="constants.Variants.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Variants</span></a></li></ul></div></details></li>
|
|
65
|
+
<li><a href="../modules/context.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>context</span></a></li>
|
|
66
|
+
<li><a href="../modules/drawer.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>drawer</span></a></li>
|
|
67
|
+
<li><a href="../modules/drillDownMenu.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>drill<wbr/>Down<wbr/>Menu</span></a></li>
|
|
68
|
+
<li><a href="../modules/fileInput.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>file<wbr/>Input</span></a></li>
|
|
69
|
+
<li><a href="../modules/form.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>form</span></a></li>
|
|
70
|
+
<li><a href="../modules/globalStyle.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>global<wbr/>Style</span></a></li>
|
|
71
|
+
<li><a href="../modules/input.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>input</span></a></li>
|
|
72
|
+
<li><a href="../modules/list.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>list</span></a></li>
|
|
73
|
+
<li><a href="../modules/modal.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>modal</span></a></li>
|
|
74
|
+
<li><a href="../modules/paper.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>paper</span></a></li>
|
|
75
|
+
<li><a href="../modules/popover.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>popover</span></a></li>
|
|
76
|
+
<li><a href="../modules/select.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>select</span></a></li>
|
|
77
|
+
<li><a href="../modules/slider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>slider</span></a></li>
|
|
78
|
+
<li><a href="../modules/spinner.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>spinner</span></a></li>
|
|
79
|
+
<li><a href="../modules/switch.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>switch</span></a></li>
|
|
80
|
+
<li><a href="../modules/tableContainer.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>table<wbr/>Container</span></a></li>
|
|
81
|
+
<li><a href="../modules/tablePagination.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>table<wbr/>Pagination</span></a></li>
|
|
82
|
+
<li><a href="../modules/tabs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>tabs</span></a></li>
|
|
83
|
+
<li><a href="../modules/themeSwitch.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>theme<wbr/>Switch</span></a></li>
|
|
84
|
+
<li><a href="../modules/tooltip.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>tooltip</span></a></li>
|
|
85
|
+
<li><a href="../modules/treeView.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>tree<wbr/>View</span></a></li></ul></nav></div></div></div>
|
|
86
|
+
<div class="tsd-generator">
|
|
87
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
88
|
+
<div class="overlay"></div></body></html>
|
|
@@ -39,7 +39,7 @@ const findSubTree = (initialPathname) => (tree) => {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
const createStyles = ({
|
|
42
|
+
const createStyles = ({ keyframes }) => {
|
|
43
43
|
return {
|
|
44
44
|
hideToLeft: keyframes`
|
|
45
45
|
from {
|
|
@@ -50,16 +50,6 @@ const createStyles = ({ createGlobalStyles, keyframes }) => {
|
|
|
50
50
|
transform: translateX(-100%);
|
|
51
51
|
opacity: 0;
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
54
|
-
showFromLeft: keyframes`
|
|
55
|
-
from {
|
|
56
|
-
transform: translateX(-100%);
|
|
57
|
-
opacity: 0;
|
|
58
|
-
}
|
|
59
|
-
to {
|
|
60
|
-
transform: translateX(0%);
|
|
61
|
-
opacity: 1;
|
|
62
|
-
}
|
|
63
53
|
`,
|
|
64
54
|
hideToRight: keyframes`
|
|
65
55
|
from {
|
|
@@ -71,29 +61,25 @@ const createStyles = ({ createGlobalStyles, keyframes }) => {
|
|
|
71
61
|
opacity: 0;
|
|
72
62
|
}
|
|
73
63
|
`,
|
|
74
|
-
showFromRight: keyframes`
|
|
75
|
-
from {
|
|
76
|
-
transform: translateX(100%);
|
|
77
|
-
opacity: 0;
|
|
78
|
-
}
|
|
79
|
-
to {
|
|
80
|
-
transform: translateX(0%);
|
|
81
|
-
opacity: 1;
|
|
82
|
-
}
|
|
83
|
-
`,
|
|
84
64
|
};
|
|
85
65
|
};
|
|
86
66
|
|
|
87
|
-
export default function (context, options) {
|
|
88
|
-
const { bau, css, window } = context;
|
|
89
|
-
const { base = "" } = options;
|
|
90
|
-
const
|
|
67
|
+
export default function (context, options = {}) {
|
|
68
|
+
const { bau, css, window, config } = context;
|
|
69
|
+
const { base = "", hashBased = false } = options;
|
|
70
|
+
const baseUrl = `${config.base}${base}`;
|
|
71
|
+
const backHref = (currentTree) =>
|
|
72
|
+
currentTree.parentTree.data?.href ??
|
|
73
|
+
currentTree.parentTree.children[0].data.href;
|
|
74
|
+
|
|
75
|
+
const renderHeaderDefault = ({ variant, color, size, currentTree, data }) =>
|
|
91
76
|
header(
|
|
92
77
|
Button(
|
|
93
78
|
{
|
|
94
|
-
variant
|
|
95
|
-
|
|
96
|
-
|
|
79
|
+
variant,
|
|
80
|
+
color,
|
|
81
|
+
size,
|
|
82
|
+
href: `${baseUrl}${backHref(currentTree)}`,
|
|
97
83
|
class: css`
|
|
98
84
|
flex-grow: 0;
|
|
99
85
|
`,
|
|
@@ -103,24 +89,37 @@ export default function (context, options) {
|
|
|
103
89
|
),
|
|
104
90
|
Button(
|
|
105
91
|
{
|
|
106
|
-
variant
|
|
107
|
-
|
|
92
|
+
variant,
|
|
93
|
+
color,
|
|
94
|
+
size,
|
|
95
|
+
href: `${baseUrl}${data.href}`,
|
|
96
|
+
class: css`
|
|
97
|
+
flex-grow: 1;
|
|
98
|
+
`,
|
|
99
|
+
"data-ischild": true,
|
|
108
100
|
},
|
|
109
101
|
data.name
|
|
110
102
|
)
|
|
111
103
|
);
|
|
112
104
|
|
|
113
|
-
const renderMenuItemDefault = ({
|
|
105
|
+
const renderMenuItemDefault = ({
|
|
106
|
+
size,
|
|
107
|
+
subTree: {
|
|
108
|
+
data: { name, href },
|
|
109
|
+
children = [],
|
|
110
|
+
},
|
|
111
|
+
}) =>
|
|
114
112
|
Button(
|
|
115
113
|
{
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
size,
|
|
115
|
+
href: `${baseUrl}${href}`,
|
|
116
|
+
"data-ischild": !children.length,
|
|
118
117
|
},
|
|
119
118
|
name
|
|
120
119
|
);
|
|
121
120
|
|
|
122
|
-
const isActiveDefault = ({ subTree }) =>
|
|
123
|
-
|
|
121
|
+
const isActiveDefault = ({ pathname, subTree }) =>
|
|
122
|
+
pathname === subTree?.data?.href;
|
|
124
123
|
|
|
125
124
|
const {
|
|
126
125
|
renderHeader = renderHeaderDefault,
|
|
@@ -128,20 +127,18 @@ export default function (context, options) {
|
|
|
128
127
|
isActive = isActiveDefault,
|
|
129
128
|
} = options;
|
|
130
129
|
|
|
131
|
-
const {
|
|
130
|
+
const { li, nav, div, header, a } = bau.tags;
|
|
132
131
|
const Animate = animate(context);
|
|
133
132
|
const List = list(context);
|
|
134
133
|
|
|
135
134
|
const Button = button(context, {
|
|
136
135
|
class: css`
|
|
137
136
|
&.button {
|
|
138
|
-
flex-grow: 1;
|
|
139
137
|
justify-content: flex-start;
|
|
140
138
|
}
|
|
141
139
|
`,
|
|
142
140
|
});
|
|
143
|
-
const { hideToLeft, hideToRight
|
|
144
|
-
createStyles(context);
|
|
141
|
+
const { hideToLeft, hideToRight } = createStyles(context);
|
|
145
142
|
|
|
146
143
|
const className = css`
|
|
147
144
|
font-weight: var(--font-weight-semibold);
|
|
@@ -151,12 +148,17 @@ export default function (context, options) {
|
|
|
151
148
|
display: flex;
|
|
152
149
|
align-items: center;
|
|
153
150
|
font-weight: var(--font-weight-bold);
|
|
154
|
-
border-bottom: 1px solid var(--color-emphasis-100);
|
|
155
151
|
& a {
|
|
156
152
|
padding: 0.6rem;
|
|
157
153
|
border-radius: 0;
|
|
154
|
+
font-weight: 600;
|
|
158
155
|
}
|
|
159
156
|
}
|
|
157
|
+
& a,
|
|
158
|
+
& ul {
|
|
159
|
+
border-width: 0 !important;
|
|
160
|
+
box-shadow: none !important;
|
|
161
|
+
}
|
|
160
162
|
& ul {
|
|
161
163
|
overflow: hidden;
|
|
162
164
|
& .has-children {
|
|
@@ -167,24 +169,18 @@ export default function (context, options) {
|
|
|
167
169
|
}
|
|
168
170
|
& li {
|
|
169
171
|
padding: 0;
|
|
172
|
+
& a {
|
|
173
|
+
width: 100%;
|
|
174
|
+
}
|
|
170
175
|
}
|
|
171
176
|
}
|
|
172
177
|
`;
|
|
173
178
|
|
|
174
|
-
const Menu = ({
|
|
175
|
-
variant,
|
|
176
|
-
color,
|
|
177
|
-
size,
|
|
178
|
-
onclickItem,
|
|
179
|
-
onclickBack,
|
|
180
|
-
currentTree,
|
|
181
|
-
pathnameState,
|
|
182
|
-
}) => {
|
|
179
|
+
const Menu = ({ variant, color, size, currentTree, pathnameState }) => {
|
|
183
180
|
const { children, parentTree, data } = currentTree;
|
|
184
|
-
//console.log("Menu", currentTree, pathnameState.val);
|
|
185
181
|
return div(
|
|
186
182
|
{ class: cn("drillDownMenu", variant, color, size) },
|
|
187
|
-
parentTree && renderHeader({ data, currentTree
|
|
183
|
+
parentTree && renderHeader({ variant, color, size, data, currentTree }),
|
|
188
184
|
children &&
|
|
189
185
|
List(
|
|
190
186
|
{ class: cn(variant, color, size) },
|
|
@@ -197,10 +193,8 @@ export default function (context, options) {
|
|
|
197
193
|
isActive({ pathname: pathnameState.val, subTree }) &&
|
|
198
194
|
"active"
|
|
199
195
|
),
|
|
200
|
-
onclick:
|
|
201
|
-
subTree.children && onclickItem({ currentTree: subTree }),
|
|
202
196
|
},
|
|
203
|
-
renderMenuItem(subTree)
|
|
197
|
+
renderMenuItem({ variant, color, size, subTree })
|
|
204
198
|
)
|
|
205
199
|
)
|
|
206
200
|
)
|
|
@@ -208,10 +202,10 @@ export default function (context, options) {
|
|
|
208
202
|
};
|
|
209
203
|
|
|
210
204
|
const findInitialTree = ({ tree, pathname }) => {
|
|
211
|
-
let currentTree = treeAddParent({})(tree);
|
|
205
|
+
let currentTree = treeAddParent({})(structuredClone(tree));
|
|
212
206
|
let subTree = findSubTree(pathname)(currentTree);
|
|
213
207
|
if (!subTree) {
|
|
214
|
-
console.
|
|
208
|
+
console.error("drilldown no sub tree", pathname);
|
|
215
209
|
subTree = currentTree;
|
|
216
210
|
}
|
|
217
211
|
return subTree;
|
|
@@ -223,66 +217,86 @@ export default function (context, options) {
|
|
|
223
217
|
color = "neutral",
|
|
224
218
|
size = "md",
|
|
225
219
|
tree,
|
|
226
|
-
pathnameState = bau.state(window.location.pathname),
|
|
227
220
|
...otherProps
|
|
228
221
|
} = props;
|
|
229
|
-
//console.log("DrillDownMenu");
|
|
230
|
-
const onclickItem =
|
|
231
|
-
({ currentTree }) =>
|
|
232
|
-
(event) =>
|
|
233
|
-
replaceChildren(event, navEl, currentTree, true);
|
|
234
222
|
|
|
235
|
-
const
|
|
236
|
-
(
|
|
237
|
-
|
|
238
|
-
|
|
223
|
+
const pathnameState = bau.state(
|
|
224
|
+
window.location.pathname.replace(baseUrl, "")
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
const treeState = bau.derive(() =>
|
|
228
|
+
findInitialTree({
|
|
229
|
+
tree,
|
|
230
|
+
pathname: pathnameState.val,
|
|
231
|
+
})
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
window.document.addEventListener("click", (event) => {
|
|
235
|
+
const { target } = event;
|
|
236
|
+
const href = target.getAttribute("href");
|
|
237
|
+
if (target.tagName === "A" && href && !href.startsWith("http")) {
|
|
238
|
+
let path = href.replace(baseUrl, "");
|
|
239
|
+
if (!hashBased) {
|
|
240
|
+
path = path.replace(target.hash, "");
|
|
241
|
+
}
|
|
242
|
+
pathnameState.val = path;
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
let direction = 1;
|
|
247
|
+
|
|
248
|
+
const onclick = (event) => {
|
|
249
|
+
const { dataset } = event.target;
|
|
250
|
+
if (dataset.buttonback == "true") {
|
|
251
|
+
direction = -1;
|
|
252
|
+
} else if (dataset.ischild == "false") {
|
|
253
|
+
direction = 1;
|
|
254
|
+
} else if (dataset.ischild == "true") {
|
|
255
|
+
direction = 0;
|
|
256
|
+
}
|
|
257
|
+
};
|
|
239
258
|
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
259
|
+
const animationHide = (direction) => {
|
|
260
|
+
switch (direction) {
|
|
261
|
+
case 1:
|
|
262
|
+
return `${hideToLeft} ${animationDuration}`;
|
|
263
|
+
case -1:
|
|
264
|
+
return `${hideToRight} ${animationDuration}`;
|
|
265
|
+
default:
|
|
266
|
+
return "";
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
const animationShow = (direction) => {
|
|
271
|
+
switch (direction) {
|
|
272
|
+
case 1:
|
|
273
|
+
return `${hideToRight} ${animationDuration} reverse`;
|
|
274
|
+
case -1:
|
|
275
|
+
return `${hideToLeft} ${animationDuration} reverse`;
|
|
276
|
+
default:
|
|
277
|
+
return "";
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
return nav(
|
|
282
|
+
{
|
|
283
|
+
class: cn(className, options?.class, otherProps.class),
|
|
284
|
+
onclick,
|
|
285
|
+
},
|
|
286
|
+
Animate(
|
|
287
|
+
{
|
|
288
|
+
animationHide: () => animationHide(direction),
|
|
289
|
+
animationShow: () => animationShow(direction),
|
|
290
|
+
},
|
|
291
|
+
() =>
|
|
253
292
|
Menu({
|
|
254
293
|
variant,
|
|
255
294
|
color,
|
|
256
295
|
size,
|
|
257
|
-
currentTree,
|
|
258
|
-
onclickItem,
|
|
259
|
-
onclickBack,
|
|
296
|
+
currentTree: treeState.val,
|
|
260
297
|
pathnameState,
|
|
261
298
|
})
|
|
262
|
-
|
|
263
|
-
);
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
const navEl = nav(
|
|
267
|
-
{
|
|
268
|
-
class: cn(className, options?.class, otherProps.class),
|
|
269
|
-
},
|
|
270
|
-
() => {
|
|
271
|
-
return Menu({
|
|
272
|
-
variant,
|
|
273
|
-
color,
|
|
274
|
-
size,
|
|
275
|
-
currentTree: findInitialTree({
|
|
276
|
-
tree,
|
|
277
|
-
pathname: pathnameState.val,
|
|
278
|
-
}),
|
|
279
|
-
onclickItem,
|
|
280
|
-
onclickBack,
|
|
281
|
-
pathnameState,
|
|
282
|
-
});
|
|
283
|
-
}
|
|
299
|
+
)
|
|
284
300
|
);
|
|
285
|
-
|
|
286
|
-
return navEl;
|
|
287
301
|
};
|
|
288
302
|
}
|
package/drillDownMenu/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare module "@grucloud/bau-ui/drillDownMenu" {
|
|
|
20
20
|
renderMenuItem?: ComponentGeneric;
|
|
21
21
|
isActive?: (input: { subTree: object }) => boolean;
|
|
22
22
|
base?: string;
|
|
23
|
+
hashBased?: boolean;
|
|
23
24
|
} & ComponentOption;
|
|
24
25
|
|
|
25
26
|
export default function (context: Object, option: Option): Component;
|
package/fileInput/fileInput.js
CHANGED
|
@@ -7,10 +7,7 @@ export default function (context, options) {
|
|
|
7
7
|
|
|
8
8
|
const style = {
|
|
9
9
|
base: css`
|
|
10
|
-
display: inline-
|
|
11
|
-
> * {
|
|
12
|
-
margin: 1rem 0;
|
|
13
|
-
}
|
|
10
|
+
display: inline-flex;
|
|
14
11
|
& input {
|
|
15
12
|
width: 0.1px;
|
|
16
13
|
height: 0.1px;
|
|
@@ -26,13 +23,18 @@ export default function (context, options) {
|
|
|
26
23
|
text-overflow: ellipsis;
|
|
27
24
|
}
|
|
28
25
|
& label {
|
|
26
|
+
padding: 1rem;
|
|
29
27
|
border-radius: var(--global-radius);
|
|
30
|
-
display: flex;
|
|
28
|
+
display: inline-flex;
|
|
31
29
|
justify-content: center;
|
|
32
30
|
align-items: center;
|
|
33
31
|
cursor: pointer;
|
|
32
|
+
transition: all var(--transition-slow) ease-out;
|
|
33
|
+
&:hover.solid {
|
|
34
|
+
filter: brightness(var(--brightness-hover-always)) !important;
|
|
35
|
+
}
|
|
34
36
|
&:hover {
|
|
35
|
-
|
|
37
|
+
filter: brightness(var(--brightness-hover));
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
`,
|