stargazer-ui 1.0.8 → 1.0.10

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.
Files changed (160) hide show
  1. package/dist/{esm/types/BaseTypes.d.ts → BaseTypes.d.ts} +1 -1
  2. package/dist/Button/Button.js +2 -0
  3. package/dist/Button/Button.js.map +1 -0
  4. package/dist/{cjs/types/components/Button → Button}/Button.types.d.ts +1 -1
  5. package/dist/Button/index.d.ts +2 -0
  6. package/dist/Button/index.js +2 -0
  7. package/dist/Button/index.js.map +1 -0
  8. package/dist/Card/Card.js +2 -0
  9. package/dist/Card/Card.js.map +1 -0
  10. package/dist/{cjs/types/components/Card → Card}/Card.types.d.ts +1 -1
  11. package/dist/Card/index.d.ts +2 -0
  12. package/dist/CloseButton/CloseButton.js +2 -0
  13. package/dist/CloseButton/CloseButton.js.map +1 -0
  14. package/dist/{cjs/types/components/CloseButton → CloseButton}/CloseButton.types.d.ts +1 -1
  15. package/dist/CloseButton/index.d.ts +2 -0
  16. package/dist/Dropdown/Dropdown.js +2 -0
  17. package/dist/Dropdown/Dropdown.js.map +1 -0
  18. package/dist/{cjs/types/components/Dropdown → Dropdown}/Dropdown.types.d.ts +1 -1
  19. package/dist/Dropdown/index.d.ts +3 -0
  20. package/dist/FloatingLabel/FloatingLabel.js +2 -0
  21. package/dist/FloatingLabel/FloatingLabel.js.map +1 -0
  22. package/dist/{esm/types/components/FloatingLabel → FloatingLabel}/FloatingLabel.types.d.ts +1 -1
  23. package/dist/FloatingLabel/index.d.ts +2 -0
  24. package/dist/Form/Form.js +2 -0
  25. package/dist/Form/Form.js.map +1 -0
  26. package/dist/{cjs/types/components/Form → Form}/Form.types.d.ts +1 -1
  27. package/dist/Form/index.d.ts +3 -0
  28. package/dist/InputGroup/InputGroup.js +2 -0
  29. package/dist/InputGroup/InputGroup.js.map +1 -0
  30. package/dist/{esm/types/components/InputGroup → InputGroup}/InputGroup.types.d.ts +1 -1
  31. package/dist/InputGroup/index.d.ts +3 -0
  32. package/dist/Modal/Modal.js +2 -0
  33. package/dist/Modal/Modal.js.map +1 -0
  34. package/dist/{esm/types/components/Modal → Modal}/Modal.types.d.ts +1 -1
  35. package/dist/Modal/index.d.ts +2 -0
  36. package/dist/Nav/Nav.js +2 -0
  37. package/dist/Nav/Nav.js.map +1 -0
  38. package/dist/{esm/types/components/Nav → Nav}/Nav.types.d.ts +1 -1
  39. package/dist/Nav/index.d.ts +3 -0
  40. package/dist/{cjs/types/components/NavBar → NavBar}/Navbar.d.ts +1 -2
  41. package/dist/NavBar/Navbar.js +2 -0
  42. package/dist/NavBar/Navbar.js.map +1 -0
  43. package/dist/{esm/types/components/NavBar → NavBar}/Navbar.types.d.ts +2 -1
  44. package/dist/NavBar/index.d.ts +3 -0
  45. package/dist/{esm/types/components/NavDropdown → NavDropdown}/NavDropdown.d.ts +2 -2
  46. package/dist/NavDropdown/NavDropdown.js +2 -0
  47. package/dist/NavDropdown/NavDropdown.js.map +1 -0
  48. package/dist/NavDropdown/index.d.ts +2 -0
  49. package/dist/Popout/Popout.js +2 -0
  50. package/dist/Popout/Popout.js.map +1 -0
  51. package/dist/{cjs/types/components/Popout → Popout}/Popout.types.d.ts +1 -1
  52. package/dist/Popout/index.d.ts +2 -0
  53. package/dist/Spinner/Spinner.js +2 -0
  54. package/dist/Spinner/Spinner.js.map +1 -0
  55. package/dist/Spinner/index.d.ts +2 -0
  56. package/dist/Table/Table.js +2 -0
  57. package/dist/Table/Table.js.map +1 -0
  58. package/dist/{cjs/types/components/Table → Table}/Table.types.d.ts +1 -1
  59. package/dist/Table/index.d.ts +3 -0
  60. package/dist/Tabs/Tabs.js +2 -0
  61. package/dist/Tabs/Tabs.js.map +1 -0
  62. package/dist/{esm/types/components/Tabs → Tabs}/Tabs.types.d.ts +1 -1
  63. package/dist/Tabs/index.d.ts +2 -0
  64. package/dist/ToggleButton/ToggleButton.d.ts +4 -0
  65. package/dist/ToggleButton/ToggleButton.js +2 -0
  66. package/dist/ToggleButton/ToggleButton.js.map +1 -0
  67. package/dist/ToggleButton/ToggleButton.types.d.ts +7 -0
  68. package/dist/ToggleButton/index.d.ts +2 -0
  69. package/dist/index.d.ts +17 -470
  70. package/dist/index.js +2 -0
  71. package/dist/index.js.map +1 -0
  72. package/package.json +6 -5
  73. package/dist/cjs/index.js +0 -2
  74. package/dist/cjs/index.js.map +0 -1
  75. package/dist/cjs/types/BaseTypes.d.ts +0 -19
  76. package/dist/cjs/types/components/Button/index.d.ts +0 -1
  77. package/dist/cjs/types/components/Card/index.d.ts +0 -1
  78. package/dist/cjs/types/components/CloseButton/index.d.ts +0 -1
  79. package/dist/cjs/types/components/Dropdown/index.d.ts +0 -1
  80. package/dist/cjs/types/components/FloatingLabel/FloatingLabel.types.d.ts +0 -9
  81. package/dist/cjs/types/components/FloatingLabel/index.d.ts +0 -1
  82. package/dist/cjs/types/components/Form/index.d.ts +0 -1
  83. package/dist/cjs/types/components/InputGroup/InputGroup.types.d.ts +0 -10
  84. package/dist/cjs/types/components/InputGroup/index.d.ts +0 -1
  85. package/dist/cjs/types/components/Modal/Modal.types.d.ts +0 -40
  86. package/dist/cjs/types/components/Modal/index.d.ts +0 -1
  87. package/dist/cjs/types/components/Nav/Nav.types.d.ts +0 -17
  88. package/dist/cjs/types/components/Nav/index.d.ts +0 -1
  89. package/dist/cjs/types/components/NavBar/Navbar.types.d.ts +0 -18
  90. package/dist/cjs/types/components/NavBar/index.d.ts +0 -1
  91. package/dist/cjs/types/components/NavDropdown/NavDropdown.d.ts +0 -35
  92. package/dist/cjs/types/components/NavDropdown/index.d.ts +0 -1
  93. package/dist/cjs/types/components/Popout/index.d.ts +0 -1
  94. package/dist/cjs/types/components/Spinner/index.d.ts +0 -1
  95. package/dist/cjs/types/components/Table/index.d.ts +0 -1
  96. package/dist/cjs/types/components/Tabs/Tabs.types.d.ts +0 -35
  97. package/dist/cjs/types/components/Tabs/index.d.ts +0 -1
  98. package/dist/cjs/types/components/ToggleButton/ToggleButton.d.ts +0 -9
  99. package/dist/cjs/types/components/ToggleButton/index.d.ts +0 -1
  100. package/dist/cjs/types/components/index.d.ts +0 -16
  101. package/dist/cjs/types/index.d.ts +0 -1
  102. package/dist/esm/index.js +0 -2
  103. package/dist/esm/index.js.map +0 -1
  104. package/dist/esm/types/components/Button/Button.d.ts +0 -4
  105. package/dist/esm/types/components/Button/Button.types.d.ts +0 -7
  106. package/dist/esm/types/components/Button/index.d.ts +0 -1
  107. package/dist/esm/types/components/Card/Card.d.ts +0 -34
  108. package/dist/esm/types/components/Card/Card.types.d.ts +0 -24
  109. package/dist/esm/types/components/Card/index.d.ts +0 -1
  110. package/dist/esm/types/components/CloseButton/CloseButton.d.ts +0 -4
  111. package/dist/esm/types/components/CloseButton/CloseButton.types.d.ts +0 -5
  112. package/dist/esm/types/components/CloseButton/index.d.ts +0 -1
  113. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +0 -71
  114. package/dist/esm/types/components/Dropdown/Dropdown.types.d.ts +0 -55
  115. package/dist/esm/types/components/Dropdown/index.d.ts +0 -1
  116. package/dist/esm/types/components/FloatingLabel/FloatingLabel.d.ts +0 -4
  117. package/dist/esm/types/components/FloatingLabel/index.d.ts +0 -1
  118. package/dist/esm/types/components/Form/Form.d.ts +0 -17
  119. package/dist/esm/types/components/Form/Form.types.d.ts +0 -50
  120. package/dist/esm/types/components/Form/index.d.ts +0 -1
  121. package/dist/esm/types/components/InputGroup/InputGroup.d.ts +0 -6
  122. package/dist/esm/types/components/InputGroup/index.d.ts +0 -1
  123. package/dist/esm/types/components/Modal/Modal.d.ts +0 -40
  124. package/dist/esm/types/components/Modal/index.d.ts +0 -1
  125. package/dist/esm/types/components/Nav/Nav.d.ts +0 -30
  126. package/dist/esm/types/components/Nav/index.d.ts +0 -1
  127. package/dist/esm/types/components/NavBar/Navbar.d.ts +0 -20
  128. package/dist/esm/types/components/NavBar/index.d.ts +0 -1
  129. package/dist/esm/types/components/NavDropdown/NavDropdown.types.d.ts +0 -5
  130. package/dist/esm/types/components/NavDropdown/index.d.ts +0 -1
  131. package/dist/esm/types/components/Popout/Popout.d.ts +0 -22
  132. package/dist/esm/types/components/Popout/Popout.types.d.ts +0 -36
  133. package/dist/esm/types/components/Popout/index.d.ts +0 -1
  134. package/dist/esm/types/components/Spinner/Spinner.d.ts +0 -4
  135. package/dist/esm/types/components/Spinner/Spinner.types.d.ts +0 -7
  136. package/dist/esm/types/components/Spinner/index.d.ts +0 -1
  137. package/dist/esm/types/components/Table/Table.d.ts +0 -4
  138. package/dist/esm/types/components/Table/Table.types.d.ts +0 -7
  139. package/dist/esm/types/components/Table/index.d.ts +0 -1
  140. package/dist/esm/types/components/Tabs/Tabs.d.ts +0 -9
  141. package/dist/esm/types/components/Tabs/index.d.ts +0 -1
  142. package/dist/esm/types/components/ToggleButton/ToggleButton.d.ts +0 -9
  143. package/dist/esm/types/components/ToggleButton/index.d.ts +0 -1
  144. package/dist/esm/types/components/index.d.ts +0 -16
  145. package/dist/esm/types/index.d.ts +0 -1
  146. /package/dist/{cjs/types/components/Button → Button}/Button.d.ts +0 -0
  147. /package/dist/{cjs/types/components/Card → Card}/Card.d.ts +0 -0
  148. /package/dist/{cjs/types/components/CloseButton → CloseButton}/CloseButton.d.ts +0 -0
  149. /package/dist/{cjs/types/components/Dropdown → Dropdown}/Dropdown.d.ts +0 -0
  150. /package/dist/{cjs/types/components/FloatingLabel → FloatingLabel}/FloatingLabel.d.ts +0 -0
  151. /package/dist/{cjs/types/components/Form → Form}/Form.d.ts +0 -0
  152. /package/dist/{cjs/types/components/InputGroup → InputGroup}/InputGroup.d.ts +0 -0
  153. /package/dist/{cjs/types/components/Modal → Modal}/Modal.d.ts +0 -0
  154. /package/dist/{cjs/types/components/Nav → Nav}/Nav.d.ts +0 -0
  155. /package/dist/{cjs/types/components/NavDropdown → NavDropdown}/NavDropdown.types.d.ts +0 -0
  156. /package/dist/{cjs/types/components/Popout → Popout}/Popout.d.ts +0 -0
  157. /package/dist/{cjs/types/components/Spinner → Spinner}/Spinner.d.ts +0 -0
  158. /package/dist/{cjs/types/components/Spinner → Spinner}/Spinner.types.d.ts +0 -0
  159. /package/dist/{cjs/types/components/Table → Table}/Table.d.ts +0 -0
  160. /package/dist/{cjs/types/components/Tabs → Tabs}/Tabs.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -1,470 +1,17 @@
