@aivenio/aquarium 1.2.1 → 1.3.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 +2 -2
- package/dist/_variables.scss +1 -1
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +590 -241
- package/dist/atoms.mjs +590 -242
- package/dist/src/common/Alert/Alert.d.ts +1 -1
- package/dist/src/common/Alert/Alert.js +6 -6
- package/dist/src/common/Banner/Banner.d.ts +1 -1
- package/dist/src/common/Banner/Banner.js +5 -5
- package/dist/src/common/Checkbox/Checkbox.js +12 -19
- package/dist/src/common/Chip/Chip.js +4 -4
- package/dist/src/common/DataList/DataList.d.ts +1 -1
- package/dist/src/common/DataList/DataList.js +4 -4
- package/dist/src/common/Dialog/Dialog.d.ts +2 -2
- package/dist/src/common/Dialog/Dialog.js +2 -2
- package/dist/src/common/DropdownMenu/DropdownMenu.js +4 -4
- package/dist/src/common/InputGroup/InputGroup.d.ts +1 -1
- package/dist/src/common/InputGroup/InputGroup.js +1 -1
- package/dist/src/common/Modal/Modal.d.ts +6 -0
- package/dist/src/common/Modal/Modal.js +14 -5
- package/dist/src/common/Popover/Popover.d.ts +1 -1
- package/dist/src/common/Popover/Popover.js +2 -2
- package/dist/src/common/PopoverDialog/PopoverDialog.js +4 -4
- package/dist/src/common/ProgressBar/ProgressBar.js +4 -4
- package/dist/src/common/RadioButton/RadioButton.js +14 -16
- package/dist/src/common/Section/Section.d.ts +1 -1
- package/dist/src/common/Section/Section.js +3 -3
- package/dist/src/common/Select/Select.d.ts +1 -1
- package/dist/src/common/Select/Select.js +6 -6
- package/dist/src/common/Switch/Switch.d.ts +11 -0
- package/dist/src/common/Switch/Switch.js +28 -0
- package/dist/src/common/Table/Table.d.ts +5 -5
- package/dist/src/common/Table/Table.js +6 -6
- package/dist/src/common/Timeline/Timeline.js +2 -2
- package/dist/src/common/Typography/Typography.d.ts +1 -1
- package/dist/src/common/Typography/Typography.js +3 -3
- package/dist/src/common/index.d.ts +2 -1
- package/dist/src/common/index.js +3 -2
- package/dist/src/components/Alert/Alert.d.ts +7 -4
- package/dist/src/components/Alert/Alert.js +4 -4
- package/dist/src/components/Avatar/Avatar.js +2 -2
- package/dist/src/components/Badge/Badge.js +2 -2
- package/dist/src/components/Banner/Banner.d.ts +7 -4
- package/dist/src/components/Banner/Banner.js +5 -6
- package/dist/src/components/Box/Box.d.ts +6 -6
- package/dist/src/components/Box/Box.js +3 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/src/components/Breadcrumbs/Breadcrumbs.js +5 -5
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Button/Button.js +5 -5
- package/dist/src/components/Card/Card.d.ts +12 -5
- package/dist/src/components/Card/Card.js +15 -13
- package/dist/src/components/Carousel/Carousel.js +4 -4
- package/dist/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/Checkbox/Checkbox.js +5 -11
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +4 -4
- package/dist/src/components/CheckboxGroup/CheckboxGroup.js +3 -3
- package/dist/src/components/Chip/Chip.d.ts +1 -1
- package/dist/src/components/Chip/Chip.js +3 -3
- package/dist/src/components/ChoiceChip/ChoiceChip.js +3 -3
- package/dist/src/components/Combobox/Combobox.d.ts +1 -1
- package/dist/src/components/Combobox/Combobox.js +7 -7
- package/dist/src/components/Context/Context.d.ts +1 -1
- package/dist/src/components/Context/Context.js +1 -1
- package/dist/src/components/ControlLabel/ControlLabel.d.ts +1 -1
- package/dist/src/components/ControlLabel/ControlLabel.js +4 -4
- package/dist/src/components/DataList/DataList.d.ts +1 -1
- package/dist/src/components/DataList/DataList.js +7 -7
- package/dist/src/components/DataTable/DataTable.d.ts +2 -2
- package/dist/src/components/DataTable/DataTable.js +7 -7
- package/dist/src/components/Dialog/Dialog.d.ts +2 -2
- package/dist/src/components/Dialog/Dialog.js +5 -5
- package/dist/src/components/Divider/Divider.js +1 -1
- package/dist/src/components/Dropdown/Dropdown.d.ts +5 -2
- package/dist/src/components/Dropdown/Dropdown.js +8 -8
- package/dist/src/components/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/src/components/DropdownMenu/DropdownMenu.js +8 -8
- package/dist/src/components/DropdownMenu/utils.d.ts +1 -1
- package/dist/src/components/DropdownMenu/utils.js +1 -1
- package/dist/src/components/EmptyState/EmptyState.d.ts +2 -2
- package/dist/src/components/EmptyState/EmptyState.js +12 -12
- package/dist/src/components/Flexbox/Flexbox.d.ts +5 -5
- package/dist/src/components/Flexbox/Flexbox.js +1 -1
- package/dist/src/components/Flexbox/FlexboxItem.d.ts +4 -4
- package/dist/src/components/Flexbox/FlexboxItem.js +1 -1
- package/dist/src/components/Grid/Grid.d.ts +15 -15
- package/dist/src/components/Grid/Grid.js +1 -1
- package/dist/src/components/Grid/GridItem.d.ts +8 -8
- package/dist/src/components/Grid/GridItem.js +2 -2
- package/dist/src/components/Icon/Icon.d.ts +2 -2
- package/dist/src/components/Icon/Icon.js +1 -1
- package/dist/src/components/Input/Input.d.ts +1 -1
- package/dist/src/components/Input/Input.js +6 -6
- package/dist/src/components/ListItem/ListItem.js +2 -2
- package/dist/src/components/Modal/Modal.d.ts +8 -4
- package/dist/src/components/Modal/Modal.js +12 -10
- package/dist/src/components/MultiInput/InputChip.js +5 -5
- package/dist/src/components/MultiInput/MultiInput.d.ts +1 -1
- package/dist/src/components/MultiInput/MultiInput.js +7 -5
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +2 -2
- package/dist/src/components/MultiSelect/MultiSelect.js +5 -5
- package/dist/src/components/NativeSelect/NativeSelect.d.ts +1 -2
- package/dist/src/components/NativeSelect/NativeSelect.js +29 -9
- package/dist/src/components/PageHeader/PageHeader.d.ts +2 -2
- package/dist/src/components/PageHeader/PageHeader.js +5 -5
- package/dist/src/components/Pagination/Pagination.js +4 -4
- package/dist/src/components/Pagination/usePagination.js +2 -2
- package/dist/src/components/Popover/Popover.d.ts +2 -2
- package/dist/src/components/Popover/Popover.js +2 -2
- package/dist/src/components/Popover/PopoverContext.d.ts +1 -1
- package/dist/src/components/Popover/PopoverWrapper.d.ts +1 -1
- package/dist/src/components/Popover/PopoverWrapper.js +1 -1
- package/dist/src/components/PopoverDialog/PopoverDialog.d.ts +2 -2
- package/dist/src/components/PopoverDialog/PopoverDialog.js +2 -2
- package/dist/src/components/Portal/Portal.d.ts +1 -1
- package/dist/src/components/Portal/Portal.js +1 -1
- package/dist/src/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/src/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/components/RadioButton/RadioButton.js +6 -12
- package/dist/src/components/RadioButtonGroup/RadioButtonGroup.d.ts +4 -4
- package/dist/src/components/RadioButtonGroup/RadioButtonGroup.js +4 -4
- package/dist/src/components/Section/Section.d.ts +1 -1
- package/dist/src/components/Section/Section.js +3 -3
- package/dist/src/components/SegmentedControl/SegmentedControl.js +4 -4
- package/dist/src/components/Select/Select.d.ts +2 -2
- package/dist/src/components/Select/Select.js +12 -12
- package/dist/src/components/Skeleton/Skeleton.js +2 -2
- package/dist/src/components/Switch/Switch.d.ts +2 -4
- package/dist/src/components/Switch/Switch.js +7 -31
- package/dist/src/components/SwitchGroup/SwitchGroup.d.ts +4 -4
- package/dist/src/components/SwitchGroup/SwitchGroup.js +4 -4
- package/dist/src/components/Table/Table.d.ts +1 -1
- package/dist/src/components/Table/Table.js +2 -2
- package/dist/src/components/Tabs/Tabs.js +11 -11
- package/dist/src/components/TagLabel/TagLabel.js +2 -2
- package/dist/src/components/Tailwindify/Tailwindify.d.ts +26 -26
- package/dist/src/components/Tailwindify/Tailwindify.js +1 -1
- package/dist/src/components/Template/Template.d.ts +4 -4
- package/dist/src/components/Template/Template.js +1 -1
- package/dist/src/components/Textarea/Textarea.d.ts +1 -1
- package/dist/src/components/Textarea/Textarea.js +5 -5
- package/dist/src/components/Timeline/Timeline.js +7 -7
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/src/components/Tooltip/Tooltip.js +3 -3
- package/dist/src/components/Tooltip/useTooltipTriggerState.d.ts +1 -1
- package/dist/src/components/Tooltip/useTooltipTriggerState.js +1 -1
- package/dist/src/components/Typography/Typography.d.ts +28 -4
- package/dist/src/components/Typography/Typography.js +61 -21
- package/dist/src/components/index.d.ts +3 -3
- package/dist/src/components/index.js +4 -4
- package/dist/src/js/resolveTheme.d.ts +1 -1
- package/dist/src/system.d.ts +6 -6
- package/dist/src/system.js +6 -6
- package/dist/src/utils/Blueprint.js +2 -2
- package/dist/src/utils/breakpoints.d.ts +2 -2
- package/dist/src/utils/breakpoints.js +2 -2
- package/dist/src/utils/constants.js +2 -2
- package/dist/src/utils/createComponent.d.ts +1 -1
- package/dist/src/utils/createComponent.js +2 -2
- package/dist/src/utils/form/CharCounter/CharCounter.js +2 -2
- package/dist/src/utils/form/FormControl/FormControl.js +1 -1
- package/dist/src/utils/form/HelperText/HelperText.js +5 -5
- package/dist/src/utils/form/InputAdornment/InputAdornment.d.ts +1 -1
- package/dist/src/utils/form/InputAdornment/InputAdornment.js +6 -6
- package/dist/src/utils/form/Label/Label.d.ts +2 -2
- package/dist/src/utils/form/Label/Label.js +5 -5
- package/dist/src/utils/table/types.d.ts +6 -5
- package/dist/src/utils/table/types.js +1 -1
- package/dist/src/utils/table/useScrollTarget.d.ts +1 -1
- package/dist/src/utils/table/useScrollTarget.js +1 -1
- package/dist/src/utils/table/useTableSort.d.ts +1 -1
- package/dist/src/utils/table/useTableSort.js +1 -1
- package/dist/src/utils/tailwind.d.ts +2 -2
- package/dist/src/utils/tailwind.js +1 -1
- package/dist/src/utils/useStyle.d.ts +1 -1
- package/dist/src/utils/useStyle.js +3 -3
- package/dist/src/utils/useWindowSize.js +3 -3
- package/dist/styles.css +220 -61
- package/dist/styles_timescaledb.css +220 -62
- package/dist/system.cjs +1209 -958
- package/dist/system.mjs +1204 -953
- package/dist/tokens.json +260 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/ActionType.d.ts +2 -2
- package/dist/types/IconProps.d.ts +2 -2
- package/dist/types/designTokens.d.ts +1 -1
- package/dist/types/tailwind.d.ts +3 -3
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/dist/types/utils.d.ts +1 -1
- package/dist/types/utils.js +1 -1
- package/package.json +30 -27
package/dist/atoms.mjs
CHANGED
@@ -175,6 +175,136 @@ var require_tokens = __commonJS({
|
|
175
175
|
},
|
176
176
|
typography: {
|
177
177
|
sizes: [
|
178
|
+
{
|
179
|
+
name: "large-heading",
|
180
|
+
className: "typography-large-heading",
|
181
|
+
style: {
|
182
|
+
fontFamily: "Inter",
|
183
|
+
fontSize: "32px",
|
184
|
+
fontWeight: 700,
|
185
|
+
fontStyle: "normal",
|
186
|
+
lineHeight: 1.375,
|
187
|
+
textTransform: "none"
|
188
|
+
},
|
189
|
+
fontPostScriptName: "Inter-Bold"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
name: "heading",
|
193
|
+
className: "typography-heading",
|
194
|
+
style: {
|
195
|
+
fontFamily: "Inter",
|
196
|
+
fontSize: "24px",
|
197
|
+
fontWeight: 700,
|
198
|
+
fontStyle: "normal",
|
199
|
+
lineHeight: 1.375,
|
200
|
+
textTransform: "none"
|
201
|
+
},
|
202
|
+
fontPostScriptName: "Inter-Bold"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
name: "subheading",
|
206
|
+
className: "typography-subheading",
|
207
|
+
style: {
|
208
|
+
fontFamily: "Inter",
|
209
|
+
fontSize: "20px",
|
210
|
+
fontWeight: 600,
|
211
|
+
fontStyle: "normal",
|
212
|
+
lineHeight: 1.375,
|
213
|
+
textTransform: "none"
|
214
|
+
},
|
215
|
+
fontPostScriptName: "Inter-Bold"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
name: "large-strong",
|
219
|
+
className: "typography-large-strong",
|
220
|
+
style: {
|
221
|
+
fontFamily: "Inter",
|
222
|
+
fontSize: "20px",
|
223
|
+
fontWeight: 600,
|
224
|
+
fontStyle: "normal",
|
225
|
+
lineHeight: 1.58,
|
226
|
+
textTransform: "none"
|
227
|
+
},
|
228
|
+
fontPostScriptName: "Inter-SemiBold"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
name: "large",
|
232
|
+
className: "typography-large",
|
233
|
+
style: {
|
234
|
+
fontFamily: "Inter",
|
235
|
+
fontSize: "20px",
|
236
|
+
fontWeight: 500,
|
237
|
+
fontStyle: "normal",
|
238
|
+
lineHeight: 1.58,
|
239
|
+
textTransform: "none"
|
240
|
+
},
|
241
|
+
fontPostScriptName: "Inter-SemiBold"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
name: "default-strong",
|
245
|
+
className: "typography-default-strong",
|
246
|
+
style: {
|
247
|
+
fontFamily: "Inter",
|
248
|
+
fontSize: "16px",
|
249
|
+
fontWeight: 600,
|
250
|
+
fontStyle: "normal",
|
251
|
+
lineHeight: 1.5,
|
252
|
+
textTransform: "none"
|
253
|
+
},
|
254
|
+
fontPostScriptName: "Inter-SemiBold"
|
255
|
+
},
|
256
|
+
{
|
257
|
+
name: "default",
|
258
|
+
className: "typography-default",
|
259
|
+
style: {
|
260
|
+
fontFamily: "Inter",
|
261
|
+
fontSize: "16px",
|
262
|
+
fontWeight: 400,
|
263
|
+
fontStyle: "normal",
|
264
|
+
lineHeight: 1.5,
|
265
|
+
textTransform: "none"
|
266
|
+
},
|
267
|
+
fontPostScriptName: null
|
268
|
+
},
|
269
|
+
{
|
270
|
+
name: "small-strong",
|
271
|
+
className: "typography-small-strong",
|
272
|
+
style: {
|
273
|
+
fontFamily: "Inter",
|
274
|
+
fontSize: "14px",
|
275
|
+
fontWeight: 600,
|
276
|
+
fontStyle: "normal",
|
277
|
+
lineHeight: 1.42,
|
278
|
+
textTransform: "none"
|
279
|
+
},
|
280
|
+
fontPostScriptName: "Inter-SemiBold"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
name: "small",
|
284
|
+
className: "typography-small",
|
285
|
+
style: {
|
286
|
+
fontFamily: "Inter",
|
287
|
+
fontSize: "14px",
|
288
|
+
fontWeight: 400,
|
289
|
+
fontStyle: "normal",
|
290
|
+
lineHeight: 1.42,
|
291
|
+
textTransform: "none"
|
292
|
+
},
|
293
|
+
fontPostScriptName: null
|
294
|
+
},
|
295
|
+
{
|
296
|
+
name: "caption",
|
297
|
+
className: "typography-caption",
|
298
|
+
style: {
|
299
|
+
fontFamily: "Inter",
|
300
|
+
fontSize: "12px",
|
301
|
+
fontWeight: 400,
|
302
|
+
fontStyle: "normal",
|
303
|
+
lineHeight: 1.26,
|
304
|
+
textTransform: "none"
|
305
|
+
},
|
306
|
+
fontPostScriptName: null
|
307
|
+
},
|
178
308
|
{
|
179
309
|
name: "caption-small",
|
180
310
|
className: "typography-caption-small",
|
@@ -184,7 +314,6 @@ var require_tokens = __commonJS({
|
|
184
314
|
fontWeight: 400,
|
185
315
|
fontStyle: "normal",
|
186
316
|
lineHeight: 1.2,
|
187
|
-
letterSpacing: 0,
|
188
317
|
textTransform: "none"
|
189
318
|
},
|
190
319
|
fontPostScriptName: null
|
@@ -606,6 +735,136 @@ var require_tokens = __commonJS({
|
|
606
735
|
},
|
607
736
|
typography: {
|
608
737
|
sizes: [
|
738
|
+
{
|
739
|
+
name: "large-heading",
|
740
|
+
className: "typography-large-heading",
|
741
|
+
style: {
|
742
|
+
fontFamily: "Inter",
|
743
|
+
fontSize: "32px",
|
744
|
+
fontWeight: 700,
|
745
|
+
fontStyle: "normal",
|
746
|
+
lineHeight: 1.375,
|
747
|
+
textTransform: "none"
|
748
|
+
},
|
749
|
+
fontPostScriptName: "Inter-Bold"
|
750
|
+
},
|
751
|
+
{
|
752
|
+
name: "heading",
|
753
|
+
className: "typography-heading",
|
754
|
+
style: {
|
755
|
+
fontFamily: "Inter",
|
756
|
+
fontSize: "24px",
|
757
|
+
fontWeight: 700,
|
758
|
+
fontStyle: "normal",
|
759
|
+
lineHeight: 1.375,
|
760
|
+
textTransform: "none"
|
761
|
+
},
|
762
|
+
fontPostScriptName: "Inter-Bold"
|
763
|
+
},
|
764
|
+
{
|
765
|
+
name: "subheading",
|
766
|
+
className: "typography-subheading",
|
767
|
+
style: {
|
768
|
+
fontFamily: "Inter",
|
769
|
+
fontSize: "20px",
|
770
|
+
fontWeight: 600,
|
771
|
+
fontStyle: "normal",
|
772
|
+
lineHeight: 1.375,
|
773
|
+
textTransform: "none"
|
774
|
+
},
|
775
|
+
fontPostScriptName: "Inter-Bold"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
name: "large-strong",
|
779
|
+
className: "typography-large-strong",
|
780
|
+
style: {
|
781
|
+
fontFamily: "Inter",
|
782
|
+
fontSize: "20px",
|
783
|
+
fontWeight: 600,
|
784
|
+
fontStyle: "normal",
|
785
|
+
lineHeight: 1.58,
|
786
|
+
textTransform: "none"
|
787
|
+
},
|
788
|
+
fontPostScriptName: "Inter-SemiBold"
|
789
|
+
},
|
790
|
+
{
|
791
|
+
name: "large",
|
792
|
+
className: "typography-large",
|
793
|
+
style: {
|
794
|
+
fontFamily: "Inter",
|
795
|
+
fontSize: "20px",
|
796
|
+
fontWeight: 500,
|
797
|
+
fontStyle: "normal",
|
798
|
+
lineHeight: 1.58,
|
799
|
+
textTransform: "none"
|
800
|
+
},
|
801
|
+
fontPostScriptName: "Inter-SemiBold"
|
802
|
+
},
|
803
|
+
{
|
804
|
+
name: "default-strong",
|
805
|
+
className: "typography-default-strong",
|
806
|
+
style: {
|
807
|
+
fontFamily: "Inter",
|
808
|
+
fontSize: "16px",
|
809
|
+
fontWeight: 600,
|
810
|
+
fontStyle: "normal",
|
811
|
+
lineHeight: 1.5,
|
812
|
+
textTransform: "none"
|
813
|
+
},
|
814
|
+
fontPostScriptName: "Inter-SemiBold"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
name: "default",
|
818
|
+
className: "typography-default",
|
819
|
+
style: {
|
820
|
+
fontFamily: "Inter",
|
821
|
+
fontSize: "16px",
|
822
|
+
fontWeight: 400,
|
823
|
+
fontStyle: "normal",
|
824
|
+
lineHeight: 1.5,
|
825
|
+
textTransform: "none"
|
826
|
+
},
|
827
|
+
fontPostScriptName: null
|
828
|
+
},
|
829
|
+
{
|
830
|
+
name: "small-strong",
|
831
|
+
className: "typography-small-strong",
|
832
|
+
style: {
|
833
|
+
fontFamily: "Inter",
|
834
|
+
fontSize: "14px",
|
835
|
+
fontWeight: 600,
|
836
|
+
fontStyle: "normal",
|
837
|
+
lineHeight: 1.42,
|
838
|
+
textTransform: "none"
|
839
|
+
},
|
840
|
+
fontPostScriptName: "Inter-SemiBold"
|
841
|
+
},
|
842
|
+
{
|
843
|
+
name: "small",
|
844
|
+
className: "typography-small",
|
845
|
+
style: {
|
846
|
+
fontFamily: "Inter",
|
847
|
+
fontSize: "14px",
|
848
|
+
fontWeight: 400,
|
849
|
+
fontStyle: "normal",
|
850
|
+
lineHeight: 1.42,
|
851
|
+
textTransform: "none"
|
852
|
+
},
|
853
|
+
fontPostScriptName: null
|
854
|
+
},
|
855
|
+
{
|
856
|
+
name: "caption",
|
857
|
+
className: "typography-caption",
|
858
|
+
style: {
|
859
|
+
fontFamily: "Inter",
|
860
|
+
fontSize: "12px",
|
861
|
+
fontWeight: 400,
|
862
|
+
fontStyle: "normal",
|
863
|
+
lineHeight: 1.26,
|
864
|
+
textTransform: "none"
|
865
|
+
},
|
866
|
+
fontPostScriptName: null
|
867
|
+
},
|
609
868
|
{
|
610
869
|
name: "caption-small",
|
611
870
|
className: "typography-caption-small",
|
@@ -984,12 +1243,12 @@ var require_confirm = __commonJS({
|
|
984
1243
|
}
|
985
1244
|
});
|
986
1245
|
|
987
|
-
// src/icons/
|
988
|
-
var
|
989
|
-
"src/icons/
|
1246
|
+
// src/icons/cross.js
|
1247
|
+
var require_cross = __commonJS({
|
1248
|
+
"src/icons/cross.js"(exports) {
|
990
1249
|
"use strict";
|
991
1250
|
var data = {
|
992
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1251
|
+
"body": '<path fill="currentColor" fill-rule="evenodd" d="m11.41 10 4.29-4.29c.19-.18.3-.43.3-.71a1.003 1.003 0 00-1.71-.71L10 8.59l-4.29-4.3a1.003 1.003 0 00-1.42 1.42L8.59 10 4.3 14.29c-.19.18-.3.43-.3.71a1.003 1.003 0 001.71.71l4.29-4.3 4.29 4.29c.18.19.43.3.71.3a1.003 1.003 0 00.71-1.71L11.41 10Z" clip-rule="evenodd"/>',
|
993
1252
|
"left": 0,
|
994
1253
|
"top": 0,
|
995
1254
|
"width": 20,
|
@@ -1032,12 +1291,12 @@ var require_infoSign = __commonJS({
|
|
1032
1291
|
}
|
1033
1292
|
});
|
1034
1293
|
|
1035
|
-
// src/icons/
|
1036
|
-
var
|
1037
|
-
"src/icons/
|
1294
|
+
// src/icons/warningSign.js
|
1295
|
+
var require_warningSign = __commonJS({
|
1296
|
+
"src/icons/warningSign.js"(exports) {
|
1038
1297
|
"use strict";
|
1039
1298
|
var data = {
|
1040
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1299
|
+
"body": '<path fill="currentColor" fill-rule="evenodd" d="m19.86 17.52.01-.01-9-16-.01.01A.982.982 0 0010 1c-.37 0-.69.21-.86.52l-.01-.01-9 16 .01.01c-.08.14-.14.3-.14.48 0 .55.45 1 1 1h18c.55 0 1-.45 1-1 0-.18-.06-.34-.14-.48ZM11 17H9v-2h2v2Zm0-3H9V6h2v8Z" clip-rule="evenodd"/>',
|
1041
1300
|
"left": 0,
|
1042
1301
|
"top": 0,
|
1043
1302
|
"width": 20,
|
@@ -1048,12 +1307,12 @@ var require_cross = __commonJS({
|
|
1048
1307
|
}
|
1049
1308
|
});
|
1050
1309
|
|
1051
|
-
// src/icons/
|
1052
|
-
var
|
1053
|
-
"src/icons/
|
1310
|
+
// src/icons/minus.js
|
1311
|
+
var require_minus = __commonJS({
|
1312
|
+
"src/icons/minus.js"(exports) {
|
1054
1313
|
"use strict";
|
1055
1314
|
var data = {
|
1056
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1315
|
+
"body": '<path fill="currentColor" fill-rule="evenodd" d="M16 9H4c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1Z" clip-rule="evenodd"/>',
|
1057
1316
|
"left": 0,
|
1058
1317
|
"top": 0,
|
1059
1318
|
"width": 20,
|
@@ -1064,12 +1323,12 @@ var require_tick = __commonJS({
|
|
1064
1323
|
}
|
1065
1324
|
});
|
1066
1325
|
|
1067
|
-
// src/icons/
|
1068
|
-
var
|
1069
|
-
"src/icons/
|
1326
|
+
// src/icons/tick.js
|
1327
|
+
var require_tick = __commonJS({
|
1328
|
+
"src/icons/tick.js"(exports) {
|
1070
1329
|
"use strict";
|
1071
1330
|
var data = {
|
1072
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1331
|
+
"body": '<path fill="currentColor" fill-rule="evenodd" d="M17 4c-.28 0-.53.11-.71.29L7 13.59 3.71 10.3A.965.965 0 003 10a1.003 1.003 0 00-.71 1.71l4 4c.18.18.43.29.71.29.28 0 .53-.11.71-.29l10-10A1.003 1.003 0 0017 4Z" clip-rule="evenodd"/>',
|
1073
1332
|
"left": 0,
|
1074
1333
|
"top": 0,
|
1075
1334
|
"width": 20,
|
@@ -1115,82 +1374,22 @@ var require_search = __commonJS({
|
|
1115
1374
|
// src/common/Alert/Alert.tsx
|
1116
1375
|
import React8 from "react";
|
1117
1376
|
|
1118
|
-
// src/utils/tailwind.ts
|
1119
|
-
import originalClassNames from "classnames";
|
1120
|
-
function cleanClassNames(classNames2) {
|
1121
|
-
const tokens = classNames2.split(/\s+/);
|
1122
|
-
return tokens.filter((item) => item).join(" ");
|
1123
|
-
}
|
1124
|
-
function tw(classesOrModifiers1, classesOrModifiers2, classesOrModifiers3, classesOrModifiers4, classesOrModifiers5, classesOrModifiers6, classesOrModifiers7, classesOrModifiers8, classesOrModifiers9, classesOrModifiers10) {
|
1125
|
-
const result = originalClassNames(
|
1126
|
-
classesOrModifiers1,
|
1127
|
-
classesOrModifiers2,
|
1128
|
-
classesOrModifiers3,
|
1129
|
-
classesOrModifiers4,
|
1130
|
-
classesOrModifiers5,
|
1131
|
-
classesOrModifiers6,
|
1132
|
-
classesOrModifiers7,
|
1133
|
-
classesOrModifiers8,
|
1134
|
-
classesOrModifiers9,
|
1135
|
-
classesOrModifiers10
|
1136
|
-
);
|
1137
|
-
return cleanClassNames(result);
|
1138
|
-
}
|
1139
|
-
var classNames = (...args) => {
|
1140
|
-
const result = originalClassNames(...args);
|
1141
|
-
return cleanClassNames(result);
|
1142
|
-
};
|
1143
|
-
|
1144
1377
|
// src/components/Button/Button.tsx
|
1145
1378
|
import React6 from "react";
|
1146
1379
|
|
1147
|
-
// src/components/Icon/Icon.tsx
|
1148
|
-
import React from "react";
|
1149
|
-
import {
|
1150
|
-
Icon as IconifyIconComponent,
|
1151
|
-
InlineIcon as IconifyInlineIconComponent
|
1152
|
-
} from "@iconify/react";
|
1153
|
-
var Icon = React.forwardRef((_a, ref) => {
|
1154
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
1155
|
-
const classes = classNames(className, color && `text-${color}`);
|
1156
|
-
return /* @__PURE__ */ React.createElement(IconifyIconComponent, __spreadValues({
|
1157
|
-
ref: ref != null ? ref : void 0,
|
1158
|
-
className: classes !== "" ? classes : void 0
|
1159
|
-
}, rest));
|
1160
|
-
});
|
1161
|
-
var InlineIcon = React.forwardRef((_a, ref) => {
|
1162
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
1163
|
-
const classes = classNames(color && `text-${color}`);
|
1164
|
-
return /* @__PURE__ */ React.createElement("span", {
|
1165
|
-
className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
|
1166
|
-
}, /* @__PURE__ */ React.createElement(IconifyInlineIconComponent, __spreadValues({
|
1167
|
-
ref: ref != null ? ref : void 0,
|
1168
|
-
className: classes !== "" ? classes : void 0
|
1169
|
-
}, rest)));
|
1170
|
-
});
|
1171
|
-
|
1172
1380
|
// src/components/Flexbox/Flexbox.tsx
|
1173
|
-
import
|
1381
|
+
import React3 from "react";
|
1174
1382
|
|
1175
1383
|
// src/components/Tailwindify/Tailwindify.tsx
|
1176
|
-
import
|
1384
|
+
import React2 from "react";
|
1177
1385
|
import get2 from "lodash/get";
|
1178
1386
|
import isUndefined4 from "lodash/isUndefined";
|
1179
1387
|
|
1180
1388
|
// src/utils/useStyle.ts
|
1181
1389
|
import { useContext } from "react";
|
1182
1390
|
import get from "lodash/get";
|
1183
|
-
import isUndefined3 from "lodash/isUndefined";
|
1184
1391
|
import isPlainObject2 from "lodash/isPlainObject";
|
1185
|
-
|
1186
|
-
// src/components/Context/Context.tsx
|
1187
|
-
import React2 from "react";
|
1188
|
-
import { ModalProvider } from "@react-aria/overlays";
|
1189
|
-
|
1190
|
-
// src/utils/breakpoints.ts
|
1191
|
-
import isUndefined from "lodash/isUndefined";
|
1192
|
-
import orderBy from "lodash/orderBy";
|
1193
|
-
import isPlainObject from "lodash/isPlainObject";
|
1392
|
+
import isUndefined3 from "lodash/isUndefined";
|
1194
1393
|
|
1195
1394
|
// tailwind.theme.json
|
1196
1395
|
var tailwind_theme_default = {
|
@@ -1715,7 +1914,14 @@ var tailwind_theme_default = {
|
|
1715
1914
|
}
|
1716
1915
|
};
|
1717
1916
|
|
1917
|
+
// src/components/Context/Context.tsx
|
1918
|
+
import React from "react";
|
1919
|
+
import { ModalProvider } from "@react-aria/overlays";
|
1920
|
+
|
1718
1921
|
// src/utils/breakpoints.ts
|
1922
|
+
import isPlainObject from "lodash/isPlainObject";
|
1923
|
+
import isUndefined from "lodash/isUndefined";
|
1924
|
+
import orderBy from "lodash/orderBy";
|
1719
1925
|
var { screens: allBreakpoints } = tailwind_theme_default;
|
1720
1926
|
var SCREEN_TO_PX_MAPPING = getPxMapping(allBreakpoints);
|
1721
1927
|
var BREAKPOINT_PRIORITY = orderBy(
|
@@ -1760,15 +1966,15 @@ function selectBreakpointValue(value, matches) {
|
|
1760
1966
|
}
|
1761
1967
|
|
1762
1968
|
// src/utils/useWindowSize.ts
|
1763
|
-
import {
|
1764
|
-
import isUndefined2 from "lodash/isUndefined";
|
1969
|
+
import { useEffect, useState } from "react";
|
1765
1970
|
import debounce from "lodash/debounce";
|
1971
|
+
import isUndefined2 from "lodash/isUndefined";
|
1766
1972
|
|
1767
1973
|
// src/components/Context/Context.tsx
|
1768
1974
|
var context = {
|
1769
1975
|
breakpointMatches: getMatches(void 0)
|
1770
1976
|
};
|
1771
|
-
var DesignSystemContext =
|
1977
|
+
var DesignSystemContext = React.createContext(context);
|
1772
1978
|
|
1773
1979
|
// src/utils/useStyle.ts
|
1774
1980
|
var THEME_MAPPING = {
|
@@ -1892,8 +2098,8 @@ function Tailwindify(Component) {
|
|
1892
2098
|
const componentProps = __spreadProps(__spreadValues({}, otherProps), {
|
1893
2099
|
style: finalStyle
|
1894
2100
|
});
|
1895
|
-
const childrenWithProps =
|
1896
|
-
if (!
|
2101
|
+
const childrenWithProps = React2.Children.map(children, (child, index) => {
|
2102
|
+
if (!React2.isValidElement(child)) {
|
1897
2103
|
return child;
|
1898
2104
|
}
|
1899
2105
|
const isLastChild = index === children.length - 1;
|
@@ -1914,9 +2120,9 @@ function Tailwindify(Component) {
|
|
1914
2120
|
}
|
1915
2121
|
const childStyle = get2(child, ["props", "style"], {});
|
1916
2122
|
const newProps = __spreadProps(__spreadValues({}, childProps), { style: __spreadValues(__spreadValues({}, childStyle), additionalStyle) });
|
1917
|
-
return
|
2123
|
+
return React2.cloneElement(child, newProps);
|
1918
2124
|
});
|
1919
|
-
return /* @__PURE__ */
|
2125
|
+
return /* @__PURE__ */ React2.createElement(Component, __spreadValues({
|
1920
2126
|
className,
|
1921
2127
|
children: childrenWithProps
|
1922
2128
|
}, componentProps));
|
@@ -1952,17 +2158,70 @@ var Flexbox = Tailwindify(
|
|
1952
2158
|
rowGap
|
1953
2159
|
});
|
1954
2160
|
const HtmlElement = htmlTag;
|
1955
|
-
return /* @__PURE__ */
|
2161
|
+
return /* @__PURE__ */ React3.createElement(HtmlElement, {
|
1956
2162
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
1957
2163
|
className
|
1958
2164
|
}, children);
|
1959
2165
|
}
|
1960
2166
|
);
|
1961
2167
|
|
2168
|
+
// src/components/Icon/Icon.tsx
|
2169
|
+
import React4 from "react";
|
2170
|
+
import {
|
2171
|
+
Icon as IconifyIconComponent,
|
2172
|
+
InlineIcon as IconifyInlineIconComponent
|
2173
|
+
} from "@iconify/react";
|
2174
|
+
|
2175
|
+
// src/utils/tailwind.ts
|
2176
|
+
import originalClassNames from "classnames";
|
2177
|
+
function cleanClassNames(classNames2) {
|
2178
|
+
const tokens = classNames2.split(/\s+/);
|
2179
|
+
return tokens.filter((item) => item).join(" ");
|
2180
|
+
}
|
2181
|
+
function tw(classesOrModifiers1, classesOrModifiers2, classesOrModifiers3, classesOrModifiers4, classesOrModifiers5, classesOrModifiers6, classesOrModifiers7, classesOrModifiers8, classesOrModifiers9, classesOrModifiers10) {
|
2182
|
+
const result = originalClassNames(
|
2183
|
+
classesOrModifiers1,
|
2184
|
+
classesOrModifiers2,
|
2185
|
+
classesOrModifiers3,
|
2186
|
+
classesOrModifiers4,
|
2187
|
+
classesOrModifiers5,
|
2188
|
+
classesOrModifiers6,
|
2189
|
+
classesOrModifiers7,
|
2190
|
+
classesOrModifiers8,
|
2191
|
+
classesOrModifiers9,
|
2192
|
+
classesOrModifiers10
|
2193
|
+
);
|
2194
|
+
return cleanClassNames(result);
|
2195
|
+
}
|
2196
|
+
var classNames = (...args) => {
|
2197
|
+
const result = originalClassNames(...args);
|
2198
|
+
return cleanClassNames(result);
|
2199
|
+
};
|
2200
|
+
|
2201
|
+
// src/components/Icon/Icon.tsx
|
2202
|
+
var Icon = React4.forwardRef((_a, ref) => {
|
2203
|
+
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2204
|
+
const classes = classNames(className, color && `text-${color}`);
|
2205
|
+
return /* @__PURE__ */ React4.createElement(IconifyIconComponent, __spreadValues({
|
2206
|
+
ref: ref != null ? ref : void 0,
|
2207
|
+
className: classes !== "" ? classes : void 0
|
2208
|
+
}, rest));
|
2209
|
+
});
|
2210
|
+
var InlineIcon = React4.forwardRef((_a, ref) => {
|
2211
|
+
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2212
|
+
const classes = classNames(color && `text-${color}`);
|
2213
|
+
return /* @__PURE__ */ React4.createElement("span", {
|
2214
|
+
className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
|
2215
|
+
}, /* @__PURE__ */ React4.createElement(IconifyInlineIconComponent, __spreadValues({
|
2216
|
+
ref: ref != null ? ref : void 0,
|
2217
|
+
className: classes !== "" ? classes : void 0
|
2218
|
+
}, rest)));
|
2219
|
+
});
|
2220
|
+
|
1962
2221
|
// src/components/Tooltip/Tooltip.tsx
|
1963
2222
|
import React5 from "react";
|
2223
|
+
import { OverlayContainer, useOverlayPosition } from "@react-aria/overlays";
|
1964
2224
|
import { useTooltip, useTooltipTrigger } from "@react-aria/tooltip";
|
1965
|
-
import { useOverlayPosition, OverlayContainer } from "@react-aria/overlays";
|
1966
2225
|
import { mergeProps } from "@react-aria/utils";
|
1967
2226
|
|
1968
2227
|
// src/components/Tooltip/useTooltipTriggerState.ts
|
@@ -2149,7 +2408,7 @@ var TooltipWrapper = React5.forwardRef(
|
|
2149
2408
|
const arrowStyle = getArrowStyle(ref.current, placement, (_a2 = arrowProps.style) != null ? _a2 : {});
|
2150
2409
|
return /* @__PURE__ */ React5.createElement(OverlayContainer, null, /* @__PURE__ */ React5.createElement("div", __spreadValues({
|
2151
2410
|
ref,
|
2152
|
-
className: tw("p-3 rounded-sm typography-caption
|
2411
|
+
className: tw("p-3 rounded-sm typography-caption max-w-[320px] bg-grey-90 text-white")
|
2153
2412
|
}, mergeProps(props, tooltipProps)), props.children, /* @__PURE__ */ React5.createElement(Arrow, __spreadProps(__spreadValues({}, arrowProps), {
|
2154
2413
|
style: arrowStyle
|
2155
2414
|
}))));
|
@@ -2306,8 +2565,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
2306
2565
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
2307
2566
|
tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
|
2308
2567
|
"text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
|
2309
|
-
"typography-
|
2310
|
-
"typography-
|
2568
|
+
"typography-default": !dense && !isIconOnlyButton,
|
2569
|
+
"typography-small": dense && !isIconOnlyButton,
|
2311
2570
|
"py-3 px-4": !dense && isButton,
|
2312
2571
|
"py-2 px-3": dense && isButton,
|
2313
2572
|
"py-3": !dense && isGhost,
|
@@ -2402,7 +2661,7 @@ var typographies = import_resolveTheme.theme.typography.sizes.reduce(
|
|
2402
2661
|
var Typography = (_a) => {
|
2403
2662
|
var _b = _a, {
|
2404
2663
|
children,
|
2405
|
-
variant = "
|
2664
|
+
variant = "default",
|
2406
2665
|
color,
|
2407
2666
|
htmlTag = "div",
|
2408
2667
|
className,
|
@@ -2426,10 +2685,10 @@ var Typography = (_a) => {
|
|
2426
2685
|
|
2427
2686
|
// src/common/Alert/Alert.tsx
|
2428
2687
|
var import_confirm = __toESM(require_confirm());
|
2429
|
-
var
|
2688
|
+
var import_cross = __toESM(require_cross());
|
2430
2689
|
var import_error = __toESM(require_error());
|
2431
2690
|
var import_infoSign = __toESM(require_infoSign());
|
2432
|
-
var
|
2691
|
+
var import_warningSign = __toESM(require_warningSign());
|
2433
2692
|
var alertTypes = {
|
2434
2693
|
information: {
|
2435
2694
|
icon: import_infoSign.default,
|
@@ -2477,16 +2736,15 @@ var Alert = (_a) => {
|
|
2477
2736
|
Alert.Title = (_a) => {
|
2478
2737
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2479
2738
|
return /* @__PURE__ */ React8.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2480
|
-
variant: "
|
2739
|
+
variant: "default-strong",
|
2481
2740
|
color: "grey-80",
|
2482
|
-
fontWeight: 500,
|
2483
2741
|
className: classNames(tw("col-start-2"), className)
|
2484
2742
|
}), children);
|
2485
2743
|
};
|
2486
2744
|
Alert.Description = (_a) => {
|
2487
2745
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2488
2746
|
return /* @__PURE__ */ React8.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2489
|
-
variant: "
|
2747
|
+
variant: "small",
|
2490
2748
|
color: "grey-60",
|
2491
2749
|
className: classNames(tw("col-start-2"), className)
|
2492
2750
|
}), children);
|
@@ -2520,45 +2778,35 @@ Alert.Dismiss = (_a) => {
|
|
2520
2778
|
|
2521
2779
|
// src/common/Checkbox/Checkbox.tsx
|
2522
2780
|
import React9 from "react";
|
2523
|
-
var import_tick = __toESM(require_tick());
|
2524
2781
|
var import_minus = __toESM(require_minus());
|
2782
|
+
var import_tick = __toESM(require_tick());
|
2525
2783
|
var Checkbox = React9.forwardRef(
|
2526
2784
|
(_a, ref) => {
|
2527
|
-
var _b = _a, { id, children, name,
|
2785
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
2528
2786
|
return /* @__PURE__ */ React9.createElement("span", {
|
2529
|
-
className:
|
2530
|
-
tw("inline-flex justify-center items-center relative self-center", {
|
2531
|
-
"text-grey-30": disabled,
|
2532
|
-
"text-grey-100 cursor-pointer": !disabled
|
2533
|
-
})
|
2534
|
-
)
|
2787
|
+
className: tw("inline-flex justify-center items-center self-center")
|
2535
2788
|
}, /* @__PURE__ */ React9.createElement("input", __spreadProps(__spreadValues({
|
2536
2789
|
id,
|
2537
2790
|
ref,
|
2538
2791
|
type: "checkbox",
|
2539
2792
|
name
|
2540
2793
|
}, props), {
|
2541
|
-
|
2542
|
-
className: classNames(
|
2543
|
-
tw("appearance-none rounded-sm border"),
|
2544
|
-
{
|
2545
|
-
"cursor-pointer": !disabled,
|
2546
|
-
"border-grey-20 hover:border-grey-50 focus:border-info-70": !disabled && !checked,
|
2547
|
-
"border-navyBlue-100 bg-navyBlue-100": !disabled && checked,
|
2548
|
-
"border-grey-5 cursor-not-allowed": disabled,
|
2549
|
-
"bg-grey-0": disabled && checked
|
2550
|
-
},
|
2551
|
-
props.className
|
2552
|
-
),
|
2553
|
-
style: __spreadValues({ width: 16, height: 16 }, props.style),
|
2794
|
+
className: tw("opacity-0 peer w-0 h-0"),
|
2554
2795
|
readOnly,
|
2555
2796
|
disabled
|
2556
|
-
})),
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2797
|
+
})), /* @__PURE__ */ React9.createElement(Icon, {
|
2798
|
+
icon: indeterminate ? import_minus.default : import_tick.default,
|
2799
|
+
className: classNames(
|
2800
|
+
tw(
|
2801
|
+
"rounded-sm border peer w-5 h-5 p-[3px] pointer-events-none cursor-pointer peer-disabled:cursor-not-allowed",
|
2802
|
+
"border-grey-20 peer-focus:border-info-70 peer-disabled:border-grey-5 peer-checked:border-navyBlue-100",
|
2803
|
+
"text-transparent peer-checked:[&>path]:stroke-2 peer-checked:text-white peer-checked:[&>path]:stroke-white"
|
2804
|
+
),
|
2805
|
+
{
|
2806
|
+
"peer-checked:bg-navyBlue-100 peer-hover:border-grey-50": !disabled,
|
2807
|
+
"peer-checked:bg-gray-0 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
|
2808
|
+
}
|
2809
|
+
)
|
2562
2810
|
}));
|
2563
2811
|
}
|
2564
2812
|
);
|
@@ -2572,8 +2820,8 @@ var Container = React10.forwardRef(
|
|
2572
2820
|
ref,
|
2573
2821
|
className: classNames(
|
2574
2822
|
tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
|
2575
|
-
"typography-
|
2576
|
-
"typography-caption
|
2823
|
+
"typography-small py-2 px-3 gap-x-3": !dense,
|
2824
|
+
"typography-caption py-1 px-2 gap-x-2": dense
|
2577
2825
|
}),
|
2578
2826
|
className
|
2579
2827
|
)
|
@@ -2586,8 +2834,8 @@ var Chip = {
|
|
2586
2834
|
|
2587
2835
|
// src/common/Dialog/Dialog.tsx
|
2588
2836
|
var import_confirm2 = __toESM(require_confirm());
|
2589
|
-
var import_warningSign2 = __toESM(require_warningSign());
|
2590
2837
|
var import_error2 = __toESM(require_error());
|
2838
|
+
var import_warningSign2 = __toESM(require_warningSign());
|
2591
2839
|
var DIALOG_ICONS_AND_COLORS = {
|
2592
2840
|
confirmation: {
|
2593
2841
|
icon: import_confirm2.default,
|
@@ -2609,62 +2857,116 @@ import React12 from "react";
|
|
2609
2857
|
// src/components/Typography/Typography.tsx
|
2610
2858
|
import React11 from "react";
|
2611
2859
|
var Typography2 = (props) => /* @__PURE__ */ React11.createElement(Typography, __spreadValues({}, props));
|
2612
|
-
Typography2.
|
2860
|
+
Typography2.LargeHeading = (_a) => {
|
2613
2861
|
var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2614
2862
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2615
2863
|
htmlTag,
|
2616
|
-
variant: "heading
|
2864
|
+
variant: "large-heading"
|
2865
|
+
}));
|
2866
|
+
};
|
2867
|
+
Typography2.Heading = (_a) => {
|
2868
|
+
var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2869
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2870
|
+
htmlTag,
|
2871
|
+
variant: "heading"
|
2617
2872
|
}));
|
2618
2873
|
};
|
2619
2874
|
Typography2.Subheading = (_a) => {
|
2620
|
-
var _b = _a, { htmlTag = "h2" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2875
|
+
var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2621
2876
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2622
2877
|
htmlTag,
|
2623
|
-
variant: "
|
2878
|
+
variant: "subheading"
|
2624
2879
|
}));
|
2625
2880
|
};
|
2626
|
-
Typography2.
|
2627
|
-
var _b = _a, { htmlTag = "
|
2881
|
+
Typography2.LargeStrong = (_a) => {
|
2882
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2628
2883
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2629
2884
|
htmlTag,
|
2630
|
-
variant: "
|
2885
|
+
variant: "large-strong"
|
2631
2886
|
}));
|
2632
2887
|
};
|
2633
|
-
Typography2.
|
2634
|
-
var _b = _a, { htmlTag = "
|
2888
|
+
Typography2.Large = (_a) => {
|
2889
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2635
2890
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2636
2891
|
htmlTag,
|
2637
|
-
variant: "
|
2892
|
+
variant: "large"
|
2638
2893
|
}));
|
2639
2894
|
};
|
2640
|
-
Typography2.
|
2641
|
-
var _b = _a, { htmlTag = "
|
2895
|
+
Typography2.DefaultStrong = (_a) => {
|
2896
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2642
2897
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2643
2898
|
htmlTag,
|
2644
|
-
variant: "
|
2899
|
+
variant: "default-strong"
|
2645
2900
|
}));
|
2646
2901
|
};
|
2647
|
-
Typography2.
|
2648
|
-
|
2649
|
-
Typography2.SmallText = (_a) => {
|
2650
|
-
var _b = _a, { htmlTag = "p" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2902
|
+
Typography2.Default = (_a) => {
|
2903
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2651
2904
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2652
2905
|
htmlTag,
|
2653
|
-
variant: "
|
2906
|
+
variant: "default"
|
2654
2907
|
}));
|
2655
2908
|
};
|
2656
|
-
Typography2.
|
2657
|
-
var _b = _a, { htmlTag = "p" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2909
|
+
Typography2.Paragraph = (_a) => {
|
2910
|
+
var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2911
|
+
return /* @__PURE__ */ React11.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), {
|
2912
|
+
htmlTag
|
2913
|
+
}));
|
2914
|
+
};
|
2915
|
+
Typography2.P = Typography2.Paragraph;
|
2916
|
+
Typography2.SmallStrong = (_a) => {
|
2917
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2658
2918
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2659
2919
|
htmlTag,
|
2660
|
-
variant: "
|
2920
|
+
variant: "small-strong"
|
2921
|
+
}));
|
2922
|
+
};
|
2923
|
+
Typography2.Small = (_a) => {
|
2924
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2925
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2926
|
+
htmlTag,
|
2927
|
+
variant: "small"
|
2661
2928
|
}));
|
2662
2929
|
};
|
2663
2930
|
Typography2.Caption = (_a) => {
|
2664
|
-
var _b = _a, { htmlTag = "
|
2931
|
+
var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2932
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2933
|
+
htmlTag,
|
2934
|
+
variant: "caption"
|
2935
|
+
}));
|
2936
|
+
};
|
2937
|
+
Typography2.LargeText = (_a) => {
|
2938
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2665
2939
|
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2666
2940
|
htmlTag,
|
2667
|
-
variant: "
|
2941
|
+
variant: "large-strong"
|
2942
|
+
}));
|
2943
|
+
};
|
2944
|
+
Typography2.MediumText = (_a) => {
|
2945
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2946
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2947
|
+
htmlTag,
|
2948
|
+
variant: "default-strong"
|
2949
|
+
}));
|
2950
|
+
};
|
2951
|
+
Typography2.Text = (_a) => {
|
2952
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2953
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2954
|
+
htmlTag,
|
2955
|
+
variant: "default"
|
2956
|
+
}));
|
2957
|
+
};
|
2958
|
+
Typography2.SmallText = (_a) => {
|
2959
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2960
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2961
|
+
htmlTag,
|
2962
|
+
variant: "small"
|
2963
|
+
}));
|
2964
|
+
};
|
2965
|
+
Typography2.SmallTextBold = (_a) => {
|
2966
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2967
|
+
return /* @__PURE__ */ React11.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2968
|
+
htmlTag,
|
2969
|
+
variant: "small-strong"
|
2668
2970
|
}));
|
2669
2971
|
};
|
2670
2972
|
|
@@ -2678,7 +2980,7 @@ var DropdownMenu = React12.forwardRef(
|
|
2678
2980
|
style: { maxHeight, minWidth, maxWidth },
|
2679
2981
|
className: classNames(
|
2680
2982
|
className,
|
2681
|
-
"bg-white w-full overflow-y-auto overflow-x-hidden typography-
|
2983
|
+
"bg-white w-full overflow-y-auto overflow-x-hidden typography-small text-grey-70"
|
2682
2984
|
)
|
2683
2985
|
}, props), children);
|
2684
2986
|
}
|
@@ -2702,13 +3004,9 @@ var Group = React12.forwardRef(
|
|
2702
3004
|
return /* @__PURE__ */ React12.createElement("li", __spreadValues({
|
2703
3005
|
ref
|
2704
3006
|
}, props), title && /* @__PURE__ */ React12.createElement("div", __spreadValues({
|
2705
|
-
className: classNames(
|
2706
|
-
|
2707
|
-
|
2708
|
-
{
|
2709
|
-
"text-grey-20": props.disabled
|
2710
|
-
}
|
2711
|
-
)
|
3007
|
+
className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
|
3008
|
+
"text-grey-20": props.disabled
|
3009
|
+
})
|
2712
3010
|
}, titleProps), title), children);
|
2713
3011
|
}
|
2714
3012
|
);
|
@@ -2860,7 +3158,7 @@ Modal.Dialog = React15.forwardRef(
|
|
2860
3158
|
"aria-modal": "true"
|
2861
3159
|
}, rest), {
|
2862
3160
|
className: classNames(
|
2863
|
-
tw("bg-white rounded mx-7 w-full max-h-full flex flex-col"),
|
3161
|
+
tw("relative bg-white rounded mx-7 w-full max-h-full flex flex-col"),
|
2864
3162
|
{
|
2865
3163
|
"max-w-[600px]": size === "sm",
|
2866
3164
|
"max-w-[940px]": size === "md",
|
@@ -2877,11 +3175,29 @@ Modal.Header = (_a) => {
|
|
2877
3175
|
className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
|
2878
3176
|
}), children);
|
2879
3177
|
};
|
3178
|
+
Modal.HeaderImage = (_a) => {
|
3179
|
+
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
3180
|
+
const common = tw("h-[120px] min-h-[120px] w-full ");
|
3181
|
+
return backgroundImage ? /* @__PURE__ */ React15.createElement("img", __spreadProps(__spreadValues({
|
3182
|
+
"aria-hidden": true,
|
3183
|
+
src: backgroundImage != null ? backgroundImage : void 0
|
3184
|
+
}, rest), {
|
3185
|
+
className: classNames(common, tw("object-cover"), className)
|
3186
|
+
})) : /* @__PURE__ */ React15.createElement("div", {
|
3187
|
+
className: classNames(common, tw("bg-grey-5"), className)
|
3188
|
+
});
|
3189
|
+
};
|
3190
|
+
Modal.CloseButtonContainer = (_a) => {
|
3191
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3192
|
+
return /* @__PURE__ */ React15.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3193
|
+
className: classNames(tw("absolute top-[20px] right-[28px]"), className)
|
3194
|
+
}));
|
3195
|
+
};
|
2880
3196
|
Modal.Title = (_a) => {
|
2881
3197
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2882
3198
|
return /* @__PURE__ */ React15.createElement(Typography, __spreadValues({
|
2883
3199
|
htmlTag: "h2",
|
2884
|
-
variant: "
|
3200
|
+
variant: "subheading",
|
2885
3201
|
color: "grey-90",
|
2886
3202
|
className: classNames(tw("leading-none"), className)
|
2887
3203
|
}, rest), children);
|
@@ -2889,7 +3205,7 @@ Modal.Title = (_a) => {
|
|
2889
3205
|
Modal.Subtitle = (_a) => {
|
2890
3206
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
2891
3207
|
return /* @__PURE__ */ React15.createElement(Typography, __spreadValues({
|
2892
|
-
variant: "
|
3208
|
+
variant: "small",
|
2893
3209
|
color: "grey-60"
|
2894
3210
|
}, rest), children);
|
2895
3211
|
};
|
@@ -2919,38 +3235,56 @@ Modal.Actions = (_a) => {
|
|
2919
3235
|
}), children);
|
2920
3236
|
};
|
2921
3237
|
|
2922
|
-
// src/common/
|
3238
|
+
// src/common/Popover/Popover.tsx
|
2923
3239
|
import React16 from "react";
|
3240
|
+
var PopoverPanel = React16.forwardRef((_a, ref) => {
|
3241
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3242
|
+
return /* @__PURE__ */ React16.createElement("div", __spreadValues({
|
3243
|
+
ref,
|
3244
|
+
className: classNames(
|
3245
|
+
className,
|
3246
|
+
tw(
|
3247
|
+
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
3248
|
+
)
|
3249
|
+
)
|
3250
|
+
}, props), children);
|
3251
|
+
});
|
3252
|
+
var Popover = {
|
3253
|
+
Panel: PopoverPanel
|
3254
|
+
};
|
3255
|
+
|
3256
|
+
// src/common/PopoverDialog/PopoverDialog.tsx
|
3257
|
+
import React17 from "react";
|
2924
3258
|
var Header = (_a) => {
|
2925
3259
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2926
|
-
return /* @__PURE__ */
|
3260
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2927
3261
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
2928
3262
|
}), children);
|
2929
3263
|
};
|
2930
3264
|
var Title = (_a) => {
|
2931
3265
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2932
|
-
return /* @__PURE__ */
|
3266
|
+
return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2933
3267
|
htmlTag: "h1",
|
2934
|
-
variant: "
|
3268
|
+
variant: "small-strong"
|
2935
3269
|
}), children);
|
2936
3270
|
};
|
2937
3271
|
var Body = (_a) => {
|
2938
3272
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2939
|
-
return /* @__PURE__ */
|
3273
|
+
return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2940
3274
|
htmlTag: "div",
|
2941
|
-
variant: "caption
|
3275
|
+
variant: "caption",
|
2942
3276
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
2943
3277
|
}), children);
|
2944
3278
|
};
|
2945
3279
|
var Footer = (_a) => {
|
2946
3280
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2947
|
-
return /* @__PURE__ */
|
3281
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2948
3282
|
className: classNames(tw("p-5"), className)
|
2949
3283
|
}), children);
|
2950
3284
|
};
|
2951
3285
|
var Actions = (_a) => {
|
2952
3286
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2953
|
-
return /* @__PURE__ */
|
3287
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2954
3288
|
className: classNames(tw("flex gap-4"), className)
|
2955
3289
|
}), children);
|
2956
3290
|
};
|
@@ -2962,62 +3296,38 @@ var PopoverDialog = {
|
|
2962
3296
|
Actions
|
2963
3297
|
};
|
2964
3298
|
|
2965
|
-
// src/common/Popover/Popover.tsx
|
2966
|
-
import React17 from "react";
|
2967
|
-
var PopoverPanel = React17.forwardRef((_a, ref) => {
|
2968
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
2969
|
-
return /* @__PURE__ */ React17.createElement("div", __spreadValues({
|
2970
|
-
ref,
|
2971
|
-
className: classNames(
|
2972
|
-
className,
|
2973
|
-
tw(
|
2974
|
-
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
2975
|
-
)
|
2976
|
-
)
|
2977
|
-
}, props), children);
|
2978
|
-
});
|
2979
|
-
var Popover = {
|
2980
|
-
Panel: PopoverPanel
|
2981
|
-
};
|
2982
|
-
|
2983
3299
|
// src/common/RadioButton/RadioButton.tsx
|
2984
3300
|
import React18 from "react";
|
2985
3301
|
var RadioButton = React18.forwardRef(
|
2986
3302
|
(_a, ref) => {
|
2987
|
-
var _b = _a, { id, children, name,
|
3303
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
2988
3304
|
return /* @__PURE__ */ React18.createElement("span", {
|
2989
|
-
className: classNames(
|
2990
|
-
tw("inline-flex justify-center items-center relative self-center", {
|
2991
|
-
"text-grey-30": disabled,
|
2992
|
-
"text-grey-100": !disabled
|
2993
|
-
})
|
2994
|
-
)
|
3305
|
+
className: classNames(tw("inline-flex justify-center items-center relative self-center"))
|
2995
3306
|
}, /* @__PURE__ */ React18.createElement("input", __spreadProps(__spreadValues({
|
2996
3307
|
id,
|
2997
3308
|
ref,
|
2998
3309
|
type: "radio",
|
2999
3310
|
name
|
3000
3311
|
}, props), {
|
3001
|
-
|
3002
|
-
className: classNames(
|
3003
|
-
tw("appearance-none rounded-full border cursor-pointer"),
|
3004
|
-
{
|
3005
|
-
"border-grey-20 hover:border-grey-50 focus:border-info-70": !disabled && !checked,
|
3006
|
-
"border-navyBlue-100": !disabled && checked,
|
3007
|
-
"border-grey-5": disabled
|
3008
|
-
},
|
3009
|
-
props.className
|
3010
|
-
),
|
3011
|
-
style: __spreadValues({ width: 16, height: 16 }, props.style),
|
3312
|
+
className: tw("opacity-0 peer/radio w-0 h-0"),
|
3012
3313
|
readOnly,
|
3013
3314
|
disabled
|
3014
3315
|
})), /* @__PURE__ */ React18.createElement("span", {
|
3316
|
+
className: tw(
|
3317
|
+
"rounded-full w-5 h-5 p-[3px] border cursor-pointer",
|
3318
|
+
"border-grey-20 peer-focus/radio:border-info-70",
|
3319
|
+
"peer-checked/radio:[&>*]:block",
|
3320
|
+
{
|
3321
|
+
"peer-checked/radio:border-navyBlue-100 peer-hover/radio:border-grey-50": !disabled,
|
3322
|
+
"border-grey-5 peer-checked/radio:[&>*]:opacity-40": disabled
|
3323
|
+
}
|
3324
|
+
)
|
3325
|
+
}, /* @__PURE__ */ React18.createElement("span", {
|
3015
3326
|
style: { backgroundColor: "currentcolor" },
|
3016
|
-
className: tw("
|
3017
|
-
"opacity-
|
3018
|
-
"opacity-40": disabled && checked
|
3327
|
+
className: tw("w-3 h-3 rounded-full hidden bg-navyBlue-100 pointer-events-none", {
|
3328
|
+
"peer-checked/radio:opacity-40": disabled
|
3019
3329
|
})
|
3020
|
-
}));
|
3330
|
+
})));
|
3021
3331
|
}
|
3022
3332
|
);
|
3023
3333
|
|
@@ -3055,7 +3365,7 @@ var InputContainer = React19.forwardRef(
|
|
3055
3365
|
ref,
|
3056
3366
|
className: classNames(
|
3057
3367
|
className,
|
3058
|
-
"relative rounded-sm typography-
|
3368
|
+
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-70",
|
3059
3369
|
{
|
3060
3370
|
"border px-3 py-[6px]": variant !== "readOnly",
|
3061
3371
|
"cursor-default": variant === "readOnly",
|
@@ -3077,7 +3387,7 @@ var Input = React19.forwardRef((_a, ref) => {
|
|
3077
3387
|
type: "text",
|
3078
3388
|
className: classNames(
|
3079
3389
|
className,
|
3080
|
-
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-
|
3390
|
+
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-grey-5 placeholder:text-grey-40",
|
3081
3391
|
{
|
3082
3392
|
"text-grey-70": !props.disabled,
|
3083
3393
|
"text-grey-30": props.disabled,
|
@@ -3122,7 +3432,7 @@ var Group2 = React19.forwardRef((_a, ref) => {
|
|
3122
3432
|
ref,
|
3123
3433
|
className: classNames(
|
3124
3434
|
className,
|
3125
|
-
"flex items-center gap-x-3 p-3 text-grey-40 uppercase cursor-default typography-caption
|
3435
|
+
"flex items-center gap-x-3 p-3 text-grey-40 uppercase cursor-default typography-caption mt-4 first:mt-0",
|
3126
3436
|
{
|
3127
3437
|
"text-grey-20": props.disabled
|
3128
3438
|
}
|
@@ -3193,37 +3503,74 @@ var Select = {
|
|
3193
3503
|
Toggle
|
3194
3504
|
};
|
3195
3505
|
|
3196
|
-
// src/common/
|
3506
|
+
// src/common/Switch/Switch.tsx
|
3197
3507
|
import React20 from "react";
|
3198
|
-
var
|
3508
|
+
var Switch = React20.forwardRef(
|
3509
|
+
(_a, ref) => {
|
3510
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3511
|
+
return /* @__PURE__ */ React20.createElement("span", {
|
3512
|
+
className: tw("relative inline-flex justify-center items-center self-center group")
|
3513
|
+
}, /* @__PURE__ */ React20.createElement("input", __spreadProps(__spreadValues({
|
3514
|
+
id,
|
3515
|
+
ref,
|
3516
|
+
type: "checkbox",
|
3517
|
+
name
|
3518
|
+
}, props), {
|
3519
|
+
className: tw("opacity-0 peer/switch w-0 h-0"),
|
3520
|
+
readOnly,
|
3521
|
+
disabled
|
3522
|
+
})), /* @__PURE__ */ React20.createElement("span", {
|
3523
|
+
className: tw(
|
3524
|
+
"rounded-full inline-block w-[34px] h-[20px] transition duration-300",
|
3525
|
+
"peer-focus/switch:border border-info-70 bg-grey-20",
|
3526
|
+
{
|
3527
|
+
"group-hover:bg-grey-30 peer-checked/switch:bg-navyBlue-100": !disabled,
|
3528
|
+
"bg-grey-5 peer-checked/switch:opacity-40": disabled
|
3529
|
+
}
|
3530
|
+
)
|
3531
|
+
}), /* @__PURE__ */ React20.createElement("span", {
|
3532
|
+
className: tw(
|
3533
|
+
"rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
3534
|
+
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
3535
|
+
{
|
3536
|
+
"shadow-4dp": !disabled
|
3537
|
+
}
|
3538
|
+
)
|
3539
|
+
}));
|
3540
|
+
}
|
3541
|
+
);
|
3542
|
+
|
3543
|
+
// src/common/Table/Table.tsx
|
3544
|
+
import React21 from "react";
|
3199
3545
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
3200
|
-
var
|
3201
|
-
var
|
3546
|
+
var import_chevronUp2 = __toESM(require_chevronUp());
|
3547
|
+
var HeadContext = React21.createContext(null);
|
3548
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
3202
3549
|
var Table = (_a) => {
|
3203
3550
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
3204
|
-
return /* @__PURE__ */
|
3551
|
+
return /* @__PURE__ */ React21.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
3205
3552
|
className: classNames(tableClassNames, className),
|
3206
3553
|
"aria-label": ariaLabel
|
3207
3554
|
}), children);
|
3208
3555
|
};
|
3209
3556
|
var TableHead = (_a) => {
|
3210
3557
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
3211
|
-
return /* @__PURE__ */
|
3558
|
+
return /* @__PURE__ */ React21.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React21.createElement("tr", null, /* @__PURE__ */ React21.createElement(HeadContext.Provider, {
|
3212
3559
|
value: { children, sticky }
|
3213
3560
|
}, children)));
|
3214
3561
|
};
|
3215
3562
|
var TableBody = (_a) => {
|
3216
3563
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3217
|
-
return /* @__PURE__ */
|
3564
|
+
return /* @__PURE__ */ React21.createElement("tbody", __spreadValues({}, rest), children);
|
3218
3565
|
};
|
3219
3566
|
var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
|
3220
3567
|
var TableRow = (_a) => {
|
3221
3568
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3222
|
-
return /* @__PURE__ */
|
3569
|
+
return /* @__PURE__ */ React21.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
3223
3570
|
className: classNames(rowClassNames, className)
|
3224
3571
|
}), children);
|
3225
3572
|
};
|
3226
|
-
var cellClassNames = tw("px-4 border-b typography-
|
3573
|
+
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
3227
3574
|
var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
|
3228
3575
|
"h-[50px]": table,
|
3229
3576
|
"min-h-[50px]": !table
|
@@ -3235,25 +3582,25 @@ var getHeadCellClassNames = (sticky = true) => {
|
|
3235
3582
|
};
|
3236
3583
|
var TableCell = (_a) => {
|
3237
3584
|
var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
|
3238
|
-
const headContext =
|
3239
|
-
return headContext ? /* @__PURE__ */
|
3585
|
+
const headContext = React21.useContext(HeadContext);
|
3586
|
+
return headContext ? /* @__PURE__ */ React21.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
3240
3587
|
className: classNames(
|
3241
3588
|
cellClassNames,
|
3242
3589
|
getHeadCellClassNames(headContext.sticky),
|
3243
3590
|
getAlignClassNames(align),
|
3244
3591
|
className
|
3245
3592
|
)
|
3246
|
-
}), children) : /* @__PURE__ */
|
3593
|
+
}), children) : /* @__PURE__ */ React21.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
3247
3594
|
className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
|
3248
3595
|
}), children);
|
3249
3596
|
};
|
3250
3597
|
var TableSelectCell = (_a) => {
|
3251
3598
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
3252
|
-
return /* @__PURE__ */
|
3599
|
+
return /* @__PURE__ */ React21.createElement(Table.Cell, {
|
3253
3600
|
className: tw("leading-[0px]")
|
3254
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
3601
|
+
}, props.type === "radio" ? /* @__PURE__ */ React21.createElement(RadioButton, __spreadValues({
|
3255
3602
|
"aria-label": ariaLabel
|
3256
|
-
}, props)) : /* @__PURE__ */
|
3603
|
+
}, props)) : /* @__PURE__ */ React21.createElement(Checkbox, __spreadValues({
|
3257
3604
|
"aria-label": ariaLabel
|
3258
3605
|
}, props)));
|
3259
3606
|
};
|
@@ -3263,39 +3610,39 @@ var getSortCellIconClassNames = (active) => {
|
|
3263
3610
|
};
|
3264
3611
|
var TableSortCell = (_a) => {
|
3265
3612
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
3266
|
-
return /* @__PURE__ */
|
3613
|
+
return /* @__PURE__ */ React21.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
3267
3614
|
"aria-sort": direction
|
3268
|
-
}), /* @__PURE__ */
|
3615
|
+
}), /* @__PURE__ */ React21.createElement("span", {
|
3269
3616
|
className: getSortCellButtonClassNames(rest.align),
|
3270
3617
|
role: "button",
|
3271
3618
|
tabIndex: -1,
|
3272
3619
|
onClick
|
3273
|
-
}, children, /* @__PURE__ */
|
3620
|
+
}, children, /* @__PURE__ */ React21.createElement("div", {
|
3274
3621
|
"data-sort-icons": true,
|
3275
3622
|
className: tw("flex flex-col", {
|
3276
3623
|
"invisible group-hover:visible": direction === "none"
|
3277
3624
|
})
|
3278
|
-
}, /* @__PURE__ */
|
3625
|
+
}, /* @__PURE__ */ React21.createElement(InlineIcon, {
|
3279
3626
|
icon: import_chevronUp2.default,
|
3280
3627
|
className: getSortCellIconClassNames(direction === "descending")
|
3281
|
-
}), /* @__PURE__ */
|
3628
|
+
}), /* @__PURE__ */ React21.createElement(InlineIcon, {
|
3282
3629
|
icon: import_chevronDown3.default,
|
3283
3630
|
className: getSortCellIconClassNames(direction === "ascending")
|
3284
3631
|
}))));
|
3285
3632
|
};
|
3286
|
-
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
3633
|
+
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React21.createElement("div", {
|
3287
3634
|
className: tw("flex gap-4 items-center")
|
3288
|
-
}, image && /* @__PURE__ */
|
3635
|
+
}, image && /* @__PURE__ */ React21.createElement("img", {
|
3289
3636
|
src: image,
|
3290
3637
|
alt: imageAlt,
|
3291
3638
|
style: { width: imageSize, height: imageSize }
|
3292
|
-
}), /* @__PURE__ */
|
3293
|
-
Table.Head =
|
3294
|
-
Table.Body =
|
3295
|
-
Table.Row =
|
3296
|
-
Table.Cell =
|
3297
|
-
Table.SortCell =
|
3298
|
-
Table.SelectCell =
|
3639
|
+
}), /* @__PURE__ */ React21.createElement("div", null, title, caption && /* @__PURE__ */ React21.createElement(Typography2.Caption, null, caption)));
|
3640
|
+
Table.Head = React21.memo(TableHead);
|
3641
|
+
Table.Body = React21.memo(TableBody);
|
3642
|
+
Table.Row = React21.memo(TableRow);
|
3643
|
+
Table.Cell = React21.memo(TableCell);
|
3644
|
+
Table.SortCell = React21.memo(TableSortCell);
|
3645
|
+
Table.SelectCell = React21.memo(TableSelectCell);
|
3299
3646
|
export {
|
3300
3647
|
Alert,
|
3301
3648
|
Checkbox,
|
@@ -3309,6 +3656,7 @@ export {
|
|
3309
3656
|
PopoverDialog,
|
3310
3657
|
RadioButton,
|
3311
3658
|
Select,
|
3659
|
+
Switch,
|
3312
3660
|
Table,
|
3313
3661
|
cellClassNames,
|
3314
3662
|
getAlignClassNames,
|