@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.cjs
CHANGED
@@ -181,6 +181,136 @@ var require_tokens = __commonJS({
|
|
181
181
|
},
|
182
182
|
typography: {
|
183
183
|
sizes: [
|
184
|
+
{
|
185
|
+
name: "large-heading",
|
186
|
+
className: "typography-large-heading",
|
187
|
+
style: {
|
188
|
+
fontFamily: "Inter",
|
189
|
+
fontSize: "32px",
|
190
|
+
fontWeight: 700,
|
191
|
+
fontStyle: "normal",
|
192
|
+
lineHeight: 1.375,
|
193
|
+
textTransform: "none"
|
194
|
+
},
|
195
|
+
fontPostScriptName: "Inter-Bold"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
name: "heading",
|
199
|
+
className: "typography-heading",
|
200
|
+
style: {
|
201
|
+
fontFamily: "Inter",
|
202
|
+
fontSize: "24px",
|
203
|
+
fontWeight: 700,
|
204
|
+
fontStyle: "normal",
|
205
|
+
lineHeight: 1.375,
|
206
|
+
textTransform: "none"
|
207
|
+
},
|
208
|
+
fontPostScriptName: "Inter-Bold"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
name: "subheading",
|
212
|
+
className: "typography-subheading",
|
213
|
+
style: {
|
214
|
+
fontFamily: "Inter",
|
215
|
+
fontSize: "20px",
|
216
|
+
fontWeight: 600,
|
217
|
+
fontStyle: "normal",
|
218
|
+
lineHeight: 1.375,
|
219
|
+
textTransform: "none"
|
220
|
+
},
|
221
|
+
fontPostScriptName: "Inter-Bold"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
name: "large-strong",
|
225
|
+
className: "typography-large-strong",
|
226
|
+
style: {
|
227
|
+
fontFamily: "Inter",
|
228
|
+
fontSize: "20px",
|
229
|
+
fontWeight: 600,
|
230
|
+
fontStyle: "normal",
|
231
|
+
lineHeight: 1.58,
|
232
|
+
textTransform: "none"
|
233
|
+
},
|
234
|
+
fontPostScriptName: "Inter-SemiBold"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
name: "large",
|
238
|
+
className: "typography-large",
|
239
|
+
style: {
|
240
|
+
fontFamily: "Inter",
|
241
|
+
fontSize: "20px",
|
242
|
+
fontWeight: 500,
|
243
|
+
fontStyle: "normal",
|
244
|
+
lineHeight: 1.58,
|
245
|
+
textTransform: "none"
|
246
|
+
},
|
247
|
+
fontPostScriptName: "Inter-SemiBold"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
name: "default-strong",
|
251
|
+
className: "typography-default-strong",
|
252
|
+
style: {
|
253
|
+
fontFamily: "Inter",
|
254
|
+
fontSize: "16px",
|
255
|
+
fontWeight: 600,
|
256
|
+
fontStyle: "normal",
|
257
|
+
lineHeight: 1.5,
|
258
|
+
textTransform: "none"
|
259
|
+
},
|
260
|
+
fontPostScriptName: "Inter-SemiBold"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
name: "default",
|
264
|
+
className: "typography-default",
|
265
|
+
style: {
|
266
|
+
fontFamily: "Inter",
|
267
|
+
fontSize: "16px",
|
268
|
+
fontWeight: 400,
|
269
|
+
fontStyle: "normal",
|
270
|
+
lineHeight: 1.5,
|
271
|
+
textTransform: "none"
|
272
|
+
},
|
273
|
+
fontPostScriptName: null
|
274
|
+
},
|
275
|
+
{
|
276
|
+
name: "small-strong",
|
277
|
+
className: "typography-small-strong",
|
278
|
+
style: {
|
279
|
+
fontFamily: "Inter",
|
280
|
+
fontSize: "14px",
|
281
|
+
fontWeight: 600,
|
282
|
+
fontStyle: "normal",
|
283
|
+
lineHeight: 1.42,
|
284
|
+
textTransform: "none"
|
285
|
+
},
|
286
|
+
fontPostScriptName: "Inter-SemiBold"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
name: "small",
|
290
|
+
className: "typography-small",
|
291
|
+
style: {
|
292
|
+
fontFamily: "Inter",
|
293
|
+
fontSize: "14px",
|
294
|
+
fontWeight: 400,
|
295
|
+
fontStyle: "normal",
|
296
|
+
lineHeight: 1.42,
|
297
|
+
textTransform: "none"
|
298
|
+
},
|
299
|
+
fontPostScriptName: null
|
300
|
+
},
|
301
|
+
{
|
302
|
+
name: "caption",
|
303
|
+
className: "typography-caption",
|
304
|
+
style: {
|
305
|
+
fontFamily: "Inter",
|
306
|
+
fontSize: "12px",
|
307
|
+
fontWeight: 400,
|
308
|
+
fontStyle: "normal",
|
309
|
+
lineHeight: 1.26,
|
310
|
+
textTransform: "none"
|
311
|
+
},
|
312
|
+
fontPostScriptName: null
|
313
|
+
},
|
184
314
|
{
|
185
315
|
name: "caption-small",
|
186
316
|
className: "typography-caption-small",
|
@@ -190,7 +320,6 @@ var require_tokens = __commonJS({
|
|
190
320
|
fontWeight: 400,
|
191
321
|
fontStyle: "normal",
|
192
322
|
lineHeight: 1.2,
|
193
|
-
letterSpacing: 0,
|
194
323
|
textTransform: "none"
|
195
324
|
},
|
196
325
|
fontPostScriptName: null
|
@@ -612,6 +741,136 @@ var require_tokens = __commonJS({
|
|
612
741
|
},
|
613
742
|
typography: {
|
614
743
|
sizes: [
|
744
|
+
{
|
745
|
+
name: "large-heading",
|
746
|
+
className: "typography-large-heading",
|
747
|
+
style: {
|
748
|
+
fontFamily: "Inter",
|
749
|
+
fontSize: "32px",
|
750
|
+
fontWeight: 700,
|
751
|
+
fontStyle: "normal",
|
752
|
+
lineHeight: 1.375,
|
753
|
+
textTransform: "none"
|
754
|
+
},
|
755
|
+
fontPostScriptName: "Inter-Bold"
|
756
|
+
},
|
757
|
+
{
|
758
|
+
name: "heading",
|
759
|
+
className: "typography-heading",
|
760
|
+
style: {
|
761
|
+
fontFamily: "Inter",
|
762
|
+
fontSize: "24px",
|
763
|
+
fontWeight: 700,
|
764
|
+
fontStyle: "normal",
|
765
|
+
lineHeight: 1.375,
|
766
|
+
textTransform: "none"
|
767
|
+
},
|
768
|
+
fontPostScriptName: "Inter-Bold"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
name: "subheading",
|
772
|
+
className: "typography-subheading",
|
773
|
+
style: {
|
774
|
+
fontFamily: "Inter",
|
775
|
+
fontSize: "20px",
|
776
|
+
fontWeight: 600,
|
777
|
+
fontStyle: "normal",
|
778
|
+
lineHeight: 1.375,
|
779
|
+
textTransform: "none"
|
780
|
+
},
|
781
|
+
fontPostScriptName: "Inter-Bold"
|
782
|
+
},
|
783
|
+
{
|
784
|
+
name: "large-strong",
|
785
|
+
className: "typography-large-strong",
|
786
|
+
style: {
|
787
|
+
fontFamily: "Inter",
|
788
|
+
fontSize: "20px",
|
789
|
+
fontWeight: 600,
|
790
|
+
fontStyle: "normal",
|
791
|
+
lineHeight: 1.58,
|
792
|
+
textTransform: "none"
|
793
|
+
},
|
794
|
+
fontPostScriptName: "Inter-SemiBold"
|
795
|
+
},
|
796
|
+
{
|
797
|
+
name: "large",
|
798
|
+
className: "typography-large",
|
799
|
+
style: {
|
800
|
+
fontFamily: "Inter",
|
801
|
+
fontSize: "20px",
|
802
|
+
fontWeight: 500,
|
803
|
+
fontStyle: "normal",
|
804
|
+
lineHeight: 1.58,
|
805
|
+
textTransform: "none"
|
806
|
+
},
|
807
|
+
fontPostScriptName: "Inter-SemiBold"
|
808
|
+
},
|
809
|
+
{
|
810
|
+
name: "default-strong",
|
811
|
+
className: "typography-default-strong",
|
812
|
+
style: {
|
813
|
+
fontFamily: "Inter",
|
814
|
+
fontSize: "16px",
|
815
|
+
fontWeight: 600,
|
816
|
+
fontStyle: "normal",
|
817
|
+
lineHeight: 1.5,
|
818
|
+
textTransform: "none"
|
819
|
+
},
|
820
|
+
fontPostScriptName: "Inter-SemiBold"
|
821
|
+
},
|
822
|
+
{
|
823
|
+
name: "default",
|
824
|
+
className: "typography-default",
|
825
|
+
style: {
|
826
|
+
fontFamily: "Inter",
|
827
|
+
fontSize: "16px",
|
828
|
+
fontWeight: 400,
|
829
|
+
fontStyle: "normal",
|
830
|
+
lineHeight: 1.5,
|
831
|
+
textTransform: "none"
|
832
|
+
},
|
833
|
+
fontPostScriptName: null
|
834
|
+
},
|
835
|
+
{
|
836
|
+
name: "small-strong",
|
837
|
+
className: "typography-small-strong",
|
838
|
+
style: {
|
839
|
+
fontFamily: "Inter",
|
840
|
+
fontSize: "14px",
|
841
|
+
fontWeight: 600,
|
842
|
+
fontStyle: "normal",
|
843
|
+
lineHeight: 1.42,
|
844
|
+
textTransform: "none"
|
845
|
+
},
|
846
|
+
fontPostScriptName: "Inter-SemiBold"
|
847
|
+
},
|
848
|
+
{
|
849
|
+
name: "small",
|
850
|
+
className: "typography-small",
|
851
|
+
style: {
|
852
|
+
fontFamily: "Inter",
|
853
|
+
fontSize: "14px",
|
854
|
+
fontWeight: 400,
|
855
|
+
fontStyle: "normal",
|
856
|
+
lineHeight: 1.42,
|
857
|
+
textTransform: "none"
|
858
|
+
},
|
859
|
+
fontPostScriptName: null
|
860
|
+
},
|
861
|
+
{
|
862
|
+
name: "caption",
|
863
|
+
className: "typography-caption",
|
864
|
+
style: {
|
865
|
+
fontFamily: "Inter",
|
866
|
+
fontSize: "12px",
|
867
|
+
fontWeight: 400,
|
868
|
+
fontStyle: "normal",
|
869
|
+
lineHeight: 1.26,
|
870
|
+
textTransform: "none"
|
871
|
+
},
|
872
|
+
fontPostScriptName: null
|
873
|
+
},
|
615
874
|
{
|
616
875
|
name: "caption-small",
|
617
876
|
className: "typography-caption-small",
|
@@ -990,12 +1249,12 @@ var require_confirm = __commonJS({
|
|
990
1249
|
}
|
991
1250
|
});
|
992
1251
|
|
993
|
-
// src/icons/
|
994
|
-
var
|
995
|
-
"src/icons/
|
1252
|
+
// src/icons/cross.js
|
1253
|
+
var require_cross = __commonJS({
|
1254
|
+
"src/icons/cross.js"(exports) {
|
996
1255
|
"use strict";
|
997
1256
|
var data = {
|
998
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1257
|
+
"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"/>',
|
999
1258
|
"left": 0,
|
1000
1259
|
"top": 0,
|
1001
1260
|
"width": 20,
|
@@ -1038,12 +1297,12 @@ var require_infoSign = __commonJS({
|
|
1038
1297
|
}
|
1039
1298
|
});
|
1040
1299
|
|
1041
|
-
// src/icons/
|
1042
|
-
var
|
1043
|
-
"src/icons/
|
1300
|
+
// src/icons/warningSign.js
|
1301
|
+
var require_warningSign = __commonJS({
|
1302
|
+
"src/icons/warningSign.js"(exports) {
|
1044
1303
|
"use strict";
|
1045
1304
|
var data = {
|
1046
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1305
|
+
"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"/>',
|
1047
1306
|
"left": 0,
|
1048
1307
|
"top": 0,
|
1049
1308
|
"width": 20,
|
@@ -1054,12 +1313,12 @@ var require_cross = __commonJS({
|
|
1054
1313
|
}
|
1055
1314
|
});
|
1056
1315
|
|
1057
|
-
// src/icons/
|
1058
|
-
var
|
1059
|
-
"src/icons/
|
1316
|
+
// src/icons/minus.js
|
1317
|
+
var require_minus = __commonJS({
|
1318
|
+
"src/icons/minus.js"(exports) {
|
1060
1319
|
"use strict";
|
1061
1320
|
var data = {
|
1062
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1321
|
+
"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"/>',
|
1063
1322
|
"left": 0,
|
1064
1323
|
"top": 0,
|
1065
1324
|
"width": 20,
|
@@ -1070,12 +1329,12 @@ var require_tick = __commonJS({
|
|
1070
1329
|
}
|
1071
1330
|
});
|
1072
1331
|
|
1073
|
-
// src/icons/
|
1074
|
-
var
|
1075
|
-
"src/icons/
|
1332
|
+
// src/icons/tick.js
|
1333
|
+
var require_tick = __commonJS({
|
1334
|
+
"src/icons/tick.js"(exports) {
|
1076
1335
|
"use strict";
|
1077
1336
|
var data = {
|
1078
|
-
"body": '<path fill="currentColor" fill-rule="evenodd" d="
|
1337
|
+
"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"/>',
|
1079
1338
|
"left": 0,
|
1080
1339
|
"top": 0,
|
1081
1340
|
"width": 20,
|
@@ -1133,6 +1392,7 @@ __export(common_exports, {
|
|
1133
1392
|
PopoverDialog: () => PopoverDialog,
|
1134
1393
|
RadioButton: () => RadioButton,
|
1135
1394
|
Select: () => Select,
|
1395
|
+
Switch: () => Switch,
|
1136
1396
|
Table: () => Table,
|
1137
1397
|
cellClassNames: () => cellClassNames,
|
1138
1398
|
getAlignClassNames: () => getAlignClassNames,
|
@@ -1150,79 +1410,22 @@ module.exports = __toCommonJS(common_exports);
|
|
1150
1410
|
// src/common/Alert/Alert.tsx
|
1151
1411
|
var import_react12 = __toESM(require("react"));
|
1152
1412
|
|
1153
|
-
// src/utils/tailwind.ts
|
1154
|
-
var import_classnames = __toESM(require("classnames"));
|
1155
|
-
function cleanClassNames(classNames2) {
|
1156
|
-
const tokens = classNames2.split(/\s+/);
|
1157
|
-
return tokens.filter((item) => item).join(" ");
|
1158
|
-
}
|
1159
|
-
function tw(classesOrModifiers1, classesOrModifiers2, classesOrModifiers3, classesOrModifiers4, classesOrModifiers5, classesOrModifiers6, classesOrModifiers7, classesOrModifiers8, classesOrModifiers9, classesOrModifiers10) {
|
1160
|
-
const result = (0, import_classnames.default)(
|
1161
|
-
classesOrModifiers1,
|
1162
|
-
classesOrModifiers2,
|
1163
|
-
classesOrModifiers3,
|
1164
|
-
classesOrModifiers4,
|
1165
|
-
classesOrModifiers5,
|
1166
|
-
classesOrModifiers6,
|
1167
|
-
classesOrModifiers7,
|
1168
|
-
classesOrModifiers8,
|
1169
|
-
classesOrModifiers9,
|
1170
|
-
classesOrModifiers10
|
1171
|
-
);
|
1172
|
-
return cleanClassNames(result);
|
1173
|
-
}
|
1174
|
-
var classNames = (...args) => {
|
1175
|
-
const result = (0, import_classnames.default)(...args);
|
1176
|
-
return cleanClassNames(result);
|
1177
|
-
};
|
1178
|
-
|
1179
1413
|
// src/components/Button/Button.tsx
|
1180
1414
|
var import_react10 = __toESM(require("react"));
|
1181
1415
|
|
1182
|
-
// src/components/Icon/Icon.tsx
|
1183
|
-
var import_react = __toESM(require("react"));
|
1184
|
-
var import_react2 = require("@iconify/react");
|
1185
|
-
var Icon = import_react.default.forwardRef((_a, ref) => {
|
1186
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
1187
|
-
const classes = classNames(className, color && `text-${color}`);
|
1188
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react2.Icon, __spreadValues({
|
1189
|
-
ref: ref != null ? ref : void 0,
|
1190
|
-
className: classes !== "" ? classes : void 0
|
1191
|
-
}, rest));
|
1192
|
-
});
|
1193
|
-
var InlineIcon = import_react.default.forwardRef((_a, ref) => {
|
1194
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
1195
|
-
const classes = classNames(color && `text-${color}`);
|
1196
|
-
return /* @__PURE__ */ import_react.default.createElement("span", {
|
1197
|
-
className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
|
1198
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_react2.InlineIcon, __spreadValues({
|
1199
|
-
ref: ref != null ? ref : void 0,
|
1200
|
-
className: classes !== "" ? classes : void 0
|
1201
|
-
}, rest)));
|
1202
|
-
});
|
1203
|
-
|
1204
1416
|
// src/components/Flexbox/Flexbox.tsx
|
1205
|
-
var
|
1417
|
+
var import_react5 = __toESM(require("react"));
|
1206
1418
|
|
1207
1419
|
// src/components/Tailwindify/Tailwindify.tsx
|
1208
|
-
var
|
1420
|
+
var import_react4 = __toESM(require("react"));
|
1209
1421
|
var import_get2 = __toESM(require("lodash/get"));
|
1210
1422
|
var import_isUndefined4 = __toESM(require("lodash/isUndefined"));
|
1211
1423
|
|
1212
1424
|
// src/utils/useStyle.ts
|
1213
|
-
var
|
1425
|
+
var import_react3 = require("react");
|
1214
1426
|
var import_get = __toESM(require("lodash/get"));
|
1215
|
-
var import_isUndefined3 = __toESM(require("lodash/isUndefined"));
|
1216
1427
|
var import_isPlainObject2 = __toESM(require("lodash/isPlainObject"));
|
1217
|
-
|
1218
|
-
// src/components/Context/Context.tsx
|
1219
|
-
var import_react4 = __toESM(require("react"));
|
1220
|
-
var import_overlays = require("@react-aria/overlays");
|
1221
|
-
|
1222
|
-
// src/utils/breakpoints.ts
|
1223
|
-
var import_isUndefined = __toESM(require("lodash/isUndefined"));
|
1224
|
-
var import_orderBy = __toESM(require("lodash/orderBy"));
|
1225
|
-
var import_isPlainObject = __toESM(require("lodash/isPlainObject"));
|
1428
|
+
var import_isUndefined3 = __toESM(require("lodash/isUndefined"));
|
1226
1429
|
|
1227
1430
|
// tailwind.theme.json
|
1228
1431
|
var tailwind_theme_default = {
|
@@ -1747,7 +1950,14 @@ var tailwind_theme_default = {
|
|
1747
1950
|
}
|
1748
1951
|
};
|
1749
1952
|
|
1953
|
+
// src/components/Context/Context.tsx
|
1954
|
+
var import_react2 = __toESM(require("react"));
|
1955
|
+
var import_overlays = require("@react-aria/overlays");
|
1956
|
+
|
1750
1957
|
// src/utils/breakpoints.ts
|
1958
|
+
var import_isPlainObject = __toESM(require("lodash/isPlainObject"));
|
1959
|
+
var import_isUndefined = __toESM(require("lodash/isUndefined"));
|
1960
|
+
var import_orderBy = __toESM(require("lodash/orderBy"));
|
1751
1961
|
var { screens: allBreakpoints } = tailwind_theme_default;
|
1752
1962
|
var SCREEN_TO_PX_MAPPING = getPxMapping(allBreakpoints);
|
1753
1963
|
var BREAKPOINT_PRIORITY = (0, import_orderBy.default)(
|
@@ -1792,15 +2002,15 @@ function selectBreakpointValue(value, matches) {
|
|
1792
2002
|
}
|
1793
2003
|
|
1794
2004
|
// src/utils/useWindowSize.ts
|
1795
|
-
var
|
1796
|
-
var import_isUndefined2 = __toESM(require("lodash/isUndefined"));
|
2005
|
+
var import_react = require("react");
|
1797
2006
|
var import_debounce = __toESM(require("lodash/debounce"));
|
2007
|
+
var import_isUndefined2 = __toESM(require("lodash/isUndefined"));
|
1798
2008
|
|
1799
2009
|
// src/components/Context/Context.tsx
|
1800
2010
|
var context = {
|
1801
2011
|
breakpointMatches: getMatches(void 0)
|
1802
2012
|
};
|
1803
|
-
var DesignSystemContext =
|
2013
|
+
var DesignSystemContext = import_react2.default.createContext(context);
|
1804
2014
|
|
1805
2015
|
// src/utils/useStyle.ts
|
1806
2016
|
var THEME_MAPPING = {
|
@@ -1824,7 +2034,7 @@ function resolveTailwindThemeValue(key, val) {
|
|
1824
2034
|
return val;
|
1825
2035
|
}
|
1826
2036
|
function useStyle(styles) {
|
1827
|
-
const context2 = (0,
|
2037
|
+
const context2 = (0, import_react3.useContext)(DesignSystemContext);
|
1828
2038
|
return Object.keys(styles).reduce((acc, key) => {
|
1829
2039
|
const property = styles[key];
|
1830
2040
|
const isStylesObject = (0, import_isPlainObject2.default)(property) && "value" in property;
|
@@ -1924,8 +2134,8 @@ function Tailwindify(Component) {
|
|
1924
2134
|
const componentProps = __spreadProps(__spreadValues({}, otherProps), {
|
1925
2135
|
style: finalStyle
|
1926
2136
|
});
|
1927
|
-
const childrenWithProps =
|
1928
|
-
if (!
|
2137
|
+
const childrenWithProps = import_react4.default.Children.map(children, (child, index) => {
|
2138
|
+
if (!import_react4.default.isValidElement(child)) {
|
1929
2139
|
return child;
|
1930
2140
|
}
|
1931
2141
|
const isLastChild = index === children.length - 1;
|
@@ -1946,9 +2156,9 @@ function Tailwindify(Component) {
|
|
1946
2156
|
}
|
1947
2157
|
const childStyle = (0, import_get2.default)(child, ["props", "style"], {});
|
1948
2158
|
const newProps = __spreadProps(__spreadValues({}, childProps), { style: __spreadValues(__spreadValues({}, childStyle), additionalStyle) });
|
1949
|
-
return
|
2159
|
+
return import_react4.default.cloneElement(child, newProps);
|
1950
2160
|
});
|
1951
|
-
return /* @__PURE__ */
|
2161
|
+
return /* @__PURE__ */ import_react4.default.createElement(Component, __spreadValues({
|
1952
2162
|
className,
|
1953
2163
|
children: childrenWithProps
|
1954
2164
|
}, componentProps));
|
@@ -1984,17 +2194,67 @@ var Flexbox = Tailwindify(
|
|
1984
2194
|
rowGap
|
1985
2195
|
});
|
1986
2196
|
const HtmlElement = htmlTag;
|
1987
|
-
return /* @__PURE__ */
|
2197
|
+
return /* @__PURE__ */ import_react5.default.createElement(HtmlElement, {
|
1988
2198
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
1989
2199
|
className
|
1990
2200
|
}, children);
|
1991
2201
|
}
|
1992
2202
|
);
|
1993
2203
|
|
2204
|
+
// src/components/Icon/Icon.tsx
|
2205
|
+
var import_react6 = __toESM(require("react"));
|
2206
|
+
var import_react7 = require("@iconify/react");
|
2207
|
+
|
2208
|
+
// src/utils/tailwind.ts
|
2209
|
+
var import_classnames = __toESM(require("classnames"));
|
2210
|
+
function cleanClassNames(classNames2) {
|
2211
|
+
const tokens = classNames2.split(/\s+/);
|
2212
|
+
return tokens.filter((item) => item).join(" ");
|
2213
|
+
}
|
2214
|
+
function tw(classesOrModifiers1, classesOrModifiers2, classesOrModifiers3, classesOrModifiers4, classesOrModifiers5, classesOrModifiers6, classesOrModifiers7, classesOrModifiers8, classesOrModifiers9, classesOrModifiers10) {
|
2215
|
+
const result = (0, import_classnames.default)(
|
2216
|
+
classesOrModifiers1,
|
2217
|
+
classesOrModifiers2,
|
2218
|
+
classesOrModifiers3,
|
2219
|
+
classesOrModifiers4,
|
2220
|
+
classesOrModifiers5,
|
2221
|
+
classesOrModifiers6,
|
2222
|
+
classesOrModifiers7,
|
2223
|
+
classesOrModifiers8,
|
2224
|
+
classesOrModifiers9,
|
2225
|
+
classesOrModifiers10
|
2226
|
+
);
|
2227
|
+
return cleanClassNames(result);
|
2228
|
+
}
|
2229
|
+
var classNames = (...args) => {
|
2230
|
+
const result = (0, import_classnames.default)(...args);
|
2231
|
+
return cleanClassNames(result);
|
2232
|
+
};
|
2233
|
+
|
2234
|
+
// src/components/Icon/Icon.tsx
|
2235
|
+
var Icon = import_react6.default.forwardRef((_a, ref) => {
|
2236
|
+
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2237
|
+
const classes = classNames(className, color && `text-${color}`);
|
2238
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react7.Icon, __spreadValues({
|
2239
|
+
ref: ref != null ? ref : void 0,
|
2240
|
+
className: classes !== "" ? classes : void 0
|
2241
|
+
}, rest));
|
2242
|
+
});
|
2243
|
+
var InlineIcon = import_react6.default.forwardRef((_a, ref) => {
|
2244
|
+
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2245
|
+
const classes = classNames(color && `text-${color}`);
|
2246
|
+
return /* @__PURE__ */ import_react6.default.createElement("span", {
|
2247
|
+
className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
|
2248
|
+
}, /* @__PURE__ */ import_react6.default.createElement(import_react7.InlineIcon, __spreadValues({
|
2249
|
+
ref: ref != null ? ref : void 0,
|
2250
|
+
className: classes !== "" ? classes : void 0
|
2251
|
+
}, rest)));
|
2252
|
+
});
|
2253
|
+
|
1994
2254
|
// src/components/Tooltip/Tooltip.tsx
|
1995
2255
|
var import_react9 = __toESM(require("react"));
|
1996
|
-
var import_tooltip = require("@react-aria/tooltip");
|
1997
2256
|
var import_overlays3 = require("@react-aria/overlays");
|
2257
|
+
var import_tooltip = require("@react-aria/tooltip");
|
1998
2258
|
var import_utils = require("@react-aria/utils");
|
1999
2259
|
|
2000
2260
|
// src/components/Tooltip/useTooltipTriggerState.ts
|
@@ -2181,7 +2441,7 @@ var TooltipWrapper = import_react9.default.forwardRef(
|
|
2181
2441
|
const arrowStyle = getArrowStyle(ref.current, placement, (_a2 = arrowProps.style) != null ? _a2 : {});
|
2182
2442
|
return /* @__PURE__ */ import_react9.default.createElement(import_overlays3.OverlayContainer, null, /* @__PURE__ */ import_react9.default.createElement("div", __spreadValues({
|
2183
2443
|
ref,
|
2184
|
-
className: tw("p-3 rounded-sm typography-caption
|
2444
|
+
className: tw("p-3 rounded-sm typography-caption max-w-[320px] bg-grey-90 text-white")
|
2185
2445
|
}, (0, import_utils.mergeProps)(props, tooltipProps)), props.children, /* @__PURE__ */ import_react9.default.createElement(Arrow, __spreadProps(__spreadValues({}, arrowProps), {
|
2186
2446
|
style: arrowStyle
|
2187
2447
|
}))));
|
@@ -2338,8 +2598,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
2338
2598
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
2339
2599
|
tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
|
2340
2600
|
"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,
|
2341
|
-
"typography-
|
2342
|
-
"typography-
|
2601
|
+
"typography-default": !dense && !isIconOnlyButton,
|
2602
|
+
"typography-small": dense && !isIconOnlyButton,
|
2343
2603
|
"py-3 px-4": !dense && isButton,
|
2344
2604
|
"py-2 px-3": dense && isButton,
|
2345
2605
|
"py-3": !dense && isGhost,
|
@@ -2434,7 +2694,7 @@ var typographies = import_resolveTheme.theme.typography.sizes.reduce(
|
|
2434
2694
|
var Typography = (_a) => {
|
2435
2695
|
var _b = _a, {
|
2436
2696
|
children,
|
2437
|
-
variant = "
|
2697
|
+
variant = "default",
|
2438
2698
|
color,
|
2439
2699
|
htmlTag = "div",
|
2440
2700
|
className,
|
@@ -2458,10 +2718,10 @@ var Typography = (_a) => {
|
|
2458
2718
|
|
2459
2719
|
// src/common/Alert/Alert.tsx
|
2460
2720
|
var import_confirm = __toESM(require_confirm());
|
2461
|
-
var
|
2721
|
+
var import_cross = __toESM(require_cross());
|
2462
2722
|
var import_error = __toESM(require_error());
|
2463
2723
|
var import_infoSign = __toESM(require_infoSign());
|
2464
|
-
var
|
2724
|
+
var import_warningSign = __toESM(require_warningSign());
|
2465
2725
|
var alertTypes = {
|
2466
2726
|
information: {
|
2467
2727
|
icon: import_infoSign.default,
|
@@ -2509,16 +2769,15 @@ var Alert = (_a) => {
|
|
2509
2769
|
Alert.Title = (_a) => {
|
2510
2770
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2511
2771
|
return /* @__PURE__ */ import_react12.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2512
|
-
variant: "
|
2772
|
+
variant: "default-strong",
|
2513
2773
|
color: "grey-80",
|
2514
|
-
fontWeight: 500,
|
2515
2774
|
className: classNames(tw("col-start-2"), className)
|
2516
2775
|
}), children);
|
2517
2776
|
};
|
2518
2777
|
Alert.Description = (_a) => {
|
2519
2778
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2520
2779
|
return /* @__PURE__ */ import_react12.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2521
|
-
variant: "
|
2780
|
+
variant: "small",
|
2522
2781
|
color: "grey-60",
|
2523
2782
|
className: classNames(tw("col-start-2"), className)
|
2524
2783
|
}), children);
|
@@ -2552,45 +2811,35 @@ Alert.Dismiss = (_a) => {
|
|
2552
2811
|
|
2553
2812
|
// src/common/Checkbox/Checkbox.tsx
|
2554
2813
|
var import_react13 = __toESM(require("react"));
|
2555
|
-
var import_tick = __toESM(require_tick());
|
2556
2814
|
var import_minus = __toESM(require_minus());
|
2815
|
+
var import_tick = __toESM(require_tick());
|
2557
2816
|
var Checkbox = import_react13.default.forwardRef(
|
2558
2817
|
(_a, ref) => {
|
2559
|
-
var _b = _a, { id, children, name,
|
2818
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
2560
2819
|
return /* @__PURE__ */ import_react13.default.createElement("span", {
|
2561
|
-
className:
|
2562
|
-
tw("inline-flex justify-center items-center relative self-center", {
|
2563
|
-
"text-grey-30": disabled,
|
2564
|
-
"text-grey-100 cursor-pointer": !disabled
|
2565
|
-
})
|
2566
|
-
)
|
2820
|
+
className: tw("inline-flex justify-center items-center self-center")
|
2567
2821
|
}, /* @__PURE__ */ import_react13.default.createElement("input", __spreadProps(__spreadValues({
|
2568
2822
|
id,
|
2569
2823
|
ref,
|
2570
2824
|
type: "checkbox",
|
2571
2825
|
name
|
2572
2826
|
}, props), {
|
2573
|
-
|
2574
|
-
className: classNames(
|
2575
|
-
tw("appearance-none rounded-sm border"),
|
2576
|
-
{
|
2577
|
-
"cursor-pointer": !disabled,
|
2578
|
-
"border-grey-20 hover:border-grey-50 focus:border-info-70": !disabled && !checked,
|
2579
|
-
"border-navyBlue-100 bg-navyBlue-100": !disabled && checked,
|
2580
|
-
"border-grey-5 cursor-not-allowed": disabled,
|
2581
|
-
"bg-grey-0": disabled && checked
|
2582
|
-
},
|
2583
|
-
props.className
|
2584
|
-
),
|
2585
|
-
style: __spreadValues({ width: 16, height: 16 }, props.style),
|
2827
|
+
className: tw("opacity-0 peer w-0 h-0"),
|
2586
2828
|
readOnly,
|
2587
2829
|
disabled
|
2588
|
-
})),
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2830
|
+
})), /* @__PURE__ */ import_react13.default.createElement(Icon, {
|
2831
|
+
icon: indeterminate ? import_minus.default : import_tick.default,
|
2832
|
+
className: classNames(
|
2833
|
+
tw(
|
2834
|
+
"rounded-sm border peer w-5 h-5 p-[3px] pointer-events-none cursor-pointer peer-disabled:cursor-not-allowed",
|
2835
|
+
"border-grey-20 peer-focus:border-info-70 peer-disabled:border-grey-5 peer-checked:border-navyBlue-100",
|
2836
|
+
"text-transparent peer-checked:[&>path]:stroke-2 peer-checked:text-white peer-checked:[&>path]:stroke-white"
|
2837
|
+
),
|
2838
|
+
{
|
2839
|
+
"peer-checked:bg-navyBlue-100 peer-hover:border-grey-50": !disabled,
|
2840
|
+
"peer-checked:bg-gray-0 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
|
2841
|
+
}
|
2842
|
+
)
|
2594
2843
|
}));
|
2595
2844
|
}
|
2596
2845
|
);
|
@@ -2604,8 +2853,8 @@ var Container = import_react14.default.forwardRef(
|
|
2604
2853
|
ref,
|
2605
2854
|
className: classNames(
|
2606
2855
|
tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
|
2607
|
-
"typography-
|
2608
|
-
"typography-caption
|
2856
|
+
"typography-small py-2 px-3 gap-x-3": !dense,
|
2857
|
+
"typography-caption py-1 px-2 gap-x-2": dense
|
2609
2858
|
}),
|
2610
2859
|
className
|
2611
2860
|
)
|
@@ -2618,8 +2867,8 @@ var Chip = {
|
|
2618
2867
|
|
2619
2868
|
// src/common/Dialog/Dialog.tsx
|
2620
2869
|
var import_confirm2 = __toESM(require_confirm());
|
2621
|
-
var import_warningSign2 = __toESM(require_warningSign());
|
2622
2870
|
var import_error2 = __toESM(require_error());
|
2871
|
+
var import_warningSign2 = __toESM(require_warningSign());
|
2623
2872
|
var DIALOG_ICONS_AND_COLORS = {
|
2624
2873
|
confirmation: {
|
2625
2874
|
icon: import_confirm2.default,
|
@@ -2641,62 +2890,116 @@ var import_react16 = __toESM(require("react"));
|
|
2641
2890
|
// src/components/Typography/Typography.tsx
|
2642
2891
|
var import_react15 = __toESM(require("react"));
|
2643
2892
|
var Typography2 = (props) => /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadValues({}, props));
|
2644
|
-
Typography2.
|
2893
|
+
Typography2.LargeHeading = (_a) => {
|
2645
2894
|
var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2646
2895
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2647
2896
|
htmlTag,
|
2648
|
-
variant: "heading
|
2897
|
+
variant: "large-heading"
|
2898
|
+
}));
|
2899
|
+
};
|
2900
|
+
Typography2.Heading = (_a) => {
|
2901
|
+
var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2902
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2903
|
+
htmlTag,
|
2904
|
+
variant: "heading"
|
2649
2905
|
}));
|
2650
2906
|
};
|
2651
2907
|
Typography2.Subheading = (_a) => {
|
2652
|
-
var _b = _a, { htmlTag = "h2" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2908
|
+
var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2653
2909
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2654
2910
|
htmlTag,
|
2655
|
-
variant: "
|
2911
|
+
variant: "subheading"
|
2656
2912
|
}));
|
2657
2913
|
};
|
2658
|
-
Typography2.
|
2659
|
-
var _b = _a, { htmlTag = "
|
2914
|
+
Typography2.LargeStrong = (_a) => {
|
2915
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2660
2916
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2661
2917
|
htmlTag,
|
2662
|
-
variant: "
|
2918
|
+
variant: "large-strong"
|
2663
2919
|
}));
|
2664
2920
|
};
|
2665
|
-
Typography2.
|
2666
|
-
var _b = _a, { htmlTag = "
|
2921
|
+
Typography2.Large = (_a) => {
|
2922
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2667
2923
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2668
2924
|
htmlTag,
|
2669
|
-
variant: "
|
2925
|
+
variant: "large"
|
2670
2926
|
}));
|
2671
2927
|
};
|
2672
|
-
Typography2.
|
2673
|
-
var _b = _a, { htmlTag = "
|
2928
|
+
Typography2.DefaultStrong = (_a) => {
|
2929
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2674
2930
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2675
2931
|
htmlTag,
|
2676
|
-
variant: "
|
2932
|
+
variant: "default-strong"
|
2677
2933
|
}));
|
2678
2934
|
};
|
2679
|
-
Typography2.
|
2680
|
-
|
2681
|
-
Typography2.SmallText = (_a) => {
|
2682
|
-
var _b = _a, { htmlTag = "p" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2935
|
+
Typography2.Default = (_a) => {
|
2936
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2683
2937
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2684
2938
|
htmlTag,
|
2685
|
-
variant: "
|
2939
|
+
variant: "default"
|
2686
2940
|
}));
|
2687
2941
|
};
|
2688
|
-
Typography2.
|
2689
|
-
var _b = _a, { htmlTag = "p" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2942
|
+
Typography2.Paragraph = (_a) => {
|
2943
|
+
var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2944
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), {
|
2945
|
+
htmlTag
|
2946
|
+
}));
|
2947
|
+
};
|
2948
|
+
Typography2.P = Typography2.Paragraph;
|
2949
|
+
Typography2.SmallStrong = (_a) => {
|
2950
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2951
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2952
|
+
htmlTag,
|
2953
|
+
variant: "small-strong"
|
2954
|
+
}));
|
2955
|
+
};
|
2956
|
+
Typography2.Small = (_a) => {
|
2957
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2690
2958
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2691
2959
|
htmlTag,
|
2692
|
-
variant: "
|
2960
|
+
variant: "small"
|
2693
2961
|
}));
|
2694
2962
|
};
|
2695
2963
|
Typography2.Caption = (_a) => {
|
2696
|
-
var _b = _a, { htmlTag = "
|
2964
|
+
var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2965
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2966
|
+
htmlTag,
|
2967
|
+
variant: "caption"
|
2968
|
+
}));
|
2969
|
+
};
|
2970
|
+
Typography2.LargeText = (_a) => {
|
2971
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2972
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2973
|
+
htmlTag,
|
2974
|
+
variant: "large-strong"
|
2975
|
+
}));
|
2976
|
+
};
|
2977
|
+
Typography2.MediumText = (_a) => {
|
2978
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2979
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2980
|
+
htmlTag,
|
2981
|
+
variant: "default-strong"
|
2982
|
+
}));
|
2983
|
+
};
|
2984
|
+
Typography2.Text = (_a) => {
|
2985
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2986
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2987
|
+
htmlTag,
|
2988
|
+
variant: "default"
|
2989
|
+
}));
|
2990
|
+
};
|
2991
|
+
Typography2.SmallText = (_a) => {
|
2992
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2697
2993
|
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2698
2994
|
htmlTag,
|
2699
|
-
variant: "
|
2995
|
+
variant: "small"
|
2996
|
+
}));
|
2997
|
+
};
|
2998
|
+
Typography2.SmallTextBold = (_a) => {
|
2999
|
+
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
3000
|
+
return /* @__PURE__ */ import_react15.default.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
3001
|
+
htmlTag,
|
3002
|
+
variant: "small-strong"
|
2700
3003
|
}));
|
2701
3004
|
};
|
2702
3005
|
|
@@ -2710,7 +3013,7 @@ var DropdownMenu = import_react16.default.forwardRef(
|
|
2710
3013
|
style: { maxHeight, minWidth, maxWidth },
|
2711
3014
|
className: classNames(
|
2712
3015
|
className,
|
2713
|
-
"bg-white w-full overflow-y-auto overflow-x-hidden typography-
|
3016
|
+
"bg-white w-full overflow-y-auto overflow-x-hidden typography-small text-grey-70"
|
2714
3017
|
)
|
2715
3018
|
}, props), children);
|
2716
3019
|
}
|
@@ -2734,13 +3037,9 @@ var Group = import_react16.default.forwardRef(
|
|
2734
3037
|
return /* @__PURE__ */ import_react16.default.createElement("li", __spreadValues({
|
2735
3038
|
ref
|
2736
3039
|
}, props), title && /* @__PURE__ */ import_react16.default.createElement("div", __spreadValues({
|
2737
|
-
className: classNames(
|
2738
|
-
|
2739
|
-
|
2740
|
-
{
|
2741
|
-
"text-grey-20": props.disabled
|
2742
|
-
}
|
2743
|
-
)
|
3040
|
+
className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
|
3041
|
+
"text-grey-20": props.disabled
|
3042
|
+
})
|
2744
3043
|
}, titleProps), title), children);
|
2745
3044
|
}
|
2746
3045
|
);
|
@@ -2892,7 +3191,7 @@ Modal.Dialog = import_react19.default.forwardRef(
|
|
2892
3191
|
"aria-modal": "true"
|
2893
3192
|
}, rest), {
|
2894
3193
|
className: classNames(
|
2895
|
-
tw("bg-white rounded mx-7 w-full max-h-full flex flex-col"),
|
3194
|
+
tw("relative bg-white rounded mx-7 w-full max-h-full flex flex-col"),
|
2896
3195
|
{
|
2897
3196
|
"max-w-[600px]": size === "sm",
|
2898
3197
|
"max-w-[940px]": size === "md",
|
@@ -2909,11 +3208,29 @@ Modal.Header = (_a) => {
|
|
2909
3208
|
className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
|
2910
3209
|
}), children);
|
2911
3210
|
};
|
3211
|
+
Modal.HeaderImage = (_a) => {
|
3212
|
+
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
3213
|
+
const common = tw("h-[120px] min-h-[120px] w-full ");
|
3214
|
+
return backgroundImage ? /* @__PURE__ */ import_react19.default.createElement("img", __spreadProps(__spreadValues({
|
3215
|
+
"aria-hidden": true,
|
3216
|
+
src: backgroundImage != null ? backgroundImage : void 0
|
3217
|
+
}, rest), {
|
3218
|
+
className: classNames(common, tw("object-cover"), className)
|
3219
|
+
})) : /* @__PURE__ */ import_react19.default.createElement("div", {
|
3220
|
+
className: classNames(common, tw("bg-grey-5"), className)
|
3221
|
+
});
|
3222
|
+
};
|
3223
|
+
Modal.CloseButtonContainer = (_a) => {
|
3224
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3225
|
+
return /* @__PURE__ */ import_react19.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3226
|
+
className: classNames(tw("absolute top-[20px] right-[28px]"), className)
|
3227
|
+
}));
|
3228
|
+
};
|
2912
3229
|
Modal.Title = (_a) => {
|
2913
3230
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2914
3231
|
return /* @__PURE__ */ import_react19.default.createElement(Typography, __spreadValues({
|
2915
3232
|
htmlTag: "h2",
|
2916
|
-
variant: "
|
3233
|
+
variant: "subheading",
|
2917
3234
|
color: "grey-90",
|
2918
3235
|
className: classNames(tw("leading-none"), className)
|
2919
3236
|
}, rest), children);
|
@@ -2921,7 +3238,7 @@ Modal.Title = (_a) => {
|
|
2921
3238
|
Modal.Subtitle = (_a) => {
|
2922
3239
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
2923
3240
|
return /* @__PURE__ */ import_react19.default.createElement(Typography, __spreadValues({
|
2924
|
-
variant: "
|
3241
|
+
variant: "small",
|
2925
3242
|
color: "grey-60"
|
2926
3243
|
}, rest), children);
|
2927
3244
|
};
|
@@ -2951,38 +3268,56 @@ Modal.Actions = (_a) => {
|
|
2951
3268
|
}), children);
|
2952
3269
|
};
|
2953
3270
|
|
2954
|
-
// src/common/
|
3271
|
+
// src/common/Popover/Popover.tsx
|
2955
3272
|
var import_react20 = __toESM(require("react"));
|
3273
|
+
var PopoverPanel = import_react20.default.forwardRef((_a, ref) => {
|
3274
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3275
|
+
return /* @__PURE__ */ import_react20.default.createElement("div", __spreadValues({
|
3276
|
+
ref,
|
3277
|
+
className: classNames(
|
3278
|
+
className,
|
3279
|
+
tw(
|
3280
|
+
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
3281
|
+
)
|
3282
|
+
)
|
3283
|
+
}, props), children);
|
3284
|
+
});
|
3285
|
+
var Popover = {
|
3286
|
+
Panel: PopoverPanel
|
3287
|
+
};
|
3288
|
+
|
3289
|
+
// src/common/PopoverDialog/PopoverDialog.tsx
|
3290
|
+
var import_react21 = __toESM(require("react"));
|
2956
3291
|
var Header = (_a) => {
|
2957
3292
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2958
|
-
return /* @__PURE__ */
|
3293
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2959
3294
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
2960
3295
|
}), children);
|
2961
3296
|
};
|
2962
3297
|
var Title = (_a) => {
|
2963
3298
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2964
|
-
return /* @__PURE__ */
|
3299
|
+
return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2965
3300
|
htmlTag: "h1",
|
2966
|
-
variant: "
|
3301
|
+
variant: "small-strong"
|
2967
3302
|
}), children);
|
2968
3303
|
};
|
2969
3304
|
var Body = (_a) => {
|
2970
3305
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2971
|
-
return /* @__PURE__ */
|
3306
|
+
return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
2972
3307
|
htmlTag: "div",
|
2973
|
-
variant: "caption
|
3308
|
+
variant: "caption",
|
2974
3309
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
2975
3310
|
}), children);
|
2976
3311
|
};
|
2977
3312
|
var Footer = (_a) => {
|
2978
3313
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2979
|
-
return /* @__PURE__ */
|
3314
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2980
3315
|
className: classNames(tw("p-5"), className)
|
2981
3316
|
}), children);
|
2982
3317
|
};
|
2983
3318
|
var Actions = (_a) => {
|
2984
3319
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
2985
|
-
return /* @__PURE__ */
|
3320
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2986
3321
|
className: classNames(tw("flex gap-4"), className)
|
2987
3322
|
}), children);
|
2988
3323
|
};
|
@@ -2994,62 +3329,38 @@ var PopoverDialog = {
|
|
2994
3329
|
Actions
|
2995
3330
|
};
|
2996
3331
|
|
2997
|
-
// src/common/Popover/Popover.tsx
|
2998
|
-
var import_react21 = __toESM(require("react"));
|
2999
|
-
var PopoverPanel = import_react21.default.forwardRef((_a, ref) => {
|
3000
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3001
|
-
return /* @__PURE__ */ import_react21.default.createElement("div", __spreadValues({
|
3002
|
-
ref,
|
3003
|
-
className: classNames(
|
3004
|
-
className,
|
3005
|
-
tw(
|
3006
|
-
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
3007
|
-
)
|
3008
|
-
)
|
3009
|
-
}, props), children);
|
3010
|
-
});
|
3011
|
-
var Popover = {
|
3012
|
-
Panel: PopoverPanel
|
3013
|
-
};
|
3014
|
-
|
3015
3332
|
// src/common/RadioButton/RadioButton.tsx
|
3016
3333
|
var import_react22 = __toESM(require("react"));
|
3017
3334
|
var RadioButton = import_react22.default.forwardRef(
|
3018
3335
|
(_a, ref) => {
|
3019
|
-
var _b = _a, { id, children, name,
|
3336
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3020
3337
|
return /* @__PURE__ */ import_react22.default.createElement("span", {
|
3021
|
-
className: classNames(
|
3022
|
-
tw("inline-flex justify-center items-center relative self-center", {
|
3023
|
-
"text-grey-30": disabled,
|
3024
|
-
"text-grey-100": !disabled
|
3025
|
-
})
|
3026
|
-
)
|
3338
|
+
className: classNames(tw("inline-flex justify-center items-center relative self-center"))
|
3027
3339
|
}, /* @__PURE__ */ import_react22.default.createElement("input", __spreadProps(__spreadValues({
|
3028
3340
|
id,
|
3029
3341
|
ref,
|
3030
3342
|
type: "radio",
|
3031
3343
|
name
|
3032
3344
|
}, props), {
|
3033
|
-
|
3034
|
-
className: classNames(
|
3035
|
-
tw("appearance-none rounded-full border cursor-pointer"),
|
3036
|
-
{
|
3037
|
-
"border-grey-20 hover:border-grey-50 focus:border-info-70": !disabled && !checked,
|
3038
|
-
"border-navyBlue-100": !disabled && checked,
|
3039
|
-
"border-grey-5": disabled
|
3040
|
-
},
|
3041
|
-
props.className
|
3042
|
-
),
|
3043
|
-
style: __spreadValues({ width: 16, height: 16 }, props.style),
|
3345
|
+
className: tw("opacity-0 peer/radio w-0 h-0"),
|
3044
3346
|
readOnly,
|
3045
3347
|
disabled
|
3046
3348
|
})), /* @__PURE__ */ import_react22.default.createElement("span", {
|
3349
|
+
className: tw(
|
3350
|
+
"rounded-full w-5 h-5 p-[3px] border cursor-pointer",
|
3351
|
+
"border-grey-20 peer-focus/radio:border-info-70",
|
3352
|
+
"peer-checked/radio:[&>*]:block",
|
3353
|
+
{
|
3354
|
+
"peer-checked/radio:border-navyBlue-100 peer-hover/radio:border-grey-50": !disabled,
|
3355
|
+
"border-grey-5 peer-checked/radio:[&>*]:opacity-40": disabled
|
3356
|
+
}
|
3357
|
+
)
|
3358
|
+
}, /* @__PURE__ */ import_react22.default.createElement("span", {
|
3047
3359
|
style: { backgroundColor: "currentcolor" },
|
3048
|
-
className: tw("
|
3049
|
-
"opacity-
|
3050
|
-
"opacity-40": disabled && checked
|
3360
|
+
className: tw("w-3 h-3 rounded-full hidden bg-navyBlue-100 pointer-events-none", {
|
3361
|
+
"peer-checked/radio:opacity-40": disabled
|
3051
3362
|
})
|
3052
|
-
}));
|
3363
|
+
})));
|
3053
3364
|
}
|
3054
3365
|
);
|
3055
3366
|
|
@@ -3087,7 +3398,7 @@ var InputContainer = import_react23.default.forwardRef(
|
|
3087
3398
|
ref,
|
3088
3399
|
className: classNames(
|
3089
3400
|
className,
|
3090
|
-
"relative rounded-sm typography-
|
3401
|
+
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-70",
|
3091
3402
|
{
|
3092
3403
|
"border px-3 py-[6px]": variant !== "readOnly",
|
3093
3404
|
"cursor-default": variant === "readOnly",
|
@@ -3109,7 +3420,7 @@ var Input = import_react23.default.forwardRef((_a, ref) => {
|
|
3109
3420
|
type: "text",
|
3110
3421
|
className: classNames(
|
3111
3422
|
className,
|
3112
|
-
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-
|
3423
|
+
"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",
|
3113
3424
|
{
|
3114
3425
|
"text-grey-70": !props.disabled,
|
3115
3426
|
"text-grey-30": props.disabled,
|
@@ -3154,7 +3465,7 @@ var Group2 = import_react23.default.forwardRef((_a, ref) => {
|
|
3154
3465
|
ref,
|
3155
3466
|
className: classNames(
|
3156
3467
|
className,
|
3157
|
-
"flex items-center gap-x-3 p-3 text-grey-40 uppercase cursor-default typography-caption
|
3468
|
+
"flex items-center gap-x-3 p-3 text-grey-40 uppercase cursor-default typography-caption mt-4 first:mt-0",
|
3158
3469
|
{
|
3159
3470
|
"text-grey-20": props.disabled
|
3160
3471
|
}
|
@@ -3225,37 +3536,74 @@ var Select = {
|
|
3225
3536
|
Toggle
|
3226
3537
|
};
|
3227
3538
|
|
3228
|
-
// src/common/
|
3539
|
+
// src/common/Switch/Switch.tsx
|
3229
3540
|
var import_react24 = __toESM(require("react"));
|
3230
|
-
var
|
3541
|
+
var Switch = import_react24.default.forwardRef(
|
3542
|
+
(_a, ref) => {
|
3543
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3544
|
+
return /* @__PURE__ */ import_react24.default.createElement("span", {
|
3545
|
+
className: tw("relative inline-flex justify-center items-center self-center group")
|
3546
|
+
}, /* @__PURE__ */ import_react24.default.createElement("input", __spreadProps(__spreadValues({
|
3547
|
+
id,
|
3548
|
+
ref,
|
3549
|
+
type: "checkbox",
|
3550
|
+
name
|
3551
|
+
}, props), {
|
3552
|
+
className: tw("opacity-0 peer/switch w-0 h-0"),
|
3553
|
+
readOnly,
|
3554
|
+
disabled
|
3555
|
+
})), /* @__PURE__ */ import_react24.default.createElement("span", {
|
3556
|
+
className: tw(
|
3557
|
+
"rounded-full inline-block w-[34px] h-[20px] transition duration-300",
|
3558
|
+
"peer-focus/switch:border border-info-70 bg-grey-20",
|
3559
|
+
{
|
3560
|
+
"group-hover:bg-grey-30 peer-checked/switch:bg-navyBlue-100": !disabled,
|
3561
|
+
"bg-grey-5 peer-checked/switch:opacity-40": disabled
|
3562
|
+
}
|
3563
|
+
)
|
3564
|
+
}), /* @__PURE__ */ import_react24.default.createElement("span", {
|
3565
|
+
className: tw(
|
3566
|
+
"rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
3567
|
+
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
3568
|
+
{
|
3569
|
+
"shadow-4dp": !disabled
|
3570
|
+
}
|
3571
|
+
)
|
3572
|
+
}));
|
3573
|
+
}
|
3574
|
+
);
|
3575
|
+
|
3576
|
+
// src/common/Table/Table.tsx
|
3577
|
+
var import_react25 = __toESM(require("react"));
|
3231
3578
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
3232
|
-
var
|
3233
|
-
var
|
3579
|
+
var import_chevronUp2 = __toESM(require_chevronUp());
|
3580
|
+
var HeadContext = import_react25.default.createContext(null);
|
3581
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
3234
3582
|
var Table = (_a) => {
|
3235
3583
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
3236
|
-
return /* @__PURE__ */
|
3584
|
+
return /* @__PURE__ */ import_react25.default.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
3237
3585
|
className: classNames(tableClassNames, className),
|
3238
3586
|
"aria-label": ariaLabel
|
3239
3587
|
}), children);
|
3240
3588
|
};
|
3241
3589
|
var TableHead = (_a) => {
|
3242
3590
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
3243
|
-
return /* @__PURE__ */
|
3591
|
+
return /* @__PURE__ */ import_react25.default.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ import_react25.default.createElement("tr", null, /* @__PURE__ */ import_react25.default.createElement(HeadContext.Provider, {
|
3244
3592
|
value: { children, sticky }
|
3245
3593
|
}, children)));
|
3246
3594
|
};
|
3247
3595
|
var TableBody = (_a) => {
|
3248
3596
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3249
|
-
return /* @__PURE__ */
|
3597
|
+
return /* @__PURE__ */ import_react25.default.createElement("tbody", __spreadValues({}, rest), children);
|
3250
3598
|
};
|
3251
3599
|
var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
|
3252
3600
|
var TableRow = (_a) => {
|
3253
3601
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3254
|
-
return /* @__PURE__ */
|
3602
|
+
return /* @__PURE__ */ import_react25.default.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
3255
3603
|
className: classNames(rowClassNames, className)
|
3256
3604
|
}), children);
|
3257
3605
|
};
|
3258
|
-
var cellClassNames = tw("px-4 border-b typography-
|
3606
|
+
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
3259
3607
|
var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
|
3260
3608
|
"h-[50px]": table,
|
3261
3609
|
"min-h-[50px]": !table
|
@@ -3267,25 +3615,25 @@ var getHeadCellClassNames = (sticky = true) => {
|
|
3267
3615
|
};
|
3268
3616
|
var TableCell = (_a) => {
|
3269
3617
|
var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
|
3270
|
-
const headContext =
|
3271
|
-
return headContext ? /* @__PURE__ */
|
3618
|
+
const headContext = import_react25.default.useContext(HeadContext);
|
3619
|
+
return headContext ? /* @__PURE__ */ import_react25.default.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
3272
3620
|
className: classNames(
|
3273
3621
|
cellClassNames,
|
3274
3622
|
getHeadCellClassNames(headContext.sticky),
|
3275
3623
|
getAlignClassNames(align),
|
3276
3624
|
className
|
3277
3625
|
)
|
3278
|
-
}), children) : /* @__PURE__ */
|
3626
|
+
}), children) : /* @__PURE__ */ import_react25.default.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
3279
3627
|
className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
|
3280
3628
|
}), children);
|
3281
3629
|
};
|
3282
3630
|
var TableSelectCell = (_a) => {
|
3283
3631
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
3284
|
-
return /* @__PURE__ */
|
3632
|
+
return /* @__PURE__ */ import_react25.default.createElement(Table.Cell, {
|
3285
3633
|
className: tw("leading-[0px]")
|
3286
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
3634
|
+
}, props.type === "radio" ? /* @__PURE__ */ import_react25.default.createElement(RadioButton, __spreadValues({
|
3287
3635
|
"aria-label": ariaLabel
|
3288
|
-
}, props)) : /* @__PURE__ */
|
3636
|
+
}, props)) : /* @__PURE__ */ import_react25.default.createElement(Checkbox, __spreadValues({
|
3289
3637
|
"aria-label": ariaLabel
|
3290
3638
|
}, props)));
|
3291
3639
|
};
|
@@ -3295,39 +3643,39 @@ var getSortCellIconClassNames = (active) => {
|
|
3295
3643
|
};
|
3296
3644
|
var TableSortCell = (_a) => {
|
3297
3645
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
3298
|
-
return /* @__PURE__ */
|
3646
|
+
return /* @__PURE__ */ import_react25.default.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
3299
3647
|
"aria-sort": direction
|
3300
|
-
}), /* @__PURE__ */
|
3648
|
+
}), /* @__PURE__ */ import_react25.default.createElement("span", {
|
3301
3649
|
className: getSortCellButtonClassNames(rest.align),
|
3302
3650
|
role: "button",
|
3303
3651
|
tabIndex: -1,
|
3304
3652
|
onClick
|
3305
|
-
}, children, /* @__PURE__ */
|
3653
|
+
}, children, /* @__PURE__ */ import_react25.default.createElement("div", {
|
3306
3654
|
"data-sort-icons": true,
|
3307
3655
|
className: tw("flex flex-col", {
|
3308
3656
|
"invisible group-hover:visible": direction === "none"
|
3309
3657
|
})
|
3310
|
-
}, /* @__PURE__ */
|
3658
|
+
}, /* @__PURE__ */ import_react25.default.createElement(InlineIcon, {
|
3311
3659
|
icon: import_chevronUp2.default,
|
3312
3660
|
className: getSortCellIconClassNames(direction === "descending")
|
3313
|
-
}), /* @__PURE__ */
|
3661
|
+
}), /* @__PURE__ */ import_react25.default.createElement(InlineIcon, {
|
3314
3662
|
icon: import_chevronDown3.default,
|
3315
3663
|
className: getSortCellIconClassNames(direction === "ascending")
|
3316
3664
|
}))));
|
3317
3665
|
};
|
3318
|
-
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
3666
|
+
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ import_react25.default.createElement("div", {
|
3319
3667
|
className: tw("flex gap-4 items-center")
|
3320
|
-
}, image && /* @__PURE__ */
|
3668
|
+
}, image && /* @__PURE__ */ import_react25.default.createElement("img", {
|
3321
3669
|
src: image,
|
3322
3670
|
alt: imageAlt,
|
3323
3671
|
style: { width: imageSize, height: imageSize }
|
3324
|
-
}), /* @__PURE__ */
|
3325
|
-
Table.Head =
|
3326
|
-
Table.Body =
|
3327
|
-
Table.Row =
|
3328
|
-
Table.Cell =
|
3329
|
-
Table.SortCell =
|
3330
|
-
Table.SelectCell =
|
3672
|
+
}), /* @__PURE__ */ import_react25.default.createElement("div", null, title, caption && /* @__PURE__ */ import_react25.default.createElement(Typography2.Caption, null, caption)));
|
3673
|
+
Table.Head = import_react25.default.memo(TableHead);
|
3674
|
+
Table.Body = import_react25.default.memo(TableBody);
|
3675
|
+
Table.Row = import_react25.default.memo(TableRow);
|
3676
|
+
Table.Cell = import_react25.default.memo(TableCell);
|
3677
|
+
Table.SortCell = import_react25.default.memo(TableSortCell);
|
3678
|
+
Table.SelectCell = import_react25.default.memo(TableSelectCell);
|
3331
3679
|
// Annotate the CommonJS export names for ESM import in node:
|
3332
3680
|
0 && (module.exports = {
|
3333
3681
|
Alert,
|
@@ -3342,6 +3690,7 @@ Table.SelectCell = import_react24.default.memo(TableSelectCell);
|
|
3342
3690
|
PopoverDialog,
|
3343
3691
|
RadioButton,
|
3344
3692
|
Select,
|
3693
|
+
Switch,
|
3345
3694
|
Table,
|
3346
3695
|
cellClassNames,
|
3347
3696
|
getAlignClassNames,
|