@stokelp/ui 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/components/alert/Alert.cjs +1 -1
  2. package/dist/components/alert/Alert.cjs.map +1 -1
  3. package/dist/components/alert/Alert.d.ts +1 -1
  4. package/dist/components/alert/Alert.js +57 -53
  5. package/dist/components/alert/Alert.js.map +1 -1
  6. package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
  7. package/dist/components/app/navigation/AppNavigation.d.ts +2 -1
  8. package/dist/components/app/navigation/AppNavigation.js.map +1 -1
  9. package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
  10. package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
  11. package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
  12. package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
  13. package/dist/components/chat/ChatScoreBreakdown.cjs.map +1 -1
  14. package/dist/components/chat/ChatScoreBreakdown.js.map +1 -1
  15. package/dist/components/chat/ChatTextInput.cjs.map +1 -1
  16. package/dist/components/chat/ChatTextInput.d.ts +1 -1
  17. package/dist/components/chat/ChatTextInput.js.map +1 -1
  18. package/dist/components/combobox/Combobox.cjs +2 -2
  19. package/dist/components/combobox/Combobox.cjs.map +1 -1
  20. package/dist/components/combobox/Combobox.js +17 -17
  21. package/dist/components/date-picker/DatePicker.cjs +1 -1
  22. package/dist/components/date-picker/DatePicker.cjs.map +1 -1
  23. package/dist/components/date-picker/DatePicker.js +68 -53
  24. package/dist/components/date-picker/DatePicker.js.map +1 -1
  25. package/dist/components/dialog/styled.cjs +1 -1
  26. package/dist/components/dialog/styled.cjs.map +1 -1
  27. package/dist/components/dialog/styled.js +58 -54
  28. package/dist/components/dialog/styled.js.map +1 -1
  29. package/dist/components/drawer/Drawer.cjs +1 -1
  30. package/dist/components/drawer/Drawer.cjs.map +1 -1
  31. package/dist/components/drawer/Drawer.js +46 -42
  32. package/dist/components/drawer/Drawer.js.map +1 -1
  33. package/dist/components/input/HighlightedInput.cjs.map +1 -1
  34. package/dist/components/input/HighlightedInput.js.map +1 -1
  35. package/dist/components/pagination/Pagination.cjs +1 -1
  36. package/dist/components/pagination/Pagination.cjs.map +1 -1
  37. package/dist/components/pagination/Pagination.js +37 -36
  38. package/dist/components/pagination/Pagination.js.map +1 -1
  39. package/dist/components/select/Select.cjs +1 -1
  40. package/dist/components/select/Select.cjs.map +1 -1
  41. package/dist/components/select/Select.js +15 -15
  42. package/dist/components/supplier-rating-badge/SupplierRatingBadge.cjs +1 -1
  43. package/dist/components/supplier-rating-badge/SupplierRatingBadge.cjs.map +1 -1
  44. package/dist/components/supplier-rating-badge/SupplierRatingBadge.js +4 -4
  45. package/dist/components/supplier-rating-badge/SupplierRatingBadge.js.map +1 -1
  46. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs +1 -1
  47. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs.map +1 -1
  48. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js +33 -33
  49. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js.map +1 -1
  50. package/dist/components/ui-labels/UiLabelsProvider.cjs +1 -1
  51. package/dist/components/ui-labels/UiLabelsProvider.cjs.map +1 -1
  52. package/dist/components/ui-labels/UiLabelsProvider.d.ts +34 -2
  53. package/dist/components/ui-labels/UiLabelsProvider.js +32 -7
  54. package/dist/components/ui-labels/UiLabelsProvider.js.map +1 -1
  55. package/dist/index.cjs +1 -1
  56. package/dist/index.js +69 -69
  57. package/package.json +20 -4