1
- /// <reference types="react" />
2
- import React$1, { ReactNode } from 'react';
3
-
4
- type BaseButtonType = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
5
- type BaseDialogType = React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>;
6
- type BaseDivType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
7
- type BaseFormType = React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
8
- type BaseHeadingType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
9
- type BaseInputType = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
10
- type BaseHrType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
11
- type BaseLabelType = React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
12
- type BaseNavType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
13
- type BaseParagraphType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
14
- type BaseSelectType = React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
15
- type BaseSmallType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
16
- type BaseTableType = React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
17
- type BaseUListType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
18
- type BaseElementType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
19
-
20
- type ButtonType = {
21
- children: ReactNode;
22
- variant?: string;
23
- className?: string;
24
- } & BaseButtonType;
25
-
26
- declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonType, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
27
-
28
- type CardType = {
29
- children: ReactNode;
30
- className?: string;
31
- } & BaseDivType;
32
- type CardBodyType = {
33
- children: ReactNode;
34
- className?: string;
35
- } & BaseDivType;
36
- type CardTextType = {
37
- children: ReactNode;
38
- className?: string;
39
- } & BaseParagraphType;
40
- type CardFooterType = {
41
- children: ReactNode;
42
- className?: string;
43
- } & BaseDivType;
44
-
45
- declare const _default$9: React$1.ForwardRefExoticComponent<Omit<CardType, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
46
- Header: React$1.ForwardRefExoticComponent<(Omit<{
47
- children: React$1.ReactNode;
48
- className?: string | undefined;
49
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
50
- } & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
51
- children: React$1.ReactNode;
52
- className?: string | undefined;
53
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
54
- } & React$1.ClassAttributes<HTMLHeadingElement> & React$1.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
55
- children: React$1.ReactNode;
56
- className?: string | undefined;
57
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
58
- } & React$1.ClassAttributes<HTMLSpanElement> & React$1.HTMLAttributes<HTMLSpanElement>, "ref">) & React$1.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
59
- Body: React$1.ForwardRefExoticComponent<Omit<CardBodyType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
60
- Title: React$1.ForwardRefExoticComponent<(Omit<{
61
- children: React$1.ReactNode;
62
- className?: string | undefined;
63
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
64
- } & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
65
- children: React$1.ReactNode;
66
- className?: string | undefined;
67
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
68
- } & React$1.ClassAttributes<HTMLHeadingElement> & React$1.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
69
- children: React$1.ReactNode;
70
- className?: string | undefined;
71
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
72
- } & React$1.ClassAttributes<HTMLSpanElement> & React$1.HTMLAttributes<HTMLSpanElement>, "ref">) & React$1.RefAttributes<HTMLHeadingElement>>;
73
- Text: React$1.ForwardRefExoticComponent<Omit<CardTextType, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
74
- Footer: React$1.ForwardRefExoticComponent<Omit<CardFooterType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
75
- };
76
-
77
- type CloseButtonType = {
78
- className?: string;
79
- variant?: boolean;
80
- } & BaseButtonType;
81
-
82
- declare const CloseButton: React$1.ForwardRefExoticComponent<Omit<CloseButtonType, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
83
-
84
- type DropdownType = {
85
- children: ReactNode;
86
- className?: string;
87
- onSelect?: Function;
88
- onToggle?: Function;
89
- controlId: string;
90
- drop?: string;
91
- align?: string;
92
- autoClose?: boolean;
93
- show?: boolean;
94
- } & BaseDivType;
95
- type DropdownMenuType = {
96
- children: ReactNode;
97
- className?: string;
98
- style?: React.CSSProperties | undefined;
99
- } & BaseUListType;
100
- type DropdownDividerType = {
101
- className?: string;
102
- } & BaseHrType;
103
-
104
- declare const _default$8: React$1.ForwardRefExoticComponent<Omit<DropdownType, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
105
- Toggle: React$1.ForwardRefExoticComponent<(Omit<{
106
- children: React$1.ReactNode;
107
- className?: string | undefined;
108
- navDropdown?: boolean | undefined;
109
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
110
- variant?: string | undefined;
111
- } & React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
112
- children: React$1.ReactNode;
113
- className?: string | undefined;
114
- navDropdown?: boolean | undefined;
115
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
116
- variant?: string | undefined;
117
- } & React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> | Omit<{
118
- children: React$1.ReactNode;
119
- className?: string | undefined;
120
- navDropdown?: boolean | undefined;
121
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
122
- variant?: string | undefined;
123
- } & React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement>, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
124
- Menu: React$1.ForwardRefExoticComponent<Omit<DropdownMenuType, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
125
- Item: React$1.ForwardRefExoticComponent<(Omit<{
126
- children: React$1.ReactNode;
127
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
128
- className?: string | undefined;
129
- } & React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
130
- children: React$1.ReactNode;
131
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
132
- className?: string | undefined;
133
- } & React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
134
- Divider: React$1.ForwardRefExoticComponent<Omit<DropdownDividerType, "ref"> & React$1.RefAttributes<HTMLHRElement>>;
135
- };
136
-
137
- type FloatingLabelType = {
138
- children: ReactNode;
139
- className?: string;
140
- htmlFor?: string;
141
- label: string;
142
- controlId: string;
143
- } & BaseLabelType;
144
-
145
- declare const FloatingLabel: React$1.ForwardRefExoticComponent<Omit<FloatingLabelType, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
146
-
147
- type FormType = {
148
- children: ReactNode;
149
- } & BaseFormType;
150
- type FormControlType = {
151
- as?: React.ElementType;
152
- className?: string;
153
- plaintext?: boolean;
154
- id?: string;
155
- type?: string;
156
- autoFocus?: boolean;
157
- } & BaseInputType;
158
- type FormSelectType = {
159
- children: ReactNode;
160
- className?: string;
161
- id?: string;
162
- } & BaseSelectType;
163
- type FormGroupType = {
164
- children: ReactNode;
165
- className?: string;
166
- controlId: string;
167
- } & BaseDivType;
168
- type FormLabelType = {
169
- children: ReactNode;
170
- className?: string;
171
- htmlFor?: string;
172
- } & BaseLabelType;
173
- type FormCheckType = {
174
- classNameContainer?: string;
175
- containerRef?: React.LegacyRef<HTMLDivElement>;
176
- containerId?: string;
177
- style?: React.CSSProperties;
178
- classNameLabel?: string;
179
- labelRef?: React.LegacyRef<HTMLLabelElement>;
180
- label?: string;
181
- labelId?: string;
182
- className?: string;
183
- type?: string;
184
- controlId?: string;
185
- reverse?: boolean;
186
- checkStyle?: React.CSSProperties;
187
- } & BaseInputType;
188
- type FormTextType = {
189
- children: ReactNode;
190
- className?: string;
191
- } & BaseSmallType;
192
-
193
- declare const _default$7: React$1.ForwardRefExoticComponent<Omit<FormType, "ref"> & React$1.RefAttributes<HTMLFormElement>> & {
194
- Control: React$1.ForwardRefExoticComponent<Omit<FormControlType, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
195
- Select: React$1.ForwardRefExoticComponent<Omit<FormSelectType, "ref"> & React$1.RefAttributes<HTMLSelectElement>>;
196
- Group: React$1.ForwardRefExoticComponent<Omit<FormGroupType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
197
- Label: React$1.ForwardRefExoticComponent<Omit<FormLabelType, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
198
- Check: React$1.ForwardRefExoticComponent<Omit<FormCheckType, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
199
- Text: React$1.ForwardRefExoticComponent<Omit<FormTextType, "ref"> & React$1.RefAttributes<HTMLElement>>;
200
- };
201
-
202
- type InputGroupType = {
203
- children: ReactNode;
204
- className?: string;
205
- } & BaseDivType;
206
- type InputGroupText = {
207
- children: ReactNode;
208
- className?: string;
209
- };
210
-
211
- declare const _default$6: React$1.ForwardRefExoticComponent<Omit<InputGroupType, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
212
- Text: React$1.ForwardRefExoticComponent<InputGroupText & React$1.RefAttributes<HTMLSpanElement>>;
213
- };
214
-
215
- type ModalType = {
216
- children: ReactNode;
217
- className?: string;
218
- id?: string;
219
- centered?: boolean;
220
- size?: string;
221
- show: boolean;
222
- backdrop?: string;
223
- onHide: Function;
224
- } & BaseDialogType;
225
- type ModalBodyType = {
226
- children: ReactNode;
227
- className?: string;
228
- } & BaseDivType;
229
-
230
- declare const _default$5: (({ children, centered, size, show, backdrop, onHide, className, id, ...restProps }: ModalType) => React$1.ReactPortal) & {
231
- Header: React$1.ForwardRefExoticComponent<(Omit<{
232
- children: React$1.ReactNode;
233
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
234
- className?: string | undefined;
235
- closeButton?: boolean | undefined;
236
- onClick?: ((event: React$1.MouseEvent<Element, MouseEvent>) => void) | undefined;
237
- } & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
238
- children: React$1.ReactNode;
239
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
240
- className?: string | undefined;
241
- closeButton?: boolean | undefined;
242
- onClick?: ((event: React$1.MouseEvent<Element, MouseEvent>) => void) | undefined;
243
- } & React$1.ClassAttributes<HTMLHeadingElement> & React$1.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
244
- children: React$1.ReactNode;
245
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
246
- className?: string | undefined;
247
- closeButton?: boolean | undefined;
248
- onClick?: ((event: React$1.MouseEvent<Element, MouseEvent>) => void) | undefined;
249
- } & React$1.ClassAttributes<HTMLSpanElement> & React$1.HTMLAttributes<HTMLSpanElement>, "ref">) & React$1.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
250
- Title: React$1.ForwardRefExoticComponent<(Omit<{
251
- children: React$1.ReactNode;
252
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
253
- className?: string | undefined;
254
- } & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
255
- children: React$1.ReactNode;
256
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
257
- className?: string | undefined;
258
- } & React$1.ClassAttributes<HTMLHeadingElement> & React$1.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
259
- children: React$1.ReactNode;
260
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
261
- className?: string | undefined;
262
- } & React$1.ClassAttributes<HTMLSpanElement> & React$1.HTMLAttributes<HTMLSpanElement>, "ref">) & React$1.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
263
- Body: React$1.ForwardRefExoticComponent<Omit<ModalBodyType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
264
- Footer: React$1.ForwardRefExoticComponent<Omit<ModalBodyType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
265
- };
266
-
267
- declare const _default$4: React$1.ForwardRefExoticComponent<(Omit<{
268
- children: React$1.ReactNode;
269
- className?: string | undefined;
270
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
271
- } & React$1.ClassAttributes<HTMLUListElement> & React$1.HTMLAttributes<HTMLUListElement>, "ref"> | Omit<{
272
- children: React$1.ReactNode;
273
- className?: string | undefined;
274
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
275
- } & React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement>, "ref">) & React$1.RefAttributes<HTMLElement>> & {
276
- Item: React$1.ForwardRefExoticComponent<(Omit<{
277
- children: React$1.ReactNode;
278
- className?: string | undefined;
279
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
280
- } & React$1.ClassAttributes<HTMLLIElement> & React$1.LiHTMLAttributes<HTMLLIElement>, "ref"> | Omit<{
281
- children: React$1.ReactNode;
282
- className?: string | undefined;
283
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
284
- } & React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement>, "ref">) & React$1.RefAttributes<HTMLElement>>;
285
- Link: React$1.ForwardRefExoticComponent<(Omit<{
286
- children: React$1.ReactNode;
287
- className?: string | undefined;
288
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
289
- } & React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
290
- children: React$1.ReactNode;
291
- className?: string | undefined;
292
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
293
- } & React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement>, "ref">) & React$1.RefAttributes<HTMLElement>>;
294
- };
295
-
296
- type NavbarType = {
297
- children: ReactNode;
298
- className?: string;
299
- navbarPrefix?: string;
300
- } & BaseNavType;
301
- type NavbarTextType = {
302
- children: ReactNode;
303
- className?: string;
304
- as?: React.ElementType;
305
- } & BaseElementType;
306
-
307
- declare const _default$3: React$1.ForwardRefExoticComponent<Omit<NavbarType, "ref"> & React$1.RefAttributes<HTMLElement>> & {
308
- Brand: React$1.ForwardRefExoticComponent<(Omit<{
309
- children: React$1.ReactNode;
310
- className?: string | undefined;
311
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
312
- href?: string | undefined;
313
- } & React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
314
- children: React$1.ReactNode;
315
- className?: string | undefined;
316
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
317
- href?: string | undefined;
318
- } & React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement>, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLElement>>;
319
- Text: React$1.ForwardRefExoticComponent<Omit<NavbarTextType, "ref"> & React$1.RefAttributes<HTMLElement>>;
320
- };
321
-
322
- type NavDropdownType = {
323
- toggleProps?: any;
324
- menuProps?: any;
325
- } & DropdownType;
326
-
327
- declare const _default$2: React$1.ForwardRefExoticComponent<Omit<NavDropdownType, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
328
- Toggle: React$1.ForwardRefExoticComponent<(Omit<{
329
- children: React$1.ReactNode;
330
- className?: string | undefined;
331
- navDropdown?: boolean | undefined;
332
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
333
- variant?: string | undefined;
334
- } & React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
335
- children: React$1.ReactNode;
336
- className?: string | undefined;
337
- navDropdown?: boolean | undefined;
338
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
339
- variant?: string | undefined;
340
- } & React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> | Omit<{
341
- children: React$1.ReactNode;
342
- className?: string | undefined;
343
- navDropdown?: boolean | undefined;
344
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
345
- variant?: string | undefined;
346
- } & React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement>, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
347
- Menu: React$1.ForwardRefExoticComponent<Omit<DropdownMenuType, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
348
- Item: React$1.ForwardRefExoticComponent<(Omit<{
349
- children: React$1.ReactNode;
350
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
351
- className?: string | undefined;
352
- } & React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
353
- children: React$1.ReactNode;
354
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
355
- className?: string | undefined;
356
- } & React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
357
- Divider: React$1.ForwardRefExoticComponent<Omit<DropdownDividerType, "ref"> & React$1.RefAttributes<HTMLHRElement>>;
358
- };
359
-
360
- type PopoutType = {
361
- children: ReactNode;
362
- initialPosition?: {
363
- top?: number;
364
- bottom?: number;
365
- right?: number;
366
- left?: number;
367
- };
368
- id?: string;
369
- resize?: boolean;
370
- move?: boolean;
371
- } & BaseDialogType;
372
- type PopoutTitleType = {
373
- children: ReactNode;
374
- className?: string;
375
- as?: React.ElementType;
376
- } & BaseHeadingType;
377
- type PopoutBodyType = {
378
- children: ReactNode;
379
- className?: string;
380
- } & BaseDivType;
381
- type PopoutTextType = {
382
- children: ReactNode;
383
- className?: string;
384
- } & BaseParagraphType;
385
- type PopoutFooterType = {
386
- children: ReactNode;
387
- className?: string;
388
- } & BaseDivType;
389
-
390
- declare const _default$1: React$1.ForwardRefExoticComponent<Omit<PopoutType, "ref"> & React$1.RefAttributes<HTMLDialogElement>> & {
391
- Header: React$1.ForwardRefExoticComponent<(Omit<{
392
- children: React$1.ReactNode;
393
- className?: string | undefined;
394
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
395
- } & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
396
- children: React$1.ReactNode;
397
- className?: string | undefined;
398
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
399
- } & React$1.ClassAttributes<HTMLHeadingElement> & React$1.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
400
- children: React$1.ReactNode;
401
- className?: string | undefined;
402
- as?: React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements> | undefined;
403
- } & React$1.ClassAttributes<HTMLSpanElement> & React$1.HTMLAttributes<HTMLSpanElement>, "ref">) & React$1.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
404
- Title: React$1.ForwardRefExoticComponent<Omit<PopoutTitleType, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
405
- Body: React$1.ForwardRefExoticComponent<Omit<PopoutBodyType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
406
- Text: React$1.ForwardRefExoticComponent<Omit<PopoutTextType, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
407
- Footer: React$1.ForwardRefExoticComponent<Omit<PopoutFooterType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
408
- };
409
-
410
- type SpinnerType = {
411
- label: string;
412
- size?: string;
413
- color?: string;
414
- className?: string;
415
- controlId?: string;
416
- };
417
-
418
- declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerType & React$1.RefAttributes<HTMLDivElement>>;
419
-
420
- type TableType = {
421
- children: ReactNode;
422
- size?: string;
423
- className?: string;
424
- } & BaseTableType;
425
-
426
- declare const Table: React$1.ForwardRefExoticComponent<Omit<TableType, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
427
-
428
- type TabsType = {
429
- children: React.ReactNode;
430
- className?: string;
431
- controlId: string;
432
- activeClassName?: string;
433
- defaultActive: string;
434
- } & BaseDivType;
435
- type TabsControlsType = {
436
- children: React.ReactNode;
437
- className?: string;
438
- } & BaseDivType;
439
- type TabsButtonType = {
440
- children: React.ReactNode;
441
- className?: string;
442
- onClick?: Function;
443
- tabId: string;
444
- id?: string;
445
- } & BaseButtonType;
446
- type TabsContentType = {
447
- children: React.ReactNode;
448
- className?: string;
449
- } & BaseDivType;
450
- type TabsPageType = {
451
- children: React.ReactNode;
452
- className?: string;
453
- tabId: string;
454
- } & BaseDivType;
455
-
456
- declare const _default: React$1.ForwardRefExoticComponent<Omit<TabsType, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
457
- Controls: React$1.ForwardRefExoticComponent<Omit<TabsControlsType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
458
- Button: React$1.ForwardRefExoticComponent<Omit<TabsButtonType, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
459
- Content: React$1.ForwardRefExoticComponent<Omit<TabsContentType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
460
- Page: React$1.ForwardRefExoticComponent<Omit<TabsPageType, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
461
- };
462
-
463
- type ToggleButtonType = {
464
- children: ReactNode;
465
- toggled?: boolean;
466
- onClick?: <T>(event: T) => T;
467
- } & BaseButtonType;
468
- declare const ToggleButton: React$1.ForwardRefExoticComponent<Omit<ToggleButtonType, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
469
-
470
- export { Button, _default$9 as Card, CloseButton, _default$8 as Dropdown, FloatingLabel, _default$7 as Form, _default$6 as InputGroup, _default$5 as Modal, _default$4 as Nav, _default$3 as NavBar, _default$2 as NavDropdown, _default$1 as Popout, Spinner, Table, _default as Tabs, ToggleButton };
1
+ export * from "./Button";
2
+ export * from "./Card";
3
+ export * from "./CloseButton";
4
+ export * from "./Dropdown";
5
+ export * from "./FloatingLabel";
6
+ export * from "./Form";
7
+ export * from "./InputGroup";
8
+ export * from "./Modal";
9
+ export * from "./Nav";
10
+ export * from "./NavBar";
11
+ export * from "./NavDropdown";
12
+ export * from "./Popout";
13
+ export * from "./Spinner";
14
+ export * from "./Table";
15
+ export * from "./Tabs";
16
+ export * from "./ToggleButton";
17
+ export * from "./BaseTypes";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export{default as Button}from"./Button/Button.js";import"./Card/Card.js";export{default as CloseButton}from"./CloseButton/CloseButton.js";export{default as Dropdown,DropdownContext,DropdownContextProvider,useDropdownContext}from"./Dropdown/Dropdown.js";export{default as FloatingLabel}from"./FloatingLabel/FloatingLabel.js";export{default as Form,FormContextProvider,useFormContext}from"./Form/Form.js";export{default as InputGroup}from"./InputGroup/InputGroup.js";export{default as Modal}from"./Modal/Modal.js";export{default as Nav}from"./Nav/Nav.js";export{default as Navbar,useNavbarContext}from"./NavBar/Navbar.js";export{default as NavDropdown}from"./NavDropdown/NavDropdown.js";export{default as Popout}from"./Popout/Popout.js";export{default as Spinner}from"./Spinner/Spinner.js";export{default as Table}from"./Table/Table.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as ToggleButton}from"./ToggleButton/ToggleButton.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "stargazer-ui",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "React component library made by Stargazer Works",
5
5
  "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
