@televet/kibble-ui 5.0.21 → 5.0.23-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/chunks/{alert.types-C6EN46Ra.js → alert.component-OcRbeRJa.js} +37 -38
  2. package/dist/chunks/alert.component-OcRbeRJa.js.map +1 -0
  3. package/dist/chunks/{alert.types-BlvzpzTn.js → alert.component-nhRTQ5KK.js} +2 -2
  4. package/dist/chunks/alert.component-nhRTQ5KK.js.map +1 -0
  5. package/dist/chunks/alert.types-8mtsdXr4.js +2 -0
  6. package/dist/chunks/alert.types-8mtsdXr4.js.map +1 -0
  7. package/dist/chunks/alert.types-CPfg5SeM.js +5 -0
  8. package/dist/chunks/alert.types-CPfg5SeM.js.map +1 -0
  9. package/dist/chunks/{avatarGroup.component-M84HNv2O.js → avatarGroup.component-BPhQpVYM.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-M84HNv2O.js.map → avatarGroup.component-BPhQpVYM.js.map} +1 -1
  11. package/dist/chunks/{buttonGroup.component-HKh7TJ0v.js → buttonGroup.component-CO5lC36l.js} +2 -2
  12. package/dist/chunks/{buttonGroup.component-HKh7TJ0v.js.map → buttonGroup.component-CO5lC36l.js.map} +1 -1
  13. package/dist/chunks/{calendar.component-UUc8d3QQ.js → calendar.component-CegJR9ey.js} +2 -2
  14. package/dist/chunks/{calendar.component-UUc8d3QQ.js.map → calendar.component-CegJR9ey.js.map} +1 -1
  15. package/dist/chunks/{conversationCard.component-HYxRoILR.js → conversationCard.component-DByFo4jj.js} +3 -3
  16. package/dist/chunks/{conversationCard.component-HYxRoILR.js.map → conversationCard.component-DByFo4jj.js.map} +1 -1
  17. package/dist/chunks/{datePicker.component-Dq2vL7Mk.js → datePicker.component-CLTjEX7i.js} +2 -2
  18. package/dist/chunks/{datePicker.component-Dq2vL7Mk.js.map → datePicker.component-CLTjEX7i.js.map} +1 -1
  19. package/dist/chunks/{datePicker.provider-CavuOZl4.js → datePicker.provider-CttuPiiS.js} +2 -2
  20. package/dist/chunks/{datePicker.provider-CavuOZl4.js.map → datePicker.provider-CttuPiiS.js.map} +1 -1
  21. package/dist/chunks/dateTimePicker.component-CZpAgPHv.js +331 -0
  22. package/dist/chunks/dateTimePicker.component-CZpAgPHv.js.map +1 -0
  23. package/dist/chunks/dateTimePicker.component-D1J7ZeX2.js +2 -0
  24. package/dist/chunks/{dateTimePicker.component-BlWhC5aT.js.map → dateTimePicker.component-D1J7ZeX2.js.map} +1 -1
  25. package/dist/chunks/{icons-CoSqruIn.js → icons-CEVtpQAi.js} +3 -3
  26. package/dist/chunks/{icons-CoSqruIn.js.map → icons-CEVtpQAi.js.map} +1 -1
  27. package/dist/chunks/maintenanceBanner.types-BsNjAlXa.js +2 -0
  28. package/dist/chunks/maintenanceBanner.types-BsNjAlXa.js.map +1 -0
  29. package/dist/chunks/maintenanceBanner.types-DerZF_8G.js +31 -0
  30. package/dist/chunks/maintenanceBanner.types-DerZF_8G.js.map +1 -0
  31. package/dist/chunks/{menu.component-CV8eVKYt.js → menu.component-WHzMw5ZI.js} +2 -2
  32. package/dist/chunks/{menu.component-CV8eVKYt.js.map → menu.component-WHzMw5ZI.js.map} +1 -1
  33. package/dist/chunks/{numberInput.component-V6NQs14b.js → numberInput.component-CRDRjrTH.js} +2 -2
  34. package/dist/chunks/{numberInput.component-V6NQs14b.js.map → numberInput.component-CRDRjrTH.js.map} +1 -1
  35. package/dist/chunks/{radioGroup.types-BVbxeB22.js → radioGroup.types-DzSpA07h.js} +2 -2
  36. package/dist/chunks/{radioGroup.types-BVbxeB22.js.map → radioGroup.types-DzSpA07h.js.map} +1 -1
  37. package/dist/chunks/{rating-group-DRCWuE5-.js → rating-group-vxglWdry.js} +2 -2
  38. package/dist/chunks/{rating-group-DRCWuE5-.js.map → rating-group-vxglWdry.js.map} +1 -1
  39. package/dist/chunks/{rating.component-DeJY9G94.js → rating.component-BWBPSEEk.js} +2 -2
  40. package/dist/chunks/{rating.component-DeJY9G94.js.map → rating.component-BWBPSEEk.js.map} +1 -1
  41. package/dist/chunks/{select.component-CIjEq1os.js → select.component-DckP-f8y.js} +43 -43
  42. package/dist/chunks/{select.component-CIjEq1os.js.map → select.component-DckP-f8y.js.map} +1 -1
  43. package/dist/chunks/{tag.component-B7V76XfM.js → tag.component-CMsZIhN-.js} +5 -5
  44. package/dist/chunks/{tag.component-B7V76XfM.js.map → tag.component-CMsZIhN-.js.map} +1 -1
  45. package/dist/chunks/{tagBlock.component-R4FY7ytN.js → tagBlock.component-CT7_RyJ-.js} +3 -3
  46. package/dist/chunks/{tagBlock.component-R4FY7ytN.js.map → tagBlock.component-CT7_RyJ-.js.map} +1 -1
  47. package/dist/chunks/{theme.provider-CvuSdLO6.js → theme.provider-BYXTygyb.js} +2 -2
  48. package/dist/chunks/{theme.provider-CvuSdLO6.js.map → theme.provider-BYXTygyb.js.map} +1 -1
  49. package/dist/chunks/timePicker.component-C3x0n7PC.js +2 -0
  50. package/dist/chunks/timePicker.component-C3x0n7PC.js.map +1 -0
  51. package/dist/chunks/timePicker.component-CqH4VTcN.js +239 -0
  52. package/dist/chunks/timePicker.component-CqH4VTcN.js.map +1 -0
  53. package/dist/chunks/timeRange.component-BvVNCbXV.js +2 -0
  54. package/dist/chunks/{timeRange.component-BZHpZeAX.js.map → timeRange.component-BvVNCbXV.js.map} +1 -1
  55. package/dist/chunks/timeRange.component-CZJmccuW.js +26 -0
  56. package/dist/chunks/{timeRange.component-D3Db8lvh.js.map → timeRange.component-CZJmccuW.js.map} +1 -1
  57. package/dist/cjs/components/Alert/index.cjs +1 -1
  58. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  59. package/dist/cjs/components/MaintenanceBanner/index.cjs +2 -0
  60. package/dist/cjs/components/MaintenanceBanner/index.cjs.map +1 -0
  61. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  62. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  63. package/dist/cjs/components/index.cjs +1 -1
  64. package/dist/cjs/index.cjs +1 -1
  65. package/dist/cjs/theme/tokens/colors/index.cjs +1 -1
  66. package/dist/cjs/theme/tokens/colors/index.cjs.map +1 -1
  67. package/dist/esm/chakra/index.js +2 -2
  68. package/dist/esm/components/Alert/index.js +4 -3
  69. package/dist/esm/components/Alert/index.js.map +1 -1
  70. package/dist/esm/components/AvatarGroup/index.js +1 -1
  71. package/dist/esm/components/ButtonGroup/index.js +1 -1
  72. package/dist/esm/components/Calendar/index.js +1 -1
  73. package/dist/esm/components/ConversationCard/index.js +1 -1
  74. package/dist/esm/components/DatePicker/index.js +2 -2
  75. package/dist/esm/components/DateTimePicker/index.js +1 -1
  76. package/dist/esm/components/MaintenanceBanner/index.js +6 -0
  77. package/dist/esm/components/MaintenanceBanner/index.js.map +1 -0
  78. package/dist/esm/components/Menu/index.js +1 -1
  79. package/dist/esm/components/NumberInput/index.js +1 -1
  80. package/dist/esm/components/RadioGroup/index.js +1 -1
  81. package/dist/esm/components/Rating/index.js +1 -1
  82. package/dist/esm/components/Select/index.js +1 -1
  83. package/dist/esm/components/Tag/index.js +1 -1
  84. package/dist/esm/components/TagBlock/index.js +1 -1
  85. package/dist/esm/components/TimePicker/index.js +1 -1
  86. package/dist/esm/components/TimeRange/index.js +1 -1
  87. package/dist/esm/components/index.js +134 -130
  88. package/dist/esm/components/index.js.map +1 -1
  89. package/dist/esm/index.js +157 -153
  90. package/dist/esm/index.js.map +1 -1
  91. package/dist/esm/theme/index.js +1 -1
  92. package/dist/esm/theme/tokens/colors/index.js +10 -10
  93. package/dist/esm/theme/tokens/colors/index.js.map +1 -1
  94. package/dist/types/components/DateTimePicker/components/DateTimePickerCustomView/dateTimePickerCustomView.component.d.ts +2 -1
  95. package/dist/types/components/DateTimePicker/components/DateTimePickerRangeSelector/dateTimePickerRangeSelector.component.d.ts +2 -1
  96. package/dist/types/components/DateTimePicker/dateTimePicker.component.d.ts +6 -1
  97. package/dist/types/components/MaintenanceBanner/index.d.ts +2 -0
  98. package/dist/types/components/MaintenanceBanner/maintenanceBanner.component.d.ts +22 -0
  99. package/dist/types/components/MaintenanceBanner/maintenanceBanner.types.d.ts +4 -0
  100. package/dist/types/components/TimePicker/timePicker.component.d.ts +9 -1
  101. package/dist/types/components/index.d.ts +1 -0
  102. package/dist/types/shared/utils/convertToTimezoneOverride.d.ts +5 -0
  103. package/package.json +6 -3
  104. package/dist/chunks/alert.types-BlvzpzTn.js.map +0 -1
  105. package/dist/chunks/alert.types-C6EN46Ra.js.map +0 -1
  106. package/dist/chunks/dateTimePicker.component-BlWhC5aT.js +0 -2
  107. package/dist/chunks/dateTimePicker.component-DnYStcAJ.js +0 -317
  108. package/dist/chunks/dateTimePicker.component-DnYStcAJ.js.map +0 -1
  109. package/dist/chunks/timePicker.component-BCMX6aqb.js +0 -220
  110. package/dist/chunks/timePicker.component-BCMX6aqb.js.map +0 -1
  111. package/dist/chunks/timePicker.component-D5hw80VV.js +0 -2
  112. package/dist/chunks/timePicker.component-D5hw80VV.js.map +0 -1
  113. package/dist/chunks/timeRange.component-BZHpZeAX.js +0 -19
  114. package/dist/chunks/timeRange.component-D3Db8lvh.js +0 -2