@@ -1 +1 @@
1
- {"version":3,"file":"SupplierRatingBreakdown.js","names":["CheckCircleIcon","XCircleIcon","_Fragment","ForwardRef","ForwardRef$1","SUPPLIER_RATING_MAX","COMPLETION_ORDER","formatOverall","locale","overall","formatResponseDelay","minutes","units","hours","days","getHeadlineColor","ratio","getBarColor","ratioPercent","SupplierRatingBreakdown","labelsProp","uiLabels","useUiLabels","labels","mergeSupplierRatingLabels","hasResponseRate","responseRate","hasDelay","rating","delayPercent","completionPercent","rows","Box","HStack","Text","VStack","row","done","key","Icon","jsx","Fragment","DEFAULT_SUPPLIER_RATING_LABELS"],"sources":["../../../src/components/supplier-rating-badge/SupplierRatingBreakdown.tsx"],"sourcesContent":["import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/outline'\nimport { Box, HStack, VStack } from '@stokelp/styled-system/jsx'\n\nimport { Icon, Text } from '~/components'\nimport { useUiLabels } from '~/components/ui-labels/UiLabelsProvider'\nimport {\n mergeSupplierRatingLabels,\n type SupplierRatingCompletionKey,\n type SupplierRatingComponentKey,\n type SupplierRating,\n type SupplierRatingLabels,\n} from './labels'\n\nexport * from './labels'\n\nexport const SUPPLIER_RATING_MAX = 5\n\nconst COMPLETION_ORDER: SupplierRatingCompletionKey[] = [\n 'profile',\n 'location',\n 'contacts',\n 'legalBanking',\n 'sector',\n 'certificate',\n]\n\n/** Note with one decimal in the reader's number format (\"4,2\" in French, \"4.2\" in English). */\nexport function formatOverall(overall: number, locale = 'fr-FR'): string {\n return new Intl.NumberFormat(locale, { minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(overall)\n}\n\n/** Average response delay: minutes → \"45 min\" / \"18 h\" / \"2,5 j\". */\nexport function formatResponseDelay(minutes: number, units: SupplierRatingLabels['units'], locale = 'fr-FR'): string {\n if (minutes < 60) return `${Math.round(minutes)} ${units.minutes}`\n const hours = minutes / 60\n if (hours < 48) return `${Math.round(hours)} ${units.hours}`\n const days = hours / 24\n return `${new Intl.NumberFormat(locale, { maximumFractionDigits: 1 }).format(days)} ${units.days}`\n}\n\nexport function getHeadlineColor(overall: number): string {\n const ratio = overall / SUPPLIER_RATING_MAX\n if (ratio >= 0.7) return '#3B6D11'\n if (ratio >= 0.4) return '#854F0B'\n return '#A32D2D'\n}\n\nfunction getBarColor(ratioPercent: number): string {\n if (ratioPercent >= 70) return '#639922'\n if (ratioPercent >= 40) return '#BA7517'\n return '#E24B4A'\n}\n\ntype ComponentRow = {\n key: SupplierRatingComponentKey\n value: string\n /** 0..100 bar fill, or null when there is no data. */\n barPercent: number | null\n /** Bar/value colour, or undefined for the neutral (no-data) state. */\n color?: string\n}\n\ntype SupplierRatingBreakdownProps = {\n rating: SupplierRating\n /** Original response rate (0..100), displayed as the \"Taux de réponse\" value. */\n responseRate?: number\n labels?: Partial<SupplierRatingLabels>\n}\n\nexport const SupplierRatingBreakdown = ({ rating, responseRate, labels: labelsProp }: SupplierRatingBreakdownProps) => {\n const uiLabels = useUiLabels()\n const labels = mergeSupplierRatingLabels(uiLabels.supplierRating, labelsProp)\n\n const hasResponseRate = responseRate != null\n const hasDelay = rating.responseDelayMinutes != null\n const delayPercent = rating.responseDelayScore != null ? Math.round(rating.responseDelayScore * 100) : null\n const completionPercent = Math.round(rating.completionScore * 100)\n\n const rows: ComponentRow[] = [\n {\n key: 'responseRate',\n value: hasResponseRate ? `${Math.round(responseRate)} %` : labels.notAvailable,\n barPercent: hasResponseRate ? Math.round(responseRate) : null,\n color: hasResponseRate ? getBarColor(Math.round(responseRate)) : undefined,\n },\n {\n key: 'responseDelay',\n value: hasDelay\n ? formatResponseDelay(rating.responseDelayMinutes as number, labels.units, uiLabels.locale)\n : labels.notAvailable,\n barPercent: delayPercent,\n color: delayPercent != null ? getBarColor(delayPercent) : undefined,\n },\n {\n key: 'completion',\n value: `${completionPercent} %`,\n barPercent: completionPercent,\n color: getBarColor(completionPercent),\n },\n ]\n\n return (\n <Box\n bg=\"white\"\n borderRadius=\"radius-8\"\n p=\"space-16\"\n minW=\"240px\"\n maxW=\"260px\"\n css={{ '& *': { fontFamily: 'inherit' } }}\n >\n <HStack justify=\"space-between\" alignItems=\"baseline\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.md\" fontWeight=\"bold\">\n {labels.title}\n </Text>\n {rating.insufficientData || rating.overall == null ? (\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"medium\" color=\"grey.400\">\n {labels.insufficientData}\n </Text>\n ) : (\n <Text as=\"span\" fontSize=\"body.lg\" fontWeight=\"medium\" style={{ color: getHeadlineColor(rating.overall) }}>\n {formatOverall(rating.overall, uiLabels.locale)} / {SUPPLIER_RATING_MAX} ★\n </Text>\n )}\n </HStack>\n\n <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />\n\n <VStack alignItems=\"stretch\" gap=\"space-8\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.componentsTitle}\n </Text>\n {rows.map(row => (\n <VStack key={row.key} alignItems=\"stretch\" gap=\"space-2\">\n <HStack justify=\"space-between\" alignItems=\"baseline\" gap=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" color=\"grey.500\">\n {labels.components[row.key]}\n </Text>\n <Text\n as=\"span\"\n fontSize=\"body.sm\"\n fontWeight=\"medium\"\n whiteSpace=\"nowrap\"\n style={{ color: row.color }}\n color={row.color ? undefined : 'grey.300'}\n >\n {row.value}\n </Text>\n </HStack>\n <Box h=\"3px\" bg=\"grey.100\" borderRadius=\"full\" overflow=\"hidden\">\n <Box\n h=\"100%\"\n borderRadius=\"full\"\n style={{\n width: row.barPercent != null ? `${row.barPercent}%` : '0%',\n background: row.color ?? 'transparent',\n }}\n />\n </Box>\n </VStack>\n ))}\n </VStack>\n\n <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />\n\n <VStack alignItems=\"stretch\" gap=\"space-4\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.completionTitle}\n </Text>\n {COMPLETION_ORDER.map(key => {\n const done = rating.completion[key]\n return (\n <HStack key={key} alignItems=\"center\" gap=\"space-8\">\n <Icon size=\"sm\" color={done ? 'success.500' : 'grey.300'} flexShrink=\"0\">\n {done ? <CheckCircleIcon /> : <XCircleIcon />}\n </Icon>\n <Text as=\"span\" fontSize=\"body.sm\" color={done ? 'grey.500' : 'grey.400'}>\n {labels.completion[key]}\n </Text>\n </HStack>\n )\n })}\n </VStack>\n\n {labels.footer && (\n <>\n <Box h=\"1px\" bg=\"grey.100\" mt=\"space-8\" mb=\"space-8\" />\n <Text as=\"span\" fontSize=\"9px\" color=\"grey.300\" style={{ lineHeight: 1 }}>\n {labels.footer}\n </Text>\n </>\n )}\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;;AAeA,IAAaK,IAAsB,GAE7BC,IAAkD;CACtD;CACA;CACA;CACA;CACA;CACA;AACF;AAGA,SAAgBC,EAAc,GAAiB,IAAS,SAAiB;CACvE,OAAO,IAAI,KAAK,aAAaC,GAAQ;EAAE,uBAAuB;EAAG,uBAAuB;CAAE,CAAC,CAAC,CAAC,OAAOC,CAAO;AAC7G;AAGA,SAAgBC,EAAoB,GAAiB,GAAsC,IAAS,SAAiB;CACnH,IAAIC,IAAU,IAAI,OAAO,GAAG,KAAK,MAAMA,CAAO,EAAE,GAAGC,EAAM;CACzD,IAAMC,IAAQF,IAAU;CACxB,IAAIE,IAAQ,IAAI,OAAO,GAAG,KAAK,MAAMA,CAAK,EAAE,GAAGD,EAAM;CACrD,IAAME,IAAOD,IAAQ;CACrB,OAAO,GAAG,IAAI,KAAK,aAAaL,GAAQ,EAAE,uBAAuB,EAAE,CAAC,CAAC,CAAC,OAAOM,CAAI,EAAE,GAAGF,EAAM;AAC9F;AAEA,SAAgBG,EAAiB,GAAyB;CACxD,IAAMC,IAAQP,IAAA;CAGd,OAFIO,KAAS,KAAY,YACrBA,KAAS,KAAY,YAClB;AACT;AAEA,SAASC,EAAY,GAA8B;CAGjD,OAFIC,KAAgB,KAAW,YAC3BA,KAAgB,KAAW,YACxB;AACT;AAkBA,IAAaC,KAA2B,EAAE,WAAQ,iBAAc,QAAQC,QAA+C;CACrH,IAAMC,IAAWC,EAAY,GACvBC,IAASC,EAA0BH,EAAS,gBAAgBD,CAAU,GAEtEK,IAAkBC,KAAgB,MAClCC,IAAWC,EAAO,wBAAwB,MAC1CC,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KAC/B,OACE,kBAACL,GAAD;MAAkB,YAAW;MAAS,KAAI;MAA1C,UAAA,CACE,kBAACM,GAAD;OAAM,MAAK;OAAK,OAAOF,IAAO,gBAAgB;OAAY,YAAW;OAClE,UAAOG,EAAPH,IAAQrC,IAAsBC,GAAvB,CAAkB,CAAkB;MACxC,CAAA,GACN,kBAACiC,GAAD;OAAM,IAAG;OAAO,UAAS;OAAU,OAAOG,IAAO,aAAa;OAC3D,UAAAd,EAAO,WAAWe;MACf,CAAA,CACA;KAPK,GAAAA,CAOL;IAEZ,CAAC,CACK;;GAEPf,EAAO,UACN,kBAAArB,GAAA,EAAA,UAAA,CACE,kBAAC8B,GAAD;IAAK,GAAE;IAAM,IAAG;IAAW,IAAG;IAAU,IAAG;GAAW,CAAA,GACtD,kBAACE,GAAD;IAAM,IAAG;IAAO,UAAS;IAAM,OAAM;IAAW,OAAO,EAAE,YAAY,EAAE;IACpE,UAAAX,EAAO;GACJ,CAAA,CACN,EAAA,CAAA;EAED;;AAET"}
1
+ {"version":3,"file":"SupplierRatingBreakdown.js","names":["CheckCircleIcon","XCircleIcon","_Fragment","ForwardRef","ForwardRef$1","SUPPLIER_RATING_MAX","COMPLETION_ORDER","formatOverall","locale","overall","formatResponseDelay","minutes","units","hours","days","getHeadlineColor","ratio","getBarColor","ratioPercent","SupplierRatingBreakdown","labelsProp","uiLabels","useUiLabels","labels","mergeSupplierRatingLabels","hasResponseRate","responseRate","hasDelay","rating","delayPercent","completionPercent","rows","Box","HStack","Text","VStack","row","done","key","Icon","jsx","Fragment","DEFAULT_SUPPLIER_RATING_LABELS"],"sources":["../../../src/components/supplier-rating-badge/SupplierRatingBreakdown.tsx"],"sourcesContent":["import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/outline'\nimport { Box, HStack, VStack } from '@stokelp/styled-system/jsx'\n\nimport { Icon } from '~/components/icon/Icon'\nimport { Text } from '~/components/text/Text'\nimport { useUiLabels } from '~/components/ui-labels/UiLabelsProvider'\nimport {\n mergeSupplierRatingLabels,\n type SupplierRatingCompletionKey,\n type SupplierRatingComponentKey,\n type SupplierRating,\n type SupplierRatingLabels,\n} from './labels'\n\nexport * from './labels'\n\nexport const SUPPLIER_RATING_MAX = 5\n\nconst COMPLETION_ORDER: SupplierRatingCompletionKey[] = [\n 'profile',\n 'location',\n 'contacts',\n 'legalBanking',\n 'sector',\n 'certificate',\n]\n\n/** Note with one decimal in the reader's number format (\"4,2\" in French, \"4.2\" in English). */\nexport function formatOverall(overall: number, locale = 'fr-FR'): string {\n return new Intl.NumberFormat(locale, { minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(overall)\n}\n\n/** Average response delay: minutes → \"45 min\" / \"18 h\" / \"2,5 j\". */\nexport function formatResponseDelay(minutes: number, units: SupplierRatingLabels['units'], locale = 'fr-FR'): string {\n if (minutes < 60) return `${Math.round(minutes)} ${units.minutes}`\n const hours = minutes / 60\n if (hours < 48) return `${Math.round(hours)} ${units.hours}`\n const days = hours / 24\n return `${new Intl.NumberFormat(locale, { maximumFractionDigits: 1 }).format(days)} ${units.days}`\n}\n\nexport function getHeadlineColor(overall: number): string {\n const ratio = overall / SUPPLIER_RATING_MAX\n if (ratio >= 0.7) return '#3B6D11'\n if (ratio >= 0.4) return '#854F0B'\n return '#A32D2D'\n}\n\nfunction getBarColor(ratioPercent: number): string {\n if (ratioPercent >= 70) return '#639922'\n if (ratioPercent >= 40) return '#BA7517'\n return '#E24B4A'\n}\n\ntype ComponentRow = {\n key: SupplierRatingComponentKey\n value: string\n /** 0..100 bar fill, or null when there is no data. */\n barPercent: number | null\n /** Bar/value colour, or undefined for the neutral (no-data) state. */\n color?: string\n}\n\ntype SupplierRatingBreakdownProps = {\n rating: SupplierRating\n /** Original response rate (0..100), displayed as the \"Taux de réponse\" value. */\n responseRate?: number\n labels?: Partial<SupplierRatingLabels>\n}\n\nexport const SupplierRatingBreakdown = ({ rating, responseRate, labels: labelsProp }: SupplierRatingBreakdownProps) => {\n const uiLabels = useUiLabels()\n const labels = mergeSupplierRatingLabels(uiLabels.supplierRating, labelsProp)\n\n const hasResponseRate = responseRate != null\n const hasDelay = rating.responseDelayMinutes != null\n const delayPercent = rating.responseDelayScore != null ? Math.round(rating.responseDelayScore * 100) : null\n const completionPercent = Math.round(rating.completionScore * 100)\n\n const rows: ComponentRow[] = [\n {\n key: 'responseRate',\n value: hasResponseRate ? `${Math.round(responseRate)} %` : labels.notAvailable,\n barPercent: hasResponseRate ? Math.round(responseRate) : null,\n color: hasResponseRate ? getBarColor(Math.round(responseRate)) : undefined,\n },\n {\n key: 'responseDelay',\n value: hasDelay\n ? formatResponseDelay(rating.responseDelayMinutes as number, labels.units, uiLabels.locale)\n : labels.notAvailable,\n barPercent: delayPercent,\n color: delayPercent != null ? getBarColor(delayPercent) : undefined,\n },\n {\n key: 'completion',\n value: `${completionPercent} %`,\n barPercent: completionPercent,\n color: getBarColor(completionPercent),\n },\n ]\n\n return (\n <Box\n bg=\"white\"\n borderRadius=\"radius-8\"\n p=\"space-16\"\n minW=\"240px\"\n maxW=\"260px\"\n css={{ '& *': { fontFamily: 'inherit' } }}\n >\n <HStack justify=\"space-between\" alignItems=\"baseline\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.md\" fontWeight=\"bold\">\n {labels.title}\n </Text>\n {rating.insufficientData || rating.overall == null ? (\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"medium\" color=\"grey.400\">\n {labels.insufficientData}\n </Text>\n ) : (\n <Text as=\"span\" fontSize=\"body.lg\" fontWeight=\"medium\" style={{ color: getHeadlineColor(rating.overall) }}>\n {formatOverall(rating.overall, uiLabels.locale)} / {SUPPLIER_RATING_MAX} ★\n </Text>\n )}\n </HStack>\n\n <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />\n\n <VStack alignItems=\"stretch\" gap=\"space-8\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.componentsTitle}\n </Text>\n {rows.map(row => (\n <VStack key={row.key} alignItems=\"stretch\" gap=\"space-2\">\n <HStack justify=\"space-between\" alignItems=\"baseline\" gap=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" color=\"grey.500\">\n {labels.components[row.key]}\n </Text>\n <Text\n as=\"span\"\n fontSize=\"body.sm\"\n fontWeight=\"medium\"\n whiteSpace=\"nowrap\"\n style={{ color: row.color }}\n color={row.color ? undefined : 'grey.300'}\n >\n {row.value}\n </Text>\n </HStack>\n <Box h=\"3px\" bg=\"grey.100\" borderRadius=\"full\" overflow=\"hidden\">\n <Box\n h=\"100%\"\n borderRadius=\"full\"\n style={{\n width: row.barPercent != null ? `${row.barPercent}%` : '0%',\n background: row.color ?? 'transparent',\n }}\n />\n </Box>\n </VStack>\n ))}\n </VStack>\n\n <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />\n\n <VStack alignItems=\"stretch\" gap=\"space-4\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.completionTitle}\n </Text>\n {COMPLETION_ORDER.map(key => {\n const done = rating.completion[key]\n return (\n <HStack key={key} alignItems=\"center\" gap=\"space-8\">\n <Icon size=\"sm\" color={done ? 'success.500' : 'grey.300'} flexShrink=\"0\">\n {done ? <CheckCircleIcon /> : <XCircleIcon />}\n </Icon>\n <Text as=\"span\" fontSize=\"body.sm\" color={done ? 'grey.500' : 'grey.400'}>\n {labels.completion[key]}\n </Text>\n </HStack>\n )\n })}\n </VStack>\n\n {labels.footer && (\n <>\n <Box h=\"1px\" bg=\"grey.100\" mt=\"space-8\" mb=\"space-8\" />\n <Text as=\"span\" fontSize=\"9px\" color=\"grey.300\" style={{ lineHeight: 1 }}>\n {labels.footer}\n </Text>\n </>\n )}\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;;AAgBA,IAAaK,IAAsB,GAE7BC,IAAkD;CACtD;CACA;CACA;CACA;CACA;CACA;AACF;AAGA,SAAgBC,EAAc,GAAiB,IAAS,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K;;GAEPf,EAAO,UACN,kBAAArB,GAAA,EAAA,UAAA,CACE,kBAAC8B,GAAD;IAAK,GAAE;IAAM,IAAG;IAAW,IAAG;IAAU,IAAG;GAAW,CAAA,GACtD,kBAACE,GAAD;IAAM,IAAG;IAAO,UAAS;IAAM,OAAM;IAAW,OAAO,EAAE,YAAY,EAAE;IACpE,UAAAX,EAAO;GACJ,CAAA,CACN,EAAA,CAAA;EAED;;AAET"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../supplier-rating-badge/labels.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={locale:`fr-FR`,noResults:`Aucun résultat`,loading:`Chargement...`,supplierRating:e.DEFAULT_SUPPLIER_RATING_LABELS},i=(0,t.createContext)(r),a=({labels:a,children:o})=>{let s=(0,t.useMemo)(()=>({...r,...a,supplierRating:e.mergeSupplierRatingLabels(r.supplierRating,a.supplierRating)}),[a]);return(0,n.jsx)(i.Provider,{value:s,children:o})};function o(){return(0,t.useContext)(i)}exports.DEFAULT_UI_LABELS=r,exports.UiLabelsProvider=a,exports.useUiLabels=o;
1
+ "use client";const e=require("../supplier-rating-badge/labels.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={openCalendar:`Ouvrir le calendrier`,closeCalendar:`Fermer le calendrier`,calendar:`Calendrier`,previousMonth:`Mois précédent`,nextMonth:`Mois suivant`,previousYear:`Année précédente`,nextYear:`Année suivante`,previousDecade:`Décennie précédente`,nextDecade:`Décennie suivante`,selectMonth:`Choisir le mois`,selectYear:`Choisir l'année`,clear:`Effacer la date`,chooseDate:e=>`Choisir le ${e}`,selectedDate:e=>`Date sélectionnée : ${e}`,unavailableDate:e=>`Indisponible : ${e}`},i={locale:`fr-FR`,noResults:`Aucun résultat`,loading:`Chargement...`,close:`Fermer`,dismiss:`Masquer`,previousPage:`Page précédente`,nextPage:`Page suivante`,datePicker:r,supplierRating:e.DEFAULT_SUPPLIER_RATING_LABELS},a=(0,t.createContext)(i),o=({labels:r,children:o})=>{let s=(0,t.useMemo)(()=>({...i,...r,datePicker:{...i.datePicker,...r.datePicker},supplierRating:e.mergeSupplierRatingLabels(i.supplierRating,r.supplierRating)}),[r]);return(0,n.jsx)(a.Provider,{value:s,children:o})};function s(){return(0,t.useContext)(a)}exports.DEFAULT_DATE_PICKER_LABELS=r,exports.DEFAULT_UI_LABELS=i,exports.UiLabelsProvider=o,exports.useUiLabels=s;
2
2
  //# sourceMappingURL=UiLabelsProvider.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiLabelsProvider.cjs","names":["DEFAULT_SUPPLIER_RATING_LABELS","createContext","useMemo","mergeSupplierRatingLabels","useContext","require_labels","react","react_jsx_runtime","DEFAULT_UI_LABELS","UiLabelsContext","UiLabelsProvider","value","labels","useUiLabels"],"sources":["../../../src/components/ui-labels/UiLabelsProvider.tsx"],"sourcesContent":["import { createContext, type FC, type ReactNode, useContext, useMemo } from 'react'\n\nimport {\n DEFAULT_SUPPLIER_RATING_LABELS,\n mergeSupplierRatingLabels,\n type SupplierRatingLabels,\n} from '../supplier-rating-badge/labels'\n\n/**\n * The words and number format the kit renders on its own (empty lists, loading states, the\n * supplier rating). The kit carries no translations: an app wraps its tree once in\n * UiLabelsProvider with its own, in the reader's locale. Without a provider the kit reads French,\n * as it always has.\n */\nexport type UiLabels = {\n /** BCP 47 tag the kit formats numbers with (the supplier rating's note). */\n locale: string\n /** Shown by Select and Combobox when there is nothing to pick. */\n noResults: string\n /** Shown by Combobox while its items load. */\n loading: string\n supplierRating: SupplierRatingLabels\n}\n\nexport type UiLabelsInput = Partial<Omit<UiLabels, 'supplierRating'>> & {\n supplierRating?: Partial<SupplierRatingLabels>\n}\n\nexport const DEFAULT_UI_LABELS: UiLabels = {\n locale: 'fr-FR',\n noResults: 'Aucun résultat',\n loading: 'Chargement...',\n supplierRating: DEFAULT_SUPPLIER_RATING_LABELS,\n}\n\nconst UiLabelsContext = createContext<UiLabels>(DEFAULT_UI_LABELS)\n\nexport const UiLabelsProvider: FC<{ labels: UiLabelsInput; children: ReactNode }> = ({ labels, children }) => {\n const value = useMemo<UiLabels>(\n () => ({\n ...DEFAULT_UI_LABELS,\n ...labels,\n supplierRating: mergeSupplierRatingLabels(DEFAULT_UI_LABELS.supplierRating, labels.supplierRating),\n }),\n [labels],\n )\n return <UiLabelsContext.Provider value={value}>{children}</UiLabelsContext.Provider>\n}\n\n/** The labels of the nearest UiLabelsProvider, or the French defaults. */\nexport function useUiLabels(): UiLabels {\n return useContext(UiLabelsContext)\n}\n"],"mappings":"A,0HA4BA,IAAaQ,EAA8B,CACzC,OAAQ,QACR,UAAW,iBACX,QAAS,gBACT,eAAgBR,EAAAA,8BAClB,EAEMS,GAAA,EAAkBR,EAAAA,cAAAA,CAAwBO,CAAiB,EAEpDE,GAAwE,CAAE,SAAQ,cAAe,CAC5G,IAAMC,GAAA,EAAQT,EAAAA,QAAAA,MACL,CACL,GAAGM,EACH,GAAGI,EACH,eAAgBT,EAAAA,0BAA0BK,EAAkB,eAAgBI,EAAO,cAAc,CACnG,GACA,CAACA,CAAM,CACT,EACA,OAAO,EAAAL,EAAA,IAAA,CAACE,EAAgB,SAAjB,CAAiC,QAAQ,UAAmC,CAAA,CACrF,EAGA,SAAgBI,GAAwB,CACtC,OAAA,EAAOT,EAAAA,WAAAA,CAAWK,CAAe,CACnC,C"}
1
+ {"version":3,"file":"UiLabelsProvider.cjs","names":["DEFAULT_SUPPLIER_RATING_LABELS","createContext","useMemo","mergeSupplierRatingLabels","useContext","require_labels","react","react_jsx_runtime","DEFAULT_DATE_PICKER_LABELS","date","DEFAULT_UI_LABELS","UiLabelsContext","UiLabelsProvider","value","labels","useUiLabels"],"sources":["../../../src/components/ui-labels/UiLabelsProvider.tsx"],"sourcesContent":["import { createContext, type FC, type ReactNode, useContext, useMemo } from 'react'\n\nimport {\n DEFAULT_SUPPLIER_RATING_LABELS,\n mergeSupplierRatingLabels,\n type SupplierRatingLabels,\n} from '../supplier-rating-badge/labels'\n\n/**\n * The words and number format the kit renders on its own (empty lists, loading states, the\n * supplier rating, the accessible names of its icon buttons and of the date picker). The kit carries no translations: an app wraps its tree once in\n * UiLabelsProvider with its own, in the reader's locale. Without a provider the kit reads French,\n * as it always has.\n */\nexport type UiLabels = {\n /** BCP 47 tag the kit formats numbers with (the supplier rating's note). */\n locale: string\n /** Shown by Select and Combobox when there is nothing to pick. */\n noResults: string\n /** Shown by Combobox while its items load. */\n loading: string\n /** Accessible name of the close button of DrawerHeader and DialogHeader. */\n close: string\n /** Accessible name of the dismiss button of Alert. */\n dismiss: string\n /** Accessible names of Pagination's arrows. */\n previousPage: string\n nextPage: string\n datePicker: DatePickerLabels\n supplierRating: SupplierRatingLabels\n}\n\n/**\n * What a screen reader hears on DatePicker. The date in the templated ones is already written in\n * `locale` by the picker.\n */\nexport type DatePickerLabels = {\n openCalendar: string\n closeCalendar: string\n calendar: string\n previousMonth: string\n nextMonth: string\n previousYear: string\n nextYear: string\n previousDecade: string\n nextDecade: string\n selectMonth: string\n selectYear: string\n clear: string\n chooseDate: (date: string) => string\n selectedDate: (date: string) => string\n /** A day that cannot be picked: unavailable, or out of min and max. */\n unavailableDate: (date: string) => string\n}\n\nexport type UiLabelsInput = Partial<Omit<UiLabels, 'supplierRating' | 'datePicker'>> & {\n datePicker?: Partial<DatePickerLabels>\n supplierRating?: Partial<SupplierRatingLabels>\n}\n\nexport const DEFAULT_DATE_PICKER_LABELS: DatePickerLabels = {\n openCalendar: 'Ouvrir le calendrier',\n closeCalendar: 'Fermer le calendrier',\n calendar: 'Calendrier',\n previousMonth: 'Mois précédent',\n nextMonth: 'Mois suivant',\n previousYear: 'Année précédente',\n nextYear: 'Année suivante',\n previousDecade: 'Décennie précédente',\n nextDecade: 'Décennie suivante',\n selectMonth: 'Choisir le mois',\n selectYear: \"Choisir l'année\",\n clear: 'Effacer la date',\n chooseDate: date => `Choisir le ${date}`,\n selectedDate: date => `Date sélectionnée : ${date}`,\n unavailableDate: date => `Indisponible : ${date}`,\n}\n\nexport const DEFAULT_UI_LABELS: UiLabels = {\n locale: 'fr-FR',\n noResults: 'Aucun résultat',\n loading: 'Chargement...',\n close: 'Fermer',\n dismiss: 'Masquer',\n previousPage: 'Page précédente',\n nextPage: 'Page suivante',\n datePicker: DEFAULT_DATE_PICKER_LABELS,\n supplierRating: DEFAULT_SUPPLIER_RATING_LABELS,\n}\n\nconst UiLabelsContext = createContext<UiLabels>(DEFAULT_UI_LABELS)\n\nexport const UiLabelsProvider: FC<{ labels: UiLabelsInput; children: ReactNode }> = ({ labels, children }) => {\n const value = useMemo<UiLabels>(\n () => ({\n ...DEFAULT_UI_LABELS,\n ...labels,\n datePicker: { ...DEFAULT_UI_LABELS.datePicker, ...labels.datePicker },\n supplierRating: mergeSupplierRatingLabels(DEFAULT_UI_LABELS.supplierRating, labels.supplierRating),\n }),\n [labels],\n )\n return <UiLabelsContext.Provider value={value}>{children}</UiLabelsContext.Provider>\n}\n\n/** The labels of the nearest UiLabelsProvider, or the French defaults. */\nexport function useUiLabels(): UiLabels {\n return useContext(UiLabelsContext)\n}\n"],"mappings":"A,0HA4DA,IAAaQ,EAA+C,CAC1D,aAAc,uBACd,cAAe,uBACf,SAAU,aACV,cAAe,iBACf,UAAW,eACX,aAAc,mBACd,SAAU,iBACV,eAAgB,sBAChB,WAAY,oBACZ,YAAa,kBACb,WAAY,kBACZ,MAAO,kBACP,WAAY,GAAQ,cAAcC,IAClC,aAAc,GAAQ,uBAAuBA,IAC7C,gBAAiB,GAAQ,kBAAkBA,GAC7C,EAEaC,EAA8B,CACzC,OAAQ,QACR,UAAW,iBACX,QAAS,gBACT,MAAO,SACP,QAAS,UACT,aAAc,kBACd,SAAU,gBACV,WAAYF,EACZ,eAAgBR,EAAAA,8BAClB,EAEMW,GAAA,EAAkBV,EAAAA,cAAAA,CAAwBS,CAAiB,EAEpDE,GAAwE,CAAE,SAAQ,cAAe,CAC5G,IAAMC,GAAA,EAAQX,EAAAA,QAAAA,MACL,CACL,GAAGQ,EACH,GAAGI,EACH,WAAY,CAAE,GAAGJ,EAAkB,WAAY,GAAGI,EAAO,UAAW,EACpE,eAAgBX,EAAAA,0BAA0BO,EAAkB,eAAgBI,EAAO,cAAc,CACnG,GACA,CAACA,CAAM,CACT,EACA,OAAO,EAAAP,EAAA,IAAA,CAACI,EAAgB,SAAjB,CAAiC,QAAQ,UAAmC,CAAA,CACrF,EAGA,SAAgBI,GAAwB,CACtC,OAAA,EAAOX,EAAAA,WAAAA,CAAWO,CAAe,CACnC,C"}
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
2
2
  import { SupplierRatingLabels } from '../supplier-rating-badge/labels';
3
3
  /**
4
4
  * The words and number format the kit renders on its own (empty lists, loading states, the
5
- * supplier rating). The kit carries no translations: an app wraps its tree once in
5
+ * supplier rating, the accessible names of its icon buttons and of the date picker). The kit carries no translations: an app wraps its tree once in
6
6
  * UiLabelsProvider with its own, in the reader's locale. Without a provider the kit reads French,
7
7
  * as it always has.
8
8
  */
@@ -13,11 +13,43 @@ export type UiLabels = {
13
13
  noResults: string;
14
14
  /** Shown by Combobox while its items load. */
15
15
  loading: string;
16
+ /** Accessible name of the close button of DrawerHeader and DialogHeader. */
17
+ close: string;
18
+ /** Accessible name of the dismiss button of Alert. */
19
+ dismiss: string;
20
+ /** Accessible names of Pagination's arrows. */
21
+ previousPage: string;
22
+ nextPage: string;
23
+ datePicker: DatePickerLabels;
16
24
  supplierRating: SupplierRatingLabels;
17
25
  };
18
- export type UiLabelsInput = Partial<Omit<UiLabels, 'supplierRating'>> & {
26
+ /**
27
+ * What a screen reader hears on DatePicker. The date in the templated ones is already written in
28
+ * `locale` by the picker.
29
+ */
30
+ export type DatePickerLabels = {
31
+ openCalendar: string;
32
+ closeCalendar: string;
33
+ calendar: string;
34
+ previousMonth: string;
35
+ nextMonth: string;
36
+ previousYear: string;
37
+ nextYear: string;
38
+ previousDecade: string;
39
+ nextDecade: string;
40
+ selectMonth: string;
41
+ selectYear: string;
42
+ clear: string;
43
+ chooseDate: (date: string) => string;
44
+ selectedDate: (date: string) => string;
45
+ /** A day that cannot be picked: unavailable, or out of min and max. */
46
+ unavailableDate: (date: string) => string;
47
+ };
48
+ export type UiLabelsInput = Partial<Omit<UiLabels, 'supplierRating' | 'datePicker'>> & {
49
+ datePicker?: Partial<DatePickerLabels>;
19
50
  supplierRating?: Partial<SupplierRatingLabels>;
20
51
  };
52
+ export declare const DEFAULT_DATE_PICKER_LABELS: DatePickerLabels;
21
53
  export declare const DEFAULT_UI_LABELS: UiLabels;
22
54
  export declare const UiLabelsProvider: FC<{
23
55
  labels: UiLabelsInput;
@@ -4,24 +4,49 @@ import { createContext as n, useContext as r, useMemo as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  // src/components/ui-labels/UiLabelsProvider.tsx
6
6
  var o = {
7
+ openCalendar: "Ouvrir le calendrier",
8
+ closeCalendar: "Fermer le calendrier",
9
+ calendar: "Calendrier",
10
+ previousMonth: "Mois précédent",
11
+ nextMonth: "Mois suivant",
12
+ previousYear: "Année précédente",
13
+ nextYear: "Année suivante",
14
+ previousDecade: "Décennie précédente",
15
+ nextDecade: "Décennie suivante",
16
+ selectMonth: "Choisir le mois",
17
+ selectYear: "Choisir l'année",
18
+ clear: "Effacer la date",
19
+ chooseDate: (e) => `Choisir le ${e}`,
20
+ selectedDate: (e) => `Date sélectionnée : ${e}`,
21
+ unavailableDate: (e) => `Indisponible : ${e}`
22
+ }, s = {
7
23
  locale: "fr-FR",
8
24
  noResults: "Aucun résultat",
9
25
  loading: "Chargement...",
26
+ close: "Fermer",
27
+ dismiss: "Masquer",
28
+ previousPage: "Page précédente",
29
+ nextPage: "Page suivante",
30
+ datePicker: o,
10
31
  supplierRating: e
11
- }, s = n(o), c = ({ labels: e, children: n }) => {
32
+ }, c = n(s), l = ({ labels: e, children: n }) => {
12
33
  let r = i(() => ({
13
- ...o,
34
+ ...s,
14
35
  ...e,
15
- supplierRating: t(o.supplierRating, e.supplierRating)
36
+ datePicker: {
37
+ ...s.datePicker,
38
+ ...e.datePicker
39
+ },
40
+ supplierRating: t(s.supplierRating, e.supplierRating)
16
41
  }), [e]);
17
- return /* @__PURE__ */ a(s.Provider, {
42
+ return /* @__PURE__ */ a(c.Provider, {
18
43
  value: r,
19
44
  children: n
20
45
  });
21
46
  };
22
- function l() {
23
- return r(s);
47
+ function u() {
48
+ return r(c);
24
49
  }
25
- export { o as DEFAULT_UI_LABELS, c as UiLabelsProvider, l as useUiLabels };
50
+ export { o as DEFAULT_DATE_PICKER_LABELS, s as DEFAULT_UI_LABELS, l as UiLabelsProvider, u as useUiLabels };
26
51
 
27
52
  //# sourceMappingURL=UiLabelsProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiLabelsProvider.js","names":["DEFAULT_UI_LABELS","DEFAULT_SUPPLIER_RATING_LABELS","UiLabelsContext","createContext","UiLabelsProvider","value","useMemo","labels","mergeSupplierRatingLabels","useUiLabels","useContext"],"sources":["../../../src/components/ui-labels/UiLabelsProvider.tsx"],"sourcesContent":["import { createContext, type FC, type ReactNode, useContext, useMemo } from 'react'\n\nimport {\n DEFAULT_SUPPLIER_RATING_LABELS,\n mergeSupplierRatingLabels,\n type SupplierRatingLabels,\n} from '../supplier-rating-badge/labels'\n\n/**\n * The words and number format the kit renders on its own (empty lists, loading states, the\n * supplier rating). The kit carries no translations: an app wraps its tree once in\n * UiLabelsProvider with its own, in the reader's locale. Without a provider the kit reads French,\n * as it always has.\n */\nexport type UiLabels = {\n /** BCP 47 tag the kit formats numbers with (the supplier rating's note). */\n locale: string\n /** Shown by Select and Combobox when there is nothing to pick. */\n noResults: string\n /** Shown by Combobox while its items load. */\n loading: string\n supplierRating: SupplierRatingLabels\n}\n\nexport type UiLabelsInput = Partial<Omit<UiLabels, 'supplierRating'>> & {\n supplierRating?: Partial<SupplierRatingLabels>\n}\n\nexport const DEFAULT_UI_LABELS: UiLabels = {\n locale: 'fr-FR',\n noResults: 'Aucun résultat',\n loading: 'Chargement...',\n supplierRating: DEFAULT_SUPPLIER_RATING_LABELS,\n}\n\nconst UiLabelsContext = createContext<UiLabels>(DEFAULT_UI_LABELS)\n\nexport const UiLabelsProvider: FC<{ labels: UiLabelsInput; children: ReactNode }> = ({ labels, children }) => {\n const value = useMemo<UiLabels>(\n () => ({\n ...DEFAULT_UI_LABELS,\n ...labels,\n supplierRating: mergeSupplierRatingLabels(DEFAULT_UI_LABELS.supplierRating, labels.supplierRating),\n }),\n [labels],\n )\n return <UiLabelsContext.Provider value={value}>{children}</UiLabelsContext.Provider>\n}\n\n/** The labels of the nearest UiLabelsProvider, or the French defaults. */\nexport function useUiLabels(): UiLabels {\n return useContext(UiLabelsContext)\n}\n"],"mappings":";;;;;AA4BA,IAAaA,IAA8B;CACzC,QAAQ;CACR,WAAW;CACX,SAAS;CACT,gBAAgBC;AAClB,GAEMC,IAAkBC,EAAwBH,CAAiB,GAEpDI,KAAwE,EAAE,WAAQ,kBAAe;CAC5G,IAAMC,IAAQC,SACL;EACL,GAAGN;EACH,GAAGO;EACH,gBAAgBC,EAA0BR,EAAkB,gBAAgBO,EAAO,cAAc;CACnG,IACA,CAACA,CAAM,CACT;CACA,OAAO,kBAACL,EAAgB,UAAjB;EAAiC;EAAQ;CAAmC,CAAA;AACrF;AAGA,SAAgBO,IAAwB;CACtC,OAAOC,EAAWR,CAAe;AACnC"}
1
+ {"version":3,"file":"UiLabelsProvider.js","names":["DEFAULT_DATE_PICKER_LABELS","date","DEFAULT_UI_LABELS","DEFAULT_SUPPLIER_RATING_LABELS","UiLabelsContext","createContext","UiLabelsProvider","value","useMemo","labels","mergeSupplierRatingLabels","useUiLabels","useContext"],"sources":["../../../src/components/ui-labels/UiLabelsProvider.tsx"],"sourcesContent":["import { createContext, type FC, type ReactNode, useContext, useMemo } from 'react'\n\nimport {\n DEFAULT_SUPPLIER_RATING_LABELS,\n mergeSupplierRatingLabels,\n type SupplierRatingLabels,\n} from '../supplier-rating-badge/labels'\n\n/**\n * The words and number format the kit renders on its own (empty lists, loading states, the\n * supplier rating, the accessible names of its icon buttons and of the date picker). The kit carries no translations: an app wraps its tree once in\n * UiLabelsProvider with its own, in the reader's locale. Without a provider the kit reads French,\n * as it always has.\n */\nexport type UiLabels = {\n /** BCP 47 tag the kit formats numbers with (the supplier rating's note). */\n locale: string\n /** Shown by Select and Combobox when there is nothing to pick. */\n noResults: string\n /** Shown by Combobox while its items load. */\n loading: string\n /** Accessible name of the close button of DrawerHeader and DialogHeader. */\n close: string\n /** Accessible name of the dismiss button of Alert. */\n dismiss: string\n /** Accessible names of Pagination's arrows. */\n previousPage: string\n nextPage: string\n datePicker: DatePickerLabels\n supplierRating: SupplierRatingLabels\n}\n\n/**\n * What a screen reader hears on DatePicker. The date in the templated ones is already written in\n * `locale` by the picker.\n */\nexport type DatePickerLabels = {\n openCalendar: string\n closeCalendar: string\n calendar: string\n previousMonth: string\n nextMonth: string\n previousYear: string\n nextYear: string\n previousDecade: string\n nextDecade: string\n selectMonth: string\n selectYear: string\n clear: string\n chooseDate: (date: string) => string\n selectedDate: (date: string) => string\n /** A day that cannot be picked: unavailable, or out of min and max. */\n unavailableDate: (date: string) => string\n}\n\nexport type UiLabelsInput = Partial<Omit<UiLabels, 'supplierRating' | 'datePicker'>> & {\n datePicker?: Partial<DatePickerLabels>\n supplierRating?: Partial<SupplierRatingLabels>\n}\n\nexport const DEFAULT_DATE_PICKER_LABELS: DatePickerLabels = {\n openCalendar: 'Ouvrir le calendrier',\n closeCalendar: 'Fermer le calendrier',\n calendar: 'Calendrier',\n previousMonth: 'Mois précédent',\n nextMonth: 'Mois suivant',\n previousYear: 'Année précédente',\n nextYear: 'Année suivante',\n previousDecade: 'Décennie précédente',\n nextDecade: 'Décennie suivante',\n selectMonth: 'Choisir le mois',\n selectYear: \"Choisir l'année\",\n clear: 'Effacer la date',\n chooseDate: date => `Choisir le ${date}`,\n selectedDate: date => `Date sélectionnée : ${date}`,\n unavailableDate: date => `Indisponible : ${date}`,\n}\n\nexport const DEFAULT_UI_LABELS: UiLabels = {\n locale: 'fr-FR',\n noResults: 'Aucun résultat',\n loading: 'Chargement...',\n close: 'Fermer',\n dismiss: 'Masquer',\n previousPage: 'Page précédente',\n nextPage: 'Page suivante',\n datePicker: DEFAULT_DATE_PICKER_LABELS,\n supplierRating: DEFAULT_SUPPLIER_RATING_LABELS,\n}\n\nconst UiLabelsContext = createContext<UiLabels>(DEFAULT_UI_LABELS)\n\nexport const UiLabelsProvider: FC<{ labels: UiLabelsInput; children: ReactNode }> = ({ labels, children }) => {\n const value = useMemo<UiLabels>(\n () => ({\n ...DEFAULT_UI_LABELS,\n ...labels,\n datePicker: { ...DEFAULT_UI_LABELS.datePicker, ...labels.datePicker },\n supplierRating: mergeSupplierRatingLabels(DEFAULT_UI_LABELS.supplierRating, labels.supplierRating),\n }),\n [labels],\n )\n return <UiLabelsContext.Provider value={value}>{children}</UiLabelsContext.Provider>\n}\n\n/** The labels of the nearest UiLabelsProvider, or the French defaults. */\nexport function useUiLabels(): UiLabels {\n return useContext(UiLabelsContext)\n}\n"],"mappings":";;;;;AA4DA,IAAaA,IAA+C;CAC1D,cAAc;CACd,eAAe;CACf,UAAU;CACV,eAAe;CACf,WAAW;CACX,cAAc;CACd,UAAU;CACV,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,OAAO;CACP,aAAY,MAAQ,cAAcC;CAClC,eAAc,MAAQ,uBAAuBA;CAC7C,kBAAiB,MAAQ,kBAAkBA;AAC7C,GAEaC,IAA8B;CACzC,QAAQ;CACR,WAAW;CACX,SAAS;CACT,OAAO;CACP,SAAS;CACT,cAAc;CACd,UAAU;CACV,YAAYF;CACZ,gBAAgBG;AAClB,GAEMC,IAAkBC,EAAwBH,CAAiB,GAEpDI,KAAwE,EAAE,WAAQ,kBAAe;CAC5G,IAAMC,IAAQC,SACL;EACL,GAAGN;EACH,GAAGO;EACH,YAAY;GAAE,GAAGP,EAAkB;GAAY,GAAGO,EAAO;EAAW;EACpE,gBAAgBC,EAA0BR,EAAkB,gBAAgBO,EAAO,cAAc;CACnG,IACA,CAACA,CAAM,CACT;CACA,OAAO,kBAACL,EAAgB,UAAjB;EAAiC;EAAQ;CAAmC,CAAA;AACrF;AAGA,SAAgBO,IAAwB;CACtC,OAAOC,EAAWR,CAAe;AACnC"}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});/* empty css */const e=require("./components/accordion/Accordion.cjs"),t=require("./components/button/Button.cjs"),n=require("./components/checkbox/Checkbox.cjs"),r=require("./components/icon-button/IconButton.cjs"),i=require("./components/drawer/Drawer.cjs"),a=require("./components/form/FormControl.cjs"),o=require("./components/tooltip/Tooltip.cjs"),s=require("./components/form/FormLabel.cjs"),ee=require("./components/form/FormHelperText.cjs"),c=require("./components/heading/Heading.cjs"),l=require("./components/switch/Switch.cjs"),u=require("./components/text/Text.cjs"),d=require("./components/textarea/Textarea.cjs"),f=require("./components/tabs/Tabs.cjs"),p=require("./components/steps/Steps.cjs"),m=require("./components/supplier-rating-badge/labels.cjs"),h=require("./components/ui-labels/UiLabelsProvider.cjs"),te=require("./components/select/Select.cjs"),ne=require("./components/select-language/SelectLanguage.cjs"),re=require("./components/input/Input.cjs"),g=require("./components/input/HighlightedInput.cjs"),ie=require("./components/input/InputAddon.cjs"),ae=require("./components/input/InputGroup.cjs"),_=require("./components/input/PhoneNumberInput.cjs"),v=require("./components/box/Box.cjs"),y=require("./components/date-picker/DatePicker.cjs"),b=require("./components/tag/Tag.cjs"),x=require("./components/radio-button-group/RadioButtonGroup.cjs"),S=require("./components/radio-group/RadioGroup.cjs"),C=require("./components/chip/Chip.cjs"),w=require("./components/action-card/ActionCard.cjs"),T=require("./components/alert/Alert.cjs"),E=require("./components/table/Table.cjs"),D=require("./components/breadcrumb/Breadcrumb.cjs"),O=require("./components/popover/Popover.cjs"),k=require("./components/pagination/Pagination.cjs"),A=require("./components/illustration/Illustration.cjs"),j=require("./components/button-filter/ButtonFilter.cjs"),M=require("./components/status-tag-select/StatusTagSelect.cjs"),N=require("./components/switch-card/namespace.cjs"),P=require("./components/radio-card-group/namespace.cjs"),F=require("./components/checkbox-card/namespace.cjs"),I=require("./components/combobox/Combobox.cjs"),L=require("./components/icon/Icon.cjs"),R=require("./components/collapsible/styled.cjs"),z=require("./components/dialog/styled.cjs"),oe=require("./components/avatar/styled.cjs"),B=require("./components/menu/Menu.cjs"),V=require("./components/flag/styled.cjs"),H=require("./components/origin-select/OriginSelect.cjs"),U=require("./components/chat/ChatMessage.cjs"),W=require("./components/chat/ChatDocumentMessage.cjs"),G=require("./components/chat/ChatProfileAvatar.cjs"),K=require("./components/chat/Chat.cjs"),q=require("./components/chat/ChatScoreBreakdown.cjs"),se=require("./components/chat/ChatTextInput.cjs"),J=require("./components/supplier-rating-badge/SupplierRatingBreakdown.cjs"),ce=require("./components/supplier-rating-badge/SupplierRatingBadge.cjs"),le=require("./components/app/price-tag/PriceTag.cjs"),ue=require("./components/app/product-card-catalog/styled.cjs"),de=require("./components/app/navigation/AppNavigation.cjs"),Y=require("./components/app/navigation/language-select/AppNavigationLanguageSelect.cjs"),fe=require("./components/app/mobile-navigation/MobileNavigation.cjs"),X=require("./components/app/mobile-card/MobileCardShell.cjs"),pe=require("./components/app/mobile-card/MobileCardHeader.cjs"),me=require("./components/app/mobile-card/MobileCardNotificationBadge.cjs"),he=require("./components/app/mobile-card/MobileCardEntityRow.cjs"),Z=require("./components/app/mobile-card/MobileCardSkeleton.cjs"),ge=require("./preset.cjs");let Q=require("@ark-ui/react"),$=require("react-phone-number-input");exports.Accordion=e.Accordion,exports.AccordionItem=e.AccordionItem,exports.AccordionItemContent=e.AccordionItemContent,exports.AccordionItemIndicator=e.AccordionItemIndicator,exports.AccordionItemTrigger=e.AccordionItemTrigger,exports.ActionCard=w.ActionCard,exports.ActionCardDescription=w.ActionCardDescription,exports.ActionCardTitle=w.ActionCardTitle,exports.Alert=T.Alert,Object.defineProperty(exports,"AppNavigation",{enumerable:!0,get:function(){return de.AppNavigation_exports}}),exports.AppNavigationLanguageSelect=Y.AppNavigationLanguageSelect,Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return oe.styled_exports}}),exports.Box=v.Box,exports.Breadcrumb=D.Breadcrumb,exports.BreadcrumbItem=D.BreadcrumbItem,exports.BreadcrumbLink=D.BreadcrumbLink,exports.Button=t.Button,exports.ButtonFilter=j.ButtonFilter,Object.defineProperty(exports,"Chat",{enumerable:!0,get:function(){return K.Chat_exports}}),exports.ChatDocumentMessage=W.ChatDocumentMessage,exports.ChatMessage=U.ChatMessage,exports.ChatProfileAvatar=G.ChatProfileAvatar,exports.ChatScoreBreakdown=q.ChatScoreBreakdown,exports.ChatTextInput=se.ChatTextInput,exports.Checkbox=n.Checkbox,Object.defineProperty(exports,"CheckboxCard",{enumerable:!0,get:function(){return F.namespace_exports}}),exports.CheckboxGroup=n.CheckboxGroup,exports.Chip=C.Chip,exports.ChipAvatar=C.ChipAvatar,exports.ChipClearTrigger=C.ChipClearTrigger,exports.ChipLabel=C.ChipLabel,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return R.styled_exports}}),exports.Combobox=I.Combobox,exports.DEFAULT_APP_NAVIGATION_LANGUAGES=Y.DEFAULT_APP_NAVIGATION_LANGUAGES,exports.DEFAULT_SUPPLIER_RATING_LABELS=m.DEFAULT_SUPPLIER_RATING_LABELS,exports.DEFAULT_UI_LABELS=h.DEFAULT_UI_LABELS,exports.DatePicker=y.DatePicker,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return z.styled_exports}}),exports.Drawer=i.Drawer,exports.DrawerBody=i.DrawerBody,exports.DrawerCloseTrigger=i.DrawerCloseTrigger,exports.DrawerContent=i.DrawerContent,exports.DrawerContext=i.DrawerContext,exports.DrawerFooter=i.DrawerFooter,exports.DrawerHeader=i.DrawerHeader,exports.DrawerTitle=i.DrawerTitle,exports.DrawerTrigger=i.DrawerTrigger,exports.Flag=V.Flag,exports.FlagCountryCodes=V.FlagCountryCodes,exports.FormControl=a.FormControl,exports.FormHelperText=ee.FormHelperText,exports.FormLabel=s.FormLabel,exports.Heading=c.Heading,exports.Highlight=g.Highlight,exports.HighlightedInput=g.HighlightedInput,exports.Icon=L.Icon,exports.IconButton=r.IconButton,exports.Illustration=A.Illustration,exports.Input=re.Input,exports.InputAddon=ie.InputAddon,exports.InputGroup=ae.InputGroup,exports.InputSlot=g.InputSlot,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return B.Menu_exports}}),exports.MobileCardEntityRow=he.MobileCardEntityRow,exports.MobileCardHeader=pe.MobileCardHeader,exports.MobileCardNotificationBadge=me.MobileCardNotificationBadge,exports.MobileCardShell=X.MobileCardShell,exports.MobileCardSkeleton=Z.MobileCardSkeleton,exports.MobileCardSkeletonList=Z.MobileCardSkeletonList,Object.defineProperty(exports,"MobileNavigation",{enumerable:!0,get:function(){return fe.MobileNavigation_exports}}),exports.OriginSelect=H.OriginSelect,exports.Pagination=k.Pagination,exports.PhoneNumberInput=_.PhoneNumberInput,exports.Popover=O.Popover,exports.PopoverAnchor=O.PopoverAnchor,exports.PopoverCloseTrigger=O.PopoverCloseTrigger,exports.PopoverContent=O.PopoverContent,exports.PopoverContext=O.PopoverContext,exports.PopoverTrigger=O.PopoverTrigger,exports.PriceTag=le.PriceTag,Object.defineProperty(exports,"ProductCardCatalog",{enumerable:!0,get:function(){return ue.styled_exports}}),exports.RadioButtonGroup=x.RadioButtonGroup,exports.RadioButtonGroupItem=x.RadioButtonGroupItem,exports.RadioButtonGroupLabel=x.RadioButtonGroupLabel,Object.defineProperty(exports,"RadioCardGroup",{enumerable:!0,get:function(){return P.namespace_exports}}),exports.RadioGroup=S.RadioGroup,exports.RadioGroupItem=S.RadioGroupItem,exports.RadioGroupLabel=S.RadioGroupLabel,exports.Renderer=g.Renderer,exports.Root=g.Root,exports.SUPPLIER_RATING_MAX=J.SUPPLIER_RATING_MAX,exports.Select=te.Select,exports.SelectLanguage=ne.SelectLanguage,exports.SkeletonBlock=Z.SkeletonBlock,exports.StatusTagSelect=M.StatusTagSelect,exports.Steps=p.Steps,exports.StepsContent=p.StepsContent,exports.StepsIndicator=p.StepsIndicator,exports.StepsItem=p.StepsItem,exports.StepsList=p.StepsList,exports.StepsSeparator=p.StepsSeparator,exports.StepsTrigger=p.StepsTrigger,exports.SupplierRatingBadge=ce.SupplierRatingBadge,exports.SupplierRatingBreakdown=J.SupplierRatingBreakdown,exports.Switch=l.Switch,Object.defineProperty(exports,"SwitchCard",{enumerable:!0,get:function(){return N.namespace_exports}}),exports.Table=E.Table,exports.TableContainer=E.TableContainer,exports.TableEmptyRow=E.TableEmptyRow,exports.TableGroupTitle=E.TableGroupTitle,exports.Tabs=f.Tabs,exports.TabsChip=f.TabsChip,exports.TabsContent=f.TabsContent,exports.TabsList=f.TabsList,exports.TabsTrigger=f.TabsTrigger,exports.Tag=b.Tag,exports.Tbody=E.Tbody,exports.Td=E.Td,exports.Text=u.Text,exports.Textarea=d.Textarea,exports.Th=E.Th,exports.Thead=E.Thead,exports.Tooltip=o.Tooltip,exports.Tr=E.Tr,exports.UiLabelsProvider=h.UiLabelsProvider,Object.defineProperty(exports,"createListCollection",{enumerable:!0,get:function(){return Q.createListCollection}}),Object.defineProperty(exports,"createToaster",{enumerable:!0,get:function(){return Q.createToaster}}),exports.formatOverall=J.formatOverall,Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return $.formatPhoneNumber}}),Object.defineProperty(exports,"formatPhoneNumberIntl",{enumerable:!0,get:function(){return $.formatPhoneNumberIntl}}),exports.formatResponseDelay=J.formatResponseDelay,Object.defineProperty(exports,"getCountries",{enumerable:!0,get:function(){return $.getCountries}}),Object.defineProperty(exports,"getCountryCallingCode",{enumerable:!0,get:function(){return $.getCountryCallingCode}}),exports.getHeadlineColor=J.getHeadlineColor,Object.defineProperty(exports,"isPossiblePhoneNumber",{enumerable:!0,get:function(){return $.isPossiblePhoneNumber}}),Object.defineProperty(exports,"isSupportedCountry",{enumerable:!0,get:function(){return $.isSupportedCountry}}),Object.defineProperty(exports,"isValidPhoneNumber",{enumerable:!0,get:function(){return $.isValidPhoneNumber}}),exports.mergeSupplierRatingLabels=m.mergeSupplierRatingLabels,Object.defineProperty(exports,"parseColor",{enumerable:!0,get:function(){return Q.parseColor}}),Object.defineProperty(exports,"parseDate",{enumerable:!0,get:function(){return Q.parseDate}}),Object.defineProperty(exports,"parsePhoneNumber",{enumerable:!0,get:function(){return $.parsePhoneNumber}}),exports.preset=ge.preset,Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return Q.useAccordion}}),exports.useUiLabels=h.useUiLabels;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});/* empty css */const e=require("./components/accordion/Accordion.cjs"),t=require("./components/button/Button.cjs"),n=require("./components/checkbox/Checkbox.cjs"),r=require("./components/supplier-rating-badge/labels.cjs"),i=require("./components/ui-labels/UiLabelsProvider.cjs"),a=require("./components/icon-button/IconButton.cjs"),o=require("./components/drawer/Drawer.cjs"),s=require("./components/form/FormControl.cjs"),ee=require("./components/tooltip/Tooltip.cjs"),c=require("./components/form/FormLabel.cjs"),l=require("./components/form/FormHelperText.cjs"),u=require("./components/heading/Heading.cjs"),d=require("./components/switch/Switch.cjs"),f=require("./components/text/Text.cjs"),p=require("./components/textarea/Textarea.cjs"),m=require("./components/tabs/Tabs.cjs"),h=require("./components/steps/Steps.cjs"),te=require("./components/select/Select.cjs"),ne=require("./components/select-language/SelectLanguage.cjs"),re=require("./components/input/Input.cjs"),g=require("./components/input/HighlightedInput.cjs"),ie=require("./components/input/InputAddon.cjs"),ae=require("./components/input/InputGroup.cjs"),_=require("./components/input/PhoneNumberInput.cjs"),v=require("./components/box/Box.cjs"),y=require("./components/date-picker/DatePicker.cjs"),b=require("./components/tag/Tag.cjs"),x=require("./components/radio-button-group/RadioButtonGroup.cjs"),S=require("./components/radio-group/RadioGroup.cjs"),C=require("./components/chip/Chip.cjs"),w=require("./components/action-card/ActionCard.cjs"),T=require("./components/icon/Icon.cjs"),E=require("./components/alert/Alert.cjs"),D=require("./components/table/Table.cjs"),O=require("./components/breadcrumb/Breadcrumb.cjs"),k=require("./components/popover/Popover.cjs"),A=require("./components/pagination/Pagination.cjs"),j=require("./components/illustration/Illustration.cjs"),M=require("./components/button-filter/ButtonFilter.cjs"),N=require("./components/status-tag-select/StatusTagSelect.cjs"),P=require("./components/switch-card/namespace.cjs"),F=require("./components/radio-card-group/namespace.cjs"),I=require("./components/checkbox-card/namespace.cjs"),L=require("./components/combobox/Combobox.cjs"),R=require("./components/collapsible/styled.cjs"),z=require("./components/dialog/styled.cjs"),oe=require("./components/avatar/styled.cjs"),B=require("./components/menu/Menu.cjs"),V=require("./components/flag/styled.cjs"),H=require("./components/origin-select/OriginSelect.cjs"),U=require("./components/chat/ChatMessage.cjs"),W=require("./components/chat/ChatDocumentMessage.cjs"),G=require("./components/chat/ChatProfileAvatar.cjs"),K=require("./components/chat/Chat.cjs"),q=require("./components/chat/ChatScoreBreakdown.cjs"),se=require("./components/chat/ChatTextInput.cjs"),J=require("./components/supplier-rating-badge/SupplierRatingBreakdown.cjs"),ce=require("./components/supplier-rating-badge/SupplierRatingBadge.cjs"),le=require("./components/app/price-tag/PriceTag.cjs"),ue=require("./components/app/product-card-catalog/styled.cjs"),de=require("./components/app/navigation/AppNavigation.cjs"),Y=require("./components/app/navigation/language-select/AppNavigationLanguageSelect.cjs"),fe=require("./components/app/mobile-navigation/MobileNavigation.cjs"),X=require("./components/app/mobile-card/MobileCardShell.cjs"),pe=require("./components/app/mobile-card/MobileCardHeader.cjs"),me=require("./components/app/mobile-card/MobileCardNotificationBadge.cjs"),he=require("./components/app/mobile-card/MobileCardEntityRow.cjs"),Z=require("./components/app/mobile-card/MobileCardSkeleton.cjs"),ge=require("./preset.cjs");let Q=require("@ark-ui/react"),$=require("react-phone-number-input");exports.Accordion=e.Accordion,exports.AccordionItem=e.AccordionItem,exports.AccordionItemContent=e.AccordionItemContent,exports.AccordionItemIndicator=e.AccordionItemIndicator,exports.AccordionItemTrigger=e.AccordionItemTrigger,exports.ActionCard=w.ActionCard,exports.ActionCardDescription=w.ActionCardDescription,exports.ActionCardTitle=w.ActionCardTitle,exports.Alert=E.Alert,Object.defineProperty(exports,"AppNavigation",{enumerable:!0,get:function(){return de.AppNavigation_exports}}),exports.AppNavigationLanguageSelect=Y.AppNavigationLanguageSelect,Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return oe.styled_exports}}),exports.Box=v.Box,exports.Breadcrumb=O.Breadcrumb,exports.BreadcrumbItem=O.BreadcrumbItem,exports.BreadcrumbLink=O.BreadcrumbLink,exports.Button=t.Button,exports.ButtonFilter=M.ButtonFilter,Object.defineProperty(exports,"Chat",{enumerable:!0,get:function(){return K.Chat_exports}}),exports.ChatDocumentMessage=W.ChatDocumentMessage,exports.ChatMessage=U.ChatMessage,exports.ChatProfileAvatar=G.ChatProfileAvatar,exports.ChatScoreBreakdown=q.ChatScoreBreakdown,exports.ChatTextInput=se.ChatTextInput,exports.Checkbox=n.Checkbox,Object.defineProperty(exports,"CheckboxCard",{enumerable:!0,get:function(){return I.namespace_exports}}),exports.CheckboxGroup=n.CheckboxGroup,exports.Chip=C.Chip,exports.ChipAvatar=C.ChipAvatar,exports.ChipClearTrigger=C.ChipClearTrigger,exports.ChipLabel=C.ChipLabel,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return R.styled_exports}}),exports.Combobox=L.Combobox,exports.DEFAULT_APP_NAVIGATION_LANGUAGES=Y.DEFAULT_APP_NAVIGATION_LANGUAGES,exports.DEFAULT_DATE_PICKER_LABELS=i.DEFAULT_DATE_PICKER_LABELS,exports.DEFAULT_SUPPLIER_RATING_LABELS=r.DEFAULT_SUPPLIER_RATING_LABELS,exports.DEFAULT_UI_LABELS=i.DEFAULT_UI_LABELS,exports.DatePicker=y.DatePicker,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return z.styled_exports}}),exports.Drawer=o.Drawer,exports.DrawerBody=o.DrawerBody,exports.DrawerCloseTrigger=o.DrawerCloseTrigger,exports.DrawerContent=o.DrawerContent,exports.DrawerContext=o.DrawerContext,exports.DrawerFooter=o.DrawerFooter,exports.DrawerHeader=o.DrawerHeader,exports.DrawerTitle=o.DrawerTitle,exports.DrawerTrigger=o.DrawerTrigger,exports.Flag=V.Flag,exports.FlagCountryCodes=V.FlagCountryCodes,exports.FormControl=s.FormControl,exports.FormHelperText=l.FormHelperText,exports.FormLabel=c.FormLabel,exports.Heading=u.Heading,exports.Highlight=g.Highlight,exports.HighlightedInput=g.HighlightedInput,exports.Icon=T.Icon,exports.IconButton=a.IconButton,exports.Illustration=j.Illustration,exports.Input=re.Input,exports.InputAddon=ie.InputAddon,exports.InputGroup=ae.InputGroup,exports.InputSlot=g.InputSlot,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return B.Menu_exports}}),exports.MobileCardEntityRow=he.MobileCardEntityRow,exports.MobileCardHeader=pe.MobileCardHeader,exports.MobileCardNotificationBadge=me.MobileCardNotificationBadge,exports.MobileCardShell=X.MobileCardShell,exports.MobileCardSkeleton=Z.MobileCardSkeleton,exports.MobileCardSkeletonList=Z.MobileCardSkeletonList,Object.defineProperty(exports,"MobileNavigation",{enumerable:!0,get:function(){return fe.MobileNavigation_exports}}),exports.OriginSelect=H.OriginSelect,exports.Pagination=A.Pagination,exports.PhoneNumberInput=_.PhoneNumberInput,exports.Popover=k.Popover,exports.PopoverAnchor=k.PopoverAnchor,exports.PopoverCloseTrigger=k.PopoverCloseTrigger,exports.PopoverContent=k.PopoverContent,exports.PopoverContext=k.PopoverContext,exports.PopoverTrigger=k.PopoverTrigger,exports.PriceTag=le.PriceTag,Object.defineProperty(exports,"ProductCardCatalog",{enumerable:!0,get:function(){return ue.styled_exports}}),exports.RadioButtonGroup=x.RadioButtonGroup,exports.RadioButtonGroupItem=x.RadioButtonGroupItem,exports.RadioButtonGroupLabel=x.RadioButtonGroupLabel,Object.defineProperty(exports,"RadioCardGroup",{enumerable:!0,get:function(){return F.namespace_exports}}),exports.RadioGroup=S.RadioGroup,exports.RadioGroupItem=S.RadioGroupItem,exports.RadioGroupLabel=S.RadioGroupLabel,exports.Renderer=g.Renderer,exports.Root=g.Root,exports.SUPPLIER_RATING_MAX=J.SUPPLIER_RATING_MAX,exports.Select=te.Select,exports.SelectLanguage=ne.SelectLanguage,exports.SkeletonBlock=Z.SkeletonBlock,exports.StatusTagSelect=N.StatusTagSelect,exports.Steps=h.Steps,exports.StepsContent=h.StepsContent,exports.StepsIndicator=h.StepsIndicator,exports.StepsItem=h.StepsItem,exports.StepsList=h.StepsList,exports.StepsSeparator=h.StepsSeparator,exports.StepsTrigger=h.StepsTrigger,exports.SupplierRatingBadge=ce.SupplierRatingBadge,exports.SupplierRatingBreakdown=J.SupplierRatingBreakdown,exports.Switch=d.Switch,Object.defineProperty(exports,"SwitchCard",{enumerable:!0,get:function(){return P.namespace_exports}}),exports.Table=D.Table,exports.TableContainer=D.TableContainer,exports.TableEmptyRow=D.TableEmptyRow,exports.TableGroupTitle=D.TableGroupTitle,exports.Tabs=m.Tabs,exports.TabsChip=m.TabsChip,exports.TabsContent=m.TabsContent,exports.TabsList=m.TabsList,exports.TabsTrigger=m.TabsTrigger,exports.Tag=b.Tag,exports.Tbody=D.Tbody,exports.Td=D.Td,exports.Text=f.Text,exports.Textarea=p.Textarea,exports.Th=D.Th,exports.Thead=D.Thead,exports.Tooltip=ee.Tooltip,exports.Tr=D.Tr,exports.UiLabelsProvider=i.UiLabelsProvider,Object.defineProperty(exports,"createListCollection",{enumerable:!0,get:function(){return Q.createListCollection}}),Object.defineProperty(exports,"createToaster",{enumerable:!0,get:function(){return Q.createToaster}}),exports.formatOverall=J.formatOverall,Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return $.formatPhoneNumber}}),Object.defineProperty(exports,"formatPhoneNumberIntl",{enumerable:!0,get:function(){return $.formatPhoneNumberIntl}}),exports.formatResponseDelay=J.formatResponseDelay,Object.defineProperty(exports,"getCountries",{enumerable:!0,get:function(){return $.getCountries}}),Object.defineProperty(exports,"getCountryCallingCode",{enumerable:!0,get:function(){return $.getCountryCallingCode}}),exports.getHeadlineColor=J.getHeadlineColor,Object.defineProperty(exports,"isPossiblePhoneNumber",{enumerable:!0,get:function(){return $.isPossiblePhoneNumber}}),Object.defineProperty(exports,"isSupportedCountry",{enumerable:!0,get:function(){return $.isSupportedCountry}}),Object.defineProperty(exports,"isValidPhoneNumber",{enumerable:!0,get:function(){return $.isValidPhoneNumber}}),exports.mergeSupplierRatingLabels=r.mergeSupplierRatingLabels,Object.defineProperty(exports,"parseColor",{enumerable:!0,get:function(){return Q.parseColor}}),Object.defineProperty(exports,"parseDate",{enumerable:!0,get:function(){return Q.parseDate}}),Object.defineProperty(exports,"parsePhoneNumber",{enumerable:!0,get:function(){return $.parsePhoneNumber}}),exports.preset=ge.preset,Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return Q.useAccordion}}),exports.useUiLabels=i.useUiLabels;
package/dist/index.js CHANGED
@@ -2,72 +2,72 @@
2
2
  import { Accordion as e, AccordionItem as t, AccordionItemContent as n, AccordionItemIndicator as r, AccordionItemTrigger as i, useAccordion as a } from "./components/accordion/Accordion.js";
