@televet/kibble-ui 4.0.0-beta.87 → 4.0.0-beta.89
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/dist/chunks/IconLogo-C4aZqkn1.js.map +1 -1
- package/dist/chunks/{IconLogo-D8EHZ4Is.js → IconLogo-UpYiHEKq.js} +3 -15
- package/dist/chunks/IconLogo-UpYiHEKq.js.map +1 -0
- package/dist/chunks/alert.types-BWFvYNC_.js +139 -0
- package/dist/chunks/alert.types-BWFvYNC_.js.map +1 -0
- package/dist/chunks/alert.types-DTNR8_C-.js.map +1 -1
- package/dist/chunks/{avatar.component-yAhlBo_d.js → avatar.component-DnLr68fv.js} +12 -38
- package/dist/chunks/avatar.component-DnLr68fv.js.map +1 -0
- package/dist/chunks/avatar.component-qXhLVNzG.js.map +1 -1
- package/dist/chunks/avatar.types-Bmt5Uhfb.js.map +1 -1
- package/dist/chunks/avatar.types-C6dZZjdi.js +6 -0
- package/dist/chunks/avatar.types-C6dZZjdi.js.map +1 -0
- package/dist/chunks/{avatarGroup.component-T3cUc5XX.js → avatarGroup.component-CoPnZwjS.js} +3 -6
- package/dist/chunks/avatarGroup.component-CoPnZwjS.js.map +1 -0
- package/dist/chunks/avatarGroup.component-bImv23vg.js.map +1 -1
- package/dist/chunks/{button.component-BpF3MzbZ.js → button.component-D7a32Wjq.js} +2 -2
- package/dist/chunks/button.component-D7a32Wjq.js.map +1 -0
- package/dist/chunks/button.component-Dd9AfGox.js.map +1 -1
- package/dist/chunks/button.types-CujqF5RD.js.map +1 -1
- package/dist/chunks/button.types-DsLMGraz.js.map +1 -1
- package/dist/chunks/buttonGroup.component-0iZj3N28.js.map +1 -1
- package/dist/chunks/buttonGroup.component-8AcSzS3v.js +68 -0
- package/dist/chunks/buttonGroup.component-8AcSzS3v.js.map +1 -0
- package/dist/chunks/card.component-DNX41NGG.js.map +1 -1
- package/dist/chunks/card.component-KNc4HKSh.js.map +1 -1
- package/dist/chunks/card.types-Cixp7ouC.js.map +1 -1
- package/dist/chunks/card.types-MvkQTTZF.js.map +1 -1
- package/dist/chunks/{characterCounter.component-DCSJKVZn.js → characterCounter.component-C4sKYWJ2.js} +9 -35
- package/dist/chunks/characterCounter.component-C4sKYWJ2.js.map +1 -0
- package/dist/chunks/characterCounter.component-Cvw7D33c.js.map +1 -1
- package/dist/chunks/checkbox.component-BoaV-gQi.js.map +1 -1
- package/dist/chunks/{checkbox.component-CT344a1o.js → checkbox.component-CPHPkv89.js} +6 -36
- package/dist/chunks/{checkbox.component-CT344a1o.js.map → checkbox.component-CPHPkv89.js.map} +1 -1
- package/dist/chunks/checkbox.records-CTlAD-2Q.js.map +1 -1
- package/dist/chunks/checkbox.records-DI3mqSNf.js.map +1 -1
- package/dist/chunks/{checkboxGroup.component-CVRj2S5m.js → checkboxGroup.component-I5SdMRRF.js} +3 -3
- package/dist/chunks/checkboxGroup.component-I5SdMRRF.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-X2cU2KU-.js.map +1 -1
- package/dist/chunks/{conversationCard.component-u6I8Phyu.js → conversationCard.component-BcSmuiso.js} +92 -147
- package/dist/chunks/conversationCard.component-BcSmuiso.js.map +1 -0
- package/dist/chunks/conversationCard.component-CkmCkM8o.js.map +1 -1
- package/dist/chunks/datePicker.component-B_wuoiPP.js.map +1 -1
- package/dist/chunks/{datePicker.component-Cger9TA5.js → datePicker.component-WwElikgA.js} +104 -203
- package/dist/chunks/datePicker.component-WwElikgA.js.map +1 -0
- package/dist/chunks/divider.types-0j5qRXed.js.map +1 -1
- package/dist/chunks/divider.types-CK5oFy-i.js.map +1 -1
- package/dist/chunks/{heading.component-Cf58bZa1.js → heading.component-BHha3j1I.js} +2 -2
- package/dist/chunks/heading.component-BHha3j1I.js.map +1 -0
- package/dist/chunks/heading.component-DNsKd4Gh.js.map +1 -1
- package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -1
- package/dist/chunks/{icon.component-DGNCL1Yc.js → icon.component-CFqpWzmV.js} +2 -12
- package/dist/chunks/icon.component-CFqpWzmV.js.map +1 -0
- package/dist/chunks/icon.types-2obj_NKG.js.map +1 -1
- package/dist/chunks/icon.types-DLbVfMjG.js.map +1 -1
- package/dist/chunks/link.component-BlCMfkSE.js.map +1 -1
- package/dist/chunks/{link.component-Dk9j8As1.js → link.component-DxZHLE-2.js} +6 -30
- package/dist/chunks/link.component-DxZHLE-2.js.map +1 -0
- package/dist/chunks/{logo.types-By8TqyNf.js → logo.types-BbSodfBq.js} +2 -2
- package/dist/chunks/logo.types-BbSodfBq.js.map +1 -0
- package/dist/chunks/logo.types-CA_5hGAi.js.map +1 -1
- package/dist/chunks/menu.component-C5NwkXGO.js.map +1 -1
- package/dist/chunks/{menu.component-4gKH4f5l.js → menu.component-q1jaihnb.js} +42 -121
- package/dist/chunks/menu.component-q1jaihnb.js.map +1 -0
- package/dist/chunks/modal.types-CrbC8fs6.js +139 -0
- package/dist/chunks/modal.types-CrbC8fs6.js.map +1 -0
- package/dist/chunks/modal.types-DDwG7coD.js.map +1 -1
- package/dist/chunks/notificationCounter.component-BhZcuBmr.js.map +1 -1
- package/dist/chunks/{notificationCounter.component-Bei8mHSZ.js → notificationCounter.component-BzhAKrKR.js} +2 -10
- package/dist/chunks/notificationCounter.component-BzhAKrKR.js.map +1 -0
- package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +1 -1
- package/dist/chunks/notificationCounter.types-Dm4PSN2Y.js +6 -0
- package/dist/chunks/notificationCounter.types-Dm4PSN2Y.js.map +1 -0
- package/dist/chunks/picture.component-C2C2r_BU.js.map +1 -1
- package/dist/chunks/{picture.component-DKbaaL64.js → picture.component-DECGd77u.js} +2 -15
- package/dist/chunks/picture.component-DECGd77u.js.map +1 -0
- package/dist/chunks/{pinInput.types-Bv67lyfg.js → pinInput.types-Bm4AWHUF.js} +11 -27
- package/dist/chunks/{pinInput.types-Bv67lyfg.js.map → pinInput.types-Bm4AWHUF.js.map} +1 -1
- package/dist/chunks/pinInput.types-DbKKHEtF.js.map +1 -1
- package/dist/chunks/popover.component-D0zb3Bfe.js +2 -0
- package/dist/chunks/popover.component-D0zb3Bfe.js.map +1 -0
- package/dist/chunks/popover.component-Djl4eONo.js +196 -0
- package/dist/chunks/popover.component-Djl4eONo.js.map +1 -0
- package/dist/chunks/popover.recipe--wfvH9po.js.map +1 -1
- package/dist/chunks/popover.recipe-CAAwv6E3.js.map +1 -1
- package/dist/chunks/popover.types-BF2KRf_I.js.map +1 -1
- package/dist/chunks/popover.types-D1O-Ehsz.js +7 -0
- package/dist/chunks/popover.types-D1O-Ehsz.js.map +1 -0
- package/dist/chunks/radio.records-4ih1q8nO.js.map +1 -1
- package/dist/chunks/radio.records-j0JOqaJ4.js.map +1 -1
- package/dist/chunks/{radioGroup.component-DlLvSRNH.js → radioGroup.component-DhvD2nUs.js} +7 -28
- package/dist/chunks/radioGroup.component-DhvD2nUs.js.map +1 -0
- package/dist/chunks/radioGroup.component-e6LsfYzG.js.map +1 -1
- package/dist/chunks/{ratingDots.component-BzxT-9pH.js → ratingDots.component-6HLw7Zp-.js} +6 -26
- package/dist/chunks/ratingDots.component-6HLw7Zp-.js.map +1 -0
- package/dist/chunks/ratingDots.component-B_a_qO9L.js.map +1 -1
- package/dist/chunks/select.component-CPMIVkRk.js.map +1 -1
- package/dist/chunks/{select.component-DrZOaMq1.js → select.component-DzaUsqzM.js} +25 -58
- package/dist/chunks/select.component-DzaUsqzM.js.map +1 -0
- package/dist/chunks/{sortableList.component-iVWhEIAT.js → sortableList.component-Cjeqvf95.js} +10 -47
- package/dist/chunks/{sortableList.component-iVWhEIAT.js.map → sortableList.component-Cjeqvf95.js.map} +1 -1
- package/dist/chunks/sortableList.component-DEMqxtiq.js.map +1 -1
- package/dist/chunks/{spinner.component-BM2OwxA7.js → spinner.component-CzTRzWbL.js} +2 -2
- package/dist/chunks/spinner.component-CzTRzWbL.js.map +1 -0
- package/dist/chunks/spinner.component-lZds47YM.js.map +1 -1
- package/dist/chunks/spinner.types-BCLN5-H2.js.map +1 -1
- package/dist/chunks/spinner.types-g7cTFJkb.js.map +1 -1
- package/dist/chunks/{styledAvatar.types-DaESk8Cq.js → styledAvatar.types-cFMdDiqa.js} +5 -18
- package/dist/chunks/styledAvatar.types-cFMdDiqa.js.map +1 -0
- package/dist/chunks/styledAvatar.types-zeF6AQ1t.js.map +1 -1
- package/dist/chunks/swatch.types-DbgA3RWc.js.map +1 -1
- package/dist/chunks/swatch.types-DiX-4lpJ.js.map +1 -1
- package/dist/chunks/{switch.component-D93JI_c1.js → switch.component-1NMBytrm.js} +4 -17
- package/dist/chunks/{switch.component-D93JI_c1.js.map → switch.component-1NMBytrm.js.map} +1 -1
- package/dist/chunks/switch.component-C4tJUYg9.js.map +1 -1
- package/dist/chunks/{tabs.component-DUUXdx2e.js → tabs.component-ClJfuErZ.js} +7 -32
- package/dist/chunks/{tabs.component-DUUXdx2e.js.map → tabs.component-ClJfuErZ.js.map} +1 -1
- package/dist/chunks/tabs.component-caMRtfBi.js.map +1 -1
- package/dist/chunks/tag.component-BAH11mPX.js.map +1 -1
- package/dist/chunks/tag.component-DcEASytC.js.map +1 -1
- package/dist/chunks/tag.types-B-pzEt1I.js.map +1 -1
- package/dist/chunks/tag.types-BnDFgTvb.js.map +1 -1
- package/dist/chunks/tagBlock.component-CC4azYDm.js.map +1 -1
- package/dist/chunks/{tagBlock.component-DmNtxTyX.js → tagBlock.component-U-lJ5uHV.js} +8 -25
- package/dist/chunks/tagBlock.component-U-lJ5uHV.js.map +1 -0
- package/dist/chunks/text.component-C501PJrN.js.map +1 -1
- package/dist/chunks/{text.component-z4cNuAAI.js → text.component-DJW--Vty.js} +2 -2
- package/dist/chunks/text.component-DJW--Vty.js.map +1 -0
- package/dist/chunks/{textInput.component-BK5TEpr3.js → textInput.component-DpX3YAU9.js} +6 -16
- package/dist/chunks/textInput.component-DpX3YAU9.js.map +1 -0
- package/dist/chunks/textInput.component-o3OfBL3Y.js.map +1 -1
- package/dist/chunks/textarea.component-DDz3lXs_.js.map +1 -1
- package/dist/chunks/{textarea.component-A8ebDcnw.js → textarea.component-suXkF86X.js} +6 -24
- package/dist/chunks/{textarea.component-A8ebDcnw.js.map → textarea.component-suXkF86X.js.map} +1 -1
- package/dist/chunks/{theme.provider-CbB3DTaK.js → theme.provider-1EtPFe0L.js} +65 -172
- package/dist/chunks/{theme.provider-CbB3DTaK.js.map → theme.provider-1EtPFe0L.js.map} +1 -1
- package/dist/chunks/theme.provider-DHy8ThEw.js.map +1 -1
- package/dist/chunks/{timePicker.component-ZFIT5aB6.js → timePicker.component-CO_lfhu6.js} +59 -98
- package/dist/chunks/timePicker.component-CO_lfhu6.js.map +1 -0
- package/dist/chunks/{timePicker.component-BVCoTSf0.js → timePicker.component-DYNS0LFK.js} +2 -2
- package/dist/chunks/timePicker.component-DYNS0LFK.js.map +1 -0
- package/dist/chunks/{timeRange.component-JhMCHzyM.js → timeRange.component-BOfPnxQY.js} +2 -2
- package/dist/chunks/timeRange.component-BOfPnxQY.js.map +1 -0
- package/dist/chunks/{timeRange.component-BSPEZDvW.js → timeRange.component-C9YAU1rk.js} +2 -2
- package/dist/chunks/timeRange.component-C9YAU1rk.js.map +1 -0
- package/dist/chunks/{timestamp.component-DAakI_Tt.js → timestamp.component-DLqT7x-O.js} +4 -7
- package/dist/chunks/{timestamp.component-DAakI_Tt.js.map → timestamp.component-DLqT7x-O.js.map} +1 -1
- package/dist/chunks/timestamp.component-DNYI2gVi.js.map +1 -1
- package/dist/chunks/{toaster.records-BIYC2Ue0.js → toaster.records-Bb46MMbZ.js} +2 -4
- package/dist/chunks/{toaster.records-BIYC2Ue0.js.map → toaster.records-Bb46MMbZ.js.map} +1 -1
- package/dist/chunks/toaster.records-CDCJPDWP.js.map +1 -1
- package/dist/chunks/tooltip.component-CIUcGhxw.js.map +1 -1
- package/dist/chunks/{tooltip.component-BSomeipc.js → tooltip.component-Cr_en1NQ.js} +13 -37
- package/dist/chunks/{tooltip.component-BSomeipc.js.map → tooltip.component-Cr_en1NQ.js.map} +1 -1
- package/dist/chunks/typography-Cqrokog3.js.map +1 -1
- package/dist/chunks/typography-CtiaGoJG.js.map +1 -1
- package/dist/chunks/typography.records-CSy2LmDd.js.map +1 -1
- package/dist/chunks/typography.records-H4aA5AOA.js.map +1 -1
- package/dist/chunks/useIconTextSizeMap-BK-pUrQv.js.map +1 -1
- package/dist/chunks/useIconTextSizeMap-BXmABb54.js.map +1 -1
- package/dist/chunks/usePortalContentRef-CTrvBQ7I.js.map +1 -1
- package/dist/chunks/{usePortalContentRef-KaU-iIV0.js → usePortalContentRef-DO_jc4W9.js} +2 -4
- package/dist/chunks/usePortalContentRef-DO_jc4W9.js.map +1 -0
- package/dist/chunks/withDarkMode-B9LErG-p.js.map +1 -1
- package/dist/chunks/withDarkMode-BE00aGRV.js +21 -0
- package/dist/chunks/withDarkMode-BE00aGRV.js.map +1 -0
- package/dist/chunks/{withFormControl-syyL9lWW.js → withFormControl-B2tHXexu.js} +22 -46
- package/dist/chunks/withFormControl-B2tHXexu.js.map +1 -0
- package/dist/chunks/withFormControl-DBaRp5Zy.js.map +1 -1
- package/dist/chunks/withLightMode-UfFl5ry6.js +20 -0
- package/dist/chunks/withLightMode-UfFl5ry6.js.map +1 -0
- package/dist/chunks/withLightMode-fys9Cbqw.js.map +1 -1
- package/dist/chunks/withTruncation-B6vA2g0w.js.map +1 -1
- package/dist/chunks/{withTruncation-C7AAl87b.js → withTruncation-CQ7mmyn9.js} +2 -2
- package/dist/chunks/withTruncation-CQ7mmyn9.js.map +1 -0
- package/dist/cjs/cli/generate-theme-types.cjs.map +1 -1
- package/dist/cjs/cli/postinstall.cjs.map +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs.map +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -1
- package/dist/cjs/hooks/useColorMode/index.cjs.map +1 -1
- package/dist/cjs/hooks/useColorModeValue/index.cjs.map +1 -1
- package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/shared/records/index.cjs.map +1 -1
- package/dist/cjs/shared/types/index.cjs.map +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/colors/index.cjs.map +1 -1
- package/dist/esm/cli/generate-theme-types.js.map +1 -1
- package/dist/esm/cli/postinstall.js +1 -3
- package/dist/esm/cli/postinstall.js.map +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +2 -2
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/Button/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/generated/index.js +210 -1476
- package/dist/esm/components/Icon/generated/index.js.map +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/generated/index.js +1 -1
- package/dist/esm/components/Logo/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +2 -2
- package/dist/esm/components/Picture/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +2 -2
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Toast/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +39 -39
- package/dist/esm/hocs/index.js +2 -2
- package/dist/esm/hocs/withDarkMode/index.js +1 -1
- package/dist/esm/hocs/withLightMode/index.js +1 -1
- package/dist/esm/hooks/useBreakpoint/index.js.map +1 -1
- package/dist/esm/hooks/useColorMode/index.js.map +1 -1
- package/dist/esm/hooks/useColorModeValue/index.js.map +1 -1
- package/dist/esm/hooks/useDeviceType/index.js.map +1 -1
- package/dist/esm/index.js +42 -42
- package/dist/esm/shared/records/index.js.map +1 -1
- package/dist/esm/shared/types/index.js +2 -13
- package/dist/esm/shared/types/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/semanticTokens/index.js.map +1 -1
- package/dist/esm/theme/tokens/colors/index.js.map +1 -1
- package/dist/types/chakra/index.d.ts +2 -2
- package/dist/types/components/Alert/alert.component.d.ts +1 -1
- package/dist/types/components/Alert/alert.recipe.d.ts +1 -1
- package/dist/types/components/Alert/components/AlertButton/alertButton.component.d.ts +1 -1
- package/dist/types/components/Avatar/avatar.recipe.d.ts +1 -1
- package/dist/types/components/ButtonGroup/buttonGroup.types.d.ts +1 -1
- package/dist/types/components/Checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/checkboxGroup.component.d.ts +1 -1
- package/dist/types/components/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +1 -1
- package/dist/types/components/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +1 -1
- package/dist/types/components/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +1 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.component.d.ts +1 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.recipe.d.ts +1 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.types.d.ts +1 -1
- package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.component.d.ts +2 -2
- package/dist/types/components/DatePicker/components/DatePickerMonth/datePickerCalendarMonth.component.d.ts +1 -1
- package/dist/types/components/DatePicker/context/datePicker.context.d.ts +1 -1
- package/dist/types/components/DatePicker/datePicker.component.d.ts +1 -1
- package/dist/types/components/DatePicker/datePicker.types.d.ts +3 -3
- package/dist/types/components/Heading/heading.types.d.ts +1 -1
- package/dist/types/components/Icon/generated/AiMicrophone.d.ts +1 -1
- package/dist/types/components/Icon/generated/AlertCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalBird.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalCat.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalCow.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalDog.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalHorse.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalMouse.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalPig.d.ts +1 -1
- package/dist/types/components/Icon/generated/AnimalSnake.d.ts +1 -1
- package/dist/types/components/Icon/generated/Archive.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowDown.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowDownRight.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowLeft.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowRight.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowUp.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowsIn.d.ts +1 -1
- package/dist/types/components/Icon/generated/ArrowsOut.d.ts +1 -1
- package/dist/types/components/Icon/generated/Article.d.ts +1 -1
- package/dist/types/components/Icon/generated/Award.d.ts +1 -1
- package/dist/types/components/Icon/generated/Bank.d.ts +1 -1
- package/dist/types/components/Icon/generated/Bell.d.ts +1 -1
- package/dist/types/components/Icon/generated/BellCancel.d.ts +1 -1
- package/dist/types/components/Icon/generated/Bone.d.ts +1 -1
- package/dist/types/components/Icon/generated/Bookmark.d.ts +1 -1
- package/dist/types/components/Icon/generated/BulkSelect.d.ts +1 -1
- package/dist/types/components/Icon/generated/Buttons.d.ts +1 -1
- package/dist/types/components/Icon/generated/CalendarCheck.d.ts +1 -1
- package/dist/types/components/Icon/generated/CalendarDate.d.ts +1 -1
- package/dist/types/components/Icon/generated/CalendarInfo.d.ts +1 -1
- package/dist/types/components/Icon/generated/CalendarPen.d.ts +1 -1
- package/dist/types/components/Icon/generated/CalendarPlus.d.ts +1 -1
- package/dist/types/components/Icon/generated/Camera.d.ts +1 -1
- package/dist/types/components/Icon/generated/CameraOff.d.ts +1 -1
- package/dist/types/components/Icon/generated/Cancel.d.ts +1 -1
- package/dist/types/components/Icon/generated/CaretDown.d.ts +1 -1
- package/dist/types/components/Icon/generated/CaretUp.d.ts +1 -1
- package/dist/types/components/Icon/generated/Cellphone.d.ts +1 -1
- package/dist/types/components/Icon/generated/CellphoneCancel.d.ts +1 -1
- package/dist/types/components/Icon/generated/ChainLink.d.ts +1 -1
- package/dist/types/components/Icon/generated/ChatBubble.d.ts +1 -1
- package/dist/types/components/Icon/generated/Checkmark.d.ts +1 -1
- package/dist/types/components/Icon/generated/CheckmarkBox.d.ts +1 -1
- package/dist/types/components/Icon/generated/CheckmarkCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/ChevronDown.d.ts +1 -1
- package/dist/types/components/Icon/generated/ChevronLeft.d.ts +1 -1
- package/dist/types/components/Icon/generated/ChevronRight.d.ts +1 -1
- package/dist/types/components/Icon/generated/ChevronUp.d.ts +1 -1
- package/dist/types/components/Icon/generated/Clinic.d.ts +1 -1
- package/dist/types/components/Icon/generated/Clock.d.ts +1 -1
- package/dist/types/components/Icon/generated/Close.d.ts +1 -1
- package/dist/types/components/Icon/generated/CloseCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/CloseCircleSolid.d.ts +1 -1
- package/dist/types/components/Icon/generated/Code.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCard.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoAmex.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoDiners.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoDiscover.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoGeneric.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoJcb.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoMastercard.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoUnionpay.d.ts +1 -1
- package/dist/types/components/Icon/generated/CreditCardLogoVisa.d.ts +1 -1
- package/dist/types/components/Icon/generated/Cut.d.ts +1 -1
- package/dist/types/components/Icon/generated/Dollar.d.ts +1 -1
- package/dist/types/components/Icon/generated/DollarCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/DotsHorizontal.d.ts +1 -1
- package/dist/types/components/Icon/generated/DotsVertical.d.ts +1 -1
- package/dist/types/components/Icon/generated/DoubleArrowCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/Download.d.ts +1 -1
- package/dist/types/components/Icon/generated/EmailSend.d.ts +1 -1
- package/dist/types/components/Icon/generated/Envelope.d.ts +1 -1
- package/dist/types/components/Icon/generated/EnvelopeCancel.d.ts +1 -1
- package/dist/types/components/Icon/generated/ExternalLink.d.ts +1 -1
- package/dist/types/components/Icon/generated/EyeOpen.d.ts +1 -1
- package/dist/types/components/Icon/generated/EyeSlash.d.ts +1 -1
- package/dist/types/components/Icon/generated/Eyedropper.d.ts +1 -1
- package/dist/types/components/Icon/generated/FileHealth.d.ts +1 -1
- package/dist/types/components/Icon/generated/Filter.d.ts +1 -1
- package/dist/types/components/Icon/generated/Form.d.ts +1 -1
- package/dist/types/components/Icon/generated/Gear.d.ts +1 -1
- package/dist/types/components/Icon/generated/Gif.d.ts +1 -1
- package/dist/types/components/Icon/generated/Grid.d.ts +1 -1
- package/dist/types/components/Icon/generated/Hashtag.d.ts +1 -1
- package/dist/types/components/Icon/generated/Health.d.ts +1 -1
- package/dist/types/components/Icon/generated/Heart.d.ts +1 -1
- package/dist/types/components/Icon/generated/HeartSolid.d.ts +1 -1
- package/dist/types/components/Icon/generated/House.d.ts +1 -1
- package/dist/types/components/Icon/generated/Image.d.ts +1 -1
- package/dist/types/components/Icon/generated/InfoCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/Input.d.ts +1 -1
- package/dist/types/components/Icon/generated/Invoice.d.ts +1 -1
- package/dist/types/components/Icon/generated/KanbanBoard.d.ts +1 -1
- package/dist/types/components/Icon/generated/List.d.ts +1 -1
- package/dist/types/components/Icon/generated/Liveagent.d.ts +1 -1
- package/dist/types/components/Icon/generated/Loader.d.ts +1 -1
- package/dist/types/components/Icon/generated/LocationMarker.d.ts +1 -1
- package/dist/types/components/Icon/generated/Lock.d.ts +1 -1
- package/dist/types/components/Icon/generated/Logo.d.ts +1 -1
- package/dist/types/components/Icon/generated/Loudspeaker.d.ts +1 -1
- package/dist/types/components/Icon/generated/Magic.d.ts +1 -1
- package/dist/types/components/Icon/generated/MagnifyingGlass.d.ts +1 -1
- package/dist/types/components/Icon/generated/Mailbox.d.ts +1 -1
- package/dist/types/components/Icon/generated/Menu.d.ts +1 -1
- package/dist/types/components/Icon/generated/Message.d.ts +1 -1
- package/dist/types/components/Icon/generated/MessageDetail.d.ts +1 -1
- package/dist/types/components/Icon/generated/MessageWarning.d.ts +1 -1
- package/dist/types/components/Icon/generated/Messages.d.ts +1 -1
- package/dist/types/components/Icon/generated/Microphone.d.ts +1 -1
- package/dist/types/components/Icon/generated/MicrophoneMute.d.ts +1 -1
- package/dist/types/components/Icon/generated/Minus.d.ts +1 -1
- package/dist/types/components/Icon/generated/MoveDown.d.ts +1 -1
- package/dist/types/components/Icon/generated/MoveLeft.d.ts +1 -1
- package/dist/types/components/Icon/generated/MoveRight.d.ts +1 -1
- package/dist/types/components/Icon/generated/MoveUp.d.ts +1 -1
- package/dist/types/components/Icon/generated/Notification.d.ts +1 -1
- package/dist/types/components/Icon/generated/Package.d.ts +1 -1
- package/dist/types/components/Icon/generated/Paperclip.d.ts +1 -1
- package/dist/types/components/Icon/generated/Pause.d.ts +1 -1
- package/dist/types/components/Icon/generated/Paw.d.ts +1 -1
- package/dist/types/components/Icon/generated/Pen.d.ts +1 -1
- package/dist/types/components/Icon/generated/PenSquare.d.ts +1 -1
- package/dist/types/components/Icon/generated/Person.d.ts +1 -1
- package/dist/types/components/Icon/generated/PersonAdd.d.ts +1 -1
- package/dist/types/components/Icon/generated/PersonCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/Phone.d.ts +1 -1
- package/dist/types/components/Icon/generated/PhoneButtons.d.ts +1 -1
- package/dist/types/components/Icon/generated/PhoneCancel.d.ts +1 -1
- package/dist/types/components/Icon/generated/Pill.d.ts +1 -1
- package/dist/types/components/Icon/generated/Pin.d.ts +1 -1
- package/dist/types/components/Icon/generated/PinCancel.d.ts +1 -1
- package/dist/types/components/Icon/generated/Play.d.ts +1 -1
- package/dist/types/components/Icon/generated/Plus.d.ts +1 -1
- package/dist/types/components/Icon/generated/Popup.d.ts +1 -1
- package/dist/types/components/Icon/generated/Printer.d.ts +1 -1
- package/dist/types/components/Icon/generated/QuestionMark.d.ts +1 -1
- package/dist/types/components/Icon/generated/QuestionMarkCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/QuestionMarkCircleSolid.d.ts +1 -1
- package/dist/types/components/Icon/generated/Record.d.ts +1 -1
- package/dist/types/components/Icon/generated/Report.d.ts +1 -1
- package/dist/types/components/Icon/generated/Ribbon.d.ts +1 -1
- package/dist/types/components/Icon/generated/Robot.d.ts +1 -1
- package/dist/types/components/Icon/generated/Send.d.ts +1 -1
- package/dist/types/components/Icon/generated/Sliders.d.ts +1 -1
- package/dist/types/components/Icon/generated/SmileyFace.d.ts +1 -1
- package/dist/types/components/Icon/generated/Sort.d.ts +1 -1
- package/dist/types/components/Icon/generated/Star.d.ts +1 -1
- package/dist/types/components/Icon/generated/StarCircle.d.ts +1 -1
- package/dist/types/components/Icon/generated/StarSolid.d.ts +1 -1
- package/dist/types/components/Icon/generated/Stop.d.ts +1 -1
- package/dist/types/components/Icon/generated/StopRecording.d.ts +1 -1
- package/dist/types/components/Icon/generated/Support.d.ts +1 -1
- package/dist/types/components/Icon/generated/Table.d.ts +1 -1
- package/dist/types/components/Icon/generated/Tag.d.ts +1 -1
- package/dist/types/components/Icon/generated/Target.d.ts +1 -1
- package/dist/types/components/Icon/generated/TargetSolid.d.ts +1 -1
- package/dist/types/components/Icon/generated/TaskList.d.ts +1 -1
- package/dist/types/components/Icon/generated/Team.d.ts +1 -1
- package/dist/types/components/Icon/generated/ThumbsDown.d.ts +1 -1
- package/dist/types/components/Icon/generated/ThumbsUp.d.ts +1 -1
- package/dist/types/components/Icon/generated/Transfer.d.ts +1 -1
- package/dist/types/components/Icon/generated/Trashcan.d.ts +1 -1
- package/dist/types/components/Icon/generated/TwoSquares.d.ts +1 -1
- package/dist/types/components/Icon/generated/Upload.d.ts +1 -1
- package/dist/types/components/Icon/generated/VideoCamera.d.ts +1 -1
- package/dist/types/components/Icon/generated/WarningSign.d.ts +1 -1
- package/dist/types/components/Icon/generated/Website.d.ts +1 -1
- package/dist/types/components/Icon/generated/Wrench.d.ts +1 -1
- package/dist/types/components/Icon/generated/index.d.ts +1 -1
- package/dist/types/components/Link/components/LinkIcon/linkIcon.component.d.ts +3 -3
- package/dist/types/components/Logo/generated/FullLogo.d.ts +1 -1
- package/dist/types/components/Logo/generated/IconLogo.d.ts +1 -1
- package/dist/types/components/Logo/logo.component.d.ts +1 -1
- package/dist/types/components/Menu/components/MenuButton/menuButton.components.d.ts +1 -1
- package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +5 -5
- package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.d.ts +1 -1
- package/dist/types/components/Menu/menu.component.d.ts +2 -2
- package/dist/types/components/PinInput/pinInput.component.d.ts +2 -2
- package/dist/types/components/Popover/popover.component.d.ts +3 -3
- package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
- package/dist/types/components/RadioGroup/radioGroup.component.d.ts +4 -4
- package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +1 -1
- package/dist/types/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +1 -1
- package/dist/types/components/RatingDots/components/RatingDot/ratingDot.recipe.d.ts +1 -1
- package/dist/types/components/Select/select.component.d.ts +1 -1
- package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.component.d.ts +1 -1
- package/dist/types/components/SortableList/sortableList.component.d.ts +2 -2
- package/dist/types/components/Spinner/spinner.component.d.ts +1 -1
- package/dist/types/components/Swatch/swatch.component.d.ts +1 -1
- package/dist/types/components/Switch/switch.component.d.ts +1 -1
- package/dist/types/components/Switch/switch.recipe.d.ts +2 -2
- package/dist/types/components/Tabs/components/Tab/tab.component.d.ts +1 -1
- package/dist/types/components/Tabs/tabs.component.d.ts +1 -1
- package/dist/types/components/Tabs/tabs.recipe.d.ts +1 -1
- package/dist/types/components/Tag/tag.component.d.ts +3 -3
- package/dist/types/components/Tag/tag.recipe.d.ts +1 -1
- package/dist/types/components/Text/text.types.d.ts +1 -1
- package/dist/types/components/TimePicker/components/TimeList/timeList.component.d.ts +1 -1
- package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +1 -1
- package/dist/types/components/TimePicker/timePicker.component.d.ts +1 -1
- package/dist/types/components/Timestamp/timestamp.component.d.ts +1 -1
- package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +2 -2
- package/dist/types/components/Toast/components/Toaster/toaster.types.d.ts +1 -1
- package/dist/types/components/Toast/toast.recipe.d.ts +1 -1
- package/dist/types/components/Toast/toast.types.d.ts +2 -2
- package/dist/types/components/Tooltip/tooltip.component.d.ts +1 -1
- package/dist/types/hocs/withFormControl/withFormControl.types.d.ts +1 -1
- package/dist/types/hocs/withTruncation.d.ts +1 -1
- package/dist/types/hooks/useDeviceType/index.d.ts +1 -1
- package/dist/types/shared/types/theme.d.ts +1 -1
- package/dist/types/shared/utils/sizes.d.ts +1 -1
- package/dist/types/theme/providers/theme.provider.d.ts +1 -1
- package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +1 -1
- package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +2 -2
- package/dist/types/theme/semanticTokens/semanticTokens.types.d.ts +2 -2
- package/dist/types/theme/semanticTokens/utils/getSemanticColorToken.d.ts +2 -2
- package/dist/types/theme/tokens/blurs/blurs.types.d.ts +1 -1
- package/dist/types/theme/tokens/borders/borders.types.d.ts +2 -2
- package/dist/types/theme/tokens/colors/colors.types.d.ts +2 -2
- package/dist/types/theme/tokens/shadows/shadows.types.d.ts +2 -2
- package/dist/types/theme/tokens/sizes/sizes.types.d.ts +2 -2
- package/dist/types/theme/tokens/spacing/spacing.types.d.ts +1 -1
- package/dist/types/theme/tokens/transitions/transitions.types.d.ts +2 -2
- package/dist/types/theme/tokens/typography/typography.types.d.ts +5 -5
- package/dist/types/theme/tokens/zIndices/zIndices.types.d.ts +1 -1
- package/package.json +1 -2
- package/dist/chunks/IconLogo-D8EHZ4Is.js.map +0 -1
- package/dist/chunks/alert.types-QEeDYCAD.js +0 -219
- package/dist/chunks/alert.types-QEeDYCAD.js.map +0 -1
- package/dist/chunks/avatar.component-yAhlBo_d.js.map +0 -1
- package/dist/chunks/avatar.types-LQ1Bn8a3.js +0 -13
- package/dist/chunks/avatar.types-LQ1Bn8a3.js.map +0 -1
- package/dist/chunks/avatarGroup.component-T3cUc5XX.js.map +0 -1
- package/dist/chunks/button.component-BpF3MzbZ.js.map +0 -1
- package/dist/chunks/buttonGroup.component-BuF41rNB.js +0 -77
- package/dist/chunks/buttonGroup.component-BuF41rNB.js.map +0 -1
- package/dist/chunks/characterCounter.component-DCSJKVZn.js.map +0 -1
- package/dist/chunks/checkboxGroup.component-CVRj2S5m.js.map +0 -1
- package/dist/chunks/conversationCard.component-u6I8Phyu.js.map +0 -1
- package/dist/chunks/datePicker.component-Cger9TA5.js.map +0 -1
- package/dist/chunks/heading.component-Cf58bZa1.js.map +0 -1
- package/dist/chunks/icon.component-DGNCL1Yc.js.map +0 -1
- package/dist/chunks/link.component-Dk9j8As1.js.map +0 -1
- package/dist/chunks/logo.types-By8TqyNf.js.map +0 -1
- package/dist/chunks/menu.component-4gKH4f5l.js.map +0 -1
- package/dist/chunks/modal.types-DIDn6Pz1.js +0 -203
- package/dist/chunks/modal.types-DIDn6Pz1.js.map +0 -1
- package/dist/chunks/notificationCounter.component-Bei8mHSZ.js.map +0 -1
- package/dist/chunks/notificationCounter.types-S7ENT1Oj.js +0 -11
- package/dist/chunks/notificationCounter.types-S7ENT1Oj.js.map +0 -1
- package/dist/chunks/picture.component-DKbaaL64.js.map +0 -1
- package/dist/chunks/popover.component-CS8UY9_W.js +0 -2
- package/dist/chunks/popover.component-CS8UY9_W.js.map +0 -1
- package/dist/chunks/popover.component-D2-w2fSE.js +0 -260
- package/dist/chunks/popover.component-D2-w2fSE.js.map +0 -1
- package/dist/chunks/popover.types-C-V7Diw4.js +0 -12
- package/dist/chunks/popover.types-C-V7Diw4.js.map +0 -1
- package/dist/chunks/radioGroup.component-DlLvSRNH.js.map +0 -1
- package/dist/chunks/ratingDots.component-BzxT-9pH.js.map +0 -1
- package/dist/chunks/select.component-DrZOaMq1.js.map +0 -1
- package/dist/chunks/spinner.component-BM2OwxA7.js.map +0 -1
- package/dist/chunks/styledAvatar.types-DaESk8Cq.js.map +0 -1
- package/dist/chunks/tagBlock.component-DmNtxTyX.js.map +0 -1
- package/dist/chunks/text.component-z4cNuAAI.js.map +0 -1
- package/dist/chunks/textInput.component-BK5TEpr3.js.map +0 -1
- package/dist/chunks/timePicker.component-BVCoTSf0.js.map +0 -1
- package/dist/chunks/timePicker.component-ZFIT5aB6.js.map +0 -1
- package/dist/chunks/timeRange.component-BSPEZDvW.js.map +0 -1
- package/dist/chunks/timeRange.component-JhMCHzyM.js.map +0 -1
- package/dist/chunks/usePortalContentRef-KaU-iIV0.js.map +0 -1
- package/dist/chunks/withDarkMode-DBAFsemJ.js +0 -23
- package/dist/chunks/withDarkMode-DBAFsemJ.js.map +0 -1
- package/dist/chunks/withFormControl-syyL9lWW.js.map +0 -1
- package/dist/chunks/withLightMode-C4WljRNZ.js +0 -22
- package/dist/chunks/withLightMode-C4WljRNZ.js.map +0 -1
- package/dist/chunks/withTruncation-C7AAl87b.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { W as c } from "./text.component-
|
|
2
|
+
import { W as c } from "./text.component-DJW--Vty.js";
|
|
3
3
|
import { t as n } from "./typography-Cqrokog3.js";
|
|
4
4
|
import { a as d } from "./config-DlTdf-Yt.js";
|
|
5
5
|
import { u as b } from "./use-slot-recipe-DhtQ1j_5.js";
|
|
@@ -176,4 +176,4 @@ const S = ["root", "spinner", "label"], u = {
|
|
|
176
176
|
export {
|
|
177
177
|
V as S
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=spinner.component-
|
|
179
|
+
//# sourceMappingURL=spinner.component-CzTRzWbL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.component-CzTRzWbL.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import { defineSlotRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { SpinnerSize } from './spinner.types';\nimport { TypographyVariant } from 'shared/types';\nimport { typographyVariantStyles } from '../../shared/records/typography';\n\nconst spinnerSlots = ['root', 'spinner', 'label'] as const;\ntype SpinnerSlot = (typeof spinnerSlots)[number];\ntype SpinnerSlotStyles = {\n [key in SpinnerSlot]?: SystemStyleObject;\n};\n\nconst spinnerSizeStyles: Record<SpinnerSize, SpinnerSlotStyles> = {\n xs: {\n spinner: {\n h: 3,\n w: 3,\n },\n label: {\n fontSize: 'xs',\n },\n },\n sm: {\n spinner: {\n h: 4,\n w: 4,\n },\n label: {\n fontSize: 'sm',\n },\n },\n md: {\n spinner: {\n h: 6,\n w: 6,\n '--spinner-size': 6,\n },\n label: {\n fontSize: 'md',\n },\n },\n lg: {\n spinner: {\n h: 8,\n w: 8,\n },\n label: {\n fontSize: 'lg',\n },\n },\n xl: {\n spinner: {\n h: 12,\n w: 12,\n },\n label: {\n fontSize: 'xl',\n },\n },\n};\n\nconst spinnerVariantStyles: Record<TypographyVariant, SpinnerSlotStyles> = {\n accent: {\n spinner: typographyVariantStyles.accent,\n },\n accentSubtle: {\n spinner: typographyVariantStyles.accentSubtle,\n },\n brand: {\n spinner: typographyVariantStyles.brand,\n },\n brandOnContrast: {\n spinner: typographyVariantStyles.brandOnContrast,\n },\n danger: {\n spinner: typographyVariantStyles.danger,\n },\n dangerOnContrast: {\n spinner: typographyVariantStyles.dangerOnContrast,\n },\n default: {\n spinner: typographyVariantStyles.default,\n },\n info: {\n spinner: typographyVariantStyles.info,\n },\n interactive: {\n spinner: typographyVariantStyles.interactive,\n },\n interactiveOnContrast: {\n spinner: typographyVariantStyles.interactiveOnContrast,\n },\n onContrast: {\n spinner: typographyVariantStyles.onContrast,\n },\n placeholder: {\n spinner: typographyVariantStyles.placeholder,\n },\n placeholderOnContrast: {\n spinner: typographyVariantStyles.placeholderOnContrast,\n },\n subtle: {\n spinner: typographyVariantStyles.subtle,\n },\n subtleOnContrast: {\n spinner: typographyVariantStyles.subtleOnContrast,\n },\n success: {\n spinner: typographyVariantStyles.success,\n },\n warning: {\n spinner: typographyVariantStyles.warning,\n },\n};\n\nexport const spinnerRecipe = defineSlotRecipe({\n slots: spinnerSlots,\n base: {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n },\n variants: {\n variant: spinnerVariantStyles,\n size: spinnerSizeStyles,\n fullScreen: {\n true: {\n root: {\n h: '100%',\n left: 0,\n top: 0,\n position: 'absolute',\n w: '100%',\n zIndex: 'tooltipExtra',\n },\n },\n false: {\n root: {\n h: 'max-content',\n w: 'max-content',\n },\n },\n },\n },\n defaultVariants: {\n fullScreen: false,\n size: 'md',\n variant: 'brand',\n },\n});\n","import React from 'react';\nimport { Spinner as CSpinner } from '@chakra-ui/react/spinner';\nimport { VStack } from '@chakra-ui/react/stack';\nimport { SpinnerSize } from './spinner.types';\nimport { Text, TextProps } from 'components/Text/text.component';\nimport { TypographyVariant } from 'shared/types';\nimport { useSlotRecipe } from '@chakra-ui/react';\nimport { spinnerRecipe } from './spinner.recipe';\nimport { SemanticBackgroundColorToken } from 'theme/semanticTokens';\n\nexport interface SpinnerProps {\n backdropColor?: SemanticBackgroundColorToken;\n fullScreen?: boolean;\n label?: string;\n labelProps?: Omit<TextProps, 'chilren'>;\n showLabel?: boolean;\n size?: SpinnerSize;\n variant?: TypographyVariant;\n}\n\nexport const Spinner = ({\n backdropColor = 'background.alpha.pressed',\n fullScreen = false,\n label = 'Loading...',\n labelProps,\n showLabel = false,\n size = 'md',\n variant = 'accent',\n}: SpinnerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: spinnerRecipe });\n const styles = recipe({ variant, size, fullScreen });\n\n return (\n <VStack\n className=\"Spinner\"\n data-testid=\"kibble-spinner\"\n css={styles.root}\n {...(fullScreen && { bg: backdropColor })}\n >\n <CSpinner css={styles.spinner} />\n {showLabel && (\n <Text\n className=\"Spinner__Label\"\n data-testid=\"kibble-spinner-label\"\n variant=\"subtle\"\n css={styles.label}\n {...labelProps}\n >\n {label}\n </Text>\n )}\n </VStack>\n );\n};\n"],"names":["spinnerSlots","spinnerSizeStyles","spinnerVariantStyles","typographyVariantStyles","spinnerRecipe","defineSlotRecipe","Spinner","backdropColor","fullScreen","label","labelProps","showLabel","size","variant","styles","useSlotRecipe","jsxs","VStack","jsx","CSpinner","Text"],"mappings":";;;;;;;AAKA,MAAMA,IAAe,CAAC,QAAQ,WAAW,OAAO,GAM1CC,IAA4D;AAAA,EAChE,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,MACH,kBAAkB;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EACZ;AAEJ,GAEMC,IAAqE;AAAA,EACzE,QAAQ;AAAA,IACN,SAASC,EAAwB;AAAA,EACnC;AAAA,EACA,cAAc;AAAA,IACZ,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,OAAO;AAAA,IAC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GAAG;AAAA,QAAA;AAAA,MACL;AAAA,IACF;AAAA,EAEJ;AAAA,EACA,iBAAiB;AAAA,IACf,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC,GCjIYK,IAAU,CAAC;AAAA,EACtB,eAAAC,IAAgB;AAAA,EAChB,YAAAC,IAAa;AAAA,EACb,OAAAC,IAAQ;AAAA,EACR,YAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AACZ,MAAuC;AAErC,QAAMC,IADSC,EAAc,EAAE,QAAQX,GAAe,EAChC,EAAE,SAAAS,GAAS,MAAAD,GAAM,YAAAJ,GAAY;AAGjD,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAKH,EAAO;AAAA,MACX,GAAIN,KAAc,EAAE,IAAID,EAAc;AAAA,MAEvC,UAAA;AAAA,QAACW,gBAAAA,EAAAA,IAAAC,GAAA,EAAS,KAAKL,EAAO,QAAS,CAAA;AAAA,QAC9BH,KACCO,gBAAAA,EAAA;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,eAAY;AAAA,YACZ,SAAQ;AAAA,YACR,KAAKN,EAAO;AAAA,YACX,GAAGJ;AAAA,YAEH,UAAAD;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.component-lZds47YM.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"spinner.component-lZds47YM.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import { defineSlotRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { SpinnerSize } from './spinner.types';\nimport { TypographyVariant } from 'shared/types';\nimport { typographyVariantStyles } from '../../shared/records/typography';\n\nconst spinnerSlots = ['root', 'spinner', 'label'] as const;\ntype SpinnerSlot = (typeof spinnerSlots)[number];\ntype SpinnerSlotStyles = {\n [key in SpinnerSlot]?: SystemStyleObject;\n};\n\nconst spinnerSizeStyles: Record<SpinnerSize, SpinnerSlotStyles> = {\n xs: {\n spinner: {\n h: 3,\n w: 3,\n },\n label: {\n fontSize: 'xs',\n },\n },\n sm: {\n spinner: {\n h: 4,\n w: 4,\n },\n label: {\n fontSize: 'sm',\n },\n },\n md: {\n spinner: {\n h: 6,\n w: 6,\n '--spinner-size': 6,\n },\n label: {\n fontSize: 'md',\n },\n },\n lg: {\n spinner: {\n h: 8,\n w: 8,\n },\n label: {\n fontSize: 'lg',\n },\n },\n xl: {\n spinner: {\n h: 12,\n w: 12,\n },\n label: {\n fontSize: 'xl',\n },\n },\n};\n\nconst spinnerVariantStyles: Record<TypographyVariant, SpinnerSlotStyles> = {\n accent: {\n spinner: typographyVariantStyles.accent,\n },\n accentSubtle: {\n spinner: typographyVariantStyles.accentSubtle,\n },\n brand: {\n spinner: typographyVariantStyles.brand,\n },\n brandOnContrast: {\n spinner: typographyVariantStyles.brandOnContrast,\n },\n danger: {\n spinner: typographyVariantStyles.danger,\n },\n dangerOnContrast: {\n spinner: typographyVariantStyles.dangerOnContrast,\n },\n default: {\n spinner: typographyVariantStyles.default,\n },\n info: {\n spinner: typographyVariantStyles.info,\n },\n interactive: {\n spinner: typographyVariantStyles.interactive,\n },\n interactiveOnContrast: {\n spinner: typographyVariantStyles.interactiveOnContrast,\n },\n onContrast: {\n spinner: typographyVariantStyles.onContrast,\n },\n placeholder: {\n spinner: typographyVariantStyles.placeholder,\n },\n placeholderOnContrast: {\n spinner: typographyVariantStyles.placeholderOnContrast,\n },\n subtle: {\n spinner: typographyVariantStyles.subtle,\n },\n subtleOnContrast: {\n spinner: typographyVariantStyles.subtleOnContrast,\n },\n success: {\n spinner: typographyVariantStyles.success,\n },\n warning: {\n spinner: typographyVariantStyles.warning,\n },\n};\n\nexport const spinnerRecipe = defineSlotRecipe({\n slots: spinnerSlots,\n base: {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n },\n variants: {\n variant: spinnerVariantStyles,\n size: spinnerSizeStyles,\n fullScreen: {\n true: {\n root: {\n h: '100%',\n left: 0,\n top: 0,\n position: 'absolute',\n w: '100%',\n zIndex: 'tooltipExtra',\n },\n },\n false: {\n root: {\n h: 'max-content',\n w: 'max-content',\n },\n },\n },\n },\n defaultVariants: {\n fullScreen: false,\n size: 'md',\n variant: 'brand',\n },\n});\n","import React from 'react';\nimport { Spinner as CSpinner } from '@chakra-ui/react/spinner';\nimport { VStack } from '@chakra-ui/react/stack';\nimport { SpinnerSize } from './spinner.types';\nimport { Text, TextProps } from 'components/Text/text.component';\nimport { TypographyVariant } from 'shared/types';\nimport { useSlotRecipe } from '@chakra-ui/react';\nimport { spinnerRecipe } from './spinner.recipe';\nimport { SemanticBackgroundColorToken } from 'theme/semanticTokens';\n\nexport interface SpinnerProps {\n backdropColor?: SemanticBackgroundColorToken;\n fullScreen?: boolean;\n label?: string;\n labelProps?: Omit<TextProps, 'chilren'>;\n showLabel?: boolean;\n size?: SpinnerSize;\n variant?: TypographyVariant;\n}\n\nexport const Spinner = ({\n backdropColor = 'background.alpha.pressed',\n fullScreen = false,\n label = 'Loading...',\n labelProps,\n showLabel = false,\n size = 'md',\n variant = 'accent',\n}: SpinnerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: spinnerRecipe });\n const styles = recipe({ variant, size, fullScreen });\n\n return (\n <VStack\n className=\"Spinner\"\n data-testid=\"kibble-spinner\"\n css={styles.root}\n {...(fullScreen && { bg: backdropColor })}\n >\n <CSpinner css={styles.spinner} />\n {showLabel && (\n <Text\n className=\"Spinner__Label\"\n data-testid=\"kibble-spinner-label\"\n variant=\"subtle\"\n css={styles.label}\n {...labelProps}\n >\n {label}\n </Text>\n )}\n </VStack>\n );\n};\n"],"names":["spinnerSlots","spinnerSizeStyles","spinnerVariantStyles","typographyVariantStyles","spinnerRecipe","defineSlotRecipe","Spinner","backdropColor","fullScreen","label","labelProps","showLabel","size","variant","styles","useSlotRecipe","jsxs","VStack","jsx","CSpinner","Text"],"mappings":"6RAKMA,EAAe,CAAC,OAAQ,UAAW,OAAO,EAM1CC,EAA4D,CAChE,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,EACH,iBAAkB,CACpB,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,GACH,EAAG,EACL,EACA,MAAO,CACL,SAAU,IAAA,CACZ,CAEJ,EAEMC,EAAqE,CACzE,OAAQ,CACN,QAASC,EAAAA,wBAAwB,MACnC,EACA,aAAc,CACZ,QAASA,EAAAA,wBAAwB,YACnC,EACA,MAAO,CACL,QAASA,EAAAA,wBAAwB,KACnC,EACA,gBAAiB,CACf,QAASA,EAAAA,wBAAwB,eACnC,EACA,OAAQ,CACN,QAASA,EAAAA,wBAAwB,MACnC,EACA,iBAAkB,CAChB,QAASA,EAAAA,wBAAwB,gBACnC,EACA,QAAS,CACP,QAASA,EAAAA,wBAAwB,OACnC,EACA,KAAM,CACJ,QAASA,EAAAA,wBAAwB,IACnC,EACA,YAAa,CACX,QAASA,EAAAA,wBAAwB,WACnC,EACA,sBAAuB,CACrB,QAASA,EAAAA,wBAAwB,qBACnC,EACA,WAAY,CACV,QAASA,EAAAA,wBAAwB,UACnC,EACA,YAAa,CACX,QAASA,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,EAEH,SAAAD,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.types-BCLN5-H2.js","sources":["../../src/components/Spinner/spinner.types.ts"],"sourcesContent":["export const spinnerSizes = [
|
|
1
|
+
{"version":3,"file":"spinner.types-BCLN5-H2.js","sources":["../../src/components/Spinner/spinner.types.ts"],"sourcesContent":["export const spinnerSizes = ['xs', 'sm', 'md', 'lg', 'xl'];\nexport type SpinnerSize = (typeof spinnerSizes)[number];\n"],"names":["spinnerSizes"],"mappings":"aAAO,MAAMA,EAAe,CAAC,KAAM,KAAM,KAAM,KAAM,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.types-g7cTFJkb.js","sources":["../../src/components/Spinner/spinner.types.ts"],"sourcesContent":["export const spinnerSizes = [
|
|
1
|
+
{"version":3,"file":"spinner.types-g7cTFJkb.js","sources":["../../src/components/Spinner/spinner.types.ts"],"sourcesContent":["export const spinnerSizes = ['xs', 'sm', 'md', 'lg', 'xl'];\nexport type SpinnerSize = (typeof spinnerSizes)[number];\n"],"names":["spinnerSizes"],"mappings":"AAAO,MAAMA,IAAe,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI;"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { j as c } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { A as p } from "./avatar.component-
|
|
3
|
-
const y = ({
|
|
4
|
-
|
|
5
|
-
...o
|
|
6
|
-
}) => {
|
|
7
|
-
const {
|
|
8
|
-
name: e,
|
|
9
|
-
tooltipProps: t = { placement: "top", ...o.tooltipProps },
|
|
10
|
-
onClick: s
|
|
11
|
-
} = o, n = {
|
|
2
|
+
import { A as p } from "./avatar.component-DnLr68fv.js";
|
|
3
|
+
const y = ({ type: l = "Client", ...o }) => {
|
|
4
|
+
const { name: e, tooltipProps: t = { placement: "top", ...o.tooltipProps }, onClick: s } = o, n = {
|
|
12
5
|
variant: "outlineYellow",
|
|
13
6
|
tooltipProps: {
|
|
14
7
|
...t,
|
|
@@ -50,15 +43,9 @@ const y = ({
|
|
|
50
43
|
...i[l]
|
|
51
44
|
}
|
|
52
45
|
);
|
|
53
|
-
}, C = [
|
|
54
|
-
"Client",
|
|
55
|
-
"SMS",
|
|
56
|
-
"TestClient",
|
|
57
|
-
"Automated",
|
|
58
|
-
"Clinic"
|
|
59
|
-
];
|
|
46
|
+
}, C = ["Client", "SMS", "TestClient", "Automated", "Clinic"];
|
|
60
47
|
export {
|
|
61
48
|
y as S,
|
|
62
49
|
C as s
|
|
63
50
|
};
|
|
64
|
-
//# sourceMappingURL=styledAvatar.types-
|
|
51
|
+
//# sourceMappingURL=styledAvatar.types-cFMdDiqa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styledAvatar.types-cFMdDiqa.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from 'react';\nimport { Avatar, AvatarProps } from 'components/Avatar/avatar.component';\nimport { StyledAvatarType } from './styledAvatar.types';\n\nexport interface StyledAvatarProps extends AvatarProps {\n type?: StyledAvatarType;\n}\n\nexport const StyledAvatar = ({ type = 'Client', ...rest }: StyledAvatarProps): React.JSX.Element => {\n const { name, tooltipProps = { placement: 'top', ...rest.tooltipProps }, onClick } = rest;\n\n const testClientStyleProps: Partial<AvatarProps> = {\n variant: 'outlineYellow',\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `${name} (Test Client)`,\n },\n };\n\n const smsStyleProps: Partial<AvatarProps> = {\n iconName: 'cellphone',\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `Text messages sent from ${name || 'unknown number'}`,\n },\n };\n\n const automatedStyleProps: Partial<AvatarProps> = {\n iconName: 'robot',\n backgroundColor: 'background.primary',\n hideBorder: true,\n color: 'text.contrast',\n size: 'sm',\n showTooltip: false,\n cursor: 'default',\n };\n\n const clinicStyleProps: Partial<AvatarProps> = {\n variant: 'outlineAccent',\n name: name || 'Sys',\n };\n\n const styleProps: Record<StyledAvatarType, Partial<AvatarProps>> = {\n Automated: automatedStyleProps,\n Client: {},\n Clinic: clinicStyleProps,\n SMS: smsStyleProps,\n TestClient: testClientStyleProps,\n };\n\n return (\n <Avatar\n className=\"StyledAvatar\"\n data-testid={`kibble-styled-avatar-${type}`}\n onClick={(e): void => {\n e.stopPropagation();\n if (onClick) {\n onClick(e);\n }\n }}\n {...rest}\n {...styleProps[type]}\n />\n );\n};\n","export const styledAvatarTypes = ['Client', 'SMS', 'TestClient', 'Automated', 'Clinic'] as const;\nexport type StyledAvatarType = (typeof styledAvatarTypes)[number];\n"],"names":["StyledAvatar","type","rest","name","tooltipProps","onClick","testClientStyleProps","smsStyleProps","styleProps","jsx","Avatar","e","styledAvatarTypes"],"mappings":";;AAQO,MAAMA,IAAe,CAAC,EAAE,MAAAC,IAAO,UAAU,GAAGC,QAAiD;AAC5F,QAAA,EAAE,MAAAC,GAAM,cAAAC,IAAe,EAAE,WAAW,OAAO,GAAGF,EAAK,aAAA,GAAgB,SAAAG,EAAA,IAAYH,GAE/EI,IAA6C;AAAA,IACjD,SAAS;AAAA,IACT,cAAc;AAAA,MACZ,GAAGF;AAAA,MACH,OAAOA,GAAc,SAAS,GAAGD,CAAI;AAAA,IAAA;AAAA,EAEzC,GAEMI,IAAsC;AAAA,IAC1C,UAAU;AAAA,IACV,cAAc;AAAA,MACZ,GAAGH;AAAA,MACH,OAAOA,GAAc,SAAS,2BAA2BD,KAAQ,gBAAgB;AAAA,IAAA;AAAA,EAErF,GAiBMK,IAA6D;AAAA,IACjE,WAhBgD;AAAA,MAChD,UAAU;AAAA,MACV,iBAAiB;AAAA,MACjB,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,IACV;AAAA,IASE,QAAQ,CAAC;AAAA,IACT,QAR6C;AAAA,MAC7C,SAAS;AAAA,MACT,MAAML,KAAQ;AAAA,IAChB;AAAA,IAME,KAAKI;AAAA,IACL,YAAYD;AAAA,EACd;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAa,wBAAwBT,CAAI;AAAA,MACzC,SAAS,CAACU,MAAY;AACpB,QAAAA,EAAE,gBAAgB,GACdN,KACFA,EAAQM,CAAC;AAAA,MAEb;AAAA,MACC,GAAGT;AAAA,MACH,GAAGM,EAAWP,CAAI;AAAA,IAAA;AAAA,EACrB;AAEJ,GChEaW,IAAoB,CAAC,UAAU,OAAO,cAAc,aAAa,QAAQ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styledAvatar.types-zeF6AQ1t.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from
|
|
1
|
+
{"version":3,"file":"styledAvatar.types-zeF6AQ1t.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from 'react';\nimport { Avatar, AvatarProps } from 'components/Avatar/avatar.component';\nimport { StyledAvatarType } from './styledAvatar.types';\n\nexport interface StyledAvatarProps extends AvatarProps {\n type?: StyledAvatarType;\n}\n\nexport const StyledAvatar = ({ type = 'Client', ...rest }: StyledAvatarProps): React.JSX.Element => {\n const { name, tooltipProps = { placement: 'top', ...rest.tooltipProps }, onClick } = rest;\n\n const testClientStyleProps: Partial<AvatarProps> = {\n variant: 'outlineYellow',\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `${name} (Test Client)`,\n },\n };\n\n const smsStyleProps: Partial<AvatarProps> = {\n iconName: 'cellphone',\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `Text messages sent from ${name || 'unknown number'}`,\n },\n };\n\n const automatedStyleProps: Partial<AvatarProps> = {\n iconName: 'robot',\n backgroundColor: 'background.primary',\n hideBorder: true,\n color: 'text.contrast',\n size: 'sm',\n showTooltip: false,\n cursor: 'default',\n };\n\n const clinicStyleProps: Partial<AvatarProps> = {\n variant: 'outlineAccent',\n name: name || 'Sys',\n };\n\n const styleProps: Record<StyledAvatarType, Partial<AvatarProps>> = {\n Automated: automatedStyleProps,\n Client: {},\n Clinic: clinicStyleProps,\n SMS: smsStyleProps,\n TestClient: testClientStyleProps,\n };\n\n return (\n <Avatar\n className=\"StyledAvatar\"\n data-testid={`kibble-styled-avatar-${type}`}\n onClick={(e): void => {\n e.stopPropagation();\n if (onClick) {\n onClick(e);\n }\n }}\n {...rest}\n {...styleProps[type]}\n />\n );\n};\n","export const styledAvatarTypes = ['Client', 'SMS', 'TestClient', 'Automated', 'Clinic'] as const;\nexport type StyledAvatarType = (typeof styledAvatarTypes)[number];\n"],"names":["StyledAvatar","type","rest","name","tooltipProps","onClick","testClientStyleProps","smsStyleProps","styleProps","jsx","Avatar","e","styledAvatarTypes"],"mappings":"sGAQaA,EAAe,CAAC,CAAE,KAAAC,EAAO,SAAU,GAAGC,KAAiD,CAC5F,KAAA,CAAE,KAAAC,EAAM,aAAAC,EAAe,CAAE,UAAW,MAAO,GAAGF,EAAK,YAAA,EAAgB,QAAAG,CAAA,EAAYH,EAE/EI,EAA6C,CACjD,QAAS,gBACT,aAAc,CACZ,GAAGF,EACH,MAAOA,GAAc,OAAS,GAAGD,CAAI,gBAAA,CAEzC,EAEMI,EAAsC,CAC1C,SAAU,YACV,aAAc,CACZ,GAAGH,EACH,MAAOA,GAAc,OAAS,2BAA2BD,GAAQ,gBAAgB,EAAA,CAErF,EAiBMK,EAA6D,CACjE,UAhBgD,CAChD,SAAU,QACV,gBAAiB,qBACjB,WAAY,GACZ,MAAO,gBACP,KAAM,KACN,YAAa,GACb,OAAQ,SACV,EASE,OAAQ,CAAC,EACT,OAR6C,CAC7C,QAAS,gBACT,KAAML,GAAQ,KAChB,EAME,IAAKI,EACL,WAAYD,CACd,EAGE,OAAAG,EAAA,kBAAA,IAACC,EAAA,OAAA,CACC,UAAU,eACV,cAAa,wBAAwBT,CAAI,GACzC,QAAUU,GAAY,CACpBA,EAAE,gBAAgB,EACdN,GACFA,EAAQM,CAAC,CAEb,EACC,GAAGT,EACH,GAAGM,EAAWP,CAAI,CAAA,CACrB,CAEJ,EChEaW,EAAoB,CAAC,SAAU,MAAO,aAAc,YAAa,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swatch.types-DbgA3RWc.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"swatch.types-DbgA3RWc.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import { defineRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { SwatchSize } from './swatch.types';\n\nconst swatchSizeStyles: Record<SwatchSize, SystemStyleObject> = {\n xs: {\n borderRadius: 'xs',\n height: '14px',\n width: '14px',\n },\n sm: {\n borderRadius: '3px',\n height: '16px',\n width: '16px',\n },\n md: {\n borderRadius: '4px',\n height: '20px',\n width: '20px',\n },\n lg: {\n borderRadius: '5px',\n height: '24px',\n width: '24px',\n },\n xl: {\n borderRadius: 'sm',\n height: '32px',\n width: '32px',\n },\n};\n\nexport const swatchRecipe = defineRecipe({\n base: {\n display: 'inline-block',\n border: '1px',\n },\n variants: {\n size: swatchSizeStyles,\n },\n defaultVariants: {\n size: 'md',\n },\n});\n","import React from 'react';\nimport { Box, BoxProps } from '@chakra-ui/react/box';\nimport { SwatchSize } from './swatch.types';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { swatchRecipe } from './swatch.recipe';\n\nexport interface BaseSwatchProps {\n size?: SwatchSize;\n}\n\nexport type SwatchProps = BaseSwatchProps & Omit<BoxProps, 'children'>;\n\nexport const Swatch = ({\n size = 'md',\n color,\n backgroundColor,\n bgColor,\n borderColor,\n ...rest\n}: SwatchProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: swatchRecipe });\n const styles = recipe({ size });\n const _swatchColor = bgColor || backgroundColor || color || 'transparent';\n\n return (\n <Box\n className=\"Swatch\"\n data-testid=\"kibble-swatch\"\n css={styles}\n bg={_swatchColor}\n borderColor={borderColor || _swatchColor}\n {...rest}\n />\n );\n};\n","export const swatchSizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const;\nexport type SwatchSize = (typeof swatchSizes)[number];\n"],"names":["swatchSizeStyles","swatchRecipe","defineRecipe","Swatch","size","color","backgroundColor","bgColor","borderColor","rest","styles","useRecipe","_swatchColor","jsx","Box","swatchSizes"],"mappings":";;;;AAGA,MAAMA,IAA0D;AAAA,EAC9D,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EAAA;AAEX,GAEaC,IAAeC,EAAa;AAAA,EACvC,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,MAAMF;AAAA,EACR;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GC9BYG,IAAS,CAAC;AAAA,EACrB,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,MAAsC;AAEpC,QAAMC,IADSC,EAAU,EAAE,QAAQV,GAAc,EAC3B,EAAE,MAAAG,GAAM,GACxBQ,IAAeL,KAAWD,KAAmBD,KAAS;AAG1D,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAKJ;AAAA,MACL,IAAIE;AAAA,MACJ,aAAaJ,KAAeI;AAAA,MAC3B,GAAGH;AAAA,IAAA;AAAA,EACN;AAEJ,GClCaM,IAAc,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swatch.types-DiX-4lpJ.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"swatch.types-DiX-4lpJ.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import { defineRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { SwatchSize } from './swatch.types';\n\nconst swatchSizeStyles: Record<SwatchSize, SystemStyleObject> = {\n xs: {\n borderRadius: 'xs',\n height: '14px',\n width: '14px',\n },\n sm: {\n borderRadius: '3px',\n height: '16px',\n width: '16px',\n },\n md: {\n borderRadius: '4px',\n height: '20px',\n width: '20px',\n },\n lg: {\n borderRadius: '5px',\n height: '24px',\n width: '24px',\n },\n xl: {\n borderRadius: 'sm',\n height: '32px',\n width: '32px',\n },\n};\n\nexport const swatchRecipe = defineRecipe({\n base: {\n display: 'inline-block',\n border: '1px',\n },\n variants: {\n size: swatchSizeStyles,\n },\n defaultVariants: {\n size: 'md',\n },\n});\n","import React from 'react';\nimport { Box, BoxProps } from '@chakra-ui/react/box';\nimport { SwatchSize } from './swatch.types';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { swatchRecipe } from './swatch.recipe';\n\nexport interface BaseSwatchProps {\n size?: SwatchSize;\n}\n\nexport type SwatchProps = BaseSwatchProps & Omit<BoxProps, 'children'>;\n\nexport const Swatch = ({\n size = 'md',\n color,\n backgroundColor,\n bgColor,\n borderColor,\n ...rest\n}: SwatchProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: swatchRecipe });\n const styles = recipe({ size });\n const _swatchColor = bgColor || backgroundColor || color || 'transparent';\n\n return (\n <Box\n className=\"Swatch\"\n data-testid=\"kibble-swatch\"\n css={styles}\n bg={_swatchColor}\n borderColor={borderColor || _swatchColor}\n {...rest}\n />\n );\n};\n","export const swatchSizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const;\nexport type SwatchSize = (typeof swatchSizes)[number];\n"],"names":["swatchSizeStyles","swatchRecipe","defineRecipe","Swatch","size","color","backgroundColor","bgColor","borderColor","rest","styles","useRecipe","_swatchColor","jsx","Box","swatchSizes"],"mappings":"iKAGMA,EAA0D,CAC9D,GAAI,CACF,aAAc,KACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,KACd,OAAQ,OACR,MAAO,MAAA,CAEX,EAEaC,EAAeC,EAAAA,aAAa,CACvC,KAAM,CACJ,QAAS,eACT,OAAQ,KACV,EACA,SAAU,CACR,KAAMF,CACR,EACA,gBAAiB,CACf,KAAM,IAAA,CAEV,CAAC,EC9BYG,EAAS,CAAC,CACrB,KAAAC,EAAO,KACP,MAAAC,EACA,gBAAAC,EACA,QAAAC,EACA,YAAAC,EACA,GAAGC,CACL,IAAsC,CAEpC,MAAMC,EADSC,EAAA,UAAU,CAAE,OAAQV,EAAc,EAC3B,CAAE,KAAAG,EAAM,EACxBQ,EAAeL,GAAWD,GAAmBD,GAAS,cAG1D,OAAAQ,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,UAAU,SACV,cAAY,gBACZ,IAAKJ,EACL,GAAIE,EACJ,YAAaJ,GAAeI,EAC3B,GAAGH,CAAA,CACN,CAEJ,EClCaM,EAAc,CAAC,KAAM,KAAM,KAAM,KAAM,IAAI"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as c } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import I, { forwardRef as n, useId as A, useMemo as L } from "react";
|
|
3
|
-
import { w as T } from "./withFormControl-
|
|
3
|
+
import { w as T } from "./withFormControl-B2tHXexu.js";
|
|
4
4
|
import { d as u } from "./attr-sm10PXOd.js";
|
|
5
5
|
import { c as _ } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
6
6
|
import { c as w } from "./factory-Ctbv0Ozn.js";
|
|
@@ -138,21 +138,8 @@ const J = C, g = I.forwardRef(
|
|
|
138
138
|
variant: R,
|
|
139
139
|
...m,
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */ c.jsx(
|
|
142
|
-
|
|
143
|
-
{
|
|
144
|
-
className: "Switch_Input",
|
|
145
|
-
"data-testid": "kibble-switch-input",
|
|
146
|
-
ref: a || N
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
/* @__PURE__ */ c.jsx(
|
|
150
|
-
G,
|
|
151
|
-
{
|
|
152
|
-
className: "Switch_Control",
|
|
153
|
-
"data-testid": "kibble-switch-control"
|
|
154
|
-
}
|
|
155
|
-
),
|
|
141
|
+
/* @__PURE__ */ c.jsx(J, { className: "Switch_Input", "data-testid": "kibble-switch-input", ref: a || N }),
|
|
142
|
+
/* @__PURE__ */ c.jsx(G, { className: "Switch_Control", "data-testid": "kibble-switch-control" }),
|
|
156
143
|
!!r && /* @__PURE__ */ c.jsx(V, { children: r })
|
|
157
144
|
]
|
|
158
145
|
}
|
|
@@ -164,4 +151,4 @@ const rt = T(g);
|
|
|
164
151
|
export {
|
|
165
152
|
rt as W
|
|
166
153
|
};
|
|
167
|
-
//# sourceMappingURL=switch.component-
|
|
154
|
+
//# sourceMappingURL=switch.component-1NMBytrm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.component-D93JI_c1.js","sources":["../../node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-control.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-label.js","../../node_modules/@ark-ui/react/dist/components/switch/use-switch.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js","../../node_modules/@chakra-ui/react/dist/esm/components/switch/switch.js","../../src/components/Switch/switch.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [SwitchProvider, useSwitchContext] = createContext({\n name: \"SwitchContext\",\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchProvider />\"\n});\n\nexport { SwitchProvider, useSwitchContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchControl = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getControlProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchControl.displayName = \"SwitchControl\";\n\nexport { SwitchControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from '../field/use-field-context.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchHiddenInput = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);\n const field = useFieldContext();\n return /* @__PURE__ */ jsx(ark.input, { \"aria-describedby\": field?.ariaDescribedby, ...mergedProps, ref });\n});\nSwitchHiddenInput.displayName = \"SwitchHiddenInput\";\n\nexport { SwitchHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchLabel = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchLabel.displayName = \"SwitchLabel\";\n\nexport { SwitchLabel };\n","'use client';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport * as zagSwitch from '@zag-js/switch';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\nimport { useFieldContext } from '../field/use-field-context.js';\n\nconst useSwitch = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const field = useFieldContext();\n const machineProps = {\n id,\n ids: {\n label: field?.ids.label,\n hiddenInput: field?.ids.control\n },\n dir,\n disabled: field?.disabled,\n readOnly: field?.readOnly,\n invalid: field?.invalid,\n required: field?.required,\n getRootNode,\n ...props\n };\n const service = useMachine(zagSwitch.machine, machineProps);\n return zagSwitch.connect(service, normalizeProps);\n};\n\nexport { useSwitch };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useSwitch } from './use-switch.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRoot = forwardRef((props, ref) => {\n const [switchProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"defaultChecked\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n ]);\n const switchContext = useSwitch(switchProps);\n const mergedProps = mergeProps(switchContext.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: switchContext, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRoot.displayName = \"SwitchRoot\";\n\nexport { SwitchRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRootProvider = forwardRef((props, ref) => {\n const [{ value: api }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(api.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRootProvider.displayName = \"SwitchRootProvider\";\n\nexport { SwitchRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchThumb = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getThumbProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchThumb.displayName = \"SwitchThumb\";\n\nexport { SwitchThumb };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Switch, useSwitchContext } from '@ark-ui/react/switch';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useSwitchStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"switch\" });\nconst SwitchRootProvider = withProvider(Switch.RootProvider, \"root\", { forwardAsChild: true });\nconst SwitchRoot = withProvider(\n Switch.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst SwitchPropsProvider = PropsProvider;\nconst SwitchLabel = withContext(\n Switch.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst SwitchThumb = withContext(\n Switch.Thumb,\n \"thumb\",\n { forwardAsChild: true }\n);\nconst SwitchControl = withContext(\n Switch.Control,\n \"control\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }\n }\n);\nconst SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {\n const api = useSwitchContext();\n const styles = useSwitchStyles();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"data-checked\": dataAttr(api.checked),\n ...rest,\n css: [styles.indicator, props.css],\n children: api.checked ? children : fallback\n }\n );\n});\nconst SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {\n const api = useSwitchContext();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, \"data-checked\": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });\n});\nconst SwitchContext = Switch.Context;\nconst SwitchHiddenInput = Switch.HiddenInput;\n\nexport { SwitchContext, SwitchControl, SwitchHiddenInput, SwitchIndicator, SwitchLabel, SwitchPropsProvider, SwitchRoot, SwitchRootProvider, SwitchThumb, SwitchThumbIndicator, useSwitchStyles };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport { Switch as CSwitch } from \"@chakra-ui/react/switch\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport interface SwitchProps\n extends WithFormControlProps,\n Omit<CSwitch.RootProps, \"label\" | \"onChange\"> {\n indeterminate?: boolean;\n rootRef?: ForwardedRef<HTMLLabelElement>;\n size?: FormControlSize;\n switchRef?: React.RefObject<HTMLInputElement | null>;\n}\n\nconst Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n (\n {\n children,\n indeterminate = false,\n onContrast,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n label,\n rootRef,\n size = \"md\",\n switchRef,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = useMemo(() => {\n if (indeterminate) {\n return onContrast ? \"indeterminateOnContrast\" : \"indeterminate\";\n } else {\n return onContrast ? \"onContrast\" : \"default\";\n }\n }, [indeterminate, onContrast]);\n\n return (\n <CSwitch.Root\n className=\"Switch\"\n data-testid=\"kibble-switch\"\n ref={rootRef}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n <CSwitch.HiddenInput\n className=\"Switch_Input\"\n data-testid=\"kibble-switch-input\"\n ref={switchRef || ref}\n />\n <CSwitch.Control\n className=\"Switch_Control\"\n data-testid=\"kibble-switch-control\"\n />\n {!!children && <CSwitch.Label>{children}</CSwitch.Label>}\n </CSwitch.Root>\n );\n },\n);\n\nSwitch.displayName = \"Switch\";\nconst WrappedSwitch = withFormControl<SwitchProps>(Switch);\n\nexport { WrappedSwitch as Switch };\n"],"names":["SwitchProvider","useSwitchContext","createContext","SwitchControl","forwardRef","props","ref","switchContext","mergedProps","mergeProps","jsx","ark","SwitchHiddenInput","field","useFieldContext","SwitchLabel","useSwitch","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","zagSwitch.machine","zagSwitch.connect","normalizeProps","SwitchRoot","switchProps","localProps","createSplitProps","SwitchRootProvider","api","SwitchThumb","withProvider","withContext","useSwitchStyles","createSlotRecipeContext","Switch.RootProvider","Switch.Root","Switch.Label","Switch.Thumb","Switch.Control","styles","fallback","children","rest","chakra","dataAttr","Switch.HiddenInput","Switch","React","indeterminate","onContrast","label","rootRef","size","switchRef","_computedVariant","useMemo","jsxs","CSwitch.Root","CSwitch.HiddenInput","CSwitch.Control","CSwitch.Label","WrappedSwitch","withFormControl"],"mappings":";;;;;;;;;;AAGA,MAAM,CAACA,GAAgBC,CAAgB,IAAIC,EAAc;AAAA,EACvD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GCAKC,IAAgBC,EAAW,CAACC,GAAOC,MAAQ;AAC/C,QAAMC,IAAgBN,EAAkB,GAClCO,IAAcC,EAAWF,EAAc,gBAAe,GAAIF,CAAK;AACrE,SAAuBK,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAF,GAAK;AAC9D,CAAC;AACDH,EAAc,cAAc;ACJ5B,MAAMS,IAAoBR,EAAW,CAACC,GAAOC,MAAQ;AACnD,QAAMC,IAAgBN,EAAkB,GAClCO,IAAcC,EAAWF,EAAc,oBAAmB,GAAIF,CAAK,GACnEQ,IAAQC,EAAiB;AAC/B,SAAuBJ,gBAAAA,EAAG,IAACC,EAAI,OAAO,EAAE,oBAAoBE,GAAO,iBAAiB,GAAGL,GAAa,KAAAF,GAAK;AAC3G,CAAC;AACDM,EAAkB,cAAc;ACPhC,MAAMG,IAAcX,EAAW,CAACC,GAAOC,MAAQ;AAC7C,QAAMC,IAAgBN,EAAkB,GAClCO,IAAcC,EAAWF,EAAc,cAAa,GAAIF,CAAK;AACnE,SAAuBK,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAF,GAAK;AAC9D,CAAC;AACDS,EAAY,cAAc;ACJ1B,MAAMC,IAAY,CAACX,MAAU;AAC3B,QAAMY,IAAKC,EAAO,GACZ,EAAE,aAAAC,EAAa,IAAGC,EAAuB,GACzC,EAAE,KAAAC,EAAK,IAAGC,EAAkB,GA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AAA;AAAA,IAC1C;AAAA,EAAA;AAGN;AAEAK,EAAO,cAAc;AACf,MAAAe,KAAgBC,EAA6BhB,CAAM;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
1
|
+
{"version":3,"file":"switch.component-1NMBytrm.js","sources":["../../node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-control.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-label.js","../../node_modules/@ark-ui/react/dist/components/switch/use-switch.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js","../../node_modules/@chakra-ui/react/dist/esm/components/switch/switch.js","../../src/components/Switch/switch.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [SwitchProvider, useSwitchContext] = createContext({\n name: \"SwitchContext\",\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchProvider />\"\n});\n\nexport { SwitchProvider, useSwitchContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchControl = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getControlProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchControl.displayName = \"SwitchControl\";\n\nexport { SwitchControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from '../field/use-field-context.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchHiddenInput = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);\n const field = useFieldContext();\n return /* @__PURE__ */ jsx(ark.input, { \"aria-describedby\": field?.ariaDescribedby, ...mergedProps, ref });\n});\nSwitchHiddenInput.displayName = \"SwitchHiddenInput\";\n\nexport { SwitchHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchLabel = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchLabel.displayName = \"SwitchLabel\";\n\nexport { SwitchLabel };\n","'use client';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport * as zagSwitch from '@zag-js/switch';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\nimport { useFieldContext } from '../field/use-field-context.js';\n\nconst useSwitch = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const field = useFieldContext();\n const machineProps = {\n id,\n ids: {\n label: field?.ids.label,\n hiddenInput: field?.ids.control\n },\n dir,\n disabled: field?.disabled,\n readOnly: field?.readOnly,\n invalid: field?.invalid,\n required: field?.required,\n getRootNode,\n ...props\n };\n const service = useMachine(zagSwitch.machine, machineProps);\n return zagSwitch.connect(service, normalizeProps);\n};\n\nexport { useSwitch };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useSwitch } from './use-switch.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRoot = forwardRef((props, ref) => {\n const [switchProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"defaultChecked\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n ]);\n const switchContext = useSwitch(switchProps);\n const mergedProps = mergeProps(switchContext.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: switchContext, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRoot.displayName = \"SwitchRoot\";\n\nexport { SwitchRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRootProvider = forwardRef((props, ref) => {\n const [{ value: api }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(api.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRootProvider.displayName = \"SwitchRootProvider\";\n\nexport { SwitchRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchThumb = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getThumbProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchThumb.displayName = \"SwitchThumb\";\n\nexport { SwitchThumb };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Switch, useSwitchContext } from '@ark-ui/react/switch';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useSwitchStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"switch\" });\nconst SwitchRootProvider = withProvider(Switch.RootProvider, \"root\", { forwardAsChild: true });\nconst SwitchRoot = withProvider(\n Switch.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst SwitchPropsProvider = PropsProvider;\nconst SwitchLabel = withContext(\n Switch.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst SwitchThumb = withContext(\n Switch.Thumb,\n \"thumb\",\n { forwardAsChild: true }\n);\nconst SwitchControl = withContext(\n Switch.Control,\n \"control\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }\n }\n);\nconst SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {\n const api = useSwitchContext();\n const styles = useSwitchStyles();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"data-checked\": dataAttr(api.checked),\n ...rest,\n css: [styles.indicator, props.css],\n children: api.checked ? children : fallback\n }\n );\n});\nconst SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {\n const api = useSwitchContext();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, \"data-checked\": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });\n});\nconst SwitchContext = Switch.Context;\nconst SwitchHiddenInput = Switch.HiddenInput;\n\nexport { SwitchContext, SwitchControl, SwitchHiddenInput, SwitchIndicator, SwitchLabel, SwitchPropsProvider, SwitchRoot, SwitchRootProvider, SwitchThumb, SwitchThumbIndicator, useSwitchStyles };\n","import React, { ForwardedRef, useMemo } from 'react';\nimport { Switch as CSwitch } from '@chakra-ui/react/switch';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\n\nexport interface SwitchProps extends WithFormControlProps, Omit<CSwitch.RootProps, 'label' | 'onChange'> {\n indeterminate?: boolean;\n rootRef?: ForwardedRef<HTMLLabelElement>;\n size?: FormControlSize;\n switchRef?: React.RefObject<HTMLInputElement | null>;\n}\n\nconst Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n (\n {\n children,\n indeterminate = false,\n onContrast,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n label,\n rootRef,\n size = 'md',\n switchRef,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = useMemo(() => {\n if (indeterminate) {\n return onContrast ? 'indeterminateOnContrast' : 'indeterminate';\n } else {\n return onContrast ? 'onContrast' : 'default';\n }\n }, [indeterminate, onContrast]);\n\n return (\n <CSwitch.Root\n className=\"Switch\"\n data-testid=\"kibble-switch\"\n ref={rootRef}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n <CSwitch.HiddenInput className=\"Switch_Input\" data-testid=\"kibble-switch-input\" ref={switchRef || ref} />\n <CSwitch.Control className=\"Switch_Control\" data-testid=\"kibble-switch-control\" />\n {!!children && <CSwitch.Label>{children}</CSwitch.Label>}\n </CSwitch.Root>\n );\n },\n);\n\nSwitch.displayName = 'Switch';\nconst WrappedSwitch = withFormControl<SwitchProps>(Switch);\n\nexport { WrappedSwitch as Switch };\n"],"names":["SwitchProvider","useSwitchContext","createContext","SwitchControl","forwardRef","props","ref","switchContext","mergedProps","mergeProps","jsx","ark","SwitchHiddenInput","field","useFieldContext","SwitchLabel","useSwitch","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","zagSwitch.machine","zagSwitch.connect","normalizeProps","SwitchRoot","switchProps","localProps","createSplitProps","SwitchRootProvider","api","SwitchThumb","withProvider","withContext","useSwitchStyles","createSlotRecipeContext","Switch.RootProvider","Switch.Root","Switch.Label","Switch.Thumb","Switch.Control","styles","fallback","children","rest","chakra","dataAttr","Switch.HiddenInput","Switch","React","indeterminate","onContrast","label","rootRef","size","switchRef","_computedVariant","useMemo","jsxs","CSwitch.Root","CSwitch.HiddenInput","CSwitch.Control","CSwitch.Label","WrappedSwitch","withFormControl"],"mappings":";;;;;;;;;;AAGA,MAAM,CAACA,GAAgBC,CAAgB,IAAIC,EAAc;AAAA,EACvD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GCAKC,IAAgBC,EAAW,CAACC,GAAOC,MAAQ;AAC/C,QAAMC,IAAgBN,EAAkB,GAClCO,IAAcC,EAAWF,EAAc,gBAAe,GAAIF,CAAK;AACrE,SAAuBK,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAF,GAAK;AAC9D,CAAC;AACDH,EAAc,cAAc;ACJ5B,MAAMS,IAAoBR,EAAW,CAACC,GAAOC,MAAQ;AACnD,QAAMC,IAAgBN,EAAkB,GAClCO,IAAcC,EAAWF,EAAc,oBAAmB,GAAIF,CAAK,GACnEQ,IAAQC,EAAiB;AAC/B,SAAuBJ,gBAAAA,EAAG,IAACC,EAAI,OAAO,EAAE,oBAAoBE,GAAO,iBAAiB,GAAGL,GAAa,KAAAF,GAAK;AAC3G,CAAC;AACDM,EAAkB,cAAc;ACPhC,MAAMG,IAAcX,EAAW,CAACC,GAAOC,MAAQ;AAC7C,QAAMC,IAAgBN,EAAkB,GAClCO,IAAcC,EAAWF,EAAc,cAAa,GAAIF,CAAK;AACnE,SAAuBK,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAF,GAAK;AAC9D,CAAC;AACDS,EAAY,cAAc;ACJ1B,MAAMC,IAAY,CAACX,MAAU;AAC3B,QAAMY,IAAKC,EAAO,GACZ,EAAE,aAAAC,EAAa,IAAGC,EAAuB,GACzC,EAAE,KAAAC,EAAK,IAAGC,EAAkB,GAC5BT,IAAQC,EAAiB,GACzBS,IAAe;AAAA,IACnB,IAAAN;AAAA,IACA,KAAK;AAAA,MACH,OAAOJ,GAAO,IAAI;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["../../node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-control.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-label.js","../../node_modules/@ark-ui/react/dist/components/switch/use-switch.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js","../../node_modules/@chakra-ui/react/dist/esm/components/switch/switch.js","../../src/components/Switch/switch.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [SwitchProvider, useSwitchContext] = createContext({\n name: \"SwitchContext\",\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchProvider />\"\n});\n\nexport { SwitchProvider, useSwitchContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchControl = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getControlProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchControl.displayName = \"SwitchControl\";\n\nexport { SwitchControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from '../field/use-field-context.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchHiddenInput = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);\n const field = useFieldContext();\n return /* @__PURE__ */ jsx(ark.input, { \"aria-describedby\": field?.ariaDescribedby, ...mergedProps, ref });\n});\nSwitchHiddenInput.displayName = \"SwitchHiddenInput\";\n\nexport { SwitchHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchLabel = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchLabel.displayName = \"SwitchLabel\";\n\nexport { SwitchLabel };\n","'use client';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport * as zagSwitch from '@zag-js/switch';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\nimport { useFieldContext } from '../field/use-field-context.js';\n\nconst useSwitch = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const field = useFieldContext();\n const machineProps = {\n id,\n ids: {\n label: field?.ids.label,\n hiddenInput: field?.ids.control\n },\n dir,\n disabled: field?.disabled,\n readOnly: field?.readOnly,\n invalid: field?.invalid,\n required: field?.required,\n getRootNode,\n ...props\n };\n const service = useMachine(zagSwitch.machine, machineProps);\n return zagSwitch.connect(service, normalizeProps);\n};\n\nexport { useSwitch };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useSwitch } from './use-switch.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRoot = forwardRef((props, ref) => {\n const [switchProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"defaultChecked\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n ]);\n const switchContext = useSwitch(switchProps);\n const mergedProps = mergeProps(switchContext.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: switchContext, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRoot.displayName = \"SwitchRoot\";\n\nexport { SwitchRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRootProvider = forwardRef((props, ref) => {\n const [{ value: api }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(api.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRootProvider.displayName = \"SwitchRootProvider\";\n\nexport { SwitchRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchThumb = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getThumbProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchThumb.displayName = \"SwitchThumb\";\n\nexport { SwitchThumb };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Switch, useSwitchContext } from '@ark-ui/react/switch';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useSwitchStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"switch\" });\nconst SwitchRootProvider = withProvider(Switch.RootProvider, \"root\", { forwardAsChild: true });\nconst SwitchRoot = withProvider(\n Switch.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst SwitchPropsProvider = PropsProvider;\nconst SwitchLabel = withContext(\n Switch.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst SwitchThumb = withContext(\n Switch.Thumb,\n \"thumb\",\n { forwardAsChild: true }\n);\nconst SwitchControl = withContext(\n Switch.Control,\n \"control\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }\n }\n);\nconst SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {\n const api = useSwitchContext();\n const styles = useSwitchStyles();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"data-checked\": dataAttr(api.checked),\n ...rest,\n css: [styles.indicator, props.css],\n children: api.checked ? children : fallback\n }\n );\n});\nconst SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {\n const api = useSwitchContext();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, \"data-checked\": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });\n});\nconst SwitchContext = Switch.Context;\nconst SwitchHiddenInput = Switch.HiddenInput;\n\nexport { SwitchContext, SwitchControl, SwitchHiddenInput, SwitchIndicator, SwitchLabel, SwitchPropsProvider, SwitchRoot, SwitchRootProvider, SwitchThumb, SwitchThumbIndicator, useSwitchStyles };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport { Switch as CSwitch } from \"@chakra-ui/react/switch\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport interface SwitchProps\n extends WithFormControlProps,\n Omit<CSwitch.RootProps, \"label\" | \"onChange\"> {\n indeterminate?: boolean;\n rootRef?: ForwardedRef<HTMLLabelElement>;\n size?: FormControlSize;\n switchRef?: React.RefObject<HTMLInputElement | null>;\n}\n\nconst Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n (\n {\n children,\n indeterminate = false,\n onContrast,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n label,\n rootRef,\n size = \"md\",\n switchRef,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = useMemo(() => {\n if (indeterminate) {\n return onContrast ? \"indeterminateOnContrast\" : \"indeterminate\";\n } else {\n return onContrast ? \"onContrast\" : \"default\";\n }\n }, [indeterminate, onContrast]);\n\n return (\n <CSwitch.Root\n className=\"Switch\"\n data-testid=\"kibble-switch\"\n ref={rootRef}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n <CSwitch.HiddenInput\n className=\"Switch_Input\"\n data-testid=\"kibble-switch-input\"\n ref={switchRef || ref}\n />\n <CSwitch.Control\n className=\"Switch_Control\"\n data-testid=\"kibble-switch-control\"\n />\n {!!children && <CSwitch.Label>{children}</CSwitch.Label>}\n </CSwitch.Root>\n );\n },\n);\n\nSwitch.displayName = \"Switch\";\nconst WrappedSwitch = withFormControl<SwitchProps>(Switch);\n\nexport { WrappedSwitch as Switch };\n"],"names":["SwitchProvider","useSwitchContext","createContext","SwitchControl","forwardRef","props","ref","switchContext","mergedProps","mergeProps","jsx","ark","SwitchHiddenInput","field","useFieldContext","SwitchLabel","useSwitch","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","zagSwitch.machine","zagSwitch.connect","normalizeProps","SwitchRoot","switchProps","localProps","createSplitProps","SwitchRootProvider","api","SwitchThumb","withProvider","withContext","useSwitchStyles","createSlotRecipeContext","Switch.RootProvider","Switch.Root","Switch.Label","Switch.Thumb","Switch.Control","styles","fallback","children","rest","chakra","dataAttr","Switch.HiddenInput","Switch","React","indeterminate","onContrast","label","rootRef","size","switchRef","_computedVariant","useMemo","jsxs","CSwitch.Root","CSwitch.HiddenInput","CSwitch.Control","CSwitch.Label","WrappedSwitch","withFormControl"],"mappings":"wbAGM,CAACA,EAAgBC,CAA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AAM,QAAA,WACnB,CACE,CACE,SAAAN,EACA,cAAAO,EAAgB,GAChB,WAAAC,EAEA,MAAAC,EACA,QAAAC,EACA,KAAAC,EAAO,KACP,UAAAC,EACA,GAAGX,GAEL1C,IACsB,CAChB,MAAAsD,EAAmBC,EAAAA,QAAQ,IAC3BP,EACKC,EAAa,0BAA4B,gBAEzCA,EAAa,aAAe,UAEpC,CAACD,EAAeC,CAAU,CAAC,EAG5B,OAAAO,EAAA,kBAAA,KAACC,EAAA,CACC,UAAU,SACV,cAAY,gBACZ,IAAKN,EACL,KAAAC,EACA,QAASE,EACR,GAAGZ,EAEJ,SAAA,CAAAtC,EAAA,kBAAA,IAACsD,EAAA,CACC,UAAU,eACV,cAAY,sBACZ,IAAKL,GAAarD,CAAA,CACpB,EACAI,EAAA,kBAAA,IAACuD,EAAA,CACC,UAAU,iBACV,cAAY,uBAAA,CACd,EACC,CAAC,CAAClB,2BAAamB,EAAA,CAAe,SAAAnB,CAAS,CAAA,CAAA,CAAA,CAC1C,CAAA,CAGN,EAEAK,EAAO,YAAc,SACf,MAAAe,EAAgBC,kBAA6BhB,CAAM","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
1
|
+
{"version":3,"file":"switch.component-C4tJUYg9.js","sources":["../../node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-control.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-label.js","../../node_modules/@ark-ui/react/dist/components/switch/use-switch.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js","../../node_modules/@chakra-ui/react/dist/esm/components/switch/switch.js","../../src/components/Switch/switch.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [SwitchProvider, useSwitchContext] = createContext({\n name: \"SwitchContext\",\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchProvider />\"\n});\n\nexport { SwitchProvider, useSwitchContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchControl = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getControlProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchControl.displayName = \"SwitchControl\";\n\nexport { SwitchControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from '../field/use-field-context.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchHiddenInput = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);\n const field = useFieldContext();\n return /* @__PURE__ */ jsx(ark.input, { \"aria-describedby\": field?.ariaDescribedby, ...mergedProps, ref });\n});\nSwitchHiddenInput.displayName = \"SwitchHiddenInput\";\n\nexport { SwitchHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchLabel = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchLabel.displayName = \"SwitchLabel\";\n\nexport { SwitchLabel };\n","'use client';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport * as zagSwitch from '@zag-js/switch';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\nimport { useFieldContext } from '../field/use-field-context.js';\n\nconst useSwitch = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const field = useFieldContext();\n const machineProps = {\n id,\n ids: {\n label: field?.ids.label,\n hiddenInput: field?.ids.control\n },\n dir,\n disabled: field?.disabled,\n readOnly: field?.readOnly,\n invalid: field?.invalid,\n required: field?.required,\n getRootNode,\n ...props\n };\n const service = useMachine(zagSwitch.machine, machineProps);\n return zagSwitch.connect(service, normalizeProps);\n};\n\nexport { useSwitch };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useSwitch } from './use-switch.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRoot = forwardRef((props, ref) => {\n const [switchProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"defaultChecked\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n ]);\n const switchContext = useSwitch(switchProps);\n const mergedProps = mergeProps(switchContext.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: switchContext, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRoot.displayName = \"SwitchRoot\";\n\nexport { SwitchRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRootProvider = forwardRef((props, ref) => {\n const [{ value: api }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(api.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRootProvider.displayName = \"SwitchRootProvider\";\n\nexport { SwitchRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchThumb = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getThumbProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchThumb.displayName = \"SwitchThumb\";\n\nexport { SwitchThumb };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Switch, useSwitchContext } from '@ark-ui/react/switch';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useSwitchStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"switch\" });\nconst SwitchRootProvider = withProvider(Switch.RootProvider, \"root\", { forwardAsChild: true });\nconst SwitchRoot = withProvider(\n Switch.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst SwitchPropsProvider = PropsProvider;\nconst SwitchLabel = withContext(\n Switch.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst SwitchThumb = withContext(\n Switch.Thumb,\n \"thumb\",\n { forwardAsChild: true }\n);\nconst SwitchControl = withContext(\n Switch.Control,\n \"control\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }\n }\n);\nconst SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {\n const api = useSwitchContext();\n const styles = useSwitchStyles();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"data-checked\": dataAttr(api.checked),\n ...rest,\n css: [styles.indicator, props.css],\n children: api.checked ? children : fallback\n }\n );\n});\nconst SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {\n const api = useSwitchContext();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, \"data-checked\": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });\n});\nconst SwitchContext = Switch.Context;\nconst SwitchHiddenInput = Switch.HiddenInput;\n\nexport { SwitchContext, SwitchControl, SwitchHiddenInput, SwitchIndicator, SwitchLabel, SwitchPropsProvider, SwitchRoot, SwitchRootProvider, SwitchThumb, SwitchThumbIndicator, useSwitchStyles };\n","import React, { ForwardedRef, useMemo } from 'react';\nimport { Switch as CSwitch } from '@chakra-ui/react/switch';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\n\nexport interface SwitchProps extends WithFormControlProps, Omit<CSwitch.RootProps, 'label' | 'onChange'> {\n indeterminate?: boolean;\n rootRef?: ForwardedRef<HTMLLabelElement>;\n size?: FormControlSize;\n switchRef?: React.RefObject<HTMLInputElement | null>;\n}\n\nconst Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n (\n {\n children,\n indeterminate = false,\n onContrast,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n label,\n rootRef,\n size = 'md',\n switchRef,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = useMemo(() => {\n if (indeterminate) {\n return onContrast ? 'indeterminateOnContrast' : 'indeterminate';\n } else {\n return onContrast ? 'onContrast' : 'default';\n }\n }, [indeterminate, onContrast]);\n\n return (\n <CSwitch.Root\n className=\"Switch\"\n data-testid=\"kibble-switch\"\n ref={rootRef}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n <CSwitch.HiddenInput className=\"Switch_Input\" data-testid=\"kibble-switch-input\" ref={switchRef || ref} />\n <CSwitch.Control className=\"Switch_Control\" data-testid=\"kibble-switch-control\" />\n {!!children && <CSwitch.Label>{children}</CSwitch.Label>}\n </CSwitch.Root>\n );\n },\n);\n\nSwitch.displayName = 'Switch';\nconst WrappedSwitch = withFormControl<SwitchProps>(Switch);\n\nexport { WrappedSwitch as Switch };\n"],"names":["SwitchProvider","useSwitchContext","createContext","SwitchControl","forwardRef","props","ref","switchContext","mergedProps","mergeProps","jsx","ark","SwitchHiddenInput","field","useFieldContext","SwitchLabel","useSwitch","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","zagSwitch.machine","zagSwitch.connect","normalizeProps","SwitchRoot","switchProps","localProps","createSplitProps","SwitchRootProvider","api","SwitchThumb","withProvider","withContext","useSwitchStyles","createSlotRecipeContext","Switch.RootProvider","Switch.Root","Switch.Label","Switch.Thumb","Switch.Control","styles","fallback","children","rest","chakra","dataAttr","Switch.HiddenInput","Switch","React","indeterminate","onContrast","label","rootRef","size","switchRef","_computedVariant","useMemo","jsxs","CSwitch.Root","CSwitch.HiddenInput","CSwitch.Control","CSwitch.Label","WrappedSwitch","withFormControl"],"mappings":"wbAGM,CAACA,EAAgBC,CAAgB,EAAIC,gBAAc,CACvD,KAAM,gBACN,SAAU,mBACV,aAAc,oBAChB,CAAC,ECAKC,EAAgBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC/C,MAAMC,EAAgBN,EAAkB,EAClCO,EAAcC,EAAU,WAACF,EAAc,gBAAe,EAAIF,CAAK,EACrE,OAAuBK,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAGH,EAAa,IAAAF,EAAK,CAC9D,CAAC,EACDH,EAAc,YAAc,gBCJ5B,MAAMS,EAAoBR,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACnD,MAAMC,EAAgBN,EAAkB,EAClCO,EAAcC,EAAU,WAACF,EAAc,oBAAmB,EAAIF,CAAK,EACnEQ,EAAQC,EAAAA,gBAAiB,EAC/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AU,iBAAiB,cAAY,wBAAwB,EAC/E,CAAC,CAAClB,2BAAamB,EAAA,CAAe,SAAAnB,CAAS,CAAA,CAAA,CAAA,CAC1C,CAAA,CAGN,EAEAK,EAAO,YAAc,SACf,MAAAe,EAAgBC,kBAA6BhB,CAAM","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as c } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { I as S } from "./icon.component-
|
|
3
|
-
import { N as G } from "./notificationCounter.component-
|
|
4
|
-
import { W as Y } from "./heading.component-
|
|
2
|
+
import { I as S } from "./icon.component-CFqpWzmV.js";
|
|
3
|
+
import { N as G } from "./notificationCounter.component-BzhAKrKR.js";
|
|
4
|
+
import { W as Y } from "./heading.component-BHha3j1I.js";
|
|
5
5
|
import { c as J } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
6
6
|
import { useState as Q, useEffect as Z, forwardRef as T, useId as ee } from "react";
|
|
7
7
|
import { c as te, a as F, l as ae, m as se, f as m, h as oe, b as _, i as re, j as ne, k as ie, n as ce } from "./use-locale-context-BiiNTYMT.js";
|
|
@@ -574,34 +574,9 @@ const Ke = {
|
|
|
574
574
|
size: o = "md",
|
|
575
575
|
...n
|
|
576
576
|
}) => /* @__PURE__ */ c.jsxs(Me, { className: "Tab", "data-testid": "kibble-tab", ...n, children: [
|
|
577
|
-
!!e && t === "left" && /* @__PURE__ */ c.jsx(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
className: "Tab__Icon",
|
|
581
|
-
"data-testid": "kibble-tab-icon",
|
|
582
|
-
name: e,
|
|
583
|
-
size: o,
|
|
584
|
-
variant: "default"
|
|
585
|
-
}
|
|
586
|
-
),
|
|
587
|
-
/* @__PURE__ */ c.jsx(
|
|
588
|
-
Y,
|
|
589
|
-
{
|
|
590
|
-
className: "Tab__Label",
|
|
591
|
-
"data-testid": "kibble-tab-label",
|
|
592
|
-
size: qe[o],
|
|
593
|
-
children: s
|
|
594
|
-
}
|
|
595
|
-
),
|
|
596
|
-
!!e && t === "right" && /* @__PURE__ */ c.jsx(
|
|
597
|
-
S,
|
|
598
|
-
{
|
|
599
|
-
className: "Tab__Icon",
|
|
600
|
-
"data-testid": "kibble-tab-icon",
|
|
601
|
-
name: e,
|
|
602
|
-
size: o
|
|
603
|
-
}
|
|
604
|
-
),
|
|
577
|
+
!!e && t === "left" && /* @__PURE__ */ c.jsx(S, { className: "Tab__Icon", "data-testid": "kibble-tab-icon", name: e, size: o, variant: "default" }),
|
|
578
|
+
/* @__PURE__ */ c.jsx(Y, { className: "Tab__Label", "data-testid": "kibble-tab-label", size: qe[o], children: s }),
|
|
579
|
+
!!e && t === "right" && /* @__PURE__ */ c.jsx(S, { className: "Tab__Icon", "data-testid": "kibble-tab-icon", name: e, size: o }),
|
|
605
580
|
r && /* @__PURE__ */ c.jsx(
|
|
606
581
|
G,
|
|
607
582
|
{
|
|
@@ -636,4 +611,4 @@ const Ke = {
|
|
|
636
611
|
export {
|
|
637
612
|
rt as T
|
|
638
613
|
};
|
|
639
|
-
//# sourceMappingURL=tabs.component-
|
|
614
|
+
//# sourceMappingURL=tabs.component-ClJfuErZ.js.map
|