@@ -0,0 +1,2 @@
1
+ "use strict";const r=require("./jsx-runtime-BjDatQAs.js"),t=require("react"),K=require("./textInput.component-CwTc0h_F.js"),Q=require("./popover.component-DTjA1GSd.js"),U=require("./icon.component-B1hr5lLa.js"),X=require("./useIconTextSizeMap-BXmABb54.js"),ee=require("./format-CK7Imh-5.js"),T=require("./index-BQRnVsAg.js"),N=require("./config-jChwZPSv.js"),te=require("./use-recipe-DaPWl_pL.js"),z=require("./create-slot-recipe-context-HXE1VazG.js"),se=require("date-fns"),O=require("date-fns-tz"),re=require("./text.component-BDDz5KQP.js"),oe=require("@date-fns/tz"),ne=require("./h-stack-D4MnHHRc.js"),ie=N.defineRecipe({base:{borderRadius:"4px",cursor:"pointer",fontSize:"sm",px:3,py:1,textAlign:"center"},variants:{selected:{true:{background:"background.secondary",color:"text.contrast",_hover:{background:"background.secondary.hover"}},false:{background:"background",color:"text.subtle",_hover:{background:"background.secondaryAlpha.hover"}}}},defaultVariants:{selected:!1}}),ce=({value:s,innerRef:n,onClick:i,selected:a,["data-testid"]:u="kibble-timepicker-option"})=>{const l=te.useRecipe({recipe:ie})({selected:a}),k=t.useCallback(o=>{const d=o.currentTarget.textContent||"";i(d)},[i]);return r.jsxRuntimeExports.jsx(T.Box,{className:"TimePicker__Option","data-testid":u,ref:n,onClick:k,css:l,children:s})},H=N.defineSlotRecipe({slots:["trigger","container","list"],base:{trigger:{width:"100%"},container:{display:"flex",gap:1.5,height:"186px",overflow:"hidden"},list:{display:"flex",flexDirection:"column",gap:1,overflowY:"auto","&::webkit-scrollbar":{display:"none"}}}}),$=({options:s,optionType:n,selectedValue:i,onClick:a,open:u=!1,["data-testid"]:p="kibble-timepicker-list"})=>{const k=z.useSlotRecipe({recipe:H})(),o=t.useRef(null);return t.useEffect(()=>{u&&o.current&&requestAnimationFrame(()=>{o.current&&o.current.scrollIntoView({block:"center"})})},[u,i]),r.jsxRuntimeExports.jsx(T.Box,{className:"TimePicker__List","data-testid":`${p}-${n}-list`,css:k.list,children:s.map(d=>{const j=d===i;return r.jsxRuntimeExports.jsx(ce,{innerRef:j?o:null,value:d,selected:d===i,onClick:a,"data-testid":`${p}-${n}-option-${d}`},`${n}-option-${d}`)})})};var m=(s=>(s.AM="AM",s.PM="PM",s))(m||{});const w=({date:s,timezoneOverride:n,reverse:i})=>{const a=O.getTimezoneOffset(Intl.DateTimeFormat().resolvedOptions().timeZone),u=O.getTimezoneOffset(n),p=i?u-a:a-u;return se.add(s,{minutes:p/1e3/60})},ae=({initialTime:s,inputProps:n,minuteInterval:i=5,onTimeChange:a,onClose:u,placement:p="bottom",timezoneOverride:l,showTimezoneAbr:k,["data-testid"]:o="kibble-timepicker"})=>{const j=z.useSlotRecipe({recipe:H})(),[h,D]=t.useState(!1),[R,y]=t.useState(s),[g,q]=t.useState(),[x,_]=t.useState(),[b,E]=t.useState(),V=t.useMemo(()=>R?ee.format(R,"h:mm aa"):"",[R]),P=e=>{const c=e.toString();return c.length===1?`0${c}`:c},B=t.useMemo(()=>[12,1,2,3,4,5,6,7,8,9,10,11].map(e=>e.toString()),[]),F=t.useMemo(()=>{const e=[];for(let c=0;c<60;c+=i)e.push(c);return e.map(P)},[i]),I=[m.AM,m.PM],f=t.useCallback((e,c,M)=>{const C=e||"12",Z=c||"00",v=M||"AM";let A=0;e||q("12"),c||_("00"),M||E("AM"),v===m.PM&&Number(C)<12&&(A=12),v===m.AM&&Number(C)===12&&(A=-12);const G=Number(C)+A,J=new Date().setHours(G,Number(Z),0,0);let S=new Date(J);y(S),a&&(l&&(S=w({date:S,timezoneOverride:l})),a(S))},[a,l]),L=t.useCallback(e=>{q(e),f(e,x,b)},[f,b,x]),W=t.useCallback(e=>{_(e),f(g,e,b)},[f,g,b]),Y=t.useCallback(e=>{E(e),f(g,x,e)},[f,g,x]);return t.useEffect(()=>{if(s){const e=l?w({date:s,timezoneOverride:l,reverse:!0}):new Date(s),M=e.getHours()%12||12;y(e),q(M.toString()),_(e.getMinutes().toString()),E(e.getHours()>11?m.PM:m.AM)}},[s]),r.jsxRuntimeExports.jsx(Q.Popover,{open:h,onOpenChange:({open:e})=>{D(e),!e&&u&&u(R)},anchor:r.jsxRuntimeExports.jsx(T.Box,{className:"TimePicker__Trigger","data-testid":`${o}-trigger`,css:j.trigger,children:r.jsxRuntimeExports.jsxs(ne.HStack,{children:[r.jsxRuntimeExports.jsx(K.WrappedTextInput,{placeholder:"12:00 AM",rightElement:r.jsxRuntimeExports.jsx(U.Icon,{size:X.useIconTextSizeMap(n?.size||"md"),name:"clock"}),value:V,readOnly:!0,cursor:"pointer",...n,...h&&{"data-focus":"true"}}),k&&l&&r.jsxRuntimeExports.jsx(re.WrappedText,{children:oe.tzName(l,new Date,"short")})]})}),contentProps:{w:"max-content"},placement:p,variant:n?.onContrast?"contrast":"default",showArrow:!1,children:r.jsxRuntimeExports.jsxs(T.Box,{className:"TimePicker__Container","data-testid":`${o}-container`,css:j.container,children:[r.jsxRuntimeExports.jsx($,{options:B,optionType:"hour",selectedValue:g,onClick:L,open:h,"data-testid":`${o}-hour-list`}),r.jsxRuntimeExports.jsx($,{options:F,optionType:"minute",selectedValue:x?P(x):void 0,onClick:W,open:h,"data-testid":`${o}-minute-list`}),r.jsxRuntimeExports.jsx($,{options:I,optionType:"meridiem",selectedValue:b,onClick:Y,open:h,"data-testid":`${o}-meridiem-list`})]})})};exports.Meridiem=m;exports.TimePicker=ae;exports.convertToTimezoneOverride=w;
2
+ //# sourceMappingURL=timePicker.component-C3x0n7PC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timePicker.component-C3x0n7PC.js","sources":["../../src/components/TimePicker/components/TimeOption/timeOption.recipe.ts","../../src/components/TimePicker/components/TimeOption/timeOption.component.tsx","../../src/components/TimePicker/timePicker.recipe.ts","../../src/components/TimePicker/components/TimeList/timeList.component.tsx","../../src/components/TimePicker/timePicker.types.ts","../../src/shared/utils/convertToTimezoneOverride.ts","../../src/components/TimePicker/timePicker.component.tsx"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nexport const timeOptionRecipe = defineRecipe({\n base: {\n borderRadius: '4px',\n cursor: 'pointer',\n fontSize: 'sm',\n px: 3,\n py: 1,\n textAlign: 'center',\n },\n variants: {\n selected: {\n true: {\n background: 'background.secondary',\n color: 'text.contrast',\n _hover: {\n background: 'background.secondary.hover',\n },\n },\n false: {\n background: 'background',\n color: 'text.subtle',\n _hover: {\n background: 'background.secondaryAlpha.hover',\n },\n },\n },\n },\n defaultVariants: {\n selected: false,\n },\n});\n","import React, { useCallback } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { timeOptionRecipe } from './timeOption.recipe';\n\ninterface TimeOptionProps {\n /** Ref to the option component. */\n innerRef?: React.Ref<HTMLDivElement | null> | null;\n /** Callback function to be called when the option is clicked. */\n onClick: (selectedValue: string) => void;\n /** If true, the option will be selected. */\n selected: boolean;\n /** Value of the option. */\n value: string;\n /** Data test id for the option.\n * @default kibble-timepicker-option\n */\n 'data-testid'?: string;\n}\n\nexport const TimeOption = ({\n value,\n innerRef,\n onClick,\n selected,\n ['data-testid']: dataTestId = 'kibble-timepicker-option',\n}: TimeOptionProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: timeOptionRecipe });\n const styles = recipe({ selected });\n\n const handleClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedValue = event.currentTarget.textContent || '';\n onClick(selectedValue);\n },\n [onClick],\n );\n\n return (\n <Box className=\"TimePicker__Option\" data-testid={dataTestId} ref={innerRef} onClick={handleClick} css={styles}>\n {value}\n </Box>\n );\n};\n","import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nexport const timePickerRecipe = defineSlotRecipe({\n slots: ['trigger', 'container', 'list'],\n base: {\n trigger: {\n width: '100%',\n },\n container: {\n display: 'flex',\n gap: 1.5,\n height: '186px',\n overflow: 'hidden',\n },\n list: {\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n overflowY: 'auto',\n '&::webkit-scrollbar': {\n display: 'none',\n },\n },\n },\n});\n","import React, { useEffect, useRef } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { TimeOption } from '../TimeOption/timeOption.component';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { timePickerRecipe } from '../../timePicker.recipe';\n\ninterface ScrollContainerProps {\n /** Options to display in the list. */\n options: string[];\n /** Type of the option. */\n optionType: 'hour' | 'minute' | 'meridiem';\n /** Selected value of the list. */\n selectedValue?: string;\n /** Callback function to be called when the option is clicked. */\n onClick: (value: string) => void;\n /** Determines if the list is open. */\n open: boolean;\n /** Data test id for the list.\n * @default kibble-timepicker-list\n */\n 'data-testid'?: string;\n}\n\nexport const TimeList = ({\n options,\n optionType,\n selectedValue,\n onClick,\n open = false,\n ['data-testid']: dataTestId = 'kibble-timepicker-list',\n}: ScrollContainerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const itemRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (open && itemRef.current) {\n requestAnimationFrame(() => {\n if (itemRef.current) {\n itemRef.current.scrollIntoView({ block: 'center' });\n }\n });\n }\n }, [open, selectedValue]);\n\n return (\n <Box className=\"TimePicker__List\" data-testid={`${dataTestId}-${optionType}-list`} css={styles.list}>\n {options.map((option) => {\n const isSelected = option === selectedValue;\n return (\n <TimeOption\n key={`${optionType}-option-${option}`}\n innerRef={isSelected ? itemRef : null}\n value={option}\n selected={option === selectedValue}\n onClick={onClick}\n data-testid={`${dataTestId}-${optionType}-option-${option}`}\n />\n );\n })}\n </Box>\n );\n};\n","export enum Meridiem {\n AM = 'AM',\n PM = 'PM',\n}\n","import { add } from 'date-fns';\nimport { getTimezoneOffset } from 'date-fns-tz';\n\nexport const convertToTimezoneOverride = ({\n date,\n timezoneOverride,\n reverse,\n}: {\n date: Date;\n timezoneOverride: string;\n reverse?: boolean;\n}): Date => {\n const localTzOffset = getTimezoneOffset(Intl.DateTimeFormat().resolvedOptions().timeZone);\n const overrideTzOffset = getTimezoneOffset(timezoneOverride);\n const offsetDiff = reverse ? overrideTzOffset - localTzOffset : localTzOffset - overrideTzOffset;\n return add(date, { minutes: offsetDiff / 1000 / 60 });\n};\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { TextInput, TextInputProps } from 'components/TextInput/textInput.component';\nimport { Popover } from 'components/Popover/popover.component';\nimport { Icon } from 'components/Icon/icon.component';\nimport { useIconTextSizeMap } from 'hooks/useIconTextSizeMap';\nimport format from 'date-fns/format';\nimport { Box } from '@chakra-ui/react/box';\nimport { TimeList } from './components/TimeList/timeList.component';\nimport { Meridiem } from './timePicker.types';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { timePickerRecipe } from './timePicker.recipe';\nimport { Placement } from 'shared/types/placement';\nimport { convertToTimezoneOverride } from 'shared/utils/convertToTimezoneOverride';\nimport { Text } from 'components/Text';\nimport { HStack } from 'chakra';\nimport { tzName } from '@date-fns/tz';\nexport interface TimePickerProps {\n /** Initial time to be displayed in the input field. */\n initialTime?: Date;\n /** Props to customize the input field. See `TextInput` for more information. */\n inputProps?: Omit<TextInputProps, 'onChange' | 'value' | 'isClearable' | 'onClear'>;\n /**\n * Interval of minutes to be displayed in the dropdown.\n * @default 5\n */\n minuteInterval?: number;\n /** Callback function triggered when the time is changed. */\n onTimeChange?: (time: Date) => void;\n /** Callback function triggered when the time picker is closed. */\n onClose?: (time?: Date) => void;\n /**\n * Placement of the dropdown relative to the input field.\n * @default bottom\n */\n placement?: Placement;\n /**\n * If set, displays and processes the time in a specific timezone (typically for impersonation)\n */\n timezoneOverride?: string;\n /**\n * Show the timezone abbreviation (if available) beside the component\n */\n showTimezoneAbr?: boolean;\n /**\n * Data test id for the time picker.\n * @default kibble-timepicker\n */\n 'data-testid'?: string;\n}\n\nexport const TimePicker = ({\n initialTime,\n inputProps,\n minuteInterval = 5,\n onTimeChange,\n onClose,\n placement = 'bottom',\n timezoneOverride,\n showTimezoneAbr,\n ['data-testid']: dataTestId = 'kibble-timepicker',\n}: TimePickerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const [isOpen, setIsOpen] = useState(false);\n const [selectedTime, setSelectedTime] = useState(initialTime);\n const [selectedHour, setSelectedHour] = useState<string | undefined>();\n const [selectedMinute, setSelectedMinute] = useState<string | undefined>();\n const [selectedMeridiem, setSelectedMeridiem] = useState<string | undefined>();\n\n const formattedTime = useMemo(() => {\n if (!selectedTime) return '';\n return format(selectedTime, 'h:mm aa');\n }, [selectedTime]);\n\n const formatNumber = (number: number | string): string => {\n const formattedValue = number.toString();\n if (formattedValue.length === 1) {\n return `0${formattedValue}`;\n }\n\n return formattedValue;\n };\n\n const hourOptions = useMemo(() => {\n return [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((hour) => hour.toString());\n }, []);\n\n const minuteOptions = useMemo(() => {\n const minutes = [];\n for (let i = 0; i < 60; i += minuteInterval) {\n minutes.push(i);\n }\n\n return minutes.map(formatNumber);\n }, [minuteInterval]);\n\n const meridiemOptions = [Meridiem.AM, Meridiem.PM];\n\n const handleTimeChange = useCallback(\n (hour?: string, minute?: string, meridiem?: string) => {\n const _hour = hour || '12';\n const _minute = minute || '00';\n const _meridiem = meridiem || 'AM';\n let meridiemAdjustment = 0;\n\n if (!hour) {\n setSelectedHour('12');\n }\n if (!minute) {\n setSelectedMinute('00');\n }\n if (!meridiem) {\n setSelectedMeridiem('AM');\n }\n\n // set 1-11pm to 13-23. Don't set 12pm to 24\n if (_meridiem === Meridiem.PM && Number(_hour) < 12) {\n meridiemAdjustment = 12;\n }\n\n // set 12am to 00\n if (_meridiem === Meridiem.AM && Number(_hour) === 12) {\n meridiemAdjustment = -12;\n }\n\n const hours = Number(_hour) + meridiemAdjustment;\n const time = new Date().setHours(hours, Number(_minute), 0, 0);\n let date = new Date(time);\n\n setSelectedTime(date);\n if (onTimeChange) {\n if (timezoneOverride) {\n date = convertToTimezoneOverride({ date, timezoneOverride });\n }\n onTimeChange(date);\n }\n },\n [onTimeChange, timezoneOverride],\n );\n\n const handleHourClick = useCallback(\n (value: string) => {\n setSelectedHour(value);\n handleTimeChange(value, selectedMinute, selectedMeridiem);\n },\n [handleTimeChange, selectedMeridiem, selectedMinute],\n );\n\n const handleMinuteClick = useCallback(\n (value: string) => {\n setSelectedMinute(value);\n handleTimeChange(selectedHour, value, selectedMeridiem);\n },\n [handleTimeChange, selectedHour, selectedMeridiem],\n );\n\n const handleMeridiemClick = useCallback(\n (value: string) => {\n setSelectedMeridiem(value);\n handleTimeChange(selectedHour, selectedMinute, value);\n },\n [handleTimeChange, selectedHour, selectedMinute],\n );\n\n useEffect(() => {\n // Set default selections based on value passed in\n // and, to ensure this doesn't re-run while the user is making selections,\n // ignore subsequent calls the parent component might make\n if (initialTime) {\n const localTime = timezoneOverride\n ? convertToTimezoneOverride({ date: initialTime, timezoneOverride, reverse: true })\n : new Date(initialTime);\n\n // calculate hours\n const hours = localTime.getHours();\n const adjustedHours = hours % 12 || 12;\n\n setSelectedTime(localTime);\n setSelectedHour(adjustedHours.toString());\n setSelectedMinute(localTime.getMinutes().toString());\n setSelectedMeridiem(localTime.getHours() > 11 ? Meridiem.PM : Meridiem.AM);\n }\n }, [initialTime]);\n\n return (\n <Popover\n open={isOpen}\n onOpenChange={({ open }) => {\n setIsOpen(open);\n if (!open && onClose) {\n onClose(selectedTime);\n }\n }}\n anchor={\n <Box className=\"TimePicker__Trigger\" data-testid={`${dataTestId}-trigger`} css={styles.trigger}>\n <HStack>\n <TextInput\n placeholder=\"12:00 AM\"\n rightElement={<Icon size={useIconTextSizeMap(inputProps?.size || 'md')} name=\"clock\" />}\n value={formattedTime}\n readOnly\n cursor=\"pointer\"\n {...inputProps}\n {...(isOpen && { 'data-focus': 'true' })}\n />\n {showTimezoneAbr && timezoneOverride && <Text>{tzName(timezoneOverride, new Date(), 'short')}</Text>}\n </HStack>\n </Box>\n }\n contentProps={{ w: 'max-content' }}\n placement={placement}\n variant={inputProps?.onContrast ? 'contrast' : 'default'}\n showArrow={false}\n >\n <Box className=\"TimePicker__Container\" data-testid={`${dataTestId}-container`} css={styles.container}>\n <TimeList\n options={hourOptions}\n optionType=\"hour\"\n selectedValue={selectedHour}\n onClick={handleHourClick}\n open={isOpen}\n data-testid={`${dataTestId}-hour-list`}\n />\n <TimeList\n options={minuteOptions}\n optionType=\"minute\"\n selectedValue={selectedMinute ? formatNumber(selectedMinute) : undefined}\n onClick={handleMinuteClick}\n open={isOpen}\n data-testid={`${dataTestId}-minute-list`}\n />\n <TimeList\n options={meridiemOptions}\n optionType=\"meridiem\"\n selectedValue={selectedMeridiem}\n onClick={handleMeridiemClick}\n open={isOpen}\n data-testid={`${dataTestId}-meridiem-list`}\n />\n </Box>\n </Popover>\n );\n};\n"],"names":["timeOptionRecipe","defineRecipe","TimeOption","value","innerRef","onClick","selected","dataTestId","styles","useRecipe","handleClick","useCallback","event","selectedValue","jsx","Box","timePickerRecipe","defineSlotRecipe","TimeList","options","optionType","open","useSlotRecipe","itemRef","useRef","useEffect","option","isSelected","Meridiem","convertToTimezoneOverride","date","timezoneOverride","reverse","localTzOffset","getTimezoneOffset","overrideTzOffset","offsetDiff","add","TimePicker","initialTime","inputProps","minuteInterval","onTimeChange","onClose","placement","showTimezoneAbr","isOpen","setIsOpen","useState","selectedTime","setSelectedTime","selectedHour","setSelectedHour","selectedMinute","setSelectedMinute","selectedMeridiem","setSelectedMeridiem","formattedTime","useMemo","format","formatNumber","number","formattedValue","hourOptions","hour","minuteOptions","minutes","i","meridiemOptions","handleTimeChange","minute","meridiem","_hour","_minute","_meridiem","meridiemAdjustment","hours","time","handleHourClick","handleMinuteClick","handleMeridiemClick","localTime","adjustedHours","Popover","HStack","TextInput","Icon","useIconTextSizeMap","Text","tzName","jsxs"],"mappings":"8lBAEaA,GAAmBC,EAAAA,aAAa,CAC3C,KAAM,CACJ,aAAc,MACd,OAAQ,UACR,SAAU,KACV,GAAI,EACJ,GAAI,EACJ,UAAW,QACb,EACA,SAAU,CACR,SAAU,CACR,KAAM,CACJ,WAAY,uBACZ,MAAO,gBACP,OAAQ,CACN,WAAY,4BAAA,CAEhB,EACA,MAAO,CACL,WAAY,aACZ,MAAO,cACP,OAAQ,CACN,WAAY,iCAAA,CACd,CACF,CAEJ,EACA,gBAAiB,CACf,SAAU,EAAA,CAEd,CAAC,ECZYC,GAAa,CAAC,CACzB,MAAAC,EACA,SAAAC,EACA,QAAAC,EACA,SAAAC,EACA,CAAC,eAAgBC,EAAa,0BAChC,IAA0C,CAExC,MAAMC,EADSC,GAAA,UAAU,CAAE,OAAQT,GAAkB,EAC/B,CAAE,SAAAM,EAAU,EAE5BI,EAAcC,EAAA,YACjBC,GAA4C,CACrC,MAAAC,EAAgBD,EAAM,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AQ,OAAO,CAAE,CAAA,CAAA,CAAA,CAC/F,CACF,CAAA,EAEF,aAAc,CAAE,EAAG,aAAc,EACjC,UAAAa,EACA,QAASJ,GAAY,WAAa,WAAa,UAC/C,UAAW,GAEX,SAAAkD,EAAAA,kBAAAA,KAAC3E,EAAAA,IAAI,CAAA,UAAU,wBAAwB,cAAa,GAAGR,CAAU,aAAc,IAAKC,EAAO,UACzF,SAAA,CAAAM,EAAA,kBAAA,IAACI,EAAA,CACC,QAAS6C,EACT,WAAW,OACX,cAAeZ,EACf,QAAS2B,EACT,KAAMhC,EACN,cAAa,GAAGvC,CAAU,YAAA,CAC5B,EACAO,EAAA,kBAAA,IAACI,EAAA,CACC,QAAS+C,EACT,WAAW,SACX,cAAeZ,EAAiBO,EAAaP,CAAc,EAAI,OAC/D,QAAS0B,EACT,KAAMjC,EACN,cAAa,GAAGvC,CAAU,cAAA,CAC5B,EACAO,EAAA,kBAAA,IAACI,EAAA,CACC,QAASkD,EACT,WAAW,WACX,cAAeb,EACf,QAASyB,EACT,KAAMlC,EACN,cAAa,GAAGvC,CAAU,gBAAA,CAAA,CAC5B,CACF,CAAA,CAAA,CACF,CAEJ"}
@@ -0,0 +1,239 @@
1
+ import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { useCallback as M, useRef as U, useEffect as W, useState as b, useMemo as C } from "react";
3
+ import { W as X } from "./textInput.component-BeiTxTkS.js";
4
+ import { P as ee } from "./popover.component-DIYT1Lc0.js";
5
+ import { I as te } from "./icon.component-PV_nHBId.js";
6
+ import { u as se } from "./useIconTextSizeMap-BK-pUrQv.js";
7
+ import { f as re } from "./format-CqTHHSak.js";
8
+ import { B as _ } from "./index-9BerxEcw.js";
9
+ import { a as oe, d as ie } from "./config-Djkl1N81.js";
10
+ import { u as ne } from "./use-recipe-d63ABaZ3.js";
11
+ import { u as z } from "./create-slot-recipe-context-D_FXDJGp.js";
12
+ import { add as ce } from "date-fns";
13
+ import { getTimezoneOffset as D } from "date-fns-tz";
14
+ import { W as ae } from "./text.component-DhuUgP3j.js";
15
+ import { tzName as le } from "@date-fns/tz";
16
+ import { H as me } from "./h-stack-8q5nAOg0.js";
17
+ const ue = oe({
18
+ base: {
19
+ borderRadius: "4px",
20
+ cursor: "pointer",
21
+ fontSize: "sm",
22
+ px: 3,
23
+ py: 1,
24
+ textAlign: "center"
25
+ },
26
+ variants: {
27
+ selected: {
28
+ true: {
29
+ background: "background.secondary",
30
+ color: "text.contrast",
31
+ _hover: {
32
+ background: "background.secondary.hover"
33
+ }
34
+ },
35
+ false: {
36
+ background: "background",
37
+ color: "text.subtle",
38
+ _hover: {
39
+ background: "background.secondaryAlpha.hover"
40
+ }
41
+ }
42
+ }
43
+ },
44
+ defaultVariants: {
45
+ selected: !1
46
+ }
47
+ }), de = ({
48
+ value: t,
49
+ innerRef: o,
50
+ onClick: i,
51
+ selected: c,
52
+ ["data-testid"]: a = "kibble-timepicker-option"
53
+ }) => {
54
+ const l = ne({ recipe: ue })({ selected: c }), h = M(
55
+ (r) => {
56
+ const m = r.currentTarget.textContent || "";
57
+ i(m);
58
+ },
59
+ [i]
60
+ );
61
+ return /* @__PURE__ */ s.jsx(_, { className: "TimePicker__Option", "data-testid": a, ref: o, onClick: h, css: l, children: t });
62
+ }, E = ie({
63
+ slots: ["trigger", "container", "list"],
64
+ base: {
65
+ trigger: {
66
+ width: "100%"
67
+ },
68
+ container: {
69
+ display: "flex",
70
+ gap: 1.5,
71
+ height: "186px",
72
+ overflow: "hidden"
73
+ },
74
+ list: {
75
+ display: "flex",
76
+ flexDirection: "column",
77
+ gap: 1,
78
+ overflowY: "auto",
79
+ "&::webkit-scrollbar": {
80
+ display: "none"
81
+ }
82
+ }
83
+ }
84
+ }), N = ({
85
+ options: t,
86
+ optionType: o,
87
+ selectedValue: i,
88
+ onClick: c,
89
+ open: a = !1,
90
+ ["data-testid"]: u = "kibble-timepicker-list"
91
+ }) => {
92
+ const h = z({ recipe: E })(), r = U(null);
93
+ return W(() => {
94
+ a && r.current && requestAnimationFrame(() => {
95
+ r.current && r.current.scrollIntoView({ block: "center" });
96
+ });
97
+ }, [a, i]), /* @__PURE__ */ s.jsx(_, { className: "TimePicker__List", "data-testid": `${u}-${o}-list`, css: h.list, children: t.map((m) => {
98
+ const j = m === i;
99
+ return /* @__PURE__ */ s.jsx(
100
+ de,
101
+ {
102
+ innerRef: j ? r : null,
103
+ value: m,
104
+ selected: m === i,
105
+ onClick: c,
106
+ "data-testid": `${u}-${o}-option-${m}`
107
+ },
108
+ `${o}-option-${m}`
109
+ );
110
+ }) });
111
+ };
112
+ var d = /* @__PURE__ */ ((t) => (t.AM = "AM", t.PM = "PM", t))(d || {});
113
+ const V = ({
114
+ date: t,
115
+ timezoneOverride: o,
116
+ reverse: i
117
+ }) => {
118
+ const c = D(Intl.DateTimeFormat().resolvedOptions().timeZone), a = D(o), u = i ? a - c : c - a;
119
+ return ce(t, { minutes: u / 1e3 / 60 });
120
+ }, Pe = ({
121
+ initialTime: t,
122
+ inputProps: o,
123
+ minuteInterval: i = 5,
124
+ onTimeChange: c,
125
+ onClose: a,
126
+ placement: u = "bottom",
127
+ timezoneOverride: l,
128
+ showTimezoneAbr: h,
129
+ ["data-testid"]: r = "kibble-timepicker"
130
+ }) => {
131
+ const j = z({ recipe: E })(), [g, B] = b(!1), [S, H] = b(t), [k, $] = b(), [p, w] = b(), [x, y] = b(), F = C(() => S ? re(S, "h:mm aa") : "", [S]), O = (e) => {
132
+ const n = e.toString();
133
+ return n.length === 1 ? `0${n}` : n;
134
+ }, L = C(() => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((e) => e.toString()), []), q = C(() => {
135
+ const e = [];
136
+ for (let n = 0; n < 60; n += i)
137
+ e.push(n);
138
+ return e.map(O);
139
+ }, [i]), I = [d.AM, d.PM], f = M(
140
+ (e, n, T) => {
141
+ const P = e || "12", J = n || "00", v = T || "AM";
142
+ let R = 0;
143
+ e || $("12"), n || w("00"), T || y("AM"), v === d.PM && Number(P) < 12 && (R = 12), v === d.AM && Number(P) === 12 && (R = -12);
144
+ const K = Number(P) + R, Q = (/* @__PURE__ */ new Date()).setHours(K, Number(J), 0, 0);
145
+ let A = new Date(Q);
146
+ H(A), c && (l && (A = V({ date: A, timezoneOverride: l })), c(A));
147
+ },
148
+ [c, l]
149
+ ), Y = M(
150
+ (e) => {
151
+ $(e), f(e, p, x);
152
+ },
153
+ [f, x, p]
154
+ ), Z = M(
155
+ (e) => {
156
+ w(e), f(k, e, x);
157
+ },
158
+ [f, k, x]
159
+ ), G = M(
160
+ (e) => {
161
+ y(e), f(k, p, e);
162
+ },
163
+ [f, k, p]
164
+ );
165
+ return W(() => {
166
+ if (t) {
167
+ const e = l ? V({ date: t, timezoneOverride: l, reverse: !0 }) : new Date(t), T = e.getHours() % 12 || 12;
168
+ H(e), $(T.toString()), w(e.getMinutes().toString()), y(e.getHours() > 11 ? d.PM : d.AM);
169
+ }
170
+ }, [t]), /* @__PURE__ */ s.jsx(
171
+ ee,
172
+ {
173
+ open: g,
174
+ onOpenChange: ({ open: e }) => {
175
+ B(e), !e && a && a(S);
176
+ },
177
+ anchor: /* @__PURE__ */ s.jsx(_, { className: "TimePicker__Trigger", "data-testid": `${r}-trigger`, css: j.trigger, children: /* @__PURE__ */ s.jsxs(me, { children: [
178
+ /* @__PURE__ */ s.jsx(
179
+ X,
180
+ {
181
+ placeholder: "12:00 AM",
182
+ rightElement: /* @__PURE__ */ s.jsx(te, { size: se(o?.size || "md"), name: "clock" }),
183
+ value: F,
184
+ readOnly: !0,
185
+ cursor: "pointer",
186
+ ...o,
187
+ ...g && { "data-focus": "true" }
188
+ }
189
+ ),
190
+ h && l && /* @__PURE__ */ s.jsx(ae, { children: le(l, /* @__PURE__ */ new Date(), "short") })
191
+ ] }) }),
192
+ contentProps: { w: "max-content" },
193
+ placement: u,
194
+ variant: o?.onContrast ? "contrast" : "default",
195
+ showArrow: !1,
196
+ children: /* @__PURE__ */ s.jsxs(_, { className: "TimePicker__Container", "data-testid": `${r}-container`, css: j.container, children: [
197
+ /* @__PURE__ */ s.jsx(
198
+ N,
199
+ {
200
+ options: L,
201
+ optionType: "hour",
202
+ selectedValue: k,
203
+ onClick: Y,
204
+ open: g,
205
+ "data-testid": `${r}-hour-list`
206
+ }
207
+ ),
208
+ /* @__PURE__ */ s.jsx(
209
+ N,
210
+ {
211
+ options: q,
212
+ optionType: "minute",
213
+ selectedValue: p ? O(p) : void 0,
214
+ onClick: Z,
215
+ open: g,
216
+ "data-testid": `${r}-minute-list`
217
+ }
218
+ ),
219
+ /* @__PURE__ */ s.jsx(
220
+ N,
221
+ {
222
+ options: I,
223
+ optionType: "meridiem",
224
+ selectedValue: x,
225
+ onClick: G,
226
+ open: g,
227
+ "data-testid": `${r}-meridiem-list`
228
+ }
229
+ )
230
+ ] })
231
+ }
232
+ );
233
+ };
234
+ export {
235
+ d as M,
236
+ Pe as T,
237
+ V as c
238
+ };
239
+ //# sourceMappingURL=timePicker.component-CqH4VTcN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timePicker.component-CqH4VTcN.js","sources":["../../src/components/TimePicker/components/TimeOption/timeOption.recipe.ts","../../src/components/TimePicker/components/TimeOption/timeOption.component.tsx","../../src/components/TimePicker/timePicker.recipe.ts","../../src/components/TimePicker/components/TimeList/timeList.component.tsx","../../src/components/TimePicker/timePicker.types.ts","../../src/shared/utils/convertToTimezoneOverride.ts","../../src/components/TimePicker/timePicker.component.tsx"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nexport const timeOptionRecipe = defineRecipe({\n base: {\n borderRadius: '4px',\n cursor: 'pointer',\n fontSize: 'sm',\n px: 3,\n py: 1,\n textAlign: 'center',\n },\n variants: {\n selected: {\n true: {\n background: 'background.secondary',\n color: 'text.contrast',\n _hover: {\n background: 'background.secondary.hover',\n },\n },\n false: {\n background: 'background',\n color: 'text.subtle',\n _hover: {\n background: 'background.secondaryAlpha.hover',\n },\n },\n },\n },\n defaultVariants: {\n selected: false,\n },\n});\n","import React, { useCallback } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { timeOptionRecipe } from './timeOption.recipe';\n\ninterface TimeOptionProps {\n /** Ref to the option component. */\n innerRef?: React.Ref<HTMLDivElement | null> | null;\n /** Callback function to be called when the option is clicked. */\n onClick: (selectedValue: string) => void;\n /** If true, the option will be selected. */\n selected: boolean;\n /** Value of the option. */\n value: string;\n /** Data test id for the option.\n * @default kibble-timepicker-option\n */\n 'data-testid'?: string;\n}\n\nexport const TimeOption = ({\n value,\n innerRef,\n onClick,\n selected,\n ['data-testid']: dataTestId = 'kibble-timepicker-option',\n}: TimeOptionProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: timeOptionRecipe });\n const styles = recipe({ selected });\n\n const handleClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedValue = event.currentTarget.textContent || '';\n onClick(selectedValue);\n },\n [onClick],\n );\n\n return (\n <Box className=\"TimePicker__Option\" data-testid={dataTestId} ref={innerRef} onClick={handleClick} css={styles}>\n {value}\n </Box>\n );\n};\n","import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nexport const timePickerRecipe = defineSlotRecipe({\n slots: ['trigger', 'container', 'list'],\n base: {\n trigger: {\n width: '100%',\n },\n container: {\n display: 'flex',\n gap: 1.5,\n height: '186px',\n overflow: 'hidden',\n },\n list: {\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n overflowY: 'auto',\n '&::webkit-scrollbar': {\n display: 'none',\n },\n },\n },\n});\n","import React, { useEffect, useRef } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { TimeOption } from '../TimeOption/timeOption.component';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { timePickerRecipe } from '../../timePicker.recipe';\n\ninterface ScrollContainerProps {\n /** Options to display in the list. */\n options: string[];\n /** Type of the option. */\n optionType: 'hour' | 'minute' | 'meridiem';\n /** Selected value of the list. */\n selectedValue?: string;\n /** Callback function to be called when the option is clicked. */\n onClick: (value: string) => void;\n /** Determines if the list is open. */\n open: boolean;\n /** Data test id for the list.\n * @default kibble-timepicker-list\n */\n 'data-testid'?: string;\n}\n\nexport const TimeList = ({\n options,\n optionType,\n selectedValue,\n onClick,\n open = false,\n ['data-testid']: dataTestId = 'kibble-timepicker-list',\n}: ScrollContainerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const itemRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (open && itemRef.current) {\n requestAnimationFrame(() => {\n if (itemRef.current) {\n itemRef.current.scrollIntoView({ block: 'center' });\n }\n });\n }\n }, [open, selectedValue]);\n\n return (\n <Box className=\"TimePicker__List\" data-testid={`${dataTestId}-${optionType}-list`} css={styles.list}>\n {options.map((option) => {\n const isSelected = option === selectedValue;\n return (\n <TimeOption\n key={`${optionType}-option-${option}`}\n innerRef={isSelected ? itemRef : null}\n value={option}\n selected={option === selectedValue}\n onClick={onClick}\n data-testid={`${dataTestId}-${optionType}-option-${option}`}\n />\n );\n })}\n </Box>\n );\n};\n","export enum Meridiem {\n AM = 'AM',\n PM = 'PM',\n}\n","import { add } from 'date-fns';\nimport { getTimezoneOffset } from 'date-fns-tz';\n\nexport const convertToTimezoneOverride = ({\n date,\n timezoneOverride,\n reverse,\n}: {\n date: Date;\n timezoneOverride: string;\n reverse?: boolean;\n}): Date => {\n const localTzOffset = getTimezoneOffset(Intl.DateTimeFormat().resolvedOptions().timeZone);\n const overrideTzOffset = getTimezoneOffset(timezoneOverride);\n const offsetDiff = reverse ? overrideTzOffset - localTzOffset : localTzOffset - overrideTzOffset;\n return add(date, { minutes: offsetDiff / 1000 / 60 });\n};\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { TextInput, TextInputProps } from 'components/TextInput/textInput.component';\nimport { Popover } from 'components/Popover/popover.component';\nimport { Icon } from 'components/Icon/icon.component';\nimport { useIconTextSizeMap } from 'hooks/useIconTextSizeMap';\nimport format from 'date-fns/format';\nimport { Box } from '@chakra-ui/react/box';\nimport { TimeList } from './components/TimeList/timeList.component';\nimport { Meridiem } from './timePicker.types';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { timePickerRecipe } from './timePicker.recipe';\nimport { Placement } from 'shared/types/placement';\nimport { convertToTimezoneOverride } from 'shared/utils/convertToTimezoneOverride';\nimport { Text } from 'components/Text';\nimport { HStack } from 'chakra';\nimport { tzName } from '@date-fns/tz';\nexport interface TimePickerProps {\n /** Initial time to be displayed in the input field. */\n initialTime?: Date;\n /** Props to customize the input field. See `TextInput` for more information. */\n inputProps?: Omit<TextInputProps, 'onChange' | 'value' | 'isClearable' | 'onClear'>;\n /**\n * Interval of minutes to be displayed in the dropdown.\n * @default 5\n */\n minuteInterval?: number;\n /** Callback function triggered when the time is changed. */\n onTimeChange?: (time: Date) => void;\n /** Callback function triggered when the time picker is closed. */\n onClose?: (time?: Date) => void;\n /**\n * Placement of the dropdown relative to the input field.\n * @default bottom\n */\n placement?: Placement;\n /**\n * If set, displays and processes the time in a specific timezone (typically for impersonation)\n */\n timezoneOverride?: string;\n /**\n * Show the timezone abbreviation (if available) beside the component\n */\n showTimezoneAbr?: boolean;\n /**\n * Data test id for the time picker.\n * @default kibble-timepicker\n */\n 'data-testid'?: string;\n}\n\nexport const TimePicker = ({\n initialTime,\n inputProps,\n minuteInterval = 5,\n onTimeChange,\n onClose,\n placement = 'bottom',\n timezoneOverride,\n showTimezoneAbr,\n ['data-testid']: dataTestId = 'kibble-timepicker',\n}: TimePickerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const [isOpen, setIsOpen] = useState(false);\n const [selectedTime, setSelectedTime] = useState(initialTime);\n const [selectedHour, setSelectedHour] = useState<string | undefined>();\n const [selectedMinute, setSelectedMinute] = useState<string | undefined>();\n const [selectedMeridiem, setSelectedMeridiem] = useState<string | undefined>();\n\n const formattedTime = useMemo(() => {\n if (!selectedTime) return '';\n return format(selectedTime, 'h:mm aa');\n }, [selectedTime]);\n\n const formatNumber = (number: number | string): string => {\n const formattedValue = number.toString();\n if (formattedValue.length === 1) {\n return `0${formattedValue}`;\n }\n\n return formattedValue;\n };\n\n const hourOptions = useMemo(() => {\n return [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((hour) => hour.toString());\n }, []);\n\n const minuteOptions = useMemo(() => {\n const minutes = [];\n for (let i = 0; i < 60; i += minuteInterval) {\n minutes.push(i);\n }\n\n return minutes.map(formatNumber);\n }, [minuteInterval]);\n\n const meridiemOptions = [Meridiem.AM, Meridiem.PM];\n\n const handleTimeChange = useCallback(\n (hour?: string, minute?: string, meridiem?: string) => {\n const _hour = hour || '12';\n const _minute = minute || '00';\n const _meridiem = meridiem || 'AM';\n let meridiemAdjustment = 0;\n\n if (!hour) {\n setSelectedHour('12');\n }\n if (!minute) {\n setSelectedMinute('00');\n }\n if (!meridiem) {\n setSelectedMeridiem('AM');\n }\n\n // set 1-11pm to 13-23. Don't set 12pm to 24\n if (_meridiem === Meridiem.PM && Number(_hour) < 12) {\n meridiemAdjustment = 12;\n }\n\n // set 12am to 00\n if (_meridiem === Meridiem.AM && Number(_hour) === 12) {\n meridiemAdjustment = -12;\n }\n\n const hours = Number(_hour) + meridiemAdjustment;\n const time = new Date().setHours(hours, Number(_minute), 0, 0);\n let date = new Date(time);\n\n setSelectedTime(date);\n if (onTimeChange) {\n if (timezoneOverride) {\n date = convertToTimezoneOverride({ date, timezoneOverride });\n }\n onTimeChange(date);\n }\n },\n [onTimeChange, timezoneOverride],\n );\n\n const handleHourClick = useCallback(\n (value: string) => {\n setSelectedHour(value);\n handleTimeChange(value, selectedMinute, selectedMeridiem);\n },\n [handleTimeChange, selectedMeridiem, selectedMinute],\n );\n\n const handleMinuteClick = useCallback(\n (value: string) => {\n setSelectedMinute(value);\n handleTimeChange(selectedHour, value, selectedMeridiem);\n },\n [handleTimeChange, selectedHour, selectedMeridiem],\n );\n\n const handleMeridiemClick = useCallback(\n (value: string) => {\n setSelectedMeridiem(value);\n handleTimeChange(selectedHour, selectedMinute, value);\n },\n [handleTimeChange, selectedHour, selectedMinute],\n );\n\n useEffect(() => {\n // Set default selections based on value passed in\n // and, to ensure this doesn't re-run while the user is making selections,\n // ignore subsequent calls the parent component might make\n if (initialTime) {\n const localTime = timezoneOverride\n ? convertToTimezoneOverride({ date: initialTime, timezoneOverride, reverse: true })\n : new Date(initialTime);\n\n // calculate hours\n const hours = localTime.getHours();\n const adjustedHours = hours % 12 || 12;\n\n setSelectedTime(localTime);\n setSelectedHour(adjustedHours.toString());\n setSelectedMinute(localTime.getMinutes().toString());\n setSelectedMeridiem(localTime.getHours() > 11 ? Meridiem.PM : Meridiem.AM);\n }\n }, [initialTime]);\n\n return (\n <Popover\n open={isOpen}\n onOpenChange={({ open }) => {\n setIsOpen(open);\n if (!open && onClose) {\n onClose(selectedTime);\n }\n }}\n anchor={\n <Box className=\"TimePicker__Trigger\" data-testid={`${dataTestId}-trigger`} css={styles.trigger}>\n <HStack>\n <TextInput\n placeholder=\"12:00 AM\"\n rightElement={<Icon size={useIconTextSizeMap(inputProps?.size || 'md')} name=\"clock\" />}\n value={formattedTime}\n readOnly\n cursor=\"pointer\"\n {...inputProps}\n {...(isOpen && { 'data-focus': 'true' })}\n />\n {showTimezoneAbr && timezoneOverride && <Text>{tzName(timezoneOverride, new Date(), 'short')}</Text>}\n </HStack>\n </Box>\n }\n contentProps={{ w: 'max-content' }}\n placement={placement}\n variant={inputProps?.onContrast ? 'contrast' : 'default'}\n showArrow={false}\n >\n <Box className=\"TimePicker__Container\" data-testid={`${dataTestId}-container`} css={styles.container}>\n <TimeList\n options={hourOptions}\n optionType=\"hour\"\n selectedValue={selectedHour}\n onClick={handleHourClick}\n open={isOpen}\n data-testid={`${dataTestId}-hour-list`}\n />\n <TimeList\n options={minuteOptions}\n optionType=\"minute\"\n selectedValue={selectedMinute ? formatNumber(selectedMinute) : undefined}\n onClick={handleMinuteClick}\n open={isOpen}\n data-testid={`${dataTestId}-minute-list`}\n />\n <TimeList\n options={meridiemOptions}\n optionType=\"meridiem\"\n selectedValue={selectedMeridiem}\n onClick={handleMeridiemClick}\n open={isOpen}\n data-testid={`${dataTestId}-meridiem-list`}\n />\n </Box>\n </Popover>\n );\n};\n"],"names":["timeOptionRecipe","defineRecipe","TimeOption","value","innerRef","onClick","selected","dataTestId","styles","useRecipe","handleClick","useCallback","event","selectedValue","jsx","Box","timePickerRecipe","defineSlotRecipe","TimeList","options","optionType","open","useSlotRecipe","itemRef","useRef","useEffect","option","isSelected","Meridiem","convertToTimezoneOverride","date","timezoneOverride","reverse","localTzOffset","getTimezoneOffset","overrideTzOffset","offsetDiff","add","TimePicker","initialTime","inputProps","minuteInterval","onTimeChange","onClose","placement","showTimezoneAbr","isOpen","setIsOpen","useState","selectedTime","setSelectedTime","selectedHour","setSelectedHour","selectedMinute","setSelectedMinute","selectedMeridiem","setSelectedMeridiem","formattedTime","useMemo","format","formatNumber","number","formattedValue","hourOptions","hour","minuteOptions","minutes","i","meridiemOptions","handleTimeChange","minute","meridiem","_hour","_minute","_meridiem","meridiemAdjustment","hours","time","handleHourClick","handleMinuteClick","handleMeridiemClick","localTime","adjustedHours","Popover","HStack","TextInput","Icon","useIconTextSizeMap","Text","tzName","jsxs"],"mappings":";;;;;;;;;;;;;;;;AAEO,MAAMA,KAAmBC,GAAa;AAAA,EAC3C,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,WAAW;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ;AAAA,UACN,YAAY;AAAA,QAAA;AAAA,MAEhB;AAAA,MACA,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,OA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A,QAAAM,gBAAAA,EAAA;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAAS6C;AAAA,YACT,YAAW;AAAA,YACX,eAAeZ;AAAA,YACf,SAAS2B;AAAA,YACT,MAAMhC;AAAA,YACN,eAAa,GAAGvC,CAAU;AAAA,UAAA;AAAA,QAC5B;AAAA,QACAO,gBAAAA,EAAA;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAAS+C;AAAA,YACT,YAAW;AAAA,YACX,eAAeZ,IAAiBO,EAAaP,CAAc,IAAI;AAAA,YAC/D,SAAS0B;AAAA,YACT,MAAMjC;AAAA,YACN,eAAa,GAAGvC,CAAU;AAAA,UAAA;AAAA,QAC5B;AAAA,QACAO,gBAAAA,EAAA;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAASkD;AAAA,YACT,YAAW;AAAA,YACX,eAAeb;AAAA,YACf,SAASyB;AAAA,YACT,MAAMlC;AAAA,YACN,eAAa,GAAGvC,CAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MAC5B,EACF,CAAA;AAAA,IAAA;AAAA,EACF;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),x=require("./index-BQRnVsAg.js"),r=require("./timePicker.component-C3x0n7PC.js"),c=require("./flex-BOU6tYUd.js"),o=({endTimePickerProps:t,separator:s="-",startTimePickerProps:n,["data-testid"]:i="kibble-time-range",...m})=>e.jsxRuntimeExports.jsxs(c.Flex,{className:"TimeRange","data-testid":i,...m,children:[e.jsxRuntimeExports.jsx(r.TimePicker,{...n,"data-testid":`${i}-start-time-picker`}),e.jsxRuntimeExports.jsx(x.Box,{alignSelf:"center",mx:1,children:s}),e.jsxRuntimeExports.jsx(r.TimePicker,{...t,showTimezoneAbr:!!t.timezoneOverride,"data-testid":`${i}-end-time-picker`})]});exports.TimeRange=o;
2
+ //# sourceMappingURL=timeRange.component-BvVNCbXV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeRange.component-BZHpZeAX.js","sources":["../../src/components/TimeRange/timeRange.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { Flex, FlexProps } from '@chakra-ui/react/flex';\nimport { TimePicker, TimePickerProps } from 'components/TimePicker/timePicker.component';\n\nexport interface TimeRangeProps extends FlexProps {\n /**\n * Element that separates the start and end time pickers. By default, a dash is used.\n * @default -\n */\n separator?: React.ReactNode;\n /** Props for the end time picker. See `TimePicker` for more information. */\n endTimePickerProps: TimePickerProps;\n /** Props for the start time picker. See `TimePicker` for more information. */\n startTimePickerProps: TimePickerProps;\n /**\n * Data test id for the time range.\n * @default kibble-time-range\n */\n 'data-testid'?: string;\n}\n\nexport const TimeRange = ({\n endTimePickerProps,\n separator = '-',\n startTimePickerProps,\n ['data-testid']: dataTestId = 'kibble-time-range',\n ...rest\n}: TimeRangeProps): React.JSX.Element => {\n return (\n <Flex className=\"TimeRange\" data-testid={dataTestId} {...rest}>\n <TimePicker {...startTimePickerProps} data-testid={`${dataTestId}-start-time-picker`} />\n <Box alignSelf=\"center\" mx={1}>\n {separator}\n </Box>\n <TimePicker {...endTimePickerProps} data-testid={`${dataTestId}-end-time-picker`} />\n </Flex>\n );\n};\n"],"names":["TimeRange","endTimePickerProps","separator","startTimePickerProps","dataTestId","rest","Flex","jsx","TimePicker","Box"],"mappings":";;;;AAsBO,MAAMA,IAAY,CAAC;AAAA,EACxB,oBAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,sBAAAC;AAAA,EACA,CAAC,gBAAgBC,IAAa;AAAA,EAC9B,GAAGC;AACL,6BAEKC,GAAK,EAAA,WAAU,aAAY,eAAaF,GAAa,GAAGC,GACvD,UAAA;AAAA,EAAAE,gBAAAA,MAACC,KAAY,GAAGL,GAAsB,eAAa,GAAGC,CAAU,sBAAsB;AAAA,wBACrFK,GAAI,EAAA,WAAU,UAAS,IAAI,GACzB,UACHP,GAAA;AAAA,wBACCM,GAAY,EAAA,GAAGP,GAAoB,eAAa,GAAGG,CAAU,mBAAoB,CAAA;AAAA,GACpF;"}
1
+ {"version":3,"file":"timeRange.component-BvVNCbXV.js","sources":["../../src/components/TimeRange/timeRange.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { Flex, FlexProps } from '@chakra-ui/react/flex';\nimport { TimePicker, TimePickerProps } from 'components/TimePicker/timePicker.component';\n\nexport interface TimeRangeProps extends FlexProps {\n /**\n * Element that separates the start and end time pickers. By default, a dash is used.\n * @default -\n */\n separator?: React.ReactNode;\n /** Props for the end time picker. See `TimePicker` for more information. */\n endTimePickerProps: TimePickerProps;\n /** Props for the start time picker. See `TimePicker` for more information. */\n startTimePickerProps: TimePickerProps;\n /**\n * Data test id for the time range.\n * @default kibble-time-range\n */\n 'data-testid'?: string;\n}\n\nexport const TimeRange = ({\n endTimePickerProps,\n separator = '-',\n startTimePickerProps,\n ['data-testid']: dataTestId = 'kibble-time-range',\n ...rest\n}: TimeRangeProps): React.JSX.Element => {\n return (\n <Flex className=\"TimeRange\" data-testid={dataTestId} {...rest}>\n <TimePicker {...startTimePickerProps} data-testid={`${dataTestId}-start-time-picker`} />\n <Box alignSelf=\"center\" mx={1}>\n {separator}\n </Box>\n <TimePicker\n {...endTimePickerProps}\n showTimezoneAbr={!!endTimePickerProps.timezoneOverride}\n data-testid={`${dataTestId}-end-time-picker`}\n />\n </Flex>\n );\n};\n"],"names":["TimeRange","endTimePickerProps","separator","startTimePickerProps","dataTestId","rest","Flex","jsx","TimePicker","Box"],"mappings":"2KAsBaA,EAAY,CAAC,CACxB,mBAAAC,EACA,UAAAC,EAAY,IACZ,qBAAAC,EACA,CAAC,eAAgBC,EAAa,oBAC9B,GAAGC,CACL,6BAEKC,OAAK,CAAA,UAAU,YAAY,cAAaF,EAAa,GAAGC,EACvD,SAAA,CAAAE,wBAACC,EAAAA,YAAY,GAAGL,EAAsB,cAAa,GAAGC,CAAU,qBAAsB,0BACrFK,EAAAA,IAAI,CAAA,UAAU,SAAS,GAAI,EACzB,SACHP,EAAA,EACAK,EAAA,kBAAA,IAACC,EAAA,WAAA,CACE,GAAGP,EACJ,gBAAiB,CAAC,CAACA,EAAmB,iBACtC,cAAa,GAAGG,CAAU,kBAAA,CAAA,CAC5B,EACF"}
@@ -0,0 +1,26 @@
1
+ import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { B as o } from "./index-9BerxEcw.js";
3
+ import { T as r } from "./timePicker.component-CqH4VTcN.js";
4
+ import { F as n } from "./flex-CX-8gE9T.js";
5
+ const p = ({
6
+ endTimePickerProps: i,
7
+ separator: m = "-",
8
+ startTimePickerProps: s,
9
+ ["data-testid"]: t = "kibble-time-range",
10
+ ...a
11
+ }) => /* @__PURE__ */ e.jsxs(n, { className: "TimeRange", "data-testid": t, ...a, children: [
12
+ /* @__PURE__ */ e.jsx(r, { ...s, "data-testid": `${t}-start-time-picker` }),
13
+ /* @__PURE__ */ e.jsx(o, { alignSelf: "center", mx: 1, children: m }),
14
+ /* @__PURE__ */ e.jsx(
15
+ r,
16
+ {
17
+ ...i,
18
+ showTimezoneAbr: !!i.timezoneOverride,
19
+ "data-testid": `${t}-end-time-picker`
20
+ }
21
+ )
22
+ ] });
23
+ export {
24
+ p as T
25
+ };
26
+ //# sourceMappingURL=timeRange.component-CZJmccuW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeRange.component-D3Db8lvh.js","sources":["../../src/components/TimeRange/timeRange.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { Flex, FlexProps } from '@chakra-ui/react/flex';\nimport { TimePicker, TimePickerProps } from 'components/TimePicker/timePicker.component';\n\nexport interface TimeRangeProps extends FlexProps {\n /**\n * Element that separates the start and end time pickers. By default, a dash is used.\n * @default -\n */\n separator?: React.ReactNode;\n /** Props for the end time picker. See `TimePicker` for more information. */\n endTimePickerProps: TimePickerProps;\n /** Props for the start time picker. See `TimePicker` for more information. */\n startTimePickerProps: TimePickerProps;\n /**\n * Data test id for the time range.\n * @default kibble-time-range\n */\n 'data-testid'?: string;\n}\n\nexport const TimeRange = ({\n endTimePickerProps,\n separator = '-',\n startTimePickerProps,\n ['data-testid']: dataTestId = 'kibble-time-range',\n ...rest\n}: TimeRangeProps): React.JSX.Element => {\n return (\n <Flex className=\"TimeRange\" data-testid={dataTestId} {...rest}>\n <TimePicker {...startTimePickerProps} data-testid={`${dataTestId}-start-time-picker`} />\n <Box alignSelf=\"center\" mx={1}>\n {separator}\n </Box>\n <TimePicker {...endTimePickerProps} data-testid={`${dataTestId}-end-time-picker`} />\n </Flex>\n );\n};\n"],"names":["TimeRange","endTimePickerProps","separator","startTimePickerProps","dataTestId","rest","Flex","jsx","TimePicker","Box"],"mappings":"2KAsBaA,EAAY,CAAC,CACxB,mBAAAC,EACA,UAAAC,EAAY,IACZ,qBAAAC,EACA,CAAC,eAAgBC,EAAa,oBAC9B,GAAGC,CACL,6BAEKC,OAAK,CAAA,UAAU,YAAY,cAAaF,EAAa,GAAGC,EACvD,SAAA,CAAAE,wBAACC,EAAAA,YAAY,GAAGL,EAAsB,cAAa,GAAGC,CAAU,qBAAsB,0BACrFK,EAAAA,IAAI,CAAA,UAAU,SAAS,GAAI,EACzB,SACHP,EAAA,0BACCM,EAAAA,WAAY,CAAA,GAAGP,EAAoB,cAAa,GAAGG,CAAU,kBAAoB,CAAA,CAAA,EACpF"}
1
+ {"version":3,"file":"timeRange.component-CZJmccuW.js","sources":["../../src/components/TimeRange/timeRange.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { Flex, FlexProps } from '@chakra-ui/react/flex';\nimport { TimePicker, TimePickerProps } from 'components/TimePicker/timePicker.component';\n\nexport interface TimeRangeProps extends FlexProps {\n /**\n * Element that separates the start and end time pickers. By default, a dash is used.\n * @default -\n */\n separator?: React.ReactNode;\n /** Props for the end time picker. See `TimePicker` for more information. */\n endTimePickerProps: TimePickerProps;\n /** Props for the start time picker. See `TimePicker` for more information. */\n startTimePickerProps: TimePickerProps;\n /**\n * Data test id for the time range.\n * @default kibble-time-range\n */\n 'data-testid'?: string;\n}\n\nexport const TimeRange = ({\n endTimePickerProps,\n separator = '-',\n startTimePickerProps,\n ['data-testid']: dataTestId = 'kibble-time-range',\n ...rest\n}: TimeRangeProps): React.JSX.Element => {\n return (\n <Flex className=\"TimeRange\" data-testid={dataTestId} {...rest}>\n <TimePicker {...startTimePickerProps} data-testid={`${dataTestId}-start-time-picker`} />\n <Box alignSelf=\"center\" mx={1}>\n {separator}\n </Box>\n <TimePicker\n {...endTimePickerProps}\n showTimezoneAbr={!!endTimePickerProps.timezoneOverride}\n data-testid={`${dataTestId}-end-time-picker`}\n />\n </Flex>\n );\n};\n"],"names":["TimeRange","endTimePickerProps","separator","startTimePickerProps","dataTestId","rest","Flex","jsx","TimePicker","Box"],"mappings":";;;;AAsBO,MAAMA,IAAY,CAAC;AAAA,EACxB,oBAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,sBAAAC;AAAA,EACA,CAAC,gBAAgBC,IAAa;AAAA,EAC9B,GAAGC;AACL,6BAEKC,GAAK,EAAA,WAAU,aAAY,eAAaF,GAAa,GAAGC,GACvD,UAAA;AAAA,EAAAE,gBAAAA,MAACC,KAAY,GAAGL,GAAsB,eAAa,GAAGC,CAAU,sBAAsB;AAAA,wBACrFK,GAAI,EAAA,WAAU,UAAS,IAAI,GACzB,UACHP,GAAA;AAAA,EACAK,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGP;AAAA,MACJ,iBAAiB,CAAC,CAACA,EAAmB;AAAA,MACtC,eAAa,GAAGG,CAAU;AAAA,IAAA;AAAA,EAAA;AAC5B,GACF;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/alert.types-BlvzpzTn.js");exports.Alert=t.Alert;exports.alertButtonPositions=t.alertButtonPositions;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/alert.component-nhRTQ5KK.js"),e=require("../../../chunks/alert.types-8mtsdXr4.js");exports.Alert=t.Alert;exports.alertButtonPositions=e.alertButtonPositions;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/dateTimePicker.component-BlWhC5aT.js");exports.DateTimePicker=e.DateTimePicker;exports.DateTimePickerDefaultOptionValue=e.DateTimePickerDefaultOptionValue;exports.calendarViews=e.calendarViews;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/dateTimePicker.component-D1J7ZeX2.js");exports.DateTimePicker=e.DateTimePicker;exports.DateTimePickerDefaultOptionValue=e.DateTimePickerDefaultOptionValue;exports.calendarViews=e.calendarViews;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../chunks/maintenanceBanner.types-BsNjAlXa.js");exports.MaintenanceBanner=n.MaintenanceBanner;exports.maintenanceBannerEnvKeys=n.maintenanceBannerEnvKeys;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timePicker.component-D5hw80VV.js");exports.Meridiem=e.Meridiem;exports.TimePicker=e.TimePicker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timePicker.component-C3x0n7PC.js");exports.Meridiem=e.Meridiem;exports.TimePicker=e.TimePicker;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timeRange.component-D3Db8lvh.js");exports.TimeRange=e.TimeRange;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timeRange.component-BvVNCbXV.js");exports.TimeRange=e.TimeRange;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../chunks/alert.types-BlvzpzTn.js"),v=require("../../chunks/avatar.component-BGgZoVJS.js"),c=require("../../chunks/avatar.types-Bmt5Uhfb.js"),T=require("../../chunks/avatarGroup.component-CJCQSIyr.js"),g=require("../../chunks/button.component-DjdgBXDC.js"),e=require("../../chunks/button.types-DXP4uRV8.js"),b=require("../../chunks/buttonGroup.component-pR0mvmm7.js"),y=require("../../chunks/calendar.component-BFSyxaB6.js"),P=require("../../chunks/card.component-BmBiYbMV.js"),C=require("../../chunks/card.types-MvkQTTZF.js"),k=require("../../chunks/characterCounter.component-BRHLt929.js"),z=require("../../chunks/checkbox.component-C132vkan.js"),h=require("../../chunks/checkboxGroup.component-2U0ZW1TD.js"),D=require("../../chunks/conversationCard.component-CscMIq51.js"),I=require("../../chunks/datePicker.component-BuGpHTzS.js"),x=require("../../chunks/datePicker.provider-i35-VNAb.js"),o=require("../../chunks/dateTimePicker.component-BlWhC5aT.js"),V=require("../../chunks/divider.component-BX3zyB7O.js"),n=require("../../chunks/divider.types-DBNcs0IR.js"),f=require("../../chunks/heading.component-DnoZOXdz.js"),A=require("../../chunks/icon.component-B1hr5lLa.js"),B=require("../../chunks/icon.types-2obj_NKG.js"),W=require("../../chunks/link.component-_YXG8MDq.js"),p=require("../../chunks/logo.types-88a31xCx.js"),G=require("../../chunks/menu.component-D2V9Q1Y5.js"),t=require("../../chunks/modal.types-D_t0UdS6.js"),R=require("../../chunks/notificationCounter.component-CBwi5vXa.js"),u=require("../../chunks/notificationCounter.types-B_-siNfi.js"),w=require("../../chunks/picture.component-BA2hgdZy.js"),d=require("../../chunks/pinInput.types-Can9f1Eu.js"),M=require("../../chunks/popover.component-DTjA1GSd.js"),r=require("../../chunks/popover.types-ChA9ccQ2.js"),i=require("../../chunks/radioGroup.types-U1ep9nrN.js"),L=require("../../chunks/radiomark.component-YJNr68s7.js"),O=require("../../chunks/rating.component-DsHkKmA7.js"),N=require("../../chunks/ratingDots.component-CZ370iI3.js"),F=require("../../chunks/select.component-OrsHXCMz.js"),H=require("../../chunks/sortableList.component-2yX2pXs7.js"),j=require("../../chunks/spinner.component-Dq6u4vVL.js"),E=require("../../chunks/spinner.types-BCLN5-H2.js"),m=require("../../chunks/styledAvatar.types-BG2G_U-W.js"),l=require("../../chunks/swatch.types-AZLB8OWG.js"),J=require("../../chunks/switch.component-BYEMhBCA.js"),a=require("../../chunks/tab.types-B8hOk0uV.js"),K=require("../../chunks/tag.component-C98Wf07v.js"),_=require("../../chunks/tag.types-BnDFgTvb.js"),q=require("../../chunks/tagBlock.component-B899iqQP.js"),Q=require("../../chunks/text.component-BDDz5KQP.js"),U=require("../../chunks/textInput.component-CwTc0h_F.js"),X=require("../../chunks/textarea.component-BIg_XX_R.js"),S=require("../../chunks/timePicker.component-D5hw80VV.js"),Y=require("../../chunks/timeRange.component-D3Db8lvh.js"),Z=require("../../chunks/timestamp.component-BfmZPfy5.js"),$=require("./Toast/index.cjs"),ee=require("../../chunks/tooltip.component-DBw-hAPU.js"),te=require("../../chunks/numberInput.component-DGPEz0Fv.js");exports.Alert=s.Alert;exports.alertButtonPositions=s.alertButtonPositions;exports.Avatar=v.Avatar;exports.avatarSizes=c.avatarSizes;exports.avatarVariants=c.avatarVariants;exports.AvatarGroup=T.AvatarGroup;exports.Button=g.Button;exports.buttonConfigVariants=e.buttonConfigVariants;exports.buttonIconPositions=e.buttonIconPositions;exports.buttonSizes=e.buttonSizes;exports.buttonSpinnerPlacements=e.buttonSpinnerPlacements;exports.buttonVariants=e.buttonVariants;exports.ButtonGroup=b.ButtonGroup;exports.Calendar=y.Calendar;exports.Card=P.Card;exports.cardSizes=C.cardSizes;exports.CharacterCounter=k.CharacterCounter;exports.Checkbox=z.WrappedCheckbox;exports.CheckboxGroup=h.WrappedCheckboxGroup;exports.ConversationCard=D.ConversationCard;exports.DatePicker=I.DatePicker;exports.DateFormats=x.DateFormats;exports.DateTimePicker=o.DateTimePicker;exports.DateTimePickerDefaultOptionValue=o.DateTimePickerDefaultOptionValue;exports.calendarViews=o.calendarViews;exports.Divider=V.Divider;exports.dividerOrientations=n.dividerOrientations;exports.dividerSizes=n.dividerSizes;exports.dividerVariants=n.dividerVariants;exports.Heading=f.WrappedHeading;exports.Icon=A.Icon;exports.iconSizes=B.iconSizes;exports.Link=W.Link;exports.Logo=p.Logo;exports.logoTypes=p.logoTypes;exports.Menu=G.Menu;exports.Modal=t.Modal;exports.modalMotionPresets=t.modalMotionPresets;exports.modalPlacements=t.modalPlacements;exports.modalScrollBehaviors=t.modalScrollBehaviors;exports.modalSizes=t.modalSizes;exports.NotificationCounter=R.NotificationCounter;exports.notificationCounterSizes=u.notificationCounterSizes;exports.notificationCounterVariants=u.notificationCounterVariants;exports.Picture=w.Picture;exports.PinInput=d.WrappedPinInput;exports.pinInputTypes=d.pinInputTypes;exports.Popover=M.Popover;exports.popoverSizes=r.popoverSizes;exports.popoverTriggerTypes=r.popoverTriggerTypes;exports.popoverVariants=r.popoverVariants;exports.RadioGroup=i.WrappedRadioGroup;exports.radioAlignments=i.radioAlignments;exports.radioTypes=i.radioTypes;exports.Radiomark=L.Radiomark;exports.Rating=O.WrappedRating;exports.RatingDots=N.WrappedRatingDots;exports.Select=F.WrappedSelect;exports.SortableList=H.SortableList;exports.Spinner=j.Spinner;exports.spinnerSizes=E.spinnerSizes;exports.StyledAvatar=m.StyledAvatar;exports.styledAvatarTypes=m.styledAvatarTypes;exports.Swatch=l.Swatch;exports.swatchSizes=l.swatchSizes;exports.Switch=J.WrappedSwitch;exports.Tabs=a.Tabs;exports.tabIconPositions=a.tabIconPositions;exports.tabSizes=a.tabSizes;exports.Tag=K.Tag;exports.closeButtonDisplays=_.closeButtonDisplays;exports.tagSizes=_.tagSizes;exports.TagBlock=q.TagBlock;exports.TagDisabledState=q.TagDisabledState;exports.Text=Q.WrappedText;exports.TextInput=U.WrappedTextInput;exports.Textarea=X.WrappedTextarea;exports.Meridiem=S.Meridiem;exports.TimePicker=S.TimePicker;exports.TimeRange=Y.TimeRange;exports.Timestamp=Z.Timestamp;exports.useToast=$.useToast;exports.Tooltip=ee.Tooltip;exports.NumberInput=te.WrappedNumberInput;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../chunks/alert.component-nhRTQ5KK.js"),T=require("../../chunks/alert.types-8mtsdXr4.js"),y=require("../../chunks/avatar.component-BGgZoVJS.js"),s=require("../../chunks/avatar.types-Bmt5Uhfb.js"),g=require("../../chunks/avatarGroup.component-CJCQSIyr.js"),b=require("../../chunks/button.component-DjdgBXDC.js"),e=require("../../chunks/button.types-DXP4uRV8.js"),P=require("../../chunks/buttonGroup.component-pR0mvmm7.js"),C=require("../../chunks/calendar.component-BFSyxaB6.js"),k=require("../../chunks/card.component-BmBiYbMV.js"),z=require("../../chunks/card.types-MvkQTTZF.js"),h=require("../../chunks/characterCounter.component-BRHLt929.js"),D=require("../../chunks/checkbox.component-C132vkan.js"),B=require("../../chunks/checkboxGroup.component-2U0ZW1TD.js"),I=require("../../chunks/conversationCard.component-CscMIq51.js"),x=require("../../chunks/datePicker.component-BuGpHTzS.js"),V=require("../../chunks/datePicker.provider-i35-VNAb.js"),o=require("../../chunks/dateTimePicker.component-D1J7ZeX2.js"),f=require("../../chunks/divider.component-BX3zyB7O.js"),n=require("../../chunks/divider.types-DBNcs0IR.js"),A=require("../../chunks/heading.component-DnoZOXdz.js"),W=require("../../chunks/icon.component-B1hr5lLa.js"),G=require("../../chunks/icon.types-2obj_NKG.js"),M=require("../../chunks/link.component-_YXG8MDq.js"),c=require("../../chunks/logo.types-88a31xCx.js"),p=require("../../chunks/maintenanceBanner.types-BsNjAlXa.js"),R=require("../../chunks/menu.component-D2V9Q1Y5.js"),t=require("../../chunks/modal.types-D_t0UdS6.js"),w=require("../../chunks/notificationCounter.component-CBwi5vXa.js"),u=require("../../chunks/notificationCounter.types-B_-siNfi.js"),L=require("../../chunks/picture.component-BA2hgdZy.js"),m=require("../../chunks/pinInput.types-Can9f1Eu.js"),O=require("../../chunks/popover.component-DTjA1GSd.js"),r=require("../../chunks/popover.types-ChA9ccQ2.js"),i=require("../../chunks/radioGroup.types-U1ep9nrN.js"),N=require("../../chunks/radiomark.component-YJNr68s7.js"),E=require("../../chunks/rating.component-DsHkKmA7.js"),F=require("../../chunks/ratingDots.component-CZ370iI3.js"),H=require("../../chunks/select.component-OrsHXCMz.js"),K=require("../../chunks/sortableList.component-2yX2pXs7.js"),j=require("../../chunks/spinner.component-Dq6u4vVL.js"),J=require("../../chunks/spinner.types-BCLN5-H2.js"),d=require("../../chunks/styledAvatar.types-BG2G_U-W.js"),l=require("../../chunks/swatch.types-AZLB8OWG.js"),Q=require("../../chunks/switch.component-BYEMhBCA.js"),a=require("../../chunks/tab.types-B8hOk0uV.js"),U=require("../../chunks/tag.component-C98Wf07v.js"),_=require("../../chunks/tag.types-BnDFgTvb.js"),q=require("../../chunks/tagBlock.component-B899iqQP.js"),X=require("../../chunks/text.component-BDDz5KQP.js"),Y=require("../../chunks/textInput.component-CwTc0h_F.js"),Z=require("../../chunks/textarea.component-BIg_XX_R.js"),v=require("../../chunks/timePicker.component-C3x0n7PC.js"),$=require("../../chunks/timeRange.component-BvVNCbXV.js"),ee=require("../../chunks/timestamp.component-BfmZPfy5.js"),te=require("./Toast/index.cjs"),oe=require("../../chunks/tooltip.component-DBw-hAPU.js"),ne=require("../../chunks/numberInput.component-DGPEz0Fv.js");exports.Alert=S.Alert;exports.alertButtonPositions=T.alertButtonPositions;exports.Avatar=y.Avatar;exports.avatarSizes=s.avatarSizes;exports.avatarVariants=s.avatarVariants;exports.AvatarGroup=g.AvatarGroup;exports.Button=b.Button;exports.buttonConfigVariants=e.buttonConfigVariants;exports.buttonIconPositions=e.buttonIconPositions;exports.buttonSizes=e.buttonSizes;exports.buttonSpinnerPlacements=e.buttonSpinnerPlacements;exports.buttonVariants=e.buttonVariants;exports.ButtonGroup=P.ButtonGroup;exports.Calendar=C.Calendar;exports.Card=k.Card;exports.cardSizes=z.cardSizes;exports.CharacterCounter=h.CharacterCounter;exports.Checkbox=D.WrappedCheckbox;exports.CheckboxGroup=B.WrappedCheckboxGroup;exports.ConversationCard=I.ConversationCard;exports.DatePicker=x.DatePicker;exports.DateFormats=V.DateFormats;exports.DateTimePicker=o.DateTimePicker;exports.DateTimePickerDefaultOptionValue=o.DateTimePickerDefaultOptionValue;exports.calendarViews=o.calendarViews;exports.Divider=f.Divider;exports.dividerOrientations=n.dividerOrientations;exports.dividerSizes=n.dividerSizes;exports.dividerVariants=n.dividerVariants;exports.Heading=A.WrappedHeading;exports.Icon=W.Icon;exports.iconSizes=G.iconSizes;exports.Link=M.Link;exports.Logo=c.Logo;exports.logoTypes=c.logoTypes;exports.MaintenanceBanner=p.MaintenanceBanner;exports.maintenanceBannerEnvKeys=p.maintenanceBannerEnvKeys;exports.Menu=R.Menu;exports.Modal=t.Modal;exports.modalMotionPresets=t.modalMotionPresets;exports.modalPlacements=t.modalPlacements;exports.modalScrollBehaviors=t.modalScrollBehaviors;exports.modalSizes=t.modalSizes;exports.NotificationCounter=w.NotificationCounter;exports.notificationCounterSizes=u.notificationCounterSizes;exports.notificationCounterVariants=u.notificationCounterVariants;exports.Picture=L.Picture;exports.PinInput=m.WrappedPinInput;exports.pinInputTypes=m.pinInputTypes;exports.Popover=O.Popover;exports.popoverSizes=r.popoverSizes;exports.popoverTriggerTypes=r.popoverTriggerTypes;exports.popoverVariants=r.popoverVariants;exports.RadioGroup=i.WrappedRadioGroup;exports.radioAlignments=i.radioAlignments;exports.radioTypes=i.radioTypes;exports.Radiomark=N.Radiomark;exports.Rating=E.WrappedRating;exports.RatingDots=F.WrappedRatingDots;exports.Select=H.WrappedSelect;exports.SortableList=K.SortableList;exports.Spinner=j.Spinner;exports.spinnerSizes=J.spinnerSizes;exports.StyledAvatar=d.StyledAvatar;exports.styledAvatarTypes=d.styledAvatarTypes;exports.Swatch=l.Swatch;exports.swatchSizes=l.swatchSizes;exports.Switch=Q.WrappedSwitch;exports.Tabs=a.Tabs;exports.tabIconPositions=a.tabIconPositions;exports.tabSizes=a.tabSizes;exports.Tag=U.Tag;exports.closeButtonDisplays=_.closeButtonDisplays;exports.tagSizes=_.tagSizes;exports.TagBlock=q.TagBlock;exports.TagDisabledState=q.TagDisabledState;exports.Text=X.WrappedText;exports.TextInput=Y.WrappedTextInput;exports.Textarea=Z.WrappedTextarea;exports.Meridiem=v.Meridiem;exports.TimePicker=v.TimePicker;exports.TimeRange=$.TimeRange;exports.Timestamp=ee.Timestamp;exports.useToast=te.useToast;exports.Tooltip=oe.Tooltip;exports.NumberInput=ne.WrappedNumberInput;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../chunks/alert.types-BlvzpzTn.js"),g=require("../chunks/avatar.component-BGgZoVJS.js"),u=require("../chunks/avatar.types-Bmt5Uhfb.js"),b=require("../chunks/avatarGroup.component-CJCQSIyr.js"),h=require("../chunks/button.component-DjdgBXDC.js"),e=require("../chunks/button.types-DXP4uRV8.js"),S=require("../chunks/buttonGroup.component-pR0mvmm7.js"),k=require("../chunks/calendar.component-BFSyxaB6.js"),C=require("../chunks/card.component-BmBiYbMV.js"),P=require("../chunks/card.types-MvkQTTZF.js"),D=require("../chunks/characterCounter.component-BRHLt929.js"),z=require("../chunks/checkbox.component-C132vkan.js"),x=require("../chunks/checkboxGroup.component-2U0ZW1TD.js"),M=require("../chunks/conversationCard.component-CscMIq51.js"),V=require("../chunks/datePicker.component-BuGpHTzS.js"),f=require("../chunks/datePicker.provider-i35-VNAb.js"),r=require("../chunks/dateTimePicker.component-BlWhC5aT.js"),I=require("../chunks/divider.component-BX3zyB7O.js"),n=require("../chunks/divider.types-DBNcs0IR.js"),w=require("../chunks/heading.component-DnoZOXdz.js"),B=require("../chunks/icon.component-B1hr5lLa.js"),A=require("../chunks/icon.types-2obj_NKG.js"),W=require("../chunks/link.component-_YXG8MDq.js"),d=require("../chunks/logo.types-88a31xCx.js"),G=require("../chunks/menu.component-D2V9Q1Y5.js"),t=require("../chunks/modal.types-D_t0UdS6.js"),R=require("../chunks/notificationCounter.component-CBwi5vXa.js"),m=require("../chunks/notificationCounter.types-B_-siNfi.js"),L=require("../chunks/picture.component-BA2hgdZy.js"),l=require("../chunks/pinInput.types-Can9f1Eu.js"),O=require("../chunks/popover.component-DTjA1GSd.js"),i=require("../chunks/popover.types-ChA9ccQ2.js"),a=require("../chunks/radioGroup.types-U1ep9nrN.js"),K=require("../chunks/radiomark.component-YJNr68s7.js"),N=require("../chunks/rating.component-DsHkKmA7.js"),F=require("../chunks/ratingDots.component-CZ370iI3.js"),H=require("../chunks/select.component-OrsHXCMz.js"),j=require("../chunks/sortableList.component-2yX2pXs7.js"),E=require("../chunks/spinner.component-Dq6u4vVL.js"),J=require("../chunks/spinner.types-BCLN5-H2.js"),_=require("../chunks/styledAvatar.types-BG2G_U-W.js"),q=require("../chunks/swatch.types-AZLB8OWG.js"),Q=require("../chunks/switch.component-BYEMhBCA.js"),s=require("../chunks/tab.types-B8hOk0uV.js"),U=require("../chunks/tag.component-C98Wf07v.js"),T=require("../chunks/tag.types-BnDFgTvb.js"),v=require("../chunks/tagBlock.component-B899iqQP.js"),X=require("../chunks/text.component-BDDz5KQP.js"),Y=require("../chunks/textInput.component-CwTc0h_F.js"),Z=require("../chunks/textarea.component-BIg_XX_R.js"),y=require("../chunks/timePicker.component-D5hw80VV.js"),$=require("../chunks/timeRange.component-D3Db8lvh.js"),ee=require("../chunks/timestamp.component-BfmZPfy5.js"),te=require("./components/Toast/index.cjs"),oe=require("../chunks/tooltip.component-DBw-hAPU.js"),re=require("../chunks/numberInput.component-DGPEz0Fv.js"),ne=require("../chunks/withDarkMode-R08khTA6.js"),ie=require("../chunks/withLightMode-Crw8xtkD.js"),ae=require("./hooks/useBreakpoint/index.cjs"),se=require("./hooks/useColorMode/index.cjs"),ce=require("./hooks/useColorModeValue/index.cjs"),pe=require("./hooks/useDeviceType/index.cjs"),o=require("./shared/types/index.cjs"),ue=require("../chunks/theme-BFbOz0Jj.js"),c=require("../chunks/theme.provider-DwwXiHZn.js");exports.Alert=p.Alert;exports.alertButtonPositions=p.alertButtonPositions;exports.Avatar=g.Avatar;exports.avatarSizes=u.avatarSizes;exports.avatarVariants=u.avatarVariants;exports.AvatarGroup=b.AvatarGroup;exports.Button=h.Button;exports.buttonConfigVariants=e.buttonConfigVariants;exports.buttonIconPositions=e.buttonIconPositions;exports.buttonSizes=e.buttonSizes;exports.buttonSpinnerPlacements=e.buttonSpinnerPlacements;exports.buttonVariants=e.buttonVariants;exports.ButtonGroup=S.ButtonGroup;exports.Calendar=k.Calendar;exports.Card=C.Card;exports.cardSizes=P.cardSizes;exports.CharacterCounter=D.CharacterCounter;exports.Checkbox=z.WrappedCheckbox;exports.CheckboxGroup=x.WrappedCheckboxGroup;exports.ConversationCard=M.ConversationCard;exports.DatePicker=V.DatePicker;exports.DateFormats=f.DateFormats;exports.DateTimePicker=r.DateTimePicker;exports.DateTimePickerDefaultOptionValue=r.DateTimePickerDefaultOptionValue;exports.calendarViews=r.calendarViews;exports.Divider=I.Divider;exports.dividerOrientations=n.dividerOrientations;exports.dividerSizes=n.dividerSizes;exports.dividerVariants=n.dividerVariants;exports.Heading=w.WrappedHeading;exports.Icon=B.Icon;exports.iconSizes=A.iconSizes;exports.Link=W.Link;exports.Logo=d.Logo;exports.logoTypes=d.logoTypes;exports.Menu=G.Menu;exports.Modal=t.Modal;exports.modalMotionPresets=t.modalMotionPresets;exports.modalPlacements=t.modalPlacements;exports.modalScrollBehaviors=t.modalScrollBehaviors;exports.modalSizes=t.modalSizes;exports.NotificationCounter=R.NotificationCounter;exports.notificationCounterSizes=m.notificationCounterSizes;exports.notificationCounterVariants=m.notificationCounterVariants;exports.Picture=L.Picture;exports.PinInput=l.WrappedPinInput;exports.pinInputTypes=l.pinInputTypes;exports.Popover=O.Popover;exports.popoverSizes=i.popoverSizes;exports.popoverTriggerTypes=i.popoverTriggerTypes;exports.popoverVariants=i.popoverVariants;exports.RadioGroup=a.WrappedRadioGroup;exports.radioAlignments=a.radioAlignments;exports.radioTypes=a.radioTypes;exports.Radiomark=K.Radiomark;exports.Rating=N.WrappedRating;exports.RatingDots=F.WrappedRatingDots;exports.Select=H.WrappedSelect;exports.SortableList=j.SortableList;exports.Spinner=E.Spinner;exports.spinnerSizes=J.spinnerSizes;exports.StyledAvatar=_.StyledAvatar;exports.styledAvatarTypes=_.styledAvatarTypes;exports.Swatch=q.Swatch;exports.swatchSizes=q.swatchSizes;exports.Switch=Q.WrappedSwitch;exports.Tabs=s.Tabs;exports.tabIconPositions=s.tabIconPositions;exports.tabSizes=s.tabSizes;exports.Tag=U.Tag;exports.closeButtonDisplays=T.closeButtonDisplays;exports.tagSizes=T.tagSizes;exports.TagBlock=v.TagBlock;exports.TagDisabledState=v.TagDisabledState;exports.Text=X.WrappedText;exports.TextInput=Y.WrappedTextInput;exports.Textarea=Z.WrappedTextarea;exports.Meridiem=y.Meridiem;exports.TimePicker=y.TimePicker;exports.TimeRange=$.TimeRange;exports.Timestamp=ee.Timestamp;exports.useToast=te.useToast;exports.Tooltip=oe.Tooltip;exports.NumberInput=re.WrappedNumberInput;exports.withDarkMode=ne.withDarkMode;exports.withLightMode=ie.withLightMode;exports.useBreakpoint=ae.useBreakpoint;exports.useColorMode=se.useColorMode;exports.useColorModeValue=ce.useColorModeValue;exports.useDeviceType=pe.useDeviceType;exports.alignments=o.alignments;exports.flexDirections=o.flexDirections;exports.placements=o.placements;exports.statuses=o.statuses;exports.typographyVariants=o.typographyVariants;exports.colorModeThemeKey=ue.colorModeThemeKey;exports.KibbleThemeProvider=c.KibbleThemeProvider;exports.kibbleThemeConfig=c.kibbleThemeConfig;exports.system=c.system;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../chunks/alert.component-nhRTQ5KK.js"),b=require("../chunks/alert.types-8mtsdXr4.js"),h=require("../chunks/avatar.component-BGgZoVJS.js"),p=require("../chunks/avatar.types-Bmt5Uhfb.js"),S=require("../chunks/avatarGroup.component-CJCQSIyr.js"),k=require("../chunks/button.component-DjdgBXDC.js"),e=require("../chunks/button.types-DXP4uRV8.js"),C=require("../chunks/buttonGroup.component-pR0mvmm7.js"),P=require("../chunks/calendar.component-BFSyxaB6.js"),D=require("../chunks/card.component-BmBiYbMV.js"),M=require("../chunks/card.types-MvkQTTZF.js"),z=require("../chunks/characterCounter.component-BRHLt929.js"),x=require("../chunks/checkbox.component-C132vkan.js"),B=require("../chunks/checkboxGroup.component-2U0ZW1TD.js"),V=require("../chunks/conversationCard.component-CscMIq51.js"),f=require("../chunks/datePicker.component-BuGpHTzS.js"),I=require("../chunks/datePicker.provider-i35-VNAb.js"),n=require("../chunks/dateTimePicker.component-D1J7ZeX2.js"),w=require("../chunks/divider.component-BX3zyB7O.js"),r=require("../chunks/divider.types-DBNcs0IR.js"),A=require("../chunks/heading.component-DnoZOXdz.js"),W=require("../chunks/icon.component-B1hr5lLa.js"),G=require("../chunks/icon.types-2obj_NKG.js"),R=require("../chunks/link.component-_YXG8MDq.js"),u=require("../chunks/logo.types-88a31xCx.js"),d=require("../chunks/maintenanceBanner.types-BsNjAlXa.js"),L=require("../chunks/menu.component-D2V9Q1Y5.js"),t=require("../chunks/modal.types-D_t0UdS6.js"),K=require("../chunks/notificationCounter.component-CBwi5vXa.js"),m=require("../chunks/notificationCounter.types-B_-siNfi.js"),O=require("../chunks/picture.component-BA2hgdZy.js"),l=require("../chunks/pinInput.types-Can9f1Eu.js"),N=require("../chunks/popover.component-DTjA1GSd.js"),i=require("../chunks/popover.types-ChA9ccQ2.js"),a=require("../chunks/radioGroup.types-U1ep9nrN.js"),E=require("../chunks/radiomark.component-YJNr68s7.js"),F=require("../chunks/rating.component-DsHkKmA7.js"),H=require("../chunks/ratingDots.component-CZ370iI3.js"),j=require("../chunks/select.component-OrsHXCMz.js"),J=require("../chunks/sortableList.component-2yX2pXs7.js"),Q=require("../chunks/spinner.component-Dq6u4vVL.js"),U=require("../chunks/spinner.types-BCLN5-H2.js"),_=require("../chunks/styledAvatar.types-BG2G_U-W.js"),q=require("../chunks/swatch.types-AZLB8OWG.js"),X=require("../chunks/switch.component-BYEMhBCA.js"),s=require("../chunks/tab.types-B8hOk0uV.js"),Y=require("../chunks/tag.component-C98Wf07v.js"),T=require("../chunks/tag.types-BnDFgTvb.js"),v=require("../chunks/tagBlock.component-B899iqQP.js"),Z=require("../chunks/text.component-BDDz5KQP.js"),$=require("../chunks/textInput.component-CwTc0h_F.js"),ee=require("../chunks/textarea.component-BIg_XX_R.js"),y=require("../chunks/timePicker.component-C3x0n7PC.js"),te=require("../chunks/timeRange.component-BvVNCbXV.js"),oe=require("../chunks/timestamp.component-BfmZPfy5.js"),ne=require("./components/Toast/index.cjs"),re=require("../chunks/tooltip.component-DBw-hAPU.js"),ie=require("../chunks/numberInput.component-DGPEz0Fv.js"),ae=require("../chunks/withDarkMode-R08khTA6.js"),se=require("../chunks/withLightMode-Crw8xtkD.js"),ce=require("./hooks/useBreakpoint/index.cjs"),pe=require("./hooks/useColorMode/index.cjs"),ue=require("./hooks/useColorModeValue/index.cjs"),de=require("./hooks/useDeviceType/index.cjs"),o=require("./shared/types/index.cjs"),me=require("../chunks/theme-BFbOz0Jj.js"),c=require("../chunks/theme.provider-DwwXiHZn.js");exports.Alert=g.Alert;exports.alertButtonPositions=b.alertButtonPositions;exports.Avatar=h.Avatar;exports.avatarSizes=p.avatarSizes;exports.avatarVariants=p.avatarVariants;exports.AvatarGroup=S.AvatarGroup;exports.Button=k.Button;exports.buttonConfigVariants=e.buttonConfigVariants;exports.buttonIconPositions=e.buttonIconPositions;exports.buttonSizes=e.buttonSizes;exports.buttonSpinnerPlacements=e.buttonSpinnerPlacements;exports.buttonVariants=e.buttonVariants;exports.ButtonGroup=C.ButtonGroup;exports.Calendar=P.Calendar;exports.Card=D.Card;exports.cardSizes=M.cardSizes;exports.CharacterCounter=z.CharacterCounter;exports.Checkbox=x.WrappedCheckbox;exports.CheckboxGroup=B.WrappedCheckboxGroup;exports.ConversationCard=V.ConversationCard;exports.DatePicker=f.DatePicker;exports.DateFormats=I.DateFormats;exports.DateTimePicker=n.DateTimePicker;exports.DateTimePickerDefaultOptionValue=n.DateTimePickerDefaultOptionValue;exports.calendarViews=n.calendarViews;exports.Divider=w.Divider;exports.dividerOrientations=r.dividerOrientations;exports.dividerSizes=r.dividerSizes;exports.dividerVariants=r.dividerVariants;exports.Heading=A.WrappedHeading;exports.Icon=W.Icon;exports.iconSizes=G.iconSizes;exports.Link=R.Link;exports.Logo=u.Logo;exports.logoTypes=u.logoTypes;exports.MaintenanceBanner=d.MaintenanceBanner;exports.maintenanceBannerEnvKeys=d.maintenanceBannerEnvKeys;exports.Menu=L.Menu;exports.Modal=t.Modal;exports.modalMotionPresets=t.modalMotionPresets;exports.modalPlacements=t.modalPlacements;exports.modalScrollBehaviors=t.modalScrollBehaviors;exports.modalSizes=t.modalSizes;exports.NotificationCounter=K.NotificationCounter;exports.notificationCounterSizes=m.notificationCounterSizes;exports.notificationCounterVariants=m.notificationCounterVariants;exports.Picture=O.Picture;exports.PinInput=l.WrappedPinInput;exports.pinInputTypes=l.pinInputTypes;exports.Popover=N.Popover;exports.popoverSizes=i.popoverSizes;exports.popoverTriggerTypes=i.popoverTriggerTypes;exports.popoverVariants=i.popoverVariants;exports.RadioGroup=a.WrappedRadioGroup;exports.radioAlignments=a.radioAlignments;exports.radioTypes=a.radioTypes;exports.Radiomark=E.Radiomark;exports.Rating=F.WrappedRating;exports.RatingDots=H.WrappedRatingDots;exports.Select=j.WrappedSelect;exports.SortableList=J.SortableList;exports.Spinner=Q.Spinner;exports.spinnerSizes=U.spinnerSizes;exports.StyledAvatar=_.StyledAvatar;exports.styledAvatarTypes=_.styledAvatarTypes;exports.Swatch=q.Swatch;exports.swatchSizes=q.swatchSizes;exports.Switch=X.WrappedSwitch;exports.Tabs=s.Tabs;exports.tabIconPositions=s.tabIconPositions;exports.tabSizes=s.tabSizes;exports.Tag=Y.Tag;exports.closeButtonDisplays=T.closeButtonDisplays;exports.tagSizes=T.tagSizes;exports.TagBlock=v.TagBlock;exports.TagDisabledState=v.TagDisabledState;exports.Text=Z.WrappedText;exports.TextInput=$.WrappedTextInput;exports.Textarea=ee.WrappedTextarea;exports.Meridiem=y.Meridiem;exports.TimePicker=y.TimePicker;exports.TimeRange=te.TimeRange;exports.Timestamp=oe.Timestamp;exports.useToast=ne.useToast;exports.Tooltip=re.Tooltip;exports.NumberInput=ie.WrappedNumberInput;exports.withDarkMode=ae.withDarkMode;exports.withLightMode=se.withLightMode;exports.useBreakpoint=ce.useBreakpoint;exports.useColorMode=pe.useColorMode;exports.useColorModeValue=ue.useColorModeValue;exports.useDeviceType=de.useDeviceType;exports.alignments=o.alignments;exports.flexDirections=o.flexDirections;exports.placements=o.placements;exports.statuses=o.statuses;exports.typographyVariants=o.typographyVariants;exports.colorModeThemeKey=me.colorModeThemeKey;exports.KibbleThemeProvider=c.KibbleThemeProvider;exports.kibbleThemeConfig=c.kibbleThemeConfig;exports.system=c.system;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F={primary:{50:"#F6FCEB",100:"#E5F9C6",200:"#CDF197",300:"#BDE87D",400:"#9FCF5D",500:"#6AAE0D",600:"#4F830F",700:"#3E660C",800:"#284309",900:"#1A2D06"},secondary:{50:"#F6FAFF",100:"#E9F2FF",200:"#CBE2FF",300:"#ADCFFF",400:"#7FAFF2",500:"#497CC3",600:"#305992",700:"#2B5082",800:"#122136",900:"#080E17"},tertiary:{50:"#FAF8F2",100:"#F6F3EA",200:"#EAE4DD",300:"#DCD1C6",400:"#BCAC9E",500:"#9D7E6B",600:"#7D5B48",700:"#5E3B28",800:"#381F12",900:"#170D07"},neutral:{50:"#FFFFFF",100:"#FCFBFA",200:"#EDEBEB",300:"#DCDBDA",400:"#BEBCB9",500:"#96928F",600:"#706E6C",700:"#504D4C",800:"#373331",900:"#000000"},danger:{50:"#FFF4F7",100:"#FFDFE6",200:"#FFC9D4",300:"#F9A7A6",400:"#F78C7F",500:"#EE634A",600:"#CA4038",700:"#A6333F",800:"#82314D",900:"#48091F"},warning:{50:"#FFFDFA",100:"#FFF7EB",200:"#FEE8C3",300:"#F6BE5E",400:"#ECB14B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},success:{50:"#F6FCEB",100:"#E5F9C6",200:"#CDF197",300:"#BDE87D",400:"#9FCF5D",500:"#6AAE0D",600:"#4F830F",700:"#3E660C",800:"#284309",900:"#1A2D06"},primaryAlpha:{50:"#4F830F0A",100:"#4F830F0F",200:"#4F830F14",300:"#4F830F29",400:"#4F830F3D",500:"#4F830F5C",600:"#4F830F7A",700:"#4F830F9E",800:"#4F830FCC",900:"#4F830FEB"},primaryAlphaInverse:{50:"#CDF1970A",100:"#CDF1970F",200:"#CDF19714",300:"#CDF19729",400:"#CDF1973D",500:"#CDF1975C",600:"#CDF1977A",700:"#CDF1979E",800:"#CDF197CC",900:"#CDF197EB"},secondaryAlpha:{50:"#497CC30A",100:"#497CC30F",200:"#497CC314",300:"#497CC329",400:"#497CC33D",500:"#497CC35C",600:"#497CC37A",700:"#497CC39E",800:"#497CC3CC",900:"#497CC3EB"},secondaryAlphaInverse:{50:"#CBE2FF0A",100:"#CBE2FF0F",200:"#CBE2FF14",300:"#CBE2FF29",400:"#CBE2FF3D",500:"#CBE2FF5C",600:"#CBE2FF7A",700:"#CBE2FF9E",800:"#CBE2FFCC",900:"#CBE2FFEB"},blackAlpha:{50:"#0000000a",100:"#0000000f",200:"#00000014",300:"#00000029",400:"#0000003d",500:"#0000005c",600:"#0000007a",700:"#0000009e",800:"#000000cc",900:"#000000eb"},whiteAlpha:{50:"#FFFFFF0A",100:"#FFFFFF0F",200:"#FFFFFF14",300:"#FFFFFF29",400:"#FFFFFF3D",500:"#FFFFFF5C",600:"#FFFFFF7A",700:"#FFFFFF9E",800:"#FFFFFFCC",900:"#FFFFFFEB"},dangerAlpha:{50:"#CA40380A",100:"#CA40380F",200:"#CA403814",300:"#CA403829",400:"#CA40383D",500:"#CA40385C",600:"#CA40387A",700:"#CA40389E",800:"#CA4038CC",900:"#CA4038EB"},dangerAlphaInverse:{50:"#F9A7A60A",100:"#F9A7A60F",200:"#F9A7A614",300:"#F9A7A629",400:"#F9A7A63D",500:"#F9A7A65C",600:"#F9A7A67A",700:"#F9A7A69E",800:"#F9A7A6CC",900:"#F9A7A6EB"}};exports.coreColors=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F={primary:{50:"#F6FCEB",100:"#E5F9C6",200:"#CDF197",300:"#BDE87D",400:"#9FCF5D",500:"#6AAE0D",600:"#4F830F",700:"#3E660C",800:"#284309",900:"#1A2D06"},secondary:{50:"#F6FAFF",100:"#E9F2FF",200:"#CBE2FF",300:"#ADCFFF",400:"#7FAFF2",500:"#497CC3",600:"#305992",700:"#2B5082",800:"#122136",900:"#080E17"},tertiary:{50:"#FAF8F2",100:"#F6F3EA",200:"#EAE4DD",300:"#DCD1C6",400:"#BCAC9E",500:"#9D7E6B",600:"#7D5B48",700:"#5E3B28",800:"#381F12",900:"#170D07"},neutral:{50:"#FFFFFF",100:"#FCFBFA",200:"#EDEBEB",300:"#DCDBDA",400:"#BEBCB9",500:"#96928F",600:"#706E6C",700:"#504D4C",800:"#373331",900:"#000000"},danger:{50:"#FFF4F7",100:"#FFDFE6",200:"#FFC9D4",300:"#F9A7A6",400:"#F78C7F",500:"#EE634A",600:"#CA4038",700:"#A6333F",800:"#82314D",900:"#48091F"},warning:{50:"#FFFCF4",100:"#FFF6D7",200:"#FFE695",300:"#FFD073",400:"#F5BB4B",500:"#DF9F23",600:"#BF8411",700:"#98600C",800:"#734500",900:"#532D00"},success:{50:"#F6FCEB",100:"#E5F9C6",200:"#CDF197",300:"#BDE87D",400:"#9FCF5D",500:"#6AAE0D",600:"#4F830F",700:"#3E660C",800:"#284309",900:"#1A2D06"},primaryAlpha:{50:"#4F830F0A",100:"#4F830F0F",200:"#4F830F14",300:"#4F830F29",400:"#4F830F3D",500:"#4F830F5C",600:"#4F830F7A",700:"#4F830F9E",800:"#4F830FCC",900:"#4F830FEB"},primaryAlphaInverse:{50:"#CDF1970A",100:"#CDF1970F",200:"#CDF19714",300:"#CDF19729",400:"#CDF1973D",500:"#CDF1975C",600:"#CDF1977A",700:"#CDF1979E",800:"#CDF197CC",900:"#CDF197EB"},secondaryAlpha:{50:"#497CC30A",100:"#497CC30F",200:"#497CC314",300:"#497CC329",400:"#497CC33D",500:"#497CC35C",600:"#497CC37A",700:"#497CC39E",800:"#497CC3CC",900:"#497CC3EB"},secondaryAlphaInverse:{50:"#CBE2FF0A",100:"#CBE2FF0F",200:"#CBE2FF14",300:"#CBE2FF29",400:"#CBE2FF3D",500:"#CBE2FF5C",600:"#CBE2FF7A",700:"#CBE2FF9E",800:"#CBE2FFCC",900:"#CBE2FFEB"},blackAlpha:{50:"#0000000a",100:"#0000000f",200:"#00000014",300:"#00000029",400:"#0000003d",500:"#0000005c",600:"#0000007a",700:"#0000009e",800:"#000000cc",900:"#000000eb"},whiteAlpha:{50:"#FFFFFF0A",100:"#FFFFFF0F",200:"#FFFFFF14",300:"#FFFFFF29",400:"#FFFFFF3D",500:"#FFFFFF5C",600:"#FFFFFF7A",700:"#FFFFFF9E",800:"#FFFFFFCC",900:"#FFFFFFEB"},dangerAlpha:{50:"#CA40380A",100:"#CA40380F",200:"#CA403814",300:"#CA403829",400:"#CA40383D",500:"#CA40385C",600:"#CA40387A",700:"#CA40389E",800:"#CA4038CC",900:"#CA4038EB"},dangerAlphaInverse:{50:"#F9A7A60A",100:"#F9A7A60F",200:"#F9A7A614",300:"#F9A7A629",400:"#F9A7A63D",500:"#F9A7A65C",600:"#F9A7A67A",700:"#F9A7A69E",800:"#F9A7A6CC",900:"#F9A7A6EB"}};exports.coreColors=F;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../packages/kibble-primitives/src/core/colors/colors.records.ts"],"sourcesContent":["import { CoreColor, ColorValue } from './colors.types';\n\nexport const coreColors: Record<CoreColor, Record<ColorValue, string>> = {\n primary: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n secondary: {\n 50: '#F6FAFF',\n 100: '#E9F2FF',\n 200: '#CBE2FF',\n 300: '#ADCFFF',\n 400: '#7FAFF2',\n 500: '#497CC3',\n 600: '#305992',\n 700: '#2B5082',\n 800: '#122136',\n 900: '#080E17',\n },\n tertiary: {\n 50: '#FAF8F2',\n 100: '#F6F3EA',\n 200: '#EAE4DD',\n 300: '#DCD1C6',\n 400: '#BCAC9E',\n 500: '#9D7E6B',\n 600: '#7D5B48',\n 700: '#5E3B28',\n 800: '#381F12',\n 900: '#170D07',\n },\n neutral: {\n 50: '#FFFFFF',\n 100: '#FCFBFA',\n 200: '#EDEBEB',\n 300: '#DCDBDA',\n 400: '#BEBCB9',\n 500: '#96928F',\n 600: '#706E6C',\n 700: '#504D4C',\n 800: '#373331',\n 900: '#000000',\n },\n danger: {\n 50: '#FFF4F7',\n 100: '#FFDFE6',\n 200: '#FFC9D4',\n 300: '#F9A7A6',\n 400: '#F78C7F',\n 500: '#EE634A',\n 600: '#CA4038',\n 700: '#A6333F',\n 800: '#82314D',\n 900: '#48091F',\n },\n warning: {\n 50: '#FFFDFA',\n 100: '#FFF7EB',\n 200: '#FEE8C3',\n 300: '#F6BE5E',\n 400: '#ECB14B',\n 500: '#D69E2E',\n 600: '#B7791F',\n 700: '#975A16',\n 800: '#744210',\n 900: '#5F370E',\n },\n success: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n primaryAlpha: {\n 50: '#4F830F0A',\n 100: '#4F830F0F',\n 200: '#4F830F14',\n 300: '#4F830F29',\n 400: '#4F830F3D',\n 500: '#4F830F5C',\n 600: '#4F830F7A',\n 700: '#4F830F9E',\n 800: '#4F830FCC',\n 900: '#4F830FEB',\n },\n primaryAlphaInverse: {\n 50: '#CDF1970A',\n 100: '#CDF1970F',\n 200: '#CDF19714',\n 300: '#CDF19729',\n 400: '#CDF1973D',\n 500: '#CDF1975C',\n 600: '#CDF1977A',\n 700: '#CDF1979E',\n 800: '#CDF197CC',\n 900: '#CDF197EB',\n },\n secondaryAlpha: {\n 50: '#497CC30A',\n 100: '#497CC30F',\n 200: '#497CC314',\n 300: '#497CC329',\n 400: '#497CC33D',\n 500: '#497CC35C',\n 600: '#497CC37A',\n 700: '#497CC39E',\n 800: '#497CC3CC',\n 900: '#497CC3EB',\n },\n secondaryAlphaInverse: {\n 50: '#CBE2FF0A',\n 100: '#CBE2FF0F',\n 200: '#CBE2FF14',\n 300: '#CBE2FF29',\n 400: '#CBE2FF3D',\n 500: '#CBE2FF5C',\n 600: '#CBE2FF7A',\n 700: '#CBE2FF9E',\n 800: '#CBE2FFCC',\n 900: '#CBE2FFEB',\n },\n blackAlpha: {\n 50: '#0000000a',\n 100: '#0000000f',\n 200: '#00000014',\n 300: '#00000029',\n 400: '#0000003d',\n 500: '#0000005c',\n 600: '#0000007a',\n 700: '#0000009e',\n 800: '#000000cc',\n 900: '#000000eb',\n },\n whiteAlpha: {\n 50: '#FFFFFF0A',\n 100: '#FFFFFF0F',\n 200: '#FFFFFF14',\n 300: '#FFFFFF29',\n 400: '#FFFFFF3D',\n 500: '#FFFFFF5C',\n 600: '#FFFFFF7A',\n 700: '#FFFFFF9E',\n 800: '#FFFFFFCC',\n 900: '#FFFFFFEB',\n },\n dangerAlpha: {\n 50: '#CA40380A',\n 100: '#CA40380F',\n 200: '#CA403814',\n 300: '#CA403829',\n 400: '#CA40383D',\n 500: '#CA40385C',\n 600: '#CA40387A',\n 700: '#CA40389E',\n 800: '#CA4038CC',\n 900: '#CA4038EB',\n },\n dangerAlphaInverse: {\n 50: '#F9A7A60A',\n 100: '#F9A7A60F',\n 200: '#F9A7A614',\n 300: '#F9A7A629',\n 400: '#F9A7A63D',\n 500: '#F9A7A65C',\n 600: '#F9A7A67A',\n 700: '#F9A7A69E',\n 800: '#F9A7A6CC',\n 900: '#F9A7A6EB',\n },\n};\n"],"names":["coreColors"],"mappings":"gFAEO,MAAMA,EAA4D,CACvE,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,UAAW,CACT,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,SAAU,CACR,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,OAAQ,CACN,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,aAAc,CACZ,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,oBAAqB,CACnB,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,eAAgB,CACd,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,sBAAuB,CACrB,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,WAAY,CACV,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,WAAY,CACV,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,YAAa,CACX,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,mBAAoB,CAClB,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WAAA,CAET"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../packages/kibble-primitives/src/core/colors/colors.records.ts"],"sourcesContent":["import { CoreColor, ColorValue } from './colors.types';\n\nexport const coreColors: Record<CoreColor, Record<ColorValue, string>> = {\n primary: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n secondary: {\n 50: '#F6FAFF',\n 100: '#E9F2FF',\n 200: '#CBE2FF',\n 300: '#ADCFFF',\n 400: '#7FAFF2',\n 500: '#497CC3',\n 600: '#305992',\n 700: '#2B5082',\n 800: '#122136',\n 900: '#080E17',\n },\n tertiary: {\n 50: '#FAF8F2',\n 100: '#F6F3EA',\n 200: '#EAE4DD',\n 300: '#DCD1C6',\n 400: '#BCAC9E',\n 500: '#9D7E6B',\n 600: '#7D5B48',\n 700: '#5E3B28',\n 800: '#381F12',\n 900: '#170D07',\n },\n neutral: {\n 50: '#FFFFFF',\n 100: '#FCFBFA',\n 200: '#EDEBEB',\n 300: '#DCDBDA',\n 400: '#BEBCB9',\n 500: '#96928F',\n 600: '#706E6C',\n 700: '#504D4C',\n 800: '#373331',\n 900: '#000000',\n },\n danger: {\n 50: '#FFF4F7',\n 100: '#FFDFE6',\n 200: '#FFC9D4',\n 300: '#F9A7A6',\n 400: '#F78C7F',\n 500: '#EE634A',\n 600: '#CA4038',\n 700: '#A6333F',\n 800: '#82314D',\n 900: '#48091F',\n },\n warning: {\n 50: '#FFFCF4',\n 100: '#FFF6D7',\n 200: '#FFE695',\n 300: '#FFD073',\n 400: '#F5BB4B',\n 500: '#DF9F23',\n 600: '#BF8411',\n 700: '#98600C',\n 800: '#734500',\n 900: '#532D00',\n },\n success: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n primaryAlpha: {\n 50: '#4F830F0A',\n 100: '#4F830F0F',\n 200: '#4F830F14',\n 300: '#4F830F29',\n 400: '#4F830F3D',\n 500: '#4F830F5C',\n 600: '#4F830F7A',\n 700: '#4F830F9E',\n 800: '#4F830FCC',\n 900: '#4F830FEB',\n },\n primaryAlphaInverse: {\n 50: '#CDF1970A',\n 100: '#CDF1970F',\n 200: '#CDF19714',\n 300: '#CDF19729',\n 400: '#CDF1973D',\n 500: '#CDF1975C',\n 600: '#CDF1977A',\n 700: '#CDF1979E',\n 800: '#CDF197CC',\n 900: '#CDF197EB',\n },\n secondaryAlpha: {\n 50: '#497CC30A',\n 100: '#497CC30F',\n 200: '#497CC314',\n 300: '#497CC329',\n 400: '#497CC33D',\n 500: '#497CC35C',\n 600: '#497CC37A',\n 700: '#497CC39E',\n 800: '#497CC3CC',\n 900: '#497CC3EB',\n },\n secondaryAlphaInverse: {\n 50: '#CBE2FF0A',\n 100: '#CBE2FF0F',\n 200: '#CBE2FF14',\n 300: '#CBE2FF29',\n 400: '#CBE2FF3D',\n 500: '#CBE2FF5C',\n 600: '#CBE2FF7A',\n 700: '#CBE2FF9E',\n 800: '#CBE2FFCC',\n 900: '#CBE2FFEB',\n },\n blackAlpha: {\n 50: '#0000000a',\n 100: '#0000000f',\n 200: '#00000014',\n 300: '#00000029',\n 400: '#0000003d',\n 500: '#0000005c',\n 600: '#0000007a',\n 700: '#0000009e',\n 800: '#000000cc',\n 900: '#000000eb',\n },\n whiteAlpha: {\n 50: '#FFFFFF0A',\n 100: '#FFFFFF0F',\n 200: '#FFFFFF14',\n 300: '#FFFFFF29',\n 400: '#FFFFFF3D',\n 500: '#FFFFFF5C',\n 600: '#FFFFFF7A',\n 700: '#FFFFFF9E',\n 800: '#FFFFFFCC',\n 900: '#FFFFFFEB',\n },\n dangerAlpha: {\n 50: '#CA40380A',\n 100: '#CA40380F',\n 200: '#CA403814',\n 300: '#CA403829',\n 400: '#CA40383D',\n 500: '#CA40385C',\n 600: '#CA40387A',\n 700: '#CA40389E',\n 800: '#CA4038CC',\n 900: '#CA4038EB',\n },\n dangerAlphaInverse: {\n 50: '#F9A7A60A',\n 100: '#F9A7A60F',\n 200: '#F9A7A614',\n 300: '#F9A7A629',\n 400: '#F9A7A63D',\n 500: '#F9A7A65C',\n 600: '#F9A7A67A',\n 700: '#F9A7A69E',\n 800: '#F9A7A6CC',\n 900: '#F9A7A6EB',\n },\n};\n"],"names":["coreColors"],"mappings":"gFAEO,MAAMA,EAA4D,CACvE,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,UAAW,CACT,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,SAAU,CACR,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,OAAQ,CACN,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,QAAS,CACP,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EACA,aAAc,CACZ,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,oBAAqB,CACnB,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,eAAgB,CACd,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,sBAAuB,CACrB,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,WAAY,CACV,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,WAAY,CACV,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,YAAa,CACX,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WACP,EACA,mBAAoB,CAClB,GAAI,YACJ,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,YACL,IAAK,WAAA,CAET"}