3
3
  import { Button as o } from "./components/button/Button.js";
4
4
  import { Checkbox as s, CheckboxGroup as c } from "./components/checkbox/Checkbox.js";
5
- import { IconButton as l } from "./components/icon-button/IconButton.js";
6
- import { Drawer as u, DrawerBody as d, DrawerCloseTrigger as f, DrawerContent as p, DrawerContext as m, DrawerFooter as h, DrawerHeader as g, DrawerTitle as _, DrawerTrigger as v } from "./components/drawer/Drawer.js";
7
- import { FormControl as y } from "./components/form/FormControl.js";
8
- import { Tooltip as b } from "./components/tooltip/Tooltip.js";
9
- import { FormLabel as x } from "./components/form/FormLabel.js";
10
- import { FormHelperText as S } from "./components/form/FormHelperText.js";
11
- import { Heading as C } from "./components/heading/Heading.js";
12
- import { Switch as w } from "./components/switch/Switch.js";
13
- import { Text as T } from "./components/text/Text.js";
14
- import { Textarea as E } from "./components/textarea/Textarea.js";
15
- import { Tabs as D, TabsChip as O, TabsContent as k, TabsList as A, TabsTrigger as j } from "./components/tabs/Tabs.js";
16
- import { Steps as M, StepsContent as N, StepsIndicator as P, StepsItem as F, StepsList as I, StepsSeparator as L, StepsTrigger as R } from "./components/steps/Steps.js";
17
- import { DEFAULT_SUPPLIER_RATING_LABELS as z, mergeSupplierRatingLabels as B } from "./components/supplier-rating-badge/labels.js";
18
- import { DEFAULT_UI_LABELS as V, UiLabelsProvider as H, useUiLabels as U } from "./components/ui-labels/UiLabelsProvider.js";
19
- import { Select as W } from "./components/select/Select.js";
20
- import { SelectLanguage as G } from "./components/select-language/SelectLanguage.js";
21
- import { Input as K } from "./components/input/Input.js";
22
- import { Highlight as q, HighlightedInput as J, InputSlot as Y, Renderer as X, Root as Z } from "./components/input/HighlightedInput.js";
23
- import { InputAddon as Q } from "./components/input/InputAddon.js";
24
- import { InputGroup as $ } from "./components/input/InputGroup.js";
25
- import { PhoneNumberInput as ee } from "./components/input/PhoneNumberInput.js";
26
- import { Box as te } from "./components/box/Box.js";
27
- import { DatePicker as ne } from "./components/date-picker/DatePicker.js";
28
- import { Tag as re } from "./components/tag/Tag.js";
29
- import { RadioButtonGroup as ie, RadioButtonGroupItem as ae, RadioButtonGroupLabel as oe } from "./components/radio-button-group/RadioButtonGroup.js";
30
- import { RadioGroup as se, RadioGroupItem as ce, RadioGroupLabel as le } from "./components/radio-group/RadioGroup.js";
31
- import { Chip as ue, ChipAvatar as de, ChipClearTrigger as fe, ChipLabel as pe } from "./components/chip/Chip.js";
32
- import { ActionCard as me, ActionCardDescription as he, ActionCardTitle as ge } from "./components/action-card/ActionCard.js";
33
- import { Alert as _e } from "./components/alert/Alert.js";
34
- import { Table as ve, TableContainer as ye, TableEmptyRow as be, TableGroupTitle as xe, Tbody as Se, Td as Ce, Th as we, Thead as Te, Tr as Ee } from "./components/table/Table.js";
35
- import { Breadcrumb as De, BreadcrumbItem as Oe, BreadcrumbLink as ke } from "./components/breadcrumb/Breadcrumb.js";
36
- import { Popover as Ae, PopoverAnchor as je, PopoverCloseTrigger as Me, PopoverContent as Ne, PopoverContext as Pe, PopoverTrigger as Fe } from "./components/popover/Popover.js";
37
- import { Pagination as Ie } from "./components/pagination/Pagination.js";
38
- import { Illustration as Le } from "./components/illustration/Illustration.js";
39
- import { ButtonFilter as Re } from "./components/button-filter/ButtonFilter.js";
40
- import { StatusTagSelect as ze } from "./components/status-tag-select/StatusTagSelect.js";
41
- import { namespace_exports as Be } from "./components/switch-card/namespace.js";
42
- import { namespace_exports as Ve } from "./components/radio-card-group/namespace.js";
43
- import { namespace_exports as He } from "./components/checkbox-card/namespace.js";
44
- import { Combobox as Ue } from "./components/combobox/Combobox.js";
45
- import { Icon as We } from "./components/icon/Icon.js";
46
- import { styled_exports as Ge } from "./components/collapsible/styled.js";
47
- import { styled_exports as Ke } from "./components/dialog/styled.js";
48
- import { styled_exports as qe } from "./components/avatar/styled.js";
49
- import { Menu_exports as Je } from "./components/menu/Menu.js";
50
- import { Flag as Ye, FlagCountryCodes as Xe } from "./components/flag/styled.js";
51
- import { OriginSelect as Ze } from "./components/origin-select/OriginSelect.js";
52
- import { ChatMessage as Qe } from "./components/chat/ChatMessage.js";
53
- import { ChatDocumentMessage as $e } from "./components/chat/ChatDocumentMessage.js";
54
- import { ChatProfileAvatar as et } from "./components/chat/ChatProfileAvatar.js";
55
- import { Chat_exports as tt } from "./components/chat/Chat.js";
56
- import { ChatScoreBreakdown as nt } from "./components/chat/ChatScoreBreakdown.js";
57
- import { ChatTextInput as rt } from "./components/chat/ChatTextInput.js";
58
- import { SUPPLIER_RATING_MAX as it, SupplierRatingBreakdown as at, formatOverall as ot, formatResponseDelay as st, getHeadlineColor as ct } from "./components/supplier-rating-badge/SupplierRatingBreakdown.js";
59
- import { SupplierRatingBadge as lt } from "./components/supplier-rating-badge/SupplierRatingBadge.js";
60
- import { PriceTag as ut } from "./components/app/price-tag/PriceTag.js";
61
- import { styled_exports as dt } from "./components/app/product-card-catalog/styled.js";
62
- import { AppNavigation_exports as ft } from "./components/app/navigation/AppNavigation.js";
63
- import { AppNavigationLanguageSelect as pt, DEFAULT_APP_NAVIGATION_LANGUAGES as mt } from "./components/app/navigation/language-select/AppNavigationLanguageSelect.js";
64
- import { MobileNavigation_exports as ht } from "./components/app/mobile-navigation/MobileNavigation.js";
65
- import { MobileCardShell as gt } from "./components/app/mobile-card/MobileCardShell.js";
66
- import { MobileCardHeader as _t } from "./components/app/mobile-card/MobileCardHeader.js";
67
- import { MobileCardNotificationBadge as vt } from "./components/app/mobile-card/MobileCardNotificationBadge.js";
68
- import { MobileCardEntityRow as yt } from "./components/app/mobile-card/MobileCardEntityRow.js";
69
- import { MobileCardSkeleton as bt, MobileCardSkeletonList as xt, SkeletonBlock as St } from "./components/app/mobile-card/MobileCardSkeleton.js";
70
- import { preset as Ct } from "./preset.js";
71
- import { createListCollection as wt, createToaster as Tt, parseColor as Et, parseDate as Dt } from "@ark-ui/react";
72
- import { formatPhoneNumber as Ot, formatPhoneNumberIntl as kt, getCountries as At, getCountryCallingCode as jt, isPossiblePhoneNumber as Mt, isSupportedCountry as Nt, isValidPhoneNumber as Pt, parsePhoneNumber as Ft } from "react-phone-number-input";
73
- export { e as Accordion, t as AccordionItem, n as AccordionItemContent, r as AccordionItemIndicator, i as AccordionItemTrigger, me as ActionCard, he as ActionCardDescription, ge as ActionCardTitle, _e as Alert, ft as AppNavigation, pt as AppNavigationLanguageSelect, qe as Avatar, te as Box, De as Breadcrumb, Oe as BreadcrumbItem, ke as BreadcrumbLink, o as Button, Re as ButtonFilter, tt as Chat, $e as ChatDocumentMessage, Qe as ChatMessage, et as ChatProfileAvatar, nt as ChatScoreBreakdown, rt as ChatTextInput, s as Checkbox, He as CheckboxCard, c as CheckboxGroup, ue as Chip, de as ChipAvatar, fe as ChipClearTrigger, pe as ChipLabel, Ge as Collapsible, Ue as Combobox, mt as DEFAULT_APP_NAVIGATION_LANGUAGES, z as DEFAULT_SUPPLIER_RATING_LABELS, V as DEFAULT_UI_LABELS, ne as DatePicker, Ke as Dialog, u as Drawer, d as DrawerBody, f as DrawerCloseTrigger, p as DrawerContent, m as DrawerContext, h as DrawerFooter, g as DrawerHeader, _ as DrawerTitle, v as DrawerTrigger, Ye as Flag, Xe as FlagCountryCodes, y as FormControl, S as FormHelperText, x as FormLabel, C as Heading, q as Highlight, J as HighlightedInput, We as Icon, l as IconButton, Le as Illustration, K as Input, Q as InputAddon, $ as InputGroup, Y as InputSlot, Je as Menu, yt as MobileCardEntityRow, _t as MobileCardHeader, vt as MobileCardNotificationBadge, gt as MobileCardShell, bt as MobileCardSkeleton, xt as MobileCardSkeletonList, ht as MobileNavigation, Ze as OriginSelect, Ie as Pagination, ee as PhoneNumberInput, Ae as Popover, je as PopoverAnchor, Me as PopoverCloseTrigger, Ne as PopoverContent, Pe as PopoverContext, Fe as PopoverTrigger, ut as PriceTag, dt as ProductCardCatalog, ie as RadioButtonGroup, ae as RadioButtonGroupItem, oe as RadioButtonGroupLabel, Ve as RadioCardGroup, se as RadioGroup, ce as RadioGroupItem, le as RadioGroupLabel, X as Renderer, Z as Root, it as SUPPLIER_RATING_MAX, W as Select, G as SelectLanguage, St as SkeletonBlock, ze as StatusTagSelect, M as Steps, N as StepsContent, P as StepsIndicator, F as StepsItem, I as StepsList, L as StepsSeparator, R as StepsTrigger, lt as SupplierRatingBadge, at as SupplierRatingBreakdown, w as Switch, Be as SwitchCard, ve as Table, ye as TableContainer, be as TableEmptyRow, xe as TableGroupTitle, D as Tabs, O as TabsChip, k as TabsContent, A as TabsList, j as TabsTrigger, re as Tag, Se as Tbody, Ce as Td, T as Text, E as Textarea, we as Th, Te as Thead, b as Tooltip, Ee as Tr, H as UiLabelsProvider, wt as createListCollection, Tt as createToaster, ot as formatOverall, Ot as formatPhoneNumber, kt as formatPhoneNumberIntl, st as formatResponseDelay, At as getCountries, jt as getCountryCallingCode, ct as getHeadlineColor, Mt as isPossiblePhoneNumber, Nt as isSupportedCountry, Pt as isValidPhoneNumber, B as mergeSupplierRatingLabels, Et as parseColor, Dt as parseDate, Ft as parsePhoneNumber, Ct as preset, a as useAccordion, U as useUiLabels };
5
+ import { DEFAULT_SUPPLIER_RATING_LABELS as l, mergeSupplierRatingLabels as u } from "./components/supplier-rating-badge/labels.js";
6
+ import { DEFAULT_DATE_PICKER_LABELS as d, DEFAULT_UI_LABELS as f, UiLabelsProvider as p, useUiLabels as m } from "./components/ui-labels/UiLabelsProvider.js";
7
+ import { IconButton as h } from "./components/icon-button/IconButton.js";
8
+ import { Drawer as g, DrawerBody as _, DrawerCloseTrigger as v, DrawerContent as y, DrawerContext as b, DrawerFooter as x, DrawerHeader as S, DrawerTitle as C, DrawerTrigger as w } from "./components/drawer/Drawer.js";
9
+ import { FormControl as T } from "./components/form/FormControl.js";
10
+ import { Tooltip as E } from "./components/tooltip/Tooltip.js";
11
+ import { FormLabel as D } from "./components/form/FormLabel.js";
12
+ import { FormHelperText as O } from "./components/form/FormHelperText.js";
13
+ import { Heading as k } from "./components/heading/Heading.js";
14
+ import { Switch as A } from "./components/switch/Switch.js";
15
+ import { Text as j } from "./components/text/Text.js";
16
+ import { Textarea as M } from "./components/textarea/Textarea.js";
17
+ import { Tabs as N, TabsChip as P, TabsContent as F, TabsList as I, TabsTrigger as L } from "./components/tabs/Tabs.js";
18
+ import { Steps as R, StepsContent as z, StepsIndicator as B, StepsItem as V, StepsList as H, StepsSeparator as U, StepsTrigger as W } from "./components/steps/Steps.js";
19
+ import { Select as G } from "./components/select/Select.js";
20
+ import { SelectLanguage as K } from "./components/select-language/SelectLanguage.js";
21
+ import { Input as q } from "./components/input/Input.js";
22
+ import { Highlight as J, HighlightedInput as Y, InputSlot as X, Renderer as Z, Root as Q } from "./components/input/HighlightedInput.js";
23
+ import { InputAddon as $ } from "./components/input/InputAddon.js";
24
+ import { InputGroup as ee } from "./components/input/InputGroup.js";
25
+ import { PhoneNumberInput as te } from "./components/input/PhoneNumberInput.js";
26
+ import { Box as ne } from "./components/box/Box.js";
27
+ import { DatePicker as re } from "./components/date-picker/DatePicker.js";
28
+ import { Tag as ie } from "./components/tag/Tag.js";
29
+ import { RadioButtonGroup as ae, RadioButtonGroupItem as oe, RadioButtonGroupLabel as se } from "./components/radio-button-group/RadioButtonGroup.js";
30
+ import { RadioGroup as ce, RadioGroupItem as le, RadioGroupLabel as ue } from "./components/radio-group/RadioGroup.js";
31
+ import { Chip as de, ChipAvatar as fe, ChipClearTrigger as pe, ChipLabel as me } from "./components/chip/Chip.js";
32
+ import { ActionCard as he, ActionCardDescription as ge, ActionCardTitle as _e } from "./components/action-card/ActionCard.js";
33
+ import { Icon as ve } from "./components/icon/Icon.js";
34
+ import { Alert as ye } from "./components/alert/Alert.js";
35
+ import { Table as be, TableContainer as xe, TableEmptyRow as Se, TableGroupTitle as Ce, Tbody as we, Td as Te, Th as Ee, Thead as De, Tr as Oe } from "./components/table/Table.js";
36
+ import { Breadcrumb as ke, BreadcrumbItem as Ae, BreadcrumbLink as je } from "./components/breadcrumb/Breadcrumb.js";
37
+ import { Popover as Me, PopoverAnchor as Ne, PopoverCloseTrigger as Pe, PopoverContent as Fe, PopoverContext as Ie, PopoverTrigger as Le } from "./components/popover/Popover.js";
38
+ import { Pagination as Re } from "./components/pagination/Pagination.js";
39
+ import { Illustration as ze } from "./components/illustration/Illustration.js";
40
+ import { ButtonFilter as Be } from "./components/button-filter/ButtonFilter.js";
41
+ import { StatusTagSelect as Ve } from "./components/status-tag-select/StatusTagSelect.js";
42
+ import { namespace_exports as He } from "./components/switch-card/namespace.js";
43
+ import { namespace_exports as Ue } from "./components/radio-card-group/namespace.js";
44
+ import { namespace_exports as We } from "./components/checkbox-card/namespace.js";
45
+ import { Combobox as Ge } from "./components/combobox/Combobox.js";
46
+ import { styled_exports as Ke } from "./components/collapsible/styled.js";
47
+ import { styled_exports as qe } from "./components/dialog/styled.js";
48
+ import { styled_exports as Je } from "./components/avatar/styled.js";
49
+ import { Menu_exports as Ye } from "./components/menu/Menu.js";
50
+ import { Flag as Xe, FlagCountryCodes as Ze } from "./components/flag/styled.js";
51
+ import { OriginSelect as Qe } from "./components/origin-select/OriginSelect.js";
52
+ import { ChatMessage as $e } from "./components/chat/ChatMessage.js";
53
+ import { ChatDocumentMessage as et } from "./components/chat/ChatDocumentMessage.js";
54
+ import { ChatProfileAvatar as tt } from "./components/chat/ChatProfileAvatar.js";
55
+ import { Chat_exports as nt } from "./components/chat/Chat.js";
56
+ import { ChatScoreBreakdown as rt } from "./components/chat/ChatScoreBreakdown.js";
57
+ import { ChatTextInput as it } from "./components/chat/ChatTextInput.js";
58
+ import { SUPPLIER_RATING_MAX as at, SupplierRatingBreakdown as ot, formatOverall as st, formatResponseDelay as ct, getHeadlineColor as lt } from "./components/supplier-rating-badge/SupplierRatingBreakdown.js";
59
+ import { SupplierRatingBadge as ut } from "./components/supplier-rating-badge/SupplierRatingBadge.js";
60
+ import { PriceTag as dt } from "./components/app/price-tag/PriceTag.js";
61
+ import { styled_exports as ft } from "./components/app/product-card-catalog/styled.js";
62
+ import { AppNavigation_exports as pt } from "./components/app/navigation/AppNavigation.js";
63
+ import { AppNavigationLanguageSelect as mt, DEFAULT_APP_NAVIGATION_LANGUAGES as ht } from "./components/app/navigation/language-select/AppNavigationLanguageSelect.js";
64
+ import { MobileNavigation_exports as gt } from "./components/app/mobile-navigation/MobileNavigation.js";
65
+ import { MobileCardShell as _t } from "./components/app/mobile-card/MobileCardShell.js";
66
+ import { MobileCardHeader as vt } from "./components/app/mobile-card/MobileCardHeader.js";
67
+ import { MobileCardNotificationBadge as yt } from "./components/app/mobile-card/MobileCardNotificationBadge.js";
68
+ import { MobileCardEntityRow as bt } from "./components/app/mobile-card/MobileCardEntityRow.js";
69
+ import { MobileCardSkeleton as xt, MobileCardSkeletonList as St, SkeletonBlock as Ct } from "./components/app/mobile-card/MobileCardSkeleton.js";
70
+ import { preset as wt } from "./preset.js";
71
+ import { createListCollection as Tt, createToaster as Et, parseColor as Dt, parseDate as Ot } from "@ark-ui/react";
72
+ import { formatPhoneNumber as kt, formatPhoneNumberIntl as At, getCountries as jt, getCountryCallingCode as Mt, isPossiblePhoneNumber as Nt, isSupportedCountry as Pt, isValidPhoneNumber as Ft, parsePhoneNumber as It } from "react-phone-number-input";
73
+ export { e as Accordion, t as AccordionItem, n as AccordionItemContent, r as AccordionItemIndicator, i as AccordionItemTrigger, he as ActionCard, ge as ActionCardDescription, _e as ActionCardTitle, ye as Alert, pt as AppNavigation, mt as AppNavigationLanguageSelect, Je as Avatar, ne as Box, ke as Breadcrumb, Ae as BreadcrumbItem, je as BreadcrumbLink, o as Button, Be as ButtonFilter, nt as Chat, et as ChatDocumentMessage, $e as ChatMessage, tt as ChatProfileAvatar, rt as ChatScoreBreakdown, it as ChatTextInput, s as Checkbox, We as CheckboxCard, c as CheckboxGroup, de as Chip, fe as ChipAvatar, pe as ChipClearTrigger, me as ChipLabel, Ke as Collapsible, Ge as Combobox, ht as DEFAULT_APP_NAVIGATION_LANGUAGES, d as DEFAULT_DATE_PICKER_LABELS, l as DEFAULT_SUPPLIER_RATING_LABELS, f as DEFAULT_UI_LABELS, re as DatePicker, qe as Dialog, g as Drawer, _ as DrawerBody, v as DrawerCloseTrigger, y as DrawerContent, b as DrawerContext, x as DrawerFooter, S as DrawerHeader, C as DrawerTitle, w as DrawerTrigger, Xe as Flag, Ze as FlagCountryCodes, T as FormControl, O as FormHelperText, D as FormLabel, k as Heading, J as Highlight, Y as HighlightedInput, ve as Icon, h as IconButton, ze as Illustration, q as Input, $ as InputAddon, ee as InputGroup, X as InputSlot, Ye as Menu, bt as MobileCardEntityRow, vt as MobileCardHeader, yt as MobileCardNotificationBadge, _t as MobileCardShell, xt as MobileCardSkeleton, St as MobileCardSkeletonList, gt as MobileNavigation, Qe as OriginSelect, Re as Pagination, te as PhoneNumberInput, Me as Popover, Ne as PopoverAnchor, Pe as PopoverCloseTrigger, Fe as PopoverContent, Ie as PopoverContext, Le as PopoverTrigger, dt as PriceTag, ft as ProductCardCatalog, ae as RadioButtonGroup, oe as RadioButtonGroupItem, se as RadioButtonGroupLabel, Ue as RadioCardGroup, ce as RadioGroup, le as RadioGroupItem, ue as RadioGroupLabel, Z as Renderer, Q as Root, at as SUPPLIER_RATING_MAX, G as Select, K as SelectLanguage, Ct as SkeletonBlock, Ve as StatusTagSelect, R as Steps, z as StepsContent, B as StepsIndicator, V as StepsItem, H as StepsList, U as StepsSeparator, W as StepsTrigger, ut as SupplierRatingBadge, ot as SupplierRatingBreakdown, A as Switch, He as SwitchCard, be as Table, xe as TableContainer, Se as TableEmptyRow, Ce as TableGroupTitle, N as Tabs, P as TabsChip, F as TabsContent, I as TabsList, L as TabsTrigger, ie as Tag, we as Tbody, Te as Td, j as Text, M as Textarea, Ee as Th, De as Thead, E as Tooltip, Oe as Tr, p as UiLabelsProvider, Tt as createListCollection, Et as createToaster, st as formatOverall, kt as formatPhoneNumber, At as formatPhoneNumberIntl, ct as formatResponseDelay, jt as getCountries, Mt as getCountryCallingCode, lt as getHeadlineColor, Nt as isPossiblePhoneNumber, Pt as isSupportedCountry, Ft as isValidPhoneNumber, u as mergeSupplierRatingLabels, Dt as parseColor, Ot as parseDate, It as parsePhoneNumber, wt as preset, a as useAccordion, m as useUiLabels };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/ui",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Stokelp UI React",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -98,7 +98,7 @@
98
98
  "vite-tsconfig-paths": "^6.1.1"
99
99
  },
100
100
  "dependencies": {
101
- "@ark-ui/react": "5.39.3",
101
+ "@ark-ui/react": "5.40.0",
102
102
  "@pandacss/preset-base": "^2.0.0",
103
103
  "@zag-js/utils": "^1.41.0",
104
104
  "react-is": "19.3.1",
@@ -107,7 +107,23 @@
107
107
  },
108
108
  "release": {
109
109
  "monorepo": {
110
- "dependencies": []
111
- }
110
+ "dependencies": [
111
+ "package.json",
112
+ "package-lock.json"
113
+ ]
114
+ },
115
+ "releaseRules": [
116
+ {
117
+ "breaking": true,
118
+ "release": "major"
119
+ },
120
+ {
121
+ "type": "feat",
122
+ "release": "minor"
123
+ },
124
+ {
125
+ "release": "patch"
126
+ }
127
+ ]
112
128
  }
113
129
  }