6
+ "typings": "dist/index.d.ts",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
9
  "dist",
10
10
  "package.json",
11
- "README.md",
12
- "ChangeLogs.md"
11
+ "README.md",
12
+ "ChangeLogs.md"
13
13
  ],
14
14
  "scripts": {
15
15
  "test": "\"echo \\\"Error: no test specified\\\" && exit 1\"",
16
16
  "dev": "vite --config vite.config.js --port 5000",
17
- "build": "tsc && vite build --config vite.config.js",
17
+ "build": "tsc --p ./tsconfig-build.json && vite build --config vite.config.js",
18
18
  "rollup": "rimraf dist && rollup -c"
19
19
  },
20
20
  "type": "module",
@@ -70,6 +70,7 @@
70
70
  "vite-plugin-dts": "^3.7.3"
71
71
  },
72
72
  "dependencies": {
73
+ "rollup-plugin-generate-package-json": "^3.2.0",
73
74
  "sass": "^1.71.1",
74
75
  "tslib": "^2.6.2"
75
76
  }
package/dist/cjs/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react"),t=require("react-dom"),n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;var a=e.forwardRef((function(t,a){var o=t.children,c=t.variant,s=void 0===c?"primary":c,l=t.className,i=r(t,["children","variant","className"]);return e.createElement("button",n({ref:a,type:"button",className:"sg-button sg-button-".concat(s).concat(null==l?"":" "+l)},i),o)})),o=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-card "+c},s),o)})),c=e.forwardRef((function(t,a){var o=t.as,c=void 0===o?"div":o,s=t.className,l=t.children,i=r(t,["as","className","children"]),d=["div","span","h1","h2","h3","h4","h5","h6"].find((function(e){return e===c}))?c:"div";return e.createElement(d,n({ref:a,className:"sg-card-header ".concat(s)},i),l)})),s=e.forwardRef((function(t,a){var o=t.as,c=void 0===o?"h5":o,s=t.className,l=t.children,i=r(t,["as","className","children"]),d=["h1","h2","h3","h4","h5","h6"].find((function(e){return e===c}))?c:"h5";return e.createElement(d,n({ref:a,className:s},i),l)})),l=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-card-body ".concat(c)},s),o)})),i=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("p",n({ref:a,className:"sg-card-text ".concat(c)},s),o)})),d=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-card-footer ".concat(c)},s),o)})),u=Object.assign(o,{Header:c,Body:l,Title:s,Text:i,Footer:d}),f=e.forwardRef((function(t,a){var o=t.className,c=t.variant,s=void 0!==c&&c,l=r(t,["className","variant"]);return e.createElement("button",n({ref:a,className:"sg-button-close".concat(s?" sg-button-close-white":""," ").concat(o)},l),e.createElement("span",{className:"sg-close-visually-hidden-label"},"Close"))})),m=function(e,t){void 0===t&&(t="");for(var n=e.target,r=!0,a=!1;r;)n.id!=t+"-menu"?n=n.parentElement:(a=!0,r=!1),"root"===n.id&&(r=!1,a=!1);return a},v=e.createContext(null),h=function(t){var n=t.children,r=t.value;return e.createElement(v.Provider,{value:r},n)},p=function(){var t=e.useContext(v);if(!t)throw new Error("useDropdownContext has to be used within DropdownContextProvider!");return t},g=e.forwardRef((function(t,a){var o=t.children,c=t.className;t.onSelect;var s=t.onToggle,l=t.controlId,i=t.drop,d=void 0===i?"down":i,u=t.align,f=void 0===u?"start":u;t.autoClose;var m=t.show,v=void 0===m?"default":m,p=r(t,["children","className","onSelect","onToggle","controlId","drop","align","autoClose","show"]),g=e.useState("default"!==v&&v),b=g[0],w=g[1],N=e.useState({case:""}),E=N[0],y=N[1],x=function(e){e.stopPropagation(),w((function(e){return!e}))},R=function(e,t,n){void 0===n&&(n=!1);var r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}("end"===f,d),C=e.useMemo((function(){return{align:f,drop:d,showInternal:"default"!=v&&s?v:b,handleToggle:"default"!=v&&s?s:x,placement:R,directionClasses:{down:"dropdown","down-centered":"dropdown-center",up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"},controlId:l,activeDescendant:E,setActiveDescendant:y}}),[f,d,v,b,s,R,l,E,y]);return e.createElement("div",n({id:l+"-wrapper",ref:a,className:"sg-dropdown".concat(c?" "+c:"")},p),e.createElement(h,{value:C},o))})),b=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.navDropdown,l=void 0!==s&&s,i=t.as,d=void 0===i?"button":i,u=t.variant,f=void 0===u?"primary":u,v=r(t,["children","className","navDropdown","as","variant"]),h=p(),g=h.controlId,b=h.handleToggle,w=h.setActiveDescendant,N=h.showInternal,E=d,y=function(e){var t=!1;switch(console.log(e.key),e.key){case"ArrowDown":t=!0,N?w((function(e){return n(n({},e),{case:"next"})})):(b(e),w((function(e){return n(n({},e),{case:"first"})})));break;case"ArrowUp":t=!0,N?w((function(e){return n(n({},e),{case:"previous"})})):(b(e),w((function(e){return n(n({},e),{case:"last"})})));break;case"Home":t=!0,N&&w((function(e){return n(n({},e),{case:"first"})}));break;case"End":t=!0,N&&w((function(e){return n(n({},e),{case:"last"})}));break;case"Tab":N&&b(e);break;case"Escape":t=!0,N&&b(e);break;case"Enter":case" ":if(N){t=!0,document.querySelector(".sg-dropdown-item-visual-focus").click(),b(e);break}w((function(e){return n(n({},e),{case:"first"})}))}t&&(e.stopPropagation(),e.preventDefault())},x=function(e){if(N&&e.target.id!==g)if(m(e,g)){if(m(e,g)){b(e);var t=document.getElementById(g);null==t||t.focus()}}else b(e)};e.useEffect((function(){var e=document.getElementById(g);return e.addEventListener("keydown",y,!0),document.addEventListener("mouseup",x,!0),function(){e.removeEventListener("keydown",y,!0),document.removeEventListener("mouseup",x,!0)}}),[y,g]);var R="sg-button sg-button".concat(f?"-"+f:"-primary"," sg-dropdown-toggle").concat(c?" "+c:"");return("a"===E||l)&&(R="sg-nav-dropdown-toggle sg-dropdown-toggle".concat(c?" "+c:"")),e.createElement(E,n({tabIndex:"0",type:"button","aria-haspopup":"true","aria-controls":g+"-menu","aria-expanded":N,id:g,ref:a,className:R,onClick:function(e){return function(e){b(e),N||w((function(e){return n(n({},e),{case:"first"})}))}(e)}},v),o)})),w=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.style,l=void 0===s?{}:s,i=r(t,["children","className","style"]),d=p(),u=d.controlId,f=d.showInternal,m=d.activeDescendant,v=e.useState(l),h=v[0],g=v[1];e.useLayoutEffect((function(){if(f){var e=document.getElementById(u+"-menu"),t={};e.getBoundingClientRect().right>window.innerWidth?t=n(n({},t),{right:0}):e.getBoundingClientRect().left<0?t=n(n({},t),{left:0}):e.getBoundingClientRect().top<0?t=n(n({},t),{top:0}):e.getBoundingClientRect().bottom>window.innerHeight&&(t=n(n({},t),{bottom:0})),g((function(e){return n(n({},e),t)}))}}),[f]),e.useEffect((function(){if(f){var e=document.getElementById(u+"-menu"),t=document.getElementById(u+"-menu").children,n=t.length-1,r=document.querySelector(".sg-dropdown-item-visual-focus"),a=0,o=t[0].children[0];if(null!=r){r.classList.remove("sg-dropdown-item-visual-focus");for(var c=0;c<t.length;c++)if(t[c]===r.parentElement){a=c;break}}switch(m.case){case"first":o=t[0].children[0],a=0;break;case"last":o=t[n].children[0],a=n;break;case"next":o=t[a=a===n?0:a+1].children[0];break;case"previous":o=t[a=0===a?n:a-1].children[0]}e.setAttribute("aria-activedescendant",o.id),t[a].children[0].classList.add("sg-dropdown-item-visual-focus")}else{(e=document.getElementById(u+"-menu")).setAttribute("aria-activedescendant","")}}),[u,f,m]);var b=function(e){var t,n=e.target,r=n.classList.contains("sg-dropdown-item-visual-focus"),a=document.getElementById(u+"-menu");r||(null===(t=document.querySelector(".sg-dropdown-item-visual-focus"))||void 0===t||t.classList.remove("sg-dropdown-item-visual-focus"),a.setAttribute("aria-activedescendant",""),n.classList.add("sg-dropdown-item-visual-focus"),a.setAttribute("aria-activedescendant",n.id))};return e.useEffect((function(){for(var e=document.getElementById(u+"-menu"),t=0;t<e.children.length;t++)e.children[t].addEventListener("mouseover",b,!0);return function(){for(var t=0;t<e.children.length;t++)e.children[t].addEventListener("mouseover",b,!0)}}),[]),e.createElement("ul",n({id:u+"-menu",role:"menu",tabIndex:-1,"aria-labelledby":u,ref:a,className:"sg-dropdown-list".concat(c?" "+c:"").concat(f?" show":""),style:h},i),o)})),N=e.forwardRef((function(t,a){var o=t.children,c=t.as,s=void 0===c?"button":c,l=t.className,i=r(t,["children","as","className"]),d=s;return e.createElement("li",{role:"none"},e.createElement(d,n({ref:a,role:"menuitem",tabIndex:"-1",className:"sg-dropdown-item".concat(l?" "+l:"")},i),o))})),E=e.forwardRef((function(t,a){var o=t.className,c=void 0===o?"":o,s=r(t,["className"]);return e.createElement("hr",n({ref:a,className:".sg-dropdown-divider".concat(c)},s))})),y=Object.assign(g,{Toggle:b,Menu:w,Item:N,Divider:E}),x=e.createContext(null),R=function(t){var n=t.children,r=t.value;return e.createElement(x.Provider,{value:r},n)},C=function(){var t=e.useContext(x);if(!t)throw new Error("useFormContext has to be used within a FormContextProvider!");return t},I=e.forwardRef((function(t,a){var o=t.children,c=r(t,["children"]);return e.createElement("form",n({ref:a},c),o)})),k=e.forwardRef((function(t,a){var o=t.as,c=void 0===o?"input":o,s=t.className,l=void 0===s?"":s,i=t.plaintext,d=void 0!==i&&i,u=t.id,f=void 0===u?"":u,m=t.type,v=void 0===m?"text":m,h=t.autoFocus,p=void 0!==h&&h,g=r(t,["as","className","plaintext","id","type","autoFocus"]),b=c,w=C().controlId||f,N=(d?"sg-form-control-plaintext":"sg-form-control")+(""!=l?" "+l:"")+("color"==v?" sg-form-control-color":"");return e.createElement(b,n({autoFocus:p,ref:a,id:w,type:v,className:N},g))})),T=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.id,l=r(t,["children","className","id"]),i=C().controlId,d=i||s;return e.createElement("select",n({ref:a,className:"sg-form-select".concat(c?" "+c:""),id:d},l),o)})),S=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.controlId,l=r(t,["children","className","controlId"]),i=e.useMemo((function(){return{controlId:s}}),[s]);return e.createElement("div",n({ref:a,className:"sg-from-group".concat(c?" "+c:"")},l),e.createElement(R,{value:i},o))})),P=e.forwardRef((function(t,n){var r=t.children,a=t.className,o=t.htmlFor,c=C().controlId,s=o||c;return e.createElement("label",{ref:n,htmlFor:s,className:"sg-form-label".concat(a?" "+a:"")},r)})),L=e.forwardRef((function(t,a){var o=t.classNameContainer,c=t.containerRef,s=t.containerId,l=t.style,i=t.classNameLabel,d=t.labelRef,u=t.label,f=t.labelId,m=t.className,v=t.type,h=t.id,p=t.controlId,g=t.reverse,b=void 0!==g&&g,w=t.checkStyle,N=r(t,["classNameContainer","containerRef","containerId","style","classNameLabel","labelRef","label","labelId","className","type","id","controlId","reverse","checkStyle"]),E=p||h,y="switch"===v?"checkbox":v;return e.createElement("div",{ref:c,id:s,style:l,className:"sg-form-check".concat(b?"-reverse":"").concat(o?" "+o:"").concat("switch"===v?" sg-form-switch":"")},b?e.createElement(e.Fragment,null,e.createElement("input",n({ref:a,type:y,id:E,className:"sg-form-check-input".concat(m?" "+m:"")},N)),e.createElement("label",{ref:d,id:f,htmlFor:E,className:"sg-form-check-label".concat(i?" "+i:"")},u)):e.createElement(e.Fragment,null,e.createElement("label",{ref:d,id:f,htmlFor:E,className:"sg-form-check-label".concat(i?" "+i:"")},u),e.createElement("input",n({ref:a,type:y,id:E,className:"sg-form-check-input".concat(m?" "+m:""),style:w},N))))})),B=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("small",n({ref:a,className:"sg-form-text".concat(c?" "+c:"")},s),o)})),D=Object.assign(I,{Control:k,Select:T,Group:S,Label:P,Check:L,Text:B}),O=e.forwardRef((function(t,a){var o=t.children,c=t.label,s=t.controlId;t.className,t.htmlFor;var l=r(t,["children","label","controlId","className","htmlFor"]),i=e.useMemo((function(){return{controlId:s}}),[s]);return e.createElement(R,{value:i},e.createElement("div",{className:"sg-form-floating"},o,e.createElement("label",n({ref:a,htmlFor:s,className:"sg-form-floating-label"},l),c)))})),F=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-input-group".concat(c?" "+c:"")},s),o)})),A=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("span",n({ref:a,className:"sg-input-group-text".concat(c?" "+c:"")},s),o)})),H=Object.assign(F,{Text:A}),M=e.createContext(null),j=function(t){var n=t.children,r=t.value;return e.createElement(M.Provider,{value:r},n)},z=e.forwardRef((function(t,a){var o=t.children,c=t.as,s=void 0===c?"":c,l=t.className,i=void 0===l?"":l,d=t.closeButton,u=void 0!==d&&d,m=t.onClick,v=r(t,["children","as","className","closeButton","onClick"]),h=["div","span","h1","h2","h3","h4","h5","h6"].find((function(e){return e===s}))?s:"div",p=function(){var t=e.useContext(M);if(!t)throw new Error("useModalContext has to be used within ModalContextProvider!");return t}();return e.createElement(h,n({ref:a,className:"sg-modal-header ".concat(i)},v),o,u?e.createElement(f,{variant:!0,onClick:function(e){return function(e){m&&m(e),p()}(e)}}):null)})),q=e.forwardRef((function(t,a){var o=t.children,c=t.as,s=void 0===c?"h4":c,l=t.className,i=r(t,["children","as","className"]),d=["div","span","h1","h2","h3","h4","h5","h6"].find((function(e){return e===s}))?s:"h4";return e.createElement(d,n({ref:a,className:"sg-modal-title ".concat(l)},i),o)})),W=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-modal-body ".concat(c)},s),o)})),X=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-modal-footer ".concat(c)},s),o)})),Y=Object.assign((function(a){var o=a.children;a.centered;var c=a.size,s=void 0===c?"md":c,l=a.show,i=a.backdrop,d=void 0===i?"static":i,u=a.onHide,f=a.className;a.id;var m=r(a,["children","centered","size","show","backdrop","onHide","className","id"]),v=e.useState(l),h=v[0],p=v[1];e.useEffect((function(){p(l)}),[l]);var g=e.useRef(null);K(g);var b="boolean"==typeof l&&"function"==typeof u?void 0:{show:"boolean"==typeof l,onHide:"function"==typeof u};b&&console.error(b.show?null:"The variable 'show' must be used and must be a boolean used to decide when to show the modal!",b.onHide?null:"The variable 'onHide' must be used and must be a function which is used to set 'show' as the modal gets closed!");var w=function(){u&&u(),p(!1)};e.useEffect((function(){var e=g.current;e&&(h?(e.classList.remove("close"),e.showModal()):e.close())}),[h]);var N="sg-modal-tag sg-modal-".concat(s);f&&(N+=" "+f),"static"!==d&&"true"!==d||(N+=" sg-modal-static");return t.createPortal(e.createElement("dialog",n({ref:g,className:N,onKeyDown:function(e){return function(e){if("Escape"==e.key){e.preventDefault();var t=g.current;t.classList.add("close"),t.addEventListener("animationend",(function(){w()}),{once:!0})}}(e)}},m),e.createElement(j,{value:u},b?e.createElement(G,{typeCheck:b,closeModal:w}):o)),document.body)}),{Header:z,Title:q,Body:W,Footer:X}),K=function(t){e.useEffect((function(){var e=function(e){var n='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',r=t.current;if(r){var a=r.querySelectorAll(n)[0],o=r.querySelectorAll(n),c=o[o.length-1];if(!("Tab"===e.key))return;e.shiftKey?document.activeElement===a&&(c.focus(),e.preventDefault()):document.activeElement===c&&(a.focus(),e.preventDefault())}};return document.addEventListener("keydown",e,!0),function(){document.removeEventListener("keydown",e,!0)}}),[t])},G=function(t){var n=t.typeCheck,r=t.closeModal;return e.createElement(e.Fragment,null,e.createElement(z,{closeButton:!0},e.createElement(q,null,"An Error ocurred!")),e.createElement(W,null,e.createElement("p",null,n.show?null:"The variable 'show' must be used and must be a boolean used to decide when to show the modal!",n.onHide?null:"The variable 'onHide' must be used and must be a function which is used to set 'show' as the modal gets closed!")),e.createElement(X,null,e.createElement(a,{variant:"danger",type:"button",onClick:function(){return r()}},"Close")))},U=e.createContext(null),J=function(t){var n=t.children,r=t.value;return e.createElement(U.Provider,{value:r},n)},Q=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.navbarPrefix,l=void 0===s?"sg-navbar-":s,i=r(t,["children","className","navbarPrefix"]),d=e.useMemo((function(){return l}),[l]);return e.createElement("nav",n({ref:a,className:"sg-navbar".concat(c?" "+c:"")},i),e.createElement(J,{value:d},o))})),V=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.href,l=void 0===s?"#":s,i=t.as,d=void 0===i?"a":i,u=r(t,["children","className","href","as"]),f=d||(l&&"Link"!=d?"a":"span");return e.createElement(f,n({ref:a,href:l,className:"sg-navbar-brand".concat(c?" "+c:"")},u),o)})),Z=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.as,l=void 0===s?"span":s,i=r(t,["children","className","as"]),d=l;return e.createElement(d,n({ref:a,className:"sg-navbar-text".concat(c?" "+c:"")},i),o)})),$=Object.assign(Q,{Brand:V,Text:Z}),_=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.as,l=void 0===s?"ul":s,i=r(t,["children","className","as"]),d=l,u=e.useContext(U),f=u||"sg-navbar-";return e.createElement(d,n({ref:a,className:"".concat(c," ").concat(f,"nav")},i),o)})),ee=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.as,l=void 0===s?"li":s,i=r(t,["children","className","as"]),d=l;return e.createElement(d,n({role:"none",ref:a,className:"sg-nav-item".concat(c?" "+c:"")},i),o)})),te=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.as,l=void 0===s?"a":s,i=r(t,["children","className","as"]),d=l;return e.createElement(d,n({role:"menuitem",ref:a,className:"sg-nav-link".concat(c?" "+c:"")},i),o)})),ne=Object.assign(_,{Item:ee,Link:te}),re=e.forwardRef((function(t,a){var o=t.children,c=t.className;t.onSelect;var s=t.onToggle,l=t.controlId,i=t.toggleProps,d=t.title,u=t.menuProps,f=t.drop,m=void 0===f?"down":f,v=t.align,p=void 0===v?"start":v;t.autoClose;var g=t.show,b=void 0===g?"default":g,w=r(t,["children","className","onSelect","onToggle","controlId","toggleProps","title","menuProps","drop","align","autoClose","show"]),N=e.useState("default"!==b&&b),E=N[0],x=N[1],R=e.useState({case:""}),C=R[0],I=R[1],k=e.useCallback((function(e){e.stopPropagation(),x((function(e){return!e}))}),[]),T=function(e,t,n){void 0===n&&(n=!1);var r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}("end"===p,m),S=l,P=e.useMemo((function(){return{align:p,drop:m,showInternal:"default"!=b&&s?b:E,handleToggle:"default"!=b&&s?s:k,placement:T,directionClasses:{down:"dropdown","down-centered":"dropdown-center",up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"},controlId:S,activeDescendant:C,setActiveDescendant:I}}),[p,m,b,E,s,k,T,{down:"dropdown","down-centered":"dropdown-center",up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"},l,C,I]);return e.createElement("div",n({ref:a,id:l+"-wrapper",className:"sg-dropdown".concat(c?" "+c:""," sg-nav-item")},w),e.createElement(h,{value:P},e.createElement(y.Toggle,n({navDropdown:!0},i),d),e.createElement(y.Menu,n({},u),o)))})),ae=Object.assign(re,{Toggle:y.Toggle,Menu:y.Menu,Item:y.Item,Divider:y.Divider}),oe=e.forwardRef((function(a,o){var c=a.children,s=a.initialPosition,l=void 0===s?{top:0,left:0}:s,i=a.id,d=a.resize,u=void 0!==d&&d,f=a.move,m=void 0!==f&&f,v=a.className,h=a.style,p=r(a,["children","initialPosition","id","resize","move","className","style"]),g=e.useState(n({offSetTop:0,offSetLeft:0},l)),b=g[0],w=g[1],N=u?"true":"false",E=m?"true":"false",y=e.useRef(o),x=e.useRef(null),R=e.useState(!1),C=R[0],I=R[1],k=e.useRef(C);e.useEffect((function(){k.current=C}),[C]);var T=function(){m&&(x.current.style.removeProperty("user-select"),I(!1))};return e.useEffect((function(){return document.body.addEventListener("pointerup",(function(){return T()}),!0),function(){document.body.removeEventListener("pointerup",(function(){return T()}),!0)}}),[]),t.createPortal(e.createElement("dialog",n({"data-resize":N,"data-move":E,"data-passedRef":y,ref:x,id:i,className:"sg-moveable-popout".concat(v?" "+v:""),style:n(n({},h),{top:b.top,left:b.left,bottom:b.bottom,right:b.right}),onPointerDown:function(e){var t=e.target;if(m&&t.className.includes("sg-popout-title")||t.className.includes("sg-popout-header")){var r=x.current.getBoundingClientRect(),a=r.top,o=r.left;w((function(t){return n(n({},t),{offSetTop:e.clientY-a,offSetLeft:e.clientX-o})})),x.current.style.setProperty("user-select","none"),x.current.setPointerCapture(e.pointerId),I(!0)}},onPointerMove:function(e){return function(e){if(m&&k.current&&x.current){var t=e.clientY-b.offSetTop<0,r=window.innerHeight-(e.clientY-b.offSetTop+x.current.offsetHeight)<0,a=e.clientX-b.offSetLeft<0,o=window.innerWidth-(e.clientX-b.offSetLeft+x.current.offsetWidth)<0,c=t?0:e.clientY-b.offSetTop;c=r?window.innerHeight-x.current.offsetHeight:c;var s=a?0:e.clientX-b.offSetLeft;s=o?window.innerWidth-x.current.offsetWidth:s,w((function(e){return n(n({},e),{top:c,left:s})}))}}(e)}},p),c),document.body)})),ce=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.as,l=void 0===s?"div":s,i=r(t,["children","className","as"]),d=["div","span","h1","h2","h3","h4","h5","h6"].find((function(e){return e===l}))?l:"div";return e.createElement(d,n({ref:a,className:"sg-popout-header ".concat(c)},i),o)})),se=e.forwardRef((function(t,a){var o=t.as,c=void 0===o?"h4":o,s=t.className,l=t.children,i=r(t,["as","className","children"]),d=["h1","h2","h3","h4","h5","h6"].find((function(e){return e===c}))?c:"h5";return e.createElement(d,n({ref:a,className:"sg-popout-title ".concat(s)},i),l)})),le=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-popout-body ".concat(c)},s),o)})),ie=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("p",n({ref:a,className:"sg-popout-text ".concat(c)},s),o)})),de=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({ref:a,className:"sg-popout-footer ".concat(c)},s),o)})),ue=Object.assign(oe,{Header:ce,Title:se,Body:le,Text:ie,Footer:de}),fe=e.forwardRef((function(t,a){var o=t.size,c=void 0===o?"1em":o,s=t.color,l=void 0===s?"white":s,i=t.label,d=t.className,u=t.controlId,f=r(t,["size","color","label","className","controlId"]);return e.createElement(e.Fragment,null,e.createElement("div",n({"aria-labelledby":u,role:"status",ref:a,className:"sg-spinner".concat(d?" "+d:""),style:{width:c,height:c,borderColor:l}},f)),e.createElement("label",{id:u,className:"sg-visually-hidden"},i))})),me=e.forwardRef((function(t,a){var o=t.children,c=t.size,s=void 0===c?"lg":c,l=t.className,i=r(t,["children","size","className"]),d="sg-table".concat(l?" "+l:"").concat("sm"===s?" sg-table-sm":"");return e.createElement("table",n({ref:a,className:d},i),o)})),ve=e.createContext(null),he=function(t){var n=t.children,r=t.value;return e.createElement(ve.Provider,{value:r},n)},pe=function(){var t=e.useContext(ve);if(!t)throw new Error("useTabContext has to be used within a TabContextProvider!");return t},ge=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.controlId,l=t.activeClassName,i=t.defaultActive,d=r(t,["children","className","controlId","activeClassName","defaultActive"]),u=e.useState(i),f=u[0],m=u[1],v=l||"sg-active",h=e.useMemo((function(){return{activeTab:f,setActiveTab:m,controlId:s,activeClass:v}}),[f,m,s]);return e.createElement(he,{value:h},e.createElement("div",n({ref:a,id:s+"-tab-wrapper",className:"sg-tabs".concat(c?" "+c:"")},d),o))})),be=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]),l=pe(),i=l.controlId,d=l.activeClass;return e.createElement("div",n({onKeyDown:function(e){return function(e){var t=e.key,n=document.getElementById(i+"-tab-controls");if(n){var r=Array.from(n.children);if("ArrowRight"===t||"ArrowLeft"===t){e.preventDefault();var a=document.querySelector(".sg-tabs-button."+d),o=r.indexOf(a),c="ArrowRight"===t?1:-1;r[s=o+c<0?r.length-1:o+c>=r.length?0:o+c].focus(),r[s].click()}else if("Home"===t||"End"===t){var s;e.preventDefault(),r[s="Home"===t?0:r.length-1].focus(),r[s].click()}}}(e)},role:"tablist",id:i+"-tab-controls",ref:a,className:"sg-tabs-controls".concat(c?" "+c:"")},s),o)})),we=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.onClick,l=t.tabId;t.id;var i=r(t,["children","className","onClick","tabId","id"]),d=pe(),u=d.activeTab,f=d.setActiveTab,m=d.activeClass,v="sg-tabs-button"+(c?" "+c:"")+(u===l?" "+m:""),h=u===l;return e.createElement("button",n({role:"tab",type:"button",id:l+"-button",ref:a,onClick:function(e){return function(e){f(l),s&&s(e)}(e)},className:v},i,{tabIndex:h?0:-1,"aria-selected":h?"true":"false","aria-controls":l+"-page"}),o)})),Ne=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=r(t,["children","className"]);return e.createElement("div",n({role:"none",ref:a,className:"sg-tabs-content".concat(c?" "+c:"")},s),o)})),Ee=e.forwardRef((function(t,a){var o=t.children,c=t.className,s=t.tabId,l=r(t,["children","className","tabId"]),i=pe(),d=i.activeTab,u=i.activeClass,f="sg-tabs-page"+(c?" "+c:"")+(d===s?" "+u:"");return e.createElement("div",n({role:"tabpanel",id:s+"-page","aria-labelledby":s+"-button",ref:a,className:f},l),o)})),ye=Object.assign(ge,{Controls:be,Button:we,Content:Ne,Page:Ee}),xe=e.forwardRef((function(t,a){var o=t.children,c=t.toggled,s=void 0===c?"false":c,l=t.onClick,i=r(t,["children","toggled","onClick"]),d=e.useState("true"===s),u=d[0],f=d[1];return e.createElement("button",n({onClick:function(e){return function(e){f((function(e){return!e})),l&&l(e)}(e)},"data-toggled":u},i),o)}));exports.Button=a,exports.Card=u,exports.CloseButton=f,exports.Dropdown=y,exports.FloatingLabel=O,exports.Form=D,exports.InputGroup=H,exports.Modal=Y,exports.Nav=ne,exports.NavBar=$,exports.NavDropdown=ae,exports.Popout=ue,exports.Spinner=fe,exports.Table=me,exports.Tabs=ye,exports.ToggleButton=xe;
2
- //# sourceMappingURL=index.js.map